@react-spectrum/button 3.16.1 → 3.16.3
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/ActionButton.main.js +97 -0
- package/dist/ActionButton.main.js.map +1 -0
- package/dist/ActionButton.mjs +92 -0
- package/dist/ActionButton.module.js +92 -0
- package/dist/ActionButton.module.js.map +1 -0
- package/dist/Button.main.js +177 -0
- package/dist/Button.main.js.map +1 -0
- package/dist/Button.mjs +172 -0
- package/dist/Button.module.js +172 -0
- package/dist/Button.module.js.map +1 -0
- package/dist/ClearButton.main.js +75 -0
- package/dist/ClearButton.main.js.map +1 -0
- package/dist/ClearButton.mjs +70 -0
- package/dist/ClearButton.module.js +70 -0
- package/dist/ClearButton.module.js.map +1 -0
- package/dist/FieldButton.main.js +72 -0
- package/dist/FieldButton.main.js.map +1 -0
- package/dist/FieldButton.mjs +67 -0
- package/dist/FieldButton.module.js +67 -0
- package/dist/FieldButton.module.js.map +1 -0
- package/dist/LogicButton.main.js +70 -0
- package/dist/LogicButton.main.js.map +1 -0
- package/dist/LogicButton.mjs +65 -0
- package/dist/LogicButton.module.js +65 -0
- package/dist/LogicButton.module.js.map +1 -0
- package/dist/ToggleButton.main.js +90 -0
- package/dist/ToggleButton.main.js.map +1 -0
- package/dist/ToggleButton.mjs +85 -0
- package/dist/ToggleButton.module.js +85 -0
- package/dist/ToggleButton.module.js.map +1 -0
- package/dist/ar-AE.main.js +6 -0
- package/dist/ar-AE.main.js.map +1 -0
- package/dist/ar-AE.mjs +8 -0
- package/dist/ar-AE.module.js +8 -0
- package/dist/ar-AE.module.js.map +1 -0
- package/dist/bg-BG.main.js +6 -0
- package/dist/bg-BG.main.js.map +1 -0
- package/dist/bg-BG.mjs +8 -0
- package/dist/bg-BG.module.js +8 -0
- package/dist/bg-BG.module.js.map +1 -0
- package/dist/button_vars_css.main.js +122 -0
- package/dist/button_vars_css.main.js.map +1 -0
- package/dist/button_vars_css.mjs +124 -0
- package/dist/button_vars_css.module.js +124 -0
- package/dist/button_vars_css.module.js.map +1 -0
- package/dist/cs-CZ.main.js +6 -0
- package/dist/cs-CZ.main.js.map +1 -0
- package/dist/cs-CZ.mjs +8 -0
- package/dist/cs-CZ.module.js +8 -0
- package/dist/cs-CZ.module.js.map +1 -0
- package/dist/da-DK.main.js +6 -0
- package/dist/da-DK.main.js.map +1 -0
- package/dist/da-DK.mjs +8 -0
- package/dist/da-DK.module.js +8 -0
- package/dist/da-DK.module.js.map +1 -0
- package/dist/de-DE.main.js +6 -0
- package/dist/de-DE.main.js.map +1 -0
- package/dist/de-DE.mjs +8 -0
- package/dist/de-DE.module.js +8 -0
- package/dist/de-DE.module.js.map +1 -0
- package/dist/el-GR.main.js +6 -0
- package/dist/el-GR.main.js.map +1 -0
- package/dist/el-GR.mjs +8 -0
- package/dist/el-GR.module.js +8 -0
- package/dist/el-GR.module.js.map +1 -0
- package/dist/en-US.main.js +6 -0
- package/dist/en-US.main.js.map +1 -0
- package/dist/en-US.mjs +8 -0
- package/dist/en-US.module.js +8 -0
- package/dist/en-US.module.js.map +1 -0
- package/dist/es-ES.main.js +6 -0
- package/dist/es-ES.main.js.map +1 -0
- package/dist/es-ES.mjs +8 -0
- package/dist/es-ES.module.js +8 -0
- package/dist/es-ES.module.js.map +1 -0
- package/dist/et-EE.main.js +6 -0
- package/dist/et-EE.main.js.map +1 -0
- package/dist/et-EE.mjs +8 -0
- package/dist/et-EE.module.js +8 -0
- package/dist/et-EE.module.js.map +1 -0
- package/dist/fi-FI.main.js +6 -0
- package/dist/fi-FI.main.js.map +1 -0
- package/dist/fi-FI.mjs +8 -0
- package/dist/fi-FI.module.js +8 -0
- package/dist/fi-FI.module.js.map +1 -0
- package/dist/fr-FR.main.js +6 -0
- package/dist/fr-FR.main.js.map +1 -0
- package/dist/fr-FR.mjs +8 -0
- package/dist/fr-FR.module.js +8 -0
- package/dist/fr-FR.module.js.map +1 -0
- package/dist/he-IL.main.js +6 -0
- package/dist/he-IL.main.js.map +1 -0
- package/dist/he-IL.mjs +8 -0
- package/dist/he-IL.module.js +8 -0
- package/dist/he-IL.module.js.map +1 -0
- package/dist/hr-HR.main.js +6 -0
- package/dist/hr-HR.main.js.map +1 -0
- package/dist/hr-HR.mjs +8 -0
- package/dist/hr-HR.module.js +8 -0
- package/dist/hr-HR.module.js.map +1 -0
- package/dist/hu-HU.main.js +6 -0
- package/dist/hu-HU.main.js.map +1 -0
- package/dist/hu-HU.mjs +8 -0
- package/dist/hu-HU.module.js +8 -0
- package/dist/hu-HU.module.js.map +1 -0
- package/dist/import.mjs +6 -814
- package/dist/intlStrings.main.js +108 -0
- package/dist/intlStrings.main.js.map +1 -0
- package/dist/intlStrings.mjs +110 -0
- package/dist/intlStrings.module.js +110 -0
- package/dist/intlStrings.module.js.map +1 -0
- package/dist/it-IT.main.js +6 -0
- package/dist/it-IT.main.js.map +1 -0
- package/dist/it-IT.mjs +8 -0
- package/dist/it-IT.module.js +8 -0
- package/dist/it-IT.module.js.map +1 -0
- package/dist/ja-JP.main.js +6 -0
- package/dist/ja-JP.main.js.map +1 -0
- package/dist/ja-JP.mjs +8 -0
- package/dist/ja-JP.module.js +8 -0
- package/dist/ja-JP.module.js.map +1 -0
- package/dist/ko-KR.main.js +6 -0
- package/dist/ko-KR.main.js.map +1 -0
- package/dist/ko-KR.mjs +8 -0
- package/dist/ko-KR.module.js +8 -0
- package/dist/ko-KR.module.js.map +1 -0
- package/dist/lt-LT.main.js +6 -0
- package/dist/lt-LT.main.js.map +1 -0
- package/dist/lt-LT.mjs +8 -0
- package/dist/lt-LT.module.js +8 -0
- package/dist/lt-LT.module.js.map +1 -0
- package/dist/lv-LV.main.js +6 -0
- package/dist/lv-LV.main.js.map +1 -0
- package/dist/lv-LV.mjs +8 -0
- package/dist/lv-LV.module.js +8 -0
- package/dist/lv-LV.module.js.map +1 -0
- package/dist/main.js +12 -816
- package/dist/main.js.map +1 -1
- package/dist/module.js +6 -814
- package/dist/module.js.map +1 -1
- package/dist/nb-NO.main.js +6 -0
- package/dist/nb-NO.main.js.map +1 -0
- package/dist/nb-NO.mjs +8 -0
- package/dist/nb-NO.module.js +8 -0
- package/dist/nb-NO.module.js.map +1 -0
- package/dist/nl-NL.main.js +6 -0
- package/dist/nl-NL.main.js.map +1 -0
- package/dist/nl-NL.mjs +8 -0
- package/dist/nl-NL.module.js +8 -0
- package/dist/nl-NL.module.js.map +1 -0
- package/dist/pl-PL.main.js +6 -0
- package/dist/pl-PL.main.js.map +1 -0
- package/dist/pl-PL.mjs +8 -0
- package/dist/pl-PL.module.js +8 -0
- package/dist/pl-PL.module.js.map +1 -0
- package/dist/pt-BR.main.js +6 -0
- package/dist/pt-BR.main.js.map +1 -0
- package/dist/pt-BR.mjs +8 -0
- package/dist/pt-BR.module.js +8 -0
- package/dist/pt-BR.module.js.map +1 -0
- package/dist/pt-PT.main.js +6 -0
- package/dist/pt-PT.main.js.map +1 -0
- package/dist/pt-PT.mjs +8 -0
- package/dist/pt-PT.module.js +8 -0
- package/dist/pt-PT.module.js.map +1 -0
- package/dist/ro-RO.main.js +6 -0
- package/dist/ro-RO.main.js.map +1 -0
- package/dist/ro-RO.mjs +8 -0
- package/dist/ro-RO.module.js +8 -0
- package/dist/ro-RO.module.js.map +1 -0
- package/dist/ru-RU.main.js +6 -0
- package/dist/ru-RU.main.js.map +1 -0
- package/dist/ru-RU.mjs +8 -0
- package/dist/ru-RU.module.js +8 -0
- package/dist/ru-RU.module.js.map +1 -0
- package/dist/sk-SK.main.js +6 -0
- package/dist/sk-SK.main.js.map +1 -0
- package/dist/sk-SK.mjs +8 -0
- package/dist/sk-SK.module.js +8 -0
- package/dist/sk-SK.module.js.map +1 -0
- package/dist/sl-SI.main.js +6 -0
- package/dist/sl-SI.main.js.map +1 -0
- package/dist/sl-SI.mjs +8 -0
- package/dist/sl-SI.module.js +8 -0
- package/dist/sl-SI.module.js.map +1 -0
- package/dist/sr-SP.main.js +6 -0
- package/dist/sr-SP.main.js.map +1 -0
- package/dist/sr-SP.mjs +8 -0
- package/dist/sr-SP.module.js +8 -0
- package/dist/sr-SP.module.js.map +1 -0
- package/dist/sv-SE.main.js +6 -0
- package/dist/sv-SE.main.js.map +1 -0
- package/dist/sv-SE.mjs +8 -0
- package/dist/sv-SE.module.js +8 -0
- package/dist/sv-SE.module.js.map +1 -0
- package/dist/tr-TR.main.js +6 -0
- package/dist/tr-TR.main.js.map +1 -0
- package/dist/tr-TR.mjs +8 -0
- package/dist/tr-TR.module.js +8 -0
- package/dist/tr-TR.module.js.map +1 -0
- package/dist/types.d.ts +6 -6
- package/dist/types.d.ts.map +1 -1
- package/dist/uk-UA.main.js +6 -0
- package/dist/uk-UA.main.js.map +1 -0
- package/dist/uk-UA.mjs +8 -0
- package/dist/uk-UA.module.js +8 -0
- package/dist/uk-UA.module.js.map +1 -0
- package/dist/vars.4fe44343.css +1645 -0
- package/dist/vars.4fe44343.css.map +1 -0
- package/dist/zh-CN.main.js +6 -0
- package/dist/zh-CN.main.js.map +1 -0
- package/dist/zh-CN.mjs +8 -0
- package/dist/zh-CN.module.js +8 -0
- package/dist/zh-CN.module.js.map +1 -0
- package/dist/zh-TW.main.js +6 -0
- package/dist/zh-TW.main.js.map +1 -0
- package/dist/zh-TW.mjs +8 -0
- package/dist/zh-TW.module.js +8 -0
- package/dist/zh-TW.module.js.map +1 -0
- package/package.json +15 -15
- package/src/ActionButton.tsx +27 -15
- package/dist/main.css +0 -1
package/dist/import.mjs
CHANGED
@@ -1,26 +1,10 @@
|
|
1
|
-
import "./
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import {
|
5
|
-
import {
|
6
|
-
import
|
7
|
-
import {Text as $d7FTw$Text} from "@react-spectrum/text";
|
8
|
-
import {useButton as $d7FTw$useButton, useToggleButton as $d7FTw$useToggleButton} from "@react-aria/button";
|
9
|
-
import {useHover as $d7FTw$useHover, useFocus as $d7FTw$useFocus} from "@react-aria/interactions";
|
10
|
-
import {useLocalizedStringFormatter as $d7FTw$useLocalizedStringFormatter} from "@react-aria/i18n";
|
11
|
-
import {useProviderProps as $d7FTw$useProviderProps} from "@react-spectrum/provider";
|
12
|
-
import $d7FTw$spectrumiconsuiCornerTriangle from "@spectrum-icons/ui/CornerTriangle";
|
13
|
-
import $d7FTw$spectrumiconsuiCrossSmall from "@spectrum-icons/ui/CrossSmall";
|
14
|
-
import {useToggleState as $d7FTw$useToggleState} from "@react-stately/toggle";
|
1
|
+
import {Button as $b865a6f0049e2d66$export$353f5b6fc5456de1} from "./Button.mjs";
|
2
|
+
import {ActionButton as $042ad0b3a4a55b33$export$cfc7921d29ef7b80} from "./ActionButton.mjs";
|
3
|
+
import {FieldButton as $b43bd559b476d0c4$export$47dc48f595b075da} from "./FieldButton.mjs";
|
4
|
+
import {LogicButton as $45108e3c482ee88b$export$9b0b80fed00ba8b1} from "./LogicButton.mjs";
|
5
|
+
import {ClearButton as $dd24e555a16de2ae$export$13ec83e50bf04290} from "./ClearButton.mjs";
|
6
|
+
import {ToggleButton as $3979c7c23b0bd270$export$d2b052e7b4be1756} from "./ToggleButton.mjs";
|
15
7
|
|
16
|
-
|
17
|
-
function $parcel$interopDefault(a) {
|
18
|
-
return a && a.__esModule ? a.default : a;
|
19
|
-
}
|
20
|
-
|
21
|
-
function $parcel$export(e, n, v, s) {
|
22
|
-
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
23
|
-
}
|
24
8
|
/*
|
25
9
|
* Copyright 2020 Adobe. All rights reserved.
|
26
10
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
@@ -32,802 +16,10 @@ function $parcel$export(e, n, v, s) {
|
|
32
16
|
* OF ANY KIND, either express or implied. See the License for the specific language
|
33
17
|
* governing permissions and limitations under the License.
|
34
18
|
*/ /// <reference types="css-module-types" />
|
35
|
-
/*
|
36
|
-
* Copyright 2020 Adobe. All rights reserved.
|
37
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
38
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
39
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
40
|
-
*
|
41
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
42
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
43
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
44
|
-
* governing permissions and limitations under the License.
|
45
|
-
*/
|
46
|
-
|
47
|
-
var $94fed84ca44dbd5b$exports = {};
|
48
|
-
var $3d5058299051dde5$exports = {};
|
49
|
-
$3d5058299051dde5$exports = {
|
50
|
-
"pending": `\u{642}\u{64A}\u{62F} \u{627}\u{644}\u{627}\u{646}\u{62A}\u{638}\u{627}\u{631}`
|
51
|
-
};
|
52
|
-
|
53
|
-
|
54
|
-
var $b09fec806b7b8f22$exports = {};
|
55
|
-
$b09fec806b7b8f22$exports = {
|
56
|
-
"pending": `\u{43D}\u{435}\u{434}\u{43E}\u{432}\u{44A}\u{440}\u{448}\u{435}\u{43D}\u{43E}`
|
57
|
-
};
|
58
|
-
|
59
|
-
|
60
|
-
var $ca0549dfb1669363$exports = {};
|
61
|
-
$ca0549dfb1669363$exports = {
|
62
|
-
"pending": `\u{10D}ek\xe1 na vy\u{159}\xedzen\xed`
|
63
|
-
};
|
64
|
-
|
65
|
-
|
66
|
-
var $98f2907c0694c5b6$exports = {};
|
67
|
-
$98f2907c0694c5b6$exports = {
|
68
|
-
"pending": `afventende`
|
69
|
-
};
|
70
|
-
|
71
|
-
|
72
|
-
var $9d6fce77106482c8$exports = {};
|
73
|
-
$9d6fce77106482c8$exports = {
|
74
|
-
"pending": `Ausstehend`
|
75
|
-
};
|
76
|
-
|
77
|
-
|
78
|
-
var $db5c63cb8d95d7a4$exports = {};
|
79
|
-
$db5c63cb8d95d7a4$exports = {
|
80
|
-
"pending": `\u{3C3}\u{3B5} \u{3B5}\u{3BA}\u{3BA}\u{3C1}\u{3B5}\u{3BC}\u{3CC}\u{3C4}\u{3B7}\u{3C4}\u{3B1}`
|
81
|
-
};
|
82
|
-
|
83
|
-
|
84
|
-
var $94e4262f3b79d866$exports = {};
|
85
|
-
$94e4262f3b79d866$exports = {
|
86
|
-
"pending": `pending`
|
87
|
-
};
|
88
|
-
|
89
|
-
|
90
|
-
var $16cf2bb6affc1ca9$exports = {};
|
91
|
-
$16cf2bb6affc1ca9$exports = {
|
92
|
-
"pending": `pendiente`
|
93
|
-
};
|
94
|
-
|
95
|
-
|
96
|
-
var $d2a4cd1ccd3b9660$exports = {};
|
97
|
-
$d2a4cd1ccd3b9660$exports = {
|
98
|
-
"pending": `ootel`
|
99
|
-
};
|
100
|
-
|
101
|
-
|
102
|
-
var $0aa3ceafb597db1b$exports = {};
|
103
|
-
$0aa3ceafb597db1b$exports = {
|
104
|
-
"pending": `odottaa`
|
105
|
-
};
|
106
|
-
|
107
|
-
|
108
|
-
var $5779b104f19b7b1a$exports = {};
|
109
|
-
$5779b104f19b7b1a$exports = {
|
110
|
-
"pending": `En attente`
|
111
|
-
};
|
112
|
-
|
113
|
-
|
114
|
-
var $33aba885fd306c4d$exports = {};
|
115
|
-
$33aba885fd306c4d$exports = {
|
116
|
-
"pending": `\u{5DE}\u{5DE}\u{5EA}\u{5D9}\u{5DF} \u{5DC}`
|
117
|
-
};
|
118
|
-
|
119
|
-
|
120
|
-
var $30a099a3f19b59af$exports = {};
|
121
|
-
$30a099a3f19b59af$exports = {
|
122
|
-
"pending": `u tijeku`
|
123
|
-
};
|
124
|
-
|
125
|
-
|
126
|
-
var $f257504b02c6b23f$exports = {};
|
127
|
-
$f257504b02c6b23f$exports = {
|
128
|
-
"pending": `f\xfcgg\u{151}ben lev\u{151}`
|
129
|
-
};
|
130
|
-
|
131
|
-
|
132
|
-
var $b6e12833733478ab$exports = {};
|
133
|
-
$b6e12833733478ab$exports = {
|
134
|
-
"pending": `in sospeso`
|
135
|
-
};
|
136
|
-
|
137
|
-
|
138
|
-
var $e69fac8c5f9d6043$exports = {};
|
139
|
-
$e69fac8c5f9d6043$exports = {
|
140
|
-
"pending": `\u{4FDD}\u{7559}`
|
141
|
-
};
|
142
|
-
|
143
|
-
|
144
|
-
var $a9b740b7d23548d0$exports = {};
|
145
|
-
$a9b740b7d23548d0$exports = {
|
146
|
-
"pending": `\u{BCF4}\u{B958} \u{C911}`
|
147
|
-
};
|
148
|
-
|
149
|
-
|
150
|
-
var $4d8ca888adc67de0$exports = {};
|
151
|
-
$4d8ca888adc67de0$exports = {
|
152
|
-
"pending": `laukiama`
|
153
|
-
};
|
154
|
-
|
155
|
-
|
156
|
-
var $5d3a845adaaa328a$exports = {};
|
157
|
-
$5d3a845adaaa328a$exports = {
|
158
|
-
"pending": `gaida`
|
159
|
-
};
|
160
|
-
|
161
|
-
|
162
|
-
var $20112446b2d06d6e$exports = {};
|
163
|
-
$20112446b2d06d6e$exports = {
|
164
|
-
"pending": `avventer`
|
165
|
-
};
|
166
|
-
|
167
|
-
|
168
|
-
var $168501f8ff8ad607$exports = {};
|
169
|
-
$168501f8ff8ad607$exports = {
|
170
|
-
"pending": `in behandeling`
|
171
|
-
};
|
172
|
-
|
173
|
-
|
174
|
-
var $7d885e2935e9ed01$exports = {};
|
175
|
-
$7d885e2935e9ed01$exports = {
|
176
|
-
"pending": `oczekuj\u{105}ce`
|
177
|
-
};
|
178
|
-
|
179
|
-
|
180
|
-
var $ece77a10c9739c65$exports = {};
|
181
|
-
$ece77a10c9739c65$exports = {
|
182
|
-
"pending": `pendente`
|
183
|
-
};
|
184
|
-
|
185
|
-
|
186
|
-
var $8dbae7e3487e6fc7$exports = {};
|
187
|
-
$8dbae7e3487e6fc7$exports = {
|
188
|
-
"pending": `pendente`
|
189
|
-
};
|
190
|
-
|
191
|
-
|
192
|
-
var $4ab371254445a3f4$exports = {};
|
193
|
-
$4ab371254445a3f4$exports = {
|
194
|
-
"pending": `\xeen a\u{219}teptare`
|
195
|
-
};
|
196
|
-
|
197
|
-
|
198
|
-
var $c5ac7ec630c67dba$exports = {};
|
199
|
-
$c5ac7ec630c67dba$exports = {
|
200
|
-
"pending": `\u{432} \u{43E}\u{436}\u{438}\u{434}\u{430}\u{43D}\u{438}\u{438}`
|
201
|
-
};
|
202
|
-
|
203
|
-
|
204
|
-
var $846eaea7e21f7fbf$exports = {};
|
205
|
-
$846eaea7e21f7fbf$exports = {
|
206
|
-
"pending": `\u{10D}akaj\xface`
|
207
|
-
};
|
208
|
-
|
209
|
-
|
210
|
-
var $dde062d6acd4e43a$exports = {};
|
211
|
-
$dde062d6acd4e43a$exports = {
|
212
|
-
"pending": `v teku`
|
213
|
-
};
|
214
|
-
|
215
|
-
|
216
|
-
var $579b7ae9c5494112$exports = {};
|
217
|
-
$579b7ae9c5494112$exports = {
|
218
|
-
"pending": `nere\u{161}eno`
|
219
|
-
};
|
220
|
-
|
221
|
-
|
222
|
-
var $3b62c0bcc6cf3c98$exports = {};
|
223
|
-
$3b62c0bcc6cf3c98$exports = {
|
224
|
-
"pending": `v\xe4ntande`
|
225
|
-
};
|
226
|
-
|
227
|
-
|
228
|
-
var $31f966e58b99834b$exports = {};
|
229
|
-
$31f966e58b99834b$exports = {
|
230
|
-
"pending": `beklemede`
|
231
|
-
};
|
232
|
-
|
233
|
-
|
234
|
-
var $a3d99ea5d46a3d12$exports = {};
|
235
|
-
$a3d99ea5d46a3d12$exports = {
|
236
|
-
"pending": `\u{432} \u{43E}\u{447}\u{456}\u{43A}\u{443}\u{432}\u{430}\u{43D}\u{43D}\u{456}`
|
237
|
-
};
|
238
|
-
|
239
|
-
|
240
|
-
var $6e4b63af77288b7a$exports = {};
|
241
|
-
$6e4b63af77288b7a$exports = {
|
242
|
-
"pending": `\u{5F85}\u{5904}\u{7406}`
|
243
|
-
};
|
244
|
-
|
245
|
-
|
246
|
-
var $be993a68bccef72a$exports = {};
|
247
|
-
$be993a68bccef72a$exports = {
|
248
|
-
"pending": `\u{5F85}\u{8655}\u{7406}`
|
249
|
-
};
|
250
|
-
|
251
|
-
|
252
|
-
$94fed84ca44dbd5b$exports = {
|
253
|
-
"ar-AE": $3d5058299051dde5$exports,
|
254
|
-
"bg-BG": $b09fec806b7b8f22$exports,
|
255
|
-
"cs-CZ": $ca0549dfb1669363$exports,
|
256
|
-
"da-DK": $98f2907c0694c5b6$exports,
|
257
|
-
"de-DE": $9d6fce77106482c8$exports,
|
258
|
-
"el-GR": $db5c63cb8d95d7a4$exports,
|
259
|
-
"en-US": $94e4262f3b79d866$exports,
|
260
|
-
"es-ES": $16cf2bb6affc1ca9$exports,
|
261
|
-
"et-EE": $d2a4cd1ccd3b9660$exports,
|
262
|
-
"fi-FI": $0aa3ceafb597db1b$exports,
|
263
|
-
"fr-FR": $5779b104f19b7b1a$exports,
|
264
|
-
"he-IL": $33aba885fd306c4d$exports,
|
265
|
-
"hr-HR": $30a099a3f19b59af$exports,
|
266
|
-
"hu-HU": $f257504b02c6b23f$exports,
|
267
|
-
"it-IT": $b6e12833733478ab$exports,
|
268
|
-
"ja-JP": $e69fac8c5f9d6043$exports,
|
269
|
-
"ko-KR": $a9b740b7d23548d0$exports,
|
270
|
-
"lt-LT": $4d8ca888adc67de0$exports,
|
271
|
-
"lv-LV": $5d3a845adaaa328a$exports,
|
272
|
-
"nb-NO": $20112446b2d06d6e$exports,
|
273
|
-
"nl-NL": $168501f8ff8ad607$exports,
|
274
|
-
"pl-PL": $7d885e2935e9ed01$exports,
|
275
|
-
"pt-BR": $ece77a10c9739c65$exports,
|
276
|
-
"pt-PT": $8dbae7e3487e6fc7$exports,
|
277
|
-
"ro-RO": $4ab371254445a3f4$exports,
|
278
|
-
"ru-RU": $c5ac7ec630c67dba$exports,
|
279
|
-
"sk-SK": $846eaea7e21f7fbf$exports,
|
280
|
-
"sl-SI": $dde062d6acd4e43a$exports,
|
281
|
-
"sr-SP": $579b7ae9c5494112$exports,
|
282
|
-
"sv-SE": $3b62c0bcc6cf3c98$exports,
|
283
|
-
"tr-TR": $31f966e58b99834b$exports,
|
284
|
-
"uk-UA": $a3d99ea5d46a3d12$exports,
|
285
|
-
"zh-CN": $6e4b63af77288b7a$exports,
|
286
|
-
"zh-TW": $be993a68bccef72a$exports
|
287
|
-
};
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
var $086e93d2352a4536$exports = {};
|
294
|
-
|
295
|
-
$parcel$export($086e93d2352a4536$exports, "focus-ring", () => $086e93d2352a4536$export$f39a09f249340e2a, (v) => $086e93d2352a4536$export$f39a09f249340e2a = v);
|
296
|
-
$parcel$export($086e93d2352a4536$exports, "i18nFontFamily", () => $086e93d2352a4536$export$8c4ee2c50c22c514, (v) => $086e93d2352a4536$export$8c4ee2c50c22c514 = v);
|
297
|
-
$parcel$export($086e93d2352a4536$exports, "is-active", () => $086e93d2352a4536$export$20fd0f7cd4e6112f, (v) => $086e93d2352a4536$export$20fd0f7cd4e6112f = v);
|
298
|
-
$parcel$export($086e93d2352a4536$exports, "is-disabled", () => $086e93d2352a4536$export$d35bc1e505d1ebbf, (v) => $086e93d2352a4536$export$d35bc1e505d1ebbf = v);
|
299
|
-
$parcel$export($086e93d2352a4536$exports, "is-focused", () => $086e93d2352a4536$export$e7dc768d35940237, (v) => $086e93d2352a4536$export$e7dc768d35940237 = v);
|
300
|
-
$parcel$export($086e93d2352a4536$exports, "is-hovered", () => $086e93d2352a4536$export$b8813cd5d7824ce7, (v) => $086e93d2352a4536$export$b8813cd5d7824ce7 = v);
|
301
|
-
$parcel$export($086e93d2352a4536$exports, "is-open", () => $086e93d2352a4536$export$a9781837241c946d, (v) => $086e93d2352a4536$export$a9781837241c946d = v);
|
302
|
-
$parcel$export($086e93d2352a4536$exports, "is-placeholder", () => $086e93d2352a4536$export$e5b2f5233e4e5194, (v) => $086e93d2352a4536$export$e5b2f5233e4e5194 = v);
|
303
|
-
$parcel$export($086e93d2352a4536$exports, "is-selected", () => $086e93d2352a4536$export$1e0fb04f31d3c22a, (v) => $086e93d2352a4536$export$1e0fb04f31d3c22a = v);
|
304
|
-
$parcel$export($086e93d2352a4536$exports, "spectrum-BaseButton", () => $086e93d2352a4536$export$f7b415378ab4f839, (v) => $086e93d2352a4536$export$f7b415378ab4f839 = v);
|
305
|
-
$parcel$export($086e93d2352a4536$exports, "spectrum-FocusRing-ring", () => $086e93d2352a4536$export$4109102f950813a6, (v) => $086e93d2352a4536$export$4109102f950813a6 = v);
|
306
|
-
$parcel$export($086e93d2352a4536$exports, "spectrum-FocusRing", () => $086e93d2352a4536$export$24c7f46a6e3605dd, (v) => $086e93d2352a4536$export$24c7f46a6e3605dd = v);
|
307
|
-
$parcel$export($086e93d2352a4536$exports, "spectrum-ActionButton", () => $086e93d2352a4536$export$53da69f51b770d3, (v) => $086e93d2352a4536$export$53da69f51b770d3 = v);
|
308
|
-
$parcel$export($086e93d2352a4536$exports, "spectrum-ActionButton--emphasized", () => $086e93d2352a4536$export$5aabb61a966e266f, (v) => $086e93d2352a4536$export$5aabb61a966e266f = v);
|
309
|
-
$parcel$export($086e93d2352a4536$exports, "spectrum-ActionButton--quiet", () => $086e93d2352a4536$export$40e1f009544bacf3, (v) => $086e93d2352a4536$export$40e1f009544bacf3 = v);
|
310
|
-
$parcel$export($086e93d2352a4536$exports, "spectrum-ActionButton--staticBlack", () => $086e93d2352a4536$export$8f7c9db66978d20f, (v) => $086e93d2352a4536$export$8f7c9db66978d20f = v);
|
311
|
-
$parcel$export($086e93d2352a4536$exports, "spectrum-ActionButton--staticColor", () => $086e93d2352a4536$export$29b7b5d6a5a497c5, (v) => $086e93d2352a4536$export$29b7b5d6a5a497c5 = v);
|
312
|
-
$parcel$export($086e93d2352a4536$exports, "spectrum-ActionButton--staticWhite", () => $086e93d2352a4536$export$ccc536e1adbdc059, (v) => $086e93d2352a4536$export$ccc536e1adbdc059 = v);
|
313
|
-
$parcel$export($086e93d2352a4536$exports, "spectrum-ActionButton-hold", () => $086e93d2352a4536$export$4a4f01c443eff992, (v) => $086e93d2352a4536$export$4a4f01c443eff992 = v);
|
314
|
-
$parcel$export($086e93d2352a4536$exports, "spectrum-ActionButton-label", () => $086e93d2352a4536$export$ebb4635c66bacdb9, (v) => $086e93d2352a4536$export$ebb4635c66bacdb9 = v);
|
315
|
-
$parcel$export($086e93d2352a4536$exports, "spectrum-Button", () => $086e93d2352a4536$export$1db4cca5b4ade39a, (v) => $086e93d2352a4536$export$1db4cca5b4ade39a = v);
|
316
|
-
$parcel$export($086e93d2352a4536$exports, "spectrum-Button--iconOnly", () => $086e93d2352a4536$export$c1d306ec0fae3838, (v) => $086e93d2352a4536$export$c1d306ec0fae3838 = v);
|
317
|
-
$parcel$export($086e93d2352a4536$exports, "spectrum-Button--overBackground", () => $086e93d2352a4536$export$5cda1128f9112d2e, (v) => $086e93d2352a4536$export$5cda1128f9112d2e = v);
|
318
|
-
$parcel$export($086e93d2352a4536$exports, "spectrum-Button--pending", () => $086e93d2352a4536$export$54592d0984f245d5, (v) => $086e93d2352a4536$export$54592d0984f245d5 = v);
|
319
|
-
$parcel$export($086e93d2352a4536$exports, "spectrum-Button-circleLoader", () => $086e93d2352a4536$export$76d4531f0342bbe0, (v) => $086e93d2352a4536$export$76d4531f0342bbe0 = v);
|
320
|
-
$parcel$export($086e93d2352a4536$exports, "spectrum-Button-label", () => $086e93d2352a4536$export$c081ba562e204942, (v) => $086e93d2352a4536$export$c081ba562e204942 = v);
|
321
|
-
$parcel$export($086e93d2352a4536$exports, "spectrum-ClearButton", () => $086e93d2352a4536$export$b752ce409e5660c, (v) => $086e93d2352a4536$export$b752ce409e5660c = v);
|
322
|
-
$parcel$export($086e93d2352a4536$exports, "spectrum-ClearButton--overBackground", () => $086e93d2352a4536$export$116f2fccf941d34d, (v) => $086e93d2352a4536$export$116f2fccf941d34d = v);
|
323
|
-
$parcel$export($086e93d2352a4536$exports, "spectrum-ClearButton--small", () => $086e93d2352a4536$export$49280ffa5236ba8b, (v) => $086e93d2352a4536$export$49280ffa5236ba8b = v);
|
324
|
-
$parcel$export($086e93d2352a4536$exports, "spectrum-FieldButton", () => $086e93d2352a4536$export$a024c99ecf6b5741, (v) => $086e93d2352a4536$export$a024c99ecf6b5741 = v);
|
325
|
-
$parcel$export($086e93d2352a4536$exports, "spectrum-FieldButton--invalid", () => $086e93d2352a4536$export$c9f503f672e8a3c1, (v) => $086e93d2352a4536$export$c9f503f672e8a3c1 = v);
|
326
|
-
$parcel$export($086e93d2352a4536$exports, "spectrum-FocusRing--quiet", () => $086e93d2352a4536$export$2927016961429360, (v) => $086e93d2352a4536$export$2927016961429360 = v);
|
327
|
-
$parcel$export($086e93d2352a4536$exports, "spectrum-FieldButton--quiet", () => $086e93d2352a4536$export$5ca7b274e4fff9fc, (v) => $086e93d2352a4536$export$5ca7b274e4fff9fc = v);
|
328
|
-
$parcel$export($086e93d2352a4536$exports, "spectrum-Icon", () => $086e93d2352a4536$export$d374b04f30360026, (v) => $086e93d2352a4536$export$d374b04f30360026 = v);
|
329
|
-
$parcel$export($086e93d2352a4536$exports, "spectrum-LogicButton", () => $086e93d2352a4536$export$36ae67a131730482, (v) => $086e93d2352a4536$export$36ae67a131730482 = v);
|
330
|
-
$parcel$export($086e93d2352a4536$exports, "spectrum-LogicButton--and", () => $086e93d2352a4536$export$e52daab43a62c528, (v) => $086e93d2352a4536$export$e52daab43a62c528 = v);
|
331
|
-
$parcel$export($086e93d2352a4536$exports, "spectrum-LogicButton--or", () => $086e93d2352a4536$export$da76be6126aaa633, (v) => $086e93d2352a4536$export$da76be6126aaa633 = v);
|
332
|
-
var $086e93d2352a4536$export$f39a09f249340e2a;
|
333
|
-
var $086e93d2352a4536$export$8c4ee2c50c22c514;
|
334
|
-
var $086e93d2352a4536$export$20fd0f7cd4e6112f;
|
335
|
-
var $086e93d2352a4536$export$d35bc1e505d1ebbf;
|
336
|
-
var $086e93d2352a4536$export$e7dc768d35940237;
|
337
|
-
var $086e93d2352a4536$export$b8813cd5d7824ce7;
|
338
|
-
var $086e93d2352a4536$export$a9781837241c946d;
|
339
|
-
var $086e93d2352a4536$export$e5b2f5233e4e5194;
|
340
|
-
var $086e93d2352a4536$export$1e0fb04f31d3c22a;
|
341
|
-
var $086e93d2352a4536$export$f7b415378ab4f839;
|
342
|
-
var $086e93d2352a4536$export$4109102f950813a6;
|
343
|
-
var $086e93d2352a4536$export$24c7f46a6e3605dd;
|
344
|
-
var $086e93d2352a4536$export$53da69f51b770d3;
|
345
|
-
var $086e93d2352a4536$export$5aabb61a966e266f;
|
346
|
-
var $086e93d2352a4536$export$40e1f009544bacf3;
|
347
|
-
var $086e93d2352a4536$export$8f7c9db66978d20f;
|
348
|
-
var $086e93d2352a4536$export$29b7b5d6a5a497c5;
|
349
|
-
var $086e93d2352a4536$export$ccc536e1adbdc059;
|
350
|
-
var $086e93d2352a4536$export$4a4f01c443eff992;
|
351
|
-
var $086e93d2352a4536$export$ebb4635c66bacdb9;
|
352
|
-
var $086e93d2352a4536$export$1db4cca5b4ade39a;
|
353
|
-
var $086e93d2352a4536$export$c1d306ec0fae3838;
|
354
|
-
var $086e93d2352a4536$export$5cda1128f9112d2e;
|
355
|
-
var $086e93d2352a4536$export$54592d0984f245d5;
|
356
|
-
var $086e93d2352a4536$export$76d4531f0342bbe0;
|
357
|
-
var $086e93d2352a4536$export$c081ba562e204942;
|
358
|
-
var $086e93d2352a4536$export$b752ce409e5660c;
|
359
|
-
var $086e93d2352a4536$export$116f2fccf941d34d;
|
360
|
-
var $086e93d2352a4536$export$49280ffa5236ba8b;
|
361
|
-
var $086e93d2352a4536$export$a024c99ecf6b5741;
|
362
|
-
var $086e93d2352a4536$export$c9f503f672e8a3c1;
|
363
|
-
var $086e93d2352a4536$export$2927016961429360;
|
364
|
-
var $086e93d2352a4536$export$5ca7b274e4fff9fc;
|
365
|
-
var $086e93d2352a4536$export$d374b04f30360026;
|
366
|
-
var $086e93d2352a4536$export$36ae67a131730482;
|
367
|
-
var $086e93d2352a4536$export$e52daab43a62c528;
|
368
|
-
var $086e93d2352a4536$export$da76be6126aaa633;
|
369
|
-
$086e93d2352a4536$export$f39a09f249340e2a = `Dniwja_focus-ring`;
|
370
|
-
$086e93d2352a4536$export$8c4ee2c50c22c514 = `Dniwja_i18nFontFamily`;
|
371
|
-
$086e93d2352a4536$export$20fd0f7cd4e6112f = `Dniwja_is-active`;
|
372
|
-
$086e93d2352a4536$export$d35bc1e505d1ebbf = `Dniwja_is-disabled`;
|
373
|
-
$086e93d2352a4536$export$e7dc768d35940237 = `Dniwja_is-focused`;
|
374
|
-
$086e93d2352a4536$export$b8813cd5d7824ce7 = `Dniwja_is-hovered`;
|
375
|
-
$086e93d2352a4536$export$a9781837241c946d = `Dniwja_is-open`;
|
376
|
-
$086e93d2352a4536$export$e5b2f5233e4e5194 = `Dniwja_is-placeholder`;
|
377
|
-
$086e93d2352a4536$export$1e0fb04f31d3c22a = `Dniwja_is-selected`;
|
378
|
-
$086e93d2352a4536$export$f7b415378ab4f839 = `Dniwja_spectrum-BaseButton ${$086e93d2352a4536$export$8c4ee2c50c22c514}`;
|
379
|
-
$086e93d2352a4536$export$4109102f950813a6 = `Dniwja_spectrum-FocusRing-ring`;
|
380
|
-
$086e93d2352a4536$export$24c7f46a6e3605dd = `Dniwja_spectrum-FocusRing ${$086e93d2352a4536$export$4109102f950813a6}`;
|
381
|
-
$086e93d2352a4536$export$53da69f51b770d3 = `Dniwja_spectrum-ActionButton ${$086e93d2352a4536$export$f7b415378ab4f839} ${$086e93d2352a4536$export$24c7f46a6e3605dd}`;
|
382
|
-
$086e93d2352a4536$export$5aabb61a966e266f = `Dniwja_spectrum-ActionButton--emphasized`;
|
383
|
-
$086e93d2352a4536$export$40e1f009544bacf3 = `Dniwja_spectrum-ActionButton--quiet`;
|
384
|
-
$086e93d2352a4536$export$8f7c9db66978d20f = `Dniwja_spectrum-ActionButton--staticBlack`;
|
385
|
-
$086e93d2352a4536$export$29b7b5d6a5a497c5 = `Dniwja_spectrum-ActionButton--staticColor`;
|
386
|
-
$086e93d2352a4536$export$ccc536e1adbdc059 = `Dniwja_spectrum-ActionButton--staticWhite`;
|
387
|
-
$086e93d2352a4536$export$4a4f01c443eff992 = `Dniwja_spectrum-ActionButton-hold`;
|
388
|
-
$086e93d2352a4536$export$ebb4635c66bacdb9 = `Dniwja_spectrum-ActionButton-label`;
|
389
|
-
$086e93d2352a4536$export$1db4cca5b4ade39a = `Dniwja_spectrum-Button ${$086e93d2352a4536$export$f7b415378ab4f839} ${$086e93d2352a4536$export$24c7f46a6e3605dd}`;
|
390
|
-
$086e93d2352a4536$export$c1d306ec0fae3838 = `Dniwja_spectrum-Button--iconOnly`;
|
391
|
-
$086e93d2352a4536$export$5cda1128f9112d2e = `Dniwja_spectrum-Button--overBackground`;
|
392
|
-
$086e93d2352a4536$export$54592d0984f245d5 = `Dniwja_spectrum-Button--pending`;
|
393
|
-
$086e93d2352a4536$export$76d4531f0342bbe0 = `Dniwja_spectrum-Button-circleLoader`;
|
394
|
-
$086e93d2352a4536$export$c081ba562e204942 = `Dniwja_spectrum-Button-label`;
|
395
|
-
$086e93d2352a4536$export$b752ce409e5660c = `Dniwja_spectrum-ClearButton ${$086e93d2352a4536$export$f7b415378ab4f839} ${$086e93d2352a4536$export$24c7f46a6e3605dd}`;
|
396
|
-
$086e93d2352a4536$export$116f2fccf941d34d = `Dniwja_spectrum-ClearButton--overBackground`;
|
397
|
-
$086e93d2352a4536$export$49280ffa5236ba8b = `Dniwja_spectrum-ClearButton--small`;
|
398
|
-
$086e93d2352a4536$export$a024c99ecf6b5741 = `Dniwja_spectrum-FieldButton ${$086e93d2352a4536$export$f7b415378ab4f839} ${$086e93d2352a4536$export$24c7f46a6e3605dd}`;
|
399
|
-
$086e93d2352a4536$export$c9f503f672e8a3c1 = `Dniwja_spectrum-FieldButton--invalid`;
|
400
|
-
$086e93d2352a4536$export$2927016961429360 = `Dniwja_spectrum-FocusRing--quiet`;
|
401
|
-
$086e93d2352a4536$export$5ca7b274e4fff9fc = `Dniwja_spectrum-FieldButton--quiet ${$086e93d2352a4536$export$2927016961429360}`;
|
402
|
-
$086e93d2352a4536$export$d374b04f30360026 = `Dniwja_spectrum-Icon`;
|
403
|
-
$086e93d2352a4536$export$36ae67a131730482 = `Dniwja_spectrum-LogicButton ${$086e93d2352a4536$export$f7b415378ab4f839} ${$086e93d2352a4536$export$24c7f46a6e3605dd}`;
|
404
|
-
$086e93d2352a4536$export$e52daab43a62c528 = `Dniwja_spectrum-LogicButton--and`;
|
405
|
-
$086e93d2352a4536$export$da76be6126aaa633 = `Dniwja_spectrum-LogicButton--or`;
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
function $b865a6f0049e2d66$var$disablePendingProps(props) {
|
414
|
-
// Don't allow interaction while isPending is true
|
415
|
-
if (props.isPending) {
|
416
|
-
props.onPress = undefined;
|
417
|
-
props.onPressStart = undefined;
|
418
|
-
props.onPressEnd = undefined;
|
419
|
-
props.onPressChange = undefined;
|
420
|
-
props.onPressUp = undefined;
|
421
|
-
props.onKeyDown = undefined;
|
422
|
-
props.onKeyUp = undefined;
|
423
|
-
props.onClick = undefined;
|
424
|
-
props.href = undefined;
|
425
|
-
}
|
426
|
-
return props;
|
427
|
-
}
|
428
|
-
function $b865a6f0049e2d66$var$Button(props, ref) {
|
429
|
-
var _buttonProps_arialabelledby;
|
430
|
-
props = (0, $d7FTw$useProviderProps)(props);
|
431
|
-
props = (0, $d7FTw$useSlotProps)(props, "button");
|
432
|
-
props = $b865a6f0049e2d66$var$disablePendingProps(props);
|
433
|
-
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;
|
434
|
-
let domRef = (0, $d7FTw$useFocusableRef)(ref);
|
435
|
-
let { buttonProps: buttonProps, isPressed: isPressed } = (0, $d7FTw$useButton)(props, domRef);
|
436
|
-
let { hoverProps: hoverProps, isHovered: isHovered } = (0, $d7FTw$useHover)({
|
437
|
-
isDisabled: isDisabled
|
438
|
-
});
|
439
|
-
let [isFocused, onFocusChange] = (0, $d7FTw$useState)(false);
|
440
|
-
let { focusProps: focusProps } = (0, $d7FTw$useFocus)({
|
441
|
-
onFocusChange: onFocusChange,
|
442
|
-
isDisabled: isDisabled
|
443
|
-
});
|
444
|
-
let stringFormatter = (0, $d7FTw$useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($94fed84ca44dbd5b$exports))), "@react-spectrum/button");
|
445
|
-
let { styleProps: styleProps } = (0, $d7FTw$useStyleProps)(otherProps);
|
446
|
-
let hasLabel = (0, $d7FTw$useHasChild)(`.${(0, (/*@__PURE__*/$parcel$interopDefault($086e93d2352a4536$exports)))["spectrum-Button-label"]}`, domRef);
|
447
|
-
let hasIcon = (0, $d7FTw$useHasChild)(`.${(0, (/*@__PURE__*/$parcel$interopDefault($086e93d2352a4536$exports)))["spectrum-Icon"]}`, domRef);
|
448
|
-
// an aria label will block children and their labels from being read, this is undesirable for pending state
|
449
|
-
let hasAriaLabel = !!buttonProps["aria-label"] || !!buttonProps["aria-labelledby"];
|
450
|
-
let [isProgressVisible, setIsProgressVisible] = (0, $d7FTw$useState)(false);
|
451
|
-
let backupButtonId = (0, $d7FTw$useId)();
|
452
|
-
let buttonId = buttonProps.id || backupButtonId;
|
453
|
-
let iconId = (0, $d7FTw$useId)();
|
454
|
-
let textId = (0, $d7FTw$useId)();
|
455
|
-
let spinnerId = (0, $d7FTw$useId)();
|
456
|
-
(0, $d7FTw$useEffect)(()=>{
|
457
|
-
let timeout;
|
458
|
-
if (isPending) // Start timer when isPending is set to true.
|
459
|
-
timeout = setTimeout(()=>{
|
460
|
-
setIsProgressVisible(true);
|
461
|
-
}, 1000);
|
462
|
-
else // Exit loading state when isPending is set to false. */
|
463
|
-
setIsProgressVisible(false);
|
464
|
-
return ()=>{
|
465
|
-
// Clean up on unmount or when user removes isPending prop before entering loading state.
|
466
|
-
clearTimeout(timeout);
|
467
|
-
};
|
468
|
-
}, [
|
469
|
-
isPending
|
470
|
-
]);
|
471
|
-
if (variant === "cta") variant = "accent";
|
472
|
-
else if (variant === "overBackground") {
|
473
|
-
variant = "primary";
|
474
|
-
staticColor = "white";
|
475
|
-
}
|
476
|
-
const isPendingAriaLiveLabel = `${hasAriaLabel ? buttonProps["aria-label"] : ""} ${stringFormatter.format("pending")}`.trim();
|
477
|
-
var _buttonProps_arialabelledby_replace;
|
478
|
-
const isPendingAriaLiveLabelledby = hasAriaLabel ? (_buttonProps_arialabelledby_replace = (_buttonProps_arialabelledby = buttonProps["aria-labelledby"]) === null || _buttonProps_arialabelledby === void 0 ? void 0 : _buttonProps_arialabelledby.replace(buttonId, spinnerId)) !== null && _buttonProps_arialabelledby_replace !== void 0 ? _buttonProps_arialabelledby_replace : spinnerId : `${hasIcon ? iconId : ""} ${hasLabel ? textId : ""} ${spinnerId}`.trim();
|
479
|
-
let ariaLive = "polite";
|
480
|
-
if ((0, $d7FTw$isAppleDevice)() && (!hasAriaLabel || (0, $d7FTw$isFirefox)())) ariaLive = "off";
|
481
|
-
return /*#__PURE__*/ (0, $d7FTw$react).createElement((0, $d7FTw$FocusRing), {
|
482
|
-
focusRingClass: (0, $d7FTw$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($086e93d2352a4536$exports))), "focus-ring"),
|
483
|
-
autoFocus: autoFocus
|
484
|
-
}, /*#__PURE__*/ (0, $d7FTw$react).createElement(Element, {
|
485
|
-
...styleProps,
|
486
|
-
...(0, $d7FTw$mergeProps)(buttonProps, hoverProps, focusProps),
|
487
|
-
id: buttonId,
|
488
|
-
ref: domRef,
|
489
|
-
"data-variant": variant,
|
490
|
-
"data-style": style,
|
491
|
-
"data-static-color": staticColor || undefined,
|
492
|
-
"aria-disabled": isPending ? "true" : undefined,
|
493
|
-
"aria-label": isPending ? isPendingAriaLiveLabel : buttonProps["aria-label"],
|
494
|
-
"aria-labelledby": isPending ? isPendingAriaLiveLabelledby : buttonProps["aria-labelledby"],
|
495
|
-
className: (0, $d7FTw$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($086e93d2352a4536$exports))), "spectrum-Button", {
|
496
|
-
"spectrum-Button--iconOnly": hasIcon && !hasLabel,
|
497
|
-
"is-disabled": isDisabled || isProgressVisible,
|
498
|
-
"is-active": isPressed,
|
499
|
-
"is-hovered": isHovered,
|
500
|
-
"spectrum-Button--pending": isProgressVisible
|
501
|
-
}, styleProps.className)
|
502
|
-
}, /*#__PURE__*/ (0, $d7FTw$react).createElement((0, $d7FTw$SlotProvider), {
|
503
|
-
slots: {
|
504
|
-
icon: {
|
505
|
-
id: iconId,
|
506
|
-
size: "S",
|
507
|
-
UNSAFE_className: (0, $d7FTw$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($086e93d2352a4536$exports))), "spectrum-Icon")
|
508
|
-
},
|
509
|
-
text: {
|
510
|
-
id: textId,
|
511
|
-
UNSAFE_className: (0, $d7FTw$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($086e93d2352a4536$exports))), "spectrum-Button-label")
|
512
|
-
}
|
513
|
-
}
|
514
|
-
}, typeof children === "string" ? /*#__PURE__*/ (0, $d7FTw$react).createElement((0, $d7FTw$Text), null, children) : children, isPending && /*#__PURE__*/ (0, $d7FTw$react).createElement("div", {
|
515
|
-
"aria-hidden": "true",
|
516
|
-
style: {
|
517
|
-
visibility: isProgressVisible ? "visible" : "hidden"
|
518
|
-
},
|
519
|
-
className: (0, $d7FTw$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($086e93d2352a4536$exports))), "spectrum-Button-circleLoader")
|
520
|
-
}, /*#__PURE__*/ (0, $d7FTw$react).createElement((0, $d7FTw$ProgressCircle), {
|
521
|
-
"aria-label": isPendingAriaLiveLabel,
|
522
|
-
isIndeterminate: true,
|
523
|
-
size: "S",
|
524
|
-
staticColor: staticColor
|
525
|
-
})), isPending && /*#__PURE__*/ (0, $d7FTw$react).createElement((0, $d7FTw$react).Fragment, null, /*#__PURE__*/ (0, $d7FTw$react).createElement("div", {
|
526
|
-
"aria-live": isFocused ? ariaLive : "off"
|
527
|
-
}, isProgressVisible && /*#__PURE__*/ (0, $d7FTw$react).createElement("div", {
|
528
|
-
role: "img",
|
529
|
-
"aria-labelledby": isPendingAriaLiveLabelledby
|
530
|
-
})), /*#__PURE__*/ (0, $d7FTw$react).createElement("div", {
|
531
|
-
id: spinnerId,
|
532
|
-
role: "img",
|
533
|
-
"aria-label": isPendingAriaLiveLabel
|
534
|
-
})))));
|
535
|
-
}
|
536
|
-
/**
|
537
|
-
* Buttons allow users to perform an action or to navigate to another page.
|
538
|
-
* They have multiple styles for various needs, and are ideal for calling attention to
|
539
|
-
* where a user needs to do something in order to move forward in a flow.
|
540
|
-
*/ let $b865a6f0049e2d66$export$353f5b6fc5456de1 = /*#__PURE__*/ (0, $d7FTw$react).forwardRef($b865a6f0049e2d66$var$Button);
|
541
|
-
|
542
|
-
|
543
|
-
/*
|
544
|
-
* Copyright 2020 Adobe. All rights reserved.
|
545
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
546
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
547
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
548
|
-
*
|
549
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
550
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
551
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
552
|
-
* governing permissions and limitations under the License.
|
553
|
-
*/
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
function $042ad0b3a4a55b33$var$ActionButton(props, ref) {
|
564
|
-
props = (0, $d7FTw$useProviderProps)(props);
|
565
|
-
props = (0, $d7FTw$useSlotProps)(props, "actionButton");
|
566
|
-
let { isQuiet: isQuiet, isDisabled: isDisabled, staticColor: staticColor, children: children, autoFocus: autoFocus, holdAffordance: // @ts-ignore (private)
|
567
|
-
holdAffordance, ...otherProps } = props;
|
568
|
-
let domRef = (0, $d7FTw$useFocusableRef)(ref);
|
569
|
-
let { buttonProps: buttonProps, isPressed: isPressed } = (0, $d7FTw$useButton)(props, domRef);
|
570
|
-
let { hoverProps: hoverProps, isHovered: isHovered } = (0, $d7FTw$useHover)({
|
571
|
-
isDisabled: isDisabled
|
572
|
-
});
|
573
|
-
let { styleProps: styleProps } = (0, $d7FTw$useStyleProps)(otherProps);
|
574
|
-
let isTextOnly = (0, $d7FTw$react).Children.toArray(props.children).every((c)=>!/*#__PURE__*/ (0, $d7FTw$react).isValidElement(c));
|
575
|
-
return /*#__PURE__*/ (0, $d7FTw$react).createElement((0, $d7FTw$FocusRing), {
|
576
|
-
focusRingClass: (0, $d7FTw$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($086e93d2352a4536$exports))), "focus-ring"),
|
577
|
-
autoFocus: autoFocus
|
578
|
-
}, /*#__PURE__*/ (0, $d7FTw$react).createElement("button", {
|
579
|
-
...styleProps,
|
580
|
-
...(0, $d7FTw$mergeProps)(buttonProps, hoverProps),
|
581
|
-
ref: domRef,
|
582
|
-
className: (0, $d7FTw$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($086e93d2352a4536$exports))), "spectrum-ActionButton", {
|
583
|
-
"spectrum-ActionButton--quiet": isQuiet,
|
584
|
-
"spectrum-ActionButton--staticColor": !!staticColor,
|
585
|
-
"spectrum-ActionButton--staticWhite": staticColor === "white",
|
586
|
-
"spectrum-ActionButton--staticBlack": staticColor === "black",
|
587
|
-
"is-active": isPressed,
|
588
|
-
"is-disabled": isDisabled,
|
589
|
-
"is-hovered": isHovered
|
590
|
-
}, styleProps.className)
|
591
|
-
}, holdAffordance && /*#__PURE__*/ (0, $d7FTw$react).createElement((0, $d7FTw$spectrumiconsuiCornerTriangle), {
|
592
|
-
UNSAFE_className: (0, $d7FTw$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($086e93d2352a4536$exports))), "spectrum-ActionButton-hold")
|
593
|
-
}), /*#__PURE__*/ (0, $d7FTw$react).createElement((0, $d7FTw$SlotProvider), {
|
594
|
-
slots: {
|
595
|
-
icon: {
|
596
|
-
size: "S",
|
597
|
-
UNSAFE_className: (0, $d7FTw$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($086e93d2352a4536$exports))), "spectrum-Icon")
|
598
|
-
},
|
599
|
-
text: {
|
600
|
-
UNSAFE_className: (0, $d7FTw$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($086e93d2352a4536$exports))), "spectrum-ActionButton-label")
|
601
|
-
}
|
602
|
-
}
|
603
|
-
}, typeof children === "string" || isTextOnly ? /*#__PURE__*/ (0, $d7FTw$react).createElement((0, $d7FTw$Text), null, children) : children)));
|
604
|
-
}
|
605
|
-
/**
|
606
|
-
* ActionButtons allow users to perform an action.
|
607
|
-
* They’re used for similar, task-based options within a workflow, and are ideal for interfaces where buttons aren’t meant to draw a lot of attention.
|
608
|
-
*/ let $042ad0b3a4a55b33$export$cfc7921d29ef7b80 = /*#__PURE__*/ (0, $d7FTw$react).forwardRef($042ad0b3a4a55b33$var$ActionButton);
|
609
|
-
|
610
|
-
|
611
|
-
/*
|
612
|
-
* Copyright 2020 Adobe. All rights reserved.
|
613
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
614
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
615
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
616
|
-
*
|
617
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
618
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
619
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
620
|
-
* governing permissions and limitations under the License.
|
621
|
-
*/
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
// @private
|
629
|
-
function $b43bd559b476d0c4$var$FieldButton(props, ref) {
|
630
|
-
props = (0, $d7FTw$useSlotProps)(props, "button");
|
631
|
-
let { isQuiet: isQuiet, isDisabled: isDisabled, validationState: validationState, isInvalid: isInvalid, children: children, autoFocus: autoFocus, isActive: isActive, focusRingClass: focusRingClass, ...otherProps } = props;
|
632
|
-
let domRef = (0, $d7FTw$useFocusableRef)(ref);
|
633
|
-
let { buttonProps: buttonProps, isPressed: isPressed } = (0, $d7FTw$useButton)(props, domRef);
|
634
|
-
let { hoverProps: hoverProps, isHovered: isHovered } = (0, $d7FTw$useHover)({
|
635
|
-
isDisabled: isDisabled
|
636
|
-
});
|
637
|
-
let { styleProps: styleProps } = (0, $d7FTw$useStyleProps)(otherProps);
|
638
|
-
return /*#__PURE__*/ (0, $d7FTw$react).createElement((0, $d7FTw$FocusRing), {
|
639
|
-
focusRingClass: (0, $d7FTw$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($086e93d2352a4536$exports))), "focus-ring", focusRingClass),
|
640
|
-
autoFocus: autoFocus
|
641
|
-
}, /*#__PURE__*/ (0, $d7FTw$react).createElement("button", {
|
642
|
-
...(0, $d7FTw$mergeProps)(buttonProps, hoverProps),
|
643
|
-
ref: domRef,
|
644
|
-
className: (0, $d7FTw$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($086e93d2352a4536$exports))), "spectrum-FieldButton", {
|
645
|
-
"spectrum-FieldButton--quiet": isQuiet,
|
646
|
-
"is-active": isActive || isPressed,
|
647
|
-
"is-disabled": isDisabled,
|
648
|
-
"spectrum-FieldButton--invalid": isInvalid || validationState === "invalid",
|
649
|
-
"is-hovered": isHovered
|
650
|
-
}, styleProps.className)
|
651
|
-
}, /*#__PURE__*/ (0, $d7FTw$react).createElement((0, $d7FTw$SlotProvider), {
|
652
|
-
slots: {
|
653
|
-
icon: {
|
654
|
-
size: "S",
|
655
|
-
UNSAFE_className: (0, $d7FTw$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($086e93d2352a4536$exports))), "spectrum-Icon")
|
656
|
-
}
|
657
|
-
}
|
658
|
-
}, children)));
|
659
|
-
}
|
660
|
-
let $b43bd559b476d0c4$export$47dc48f595b075da = /*#__PURE__*/ (0, $d7FTw$react).forwardRef($b43bd559b476d0c4$var$FieldButton);
|
661
|
-
|
662
|
-
|
663
|
-
/*
|
664
|
-
* Copyright 2020 Adobe. All rights reserved.
|
665
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
666
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
667
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
668
|
-
*
|
669
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
670
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
671
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
672
|
-
* governing permissions and limitations under the License.
|
673
|
-
*/
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
function $45108e3c482ee88b$var$LogicButton(props, ref) {
|
682
|
-
props = (0, $d7FTw$useProviderProps)(props);
|
683
|
-
let { variant: variant, children: children, isDisabled: isDisabled, autoFocus: autoFocus, ...otherProps } = props;
|
684
|
-
let domRef = (0, $d7FTw$useFocusableRef)(ref);
|
685
|
-
let { buttonProps: buttonProps, isPressed: isPressed } = (0, $d7FTw$useButton)(props, domRef);
|
686
|
-
let { hoverProps: hoverProps, isHovered: isHovered } = (0, $d7FTw$useHover)({
|
687
|
-
isDisabled: isDisabled
|
688
|
-
});
|
689
|
-
let { styleProps: styleProps } = (0, $d7FTw$useStyleProps)(otherProps);
|
690
|
-
return /*#__PURE__*/ (0, $d7FTw$react).createElement((0, $d7FTw$FocusRing), {
|
691
|
-
focusRingClass: (0, $d7FTw$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($086e93d2352a4536$exports))), "focus-ring"),
|
692
|
-
autoFocus: autoFocus
|
693
|
-
}, /*#__PURE__*/ (0, $d7FTw$react).createElement("button", {
|
694
|
-
...styleProps,
|
695
|
-
...(0, $d7FTw$mergeProps)(buttonProps, hoverProps),
|
696
|
-
ref: domRef,
|
697
|
-
className: (0, $d7FTw$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($086e93d2352a4536$exports))), "spectrum-LogicButton", {
|
698
|
-
[`spectrum-LogicButton--${variant}`]: variant,
|
699
|
-
"is-disabled": isDisabled,
|
700
|
-
"is-active": isPressed,
|
701
|
-
"is-hovered": isHovered
|
702
|
-
}, styleProps.className)
|
703
|
-
}, /*#__PURE__*/ (0, $d7FTw$react).createElement("span", {
|
704
|
-
className: (0, $d7FTw$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($086e93d2352a4536$exports))), "spectrum-Button-label")
|
705
|
-
}, children)));
|
706
|
-
}
|
707
|
-
/**
|
708
|
-
* A LogicButton displays an operator within a boolean logic sequence.
|
709
|
-
*/ let $45108e3c482ee88b$export$9b0b80fed00ba8b1 = /*#__PURE__*/ (0, $d7FTw$react).forwardRef($45108e3c482ee88b$var$LogicButton);
|
710
|
-
|
711
|
-
|
712
|
-
/*
|
713
|
-
* Copyright 2020 Adobe. All rights reserved.
|
714
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
715
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
716
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
717
|
-
*
|
718
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
719
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
720
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
721
|
-
* governing permissions and limitations under the License.
|
722
|
-
*/
|
723
|
-
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
function $dd24e555a16de2ae$var$ClearButton(props, ref) {
|
731
|
-
let { children: children = /*#__PURE__*/ (0, $d7FTw$react).createElement((0, $d7FTw$spectrumiconsuiCrossSmall), {
|
732
|
-
UNSAFE_className: (0, (/*@__PURE__*/$parcel$interopDefault($086e93d2352a4536$exports)))["spectrum-Icon"]
|
733
|
-
}), focusClassName: focusClassName, variant: variant, autoFocus: autoFocus, isDisabled: isDisabled, preventFocus: preventFocus, elementType: elementType = preventFocus ? "div" : "button", ...otherProps } = props;
|
734
|
-
let domRef = (0, $d7FTw$useFocusableRef)(ref);
|
735
|
-
let { buttonProps: buttonProps, isPressed: isPressed } = (0, $d7FTw$useButton)({
|
736
|
-
...props,
|
737
|
-
elementType: elementType
|
738
|
-
}, domRef);
|
739
|
-
let { hoverProps: hoverProps, isHovered: isHovered } = (0, $d7FTw$useHover)({
|
740
|
-
isDisabled: isDisabled
|
741
|
-
});
|
742
|
-
let { styleProps: styleProps } = (0, $d7FTw$useStyleProps)(otherProps);
|
743
|
-
// For cases like the clear button in a search field, remove the tabIndex so
|
744
|
-
// iOS 14 with VoiceOver doesn't focus the button and hide the keyboard when
|
745
|
-
// moving the cursor over the clear button.
|
746
|
-
if (preventFocus) delete buttonProps.tabIndex;
|
747
|
-
let ElementType = elementType;
|
748
|
-
return /*#__PURE__*/ (0, $d7FTw$react).createElement((0, $d7FTw$FocusRing), {
|
749
|
-
focusRingClass: (0, $d7FTw$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($086e93d2352a4536$exports))), "focus-ring", focusClassName),
|
750
|
-
autoFocus: autoFocus
|
751
|
-
}, /*#__PURE__*/ (0, $d7FTw$react).createElement(ElementType, {
|
752
|
-
...styleProps,
|
753
|
-
...(0, $d7FTw$mergeProps)(buttonProps, hoverProps),
|
754
|
-
ref: domRef,
|
755
|
-
className: (0, $d7FTw$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($086e93d2352a4536$exports))), "spectrum-ClearButton", {
|
756
|
-
[`spectrum-ClearButton--${variant}`]: variant,
|
757
|
-
"is-disabled": isDisabled,
|
758
|
-
"is-active": isPressed,
|
759
|
-
"is-hovered": isHovered
|
760
|
-
}, styleProps.className)
|
761
|
-
}, children));
|
762
|
-
}
|
763
|
-
let $dd24e555a16de2ae$export$13ec83e50bf04290 = /*#__PURE__*/ (0, $d7FTw$react).forwardRef($dd24e555a16de2ae$var$ClearButton);
|
764
|
-
|
765
|
-
|
766
|
-
/*
|
767
|
-
* Copyright 2020 Adobe. All rights reserved.
|
768
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
769
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
770
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
771
|
-
*
|
772
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
773
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
774
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
775
|
-
* governing permissions and limitations under the License.
|
776
|
-
*/
|
777
|
-
|
778
|
-
|
779
|
-
|
780
|
-
|
781
|
-
|
782
19
|
|
783
20
|
|
784
21
|
|
785
22
|
|
786
|
-
function $3979c7c23b0bd270$var$ToggleButton(props, ref) {
|
787
|
-
props = (0, $d7FTw$useProviderProps)(props);
|
788
|
-
let { isQuiet: isQuiet, isDisabled: isDisabled, isEmphasized: isEmphasized, staticColor: staticColor, children: children, autoFocus: autoFocus, ...otherProps } = props;
|
789
|
-
let domRef = (0, $d7FTw$useFocusableRef)(ref);
|
790
|
-
let state = (0, $d7FTw$useToggleState)(props);
|
791
|
-
let { buttonProps: buttonProps, isPressed: isPressed } = (0, $d7FTw$useToggleButton)(props, state, domRef);
|
792
|
-
let { hoverProps: hoverProps, isHovered: isHovered } = (0, $d7FTw$useHover)({
|
793
|
-
isDisabled: isDisabled
|
794
|
-
});
|
795
|
-
let { styleProps: styleProps } = (0, $d7FTw$useStyleProps)(otherProps);
|
796
|
-
let isTextOnly = (0, $d7FTw$react).Children.toArray(props.children).every((c)=>!/*#__PURE__*/ (0, $d7FTw$react).isValidElement(c));
|
797
|
-
return /*#__PURE__*/ (0, $d7FTw$react).createElement((0, $d7FTw$FocusRing), {
|
798
|
-
focusRingClass: (0, $d7FTw$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($086e93d2352a4536$exports))), "focus-ring"),
|
799
|
-
autoFocus: autoFocus
|
800
|
-
}, /*#__PURE__*/ (0, $d7FTw$react).createElement("button", {
|
801
|
-
...styleProps,
|
802
|
-
...(0, $d7FTw$mergeProps)(buttonProps, hoverProps),
|
803
|
-
ref: domRef,
|
804
|
-
className: (0, $d7FTw$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($086e93d2352a4536$exports))), "spectrum-ActionButton", {
|
805
|
-
"spectrum-ActionButton--quiet": isQuiet,
|
806
|
-
"spectrum-ActionButton--emphasized": isEmphasized,
|
807
|
-
"spectrum-ActionButton--staticColor": !!staticColor,
|
808
|
-
"spectrum-ActionButton--staticWhite": staticColor === "white",
|
809
|
-
"spectrum-ActionButton--staticBlack": staticColor === "black",
|
810
|
-
"is-active": isPressed,
|
811
|
-
"is-disabled": isDisabled,
|
812
|
-
"is-hovered": isHovered,
|
813
|
-
"is-selected": state.isSelected
|
814
|
-
}, styleProps.className)
|
815
|
-
}, /*#__PURE__*/ (0, $d7FTw$react).createElement((0, $d7FTw$SlotProvider), {
|
816
|
-
slots: {
|
817
|
-
icon: {
|
818
|
-
size: "S",
|
819
|
-
UNSAFE_className: (0, $d7FTw$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($086e93d2352a4536$exports))), "spectrum-Icon")
|
820
|
-
},
|
821
|
-
text: {
|
822
|
-
UNSAFE_className: (0, $d7FTw$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($086e93d2352a4536$exports))), "spectrum-ActionButton-label")
|
823
|
-
}
|
824
|
-
}
|
825
|
-
}, typeof children === "string" || isTextOnly ? /*#__PURE__*/ (0, $d7FTw$react).createElement((0, $d7FTw$Text), null, children) : children)));
|
826
|
-
}
|
827
|
-
/**
|
828
|
-
* ToggleButtons allow users to toggle a selection on or off, for example
|
829
|
-
* switching between two states or modes.
|
830
|
-
*/ let $3979c7c23b0bd270$export$d2b052e7b4be1756 = /*#__PURE__*/ (0, $d7FTw$react).forwardRef($3979c7c23b0bd270$var$ToggleButton);
|
831
23
|
|
832
24
|
|
833
25
|
|