@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.
Files changed (99) hide show
  1. package/LICENSE +1 -1
  2. package/components/accordion.json +108 -194
  3. package/components/action-bar.json +64 -97
  4. package/components/action-button.json +95 -230
  5. package/components/action-group.json +88 -86
  6. package/components/alert-banner.json +104 -76
  7. package/components/alert-dialog.json +78 -126
  8. package/components/avatar-group.json +61 -119
  9. package/components/avatar.json +98 -212
  10. package/components/badge.json +138 -256
  11. package/components/breadcrumbs.json +95 -89
  12. package/components/button-group.json +57 -48
  13. package/components/button.json +151 -368
  14. package/components/calendar.json +97 -34
  15. package/components/cards.json +109 -250
  16. package/components/checkbox-group.json +50 -58
  17. package/components/checkbox.json +121 -186
  18. package/components/close-button.json +61 -124
  19. package/components/coach-indicator.json +63 -72
  20. package/components/coach-mark.json +89 -93
  21. package/components/color-area.json +68 -94
  22. package/components/color-handle.json +39 -79
  23. package/components/color-loupe.json +35 -52
  24. package/components/color-slider.json +95 -116
  25. package/components/color-wheel.json +67 -73
  26. package/components/combo-box.json +243 -331
  27. package/components/contextual-help.json +86 -175
  28. package/components/date-picker.json +139 -179
  29. package/components/divider.json +30 -69
  30. package/components/drop-zone.json +51 -92
  31. package/components/field-label.json +75 -117
  32. package/components/help-text.json +81 -105
  33. package/components/illustrated-message.json +106 -73
  34. package/components/in-line-alert.json +50 -83
  35. package/components/link.json +63 -85
  36. package/components/list-view.json +107 -146
  37. package/components/menu.json +180 -274
  38. package/components/meter.json +72 -118
  39. package/components/number-field.json +213 -305
  40. package/components/picker.json +208 -320
  41. package/components/popover.json +94 -129
  42. package/components/progress-bar.json +94 -131
  43. package/components/progress-circle.json +45 -72
  44. package/components/radio-button.json +87 -156
  45. package/components/radio-group.json +107 -74
  46. package/components/rating.json +66 -99
  47. package/components/search-field.json +132 -202
  48. package/components/segmented-control.json +94 -109
  49. package/components/select-box.json +119 -179
  50. package/components/side-navigation.json +108 -118
  51. package/components/slider.json +143 -228
  52. package/components/standard-dialog.json +96 -114
  53. package/components/standard-panel.json +105 -53
  54. package/components/status-light.json +104 -240
  55. package/components/steplist.json +77 -161
  56. package/components/swatch-group.json +42 -58
  57. package/components/swatch.json +75 -162
  58. package/components/switch.json +101 -189
  59. package/components/table.json +97 -102
  60. package/components/tabs.json +77 -104
  61. package/components/tag-field.json +86 -150
  62. package/components/tag-group.json +50 -44
  63. package/components/tag.json +81 -198
  64. package/components/takeover-dialog.json +59 -57
  65. package/components/text-area.json +200 -323
  66. package/components/text-field.json +183 -304
  67. package/components/thumbnail.json +63 -105
  68. package/components/toast.json +97 -83
  69. package/components/tooltip.json +104 -96
  70. package/components/tree-view.json +169 -181
  71. package/guidelines/app-frame-content-area.json +87 -0
  72. package/guidelines/app-frame-creating-bluelines.json +61 -0
  73. package/guidelines/app-frame-header.json +75 -0
  74. package/guidelines/app-frame-overview.json +167 -0
  75. package/guidelines/app-frame-side-navigation.json +138 -0
  76. package/guidelines/attention-hierarchy.json +42 -0
  77. package/guidelines/background-layers.json +41 -0
  78. package/guidelines/brand.json +50 -0
  79. package/guidelines/colors.json +65 -0
  80. package/guidelines/containers.json +65 -0
  81. package/guidelines/developer-overview.json +38 -0
  82. package/guidelines/faqs.json +35 -0
  83. package/guidelines/fonts.json +58 -0
  84. package/guidelines/grays.json +69 -0
  85. package/guidelines/icon-fundamentals.json +45 -0
  86. package/guidelines/illustrations.json +114 -0
  87. package/guidelines/introduction.json +34 -0
  88. package/guidelines/manifest.json +204 -0
  89. package/guidelines/motion.json +41 -0
  90. package/guidelines/object-styles.json +105 -0
  91. package/guidelines/principles.json +30 -0
  92. package/guidelines/resources.json +59 -0
  93. package/guidelines/spacing.json +25 -0
  94. package/guidelines/states.json +34 -0
  95. package/guidelines/typography-fundamentals.json +145 -0
  96. package/guidelines/using-icons.json +110 -0
  97. package/package.json +5 -2
  98. package/tokens/layout-component.tokens.json +72 -36
  99. package/tokens/layout.tokens.json +207 -92
@@ -9,135 +9,118 @@
9
9
  "category": "inputs",
10
10
  "documentationUrl": "https://spectrum.adobe.com/page/switch/"
11
11
  },
12
- "options": {
13
- "label": {
14
- "type": "string"
15
- },
16
- "isSelected": {
17
- "type": "boolean",
18
- "default": false
19
- },
20
- "size": {
21
- "type": "string",
22
- "default": "m",
23
- "values": [
24
- {
25
- "value": "s"
26
- },
27
- {
28
- "value": "m"
29
- },
30
- {
31
- "value": "l"
32
- },
33
- {
34
- "value": "xl"
35
- }
36
- ]
37
- },
38
- "isEmphasized": {
39
- "type": "boolean",
40
- "default": false
41
- },
42
- "isDisabled": {
43
- "type": "boolean",
44
- "default": false
45
- },
46
- "isReadOnly": {
47
- "type": "boolean",
48
- "default": false
49
- }
50
- },
51
- "states": [
52
- {
53
- "name": "hover",
54
- "trigger": "interaction"
55
- },
56
- {
57
- "name": "down",
58
- "trigger": "interaction"
59
- },
60
- {
61
- "name": "keyboard-focus",
62
- "trigger": "interaction"
63
- }
64
- ],
65
- "lifecycle": {
66
- "introduced": "1.0.0-draft"
67
- },
68
- "tokenBindings": [
12
+ "documentBlocks": [
69
13
  {
70
- "token": "component-height-75",
71
- "context": "Minimum height"
14
+ "type": "purpose",
15
+ "content": "Switches allow users to turn an individual option on or off. They are usually used to activate or deactivate a specific setting."
72
16
  },
73
17
  {
74
- "token": "component-height-100",
75
- "context": "Minimum height"
18
+ "type": "guideline",
19
+ "content": "Switches toggle an individual option on or off. They're typically used to activate or deactivate a specific setting."
76
20
  },
77
21
  {
78
- "token": "component-height-200",
79
- "context": "Minimum height"
22
+ "type": "guideline",
23
+ "content": "Switch should always have a label for accessibility and clear comprehension. When the label is not defined, a switch becomes standalone. Standalone switches should only be used when their connection to other components is clear and they give sufficient context — for example, in application panels."
80
24
  },
81
25
  {
82
- "token": "component-height-300",
83
- "context": "Minimum height"
26
+ "type": "guideline",
27
+ "content": "Switches can either be selected or not selected. They cannot be in an indeterminate state (unlike checkboxes). When a switch represents multiple values that are not identical, the switch should appear as not selected."
84
28
  },
85
29
  {
86
- "token": "corner-radius-full",
87
- "context": "Rounding"
30
+ "type": "guideline",
31
+ "content": "Switch come in four different sizes: small, medium, large, and extra-large. The medium size is the default and most frequently used option. Use the other sizes sparingly; they should be used to create a hierarchy of importance within the page."
88
32
  },
89
33
  {
90
- "token": "switch-control-width-small",
91
- "context": "Track (size)"
34
+ "type": "guideline",
35
+ "content": "By default, switches are not emphasized (gray). This version is optimal for when the switch is not the core part of an interface, such as in application panels, where all visual components are monochrome in order to direct focus to the content."
92
36
  },
93
37
  {
94
- "token": "switch-control-width-medium",
95
- "context": "Track (size)"
38
+ "type": "guideline",
39
+ "content": "The emphasized (blue) version provides a visual prominence that is optimal for forms, settings, lists or grids of assets, and other situations where a switch needs to be noticed."
96
40
  },
97
41
  {
98
- "token": "switch-control-width-large",
99
- "context": "Track (size)"
42
+ "type": "guideline",
43
+ "content": "A switch in a disabled state shows that an action exists, but is not available in that circumstance. This state can be used to maintain layout continuity and to communicate that an action may become available later."
100
44
  },
101
45
  {
102
- "token": "switch-control-width-extra-large",
103
- "context": "Track (size)"
46
+ "type": "guideline",
47
+ "content": "Switches have a read-only option for when they’re in the disabled state but still need their labels to be shown. This allows for content to be copied, but not interacted with or changed."
104
48
  },
105
49
  {
106
- "token": "switch-control-height-small",
107
- "context": "Track (size)"
50
+ "type": "guideline",
51
+ "content": "A switch can be navigated using a keyboard. The keyboard focus state takes the switch’s visual hover state and adds a blue ring to the switch in focus."
108
52
  },
109
53
  {
110
- "token": "switch-control-height-medium",
111
- "context": "Track (size)"
54
+ "type": "guideline",
55
+ "content": "When the label is too long for the horizontal space available, it wraps to form another line."
112
56
  },
113
57
  {
114
- "token": "switch-control-height-large",
115
- "context": "Track (size)"
58
+ "type": "guideline",
59
+ "content": "Emphasized switches are optimal for forms, settings, and other scenarios where the switches need to be noticed. Not emphasized switches are optimal for application panels where all the visual components are monochrome in order to direct focus to the canvas."
116
60
  },
117
61
  {
118
- "token": "switch-control-height-extra-large",
119
- "context": "Track (size)"
62
+ "type": "guideline",
63
+ "content": "Standalone switches should be used in situations where the context is clear without an associated text label. For example, a switch located at the top of a panel next to the panel's title makes it clear that the switch will enable/disable the panel options."
120
64
  },
121
65
  {
122
- "token": "border-width-200",
123
- "context": "Track (border)"
66
+ "type": "guideline",
67
+ "content": "Switches are best for communicating activation (e.g., turning a setting on or off). Checkboxes are best for communicating selection (e.g., selecting multiple items from a list). Radio buttons are best when only one option can be selected at a time from a set (e.g., choosing one preference or mode)."
124
68
  },
125
69
  {
126
- "token": "switch-handle-size-small",
127
- "context": "Handle (size)"
70
+ "type": "guideline",
71
+ "content": "When a switch represents multiple values that are not identical, the switch should appear as not selected. Any subsequent click or tap should select the switch, and update all values to be selected. Another click or tap after that should deselect the switch, and update all values to be not selected."
128
72
  },
129
73
  {
130
- "token": "switch-handle-size-medium",
131
- "context": "Handle (size)"
74
+ "type": "guideline",
75
+ "content": "Switches can only be on or off. Indeterminate switches don’t exist in accessibility APIs, so it’s not possible to make an indeterminate switch accessible. If you need to show a partial state, use a checkbox instead of a switch."
132
76
  },
133
77
  {
134
- "token": "switch-handle-size-large",
135
- "context": "Handle (size)"
136
- },
137
- {
138
- "token": "switch-handle-size-extra-large",
139
- "context": "Handle (size)"
78
+ "type": "guideline",
79
+ "content": "When a parent switch represents a group of switches, it should be turned off unless all of the switches are on (turning the parent switch on turns all of the switches on)."
80
+ }
81
+ ],
82
+ "options": {
83
+ "label": { "type": "string" },
84
+ "isSelected": { "type": "boolean", "default": false },
85
+ "size": {
86
+ "type": "string",
87
+ "default": "m",
88
+ "values": [
89
+ { "value": "s" },
90
+ { "value": "m" },
91
+ { "value": "l" },
92
+ { "value": "xl" }
93
+ ]
140
94
  },
95
+ "isEmphasized": { "type": "boolean", "default": false },
96
+ "isDisabled": { "type": "boolean", "default": false },
97
+ "isReadOnly": { "type": "boolean", "default": false }
98
+ },
99
+ "states": [
100
+ { "name": "hover", "trigger": "interaction" },
101
+ { "name": "down", "trigger": "interaction" },
102
+ { "name": "keyboard-focus", "trigger": "interaction" }
103
+ ],
104
+ "lifecycle": { "introduced": "1.0.0-draft" },
105
+ "tokenBindings": [
106
+ { "token": "component-height-75", "context": "Minimum height" },
107
+ { "token": "component-height-100", "context": "Minimum height" },
108
+ { "token": "component-height-200", "context": "Minimum height" },
109
+ { "token": "component-height-300", "context": "Minimum height" },
110
+ { "token": "corner-radius-full", "context": "Rounding" },
111
+ { "token": "switch-control-width-small", "context": "Track (size)" },
112
+ { "token": "switch-control-width-medium", "context": "Track (size)" },
113
+ { "token": "switch-control-width-large", "context": "Track (size)" },
114
+ { "token": "switch-control-width-extra-large", "context": "Track (size)" },
115
+ { "token": "switch-control-height-small", "context": "Track (size)" },
116
+ { "token": "switch-control-height-medium", "context": "Track (size)" },
117
+ { "token": "switch-control-height-large", "context": "Track (size)" },
118
+ { "token": "switch-control-height-extra-large", "context": "Track (size)" },
119
+ { "token": "border-width-200", "context": "Track (border)" },
120
+ { "token": "switch-handle-size-small", "context": "Handle (size)" },
121
+ { "token": "switch-handle-size-medium", "context": "Handle (size)" },
122
+ { "token": "switch-handle-size-large", "context": "Handle (size)" },
123
+ { "token": "switch-handle-size-extra-large", "context": "Handle (size)" },
141
124
  {
142
125
  "token": "switch-handle-selected-size-small",
143
126
  "context": "Handle (size)"
@@ -154,22 +137,10 @@
154
137
  "token": "switch-handle-selected-size-extra-large",
155
138
  "context": "Handle (size)"
156
139
  },
157
- {
158
- "token": "text-to-control-75",
159
- "context": "Spacing (control to label)"
160
- },
161
- {
162
- "token": "text-to-control-100",
163
- "context": "Spacing (control to label)"
164
- },
165
- {
166
- "token": "text-to-control-200",
167
- "context": "Spacing (control to label)"
168
- },
169
- {
170
- "token": "text-to-control-300",
171
- "context": "Spacing (control to label)"
172
- },
140
+ { "token": "text-to-control-75", "context": "Spacing (control to label)" },
141
+ { "token": "text-to-control-100", "context": "Spacing (control to label)" },
142
+ { "token": "text-to-control-200", "context": "Spacing (control to label)" },
143
+ { "token": "text-to-control-300", "context": "Spacing (control to label)" },
173
144
  {
174
145
  "token": "switch-top-to-control-small",
175
146
  "context": "Spacing (top edge to control)"
@@ -218,14 +189,8 @@
218
189
  "token": "component-bottom-to-text-300",
219
190
  "context": "Spacing (top/bottom edge to label)"
220
191
  },
221
- {
222
- "token": "focus-indicator-thickness",
223
- "context": "Focus indicator"
224
- },
225
- {
226
- "token": "focus-indicator-gap",
227
- "context": "Focus indicator"
228
- },
192
+ { "token": "focus-indicator-thickness", "context": "Focus indicator" },
193
+ { "token": "focus-indicator-gap", "context": "Focus indicator" },
229
194
  {
230
195
  "token": "component-size-difference-down",
231
196
  "context": "Component size (down)"
@@ -238,58 +203,19 @@
238
203
  "token": "component-size-minimum-perspective-down",
239
204
  "context": "Component size (down)"
240
205
  },
241
- {
242
- "token": "font-size-75",
243
- "context": "Font size"
244
- },
245
- {
246
- "token": "font-size-100",
247
- "context": "Font size"
248
- },
249
- {
250
- "token": "font-size-200",
251
- "context": "Font size"
252
- },
253
- {
254
- "token": "font-size-300",
255
- "context": "Font size"
256
- },
257
- {
258
- "token": "default-font-family",
259
- "context": "Font size"
260
- },
261
- {
262
- "token": "regular-font-weight",
263
- "context": "Font size"
264
- },
265
- {
266
- "token": "line-height-100",
267
- "context": "Font size"
268
- },
269
- {
270
- "token": "cjk-line-height-100",
271
- "context": "Font size"
272
- },
273
- {
274
- "token": "neutral-content-color-default",
275
- "context": "Label"
276
- },
277
- {
278
- "token": "neutral-content-color-hover",
279
- "context": "Label"
280
- },
281
- {
282
- "token": "neutral-content-color-down",
283
- "context": "Label"
284
- },
285
- {
286
- "token": "neutral-content-color-key-focus",
287
- "context": "Label"
288
- },
289
- {
290
- "token": "gray-25",
291
- "context": "Control"
292
- },
206
+ { "token": "font-size-75", "context": "Font size" },
207
+ { "token": "font-size-100", "context": "Font size" },
208
+ { "token": "font-size-200", "context": "Font size" },
209
+ { "token": "font-size-300", "context": "Font size" },
210
+ { "token": "default-font-family", "context": "Font size" },
211
+ { "token": "regular-font-weight", "context": "Font size" },
212
+ { "token": "line-height-100", "context": "Font size" },
213
+ { "token": "cjk-line-height-100", "context": "Font size" },
214
+ { "token": "neutral-content-color-default", "context": "Label" },
215
+ { "token": "neutral-content-color-hover", "context": "Label" },
216
+ { "token": "neutral-content-color-down", "context": "Label" },
217
+ { "token": "neutral-content-color-key-focus", "context": "Label" },
218
+ { "token": "gray-25", "context": "Control" },
293
219
  {
294
220
  "token": "accent-content-color-default",
295
221
  "context": "Control (selected, emphasized)"
@@ -306,14 +232,8 @@
306
232
  "token": "accent-content-color-key-focus",
307
233
  "context": "Control (selected, emphasized)"
308
234
  },
309
- {
310
- "token": "disabled-content-color",
311
- "context": "Label (disabled)"
312
- },
313
- {
314
- "token": "focus-indicator-color",
315
- "context": "Focus indicator"
316
- }
235
+ { "token": "disabled-content-color", "context": "Label (disabled)" },
236
+ { "token": "focus-indicator-color", "context": "Focus indicator" }
317
237
  ],
318
238
  "accessibility": {
319
239
  "role": "switch",
@@ -321,16 +241,8 @@
321
241
  "focusable": true,
322
242
  "keyboardIntents": ["activate"],
323
243
  "wcag": [
324
- {
325
- "criterion": "2.1.1",
326
- "level": "A",
327
- "title": "Keyboard"
328
- },
329
- {
330
- "criterion": "4.1.2",
331
- "level": "A",
332
- "title": "Name, Role, Value"
333
- }
244
+ { "criterion": "2.1.1", "level": "A", "title": "Keyboard" },
245
+ { "criterion": "4.1.2", "level": "A", "title": "Name, Role, Value" }
334
246
  ]
335
247
  }
336
248
  }
@@ -9,22 +9,85 @@
9
9
  "category": "data-visualization",
10
10
  "documentationUrl": "https://spectrum.adobe.com/page/table/"
11
11
  },
12
+ "documentBlocks": [
13
+ {
14
+ "type": "purpose",
15
+ "content": "Tables display information in rows and columns, allowing users to compare and scan structured data."
16
+ },
17
+ {
18
+ "type": "guideline",
19
+ "content": "Tables organize and display structured information in rows and columns. They support scanning, sorting, comparing, and interacting with large amounts of data. Use when multiple data points need to be reviewed or acted on in one place."
20
+ },
21
+ {
22
+ "type": "guideline",
23
+ "content": "Tables come in three sizes: small, medium, and large. Size affects the overall scale, including font size and spacing. Medium is the default. Use large for high-visibility tables or when readability is critical. Use small in constrained spaces or when the table is secondary to other content."
24
+ },
25
+ { "type": "guideline", "content": "If true, the table header is hidden." },
26
+ {
27
+ "type": "guideline",
28
+ "content": "Configuration for the table header row."
29
+ },
30
+ {
31
+ "type": "guideline",
32
+ "content": "Tables come in three densities: compact, regular, and spacious. Density controls vertical spacing while keeping font sizes consistent—compact rows have tighter padding, spacious rows have more breathing room. Regular is the default for most use cases. Use compact when fitting more data in a limited viewport is critical (e.g., dashboards, data-heavy admin panels). Use spacious when scannability and visual comfort are priorities (e.g., transaction histories, settings tables with minimal data)."
33
+ },
34
+ {
35
+ "type": "guideline",
36
+ "content": "Use a standard table when a table is the main focus of an experience. Quiet tables are for when a table is meant to be supplementary, subtle, or lightweight."
37
+ },
38
+ { "type": "guideline", "content": "If true, table columns can be sorted." },
39
+ {
40
+ "type": "guideline",
41
+ "content": "An array of column definitions for the table."
42
+ },
43
+ { "type": "guideline", "content": "An array of row data for the table." },
44
+ {
45
+ "type": "guideline",
46
+ "content": "Column dividers help organize table content and aid users in parsing related data. You can apply dividers selectively to group related columns—for example, separating user information from action columns, or grouping metadata fields together. Use dividers sparingly to avoid visual clutter."
47
+ },
48
+ {
49
+ "type": "guideline",
50
+ "content": "All tables have a hover state regardless of if actions or selections can be made. This aids the user in viewing content in a single row."
51
+ },
52
+ {
53
+ "type": "guideline",
54
+ "content": "Similar to a paragraph of text, textual data should be start-aligned within a table (left-aligned in LTR languages, right-aligned in RTL languages). Never use center alignment."
55
+ },
56
+ {
57
+ "type": "guideline",
58
+ "content": "Numerical data should generally be right-aligned for ease of scanning and comparing. This alignment typically does NOT reverse in RTL languages because:"
59
+ },
60
+ {
61
+ "type": "guideline",
62
+ "content": "Exception: Use start-alignment (left in LTR, right in RTL) when numbers are arbitrary identifiers, known as \"nominal numbers,\" which can't be compared or combined arithmetically (e.g., ZIP codes, IP addresses, phone numbers). These behave like text."
63
+ },
64
+ {
65
+ "type": "guideline",
66
+ "content": "Column headers follow the alignment of their data."
67
+ },
68
+ {
69
+ "type": "guideline",
70
+ "content": "All content should be centered vertically within the row to offer the right visual balance."
71
+ },
72
+ {
73
+ "type": "guideline",
74
+ "content": "Tables use row dividers, hover states, and selection highlighting to help users track data. Zebra striping adds visual noise without improving usability."
75
+ },
76
+ {
77
+ "type": "guideline",
78
+ "content": "Column dividers are optional decorations that can help organize table content and create groups of data. Only use these when necessary, and don't add them to every column."
79
+ },
80
+ {
81
+ "type": "guideline",
82
+ "content": "When there are gaps in the data, use an en dash (–) to represent null or not applicable (N/A) values."
83
+ }
84
+ ],
12
85
  "options": {
13
86
  "size": {
14
87
  "type": "string",
15
88
  "default": "m",
16
89
  "description": "Controls the density of table rows.",
17
- "values": [
18
- {
19
- "value": "s"
20
- },
21
- {
22
- "value": "m"
23
- },
24
- {
25
- "value": "l"
26
- }
27
- ]
90
+ "values": [{ "value": "s" }, { "value": "m" }, { "value": "l" }]
28
91
  },
29
92
  "hideHeader": {
30
93
  "type": "boolean",
@@ -53,15 +116,9 @@
53
116
  "type": "string",
54
117
  "default": "regular",
55
118
  "values": [
56
- {
57
- "value": "compact"
58
- },
59
- {
60
- "value": "regular"
61
- },
62
- {
63
- "value": "spacious"
64
- }
119
+ { "value": "compact" },
120
+ { "value": "regular" },
121
+ { "value": "spacious" }
65
122
  ]
66
123
  },
67
124
  "isQuiet": {
@@ -136,22 +193,14 @@
136
193
  }
137
194
  }
138
195
  },
139
- "lifecycle": {
140
- "introduced": "1.0.0-draft"
141
- },
196
+ "lifecycle": { "introduced": "1.0.0-draft" },
142
197
  "tokenBindings": [
143
- {
144
- "token": "chevron-100",
145
- "context": "Header icons"
146
- },
198
+ { "token": "chevron-100", "context": "Header icons" },
147
199
  {
148
200
  "token": "corner-radius-medium-size-extra-small",
149
201
  "context": "Note: desktop 6px, mobile 6px;"
150
202
  },
151
- {
152
- "token": "component-height-100",
153
- "context": "Column header row height"
154
- },
203
+ { "token": "component-height-100", "context": "Column header row height" },
155
204
  {
156
205
  "token": "table-column-header-row-top-to-text-medium",
157
206
  "context": "Spacing (column header row top/bottom to text)"
@@ -244,22 +293,13 @@
244
293
  "token": "accent-content-color-selected",
245
294
  "context": "Selection indicator"
246
295
  },
247
- {
248
- "token": "border-width-100",
249
- "context": "Note: 1px;"
250
- },
296
+ { "token": "border-width-100", "context": "Note: 1px;" },
251
297
  {
252
298
  "token": "corner-radius-small-default",
253
299
  "context": "Focus indicator (cell)"
254
300
  },
255
- {
256
- "token": "side-focus-indicator",
257
- "context": "Focus indicator (row)"
258
- },
259
- {
260
- "token": "body-color",
261
- "context": "Column header and row (text)"
262
- },
301
+ { "token": "side-focus-indicator", "context": "Focus indicator (row)" },
302
+ { "token": "body-color", "context": "Column header and row (text)" },
263
303
  {
264
304
  "token": "neutral-subdued-content-color-default",
265
305
  "context": "Row: not selected"
@@ -304,18 +344,9 @@
304
344
  "token": "gray-75",
305
345
  "context": "Column header and row (background, border and divider)"
306
346
  },
307
- {
308
- "token": "gray-200",
309
- "context": "Summary row (background)"
310
- },
311
- {
312
- "token": "gray-100",
313
- "context": "Row (disabled)"
314
- },
315
- {
316
- "token": "gray-400",
317
- "context": "Row (disabled)"
318
- },
347
+ { "token": "gray-200", "context": "Summary row (background)" },
348
+ { "token": "gray-100", "context": "Row (disabled)" },
349
+ { "token": "gray-400", "context": "Row (disabled)" },
319
350
  {
320
351
  "token": "stack-item-background-color-hover",
321
352
  "context": "Row (not selected, hover)"
@@ -348,38 +379,14 @@
348
379
  "token": "table-selected-row-background-opacity-highlight-hover",
349
380
  "context": "Selected row background (highlight selection, hover)"
350
381
  },
351
- {
352
- "token": "focus-indicator-color",
353
- "context": "Focus indicator (cell)"
354
- },
355
- {
356
- "token": "default-font-family",
357
- "context": "Column header and row"
358
- },
359
- {
360
- "token": "bold-font-weight",
361
- "context": "Column header and row"
362
- },
363
- {
364
- "token": "default-font-style",
365
- "context": "Column header and row"
366
- },
367
- {
368
- "token": "font-size-100",
369
- "context": "Column header and row"
370
- },
371
- {
372
- "token": "line-height-100",
373
- "context": "Column header and row"
374
- },
375
- {
376
- "token": "cjk-line-height-100",
377
- "context": "Column header and row"
378
- },
379
- {
380
- "token": "regular-font-weight",
381
- "context": "Column header and row"
382
- },
382
+ { "token": "focus-indicator-color", "context": "Focus indicator (cell)" },
383
+ { "token": "default-font-family", "context": "Column header and row" },
384
+ { "token": "bold-font-weight", "context": "Column header and row" },
385
+ { "token": "default-font-style", "context": "Column header and row" },
386
+ { "token": "font-size-100", "context": "Column header and row" },
387
+ { "token": "line-height-100", "context": "Column header and row" },
388
+ { "token": "cjk-line-height-100", "context": "Column header and row" },
389
+ { "token": "regular-font-weight", "context": "Column header and row" },
383
390
  {
384
391
  "token": "table-row-hover-color;",
385
392
  "context": "S1 Row (not selected, hover)"
@@ -415,21 +422,9 @@
415
422
  "focusable": true,
416
423
  "keyboardIntents": ["navigate-items", "activate", "select-all"],
417
424
  "wcag": [
418
- {
419
- "criterion": "1.3.1",
420
- "level": "A",
421
- "title": "Info and Relationships"
422
- },
423
- {
424
- "criterion": "2.1.1",
425
- "level": "A",
426
- "title": "Keyboard"
427
- },
428
- {
429
- "criterion": "4.1.2",
430
- "level": "A",
431
- "title": "Name, Role, Value"
432
- }
425
+ { "criterion": "1.3.1", "level": "A", "title": "Info and Relationships" },
426
+ { "criterion": "2.1.1", "level": "A", "title": "Keyboard" },
427
+ { "criterion": "4.1.2", "level": "A", "title": "Name, Role, Value" }
433
428
  ]
434
429
  }
435
430
  }