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