@react-spectrum/icon 3.7.4 → 3.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/import.mjs +68 -68
- package/dist/main.css +1 -1
- package/dist/main.js +68 -68
- package/dist/main.js.map +1 -1
- package/dist/module.js +68 -68
- package/dist/module.js.map +1 -1
- package/package.json +5 -5
package/dist/import.mjs
CHANGED
|
@@ -36,19 +36,19 @@ function $parcel$export(e, n, v, s) {
|
|
|
36
36
|
|
|
37
37
|
var $6edfbdaffbc9baf9$exports = {};
|
|
38
38
|
|
|
39
|
+
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum--large", () => $6edfbdaffbc9baf9$export$a88a8dbe29386d31, (v) => $6edfbdaffbc9baf9$export$a88a8dbe29386d31 = v);
|
|
40
|
+
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum--medium", () => $6edfbdaffbc9baf9$export$4c0c83b3f4303ef8, (v) => $6edfbdaffbc9baf9$export$4c0c83b3f4303ef8 = v);
|
|
39
41
|
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-Icon", () => $6edfbdaffbc9baf9$export$d374b04f30360026, (v) => $6edfbdaffbc9baf9$export$d374b04f30360026 = v);
|
|
40
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon", () => $6edfbdaffbc9baf9$export$c7db7fdc5aac13aa, (v) => $6edfbdaffbc9baf9$export$c7db7fdc5aac13aa = v);
|
|
41
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-Icon--sizeXXS", () => $6edfbdaffbc9baf9$export$cab8448604b31f43, (v) => $6edfbdaffbc9baf9$export$cab8448604b31f43 = v);
|
|
42
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-Icon--sizeXS", () => $6edfbdaffbc9baf9$export$557c0af6873b4222, (v) => $6edfbdaffbc9baf9$export$557c0af6873b4222 = v);
|
|
43
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-Icon--sizeS", () => $6edfbdaffbc9baf9$export$34ce05647f0c65e, (v) => $6edfbdaffbc9baf9$export$34ce05647f0c65e = v);
|
|
44
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-Icon--sizeM", () => $6edfbdaffbc9baf9$export$8f1693ac47916bbf, (v) => $6edfbdaffbc9baf9$export$8f1693ac47916bbf = v);
|
|
45
42
|
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-Icon--sizeL", () => $6edfbdaffbc9baf9$export$8d23c37ef2a4f13e, (v) => $6edfbdaffbc9baf9$export$8d23c37ef2a4f13e = v);
|
|
43
|
+
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-Icon--sizeM", () => $6edfbdaffbc9baf9$export$8f1693ac47916bbf, (v) => $6edfbdaffbc9baf9$export$8f1693ac47916bbf = v);
|
|
44
|
+
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-Icon--sizeS", () => $6edfbdaffbc9baf9$export$34ce05647f0c65e, (v) => $6edfbdaffbc9baf9$export$34ce05647f0c65e = v);
|
|
46
45
|
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-Icon--sizeXL", () => $6edfbdaffbc9baf9$export$c6e70a22e841bc1b, (v) => $6edfbdaffbc9baf9$export$c6e70a22e841bc1b = v);
|
|
46
|
+
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-Icon--sizeXS", () => $6edfbdaffbc9baf9$export$557c0af6873b4222, (v) => $6edfbdaffbc9baf9$export$557c0af6873b4222 = v);
|
|
47
47
|
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-Icon--sizeXXL", () => $6edfbdaffbc9baf9$export$b37777493a27e620, (v) => $6edfbdaffbc9baf9$export$b37777493a27e620 = v);
|
|
48
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum--
|
|
48
|
+
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-Icon--sizeXXS", () => $6edfbdaffbc9baf9$export$cab8448604b31f43, (v) => $6edfbdaffbc9baf9$export$cab8448604b31f43 = v);
|
|
49
|
+
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon", () => $6edfbdaffbc9baf9$export$c7db7fdc5aac13aa, (v) => $6edfbdaffbc9baf9$export$c7db7fdc5aac13aa = v);
|
|
49
50
|
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon--large", () => $6edfbdaffbc9baf9$export$2265a487ad399d8b, (v) => $6edfbdaffbc9baf9$export$2265a487ad399d8b = v);
|
|
50
51
|
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon--medium", () => $6edfbdaffbc9baf9$export$a6044013cf72ddc9, (v) => $6edfbdaffbc9baf9$export$a6044013cf72ddc9 = v);
|
|
51
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum--large", () => $6edfbdaffbc9baf9$export$a88a8dbe29386d31, (v) => $6edfbdaffbc9baf9$export$a88a8dbe29386d31 = v);
|
|
52
52
|
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon-AlertMedium", () => $6edfbdaffbc9baf9$export$83be8302c01b6478, (v) => $6edfbdaffbc9baf9$export$83be8302c01b6478 = v);
|
|
53
53
|
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon-AlertSmall", () => $6edfbdaffbc9baf9$export$57b49d6ee2e9f187, (v) => $6edfbdaffbc9baf9$export$57b49d6ee2e9f187 = v);
|
|
54
54
|
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon-ArrowDownSmall", () => $6edfbdaffbc9baf9$export$81968d05e3681b3f, (v) => $6edfbdaffbc9baf9$export$81968d05e3681b3f = v);
|
|
@@ -84,19 +84,19 @@ $parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon-StarOutline", () => $
|
|
|
84
84
|
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon-SuccessMedium", () => $6edfbdaffbc9baf9$export$d18d2d837989a797, (v) => $6edfbdaffbc9baf9$export$d18d2d837989a797 = v);
|
|
85
85
|
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon-SuccessSmall", () => $6edfbdaffbc9baf9$export$506ac7a1a72a2c65, (v) => $6edfbdaffbc9baf9$export$506ac7a1a72a2c65 = v);
|
|
86
86
|
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon-TripleGripper", () => $6edfbdaffbc9baf9$export$12b8600bcd969018, (v) => $6edfbdaffbc9baf9$export$12b8600bcd969018 = v);
|
|
87
|
+
var $6edfbdaffbc9baf9$export$a88a8dbe29386d31;
|
|
88
|
+
var $6edfbdaffbc9baf9$export$4c0c83b3f4303ef8;
|
|
87
89
|
var $6edfbdaffbc9baf9$export$d374b04f30360026;
|
|
88
|
-
var $6edfbdaffbc9baf9$export$c7db7fdc5aac13aa;
|
|
89
|
-
var $6edfbdaffbc9baf9$export$cab8448604b31f43;
|
|
90
|
-
var $6edfbdaffbc9baf9$export$557c0af6873b4222;
|
|
91
|
-
var $6edfbdaffbc9baf9$export$34ce05647f0c65e;
|
|
92
|
-
var $6edfbdaffbc9baf9$export$8f1693ac47916bbf;
|
|
93
90
|
var $6edfbdaffbc9baf9$export$8d23c37ef2a4f13e;
|
|
91
|
+
var $6edfbdaffbc9baf9$export$8f1693ac47916bbf;
|
|
92
|
+
var $6edfbdaffbc9baf9$export$34ce05647f0c65e;
|
|
94
93
|
var $6edfbdaffbc9baf9$export$c6e70a22e841bc1b;
|
|
94
|
+
var $6edfbdaffbc9baf9$export$557c0af6873b4222;
|
|
95
95
|
var $6edfbdaffbc9baf9$export$b37777493a27e620;
|
|
96
|
-
var $6edfbdaffbc9baf9$export$
|
|
96
|
+
var $6edfbdaffbc9baf9$export$cab8448604b31f43;
|
|
97
|
+
var $6edfbdaffbc9baf9$export$c7db7fdc5aac13aa;
|
|
97
98
|
var $6edfbdaffbc9baf9$export$2265a487ad399d8b;
|
|
98
99
|
var $6edfbdaffbc9baf9$export$a6044013cf72ddc9;
|
|
99
|
-
var $6edfbdaffbc9baf9$export$a88a8dbe29386d31;
|
|
100
100
|
var $6edfbdaffbc9baf9$export$83be8302c01b6478;
|
|
101
101
|
var $6edfbdaffbc9baf9$export$57b49d6ee2e9f187;
|
|
102
102
|
var $6edfbdaffbc9baf9$export$81968d05e3681b3f;
|
|
@@ -132,54 +132,54 @@ var $6edfbdaffbc9baf9$export$bcda0a6a6d7202af;
|
|
|
132
132
|
var $6edfbdaffbc9baf9$export$d18d2d837989a797;
|
|
133
133
|
var $6edfbdaffbc9baf9$export$506ac7a1a72a2c65;
|
|
134
134
|
var $6edfbdaffbc9baf9$export$12b8600bcd969018;
|
|
135
|
-
$6edfbdaffbc9baf9$export$
|
|
136
|
-
$6edfbdaffbc9baf9$export$
|
|
137
|
-
$6edfbdaffbc9baf9$export$
|
|
138
|
-
$6edfbdaffbc9baf9$export$
|
|
139
|
-
$6edfbdaffbc9baf9$export$
|
|
140
|
-
$6edfbdaffbc9baf9$export$
|
|
141
|
-
$6edfbdaffbc9baf9$export$
|
|
142
|
-
$6edfbdaffbc9baf9$export$
|
|
143
|
-
$6edfbdaffbc9baf9$export$b37777493a27e620 =
|
|
144
|
-
$6edfbdaffbc9baf9$export$
|
|
145
|
-
$6edfbdaffbc9baf9$export$
|
|
146
|
-
$6edfbdaffbc9baf9$export$
|
|
147
|
-
$6edfbdaffbc9baf9$export$
|
|
148
|
-
$6edfbdaffbc9baf9$export$83be8302c01b6478 =
|
|
149
|
-
$6edfbdaffbc9baf9$export$57b49d6ee2e9f187 =
|
|
150
|
-
$6edfbdaffbc9baf9$export$81968d05e3681b3f =
|
|
151
|
-
$6edfbdaffbc9baf9$export$c0d655f335b5bc31 =
|
|
152
|
-
$6edfbdaffbc9baf9$export$cca4342eca45562 =
|
|
153
|
-
$6edfbdaffbc9baf9$export$edc4a2e9af971b26 =
|
|
154
|
-
$6edfbdaffbc9baf9$export$9e665cb12e71e037 =
|
|
155
|
-
$6edfbdaffbc9baf9$export$2f91b7a7627906d5 =
|
|
156
|
-
$6edfbdaffbc9baf9$export$56efb4ec9eb35c07 =
|
|
157
|
-
$6edfbdaffbc9baf9$export$5861dfe1d581a528 =
|
|
158
|
-
$6edfbdaffbc9baf9$export$595a122b60890c78 =
|
|
159
|
-
$6edfbdaffbc9baf9$export$596373794435f8bc =
|
|
160
|
-
$6edfbdaffbc9baf9$export$32b379a02cafbfb3 =
|
|
161
|
-
$6edfbdaffbc9baf9$export$ee5de2c4d7c8faa4 =
|
|
162
|
-
$6edfbdaffbc9baf9$export$c1cbae72fd236fd9 =
|
|
163
|
-
$6edfbdaffbc9baf9$export$636d8cde4f6b7e6 =
|
|
164
|
-
$6edfbdaffbc9baf9$export$1f0ad4082256e3df =
|
|
165
|
-
$6edfbdaffbc9baf9$export$1e0848411e254295 =
|
|
166
|
-
$6edfbdaffbc9baf9$export$1c1bddac0ae5fbe5 =
|
|
167
|
-
$6edfbdaffbc9baf9$export$98de2b9917cd3b6a =
|
|
168
|
-
$6edfbdaffbc9baf9$export$3c956876cb11c1e1 =
|
|
169
|
-
$6edfbdaffbc9baf9$export$55cf2795737352fc =
|
|
170
|
-
$6edfbdaffbc9baf9$export$d5d1e3e09ea6cd5 =
|
|
171
|
-
$6edfbdaffbc9baf9$export$f51b22382127207d =
|
|
172
|
-
$6edfbdaffbc9baf9$export$825a6c2340d3b7e5 =
|
|
173
|
-
$6edfbdaffbc9baf9$export$4828f4a6bfd26c04 =
|
|
174
|
-
$6edfbdaffbc9baf9$export$1254ece141a8dac6 =
|
|
175
|
-
$6edfbdaffbc9baf9$export$a33650c9f4cc191e =
|
|
176
|
-
$6edfbdaffbc9baf9$export$9eb19533e4b8cc28 =
|
|
177
|
-
$6edfbdaffbc9baf9$export$67704939e41f705a =
|
|
178
|
-
$6edfbdaffbc9baf9$export$c4d219c150b98c92 =
|
|
179
|
-
$6edfbdaffbc9baf9$export$bcda0a6a6d7202af =
|
|
180
|
-
$6edfbdaffbc9baf9$export$d18d2d837989a797 =
|
|
181
|
-
$6edfbdaffbc9baf9$export$506ac7a1a72a2c65 =
|
|
182
|
-
$6edfbdaffbc9baf9$export$12b8600bcd969018 =
|
|
135
|
+
$6edfbdaffbc9baf9$export$a88a8dbe29386d31 = `yxBNXG_spectrum--large`;
|
|
136
|
+
$6edfbdaffbc9baf9$export$4c0c83b3f4303ef8 = `yxBNXG_spectrum--medium`;
|
|
137
|
+
$6edfbdaffbc9baf9$export$d374b04f30360026 = `yxBNXG_spectrum-Icon`;
|
|
138
|
+
$6edfbdaffbc9baf9$export$8d23c37ef2a4f13e = `yxBNXG_spectrum-Icon--sizeL`;
|
|
139
|
+
$6edfbdaffbc9baf9$export$8f1693ac47916bbf = `yxBNXG_spectrum-Icon--sizeM`;
|
|
140
|
+
$6edfbdaffbc9baf9$export$34ce05647f0c65e = `yxBNXG_spectrum-Icon--sizeS`;
|
|
141
|
+
$6edfbdaffbc9baf9$export$c6e70a22e841bc1b = `yxBNXG_spectrum-Icon--sizeXL`;
|
|
142
|
+
$6edfbdaffbc9baf9$export$557c0af6873b4222 = `yxBNXG_spectrum-Icon--sizeXS`;
|
|
143
|
+
$6edfbdaffbc9baf9$export$b37777493a27e620 = `yxBNXG_spectrum-Icon--sizeXXL`;
|
|
144
|
+
$6edfbdaffbc9baf9$export$cab8448604b31f43 = `yxBNXG_spectrum-Icon--sizeXXS`;
|
|
145
|
+
$6edfbdaffbc9baf9$export$c7db7fdc5aac13aa = `yxBNXG_spectrum-UIIcon`;
|
|
146
|
+
$6edfbdaffbc9baf9$export$2265a487ad399d8b = `yxBNXG_spectrum-UIIcon--large`;
|
|
147
|
+
$6edfbdaffbc9baf9$export$a6044013cf72ddc9 = `yxBNXG_spectrum-UIIcon--medium`;
|
|
148
|
+
$6edfbdaffbc9baf9$export$83be8302c01b6478 = `yxBNXG_spectrum-UIIcon-AlertMedium`;
|
|
149
|
+
$6edfbdaffbc9baf9$export$57b49d6ee2e9f187 = `yxBNXG_spectrum-UIIcon-AlertSmall`;
|
|
150
|
+
$6edfbdaffbc9baf9$export$81968d05e3681b3f = `yxBNXG_spectrum-UIIcon-ArrowDownSmall`;
|
|
151
|
+
$6edfbdaffbc9baf9$export$c0d655f335b5bc31 = `yxBNXG_spectrum-UIIcon-ArrowLeftMedium`;
|
|
152
|
+
$6edfbdaffbc9baf9$export$cca4342eca45562 = `yxBNXG_spectrum-UIIcon-Asterisk`;
|
|
153
|
+
$6edfbdaffbc9baf9$export$edc4a2e9af971b26 = `yxBNXG_spectrum-UIIcon-CheckmarkMedium`;
|
|
154
|
+
$6edfbdaffbc9baf9$export$9e665cb12e71e037 = `yxBNXG_spectrum-UIIcon-CheckmarkSmall`;
|
|
155
|
+
$6edfbdaffbc9baf9$export$2f91b7a7627906d5 = `yxBNXG_spectrum-UIIcon-ChevronDownMedium`;
|
|
156
|
+
$6edfbdaffbc9baf9$export$56efb4ec9eb35c07 = `yxBNXG_spectrum-UIIcon-ChevronDownSmall`;
|
|
157
|
+
$6edfbdaffbc9baf9$export$5861dfe1d581a528 = `yxBNXG_spectrum-UIIcon-ChevronLeftLarge`;
|
|
158
|
+
$6edfbdaffbc9baf9$export$595a122b60890c78 = `yxBNXG_spectrum-UIIcon-ChevronLeftMedium`;
|
|
159
|
+
$6edfbdaffbc9baf9$export$596373794435f8bc = `yxBNXG_spectrum-UIIcon-ChevronRightLarge`;
|
|
160
|
+
$6edfbdaffbc9baf9$export$32b379a02cafbfb3 = `yxBNXG_spectrum-UIIcon-ChevronRightMedium`;
|
|
161
|
+
$6edfbdaffbc9baf9$export$ee5de2c4d7c8faa4 = `yxBNXG_spectrum-UIIcon-ChevronRightSmall`;
|
|
162
|
+
$6edfbdaffbc9baf9$export$c1cbae72fd236fd9 = `yxBNXG_spectrum-UIIcon-ChevronUpSmall`;
|
|
163
|
+
$6edfbdaffbc9baf9$export$636d8cde4f6b7e6 = `yxBNXG_spectrum-UIIcon-CornerTriangle`;
|
|
164
|
+
$6edfbdaffbc9baf9$export$1f0ad4082256e3df = `yxBNXG_spectrum-UIIcon-CrossLarge`;
|
|
165
|
+
$6edfbdaffbc9baf9$export$1e0848411e254295 = `yxBNXG_spectrum-UIIcon-CrossMedium`;
|
|
166
|
+
$6edfbdaffbc9baf9$export$1c1bddac0ae5fbe5 = `yxBNXG_spectrum-UIIcon-CrossSmall`;
|
|
167
|
+
$6edfbdaffbc9baf9$export$98de2b9917cd3b6a = `yxBNXG_spectrum-UIIcon-DashSmall`;
|
|
168
|
+
$6edfbdaffbc9baf9$export$3c956876cb11c1e1 = `yxBNXG_spectrum-UIIcon-DoubleGripper`;
|
|
169
|
+
$6edfbdaffbc9baf9$export$55cf2795737352fc = `yxBNXG_spectrum-UIIcon-FolderBreadcrumb`;
|
|
170
|
+
$6edfbdaffbc9baf9$export$d5d1e3e09ea6cd5 = `yxBNXG_spectrum-UIIcon-HelpMedium`;
|
|
171
|
+
$6edfbdaffbc9baf9$export$f51b22382127207d = `yxBNXG_spectrum-UIIcon-HelpSmall`;
|
|
172
|
+
$6edfbdaffbc9baf9$export$825a6c2340d3b7e5 = `yxBNXG_spectrum-UIIcon-InfoMedium`;
|
|
173
|
+
$6edfbdaffbc9baf9$export$4828f4a6bfd26c04 = `yxBNXG_spectrum-UIIcon-InfoSmall`;
|
|
174
|
+
$6edfbdaffbc9baf9$export$1254ece141a8dac6 = `yxBNXG_spectrum-UIIcon-ListGripper`;
|
|
175
|
+
$6edfbdaffbc9baf9$export$a33650c9f4cc191e = `yxBNXG_spectrum-UIIcon-Magnifier`;
|
|
176
|
+
$6edfbdaffbc9baf9$export$9eb19533e4b8cc28 = `yxBNXG_spectrum-UIIcon-SkipLeft`;
|
|
177
|
+
$6edfbdaffbc9baf9$export$67704939e41f705a = `yxBNXG_spectrum-UIIcon-SkipRight`;
|
|
178
|
+
$6edfbdaffbc9baf9$export$c4d219c150b98c92 = `yxBNXG_spectrum-UIIcon-Star`;
|
|
179
|
+
$6edfbdaffbc9baf9$export$bcda0a6a6d7202af = `yxBNXG_spectrum-UIIcon-StarOutline`;
|
|
180
|
+
$6edfbdaffbc9baf9$export$d18d2d837989a797 = `yxBNXG_spectrum-UIIcon-SuccessMedium`;
|
|
181
|
+
$6edfbdaffbc9baf9$export$506ac7a1a72a2c65 = `yxBNXG_spectrum-UIIcon-SuccessSmall`;
|
|
182
|
+
$6edfbdaffbc9baf9$export$12b8600bcd969018 = `yxBNXG_spectrum-UIIcon-TripleGripper`;
|
|
183
183
|
|
|
184
184
|
|
|
185
185
|
|
|
@@ -195,8 +195,8 @@ const $6bfb67578ee6effd$var$iconStyleProps = {
|
|
|
195
195
|
};
|
|
196
196
|
function $6bfb67578ee6effd$export$f04a61298a47a40f(props) {
|
|
197
197
|
props = (0, $1Thsl$useSlotProps)(props, "icon");
|
|
198
|
-
let { children: children
|
|
199
|
-
let { styleProps: styleProps
|
|
198
|
+
let { children: children, size: size, "aria-label": ariaLabel, "aria-hidden": ariaHidden, ...otherProps } = props;
|
|
199
|
+
let { styleProps: styleProps } = (0, $1Thsl$useStyleProps)(otherProps, $6bfb67578ee6effd$var$iconStyleProps);
|
|
200
200
|
let provider = (0, $1Thsl$useProvider)();
|
|
201
201
|
let scale = "M";
|
|
202
202
|
if (provider !== null) scale = provider.scale === "large" ? "L" : "M";
|
|
@@ -232,8 +232,8 @@ function $6bfb67578ee6effd$export$f04a61298a47a40f(props) {
|
|
|
232
232
|
|
|
233
233
|
function $9ba43a63383852e3$export$906cc5990ff10700(props) {
|
|
234
234
|
props = (0, $1Thsl$useSlotProps)(props, "icon");
|
|
235
|
-
let { children: children
|
|
236
|
-
let { styleProps: styleProps
|
|
235
|
+
let { children: children, "aria-label": ariaLabel, "aria-hidden": ariaHidden, ...otherProps } = props;
|
|
236
|
+
let { styleProps: styleProps } = (0, $1Thsl$useStyleProps)(otherProps);
|
|
237
237
|
let provider = (0, $1Thsl$useProvider)();
|
|
238
238
|
let scale = "M";
|
|
239
239
|
if (provider !== null) scale = provider.scale === "large" ? "L" : "M";
|
|
@@ -268,8 +268,8 @@ function $9ba43a63383852e3$export$906cc5990ff10700(props) {
|
|
|
268
268
|
|
|
269
269
|
function $88bb85359d3a4aed$export$d43c2e2ca9b2c105(props) {
|
|
270
270
|
props = (0, $1Thsl$useSlotProps)(props, "illustration");
|
|
271
|
-
let { children: children
|
|
272
|
-
let { styleProps: styleProps
|
|
271
|
+
let { children: children, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-hidden": ariaHidden, ...otherProps } = props;
|
|
272
|
+
let { styleProps: styleProps } = (0, $1Thsl$useStyleProps)(otherProps);
|
|
273
273
|
let hasLabel = ariaLabel || ariaLabelledby;
|
|
274
274
|
if (!ariaHidden) ariaHidden = undefined;
|
|
275
275
|
return /*#__PURE__*/ (0, $1Thsl$react).cloneElement(children, {
|
package/dist/main.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.yxBNXG_spectrum-Icon,.yxBNXG_spectrum-UIIcon{color:inherit;fill:currentColor;pointer-events:none;display:inline-block}:-webkit-any(.yxBNXG_spectrum-Icon,.yxBNXG_spectrum-UIIcon):not(:root){overflow:hidden}:is(.yxBNXG_spectrum-Icon,.yxBNXG_spectrum-UIIcon):not(:root){overflow:hidden}@media (forced-colors:active){.yxBNXG_spectrum-Icon,.yxBNXG_spectrum-UIIcon{forced-color-adjust:auto}}.yxBNXG_spectrum-Icon--sizeXXS,.yxBNXG_spectrum-Icon--sizeXXS img,.yxBNXG_spectrum-Icon--sizeXXS svg{block-size:calc(var(--spectrum-alias-workflow-icon-size,var(--spectrum-global-dimension-size-225))/2);inline-size:calc(var(--spectrum-alias-workflow-icon-size,var(--spectrum-global-dimension-size-225))/2)}.yxBNXG_spectrum-Icon--sizeXS,.yxBNXG_spectrum-Icon--sizeXS img,.yxBNXG_spectrum-Icon--sizeXS svg{block-size:calc(var(--spectrum-global-dimension-size-300)/2);inline-size:calc(var(--spectrum-global-dimension-size-300)/2)}.yxBNXG_spectrum-Icon--sizeS,.yxBNXG_spectrum-Icon--sizeS img,.yxBNXG_spectrum-Icon--sizeS svg{block-size:var(--spectrum-alias-workflow-icon-size,var(--spectrum-global-dimension-size-225));inline-size:var(--spectrum-alias-workflow-icon-size,var(--spectrum-global-dimension-size-225))}.yxBNXG_spectrum-Icon--sizeM,.yxBNXG_spectrum-Icon--sizeM img,.yxBNXG_spectrum-Icon--sizeM svg{block-size:var(--spectrum-global-dimension-size-300);inline-size:var(--spectrum-global-dimension-size-300)}.yxBNXG_spectrum-Icon--sizeL,.yxBNXG_spectrum-Icon--sizeL img,.yxBNXG_spectrum-Icon--sizeL svg{block-size:calc(var(--spectrum-alias-workflow-icon-size,var(--spectrum-global-dimension-size-225))*2);inline-size:calc(var(--spectrum-alias-workflow-icon-size,var(--spectrum-global-dimension-size-225))*2)}.yxBNXG_spectrum-Icon--sizeXL,.yxBNXG_spectrum-Icon--sizeXL img,.yxBNXG_spectrum-Icon--sizeXL svg{block-size:calc(var(--spectrum-global-dimension-size-300)*2);inline-size:calc(var(--spectrum-global-dimension-size-300)*2)}.yxBNXG_spectrum-Icon--sizeXXL,.yxBNXG_spectrum-Icon--sizeXXL img,.yxBNXG_spectrum-Icon--sizeXXL svg{block-size:calc(var(--spectrum-global-dimension-size-300)*3);inline-size:calc(var(--spectrum-global-dimension-size-300)*3)}.yxBNXG_spectrum--medium .yxBNXG_spectrum-UIIcon--large{display:none}.yxBNXG_spectrum--medium .yxBNXG_spectrum-UIIcon--medium{display:inline}.yxBNXG_spectrum--large .yxBNXG_spectrum-UIIcon--medium{display:none}.yxBNXG_spectrum--large .yxBNXG_spectrum-UIIcon--large{display:inline}.yxBNXG_spectrum--large{--ui-icon-large-display:block;--ui-icon-medium-display:none}.yxBNXG_spectrum--medium{--ui-icon-medium-display:block;--ui-icon-large-display:none}.yxBNXG_spectrum-UIIcon--large{display:var(--ui-icon-large-display)}.yxBNXG_spectrum-UIIcon--medium{display:var(--ui-icon-medium-display)}.yxBNXG_spectrum-UIIcon-AlertMedium{inline-size:var(--spectrum-icon-alert-medium-width,var(--spectrum-global-dimension-size-225));block-size:var(--spectrum-icon-alert-medium-height,var(--spectrum-global-dimension-size-225))}.yxBNXG_spectrum-UIIcon-AlertSmall{inline-size:var(--spectrum-icon-alert-small-width,var(--spectrum-global-dimension-size-175));block-size:var(--spectrum-icon-alert-small-height,var(--spectrum-global-dimension-size-175))}.yxBNXG_spectrum-UIIcon-ArrowDownSmall{inline-size:var(--spectrum-icon-arrow-down-small-width,var(--spectrum-global-dimension-size-100));block-size:var(--spectrum-icon-arrow-down-small-height)}.yxBNXG_spectrum-UIIcon-ArrowLeftMedium{inline-size:var(--spectrum-icon-arrow-left-medium-width,var(--spectrum-global-dimension-size-175));block-size:var(--spectrum-icon-arrow-left-medium-height)}.yxBNXG_spectrum-UIIcon-Asterisk{inline-size:var(--spectrum-fieldlabel-asterisk-size,var(--spectrum-global-dimension-size-100));block-size:var(--spectrum-fieldlabel-asterisk-size,var(--spectrum-global-dimension-size-100))}.yxBNXG_spectrum-UIIcon-CheckmarkMedium{inline-size:var(--spectrum-icon-checkmark-medium-width);block-size:var(--spectrum-icon-checkmark-medium-height)}.yxBNXG_spectrum-UIIcon-CheckmarkSmall{inline-size:var(--spectrum-icon-checkmark-small-width);block-size:var(--spectrum-icon-checkmark-small-height)}.yxBNXG_spectrum-UIIcon-ChevronDownMedium{inline-size:var(--spectrum-icon-chevron-down-medium-width);block-size:var(--spectrum-icon-chevron-down-medium-height,var(--spectrum-global-dimension-size-75))}.yxBNXG_spectrum-UIIcon-ChevronDownSmall{inline-size:var(--spectrum-icon-chevron-down-small-width,var(--spectrum-global-dimension-size-100));block-size:var(--spectrum-icon-chevron-down-small-height,var(--spectrum-global-dimension-size-75))}.yxBNXG_spectrum-UIIcon-ChevronLeftLarge{inline-size:var(--spectrum-icon-chevron-left-large-width);block-size:var(--spectrum-icon-chevron-left-large-height,var(--spectrum-global-dimension-size-200))}.yxBNXG_spectrum-UIIcon-ChevronLeftMedium{inline-size:var(--spectrum-icon-chevron-left-medium-width,var(--spectrum-global-dimension-size-75));block-size:var(--spectrum-icon-chevron-left-medium-height)}.yxBNXG_spectrum-UIIcon-ChevronRightLarge{inline-size:var(--spectrum-icon-chevron-right-large-width);block-size:var(--spectrum-icon-chevron-right-large-height,var(--spectrum-global-dimension-size-200))}.yxBNXG_spectrum-UIIcon-ChevronRightMedium{inline-size:var(--spectrum-icon-chevron-right-medium-width,var(--spectrum-global-dimension-size-75));block-size:var(--spectrum-icon-chevron-right-medium-height)}.yxBNXG_spectrum-UIIcon-ChevronRightSmall{inline-size:var(--spectrum-icon-chevron-right-small-width,var(--spectrum-global-dimension-size-75));block-size:var(--spectrum-icon-chevron-right-small-height,var(--spectrum-global-dimension-size-100))}.yxBNXG_spectrum-UIIcon-ChevronUpSmall{inline-size:var(--spectrum-icon-chevron-up-small-width,var(--spectrum-global-dimension-size-100));block-size:var(--spectrum-icon-chevron-up-small-height,var(--spectrum-global-dimension-size-75))}.yxBNXG_spectrum-UIIcon-CornerTriangle{inline-size:var(--spectrum-icon-cornertriangle-width,var(--spectrum-global-dimension-size-65));block-size:var(--spectrum-icon-cornertriangle-height,var(--spectrum-global-dimension-size-65))}.yxBNXG_spectrum-UIIcon-CrossLarge{inline-size:var(--spectrum-icon-cross-large-width);block-size:var(--spectrum-icon-cross-large-height)}.yxBNXG_spectrum-UIIcon-CrossMedium{inline-size:var(--spectrum-icon-cross-medium-width,var(--spectrum-global-dimension-size-100));block-size:var(--spectrum-icon-cross-medium-height,var(--spectrum-global-dimension-size-100))}.yxBNXG_spectrum-UIIcon-CrossSmall{inline-size:var(--spectrum-icon-cross-small-width,var(--spectrum-global-dimension-size-100));block-size:var(--spectrum-icon-cross-small-height,var(--spectrum-global-dimension-size-100))}.yxBNXG_spectrum-UIIcon-DashSmall{inline-size:var(--spectrum-icon-dash-small-width);block-size:var(--spectrum-icon-dash-small-height)}.yxBNXG_spectrum-UIIcon-DoubleGripper{inline-size:var(--spectrum-icon-doublegripper-width,var(--spectrum-global-dimension-size-200));block-size:var(--spectrum-icon-doublegripper-height,var(--spectrum-global-dimension-size-50))}.yxBNXG_spectrum-UIIcon-FolderBreadcrumb{inline-size:var(--spectrum-icon-folderbreadcrumb-width,var(--spectrum-global-dimension-size-225));block-size:var(--spectrum-icon-folderbreadcrumb-height,var(--spectrum-global-dimension-size-225))}.yxBNXG_spectrum-UIIcon-HelpMedium{inline-size:var(--spectrum-icon-info-medium-width,var(--spectrum-global-dimension-size-225));block-size:var(--spectrum-icon-info-medium-height,var(--spectrum-global-dimension-size-225))}.yxBNXG_spectrum-UIIcon-HelpSmall{inline-size:var(--spectrum-icon-info-small-width,var(--spectrum-global-dimension-size-175));block-size:var(--spectrum-icon-info-small-height,var(--spectrum-global-dimension-size-175))}.yxBNXG_spectrum-UIIcon-InfoMedium{inline-size:var(--spectrum-icon-info-medium-width,var(--spectrum-global-dimension-size-225));block-size:var(--spectrum-icon-info-medium-height,var(--spectrum-global-dimension-size-225))}.yxBNXG_spectrum-UIIcon-InfoSmall{inline-size:var(--spectrum-icon-info-small-width,var(--spectrum-global-dimension-size-175));block-size:var(--spectrum-icon-info-small-height,var(--spectrum-global-dimension-size-175))}.yxBNXG_spectrum-UIIcon-ListGripper{inline-size:var(--spectrum-global-dimension-size-65);block-size:var(--spectrum-global-dimension-size-150)}.yxBNXG_spectrum-UIIcon-Magnifier{inline-size:var(--spectrum-icon-magnifier-width,var(--spectrum-global-dimension-size-200));block-size:var(--spectrum-icon-magnifier-height,var(--spectrum-global-dimension-size-200))}.yxBNXG_spectrum-UIIcon-SkipLeft{inline-size:var(--spectrum-icon-skip-left-width);block-size:var(--spectrum-icon-skip-left-height)}.yxBNXG_spectrum-UIIcon-SkipRight{inline-size:var(--spectrum-icon-skip-right-width);block-size:var(--spectrum-icon-skip-right-height)}.yxBNXG_spectrum-UIIcon-Star{inline-size:var(--spectrum-icon-star-width,var(--spectrum-global-dimension-size-225));block-size:var(--spectrum-icon-star-height,var(--spectrum-global-dimension-size-225))}.yxBNXG_spectrum-UIIcon-StarOutline{inline-size:var(--spectrum-icon-star-outline-width,var(--spectrum-global-dimension-size-225));block-size:var(--spectrum-icon-star-outline-height,var(--spectrum-global-dimension-size-225))}.yxBNXG_spectrum-UIIcon-SuccessMedium{inline-size:var(--spectrum-icon-success-medium-width,var(--spectrum-global-dimension-size-225));block-size:var(--spectrum-icon-success-medium-height,var(--spectrum-global-dimension-size-225))}.yxBNXG_spectrum-UIIcon-SuccessSmall{inline-size:var(--spectrum-icon-success-small-width,var(--spectrum-global-dimension-size-175));block-size:var(--spectrum-icon-success-small-height,var(--spectrum-global-dimension-size-175))}.yxBNXG_spectrum-UIIcon-TripleGripper{inline-size:var(--spectrum-icon-triplegripper-width);block-size:var(--spectrum-icon-triplegripper-height,var(--spectrum-global-dimension-size-85))}
|
package/dist/main.js
CHANGED
|
@@ -40,19 +40,19 @@ $parcel$export(module.exports, "Illustration", () => $ebfd4d66f1999633$export$d4
|
|
|
40
40
|
|
|
41
41
|
var $5ef39e0c80b682c7$exports = {};
|
|
42
42
|
|
|
43
|
+
$parcel$export($5ef39e0c80b682c7$exports, "spectrum--large", () => $5ef39e0c80b682c7$export$a88a8dbe29386d31, (v) => $5ef39e0c80b682c7$export$a88a8dbe29386d31 = v);
|
|
44
|
+
$parcel$export($5ef39e0c80b682c7$exports, "spectrum--medium", () => $5ef39e0c80b682c7$export$4c0c83b3f4303ef8, (v) => $5ef39e0c80b682c7$export$4c0c83b3f4303ef8 = v);
|
|
43
45
|
$parcel$export($5ef39e0c80b682c7$exports, "spectrum-Icon", () => $5ef39e0c80b682c7$export$d374b04f30360026, (v) => $5ef39e0c80b682c7$export$d374b04f30360026 = v);
|
|
44
|
-
$parcel$export($5ef39e0c80b682c7$exports, "spectrum-UIIcon", () => $5ef39e0c80b682c7$export$c7db7fdc5aac13aa, (v) => $5ef39e0c80b682c7$export$c7db7fdc5aac13aa = v);
|
|
45
|
-
$parcel$export($5ef39e0c80b682c7$exports, "spectrum-Icon--sizeXXS", () => $5ef39e0c80b682c7$export$cab8448604b31f43, (v) => $5ef39e0c80b682c7$export$cab8448604b31f43 = v);
|
|
46
|
-
$parcel$export($5ef39e0c80b682c7$exports, "spectrum-Icon--sizeXS", () => $5ef39e0c80b682c7$export$557c0af6873b4222, (v) => $5ef39e0c80b682c7$export$557c0af6873b4222 = v);
|
|
47
|
-
$parcel$export($5ef39e0c80b682c7$exports, "spectrum-Icon--sizeS", () => $5ef39e0c80b682c7$export$34ce05647f0c65e, (v) => $5ef39e0c80b682c7$export$34ce05647f0c65e = v);
|
|
48
|
-
$parcel$export($5ef39e0c80b682c7$exports, "spectrum-Icon--sizeM", () => $5ef39e0c80b682c7$export$8f1693ac47916bbf, (v) => $5ef39e0c80b682c7$export$8f1693ac47916bbf = v);
|
|
49
46
|
$parcel$export($5ef39e0c80b682c7$exports, "spectrum-Icon--sizeL", () => $5ef39e0c80b682c7$export$8d23c37ef2a4f13e, (v) => $5ef39e0c80b682c7$export$8d23c37ef2a4f13e = v);
|
|
47
|
+
$parcel$export($5ef39e0c80b682c7$exports, "spectrum-Icon--sizeM", () => $5ef39e0c80b682c7$export$8f1693ac47916bbf, (v) => $5ef39e0c80b682c7$export$8f1693ac47916bbf = v);
|
|
48
|
+
$parcel$export($5ef39e0c80b682c7$exports, "spectrum-Icon--sizeS", () => $5ef39e0c80b682c7$export$34ce05647f0c65e, (v) => $5ef39e0c80b682c7$export$34ce05647f0c65e = v);
|
|
50
49
|
$parcel$export($5ef39e0c80b682c7$exports, "spectrum-Icon--sizeXL", () => $5ef39e0c80b682c7$export$c6e70a22e841bc1b, (v) => $5ef39e0c80b682c7$export$c6e70a22e841bc1b = v);
|
|
50
|
+
$parcel$export($5ef39e0c80b682c7$exports, "spectrum-Icon--sizeXS", () => $5ef39e0c80b682c7$export$557c0af6873b4222, (v) => $5ef39e0c80b682c7$export$557c0af6873b4222 = v);
|
|
51
51
|
$parcel$export($5ef39e0c80b682c7$exports, "spectrum-Icon--sizeXXL", () => $5ef39e0c80b682c7$export$b37777493a27e620, (v) => $5ef39e0c80b682c7$export$b37777493a27e620 = v);
|
|
52
|
-
$parcel$export($5ef39e0c80b682c7$exports, "spectrum--
|
|
52
|
+
$parcel$export($5ef39e0c80b682c7$exports, "spectrum-Icon--sizeXXS", () => $5ef39e0c80b682c7$export$cab8448604b31f43, (v) => $5ef39e0c80b682c7$export$cab8448604b31f43 = v);
|
|
53
|
+
$parcel$export($5ef39e0c80b682c7$exports, "spectrum-UIIcon", () => $5ef39e0c80b682c7$export$c7db7fdc5aac13aa, (v) => $5ef39e0c80b682c7$export$c7db7fdc5aac13aa = v);
|
|
53
54
|
$parcel$export($5ef39e0c80b682c7$exports, "spectrum-UIIcon--large", () => $5ef39e0c80b682c7$export$2265a487ad399d8b, (v) => $5ef39e0c80b682c7$export$2265a487ad399d8b = v);
|
|
54
55
|
$parcel$export($5ef39e0c80b682c7$exports, "spectrum-UIIcon--medium", () => $5ef39e0c80b682c7$export$a6044013cf72ddc9, (v) => $5ef39e0c80b682c7$export$a6044013cf72ddc9 = v);
|
|
55
|
-
$parcel$export($5ef39e0c80b682c7$exports, "spectrum--large", () => $5ef39e0c80b682c7$export$a88a8dbe29386d31, (v) => $5ef39e0c80b682c7$export$a88a8dbe29386d31 = v);
|
|
56
56
|
$parcel$export($5ef39e0c80b682c7$exports, "spectrum-UIIcon-AlertMedium", () => $5ef39e0c80b682c7$export$83be8302c01b6478, (v) => $5ef39e0c80b682c7$export$83be8302c01b6478 = v);
|
|
57
57
|
$parcel$export($5ef39e0c80b682c7$exports, "spectrum-UIIcon-AlertSmall", () => $5ef39e0c80b682c7$export$57b49d6ee2e9f187, (v) => $5ef39e0c80b682c7$export$57b49d6ee2e9f187 = v);
|
|
58
58
|
$parcel$export($5ef39e0c80b682c7$exports, "spectrum-UIIcon-ArrowDownSmall", () => $5ef39e0c80b682c7$export$81968d05e3681b3f, (v) => $5ef39e0c80b682c7$export$81968d05e3681b3f = v);
|
|
@@ -88,19 +88,19 @@ $parcel$export($5ef39e0c80b682c7$exports, "spectrum-UIIcon-StarOutline", () => $
|
|
|
88
88
|
$parcel$export($5ef39e0c80b682c7$exports, "spectrum-UIIcon-SuccessMedium", () => $5ef39e0c80b682c7$export$d18d2d837989a797, (v) => $5ef39e0c80b682c7$export$d18d2d837989a797 = v);
|
|
89
89
|
$parcel$export($5ef39e0c80b682c7$exports, "spectrum-UIIcon-SuccessSmall", () => $5ef39e0c80b682c7$export$506ac7a1a72a2c65, (v) => $5ef39e0c80b682c7$export$506ac7a1a72a2c65 = v);
|
|
90
90
|
$parcel$export($5ef39e0c80b682c7$exports, "spectrum-UIIcon-TripleGripper", () => $5ef39e0c80b682c7$export$12b8600bcd969018, (v) => $5ef39e0c80b682c7$export$12b8600bcd969018 = v);
|
|
91
|
+
var $5ef39e0c80b682c7$export$a88a8dbe29386d31;
|
|
92
|
+
var $5ef39e0c80b682c7$export$4c0c83b3f4303ef8;
|
|
91
93
|
var $5ef39e0c80b682c7$export$d374b04f30360026;
|
|
92
|
-
var $5ef39e0c80b682c7$export$c7db7fdc5aac13aa;
|
|
93
|
-
var $5ef39e0c80b682c7$export$cab8448604b31f43;
|
|
94
|
-
var $5ef39e0c80b682c7$export$557c0af6873b4222;
|
|
95
|
-
var $5ef39e0c80b682c7$export$34ce05647f0c65e;
|
|
96
|
-
var $5ef39e0c80b682c7$export$8f1693ac47916bbf;
|
|
97
94
|
var $5ef39e0c80b682c7$export$8d23c37ef2a4f13e;
|
|
95
|
+
var $5ef39e0c80b682c7$export$8f1693ac47916bbf;
|
|
96
|
+
var $5ef39e0c80b682c7$export$34ce05647f0c65e;
|
|
98
97
|
var $5ef39e0c80b682c7$export$c6e70a22e841bc1b;
|
|
98
|
+
var $5ef39e0c80b682c7$export$557c0af6873b4222;
|
|
99
99
|
var $5ef39e0c80b682c7$export$b37777493a27e620;
|
|
100
|
-
var $5ef39e0c80b682c7$export$
|
|
100
|
+
var $5ef39e0c80b682c7$export$cab8448604b31f43;
|
|
101
|
+
var $5ef39e0c80b682c7$export$c7db7fdc5aac13aa;
|
|
101
102
|
var $5ef39e0c80b682c7$export$2265a487ad399d8b;
|
|
102
103
|
var $5ef39e0c80b682c7$export$a6044013cf72ddc9;
|
|
103
|
-
var $5ef39e0c80b682c7$export$a88a8dbe29386d31;
|
|
104
104
|
var $5ef39e0c80b682c7$export$83be8302c01b6478;
|
|
105
105
|
var $5ef39e0c80b682c7$export$57b49d6ee2e9f187;
|
|
106
106
|
var $5ef39e0c80b682c7$export$81968d05e3681b3f;
|
|
@@ -136,54 +136,54 @@ var $5ef39e0c80b682c7$export$bcda0a6a6d7202af;
|
|
|
136
136
|
var $5ef39e0c80b682c7$export$d18d2d837989a797;
|
|
137
137
|
var $5ef39e0c80b682c7$export$506ac7a1a72a2c65;
|
|
138
138
|
var $5ef39e0c80b682c7$export$12b8600bcd969018;
|
|
139
|
-
$5ef39e0c80b682c7$export$
|
|
140
|
-
$5ef39e0c80b682c7$export$
|
|
141
|
-
$5ef39e0c80b682c7$export$
|
|
142
|
-
$5ef39e0c80b682c7$export$
|
|
143
|
-
$5ef39e0c80b682c7$export$
|
|
144
|
-
$5ef39e0c80b682c7$export$
|
|
145
|
-
$5ef39e0c80b682c7$export$
|
|
146
|
-
$5ef39e0c80b682c7$export$
|
|
147
|
-
$5ef39e0c80b682c7$export$b37777493a27e620 =
|
|
148
|
-
$5ef39e0c80b682c7$export$
|
|
149
|
-
$5ef39e0c80b682c7$export$
|
|
150
|
-
$5ef39e0c80b682c7$export$
|
|
151
|
-
$5ef39e0c80b682c7$export$
|
|
152
|
-
$5ef39e0c80b682c7$export$83be8302c01b6478 =
|
|
153
|
-
$5ef39e0c80b682c7$export$57b49d6ee2e9f187 =
|
|
154
|
-
$5ef39e0c80b682c7$export$81968d05e3681b3f =
|
|
155
|
-
$5ef39e0c80b682c7$export$c0d655f335b5bc31 =
|
|
156
|
-
$5ef39e0c80b682c7$export$cca4342eca45562 =
|
|
157
|
-
$5ef39e0c80b682c7$export$edc4a2e9af971b26 =
|
|
158
|
-
$5ef39e0c80b682c7$export$9e665cb12e71e037 =
|
|
159
|
-
$5ef39e0c80b682c7$export$2f91b7a7627906d5 =
|
|
160
|
-
$5ef39e0c80b682c7$export$56efb4ec9eb35c07 =
|
|
161
|
-
$5ef39e0c80b682c7$export$5861dfe1d581a528 =
|
|
162
|
-
$5ef39e0c80b682c7$export$595a122b60890c78 =
|
|
163
|
-
$5ef39e0c80b682c7$export$596373794435f8bc =
|
|
164
|
-
$5ef39e0c80b682c7$export$32b379a02cafbfb3 =
|
|
165
|
-
$5ef39e0c80b682c7$export$ee5de2c4d7c8faa4 =
|
|
166
|
-
$5ef39e0c80b682c7$export$c1cbae72fd236fd9 =
|
|
167
|
-
$5ef39e0c80b682c7$export$636d8cde4f6b7e6 =
|
|
168
|
-
$5ef39e0c80b682c7$export$1f0ad4082256e3df =
|
|
169
|
-
$5ef39e0c80b682c7$export$1e0848411e254295 =
|
|
170
|
-
$5ef39e0c80b682c7$export$1c1bddac0ae5fbe5 =
|
|
171
|
-
$5ef39e0c80b682c7$export$98de2b9917cd3b6a =
|
|
172
|
-
$5ef39e0c80b682c7$export$3c956876cb11c1e1 =
|
|
173
|
-
$5ef39e0c80b682c7$export$55cf2795737352fc =
|
|
174
|
-
$5ef39e0c80b682c7$export$d5d1e3e09ea6cd5 =
|
|
175
|
-
$5ef39e0c80b682c7$export$f51b22382127207d =
|
|
176
|
-
$5ef39e0c80b682c7$export$825a6c2340d3b7e5 =
|
|
177
|
-
$5ef39e0c80b682c7$export$4828f4a6bfd26c04 =
|
|
178
|
-
$5ef39e0c80b682c7$export$1254ece141a8dac6 =
|
|
179
|
-
$5ef39e0c80b682c7$export$a33650c9f4cc191e =
|
|
180
|
-
$5ef39e0c80b682c7$export$9eb19533e4b8cc28 =
|
|
181
|
-
$5ef39e0c80b682c7$export$67704939e41f705a =
|
|
182
|
-
$5ef39e0c80b682c7$export$c4d219c150b98c92 =
|
|
183
|
-
$5ef39e0c80b682c7$export$bcda0a6a6d7202af =
|
|
184
|
-
$5ef39e0c80b682c7$export$d18d2d837989a797 =
|
|
185
|
-
$5ef39e0c80b682c7$export$506ac7a1a72a2c65 =
|
|
186
|
-
$5ef39e0c80b682c7$export$12b8600bcd969018 =
|
|
139
|
+
$5ef39e0c80b682c7$export$a88a8dbe29386d31 = `yxBNXG_spectrum--large`;
|
|
140
|
+
$5ef39e0c80b682c7$export$4c0c83b3f4303ef8 = `yxBNXG_spectrum--medium`;
|
|
141
|
+
$5ef39e0c80b682c7$export$d374b04f30360026 = `yxBNXG_spectrum-Icon`;
|
|
142
|
+
$5ef39e0c80b682c7$export$8d23c37ef2a4f13e = `yxBNXG_spectrum-Icon--sizeL`;
|
|
143
|
+
$5ef39e0c80b682c7$export$8f1693ac47916bbf = `yxBNXG_spectrum-Icon--sizeM`;
|
|
144
|
+
$5ef39e0c80b682c7$export$34ce05647f0c65e = `yxBNXG_spectrum-Icon--sizeS`;
|
|
145
|
+
$5ef39e0c80b682c7$export$c6e70a22e841bc1b = `yxBNXG_spectrum-Icon--sizeXL`;
|
|
146
|
+
$5ef39e0c80b682c7$export$557c0af6873b4222 = `yxBNXG_spectrum-Icon--sizeXS`;
|
|
147
|
+
$5ef39e0c80b682c7$export$b37777493a27e620 = `yxBNXG_spectrum-Icon--sizeXXL`;
|
|
148
|
+
$5ef39e0c80b682c7$export$cab8448604b31f43 = `yxBNXG_spectrum-Icon--sizeXXS`;
|
|
149
|
+
$5ef39e0c80b682c7$export$c7db7fdc5aac13aa = `yxBNXG_spectrum-UIIcon`;
|
|
150
|
+
$5ef39e0c80b682c7$export$2265a487ad399d8b = `yxBNXG_spectrum-UIIcon--large`;
|
|
151
|
+
$5ef39e0c80b682c7$export$a6044013cf72ddc9 = `yxBNXG_spectrum-UIIcon--medium`;
|
|
152
|
+
$5ef39e0c80b682c7$export$83be8302c01b6478 = `yxBNXG_spectrum-UIIcon-AlertMedium`;
|
|
153
|
+
$5ef39e0c80b682c7$export$57b49d6ee2e9f187 = `yxBNXG_spectrum-UIIcon-AlertSmall`;
|
|
154
|
+
$5ef39e0c80b682c7$export$81968d05e3681b3f = `yxBNXG_spectrum-UIIcon-ArrowDownSmall`;
|
|
155
|
+
$5ef39e0c80b682c7$export$c0d655f335b5bc31 = `yxBNXG_spectrum-UIIcon-ArrowLeftMedium`;
|
|
156
|
+
$5ef39e0c80b682c7$export$cca4342eca45562 = `yxBNXG_spectrum-UIIcon-Asterisk`;
|
|
157
|
+
$5ef39e0c80b682c7$export$edc4a2e9af971b26 = `yxBNXG_spectrum-UIIcon-CheckmarkMedium`;
|
|
158
|
+
$5ef39e0c80b682c7$export$9e665cb12e71e037 = `yxBNXG_spectrum-UIIcon-CheckmarkSmall`;
|
|
159
|
+
$5ef39e0c80b682c7$export$2f91b7a7627906d5 = `yxBNXG_spectrum-UIIcon-ChevronDownMedium`;
|
|
160
|
+
$5ef39e0c80b682c7$export$56efb4ec9eb35c07 = `yxBNXG_spectrum-UIIcon-ChevronDownSmall`;
|
|
161
|
+
$5ef39e0c80b682c7$export$5861dfe1d581a528 = `yxBNXG_spectrum-UIIcon-ChevronLeftLarge`;
|
|
162
|
+
$5ef39e0c80b682c7$export$595a122b60890c78 = `yxBNXG_spectrum-UIIcon-ChevronLeftMedium`;
|
|
163
|
+
$5ef39e0c80b682c7$export$596373794435f8bc = `yxBNXG_spectrum-UIIcon-ChevronRightLarge`;
|
|
164
|
+
$5ef39e0c80b682c7$export$32b379a02cafbfb3 = `yxBNXG_spectrum-UIIcon-ChevronRightMedium`;
|
|
165
|
+
$5ef39e0c80b682c7$export$ee5de2c4d7c8faa4 = `yxBNXG_spectrum-UIIcon-ChevronRightSmall`;
|
|
166
|
+
$5ef39e0c80b682c7$export$c1cbae72fd236fd9 = `yxBNXG_spectrum-UIIcon-ChevronUpSmall`;
|
|
167
|
+
$5ef39e0c80b682c7$export$636d8cde4f6b7e6 = `yxBNXG_spectrum-UIIcon-CornerTriangle`;
|
|
168
|
+
$5ef39e0c80b682c7$export$1f0ad4082256e3df = `yxBNXG_spectrum-UIIcon-CrossLarge`;
|
|
169
|
+
$5ef39e0c80b682c7$export$1e0848411e254295 = `yxBNXG_spectrum-UIIcon-CrossMedium`;
|
|
170
|
+
$5ef39e0c80b682c7$export$1c1bddac0ae5fbe5 = `yxBNXG_spectrum-UIIcon-CrossSmall`;
|
|
171
|
+
$5ef39e0c80b682c7$export$98de2b9917cd3b6a = `yxBNXG_spectrum-UIIcon-DashSmall`;
|
|
172
|
+
$5ef39e0c80b682c7$export$3c956876cb11c1e1 = `yxBNXG_spectrum-UIIcon-DoubleGripper`;
|
|
173
|
+
$5ef39e0c80b682c7$export$55cf2795737352fc = `yxBNXG_spectrum-UIIcon-FolderBreadcrumb`;
|
|
174
|
+
$5ef39e0c80b682c7$export$d5d1e3e09ea6cd5 = `yxBNXG_spectrum-UIIcon-HelpMedium`;
|
|
175
|
+
$5ef39e0c80b682c7$export$f51b22382127207d = `yxBNXG_spectrum-UIIcon-HelpSmall`;
|
|
176
|
+
$5ef39e0c80b682c7$export$825a6c2340d3b7e5 = `yxBNXG_spectrum-UIIcon-InfoMedium`;
|
|
177
|
+
$5ef39e0c80b682c7$export$4828f4a6bfd26c04 = `yxBNXG_spectrum-UIIcon-InfoSmall`;
|
|
178
|
+
$5ef39e0c80b682c7$export$1254ece141a8dac6 = `yxBNXG_spectrum-UIIcon-ListGripper`;
|
|
179
|
+
$5ef39e0c80b682c7$export$a33650c9f4cc191e = `yxBNXG_spectrum-UIIcon-Magnifier`;
|
|
180
|
+
$5ef39e0c80b682c7$export$9eb19533e4b8cc28 = `yxBNXG_spectrum-UIIcon-SkipLeft`;
|
|
181
|
+
$5ef39e0c80b682c7$export$67704939e41f705a = `yxBNXG_spectrum-UIIcon-SkipRight`;
|
|
182
|
+
$5ef39e0c80b682c7$export$c4d219c150b98c92 = `yxBNXG_spectrum-UIIcon-Star`;
|
|
183
|
+
$5ef39e0c80b682c7$export$bcda0a6a6d7202af = `yxBNXG_spectrum-UIIcon-StarOutline`;
|
|
184
|
+
$5ef39e0c80b682c7$export$d18d2d837989a797 = `yxBNXG_spectrum-UIIcon-SuccessMedium`;
|
|
185
|
+
$5ef39e0c80b682c7$export$506ac7a1a72a2c65 = `yxBNXG_spectrum-UIIcon-SuccessSmall`;
|
|
186
|
+
$5ef39e0c80b682c7$export$12b8600bcd969018 = `yxBNXG_spectrum-UIIcon-TripleGripper`;
|
|
187
187
|
|
|
188
188
|
|
|
189
189
|
|
|
@@ -199,8 +199,8 @@ const $2f297c87d3047269$var$iconStyleProps = {
|
|
|
199
199
|
};
|
|
200
200
|
function $2f297c87d3047269$export$f04a61298a47a40f(props) {
|
|
201
201
|
props = (0, $khAmQ$reactspectrumutils.useSlotProps)(props, "icon");
|
|
202
|
-
let { children: children
|
|
203
|
-
let { styleProps: styleProps
|
|
202
|
+
let { children: children, size: size, "aria-label": ariaLabel, "aria-hidden": ariaHidden, ...otherProps } = props;
|
|
203
|
+
let { styleProps: styleProps } = (0, $khAmQ$reactspectrumutils.useStyleProps)(otherProps, $2f297c87d3047269$var$iconStyleProps);
|
|
204
204
|
let provider = (0, $khAmQ$reactspectrumprovider.useProvider)();
|
|
205
205
|
let scale = "M";
|
|
206
206
|
if (provider !== null) scale = provider.scale === "large" ? "L" : "M";
|
|
@@ -236,8 +236,8 @@ function $2f297c87d3047269$export$f04a61298a47a40f(props) {
|
|
|
236
236
|
|
|
237
237
|
function $722df481e3c1f593$export$906cc5990ff10700(props) {
|
|
238
238
|
props = (0, $khAmQ$reactspectrumutils.useSlotProps)(props, "icon");
|
|
239
|
-
let { children: children
|
|
240
|
-
let { styleProps: styleProps
|
|
239
|
+
let { children: children, "aria-label": ariaLabel, "aria-hidden": ariaHidden, ...otherProps } = props;
|
|
240
|
+
let { styleProps: styleProps } = (0, $khAmQ$reactspectrumutils.useStyleProps)(otherProps);
|
|
241
241
|
let provider = (0, $khAmQ$reactspectrumprovider.useProvider)();
|
|
242
242
|
let scale = "M";
|
|
243
243
|
if (provider !== null) scale = provider.scale === "large" ? "L" : "M";
|
|
@@ -272,8 +272,8 @@ function $722df481e3c1f593$export$906cc5990ff10700(props) {
|
|
|
272
272
|
|
|
273
273
|
function $ebfd4d66f1999633$export$d43c2e2ca9b2c105(props) {
|
|
274
274
|
props = (0, $khAmQ$reactspectrumutils.useSlotProps)(props, "illustration");
|
|
275
|
-
let { children: children
|
|
276
|
-
let { styleProps: styleProps
|
|
275
|
+
let { children: children, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-hidden": ariaHidden, ...otherProps } = props;
|
|
276
|
+
let { styleProps: styleProps } = (0, $khAmQ$reactspectrumutils.useStyleProps)(otherProps);
|
|
277
277
|
let hasLabel = ariaLabel || ariaLabelledby;
|
|
278
278
|
if (!ariaHidden) ariaHidden = undefined;
|
|
279
279
|
return /*#__PURE__*/ (0, ($parcel$interopDefault($khAmQ$react))).cloneElement(children, {
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C;ACZ1C;;;;;;;;;;CAUC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACVD,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,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AS,0CAAa,KAAwB;IACnD,QAAQ,CAAA,GAAA,sCAAW,EAAE,OAAO;IAC5B,IAAI,YACF,SAAQ,EACR,cAAc,UAAS,EACvB,mBAAmB,eAAc,EACjC,eAAe,WAAU,EACzB,GAAG,YACJ,GAAG;IACJ,IAAI,cAAC,WAAU,EAAC,GAAG,CAAA,GAAA,uCAAY,EAAE;IAEjC,IAAI,WAAW,aAAa;IAE5B,IAAI,CAAC,YACH,aAAa;IAGf,qBAAO,CAAA,GAAA,sCAAI,EAAE,aAAa,UAAU;QAClC,GAAG,CAAA,GAAA,oCAAa,EAAE,WAAW;QAC7B,GAAG,UAAU;QACb,WAAW;QACX,cAAc;QACd,mBAAmB;QACnB,eAAe;QACf,MAAM,WAAW,QAAQ;IAC3B;AACF;","sources":["packages/@react-spectrum/icon/src/index.ts","packages/@react-spectrum/icon/src/Icon.tsx","packages/@adobe/spectrum-css-temp/components/icon/vars.css","packages/@react-spectrum/icon/src/UIIcon.tsx","packages/@react-spectrum/icon/src/Illustration.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {Icon} from './Icon';\nexport {UIIcon} from './UIIcon';\nexport {Illustration} from './Illustration';\n\nexport type {IconProps, IconPropsWithoutChildren} from './Icon';\nexport type {IllustrationProps, IllustrationPropsWithoutChildren} from './Illustration';\nexport type {UIIconProps, UIIconPropsWithoutChildren} from './UIIcon';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaLabelingProps, DOMProps, IconColorValue, StyleProps} from '@react-types/shared';\nimport {baseStyleProps, classNames, StyleHandlers, useSlotProps, useStyleProps} from '@react-spectrum/utils';\nimport {filterDOMProps} from '@react-aria/utils';\nimport React, {ReactElement} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/icon/vars.css';\nimport {useProvider} from '@react-spectrum/provider';\n\nexport interface IconProps extends DOMProps, AriaLabelingProps, StyleProps {\n /**\n * A screen reader only label for the Icon.\n */\n 'aria-label'?: string,\n /**\n * The content to display. Should be an SVG.\n */\n children: ReactElement,\n /**\n * Size of Icon (changes based on scale).\n */\n size?: 'XXS' | 'XS' | 'S' | 'M' | 'L' |'XL' | 'XXL',\n /**\n * A slot to place the icon in.\n * @default 'icon'\n */\n slot?: string,\n /**\n * Indicates whether the element is exposed to an accessibility API.\n */\n 'aria-hidden'?: boolean | 'false' | 'true',\n /**\n * Color of the Icon.\n */\n color?: IconColorValue\n}\n\nexport type IconPropsWithoutChildren = Omit<IconProps, 'children'>;\n\nfunction iconColorValue(value: IconColorValue) {\n return `var(--spectrum-semantic-${value}-color-icon)`;\n}\n\nconst iconStyleProps: StyleHandlers = {\n ...baseStyleProps,\n color: ['color', iconColorValue]\n};\n\n/**\n * Spectrum icons are clear, minimal, and consistent across platforms. They follow the focused and rational principles of the design system in both metaphor and style.\n */\nexport function Icon(props: IconProps) {\n props = useSlotProps(props, 'icon');\n let {\n children,\n size,\n 'aria-label': ariaLabel,\n 'aria-hidden': ariaHidden,\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(otherProps, iconStyleProps);\n\n let provider = useProvider();\n let scale = 'M';\n if (provider !== null) {\n scale = provider.scale === 'large' ? 'L' : 'M';\n }\n if (!ariaHidden) {\n ariaHidden = undefined;\n }\n\n // Use user specified size, falling back to provider scale if size is undef\n let iconSize = size ? size : scale;\n\n return React.cloneElement(children, {\n ...filterDOMProps(otherProps),\n ...styleProps,\n focusable: 'false',\n 'aria-label': ariaLabel,\n 'aria-hidden': (ariaLabel ? (ariaHidden || undefined) : true),\n role: 'img',\n className: classNames(\n styles,\n children.props.className,\n 'spectrum-Icon',\n `spectrum-Icon--size${iconSize}`,\n styleProps.className)\n });\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaLabelingProps, DOMProps, StyleProps} from '@react-types/shared';\nimport {classNames, useSlotProps, useStyleProps} from '@react-spectrum/utils';\nimport {filterDOMProps} from '@react-aria/utils';\nimport React, {ReactElement} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/icon/vars.css';\nimport {useProvider} from '@react-spectrum/provider';\n\nexport interface UIIconProps extends DOMProps, AriaLabelingProps, StyleProps {\n children: ReactElement,\n slot?: string,\n /**\n * Indicates whether the element is exposed to an accessibility API.\n */\n 'aria-hidden'?: boolean | 'false' | 'true'\n}\n\nexport type UIIconPropsWithoutChildren = Omit<UIIconProps, 'children'>;\n\nexport function UIIcon(props: UIIconProps) {\n props = useSlotProps(props, 'icon');\n let {\n children,\n 'aria-label': ariaLabel,\n 'aria-hidden': ariaHidden,\n ...otherProps\n } = props;\n\n let {styleProps} = useStyleProps(otherProps);\n let provider = useProvider();\n let scale = 'M';\n if (provider !== null) {\n scale = provider.scale === 'large' ? 'L' : 'M';\n }\n\n if (!ariaHidden) {\n ariaHidden = undefined;\n }\n\n return React.cloneElement(children, {\n ...filterDOMProps(otherProps),\n ...styleProps,\n scale,\n focusable: 'false',\n 'aria-label': ariaLabel,\n 'aria-hidden': (ariaLabel ? (ariaHidden || undefined) : true),\n role: 'img',\n className: classNames(\n styles,\n children.props.className,\n 'spectrum-Icon',\n {\n [`spectrum-UIIcon-${children.type['displayName']}`]: children.type['displayName']\n },\n styleProps.className)\n });\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaLabelingProps, DOMProps, StyleProps} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport React, {ReactElement} from 'react';\nimport {useSlotProps, useStyleProps} from '@react-spectrum/utils';\n\nexport interface IllustrationProps extends DOMProps, AriaLabelingProps, StyleProps {\n /**\n * A screen reader only label for the Illustration.\n */\n 'aria-label'?: string,\n /**\n * The content to display. Should be an SVG.\n */\n children: ReactElement,\n /**\n * A slot to place the illustration in.\n * @default 'illustration'\n */\n slot?: string,\n /**\n * Indicates whether the element is exposed to an accessibility API.\n */\n 'aria-hidden'?: boolean | 'false' | 'true'\n}\n\nexport type IllustrationPropsWithoutChildren = Omit<IllustrationProps, 'children'>;\n\n/**\n * Wrapper component for illustrations. Use this to wrap your svg element for a custom illustration.\n */\nexport function Illustration(props: IllustrationProps) {\n props = useSlotProps(props, 'illustration');\n let {\n children,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby,\n 'aria-hidden': ariaHidden,\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(otherProps);\n\n let hasLabel = ariaLabel || ariaLabelledby;\n\n if (!ariaHidden) {\n ariaHidden = undefined;\n }\n\n return React.cloneElement(children, {\n ...filterDOMProps(otherProps),\n ...styleProps,\n focusable: 'false',\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby,\n 'aria-hidden': ariaHidden,\n role: hasLabel ? 'img' : undefined\n });\n}\n"],"names":[],"version":3,"file":"main.js.map"}
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C;ACZ1C;;;;;;;;;;CAUC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACVD,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA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AAa;IAE5B,IAAI,CAAC,YACH,aAAa;IAGf,qBAAO,CAAA,GAAA,sCAAI,EAAE,aAAa,UAAU;QAClC,GAAG,CAAA,GAAA,oCAAa,EAAE,WAAW;QAC7B,GAAG,UAAU;QACb,WAAW;QACX,cAAc;QACd,mBAAmB;QACnB,eAAe;QACf,MAAM,WAAW,QAAQ;IAC3B;AACF;","sources":["packages/@react-spectrum/icon/src/index.ts","packages/@react-spectrum/icon/src/Icon.tsx","packages/@adobe/spectrum-css-temp/components/icon/vars.css","packages/@react-spectrum/icon/src/UIIcon.tsx","packages/@react-spectrum/icon/src/Illustration.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {Icon} from './Icon';\nexport {UIIcon} from './UIIcon';\nexport {Illustration} from './Illustration';\n\nexport type {IconProps, IconPropsWithoutChildren} from './Icon';\nexport type {IllustrationProps, IllustrationPropsWithoutChildren} from './Illustration';\nexport type {UIIconProps, UIIconPropsWithoutChildren} from './UIIcon';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaLabelingProps, DOMProps, IconColorValue, StyleProps} from '@react-types/shared';\nimport {baseStyleProps, classNames, StyleHandlers, useSlotProps, useStyleProps} from '@react-spectrum/utils';\nimport {filterDOMProps} from '@react-aria/utils';\nimport React, {ReactElement} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/icon/vars.css';\nimport {useProvider} from '@react-spectrum/provider';\n\nexport interface IconProps extends DOMProps, AriaLabelingProps, StyleProps {\n /**\n * A screen reader only label for the Icon.\n */\n 'aria-label'?: string,\n /**\n * The content to display. Should be an SVG.\n */\n children: ReactElement,\n /**\n * Size of Icon (changes based on scale).\n */\n size?: 'XXS' | 'XS' | 'S' | 'M' | 'L' |'XL' | 'XXL',\n /**\n * A slot to place the icon in.\n * @default 'icon'\n */\n slot?: string,\n /**\n * Indicates whether the element is exposed to an accessibility API.\n */\n 'aria-hidden'?: boolean | 'false' | 'true',\n /**\n * Color of the Icon.\n */\n color?: IconColorValue\n}\n\nexport type IconPropsWithoutChildren = Omit<IconProps, 'children'>;\n\nfunction iconColorValue(value: IconColorValue) {\n return `var(--spectrum-semantic-${value}-color-icon)`;\n}\n\nconst iconStyleProps: StyleHandlers = {\n ...baseStyleProps,\n color: ['color', iconColorValue]\n};\n\n/**\n * Spectrum icons are clear, minimal, and consistent across platforms. They follow the focused and rational principles of the design system in both metaphor and style.\n */\nexport function Icon(props: IconProps) {\n props = useSlotProps(props, 'icon');\n let {\n children,\n size,\n 'aria-label': ariaLabel,\n 'aria-hidden': ariaHidden,\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(otherProps, iconStyleProps);\n\n let provider = useProvider();\n let scale = 'M';\n if (provider !== null) {\n scale = provider.scale === 'large' ? 'L' : 'M';\n }\n if (!ariaHidden) {\n ariaHidden = undefined;\n }\n\n // Use user specified size, falling back to provider scale if size is undef\n let iconSize = size ? size : scale;\n\n return React.cloneElement(children, {\n ...filterDOMProps(otherProps),\n ...styleProps,\n focusable: 'false',\n 'aria-label': ariaLabel,\n 'aria-hidden': (ariaLabel ? (ariaHidden || undefined) : true),\n role: 'img',\n className: classNames(\n styles,\n children.props.className,\n 'spectrum-Icon',\n `spectrum-Icon--size${iconSize}`,\n styleProps.className)\n });\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaLabelingProps, DOMProps, StyleProps} from '@react-types/shared';\nimport {classNames, useSlotProps, useStyleProps} from '@react-spectrum/utils';\nimport {filterDOMProps} from '@react-aria/utils';\nimport React, {ReactElement} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/icon/vars.css';\nimport {useProvider} from '@react-spectrum/provider';\n\nexport interface UIIconProps extends DOMProps, AriaLabelingProps, StyleProps {\n children: ReactElement,\n slot?: string,\n /**\n * Indicates whether the element is exposed to an accessibility API.\n */\n 'aria-hidden'?: boolean | 'false' | 'true'\n}\n\nexport type UIIconPropsWithoutChildren = Omit<UIIconProps, 'children'>;\n\nexport function UIIcon(props: UIIconProps) {\n props = useSlotProps(props, 'icon');\n let {\n children,\n 'aria-label': ariaLabel,\n 'aria-hidden': ariaHidden,\n ...otherProps\n } = props;\n\n let {styleProps} = useStyleProps(otherProps);\n let provider = useProvider();\n let scale = 'M';\n if (provider !== null) {\n scale = provider.scale === 'large' ? 'L' : 'M';\n }\n\n if (!ariaHidden) {\n ariaHidden = undefined;\n }\n\n return React.cloneElement(children, {\n ...filterDOMProps(otherProps),\n ...styleProps,\n scale,\n focusable: 'false',\n 'aria-label': ariaLabel,\n 'aria-hidden': (ariaLabel ? (ariaHidden || undefined) : true),\n role: 'img',\n className: classNames(\n styles,\n children.props.className,\n 'spectrum-Icon',\n {\n [`spectrum-UIIcon-${children.type['displayName']}`]: children.type['displayName']\n },\n styleProps.className)\n });\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaLabelingProps, DOMProps, StyleProps} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport React, {ReactElement} from 'react';\nimport {useSlotProps, useStyleProps} from '@react-spectrum/utils';\n\nexport interface IllustrationProps extends DOMProps, AriaLabelingProps, StyleProps {\n /**\n * A screen reader only label for the Illustration.\n */\n 'aria-label'?: string,\n /**\n * The content to display. Should be an SVG.\n */\n children: ReactElement,\n /**\n * A slot to place the illustration in.\n * @default 'illustration'\n */\n slot?: string,\n /**\n * Indicates whether the element is exposed to an accessibility API.\n */\n 'aria-hidden'?: boolean | 'false' | 'true'\n}\n\nexport type IllustrationPropsWithoutChildren = Omit<IllustrationProps, 'children'>;\n\n/**\n * Wrapper component for illustrations. Use this to wrap your svg element for a custom illustration.\n */\nexport function Illustration(props: IllustrationProps) {\n props = useSlotProps(props, 'illustration');\n let {\n children,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby,\n 'aria-hidden': ariaHidden,\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(otherProps);\n\n let hasLabel = ariaLabel || ariaLabelledby;\n\n if (!ariaHidden) {\n ariaHidden = undefined;\n }\n\n return React.cloneElement(children, {\n ...filterDOMProps(otherProps),\n ...styleProps,\n focusable: 'false',\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby,\n 'aria-hidden': ariaHidden,\n role: hasLabel ? 'img' : undefined\n });\n}\n"],"names":[],"version":3,"file":"main.js.map"}
|
package/dist/module.js
CHANGED
|
@@ -36,19 +36,19 @@ function $parcel$export(e, n, v, s) {
|
|
|
36
36
|
|
|
37
37
|
var $6edfbdaffbc9baf9$exports = {};
|
|
38
38
|
|
|
39
|
+
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum--large", () => $6edfbdaffbc9baf9$export$a88a8dbe29386d31, (v) => $6edfbdaffbc9baf9$export$a88a8dbe29386d31 = v);
|
|
40
|
+
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum--medium", () => $6edfbdaffbc9baf9$export$4c0c83b3f4303ef8, (v) => $6edfbdaffbc9baf9$export$4c0c83b3f4303ef8 = v);
|
|
39
41
|
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-Icon", () => $6edfbdaffbc9baf9$export$d374b04f30360026, (v) => $6edfbdaffbc9baf9$export$d374b04f30360026 = v);
|
|
40
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon", () => $6edfbdaffbc9baf9$export$c7db7fdc5aac13aa, (v) => $6edfbdaffbc9baf9$export$c7db7fdc5aac13aa = v);
|
|
41
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-Icon--sizeXXS", () => $6edfbdaffbc9baf9$export$cab8448604b31f43, (v) => $6edfbdaffbc9baf9$export$cab8448604b31f43 = v);
|
|
42
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-Icon--sizeXS", () => $6edfbdaffbc9baf9$export$557c0af6873b4222, (v) => $6edfbdaffbc9baf9$export$557c0af6873b4222 = v);
|
|
43
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-Icon--sizeS", () => $6edfbdaffbc9baf9$export$34ce05647f0c65e, (v) => $6edfbdaffbc9baf9$export$34ce05647f0c65e = v);
|
|
44
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-Icon--sizeM", () => $6edfbdaffbc9baf9$export$8f1693ac47916bbf, (v) => $6edfbdaffbc9baf9$export$8f1693ac47916bbf = v);
|
|
45
42
|
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-Icon--sizeL", () => $6edfbdaffbc9baf9$export$8d23c37ef2a4f13e, (v) => $6edfbdaffbc9baf9$export$8d23c37ef2a4f13e = v);
|
|
43
|
+
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-Icon--sizeM", () => $6edfbdaffbc9baf9$export$8f1693ac47916bbf, (v) => $6edfbdaffbc9baf9$export$8f1693ac47916bbf = v);
|
|
44
|
+
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-Icon--sizeS", () => $6edfbdaffbc9baf9$export$34ce05647f0c65e, (v) => $6edfbdaffbc9baf9$export$34ce05647f0c65e = v);
|
|
46
45
|
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-Icon--sizeXL", () => $6edfbdaffbc9baf9$export$c6e70a22e841bc1b, (v) => $6edfbdaffbc9baf9$export$c6e70a22e841bc1b = v);
|
|
46
|
+
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-Icon--sizeXS", () => $6edfbdaffbc9baf9$export$557c0af6873b4222, (v) => $6edfbdaffbc9baf9$export$557c0af6873b4222 = v);
|
|
47
47
|
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-Icon--sizeXXL", () => $6edfbdaffbc9baf9$export$b37777493a27e620, (v) => $6edfbdaffbc9baf9$export$b37777493a27e620 = v);
|
|
48
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum--
|
|
48
|
+
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-Icon--sizeXXS", () => $6edfbdaffbc9baf9$export$cab8448604b31f43, (v) => $6edfbdaffbc9baf9$export$cab8448604b31f43 = v);
|
|
49
|
+
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon", () => $6edfbdaffbc9baf9$export$c7db7fdc5aac13aa, (v) => $6edfbdaffbc9baf9$export$c7db7fdc5aac13aa = v);
|
|
49
50
|
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon--large", () => $6edfbdaffbc9baf9$export$2265a487ad399d8b, (v) => $6edfbdaffbc9baf9$export$2265a487ad399d8b = v);
|
|
50
51
|
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon--medium", () => $6edfbdaffbc9baf9$export$a6044013cf72ddc9, (v) => $6edfbdaffbc9baf9$export$a6044013cf72ddc9 = v);
|
|
51
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum--large", () => $6edfbdaffbc9baf9$export$a88a8dbe29386d31, (v) => $6edfbdaffbc9baf9$export$a88a8dbe29386d31 = v);
|
|
52
52
|
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon-AlertMedium", () => $6edfbdaffbc9baf9$export$83be8302c01b6478, (v) => $6edfbdaffbc9baf9$export$83be8302c01b6478 = v);
|
|
53
53
|
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon-AlertSmall", () => $6edfbdaffbc9baf9$export$57b49d6ee2e9f187, (v) => $6edfbdaffbc9baf9$export$57b49d6ee2e9f187 = v);
|
|
54
54
|
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon-ArrowDownSmall", () => $6edfbdaffbc9baf9$export$81968d05e3681b3f, (v) => $6edfbdaffbc9baf9$export$81968d05e3681b3f = v);
|
|
@@ -84,19 +84,19 @@ $parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon-StarOutline", () => $
|
|
|
84
84
|
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon-SuccessMedium", () => $6edfbdaffbc9baf9$export$d18d2d837989a797, (v) => $6edfbdaffbc9baf9$export$d18d2d837989a797 = v);
|
|
85
85
|
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon-SuccessSmall", () => $6edfbdaffbc9baf9$export$506ac7a1a72a2c65, (v) => $6edfbdaffbc9baf9$export$506ac7a1a72a2c65 = v);
|
|
86
86
|
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon-TripleGripper", () => $6edfbdaffbc9baf9$export$12b8600bcd969018, (v) => $6edfbdaffbc9baf9$export$12b8600bcd969018 = v);
|
|
87
|
+
var $6edfbdaffbc9baf9$export$a88a8dbe29386d31;
|
|
88
|
+
var $6edfbdaffbc9baf9$export$4c0c83b3f4303ef8;
|
|
87
89
|
var $6edfbdaffbc9baf9$export$d374b04f30360026;
|
|
88
|
-
var $6edfbdaffbc9baf9$export$c7db7fdc5aac13aa;
|
|
89
|
-
var $6edfbdaffbc9baf9$export$cab8448604b31f43;
|
|
90
|
-
var $6edfbdaffbc9baf9$export$557c0af6873b4222;
|
|
91
|
-
var $6edfbdaffbc9baf9$export$34ce05647f0c65e;
|
|
92
|
-
var $6edfbdaffbc9baf9$export$8f1693ac47916bbf;
|
|
93
90
|
var $6edfbdaffbc9baf9$export$8d23c37ef2a4f13e;
|
|
91
|
+
var $6edfbdaffbc9baf9$export$8f1693ac47916bbf;
|
|
92
|
+
var $6edfbdaffbc9baf9$export$34ce05647f0c65e;
|
|
94
93
|
var $6edfbdaffbc9baf9$export$c6e70a22e841bc1b;
|
|
94
|
+
var $6edfbdaffbc9baf9$export$557c0af6873b4222;
|
|
95
95
|
var $6edfbdaffbc9baf9$export$b37777493a27e620;
|
|
96
|
-
var $6edfbdaffbc9baf9$export$
|
|
96
|
+
var $6edfbdaffbc9baf9$export$cab8448604b31f43;
|
|
97
|
+
var $6edfbdaffbc9baf9$export$c7db7fdc5aac13aa;
|
|
97
98
|
var $6edfbdaffbc9baf9$export$2265a487ad399d8b;
|
|
98
99
|
var $6edfbdaffbc9baf9$export$a6044013cf72ddc9;
|
|
99
|
-
var $6edfbdaffbc9baf9$export$a88a8dbe29386d31;
|
|
100
100
|
var $6edfbdaffbc9baf9$export$83be8302c01b6478;
|
|
101
101
|
var $6edfbdaffbc9baf9$export$57b49d6ee2e9f187;
|
|
102
102
|
var $6edfbdaffbc9baf9$export$81968d05e3681b3f;
|
|
@@ -132,54 +132,54 @@ var $6edfbdaffbc9baf9$export$bcda0a6a6d7202af;
|
|
|
132
132
|
var $6edfbdaffbc9baf9$export$d18d2d837989a797;
|
|
133
133
|
var $6edfbdaffbc9baf9$export$506ac7a1a72a2c65;
|
|
134
134
|
var $6edfbdaffbc9baf9$export$12b8600bcd969018;
|
|
135
|
-
$6edfbdaffbc9baf9$export$
|
|
136
|
-
$6edfbdaffbc9baf9$export$
|
|
137
|
-
$6edfbdaffbc9baf9$export$
|
|
138
|
-
$6edfbdaffbc9baf9$export$
|
|
139
|
-
$6edfbdaffbc9baf9$export$
|
|
140
|
-
$6edfbdaffbc9baf9$export$
|
|
141
|
-
$6edfbdaffbc9baf9$export$
|
|
142
|
-
$6edfbdaffbc9baf9$export$
|
|
143
|
-
$6edfbdaffbc9baf9$export$b37777493a27e620 =
|
|
144
|
-
$6edfbdaffbc9baf9$export$
|
|
145
|
-
$6edfbdaffbc9baf9$export$
|
|
146
|
-
$6edfbdaffbc9baf9$export$
|
|
147
|
-
$6edfbdaffbc9baf9$export$
|
|
148
|
-
$6edfbdaffbc9baf9$export$83be8302c01b6478 =
|
|
149
|
-
$6edfbdaffbc9baf9$export$57b49d6ee2e9f187 =
|
|
150
|
-
$6edfbdaffbc9baf9$export$81968d05e3681b3f =
|
|
151
|
-
$6edfbdaffbc9baf9$export$c0d655f335b5bc31 =
|
|
152
|
-
$6edfbdaffbc9baf9$export$cca4342eca45562 =
|
|
153
|
-
$6edfbdaffbc9baf9$export$edc4a2e9af971b26 =
|
|
154
|
-
$6edfbdaffbc9baf9$export$9e665cb12e71e037 =
|
|
155
|
-
$6edfbdaffbc9baf9$export$2f91b7a7627906d5 =
|
|
156
|
-
$6edfbdaffbc9baf9$export$56efb4ec9eb35c07 =
|
|
157
|
-
$6edfbdaffbc9baf9$export$5861dfe1d581a528 =
|
|
158
|
-
$6edfbdaffbc9baf9$export$595a122b60890c78 =
|
|
159
|
-
$6edfbdaffbc9baf9$export$596373794435f8bc =
|
|
160
|
-
$6edfbdaffbc9baf9$export$32b379a02cafbfb3 =
|
|
161
|
-
$6edfbdaffbc9baf9$export$ee5de2c4d7c8faa4 =
|
|
162
|
-
$6edfbdaffbc9baf9$export$c1cbae72fd236fd9 =
|
|
163
|
-
$6edfbdaffbc9baf9$export$636d8cde4f6b7e6 =
|
|
164
|
-
$6edfbdaffbc9baf9$export$1f0ad4082256e3df =
|
|
165
|
-
$6edfbdaffbc9baf9$export$1e0848411e254295 =
|
|
166
|
-
$6edfbdaffbc9baf9$export$1c1bddac0ae5fbe5 =
|
|
167
|
-
$6edfbdaffbc9baf9$export$98de2b9917cd3b6a =
|
|
168
|
-
$6edfbdaffbc9baf9$export$3c956876cb11c1e1 =
|
|
169
|
-
$6edfbdaffbc9baf9$export$55cf2795737352fc =
|
|
170
|
-
$6edfbdaffbc9baf9$export$d5d1e3e09ea6cd5 =
|
|
171
|
-
$6edfbdaffbc9baf9$export$f51b22382127207d =
|
|
172
|
-
$6edfbdaffbc9baf9$export$825a6c2340d3b7e5 =
|
|
173
|
-
$6edfbdaffbc9baf9$export$4828f4a6bfd26c04 =
|
|
174
|
-
$6edfbdaffbc9baf9$export$1254ece141a8dac6 =
|
|
175
|
-
$6edfbdaffbc9baf9$export$a33650c9f4cc191e =
|
|
176
|
-
$6edfbdaffbc9baf9$export$9eb19533e4b8cc28 =
|
|
177
|
-
$6edfbdaffbc9baf9$export$67704939e41f705a =
|
|
178
|
-
$6edfbdaffbc9baf9$export$c4d219c150b98c92 =
|
|
179
|
-
$6edfbdaffbc9baf9$export$bcda0a6a6d7202af =
|
|
180
|
-
$6edfbdaffbc9baf9$export$d18d2d837989a797 =
|
|
181
|
-
$6edfbdaffbc9baf9$export$506ac7a1a72a2c65 =
|
|
182
|
-
$6edfbdaffbc9baf9$export$12b8600bcd969018 =
|
|
135
|
+
$6edfbdaffbc9baf9$export$a88a8dbe29386d31 = `yxBNXG_spectrum--large`;
|
|
136
|
+
$6edfbdaffbc9baf9$export$4c0c83b3f4303ef8 = `yxBNXG_spectrum--medium`;
|
|
137
|
+
$6edfbdaffbc9baf9$export$d374b04f30360026 = `yxBNXG_spectrum-Icon`;
|
|
138
|
+
$6edfbdaffbc9baf9$export$8d23c37ef2a4f13e = `yxBNXG_spectrum-Icon--sizeL`;
|
|
139
|
+
$6edfbdaffbc9baf9$export$8f1693ac47916bbf = `yxBNXG_spectrum-Icon--sizeM`;
|
|
140
|
+
$6edfbdaffbc9baf9$export$34ce05647f0c65e = `yxBNXG_spectrum-Icon--sizeS`;
|
|
141
|
+
$6edfbdaffbc9baf9$export$c6e70a22e841bc1b = `yxBNXG_spectrum-Icon--sizeXL`;
|
|
142
|
+
$6edfbdaffbc9baf9$export$557c0af6873b4222 = `yxBNXG_spectrum-Icon--sizeXS`;
|
|
143
|
+
$6edfbdaffbc9baf9$export$b37777493a27e620 = `yxBNXG_spectrum-Icon--sizeXXL`;
|
|
144
|
+
$6edfbdaffbc9baf9$export$cab8448604b31f43 = `yxBNXG_spectrum-Icon--sizeXXS`;
|
|
145
|
+
$6edfbdaffbc9baf9$export$c7db7fdc5aac13aa = `yxBNXG_spectrum-UIIcon`;
|
|
146
|
+
$6edfbdaffbc9baf9$export$2265a487ad399d8b = `yxBNXG_spectrum-UIIcon--large`;
|
|
147
|
+
$6edfbdaffbc9baf9$export$a6044013cf72ddc9 = `yxBNXG_spectrum-UIIcon--medium`;
|
|
148
|
+
$6edfbdaffbc9baf9$export$83be8302c01b6478 = `yxBNXG_spectrum-UIIcon-AlertMedium`;
|
|
149
|
+
$6edfbdaffbc9baf9$export$57b49d6ee2e9f187 = `yxBNXG_spectrum-UIIcon-AlertSmall`;
|
|
150
|
+
$6edfbdaffbc9baf9$export$81968d05e3681b3f = `yxBNXG_spectrum-UIIcon-ArrowDownSmall`;
|
|
151
|
+
$6edfbdaffbc9baf9$export$c0d655f335b5bc31 = `yxBNXG_spectrum-UIIcon-ArrowLeftMedium`;
|
|
152
|
+
$6edfbdaffbc9baf9$export$cca4342eca45562 = `yxBNXG_spectrum-UIIcon-Asterisk`;
|
|
153
|
+
$6edfbdaffbc9baf9$export$edc4a2e9af971b26 = `yxBNXG_spectrum-UIIcon-CheckmarkMedium`;
|
|
154
|
+
$6edfbdaffbc9baf9$export$9e665cb12e71e037 = `yxBNXG_spectrum-UIIcon-CheckmarkSmall`;
|
|
155
|
+
$6edfbdaffbc9baf9$export$2f91b7a7627906d5 = `yxBNXG_spectrum-UIIcon-ChevronDownMedium`;
|
|
156
|
+
$6edfbdaffbc9baf9$export$56efb4ec9eb35c07 = `yxBNXG_spectrum-UIIcon-ChevronDownSmall`;
|
|
157
|
+
$6edfbdaffbc9baf9$export$5861dfe1d581a528 = `yxBNXG_spectrum-UIIcon-ChevronLeftLarge`;
|
|
158
|
+
$6edfbdaffbc9baf9$export$595a122b60890c78 = `yxBNXG_spectrum-UIIcon-ChevronLeftMedium`;
|
|
159
|
+
$6edfbdaffbc9baf9$export$596373794435f8bc = `yxBNXG_spectrum-UIIcon-ChevronRightLarge`;
|
|
160
|
+
$6edfbdaffbc9baf9$export$32b379a02cafbfb3 = `yxBNXG_spectrum-UIIcon-ChevronRightMedium`;
|
|
161
|
+
$6edfbdaffbc9baf9$export$ee5de2c4d7c8faa4 = `yxBNXG_spectrum-UIIcon-ChevronRightSmall`;
|
|
162
|
+
$6edfbdaffbc9baf9$export$c1cbae72fd236fd9 = `yxBNXG_spectrum-UIIcon-ChevronUpSmall`;
|
|
163
|
+
$6edfbdaffbc9baf9$export$636d8cde4f6b7e6 = `yxBNXG_spectrum-UIIcon-CornerTriangle`;
|
|
164
|
+
$6edfbdaffbc9baf9$export$1f0ad4082256e3df = `yxBNXG_spectrum-UIIcon-CrossLarge`;
|
|
165
|
+
$6edfbdaffbc9baf9$export$1e0848411e254295 = `yxBNXG_spectrum-UIIcon-CrossMedium`;
|
|
166
|
+
$6edfbdaffbc9baf9$export$1c1bddac0ae5fbe5 = `yxBNXG_spectrum-UIIcon-CrossSmall`;
|
|
167
|
+
$6edfbdaffbc9baf9$export$98de2b9917cd3b6a = `yxBNXG_spectrum-UIIcon-DashSmall`;
|
|
168
|
+
$6edfbdaffbc9baf9$export$3c956876cb11c1e1 = `yxBNXG_spectrum-UIIcon-DoubleGripper`;
|
|
169
|
+
$6edfbdaffbc9baf9$export$55cf2795737352fc = `yxBNXG_spectrum-UIIcon-FolderBreadcrumb`;
|
|
170
|
+
$6edfbdaffbc9baf9$export$d5d1e3e09ea6cd5 = `yxBNXG_spectrum-UIIcon-HelpMedium`;
|
|
171
|
+
$6edfbdaffbc9baf9$export$f51b22382127207d = `yxBNXG_spectrum-UIIcon-HelpSmall`;
|
|
172
|
+
$6edfbdaffbc9baf9$export$825a6c2340d3b7e5 = `yxBNXG_spectrum-UIIcon-InfoMedium`;
|
|
173
|
+
$6edfbdaffbc9baf9$export$4828f4a6bfd26c04 = `yxBNXG_spectrum-UIIcon-InfoSmall`;
|
|
174
|
+
$6edfbdaffbc9baf9$export$1254ece141a8dac6 = `yxBNXG_spectrum-UIIcon-ListGripper`;
|
|
175
|
+
$6edfbdaffbc9baf9$export$a33650c9f4cc191e = `yxBNXG_spectrum-UIIcon-Magnifier`;
|
|
176
|
+
$6edfbdaffbc9baf9$export$9eb19533e4b8cc28 = `yxBNXG_spectrum-UIIcon-SkipLeft`;
|
|
177
|
+
$6edfbdaffbc9baf9$export$67704939e41f705a = `yxBNXG_spectrum-UIIcon-SkipRight`;
|
|
178
|
+
$6edfbdaffbc9baf9$export$c4d219c150b98c92 = `yxBNXG_spectrum-UIIcon-Star`;
|
|
179
|
+
$6edfbdaffbc9baf9$export$bcda0a6a6d7202af = `yxBNXG_spectrum-UIIcon-StarOutline`;
|
|
180
|
+
$6edfbdaffbc9baf9$export$d18d2d837989a797 = `yxBNXG_spectrum-UIIcon-SuccessMedium`;
|
|
181
|
+
$6edfbdaffbc9baf9$export$506ac7a1a72a2c65 = `yxBNXG_spectrum-UIIcon-SuccessSmall`;
|
|
182
|
+
$6edfbdaffbc9baf9$export$12b8600bcd969018 = `yxBNXG_spectrum-UIIcon-TripleGripper`;
|
|
183
183
|
|
|
184
184
|
|
|
185
185
|
|
|
@@ -195,8 +195,8 @@ const $6bfb67578ee6effd$var$iconStyleProps = {
|
|
|
195
195
|
};
|
|
196
196
|
function $6bfb67578ee6effd$export$f04a61298a47a40f(props) {
|
|
197
197
|
props = (0, $1Thsl$useSlotProps)(props, "icon");
|
|
198
|
-
let { children: children
|
|
199
|
-
let { styleProps: styleProps
|
|
198
|
+
let { children: children, size: size, "aria-label": ariaLabel, "aria-hidden": ariaHidden, ...otherProps } = props;
|
|
199
|
+
let { styleProps: styleProps } = (0, $1Thsl$useStyleProps)(otherProps, $6bfb67578ee6effd$var$iconStyleProps);
|
|
200
200
|
let provider = (0, $1Thsl$useProvider)();
|
|
201
201
|
let scale = "M";
|
|
202
202
|
if (provider !== null) scale = provider.scale === "large" ? "L" : "M";
|
|
@@ -232,8 +232,8 @@ function $6bfb67578ee6effd$export$f04a61298a47a40f(props) {
|
|
|
232
232
|
|
|
233
233
|
function $9ba43a63383852e3$export$906cc5990ff10700(props) {
|
|
234
234
|
props = (0, $1Thsl$useSlotProps)(props, "icon");
|
|
235
|
-
let { children: children
|
|
236
|
-
let { styleProps: styleProps
|
|
235
|
+
let { children: children, "aria-label": ariaLabel, "aria-hidden": ariaHidden, ...otherProps } = props;
|
|
236
|
+
let { styleProps: styleProps } = (0, $1Thsl$useStyleProps)(otherProps);
|
|
237
237
|
let provider = (0, $1Thsl$useProvider)();
|
|
238
238
|
let scale = "M";
|
|
239
239
|
if (provider !== null) scale = provider.scale === "large" ? "L" : "M";
|
|
@@ -268,8 +268,8 @@ function $9ba43a63383852e3$export$906cc5990ff10700(props) {
|
|
|
268
268
|
|
|
269
269
|
function $88bb85359d3a4aed$export$d43c2e2ca9b2c105(props) {
|
|
270
270
|
props = (0, $1Thsl$useSlotProps)(props, "illustration");
|
|
271
|
-
let { children: children
|
|
272
|
-
let { styleProps: styleProps
|
|
271
|
+
let { children: children, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-hidden": ariaHidden, ...otherProps } = props;
|
|
272
|
+
let { styleProps: styleProps } = (0, $1Thsl$useStyleProps)(otherProps);
|
|
273
273
|
let hasLabel = ariaLabel || ariaLabelledby;
|
|
274
274
|
if (!ariaHidden) ariaHidden = undefined;
|
|
275
275
|
return /*#__PURE__*/ (0, $1Thsl$react).cloneElement(children, {
|
package/dist/module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C;ACZ1C;;;;;;;;;;CAUC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACVD,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AA/CA,4CAAkC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,QAAQ,CAAA,GAAA,mBAAW,EAAE,OAAO;IAC5B,IAAI,YACF,SAAQ,EACR,cAAc,UAAS,EACvB,mBAAmB,eAAc,EACjC,eAAe,WAAU,EACzB,GAAG,YACJ,GAAG;IACJ,IAAI,cAAC,WAAU,EAAC,GAAG,CAAA,GAAA,oBAAY,EAAE;IAEjC,IAAI,WAAW,aAAa;IAE5B,IAAI,CAAC,YACH,aAAa;IAGf,qBAAO,CAAA,GAAA,YAAI,EAAE,aAAa,UAAU;QAClC,GAAG,CAAA,GAAA,qBAAa,EAAE,WAAW;QAC7B,GAAG,UAAU;QACb,WAAW;QACX,cAAc;QACd,mBAAmB;QACnB,eAAe;QACf,MAAM,WAAW,QAAQ;IAC3B;AACF;","sources":["packages/@react-spectrum/icon/src/index.ts","packages/@react-spectrum/icon/src/Icon.tsx","packages/@adobe/spectrum-css-temp/components/icon/vars.css","packages/@react-spectrum/icon/src/UIIcon.tsx","packages/@react-spectrum/icon/src/Illustration.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {Icon} from './Icon';\nexport {UIIcon} from './UIIcon';\nexport {Illustration} from './Illustration';\n\nexport type {IconProps, IconPropsWithoutChildren} from './Icon';\nexport type {IllustrationProps, IllustrationPropsWithoutChildren} from './Illustration';\nexport type {UIIconProps, UIIconPropsWithoutChildren} from './UIIcon';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaLabelingProps, DOMProps, IconColorValue, StyleProps} from '@react-types/shared';\nimport {baseStyleProps, classNames, StyleHandlers, useSlotProps, useStyleProps} from '@react-spectrum/utils';\nimport {filterDOMProps} from '@react-aria/utils';\nimport React, {ReactElement} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/icon/vars.css';\nimport {useProvider} from '@react-spectrum/provider';\n\nexport interface IconProps extends DOMProps, AriaLabelingProps, StyleProps {\n /**\n * A screen reader only label for the Icon.\n */\n 'aria-label'?: string,\n /**\n * The content to display. Should be an SVG.\n */\n children: ReactElement,\n /**\n * Size of Icon (changes based on scale).\n */\n size?: 'XXS' | 'XS' | 'S' | 'M' | 'L' |'XL' | 'XXL',\n /**\n * A slot to place the icon in.\n * @default 'icon'\n */\n slot?: string,\n /**\n * Indicates whether the element is exposed to an accessibility API.\n */\n 'aria-hidden'?: boolean | 'false' | 'true',\n /**\n * Color of the Icon.\n */\n color?: IconColorValue\n}\n\nexport type IconPropsWithoutChildren = Omit<IconProps, 'children'>;\n\nfunction iconColorValue(value: IconColorValue) {\n return `var(--spectrum-semantic-${value}-color-icon)`;\n}\n\nconst iconStyleProps: StyleHandlers = {\n ...baseStyleProps,\n color: ['color', iconColorValue]\n};\n\n/**\n * Spectrum icons are clear, minimal, and consistent across platforms. They follow the focused and rational principles of the design system in both metaphor and style.\n */\nexport function Icon(props: IconProps) {\n props = useSlotProps(props, 'icon');\n let {\n children,\n size,\n 'aria-label': ariaLabel,\n 'aria-hidden': ariaHidden,\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(otherProps, iconStyleProps);\n\n let provider = useProvider();\n let scale = 'M';\n if (provider !== null) {\n scale = provider.scale === 'large' ? 'L' : 'M';\n }\n if (!ariaHidden) {\n ariaHidden = undefined;\n }\n\n // Use user specified size, falling back to provider scale if size is undef\n let iconSize = size ? size : scale;\n\n return React.cloneElement(children, {\n ...filterDOMProps(otherProps),\n ...styleProps,\n focusable: 'false',\n 'aria-label': ariaLabel,\n 'aria-hidden': (ariaLabel ? (ariaHidden || undefined) : true),\n role: 'img',\n className: classNames(\n styles,\n children.props.className,\n 'spectrum-Icon',\n `spectrum-Icon--size${iconSize}`,\n styleProps.className)\n });\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaLabelingProps, DOMProps, StyleProps} from '@react-types/shared';\nimport {classNames, useSlotProps, useStyleProps} from '@react-spectrum/utils';\nimport {filterDOMProps} from '@react-aria/utils';\nimport React, {ReactElement} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/icon/vars.css';\nimport {useProvider} from '@react-spectrum/provider';\n\nexport interface UIIconProps extends DOMProps, AriaLabelingProps, StyleProps {\n children: ReactElement,\n slot?: string,\n /**\n * Indicates whether the element is exposed to an accessibility API.\n */\n 'aria-hidden'?: boolean | 'false' | 'true'\n}\n\nexport type UIIconPropsWithoutChildren = Omit<UIIconProps, 'children'>;\n\nexport function UIIcon(props: UIIconProps) {\n props = useSlotProps(props, 'icon');\n let {\n children,\n 'aria-label': ariaLabel,\n 'aria-hidden': ariaHidden,\n ...otherProps\n } = props;\n\n let {styleProps} = useStyleProps(otherProps);\n let provider = useProvider();\n let scale = 'M';\n if (provider !== null) {\n scale = provider.scale === 'large' ? 'L' : 'M';\n }\n\n if (!ariaHidden) {\n ariaHidden = undefined;\n }\n\n return React.cloneElement(children, {\n ...filterDOMProps(otherProps),\n ...styleProps,\n scale,\n focusable: 'false',\n 'aria-label': ariaLabel,\n 'aria-hidden': (ariaLabel ? (ariaHidden || undefined) : true),\n role: 'img',\n className: classNames(\n styles,\n children.props.className,\n 'spectrum-Icon',\n {\n [`spectrum-UIIcon-${children.type['displayName']}`]: children.type['displayName']\n },\n styleProps.className)\n });\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaLabelingProps, DOMProps, StyleProps} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport React, {ReactElement} from 'react';\nimport {useSlotProps, useStyleProps} from '@react-spectrum/utils';\n\nexport interface IllustrationProps extends DOMProps, AriaLabelingProps, StyleProps {\n /**\n * A screen reader only label for the Illustration.\n */\n 'aria-label'?: string,\n /**\n * The content to display. Should be an SVG.\n */\n children: ReactElement,\n /**\n * A slot to place the illustration in.\n * @default 'illustration'\n */\n slot?: string,\n /**\n * Indicates whether the element is exposed to an accessibility API.\n */\n 'aria-hidden'?: boolean | 'false' | 'true'\n}\n\nexport type IllustrationPropsWithoutChildren = Omit<IllustrationProps, 'children'>;\n\n/**\n * Wrapper component for illustrations. Use this to wrap your svg element for a custom illustration.\n */\nexport function Illustration(props: IllustrationProps) {\n props = useSlotProps(props, 'illustration');\n let {\n children,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby,\n 'aria-hidden': ariaHidden,\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(otherProps);\n\n let hasLabel = ariaLabel || ariaLabelledby;\n\n if (!ariaHidden) {\n ariaHidden = undefined;\n }\n\n return React.cloneElement(children, {\n ...filterDOMProps(otherProps),\n ...styleProps,\n focusable: 'false',\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby,\n 'aria-hidden': ariaHidden,\n role: hasLabel ? 'img' : undefined\n });\n}\n"],"names":[],"version":3,"file":"module.js.map"}
|
|
1
|
+
{"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C;ACZ1C;;;;;;;;;;CAUC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACVD,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AA/CA,4CAAoC,CAAC,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Aa;IAGf,qBAAO,CAAA,GAAA,YAAI,EAAE,aAAa,UAAU;QAClC,GAAG,CAAA,GAAA,qBAAa,EAAE,WAAW;QAC7B,GAAG,UAAU;QACb,WAAW;QACX,cAAc;QACd,mBAAmB;QACnB,eAAe;QACf,MAAM,WAAW,QAAQ;IAC3B;AACF;","sources":["packages/@react-spectrum/icon/src/index.ts","packages/@react-spectrum/icon/src/Icon.tsx","packages/@adobe/spectrum-css-temp/components/icon/vars.css","packages/@react-spectrum/icon/src/UIIcon.tsx","packages/@react-spectrum/icon/src/Illustration.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {Icon} from './Icon';\nexport {UIIcon} from './UIIcon';\nexport {Illustration} from './Illustration';\n\nexport type {IconProps, IconPropsWithoutChildren} from './Icon';\nexport type {IllustrationProps, IllustrationPropsWithoutChildren} from './Illustration';\nexport type {UIIconProps, UIIconPropsWithoutChildren} from './UIIcon';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaLabelingProps, DOMProps, IconColorValue, StyleProps} from '@react-types/shared';\nimport {baseStyleProps, classNames, StyleHandlers, useSlotProps, useStyleProps} from '@react-spectrum/utils';\nimport {filterDOMProps} from '@react-aria/utils';\nimport React, {ReactElement} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/icon/vars.css';\nimport {useProvider} from '@react-spectrum/provider';\n\nexport interface IconProps extends DOMProps, AriaLabelingProps, StyleProps {\n /**\n * A screen reader only label for the Icon.\n */\n 'aria-label'?: string,\n /**\n * The content to display. Should be an SVG.\n */\n children: ReactElement,\n /**\n * Size of Icon (changes based on scale).\n */\n size?: 'XXS' | 'XS' | 'S' | 'M' | 'L' |'XL' | 'XXL',\n /**\n * A slot to place the icon in.\n * @default 'icon'\n */\n slot?: string,\n /**\n * Indicates whether the element is exposed to an accessibility API.\n */\n 'aria-hidden'?: boolean | 'false' | 'true',\n /**\n * Color of the Icon.\n */\n color?: IconColorValue\n}\n\nexport type IconPropsWithoutChildren = Omit<IconProps, 'children'>;\n\nfunction iconColorValue(value: IconColorValue) {\n return `var(--spectrum-semantic-${value}-color-icon)`;\n}\n\nconst iconStyleProps: StyleHandlers = {\n ...baseStyleProps,\n color: ['color', iconColorValue]\n};\n\n/**\n * Spectrum icons are clear, minimal, and consistent across platforms. They follow the focused and rational principles of the design system in both metaphor and style.\n */\nexport function Icon(props: IconProps) {\n props = useSlotProps(props, 'icon');\n let {\n children,\n size,\n 'aria-label': ariaLabel,\n 'aria-hidden': ariaHidden,\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(otherProps, iconStyleProps);\n\n let provider = useProvider();\n let scale = 'M';\n if (provider !== null) {\n scale = provider.scale === 'large' ? 'L' : 'M';\n }\n if (!ariaHidden) {\n ariaHidden = undefined;\n }\n\n // Use user specified size, falling back to provider scale if size is undef\n let iconSize = size ? size : scale;\n\n return React.cloneElement(children, {\n ...filterDOMProps(otherProps),\n ...styleProps,\n focusable: 'false',\n 'aria-label': ariaLabel,\n 'aria-hidden': (ariaLabel ? (ariaHidden || undefined) : true),\n role: 'img',\n className: classNames(\n styles,\n children.props.className,\n 'spectrum-Icon',\n `spectrum-Icon--size${iconSize}`,\n styleProps.className)\n });\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaLabelingProps, DOMProps, StyleProps} from '@react-types/shared';\nimport {classNames, useSlotProps, useStyleProps} from '@react-spectrum/utils';\nimport {filterDOMProps} from '@react-aria/utils';\nimport React, {ReactElement} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/icon/vars.css';\nimport {useProvider} from '@react-spectrum/provider';\n\nexport interface UIIconProps extends DOMProps, AriaLabelingProps, StyleProps {\n children: ReactElement,\n slot?: string,\n /**\n * Indicates whether the element is exposed to an accessibility API.\n */\n 'aria-hidden'?: boolean | 'false' | 'true'\n}\n\nexport type UIIconPropsWithoutChildren = Omit<UIIconProps, 'children'>;\n\nexport function UIIcon(props: UIIconProps) {\n props = useSlotProps(props, 'icon');\n let {\n children,\n 'aria-label': ariaLabel,\n 'aria-hidden': ariaHidden,\n ...otherProps\n } = props;\n\n let {styleProps} = useStyleProps(otherProps);\n let provider = useProvider();\n let scale = 'M';\n if (provider !== null) {\n scale = provider.scale === 'large' ? 'L' : 'M';\n }\n\n if (!ariaHidden) {\n ariaHidden = undefined;\n }\n\n return React.cloneElement(children, {\n ...filterDOMProps(otherProps),\n ...styleProps,\n scale,\n focusable: 'false',\n 'aria-label': ariaLabel,\n 'aria-hidden': (ariaLabel ? (ariaHidden || undefined) : true),\n role: 'img',\n className: classNames(\n styles,\n children.props.className,\n 'spectrum-Icon',\n {\n [`spectrum-UIIcon-${children.type['displayName']}`]: children.type['displayName']\n },\n styleProps.className)\n });\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaLabelingProps, DOMProps, StyleProps} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport React, {ReactElement} from 'react';\nimport {useSlotProps, useStyleProps} from '@react-spectrum/utils';\n\nexport interface IllustrationProps extends DOMProps, AriaLabelingProps, StyleProps {\n /**\n * A screen reader only label for the Illustration.\n */\n 'aria-label'?: string,\n /**\n * The content to display. Should be an SVG.\n */\n children: ReactElement,\n /**\n * A slot to place the illustration in.\n * @default 'illustration'\n */\n slot?: string,\n /**\n * Indicates whether the element is exposed to an accessibility API.\n */\n 'aria-hidden'?: boolean | 'false' | 'true'\n}\n\nexport type IllustrationPropsWithoutChildren = Omit<IllustrationProps, 'children'>;\n\n/**\n * Wrapper component for illustrations. Use this to wrap your svg element for a custom illustration.\n */\nexport function Illustration(props: IllustrationProps) {\n props = useSlotProps(props, 'illustration');\n let {\n children,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby,\n 'aria-hidden': ariaHidden,\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(otherProps);\n\n let hasLabel = ariaLabel || ariaLabelledby;\n\n if (!ariaHidden) {\n ariaHidden = undefined;\n }\n\n return React.cloneElement(children, {\n ...filterDOMProps(otherProps),\n ...styleProps,\n focusable: 'false',\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby,\n 'aria-hidden': ariaHidden,\n role: hasLabel ? 'img' : undefined\n });\n}\n"],"names":[],"version":3,"file":"module.js.map"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-spectrum/icon",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.6",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"url": "https://github.com/adobe/react-spectrum"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@react-aria/utils": "^3.
|
|
40
|
-
"@react-spectrum/utils": "^3.
|
|
41
|
-
"@react-types/shared": "^3.
|
|
39
|
+
"@react-aria/utils": "^3.21.0",
|
|
40
|
+
"@react-spectrum/utils": "^3.11.0",
|
|
41
|
+
"@react-types/shared": "^3.21.0",
|
|
42
42
|
"@swc/helpers": "^0.5.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"access": "public"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "4122e44d1991c90507d630d35ed297f89db435d3"
|
|
55
55
|
}
|