@adobe/design-data-spec 0.4.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.
Files changed (81) hide show
  1. package/components/accordion.json +431 -1
  2. package/components/action-bar.json +183 -1
  3. package/components/action-button.json +407 -1
  4. package/components/action-group.json +15 -1
  5. package/components/alert-banner.json +79 -1
  6. package/components/alert-dialog.json +107 -1
  7. package/components/avatar-group.json +115 -1
  8. package/components/avatar.json +131 -1
  9. package/components/badge.json +430 -1
  10. package/components/breadcrumbs.json +175 -1
  11. package/components/button-group.json +11 -1
  12. package/components/button.json +466 -8
  13. package/components/cards.json +483 -1
  14. package/components/checkbox-group.json +2 -1
  15. package/components/checkbox.json +243 -1
  16. package/components/close-button.json +123 -1
  17. package/components/coach-indicator.json +39 -1
  18. package/components/coach-mark.json +103 -1
  19. package/components/color-area.json +39 -1
  20. package/components/color-handle.json +51 -1
  21. package/components/color-loupe.json +55 -1
  22. package/components/color-slider.json +43 -1
  23. package/components/color-wheel.json +35 -1
  24. package/components/combo-box.json +387 -1
  25. package/components/contextual-help.json +83 -1
  26. package/components/date-picker.json +279 -1
  27. package/components/divider.json +47 -1
  28. package/components/drop-zone.json +167 -1
  29. package/components/field-label.json +147 -1
  30. package/components/help-text.json +147 -1
  31. package/components/illustrated-message.json +107 -1
  32. package/components/in-field-progress-circle.json +55 -1
  33. package/components/in-line-alert.json +155 -1
  34. package/components/link.json +91 -1
  35. package/components/list-view.json +263 -1
  36. package/components/menu.json +467 -1
  37. package/components/meter.json +115 -1
  38. package/components/number-field.json +399 -1
  39. package/components/opacity-checkerboard.json +19 -1
  40. package/components/picker.json +431 -1
  41. package/components/popover.json +51 -1
  42. package/components/progress-bar.json +115 -1
  43. package/components/progress-circle.json +55 -1
  44. package/components/radio-button.json +243 -1
  45. package/components/radio-group.json +2 -1
  46. package/components/rating.json +99 -1
  47. package/components/search-field.json +235 -1
  48. package/components/segmented-control.json +135 -1
  49. package/components/select-box.json +187 -1
  50. package/components/side-navigation.json +223 -1
  51. package/components/slider.json +279 -1
  52. package/components/standard-dialog.json +99 -1
  53. package/components/status-light.json +219 -1
  54. package/components/steplist.json +215 -1
  55. package/components/swatch-group.json +15 -1
  56. package/components/swatch.json +136 -2
  57. package/components/switch.json +251 -1
  58. package/components/table.json +271 -1
  59. package/components/tabs.json +151 -1
  60. package/components/tag-field.json +151 -1
  61. package/components/tag-group.json +19 -1
  62. package/components/tag.json +323 -1
  63. package/components/takeover-dialog.json +35 -1
  64. package/components/text-area.json +383 -1
  65. package/components/text-field.json +411 -1
  66. package/components/thumbnail.json +83 -1
  67. package/components/title.json +39 -0
  68. package/components/toast.json +99 -1
  69. package/components/tooltip.json +87 -1
  70. package/components/tree-view.json +279 -1
  71. package/conformance/invalid/SPEC-027/dataset.json +25 -0
  72. package/conformance/invalid/SPEC-027/expected-errors.json +10 -0
  73. package/conformance/valid/token-bindings.json +27 -0
  74. package/package.json +1 -1
  75. package/rules/rules.yaml +9 -0
  76. package/schemas/component.schema.json +22 -0
  77. package/schemas/token.schema.json +27 -0
  78. package/spec/agent-surface.md +39 -9
  79. package/spec/component-format.md +41 -16
  80. package/spec/token-format.md +18 -0
  81. package/src/validate.js +27 -3
@@ -118,5 +118,275 @@
118
118
  },
119
119
  "lifecycle": {
120
120
  "introduced": "1.0.0-draft"
121
- }
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
+ ]
122
392
  }
@@ -75,5 +75,155 @@
75
75
  },
76
76
  "lifecycle": {
77
77
  "introduced": "1.0.0-draft"
78
- }
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
+ ]
79
229
  }
@@ -49,5 +49,155 @@
49
49
  ],
50
50
  "lifecycle": {
51
51
  "introduced": "1.0.0-draft"
52
- }
52
+ },
53
+ "tokenBindings": [
54
+ {
55
+ "token": "tag-field-default-width-small",
56
+ "context": "Width (default)"
57
+ },
58
+ {
59
+ "token": "tag-field-default-width-medium",
60
+ "context": "Width (default)"
61
+ },
62
+ {
63
+ "token": "tag-field-default-width-large",
64
+ "context": "Width (default)"
65
+ },
66
+ {
67
+ "token": "tag-field-minimum-width",
68
+ "context": "Width (minimum)"
69
+ },
70
+ {
71
+ "token": "tag-field-minimum-height-small",
72
+ "context": "Height (minimum)"
73
+ },
74
+ {
75
+ "token": "tag-field-minimum-height-medium",
76
+ "context": "Height (minimum)"
77
+ },
78
+ {
79
+ "token": "tag-field-minimum-height-large",
80
+ "context": "Height (minimum)"
81
+ },
82
+ {
83
+ "token": "corner-radius-medium-size-small",
84
+ "context": "Rounding"
85
+ },
86
+ {
87
+ "token": "corner-radius-medium-size-medium",
88
+ "context": "Rounding"
89
+ },
90
+ {
91
+ "token": "corner-radius-medium-size-large",
92
+ "context": "Rounding"
93
+ },
94
+ {
95
+ "token": "border-width-200",
96
+ "context": "Border"
97
+ },
98
+ {
99
+ "token": "focus-indicator-thickness",
100
+ "context": "Focus indicator"
101
+ },
102
+ {
103
+ "token": "workflow-icon-size-75",
104
+ "context": "Alert icon"
105
+ },
106
+ {
107
+ "token": "workflow-icon-size-100",
108
+ "context": "Alert icon"
109
+ },
110
+ {
111
+ "token": "workflow-icon-size-200",
112
+ "context": "Alert icon"
113
+ },
114
+ {
115
+ "token": "field-edge-to-alert-icon-small",
116
+ "context": "Spacing (top/bottom edge to alert icon)"
117
+ },
118
+ {
119
+ "token": "field-edge-to-alert-icon-medium",
120
+ "context": "Spacing (top/bottom edge to alert icon)"
121
+ },
122
+ {
123
+ "token": "field-edge-to-alert-icon-large",
124
+ "context": "Spacing (top/bottom edge to alert icon)"
125
+ },
126
+ {
127
+ "token": "field-label-to-component",
128
+ "context": "Spacing (field label to tag field)"
129
+ },
130
+ {
131
+ "token": "tag-field-edge-to-content-small",
132
+ "context": "Spacing (edge to tag group)"
133
+ },
134
+ {
135
+ "token": "tag-field-edge-to-content-medium",
136
+ "context": "Spacing (edge to tag group)"
137
+ },
138
+ {
139
+ "token": "tag-field-edge-to-content-large",
140
+ "context": "Spacing (edge to tag group)"
141
+ },
142
+ {
143
+ "token": "help-text-to-component",
144
+ "context": "Spacing (tag field to help text)"
145
+ },
146
+ {
147
+ "token": "spacing-200",
148
+ "context": "Spacing (minimum, field label to field)"
149
+ },
150
+ {
151
+ "token": "gray-25",
152
+ "context": "Background and border"
153
+ },
154
+ {
155
+ "token": "gray-300",
156
+ "context": "Background and border"
157
+ },
158
+ {
159
+ "token": "gray-400",
160
+ "context": "Background and border"
161
+ },
162
+ {
163
+ "token": "gray-900",
164
+ "context": "Background and border"
165
+ },
166
+ {
167
+ "token": "gray-800",
168
+ "context": "Background and border"
169
+ },
170
+ {
171
+ "token": "negative-border-color-default",
172
+ "context": "Border (error)"
173
+ },
174
+ {
175
+ "token": "negative-border-color-hover",
176
+ "context": "Border (error)"
177
+ },
178
+ {
179
+ "token": "negative-border-color-focus-hover",
180
+ "context": "Border (error)"
181
+ },
182
+ {
183
+ "token": "negative-border-color-focus",
184
+ "context": "Border (error)"
185
+ },
186
+ {
187
+ "token": "negative-border-color-key-focus",
188
+ "context": "Border (error)"
189
+ },
190
+ {
191
+ "token": "negative-visual-color",
192
+ "context": "Alert icon"
193
+ },
194
+ {
195
+ "token": "disabled-border-color",
196
+ "context": "Disabled"
197
+ },
198
+ {
199
+ "token": "focus-indicator-color",
200
+ "context": "Focus ring"
201
+ }
202
+ ]
53
203
  }
@@ -31,5 +31,23 @@
31
31
  },
32
32
  "lifecycle": {
33
33
  "introduced": "1.0.0-draft"
34
- }
34
+ },
35
+ "tokenBindings": [
36
+ {
37
+ "token": "spacing-100",
38
+ "context": "Spacing (vertical)"
39
+ },
40
+ {
41
+ "token": "spacing-200",
42
+ "context": "Spacing (vertical)"
43
+ },
44
+ {
45
+ "token": "field-label-to-component",
46
+ "context": "Spacing (Field label to Tags)"
47
+ },
48
+ {
49
+ "token": "help-text-to-component",
50
+ "context": "Spacing (Text area to Help text)"
51
+ }
52
+ ]
35
53
  }