@spectrum-web-components/swatch 1.9.0 → 1.9.1-nightly.20251028214328

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.
Files changed (43) hide show
  1. package/CHANGELOG.md +404 -0
  2. package/package.json +85 -85
  3. package/src/Swatch.d.ts +1 -1
  4. package/src/SwatchGroup.d.ts +1 -1
  5. package/src/spectrum-swatch-group.css.dev.js.map +2 -2
  6. package/src/spectrum-swatch-group.css.js.map +2 -2
  7. package/src/spectrum-swatch.css.dev.js.map +2 -2
  8. package/src/spectrum-swatch.css.js.map +2 -2
  9. package/src/swatch-group-overrides.css.dev.js.map +2 -2
  10. package/src/swatch-group-overrides.css.js.map +2 -2
  11. package/src/swatch-group.css.dev.js.map +2 -2
  12. package/src/swatch-group.css.js.map +2 -2
  13. package/src/swatch-overrides.css.dev.js.map +2 -2
  14. package/src/swatch-overrides.css.js.map +2 -2
  15. package/src/swatch.css.dev.js.map +2 -2
  16. package/src/swatch.css.js.map +2 -2
  17. package/stories/swatch-group.stories.js +183 -0
  18. package/stories/swatch-group.stories.js.map +7 -0
  19. package/stories/swatch-sizes.stories.js +40 -0
  20. package/stories/swatch-sizes.stories.js.map +7 -0
  21. package/stories/swatch.stories.js +109 -0
  22. package/stories/swatch.stories.js.map +7 -0
  23. package/test/benchmark/basic-test.js +8 -0
  24. package/{sp-swatch-group.dev.js.map → test/benchmark/basic-test.js.map} +3 -3
  25. package/test/swatch-group.test-vrt.js +5 -0
  26. package/{sp-swatch.js.map → test/swatch-group.test-vrt.js.map} +4 -4
  27. package/test/swatch-group.test.js +364 -0
  28. package/test/swatch-group.test.js.map +7 -0
  29. package/test/swatch-memory.test.js +8 -0
  30. package/{sp-swatch.dev.js.map → test/swatch-memory.test.js.map} +3 -3
  31. package/test/swatch-sizes.test-vrt.js +5 -0
  32. package/{sp-swatch-group.js.map → test/swatch-sizes.test-vrt.js.map} +4 -4
  33. package/test/swatch.test-vrt.js +5 -0
  34. package/test/swatch.test-vrt.js.map +7 -0
  35. package/test/swatch.test.js +143 -0
  36. package/test/swatch.test.js.map +7 -0
  37. package/custom-elements.json +0 -626
  38. package/sp-swatch-group.d.ts +0 -17
  39. package/sp-swatch-group.dev.js +0 -5
  40. package/sp-swatch-group.js +0 -2
  41. package/sp-swatch.d.ts +0 -17
  42. package/sp-swatch.dev.js +0 -5
  43. package/sp-swatch.js +0 -2
package/CHANGELOG.md ADDED
@@ -0,0 +1,404 @@
1
+ # Change Log
2
+
3
+ ## 1.9.1-nightly.20251028214328
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @spectrum-web-components/base@1.9.1-nightly.20251028214328
9
+ - @spectrum-web-components/icon@1.9.1-nightly.20251028214328
10
+ - @spectrum-web-components/icons-ui@1.9.1-nightly.20251028214328
11
+ - @spectrum-web-components/opacity-checkerboard@1.9.1-nightly.20251028214328
12
+ - @spectrum-web-components/shared@1.9.1-nightly.20251028214328
13
+ - @spectrum-web-components/reactive-controllers@1.9.1-nightly.20251028214328
14
+
15
+ ## 1.9.0
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies [[`7d23140`](https://github.com/adobe/spectrum-web-components/commit/7d23140c21f0006ddea8a5cf39478ff36acbfbb8)]:
20
+ - @spectrum-web-components/reactive-controllers@1.9.0
21
+ - @spectrum-web-components/icon@1.9.0
22
+ - @spectrum-web-components/icons-ui@1.9.0
23
+ - @spectrum-web-components/base@1.9.0
24
+ - @spectrum-web-components/opacity-checkerboard@1.9.0
25
+ - @spectrum-web-components/shared@1.9.0
26
+
27
+ ## 1.8.0
28
+
29
+ ### Patch Changes
30
+
31
+ - Updated dependencies []:
32
+ - @spectrum-web-components/icon@1.8.0
33
+ - @spectrum-web-components/icons-ui@1.8.0
34
+ - @spectrum-web-components/base@1.8.0
35
+ - @spectrum-web-components/opacity-checkerboard@1.8.0
36
+ - @spectrum-web-components/reactive-controllers@1.8.0
37
+ - @spectrum-web-components/shared@1.8.0
38
+
39
+ ## 1.7.0
40
+
41
+ ### Patch Changes
42
+
43
+ - Updated dependencies []:
44
+ - @spectrum-web-components/icon@1.7.0
45
+ - @spectrum-web-components/icons-ui@1.7.0
46
+ - @spectrum-web-components/base@1.7.0
47
+ - @spectrum-web-components/opacity-checkerboard@1.7.0
48
+ - @spectrum-web-components/reactive-controllers@1.7.0
49
+ - @spectrum-web-components/shared@1.7.0
50
+
51
+ ## 1.6.0
52
+
53
+ ### Patch Changes
54
+
55
+ - Updated dependencies []:
56
+ - @spectrum-web-components/icon@1.6.0
57
+ - @spectrum-web-components/icons-ui@1.6.0
58
+ - @spectrum-web-components/base@1.6.0
59
+ - @spectrum-web-components/opacity-checkerboard@1.6.0
60
+ - @spectrum-web-components/reactive-controllers@1.6.0
61
+ - @spectrum-web-components/shared@1.6.0
62
+
63
+ ## 1.5.0
64
+
65
+ ### Patch Changes
66
+
67
+ - Updated dependencies []:
68
+ - @spectrum-web-components/icon@1.5.0
69
+ - @spectrum-web-components/icons-ui@1.5.0
70
+ - @spectrum-web-components/base@1.5.0
71
+ - @spectrum-web-components/opacity-checkerboard@1.5.0
72
+ - @spectrum-web-components/reactive-controllers@1.5.0
73
+ - @spectrum-web-components/shared@1.5.0
74
+
75
+ ## 1.4.0
76
+
77
+ ### Patch Changes
78
+
79
+ - Updated dependencies []:
80
+ - @spectrum-web-components/icon@1.4.0
81
+ - @spectrum-web-components/icons-ui@1.4.0
82
+ - @spectrum-web-components/base@1.4.0
83
+ - @spectrum-web-components/opacity-checkerboard@1.4.0
84
+ - @spectrum-web-components/reactive-controllers@1.4.0
85
+ - @spectrum-web-components/shared@1.4.0
86
+
87
+ ## 1.3.0
88
+
89
+ ### Patch Changes
90
+
91
+ - Updated dependencies [[`ea38ef0`](https://github.com/adobe/spectrum-web-components/commit/ea38ef0db33b251a054d50abf5cffc04e32f579f)]:
92
+ - @spectrum-web-components/reactive-controllers@1.3.0
93
+ - @spectrum-web-components/icon@1.3.0
94
+ - @spectrum-web-components/icons-ui@1.3.0
95
+ - @spectrum-web-components/base@1.3.0
96
+ - @spectrum-web-components/opacity-checkerboard@1.3.0
97
+ - @spectrum-web-components/shared@1.3.0
98
+
99
+ All notable changes to this project will be documented in this file.
100
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
101
+
102
+ # [1.2.0](https://github.com/adobe/spectrum-web-components/compare/v1.1.2...v1.2.0) (2025-02-27)
103
+
104
+ ### Features
105
+
106
+ - **reactive-controllers:** Migrate to Colorjs from Tinycolor ([#4713](https://github.com/adobe/spectrum-web-components/issues/4713)) ([9d740f0](https://github.com/adobe/spectrum-web-components/commit/9d740f0c830aa44273097181e761e9a92d3df4be))
107
+
108
+ ## [1.1.2](https://github.com/adobe/spectrum-web-components/compare/v1.1.1...v1.1.2) (2025-02-12)
109
+
110
+ **Note:** Version bump only for package @spectrum-web-components/swatch
111
+
112
+ ## [1.1.1](https://github.com/adobe/spectrum-web-components/compare/v1.1.0...v1.1.1) (2025-01-29)
113
+
114
+ **Note:** Version bump only for package @spectrum-web-components/swatch
115
+
116
+ # [1.1.0](https://github.com/adobe/spectrum-web-components/compare/v1.0.3...v1.1.0) (2025-01-29)
117
+
118
+ ### Bug Fixes
119
+
120
+ - 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))
121
+
122
+ ## [1.0.3](https://github.com/adobe/spectrum-web-components/compare/v1.0.1...v1.0.3) (2024-12-09)
123
+
124
+ **Note:** Version bump only for package @spectrum-web-components/swatch
125
+
126
+ ## [1.0.1](https://github.com/adobe/spectrum-web-components/compare/v1.0.0...v1.0.1) (2024-11-11)
127
+
128
+ **Note:** Version bump only for package @spectrum-web-components/swatch
129
+
130
+ # [1.0.0](https://github.com/adobe/spectrum-web-components/compare/v0.49.0...v1.0.0) (2024-10-31)
131
+
132
+ **Note:** Version bump only for package @spectrum-web-components/swatch
133
+
134
+ # [0.49.0](https://github.com/adobe/spectrum-web-components/compare/v0.48.1...v0.49.0) (2024-10-15)
135
+
136
+ **Note:** Version bump only for package @spectrum-web-components/swatch
137
+
138
+ ## [0.48.1](https://github.com/adobe/spectrum-web-components/compare/v0.48.0...v0.48.1) (2024-10-01)
139
+
140
+ **Note:** Version bump only for package @spectrum-web-components/swatch
141
+
142
+ # [0.48.0](https://github.com/adobe/spectrum-web-components/compare/v0.47.2...v0.48.0) (2024-09-17)
143
+
144
+ **Note:** Version bump only for package @spectrum-web-components/swatch
145
+
146
+ ## [0.47.2](https://github.com/adobe/spectrum-web-components/compare/v0.47.1...v0.47.2) (2024-09-03)
147
+
148
+ **Note:** Version bump only for package @spectrum-web-components/swatch
149
+
150
+ ## [0.47.1](https://github.com/adobe/spectrum-web-components/compare/v0.47.0...v0.47.1) (2024-08-27)
151
+
152
+ **Note:** Version bump only for package @spectrum-web-components/swatch
153
+
154
+ # [0.47.0](https://github.com/adobe/spectrum-web-components/compare/v0.46.0...v0.47.0) (2024-08-20)
155
+
156
+ **Note:** Version bump only for package @spectrum-web-components/swatch
157
+
158
+ # [0.46.0](https://github.com/adobe/spectrum-web-components/compare/v0.45.0...v0.46.0) (2024-08-08)
159
+
160
+ **Note:** Version bump only for package @spectrum-web-components/swatch
161
+
162
+ # [0.45.0](https://github.com/adobe/spectrum-web-components/compare/v0.44.0...v0.45.0) (2024-07-30)
163
+
164
+ **Note:** Version bump only for package @spectrum-web-components/swatch
165
+
166
+ # [0.44.0](https://github.com/adobe/spectrum-web-components/compare/v0.42.4...v0.44.0) (2024-07-15)
167
+
168
+ # [0.43.0](https://github.com/adobe/spectrum-web-components/compare/v0.42.4...v0.43.0) (2024-06-11)
169
+
170
+ ### Bug Fixes
171
+
172
+ - **swatch:** sync aria-label with changes in label, color, and mixed state ([#4519](https://github.com/adobe/spectrum-web-components/issues/4519)) ([50aef31](https://github.com/adobe/spectrum-web-components/commit/50aef31ab049fecb3567cd5df9613b1d9bffb593))
173
+
174
+ ## [0.42.5](https://github.com/adobe/spectrum-web-components/compare/v0.42.4...v0.42.5) (2024-05-24)
175
+
176
+ **Note:** Version bump only for package @spectrum-web-components/swatch
177
+
178
+ ## [0.42.4](https://github.com/adobe/spectrum-web-components/compare/v0.42.2...v0.42.4) (2024-05-14)
179
+
180
+ **Note:** Version bump only for package @spectrum-web-components/swatch
181
+
182
+ ## [0.42.3](https://github.com/adobe/spectrum-web-components/compare/v0.42.2...v0.42.3) (2024-05-01)
183
+
184
+ **Note:** Version bump only for package @spectrum-web-components/swatch
185
+
186
+ ## [0.42.2](https://github.com/adobe/spectrum-web-components/compare/v0.42.1...v0.42.2) (2024-04-03)
187
+
188
+ **Note:** Version bump only for package @spectrum-web-components/swatch
189
+
190
+ ## [0.42.1](https://github.com/adobe/spectrum-web-components/compare/v0.42.0...v0.42.1) (2024-04-02)
191
+
192
+ **Note:** Version bump only for package @spectrum-web-components/swatch
193
+
194
+ # [0.42.0](https://github.com/adobe/spectrum-web-components/compare/v0.41.2...v0.42.0) (2024-03-19)
195
+
196
+ ### Bug Fixes
197
+
198
+ - **styles, theme:** surface exports that omit Spectrum Vars proactively ([#4142](https://github.com/adobe/spectrum-web-components/issues/4142)) ([5b524c1](https://github.com/adobe/spectrum-web-components/commit/5b524c1d54a64225cb3b2f71b92f581695985519))
199
+ - **swatch:** allow Swatch Group to manage selection through multiple slots ([f333379](https://github.com/adobe/spectrum-web-components/commit/f3333795070c009523c4af750480ae288e17091f))
200
+
201
+ ### Features
202
+
203
+ - **asset:** use core tokens ([99e76f4](https://github.com/adobe/spectrum-web-components/commit/99e76f4d32e990960b7fa2f0613ed4144adc4f6e))
204
+
205
+ ## [0.41.2](https://github.com/adobe/spectrum-web-components/compare/v0.41.1...v0.41.2) (2024-03-05)
206
+
207
+ **Note:** Version bump only for package @spectrum-web-components/swatch
208
+
209
+ ## [0.41.1](https://github.com/adobe/spectrum-web-components/compare/v0.41.0...v0.41.1) (2024-02-22)
210
+
211
+ **Note:** Version bump only for package @spectrum-web-components/swatch
212
+
213
+ # [0.41.0](https://github.com/adobe/spectrum-web-components/compare/v0.40.5...v0.41.0) (2024-02-13)
214
+
215
+ **Note:** Version bump only for package @spectrum-web-components/swatch
216
+
217
+ ## [0.40.5](https://github.com/adobe/spectrum-web-components/compare/v0.40.4...v0.40.5) (2024-02-05)
218
+
219
+ **Note:** Version bump only for package @spectrum-web-components/swatch
220
+
221
+ ## [0.40.4](https://github.com/adobe/spectrum-web-components/compare/v0.40.3...v0.40.4) (2024-01-29)
222
+
223
+ **Note:** Version bump only for package @spectrum-web-components/swatch
224
+
225
+ ## [0.40.3](https://github.com/adobe/spectrum-web-components/compare/v0.40.2...v0.40.3) (2024-01-11)
226
+
227
+ **Note:** Version bump only for package @spectrum-web-components/swatch
228
+
229
+ ## [0.40.2](https://github.com/adobe/spectrum-web-components/compare/v0.40.1...v0.40.2) (2023-12-18)
230
+
231
+ **Note:** Version bump only for package @spectrum-web-components/swatch
232
+
233
+ ## [0.40.1](https://github.com/adobe/spectrum-web-components/compare/v0.40.0...v0.40.1) (2023-12-05)
234
+
235
+ **Note:** Version bump only for package @spectrum-web-components/swatch
236
+
237
+ # [0.40.0](https://github.com/adobe/spectrum-web-components/compare/v0.39.4...v0.40.0) (2023-11-16)
238
+
239
+ **Note:** Version bump only for package @spectrum-web-components/swatch
240
+
241
+ ## [0.39.4](https://github.com/adobe/spectrum-web-components/compare/v0.39.3...v0.39.4) (2023-11-02)
242
+
243
+ **Note:** Version bump only for package @spectrum-web-components/swatch
244
+
245
+ ## [0.39.3](https://github.com/adobe/spectrum-web-components/compare/v0.39.2...v0.39.3) (2023-10-18)
246
+
247
+ **Note:** Version bump only for package @spectrum-web-components/swatch
248
+
249
+ ## [0.39.2](https://github.com/adobe/spectrum-web-components/compare/v0.39.1...v0.39.2) (2023-10-13)
250
+
251
+ **Note:** Version bump only for package @spectrum-web-components/swatch
252
+
253
+ ## [0.39.1](https://github.com/adobe/spectrum-web-components/compare/v0.39.0...v0.39.1) (2023-10-06)
254
+
255
+ **Note:** Version bump only for package @spectrum-web-components/swatch
256
+
257
+ # [0.39.0](https://github.com/adobe/spectrum-web-components/compare/v0.38.0...v0.39.0) (2023-09-25)
258
+
259
+ ### Bug Fixes
260
+
261
+ - **alert-dialog:** add Alert Dialog package ([#3501](https://github.com/adobe/spectrum-web-components/issues/3501)) ([1062847](https://github.com/adobe/spectrum-web-components/commit/10628476d39ef45c23efa8b6ac53d4a2e334a92f))
262
+ - **color-handle,color-loupe,swatch,thumbnail:** use the Opacity Checkerboard package ([47e1fc4](https://github.com/adobe/spectrum-web-components/commit/47e1fc4c86f736f2fa27cb6644320577717f827e))
263
+
264
+ # [0.38.0](https://github.com/adobe/spectrum-web-components/compare/v0.37.0...v0.38.0) (2023-09-05)
265
+
266
+ **Note:** Version bump only for package @spectrum-web-components/swatch
267
+
268
+ # [0.37.0](https://github.com/adobe/spectrum-web-components/compare/v0.36.0...v0.37.0) (2023-08-18)
269
+
270
+ **Note:** Version bump only for package @spectrum-web-components/swatch
271
+
272
+ # [0.36.0](https://github.com/adobe/spectrum-web-components/compare/v0.35.0...v0.36.0) (2023-08-18)
273
+
274
+ **Note:** Version bump only for package @spectrum-web-components/swatch
275
+
276
+ # [0.35.0](https://github.com/adobe/spectrum-web-components/compare/v0.34.0...v0.35.0) (2023-07-31)
277
+
278
+ ### Bug Fixes
279
+
280
+ - **swatch:** clear previously selected children when updating `selected` ([ce1bd36](https://github.com/adobe/spectrum-web-components/commit/ce1bd360dcb1ae0afdf694f4eeabbf735d1b6c74))
281
+ - **swatch:** warn when mixed-value used with selects !== 'multiple' ([#3460](https://github.com/adobe/spectrum-web-components/issues/3460)) ([89c288e](https://github.com/adobe/spectrum-web-components/commit/89c288ef12e8d879f6e3c12a1e0ea94828797b50))
282
+
283
+ # [0.34.0](https://github.com/adobe/spectrum-web-components/compare/v0.33.2...v0.34.0) (2023-07-11)
284
+
285
+ ### Bug Fixes
286
+
287
+ - **swatch:** mixed-value state must be conveyed to screen readers using ARIA ([#3330](https://github.com/adobe/spectrum-web-components/issues/3330)) ([7711264](https://github.com/adobe/spectrum-web-components/commit/7711264850f54794fc2fcc343a81c5ff1f64c907))
288
+
289
+ ## [0.33.2](https://github.com/adobe/spectrum-web-components/compare/v0.33.1...v0.33.2) (2023-06-14)
290
+
291
+ **Note:** Version bump only for package @spectrum-web-components/swatch
292
+
293
+ # [0.33.0](https://github.com/adobe/spectrum-web-components/compare/v0.32.0...v0.33.0) (2023-06-08)
294
+
295
+ **Note:** Version bump only for package @spectrum-web-components/swatch
296
+
297
+ # [0.32.0](https://github.com/adobe/spectrum-web-components/compare/v0.31.0...v0.32.0) (2023-06-01)
298
+
299
+ **Note:** Version bump only for package @spectrum-web-components/swatch
300
+
301
+ # [0.31.0](https://github.com/adobe/spectrum-web-components/compare/v0.30.0...v0.31.0) (2023-05-17)
302
+
303
+ ### Bug Fixes
304
+
305
+ - **shared:** allow "disabled" first to return to "tabindex=0" in "focusable" ([160bc59](https://github.com/adobe/spectrum-web-components/commit/160bc594f516bfadb754d47ce102a02cbde12fcd))
306
+
307
+ # 0.30.0 (2023-05-03)
308
+
309
+ ### Bug Fixes
310
+
311
+ - include all dependencies ([c80d244](https://github.com/adobe/spectrum-web-components/commit/c80d24483b440c634ebc0add27f35ae84c4d6260))
312
+ - support non-flat "color" application ([efc0159](https://github.com/adobe/spectrum-web-components/commit/efc0159d9be10cdfd497a630a2eb4195cd612927))
313
+ - **swatch:** normalize repeat selection of same item in "selects=single" ([ee0fb0c](https://github.com/adobe/spectrum-web-components/commit/ee0fb0c60cda72f4a7896444f27ffab06c49986d))
314
+
315
+ ### Features
316
+
317
+ - add swatch pattern ([0cdc04b](https://github.com/adobe/spectrum-web-components/commit/0cdc04b1506ab0c9f675fea6e72020bb8957065f))
318
+ - include all Dev Mode files in side effects ([f70817c](https://github.com/adobe/spectrum-web-components/commit/f70817cc15db6dcf5cc1de2d82b4f7b0c80b1251))
319
+ - shared pkg versions, devmode define warning, registry-conflicts docs ([6e49565](https://github.com/adobe/spectrum-web-components/commit/6e4956519b845fa8127f8032948b625c252ef7a6))
320
+ - **swatch:** use core tokens ([821aebe](https://github.com/adobe/spectrum-web-components/commit/821aebe15e3e8f5720b7e357f0a2661b39dd46d3))
321
+
322
+ ## [0.3.10](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/swatch@0.3.9...@spectrum-web-components/swatch@0.3.10) (2023-04-24)
323
+
324
+ ### Bug Fixes
325
+
326
+ - support non-flat "color" application ([efc0159](https://github.com/adobe/spectrum-web-components/commit/efc0159d9be10cdfd497a630a2eb4195cd612927))
327
+
328
+ ## [0.3.9](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/swatch@0.3.8...@spectrum-web-components/swatch@0.3.9) (2023-04-05)
329
+
330
+ **Note:** Version bump only for package @spectrum-web-components/swatch
331
+
332
+ ## [0.3.8](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/swatch@0.3.7...@spectrum-web-components/swatch@0.3.8) (2023-03-22)
333
+
334
+ **Note:** Version bump only for package @spectrum-web-components/swatch
335
+
336
+ ## [0.3.7](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/swatch@0.3.6...@spectrum-web-components/swatch@0.3.7) (2023-03-08)
337
+
338
+ **Note:** Version bump only for package @spectrum-web-components/swatch
339
+
340
+ ## [0.3.6](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/swatch@0.3.5...@spectrum-web-components/swatch@0.3.6) (2023-02-08)
341
+
342
+ **Note:** Version bump only for package @spectrum-web-components/swatch
343
+
344
+ ## [0.3.5](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/swatch@0.3.4...@spectrum-web-components/swatch@0.3.5) (2023-01-23)
345
+
346
+ ### Bug Fixes
347
+
348
+ - **swatch:** normalize repeat selection of same item in "selects=single" ([ee0fb0c](https://github.com/adobe/spectrum-web-components/commit/ee0fb0c60cda72f4a7896444f27ffab06c49986d))
349
+
350
+ ## [0.3.4](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/swatch@0.3.3...@spectrum-web-components/swatch@0.3.4) (2023-01-09)
351
+
352
+ **Note:** Version bump only for package @spectrum-web-components/swatch
353
+
354
+ ## [0.3.3](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/swatch@0.3.2...@spectrum-web-components/swatch@0.3.3) (2022-12-08)
355
+
356
+ **Note:** Version bump only for package @spectrum-web-components/swatch
357
+
358
+ ## [0.3.2](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/swatch@0.3.1...@spectrum-web-components/swatch@0.3.2) (2022-11-21)
359
+
360
+ **Note:** Version bump only for package @spectrum-web-components/swatch
361
+
362
+ ## [0.3.1](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/swatch@0.3.0...@spectrum-web-components/swatch@0.3.1) (2022-11-14)
363
+
364
+ **Note:** Version bump only for package @spectrum-web-components/swatch
365
+
366
+ # [0.3.0](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/swatch@0.2.2...@spectrum-web-components/swatch@0.3.0) (2022-10-28)
367
+
368
+ ### Features
369
+
370
+ - **swatch:** use core tokens ([821aebe](https://github.com/adobe/spectrum-web-components/commit/821aebe15e3e8f5720b7e357f0a2661b39dd46d3))
371
+
372
+ ## [0.2.2](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/swatch@0.2.1...@spectrum-web-components/swatch@0.2.2) (2022-10-17)
373
+
374
+ **Note:** Version bump only for package @spectrum-web-components/swatch
375
+
376
+ ## [0.2.1](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/swatch@0.2.0...@spectrum-web-components/swatch@0.2.1) (2022-10-10)
377
+
378
+ **Note:** Version bump only for package @spectrum-web-components/swatch
379
+
380
+ # [0.2.0](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/swatch@0.1.3...@spectrum-web-components/swatch@0.2.0) (2022-08-09)
381
+
382
+ ### Features
383
+
384
+ - include all Dev Mode files in side effects ([f70817c](https://github.com/adobe/spectrum-web-components/commit/f70817cc15db6dcf5cc1de2d82b4f7b0c80b1251))
385
+
386
+ ## [0.1.3](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/swatch@0.1.2...@spectrum-web-components/swatch@0.1.3) (2022-08-04)
387
+
388
+ **Note:** Version bump only for package @spectrum-web-components/swatch
389
+
390
+ ## [0.1.2](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/swatch@0.1.1...@spectrum-web-components/swatch@0.1.2) (2022-07-20)
391
+
392
+ ### Bug Fixes
393
+
394
+ - include all dependencies ([c80d244](https://github.com/adobe/spectrum-web-components/commit/c80d24483b440c634ebc0add27f35ae84c4d6260))
395
+
396
+ ## [0.1.1](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/swatch@0.1.0...@spectrum-web-components/swatch@0.1.1) (2022-07-18)
397
+
398
+ **Note:** Version bump only for package @spectrum-web-components/swatch
399
+
400
+ # 0.1.0 (2022-06-29)
401
+
402
+ ### Features
403
+
404
+ - add swatch pattern ([0cdc04b](https://github.com/adobe/spectrum-web-components/commit/0cdc04b1506ab0c9f675fea6e72020bb8957065f))
package/package.json CHANGED
@@ -1,91 +1,91 @@
1
1
  {
2
- "name": "@spectrum-web-components/swatch",
3
- "version": "1.9.0",
4
- "publishConfig": {
5
- "access": "public"
2
+ "name": "@spectrum-web-components/swatch",
3
+ "version": "1.9.1-nightly.20251028214328",
4
+ "publishConfig": {
5
+ "access": "public"
6
+ },
7
+ "description": "Web component implementation of a Spectrum design Swatch",
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/swatch"
13
+ },
14
+ "author": "Adobe",
15
+ "homepage": "https://opensource.adobe.com/spectrum-web-components/components/swatch",
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": "Web component implementation of a Spectrum design Swatch",
8
- "license": "Apache-2.0",
9
- "repository": {
10
- "type": "git",
11
- "url": "https://github.com/adobe/spectrum-web-components.git",
12
- "directory": "packages/swatch"
27
+ "./package.json": "./package.json",
28
+ "./src/Swatch.js": {
29
+ "development": "./src/Swatch.dev.js",
30
+ "default": "./src/Swatch.js"
13
31
  },
14
- "author": "Adobe",
15
- "homepage": "https://opensource.adobe.com/spectrum-web-components/components/swatch",
16
- "bugs": {
17
- "url": "https://github.com/adobe/spectrum-web-components/issues"
32
+ "./src/SwatchGroup.js": {
33
+ "development": "./src/SwatchGroup.dev.js",
34
+ "default": "./src/SwatchGroup.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/Swatch.js": {
29
- "development": "./src/Swatch.dev.js",
30
- "default": "./src/Swatch.js"
31
- },
32
- "./src/SwatchGroup.js": {
33
- "development": "./src/SwatchGroup.dev.js",
34
- "default": "./src/SwatchGroup.js"
35
- },
36
- "./src/index.js": {
37
- "development": "./src/index.dev.js",
38
- "default": "./src/index.js"
39
- },
40
- "./src/swatch-group-overrides.css.js": "./src/swatch-group-overrides.css.js",
41
- "./src/swatch-group.css.js": "./src/swatch-group.css.js",
42
- "./src/swatch-overrides.css.js": "./src/swatch-overrides.css.js",
43
- "./src/swatch.css.js": "./src/swatch.css.js",
44
- "./sp-swatch.js": {
45
- "development": "./sp-swatch.dev.js",
46
- "default": "./sp-swatch.js"
47
- },
48
- "./sp-swatch-group.js": {
49
- "development": "./sp-swatch-group.dev.js",
50
- "default": "./sp-swatch-group.js"
51
- }
36
+ "./src/index.js": {
37
+ "development": "./src/index.dev.js",
38
+ "default": "./src/index.js"
52
39
  },
53
- "scripts": {
54
- "test": "echo \"Error: run tests from mono-repo root.\" && exit 1"
40
+ "./src/swatch-group-overrides.css.js": "./src/swatch-group-overrides.css.js",
41
+ "./src/swatch-group.css.js": "./src/swatch-group.css.js",
42
+ "./src/swatch-overrides.css.js": "./src/swatch-overrides.css.js",
43
+ "./src/swatch.css.js": "./src/swatch.css.js",
44
+ "./sp-swatch.js": {
45
+ "development": "./sp-swatch.dev.js",
46
+ "default": "./sp-swatch.js"
55
47
  },
56
- "files": [
57
- "**/*.d.ts",
58
- "**/*.js",
59
- "**/*.js.map",
60
- "custom-elements.json",
61
- "!stories/",
62
- "!test/"
63
- ],
64
- "keywords": [
65
- "design-system",
66
- "spectrum",
67
- "adobe",
68
- "adobe-spectrum",
69
- "web components",
70
- "web-components",
71
- "lit-element",
72
- "lit-html",
73
- "component",
74
- "css"
75
- ],
76
- "dependencies": {
77
- "@lit-labs/observers": "2.0.2",
78
- "@spectrum-web-components/base": "1.9.0",
79
- "@spectrum-web-components/icon": "1.9.0",
80
- "@spectrum-web-components/icons-ui": "1.9.0",
81
- "@spectrum-web-components/opacity-checkerboard": "1.9.0",
82
- "@spectrum-web-components/reactive-controllers": "1.9.0",
83
- "@spectrum-web-components/shared": "1.9.0"
84
- },
85
- "types": "./src/index.d.ts",
86
- "customElements": "custom-elements.json",
87
- "sideEffects": [
88
- "./sp-*.js",
89
- "./**/*.dev.js"
90
- ]
91
- }
48
+ "./sp-swatch-group.js": {
49
+ "development": "./sp-swatch-group.dev.js",
50
+ "default": "./sp-swatch-group.js"
51
+ }
52
+ },
53
+ "scripts": {
54
+ "test": "echo \"Error: run tests from mono-repo root.\" && exit 1"
55
+ },
56
+ "files": [
57
+ "**/*.d.ts",
58
+ "**/*.js",
59
+ "**/*.js.map",
60
+ "custom-elements.json",
61
+ "!stories/",
62
+ "!test/"
63
+ ],
64
+ "keywords": [
65
+ "design-system",
66
+ "spectrum",
67
+ "adobe",
68
+ "adobe-spectrum",
69
+ "web components",
70
+ "web-components",
71
+ "lit-element",
72
+ "lit-html",
73
+ "component",
74
+ "css"
75
+ ],
76
+ "dependencies": {
77
+ "@lit-labs/observers": "2.0.2",
78
+ "@spectrum-web-components/base": "1.9.1-nightly.20251028214328",
79
+ "@spectrum-web-components/icon": "1.9.1-nightly.20251028214328",
80
+ "@spectrum-web-components/icons-ui": "1.9.1-nightly.20251028214328",
81
+ "@spectrum-web-components/opacity-checkerboard": "1.9.1-nightly.20251028214328",
82
+ "@spectrum-web-components/reactive-controllers": "1.9.1-nightly.20251028214328",
83
+ "@spectrum-web-components/shared": "1.9.1-nightly.20251028214328"
84
+ },
85
+ "types": "./src/index.d.ts",
86
+ "customElements": "custom-elements.json",
87
+ "sideEffects": [
88
+ "./sp-*.js",
89
+ "./**/*.dev.js"
90
+ ]
91
+ }
package/src/Swatch.d.ts CHANGED
@@ -21,7 +21,7 @@ export type SwatchShape = 'rectangle' | undefined;
21
21
  declare const Swatch_base: typeof Focusable & {
22
22
  new (...args: any[]): import("@spectrum-web-components/base").SizedElementInterface;
23
23
  prototype: import("@spectrum-web-components/base").SizedElementInterface;
24
- };
24
+ } & import("@spectrum-web-components/base").SizedElementConstructor;
25
25
  /**
26
26
  * @element sp-swatch
27
27
  */
@@ -17,7 +17,7 @@ export type SwatchSelects = 'single' | 'multiple' | undefined;
17
17
  declare const SwatchGroup_base: typeof SpectrumElement & {
18
18
  new (...args: any[]): import("@spectrum-web-components/base").SizedElementInterface;
19
19
  prototype: import("@spectrum-web-components/base").SizedElementInterface;
20
- };
20
+ } & import("@spectrum-web-components/base").SizedElementConstructor;
21
21
  /**
22
22
  * @element sp-swatch-group
23
23
  *
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["spectrum-swatch-group.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{justify-content:flex-start;align-items:flex-start;gap:var(--mod-swatchgroup-spacing-regular,var(--spectrum-swatchgroup-spacing-regular));flex-flow:wrap;display:inline-flex}:host([density=compact]){gap:var(--mod-swatchgroup-spacing-compact,var(--spectrum-swatchgroup-spacing-compact))}:host([density=spacious]){gap:var(--mod-swatchgroup-spacing-spacious,var(--spectrum-swatchgroup-spacing-spacious))}\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{justify-content:flex-start;align-items:flex-start;gap:var(--mod-swatchgroup-spacing-regular,var(--spectrum-swatchgroup-spacing-regular));flex-flow:wrap;display:inline-flex}:host([density=compact]){gap:var(--mod-swatchgroup-spacing-compact,var(--spectrum-swatchgroup-spacing-compact))}:host([density=spacious]){gap:var(--mod-swatchgroup-spacing-spacious,var(--spectrum-swatchgroup-spacing-spacious))}\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-swatch-group.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{justify-content:flex-start;align-items:flex-start;gap:var(--mod-swatchgroup-spacing-regular,var(--spectrum-swatchgroup-spacing-regular));flex-flow:wrap;display:inline-flex}:host([density=compact]){gap:var(--mod-swatchgroup-spacing-compact,var(--spectrum-swatchgroup-spacing-compact))}:host([density=spacious]){gap:var(--mod-swatchgroup-spacing-spacious,var(--spectrum-swatchgroup-spacing-spacious))}\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{justify-content:flex-start;align-items:flex-start;gap:var(--mod-swatchgroup-spacing-regular,var(--spectrum-swatchgroup-spacing-regular));flex-flow:wrap;display:inline-flex}:host([density=compact]){gap:var(--mod-swatchgroup-spacing-compact,var(--spectrum-swatchgroup-spacing-compact))}:host([density=spacious]){gap:var(--mod-swatchgroup-spacing-spacious,var(--spectrum-swatchgroup-spacing-spacious))}\n`;\nexport default styles;"],
5
+ "mappings": "aAAA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA,EAGf,eAAeC",
6
6
  "names": ["css", "styles"]
7
7
  }