@adobe/spectrum-design-data 1.0.3 → 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 (79) 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-aliases.tokens.json +9 -7
  73. package/tokens/color-component.tokens.json +1 -1202
  74. package/tokens/color-palette.tokens.json +0 -33
  75. package/tokens/icons.tokens.json +3 -1
  76. package/tokens/layout-component.tokens.json +1044 -22359
  77. package/tokens/layout.tokens.json +1287 -1292
  78. package/tokens/semantic-color-palette.tokens.json +12 -4
  79. package/tokens/typography.tokens.json +559 -3212
@@ -75,20 +75,43 @@
75
75
  "variant": {
76
76
  "type": "string",
77
77
  "default": "default",
78
- "values": [{ "value": "default" }, { "value": "over background" }]
78
+ "values": [
79
+ {
80
+ "value": "default"
81
+ },
82
+ {
83
+ "value": "over background"
84
+ }
85
+ ]
79
86
  },
80
87
  "staticColor": {
81
88
  "type": "string",
82
89
  "description": "Static color can only be white, otherwise it is default.",
83
- "values": [{ "value": "white" }]
90
+ "values": [
91
+ {
92
+ "value": "white"
93
+ }
94
+ ]
95
+ },
96
+ "label": {
97
+ "type": "string"
84
98
  },
85
- "label": { "type": "string" },
86
99
  "labelPosition": {
87
100
  "type": "string",
88
101
  "default": "top",
89
- "values": [{ "value": "top" }, { "value": "side" }]
102
+ "values": [
103
+ {
104
+ "value": "top"
105
+ },
106
+ {
107
+ "value": "side"
108
+ }
109
+ ]
110
+ },
111
+ "hideLabel": {
112
+ "type": "boolean",
113
+ "default": false
90
114
  },
91
- "hideLabel": { "type": "boolean", "default": false },
92
115
  "value": {
93
116
  "type": "number",
94
117
  "description": "Not applicable when indeterminate."
@@ -103,90 +126,52 @@
103
126
  "default": 1,
104
127
  "description": "Not applicable when indeterminate."
105
128
  },
106
- "valueLabel": { "type": "string" },
107
- "width": { "type": "number" },
129
+ "valueLabel": {
130
+ "type": "string"
131
+ },
132
+ "width": {
133
+ "type": "number"
134
+ },
108
135
  "size": {
109
136
  "type": "string",
110
137
  "default": "m",
111
138
  "values": [
112
- { "value": "s" },
113
- { "value": "m" },
114
- { "value": "l" },
115
- { "value": "xl" }
139
+ {
140
+ "value": "s"
141
+ },
142
+ {
143
+ "value": "m"
144
+ },
145
+ {
146
+ "value": "l"
147
+ },
148
+ {
149
+ "value": "xl"
150
+ }
116
151
  ]
117
152
  },
118
- "isIndeterminate": { "type": "boolean", "default": false }
119
- },
120
- "lifecycle": { "introduced": "1.0.0-draft" },
121
- "tokenBindings": [
122
- { "token": "progress-bar-minimum-width", "context": "Minimum width" },
123
- { "token": "progress-bar-maximum-width", "context": "Maximum width" },
124
- {
125
- "token": "spacing-75",
126
- "context": "Spacing (field label to progress bar)"
127
- },
128
- {
129
- "token": "spacing-200",
130
- "context": "Minimum spacing (field label to text)"
131
- },
132
- {
133
- "token": "component-top-to-text-75",
134
- "context": "Spacing (top edge to text)"
135
- },
136
- {
137
- "token": "component-top-to-text-100",
138
- "context": "Spacing (top edge to text)"
139
- },
140
- {
141
- "token": "component-top-to-text-200",
142
- "context": "Spacing (top edge to text)"
143
- },
144
- {
145
- "token": "component-top-to-text-300",
146
- "context": "Spacing (top edge to text)"
147
- },
148
- { "token": "progress-bar-thickness-small", "context": "Thickness (track)" },
149
- {
150
- "token": "progress-bar-thickness-medium",
151
- "context": "Thickness (track)"
152
- },
153
- { "token": "progress-bar-thickness-large", "context": "Thickness (track)" },
154
- {
155
- "token": "progress-bar-thickness-extra-large",
156
- "context": "Thickness (track)"
157
- },
158
- { "token": "corner-radius-full", "context": "Rounding" },
159
- { "token": "default-font-family", "context": "Value" },
160
- { "token": "regular-font-weight", "context": "Value" },
161
- { "token": "default-font-style", "context": "Value" },
162
- { "token": "font-size-75", "context": "Value" },
163
- { "token": "font-size-100", "context": "Value" },
164
- { "token": "font-size-200", "context": "Value" },
165
- { "token": "font-size-300", "context": "Value" },
166
- { "token": "line-height-100", "context": "Value" },
167
- { "token": "cjk-line-height-100", "context": "Value" },
168
- { "token": "neutral-subdued-content-color-default", "context": "Text" },
169
- { "token": "track-color", "context": "Track and indicator" },
170
- {
171
- "token": "accent-content-color-default",
172
- "context": "Track and indicator"
173
- },
174
- { "token": "static-white-text-color", "context": "Text (white)" },
175
- {
176
- "token": "static-white-track-color",
177
- "context": "Track and indicator (white)"
178
- },
179
- {
180
- "token": "static-white-track-indicator-color",
181
- "context": "Track and indicator (white)"
153
+ "isIndeterminate": {
154
+ "type": "boolean",
155
+ "default": false
182
156
  }
183
- ],
157
+ },
158
+ "lifecycle": {
159
+ "introduced": "1.0.0-draft"
160
+ },
184
161
  "accessibility": {
185
162
  "role": "progressbar",
186
163
  "focusable": false,
187
164
  "wcag": [
188
- { "criterion": "4.1.2", "level": "A", "title": "Name, Role, Value" },
189
- { "criterion": "4.1.3", "level": "AA", "title": "Status Messages" }
165
+ {
166
+ "criterion": "4.1.2",
167
+ "level": "A",
168
+ "title": "Name, Role, Value"
169
+ },
170
+ {
171
+ "criterion": "4.1.3",
172
+ "level": "AA",
173
+ "title": "Status Messages"
174
+ }
190
175
  ]
191
176
  }
192
177
  }
@@ -43,7 +43,14 @@
43
43
  "variant": {
44
44
  "type": "string",
45
45
  "default": "default",
46
- "values": [{ "value": "default" }, { "value": "over background" }]
46
+ "values": [
47
+ {
48
+ "value": "default"
49
+ },
50
+ {
51
+ "value": "over background"
52
+ }
53
+ ]
47
54
  },
48
55
  "value": {
49
56
  "type": "number",
@@ -62,44 +69,40 @@
62
69
  "size": {
63
70
  "type": "string",
64
71
  "default": "m",
65
- "values": [{ "value": "s" }, { "value": "m" }, { "value": "l" }]
72
+ "values": [
73
+ {
74
+ "value": "s"
75
+ },
76
+ {
77
+ "value": "m"
78
+ },
79
+ {
80
+ "value": "l"
81
+ }
82
+ ]
66
83
  },
67
- "isIndeterminate": { "type": "boolean", "default": false }
68
- },
69
- "lifecycle": { "introduced": "1.0.0-draft" },
70
- "tokenBindings": [
71
- { "token": "progress-circle-size-small", "context": "Size" },
72
- { "token": "progress-circle-size-medium", "context": "Size" },
73
- { "token": "progress-circle-size-large", "context": "Size" },
74
- { "token": "progress-circle-thickness-small", "context": "Thickness" },
75
- { "token": "progress-circle-thickness-medium", "context": "Thickness" },
76
- { "token": "progress-circle-thickness-large", "context": "Thickness" },
77
- { "token": "corner-radius-full", "context": "Rounding (fill)" },
78
- { "token": "track-color", "context": "Track and fill" },
79
- { "token": "accent-content-color-default", "context": "Track and fill" },
80
- {
81
- "token": "static-white-track-color",
82
- "context": "Track and fill (white)"
83
- },
84
- {
85
- "token": "static-white-track-indicator-color",
86
- "context": "Track and fill (white)"
87
- },
88
- {
89
- "token": "static-black-track-color",
90
- "context": "Track and fill (black)"
91
- },
92
- {
93
- "token": "static-black-track-indicator-color",
94
- "context": "Track and fill (black)"
84
+ "isIndeterminate": {
85
+ "type": "boolean",
86
+ "default": false
95
87
  }
96
- ],
88
+ },
89
+ "lifecycle": {
90
+ "introduced": "1.0.0-draft"
91
+ },
97
92
  "accessibility": {
98
93
  "role": "progressbar",
99
94
  "focusable": false,
100
95
  "wcag": [
101
- { "criterion": "4.1.2", "level": "A", "title": "Name, Role, Value" },
102
- { "criterion": "4.1.3", "level": "AA", "title": "Status Messages" }
96
+ {
97
+ "criterion": "4.1.2",
98
+ "level": "A",
99
+ "title": "Name, Role, Value"
100
+ },
101
+ {
102
+ "criterion": "4.1.3",
103
+ "level": "AA",
104
+ "title": "Status Messages"
105
+ }
103
106
  ]
104
107
  }
105
108
  }
@@ -60,52 +60,37 @@
60
60
  }
61
61
  ],
62
62
  "options": {
63
- "isSelected": { "type": "boolean", "default": false },
64
- "isEmphasized": { "type": "boolean", "default": false },
63
+ "isSelected": {
64
+ "type": "boolean",
65
+ "default": false
66
+ },
67
+ "isEmphasized": {
68
+ "type": "boolean",
69
+ "default": false
70
+ },
65
71
  "label": {
66
72
  "type": "string",
67
73
  "description": "The text displayed next to a radio button."
68
74
  }
69
75
  },
70
76
  "states": [
71
- { "name": "hover", "trigger": "interaction" },
72
- { "name": "down", "trigger": "interaction" },
73
- { "name": "keyboard-focus", "trigger": "interaction" }
74
- ],
75
- "lifecycle": { "introduced": "1.0.0-draft" },
76
- "tokenBindings": [
77
- {
78
- "token": "radio-button-control-size-small",
79
- "context": "S2 Control (size)"
80
- },
81
- {
82
- "token": "radio-button-control-size-medium",
83
- "context": "S2 Control (size)"
84
- },
85
77
  {
86
- "token": "radio-button-control-size-large",
87
- "context": "S2 Control (size)"
78
+ "name": "hover",
79
+ "trigger": "interaction"
88
80
  },
89
81
  {
90
- "token": "radio-button-control-size-extra-large",
91
- "context": "S2 Control (size)"
82
+ "name": "down",
83
+ "trigger": "interaction"
92
84
  },
93
85
  {
94
- "token": "radio-button-top-to-control-small",
95
- "context": "S2 Spacing (top edge to control)"
96
- },
97
- {
98
- "token": "radio-button-top-to-control-medium",
99
- "context": "S2 Spacing (top edge to control)"
100
- },
101
- {
102
- "token": "radio-button-top-to-control-large",
103
- "context": "S2 Spacing (top edge to control)"
104
- },
105
- {
106
- "token": "radio-button-top-to-control-extra-large",
107
- "context": "S2 Spacing (top edge to control)"
108
- },
86
+ "name": "keyboard-focus",
87
+ "trigger": "interaction"
88
+ }
89
+ ],
90
+ "lifecycle": {
91
+ "introduced": "1.0.0-draft"
92
+ },
93
+ "tokenBindings": [
109
94
  {
110
95
  "token": "neutral-content-color-selected-default",
111
96
  "context": "S2 Control (selected, non emphasized)"
@@ -117,113 +102,7 @@
117
102
  {
118
103
  "token": "neutral-content-color-selected-key-focus",
119
104
  "context": "S2 Control (selected, non emphasized)"
120
- },
121
- {
122
- "token": "neutral-background-color-selected-default",
123
- "context": "S1 Control (selected, non emphasized)"
124
- },
125
- {
126
- "token": "neutral-background-color-selected-hover",
127
- "context": "S1 Control (selected, non emphasized)"
128
- },
129
- {
130
- "token": "neutral-background-color-selected-key-focus",
131
- "context": "S1 Control (selected, non emphasized)"
132
- },
133
- { "token": "component-height-75", "context": "Minimum height" },
134
- { "token": "component-height-100", "context": "Minimum height" },
135
- { "token": "component-height-200", "context": "Minimum height" },
136
- { "token": "component-height-300", "context": "Minimum height" },
137
- {
138
- "token": "component-size-difference-down",
139
- "context": "Component size (down)"
140
- },
141
- {
142
- "token": "component-size-width-ratio-down",
143
- "context": "Component size (down)"
144
- },
145
- {
146
- "token": "component-size-minimum-perspective-down",
147
- "context": "Component size (down)"
148
- },
149
- { "token": "border-width-200", "context": "Control (border)" },
150
- { "token": "text-to-control-75", "context": "Spacing (control to label)" },
151
- { "token": "text-to-control-100", "context": "Spacing (control to label)" },
152
- { "token": "text-to-control-200", "context": "Spacing (control to label)" },
153
- { "token": "text-to-control-300", "context": "Spacing (control to label)" },
154
- {
155
- "token": "component-top-to-text-75",
156
- "context": "Spacing (top/bottom edge to label)"
157
- },
158
- {
159
- "token": "component-top-to-text-100",
160
- "context": "Spacing (top/bottom edge to label)"
161
- },
162
- {
163
- "token": "component-top-to-text-200",
164
- "context": "Spacing (top/bottom edge to label)"
165
- },
166
- {
167
- "token": "component-top-to-text-300",
168
- "context": "Spacing (top/bottom edge to label)"
169
- },
170
- {
171
- "token": "component-bottom-to-text-75",
172
- "context": "Spacing (top/bottom edge to label)"
173
- },
174
- {
175
- "token": "component-bottom-to-text-100",
176
- "context": "Spacing (top/bottom edge to label)"
177
- },
178
- {
179
- "token": "component-bottom-to-text-200",
180
- "context": "Spacing (top/bottom edge to label)"
181
- },
182
- {
183
- "token": "component-bottom-to-text-300",
184
- "context": "Spacing (top/bottom edge to label)"
185
- },
186
- { "token": "focus-indicator-thickness", "context": "Focus ring" },
187
- { "token": "focus-indicator-gap", "context": "Focus ring" },
188
- {
189
- "token": "radio-button-selection-indicator",
190
- "context": "Selection indicator"
191
- },
192
- { "token": "spacing-300", "context": "Radio group spacing (horizontal)" },
193
- { "token": "neutral-content-color-default", "context": "Label" },
194
- { "token": "neutral-content-color-hover", "context": "Label" },
195
- { "token": "neutral-content-color-down", "context": "Label" },
196
- { "token": "neutral-content-color-key-focus", "context": "Label" },
197
- { "token": "gray-25", "context": "Control" },
198
- {
199
- "token": "accent-content-color-default",
200
- "context": "Control (selected, emphasized)"
201
- },
202
- {
203
- "token": "accent-content-color-hover",
204
- "context": "Control (selected, emphasized)"
205
- },
206
- {
207
- "token": "accent-content-color-down",
208
- "context": "Control (selected, emphasized)"
209
- },
210
- {
211
- "token": "accent-content-color-key-focus",
212
- "context": "Control (selected, emphasized)"
213
- },
214
- { "token": "disabled-content-color", "context": "Label (disabled)" },
215
- { "token": "focus-indicator-color", "context": "Focus ring" },
216
- { "token": "negative-color-900", "context": "Radio button colors" },
217
- { "token": "negative-color-1000", "context": "Radio button colors" },
218
- { "token": "default-font-family", "context": "Label" },
219
- { "token": "regular-font-weight", "context": "Label" },
220
- { "token": "default-font-style", "context": "Label" },
221
- { "token": "font-size-75", "context": "Label" },
222
- { "token": "font-size-100", "context": "Label" },
223
- { "token": "font-size-200", "context": "Label" },
224
- { "token": "font-size-300", "context": "Label" },
225
- { "token": "line-height-100", "context": "Label" },
226
- { "token": "cjk-line-height-100", "context": "Label" }
105
+ }
227
106
  ],
228
107
  "accessibility": {
229
108
  "role": "radio",
@@ -231,9 +110,21 @@
231
110
  "focusable": true,
232
111
  "keyboardIntents": ["activate"],
233
112
  "wcag": [
234
- { "criterion": "1.3.1", "level": "A", "title": "Info and Relationships" },
235
- { "criterion": "2.1.1", "level": "A", "title": "Keyboard" },
236
- { "criterion": "4.1.2", "level": "A", "title": "Name, Role, Value" }
113
+ {
114
+ "criterion": "1.3.1",
115
+ "level": "A",
116
+ "title": "Info and Relationships"
117
+ },
118
+ {
119
+ "criterion": "2.1.1",
120
+ "level": "A",
121
+ "title": "Keyboard"
122
+ },
123
+ {
124
+ "criterion": "4.1.2",
125
+ "level": "A",
126
+ "title": "Name, Role, Value"
127
+ }
237
128
  ]
238
129
  }
239
130
  }
@@ -100,47 +100,103 @@
100
100
  }
101
101
  ],
102
102
  "options": {
103
- "label": { "type": "string" },
103
+ "label": {
104
+ "type": "string"
105
+ },
104
106
  "labelPosition": {
105
107
  "type": "string",
106
108
  "default": "top",
107
- "values": [{ "value": "top" }, { "value": "side" }]
109
+ "values": [
110
+ {
111
+ "value": "top"
112
+ },
113
+ {
114
+ "value": "side"
115
+ }
116
+ ]
108
117
  },
109
118
  "orientation": {
110
119
  "type": "string",
111
120
  "default": "vertical",
112
- "values": [{ "value": "horizontal" }, { "value": "vertical" }]
121
+ "values": [
122
+ {
123
+ "value": "horizontal"
124
+ },
125
+ {
126
+ "value": "vertical"
127
+ }
128
+ ]
113
129
  },
114
130
  "size": {
115
131
  "type": "string",
116
132
  "default": "m",
117
133
  "values": [
118
- { "value": "s" },
119
- { "value": "m" },
120
- { "value": "l" },
121
- { "value": "xl" }
134
+ {
135
+ "value": "s"
136
+ },
137
+ {
138
+ "value": "m"
139
+ },
140
+ {
141
+ "value": "l"
142
+ },
143
+ {
144
+ "value": "xl"
145
+ }
122
146
  ]
123
147
  },
124
- "isEmphasized": { "type": "boolean", "default": false },
148
+ "isEmphasized": {
149
+ "type": "boolean",
150
+ "default": false
151
+ },
125
152
  "necessityIndicator": {
126
153
  "type": "string",
127
154
  "default": "icon",
128
- "values": [{ "value": "text" }, { "value": "icon" }]
155
+ "values": [
156
+ {
157
+ "value": "text"
158
+ },
159
+ {
160
+ "value": "icon"
161
+ }
162
+ ]
163
+ },
164
+ "isRequired": {
165
+ "type": "boolean",
166
+ "default": false
167
+ },
168
+ "isError": {
169
+ "type": "boolean",
170
+ "default": false
171
+ },
172
+ "isDisabled": {
173
+ "type": "boolean",
174
+ "default": false
129
175
  },
130
- "isRequired": { "type": "boolean", "default": false },
131
- "isError": { "type": "boolean", "default": false },
132
- "isDisabled": { "type": "boolean", "default": false },
133
- "errorMessage": { "type": "string" },
134
- "description": { "type": "string" }
176
+ "errorMessage": {
177
+ "type": "string"
178
+ },
179
+ "description": {
180
+ "type": "string"
181
+ }
182
+ },
183
+ "lifecycle": {
184
+ "introduced": "1.0.0-draft"
135
185
  },
136
- "lifecycle": { "introduced": "1.0.0-draft" },
137
- "tokenBindings": [],
138
186
  "accessibility": {
139
187
  "intents": ["choose"],
140
188
  "focusable": false,
141
189
  "wcag": [
142
- { "criterion": "1.3.1", "level": "A", "title": "Info and Relationships" },
143
- { "criterion": "4.1.2", "level": "A", "title": "Name, Role, Value" }
190
+ {
191
+ "criterion": "1.3.1",
192
+ "level": "A",
193
+ "title": "Info and Relationships"
194
+ },
195
+ {
196
+ "criterion": "4.1.2",
197
+ "level": "A",
198
+ "title": "Name, Role, Value"
199
+ }
144
200
  ]
145
201
  }
146
202
  }