@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/menu.json
CHANGED
|
@@ -126,41 +126,86 @@
|
|
|
126
126
|
"options": {
|
|
127
127
|
"container": {
|
|
128
128
|
"type": "string",
|
|
129
|
-
"values": [
|
|
129
|
+
"values": [
|
|
130
|
+
{
|
|
131
|
+
"value": "popover"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"value": "tray"
|
|
135
|
+
}
|
|
136
|
+
]
|
|
137
|
+
},
|
|
138
|
+
"label": {
|
|
139
|
+
"type": "string"
|
|
130
140
|
},
|
|
131
|
-
"label": { "type": "string" },
|
|
132
141
|
"icon": {
|
|
133
142
|
"$ref": "https://opensource.adobe.com/spectrum-design-data/schemas/types/workflow-icon.json",
|
|
134
143
|
"description": "Icon must be present if the label is not defined."
|
|
135
144
|
},
|
|
136
|
-
"description": {
|
|
137
|
-
|
|
145
|
+
"description": {
|
|
146
|
+
"type": "string"
|
|
147
|
+
},
|
|
148
|
+
"value": {
|
|
149
|
+
"type": "string"
|
|
150
|
+
},
|
|
138
151
|
"size": {
|
|
139
152
|
"type": "string",
|
|
140
153
|
"default": "m",
|
|
141
154
|
"values": [
|
|
142
|
-
{
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
{
|
|
155
|
+
{
|
|
156
|
+
"value": "s"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"value": "m"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"value": "l"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"value": "xl"
|
|
166
|
+
}
|
|
146
167
|
]
|
|
147
168
|
},
|
|
148
169
|
"selectionMode": {
|
|
149
170
|
"type": "string",
|
|
150
171
|
"values": [
|
|
151
|
-
{
|
|
152
|
-
|
|
153
|
-
|
|
172
|
+
{
|
|
173
|
+
"value": "single"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"value": "multiple"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"value": "no selection"
|
|
180
|
+
}
|
|
154
181
|
]
|
|
155
182
|
},
|
|
156
183
|
"selectionStyle": {
|
|
157
184
|
"type": "string",
|
|
158
|
-
"values": [
|
|
185
|
+
"values": [
|
|
186
|
+
{
|
|
187
|
+
"value": "checkbox"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"value": "switch"
|
|
191
|
+
}
|
|
192
|
+
]
|
|
193
|
+
},
|
|
194
|
+
"sectionHeader": {
|
|
195
|
+
"type": "string"
|
|
196
|
+
},
|
|
197
|
+
"isCollapsible": {
|
|
198
|
+
"type": "boolean",
|
|
199
|
+
"default": false
|
|
200
|
+
},
|
|
201
|
+
"isUnavailable": {
|
|
202
|
+
"type": "boolean",
|
|
203
|
+
"default": false
|
|
159
204
|
},
|
|
160
|
-
"
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
205
|
+
"isDisabled": {
|
|
206
|
+
"type": "boolean",
|
|
207
|
+
"default": false
|
|
208
|
+
}
|
|
164
209
|
},
|
|
165
210
|
"anatomy": [
|
|
166
211
|
{
|
|
@@ -182,13 +227,22 @@
|
|
|
182
227
|
"link-out-icon"
|
|
183
228
|
]
|
|
184
229
|
},
|
|
185
|
-
{
|
|
186
|
-
|
|
230
|
+
{
|
|
231
|
+
"name": "icon",
|
|
232
|
+
"description": "Leading icon of a menu item."
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"name": "label",
|
|
236
|
+
"description": "Primary label text of a menu item."
|
|
237
|
+
},
|
|
187
238
|
{
|
|
188
239
|
"name": "description",
|
|
189
240
|
"description": "Secondary descriptive text of a menu item."
|
|
190
241
|
},
|
|
191
|
-
{
|
|
242
|
+
{
|
|
243
|
+
"name": "value",
|
|
244
|
+
"description": "Current value display of a menu item."
|
|
245
|
+
},
|
|
192
246
|
{
|
|
193
247
|
"name": "switch",
|
|
194
248
|
"description": "Switch control for a menu item with switch selection style."
|
|
@@ -197,7 +251,10 @@
|
|
|
197
251
|
"name": "checkbox",
|
|
198
252
|
"description": "Checkbox control for a menu item with checkbox selection style."
|
|
199
253
|
},
|
|
200
|
-
{
|
|
254
|
+
{
|
|
255
|
+
"name": "thumbnail",
|
|
256
|
+
"description": "Thumbnail image of a menu item."
|
|
257
|
+
},
|
|
201
258
|
{
|
|
202
259
|
"name": "drill-in-chevron",
|
|
203
260
|
"description": "Chevron indicating a menu item opens a sub-menu."
|
|
@@ -208,333 +265,34 @@
|
|
|
208
265
|
}
|
|
209
266
|
],
|
|
210
267
|
"states": [
|
|
211
|
-
{ "name": "hover", "trigger": "interaction" },
|
|
212
|
-
{ "name": "down", "trigger": "interaction" },
|
|
213
|
-
{ "name": "keyboard-focus", "trigger": "interaction" },
|
|
214
|
-
{ "name": "default", "trigger": "prop" },
|
|
215
|
-
{ "name": "disabled", "trigger": "prop" }
|
|
216
|
-
],
|
|
217
|
-
"lifecycle": { "introduced": "1.0.0-draft" },
|
|
218
|
-
"tokenBindings": [
|
|
219
|
-
{
|
|
220
|
-
"token": "popover-submenu-to-menu-item-position",
|
|
221
|
-
"context": "Sub-menu alignment with menu item"
|
|
222
|
-
},
|
|
223
|
-
{ "token": "component-height-75", "context": "Minimum height" },
|
|
224
|
-
{ "token": "component-height-100", "context": "Minimum height" },
|
|
225
|
-
{ "token": "component-height-200", "context": "Minimum height" },
|
|
226
|
-
{ "token": "component-height-300", "context": "Minimum height" },
|
|
227
|
-
{
|
|
228
|
-
"token": "component-size-difference-down",
|
|
229
|
-
"context": "Component size (down)"
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
"token": "component-size-width-ratio-down",
|
|
233
|
-
"context": "Component size (down)"
|
|
234
|
-
},
|
|
235
|
-
{
|
|
236
|
-
"token": "component-size-minimum-perspective-down",
|
|
237
|
-
"context": "Component size (down)"
|
|
238
|
-
},
|
|
239
|
-
{ "token": "corner-radius-400", "context": "Rounding" },
|
|
240
|
-
{ "token": "corner-radius-500", "context": "Rounding" },
|
|
241
|
-
{ "token": "corner-radius-600", "context": "Rounding" },
|
|
242
|
-
{ "token": "corner-radius-700", "context": "Rounding" },
|
|
243
|
-
{
|
|
244
|
-
"token": "menu-item-section-divider-height",
|
|
245
|
-
"context": "Height (section divider)"
|
|
246
|
-
},
|
|
247
|
-
{ "token": "text-to-visual-75", "context": "Spacing (icon to label)" },
|
|
248
|
-
{ "token": "text-to-visual-100", "context": "Spacing (icon to label)" },
|
|
249
|
-
{ "token": "text-to-visual-200", "context": "Spacing (icon to label)" },
|
|
250
|
-
{ "token": "text-to-visual-300", "context": "Spacing (icon to label)" },
|
|
251
|
-
{
|
|
252
|
-
"token": "component-top-to-workflow-icon-75",
|
|
253
|
-
"context": "Spacing (top edge to icon)"
|
|
254
|
-
},
|
|
255
|
-
{
|
|
256
|
-
"token": "component-top-to-workflow-icon-100",
|
|
257
|
-
"context": "Spacing (top edge to icon)"
|
|
258
|
-
},
|
|
259
|
-
{
|
|
260
|
-
"token": "component-top-to-workflow-icon-200",
|
|
261
|
-
"context": "Spacing (top edge to icon)"
|
|
262
|
-
},
|
|
263
|
-
{
|
|
264
|
-
"token": "component-top-to-workflow-icon-300",
|
|
265
|
-
"context": "Spacing (top edge to icon)"
|
|
266
|
-
},
|
|
267
|
-
{ "token": "spacing-50", "context": "Spacing (item to item)" },
|
|
268
|
-
{
|
|
269
|
-
"token": "component-edge-to-text-75",
|
|
270
|
-
"context": "Spacing (start/end edges to content)"
|
|
271
|
-
},
|
|
272
|
-
{
|
|
273
|
-
"token": "component-edge-to-text-100",
|
|
274
|
-
"context": "Spacing (start/end edges to content)"
|
|
275
|
-
},
|
|
276
|
-
{
|
|
277
|
-
"token": "component-edge-to-text-200",
|
|
278
|
-
"context": "Spacing (start/end edges to content)"
|
|
279
|
-
},
|
|
280
|
-
{
|
|
281
|
-
"token": "component-edge-to-text-300",
|
|
282
|
-
"context": "Spacing (start/end edges to content)"
|
|
283
|
-
},
|
|
284
|
-
{
|
|
285
|
-
"token": "text-to-visual-400",
|
|
286
|
-
"context": "Spacing (thumbnail to label)"
|
|
287
|
-
},
|
|
288
|
-
{
|
|
289
|
-
"token": "menu-item-top-to-thumbnail-small",
|
|
290
|
-
"context": "Spacing (top to thumbnail)"
|
|
291
|
-
},
|
|
292
|
-
{
|
|
293
|
-
"token": "menu-item-top-to-thumbnail-medium",
|
|
294
|
-
"context": "Spacing (top to thumbnail)"
|
|
295
|
-
},
|
|
296
|
-
{
|
|
297
|
-
"token": "menu-item-top-to-thumbnail-large",
|
|
298
|
-
"context": "Spacing (top to thumbnail)"
|
|
299
|
-
},
|
|
300
|
-
{
|
|
301
|
-
"token": "menu-item-top-to-thumbnail-extra-large",
|
|
302
|
-
"context": "Spacing (top to thumbnail)"
|
|
303
|
-
},
|
|
304
|
-
{
|
|
305
|
-
"token": "component-top-to-text-75",
|
|
306
|
-
"context": "Spacing (top to to label/value)"
|
|
307
|
-
},
|
|
308
|
-
{
|
|
309
|
-
"token": "component-top-to-text-100",
|
|
310
|
-
"context": "Spacing (top to to label/value)"
|
|
311
|
-
},
|
|
312
|
-
{
|
|
313
|
-
"token": "component-top-to-text-200",
|
|
314
|
-
"context": "Spacing (top to to label/value)"
|
|
315
|
-
},
|
|
316
|
-
{
|
|
317
|
-
"token": "component-top-to-text-300",
|
|
318
|
-
"context": "Spacing (top to to label/value)"
|
|
319
|
-
},
|
|
320
|
-
{
|
|
321
|
-
"token": "menu-section-header-to-description-small",
|
|
322
|
-
"context": "Spacing (section header to description)"
|
|
323
|
-
},
|
|
324
|
-
{
|
|
325
|
-
"token": "menu-section-header-to-description-medium",
|
|
326
|
-
"context": "Spacing (section header to description)"
|
|
327
|
-
},
|
|
328
|
-
{
|
|
329
|
-
"token": "menu-section-header-to-description-large",
|
|
330
|
-
"context": "Spacing (section header to description)"
|
|
331
|
-
},
|
|
332
|
-
{
|
|
333
|
-
"token": "menu-section-header-to-description-extra-large",
|
|
334
|
-
"context": "Spacing (section header to description)"
|
|
335
|
-
},
|
|
336
|
-
{
|
|
337
|
-
"token": "menu-item-label-to-description-small",
|
|
338
|
-
"context": "Spacing (label to description)"
|
|
339
|
-
},
|
|
340
268
|
{
|
|
341
|
-
"
|
|
342
|
-
"
|
|
269
|
+
"name": "hover",
|
|
270
|
+
"trigger": "interaction"
|
|
343
271
|
},
|
|
344
272
|
{
|
|
345
|
-
"
|
|
346
|
-
"
|
|
273
|
+
"name": "down",
|
|
274
|
+
"trigger": "interaction"
|
|
347
275
|
},
|
|
348
276
|
{
|
|
349
|
-
"
|
|
350
|
-
"
|
|
277
|
+
"name": "keyboard-focus",
|
|
278
|
+
"trigger": "interaction"
|
|
351
279
|
},
|
|
352
280
|
{
|
|
353
|
-
"
|
|
354
|
-
"
|
|
281
|
+
"name": "default",
|
|
282
|
+
"trigger": "prop"
|
|
355
283
|
},
|
|
356
284
|
{
|
|
357
|
-
"
|
|
358
|
-
"
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
"token": "component-bottom-to-text-300",
|
|
366
|
-
"context": "Spacing (bottom edge to label/description)"
|
|
367
|
-
},
|
|
368
|
-
{
|
|
369
|
-
"token": "spacing-100",
|
|
370
|
-
"context": "Spacing (label area to actions/value area, minimum)"
|
|
371
|
-
},
|
|
372
|
-
{
|
|
373
|
-
"token": "menu-item-top-to-selected-icon-small",
|
|
374
|
-
"context": "Spacing (top edge to selected icon, single selection)"
|
|
375
|
-
},
|
|
376
|
-
{
|
|
377
|
-
"token": "menu-item-top-to-selected-icon-medium",
|
|
378
|
-
"context": "Spacing (top edge to selected icon, single selection)"
|
|
379
|
-
},
|
|
380
|
-
{
|
|
381
|
-
"token": "menu-item-top-to-selected-icon-large",
|
|
382
|
-
"context": "Spacing (top edge to selected icon, single selection)"
|
|
383
|
-
},
|
|
384
|
-
{
|
|
385
|
-
"token": "menu-item-top-to-selected-icon-extra-large",
|
|
386
|
-
"context": "Spacing (top edge to selected icon, single selection)"
|
|
387
|
-
},
|
|
388
|
-
{
|
|
389
|
-
"token": "text-to-control-75",
|
|
390
|
-
"context": "Spacing (checkmark icon/checkbox to label)"
|
|
391
|
-
},
|
|
392
|
-
{
|
|
393
|
-
"token": "text-to-control-100",
|
|
394
|
-
"context": "Spacing (checkmark icon/checkbox to label)"
|
|
395
|
-
},
|
|
396
|
-
{
|
|
397
|
-
"token": "text-to-control-200",
|
|
398
|
-
"context": "Spacing (checkmark icon/checkbox to label)"
|
|
399
|
-
},
|
|
400
|
-
{
|
|
401
|
-
"token": "text-to-control-300",
|
|
402
|
-
"context": "Spacing (checkmark icon/checkbox to label)"
|
|
403
|
-
},
|
|
404
|
-
{
|
|
405
|
-
"token": "menu-item-edge-to-content-not-selected-small",
|
|
406
|
-
"context": "Spacing (start edge to label, single selection, not selected)"
|
|
407
|
-
},
|
|
408
|
-
{
|
|
409
|
-
"token": "menu-item-edge-to-content-not-selected-medium",
|
|
410
|
-
"context": "Spacing (start edge to label, single selection, not selected)"
|
|
411
|
-
},
|
|
412
|
-
{
|
|
413
|
-
"token": "menu-item-edge-to-content-not-selected-large",
|
|
414
|
-
"context": "Spacing (start edge to label, single selection, not selected)"
|
|
415
|
-
},
|
|
416
|
-
{
|
|
417
|
-
"token": "menu-item-edge-to-content-not-selected-extra-large",
|
|
418
|
-
"context": "Spacing (start edge to label, single selection, not selected)"
|
|
419
|
-
},
|
|
420
|
-
{
|
|
421
|
-
"token": "menu-item-top-to-disclosure-icon-small",
|
|
422
|
-
"context": "Spacing (top edge to disclosure icon)"
|
|
423
|
-
},
|
|
424
|
-
{
|
|
425
|
-
"token": "menu-item-top-to-disclosure-icon-medium",
|
|
426
|
-
"context": "Spacing (top edge to disclosure icon)"
|
|
427
|
-
},
|
|
428
|
-
{
|
|
429
|
-
"token": "menu-item-top-to-disclosure-icon-large",
|
|
430
|
-
"context": "Spacing (top edge to disclosure icon)"
|
|
431
|
-
},
|
|
432
|
-
{
|
|
433
|
-
"token": "menu-item-top-to-disclosure-icon-extra-large",
|
|
434
|
-
"context": "Spacing (top edge to disclosure icon)"
|
|
435
|
-
},
|
|
436
|
-
{ "token": "focus-indicator-thickness", "context": "Focus indicator" },
|
|
437
|
-
{ "token": "focus-indicator-gap", "context": "Focus indicator" },
|
|
438
|
-
{ "token": "workflow-icon-size-75", "context": "Icon (menu item)" },
|
|
439
|
-
{ "token": "workflow-icon-size-100", "context": "Icon (menu item)" },
|
|
440
|
-
{ "token": "workflow-icon-size-200", "context": "Icon (menu item)" },
|
|
441
|
-
{ "token": "workflow-icon-size-300", "context": "Icon (menu item)" },
|
|
442
|
-
{
|
|
443
|
-
"token": "checkmark-icon-size-75",
|
|
444
|
-
"context": "Icon (single selection, selected menu item)"
|
|
445
|
-
},
|
|
446
|
-
{
|
|
447
|
-
"token": "checkmark-icon-size-100",
|
|
448
|
-
"context": "Icon (single selection, selected menu item)"
|
|
449
|
-
},
|
|
450
|
-
{
|
|
451
|
-
"token": "checkmark-icon-size-200",
|
|
452
|
-
"context": "Icon (single selection, selected menu item)"
|
|
453
|
-
},
|
|
454
|
-
{
|
|
455
|
-
"token": "checkmark-icon-size-300",
|
|
456
|
-
"context": "Icon (single selection, selected menu item)"
|
|
457
|
-
},
|
|
458
|
-
{
|
|
459
|
-
"token": "chevron-icon-size-75",
|
|
460
|
-
"context": "Icon (drill-in action, menu item)"
|
|
461
|
-
},
|
|
462
|
-
{
|
|
463
|
-
"token": "chevron-icon-size-100",
|
|
464
|
-
"context": "Icon (drill-in action, menu item)"
|
|
465
|
-
},
|
|
466
|
-
{
|
|
467
|
-
"token": "chevron-icon-size-200",
|
|
468
|
-
"context": "Icon (drill-in action, menu item)"
|
|
469
|
-
},
|
|
470
|
-
{
|
|
471
|
-
"token": "chevron-icon-size-300",
|
|
472
|
-
"context": "Icon (drill-in action, menu item)"
|
|
473
|
-
},
|
|
474
|
-
{
|
|
475
|
-
"token": "link-out-icon-size-75",
|
|
476
|
-
"context": "Icon (external link action, menu item)"
|
|
477
|
-
},
|
|
478
|
-
{
|
|
479
|
-
"token": "link-out-icon-size-100",
|
|
480
|
-
"context": "Icon (external link action, menu item)"
|
|
481
|
-
},
|
|
482
|
-
{
|
|
483
|
-
"token": "link-out-icon-size-200",
|
|
484
|
-
"context": "Icon (external link action, menu item)"
|
|
485
|
-
},
|
|
486
|
-
{ "token": "thumbnail-size-500", "context": "Thumbnail" },
|
|
487
|
-
{ "token": "thumbnail-size-700", "context": "Thumbnail" },
|
|
488
|
-
{ "token": "thumbnail-size-800", "context": "Thumbnail" },
|
|
489
|
-
{ "token": "thumbnail-size-900", "context": "Thumbnail" },
|
|
490
|
-
{ "token": "menu-item-background-color-default", "context": "Background" },
|
|
491
|
-
{ "token": "menu-item-background-color-hover", "context": "Background" },
|
|
492
|
-
{ "token": "menu-item-background-color-down", "context": "Background" },
|
|
493
|
-
{
|
|
494
|
-
"token": "menu-item-background-color-keyboard-focus",
|
|
495
|
-
"context": "Background"
|
|
496
|
-
},
|
|
497
|
-
{ "token": "menu-item-background-color-disabled", "context": "Background" },
|
|
498
|
-
{ "token": "menu-item-background-opacity", "context": "Background" },
|
|
499
|
-
{ "token": "neutral-content-color-default", "context": "Label and icon" },
|
|
500
|
-
{ "token": "neutral-content-color-hover", "context": "Label and icon" },
|
|
501
|
-
{ "token": "neutral-content-color-down", "context": "Label and icon" },
|
|
502
|
-
{ "token": "neutral-content-color-key-focus", "context": "Label and icon" },
|
|
503
|
-
{ "token": "disabled-content-color", "context": "Label and icon" },
|
|
504
|
-
{
|
|
505
|
-
"token": "neutral-subdued-content-color-default",
|
|
506
|
-
"context": "Description"
|
|
507
|
-
},
|
|
508
|
-
{
|
|
509
|
-
"token": "neutral-subdued-content-color-hover",
|
|
510
|
-
"context": "Description"
|
|
511
|
-
},
|
|
512
|
-
{ "token": "neutral-subdued-content-color-down", "context": "Description" },
|
|
513
|
-
{
|
|
514
|
-
"token": "neutral-subdued-content-color-key-focus",
|
|
515
|
-
"context": "Description"
|
|
516
|
-
},
|
|
517
|
-
{ "token": "accent-content-color-default", "context": "Checkmark icon" },
|
|
518
|
-
{ "token": "accent-content-color-hover", "context": "Checkmark icon" },
|
|
519
|
-
{ "token": "accent-content-color-down", "context": "Checkmark icon" },
|
|
520
|
-
{ "token": "accent-content-color-key-focus", "context": "Checkmark icon" },
|
|
521
|
-
{ "token": "focus-indicator-color", "context": "Focus indicator" },
|
|
522
|
-
{ "token": "default-font-family", "context": "Section header title" },
|
|
523
|
-
{ "token": "bold-font-weight", "context": "Section header title" },
|
|
524
|
-
{ "token": "default-font-style", "context": "Section header title" },
|
|
525
|
-
{ "token": "font-size-75", "context": "Section header title" },
|
|
526
|
-
{ "token": "font-size-100", "context": "Section header title" },
|
|
527
|
-
{ "token": "font-size-200", "context": "Section header title" },
|
|
528
|
-
{ "token": "font-size-300", "context": "Section header title" },
|
|
529
|
-
{ "token": "line-height-100", "context": "Section header title" },
|
|
530
|
-
{ "token": "cjk-line-height-100", "context": "Section header title" },
|
|
531
|
-
{
|
|
532
|
-
"token": "regular-font-weight",
|
|
533
|
-
"context": "Descriptions (section header and item)"
|
|
534
|
-
},
|
|
285
|
+
"name": "disabled",
|
|
286
|
+
"trigger": "prop"
|
|
287
|
+
}
|
|
288
|
+
],
|
|
289
|
+
"lifecycle": {
|
|
290
|
+
"introduced": "1.0.0-draft"
|
|
291
|
+
},
|
|
292
|
+
"tokenBindings": [
|
|
535
293
|
{
|
|
536
|
-
"token": "
|
|
537
|
-
"context": "
|
|
294
|
+
"token": "popover-submenu-to-menu-item-position",
|
|
295
|
+
"context": "Sub-menu alignment with menu item"
|
|
538
296
|
}
|
|
539
297
|
],
|
|
540
298
|
"accessibility": {
|
|
@@ -543,8 +301,16 @@
|
|
|
543
301
|
"focusable": false,
|
|
544
302
|
"keyboardIntents": ["navigate-options", "activate", "dismiss"],
|
|
545
303
|
"wcag": [
|
|
546
|
-
{
|
|
547
|
-
|
|
304
|
+
{
|
|
305
|
+
"criterion": "2.1.1",
|
|
306
|
+
"level": "A",
|
|
307
|
+
"title": "Keyboard"
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"criterion": "4.1.2",
|
|
311
|
+
"level": "A",
|
|
312
|
+
"title": "Name, Role, Value"
|
|
313
|
+
}
|
|
548
314
|
]
|
|
549
315
|
}
|
|
550
316
|
}
|
package/components/meter.json
CHANGED
|
@@ -56,98 +56,72 @@
|
|
|
56
56
|
"type": "string",
|
|
57
57
|
"default": "informative",
|
|
58
58
|
"values": [
|
|
59
|
-
{
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
{
|
|
59
|
+
{
|
|
60
|
+
"value": "informative"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"value": "positive"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"value": "notice"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"value": "negative"
|
|
70
|
+
}
|
|
63
71
|
]
|
|
64
72
|
},
|
|
65
|
-
"label": {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
"
|
|
73
|
+
"label": {
|
|
74
|
+
"type": "string"
|
|
75
|
+
},
|
|
76
|
+
"hideLabel": {
|
|
77
|
+
"type": "boolean",
|
|
78
|
+
"default": false
|
|
79
|
+
},
|
|
80
|
+
"valueLabel": {
|
|
81
|
+
"type": "string"
|
|
82
|
+
},
|
|
83
|
+
"width": {
|
|
84
|
+
"type": "number"
|
|
85
|
+
},
|
|
69
86
|
"size": {
|
|
70
87
|
"type": "string",
|
|
71
88
|
"default": "m",
|
|
72
89
|
"values": [
|
|
73
|
-
{
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
{
|
|
90
|
+
{
|
|
91
|
+
"value": "s"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"value": "m"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"value": "l"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"value": "xl"
|
|
101
|
+
}
|
|
77
102
|
]
|
|
78
103
|
},
|
|
79
|
-
"value": {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
"tokenBindings": [
|
|
84
|
-
{ "token": "meter-minimum-width", "context": "Minimum width" },
|
|
85
|
-
{ "token": "meter-maximum-width", "context": "Maximum width" },
|
|
86
|
-
{ "token": "font-size-75", "context": "Text" },
|
|
87
|
-
{ "token": "font-size-100", "context": "Text" },
|
|
88
|
-
{ "token": "font-size-200", "context": "Text" },
|
|
89
|
-
{ "token": "font-size-300", "context": "Text" },
|
|
90
|
-
{ "token": "line-height-100", "context": "Text" },
|
|
91
|
-
{ "token": "cjk-line-height-100", "context": "Text" },
|
|
92
|
-
{
|
|
93
|
-
"token": "spacing-75",
|
|
94
|
-
"context": "Spacing (field label to progress bar)"
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
"token": "component-top-to-text-75",
|
|
98
|
-
"context": "Spacing (top edge to text)"
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
"token": "component-top-to-text-100",
|
|
102
|
-
"context": "Spacing (top edge to text)"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
"token": "component-top-to-text-200",
|
|
106
|
-
"context": "Spacing (top edge to text)"
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
"token": "component-top-to-text-300",
|
|
110
|
-
"context": "Spacing (top edge to text)"
|
|
104
|
+
"value": {
|
|
105
|
+
"type": "number",
|
|
106
|
+
"minimum": 0,
|
|
107
|
+
"maximum": 1
|
|
111
108
|
},
|
|
112
|
-
{
|
|
113
|
-
"
|
|
114
|
-
"context": "Minimum spacing (field label to text)"
|
|
115
|
-
},
|
|
116
|
-
{ "token": "meter-thickness-small", "context": "Meter (thickness)" },
|
|
117
|
-
{ "token": "meter-thickness-medium", "context": "Meter (thickness)" },
|
|
118
|
-
{ "token": "meter-thickness-large", "context": "Meter (thickness)" },
|
|
119
|
-
{ "token": "meter-thickness-extra-large", "context": "Meter (thickness)" },
|
|
120
|
-
{ "token": "corner-radius-full", "context": "Meter (rounding)" },
|
|
121
|
-
{ "token": "neutral-subdued-content-color-default", "context": "Text" },
|
|
122
|
-
{ "token": "track-color", "context": "Track and indicator" },
|
|
123
|
-
{
|
|
124
|
-
"token": "accent-content-color-default",
|
|
125
|
-
"context": "Track and indicator"
|
|
126
|
-
},
|
|
127
|
-
{ "token": "static-black-text-color", "context": "Text (black)" },
|
|
128
|
-
{
|
|
129
|
-
"token": "static-black-track-color",
|
|
130
|
-
"context": "Track and indicator (black)"
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
"token": "static-black-track-indicator-color",
|
|
134
|
-
"context": "Track and indicator (black)"
|
|
135
|
-
},
|
|
136
|
-
{ "token": "static-white-text-color", "context": "Text (white)" },
|
|
137
|
-
{
|
|
138
|
-
"token": "static-white-track-color",
|
|
139
|
-
"context": "Track and indicator (white)"
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
"token": "static-white-track-indicator-color",
|
|
143
|
-
"context": "Track and indicator (white)"
|
|
109
|
+
"helpText": {
|
|
110
|
+
"type": "string"
|
|
144
111
|
}
|
|
145
|
-
|
|
112
|
+
},
|
|
113
|
+
"lifecycle": {
|
|
114
|
+
"introduced": "1.0.0-draft"
|
|
115
|
+
},
|
|
146
116
|
"accessibility": {
|
|
147
117
|
"role": "meter",
|
|
148
118
|
"focusable": false,
|
|
149
119
|
"wcag": [
|
|
150
|
-
{
|
|
120
|
+
{
|
|
121
|
+
"criterion": "4.1.2",
|
|
122
|
+
"level": "A",
|
|
123
|
+
"title": "Name, Role, Value"
|
|
124
|
+
}
|
|
151
125
|
]
|
|
152
126
|
}
|
|
153
127
|
}
|