Files
discord-decomp/sources/design/components/Button/native/ButtonConstants.native.tsx
T
2026-07-28 01:06:53 +03:00

50 lines
2.6 KiB
TypeScript

/* Metro module 4582; source: design/components/Button/native/ButtonConstants.native.tsx; dependencies: [4580, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as IconModule from '../../../void/Icon/native/Icon.tsx'; /* Metro dependency 4580 */
function _fun38862(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#38862, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4760:6, offset: 0x010cded5, size: 348 bytes, params: 8, frame: 28
const env0_0 = require;
const getButtonPadding2 = getButtonPadding;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const IconSizes = (IconModule).IconSizes;
const SMALL = IconSizes.SMALL;
const SMALL_20 = IconSizes.SMALL_20;
const MEDIUM = IconSizes.MEDIUM;
const MEDIUM2 = IconSizes.MEDIUM;
const buttonPadding2 = getButtonPadding2(32, SMALL);
const buttonPadding22 = getButtonPadding2(40, SMALL_20);
const buttonPadding23 = getButtonPadding2(48, MEDIUM);
(FileImportTrackerModule).fileFinishedImporting('design/components/Button/native/ButtonConstants.native.tsx');
exports.MINIMUM_HIT_AREA = 44;
exports.SMALL_BUTTON_HEIGHT = 32;
exports.MEDIUM_BUTTON_HEIGHT = 40;
exports.LARGE_BUTTON_HEIGHT = 48;
exports.FAB_BUTTON_SIZE = 56;
exports.BUTTON_BORDER_WIDTH = 1;
exports.DEFAULT_BUTTON_SIZE = 'md';
exports.SMALL_BUTTON_ICON_SIZE = SMALL;
exports.MEDIUM_BUTTON_ICON_SIZE = SMALL_20;
exports.LARGE_BUTTON_ICON_SIZE = MEDIUM;
exports.FAB_BUTTON_ICON_SIZE = MEDIUM2;
exports.SMALL_BUTTON_HORIZONTAL_PADDING = 12;
exports.MEDIUM_BUTTON_HORIZONTAL_PADDING = 20;
exports.LARGE_BUTTON_HORIZONTAL_PADDING = 24;
exports.SMALL_BUTTON_PADDING = buttonPadding2;
exports.MEDIUM_BUTTON_PADDING = buttonPadding22;
exports.LARGE_BUTTON_PADDING = buttonPadding23;
exports.BUTTON_DEFAULT_MAX_FONT_SIZE_MULTIPLIER = 3;
exports.getButtonDefaultTextVariant = function(a0) {
return a0 !== 'lg' ? 'text-sm/semibold' : 'text-md/semibold';
};
exports.getButtonPadding = getButtonPadding2;
function getButtonPadding(a0, a1) { // fn#38863, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4760:280, offset: 0x010ce031, size: 58 bytes, params: 3, frame: 11
let value = IconModule;
value = value.getIconSize(a1);
return (a0 - value - 2) / 2;
}
}
global.__d(_fun38862, 4582, [4580, 2]) /* metro module 4582, dependencies: [4580, 2] */;