@adobe/spectrum-design-data 0.4.0 → 0.7.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.
Files changed (96) hide show
  1. package/components/accordion.json +108 -194
  2. package/components/action-bar.json +64 -97
  3. package/components/action-button.json +95 -230
  4. package/components/action-group.json +88 -86
  5. package/components/alert-banner.json +104 -76
  6. package/components/alert-dialog.json +78 -126
  7. package/components/avatar-group.json +61 -119
  8. package/components/avatar.json +98 -212
  9. package/components/badge.json +138 -256
  10. package/components/breadcrumbs.json +95 -89
  11. package/components/button-group.json +57 -48
  12. package/components/button.json +151 -368
  13. package/components/calendar.json +97 -34
  14. package/components/cards.json +109 -250
  15. package/components/checkbox-group.json +50 -58
  16. package/components/checkbox.json +121 -186
  17. package/components/close-button.json +61 -124
  18. package/components/coach-indicator.json +63 -72
  19. package/components/coach-mark.json +89 -93
  20. package/components/color-area.json +68 -94
  21. package/components/color-handle.json +39 -79
  22. package/components/color-loupe.json +35 -52
  23. package/components/color-slider.json +95 -116
  24. package/components/color-wheel.json +67 -73
  25. package/components/combo-box.json +243 -331
  26. package/components/contextual-help.json +86 -175
  27. package/components/date-picker.json +139 -179
  28. package/components/divider.json +30 -69
  29. package/components/drop-zone.json +51 -92
  30. package/components/field-label.json +75 -117
  31. package/components/help-text.json +81 -105
  32. package/components/illustrated-message.json +106 -73
  33. package/components/in-line-alert.json +50 -83
  34. package/components/link.json +63 -85
  35. package/components/list-view.json +107 -146
  36. package/components/menu.json +180 -274
  37. package/components/meter.json +72 -118
  38. package/components/number-field.json +213 -305
  39. package/components/picker.json +208 -320
  40. package/components/popover.json +94 -129
  41. package/components/progress-bar.json +94 -131
  42. package/components/progress-circle.json +45 -72
  43. package/components/radio-button.json +87 -156
  44. package/components/radio-group.json +107 -74
  45. package/components/rating.json +66 -99
  46. package/components/search-field.json +132 -202
  47. package/components/segmented-control.json +94 -109
  48. package/components/select-box.json +119 -179
  49. package/components/side-navigation.json +108 -118
  50. package/components/slider.json +143 -228
  51. package/components/standard-dialog.json +96 -114
  52. package/components/standard-panel.json +105 -53
  53. package/components/status-light.json +104 -240
  54. package/components/steplist.json +77 -161
  55. package/components/swatch-group.json +42 -58
  56. package/components/swatch.json +75 -162
  57. package/components/switch.json +101 -189
  58. package/components/table.json +97 -102
  59. package/components/tabs.json +77 -104
  60. package/components/tag-field.json +86 -150
  61. package/components/tag-group.json +50 -44
  62. package/components/tag.json +81 -198
  63. package/components/takeover-dialog.json +59 -57
  64. package/components/text-area.json +200 -323
  65. package/components/text-field.json +183 -304
  66. package/components/thumbnail.json +63 -105
  67. package/components/toast.json +97 -83
  68. package/components/tooltip.json +104 -96
  69. package/components/tree-view.json +169 -181
  70. package/guidelines/app-frame-content-area.json +81 -0
  71. package/guidelines/app-frame-creating-bluelines.json +58 -0
  72. package/guidelines/app-frame-header.json +72 -0
  73. package/guidelines/app-frame-overview.json +167 -0
  74. package/guidelines/app-frame-side-navigation.json +138 -0
  75. package/guidelines/attention-hierarchy.json +42 -0
  76. package/guidelines/background-layers.json +38 -0
  77. package/guidelines/brand.json +50 -0
  78. package/guidelines/colors.json +62 -0
  79. package/guidelines/containers.json +62 -0
  80. package/guidelines/developer-overview.json +35 -0
  81. package/guidelines/faqs.json +35 -0
  82. package/guidelines/fonts.json +58 -0
  83. package/guidelines/grays.json +66 -0
  84. package/guidelines/icon-fundamentals.json +45 -0
  85. package/guidelines/illustrations.json +111 -0
  86. package/guidelines/introduction.json +31 -0
  87. package/guidelines/manifest.json +204 -0
  88. package/guidelines/motion.json +41 -0
  89. package/guidelines/object-styles.json +102 -0
  90. package/guidelines/principles.json +30 -0
  91. package/guidelines/resources.json +59 -0
  92. package/guidelines/spacing.json +25 -0
  93. package/guidelines/states.json +34 -0
  94. package/guidelines/typography-fundamentals.json +142 -0
  95. package/guidelines/using-icons.json +107 -0
  96. package/package.json +4 -2
@@ -9,23 +9,93 @@
9
9
  "category": "feedback",
10
10
  "documentationUrl": "https://spectrum.adobe.com/page/tooltip/"
11
11
  },
12
- "options": {
13
- "label": {
14
- "type": "string"
12
+ "documentBlocks": [
13
+ {
14
+ "type": "purpose",
15
+ "content": "Tooltips show contextual help or information about specific components when a user hovers or focuses on them."
16
+ },
17
+ {
18
+ "type": "guideline",
19
+ "content": "Tooltips display contextual information related to a specific component. They appear on hover or focus to clarify purpose or behavior."
20
+ },
21
+ {
22
+ "type": "guideline",
23
+ "content": "All tooltips have a label. The label communicates the contextual help or information about specific components when a user hovers over or focuses on them."
24
+ },
25
+ {
26
+ "type": "guideline",
27
+ "content": "By default, tooltips are the neutral variant. These are the most common variant because most tooltips are used to only disclose additional information, without conveying a semantic meaning. The neutral variant never includes an icon."
28
+ },
29
+ {
30
+ "type": "guideline",
31
+ "content": "Tooltips also come in semantic variants: informative (blue), and negative (red). An icon is required for these variants to ensure information isn’t conveyed by color alone."
32
+ },
33
+ {
34
+ "type": "guideline",
35
+ "content": "2 of the 3 tooltip variants (informative and negative) can include an icon to supplement the messaging. These icons are predefined and can not be customized. Unless it's being used to provide context about the exact same icon, a semantic tooltip should always show an icon. Doing this is essential for helping users with color vision deficiency to discern the message tone."
36
+ },
37
+ {
38
+ "type": "guideline",
39
+ "content": "A tooltip is positioned in relation to its target."
40
+ },
41
+ {
42
+ "type": "guideline",
43
+ "content": "This option determines whether or not a tooltip should be able to switch sides when constrained by space. A tooltip placed at the top would flip to be placed at the bottom (and vice versa), and a tooltip placed at the left would flip to be placed at the right (and vice versa)."
44
+ },
45
+ {
46
+ "type": "guideline",
47
+ "content": "The offset is the distance between the end of the tip and the target."
48
+ },
49
+ {
50
+ "type": "guideline",
51
+ "content": "To make sure that the tooltip will stay within certain boundaries (e.g., a browser window) it’s possible to define a container and a container padding value to respect."
52
+ },
53
+ {
54
+ "type": "guideline",
55
+ "content": "When the label is too long for the available horizontal space, it wraps to form another line."
56
+ },
57
+ {
58
+ "type": "guideline",
59
+ "content": "A tooltip fades in and out when showing and hiding, and slides a short distance from the source to indicate its origin. The direction of the slide (left, right, top, bottom) depends on the placement of the tooltip. The animation attributes (duration, easing, offset) are the same whether it’s showing or hiding."
15
60
  },
61
+ {
62
+ "type": "guideline",
63
+ "content": "Tooltips attached to help icons appear immediately. For conventional UI elements where a tooltip appearing immediately would be intrusive, delay appearance with a warmup period."
64
+ },
65
+ {
66
+ "type": "guideline",
67
+ "content": "The warmup period is a global timer that requires the cursor to remain on a UI element for the allotted time before a tooltip appears. Once this period is complete, a tooltip appears instantly on any hovered-upon UI element until the cursor is in an area that does not trigger a tooltip for the duration of the cooldown period."
68
+ },
69
+ {
70
+ "type": "guideline",
71
+ "content": "Icons are not always easy to identify on their own. When you use components that don’t have labels — for example, icon-only action buttons and tabs — make sure to use tooltips to provide context for the icons."
72
+ },
73
+ {
74
+ "type": "guideline",
75
+ "content": "For example, in a scenario where a user is entering their password into a field, the crucial information would be to state the password requirements. Supplementary context would be a message about how to get help if they have forgotten their password."
76
+ },
77
+ {
78
+ "type": "guideline",
79
+ "content": "Tooltips should be as concise and clear as possible. Keep the text to 1 or 2 short sentences. If the information you need to communicate is longer than that, look into using a different design."
80
+ },
81
+ {
82
+ "type": "guideline",
83
+ "content": "If a tooltip is written in a full sentence (or is 2 or more sentences), include a period at the end. If it's a short phrase or is only the name of a tool, action, or icon, don't add a period to the end."
84
+ },
85
+ {
86
+ "type": "guideline",
87
+ "content": "Tooltips appear only on hover or when in keyboard focus. They should not contain actions or links."
88
+ }
89
+ ],
90
+ "options": {
91
+ "label": { "type": "string" },
16
92
  "variant": {
17
93
  "type": "string",
18
94
  "default": "neutral",
19
95
  "values": [
20
- {
21
- "value": "neutral"
22
- },
23
- {
24
- "value": "informative"
25
- },
26
- {
27
- "value": "negative"
28
- }
96
+ { "value": "neutral" },
97
+ { "value": "informative" },
98
+ { "value": "negative" }
29
99
  ]
30
100
  },
31
101
  "hasIcon": {
@@ -42,24 +112,13 @@
42
112
  "type": "string",
43
113
  "default": "top",
44
114
  "values": [
45
- {
46
- "value": "top"
47
- },
48
- {
49
- "value": "bottom"
50
- },
51
- {
52
- "value": "left"
53
- },
54
- {
55
- "value": "right"
56
- }
115
+ { "value": "top" },
116
+ { "value": "bottom" },
117
+ { "value": "left" },
118
+ { "value": "right" }
57
119
  ]
58
120
  },
59
- "shouldFlip": {
60
- "type": "boolean",
61
- "default": false
62
- },
121
+ "shouldFlip": { "type": "boolean", "default": false },
63
122
  "offset": {
64
123
  "type": "number",
65
124
  "default": 4,
@@ -71,34 +130,14 @@
71
130
  "description": "units: pixels"
72
131
  }
73
132
  },
74
- "lifecycle": {
75
- "introduced": "1.0.0-draft"
76
- },
133
+ "lifecycle": { "introduced": "1.0.0-draft" },
77
134
  "tokenBindings": [
78
- {
79
- "token": "component-height-75",
80
- "context": "Minimum height"
81
- },
82
- {
83
- "token": "tooltip-maximum-width",
84
- "context": "Maximum width"
85
- },
86
- {
87
- "token": "corner-radius-500",
88
- "context": "Rounding"
89
- },
90
- {
91
- "token": "tooltip-tip-width",
92
- "context": "Tip"
93
- },
94
- {
95
- "token": "tooltip-tip-height",
96
- "context": "Tip"
97
- },
98
- {
99
- "token": "tooltip-tip-corner-radius",
100
- "context": "Rounding (tip)"
101
- },
135
+ { "token": "component-height-75", "context": "Minimum height" },
136
+ { "token": "tooltip-maximum-width", "context": "Maximum width" },
137
+ { "token": "corner-radius-500", "context": "Rounding" },
138
+ { "token": "tooltip-tip-width", "context": "Tip" },
139
+ { "token": "tooltip-tip-height", "context": "Tip" },
140
+ { "token": "tooltip-tip-corner-radius", "context": "Rounding (tip)" },
102
141
  {
103
142
  "token": "component-edge-to-text-75",
104
143
  "context": "Spacing (start/end edges)"
@@ -111,42 +150,15 @@
111
150
  "token": "component-bottom-to-text-75",
112
151
  "context": "Spacing (top/bottom edge to text)"
113
152
  },
114
- {
115
- "token": "spacing-75",
116
- "context": "Spacing (tip to source)"
117
- },
118
- {
119
- "token": "spacing-100",
120
- "context": "Container padding"
121
- },
122
- {
123
- "token": "default-font-family",
124
- "context": "Label"
125
- },
126
- {
127
- "token": "regular-font-weight",
128
- "context": "Label"
129
- },
130
- {
131
- "token": "default-font-style",
132
- "context": "Label"
133
- },
134
- {
135
- "token": "font-size-75",
136
- "context": "Label"
137
- },
138
- {
139
- "token": "line-height-100",
140
- "context": "Label"
141
- },
142
- {
143
- "token": "cjk-line-height-100",
144
- "context": "Label"
145
- },
146
- {
147
- "token": "gray-25",
148
- "context": "Text"
149
- },
153
+ { "token": "spacing-75", "context": "Spacing (tip to source)" },
154
+ { "token": "spacing-100", "context": "Container padding" },
155
+ { "token": "default-font-family", "context": "Label" },
156
+ { "token": "regular-font-weight", "context": "Label" },
157
+ { "token": "default-font-style", "context": "Label" },
158
+ { "token": "font-size-75", "context": "Label" },
159
+ { "token": "line-height-100", "context": "Label" },
160
+ { "token": "cjk-line-height-100", "context": "Label" },
161
+ { "token": "gray-25", "context": "Text" },
150
162
  {
151
163
  "token": "neutral-background-color-default",
152
164
  "context": "Background (Neutral)"
@@ -169,11 +181,7 @@
169
181
  "level": "AA",
170
182
  "title": "Content on Hover or Focus"
171
183
  },
172
- {
173
- "criterion": "4.1.2",
174
- "level": "A",
175
- "title": "Name, Role, Value"
176
- }
184
+ { "criterion": "4.1.2", "level": "A", "title": "Name, Role, Value" }
177
185
  ]
178
186
  }
179
187
  }
@@ -9,108 +9,173 @@
9
9
  "category": "navigation",
10
10
  "documentationUrl": "https://spectrum.adobe.com/page/tree-view/"
11
11
  },
12
+ "documentBlocks": [
13
+ {
14
+ "type": "purpose",
15
+ "content": "A tree view provides users with a way to navigate nested hierarchical information."
16
+ },
17
+ {
18
+ "type": "guideline",
19
+ "content": "Tree views display nested, hierarchical content in a collapsible structure. They allow for navigation through multiple levels of grouped information."
20
+ },
21
+ {
22
+ "type": "guideline",
23
+ "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."
24
+ },
25
+ {
26
+ "type": "guideline",
27
+ "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."
28
+ },
29
+ {
30
+ "type": "guideline",
31
+ "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."
32
+ },
33
+ {
34
+ "type": "guideline",
35
+ "content": "The type of selection allowed in a collection can be none, single or multiple."
36
+ },
37
+ {
38
+ "type": "guideline",
39
+ "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."
40
+ },
41
+ {
42
+ "type": "guideline",
43
+ "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."
44
+ },
45
+ {
46
+ "type": "guideline",
47
+ "content": "All tree views have a hover state, regardless of whether actions or selections can be made."
48
+ },
49
+ {
50
+ "type": "guideline",
51
+ "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."
52
+ },
53
+ {
54
+ "type": "guideline",
55
+ "content": "Clicking the collapse and expand button will expand or collapse a tree view item that contains child tree view items."
56
+ },
57
+ {
58
+ "type": "guideline",
59
+ "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."
60
+ },
61
+ {
62
+ "type": "guideline",
63
+ "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."
64
+ },
65
+ {
66
+ "type": "guideline",
67
+ "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."
68
+ },
69
+ {
70
+ "type": "guideline",
71
+ "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."
72
+ },
73
+ {
74
+ "type": "guideline",
75
+ "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."
76
+ },
77
+ {
78
+ "type": "guideline",
79
+ "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."
80
+ },
81
+ {
82
+ "type": "guideline",
83
+ "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."
84
+ },
85
+ {
86
+ "type": "guideline",
87
+ "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."
88
+ },
89
+ {
90
+ "type": "guideline",
91
+ "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."
92
+ },
93
+ {
94
+ "type": "guideline",
95
+ "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."
96
+ },
97
+ {
98
+ "type": "guideline",
99
+ "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."
100
+ },
101
+ {
102
+ "type": "guideline",
103
+ "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."
104
+ },
105
+ {
106
+ "type": "guideline",
107
+ "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."
108
+ },
109
+ {
110
+ "type": "guideline",
111
+ "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."
112
+ },
113
+ {
114
+ "type": "guideline",
115
+ "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."
116
+ },
117
+ {
118
+ "type": "guideline",
119
+ "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."
120
+ },
121
+ {
122
+ "type": "guideline",
123
+ "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."
124
+ },
125
+ {
126
+ "type": "guideline",
127
+ "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."
128
+ },
129
+ {
130
+ "type": "guideline",
131
+ "content": "The checkbox selection style is intended for performing bulk actions on tree view items. Use this option when selection corresponds to bulk actions."
132
+ },
133
+ {
134
+ "type": "guideline",
135
+ "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."
136
+ }
137
+ ],
12
138
  "options": {
13
139
  "size": {
14
140
  "type": "string",
15
141
  "default": "m",
16
142
  "values": [
17
- {
18
- "value": "s"
19
- },
20
- {
21
- "value": "m"
22
- },
23
- {
24
- "value": "l"
25
- },
26
- {
27
- "value": "xl"
28
- }
143
+ { "value": "s" },
144
+ { "value": "m" },
145
+ { "value": "l" },
146
+ { "value": "xl" }
29
147
  ]
30
148
  },
31
- "isDetached": {
32
- "type": "boolean",
33
- "default": false
34
- },
35
- "isEmphasized": {
36
- "type": "boolean",
37
- "default": false
38
- },
39
- "showDragIcon": {
40
- "type": "boolean",
41
- "default": false
42
- },
149
+ "isDetached": { "type": "boolean", "default": false },
150
+ "isEmphasized": { "type": "boolean", "default": false },
151
+ "showDragIcon": { "type": "boolean", "default": false },
43
152
  "selectionMode": {
44
153
  "type": "string",
45
154
  "default": "multiple",
46
- "values": [
47
- {
48
- "value": "single"
49
- },
50
- {
51
- "value": "multiple"
52
- }
53
- ]
155
+ "values": [{ "value": "single" }, { "value": "multiple" }]
54
156
  },
55
157
  "selectionStyle": {
56
158
  "type": "string",
57
159
  "default": "checkbox",
58
- "values": [
59
- {
60
- "value": "checkbox"
61
- },
62
- {
63
- "value": "highlight"
64
- }
65
- ]
160
+ "values": [{ "value": "checkbox" }, { "value": "highlight" }]
66
161
  },
67
162
  "selectionBehavior": {
68
163
  "type": "string",
69
164
  "default": "toggle",
70
- "values": [
71
- {
72
- "value": "toggle"
73
- },
74
- {
75
- "value": "replace"
76
- }
77
- ]
165
+ "values": [{ "value": "toggle" }, { "value": "replace" }]
78
166
  }
79
167
  },
80
168
  "states": [
81
- {
82
- "name": "hover",
83
- "trigger": "interaction"
84
- },
85
- {
86
- "name": "down",
87
- "trigger": "interaction"
88
- },
89
- {
90
- "name": "keyboard-focus",
91
- "trigger": "interaction"
92
- }
169
+ { "name": "hover", "trigger": "interaction" },
170
+ { "name": "down", "trigger": "interaction" },
171
+ { "name": "keyboard-focus", "trigger": "interaction" }
93
172
  ],
94
- "lifecycle": {
95
- "introduced": "1.0.0-draft"
96
- },
173
+ "lifecycle": { "introduced": "1.0.0-draft" },
97
174
  "tokenBindings": [
98
- {
99
- "token": "workflow-icon-size-100",
100
- "context": "Icon"
101
- },
102
- {
103
- "token": "tree-view-minimum-height",
104
- "context": "Height (minimum)"
105
- },
106
- {
107
- "token": "tree-view-minimum-width",
108
- "context": "Width (minimum)"
109
- },
110
- {
111
- "token": "corner-radius-medium-default",
112
- "context": "Rounding"
113
- },
175
+ { "token": "workflow-icon-size-100", "context": "Icon" },
176
+ { "token": "tree-view-minimum-height", "context": "Height (minimum)" },
177
+ { "token": "tree-view-minimum-width", "context": "Width (minimum)" },
178
+ { "token": "corner-radius-medium-default", "context": "Rounding" },
114
179
  {
115
180
  "token": "tree-view-disclosure-indicator-height",
116
181
  "context": "Spacing (disclosure indicator)"
@@ -151,10 +216,7 @@
151
216
  "token": "tree-view-level-increment",
152
217
  "context": "Spacing (indentation)"
153
218
  },
154
- {
155
- "token": "vertical-align-items",
156
- "context": "Spacing (vertical)"
157
- },
219
+ { "token": "vertical-align-items", "context": "Spacing (vertical)" },
158
220
  {
159
221
  "token": "stack-item-minimum-padding-vertical",
160
222
  "context": "Spacing (vertical)"
@@ -163,18 +225,9 @@
163
225
  "token": "border-width-100",
164
226
  "context": "Border width (selected, highlight)"
165
227
  },
166
- {
167
- "token": "focus-indicator-thickness",
168
- "context": "Focus "
169
- },
170
- {
171
- "token": "focus-indicator-gap",
172
- "context": "Focus (drag handle)"
173
- },
174
- {
175
- "token": "component-height-200",
176
- "context": "Height"
177
- },
228
+ { "token": "focus-indicator-thickness", "context": "Focus " },
229
+ { "token": "focus-indicator-gap", "context": "Focus (drag handle)" },
230
+ { "token": "component-height-200", "context": "Height" },
178
231
  {
179
232
  "token": "stack-item-minimum-vertical-padding",
180
233
  "context": "Spacing (vertical)"
@@ -287,78 +340,24 @@
287
340
  "token": "disabled-content-color",
288
341
  "context": "Label and icon (disabled)"
289
342
  },
290
- {
291
- "token": "focus-indicator-color",
292
- "context": "Focus indicator"
293
- },
294
- {
295
- "token": "title-content-color",
296
- "context": "Label and icon"
297
- },
298
- {
299
- "token": "default-font-family",
300
- "context": "Text (tree view item)"
301
- },
302
- {
303
- "token": "regular-font-weight",
304
- "context": "Text (tree view item)"
305
- },
306
- {
307
- "token": "default-font-style",
308
- "context": "Text (tree view item)"
309
- },
310
- {
311
- "token": "font-size-100",
312
- "context": "Text (tree view item)"
313
- },
314
- {
315
- "token": "line-height-100",
316
- "context": "Text (tree view item)"
317
- },
318
- {
319
- "token": "cjk-line-height-100",
320
- "context": "Text (tree view item)"
321
- },
322
- {
323
- "token": "bold-font-weight",
324
- "context": "Text (tree view title)"
325
- },
326
- {
327
- "token": "thumbnail-size-75",
328
- "context": "Size"
329
- },
330
- {
331
- "token": "thumbnail-size-300",
332
- "context": "Size"
333
- },
334
- {
335
- "token": "thumbnail-size-1000",
336
- "context": "Size"
337
- },
338
- {
339
- "token": "thumbnail-corner-radius",
340
- "context": "Rounding (default)"
341
- },
342
- {
343
- "token": "spacing-75",
344
- "context": "Opacity checkerboard (layer)"
345
- },
346
- {
347
- "token": "corner-radius-0",
348
- "context": "Rounding (layer)"
349
- },
350
- {
351
- "token": "thumbnail-border-color",
352
- "context": "Border (default)"
353
- },
354
- {
355
- "token": "thumbnail-border-opacity",
356
- "context": "Border (default)"
357
- },
358
- {
359
- "token": "gray-500",
360
- "context": "Border (layer)"
361
- },
343
+ { "token": "focus-indicator-color", "context": "Focus indicator" },
344
+ { "token": "title-content-color", "context": "Label and icon" },
345
+ { "token": "default-font-family", "context": "Text (tree view item)" },
346
+ { "token": "regular-font-weight", "context": "Text (tree view item)" },
347
+ { "token": "default-font-style", "context": "Text (tree view item)" },
348
+ { "token": "font-size-100", "context": "Text (tree view item)" },
349
+ { "token": "line-height-100", "context": "Text (tree view item)" },
350
+ { "token": "cjk-line-height-100", "context": "Text (tree view item)" },
351
+ { "token": "bold-font-weight", "context": "Text (tree view title)" },
352
+ { "token": "thumbnail-size-75", "context": "Size" },
353
+ { "token": "thumbnail-size-300", "context": "Size" },
354
+ { "token": "thumbnail-size-1000", "context": "Size" },
355
+ { "token": "thumbnail-corner-radius", "context": "Rounding (default)" },
356
+ { "token": "spacing-75", "context": "Opacity checkerboard (layer)" },
357
+ { "token": "corner-radius-0", "context": "Rounding (layer)" },
358
+ { "token": "thumbnail-border-color", "context": "Border (default)" },
359
+ { "token": "thumbnail-border-opacity", "context": "Border (default)" },
360
+ { "token": "gray-500", "context": "Border (layer)" },
362
361
  {
363
362
  "token": "opacity-checkerboard-square-light",
364
363
  "context": "Checkerboard colors "
@@ -367,10 +366,7 @@
367
366
  "token": "opacity-checkerboard-square-dark",
368
367
  "context": "Checkerboard colors "
369
368
  },
370
- {
371
- "token": "thumbnail-opacity-disabled",
372
- "context": "Disabled"
373
- }
369
+ { "token": "thumbnail-opacity-disabled", "context": "Disabled" }
374
370
  ],
375
371
  "accessibility": {
376
372
  "role": "tree",
@@ -378,16 +374,8 @@
378
374
  "focusable": true,
379
375
  "keyboardIntents": ["navigate-items", "expand", "collapse", "activate"],
380
376
  "wcag": [
381
- {
382
- "criterion": "2.1.1",
383
- "level": "A",
384
- "title": "Keyboard"
385
- },
386
- {
387
- "criterion": "4.1.2",
388
- "level": "A",
389
- "title": "Name, Role, Value"
390
- }
377
+ { "criterion": "2.1.1", "level": "A", "title": "Keyboard" },
378
+ { "criterion": "4.1.2", "level": "A", "title": "Name, Role, Value" }
391
379
  ]
392
380
  }
393
381
  }