@tamagui/button 2.0.0-rc.9 → 2.1.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
@@ -5,20 +5,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: !0
11
- });
12
- },
13
- __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
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, {
15
16
  get: () => from[key],
16
17
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
18
  });
18
- return to;
19
- };
19
+ }
20
+ return to;
21
+ };
20
22
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: !0
23
+ value: true
22
24
  }), mod);
23
25
  var Button_exports = {};
24
26
  __export(Button_exports, {
@@ -30,141 +32,147 @@ __export(Button_exports, {
30
32
  useButton: () => useButton
31
33
  });
32
34
  module.exports = __toCommonJS(Button_exports);
33
- var import_jsx_runtime = require("react/jsx-runtime"),
34
- import_font_size = require("@tamagui/font-size"),
35
- import_get_button_sized = require("@tamagui/get-button-sized"),
36
- import_helpers = require("@tamagui/helpers"),
37
- import_helpers_tamagui = require("@tamagui/helpers-tamagui"),
38
- import_stacks = require("@tamagui/stacks"),
39
- import_text = require("@tamagui/text"),
40
- import_web = require("@tamagui/web"),
41
- import_react = require("react"),
42
- import_spacer = require("@tamagui/spacer"),
43
- ButtonContext = (0, import_web.createStyledContext)({
44
- // keeping these here means they work with styled() passing down color to text
45
- color: void 0,
46
- ellipsis: void 0,
47
- fontFamily: void 0,
48
- fontSize: void 0,
49
- fontStyle: void 0,
50
- fontWeight: void 0,
51
- letterSpacing: void 0,
52
- maxFontSizeMultiplier: void 0,
53
- size: void 0,
54
- textAlign: void 0,
55
- variant: void 0
56
- }),
57
- BUTTON_NAME = "Button",
58
- ButtonFrame = (0, import_web.styled)(import_stacks.ThemeableStack, {
59
- name: BUTTON_NAME,
60
- render: "button",
61
- context: ButtonContext,
62
- role: "button",
63
- focusable: !0,
64
- variants: {
65
- unstyled: {
66
- false: {
67
- size: "$true",
68
- justifyContent: "center",
69
- alignItems: "center",
70
- flexWrap: "nowrap",
71
- flexDirection: "row",
72
- cursor: "pointer",
73
- hoverTheme: !0,
74
- pressTheme: !0,
75
- backgroundColor: "$background",
76
- borderWidth: 1,
77
- borderColor: "transparent",
78
- focusVisibleStyle: {
79
- outlineColor: "$outlineColor",
80
- outlineStyle: "solid",
81
- outlineWidth: 2
82
- }
83
- }
84
- },
85
- variant: {
86
- outlined: {
87
- backgroundColor: "transparent",
88
- borderWidth: 2,
89
- borderColor: "$borderColor",
90
- hoverStyle: {
91
- backgroundColor: "transparent",
92
- borderColor: "$borderColorHover"
93
- },
94
- pressStyle: {
95
- backgroundColor: "transparent",
96
- borderColor: "$borderColorPress"
97
- },
98
- focusVisibleStyle: {
99
- backgroundColor: "transparent",
100
- borderColor: "$borderColorFocus"
101
- }
102
- }
103
- },
104
- size: {
105
- "...size": import_get_button_sized.getButtonSized,
106
- ":number": import_get_button_sized.getButtonSized
35
+ var import_jsx_runtime = require("react/jsx-runtime");
36
+ var import_font_size = require("@tamagui/font-size");
37
+ var import_get_button_sized = require("@tamagui/get-button-sized");
38
+ var import_helpers = require("@tamagui/helpers");
39
+ var import_helpers_tamagui = require("@tamagui/helpers-tamagui");
40
+ var import_stacks = require("@tamagui/stacks");
41
+ var import_text = require("@tamagui/text");
42
+ var import_web = require("@tamagui/web");
43
+ var import_react = require("react");
44
+ var import_spacer = require("@tamagui/spacer");
45
+ var ButtonContext = (0, import_web.createStyledContext)({
46
+ // keeping these here means they work with styled() passing down color to text
47
+ color: void 0,
48
+ ellipsis: void 0,
49
+ fontFamily: void 0,
50
+ fontSize: void 0,
51
+ fontStyle: void 0,
52
+ fontWeight: void 0,
53
+ letterSpacing: void 0,
54
+ maxFontSizeMultiplier: void 0,
55
+ size: void 0,
56
+ textAlign: void 0,
57
+ variant: void 0
58
+ });
59
+ var BUTTON_NAME = "Button";
60
+ var ButtonFrame = (0, import_web.styled)(import_stacks.ThemeableStack, {
61
+ name: BUTTON_NAME,
62
+ render: "button",
63
+ context: ButtonContext,
64
+ role: "button",
65
+ focusable: true,
66
+ variants: {
67
+ unstyled: {
68
+ true: {
69
+ // reset browser <button> defaults
70
+ outlineWidth: 0,
71
+ borderWidth: 0,
72
+ backgroundColor: "transparent"
107
73
  },
108
- disabled: {
109
- true: {
110
- pointerEvents: "none"
74
+ false: {
75
+ size: "$true",
76
+ justifyContent: "center",
77
+ alignItems: "center",
78
+ flexWrap: "nowrap",
79
+ flexDirection: "row",
80
+ cursor: "pointer",
81
+ hoverTheme: true,
82
+ pressTheme: true,
83
+ backgroundColor: "$background",
84
+ borderWidth: 1,
85
+ borderColor: "transparent",
86
+ focusVisibleStyle: {
87
+ outlineColor: "$outlineColor",
88
+ outlineStyle: "solid",
89
+ outlineWidth: 2
111
90
  }
112
91
  }
113
92
  },
114
- defaultVariants: {
115
- unstyled: process.env.TAMAGUI_HEADLESS === "1"
116
- }
117
- }),
118
- ButtonText = (0, import_web.styled)(import_text.SizableText, {
119
- name: "Button",
120
- context: ButtonContext,
121
- variants: {
122
- unstyled: {
123
- false: {
124
- userSelect: "none",
125
- cursor: "pointer",
126
- // flexGrow 1 leads to inconsistent native style where text pushes to start of view
127
- flexGrow: 0,
128
- flexShrink: 1,
129
- ellipsis: !0,
130
- color: "$color"
93
+ variant: {
94
+ outlined: {
95
+ backgroundColor: "transparent",
96
+ borderWidth: 2,
97
+ borderColor: "$borderColor",
98
+ hoverStyle: {
99
+ backgroundColor: "transparent",
100
+ borderColor: "$borderColorHover"
101
+ },
102
+ pressStyle: {
103
+ backgroundColor: "transparent",
104
+ borderColor: "$borderColorPress"
105
+ },
106
+ focusVisibleStyle: {
107
+ backgroundColor: "transparent",
108
+ borderColor: "$borderColorFocus"
131
109
  }
132
110
  }
133
111
  },
134
- defaultVariants: {
135
- unstyled: process.env.TAMAGUI_HEADLESS === "1"
112
+ size: {
113
+ "...size": import_get_button_sized.getButtonSized,
114
+ ":number": import_get_button_sized.getButtonSized
115
+ },
116
+ disabled: {
117
+ true: {
118
+ pointerEvents: "none"
119
+ }
136
120
  }
137
- }),
138
- ButtonIcon = function (props) {
139
- var {
140
- children,
141
- scaleIcon = 1
142
- } = props,
143
- {
144
- size,
145
- color
146
- } = (0, import_react.useContext)(ButtonContext),
147
- iconSize = (typeof size == "number" ? size * 0.5 : (0, import_font_size.getFontSize)(size)) * scaleIcon,
148
- getThemedIcon = (0, import_helpers_tamagui.useGetThemedIcon)({
149
- size: iconSize,
150
- color
151
- });
152
- return getThemedIcon(children);
153
121
  },
154
- ButtonComponent = ButtonFrame.styleable(function (props, ref) {
155
- var {
156
- props: buttonProps
157
- } = useButton(props);
158
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)(ButtonFrame, {
159
- "data-disable-theme": !0,
160
- ...buttonProps,
161
- ref
162
- });
163
- }),
164
- Button2 = (0, import_helpers.withStaticProperties)(ButtonComponent, {
165
- Text: ButtonText,
166
- Icon: ButtonIcon
122
+ defaultVariants: {
123
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
124
+ }
125
+ });
126
+ var ButtonText = (0, import_web.styled)(import_text.SizableText, {
127
+ name: "Button",
128
+ context: ButtonContext,
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: true,
138
+ color: "$color"
139
+ }
140
+ }
141
+ },
142
+ defaultVariants: {
143
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
144
+ }
145
+ });
146
+ var ButtonIcon = function (props) {
147
+ var {
148
+ children,
149
+ scaleIcon = 1
150
+ } = props;
151
+ var {
152
+ size,
153
+ color
154
+ } = (0, import_react.useContext)(ButtonContext);
155
+ var iconSize = (typeof size === "number" ? size * 0.5 : (0, import_font_size.getFontSize)(size)) * scaleIcon;
156
+ var getThemedIcon = (0, import_helpers_tamagui.useGetThemedIcon)({
157
+ size: iconSize,
158
+ color
159
+ });
160
+ return getThemedIcon(children);
161
+ };
162
+ var ButtonComponent = ButtonFrame.styleable(function Button(props, ref) {
163
+ var {
164
+ props: buttonProps
165
+ } = useButton(props);
166
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)(ButtonFrame, {
167
+ "data-disable-theme": true,
168
+ ...buttonProps,
169
+ ref
167
170
  });
171
+ });
172
+ var Button2 = (0, import_helpers.withStaticProperties)(ButtonComponent, {
173
+ Text: ButtonText,
174
+ Icon: ButtonIcon
175
+ });
168
176
  function useButton(param) {
169
177
  var {
170
178
  textProps,
@@ -174,88 +182,88 @@ function useButton(param) {
174
182
  Text = Button2.Text
175
183
  } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
176
184
  Text: Button2.Text
177
- },
178
- isNested = (0, import_react.useContext)(import_stacks.ButtonNestingContext),
179
- propsActive = (0, import_web.useProps)(propsIn, {
180
- noNormalize: !0,
181
- noExpand: !0
182
- }),
183
- {
184
- icon,
185
- iconAfter,
186
- gap,
187
- spaceFlex,
188
- scaleIcon = 1,
189
- scaleSpace = 0.66,
190
- noTextWrap,
191
- fontFamily,
192
- fontSize,
193
- fontWeight,
194
- fontStyle,
195
- letterSpacing,
196
- render,
197
- ellipsis,
198
- maxFontSizeMultiplier,
199
- ...restProps
200
- } = propsActive,
201
- size = propsActive.size || (propsActive.unstyled ? void 0 : "$true"),
202
- color = propsActive.color,
203
- iconSize = (typeof size == "number" ? size * 0.5 : (0, import_font_size.getFontSize)(size, {
204
- font: fontFamily?.[0] === "$" ? fontFamily : void 0
205
- })) * scaleIcon,
206
- getThemedIcon = (0, import_helpers_tamagui.useGetThemedIcon)({
207
- size: iconSize,
208
- color
185
+ };
186
+ var isNested = (0, import_react.useContext)(import_stacks.ButtonNestingContext);
187
+ var propsActive = (0, import_web.useProps)(propsIn, {
188
+ noNormalize: true,
189
+ noExpand: true
190
+ });
191
+ var {
192
+ icon,
193
+ iconAfter,
194
+ gap,
195
+ spaceFlex,
196
+ scaleIcon = 1,
197
+ scaleSpace = 0.66,
198
+ noTextWrap,
199
+ fontFamily,
200
+ fontSize,
201
+ fontWeight,
202
+ fontStyle,
203
+ letterSpacing,
204
+ render,
205
+ ellipsis,
206
+ maxFontSizeMultiplier,
207
+ ...restProps
208
+ } = propsActive;
209
+ var size = propsActive.size || (propsActive.unstyled ? void 0 : "$true");
210
+ var color = propsActive.color;
211
+ var iconSize = (typeof size === "number" ? size * 0.5 : (0, import_font_size.getFontSize)(size, {
212
+ font: (fontFamily === null || fontFamily === void 0 ? void 0 : fontFamily[0]) === "$" ? fontFamily : void 0
213
+ })) * scaleIcon;
214
+ var getThemedIcon = (0, import_helpers_tamagui.useGetThemedIcon)({
215
+ size: iconSize,
216
+ color
217
+ });
218
+ var [themedIcon, themedIconAfter] = [icon, iconAfter].map(getThemedIcon);
219
+ var spaceSize = gap !== null && gap !== void 0 ? gap : (0, import_web.getVariableValue)(iconSize) * scaleSpace;
220
+ var contents = noTextWrap ? [propsIn.children] : (0, import_text.wrapChildrenInText)(Text, {
221
+ children: propsIn.children,
222
+ fontFamily,
223
+ fontSize,
224
+ textProps,
225
+ fontWeight,
226
+ fontStyle,
227
+ letterSpacing,
228
+ ellipsis,
229
+ maxFontSizeMultiplier
230
+ }, Text === ButtonText && propsActive.unstyled !== true ? {
231
+ unstyled: process.env.TAMAGUI_HEADLESS === "1",
232
+ size
233
+ } : void 0);
234
+ var inner = (0, import_spacer.spacedChildren)({
235
+ // a bit arbitrary but scaling to font size is necessary so long as button does
236
+ space: spaceSize,
237
+ spaceFlex,
238
+ ensureKeys: true,
239
+ direction: propsActive.flexDirection === "column" || propsActive.flexDirection === "column-reverse" ? "vertical" : "horizontal",
240
+ // for keys to stay the same we keep indices as similar a possible
241
+ // so even if icons are undefined we still pass them
242
+ children: [themedIcon, ...contents, themedIconAfter]
243
+ });
244
+ var props = {
245
+ size,
246
+ ...(propsIn.disabled && {
247
+ // in rnw - false still has keyboard tabIndex, undefined = not actually focusable
248
+ focusable: void 0,
249
+ // even with tabIndex unset, it will keep focusVisibleStyle on web so disable it here
250
+ focusVisibleStyle: {
251
+ borderColor: "$background"
252
+ }
209
253
  }),
210
- [themedIcon, themedIconAfter] = [icon, iconAfter].map(getThemedIcon),
211
- spaceSize = gap ?? (0, import_web.getVariableValue)(iconSize) * scaleSpace,
212
- contents = noTextWrap ? [propsIn.children] : (0, import_text.wrapChildrenInText)(Text, {
213
- children: propsIn.children,
214
- fontFamily,
215
- fontSize,
216
- textProps,
217
- fontWeight,
218
- fontStyle,
219
- letterSpacing,
220
- ellipsis,
221
- maxFontSizeMultiplier
222
- }, Text === ButtonText && propsActive.unstyled !== !0 ? {
223
- unstyled: process.env.TAMAGUI_HEADLESS === "1",
224
- size
225
- } : void 0),
226
- inner = (0, import_spacer.spacedChildren)({
227
- // a bit arbitrary but scaling to font size is necessary so long as button does
228
- space: spaceSize,
229
- spaceFlex,
230
- ensureKeys: !0,
231
- direction: propsActive.flexDirection === "column" || propsActive.flexDirection === "column-reverse" ? "vertical" : "horizontal",
232
- // for keys to stay the same we keep indices as similar a possible
233
- // so even if icons are undefined we still pass them
234
- children: [themedIcon, ...contents, themedIconAfter]
254
+ // fixes SSR issue + DOM nesting issue of not allowing button in button
255
+ render: render !== null && render !== void 0 ? render : isNested ? "span" :
256
+ // defaults to <a /> when accessibilityRole = link
257
+ // see https://github.com/tamagui/tamagui/issues/505
258
+ propsActive.accessibilityRole === "link" || propsActive.role === "link" ? "a" : "button",
259
+ ...restProps,
260
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_stacks.ButtonNestingContext.Provider, {
261
+ value: true,
262
+ children: inner
235
263
  }),
236
- props = {
237
- size,
238
- ...(propsIn.disabled && {
239
- // in rnw - false still has keyboard tabIndex, undefined = not actually focusable
240
- focusable: void 0,
241
- // even with tabIndex unset, it will keep focusVisibleStyle on web so disable it here
242
- focusVisibleStyle: {
243
- borderColor: "$background"
244
- }
245
- }),
246
- // fixes SSR issue + DOM nesting issue of not allowing button in button
247
- render: render ?? (isNested ? "span" :
248
- // defaults to <a /> when accessibilityRole = link
249
- // see https://github.com/tamagui/tamagui/issues/505
250
- propsActive.accessibilityRole === "link" || propsActive.role === "link" ? "a" : "button"),
251
- ...restProps,
252
- children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_stacks.ButtonNestingContext.Provider, {
253
- value: !0,
254
- children: inner
255
- }),
256
- // forces it to be a runtime pressStyle so it passes through context text colors
257
- disableClassName: !0
258
- };
264
+ // forces it to be a runtime pressStyle so it passes through context text colors
265
+ disableClassName: true
266
+ };
259
267
  return {
260
268
  spaceSize,
261
269
  isNested,
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","Button_exports","__export","Button","Button2","ButtonContext","ButtonFrame","ButtonIcon","ButtonText","useButton","module","exports","import_jsx_runtime","require","import_font_size","import_get_button_sized","import_helpers","import_helpers_tamagui","import_stacks","import_text","import_web","import_react","import_spacer","createStyledContext","color","ellipsis","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","maxFontSizeMultiplier","size","textAlign","variant","BUTTON_NAME","styled","ThemeableStack","name","render","context","role","focusable","variants","unstyled","false","justifyContent","alignItems","flexWrap","flexDirection","cursor","hoverTheme","pressTheme","backgroundColor","borderWidth","borderColor","focusVisibleStyle","outlineColor","outlineStyle","outlineWidth","outlined","hoverStyle","pressStyle","getButtonSized","disabled","true","pointerEvents","defaultVariants","process","env","TAMAGUI_HEADLESS","SizableText","userSelect","flexGrow","flexShrink","props","children","scaleIcon","useContext","iconSize","getFontSize","getThemedIcon","useGetThemedIcon","ButtonComponent","styleable","ref","buttonProps","jsx","withStaticProperties","Text","Icon","param","textProps","propsIn","arguments","length","isNested","ButtonNestingContext","propsActive","useProps","noNormalize","noExpand","icon","iconAfter","gap","spaceFlex","scaleSpace","noTextWrap","restProps","font","themedIcon","themedIconAfter","map","spaceSize","getVariableValue","contents","wrapChildrenInText","inner","spacedChildren","space","ensureKeys","direction","accessibilityRole","Provider","disableClassName"],"sources":["../../../src/v1/Button.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,cAAA;AAAAC,QAAA,CAAAD,cAAA;EAAAE,MAAA,EAAAA,CAAA,KAAAC,OAAA;EAAAC,aAAA,EAAAA,CAAA,KAAAA,aAAA;EAAAC,WAA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,CAAA7B,QAAA;QAAA;QAGNtB,SAAW;QAGP;QACJc,iBAAA;UACID,WAAQ;QAAY;MAAA;MAEX;MAAAhB,MAEX,EAAAA,MAAA,KAAAyD,QAAmB;MAAA;MAEnB;MACFE,WAAA,CAAAwB,iBAAA,eAAAxB,WAAA,CAAAzD,IAAA;MAEA,GAAAmE,SACE;MAEIhC,QAAA,qBAAAhE,kBAAA,CAAA2E,GAAA,EAAArE,aAAA,CAAA+E,oBAAA,CAAA0B,QAAA;QAAA3H,KAAA;QAGA4E,QAAA,EAAAyC;MAEE;MAER;MAEAO,gBACE;IAAmD;EAAA,OAGrD;IACFX,SAAA;IAEAjB,QAAO;IACLrB;EAAA;AACA","ignoreList":[]}
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","Button_exports","__export","Button","Button2","ButtonContext","ButtonFrame","ButtonIcon","ButtonText","useButton","module","exports","import_jsx_runtime","require","import_font_size","import_get_button_sized","import_helpers","import_helpers_tamagui","import_stacks","import_text","import_web","import_react","import_spacer","createStyledContext","color","ellipsis","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","maxFontSizeMultiplier","size","textAlign","variant","BUTTON_NAME","styled","ThemeableStack","name","render","context","role","focusable","variants","unstyled","true","outlineWidth","borderWidth","backgroundColor","false","justifyContent","alignItems","flexWrap","flexDirection","cursor","hoverTheme","pressTheme","borderColor","focusVisibleStyle","outlineColor","outlineStyle","outlined","hoverStyle","pressStyle","getButtonSized","disabled","pointerEvents","defaultVariants","process","env","TAMAGUI_HEADLESS","SizableText","userSelect","flexGrow","flexShrink","props","children","scaleIcon","useContext","iconSize","getFontSize","getThemedIcon","useGetThemedIcon","ButtonComponent","styleable","ref","buttonProps","jsx","withStaticProperties","Text","Icon","param","textProps","propsIn","arguments","length","isNested","ButtonNestingContext","propsActive","useProps","noNormalize","noExpand","icon","iconAfter","gap","spaceFlex","scaleSpace","noTextWrap","restProps","font","themedIcon","themedIconAfter","map","spaceSize","getVariableValue","contents","wrapChildrenInText","inner","spacedChildren","space","ensureKeys","direction","accessibilityRole","Provider","disableClassName"],"sources":["../../../src/v1/Button.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,cAAA;AAAAC,QAAA,CAAAD,cAAA;EAAAE,MAAA,EAAAA,CAAA,KAAAC,OAAA;EAAAC,aAAA,EAAAA,CAAA,KAAAA,aAAA;EAAAC,WAAA,EAAAA,CAAA,KAAAA,WAAA;EAAAC,UAAA,EAAAA,CAAA,KAAAA,UAAA;EAAAC,UAAA,EAAAA,CAAA,KAAAA,UAAA;EAAAC,SAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAf,YAA4B,CAAAK,cAAA;AAC5B,IAAAW,kBAAA,GAAAC,OAA+B;AAC/B,IAAAC,gBAAA,GAAqCD,OAAA;AACrC,IAAAE,uBAAA,GAAiCF,OAAA;AACjC,IAAAG,cAAA,GAAqDH,OAAA;AAErD,IAAAI,sBAAgD,GAAAJ,OAAA;AAEhD,IAAAK,aAAwE,GAAAL,OAAA;AAExE,IAAAM,WAAA,GAAAN,OAA2B;AAC3B,IAAAO,UAAA,GAAAP,OAA+B;AAuLpB,IAAAQ,YAAA,GAAAR,OAAA;AAnLJ,IAAAS,aAAM,GAAAT,OAAgB;AAO3B,IAAAR,aAAA,OAAAe,UAAA,CAAAG,mBAAA;EAEA;EACAC,KAAA,OAAU;EACVC,QAAA,OAAY;EACZC,UAAU;EACVC,QAAA,OAAW;EACXC,SAAA,OAAY;EACZC,UAAA,OAAe;EACfC,aAAA;EACAC,qBAAM;EACNC,IAAA,OAAW;EACXC,SAAS;EACVC,OAAA;AAyCD;AAEA,IAAAC,WAAM,WAAc;AAAuB,IACzC7B,WAAM,OAAAc,UAAA,CAAAgB,MAAA,EAAAlB,aAAA,CAA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GAAA,CAAAC,gBAAA;IAAAtC;EACA,IACA;EAAA,IACAqF,KAAA,OAAA/F,aAAA,CAAAgG,cAAA;IACF;IACAC,KAAA,EAAAN,SAAS;IACLR,SACE;IAA2Ce,UAC3C;IACFC,SACA,EAAAvB,WAAA,CAAA7C,aAAA,iBAAA6C,WAAA,CAAA7C,aAAA;IACN;IAEJ;IAA6BuB,QAAA,GAE3BkC,UAAO,EACP,GAAAK,QAAA,EACAJ,eAAY;EAKN;EAAA,IAAApC,KAAA;IAGN3C,IAAA;IACD,IAAA6D,OAAA,CAAA5B,QAAA;MAED;MACEvB,SAAA;MACA;MAAwBgB,iBAAA;QAEtBD,WAAW;MAAA;IAAA;IAEQ;IACJlB,MACf,EAAAA,MAAA,aAAAA,MAAA,cAAAA,MAAA,GAAAyD,QAAA;IACF;IAAA;IAEAE,WACE,CAAAwB,iBAEI,eAAAxB,WAAA,CAAAzD,IAAA;IAAA,GAAAmE,SAAA;IAAAhC,QAGA,iBAAY,IAAAhE,kBAAgC,CAAA2E,GAAA,EAAArE,aAAqB,CAAA+E,oBAE/D,CAAA0B,QAAA;MAAA3H,KAAA;MAER4E,QAAG,EAAAyC;IAEH;IACqD;IAGrDO,gBAAA,EAAkB;EACpB;EAEA,OAAO;IACLX,SAAA;IACAjB,QAAA;IACArB;EACF;AACF","ignoreList":[]}
@@ -1,9 +1,9 @@
1
- var import_config_default = require("@tamagui/config-default"),
2
- import_core = require("@tamagui/core"),
3
- import_vitest = require("vitest");
1
+ var import_config_default = require("@tamagui/config-default");
2
+ var import_core = require("@tamagui/core");
3
+ var import_vitest = require("vitest");
4
4
  const conf = (0, import_core.createTamagui)((0, import_config_default.getDefaultTamaguiConfig)());
5
5
  (0, import_vitest.describe)("Button", () => {
6
- (0, import_vitest.test)("123", () => {
7
- (0, import_vitest.expect)(!0).toBeTruthy();
6
+ (0, import_vitest.test)(`123`, () => {
7
+ (0, import_vitest.expect)(true).toBeTruthy();
8
8
  });
9
9
  });
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
 
3
- var import_config_default = require("@tamagui/config-default"),
4
- import_core = require("@tamagui/core"),
5
- import_vitest = require("vitest"),
6
- conf = (0, import_core.createTamagui)((0, import_config_default.getDefaultTamaguiConfig)());
3
+ var import_config_default = require("@tamagui/config-default");
4
+ var import_core = require("@tamagui/core");
5
+ var import_vitest = require("vitest");
6
+ var conf = (0, import_core.createTamagui)((0, import_config_default.getDefaultTamaguiConfig)());
7
7
  (0, import_vitest.describe)("Button", function () {
8
- (0, import_vitest.test)("123", function () {
9
- (0, import_vitest.expect)(!0).toBeTruthy();
8
+ (0, import_vitest.test)(`123`, function () {
9
+ (0, import_vitest.expect)(true).toBeTruthy();
10
10
  });
11
11
  });
12
12
  //# sourceMappingURL=Button.test.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["import_config_default","require","import_core","import_vitest","conf","createTamagui","getDefaultTamaguiConfig","describe","test","expect","toBeTruthy"],"sources":["../../../src/v1/Button.test.tsx"],"sourcesContent":[null],"mappings":"AAAA;;AAIA,IAAAA,qBAAa,GAAAC,OAAA,0BAAc;EAAAC,WAAA,GAAAD,OAAA,gBAAyB;EAAAE,aAAA,GAAAF,OAAA;EAAAG,IAAA,OAAAF,WAAA,CAAAG,aAAA,MAAAL,qBAAA,CAAAM,uBAAA;AAAA,IAEpDH,aAAA,CAAAI,QAAA,EAAS,UAAU,YAAM;EACvB,IAAAJ,aAAA,CAAAK,IAAA,EAAK,OAAO,YAAM;IAChB,IAAAL,aAAA,CAAAM,MAAA,EAAO,EAAI,EAAEC,UAAA,CAAW;EAC1B,CAAC;AAWH,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["import_config_default","require","import_core","import_vitest","conf","createTamagui","getDefaultTamaguiConfig","describe","test","expect","toBeTruthy"],"sources":["../../../src/v1/Button.test.tsx"],"sourcesContent":[null],"mappings":"AAAA;;AACA,IAAAA,qBAA8B,GAAAC,OAAA;AAC9B,IAAAC,WAAA,GAAAD,OAAuC;AAEvC,IAAAE,aAAa,GAAAF,OAAA;AAAuC,IAEpDG,IAAA,OAAAF,WAAA,CAAAG,aAAmB,IAAM,EAAAL,qBAAA,CAAAM,uBAAA;AACvB,IAAAH,aAAA,CAAAI,QAAK,UAAO,cAAM;EAChB,IAAAJ,aAAA,CAAAK,IAAA,OAAO,cAAM;IACd,IAAAL,aAAA,CAAAM,MAAA,QAAAC,UAAA;EAWF","ignoreList":[]}
@@ -3,15 +3,17 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  var __copyProps = (to, from, except, desc) => {
6
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
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, {
7
8
  get: () => from[key],
8
9
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
9
10
  });
10
- return to;
11
- },
12
- __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
11
+ }
12
+ return to;
13
+ };
14
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
13
15
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
14
- value: !0
16
+ value: true
15
17
  }), mod);
16
18
  var v1_exports = {};
17
19
  module.exports = __toCommonJS(v1_exports);
@@ -5,15 +5,17 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __copyProps = (to, from, except, desc) => {
8
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
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, {
9
10
  get: () => from[key],
10
11
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
11
12
  });
12
- return to;
13
- },
14
- __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
13
+ }
14
+ return to;
15
+ };
16
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
17
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
16
- value: !0
18
+ value: true
17
19
  }), mod);
18
20
  var v1_exports = {};
19
21
  module.exports = __toCommonJS(v1_exports);
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","v1_exports","module","exports"],"sources":["../../../src/v1/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,UAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAP,YAAc,CAAAK,UAAA","ignoreList":[]}
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","v1_exports","module","exports"],"sources":["../../../src/v1/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,UAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAP,YAAc,CAAAK,UAAA","ignoreList":[]}