@react-spectrum/icon 3.7.11 → 3.7.12
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/Icon.main.js +65 -0
- package/dist/Icon.main.js.map +1 -0
- package/dist/Icon.mjs +60 -0
- package/dist/Icon.module.js +60 -0
- package/dist/Icon.module.js.map +1 -0
- package/dist/Illustration.main.js +46 -0
- package/dist/Illustration.main.js.map +1 -0
- package/dist/Illustration.mjs +37 -0
- package/dist/Illustration.module.js +37 -0
- package/dist/Illustration.module.js.map +1 -0
- package/dist/UIIcon.main.js +56 -0
- package/dist/UIIcon.main.js.map +1 -0
- package/dist/UIIcon.mjs +51 -0
- package/dist/UIIcon.module.js +51 -0
- package/dist/UIIcon.module.js.map +1 -0
- package/dist/icon_vars_css.main.js +152 -0
- package/dist/icon_vars_css.main.js.map +1 -0
- package/dist/icon_vars_css.mjs +154 -0
- package/dist/icon_vars_css.module.js +154 -0
- package/dist/icon_vars_css.module.js.map +1 -0
- package/dist/import.mjs +3 -273
- package/dist/main.js +6 -272
- package/dist/main.js.map +1 -1
- package/dist/module.js +3 -273
- package/dist/module.js.map +1 -1
- package/dist/{main.css → vars.4163ca54.css} +8 -79
- package/dist/vars.4163ca54.css.map +1 -0
- package/package.json +5 -5
- package/dist/main.css.map +0 -1
package/dist/module.js
CHANGED
|
@@ -1,17 +1,7 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import $1Thsl$react from "react";
|
|
5
|
-
import {useProvider as $1Thsl$useProvider} from "@react-spectrum/provider";
|
|
1
|
+
import {Icon as $6bfb67578ee6effd$export$f04a61298a47a40f} from "./Icon.module.js";
|
|
2
|
+
import {UIIcon as $9ba43a63383852e3$export$906cc5990ff10700} from "./UIIcon.module.js";
|
|
3
|
+
import {Illustration as $88bb85359d3a4aed$export$d43c2e2ca9b2c105} from "./Illustration.module.js";
|
|
6
4
|
|
|
7
|
-
|
|
8
|
-
function $parcel$interopDefault(a) {
|
|
9
|
-
return a && a.__esModule ? a.default : a;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
function $parcel$export(e, n, v, s) {
|
|
13
|
-
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
14
|
-
}
|
|
15
5
|
/*
|
|
16
6
|
* Copyright 2020 Adobe. All rights reserved.
|
|
17
7
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -23,267 +13,7 @@ function $parcel$export(e, n, v, s) {
|
|
|
23
13
|
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
24
14
|
* governing permissions and limitations under the License.
|
|
25
15
|
*/ /// <reference types="css-module-types" />
|
|
26
|
-
/*
|
|
27
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
28
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
29
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
30
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
31
|
-
*
|
|
32
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
33
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
34
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
35
|
-
* governing permissions and limitations under the License.
|
|
36
|
-
*/
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
var $6edfbdaffbc9baf9$exports = {};
|
|
40
|
-
|
|
41
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum--large", () => $6edfbdaffbc9baf9$export$a88a8dbe29386d31, (v) => $6edfbdaffbc9baf9$export$a88a8dbe29386d31 = v);
|
|
42
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum--medium", () => $6edfbdaffbc9baf9$export$4c0c83b3f4303ef8, (v) => $6edfbdaffbc9baf9$export$4c0c83b3f4303ef8 = v);
|
|
43
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-Icon", () => $6edfbdaffbc9baf9$export$d374b04f30360026, (v) => $6edfbdaffbc9baf9$export$d374b04f30360026 = v);
|
|
44
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-Icon--sizeL", () => $6edfbdaffbc9baf9$export$8d23c37ef2a4f13e, (v) => $6edfbdaffbc9baf9$export$8d23c37ef2a4f13e = v);
|
|
45
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-Icon--sizeM", () => $6edfbdaffbc9baf9$export$8f1693ac47916bbf, (v) => $6edfbdaffbc9baf9$export$8f1693ac47916bbf = v);
|
|
46
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-Icon--sizeS", () => $6edfbdaffbc9baf9$export$34ce05647f0c65e, (v) => $6edfbdaffbc9baf9$export$34ce05647f0c65e = v);
|
|
47
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-Icon--sizeXL", () => $6edfbdaffbc9baf9$export$c6e70a22e841bc1b, (v) => $6edfbdaffbc9baf9$export$c6e70a22e841bc1b = v);
|
|
48
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-Icon--sizeXS", () => $6edfbdaffbc9baf9$export$557c0af6873b4222, (v) => $6edfbdaffbc9baf9$export$557c0af6873b4222 = v);
|
|
49
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-Icon--sizeXXL", () => $6edfbdaffbc9baf9$export$b37777493a27e620, (v) => $6edfbdaffbc9baf9$export$b37777493a27e620 = v);
|
|
50
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-Icon--sizeXXS", () => $6edfbdaffbc9baf9$export$cab8448604b31f43, (v) => $6edfbdaffbc9baf9$export$cab8448604b31f43 = v);
|
|
51
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon", () => $6edfbdaffbc9baf9$export$c7db7fdc5aac13aa, (v) => $6edfbdaffbc9baf9$export$c7db7fdc5aac13aa = v);
|
|
52
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon--large", () => $6edfbdaffbc9baf9$export$2265a487ad399d8b, (v) => $6edfbdaffbc9baf9$export$2265a487ad399d8b = v);
|
|
53
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon--medium", () => $6edfbdaffbc9baf9$export$a6044013cf72ddc9, (v) => $6edfbdaffbc9baf9$export$a6044013cf72ddc9 = v);
|
|
54
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon-AlertMedium", () => $6edfbdaffbc9baf9$export$83be8302c01b6478, (v) => $6edfbdaffbc9baf9$export$83be8302c01b6478 = v);
|
|
55
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon-AlertSmall", () => $6edfbdaffbc9baf9$export$57b49d6ee2e9f187, (v) => $6edfbdaffbc9baf9$export$57b49d6ee2e9f187 = v);
|
|
56
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon-ArrowDownSmall", () => $6edfbdaffbc9baf9$export$81968d05e3681b3f, (v) => $6edfbdaffbc9baf9$export$81968d05e3681b3f = v);
|
|
57
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon-ArrowLeftMedium", () => $6edfbdaffbc9baf9$export$c0d655f335b5bc31, (v) => $6edfbdaffbc9baf9$export$c0d655f335b5bc31 = v);
|
|
58
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon-Asterisk", () => $6edfbdaffbc9baf9$export$cca4342eca45562, (v) => $6edfbdaffbc9baf9$export$cca4342eca45562 = v);
|
|
59
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon-CheckmarkMedium", () => $6edfbdaffbc9baf9$export$edc4a2e9af971b26, (v) => $6edfbdaffbc9baf9$export$edc4a2e9af971b26 = v);
|
|
60
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon-CheckmarkSmall", () => $6edfbdaffbc9baf9$export$9e665cb12e71e037, (v) => $6edfbdaffbc9baf9$export$9e665cb12e71e037 = v);
|
|
61
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon-ChevronDownMedium", () => $6edfbdaffbc9baf9$export$2f91b7a7627906d5, (v) => $6edfbdaffbc9baf9$export$2f91b7a7627906d5 = v);
|
|
62
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon-ChevronDownSmall", () => $6edfbdaffbc9baf9$export$56efb4ec9eb35c07, (v) => $6edfbdaffbc9baf9$export$56efb4ec9eb35c07 = v);
|
|
63
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon-ChevronLeftLarge", () => $6edfbdaffbc9baf9$export$5861dfe1d581a528, (v) => $6edfbdaffbc9baf9$export$5861dfe1d581a528 = v);
|
|
64
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon-ChevronLeftMedium", () => $6edfbdaffbc9baf9$export$595a122b60890c78, (v) => $6edfbdaffbc9baf9$export$595a122b60890c78 = v);
|
|
65
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon-ChevronRightLarge", () => $6edfbdaffbc9baf9$export$596373794435f8bc, (v) => $6edfbdaffbc9baf9$export$596373794435f8bc = v);
|
|
66
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon-ChevronRightMedium", () => $6edfbdaffbc9baf9$export$32b379a02cafbfb3, (v) => $6edfbdaffbc9baf9$export$32b379a02cafbfb3 = v);
|
|
67
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon-ChevronRightSmall", () => $6edfbdaffbc9baf9$export$ee5de2c4d7c8faa4, (v) => $6edfbdaffbc9baf9$export$ee5de2c4d7c8faa4 = v);
|
|
68
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon-ChevronUpSmall", () => $6edfbdaffbc9baf9$export$c1cbae72fd236fd9, (v) => $6edfbdaffbc9baf9$export$c1cbae72fd236fd9 = v);
|
|
69
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon-CornerTriangle", () => $6edfbdaffbc9baf9$export$636d8cde4f6b7e6, (v) => $6edfbdaffbc9baf9$export$636d8cde4f6b7e6 = v);
|
|
70
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon-CrossLarge", () => $6edfbdaffbc9baf9$export$1f0ad4082256e3df, (v) => $6edfbdaffbc9baf9$export$1f0ad4082256e3df = v);
|
|
71
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon-CrossMedium", () => $6edfbdaffbc9baf9$export$1e0848411e254295, (v) => $6edfbdaffbc9baf9$export$1e0848411e254295 = v);
|
|
72
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon-CrossSmall", () => $6edfbdaffbc9baf9$export$1c1bddac0ae5fbe5, (v) => $6edfbdaffbc9baf9$export$1c1bddac0ae5fbe5 = v);
|
|
73
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon-DashSmall", () => $6edfbdaffbc9baf9$export$98de2b9917cd3b6a, (v) => $6edfbdaffbc9baf9$export$98de2b9917cd3b6a = v);
|
|
74
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon-DoubleGripper", () => $6edfbdaffbc9baf9$export$3c956876cb11c1e1, (v) => $6edfbdaffbc9baf9$export$3c956876cb11c1e1 = v);
|
|
75
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon-FolderBreadcrumb", () => $6edfbdaffbc9baf9$export$55cf2795737352fc, (v) => $6edfbdaffbc9baf9$export$55cf2795737352fc = v);
|
|
76
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon-HelpMedium", () => $6edfbdaffbc9baf9$export$d5d1e3e09ea6cd5, (v) => $6edfbdaffbc9baf9$export$d5d1e3e09ea6cd5 = v);
|
|
77
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon-HelpSmall", () => $6edfbdaffbc9baf9$export$f51b22382127207d, (v) => $6edfbdaffbc9baf9$export$f51b22382127207d = v);
|
|
78
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon-InfoMedium", () => $6edfbdaffbc9baf9$export$825a6c2340d3b7e5, (v) => $6edfbdaffbc9baf9$export$825a6c2340d3b7e5 = v);
|
|
79
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon-InfoSmall", () => $6edfbdaffbc9baf9$export$4828f4a6bfd26c04, (v) => $6edfbdaffbc9baf9$export$4828f4a6bfd26c04 = v);
|
|
80
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon-ListGripper", () => $6edfbdaffbc9baf9$export$1254ece141a8dac6, (v) => $6edfbdaffbc9baf9$export$1254ece141a8dac6 = v);
|
|
81
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon-Magnifier", () => $6edfbdaffbc9baf9$export$a33650c9f4cc191e, (v) => $6edfbdaffbc9baf9$export$a33650c9f4cc191e = v);
|
|
82
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon-SkipLeft", () => $6edfbdaffbc9baf9$export$9eb19533e4b8cc28, (v) => $6edfbdaffbc9baf9$export$9eb19533e4b8cc28 = v);
|
|
83
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon-SkipRight", () => $6edfbdaffbc9baf9$export$67704939e41f705a, (v) => $6edfbdaffbc9baf9$export$67704939e41f705a = v);
|
|
84
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon-Star", () => $6edfbdaffbc9baf9$export$c4d219c150b98c92, (v) => $6edfbdaffbc9baf9$export$c4d219c150b98c92 = v);
|
|
85
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon-StarOutline", () => $6edfbdaffbc9baf9$export$bcda0a6a6d7202af, (v) => $6edfbdaffbc9baf9$export$bcda0a6a6d7202af = v);
|
|
86
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon-SuccessMedium", () => $6edfbdaffbc9baf9$export$d18d2d837989a797, (v) => $6edfbdaffbc9baf9$export$d18d2d837989a797 = v);
|
|
87
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon-SuccessSmall", () => $6edfbdaffbc9baf9$export$506ac7a1a72a2c65, (v) => $6edfbdaffbc9baf9$export$506ac7a1a72a2c65 = v);
|
|
88
|
-
$parcel$export($6edfbdaffbc9baf9$exports, "spectrum-UIIcon-TripleGripper", () => $6edfbdaffbc9baf9$export$12b8600bcd969018, (v) => $6edfbdaffbc9baf9$export$12b8600bcd969018 = v);
|
|
89
|
-
var $6edfbdaffbc9baf9$export$a88a8dbe29386d31;
|
|
90
|
-
var $6edfbdaffbc9baf9$export$4c0c83b3f4303ef8;
|
|
91
|
-
var $6edfbdaffbc9baf9$export$d374b04f30360026;
|
|
92
|
-
var $6edfbdaffbc9baf9$export$8d23c37ef2a4f13e;
|
|
93
|
-
var $6edfbdaffbc9baf9$export$8f1693ac47916bbf;
|
|
94
|
-
var $6edfbdaffbc9baf9$export$34ce05647f0c65e;
|
|
95
|
-
var $6edfbdaffbc9baf9$export$c6e70a22e841bc1b;
|
|
96
|
-
var $6edfbdaffbc9baf9$export$557c0af6873b4222;
|
|
97
|
-
var $6edfbdaffbc9baf9$export$b37777493a27e620;
|
|
98
|
-
var $6edfbdaffbc9baf9$export$cab8448604b31f43;
|
|
99
|
-
var $6edfbdaffbc9baf9$export$c7db7fdc5aac13aa;
|
|
100
|
-
var $6edfbdaffbc9baf9$export$2265a487ad399d8b;
|
|
101
|
-
var $6edfbdaffbc9baf9$export$a6044013cf72ddc9;
|
|
102
|
-
var $6edfbdaffbc9baf9$export$83be8302c01b6478;
|
|
103
|
-
var $6edfbdaffbc9baf9$export$57b49d6ee2e9f187;
|
|
104
|
-
var $6edfbdaffbc9baf9$export$81968d05e3681b3f;
|
|
105
|
-
var $6edfbdaffbc9baf9$export$c0d655f335b5bc31;
|
|
106
|
-
var $6edfbdaffbc9baf9$export$cca4342eca45562;
|
|
107
|
-
var $6edfbdaffbc9baf9$export$edc4a2e9af971b26;
|
|
108
|
-
var $6edfbdaffbc9baf9$export$9e665cb12e71e037;
|
|
109
|
-
var $6edfbdaffbc9baf9$export$2f91b7a7627906d5;
|
|
110
|
-
var $6edfbdaffbc9baf9$export$56efb4ec9eb35c07;
|
|
111
|
-
var $6edfbdaffbc9baf9$export$5861dfe1d581a528;
|
|
112
|
-
var $6edfbdaffbc9baf9$export$595a122b60890c78;
|
|
113
|
-
var $6edfbdaffbc9baf9$export$596373794435f8bc;
|
|
114
|
-
var $6edfbdaffbc9baf9$export$32b379a02cafbfb3;
|
|
115
|
-
var $6edfbdaffbc9baf9$export$ee5de2c4d7c8faa4;
|
|
116
|
-
var $6edfbdaffbc9baf9$export$c1cbae72fd236fd9;
|
|
117
|
-
var $6edfbdaffbc9baf9$export$636d8cde4f6b7e6;
|
|
118
|
-
var $6edfbdaffbc9baf9$export$1f0ad4082256e3df;
|
|
119
|
-
var $6edfbdaffbc9baf9$export$1e0848411e254295;
|
|
120
|
-
var $6edfbdaffbc9baf9$export$1c1bddac0ae5fbe5;
|
|
121
|
-
var $6edfbdaffbc9baf9$export$98de2b9917cd3b6a;
|
|
122
|
-
var $6edfbdaffbc9baf9$export$3c956876cb11c1e1;
|
|
123
|
-
var $6edfbdaffbc9baf9$export$55cf2795737352fc;
|
|
124
|
-
var $6edfbdaffbc9baf9$export$d5d1e3e09ea6cd5;
|
|
125
|
-
var $6edfbdaffbc9baf9$export$f51b22382127207d;
|
|
126
|
-
var $6edfbdaffbc9baf9$export$825a6c2340d3b7e5;
|
|
127
|
-
var $6edfbdaffbc9baf9$export$4828f4a6bfd26c04;
|
|
128
|
-
var $6edfbdaffbc9baf9$export$1254ece141a8dac6;
|
|
129
|
-
var $6edfbdaffbc9baf9$export$a33650c9f4cc191e;
|
|
130
|
-
var $6edfbdaffbc9baf9$export$9eb19533e4b8cc28;
|
|
131
|
-
var $6edfbdaffbc9baf9$export$67704939e41f705a;
|
|
132
|
-
var $6edfbdaffbc9baf9$export$c4d219c150b98c92;
|
|
133
|
-
var $6edfbdaffbc9baf9$export$bcda0a6a6d7202af;
|
|
134
|
-
var $6edfbdaffbc9baf9$export$d18d2d837989a797;
|
|
135
|
-
var $6edfbdaffbc9baf9$export$506ac7a1a72a2c65;
|
|
136
|
-
var $6edfbdaffbc9baf9$export$12b8600bcd969018;
|
|
137
|
-
$6edfbdaffbc9baf9$export$a88a8dbe29386d31 = `yxBNXG_spectrum--large`;
|
|
138
|
-
$6edfbdaffbc9baf9$export$4c0c83b3f4303ef8 = `yxBNXG_spectrum--medium`;
|
|
139
|
-
$6edfbdaffbc9baf9$export$d374b04f30360026 = `yxBNXG_spectrum-Icon`;
|
|
140
|
-
$6edfbdaffbc9baf9$export$8d23c37ef2a4f13e = `yxBNXG_spectrum-Icon--sizeL`;
|
|
141
|
-
$6edfbdaffbc9baf9$export$8f1693ac47916bbf = `yxBNXG_spectrum-Icon--sizeM`;
|
|
142
|
-
$6edfbdaffbc9baf9$export$34ce05647f0c65e = `yxBNXG_spectrum-Icon--sizeS`;
|
|
143
|
-
$6edfbdaffbc9baf9$export$c6e70a22e841bc1b = `yxBNXG_spectrum-Icon--sizeXL`;
|
|
144
|
-
$6edfbdaffbc9baf9$export$557c0af6873b4222 = `yxBNXG_spectrum-Icon--sizeXS`;
|
|
145
|
-
$6edfbdaffbc9baf9$export$b37777493a27e620 = `yxBNXG_spectrum-Icon--sizeXXL`;
|
|
146
|
-
$6edfbdaffbc9baf9$export$cab8448604b31f43 = `yxBNXG_spectrum-Icon--sizeXXS`;
|
|
147
|
-
$6edfbdaffbc9baf9$export$c7db7fdc5aac13aa = `yxBNXG_spectrum-UIIcon`;
|
|
148
|
-
$6edfbdaffbc9baf9$export$2265a487ad399d8b = `yxBNXG_spectrum-UIIcon--large`;
|
|
149
|
-
$6edfbdaffbc9baf9$export$a6044013cf72ddc9 = `yxBNXG_spectrum-UIIcon--medium`;
|
|
150
|
-
$6edfbdaffbc9baf9$export$83be8302c01b6478 = `yxBNXG_spectrum-UIIcon-AlertMedium`;
|
|
151
|
-
$6edfbdaffbc9baf9$export$57b49d6ee2e9f187 = `yxBNXG_spectrum-UIIcon-AlertSmall`;
|
|
152
|
-
$6edfbdaffbc9baf9$export$81968d05e3681b3f = `yxBNXG_spectrum-UIIcon-ArrowDownSmall`;
|
|
153
|
-
$6edfbdaffbc9baf9$export$c0d655f335b5bc31 = `yxBNXG_spectrum-UIIcon-ArrowLeftMedium`;
|
|
154
|
-
$6edfbdaffbc9baf9$export$cca4342eca45562 = `yxBNXG_spectrum-UIIcon-Asterisk`;
|
|
155
|
-
$6edfbdaffbc9baf9$export$edc4a2e9af971b26 = `yxBNXG_spectrum-UIIcon-CheckmarkMedium`;
|
|
156
|
-
$6edfbdaffbc9baf9$export$9e665cb12e71e037 = `yxBNXG_spectrum-UIIcon-CheckmarkSmall`;
|
|
157
|
-
$6edfbdaffbc9baf9$export$2f91b7a7627906d5 = `yxBNXG_spectrum-UIIcon-ChevronDownMedium`;
|
|
158
|
-
$6edfbdaffbc9baf9$export$56efb4ec9eb35c07 = `yxBNXG_spectrum-UIIcon-ChevronDownSmall`;
|
|
159
|
-
$6edfbdaffbc9baf9$export$5861dfe1d581a528 = `yxBNXG_spectrum-UIIcon-ChevronLeftLarge`;
|
|
160
|
-
$6edfbdaffbc9baf9$export$595a122b60890c78 = `yxBNXG_spectrum-UIIcon-ChevronLeftMedium`;
|
|
161
|
-
$6edfbdaffbc9baf9$export$596373794435f8bc = `yxBNXG_spectrum-UIIcon-ChevronRightLarge`;
|
|
162
|
-
$6edfbdaffbc9baf9$export$32b379a02cafbfb3 = `yxBNXG_spectrum-UIIcon-ChevronRightMedium`;
|
|
163
|
-
$6edfbdaffbc9baf9$export$ee5de2c4d7c8faa4 = `yxBNXG_spectrum-UIIcon-ChevronRightSmall`;
|
|
164
|
-
$6edfbdaffbc9baf9$export$c1cbae72fd236fd9 = `yxBNXG_spectrum-UIIcon-ChevronUpSmall`;
|
|
165
|
-
$6edfbdaffbc9baf9$export$636d8cde4f6b7e6 = `yxBNXG_spectrum-UIIcon-CornerTriangle`;
|
|
166
|
-
$6edfbdaffbc9baf9$export$1f0ad4082256e3df = `yxBNXG_spectrum-UIIcon-CrossLarge`;
|
|
167
|
-
$6edfbdaffbc9baf9$export$1e0848411e254295 = `yxBNXG_spectrum-UIIcon-CrossMedium`;
|
|
168
|
-
$6edfbdaffbc9baf9$export$1c1bddac0ae5fbe5 = `yxBNXG_spectrum-UIIcon-CrossSmall`;
|
|
169
|
-
$6edfbdaffbc9baf9$export$98de2b9917cd3b6a = `yxBNXG_spectrum-UIIcon-DashSmall`;
|
|
170
|
-
$6edfbdaffbc9baf9$export$3c956876cb11c1e1 = `yxBNXG_spectrum-UIIcon-DoubleGripper`;
|
|
171
|
-
$6edfbdaffbc9baf9$export$55cf2795737352fc = `yxBNXG_spectrum-UIIcon-FolderBreadcrumb`;
|
|
172
|
-
$6edfbdaffbc9baf9$export$d5d1e3e09ea6cd5 = `yxBNXG_spectrum-UIIcon-HelpMedium`;
|
|
173
|
-
$6edfbdaffbc9baf9$export$f51b22382127207d = `yxBNXG_spectrum-UIIcon-HelpSmall`;
|
|
174
|
-
$6edfbdaffbc9baf9$export$825a6c2340d3b7e5 = `yxBNXG_spectrum-UIIcon-InfoMedium`;
|
|
175
|
-
$6edfbdaffbc9baf9$export$4828f4a6bfd26c04 = `yxBNXG_spectrum-UIIcon-InfoSmall`;
|
|
176
|
-
$6edfbdaffbc9baf9$export$1254ece141a8dac6 = `yxBNXG_spectrum-UIIcon-ListGripper`;
|
|
177
|
-
$6edfbdaffbc9baf9$export$a33650c9f4cc191e = `yxBNXG_spectrum-UIIcon-Magnifier`;
|
|
178
|
-
$6edfbdaffbc9baf9$export$9eb19533e4b8cc28 = `yxBNXG_spectrum-UIIcon-SkipLeft`;
|
|
179
|
-
$6edfbdaffbc9baf9$export$67704939e41f705a = `yxBNXG_spectrum-UIIcon-SkipRight`;
|
|
180
|
-
$6edfbdaffbc9baf9$export$c4d219c150b98c92 = `yxBNXG_spectrum-UIIcon-Star`;
|
|
181
|
-
$6edfbdaffbc9baf9$export$bcda0a6a6d7202af = `yxBNXG_spectrum-UIIcon-StarOutline`;
|
|
182
|
-
$6edfbdaffbc9baf9$export$d18d2d837989a797 = `yxBNXG_spectrum-UIIcon-SuccessMedium`;
|
|
183
|
-
$6edfbdaffbc9baf9$export$506ac7a1a72a2c65 = `yxBNXG_spectrum-UIIcon-SuccessSmall`;
|
|
184
|
-
$6edfbdaffbc9baf9$export$12b8600bcd969018 = `yxBNXG_spectrum-UIIcon-TripleGripper`;
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
function $6bfb67578ee6effd$var$iconColorValue(value) {
|
|
189
|
-
return `var(--spectrum-semantic-${value}-color-icon)`;
|
|
190
|
-
}
|
|
191
|
-
const $6bfb67578ee6effd$var$iconStyleProps = {
|
|
192
|
-
...(0, $1Thsl$baseStyleProps),
|
|
193
|
-
color: [
|
|
194
|
-
"color",
|
|
195
|
-
$6bfb67578ee6effd$var$iconColorValue
|
|
196
|
-
]
|
|
197
|
-
};
|
|
198
|
-
function $6bfb67578ee6effd$export$f04a61298a47a40f(props) {
|
|
199
|
-
props = (0, $1Thsl$useSlotProps)(props, "icon");
|
|
200
|
-
let { children: children, size: size, "aria-label": ariaLabel, "aria-hidden": ariaHidden, ...otherProps } = props;
|
|
201
|
-
let { styleProps: styleProps } = (0, $1Thsl$useStyleProps)(otherProps, $6bfb67578ee6effd$var$iconStyleProps);
|
|
202
|
-
let provider = (0, $1Thsl$useProvider)();
|
|
203
|
-
let scale = "M";
|
|
204
|
-
if (provider !== null) scale = provider.scale === "large" ? "L" : "M";
|
|
205
|
-
if (!ariaHidden) ariaHidden = undefined;
|
|
206
|
-
// Use user specified size, falling back to provider scale if size is undef
|
|
207
|
-
let iconSize = size ? size : scale;
|
|
208
|
-
return /*#__PURE__*/ (0, $1Thsl$react).cloneElement(children, {
|
|
209
|
-
...(0, $1Thsl$filterDOMProps)(otherProps),
|
|
210
|
-
...styleProps,
|
|
211
|
-
focusable: "false",
|
|
212
|
-
"aria-label": ariaLabel,
|
|
213
|
-
"aria-hidden": ariaLabel ? ariaHidden || undefined : true,
|
|
214
|
-
role: "img",
|
|
215
|
-
className: (0, $1Thsl$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($6edfbdaffbc9baf9$exports))), children.props.className, "spectrum-Icon", `spectrum-Icon--size${iconSize}`, styleProps.className)
|
|
216
|
-
});
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
/*
|
|
221
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
222
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
223
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
224
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
225
|
-
*
|
|
226
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
227
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
228
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
229
|
-
* governing permissions and limitations under the License.
|
|
230
|
-
*/
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
function $9ba43a63383852e3$export$906cc5990ff10700(props) {
|
|
236
|
-
props = (0, $1Thsl$useSlotProps)(props, "icon");
|
|
237
|
-
let { children: children, "aria-label": ariaLabel, "aria-hidden": ariaHidden, ...otherProps } = props;
|
|
238
|
-
let { styleProps: styleProps } = (0, $1Thsl$useStyleProps)(otherProps);
|
|
239
|
-
let provider = (0, $1Thsl$useProvider)();
|
|
240
|
-
let scale = "M";
|
|
241
|
-
if (provider !== null) scale = provider.scale === "large" ? "L" : "M";
|
|
242
|
-
if (!ariaHidden) ariaHidden = undefined;
|
|
243
|
-
return /*#__PURE__*/ (0, $1Thsl$react).cloneElement(children, {
|
|
244
|
-
...(0, $1Thsl$filterDOMProps)(otherProps),
|
|
245
|
-
...styleProps,
|
|
246
|
-
scale: scale,
|
|
247
|
-
focusable: "false",
|
|
248
|
-
"aria-label": ariaLabel,
|
|
249
|
-
"aria-hidden": ariaLabel ? ariaHidden || undefined : true,
|
|
250
|
-
role: "img",
|
|
251
|
-
className: (0, $1Thsl$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($6edfbdaffbc9baf9$exports))), children.props.className, "spectrum-Icon", {
|
|
252
|
-
[`spectrum-UIIcon-${children.type["displayName"]}`]: children.type["displayName"]
|
|
253
|
-
}, styleProps.className)
|
|
254
|
-
});
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
/*
|
|
259
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
260
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
261
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
262
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
263
|
-
*
|
|
264
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
265
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
266
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
267
|
-
* governing permissions and limitations under the License.
|
|
268
|
-
*/
|
|
269
|
-
|
|
270
16
|
|
|
271
|
-
function $88bb85359d3a4aed$export$d43c2e2ca9b2c105(props) {
|
|
272
|
-
props = (0, $1Thsl$useSlotProps)(props, "illustration");
|
|
273
|
-
let { children: children, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-hidden": ariaHidden, ...otherProps } = props;
|
|
274
|
-
let { styleProps: styleProps } = (0, $1Thsl$useStyleProps)(otherProps);
|
|
275
|
-
let hasLabel = ariaLabel || ariaLabelledby;
|
|
276
|
-
if (!ariaHidden) ariaHidden = undefined;
|
|
277
|
-
return /*#__PURE__*/ (0, $1Thsl$react).cloneElement(children, {
|
|
278
|
-
...(0, $1Thsl$filterDOMProps)(otherProps),
|
|
279
|
-
...styleProps,
|
|
280
|
-
focusable: "false",
|
|
281
|
-
"aria-label": ariaLabel,
|
|
282
|
-
"aria-labelledby": ariaLabelledby,
|
|
283
|
-
"aria-hidden": ariaHidden,
|
|
284
|
-
role: hasLabel ? "img" : undefined
|
|
285
|
-
});
|
|
286
|
-
}
|
|
287
17
|
|
|
288
18
|
|
|
289
19
|
|
package/dist/module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C;ACZ1C;;;;;;;;;;CAUC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACVD,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AA/CA,4CAAoC,CAAC,sBAAsB,CAAC;AAC5D,4CAAqC,CAAC,uBAAuB,CAAC;AAC9D,4CAAkC,CAAC,oBAAoB,CAAC;AACxD,4CAAyC,CAAC,2BAA2B,CAAC;AACtE,4CAAyC,CAAC,2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AAA,qBAAa,EAAE,WAAW;QAC7B,GAAG,UAAU;QACb,WAAW;QACX,cAAc;QACd,mBAAmB;QACnB,eAAe;QACf,MAAM,WAAW,QAAQ;IAC3B;AACF;","sources":["packages/@react-spectrum/icon/src/index.ts","packages/@react-spectrum/icon/src/Icon.tsx","packages/@adobe/spectrum-css-temp/components/icon/vars.css","packages/@react-spectrum/icon/src/UIIcon.tsx","packages/@react-spectrum/icon/src/Illustration.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {Icon} from './Icon';\nexport {UIIcon} from './UIIcon';\nexport {Illustration} from './Illustration';\n\nexport type {IconProps, IconPropsWithoutChildren} from './Icon';\nexport type {IllustrationProps, IllustrationPropsWithoutChildren} from './Illustration';\nexport type {UIIconProps, UIIconPropsWithoutChildren} from './UIIcon';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaLabelingProps, DOMProps, IconColorValue, StyleProps} from '@react-types/shared';\nimport {baseStyleProps, classNames, StyleHandlers, useSlotProps, useStyleProps} from '@react-spectrum/utils';\nimport {filterDOMProps} from '@react-aria/utils';\nimport React, {ReactElement} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/icon/vars.css';\nimport {useProvider} from '@react-spectrum/provider';\n\nexport interface IconProps extends DOMProps, AriaLabelingProps, StyleProps {\n /**\n * A screen reader only label for the Icon.\n */\n 'aria-label'?: string,\n /**\n * The content to display. Should be an SVG.\n */\n children: ReactElement,\n /**\n * Size of Icon (changes based on scale).\n */\n size?: 'XXS' | 'XS' | 'S' | 'M' | 'L' |'XL' | 'XXL',\n /**\n * A slot to place the icon in.\n * @default 'icon'\n */\n slot?: string,\n /**\n * Indicates whether the element is exposed to an accessibility API.\n */\n 'aria-hidden'?: boolean | 'false' | 'true',\n /**\n * Color of the Icon.\n */\n color?: IconColorValue\n}\n\nexport type IconPropsWithoutChildren = Omit<IconProps, 'children'>;\n\nfunction iconColorValue(value: IconColorValue) {\n return `var(--spectrum-semantic-${value}-color-icon)`;\n}\n\nconst iconStyleProps: StyleHandlers = {\n ...baseStyleProps,\n color: ['color', iconColorValue]\n};\n\n/**\n * Spectrum icons are clear, minimal, and consistent across platforms. They follow the focused and rational principles of the design system in both metaphor and style.\n */\nexport function Icon(props: IconProps) {\n props = useSlotProps(props, 'icon');\n let {\n children,\n size,\n 'aria-label': ariaLabel,\n 'aria-hidden': ariaHidden,\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(otherProps, iconStyleProps);\n\n let provider = useProvider();\n let scale = 'M';\n if (provider !== null) {\n scale = provider.scale === 'large' ? 'L' : 'M';\n }\n if (!ariaHidden) {\n ariaHidden = undefined;\n }\n\n // Use user specified size, falling back to provider scale if size is undef\n let iconSize = size ? size : scale;\n\n return React.cloneElement(children, {\n ...filterDOMProps(otherProps),\n ...styleProps,\n focusable: 'false',\n 'aria-label': ariaLabel,\n 'aria-hidden': (ariaLabel ? (ariaHidden || undefined) : true),\n role: 'img',\n className: classNames(\n styles,\n children.props.className,\n 'spectrum-Icon',\n `spectrum-Icon--size${iconSize}`,\n styleProps.className)\n });\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaLabelingProps, DOMProps, StyleProps} from '@react-types/shared';\nimport {classNames, useSlotProps, useStyleProps} from '@react-spectrum/utils';\nimport {filterDOMProps} from '@react-aria/utils';\nimport React, {ReactElement} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/icon/vars.css';\nimport {useProvider} from '@react-spectrum/provider';\n\nexport interface UIIconProps extends DOMProps, AriaLabelingProps, StyleProps {\n children: ReactElement,\n slot?: string,\n /**\n * Indicates whether the element is exposed to an accessibility API.\n */\n 'aria-hidden'?: boolean | 'false' | 'true'\n}\n\nexport type UIIconPropsWithoutChildren = Omit<UIIconProps, 'children'>;\n\nexport function UIIcon(props: UIIconProps) {\n props = useSlotProps(props, 'icon');\n let {\n children,\n 'aria-label': ariaLabel,\n 'aria-hidden': ariaHidden,\n ...otherProps\n } = props;\n\n let {styleProps} = useStyleProps(otherProps);\n let provider = useProvider();\n let scale = 'M';\n if (provider !== null) {\n scale = provider.scale === 'large' ? 'L' : 'M';\n }\n\n if (!ariaHidden) {\n ariaHidden = undefined;\n }\n\n return React.cloneElement(children, {\n ...filterDOMProps(otherProps),\n ...styleProps,\n scale,\n focusable: 'false',\n 'aria-label': ariaLabel,\n 'aria-hidden': (ariaLabel ? (ariaHidden || undefined) : true),\n role: 'img',\n className: classNames(\n styles,\n children.props.className,\n 'spectrum-Icon',\n {\n [`spectrum-UIIcon-${children.type['displayName']}`]: children.type['displayName']\n },\n styleProps.className)\n });\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaLabelingProps, DOMProps, StyleProps} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport React, {ReactElement} from 'react';\nimport {useSlotProps, useStyleProps} from '@react-spectrum/utils';\n\nexport interface IllustrationProps extends DOMProps, AriaLabelingProps, StyleProps {\n /**\n * A screen reader only label for the Illustration.\n */\n 'aria-label'?: string,\n /**\n * The content to display. Should be an SVG.\n */\n children: ReactElement,\n /**\n * A slot to place the illustration in.\n * @default 'illustration'\n */\n slot?: string,\n /**\n * Indicates whether the element is exposed to an accessibility API.\n */\n 'aria-hidden'?: boolean | 'false' | 'true'\n}\n\nexport type IllustrationPropsWithoutChildren = Omit<IllustrationProps, 'children'>;\n\n/**\n * Wrapper component for illustrations. Use this to wrap your svg element for a custom illustration.\n */\nexport function Illustration(props: IllustrationProps) {\n props = useSlotProps(props, 'illustration');\n let {\n children,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby,\n 'aria-hidden': ariaHidden,\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(otherProps);\n\n let hasLabel = ariaLabel || ariaLabelledby;\n\n if (!ariaHidden) {\n ariaHidden = undefined;\n }\n\n return React.cloneElement(children, {\n ...filterDOMProps(otherProps),\n ...styleProps,\n focusable: 'false',\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby,\n 'aria-hidden': ariaHidden,\n role: hasLabel ? 'img' : undefined\n });\n}\n"],"names":[],"version":3,"file":"module.js.map"}
|
|
1
|
+
{"mappings":";;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C","sources":["packages/@react-spectrum/icon/src/index.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {Icon} from './Icon';\nexport {UIIcon} from './UIIcon';\nexport {Illustration} from './Illustration';\n\nexport type {IconProps, IconPropsWithoutChildren} from './Icon';\nexport type {IllustrationProps, IllustrationPropsWithoutChildren} from './Illustration';\nexport type {UIIconProps, UIIconPropsWithoutChildren} from './UIIcon';\n"],"names":[],"version":3,"file":"module.js.map"}
|
|
@@ -15,107 +15,37 @@
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
.yxBNXG_spectrum-Icon--sizeXXS {
|
|
18
|
+
.yxBNXG_spectrum-Icon--sizeXXS, .yxBNXG_spectrum-Icon--sizeXXS img, .yxBNXG_spectrum-Icon--sizeXXS svg {
|
|
19
19
|
block-size: calc(var(--spectrum-alias-workflow-icon-size, var(--spectrum-global-dimension-size-225)) / 2);
|
|
20
20
|
inline-size: calc(var(--spectrum-alias-workflow-icon-size, var(--spectrum-global-dimension-size-225)) / 2);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
.yxBNXG_spectrum-Icon--
|
|
24
|
-
block-size: calc(var(--spectrum-alias-workflow-icon-size, var(--spectrum-global-dimension-size-225)) / 2);
|
|
25
|
-
inline-size: calc(var(--spectrum-alias-workflow-icon-size, var(--spectrum-global-dimension-size-225)) / 2);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.yxBNXG_spectrum-Icon--sizeXXS svg {
|
|
29
|
-
block-size: calc(var(--spectrum-alias-workflow-icon-size, var(--spectrum-global-dimension-size-225)) / 2);
|
|
30
|
-
inline-size: calc(var(--spectrum-alias-workflow-icon-size, var(--spectrum-global-dimension-size-225)) / 2);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.yxBNXG_spectrum-Icon--sizeXS {
|
|
23
|
+
.yxBNXG_spectrum-Icon--sizeXS, .yxBNXG_spectrum-Icon--sizeXS img, .yxBNXG_spectrum-Icon--sizeXS svg {
|
|
34
24
|
block-size: calc(var(--spectrum-global-dimension-size-300) / 2);
|
|
35
25
|
inline-size: calc(var(--spectrum-global-dimension-size-300) / 2);
|
|
36
26
|
}
|
|
37
27
|
|
|
38
|
-
.yxBNXG_spectrum-Icon--
|
|
39
|
-
block-size: calc(var(--spectrum-global-dimension-size-300) / 2);
|
|
40
|
-
inline-size: calc(var(--spectrum-global-dimension-size-300) / 2);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.yxBNXG_spectrum-Icon--sizeXS svg {
|
|
44
|
-
block-size: calc(var(--spectrum-global-dimension-size-300) / 2);
|
|
45
|
-
inline-size: calc(var(--spectrum-global-dimension-size-300) / 2);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.yxBNXG_spectrum-Icon--sizeS {
|
|
49
|
-
block-size: var(--spectrum-alias-workflow-icon-size, var(--spectrum-global-dimension-size-225));
|
|
50
|
-
inline-size: var(--spectrum-alias-workflow-icon-size, var(--spectrum-global-dimension-size-225));
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.yxBNXG_spectrum-Icon--sizeS img {
|
|
54
|
-
block-size: var(--spectrum-alias-workflow-icon-size, var(--spectrum-global-dimension-size-225));
|
|
55
|
-
inline-size: var(--spectrum-alias-workflow-icon-size, var(--spectrum-global-dimension-size-225));
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.yxBNXG_spectrum-Icon--sizeS svg {
|
|
28
|
+
.yxBNXG_spectrum-Icon--sizeS, .yxBNXG_spectrum-Icon--sizeS img, .yxBNXG_spectrum-Icon--sizeS svg {
|
|
59
29
|
block-size: var(--spectrum-alias-workflow-icon-size, var(--spectrum-global-dimension-size-225));
|
|
60
30
|
inline-size: var(--spectrum-alias-workflow-icon-size, var(--spectrum-global-dimension-size-225));
|
|
61
31
|
}
|
|
62
32
|
|
|
63
|
-
.yxBNXG_spectrum-Icon--sizeM {
|
|
33
|
+
.yxBNXG_spectrum-Icon--sizeM, .yxBNXG_spectrum-Icon--sizeM img, .yxBNXG_spectrum-Icon--sizeM svg {
|
|
64
34
|
block-size: var(--spectrum-global-dimension-size-300);
|
|
65
35
|
inline-size: var(--spectrum-global-dimension-size-300);
|
|
66
36
|
}
|
|
67
37
|
|
|
68
|
-
.yxBNXG_spectrum-Icon--
|
|
69
|
-
block-size: var(--spectrum-global-dimension-size-300);
|
|
70
|
-
inline-size: var(--spectrum-global-dimension-size-300);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.yxBNXG_spectrum-Icon--sizeM svg {
|
|
74
|
-
block-size: var(--spectrum-global-dimension-size-300);
|
|
75
|
-
inline-size: var(--spectrum-global-dimension-size-300);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.yxBNXG_spectrum-Icon--sizeL {
|
|
79
|
-
block-size: calc(var(--spectrum-alias-workflow-icon-size, var(--spectrum-global-dimension-size-225)) * 2);
|
|
80
|
-
inline-size: calc(var(--spectrum-alias-workflow-icon-size, var(--spectrum-global-dimension-size-225)) * 2);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.yxBNXG_spectrum-Icon--sizeL img {
|
|
38
|
+
.yxBNXG_spectrum-Icon--sizeL, .yxBNXG_spectrum-Icon--sizeL img, .yxBNXG_spectrum-Icon--sizeL svg {
|
|
84
39
|
block-size: calc(var(--spectrum-alias-workflow-icon-size, var(--spectrum-global-dimension-size-225)) * 2);
|
|
85
40
|
inline-size: calc(var(--spectrum-alias-workflow-icon-size, var(--spectrum-global-dimension-size-225)) * 2);
|
|
86
41
|
}
|
|
87
42
|
|
|
88
|
-
.yxBNXG_spectrum-Icon--
|
|
89
|
-
block-size: calc(var(--spectrum-alias-workflow-icon-size, var(--spectrum-global-dimension-size-225)) * 2);
|
|
90
|
-
inline-size: calc(var(--spectrum-alias-workflow-icon-size, var(--spectrum-global-dimension-size-225)) * 2);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.yxBNXG_spectrum-Icon--sizeXL {
|
|
94
|
-
block-size: calc(var(--spectrum-global-dimension-size-300) * 2);
|
|
95
|
-
inline-size: calc(var(--spectrum-global-dimension-size-300) * 2);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.yxBNXG_spectrum-Icon--sizeXL img {
|
|
43
|
+
.yxBNXG_spectrum-Icon--sizeXL, .yxBNXG_spectrum-Icon--sizeXL img, .yxBNXG_spectrum-Icon--sizeXL svg {
|
|
99
44
|
block-size: calc(var(--spectrum-global-dimension-size-300) * 2);
|
|
100
45
|
inline-size: calc(var(--spectrum-global-dimension-size-300) * 2);
|
|
101
46
|
}
|
|
102
47
|
|
|
103
|
-
.yxBNXG_spectrum-Icon--
|
|
104
|
-
block-size: calc(var(--spectrum-global-dimension-size-300) * 2);
|
|
105
|
-
inline-size: calc(var(--spectrum-global-dimension-size-300) * 2);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.yxBNXG_spectrum-Icon--sizeXXL {
|
|
109
|
-
block-size: calc(var(--spectrum-global-dimension-size-300) * 3);
|
|
110
|
-
inline-size: calc(var(--spectrum-global-dimension-size-300) * 3);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.yxBNXG_spectrum-Icon--sizeXXL img {
|
|
114
|
-
block-size: calc(var(--spectrum-global-dimension-size-300) * 3);
|
|
115
|
-
inline-size: calc(var(--spectrum-global-dimension-size-300) * 3);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.yxBNXG_spectrum-Icon--sizeXXL svg {
|
|
48
|
+
.yxBNXG_spectrum-Icon--sizeXXL, .yxBNXG_spectrum-Icon--sizeXXL img, .yxBNXG_spectrum-Icon--sizeXXL svg {
|
|
119
49
|
block-size: calc(var(--spectrum-global-dimension-size-300) * 3);
|
|
120
50
|
inline-size: calc(var(--spectrum-global-dimension-size-300) * 3);
|
|
121
51
|
}
|
|
@@ -328,5 +258,4 @@
|
|
|
328
258
|
inline-size: var(--spectrum-icon-triplegripper-width);
|
|
329
259
|
block-size: var(--spectrum-icon-triplegripper-height, var(--spectrum-global-dimension-size-85));
|
|
330
260
|
}
|
|
331
|
-
|
|
332
|
-
/*# sourceMappingURL=main.css.map */
|
|
261
|
+
/*# sourceMappingURL=vars.4163ca54.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":"AAoCA;;;;;;;AAWE;;;;AAQF;EACE;;;;;AAoBA;;;;;AASA;;;;;AASA;;;;;AASA;;;;;AASA;;;;;AASA;;;;;AASA;;;;;AAuBA;;;;AAGA;;;;AAMA;;;;AAGA;;;;AAOF;;;;;AAKA;;;;;AAKA;;;;AAIA;;;;AAMA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA","sources":["packages/@adobe/spectrum-css-temp/components/icon/vars.css"],"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@import './index.css';\n"],"names":[],"version":3,"file":"vars.4163ca54.css.map"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-spectrum/icon",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.12",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"url": "https://github.com/adobe/react-spectrum"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@react-aria/utils": "^3.
|
|
40
|
-
"@react-spectrum/utils": "^3.11.
|
|
41
|
-
"@react-types/shared": "^3.
|
|
39
|
+
"@react-aria/utils": "^3.24.0",
|
|
40
|
+
"@react-spectrum/utils": "^3.11.6",
|
|
41
|
+
"@react-types/shared": "^3.23.0",
|
|
42
42
|
"@swc/helpers": "^0.5.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"access": "public"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "f645f29edc1322153fd60af4640cbcab1d992dbd"
|
|
55
55
|
}
|
package/dist/main.css.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":"AAoCA;;;;;;;AAWE;;;;AAQF;EACE;;;;;AAoBA;;;;;AAAA;;;;;AAAA;;;;;AASA;;;;;AAAA;;;;;AAAA;;;;;AASA;;;;;AAAA;;;;;AAAA;;;;;AASA;;;;;AAAA;;;;;AAAA;;;;;AASA;;;;;AAAA;;;;;AAAA;;;;;AASA;;;;;AAAA;;;;;AAAA;;;;;AASA;;;;;AAAA;;;;;AAAA;;;;;AAuBA;;;;AAGA;;;;AAMA;;;;AAGA;;;;AAOF;;;;;AAKA;;;;;AAKA;;;;AAIA;;;;AAMA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA","sources":["packages/@adobe/spectrum-css-temp/components/icon/vars.css"],"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@import './index.css';\n"],"names":[],"version":3,"file":"main.css.map"}
|