@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.
- 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-component.tokens.json +1 -1212
- package/tokens/color-palette.tokens.json +0 -33
- package/tokens/layout-component.tokens.json +833 -24074
- package/tokens/layout.tokens.json +0 -597
- package/tokens/typography.tokens.json +559 -3318
package/components/button.json
CHANGED
|
@@ -75,30 +75,62 @@
|
|
|
75
75
|
"default": "accent",
|
|
76
76
|
"description": "Visual emphasis level.",
|
|
77
77
|
"values": [
|
|
78
|
-
{
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
{
|
|
78
|
+
{
|
|
79
|
+
"value": "accent"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"value": "negative"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"value": "primary"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"value": "secondary"
|
|
89
|
+
}
|
|
82
90
|
]
|
|
83
91
|
},
|
|
84
92
|
"style": {
|
|
85
93
|
"type": "string",
|
|
86
94
|
"default": "fill",
|
|
87
|
-
"values": [
|
|
95
|
+
"values": [
|
|
96
|
+
{
|
|
97
|
+
"value": "fill"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"value": "outline"
|
|
101
|
+
}
|
|
102
|
+
]
|
|
88
103
|
},
|
|
89
104
|
"size": {
|
|
90
105
|
"type": "string",
|
|
91
106
|
"default": "m",
|
|
92
107
|
"values": [
|
|
93
|
-
{
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
{
|
|
108
|
+
{
|
|
109
|
+
"value": "s"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"value": "m"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"value": "l"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"value": "xl"
|
|
119
|
+
}
|
|
97
120
|
]
|
|
98
121
|
},
|
|
99
|
-
"isDisabled": {
|
|
100
|
-
|
|
101
|
-
|
|
122
|
+
"isDisabled": {
|
|
123
|
+
"type": "boolean",
|
|
124
|
+
"default": false
|
|
125
|
+
},
|
|
126
|
+
"isPending": {
|
|
127
|
+
"type": "boolean",
|
|
128
|
+
"default": false
|
|
129
|
+
},
|
|
130
|
+
"isLabelHidden": {
|
|
131
|
+
"type": "boolean",
|
|
132
|
+
"default": false
|
|
133
|
+
},
|
|
102
134
|
"icon": {
|
|
103
135
|
"$ref": "https://opensource.adobe.com/spectrum-design-data/schemas/types/workflow-icon.json",
|
|
104
136
|
"description": "Icon placed at the start of the button. Required when isLabelHidden is true."
|
|
@@ -106,7 +138,14 @@
|
|
|
106
138
|
"staticColor": {
|
|
107
139
|
"type": "string",
|
|
108
140
|
"description": "Static color for use on colored backgrounds.",
|
|
109
|
-
"values": [
|
|
141
|
+
"values": [
|
|
142
|
+
{
|
|
143
|
+
"value": "white"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"value": "black"
|
|
147
|
+
}
|
|
148
|
+
]
|
|
110
149
|
}
|
|
111
150
|
},
|
|
112
151
|
"slots": [
|
|
@@ -115,37 +154,48 @@
|
|
|
115
154
|
"description": "Text label of the button.",
|
|
116
155
|
"required": false
|
|
117
156
|
},
|
|
118
|
-
{
|
|
157
|
+
{
|
|
158
|
+
"name": "icon",
|
|
159
|
+
"description": "Icon placed at the start of the button."
|
|
160
|
+
}
|
|
119
161
|
],
|
|
120
162
|
"anatomy": [
|
|
121
|
-
{
|
|
122
|
-
|
|
163
|
+
{
|
|
164
|
+
"name": "icon",
|
|
165
|
+
"description": "Leading icon."
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"name": "label",
|
|
169
|
+
"description": "Button text.",
|
|
170
|
+
"required": true
|
|
171
|
+
}
|
|
123
172
|
],
|
|
124
173
|
"states": [
|
|
125
|
-
{
|
|
174
|
+
{
|
|
175
|
+
"name": "hover",
|
|
176
|
+
"trigger": "interaction",
|
|
177
|
+
"precedence": 50
|
|
178
|
+
},
|
|
126
179
|
{
|
|
127
180
|
"name": "focus",
|
|
128
181
|
"trigger": "interaction",
|
|
129
182
|
"precedence": 60,
|
|
130
183
|
"layered": true
|
|
131
184
|
},
|
|
132
|
-
{
|
|
185
|
+
{
|
|
186
|
+
"name": "disabled",
|
|
187
|
+
"trigger": "prop",
|
|
188
|
+
"precedence": 100
|
|
189
|
+
}
|
|
133
190
|
],
|
|
134
|
-
"lifecycle": {
|
|
191
|
+
"lifecycle": {
|
|
192
|
+
"introduced": "1.0.0-draft"
|
|
193
|
+
},
|
|
135
194
|
"tokenBindings": [
|
|
136
|
-
{ "token": "component-height-75", "context": "Minimum height" },
|
|
137
|
-
{ "token": "component-height-100", "context": "Minimum height" },
|
|
138
|
-
{ "token": "component-height-200", "context": "Minimum height" },
|
|
139
|
-
{ "token": "component-height-300", "context": "Minimum height" },
|
|
140
|
-
{ "token": "corner-radius-full", "context": "Rounding" },
|
|
141
195
|
{
|
|
142
196
|
"token": "corner-radius-button-small",
|
|
143
197
|
"context": "Rounding (with wrapping)"
|
|
144
198
|
},
|
|
145
|
-
{
|
|
146
|
-
"token": "corner-radius-extra-large-default",
|
|
147
|
-
"context": "Rounding (with wrapping)"
|
|
148
|
-
},
|
|
149
199
|
{
|
|
150
200
|
"token": "corner-radius-button-large",
|
|
151
201
|
"context": "Rounding (with wrapping)"
|
|
@@ -153,207 +203,6 @@
|
|
|
153
203
|
{
|
|
154
204
|
"token": "corner-radius-button-extra-large",
|
|
155
205
|
"context": "Rounding (with wrapping)"
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
"token": "button-minimum-width-multiplier",
|
|
159
|
-
"context": "Minimum width (with label)"
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
"token": "component-size-difference-down",
|
|
163
|
-
"context": "Component size (down)"
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
"token": "component-size-width-ratio-down",
|
|
167
|
-
"context": "Component size (down)"
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
"token": "component-size-minimum-perspective-down",
|
|
171
|
-
"context": "Component size (down)"
|
|
172
|
-
},
|
|
173
|
-
{ "token": "workflow-icon-size-75", "context": "Icon" },
|
|
174
|
-
{ "token": "workflow-icon-size-100", "context": "Icon" },
|
|
175
|
-
{ "token": "workflow-icon-size-200", "context": "Icon" },
|
|
176
|
-
{ "token": "workflow-icon-size-300", "context": "Icon" },
|
|
177
|
-
{
|
|
178
|
-
"token": "component-pill-edge-to-visual-75",
|
|
179
|
-
"context": "Spacing (start/end edges)"
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
"token": "component-pill-edge-to-visual-100",
|
|
183
|
-
"context": "Spacing (start/end edges)"
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
"token": "component-pill-edge-to-visual-200",
|
|
187
|
-
"context": "Spacing (start/end edges)"
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
"token": "component-pill-edge-to-visual-300",
|
|
191
|
-
"context": "Spacing (start/end edges)"
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
"token": "component-pill-edge-to-text-75",
|
|
195
|
-
"context": "Spacing (start/end edges)"
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
"token": "component-pill-edge-to-text-100",
|
|
199
|
-
"context": "Spacing (start/end edges)"
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
"token": "component-pill-edge-to-text-200",
|
|
203
|
-
"context": "Spacing (start/end edges)"
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
"token": "component-pill-edge-to-text-300",
|
|
207
|
-
"context": "Spacing (start/end edges)"
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
"token": "component-pill-edge-to-visual-only-75",
|
|
211
|
-
"context": "Spacing (start/end edges, icon only)"
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
"token": "component-pill-edge-to-visual-only-100",
|
|
215
|
-
"context": "Spacing (start/end edges, icon only)"
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
"token": "component-pill-edge-to-visual-only-200",
|
|
219
|
-
"context": "Spacing (start/end edges, icon only)"
|
|
220
|
-
},
|
|
221
|
-
{
|
|
222
|
-
"token": "component-pill-edge-to-visual-only-300",
|
|
223
|
-
"context": "Spacing (start/end edges, icon only)"
|
|
224
|
-
},
|
|
225
|
-
{ "token": "text-to-visual-75", "context": "Spacing (icon to label)" },
|
|
226
|
-
{ "token": "text-to-visual-100", "context": "Spacing (icon to label)" },
|
|
227
|
-
{ "token": "text-to-visual-200", "context": "Spacing (icon to label)" },
|
|
228
|
-
{ "token": "text-to-visual-300", "context": "Spacing (icon to label)" },
|
|
229
|
-
{
|
|
230
|
-
"token": "component-top-to-workflow-icon-75",
|
|
231
|
-
"context": "Spacing (top edge to icon)"
|
|
232
|
-
},
|
|
233
|
-
{
|
|
234
|
-
"token": "component-top-to-workflow-icon-100",
|
|
235
|
-
"context": "Spacing (top edge to icon)"
|
|
236
|
-
},
|
|
237
|
-
{
|
|
238
|
-
"token": "component-top-to-workflow-icon-200",
|
|
239
|
-
"context": "Spacing (top edge to icon)"
|
|
240
|
-
},
|
|
241
|
-
{
|
|
242
|
-
"token": "component-top-to-workflow-icon-300",
|
|
243
|
-
"context": "Spacing (top edge to icon)"
|
|
244
|
-
},
|
|
245
|
-
{
|
|
246
|
-
"token": "component-top-to-text-75",
|
|
247
|
-
"context": "Spacing (top/bottom edge to label)"
|
|
248
|
-
},
|
|
249
|
-
{
|
|
250
|
-
"token": "component-top-to-text-100",
|
|
251
|
-
"context": "Spacing (top/bottom edge to label)"
|
|
252
|
-
},
|
|
253
|
-
{
|
|
254
|
-
"token": "component-top-to-text-200",
|
|
255
|
-
"context": "Spacing (top/bottom edge to label)"
|
|
256
|
-
},
|
|
257
|
-
{
|
|
258
|
-
"token": "component-top-to-text-300",
|
|
259
|
-
"context": "Spacing (top/bottom edge to label)"
|
|
260
|
-
},
|
|
261
|
-
{
|
|
262
|
-
"token": "component-bottom-to-text-75",
|
|
263
|
-
"context": "Spacing (top/bottom edge to label)"
|
|
264
|
-
},
|
|
265
|
-
{
|
|
266
|
-
"token": "component-bottom-to-text-100",
|
|
267
|
-
"context": "Spacing (top/bottom edge to label)"
|
|
268
|
-
},
|
|
269
|
-
{
|
|
270
|
-
"token": "component-bottom-to-text-200",
|
|
271
|
-
"context": "Spacing (top/bottom edge to label)"
|
|
272
|
-
},
|
|
273
|
-
{
|
|
274
|
-
"token": "component-bottom-to-text-300",
|
|
275
|
-
"context": "Spacing (top/bottom edge to label)"
|
|
276
|
-
},
|
|
277
|
-
{ "token": "border-width-200", "context": "Border" },
|
|
278
|
-
{ "token": "focus-indicator-thickness", "context": "Focus indicator" },
|
|
279
|
-
{ "token": "focus-indicator-gap", "context": "Focus indicator" },
|
|
280
|
-
{ "token": "default-font-family", "context": "Label" },
|
|
281
|
-
{ "token": "bold-font-weight", "context": "Label" },
|
|
282
|
-
{ "token": "default-font-style", "context": "Label" },
|
|
283
|
-
{ "token": "font-size-75", "context": "Label" },
|
|
284
|
-
{ "token": "font-size-100", "context": "Label" },
|
|
285
|
-
{ "token": "font-size-200", "context": "Label" },
|
|
286
|
-
{ "token": "font-size-300", "context": "Label" },
|
|
287
|
-
{ "token": "line-height-100", "context": "Label" },
|
|
288
|
-
{ "token": "cjk-line-height-100", "context": "Label" },
|
|
289
|
-
{ "token": "accent-background-color-default", "context": "Background" },
|
|
290
|
-
{ "token": "accent-background-color-hover", "context": "Background" },
|
|
291
|
-
{ "token": "accent-background-color-down", "context": "Background" },
|
|
292
|
-
{ "token": "accent-background-color-key-focus", "context": "Background" },
|
|
293
|
-
{ "token": "white", "context": "Icon" },
|
|
294
|
-
{ "token": "negative-background-color-default", "context": "Background" },
|
|
295
|
-
{ "token": "negative-background-color-hover", "context": "Background" },
|
|
296
|
-
{ "token": "negative-background-color-down", "context": "Background" },
|
|
297
|
-
{ "token": "negative-background-color-key-focus", "context": "Background" },
|
|
298
|
-
{ "token": "neutral-background-color-default", "context": "Background" },
|
|
299
|
-
{ "token": "neutral-background-color-hover", "context": "Background" },
|
|
300
|
-
{ "token": "neutral-background-color-down", "context": "Background" },
|
|
301
|
-
{ "token": "neutral-background-color-key-focus", "context": "Background" },
|
|
302
|
-
{ "token": "gray-25", "context": "Icon" },
|
|
303
|
-
{ "token": "gray-100", "context": "Background" },
|
|
304
|
-
{ "token": "gray-800", "context": "Border" },
|
|
305
|
-
{ "token": "gray-900", "context": "Border" },
|
|
306
|
-
{ "token": "neutral-content-color-default", "context": "Icon" },
|
|
307
|
-
{ "token": "neutral-content-color-hover", "context": "Icon" },
|
|
308
|
-
{ "token": "neutral-content-color-down", "context": "Icon" },
|
|
309
|
-
{ "token": "neutral-content-color-key-focus", "context": "Icon" },
|
|
310
|
-
{ "token": "gray-200", "context": "Background" },
|
|
311
|
-
{ "token": "gray-300", "context": "Border" },
|
|
312
|
-
{ "token": "gray-400", "context": "Border" },
|
|
313
|
-
{ "token": "disabled-background-color", "context": "Fill" },
|
|
314
|
-
{ "token": "disabled-border-color", "context": "Outline" },
|
|
315
|
-
{ "token": "disabled-content-color", "context": "Icon" },
|
|
316
|
-
{ "token": "focus-indicator-color", "context": "Focus indicator" },
|
|
317
|
-
{ "token": "transparent-white-900", "context": "Background" },
|
|
318
|
-
{ "token": "transparent-white-1000", "context": "Background" },
|
|
319
|
-
{ "token": "black", "context": "Icon" },
|
|
320
|
-
{ "token": "transparent-white-25", "context": "Background" },
|
|
321
|
-
{ "token": "transparent-white-100", "context": "Background" },
|
|
322
|
-
{ "token": "transparent-white-200", "context": "Background" },
|
|
323
|
-
{ "token": "transparent-white-300", "context": "Border" },
|
|
324
|
-
{ "token": "transparent-white-400", "context": "Border" },
|
|
325
|
-
{
|
|
326
|
-
"token": "disabled-static-white-background-color",
|
|
327
|
-
"context": "Background"
|
|
328
|
-
},
|
|
329
|
-
{
|
|
330
|
-
"token": "disabled-static-white-content-color",
|
|
331
|
-
"context": "Icon and label"
|
|
332
|
-
},
|
|
333
|
-
{ "token": "disabled-static-white-border-color", "context": "Border" },
|
|
334
|
-
{
|
|
335
|
-
"token": "static-white-focus-indicator-color",
|
|
336
|
-
"context": "Static white – Focus indicator"
|
|
337
|
-
},
|
|
338
|
-
{ "token": "transparent-black-900", "context": "Background" },
|
|
339
|
-
{ "token": "transparent-black-1000", "context": "Background" },
|
|
340
|
-
{ "token": "transparent-black-25", "context": "Background" },
|
|
341
|
-
{ "token": "transparent-black-100", "context": "Background" },
|
|
342
|
-
{ "token": "transparent-black-200", "context": "Background" },
|
|
343
|
-
{ "token": "transparent-black-300", "context": "Border" },
|
|
344
|
-
{ "token": "transparent-black-400", "context": "Border" },
|
|
345
|
-
{
|
|
346
|
-
"token": "disabled-static-black-background-color",
|
|
347
|
-
"context": "Background"
|
|
348
|
-
},
|
|
349
|
-
{
|
|
350
|
-
"token": "disabled-static-black-content-color",
|
|
351
|
-
"context": "Icon and label"
|
|
352
|
-
},
|
|
353
|
-
{ "token": "disabled-static-black-border-color", "context": "Border" },
|
|
354
|
-
{
|
|
355
|
-
"token": "static-black-focus-indicator-color",
|
|
356
|
-
"context": "Static black – Focus indicator"
|
|
357
206
|
}
|
|
358
207
|
],
|
|
359
208
|
"accessibility": {
|
|
@@ -362,8 +211,16 @@
|
|
|
362
211
|
"focusable": true,
|
|
363
212
|
"keyboardIntents": ["activate"],
|
|
364
213
|
"wcag": [
|
|
365
|
-
{
|
|
366
|
-
|
|
214
|
+
{
|
|
215
|
+
"criterion": "2.1.1",
|
|
216
|
+
"level": "A",
|
|
217
|
+
"title": "Keyboard"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"criterion": "4.1.2",
|
|
221
|
+
"level": "A",
|
|
222
|
+
"title": "Name, Role, Value"
|
|
223
|
+
}
|
|
367
224
|
]
|
|
368
225
|
}
|
|
369
226
|
}
|