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