@tamagui/button 2.7.7 → 3.0.0-beta.1093.1

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 (48) hide show
  1. package/dist/cjs/Button.cjs +97 -268
  2. package/dist/cjs/Button.native.cjs +122 -0
  3. package/dist/cjs/Button.native.js +100 -273
  4. package/dist/cjs/Button.native.js.map +1 -1
  5. package/dist/cjs/index.cjs +9 -11
  6. package/dist/cjs/index.native.cjs +20 -0
  7. package/dist/cjs/index.native.js +9 -10
  8. package/dist/cjs/index.native.js.map +1 -1
  9. package/dist/esm/Button.mjs +88 -257
  10. package/dist/esm/Button.mjs.map +1 -1
  11. package/dist/esm/Button.native.js +91 -263
  12. package/dist/esm/Button.native.js.map +1 -1
  13. package/dist/esm/index.js +1 -2
  14. package/dist/esm/index.mjs +1 -2
  15. package/dist/esm/index.native.js +1 -2
  16. package/dist/jsx/Button.mjs +88 -257
  17. package/dist/jsx/Button.mjs.map +1 -1
  18. package/dist/jsx/Button.native.cjs +122 -0
  19. package/dist/jsx/Button.native.js +100 -273
  20. package/dist/jsx/Button.native.js.map +1 -1
  21. package/dist/jsx/index.js +1 -2
  22. package/dist/jsx/index.mjs +1 -2
  23. package/dist/jsx/index.native.cjs +20 -0
  24. package/dist/jsx/index.native.js +9 -10
  25. package/dist/jsx/index.native.js.map +1 -1
  26. package/package.json +14 -14
  27. package/src/Button.tsx +152 -309
  28. package/types/Button.d.ts +75 -208
  29. package/types/Button.d.ts.map +1 -1
  30. package/dist/cjs/Button.test.cjs +0 -37
  31. package/dist/cjs/Button.test.native.js +0 -40
  32. package/dist/cjs/Button.test.native.js.map +0 -1
  33. package/dist/esm/Button.test.mjs +0 -38
  34. package/dist/esm/Button.test.mjs.map +0 -1
  35. package/dist/esm/Button.test.native.js +0 -38
  36. package/dist/esm/Button.test.native.js.map +0 -1
  37. package/dist/esm/index.js.map +0 -1
  38. package/dist/esm/index.mjs.map +0 -1
  39. package/dist/esm/index.native.js.map +0 -1
  40. package/dist/jsx/Button.test.mjs +0 -38
  41. package/dist/jsx/Button.test.mjs.map +0 -1
  42. package/dist/jsx/Button.test.native.js +0 -40
  43. package/dist/jsx/Button.test.native.js.map +0 -1
  44. package/dist/jsx/index.js.map +0 -1
  45. package/dist/jsx/index.mjs.map +0 -1
  46. package/src/Button.test.tsx +0 -45
  47. package/types/Button.test.d.ts +0 -2
  48. package/types/Button.test.d.ts.map +0 -1
@@ -1,268 +1,96 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { getFontSize } from "@tamagui/font-size";
3
- import { getButtonSized } from "@tamagui/get-button-sized";
4
- import { getIcon, useCurrentColor } from "@tamagui/helpers-tamagui";
5
- import { ButtonNestingContext, getElevation, themeableVariants } from "@tamagui/stacks";
6
- import { SizableText, wrapChildrenInText } from "@tamagui/text";
7
- import { createStyledContext, getTokenValue, styled, useProps, View, withStaticProperties } from "@tamagui/web";
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { useGetThemedIcon } from "@tamagui/helpers-tamagui";
3
+ import { ButtonNestingContext } from "@tamagui/stacks";
4
+ import { textParentProps, wrapChildrenInText } from "@tamagui/text";
5
+ import { Text, View, splitStyleProps, styled } from "@tamagui/web";
8
6
  import { useContext } from "react";
9
- var context = createStyledContext({
10
- size: void 0,
11
- variant: void 0,
12
- color: void 0,
13
- elevation: void 0,
14
- ellipsis: void 0,
15
- fontFamily: void 0,
16
- fontSize: void 0,
17
- fontStyle: void 0,
18
- fontWeight: void 0,
19
- letterSpacing: void 0,
20
- maxFontSizeMultiplier: void 0,
21
- textAlign: void 0
7
+
8
+ var ButtonFrame = styled(View, {
9
+ role: "button",
10
+ render: /* @__PURE__ */ jsx("button", { type: "button" }),
11
+ tabIndex: 0,
12
+ alignItems: "center",
13
+ flexDirection: "row",
14
+ flexWrap: "nowrap",
15
+ justifyContent: "center",
16
+ variants: { disabled: { true: { pointerEvents: "none" } } }
22
17
  });
23
- var Frame = styled(View, {
24
- context,
25
- name: "Button",
26
- role: "button",
27
- render: /* @__PURE__ */_jsx("button", {
28
- type: "button"
29
- }),
30
- tabIndex: 0,
31
- variants: {
32
- unstyled: {
33
- true: {
34
- // reset browser <button> defaults
35
- outlineWidth: 0,
36
- borderWidth: 0,
37
- backgroundColor: "transparent"
38
- },
39
- false: {
40
- size: "$true",
41
- justifyContent: "center",
42
- alignItems: "center",
43
- flexWrap: "nowrap",
44
- flexDirection: "row",
45
- backgroundColor: "$background",
46
- borderWidth: 1,
47
- borderColor: "transparent",
48
- "$platform-web": {
49
- cursor: "pointer"
50
- },
51
- hoverStyle: {
52
- backgroundColor: "$backgroundHover",
53
- borderColor: "$borderColorHover"
54
- },
55
- pressStyle: {
56
- backgroundColor: "$backgroundPress",
57
- borderColor: "$borderColorHover"
58
- },
59
- focusVisibleStyle: {
60
- outlineColor: "$outlineColor",
61
- outlineStyle: "solid",
62
- outlineWidth: 2
63
- }
64
- }
65
- },
66
- variant: {
67
- outlined: process.env.TAMAGUI_HEADLESS === "1" ? {} : {
68
- backgroundColor: "transparent",
69
- borderWidth: 1,
70
- borderColor: "$borderColor",
71
- hoverStyle: {
72
- backgroundColor: "transparent",
73
- borderColor: "$borderColorHover"
74
- },
75
- pressStyle: {
76
- backgroundColor: "transparent",
77
- borderColor: "$borderColorPress"
78
- }
79
- }
80
- },
81
- circular: themeableVariants.circular,
82
- chromeless: themeableVariants.chromeless,
83
- size: {
84
- "...size": function (val, extras) {
85
- var buttonStyle = getButtonSized(val, extras);
86
- var gap = getTokenValue(val);
87
- return {
88
- ...buttonStyle,
89
- gap
90
- };
91
- },
92
- ":number": function (val, extras) {
93
- var buttonStyle = getButtonSized(val, extras);
94
- var gap = val * 0.4;
95
- return {
96
- ...buttonStyle,
97
- gap
98
- };
99
- }
100
- },
101
- elevation: {
102
- "...size": getElevation,
103
- ":number": getElevation
104
- },
105
- disabled: {
106
- true: {
107
- pointerEvents: "none",
108
- // @ts-ignore
109
- "aria-disabled": true
110
- }
111
- }
112
- },
113
- defaultVariants: {
114
- unstyled: process.env.TAMAGUI_HEADLESS === "1"
115
- }
18
+ var ButtonText = styled(Text, {
19
+ flexGrow: 0,
20
+ flexShrink: 1
116
21
  });
117
- var Text = styled(SizableText, {
118
- context,
119
- variants: {
120
- unstyled: {
121
- false: {
122
- userSelect: "none",
123
- // flexGrow 1 leads to inconsistent native style where text pushes to start of view
124
- flexGrow: 0,
125
- flexShrink: 1,
126
- ellipsis: true,
127
- color: "$color",
128
- "$platform-web": {
129
- cursor: "pointer"
130
- }
131
- }
132
- }
133
- },
134
- defaultVariants: {
135
- unstyled: process.env.TAMAGUI_HEADLESS === "1"
136
- }
137
- });
138
- var Icon = function (props) {
139
- var {
140
- children,
141
- scaleIcon = 1,
142
- size
143
- } = props;
144
- var styledContext = context.useStyledContext();
145
- if (!styledContext) {
146
- throw new Error("Button.Icon must be used within a Button");
147
- }
148
- var sizeToken = size !== null && size !== void 0 ? size : styledContext.size;
149
- var iconColorProp = styledContext.color === "unset" || typeof styledContext.color === "number" ? void 0 : styledContext.color;
150
- var iconColor = useCurrentColor(iconColorProp);
151
- var iconSize = (typeof sizeToken === "number" ? sizeToken * 0.5 : getFontSize(sizeToken)) * scaleIcon;
152
- return getIcon(children, {
153
- size: iconSize,
154
- color: iconColor
155
- });
22
+ var ButtonIcon = function(param) {
23
+ var { children, color, scaleIcon = 1, size } = param;
24
+ var getThemedIcon = useGetThemedIcon({
25
+ color,
26
+ size: size === void 0 ? void 0 : size * scaleIcon
27
+ });
28
+ return getThemedIcon(children);
156
29
  };
157
- var ButtonContext = createStyledContext({
158
- size: void 0,
159
- variant: void 0,
160
- color: void 0
161
- });
162
- var ButtonComponent = Frame.styleable(function (propsIn, ref) {
163
- var isNested = useContext(ButtonNestingContext);
164
- var processedProps = useProps(propsIn, {
165
- noNormalize: true,
166
- noExpand: true
167
- });
168
- var {
169
- children,
170
- iconSize,
171
- icon,
172
- iconAfter,
173
- scaleIcon = 1,
174
- noTextWrap,
175
- textProps,
176
- color,
177
- ellipsis,
178
- fontFamily,
179
- fontSize,
180
- fontStyle,
181
- fontWeight,
182
- letterSpacing,
183
- maxFontSizeMultiplier,
184
- textAlign,
185
- ...props
186
- } = processedProps;
187
- var size = propsIn.size || (propsIn.unstyled ? void 0 : "$true");
188
- var styledContext = context.useStyledContext();
189
- var _ref;
190
- 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;
191
- var iconColorProp = contextColor === "unset" || typeof contextColor === "number" ? void 0 : contextColor;
192
- var iconColor = useCurrentColor(iconColorProp);
193
- var _ref1;
194
- var finalSize = (_ref1 = iconSize !== null && iconSize !== void 0 ? iconSize : size) !== null && _ref1 !== void 0 ? _ref1 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.size;
195
- var iconSizeNumber = (typeof finalSize === "number" ? finalSize * 0.5 : getFontSize(finalSize)) * scaleIcon;
196
- var [themedIcon, themedIconAfter] = [icon, iconAfter].map(function (icon2) {
197
- if (!icon2) return null;
198
- return getIcon(icon2, {
199
- size: iconSizeNumber,
200
- color: iconColor
201
- });
202
- });
203
- var _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9;
204
- var wrappedChildren = wrapChildrenInText(Text, {
205
- children,
206
- color: contextColor,
207
- ellipsis: (_ref2 = ellipsis !== null && ellipsis !== void 0 ? ellipsis : propsIn.ellipsis) !== null && _ref2 !== void 0 ? _ref2 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.ellipsis,
208
- fontFamily: (_ref3 = fontFamily !== null && fontFamily !== void 0 ? fontFamily : propsIn.fontFamily) !== null && _ref3 !== void 0 ? _ref3 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.fontFamily,
209
- fontSize: (_ref4 = fontSize !== null && fontSize !== void 0 ? fontSize : propsIn.fontSize) !== null && _ref4 !== void 0 ? _ref4 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.fontSize,
210
- fontStyle: (_ref5 = fontStyle !== null && fontStyle !== void 0 ? fontStyle : propsIn.fontStyle) !== null && _ref5 !== void 0 ? _ref5 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.fontStyle,
211
- fontWeight: (_ref6 = fontWeight !== null && fontWeight !== void 0 ? fontWeight : propsIn.fontWeight) !== null && _ref6 !== void 0 ? _ref6 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.fontWeight,
212
- letterSpacing: (_ref7 = letterSpacing !== null && letterSpacing !== void 0 ? letterSpacing : propsIn.letterSpacing) !== null && _ref7 !== void 0 ? _ref7 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.letterSpacing,
213
- maxFontSizeMultiplier: (_ref8 = maxFontSizeMultiplier !== null && maxFontSizeMultiplier !== void 0 ? maxFontSizeMultiplier : propsIn.maxFontSizeMultiplier) !== null && _ref8 !== void 0 ? _ref8 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.maxFontSizeMultiplier,
214
- noTextWrap: noTextWrap !== null && noTextWrap !== void 0 ? noTextWrap : propsIn.noTextWrap,
215
- textAlign: (_ref9 = textAlign !== null && textAlign !== void 0 ? textAlign : propsIn.textAlign) !== null && _ref9 !== void 0 ? _ref9 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.textAlign,
216
- textProps: textProps !== null && textProps !== void 0 ? textProps : propsIn.textProps
217
- }, {
218
- unstyled: process.env.TAMAGUI_HEADLESS === "1",
219
- size: finalSize !== null && finalSize !== void 0 ? finalSize : styledContext === null || styledContext === void 0 ? void 0 : styledContext.size
220
- });
221
- var _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16, _ref17;
222
- var textContext = {
223
- color: contextColor,
224
- ellipsis: (_ref10 = ellipsis !== null && ellipsis !== void 0 ? ellipsis : propsIn.ellipsis) !== null && _ref10 !== void 0 ? _ref10 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.ellipsis,
225
- fontFamily: (_ref11 = fontFamily !== null && fontFamily !== void 0 ? fontFamily : propsIn.fontFamily) !== null && _ref11 !== void 0 ? _ref11 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.fontFamily,
226
- fontSize: (_ref12 = fontSize !== null && fontSize !== void 0 ? fontSize : propsIn.fontSize) !== null && _ref12 !== void 0 ? _ref12 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.fontSize,
227
- fontStyle: (_ref13 = fontStyle !== null && fontStyle !== void 0 ? fontStyle : propsIn.fontStyle) !== null && _ref13 !== void 0 ? _ref13 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.fontStyle,
228
- fontWeight: (_ref14 = fontWeight !== null && fontWeight !== void 0 ? fontWeight : propsIn.fontWeight) !== null && _ref14 !== void 0 ? _ref14 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.fontWeight,
229
- letterSpacing: (_ref15 = letterSpacing !== null && letterSpacing !== void 0 ? letterSpacing : propsIn.letterSpacing) !== null && _ref15 !== void 0 ? _ref15 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.letterSpacing,
230
- maxFontSizeMultiplier: (_ref16 = maxFontSizeMultiplier !== null && maxFontSizeMultiplier !== void 0 ? maxFontSizeMultiplier : propsIn.maxFontSizeMultiplier) !== null && _ref16 !== void 0 ? _ref16 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.maxFontSizeMultiplier,
231
- textAlign: (_ref17 = textAlign !== null && textAlign !== void 0 ? textAlign : propsIn.textAlign) !== null && _ref17 !== void 0 ? _ref17 : styledContext === null || styledContext === void 0 ? void 0 : styledContext.textAlign
232
- };
233
- var _props_size, _ref18, _props_variant, _ref19, _props_elevation, _ref20;
234
- var buttonContext = {
235
- ...styledContext,
236
- ...textContext,
237
- 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,
238
- 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,
239
- 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
240
- };
241
- return /* @__PURE__ */_jsx(ButtonNestingContext.Provider, {
242
- value: true,
243
- children: /* @__PURE__ */_jsx(context.Provider, {
244
- ...buttonContext,
245
- children: /* @__PURE__ */_jsxs(Frame, {
246
- ref,
247
- ...props,
248
- ...(isNested && {
249
- render: "span"
250
- }),
251
- // pass resolved size to circular variant when no explicit size provided
252
- ...(props.circular && !propsIn.size && {
253
- size
254
- }),
255
- tabIndex: 0,
256
- children: [themedIcon, wrappedChildren, themedIconAfter]
257
- })
258
- })
259
- });
260
- });
261
- var Button = withStaticProperties(ButtonComponent, {
262
- Apply: context.Provider,
263
- Frame,
264
- Text,
265
- Icon
266
- });
267
- export { Button, ButtonContext };
30
+ function useButton(propsIn) {
31
+ var { Text: _$Text = ButtonText, iconColor, iconSize: iconSizeOption, textProps: textPropsOption } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
32
+ var isNested = useContext(ButtonNestingContext);
33
+ var [wrappedTextProps, buttonProps] = splitStyleProps(propsIn, {
34
+ expandShorthands: true,
35
+ filter: textParentProps
36
+ });
37
+ var { children, disabled, icon, iconAfter, iconSize, render, scaleIcon = 1, ...frameProps } = buttonProps;
38
+ var { noTextWrap, textProps, ...textStyleProps } = wrappedTextProps;
39
+ var resolvedIconSize = iconSize !== null && iconSize !== void 0 ? iconSize : iconSizeOption;
40
+ var getThemedIcon = useGetThemedIcon({
41
+ color: iconColor,
42
+ size: resolvedIconSize === void 0 ? void 0 : resolvedIconSize * scaleIcon
43
+ });
44
+ var [themedIcon, themedIconAfter] = [icon, iconAfter].map(function(item) {
45
+ return item ? getThemedIcon(item) : null;
46
+ });
47
+ var wrappedChildren = wrapChildrenInText(_$Text, {
48
+ children,
49
+ noTextWrap,
50
+ textProps
51
+ }, {
52
+ ...textPropsOption,
53
+ ...textStyleProps
54
+ });
55
+ var resolvedRender = render !== null && render !== void 0 ? render : isNested ? "span" : disabled ? /* @__PURE__ */ jsx("button", {
56
+ type: "button",
57
+ disabled: true
58
+ }) : void 0;
59
+ var resolvedProps = {
60
+ ...frameProps,
61
+ ...disabled && {
62
+ "aria-disabled": true,
63
+ disabled: true,
64
+ tabIndex: -1
65
+ },
66
+ ...resolvedRender === void 0 ? null : { render: resolvedRender },
67
+ ...isNested && {
68
+ role: "none",
69
+ tabIndex: -1,
70
+ "aria-disabled": void 0,
71
+ disabled: void 0,
72
+ onPress: void 0,
73
+ onPressIn: void 0,
74
+ onPressOut: void 0,
75
+ onLongPress: void 0,
76
+ onClick: void 0,
77
+ onKeyDown: void 0,
78
+ onKeyUp: void 0
79
+ },
80
+ children: /* @__PURE__ */ jsxs(ButtonNestingContext.Provider, {
81
+ value: true,
82
+ children: [
83
+ themedIcon,
84
+ wrappedChildren,
85
+ themedIconAfter
86
+ ]
87
+ })
88
+ };
89
+ return {
90
+ isNested,
91
+ props: resolvedProps
92
+ };
93
+ }
94
+
95
+ export { ButtonFrame, ButtonIcon, ButtonText, useButton };
268
96
  //# sourceMappingURL=Button.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["jsx","_jsx","jsxs","_jsxs","getFontSize","getButtonSized","getIcon","useCurrentColor","ButtonNestingContext","getElevation","themeableVariants","SizableText","wrapChildrenInText","createStyledContext","getTokenValue","styled","useProps","View","withStaticProperties","useContext","context","size","variant","color","elevation","ellipsis","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","maxFontSizeMultiplier","textAlign","Frame","name","role","render","type","tabIndex","variants","unstyled","true","outlineWidth","borderWidth","backgroundColor","false","justifyContent","alignItems","flexWrap","flexDirection","borderColor","cursor","hoverStyle","pressStyle","focusVisibleStyle","outlineColor","outlineStyle","outlined","process","env","TAMAGUI_HEADLESS","circular","chromeless","...size","val","extras","buttonStyle","gap",":number","disabled","pointerEvents","defaultVariants","Text","userSelect","flexGrow","flexShrink","Icon","props","children","scaleIcon","styledContext","useStyledContext","Error","sizeToken","iconColorProp","iconColor","iconSize","ButtonContext","ButtonComponent","styleable","propsIn","ref","isNested","processedProps","noNormalize","noExpand","icon","iconAfter","noTextWrap","textProps","_ref","contextColor","_ref1","finalSize","iconSizeNumber","themedIcon","themedIconAfter","map","icon2","_ref2","_ref3","_ref4","_ref5","_ref6","_ref7","_ref8","_ref9","wrappedChildren","_ref10","_ref11","_ref12","_ref13","_ref14","_ref15","_ref16","_ref17","textContext","_props_size","_ref18","_props_variant","_ref19","_props_elevation","_ref20","buttonContext","Provider","value","Button","Apply"],"sources":["../../src/Button.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAmBC,KAAA;AAC5B,SAASC,WAAA,4BAAsB;AAC/B,SAASC,cAAS,mCAAuB;AACzC,SAASC,OAAA,EAAAC,eAAsB,kCAAc;AAE7C,SAASC,oBAAa,EAAAC,YAAA,EAAAC,iBAA0B;AAEhD,SAAAC,WAAA,EAAAC,kBAAA;AAAA,SACEC,mBAAA,EAAAC,aAAA,EAAAC,MAAA,EAAAC,QAAA,EAAAC,IAAA,EAAAC,oBAAA;AAAA,SACAC,UAAA;AAAA,IACAC,OAAA,GAAAP,mBAAA;EACAQ,IAAA;EACAC,OAAA;EACAC,KAAA;EAAAC,SACK;EAEPC,QAAS;EA6BCC,UAAA,EAqSF;EAxTRC,QAAM,OAAU;EACdC,SAAM;EACNC,UAAS;EACTC,aAAO;EACPC,qBAAW;EACXC,SAAA,EAAU;AAAA,EACV;AAAY,IACZC,KAAA,GAAUlB,MAAA,CAAAE,IAAA;EACVG,OAAA;EACAc,IAAA,UAAY;EACZC,IAAA;EACAC,MAAA,iBAAuBnC,IAAA;IACvBoC,IAAA;EACD;EAEDC,QAAM;EACJC,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Q,CAAArE,IAAA;UAClCA;QAEM;QACDiB,QAAA;QACAwC,QAAA,GACG2B,UAAM,EACZY,eAAe,EACfX,eAAiB;MAGnB;IAGO;EAAA;AAAA;AACC,IAAA8B,MACI,GAAAtH,oBAAA,CAAAsE,eAAA;EAAAiD,KACH,EAAIrH,OAAA,CAAAkH,QAAc;EAAerG,KAEjC;EAA8CuC,IAC/C;EAAUI;AAET;AAAA,SACA4D,MACA,EAAAjD,aAAA","ignoreList":[]}
1
+ {"version":3,"file":"Button.native.js","names":[],"sources":["esm/Button.native.js"],"sourcesContent":["import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { useGetThemedIcon } from \"@tamagui/helpers-tamagui\";\nimport { ButtonNestingContext } from \"@tamagui/stacks\";\nimport { textParentProps, wrapChildrenInText } from \"@tamagui/text\";\nimport { splitStyleProps, styled, Text, View } from \"@tamagui/web\";\nimport { useContext } from \"react\";\nvar ButtonFrame = styled(View, {\n // role is the cross-platform one; render only lands on web\n role: \"button\",\n render: /* @__PURE__ */ _jsx(\"button\", {\n type: \"button\"\n }),\n tabIndex: 0,\n alignItems: \"center\",\n flexDirection: \"row\",\n flexWrap: \"nowrap\",\n justifyContent: \"center\",\n variants: {\n disabled: {\n true: {\n pointerEvents: \"none\"\n }\n }\n }\n});\nvar ButtonText = styled(Text, {\n // flexGrow 1 pushes text to the start of its parent on native\n flexGrow: 0,\n flexShrink: 1\n});\nvar ButtonIcon = function(param) {\n var { children, color, scaleIcon = 1, size } = param;\n var getThemedIcon = useGetThemedIcon({\n color,\n size: size === void 0 ? void 0 : size * scaleIcon\n });\n return getThemedIcon(children);\n};\nfunction useButton(propsIn) {\n var { Text: _$Text = ButtonText, iconColor, iconSize: iconSizeOption, textProps: textPropsOption } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};\n var isNested = useContext(ButtonNestingContext);\n var [wrappedTextProps, buttonProps] = splitStyleProps(propsIn, {\n expandShorthands: true,\n filter: textParentProps\n });\n var { children, disabled, icon, iconAfter, iconSize, render, scaleIcon = 1, ...frameProps } = buttonProps;\n var { noTextWrap, textProps, ...textStyleProps } = wrappedTextProps;\n var resolvedIconSize = iconSize !== null && iconSize !== void 0 ? iconSize : iconSizeOption;\n var getThemedIcon = useGetThemedIcon({\n color: iconColor,\n size: resolvedIconSize === void 0 ? void 0 : resolvedIconSize * scaleIcon\n });\n var [themedIcon, themedIconAfter] = [\n icon,\n iconAfter\n ].map(function(item) {\n return item ? getThemedIcon(item) : null;\n });\n var wrappedChildren = wrapChildrenInText(_$Text, {\n children,\n noTextWrap,\n textProps\n }, {\n ...textPropsOption,\n ...textStyleProps\n });\n var resolvedRender = render !== null && render !== void 0 ? render : isNested ? \"span\" : disabled ? /* @__PURE__ */ _jsx(\"button\", {\n type: \"button\",\n disabled: true\n }) : void 0;\n var resolvedProps = {\n ...frameProps,\n ...disabled && {\n \"aria-disabled\": true,\n disabled: true,\n tabIndex: -1\n },\n ...resolvedRender === void 0 ? null : {\n render: resolvedRender\n },\n ...isNested && {\n // a nested Button is a presentation part, not a control: strip the\n // interactive semantics so we never place a focusable role=button (with\n // its own press/keyboard handlers) inside the outer native <button>. that\n // nesting is invalid html, adds an extra focus stop, and bubbles\n // activation to the outer control. resolvedRender already makes it a span.\n role: \"none\",\n tabIndex: -1,\n \"aria-disabled\": void 0,\n disabled: void 0,\n onPress: void 0,\n onPressIn: void 0,\n onPressOut: void 0,\n onLongPress: void 0,\n onClick: void 0,\n onKeyDown: void 0,\n onKeyUp: void 0\n },\n children: /* @__PURE__ */ _jsxs(ButtonNestingContext.Provider, {\n value: true,\n children: [\n themedIcon,\n wrappedChildren,\n themedIconAfter\n ]\n })\n };\n return {\n isNested,\n props: resolvedProps\n };\n}\nexport {\n ButtonFrame,\n ButtonIcon,\n ButtonText,\n useButton\n};\n//# sourceMappingURL=Button.js.map\n"],"mappings":";;;;;;;;AAMA,IAAI,cAAc,OAAO,MAAM;CAE7B,MAAM;CACN,QAAwB,oBAAK,UA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W,QAAQ,WAAW,KAAK,IAAI,SAAS,WAAW,SAAS,WAA2B,oBAAK,UAAU;EACjI,MAAM;EACN,UAAU;CACZ,CAAC,IAAI,KAAK;CACV,IAAI,gBAAgB;EAClB,GAAG;EACH,GAAG,YAAY;GACb,iBAAiB;GACjB,UAAU;GACV,UAAU,CAAC;EACb;EACA,GAAG,mBAAmB,KAAK,IAAI,OAAO,EACpC,QAAQ,eACV;EACA,GAAG,YAAY;GAMb,MAAM;GACN,UAAU,CAAC;GACX,iBAAiB,KAAK;GACtB,UAAU,KAAK;GACf,SAAS,KAAK;GACd,WAAW,KAAK;GAChB,YAAY,KAAK;GACjB,aAAa,KAAK;GAClB,SAAS,KAAK;GACd,WAAW,KAAK;GAChB,SAAS,KAAK;EAChB;EACA,UAA0B,qBAAM,qBAAqB,UAAU;GAC7D,OAAO;GACP,UAAU;IACR;IACA;IACA;GACF;EACF,CAAC;CACH;CACA,OAAO;EACL;EACA,OAAO;CACT;AACF"}
package/dist/esm/index.js CHANGED
@@ -1,2 +1 @@
1
- export * from "./Button.mjs";
2
- //# sourceMappingURL=index.js.map
1
+ export * from "./Button.mjs"
@@ -1,2 +1 @@
1
- export * from "./Button.mjs";
2
- //# sourceMappingURL=index.mjs.map
1
+ export * from "./Button.mjs"
@@ -1,2 +1 @@
1
- export * from "./Button.native.js";
2
- //# sourceMappingURL=index.native.js.map
1
+ export * from "./Button.native.js"