@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
|
@@ -9,21 +9,85 @@
|
|
|
9
9
|
"category": "navigation",
|
|
10
10
|
"documentationUrl": "https://spectrum.adobe.com/page/list-view/"
|
|
11
11
|
},
|
|
12
|
+
"documentBlocks": [
|
|
13
|
+
{
|
|
14
|
+
"type": "purpose",
|
|
15
|
+
"content": "List views display rows of data or options that users can browse, select, and interact with."
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"type": "guideline",
|
|
19
|
+
"content": "List views display content in a structured, scrollable list. They support sorting, organizing, and selecting multiple items at once."
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"type": "guideline",
|
|
23
|
+
"content": "A list view is a versatile component and can contain many items depending on the use case. These items can be icons, thumbnails, avatars, checkboxes, drag handles, action buttons, and more."
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"type": "guideline",
|
|
27
|
+
"content": "By default a list view is not quiet. If true, the list view uses a quiet visual style meaning there is no background or borders to the component."
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"type": "guideline",
|
|
31
|
+
"content": "The selection mode defines how many items can be selected at once. A list view can use single selection, multiple selection, or none."
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"type": "guideline",
|
|
35
|
+
"content": "In the highlight selection style for touch interactions, tapping anywhere on the item will navigate to its contents. For mouse-based interactions, double-clicking anywhere on the item or single-clicking the navigation icon will do the same."
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"type": "guideline",
|
|
39
|
+
"content": "In the checkbox selection style, clicking or tapping the label area or navigation icon of a list view item will navigate to its contents."
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"type": "guideline",
|
|
43
|
+
"content": "Single-clicking or tapping anywhere on a list view item will select the item, except the label in checkbox selection style. For checkbox selection style, clicking the label will navigate to the item."
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"type": "guideline",
|
|
47
|
+
"content": "In touch experiences, the list view default is navigation only with the highlight selection style. Users enter a selection mode by a touch and hold gesture on any list view item."
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"type": "guideline",
|
|
51
|
+
"content": "Selection mode in touch uses the checkbox selection style and suppresses navigation. Users can exit selection mode by pressing the Escape key or deselecting all items."
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"type": "guideline",
|
|
55
|
+
"content": "List view items can be dragged and dropped to reorder or restructure the list."
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"type": "guideline",
|
|
59
|
+
"content": "Multiple items can be dragged at a time and shifted from one level of hierarchy to another."
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"type": "guideline",
|
|
63
|
+
"content": "List views can also accept dropped items from outside the component, to modify the list."
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"type": "guideline",
|
|
67
|
+
"content": "A list view item's label or description will truncate if the text is longer than the available horizontal space. Display the full label or description text in a tooltip on hover and focus states."
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"type": "guideline",
|
|
71
|
+
"content": "When more than two actions are available for a list view item, the actions are nested within an action menu."
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"type": "guideline",
|
|
75
|
+
"content": "List views work best for flat collections of items that share the same hierarchy level."
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"type": "guideline",
|
|
79
|
+
"content": "Tree views are ideal for displaying nested or hierarchical relationships."
|
|
80
|
+
}
|
|
81
|
+
],
|
|
12
82
|
"options": {
|
|
13
83
|
"selectionMode": {
|
|
14
84
|
"type": "string",
|
|
15
85
|
"default": "single",
|
|
16
86
|
"description": "Defines how many items can be selected at once.",
|
|
17
87
|
"values": [
|
|
18
|
-
{
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
{
|
|
22
|
-
"value": "single"
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"value": "multiple"
|
|
26
|
-
}
|
|
88
|
+
{ "value": "none" },
|
|
89
|
+
{ "value": "single" },
|
|
90
|
+
{ "value": "multiple" }
|
|
27
91
|
]
|
|
28
92
|
},
|
|
29
93
|
"isQuiet": {
|
|
@@ -82,10 +146,7 @@
|
|
|
82
146
|
"default": "none",
|
|
83
147
|
"description": "Defines the border radius of the list view item."
|
|
84
148
|
},
|
|
85
|
-
"isEmphasized": {
|
|
86
|
-
"type": "boolean",
|
|
87
|
-
"default": false
|
|
88
|
-
},
|
|
149
|
+
"isEmphasized": { "type": "boolean", "default": false },
|
|
89
150
|
"state": {
|
|
90
151
|
"type": "string",
|
|
91
152
|
"enum": ["default", "hover", "dragged"],
|
|
@@ -97,34 +158,14 @@
|
|
|
97
158
|
}
|
|
98
159
|
}
|
|
99
160
|
},
|
|
100
|
-
"lifecycle": {
|
|
101
|
-
"introduced": "1.0.0-draft"
|
|
102
|
-
},
|
|
161
|
+
"lifecycle": { "introduced": "1.0.0-draft" },
|
|
103
162
|
"tokenBindings": [
|
|
104
|
-
{
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
|
|
110
|
-
"context": "Variants"
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
"token": "workflow-icon-size-100",
|
|
114
|
-
"context": "Icon size"
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"token": "list-view-minimum-height",
|
|
118
|
-
"context": "Component height"
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
"token": "list-view-minimum-width",
|
|
122
|
-
"context": "Component width"
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"token": "corner-radius-medium-default",
|
|
126
|
-
"context": "Item rounding"
|
|
127
|
-
},
|
|
163
|
+
{ "token": "(multi-select", "context": "Variants" },
|
|
164
|
+
{ "token": "multi-select)", "context": "Variants" },
|
|
165
|
+
{ "token": "workflow-icon-size-100", "context": "Icon size" },
|
|
166
|
+
{ "token": "list-view-minimum-height", "context": "Component height" },
|
|
167
|
+
{ "token": "list-view-minimum-width", "context": "Component width" },
|
|
168
|
+
{ "token": "corner-radius-medium-default", "context": "Item rounding" },
|
|
128
169
|
{
|
|
129
170
|
"token": "stack-item-start-edge-to-content",
|
|
130
171
|
"context": "Spacing (edge to drag handle)"
|
|
@@ -165,10 +206,7 @@
|
|
|
165
206
|
"token": "list-view-end-edge-to-content",
|
|
166
207
|
"context": "Spacing (edge to Navigation icon)"
|
|
167
208
|
},
|
|
168
|
-
{
|
|
169
|
-
"token": "vertical-align-items",
|
|
170
|
-
"context": "Spacing (vertical)"
|
|
171
|
-
},
|
|
209
|
+
{ "token": "vertical-align-items", "context": "Spacing (vertical)" },
|
|
172
210
|
{
|
|
173
211
|
"token": "stack-item-minimum-padding-vertical",
|
|
174
212
|
"context": "Spacing (vertical)"
|
|
@@ -181,50 +219,20 @@
|
|
|
181
219
|
"token": "border-width-100",
|
|
182
220
|
"context": "Border width (selected - highlight)"
|
|
183
221
|
},
|
|
184
|
-
{
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
"token": "drop-shadow-dragged-x",
|
|
194
|
-
"context": "Dragged shadow"
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
"token": "drop-shadow-dragged-y",
|
|
198
|
-
"context": "Dragged shadow"
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
"token": "drop-shadow-dragged-blur",
|
|
202
|
-
"context": "Dragged shadow"
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
"token": "drop-shadow-dragged-color",
|
|
206
|
-
"context": "Dragged shadow"
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
"token": "component-height-100",
|
|
210
|
-
"context": "Height"
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
"token": "stack-item-header-minimum-width",
|
|
214
|
-
"context": "Width"
|
|
215
|
-
},
|
|
222
|
+
{ "token": "focus-indicator-thickness", "context": "Focus" },
|
|
223
|
+
{ "token": "focus-indicator-gap", "context": "Focus (drag handle)" },
|
|
224
|
+
{ "token": "drop-shadow-dragged-x", "context": "Dragged shadow" },
|
|
225
|
+
{ "token": "drop-shadow-dragged-y", "context": "Dragged shadow" },
|
|
226
|
+
{ "token": "drop-shadow-dragged-blur", "context": "Dragged shadow" },
|
|
227
|
+
{ "token": "drop-shadow-dragged-color", "context": "Dragged shadow" },
|
|
228
|
+
{ "token": "component-height-100", "context": "Height" },
|
|
229
|
+
{ "token": "stack-item-header-minimum-width", "context": "Width" },
|
|
216
230
|
{
|
|
217
231
|
"token": "component-edge-to-text-100",
|
|
218
232
|
"context": "Spacing (horizontal)"
|
|
219
233
|
},
|
|
220
|
-
{
|
|
221
|
-
|
|
222
|
-
"context": "Spacing (vertical)"
|
|
223
|
-
},
|
|
224
|
-
{
|
|
225
|
-
"token": "bottom-to-text-100",
|
|
226
|
-
"context": "Spacing (vertical)"
|
|
227
|
-
},
|
|
234
|
+
{ "token": "top-to-text-100", "context": "Spacing (vertical)" },
|
|
235
|
+
{ "token": "bottom-to-text-100", "context": "Spacing (vertical)" },
|
|
228
236
|
{
|
|
229
237
|
"token": "component-top-to-workflow-icon-100",
|
|
230
238
|
"context": "Spacing (vertical)"
|
|
@@ -237,14 +245,8 @@
|
|
|
237
245
|
"token": "stack-item-item-to-item",
|
|
238
246
|
"context": "Spacing (vertically, between list view header to list view items)"
|
|
239
247
|
},
|
|
240
|
-
{
|
|
241
|
-
|
|
242
|
-
"context": "Background"
|
|
243
|
-
},
|
|
244
|
-
{
|
|
245
|
-
"token": "stack-item-background-color-down",
|
|
246
|
-
"context": "Background"
|
|
247
|
-
},
|
|
248
|
+
{ "token": "stack-item-background-color-hover", "context": "Background" },
|
|
249
|
+
{ "token": "stack-item-background-color-down", "context": "Background" },
|
|
248
250
|
{
|
|
249
251
|
"token": "stack-item-background-color-key-focus",
|
|
250
252
|
"context": "Background"
|
|
@@ -277,10 +279,7 @@
|
|
|
277
279
|
"token": "accent-content-color-selected",
|
|
278
280
|
"context": "Border (selected, highlight)"
|
|
279
281
|
},
|
|
280
|
-
{
|
|
281
|
-
"token": "gray-300",
|
|
282
|
-
"context": "Border"
|
|
283
|
-
},
|
|
282
|
+
{ "token": "gray-300", "context": "Border" },
|
|
284
283
|
{
|
|
285
284
|
"token": "neutral-subdued-content-color-default",
|
|
286
285
|
"context": "Label and icon (non-selected)"
|
|
@@ -321,62 +320,24 @@
|
|
|
321
320
|
"token": "disabled-content-color",
|
|
322
321
|
"context": "Label and icon (disabled)"
|
|
323
322
|
},
|
|
324
|
-
{
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
},
|
|
328
|
-
{
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
},
|
|
332
|
-
{
|
|
333
|
-
|
|
334
|
-
"context": "Text (List view item)"
|
|
335
|
-
},
|
|
336
|
-
{
|
|
337
|
-
"token": "regular-font-weight",
|
|
338
|
-
"context": "Text (List view item)"
|
|
339
|
-
},
|
|
340
|
-
{
|
|
341
|
-
"token": "default-font-style",
|
|
342
|
-
"context": "Text (List view item)"
|
|
343
|
-
},
|
|
344
|
-
{
|
|
345
|
-
"token": "font-size-100",
|
|
346
|
-
"context": "Text (List view item)"
|
|
347
|
-
},
|
|
348
|
-
{
|
|
349
|
-
"token": "line-height-100",
|
|
350
|
-
"context": "Text (List view item)"
|
|
351
|
-
},
|
|
352
|
-
{
|
|
353
|
-
"token": "cjk-line-height-100",
|
|
354
|
-
"context": "Text (List view item)"
|
|
355
|
-
},
|
|
356
|
-
{
|
|
357
|
-
"token": "font-size-75",
|
|
358
|
-
"context": "Text (List view description)"
|
|
359
|
-
},
|
|
360
|
-
{
|
|
361
|
-
"token": "bold-font-weight",
|
|
362
|
-
"context": "Text (List view title)"
|
|
363
|
-
}
|
|
323
|
+
{ "token": "focus-indicator-color", "context": "Focus indicator" },
|
|
324
|
+
{ "token": "title-color", "context": "Title label and icon" },
|
|
325
|
+
{ "token": "default-font-family", "context": "Text (List view item)" },
|
|
326
|
+
{ "token": "regular-font-weight", "context": "Text (List view item)" },
|
|
327
|
+
{ "token": "default-font-style", "context": "Text (List view item)" },
|
|
328
|
+
{ "token": "font-size-100", "context": "Text (List view item)" },
|
|
329
|
+
{ "token": "line-height-100", "context": "Text (List view item)" },
|
|
330
|
+
{ "token": "cjk-line-height-100", "context": "Text (List view item)" },
|
|
331
|
+
{ "token": "font-size-75", "context": "Text (List view description)" },
|
|
332
|
+
{ "token": "bold-font-weight", "context": "Text (List view title)" }
|
|
364
333
|
],
|
|
365
334
|
"accessibility": {
|
|
366
335
|
"intents": ["select", "navigate"],
|
|
367
336
|
"focusable": true,
|
|
368
337
|
"keyboardIntents": ["navigate-items", "activate", "select-all"],
|
|
369
338
|
"wcag": [
|
|
370
|
-
{
|
|
371
|
-
|
|
372
|
-
"level": "A",
|
|
373
|
-
"title": "Keyboard"
|
|
374
|
-
},
|
|
375
|
-
{
|
|
376
|
-
"criterion": "4.1.2",
|
|
377
|
-
"level": "A",
|
|
378
|
-
"title": "Name, Role, Value"
|
|
379
|
-
}
|
|
339
|
+
{ "criterion": "2.1.1", "level": "A", "title": "Keyboard" },
|
|
340
|
+
{ "criterion": "4.1.2", "level": "A", "title": "Name, Role, Value" }
|
|
380
341
|
]
|
|
381
342
|
}
|
|
382
343
|
}
|