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