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