@adobe/spectrum-design-data 2.0.0 → 2.1.0
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/components/accordion.json +49 -295
- package/components/action-bar.json +16 -119
- package/components/action-button.json +69 -302
- package/components/action-group.json +74 -20
- package/components/alert-banner.json +27 -47
- package/components/alert-dialog.json +38 -40
- package/components/avatar-group.json +28 -54
- package/components/avatar.json +92 -59
- package/components/badge.json +121 -370
- package/components/breadcrumbs.json +53 -159
- package/components/button-group.json +40 -13
- package/components/button.json +88 -231
- package/components/cards.json +33 -262
- package/components/checkbox-group.json +58 -13
- package/components/checkbox.json +53 -156
- package/components/close-button.json +47 -76
- package/components/coach-indicator.json +44 -31
- package/components/coach-mark.json +19 -43
- package/components/color-area.json +64 -26
- package/components/color-handle.json +35 -27
- package/components/color-loupe.json +6 -17
- package/components/color-slider.json +80 -35
- package/components/color-wheel.json +51 -25
- package/components/combo-box.json +96 -242
- package/components/contextual-help.json +106 -59
- package/components/date-picker.json +59 -171
- package/components/divider.json +25 -17
- package/components/drop-zone.json +28 -105
- package/components/field-label.json +45 -103
- package/components/help-text.json +29 -97
- package/components/illustrated-message.json +25 -74
- package/components/in-field-progress-circle.json +0 -54
- package/components/in-line-alert.json +39 -130
- package/components/link.json +40 -58
- package/components/list-view.json +31 -176
- package/components/menu.json +105 -339
- package/components/meter.json +52 -78
- package/components/number-field.json +72 -239
- package/components/opacity-checkerboard.json +0 -18
- package/components/picker.json +95 -275
- package/components/popover.json +88 -45
- package/components/progress-bar.json +63 -78
- package/components/progress-circle.json +36 -33
- package/components/radio-button.json +36 -145
- package/components/radio-group.json +74 -18
- package/components/rating.json +33 -48
- package/components/search-field.json +64 -133
- package/components/segmented-control.json +37 -86
- package/components/select-box.json +52 -100
- package/components/side-navigation.json +32 -164
- package/components/slider.json +90 -182
- package/components/standard-dialog.json +37 -43
- package/components/status-light.json +92 -134
- package/components/steplist.json +23 -113
- package/components/swatch-group.json +50 -22
- package/components/swatch.json +62 -70
- package/components/switch.json +51 -143
- package/components/table.json +53 -216
- package/components/tabs.json +29 -84
- package/components/tag-field.json +53 -85
- package/components/tag-group.json +36 -18
- package/components/tag.json +43 -206
- package/components/takeover-dialog.json +30 -20
- package/components/text-area.json +114 -247
- package/components/text-field.json +90 -261
- package/components/thumbnail.json +46 -44
- package/components/title.json +0 -18
- package/components/toast.json +27 -61
- package/components/tooltip.json +36 -52
- package/components/tree-view.json +86 -197
- package/package.json +2 -2
- package/tokens/color-component.tokens.json +1 -1212
- package/tokens/color-palette.tokens.json +0 -33
- package/tokens/layout-component.tokens.json +833 -24074
- package/tokens/layout.tokens.json +0 -597
- package/tokens/typography.tokens.json +559 -3318
package/components/cards.json
CHANGED
|
@@ -73,134 +73,31 @@
|
|
|
73
73
|
"default": "asset",
|
|
74
74
|
"description": "Determines which card layout variant is used.",
|
|
75
75
|
"values": [
|
|
76
|
-
{
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
{
|
|
80
|
-
|
|
81
|
-
|
|
76
|
+
{
|
|
77
|
+
"value": "asset"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"value": "collection"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"value": "flex"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"value": "gallery"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"value": "horizontal"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"value": "product"
|
|
93
|
+
}
|
|
82
94
|
]
|
|
83
95
|
}
|
|
84
96
|
},
|
|
85
|
-
"lifecycle": {
|
|
97
|
+
"lifecycle": {
|
|
98
|
+
"introduced": "1.0.0-draft"
|
|
99
|
+
},
|
|
86
100
|
"tokenBindings": [
|
|
87
|
-
{ "token": "card-minimum-width-extra-small", "context": "Width (minimum)" },
|
|
88
|
-
{ "token": "card-minimum-width-small", "context": "Width (minimum)" },
|
|
89
|
-
{ "token": "card-minimum-width-medium", "context": "Width (minimum)" },
|
|
90
|
-
{ "token": "card-minimum-width-large", "context": "Width (minimum)" },
|
|
91
|
-
{ "token": "card-minimum-width-extra-large", "context": "Width (minimum)" },
|
|
92
|
-
{ "token": "card-default-width-extra-small", "context": "Width (default)" },
|
|
93
|
-
{ "token": "card-default-width-small", "context": "Width (default)" },
|
|
94
|
-
{ "token": "card-default-width-medium", "context": "Width (default)" },
|
|
95
|
-
{ "token": "card-default-width-large", "context": "Width (default)" },
|
|
96
|
-
{ "token": "card-default-width-extra-large", "context": "Width (default)" },
|
|
97
|
-
{ "token": "card-maximum-width-extra-small", "context": "Width (maximum)" },
|
|
98
|
-
{ "token": "card-maximum-width-small", "context": "Width (maximum)" },
|
|
99
|
-
{ "token": "card-maximum-width-medium", "context": "Width (maximum)" },
|
|
100
|
-
{ "token": "card-maximum-width-large", "context": "Width (maximum)" },
|
|
101
|
-
{ "token": "card-maximum-width-extra-large", "context": "Width (maximum)" },
|
|
102
|
-
{ "token": "corner-radius-medium-default", "context": "Rounding" },
|
|
103
|
-
{ "token": "corner-radius-large-default", "context": "Rounding" },
|
|
104
|
-
{
|
|
105
|
-
"token": "card-edge-to-content-compact-extra-small",
|
|
106
|
-
"context": "Spacing (top/side/bottom edge to content, extra small)"
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
"token": "card-edge-to-content-default-extra-small",
|
|
110
|
-
"context": "Spacing (top/side/bottom edge to content, extra small)"
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
"token": "card-edge-to-content-spacious-extra-small",
|
|
114
|
-
"context": "Spacing (top/side/bottom edge to content, extra small)"
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"token": "card-edge-to-content-compact-small",
|
|
118
|
-
"context": "Spacing (top/side/bottom edge to content, small)"
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
"token": "card-edge-to-content-default-small",
|
|
122
|
-
"context": "Spacing (top/side/bottom edge to content, small)"
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"token": "card-edge-to-content-spacious-small",
|
|
126
|
-
"context": "Spacing (top/side/bottom edge to content, small)"
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
"token": "card-edge-to-content-compact-medium",
|
|
130
|
-
"context": "Spacing (top/side/bottom edge to content, medium)"
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
"token": "card-edge-to-content-default-medium",
|
|
134
|
-
"context": "Spacing (top/side/bottom edge to content, medium)"
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
"token": "card-edge-to-content-spacious-medium",
|
|
138
|
-
"context": "Spacing (top/side/bottom edge to content, medium)"
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
"token": "card-edge-to-content-compact-large",
|
|
142
|
-
"context": "Spacing (top/side/bottom edge to content, large)"
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
"token": "card-edge-to-content-default-large",
|
|
146
|
-
"context": "Spacing (top/side/bottom edge to content, large)"
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
"token": "card-edge-to-content-spacious-large",
|
|
150
|
-
"context": "Spacing (top/side/bottom edge to content, large)"
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
"token": "card-edge-to-content-compact-extra-large",
|
|
154
|
-
"context": "Spacing (top/side/bottom edge to content, extra large)"
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
"token": "card-edge-to-content-default-extra-large",
|
|
158
|
-
"context": "Spacing (top/side/bottom edge to content, extra large)"
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
"token": "card-edge-to-content-spacious-extra-large",
|
|
162
|
-
"context": "Spacing (top/side/bottom edge to content, extra large)"
|
|
163
|
-
},
|
|
164
|
-
{ "token": "border-width-200", "context": "Border" },
|
|
165
|
-
{ "token": "focus-indicator-thickness", "context": "Focus indicator" },
|
|
166
|
-
{ "token": "focus-indicator-gap", "context": "Focus indicator" },
|
|
167
|
-
{ "token": "background-layer-2-color", "context": "Background" },
|
|
168
|
-
{ "token": "background-layer-1-color", "context": "Background" },
|
|
169
|
-
{ "token": "card-background-well-color", "context": "Well" },
|
|
170
|
-
{ "token": "gray-100", "context": "Border" },
|
|
171
|
-
{ "token": "gray-200", "context": "Border" },
|
|
172
|
-
{ "token": "neutral-subdued-content-color-selected", "context": "Border" },
|
|
173
|
-
{ "token": "focus-indicator-color", "context": "Focus ring" },
|
|
174
|
-
{ "token": "disabled-background-color", "context": "Disabled" },
|
|
175
|
-
{ "token": "opacity-disabled", "context": "Disabled" },
|
|
176
|
-
{ "token": "card-background-loading-color", "context": "Loading" },
|
|
177
|
-
{
|
|
178
|
-
"token": "card-minimum-height-extra-small",
|
|
179
|
-
"context": "Height (minimum)"
|
|
180
|
-
},
|
|
181
|
-
{ "token": "card-minimum-height-small", "context": "Height (minimum)" },
|
|
182
|
-
{ "token": "card-minimum-height-medium", "context": "Height (minimum)" },
|
|
183
|
-
{ "token": "card-minimum-height-large", "context": "Height (minimum)" },
|
|
184
|
-
{
|
|
185
|
-
"token": "card-minimum-height-extra-large",
|
|
186
|
-
"context": "Height (minimum)"
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
"token": "card-selection-background-size-small",
|
|
190
|
-
"context": "Selection checkbox "
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
"token": "card-selection-background-size-medium",
|
|
194
|
-
"context": "Selection checkbox "
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
"token": "card-selection-background-size-large",
|
|
198
|
-
"context": "Selection checkbox "
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
"token": "card-selection-background-size-extra-large",
|
|
202
|
-
"context": "Selection checkbox "
|
|
203
|
-
},
|
|
204
101
|
{
|
|
205
102
|
"token": "card-selection-background-corner-radius-small",
|
|
206
103
|
"context": "Selection checkbox "
|
|
@@ -218,147 +115,13 @@
|
|
|
218
115
|
"context": "Selection checkbox "
|
|
219
116
|
},
|
|
220
117
|
{
|
|
221
|
-
"token": "card-
|
|
222
|
-
"context": "
|
|
223
|
-
},
|
|
224
|
-
{
|
|
225
|
-
"token": "text-to-visual-100",
|
|
226
|
-
"context": "Spacing (title to action button)"
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
"token": "card-header-to-description",
|
|
230
|
-
"context": "Spacing (header to description)"
|
|
231
|
-
},
|
|
232
|
-
{ "token": "border-width-400", "context": "Border" },
|
|
233
|
-
{ "token": "title-color", "context": "Value" },
|
|
234
|
-
{ "token": "body-color", "context": "Value" },
|
|
235
|
-
{ "token": "neutral-content-color-default", "context": "Value" },
|
|
236
|
-
{ "token": "disabled-content-color", "context": "Disabled" },
|
|
237
|
-
{ "token": "title-sans-serif-font-family", "context": "Title" },
|
|
238
|
-
{ "token": "title-sans-serif-font-weight", "context": "Title" },
|
|
239
|
-
{ "token": "title-serif-font-style", "context": "Title" },
|
|
240
|
-
{ "token": "font-size-50", "context": "Title" },
|
|
241
|
-
{ "token": "font-size-75", "context": "Title" },
|
|
242
|
-
{ "token": "font-size-100", "context": "Title" },
|
|
243
|
-
{ "token": "font-size-200", "context": "Title" },
|
|
244
|
-
{ "token": "font-size-300", "context": "Title" },
|
|
245
|
-
{ "token": "line-height-100", "context": "Title" },
|
|
246
|
-
{ "token": "cjk-line-height-100", "context": "Title" },
|
|
247
|
-
{ "token": "body-sans-serif-font-family", "context": "Body" },
|
|
248
|
-
{ "token": "body-sans-serif-font-weight", "context": "Body" },
|
|
249
|
-
{ "token": "body-serif-font-style", "context": "Body" },
|
|
250
|
-
{
|
|
251
|
-
"token": "collection-card-minimum-height-extra-small",
|
|
252
|
-
"context": "Height (minimum), default variant"
|
|
253
|
-
},
|
|
254
|
-
{
|
|
255
|
-
"token": "collection-card-minimum-height-small",
|
|
256
|
-
"context": "Height (minimum), default variant"
|
|
257
|
-
},
|
|
258
|
-
{
|
|
259
|
-
"token": "collection-card-minimum-height-medium",
|
|
260
|
-
"context": "Height (minimum), default variant"
|
|
261
|
-
},
|
|
262
|
-
{
|
|
263
|
-
"token": "collection-card-minimum-height-large",
|
|
264
|
-
"context": "Height (minimum), default variant"
|
|
265
|
-
},
|
|
266
|
-
{
|
|
267
|
-
"token": "collection-card-minimum-height-extra-large",
|
|
268
|
-
"context": "Height (minimum), default variant"
|
|
269
|
-
},
|
|
270
|
-
{
|
|
271
|
-
"token": "collection-card-minimum-height-hero-extra-small",
|
|
272
|
-
"context": "Height (minimum), hero image variant"
|
|
273
|
-
},
|
|
274
|
-
{
|
|
275
|
-
"token": "collection-card-minimum-height-hero-small",
|
|
276
|
-
"context": "Height (minimum), hero image variant"
|
|
277
|
-
},
|
|
278
|
-
{
|
|
279
|
-
"token": "collection-card-minimum-height-hero-medium",
|
|
280
|
-
"context": "Height (minimum), hero image variant"
|
|
281
|
-
},
|
|
282
|
-
{
|
|
283
|
-
"token": "collection-card-minimum-height-hero-large",
|
|
284
|
-
"context": "Height (minimum), hero image variant"
|
|
285
|
-
},
|
|
286
|
-
{
|
|
287
|
-
"token": "collection-card-minimum-height-hero-extra-large",
|
|
288
|
-
"context": "Height (minimum), hero image variant"
|
|
289
|
-
},
|
|
290
|
-
{ "token": "spacing-100", "context": "Spacing (header to footer)" },
|
|
291
|
-
{ "token": "card-header-to-footer", "context": "Spacing (text to visual)" },
|
|
292
|
-
{
|
|
293
|
-
"token": "user-card-minimum-height-small",
|
|
294
|
-
"context": "Height (minimum), default variant"
|
|
295
|
-
},
|
|
296
|
-
{
|
|
297
|
-
"token": "user-card-minimum-height-medium",
|
|
298
|
-
"context": "Height (minimum), default variant"
|
|
299
|
-
},
|
|
300
|
-
{
|
|
301
|
-
"token": "user-card-minimum-height-large",
|
|
302
|
-
"context": "Height (minimum), default variant"
|
|
303
|
-
},
|
|
304
|
-
{
|
|
305
|
-
"token": "user-card-minimum-height-extra-large",
|
|
306
|
-
"context": "Height (minimum), default variant"
|
|
307
|
-
},
|
|
308
|
-
{
|
|
309
|
-
"token": "user-card-minimum-height-title-below-small",
|
|
310
|
-
"context": "Height (minimum), title below variant"
|
|
311
|
-
},
|
|
312
|
-
{
|
|
313
|
-
"token": "user-card-minimum-height-title-below-medium",
|
|
314
|
-
"context": "Height (minimum), title below variant"
|
|
315
|
-
},
|
|
316
|
-
{
|
|
317
|
-
"token": "user-card-minimum-height-title-below-large",
|
|
318
|
-
"context": "Height (minimum), title below variant"
|
|
319
|
-
},
|
|
320
|
-
{
|
|
321
|
-
"token": "user-card-minimum-height-title-below-extra-large",
|
|
322
|
-
"context": "Height (minimum), title below variant"
|
|
323
|
-
},
|
|
324
|
-
{
|
|
325
|
-
"token": "spacing-100",
|
|
326
|
-
"context": "Spacing (thumbnail to title)"
|
|
118
|
+
"token": "card-header-to-footer",
|
|
119
|
+
"context": "Spacing (text to visual)"
|
|
327
120
|
},
|
|
328
121
|
{
|
|
329
122
|
"token": "card-title-to-description",
|
|
330
123
|
"context": "Spacing (title to description)"
|
|
331
124
|
},
|
|
332
|
-
{
|
|
333
|
-
"token": "card-description-to-footer",
|
|
334
|
-
"context": "Spacing (description to footer)"
|
|
335
|
-
},
|
|
336
|
-
{ "token": "thumbnail-size-100", "context": "Components" },
|
|
337
|
-
{ "token": "thumbnail-size-300", "context": "Components" },
|
|
338
|
-
{ "token": "thumbnail-size-500", "context": "Components" },
|
|
339
|
-
{ "token": "thumbnail-size-700", "context": "Components" },
|
|
340
|
-
{ "token": "thumbnail-size-900", "context": "Components" },
|
|
341
|
-
{ "token": "thumbnail-size-1000", "context": "Components" },
|
|
342
|
-
{
|
|
343
|
-
"token": "card-horizontal-edge-to-content-compact",
|
|
344
|
-
"context": "Spacing (top/side/bottom edge to content)"
|
|
345
|
-
},
|
|
346
|
-
{
|
|
347
|
-
"token": "card-horizontal-edge-to-content-default",
|
|
348
|
-
"context": "Spacing (top/side/bottom edge to content)"
|
|
349
|
-
},
|
|
350
|
-
{
|
|
351
|
-
"token": "card-horizontal-edge-to-content-spacious",
|
|
352
|
-
"context": "Spacing (top/side/bottom edge to content)"
|
|
353
|
-
},
|
|
354
|
-
{
|
|
355
|
-
"token": "border-width-100",
|
|
356
|
-
"context": "Stroke width (secondary, dark)"
|
|
357
|
-
},
|
|
358
|
-
{
|
|
359
|
-
"token": "popover-border-color",
|
|
360
|
-
"context": "Border (Secondary, Light theme)"
|
|
361
|
-
},
|
|
362
125
|
{
|
|
363
126
|
"token": "horizontal-card-edge-to-content-regular",
|
|
364
127
|
"context": "Spacing (top/side/bottom edge to content)"
|
|
@@ -369,8 +132,16 @@
|
|
|
369
132
|
"focusable": true,
|
|
370
133
|
"keyboardIntents": ["activate"],
|
|
371
134
|
"wcag": [
|
|
372
|
-
{
|
|
373
|
-
|
|
135
|
+
{
|
|
136
|
+
"criterion": "2.1.1",
|
|
137
|
+
"level": "A",
|
|
138
|
+
"title": "Keyboard"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"criterion": "4.1.2",
|
|
142
|
+
"level": "A",
|
|
143
|
+
"title": "Name, Role, Value"
|
|
144
|
+
}
|
|
374
145
|
]
|
|
375
146
|
}
|
|
376
147
|
}
|
|
@@ -48,36 +48,81 @@
|
|
|
48
48
|
}
|
|
49
49
|
],
|
|
50
50
|
"options": {
|
|
51
|
-
"label": {
|
|
51
|
+
"label": {
|
|
52
|
+
"type": "string"
|
|
53
|
+
},
|
|
52
54
|
"labelPosition": {
|
|
53
55
|
"type": "string",
|
|
54
56
|
"default": "top",
|
|
55
|
-
"values": [
|
|
57
|
+
"values": [
|
|
58
|
+
{
|
|
59
|
+
"value": "top"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"value": "side"
|
|
63
|
+
}
|
|
64
|
+
]
|
|
56
65
|
},
|
|
57
66
|
"necessityIndicator": {
|
|
58
67
|
"type": "string",
|
|
59
68
|
"default": "icon",
|
|
60
|
-
"values": [
|
|
69
|
+
"values": [
|
|
70
|
+
{
|
|
71
|
+
"value": "text"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"value": "icon"
|
|
75
|
+
}
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
"isRequired": {
|
|
79
|
+
"type": "boolean",
|
|
80
|
+
"default": false
|
|
61
81
|
},
|
|
62
|
-
"isRequired": { "type": "boolean", "default": false },
|
|
63
82
|
"orientation": {
|
|
64
83
|
"type": "string",
|
|
65
84
|
"default": "vertical",
|
|
66
|
-
"values": [
|
|
85
|
+
"values": [
|
|
86
|
+
{
|
|
87
|
+
"value": "horizontal"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"value": "vertical"
|
|
91
|
+
}
|
|
92
|
+
]
|
|
93
|
+
},
|
|
94
|
+
"isError": {
|
|
95
|
+
"type": "boolean",
|
|
96
|
+
"default": false
|
|
97
|
+
},
|
|
98
|
+
"isDisabled": {
|
|
99
|
+
"type": "boolean",
|
|
100
|
+
"default": false
|
|
67
101
|
},
|
|
68
|
-
"
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
"errorMessage": {
|
|
102
|
+
"description": {
|
|
103
|
+
"type": "string"
|
|
104
|
+
},
|
|
105
|
+
"errorMessage": {
|
|
106
|
+
"type": "string"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"lifecycle": {
|
|
110
|
+
"introduced": "1.0.0-draft"
|
|
72
111
|
},
|
|
73
|
-
"lifecycle": { "introduced": "1.0.0-draft" },
|
|
74
|
-
"tokenBindings": [],
|
|
75
112
|
"accessibility": {
|
|
76
113
|
"intents": ["choose"],
|
|
77
114
|
"focusable": false,
|
|
78
115
|
"wcag": [
|
|
79
|
-
{
|
|
80
|
-
|
|
116
|
+
{
|
|
117
|
+
"criterion": "1.3.1",
|
|
118
|
+
"level": "A",
|
|
119
|
+
"title": "Info and Relationships"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"criterion": "4.1.2",
|
|
123
|
+
"level": "A",
|
|
124
|
+
"title": "Name, Role, Value"
|
|
125
|
+
}
|
|
81
126
|
]
|
|
82
127
|
}
|
|
83
128
|
}
|
package/components/checkbox.json
CHANGED
|
@@ -88,7 +88,10 @@
|
|
|
88
88
|
"type": "string",
|
|
89
89
|
"description": "When the label is not defined, the checkbox appears as a standalone checkbox."
|
|
90
90
|
},
|
|
91
|
-
"isSelected": {
|
|
91
|
+
"isSelected": {
|
|
92
|
+
"type": "boolean",
|
|
93
|
+
"default": false
|
|
94
|
+
},
|
|
92
95
|
"isIndeterminate": {
|
|
93
96
|
"type": "boolean",
|
|
94
97
|
"default": false,
|
|
@@ -98,177 +101,71 @@
|
|
|
98
101
|
"type": "string",
|
|
99
102
|
"default": "m",
|
|
100
103
|
"values": [
|
|
101
|
-
{
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
{
|
|
104
|
+
{
|
|
105
|
+
"value": "s"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"value": "m"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"value": "l"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"value": "xl"
|
|
115
|
+
}
|
|
105
116
|
]
|
|
106
117
|
},
|
|
107
|
-
"isEmphasized": {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
},
|
|
111
|
-
"states": [
|
|
112
|
-
{ "name": "hover", "trigger": "interaction" },
|
|
113
|
-
{ "name": "down", "trigger": "interaction" },
|
|
114
|
-
{ "name": "keyboard-focus", "trigger": "interaction" }
|
|
115
|
-
],
|
|
116
|
-
"lifecycle": { "introduced": "1.0.0-draft" },
|
|
117
|
-
"tokenBindings": [
|
|
118
|
-
{ "token": "checkbox-control-size-small", "context": "S2 Control (size)" },
|
|
119
|
-
{ "token": "checkbox-control-size-medium", "context": "S2 Control (size)" },
|
|
120
|
-
{ "token": "checkbox-control-size-large", "context": "S2 Control (size)" },
|
|
121
|
-
{
|
|
122
|
-
"token": "checkbox-control-size-extra-large",
|
|
123
|
-
"context": "S2 Control (size)"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"token": "checkbox-top-to-control-small",
|
|
127
|
-
"context": "S2 Spacing (top edge to control)"
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
"token": "checkbox-top-to-control-medium",
|
|
131
|
-
"context": "S2 Spacing (top edge to control)"
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
"token": "checkbox-top-to-control-large",
|
|
135
|
-
"context": "S2 Spacing (top edge to control)"
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
"token": "checkbox-top-to-control-extra-large",
|
|
139
|
-
"context": "S2 Spacing (top edge to control)"
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
"token": "neutral-background-color-selected-default",
|
|
143
|
-
"context": "S2 Control (selected, non emphasized)"
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
"token": "neutral-background-color-selected-hover",
|
|
147
|
-
"context": "S2 Control (selected, non emphasized)"
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
"token": "neutral-background-color-selected-key-focus",
|
|
151
|
-
"context": "S2 Control (selected, non emphasized)"
|
|
152
|
-
},
|
|
153
|
-
{ "token": "component-height-75", "context": "Minimum height" },
|
|
154
|
-
{ "token": "component-height-100", "context": "Minimum height" },
|
|
155
|
-
{ "token": "component-height-200", "context": "Minimum height" },
|
|
156
|
-
{ "token": "component-height-300", "context": "Minimum height" },
|
|
157
|
-
{
|
|
158
|
-
"token": "component-size-difference-down",
|
|
159
|
-
"context": "Component size (down)"
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
"token": "component-size-width-ratio-down",
|
|
163
|
-
"context": "Component size (down)"
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
"token": "component-size-minimum-perspective-down",
|
|
167
|
-
"context": "Component size (down)"
|
|
168
|
-
},
|
|
169
|
-
{ "token": "border-width-200", "context": "Control (border)" },
|
|
170
|
-
{
|
|
171
|
-
"token": "corner-radius-small-size-small",
|
|
172
|
-
"context": "Control (rounding)"
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
"token": "corner-radius-small-size-medium",
|
|
176
|
-
"context": "Control (rounding)"
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
"token": "corner-radius-small-size-large",
|
|
180
|
-
"context": "Control (rounding)"
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
"token": "corner-radius-small-size-extra-large",
|
|
184
|
-
"context": "Control (rounding)"
|
|
185
|
-
},
|
|
186
|
-
{ "token": "text-to-control-75", "context": "Spacing (control to label)" },
|
|
187
|
-
{ "token": "text-to-control-100", "context": "Spacing (control to label)" },
|
|
188
|
-
{ "token": "text-to-control-200", "context": "Spacing (control to label)" },
|
|
189
|
-
{ "token": "text-to-control-300", "context": "Spacing (control to label)" },
|
|
190
|
-
{
|
|
191
|
-
"token": "component-top-to-text-75",
|
|
192
|
-
"context": "Spacing (top/bottom edge to label)"
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
"token": "component-top-to-text-100",
|
|
196
|
-
"context": "Spacing (top/bottom edge to label)"
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
"token": "component-top-to-text-200",
|
|
200
|
-
"context": "Spacing (top/bottom edge to label)"
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
"token": "component-top-to-text-300",
|
|
204
|
-
"context": "Spacing (top/bottom edge to label)"
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
"token": "component-bottom-to-text-75",
|
|
208
|
-
"context": "Spacing (top/bottom edge to label)"
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
"token": "component-bottom-to-text-100",
|
|
212
|
-
"context": "Spacing (top/bottom edge to label)"
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
"token": "component-bottom-to-text-200",
|
|
216
|
-
"context": "Spacing (top/bottom edge to label)"
|
|
217
|
-
},
|
|
218
|
-
{
|
|
219
|
-
"token": "component-bottom-to-text-300",
|
|
220
|
-
"context": "Spacing (top/bottom edge to label)"
|
|
221
|
-
},
|
|
222
|
-
{ "token": "focus-indicator-thickness", "context": "Focus ring" },
|
|
223
|
-
{ "token": "focus-indicator-gap", "context": "Focus ring" },
|
|
224
|
-
{
|
|
225
|
-
"token": "spacing-300",
|
|
226
|
-
"context": "Checkbox group spacing (horizontal)"
|
|
118
|
+
"isEmphasized": {
|
|
119
|
+
"type": "boolean",
|
|
120
|
+
"default": false
|
|
227
121
|
},
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
{ "token": "neutral-content-color-key-focus", "context": "Label" },
|
|
232
|
-
{ "token": "gray-25", "context": "Control" },
|
|
233
|
-
{
|
|
234
|
-
"token": "accent-content-color-default",
|
|
235
|
-
"context": "Control (selected, emphasized)"
|
|
122
|
+
"isDisabled": {
|
|
123
|
+
"type": "boolean",
|
|
124
|
+
"default": false
|
|
236
125
|
},
|
|
126
|
+
"isError": {
|
|
127
|
+
"type": "boolean",
|
|
128
|
+
"default": false
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"states": [
|
|
237
132
|
{
|
|
238
|
-
"
|
|
239
|
-
"
|
|
133
|
+
"name": "hover",
|
|
134
|
+
"trigger": "interaction"
|
|
240
135
|
},
|
|
241
136
|
{
|
|
242
|
-
"
|
|
243
|
-
"
|
|
137
|
+
"name": "down",
|
|
138
|
+
"trigger": "interaction"
|
|
244
139
|
},
|
|
245
140
|
{
|
|
246
|
-
"
|
|
247
|
-
"
|
|
248
|
-
}
|
|
249
|
-
{ "token": "disabled-content-color", "context": "Label (disabled)" },
|
|
250
|
-
{ "token": "focus-indicator-color", "context": "Focus ring" },
|
|
251
|
-
{ "token": "negative-color-900", "context": "Checkbox colors" },
|
|
252
|
-
{ "token": "negative-color-1000", "context": "Checkbox colors" },
|
|
253
|
-
{ "token": "default-font-family", "context": "Label" },
|
|
254
|
-
{ "token": "regular-font-weight", "context": "Label" },
|
|
255
|
-
{ "token": "default-font-style", "context": "Label" },
|
|
256
|
-
{ "token": "font-size-75", "context": "Label" },
|
|
257
|
-
{ "token": "font-size-100", "context": "Label" },
|
|
258
|
-
{ "token": "font-size-200", "context": "Label" },
|
|
259
|
-
{ "token": "font-size-300", "context": "Label" },
|
|
260
|
-
{ "token": "line-height-100", "context": "Label" },
|
|
261
|
-
{ "token": "cjk-line-height-100", "context": "Label" }
|
|
141
|
+
"name": "keyboard-focus",
|
|
142
|
+
"trigger": "interaction"
|
|
143
|
+
}
|
|
262
144
|
],
|
|
145
|
+
"lifecycle": {
|
|
146
|
+
"introduced": "1.0.0-draft"
|
|
147
|
+
},
|
|
263
148
|
"accessibility": {
|
|
264
149
|
"role": "checkbox",
|
|
265
150
|
"intents": ["choose"],
|
|
266
151
|
"focusable": true,
|
|
267
152
|
"keyboardIntents": ["activate"],
|
|
268
153
|
"wcag": [
|
|
269
|
-
{
|
|
270
|
-
|
|
271
|
-
|
|
154
|
+
{
|
|
155
|
+
"criterion": "1.3.1",
|
|
156
|
+
"level": "A",
|
|
157
|
+
"title": "Info and Relationships"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"criterion": "2.1.1",
|
|
161
|
+
"level": "A",
|
|
162
|
+
"title": "Keyboard"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"criterion": "4.1.2",
|
|
166
|
+
"level": "A",
|
|
167
|
+
"title": "Name, Role, Value"
|
|
168
|
+
}
|
|
272
169
|
]
|
|
273
170
|
}
|
|
274
171
|
}
|