@react-spectrum/icon 3.2.0 → 3.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.css +1 -2
- package/dist/main.js +236 -146
- package/dist/main.js.map +1 -1
- package/dist/module.js +221 -129
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +7 -3
- package/dist/types.d.ts.map +1 -1
- package/package.json +9 -6
- package/src/Icon.tsx +17 -6
- package/dist/main.css.map +0 -1
package/dist/main.css
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
.
|
|
2
|
-
/*# sourceMappingURL=main.css.map */
|
|
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,158 +1,248 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
require("./main.css");
|
|
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
|
+
|
|
7
|
+
function $parcel$exportWildcard(dest, source) {
|
|
8
|
+
Object.keys(source).forEach(function(key) {
|
|
9
|
+
if (key === 'default' || key === '__esModule' || dest.hasOwnProperty(key)) {
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
Object.defineProperty(dest, key, {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function get() {
|
|
16
|
+
return source[key];
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
return dest;
|
|
22
|
+
}
|
|
23
|
+
function $parcel$interopDefault(a) {
|
|
24
|
+
return a && a.__esModule ? a.default : a;
|
|
25
|
+
}
|
|
26
|
+
function $parcel$export(e, n, v, s) {
|
|
27
|
+
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
28
|
+
}
|
|
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
|
+
return `var(--spectrum-semantic-${value}-color-icon)`;
|
|
183
|
+
}
|
|
184
|
+
const $90f0aba8589f9ebe$var$iconStyleProps = {
|
|
185
|
+
...$lbxS3$reactspectrumutils.baseStyleProps,
|
|
186
|
+
color: [
|
|
187
|
+
'color',
|
|
188
|
+
$90f0aba8589f9ebe$var$iconColorValue
|
|
189
|
+
]
|
|
190
|
+
};
|
|
191
|
+
function $90f0aba8589f9ebe$export$f04a61298a47a40f(props) {
|
|
192
|
+
props = $lbxS3$reactspectrumutils.useSlotProps(props, 'icon');
|
|
193
|
+
let { children: children , size: size , 'aria-label': ariaLabel , 'aria-hidden': ariaHidden , ...otherProps } = props;
|
|
194
|
+
let { styleProps: styleProps } = $lbxS3$reactspectrumutils.useStyleProps(otherProps, $90f0aba8589f9ebe$var$iconStyleProps);
|
|
195
|
+
let provider = $lbxS3$reactspectrumprovider.useProvider();
|
|
196
|
+
let scale = 'M';
|
|
197
|
+
if (provider !== null) scale = provider.scale === 'large' ? 'L' : 'M';
|
|
198
|
+
if (!ariaHidden) ariaHidden = undefined;
|
|
199
|
+
// Use user specified size, falling back to provider scale if size is undef
|
|
200
|
+
let iconSize = size ? size : scale;
|
|
201
|
+
return(/*#__PURE__*/ ($parcel$interopDefault($lbxS3$react)).cloneElement(children, {
|
|
202
|
+
...$lbxS3$reactariautils.filterDOMProps(otherProps),
|
|
203
|
+
...styleProps,
|
|
204
|
+
focusable: 'false',
|
|
205
|
+
'aria-label': ariaLabel,
|
|
206
|
+
'aria-hidden': ariaLabel ? ariaHidden || undefined : true,
|
|
207
|
+
role: 'img',
|
|
208
|
+
className: $lbxS3$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($17e9b7ce1e5ba82e$exports)), children.props.className, 'spectrum-Icon', `spectrum-Icon--size${iconSize}`, styleProps.className)
|
|
209
|
+
}));
|
|
210
|
+
}
|
|
4
211
|
|
|
5
|
-
var _react = $parcel$interopDefault(require("react"));
|
|
6
212
|
|
|
7
|
-
var {
|
|
8
|
-
filterDOMProps
|
|
9
|
-
} = require("@react-aria/utils");
|
|
213
|
+
var $9553e2b654a1e620$exports = {};
|
|
10
214
|
|
|
11
|
-
|
|
12
|
-
classNames,
|
|
13
|
-
useSlotProps,
|
|
14
|
-
useStyleProps
|
|
15
|
-
} = require("@react-spectrum/utils");
|
|
215
|
+
$parcel$export($9553e2b654a1e620$exports, "UIIcon", () => $9553e2b654a1e620$export$906cc5990ff10700);
|
|
16
216
|
|
|
17
|
-
var _babelRuntimeHelpersObjectWithoutPropertiesLoose = $parcel$interopDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
18
217
|
|
|
19
|
-
var _babelRuntimeHelpersExtends = $parcel$interopDefault(require("@babel/runtime/helpers/extends"));
|
|
20
218
|
|
|
21
|
-
require("./main.css");
|
|
22
219
|
|
|
23
|
-
function $parcel$interopDefault(a) {
|
|
24
|
-
return a && a.__esModule ? a.default : a;
|
|
25
|
-
}
|
|
26
220
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
"spectrum-UIIcon-Asterisk": "_spectrum-UIIcon-Asterisk_8ac98",
|
|
48
|
-
"spectrum-UIIcon-CheckmarkMedium": "_spectrum-UIIcon-CheckmarkMedium_8ac98",
|
|
49
|
-
"spectrum-UIIcon-CheckmarkSmall": "_spectrum-UIIcon-CheckmarkSmall_8ac98",
|
|
50
|
-
"spectrum-UIIcon-ChevronDownMedium": "_spectrum-UIIcon-ChevronDownMedium_8ac98",
|
|
51
|
-
"spectrum-UIIcon-ChevronDownSmall": "_spectrum-UIIcon-ChevronDownSmall_8ac98",
|
|
52
|
-
"spectrum-UIIcon-ChevronLeftLarge": "_spectrum-UIIcon-ChevronLeftLarge_8ac98",
|
|
53
|
-
"spectrum-UIIcon-ChevronLeftMedium": "_spectrum-UIIcon-ChevronLeftMedium_8ac98",
|
|
54
|
-
"spectrum-UIIcon-ChevronRightLarge": "_spectrum-UIIcon-ChevronRightLarge_8ac98",
|
|
55
|
-
"spectrum-UIIcon-ChevronRightMedium": "_spectrum-UIIcon-ChevronRightMedium_8ac98",
|
|
56
|
-
"spectrum-UIIcon-ChevronRightSmall": "_spectrum-UIIcon-ChevronRightSmall_8ac98",
|
|
57
|
-
"spectrum-UIIcon-ChevronUpSmall": "_spectrum-UIIcon-ChevronUpSmall_8ac98",
|
|
58
|
-
"spectrum-UIIcon-CornerTriangle": "_spectrum-UIIcon-CornerTriangle_8ac98",
|
|
59
|
-
"spectrum-UIIcon-CrossLarge": "_spectrum-UIIcon-CrossLarge_8ac98",
|
|
60
|
-
"spectrum-UIIcon-CrossMedium": "_spectrum-UIIcon-CrossMedium_8ac98",
|
|
61
|
-
"spectrum-UIIcon-CrossSmall": "_spectrum-UIIcon-CrossSmall_8ac98",
|
|
62
|
-
"spectrum-UIIcon-DashSmall": "_spectrum-UIIcon-DashSmall_8ac98",
|
|
63
|
-
"spectrum-UIIcon-DoubleGripper": "_spectrum-UIIcon-DoubleGripper_8ac98",
|
|
64
|
-
"spectrum-UIIcon-FolderBreadcrumb": "_spectrum-UIIcon-FolderBreadcrumb_8ac98",
|
|
65
|
-
"spectrum-UIIcon-HelpMedium": "_spectrum-UIIcon-HelpMedium_8ac98",
|
|
66
|
-
"spectrum-UIIcon-HelpSmall": "_spectrum-UIIcon-HelpSmall_8ac98",
|
|
67
|
-
"spectrum-UIIcon-InfoMedium": "_spectrum-UIIcon-InfoMedium_8ac98",
|
|
68
|
-
"spectrum-UIIcon-InfoSmall": "_spectrum-UIIcon-InfoSmall_8ac98",
|
|
69
|
-
"spectrum-UIIcon-Magnifier": "_spectrum-UIIcon-Magnifier_8ac98",
|
|
70
|
-
"spectrum-UIIcon-SkipLeft": "_spectrum-UIIcon-SkipLeft_8ac98",
|
|
71
|
-
"spectrum-UIIcon-SkipRight": "_spectrum-UIIcon-SkipRight_8ac98",
|
|
72
|
-
"spectrum-UIIcon-Star": "_spectrum-UIIcon-Star_8ac98",
|
|
73
|
-
"spectrum-UIIcon-StarOutline": "_spectrum-UIIcon-StarOutline_8ac98",
|
|
74
|
-
"spectrum-UIIcon-SuccessMedium": "_spectrum-UIIcon-SuccessMedium_8ac98",
|
|
75
|
-
"spectrum-UIIcon-SuccessSmall": "_spectrum-UIIcon-SuccessSmall_8ac98",
|
|
76
|
-
"spectrum-UIIcon-TripleGripper": "_spectrum-UIIcon-TripleGripper_8ac98"
|
|
77
|
-
};
|
|
78
|
-
var $b35c5b15aff1f74941511439de8f0ba8$$interop$default = $parcel$interopDefault($b35c5b15aff1f74941511439de8f0ba8$exports);
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* 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.
|
|
82
|
-
*/
|
|
83
|
-
function Icon(props) {
|
|
84
|
-
props = useSlotProps(props, 'icon');
|
|
85
|
-
|
|
86
|
-
let {
|
|
87
|
-
children,
|
|
88
|
-
size,
|
|
89
|
-
'aria-label': ariaLabel,
|
|
90
|
-
'aria-hidden': ariaHidden
|
|
91
|
-
} = props,
|
|
92
|
-
otherProps = _babelRuntimeHelpersObjectWithoutPropertiesLoose(props, ["children", "size", "aria-label", "aria-hidden"]);
|
|
93
|
-
|
|
94
|
-
let {
|
|
95
|
-
styleProps
|
|
96
|
-
} = useStyleProps(otherProps);
|
|
97
|
-
let provider = useProvider();
|
|
98
|
-
let scale = 'M';
|
|
99
|
-
|
|
100
|
-
if (provider !== null) {
|
|
101
|
-
scale = provider.scale === 'large' ? 'L' : 'M';
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
if (!ariaHidden) {
|
|
105
|
-
ariaHidden = undefined;
|
|
106
|
-
} // Use user specified size, falling back to provider scale if size is undef
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
let iconSize = size ? size : scale;
|
|
110
|
-
return _react.cloneElement(children, _babelRuntimeHelpersExtends({}, filterDOMProps(otherProps), styleProps, {
|
|
111
|
-
focusable: 'false',
|
|
112
|
-
'aria-label': ariaLabel,
|
|
113
|
-
'aria-hidden': ariaLabel ? ariaHidden || undefined : true,
|
|
114
|
-
role: 'img',
|
|
115
|
-
className: classNames($b35c5b15aff1f74941511439de8f0ba8$$interop$default, children.props.className, 'spectrum-Icon', "spectrum-Icon--size" + iconSize, styleProps.className)
|
|
116
|
-
}));
|
|
221
|
+
function $9553e2b654a1e620$export$906cc5990ff10700(props) {
|
|
222
|
+
props = $lbxS3$reactspectrumutils.useSlotProps(props, 'icon');
|
|
223
|
+
let { children: children , 'aria-label': ariaLabel , 'aria-hidden': ariaHidden , ...otherProps } = props;
|
|
224
|
+
let { styleProps: styleProps } = $lbxS3$reactspectrumutils.useStyleProps(otherProps);
|
|
225
|
+
let provider = $lbxS3$reactspectrumprovider.useProvider();
|
|
226
|
+
let scale = 'M';
|
|
227
|
+
if (provider !== null) scale = provider.scale === 'large' ? 'L' : 'M';
|
|
228
|
+
if (!ariaHidden) ariaHidden = undefined;
|
|
229
|
+
return(/*#__PURE__*/ ($parcel$interopDefault($lbxS3$react)).cloneElement(children, {
|
|
230
|
+
...$lbxS3$reactariautils.filterDOMProps(otherProps),
|
|
231
|
+
...styleProps,
|
|
232
|
+
scale: scale,
|
|
233
|
+
focusable: 'false',
|
|
234
|
+
'aria-label': ariaLabel,
|
|
235
|
+
'aria-hidden': ariaLabel ? ariaHidden || undefined : true,
|
|
236
|
+
role: 'img',
|
|
237
|
+
className: $lbxS3$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($17e9b7ce1e5ba82e$exports)), children.props.className, 'spectrum-Icon', {
|
|
238
|
+
[`spectrum-UIIcon-${children.type['displayName']}`]: children.type['displayName']
|
|
239
|
+
}, styleProps.className)
|
|
240
|
+
}));
|
|
117
241
|
}
|
|
118
242
|
|
|
119
|
-
exports.Icon = Icon;
|
|
120
|
-
|
|
121
|
-
function UIIcon(props) {
|
|
122
|
-
props = useSlotProps(props, 'icon');
|
|
123
|
-
|
|
124
|
-
let {
|
|
125
|
-
children,
|
|
126
|
-
'aria-label': ariaLabel,
|
|
127
|
-
'aria-hidden': ariaHidden
|
|
128
|
-
} = props,
|
|
129
|
-
otherProps = _babelRuntimeHelpersObjectWithoutPropertiesLoose(props, ["children", "aria-label", "aria-hidden"]);
|
|
130
|
-
|
|
131
|
-
let {
|
|
132
|
-
styleProps
|
|
133
|
-
} = useStyleProps(otherProps);
|
|
134
|
-
let provider = useProvider();
|
|
135
|
-
let scale = 'M';
|
|
136
|
-
|
|
137
|
-
if (provider !== null) {
|
|
138
|
-
scale = provider.scale === 'large' ? 'L' : 'M';
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
if (!ariaHidden) {
|
|
142
|
-
ariaHidden = undefined;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
return _react.cloneElement(children, _babelRuntimeHelpersExtends({}, filterDOMProps(otherProps), styleProps, {
|
|
146
|
-
scale,
|
|
147
|
-
focusable: 'false',
|
|
148
|
-
'aria-label': ariaLabel,
|
|
149
|
-
'aria-hidden': ariaLabel ? ariaHidden || undefined : true,
|
|
150
|
-
role: 'img',
|
|
151
|
-
className: classNames($b35c5b15aff1f74941511439de8f0ba8$$interop$default, children.props.className, 'spectrum-Icon', {
|
|
152
|
-
["spectrum-UIIcon-" + children.type['displayName']]: children.type['displayName']
|
|
153
|
-
}, styleProps.className)
|
|
154
|
-
}));
|
|
155
|
-
}
|
|
156
243
|
|
|
157
|
-
exports
|
|
244
|
+
$parcel$exportWildcard(module.exports, $90f0aba8589f9ebe$exports);
|
|
245
|
+
$parcel$exportWildcard(module.exports, $9553e2b654a1e620$exports);
|
|
246
|
+
|
|
247
|
+
|
|
158
248
|
//# sourceMappingURL=main.js.map
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,SAASA,sBAAT,CAAgCC,CAAhC,EAAmC;AACjC,SAAOA,CAAC,IAAIA,CAAC,CAACC,UAAP,GAAoBD,CAAC,CAACE,OAAtB,GAAgCF,CAAvC;AACD;;;;ACFD,4CAAiB;AACf,mBAAiB,sBADF;AAEf,qBAAmB,wBAFJ;AAGf,4BAA0B,+BAHX;AAIf,2BAAyB,8BAJV;AAKf,0BAAwB,6BALT;AAMf,0BAAwB,6BANT;AAOf,0BAAwB,6BAPT;AAQf,2BAAyB,8BARV;AASf,4BAA0B,+BATX;AAUf,sBAAoB,yBAVL;AAWf,4BAA0B,+BAXX;AAYf,6BAA2B,gCAZZ;AAaf,qBAAmB,wBAbJ;AAcf,iCAA+B,oCAdhB;AAef,gCAA8B,mCAff;AAgBf,oCAAkC,uCAhBnB;AAiBf,qCAAmC,wCAjBpB;AAkBf,8BAA4B,iCAlBb;AAmBf,qCAAmC,wCAnBpB;AAoBf,oCAAkC,uCApBnB;AAqBf,uCAAqC,0CArBtB;AAsBf,sCAAoC,yCAtBrB;AAuBf,sCAAoC,yCAvBrB;AAwBf,uCAAqC,0CAxBtB;AAyBf,uCAAqC,0CAzBtB;AA0Bf,wCAAsC,2CA1BvB;AA2Bf,uCAAqC,0CA3BtB;AA4Bf,oCAAkC,uCA5BnB;AA6Bf,oCAAkC,uCA7BnB;AA8Bf,gCAA8B,mCA9Bf;AA+Bf,iCAA+B,oCA/BhB;AAgCf,gCAA8B,mCAhCf;AAiCf,+BAA6B,kCAjCd;AAkCf,mCAAiC,sCAlClB;AAmCf,sCAAoC,yC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["./node_modules/@parcel/scope-hoisting/lib/helpers.js","./node_modules/@adobe/spectrum-css-temp/components/icon/vars.css","./packages/@react-spectrum/icon/src/Icon.tsx","./packages/@react-spectrum/icon/src/UIIcon.tsx"],"sourcesContent":["function $parcel$interopDefault(a) {\n return a && a.__esModule ? a.default : a;\n}\n\nfunction $parcel$defineInteropFlag(a) {\n Object.defineProperty(a, '__esModule', {value: true});\n}\n\nfunction $parcel$exportWildcard(dest, source) {\n Object.keys(source).forEach(function(key) {\n if (key === 'default' || key === '__esModule') {\n return;\n }\n\n Object.defineProperty(dest, key, {\n enumerable: true,\n get: function get() {\n return source[key];\n },\n });\n });\n\n return dest;\n}\n\nfunction $parcel$missingModule(name) {\n var err = new Error(\"Cannot find module '\" + name + \"'\");\n err.code = 'MODULE_NOT_FOUND';\n throw err;\n}\n\nvar $parcel$global =\n typeof globalThis !== 'undefined'\n ? globalThis\n : typeof self !== 'undefined'\n ? self\n : typeof window !== 'undefined'\n ? window\n : typeof global !== 'undefined'\n ? global\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\ntype Scale = 'M' | 'L'\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\nexport type IconPropsWithoutChildren = Omit<IconProps, 'children'>;\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);\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\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":["$parcel$interopDefault","a","__esModule","default","Icon","props","useSlotProps","children","size","ariaLabel","ariaHidden","otherProps","styleProps","useStyleProps","provider","useProvider","scale","undefined","iconSize","React","cloneElement","filterDOMProps","focusable","role","className","classNames","UIIcon","type"],"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,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,CAAsB;AACxD,yCAAiC,GAAG,CAAwB;AAC5D,yCAAwC,GAAG,CAA+B;AAC1E,yCAAuC,GAAG,CAA8B;AACxE,wCAAsC,GAAG,CAA6B;AACtE,yCAAsC,GAAG,CAA6B;AACtE,yCAAsC,GAAG,CAA6B;AACtE,yCAAuC,GAAG,CAA8B;AACxE,yCAAwC,GAAG,CAA+B;AAC1E,yCAAkC,GAAG,CAAyB;AAC9D,yCAAwC,GAAG,CAA+B;AAC1E,yCAAyC,GAAG,CAAgC;AAC5E,yCAAiC,GAAG,CAAwB;AAC5D,yCAA6C,GAAG,CAAoC;AAC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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"}
|
package/dist/module.js
CHANGED
|
@@ -1,139 +1,231 @@
|
|
|
1
|
-
import { useProvider } from "@react-spectrum/provider";
|
|
2
|
-
import _react from "react";
|
|
3
|
-
import { filterDOMProps } from "@react-aria/utils";
|
|
4
|
-
import { classNames, useSlotProps, useStyleProps } from "@react-spectrum/utils";
|
|
5
|
-
import _babelRuntimeHelpersEsmObjectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
6
|
-
import _babelRuntimeHelpersEsmExtends from "@babel/runtime/helpers/esm/extends";
|
|
7
1
|
import "./main.css";
|
|
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";
|
|
8
6
|
|
|
9
7
|
function $parcel$interopDefault(a) {
|
|
10
8
|
return a && a.__esModule ? a.default : a;
|
|
11
9
|
}
|
|
10
|
+
function $parcel$export(e, n, v, s) {
|
|
11
|
+
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
12
|
+
}
|
|
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";
|
|
12
162
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
$
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"spectrum-Icon--sizeXXL": "_spectrum-Icon--sizeXXL_8ac98",
|
|
25
|
-
"spectrum--medium": "_spectrum--medium_8ac98",
|
|
26
|
-
"spectrum-UIIcon--large": "_spectrum-UIIcon--large_8ac98",
|
|
27
|
-
"spectrum-UIIcon--medium": "_spectrum-UIIcon--medium_8ac98",
|
|
28
|
-
"spectrum--large": "_spectrum--large_8ac98",
|
|
29
|
-
"spectrum-UIIcon-AlertMedium": "_spectrum-UIIcon-AlertMedium_8ac98",
|
|
30
|
-
"spectrum-UIIcon-AlertSmall": "_spectrum-UIIcon-AlertSmall_8ac98",
|
|
31
|
-
"spectrum-UIIcon-ArrowDownSmall": "_spectrum-UIIcon-ArrowDownSmall_8ac98",
|
|
32
|
-
"spectrum-UIIcon-ArrowLeftMedium": "_spectrum-UIIcon-ArrowLeftMedium_8ac98",
|
|
33
|
-
"spectrum-UIIcon-Asterisk": "_spectrum-UIIcon-Asterisk_8ac98",
|
|
34
|
-
"spectrum-UIIcon-CheckmarkMedium": "_spectrum-UIIcon-CheckmarkMedium_8ac98",
|
|
35
|
-
"spectrum-UIIcon-CheckmarkSmall": "_spectrum-UIIcon-CheckmarkSmall_8ac98",
|
|
36
|
-
"spectrum-UIIcon-ChevronDownMedium": "_spectrum-UIIcon-ChevronDownMedium_8ac98",
|
|
37
|
-
"spectrum-UIIcon-ChevronDownSmall": "_spectrum-UIIcon-ChevronDownSmall_8ac98",
|
|
38
|
-
"spectrum-UIIcon-ChevronLeftLarge": "_spectrum-UIIcon-ChevronLeftLarge_8ac98",
|
|
39
|
-
"spectrum-UIIcon-ChevronLeftMedium": "_spectrum-UIIcon-ChevronLeftMedium_8ac98",
|
|
40
|
-
"spectrum-UIIcon-ChevronRightLarge": "_spectrum-UIIcon-ChevronRightLarge_8ac98",
|
|
41
|
-
"spectrum-UIIcon-ChevronRightMedium": "_spectrum-UIIcon-ChevronRightMedium_8ac98",
|
|
42
|
-
"spectrum-UIIcon-ChevronRightSmall": "_spectrum-UIIcon-ChevronRightSmall_8ac98",
|
|
43
|
-
"spectrum-UIIcon-ChevronUpSmall": "_spectrum-UIIcon-ChevronUpSmall_8ac98",
|
|
44
|
-
"spectrum-UIIcon-CornerTriangle": "_spectrum-UIIcon-CornerTriangle_8ac98",
|
|
45
|
-
"spectrum-UIIcon-CrossLarge": "_spectrum-UIIcon-CrossLarge_8ac98",
|
|
46
|
-
"spectrum-UIIcon-CrossMedium": "_spectrum-UIIcon-CrossMedium_8ac98",
|
|
47
|
-
"spectrum-UIIcon-CrossSmall": "_spectrum-UIIcon-CrossSmall_8ac98",
|
|
48
|
-
"spectrum-UIIcon-DashSmall": "_spectrum-UIIcon-DashSmall_8ac98",
|
|
49
|
-
"spectrum-UIIcon-DoubleGripper": "_spectrum-UIIcon-DoubleGripper_8ac98",
|
|
50
|
-
"spectrum-UIIcon-FolderBreadcrumb": "_spectrum-UIIcon-FolderBreadcrumb_8ac98",
|
|
51
|
-
"spectrum-UIIcon-HelpMedium": "_spectrum-UIIcon-HelpMedium_8ac98",
|
|
52
|
-
"spectrum-UIIcon-HelpSmall": "_spectrum-UIIcon-HelpSmall_8ac98",
|
|
53
|
-
"spectrum-UIIcon-InfoMedium": "_spectrum-UIIcon-InfoMedium_8ac98",
|
|
54
|
-
"spectrum-UIIcon-InfoSmall": "_spectrum-UIIcon-InfoSmall_8ac98",
|
|
55
|
-
"spectrum-UIIcon-Magnifier": "_spectrum-UIIcon-Magnifier_8ac98",
|
|
56
|
-
"spectrum-UIIcon-SkipLeft": "_spectrum-UIIcon-SkipLeft_8ac98",
|
|
57
|
-
"spectrum-UIIcon-SkipRight": "_spectrum-UIIcon-SkipRight_8ac98",
|
|
58
|
-
"spectrum-UIIcon-Star": "_spectrum-UIIcon-Star_8ac98",
|
|
59
|
-
"spectrum-UIIcon-StarOutline": "_spectrum-UIIcon-StarOutline_8ac98",
|
|
60
|
-
"spectrum-UIIcon-SuccessMedium": "_spectrum-UIIcon-SuccessMedium_8ac98",
|
|
61
|
-
"spectrum-UIIcon-SuccessSmall": "_spectrum-UIIcon-SuccessSmall_8ac98",
|
|
62
|
-
"spectrum-UIIcon-TripleGripper": "_spectrum-UIIcon-TripleGripper_8ac98"
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
function $095fb0f3c15b57e7$var$iconColorValue(value) {
|
|
166
|
+
return `var(--spectrum-semantic-${value}-color-icon)`;
|
|
167
|
+
}
|
|
168
|
+
const $095fb0f3c15b57e7$var$iconStyleProps = {
|
|
169
|
+
...$g2IY6$baseStyleProps,
|
|
170
|
+
color: [
|
|
171
|
+
'color',
|
|
172
|
+
$095fb0f3c15b57e7$var$iconColorValue
|
|
173
|
+
]
|
|
63
174
|
};
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
let provider = useProvider();
|
|
84
|
-
let scale = 'M';
|
|
85
|
-
|
|
86
|
-
if (provider !== null) {
|
|
87
|
-
scale = provider.scale === 'large' ? 'L' : 'M';
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
if (!ariaHidden) {
|
|
91
|
-
ariaHidden = undefined;
|
|
92
|
-
} // Use user specified size, falling back to provider scale if size is undef
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
let iconSize = size ? size : scale;
|
|
96
|
-
return _react.cloneElement(children, _babelRuntimeHelpersEsmExtends({}, filterDOMProps(otherProps), styleProps, {
|
|
97
|
-
focusable: 'false',
|
|
98
|
-
'aria-label': ariaLabel,
|
|
99
|
-
'aria-hidden': ariaLabel ? ariaHidden || undefined : true,
|
|
100
|
-
role: 'img',
|
|
101
|
-
className: classNames($e0403de4450d623122b2d93055f70571$$interop$default, children.props.className, 'spectrum-Icon', "spectrum-Icon--size" + iconSize, styleProps.className)
|
|
102
|
-
}));
|
|
175
|
+
function $095fb0f3c15b57e7$export$f04a61298a47a40f(props) {
|
|
176
|
+
props = $g2IY6$useSlotProps(props, 'icon');
|
|
177
|
+
let { children: children , size: size , 'aria-label': ariaLabel , 'aria-hidden': ariaHidden , ...otherProps } = props;
|
|
178
|
+
let { styleProps: styleProps } = $g2IY6$useStyleProps(otherProps, $095fb0f3c15b57e7$var$iconStyleProps);
|
|
179
|
+
let provider = $g2IY6$useProvider();
|
|
180
|
+
let scale = 'M';
|
|
181
|
+
if (provider !== null) scale = provider.scale === 'large' ? 'L' : 'M';
|
|
182
|
+
if (!ariaHidden) ariaHidden = undefined;
|
|
183
|
+
// Use user specified size, falling back to provider scale if size is undef
|
|
184
|
+
let iconSize = size ? size : scale;
|
|
185
|
+
return(/*#__PURE__*/ $g2IY6$react.cloneElement(children, {
|
|
186
|
+
...$g2IY6$filterDOMProps(otherProps),
|
|
187
|
+
...styleProps,
|
|
188
|
+
focusable: 'false',
|
|
189
|
+
'aria-label': ariaLabel,
|
|
190
|
+
'aria-hidden': ariaLabel ? ariaHidden || undefined : true,
|
|
191
|
+
role: 'img',
|
|
192
|
+
className: $g2IY6$classNames((/*@__PURE__*/$parcel$interopDefault($336bf6b5045920dd$exports)), children.props.className, 'spectrum-Icon', `spectrum-Icon--size${iconSize}`, styleProps.className)
|
|
193
|
+
}));
|
|
103
194
|
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
className: classNames($e0403de4450d623122b2d93055f70571$$interop$default, children.props.className, 'spectrum-Icon', {
|
|
135
|
-
["spectrum-UIIcon-" + children.type['displayName']]: children.type['displayName']
|
|
136
|
-
}, styleProps.className)
|
|
137
|
-
}));
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
var $ec7b4c55131f9ae9$exports = {};
|
|
198
|
+
|
|
199
|
+
$parcel$export($ec7b4c55131f9ae9$exports, "UIIcon", () => $ec7b4c55131f9ae9$export$906cc5990ff10700);
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
function $ec7b4c55131f9ae9$export$906cc5990ff10700(props) {
|
|
206
|
+
props = $g2IY6$useSlotProps(props, 'icon');
|
|
207
|
+
let { children: children , 'aria-label': ariaLabel , 'aria-hidden': ariaHidden , ...otherProps } = props;
|
|
208
|
+
let { styleProps: styleProps } = $g2IY6$useStyleProps(otherProps);
|
|
209
|
+
let provider = $g2IY6$useProvider();
|
|
210
|
+
let scale = 'M';
|
|
211
|
+
if (provider !== null) scale = provider.scale === 'large' ? 'L' : 'M';
|
|
212
|
+
if (!ariaHidden) ariaHidden = undefined;
|
|
213
|
+
return(/*#__PURE__*/ $g2IY6$react.cloneElement(children, {
|
|
214
|
+
...$g2IY6$filterDOMProps(otherProps),
|
|
215
|
+
...styleProps,
|
|
216
|
+
scale: scale,
|
|
217
|
+
focusable: 'false',
|
|
218
|
+
'aria-label': ariaLabel,
|
|
219
|
+
'aria-hidden': ariaLabel ? ariaHidden || undefined : true,
|
|
220
|
+
role: 'img',
|
|
221
|
+
className: $g2IY6$classNames((/*@__PURE__*/$parcel$interopDefault($336bf6b5045920dd$exports)), children.props.className, 'spectrum-Icon', {
|
|
222
|
+
[`spectrum-UIIcon-${children.type['displayName']}`]: children.type['displayName']
|
|
223
|
+
}, styleProps.className)
|
|
224
|
+
}));
|
|
138
225
|
}
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
export {$095fb0f3c15b57e7$export$f04a61298a47a40f as Icon, $ec7b4c55131f9ae9$export$906cc5990ff10700 as UIIcon};
|
|
139
231
|
//# sourceMappingURL=module.js.map
|
package/dist/module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;AAAA,SAASA,sBAAT,CAAgCC,CAAhC,EAAmC;AACjC,SAAOA,CAAC,IAAIA,CAAC,CAACC,UAAP,GAAoBD,CAAC,CAACE,OAAtB,GAAgCF,CAAvC;AACD;;;;ACFD,4CAAiB;AACf,mBAAiB,sBADF;AAEf,qBAAmB,wBAFJ;AAGf,4BAA0B,+BAHX;AAIf,2BAAyB,8BAJV;AAKf,0BAAwB,6BALT;AAMf,0BAAwB,6BANT;AAOf,0BAAwB,6BAPT;AAQf,2BAAyB,8BARV;AASf,4BAA0B,+BATX;AAUf,sBAAoB,yBAVL;AAWf,4BAA0B,+BAXX;AAYf,6BAA2B,gCAZZ;AAaf,qBAAmB,wBAbJ;AAcf,iCAA+B,oCAdhB;AAef,gCAA8B,mCAff;AAgBf,oCAAkC,uCAhBnB;AAiBf,qCAAmC,wCAjBpB;AAkBf,8BAA4B,iCAlBb;AAmBf,qCAAmC,wCAnBpB;AAoBf,oCAAkC,uCApBnB;AAqBf,uCAAqC,0CArBtB;AAsBf,sCAAoC,yCAtBrB;AAuBf,sCAAoC,yCAvBrB;AAwBf,uCAAqC,0CAxBtB;AAyBf,uCAAqC,0CAzBtB;AA0Bf,wCAAsC,2CA1BvB;AA2Bf,uCAAqC,0CA3BtB;AA4Bf,oCAAkC,uCA5BnB;AA6Bf,oCAAkC,uCA7BnB;AA8Bf,gCAA8B,mCA9Bf;AA+Bf,iCAA+B,oCA/BhB;AAgCf,gCAA8B,mCAhCf;AAiCf,+BAA6B,kCAjCd;AAkCf,mCAAiC,sCAlClB;AAmCf,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BD","sources":["./node_modules/@parcel/scope-hoisting/lib/helpers.js","./node_modules/@adobe/spectrum-css-temp/components/icon/vars.css","./packages/@react-spectrum/icon/src/Icon.tsx","./packages/@react-spectrum/icon/src/UIIcon.tsx"],"sourcesContent":["function $parcel$interopDefault(a) {\n return a && a.__esModule ? a.default : a;\n}\n\nfunction $parcel$defineInteropFlag(a) {\n Object.defineProperty(a, '__esModule', {value: true});\n}\n\nfunction $parcel$exportWildcard(dest, source) {\n Object.keys(source).forEach(function(key) {\n if (key === 'default' || key === '__esModule') {\n return;\n }\n\n Object.defineProperty(dest, key, {\n enumerable: true,\n get: function get() {\n return source[key];\n },\n });\n });\n\n return dest;\n}\n\nfunction $parcel$missingModule(name) {\n var err = new Error(\"Cannot find module '\" + name + \"'\");\n err.code = 'MODULE_NOT_FOUND';\n throw err;\n}\n\nvar $parcel$global =\n typeof globalThis !== 'undefined'\n ? globalThis\n : typeof self !== 'undefined'\n ? self\n : typeof window !== 'undefined'\n ? window\n : typeof global !== 'undefined'\n ? global\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\ntype Scale = 'M' | 'L'\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\nexport type IconPropsWithoutChildren = Omit<IconProps, 'children'>;\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);\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\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":["$parcel$interopDefault","a","__esModule","default","Icon","props","useSlotProps","children","size","ariaLabel","ariaHidden","otherProps","styleProps","useStyleProps","provider","useProvider","scale","undefined","iconSize","React","cloneElement","filterDOMProps","focusable","role","className","classNames","UIIcon","type"],"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,GAA+C;AA9C/C,yCAA+B,GAAG,CAAsB;AACxD,yCAAiC,GAAG,CAAwB;AAC5D,yCAAwC,GAAG,CAA+B;AAC1E,yCAAuC,GAAG,CAA8B;AACxE,wCAAsC,GAAG,CAA6B;AACtE,yCAAsC,GAAG,CAA6B;AACtE,yCAAsC,GAAG,CAA6B;AACtE,yCAAuC,GAAG,CAA8B;AACxE,yCAAwC,GAAG,CAA+B;AAC1E,yCAAkC,GAAG,CAAyB;AAC9D,yCAAwC,GAAG,CAA+B;AAC1E,yCAAyC,GAAG,CAAgC;AAC5E,yCAAiC,GAAG,CAAwB;AAC5D,yCAA6C,GAAG,CAAoC;AACpF,yCAA4C,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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/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AriaLabelingProps, DOMProps, StyleProps } from "@react-types/shared";
|
|
1
|
+
import { AriaLabelingProps, DOMProps, IconColorValue, StyleProps } from "@react-types/shared";
|
|
2
2
|
import React, { ReactElement } from "react";
|
|
3
3
|
interface IconProps extends DOMProps, AriaLabelingProps, StyleProps {
|
|
4
4
|
/**
|
|
@@ -22,12 +22,16 @@ interface IconProps extends DOMProps, AriaLabelingProps, StyleProps {
|
|
|
22
22
|
* Indicates whether the element is exposed to an accessibility API.
|
|
23
23
|
*/
|
|
24
24
|
'aria-hidden'?: boolean | 'false' | 'true';
|
|
25
|
+
/**
|
|
26
|
+
* Color of the Icon.
|
|
27
|
+
*/
|
|
28
|
+
color?: IconColorValue;
|
|
25
29
|
}
|
|
26
30
|
export type IconPropsWithoutChildren = Omit<IconProps, 'children'>;
|
|
27
31
|
/**
|
|
28
32
|
* 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.
|
|
29
33
|
*/
|
|
30
|
-
export function Icon(props: IconProps): React.ReactElement<any, string |
|
|
34
|
+
export function Icon(props: IconProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
31
35
|
interface _IconProps1 extends DOMProps, AriaLabelingProps, StyleProps {
|
|
32
36
|
children: ReactElement;
|
|
33
37
|
slot?: string;
|
|
@@ -37,6 +41,6 @@ interface _IconProps1 extends DOMProps, AriaLabelingProps, StyleProps {
|
|
|
37
41
|
'aria-hidden'?: boolean | 'false' | 'true';
|
|
38
42
|
}
|
|
39
43
|
export type UIIconPropsWithoutChildren = Omit<_IconProps1, 'children'>;
|
|
40
|
-
export function UIIcon(props: _IconProps1): React.ReactElement<any, string |
|
|
44
|
+
export function UIIcon(props: _IconProps1): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
41
45
|
|
|
42
46
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"
|
|
1
|
+
{"mappings":";;AAmBA,mBAAoB,SAAQ,QAAQ,EAAE,iBAAiB,EAAE,UAAU;IACjE;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,EAAE,YAAY,CAAC;IACvB;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAE,IAAI,GAAG,KAAK,CAAC;IACpD;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC;IAC3C;;OAEG;IACH,KAAK,CAAC,EAAE,cAAc,CAAA;CACvB;AAED,uCAAuC,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;AAWnE;;GAEG;AACH,qBAAqB,KAAK,EAAE,SAAS,sEAqCpC;AC/ED,qBAAoB,SAAQ,QAAQ,EAAE,iBAAiB,EAAE,UAAU;IACjE,QAAQ,EAAE,YAAY,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,CAAA;CAC3C;AAED,yCAAyC,IAAI,CAAC,WAAS,EAAE,UAAU,CAAC,CAAC;AAErE,uBAAuB,KAAK,EAAE,WAAS,sEAqCtC","sources":["packages/@react-spectrum/icon/src/packages/@react-spectrum/icon/src/Icon.tsx","packages/@react-spectrum/icon/src/packages/@react-spectrum/icon/src/UIIcon.tsx","packages/@react-spectrum/icon/src/packages/@react-spectrum/icon/src/index.ts","packages/@react-spectrum/icon/src/index.ts"],"sourcesContent":[null,null,null,"/*\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"],"names":[],"version":3,"file":"types.d.ts.map"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-spectrum/icon",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.3",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -32,16 +32,19 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@babel/runtime": "^7.6.2",
|
|
35
|
-
"@react-aria/utils": "^3.
|
|
36
|
-
"@react-spectrum/utils": "^3.
|
|
37
|
-
"@react-types/shared": "^3.
|
|
35
|
+
"@react-aria/utils": "^3.11.1",
|
|
36
|
+
"@react-spectrum/utils": "^3.6.4",
|
|
37
|
+
"@react-types/shared": "^3.11.0"
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@adobe/spectrum-css-temp": "3.0.0-alpha.1"
|
|
38
41
|
},
|
|
39
42
|
"peerDependencies": {
|
|
40
|
-
"@react-spectrum/provider": "^3.0.0
|
|
43
|
+
"@react-spectrum/provider": "^3.0.0",
|
|
41
44
|
"react": "^16.8.0 || ^17.0.0-rc.1"
|
|
42
45
|
},
|
|
43
46
|
"publishConfig": {
|
|
44
47
|
"access": "public"
|
|
45
48
|
},
|
|
46
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "54c2366c4f31bd4bf619126131cd583c12972acc"
|
|
47
50
|
}
|
package/src/Icon.tsx
CHANGED
|
@@ -10,15 +10,13 @@
|
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import {AriaLabelingProps, DOMProps, StyleProps} from '@react-types/shared';
|
|
14
|
-
import {classNames, useSlotProps, useStyleProps} from '@react-spectrum/utils';
|
|
13
|
+
import {AriaLabelingProps, DOMProps, IconColorValue, StyleProps} from '@react-types/shared';
|
|
14
|
+
import {baseStyleProps, classNames, StyleHandlers, useSlotProps, useStyleProps} from '@react-spectrum/utils';
|
|
15
15
|
import {filterDOMProps} from '@react-aria/utils';
|
|
16
16
|
import React, {ReactElement} from 'react';
|
|
17
17
|
import styles from '@adobe/spectrum-css-temp/components/icon/vars.css';
|
|
18
18
|
import {useProvider} from '@react-spectrum/provider';
|
|
19
19
|
|
|
20
|
-
type Scale = 'M' | 'L'
|
|
21
|
-
|
|
22
20
|
interface IconProps extends DOMProps, AriaLabelingProps, StyleProps {
|
|
23
21
|
/**
|
|
24
22
|
* A screen reader only label for the Icon.
|
|
@@ -40,11 +38,24 @@ interface IconProps extends DOMProps, AriaLabelingProps, StyleProps {
|
|
|
40
38
|
/**
|
|
41
39
|
* Indicates whether the element is exposed to an accessibility API.
|
|
42
40
|
*/
|
|
43
|
-
'aria-hidden'?: boolean | 'false' | 'true'
|
|
41
|
+
'aria-hidden'?: boolean | 'false' | 'true',
|
|
42
|
+
/**
|
|
43
|
+
* Color of the Icon.
|
|
44
|
+
*/
|
|
45
|
+
color?: IconColorValue
|
|
44
46
|
}
|
|
45
47
|
|
|
46
48
|
export type IconPropsWithoutChildren = Omit<IconProps, 'children'>;
|
|
47
49
|
|
|
50
|
+
function iconColorValue(value: IconColorValue) {
|
|
51
|
+
return `var(--spectrum-semantic-${value}-color-icon)`;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
const iconStyleProps: StyleHandlers = {
|
|
55
|
+
...baseStyleProps,
|
|
56
|
+
color: ['color', iconColorValue]
|
|
57
|
+
};
|
|
58
|
+
|
|
48
59
|
/**
|
|
49
60
|
* 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.
|
|
50
61
|
*/
|
|
@@ -57,7 +68,7 @@ export function Icon(props: IconProps) {
|
|
|
57
68
|
'aria-hidden': ariaHidden,
|
|
58
69
|
...otherProps
|
|
59
70
|
} = props;
|
|
60
|
-
let {styleProps} = useStyleProps(otherProps);
|
|
71
|
+
let {styleProps} = useStyleProps(otherProps, iconStyleProps);
|
|
61
72
|
|
|
62
73
|
let provider = useProvider();
|
|
63
74
|
let scale = 'M';
|
package/dist/main.css.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":"AAYA,8CAEE,oBAAqB,CAGrB,aAAc,CAGd,iBAAkB,CAQlB,mBACF,CANE,oEACE,eACF,CCFA,qGAGE,0DAAyC,CACzC,yDACF,CAIA,kGAGE,0DAAwC,CACxC,yDACF,CAIA,+FAGE,gDAAuC,CACvC,+CACF,CAIA,+FAGE,gDAAuC,CACvC,+CACF,CAIA,+FAGE,0DAAuC,CACvC,yDACF,CAIA,kGAGE,0DAAwC,CACxC,yDACF,CAIA,qGAGE,0DAAyC,CACzC,yDACF,CCpEA,wDACE,YACF,CACA,yDACE,cACF,CAIA,wDACE,YACF,CACA,uDACE,cACF,CAIF,wBACE,6BAA+B,CAC/B,6BACF,CACA,yBACE,8BAAgC,CAChC,4BACF,CAEA,+BACE,oCACF,CACA,gCACE,qCACF,CAGA,oCACE,+CAAoD,CACpD,gDACF,CACA,mCACE,+CAAmD,CACnD,gDACF,CACA,uCACE,+CAAwD,CACxD,mDACF,CACA,wCACE,+CAAyD,CACzD,oDACF,CACA,iCACE,+CAAqD,CACrD,gDACF,CACA,wCACE,iDAAwD,CACxD,mDACF,CACA,uCACE,gDAAuD,CACvD,kDACF,CACA,0CACE,oDAA2D,CAC3D,+CACF,CACA,yCACE,+CAA0D,CAC1D,+CACF,CACA,yCACE,mDAA0D,CAC1D,gDACF,CACA,0CACE,8CAA2D,CAC3D,sDACF,CACA,0CACE,oDAA2D,CAC3D,gDACF,CACA,2CACE,8CAA4D,CAC5D,uDACF,CACA,0CACE,8CAA2D,CAC3D,gDACF,CACA,uCACE,+CAAwD,CACxD,+CACF,CACA,uCACE,8CAAsD,CACtD,+CACF,CACA,mCACE,4CAAmD,CACnD,8CACF,CAKA,uEACE,+CAAmD,CACnD,gDACF,CACA,kCACE,2CAAkD,CAClD,6CACF,CACA,sCACE,+CAAqD,CACrD,+CACF,CAKA,4EACE,+CAAmD,CACnD,gDACF,CACA,kCACE,+CAAkD,CAClD,gDACF,CACA,mCACE,+CAAmD,CACnD,gDACF,CACA,kCACE,+CAAkD,CAClD,gDACF,CACA,kCACE,+CAAiD,CACjD,gDACF,CACA,iCACE,0CAAiD,CACjD,4CACF,CACA,kCACE,2CAAkD,CAClD,6CACF,CASA,uGACE,+CAAsD,CACtD,gDACF,CACA,qCACE,+CAAqD,CACrD,gDACF,CACA,sCACE,8CAAqD,CACrD,+CACF","sources":["./node_modules/@adobe/spectrum-css-temp/components/icon/icons.css","./node_modules/@adobe/spectrum-css-temp/components/icon/workflow-icons.css","./node_modules/@adobe/spectrum-css-temp/components/icon/ui-icons.css"],"sourcesContent":["/*\nCopyright 2019 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\n.spectrum-Icon,\n.spectrum-UIIcon {\n display: inline-block;\n\n /* Inherit the text color */\n color: inherit;\n\n /* Fill should match the current text color */\n fill: currentColor;\n\n /* Hide the svg overflow in IE. */\n &:not(:root) {\n overflow: hidden;\n }\n\n /* Don't catch clicks or hover, otherwise they may not escape the SVG */\n pointer-events: none;\n}\n","/*\nCopyright 2019 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\n:root {\n --spectrum-icon-size-s: var(--spectrum-alias-workflow-icon-size);\n --spectrum-icon-size-m: var(--spectrum-global-dimension-size-300);\n --spectrum-icon-size-xxs: calc(var(--spectrum-icon-size-s) / 2);\n --spectrum-icon-size-xs: calc(var(--spectrum-icon-size-m) / 2);\n --spectrum-icon-size-l: calc(var(--spectrum-icon-size-s) * 2);\n --spectrum-icon-size-xl: calc(var(--spectrum-icon-size-m) * 2);\n --spectrum-icon-size-xxl: calc(var(--spectrum-icon-size-m) * 3);\n}\n\n.spectrum-Icon--sizeXXS {\n &,\n img,\n svg {\n block-size: var(--spectrum-icon-size-xxs);\n inline-size: var(--spectrum-icon-size-xxs);\n }\n}\n\n.spectrum-Icon--sizeXS {\n &,\n img,\n svg {\n block-size: var(--spectrum-icon-size-xs);\n inline-size: var(--spectrum-icon-size-xs);\n }\n}\n\n.spectrum-Icon--sizeS {\n &,\n img,\n svg {\n block-size: var(--spectrum-icon-size-s);\n inline-size: var(--spectrum-icon-size-s);\n }\n}\n\n.spectrum-Icon--sizeM {\n &,\n img,\n svg {\n block-size: var(--spectrum-icon-size-m);\n inline-size: var(--spectrum-icon-size-m);\n }\n}\n\n.spectrum-Icon--sizeL {\n &,\n img,\n svg {\n block-size: var(--spectrum-icon-size-l);\n inline-size: var(--spectrum-icon-size-l);\n }\n}\n\n.spectrum-Icon--sizeXL {\n &,\n img,\n svg {\n block-size: var(--spectrum-icon-size-xl);\n inline-size: var(--spectrum-icon-size-xl);\n }\n}\n\n.spectrum-Icon--sizeXXL {\n &,\n img,\n svg {\n block-size: var(--spectrum-icon-size-xxl);\n inline-size: var(--spectrum-icon-size-xxl);\n }\n}\n","/*\nCopyright 2019 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\n/* Hide UI icons on older browsers with SVG 1.1 implementations */\n.spectrum--medium {\n .spectrum-UIIcon--large {\n display: none;\n }\n .spectrum-UIIcon--medium {\n display: inline;\n }\n}\n\n.spectrum--large {\n .spectrum-UIIcon--medium {\n display: none;\n }\n .spectrum-UIIcon--large {\n display: inline;\n }\n}\n\n/* Hide UI icons on browsers that implement SVG 2 correctly (Firefox 56+) */\n.spectrum--large {\n x--ui-icon-large-display: block;\n x--ui-icon-medium-display: none;\n}\n.spectrum--medium {\n x--ui-icon-medium-display: block;\n x--ui-icon-large-display: none;\n}\n\n.spectrum-UIIcon--large {\n display: xvar(--ui-icon-large-display);\n}\n.spectrum-UIIcon--medium {\n display: xvar(--ui-icon-medium-display);\n}\n\n/* UI Icons */\n.spectrum-UIIcon-AlertMedium {\n inline-size: var(--spectrum-icon-alert-medium-width);\n block-size: var(--spectrum-icon-alert-medium-height);\n}\n.spectrum-UIIcon-AlertSmall {\n inline-size: var(--spectrum-icon-alert-small-width);\n block-size: var(--spectrum-icon-alert-small-height);\n}\n.spectrum-UIIcon-ArrowDownSmall {\n inline-size: var(--spectrum-icon-arrow-down-small-width);\n block-size: var(--spectrum-icon-arrow-down-small-height);\n}\n.spectrum-UIIcon-ArrowLeftMedium {\n inline-size: var(--spectrum-icon-arrow-left-medium-width);\n block-size: var(--spectrum-icon-arrow-left-medium-height);\n}\n.spectrum-UIIcon-Asterisk {\n inline-size: var(--spectrum-fieldlabel-asterisk-size);\n block-size: var(--spectrum-fieldlabel-asterisk-size);\n}\n.spectrum-UIIcon-CheckmarkMedium {\n inline-size: var(--spectrum-icon-checkmark-medium-width);\n block-size: var(--spectrum-icon-checkmark-medium-height);\n}\n.spectrum-UIIcon-CheckmarkSmall {\n inline-size: var(--spectrum-icon-checkmark-small-width);\n block-size: var(--spectrum-icon-checkmark-small-height);\n}\n.spectrum-UIIcon-ChevronDownMedium {\n inline-size: var(--spectrum-icon-chevron-down-medium-width);\n block-size: var(--spectrum-icon-chevron-down-medium-height);\n}\n.spectrum-UIIcon-ChevronDownSmall {\n inline-size: var(--spectrum-icon-chevron-down-small-width);\n block-size: var(--spectrum-icon-chevron-down-small-height);\n}\n.spectrum-UIIcon-ChevronLeftLarge {\n inline-size: var(--spectrum-icon-chevron-left-large-width);\n block-size: var(--spectrum-icon-chevron-left-large-height);\n}\n.spectrum-UIIcon-ChevronLeftMedium {\n inline-size: var(--spectrum-icon-chevron-left-medium-width);\n block-size: var(--spectrum-icon-chevron-left-medium-height);\n}\n.spectrum-UIIcon-ChevronRightLarge {\n inline-size: var(--spectrum-icon-chevron-right-large-width);\n block-size: var(--spectrum-icon-chevron-right-large-height);\n}\n.spectrum-UIIcon-ChevronRightMedium {\n inline-size: var(--spectrum-icon-chevron-right-medium-width);\n block-size: var(--spectrum-icon-chevron-right-medium-height);\n}\n.spectrum-UIIcon-ChevronRightSmall {\n inline-size: var(--spectrum-icon-chevron-right-small-width);\n block-size: var(--spectrum-icon-chevron-right-small-height);\n}\n.spectrum-UIIcon-ChevronUpSmall {\n inline-size: var(--spectrum-icon-chevron-up-small-width);\n block-size: var(--spectrum-icon-chevron-up-small-height);\n}\n.spectrum-UIIcon-CornerTriangle {\n inline-size: var(--spectrum-icon-cornertriangle-width);\n block-size: var(--spectrum-icon-cornertriangle-height);\n}\n.spectrum-UIIcon-CrossLarge {\n inline-size: var(--spectrum-icon-cross-large-width);\n block-size: var(--spectrum-icon-cross-large-height);\n}\n.spectrum-UIIcon-CrossMedium {\n inline-size: var(--spectrum-icon-cross-medium-width);\n block-size: var(--spectrum-icon-cross-medium-height);\n}\n.spectrum-UIIcon-CrossSmall {\n inline-size: var(--spectrum-icon-cross-small-width);\n block-size: var(--spectrum-icon-cross-small-height);\n}\n.spectrum-UIIcon-DashSmall {\n inline-size: var(--spectrum-icon-dash-small-width);\n block-size: var(--spectrum-icon-dash-small-height);\n}\n.spectrum-UIIcon-DoubleGripper {\n inline-size: var(--spectrum-icon-doublegripper-width);\n block-size: var(--spectrum-icon-doublegripper-height);\n}\n.spectrum-UIIcon-FolderBreadcrumb {\n inline-size: var(--spectrum-icon-folderbreadcrumb-width);\n block-size: var(--spectrum-icon-folderbreadcrumb-height);\n}\n.spectrum-UIIcon-HelpMedium {\n inline-size: var(--spectrum-icon-info-medium-width);\n block-size: var(--spectrum-icon-info-medium-height);\n}\n.spectrum-UIIcon-HelpSmall {\n inline-size: var(--spectrum-icon-info-small-width);\n block-size: var(--spectrum-icon-info-small-height);\n}\n.spectrum-UIIcon-InfoMedium {\n inline-size: var(--spectrum-icon-info-medium-width);\n block-size: var(--spectrum-icon-info-medium-height);\n}\n.spectrum-UIIcon-InfoSmall {\n inline-size: var(--spectrum-icon-info-small-width);\n block-size: var(--spectrum-icon-info-small-height);\n}\n.spectrum-UIIcon-Magnifier {\n inline-size: var(--spectrum-icon-magnifier-width);\n block-size: var(--spectrum-icon-magnifier-height);\n}\n.spectrum-UIIcon-SkipLeft {\n inline-size: var(--spectrum-icon-skip-left-width);\n block-size: var(--spectrum-icon-skip-left-height);\n}\n.spectrum-UIIcon-SkipRight {\n inline-size: var(--spectrum-icon-skip-right-width);\n block-size: var(--spectrum-icon-skip-right-height);\n}\n.spectrum-UIIcon-Star {\n inline-size: var(--spectrum-icon-star-width);\n block-size: var(--spectrum-icon-star-height);\n}\n.spectrum-UIIcon-StarOutline {\n inline-size: var(--spectrum-icon-star-outline-width);\n block-size: var(--spectrum-icon-star-outline-height);\n}\n.spectrum-UIIcon-SuccessMedium {\n inline-size: var(--spectrum-icon-success-medium-width);\n block-size: var(--spectrum-icon-success-medium-height);\n}\n.spectrum-UIIcon-SuccessSmall {\n inline-size: var(--spectrum-icon-success-small-width);\n block-size: var(--spectrum-icon-success-small-height);\n}\n.spectrum-UIIcon-TripleGripper {\n inline-size: var(--spectrum-icon-triplegripper-width);\n block-size: var(--spectrum-icon-triplegripper-height);\n}\n"],"names":[],"version":3,"file":"main.css.map"}
|