@react-spectrum/button 3.14.1 → 3.15.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.
- package/dist/import.mjs +30 -28
- package/dist/main.css +1 -1
- package/dist/main.js +30 -28
- package/dist/main.js.map +1 -1
- package/dist/module.js +30 -28
- package/dist/module.js.map +1 -1
- package/package.json +14 -15
- package/src/Button.tsx +3 -3
package/dist/import.mjs
CHANGED
@@ -13,9 +13,11 @@ import $d7FTw$spectrumiconsuiCornerTriangle from "@spectrum-icons/ui/CornerTrian
|
|
13
13
|
import $d7FTw$spectrumiconsuiCrossSmall from "@spectrum-icons/ui/CrossSmall";
|
14
14
|
import {useToggleState as $d7FTw$useToggleState} from "@react-stately/toggle";
|
15
15
|
|
16
|
+
|
16
17
|
function $parcel$interopDefault(a) {
|
17
18
|
return a && a.__esModule ? a.default : a;
|
18
19
|
}
|
20
|
+
|
19
21
|
function $parcel$export(e, n, v, s) {
|
20
22
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
21
23
|
}
|
@@ -45,49 +47,49 @@ function $parcel$export(e, n, v, s) {
|
|
45
47
|
var $94fed84ca44dbd5b$exports = {};
|
46
48
|
var $3d5058299051dde5$exports = {};
|
47
49
|
$3d5058299051dde5$exports = {
|
48
|
-
"loading":
|
50
|
+
"loading": `\u{62C}\u{627}\u{631}\u{64D} \u{627}\u{644}\u{62A}\u{62D}\u{645}\u{64A}\u{644}...`
|
49
51
|
};
|
50
52
|
|
51
53
|
|
52
54
|
var $b09fec806b7b8f22$exports = {};
|
53
55
|
$b09fec806b7b8f22$exports = {
|
54
|
-
"loading":
|
56
|
+
"loading": `\u{417}\u{430}\u{440}\u{435}\u{436}\u{434}\u{430}\u{43D}\u{435}...`
|
55
57
|
};
|
56
58
|
|
57
59
|
|
58
60
|
var $ca0549dfb1669363$exports = {};
|
59
61
|
$ca0549dfb1669363$exports = {
|
60
|
-
"loading": `
|
62
|
+
"loading": `Na\u{10D}\xedt\xe1n\xed...`
|
61
63
|
};
|
62
64
|
|
63
65
|
|
64
66
|
var $98f2907c0694c5b6$exports = {};
|
65
67
|
$98f2907c0694c5b6$exports = {
|
66
|
-
"loading": `
|
68
|
+
"loading": `Indl\xe6ser ...`
|
67
69
|
};
|
68
70
|
|
69
71
|
|
70
72
|
var $9d6fce77106482c8$exports = {};
|
71
73
|
$9d6fce77106482c8$exports = {
|
72
|
-
"loading": `Wird geladen
|
74
|
+
"loading": `Wird geladen \u{2026}`
|
73
75
|
};
|
74
76
|
|
75
77
|
|
76
78
|
var $db5c63cb8d95d7a4$exports = {};
|
77
79
|
$db5c63cb8d95d7a4$exports = {
|
78
|
-
"loading":
|
80
|
+
"loading": `\u{3A6}\u{3CC}\u{3C1}\u{3C4}\u{3C9}\u{3C3}\u{3B7}\u{2026}`
|
79
81
|
};
|
80
82
|
|
81
83
|
|
82
84
|
var $94e4262f3b79d866$exports = {};
|
83
85
|
$94e4262f3b79d866$exports = {
|
84
|
-
"loading": `Loading
|
86
|
+
"loading": `Loading\u{2026}`
|
85
87
|
};
|
86
88
|
|
87
89
|
|
88
90
|
var $16cf2bb6affc1ca9$exports = {};
|
89
91
|
$16cf2bb6affc1ca9$exports = {
|
90
|
-
"loading": `Cargando
|
92
|
+
"loading": `Cargando\u{2026}`
|
91
93
|
};
|
92
94
|
|
93
95
|
|
@@ -99,31 +101,31 @@ $d2a4cd1ccd3b9660$exports = {
|
|
99
101
|
|
100
102
|
var $0aa3ceafb597db1b$exports = {};
|
101
103
|
$0aa3ceafb597db1b$exports = {
|
102
|
-
"loading": `Ladataan
|
104
|
+
"loading": `Ladataan\u{2026}`
|
103
105
|
};
|
104
106
|
|
105
107
|
|
106
108
|
var $5779b104f19b7b1a$exports = {};
|
107
109
|
$5779b104f19b7b1a$exports = {
|
108
|
-
"loading": `Chargement en cours
|
110
|
+
"loading": `Chargement en cours\u{2026}`
|
109
111
|
};
|
110
112
|
|
111
113
|
|
112
114
|
var $33aba885fd306c4d$exports = {};
|
113
115
|
$33aba885fd306c4d$exports = {
|
114
|
-
"loading":
|
116
|
+
"loading": `\u{5D8}\u{5D5}\u{5E2}\u{5DF}...`
|
115
117
|
};
|
116
118
|
|
117
119
|
|
118
120
|
var $30a099a3f19b59af$exports = {};
|
119
121
|
$30a099a3f19b59af$exports = {
|
120
|
-
"loading": `
|
122
|
+
"loading": `U\u{10D}itavam...`
|
121
123
|
};
|
122
124
|
|
123
125
|
|
124
126
|
var $f257504b02c6b23f$exports = {};
|
125
127
|
$f257504b02c6b23f$exports = {
|
126
|
-
"loading": `
|
128
|
+
"loading": `Bet\xf6lt\xe9s folyamatban\u{2026}`
|
127
129
|
};
|
128
130
|
|
129
131
|
|
@@ -135,25 +137,25 @@ $b6e12833733478ab$exports = {
|
|
135
137
|
|
136
138
|
var $e69fac8c5f9d6043$exports = {};
|
137
139
|
$e69fac8c5f9d6043$exports = {
|
138
|
-
"loading":
|
140
|
+
"loading": `\u{8AAD}\u{307F}\u{8FBC}\u{307F}\u{4E2D}...`
|
139
141
|
};
|
140
142
|
|
141
143
|
|
142
144
|
var $a9b740b7d23548d0$exports = {};
|
143
145
|
$a9b740b7d23548d0$exports = {
|
144
|
-
"loading":
|
146
|
+
"loading": `\u{B85C}\u{B4DC} \u{C911}\u{2026}`
|
145
147
|
};
|
146
148
|
|
147
149
|
|
148
150
|
var $4d8ca888adc67de0$exports = {};
|
149
151
|
$4d8ca888adc67de0$exports = {
|
150
|
-
"loading":
|
152
|
+
"loading": `\u{12E}keliama\u{2026}`
|
151
153
|
};
|
152
154
|
|
153
155
|
|
154
156
|
var $5d3a845adaaa328a$exports = {};
|
155
157
|
$5d3a845adaaa328a$exports = {
|
156
|
-
"loading": `Notiek
|
158
|
+
"loading": `Notiek iel\u{101}de\u{2026}`
|
157
159
|
};
|
158
160
|
|
159
161
|
|
@@ -189,19 +191,19 @@ $8dbae7e3487e6fc7$exports = {
|
|
189
191
|
|
190
192
|
var $4ab371254445a3f4$exports = {};
|
191
193
|
$4ab371254445a3f4$exports = {
|
192
|
-
"loading": `Se
|
194
|
+
"loading": `Se \xeencarc\u{103}...`
|
193
195
|
};
|
194
196
|
|
195
197
|
|
196
198
|
var $c5ac7ec630c67dba$exports = {};
|
197
199
|
$c5ac7ec630c67dba$exports = {
|
198
|
-
"loading":
|
200
|
+
"loading": `\u{417}\u{430}\u{433}\u{440}\u{443}\u{437}\u{43A}\u{430}...`
|
199
201
|
};
|
200
202
|
|
201
203
|
|
202
204
|
var $846eaea7e21f7fbf$exports = {};
|
203
205
|
$846eaea7e21f7fbf$exports = {
|
204
|
-
"loading": `
|
206
|
+
"loading": `Na\u{10D}\xedtava sa...`
|
205
207
|
};
|
206
208
|
|
207
209
|
|
@@ -213,37 +215,37 @@ $dde062d6acd4e43a$exports = {
|
|
213
215
|
|
214
216
|
var $579b7ae9c5494112$exports = {};
|
215
217
|
$579b7ae9c5494112$exports = {
|
216
|
-
"loading": `
|
218
|
+
"loading": `U\u{10D}itavam...`
|
217
219
|
};
|
218
220
|
|
219
221
|
|
220
222
|
var $3b62c0bcc6cf3c98$exports = {};
|
221
223
|
$3b62c0bcc6cf3c98$exports = {
|
222
|
-
"loading": `
|
224
|
+
"loading": `L\xe4ser in...`
|
223
225
|
};
|
224
226
|
|
225
227
|
|
226
228
|
var $31f966e58b99834b$exports = {};
|
227
229
|
$31f966e58b99834b$exports = {
|
228
|
-
"loading": `
|
230
|
+
"loading": `Y\xfckleniyor...`
|
229
231
|
};
|
230
232
|
|
231
233
|
|
232
234
|
var $a3d99ea5d46a3d12$exports = {};
|
233
235
|
$a3d99ea5d46a3d12$exports = {
|
234
|
-
"loading":
|
236
|
+
"loading": `\u{417}\u{430}\u{432}\u{430}\u{43D}\u{442}\u{430}\u{436}\u{435}\u{43D}\u{43D}\u{44F}\u{2026}`
|
235
237
|
};
|
236
238
|
|
237
239
|
|
238
240
|
var $6e4b63af77288b7a$exports = {};
|
239
241
|
$6e4b63af77288b7a$exports = {
|
240
|
-
"loading":
|
242
|
+
"loading": `\u{6B63}\u{5728}\u{52A0}\u{8F7D}...`
|
241
243
|
};
|
242
244
|
|
243
245
|
|
244
246
|
var $be993a68bccef72a$exports = {};
|
245
247
|
$be993a68bccef72a$exports = {
|
246
|
-
"loading":
|
248
|
+
"loading": `\u{8F09}\u{5165}\u{4E2D}\u{2026}`
|
247
249
|
};
|
248
250
|
|
249
251
|
|
@@ -427,7 +429,7 @@ function $b865a6f0049e2d66$var$Button(props, ref) {
|
|
427
429
|
props = (0, $d7FTw$useProviderProps)(props);
|
428
430
|
props = (0, $d7FTw$useSlotProps)(props, "button");
|
429
431
|
props = $b865a6f0049e2d66$var$disablePendingProps(props);
|
430
|
-
let { elementType:
|
432
|
+
let { elementType: Element = "button", children: children, variant: variant, style: style = variant === "accent" || variant === "cta" ? "fill" : "outline", staticColor: staticColor, isDisabled: isDisabled, isPending: isPending, autoFocus: autoFocus, ...otherProps } = props;
|
431
433
|
let domRef = (0, $d7FTw$useFocusableRef)(ref);
|
432
434
|
let { buttonProps: buttonProps, isPressed: isPressed } = (0, $d7FTw$useButton)(props, domRef);
|
433
435
|
let { hoverProps: hoverProps, isHovered: isHovered } = (0, $d7FTw$useHover)({
|
@@ -461,7 +463,7 @@ function $b865a6f0049e2d66$var$Button(props, ref) {
|
|
461
463
|
return /*#__PURE__*/ (0, $d7FTw$react).createElement((0, $d7FTw$FocusRing), {
|
462
464
|
focusRingClass: (0, $d7FTw$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($086e93d2352a4536$exports))), "focus-ring"),
|
463
465
|
autoFocus: autoFocus
|
464
|
-
}, /*#__PURE__*/ (0, $d7FTw$react).createElement(
|
466
|
+
}, /*#__PURE__*/ (0, $d7FTw$react).createElement(Element, {
|
465
467
|
...styleProps,
|
466
468
|
...(0, $d7FTw$mergeProps)(buttonProps, hoverProps),
|
467
469
|
ref: domRef,
|