@adobe/spectrum-design-data 0.3.0 → 0.6.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/LICENSE +1 -1
- package/components/accordion.json +108 -194
- package/components/action-bar.json +64 -97
- package/components/action-button.json +95 -230
- package/components/action-group.json +88 -86
- package/components/alert-banner.json +104 -76
- package/components/alert-dialog.json +78 -126
- package/components/avatar-group.json +61 -119
- package/components/avatar.json +98 -212
- package/components/badge.json +138 -256
- package/components/breadcrumbs.json +95 -89
- package/components/button-group.json +57 -48
- package/components/button.json +151 -368
- package/components/calendar.json +97 -34
- package/components/cards.json +109 -250
- package/components/checkbox-group.json +50 -58
- package/components/checkbox.json +121 -186
- package/components/close-button.json +61 -124
- package/components/coach-indicator.json +63 -72
- package/components/coach-mark.json +89 -93
- package/components/color-area.json +68 -94
- package/components/color-handle.json +39 -79
- package/components/color-loupe.json +35 -52
- package/components/color-slider.json +95 -116
- package/components/color-wheel.json +67 -73
- package/components/combo-box.json +243 -331
- package/components/contextual-help.json +86 -175
- package/components/date-picker.json +139 -179
- package/components/divider.json +30 -69
- package/components/drop-zone.json +51 -92
- package/components/field-label.json +75 -117
- package/components/help-text.json +81 -105
- package/components/illustrated-message.json +106 -73
- package/components/in-line-alert.json +50 -83
- package/components/link.json +63 -85
- package/components/list-view.json +107 -146
- package/components/menu.json +180 -274
- package/components/meter.json +72 -118
- package/components/number-field.json +213 -305
- package/components/picker.json +208 -320
- package/components/popover.json +94 -129
- package/components/progress-bar.json +94 -131
- package/components/progress-circle.json +45 -72
- package/components/radio-button.json +87 -156
- package/components/radio-group.json +107 -74
- package/components/rating.json +66 -99
- package/components/search-field.json +132 -202
- package/components/segmented-control.json +94 -109
- package/components/select-box.json +119 -179
- package/components/side-navigation.json +108 -118
- package/components/slider.json +143 -228
- package/components/standard-dialog.json +96 -114
- package/components/standard-panel.json +105 -53
- package/components/status-light.json +104 -240
- package/components/steplist.json +77 -161
- package/components/swatch-group.json +42 -58
- package/components/swatch.json +75 -162
- package/components/switch.json +101 -189
- package/components/table.json +97 -102
- package/components/tabs.json +77 -104
- package/components/tag-field.json +86 -150
- package/components/tag-group.json +50 -44
- package/components/tag.json +81 -198
- package/components/takeover-dialog.json +59 -57
- package/components/text-area.json +200 -323
- package/components/text-field.json +183 -304
- package/components/thumbnail.json +63 -105
- package/components/toast.json +97 -83
- package/components/tooltip.json +104 -96
- package/components/tree-view.json +169 -181
- package/guidelines/app-frame-content-area.json +87 -0
- package/guidelines/app-frame-creating-bluelines.json +61 -0
- package/guidelines/app-frame-header.json +75 -0
- package/guidelines/app-frame-overview.json +167 -0
- package/guidelines/app-frame-side-navigation.json +138 -0
- package/guidelines/attention-hierarchy.json +42 -0
- package/guidelines/background-layers.json +41 -0
- package/guidelines/brand.json +50 -0
- package/guidelines/colors.json +65 -0
- package/guidelines/containers.json +65 -0
- package/guidelines/developer-overview.json +38 -0
- package/guidelines/faqs.json +35 -0
- package/guidelines/fonts.json +58 -0
- package/guidelines/grays.json +69 -0
- package/guidelines/icon-fundamentals.json +45 -0
- package/guidelines/illustrations.json +114 -0
- package/guidelines/introduction.json +34 -0
- package/guidelines/manifest.json +204 -0
- package/guidelines/motion.json +41 -0
- package/guidelines/object-styles.json +105 -0
- package/guidelines/principles.json +30 -0
- package/guidelines/resources.json +59 -0
- package/guidelines/spacing.json +25 -0
- package/guidelines/states.json +34 -0
- package/guidelines/typography-fundamentals.json +145 -0
- package/guidelines/using-icons.json +110 -0
- package/package.json +5 -2
- package/tokens/layout-component.tokens.json +72 -36
- package/tokens/layout.tokens.json +207 -92
package/components/tag.json
CHANGED
|
@@ -9,81 +9,71 @@
|
|
|
9
9
|
"category": "navigation",
|
|
10
10
|
"documentationUrl": "https://spectrum.adobe.com/page/tag/"
|
|
11
11
|
},
|
|
12
|
-
"
|
|
13
|
-
"label": {
|
|
14
|
-
"type": "string"
|
|
15
|
-
},
|
|
16
|
-
"hasAvatar": {
|
|
17
|
-
"type": "boolean",
|
|
18
|
-
"default": false
|
|
19
|
-
},
|
|
20
|
-
"isRemovable": {
|
|
21
|
-
"type": "boolean",
|
|
22
|
-
"default": false
|
|
23
|
-
},
|
|
24
|
-
"isError": {
|
|
25
|
-
"type": "boolean",
|
|
26
|
-
"default": false
|
|
27
|
-
},
|
|
28
|
-
"isDisabled": {
|
|
29
|
-
"type": "boolean",
|
|
30
|
-
"default": false
|
|
31
|
-
},
|
|
32
|
-
"isReadOnly": {
|
|
33
|
-
"type": "boolean",
|
|
34
|
-
"default": false
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
"states": [
|
|
12
|
+
"documentBlocks": [
|
|
38
13
|
{
|
|
39
|
-
"
|
|
40
|
-
"
|
|
14
|
+
"type": "purpose",
|
|
15
|
+
"content": "Tags allow users to categorize content. They can represent keywords or people, and are grouped to describe an item or a search request."
|
|
41
16
|
},
|
|
42
17
|
{
|
|
43
|
-
"
|
|
44
|
-
"
|
|
18
|
+
"type": "guideline",
|
|
19
|
+
"content": "Tags categorize content such as keywords or names. They’re often grouped to represent a search query or describe an item."
|
|
45
20
|
},
|
|
46
21
|
{
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
}
|
|
50
|
-
],
|
|
51
|
-
"lifecycle": {
|
|
52
|
-
"introduced": "1.0.0-draft"
|
|
53
|
-
},
|
|
54
|
-
"tokenBindings": [
|
|
55
|
-
{
|
|
56
|
-
"token": "avatar-size-50",
|
|
57
|
-
"context": "Components"
|
|
22
|
+
"type": "guideline",
|
|
23
|
+
"content": "Tags should always include a label. These can represent search terms, filters, or keywords."
|
|
58
24
|
},
|
|
59
25
|
{
|
|
60
|
-
"
|
|
61
|
-
"
|
|
26
|
+
"type": "guideline",
|
|
27
|
+
"content": "Tags have the option to include an avatar in addition to the label. These should be used to represent entities."
|
|
62
28
|
},
|
|
63
29
|
{
|
|
64
|
-
"
|
|
65
|
-
"
|
|
30
|
+
"type": "guideline",
|
|
31
|
+
"content": "Tags have the option to be removable or not. Removable tags have a small close (“x”) button."
|
|
66
32
|
},
|
|
67
33
|
{
|
|
68
|
-
"
|
|
69
|
-
"
|
|
34
|
+
"type": "guideline",
|
|
35
|
+
"content": "A tag can be marked as having an error to show that it has become invalid."
|
|
70
36
|
},
|
|
71
37
|
{
|
|
72
|
-
"
|
|
73
|
-
"
|
|
38
|
+
"type": "guideline",
|
|
39
|
+
"content": "A tag in a disabled state shows that a tag exists, but is not available in that circumstance. This can be used to maintain layout continuity and communicate that a tag may become available later."
|
|
74
40
|
},
|
|
75
41
|
{
|
|
76
|
-
"
|
|
77
|
-
"
|
|
42
|
+
"type": "guideline",
|
|
43
|
+
"content": "Tags have a read-only option for when content in the disabled state still needs to be shown. This allows for content to be copied, but not interacted with or changed."
|
|
78
44
|
},
|
|
79
45
|
{
|
|
80
|
-
"
|
|
81
|
-
"
|
|
46
|
+
"type": "guideline",
|
|
47
|
+
"content": "When the tag text is too long for the available horizontal space or when a tag reaches its maximum width, it truncates. Hovering over the tag shows a tooltip with the full text."
|
|
82
48
|
},
|
|
83
49
|
{
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
}
|
|
50
|
+
"type": "guideline",
|
|
51
|
+
"content": "A tag can either trigger navigation or filtering, or act as a dismissible chip. Combining both interactions disrupts focus order and accessibility states. Choose one behavior — navigation or dismissal — and apply it consistently."
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"options": {
|
|
55
|
+
"label": { "type": "string" },
|
|
56
|
+
"hasAvatar": { "type": "boolean", "default": false },
|
|
57
|
+
"isRemovable": { "type": "boolean", "default": false },
|
|
58
|
+
"isError": { "type": "boolean", "default": false },
|
|
59
|
+
"isDisabled": { "type": "boolean", "default": false },
|
|
60
|
+
"isReadOnly": { "type": "boolean", "default": false }
|
|
61
|
+
},
|
|
62
|
+
"states": [
|
|
63
|
+
{ "name": "hover", "trigger": "interaction" },
|
|
64
|
+
{ "name": "down", "trigger": "interaction" },
|
|
65
|
+
{ "name": "keyboard-focus", "trigger": "interaction" }
|
|
66
|
+
],
|
|
67
|
+
"lifecycle": { "introduced": "1.0.0-draft" },
|
|
68
|
+
"tokenBindings": [
|
|
69
|
+
{ "token": "avatar-size-50", "context": "Components" },
|
|
70
|
+
{ "token": "avatar-size-100", "context": "Components" },
|
|
71
|
+
{ "token": "thumbnail-size-50", "context": "Components" },
|
|
72
|
+
{ "token": "thumbnail-size-75", "context": "Components" },
|
|
73
|
+
{ "token": "thumbnail-size-100", "context": "Components" },
|
|
74
|
+
{ "token": "component-height-75", "context": "Minimum height" },
|
|
75
|
+
{ "token": "component-height-100", "context": "Minimum height" },
|
|
76
|
+
{ "token": "component-height-200", "context": "Minimum height" },
|
|
87
77
|
{
|
|
88
78
|
"token": "tag-minimum-width-small",
|
|
89
79
|
"context": "Minimum width (with label)"
|
|
@@ -112,42 +102,15 @@
|
|
|
112
102
|
"token": "component-size-minimum-perspective-down",
|
|
113
103
|
"context": "Component size (down)"
|
|
114
104
|
},
|
|
115
|
-
{
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
"token": "corner-radius-medium-size-large",
|
|
125
|
-
"context": "Rounding"
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
"token": "workflow-icon-size-75",
|
|
129
|
-
"context": "Icon"
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
"token": "workflow-icon-size-100",
|
|
133
|
-
"context": "Icon"
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
"token": "workflow-icon-size-200",
|
|
137
|
-
"context": "Icon"
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
"token": "cross-icon-size-75",
|
|
141
|
-
"context": "Cross icon"
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
"token": "cross-icon-size-100",
|
|
145
|
-
"context": "Cross icon"
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
"token": "cross-icon-size-200",
|
|
149
|
-
"context": "Cross icon"
|
|
150
|
-
},
|
|
105
|
+
{ "token": "corner-radius-medium-size-small", "context": "Rounding" },
|
|
106
|
+
{ "token": "corner-radius-medium-size-medium", "context": "Rounding" },
|
|
107
|
+
{ "token": "corner-radius-medium-size-large", "context": "Rounding" },
|
|
108
|
+
{ "token": "workflow-icon-size-75", "context": "Icon" },
|
|
109
|
+
{ "token": "workflow-icon-size-100", "context": "Icon" },
|
|
110
|
+
{ "token": "workflow-icon-size-200", "context": "Icon" },
|
|
111
|
+
{ "token": "cross-icon-size-75", "context": "Cross icon" },
|
|
112
|
+
{ "token": "cross-icon-size-100", "context": "Cross icon" },
|
|
113
|
+
{ "token": "cross-icon-size-200", "context": "Cross icon" },
|
|
151
114
|
{
|
|
152
115
|
"token": "component-edge-to-visual-75",
|
|
153
116
|
"context": "Spacing (start/end edges)"
|
|
@@ -172,18 +135,9 @@
|
|
|
172
135
|
"token": "component-edge-to-text-200",
|
|
173
136
|
"context": "Spacing (start/end edges)"
|
|
174
137
|
},
|
|
175
|
-
{
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
"token": "text-to-visual-100",
|
|
181
|
-
"context": "Spacing (visual to label)"
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
"token": "text-to-visual-200",
|
|
185
|
-
"context": "Spacing (visual to label)"
|
|
186
|
-
},
|
|
138
|
+
{ "token": "text-to-visual-75", "context": "Spacing (visual to label)" },
|
|
139
|
+
{ "token": "text-to-visual-100", "context": "Spacing (visual to label)" },
|
|
140
|
+
{ "token": "text-to-visual-200", "context": "Spacing (visual to label)" },
|
|
187
141
|
{
|
|
188
142
|
"token": "tag-label-to-clear-icon-small",
|
|
189
143
|
"context": "Spacing (label to cross icon)"
|
|
@@ -256,66 +210,21 @@
|
|
|
256
210
|
"token": "tag-top-to-cross-icon-large",
|
|
257
211
|
"context": "Spacing (top/bottom edge to cross icon)"
|
|
258
212
|
},
|
|
259
|
-
{
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
},
|
|
263
|
-
{
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
},
|
|
267
|
-
{
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
},
|
|
271
|
-
{
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
},
|
|
275
|
-
{
|
|
276
|
-
"token": "default-font-style",
|
|
277
|
-
"context": "Label"
|
|
278
|
-
},
|
|
279
|
-
{
|
|
280
|
-
"token": "font-size-75",
|
|
281
|
-
"context": "Label"
|
|
282
|
-
},
|
|
283
|
-
{
|
|
284
|
-
"token": "font-size-100",
|
|
285
|
-
"context": "Label"
|
|
286
|
-
},
|
|
287
|
-
{
|
|
288
|
-
"token": "font-size-200",
|
|
289
|
-
"context": "Label"
|
|
290
|
-
},
|
|
291
|
-
{
|
|
292
|
-
"token": "line-height-100",
|
|
293
|
-
"context": "Label"
|
|
294
|
-
},
|
|
295
|
-
{
|
|
296
|
-
"token": "cjk-line-height-100",
|
|
297
|
-
"context": "Label"
|
|
298
|
-
},
|
|
299
|
-
{
|
|
300
|
-
"token": "accent-background-color-default",
|
|
301
|
-
"context": "Background"
|
|
302
|
-
},
|
|
303
|
-
{
|
|
304
|
-
"token": "accent-background-color-hover",
|
|
305
|
-
"context": "Background"
|
|
306
|
-
},
|
|
307
|
-
{
|
|
308
|
-
"token": "accent-background-color-down",
|
|
309
|
-
"context": "Background"
|
|
310
|
-
},
|
|
311
|
-
{
|
|
312
|
-
"token": "accent-background-color-key-focus",
|
|
313
|
-
"context": "Background"
|
|
314
|
-
},
|
|
315
|
-
{
|
|
316
|
-
"token": "white",
|
|
317
|
-
"context": "Icon and Clear icon"
|
|
318
|
-
},
|
|
213
|
+
{ "token": "focus-indicator-thickness", "context": "Focus indicator" },
|
|
214
|
+
{ "token": "focus-indicator-gap", "context": "Focus indicator" },
|
|
215
|
+
{ "token": "default-font-family", "context": "Label" },
|
|
216
|
+
{ "token": "medium-font-weight", "context": "Label" },
|
|
217
|
+
{ "token": "default-font-style", "context": "Label" },
|
|
218
|
+
{ "token": "font-size-75", "context": "Label" },
|
|
219
|
+
{ "token": "font-size-100", "context": "Label" },
|
|
220
|
+
{ "token": "font-size-200", "context": "Label" },
|
|
221
|
+
{ "token": "line-height-100", "context": "Label" },
|
|
222
|
+
{ "token": "cjk-line-height-100", "context": "Label" },
|
|
223
|
+
{ "token": "accent-background-color-default", "context": "Background" },
|
|
224
|
+
{ "token": "accent-background-color-hover", "context": "Background" },
|
|
225
|
+
{ "token": "accent-background-color-down", "context": "Background" },
|
|
226
|
+
{ "token": "accent-background-color-key-focus", "context": "Background" },
|
|
227
|
+
{ "token": "white", "context": "Icon and Clear icon" },
|
|
319
228
|
{
|
|
320
229
|
"token": "neutral-selected-background-color-default",
|
|
321
230
|
"context": "Background"
|
|
@@ -332,18 +241,9 @@
|
|
|
332
241
|
"token": "neutral-selected-background-color-key-focus",
|
|
333
242
|
"context": "Background"
|
|
334
243
|
},
|
|
335
|
-
{
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
},
|
|
339
|
-
{
|
|
340
|
-
"token": "gray-100",
|
|
341
|
-
"context": "Background"
|
|
342
|
-
},
|
|
343
|
-
{
|
|
344
|
-
"token": "gray-200",
|
|
345
|
-
"context": "Background"
|
|
346
|
-
},
|
|
244
|
+
{ "token": "gray-25", "context": "Icon and Clear icon" },
|
|
245
|
+
{ "token": "gray-100", "context": "Background" },
|
|
246
|
+
{ "token": "gray-200", "context": "Background" },
|
|
347
247
|
{
|
|
348
248
|
"token": "neutral-content-color-default",
|
|
349
249
|
"context": "Icon and Clear icon and Label"
|
|
@@ -360,34 +260,17 @@
|
|
|
360
260
|
"token": "neutral-content-color-key-focus",
|
|
361
261
|
"context": "Icon and Clear icon and Label"
|
|
362
262
|
},
|
|
363
|
-
{
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
},
|
|
367
|
-
{
|
|
368
|
-
"token": "disabled-content-color",
|
|
369
|
-
"context": "Icon and Clear icon"
|
|
370
|
-
},
|
|
371
|
-
{
|
|
372
|
-
"token": "focus-indicator-color",
|
|
373
|
-
"context": "Focus indicator"
|
|
374
|
-
}
|
|
263
|
+
{ "token": "disabled-background-color", "context": "Fill" },
|
|
264
|
+
{ "token": "disabled-content-color", "context": "Icon and Clear icon" },
|
|
265
|
+
{ "token": "focus-indicator-color", "context": "Focus indicator" }
|
|
375
266
|
],
|
|
376
267
|
"accessibility": {
|
|
377
268
|
"intents": ["dismiss"],
|
|
378
269
|
"focusable": true,
|
|
379
270
|
"keyboardIntents": ["activate"],
|
|
380
271
|
"wcag": [
|
|
381
|
-
{
|
|
382
|
-
|
|
383
|
-
"level": "A",
|
|
384
|
-
"title": "Keyboard"
|
|
385
|
-
},
|
|
386
|
-
{
|
|
387
|
-
"criterion": "4.1.2",
|
|
388
|
-
"level": "A",
|
|
389
|
-
"title": "Name, Role, Value"
|
|
390
|
-
}
|
|
272
|
+
{ "criterion": "2.1.1", "level": "A", "title": "Keyboard" },
|
|
273
|
+
{ "criterion": "4.1.2", "level": "A", "title": "Name, Role, Value" }
|
|
391
274
|
]
|
|
392
275
|
}
|
|
393
276
|
}
|
|
@@ -9,28 +9,61 @@
|
|
|
9
9
|
"category": "feedback",
|
|
10
10
|
"documentationUrl": "https://spectrum.adobe.com/page/takeover-dialog/"
|
|
11
11
|
},
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
"type": "
|
|
12
|
+
"documentBlocks": [
|
|
13
|
+
{
|
|
14
|
+
"type": "purpose",
|
|
15
|
+
"content": "Takeover dialogs are larger, flexible dialogs that contain other components to support complex workflows."
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"type": "guideline",
|
|
19
|
+
"content": "Takeover dialogs are full-screen modals used for complex or immersive workflows. They block access to the rest of the interface and are typically used when multiple steps or tools need focused attention. Use when the task requires the entire screen and shouldn’t be interrupted."
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"type": "guideline",
|
|
23
|
+
"content": "The takeover dialog supports two slots—one in the header and one in the body—where other components can be inserted."
|
|
15
24
|
},
|
|
16
|
-
|
|
17
|
-
"type": "
|
|
25
|
+
{
|
|
26
|
+
"type": "guideline",
|
|
27
|
+
"content": "Takeover dialogs support two layout variants: dialog and full-screen."
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"type": "guideline",
|
|
31
|
+
"content": "All takeover dialogs must include a title. The title appears at the top of the dialog and should briefly describe the expected outcome if the user proceeds with the primary action."
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"type": "guideline",
|
|
35
|
+
"content": "A takeover dialog must include at least one button. The primary action label refers to the rightmost button in the dialog footer for languages that read left to right. It should use a short, actionable phrase that clearly communicates the result of selecting the action—whether that means taking action, progressing through a workflow, or dismissing the dialog."
|
|
18
36
|
},
|
|
37
|
+
{
|
|
38
|
+
"type": "guideline",
|
|
39
|
+
"content": "Takeover dialogs can include up to three buttons if a secondary outline button label is defined. If no label is defined, the button won’t appear. The secondary outline button should use a short, actionable phrase that clearly communicates the result of selecting the action—typically describing the previous step or an alternative choice."
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"type": "guideline",
|
|
43
|
+
"content": "By default, a takeover dialog that includes a button to cancel or go back will be labeled “Cancel.”"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"type": "guideline",
|
|
47
|
+
"content": "When the title is too long for the available horizontal space, it wraps to form another line."
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"type": "guideline",
|
|
51
|
+
"content": "Takeover dialogs can optionally include additional elements in the header custom content area. When horizontal space is limited, the header custom content will be displayed underneath the title."
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"type": "guideline",
|
|
55
|
+
"content": "Most dialog titles should communicate the primary action of the dialog. When possible, the button label should use the same language as the action mentioned in the title. For example, if the title is “Delete conversation,” the primary action button label should be “Delete.”"
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
"options": {
|
|
59
|
+
"title": { "type": "string" },
|
|
60
|
+
"description": { "type": "string" },
|
|
19
61
|
"variant": {
|
|
20
62
|
"type": "string",
|
|
21
63
|
"default": "dialog",
|
|
22
|
-
"values": [
|
|
23
|
-
{
|
|
24
|
-
"value": "dialog"
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"value": "full screen"
|
|
28
|
-
}
|
|
29
|
-
]
|
|
30
|
-
},
|
|
31
|
-
"primaryActionLabel": {
|
|
32
|
-
"type": "string"
|
|
64
|
+
"values": [{ "value": "dialog" }, { "value": "full screen" }]
|
|
33
65
|
},
|
|
66
|
+
"primaryActionLabel": { "type": "string" },
|
|
34
67
|
"secondaryActionLabel": {
|
|
35
68
|
"type": "string",
|
|
36
69
|
"description": "If undefined, this button does not appear."
|
|
@@ -59,42 +92,19 @@
|
|
|
59
92
|
}
|
|
60
93
|
}
|
|
61
94
|
},
|
|
62
|
-
"lifecycle": {
|
|
63
|
-
"introduced": "1.0.0-draft"
|
|
64
|
-
},
|
|
95
|
+
"lifecycle": { "introduced": "1.0.0-draft" },
|
|
65
96
|
"tokenBindings": [
|
|
66
|
-
{
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"token": "takeover-dialog-height",
|
|
72
|
-
"context": "Height & width"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"token": "window-to-edge",
|
|
76
|
-
"context": "Margins (dialog option)"
|
|
77
|
-
},
|
|
97
|
+
{ "token": "takeover-dialog-width", "context": "Height & width" },
|
|
98
|
+
{ "token": "takeover-dialog-height", "context": "Height & width" },
|
|
99
|
+
{ "token": "window-to-edge", "context": "Margins (dialog option)" },
|
|
78
100
|
{
|
|
79
101
|
"token": "corner-radius-extra-large-default",
|
|
80
102
|
"context": "Rounding (dialog option)"
|
|
81
103
|
},
|
|
82
|
-
{
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
-
{
|
|
87
|
-
"token": "overlay-color",
|
|
88
|
-
"context": "Overlay"
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
"token": "overlay-opacity",
|
|
92
|
-
"context": "Overlay"
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"token": "heading-color",
|
|
96
|
-
"context": "Title"
|
|
97
|
-
}
|
|
104
|
+
{ "token": "background-color-layer2", "context": "Background" },
|
|
105
|
+
{ "token": "overlay-color", "context": "Overlay" },
|
|
106
|
+
{ "token": "overlay-opacity", "context": "Overlay" },
|
|
107
|
+
{ "token": "heading-color", "context": "Title" }
|
|
98
108
|
],
|
|
99
109
|
"accessibility": {
|
|
100
110
|
"role": "dialog",
|
|
@@ -102,16 +112,8 @@
|
|
|
102
112
|
"focusable": false,
|
|
103
113
|
"keyboardIntents": ["dismiss"],
|
|
104
114
|
"wcag": [
|
|
105
|
-
{
|
|
106
|
-
|
|
107
|
-
"level": "A",
|
|
108
|
-
"title": "Focus Order"
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"criterion": "4.1.2",
|
|
112
|
-
"level": "A",
|
|
113
|
-
"title": "Name, Role, Value"
|
|
114
|
-
}
|
|
115
|
+
{ "criterion": "2.4.3", "level": "A", "title": "Focus Order" },
|
|
116
|
+
{ "criterion": "4.1.2", "level": "A", "title": "Name, Role, Value" }
|
|
115
117
|
]
|
|
116
118
|
}
|
|
117
119
|
}
|