@spectrum-web-components/button-group 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 +545 -0
- package/package.json +72 -72
- package/src/ButtonGroup.d.ts +1 -1
- package/src/button-group-overrides.css.dev.js.map +2 -2
- package/src/button-group-overrides.css.js.map +2 -2
- package/src/button-group.css.dev.js.map +2 -2
- package/src/button-group.css.js.map +2 -2
- package/src/spectrum-button-group.css.dev.js.map +2 -2
- package/src/spectrum-button-group.css.js.map +2 -2
- package/stories/button-group-sizes.stories.js +26 -0
- package/stories/button-group-sizes.stories.js.map +7 -0
- package/stories/button-group.stories.js +34 -0
- package/stories/button-group.stories.js.map +7 -0
- package/test/benchmark/basic-test.js +13 -0
- package/test/benchmark/basic-test.js.map +7 -0
- package/test/button-group-memory.test.js +5 -0
- package/{sp-button-group.dev.js.map → test/button-group-memory.test.js.map} +3 -3
- package/test/button-group-sizes.test-vrt.js +5 -0
- package/{sp-button-group.js.map → test/button-group-sizes.test-vrt.js.map} +4 -4
- package/test/button-group.test-vrt.js +5 -0
- package/test/button-group.test-vrt.js.map +7 -0
- package/test/button-group.test.js +37 -0
- package/test/button-group.test.js.map +7 -0
- package/custom-elements.json +0 -126
- package/sp-button-group.d.ts +0 -17
- package/sp-button-group.dev.js +0 -5
- package/sp-button-group.js +0 -2
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,545 @@
|
|
|
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
|
+
- @spectrum-web-components/button@1.9.1-nightly.20251028221318
|
|
10
|
+
|
|
11
|
+
## 1.9.0
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [[`7d23140`](https://github.com/adobe/spectrum-web-components/commit/7d23140c21f0006ddea8a5cf39478ff36acbfbb8)]:
|
|
16
|
+
- @spectrum-web-components/button@1.9.0
|
|
17
|
+
- @spectrum-web-components/base@1.9.0
|
|
18
|
+
|
|
19
|
+
## 1.8.0
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies [[`15be17d`](https://github.com/adobe/spectrum-web-components/commit/15be17db91f1140ccf3cad52b1f2ed6c4b9e28ba)]:
|
|
24
|
+
- @spectrum-web-components/button@1.8.0
|
|
25
|
+
- @spectrum-web-components/base@1.8.0
|
|
26
|
+
|
|
27
|
+
## 1.7.0
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- Updated dependencies []:
|
|
32
|
+
- @spectrum-web-components/button@1.7.0
|
|
33
|
+
- @spectrum-web-components/base@1.7.0
|
|
34
|
+
|
|
35
|
+
## 1.6.0
|
|
36
|
+
|
|
37
|
+
### Patch Changes
|
|
38
|
+
|
|
39
|
+
- Updated dependencies [[`00eb0a8`](https://github.com/adobe/spectrum-web-components/commit/00eb0a889583dff9d964341d9c1c27048be3d19e)]:
|
|
40
|
+
- @spectrum-web-components/button@1.6.0
|
|
41
|
+
- @spectrum-web-components/base@1.6.0
|
|
42
|
+
|
|
43
|
+
## 1.5.0
|
|
44
|
+
|
|
45
|
+
### Patch Changes
|
|
46
|
+
|
|
47
|
+
- [#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.
|
|
48
|
+
|
|
49
|
+
- Updated dependencies [[`4e06533`](https://github.com/adobe/spectrum-web-components/commit/4e065332e0236757fc3a050e53747ce82ac40ed5)]:
|
|
50
|
+
- @spectrum-web-components/button@1.5.0
|
|
51
|
+
- @spectrum-web-components/base@1.5.0
|
|
52
|
+
|
|
53
|
+
## 1.4.0
|
|
54
|
+
|
|
55
|
+
### Patch Changes
|
|
56
|
+
|
|
57
|
+
- Updated dependencies []:
|
|
58
|
+
- @spectrum-web-components/button@1.4.0
|
|
59
|
+
- @spectrum-web-components/base@1.4.0
|
|
60
|
+
|
|
61
|
+
## 1.3.0
|
|
62
|
+
|
|
63
|
+
### Patch Changes
|
|
64
|
+
|
|
65
|
+
- Updated dependencies []:
|
|
66
|
+
- @spectrum-web-components/button@1.3.0
|
|
67
|
+
- @spectrum-web-components/base@1.3.0
|
|
68
|
+
|
|
69
|
+
All notable changes to this project will be documented in this file.
|
|
70
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
71
|
+
|
|
72
|
+
# [1.2.0](https://github.com/adobe/spectrum-web-components/compare/v1.1.2...v1.2.0) (2025-02-27)
|
|
73
|
+
|
|
74
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
75
|
+
|
|
76
|
+
## [1.1.2](https://github.com/adobe/spectrum-web-components/compare/v1.1.1...v1.1.2) (2025-02-12)
|
|
77
|
+
|
|
78
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
79
|
+
|
|
80
|
+
## [1.1.1](https://github.com/adobe/spectrum-web-components/compare/v1.1.0...v1.1.1) (2025-01-29)
|
|
81
|
+
|
|
82
|
+
### Features
|
|
83
|
+
|
|
84
|
+
- **sp-button-group:** sp-button-group react to size updates ([#5037](https://github.com/adobe/spectrum-web-components/issues/5037)) ([63bc618](https://github.com/adobe/spectrum-web-components/commit/63bc618c18e9d8e39155cc7544814564673893a7))
|
|
85
|
+
|
|
86
|
+
# [1.1.0](https://github.com/adobe/spectrum-web-components/compare/v1.0.3...v1.1.0) (2025-01-29)
|
|
87
|
+
|
|
88
|
+
### Bug Fixes
|
|
89
|
+
|
|
90
|
+
- 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))
|
|
91
|
+
|
|
92
|
+
### Features
|
|
93
|
+
|
|
94
|
+
- **sp-button-group:** sp-button-group react to size updates ([#5037](https://github.com/adobe/spectrum-web-components/issues/5037)) ([63bc618](https://github.com/adobe/spectrum-web-components/commit/63bc618c18e9d8e39155cc7544814564673893a7))
|
|
95
|
+
|
|
96
|
+
## [1.0.3](https://github.com/adobe/spectrum-web-components/compare/v1.0.1...v1.0.3) (2024-12-09)
|
|
97
|
+
|
|
98
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
99
|
+
|
|
100
|
+
## [1.0.1](https://github.com/adobe/spectrum-web-components/compare/v1.0.0...v1.0.1) (2024-11-11)
|
|
101
|
+
|
|
102
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
103
|
+
|
|
104
|
+
# [1.0.0](https://github.com/adobe/spectrum-web-components/compare/v0.49.0...v1.0.0) (2024-10-31)
|
|
105
|
+
|
|
106
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
107
|
+
|
|
108
|
+
# [0.49.0](https://github.com/adobe/spectrum-web-components/compare/v0.48.1...v0.49.0) (2024-10-15)
|
|
109
|
+
|
|
110
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
111
|
+
|
|
112
|
+
## [0.48.1](https://github.com/adobe/spectrum-web-components/compare/v0.48.0...v0.48.1) (2024-10-01)
|
|
113
|
+
|
|
114
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
115
|
+
|
|
116
|
+
# [0.48.0](https://github.com/adobe/spectrum-web-components/compare/v0.47.2...v0.48.0) (2024-09-17)
|
|
117
|
+
|
|
118
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
119
|
+
|
|
120
|
+
## [0.47.2](https://github.com/adobe/spectrum-web-components/compare/v0.47.1...v0.47.2) (2024-09-03)
|
|
121
|
+
|
|
122
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
123
|
+
|
|
124
|
+
## [0.47.1](https://github.com/adobe/spectrum-web-components/compare/v0.47.0...v0.47.1) (2024-08-27)
|
|
125
|
+
|
|
126
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
127
|
+
|
|
128
|
+
# [0.47.0](https://github.com/adobe/spectrum-web-components/compare/v0.46.0...v0.47.0) (2024-08-20)
|
|
129
|
+
|
|
130
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
131
|
+
|
|
132
|
+
# [0.46.0](https://github.com/adobe/spectrum-web-components/compare/v0.45.0...v0.46.0) (2024-08-08)
|
|
133
|
+
|
|
134
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
135
|
+
|
|
136
|
+
# [0.45.0](https://github.com/adobe/spectrum-web-components/compare/v0.44.0...v0.45.0) (2024-07-30)
|
|
137
|
+
|
|
138
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
139
|
+
|
|
140
|
+
# [0.44.0](https://github.com/adobe/spectrum-web-components/compare/v0.42.4...v0.44.0) (2024-07-15)
|
|
141
|
+
|
|
142
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
143
|
+
|
|
144
|
+
# [0.43.0](https://github.com/adobe/spectrum-web-components/compare/v0.42.4...v0.43.0) (2024-06-11)
|
|
145
|
+
|
|
146
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
147
|
+
|
|
148
|
+
## [0.42.5](https://github.com/adobe/spectrum-web-components/compare/v0.42.4...v0.42.5) (2024-05-24)
|
|
149
|
+
|
|
150
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
151
|
+
|
|
152
|
+
## [0.42.4](https://github.com/adobe/spectrum-web-components/compare/v0.42.2...v0.42.4) (2024-05-14)
|
|
153
|
+
|
|
154
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
155
|
+
|
|
156
|
+
## [0.42.3](https://github.com/adobe/spectrum-web-components/compare/v0.42.2...v0.42.3) (2024-05-01)
|
|
157
|
+
|
|
158
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
159
|
+
|
|
160
|
+
## [0.42.2](https://github.com/adobe/spectrum-web-components/compare/v0.42.1...v0.42.2) (2024-04-03)
|
|
161
|
+
|
|
162
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
163
|
+
|
|
164
|
+
## [0.42.1](https://github.com/adobe/spectrum-web-components/compare/v0.42.0...v0.42.1) (2024-04-02)
|
|
165
|
+
|
|
166
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
167
|
+
|
|
168
|
+
# [0.42.0](https://github.com/adobe/spectrum-web-components/compare/v0.41.2...v0.42.0) (2024-03-19)
|
|
169
|
+
|
|
170
|
+
### Features
|
|
171
|
+
|
|
172
|
+
- **asset:** use core tokens ([99e76f4](https://github.com/adobe/spectrum-web-components/commit/99e76f4d32e990960b7fa2f0613ed4144adc4f6e))
|
|
173
|
+
|
|
174
|
+
## [0.41.2](https://github.com/adobe/spectrum-web-components/compare/v0.41.1...v0.41.2) (2024-03-05)
|
|
175
|
+
|
|
176
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
177
|
+
|
|
178
|
+
## [0.41.1](https://github.com/adobe/spectrum-web-components/compare/v0.41.0...v0.41.1) (2024-02-22)
|
|
179
|
+
|
|
180
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
181
|
+
|
|
182
|
+
# [0.41.0](https://github.com/adobe/spectrum-web-components/compare/v0.40.5...v0.41.0) (2024-02-13)
|
|
183
|
+
|
|
184
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
185
|
+
|
|
186
|
+
## [0.40.5](https://github.com/adobe/spectrum-web-components/compare/v0.40.4...v0.40.5) (2024-02-05)
|
|
187
|
+
|
|
188
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
189
|
+
|
|
190
|
+
## [0.40.4](https://github.com/adobe/spectrum-web-components/compare/v0.40.3...v0.40.4) (2024-01-29)
|
|
191
|
+
|
|
192
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
193
|
+
|
|
194
|
+
## [0.40.3](https://github.com/adobe/spectrum-web-components/compare/v0.40.2...v0.40.3) (2024-01-11)
|
|
195
|
+
|
|
196
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
197
|
+
|
|
198
|
+
## [0.40.2](https://github.com/adobe/spectrum-web-components/compare/v0.40.1...v0.40.2) (2023-12-18)
|
|
199
|
+
|
|
200
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
201
|
+
|
|
202
|
+
## [0.40.1](https://github.com/adobe/spectrum-web-components/compare/v0.40.0...v0.40.1) (2023-12-05)
|
|
203
|
+
|
|
204
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
205
|
+
|
|
206
|
+
# [0.40.0](https://github.com/adobe/spectrum-web-components/compare/v0.39.4...v0.40.0) (2023-11-16)
|
|
207
|
+
|
|
208
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
209
|
+
|
|
210
|
+
## [0.39.4](https://github.com/adobe/spectrum-web-components/compare/v0.39.3...v0.39.4) (2023-11-02)
|
|
211
|
+
|
|
212
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
213
|
+
|
|
214
|
+
## [0.39.3](https://github.com/adobe/spectrum-web-components/compare/v0.39.2...v0.39.3) (2023-10-18)
|
|
215
|
+
|
|
216
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
217
|
+
|
|
218
|
+
## [0.39.2](https://github.com/adobe/spectrum-web-components/compare/v0.39.1...v0.39.2) (2023-10-13)
|
|
219
|
+
|
|
220
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
221
|
+
|
|
222
|
+
## [0.39.1](https://github.com/adobe/spectrum-web-components/compare/v0.39.0...v0.39.1) (2023-10-06)
|
|
223
|
+
|
|
224
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
225
|
+
|
|
226
|
+
# [0.39.0](https://github.com/adobe/spectrum-web-components/compare/v0.38.0...v0.39.0) (2023-09-25)
|
|
227
|
+
|
|
228
|
+
### Bug Fixes
|
|
229
|
+
|
|
230
|
+
- **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))
|
|
231
|
+
|
|
232
|
+
# [0.38.0](https://github.com/adobe/spectrum-web-components/compare/v0.37.0...v0.38.0) (2023-09-05)
|
|
233
|
+
|
|
234
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
235
|
+
|
|
236
|
+
# [0.37.0](https://github.com/adobe/spectrum-web-components/compare/v0.36.0...v0.37.0) (2023-08-18)
|
|
237
|
+
|
|
238
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
239
|
+
|
|
240
|
+
# [0.36.0](https://github.com/adobe/spectrum-web-components/compare/v0.35.0...v0.36.0) (2023-08-18)
|
|
241
|
+
|
|
242
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
243
|
+
|
|
244
|
+
# [0.35.0](https://github.com/adobe/spectrum-web-components/compare/v0.34.0...v0.35.0) (2023-07-31)
|
|
245
|
+
|
|
246
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
247
|
+
|
|
248
|
+
# [0.34.0](https://github.com/adobe/spectrum-web-components/compare/v0.33.2...v0.34.0) (2023-07-11)
|
|
249
|
+
|
|
250
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
251
|
+
|
|
252
|
+
## [0.33.2](https://github.com/adobe/spectrum-web-components/compare/v0.33.1...v0.33.2) (2023-06-14)
|
|
253
|
+
|
|
254
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
255
|
+
|
|
256
|
+
# [0.33.0](https://github.com/adobe/spectrum-web-components/compare/v0.32.0...v0.33.0) (2023-06-08)
|
|
257
|
+
|
|
258
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
259
|
+
|
|
260
|
+
# [0.32.0](https://github.com/adobe/spectrum-web-components/compare/v0.31.0...v0.32.0) (2023-06-01)
|
|
261
|
+
|
|
262
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
263
|
+
|
|
264
|
+
# [0.31.0](https://github.com/adobe/spectrum-web-components/compare/v0.30.0...v0.31.0) (2023-05-17)
|
|
265
|
+
|
|
266
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
267
|
+
|
|
268
|
+
# 0.30.0 (2023-05-03)
|
|
269
|
+
|
|
270
|
+
### Bug Fixes
|
|
271
|
+
|
|
272
|
+
- include default export in the "exports" fields ([f32407d](https://github.com/adobe/spectrum-web-components/commit/f32407d7bbfd18e72c35b6f27740549e79957858))
|
|
273
|
+
- include the "types" entry in package.json files ([b432f59](https://github.com/adobe/spectrum-web-components/commit/b432f5982b3b79f80af12f6d0312cbe2285e608b))
|
|
274
|
+
- update latest Spectrum CSS beta releases ([d8d3acc](https://github.com/adobe/spectrum-web-components/commit/d8d3acc86de31e58219db6ba2a9d045b83cbe103))
|
|
275
|
+
- update side effect listings ([8160d3a](https://github.com/adobe/spectrum-web-components/commit/8160d3ab2c4f5ea11ac40897a5cf1fdaa357f4a8))
|
|
276
|
+
- update to latest spectrum-css packages ([a5ca19f](https://github.com/adobe/spectrum-web-components/commit/a5ca19f67d5b3f0951667c4441d4d977bf1e0937))
|
|
277
|
+
- use latest @spectrum-css/\* versions ([c35eb86](https://github.com/adobe/spectrum-web-components/commit/c35eb86defd89a0c36b5ea186f6d40f20851b5e5))
|
|
278
|
+
|
|
279
|
+
### Features
|
|
280
|
+
|
|
281
|
+
- adopt DNA@7 base Spectrum CSS ([e08cafd](https://github.com/adobe/spectrum-web-components/commit/e08cafda9f1b33b0163fbe5ba66754806be8f9e4))
|
|
282
|
+
- **button-group:** add ButtonGroup pattern ([c4d85b5](https://github.com/adobe/spectrum-web-components/commit/c4d85b5524f6623dbd3cb22c0d6fa8fc00e98733))
|
|
283
|
+
- **button-group:** update spectrum css input ([d8b1218](https://github.com/adobe/spectrum-web-components/commit/d8b1218f3993d378115206b125ca3e92ba756203))
|
|
284
|
+
- **button-group:** use core tokens and add t-shirt sizing ([960e972](https://github.com/adobe/spectrum-web-components/commit/960e9726aa9be615a6b971079fa2d7436d898243))
|
|
285
|
+
- include all Dev Mode files in side effects ([f70817c](https://github.com/adobe/spectrum-web-components/commit/f70817cc15db6dcf5cc1de2d82b4f7b0c80b1251))
|
|
286
|
+
- leverage "exports" field in package.json ([321abd7](https://github.com/adobe/spectrum-web-components/commit/321abd7b7e78ccd9157cff75a1fa3dbd06e81f79))
|
|
287
|
+
- shared pkg versions, devmode define warning, registry-conflicts docs ([6e49565](https://github.com/adobe/spectrum-web-components/commit/6e4956519b845fa8127f8032948b625c252ef7a6))
|
|
288
|
+
- update to Spectrum CSS v3.0.0 ([e8b3d8f](https://github.com/adobe/spectrum-web-components/commit/e8b3d8f75c77c04b4d7af126b91b0f6ad2a40742))
|
|
289
|
+
- use latest exports specification ([a7ecf4b](https://github.com/adobe/spectrum-web-components/commit/a7ecf4b6da7996f36a8a89f62cc2384709497008))
|
|
290
|
+
|
|
291
|
+
## [0.10.11](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.10.10...@spectrum-web-components/button-group@0.10.11) (2023-04-24)
|
|
292
|
+
|
|
293
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
294
|
+
|
|
295
|
+
## [0.10.10](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.10.9...@spectrum-web-components/button-group@0.10.10) (2023-04-05)
|
|
296
|
+
|
|
297
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
298
|
+
|
|
299
|
+
## [0.10.9](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.10.8...@spectrum-web-components/button-group@0.10.9) (2023-03-22)
|
|
300
|
+
|
|
301
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
302
|
+
|
|
303
|
+
## [0.10.8](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.10.7...@spectrum-web-components/button-group@0.10.8) (2023-03-08)
|
|
304
|
+
|
|
305
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
306
|
+
|
|
307
|
+
## [0.10.7](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.10.6...@spectrum-web-components/button-group@0.10.7) (2023-02-13)
|
|
308
|
+
|
|
309
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
310
|
+
|
|
311
|
+
## [0.10.6](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.10.5...@spectrum-web-components/button-group@0.10.6) (2023-02-08)
|
|
312
|
+
|
|
313
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
314
|
+
|
|
315
|
+
## [0.10.5](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.10.4...@spectrum-web-components/button-group@0.10.5) (2023-01-23)
|
|
316
|
+
|
|
317
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
318
|
+
|
|
319
|
+
## [0.10.4](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.10.3...@spectrum-web-components/button-group@0.10.4) (2023-01-09)
|
|
320
|
+
|
|
321
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
322
|
+
|
|
323
|
+
## [0.10.3](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.10.2...@spectrum-web-components/button-group@0.10.3) (2022-12-08)
|
|
324
|
+
|
|
325
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
326
|
+
|
|
327
|
+
## [0.10.2](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.10.1...@spectrum-web-components/button-group@0.10.2) (2022-11-21)
|
|
328
|
+
|
|
329
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
330
|
+
|
|
331
|
+
## [0.10.1](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.10.0...@spectrum-web-components/button-group@0.10.1) (2022-11-14)
|
|
332
|
+
|
|
333
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
334
|
+
|
|
335
|
+
# [0.10.0](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.9.0...@spectrum-web-components/button-group@0.10.0) (2022-10-28)
|
|
336
|
+
|
|
337
|
+
### Features
|
|
338
|
+
|
|
339
|
+
- **button-group:** use core tokens and add t-shirt sizing ([960e972](https://github.com/adobe/spectrum-web-components/commit/960e9726aa9be615a6b971079fa2d7436d898243))
|
|
340
|
+
|
|
341
|
+
# [0.9.0](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.8.12...@spectrum-web-components/button-group@0.9.0) (2022-08-09)
|
|
342
|
+
|
|
343
|
+
### Features
|
|
344
|
+
|
|
345
|
+
- include all Dev Mode files in side effects ([f70817c](https://github.com/adobe/spectrum-web-components/commit/f70817cc15db6dcf5cc1de2d82b4f7b0c80b1251))
|
|
346
|
+
|
|
347
|
+
## [0.8.12](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.8.11...@spectrum-web-components/button-group@0.8.12) (2022-08-04)
|
|
348
|
+
|
|
349
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
350
|
+
|
|
351
|
+
## [0.8.11](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.8.10...@spectrum-web-components/button-group@0.8.11) (2022-07-18)
|
|
352
|
+
|
|
353
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
354
|
+
|
|
355
|
+
## [0.8.10](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.8.9...@spectrum-web-components/button-group@0.8.10) (2022-06-29)
|
|
356
|
+
|
|
357
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
358
|
+
|
|
359
|
+
## [0.8.9](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.8.8...@spectrum-web-components/button-group@0.8.9) (2022-06-07)
|
|
360
|
+
|
|
361
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
362
|
+
|
|
363
|
+
## [0.8.8](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.8.7...@spectrum-web-components/button-group@0.8.8) (2022-05-27)
|
|
364
|
+
|
|
365
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
366
|
+
|
|
367
|
+
## [0.8.7](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.8.6...@spectrum-web-components/button-group@0.8.7) (2022-05-12)
|
|
368
|
+
|
|
369
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
370
|
+
|
|
371
|
+
## [0.8.6](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.8.5...@spectrum-web-components/button-group@0.8.6) (2022-04-21)
|
|
372
|
+
|
|
373
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
374
|
+
|
|
375
|
+
## [0.8.5](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.8.4...@spectrum-web-components/button-group@0.8.5) (2022-03-08)
|
|
376
|
+
|
|
377
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
378
|
+
|
|
379
|
+
## [0.8.4](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.8.3...@spectrum-web-components/button-group@0.8.4) (2022-03-04)
|
|
380
|
+
|
|
381
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
382
|
+
|
|
383
|
+
## [0.8.3](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.8.2...@spectrum-web-components/button-group@0.8.3) (2022-02-22)
|
|
384
|
+
|
|
385
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
386
|
+
|
|
387
|
+
## [0.8.2](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.8.1...@spectrum-web-components/button-group@0.8.2) (2022-01-26)
|
|
388
|
+
|
|
389
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
390
|
+
|
|
391
|
+
## [0.8.1](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.8.0...@spectrum-web-components/button-group@0.8.1) (2021-12-13)
|
|
392
|
+
|
|
393
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
394
|
+
|
|
395
|
+
# [0.8.0](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.7.1...@spectrum-web-components/button-group@0.8.0) (2021-11-08)
|
|
396
|
+
|
|
397
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
398
|
+
|
|
399
|
+
## [0.7.1](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.7.0...@spectrum-web-components/button-group@0.7.1) (2021-11-08)
|
|
400
|
+
|
|
401
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
402
|
+
|
|
403
|
+
# [0.7.0](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.6.10...@spectrum-web-components/button-group@0.7.0) (2021-11-02)
|
|
404
|
+
|
|
405
|
+
### Features
|
|
406
|
+
|
|
407
|
+
- adopt DNA@7 base Spectrum CSS ([e08cafd](https://github.com/adobe/spectrum-web-components/commit/e08cafda9f1b33b0163fbe5ba66754806be8f9e4))
|
|
408
|
+
|
|
409
|
+
## [0.6.10](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.6.9...@spectrum-web-components/button-group@0.6.10) (2021-09-20)
|
|
410
|
+
|
|
411
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
412
|
+
|
|
413
|
+
## [0.6.9](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.6.8...@spectrum-web-components/button-group@0.6.9) (2021-08-24)
|
|
414
|
+
|
|
415
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
416
|
+
|
|
417
|
+
## [0.6.8](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.6.7...@spectrum-web-components/button-group@0.6.8) (2021-07-22)
|
|
418
|
+
|
|
419
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
420
|
+
|
|
421
|
+
## [0.6.7](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.6.6...@spectrum-web-components/button-group@0.6.7) (2021-06-16)
|
|
422
|
+
|
|
423
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
424
|
+
|
|
425
|
+
## [0.6.6](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.6.5...@spectrum-web-components/button-group@0.6.6) (2021-05-12)
|
|
426
|
+
|
|
427
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
428
|
+
|
|
429
|
+
## [0.6.5](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.6.4...@spectrum-web-components/button-group@0.6.5) (2021-04-09)
|
|
430
|
+
|
|
431
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
432
|
+
|
|
433
|
+
## [0.6.4](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.6.3...@spectrum-web-components/button-group@0.6.4) (2021-03-29)
|
|
434
|
+
|
|
435
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
436
|
+
|
|
437
|
+
## [0.6.3](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.6.2...@spectrum-web-components/button-group@0.6.3) (2021-03-22)
|
|
438
|
+
|
|
439
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
440
|
+
|
|
441
|
+
## [0.6.2](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.6.1...@spectrum-web-components/button-group@0.6.2) (2021-03-22)
|
|
442
|
+
|
|
443
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
444
|
+
|
|
445
|
+
## [0.6.1](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.6.0...@spectrum-web-components/button-group@0.6.1) (2021-03-05)
|
|
446
|
+
|
|
447
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
448
|
+
|
|
449
|
+
# [0.6.0](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.5.3...@spectrum-web-components/button-group@0.6.0) (2021-03-04)
|
|
450
|
+
|
|
451
|
+
### Features
|
|
452
|
+
|
|
453
|
+
- use latest exports specification ([a7ecf4b](https://github.com/adobe/spectrum-web-components/commit/a7ecf4b6da7996f36a8a89f62cc2384709497008))
|
|
454
|
+
|
|
455
|
+
## [0.5.3](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.5.2...@spectrum-web-components/button-group@0.5.3) (2021-02-11)
|
|
456
|
+
|
|
457
|
+
### Bug Fixes
|
|
458
|
+
|
|
459
|
+
- update to latest spectrum-css packages ([a5ca19f](https://github.com/adobe/spectrum-web-components/commit/a5ca19f67d5b3f0951667c4441d4d977bf1e0937))
|
|
460
|
+
|
|
461
|
+
## [0.5.2](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.5.1...@spectrum-web-components/button-group@0.5.2) (2021-02-02)
|
|
462
|
+
|
|
463
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
464
|
+
|
|
465
|
+
## [0.5.1](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.5.0...@spectrum-web-components/button-group@0.5.1) (2021-01-28)
|
|
466
|
+
|
|
467
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
468
|
+
|
|
469
|
+
# [0.5.0](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.3.4...@spectrum-web-components/button-group@0.5.0) (2021-01-21)
|
|
470
|
+
|
|
471
|
+
### Bug Fixes
|
|
472
|
+
|
|
473
|
+
- include the "types" entry in package.json files ([b432f59](https://github.com/adobe/spectrum-web-components/commit/b432f5982b3b79f80af12f6d0312cbe2285e608b))
|
|
474
|
+
- update latest Spectrum CSS beta releases ([d8d3acc](https://github.com/adobe/spectrum-web-components/commit/d8d3acc86de31e58219db6ba2a9d045b83cbe103))
|
|
475
|
+
- use latest @spectrum-css/\* versions ([c35eb86](https://github.com/adobe/spectrum-web-components/commit/c35eb86defd89a0c36b5ea186f6d40f20851b5e5))
|
|
476
|
+
|
|
477
|
+
### Features
|
|
478
|
+
|
|
479
|
+
- **button-group:** update spectrum css input ([d8b1218](https://github.com/adobe/spectrum-web-components/commit/d8b1218f3993d378115206b125ca3e92ba756203))
|
|
480
|
+
|
|
481
|
+
# [0.4.0](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.3.4...@spectrum-web-components/button-group@0.4.0) (2021-01-13)
|
|
482
|
+
|
|
483
|
+
### Bug Fixes
|
|
484
|
+
|
|
485
|
+
- include the "types" entry in package.json files ([b432f59](https://github.com/adobe/spectrum-web-components/commit/b432f5982b3b79f80af12f6d0312cbe2285e608b))
|
|
486
|
+
- update latest Spectrum CSS beta releases ([d8d3acc](https://github.com/adobe/spectrum-web-components/commit/d8d3acc86de31e58219db6ba2a9d045b83cbe103))
|
|
487
|
+
- use latest @spectrum-css/\* versions ([c35eb86](https://github.com/adobe/spectrum-web-components/commit/c35eb86defd89a0c36b5ea186f6d40f20851b5e5))
|
|
488
|
+
|
|
489
|
+
### Features
|
|
490
|
+
|
|
491
|
+
- **button-group:** update spectrum css input ([d8b1218](https://github.com/adobe/spectrum-web-components/commit/d8b1218f3993d378115206b125ca3e92ba756203))
|
|
492
|
+
|
|
493
|
+
## [0.3.4](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.3.3...@spectrum-web-components/button-group@0.3.4) (2020-10-12)
|
|
494
|
+
|
|
495
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
496
|
+
|
|
497
|
+
## [0.3.3](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.3.2...@spectrum-web-components/button-group@0.3.3) (2020-10-12)
|
|
498
|
+
|
|
499
|
+
### Bug Fixes
|
|
500
|
+
|
|
501
|
+
- include default export in the "exports" fields ([f32407d](https://github.com/adobe/spectrum-web-components/commit/f32407d7bbfd18e72c35b6f27740549e79957858))
|
|
502
|
+
|
|
503
|
+
## [0.3.2](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.3.1...@spectrum-web-components/button-group@0.3.2) (2020-09-25)
|
|
504
|
+
|
|
505
|
+
### Bug Fixes
|
|
506
|
+
|
|
507
|
+
- update side effect listings ([8160d3a](https://github.com/adobe/spectrum-web-components/commit/8160d3ab2c4f5ea11ac40897a5cf1fdaa357f4a8))
|
|
508
|
+
|
|
509
|
+
## [0.3.1](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.3.0...@spectrum-web-components/button-group@0.3.1) (2020-09-14)
|
|
510
|
+
|
|
511
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
512
|
+
|
|
513
|
+
# [0.3.0](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.2.4...@spectrum-web-components/button-group@0.3.0) (2020-08-31)
|
|
514
|
+
|
|
515
|
+
### Features
|
|
516
|
+
|
|
517
|
+
- update to Spectrum CSS v3.0.0 ([e8b3d8f](https://github.com/adobe/spectrum-web-components/commit/e8b3d8f75c77c04b4d7af126b91b0f6ad2a40742))
|
|
518
|
+
|
|
519
|
+
## [0.2.4](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.2.3...@spectrum-web-components/button-group@0.2.4) (2020-08-19)
|
|
520
|
+
|
|
521
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
522
|
+
|
|
523
|
+
## [0.2.3](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.2.2...@spectrum-web-components/button-group@0.2.3) (2020-07-27)
|
|
524
|
+
|
|
525
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
526
|
+
|
|
527
|
+
## [0.2.2](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.2.1...@spectrum-web-components/button-group@0.2.2) (2020-07-24)
|
|
528
|
+
|
|
529
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
530
|
+
|
|
531
|
+
## [0.2.1](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.2.0...@spectrum-web-components/button-group@0.2.1) (2020-07-22)
|
|
532
|
+
|
|
533
|
+
**Note:** Version bump only for package @spectrum-web-components/button-group
|
|
534
|
+
|
|
535
|
+
# [0.2.0](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/button-group@0.1.0...@spectrum-web-components/button-group@0.2.0) (2020-07-17)
|
|
536
|
+
|
|
537
|
+
### Features
|
|
538
|
+
|
|
539
|
+
- leverage "exports" field in package.json ([321abd7](https://github.com/adobe/spectrum-web-components/commit/321abd7b7e78ccd9157cff75a1fa3dbd06e81f79))
|
|
540
|
+
|
|
541
|
+
# 0.1.0 (2020-06-08)
|
|
542
|
+
|
|
543
|
+
### Features
|
|
544
|
+
|
|
545
|
+
- **button-group:** add ButtonGroup pattern ([c4d85b5](https://github.com/adobe/spectrum-web-components/commit/c4d85b5524f6623dbd3cb22c0d6fa8fc00e98733))
|
package/package.json
CHANGED
|
@@ -1,76 +1,76 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
"name": "@spectrum-web-components/button-group",
|
|
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/button-group"
|
|
13
|
+
},
|
|
14
|
+
"author": "Adobe",
|
|
15
|
+
"homepage": "https://opensource.adobe.com/spectrum-web-components/components/button-group",
|
|
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
|
-
"
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"url": "https://github.com/adobe/spectrum-web-components.git",
|
|
12
|
-
"directory": "packages/button-group"
|
|
27
|
+
"./package.json": "./package.json",
|
|
28
|
+
"./src/ButtonGroup.js": {
|
|
29
|
+
"development": "./src/ButtonGroup.dev.js",
|
|
30
|
+
"default": "./src/ButtonGroup.js"
|
|
13
31
|
},
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
|
|
32
|
+
"./src/button-group-overrides.css.js": "./src/button-group-overrides.css.js",
|
|
33
|
+
"./src/button-group.css.js": "./src/button-group.css.js",
|
|
34
|
+
"./src/index.js": {
|
|
35
|
+
"development": "./src/index.dev.js",
|
|
36
|
+
"default": "./src/index.js"
|
|
18
37
|
},
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
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
|
-
"@spectrum-web-components/button": "1.9.0"
|
|
69
|
-
},
|
|
70
|
-
"types": "./src/index.d.ts",
|
|
71
|
-
"customElements": "custom-elements.json",
|
|
72
|
-
"sideEffects": [
|
|
73
|
-
"./sp-*.js",
|
|
74
|
-
"./**/*.dev.js"
|
|
75
|
-
]
|
|
76
|
-
}
|
|
38
|
+
"./sp-button-group.js": {
|
|
39
|
+
"development": "./sp-button-group.dev.js",
|
|
40
|
+
"default": "./sp-button-group.js"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
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.1-nightly.20251028221318",
|
|
68
|
+
"@spectrum-web-components/button": "1.9.1-nightly.20251028221318"
|
|
69
|
+
},
|
|
70
|
+
"types": "./src/index.d.ts",
|
|
71
|
+
"customElements": "custom-elements.json",
|
|
72
|
+
"sideEffects": [
|
|
73
|
+
"./sp-*.js",
|
|
74
|
+
"./**/*.dev.js"
|
|
75
|
+
]
|
|
76
|
+
}
|
package/src/ButtonGroup.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ import { CSSResultArray, PropertyValues, SpectrumElement, TemplateResult } from
|
|
|
13
13
|
declare const ButtonGroup_base: typeof SpectrumElement & {
|
|
14
14
|
new (...args: any[]): import("@spectrum-web-components/base").SizedElementInterface;
|
|
15
15
|
prototype: import("@spectrum-web-components/base").SizedElementInterface;
|
|
16
|
-
};
|
|
16
|
+
} & import("@spectrum-web-components/base").SizedElementConstructor;
|
|
17
17
|
/**
|
|
18
18
|
* @element sp-button-group
|
|
19
19
|
* @slot - the sp-button elements that make up the group
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["button-group-overrides.css.ts"],
|
|
4
|
-
"sourcesContent": ["
|
|
5
|
-
"mappings": ";
|
|
4
|
+
"sourcesContent": ["import { css } from '@spectrum-web-components/base';\nconst styles = css`\n \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": ["button-group-overrides.css.ts"],
|
|
4
|
-
"sourcesContent": ["
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["import { css } from '@spectrum-web-components/base';\nconst styles = css`\n \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": ["button-group.css.ts"],
|
|
4
|
-
"sourcesContent": ["
|
|
5
|
-
"mappings": ";
|
|
4
|
+
"sourcesContent": ["import { css } from '@spectrum-web-components/base';\nconst styles = css`\n :host{--spectrum-buttongroup-spacing:var(--mod-buttongroup-spacing,var(--mod-buttongroup-spacing-horizontal,var(--spectrum-spacing-300)));--spectrum-buttongroup-display:flex;--spectrum-buttongroup-flex-direction:row;--spectrum-buttongroup-justify-content:var(--mod-buttongroup-justify-content,normal)}:host([size=s]){--spectrum-buttongroup-spacing:var(--mod-buttongroup-spacing,var(--mod-buttongroup-spacing-horizontal,var(--spectrum-spacing-200)))}:host([vertical]){--mod-buttongroup-spacing:var(--mod-buttongroup-spacing-vertical);--spectrum-buttongroup-display:inline-flex;--spectrum-buttongroup-flex-direction:column}:host{display:var(--spectrum-buttongroup-display);flex-direction:var(--spectrum-buttongroup-flex-direction);gap:var(--spectrum-buttongroup-spacing);justify-content:var(--spectrum-buttongroup-justify-content);flex-wrap:wrap}::slotted(*){flex-shrink:0}:host([vertical]) ::slotted(sp-action-button){--spectrum-actionbutton-label-flex-grow:1}:host([dir=ltr][vertical]) ::slotted(sp-action-button){--spectrum-actionbutton-label-text-align:left}:host([dir=rtl][vertical]) ::slotted(sp-action-button){--spectrum-actionbutton-label-text-align:right}\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": ["button-group.css.ts"],
|
|
4
|
-
"sourcesContent": ["
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["import { css } from '@spectrum-web-components/base';\nconst styles = css`\n :host{--spectrum-buttongroup-spacing:var(--mod-buttongroup-spacing,var(--mod-buttongroup-spacing-horizontal,var(--spectrum-spacing-300)));--spectrum-buttongroup-display:flex;--spectrum-buttongroup-flex-direction:row;--spectrum-buttongroup-justify-content:var(--mod-buttongroup-justify-content,normal)}:host([size=s]){--spectrum-buttongroup-spacing:var(--mod-buttongroup-spacing,var(--mod-buttongroup-spacing-horizontal,var(--spectrum-spacing-200)))}:host([vertical]){--mod-buttongroup-spacing:var(--mod-buttongroup-spacing-vertical);--spectrum-buttongroup-display:inline-flex;--spectrum-buttongroup-flex-direction:column}:host{display:var(--spectrum-buttongroup-display);flex-direction:var(--spectrum-buttongroup-flex-direction);gap:var(--spectrum-buttongroup-spacing);justify-content:var(--spectrum-buttongroup-justify-content);flex-wrap:wrap}::slotted(*){flex-shrink:0}:host([vertical]) ::slotted(sp-action-button){--spectrum-actionbutton-label-flex-grow:1}:host([dir=ltr][vertical]) ::slotted(sp-action-button){--spectrum-actionbutton-label-text-align:left}:host([dir=rtl][vertical]) ::slotted(sp-action-button){--spectrum-actionbutton-label-text-align:right}\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-button-group.css.ts"],
|
|
4
|
-
"sourcesContent": ["
|
|
5
|
-
"mappings": ";
|
|
4
|
+
"sourcesContent": ["import { css } from '@spectrum-web-components/base';\nconst styles = css`\n :host{--spectrum-buttongroup-spacing:var(--mod-buttongroup-spacing,var(--mod-buttongroup-spacing-horizontal,var(--spectrum-spacing-300)));--spectrum-buttongroup-display:flex;--spectrum-buttongroup-flex-direction:row;--spectrum-buttongroup-justify-content:var(--mod-buttongroup-justify-content,normal)}:host([size=s]){--spectrum-buttongroup-spacing:var(--mod-buttongroup-spacing,var(--mod-buttongroup-spacing-horizontal,var(--spectrum-spacing-200)))}:host([vertical]){--mod-buttongroup-spacing:var(--mod-buttongroup-spacing-vertical);--spectrum-buttongroup-display:inline-flex;--spectrum-buttongroup-flex-direction:column}:host{display:var(--spectrum-buttongroup-display);flex-direction:var(--spectrum-buttongroup-flex-direction);gap:var(--spectrum-buttongroup-spacing);justify-content:var(--spectrum-buttongroup-justify-content);flex-wrap:wrap}::slotted(*){flex-shrink:0}\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-button-group.css.ts"],
|
|
4
|
-
"sourcesContent": ["
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["import { css } from '@spectrum-web-components/base';\nconst styles = css`\n :host{--spectrum-buttongroup-spacing:var(--mod-buttongroup-spacing,var(--mod-buttongroup-spacing-horizontal,var(--spectrum-spacing-300)));--spectrum-buttongroup-display:flex;--spectrum-buttongroup-flex-direction:row;--spectrum-buttongroup-justify-content:var(--mod-buttongroup-justify-content,normal)}:host([size=s]){--spectrum-buttongroup-spacing:var(--mod-buttongroup-spacing,var(--mod-buttongroup-spacing-horizontal,var(--spectrum-spacing-200)))}:host([vertical]){--mod-buttongroup-spacing:var(--mod-buttongroup-spacing-vertical);--spectrum-buttongroup-display:inline-flex;--spectrum-buttongroup-flex-direction:column}:host{display:var(--spectrum-buttongroup-display);flex-direction:var(--spectrum-buttongroup-flex-direction);gap:var(--spectrum-buttongroup-spacing);justify-content:var(--spectrum-buttongroup-justify-content);flex-wrap:wrap}::slotted(*){flex-shrink:0}\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 {
|
|
3
|
+
buttons,
|
|
4
|
+
buttonsVertical
|
|
5
|
+
} from "./button-group.stories.js";
|
|
6
|
+
export default {
|
|
7
|
+
title: "Button Group/Sizes",
|
|
8
|
+
component: "sp-button-group"
|
|
9
|
+
};
|
|
10
|
+
export const s = (args) => buttons(args);
|
|
11
|
+
s.args = { size: "s" };
|
|
12
|
+
export const m = (args) => buttons(args);
|
|
13
|
+
m.args = { size: "m" };
|
|
14
|
+
export const l = (args) => buttons(args);
|
|
15
|
+
l.args = { size: "l" };
|
|
16
|
+
export const XL = (args) => buttons(args);
|
|
17
|
+
XL.args = { size: "XL" };
|
|
18
|
+
export const verticalS = (args) => buttonsVertical(args);
|
|
19
|
+
verticalS.args = { size: "s" };
|
|
20
|
+
export const verticalM = (args) => buttonsVertical(args);
|
|
21
|
+
verticalM.args = { size: "m" };
|
|
22
|
+
export const verticalL = (args) => buttonsVertical(args);
|
|
23
|
+
verticalL.args = { size: "l" };
|
|
24
|
+
export const verticalXL = (args) => buttonsVertical(args);
|
|
25
|
+
verticalXL.args = { size: "XL" };
|
|
26
|
+
//# sourceMappingURL=button-group-sizes.stories.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["button-group-sizes.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 { TemplateResult } from '@spectrum-web-components/base';\n\nimport {\n buttons,\n buttonsVertical,\n Properties,\n} from './button-group.stories.js';\n\nexport default {\n title: 'Button Group/Sizes',\n component: 'sp-button-group',\n};\n\nexport const s = (args: Properties): TemplateResult => buttons(args);\ns.args = { size: 's' };\n\nexport const m = (args: Properties): TemplateResult => buttons(args);\nm.args = { size: 'm' };\n\nexport const l = (args: Properties): TemplateResult => buttons(args);\nl.args = { size: 'l' };\n\nexport const XL = (args: Properties): TemplateResult => buttons(args);\nXL.args = { size: 'XL' };\n\nexport const verticalS = (args: Properties): TemplateResult =>\n buttonsVertical(args);\nverticalS.args = { size: 's' };\n\nexport const verticalM = (args: Properties): TemplateResult =>\n buttonsVertical(args);\nverticalM.args = { size: 'm' };\n\nexport const verticalL = (args: Properties): TemplateResult =>\n buttonsVertical(args);\nverticalL.args = { size: 'l' };\n\nexport const verticalXL = (args: Properties): TemplateResult =>\n buttonsVertical(args);\nverticalXL.args = { size: 'XL' };\n"],
|
|
5
|
+
"mappings": ";AAcA;AAAA,EACI;AAAA,EACA;AAAA,OAEG;AAEP,eAAe;AAAA,EACX,OAAO;AAAA,EACP,WAAW;AACf;AAEO,aAAM,IAAI,CAAC,SAAqC,QAAQ,IAAI;AACnE,EAAE,OAAO,EAAE,MAAM,IAAI;AAEd,aAAM,IAAI,CAAC,SAAqC,QAAQ,IAAI;AACnE,EAAE,OAAO,EAAE,MAAM,IAAI;AAEd,aAAM,IAAI,CAAC,SAAqC,QAAQ,IAAI;AACnE,EAAE,OAAO,EAAE,MAAM,IAAI;AAEd,aAAM,KAAK,CAAC,SAAqC,QAAQ,IAAI;AACpE,GAAG,OAAO,EAAE,MAAM,KAAK;AAEhB,aAAM,YAAY,CAAC,SACtB,gBAAgB,IAAI;AACxB,UAAU,OAAO,EAAE,MAAM,IAAI;AAEtB,aAAM,YAAY,CAAC,SACtB,gBAAgB,IAAI;AACxB,UAAU,OAAO,EAAE,MAAM,IAAI;AAEtB,aAAM,YAAY,CAAC,SACtB,gBAAgB,IAAI;AACxB,UAAU,OAAO,EAAE,MAAM,IAAI;AAEtB,aAAM,aAAa,CAAC,SACvB,gBAAgB,IAAI;AACxB,WAAW,OAAO,EAAE,MAAM,KAAK;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
import { html } from "@spectrum-web-components/base";
|
|
3
|
+
import "@spectrum-web-components/button-group/sp-button-group.js";
|
|
4
|
+
import "@spectrum-web-components/button/sp-button.js";
|
|
5
|
+
import "@spectrum-web-components/icon/sp-icon.js";
|
|
6
|
+
export default {
|
|
7
|
+
title: "Button Group",
|
|
8
|
+
component: "sp-button-group"
|
|
9
|
+
};
|
|
10
|
+
export const buttons = (args) => {
|
|
11
|
+
return html`
|
|
12
|
+
<sp-button-group size=${args.size || "m"}>
|
|
13
|
+
<sp-button>Button 1</sp-button>
|
|
14
|
+
<sp-button>Longer Button 2</sp-button>
|
|
15
|
+
<sp-button>Short 3</sp-button>
|
|
16
|
+
</sp-button-group>
|
|
17
|
+
`;
|
|
18
|
+
};
|
|
19
|
+
buttons.args = {
|
|
20
|
+
size: "m"
|
|
21
|
+
};
|
|
22
|
+
export const buttonsVertical = (args) => {
|
|
23
|
+
return html`
|
|
24
|
+
<sp-button-group vertical size=${args.size || "m"}>
|
|
25
|
+
<sp-button>Button 1</sp-button>
|
|
26
|
+
<sp-button>Longer Button 2</sp-button>
|
|
27
|
+
<sp-button>Short 3</sp-button>
|
|
28
|
+
</sp-button-group>
|
|
29
|
+
`;
|
|
30
|
+
};
|
|
31
|
+
buttonsVertical.args = {
|
|
32
|
+
size: "m"
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=button-group.stories.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["button-group.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/button-group/sp-button-group.js';\nimport '@spectrum-web-components/button/sp-button.js';\nimport '@spectrum-web-components/icon/sp-icon.js';\n\nexport default {\n title: 'Button Group',\n component: 'sp-button-group',\n};\n\nexport interface Properties {\n size?: 's' | 'm' | 'l' | 'xl';\n}\n\ninterface Story<T> {\n (args: T): TemplateResult;\n args: Partial<T>;\n argTypes?: Record<string, unknown>;\n}\n\nexport const buttons: Story<Properties> = (\n args: Properties\n): TemplateResult => {\n return html`\n <sp-button-group size=${args.size || 'm'}>\n <sp-button>Button 1</sp-button>\n <sp-button>Longer Button 2</sp-button>\n <sp-button>Short 3</sp-button>\n </sp-button-group>\n `;\n};\nbuttons.args = {\n size: 'm',\n};\n\nexport const buttonsVertical: Story<Properties> = (\n args: Properties\n): TemplateResult => {\n return html`\n <sp-button-group vertical size=${args.size || 'm'}>\n <sp-button>Button 1</sp-button>\n <sp-button>Longer Button 2</sp-button>\n <sp-button>Short 3</sp-button>\n </sp-button-group>\n `;\n};\nbuttonsVertical.args = {\n size: 'm',\n};\n"],
|
|
5
|
+
"mappings": ";AAYA,SAAS,YAA4B;AAErC,OAAO;AACP,OAAO;AACP,OAAO;AAEP,eAAe;AAAA,EACX,OAAO;AAAA,EACP,WAAW;AACf;AAYO,aAAM,UAA6B,CACtC,SACiB;AACjB,SAAO;AAAA,gCACqB,KAAK,QAAQ,GAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAMhD;AACA,QAAQ,OAAO;AAAA,EACX,MAAM;AACV;AAEO,aAAM,kBAAqC,CAC9C,SACiB;AACjB,SAAO;AAAA,yCAC8B,KAAK,QAAQ,GAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAMzD;AACA,gBAAgB,OAAO;AAAA,EACnB,MAAM;AACV;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
import "@spectrum-web-components/button-group/sp-button-group.js";
|
|
3
|
+
import "@spectrum-web-components/button/sp-button.js";
|
|
4
|
+
import { html } from "lit";
|
|
5
|
+
import { measureFixtureCreation } from "../../../../test/benchmark/helpers.js";
|
|
6
|
+
measureFixtureCreation(html`
|
|
7
|
+
<sp-button-group>
|
|
8
|
+
<sp-button>Button 1</sp-button>
|
|
9
|
+
<sp-button>Longer Button 2</sp-button>
|
|
10
|
+
<sp-button>Short 3</sp-button>
|
|
11
|
+
</sp-button-group>
|
|
12
|
+
`);
|
|
13
|
+
//# 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/button-group/sp-button-group.js';\nimport '@spectrum-web-components/button/sp-button.js';\nimport { html } from 'lit';\nimport { measureFixtureCreation } from '../../../../test/benchmark/helpers.js';\n\nmeasureFixtureCreation(html`\n <sp-button-group>\n <sp-button>Button 1</sp-button>\n <sp-button>Longer Button 2</sp-button>\n <sp-button>Short 3</sp-button>\n </sp-button-group>\n`);\n"],
|
|
5
|
+
"mappings": ";AAYA,OAAO;AACP,OAAO;AACP,SAAS,YAAY;AACrB,SAAS,8BAA8B;AAEvC,uBAAuB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAMtB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["
|
|
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 {
|
|
5
|
-
"mappings": ";
|
|
3
|
+
"sources": ["button-group-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 { buttons } from '../stories/button-group.stories.js';\nimport { testForMemoryLeaks } from '../../../test/testing-helpers.js';\n\ntestForMemoryLeaks(buttons({}));\n"],
|
|
5
|
+
"mappings": ";AAYA,SAAS,eAAe;AACxB,SAAS,0BAA0B;AAEnC,mBAAmB,QAAQ,CAAC,CAAC,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["
|
|
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 {
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": [
|
|
3
|
+
"sources": ["button-group-sizes.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/button-group-sizes.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\nimport type { TestsType } from '../../../test/visual/test.js';\n\nregressVisuals('ButtonGroupSizesStories', stories as unknown as TestsType);\n"],
|
|
5
|
+
"mappings": ";AAYA,YAAY,aAAa;AACzB,SAAS,sBAAsB;AAG/B,eAAe,2BAA2B,OAA+B;",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["button-group.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/button-group.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\nimport type { TestsType } from '../../../test/visual/test.js';\n\nregressVisuals('ButtonGroupStories', stories as unknown as TestsType);\n"],
|
|
5
|
+
"mappings": ";AAYA,YAAY,aAAa;AACzB,SAAS,sBAAsB;AAG/B,eAAe,sBAAsB,OAA+B;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
import { elementUpdated, expect, fixture } from "@open-wc/testing";
|
|
3
|
+
import "@spectrum-web-components/button-group/sp-button-group.js";
|
|
4
|
+
import { buttons, buttonsVertical } from "../stories/button-group.stories.js";
|
|
5
|
+
import { testForLitDevWarnings } from "../../../test/testing-helpers.js";
|
|
6
|
+
describe("Buttongroup", () => {
|
|
7
|
+
testForLitDevWarnings(
|
|
8
|
+
async () => await fixture(buttons(buttons.args))
|
|
9
|
+
);
|
|
10
|
+
it("loads default button-group accessibly with sp-button", async () => {
|
|
11
|
+
const el = await fixture(buttons(buttons.args));
|
|
12
|
+
await elementUpdated(el);
|
|
13
|
+
await expect(el).to.be.accessible();
|
|
14
|
+
});
|
|
15
|
+
it("loads default button-group[vertial] accessibly with sp-button", async () => {
|
|
16
|
+
const el = await fixture(
|
|
17
|
+
buttonsVertical(buttonsVertical.args)
|
|
18
|
+
);
|
|
19
|
+
await elementUpdated(el);
|
|
20
|
+
await expect(el).to.be.accessible();
|
|
21
|
+
});
|
|
22
|
+
it(`manages its children's size`, async () => {
|
|
23
|
+
const el = await fixture(buttons(buttons.args));
|
|
24
|
+
await elementUpdated(el);
|
|
25
|
+
let children = el.querySelectorAll("sp-button");
|
|
26
|
+
children.forEach((button) => {
|
|
27
|
+
expect(button.size).to.equal("m");
|
|
28
|
+
});
|
|
29
|
+
el.size = "s";
|
|
30
|
+
await elementUpdated(el);
|
|
31
|
+
children = el.querySelectorAll("sp-button");
|
|
32
|
+
children.forEach((button) => {
|
|
33
|
+
expect(button.size).to.equal("s");
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
//# sourceMappingURL=button-group.test.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["button-group.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 '@spectrum-web-components/button-group/sp-button-group.js';\nimport { ButtonGroup } from '..';\nimport { buttons, buttonsVertical } from '../stories/button-group.stories.js';\nimport { testForLitDevWarnings } from '../../../test/testing-helpers.js';\n\ndescribe('Buttongroup', () => {\n testForLitDevWarnings(\n async () => await fixture<ButtonGroup>(buttons(buttons.args))\n );\n it('loads default button-group accessibly with sp-button', async () => {\n const el = await fixture<ButtonGroup>(buttons(buttons.args));\n\n await elementUpdated(el);\n\n await expect(el).to.be.accessible();\n });\n it('loads default button-group[vertial] accessibly with sp-button', async () => {\n const el = await fixture<ButtonGroup>(\n buttonsVertical(buttonsVertical.args)\n );\n\n await elementUpdated(el);\n\n await expect(el).to.be.accessible();\n });\n it(`manages its children's size`, async () => {\n const el = await fixture<ButtonGroup>(buttons(buttons.args));\n await elementUpdated(el);\n\n let children = el.querySelectorAll('sp-button');\n children.forEach((button) => {\n expect(button.size).to.equal('m');\n });\n\n el.size = 's';\n await elementUpdated(el);\n\n children = el.querySelectorAll('sp-button');\n children.forEach((button) => {\n expect(button.size).to.equal('s');\n });\n });\n});\n"],
|
|
5
|
+
"mappings": ";AAYA,SAAS,gBAAgB,QAAQ,eAAe;AAEhD,OAAO;AAEP,SAAS,SAAS,uBAAuB;AACzC,SAAS,6BAA6B;AAEtC,SAAS,eAAe,MAAM;AAC1B;AAAA,IACI,YAAY,MAAM,QAAqB,QAAQ,QAAQ,IAAI,CAAC;AAAA,EAChE;AACA,KAAG,wDAAwD,YAAY;AACnE,UAAM,KAAK,MAAM,QAAqB,QAAQ,QAAQ,IAAI,CAAC;AAE3D,UAAM,eAAe,EAAE;AAEvB,UAAM,OAAO,EAAE,EAAE,GAAG,GAAG,WAAW;AAAA,EACtC,CAAC;AACD,KAAG,iEAAiE,YAAY;AAC5E,UAAM,KAAK,MAAM;AAAA,MACb,gBAAgB,gBAAgB,IAAI;AAAA,IACxC;AAEA,UAAM,eAAe,EAAE;AAEvB,UAAM,OAAO,EAAE,EAAE,GAAG,GAAG,WAAW;AAAA,EACtC,CAAC;AACD,KAAG,+BAA+B,YAAY;AAC1C,UAAM,KAAK,MAAM,QAAqB,QAAQ,QAAQ,IAAI,CAAC;AAC3D,UAAM,eAAe,EAAE;AAEvB,QAAI,WAAW,GAAG,iBAAiB,WAAW;AAC9C,aAAS,QAAQ,CAAC,WAAW;AACzB,aAAO,OAAO,IAAI,EAAE,GAAG,MAAM,GAAG;AAAA,IACpC,CAAC;AAED,OAAG,OAAO;AACV,UAAM,eAAe,EAAE;AAEvB,eAAW,GAAG,iBAAiB,WAAW;AAC1C,aAAS,QAAQ,CAAC,WAAW;AACzB,aAAO,OAAO,IAAI,EAAE,GAAG,MAAM,GAAG;AAAA,IACpC,CAAC;AAAA,EACL,CAAC;AACL,CAAC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/custom-elements.json
DELETED
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schemaVersion": "1.0.0",
|
|
3
|
-
"readme": "",
|
|
4
|
-
"modules": [
|
|
5
|
-
{
|
|
6
|
-
"kind": "javascript-module",
|
|
7
|
-
"path": "sp-button-group.js",
|
|
8
|
-
"declarations": [],
|
|
9
|
-
"exports": [
|
|
10
|
-
{
|
|
11
|
-
"kind": "custom-element-definition",
|
|
12
|
-
"name": "sp-button-group",
|
|
13
|
-
"declaration": {
|
|
14
|
-
"name": "ButtonGroup",
|
|
15
|
-
"module": "/src/ButtonGroup.js"
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
]
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"kind": "javascript-module",
|
|
22
|
-
"path": "src/ButtonGroup.js",
|
|
23
|
-
"declarations": [
|
|
24
|
-
{
|
|
25
|
-
"kind": "class",
|
|
26
|
-
"description": "",
|
|
27
|
-
"name": "ButtonGroup",
|
|
28
|
-
"slots": [
|
|
29
|
-
{
|
|
30
|
-
"description": "the sp-button elements that make up the group",
|
|
31
|
-
"name": ""
|
|
32
|
-
}
|
|
33
|
-
],
|
|
34
|
-
"members": [
|
|
35
|
-
{
|
|
36
|
-
"kind": "field",
|
|
37
|
-
"name": "vertical",
|
|
38
|
-
"type": {
|
|
39
|
-
"text": "boolean"
|
|
40
|
-
},
|
|
41
|
-
"privacy": "public",
|
|
42
|
-
"default": "false",
|
|
43
|
-
"attribute": "vertical",
|
|
44
|
-
"reflects": true
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"kind": "field",
|
|
48
|
-
"name": "slotElement",
|
|
49
|
-
"type": {
|
|
50
|
-
"text": "HTMLSlotElement"
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"kind": "method",
|
|
55
|
-
"name": "handleSlotchange",
|
|
56
|
-
"privacy": "protected",
|
|
57
|
-
"return": {
|
|
58
|
-
"type": {
|
|
59
|
-
"text": "void"
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
"parameters": [
|
|
63
|
-
{
|
|
64
|
-
"name": "{\n target: slot,\n }",
|
|
65
|
-
"type": {
|
|
66
|
-
"text": "Event & { target: HTMLSlotElement }"
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
]
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
"kind": "method",
|
|
73
|
-
"name": "manageChildrenSize",
|
|
74
|
-
"privacy": "private",
|
|
75
|
-
"return": {
|
|
76
|
-
"type": {
|
|
77
|
-
"text": "void"
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
"parameters": [
|
|
81
|
-
{
|
|
82
|
-
"name": "slot",
|
|
83
|
-
"type": {
|
|
84
|
-
"text": "HTMLSlotElement"
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
]
|
|
88
|
-
}
|
|
89
|
-
],
|
|
90
|
-
"attributes": [
|
|
91
|
-
{
|
|
92
|
-
"name": "vertical",
|
|
93
|
-
"type": {
|
|
94
|
-
"text": "boolean"
|
|
95
|
-
},
|
|
96
|
-
"default": "false",
|
|
97
|
-
"fieldName": "vertical"
|
|
98
|
-
}
|
|
99
|
-
],
|
|
100
|
-
"mixins": [
|
|
101
|
-
{
|
|
102
|
-
"name": "SizedMixin",
|
|
103
|
-
"package": "@spectrum-web-components/base"
|
|
104
|
-
}
|
|
105
|
-
],
|
|
106
|
-
"superclass": {
|
|
107
|
-
"name": "SpectrumElement",
|
|
108
|
-
"package": "@spectrum-web-components/base"
|
|
109
|
-
},
|
|
110
|
-
"tagName": "sp-button-group",
|
|
111
|
-
"customElement": true
|
|
112
|
-
}
|
|
113
|
-
],
|
|
114
|
-
"exports": [
|
|
115
|
-
{
|
|
116
|
-
"kind": "js",
|
|
117
|
-
"name": "ButtonGroup",
|
|
118
|
-
"declaration": {
|
|
119
|
-
"name": "ButtonGroup",
|
|
120
|
-
"module": "src/ButtonGroup.js"
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
]
|
|
124
|
-
}
|
|
125
|
-
]
|
|
126
|
-
}
|
package/sp-button-group.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 { ButtonGroup } from './src/ButtonGroup.js';
|
|
13
|
-
declare global {
|
|
14
|
-
interface HTMLElementTagNameMap {
|
|
15
|
-
'sp-button-group': ButtonGroup;
|
|
16
|
-
}
|
|
17
|
-
}
|
package/sp-button-group.dev.js
DELETED
package/sp-button-group.js
DELETED