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