@hanzogui/button 8.3.1 → 8.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/dist/cjs/Button.js +238 -0
  2. package/dist/cjs/Button.js.map +1 -0
  3. package/dist/cjs/index.js +5 -0
  4. package/dist/cjs/index.js.map +1 -0
  5. package/dist/cjs/package.json +1 -0
  6. package/dist/esm/Button.js +235 -0
  7. package/dist/esm/Button.js.map +1 -0
  8. package/dist/esm/index.js +2 -2
  9. package/dist/esm/index.js.map +1 -1
  10. package/package.json +30 -25
  11. package/src/Button.test.tsx +1 -1
  12. package/src/index.ts +1 -1
  13. package/types/Button.d.ts +58 -57
  14. package/types/Button.d.ts.map +1 -1
  15. package/types/index.d.ts +1 -1
  16. package/types/index.d.ts.map +1 -1
  17. package/dist/cjs/Button.cjs +0 -289
  18. package/dist/cjs/Button.native.js +0 -297
  19. package/dist/cjs/Button.native.js.map +0 -1
  20. package/dist/cjs/Button.test.cjs +0 -37
  21. package/dist/cjs/Button.test.native.js +0 -40
  22. package/dist/cjs/Button.test.native.js.map +0 -1
  23. package/dist/cjs/index.cjs +0 -20
  24. package/dist/cjs/index.native.js +0 -23
  25. package/dist/cjs/index.native.js.map +0 -1
  26. package/dist/esm/Button.mjs +0 -263
  27. package/dist/esm/Button.mjs.map +0 -1
  28. package/dist/esm/Button.native.js +0 -268
  29. package/dist/esm/Button.native.js.map +0 -1
  30. package/dist/esm/Button.test.mjs +0 -38
  31. package/dist/esm/Button.test.mjs.map +0 -1
  32. package/dist/esm/Button.test.native.js +0 -38
  33. package/dist/esm/Button.test.native.js.map +0 -1
  34. package/dist/esm/index.mjs +0 -2
  35. package/dist/esm/index.mjs.map +0 -1
  36. package/dist/esm/index.native.js +0 -2
  37. package/dist/esm/index.native.js.map +0 -1
  38. package/dist/jsx/Button.mjs +0 -263
  39. package/dist/jsx/Button.mjs.map +0 -1
  40. package/dist/jsx/Button.native.js +0 -297
  41. package/dist/jsx/Button.native.js.map +0 -1
  42. package/dist/jsx/Button.test.mjs +0 -38
  43. package/dist/jsx/Button.test.mjs.map +0 -1
  44. package/dist/jsx/Button.test.native.js +0 -40
  45. package/dist/jsx/Button.test.native.js.map +0 -1
  46. package/dist/jsx/index.js +0 -2
  47. package/dist/jsx/index.js.map +0 -1
  48. package/dist/jsx/index.mjs +0 -2
  49. package/dist/jsx/index.mjs.map +0 -1
  50. package/dist/jsx/index.native.js +0 -23
  51. package/dist/jsx/index.native.js.map +0 -1
  52. package/types/Button.test.d.ts +0 -2
  53. package/types/Button.test.d.ts.map +0 -1
@@ -1,297 +0,0 @@
1
- "use strict";
2
-
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
12
- };
13
- var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
- get: () => from[key],
17
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
- });
19
- }
20
- return to;
21
- };
22
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
23
- value: true
24
- }), mod);
25
- var Button_exports = {};
26
- __export(Button_exports, {
27
- Button: () => Button,
28
- ButtonContext: () => ButtonContext
29
- });
30
- module.exports = __toCommonJS(Button_exports);
31
- var import_jsx_runtime = require("react/jsx-runtime");
32
- var import_font_size = require("@hanzogui/font-size");
33
- var import_get_button_sized = require("@hanzogui/get-button-sized");
34
- var import_component_helpers = require("@hanzogui/component-helpers");
35
- var import_stacks = require("@hanzogui/stacks");
36
- var import_text = require("@hanzogui/text");
37
- var import_web = require("@hanzogui/web");
38
- var import_react = require("react");
39
- var context = (0, import_web.createStyledContext)({
40
- size: void 0,
41
- variant: void 0,
42
- color: void 0,
43
- elevation: void 0,
44
- ellipsis: void 0,
45
- fontFamily: void 0,
46
- fontSize: void 0,
47
- fontStyle: void 0,
48
- fontWeight: void 0,
49
- letterSpacing: void 0,
50
- maxFontSizeMultiplier: void 0,
51
- textAlign: void 0
52
- });
53
- var Frame = (0, import_web.styled)(import_web.View, {
54
- context,
55
- name: "Button",
56
- role: "button",
57
- render: /* @__PURE__ */(0, import_jsx_runtime.jsx)("button", {
58
- type: "button"
59
- }),
60
- tabIndex: 0,
61
- variants: {
62
- unstyled: {
63
- true: {
64
- // reset browser <button> defaults
65
- outlineWidth: 0,
66
- borderWidth: 0,
67
- backgroundColor: "transparent"
68
- },
69
- false: {
70
- size: "$true",
71
- justifyContent: "center",
72
- alignItems: "center",
73
- flexWrap: "nowrap",
74
- flexDirection: "row",
75
- backgroundColor: "$background",
76
- borderWidth: 1,
77
- borderColor: "transparent",
78
- "$platform-web": {
79
- cursor: "pointer"
80
- },
81
- hoverStyle: {
82
- backgroundColor: "$backgroundHover",
83
- borderColor: "$borderColorHover"
84
- },
85
- pressStyle: {
86
- backgroundColor: "$backgroundPress",
87
- borderColor: "$borderColorHover"
88
- },
89
- focusVisibleStyle: {
90
- outlineColor: "$outlineColor",
91
- outlineStyle: "solid",
92
- outlineWidth: 2
93
- }
94
- }
95
- },
96
- variant: {
97
- outlined: process.env.GUI_HEADLESS === "1" ? {} : {
98
- backgroundColor: "transparent",
99
- borderWidth: 1,
100
- borderColor: "$borderColor",
101
- hoverStyle: {
102
- backgroundColor: "transparent",
103
- borderColor: "$borderColorHover"
104
- },
105
- pressStyle: {
106
- backgroundColor: "transparent",
107
- borderColor: "$borderColorPress"
108
- }
109
- }
110
- },
111
- circular: import_stacks.themeableVariants.circular,
112
- chromeless: import_stacks.themeableVariants.chromeless,
113
- size: {
114
- "...size": function (val, extras) {
115
- var buttonStyle = (0, import_get_button_sized.getButtonSized)(val, extras);
116
- var gap = (0, import_web.getTokenValue)(val);
117
- return {
118
- ...buttonStyle,
119
- gap
120
- };
121
- },
122
- ":number": function (val, extras) {
123
- var buttonStyle = (0, import_get_button_sized.getButtonSized)(val, extras);
124
- var gap = val * 0.4;
125
- return {
126
- ...buttonStyle,
127
- gap
128
- };
129
- }
130
- },
131
- elevation: {
132
- "...size": import_stacks.getElevation,
133
- ":number": import_stacks.getElevation
134
- },
135
- disabled: {
136
- true: {
137
- pointerEvents: "none",
138
- // @ts-ignore
139
- "aria-disabled": true
140
- }
141
- }
142
- },
143
- defaultVariants: {
144
- unstyled: process.env.GUI_HEADLESS === "1"
145
- }
146
- });
147
- var Text = (0, import_web.styled)(import_text.SizableText, {
148
- context,
149
- variants: {
150
- unstyled: {
151
- false: {
152
- userSelect: "none",
153
- // flexGrow 1 leads to inconsistent native style where text pushes to start of view
154
- flexGrow: 0,
155
- flexShrink: 1,
156
- ellipsis: true,
157
- color: "$color",
158
- "$platform-web": {
159
- cursor: "pointer"
160
- }
161
- }
162
- }
163
- },
164
- defaultVariants: {
165
- unstyled: process.env.GUI_HEADLESS === "1"
166
- }
167
- });
168
- var Icon = function (props) {
169
- var {
170
- children,
171
- scaleIcon = 1,
172
- size
173
- } = props;
174
- var styledContext = context.useStyledContext();
175
- if (!styledContext) {
176
- throw new Error("Button.Icon must be used within a Button");
177
- }
178
- var sizeToken = size !== null && size !== void 0 ? size : styledContext.size;
179
- var iconColorProp = styledContext.color === "unset" || typeof styledContext.color === "number" ? void 0 : styledContext.color;
180
- var iconColor = (0, import_component_helpers.useCurrentColor)(iconColorProp);
181
- var iconSize = (typeof sizeToken === "number" ? sizeToken * 0.5 : (0, import_font_size.getFontSize)(sizeToken)) * scaleIcon;
182
- return (0, import_component_helpers.getIcon)(children, {
183
- size: iconSize,
184
- color: iconColor
185
- });
186
- };
187
- var ButtonContext = (0, import_web.createStyledContext)({
188
- size: void 0,
189
- variant: void 0,
190
- color: void 0
191
- });
192
- var ButtonComponent = Frame.styleable(function (propsIn, ref) {
193
- var isNested = (0, import_react.useContext)(import_stacks.ButtonNestingContext);
194
- var processedProps = (0, import_web.useProps)(propsIn, {
195
- noNormalize: true,
196
- noExpand: true
197
- });
198
- var {
199
- children,
200
- iconSize,
201
- icon,
202
- iconAfter,
203
- scaleIcon = 1,
204
- noTextWrap,
205
- textProps,
206
- color,
207
- ellipsis,
208
- fontFamily,
209
- fontSize,
210
- fontStyle,
211
- fontWeight,
212
- letterSpacing,
213
- maxFontSizeMultiplier,
214
- textAlign,
215
- ...props
216
- } = processedProps;
217
- var size = propsIn.size || (propsIn.unstyled ? void 0 : "$true");
218
- var styledContext = context.useStyledContext();
219
- var _ref;
220
- var contextColor = (_ref = color !== null && color !== void 0 ? color : propsIn.color) !== null && _ref !== void 0 ? _ref : styledContext === null || styledContext === void 0 ? void 0 : styledContext.color;
221
- var iconColorProp = contextColor === "unset" || typeof contextColor === "number" ? void 0 : contextColor;
222
- var iconColor = (0, import_component_helpers.useCurrentColor)(iconColorProp);
223
- var _ref1;
224
- var finalSize = (_ref1 = iconSize !== null && iconSize !== void 0 ? iconSize : size) !== null && _ref1 !== void 0 ? _ref1 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.size;
225
- var iconSizeNumber = (typeof finalSize === "number" ? finalSize * 0.5 : (0, import_font_size.getFontSize)(finalSize)) * scaleIcon;
226
- var [themedIcon, themedIconAfter] = [icon, iconAfter].map(function (icon2) {
227
- if (!icon2) return null;
228
- return (0, import_component_helpers.getIcon)(icon2, {
229
- size: iconSizeNumber,
230
- color: iconColor
231
- });
232
- });
233
- var _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9;
234
- var wrappedChildren = (0, import_text.wrapChildrenInText)(Text, {
235
- children,
236
- color: contextColor,
237
- ellipsis: (_ref2 = ellipsis !== null && ellipsis !== void 0 ? ellipsis : propsIn.ellipsis) !== null && _ref2 !== void 0 ? _ref2 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.ellipsis,
238
- fontFamily: (_ref3 = fontFamily !== null && fontFamily !== void 0 ? fontFamily : propsIn.fontFamily) !== null && _ref3 !== void 0 ? _ref3 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.fontFamily,
239
- fontSize: (_ref4 = fontSize !== null && fontSize !== void 0 ? fontSize : propsIn.fontSize) !== null && _ref4 !== void 0 ? _ref4 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.fontSize,
240
- fontStyle: (_ref5 = fontStyle !== null && fontStyle !== void 0 ? fontStyle : propsIn.fontStyle) !== null && _ref5 !== void 0 ? _ref5 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.fontStyle,
241
- fontWeight: (_ref6 = fontWeight !== null && fontWeight !== void 0 ? fontWeight : propsIn.fontWeight) !== null && _ref6 !== void 0 ? _ref6 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.fontWeight,
242
- letterSpacing: (_ref7 = letterSpacing !== null && letterSpacing !== void 0 ? letterSpacing : propsIn.letterSpacing) !== null && _ref7 !== void 0 ? _ref7 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.letterSpacing,
243
- maxFontSizeMultiplier: (_ref8 = maxFontSizeMultiplier !== null && maxFontSizeMultiplier !== void 0 ? maxFontSizeMultiplier : propsIn.maxFontSizeMultiplier) !== null && _ref8 !== void 0 ? _ref8 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.maxFontSizeMultiplier,
244
- noTextWrap: noTextWrap !== null && noTextWrap !== void 0 ? noTextWrap : propsIn.noTextWrap,
245
- textAlign: (_ref9 = textAlign !== null && textAlign !== void 0 ? textAlign : propsIn.textAlign) !== null && _ref9 !== void 0 ? _ref9 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.textAlign,
246
- textProps: textProps !== null && textProps !== void 0 ? textProps : propsIn.textProps
247
- }, {
248
- unstyled: process.env.GUI_HEADLESS === "1",
249
- size: finalSize !== null && finalSize !== void 0 ? finalSize : styledContext === null || styledContext === void 0 ? void 0 : styledContext.size
250
- });
251
- var _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16, _ref17;
252
- var textContext = {
253
- color: contextColor,
254
- ellipsis: (_ref10 = ellipsis !== null && ellipsis !== void 0 ? ellipsis : propsIn.ellipsis) !== null && _ref10 !== void 0 ? _ref10 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.ellipsis,
255
- fontFamily: (_ref11 = fontFamily !== null && fontFamily !== void 0 ? fontFamily : propsIn.fontFamily) !== null && _ref11 !== void 0 ? _ref11 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.fontFamily,
256
- fontSize: (_ref12 = fontSize !== null && fontSize !== void 0 ? fontSize : propsIn.fontSize) !== null && _ref12 !== void 0 ? _ref12 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.fontSize,
257
- fontStyle: (_ref13 = fontStyle !== null && fontStyle !== void 0 ? fontStyle : propsIn.fontStyle) !== null && _ref13 !== void 0 ? _ref13 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.fontStyle,
258
- fontWeight: (_ref14 = fontWeight !== null && fontWeight !== void 0 ? fontWeight : propsIn.fontWeight) !== null && _ref14 !== void 0 ? _ref14 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.fontWeight,
259
- letterSpacing: (_ref15 = letterSpacing !== null && letterSpacing !== void 0 ? letterSpacing : propsIn.letterSpacing) !== null && _ref15 !== void 0 ? _ref15 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.letterSpacing,
260
- maxFontSizeMultiplier: (_ref16 = maxFontSizeMultiplier !== null && maxFontSizeMultiplier !== void 0 ? maxFontSizeMultiplier : propsIn.maxFontSizeMultiplier) !== null && _ref16 !== void 0 ? _ref16 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.maxFontSizeMultiplier,
261
- textAlign: (_ref17 = textAlign !== null && textAlign !== void 0 ? textAlign : propsIn.textAlign) !== null && _ref17 !== void 0 ? _ref17 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.textAlign
262
- };
263
- var _props_size, _ref18, _props_variant, _ref19, _props_elevation, _ref20;
264
- var buttonContext = {
265
- ...styledContext,
266
- ...textContext,
267
- size: (_ref18 = (_props_size = props.size) !== null && _props_size !== void 0 ? _props_size : propsIn.size) !== null && _ref18 !== void 0 ? _ref18 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.size,
268
- variant: (_ref19 = (_props_variant = props.variant) !== null && _props_variant !== void 0 ? _props_variant : propsIn.variant) !== null && _ref19 !== void 0 ? _ref19 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.variant,
269
- elevation: (_ref20 = (_props_elevation = props.elevation) !== null && _props_elevation !== void 0 ? _props_elevation : propsIn.elevation) !== null && _ref20 !== void 0 ? _ref20 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.elevation
270
- };
271
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_stacks.ButtonNestingContext.Provider, {
272
- value: true,
273
- children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(context.Provider, {
274
- ...buttonContext,
275
- children: /* @__PURE__ */(0, import_jsx_runtime.jsxs)(Frame, {
276
- ref,
277
- ...props,
278
- ...(isNested && {
279
- render: "span"
280
- }),
281
- // pass resolved size to circular variant when no explicit size provided
282
- ...(props.circular && !propsIn.size && {
283
- size
284
- }),
285
- tabIndex: 0,
286
- children: [themedIcon, wrappedChildren, themedIconAfter]
287
- })
288
- })
289
- });
290
- });
291
- var Button = (0, import_web.withStaticProperties)(ButtonComponent, {
292
- Apply: context.Provider,
293
- Frame,
294
- Text,
295
- Icon
296
- });
297
- //# sourceMappingURL=Button.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toCommonJS","mod","value","Button_exports","Button","ButtonContext","module","exports","import_jsx_runtime","require","import_font_size","import_get_button_sized","import_component_helpers","import_stacks","import_text","import_web","import_react","context","createStyledContext","size","variant","color","elevation","ellipsis","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","maxFontSizeMultiplier","textAlign","Frame","styled","View","role","render","jsx","type","tabIndex","variants","unstyled","true","outlineWidth","borderWidth","backgroundColor","false","justifyContent","alignItems","flexWrap","flexDirection","borderColor","cursor","hoverStyle","pressStyle","focusVisibleStyle","outlineColor","outlineStyle","outlined","process","env","GUI_HEADLESS","circular","themeableVariants","chromeless","...size","val","extras","buttonStyle","getButtonSized","gap","getTokenValue",":number","getElevation","disabled","pointerEvents","defaultVariants","Text","SizableText","userSelect","flexGrow","flexShrink","Icon","props","children","scaleIcon","styledContext","useStyledContext","Error","sizeToken","iconColorProp","iconColor","useCurrentColor","iconSize","getFontSize","getIcon","ButtonComponent","styleable","propsIn","ref","isNested","useContext","ButtonNestingContext","processedProps","useProps","noNormalize","noExpand","icon","iconAfter","noTextWrap","textProps","_ref","contextColor","_ref1","finalSize","iconSizeNumber","themedIcon","themedIconAfter","map","icon2","_ref2","_ref3","_ref4","_ref5","_ref6","_ref7","_ref8","_ref9","wrappedChildren","wrapChildrenInText","_ref10","_ref11","_ref12","_ref13","_ref14","_ref15","_ref16","_ref17","textContext","_props_size","_ref18","_props_variant","_ref19","_props_elevation","_ref20","buttonContext","Provider","jsxs","withStaticProperties","Apply"],"sources":["Button.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar Button_exports = {};\n__export(Button_exports, {\n Button: () => Button,\n ButtonContext: () => ButtonContext\n});\nmodule.exports = __toCommonJS(Button_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_font_size = require(\"@hanzogui/font-size\");\nvar import_get_button_sized = require(\"@hanzogui/get-button-sized\");\nvar import_component_helpers = require(\"@hanzogui/component-helpers\");\nvar import_stacks = require(\"@hanzogui/stacks\");\nvar import_text = require(\"@hanzogui/text\");\nvar import_web = require(\"@hanzogui/web\");\nvar import_react = require(\"react\");\nvar context = (0, import_web.createStyledContext)({\n size: void 0,\n variant: void 0,\n color: void 0,\n elevation: void 0,\n ellipsis: void 0,\n fontFamily: void 0,\n fontSize: void 0,\n fontStyle: void 0,\n fontWeight: void 0,\n letterSpacing: void 0,\n maxFontSizeMultiplier: void 0,\n textAlign: void 0\n});\nvar Frame = (0, import_web.styled)(import_web.View, {\n context,\n name: \"Button\",\n role: \"button\",\n render: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(\"button\", {\n type: \"button\"\n }),\n tabIndex: 0,\n variants: {\n unstyled: {\n true: {\n // reset browser <button> defaults\n outlineWidth: 0,\n borderWidth: 0,\n backgroundColor: \"transparent\"\n },\n false: {\n size: \"$true\",\n justifyContent: \"center\",\n alignItems: \"center\",\n flexWrap: \"nowrap\",\n flexDirection: \"row\",\n backgroundColor: \"$background\",\n borderWidth: 1,\n borderColor: \"transparent\",\n \"$platform-web\": {\n cursor: \"pointer\"\n },\n hoverStyle: {\n backgroundColor: \"$backgroundHover\",\n borderColor: \"$borderColorHover\"\n },\n pressStyle: {\n backgroundColor: \"$backgroundPress\",\n borderColor: \"$borderColorHover\"\n },\n focusVisibleStyle: {\n outlineColor: \"$outlineColor\",\n outlineStyle: \"solid\",\n outlineWidth: 2\n }\n }\n },\n variant: {\n outlined: process.env.GUI_HEADLESS === \"1\" ? {} : {\n backgroundColor: \"transparent\",\n borderWidth: 1,\n borderColor: \"$borderColor\",\n hoverStyle: {\n backgroundColor: \"transparent\",\n borderColor: \"$borderColorHover\"\n },\n pressStyle: {\n backgroundColor: \"transparent\",\n borderColor: \"$borderColorPress\"\n }\n }\n },\n circular: import_stacks.themeableVariants.circular,\n chromeless: import_stacks.themeableVariants.chromeless,\n size: {\n \"...size\": function(val, extras) {\n var buttonStyle = (0, import_get_button_sized.getButtonSized)(val, extras);\n var gap = (0, import_web.getTokenValue)(val);\n return {\n ...buttonStyle,\n gap\n };\n },\n \":number\": function(val, extras) {\n var buttonStyle = (0, import_get_button_sized.getButtonSized)(val, extras);\n var gap = val * 0.4;\n return {\n ...buttonStyle,\n gap\n };\n }\n },\n elevation: {\n \"...size\": import_stacks.getElevation,\n \":number\": import_stacks.getElevation\n },\n disabled: {\n true: {\n pointerEvents: \"none\",\n // @ts-ignore\n \"aria-disabled\": true\n }\n }\n },\n defaultVariants: {\n unstyled: process.env.GUI_HEADLESS === \"1\"\n }\n});\nvar Text = (0, import_web.styled)(import_text.SizableText, {\n context,\n variants: {\n unstyled: {\n false: {\n userSelect: \"none\",\n // flexGrow 1 leads to inconsistent native style where text pushes to start of view\n flexGrow: 0,\n flexShrink: 1,\n ellipsis: true,\n color: \"$color\",\n \"$platform-web\": {\n cursor: \"pointer\"\n }\n }\n }\n },\n defaultVariants: {\n unstyled: process.env.GUI_HEADLESS === \"1\"\n }\n});\nvar Icon = function(props) {\n var { children, scaleIcon = 1, size } = props;\n var styledContext = context.useStyledContext();\n if (!styledContext) {\n throw new Error(\"Button.Icon must be used within a Button\");\n }\n var sizeToken = size !== null && size !== void 0 ? size : styledContext.size;\n var iconColorProp = styledContext.color === \"unset\" || typeof styledContext.color === \"number\" ? void 0 : styledContext.color;\n var iconColor = (0, import_component_helpers.useCurrentColor)(iconColorProp);\n var iconSize = (typeof sizeToken === \"number\" ? sizeToken * 0.5 : (0, import_font_size.getFontSize)(sizeToken)) * scaleIcon;\n return (0, import_component_helpers.getIcon)(children, {\n size: iconSize,\n color: iconColor\n });\n};\nvar ButtonContext = (0, import_web.createStyledContext)({\n size: void 0,\n variant: void 0,\n color: void 0\n});\nvar ButtonComponent = Frame.styleable(function(propsIn, ref) {\n var isNested = (0, import_react.useContext)(import_stacks.ButtonNestingContext);\n var processedProps = (0, import_web.useProps)(propsIn, {\n noNormalize: true,\n noExpand: true\n });\n var { children, iconSize, icon, iconAfter, scaleIcon = 1, noTextWrap, textProps, color, ellipsis, fontFamily, fontSize, fontStyle, fontWeight, letterSpacing, maxFontSizeMultiplier, textAlign, ...props } = processedProps;\n var size = propsIn.size || (propsIn.unstyled ? void 0 : \"$true\");\n var styledContext = context.useStyledContext();\n var _ref;\n var contextColor = (_ref = color !== null && color !== void 0 ? color : propsIn.color) !== null && _ref !== void 0 ? _ref : styledContext === null || styledContext === void 0 ? void 0 : styledContext.color;\n var iconColorProp = contextColor === \"unset\" || typeof contextColor === \"number\" ? void 0 : contextColor;\n var iconColor = (0, import_component_helpers.useCurrentColor)(iconColorProp);\n var _ref1;\n var finalSize = (_ref1 = iconSize !== null && iconSize !== void 0 ? iconSize : size) !== null && _ref1 !== void 0 ? _ref1 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.size;\n var iconSizeNumber = (typeof finalSize === \"number\" ? finalSize * 0.5 : (0, import_font_size.getFontSize)(finalSize)) * scaleIcon;\n var [themedIcon, themedIconAfter] = [\n icon,\n iconAfter\n ].map(function(icon2) {\n if (!icon2) return null;\n return (0, import_component_helpers.getIcon)(icon2, {\n size: iconSizeNumber,\n color: iconColor\n });\n });\n var _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9;\n var wrappedChildren = (0, import_text.wrapChildrenInText)(Text, {\n children,\n color: contextColor,\n ellipsis: (_ref2 = ellipsis !== null && ellipsis !== void 0 ? ellipsis : propsIn.ellipsis) !== null && _ref2 !== void 0 ? _ref2 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.ellipsis,\n fontFamily: (_ref3 = fontFamily !== null && fontFamily !== void 0 ? fontFamily : propsIn.fontFamily) !== null && _ref3 !== void 0 ? _ref3 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.fontFamily,\n fontSize: (_ref4 = fontSize !== null && fontSize !== void 0 ? fontSize : propsIn.fontSize) !== null && _ref4 !== void 0 ? _ref4 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.fontSize,\n fontStyle: (_ref5 = fontStyle !== null && fontStyle !== void 0 ? fontStyle : propsIn.fontStyle) !== null && _ref5 !== void 0 ? _ref5 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.fontStyle,\n fontWeight: (_ref6 = fontWeight !== null && fontWeight !== void 0 ? fontWeight : propsIn.fontWeight) !== null && _ref6 !== void 0 ? _ref6 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.fontWeight,\n letterSpacing: (_ref7 = letterSpacing !== null && letterSpacing !== void 0 ? letterSpacing : propsIn.letterSpacing) !== null && _ref7 !== void 0 ? _ref7 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.letterSpacing,\n maxFontSizeMultiplier: (_ref8 = maxFontSizeMultiplier !== null && maxFontSizeMultiplier !== void 0 ? maxFontSizeMultiplier : propsIn.maxFontSizeMultiplier) !== null && _ref8 !== void 0 ? _ref8 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.maxFontSizeMultiplier,\n noTextWrap: noTextWrap !== null && noTextWrap !== void 0 ? noTextWrap : propsIn.noTextWrap,\n textAlign: (_ref9 = textAlign !== null && textAlign !== void 0 ? textAlign : propsIn.textAlign) !== null && _ref9 !== void 0 ? _ref9 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.textAlign,\n textProps: textProps !== null && textProps !== void 0 ? textProps : propsIn.textProps\n }, {\n unstyled: process.env.GUI_HEADLESS === \"1\",\n size: finalSize !== null && finalSize !== void 0 ? finalSize : styledContext === null || styledContext === void 0 ? void 0 : styledContext.size\n });\n var _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16, _ref17;\n var textContext = {\n color: contextColor,\n ellipsis: (_ref10 = ellipsis !== null && ellipsis !== void 0 ? ellipsis : propsIn.ellipsis) !== null && _ref10 !== void 0 ? _ref10 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.ellipsis,\n fontFamily: (_ref11 = fontFamily !== null && fontFamily !== void 0 ? fontFamily : propsIn.fontFamily) !== null && _ref11 !== void 0 ? _ref11 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.fontFamily,\n fontSize: (_ref12 = fontSize !== null && fontSize !== void 0 ? fontSize : propsIn.fontSize) !== null && _ref12 !== void 0 ? _ref12 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.fontSize,\n fontStyle: (_ref13 = fontStyle !== null && fontStyle !== void 0 ? fontStyle : propsIn.fontStyle) !== null && _ref13 !== void 0 ? _ref13 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.fontStyle,\n fontWeight: (_ref14 = fontWeight !== null && fontWeight !== void 0 ? fontWeight : propsIn.fontWeight) !== null && _ref14 !== void 0 ? _ref14 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.fontWeight,\n letterSpacing: (_ref15 = letterSpacing !== null && letterSpacing !== void 0 ? letterSpacing : propsIn.letterSpacing) !== null && _ref15 !== void 0 ? _ref15 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.letterSpacing,\n maxFontSizeMultiplier: (_ref16 = maxFontSizeMultiplier !== null && maxFontSizeMultiplier !== void 0 ? maxFontSizeMultiplier : propsIn.maxFontSizeMultiplier) !== null && _ref16 !== void 0 ? _ref16 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.maxFontSizeMultiplier,\n textAlign: (_ref17 = textAlign !== null && textAlign !== void 0 ? textAlign : propsIn.textAlign) !== null && _ref17 !== void 0 ? _ref17 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.textAlign\n };\n var _props_size, _ref18, _props_variant, _ref19, _props_elevation, _ref20;\n var buttonContext = {\n ...styledContext,\n ...textContext,\n size: (_ref18 = (_props_size = props.size) !== null && _props_size !== void 0 ? _props_size : propsIn.size) !== null && _ref18 !== void 0 ? _ref18 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.size,\n variant: (_ref19 = (_props_variant = props.variant) !== null && _props_variant !== void 0 ? _props_variant : propsIn.variant) !== null && _ref19 !== void 0 ? _ref19 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.variant,\n elevation: (_ref20 = (_props_elevation = props.elevation) !== null && _props_elevation !== void 0 ? _props_elevation : propsIn.elevation) !== null && _ref20 !== void 0 ? _ref20 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.elevation\n };\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_stacks.ButtonNestingContext.Provider, {\n value: true,\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(context.Provider, {\n ...buttonContext,\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Frame, {\n ref,\n ...props,\n ...isNested && {\n render: \"span\"\n },\n // pass resolved size to circular variant when no explicit size provided\n ...props.circular && !propsIn.size && {\n size\n },\n tabIndex: 0,\n children: [\n themedIcon,\n wrappedChildren,\n themedIconAfter\n ]\n })\n })\n });\n});\nvar Button = (0, import_web.withStaticProperties)(ButtonComponent, {\n Apply: context.Provider,\n Frame,\n Text,\n Icon\n});\n//# sourceMappingURL=Button.js.map\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,SAAS,GAAGC,MAAM,CAACC,cAAc;AACrC,IAAIC,gBAAgB,GAAGF,MAAM,CAACG,wBAAwB;AACtD,IAAIC,iBAAiB,GAAGJ,MAAM,CAACK,mBAAmB;AAClD,IAAIC,YAAY,GAAGN,MAAM,CAACO,SAAS,CAACC,cAAc;AAClD,IAAIC,QAAQ,GAAGA,CAACC,MAAM,EAAEC,GAAG,KAAK;EAC9B,KAAK,IAAIC,IAAI,IAAID,GAAG,EAClBZ,SAAS,CAACW,MAAM,EAAEE,IAAI,EAAE;IAAEC,GAAG,EAAEF,GAAG,CA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C/D;EACjQ,CAAC;EACD,OAAO,eAAgB,CAAC,CAAC,EAAEd,kBAAkB,CAAC4B,GAAG,EAAEvB,aAAa,CAACwF,oBAAoB,CAAC4C,QAAQ,EAAE;IAC9F/I,KAAK,EAAE,IAAI;IACXiF,QAAQ,EAAE,eAAgB,CAAC,CAAC,EAAE3E,kBAAkB,CAAC4B,GAAG,EAAEnB,OAAO,CAACgI,QAAQ,EAAE;MACtE,GAAGD,aAAa;MAChB7D,QAAQ,EAAE,eAAgB,CAAC,CAAC,EAAE3E,kBAAkB,CAAC0I,IAAI,EAAEnH,KAAK,EAAE;QAC5DmE,GAAG;QACH,GAAGhB,KAAK;QACR,IAAGiB,QAAQ,IAAI;UACbhE,MAAM,EAAE;QACV,CAAC;QACD;QACA,IAAG+C,KAAK,CAACrB,QAAQ,IAAI,CAACoC,OAAO,CAAC9E,IAAI,IAAI;UACpCA;QACF,CAAC;QACDmB,QAAQ,EAAE,CAAC;QACX6C,QAAQ,EAAE,CACRgC,UAAU,EACVY,eAAe,EACfX,eAAe;MAEnB,CAAC;IACH,CAAC;EACH,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,IAAIhH,MAAM,GAAG,CAAC,CAAC,EAAEW,UAAU,CAACoI,oBAAoB,EAAEpD,eAAe,EAAE;EACjEqD,KAAK,EAAEnI,OAAO,CAACgI,QAAQ;EACvBlH,KAAK;EACL6C,IAAI;EACJK;AACF,CAAC,CAAC","ignoreList":[]}
@@ -1,37 +0,0 @@
1
- var import_config_default = require("@hanzogui/config-default");
2
- var import_core = require("@hanzogui/core");
3
- var import_vitest = require("vitest");
4
- var import_Button = require("./Button.cjs");
5
- var import_jsx_runtime = require("react/jsx-runtime");
6
- const conf = (0, import_core.createGui)((0, import_config_default.getDefaultGuiConfig)());
7
- (0, import_vitest.describe)("Button", () => {
8
- (0, import_vitest.test)(`123`, () => {
9
- (0, import_vitest.expect)(true).toBeTruthy();
10
- });
11
- (0, import_vitest.test)("accepts native button html props", () => {
12
- const _submitBtn = /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_Button.Button, {
13
- type: "submit",
14
- children: "Submit"
15
- });
16
- const _resetBtn = /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_Button.Button, {
17
- type: "reset",
18
- children: "Reset"
19
- });
20
- const _buttonBtn = /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_Button.Button, {
21
- type: "button",
22
- children: "Button"
23
- });
24
- const _formBtn = /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_Button.Button, {
25
- type: "submit",
26
- form: "myForm",
27
- formAction: "/submit",
28
- formMethod: "post",
29
- formTarget: "_blank",
30
- formNoValidate: true,
31
- name: "submitBtn",
32
- value: "submit",
33
- children: "Submit"
34
- });
35
- (0, import_vitest.expect)(true).toBeTruthy();
36
- });
37
- });
@@ -1,40 +0,0 @@
1
- "use strict";
2
-
3
- var import_jsx_runtime = require("react/jsx-runtime");
4
- var import_config_default = require("@hanzogui/config-default");
5
- var import_core = require("@hanzogui/core");
6
- var import_vitest = require("vitest");
7
- var import_Button = require("./Button.native.js");
8
- var conf = (0, import_core.createGui)((0, import_config_default.getDefaultGuiConfig)());
9
- (0, import_vitest.describe)("Button", function () {
10
- (0, import_vitest.test)(`123`, function () {
11
- (0, import_vitest.expect)(true).toBeTruthy();
12
- });
13
- (0, import_vitest.test)("accepts native button html props", function () {
14
- var _submitBtn = /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_Button.Button, {
15
- type: "submit",
16
- children: "Submit"
17
- });
18
- var _resetBtn = /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_Button.Button, {
19
- type: "reset",
20
- children: "Reset"
21
- });
22
- var _buttonBtn = /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_Button.Button, {
23
- type: "button",
24
- children: "Button"
25
- });
26
- var _formBtn = /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_Button.Button, {
27
- type: "submit",
28
- form: "myForm",
29
- formAction: "/submit",
30
- formMethod: "post",
31
- formTarget: "_blank",
32
- formNoValidate: true,
33
- name: "submitBtn",
34
- value: "submit",
35
- children: "Submit"
36
- });
37
- (0, import_vitest.expect)(true).toBeTruthy();
38
- });
39
- });
40
- //# sourceMappingURL=Button.test.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["import_jsx_runtime","require","import_config_default","import_core","import_vitest","import_Button","conf","createGui","getDefaultGuiConfig","describe","test","expect","toBeTruthy","_submitBtn","jsx","Button","type","children","_resetBtn","_buttonBtn","_formBtn","form","formAction","formMethod","formTarget","formNoValidate","name","value"],"sources":["Button.test.native.js"],"sourcesContent":["\"use strict\";\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_config_default = require(\"@hanzogui/config-default\");\nvar import_core = require(\"@hanzogui/core\");\nvar import_vitest = require(\"vitest\");\nvar import_Button = require(\"./Button\");\nvar conf = (0, import_core.createGui)((0, import_config_default.getDefaultGuiConfig)());\n(0, import_vitest.describe)(\"Button\", function() {\n (0, import_vitest.test)(`123`, function() {\n (0, import_vitest.expect)(true).toBeTruthy();\n });\n (0, import_vitest.test)(\"accepts native button html props\", function() {\n var _submitBtn = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Button.Button, {\n type: \"submit\",\n children: \"Submit\"\n });\n var _resetBtn = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Button.Button, {\n type: \"reset\",\n children: \"Reset\"\n });\n var _buttonBtn = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Button.Button, {\n type: \"button\",\n children: \"Button\"\n });\n var _formBtn = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Button.Button, {\n type: \"submit\",\n form: \"myForm\",\n formAction: \"/submit\",\n formMethod: \"post\",\n formTarget: \"_blank\",\n formNoValidate: true,\n name: \"submitBtn\",\n value: \"submit\",\n children: \"Submit\"\n });\n (0, import_vitest.expect)(true).toBeTruthy();\n });\n});\n//# sourceMappingURL=Button.test.js.map\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,kBA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,EAAEpB,kBAAkB,CAACc,GAAG,EAAET,aAAa,CAACU,MAAM,EAAE;MAC/EC,IAAI,EAAE,QAAQ;MACdK,IAAI,EAAE,QAAQ;MACdC,UAAU,EAAE,SAAS;MACrBC,UAAU,EAAE,MAAM;MAClBC,UAAU,EAAE,QAAQ;MACpBC,cAAc,EAAE,IAAI;MACpBC,IAAI,EAAE,WAAW;MACjBC,KAAK,EAAE,QAAQ;MACfV,QAAQ,EAAE;IACZ,CAAC,CAAC;IACF,CAAC,CAAC,EAAEb,aAAa,CAACO,MAAM,EAAE,IAAI,CAAC,CAACC,UAAU,CAAC,CAAC;EAC9C,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
@@ -1,20 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __copyProps = (to, from, except, desc) => {
6
- if (from && typeof from === "object" || typeof from === "function") {
7
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
8
- get: () => from[key],
9
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
10
- });
11
- }
12
- return to;
13
- };
14
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
16
- value: true
17
- }), mod);
18
- var index_exports = {};
19
- module.exports = __toCommonJS(index_exports);
20
- __reExport(index_exports, require("./Button.cjs"), module.exports);
@@ -1,23 +0,0 @@
1
- "use strict";
2
-
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __copyProps = (to, from, except, desc) => {
8
- if (from && typeof from === "object" || typeof from === "function") {
9
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
10
- get: () => from[key],
11
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
12
- });
13
- }
14
- return to;
15
- };
16
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
17
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
18
- value: true
19
- }), mod);
20
- var index_exports = {};
21
- module.exports = __toCommonJS(index_exports);
22
- __reExport(index_exports, require("./Button.native.js"), module.exports);
23
- //# sourceMappingURL=index.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__copyProps","to","from","except","desc","key","call","get","enumerable","__reExport","target","mod","secondTarget","__toCommonJS","value","index_exports","module","exports","require"],"sources":["index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, \"default\"), secondTarget && __copyProps(secondTarget, mod, \"default\"));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_exports = {};\nmodule.exports = __toCommonJS(index_exports);\n__reExport(index_exports, require(\"./Button\"), module.exports);\n//# sourceMappingURL=index.js.map\n"],"mappings":"AAAA,YAAY;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