@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.
- 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-aliases.tokens.json +9 -7
- package/tokens/color-component.tokens.json +1 -1202
- package/tokens/color-palette.tokens.json +0 -33
- package/tokens/icons.tokens.json +3 -1
- package/tokens/layout-component.tokens.json +1044 -22359
- package/tokens/layout.tokens.json +1287 -1292
- package/tokens/semantic-color-palette.tokens.json +12 -4
- package/tokens/typography.tokens.json +559 -3212
|
@@ -84,17 +84,40 @@
|
|
|
84
84
|
}
|
|
85
85
|
],
|
|
86
86
|
"options": {
|
|
87
|
-
"label": {
|
|
87
|
+
"label": {
|
|
88
|
+
"type": "string"
|
|
89
|
+
},
|
|
88
90
|
"orientation": {
|
|
89
91
|
"type": "string",
|
|
90
92
|
"default": "vertical",
|
|
91
|
-
"values": [
|
|
93
|
+
"values": [
|
|
94
|
+
{
|
|
95
|
+
"value": "horizontal"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"value": "vertical"
|
|
99
|
+
}
|
|
100
|
+
]
|
|
101
|
+
},
|
|
102
|
+
"body": {
|
|
103
|
+
"type": "string"
|
|
104
|
+
},
|
|
105
|
+
"isSelected": {
|
|
106
|
+
"type": "boolean",
|
|
107
|
+
"default": false
|
|
108
|
+
},
|
|
109
|
+
"hideIllustration": {
|
|
110
|
+
"type": "boolean",
|
|
111
|
+
"default": false
|
|
112
|
+
},
|
|
113
|
+
"showCheckbox": {
|
|
114
|
+
"type": "boolean",
|
|
115
|
+
"default": false
|
|
116
|
+
},
|
|
117
|
+
"isDisabled": {
|
|
118
|
+
"type": "boolean",
|
|
119
|
+
"default": false
|
|
92
120
|
},
|
|
93
|
-
"body": { "type": "string" },
|
|
94
|
-
"isSelected": { "type": "boolean", "default": false },
|
|
95
|
-
"hideIllustration": { "type": "boolean", "default": false },
|
|
96
|
-
"showCheckbox": { "type": "boolean", "default": false },
|
|
97
|
-
"isDisabled": { "type": "boolean", "default": false },
|
|
98
121
|
"multiple": {
|
|
99
122
|
"type": "boolean",
|
|
100
123
|
"default": false,
|
|
@@ -102,112 +125,41 @@
|
|
|
102
125
|
}
|
|
103
126
|
},
|
|
104
127
|
"states": [
|
|
105
|
-
{ "name": "down", "trigger": "interaction" },
|
|
106
|
-
{ "name": "hover", "trigger": "interaction" },
|
|
107
|
-
{ "name": "keyboard-focus", "trigger": "interaction" },
|
|
108
|
-
{ "name": "selected", "trigger": "interaction" }
|
|
109
|
-
],
|
|
110
|
-
"lifecycle": { "introduced": "1.0.0-draft" },
|
|
111
|
-
"tokenBindings": [
|
|
112
|
-
{
|
|
113
|
-
"token": "select-box-vertical-height",
|
|
114
|
-
"context": "Component height and width (vertical)"
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"token": "select-box-vertical-edge-to-content",
|
|
118
|
-
"context": "Padding (vertical)"
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
"token": "select-box-vertical-illustration-to-label",
|
|
122
|
-
"context": "Spacing (illustration to text, vertical)"
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"token": "select-box-horizontal-width",
|
|
126
|
-
"context": "Component width (horizontal)"
|
|
127
|
-
},
|
|
128
128
|
{
|
|
129
|
-
"
|
|
130
|
-
"
|
|
129
|
+
"name": "down",
|
|
130
|
+
"trigger": "interaction"
|
|
131
131
|
},
|
|
132
132
|
{
|
|
133
|
-
"
|
|
134
|
-
"
|
|
133
|
+
"name": "hover",
|
|
134
|
+
"trigger": "interaction"
|
|
135
135
|
},
|
|
136
136
|
{
|
|
137
|
-
"
|
|
138
|
-
"
|
|
137
|
+
"name": "keyboard-focus",
|
|
138
|
+
"trigger": "interaction"
|
|
139
139
|
},
|
|
140
140
|
{
|
|
141
|
-
"
|
|
142
|
-
"
|
|
143
|
-
}
|
|
144
|
-
{
|
|
145
|
-
"token": "select-box-horizontal-end-to-content",
|
|
146
|
-
"context": "Padding (horizontal)"
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
"token": "select-box-horizontal-label-to-description",
|
|
150
|
-
"context": "Spacing (label to description, horizontal)"
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
"token": "select-box-horizontal-illustration-to-label",
|
|
154
|
-
"context": "Spacing (illustration to label, horizontal)"
|
|
155
|
-
},
|
|
156
|
-
{ "token": "border-width-200", "context": "Border (Selected)" },
|
|
157
|
-
{ "token": "component-size-difference-down", "context": "Down state" },
|
|
158
|
-
{ "token": "component-size-width-ratio-down", "context": "Down state" },
|
|
159
|
-
{
|
|
160
|
-
"token": "component-size-minimum-perspective-down",
|
|
161
|
-
"context": "Down state"
|
|
162
|
-
},
|
|
163
|
-
{ "token": "focus-indicator-thickness", "context": "Border (Selected)" },
|
|
164
|
-
{ "token": "corner-radius-700", "context": "Border radius" },
|
|
165
|
-
{
|
|
166
|
-
"token": "select-box-edge-to-checkbox",
|
|
167
|
-
"context": "Spacing (top/side edge to checkbox)"
|
|
168
|
-
},
|
|
169
|
-
{ "token": "default-font-family", "context": "Text (vertical)" },
|
|
170
|
-
{ "token": "regular-font-weight", "context": "Text (vertical)" },
|
|
171
|
-
{ "token": "default-font-style", "context": "Text (vertical)" },
|
|
172
|
-
{ "token": "font-size-100", "context": "Text (vertical)" },
|
|
173
|
-
{ "token": "line-height-100", "context": "Text (vertical)" },
|
|
174
|
-
{ "token": "cjk-line-height-100", "context": "Text (vertical)" },
|
|
175
|
-
{ "token": "bold-font-weight", "context": "Text (horizontal)" },
|
|
176
|
-
{ "token": "background-layer-2-color", "context": "Background" },
|
|
177
|
-
{
|
|
178
|
-
"token": "neutral-content-color-default",
|
|
179
|
-
"context": "Illustration color"
|
|
180
|
-
},
|
|
181
|
-
{ "token": "neutral-content-color-hover", "context": "Illustration color" },
|
|
182
|
-
{ "token": "neutral-content-color-focus", "context": "Illustration color" },
|
|
183
|
-
{
|
|
184
|
-
"token": "select-box-selected-border-color",
|
|
185
|
-
"context": "Border (selected)"
|
|
186
|
-
},
|
|
187
|
-
{ "token": "gray-900", "context": "Border (selected)" },
|
|
188
|
-
{ "token": "focus-indicator-color", "context": "Border (focus)" },
|
|
189
|
-
{ "token": "disabled-content-color", "context": "Disabled" },
|
|
190
|
-
{ "token": "disabled-background-color", "context": "Disabled" },
|
|
191
|
-
{ "token": "drop-shadow-emphasized-default-x", "context": "Default" },
|
|
192
|
-
{ "token": "drop-shadow-emphasized-default-y", "context": "Default" },
|
|
193
|
-
{ "token": "drop-shadow-emphasized-default-blur", "context": "Default" },
|
|
194
|
-
{ "token": "drop-shadow-emphasized-default-color", "context": "Default" },
|
|
195
|
-
{ "token": "drop-shadow-emphasized-hover-x", "context": "Hover" },
|
|
196
|
-
{ "token": "drop-shadow-emphasized-hover-y", "context": "Hover" },
|
|
197
|
-
{ "token": "drop-shadow-emphasized-hover-blur", "context": "Hover" },
|
|
198
|
-
{ "token": "drop-shadow-emphasized-hover-color", "context": "Hover" },
|
|
199
|
-
{ "token": "drop-shadow-elevated-x", "context": "Focus" },
|
|
200
|
-
{ "token": "drop-shadow-elevated-y", "context": "Focus" },
|
|
201
|
-
{ "token": "drop-shadow-elevated-blur", "context": "Focus" },
|
|
202
|
-
{ "token": "drop-shadow-elevated-color", "context": "Focus" }
|
|
141
|
+
"name": "selected",
|
|
142
|
+
"trigger": "interaction"
|
|
143
|
+
}
|
|
203
144
|
],
|
|
145
|
+
"lifecycle": {
|
|
146
|
+
"introduced": "1.0.0-draft"
|
|
147
|
+
},
|
|
204
148
|
"accessibility": {
|
|
205
149
|
"intents": ["select"],
|
|
206
150
|
"focusable": true,
|
|
207
151
|
"keyboardIntents": ["activate"],
|
|
208
152
|
"wcag": [
|
|
209
|
-
{
|
|
210
|
-
|
|
153
|
+
{
|
|
154
|
+
"criterion": "2.1.1",
|
|
155
|
+
"level": "A",
|
|
156
|
+
"title": "Keyboard"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"criterion": "4.1.2",
|
|
160
|
+
"level": "A",
|
|
161
|
+
"title": "Name, Role, Value"
|
|
162
|
+
}
|
|
211
163
|
]
|
|
212
164
|
}
|
|
213
165
|
}
|
|
@@ -127,9 +127,15 @@
|
|
|
127
127
|
"default": "single",
|
|
128
128
|
"description": "How selection is handled for items.",
|
|
129
129
|
"values": [
|
|
130
|
-
{
|
|
131
|
-
|
|
132
|
-
|
|
130
|
+
{
|
|
131
|
+
"value": "none"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"value": "single"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"value": "multiple"
|
|
138
|
+
}
|
|
133
139
|
]
|
|
134
140
|
}
|
|
135
141
|
},
|
|
@@ -138,180 +144,42 @@
|
|
|
138
144
|
"name": "trailing-accessory-area",
|
|
139
145
|
"description": "Trailing area for accessory content such as counts or actions."
|
|
140
146
|
},
|
|
141
|
-
{
|
|
147
|
+
{
|
|
148
|
+
"name": "indicator"
|
|
149
|
+
}
|
|
142
150
|
],
|
|
143
151
|
"states": [
|
|
144
|
-
{ "name": "hover", "trigger": "interaction" },
|
|
145
|
-
{ "name": "down", "trigger": "interaction" },
|
|
146
|
-
{ "name": "keyboard-focus", "trigger": "interaction" }
|
|
147
|
-
],
|
|
148
|
-
"lifecycle": { "introduced": "1.0.0-draft" },
|
|
149
|
-
"tokenBindings": [
|
|
150
|
-
{ "token": "component-height-100", "context": "Minimum height" },
|
|
151
|
-
{ "token": "side-navigation-width", "context": "Width (default)" },
|
|
152
|
-
{ "token": "side-navigation-minimum-width", "context": "Width (minimum)" },
|
|
153
|
-
{ "token": "side-navigation-maximum-width", "context": "Width (maximum)" },
|
|
154
|
-
{
|
|
155
|
-
"token": "component-size-difference-down",
|
|
156
|
-
"context": "Component size (down)"
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
"token": "component-size-width-ratio-down",
|
|
160
|
-
"context": "Component size (down)"
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
"token": "component-size-minimum-perspective-down",
|
|
164
|
-
"context": "Component size (down)"
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
"token": "side-navigation-indicator-height",
|
|
168
|
-
"context": "Side navigation indicator"
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
"token": "side-navigation-indicator-thickness",
|
|
172
|
-
"context": "Side navigation indicator"
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
"token": "side-navigation-indicator-to-content",
|
|
176
|
-
"context": "Spacing (indicator to content)"
|
|
177
|
-
},
|
|
178
|
-
{ "token": "workflow-icon-size-100", "context": "Icon" },
|
|
179
|
-
{ "token": "text-to-visual-100", "context": "Spacing (icon to label)" },
|
|
180
|
-
{
|
|
181
|
-
"token": "component-edge-to-text-100",
|
|
182
|
-
"context": "Spacing (single-level, start/end to content)"
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
"token": "side-navigation-edge-to-indicator",
|
|
186
|
-
"context": "Spacing (single-level, start/end to content)"
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
"token": "side-navigation-second-level-edge-to-indicator",
|
|
190
|
-
"context": "Spacing (multi-level, no icon, start edge to content)"
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
"token": "side-navigation-third-level-edge-to-indicator",
|
|
194
|
-
"context": "Spacing (multi-level, no icon, start edge to content)"
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
"token": "side-navigation-second-level-with-icon-edge-to-indicator",
|
|
198
|
-
"context": "Spacing (multi-level, no icon, start edge to content)"
|
|
199
|
-
},
|
|
200
152
|
{
|
|
201
|
-
"
|
|
202
|
-
"
|
|
153
|
+
"name": "hover",
|
|
154
|
+
"trigger": "interaction"
|
|
203
155
|
},
|
|
204
156
|
{
|
|
205
|
-
"
|
|
206
|
-
"
|
|
157
|
+
"name": "down",
|
|
158
|
+
"trigger": "interaction"
|
|
207
159
|
},
|
|
208
160
|
{
|
|
209
|
-
"
|
|
210
|
-
"
|
|
211
|
-
}
|
|
212
|
-
{
|
|
213
|
-
"token": "side-navigation-with-icon-second-level-edge-to-text",
|
|
214
|
-
"context": "Spacing (multi-level, no icon, start edge to content)"
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
"token": "side-navigation-with-icon-third-level-edge-to-text",
|
|
218
|
-
"context": "Spacing (multi-level, no icon, start edge to content)"
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
"token": "field-edge-to-disclosure-icon-75",
|
|
222
|
-
"context": "Spacing (edge to disclosure icon)"
|
|
223
|
-
},
|
|
224
|
-
{
|
|
225
|
-
"token": "side-navigation-counter-to-disclosure",
|
|
226
|
-
"context": "Spacing (text to trailing accessory area)"
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
"token": "side-navigation-trailing-accessory-area-to-edge",
|
|
230
|
-
"context": "Spacing (single-level, end to content)"
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
"token": "side-navigation-item-to-item",
|
|
234
|
-
"context": "Spacing (vertically between side-nav items)"
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
"token": "side-navigation-item-to-header",
|
|
238
|
-
"context": "Spacing (vertically between side-nav item and side-nav title)"
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
"token": "side-navigation-header-to-item",
|
|
242
|
-
"context": "Spacing (vertically between side-nav item and side-nav title)"
|
|
243
|
-
},
|
|
244
|
-
{ "token": "component-top-to-workflow-icon-100", "context": "Layout" },
|
|
245
|
-
{
|
|
246
|
-
"token": "component-padding-vertical-100",
|
|
247
|
-
"context": "Spacing (top edge to label)"
|
|
248
|
-
},
|
|
249
|
-
{
|
|
250
|
-
"token": "side-navigation-bottom-to-text",
|
|
251
|
-
"context": "Spacing (label wrapping)"
|
|
252
|
-
},
|
|
253
|
-
{ "token": "focus-indicator-thickness", "context": "Focus indicator" },
|
|
254
|
-
{ "token": "focus-indicator-gap", "context": "Focus indicator" },
|
|
255
|
-
{ "token": "gray-400", "context": "Side navigation indicator " },
|
|
256
|
-
{ "token": "gray-800", "context": "Side navigation indicator " },
|
|
257
|
-
{
|
|
258
|
-
"token": "neutral-subdued-content-color-default",
|
|
259
|
-
"context": "Navigation item label and icon"
|
|
260
|
-
},
|
|
261
|
-
{
|
|
262
|
-
"token": "neutral-subdued-content-color-hover",
|
|
263
|
-
"context": "Navigation item label and icon"
|
|
264
|
-
},
|
|
265
|
-
{
|
|
266
|
-
"token": "neutral-subdued-content-color-down",
|
|
267
|
-
"context": "Navigation item label and icon"
|
|
268
|
-
},
|
|
269
|
-
{
|
|
270
|
-
"token": "neutral-subdued-content-color-key-focus",
|
|
271
|
-
"context": "Navigation item label and icon"
|
|
272
|
-
},
|
|
273
|
-
{
|
|
274
|
-
"token": "neutral-content-color-default",
|
|
275
|
-
"context": "Navigation item label and icon (selected)"
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
"token": "neutral-content-color-hover",
|
|
279
|
-
"context": "Navigation item label and icon (selected)"
|
|
280
|
-
},
|
|
281
|
-
{
|
|
282
|
-
"token": "neutral-content-color-down",
|
|
283
|
-
"context": "Navigation item label and icon (selected)"
|
|
284
|
-
},
|
|
285
|
-
{
|
|
286
|
-
"token": "neutral-content-color-key-focus",
|
|
287
|
-
"context": "Navigation item label and icon (selected)"
|
|
288
|
-
},
|
|
289
|
-
{ "token": "gray-600", "context": "Side navigation title" },
|
|
290
|
-
{
|
|
291
|
-
"token": "disabled-content-color",
|
|
292
|
-
"context": "Label and icon (disabled)"
|
|
293
|
-
},
|
|
294
|
-
{ "token": "focus-indicator-color", "context": "Focus indicator" },
|
|
295
|
-
{ "token": "default-font-family", "context": "Text " },
|
|
296
|
-
{ "token": "regular-font-weight", "context": "Text " },
|
|
297
|
-
{ "token": "default-font-style", "context": "Text " },
|
|
298
|
-
{ "token": "font-size-100", "context": "Text " },
|
|
299
|
-
{ "token": "line-height-100", "context": "Text " },
|
|
300
|
-
{ "token": "cjk-line-height-100", "context": "Text " },
|
|
301
|
-
{ "token": "bold-font-weight", "context": "Text (selected)" },
|
|
302
|
-
{
|
|
303
|
-
"token": "medium-font-weight",
|
|
304
|
-
"context": "Text (Side navigation title)"
|
|
305
|
-
},
|
|
306
|
-
{ "token": "font-size-75", "context": "Text (Side navigation title)" }
|
|
161
|
+
"name": "keyboard-focus",
|
|
162
|
+
"trigger": "interaction"
|
|
163
|
+
}
|
|
307
164
|
],
|
|
165
|
+
"lifecycle": {
|
|
166
|
+
"introduced": "1.0.0-draft"
|
|
167
|
+
},
|
|
308
168
|
"accessibility": {
|
|
309
169
|
"intents": ["navigate"],
|
|
310
170
|
"focusable": true,
|
|
311
171
|
"keyboardIntents": ["navigate-items", "activate"],
|
|
312
172
|
"wcag": [
|
|
313
|
-
{
|
|
314
|
-
|
|
173
|
+
{
|
|
174
|
+
"criterion": "2.1.1",
|
|
175
|
+
"level": "A",
|
|
176
|
+
"title": "Keyboard"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"criterion": "4.1.2",
|
|
180
|
+
"level": "A",
|
|
181
|
+
"title": "Name, Role, Value"
|
|
182
|
+
}
|
|
315
183
|
]
|
|
316
184
|
}
|
|
317
185
|
}
|