@tamagui/button 2.0.0-rc.4 → 2.0.0-rc.40
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.
- package/dist/cjs/Button.cjs +195 -186
- package/dist/cjs/Button.native.js +195 -188
- package/dist/cjs/Button.native.js.map +1 -1
- package/dist/cjs/Button.test.cjs +33 -5
- package/dist/cjs/Button.test.native.js +34 -6
- package/dist/cjs/Button.test.native.js.map +1 -1
- package/dist/cjs/index.cjs +7 -5
- package/dist/cjs/index.native.js +7 -5
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/v1/Button.cjs +215 -212
- package/dist/cjs/v1/Button.native.js +217 -215
- package/dist/cjs/v1/Button.native.js.map +1 -1
- package/dist/cjs/v1/Button.test.cjs +5 -5
- package/dist/cjs/v1/Button.test.native.js +6 -6
- package/dist/cjs/v1/Button.test.native.js.map +1 -1
- package/dist/cjs/v1/index.cjs +7 -5
- package/dist/cjs/v1/index.native.js +7 -5
- package/dist/cjs/v1/index.native.js.map +1 -1
- package/dist/esm/Button.mjs +175 -168
- package/dist/esm/Button.mjs.map +1 -1
- package/dist/esm/Button.native.js +175 -170
- package/dist/esm/Button.native.js.map +1 -1
- package/dist/esm/Button.test.mjs +30 -2
- package/dist/esm/Button.test.mjs.map +1 -1
- package/dist/esm/Button.test.native.js +30 -2
- package/dist/esm/Button.test.native.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -6
- package/dist/esm/v1/Button.mjs +193 -192
- package/dist/esm/v1/Button.mjs.map +1 -1
- package/dist/esm/v1/Button.native.js +194 -194
- package/dist/esm/v1/Button.native.js.map +1 -1
- package/dist/esm/v1/Button.test.mjs +2 -2
- package/dist/esm/v1/Button.test.mjs.map +1 -1
- package/dist/esm/v1/Button.test.native.js +2 -2
- package/dist/esm/v1/Button.test.native.js.map +1 -1
- package/dist/jsx/Button.mjs +175 -168
- package/dist/jsx/Button.mjs.map +1 -1
- package/dist/jsx/Button.native.js +195 -188
- package/dist/jsx/Button.native.js.map +1 -1
- package/dist/jsx/Button.test.mjs +30 -2
- package/dist/jsx/Button.test.mjs.map +1 -1
- package/dist/jsx/Button.test.native.js +34 -6
- package/dist/jsx/Button.test.native.js.map +1 -1
- package/dist/jsx/index.js +1 -1
- package/dist/jsx/index.js.map +1 -6
- package/dist/jsx/index.native.js +7 -5
- package/dist/jsx/v1/Button.mjs +193 -192
- package/dist/jsx/v1/Button.mjs.map +1 -1
- package/dist/jsx/v1/Button.native.js +217 -215
- package/dist/jsx/v1/Button.native.js.map +1 -1
- package/dist/jsx/v1/Button.test.mjs +2 -2
- package/dist/jsx/v1/Button.test.mjs.map +1 -1
- package/dist/jsx/v1/Button.test.native.js +6 -6
- package/dist/jsx/v1/Button.test.native.js.map +1 -1
- package/dist/jsx/v1/index.native.js +7 -5
- package/package.json +15 -18
- package/src/Button.test.tsx +24 -0
- package/src/Button.tsx +16 -3
- package/types/Button.d.ts +9 -0
- package/types/Button.d.ts.map +1 -1
- package/dist/cjs/Button.js +0 -176
- package/dist/cjs/Button.js.map +0 -6
- package/dist/cjs/Button.test.js +0 -8
- package/dist/cjs/Button.test.js.map +0 -6
- package/dist/cjs/index.js +0 -15
- package/dist/cjs/index.js.map +0 -6
- package/dist/cjs/v1/Button.js +0 -208
- package/dist/cjs/v1/Button.js.map +0 -6
- package/dist/cjs/v1/Button.test.js +0 -8
- package/dist/cjs/v1/Button.test.js.map +0 -6
- package/dist/cjs/v1/index.js +0 -15
- package/dist/cjs/v1/index.js.map +0 -6
- package/dist/esm/Button.js +0 -174
- package/dist/esm/Button.js.map +0 -6
- package/dist/esm/Button.test.js +0 -10
- package/dist/esm/Button.test.js.map +0 -6
- package/dist/esm/v1/Button.js +0 -201
- package/dist/esm/v1/Button.js.map +0 -6
- package/dist/esm/v1/Button.test.js +0 -10
- package/dist/esm/v1/Button.test.js.map +0 -6
- package/dist/esm/v1/index.js +0 -2
- package/dist/esm/v1/index.js.map +0 -6
- package/dist/jsx/Button.js +0 -174
- package/dist/jsx/Button.js.map +0 -6
- package/dist/jsx/Button.test.js +0 -10
- package/dist/jsx/Button.test.js.map +0 -6
- package/dist/jsx/v1/Button.js +0 -201
- package/dist/jsx/v1/Button.js.map +0 -6
- package/dist/jsx/v1/Button.test.js +0 -10
- package/dist/jsx/v1/Button.test.js.map +0 -6
- package/dist/jsx/v1/index.js +0 -2
- 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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
-
|
|
19
|
-
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
20
22
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value:
|
|
23
|
+
value: true
|
|
22
24
|
}), mod);
|
|
23
25
|
var Button_exports = {};
|
|
24
26
|
__export(Button_exports, {
|
|
@@ -26,197 +28,202 @@ __export(Button_exports, {
|
|
|
26
28
|
ButtonContext: () => ButtonContext
|
|
27
29
|
});
|
|
28
30
|
module.exports = __toCommonJS(Button_exports);
|
|
29
|
-
var import_jsx_runtime = require("react/jsx-runtime")
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
31
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
32
|
+
var import_font_size = require("@tamagui/font-size");
|
|
33
|
+
var import_get_button_sized = require("@tamagui/get-button-sized");
|
|
34
|
+
var import_helpers_tamagui = require("@tamagui/helpers-tamagui");
|
|
35
|
+
var import_stacks = require("@tamagui/stacks");
|
|
36
|
+
var import_text = require("@tamagui/text");
|
|
37
|
+
var import_web = require("@tamagui/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
|
+
});
|
|
45
|
+
var Frame = (0, import_web.styled)(import_web.View, {
|
|
46
|
+
context,
|
|
47
|
+
name: "Button",
|
|
48
|
+
role: "button",
|
|
49
|
+
render: /* @__PURE__ */(0, import_jsx_runtime.jsx)("button", {
|
|
50
|
+
type: "button"
|
|
42
51
|
}),
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
borderColor: "
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
backgroundColor: "$backgroundPress",
|
|
69
|
-
borderColor: "$borderColorHover"
|
|
70
|
-
},
|
|
71
|
-
focusVisibleStyle: {
|
|
72
|
-
outlineColor: "$outlineColor",
|
|
73
|
-
outlineStyle: "solid",
|
|
74
|
-
outlineWidth: 2
|
|
75
|
-
}
|
|
52
|
+
tabIndex: 0,
|
|
53
|
+
variants: {
|
|
54
|
+
unstyled: {
|
|
55
|
+
false: {
|
|
56
|
+
size: "$true",
|
|
57
|
+
justifyContent: "center",
|
|
58
|
+
alignItems: "center",
|
|
59
|
+
flexWrap: "nowrap",
|
|
60
|
+
flexDirection: "row",
|
|
61
|
+
cursor: "pointer",
|
|
62
|
+
backgroundColor: "$background",
|
|
63
|
+
borderWidth: 1,
|
|
64
|
+
borderColor: "transparent",
|
|
65
|
+
hoverStyle: {
|
|
66
|
+
backgroundColor: "$backgroundHover",
|
|
67
|
+
borderColor: "$borderColorHover"
|
|
68
|
+
},
|
|
69
|
+
pressStyle: {
|
|
70
|
+
backgroundColor: "$backgroundPress",
|
|
71
|
+
borderColor: "$borderColorHover"
|
|
72
|
+
},
|
|
73
|
+
focusVisibleStyle: {
|
|
74
|
+
outlineColor: "$outlineColor",
|
|
75
|
+
outlineStyle: "solid",
|
|
76
|
+
outlineWidth: 2
|
|
76
77
|
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
variant: {
|
|
81
|
+
outlined: process.env.TAMAGUI_HEADLESS === "1" ? {} : {
|
|
82
|
+
backgroundColor: "transparent",
|
|
83
|
+
borderWidth: 1,
|
|
84
|
+
borderColor: "$borderColor",
|
|
85
|
+
hoverStyle: {
|
|
80
86
|
backgroundColor: "transparent",
|
|
81
|
-
|
|
82
|
-
borderColor: "$borderColor",
|
|
83
|
-
hoverStyle: {
|
|
84
|
-
backgroundColor: "transparent",
|
|
85
|
-
borderColor: "$borderColorHover"
|
|
86
|
-
},
|
|
87
|
-
pressStyle: {
|
|
88
|
-
backgroundColor: "transparent",
|
|
89
|
-
borderColor: "$borderColorPress"
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
circular: import_stacks.themeableVariants.circular,
|
|
94
|
-
chromeless: import_stacks.themeableVariants.chromeless,
|
|
95
|
-
size: {
|
|
96
|
-
"...size": function (val, extras) {
|
|
97
|
-
var buttonStyle = (0, import_get_button_sized.getButtonSized)(val, extras),
|
|
98
|
-
gap = (0, import_web.getTokenValue)(val);
|
|
99
|
-
return {
|
|
100
|
-
...buttonStyle,
|
|
101
|
-
gap
|
|
102
|
-
};
|
|
87
|
+
borderColor: "$borderColorHover"
|
|
103
88
|
},
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
return {
|
|
108
|
-
...buttonStyle,
|
|
109
|
-
gap
|
|
110
|
-
};
|
|
89
|
+
pressStyle: {
|
|
90
|
+
backgroundColor: "transparent",
|
|
91
|
+
borderColor: "$borderColorPress"
|
|
111
92
|
}
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
circular: import_stacks.themeableVariants.circular,
|
|
96
|
+
chromeless: import_stacks.themeableVariants.chromeless,
|
|
97
|
+
size: {
|
|
98
|
+
"...size": function (val, extras) {
|
|
99
|
+
var buttonStyle = (0, import_get_button_sized.getButtonSized)(val, extras);
|
|
100
|
+
var gap = (0, import_web.getTokenValue)(val);
|
|
101
|
+
return {
|
|
102
|
+
...buttonStyle,
|
|
103
|
+
gap
|
|
104
|
+
};
|
|
112
105
|
},
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
// @ts-ignore
|
|
121
|
-
"aria-disabled": !0
|
|
122
|
-
}
|
|
106
|
+
":number": function (val, extras) {
|
|
107
|
+
var buttonStyle = (0, import_get_button_sized.getButtonSized)(val, extras);
|
|
108
|
+
var gap = val * 0.4;
|
|
109
|
+
return {
|
|
110
|
+
...buttonStyle,
|
|
111
|
+
gap
|
|
112
|
+
};
|
|
123
113
|
}
|
|
124
114
|
},
|
|
125
|
-
|
|
126
|
-
|
|
115
|
+
elevation: {
|
|
116
|
+
"...size": import_stacks.getElevation,
|
|
117
|
+
":number": import_stacks.getElevation
|
|
118
|
+
},
|
|
119
|
+
disabled: {
|
|
120
|
+
true: {
|
|
121
|
+
pointerEvents: "none",
|
|
122
|
+
// @ts-ignore
|
|
123
|
+
"aria-disabled": true
|
|
124
|
+
}
|
|
127
125
|
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
126
|
+
},
|
|
127
|
+
defaultVariants: {
|
|
128
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
var Text = (0, import_web.styled)(import_text.SizableText, {
|
|
132
|
+
context,
|
|
133
|
+
variants: {
|
|
134
|
+
unstyled: {
|
|
135
|
+
false: {
|
|
136
|
+
userSelect: "none",
|
|
137
|
+
cursor: "pointer",
|
|
138
|
+
// flexGrow 1 leads to inconsistent native style where text pushes to start of view
|
|
139
|
+
flexGrow: 0,
|
|
140
|
+
flexShrink: 1,
|
|
141
|
+
ellipsis: true,
|
|
142
|
+
color: "$color"
|
|
142
143
|
}
|
|
143
|
-
},
|
|
144
|
-
defaultVariants: {
|
|
145
|
-
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
146
144
|
}
|
|
147
|
-
}),
|
|
148
|
-
Icon = function (props) {
|
|
149
|
-
var {
|
|
150
|
-
children,
|
|
151
|
-
scaleIcon = 1,
|
|
152
|
-
size
|
|
153
|
-
} = props,
|
|
154
|
-
styledContext = context.useStyledContext();
|
|
155
|
-
if (!styledContext) throw new Error("Button.Icon must be used within a Button");
|
|
156
|
-
var sizeToken = size ?? styledContext.size,
|
|
157
|
-
iconSize = (typeof sizeToken == "number" ? sizeToken * 0.5 : (0, import_font_size.getFontSize)(sizeToken)) * scaleIcon;
|
|
158
|
-
return (0, import_helpers_tamagui.getIcon)(children, {
|
|
159
|
-
size: iconSize,
|
|
160
|
-
color: styledContext.color
|
|
161
|
-
});
|
|
162
145
|
},
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
146
|
+
defaultVariants: {
|
|
147
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
var Icon = function (props) {
|
|
151
|
+
var {
|
|
152
|
+
children,
|
|
153
|
+
scaleIcon = 1,
|
|
154
|
+
size
|
|
155
|
+
} = props;
|
|
156
|
+
var styledContext = context.useStyledContext();
|
|
157
|
+
if (!styledContext) {
|
|
158
|
+
throw new Error("Button.Icon must be used within a Button");
|
|
159
|
+
}
|
|
160
|
+
var sizeToken = size !== null && size !== void 0 ? size : styledContext.size;
|
|
161
|
+
var iconColor = (0, import_helpers_tamagui.useCurrentColor)(styledContext.color);
|
|
162
|
+
var iconSize = (typeof sizeToken === "number" ? sizeToken * 0.5 : (0, import_font_size.getFontSize)(sizeToken)) * scaleIcon;
|
|
163
|
+
return (0, import_helpers_tamagui.getIcon)(children, {
|
|
164
|
+
size: iconSize,
|
|
165
|
+
color: iconColor
|
|
166
|
+
});
|
|
167
|
+
};
|
|
168
|
+
var ButtonContext = (0, import_web.createStyledContext)({
|
|
169
|
+
size: void 0,
|
|
170
|
+
variant: void 0,
|
|
171
|
+
color: void 0
|
|
172
|
+
});
|
|
173
|
+
var ButtonComponent = Frame.styleable(function (propsIn, ref) {
|
|
174
|
+
var isNested = (0, import_react.useContext)(import_stacks.ButtonNestingContext);
|
|
175
|
+
var processedProps = (0, import_web.useProps)(propsIn, {
|
|
176
|
+
noNormalize: true,
|
|
177
|
+
noExpand: true
|
|
178
|
+
});
|
|
179
|
+
var {
|
|
180
|
+
children,
|
|
181
|
+
iconSize,
|
|
182
|
+
icon,
|
|
183
|
+
iconAfter,
|
|
184
|
+
scaleIcon = 1,
|
|
185
|
+
...props
|
|
186
|
+
} = processedProps;
|
|
187
|
+
var size = propsIn.size || (propsIn.unstyled ? void 0 : "$true");
|
|
188
|
+
var styledContext = context.useStyledContext();
|
|
189
|
+
var iconColor = (0, import_helpers_tamagui.useCurrentColor)(styledContext === null || styledContext === void 0 ? void 0 : styledContext.color);
|
|
190
|
+
var _ref;
|
|
191
|
+
var finalSize = (_ref = iconSize !== null && iconSize !== void 0 ? iconSize : size) !== null && _ref !== void 0 ? _ref : styledContext === null || styledContext === void 0 ? void 0 : styledContext.size;
|
|
192
|
+
var iconSizeNumber = (typeof finalSize === "number" ? finalSize * 0.5 : (0, import_font_size.getFontSize)(finalSize)) * scaleIcon;
|
|
193
|
+
var [themedIcon, themedIconAfter] = [icon, iconAfter].map(function (icon2) {
|
|
194
|
+
if (!icon2) return null;
|
|
195
|
+
return (0, import_helpers_tamagui.getIcon)(icon2, {
|
|
196
|
+
size: iconSizeNumber,
|
|
197
|
+
color: iconColor
|
|
198
|
+
});
|
|
199
|
+
});
|
|
200
|
+
var wrappedChildren = (0, import_text.wrapChildrenInText)(Text, {
|
|
201
|
+
children
|
|
202
|
+
}, {
|
|
203
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1",
|
|
204
|
+
size: finalSize !== null && finalSize !== void 0 ? finalSize : styledContext === null || styledContext === void 0 ? void 0 : styledContext.size
|
|
205
|
+
});
|
|
206
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_stacks.ButtonNestingContext.Provider, {
|
|
207
|
+
value: true,
|
|
208
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsxs)(Frame, {
|
|
209
|
+
ref,
|
|
210
|
+
...props,
|
|
211
|
+
...(isNested && {
|
|
212
|
+
render: "span"
|
|
173
213
|
}),
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
icon,
|
|
178
|
-
iconAfter,
|
|
179
|
-
scaleIcon = 1,
|
|
180
|
-
...props
|
|
181
|
-
} = processedProps,
|
|
182
|
-
size = propsIn.size || (propsIn.unstyled ? void 0 : "$true"),
|
|
183
|
-
styledContext = context.useStyledContext(),
|
|
184
|
-
_ref,
|
|
185
|
-
finalSize = (_ref = iconSize ?? size) !== null && _ref !== void 0 ? _ref : styledContext?.size,
|
|
186
|
-
iconSizeNumber = (typeof finalSize == "number" ? finalSize * 0.5 : (0, import_font_size.getFontSize)(finalSize)) * scaleIcon,
|
|
187
|
-
[themedIcon, themedIconAfter] = [icon, iconAfter].map(function (icon2) {
|
|
188
|
-
return icon2 ? (0, import_helpers_tamagui.getIcon)(icon2, {
|
|
189
|
-
size: iconSizeNumber,
|
|
190
|
-
color: styledContext?.color
|
|
191
|
-
}) : null;
|
|
214
|
+
// Pass resolved size to circular variant when no explicit size provided
|
|
215
|
+
...(props.circular && !propsIn.size && {
|
|
216
|
+
size
|
|
192
217
|
}),
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
unstyled: process.env.TAMAGUI_HEADLESS === "1",
|
|
197
|
-
size: finalSize ?? styledContext?.size
|
|
198
|
-
});
|
|
199
|
-
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_stacks.ButtonNestingContext.Provider, {
|
|
200
|
-
value: !0,
|
|
201
|
-
children: /* @__PURE__ */(0, import_jsx_runtime.jsxs)(Frame, {
|
|
202
|
-
ref,
|
|
203
|
-
...props,
|
|
204
|
-
...(isNested && {
|
|
205
|
-
render: "span"
|
|
206
|
-
}),
|
|
207
|
-
// Pass resolved size to circular variant when no explicit size provided
|
|
208
|
-
...(props.circular && !propsIn.size && {
|
|
209
|
-
size
|
|
210
|
-
}),
|
|
211
|
-
tabIndex: 0,
|
|
212
|
-
children: [themedIcon, wrappedChildren, themedIconAfter]
|
|
213
|
-
})
|
|
214
|
-
});
|
|
215
|
-
}),
|
|
216
|
-
Button = (0, import_web.withStaticProperties)(ButtonComponent, {
|
|
217
|
-
Apply: context.Provider,
|
|
218
|
-
Frame,
|
|
219
|
-
Text,
|
|
220
|
-
Icon
|
|
218
|
+
tabIndex: 0,
|
|
219
|
+
children: [themedIcon, wrappedChildren, themedIconAfter]
|
|
220
|
+
})
|
|
221
221
|
});
|
|
222
|
+
});
|
|
223
|
+
var Button = (0, import_web.withStaticProperties)(ButtonComponent, {
|
|
224
|
+
Apply: context.Provider,
|
|
225
|
+
Frame,
|
|
226
|
+
Text,
|
|
227
|
+
Icon
|
|
228
|
+
});
|
|
222
229
|
//# sourceMappingURL=Button.native.js.map
|
|
@@ -1 +1 @@
|
|
|
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_helpers_tamagui","import_stacks","import_text","import_web","import_react","context","createStyledContext","size","variant","color","elevation","Frame","styled","View","role","render","jsx","type","tabIndex","variants","unstyled","false","justifyContent","alignItems","flexWrap","flexDirection","cursor","backgroundColor","borderWidth","borderColor","hoverStyle","pressStyle","focusVisibleStyle","outlineColor","outlineStyle","outlineWidth","outlined","process","env","TAMAGUI_HEADLESS","circular","themeableVariants","chromeless","...size","val","extras","buttonStyle","getButtonSized","gap","getTokenValue",":number","getElevation","disabled","true","pointerEvents","defaultVariants","Text","SizableText","userSelect","flexGrow","flexShrink","ellipsis","Icon","props","children","scaleIcon","styledContext","useStyledContext","Error","sizeToken","iconSize","getFontSize","getIcon","ButtonComponent","styleable","propsIn","ref","isNested","useContext","ButtonNestingContext","processedProps","useProps","noNormalize","noExpand","icon","iconAfter","_ref","finalSize","iconSizeNumber","themedIcon","themedIconAfter","map","icon2","wrappedChildren","wrapChildrenInText","Provider"
|
|
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_helpers_tamagui","import_stacks","import_text","import_web","import_react","context","createStyledContext","size","variant","color","elevation","Frame","styled","View","role","render","jsx","type","tabIndex","variants","unstyled","false","justifyContent","alignItems","flexWrap","flexDirection","cursor","backgroundColor","borderWidth","borderColor","hoverStyle","pressStyle","focusVisibleStyle","outlineColor","outlineStyle","outlineWidth","outlined","process","env","TAMAGUI_HEADLESS","circular","themeableVariants","chromeless","...size","val","extras","buttonStyle","getButtonSized","gap","getTokenValue",":number","getElevation","disabled","true","pointerEvents","defaultVariants","Text","SizableText","userSelect","flexGrow","flexShrink","ellipsis","Icon","props","children","scaleIcon","styledContext","useStyledContext","Error","sizeToken","iconColor","useCurrentColor","iconSize","getFontSize","getIcon","ButtonComponent","styleable","propsIn","ref","isNested","useContext","ButtonNestingContext","processedProps","useProps","noNormalize","noExpand","icon","iconAfter","_ref","finalSize","iconSizeNumber","themedIcon","themedIconAfter","map","icon2","wrappedChildren","wrapChildrenInText","Provider"],"sources":["../../src/Button.tsx"],"sourcesContent":[null],"mappings":"AAAA,YAAS;;AACT,IAAAA,SAAS,GAAAC,MAAA,CAAAC,cAAsB;AAC/B,IAAAC,gBAAkB,GAAAF,MAAA,CAAAG,wBAAuB;AACzC,IAAAC,iBAAS,GAAAJ,MAAA,CAAsBK,mBAAc;AAC7C,IAAAC,YAAS,GAAAN,MAAa,CAAAO,SAAA,CAAAC,cAA0B;AAEhD,IAAAC,QAAA,GAAAA,CAAAC,MAAA,EAAAC,GAAA;EACE,SAAAC,IAAA,IAAAD,GAAA,EACAZ,SAAA,CAAAW,MAAA,EAAAE,IAAA;IAAAC,GAAA,EAAAF,GAAA,CAAAC,IAAA;IAAAE,UAAA;E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FyB,eAAA,OAAA7F,WAAA,CAAA8F,kBAAA,EAAAxC,IAAA;IAEHQ;EAEM;IACL5C,QAAO,EAAAiB,OAAQ,CAAAC,GAAA,CAAAC,gBAAA;IACfhC,IAAA,EAAAkF,SAAA,aAAAA,SAAA,cAAAA,SAAA,GAAAvB,aAAA,aAAAA,aAAA,uBAAAA,aAAA,CAAA3D;EACA;EACA,0BAAAX,kBAAA,CAAAoB,GAAA,EAAAf,aAAA,CAAAgF,oBAAA,CAAAgB,QAAA;IACD3G,KAAA","ignoreList":[]}
|
package/dist/jsx/Button.test.mjs
CHANGED
|
@@ -1,10 +1,38 @@
|
|
|
1
1
|
import { getDefaultTamaguiConfig } from "@tamagui/config-default";
|
|
2
2
|
import { createTamagui } from "@tamagui/core";
|
|
3
3
|
import { describe, expect, test } from "vitest";
|
|
4
|
+
import { Button } from "./Button.mjs";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
6
|
const conf = createTamagui(getDefaultTamaguiConfig());
|
|
5
7
|
describe("Button", () => {
|
|
6
|
-
test(
|
|
7
|
-
expect(
|
|
8
|
+
test(`123`, () => {
|
|
9
|
+
expect(true).toBeTruthy();
|
|
10
|
+
});
|
|
11
|
+
test("accepts native button html props", () => {
|
|
12
|
+
const _submitBtn = /* @__PURE__ */jsx(Button, {
|
|
13
|
+
type: "submit",
|
|
14
|
+
children: "Submit"
|
|
15
|
+
});
|
|
16
|
+
const _resetBtn = /* @__PURE__ */jsx(Button, {
|
|
17
|
+
type: "reset",
|
|
18
|
+
children: "Reset"
|
|
19
|
+
});
|
|
20
|
+
const _buttonBtn = /* @__PURE__ */jsx(Button, {
|
|
21
|
+
type: "button",
|
|
22
|
+
children: "Button"
|
|
23
|
+
});
|
|
24
|
+
const _formBtn = /* @__PURE__ */jsx(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
|
+
expect(true).toBeTruthy();
|
|
8
36
|
});
|
|
9
37
|
});
|
|
10
38
|
//# sourceMappingURL=Button.test.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getDefaultTamaguiConfig","createTamagui","describe","expect","test","conf","toBeTruthy"],"sources":["../../src/Button.test.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,uBAAA,QAA+B;AACxC,SAASC,aAAA,QAAqB;AAC9B,SAASC,QAAA,EAAUC,MAAA,EAAQC,IAAA,QAAY;
|
|
1
|
+
{"version":3,"names":["getDefaultTamaguiConfig","createTamagui","describe","expect","test","Button","jsx","conf","toBeTruthy","_submitBtn","type","children","_resetBtn","_buttonBtn","_formBtn","form","formAction","formMethod","formTarget","formNoValidate","name","value"],"sources":["../../src/Button.test.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,uBAAA,QAA+B;AACxC,SAASC,aAAA,QAAqB;AAC9B,SAASC,QAAA,EAAUC,MAAA,EAAQC,IAAA,QAAY;AACvC,SAASC,MAAA,QAAc;AAYA,SAAAC,GAAA;AAVvB,MAAMC,IAAA,GAAON,aAAA,CAAcD,uBAAA,CAAwB,CAAC;AAEpDE,QAAA,CAAS,UAAU,MAAM;EACvBE,IAAA,CAAK,OAAO,MAAM;IAChBD,MAAA,CAAO,IAAI,EAAEK,UAAA,CAAW;EAC1B,CAAC;EAGDJ,IAAA,CAAK,oCAAoC,MAAM;IAE7C,MAAMK,UAAA,GAAa,eAAAH,GAAA,CAACD,MAAA;MAAOK,IAAA,EAAK;MAASC,QAAA;IAAA,CAAM;IAC/C,MAAMC,SAAA,GAAY,eAAAN,GAAA,CAACD,MAAA;MAAOK,IAAA,EAAK;MAAQC,QAAA;IAAA,CAAK;IAC5C,MAAME,UAAA,GAAa,eAAAP,GAAA,CAACD,MAAA;MAAOK,IAAA,EAAK;MAASC,QAAA;IAAA,CAAM;IAC/C,MAAMG,QAAA,GACJ,eAAAR,GAAA,CAACD,MAAA;MACCK,IAAA,EAAK;MACLK,IAAA,EAAK;MACLC,UAAA,EAAW;MACXC,UAAA,EAAW;MACXC,UAAA,EAAW;MACXC,cAAA,EAAc;MACdC,IAAA,EAAK;MACLC,KAAA,EAAM;MACPV,QAAA;IAAA,CAED;IAEFR,MAAA,CAAO,IAAI,EAAEK,UAAA,CAAW;EAC1B,CAAC;AAWH,CAAC","ignoreList":[]}
|
|
@@ -1,12 +1,40 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
4
|
+
var import_config_default = require("@tamagui/config-default");
|
|
5
|
+
var import_core = require("@tamagui/core");
|
|
6
|
+
var import_vitest = require("vitest");
|
|
7
|
+
var import_Button = require("./Button.native.js");
|
|
8
|
+
var conf = (0, import_core.createTamagui)((0, import_config_default.getDefaultTamaguiConfig)());
|
|
7
9
|
(0, import_vitest.describe)("Button", function () {
|
|
8
|
-
(0, import_vitest.test)(
|
|
9
|
-
(0, import_vitest.expect)(
|
|
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();
|
|
10
38
|
});
|
|
11
39
|
});
|
|
12
40
|
//# sourceMappingURL=Button.test.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["import_jsx_runtime","require","import_config_default","import_core","import_vitest","import_Button","conf","createTamagui","getDefaultTamaguiConfig","describe","test","expect","toBeTruthy","_submitBtn","jsx","Button","type","children","_resetBtn","_buttonBtn","_formBtn","form","formAction","formMethod","formTarget","formNoValidate"],"sources":["../../src/Button.test.tsx"],"sourcesContent":[null],"mappings":"AAAA,YAAS;;AACT,IAAAA,kBAAS,GAAAC,OAAqB;AAC9B,IAAAC,qBAAmB,GAAQD,OAAA,0BAAY;AACvC,IAAAE,WAAS,GAAAF,OAAc;AAYA,IAAAG,aAAA,GAAAH,OAAA;AAVvB,IAAAI,aAAa,GAAAJ,OAAc;AAE3B,IAAAK,IAAA,GAAS,IAAAH,WAAgB,CAAAI,aAAA,MAAAL,qBAAA,CAAAM,uBAAA;AACvB,IAAAJ,aAAY,CAAAK,QAAM;EAChB,IAAAL,aAAa,CAAAM,IAAA,OAAW;IACzB,IAAAN,aAAA,CAAAO,MAAA,QAAAC,UAAA;EAGD;EAEE,IAAAR,aAAM,CAAAM,IAAa,oCAAa,cAAS;IACzC,IAAAG,UAAM,kBAAY,IAAAb,kBAAa,CAAAc,GAAA,EAAAT,aAAQ,CAAAU,MAAA,EAAK;MAC5CC,IAAM;MACNC,QAAM;IACJ,EAAC;IAAA,IAAAC,SAAA,sBAAAlB,kBAAA,CAAAc,GAAA,EAAAT,aAAA,CAAAU,MAAA;MAAAC,IACC,SAAK;MAAAC,QACA;IAAA;IACM,IACXE,UAAA,GAAW,mBAAAnB,kBAAA,CAAAc,GAAA,EAAAT,aAAA,CAAAU,MAAA;MAAAC,IACX,UAAW;MAAAC,QACX;IAAc;IACT,IACLG,QAAM,sBAAApB,kBAAA,CAAAc,GAAA,EAAAT,aAAA,CAAAU,MAAA;MAAAC,IACP;MAAAK,IAAA;MAEDC,UAAA;MAEFC,UAAW,EAAE;MACdC,UAAA;MAWFC,cAAA","ignoreList":[]}
|
package/dist/jsx/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./Button";
|
|
1
|
+
export * from "./Button.mjs";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/jsx/index.js.map
CHANGED
package/dist/jsx/index.native.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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:
|
|
18
|
+
value: true
|
|
17
19
|
}), mod);
|
|
18
20
|
var index_exports = {};
|
|
19
21
|
module.exports = __toCommonJS(index_exports);
|