@adobe/spectrum-design-data 3.3.0-beta.1 → 3.3.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 +67 -15
- package/components/action-bar.json +30 -9
- package/components/action-button.json +92 -39
- package/components/action-group.json +137 -18
- package/components/alert-banner.json +27 -8
- package/components/alert-dialog.json +55 -34
- package/components/avatar-group.json +35 -9
- package/components/avatar.json +105 -29
- package/components/badge.json +163 -56
- package/components/breadcrumbs.json +107 -26
- package/components/button-group.json +63 -19
- package/components/button.json +105 -61
- package/components/calendar.json +74 -8
- package/components/card.json +13 -0
- package/components/cards.json +46 -31
- package/components/checkbox-group.json +85 -16
- package/components/checkbox.json +97 -27
- package/components/close-button.json +75 -20
- package/components/coach-indicator.json +44 -14
- package/components/coach-mark.json +26 -8
- package/components/color-area.json +100 -20
- package/components/color-handle.json +46 -25
- package/components/color-loupe.json +14 -2
- package/components/color-slider.json +129 -26
- package/components/color-wheel.json +91 -17
- package/components/combo-box.json +189 -50
- package/components/contextual-help.json +126 -80
- package/components/date-field.json +7 -0
- package/components/date-picker.json +127 -24
- package/components/divider.json +38 -12
- package/components/drop-zone.json +37 -18
- package/components/field-label.json +62 -21
- package/components/heading.json +7 -0
- package/components/help-text.json +53 -16
- package/components/illustrated-message.json +85 -21
- package/components/in-line-alert.json +53 -13
- package/components/link.json +63 -24
- package/components/list-view.json +80 -15
- package/components/menu.json +181 -45
- package/components/meter.json +78 -24
- package/components/number-field.json +175 -34
- package/components/picker.json +188 -42
- package/components/popover.json +126 -37
- package/components/progress-bar.json +108 -23
- package/components/progress-circle.json +55 -12
- package/components/radio-button.json +67 -14
- package/components/radio-group.json +132 -28
- package/components/rating.json +38 -9
- package/components/search-field.json +126 -34
- package/components/segmented-control.json +70 -21
- package/components/select-box.json +103 -29
- package/components/side-navigation.json +69 -28
- package/components/slider.json +155 -39
- package/components/standard-dialog.json +88 -16
- package/components/status-light.json +136 -41
- package/components/steplist.json +24 -5
- package/components/swatch-group.json +55 -19
- package/components/swatch.json +79 -24
- package/components/switch.json +79 -31
- package/components/table.json +73 -26
- package/components/tabs.json +52 -22
- package/components/tag-field.json +60 -14
- package/components/tag-group.json +56 -16
- package/components/tag.json +78 -21
- package/components/takeover-dialog.json +61 -10
- package/components/text-area.json +205 -49
- package/components/text-field.json +170 -42
- package/components/thumbnail.json +63 -22
- package/components/time-field.json +7 -0
- package/components/toast.json +50 -29
- package/components/tooltip.json +87 -27
- package/components/tree-view.json +147 -45
- package/components/user-card.json +7 -0
- package/guidelines/app-frame-content-area.json +81 -0
- package/guidelines/app-frame-creating-bluelines.json +58 -0
- package/guidelines/app-frame-header.json +72 -0
- package/guidelines/app-frame-overview.json +50 -44
- package/guidelines/app-frame-side-navigation.json +138 -0
- package/guidelines/attention-hierarchy.json +21 -12
- package/guidelines/background-layers.json +10 -44
- package/guidelines/brand.json +10 -30
- package/guidelines/colors.json +17 -35
- package/guidelines/containers.json +62 -0
- package/guidelines/developer-overview.json +9 -25
- package/guidelines/faqs.json +9 -96
- package/guidelines/fonts.json +14 -29
- package/guidelines/grays.json +44 -17
- package/guidelines/icon-fundamentals.json +18 -7
- package/guidelines/illustrations.json +111 -0
- package/guidelines/introduction.json +2 -2
- package/guidelines/manifest.json +60 -252
- package/guidelines/motion.json +16 -17
- package/guidelines/object-styles.json +102 -0
- package/guidelines/principles.json +2 -2
- package/guidelines/resources.json +15 -21
- package/guidelines/spacing.json +25 -0
- package/guidelines/states.json +10 -15
- package/guidelines/typography-fundamentals.json +142 -0
- package/guidelines/using-icons.json +44 -33
- package/package.json +2 -2
- package/registry/platform-implementations.json +30 -0
- package/guidelines/ai-resource-guide.json +0 -50
- package/guidelines/applying-the-type-system.json +0 -63
- package/guidelines/bi-directionality.json +0 -57
- package/guidelines/border-width.json +0 -42
- package/guidelines/cognitive.json +0 -197
- package/guidelines/component-spacing.json +0 -49
- package/guidelines/contact-us.json +0 -67
- package/guidelines/content-area-browsing-context.json +0 -65
- package/guidelines/creating-bluelines-browsing-context.json +0 -91
- package/guidelines/design-tokens.json +0 -122
- package/guidelines/drop-shadow.json +0 -56
- package/guidelines/grammar-and-mechanics.json +0 -252
- package/guidelines/header-browsing-context.json +0 -37
- package/guidelines/illustration.json +0 -109
- package/guidelines/in-product-word-list.json +0 -29
- package/guidelines/inclusive-design.json +0 -93
- package/guidelines/inclusive-ux-writing.json +0 -30
- package/guidelines/internationalization.json +0 -87
- package/guidelines/layout-and-structure-containers.json +0 -47
- package/guidelines/layout-spacing.json +0 -39
- package/guidelines/object-styles-overview.json +0 -17
- package/guidelines/rounding.json +0 -61
- package/guidelines/side-navigation-browsing-context.json +0 -71
- package/guidelines/spacing-overview.json +0 -45
- package/guidelines/typography-overview.json +0 -39
- package/guidelines/typography-system.json +0 -168
- package/guidelines/visual-language-containers.json +0 -36
- package/guidelines/voice-and-tone.json +0 -47
- package/guidelines/writing-about-people.json +0 -103
- package/guidelines/writing-for-errors.json +0 -120
- package/guidelines/writing-for-onboarding.json +0 -119
- package/guidelines/writing-for-readability.json +0 -54
- package/guidelines/writing-with-visuals.json +0 -70
- package/registry/platform-extensions/web-components-states.json +0 -58
|
@@ -9,6 +9,13 @@
|
|
|
9
9
|
"category": "feedback",
|
|
10
10
|
"documentationUrl": "https://spectrum.adobe.com/page/alert-dialog/"
|
|
11
11
|
},
|
|
12
|
+
"implementations": [
|
|
13
|
+
{
|
|
14
|
+
"platform": "web",
|
|
15
|
+
"componentName": "AlertDialog",
|
|
16
|
+
"package": "@react-spectrum/s2"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
12
19
|
"documentBlocks": [
|
|
13
20
|
{
|
|
14
21
|
"type": "purpose",
|
|
@@ -16,76 +23,80 @@
|
|
|
16
23
|
},
|
|
17
24
|
{
|
|
18
25
|
"type": "guideline",
|
|
19
|
-
"content": "
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"type": "guideline",
|
|
23
|
-
"content": "Button group overflow.\n\nAlert dialogs can include up to three buttons. When horizontal space is limited, the buttons stack vertically. Buttons should be ordered by ascending importance, with the most critical action placed at the end or bottom of the stack."
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"type": "guideline",
|
|
27
|
-
"content": "Use alert dialogs sparingly.\n\nAlert dialogs are interruptive, so they should be reserved for important information that users must acknowledge before continuing a task or workflow. Use them only when absolutely necessary—not for low-priority notifications or excessive confirmations."
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"type": "guideline",
|
|
31
|
-
"content": "Don’t nest alert dialogs.\n\nAlert dialogs are designed to pause the experience until a decision is made, so only one should appear at a time. Avoid opening an alert dialog from within another. If a situation seems to require a sequence of decisions, consider using a different design pattern."
|
|
26
|
+
"content": "Alert dialogs present critical information that must be acknowledged. They appear over the interface and block further interaction until an action is selected."
|
|
32
27
|
},
|
|
33
28
|
{
|
|
34
29
|
"type": "guideline",
|
|
35
|
-
"content": "
|
|
30
|
+
"content": "By default, an alert dialog that includes a button to cancel or go back will be labeled “Cancel.”"
|
|
36
31
|
},
|
|
37
32
|
{
|
|
38
33
|
"type": "guideline",
|
|
39
|
-
"content": "
|
|
34
|
+
"content": "Alert 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
35
|
},
|
|
41
36
|
{
|
|
42
37
|
"type": "guideline",
|
|
43
|
-
"content": "
|
|
38
|
+
"content": "An alert 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 moving forward or dismissing the dialog."
|
|
44
39
|
},
|
|
45
40
|
{
|
|
46
41
|
"type": "guideline",
|
|
47
|
-
"content": "
|
|
42
|
+
"content": "Use the appropriate variant based on the context of the message:"
|
|
48
43
|
},
|
|
49
44
|
{
|
|
50
45
|
"type": "guideline",
|
|
51
|
-
"content": "
|
|
46
|
+
"content": "Alert dialogs should include a description when available. The description briefly communicates any additional information or context a user needs to make a decision based on the options presented."
|
|
52
47
|
},
|
|
53
48
|
{
|
|
54
49
|
"type": "guideline",
|
|
55
|
-
"content": "
|
|
50
|
+
"content": "All alert dialogs must have a title. The title appears at the top of the dialog and uses a few words to convey the outcome of what will happen if a user continues with the primary action."
|
|
56
51
|
},
|
|
57
52
|
{
|
|
58
53
|
"type": "guideline",
|
|
59
|
-
"content": "
|
|
54
|
+
"content": "When the title and description text are too long for the available horizontal space, they wrap to form another line."
|
|
60
55
|
},
|
|
61
56
|
{
|
|
62
57
|
"type": "guideline",
|
|
63
|
-
"content": "
|
|
58
|
+
"content": "Alert dialogs can include up to three buttons. When horizontal space is limited, the buttons stack vertically. Buttons should be ordered by ascending importance, with the most critical action placed at the end or bottom of the stack."
|
|
64
59
|
},
|
|
65
60
|
{
|
|
66
61
|
"type": "guideline",
|
|
67
|
-
"content": "
|
|
62
|
+
"content": "Alert dialogs are interruptive, so they should be reserved for important information that users must acknowledge before continuing a task or workflow. Use them only when absolutely necessary—not for low-priority notifications or excessive confirmations."
|
|
68
63
|
},
|
|
69
64
|
{
|
|
70
65
|
"type": "guideline",
|
|
71
|
-
"content": "
|
|
66
|
+
"content": "Alert dialogs are designed to pause the experience until a decision is made, so only one should appear at a time. Avoid opening an alert dialog from within another. If a situation seems to require a sequence of decisions, consider using a different design pattern."
|
|
72
67
|
}
|
|
73
68
|
],
|
|
74
69
|
"options": {
|
|
75
|
-
"title": {
|
|
76
|
-
|
|
70
|
+
"title": {
|
|
71
|
+
"type": "string"
|
|
72
|
+
},
|
|
73
|
+
"description": {
|
|
74
|
+
"type": "string"
|
|
75
|
+
},
|
|
77
76
|
"variant": {
|
|
78
77
|
"type": "string",
|
|
79
78
|
"default": "confirmation",
|
|
80
79
|
"values": [
|
|
81
|
-
{
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
{
|
|
85
|
-
|
|
80
|
+
{
|
|
81
|
+
"value": "confirmation"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"value": "information"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"value": "warning"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"value": "destructive"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"value": "error"
|
|
94
|
+
}
|
|
86
95
|
]
|
|
87
96
|
},
|
|
88
|
-
"primaryActionLabel": {
|
|
97
|
+
"primaryActionLabel": {
|
|
98
|
+
"type": "string"
|
|
99
|
+
},
|
|
89
100
|
"secondaryActionLabel": {
|
|
90
101
|
"type": "string",
|
|
91
102
|
"description": "If undefined, this button does not appear."
|
|
@@ -96,15 +107,25 @@
|
|
|
96
107
|
"description": "If undefined, this button does not appear."
|
|
97
108
|
}
|
|
98
109
|
},
|
|
99
|
-
"lifecycle": {
|
|
110
|
+
"lifecycle": {
|
|
111
|
+
"introduced": "1.0.0-draft"
|
|
112
|
+
},
|
|
100
113
|
"accessibility": {
|
|
101
114
|
"role": "dialog",
|
|
102
115
|
"intents": ["dismiss"],
|
|
103
116
|
"focusable": false,
|
|
104
117
|
"keyboardIntents": ["dismiss"],
|
|
105
118
|
"wcag": [
|
|
106
|
-
{
|
|
107
|
-
|
|
119
|
+
{
|
|
120
|
+
"criterion": "2.4.3",
|
|
121
|
+
"level": "A",
|
|
122
|
+
"title": "Focus Order"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"criterion": "4.1.2",
|
|
126
|
+
"level": "A",
|
|
127
|
+
"title": "Name, Role, Value"
|
|
128
|
+
}
|
|
108
129
|
]
|
|
109
130
|
}
|
|
110
131
|
}
|
|
@@ -9,6 +9,13 @@
|
|
|
9
9
|
"category": "actions",
|
|
10
10
|
"documentationUrl": "https://spectrum.adobe.com/page/avatar-group/"
|
|
11
11
|
},
|
|
12
|
+
"implementations": [
|
|
13
|
+
{
|
|
14
|
+
"platform": "web",
|
|
15
|
+
"componentName": "AvatarGroup",
|
|
16
|
+
"package": "@react-spectrum/s2"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
12
19
|
"documentBlocks": [
|
|
13
20
|
{
|
|
14
21
|
"type": "purpose",
|
|
@@ -48,16 +55,35 @@
|
|
|
48
55
|
"type": "number",
|
|
49
56
|
"default": 100,
|
|
50
57
|
"values": [
|
|
51
|
-
{
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
{
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
{
|
|
58
|
+
{
|
|
59
|
+
"value": 50
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"value": 75
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"value": 100
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"value": 200
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"value": 300
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"value": 400
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"value": 500
|
|
78
|
+
}
|
|
58
79
|
]
|
|
59
80
|
}
|
|
60
81
|
},
|
|
61
|
-
"lifecycle": {
|
|
62
|
-
|
|
82
|
+
"lifecycle": {
|
|
83
|
+
"introduced": "1.0.0-draft"
|
|
84
|
+
},
|
|
85
|
+
"accessibility": {
|
|
86
|
+
"role": "group",
|
|
87
|
+
"focusable": false
|
|
88
|
+
}
|
|
63
89
|
}
|
package/components/avatar.json
CHANGED
|
@@ -9,6 +9,19 @@
|
|
|
9
9
|
"category": "navigation",
|
|
10
10
|
"documentationUrl": "https://spectrum.adobe.com/page/avatar/"
|
|
11
11
|
},
|
|
12
|
+
"implementations": [
|
|
13
|
+
{
|
|
14
|
+
"platform": "web",
|
|
15
|
+
"componentName": "Avatar",
|
|
16
|
+
"package": "@react-spectrum/s2"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"platform": "web",
|
|
20
|
+
"componentName": "Avatar",
|
|
21
|
+
"importPath": "@adobe/spectrum-wc/components/avatar",
|
|
22
|
+
"notes": "Spectrum 2 web component custom element: swc-avatar."
|
|
23
|
+
}
|
|
24
|
+
],
|
|
12
25
|
"documentBlocks": [
|
|
13
26
|
{
|
|
14
27
|
"type": "purpose",
|
|
@@ -56,44 +69,107 @@
|
|
|
56
69
|
"type": "number",
|
|
57
70
|
"default": 500,
|
|
58
71
|
"values": [
|
|
59
|
-
{
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
{
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
{
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
{
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
{
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
{
|
|
75
|
-
|
|
72
|
+
{
|
|
73
|
+
"value": 50
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"value": 75
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"value": 100
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"value": 200
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"value": 300
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"value": 400
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"value": 500
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"value": 600
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"value": 700
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"value": 800
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"value": 900
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"value": 1000
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"value": 1100
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"value": 1200
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"value": 1300
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"value": 1400
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"value": 1500
|
|
122
|
+
}
|
|
76
123
|
]
|
|
77
124
|
},
|
|
78
125
|
"image": {
|
|
79
126
|
"type": "string",
|
|
80
127
|
"default": "user image",
|
|
81
128
|
"values": [
|
|
82
|
-
{
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
{
|
|
86
|
-
|
|
129
|
+
{
|
|
130
|
+
"value": "user image"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"value": "gradient image"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"value": "gradient"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"value": "guest image"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"value": "initials"
|
|
143
|
+
}
|
|
87
144
|
]
|
|
88
145
|
},
|
|
89
|
-
"isDisabled": {
|
|
90
|
-
|
|
146
|
+
"isDisabled": {
|
|
147
|
+
"type": "boolean",
|
|
148
|
+
"default": false
|
|
149
|
+
},
|
|
150
|
+
"showStroke": {
|
|
151
|
+
"type": "boolean",
|
|
152
|
+
"default": false
|
|
153
|
+
}
|
|
91
154
|
},
|
|
92
155
|
"states": [
|
|
93
|
-
{
|
|
94
|
-
|
|
95
|
-
|
|
156
|
+
{
|
|
157
|
+
"name": "down",
|
|
158
|
+
"trigger": "interaction"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"name": "keyboard-focus",
|
|
162
|
+
"trigger": "interaction"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"name": "disabled",
|
|
166
|
+
"trigger": "prop"
|
|
167
|
+
}
|
|
96
168
|
],
|
|
97
|
-
"lifecycle": {
|
|
98
|
-
|
|
169
|
+
"lifecycle": {
|
|
170
|
+
"introduced": "1.0.0-draft"
|
|
171
|
+
},
|
|
172
|
+
"accessibility": {
|
|
173
|
+
"focusable": false
|
|
174
|
+
}
|
|
99
175
|
}
|