decord/source/design/components/ButtonGroup/native/ButtonGroup.native.tsx

37 lines
1 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 5257
// Function ID: 5258
2026-07-20 16:05:17 +00:00
// Name: ButtonGroup
2026-08-25 06:04:03 +00:00
// Dependencies: [19, 21, 4380, 4813, 2]
2026-07-20 16:05:17 +00:00
// Exports: ButtonGroup
2026-08-25 06:04:03 +00:00
// Module 5257 (ButtonGroup)
2026-08-24 06:08:38 +00:00
import noopAll from "noop" /* 19 */;
2026-08-25 06:04:03 +00:00
import Stack from "Stack" /* 4813 */;
2026-08-24 06:08:38 +00:00
import { jsx } from "jsxProd" /* 21 */;
2026-08-25 06:04:03 +00:00
import createCacheKey from "createCacheKey" /* 4380 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
noopAll;
2026-07-29 08:29:29 +00:00
let closure_3 = createCacheKey.createStyles({ container: { paddingVertical: 16 } });
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("design/components/ButtonGroup/native/ButtonGroup.native.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export const ButtonGroup = function ButtonGroup(size) {
let str = size.size;
2026-07-21 22:01:30 +00:00
if (str === undefined) {
str = "md";
}
2026-07-29 08:29:29 +00:00
({ children, style } = size);
const merged = Object.assign(size, Object.create(null));
2026-07-21 22:01:30 +00:00
let num = 8;
if ("sm" === str) {
num = 12;
}
2026-07-29 08:29:29 +00:00
const obj = {};
2026-07-20 16:05:17 +00:00
const merged1 = Object.assign(merged);
2026-07-29 08:29:29 +00:00
obj.spacing = num;
2026-07-20 16:05:17 +00:00
const items = [callback().container, style];
2026-07-29 08:29:29 +00:00
obj.style = items;
obj.children = children;
2026-08-24 06:08:38 +00:00
return jsx(Stack.Stack, {});
2026-07-20 16:05:17 +00:00
};