36 lines
1 KiB
TypeScript
36 lines
1 KiB
TypeScript
// Module ID: 5323
|
|
// Function ID: 5324
|
|
// Name: ButtonGroup
|
|
// Dependencies: [19, 21, 4444, 4877, 2]
|
|
// Exports: ButtonGroup
|
|
|
|
// Module 5323 (ButtonGroup)
|
|
import noopAll from "noop" /* 19 */;
|
|
import Stack from "Stack" /* 4877 */;
|
|
import { jsx } from "jsxProd" /* 21 */;
|
|
import createCacheKey from "createCacheKey" /* 4444 */;
|
|
|
|
require = arg1;
|
|
noopAll;
|
|
let closure_3 = createCacheKey.createStyles({ container: { paddingVertical: 16 } });
|
|
const result = require("set").fileFinishedImporting("design/components/ButtonGroup/native/ButtonGroup.native.tsx");
|
|
|
|
export const ButtonGroup = function ButtonGroup(size) {
|
|
let str = size.size;
|
|
if (str === undefined) {
|
|
str = "md";
|
|
}
|
|
({ children, style } = size);
|
|
const merged = Object.assign(size, Object.create(null));
|
|
let num = 8;
|
|
if ("sm" === str) {
|
|
num = 12;
|
|
}
|
|
const obj = {};
|
|
const merged1 = Object.assign(merged);
|
|
obj.spacing = num;
|
|
const items = [callback().container, style];
|
|
obj.style = items;
|
|
obj.children = children;
|
|
return jsx(Stack.Stack, {});
|
|
};
|