@adobe/spectrum-design-data 3.3.0-beta.2 → 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-overview.json +44 -46
- package/guidelines/attention-hierarchy.json +22 -13
- package/guidelines/background-layers.json +10 -80
- package/guidelines/brand.json +12 -32
- package/guidelines/colors.json +17 -47
- 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/manifest.json +15 -367
- package/guidelines/motion.json +16 -17
- package/guidelines/principles.json +8 -7
- package/guidelines/resources.json +15 -21
- package/guidelines/states.json +11 -16
- 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 -67
- package/guidelines/bi-directionality.json +0 -57
- package/guidelines/border-width.json +0 -58
- package/guidelines/cognitive.json +0 -197
- package/guidelines/component-spacing.json +0 -61
- package/guidelines/contact-us.json +0 -67
- package/guidelines/content-area-browsing-context.json +0 -65
- package/guidelines/content-design-grammar-and-mechanics.json +0 -241
- package/guidelines/content-design-voice-and-tone.json +0 -37
- package/guidelines/content-grammar-and-mechanics.json +0 -252
- package/guidelines/content-language-and-inclusivity-writing-about-people.json +0 -103
- package/guidelines/content-language-and-inclusivity-writing-with-visuals.json +0 -70
- package/guidelines/content-voice-and-tone.json +0 -47
- package/guidelines/creating-bluelines-browsing-context.json +0 -91
- package/guidelines/design-tokens.json +0 -158
- package/guidelines/drop-shadow.json +0 -68
- package/guidelines/grammar-and-mechanics.json +0 -252
- package/guidelines/header-browsing-context.json +0 -40
- package/guidelines/illustration.json +0 -105
- package/guidelines/in-product-word-list.json +0 -29
- package/guidelines/inclusive-design.json +0 -101
- package/guidelines/inclusive-ux-writing.json +0 -30
- package/guidelines/internationalization.json +0 -87
- package/guidelines/language-and-inclusivity-writing-about-people.json +0 -85
- package/guidelines/language-and-inclusivity-writing-with-visuals.json +0 -61
- package/guidelines/layout-and-structure-containers.json +0 -47
- package/guidelines/layout-and-structure-spacing-overview.json +0 -66
- package/guidelines/layout-spacing.json +0 -39
- package/guidelines/object-styles-overview.json +0 -17
- package/guidelines/rounding.json +0 -73
- package/guidelines/side-navigation-browsing-context.json +0 -74
- package/guidelines/spacing-overview.json +0 -45
- package/guidelines/support.json +0 -113
- package/guidelines/typography-overview.json +0 -43
- package/guidelines/typography-system.json +0 -208
- package/guidelines/visual-language-containers.json +0 -36
- package/guidelines/voice-and-tone.json +0 -47
- package/guidelines/whats-new.json +0 -32
- 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": "navigation",
|
|
10
10
|
"documentationUrl": "https://spectrum.adobe.com/page/tree-view/"
|
|
11
11
|
},
|
|
12
|
+
"implementations": [
|
|
13
|
+
{
|
|
14
|
+
"platform": "web",
|
|
15
|
+
"componentName": "TreeView",
|
|
16
|
+
"package": "@react-spectrum/s2"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
12
19
|
"documentBlocks": [
|
|
13
20
|
{
|
|
14
21
|
"type": "purpose",
|
|
@@ -16,99 +23,123 @@
|
|
|
16
23
|
},
|
|
17
24
|
{
|
|
18
25
|
"type": "guideline",
|
|
19
|
-
"content": "
|
|
26
|
+
"content": "Tree views display nested, hierarchical content in a collapsible structure. They allow for navigation through multiple levels of grouped information."
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"type": "guideline",
|
|
30
|
+
"content": "A tree view offers four sizes: small, medium, large and extra-large. Medium is the default and most common. Use other sizes sparingly to create a visual hierarchy of importance on the page."
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"type": "guideline",
|
|
34
|
+
"content": "When placed outside a panel, a tree view uses the detached style with rounded corners. Inside a panel, it spans edge to edge by default and does not include rounded corners."
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"type": "guideline",
|
|
38
|
+
"content": "Tree view items can include a drag icon when needed. The icon serves as a keyboard-navigable indicator for items that support multiple actions. It appears only on hover, active and keyboard focus states."
|
|
20
39
|
},
|
|
21
40
|
{
|
|
22
41
|
"type": "guideline",
|
|
23
|
-
"content": "
|
|
42
|
+
"content": "The type of selection allowed in a collection can be none, single or multiple."
|
|
24
43
|
},
|
|
25
44
|
{
|
|
26
45
|
"type": "guideline",
|
|
27
|
-
"content": "
|
|
46
|
+
"content": "Checkbox With checkboxes, both single-select and multi-select views display boxes on the left of each item. Clicking another item adds it to the selection, and clicking a selected item removes it."
|
|
28
47
|
},
|
|
29
48
|
{
|
|
30
49
|
"type": "guideline",
|
|
31
|
-
"content": "
|
|
50
|
+
"content": "Highlight Use highlight selection when checkboxes add clutter or unnecessary controls. This style shows a highlighted state for selected items, and clicking a new item replaces the previous selection by default."
|
|
32
51
|
},
|
|
33
52
|
{
|
|
34
53
|
"type": "guideline",
|
|
35
|
-
"content": "
|
|
54
|
+
"content": "All tree views have a hover state, regardless of whether actions or selections can be made."
|
|
36
55
|
},
|
|
37
56
|
{
|
|
38
57
|
"type": "guideline",
|
|
39
|
-
"content": "
|
|
58
|
+
"content": "Tree views support both single-select and multi-select modes, using either checkbox or highlight styles. In multi-select mode, selecting an item toggles its selection on or off. In single-select mode, selecting an item replaces the current selection."
|
|
40
59
|
},
|
|
41
60
|
{
|
|
42
61
|
"type": "guideline",
|
|
43
|
-
"content": "
|
|
62
|
+
"content": "Clicking the collapse and expand button will expand or collapse a tree view item that contains child tree view items."
|
|
44
63
|
},
|
|
45
64
|
{
|
|
46
65
|
"type": "guideline",
|
|
47
|
-
"content": "
|
|
66
|
+
"content": "Tree view items can be dragged and dropped to reorder or restructure the hierarchy, including multiple items at once. Dropping items from different hierarchies into a new location flattens them as sibling children. Tree views should also accept external drops, such as files, to create new items."
|
|
48
67
|
},
|
|
49
68
|
{
|
|
50
69
|
"type": "guideline",
|
|
51
|
-
"content": "
|
|
70
|
+
"content": "When a tree view item label is too long for the available horizontal space, it truncates. The full label appears in a tooltip on hover or keyboard focus."
|
|
52
71
|
},
|
|
53
72
|
{
|
|
54
73
|
"type": "guideline",
|
|
55
|
-
"content": "
|
|
74
|
+
"content": "For proper functionality, a parent-level tree view must include a collapse-and-expand button that uses a chevron icon - regardless of its nesting level. This makes the expected behavior clear when users click an item icon."
|
|
56
75
|
},
|
|
57
76
|
{
|
|
58
77
|
"type": "guideline",
|
|
59
|
-
"content": "
|
|
78
|
+
"content": "When displaying hierarchical information from different sources, use a single tree view with separate sections and headings. Do not cross-reference sources to avoid confusing users. Single and multi-selection should work as expected within one tree view component."
|
|
60
79
|
},
|
|
61
80
|
{
|
|
62
81
|
"type": "guideline",
|
|
63
|
-
"content": "
|
|
82
|
+
"content": "The root (topmost) level of the hierarchy does not always need to be shown or displayed as a tree view item. If the root provides no useful context, hide it or replace it with a section header. In cases such as mixed tree views, the root can serve as a “Back” button."
|
|
64
83
|
},
|
|
65
84
|
{
|
|
66
85
|
"type": "guideline",
|
|
67
|
-
"content": "
|
|
86
|
+
"content": "In some cases, users may need to view different hierarchies depending on context. To support this, let users drill into a tree view item to display a different variation of the tree view within the same panel. Use a navigation controller with a “Back” button to let users return to the previous view."
|
|
68
87
|
},
|
|
69
88
|
{
|
|
70
89
|
"type": "guideline",
|
|
71
|
-
"content": "
|
|
90
|
+
"content": "Choose icons that match the object type represented in the tree view. Icons can be unique to specific data types to help clarify meaning for users."
|
|
72
91
|
},
|
|
73
92
|
{
|
|
74
93
|
"type": "guideline",
|
|
75
|
-
"content": "
|
|
94
|
+
"content": "Tree view items can display thumbnails instead of icons when users need a content preview. Use icons as a fallback when an image is unavailable, and size them to match the thumbnail. Thumbnails should scale appropriately to the tree view size. For example, an extra-large tree view should not use small thumbnails; in that case, icons may work better."
|
|
76
95
|
},
|
|
77
96
|
{
|
|
78
97
|
"type": "guideline",
|
|
79
|
-
"content": "
|
|
98
|
+
"content": "One way to manage overflow is to limit how many levels of hierarchy users can create in a tree view. Some products use this approach to reduce the complexity of deeply nested hierarchies. Setting limits helps when a complex hierarchy is unnecessary for the experience."
|
|
80
99
|
},
|
|
81
100
|
{
|
|
82
101
|
"type": "guideline",
|
|
83
|
-
"content": "
|
|
102
|
+
"content": "When a label is too long to fit in the tree view, it truncates with an ellipsis. Hovering over or focusing on the item reveals a tooltip with the full label text."
|
|
84
103
|
},
|
|
85
104
|
{
|
|
86
105
|
"type": "guideline",
|
|
87
|
-
"content": "
|
|
106
|
+
"content": "When a tree view hierarchy may extend beyond the available layout space, use an adjustable layout mechanism such as panels or rails. This lets users modify the layout while preserving visibility of the tree view."
|
|
88
107
|
},
|
|
89
108
|
{
|
|
90
109
|
"type": "guideline",
|
|
91
|
-
"content": "
|
|
110
|
+
"content": "If you have a layout that doesn't allow for users to adjust the width of the container for a tree view, allow them to horizontally scroll in order to see the full depth of the hierarchy."
|
|
92
111
|
},
|
|
93
112
|
{
|
|
94
113
|
"type": "guideline",
|
|
95
|
-
"content": "
|
|
114
|
+
"content": "When tree views are very large, use a progress circle or a “Show more” control to reveal additional parts when contextually relevant. These loading patterns can apply to the entire tree view or to nested items."
|
|
96
115
|
},
|
|
97
116
|
{
|
|
98
117
|
"type": "guideline",
|
|
99
|
-
"content": "
|
|
118
|
+
"content": "If system processes are delaying the display of child tree view items when a parent tree view item is expanded, show a clear indication that the items are in the process of loading."
|
|
100
119
|
},
|
|
101
120
|
{
|
|
102
121
|
"type": "guideline",
|
|
103
|
-
"content": "
|
|
122
|
+
"content": "Users should be able to sort a tree view. Sorting should not affect the hierarchical structure since each layer of the hierarchy is sorted individually."
|
|
104
123
|
},
|
|
105
124
|
{
|
|
106
125
|
"type": "guideline",
|
|
107
|
-
"content": "
|
|
126
|
+
"content": "Users may need to modify a tree view directly. They should be able to create new parent or child items, such as groups or folders, and flatten the hierarchy at the item level, such as ungrouping layers. In some cases, users should be able to edit item labels directly."
|
|
108
127
|
},
|
|
109
128
|
{
|
|
110
129
|
"type": "guideline",
|
|
111
|
-
"content": "
|
|
130
|
+
"content": "Any action for modifying the hierarchy should be offered as an explicit control and, if needed, as a keyboard shortcut — but never as a shortcut alone."
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"type": "guideline",
|
|
134
|
+
"content": "Allow users to enter multiple-selection mode explicitly when keyboard shortcuts such as Shift + click are unavailable or when you need to show a different selection type. Do this by toggling the selection style from highlight to checkbox."
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"type": "guideline",
|
|
138
|
+
"content": "The checkbox selection style is intended for performing bulk actions on tree view items. Use this option when selection corresponds to bulk actions."
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"type": "guideline",
|
|
142
|
+
"content": "When you need to provide selection controls within a hierarchy, use a checkbox component instead of the tree view item’s label. This should not correspond to selecting specific content and works best for cases like categorized filtering."
|
|
112
143
|
}
|
|
113
144
|
],
|
|
114
145
|
"options": {
|
|
@@ -116,29 +147,67 @@
|
|
|
116
147
|
"type": "string",
|
|
117
148
|
"default": "m",
|
|
118
149
|
"values": [
|
|
119
|
-
{
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
{
|
|
150
|
+
{
|
|
151
|
+
"value": "s"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"value": "m"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"value": "l"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"value": "xl"
|
|
161
|
+
}
|
|
123
162
|
]
|
|
124
163
|
},
|
|
125
|
-
"isDetached": {
|
|
126
|
-
|
|
127
|
-
|
|
164
|
+
"isDetached": {
|
|
165
|
+
"type": "boolean",
|
|
166
|
+
"default": false
|
|
167
|
+
},
|
|
168
|
+
"isEmphasized": {
|
|
169
|
+
"type": "boolean",
|
|
170
|
+
"default": false
|
|
171
|
+
},
|
|
172
|
+
"showDragIcon": {
|
|
173
|
+
"type": "boolean",
|
|
174
|
+
"default": false
|
|
175
|
+
},
|
|
128
176
|
"selectionMode": {
|
|
129
177
|
"type": "string",
|
|
130
178
|
"default": "multiple",
|
|
131
|
-
"values": [
|
|
179
|
+
"values": [
|
|
180
|
+
{
|
|
181
|
+
"value": "single"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"value": "multiple"
|
|
185
|
+
}
|
|
186
|
+
]
|
|
132
187
|
},
|
|
133
188
|
"selectionStyle": {
|
|
134
189
|
"type": "string",
|
|
135
190
|
"default": "checkbox",
|
|
136
|
-
"values": [
|
|
191
|
+
"values": [
|
|
192
|
+
{
|
|
193
|
+
"value": "checkbox"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"value": "highlight"
|
|
197
|
+
}
|
|
198
|
+
]
|
|
137
199
|
},
|
|
138
200
|
"selectionBehavior": {
|
|
139
201
|
"type": "string",
|
|
140
202
|
"default": "toggle",
|
|
141
|
-
"values": [
|
|
203
|
+
"values": [
|
|
204
|
+
{
|
|
205
|
+
"value": "toggle"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"value": "replace"
|
|
209
|
+
}
|
|
210
|
+
]
|
|
142
211
|
}
|
|
143
212
|
},
|
|
144
213
|
"anatomy": [
|
|
@@ -146,30 +215,63 @@
|
|
|
146
215
|
"name": "action-area",
|
|
147
216
|
"description": "Trailing area containing item actions."
|
|
148
217
|
},
|
|
149
|
-
{
|
|
218
|
+
{
|
|
219
|
+
"name": "row"
|
|
220
|
+
},
|
|
150
221
|
{
|
|
151
222
|
"name": "disclosure-indicator",
|
|
152
223
|
"description": "Visual affordance showing a tree view item's expand/collapse state."
|
|
153
224
|
}
|
|
154
225
|
],
|
|
155
226
|
"states": [
|
|
156
|
-
{
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
{
|
|
161
|
-
|
|
162
|
-
|
|
227
|
+
{
|
|
228
|
+
"name": "default",
|
|
229
|
+
"description": "Resting base state."
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"name": "hover",
|
|
233
|
+
"trigger": "interaction"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"name": "down",
|
|
237
|
+
"trigger": "interaction"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"name": "keyboard-focus",
|
|
241
|
+
"trigger": "interaction"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"name": "selected",
|
|
245
|
+
"trigger": "interaction"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"name": "selected-default",
|
|
249
|
+
"trigger": "interaction"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"name": "selected-hover",
|
|
253
|
+
"trigger": "interaction"
|
|
254
|
+
}
|
|
163
255
|
],
|
|
164
|
-
"lifecycle": {
|
|
256
|
+
"lifecycle": {
|
|
257
|
+
"introduced": "1.0.0-draft"
|
|
258
|
+
},
|
|
165
259
|
"accessibility": {
|
|
166
260
|
"role": "tree",
|
|
167
261
|
"intents": ["navigate", "select", "expand"],
|
|
168
262
|
"focusable": true,
|
|
169
263
|
"keyboardIntents": ["navigate-items", "expand", "collapse", "activate"],
|
|
170
264
|
"wcag": [
|
|
171
|
-
{
|
|
172
|
-
|
|
265
|
+
{
|
|
266
|
+
"criterion": "2.1.1",
|
|
267
|
+
"level": "A",
|
|
268
|
+
"title": "Keyboard"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"criterion": "4.1.2",
|
|
272
|
+
"level": "A",
|
|
273
|
+
"title": "Name, Role, Value"
|
|
274
|
+
}
|
|
173
275
|
]
|
|
174
276
|
}
|
|
175
277
|
}
|
|
@@ -10,5 +10,12 @@
|
|
|
10
10
|
"documentationUrl": "https://spectrum.adobe.com/page/user-card/"
|
|
11
11
|
},
|
|
12
12
|
"anatomy": [{ "name": "title" }],
|
|
13
|
+
"implementations": [
|
|
14
|
+
{
|
|
15
|
+
"platform": "web",
|
|
16
|
+
"componentName": "UserCard",
|
|
17
|
+
"package": "@react-spectrum/s2"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
13
20
|
"lifecycle": { "introduced": "1.0.0-draft" }
|
|
14
21
|
}
|