@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
|
@@ -128,307 +128,136 @@
|
|
|
128
128
|
}
|
|
129
129
|
],
|
|
130
130
|
"options": {
|
|
131
|
-
"label": {
|
|
131
|
+
"label": {
|
|
132
|
+
"type": "string"
|
|
133
|
+
},
|
|
132
134
|
"labelPosition": {
|
|
133
135
|
"type": "string",
|
|
134
136
|
"default": "top",
|
|
135
|
-
"values": [
|
|
137
|
+
"values": [
|
|
138
|
+
{
|
|
139
|
+
"value": "top"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"value": "side"
|
|
143
|
+
}
|
|
144
|
+
]
|
|
145
|
+
},
|
|
146
|
+
"hideLabel": {
|
|
147
|
+
"type": "boolean",
|
|
148
|
+
"default": false
|
|
149
|
+
},
|
|
150
|
+
"value": {
|
|
151
|
+
"type": "string",
|
|
152
|
+
"description": "from minValue to maxValue"
|
|
153
|
+
},
|
|
154
|
+
"width": {
|
|
155
|
+
"type": "number"
|
|
136
156
|
},
|
|
137
|
-
"hideLabel": { "type": "boolean", "default": false },
|
|
138
|
-
"value": { "type": "string", "description": "from minValue to maxValue" },
|
|
139
|
-
"width": { "type": "number" },
|
|
140
157
|
"size": {
|
|
141
158
|
"type": "string",
|
|
142
159
|
"default": "m",
|
|
143
160
|
"values": [
|
|
144
|
-
{
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
{
|
|
161
|
+
{
|
|
162
|
+
"value": "s"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"value": "m"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"value": "l"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"value": "xl"
|
|
172
|
+
}
|
|
148
173
|
]
|
|
149
174
|
},
|
|
150
175
|
"necessityIndicator": {
|
|
151
176
|
"type": "string",
|
|
152
177
|
"default": "icon",
|
|
153
|
-
"values": [
|
|
178
|
+
"values": [
|
|
179
|
+
{
|
|
180
|
+
"value": "text"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"value": "icon"
|
|
184
|
+
}
|
|
185
|
+
]
|
|
154
186
|
},
|
|
155
|
-
"isRequired": {
|
|
156
|
-
"hasCharacterCount": { "type": "boolean", "default": false },
|
|
157
|
-
"showValidIcon": { "type": "boolean", "default": false },
|
|
158
|
-
"isError": {
|
|
187
|
+
"isRequired": {
|
|
159
188
|
"type": "boolean",
|
|
160
|
-
"default": false
|
|
161
|
-
"description": "If there is an error, this property overrides show valid icon."
|
|
189
|
+
"default": false
|
|
162
190
|
},
|
|
163
|
-
"
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
},
|
|
167
|
-
"states": [
|
|
168
|
-
{ "name": "hover", "trigger": "interaction" },
|
|
169
|
-
{ "name": "focus-+-hover", "trigger": "prop" },
|
|
170
|
-
{ "name": "focus-+-not-hover", "trigger": "prop" },
|
|
171
|
-
{ "name": "keyboard-focus", "trigger": "interaction" }
|
|
172
|
-
],
|
|
173
|
-
"lifecycle": { "introduced": "1.0.0-draft" },
|
|
174
|
-
"tokenBindings": [
|
|
175
|
-
{ "token": "field-default-width-small", "context": "Width (default)" },
|
|
176
|
-
{ "token": "field-default-width-medium", "context": "Width (default)" },
|
|
177
|
-
{ "token": "field-default-width-large", "context": "Width (default)" },
|
|
178
|
-
{
|
|
179
|
-
"token": "field-default-width-extra-large",
|
|
180
|
-
"context": "Width (default)"
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
"token": "text-field-minimum-width-multiplier",
|
|
184
|
-
"context": "Width (minimum)"
|
|
185
|
-
},
|
|
186
|
-
{ "token": "component-height-75", "context": "Height" },
|
|
187
|
-
{ "token": "component-height-100", "context": "Height" },
|
|
188
|
-
{ "token": "component-height-200", "context": "Height" },
|
|
189
|
-
{ "token": "component-height-300", "context": "Height" },
|
|
190
|
-
{ "token": "corner-radius-medium-size-small", "context": "Rounding" },
|
|
191
|
-
{ "token": "corner-radius-medium-size-medium", "context": "Rounding" },
|
|
192
|
-
{ "token": "corner-radius-medium-size-large", "context": "Rounding" },
|
|
193
|
-
{ "token": "corner-radius-medium-size-extra-large", "context": "Rounding" },
|
|
194
|
-
{
|
|
195
|
-
"token": "component-edge-to-text-75",
|
|
196
|
-
"context": "Spacing (start/end edge to value)"
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
"token": "component-edge-to-text-100",
|
|
200
|
-
"context": "Spacing (start/end edge to value)"
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
"token": "component-edge-to-text-200",
|
|
204
|
-
"context": "Spacing (start/end edge to value)"
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
"token": "component-edge-to-text-300",
|
|
208
|
-
"context": "Spacing (start/end edge to value)"
|
|
209
|
-
},
|
|
210
|
-
{ "token": "workflow-icon-size-75", "context": "Prefix min-width" },
|
|
211
|
-
{ "token": "workflow-icon-size-100", "context": "Prefix min-width" },
|
|
212
|
-
{ "token": "workflow-icon-size-200", "context": "Prefix min-width" },
|
|
213
|
-
{ "token": "workflow-icon-size-300", "context": "Prefix min-width" },
|
|
214
|
-
{
|
|
215
|
-
"token": "text-to-visual-75",
|
|
216
|
-
"context": "Spacing (prefix to value/placeholder)"
|
|
217
|
-
},
|
|
218
|
-
{
|
|
219
|
-
"token": "text-to-visual-100",
|
|
220
|
-
"context": "Spacing (prefix to value/placeholder)"
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
"token": "text-to-visual-200",
|
|
224
|
-
"context": "Spacing (prefix to value/placeholder)"
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
"token": "text-to-visual-300",
|
|
228
|
-
"context": "Spacing (prefix to value/placeholder)"
|
|
229
|
-
},
|
|
230
|
-
{ "token": "border-width-200", "context": "Border" },
|
|
231
|
-
{ "token": "focus-indicator-thickness", "context": "Focus indicator" },
|
|
232
|
-
{
|
|
233
|
-
"token": "component-top-to-workflow-icon-75",
|
|
234
|
-
"context": "Spacing (top/bottom edge to alert icon)"
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
"token": "component-top-to-workflow-icon-100",
|
|
238
|
-
"context": "Spacing (top/bottom edge to alert icon)"
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
"token": "component-top-to-workflow-icon-200",
|
|
242
|
-
"context": "Spacing (top/bottom edge to alert icon)"
|
|
243
|
-
},
|
|
244
|
-
{
|
|
245
|
-
"token": "component-top-to-workflow-icon-300",
|
|
246
|
-
"context": "Spacing (top/bottom edge to alert icon)"
|
|
247
|
-
},
|
|
248
|
-
{
|
|
249
|
-
"token": "field-edge-to-alert-icon-small",
|
|
250
|
-
"context": "Spacing (alert icon to end edge)"
|
|
251
|
-
},
|
|
252
|
-
{
|
|
253
|
-
"token": "field-edge-to-alert-icon-medium",
|
|
254
|
-
"context": "Spacing (alert icon to end edge)"
|
|
255
|
-
},
|
|
256
|
-
{
|
|
257
|
-
"token": "field-edge-to-alert-icon-large",
|
|
258
|
-
"context": "Spacing (alert icon to end edge)"
|
|
259
|
-
},
|
|
260
|
-
{
|
|
261
|
-
"token": "field-edge-to-alert-icon-extra-large",
|
|
262
|
-
"context": "Spacing (alert icon to end edge)"
|
|
263
|
-
},
|
|
264
|
-
{ "token": "checkmark-icon-size-75", "context": "Checkmark UI icon asset" },
|
|
265
|
-
{
|
|
266
|
-
"token": "checkmark-icon-size-100",
|
|
267
|
-
"context": "Checkmark UI icon asset"
|
|
268
|
-
},
|
|
269
|
-
{
|
|
270
|
-
"token": "checkmark-icon-size-200",
|
|
271
|
-
"context": "Checkmark UI icon asset"
|
|
272
|
-
},
|
|
273
|
-
{
|
|
274
|
-
"token": "checkmark-icon-size-300",
|
|
275
|
-
"context": "Checkmark UI icon asset"
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
"token": "field-top-to-validation-icon-small",
|
|
279
|
-
"context": "Spacing (top/bottom edge to validation icon)"
|
|
280
|
-
},
|
|
281
|
-
{
|
|
282
|
-
"token": "field-top-to-validation-icon-medium",
|
|
283
|
-
"context": "Spacing (top/bottom edge to validation icon)"
|
|
284
|
-
},
|
|
285
|
-
{
|
|
286
|
-
"token": "field-top-to-validation-icon-large",
|
|
287
|
-
"context": "Spacing (top/bottom edge to validation icon)"
|
|
288
|
-
},
|
|
289
|
-
{
|
|
290
|
-
"token": "field-top-to-validation-icon-extra-large",
|
|
291
|
-
"context": "Spacing (top/bottom edge to validation icon)"
|
|
292
|
-
},
|
|
293
|
-
{
|
|
294
|
-
"token": "field-edge-to-validation-icon-small",
|
|
295
|
-
"context": "Spacing (validation icon to end edge)"
|
|
296
|
-
},
|
|
297
|
-
{
|
|
298
|
-
"token": "field-edge-to-validation-icon-medium",
|
|
299
|
-
"context": "Spacing (validation icon to end edge)"
|
|
300
|
-
},
|
|
301
|
-
{
|
|
302
|
-
"token": "field-edge-to-validation-icon-large",
|
|
303
|
-
"context": "Spacing (validation icon to end edge)"
|
|
304
|
-
},
|
|
305
|
-
{
|
|
306
|
-
"token": "field-edge-to-validation-icon-extra-large",
|
|
307
|
-
"context": "Spacing (validation icon to end edge)"
|
|
308
|
-
},
|
|
309
|
-
{
|
|
310
|
-
"token": "field-label-to-component",
|
|
311
|
-
"context": "Spacing (field label to text field)"
|
|
312
|
-
},
|
|
313
|
-
{
|
|
314
|
-
"token": "spacing-200",
|
|
315
|
-
"context": "Spacing (character count to field label)"
|
|
316
|
-
},
|
|
317
|
-
{
|
|
318
|
-
"token": "component-bottom-to-text-75",
|
|
319
|
-
"context": "Spacing (character count to field)"
|
|
320
|
-
},
|
|
321
|
-
{
|
|
322
|
-
"token": "component-bottom-to-text-100",
|
|
323
|
-
"context": "Spacing (character count to field)"
|
|
324
|
-
},
|
|
325
|
-
{
|
|
326
|
-
"token": "component-bottom-to-text-200",
|
|
327
|
-
"context": "Spacing (character count to field)"
|
|
328
|
-
},
|
|
329
|
-
{
|
|
330
|
-
"token": "component-bottom-to-text-300",
|
|
331
|
-
"context": "Spacing (character count to field)"
|
|
332
|
-
},
|
|
333
|
-
{
|
|
334
|
-
"token": "side-label-character-count-to-field",
|
|
335
|
-
"context": "Spacing (side label, field to character count)"
|
|
336
|
-
},
|
|
337
|
-
{
|
|
338
|
-
"token": "help-text-to-component",
|
|
339
|
-
"context": "Spacing (text field to help text)"
|
|
340
|
-
},
|
|
341
|
-
{ "token": "gray-25", "context": "Background and border" },
|
|
342
|
-
{ "token": "gray-300", "context": "Background and border" },
|
|
343
|
-
{ "token": "gray-400", "context": "Background and border" },
|
|
344
|
-
{ "token": "gray-900", "context": "Background and border" },
|
|
345
|
-
{ "token": "gray-800", "context": "Background and border" },
|
|
346
|
-
{
|
|
347
|
-
"token": "neutral-subdued-content-color-default",
|
|
348
|
-
"context": "Background and border"
|
|
349
|
-
},
|
|
350
|
-
{ "token": "negative-border-color-default", "context": "Border (error)" },
|
|
351
|
-
{ "token": "negative-border-color-hover", "context": "Border (error)" },
|
|
352
|
-
{
|
|
353
|
-
"token": "negative-border-color-focus-hover",
|
|
354
|
-
"context": "Border (error)"
|
|
191
|
+
"hasCharacterCount": {
|
|
192
|
+
"type": "boolean",
|
|
193
|
+
"default": false
|
|
355
194
|
},
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
{ "token": "neutral-content-color-hover", "context": "Value" },
|
|
360
|
-
{ "token": "neutral-content-color-focus-hover", "context": "Value" },
|
|
361
|
-
{ "token": "neutral-content-color-focus", "context": "Value" },
|
|
362
|
-
{ "token": "neutral-content-color-key-focus", "context": "Value" },
|
|
363
|
-
{ "token": "negative-visual-color", "context": "Alert icon" },
|
|
364
|
-
{ "token": "positive-visual-color", "context": "Positive icon" },
|
|
365
|
-
{ "token": "disabled-border-color", "context": "Disabled" },
|
|
366
|
-
{ "token": "disabled-content-color", "context": "Disabled" },
|
|
367
|
-
{ "token": "focus-indicator-color", "context": "Focus ring" },
|
|
368
|
-
{ "token": "gray-600", "context": "Leading icon" },
|
|
369
|
-
{ "token": "default-font-family", "context": "Value" },
|
|
370
|
-
{ "token": "regular-font-weight", "context": "Value" },
|
|
371
|
-
{ "token": "default-font-style", "context": "Value" },
|
|
372
|
-
{ "token": "component-s-regular", "context": "Value" },
|
|
373
|
-
{ "token": "component-m-regular", "context": "Value" },
|
|
374
|
-
{ "token": "component-l-regular", "context": "Value" },
|
|
375
|
-
{ "token": "component-xl-regular", "context": "Value" },
|
|
376
|
-
{ "token": "line-height-font-size-75", "context": "Value" },
|
|
377
|
-
{ "token": "line-height-font-size-100", "context": "Value" },
|
|
378
|
-
{ "token": "line-height-font-size-200", "context": "Value" },
|
|
379
|
-
{ "token": "line-height-font-size-300", "context": "Value" },
|
|
380
|
-
{ "token": "cjk-line-height-100", "context": "Value" },
|
|
381
|
-
{ "token": "medium-font-weight", "context": "Prefix" },
|
|
382
|
-
{ "token": "component-s-medium", "context": "Prefix" },
|
|
383
|
-
{ "token": "component-m-medium", "context": "Prefix" },
|
|
384
|
-
{ "token": "component-l-medium", "context": "Prefix" },
|
|
385
|
-
{ "token": "component-xl-medium", "context": "Prefix" },
|
|
386
|
-
{
|
|
387
|
-
"token": "component-padding-vertical-200",
|
|
388
|
-
"context": "Spacing (top/bottom edge to text)"
|
|
195
|
+
"showValidIcon": {
|
|
196
|
+
"type": "boolean",
|
|
197
|
+
"default": false
|
|
389
198
|
},
|
|
390
|
-
{
|
|
391
|
-
"
|
|
392
|
-
"
|
|
199
|
+
"isError": {
|
|
200
|
+
"type": "boolean",
|
|
201
|
+
"default": false,
|
|
202
|
+
"description": "If there is an error, this property overrides show valid icon."
|
|
393
203
|
},
|
|
394
|
-
{
|
|
395
|
-
"
|
|
396
|
-
"
|
|
204
|
+
"isDisabled": {
|
|
205
|
+
"type": "boolean",
|
|
206
|
+
"default": false
|
|
397
207
|
},
|
|
398
|
-
{
|
|
399
|
-
"
|
|
400
|
-
"context": "Spacing (top/bottom edge to text)"
|
|
208
|
+
"helpText": {
|
|
209
|
+
"type": "string"
|
|
401
210
|
},
|
|
211
|
+
"errorMessage": {
|
|
212
|
+
"type": "string"
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
"states": [
|
|
402
216
|
{
|
|
403
|
-
"
|
|
404
|
-
"
|
|
217
|
+
"name": "hover",
|
|
218
|
+
"trigger": "interaction"
|
|
405
219
|
},
|
|
406
220
|
{
|
|
407
|
-
"
|
|
408
|
-
"
|
|
221
|
+
"name": "focus-+-hover",
|
|
222
|
+
"trigger": "prop"
|
|
409
223
|
},
|
|
410
224
|
{
|
|
411
|
-
"
|
|
412
|
-
"
|
|
225
|
+
"name": "focus-+-not-hover",
|
|
226
|
+
"trigger": "prop"
|
|
413
227
|
},
|
|
414
228
|
{
|
|
415
|
-
"
|
|
416
|
-
"
|
|
229
|
+
"name": "keyboard-focus",
|
|
230
|
+
"trigger": "interaction"
|
|
417
231
|
}
|
|
418
232
|
],
|
|
233
|
+
"lifecycle": {
|
|
234
|
+
"introduced": "1.0.0-draft"
|
|
235
|
+
},
|
|
419
236
|
"accessibility": {
|
|
420
237
|
"role": "textbox",
|
|
421
238
|
"intents": ["input"],
|
|
422
239
|
"focusable": true,
|
|
423
240
|
"wcag": [
|
|
424
|
-
{
|
|
241
|
+
{
|
|
242
|
+
"criterion": "1.3.1",
|
|
243
|
+
"level": "A",
|
|
244
|
+
"title": "Info and Relationships"
|
|
245
|
+
},
|
|
425
246
|
{
|
|
426
247
|
"criterion": "1.3.5",
|
|
427
248
|
"level": "AA",
|
|
428
249
|
"title": "Identify Input Purpose"
|
|
429
250
|
},
|
|
430
|
-
{
|
|
431
|
-
|
|
251
|
+
{
|
|
252
|
+
"criterion": "2.1.1",
|
|
253
|
+
"level": "A",
|
|
254
|
+
"title": "Keyboard"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"criterion": "4.1.2",
|
|
258
|
+
"level": "A",
|
|
259
|
+
"title": "Name, Role, Value"
|
|
260
|
+
}
|
|
432
261
|
]
|
|
433
262
|
}
|
|
434
263
|
}
|
|
@@ -55,53 +55,55 @@
|
|
|
55
55
|
"size": {
|
|
56
56
|
"type": "number",
|
|
57
57
|
"values": [
|
|
58
|
-
{
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
{
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
{
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
{
|
|
68
|
-
|
|
69
|
-
|
|
58
|
+
{
|
|
59
|
+
"value": 50
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"value": 75
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"value": 100
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"value": 200
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"value": 300
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"value": 400
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"value": 500
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"value": 600
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"value": 700
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"value": 800
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"value": 900
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"value": 1000
|
|
93
|
+
}
|
|
70
94
|
]
|
|
71
95
|
}
|
|
72
96
|
},
|
|
73
|
-
"states": [
|
|
74
|
-
"lifecycle": { "introduced": "1.0.0-draft" },
|
|
75
|
-
"tokenBindings": [
|
|
76
|
-
{ "token": "thumbnail-size-50", "context": "Size" },
|
|
77
|
-
{ "token": "thumbnail-size-75", "context": "Size" },
|
|
78
|
-
{ "token": "thumbnail-size-100", "context": "Size" },
|
|
79
|
-
{ "token": "thumbnail-size-200", "context": "Size" },
|
|
80
|
-
{ "token": "thumbnail-size-300", "context": "Size" },
|
|
81
|
-
{ "token": "thumbnail-size-400", "context": "Size" },
|
|
82
|
-
{ "token": "thumbnail-size-500", "context": "Size" },
|
|
83
|
-
{ "token": "thumbnail-size-600", "context": "Size" },
|
|
84
|
-
{ "token": "thumbnail-size-700", "context": "Size" },
|
|
85
|
-
{ "token": "thumbnail-size-800", "context": "Size" },
|
|
86
|
-
{ "token": "thumbnail-size-900", "context": "Size" },
|
|
87
|
-
{ "token": "thumbnail-size-1000", "context": "Size" },
|
|
88
|
-
{ "token": "thumbnail-corner-radius", "context": "Rounding" },
|
|
97
|
+
"states": [
|
|
89
98
|
{
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
}
|
|
93
|
-
{ "token": "border-width-100", "context": "Border" },
|
|
94
|
-
{ "token": "thumbnail-border-color", "context": "Border " },
|
|
95
|
-
{ "token": "thumbnail-border-opacity", "context": "Border " },
|
|
96
|
-
{
|
|
97
|
-
"token": "opacity-checkerboard-square-light",
|
|
98
|
-
"context": "Checkerboard Colors "
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
"token": "opacity-checkerboard-square-dark",
|
|
102
|
-
"context": "Checkerboard Colors "
|
|
103
|
-
},
|
|
104
|
-
{ "token": "thumbnail-opacity-disabled", "context": "Disabled" }
|
|
99
|
+
"name": "disabled",
|
|
100
|
+
"trigger": "prop"
|
|
101
|
+
}
|
|
105
102
|
],
|
|
106
|
-
"
|
|
103
|
+
"lifecycle": {
|
|
104
|
+
"introduced": "1.0.0-draft"
|
|
105
|
+
},
|
|
106
|
+
"accessibility": {
|
|
107
|
+
"focusable": false
|
|
108
|
+
}
|
|
107
109
|
}
|
package/components/title.json
CHANGED
|
@@ -47,24 +47,6 @@
|
|
|
47
47
|
"lifecycle": {
|
|
48
48
|
"introduced": "1.0.0-draft"
|
|
49
49
|
},
|
|
50
|
-
"tokenBindings": [
|
|
51
|
-
{
|
|
52
|
-
"token": "letter-spacing",
|
|
53
|
-
"context": "Title-XXXL"
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
"token": "title-margin-top-multiplier",
|
|
57
|
-
"context": "Margins"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"token": "title-margin-bottom-multiplier",
|
|
61
|
-
"context": "Margins"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"token": "title-color",
|
|
65
|
-
"context": "Color"
|
|
66
|
-
}
|
|
67
|
-
],
|
|
68
50
|
"accessibility": {
|
|
69
51
|
"focusable": false
|
|
70
52
|
}
|
package/components/toast.json
CHANGED
|
@@ -88,83 +88,49 @@
|
|
|
88
88
|
}
|
|
89
89
|
],
|
|
90
90
|
"options": {
|
|
91
|
-
"text": {
|
|
91
|
+
"text": {
|
|
92
|
+
"type": "string"
|
|
93
|
+
},
|
|
92
94
|
"variant": {
|
|
93
95
|
"type": "string",
|
|
94
96
|
"default": "neutral",
|
|
95
97
|
"values": [
|
|
96
|
-
{
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
{
|
|
98
|
+
{
|
|
99
|
+
"value": "neutral"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"value": "informative"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"value": "positive"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"value": "negative"
|
|
109
|
+
}
|
|
100
110
|
]
|
|
101
111
|
},
|
|
102
112
|
"actionLabel": {
|
|
103
113
|
"type": "string",
|
|
104
114
|
"description": "If undefined, this button does not appear."
|
|
105
115
|
},
|
|
106
|
-
"isAutoDismissible": {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
"tokenBindings": [
|
|
110
|
-
{ "token": "toast-height", "context": "Height" },
|
|
111
|
-
{ "token": "toast-maximum-width", "context": "Width (maximum)" },
|
|
112
|
-
{ "token": "corner-radius-800", "context": "Rounding" },
|
|
113
|
-
{ "token": "workflow-icon-size-100", "context": "Icon" },
|
|
114
|
-
{ "token": "text-to-visual-300", "context": "Spacing (icon to text)" },
|
|
115
|
-
{
|
|
116
|
-
"token": "spacing-400",
|
|
117
|
-
"context": "Spacing (text to button, horizontal)"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"token": "spacing-300",
|
|
121
|
-
"context": "Spacing (start edge to text and icon)"
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
"token": "spacing-200",
|
|
125
|
-
"context": "Spacing (button to close button, horizontal)"
|
|
126
|
-
},
|
|
127
|
-
{ "token": "spacing-100", "context": "Spacing (close button to end edge)" },
|
|
128
|
-
{
|
|
129
|
-
"token": "toast-top-to-workflow-icon",
|
|
130
|
-
"context": "18px (desktop), 20px (mobile)"
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
"token": "toast-top-to-text",
|
|
134
|
-
"context": "18px (desktop), 20px (mobile)"
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
"token": "toast-bottom-to-text",
|
|
138
|
-
"context": "20px (desktop), 22px (mobile)"
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
"token": "neutral-subdued-background-color-default",
|
|
142
|
-
"context": "Background"
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
"token": "informative-background-color-default",
|
|
146
|
-
"context": "Background"
|
|
147
|
-
},
|
|
148
|
-
{ "token": "positive-background-color-default", "context": "Background" },
|
|
149
|
-
{ "token": "negative-background-color-default", "context": "Background" },
|
|
150
|
-
{ "token": "white", "context": "Text and icon" },
|
|
151
|
-
{ "token": "default-font-family", "context": "Value" },
|
|
152
|
-
{ "token": "regular-font-weight", "context": "Value" },
|
|
153
|
-
{ "token": "default-font-style", "context": "Value" },
|
|
154
|
-
{ "token": "font-size-100", "context": "Value" },
|
|
155
|
-
{ "token": "line-height-100", "context": "Value" },
|
|
156
|
-
{ "token": "cjk-line-height-100", "context": "Value" },
|
|
157
|
-
{
|
|
158
|
-
"token": "neutral-background-color-default",
|
|
159
|
-
"context": "Toast token changes (Jan 2025)"
|
|
116
|
+
"isAutoDismissible": {
|
|
117
|
+
"type": "boolean",
|
|
118
|
+
"default": false
|
|
160
119
|
}
|
|
161
|
-
|
|
120
|
+
},
|
|
121
|
+
"lifecycle": {
|
|
122
|
+
"introduced": "1.0.0-draft"
|
|
123
|
+
},
|
|
162
124
|
"accessibility": {
|
|
163
125
|
"intents": ["dismiss"],
|
|
164
126
|
"focusable": true,
|
|
165
127
|
"keyboardIntents": ["dismiss"],
|
|
166
128
|
"wcag": [
|
|
167
|
-
{
|
|
129
|
+
{
|
|
130
|
+
"criterion": "4.1.3",
|
|
131
|
+
"level": "AA",
|
|
132
|
+
"title": "Status Messages"
|
|
133
|
+
}
|
|
168
134
|
]
|
|
169
135
|
}
|
|
170
136
|
}
|