@adobe/design-data-spec 0.3.0 → 0.5.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 +517 -0
- package/components/action-bar.json +203 -0
- package/components/action-button.json +481 -0
- package/components/action-group.json +82 -0
- package/components/alert-banner.json +111 -0
- package/components/alert-dialog.json +152 -0
- package/components/avatar-group.json +140 -0
- package/components/avatar.json +184 -0
- package/components/badge.json +502 -0
- package/components/body.json +29 -0
- package/components/bottom-navigation-android.json +41 -0
- package/components/breadcrumbs.json +263 -0
- package/components/button-group.json +47 -0
- package/components/button.json +466 -8
- package/components/calendar.json +104 -0
- package/components/cards.json +512 -0
- package/components/checkbox-group.json +54 -0
- package/components/checkbox.json +303 -0
- package/components/close-button.json +170 -0
- package/components/coach-indicator.json +76 -0
- package/components/coach-mark.json +157 -0
- package/components/code.json +25 -0
- package/components/color-area.json +115 -0
- package/components/color-handle.json +85 -0
- package/components/color-loupe.json +74 -0
- package/components/color-slider.json +121 -0
- package/components/color-wheel.json +94 -0
- package/components/combo-box.json +480 -0
- package/components/contextual-help.json +162 -0
- package/components/date-picker.json +439 -0
- package/components/detail.json +30 -0
- package/components/divider.json +73 -0
- package/components/drop-zone.json +211 -0
- package/components/field-label.json +189 -0
- package/components/heading.json +33 -0
- package/components/help-text.json +186 -0
- package/components/illustrated-message.json +155 -0
- package/components/in-field-progress-button.json +44 -0
- package/components/in-field-progress-circle.json +80 -0
- package/components/in-line-alert.json +201 -0
- package/components/link.json +135 -0
- package/components/list-view.json +355 -0
- package/components/menu.json +542 -0
- package/components/meter.json +162 -0
- package/components/number-field.json +468 -0
- package/components/opacity-checkerboard.json +43 -0
- package/components/picker.json +522 -0
- package/components/popover.json +119 -0
- package/components/progress-bar.json +182 -0
- package/components/progress-circle.json +99 -0
- package/components/radio-button.json +285 -0
- package/components/radio-group.json +63 -0
- package/components/rating.json +145 -0
- package/components/scroll-zoom-bar.json +53 -0
- package/components/search-field.json +306 -0
- package/components/segmented-control.json +210 -0
- package/components/select-box.json +248 -0
- package/components/side-navigation.json +293 -0
- package/components/slider.json +370 -0
- package/components/standard-dialog.json +151 -0
- package/components/standard-panel.json +53 -0
- package/components/status-light.json +272 -0
- package/components/steplist.json +270 -0
- package/components/swatch-group.json +62 -0
- package/components/swatch.json +193 -0
- package/components/switch.json +305 -0
- package/components/tab-bar-ios.json +41 -0
- package/components/table.json +392 -0
- package/components/tabs.json +229 -0
- package/components/tag-field.json +203 -0
- package/components/tag-group.json +53 -0
- package/components/tag.json +376 -0
- package/components/takeover-dialog.json +92 -0
- package/components/text-area.json +485 -0
- package/components/text-field.json +501 -0
- package/components/thumbnail.json +109 -0
- package/components/title.json +39 -0
- package/components/toast.json +131 -0
- package/components/tooltip.json +140 -0
- package/components/tray.json +21 -0
- package/components/tree-view.json +341 -0
- package/conformance/invalid/SPEC-027/dataset.json +25 -0
- package/conformance/invalid/SPEC-027/expected-errors.json +10 -0
- package/conformance/valid/token-bindings.json +27 -0
- package/package.json +2 -1
- package/rules/rules.yaml +9 -0
- package/schemas/component.schema.json +24 -2
- package/schemas/token.schema.json +27 -0
- package/spec/agent-surface.md +39 -9
- package/spec/component-format.md +41 -16
- package/spec/token-format.md +18 -0
- package/src/validate.js +27 -3
|
@@ -0,0 +1,392 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/component.schema.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/components/table.json",
|
|
4
|
+
"specVersion": "1.0.0-draft",
|
|
5
|
+
"name": "table",
|
|
6
|
+
"displayName": "Table",
|
|
7
|
+
"description": "Tables display information in rows and columns, allowing users to compare and scan structured data.",
|
|
8
|
+
"meta": {
|
|
9
|
+
"category": "data visualization",
|
|
10
|
+
"documentationUrl": "https://spectrum.adobe.com/page/table/"
|
|
11
|
+
},
|
|
12
|
+
"options": {
|
|
13
|
+
"size": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"enum": ["s", "m", "l"],
|
|
16
|
+
"default": "m",
|
|
17
|
+
"description": "Controls the density of table rows."
|
|
18
|
+
},
|
|
19
|
+
"hideHeader": {
|
|
20
|
+
"type": "boolean",
|
|
21
|
+
"default": false,
|
|
22
|
+
"description": "If true, the table header is hidden."
|
|
23
|
+
},
|
|
24
|
+
"header": {
|
|
25
|
+
"type": "object",
|
|
26
|
+
"description": "Configuration for the table header row.",
|
|
27
|
+
"properties": {
|
|
28
|
+
"alignment": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"enum": ["left", "right"],
|
|
31
|
+
"default": "left",
|
|
32
|
+
"description": "Alignment of the table header text."
|
|
33
|
+
},
|
|
34
|
+
"state": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"enum": ["default", "hover", "down", "keyboard focus"],
|
|
37
|
+
"default": "default",
|
|
38
|
+
"description": "Interaction state of the header row."
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"density": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"enum": ["compact", "regular", "spacious"],
|
|
45
|
+
"default": "regular"
|
|
46
|
+
},
|
|
47
|
+
"isQuiet": {
|
|
48
|
+
"type": "boolean",
|
|
49
|
+
"default": false,
|
|
50
|
+
"description": "If true, the table uses a quiet visual style."
|
|
51
|
+
},
|
|
52
|
+
"isSortable": {
|
|
53
|
+
"type": "boolean",
|
|
54
|
+
"default": false,
|
|
55
|
+
"description": "If true, table columns can be sorted."
|
|
56
|
+
},
|
|
57
|
+
"columns": {
|
|
58
|
+
"type": "array",
|
|
59
|
+
"description": "An array of column definitions for the table.",
|
|
60
|
+
"items": {
|
|
61
|
+
"type": "object",
|
|
62
|
+
"properties": {
|
|
63
|
+
"key": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"description": "Unique identifier for the column."
|
|
66
|
+
},
|
|
67
|
+
"label": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"description": "The header text displayed for the column."
|
|
70
|
+
},
|
|
71
|
+
"type": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"enum": [
|
|
74
|
+
"text",
|
|
75
|
+
"number",
|
|
76
|
+
"avatar",
|
|
77
|
+
"date",
|
|
78
|
+
"sparkline",
|
|
79
|
+
"select",
|
|
80
|
+
"layout"
|
|
81
|
+
],
|
|
82
|
+
"default": "text",
|
|
83
|
+
"description": "Defines the data type for the column."
|
|
84
|
+
},
|
|
85
|
+
"resizing": {
|
|
86
|
+
"type": "string",
|
|
87
|
+
"enum": ["fluid", "fixed"],
|
|
88
|
+
"default": "fluid",
|
|
89
|
+
"description": "Defines whether the column width is fluid or fixed."
|
|
90
|
+
},
|
|
91
|
+
"summary placement": {
|
|
92
|
+
"type": "string",
|
|
93
|
+
"enum": ["top", "bottom"],
|
|
94
|
+
"default": "bottom",
|
|
95
|
+
"description": "Placement of the summary row for this column, if applicable."
|
|
96
|
+
},
|
|
97
|
+
"summary text": {
|
|
98
|
+
"type": "string",
|
|
99
|
+
"description": "Text to display in the summary row for this column, if applicable."
|
|
100
|
+
},
|
|
101
|
+
"isSortable": {
|
|
102
|
+
"type": "boolean",
|
|
103
|
+
"default": false,
|
|
104
|
+
"description": "Whether this column is sortable."
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"required": ["key", "label", "type"]
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"rows": {
|
|
111
|
+
"type": "array",
|
|
112
|
+
"description": "An array of row data for the table.",
|
|
113
|
+
"items": {
|
|
114
|
+
"type": "object",
|
|
115
|
+
"description": "Each object represents a single row, keyed by column IDs."
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"lifecycle": {
|
|
120
|
+
"introduced": "1.0.0-draft"
|
|
121
|
+
},
|
|
122
|
+
"tokenBindings": [
|
|
123
|
+
{
|
|
124
|
+
"token": "chevron-100",
|
|
125
|
+
"context": "Header icons"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"token": "corner-radius-medium-size-extra-small",
|
|
129
|
+
"context": "Note: desktop 6px, mobile 6px;"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"token": "component-height-100",
|
|
133
|
+
"context": "Column header row height"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"token": "table-column-header-row-top-to-text-medium",
|
|
137
|
+
"context": "Spacing (column header row top/bottom to text)"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"token": "table-column-header-row-bottom-to-text-medium",
|
|
141
|
+
"context": "Spacing (column header row top/bottom to text)"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"token": "table-row-height-medium-compact",
|
|
145
|
+
"context": "Row height (minimum, compact density)"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"token": "table-row-height-medium",
|
|
149
|
+
"context": "Row height (minimum, regular density)"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"token": "table-row-height-medium-spacious",
|
|
153
|
+
"context": "Row height (minimum, spacious density)"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"token": "table-row-top-to-text-medium-compact",
|
|
157
|
+
"context": "Spacing (row top/bottom to text, compact density)"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"token": "table-row-bottom-to-text-medium-compact",
|
|
161
|
+
"context": "Spacing (row top/bottom to text, compact density)"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"token": "table-row-top-to-text-medium",
|
|
165
|
+
"context": "Note: desktop 11px, mobile 14px;"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"token": "table-row-bottom-to-text-medium",
|
|
169
|
+
"context": "Note: desktop 11px, mobile 14px;"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"token": "table-row-top-to-text-medium-spacious",
|
|
173
|
+
"context": "Spacing (row top/bottom to text, spacious density)"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"token": "table-row-bottom-to-text-medium-spacious",
|
|
177
|
+
"context": "Spacing (row top/bottom to text, spacious density)"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"token": "table-edge-to-content",
|
|
181
|
+
"context": "Spacing (text to start/end edge or divider)"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"token": "text-to-visual-300",
|
|
185
|
+
"context": "Note: desktop 8px, mobile 10px;\n\nThis applies to icon, avatar, and thumbnail."
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"token": "table-border-divider-width",
|
|
189
|
+
"context": "Border and column divider width"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"token": "table-checkbox-to-text",
|
|
193
|
+
"context": "Spacing (checkbox to text)"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"token": "table-header-row-checkbox-to-top-medium",
|
|
197
|
+
"context": "Note: desktop 8px, mobile 11px;"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"token": "table-row-checkbox-to-top-medium-compact",
|
|
201
|
+
"context": "Note: desktop 8px, mobile 11px;"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"token": "table-row-checkbox-to-top-medium",
|
|
205
|
+
"context": "Note: desktop 12px, mobile 16px;"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"token": "table-row-checkbox-to-top-medium-spacious",
|
|
209
|
+
"context": "Note: desktop 16px, mobile 21px;"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"token": "table-section-header-row-height-medium",
|
|
213
|
+
"context": "Section header row height"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"token": "component-top-to-text-100",
|
|
217
|
+
"context": "Spacing (section header row top/bottom to text) "
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"token": "component-bottom-to-text-100",
|
|
221
|
+
"context": "Spacing (section header row top/bottom to text) "
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"token": "accent-content-color-selected",
|
|
225
|
+
"context": "Selection indicator"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"token": "border-width-100",
|
|
229
|
+
"context": "Note: 1px;"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"token": "corner-radius-small-default",
|
|
233
|
+
"context": "Focus indicator (cell)"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"token": "side-focus-indicator",
|
|
237
|
+
"context": "Focus indicator (row)"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"token": "body-color",
|
|
241
|
+
"context": "Column header and row (text)"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"token": "neutral-subdued-content-color-default",
|
|
245
|
+
"context": "Row: not selected"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"token": "neutral-subdued-content-color-hover",
|
|
249
|
+
"context": "Row: not selected"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"token": "neutral-subdued-content-color-key-focus",
|
|
253
|
+
"context": "Row: not selected"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"token": "neutral-content-color-default",
|
|
257
|
+
"context": "Row: selected, checkbox & highlight"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"token": "neutral-content-color-default-hover",
|
|
261
|
+
"context": "Row: selected, checkbox & highlight"
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"token": "neutral-content-color-default-down",
|
|
265
|
+
"context": "Row: selected, checkbox & highlight"
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"token": "neutral-content-color-default-key-focus",
|
|
269
|
+
"context": "Row: selected, checkbox & highlight"
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"token": "neutral-subdued-content-color-down",
|
|
273
|
+
"context": "Sort UI icon asset"
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"token": "gray-25",
|
|
277
|
+
"context": "Note: change applies to both desktop and mobile."
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"token": "gray-300",
|
|
281
|
+
"context": "Column header and row (background, border and divider)"
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"token": "gray-75",
|
|
285
|
+
"context": "Column header and row (background, border and divider)"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"token": "gray-200",
|
|
289
|
+
"context": "Summary row (background)"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"token": "gray-100",
|
|
293
|
+
"context": "Row (disabled)"
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"token": "gray-400",
|
|
297
|
+
"context": "Row (disabled)"
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"token": "stack-item-background-color-hover",
|
|
301
|
+
"context": "Row (not selected, hover)"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"token": "stack-item-selected-background-color-default",
|
|
305
|
+
"context": "Row (checkbox selection)"
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"token": "stack-item-selected-background-color-hover",
|
|
309
|
+
"context": "Row (checkbox selection, hover)"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"token": "stack-item-selected-background-color-down",
|
|
313
|
+
"context": "Row (checkbox selection, down)"
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"token": "stack-item-selected-background-color-key-focus",
|
|
317
|
+
"context": "Row (checkbox selection, keyboard focus)"
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"token": "table-selected-row-background-color-highlight",
|
|
321
|
+
"context": "Selected row background (highlight selection)"
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"token": "table-selected-row-background-opacity-highlight",
|
|
325
|
+
"context": "Selected row background (highlight selection)"
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"token": "table-selected-row-background-opacity-highlight-hover",
|
|
329
|
+
"context": "Selected row background (highlight selection, hover)"
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"token": "focus-indicator-color",
|
|
333
|
+
"context": "Focus indicator (cell)"
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
"token": "default-font-family",
|
|
337
|
+
"context": "Column header and row"
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
"token": "bold-font-weight",
|
|
341
|
+
"context": "Column header and row"
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
"token": "default-font-style",
|
|
345
|
+
"context": "Column header and row"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"token": "font-size-100",
|
|
349
|
+
"context": "Column header and row"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"token": "line-height-100",
|
|
353
|
+
"context": "Column header and row"
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"token": "cjk-line-height-100",
|
|
357
|
+
"context": "Column header and row"
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"token": "regular-font-weight",
|
|
361
|
+
"context": "Column header and row"
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
"token": "table-row-hover-color;",
|
|
365
|
+
"context": "S1 Row (not selected, hover)"
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"token": "table-row-hover-opacity",
|
|
369
|
+
"context": "S1 Row (not selected, hover)"
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"token": "table-row-down-opacity",
|
|
373
|
+
"context": "S1 Row (checkbox selection, down)"
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
"token": "table-selected-row-background-opacity-hover-highlight",
|
|
377
|
+
"context": "S2 Selected row background (highlight selection, hover)"
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"token": "table-selected-row-background-color",
|
|
381
|
+
"context": "S1 Selected row background (highlight selection)"
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
"token": "table-selected-row-background-opacity",
|
|
385
|
+
"context": "S1 Selected row background (highlight selection)"
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
"token": "table-selected-row-background-opacity-hover",
|
|
389
|
+
"context": "S1 Selected row background (highlight selection, hover)"
|
|
390
|
+
}
|
|
391
|
+
]
|
|
392
|
+
}
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/component.schema.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/components/tabs.json",
|
|
4
|
+
"specVersion": "1.0.0-draft",
|
|
5
|
+
"name": "tabs",
|
|
6
|
+
"displayName": "Tabs",
|
|
7
|
+
"description": "Tabs organize content into multiple sections and allow users to navigate between them. The content under the set of tabs should be related and form a coherent unit.",
|
|
8
|
+
"meta": {
|
|
9
|
+
"category": "navigation",
|
|
10
|
+
"documentationUrl": "https://spectrum.adobe.com/page/tabs/"
|
|
11
|
+
},
|
|
12
|
+
"options": {
|
|
13
|
+
"orientation": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"enum": ["horizontal", "vertical"],
|
|
16
|
+
"default": "horizontal"
|
|
17
|
+
},
|
|
18
|
+
"items": {
|
|
19
|
+
"type": "array",
|
|
20
|
+
"description": "An array of tab items.",
|
|
21
|
+
"items": {
|
|
22
|
+
"type": "object",
|
|
23
|
+
"properties": {
|
|
24
|
+
"label": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"description": "The text displayed for the tab item."
|
|
27
|
+
},
|
|
28
|
+
"isDisabled": {
|
|
29
|
+
"type": "boolean",
|
|
30
|
+
"default": false,
|
|
31
|
+
"description": "Whether the tab is disabled."
|
|
32
|
+
},
|
|
33
|
+
"state": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"enum": ["default", "hover", "keyboard focus"],
|
|
36
|
+
"default": "default",
|
|
37
|
+
"description": "The interaction state of the tab item."
|
|
38
|
+
},
|
|
39
|
+
"contentVariant": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"enum": ["label-only", "icon-only", "icon-label"],
|
|
42
|
+
"default": "icon-label",
|
|
43
|
+
"description": "Controls whether the tab displays a label, an icon, or both."
|
|
44
|
+
},
|
|
45
|
+
"density": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"enum": ["compact", "regular"],
|
|
48
|
+
"default": "regular"
|
|
49
|
+
},
|
|
50
|
+
"isFluid": {
|
|
51
|
+
"type": "boolean",
|
|
52
|
+
"default": false,
|
|
53
|
+
"description": "This overrides density and is only applicable to horizontal tabs."
|
|
54
|
+
},
|
|
55
|
+
"isEmphasized": {
|
|
56
|
+
"type": "boolean",
|
|
57
|
+
"default": false
|
|
58
|
+
},
|
|
59
|
+
"alignment": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"enum": ["start", "center"],
|
|
62
|
+
"default": "start"
|
|
63
|
+
},
|
|
64
|
+
"selectedItem": {
|
|
65
|
+
"description": "(list of available items)"
|
|
66
|
+
},
|
|
67
|
+
"keyboardActivation": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"enum": ["manual", "automatic"],
|
|
70
|
+
"default": "manual"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"lifecycle": {
|
|
77
|
+
"introduced": "1.0.0-draft"
|
|
78
|
+
},
|
|
79
|
+
"tokenBindings": [
|
|
80
|
+
{
|
|
81
|
+
"token": "tab-item-compact-height-medium",
|
|
82
|
+
"context": "Height "
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"token": "tab-item-height-medium",
|
|
86
|
+
"context": "Regular density "
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"token": "corner-radius-0",
|
|
90
|
+
"context": "Corner radius"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"token": "workflow-icon-size-100",
|
|
94
|
+
"context": "Icon "
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"token": "text-to-visual-100",
|
|
98
|
+
"context": "Spacing (icon to label)"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"token": "tab-item-top-to-workflow-icon-compact-medium",
|
|
102
|
+
"context": "Spacing (top/bottom to edge, workflow icon only)"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"token": "tab-item-top-to-workflow-icon-medium",
|
|
106
|
+
"context": "Spacing (top/bottom to edge, workflow icon only)"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"token": "tab-item-side-to-workflow-icon-compact-medium",
|
|
110
|
+
"context": "Spacing (side to edge, workflow icon only)"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"token": "tab-item-side-to-workflow-icon-medium",
|
|
114
|
+
"context": "Spacing (side to edge, workflow icon only)"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"token": "spacing-100",
|
|
118
|
+
"context": "Spacing (edge to edge)"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"token": "tab-item-top-to-text-compact-medium",
|
|
122
|
+
"context": "Spacing (top edge to label)"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"token": "tab-item-top-to-text-medium",
|
|
126
|
+
"context": "Spacing (top edge to label)"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"token": "tab-item-bottom-to-text-compact-medium",
|
|
130
|
+
"context": "Spacing (bottom edge to label)"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"token": "tab-item-bottom-to-text-medium",
|
|
134
|
+
"context": "Spacing (bottom edge to label)"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"token": "tab-item-to-tab-item-compact-horizontal-medium",
|
|
138
|
+
"context": "Spacing (between tab items, horizontal)"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"token": "tab-item-to-tab-item-horizontal-medium",
|
|
142
|
+
"context": "Spacing (between tab items, horizontal)"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"token": "focus-indicator-thickness",
|
|
146
|
+
"context": "Focus ring"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"token": "focus-indicator-gap",
|
|
150
|
+
"context": "Focus ring"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"token": "tab-selection-indicator-thickness",
|
|
154
|
+
"context": "Selection indicator (underline)"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"token": "spacing-75",
|
|
158
|
+
"context": "Spacing (selected) "
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"token": "spacing-200",
|
|
162
|
+
"context": "Spacing (selected) "
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"token": "spacing-50",
|
|
166
|
+
"context": "Spacing (selected with keyboard focus) "
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"token": "neutral-content-color-default",
|
|
170
|
+
"context": "Tab items and selection indicator"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"token": "neutral-content-color-hover",
|
|
174
|
+
"context": "Tab items and selection indicator"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"token": "neutral-content-color-key-focus",
|
|
178
|
+
"context": "Tab items and selection indicator"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"token": "neutral-subdued-content-color-default",
|
|
182
|
+
"context": "Tab items and selection indicator"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"token": "neutral-subdued-content-color-hover",
|
|
186
|
+
"context": "Tab items and selection indicator"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"token": "neutral-subdued-content-color-key-focus",
|
|
190
|
+
"context": "Tab items and selection indicator"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"token": "disabled-border-color",
|
|
194
|
+
"context": "Disabled"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"token": "disabled-content-color",
|
|
198
|
+
"context": "Disabled"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"token": "focus-indicator-color",
|
|
202
|
+
"context": "Focus ring"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"token": "default-font-family"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"token": "default-font-style"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"token": "regular-font-weight"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"token": "font-size-75"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"token": "font-size-100"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"token": "font-size-200"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"token": "font-size-300"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"token": "line-height-100"
|
|
227
|
+
}
|
|
228
|
+
]
|
|
229
|
+
}
|