@spectrum-web-components/iconset 1.9.1-nightly.20251028225419 → 1.9.1-nightly.20251029100130

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/package.json CHANGED
@@ -1,80 +1,80 @@
1
1
  {
2
- "name": "@spectrum-web-components/iconset",
3
- "version": "1.9.1-nightly.20251028225419",
4
- "publishConfig": {
5
- "access": "public"
6
- },
7
- "description": "",
8
- "license": "Apache-2.0",
9
- "repository": {
10
- "type": "git",
11
- "url": "https://github.com/adobe/spectrum-web-components.git",
12
- "directory": "1st-gen/packages/iconset"
13
- },
14
- "author": "Adobe",
15
- "homepage": "https://opensource.adobe.com/spectrum-web-components/components/iconset",
16
- "bugs": {
17
- "url": "https://github.com/adobe/spectrum-web-components/issues"
18
- },
19
- "main": "./src/index.js",
20
- "module": "./src/index.js",
21
- "type": "module",
22
- "exports": {
23
- ".": {
24
- "development": "./src/index.dev.js",
25
- "default": "./src/index.js"
2
+ "name": "@spectrum-web-components/iconset",
3
+ "version": "1.9.1-nightly.20251029100130",
4
+ "publishConfig": {
5
+ "access": "public"
26
6
  },
27
- "./package.json": "./package.json",
28
- "./src/iconset-registry.js": {
29
- "development": "./src/iconset-registry.dev.js",
30
- "default": "./src/iconset-registry.js"
7
+ "description": "",
8
+ "license": "Apache-2.0",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/adobe/spectrum-web-components.git",
12
+ "directory": "1st-gen/packages/iconset"
31
13
  },
32
- "./src/iconset-svg.js": {
33
- "development": "./src/iconset-svg.dev.js",
34
- "default": "./src/iconset-svg.js"
14
+ "author": "Adobe",
15
+ "homepage": "https://opensource.adobe.com/spectrum-web-components/components/iconset",
16
+ "bugs": {
17
+ "url": "https://github.com/adobe/spectrum-web-components/issues"
35
18
  },
36
- "./src/iconset.js": {
37
- "development": "./src/iconset.dev.js",
38
- "default": "./src/iconset.js"
19
+ "main": "./src/index.js",
20
+ "module": "./src/index.js",
21
+ "type": "module",
22
+ "exports": {
23
+ ".": {
24
+ "development": "./src/index.dev.js",
25
+ "default": "./src/index.js"
26
+ },
27
+ "./package.json": "./package.json",
28
+ "./src/iconset-registry.js": {
29
+ "development": "./src/iconset-registry.dev.js",
30
+ "default": "./src/iconset-registry.js"
31
+ },
32
+ "./src/iconset-svg.js": {
33
+ "development": "./src/iconset-svg.dev.js",
34
+ "default": "./src/iconset-svg.js"
35
+ },
36
+ "./src/iconset.js": {
37
+ "development": "./src/iconset.dev.js",
38
+ "default": "./src/iconset.js"
39
+ },
40
+ "./src/index.js": {
41
+ "development": "./src/index.dev.js",
42
+ "default": "./src/index.js"
43
+ }
39
44
  },
40
- "./src/index.js": {
41
- "development": "./src/index.dev.js",
42
- "default": "./src/index.js"
43
- }
44
- },
45
- "scripts": {
46
- "test": "echo \"Error: run tests from mono-repo root.\" && exit 1"
47
- },
48
- "files": [
49
- "**/*.d.ts",
50
- "**/*.js",
51
- "**/*.js.map",
52
- "custom-elements.json",
53
- "!stories/",
54
- "!test/"
55
- ],
56
- "keywords": [
57
- "design-system",
58
- "spectrum",
59
- "adobe",
60
- "adobe-spectrum",
61
- "web components",
62
- "web-components",
63
- "lit-element",
64
- "lit-html",
65
- "component",
66
- "css"
67
- ],
68
- "dependencies": {
69
- "@spectrum-web-components/base": "1.9.1-nightly.20251028225419"
70
- },
71
- "types": "./src/index.d.ts",
72
- "customElements": "custom-elements.json",
73
- "deprecationNotice": "@spectrum-web-components/iconset is deprecated and will be removed in an upcoming release.",
74
- "sideEffects": [
75
- "./src/index.js",
76
- "./stories/icons-demo.js",
77
- "./stories/iconsList.json",
78
- "./**/*.dev.js"
79
- ]
80
- }
45
+ "scripts": {
46
+ "test": "echo \"Error: run tests from mono-repo root.\" && exit 1"
47
+ },
48
+ "files": [
49
+ "**/*.d.ts",
50
+ "**/*.js",
51
+ "**/*.js.map",
52
+ "custom-elements.json",
53
+ "!stories/",
54
+ "!test/"
55
+ ],
56
+ "keywords": [
57
+ "design-system",
58
+ "spectrum",
59
+ "adobe",
60
+ "adobe-spectrum",
61
+ "web components",
62
+ "web-components",
63
+ "lit-element",
64
+ "lit-html",
65
+ "component",
66
+ "css"
67
+ ],
68
+ "dependencies": {
69
+ "@spectrum-web-components/base": "1.9.1-nightly.20251029100130"
70
+ },
71
+ "types": "./src/index.d.ts",
72
+ "customElements": "custom-elements.json",
73
+ "deprecationNotice": "@spectrum-web-components/iconset is deprecated and will be removed in an upcoming release.",
74
+ "sideEffects": [
75
+ "./src/index.js",
76
+ "./stories/icons-demo.js",
77
+ "./stories/iconsList.json",
78
+ "./**/*.dev.js"
79
+ ]
80
+ }
package/CHANGELOG.md DELETED
@@ -1,509 +0,0 @@
1
- # Change Log
2
-
3
- ## 1.9.1-nightly.20251028225419
4
-
5
- ### Patch Changes
6
-
7
- - Updated dependencies []:
8
- - @spectrum-web-components/base@1.9.1-nightly.20251028225419
9
-
10
- ## 1.9.0
11
-
12
- ### Patch Changes
13
-
14
- - Updated dependencies []:
15
- - @spectrum-web-components/base@1.9.0
16
-
17
- ## 1.8.0
18
-
19
- ### Patch Changes
20
-
21
- - Updated dependencies []:
22
- - @spectrum-web-components/base@1.8.0
23
-
24
- ## 1.7.0
25
-
26
- ### Patch Changes
27
-
28
- - Updated dependencies []:
29
- - @spectrum-web-components/base@1.7.0
30
-
31
- ## 1.6.0
32
-
33
- ### Patch Changes
34
-
35
- - Updated dependencies []:
36
- - @spectrum-web-components/base@1.6.0
37
-
38
- ## 1.5.0
39
-
40
- ### Patch Changes
41
-
42
- - Updated dependencies []:
43
- - @spectrum-web-components/base@1.5.0
44
-
45
- ## 1.4.0
46
-
47
- ### Patch Changes
48
-
49
- - Updated dependencies []:
50
- - @spectrum-web-components/base@1.4.0
51
-
52
- ## 1.3.0
53
-
54
- ### Patch Changes
55
-
56
- - Updated dependencies []:
57
- - @spectrum-web-components/base@1.3.0
58
-
59
- All notable changes to this project will be documented in this file.
60
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
61
-
62
- # [1.2.0](https://github.com/adobe/spectrum-web-components/compare/v1.1.2...v1.2.0) (2025-02-27)
63
-
64
- **Note:** Version bump only for package @spectrum-web-components/iconset
65
-
66
- ## [1.1.2](https://github.com/adobe/spectrum-web-components/compare/v1.1.1...v1.1.2) (2025-02-12)
67
-
68
- **Note:** Version bump only for package @spectrum-web-components/iconset
69
-
70
- ## [1.1.1](https://github.com/adobe/spectrum-web-components/compare/v1.1.0...v1.1.1) (2025-01-29)
71
-
72
- **Note:** Version bump only for package @spectrum-web-components/iconset
73
-
74
- # [1.1.0](https://github.com/adobe/spectrum-web-components/compare/v1.0.3...v1.1.0) (2025-01-29)
75
-
76
- **Note:** Version bump only for package @spectrum-web-components/iconset
77
-
78
- ## [1.0.1](https://github.com/adobe/spectrum-web-components/compare/v1.0.0...v1.0.1) (2024-11-11)
79
-
80
- ### Bug Fixes
81
-
82
- - **icon:** remove size300 suffix from chevron and checkmark icons in Spectrum 2 ([#4904](https://github.com/adobe/spectrum-web-components/issues/4904)) ([a22f42b](https://github.com/adobe/spectrum-web-components/commit/a22f42bf508e1d0f2ddc9824b0f4d4e08eac659a))
83
-
84
- # [1.0.0](https://github.com/adobe/spectrum-web-components/compare/v0.49.0...v1.0.0) (2024-10-31)
85
-
86
- **Note:** Version bump only for package @spectrum-web-components/iconset
87
-
88
- # [0.49.0](https://github.com/adobe/spectrum-web-components/compare/v0.48.1...v0.49.0) (2024-10-15)
89
-
90
- **Note:** Version bump only for package @spectrum-web-components/iconset
91
-
92
- ## [0.48.1](https://github.com/adobe/spectrum-web-components/compare/v0.48.0...v0.48.1) (2024-10-01)
93
-
94
- **Note:** Version bump only for package @spectrum-web-components/iconset
95
-
96
- # [0.48.0](https://github.com/adobe/spectrum-web-components/compare/v0.47.2...v0.48.0) (2024-09-17)
97
-
98
- **Note:** Version bump only for package @spectrum-web-components/iconset
99
-
100
- ## [0.47.2](https://github.com/adobe/spectrum-web-components/compare/v0.47.1...v0.47.2) (2024-09-03)
101
-
102
- **Note:** Version bump only for package @spectrum-web-components/iconset
103
-
104
- ## [0.47.1](https://github.com/adobe/spectrum-web-components/compare/v0.47.0...v0.47.1) (2024-08-27)
105
-
106
- **Note:** Version bump only for package @spectrum-web-components/iconset
107
-
108
- # [0.47.0](https://github.com/adobe/spectrum-web-components/compare/v0.46.0...v0.47.0) (2024-08-20)
109
-
110
- **Note:** Version bump only for package @spectrum-web-components/iconset
111
-
112
- # [0.46.0](https://github.com/adobe/spectrum-web-components/compare/v0.45.0...v0.46.0) (2024-08-08)
113
-
114
- **Note:** Version bump only for package @spectrum-web-components/iconset
115
-
116
- # [0.45.0](https://github.com/adobe/spectrum-web-components/compare/v0.44.0...v0.45.0) (2024-07-30)
117
-
118
- **Note:** Version bump only for package @spectrum-web-components/iconset
119
-
120
- # [0.44.0](https://github.com/adobe/spectrum-web-components/compare/v0.42.4...v0.44.0) (2024-07-15)
121
-
122
- **Note:** Version bump only for package @spectrum-web-components/iconset
123
-
124
- # [0.43.0](https://github.com/adobe/spectrum-web-components/compare/v0.42.4...v0.43.0) (2024-06-11)
125
-
126
- **Note:** Version bump only for package @spectrum-web-components/iconset
127
-
128
- ## [0.42.5](https://github.com/adobe/spectrum-web-components/compare/v0.42.4...v0.42.5) (2024-05-24)
129
-
130
- **Note:** Version bump only for package @spectrum-web-components/iconset
131
-
132
- ## [0.42.4](https://github.com/adobe/spectrum-web-components/compare/v0.42.2...v0.42.4) (2024-05-14)
133
-
134
- **Note:** Version bump only for package @spectrum-web-components/iconset
135
-
136
- ## [0.42.3](https://github.com/adobe/spectrum-web-components/compare/v0.42.2...v0.42.3) (2024-05-01)
137
-
138
- **Note:** Version bump only for package @spectrum-web-components/iconset
139
-
140
- ## [0.42.2](https://github.com/adobe/spectrum-web-components/compare/v0.42.1...v0.42.2) (2024-04-03)
141
-
142
- **Note:** Version bump only for package @spectrum-web-components/iconset
143
-
144
- ## [0.42.1](https://github.com/adobe/spectrum-web-components/compare/v0.42.0...v0.42.1) (2024-04-02)
145
-
146
- **Note:** Version bump only for package @spectrum-web-components/iconset
147
-
148
- # [0.42.0](https://github.com/adobe/spectrum-web-components/compare/v0.41.2...v0.42.0) (2024-03-19)
149
-
150
- **Note:** Version bump only for package @spectrum-web-components/iconset
151
-
152
- ## [0.41.2](https://github.com/adobe/spectrum-web-components/compare/v0.41.1...v0.41.2) (2024-03-05)
153
-
154
- **Note:** Version bump only for package @spectrum-web-components/iconset
155
-
156
- ## [0.41.1](https://github.com/adobe/spectrum-web-components/compare/v0.41.0...v0.41.1) (2024-02-22)
157
-
158
- **Note:** Version bump only for package @spectrum-web-components/iconset
159
-
160
- # [0.41.0](https://github.com/adobe/spectrum-web-components/compare/v0.40.5...v0.41.0) (2024-02-13)
161
-
162
- **Note:** Version bump only for package @spectrum-web-components/iconset
163
-
164
- ## [0.40.5](https://github.com/adobe/spectrum-web-components/compare/v0.40.4...v0.40.5) (2024-02-05)
165
-
166
- **Note:** Version bump only for package @spectrum-web-components/iconset
167
-
168
- ## [0.40.4](https://github.com/adobe/spectrum-web-components/compare/v0.40.3...v0.40.4) (2024-01-29)
169
-
170
- **Note:** Version bump only for package @spectrum-web-components/iconset
171
-
172
- ## [0.40.3](https://github.com/adobe/spectrum-web-components/compare/v0.40.2...v0.40.3) (2024-01-11)
173
-
174
- **Note:** Version bump only for package @spectrum-web-components/iconset
175
-
176
- ## [0.40.2](https://github.com/adobe/spectrum-web-components/compare/v0.40.1...v0.40.2) (2023-12-18)
177
-
178
- **Note:** Version bump only for package @spectrum-web-components/iconset
179
-
180
- ## [0.40.1](https://github.com/adobe/spectrum-web-components/compare/v0.40.0...v0.40.1) (2023-12-05)
181
-
182
- **Note:** Version bump only for package @spectrum-web-components/iconset
183
-
184
- # [0.40.0](https://github.com/adobe/spectrum-web-components/compare/v0.39.4...v0.40.0) (2023-11-16)
185
-
186
- **Note:** Version bump only for package @spectrum-web-components/iconset
187
-
188
- ## [0.39.4](https://github.com/adobe/spectrum-web-components/compare/v0.39.3...v0.39.4) (2023-11-02)
189
-
190
- **Note:** Version bump only for package @spectrum-web-components/iconset
191
-
192
- ## [0.39.3](https://github.com/adobe/spectrum-web-components/compare/v0.39.2...v0.39.3) (2023-10-18)
193
-
194
- **Note:** Version bump only for package @spectrum-web-components/iconset
195
-
196
- ## [0.39.2](https://github.com/adobe/spectrum-web-components/compare/v0.39.1...v0.39.2) (2023-10-13)
197
-
198
- **Note:** Version bump only for package @spectrum-web-components/iconset
199
-
200
- ## [0.39.1](https://github.com/adobe/spectrum-web-components/compare/v0.39.0...v0.39.1) (2023-10-06)
201
-
202
- **Note:** Version bump only for package @spectrum-web-components/iconset
203
-
204
- # [0.39.0](https://github.com/adobe/spectrum-web-components/compare/v0.38.0...v0.39.0) (2023-09-25)
205
-
206
- **Note:** Version bump only for package @spectrum-web-components/iconset
207
-
208
- # [0.38.0](https://github.com/adobe/spectrum-web-components/compare/v0.37.0...v0.38.0) (2023-09-05)
209
-
210
- **Note:** Version bump only for package @spectrum-web-components/iconset
211
-
212
- # [0.37.0](https://github.com/adobe/spectrum-web-components/compare/v0.36.0...v0.37.0) (2023-08-18)
213
-
214
- **Note:** Version bump only for package @spectrum-web-components/iconset
215
-
216
- # [0.36.0](https://github.com/adobe/spectrum-web-components/compare/v0.35.0...v0.36.0) (2023-08-18)
217
-
218
- **Note:** Version bump only for package @spectrum-web-components/iconset
219
-
220
- # [0.35.0](https://github.com/adobe/spectrum-web-components/compare/v0.34.0...v0.35.0) (2023-07-31)
221
-
222
- **Note:** Version bump only for package @spectrum-web-components/iconset
223
-
224
- # [0.34.0](https://github.com/adobe/spectrum-web-components/compare/v0.33.2...v0.34.0) (2023-07-11)
225
-
226
- **Note:** Version bump only for package @spectrum-web-components/iconset
227
-
228
- ## [0.33.2](https://github.com/adobe/spectrum-web-components/compare/v0.33.1...v0.33.2) (2023-06-14)
229
-
230
- **Note:** Version bump only for package @spectrum-web-components/iconset
231
-
232
- # [0.33.0](https://github.com/adobe/spectrum-web-components/compare/v0.32.0...v0.33.0) (2023-06-08)
233
-
234
- **Note:** Version bump only for package @spectrum-web-components/iconset
235
-
236
- # [0.32.0](https://github.com/adobe/spectrum-web-components/compare/v0.31.0...v0.32.0) (2023-06-01)
237
-
238
- **Note:** Version bump only for package @spectrum-web-components/iconset
239
-
240
- # [0.31.0](https://github.com/adobe/spectrum-web-components/compare/v0.30.0...v0.31.0) (2023-05-17)
241
-
242
- **Note:** Version bump only for package @spectrum-web-components/iconset
243
-
244
- # 0.30.0 (2023-05-03)
245
-
246
- ### Bug Fixes
247
-
248
- - allow "updateComplete" to resolve to a boolean like the LitElement default ([6127946](https://github.com/adobe/spectrum-web-components/commit/6127946fd3ffd048a30b7eb4bf6aadf9e7c8752a))
249
- - apply "HelpTextMixin" to form elements ([a952447](https://github.com/adobe/spectrum-web-components/commit/a952447254d091b99fe9270b2857cddc48df7c73))
250
- - ensure browser understandable extensions ([f4e59f7](https://github.com/adobe/spectrum-web-components/commit/f4e59f76f86369593810463c6406565e28ad97e9))
251
- - include "type" in package.json, generate custom-elements.json ([1a8d716](https://github.com/adobe/spectrum-web-components/commit/1a8d716f2f787deb8d868a78bd28c8e62fe90e21))
252
- - include default export in the "exports" fields ([f32407d](https://github.com/adobe/spectrum-web-components/commit/f32407d7bbfd18e72c35b6f27740549e79957858))
253
- - include the "types" entry in package.json files ([b432f59](https://github.com/adobe/spectrum-web-components/commit/b432f5982b3b79f80af12f6d0312cbe2285e608b))
254
- - lint away debugger statements ([34a498e](https://github.com/adobe/spectrum-web-components/commit/34a498e784221f98dbf26e9366114c82fabc9c5b))
255
- - manage updated node types ([0517fc1](https://github.com/adobe/spectrum-web-components/commit/0517fc19536325332543f95f5ecc0d6cb0c786c5))
256
- - normalize "event" and "error" argument names ([8d382cd](https://github.com/adobe/spectrum-web-components/commit/8d382cdac98282c886f23c4a8d6cf4910c4a606c))
257
- - remove ":" based namespacing of events ([d77a843](https://github.com/adobe/spectrum-web-components/commit/d77a843a049a6a37bbeee7bbfb50b4d5eb24f3fd))
258
- - remove "type: "module"" in package.json for node 12 ([c9f76e2](https://github.com/adobe/spectrum-web-components/commit/c9f76e21e24bb844466158fe96512ab19c37c5a9))
259
- - use icons without "size" values ([3fc7c91](https://github.com/adobe/spectrum-web-components/commit/3fc7c91713793a928082eae15fc3d9dec638a31a))
260
-
261
- ### Features
262
-
263
- - **icons-workflow:** vend fully registered icon components ([941f3a4](https://github.com/adobe/spectrum-web-components/commit/941f3a41486fbd49eca0805fb63383f63313e71e))
264
- - **iconset:** update spectrum css input ([914150a](https://github.com/adobe/spectrum-web-components/commit/914150a60e9e123ee68e9a26c8a72653846cd3ea))
265
- - include all Dev Mode files in side effects ([f70817c](https://github.com/adobe/spectrum-web-components/commit/f70817cc15db6dcf5cc1de2d82b4f7b0c80b1251))
266
- - leverage "exports" field in package.json ([321abd7](https://github.com/adobe/spectrum-web-components/commit/321abd7b7e78ccd9157cff75a1fa3dbd06e81f79))
267
- - update lit-\* dependencies, wip ([377f3c8](https://github.com/adobe/spectrum-web-components/commit/377f3c848b09e64fa1ecc1e18208f534fefcd9e4))
268
- - use latest exports specification ([a7ecf4b](https://github.com/adobe/spectrum-web-components/commit/a7ecf4b6da7996f36a8a89f62cc2384709497008))
269
-
270
- ### Performance Improvements
271
-
272
- - use "sideEffects" listing in package.json ([7271614](https://github.com/adobe/spectrum-web-components/commit/7271614c0ca3ccf3566583bb59467eb15a6199cd))
273
- - use imported TypeScript helpers instead of inlining them ([cc2bd0a](https://github.com/adobe/spectrum-web-components/commit/cc2bd0accd643c2f35cbf1ba809b54f52c25628d))
274
-
275
- ## [0.7.7](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/iconset@0.7.6...@spectrum-web-components/iconset@0.7.7) (2023-04-05)
276
-
277
- **Note:** Version bump only for package @spectrum-web-components/iconset
278
-
279
- ## [0.7.6](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/iconset@0.7.5...@spectrum-web-components/iconset@0.7.6) (2023-01-23)
280
-
281
- **Note:** Version bump only for package @spectrum-web-components/iconset
282
-
283
- ## [0.7.5](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/iconset@0.7.4...@spectrum-web-components/iconset@0.7.5) (2023-01-09)
284
-
285
- **Note:** Version bump only for package @spectrum-web-components/iconset
286
-
287
- ## [0.7.4](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/iconset@0.7.3...@spectrum-web-components/iconset@0.7.4) (2022-11-21)
288
-
289
- **Note:** Version bump only for package @spectrum-web-components/iconset
290
-
291
- ## [0.7.3](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/iconset@0.7.2...@spectrum-web-components/iconset@0.7.3) (2022-11-14)
292
-
293
- **Note:** Version bump only for package @spectrum-web-components/iconset
294
-
295
- ## [0.7.2](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/iconset@0.7.1...@spectrum-web-components/iconset@0.7.2) (2022-10-28)
296
-
297
- ### Bug Fixes
298
-
299
- - manage updated node types ([0517fc1](https://github.com/adobe/spectrum-web-components/commit/0517fc19536325332543f95f5ecc0d6cb0c786c5))
300
-
301
- ## [0.7.1](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/iconset@0.7.0...@spectrum-web-components/iconset@0.7.1) (2022-10-10)
302
-
303
- **Note:** Version bump only for package @spectrum-web-components/iconset
304
-
305
- # [0.7.0](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/iconset@0.6.9...@spectrum-web-components/iconset@0.7.0) (2022-08-09)
306
-
307
- ### Features
308
-
309
- - include all Dev Mode files in side effects ([f70817c](https://github.com/adobe/spectrum-web-components/commit/f70817cc15db6dcf5cc1de2d82b4f7b0c80b1251))
310
-
311
- ## [0.6.9](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/iconset@0.6.8...@spectrum-web-components/iconset@0.6.9) (2022-08-04)
312
-
313
- **Note:** Version bump only for package @spectrum-web-components/iconset
314
-
315
- ## [0.6.8](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/iconset@0.6.7...@spectrum-web-components/iconset@0.6.8) (2022-06-29)
316
-
317
- **Note:** Version bump only for package @spectrum-web-components/iconset
318
-
319
- ## [0.6.7](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/iconset@0.6.6...@spectrum-web-components/iconset@0.6.7) (2022-06-07)
320
-
321
- **Note:** Version bump only for package @spectrum-web-components/iconset
322
-
323
- ## [0.6.6](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/iconset@0.6.5...@spectrum-web-components/iconset@0.6.6) (2022-05-12)
324
-
325
- **Note:** Version bump only for package @spectrum-web-components/iconset
326
-
327
- ## [0.6.5](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/iconset@0.6.4...@spectrum-web-components/iconset@0.6.5) (2022-04-21)
328
-
329
- **Note:** Version bump only for package @spectrum-web-components/iconset
330
-
331
- ## [0.6.4](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/iconset@0.6.3...@spectrum-web-components/iconset@0.6.4) (2022-03-08)
332
-
333
- **Note:** Version bump only for package @spectrum-web-components/iconset
334
-
335
- ## [0.6.3](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/iconset@0.6.2...@spectrum-web-components/iconset@0.6.3) (2022-03-04)
336
-
337
- **Note:** Version bump only for package @spectrum-web-components/iconset
338
-
339
- ## [0.6.2](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/iconset@0.6.1...@spectrum-web-components/iconset@0.6.2) (2022-02-22)
340
-
341
- **Note:** Version bump only for package @spectrum-web-components/iconset
342
-
343
- ## [0.6.1](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/iconset@0.6.0...@spectrum-web-components/iconset@0.6.1) (2021-12-13)
344
-
345
- ### Bug Fixes
346
-
347
- - apply "HelpTextMixin" to form elements ([a952447](https://github.com/adobe/spectrum-web-components/commit/a952447254d091b99fe9270b2857cddc48df7c73))
348
-
349
- # [0.6.0](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/iconset@0.5.8...@spectrum-web-components/iconset@0.6.0) (2021-11-08)
350
-
351
- ### Features
352
-
353
- - update lit-\* dependencies, wip ([377f3c8](https://github.com/adobe/spectrum-web-components/commit/377f3c848b09e64fa1ecc1e18208f534fefcd9e4))
354
-
355
- ## [0.5.8](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/iconset@0.5.7...@spectrum-web-components/iconset@0.5.8) (2021-11-08)
356
-
357
- ### Bug Fixes
358
-
359
- - allow "updateComplete" to resolve to a boolean like the LitElement default ([6127946](https://github.com/adobe/spectrum-web-components/commit/6127946fd3ffd048a30b7eb4bf6aadf9e7c8752a))
360
-
361
- ## [0.5.7](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/iconset@0.5.6...@spectrum-web-components/iconset@0.5.7) (2021-07-22)
362
-
363
- **Note:** Version bump only for package @spectrum-web-components/iconset
364
-
365
- ## [0.5.6](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/iconset@0.5.5...@spectrum-web-components/iconset@0.5.6) (2021-06-16)
366
-
367
- ### Bug Fixes
368
-
369
- - lint away debugger statements ([34a498e](https://github.com/adobe/spectrum-web-components/commit/34a498e784221f98dbf26e9366114c82fabc9c5b))
370
-
371
- ## [0.5.5](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/iconset@0.5.4...@spectrum-web-components/iconset@0.5.5) (2021-04-09)
372
-
373
- **Note:** Version bump only for package @spectrum-web-components/iconset
374
-
375
- ## [0.5.4](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/iconset@0.5.3...@spectrum-web-components/iconset@0.5.4) (2021-03-29)
376
-
377
- **Note:** Version bump only for package @spectrum-web-components/iconset
378
-
379
- ## [0.5.3](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/iconset@0.5.2...@spectrum-web-components/iconset@0.5.3) (2021-03-22)
380
-
381
- **Note:** Version bump only for package @spectrum-web-components/iconset
382
-
383
- ## [0.5.2](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/iconset@0.5.1...@spectrum-web-components/iconset@0.5.2) (2021-03-22)
384
-
385
- **Note:** Version bump only for package @spectrum-web-components/iconset
386
-
387
- ## [0.5.1](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/iconset@0.5.0...@spectrum-web-components/iconset@0.5.1) (2021-03-05)
388
-
389
- **Note:** Version bump only for package @spectrum-web-components/iconset
390
-
391
- # [0.5.0](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/iconset@0.4.3...@spectrum-web-components/iconset@0.5.0) (2021-03-04)
392
-
393
- ### Features
394
-
395
- - use latest exports specification ([a7ecf4b](https://github.com/adobe/spectrum-web-components/commit/a7ecf4b6da7996f36a8a89f62cc2384709497008))
396
-
397
- ## [0.4.3](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/iconset@0.4.2...@spectrum-web-components/iconset@0.4.3) (2021-02-11)
398
-
399
- **Note:** Version bump only for package @spectrum-web-components/iconset
400
-
401
- ## [0.4.2](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/iconset@0.4.1...@spectrum-web-components/iconset@0.4.2) (2021-02-02)
402
-
403
- **Note:** Version bump only for package @spectrum-web-components/iconset
404
-
405
- ## [0.4.1](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/iconset@0.4.0...@spectrum-web-components/iconset@0.4.1) (2021-01-28)
406
-
407
- **Note:** Version bump only for package @spectrum-web-components/iconset
408
-
409
- # [0.4.0](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/iconset@0.2.5...@spectrum-web-components/iconset@0.4.0) (2021-01-21)
410
-
411
- ### Bug Fixes
412
-
413
- - include the "types" entry in package.json files ([b432f59](https://github.com/adobe/spectrum-web-components/commit/b432f5982b3b79f80af12f6d0312cbe2285e608b))
414
- - use icons without "size" values ([3fc7c91](https://github.com/adobe/spectrum-web-components/commit/3fc7c91713793a928082eae15fc3d9dec638a31a))
415
-
416
- ### Features
417
-
418
- - **icons-workflow:** vend fully registered icon components ([941f3a4](https://github.com/adobe/spectrum-web-components/commit/941f3a41486fbd49eca0805fb63383f63313e71e))
419
- - **iconset:** update spectrum css input ([914150a](https://github.com/adobe/spectrum-web-components/commit/914150a60e9e123ee68e9a26c8a72653846cd3ea))
420
-
421
- # [0.3.0](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/iconset@0.2.5...@spectrum-web-components/iconset@0.3.0) (2021-01-13)
422
-
423
- ### Bug Fixes
424
-
425
- - include the "types" entry in package.json files ([b432f59](https://github.com/adobe/spectrum-web-components/commit/b432f5982b3b79f80af12f6d0312cbe2285e608b))
426
- - use icons without "size" values ([3fc7c91](https://github.com/adobe/spectrum-web-components/commit/3fc7c91713793a928082eae15fc3d9dec638a31a))
427
-
428
- ### Features
429
-
430
- - **icons-workflow:** vend fully registered icon components ([941f3a4](https://github.com/adobe/spectrum-web-components/commit/941f3a41486fbd49eca0805fb63383f63313e71e))
431
- - **iconset:** update spectrum css input ([914150a](https://github.com/adobe/spectrum-web-components/commit/914150a60e9e123ee68e9a26c8a72653846cd3ea))
432
-
433
- ## [0.2.5](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/iconset@0.2.4...@spectrum-web-components/iconset@0.2.5) (2020-10-12)
434
-
435
- **Note:** Version bump only for package @spectrum-web-components/iconset
436
-
437
- ## [0.2.4](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/iconset@0.2.3...@spectrum-web-components/iconset@0.2.4) (2020-10-12)
438
-
439
- ### Bug Fixes
440
-
441
- - include default export in the "exports" fields ([f32407d](https://github.com/adobe/spectrum-web-components/commit/f32407d7bbfd18e72c35b6f27740549e79957858))
442
-
443
- ## [0.2.3](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/iconset@0.2.2...@spectrum-web-components/iconset@0.2.3) (2020-09-25)
444
-
445
- **Note:** Version bump only for package @spectrum-web-components/iconset
446
-
447
- ## [0.2.2](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/iconset@0.2.1...@spectrum-web-components/iconset@0.2.2) (2020-08-31)
448
-
449
- **Note:** Version bump only for package @spectrum-web-components/iconset
450
-
451
- ## [0.2.1](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/iconset@0.2.0...@spectrum-web-components/iconset@0.2.1) (2020-08-19)
452
-
453
- ### Bug Fixes
454
-
455
- - ensure browser understandable extensions ([f4e59f7](https://github.com/adobe/spectrum-web-components/commit/f4e59f76f86369593810463c6406565e28ad97e9))
456
-
457
- # [0.2.0](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/iconset@0.1.11...@spectrum-web-components/iconset@0.2.0) (2020-07-17)
458
-
459
- ### Features
460
-
461
- - leverage "exports" field in package.json ([321abd7](https://github.com/adobe/spectrum-web-components/commit/321abd7b7e78ccd9157cff75a1fa3dbd06e81f79))
462
-
463
- ## [0.1.11](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/iconset@0.1.10...@spectrum-web-components/iconset@0.1.11) (2020-06-08)
464
-
465
- **Note:** Version bump only for package @spectrum-web-components/iconset
466
-
467
- ## [0.1.10](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/iconset@0.1.9...@spectrum-web-components/iconset@0.1.10) (2020-05-08)
468
-
469
- ### Bug Fixes
470
-
471
- - remove "type: "module"" in package.json for node 12 ([c9f76e2](https://github.com/adobe/spectrum-web-components/commit/c9f76e21e24bb844466158fe96512ab19c37c5a9))
472
-
473
- ## [0.1.9](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/iconset@0.1.8...@spectrum-web-components/iconset@0.1.9) (2020-04-16)
474
-
475
- ### Performance Improvements
476
-
477
- - use "sideEffects" listing in package.json ([7271614](https://github.com/adobe/spectrum-web-components/commit/7271614c0ca3ccf3566583bb59467eb15a6199cd))
478
-
479
- ## [0.1.8](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/iconset@0.1.7...@spectrum-web-components/iconset@0.1.8) (2020-04-07)
480
-
481
- **Note:** Version bump only for package @spectrum-web-components/iconset
482
-
483
- ## [0.1.7](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/iconset@0.1.6...@spectrum-web-components/iconset@0.1.7) (2019-12-02)
484
-
485
- ### Bug Fixes
486
-
487
- - normalize "event" and "error" argument names ([8d382cd](https://github.com/adobe/spectrum-web-components/commit/8d382cd))
488
-
489
- ## [0.1.6](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/iconset@0.1.5...@spectrum-web-components/iconset@0.1.6) (2019-11-27)
490
-
491
- ### Bug Fixes
492
-
493
- - include "type" in package.json, generate custom-elements.json ([1a8d716](https://github.com/adobe/spectrum-web-components/commit/1a8d716))
494
-
495
- ## [0.1.5](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/iconset@0.1.4...@spectrum-web-components/iconset@0.1.5) (2019-11-01)
496
-
497
- ### Bug Fixes
498
-
499
- - remove ":" based namespacing of events ([d77a843](https://github.com/adobe/spectrum-web-components/commit/d77a843))
500
-
501
- ## [0.1.4](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/iconset@0.1.3...@spectrum-web-components/iconset@0.1.4) (2019-10-14)
502
-
503
- ### Performance Improvements
504
-
505
- - use imported TypeScript helpers instead of inlining them ([cc2bd0a](https://github.com/adobe/spectrum-web-components/commit/cc2bd0a))
506
-
507
- ## 0.1.3 (2019-10-03)
508
-
509
- **Note:** Version bump only for package @spectrum-web-components/iconset
@@ -1,281 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __decorateClass = (decorators, target, key, kind) => {
5
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
6
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
7
- if (decorator = decorators[i])
8
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
9
- if (kind && result) __defProp(target, key, result);
10
- return result;
11
- };
12
- import {
13
- css,
14
- html,
15
- SpectrumElement
16
- } from "@spectrum-web-components/base";
17
- import {
18
- customElement,
19
- property,
20
- state
21
- } from "@spectrum-web-components/base/src/decorators.js";
22
- import { ifDefined } from "@spectrum-web-components/base/src/directives.js";
23
- import "@spectrum-web-components/search/sp-search.js";
24
- import "@spectrum-web-components/field-label/sp-field-label.js";
25
- import bodyStyles from "@spectrum-web-components/styles/body.js";
26
- import "@spectrum-web-components/icon/sp-icon.js";
27
- import "@spectrum-web-components/help-text/sp-help-text.js";
28
- import iconsList from "./iconsList.json";
29
- import {
30
- SystemResolutionController,
31
- systemResolverUpdatedSymbol
32
- } from "@spectrum-web-components/reactive-controllers/src/SystemContextResolution.js";
33
- export let DelayedReady = class extends SpectrumElement {
34
- render() {
35
- return html`
36
- <slot @slotchange=${this.handleSlotchange}></slot>
37
- `;
38
- }
39
- firstUpdated() {
40
- this._delayedReady = new Promise(
41
- (res) => this._resolveDelayedReady = res
42
- );
43
- }
44
- async getUpdateComplete() {
45
- const complete = await super.getUpdateComplete();
46
- await this._delayedReady;
47
- return complete;
48
- }
49
- handleSlotchange({
50
- target
51
- }) {
52
- if (target.assignedElements({ flatten: true }).length) {
53
- requestAnimationFrame(() => {
54
- this._resolveDelayedReady();
55
- });
56
- }
57
- }
58
- };
59
- DelayedReady = __decorateClass([
60
- customElement("delayed-ready")
61
- ], DelayedReady);
62
- export let IconsDemo = class extends SpectrumElement {
63
- constructor() {
64
- super();
65
- this.name = "ui";
66
- this.package = "";
67
- this.size = "m";
68
- this.search = "";
69
- this.icons = [];
70
- this.filteredIcons = [];
71
- this.unsubscribeSystemContext = null;
72
- this.spectrumVersion = 1;
73
- this.iconset = [];
74
- this.systemResolver = new SystemResolutionController(this);
75
- this.iconset = [];
76
- this.handleIconSetAdded = this.handleIconSetAdded.bind(this);
77
- }
78
- async connectedCallback() {
79
- super.connectedCallback();
80
- window.addEventListener("sp-iconset-added", this.handleIconSetAdded);
81
- }
82
- disconnectedCallback() {
83
- window.removeEventListener("sp-iconset-added", this.handleIconSetAdded);
84
- super.disconnectedCallback();
85
- if (this.unsubscribeSystemContext) {
86
- this.unsubscribeSystemContext();
87
- this.unsubscribeSystemContext = null;
88
- }
89
- }
90
- filterIconsBySpectrumVersion() {
91
- const iconVersion = this.spectrumVersion === 2 ? "s2" : "s1";
92
- let filteredIcons = this.icons;
93
- if (this.name === "workflow") {
94
- filteredIcons = filteredIcons.filter((icon) => {
95
- const iconName = icon.name.replace(/\s/g, "").toLowerCase();
96
- return iconsList[iconVersion].includes(iconName);
97
- });
98
- }
99
- const iconSet = /* @__PURE__ */ new Set();
100
- filteredIcons = filteredIcons.filter((icon) => {
101
- if (iconSet.has(icon.name)) {
102
- return false;
103
- }
104
- iconSet.add(icon.name);
105
- return true;
106
- });
107
- this.filteredIcons = filteredIcons;
108
- }
109
- update(changes) {
110
- if (changes.has(systemResolverUpdatedSymbol)) {
111
- this.spectrumVersion = this.systemResolver.system === "spectrum-two" ? 2 : 1;
112
- this.filterIconsBySpectrumVersion();
113
- }
114
- if (changes.has("icons")) {
115
- this.filterIconsBySpectrumVersion();
116
- }
117
- super.update(changes);
118
- }
119
- handleIconSetAdded(event) {
120
- const { iconset } = event.detail;
121
- this.iconset = iconset.getIconList();
122
- this.requestUpdate();
123
- }
124
- static get styles() {
125
- return [
126
- ...bodyStyles,
127
- css`
128
- :host {
129
- display: grid;
130
- grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
131
- gap: 20px;
132
- align-items: flex-start;
133
- }
134
- .icon {
135
- display: flex;
136
- flex-direction: column;
137
- align-items: center;
138
- text-align: center;
139
- border-radius: var(
140
- --spectrum-alias-focus-ring-gap,
141
- var(--spectrum-spacing-50)
142
- );
143
- }
144
- :host([package]) .icon {
145
- cursor: pointer;
146
- }
147
- sp-icon {
148
- margin-bottom: 10px;
149
- }
150
- .search {
151
- grid-column-start: 1;
152
- grid-column-end: -1;
153
- }
154
- .icon[tabindex]:focus {
155
- outline: none;
156
- }
157
- .icon[tabindex]:focus-visible {
158
- outline: var(--spectrum-alias-focus-ring-size) solid
159
- var(--spectrum-alias-focus-ring-color);
160
- outline-offset: calc(
161
- var(
162
- --spectrum-alias-focus-ring-gap,
163
- var(--spectrum-spacing-50)
164
- ) *
165
- 2
166
- );
167
- }
168
- `
169
- ];
170
- }
171
- handleKeydown(event, tag) {
172
- const { code } = event;
173
- if (code !== "Enter" && code !== "NumpadEnter" && code !== "Space") {
174
- return;
175
- }
176
- event.preventDefault();
177
- this.shouldCopy(tag);
178
- }
179
- shouldCopy(tag) {
180
- if (!this.package) return;
181
- const conditionedTag = tag.slice(1, tag.length - 1);
182
- const importURL = `import '@spectrum-web-components/${this.package}/icons/${conditionedTag}.js';`;
183
- this.dispatchEvent(
184
- new CustomEvent("copy-text", {
185
- bubbles: true,
186
- composed: true,
187
- detail: {
188
- message: "Import statement copied to clipboard!",
189
- text: importURL
190
- }
191
- })
192
- );
193
- }
194
- updateSearch(event) {
195
- event.stopPropagation();
196
- this.search = event.target.value;
197
- }
198
- submit(event) {
199
- event.stopPropagation();
200
- this.updateSearch(event);
201
- }
202
- renderSearch() {
203
- const matchingIcons = this.search ? this.filteredIcons.filter(
204
- (icon) => icon.name.toLowerCase().includes(this.search.toLowerCase())
205
- ) : this.filteredIcons;
206
- return html`
207
- <div class="search" part="search">
208
- <sp-field-label for="search">Spectrum icons:</sp-field-label>
209
- <sp-search
210
- id="search"
211
- @keydown=${this.updateSearch}
212
- @input=${this.updateSearch}
213
- @submit=${this.submit}
214
- .value=${this.search}
215
- label="Search for icons"
216
- autocomplete="off"
217
- >
218
- <sp-help-text slot="help-text">
219
- Showing ${matchingIcons.length} of
220
- ${this.filteredIcons.length} available icons.
221
- </sp-help-text>
222
- </sp-search>
223
- </div>
224
- ${matchingIcons.map((icon) => {
225
- return html`
226
- <bdo
227
- class="icon"
228
- part="icon"
229
- dir="ltr"
230
- class="icon"
231
- @click=${() => this.shouldCopy(icon.tag)}
232
- @keydown=${(event) => this.handleKeydown(event, icon.tag)}
233
- tabindex=${ifDefined(this.package ? "0" : void 0)}
234
- >
235
- ${icon.story(this.size)} ${icon.tag}
236
- </bdo>
237
- `;
238
- })}
239
- `;
240
- }
241
- render() {
242
- return html`
243
- ${this.filteredIcons.length ? this.renderSearch() : html`
244
- <slot></slot>
245
- `}
246
- ${this.iconset.map(
247
- (icon) => html`
248
- <bdo class="icon" dir="ltr">
249
- <sp-icon
250
- size="xl"
251
- name=${`${this.name}:${icon}`}
252
- ></sp-icon>
253
- ${icon}
254
- </bdo>
255
- `
256
- )}
257
- `;
258
- }
259
- };
260
- __decorateClass([
261
- property()
262
- ], IconsDemo.prototype, "name", 2);
263
- __decorateClass([
264
- property()
265
- ], IconsDemo.prototype, "package", 2);
266
- __decorateClass([
267
- property()
268
- ], IconsDemo.prototype, "size", 2);
269
- __decorateClass([
270
- property()
271
- ], IconsDemo.prototype, "search", 2);
272
- __decorateClass([
273
- property({ attribute: false })
274
- ], IconsDemo.prototype, "icons", 2);
275
- __decorateClass([
276
- state()
277
- ], IconsDemo.prototype, "spectrumVersion", 2);
278
- IconsDemo = __decorateClass([
279
- customElement("icons-demo")
280
- ], IconsDemo);
281
- //# sourceMappingURL=icons-demo.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["icons-demo.ts"],
4
- "sourcesContent": ["/**\n * Copyright 2025 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 */\nimport { IconsetAddedDetail } from '@spectrum-web-components/iconset';\nimport {\n css,\n CSSResultGroup,\n html,\n PropertyValues,\n SpectrumElement,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport {\n customElement,\n property,\n state,\n} from '@spectrum-web-components/base/src/decorators.js';\nimport { ifDefined } from '@spectrum-web-components/base/src/directives.js';\nimport { Search } from '@spectrum-web-components/search';\nimport '@spectrum-web-components/search/sp-search.js';\nimport '@spectrum-web-components/field-label/sp-field-label.js';\nimport bodyStyles from '@spectrum-web-components/styles/body.js';\nimport '@spectrum-web-components/icon/sp-icon.js';\nimport '@spectrum-web-components/help-text/sp-help-text.js';\n\nimport iconsList from './iconsList.json' with { type: 'json' };\n\nimport {\n SystemResolutionController,\n systemResolverUpdatedSymbol,\n} from '@spectrum-web-components/reactive-controllers/src/SystemContextResolution.js';\n\n@customElement('delayed-ready')\nexport class DelayedReady extends SpectrumElement {\n _delayedReady!: Promise<void>;\n _resolveDelayedReady!: () => void;\n\n protected override render(): TemplateResult {\n return html`\n <slot @slotchange=${this.handleSlotchange}></slot>\n `;\n }\n\n protected override firstUpdated(): void {\n this._delayedReady = new Promise(\n (res) => (this._resolveDelayedReady = res)\n );\n }\n\n protected override async getUpdateComplete(): Promise<boolean> {\n const complete = (await super.getUpdateComplete()) as boolean;\n await this._delayedReady;\n return complete;\n }\n\n public handleSlotchange({\n target,\n }: Event & { target: HTMLSlotElement }): void {\n if (target.assignedElements({ flatten: true }).length) {\n requestAnimationFrame(() => {\n this._resolveDelayedReady();\n });\n }\n }\n}\n\n@customElement('icons-demo')\nexport class IconsDemo extends SpectrumElement {\n @property()\n public name = 'ui';\n\n @property()\n public package = '';\n\n @property()\n public size = 'm';\n\n @property()\n public search = '';\n\n @property({ attribute: false })\n public icons: {\n name: string;\n story(size: string): TemplateResult;\n tag: string;\n }[] = [];\n\n private filteredIcons: {\n name: string;\n story(size: string): TemplateResult;\n tag: string;\n }[] = [];\n\n private unsubscribeSystemContext: (() => void) | null = null;\n\n @state()\n public spectrumVersion = 1;\n\n private iconset: string[] = [];\n public constructor() {\n super();\n this.iconset = [];\n this.handleIconSetAdded = this.handleIconSetAdded.bind(this);\n }\n\n public override async connectedCallback(): Promise<void> {\n super.connectedCallback();\n window.addEventListener('sp-iconset-added', this.handleIconSetAdded);\n }\n public override disconnectedCallback(): void {\n window.removeEventListener('sp-iconset-added', this.handleIconSetAdded);\n super.disconnectedCallback();\n if (this.unsubscribeSystemContext) {\n this.unsubscribeSystemContext();\n this.unsubscribeSystemContext = null;\n }\n }\n\n private filterIconsBySpectrumVersion(): void {\n const iconVersion = this.spectrumVersion === 2 ? 's2' : 's1';\n let filteredIcons = this.icons;\n // Filter out icons that are not in the current version for workflow icons\n if (this.name === 'workflow') {\n filteredIcons = filteredIcons.filter((icon) => {\n const iconName = icon.name.replace(/\\s/g, '').toLowerCase();\n return iconsList[iconVersion].includes(iconName);\n });\n }\n\n // Use a Set to remove duplicates that may get added because of the same icon name in both versions\n const iconSet = new Set();\n filteredIcons = filteredIcons.filter((icon) => {\n if (iconSet.has(icon.name)) {\n return false;\n }\n iconSet.add(icon.name);\n return true;\n });\n\n this.filteredIcons = filteredIcons;\n }\n\n private systemResolver = new SystemResolutionController(this);\n\n protected override update(changes: PropertyValues): void {\n if (changes.has(systemResolverUpdatedSymbol)) {\n this.spectrumVersion =\n this.systemResolver.system === 'spectrum-two' ? 2 : 1;\n this.filterIconsBySpectrumVersion();\n }\n\n if (changes.has('icons')) {\n this.filterIconsBySpectrumVersion();\n }\n\n super.update(changes);\n }\n\n public handleIconSetAdded(event: CustomEvent<IconsetAddedDetail>): void {\n const { iconset } = event.detail;\n this.iconset = iconset.getIconList();\n this.requestUpdate();\n }\n public static override get styles(): CSSResultGroup {\n return [\n ...bodyStyles,\n css`\n :host {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));\n gap: 20px;\n align-items: flex-start;\n }\n .icon {\n display: flex;\n flex-direction: column;\n align-items: center;\n text-align: center;\n border-radius: var(\n --spectrum-alias-focus-ring-gap,\n var(--spectrum-spacing-50)\n );\n }\n :host([package]) .icon {\n cursor: pointer;\n }\n sp-icon {\n margin-bottom: 10px;\n }\n .search {\n grid-column-start: 1;\n grid-column-end: -1;\n }\n .icon[tabindex]:focus {\n outline: none;\n }\n .icon[tabindex]:focus-visible {\n outline: var(--spectrum-alias-focus-ring-size) solid\n var(--spectrum-alias-focus-ring-color);\n outline-offset: calc(\n var(\n --spectrum-alias-focus-ring-gap,\n var(--spectrum-spacing-50)\n ) *\n 2\n );\n }\n `,\n ];\n }\n private handleKeydown(event: KeyboardEvent, tag: string): void {\n const { code } = event;\n if (code !== 'Enter' && code !== 'NumpadEnter' && code !== 'Space') {\n return;\n }\n event.preventDefault();\n this.shouldCopy(tag);\n }\n\n private shouldCopy(tag: string): void {\n if (!this.package) return;\n const conditionedTag = tag.slice(1, tag.length - 1);\n const importURL = `import '@spectrum-web-components/${this.package}/icons/${conditionedTag}.js';`;\n this.dispatchEvent(\n new CustomEvent('copy-text', {\n bubbles: true,\n composed: true,\n detail: {\n message: 'Import statement copied to clipboard!',\n text: importURL,\n },\n })\n );\n }\n private updateSearch(event: Event & { target: Search }): void {\n event.stopPropagation();\n this.search = event.target.value;\n }\n private submit(event: Event & { target: Search }): void {\n event.stopPropagation();\n this.updateSearch(event);\n }\n private renderSearch(): TemplateResult {\n const matchingIcons = this.search\n ? this.filteredIcons.filter((icon) =>\n icon.name.toLowerCase().includes(this.search.toLowerCase())\n )\n : this.filteredIcons;\n\n return html`\n <div class=\"search\" part=\"search\">\n <sp-field-label for=\"search\">Spectrum icons:</sp-field-label>\n <sp-search\n id=\"search\"\n @keydown=${this.updateSearch}\n @input=${this.updateSearch}\n @submit=${this.submit}\n .value=${this.search}\n label=\"Search for icons\"\n autocomplete=\"off\"\n >\n <sp-help-text slot=\"help-text\">\n Showing ${matchingIcons.length} of\n ${this.filteredIcons.length} available icons.\n </sp-help-text>\n </sp-search>\n </div>\n ${matchingIcons.map((icon) => {\n return html`\n <bdo\n class=\"icon\"\n part=\"icon\"\n dir=\"ltr\"\n class=\"icon\"\n @click=${() => this.shouldCopy(icon.tag)}\n @keydown=${(event: KeyboardEvent) =>\n this.handleKeydown(event, icon.tag)}\n tabindex=${ifDefined(this.package ? '0' : undefined)}\n >\n ${icon.story(this.size)} ${icon.tag}\n </bdo>\n `;\n })}\n `;\n }\n protected override render(): TemplateResult {\n return html`\n ${this.filteredIcons.length\n ? this.renderSearch()\n : html`\n <slot></slot>\n `}\n ${this.iconset.map(\n (icon) => html`\n <bdo class=\"icon\" dir=\"ltr\">\n <sp-icon\n size=\"xl\"\n name=${`${this.name}:${icon}`}\n ></sp-icon>\n ${icon}\n </bdo>\n `\n )}\n `;\n }\n}\n"],
5
- "mappings": ";;;;;;;;;;;AAYA;AAAA,EACI;AAAA,EAEA;AAAA,EAEA;AAAA,OAEG;AACP;AAAA,EACI;AAAA,EACA;AAAA,EACA;AAAA,OACG;AACP,SAAS,iBAAiB;AAE1B,OAAO;AACP,OAAO;AACP,OAAO,gBAAgB;AACvB,OAAO;AACP,OAAO;AAEP,OAAO,eAAe;AAEtB;AAAA,EACI;AAAA,EACA;AAAA,OACG;AAGA,WAAM,eAAN,cAA2B,gBAAgB;AAAA,EAI3B,SAAyB;AACxC,WAAO;AAAA,gCACiB,KAAK,gBAAgB;AAAA;AAAA,EAEjD;AAAA,EAEmB,eAAqB;AACpC,SAAK,gBAAgB,IAAI;AAAA,MACrB,CAAC,QAAS,KAAK,uBAAuB;AAAA,IAC1C;AAAA,EACJ;AAAA,EAEA,MAAyB,oBAAsC;AAC3D,UAAM,WAAY,MAAM,MAAM,kBAAkB;AAChD,UAAM,KAAK;AACX,WAAO;AAAA,EACX;AAAA,EAEO,iBAAiB;AAAA,IACpB;AAAA,EACJ,GAA8C;AAC1C,QAAI,OAAO,iBAAiB,EAAE,SAAS,KAAK,CAAC,EAAE,QAAQ;AACnD,4BAAsB,MAAM;AACxB,aAAK,qBAAqB;AAAA,MAC9B,CAAC;AAAA,IACL;AAAA,EACJ;AACJ;AA/Ba,eAAN;AAAA,EADN,cAAc,eAAe;AAAA,GACjB;AAkCN,WAAM,YAAN,cAAwB,gBAAgB;AAAA,EAgCpC,cAAc;AACjB,UAAM;AA/BV,SAAO,OAAO;AAGd,SA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S;AAAA,GAPD,UAQF;AAGA;AAAA,EADN,SAAS;AAAA,GAVD,UAWF;AAGA;AAAA,EADN,SAAS,EAAE,WAAW,MAAM,CAAC;AAAA,GAbrB,UAcF;AAeA;AAAA,EADN,MAAM;AAAA,GA5BE,UA6BF;AA7BE,YAAN;AAAA,EADN,cAAc,YAAY;AAAA,GACd;",
6
- "names": []
7
- }
@@ -1,101 +0,0 @@
1
- "use strict";
2
- import { waitForPredicate } from "../../../test/testing-helpers.js";
3
- import "@spectrum-web-components/icons/sp-icons-medium.js";
4
- import "@spectrum-web-components/icon/sp-icon.js";
5
- import { IconsetRegistry } from "@spectrum-web-components/iconset/src/iconset-registry.js";
6
- import { elementUpdated, expect, fixture, html } from "@open-wc/testing";
7
- import { stub } from "sinon";
8
- describe("Iconset", () => {
9
- after(() => {
10
- const sets = [...document.querySelectorAll("sp-icons-medium")];
11
- sets.map((set) => set.remove());
12
- });
13
- it("warns in Dev Mode of deprecation", async () => {
14
- const consoleWarnStub = stub(console, "warn");
15
- const el = document.createElement("sp-icons-medium");
16
- document.body.append(el);
17
- await elementUpdated(el);
18
- expect(consoleWarnStub.called).to.be.true;
19
- const spyCall = consoleWarnStub.getCall(0);
20
- expect(
21
- spyCall.args.at(0).includes("deprecated"),
22
- "confirm deprecation message"
23
- ).to.be.true;
24
- expect(spyCall.args.at(-1), "confirm `data` shape").to.deep.equal({
25
- data: {
26
- localName: "sp-icons-medium",
27
- type: "api",
28
- level: "deprecation"
29
- }
30
- });
31
- consoleWarnStub.restore();
32
- });
33
- it("will re-register with new name", async () => {
34
- const icons = document.createElement("sp-icons-medium");
35
- document.body.append(icons);
36
- icons.name = "first-name";
37
- const registry = IconsetRegistry.getInstance();
38
- expect(registry.getIconset("first-name")).to.not.be.undefined;
39
- expect(registry.getIconset("")).to.be.undefined;
40
- expect(registry.getIconset("second-name")).to.be.undefined;
41
- expect(registry.getIconset("ui")).to.be.undefined;
42
- icons.name = "";
43
- expect(registry.getIconset("first-name")).to.be.undefined;
44
- expect(registry.getIconset("")).to.be.undefined;
45
- expect(registry.getIconset("second-name")).to.be.undefined;
46
- expect(registry.getIconset("ui")).to.be.undefined;
47
- icons.name = "second-name";
48
- expect(registry.getIconset("first-name")).to.be.undefined;
49
- expect(registry.getIconset("")).to.be.undefined;
50
- expect(registry.getIconset("second-name")).to.not.be.undefined;
51
- expect(registry.getIconset("ui")).to.be.undefined;
52
- });
53
- it("will not re-register on (dis)connect without a name", async () => {
54
- const icons = document.createElement("sp-icons-medium");
55
- document.body.append(icons);
56
- const registry = IconsetRegistry.getInstance();
57
- expect(registry.getIconset("ui")).to.not.be.undefined;
58
- icons.name = "";
59
- expect(registry.getIconset("ui")).to.be.undefined;
60
- icons.remove();
61
- document.body.append(icons);
62
- expect(registry.getIconset("ui")).to.be.undefined;
63
- });
64
- it("renders after adding and removing a second iconset of same name", async () => {
65
- const icons = document.createElement("sp-icons-medium");
66
- document.body.append(icons);
67
- const icons2 = document.createElement("sp-icons-medium");
68
- document.body.append(icons2);
69
- icons2.remove();
70
- window.dispatchEvent(
71
- new CustomEvent("sp-iconset-removed", {
72
- detail: { name: "Other Set" }
73
- })
74
- );
75
- const el = await fixture(html`
76
- <sp-icon name="ui:Chevron200"></sp-icon>
77
- `);
78
- let svg = el.shadowRoot ? el.shadowRoot.querySelector('[role="img"]') : null;
79
- function getSVG() {
80
- svg = el.shadowRoot ? el.shadowRoot.querySelector('[role="img"]') : null;
81
- return svg !== null;
82
- }
83
- await waitForPredicate(getSVG);
84
- expect(svg).to.not.be.null;
85
- });
86
- it("can be after `<sp-icon/>` in the DOM order", async () => {
87
- const el = await fixture(html`
88
- <div>
89
- <sp-icon name="ui:Chevron200"></sp-icon>
90
- <sp-icons-medium></sp-icons-medium>
91
- </div>
92
- `);
93
- const icon = el.querySelector("sp-icon");
94
- const iconSet = el.querySelector("sp-icons-medium");
95
- await elementUpdated(iconSet);
96
- await elementUpdated(icon);
97
- const svg = icon.shadowRoot ? icon.shadowRoot.querySelector('[role="img"]') : null;
98
- expect(svg).to.not.be.null;
99
- });
100
- });
101
- //# sourceMappingURL=iconset.test.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["iconset.test.ts"],
4
- "sourcesContent": ["/**\n * Copyright 2025 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 { waitForPredicate } from '../../../test/testing-helpers.js';\nimport '@spectrum-web-components/icons/sp-icons-medium.js';\nimport '@spectrum-web-components/icon/sp-icon.js';\nimport { IconsMedium } from '@spectrum-web-components/icons';\nimport { Icon } from '@spectrum-web-components/icon';\nimport { IconsetRegistry } from '@spectrum-web-components/iconset/src/iconset-registry.js';\nimport { elementUpdated, expect, fixture, html } from '@open-wc/testing';\nimport { stub } from 'sinon';\n\ndescribe('Iconset', () => {\n after(() => {\n const sets = [...document.querySelectorAll('sp-icons-medium')];\n sets.map((set) => set.remove());\n });\n it('warns in Dev Mode of deprecation', async () => {\n const consoleWarnStub = stub(console, 'warn');\n const el = document.createElement('sp-icons-medium');\n document.body.append(el);\n\n await elementUpdated(el);\n\n expect(consoleWarnStub.called).to.be.true;\n const spyCall = consoleWarnStub.getCall(0);\n expect(\n spyCall.args.at(0).includes('deprecated'),\n 'confirm deprecation message'\n ).to.be.true;\n expect(spyCall.args.at(-1), 'confirm `data` shape').to.deep.equal({\n data: {\n localName: 'sp-icons-medium',\n type: 'api',\n level: 'deprecation',\n },\n });\n consoleWarnStub.restore();\n });\n\n it('will re-register with new name', async () => {\n const icons = document.createElement('sp-icons-medium');\n document.body.append(icons);\n icons.name = 'first-name';\n\n const registry = IconsetRegistry.getInstance();\n\n expect(registry.getIconset('first-name')).to.not.be.undefined;\n expect(registry.getIconset('')).to.be.undefined;\n expect(registry.getIconset('second-name')).to.be.undefined;\n expect(registry.getIconset('ui')).to.be.undefined;\n\n icons.name = '';\n\n expect(registry.getIconset('first-name')).to.be.undefined;\n expect(registry.getIconset('')).to.be.undefined;\n expect(registry.getIconset('second-name')).to.be.undefined;\n expect(registry.getIconset('ui')).to.be.undefined;\n\n icons.name = 'second-name';\n\n expect(registry.getIconset('first-name')).to.be.undefined;\n expect(registry.getIconset('')).to.be.undefined;\n expect(registry.getIconset('second-name')).to.not.be.undefined;\n expect(registry.getIconset('ui')).to.be.undefined;\n });\n it('will not re-register on (dis)connect without a name', async () => {\n const icons = document.createElement('sp-icons-medium');\n document.body.append(icons);\n\n const registry = IconsetRegistry.getInstance();\n\n expect(registry.getIconset('ui')).to.not.be.undefined;\n\n icons.name = '';\n\n expect(registry.getIconset('ui')).to.be.undefined;\n\n icons.remove();\n\n document.body.append(icons);\n\n expect(registry.getIconset('ui')).to.be.undefined;\n });\n it('renders after adding and removing a second iconset of same name', async () => {\n const icons = document.createElement('sp-icons-medium');\n document.body.append(icons);\n\n const icons2 = document.createElement('sp-icons-medium');\n document.body.append(icons2);\n\n icons2.remove();\n\n window.dispatchEvent(\n new CustomEvent('sp-iconset-removed', {\n detail: { name: 'Other Set' },\n })\n );\n\n const el = await fixture<Icon>(html`\n <sp-icon name=\"ui:Chevron200\"></sp-icon>\n `);\n\n let svg = el.shadowRoot\n ? el.shadowRoot.querySelector('[role=\"img\"]')\n : null;\n\n function getSVG(): boolean {\n svg = el.shadowRoot\n ? el.shadowRoot.querySelector('[role=\"img\"]')\n : null;\n\n return svg !== null;\n }\n\n await waitForPredicate(getSVG);\n\n expect(svg).to.not.be.null;\n });\n\n it('can be after `<sp-icon/>` in the DOM order', async () => {\n const el = await fixture<HTMLDivElement>(html`\n <div>\n <sp-icon name=\"ui:Chevron200\"></sp-icon>\n <sp-icons-medium></sp-icons-medium>\n </div>\n `);\n\n const icon = el.querySelector('sp-icon') as Icon;\n const iconSet = el.querySelector('sp-icons-medium') as IconsMedium;\n\n await elementUpdated(iconSet);\n await elementUpdated(icon);\n\n const svg = icon.shadowRoot\n ? icon.shadowRoot.querySelector('[role=\"img\"]')\n : null;\n expect(svg).to.not.be.null;\n });\n});\n"],
5
- "mappings": ";AAYA,SAAS,wBAAwB;AACjC,OAAO;AACP,OAAO;AAGP,SAAS,uBAAuB;AAChC,SAAS,gBAAgB,QAAQ,SAAS,YAAY;AACtD,SAAS,YAAY;AAErB,SAAS,WAAW,MAAM;AACtB,QAAM,MAAM;AACR,UAAM,OAAO,CAAC,GAAG,SAAS,iBAAiB,iBAAiB,CAAC;AAC7D,SAAK,IAAI,CAAC,QAAQ,IAAI,OAAO,CAAC;AAAA,EAClC,CAAC;AACD,KAAG,oCAAoC,YAAY;AAC/C,UAAM,kBAAkB,KAAK,SAAS,MAAM;AAC5C,UAAM,KAAK,SAAS,cAAc,iBAAiB;AACnD,aAAS,KAAK,OAAO,EAAE;AAEvB,UAAM,eAAe,EAAE;AAEvB,WAAO,gBAAgB,MAAM,EAAE,GAAG,GAAG;AACrC,UAAM,UAAU,gBAAgB,QAAQ,CAAC;AACzC;AAAA,MACI,QAAQ,KAAK,GAAG,CAAC,EAAE,SAAS,YAAY;AAAA,MACxC;AAAA,IACJ,EAAE,GAAG,GAAG;AACR,WAAO,QAAQ,KAAK,GAAG,EAAE,GAAG,sBAAsB,EAAE,GAAG,KAAK,MAAM;AAAA,MAC9D,MAAM;AAAA,QACF,WAAW;AAAA,QACX,MAAM;AAAA,QACN,OAAO;AAAA,MACX;AAAA,IACJ,CAAC;AACD,oBAAgB,QAAQ;AAAA,EAC5B,CAAC;AAED,KAAG,kCAAkC,YAAY;AAC7C,UAAM,QAAQ,SAAS,cAAc,iBAAiB;AACtD,aAAS,KAAK,OAAO,KAAK;AAC1B,UAAM,OAAO;AAEb,UAAM,WAAW,gBAAgB,YAAY;AAE7C,WAAO,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