@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
@@ -55,39 +55,57 @@
55
55
  "size": {
56
56
  "type": "string",
57
57
  "default": "m",
58
- "values": [{ "value": "s" }, { "value": "m" }, { "value": "l" }]
58
+ "values": [
59
+ {
60
+ "value": "s"
61
+ },
62
+ {
63
+ "value": "m"
64
+ },
65
+ {
66
+ "value": "l"
67
+ }
68
+ ]
59
69
  },
60
70
  "labelPosition": {
61
71
  "type": "string",
62
72
  "default": "top",
63
- "values": [{ "value": "top" }, { "value": "side" }]
73
+ "values": [
74
+ {
75
+ "value": "top"
76
+ },
77
+ {
78
+ "value": "side"
79
+ }
80
+ ]
81
+ },
82
+ "hideLabel": {
83
+ "type": "boolean",
84
+ "default": false
64
85
  },
65
- "hideLabel": { "type": "boolean", "default": false },
66
86
  "actionLabel": {
67
87
  "type": "string",
68
88
  "description": "If undefined, this button does not appear."
69
89
  }
70
90
  },
71
- "lifecycle": { "introduced": "1.0.0-draft" },
72
- "tokenBindings": [
73
- { "token": "spacing-100", "context": "Spacing (vertical)" },
74
- { "token": "spacing-200", "context": "Spacing (vertical)" },
75
- {
76
- "token": "field-label-to-component",
77
- "context": "Spacing (Field label to Tags)"
78
- },
79
- {
80
- "token": "help-text-to-component",
81
- "context": "Spacing (Text area to Help text)"
82
- }
83
- ],
91
+ "lifecycle": {
92
+ "introduced": "1.0.0-draft"
93
+ },
84
94
  "accessibility": {
85
95
  "intents": ["select"],
86
96
  "focusable": true,
87
97
  "keyboardIntents": ["navigate-items", "activate"],
88
98
  "wcag": [
89
- { "criterion": "1.3.1", "level": "A", "title": "Info and Relationships" },
90
- { "criterion": "4.1.2", "level": "A", "title": "Name, Role, Value" }
99
+ {
100
+ "criterion": "1.3.1",
101
+ "level": "A",
102
+ "title": "Info and Relationships"
103
+ },
104
+ {
105
+ "criterion": "4.1.2",
106
+ "level": "A",
107
+ "title": "Name, Role, Value"
108
+ }
91
109
  ]
92
110
  }
93
111
  }
@@ -52,12 +52,29 @@
52
52
  }
53
53
  ],
54
54
  "options": {
55
- "label": { "type": "string" },
56
- "hasAvatar": { "type": "boolean", "default": false },
57
- "isRemovable": { "type": "boolean", "default": false },
58
- "isError": { "type": "boolean", "default": false },
59
- "isDisabled": { "type": "boolean", "default": false },
60
- "isReadOnly": { "type": "boolean", "default": false }
55
+ "label": {
56
+ "type": "string"
57
+ },
58
+ "hasAvatar": {
59
+ "type": "boolean",
60
+ "default": false
61
+ },
62
+ "isRemovable": {
63
+ "type": "boolean",
64
+ "default": false
65
+ },
66
+ "isError": {
67
+ "type": "boolean",
68
+ "default": false
69
+ },
70
+ "isDisabled": {
71
+ "type": "boolean",
72
+ "default": false
73
+ },
74
+ "isReadOnly": {
75
+ "type": "boolean",
76
+ "default": false
77
+ }
61
78
  },
62
79
  "anatomy": [
63
80
  {
@@ -70,217 +87,37 @@
70
87
  }
71
88
  ],
72
89
  "states": [
73
- { "name": "hover", "trigger": "interaction" },
74
- { "name": "down", "trigger": "interaction" },
75
- { "name": "keyboard-focus", "trigger": "interaction" }
76
- ],
77
- "lifecycle": { "introduced": "1.0.0-draft" },
78
- "tokenBindings": [
79
- { "token": "avatar-size-50", "context": "Components" },
80
- { "token": "avatar-size-100", "context": "Components" },
81
- { "token": "thumbnail-size-50", "context": "Components" },
82
- { "token": "thumbnail-size-75", "context": "Components" },
83
- { "token": "thumbnail-size-100", "context": "Components" },
84
- { "token": "component-height-75", "context": "Minimum height" },
85
- { "token": "component-height-100", "context": "Minimum height" },
86
- { "token": "component-height-200", "context": "Minimum height" },
87
- {
88
- "token": "tag-minimum-width-small",
89
- "context": "Minimum width (with label)"
90
- },
91
- {
92
- "token": "tag-minimum-width-medium",
93
- "context": "Minimum width (with label)"
94
- },
95
- {
96
- "token": "tag-minimum-width-large",
97
- "context": "Minimum width (with label)"
98
- },
99
- {
100
- "token": "tag-maximum-width-multiplier",
101
- "context": "Maximum width (with label)"
102
- },
103
- {
104
- "token": "component-size-difference-down",
105
- "context": "Component size (down)"
106
- },
107
- {
108
- "token": "component-size-width-ratio-down",
109
- "context": "Component size (down)"
110
- },
111
- {
112
- "token": "component-size-minimum-perspective-down",
113
- "context": "Component size (down)"
114
- },
115
- { "token": "corner-radius-medium-size-small", "context": "Rounding" },
116
- { "token": "corner-radius-medium-size-medium", "context": "Rounding" },
117
- { "token": "corner-radius-medium-size-large", "context": "Rounding" },
118
- { "token": "workflow-icon-size-75", "context": "Icon" },
119
- { "token": "workflow-icon-size-100", "context": "Icon" },
120
- { "token": "workflow-icon-size-200", "context": "Icon" },
121
- { "token": "cross-icon-size-75", "context": "Cross icon" },
122
- { "token": "cross-icon-size-100", "context": "Cross icon" },
123
- { "token": "cross-icon-size-200", "context": "Cross icon" },
124
- {
125
- "token": "component-edge-to-visual-75",
126
- "context": "Spacing (start/end edges)"
127
- },
128
- {
129
- "token": "component-edge-to-visual-100",
130
- "context": "Spacing (start/end edges)"
131
- },
132
- {
133
- "token": "component-edge-to-visual-200",
134
- "context": "Spacing (start/end edges)"
135
- },
136
- {
137
- "token": "component-edge-to-text-75",
138
- "context": "Spacing (start/end edges)"
139
- },
140
- {
141
- "token": "component-edge-to-text-100",
142
- "context": "Spacing (start/end edges)"
143
- },
144
- {
145
- "token": "component-edge-to-text-200",
146
- "context": "Spacing (start/end edges)"
147
- },
148
- { "token": "text-to-visual-75", "context": "Spacing (visual to label)" },
149
- { "token": "text-to-visual-100", "context": "Spacing (visual to label)" },
150
- { "token": "text-to-visual-200", "context": "Spacing (visual to label)" },
151
- {
152
- "token": "tag-label-to-clear-icon-small",
153
- "context": "Spacing (label to cross icon)"
154
- },
155
- {
156
- "token": "tag-label-to-clear-icon-medium",
157
- "context": "Spacing (label to cross icon)"
158
- },
159
- {
160
- "token": "tag-label-to-clear-icon-large",
161
- "context": "Spacing (label to cross icon)"
162
- },
163
- {
164
- "token": "tag-edge-to-clear-icon-small",
165
- "context": "Spacing (cross icon to end edge)"
166
- },
167
90
  {
168
- "token": "tag-edge-to-clear-icon-medium",
169
- "context": "Spacing (cross icon to end edge)"
91
+ "name": "hover",
92
+ "trigger": "interaction"
170
93
  },
171
94
  {
172
- "token": "tag-edge-to-clear-icon-large",
173
- "context": "Spacing (cross icon to end edge)"
95
+ "name": "down",
96
+ "trigger": "interaction"
174
97
  },
175
98
  {
176
- "token": "component-top-to-workflow-icon-75",
177
- "context": "Spacing (top/bottom edge to icon)"
178
- },
179
- {
180
- "token": "component-top-to-workflow-icon-100",
181
- "context": "Spacing (top/bottom edge to icon)"
182
- },
183
- {
184
- "token": "component-top-to-workflow-icon-200",
185
- "context": "Spacing (top/bottom edge to icon)"
186
- },
187
- {
188
- "token": "tag-top-to-avatar-small",
189
- "context": "Spacing (top/bottom edge to avatar)"
190
- },
191
- {
192
- "token": "tag-top-to-avatar-medium",
193
- "context": "Spacing (top/bottom edge to avatar)"
194
- },
195
- {
196
- "token": "tag-top-to-avatar-large",
197
- "context": "Spacing (top/bottom edge to avatar)"
198
- },
199
- {
200
- "token": "component-top-to-text-75",
201
- "context": "Spacing (top edge to label)"
202
- },
203
- {
204
- "token": "component-top-to-text-100",
205
- "context": "Spacing (top edge to label)"
206
- },
207
- {
208
- "token": "component-top-to-text-200",
209
- "context": "Spacing (top edge to label)"
210
- },
211
- {
212
- "token": "tag-top-to-cross-icon-small",
213
- "context": "Spacing (top/bottom edge to cross icon)"
214
- },
215
- {
216
- "token": "tag-top-to-cross-icon-medium",
217
- "context": "Spacing (top/bottom edge to cross icon)"
218
- },
219
- {
220
- "token": "tag-top-to-cross-icon-large",
221
- "context": "Spacing (top/bottom edge to cross icon)"
222
- },
223
- { "token": "focus-indicator-thickness", "context": "Focus indicator" },
224
- { "token": "focus-indicator-gap", "context": "Focus indicator" },
225
- { "token": "default-font-family", "context": "Label" },
226
- { "token": "medium-font-weight", "context": "Label" },
227
- { "token": "default-font-style", "context": "Label" },
228
- { "token": "font-size-75", "context": "Label" },
229
- { "token": "font-size-100", "context": "Label" },
230
- { "token": "font-size-200", "context": "Label" },
231
- { "token": "line-height-100", "context": "Label" },
232
- { "token": "cjk-line-height-100", "context": "Label" },
233
- { "token": "accent-background-color-default", "context": "Background" },
234
- { "token": "accent-background-color-hover", "context": "Background" },
235
- { "token": "accent-background-color-down", "context": "Background" },
236
- { "token": "accent-background-color-key-focus", "context": "Background" },
237
- { "token": "white", "context": "Icon and Clear icon" },
238
- {
239
- "token": "neutral-background-color-selected-default",
240
- "context": "Background"
241
- },
242
- {
243
- "token": "neutral-background-color-selected-hover",
244
- "context": "Background"
245
- },
246
- {
247
- "token": "neutral-background-color-selected-down",
248
- "context": "Background"
249
- },
250
- {
251
- "token": "neutral-background-color-selected-key-focus",
252
- "context": "Background"
253
- },
254
- { "token": "gray-25", "context": "Icon and Clear icon" },
255
- { "token": "gray-100", "context": "Background" },
256
- { "token": "gray-200", "context": "Background" },
257
- {
258
- "token": "neutral-content-color-default",
259
- "context": "Icon and Clear icon and Label"
260
- },
261
- {
262
- "token": "neutral-content-color-hover",
263
- "context": "Icon and Clear icon and Label"
264
- },
265
- {
266
- "token": "neutral-content-color-down",
267
- "context": "Icon and Clear icon and Label"
268
- },
269
- {
270
- "token": "neutral-content-color-key-focus",
271
- "context": "Icon and Clear icon and Label"
272
- },
273
- { "token": "disabled-background-color", "context": "Fill" },
274
- { "token": "disabled-content-color", "context": "Icon and Clear icon" },
275
- { "token": "focus-indicator-color", "context": "Focus indicator" }
99
+ "name": "keyboard-focus",
100
+ "trigger": "interaction"
101
+ }
276
102
  ],
103
+ "lifecycle": {
104
+ "introduced": "1.0.0-draft"
105
+ },
277
106
  "accessibility": {
278
107
  "intents": ["dismiss"],
279
108
  "focusable": true,
280
109
  "keyboardIntents": ["activate"],
281
110
  "wcag": [
282
- { "criterion": "2.1.1", "level": "A", "title": "Keyboard" },
283
- { "criterion": "4.1.2", "level": "A", "title": "Name, Role, Value" }
111
+ {
112
+ "criterion": "2.1.1",
113
+ "level": "A",
114
+ "title": "Keyboard"
115
+ },
116
+ {
117
+ "criterion": "4.1.2",
118
+ "level": "A",
119
+ "title": "Name, Role, Value"
120
+ }
284
121
  ]
285
122
  }
286
123
  }
@@ -56,14 +56,27 @@
56
56
  }
57
57
  ],
58
58
  "options": {
59
- "title": { "type": "string" },
60
- "description": { "type": "string" },
59
+ "title": {
60
+ "type": "string"
61
+ },
62
+ "description": {
63
+ "type": "string"
64
+ },
61
65
  "variant": {
62
66
  "type": "string",
63
67
  "default": "dialog",
64
- "values": [{ "value": "dialog" }, { "value": "full screen" }]
68
+ "values": [
69
+ {
70
+ "value": "dialog"
71
+ },
72
+ {
73
+ "value": "full screen"
74
+ }
75
+ ]
76
+ },
77
+ "primaryActionLabel": {
78
+ "type": "string"
65
79
  },
66
- "primaryActionLabel": { "type": "string" },
67
80
  "secondaryActionLabel": {
68
81
  "type": "string",
69
82
  "description": "If undefined, this button does not appear."
@@ -92,28 +105,25 @@
92
105
  }
93
106
  }
94
107
  },
95
- "lifecycle": { "introduced": "1.0.0-draft" },
96
- "tokenBindings": [
97
- { "token": "takeover-dialog-width", "context": "Height & width" },
98
- { "token": "takeover-dialog-height", "context": "Height & width" },
99
- { "token": "window-to-edge", "context": "Margins (dialog option)" },
100
- {
101
- "token": "corner-radius-extra-large-default",
102
- "context": "Rounding (dialog option)"
103
- },
104
- { "token": "background-layer-2-color", "context": "Background" },
105
- { "token": "overlay-color", "context": "Overlay" },
106
- { "token": "overlay-opacity", "context": "Overlay" },
107
- { "token": "heading-color", "context": "Title" }
108
- ],
108
+ "lifecycle": {
109
+ "introduced": "1.0.0-draft"
110
+ },
109
111
  "accessibility": {
110
112
  "role": "dialog",
111
113
  "intents": ["dismiss"],
112
114
  "focusable": false,
113
115
  "keyboardIntents": ["dismiss"],
114
116
  "wcag": [
115
- { "criterion": "2.4.3", "level": "A", "title": "Focus Order" },
116
- { "criterion": "4.1.2", "level": "A", "title": "Name, Role, Value" }
117
+ {
118
+ "criterion": "2.4.3",
119
+ "level": "A",
120
+ "title": "Focus Order"
121
+ },
122
+ {
123
+ "criterion": "4.1.2",
124
+ "level": "A",
125
+ "title": "Name, Role, Value"
126
+ }
117
127
  ]
118
128
  }
119
129
  }