@adobe/spectrum-design-data 2.0.0 → 2.2.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 +37 -45
- 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 +31 -290
- 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 +94 -246
- package/components/contextual-help.json +106 -59
- package/components/date-picker.json +57 -185
- package/components/divider.json +25 -17
- package/components/drop-zone.json +24 -119
- 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 +30 -181
- package/components/menu.json +100 -340
- 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 +51 -232
- 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 +79 -200
- package/package.json +2 -2
- package/tokens/color-aliases.tokens.json +33 -0
- 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 +64 -597
- package/tokens/typography.tokens.json +559 -3318
|
@@ -48,8 +48,13 @@
|
|
|
48
48
|
}
|
|
49
49
|
],
|
|
50
50
|
"options": {
|
|
51
|
-
"label": {
|
|
52
|
-
|
|
51
|
+
"label": {
|
|
52
|
+
"type": "string"
|
|
53
|
+
},
|
|
54
|
+
"hideLabel": {
|
|
55
|
+
"type": "boolean",
|
|
56
|
+
"default": false
|
|
57
|
+
},
|
|
53
58
|
"icon": {
|
|
54
59
|
"$ref": "https://opensource.adobe.com/spectrum-design-data/schemas/types/workflow-icon.json",
|
|
55
60
|
"description": "Icon must be present if the label is not defined."
|
|
@@ -58,330 +63,92 @@
|
|
|
58
63
|
"type": "string",
|
|
59
64
|
"default": "m",
|
|
60
65
|
"values": [
|
|
61
|
-
{
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
{
|
|
65
|
-
|
|
66
|
+
{
|
|
67
|
+
"value": "xs"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"value": "s"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"value": "m"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"value": "l"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"value": "xl"
|
|
80
|
+
}
|
|
66
81
|
]
|
|
67
82
|
},
|
|
68
|
-
"isQuiet": {
|
|
69
|
-
|
|
70
|
-
|
|
83
|
+
"isQuiet": {
|
|
84
|
+
"type": "boolean",
|
|
85
|
+
"default": false
|
|
86
|
+
},
|
|
87
|
+
"isSelected": {
|
|
88
|
+
"type": "boolean",
|
|
89
|
+
"default": false
|
|
90
|
+
},
|
|
91
|
+
"isEmphasized": {
|
|
92
|
+
"type": "boolean",
|
|
93
|
+
"default": false
|
|
94
|
+
},
|
|
71
95
|
"staticColor": {
|
|
72
96
|
"type": "string",
|
|
73
97
|
"description": "Static color must not be set for the default version of this component.",
|
|
74
|
-
"values": [
|
|
98
|
+
"values": [
|
|
99
|
+
{
|
|
100
|
+
"value": "white"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"value": "black"
|
|
104
|
+
}
|
|
105
|
+
]
|
|
75
106
|
},
|
|
76
107
|
"selectedTextColor": {
|
|
77
108
|
"$ref": "https://opensource.adobe.com/spectrum-design-data/schemas/types/hex-color.json"
|
|
78
109
|
},
|
|
79
|
-
"hasHoldIcon": {
|
|
80
|
-
|
|
110
|
+
"hasHoldIcon": {
|
|
111
|
+
"type": "boolean",
|
|
112
|
+
"default": false
|
|
113
|
+
},
|
|
114
|
+
"isDisabled": {
|
|
115
|
+
"type": "boolean",
|
|
116
|
+
"default": false
|
|
117
|
+
}
|
|
81
118
|
},
|
|
82
119
|
"states": [
|
|
83
|
-
{ "name": "hover", "trigger": "interaction" },
|
|
84
|
-
{ "name": "down", "trigger": "interaction" },
|
|
85
|
-
{ "name": "keyboard-focus", "trigger": "interaction" }
|
|
86
|
-
],
|
|
87
|
-
"lifecycle": { "introduced": "1.0.0-draft" },
|
|
88
|
-
"tokenBindings": [
|
|
89
|
-
{ "token": "component-height-50", "context": "Height" },
|
|
90
|
-
{ "token": "component-height-75", "context": "Height" },
|
|
91
|
-
{ "token": "component-height-100", "context": "Height" },
|
|
92
|
-
{ "token": "component-height-200", "context": "Height" },
|
|
93
|
-
{ "token": "component-height-300", "context": "Height" },
|
|
94
|
-
{
|
|
95
|
-
"token": "component-size-difference-down",
|
|
96
|
-
"context": "Component size (down)"
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"token": "component-size-width-ratio-down",
|
|
100
|
-
"context": "Component size (down)"
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
"token": "component-size-minimum-perspective-down",
|
|
104
|
-
"context": "Component size (down)"
|
|
105
|
-
},
|
|
106
|
-
{ "token": "corner-radius-medium-size-extra-small", "context": "Rounding" },
|
|
107
|
-
{ "token": "corner-radius-medium-size-small", "context": "Rounding" },
|
|
108
|
-
{ "token": "corner-radius-medium-size-medium", "context": "Rounding" },
|
|
109
|
-
{ "token": "corner-radius-medium-size-large", "context": "Rounding" },
|
|
110
|
-
{ "token": "corner-radius-medium-size-extra-large", "context": "Rounding" },
|
|
111
|
-
{ "token": "workflow-icon-size-50", "context": "Icon" },
|
|
112
|
-
{ "token": "workflow-icon-size-75", "context": "Icon" },
|
|
113
|
-
{ "token": "workflow-icon-size-100", "context": "Icon" },
|
|
114
|
-
{ "token": "workflow-icon-size-200", "context": "Icon" },
|
|
115
|
-
{ "token": "workflow-icon-size-300", "context": "Icon" },
|
|
116
|
-
{ "token": "text-to-visual-50", "context": "Spacing (icon to label)" },
|
|
117
|
-
{ "token": "text-to-visual-75", "context": "Spacing (icon to label)" },
|
|
118
|
-
{ "token": "text-to-visual-100", "context": "Spacing (icon to label)" },
|
|
119
|
-
{ "token": "text-to-visual-200", "context": "Spacing (icon to label)" },
|
|
120
|
-
{ "token": "text-to-visual-300", "context": "Spacing (icon to label)" },
|
|
121
120
|
{
|
|
122
|
-
"
|
|
123
|
-
"
|
|
121
|
+
"name": "hover",
|
|
122
|
+
"trigger": "interaction"
|
|
124
123
|
},
|
|
125
124
|
{
|
|
126
|
-
"
|
|
127
|
-
"
|
|
125
|
+
"name": "down",
|
|
126
|
+
"trigger": "interaction"
|
|
128
127
|
},
|
|
129
128
|
{
|
|
130
|
-
"
|
|
131
|
-
"
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
"token": "component-edge-to-visual-200",
|
|
135
|
-
"context": "Spacing (start/end edges)"
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
"token": "component-edge-to-visual-300",
|
|
139
|
-
"context": "Spacing (start/end edges)"
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
"token": "component-edge-to-text-50",
|
|
143
|
-
"context": "Spacing (start/end edges)"
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
"token": "component-edge-to-text-75",
|
|
147
|
-
"context": "Spacing (start/end edges)"
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
"token": "component-edge-to-text-100",
|
|
151
|
-
"context": "Spacing (start/end edges)"
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
"token": "component-edge-to-text-200",
|
|
155
|
-
"context": "Spacing (start/end edges)"
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
"token": "component-edge-to-text-300",
|
|
159
|
-
"context": "Spacing (start/end edges)"
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
"token": "component-edge-to-visual-only-50",
|
|
163
|
-
"context": "Spacing (start/end edges, icon only)"
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
"token": "component-edge-to-visual-only-75",
|
|
167
|
-
"context": "Spacing (start/end edges, icon only)"
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
"token": "component-edge-to-visual-only-100",
|
|
171
|
-
"context": "Spacing (start/end edges, icon only)"
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
"token": "component-edge-to-visual-only-200",
|
|
175
|
-
"context": "Spacing (start/end edges, icon only)"
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
"token": "component-edge-to-visual-only-300",
|
|
179
|
-
"context": "Spacing (start/end edges, icon only)"
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
"token": "component-top-to-workflow-icon-50",
|
|
183
|
-
"context": "Spacing (top edge to icon)"
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
"token": "component-top-to-workflow-icon-75",
|
|
187
|
-
"context": "Spacing (top edge to icon)"
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
"token": "component-top-to-workflow-icon-100",
|
|
191
|
-
"context": "Spacing (top edge to icon)"
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
"token": "component-top-to-workflow-icon-200",
|
|
195
|
-
"context": "Spacing (top edge to icon)"
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
"token": "component-top-to-workflow-icon-300",
|
|
199
|
-
"context": "Spacing (top edge to icon)"
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
"token": "component-top-to-text-50",
|
|
203
|
-
"context": "Spacing (top edge to label)"
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
"token": "component-top-to-text-75",
|
|
207
|
-
"context": "Spacing (top edge to label)"
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
"token": "component-top-to-text-100",
|
|
211
|
-
"context": "Spacing (top edge to label)"
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
"token": "component-top-to-text-200",
|
|
215
|
-
"context": "Spacing (top edge to label)"
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
"token": "component-top-to-text-300",
|
|
219
|
-
"context": "Spacing (top edge to label)"
|
|
220
|
-
},
|
|
221
|
-
{ "token": "focus-indicator-thickness", "context": "Focus ring" },
|
|
222
|
-
{ "token": "focus-indicator-gap", "context": "Focus ring" },
|
|
223
|
-
{
|
|
224
|
-
"token": "action-button-edge-to-hold-icon-extra-small",
|
|
225
|
-
"context": "Spacing (edge to hold icon)"
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
"token": "action-button-edge-to-hold-icon-small",
|
|
229
|
-
"context": "Spacing (edge to hold icon)"
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
"token": "action-button-edge-to-hold-icon-medium",
|
|
233
|
-
"context": "Spacing (edge to hold icon)"
|
|
234
|
-
},
|
|
235
|
-
{
|
|
236
|
-
"token": "action-button-edge-to-hold-icon-large",
|
|
237
|
-
"context": "Spacing (edge to hold icon)"
|
|
238
|
-
},
|
|
239
|
-
{
|
|
240
|
-
"token": "action-button-edge-to-hold-icon-extra-large",
|
|
241
|
-
"context": "Spacing (edge to hold icon)"
|
|
242
|
-
},
|
|
243
|
-
{ "token": "default-font-family", "context": "Label" },
|
|
244
|
-
{ "token": "medium-font-weight", "context": "Label" },
|
|
245
|
-
{ "token": "default-font-style", "context": "Label" },
|
|
246
|
-
{ "token": "font-size-50", "context": "Label" },
|
|
247
|
-
{ "token": "font-size-75", "context": "Label" },
|
|
248
|
-
{ "token": "font-size-100", "context": "Label" },
|
|
249
|
-
{ "token": "font-size-200", "context": "Label" },
|
|
250
|
-
{ "token": "font-size-300", "context": "Label" },
|
|
251
|
-
{ "token": "line-height-100", "context": "Label" },
|
|
252
|
-
{ "token": "cjk-line-height-100", "context": "Label" },
|
|
253
|
-
{ "token": "gray-100", "context": "Background " },
|
|
254
|
-
{ "token": "gray-200", "context": "Background " },
|
|
255
|
-
{
|
|
256
|
-
"token": "neutral-content-color-default",
|
|
257
|
-
"context": "Label, icon, and hold icon"
|
|
258
|
-
},
|
|
259
|
-
{
|
|
260
|
-
"token": "neutral-content-color-hover",
|
|
261
|
-
"context": "Label, icon, and hold icon"
|
|
262
|
-
},
|
|
263
|
-
{
|
|
264
|
-
"token": "neutral-content-color-down",
|
|
265
|
-
"context": "Label, icon, and hold icon"
|
|
266
|
-
},
|
|
267
|
-
{
|
|
268
|
-
"token": "neutral-content-color-key-focus",
|
|
269
|
-
"context": "Label, icon, and hold icon"
|
|
270
|
-
},
|
|
271
|
-
{
|
|
272
|
-
"token": "neutral-background-color-selected-default",
|
|
273
|
-
"context": "Background (selected, non emphasized)"
|
|
274
|
-
},
|
|
275
|
-
{
|
|
276
|
-
"token": "neutral-background-color-selected-hover",
|
|
277
|
-
"context": "Background (selected, non emphasized)"
|
|
278
|
-
},
|
|
279
|
-
{
|
|
280
|
-
"token": "neutral-background-color-selected-down",
|
|
281
|
-
"context": "Background (selected, non emphasized)"
|
|
282
|
-
},
|
|
283
|
-
{
|
|
284
|
-
"token": "neutral-background-color-selected-key-focus",
|
|
285
|
-
"context": "Background (selected, non emphasized)"
|
|
286
|
-
},
|
|
287
|
-
{
|
|
288
|
-
"token": "gray-25",
|
|
289
|
-
"context": "Label, icon, and hold icon (selected, non emphasized)"
|
|
290
|
-
},
|
|
291
|
-
{
|
|
292
|
-
"token": "accent-background-color-default",
|
|
293
|
-
"context": "Background (selected, emphasized)"
|
|
294
|
-
},
|
|
295
|
-
{
|
|
296
|
-
"token": "accent-background-color-hover",
|
|
297
|
-
"context": "Background (selected, emphasized)"
|
|
298
|
-
},
|
|
299
|
-
{
|
|
300
|
-
"token": "accent-background-color-down",
|
|
301
|
-
"context": "Background (selected, emphasized)"
|
|
302
|
-
},
|
|
303
|
-
{
|
|
304
|
-
"token": "accent-background-color-key-focus",
|
|
305
|
-
"context": "Background (selected, emphasized)"
|
|
306
|
-
},
|
|
307
|
-
{
|
|
308
|
-
"token": "white",
|
|
309
|
-
"context": "Label, icon, and hold icon (selected, emphasized)"
|
|
310
|
-
},
|
|
311
|
-
{
|
|
312
|
-
"token": "disabled-background-color",
|
|
313
|
-
"context": "Background (disabled)"
|
|
314
|
-
},
|
|
315
|
-
{
|
|
316
|
-
"token": "disabled-content-color",
|
|
317
|
-
"context": "Label, icon, and hold icon (disabled)"
|
|
318
|
-
},
|
|
319
|
-
{ "token": "focus-indicator-color", "context": "Focus ring" },
|
|
320
|
-
{ "token": "transparent-white-100", "context": "Background " },
|
|
321
|
-
{ "token": "transparent-white-200", "context": "Background " },
|
|
322
|
-
{
|
|
323
|
-
"token": "transparent-white-800",
|
|
324
|
-
"context": "Label, icon, and hold icon"
|
|
325
|
-
},
|
|
326
|
-
{
|
|
327
|
-
"token": "transparent-white-900",
|
|
328
|
-
"context": "Label, icon, and hold icon"
|
|
329
|
-
},
|
|
330
|
-
{
|
|
331
|
-
"token": "black",
|
|
332
|
-
"context": "Label, icon, and hold icon (selected, white)"
|
|
333
|
-
},
|
|
334
|
-
{
|
|
335
|
-
"token": "disabled-static-white-background-color",
|
|
336
|
-
"context": "Background (disabled, white)"
|
|
337
|
-
},
|
|
338
|
-
{
|
|
339
|
-
"token": "transparent-white-25",
|
|
340
|
-
"context": "Background (disabled, white)"
|
|
341
|
-
},
|
|
342
|
-
{
|
|
343
|
-
"token": "disabled-static-white-content-color",
|
|
344
|
-
"context": "Label, icon, and hold icon (disabled, white)"
|
|
345
|
-
},
|
|
346
|
-
{
|
|
347
|
-
"token": "static-white-focus-indicator-color",
|
|
348
|
-
"context": "Focus ring (white)"
|
|
349
|
-
},
|
|
350
|
-
{ "token": "transparent-black-100", "context": "Background " },
|
|
351
|
-
{ "token": "transparent-black-200", "context": "Background " },
|
|
352
|
-
{
|
|
353
|
-
"token": "transparent-black-800",
|
|
354
|
-
"context": "Label, icon, and hold icon"
|
|
355
|
-
},
|
|
356
|
-
{
|
|
357
|
-
"token": "transparent-black-900",
|
|
358
|
-
"context": "Label, icon, and hold icon"
|
|
359
|
-
},
|
|
360
|
-
{
|
|
361
|
-
"token": "disabled-static-black-background-color",
|
|
362
|
-
"context": "Background (disabled, black)"
|
|
363
|
-
},
|
|
364
|
-
{
|
|
365
|
-
"token": "transparent-black-25",
|
|
366
|
-
"context": "Background (disabled, black)"
|
|
367
|
-
},
|
|
368
|
-
{
|
|
369
|
-
"token": "disabled-static-black-content-color",
|
|
370
|
-
"context": "Label, icon, and hold icon (disabled, black)"
|
|
371
|
-
},
|
|
372
|
-
{
|
|
373
|
-
"token": "static-black-focus-indicator-color",
|
|
374
|
-
"context": "Focus ring (black)"
|
|
129
|
+
"name": "keyboard-focus",
|
|
130
|
+
"trigger": "interaction"
|
|
375
131
|
}
|
|
376
132
|
],
|
|
133
|
+
"lifecycle": {
|
|
134
|
+
"introduced": "1.0.0-draft"
|
|
135
|
+
},
|
|
377
136
|
"accessibility": {
|
|
378
137
|
"role": "button",
|
|
379
138
|
"intents": ["trigger"],
|
|
380
139
|
"focusable": true,
|
|
381
140
|
"keyboardIntents": ["activate"],
|
|
382
141
|
"wcag": [
|
|
383
|
-
{
|
|
384
|
-
|
|
142
|
+
{
|
|
143
|
+
"criterion": "2.1.1",
|
|
144
|
+
"level": "A",
|
|
145
|
+
"title": "Keyboard"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"criterion": "4.1.2",
|
|
149
|
+
"level": "A",
|
|
150
|
+
"title": "Name, Role, Value"
|
|
151
|
+
}
|
|
385
152
|
]
|
|
386
153
|
}
|
|
387
154
|
}
|
|
@@ -83,32 +83,73 @@
|
|
|
83
83
|
"orientation": {
|
|
84
84
|
"type": "string",
|
|
85
85
|
"default": "horizontal",
|
|
86
|
-
"values": [
|
|
86
|
+
"values": [
|
|
87
|
+
{
|
|
88
|
+
"value": "horizontal"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"value": "vertical"
|
|
92
|
+
}
|
|
93
|
+
]
|
|
87
94
|
},
|
|
88
95
|
"size": {
|
|
89
96
|
"type": "string",
|
|
90
97
|
"default": "m",
|
|
91
98
|
"values": [
|
|
92
|
-
{
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
{
|
|
99
|
+
{
|
|
100
|
+
"value": "s"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"value": "m"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"value": "l"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"value": "xl"
|
|
110
|
+
}
|
|
96
111
|
]
|
|
97
112
|
},
|
|
98
113
|
"density": {
|
|
99
114
|
"type": "string",
|
|
100
115
|
"default": "regular",
|
|
101
|
-
"values": [
|
|
116
|
+
"values": [
|
|
117
|
+
{
|
|
118
|
+
"value": "regular"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"value": "compact"
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
},
|
|
125
|
+
"isJustified": {
|
|
126
|
+
"type": "boolean",
|
|
127
|
+
"default": false
|
|
128
|
+
},
|
|
129
|
+
"isQuiet": {
|
|
130
|
+
"type": "boolean",
|
|
131
|
+
"default": false
|
|
132
|
+
},
|
|
133
|
+
"isEmphasized": {
|
|
134
|
+
"type": "boolean",
|
|
135
|
+
"default": false
|
|
136
|
+
},
|
|
137
|
+
"enableSelection": {
|
|
138
|
+
"type": "boolean",
|
|
139
|
+
"default": false
|
|
102
140
|
},
|
|
103
|
-
"isJustified": { "type": "boolean", "default": false },
|
|
104
|
-
"isQuiet": { "type": "boolean", "default": false },
|
|
105
|
-
"isEmphasized": { "type": "boolean", "default": false },
|
|
106
|
-
"enableSelection": { "type": "boolean", "default": false },
|
|
107
141
|
"selectionMode": {
|
|
108
142
|
"type": "string",
|
|
109
143
|
"default": "single",
|
|
110
144
|
"description": "Only applicable if selection is enabled",
|
|
111
|
-
"values": [
|
|
145
|
+
"values": [
|
|
146
|
+
{
|
|
147
|
+
"value": "single"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"value": "multiple"
|
|
151
|
+
}
|
|
152
|
+
]
|
|
112
153
|
},
|
|
113
154
|
"allowsEmptySelection": {
|
|
114
155
|
"type": "boolean",
|
|
@@ -118,19 +159,32 @@
|
|
|
118
159
|
"overflowMode": {
|
|
119
160
|
"type": "string",
|
|
120
161
|
"default": "wrap",
|
|
121
|
-
"values": [
|
|
162
|
+
"values": [
|
|
163
|
+
{
|
|
164
|
+
"value": "wrap"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"value": "collapse"
|
|
168
|
+
}
|
|
169
|
+
]
|
|
122
170
|
},
|
|
123
|
-
"isDisabled": {
|
|
171
|
+
"isDisabled": {
|
|
172
|
+
"type": "boolean",
|
|
173
|
+
"default": false
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
"lifecycle": {
|
|
177
|
+
"introduced": "1.0.0-draft"
|
|
124
178
|
},
|
|
125
|
-
"lifecycle": { "introduced": "1.0.0-draft" },
|
|
126
|
-
"tokenBindings": [
|
|
127
|
-
{ "token": "spacing-75", "context": "Spacing (horizontal, regular)" },
|
|
128
|
-
{ "token": "spacing-100", "context": "Spacing (horizontal, regular)" },
|
|
129
|
-
{ "token": "spacing-50", "context": "Spacing (horizontal, compact)" }
|
|
130
|
-
],
|
|
131
179
|
"accessibility": {
|
|
132
180
|
"intents": ["trigger"],
|
|
133
181
|
"focusable": false,
|
|
134
|
-
"wcag": [
|
|
182
|
+
"wcag": [
|
|
183
|
+
{
|
|
184
|
+
"criterion": "2.1.1",
|
|
185
|
+
"level": "A",
|
|
186
|
+
"title": "Keyboard"
|
|
187
|
+
}
|
|
188
|
+
]
|
|
135
189
|
}
|
|
136
190
|
}
|
|
@@ -96,22 +96,35 @@
|
|
|
96
96
|
}
|
|
97
97
|
],
|
|
98
98
|
"options": {
|
|
99
|
-
"text": {
|
|
99
|
+
"text": {
|
|
100
|
+
"type": "string"
|
|
101
|
+
},
|
|
100
102
|
"variant": {
|
|
101
103
|
"type": "string",
|
|
102
104
|
"default": "neutral",
|
|
103
105
|
"values": [
|
|
104
|
-
{
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
{
|
|
106
|
+
{
|
|
107
|
+
"value": "neutral"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"value": "informative"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"value": "negative"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"value": "accent"
|
|
117
|
+
}
|
|
108
118
|
]
|
|
109
119
|
},
|
|
110
120
|
"actionLabel": {
|
|
111
121
|
"type": "string",
|
|
112
122
|
"description": "If undefined, this button does not appear."
|
|
113
123
|
},
|
|
114
|
-
"isDismissible": {
|
|
124
|
+
"isDismissible": {
|
|
125
|
+
"type": "boolean",
|
|
126
|
+
"default": false
|
|
127
|
+
}
|
|
115
128
|
},
|
|
116
129
|
"anatomy": [
|
|
117
130
|
{
|
|
@@ -119,50 +132,17 @@
|
|
|
119
132
|
"description": "Icon indicating the alert's severity."
|
|
120
133
|
}
|
|
121
134
|
],
|
|
122
|
-
"lifecycle": {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
{ "token": "alert-banner-minimum-height", "context": "Height" },
|
|
126
|
-
{ "token": "alert-banner-width", "context": "Width" },
|
|
127
|
-
{ "token": "text-to-visual-300", "context": "Spacing (icon to text)" },
|
|
128
|
-
{
|
|
129
|
-
"token": "spacing-300",
|
|
130
|
-
"context": "Spacing (start edge to text and icon)"
|
|
131
|
-
},
|
|
132
|
-
{ "token": "spacing-100", "context": "Spacing (close button to end edge)" },
|
|
133
|
-
{ "token": "spacing-200", "context": "Spacing (close button to end edge)" },
|
|
134
|
-
{
|
|
135
|
-
"token": "alert-banner-top-to-workflow-icon",
|
|
136
|
-
"context": "Spacing (top/bottom edge to icon)"
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
"token": "alert-banner-top-to-text",
|
|
140
|
-
"context": "Spacing (top/bottom edge to text)"
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
"token": "alert-banner-bottom-to-text",
|
|
144
|
-
"context": "Spacing (top/bottom edge to text)"
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
"token": "neutral-subdued-background-color-default",
|
|
148
|
-
"context": "Background"
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
"token": "informative-background-color-default",
|
|
152
|
-
"context": "Background"
|
|
153
|
-
},
|
|
154
|
-
{ "token": "negative-background-color-default", "context": "Background" },
|
|
155
|
-
{ "token": "default-font-family", "context": "Text" },
|
|
156
|
-
{ "token": "regular-font-weight", "context": "Text" },
|
|
157
|
-
{ "token": "default-font-style", "context": "Text" },
|
|
158
|
-
{ "token": "font-size-100", "context": "Text" },
|
|
159
|
-
{ "token": "line-height-100", "context": "Text" },
|
|
160
|
-
{ "token": "cjk-line-height-100", "context": "Text" }
|
|
161
|
-
],
|
|
135
|
+
"lifecycle": {
|
|
136
|
+
"introduced": "1.0.0-draft"
|
|
137
|
+
},
|
|
162
138
|
"accessibility": {
|
|
163
139
|
"focusable": false,
|
|
164
140
|
"wcag": [
|
|
165
|
-
{
|
|
141
|
+
{
|
|
142
|
+
"criterion": "4.1.3",
|
|
143
|
+
"level": "AA",
|
|
144
|
+
"title": "Status Messages"
|
|
145
|
+
}
|
|
166
146
|
]
|
|
167
147
|
}
|
|
168
148
|
}
|