@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
@@ -71,5 +71,411 @@
71
71
  ],
72
72
  "lifecycle": {
73
73
  "introduced": "1.0.0-draft"
74
- }
74
+ },
75
+ "tokenBindings": [
76
+ {
77
+ "token": "component-height-50",
78
+ "context": "Height"
79
+ },
80
+ {
81
+ "token": "component-height-75",
82
+ "context": "Height"
83
+ },
84
+ {
85
+ "token": "component-height-100",
86
+ "context": "Height"
87
+ },
88
+ {
89
+ "token": "component-height-200",
90
+ "context": "Height"
91
+ },
92
+ {
93
+ "token": "component-height-300",
94
+ "context": "Height"
95
+ },
96
+ {
97
+ "token": "component-size-difference-down",
98
+ "context": "Component size (down)"
99
+ },
100
+ {
101
+ "token": "component-size-width-ratio-down",
102
+ "context": "Component size (down)"
103
+ },
104
+ {
105
+ "token": "component-size-minimum-perspective-down",
106
+ "context": "Component size (down)"
107
+ },
108
+ {
109
+ "token": "corner-radius-medium-size-extra-small",
110
+ "context": "Rounding"
111
+ },
112
+ {
113
+ "token": "corner-radius-medium-size-small",
114
+ "context": "Rounding"
115
+ },
116
+ {
117
+ "token": "corner-radius-medium-size-medium",
118
+ "context": "Rounding"
119
+ },
120
+ {
121
+ "token": "corner-radius-medium-size-large",
122
+ "context": "Rounding"
123
+ },
124
+ {
125
+ "token": "corner-radius-medium-size-extra-large",
126
+ "context": "Rounding"
127
+ },
128
+ {
129
+ "token": "workflow-icon-size-50",
130
+ "context": "Icon"
131
+ },
132
+ {
133
+ "token": "workflow-icon-size-75",
134
+ "context": "Icon"
135
+ },
136
+ {
137
+ "token": "workflow-icon-size-100",
138
+ "context": "Icon"
139
+ },
140
+ {
141
+ "token": "workflow-icon-size-200",
142
+ "context": "Icon"
143
+ },
144
+ {
145
+ "token": "workflow-icon-size-300",
146
+ "context": "Icon"
147
+ },
148
+ {
149
+ "token": "text-to-visual-50",
150
+ "context": "Spacing (icon to label)"
151
+ },
152
+ {
153
+ "token": "text-to-visual-75",
154
+ "context": "Spacing (icon to label)"
155
+ },
156
+ {
157
+ "token": "text-to-visual-100",
158
+ "context": "Spacing (icon to label)"
159
+ },
160
+ {
161
+ "token": "text-to-visual-200",
162
+ "context": "Spacing (icon to label)"
163
+ },
164
+ {
165
+ "token": "text-to-visual-300",
166
+ "context": "Spacing (icon to label)"
167
+ },
168
+ {
169
+ "token": "component-edge-to-visual-50",
170
+ "context": "Spacing (start/end edges)"
171
+ },
172
+ {
173
+ "token": "component-edge-to-visual-75",
174
+ "context": "Spacing (start/end edges)"
175
+ },
176
+ {
177
+ "token": "component-edge-to-visual-100",
178
+ "context": "Spacing (start/end edges)"
179
+ },
180
+ {
181
+ "token": "component-edge-to-visual-200",
182
+ "context": "Spacing (start/end edges)"
183
+ },
184
+ {
185
+ "token": "component-edge-to-visual-300",
186
+ "context": "Spacing (start/end edges)"
187
+ },
188
+ {
189
+ "token": "component-edge-to-text-50",
190
+ "context": "Spacing (start/end edges)"
191
+ },
192
+ {
193
+ "token": "component-edge-to-text-75",
194
+ "context": "Spacing (start/end edges)"
195
+ },
196
+ {
197
+ "token": "component-edge-to-text-100",
198
+ "context": "Spacing (start/end edges)"
199
+ },
200
+ {
201
+ "token": "component-edge-to-text-200",
202
+ "context": "Spacing (start/end edges)"
203
+ },
204
+ {
205
+ "token": "component-edge-to-text-300",
206
+ "context": "Spacing (start/end edges)"
207
+ },
208
+ {
209
+ "token": "component-edge-to-visual-only-50",
210
+ "context": "Spacing (start/end edges, icon only)"
211
+ },
212
+ {
213
+ "token": "component-edge-to-visual-only-75",
214
+ "context": "Spacing (start/end edges, icon only)"
215
+ },
216
+ {
217
+ "token": "component-edge-to-visual-only-100",
218
+ "context": "Spacing (start/end edges, icon only)"
219
+ },
220
+ {
221
+ "token": "component-edge-to-visual-only-200",
222
+ "context": "Spacing (start/end edges, icon only)"
223
+ },
224
+ {
225
+ "token": "component-edge-to-visual-only-300",
226
+ "context": "Spacing (start/end edges, icon only)"
227
+ },
228
+ {
229
+ "token": "component-top-to-workflow-icon-50",
230
+ "context": "Spacing (top edge to icon)"
231
+ },
232
+ {
233
+ "token": "component-top-to-workflow-icon-75",
234
+ "context": "Spacing (top edge to icon)"
235
+ },
236
+ {
237
+ "token": "component-top-to-workflow-icon-100",
238
+ "context": "Spacing (top edge to icon)"
239
+ },
240
+ {
241
+ "token": "component-top-to-workflow-icon-200",
242
+ "context": "Spacing (top edge to icon)"
243
+ },
244
+ {
245
+ "token": "component-top-to-workflow-icon-300",
246
+ "context": "Spacing (top edge to icon)"
247
+ },
248
+ {
249
+ "token": "component-top-to-text-50",
250
+ "context": "Spacing (top edge to label)"
251
+ },
252
+ {
253
+ "token": "component-top-to-text-75",
254
+ "context": "Spacing (top edge to label)"
255
+ },
256
+ {
257
+ "token": "component-top-to-text-100",
258
+ "context": "Spacing (top edge to label)"
259
+ },
260
+ {
261
+ "token": "component-top-to-text-200",
262
+ "context": "Spacing (top edge to label)"
263
+ },
264
+ {
265
+ "token": "component-top-to-text-300",
266
+ "context": "Spacing (top edge to label)"
267
+ },
268
+ {
269
+ "token": "focus-indicator-thickness",
270
+ "context": "Focus ring"
271
+ },
272
+ {
273
+ "token": "focus-indicator-gap",
274
+ "context": "Focus ring"
275
+ },
276
+ {
277
+ "token": "action-button-edge-to-hold-icon-extra-small",
278
+ "context": "Spacing (edge to hold icon)"
279
+ },
280
+ {
281
+ "token": "action-button-edge-to-hold-icon-small",
282
+ "context": "Spacing (edge to hold icon)"
283
+ },
284
+ {
285
+ "token": "action-button-edge-to-hold-icon-medium",
286
+ "context": "Spacing (edge to hold icon)"
287
+ },
288
+ {
289
+ "token": "action-button-edge-to-hold-icon-large",
290
+ "context": "Spacing (edge to hold icon)"
291
+ },
292
+ {
293
+ "token": "action-button-edge-to-hold-icon-extra-large",
294
+ "context": "Spacing (edge to hold icon)"
295
+ },
296
+ {
297
+ "token": "default-font-family",
298
+ "context": "Label"
299
+ },
300
+ {
301
+ "token": "medium-font-weight",
302
+ "context": "Label"
303
+ },
304
+ {
305
+ "token": "default-font-style",
306
+ "context": "Label"
307
+ },
308
+ {
309
+ "token": "font-size-50",
310
+ "context": "Label"
311
+ },
312
+ {
313
+ "token": "font-size-75",
314
+ "context": "Label"
315
+ },
316
+ {
317
+ "token": "font-size-100",
318
+ "context": "Label"
319
+ },
320
+ {
321
+ "token": "font-size-200",
322
+ "context": "Label"
323
+ },
324
+ {
325
+ "token": "font-size-300",
326
+ "context": "Label"
327
+ },
328
+ {
329
+ "token": "line-height-100",
330
+ "context": "Label"
331
+ },
332
+ {
333
+ "token": "cjk-line-height-100",
334
+ "context": "Label"
335
+ },
336
+ {
337
+ "token": "gray-100",
338
+ "context": "Background "
339
+ },
340
+ {
341
+ "token": "gray-200",
342
+ "context": "Background "
343
+ },
344
+ {
345
+ "token": "neutral-content-color-default",
346
+ "context": "Label, icon, and hold icon"
347
+ },
348
+ {
349
+ "token": "neutral-content-color-hover",
350
+ "context": "Label, icon, and hold icon"
351
+ },
352
+ {
353
+ "token": "neutral-content-color-down",
354
+ "context": "Label, icon, and hold icon"
355
+ },
356
+ {
357
+ "token": "neutral-content-color-key-focus",
358
+ "context": "Label, icon, and hold icon"
359
+ },
360
+ {
361
+ "token": "neutral-background-color-selected-default",
362
+ "context": "Background (selected, non emphasized)"
363
+ },
364
+ {
365
+ "token": "neutral-background-color-selected-hover",
366
+ "context": "Background (selected, non emphasized)"
367
+ },
368
+ {
369
+ "token": "neutral-background-color-selected-down",
370
+ "context": "Background (selected, non emphasized)"
371
+ },
372
+ {
373
+ "token": "neutral-background-color-selected-key-focus",
374
+ "context": "Background (selected, non emphasized)"
375
+ },
376
+ {
377
+ "token": "gray-25",
378
+ "context": "Label, icon, and hold icon (selected, non emphasized)"
379
+ },
380
+ {
381
+ "token": "accent-background-color-default",
382
+ "context": "Background (selected, emphasized)"
383
+ },
384
+ {
385
+ "token": "accent-background-color-hover",
386
+ "context": "Background (selected, emphasized)"
387
+ },
388
+ {
389
+ "token": "accent-background-color-down",
390
+ "context": "Background (selected, emphasized)"
391
+ },
392
+ {
393
+ "token": "accent-background-color-key-focus",
394
+ "context": "Background (selected, emphasized)"
395
+ },
396
+ {
397
+ "token": "white",
398
+ "context": "Label, icon, and hold icon (selected, emphasized)"
399
+ },
400
+ {
401
+ "token": "disabled-background-color",
402
+ "context": "Background (disabled)"
403
+ },
404
+ {
405
+ "token": "disabled-content-color",
406
+ "context": "Label, icon, and hold icon (disabled)"
407
+ },
408
+ {
409
+ "token": "focus-indicator-color",
410
+ "context": "Focus ring"
411
+ },
412
+ {
413
+ "token": "transparent-white-100",
414
+ "context": "Background "
415
+ },
416
+ {
417
+ "token": "transparent-white-200",
418
+ "context": "Background "
419
+ },
420
+ {
421
+ "token": "transparent-white-800",
422
+ "context": "Label, icon, and hold icon"
423
+ },
424
+ {
425
+ "token": "transparent-white-900",
426
+ "context": "Label, icon, and hold icon"
427
+ },
428
+ {
429
+ "token": "black",
430
+ "context": "Label, icon, and hold icon (selected, white)"
431
+ },
432
+ {
433
+ "token": "disabled-static-white-background-color",
434
+ "context": "Background (disabled, white)"
435
+ },
436
+ {
437
+ "token": "transparent-white-25",
438
+ "context": "Background (disabled, white)"
439
+ },
440
+ {
441
+ "token": "disabled-static-white-content-color",
442
+ "context": "Label, icon, and hold icon (disabled, white)"
443
+ },
444
+ {
445
+ "token": "static-white-focus-indicator-color",
446
+ "context": "Focus ring (white)"
447
+ },
448
+ {
449
+ "token": "transparent-black-100",
450
+ "context": "Background "
451
+ },
452
+ {
453
+ "token": "transparent-black-200",
454
+ "context": "Background "
455
+ },
456
+ {
457
+ "token": "transparent-black-800",
458
+ "context": "Label, icon, and hold icon"
459
+ },
460
+ {
461
+ "token": "transparent-black-900",
462
+ "context": "Label, icon, and hold icon"
463
+ },
464
+ {
465
+ "token": "disabled-static-black-background-color",
466
+ "context": "Background (disabled, black)"
467
+ },
468
+ {
469
+ "token": "transparent-black-25",
470
+ "context": "Background (disabled, black)"
471
+ },
472
+ {
473
+ "token": "disabled-static-black-content-color",
474
+ "context": "Label, icon, and hold icon (disabled, black)"
475
+ },
476
+ {
477
+ "token": "static-black-focus-indicator-color",
478
+ "context": "Focus ring (black)"
479
+ }
480
+ ]
75
481
  }
@@ -64,5 +64,19 @@
64
64
  },
65
65
  "lifecycle": {
66
66
  "introduced": "1.0.0-draft"
67
- }
67
+ },
68
+ "tokenBindings": [
69
+ {
70
+ "token": "spacing-75",
71
+ "context": "Spacing (horizontal, regular)"
72
+ },
73
+ {
74
+ "token": "spacing-100",
75
+ "context": "Spacing (horizontal, regular)"
76
+ },
77
+ {
78
+ "token": "spacing-50",
79
+ "context": "Spacing (horizontal, compact)"
80
+ }
81
+ ]
68
82
  }
@@ -29,5 +29,83 @@
29
29
  },
30
30
  "lifecycle": {
31
31
  "introduced": "1.0.0-draft"
32
- }
32
+ },
33
+ "tokenBindings": [
34
+ {
35
+ "token": "workflow-icon-size-100",
36
+ "context": "Icon asset"
37
+ },
38
+ {
39
+ "token": "alert-banner-minimum-height",
40
+ "context": "Height"
41
+ },
42
+ {
43
+ "token": "alert-banner-width",
44
+ "context": "Width"
45
+ },
46
+ {
47
+ "token": "text-to-visual-300",
48
+ "context": "Spacing (icon to text)"
49
+ },
50
+ {
51
+ "token": "spacing-300",
52
+ "context": "Spacing (start edge to text and icon)"
53
+ },
54
+ {
55
+ "token": "spacing-100",
56
+ "context": "Spacing (close button to end edge)"
57
+ },
58
+ {
59
+ "token": "spacing-200",
60
+ "context": "Spacing (close button to end edge)"
61
+ },
62
+ {
63
+ "token": "alert-banner-top-to-workflow-icon",
64
+ "context": "Spacing (top/bottom edge to icon)"
65
+ },
66
+ {
67
+ "token": "alert-banner-top-to-text",
68
+ "context": "Spacing (top/bottom edge to text)"
69
+ },
70
+ {
71
+ "token": "alert-banner-bottom-to-text",
72
+ "context": "Spacing (top/bottom edge to text)"
73
+ },
74
+ {
75
+ "token": "neutral-subdued-background-color-default",
76
+ "context": "Background"
77
+ },
78
+ {
79
+ "token": "informative-background-color-default",
80
+ "context": "Background"
81
+ },
82
+ {
83
+ "token": "negative-background-color-default",
84
+ "context": "Background"
85
+ },
86
+ {
87
+ "token": "default-font-family",
88
+ "context": "Text"
89
+ },
90
+ {
91
+ "token": "regular-font-weight",
92
+ "context": "Text"
93
+ },
94
+ {
95
+ "token": "default-font-style",
96
+ "context": "Text"
97
+ },
98
+ {
99
+ "token": "font-size-100",
100
+ "context": "Text"
101
+ },
102
+ {
103
+ "token": "line-height-100",
104
+ "context": "Text"
105
+ },
106
+ {
107
+ "token": "cjk-line-height-100",
108
+ "context": "Text"
109
+ }
110
+ ]
33
111
  }
@@ -42,5 +42,111 @@
42
42
  },
43
43
  "lifecycle": {
44
44
  "introduced": "1.0.0-draft"
45
- }
45
+ },
46
+ "tokenBindings": [
47
+ {
48
+ "token": "heading-sans-serif-font-family",
49
+ "context": "Title"
50
+ },
51
+ {
52
+ "token": "heading-sans-serif-font-weight",
53
+ "context": "Title"
54
+ },
55
+ {
56
+ "token": "heading-sans-serif-font-style",
57
+ "context": "Title"
58
+ },
59
+ {
60
+ "token": "alert-dialog-title-font-size",
61
+ "context": "Title"
62
+ },
63
+ {
64
+ "token": "heading-line-height",
65
+ "context": "Title"
66
+ },
67
+ {
68
+ "token": "heading-color",
69
+ "context": "Title"
70
+ },
71
+ {
72
+ "token": "body-sans-serif-font-family",
73
+ "context": "Description"
74
+ },
75
+ {
76
+ "token": "body-sans-serif-font-weight",
77
+ "context": "Description"
78
+ },
79
+ {
80
+ "token": "body-sans-serif-font-style",
81
+ "context": "Description"
82
+ },
83
+ {
84
+ "token": "alert-dialog-body-font-size",
85
+ "context": "Description"
86
+ },
87
+ {
88
+ "token": "line-height-200",
89
+ "context": "Description"
90
+ },
91
+ {
92
+ "token": "body-color",
93
+ "context": "Description"
94
+ },
95
+ {
96
+ "token": "alert-dialog-maximum-width",
97
+ "context": "Maximum width"
98
+ },
99
+ {
100
+ "token": "alert-dialog-minimum-width",
101
+ "context": "Minimum width"
102
+ },
103
+ {
104
+ "token": "corner-radius-extra-large-default",
105
+ "context": "Rounding"
106
+ },
107
+ {
108
+ "token": "spacing-500",
109
+ "context": "Spacing (edge to content)"
110
+ },
111
+ {
112
+ "token": "spacing-400",
113
+ "context": "Spacing (edge to content)"
114
+ },
115
+ {
116
+ "token": "alert-dialog-top-to-alert-icon",
117
+ "context": "Icon asset (error and warning variants)"
118
+ },
119
+ {
120
+ "token": "spacing-300",
121
+ "context": "Spacing (title to description)"
122
+ },
123
+ {
124
+ "token": "workflow-icon-size-100",
125
+ "context": "Icon (error and warning variants)"
126
+ },
127
+ {
128
+ "token": "spacing-100",
129
+ "context": "Minimum spacing (title to icon)"
130
+ },
131
+ {
132
+ "token": "background-color-layer2",
133
+ "context": "Background"
134
+ },
135
+ {
136
+ "token": "overlay-color",
137
+ "context": "Overlay"
138
+ },
139
+ {
140
+ "token": "overlay-opacity",
141
+ "context": "Overlay"
142
+ },
143
+ {
144
+ "token": "notice-visual-color",
145
+ "context": "Icon (warning variant)"
146
+ },
147
+ {
148
+ "token": "negative-visual-color",
149
+ "context": "Icon (error variant)"
150
+ }
151
+ ]
46
152
  }