36 lines
1,013 B
TypeScript
36 lines
1,013 B
TypeScript
// Module ID: 5022
|
|
// Function ID: 5023
|
|
// Name: ButtonGroup
|
|
// Dependencies: [19, 21, 4189, 4598, 2]
|
|
// Exports: ButtonGroup
|
|
|
|
// Module 5022 (ButtonGroup)
|
|
import "noop";
|
|
import { jsx } from "jsxProd";
|
|
import createCacheKey from "createCacheKey";
|
|
|
|
const require = arg1;
|
|
let closure_3 = createCacheKey.createStyles({ container: { paddingVertical: 16 } });
|
|
const result = require("createCacheKey").fileFinishedImporting("design/components/ButtonGroup/native/ButtonGroup.native.tsx");
|
|
|
|
export const ButtonGroup = function ButtonGroup(size) {
|
|
let children;
|
|
let style;
|
|
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(require(4598) /* Stack */.Stack, {});
|
|
};
|