@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
@@ -68,68 +68,53 @@
68
68
  "multipleOf": 0.5,
69
69
  "description": "From 0 to 5, can be a decimal to represent half stars"
70
70
  },
71
- "isEmphasized": { "type": "boolean", "default": false },
72
- "isDisabled": { "type": "boolean", "default": false }
71
+ "isEmphasized": {
72
+ "type": "boolean",
73
+ "default": false
74
+ },
75
+ "isDisabled": {
76
+ "type": "boolean",
77
+ "default": false
78
+ }
73
79
  },
74
80
  "states": [
75
- { "name": "hover", "trigger": "interaction" },
76
- { "name": "down", "trigger": "interaction" },
77
- { "name": "keyboard-focus", "trigger": "interaction" }
78
- ],
79
- "lifecycle": { "introduced": "1.0.0-draft" },
80
- "tokenBindings": [
81
- { "token": "workflow-icon-size-75", "context": "Layout" },
82
- { "token": "workflow-icon-size-100", "context": "Layout" },
83
- { "token": "rating-width-small", "context": "Width" },
84
- { "token": "rating-width-medium", "context": "Width" },
85
- { "token": "rating-height-small", "context": "Height" },
86
- { "token": "rating-height-medium", "context": "Height" },
87
- { "token": "corner-radius-medium-size-small", "context": "Rounding" },
88
- { "token": "corner-radius-medium-size-medium", "context": "Rounding" },
89
- { "token": "focus-indicator-thickness", "context": "Focus ring" },
90
- { "token": "focus-indicator-gap", "context": "Focus ring" },
91
- {
92
- "token": "rating-top-to-content-area-small",
93
- "context": "Spacing (padding)"
94
- },
95
- {
96
- "token": "rating-top-to-content-area-medium",
97
- "context": "Spacing (padding)"
98
- },
99
- {
100
- "token": "rating-bottom-to-content-area-small",
101
- "context": "Spacing (padding)"
102
- },
103
81
  {
104
- "token": "rating-bottom-to-content-area-medium",
105
- "context": "Spacing (padding)"
82
+ "name": "hover",
83
+ "trigger": "interaction"
106
84
  },
107
85
  {
108
- "token": "rating-edge-to-content-area-small",
109
- "context": "Spacing (padding)"
86
+ "name": "down",
87
+ "trigger": "interaction"
110
88
  },
111
89
  {
112
- "token": "rating-edge-to-content-area-medium",
113
- "context": "Spacing (padding)"
114
- },
115
- { "token": "spacing-75", "context": "Spacing" },
116
- { "token": "neutral-content-color-default", "context": "Default" },
117
- { "token": "accent-content-color-default", "context": "Emphasized" },
118
- { "token": "accent-content-color-hover", "context": "Hover" },
119
- { "token": "neutral-content-color-hover", "context": "Hover" },
120
- { "token": "neutral-content-color-down", "context": "Down" },
121
- { "token": "accent-content-color-down", "context": "Down" },
122
- { "token": "disabled-content-color", "context": "Disabled" }
90
+ "name": "keyboard-focus",
91
+ "trigger": "interaction"
92
+ }
123
93
  ],
94
+ "lifecycle": {
95
+ "introduced": "1.0.0-draft"
96
+ },
124
97
  "accessibility": {
125
98
  "role": "slider",
126
99
  "intents": ["choose"],
127
100
  "focusable": true,
128
101
  "keyboardIntents": ["increment", "decrement"],
129
102
  "wcag": [
130
- { "criterion": "1.3.1", "level": "A", "title": "Info and Relationships" },
131
- { "criterion": "2.1.1", "level": "A", "title": "Keyboard" },
132
- { "criterion": "4.1.2", "level": "A", "title": "Name, Role, Value" }
103
+ {
104
+ "criterion": "1.3.1",
105
+ "level": "A",
106
+ "title": "Info and Relationships"
107
+ },
108
+ {
109
+ "criterion": "2.1.1",
110
+ "level": "A",
111
+ "title": "Keyboard"
112
+ },
113
+ {
114
+ "criterion": "4.1.2",
115
+ "level": "A",
116
+ "title": "Name, Role, Value"
117
+ }
133
118
  ]
134
119
  }
135
120
  }
@@ -104,172 +104,103 @@
104
104
  }
105
105
  ],
106
106
  "options": {
107
- "label": { "type": "string" },
108
- "hideLabel": { "type": "boolean", "default": false },
107
+ "label": {
108
+ "type": "string"
109
+ },
110
+ "hideLabel": {
111
+ "type": "boolean",
112
+ "default": false
113
+ },
109
114
  "icon": {
110
115
  "$ref": "https://opensource.adobe.com/spectrum-design-data/schemas/types/workflow-icon.json",
111
116
  "description": "Icon must be present if the label is not defined."
112
117
  },
113
- "value": { "type": "string" },
114
- "width": { "type": "number" },
118
+ "value": {
119
+ "type": "string"
120
+ },
121
+ "width": {
122
+ "type": "number"
123
+ },
115
124
  "size": {
116
125
  "type": "string",
117
126
  "default": "m",
118
127
  "pattern": "^(x?s|m|x{0,3}l)$",
119
128
  "values": [
120
- { "value": "s" },
121
- { "value": "m" },
122
- { "value": "l" },
123
- { "value": "xl" }
129
+ {
130
+ "value": "s"
131
+ },
132
+ {
133
+ "value": "m"
134
+ },
135
+ {
136
+ "value": "l"
137
+ },
138
+ {
139
+ "value": "xl"
140
+ }
124
141
  ]
125
142
  },
126
- "helpText": { "type": "string" },
127
- "placeholder": { "type": "string" },
128
- "isDisabled": { "type": "boolean", "default": false }
129
- },
130
- "states": [
131
- { "name": "down", "trigger": "interaction" },
132
- { "name": "hover", "trigger": "interaction" },
133
- { "name": "focus-+-hover", "trigger": "prop" },
134
- { "name": "focus-+-not-hover", "trigger": "prop" },
135
- { "name": "keyboard-focus", "trigger": "interaction" }
136
- ],
137
- "lifecycle": { "introduced": "1.0.0-draft" },
138
- "tokenBindings": [
139
- {
140
- "token": "search-field-minimum-width-multiplier",
141
- "context": "Width (minimum)"
142
- },
143
- { "token": "field-width", "context": "Width (default)" },
144
- { "token": "component-height-75", "context": "Height" },
145
- { "token": "component-height-100", "context": "Height" },
146
- { "token": "component-height-200", "context": "Height" },
147
- { "token": "component-height-300", "context": "Height" },
148
- {
149
- "token": "help-text-to-component",
150
- "context": "Spacing (search field to help text)"
151
- },
152
- { "token": "corner-radius-full", "context": "Rounding" },
153
- { "token": "border-width-200", "context": "Border" },
154
- { "token": "workflow-icon-size-75", "context": "Icon" },
155
- { "token": "workflow-icon-size-100", "context": "Icon" },
156
- { "token": "workflow-icon-size-200", "context": "Icon" },
157
- { "token": "workflow-icon-size-300", "context": "Icon" },
158
- {
159
- "token": "component-pill-edge-to-text-75",
160
- "context": "Spacing (start/end edge to text)"
161
- },
162
- {
163
- "token": "component-pill-edge-to-text-100",
164
- "context": "Spacing (start/end edge to text)"
143
+ "helpText": {
144
+ "type": "string"
165
145
  },
166
- {
167
- "token": "component-pill-edge-to-text-200",
168
- "context": "Spacing (start/end edge to text)"
169
- },
170
- {
171
- "token": "component-pill-edge-to-text-300",
172
- "context": "Spacing (start/end edge to text)"
173
- },
174
- {
175
- "token": "component-pill-edge-to-visual-75",
176
- "context": "Spacing (start/end edge to text)"
177
- },
178
- {
179
- "token": "component-pill-edge-to-visual-100",
180
- "context": "Spacing (start/end edge to text)"
181
- },
182
- {
183
- "token": "component-pill-edge-to-visual-200",
184
- "context": "Spacing (start/end edge to text)"
185
- },
186
- {
187
- "token": "component-pill-edge-to-visual-300",
188
- "context": "Spacing (start/end edge to text)"
189
- },
190
- { "token": "text-to-visual-75", "context": "Spacing (icon to text)" },
191
- { "token": "text-to-visual-100", "context": "Spacing (icon to text)" },
192
- { "token": "text-to-visual-200", "context": "Spacing (icon to text)" },
193
- { "token": "text-to-visual-300", "context": "Spacing (icon to text)" },
194
- {
195
- "token": "component-top-to-workflow-icon-75",
196
- "context": "Spacing (top edge to icon)"
197
- },
198
- {
199
- "token": "component-top-to-workflow-icon-100",
200
- "context": "Spacing (top edge to icon)"
201
- },
202
- {
203
- "token": "component-top-to-workflow-icon-200",
204
- "context": "Spacing (top edge to icon)"
205
- },
206
- {
207
- "token": "component-top-to-workflow-icon-300",
208
- "context": "Spacing (top edge to icon)"
209
- },
210
- { "token": "focus-indicator-thickness", "context": "Focus indicator" },
211
- { "token": "focus-indicator-gap", "context": "Focus indicator" },
212
- { "token": "default-font-family", "context": "Label" },
213
- { "token": "regular-font-weight", "context": "Label" },
214
- { "token": "default-font-style", "context": "Label" },
215
- { "token": "component-s-regular", "context": "Label" },
216
- { "token": "component-m-regular", "context": "Label" },
217
- { "token": "component-l-regular", "context": "Label" },
218
- { "token": "component-xl-regular", "context": "Label" },
219
- { "token": "line-height-font-size-75", "context": "Label" },
220
- { "token": "line-height-font-size-100", "context": "Label" },
221
- { "token": "line-height-font-size-200", "context": "Label" },
222
- { "token": "line-height-font-size-300", "context": "Label" },
223
- { "token": "cjk-line-height-100", "context": "Label" },
224
- { "token": "gray-25", "context": "Background and border" },
225
- { "token": "gray-300", "context": "Background and border" },
226
- { "token": "gray-400", "context": "Background and border" },
227
- { "token": "gray-900", "context": "Background and border" },
228
- { "token": "gray-800", "context": "Background and border" },
229
- {
230
- "token": "neutral-content-color-default",
231
- "context": "Value, label and icon"
232
- },
233
- {
234
- "token": "neutral-content-color-hover",
235
- "context": "Value, label and icon"
146
+ "placeholder": {
147
+ "type": "string"
236
148
  },
149
+ "isDisabled": {
150
+ "type": "boolean",
151
+ "default": false
152
+ }
153
+ },
154
+ "states": [
237
155
  {
238
- "token": "neutral-content-color-focus-hover",
239
- "context": "Value, label and icon"
156
+ "name": "down",
157
+ "trigger": "interaction"
240
158
  },
241
159
  {
242
- "token": "neutral-content-color-focus",
243
- "context": "Value, label and icon"
160
+ "name": "hover",
161
+ "trigger": "interaction"
244
162
  },
245
163
  {
246
- "token": "neutral-content-color-key-focus",
247
- "context": "Value, label and icon"
164
+ "name": "focus-+-hover",
165
+ "trigger": "prop"
248
166
  },
249
- { "token": "gray-600", "context": "Value, label and icon" },
250
167
  {
251
- "token": "disabled-content-color",
252
- "context": "Background and border (disabled)"
168
+ "name": "focus-+-not-hover",
169
+ "trigger": "prop"
253
170
  },
254
171
  {
255
- "token": "disabled-border-color",
256
- "context": "Background and border (disabled)"
257
- },
258
- { "token": "focus-indicator-color", "context": "Focus ring" }
172
+ "name": "keyboard-focus",
173
+ "trigger": "interaction"
174
+ }
259
175
  ],
176
+ "lifecycle": {
177
+ "introduced": "1.0.0-draft"
178
+ },
260
179
  "accessibility": {
261
180
  "role": "textbox",
262
181
  "intents": ["input"],
263
182
  "focusable": true,
264
183
  "wcag": [
265
- { "criterion": "1.3.1", "level": "A", "title": "Info and Relationships" },
184
+ {
185
+ "criterion": "1.3.1",
186
+ "level": "A",
187
+ "title": "Info and Relationships"
188
+ },
266
189
  {
267
190
  "criterion": "1.3.5",
268
191
  "level": "AA",
269
192
  "title": "Identify Input Purpose"
270
193
  },
271
- { "criterion": "2.1.1", "level": "A", "title": "Keyboard" },
272
- { "criterion": "4.1.2", "level": "A", "title": "Name, Role, Value" }
194
+ {
195
+ "criterion": "2.1.1",
196
+ "level": "A",
197
+ "title": "Keyboard"
198
+ },
199
+ {
200
+ "criterion": "4.1.2",
201
+ "level": "A",
202
+ "title": "Name, Role, Value"
203
+ }
273
204
  ]
274
205
  }
275
206
  }
@@ -83,7 +83,14 @@
83
83
  "orientation": {
84
84
  "type": "string",
85
85
  "default": "horizontal",
86
- "values": [{ "value": "horizontal" }, { "value": "vertical" }]
86
+ "values": [
87
+ {
88
+ "value": "horizontal"
89
+ },
90
+ {
91
+ "value": "vertical"
92
+ }
93
+ ]
87
94
  },
88
95
  "isFluid": {
89
96
  "type": "boolean",
@@ -93,7 +100,14 @@
93
100
  "alignment": {
94
101
  "type": "string",
95
102
  "default": "start",
96
- "values": [{ "value": "start" }, { "value": "center" }]
103
+ "values": [
104
+ {
105
+ "value": "start"
106
+ },
107
+ {
108
+ "value": "center"
109
+ }
110
+ ]
97
111
  },
98
112
  "hideTracker": {
99
113
  "type": "boolean",
@@ -107,7 +121,14 @@
107
121
  "keyboardActivation": {
108
122
  "type": "string",
109
123
  "default": "manual",
110
- "values": [{ "value": "manual" }, { "value": "automatic" }]
124
+ "values": [
125
+ {
126
+ "value": "manual"
127
+ },
128
+ {
129
+ "value": "automatic"
130
+ }
131
+ ]
111
132
  },
112
133
  "items": {
113
134
  "type": "array",
@@ -140,94 +161,24 @@
140
161
  }
141
162
  }
142
163
  },
143
- "lifecycle": { "introduced": "1.0.0-draft" },
144
- "tokenBindings": [
145
- { "token": "segmented-control-item-height", "context": "Height " },
146
- { "token": "corner-radius-medium-default", "context": "Corner radius" },
147
- { "token": "workflow-icon-size-100", "context": "Icon " },
148
- {
149
- "token": "component-edge-to-visual-only-100",
150
- "context": "Spacing (top/bottom to edge, workflow icon only)"
151
- },
152
- { "token": "text-to-visual-100", "context": "Spacing (icon to label)" },
153
- {
154
- "token": "component-edge-to-visual-100",
155
- "context": "Spacing (start/end edges, workflow icon with label)"
156
- },
157
- {
158
- "token": "component-edge-to-text-100",
159
- "context": "Spacing (start/end edges, workflow icon with label)"
160
- },
161
- {
162
- "token": "component-top-to-text-100",
163
- "context": "Spacing (top/bottom to edge, workflow icon with label)"
164
- },
165
- {
166
- "token": "component-bottom-to-text-100",
167
- "context": "Spacing (top/bottom to edge, workflow icon with label)"
168
- },
169
- {
170
- "token": "component-top-to-workflow-icon-100",
171
- "context": "Spacing (top/bottom edge to icon, workflow icon with label)"
172
- },
173
- {
174
- "token": "spacing-50",
175
- "context": "Spacing (between segmented control items)"
176
- },
177
- {
178
- "token": "spacing-75",
179
- "context": "Spacing (between segmented control items)"
180
- },
181
- { "token": "focus-indicator-thickness", "context": "Focus ring" },
182
- { "token": "focus-indicator-gap", "context": "Focus ring" },
183
- {
184
- "token": "segmented-control-selection-border-width",
185
- "context": "Selection border"
186
- },
187
- { "token": "gray-600", "context": "Segmented control items (no track)" },
188
- {
189
- "token": "neutral-subdued-content-color-hover",
190
- "context": "Segmented control items (no track)"
191
- },
192
- {
193
- "token": "neutral-subdued-content-color-key-focus",
194
- "context": "Segmented control items (no track)"
195
- },
196
- {
197
- "token": "neutral-content-color-default",
198
- "context": "Segmented control items (no track)"
199
- },
200
- {
201
- "token": "neutral-content-color-hover",
202
- "context": "Segmented control items (no track)"
203
- },
204
- {
205
- "token": "neutral-content-color-key-focus",
206
- "context": "Segmented control items (no track)"
207
- },
208
- { "token": "gray-200", "context": "Segmented control items (no track)" },
209
- {
210
- "token": "neutral-subdued-content-color-default",
211
- "context": "Segmented control items (with track)"
212
- },
213
- { "token": "gray-25", "context": "Segmented control items (with track)" },
214
- { "token": "gray-100", "context": "Segmented control items (with track)" },
215
- { "token": "disabled-content-color", "context": "Disabled" },
216
- { "token": "disabled-background-color", "context": "Disabled" },
217
- { "token": "focus-indicator-color", "context": "Focus ring" },
218
- { "token": "default-font-family", "context": "Label" },
219
- { "token": "default-font-style", "context": "Label" },
220
- { "token": "regular-font-weight", "context": "Label" },
221
- { "token": "font-size-100", "context": "Label" },
222
- { "token": "line-height-100", "context": "Label" }
223
- ],
164
+ "lifecycle": {
165
+ "introduced": "1.0.0-draft"
166
+ },
224
167
  "accessibility": {
225
168
  "intents": ["choose"],
226
169
  "focusable": true,
227
170
  "keyboardIntents": ["navigate-items", "activate"],
228
171
  "wcag": [
229
- { "criterion": "2.1.1", "level": "A", "title": "Keyboard" },
230
- { "criterion": "4.1.2", "level": "A", "title": "Name, Role, Value" }
172
+ {
173
+ "criterion": "2.1.1",
174
+ "level": "A",
175
+ "title": "Keyboard"
176
+ },
177
+ {
178
+ "criterion": "4.1.2",
179
+ "level": "A",
180
+ "title": "Name, Role, Value"
181
+ }
231
182
  ]
232
183
  }
233
184
  }