@react-spectrum/icon 3.0.0-nightly.1383 → 3.0.0-nightly.1395
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/main.css +1 -1
- package/dist/main.js +178 -178
- package/dist/main.js.map +1 -1
- package/dist/module.js +177 -177
- package/dist/module.js.map +1 -1
- package/package.json +6 -6
package/dist/main.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.spectrum-Icon_368b34,.spectrum-UIIcon_368b34{color:inherit;fill:currentColor;pointer-events:none;display:inline-block}.spectrum-Icon_368b34:not(:root),.spectrum-UIIcon_368b34:not(:root){overflow:hidden}@media (forced-colors:active){.spectrum-Icon_368b34,.spectrum-UIIcon_368b34{forced-color-adjust:auto}}.spectrum-Icon--sizeXXS_368b34,.spectrum-Icon--sizeXXS_368b34 img,.spectrum-Icon--sizeXXS_368b34 svg{height:calc(var(--spectrum-alias-workflow-icon-size,var(--spectrum-global-dimension-size-225))/2);width:calc(var(--spectrum-alias-workflow-icon-size,var(--spectrum-global-dimension-size-225))/2)}.spectrum-Icon--sizeXS_368b34,.spectrum-Icon--sizeXS_368b34 img,.spectrum-Icon--sizeXS_368b34 svg{height:calc(var(--spectrum-global-dimension-size-300)/2);width:calc(var(--spectrum-global-dimension-size-300)/2)}.spectrum-Icon--sizeS_368b34,.spectrum-Icon--sizeS_368b34 img,.spectrum-Icon--sizeS_368b34 svg{height:var(--spectrum-alias-workflow-icon-size,var(--spectrum-global-dimension-size-225));width:var(--spectrum-alias-workflow-icon-size,var(--spectrum-global-dimension-size-225))}.spectrum-Icon--sizeM_368b34,.spectrum-Icon--sizeM_368b34 img,.spectrum-Icon--sizeM_368b34 svg{height:var(--spectrum-global-dimension-size-300);width:var(--spectrum-global-dimension-size-300)}.spectrum-Icon--sizeL_368b34,.spectrum-Icon--sizeL_368b34 img,.spectrum-Icon--sizeL_368b34 svg{height:calc(var(--spectrum-alias-workflow-icon-size,var(--spectrum-global-dimension-size-225))*2);width:calc(var(--spectrum-alias-workflow-icon-size,var(--spectrum-global-dimension-size-225))*2)}.spectrum-Icon--sizeXL_368b34,.spectrum-Icon--sizeXL_368b34 img,.spectrum-Icon--sizeXL_368b34 svg{height:calc(var(--spectrum-global-dimension-size-300)*2);width:calc(var(--spectrum-global-dimension-size-300)*2)}.spectrum-Icon--sizeXXL_368b34,.spectrum-Icon--sizeXXL_368b34 img,.spectrum-Icon--sizeXXL_368b34 svg{height:calc(var(--spectrum-global-dimension-size-300)*3);width:calc(var(--spectrum-global-dimension-size-300)*3)}.spectrum--medium_368b34 .spectrum-UIIcon--large_368b34{display:none}.spectrum--medium_368b34 .spectrum-UIIcon--medium_368b34{display:inline}.spectrum--large_368b34 .spectrum-UIIcon--medium_368b34{display:none}.spectrum--large_368b34 .spectrum-UIIcon--large_368b34{display:inline}.spectrum--large_368b34{--ui-icon-large-display:block;--ui-icon-medium-display:none}.spectrum--medium_368b34{--ui-icon-medium-display:block;--ui-icon-large-display:none}.spectrum-UIIcon--large_368b34{display:var(--ui-icon-large-display)}.spectrum-UIIcon--medium_368b34{display:var(--ui-icon-medium-display)}.spectrum-UIIcon-AlertMedium_368b34{width:var(--spectrum-icon-alert-medium-width,var(--spectrum-global-dimension-size-225));height:var(--spectrum-icon-alert-medium-height,var(--spectrum-global-dimension-size-225))}.spectrum-UIIcon-AlertSmall_368b34{width:var(--spectrum-icon-alert-small-width,var(--spectrum-global-dimension-size-175));height:var(--spectrum-icon-alert-small-height,var(--spectrum-global-dimension-size-175))}.spectrum-UIIcon-ArrowDownSmall_368b34{width:var(--spectrum-icon-arrow-down-small-width,var(--spectrum-global-dimension-size-100));height:var(--spectrum-icon-arrow-down-small-height)}.spectrum-UIIcon-ArrowLeftMedium_368b34{width:var(--spectrum-icon-arrow-left-medium-width,var(--spectrum-global-dimension-size-175));height:var(--spectrum-icon-arrow-left-medium-height)}.spectrum-UIIcon-Asterisk_368b34{width:var(--spectrum-fieldlabel-asterisk-size,var(--spectrum-global-dimension-size-100));height:var(--spectrum-fieldlabel-asterisk-size,var(--spectrum-global-dimension-size-100))}.spectrum-UIIcon-CheckmarkMedium_368b34{width:var(--spectrum-icon-checkmark-medium-width);height:var(--spectrum-icon-checkmark-medium-height)}.spectrum-UIIcon-CheckmarkSmall_368b34{width:var(--spectrum-icon-checkmark-small-width);height:var(--spectrum-icon-checkmark-small-height)}.spectrum-UIIcon-ChevronDownMedium_368b34{width:var(--spectrum-icon-chevron-down-medium-width);height:var(--spectrum-icon-chevron-down-medium-height,var(--spectrum-global-dimension-size-75))}.spectrum-UIIcon-ChevronDownSmall_368b34{width:var(--spectrum-icon-chevron-down-small-width,var(--spectrum-global-dimension-size-100));height:var(--spectrum-icon-chevron-down-small-height,var(--spectrum-global-dimension-size-75))}.spectrum-UIIcon-ChevronLeftLarge_368b34{width:var(--spectrum-icon-chevron-left-large-width);height:var(--spectrum-icon-chevron-left-large-height,var(--spectrum-global-dimension-size-200))}.spectrum-UIIcon-ChevronLeftMedium_368b34{width:var(--spectrum-icon-chevron-left-medium-width,var(--spectrum-global-dimension-size-75));height:var(--spectrum-icon-chevron-left-medium-height)}.spectrum-UIIcon-ChevronRightLarge_368b34{width:var(--spectrum-icon-chevron-right-large-width);height:var(--spectrum-icon-chevron-right-large-height,var(--spectrum-global-dimension-size-200))}.spectrum-UIIcon-ChevronRightMedium_368b34{width:var(--spectrum-icon-chevron-right-medium-width,var(--spectrum-global-dimension-size-75));height:var(--spectrum-icon-chevron-right-medium-height)}.spectrum-UIIcon-ChevronRightSmall_368b34{width:var(--spectrum-icon-chevron-right-small-width,var(--spectrum-global-dimension-size-75));height:var(--spectrum-icon-chevron-right-small-height,var(--spectrum-global-dimension-size-100))}.spectrum-UIIcon-ChevronUpSmall_368b34{width:var(--spectrum-icon-chevron-up-small-width,var(--spectrum-global-dimension-size-100));height:var(--spectrum-icon-chevron-up-small-height,var(--spectrum-global-dimension-size-75))}.spectrum-UIIcon-CornerTriangle_368b34{width:var(--spectrum-icon-cornertriangle-width,var(--spectrum-global-dimension-size-65));height:var(--spectrum-icon-cornertriangle-height,var(--spectrum-global-dimension-size-65))}.spectrum-UIIcon-CrossLarge_368b34{width:var(--spectrum-icon-cross-large-width);height:var(--spectrum-icon-cross-large-height)}.spectrum-UIIcon-CrossMedium_368b34{width:var(--spectrum-icon-cross-medium-width,var(--spectrum-global-dimension-size-100));height:var(--spectrum-icon-cross-medium-height,var(--spectrum-global-dimension-size-100))}.spectrum-UIIcon-CrossSmall_368b34{width:var(--spectrum-icon-cross-small-width,var(--spectrum-global-dimension-size-100));height:var(--spectrum-icon-cross-small-height,var(--spectrum-global-dimension-size-100))}.spectrum-UIIcon-DashSmall_368b34{width:var(--spectrum-icon-dash-small-width);height:var(--spectrum-icon-dash-small-height)}.spectrum-UIIcon-DoubleGripper_368b34{width:var(--spectrum-icon-doublegripper-width,var(--spectrum-global-dimension-size-200));height:var(--spectrum-icon-doublegripper-height,var(--spectrum-global-dimension-size-50))}.spectrum-UIIcon-FolderBreadcrumb_368b34{width:var(--spectrum-icon-folderbreadcrumb-width,var(--spectrum-global-dimension-size-225));height:var(--spectrum-icon-folderbreadcrumb-height,var(--spectrum-global-dimension-size-225))}.spectrum-UIIcon-HelpMedium_368b34{width:var(--spectrum-icon-info-medium-width,var(--spectrum-global-dimension-size-225));height:var(--spectrum-icon-info-medium-height,var(--spectrum-global-dimension-size-225))}.spectrum-UIIcon-HelpSmall_368b34{width:var(--spectrum-icon-info-small-width,var(--spectrum-global-dimension-size-175));height:var(--spectrum-icon-info-small-height,var(--spectrum-global-dimension-size-175))}.spectrum-UIIcon-InfoMedium_368b34{width:var(--spectrum-icon-info-medium-width,var(--spectrum-global-dimension-size-225));height:var(--spectrum-icon-info-medium-height,var(--spectrum-global-dimension-size-225))}.spectrum-UIIcon-InfoSmall_368b34{width:var(--spectrum-icon-info-small-width,var(--spectrum-global-dimension-size-175));height:var(--spectrum-icon-info-small-height,var(--spectrum-global-dimension-size-175))}.spectrum-UIIcon-Magnifier_368b34{width:var(--spectrum-icon-magnifier-width,var(--spectrum-global-dimension-size-200));height:var(--spectrum-icon-magnifier-height,var(--spectrum-global-dimension-size-200))}.spectrum-UIIcon-SkipLeft_368b34{width:var(--spectrum-icon-skip-left-width);height:var(--spectrum-icon-skip-left-height)}.spectrum-UIIcon-SkipRight_368b34{width:var(--spectrum-icon-skip-right-width);height:var(--spectrum-icon-skip-right-height)}.spectrum-UIIcon-Star_368b34{width:var(--spectrum-icon-star-width,var(--spectrum-global-dimension-size-225));height:var(--spectrum-icon-star-height,var(--spectrum-global-dimension-size-225))}.spectrum-UIIcon-StarOutline_368b34{width:var(--spectrum-icon-star-outline-width,var(--spectrum-global-dimension-size-225));height:var(--spectrum-icon-star-outline-height,var(--spectrum-global-dimension-size-225))}.spectrum-UIIcon-SuccessMedium_368b34{width:var(--spectrum-icon-success-medium-width,var(--spectrum-global-dimension-size-225));height:var(--spectrum-icon-success-medium-height,var(--spectrum-global-dimension-size-225))}.spectrum-UIIcon-SuccessSmall_368b34{width:var(--spectrum-icon-success-small-width,var(--spectrum-global-dimension-size-175));height:var(--spectrum-icon-success-small-height,var(--spectrum-global-dimension-size-175))}.spectrum-UIIcon-TripleGripper_368b34{width:var(--spectrum-icon-triplegripper-width);height:var(--spectrum-icon-triplegripper-height,var(--spectrum-global-dimension-size-85))}
|
package/dist/main.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
require("./main.css");
|
|
2
|
-
var $
|
|
3
|
-
var $
|
|
4
|
-
var $
|
|
5
|
-
var $
|
|
2
|
+
var $lbxS3$reactspectrumutils = require("@react-spectrum/utils");
|
|
3
|
+
var $lbxS3$reactariautils = require("@react-aria/utils");
|
|
4
|
+
var $lbxS3$react = require("react");
|
|
5
|
+
var $lbxS3$reactspectrumprovider = require("@react-spectrum/provider");
|
|
6
6
|
|
|
7
7
|
function $parcel$exportWildcard(dest, source) {
|
|
8
8
|
Object.keys(source).forEach(function(key) {
|
|
@@ -26,223 +26,223 @@ function $parcel$interopDefault(a) {
|
|
|
26
26
|
function $parcel$export(e, n, v, s) {
|
|
27
27
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
28
28
|
}
|
|
29
|
-
var $
|
|
30
|
-
|
|
31
|
-
$parcel$export($
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
var $
|
|
36
|
-
|
|
37
|
-
$parcel$export($
|
|
38
|
-
$parcel$export($
|
|
39
|
-
$parcel$export($
|
|
40
|
-
$parcel$export($
|
|
41
|
-
$parcel$export($
|
|
42
|
-
$parcel$export($
|
|
43
|
-
$parcel$export($
|
|
44
|
-
$parcel$export($
|
|
45
|
-
$parcel$export($
|
|
46
|
-
$parcel$export($
|
|
47
|
-
$parcel$export($
|
|
48
|
-
$parcel$export($
|
|
49
|
-
$parcel$export($
|
|
50
|
-
$parcel$export($
|
|
51
|
-
$parcel$export($
|
|
52
|
-
$parcel$export($
|
|
53
|
-
$parcel$export($
|
|
54
|
-
$parcel$export($
|
|
55
|
-
$parcel$export($
|
|
56
|
-
$parcel$export($
|
|
57
|
-
$parcel$export($
|
|
58
|
-
$parcel$export($
|
|
59
|
-
$parcel$export($
|
|
60
|
-
$parcel$export($
|
|
61
|
-
$parcel$export($
|
|
62
|
-
$parcel$export($
|
|
63
|
-
$parcel$export($
|
|
64
|
-
$parcel$export($
|
|
65
|
-
$parcel$export($
|
|
66
|
-
$parcel$export($
|
|
67
|
-
$parcel$export($
|
|
68
|
-
$parcel$export($
|
|
69
|
-
$parcel$export($
|
|
70
|
-
$parcel$export($
|
|
71
|
-
$parcel$export($
|
|
72
|
-
$parcel$export($
|
|
73
|
-
$parcel$export($
|
|
74
|
-
$parcel$export($
|
|
75
|
-
$parcel$export($
|
|
76
|
-
$parcel$export($
|
|
77
|
-
$parcel$export($
|
|
78
|
-
$parcel$export($
|
|
79
|
-
$parcel$export($
|
|
80
|
-
$parcel$export($
|
|
81
|
-
$parcel$export($
|
|
82
|
-
$parcel$export($
|
|
83
|
-
$parcel$export($
|
|
84
|
-
var $
|
|
85
|
-
var $
|
|
86
|
-
var $
|
|
87
|
-
var $
|
|
88
|
-
var $
|
|
89
|
-
var $
|
|
90
|
-
var $
|
|
91
|
-
var $
|
|
92
|
-
var $
|
|
93
|
-
var $
|
|
94
|
-
var $
|
|
95
|
-
var $
|
|
96
|
-
var $
|
|
97
|
-
var $
|
|
98
|
-
var $
|
|
99
|
-
var $
|
|
100
|
-
var $
|
|
101
|
-
var $
|
|
102
|
-
var $
|
|
103
|
-
var $
|
|
104
|
-
var $
|
|
105
|
-
var $
|
|
106
|
-
var $
|
|
107
|
-
var $
|
|
108
|
-
var $
|
|
109
|
-
var $
|
|
110
|
-
var $
|
|
111
|
-
var $
|
|
112
|
-
var $
|
|
113
|
-
var $
|
|
114
|
-
var $
|
|
115
|
-
var $
|
|
116
|
-
var $
|
|
117
|
-
var $
|
|
118
|
-
var $
|
|
119
|
-
var $
|
|
120
|
-
var $
|
|
121
|
-
var $
|
|
122
|
-
var $
|
|
123
|
-
var $
|
|
124
|
-
var $
|
|
125
|
-
var $
|
|
126
|
-
var $
|
|
127
|
-
var $
|
|
128
|
-
var $
|
|
129
|
-
var $
|
|
130
|
-
var $
|
|
131
|
-
$
|
|
132
|
-
$
|
|
133
|
-
$
|
|
134
|
-
$
|
|
135
|
-
$
|
|
136
|
-
$
|
|
137
|
-
$
|
|
138
|
-
$
|
|
139
|
-
$
|
|
140
|
-
$
|
|
141
|
-
$
|
|
142
|
-
$
|
|
143
|
-
$
|
|
144
|
-
$
|
|
145
|
-
$
|
|
146
|
-
$
|
|
147
|
-
$
|
|
148
|
-
$
|
|
149
|
-
$
|
|
150
|
-
$
|
|
151
|
-
$
|
|
152
|
-
$
|
|
153
|
-
$
|
|
154
|
-
$
|
|
155
|
-
$
|
|
156
|
-
$
|
|
157
|
-
$
|
|
158
|
-
$
|
|
159
|
-
$
|
|
160
|
-
$
|
|
161
|
-
$
|
|
162
|
-
$
|
|
163
|
-
$
|
|
164
|
-
$
|
|
165
|
-
$
|
|
166
|
-
$
|
|
167
|
-
$
|
|
168
|
-
$
|
|
169
|
-
$
|
|
170
|
-
$
|
|
171
|
-
$
|
|
172
|
-
$
|
|
173
|
-
$
|
|
174
|
-
$
|
|
175
|
-
$
|
|
176
|
-
$
|
|
177
|
-
$
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
function $
|
|
29
|
+
var $90f0aba8589f9ebe$exports = {};
|
|
30
|
+
|
|
31
|
+
$parcel$export($90f0aba8589f9ebe$exports, "Icon", () => $90f0aba8589f9ebe$export$f04a61298a47a40f);
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
var $17e9b7ce1e5ba82e$exports = {};
|
|
36
|
+
|
|
37
|
+
$parcel$export($17e9b7ce1e5ba82e$exports, "spectrum-Icon", () => $17e9b7ce1e5ba82e$export$d374b04f30360026, (v) => $17e9b7ce1e5ba82e$export$d374b04f30360026 = v);
|
|
38
|
+
$parcel$export($17e9b7ce1e5ba82e$exports, "spectrum-UIIcon", () => $17e9b7ce1e5ba82e$export$c7db7fdc5aac13aa, (v) => $17e9b7ce1e5ba82e$export$c7db7fdc5aac13aa = v);
|
|
39
|
+
$parcel$export($17e9b7ce1e5ba82e$exports, "spectrum-Icon--sizeXXS", () => $17e9b7ce1e5ba82e$export$cab8448604b31f43, (v) => $17e9b7ce1e5ba82e$export$cab8448604b31f43 = v);
|
|
40
|
+
$parcel$export($17e9b7ce1e5ba82e$exports, "spectrum-Icon--sizeXS", () => $17e9b7ce1e5ba82e$export$557c0af6873b4222, (v) => $17e9b7ce1e5ba82e$export$557c0af6873b4222 = v);
|
|
41
|
+
$parcel$export($17e9b7ce1e5ba82e$exports, "spectrum-Icon--sizeS", () => $17e9b7ce1e5ba82e$export$34ce05647f0c65e, (v) => $17e9b7ce1e5ba82e$export$34ce05647f0c65e = v);
|
|
42
|
+
$parcel$export($17e9b7ce1e5ba82e$exports, "spectrum-Icon--sizeM", () => $17e9b7ce1e5ba82e$export$8f1693ac47916bbf, (v) => $17e9b7ce1e5ba82e$export$8f1693ac47916bbf = v);
|
|
43
|
+
$parcel$export($17e9b7ce1e5ba82e$exports, "spectrum-Icon--sizeL", () => $17e9b7ce1e5ba82e$export$8d23c37ef2a4f13e, (v) => $17e9b7ce1e5ba82e$export$8d23c37ef2a4f13e = v);
|
|
44
|
+
$parcel$export($17e9b7ce1e5ba82e$exports, "spectrum-Icon--sizeXL", () => $17e9b7ce1e5ba82e$export$c6e70a22e841bc1b, (v) => $17e9b7ce1e5ba82e$export$c6e70a22e841bc1b = v);
|
|
45
|
+
$parcel$export($17e9b7ce1e5ba82e$exports, "spectrum-Icon--sizeXXL", () => $17e9b7ce1e5ba82e$export$b37777493a27e620, (v) => $17e9b7ce1e5ba82e$export$b37777493a27e620 = v);
|
|
46
|
+
$parcel$export($17e9b7ce1e5ba82e$exports, "spectrum--medium", () => $17e9b7ce1e5ba82e$export$4c0c83b3f4303ef8, (v) => $17e9b7ce1e5ba82e$export$4c0c83b3f4303ef8 = v);
|
|
47
|
+
$parcel$export($17e9b7ce1e5ba82e$exports, "spectrum-UIIcon--large", () => $17e9b7ce1e5ba82e$export$2265a487ad399d8b, (v) => $17e9b7ce1e5ba82e$export$2265a487ad399d8b = v);
|
|
48
|
+
$parcel$export($17e9b7ce1e5ba82e$exports, "spectrum-UIIcon--medium", () => $17e9b7ce1e5ba82e$export$a6044013cf72ddc9, (v) => $17e9b7ce1e5ba82e$export$a6044013cf72ddc9 = v);
|
|
49
|
+
$parcel$export($17e9b7ce1e5ba82e$exports, "spectrum--large", () => $17e9b7ce1e5ba82e$export$a88a8dbe29386d31, (v) => $17e9b7ce1e5ba82e$export$a88a8dbe29386d31 = v);
|
|
50
|
+
$parcel$export($17e9b7ce1e5ba82e$exports, "spectrum-UIIcon-AlertMedium", () => $17e9b7ce1e5ba82e$export$83be8302c01b6478, (v) => $17e9b7ce1e5ba82e$export$83be8302c01b6478 = v);
|
|
51
|
+
$parcel$export($17e9b7ce1e5ba82e$exports, "spectrum-UIIcon-AlertSmall", () => $17e9b7ce1e5ba82e$export$57b49d6ee2e9f187, (v) => $17e9b7ce1e5ba82e$export$57b49d6ee2e9f187 = v);
|
|
52
|
+
$parcel$export($17e9b7ce1e5ba82e$exports, "spectrum-UIIcon-ArrowDownSmall", () => $17e9b7ce1e5ba82e$export$81968d05e3681b3f, (v) => $17e9b7ce1e5ba82e$export$81968d05e3681b3f = v);
|
|
53
|
+
$parcel$export($17e9b7ce1e5ba82e$exports, "spectrum-UIIcon-ArrowLeftMedium", () => $17e9b7ce1e5ba82e$export$c0d655f335b5bc31, (v) => $17e9b7ce1e5ba82e$export$c0d655f335b5bc31 = v);
|
|
54
|
+
$parcel$export($17e9b7ce1e5ba82e$exports, "spectrum-UIIcon-Asterisk", () => $17e9b7ce1e5ba82e$export$cca4342eca45562, (v) => $17e9b7ce1e5ba82e$export$cca4342eca45562 = v);
|
|
55
|
+
$parcel$export($17e9b7ce1e5ba82e$exports, "spectrum-UIIcon-CheckmarkMedium", () => $17e9b7ce1e5ba82e$export$edc4a2e9af971b26, (v) => $17e9b7ce1e5ba82e$export$edc4a2e9af971b26 = v);
|
|
56
|
+
$parcel$export($17e9b7ce1e5ba82e$exports, "spectrum-UIIcon-CheckmarkSmall", () => $17e9b7ce1e5ba82e$export$9e665cb12e71e037, (v) => $17e9b7ce1e5ba82e$export$9e665cb12e71e037 = v);
|
|
57
|
+
$parcel$export($17e9b7ce1e5ba82e$exports, "spectrum-UIIcon-ChevronDownMedium", () => $17e9b7ce1e5ba82e$export$2f91b7a7627906d5, (v) => $17e9b7ce1e5ba82e$export$2f91b7a7627906d5 = v);
|
|
58
|
+
$parcel$export($17e9b7ce1e5ba82e$exports, "spectrum-UIIcon-ChevronDownSmall", () => $17e9b7ce1e5ba82e$export$56efb4ec9eb35c07, (v) => $17e9b7ce1e5ba82e$export$56efb4ec9eb35c07 = v);
|
|
59
|
+
$parcel$export($17e9b7ce1e5ba82e$exports, "spectrum-UIIcon-ChevronLeftLarge", () => $17e9b7ce1e5ba82e$export$5861dfe1d581a528, (v) => $17e9b7ce1e5ba82e$export$5861dfe1d581a528 = v);
|
|
60
|
+
$parcel$export($17e9b7ce1e5ba82e$exports, "spectrum-UIIcon-ChevronLeftMedium", () => $17e9b7ce1e5ba82e$export$595a122b60890c78, (v) => $17e9b7ce1e5ba82e$export$595a122b60890c78 = v);
|
|
61
|
+
$parcel$export($17e9b7ce1e5ba82e$exports, "spectrum-UIIcon-ChevronRightLarge", () => $17e9b7ce1e5ba82e$export$596373794435f8bc, (v) => $17e9b7ce1e5ba82e$export$596373794435f8bc = v);
|
|
62
|
+
$parcel$export($17e9b7ce1e5ba82e$exports, "spectrum-UIIcon-ChevronRightMedium", () => $17e9b7ce1e5ba82e$export$32b379a02cafbfb3, (v) => $17e9b7ce1e5ba82e$export$32b379a02cafbfb3 = v);
|
|
63
|
+
$parcel$export($17e9b7ce1e5ba82e$exports, "spectrum-UIIcon-ChevronRightSmall", () => $17e9b7ce1e5ba82e$export$ee5de2c4d7c8faa4, (v) => $17e9b7ce1e5ba82e$export$ee5de2c4d7c8faa4 = v);
|
|
64
|
+
$parcel$export($17e9b7ce1e5ba82e$exports, "spectrum-UIIcon-ChevronUpSmall", () => $17e9b7ce1e5ba82e$export$c1cbae72fd236fd9, (v) => $17e9b7ce1e5ba82e$export$c1cbae72fd236fd9 = v);
|
|
65
|
+
$parcel$export($17e9b7ce1e5ba82e$exports, "spectrum-UIIcon-CornerTriangle", () => $17e9b7ce1e5ba82e$export$636d8cde4f6b7e6, (v) => $17e9b7ce1e5ba82e$export$636d8cde4f6b7e6 = v);
|
|
66
|
+
$parcel$export($17e9b7ce1e5ba82e$exports, "spectrum-UIIcon-CrossLarge", () => $17e9b7ce1e5ba82e$export$1f0ad4082256e3df, (v) => $17e9b7ce1e5ba82e$export$1f0ad4082256e3df = v);
|
|
67
|
+
$parcel$export($17e9b7ce1e5ba82e$exports, "spectrum-UIIcon-CrossMedium", () => $17e9b7ce1e5ba82e$export$1e0848411e254295, (v) => $17e9b7ce1e5ba82e$export$1e0848411e254295 = v);
|
|
68
|
+
$parcel$export($17e9b7ce1e5ba82e$exports, "spectrum-UIIcon-CrossSmall", () => $17e9b7ce1e5ba82e$export$1c1bddac0ae5fbe5, (v) => $17e9b7ce1e5ba82e$export$1c1bddac0ae5fbe5 = v);
|
|
69
|
+
$parcel$export($17e9b7ce1e5ba82e$exports, "spectrum-UIIcon-DashSmall", () => $17e9b7ce1e5ba82e$export$98de2b9917cd3b6a, (v) => $17e9b7ce1e5ba82e$export$98de2b9917cd3b6a = v);
|
|
70
|
+
$parcel$export($17e9b7ce1e5ba82e$exports, "spectrum-UIIcon-DoubleGripper", () => $17e9b7ce1e5ba82e$export$3c956876cb11c1e1, (v) => $17e9b7ce1e5ba82e$export$3c956876cb11c1e1 = v);
|
|
71
|
+
$parcel$export($17e9b7ce1e5ba82e$exports, "spectrum-UIIcon-FolderBreadcrumb", () => $17e9b7ce1e5ba82e$export$55cf2795737352fc, (v) => $17e9b7ce1e5ba82e$export$55cf2795737352fc = v);
|
|
72
|
+
$parcel$export($17e9b7ce1e5ba82e$exports, "spectrum-UIIcon-HelpMedium", () => $17e9b7ce1e5ba82e$export$d5d1e3e09ea6cd5, (v) => $17e9b7ce1e5ba82e$export$d5d1e3e09ea6cd5 = v);
|
|
73
|
+
$parcel$export($17e9b7ce1e5ba82e$exports, "spectrum-UIIcon-HelpSmall", () => $17e9b7ce1e5ba82e$export$f51b22382127207d, (v) => $17e9b7ce1e5ba82e$export$f51b22382127207d = v);
|
|
74
|
+
$parcel$export($17e9b7ce1e5ba82e$exports, "spectrum-UIIcon-InfoMedium", () => $17e9b7ce1e5ba82e$export$825a6c2340d3b7e5, (v) => $17e9b7ce1e5ba82e$export$825a6c2340d3b7e5 = v);
|
|
75
|
+
$parcel$export($17e9b7ce1e5ba82e$exports, "spectrum-UIIcon-InfoSmall", () => $17e9b7ce1e5ba82e$export$4828f4a6bfd26c04, (v) => $17e9b7ce1e5ba82e$export$4828f4a6bfd26c04 = v);
|
|
76
|
+
$parcel$export($17e9b7ce1e5ba82e$exports, "spectrum-UIIcon-Magnifier", () => $17e9b7ce1e5ba82e$export$a33650c9f4cc191e, (v) => $17e9b7ce1e5ba82e$export$a33650c9f4cc191e = v);
|
|
77
|
+
$parcel$export($17e9b7ce1e5ba82e$exports, "spectrum-UIIcon-SkipLeft", () => $17e9b7ce1e5ba82e$export$9eb19533e4b8cc28, (v) => $17e9b7ce1e5ba82e$export$9eb19533e4b8cc28 = v);
|
|
78
|
+
$parcel$export($17e9b7ce1e5ba82e$exports, "spectrum-UIIcon-SkipRight", () => $17e9b7ce1e5ba82e$export$67704939e41f705a, (v) => $17e9b7ce1e5ba82e$export$67704939e41f705a = v);
|
|
79
|
+
$parcel$export($17e9b7ce1e5ba82e$exports, "spectrum-UIIcon-Star", () => $17e9b7ce1e5ba82e$export$c4d219c150b98c92, (v) => $17e9b7ce1e5ba82e$export$c4d219c150b98c92 = v);
|
|
80
|
+
$parcel$export($17e9b7ce1e5ba82e$exports, "spectrum-UIIcon-StarOutline", () => $17e9b7ce1e5ba82e$export$bcda0a6a6d7202af, (v) => $17e9b7ce1e5ba82e$export$bcda0a6a6d7202af = v);
|
|
81
|
+
$parcel$export($17e9b7ce1e5ba82e$exports, "spectrum-UIIcon-SuccessMedium", () => $17e9b7ce1e5ba82e$export$d18d2d837989a797, (v) => $17e9b7ce1e5ba82e$export$d18d2d837989a797 = v);
|
|
82
|
+
$parcel$export($17e9b7ce1e5ba82e$exports, "spectrum-UIIcon-SuccessSmall", () => $17e9b7ce1e5ba82e$export$506ac7a1a72a2c65, (v) => $17e9b7ce1e5ba82e$export$506ac7a1a72a2c65 = v);
|
|
83
|
+
$parcel$export($17e9b7ce1e5ba82e$exports, "spectrum-UIIcon-TripleGripper", () => $17e9b7ce1e5ba82e$export$12b8600bcd969018, (v) => $17e9b7ce1e5ba82e$export$12b8600bcd969018 = v);
|
|
84
|
+
var $17e9b7ce1e5ba82e$export$d374b04f30360026;
|
|
85
|
+
var $17e9b7ce1e5ba82e$export$c7db7fdc5aac13aa;
|
|
86
|
+
var $17e9b7ce1e5ba82e$export$cab8448604b31f43;
|
|
87
|
+
var $17e9b7ce1e5ba82e$export$557c0af6873b4222;
|
|
88
|
+
var $17e9b7ce1e5ba82e$export$34ce05647f0c65e;
|
|
89
|
+
var $17e9b7ce1e5ba82e$export$8f1693ac47916bbf;
|
|
90
|
+
var $17e9b7ce1e5ba82e$export$8d23c37ef2a4f13e;
|
|
91
|
+
var $17e9b7ce1e5ba82e$export$c6e70a22e841bc1b;
|
|
92
|
+
var $17e9b7ce1e5ba82e$export$b37777493a27e620;
|
|
93
|
+
var $17e9b7ce1e5ba82e$export$4c0c83b3f4303ef8;
|
|
94
|
+
var $17e9b7ce1e5ba82e$export$2265a487ad399d8b;
|
|
95
|
+
var $17e9b7ce1e5ba82e$export$a6044013cf72ddc9;
|
|
96
|
+
var $17e9b7ce1e5ba82e$export$a88a8dbe29386d31;
|
|
97
|
+
var $17e9b7ce1e5ba82e$export$83be8302c01b6478;
|
|
98
|
+
var $17e9b7ce1e5ba82e$export$57b49d6ee2e9f187;
|
|
99
|
+
var $17e9b7ce1e5ba82e$export$81968d05e3681b3f;
|
|
100
|
+
var $17e9b7ce1e5ba82e$export$c0d655f335b5bc31;
|
|
101
|
+
var $17e9b7ce1e5ba82e$export$cca4342eca45562;
|
|
102
|
+
var $17e9b7ce1e5ba82e$export$edc4a2e9af971b26;
|
|
103
|
+
var $17e9b7ce1e5ba82e$export$9e665cb12e71e037;
|
|
104
|
+
var $17e9b7ce1e5ba82e$export$2f91b7a7627906d5;
|
|
105
|
+
var $17e9b7ce1e5ba82e$export$56efb4ec9eb35c07;
|
|
106
|
+
var $17e9b7ce1e5ba82e$export$5861dfe1d581a528;
|
|
107
|
+
var $17e9b7ce1e5ba82e$export$595a122b60890c78;
|
|
108
|
+
var $17e9b7ce1e5ba82e$export$596373794435f8bc;
|
|
109
|
+
var $17e9b7ce1e5ba82e$export$32b379a02cafbfb3;
|
|
110
|
+
var $17e9b7ce1e5ba82e$export$ee5de2c4d7c8faa4;
|
|
111
|
+
var $17e9b7ce1e5ba82e$export$c1cbae72fd236fd9;
|
|
112
|
+
var $17e9b7ce1e5ba82e$export$636d8cde4f6b7e6;
|
|
113
|
+
var $17e9b7ce1e5ba82e$export$1f0ad4082256e3df;
|
|
114
|
+
var $17e9b7ce1e5ba82e$export$1e0848411e254295;
|
|
115
|
+
var $17e9b7ce1e5ba82e$export$1c1bddac0ae5fbe5;
|
|
116
|
+
var $17e9b7ce1e5ba82e$export$98de2b9917cd3b6a;
|
|
117
|
+
var $17e9b7ce1e5ba82e$export$3c956876cb11c1e1;
|
|
118
|
+
var $17e9b7ce1e5ba82e$export$55cf2795737352fc;
|
|
119
|
+
var $17e9b7ce1e5ba82e$export$d5d1e3e09ea6cd5;
|
|
120
|
+
var $17e9b7ce1e5ba82e$export$f51b22382127207d;
|
|
121
|
+
var $17e9b7ce1e5ba82e$export$825a6c2340d3b7e5;
|
|
122
|
+
var $17e9b7ce1e5ba82e$export$4828f4a6bfd26c04;
|
|
123
|
+
var $17e9b7ce1e5ba82e$export$a33650c9f4cc191e;
|
|
124
|
+
var $17e9b7ce1e5ba82e$export$9eb19533e4b8cc28;
|
|
125
|
+
var $17e9b7ce1e5ba82e$export$67704939e41f705a;
|
|
126
|
+
var $17e9b7ce1e5ba82e$export$c4d219c150b98c92;
|
|
127
|
+
var $17e9b7ce1e5ba82e$export$bcda0a6a6d7202af;
|
|
128
|
+
var $17e9b7ce1e5ba82e$export$d18d2d837989a797;
|
|
129
|
+
var $17e9b7ce1e5ba82e$export$506ac7a1a72a2c65;
|
|
130
|
+
var $17e9b7ce1e5ba82e$export$12b8600bcd969018;
|
|
131
|
+
$17e9b7ce1e5ba82e$export$d374b04f30360026 = "spectrum-Icon_368b34";
|
|
132
|
+
$17e9b7ce1e5ba82e$export$c7db7fdc5aac13aa = "spectrum-UIIcon_368b34";
|
|
133
|
+
$17e9b7ce1e5ba82e$export$cab8448604b31f43 = "spectrum-Icon--sizeXXS_368b34";
|
|
134
|
+
$17e9b7ce1e5ba82e$export$557c0af6873b4222 = "spectrum-Icon--sizeXS_368b34";
|
|
135
|
+
$17e9b7ce1e5ba82e$export$34ce05647f0c65e = "spectrum-Icon--sizeS_368b34";
|
|
136
|
+
$17e9b7ce1e5ba82e$export$8f1693ac47916bbf = "spectrum-Icon--sizeM_368b34";
|
|
137
|
+
$17e9b7ce1e5ba82e$export$8d23c37ef2a4f13e = "spectrum-Icon--sizeL_368b34";
|
|
138
|
+
$17e9b7ce1e5ba82e$export$c6e70a22e841bc1b = "spectrum-Icon--sizeXL_368b34";
|
|
139
|
+
$17e9b7ce1e5ba82e$export$b37777493a27e620 = "spectrum-Icon--sizeXXL_368b34";
|
|
140
|
+
$17e9b7ce1e5ba82e$export$4c0c83b3f4303ef8 = "spectrum--medium_368b34";
|
|
141
|
+
$17e9b7ce1e5ba82e$export$2265a487ad399d8b = "spectrum-UIIcon--large_368b34";
|
|
142
|
+
$17e9b7ce1e5ba82e$export$a6044013cf72ddc9 = "spectrum-UIIcon--medium_368b34";
|
|
143
|
+
$17e9b7ce1e5ba82e$export$a88a8dbe29386d31 = "spectrum--large_368b34";
|
|
144
|
+
$17e9b7ce1e5ba82e$export$83be8302c01b6478 = "spectrum-UIIcon-AlertMedium_368b34";
|
|
145
|
+
$17e9b7ce1e5ba82e$export$57b49d6ee2e9f187 = "spectrum-UIIcon-AlertSmall_368b34";
|
|
146
|
+
$17e9b7ce1e5ba82e$export$81968d05e3681b3f = "spectrum-UIIcon-ArrowDownSmall_368b34";
|
|
147
|
+
$17e9b7ce1e5ba82e$export$c0d655f335b5bc31 = "spectrum-UIIcon-ArrowLeftMedium_368b34";
|
|
148
|
+
$17e9b7ce1e5ba82e$export$cca4342eca45562 = "spectrum-UIIcon-Asterisk_368b34";
|
|
149
|
+
$17e9b7ce1e5ba82e$export$edc4a2e9af971b26 = "spectrum-UIIcon-CheckmarkMedium_368b34";
|
|
150
|
+
$17e9b7ce1e5ba82e$export$9e665cb12e71e037 = "spectrum-UIIcon-CheckmarkSmall_368b34";
|
|
151
|
+
$17e9b7ce1e5ba82e$export$2f91b7a7627906d5 = "spectrum-UIIcon-ChevronDownMedium_368b34";
|
|
152
|
+
$17e9b7ce1e5ba82e$export$56efb4ec9eb35c07 = "spectrum-UIIcon-ChevronDownSmall_368b34";
|
|
153
|
+
$17e9b7ce1e5ba82e$export$5861dfe1d581a528 = "spectrum-UIIcon-ChevronLeftLarge_368b34";
|
|
154
|
+
$17e9b7ce1e5ba82e$export$595a122b60890c78 = "spectrum-UIIcon-ChevronLeftMedium_368b34";
|
|
155
|
+
$17e9b7ce1e5ba82e$export$596373794435f8bc = "spectrum-UIIcon-ChevronRightLarge_368b34";
|
|
156
|
+
$17e9b7ce1e5ba82e$export$32b379a02cafbfb3 = "spectrum-UIIcon-ChevronRightMedium_368b34";
|
|
157
|
+
$17e9b7ce1e5ba82e$export$ee5de2c4d7c8faa4 = "spectrum-UIIcon-ChevronRightSmall_368b34";
|
|
158
|
+
$17e9b7ce1e5ba82e$export$c1cbae72fd236fd9 = "spectrum-UIIcon-ChevronUpSmall_368b34";
|
|
159
|
+
$17e9b7ce1e5ba82e$export$636d8cde4f6b7e6 = "spectrum-UIIcon-CornerTriangle_368b34";
|
|
160
|
+
$17e9b7ce1e5ba82e$export$1f0ad4082256e3df = "spectrum-UIIcon-CrossLarge_368b34";
|
|
161
|
+
$17e9b7ce1e5ba82e$export$1e0848411e254295 = "spectrum-UIIcon-CrossMedium_368b34";
|
|
162
|
+
$17e9b7ce1e5ba82e$export$1c1bddac0ae5fbe5 = "spectrum-UIIcon-CrossSmall_368b34";
|
|
163
|
+
$17e9b7ce1e5ba82e$export$98de2b9917cd3b6a = "spectrum-UIIcon-DashSmall_368b34";
|
|
164
|
+
$17e9b7ce1e5ba82e$export$3c956876cb11c1e1 = "spectrum-UIIcon-DoubleGripper_368b34";
|
|
165
|
+
$17e9b7ce1e5ba82e$export$55cf2795737352fc = "spectrum-UIIcon-FolderBreadcrumb_368b34";
|
|
166
|
+
$17e9b7ce1e5ba82e$export$d5d1e3e09ea6cd5 = "spectrum-UIIcon-HelpMedium_368b34";
|
|
167
|
+
$17e9b7ce1e5ba82e$export$f51b22382127207d = "spectrum-UIIcon-HelpSmall_368b34";
|
|
168
|
+
$17e9b7ce1e5ba82e$export$825a6c2340d3b7e5 = "spectrum-UIIcon-InfoMedium_368b34";
|
|
169
|
+
$17e9b7ce1e5ba82e$export$4828f4a6bfd26c04 = "spectrum-UIIcon-InfoSmall_368b34";
|
|
170
|
+
$17e9b7ce1e5ba82e$export$a33650c9f4cc191e = "spectrum-UIIcon-Magnifier_368b34";
|
|
171
|
+
$17e9b7ce1e5ba82e$export$9eb19533e4b8cc28 = "spectrum-UIIcon-SkipLeft_368b34";
|
|
172
|
+
$17e9b7ce1e5ba82e$export$67704939e41f705a = "spectrum-UIIcon-SkipRight_368b34";
|
|
173
|
+
$17e9b7ce1e5ba82e$export$c4d219c150b98c92 = "spectrum-UIIcon-Star_368b34";
|
|
174
|
+
$17e9b7ce1e5ba82e$export$bcda0a6a6d7202af = "spectrum-UIIcon-StarOutline_368b34";
|
|
175
|
+
$17e9b7ce1e5ba82e$export$d18d2d837989a797 = "spectrum-UIIcon-SuccessMedium_368b34";
|
|
176
|
+
$17e9b7ce1e5ba82e$export$506ac7a1a72a2c65 = "spectrum-UIIcon-SuccessSmall_368b34";
|
|
177
|
+
$17e9b7ce1e5ba82e$export$12b8600bcd969018 = "spectrum-UIIcon-TripleGripper_368b34";
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
function $90f0aba8589f9ebe$var$iconColorValue(value) {
|
|
182
182
|
return `var(--spectrum-semantic-${value}-color-icon)`;
|
|
183
183
|
}
|
|
184
|
-
const $
|
|
185
|
-
...$
|
|
184
|
+
const $90f0aba8589f9ebe$var$iconStyleProps = {
|
|
185
|
+
...$lbxS3$reactspectrumutils.baseStyleProps,
|
|
186
186
|
color: [
|
|
187
187
|
'color',
|
|
188
|
-
$
|
|
188
|
+
$90f0aba8589f9ebe$var$iconColorValue
|
|
189
189
|
]
|
|
190
190
|
};
|
|
191
|
-
function $
|
|
192
|
-
props = $
|
|
191
|
+
function $90f0aba8589f9ebe$export$f04a61298a47a40f(props) {
|
|
192
|
+
props = $lbxS3$reactspectrumutils.useSlotProps(props, 'icon');
|
|
193
193
|
let { children: children , size: size , 'aria-label': ariaLabel , 'aria-hidden': ariaHidden , ...otherProps } = props;
|
|
194
|
-
let { styleProps: styleProps } = $
|
|
195
|
-
let provider = $
|
|
194
|
+
let { styleProps: styleProps } = $lbxS3$reactspectrumutils.useStyleProps(otherProps, $90f0aba8589f9ebe$var$iconStyleProps);
|
|
195
|
+
let provider = $lbxS3$reactspectrumprovider.useProvider();
|
|
196
196
|
let scale = 'M';
|
|
197
197
|
if (provider !== null) scale = provider.scale === 'large' ? 'L' : 'M';
|
|
198
198
|
if (!ariaHidden) ariaHidden = undefined;
|
|
199
199
|
// Use user specified size, falling back to provider scale if size is undef
|
|
200
200
|
let iconSize = size ? size : scale;
|
|
201
|
-
return(/*#__PURE__*/ ($parcel$interopDefault($
|
|
202
|
-
...$
|
|
201
|
+
return(/*#__PURE__*/ ($parcel$interopDefault($lbxS3$react)).cloneElement(children, {
|
|
202
|
+
...$lbxS3$reactariautils.filterDOMProps(otherProps),
|
|
203
203
|
...styleProps,
|
|
204
204
|
focusable: 'false',
|
|
205
205
|
'aria-label': ariaLabel,
|
|
206
206
|
'aria-hidden': ariaLabel ? ariaHidden || undefined : true,
|
|
207
207
|
role: 'img',
|
|
208
|
-
className: $
|
|
208
|
+
className: $lbxS3$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($17e9b7ce1e5ba82e$exports)), children.props.className, 'spectrum-Icon', `spectrum-Icon--size${iconSize}`, styleProps.className)
|
|
209
209
|
}));
|
|
210
210
|
}
|
|
211
211
|
|
|
212
212
|
|
|
213
|
-
var $
|
|
213
|
+
var $9553e2b654a1e620$exports = {};
|
|
214
214
|
|
|
215
|
-
$parcel$export($
|
|
215
|
+
$parcel$export($9553e2b654a1e620$exports, "UIIcon", () => $9553e2b654a1e620$export$906cc5990ff10700);
|
|
216
216
|
|
|
217
217
|
|
|
218
218
|
|
|
219
219
|
|
|
220
220
|
|
|
221
|
-
function $
|
|
222
|
-
props = $
|
|
221
|
+
function $9553e2b654a1e620$export$906cc5990ff10700(props) {
|
|
222
|
+
props = $lbxS3$reactspectrumutils.useSlotProps(props, 'icon');
|
|
223
223
|
let { children: children , 'aria-label': ariaLabel , 'aria-hidden': ariaHidden , ...otherProps } = props;
|
|
224
|
-
let { styleProps: styleProps } = $
|
|
225
|
-
let provider = $
|
|
224
|
+
let { styleProps: styleProps } = $lbxS3$reactspectrumutils.useStyleProps(otherProps);
|
|
225
|
+
let provider = $lbxS3$reactspectrumprovider.useProvider();
|
|
226
226
|
let scale = 'M';
|
|
227
227
|
if (provider !== null) scale = provider.scale === 'large' ? 'L' : 'M';
|
|
228
228
|
if (!ariaHidden) ariaHidden = undefined;
|
|
229
|
-
return(/*#__PURE__*/ ($parcel$interopDefault($
|
|
230
|
-
...$
|
|
229
|
+
return(/*#__PURE__*/ ($parcel$interopDefault($lbxS3$react)).cloneElement(children, {
|
|
230
|
+
...$lbxS3$reactariautils.filterDOMProps(otherProps),
|
|
231
231
|
...styleProps,
|
|
232
232
|
scale: scale,
|
|
233
233
|
focusable: 'false',
|
|
234
234
|
'aria-label': ariaLabel,
|
|
235
235
|
'aria-hidden': ariaLabel ? ariaHidden || undefined : true,
|
|
236
236
|
role: 'img',
|
|
237
|
-
className: $
|
|
237
|
+
className: $lbxS3$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($17e9b7ce1e5ba82e$exports)), children.props.className, 'spectrum-Icon', {
|
|
238
238
|
[`spectrum-UIIcon-${children.type['displayName']}`]: children.type['displayName']
|
|
239
239
|
}, styleProps.className)
|
|
240
240
|
}));
|
|
241
241
|
}
|
|
242
242
|
|
|
243
243
|
|
|
244
|
-
$parcel$exportWildcard(module.exports, $
|
|
245
|
-
$parcel$exportWildcard(module.exports, $
|
|
244
|
+
$parcel$exportWildcard(module.exports, $90f0aba8589f9ebe$exports);
|
|
245
|
+
$parcel$exportWildcard(module.exports, $9553e2b654a1e620$exports);
|
|
246
246
|
|
|
247
247
|
|
|
248
248
|
//# sourceMappingURL=main.js.map
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AEAA,GAA+B;AAC/B,GAAiC;AACjC,GAAwC;AACxC,GAAuC;AACvC,GAAsC;AACtC,GAAsC;AACtC,GAAsC;AACtC,GAAuC;AACvC,GAAwC;AACxC,GAAkC;AAClC,GAAwC;AACxC,GAAyC;AACzC,GAAiC;AACjC,GAA6C;AAC7C,GAA4C;AAC5C,GAAgD;AAChD,GAAiD;AACjD,GAA0C;AAC1C,GAAiD;AACjD,GAAgD;AAChD,GAAmD;AACnD,GAAkD;AAClD,GAAkD;AAClD,GAAmD;AACnD,GAAmD;AACnD,GAAoD;AACpD,GAAmD;AACnD,GAAgD;AAChD,GAAgD;AAChD,GAA4C;AAC5C,GAA6C;AAC7C,GAA4C;AAC5C,GAA2C;AAC3C,GAA+C;AAC/C,GAAkD;AAClD,GAA4C;AAC5C,GAA2C;AAC3C,GAA4C;AAC5C,GAA2C;AAC3C,GAA2C;AAC3C,GAA0C;AAC1C,GAA2C;AAC3C,GAAsC;AACtC,GAA6C;AAC7C,GAA+C;AAC/C,GAA8C;AAC9C,GAA+C;AA9C/C,yCAA+B,GAAG,CAAuB;AACzD,yCAAiC,GAAG,CAAyB;AAC7D,yCAAwC,GAAG,CAA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AC,SAAS;IACxB,CAAC;AACH,CAAC;;;;;;;;;;;SEpEe,yCAAM,CAAC,KAAgB,EAAE,CAAC;IACxC,KAAK,GAAG,sCAAY,CAAC,KAAK,EAAE,CAAM;IAClC,GAAG,CAAC,CAAC,WACH,QAAQ,GACR,CAAY,aAAE,SAAS,GACvB,CAAa,cAAE,UAAU,MACtB,UAAU,CACf,CAAC,GAAG,KAAK;IAET,GAAG,CAAC,CAAC,aAAA,UAAU,EAAA,CAAC,GAAG,uCAAa,CAAC,UAAU;IAC3C,GAAG,CAAC,QAAQ,GAAG,wCAAW;IAC1B,GAAG,CAAC,KAAK,GAAG,CAAG;IACf,EAAE,EAAE,QAAQ,KAAK,IAAI,EACnB,KAAK,GAAG,QAAQ,CAAC,KAAK,KAAK,CAAO,SAAG,CAAG,KAAG,CAAG;IAGhD,EAAE,GAAG,UAAU,EACb,UAAU,GAAG,SAAS;IAGxB,MAAM,eAAC,sCAAK,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC;WAChC,oCAAc,CAAC,UAAU;WACzB,UAAU;eACb,KAAK;QACL,SAAS,EAAE,CAAO;QAClB,CAAY,aAAE,SAAS;QACvB,CAAa,cAAG,SAAS,GAAI,UAAU,IAAI,SAAS,GAAI,IAAI;QAC5D,IAAI,EAAE,CAAK;QACX,SAAS,EAAE,oCAAU,CACnB,gEAAM,EACN,QAAQ,CAAC,KAAK,CAAC,SAAS,EACxB,CAAe,gBACf,CAAC;cACG,gBAAgB,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAa,kBAAM,QAAQ,CAAC,IAAI,CAAC,CAAa;QAClF,CAAC,EACD,UAAU,CAAC,SAAS;IACxB,CAAC;AACH,CAAC;;","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"],"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 * from './Icon';\nexport * 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\ninterface 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\ninterface IconProps 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<IconProps, 'children'>;\n\nexport function UIIcon(props: IconProps) {\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"],"names":[],"version":3,"file":"main.js.map"}
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AEAA,GAA+B;AAC/B,GAAiC;AACjC,GAAwC;AACxC,GAAuC;AACvC,GAAsC;AACtC,GAAsC;AACtC,GAAsC;AACtC,GAAuC;AACvC,GAAwC;AACxC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CAAc,CAAC,UAAU;WACzB,UAAU;eACb,KAAK;QACL,SAAS,EAAE,CAAO;QAClB,CAAY,aAAE,SAAS;QACvB,CAAa,cAAG,SAAS,GAAI,UAAU,IAAI,SAAS,GAAI,IAAI;QAC5D,IAAI,EAAE,CAAK;QACX,SAAS,EAAE,oCAAU,CACnB,gEAAM,EACN,QAAQ,CAAC,KAAK,CAAC,SAAS,EACxB,CAAe,gBACf,CAAC;cACG,gBAAgB,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAa,kBAAM,QAAQ,CAAC,IAAI,CAAC,CAAa;QAClF,CAAC,EACD,UAAU,CAAC,SAAS;IACxB,CAAC;AACH,CAAC;;","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"],"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 * from './Icon';\nexport * 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\ninterface 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\ninterface IconProps 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<IconProps, 'children'>;\n\nexport function UIIcon(props: IconProps) {\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"],"names":[],"version":3,"file":"main.js.map"}
|
package/dist/module.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./main.css";
|
|
2
|
-
import {baseStyleProps as $
|
|
3
|
-
import {filterDOMProps as $
|
|
4
|
-
import $
|
|
5
|
-
import {useProvider as $
|
|
2
|
+
import {baseStyleProps as $g2IY6$baseStyleProps, useSlotProps as $g2IY6$useSlotProps, useStyleProps as $g2IY6$useStyleProps, classNames as $g2IY6$classNames} from "@react-spectrum/utils";
|
|
3
|
+
import {filterDOMProps as $g2IY6$filterDOMProps} from "@react-aria/utils";
|
|
4
|
+
import $g2IY6$react from "react";
|
|
5
|
+
import {useProvider as $g2IY6$useProvider} from "@react-spectrum/provider";
|
|
6
6
|
|
|
7
7
|
function $parcel$interopDefault(a) {
|
|
8
8
|
return a && a.__esModule ? a.default : a;
|
|
@@ -10,215 +10,215 @@ function $parcel$interopDefault(a) {
|
|
|
10
10
|
function $parcel$export(e, n, v, s) {
|
|
11
11
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
12
12
|
}
|
|
13
|
-
var $
|
|
14
|
-
|
|
15
|
-
$parcel$export($
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
var $
|
|
20
|
-
|
|
21
|
-
$parcel$export($
|
|
22
|
-
$parcel$export($
|
|
23
|
-
$parcel$export($
|
|
24
|
-
$parcel$export($
|
|
25
|
-
$parcel$export($
|
|
26
|
-
$parcel$export($
|
|
27
|
-
$parcel$export($
|
|
28
|
-
$parcel$export($
|
|
29
|
-
$parcel$export($
|
|
30
|
-
$parcel$export($
|
|
31
|
-
$parcel$export($
|
|
32
|
-
$parcel$export($
|
|
33
|
-
$parcel$export($
|
|
34
|
-
$parcel$export($
|
|
35
|
-
$parcel$export($
|
|
36
|
-
$parcel$export($
|
|
37
|
-
$parcel$export($
|
|
38
|
-
$parcel$export($
|
|
39
|
-
$parcel$export($
|
|
40
|
-
$parcel$export($
|
|
41
|
-
$parcel$export($
|
|
42
|
-
$parcel$export($
|
|
43
|
-
$parcel$export($
|
|
44
|
-
$parcel$export($
|
|
45
|
-
$parcel$export($
|
|
46
|
-
$parcel$export($
|
|
47
|
-
$parcel$export($
|
|
48
|
-
$parcel$export($
|
|
49
|
-
$parcel$export($
|
|
50
|
-
$parcel$export($
|
|
51
|
-
$parcel$export($
|
|
52
|
-
$parcel$export($
|
|
53
|
-
$parcel$export($
|
|
54
|
-
$parcel$export($
|
|
55
|
-
$parcel$export($
|
|
56
|
-
$parcel$export($
|
|
57
|
-
$parcel$export($
|
|
58
|
-
$parcel$export($
|
|
59
|
-
$parcel$export($
|
|
60
|
-
$parcel$export($
|
|
61
|
-
$parcel$export($
|
|
62
|
-
$parcel$export($
|
|
63
|
-
$parcel$export($
|
|
64
|
-
$parcel$export($
|
|
65
|
-
$parcel$export($
|
|
66
|
-
$parcel$export($
|
|
67
|
-
$parcel$export($
|
|
68
|
-
var $
|
|
69
|
-
var $
|
|
70
|
-
var $
|
|
71
|
-
var $
|
|
72
|
-
var $
|
|
73
|
-
var $
|
|
74
|
-
var $
|
|
75
|
-
var $
|
|
76
|
-
var $
|
|
77
|
-
var $
|
|
78
|
-
var $
|
|
79
|
-
var $
|
|
80
|
-
var $
|
|
81
|
-
var $
|
|
82
|
-
var $
|
|
83
|
-
var $
|
|
84
|
-
var $
|
|
85
|
-
var $
|
|
86
|
-
var $
|
|
87
|
-
var $
|
|
88
|
-
var $
|
|
89
|
-
var $
|
|
90
|
-
var $
|
|
91
|
-
var $
|
|
92
|
-
var $
|
|
93
|
-
var $
|
|
94
|
-
var $
|
|
95
|
-
var $
|
|
96
|
-
var $
|
|
97
|
-
var $
|
|
98
|
-
var $
|
|
99
|
-
var $
|
|
100
|
-
var $
|
|
101
|
-
var $
|
|
102
|
-
var $
|
|
103
|
-
var $
|
|
104
|
-
var $
|
|
105
|
-
var $
|
|
106
|
-
var $
|
|
107
|
-
var $
|
|
108
|
-
var $
|
|
109
|
-
var $
|
|
110
|
-
var $
|
|
111
|
-
var $
|
|
112
|
-
var $
|
|
113
|
-
var $
|
|
114
|
-
var $
|
|
115
|
-
$
|
|
116
|
-
$
|
|
117
|
-
$
|
|
118
|
-
$
|
|
119
|
-
$
|
|
120
|
-
$
|
|
121
|
-
$
|
|
122
|
-
$
|
|
123
|
-
$
|
|
124
|
-
$
|
|
125
|
-
$
|
|
126
|
-
$
|
|
127
|
-
$
|
|
128
|
-
$
|
|
129
|
-
$
|
|
130
|
-
$
|
|
131
|
-
$
|
|
132
|
-
$
|
|
133
|
-
$
|
|
134
|
-
$
|
|
135
|
-
$
|
|
136
|
-
$
|
|
137
|
-
$
|
|
138
|
-
$
|
|
139
|
-
$
|
|
140
|
-
$
|
|
141
|
-
$
|
|
142
|
-
$
|
|
143
|
-
$
|
|
144
|
-
$
|
|
145
|
-
$
|
|
146
|
-
$
|
|
147
|
-
$
|
|
148
|
-
$
|
|
149
|
-
$
|
|
150
|
-
$
|
|
151
|
-
$
|
|
152
|
-
$
|
|
153
|
-
$
|
|
154
|
-
$
|
|
155
|
-
$
|
|
156
|
-
$
|
|
157
|
-
$
|
|
158
|
-
$
|
|
159
|
-
$
|
|
160
|
-
$
|
|
161
|
-
$
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
function $
|
|
13
|
+
var $095fb0f3c15b57e7$exports = {};
|
|
14
|
+
|
|
15
|
+
$parcel$export($095fb0f3c15b57e7$exports, "Icon", () => $095fb0f3c15b57e7$export$f04a61298a47a40f);
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
var $336bf6b5045920dd$exports = {};
|
|
20
|
+
|
|
21
|
+
$parcel$export($336bf6b5045920dd$exports, "spectrum-Icon", () => $336bf6b5045920dd$export$d374b04f30360026, (v) => $336bf6b5045920dd$export$d374b04f30360026 = v);
|
|
22
|
+
$parcel$export($336bf6b5045920dd$exports, "spectrum-UIIcon", () => $336bf6b5045920dd$export$c7db7fdc5aac13aa, (v) => $336bf6b5045920dd$export$c7db7fdc5aac13aa = v);
|
|
23
|
+
$parcel$export($336bf6b5045920dd$exports, "spectrum-Icon--sizeXXS", () => $336bf6b5045920dd$export$cab8448604b31f43, (v) => $336bf6b5045920dd$export$cab8448604b31f43 = v);
|
|
24
|
+
$parcel$export($336bf6b5045920dd$exports, "spectrum-Icon--sizeXS", () => $336bf6b5045920dd$export$557c0af6873b4222, (v) => $336bf6b5045920dd$export$557c0af6873b4222 = v);
|
|
25
|
+
$parcel$export($336bf6b5045920dd$exports, "spectrum-Icon--sizeS", () => $336bf6b5045920dd$export$34ce05647f0c65e, (v) => $336bf6b5045920dd$export$34ce05647f0c65e = v);
|
|
26
|
+
$parcel$export($336bf6b5045920dd$exports, "spectrum-Icon--sizeM", () => $336bf6b5045920dd$export$8f1693ac47916bbf, (v) => $336bf6b5045920dd$export$8f1693ac47916bbf = v);
|
|
27
|
+
$parcel$export($336bf6b5045920dd$exports, "spectrum-Icon--sizeL", () => $336bf6b5045920dd$export$8d23c37ef2a4f13e, (v) => $336bf6b5045920dd$export$8d23c37ef2a4f13e = v);
|
|
28
|
+
$parcel$export($336bf6b5045920dd$exports, "spectrum-Icon--sizeXL", () => $336bf6b5045920dd$export$c6e70a22e841bc1b, (v) => $336bf6b5045920dd$export$c6e70a22e841bc1b = v);
|
|
29
|
+
$parcel$export($336bf6b5045920dd$exports, "spectrum-Icon--sizeXXL", () => $336bf6b5045920dd$export$b37777493a27e620, (v) => $336bf6b5045920dd$export$b37777493a27e620 = v);
|
|
30
|
+
$parcel$export($336bf6b5045920dd$exports, "spectrum--medium", () => $336bf6b5045920dd$export$4c0c83b3f4303ef8, (v) => $336bf6b5045920dd$export$4c0c83b3f4303ef8 = v);
|
|
31
|
+
$parcel$export($336bf6b5045920dd$exports, "spectrum-UIIcon--large", () => $336bf6b5045920dd$export$2265a487ad399d8b, (v) => $336bf6b5045920dd$export$2265a487ad399d8b = v);
|
|
32
|
+
$parcel$export($336bf6b5045920dd$exports, "spectrum-UIIcon--medium", () => $336bf6b5045920dd$export$a6044013cf72ddc9, (v) => $336bf6b5045920dd$export$a6044013cf72ddc9 = v);
|
|
33
|
+
$parcel$export($336bf6b5045920dd$exports, "spectrum--large", () => $336bf6b5045920dd$export$a88a8dbe29386d31, (v) => $336bf6b5045920dd$export$a88a8dbe29386d31 = v);
|
|
34
|
+
$parcel$export($336bf6b5045920dd$exports, "spectrum-UIIcon-AlertMedium", () => $336bf6b5045920dd$export$83be8302c01b6478, (v) => $336bf6b5045920dd$export$83be8302c01b6478 = v);
|
|
35
|
+
$parcel$export($336bf6b5045920dd$exports, "spectrum-UIIcon-AlertSmall", () => $336bf6b5045920dd$export$57b49d6ee2e9f187, (v) => $336bf6b5045920dd$export$57b49d6ee2e9f187 = v);
|
|
36
|
+
$parcel$export($336bf6b5045920dd$exports, "spectrum-UIIcon-ArrowDownSmall", () => $336bf6b5045920dd$export$81968d05e3681b3f, (v) => $336bf6b5045920dd$export$81968d05e3681b3f = v);
|
|
37
|
+
$parcel$export($336bf6b5045920dd$exports, "spectrum-UIIcon-ArrowLeftMedium", () => $336bf6b5045920dd$export$c0d655f335b5bc31, (v) => $336bf6b5045920dd$export$c0d655f335b5bc31 = v);
|
|
38
|
+
$parcel$export($336bf6b5045920dd$exports, "spectrum-UIIcon-Asterisk", () => $336bf6b5045920dd$export$cca4342eca45562, (v) => $336bf6b5045920dd$export$cca4342eca45562 = v);
|
|
39
|
+
$parcel$export($336bf6b5045920dd$exports, "spectrum-UIIcon-CheckmarkMedium", () => $336bf6b5045920dd$export$edc4a2e9af971b26, (v) => $336bf6b5045920dd$export$edc4a2e9af971b26 = v);
|
|
40
|
+
$parcel$export($336bf6b5045920dd$exports, "spectrum-UIIcon-CheckmarkSmall", () => $336bf6b5045920dd$export$9e665cb12e71e037, (v) => $336bf6b5045920dd$export$9e665cb12e71e037 = v);
|
|
41
|
+
$parcel$export($336bf6b5045920dd$exports, "spectrum-UIIcon-ChevronDownMedium", () => $336bf6b5045920dd$export$2f91b7a7627906d5, (v) => $336bf6b5045920dd$export$2f91b7a7627906d5 = v);
|
|
42
|
+
$parcel$export($336bf6b5045920dd$exports, "spectrum-UIIcon-ChevronDownSmall", () => $336bf6b5045920dd$export$56efb4ec9eb35c07, (v) => $336bf6b5045920dd$export$56efb4ec9eb35c07 = v);
|
|
43
|
+
$parcel$export($336bf6b5045920dd$exports, "spectrum-UIIcon-ChevronLeftLarge", () => $336bf6b5045920dd$export$5861dfe1d581a528, (v) => $336bf6b5045920dd$export$5861dfe1d581a528 = v);
|
|
44
|
+
$parcel$export($336bf6b5045920dd$exports, "spectrum-UIIcon-ChevronLeftMedium", () => $336bf6b5045920dd$export$595a122b60890c78, (v) => $336bf6b5045920dd$export$595a122b60890c78 = v);
|
|
45
|
+
$parcel$export($336bf6b5045920dd$exports, "spectrum-UIIcon-ChevronRightLarge", () => $336bf6b5045920dd$export$596373794435f8bc, (v) => $336bf6b5045920dd$export$596373794435f8bc = v);
|
|
46
|
+
$parcel$export($336bf6b5045920dd$exports, "spectrum-UIIcon-ChevronRightMedium", () => $336bf6b5045920dd$export$32b379a02cafbfb3, (v) => $336bf6b5045920dd$export$32b379a02cafbfb3 = v);
|
|
47
|
+
$parcel$export($336bf6b5045920dd$exports, "spectrum-UIIcon-ChevronRightSmall", () => $336bf6b5045920dd$export$ee5de2c4d7c8faa4, (v) => $336bf6b5045920dd$export$ee5de2c4d7c8faa4 = v);
|
|
48
|
+
$parcel$export($336bf6b5045920dd$exports, "spectrum-UIIcon-ChevronUpSmall", () => $336bf6b5045920dd$export$c1cbae72fd236fd9, (v) => $336bf6b5045920dd$export$c1cbae72fd236fd9 = v);
|
|
49
|
+
$parcel$export($336bf6b5045920dd$exports, "spectrum-UIIcon-CornerTriangle", () => $336bf6b5045920dd$export$636d8cde4f6b7e6, (v) => $336bf6b5045920dd$export$636d8cde4f6b7e6 = v);
|
|
50
|
+
$parcel$export($336bf6b5045920dd$exports, "spectrum-UIIcon-CrossLarge", () => $336bf6b5045920dd$export$1f0ad4082256e3df, (v) => $336bf6b5045920dd$export$1f0ad4082256e3df = v);
|
|
51
|
+
$parcel$export($336bf6b5045920dd$exports, "spectrum-UIIcon-CrossMedium", () => $336bf6b5045920dd$export$1e0848411e254295, (v) => $336bf6b5045920dd$export$1e0848411e254295 = v);
|
|
52
|
+
$parcel$export($336bf6b5045920dd$exports, "spectrum-UIIcon-CrossSmall", () => $336bf6b5045920dd$export$1c1bddac0ae5fbe5, (v) => $336bf6b5045920dd$export$1c1bddac0ae5fbe5 = v);
|
|
53
|
+
$parcel$export($336bf6b5045920dd$exports, "spectrum-UIIcon-DashSmall", () => $336bf6b5045920dd$export$98de2b9917cd3b6a, (v) => $336bf6b5045920dd$export$98de2b9917cd3b6a = v);
|
|
54
|
+
$parcel$export($336bf6b5045920dd$exports, "spectrum-UIIcon-DoubleGripper", () => $336bf6b5045920dd$export$3c956876cb11c1e1, (v) => $336bf6b5045920dd$export$3c956876cb11c1e1 = v);
|
|
55
|
+
$parcel$export($336bf6b5045920dd$exports, "spectrum-UIIcon-FolderBreadcrumb", () => $336bf6b5045920dd$export$55cf2795737352fc, (v) => $336bf6b5045920dd$export$55cf2795737352fc = v);
|
|
56
|
+
$parcel$export($336bf6b5045920dd$exports, "spectrum-UIIcon-HelpMedium", () => $336bf6b5045920dd$export$d5d1e3e09ea6cd5, (v) => $336bf6b5045920dd$export$d5d1e3e09ea6cd5 = v);
|
|
57
|
+
$parcel$export($336bf6b5045920dd$exports, "spectrum-UIIcon-HelpSmall", () => $336bf6b5045920dd$export$f51b22382127207d, (v) => $336bf6b5045920dd$export$f51b22382127207d = v);
|
|
58
|
+
$parcel$export($336bf6b5045920dd$exports, "spectrum-UIIcon-InfoMedium", () => $336bf6b5045920dd$export$825a6c2340d3b7e5, (v) => $336bf6b5045920dd$export$825a6c2340d3b7e5 = v);
|
|
59
|
+
$parcel$export($336bf6b5045920dd$exports, "spectrum-UIIcon-InfoSmall", () => $336bf6b5045920dd$export$4828f4a6bfd26c04, (v) => $336bf6b5045920dd$export$4828f4a6bfd26c04 = v);
|
|
60
|
+
$parcel$export($336bf6b5045920dd$exports, "spectrum-UIIcon-Magnifier", () => $336bf6b5045920dd$export$a33650c9f4cc191e, (v) => $336bf6b5045920dd$export$a33650c9f4cc191e = v);
|
|
61
|
+
$parcel$export($336bf6b5045920dd$exports, "spectrum-UIIcon-SkipLeft", () => $336bf6b5045920dd$export$9eb19533e4b8cc28, (v) => $336bf6b5045920dd$export$9eb19533e4b8cc28 = v);
|
|
62
|
+
$parcel$export($336bf6b5045920dd$exports, "spectrum-UIIcon-SkipRight", () => $336bf6b5045920dd$export$67704939e41f705a, (v) => $336bf6b5045920dd$export$67704939e41f705a = v);
|
|
63
|
+
$parcel$export($336bf6b5045920dd$exports, "spectrum-UIIcon-Star", () => $336bf6b5045920dd$export$c4d219c150b98c92, (v) => $336bf6b5045920dd$export$c4d219c150b98c92 = v);
|
|
64
|
+
$parcel$export($336bf6b5045920dd$exports, "spectrum-UIIcon-StarOutline", () => $336bf6b5045920dd$export$bcda0a6a6d7202af, (v) => $336bf6b5045920dd$export$bcda0a6a6d7202af = v);
|
|
65
|
+
$parcel$export($336bf6b5045920dd$exports, "spectrum-UIIcon-SuccessMedium", () => $336bf6b5045920dd$export$d18d2d837989a797, (v) => $336bf6b5045920dd$export$d18d2d837989a797 = v);
|
|
66
|
+
$parcel$export($336bf6b5045920dd$exports, "spectrum-UIIcon-SuccessSmall", () => $336bf6b5045920dd$export$506ac7a1a72a2c65, (v) => $336bf6b5045920dd$export$506ac7a1a72a2c65 = v);
|
|
67
|
+
$parcel$export($336bf6b5045920dd$exports, "spectrum-UIIcon-TripleGripper", () => $336bf6b5045920dd$export$12b8600bcd969018, (v) => $336bf6b5045920dd$export$12b8600bcd969018 = v);
|
|
68
|
+
var $336bf6b5045920dd$export$d374b04f30360026;
|
|
69
|
+
var $336bf6b5045920dd$export$c7db7fdc5aac13aa;
|
|
70
|
+
var $336bf6b5045920dd$export$cab8448604b31f43;
|
|
71
|
+
var $336bf6b5045920dd$export$557c0af6873b4222;
|
|
72
|
+
var $336bf6b5045920dd$export$34ce05647f0c65e;
|
|
73
|
+
var $336bf6b5045920dd$export$8f1693ac47916bbf;
|
|
74
|
+
var $336bf6b5045920dd$export$8d23c37ef2a4f13e;
|
|
75
|
+
var $336bf6b5045920dd$export$c6e70a22e841bc1b;
|
|
76
|
+
var $336bf6b5045920dd$export$b37777493a27e620;
|
|
77
|
+
var $336bf6b5045920dd$export$4c0c83b3f4303ef8;
|
|
78
|
+
var $336bf6b5045920dd$export$2265a487ad399d8b;
|
|
79
|
+
var $336bf6b5045920dd$export$a6044013cf72ddc9;
|
|
80
|
+
var $336bf6b5045920dd$export$a88a8dbe29386d31;
|
|
81
|
+
var $336bf6b5045920dd$export$83be8302c01b6478;
|
|
82
|
+
var $336bf6b5045920dd$export$57b49d6ee2e9f187;
|
|
83
|
+
var $336bf6b5045920dd$export$81968d05e3681b3f;
|
|
84
|
+
var $336bf6b5045920dd$export$c0d655f335b5bc31;
|
|
85
|
+
var $336bf6b5045920dd$export$cca4342eca45562;
|
|
86
|
+
var $336bf6b5045920dd$export$edc4a2e9af971b26;
|
|
87
|
+
var $336bf6b5045920dd$export$9e665cb12e71e037;
|
|
88
|
+
var $336bf6b5045920dd$export$2f91b7a7627906d5;
|
|
89
|
+
var $336bf6b5045920dd$export$56efb4ec9eb35c07;
|
|
90
|
+
var $336bf6b5045920dd$export$5861dfe1d581a528;
|
|
91
|
+
var $336bf6b5045920dd$export$595a122b60890c78;
|
|
92
|
+
var $336bf6b5045920dd$export$596373794435f8bc;
|
|
93
|
+
var $336bf6b5045920dd$export$32b379a02cafbfb3;
|
|
94
|
+
var $336bf6b5045920dd$export$ee5de2c4d7c8faa4;
|
|
95
|
+
var $336bf6b5045920dd$export$c1cbae72fd236fd9;
|
|
96
|
+
var $336bf6b5045920dd$export$636d8cde4f6b7e6;
|
|
97
|
+
var $336bf6b5045920dd$export$1f0ad4082256e3df;
|
|
98
|
+
var $336bf6b5045920dd$export$1e0848411e254295;
|
|
99
|
+
var $336bf6b5045920dd$export$1c1bddac0ae5fbe5;
|
|
100
|
+
var $336bf6b5045920dd$export$98de2b9917cd3b6a;
|
|
101
|
+
var $336bf6b5045920dd$export$3c956876cb11c1e1;
|
|
102
|
+
var $336bf6b5045920dd$export$55cf2795737352fc;
|
|
103
|
+
var $336bf6b5045920dd$export$d5d1e3e09ea6cd5;
|
|
104
|
+
var $336bf6b5045920dd$export$f51b22382127207d;
|
|
105
|
+
var $336bf6b5045920dd$export$825a6c2340d3b7e5;
|
|
106
|
+
var $336bf6b5045920dd$export$4828f4a6bfd26c04;
|
|
107
|
+
var $336bf6b5045920dd$export$a33650c9f4cc191e;
|
|
108
|
+
var $336bf6b5045920dd$export$9eb19533e4b8cc28;
|
|
109
|
+
var $336bf6b5045920dd$export$67704939e41f705a;
|
|
110
|
+
var $336bf6b5045920dd$export$c4d219c150b98c92;
|
|
111
|
+
var $336bf6b5045920dd$export$bcda0a6a6d7202af;
|
|
112
|
+
var $336bf6b5045920dd$export$d18d2d837989a797;
|
|
113
|
+
var $336bf6b5045920dd$export$506ac7a1a72a2c65;
|
|
114
|
+
var $336bf6b5045920dd$export$12b8600bcd969018;
|
|
115
|
+
$336bf6b5045920dd$export$d374b04f30360026 = "spectrum-Icon_368b34";
|
|
116
|
+
$336bf6b5045920dd$export$c7db7fdc5aac13aa = "spectrum-UIIcon_368b34";
|
|
117
|
+
$336bf6b5045920dd$export$cab8448604b31f43 = "spectrum-Icon--sizeXXS_368b34";
|
|
118
|
+
$336bf6b5045920dd$export$557c0af6873b4222 = "spectrum-Icon--sizeXS_368b34";
|
|
119
|
+
$336bf6b5045920dd$export$34ce05647f0c65e = "spectrum-Icon--sizeS_368b34";
|
|
120
|
+
$336bf6b5045920dd$export$8f1693ac47916bbf = "spectrum-Icon--sizeM_368b34";
|
|
121
|
+
$336bf6b5045920dd$export$8d23c37ef2a4f13e = "spectrum-Icon--sizeL_368b34";
|
|
122
|
+
$336bf6b5045920dd$export$c6e70a22e841bc1b = "spectrum-Icon--sizeXL_368b34";
|
|
123
|
+
$336bf6b5045920dd$export$b37777493a27e620 = "spectrum-Icon--sizeXXL_368b34";
|
|
124
|
+
$336bf6b5045920dd$export$4c0c83b3f4303ef8 = "spectrum--medium_368b34";
|
|
125
|
+
$336bf6b5045920dd$export$2265a487ad399d8b = "spectrum-UIIcon--large_368b34";
|
|
126
|
+
$336bf6b5045920dd$export$a6044013cf72ddc9 = "spectrum-UIIcon--medium_368b34";
|
|
127
|
+
$336bf6b5045920dd$export$a88a8dbe29386d31 = "spectrum--large_368b34";
|
|
128
|
+
$336bf6b5045920dd$export$83be8302c01b6478 = "spectrum-UIIcon-AlertMedium_368b34";
|
|
129
|
+
$336bf6b5045920dd$export$57b49d6ee2e9f187 = "spectrum-UIIcon-AlertSmall_368b34";
|
|
130
|
+
$336bf6b5045920dd$export$81968d05e3681b3f = "spectrum-UIIcon-ArrowDownSmall_368b34";
|
|
131
|
+
$336bf6b5045920dd$export$c0d655f335b5bc31 = "spectrum-UIIcon-ArrowLeftMedium_368b34";
|
|
132
|
+
$336bf6b5045920dd$export$cca4342eca45562 = "spectrum-UIIcon-Asterisk_368b34";
|
|
133
|
+
$336bf6b5045920dd$export$edc4a2e9af971b26 = "spectrum-UIIcon-CheckmarkMedium_368b34";
|
|
134
|
+
$336bf6b5045920dd$export$9e665cb12e71e037 = "spectrum-UIIcon-CheckmarkSmall_368b34";
|
|
135
|
+
$336bf6b5045920dd$export$2f91b7a7627906d5 = "spectrum-UIIcon-ChevronDownMedium_368b34";
|
|
136
|
+
$336bf6b5045920dd$export$56efb4ec9eb35c07 = "spectrum-UIIcon-ChevronDownSmall_368b34";
|
|
137
|
+
$336bf6b5045920dd$export$5861dfe1d581a528 = "spectrum-UIIcon-ChevronLeftLarge_368b34";
|
|
138
|
+
$336bf6b5045920dd$export$595a122b60890c78 = "spectrum-UIIcon-ChevronLeftMedium_368b34";
|
|
139
|
+
$336bf6b5045920dd$export$596373794435f8bc = "spectrum-UIIcon-ChevronRightLarge_368b34";
|
|
140
|
+
$336bf6b5045920dd$export$32b379a02cafbfb3 = "spectrum-UIIcon-ChevronRightMedium_368b34";
|
|
141
|
+
$336bf6b5045920dd$export$ee5de2c4d7c8faa4 = "spectrum-UIIcon-ChevronRightSmall_368b34";
|
|
142
|
+
$336bf6b5045920dd$export$c1cbae72fd236fd9 = "spectrum-UIIcon-ChevronUpSmall_368b34";
|
|
143
|
+
$336bf6b5045920dd$export$636d8cde4f6b7e6 = "spectrum-UIIcon-CornerTriangle_368b34";
|
|
144
|
+
$336bf6b5045920dd$export$1f0ad4082256e3df = "spectrum-UIIcon-CrossLarge_368b34";
|
|
145
|
+
$336bf6b5045920dd$export$1e0848411e254295 = "spectrum-UIIcon-CrossMedium_368b34";
|
|
146
|
+
$336bf6b5045920dd$export$1c1bddac0ae5fbe5 = "spectrum-UIIcon-CrossSmall_368b34";
|
|
147
|
+
$336bf6b5045920dd$export$98de2b9917cd3b6a = "spectrum-UIIcon-DashSmall_368b34";
|
|
148
|
+
$336bf6b5045920dd$export$3c956876cb11c1e1 = "spectrum-UIIcon-DoubleGripper_368b34";
|
|
149
|
+
$336bf6b5045920dd$export$55cf2795737352fc = "spectrum-UIIcon-FolderBreadcrumb_368b34";
|
|
150
|
+
$336bf6b5045920dd$export$d5d1e3e09ea6cd5 = "spectrum-UIIcon-HelpMedium_368b34";
|
|
151
|
+
$336bf6b5045920dd$export$f51b22382127207d = "spectrum-UIIcon-HelpSmall_368b34";
|
|
152
|
+
$336bf6b5045920dd$export$825a6c2340d3b7e5 = "spectrum-UIIcon-InfoMedium_368b34";
|
|
153
|
+
$336bf6b5045920dd$export$4828f4a6bfd26c04 = "spectrum-UIIcon-InfoSmall_368b34";
|
|
154
|
+
$336bf6b5045920dd$export$a33650c9f4cc191e = "spectrum-UIIcon-Magnifier_368b34";
|
|
155
|
+
$336bf6b5045920dd$export$9eb19533e4b8cc28 = "spectrum-UIIcon-SkipLeft_368b34";
|
|
156
|
+
$336bf6b5045920dd$export$67704939e41f705a = "spectrum-UIIcon-SkipRight_368b34";
|
|
157
|
+
$336bf6b5045920dd$export$c4d219c150b98c92 = "spectrum-UIIcon-Star_368b34";
|
|
158
|
+
$336bf6b5045920dd$export$bcda0a6a6d7202af = "spectrum-UIIcon-StarOutline_368b34";
|
|
159
|
+
$336bf6b5045920dd$export$d18d2d837989a797 = "spectrum-UIIcon-SuccessMedium_368b34";
|
|
160
|
+
$336bf6b5045920dd$export$506ac7a1a72a2c65 = "spectrum-UIIcon-SuccessSmall_368b34";
|
|
161
|
+
$336bf6b5045920dd$export$12b8600bcd969018 = "spectrum-UIIcon-TripleGripper_368b34";
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
function $095fb0f3c15b57e7$var$iconColorValue(value) {
|
|
166
166
|
return `var(--spectrum-semantic-${value}-color-icon)`;
|
|
167
167
|
}
|
|
168
|
-
const $
|
|
169
|
-
...$
|
|
168
|
+
const $095fb0f3c15b57e7$var$iconStyleProps = {
|
|
169
|
+
...$g2IY6$baseStyleProps,
|
|
170
170
|
color: [
|
|
171
171
|
'color',
|
|
172
|
-
$
|
|
172
|
+
$095fb0f3c15b57e7$var$iconColorValue
|
|
173
173
|
]
|
|
174
174
|
};
|
|
175
|
-
function $
|
|
176
|
-
props = $
|
|
175
|
+
function $095fb0f3c15b57e7$export$f04a61298a47a40f(props) {
|
|
176
|
+
props = $g2IY6$useSlotProps(props, 'icon');
|
|
177
177
|
let { children: children , size: size , 'aria-label': ariaLabel , 'aria-hidden': ariaHidden , ...otherProps } = props;
|
|
178
|
-
let { styleProps: styleProps } = $
|
|
179
|
-
let provider = $
|
|
178
|
+
let { styleProps: styleProps } = $g2IY6$useStyleProps(otherProps, $095fb0f3c15b57e7$var$iconStyleProps);
|
|
179
|
+
let provider = $g2IY6$useProvider();
|
|
180
180
|
let scale = 'M';
|
|
181
181
|
if (provider !== null) scale = provider.scale === 'large' ? 'L' : 'M';
|
|
182
182
|
if (!ariaHidden) ariaHidden = undefined;
|
|
183
183
|
// Use user specified size, falling back to provider scale if size is undef
|
|
184
184
|
let iconSize = size ? size : scale;
|
|
185
|
-
return(/*#__PURE__*/ $
|
|
186
|
-
...$
|
|
185
|
+
return(/*#__PURE__*/ $g2IY6$react.cloneElement(children, {
|
|
186
|
+
...$g2IY6$filterDOMProps(otherProps),
|
|
187
187
|
...styleProps,
|
|
188
188
|
focusable: 'false',
|
|
189
189
|
'aria-label': ariaLabel,
|
|
190
190
|
'aria-hidden': ariaLabel ? ariaHidden || undefined : true,
|
|
191
191
|
role: 'img',
|
|
192
|
-
className: $
|
|
192
|
+
className: $g2IY6$classNames((/*@__PURE__*/$parcel$interopDefault($336bf6b5045920dd$exports)), children.props.className, 'spectrum-Icon', `spectrum-Icon--size${iconSize}`, styleProps.className)
|
|
193
193
|
}));
|
|
194
194
|
}
|
|
195
195
|
|
|
196
196
|
|
|
197
|
-
var $
|
|
197
|
+
var $ec7b4c55131f9ae9$exports = {};
|
|
198
198
|
|
|
199
|
-
$parcel$export($
|
|
199
|
+
$parcel$export($ec7b4c55131f9ae9$exports, "UIIcon", () => $ec7b4c55131f9ae9$export$906cc5990ff10700);
|
|
200
200
|
|
|
201
201
|
|
|
202
202
|
|
|
203
203
|
|
|
204
204
|
|
|
205
|
-
function $
|
|
206
|
-
props = $
|
|
205
|
+
function $ec7b4c55131f9ae9$export$906cc5990ff10700(props) {
|
|
206
|
+
props = $g2IY6$useSlotProps(props, 'icon');
|
|
207
207
|
let { children: children , 'aria-label': ariaLabel , 'aria-hidden': ariaHidden , ...otherProps } = props;
|
|
208
|
-
let { styleProps: styleProps } = $
|
|
209
|
-
let provider = $
|
|
208
|
+
let { styleProps: styleProps } = $g2IY6$useStyleProps(otherProps);
|
|
209
|
+
let provider = $g2IY6$useProvider();
|
|
210
210
|
let scale = 'M';
|
|
211
211
|
if (provider !== null) scale = provider.scale === 'large' ? 'L' : 'M';
|
|
212
212
|
if (!ariaHidden) ariaHidden = undefined;
|
|
213
|
-
return(/*#__PURE__*/ $
|
|
214
|
-
...$
|
|
213
|
+
return(/*#__PURE__*/ $g2IY6$react.cloneElement(children, {
|
|
214
|
+
...$g2IY6$filterDOMProps(otherProps),
|
|
215
215
|
...styleProps,
|
|
216
216
|
scale: scale,
|
|
217
217
|
focusable: 'false',
|
|
218
218
|
'aria-label': ariaLabel,
|
|
219
219
|
'aria-hidden': ariaLabel ? ariaHidden || undefined : true,
|
|
220
220
|
role: 'img',
|
|
221
|
-
className: $
|
|
221
|
+
className: $g2IY6$classNames((/*@__PURE__*/$parcel$interopDefault($336bf6b5045920dd$exports)), children.props.className, 'spectrum-Icon', {
|
|
222
222
|
[`spectrum-UIIcon-${children.type['displayName']}`]: children.type['displayName']
|
|
223
223
|
}, styleProps.className)
|
|
224
224
|
}));
|
|
@@ -227,5 +227,5 @@ function $9f08488afd20711b$export$906cc5990ff10700(props) {
|
|
|
227
227
|
|
|
228
228
|
|
|
229
229
|
|
|
230
|
-
export {$
|
|
230
|
+
export {$095fb0f3c15b57e7$export$f04a61298a47a40f as Icon, $ec7b4c55131f9ae9$export$906cc5990ff10700 as UIIcon};
|
|
231
231
|
//# sourceMappingURL=module.js.map
|
package/dist/module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,CAAG,KAAG,CAAG;IAGhD,EAAE,GAAG,UAAU,EACb,UAAU,GAAG,SAAS;IAGxB,MAAM,eAAC,YAAK,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC;WAChC,qBAAc,CAAC,UAAU;WACzB,UAAU;eACb,KAAK;QACL,SAAS,EAAE,CAAO;QAClB,CAAY,aAAE,SAAS;QACvB,CAAa,cAAG,SAAS,GAAI,UAAU,IAAI,SAAS,GAAI,IAAI;QAC5D,IAAI,EAAE,CAAK;QACX,SAAS,EAAE,iBAAU,CACnB,gEAAM,EACN,QAAQ,CAAC,KAAK,CAAC,SAAS,EACxB,CAAe,gBACf,CAAC;cACG,gBAAgB,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAa,kBAAM,QAAQ,CAAC,IAAI,CAAC,CAAa;QAClF,CAAC,EACD,UAAU,CAAC,SAAS;IACxB,CAAC;AACH,CAAC;;","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"],"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 * from './Icon';\nexport * 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\ninterface 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\ninterface IconProps 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<IconProps, 'children'>;\n\nexport function UIIcon(props: IconProps) {\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"],"names":[],"version":3,"file":"module.js.map"}
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AEAA,GAA+B;AAC/B,GAAiC;AACjC,GAAwC;AACxC,GAAuC;AACvC,GAAsC;AACtC,GAAsC;AACtC,GAAsC;AACtC,GAAuC;AACvC,GAAwC;AACxC,GAAkC;AAClC,GAAwC;AACxC,GAAyC;AACzC,GAAiC;AACjC,GAA6C;AAC7C,GAA4C;AAC5C,GAAgD;AAChD,GAAiD;AACjD,GAA0C;AAC1C,GAAiD;AACjD,GAAgD;AAChD,GAAmD;AACnD,GAAkD;AAClD,GAAkD;AAClD,GAAmD;AACnD,GAAmD;AACnD,GAAoD;AACpD,GAAmD;AACnD,GAAgD;AAChD,GAAgD;AAChD,GAA4C;AAC5C,GAA6C;AAC7C,GAA4C;AAC5C,GAA2C;AAC3C,GAA+C;AAC/C,GAAkD;AAClD,GAA4C;AAC5C,GAA2C;AAC3C,GAA4C;AAC5C,GAA2C;AAC3C,GAA2C;AAC3C,GAA0C;AAC1C,GAA2C;AAC3C,GAAsC;AACtC,GAA6C;AAC7C,GAA+C;AAC/C,GAA8C;AAC9C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ACN,QAAQ,CAAC,KAAK,CAAC,SAAS,EACxB,CAAe,iBACd,mBAAmB,EAAE,QAAQ,IAC9B,UAAU,CAAC,SAAS;IACxB,CAAC;AACH,CAAC;;;;;;;;;;;SEpEe,yCAAM,CAAC,KAAgB,EAAE,CAAC;IACxC,KAAK,GAAG,mBAAY,CAAC,KAAK,EAAE,CAAM;IAClC,GAAG,CAAC,CAAC,WACH,QAAQ,GACR,CAAY,aAAE,SAAS,GACvB,CAAa,cAAE,UAAU,MACtB,UAAU,CACf,CAAC,GAAG,KAAK;IAET,GAAG,CAAC,CAAC,aAAA,UAAU,EAAA,CAAC,GAAG,oBAAa,CAAC,UAAU;IAC3C,GAAG,CAAC,QAAQ,GAAG,kBAAW;IAC1B,GAAG,CAAC,KAAK,GAAG,CAAG;IACf,EAAE,EAAE,QAAQ,KAAK,IAAI,EACnB,KAAK,GAAG,QAAQ,CAAC,KAAK,KAAK,CAAO,SAAG,CAAG,KAAG,CAAG;IAGhD,EAAE,GAAG,UAAU,EACb,UAAU,GAAG,SAAS;IAGxB,MAAM,eAAC,YAAK,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC;WAChC,qBAAc,CAAC,UAAU;WACzB,UAAU;eACb,KAAK;QACL,SAAS,EAAE,CAAO;QAClB,CAAY,aAAE,SAAS;QACvB,CAAa,cAAG,SAAS,GAAI,UAAU,IAAI,SAAS,GAAI,IAAI;QAC5D,IAAI,EAAE,CAAK;QACX,SAAS,EAAE,iBAAU,CACnB,gEAAM,EACN,QAAQ,CAAC,KAAK,CAAC,SAAS,EACxB,CAAe,gBACf,CAAC;cACG,gBAAgB,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAa,kBAAM,QAAQ,CAAC,IAAI,CAAC,CAAa;QAClF,CAAC,EACD,UAAU,CAAC,SAAS;IACxB,CAAC;AACH,CAAC;;","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"],"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 * from './Icon';\nexport * 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\ninterface 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\ninterface IconProps 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<IconProps, 'children'>;\n\nexport function UIIcon(props: IconProps) {\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"],"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.0.0-nightly.
|
|
3
|
+
"version": "3.0.0-nightly.1395+b2abc5d94",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@babel/runtime": "^7.6.2",
|
|
35
|
-
"@react-aria/utils": "3.0.0-nightly.
|
|
36
|
-
"@react-spectrum/utils": "3.0.0-nightly.
|
|
37
|
-
"@react-types/shared": "3.0.0-nightly.
|
|
35
|
+
"@react-aria/utils": "3.0.0-nightly.1395+b2abc5d94",
|
|
36
|
+
"@react-spectrum/utils": "3.0.0-nightly.1395+b2abc5d94",
|
|
37
|
+
"@react-types/shared": "3.0.0-nightly.1395+b2abc5d94"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@adobe/spectrum-css-temp": "3.0.0-nightly.
|
|
40
|
+
"@adobe/spectrum-css-temp": "3.0.0-nightly.1395+b2abc5d94"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@react-spectrum/provider": "^3.0.0",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"publishConfig": {
|
|
47
47
|
"access": "public"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "b2abc5d94162a7bd614fffcdf11e3d3754dc7d9f"
|
|
50
50
|
}
|