@tamagui/button 2.0.0-rc.9 → 2.0.0

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 (96) hide show
  1. package/dist/cjs/Button.cjs +247 -174
  2. package/dist/cjs/Button.native.js +252 -177
  3. package/dist/cjs/Button.native.js.map +1 -1
  4. package/dist/cjs/Button.test.cjs +33 -5
  5. package/dist/cjs/Button.test.native.js +34 -6
  6. package/dist/cjs/Button.test.native.js.map +1 -1
  7. package/dist/cjs/index.cjs +7 -5
  8. package/dist/cjs/index.native.js +7 -5
  9. package/dist/cjs/index.native.js.map +1 -1
  10. package/dist/cjs/v1/Button.cjs +221 -212
  11. package/dist/cjs/v1/Button.native.js +223 -215
  12. package/dist/cjs/v1/Button.native.js.map +1 -1
  13. package/dist/cjs/v1/Button.test.cjs +5 -5
  14. package/dist/cjs/v1/Button.test.native.js +6 -6
  15. package/dist/cjs/v1/Button.test.native.js.map +1 -1
  16. package/dist/cjs/v1/index.cjs +7 -5
  17. package/dist/cjs/v1/index.native.js +7 -5
  18. package/dist/cjs/v1/index.native.js.map +1 -1
  19. package/dist/esm/Button.mjs +227 -156
  20. package/dist/esm/Button.mjs.map +1 -1
  21. package/dist/esm/Button.native.js +232 -159
  22. package/dist/esm/Button.native.js.map +1 -1
  23. package/dist/esm/Button.test.mjs +30 -2
  24. package/dist/esm/Button.test.mjs.map +1 -1
  25. package/dist/esm/Button.test.native.js +30 -2
  26. package/dist/esm/Button.test.native.js.map +1 -1
  27. package/dist/esm/index.js +1 -1
  28. package/dist/esm/index.js.map +1 -6
  29. package/dist/esm/v1/Button.mjs +199 -192
  30. package/dist/esm/v1/Button.mjs.map +1 -1
  31. package/dist/esm/v1/Button.native.js +200 -194
  32. package/dist/esm/v1/Button.native.js.map +1 -1
  33. package/dist/esm/v1/Button.test.mjs +2 -2
  34. package/dist/esm/v1/Button.test.mjs.map +1 -1
  35. package/dist/esm/v1/Button.test.native.js +2 -2
  36. package/dist/esm/v1/Button.test.native.js.map +1 -1
  37. package/dist/jsx/Button.mjs +227 -156
  38. package/dist/jsx/Button.mjs.map +1 -1
  39. package/dist/jsx/Button.native.js +252 -177
  40. package/dist/jsx/Button.native.js.map +1 -1
  41. package/dist/jsx/Button.test.mjs +30 -2
  42. package/dist/jsx/Button.test.mjs.map +1 -1
  43. package/dist/jsx/Button.test.native.js +34 -6
  44. package/dist/jsx/Button.test.native.js.map +1 -1
  45. package/dist/jsx/index.js +1 -1
  46. package/dist/jsx/index.js.map +1 -6
  47. package/dist/jsx/index.native.js +7 -5
  48. package/dist/jsx/v1/Button.mjs +199 -192
  49. package/dist/jsx/v1/Button.mjs.map +1 -1
  50. package/dist/jsx/v1/Button.native.js +223 -215
  51. package/dist/jsx/v1/Button.native.js.map +1 -1
  52. package/dist/jsx/v1/Button.test.mjs +2 -2
  53. package/dist/jsx/v1/Button.test.mjs.map +1 -1
  54. package/dist/jsx/v1/Button.test.native.js +6 -6
  55. package/dist/jsx/v1/Button.test.native.js.map +1 -1
  56. package/dist/jsx/v1/index.native.js +7 -5
  57. package/package.json +14 -13
  58. package/src/Button.test.tsx +24 -0
  59. package/src/Button.tsx +129 -25
  60. package/src/v1/Button.tsx +6 -0
  61. package/types/Button.d.ts +148 -39
  62. package/types/Button.d.ts.map +1 -1
  63. package/types/v1/Button.d.ts +21 -21
  64. package/types/v1/Button.d.ts.map +1 -1
  65. package/dist/cjs/Button.js +0 -176
  66. package/dist/cjs/Button.js.map +0 -6
  67. package/dist/cjs/Button.test.js +0 -8
  68. package/dist/cjs/Button.test.js.map +0 -6
  69. package/dist/cjs/index.js +0 -15
  70. package/dist/cjs/index.js.map +0 -6
  71. package/dist/cjs/v1/Button.js +0 -208
  72. package/dist/cjs/v1/Button.js.map +0 -6
  73. package/dist/cjs/v1/Button.test.js +0 -8
  74. package/dist/cjs/v1/Button.test.js.map +0 -6
  75. package/dist/cjs/v1/index.js +0 -15
  76. package/dist/cjs/v1/index.js.map +0 -6
  77. package/dist/esm/Button.js +0 -174
  78. package/dist/esm/Button.js.map +0 -6
  79. package/dist/esm/Button.test.js +0 -10
  80. package/dist/esm/Button.test.js.map +0 -6
  81. package/dist/esm/v1/Button.js +0 -201
  82. package/dist/esm/v1/Button.js.map +0 -6
  83. package/dist/esm/v1/Button.test.js +0 -10
  84. package/dist/esm/v1/Button.test.js.map +0 -6
  85. package/dist/esm/v1/index.js +0 -2
  86. package/dist/esm/v1/index.js.map +0 -6
  87. package/dist/jsx/Button.js +0 -174
  88. package/dist/jsx/Button.js.map +0 -6
  89. package/dist/jsx/Button.test.js +0 -10
  90. package/dist/jsx/Button.test.js.map +0 -6
  91. package/dist/jsx/v1/Button.js +0 -201
  92. package/dist/jsx/v1/Button.js.map +0 -6
  93. package/dist/jsx/v1/Button.test.js +0 -10
  94. package/dist/jsx/v1/Button.test.js.map +0 -6
  95. package/dist/jsx/v1/index.js +0 -2
  96. package/dist/jsx/v1/index.js.map +0 -6
@@ -3,20 +3,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: !0
9
- });
10
- },
11
- __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: true
9
+ });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
13
14
  get: () => from[key],
14
15
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
16
  });
16
- return to;
17
- };
17
+ }
18
+ return to;
19
+ };
18
20
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
- value: !0
21
+ value: true
20
22
  }), mod);
21
23
  var Button_exports = {};
22
24
  __export(Button_exports, {
@@ -24,176 +26,246 @@ __export(Button_exports, {
24
26
  ButtonContext: () => ButtonContext
25
27
  });
26
28
  module.exports = __toCommonJS(Button_exports);
27
- var import_font_size = require("@tamagui/font-size"),
28
- import_get_button_sized = require("@tamagui/get-button-sized"),
29
- import_helpers_tamagui = require("@tamagui/helpers-tamagui"),
30
- import_stacks = require("@tamagui/stacks"),
31
- import_text = require("@tamagui/text"),
32
- import_web = require("@tamagui/web"),
33
- import_react = require("react"),
34
- import_jsx_runtime = require("react/jsx-runtime");
29
+ var import_font_size = require("@tamagui/font-size");
30
+ var import_get_button_sized = require("@tamagui/get-button-sized");
31
+ var import_helpers_tamagui = require("@tamagui/helpers-tamagui");
32
+ var import_stacks = require("@tamagui/stacks");
33
+ var import_text = require("@tamagui/text");
34
+ var import_web = require("@tamagui/web");
35
+ var import_react = require("react");
36
+ var import_jsx_runtime = require("react/jsx-runtime");
35
37
  const context = (0, import_web.createStyledContext)({
36
- size: void 0,
37
- variant: void 0,
38
- color: void 0,
39
- elevation: void 0
38
+ size: void 0,
39
+ variant: void 0,
40
+ color: void 0,
41
+ elevation: void 0,
42
+ ellipsis: void 0,
43
+ fontFamily: void 0,
44
+ fontSize: void 0,
45
+ fontStyle: void 0,
46
+ fontWeight: void 0,
47
+ letterSpacing: void 0,
48
+ maxFontSizeMultiplier: void 0,
49
+ textAlign: void 0
50
+ });
51
+ const Frame = (0, import_web.styled)(import_web.View, {
52
+ context,
53
+ name: "Button",
54
+ role: "button",
55
+ render: /* @__PURE__ */(0, import_jsx_runtime.jsx)("button", {
56
+ type: "button"
40
57
  }),
41
- Frame = (0, import_web.styled)(import_web.View, {
42
- context,
43
- name: "Button",
44
- role: "button",
45
- render: /* @__PURE__ */(0, import_jsx_runtime.jsx)("button", {
46
- type: "button"
47
- }),
48
- tabIndex: 0,
49
- variants: {
50
- unstyled: {
51
- false: {
52
- size: "$true",
53
- justifyContent: "center",
54
- alignItems: "center",
55
- flexWrap: "nowrap",
56
- flexDirection: "row",
57
- cursor: "pointer",
58
- backgroundColor: "$background",
59
- borderWidth: 1,
60
- borderColor: "transparent",
61
- hoverStyle: {
62
- backgroundColor: "$backgroundHover",
63
- borderColor: "$borderColorHover"
64
- },
65
- pressStyle: {
66
- backgroundColor: "$backgroundPress",
67
- borderColor: "$borderColorHover"
68
- },
69
- focusVisibleStyle: {
70
- outlineColor: "$outlineColor",
71
- outlineStyle: "solid",
72
- outlineWidth: 2
73
- }
74
- }
58
+ tabIndex: 0,
59
+ variants: {
60
+ unstyled: {
61
+ true: {
62
+ // reset browser <button> defaults
63
+ outlineWidth: 0,
64
+ borderWidth: 0,
65
+ backgroundColor: "transparent"
75
66
  },
76
- variant: {
77
- outlined: process.env.TAMAGUI_HEADLESS === "1" ? {} : {
78
- backgroundColor: "transparent",
79
- borderWidth: 1,
80
- borderColor: "$borderColor",
81
- hoverStyle: {
82
- backgroundColor: "transparent",
83
- borderColor: "$borderColorHover"
84
- },
85
- pressStyle: {
86
- backgroundColor: "transparent",
87
- borderColor: "$borderColorPress"
88
- }
67
+ false: {
68
+ size: "$true",
69
+ justifyContent: "center",
70
+ alignItems: "center",
71
+ flexWrap: "nowrap",
72
+ flexDirection: "row",
73
+ backgroundColor: "$background",
74
+ borderWidth: 1,
75
+ borderColor: "transparent",
76
+ "$platform-web": {
77
+ cursor: "pointer"
78
+ },
79
+ hoverStyle: {
80
+ backgroundColor: "$backgroundHover",
81
+ borderColor: "$borderColorHover"
82
+ },
83
+ pressStyle: {
84
+ backgroundColor: "$backgroundPress",
85
+ borderColor: "$borderColorHover"
86
+ },
87
+ focusVisibleStyle: {
88
+ outlineColor: "$outlineColor",
89
+ outlineStyle: "solid",
90
+ outlineWidth: 2
89
91
  }
90
- },
91
- circular: import_stacks.themeableVariants.circular,
92
- chromeless: import_stacks.themeableVariants.chromeless,
93
- size: {
94
- "...size": (val, extras) => {
95
- const buttonStyle = (0, import_get_button_sized.getButtonSized)(val, extras),
96
- gap = (0, import_web.getTokenValue)(val);
97
- return {
98
- ...buttonStyle,
99
- gap
100
- };
92
+ }
93
+ },
94
+ variant: {
95
+ outlined: process.env.TAMAGUI_HEADLESS === "1" ? {} : {
96
+ backgroundColor: "transparent",
97
+ borderWidth: 1,
98
+ borderColor: "$borderColor",
99
+ hoverStyle: {
100
+ backgroundColor: "transparent",
101
+ borderColor: "$borderColorHover"
101
102
  },
102
- ":number": (val, extras) => {
103
- const buttonStyle = (0, import_get_button_sized.getButtonSized)(val, extras),
104
- gap = val * 0.4;
105
- return {
106
- ...buttonStyle,
107
- gap
108
- };
103
+ pressStyle: {
104
+ backgroundColor: "transparent",
105
+ borderColor: "$borderColorPress"
109
106
  }
107
+ }
108
+ },
109
+ circular: import_stacks.themeableVariants.circular,
110
+ chromeless: import_stacks.themeableVariants.chromeless,
111
+ size: {
112
+ "...size": (val, extras) => {
113
+ const buttonStyle = (0, import_get_button_sized.getButtonSized)(val, extras);
114
+ const gap = (0, import_web.getTokenValue)(val);
115
+ return {
116
+ ...buttonStyle,
117
+ gap
118
+ };
110
119
  },
111
- elevation: {
112
- "...size": import_stacks.getElevation,
113
- ":number": import_stacks.getElevation
114
- },
115
- disabled: {
116
- true: {
117
- pointerEvents: "none",
118
- // @ts-ignore
119
- "aria-disabled": !0
120
- }
120
+ ":number": (val, extras) => {
121
+ const buttonStyle = (0, import_get_button_sized.getButtonSized)(val, extras);
122
+ const gap = val * 0.4;
123
+ return {
124
+ ...buttonStyle,
125
+ gap
126
+ };
121
127
  }
122
128
  },
123
- defaultVariants: {
124
- unstyled: process.env.TAMAGUI_HEADLESS === "1"
129
+ elevation: {
130
+ "...size": import_stacks.getElevation,
131
+ ":number": import_stacks.getElevation
132
+ },
133
+ disabled: {
134
+ true: {
135
+ pointerEvents: "none",
136
+ // @ts-ignore
137
+ "aria-disabled": true
138
+ }
125
139
  }
126
- }),
127
- Text = (0, import_web.styled)(import_text.SizableText, {
128
- context,
129
- variants: {
130
- unstyled: {
131
- false: {
132
- userSelect: "none",
133
- cursor: "pointer",
134
- // flexGrow 1 leads to inconsistent native style where text pushes to start of view
135
- flexGrow: 0,
136
- flexShrink: 1,
137
- ellipsis: !0,
138
- color: "$color"
140
+ },
141
+ defaultVariants: {
142
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
143
+ }
144
+ });
145
+ const Text = (0, import_web.styled)(import_text.SizableText, {
146
+ context,
147
+ variants: {
148
+ unstyled: {
149
+ false: {
150
+ userSelect: "none",
151
+ // flexGrow 1 leads to inconsistent native style where text pushes to start of view
152
+ flexGrow: 0,
153
+ flexShrink: 1,
154
+ ellipsis: true,
155
+ color: "$color",
156
+ "$platform-web": {
157
+ cursor: "pointer"
139
158
  }
140
159
  }
141
- },
142
- defaultVariants: {
143
- unstyled: process.env.TAMAGUI_HEADLESS === "1"
144
160
  }
145
- }),
146
- Icon = props => {
147
- const {
148
- children,
149
- scaleIcon = 1,
150
- size
151
- } = props,
152
- styledContext = context.useStyledContext();
153
- if (!styledContext) throw new Error("Button.Icon must be used within a Button");
154
- const sizeToken = size ?? styledContext.size,
155
- iconSize = (typeof sizeToken == "number" ? sizeToken * 0.5 : (0, import_font_size.getFontSize)(sizeToken)) * scaleIcon;
156
- return (0, import_helpers_tamagui.getIcon)(children, {
157
- size: iconSize,
158
- color: styledContext.color
159
- });
160
161
  },
161
- ButtonContext = (0, import_web.createStyledContext)({
162
- size: void 0,
163
- variant: void 0,
164
- color: void 0
165
- }),
166
- ButtonComponent = Frame.styleable((propsIn, ref) => {
167
- const isNested = (0, import_react.useContext)(import_stacks.ButtonNestingContext),
168
- processedProps = (0, import_web.useProps)(propsIn, {
169
- noNormalize: !0,
170
- noExpand: !0
171
- }),
172
- {
173
- children,
174
- iconSize,
175
- icon,
176
- iconAfter,
177
- scaleIcon = 1,
178
- ...props
179
- } = processedProps,
180
- size = propsIn.size || (propsIn.unstyled ? void 0 : "$true"),
181
- styledContext = context.useStyledContext(),
182
- finalSize = iconSize ?? size ?? styledContext?.size,
183
- iconSizeNumber = (typeof finalSize == "number" ? finalSize * 0.5 : (0, import_font_size.getFontSize)(finalSize)) * scaleIcon,
184
- [themedIcon, themedIconAfter] = [icon, iconAfter].map(icon2 => icon2 ? (0, import_helpers_tamagui.getIcon)(icon2, {
185
- size: iconSizeNumber,
186
- color: styledContext?.color
187
- // No marginLeft or marginRight needed - spacing is handled by the gap property in Frame's size variants
188
- }) : null),
189
- wrappedChildren = (0, import_text.wrapChildrenInText)(Text, {
190
- children
191
- }, {
192
- unstyled: process.env.TAMAGUI_HEADLESS === "1",
193
- size: finalSize ?? styledContext?.size
194
- });
195
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_stacks.ButtonNestingContext.Provider, {
196
- value: !0,
162
+ defaultVariants: {
163
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
164
+ }
165
+ });
166
+ const Icon = props => {
167
+ const {
168
+ children,
169
+ scaleIcon = 1,
170
+ size
171
+ } = props;
172
+ const styledContext = context.useStyledContext();
173
+ if (!styledContext) {
174
+ throw new Error("Button.Icon must be used within a Button");
175
+ }
176
+ const sizeToken = size ?? styledContext.size;
177
+ const iconColorProp = styledContext.color === "unset" || typeof styledContext.color === "number" ? void 0 : styledContext.color;
178
+ const iconColor = (0, import_helpers_tamagui.useCurrentColor)(iconColorProp);
179
+ const iconSize = (typeof sizeToken === "number" ? sizeToken * 0.5 : (0, import_font_size.getFontSize)(sizeToken)) * scaleIcon;
180
+ return (0, import_helpers_tamagui.getIcon)(children, {
181
+ size: iconSize,
182
+ color: iconColor
183
+ });
184
+ };
185
+ const ButtonContext = (0, import_web.createStyledContext)({
186
+ size: void 0,
187
+ variant: void 0,
188
+ color: void 0
189
+ });
190
+ const ButtonComponent = Frame.styleable((propsIn, ref) => {
191
+ const isNested = (0, import_react.useContext)(import_stacks.ButtonNestingContext);
192
+ const processedProps = (0, import_web.useProps)(propsIn, {
193
+ noNormalize: true,
194
+ noExpand: true
195
+ });
196
+ const {
197
+ children,
198
+ iconSize,
199
+ icon,
200
+ iconAfter,
201
+ scaleIcon = 1,
202
+ noTextWrap,
203
+ textProps,
204
+ color,
205
+ ellipsis,
206
+ fontFamily,
207
+ fontSize,
208
+ fontStyle,
209
+ fontWeight,
210
+ letterSpacing,
211
+ maxFontSizeMultiplier,
212
+ textAlign,
213
+ ...props
214
+ } = processedProps;
215
+ const size = propsIn.size || (propsIn.unstyled ? void 0 : "$true");
216
+ const styledContext = context.useStyledContext();
217
+ const contextColor = color ?? propsIn.color ?? styledContext?.color;
218
+ const iconColorProp = contextColor === "unset" || typeof contextColor === "number" ? void 0 : contextColor;
219
+ const iconColor = (0, import_helpers_tamagui.useCurrentColor)(iconColorProp);
220
+ const finalSize = iconSize ?? size ?? styledContext?.size;
221
+ const iconSizeNumber = (typeof finalSize === "number" ? finalSize * 0.5 : (0, import_font_size.getFontSize)(finalSize)) * scaleIcon;
222
+ const [themedIcon, themedIconAfter] = [icon, iconAfter].map(icon2 => {
223
+ if (!icon2) return null;
224
+ return (0, import_helpers_tamagui.getIcon)(icon2, {
225
+ size: iconSizeNumber,
226
+ color: iconColor
227
+ // No marginLeft or marginRight needed - spacing is handled by the gap property in Frame's size variants
228
+ });
229
+ });
230
+ const wrappedChildren = (0, import_text.wrapChildrenInText)(Text, {
231
+ children,
232
+ color: contextColor,
233
+ ellipsis: ellipsis ?? propsIn.ellipsis ?? styledContext?.ellipsis,
234
+ fontFamily: fontFamily ?? propsIn.fontFamily ?? styledContext?.fontFamily,
235
+ fontSize: fontSize ?? propsIn.fontSize ?? styledContext?.fontSize,
236
+ fontStyle: fontStyle ?? propsIn.fontStyle ?? styledContext?.fontStyle,
237
+ fontWeight: fontWeight ?? propsIn.fontWeight ?? styledContext?.fontWeight,
238
+ letterSpacing: letterSpacing ?? propsIn.letterSpacing ?? styledContext?.letterSpacing,
239
+ maxFontSizeMultiplier: maxFontSizeMultiplier ?? propsIn.maxFontSizeMultiplier ?? styledContext?.maxFontSizeMultiplier,
240
+ noTextWrap: noTextWrap ?? propsIn.noTextWrap,
241
+ textAlign: textAlign ?? propsIn.textAlign ?? styledContext?.textAlign,
242
+ textProps: textProps ?? propsIn.textProps
243
+ }, {
244
+ unstyled: process.env.TAMAGUI_HEADLESS === "1",
245
+ size: finalSize ?? styledContext?.size
246
+ });
247
+ const textContext = {
248
+ color: contextColor,
249
+ ellipsis: ellipsis ?? propsIn.ellipsis ?? styledContext?.ellipsis,
250
+ fontFamily: fontFamily ?? propsIn.fontFamily ?? styledContext?.fontFamily,
251
+ fontSize: fontSize ?? propsIn.fontSize ?? styledContext?.fontSize,
252
+ fontStyle: fontStyle ?? propsIn.fontStyle ?? styledContext?.fontStyle,
253
+ fontWeight: fontWeight ?? propsIn.fontWeight ?? styledContext?.fontWeight,
254
+ letterSpacing: letterSpacing ?? propsIn.letterSpacing ?? styledContext?.letterSpacing,
255
+ maxFontSizeMultiplier: maxFontSizeMultiplier ?? propsIn.maxFontSizeMultiplier ?? styledContext?.maxFontSizeMultiplier,
256
+ textAlign: textAlign ?? propsIn.textAlign ?? styledContext?.textAlign
257
+ };
258
+ const buttonContext = {
259
+ ...styledContext,
260
+ ...textContext,
261
+ size: props.size ?? propsIn.size ?? styledContext?.size,
262
+ variant: props.variant ?? propsIn.variant ?? styledContext?.variant,
263
+ elevation: props.elevation ?? propsIn.elevation ?? styledContext?.elevation
264
+ };
265
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_stacks.ButtonNestingContext.Provider, {
266
+ value: true,
267
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(context.Provider, {
268
+ ...buttonContext,
197
269
  children: /* @__PURE__ */(0, import_jsx_runtime.jsxs)(Frame, {
198
270
  ref,
199
271
  ...props,
@@ -206,11 +278,12 @@ const context = (0, import_web.createStyledContext)({
206
278
  tabIndex: 0,
207
279
  children: [themedIcon, wrappedChildren, themedIconAfter]
208
280
  })
209
- });
210
- }),
211
- Button = (0, import_web.withStaticProperties)(ButtonComponent, {
212
- Apply: context.Provider,
213
- Frame,
214
- Text,
215
- Icon
216
- });
281
+ })
282
+ });
283
+ });
284
+ const Button = (0, import_web.withStaticProperties)(ButtonComponent, {
285
+ Apply: context.Provider,
286
+ Frame,
287
+ Text,
288
+ Icon
289
+ });