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