@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.
Files changed (76) hide show
  1. package/components/accordion.json +49 -295
  2. package/components/action-bar.json +16 -119
  3. package/components/action-button.json +69 -302
  4. package/components/action-group.json +74 -20
  5. package/components/alert-banner.json +27 -47
  6. package/components/alert-dialog.json +38 -40
  7. package/components/avatar-group.json +28 -54
  8. package/components/avatar.json +92 -59
  9. package/components/badge.json +121 -370
  10. package/components/breadcrumbs.json +53 -159
  11. package/components/button-group.json +40 -13
  12. package/components/button.json +88 -231
  13. package/components/cards.json +33 -262
  14. package/components/checkbox-group.json +58 -13
  15. package/components/checkbox.json +53 -156
  16. package/components/close-button.json +47 -76
  17. package/components/coach-indicator.json +44 -31
  18. package/components/coach-mark.json +19 -43
  19. package/components/color-area.json +64 -26
  20. package/components/color-handle.json +35 -27
  21. package/components/color-loupe.json +6 -17
  22. package/components/color-slider.json +80 -35
  23. package/components/color-wheel.json +51 -25
  24. package/components/combo-box.json +96 -242
  25. package/components/contextual-help.json +106 -59
  26. package/components/date-picker.json +59 -171
  27. package/components/divider.json +25 -17
  28. package/components/drop-zone.json +28 -105
  29. package/components/field-label.json +45 -103
  30. package/components/help-text.json +29 -97
  31. package/components/illustrated-message.json +25 -74
  32. package/components/in-field-progress-circle.json +0 -54
  33. package/components/in-line-alert.json +39 -130
  34. package/components/link.json +40 -58
  35. package/components/list-view.json +31 -176
  36. package/components/menu.json +105 -339
  37. package/components/meter.json +52 -78
  38. package/components/number-field.json +72 -239
  39. package/components/opacity-checkerboard.json +0 -18
  40. package/components/picker.json +95 -275
  41. package/components/popover.json +88 -45
  42. package/components/progress-bar.json +63 -78
  43. package/components/progress-circle.json +36 -33
  44. package/components/radio-button.json +36 -145
  45. package/components/radio-group.json +74 -18
  46. package/components/rating.json +33 -48
  47. package/components/search-field.json +64 -133
  48. package/components/segmented-control.json +37 -86
  49. package/components/select-box.json +52 -100
  50. package/components/side-navigation.json +32 -164
  51. package/components/slider.json +90 -182
  52. package/components/standard-dialog.json +37 -43
  53. package/components/status-light.json +92 -134
  54. package/components/steplist.json +23 -113
  55. package/components/swatch-group.json +50 -22
  56. package/components/swatch.json +62 -70
  57. package/components/switch.json +51 -143
  58. package/components/table.json +53 -216
  59. package/components/tabs.json +29 -84
  60. package/components/tag-field.json +53 -85
  61. package/components/tag-group.json +36 -18
  62. package/components/tag.json +43 -206
  63. package/components/takeover-dialog.json +30 -20
  64. package/components/text-area.json +114 -247
  65. package/components/text-field.json +90 -261
  66. package/components/thumbnail.json +46 -44
  67. package/components/title.json +0 -18
  68. package/components/toast.json +27 -61
  69. package/components/tooltip.json +36 -52
  70. package/components/tree-view.json +86 -197
  71. package/package.json +2 -2
  72. package/tokens/color-component.tokens.json +1 -1212
  73. package/tokens/color-palette.tokens.json +0 -33
  74. package/tokens/layout-component.tokens.json +833 -24074
  75. package/tokens/layout.tokens.json +0 -597
  76. package/tokens/typography.tokens.json +559 -3318
@@ -30,7 +30,10 @@
30
30
  "type": "guideline",
31
31
  "content": "The outline style is the default for in-line alerts."
32
32
  },
33
- { "type": "guideline", "content": "There are five semantic variants:" },
33
+ {
34
+ "type": "guideline",
35
+ "content": "There are five semantic variants:"
36
+ },
34
37
  {
35
38
  "type": "guideline",
36
39
  "content": "When the title of an in-line alert is too long for the available horizontal space, it wraps to form another line. The optional icon in the top-right corner stays aligned to the top."
@@ -41,12 +44,24 @@
41
44
  "type": "string",
42
45
  "default": "neutral",
43
46
  "values": [
44
- { "value": "neutral" },
45
- { "value": "informative" },
46
- { "value": "positive" },
47
- { "value": "notice" },
48
- { "value": "negative" },
49
- { "value": "accent" }
47
+ {
48
+ "value": "neutral"
49
+ },
50
+ {
51
+ "value": "informative"
52
+ },
53
+ {
54
+ "value": "positive"
55
+ },
56
+ {
57
+ "value": "notice"
58
+ },
59
+ {
60
+ "value": "negative"
61
+ },
62
+ {
63
+ "value": "accent"
64
+ }
50
65
  ]
51
66
  },
52
67
  "style": {
@@ -54,9 +69,15 @@
54
69
  "default": "outline",
55
70
  "description": "The visual style of the alert.",
56
71
  "values": [
57
- { "value": "bold" },
58
- { "value": "subtle" },
59
- { "value": "outline" }
72
+ {
73
+ "value": "bold"
74
+ },
75
+ {
76
+ "value": "subtle"
77
+ },
78
+ {
79
+ "value": "outline"
80
+ }
60
81
  ]
61
82
  },
62
83
  "href": {
@@ -72,129 +93,17 @@
72
93
  "description": "If undefined, this button does not appear."
73
94
  }
74
95
  },
75
- "lifecycle": { "introduced": "1.0.0-draft" },
76
- "tokenBindings": [
77
- { "token": "border-width-200", "context": "Border " },
78
- { "token": "corner-radius-700", "context": "Rounding" },
79
- { "token": "workflow-icon-size-100", "context": "Icon" },
80
- { "token": "in-line-alert-minimum-width", "context": "Minimum width" },
81
- {
82
- "token": "spacing-300",
83
- "context": "Spacing (Top/Bottom/Start/End edge to Content)"
84
- },
85
- { "token": "spacing-100", "context": "Spacing (Title to Description) " },
86
- {
87
- "token": "spacing-200",
88
- "context": "Spacing (Description to Link, Description to Button, Link to Button) "
89
- },
90
- { "token": "component-height-50", "context": "Minimum title area height" },
91
- {
92
- "token": "heading-color",
93
- "context": "Title and Description (Border fill)"
94
- },
95
- { "token": "body-color", "context": "Title and Description (Border fill)" },
96
- {
97
- "token": "background-layer-2-color",
98
- "context": "Background (Border fill)"
99
- },
100
- {
101
- "token": "informative-visual-color",
102
- "context": "Border and Icon (Border fill, Informative)"
103
- },
104
- {
105
- "token": "positive-visual-color",
106
- "context": "Border and Icon (Border fill, Positive)"
107
- },
108
- {
109
- "token": "notice-visual-color",
110
- "context": "Border and Icon (Border fill, Notice)"
111
- },
112
- {
113
- "token": "negative-visual-color",
114
- "context": "Border and Icon (Border fill, Negative)"
115
- },
116
- {
117
- "token": "neutral-visual-color",
118
- "context": "Border (Border fill, Neutral)"
119
- },
120
- {
121
- "token": "informative-subtle-background-color-default",
122
- "context": "Background and Icon (Subtle fill, Informative)"
123
- },
124
- {
125
- "token": "positive-subtle-background-color-default",
126
- "context": "Background and Icon (Subtle fill, Positive)"
127
- },
128
- {
129
- "token": "notice-subtle-background-color-default",
130
- "context": "Background and Icon (Subtle fill, Notice)"
131
- },
132
- {
133
- "token": "negative-subtle-background-color-default",
134
- "context": "Background and Icon (Subtle fill, Negative)"
135
- },
136
- {
137
- "token": "neutral-subtle-background-color-default",
138
- "context": "Background and Icon (Subtle fill, Neutral)"
139
- },
140
- { "token": "white", "context": "Title and Description (Bold fill)" },
141
- {
142
- "token": "black",
143
- "context": "Title and Description (Bold fill, Notice)"
144
- },
145
- {
146
- "token": "informative-background-color-default",
147
- "context": "Background (Bold fill, Informative)"
148
- },
149
- {
150
- "token": "positive-background-color-default",
151
- "context": "Background (Bold fill, Positive)"
152
- },
153
- {
154
- "token": "notice-background-color-default",
155
- "context": "Background (Bold fill, Notice)"
156
- },
157
- {
158
- "token": "negative-background-color-default",
159
- "context": "Background (Bold fill, Negative)"
160
- },
161
- {
162
- "token": "neutral-subdued-background-color-default",
163
- "context": "Background (Bold fill, Neutral)"
164
- },
165
- {
166
- "token": "heading-sans-serif-font-family",
167
- "context": "Title and Description"
168
- },
169
- {
170
- "token": "heading-sans-serif-font-weight",
171
- "context": "Title and Description"
172
- },
173
- {
174
- "token": "heading-sans-serif-font-style",
175
- "context": "Title and Description"
176
- },
177
- { "token": "heading-size-xxs", "context": "Title and Description" },
178
- { "token": "heading-line-height", "context": "Title and Description" },
179
- {
180
- "token": "body-sans-serif-font-family",
181
- "context": "Title and Description"
182
- },
183
- {
184
- "token": "body-sans-serif-font-weight",
185
- "context": "Title and Description"
186
- },
187
- {
188
- "token": "body-sans-serif-font-style",
189
- "context": "Title and Description"
190
- },
191
- { "token": "body-size-s", "context": "Title and Description" },
192
- { "token": "body-line-height", "context": "Title and Description" }
193
- ],
96
+ "lifecycle": {
97
+ "introduced": "1.0.0-draft"
98
+ },
194
99
  "accessibility": {
195
100
  "focusable": false,
196
101
  "wcag": [
197
- { "criterion": "4.1.3", "level": "AA", "title": "Status Messages" }
102
+ {
103
+ "criterion": "4.1.3",
104
+ "level": "AA",
105
+ "title": "Status Messages"
106
+ }
198
107
  ]
199
108
  }
200
109
  }
@@ -63,83 +63,65 @@
63
63
  "variant": {
64
64
  "type": "string",
65
65
  "default": "primary",
66
- "values": [{ "value": "primary" }, { "value": "secondary" }]
66
+ "values": [
67
+ {
68
+ "value": "primary"
69
+ },
70
+ {
71
+ "value": "secondary"
72
+ }
73
+ ]
74
+ },
75
+ "isQuiet": {
76
+ "type": "boolean",
77
+ "default": false
67
78
  },
68
- "isQuiet": { "type": "boolean", "default": false },
69
79
  "staticColor": {
70
80
  "type": "string",
71
81
  "description": "Static color must not be set for the default version of this component.",
72
- "values": [{ "value": "white" }, { "value": "black" }]
82
+ "values": [
83
+ {
84
+ "value": "white"
85
+ },
86
+ {
87
+ "value": "black"
88
+ }
89
+ ]
73
90
  }
74
91
  },
75
92
  "states": [
76
- { "name": "hover", "trigger": "interaction" },
77
- { "name": "down", "trigger": "interaction" },
78
- { "name": "keyboard-focus", "trigger": "interaction" }
79
- ],
80
- "lifecycle": { "introduced": "1.0.0-draft" },
81
- "tokenBindings": [
82
- { "token": "accent-content-color-default", "context": "Text (primary)" },
83
- { "token": "accent-content-color-hover", "context": "Text (primary)" },
84
- { "token": "accent-content-color-down", "context": "Text (primary)" },
85
- { "token": "accent-content-color-key-focus", "context": "Text (primary)" },
86
- { "token": "neutral-content-color-default", "context": "Text (secondary)" },
87
- { "token": "neutral-content-color-hover", "context": "Text (secondary)" },
88
- { "token": "neutral-content-color-down", "context": "Text (secondary)" },
89
- {
90
- "token": "neutral-content-color-key-focus",
91
- "context": "Text (secondary)"
92
- },
93
- { "token": "white", "context": "Text (white)" },
94
- { "token": "black", "context": "Text (black)" },
95
- {
96
- "token": "default-font-family",
97
- "context": "Standalone variant, Default style"
98
- },
99
- {
100
- "token": "medium-font-weight",
101
- "context": "Standalone variant, Default style"
102
- },
103
- {
104
- "token": "default-font-style",
105
- "context": "Standalone variant, Default style"
106
- },
107
93
  {
108
- "token": "font-size-100",
109
- "context": "Standalone variant, Default style"
94
+ "name": "hover",
95
+ "trigger": "interaction"
110
96
  },
111
97
  {
112
- "token": "line-height-100",
113
- "context": "Standalone variant, Default style"
98
+ "name": "down",
99
+ "trigger": "interaction"
114
100
  },
115
101
  {
116
- "token": "cjk-line-height-100",
117
- "context": "Standalone variant, Default style"
118
- },
119
- {
120
- "token": "text-underline-gap",
121
- "context": "Standalone variant, Default style"
122
- },
123
- {
124
- "token": "text-underline-thickness",
125
- "context": "Standalone variant, Default style"
126
- },
127
- {
128
- "token": "regular-font-weight",
129
- "context": "Inline variant, Default style"
130
- },
131
- { "token": "focus-indicator-color", "context": "Focus ring" },
132
- { "token": "focus-indicator-thickness", "context": "Focus ring" },
133
- { "token": "focus-indicator-gap", "context": "Focus ring" }
102
+ "name": "keyboard-focus",
103
+ "trigger": "interaction"
104
+ }
134
105
  ],
106
+ "lifecycle": {
107
+ "introduced": "1.0.0-draft"
108
+ },
135
109
  "accessibility": {
136
110
  "role": "link",
137
111
  "intents": ["navigate"],
138
112
  "focusable": true,
139
113
  "keyboardIntents": ["activate"],
140
114
  "wcag": [
141
- { "criterion": "2.1.1", "level": "A", "title": "Keyboard" },
142
- { "criterion": "4.1.2", "level": "A", "title": "Name, Role, Value" }
115
+ {
116
+ "criterion": "2.1.1",
117
+ "level": "A",
118
+ "title": "Keyboard"
119
+ },
120
+ {
121
+ "criterion": "4.1.2",
122
+ "level": "A",
123
+ "title": "Name, Role, Value"
124
+ }
143
125
  ]
144
126
  }
145
127
  }
@@ -85,9 +85,15 @@
85
85
  "default": "single",
86
86
  "description": "Defines how many items can be selected at once.",
87
87
  "values": [
88
- { "value": "none" },
89
- { "value": "single" },
90
- { "value": "multiple" }
88
+ {
89
+ "value": "none"
90
+ },
91
+ {
92
+ "value": "single"
93
+ },
94
+ {
95
+ "value": "multiple"
96
+ }
91
97
  ]
92
98
  },
93
99
  "isQuiet": {
@@ -146,7 +152,10 @@
146
152
  "default": "none",
147
153
  "description": "Defines the border radius of the list view item."
148
154
  },
149
- "isEmphasized": { "type": "boolean", "default": false },
155
+ "isEmphasized": {
156
+ "type": "boolean",
157
+ "default": false
158
+ },
150
159
  "state": {
151
160
  "type": "string",
152
161
  "enum": ["default", "hover", "dragged"],
@@ -176,7 +185,10 @@
176
185
  "name": "checkbox",
177
186
  "description": "Checkbox control for a list view item in checkbox selection style."
178
187
  },
179
- { "name": "icon", "description": "Leading icon of a list view item." },
188
+ {
189
+ "name": "icon",
190
+ "description": "Leading icon of a list view item."
191
+ },
180
192
  {
181
193
  "name": "thumbnail",
182
194
  "description": "Thumbnail image of a list view item."
@@ -198,187 +210,30 @@
198
210
  "description": "Icon indicating a list view item navigates to a new context."
199
211
  }
200
212
  ],
201
- "lifecycle": { "introduced": "1.0.0-draft" },
213
+ "lifecycle": {
214
+ "introduced": "1.0.0-draft"
215
+ },
202
216
  "tokenBindings": [
203
- { "token": "workflow-icon-size-100", "context": "Icon size" },
204
- { "token": "list-view-minimum-height", "context": "Component height" },
205
- { "token": "list-view-minimum-width", "context": "Component width" },
206
- { "token": "corner-radius-medium-default", "context": "Item rounding" },
207
- {
208
- "token": "stack-item-start-edge-to-content",
209
- "context": "Spacing (edge to drag handle)"
210
- },
211
217
  {
212
218
  "token": "stack-item-drag-handle-to-control",
213
219
  "context": "Spacing (drag handle to checkbox, to visual, to text)"
214
- },
215
- {
216
- "token": "visual-to-control-100",
217
- "context": "Spacing (drag handle to checkbox, to visual, to text)"
218
- },
219
- {
220
- "token": "stack-item-text-to-control",
221
- "context": "Spacing (drag handle to checkbox, to visual, to text)"
222
- },
223
- {
224
- "token": "stack-item-edge-to-control",
225
- "context": "Spacing (edge to checkbox, edge to visual, edge to text)"
226
- },
227
- {
228
- "token": "stack-item-edge-to-visual",
229
- "context": "Spacing (edge to checkbox, edge to visual, edge to text)"
230
- },
231
- {
232
- "token": "component-edge-to-text-100",
233
- "context": "Spacing (edge to checkbox, edge to visual, edge to text)"
234
- },
235
- {
236
- "token": "text-to-visual-100",
237
- "context": "Spacing (content items to text)"
238
- },
239
- {
240
- "token": "stack-item-action-to-navigation",
241
- "context": "Spacing (navigation indicator to edge, actions to edge)"
242
- },
243
- {
244
- "token": "list-view-end-edge-to-content",
245
- "context": "Spacing (edge to Navigation icon)"
246
- },
247
- { "token": "vertical-align-items", "context": "Spacing (vertical)" },
248
- {
249
- "token": "stack-item-minimum-padding-vertical",
250
- "context": "Spacing (vertical)"
251
- },
252
- {
253
- "token": "label-to-description-0",
254
- "context": "Spacing (navigation indicator)"
255
- },
256
- {
257
- "token": "border-width-100",
258
- "context": "Border width (selected - highlight)"
259
- },
260
- { "token": "focus-indicator-thickness", "context": "Focus" },
261
- { "token": "focus-indicator-gap", "context": "Focus (drag handle)" },
262
- { "token": "drop-shadow-dragged-x", "context": "Dragged shadow" },
263
- { "token": "drop-shadow-dragged-y", "context": "Dragged shadow" },
264
- { "token": "drop-shadow-dragged-blur", "context": "Dragged shadow" },
265
- { "token": "drop-shadow-dragged-color", "context": "Dragged shadow" },
266
- { "token": "component-height-100", "context": "Height" },
267
- { "token": "stack-item-header-minimum-width", "context": "Width" },
268
- {
269
- "token": "component-edge-to-text-100",
270
- "context": "Spacing (horizontal)"
271
- },
272
- { "token": "component-top-to-text-100", "context": "Spacing (vertical)" },
273
- {
274
- "token": "component-bottom-to-text-100",
275
- "context": "Spacing (vertical)"
276
- },
277
- {
278
- "token": "component-top-to-workflow-icon-100",
279
- "context": "Spacing (vertical)"
280
- },
281
- {
282
- "token": "stack-item-header-to-item",
283
- "context": "Spacing (vertically, between list view header to list view items)"
284
- },
285
- {
286
- "token": "stack-item-item-to-item",
287
- "context": "Spacing (vertically, between list view header to list view items)"
288
- },
289
- { "token": "stack-item-background-color-hover", "context": "Background" },
290
- { "token": "stack-item-background-color-down", "context": "Background" },
291
- {
292
- "token": "stack-item-background-color-key-focus",
293
- "context": "Background"
294
- },
295
- {
296
- "token": "stack-item-selected-background-color-default",
297
- "context": "Background (selected, checkbox)"
298
- },
299
- {
300
- "token": "stack-item-selected-background-color-hover",
301
- "context": "Background (selected, checkbox)"
302
- },
303
- {
304
- "token": "stack-item-selected-background-color-down",
305
- "context": "Background (selected, checkbox)"
306
- },
307
- {
308
- "token": "stack-item-selected-background-color-key-focus",
309
- "context": "Background (selected, checkbox)"
310
- },
311
- {
312
- "token": "stack-item-selected-background-color-highlight",
313
- "context": "Background (selected, highlight)"
314
- },
315
- {
316
- "token": "stack-item-selected-background-opacity-highlight-hover",
317
- "context": "Background (selected, highlight)"
318
- },
319
- {
320
- "token": "accent-content-color-selected",
321
- "context": "Border (selected, highlight)"
322
- },
323
- { "token": "gray-300", "context": "Border" },
324
- {
325
- "token": "neutral-subdued-content-color-default",
326
- "context": "Label and icon (non-selected)"
327
- },
328
- {
329
- "token": "neutral-subdued-content-color-hover",
330
- "context": "Label and icon (non-selected)"
331
- },
332
- {
333
- "token": "neutral-subdued-content-color-down",
334
- "context": "Label and icon (non-selected)"
335
- },
336
- {
337
- "token": "neutral-subdued-content-color-key-focus",
338
- "context": "Label and icon (non-selected)"
339
- },
340
- {
341
- "token": "neutral-content-color-default",
342
- "context": "Label and icon (selected, checkbox and highlight)"
343
- },
344
- {
345
- "token": "neutral-content-color-hover",
346
- "context": "Label and icon (selected, checkbox and highlight)"
347
- },
348
- {
349
- "token": "neutral-content-color-down",
350
- "context": "Label and icon (selected, checkbox and highlight)"
351
- },
352
- {
353
- "token": "neutral-content-color-key-focus",
354
- "context": "Label and icon (selected, checkbox and highlight)"
355
- },
356
- {
357
- "token": "disabled-background-color",
358
- "context": "Background (disabled)"
359
- },
360
- {
361
- "token": "disabled-content-color",
362
- "context": "Label and icon (disabled)"
363
- },
364
- { "token": "focus-indicator-color", "context": "Focus indicator" },
365
- { "token": "title-color", "context": "Title label and icon" },
366
- { "token": "default-font-family", "context": "Text (List view item)" },
367
- { "token": "regular-font-weight", "context": "Text (List view item)" },
368
- { "token": "default-font-style", "context": "Text (List view item)" },
369
- { "token": "font-size-100", "context": "Text (List view item)" },
370
- { "token": "line-height-100", "context": "Text (List view item)" },
371
- { "token": "cjk-line-height-100", "context": "Text (List view item)" },
372
- { "token": "font-size-75", "context": "Text (List view description)" },
373
- { "token": "bold-font-weight", "context": "Text (List view title)" }
220
+ }
374
221
  ],
375
222
  "accessibility": {
376
223
  "intents": ["select", "navigate"],
377
224
  "focusable": true,
378
225
  "keyboardIntents": ["navigate-items", "activate", "select-all"],
379
226
  "wcag": [
380
- { "criterion": "2.1.1", "level": "A", "title": "Keyboard" },
381
- { "criterion": "4.1.2", "level": "A", "title": "Name, Role, Value" }
227
+ {
228
+ "criterion": "2.1.1",
229
+ "level": "A",
230
+ "title": "Keyboard"
231
+ },
232
+ {
233
+ "criterion": "4.1.2",
234
+ "level": "A",
235
+ "title": "Name, Role, Value"
236
+ }
382
237
  ]
383
238
  }
384
239
  }