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

37 lines
1,013 B
TypeScript
Raw Normal View History

2026-08-12 06:57:52 +00:00
// Module ID: 5190
// Function ID: 5191
2026-07-20 16:05:17 +00:00
// Name: ButtonGroup
2026-08-12 06:57:52 +00:00
// Dependencies: [19, 21, 4344, 4752, 2]
2026-07-20 16:05:17 +00:00
// Exports: ButtonGroup
2026-08-12 06:57:52 +00:00
// Module 5190 (ButtonGroup)
2026-07-29 08:29:29 +00:00
import "noop";
2026-07-23 10:11:24 +00:00
import { jsx } from "jsxProd";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
let closure_3 = createCacheKey.createStyles({ container: { paddingVertical: 16 } });
const result = require("createCacheKey").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) {
2026-07-20 16:05:17 +00:00
let children;
let style;
2026-07-29 08:29:29 +00:00
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-12 06:57:52 +00:00
return jsx(require(4752) /* Stack */.Stack, {});
2026-07-20 16:05:17 +00:00
};