@adobe/design-data-spec 0.4.0 → 0.6.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
@@ -157,5 +157,283 @@
157
157
  },
158
158
  "lifecycle": {
159
159
  "introduced": "1.0.0-draft"
160
- }
160
+ },
161
+ "tokenBindings": [
162
+ {
163
+ "token": "component-to-calendar-popover",
164
+ "context": "Spacing (open)"
165
+ },
166
+ {
167
+ "token": "single-calendar-popover-minimum-width",
168
+ "context": "Width (minimum)"
169
+ },
170
+ {
171
+ "token": "double-calendar-popover-minimum-width",
172
+ "context": "Width (minimum)"
173
+ },
174
+ {
175
+ "token": "single-calendar-popover-minimum-height",
176
+ "context": "Height (minimum)"
177
+ },
178
+ {
179
+ "token": "double-calendar-popover-minimum-height",
180
+ "context": "Height (minimum)"
181
+ },
182
+ {
183
+ "token": "corner-radius-700",
184
+ "context": "Corner rounding"
185
+ },
186
+ {
187
+ "token": "spacing-300",
188
+ "context": "Spacing (start/end edge to days) "
189
+ },
190
+ {
191
+ "token": "spacing-400",
192
+ "context": "Spacing (top/bottom edge to days) "
193
+ },
194
+ {
195
+ "token": "spacing-700",
196
+ "context": "Spacing (month + year to chevron) "
197
+ },
198
+ {
199
+ "token": "spacing-100",
200
+ "context": "Spacing (between week labels) "
201
+ },
202
+ {
203
+ "token": "current-day-indicator-size-100",
204
+ "context": "Current day indicator"
205
+ },
206
+ {
207
+ "token": "spacing-200",
208
+ "context": "Spacing (between week labels and days) "
209
+ },
210
+ {
211
+ "token": "range-border-dash-length",
212
+ "context": "Range fill stroke padding"
213
+ },
214
+ {
215
+ "token": "range-border-dash-gap",
216
+ "context": "Range fill stroke padding"
217
+ },
218
+ {
219
+ "token": "range-border-dash-thickness",
220
+ "context": "Range fill stroke padding"
221
+ },
222
+ {
223
+ "token": "blue-900",
224
+ "context": "Day values "
225
+ },
226
+ {
227
+ "token": "white",
228
+ "context": "Day values "
229
+ },
230
+ {
231
+ "token": "blue-1000",
232
+ "context": "Day values "
233
+ },
234
+ {
235
+ "token": "focus-indicator-color",
236
+ "context": "Day values "
237
+ },
238
+ {
239
+ "token": "neutral-content-color-default",
240
+ "context": "Day values "
241
+ },
242
+ {
243
+ "token": "gray-100",
244
+ "context": "Day values "
245
+ },
246
+ {
247
+ "token": "disabled-content-color",
248
+ "context": "Day values "
249
+ },
250
+ {
251
+ "token": "negative-background-color-default",
252
+ "context": "Day values "
253
+ },
254
+ {
255
+ "token": "negative-background-color-hover",
256
+ "context": "Day values "
257
+ },
258
+ {
259
+ "token": "neutral-content-color-hover",
260
+ "context": "Current day"
261
+ },
262
+ {
263
+ "token": "strikethrough-day-thickness",
264
+ "context": "Strikethrough day "
265
+ },
266
+ {
267
+ "token": "strikethrough-day-orientation",
268
+ "context": "Strikethrough day "
269
+ },
270
+ {
271
+ "token": "blue-subtle-background-color-default",
272
+ "context": "Range fill color "
273
+ },
274
+ {
275
+ "token": "gray-25",
276
+ "context": "Background and border "
277
+ },
278
+ {
279
+ "token": "neutral-content-color-focus-hover",
280
+ "context": "In field button colors "
281
+ },
282
+ {
283
+ "token": "neutral-content-color-focus",
284
+ "context": "In field button colors "
285
+ },
286
+ {
287
+ "token": "neutral-content-color-key-focus",
288
+ "context": "In field button colors "
289
+ },
290
+ {
291
+ "token": "disabled-color-content",
292
+ "context": "In field button colors "
293
+ },
294
+ {
295
+ "token": "gray-200",
296
+ "context": "In field button colors "
297
+ },
298
+ {
299
+ "token": "background-disabled-color",
300
+ "context": "In field button colors "
301
+ },
302
+ {
303
+ "token": "disabled-background-color",
304
+ "context": "Disabled"
305
+ },
306
+ {
307
+ "token": "default-font-family",
308
+ "context": "Label, value, help text, and error message"
309
+ },
310
+ {
311
+ "token": "regular-font-weight",
312
+ "context": "Label, value, help text, and error message"
313
+ },
314
+ {
315
+ "token": "default-font-style",
316
+ "context": "Label, value, help text, and error message"
317
+ },
318
+ {
319
+ "token": "font-size-100",
320
+ "context": "Label, value, help text, and error message"
321
+ },
322
+ {
323
+ "token": "line-height-100",
324
+ "context": "Label, value, help text, and error message"
325
+ },
326
+ {
327
+ "token": "cjk-line-height-100",
328
+ "context": "Label, value, help text, and error message"
329
+ },
330
+ {
331
+ "token": "date-picker-minimum-width",
332
+ "context": "Width (minimum)"
333
+ },
334
+ {
335
+ "token": "component-height-100",
336
+ "context": "Height"
337
+ },
338
+ {
339
+ "token": "corner-radius-medium-size-medium",
340
+ "context": "Corner rounding "
341
+ },
342
+ {
343
+ "token": "component-edge-to-text-100",
344
+ "context": "Spacing (start edge to value) "
345
+ },
346
+ {
347
+ "token": "date-picker-text-to-in-field-button",
348
+ "context": "Spacing (value to in-field button)"
349
+ },
350
+ {
351
+ "token": "component-top-to-text-100",
352
+ "context": "Spacing (top/bottom edge to label)"
353
+ },
354
+ {
355
+ "token": "component-bottom-to-text-100",
356
+ "context": "Spacing (top/bottom edge to label)"
357
+ },
358
+ {
359
+ "token": "border-width-200",
360
+ "context": "Border "
361
+ },
362
+ {
363
+ "token": "focus-indicator-thickness",
364
+ "context": "Keyboard focus indicator "
365
+ },
366
+ {
367
+ "token": "focus-indicator-gap",
368
+ "context": "Keyboard focus indicator "
369
+ },
370
+ {
371
+ "token": "spacing-50",
372
+ "context": "Individual value spacing "
373
+ },
374
+ {
375
+ "token": "segmented-text-field-gap",
376
+ "context": "Spacing between values"
377
+ },
378
+ {
379
+ "token": "segmented-text-field-rounding",
380
+ "context": "Focused value rounding "
381
+ },
382
+ {
383
+ "token": "date-picker-visual-to-field-button",
384
+ "context": "Icon spacing (error)"
385
+ },
386
+ {
387
+ "token": "workflow-icon-size-100",
388
+ "context": "Alert icon size "
389
+ },
390
+ {
391
+ "token": "date-field-minimum-width",
392
+ "context": "Width (minimum)"
393
+ },
394
+ {
395
+ "token": "date-field-text-to-visual",
396
+ "context": "Spacing (value to alert icon)"
397
+ },
398
+ {
399
+ "token": "time-field-minimum-width",
400
+ "context": "Width (minimum)"
401
+ },
402
+ {
403
+ "token": "time-field-text-to-visual",
404
+ "context": "Spacing (value to alert icon)"
405
+ },
406
+ {
407
+ "token": "component-top-to-workflow-icon-100",
408
+ "context": "Spacing (top/bottom edge to alert icon)"
409
+ },
410
+ {
411
+ "token": "date-picker-text-to-visual",
412
+ "context": "Spacing (value to alert icon)"
413
+ },
414
+ {
415
+ "token": "negative-visual-color",
416
+ "context": "Alert icon (error) color"
417
+ },
418
+ {
419
+ "token": "negative-content-color-default",
420
+ "context": "Error message (error) color"
421
+ },
422
+ {
423
+ "token": "neutral-subdued-content-color-default",
424
+ "context": "Help text color "
425
+ },
426
+ {
427
+ "token": "triple-calendar-popover-minimum-width",
428
+ "context": "Popover minimum width"
429
+ },
430
+ {
431
+ "token": "triple-calendar-popover-minimum-height",
432
+ "context": "Popover minimum width"
433
+ },
434
+ {
435
+ "token": "spacing-500",
436
+ "context": "Popover minimum width"
437
+ }
438
+ ]
161
439
  }
@@ -23,5 +23,51 @@
23
23
  },
24
24
  "lifecycle": {
25
25
  "introduced": "1.0.0-draft"
26
- }
26
+ },
27
+ "tokenBindings": [
28
+ {
29
+ "token": "divider-thickness-small",
30
+ "context": "Thickness"
31
+ },
32
+ {
33
+ "token": "divider-thickness-medium",
34
+ "context": "Thickness"
35
+ },
36
+ {
37
+ "token": "divider-thickness-large",
38
+ "context": "Thickness"
39
+ },
40
+ {
41
+ "token": "divider-horizontal-minimum-width",
42
+ "context": "Horizontal"
43
+ },
44
+ {
45
+ "token": "divider-vertical-minimum-height",
46
+ "context": "Horizontal"
47
+ },
48
+ {
49
+ "token": "gray-200",
50
+ "context": "Fill "
51
+ },
52
+ {
53
+ "token": "gray-800",
54
+ "context": "Fill "
55
+ },
56
+ {
57
+ "token": "transparent-white-200",
58
+ "context": "Fill (white)"
59
+ },
60
+ {
61
+ "token": "transparent-white-800",
62
+ "context": "Fill (white)"
63
+ },
64
+ {
65
+ "token": "transparent-black-200",
66
+ "context": "Fill (black)"
67
+ },
68
+ {
69
+ "token": "transparent-black-800",
70
+ "context": "Fill (black)"
71
+ }
72
+ ]
27
73
  }
@@ -41,5 +41,171 @@
41
41
  },
42
42
  "lifecycle": {
43
43
  "introduced": "1.0.0-draft"
44
- }
44
+ },
45
+ "tokenBindings": [
46
+ {
47
+ "token": "drop-zone-width",
48
+ "context": "Component width"
49
+ },
50
+ {
51
+ "token": "spacing-400",
52
+ "context": "Padding"
53
+ },
54
+ {
55
+ "token": "drop-zone-content-maximum-width",
56
+ "context": "Content width (maximum)"
57
+ },
58
+ {
59
+ "token": "border-width-200",
60
+ "context": "Border width and corner radius"
61
+ },
62
+ {
63
+ "token": "corner-radius-700",
64
+ "context": "Border width and corner radius"
65
+ },
66
+ {
67
+ "token": "drop-zone-border-dash-length",
68
+ "context": "Border width and corner radius"
69
+ },
70
+ {
71
+ "token": "drop-zone-border-dash-gap",
72
+ "context": "Border width and corner radius"
73
+ },
74
+ {
75
+ "token": "spacing-200",
76
+ "context": "Spacing (illustration to title area) "
77
+ },
78
+ {
79
+ "token": "spacing-75",
80
+ "context": "Spacing (title area to body area) "
81
+ },
82
+ {
83
+ "token": "spacing-300",
84
+ "context": "Spacing (body area to action) "
85
+ },
86
+ {
87
+ "token": "component-height-300",
88
+ "context": "Text area (filled, hover)"
89
+ },
90
+ {
91
+ "token": "component-edge-to-text-300",
92
+ "context": "Text area (filled, hover)"
93
+ },
94
+ {
95
+ "token": "component-top",
96
+ "context": "Text area (filled, hover)"
97
+ },
98
+ {
99
+ "token": "text-300",
100
+ "context": "Text area (filled, hover)"
101
+ },
102
+ {
103
+ "token": "component-bottom-to-text-300",
104
+ "context": "Text area (filled, hover)"
105
+ },
106
+ {
107
+ "token": "title-sans-serif-font-family",
108
+ "context": "Title area and body area"
109
+ },
110
+ {
111
+ "token": "title-sans-serif-font-weight",
112
+ "context": "Title area and body area"
113
+ },
114
+ {
115
+ "token": "title-sans-serif-font-style",
116
+ "context": "Title area and body area"
117
+ },
118
+ {
119
+ "token": "drop-zone-title-font-size",
120
+ "context": "Title area and body area"
121
+ },
122
+ {
123
+ "token": "drop-zone-cjk-title-font-size",
124
+ "context": "Title area and body area"
125
+ },
126
+ {
127
+ "token": "title-line-height",
128
+ "context": "Title area and body area"
129
+ },
130
+ {
131
+ "token": "body-sans-serif-font-family",
132
+ "context": "Title area and body area"
133
+ },
134
+ {
135
+ "token": "body-sans-serif-font-weight",
136
+ "context": "Title area and body area"
137
+ },
138
+ {
139
+ "token": "body-sans-serif-font-style",
140
+ "context": "Title area and body area"
141
+ },
142
+ {
143
+ "token": "drop-zone-body-font-size",
144
+ "context": "Title area and body area"
145
+ },
146
+ {
147
+ "token": "body-line-height",
148
+ "context": "Title area and body area"
149
+ },
150
+ {
151
+ "token": "sans-serif-font-family",
152
+ "context": "Title area and body area"
153
+ },
154
+ {
155
+ "token": "bold-font-weight",
156
+ "context": "Title area and body area"
157
+ },
158
+ {
159
+ "token": "default-font-size",
160
+ "context": "Title area and body area"
161
+ },
162
+ {
163
+ "token": "font-size-300",
164
+ "context": "Title area and body area"
165
+ },
166
+ {
167
+ "token": "line-height-100",
168
+ "context": "Title area and body area"
169
+ },
170
+ {
171
+ "token": "grey-300",
172
+ "context": "Border color"
173
+ },
174
+ {
175
+ "token": "neutral-content-color-default",
176
+ "context": "Illustration color"
177
+ },
178
+ {
179
+ "token": "accent-content-color",
180
+ "context": "Illustration color"
181
+ },
182
+ {
183
+ "token": "heading-color",
184
+ "context": "Title and body color"
185
+ },
186
+ {
187
+ "token": "body-color",
188
+ "context": "Title and body color"
189
+ },
190
+ {
191
+ "token": "accent-visual-color",
192
+ "context": "Border and background color (empty, hover)"
193
+ },
194
+ {
195
+ "token": "drop-zone-background-color",
196
+ "context": "Border and background color (empty, hover)"
197
+ },
198
+ {
199
+ "token": "drop-zone-background-color-opacity",
200
+ "context": "Border and background color (empty, hover)"
201
+ },
202
+ {
203
+ "token": "drop-zone-background-color-opacity-indicatored",
204
+ "context": "Border, background, and text area color (filled, hover)"
205
+ },
206
+ {
207
+ "token": "white",
208
+ "context": "Border, background, and text area color (filled, hover)"
209
+ }
210
+ ]
45
211
  }
@@ -39,5 +39,151 @@
39
39
  },
40
40
  "lifecycle": {
41
41
  "introduced": "1.0.0-draft"
42
- }
42
+ },
43
+ "tokenBindings": [
44
+ {
45
+ "token": "component-height-75",
46
+ "context": "Minimum height"
47
+ },
48
+ {
49
+ "token": "component-height-100",
50
+ "context": "Minimum height"
51
+ },
52
+ {
53
+ "token": "component-height-200",
54
+ "context": "Minimum height"
55
+ },
56
+ {
57
+ "token": "component-height-300",
58
+ "context": "Minimum height"
59
+ },
60
+ {
61
+ "token": "field-label-text-to-asterisk-small",
62
+ "context": "Spacing (label to asterisk icon)"
63
+ },
64
+ {
65
+ "token": "field-label-text-to-asterisk-medium",
66
+ "context": "Spacing (label to asterisk icon)"
67
+ },
68
+ {
69
+ "token": "field-label-text-to-asterisk-large",
70
+ "context": "Spacing (label to asterisk icon)"
71
+ },
72
+ {
73
+ "token": "field-label-text-to-asterisk-extra-large",
74
+ "context": "Spacing (label to asterisk icon)"
75
+ },
76
+ {
77
+ "token": "field-label-top-to-asterisk-small",
78
+ "context": "Spacing (top edge to asterisk icon)"
79
+ },
80
+ {
81
+ "token": "field-label-top-to-asterisk-medium",
82
+ "context": "Spacing (top edge to asterisk icon)"
83
+ },
84
+ {
85
+ "token": "field-label-top-to-asterisk-large",
86
+ "context": "Spacing (top edge to asterisk icon)"
87
+ },
88
+ {
89
+ "token": "field-label-top-to-asterisk-extra-large",
90
+ "context": "Spacing (top edge to asterisk icon)"
91
+ },
92
+ {
93
+ "token": "component-top-to-text-75",
94
+ "context": "Spacing (top/bottom edge to label)"
95
+ },
96
+ {
97
+ "token": "component-top-to-text-100",
98
+ "context": "Spacing (top/bottom edge to label)"
99
+ },
100
+ {
101
+ "token": "component-top-to-text-200",
102
+ "context": "Spacing (top/bottom edge to label)"
103
+ },
104
+ {
105
+ "token": "component-top-to-text-300",
106
+ "context": "Spacing (top/bottom edge to label)"
107
+ },
108
+ {
109
+ "token": "component-bottom-to-text-75",
110
+ "context": "Spacing (top/bottom edge to label)"
111
+ },
112
+ {
113
+ "token": "component-bottom-to-text-100",
114
+ "context": "Spacing (top/bottom edge to label)"
115
+ },
116
+ {
117
+ "token": "component-bottom-to-text-200",
118
+ "context": "Spacing (top/bottom edge to label)"
119
+ },
120
+ {
121
+ "token": "component-bottom-to-text-300",
122
+ "context": "Spacing (top/bottom edge to label)"
123
+ },
124
+ {
125
+ "token": "asterisk-icon-size-100",
126
+ "context": "Asterisk UI icon asset"
127
+ },
128
+ {
129
+ "token": "asterisk-icon-size-200",
130
+ "context": "Asterisk UI icon asset"
131
+ },
132
+ {
133
+ "token": "asterisk-icon-size-300",
134
+ "context": "Asterisk UI icon asset"
135
+ },
136
+ {
137
+ "token": "neutral-subdued-content-color-default",
138
+ "context": "Label and asterisk icon"
139
+ },
140
+ {
141
+ "token": "disabled-content-color",
142
+ "context": "Label and asterisk icon (disabled)"
143
+ },
144
+ {
145
+ "token": "white",
146
+ "context": "Label and asterisk icon (white)"
147
+ },
148
+ {
149
+ "token": "black",
150
+ "context": "Label and asterisk icon (black)"
151
+ },
152
+ {
153
+ "token": "default-font-family",
154
+ "context": "Label"
155
+ },
156
+ {
157
+ "token": "regular-font-weight",
158
+ "context": "Label"
159
+ },
160
+ {
161
+ "token": "default-font-style",
162
+ "context": "Label"
163
+ },
164
+ {
165
+ "token": "font-size-75",
166
+ "context": "Label"
167
+ },
168
+ {
169
+ "token": "font-size-100",
170
+ "context": "Label"
171
+ },
172
+ {
173
+ "token": "font-size-200",
174
+ "context": "Label"
175
+ },
176
+ {
177
+ "token": "font-size-300",
178
+ "context": "Label"
179
+ },
180
+ {
181
+ "token": "line-height-100",
182
+ "context": "Label"
183
+ },
184
+ {
185
+ "token": "cjk-line-height-100",
186
+ "context": "Label"
187
+ }
188
+ ]
43
189
  }