@spectrum-web-components/asset 1.9.0 → 1.9.1-nightly.20251028221318

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/CHANGELOG.md ADDED
@@ -0,0 +1,480 @@
1
+ # Change Log
2
+
3
+ ## 1.9.1-nightly.20251028221318
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @spectrum-web-components/base@1.9.1-nightly.20251028221318
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
+ - [#5271](https://github.com/adobe/spectrum-web-components/pull/5271) [`165a904`](https://github.com/adobe/spectrum-web-components/commit/165a904bd01fddea922fe87b181bbf41281f81f0) Thanks [@renovate](https://github.com/apps/renovate)! - Remove unnecessary system theme references to reduce complexity for components that don't need the additional mapping layer.
43
+
44
+ - Updated dependencies []:
45
+ - @spectrum-web-components/base@1.5.0
46
+
47
+ ## 1.4.0
48
+
49
+ ### Patch Changes
50
+
51
+ - Updated dependencies []:
52
+ - @spectrum-web-components/base@1.4.0
53
+
54
+ ## 1.3.0
55
+
56
+ ### Patch Changes
57
+
58
+ - Updated dependencies []:
59
+ - @spectrum-web-components/base@1.3.0
60
+
61
+ All notable changes to this project will be documented in this file.
62
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
63
+
64
+ # [1.2.0](https://github.com/adobe/spectrum-web-components/compare/v1.1.2...v1.2.0) (2025-02-27)
65
+
66
+ **Note:** Version bump only for package @spectrum-web-components/asset
67
+
68
+ ## [1.1.2](https://github.com/adobe/spectrum-web-components/compare/v1.1.1...v1.1.2) (2025-02-12)
69
+
70
+ **Note:** Version bump only for package @spectrum-web-components/asset
71
+
72
+ ## [1.1.1](https://github.com/adobe/spectrum-web-components/compare/v1.1.0...v1.1.1) (2025-01-29)
73
+
74
+ **Note:** Version bump only for package @spectrum-web-components/asset
75
+
76
+ # [1.1.0](https://github.com/adobe/spectrum-web-components/compare/v1.0.3...v1.1.0) (2025-01-29)
77
+
78
+ ### Bug Fixes
79
+
80
+ - lock prerelease versions for Spectrum CSS ([#5014](https://github.com/adobe/spectrum-web-components/issues/5014)) ([8aa7734](https://github.com/adobe/spectrum-web-components/commit/8aa77342f169b75ecbd1c07a2a1050860b182822))
81
+
82
+ ## [1.0.1](https://github.com/adobe/spectrum-web-components/compare/v1.0.0...v1.0.1) (2024-11-11)
83
+
84
+ **Note:** Version bump only for package @spectrum-web-components/asset
85
+
86
+ # [1.0.0](https://github.com/adobe/spectrum-web-components/compare/v0.49.0...v1.0.0) (2024-10-31)
87
+
88
+ **Note:** Version bump only for package @spectrum-web-components/asset
89
+
90
+ # [0.49.0](https://github.com/adobe/spectrum-web-components/compare/v0.48.1...v0.49.0) (2024-10-15)
91
+
92
+ **Note:** Version bump only for package @spectrum-web-components/asset
93
+
94
+ ## [0.48.1](https://github.com/adobe/spectrum-web-components/compare/v0.48.0...v0.48.1) (2024-10-01)
95
+
96
+ **Note:** Version bump only for package @spectrum-web-components/asset
97
+
98
+ # [0.48.0](https://github.com/adobe/spectrum-web-components/compare/v0.47.2...v0.48.0) (2024-09-17)
99
+
100
+ **Note:** Version bump only for package @spectrum-web-components/asset
101
+
102
+ ## [0.47.2](https://github.com/adobe/spectrum-web-components/compare/v0.47.1...v0.47.2) (2024-09-03)
103
+
104
+ **Note:** Version bump only for package @spectrum-web-components/asset
105
+
106
+ ## [0.47.1](https://github.com/adobe/spectrum-web-components/compare/v0.47.0...v0.47.1) (2024-08-27)
107
+
108
+ **Note:** Version bump only for package @spectrum-web-components/asset
109
+
110
+ # [0.47.0](https://github.com/adobe/spectrum-web-components/compare/v0.46.0...v0.47.0) (2024-08-20)
111
+
112
+ **Note:** Version bump only for package @spectrum-web-components/asset
113
+
114
+ # [0.46.0](https://github.com/adobe/spectrum-web-components/compare/v0.45.0...v0.46.0) (2024-08-08)
115
+
116
+ **Note:** Version bump only for package @spectrum-web-components/asset
117
+
118
+ # [0.45.0](https://github.com/adobe/spectrum-web-components/compare/v0.44.0...v0.45.0) (2024-07-30)
119
+
120
+ **Note:** Version bump only for package @spectrum-web-components/asset
121
+
122
+ # [0.44.0](https://github.com/adobe/spectrum-web-components/compare/v0.42.4...v0.44.0) (2024-07-15)
123
+
124
+ **Note:** Version bump only for package @spectrum-web-components/asset
125
+
126
+ # [0.43.0](https://github.com/adobe/spectrum-web-components/compare/v0.42.4...v0.43.0) (2024-06-11)
127
+
128
+ **Note:** Version bump only for package @spectrum-web-components/asset
129
+
130
+ ## [0.42.5](https://github.com/adobe/spectrum-web-components/compare/v0.42.4...v0.42.5) (2024-05-24)
131
+
132
+ **Note:** Version bump only for package @spectrum-web-components/asset
133
+
134
+ ## [0.42.4](https://github.com/adobe/spectrum-web-components/compare/v0.42.2...v0.42.4) (2024-05-14)
135
+
136
+ **Note:** Version bump only for package @spectrum-web-components/asset
137
+
138
+ ## [0.42.3](https://github.com/adobe/spectrum-web-components/compare/v0.42.2...v0.42.3) (2024-05-01)
139
+
140
+ **Note:** Version bump only for package @spectrum-web-components/asset
141
+
142
+ ## [0.42.2](https://github.com/adobe/spectrum-web-components/compare/v0.42.1...v0.42.2) (2024-04-03)
143
+
144
+ **Note:** Version bump only for package @spectrum-web-components/asset
145
+
146
+ ## [0.42.1](https://github.com/adobe/spectrum-web-components/compare/v0.42.0...v0.42.1) (2024-04-02)
147
+
148
+ **Note:** Version bump only for package @spectrum-web-components/asset
149
+
150
+ # [0.42.0](https://github.com/adobe/spectrum-web-components/compare/v0.41.2...v0.42.0) (2024-03-19)
151
+
152
+ ### Features
153
+
154
+ - **asset:** use core tokens ([99e76f4](https://github.com/adobe/spectrum-web-components/commit/99e76f4d32e990960b7fa2f0613ed4144adc4f6e))
155
+
156
+ ## [0.41.2](https://github.com/adobe/spectrum-web-components/compare/v0.41.1...v0.41.2) (2024-03-05)
157
+
158
+ **Note:** Version bump only for package @spectrum-web-components/asset
159
+
160
+ ## [0.41.1](https://github.com/adobe/spectrum-web-components/compare/v0.41.0...v0.41.1) (2024-02-22)
161
+
162
+ **Note:** Version bump only for package @spectrum-web-components/asset
163
+
164
+ # [0.41.0](https://github.com/adobe/spectrum-web-components/compare/v0.40.5...v0.41.0) (2024-02-13)
165
+
166
+ **Note:** Version bump only for package @spectrum-web-components/asset
167
+
168
+ ## [0.40.5](https://github.com/adobe/spectrum-web-components/compare/v0.40.4...v0.40.5) (2024-02-05)
169
+
170
+ **Note:** Version bump only for package @spectrum-web-components/asset
171
+
172
+ ## [0.40.4](https://github.com/adobe/spectrum-web-components/compare/v0.40.3...v0.40.4) (2024-01-29)
173
+
174
+ **Note:** Version bump only for package @spectrum-web-components/asset
175
+
176
+ ## [0.40.3](https://github.com/adobe/spectrum-web-components/compare/v0.40.2...v0.40.3) (2024-01-11)
177
+
178
+ **Note:** Version bump only for package @spectrum-web-components/asset
179
+
180
+ ## [0.40.2](https://github.com/adobe/spectrum-web-components/compare/v0.40.1...v0.40.2) (2023-12-18)
181
+
182
+ **Note:** Version bump only for package @spectrum-web-components/asset
183
+
184
+ ## [0.40.1](https://github.com/adobe/spectrum-web-components/compare/v0.40.0...v0.40.1) (2023-12-05)
185
+
186
+ **Note:** Version bump only for package @spectrum-web-components/asset
187
+
188
+ # [0.40.0](https://github.com/adobe/spectrum-web-components/compare/v0.39.4...v0.40.0) (2023-11-16)
189
+
190
+ **Note:** Version bump only for package @spectrum-web-components/asset
191
+
192
+ ## [0.39.4](https://github.com/adobe/spectrum-web-components/compare/v0.39.3...v0.39.4) (2023-11-02)
193
+
194
+ **Note:** Version bump only for package @spectrum-web-components/asset
195
+
196
+ ## [0.39.3](https://github.com/adobe/spectrum-web-components/compare/v0.39.2...v0.39.3) (2023-10-18)
197
+
198
+ **Note:** Version bump only for package @spectrum-web-components/asset
199
+
200
+ ## [0.39.2](https://github.com/adobe/spectrum-web-components/compare/v0.39.1...v0.39.2) (2023-10-13)
201
+
202
+ **Note:** Version bump only for package @spectrum-web-components/asset
203
+
204
+ ## [0.39.1](https://github.com/adobe/spectrum-web-components/compare/v0.39.0...v0.39.1) (2023-10-06)
205
+
206
+ **Note:** Version bump only for package @spectrum-web-components/asset
207
+
208
+ # [0.39.0](https://github.com/adobe/spectrum-web-components/compare/v0.38.0...v0.39.0) (2023-09-25)
209
+
210
+ **Note:** Version bump only for package @spectrum-web-components/asset
211
+
212
+ # [0.38.0](https://github.com/adobe/spectrum-web-components/compare/v0.37.0...v0.38.0) (2023-09-05)
213
+
214
+ **Note:** Version bump only for package @spectrum-web-components/asset
215
+
216
+ # [0.37.0](https://github.com/adobe/spectrum-web-components/compare/v0.36.0...v0.37.0) (2023-08-18)
217
+
218
+ **Note:** Version bump only for package @spectrum-web-components/asset
219
+
220
+ # [0.36.0](https://github.com/adobe/spectrum-web-components/compare/v0.35.0...v0.36.0) (2023-08-18)
221
+
222
+ **Note:** Version bump only for package @spectrum-web-components/asset
223
+
224
+ # [0.35.0](https://github.com/adobe/spectrum-web-components/compare/v0.34.0...v0.35.0) (2023-07-31)
225
+
226
+ **Note:** Version bump only for package @spectrum-web-components/asset
227
+
228
+ # [0.34.0](https://github.com/adobe/spectrum-web-components/compare/v0.33.2...v0.34.0) (2023-07-11)
229
+
230
+ **Note:** Version bump only for package @spectrum-web-components/asset
231
+
232
+ ## [0.33.2](https://github.com/adobe/spectrum-web-components/compare/v0.33.1...v0.33.2) (2023-06-14)
233
+
234
+ **Note:** Version bump only for package @spectrum-web-components/asset
235
+
236
+ # [0.33.0](https://github.com/adobe/spectrum-web-components/compare/v0.32.0...v0.33.0) (2023-06-08)
237
+
238
+ **Note:** Version bump only for package @spectrum-web-components/asset
239
+
240
+ # [0.32.0](https://github.com/adobe/spectrum-web-components/compare/v0.31.0...v0.32.0) (2023-06-01)
241
+
242
+ **Note:** Version bump only for package @spectrum-web-components/asset
243
+
244
+ # [0.31.0](https://github.com/adobe/spectrum-web-components/compare/v0.30.0...v0.31.0) (2023-05-17)
245
+
246
+ **Note:** Version bump only for package @spectrum-web-components/asset
247
+
248
+ # 0.30.0 (2023-05-03)
249
+
250
+ ### Bug Fixes
251
+
252
+ - **asset:** include alternative text for the file/folder versions ([92a091c](https://github.com/adobe/spectrum-web-components/commit/92a091c67b9f09eee820987c096f5dd1ce60df5b))
253
+ - **asset:** surface label attribute for folder/file "assets" ([861696b](https://github.com/adobe/spectrum-web-components/commit/861696b354639841753418cf1c27fc319e970b04))
254
+ - ensure browser understandable extensions ([f4e59f7](https://github.com/adobe/spectrum-web-components/commit/f4e59f76f86369593810463c6406565e28ad97e9))
255
+ - include default export in the "exports" fields ([f32407d](https://github.com/adobe/spectrum-web-components/commit/f32407d7bbfd18e72c35b6f27740549e79957858))
256
+ - include the "types" entry in package.json files ([b432f59](https://github.com/adobe/spectrum-web-components/commit/b432f5982b3b79f80af12f6d0312cbe2285e608b))
257
+ - update file path access ([8898bf7](https://github.com/adobe/spectrum-web-components/commit/8898bf707e6e28abb78c92a0a0858d459e65347b))
258
+ - update latest Spectrum CSS beta releases ([d8d3acc](https://github.com/adobe/spectrum-web-components/commit/d8d3acc86de31e58219db6ba2a9d045b83cbe103))
259
+ - update side effect listings ([8160d3a](https://github.com/adobe/spectrum-web-components/commit/8160d3ab2c4f5ea11ac40897a5cf1fdaa357f4a8))
260
+ - update to latest spectrum-css packages ([a5ca19f](https://github.com/adobe/spectrum-web-components/commit/a5ca19f67d5b3f0951667c4441d4d977bf1e0937))
261
+ - use latest @spectrum-css/\* versions ([c35eb86](https://github.com/adobe/spectrum-web-components/commit/c35eb86defd89a0c36b5ea186f6d40f20851b5e5))
262
+
263
+ ### Features
264
+
265
+ - adopt DNA@7 base Spectrum CSS ([e08cafd](https://github.com/adobe/spectrum-web-components/commit/e08cafda9f1b33b0163fbe5ba66754806be8f9e4))
266
+ - **asset:** add the asset pattern ([a7c00bb](https://github.com/adobe/spectrum-web-components/commit/a7c00bbd591587a13b8d941885a19047e3d1cae7))
267
+ - **asset:** update spectrum css input ([b3f0d70](https://github.com/adobe/spectrum-web-components/commit/b3f0d7045d1436ad0f8386faba09d185a7757df5))
268
+ - include all Dev Mode files in side effects ([f70817c](https://github.com/adobe/spectrum-web-components/commit/f70817cc15db6dcf5cc1de2d82b4f7b0c80b1251))
269
+ - shared pkg versions, devmode define warning, registry-conflicts docs ([6e49565](https://github.com/adobe/spectrum-web-components/commit/6e4956519b845fa8127f8032948b625c252ef7a6))
270
+ - use latest exports specification ([a7ecf4b](https://github.com/adobe/spectrum-web-components/commit/a7ecf4b6da7996f36a8a89f62cc2384709497008))
271
+
272
+ ## [0.7.9](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/asset@0.7.8...@spectrum-web-components/asset@0.7.9) (2023-04-24)
273
+
274
+ **Note:** Version bump only for package @spectrum-web-components/asset
275
+
276
+ ## [0.7.8](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/asset@0.7.7...@spectrum-web-components/asset@0.7.8) (2023-04-05)
277
+
278
+ **Note:** Version bump only for package @spectrum-web-components/asset
279
+
280
+ ## [0.7.7](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/asset@0.7.6...@spectrum-web-components/asset@0.7.7) (2023-03-22)
281
+
282
+ **Note:** Version bump only for package @spectrum-web-components/asset
283
+
284
+ ## [0.7.6](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/asset@0.7.5...@spectrum-web-components/asset@0.7.6) (2023-02-08)
285
+
286
+ **Note:** Version bump only for package @spectrum-web-components/asset
287
+
288
+ ## [0.7.5](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/asset@0.7.4...@spectrum-web-components/asset@0.7.5) (2023-01-23)
289
+
290
+ **Note:** Version bump only for package @spectrum-web-components/asset
291
+
292
+ ## [0.7.4](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/asset@0.7.3...@spectrum-web-components/asset@0.7.4) (2023-01-09)
293
+
294
+ **Note:** Version bump only for package @spectrum-web-components/asset
295
+
296
+ ## [0.7.3](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/asset@0.7.2...@spectrum-web-components/asset@0.7.3) (2022-12-08)
297
+
298
+ **Note:** Version bump only for package @spectrum-web-components/asset
299
+
300
+ ## [0.7.2](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/asset@0.7.1...@spectrum-web-components/asset@0.7.2) (2022-11-21)
301
+
302
+ **Note:** Version bump only for package @spectrum-web-components/asset
303
+
304
+ ## [0.7.1](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/asset@0.7.0...@spectrum-web-components/asset@0.7.1) (2022-11-14)
305
+
306
+ **Note:** Version bump only for package @spectrum-web-components/asset
307
+
308
+ # [0.7.0](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/asset@0.6.11...@spectrum-web-components/asset@0.7.0) (2022-08-09)
309
+
310
+ ### Features
311
+
312
+ - include all Dev Mode files in side effects ([f70817c](https://github.com/adobe/spectrum-web-components/commit/f70817cc15db6dcf5cc1de2d82b4f7b0c80b1251))
313
+
314
+ ## [0.6.11](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/asset@0.6.10...@spectrum-web-components/asset@0.6.11) (2022-08-04)
315
+
316
+ **Note:** Version bump only for package @spectrum-web-components/asset
317
+
318
+ ## [0.6.10](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/asset@0.6.9...@spectrum-web-components/asset@0.6.10) (2022-07-18)
319
+
320
+ **Note:** Version bump only for package @spectrum-web-components/asset
321
+
322
+ ## [0.6.9](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/asset@0.6.8...@spectrum-web-components/asset@0.6.9) (2022-06-29)
323
+
324
+ **Note:** Version bump only for package @spectrum-web-components/asset
325
+
326
+ ## [0.6.8](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/asset@0.6.7...@spectrum-web-components/asset@0.6.8) (2022-06-07)
327
+
328
+ **Note:** Version bump only for package @spectrum-web-components/asset
329
+
330
+ ## [0.6.7](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/asset@0.6.6...@spectrum-web-components/asset@0.6.7) (2022-05-12)
331
+
332
+ **Note:** Version bump only for package @spectrum-web-components/asset
333
+
334
+ ## [0.6.6](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/asset@0.6.5...@spectrum-web-components/asset@0.6.6) (2022-04-21)
335
+
336
+ **Note:** Version bump only for package @spectrum-web-components/asset
337
+
338
+ ## [0.6.5](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/asset@0.6.4...@spectrum-web-components/asset@0.6.5) (2022-03-08)
339
+
340
+ **Note:** Version bump only for package @spectrum-web-components/asset
341
+
342
+ ## [0.6.4](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/asset@0.6.3...@spectrum-web-components/asset@0.6.4) (2022-03-04)
343
+
344
+ **Note:** Version bump only for package @spectrum-web-components/asset
345
+
346
+ ## [0.6.3](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/asset@0.6.2...@spectrum-web-components/asset@0.6.3) (2022-02-22)
347
+
348
+ **Note:** Version bump only for package @spectrum-web-components/asset
349
+
350
+ ## [0.6.2](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/asset@0.6.1...@spectrum-web-components/asset@0.6.2) (2022-01-26)
351
+
352
+ **Note:** Version bump only for package @spectrum-web-components/asset
353
+
354
+ ## [0.6.1](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/asset@0.6.0...@spectrum-web-components/asset@0.6.1) (2021-12-13)
355
+
356
+ **Note:** Version bump only for package @spectrum-web-components/asset
357
+
358
+ # [0.6.0](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/asset@0.5.1...@spectrum-web-components/asset@0.6.0) (2021-11-08)
359
+
360
+ **Note:** Version bump only for package @spectrum-web-components/asset
361
+
362
+ ## [0.5.1](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/asset@0.5.0...@spectrum-web-components/asset@0.5.1) (2021-11-08)
363
+
364
+ **Note:** Version bump only for package @spectrum-web-components/asset
365
+
366
+ # [0.5.0](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/asset@0.4.9...@spectrum-web-components/asset@0.5.0) (2021-11-02)
367
+
368
+ ### Features
369
+
370
+ - adopt DNA@7 base Spectrum CSS ([e08cafd](https://github.com/adobe/spectrum-web-components/commit/e08cafda9f1b33b0163fbe5ba66754806be8f9e4))
371
+
372
+ ## [0.4.9](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/asset@0.4.8...@spectrum-web-components/asset@0.4.9) (2021-09-20)
373
+
374
+ **Note:** Version bump only for package @spectrum-web-components/asset
375
+
376
+ ## [0.4.8](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/asset@0.4.7...@spectrum-web-components/asset@0.4.8) (2021-08-24)
377
+
378
+ **Note:** Version bump only for package @spectrum-web-components/asset
379
+
380
+ ## [0.4.7](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/asset@0.4.6...@spectrum-web-components/asset@0.4.7) (2021-07-22)
381
+
382
+ **Note:** Version bump only for package @spectrum-web-components/asset
383
+
384
+ ## [0.4.6](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/asset@0.4.5...@spectrum-web-components/asset@0.4.6) (2021-06-16)
385
+
386
+ **Note:** Version bump only for package @spectrum-web-components/asset
387
+
388
+ ## [0.4.5](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/asset@0.4.4...@spectrum-web-components/asset@0.4.5) (2021-05-12)
389
+
390
+ **Note:** Version bump only for package @spectrum-web-components/asset
391
+
392
+ ## [0.4.4](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/asset@0.4.3...@spectrum-web-components/asset@0.4.4) (2021-04-09)
393
+
394
+ **Note:** Version bump only for package @spectrum-web-components/asset
395
+
396
+ ## [0.4.3](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/asset@0.4.2...@spectrum-web-components/asset@0.4.3) (2021-03-29)
397
+
398
+ ### Bug Fixes
399
+
400
+ - **asset:** surface label attribute for folder/file "assets" ([861696b](https://github.com/adobe/spectrum-web-components/commit/861696b354639841753418cf1c27fc319e970b04))
401
+
402
+ ## [0.4.2](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/asset@0.4.1...@spectrum-web-components/asset@0.4.2) (2021-03-22)
403
+
404
+ **Note:** Version bump only for package @spectrum-web-components/asset
405
+
406
+ ## [0.4.1](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/asset@0.4.0...@spectrum-web-components/asset@0.4.1) (2021-03-05)
407
+
408
+ **Note:** Version bump only for package @spectrum-web-components/asset
409
+
410
+ # [0.4.0](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/asset@0.3.1...@spectrum-web-components/asset@0.4.0) (2021-03-04)
411
+
412
+ ### Features
413
+
414
+ - use latest exports specification ([a7ecf4b](https://github.com/adobe/spectrum-web-components/commit/a7ecf4b6da7996f36a8a89f62cc2384709497008))
415
+
416
+ ## [0.3.1](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/asset@0.3.0...@spectrum-web-components/asset@0.3.1) (2021-02-11)
417
+
418
+ ### Bug Fixes
419
+
420
+ - update to latest spectrum-css packages ([a5ca19f](https://github.com/adobe/spectrum-web-components/commit/a5ca19f67d5b3f0951667c4441d4d977bf1e0937))
421
+
422
+ # [0.3.0](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/asset@0.1.5...@spectrum-web-components/asset@0.3.0) (2021-01-21)
423
+
424
+ ### Bug Fixes
425
+
426
+ - update file path access ([8898bf7](https://github.com/adobe/spectrum-web-components/commit/8898bf707e6e28abb78c92a0a0858d459e65347b))
427
+ - **asset:** include alternative text for the file/folder versions ([92a091c](https://github.com/adobe/spectrum-web-components/commit/92a091c67b9f09eee820987c096f5dd1ce60df5b))
428
+ - include the "types" entry in package.json files ([b432f59](https://github.com/adobe/spectrum-web-components/commit/b432f5982b3b79f80af12f6d0312cbe2285e608b))
429
+ - update latest Spectrum CSS beta releases ([d8d3acc](https://github.com/adobe/spectrum-web-components/commit/d8d3acc86de31e58219db6ba2a9d045b83cbe103))
430
+ - use latest @spectrum-css/\* versions ([c35eb86](https://github.com/adobe/spectrum-web-components/commit/c35eb86defd89a0c36b5ea186f6d40f20851b5e5))
431
+
432
+ ### Features
433
+
434
+ - **asset:** update spectrum css input ([b3f0d70](https://github.com/adobe/spectrum-web-components/commit/b3f0d7045d1436ad0f8386faba09d185a7757df5))
435
+
436
+ # [0.2.0](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/asset@0.1.5...@spectrum-web-components/asset@0.2.0) (2021-01-13)
437
+
438
+ ### Bug Fixes
439
+
440
+ - update file path access ([8898bf7](https://github.com/adobe/spectrum-web-components/commit/8898bf707e6e28abb78c92a0a0858d459e65347b))
441
+ - **asset:** include alternative text for the file/folder versions ([92a091c](https://github.com/adobe/spectrum-web-components/commit/92a091c67b9f09eee820987c096f5dd1ce60df5b))
442
+ - include the "types" entry in package.json files ([b432f59](https://github.com/adobe/spectrum-web-components/commit/b432f5982b3b79f80af12f6d0312cbe2285e608b))
443
+ - update latest Spectrum CSS beta releases ([d8d3acc](https://github.com/adobe/spectrum-web-components/commit/d8d3acc86de31e58219db6ba2a9d045b83cbe103))
444
+ - use latest @spectrum-css/\* versions ([c35eb86](https://github.com/adobe/spectrum-web-components/commit/c35eb86defd89a0c36b5ea186f6d40f20851b5e5))
445
+
446
+ ### Features
447
+
448
+ - **asset:** update spectrum css input ([b3f0d70](https://github.com/adobe/spectrum-web-components/commit/b3f0d7045d1436ad0f8386faba09d185a7757df5))
449
+
450
+ ## [0.1.5](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/asset@0.1.4...@spectrum-web-components/asset@0.1.5) (2020-10-12)
451
+
452
+ **Note:** Version bump only for package @spectrum-web-components/asset
453
+
454
+ ## [0.1.4](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/asset@0.1.3...@spectrum-web-components/asset@0.1.4) (2020-10-12)
455
+
456
+ ### Bug Fixes
457
+
458
+ - include default export in the "exports" fields ([f32407d](https://github.com/adobe/spectrum-web-components/commit/f32407d7bbfd18e72c35b6f27740549e79957858))
459
+
460
+ ## [0.1.3](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/asset@0.1.2...@spectrum-web-components/asset@0.1.3) (2020-09-25)
461
+
462
+ ### Bug Fixes
463
+
464
+ - update side effect listings ([8160d3a](https://github.com/adobe/spectrum-web-components/commit/8160d3ab2c4f5ea11ac40897a5cf1fdaa357f4a8))
465
+
466
+ ## [0.1.2](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/asset@0.1.1...@spectrum-web-components/asset@0.1.2) (2020-08-31)
467
+
468
+ **Note:** Version bump only for package @spectrum-web-components/asset
469
+
470
+ ## [0.1.1](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/asset@0.1.0...@spectrum-web-components/asset@0.1.1) (2020-08-19)
471
+
472
+ ### Bug Fixes
473
+
474
+ - ensure browser understandable extensions ([f4e59f7](https://github.com/adobe/spectrum-web-components/commit/f4e59f76f86369593810463c6406565e28ad97e9))
475
+
476
+ # 0.1.0 (2020-07-22)
477
+
478
+ ### Features
479
+
480
+ - **asset:** add the asset pattern ([a7c00bb](https://github.com/adobe/spectrum-web-components/commit/a7c00bbd591587a13b8d941885a19047e3d1cae7))
package/package.json CHANGED
@@ -1,75 +1,79 @@
1
1
  {
2
- "name": "@spectrum-web-components/asset",
3
- "version": "1.9.0",
4
- "publishConfig": {
5
- "access": "public"
2
+ "name": "@spectrum-web-components/asset",
3
+ "version": "1.9.1-nightly.20251028221318",
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/asset"
13
+ },
14
+ "author": "Adobe",
15
+ "homepage": "https://opensource.adobe.com/spectrum-web-components/components/asset",
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"
6
26
  },
7
- "description": "",
8
- "license": "Apache-2.0",
9
- "repository": {
10
- "type": "git",
11
- "url": "https://github.com/adobe/spectrum-web-components.git",
12
- "directory": "packages/asset"
27
+ "./package.json": "./package.json",
28
+ "./src/Asset.base.ts": {
29
+ "development": "./src/Asset.base.dev.ts",
30
+ "default": "./src/Asset.base.ts"
13
31
  },
14
- "author": "Adobe",
15
- "homepage": "https://opensource.adobe.com/spectrum-web-components/components/asset",
16
- "bugs": {
17
- "url": "https://github.com/adobe/spectrum-web-components/issues"
32
+ "./src/Asset.js": {
33
+ "development": "./src/Asset.dev.js",
34
+ "default": "./src/Asset.js"
18
35
  },
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/Asset.js": {
29
- "development": "./src/Asset.dev.js",
30
- "default": "./src/Asset.js"
31
- },
32
- "./src/asset-overrides.css.js": "./src/asset-overrides.css.js",
33
- "./src/asset.css.js": "./src/asset.css.js",
34
- "./src/index.js": {
35
- "development": "./src/index.dev.js",
36
- "default": "./src/index.js"
37
- },
38
- "./sp-asset.js": {
39
- "development": "./sp-asset.dev.js",
40
- "default": "./sp-asset.js"
41
- }
36
+ "./src/asset-overrides.css.js": "./src/asset-overrides.css.js",
37
+ "./src/asset.css.js": "./src/asset.css.js",
38
+ "./src/index.js": {
39
+ "development": "./src/index.dev.js",
40
+ "default": "./src/index.js"
42
41
  },
43
- "scripts": {
44
- "test": "echo \"Error: run tests from mono-repo root.\" && exit 1"
45
- },
46
- "files": [
47
- "**/*.d.ts",
48
- "**/*.js",
49
- "**/*.js.map",
50
- "custom-elements.json",
51
- "!stories/",
52
- "!test/"
53
- ],
54
- "keywords": [
55
- "design-system",
56
- "spectrum",
57
- "adobe",
58
- "adobe-spectrum",
59
- "web components",
60
- "web-components",
61
- "lit-element",
62
- "lit-html",
63
- "component",
64
- "css"
65
- ],
66
- "dependencies": {
67
- "@spectrum-web-components/base": "1.9.0"
68
- },
69
- "types": "./src/index.d.ts",
70
- "customElements": "custom-elements.json",
71
- "sideEffects": [
72
- "./sp-*.js",
73
- "./**/*.dev.js"
74
- ]
75
- }
42
+ "./sp-asset.js": {
43
+ "development": "./sp-asset.dev.js",
44
+ "default": "./sp-asset.js"
45
+ }
46
+ },
47
+ "scripts": {
48
+ "test": "echo \"Error: run tests from mono-repo root.\" && exit 1"
49
+ },
50
+ "files": [
51
+ "**/*.d.ts",
52
+ "**/*.js",
53
+ "**/*.js.map",
54
+ "custom-elements.json",
55
+ "!stories/",
56
+ "!test/"
57
+ ],
58
+ "keywords": [
59
+ "design-system",
60
+ "spectrum",
61
+ "adobe",
62
+ "adobe-spectrum",
63
+ "web components",
64
+ "web-components",
65
+ "lit-element",
66
+ "lit-html",
67
+ "component",
68
+ "css"
69
+ ],
70
+ "dependencies": {
71
+ "@spectrum-web-components/base": "1.9.1-nightly.20251028221318"
72
+ },
73
+ "types": "./src/index.d.ts",
74
+ "customElements": "custom-elements.json",
75
+ "sideEffects": [
76
+ "./sp-*.js",
77
+ "./**/*.dev.js"
78
+ ]
79
+ }
package/src/Asset.d.ts CHANGED
@@ -9,14 +9,13 @@
9
9
  * OF ANY KIND, either express or implied. See the License for the specific language
10
10
  * governing permissions and limitations under the License.
11
11
  */
12
- import { CSSResultArray, SpectrumElement, TemplateResult } from '@spectrum-web-components/base';
12
+ import { CSSResultArray, TemplateResult } from '@spectrum-web-components/base';
13
+ import { AssetBase } from '@spectrum-web-components/core/components/asset';
13
14
  /**
14
15
  * @element sp-asset
15
16
  * @slot - content to be displayed in the asset when an acceptable value for `file` is not present
16
17
  */
17
- export declare class Asset extends SpectrumElement {
18
+ export declare class Asset extends AssetBase {
18
19
  static get styles(): CSSResultArray;
19
- variant: 'file' | 'folder' | undefined;
20
- label: string;
21
20
  protected render(): TemplateResult;
22
21
  }
package/src/Asset.dev.js CHANGED
@@ -1,19 +1,8 @@
1
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
2
  import {
13
- html,
14
- SpectrumElement
3
+ html
15
4
  } from "@spectrum-web-components/base";
16
- import { property } from "@spectrum-web-components/base/src/decorators.js";
5
+ import { AssetBase } from "@spectrum-web-components/core/components/asset";
17
6
  import styles from "./asset.css.js";
18
7
  const file = (label) => html`
19
8
  <svg
@@ -49,11 +38,7 @@ const folder = (label) => html`
49
38
  ></path>
50
39
  </svg>
51
40
  `;
52
- export class Asset extends SpectrumElement {
53
- constructor() {
54
- super(...arguments);
55
- this.label = "";
56
- }
41
+ export class Asset extends AssetBase {
57
42
  static get styles() {
58
43
  return [styles];
59
44
  }
@@ -68,10 +53,4 @@ export class Asset extends SpectrumElement {
68
53
  `;
69
54
  }
70
55
  }
71
- __decorateClass([
72
- property({ type: String, reflect: true })
73
- ], Asset.prototype, "variant", 2);
74
- __decorateClass([
75
- property()
76
- ], Asset.prototype, "label", 2);
77
56
  //# sourceMappingURL=Asset.dev.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["Asset.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 {\n CSSResultArray,\n html,\n SpectrumElement,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport { property } from '@spectrum-web-components/base/src/decorators.js';\n\nimport styles from './asset.css.js';\n\nconst file = (label: string): TemplateResult => html`\n <svg\n class=\"file\"\n role=\"img\"\n viewBox=\"0 0 128 128\"\n aria-label=${label || 'File'}\n >\n <path\n class=\"fileBackground\"\n d=\"M24,126c-5.5,0-10-4.5-10-10V12c0-5.5,4.5-10,10-10h61.5c2.1,0,4.1,0.8,5.6,2.3l20.5,20.4c1.5,1.5,2.4,3.5,2.4,5.7V116c0,5.5-4.5,10-10,10H24z\"\n ></path>\n <path\n class=\"fileOutline\"\n d=\"M113.1,23.3L92.6,2.9C90.7,1,88.2,0,85.5,0H24c-6.6,0-12,5.4-12,12v104c0,6.6,5.4,12,12,12h80c6.6,0,12-5.4,12-12V30.4C116,27.8,114.9,25.2,113.1,23.3z M90,6l20.1,20H92c-1.1,0-2-0.9-2-2V6z M112,116c0,4.4-3.6,8-8,8H24c-4.4,0-8-3.6-8-8V12c0-4.4,3.6-8,8-8h61.5c0.2,0,0.3,0,0.5,0v20c0,3.3,2.7,6,6,6h20c0,0.1,0,0.3,0,0.4V116z\"\n ></path>\n </svg>\n`;\n\nconst folder = (label: string): TemplateResult => html`\n <svg\n class=\"folder\"\n role=\"img\"\n viewBox=\"0 0 32 32\"\n aria-label=${label || 'Folder'}\n >\n <path\n class=\"folderBackground\"\n d=\"M3,29.5c-1.4,0-2.5-1.1-2.5-2.5V5c0-1.4,1.1-2.5,2.5-2.5h10.1c0.5,0,1,0.2,1.4,0.6l3.1,3.1c0.2,0.2,0.4,0.3,0.7,0.3H29c1.4,0,2.5,1.1,2.5,2.5v18c0,1.4-1.1,2.5-2.5,2.5H3z\"\n ></path>\n <path\n class=\"folderOutline\"\n d=\"M29,6H18.3c-0.1,0-0.2,0-0.4-0.2l-3.1-3.1C14.4,2.3,13.8,2,13.1,2H3C1.3,2,0,3.3,0,5v22c0,1.6,1.3,3,3,3h26c1.7,0,3-1.4,3-3V9C32,7.3,30.7,6,29,6z M31,27c0,1.1-0.9,2-2,2H3c-1.1,0-2-0.9-2-2V7h28c1.1,0,2,0.9,2,2V27z\"\n ></path>\n </svg>\n`;\n\n/**\n * @element sp-asset\n * @slot - content to be displayed in the asset when an acceptable value for `file` is not present\n */\nexport class Asset extends SpectrumElement {\n public static override get styles(): CSSResultArray {\n return [styles];\n }\n\n @property({ type: String, reflect: true })\n public variant: 'file' | 'folder' | undefined;\n\n @property()\n public label = '';\n\n protected override render(): TemplateResult {\n if (this.variant === 'file') {\n return file(this.label);\n } else if (this.variant === 'folder') {\n return folder(this.label);\n }\n return html`\n <slot></slot>\n `;\n }\n}\n"],
5
- "mappings": ";;;;;;;;;;;AAYA;AAAA,EAEI;AAAA,EACA;AAAA,OAEG;AACP,SAAS,gBAAgB;AAEzB,OAAO,YAAY;AAEnB,MAAM,OAAO,CAAC,UAAkC;AAAA;AAAA;AAAA;AAAA;AAAA,qBAK3B,SAAS,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAapC,MAAM,SAAS,CAAC,UAAkC;AAAA;AAAA;AAAA;AAAA;AAAA,qBAK7B,SAAS,QAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAiB/B,aAAM,cAAc,gBAAgB;AAAA,EAApC;AAAA;AASH,SAAO,QAAQ;AAAA;AAAA,EARf,WAA2B,SAAyB;AAChD,WAAO,CAAC,MAAM;AAAA,EAClB;AAAA,EAQmB,SAAyB;AACxC,QAAI,KAAK,YAAY,QAAQ;AACzB,aAAO,KAAK,KAAK,KAAK;AAAA,IAC1B,WAAW,KAAK,YAAY,UAAU;AAClC,aAAO,OAAO,KAAK,KAAK;AAAA,IAC5B;AACA,WAAO;AAAA;AAAA;AAAA,EAGX;AACJ;AAfW;AAAA,EADN,SAAS,EAAE,MAAM,QAAQ,SAAS,KAAK,CAAC;AAAA,GALhC,MAMF;AAGA;AAAA,EADN,SAAS;AAAA,GARD,MASF;",
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 {\n CSSResultArray,\n html,\n TemplateResult,\n} from '@spectrum-web-components/base';\n\nimport { AssetBase } from '@spectrum-web-components/core/components/asset';\nimport styles from './asset.css.js';\n\nconst file = (label: string): TemplateResult => html`\n <svg\n class=\"file\"\n role=\"img\"\n viewBox=\"0 0 128 128\"\n aria-label=${label || 'File'}\n >\n <path\n class=\"fileBackground\"\n d=\"M24,126c-5.5,0-10-4.5-10-10V12c0-5.5,4.5-10,10-10h61.5c2.1,0,4.1,0.8,5.6,2.3l20.5,20.4c1.5,1.5,2.4,3.5,2.4,5.7V116c0,5.5-4.5,10-10,10H24z\"\n ></path>\n <path\n class=\"fileOutline\"\n d=\"M113.1,23.3L92.6,2.9C90.7,1,88.2,0,85.5,0H24c-6.6,0-12,5.4-12,12v104c0,6.6,5.4,12,12,12h80c6.6,0,12-5.4,12-12V30.4C116,27.8,114.9,25.2,113.1,23.3z M90,6l20.1,20H92c-1.1,0-2-0.9-2-2V6z M112,116c0,4.4-3.6,8-8,8H24c-4.4,0-8-3.6-8-8V12c0-4.4,3.6-8,8-8h61.5c0.2,0,0.3,0,0.5,0v20c0,3.3,2.7,6,6,6h20c0,0.1,0,0.3,0,0.4V116z\"\n ></path>\n </svg>\n`;\n\nconst folder = (label: string): TemplateResult => html`\n <svg\n class=\"folder\"\n role=\"img\"\n viewBox=\"0 0 32 32\"\n aria-label=${label || 'Folder'}\n >\n <path\n class=\"folderBackground\"\n d=\"M3,29.5c-1.4,0-2.5-1.1-2.5-2.5V5c0-1.4,1.1-2.5,2.5-2.5h10.1c0.5,0,1,0.2,1.4,0.6l3.1,3.1c0.2,0.2,0.4,0.3,0.7,0.3H29c1.4,0,2.5,1.1,2.5,2.5v18c0,1.4-1.1,2.5-2.5,2.5H3z\"\n ></path>\n <path\n class=\"folderOutline\"\n d=\"M29,6H18.3c-0.1,0-0.2,0-0.4-0.2l-3.1-3.1C14.4,2.3,13.8,2,13.1,2H3C1.3,2,0,3.3,0,5v22c0,1.6,1.3,3,3,3h26c1.7,0,3-1.4,3-3V9C32,7.3,30.7,6,29,6z M31,27c0,1.1-0.9,2-2,2H3c-1.1,0-2-0.9-2-2V7h28c1.1,0,2,0.9,2,2V27z\"\n ></path>\n </svg>\n`;\n\n/**\n * @element sp-asset\n * @slot - content to be displayed in the asset when an acceptable value for `file` is not present\n */\nexport class Asset extends AssetBase {\n public static override get styles(): CSSResultArray {\n return [styles];\n }\n\n protected override render(): TemplateResult {\n if (this.variant === 'file') {\n return file(this.label);\n } else if (this.variant === 'folder') {\n return folder(this.label);\n }\n return html`\n <slot></slot>\n `;\n }\n}\n"],
5
+ "mappings": ";AAYA;AAAA,EAEI;AAAA,OAEG;AAEP,SAAS,iBAAiB;AAC1B,OAAO,YAAY;AAEnB,MAAM,OAAO,CAAC,UAAkC;AAAA;AAAA;AAAA;AAAA;AAAA,qBAK3B,SAAS,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAapC,MAAM,SAAS,CAAC,UAAkC;AAAA;AAAA;AAAA;AAAA;AAAA,qBAK7B,SAAS,QAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAiB/B,aAAM,cAAc,UAAU;AAAA,EACjC,WAA2B,SAAyB;AAChD,WAAO,CAAC,MAAM;AAAA,EAClB;AAAA,EAEmB,SAAyB;AACxC,QAAI,KAAK,YAAY,QAAQ;AACzB,aAAO,KAAK,KAAK,KAAK;AAAA,IAC1B,WAAW,KAAK,YAAY,UAAU;AAClC,aAAO,OAAO,KAAK,KAAK;AAAA,IAC5B;AACA,WAAO;AAAA;AAAA;AAAA,EAGX;AACJ;",
6
6
  "names": []
7
7
  }
package/src/Asset.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var n=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var i=(e,t,c,r)=>{for(var l=r>1?void 0:r?d(t,c):t,a=e.length-1,s;a>=0;a--)(s=e[a])&&(l=(r?s(t,c,l):s(l))||l);return r&&l&&n(t,c,l),l};import{html as o,SpectrumElement as h}from"@spectrum-web-components/base";import{property as p}from"@spectrum-web-components/base/src/decorators.js";import u from"./asset.css.js";const f=e=>o`
1
+ "use strict";import{html as l}from"@spectrum-web-components/base";import{AssetBase as t}from"@spectrum-web-components/core/components/asset";import s from"./asset.css.js";const r=e=>l`
2
2
  <svg
3
3
  class="file"
4
4
  role="img"
@@ -14,7 +14,7 @@
14
14
  d="M113.1,23.3L92.6,2.9C90.7,1,88.2,0,85.5,0H24c-6.6,0-12,5.4-12,12v104c0,6.6,5.4,12,12,12h80c6.6,0,12-5.4,12-12V30.4C116,27.8,114.9,25.2,113.1,23.3z M90,6l20.1,20H92c-1.1,0-2-0.9-2-2V6z M112,116c0,4.4-3.6,8-8,8H24c-4.4,0-8-3.6-8-8V12c0-4.4,3.6-8,8-8h61.5c0.2,0,0.3,0,0.5,0v20c0,3.3,2.7,6,6,6h20c0,0.1,0,0.3,0,0.4V116z"
15
15
  ></path>
16
16
  </svg>
17
- `,m=e=>o`
17
+ `,c=e=>l`
18
18
  <svg
19
19
  class="folder"
20
20
  role="img"
@@ -30,7 +30,7 @@
30
30
  d="M29,6H18.3c-0.1,0-0.2,0-0.4-0.2l-3.1-3.1C14.4,2.3,13.8,2,13.1,2H3C1.3,2,0,3.3,0,5v22c0,1.6,1.3,3,3,3h26c1.7,0,3-1.4,3-3V9C32,7.3,30.7,6,29,6z M31,27c0,1.1-0.9,2-2,2H3c-1.1,0-2-0.9-2-2V7h28c1.1,0,2,0.9,2,2V27z"
31
31
  ></path>
32
32
  </svg>
33
- `;export class Asset extends h{constructor(){super(...arguments);this.label=""}static get styles(){return[u]}render(){return this.variant==="file"?f(this.label):this.variant==="folder"?m(this.label):o`
33
+ `;export class Asset extends t{static get styles(){return[s]}render(){return this.variant==="file"?r(this.label):this.variant==="folder"?c(this.label):l`
34
34
  <slot></slot>
35
- `}}i([p({type:String,reflect:!0})],Asset.prototype,"variant",2),i([p()],Asset.prototype,"label",2);
35
+ `}}
36
36
  //# sourceMappingURL=Asset.js.map
package/src/Asset.js.map CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["Asset.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 {\n CSSResultArray,\n html,\n SpectrumElement,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport { property } from '@spectrum-web-components/base/src/decorators.js';\n\nimport styles from './asset.css.js';\n\nconst file = (label: string): TemplateResult => html`\n <svg\n class=\"file\"\n role=\"img\"\n viewBox=\"0 0 128 128\"\n aria-label=${label || 'File'}\n >\n <path\n class=\"fileBackground\"\n d=\"M24,126c-5.5,0-10-4.5-10-10V12c0-5.5,4.5-10,10-10h61.5c2.1,0,4.1,0.8,5.6,2.3l20.5,20.4c1.5,1.5,2.4,3.5,2.4,5.7V116c0,5.5-4.5,10-10,10H24z\"\n ></path>\n <path\n class=\"fileOutline\"\n d=\"M113.1,23.3L92.6,2.9C90.7,1,88.2,0,85.5,0H24c-6.6,0-12,5.4-12,12v104c0,6.6,5.4,12,12,12h80c6.6,0,12-5.4,12-12V30.4C116,27.8,114.9,25.2,113.1,23.3z M90,6l20.1,20H92c-1.1,0-2-0.9-2-2V6z M112,116c0,4.4-3.6,8-8,8H24c-4.4,0-8-3.6-8-8V12c0-4.4,3.6-8,8-8h61.5c0.2,0,0.3,0,0.5,0v20c0,3.3,2.7,6,6,6h20c0,0.1,0,0.3,0,0.4V116z\"\n ></path>\n </svg>\n`;\n\nconst folder = (label: string): TemplateResult => html`\n <svg\n class=\"folder\"\n role=\"img\"\n viewBox=\"0 0 32 32\"\n aria-label=${label || 'Folder'}\n >\n <path\n class=\"folderBackground\"\n d=\"M3,29.5c-1.4,0-2.5-1.1-2.5-2.5V5c0-1.4,1.1-2.5,2.5-2.5h10.1c0.5,0,1,0.2,1.4,0.6l3.1,3.1c0.2,0.2,0.4,0.3,0.7,0.3H29c1.4,0,2.5,1.1,2.5,2.5v18c0,1.4-1.1,2.5-2.5,2.5H3z\"\n ></path>\n <path\n class=\"folderOutline\"\n d=\"M29,6H18.3c-0.1,0-0.2,0-0.4-0.2l-3.1-3.1C14.4,2.3,13.8,2,13.1,2H3C1.3,2,0,3.3,0,5v22c0,1.6,1.3,3,3,3h26c1.7,0,3-1.4,3-3V9C32,7.3,30.7,6,29,6z M31,27c0,1.1-0.9,2-2,2H3c-1.1,0-2-0.9-2-2V7h28c1.1,0,2,0.9,2,2V27z\"\n ></path>\n </svg>\n`;\n\n/**\n * @element sp-asset\n * @slot - content to be displayed in the asset when an acceptable value for `file` is not present\n */\nexport class Asset extends SpectrumElement {\n public static override get styles(): CSSResultArray {\n return [styles];\n }\n\n @property({ type: String, reflect: true })\n public variant: 'file' | 'folder' | undefined;\n\n @property()\n public label = '';\n\n protected override render(): TemplateResult {\n if (this.variant === 'file') {\n return file(this.label);\n } else if (this.variant === 'folder') {\n return folder(this.label);\n }\n return html`\n <slot></slot>\n `;\n }\n}\n"],
5
- "mappings": "qNAYA,OAEI,QAAAA,EACA,mBAAAC,MAEG,gCACP,OAAS,YAAAC,MAAgB,kDAEzB,OAAOC,MAAY,iBAEnB,MAAMC,EAAQC,GAAkCL;AAAA;AAAA;AAAA;AAAA;AAAA,qBAK3BK,GAAS,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAa9BC,EAAUD,GAAkCL;AAAA;AAAA;AAAA;AAAA;AAAA,qBAK7BK,GAAS,QAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAiB/B,aAAM,cAAcJ,CAAgB,CAApC,kCASH,KAAO,MAAQ,GARf,WAA2B,QAAyB,CAChD,MAAO,CAACE,CAAM,CAClB,CAQmB,QAAyB,CACxC,OAAI,KAAK,UAAY,OACVC,EAAK,KAAK,KAAK,EACf,KAAK,UAAY,SACjBE,EAAO,KAAK,KAAK,EAErBN;AAAA;AAAA,SAGX,CACJ,CAfWO,EAAA,CADNL,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,GALhC,MAMF,uBAGAK,EAAA,CADNL,EAAS,GARD,MASF",
6
- "names": ["html", "SpectrumElement", "property", "styles", "file", "label", "folder", "__decorateClass"]
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 {\n CSSResultArray,\n html,\n TemplateResult,\n} from '@spectrum-web-components/base';\n\nimport { AssetBase } from '@spectrum-web-components/core/components/asset';\nimport styles from './asset.css.js';\n\nconst file = (label: string): TemplateResult => html`\n <svg\n class=\"file\"\n role=\"img\"\n viewBox=\"0 0 128 128\"\n aria-label=${label || 'File'}\n >\n <path\n class=\"fileBackground\"\n d=\"M24,126c-5.5,0-10-4.5-10-10V12c0-5.5,4.5-10,10-10h61.5c2.1,0,4.1,0.8,5.6,2.3l20.5,20.4c1.5,1.5,2.4,3.5,2.4,5.7V116c0,5.5-4.5,10-10,10H24z\"\n ></path>\n <path\n class=\"fileOutline\"\n d=\"M113.1,23.3L92.6,2.9C90.7,1,88.2,0,85.5,0H24c-6.6,0-12,5.4-12,12v104c0,6.6,5.4,12,12,12h80c6.6,0,12-5.4,12-12V30.4C116,27.8,114.9,25.2,113.1,23.3z M90,6l20.1,20H92c-1.1,0-2-0.9-2-2V6z M112,116c0,4.4-3.6,8-8,8H24c-4.4,0-8-3.6-8-8V12c0-4.4,3.6-8,8-8h61.5c0.2,0,0.3,0,0.5,0v20c0,3.3,2.7,6,6,6h20c0,0.1,0,0.3,0,0.4V116z\"\n ></path>\n </svg>\n`;\n\nconst folder = (label: string): TemplateResult => html`\n <svg\n class=\"folder\"\n role=\"img\"\n viewBox=\"0 0 32 32\"\n aria-label=${label || 'Folder'}\n >\n <path\n class=\"folderBackground\"\n d=\"M3,29.5c-1.4,0-2.5-1.1-2.5-2.5V5c0-1.4,1.1-2.5,2.5-2.5h10.1c0.5,0,1,0.2,1.4,0.6l3.1,3.1c0.2,0.2,0.4,0.3,0.7,0.3H29c1.4,0,2.5,1.1,2.5,2.5v18c0,1.4-1.1,2.5-2.5,2.5H3z\"\n ></path>\n <path\n class=\"folderOutline\"\n d=\"M29,6H18.3c-0.1,0-0.2,0-0.4-0.2l-3.1-3.1C14.4,2.3,13.8,2,13.1,2H3C1.3,2,0,3.3,0,5v22c0,1.6,1.3,3,3,3h26c1.7,0,3-1.4,3-3V9C32,7.3,30.7,6,29,6z M31,27c0,1.1-0.9,2-2,2H3c-1.1,0-2-0.9-2-2V7h28c1.1,0,2,0.9,2,2V27z\"\n ></path>\n </svg>\n`;\n\n/**\n * @element sp-asset\n * @slot - content to be displayed in the asset when an acceptable value for `file` is not present\n */\nexport class Asset extends AssetBase {\n public static override get styles(): CSSResultArray {\n return [styles];\n }\n\n protected override render(): TemplateResult {\n if (this.variant === 'file') {\n return file(this.label);\n } else if (this.variant === 'folder') {\n return folder(this.label);\n }\n return html`\n <slot></slot>\n `;\n }\n}\n"],
5
+ "mappings": "aAYA,OAEI,QAAAA,MAEG,gCAEP,OAAS,aAAAC,MAAiB,iDAC1B,OAAOC,MAAY,iBAEnB,MAAMC,EAAQC,GAAkCJ;AAAA;AAAA;AAAA;AAAA;AAAA,qBAK3BI,GAAS,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAa9BC,EAAUD,GAAkCJ;AAAA;AAAA;AAAA;AAAA;AAAA,qBAK7BI,GAAS,QAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAiB/B,aAAM,cAAcH,CAAU,CACjC,WAA2B,QAAyB,CAChD,MAAO,CAACC,CAAM,CAClB,CAEmB,QAAyB,CACxC,OAAI,KAAK,UAAY,OACVC,EAAK,KAAK,KAAK,EACf,KAAK,UAAY,SACjBE,EAAO,KAAK,KAAK,EAErBL;AAAA;AAAA,SAGX,CACJ",
6
+ "names": ["html", "AssetBase", "styles", "file", "label", "folder"]
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["asset-overrides.css.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 { css } from '@spectrum-web-components/base';\nconst styles = css`\n :host{--spectrum-asset-folder-background-color:var(--system-asset-folder-background-color);--spectrum-asset-file-background-color:var(--system-asset-file-background-color);--spectrum-asset-icon-outline-color:var(--system-asset-icon-outline-color)}\n`;\nexport default styles;"],
5
- "mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAGf,eAAe;",
4
+ "sourcesContent": ["import { css } from '@spectrum-web-components/base';\nconst styles = css`\n :host{--spectrum-asset-folder-background-color:var(--system-asset-folder-background-color);--spectrum-asset-file-background-color:var(--system-asset-file-background-color);--spectrum-asset-icon-outline-color:var(--system-asset-icon-outline-color)}\n`;\nexport default styles;"],
5
+ "mappings": ";AAAA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAGf,eAAe;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["asset-overrides.css.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 { css } from '@spectrum-web-components/base';\nconst styles = css`\n :host{--spectrum-asset-folder-background-color:var(--system-asset-folder-background-color);--spectrum-asset-file-background-color:var(--system-asset-file-background-color);--spectrum-asset-icon-outline-color:var(--system-asset-icon-outline-color)}\n`;\nexport default styles;"],
5
- "mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA,EAGf,eAAeC",
4
+ "sourcesContent": ["import { css } from '@spectrum-web-components/base';\nconst styles = css`\n :host{--spectrum-asset-folder-background-color:var(--system-asset-folder-background-color);--spectrum-asset-file-background-color:var(--system-asset-file-background-color);--spectrum-asset-icon-outline-color:var(--system-asset-icon-outline-color)}\n`;\nexport default styles;"],
5
+ "mappings": "aAAA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA,EAGf,eAAeC",
6
6
  "names": ["css", "styles"]
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["asset.css.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 { css } from '@spectrum-web-components/base';\nconst styles = css`\n :host{--spectrum-asset-folder-background:var(--highcontrast-asset-icon-background-color,var(--mod-asset-folder-background-color,var(--spectrum-asset-folder-background-color)));--spectrum-asset-file-background:var(--highcontrast-asset-icon-background-color,var(--mod-asset-file-background-color,var(--spectrum-asset-file-background-color)));--spectrum-asset-folder-outline:var(--mod-asset-icon-outline-color,var(--spectrum-asset-icon-outline-color));--spectrum-asset-file-outline:var(--mod-asset-icon-outline-color,var(--spectrum-asset-icon-outline-color));justify-content:center;align-items:center;block-size:100%;inline-size:100%;display:flex}::slotted(*){object-fit:contain;max-block-size:100%;max-inline-size:100%;transition:opacity var(--spectrum-animation-duration-100)}.file,.folder{inline-size:max(48px,min(100%,80px));inline-size:max(var(--mod-asset-icon-min-width,48px),min(100%,var(--mod-asset-icon-max-width,80px)));block-size:100%;margin:20px;margin:var(--mod-asset-icon-margin,20px)}.folderBackground{fill:var(--spectrum-asset-folder-background)}.fileBackground{fill:var(--spectrum-asset-file-background)}.folderOutline{fill:var(--spectrum-asset-folder-outline)}.fileOutline{fill:var(--spectrum-asset-file-outline)}@media (forced-colors:active){:host{--highcontrast-asset-icon-background-color:currentColor}}:host{--spectrum-asset-folder-background-color:var(--system-asset-folder-background-color);--spectrum-asset-file-background-color:var(--system-asset-file-background-color);--spectrum-asset-icon-outline-color:var(--system-asset-icon-outline-color)}\n`;\nexport default styles;"],
5
- "mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAGf,eAAe;",
4
+ "sourcesContent": ["import { css } from '@spectrum-web-components/base';\nconst styles = css`\n :host{--spectrum-asset-folder-background:var(--highcontrast-asset-icon-background-color,var(--mod-asset-folder-background-color,var(--spectrum-asset-folder-background-color)));--spectrum-asset-file-background:var(--highcontrast-asset-icon-background-color,var(--mod-asset-file-background-color,var(--spectrum-asset-file-background-color)));--spectrum-asset-folder-outline:var(--mod-asset-icon-outline-color,var(--spectrum-asset-icon-outline-color));--spectrum-asset-file-outline:var(--mod-asset-icon-outline-color,var(--spectrum-asset-icon-outline-color));justify-content:center;align-items:center;block-size:100%;inline-size:100%;display:flex}::slotted(*){object-fit:contain;max-block-size:100%;max-inline-size:100%;transition:opacity var(--spectrum-animation-duration-100)}.file,.folder{inline-size:max(48px,min(100%,80px));inline-size:max(var(--mod-asset-icon-min-width,48px),min(100%,var(--mod-asset-icon-max-width,80px)));block-size:100%;margin:20px;margin:var(--mod-asset-icon-margin,20px)}.folderBackground{fill:var(--spectrum-asset-folder-background)}.fileBackground{fill:var(--spectrum-asset-file-background)}.folderOutline{fill:var(--spectrum-asset-folder-outline)}.fileOutline{fill:var(--spectrum-asset-file-outline)}@media (forced-colors:active){:host{--highcontrast-asset-icon-background-color:currentColor}}:host{--spectrum-asset-folder-background-color:var(--system-asset-folder-background-color);--spectrum-asset-file-background-color:var(--system-asset-file-background-color);--spectrum-asset-icon-outline-color:var(--system-asset-icon-outline-color)}\n`;\nexport default styles;"],
5
+ "mappings": ";AAAA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAGf,eAAe;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["asset.css.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 { css } from '@spectrum-web-components/base';\nconst styles = css`\n :host{--spectrum-asset-folder-background:var(--highcontrast-asset-icon-background-color,var(--mod-asset-folder-background-color,var(--spectrum-asset-folder-background-color)));--spectrum-asset-file-background:var(--highcontrast-asset-icon-background-color,var(--mod-asset-file-background-color,var(--spectrum-asset-file-background-color)));--spectrum-asset-folder-outline:var(--mod-asset-icon-outline-color,var(--spectrum-asset-icon-outline-color));--spectrum-asset-file-outline:var(--mod-asset-icon-outline-color,var(--spectrum-asset-icon-outline-color));justify-content:center;align-items:center;block-size:100%;inline-size:100%;display:flex}::slotted(*){object-fit:contain;max-block-size:100%;max-inline-size:100%;transition:opacity var(--spectrum-animation-duration-100)}.file,.folder{inline-size:max(48px,min(100%,80px));inline-size:max(var(--mod-asset-icon-min-width,48px),min(100%,var(--mod-asset-icon-max-width,80px)));block-size:100%;margin:20px;margin:var(--mod-asset-icon-margin,20px)}.folderBackground{fill:var(--spectrum-asset-folder-background)}.fileBackground{fill:var(--spectrum-asset-file-background)}.folderOutline{fill:var(--spectrum-asset-folder-outline)}.fileOutline{fill:var(--spectrum-asset-file-outline)}@media (forced-colors:active){:host{--highcontrast-asset-icon-background-color:currentColor}}:host{--spectrum-asset-folder-background-color:var(--system-asset-folder-background-color);--spectrum-asset-file-background-color:var(--system-asset-file-background-color);--spectrum-asset-icon-outline-color:var(--system-asset-icon-outline-color)}\n`;\nexport default styles;"],
5
- "mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA,EAGf,eAAeC",
4
+ "sourcesContent": ["import { css } from '@spectrum-web-components/base';\nconst styles = css`\n :host{--spectrum-asset-folder-background:var(--highcontrast-asset-icon-background-color,var(--mod-asset-folder-background-color,var(--spectrum-asset-folder-background-color)));--spectrum-asset-file-background:var(--highcontrast-asset-icon-background-color,var(--mod-asset-file-background-color,var(--spectrum-asset-file-background-color)));--spectrum-asset-folder-outline:var(--mod-asset-icon-outline-color,var(--spectrum-asset-icon-outline-color));--spectrum-asset-file-outline:var(--mod-asset-icon-outline-color,var(--spectrum-asset-icon-outline-color));justify-content:center;align-items:center;block-size:100%;inline-size:100%;display:flex}::slotted(*){object-fit:contain;max-block-size:100%;max-inline-size:100%;transition:opacity var(--spectrum-animation-duration-100)}.file,.folder{inline-size:max(48px,min(100%,80px));inline-size:max(var(--mod-asset-icon-min-width,48px),min(100%,var(--mod-asset-icon-max-width,80px)));block-size:100%;margin:20px;margin:var(--mod-asset-icon-margin,20px)}.folderBackground{fill:var(--spectrum-asset-folder-background)}.fileBackground{fill:var(--spectrum-asset-file-background)}.folderOutline{fill:var(--spectrum-asset-folder-outline)}.fileOutline{fill:var(--spectrum-asset-file-outline)}@media (forced-colors:active){:host{--highcontrast-asset-icon-background-color:currentColor}}:host{--spectrum-asset-folder-background-color:var(--system-asset-folder-background-color);--spectrum-asset-file-background-color:var(--system-asset-file-background-color);--spectrum-asset-icon-outline-color:var(--system-asset-icon-outline-color)}\n`;\nexport default styles;"],
5
+ "mappings": "aAAA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA,EAGf,eAAeC",
6
6
  "names": ["css", "styles"]
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["spectrum-asset.css.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 { css } from '@spectrum-web-components/base';\nconst styles = css`\n :host{--spectrum-asset-folder-background:var(--highcontrast-asset-icon-background-color,var(--mod-asset-folder-background-color,var(--spectrum-asset-folder-background-color)));--spectrum-asset-file-background:var(--highcontrast-asset-icon-background-color,var(--mod-asset-file-background-color,var(--spectrum-asset-file-background-color)));--spectrum-asset-folder-outline:var(--mod-asset-icon-outline-color,var(--spectrum-asset-icon-outline-color));--spectrum-asset-file-outline:var(--mod-asset-icon-outline-color,var(--spectrum-asset-icon-outline-color));justify-content:center;align-items:center;block-size:100%;inline-size:100%;display:flex}::slotted(*){object-fit:contain;max-block-size:100%;max-inline-size:100%;transition:opacity var(--spectrum-animation-duration-100)}.file,.folder{inline-size:max(48px,min(100%,80px));inline-size:max(var(--mod-asset-icon-min-width,48px),min(100%,var(--mod-asset-icon-max-width,80px)));block-size:100%;margin:20px;margin:var(--mod-asset-icon-margin,20px)}.folderBackground{fill:var(--spectrum-asset-folder-background)}.fileBackground{fill:var(--spectrum-asset-file-background)}.folderOutline{fill:var(--spectrum-asset-folder-outline)}.fileOutline{fill:var(--spectrum-asset-file-outline)}@media (forced-colors:active){:host{--highcontrast-asset-icon-background-color:currentColor}}\n`;\nexport default styles;"],
5
- "mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAGf,eAAe;",
4
+ "sourcesContent": ["import { css } from '@spectrum-web-components/base';\nconst styles = css`\n :host{--spectrum-asset-folder-background:var(--highcontrast-asset-icon-background-color,var(--mod-asset-folder-background-color,var(--spectrum-asset-folder-background-color)));--spectrum-asset-file-background:var(--highcontrast-asset-icon-background-color,var(--mod-asset-file-background-color,var(--spectrum-asset-file-background-color)));--spectrum-asset-folder-outline:var(--mod-asset-icon-outline-color,var(--spectrum-asset-icon-outline-color));--spectrum-asset-file-outline:var(--mod-asset-icon-outline-color,var(--spectrum-asset-icon-outline-color));justify-content:center;align-items:center;block-size:100%;inline-size:100%;display:flex}::slotted(*){object-fit:contain;max-block-size:100%;max-inline-size:100%;transition:opacity var(--spectrum-animation-duration-100)}.file,.folder{inline-size:max(48px,min(100%,80px));inline-size:max(var(--mod-asset-icon-min-width,48px),min(100%,var(--mod-asset-icon-max-width,80px)));block-size:100%;margin:20px;margin:var(--mod-asset-icon-margin,20px)}.folderBackground{fill:var(--spectrum-asset-folder-background)}.fileBackground{fill:var(--spectrum-asset-file-background)}.folderOutline{fill:var(--spectrum-asset-folder-outline)}.fileOutline{fill:var(--spectrum-asset-file-outline)}@media (forced-colors:active){:host{--highcontrast-asset-icon-background-color:currentColor}}\n`;\nexport default styles;"],
5
+ "mappings": ";AAAA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAGf,eAAe;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["spectrum-asset.css.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 { css } from '@spectrum-web-components/base';\nconst styles = css`\n :host{--spectrum-asset-folder-background:var(--highcontrast-asset-icon-background-color,var(--mod-asset-folder-background-color,var(--spectrum-asset-folder-background-color)));--spectrum-asset-file-background:var(--highcontrast-asset-icon-background-color,var(--mod-asset-file-background-color,var(--spectrum-asset-file-background-color)));--spectrum-asset-folder-outline:var(--mod-asset-icon-outline-color,var(--spectrum-asset-icon-outline-color));--spectrum-asset-file-outline:var(--mod-asset-icon-outline-color,var(--spectrum-asset-icon-outline-color));justify-content:center;align-items:center;block-size:100%;inline-size:100%;display:flex}::slotted(*){object-fit:contain;max-block-size:100%;max-inline-size:100%;transition:opacity var(--spectrum-animation-duration-100)}.file,.folder{inline-size:max(48px,min(100%,80px));inline-size:max(var(--mod-asset-icon-min-width,48px),min(100%,var(--mod-asset-icon-max-width,80px)));block-size:100%;margin:20px;margin:var(--mod-asset-icon-margin,20px)}.folderBackground{fill:var(--spectrum-asset-folder-background)}.fileBackground{fill:var(--spectrum-asset-file-background)}.folderOutline{fill:var(--spectrum-asset-folder-outline)}.fileOutline{fill:var(--spectrum-asset-file-outline)}@media (forced-colors:active){:host{--highcontrast-asset-icon-background-color:currentColor}}\n`;\nexport default styles;"],
5
- "mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA,EAGf,eAAeC",
4
+ "sourcesContent": ["import { css } from '@spectrum-web-components/base';\nconst styles = css`\n :host{--spectrum-asset-folder-background:var(--highcontrast-asset-icon-background-color,var(--mod-asset-folder-background-color,var(--spectrum-asset-folder-background-color)));--spectrum-asset-file-background:var(--highcontrast-asset-icon-background-color,var(--mod-asset-file-background-color,var(--spectrum-asset-file-background-color)));--spectrum-asset-folder-outline:var(--mod-asset-icon-outline-color,var(--spectrum-asset-icon-outline-color));--spectrum-asset-file-outline:var(--mod-asset-icon-outline-color,var(--spectrum-asset-icon-outline-color));justify-content:center;align-items:center;block-size:100%;inline-size:100%;display:flex}::slotted(*){object-fit:contain;max-block-size:100%;max-inline-size:100%;transition:opacity var(--spectrum-animation-duration-100)}.file,.folder{inline-size:max(48px,min(100%,80px));inline-size:max(var(--mod-asset-icon-min-width,48px),min(100%,var(--mod-asset-icon-max-width,80px)));block-size:100%;margin:20px;margin:var(--mod-asset-icon-margin,20px)}.folderBackground{fill:var(--spectrum-asset-folder-background)}.fileBackground{fill:var(--spectrum-asset-file-background)}.folderOutline{fill:var(--spectrum-asset-folder-outline)}.fileOutline{fill:var(--spectrum-asset-file-outline)}@media (forced-colors:active){:host{--highcontrast-asset-icon-background-color:currentColor}}\n`;\nexport default styles;"],
5
+ "mappings": "aAAA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA,EAGf,eAAeC",
6
6
  "names": ["css", "styles"]
7
7
  }
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ import { html } from "@spectrum-web-components/base";
3
+ import "@spectrum-web-components/asset/sp-asset.js";
4
+ import { portrait } from "../../card/stories/images";
5
+ export default {
6
+ title: "Asset",
7
+ component: "sp-asset"
8
+ };
9
+ export const Default = () => {
10
+ return html`
11
+ <sp-asset style="height: 128px">
12
+ <img src=${portrait} alt="Demo Graphic" />
13
+ </sp-asset>
14
+ `;
15
+ };
16
+ export const File = () => {
17
+ return html`
18
+ <sp-asset variant="file"></sp-asset>
19
+ `;
20
+ };
21
+ export const Folder = () => {
22
+ return html`
23
+ <sp-asset variant="folder"></sp-asset>
24
+ `;
25
+ };
26
+ //# sourceMappingURL=asset.stories.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["asset.stories.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 { html, TemplateResult } from '@spectrum-web-components/base';\n\nimport '@spectrum-web-components/asset/sp-asset.js';\nimport { portrait } from '../../card/stories/images';\n\nexport default {\n title: 'Asset',\n component: 'sp-asset',\n};\n\nexport const Default = (): TemplateResult => {\n return html`\n <sp-asset style=\"height: 128px\">\n <img src=${portrait} alt=\"Demo Graphic\" />\n </sp-asset>\n `;\n};\n\nexport const File = (): TemplateResult => {\n return html`\n <sp-asset variant=\"file\"></sp-asset>\n `;\n};\n\nexport const Folder = (): TemplateResult => {\n return html`\n <sp-asset variant=\"folder\"></sp-asset>\n `;\n};\n"],
5
+ "mappings": ";AAYA,SAAS,YAA4B;AAErC,OAAO;AACP,SAAS,gBAAgB;AAEzB,eAAe;AAAA,EACX,OAAO;AAAA,EACP,WAAW;AACf;AAEO,aAAM,UAAU,MAAsB;AACzC,SAAO;AAAA;AAAA,uBAEY,QAAQ;AAAA;AAAA;AAG/B;AAEO,aAAM,OAAO,MAAsB;AACtC,SAAO;AAAA;AAAA;AAGX;AAEO,aAAM,SAAS,MAAsB;AACxC,SAAO;AAAA;AAAA;AAGX;",
6
+ "names": []
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ import { Default } from "../stories/asset.stories.js";
3
+ import { testForMemoryLeaks } from "../../../test/testing-helpers.js";
4
+ testForMemoryLeaks(Default());
5
+ //# sourceMappingURL=asset-memory.test.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["sp-asset.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 { Asset } from './src/Asset.dev.js'\nimport { defineElement } from '@spectrum-web-components/base/src/define-element.js';\n\ndefineElement('sp-asset', Asset);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-asset': Asset;\n }\n}\n"],
5
- "mappings": ";AAYA,SAAS,aAAa;AACtB,SAAS,qBAAqB;AAE9B,cAAc,YAAY,KAAK;",
3
+ "sources": ["asset-memory.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 { Default } from '../stories/asset.stories.js';\nimport { testForMemoryLeaks } from '../../../test/testing-helpers.js';\n\ntestForMemoryLeaks(Default());\n"],
5
+ "mappings": ";AAYA,SAAS,eAAe;AACxB,SAAS,0BAA0B;AAEnC,mBAAmB,QAAQ,CAAC;",
6
6
  "names": []
7
7
  }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ import * as stories from "../stories/asset.stories.js";
3
+ import { regressVisuals } from "../../../test/visual/test.js";
4
+ regressVisuals("AssetStories", stories);
5
+ //# sourceMappingURL=asset.test-vrt.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["sp-asset.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 { Asset } from './src/Asset.js';\nimport { defineElement } from '@spectrum-web-components/base/src/define-element.js';\n\ndefineElement('sp-asset', Asset);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-asset': Asset;\n }\n}\n"],
5
- "mappings": "aAYA,OAAS,SAAAA,MAAa,iBACtB,OAAS,iBAAAC,MAAqB,sDAE9BA,EAAc,WAAYD,CAAK",
6
- "names": ["Asset", "defineElement"]
3
+ "sources": ["asset.test-vrt.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 * as stories from '../stories/asset.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\nimport type { TestsType } from '../../../test/visual/test.js';\n\nregressVisuals('AssetStories', stories as unknown as TestsType);\n"],
5
+ "mappings": ";AAYA,YAAY,aAAa;AACzB,SAAS,sBAAsB;AAG/B,eAAe,gBAAgB,OAA+B;",
6
+ "names": []
7
7
  }
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ import { elementUpdated, expect, fixture } from "@open-wc/testing";
3
+ import { testForLitDevWarnings } from "../../../test/testing-helpers";
4
+ import { Default, File, Folder } from "../stories/asset.stories.js";
5
+ describe("Asset", () => {
6
+ testForLitDevWarnings(async () => await fixture(Default()));
7
+ it("loads default asset accessibly", async () => {
8
+ const el = await fixture(Default());
9
+ await elementUpdated(el);
10
+ await expect(el).to.be.accessible();
11
+ });
12
+ it('loads [variant="file"] accessibly', async () => {
13
+ const el = await fixture(File());
14
+ await elementUpdated(el);
15
+ await expect(el).to.be.accessible();
16
+ });
17
+ it('loads [variant="folder"] accessibly', async () => {
18
+ const el = await fixture(Folder());
19
+ await elementUpdated(el);
20
+ await expect(el).to.be.accessible();
21
+ });
22
+ });
23
+ //# sourceMappingURL=asset.test.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["asset.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 { elementUpdated, expect, fixture } from '@open-wc/testing';\n\nimport { Asset } from '@spectrum-web-components/asset';\nimport { testForLitDevWarnings } from '../../../test/testing-helpers';\nimport { Default, File, Folder } from '../stories/asset.stories.js';\n\ndescribe('Asset', () => {\n testForLitDevWarnings(async () => await fixture<Asset>(Default()));\n it('loads default asset accessibly', async () => {\n const el = await fixture<Asset>(Default());\n\n await elementUpdated(el);\n\n await expect(el).to.be.accessible();\n });\n it('loads [variant=\"file\"] accessibly', async () => {\n const el = await fixture<Asset>(File());\n\n await elementUpdated(el);\n\n await expect(el).to.be.accessible();\n });\n it('loads [variant=\"folder\"] accessibly', async () => {\n const el = await fixture<Asset>(Folder());\n\n await elementUpdated(el);\n\n await expect(el).to.be.accessible();\n });\n});\n"],
5
+ "mappings": ";AAYA,SAAS,gBAAgB,QAAQ,eAAe;AAGhD,SAAS,6BAA6B;AACtC,SAAS,SAAS,MAAM,cAAc;AAEtC,SAAS,SAAS,MAAM;AACpB,wBAAsB,YAAY,MAAM,QAAe,QAAQ,CAAC,CAAC;AACjE,KAAG,kCAAkC,YAAY;AAC7C,UAAM,KAAK,MAAM,QAAe,QAAQ,CAAC;AAEzC,UAAM,eAAe,EAAE;AAEvB,UAAM,OAAO,EAAE,EAAE,GAAG,GAAG,WAAW;AAAA,EACtC,CAAC;AACD,KAAG,qCAAqC,YAAY;AAChD,UAAM,KAAK,MAAM,QAAe,KAAK,CAAC;AAEtC,UAAM,eAAe,EAAE;AAEvB,UAAM,OAAO,EAAE,EAAE,GAAG,GAAG,WAAW;AAAA,EACtC,CAAC;AACD,KAAG,uCAAuC,YAAY;AAClD,UAAM,KAAK,MAAM,QAAe,OAAO,CAAC;AAExC,UAAM,eAAe,EAAE;AAEvB,UAAM,OAAO,EAAE,EAAE,GAAG,GAAG,WAAW;AAAA,EACtC,CAAC;AACL,CAAC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ import "@spectrum-web-components/asset/sp-asset.js";
3
+ import { html } from "lit";
4
+ import { measureFixtureCreation } from "../../../../test/benchmark/helpers.js";
5
+ measureFixtureCreation(html`
6
+ <sp-asset open></sp-asset>
7
+ `);
8
+ //# sourceMappingURL=basic-test.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["basic-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 '@spectrum-web-components/asset/sp-asset.js';\nimport { html } from 'lit';\nimport { measureFixtureCreation } from '../../../../test/benchmark/helpers.js';\n\nmeasureFixtureCreation(html`\n <sp-asset open></sp-asset>\n`);\n"],
5
+ "mappings": ";AAYA,OAAO;AACP,SAAS,YAAY;AACrB,SAAS,8BAA8B;AAEvC,uBAAuB;AAAA;AAAA,CAEtB;",
6
+ "names": []
7
+ }
@@ -1,93 +0,0 @@
1
- {
2
- "schemaVersion": "1.0.0",
3
- "readme": "",
4
- "modules": [
5
- {
6
- "kind": "javascript-module",
7
- "path": "sp-asset.js",
8
- "declarations": [],
9
- "exports": [
10
- {
11
- "kind": "custom-element-definition",
12
- "name": "sp-asset",
13
- "declaration": {
14
- "name": "Asset",
15
- "module": "/src/Asset.js"
16
- }
17
- }
18
- ]
19
- },
20
- {
21
- "kind": "javascript-module",
22
- "path": "src/Asset.js",
23
- "declarations": [
24
- {
25
- "kind": "class",
26
- "description": "",
27
- "name": "Asset",
28
- "slots": [
29
- {
30
- "description": "content to be displayed in the asset when an acceptable value for `file` is not present",
31
- "name": ""
32
- }
33
- ],
34
- "members": [
35
- {
36
- "kind": "field",
37
- "name": "variant",
38
- "type": {
39
- "text": "'file' | 'folder' | undefined"
40
- },
41
- "privacy": "public",
42
- "attribute": "variant",
43
- "reflects": true
44
- },
45
- {
46
- "kind": "field",
47
- "name": "label",
48
- "type": {
49
- "text": "string"
50
- },
51
- "privacy": "public",
52
- "default": "''",
53
- "attribute": "label"
54
- }
55
- ],
56
- "attributes": [
57
- {
58
- "name": "variant",
59
- "type": {
60
- "text": "'file' | 'folder' | undefined"
61
- },
62
- "fieldName": "variant"
63
- },
64
- {
65
- "name": "label",
66
- "type": {
67
- "text": "string"
68
- },
69
- "default": "''",
70
- "fieldName": "label"
71
- }
72
- ],
73
- "superclass": {
74
- "name": "SpectrumElement",
75
- "package": "@spectrum-web-components/base"
76
- },
77
- "tagName": "sp-asset",
78
- "customElement": true
79
- }
80
- ],
81
- "exports": [
82
- {
83
- "kind": "js",
84
- "name": "Asset",
85
- "declaration": {
86
- "name": "Asset",
87
- "module": "src/Asset.js"
88
- }
89
- }
90
- ]
91
- }
92
- ]
93
- }
package/sp-asset.d.ts DELETED
@@ -1,17 +0,0 @@
1
- /**
2
- * Copyright 2025 Adobe. All rights reserved.
3
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
- * you may not use this file except in compliance with the License. You may obtain a copy
5
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
6
- *
7
- * Unless required by applicable law or agreed to in writing, software distributed under
8
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
- * OF ANY KIND, either express or implied. See the License for the specific language
10
- * governing permissions and limitations under the License.
11
- */
12
- import { Asset } from './src/Asset.js';
13
- declare global {
14
- interface HTMLElementTagNameMap {
15
- 'sp-asset': Asset;
16
- }
17
- }
package/sp-asset.dev.js DELETED
@@ -1,5 +0,0 @@
1
- "use strict";
2
- import { Asset } from "./src/Asset.dev.js";
3
- import { defineElement } from "@spectrum-web-components/base/src/define-element.js";
4
- defineElement("sp-asset", Asset);
5
- //# sourceMappingURL=sp-asset.dev.js.map
package/sp-asset.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";import{Asset as e}from"./src/Asset.js";import{defineElement as s}from"@spectrum-web-components/base/src/define-element.js";s("sp-asset",e);
2
- //# sourceMappingURL=sp-asset.js.map