@adobe/design-data-spec 1.5.0 → 2.1.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 (134) hide show
  1. package/conformance/invalid/SPEC-009/expected-errors.json +1 -1
  2. package/conformance/invalid/SPEC-018/dataset.json +8 -1
  3. package/conformance/invalid/SPEC-034/expected-errors.json +1 -1
  4. package/conformance/invalid/SPEC-035/expected-errors.json +1 -1
  5. package/conformance/invalid/SPEC-044/empty-optional-dir/components/.gitkeep +0 -0
  6. package/conformance/invalid/SPEC-044/empty-optional-dir/expected-errors.json +10 -0
  7. package/conformance/invalid/SPEC-044/empty-optional-dir/tokens/base.tokens.json +1 -0
  8. package/conformance/invalid/SPEC-044/missing-tokens/expected-errors.json +10 -0
  9. package/conformance/valid/SPEC-044/components/button.json +9 -0
  10. package/conformance/valid/SPEC-044/expected-errors.json +4 -0
  11. package/conformance/valid/SPEC-044/tokens/base.tokens.json +1 -0
  12. package/package.json +6 -6
  13. package/rules/rules.yaml +27 -7
  14. package/schemas/component.schema.json +1 -1
  15. package/schemas/dataset.schema.json +39 -0
  16. package/schemas/manifest.schema.json +1 -23
  17. package/schemas/mode-set.schema.json +4 -0
  18. package/schemas/platform-extension.json +79 -0
  19. package/schemas/registry-value.json +230 -0
  20. package/schemas/token.schema.json +1 -1
  21. package/spec/agent-surface.md +16 -14
  22. package/spec/anatomy-format.md +1 -1
  23. package/spec/cascade.md +1 -1
  24. package/spec/dataset-layout.md +72 -0
  25. package/spec/index.md +7 -5
  26. package/spec/mode-sets.md +1 -1
  27. package/spec/registry.md +6 -8
  28. package/spec/taxonomy.md +32 -32
  29. package/spec/token-format.md +11 -3
  30. package/components/accordion.json +0 -557
  31. package/components/action-bar.json +0 -214
  32. package/components/action-button.json +0 -522
  33. package/components/action-group.json +0 -134
  34. package/components/alert-banner.json +0 -134
  35. package/components/alert-dialog.json +0 -180
  36. package/components/avatar-group.json +0 -166
  37. package/components/avatar.json +0 -246
  38. package/components/badge.json +0 -594
  39. package/components/body.json +0 -54
  40. package/components/bottom-navigation-android.json +0 -72
  41. package/components/breadcrumbs.json +0 -307
  42. package/components/button-group.json +0 -86
  43. package/components/button.json +0 -586
  44. package/components/calendar.json +0 -133
  45. package/components/cards.json +0 -541
  46. package/components/checkbox-group.json +0 -91
  47. package/components/checkbox.json +0 -339
  48. package/components/close-button.json +0 -208
  49. package/components/coach-indicator.json +0 -105
  50. package/components/coach-mark.json +0 -169
  51. package/components/code.json +0 -44
  52. package/components/color-area.json +0 -138
  53. package/components/color-handle.json +0 -111
  54. package/components/color-loupe.json +0 -77
  55. package/components/color-slider.json +0 -165
  56. package/components/color-wheel.json +0 -117
  57. package/components/combo-box.json +0 -543
  58. package/components/contextual-help.json +0 -230
  59. package/components/date-picker.json +0 -471
  60. package/components/detail.json +0 -53
  61. package/components/divider.json +0 -93
  62. package/components/drop-zone.json +0 -238
  63. package/components/field-label.json +0 -219
  64. package/components/heading.json +0 -68
  65. package/components/help-text.json +0 -209
  66. package/components/illustrated-message.json +0 -175
  67. package/components/in-field-progress-button.json +0 -88
  68. package/components/in-field-progress-circle.json +0 -116
  69. package/components/in-line-alert.json +0 -233
  70. package/components/link.json +0 -167
  71. package/components/list-view.json +0 -382
  72. package/components/menu.json +0 -597
  73. package/components/meter.json +0 -199
  74. package/components/number-field.json +0 -518
  75. package/components/opacity-checkerboard.json +0 -69
  76. package/components/picker.json +0 -579
  77. package/components/popover.json +0 -174
  78. package/components/progress-bar.json +0 -229
  79. package/components/progress-circle.json +0 -132
  80. package/components/radio-button.json +0 -308
  81. package/components/radio-group.json +0 -113
  82. package/components/rating.json +0 -168
  83. package/components/scroll-zoom-bar.json +0 -82
  84. package/components/search-field.json +0 -346
  85. package/components/segmented-control.json +0 -248
  86. package/components/select-box.json +0 -272
  87. package/components/side-navigation.json +0 -320
  88. package/components/slider.json +0 -407
  89. package/components/standard-dialog.json +0 -179
  90. package/components/standard-panel.json +0 -83
  91. package/components/status-light.json +0 -334
  92. package/components/steplist.json +0 -294
  93. package/components/swatch-group.json +0 -114
  94. package/components/swatch.json +0 -240
  95. package/components/switch.json +0 -336
  96. package/components/tab-bar-ios.json +0 -72
  97. package/components/table.json +0 -435
  98. package/components/tabs.json +0 -253
  99. package/components/tag-field.json +0 -243
  100. package/components/tag-group.json +0 -87
  101. package/components/tag.json +0 -393
  102. package/components/takeover-dialog.json +0 -117
  103. package/components/text-area.json +0 -555
  104. package/components/text-field.json +0 -555
  105. package/components/thumbnail.json +0 -149
  106. package/components/title.json +0 -91
  107. package/components/toast.json +0 -156
  108. package/components/tooltip.json +0 -179
  109. package/components/tray.json +0 -32
  110. package/components/tree-view.json +0 -393
  111. package/fields/alignment.json +0 -15
  112. package/fields/anatomy.json +0 -15
  113. package/fields/color-scheme.json +0 -15
  114. package/fields/colorFamily.json +0 -15
  115. package/fields/component.json +0 -15
  116. package/fields/contrast.json +0 -15
  117. package/fields/density.json +0 -15
  118. package/fields/easing.json +0 -15
  119. package/fields/family.json +0 -15
  120. package/fields/motionRole.json +0 -15
  121. package/fields/object.json +0 -15
  122. package/fields/orientation.json +0 -15
  123. package/fields/position.json +0 -15
  124. package/fields/property.json +0 -15
  125. package/fields/scale.json +0 -15
  126. package/fields/scaleIndex.json +0 -15
  127. package/fields/shape.json +0 -15
  128. package/fields/size.json +0 -15
  129. package/fields/state.json +0 -15
  130. package/fields/structure.json +0 -15
  131. package/fields/style.json +0 -15
  132. package/fields/substructure.json +0 -15
  133. package/fields/variant.json +0 -15
  134. package/fields/weight.json +0 -15
@@ -1,69 +0,0 @@
1
- {
2
- "$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/component.schema.json",
3
- "$id": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/components/opacity-checkerboard.json",
4
- "specVersion": "1.0.0-draft",
5
- "name": "opacity-checkerboard",
6
- "displayName": "Opacity Checkerboard",
7
- "description": "Opacity checkerboards provide a visual pattern background used in color swatches and UI elements to indicate transparency or when no color is selected.",
8
- "meta": {
9
- "category": "status",
10
- "documentationUrl": "https://spectrum.adobe.com/page/opacity-checkerboard/"
11
- },
12
- "options": {
13
- "verticalSize": {
14
- "type": "number",
15
- "values": [
16
- {
17
- "value": 16
18
- },
19
- {
20
- "value": 32
21
- },
22
- {
23
- "value": 64
24
- },
25
- {
26
- "value": 128
27
- },
28
- {
29
- "value": 256
30
- }
31
- ]
32
- },
33
- "horizontalSize": {
34
- "type": "number",
35
- "values": [
36
- {
37
- "value": 24
38
- },
39
- {
40
- "value": 40
41
- }
42
- ]
43
- }
44
- },
45
- "lifecycle": {
46
- "introduced": "1.0.0-draft"
47
- },
48
- "tokenBindings": [
49
- {
50
- "token": "opacity-checkerboard-square-size-small",
51
- "context": "Square size"
52
- },
53
- {
54
- "token": "opacity-checkerboard-square-size-medium",
55
- "context": "Square size"
56
- },
57
- {
58
- "token": "opacity-checkerboard-square-light",
59
- "context": "Square"
60
- },
61
- {
62
- "token": "opacity-checkerboard-square-dark",
63
- "context": "Square"
64
- }
65
- ],
66
- "accessibility": {
67
- "focusable": false
68
- }
69
- }
@@ -1,579 +0,0 @@
1
- {
2
- "$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/component.schema.json",
3
- "$id": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/components/picker.json",
4
- "specVersion": "1.0.0-draft",
5
- "name": "picker",
6
- "displayName": "Picker",
7
- "description": "Pickers (sometimes known as \"dropdowns\" or \"selects\") allow users to choose from a list of options in a limited space. The list of options can change based on the context.",
8
- "meta": {
9
- "category": "inputs",
10
- "documentationUrl": "https://spectrum.adobe.com/page/picker/"
11
- },
12
- "options": {
13
- "label": {
14
- "type": "string"
15
- },
16
- "labelPosition": {
17
- "type": "string",
18
- "default": "top",
19
- "values": [
20
- {
21
- "value": "top"
22
- },
23
- {
24
- "value": "side"
25
- }
26
- ]
27
- },
28
- "placeholder": {
29
- "type": "string"
30
- },
31
- "value": {
32
- "type": "string"
33
- },
34
- "width": {
35
- "type": "number",
36
- "description": "Not applicable to quiet picker."
37
- },
38
- "size": {
39
- "type": "string",
40
- "default": "m",
41
- "values": [
42
- {
43
- "value": "s"
44
- },
45
- {
46
- "value": "m"
47
- },
48
- {
49
- "value": "l"
50
- },
51
- {
52
- "value": "xl"
53
- }
54
- ]
55
- },
56
- "isQuiet": {
57
- "type": "boolean",
58
- "default": false
59
- },
60
- "necessityIndicator": {
61
- "type": "string",
62
- "default": "icon",
63
- "values": [
64
- {
65
- "value": "text"
66
- },
67
- {
68
- "value": "icon"
69
- }
70
- ]
71
- },
72
- "isRequired": {
73
- "type": "boolean",
74
- "default": false
75
- },
76
- "menuContainer": {
77
- "type": "string",
78
- "default": "popover",
79
- "values": [
80
- {
81
- "value": "popover"
82
- },
83
- {
84
- "value": "tray"
85
- }
86
- ]
87
- },
88
- "isDisabled": {
89
- "type": "boolean",
90
- "default": false
91
- },
92
- "isError": {
93
- "type": "boolean",
94
- "default": false
95
- },
96
- "description": {
97
- "type": "string",
98
- "default": null
99
- },
100
- "errorMessage": {
101
- "type": "string",
102
- "default": null
103
- }
104
- },
105
- "states": [
106
- {
107
- "name": "hover",
108
- "trigger": "interaction"
109
- },
110
- {
111
- "name": "focus-+-hover",
112
- "trigger": "prop"
113
- },
114
- {
115
- "name": "focus-+-not-hover",
116
- "trigger": "prop"
117
- },
118
- {
119
- "name": "keyboard-focus",
120
- "trigger": "interaction"
121
- }
122
- ],
123
- "lifecycle": {
124
- "introduced": "1.0.0-draft"
125
- },
126
- "tokenBindings": [
127
- {
128
- "token": "field-default-width-small",
129
- "context": "Width (default)"
130
- },
131
- {
132
- "token": "field-default-width-medium",
133
- "context": "Width (default)"
134
- },
135
- {
136
- "token": "field-default-width-large",
137
- "context": "Width (default)"
138
- },
139
- {
140
- "token": "field-default-width-extra-large",
141
- "context": "Width (default)"
142
- },
143
- {
144
- "token": "picker-minimum-width-multiplier",
145
- "context": "Width (minimum)"
146
- },
147
- {
148
- "token": "component-height-75",
149
- "context": "Height"
150
- },
151
- {
152
- "token": "component-height-100",
153
- "context": "Height"
154
- },
155
- {
156
- "token": "component-height-200",
157
- "context": "Height"
158
- },
159
- {
160
- "token": "component-height-300",
161
- "context": "Height"
162
- },
163
- {
164
- "token": "corner-radius-medium-size-small",
165
- "context": "Rounding"
166
- },
167
- {
168
- "token": "corner-radius-medium-size-medium",
169
- "context": "Rounding"
170
- },
171
- {
172
- "token": "corner-radius-medium-size-large",
173
- "context": "Rounding"
174
- },
175
- {
176
- "token": "corner-radius-medium-size-extra-large",
177
- "context": "Rounding"
178
- },
179
- {
180
- "token": "component-edge-to-text-75",
181
- "context": "Spacing (start/end edge to value)"
182
- },
183
- {
184
- "token": "component-edge-to-text-100",
185
- "context": "Spacing (start/end edge to value)"
186
- },
187
- {
188
- "token": "component-edge-to-text-200",
189
- "context": "Spacing (start/end edge to value)"
190
- },
191
- {
192
- "token": "component-edge-to-text-300",
193
- "context": "Spacing (start/end edge to value)"
194
- },
195
- {
196
- "token": "field-edge-to-text-quiet",
197
- "context": "Spacing (start/end edge to value)"
198
- },
199
- {
200
- "token": "focus-indicator-thickness",
201
- "context": "Focus indicator"
202
- },
203
- {
204
- "token": "focus-indicator-gap",
205
- "context": "Focus indicator"
206
- },
207
- {
208
- "token": "component-size-difference-down",
209
- "context": "Component size (down)"
210
- },
211
- {
212
- "token": "component-size-width-ratio-down",
213
- "context": "Component size (down)"
214
- },
215
- {
216
- "token": "component-size-minimum-perspective-down",
217
- "context": "Component size (down)"
218
- },
219
- {
220
- "token": "workflow-icon-size-75",
221
- "context": "Prefix min-width"
222
- },
223
- {
224
- "token": "workflow-icon-size-100",
225
- "context": "Prefix min-width"
226
- },
227
- {
228
- "token": "workflow-icon-size-200",
229
- "context": "Prefix min-width"
230
- },
231
- {
232
- "token": "workflow-icon-size-300",
233
- "context": "Prefix min-width"
234
- },
235
- {
236
- "token": "picker-end-edge-to-disclosure-icon-quiet",
237
- "context": "Spacing (start/end edge to prefix)"
238
- },
239
- {
240
- "token": "text-to-visual-75",
241
- "context": "Spacing (prefix to value/placeholder)"
242
- },
243
- {
244
- "token": "text-to-visual-100",
245
- "context": "Spacing (prefix to value/placeholder)"
246
- },
247
- {
248
- "token": "text-to-visual-200",
249
- "context": "Spacing (prefix to value/placeholder)"
250
- },
251
- {
252
- "token": "text-to-visual-300",
253
- "context": "Spacing (prefix to value/placeholder)"
254
- },
255
- {
256
- "token": "chevron-icon-size-75",
257
- "context": "Chevron/disclosure icon"
258
- },
259
- {
260
- "token": "chevron-icon-size-100",
261
- "context": "Chevron/disclosure icon"
262
- },
263
- {
264
- "token": "chevron-icon-size-200",
265
- "context": "Chevron/disclosure icon"
266
- },
267
- {
268
- "token": "chevron-icon-size-300",
269
- "context": "Chevron/disclosure icon"
270
- },
271
- {
272
- "token": "field-top-to-disclosure-icon-75",
273
- "context": "Spacing (top/bottom to disclosure icon)"
274
- },
275
- {
276
- "token": "field-top-to-disclosure-icon-100",
277
- "context": "Spacing (top/bottom to disclosure icon)"
278
- },
279
- {
280
- "token": "field-top-to-disclosure-icon-200",
281
- "context": "Spacing (top/bottom to disclosure icon)"
282
- },
283
- {
284
- "token": "field-top-to-disclosure-icon-300",
285
- "context": "Spacing (top/bottom to disclosure icon)"
286
- },
287
- {
288
- "token": "field-edge-to-disclosure-icon-75",
289
- "context": "Spacing (end edge to disclosure icon)"
290
- },
291
- {
292
- "token": "field-edge-to-disclosure-icon-100",
293
- "context": "Spacing (end edge to disclosure icon)"
294
- },
295
- {
296
- "token": "field-edge-to-disclosure-icon-200",
297
- "context": "Spacing (end edge to disclosure icon)"
298
- },
299
- {
300
- "token": "field-edge-to-disclosure-icon-300",
301
- "context": "Spacing (end edge to disclosure icon)"
302
- },
303
- {
304
- "token": "field-edge-to-alert-icon-small",
305
- "context": "Leading icon (leading icon to end edge)"
306
- },
307
- {
308
- "token": "field-edge-to-alert-icon-medium",
309
- "context": "Leading icon (leading icon to end edge)"
310
- },
311
- {
312
- "token": "field-edge-to-alert-icon-large",
313
- "context": "Leading icon (leading icon to end edge)"
314
- },
315
- {
316
- "token": "field-edge-to-alert-icon-extra-large",
317
- "context": "Leading icon (leading icon to end edge)"
318
- },
319
- {
320
- "token": "component-top-to-workflow-icon-75",
321
- "context": "Spacing (top/bottom edge to icon)"
322
- },
323
- {
324
- "token": "component-top-to-workflow-icon-100",
325
- "context": "Spacing (top/bottom edge to icon)"
326
- },
327
- {
328
- "token": "component-top-to-workflow-icon-200",
329
- "context": "Spacing (top/bottom edge to icon)"
330
- },
331
- {
332
- "token": "component-top-to-workflow-icon-300",
333
- "context": "Spacing (top/bottom edge to icon)"
334
- },
335
- {
336
- "token": "picker-visual-to-disclosure-icon-small",
337
- "context": "Spacing (alert icon to disclosure icon)"
338
- },
339
- {
340
- "token": "picker-visual-to-disclosure-icon-medium",
341
- "context": "Spacing (alert icon to disclosure icon)"
342
- },
343
- {
344
- "token": "picker-visual-to-disclosure-icon-large",
345
- "context": "Spacing (alert icon to disclosure icon)"
346
- },
347
- {
348
- "token": "picker-visual-to-disclosure-icon-extra-large",
349
- "context": "Spacing (alert icon to disclosure icon)"
350
- },
351
- {
352
- "token": "field-label-to-component",
353
- "context": "Spacing (field label to picker)"
354
- },
355
- {
356
- "token": "field-label-to-component-quiet-small",
357
- "context": "Spacing (field label to picker)"
358
- },
359
- {
360
- "token": "field-label-to-component-quiet-medium",
361
- "context": "Spacing (field label to picker)"
362
- },
363
- {
364
- "token": "field-label-to-component-quiet-large",
365
- "context": "Spacing (field label to picker)"
366
- },
367
- {
368
- "token": "field-label-to-component-quiet-extra-large",
369
- "context": "Spacing (field label to picker)"
370
- },
371
- {
372
- "token": "component-to-menu-small",
373
- "context": "Spacing (component to menu)"
374
- },
375
- {
376
- "token": "component-to-menu-medium",
377
- "context": "Spacing (component to menu)"
378
- },
379
- {
380
- "token": "component-to-menu-large",
381
- "context": "Spacing (component to menu)"
382
- },
383
- {
384
- "token": "component-to-menu-extra-large",
385
- "context": "Spacing (component to menu)"
386
- },
387
- {
388
- "token": "help-text-to-component",
389
- "context": "Spacing (text area to help text)"
390
- },
391
- {
392
- "token": "field-top-to-progress-circle-small",
393
- "context": "Spacing (top/bottom edge to progress circle icon)"
394
- },
395
- {
396
- "token": "field-top-to-progress-circle-medium",
397
- "context": "Spacing (top/bottom edge to progress circle icon)"
398
- },
399
- {
400
- "token": "field-top-to-progress-circle-large",
401
- "context": "Spacing (top/bottom edge to progress circle icon)"
402
- },
403
- {
404
- "token": "field-top-to-progress-circle-extra-large",
405
- "context": "Spacing (top/bottom edge to progress circle icon)"
406
- },
407
- {
408
- "token": "gray-100",
409
- "context": "Background"
410
- },
411
- {
412
- "token": "gray-200",
413
- "context": "Background"
414
- },
415
- {
416
- "token": "negative-border-color-default",
417
- "context": "Border (error)"
418
- },
419
- {
420
- "token": "negative-border-color-hover",
421
- "context": "Border (error)"
422
- },
423
- {
424
- "token": "negative-border-color-down",
425
- "context": "Border (error)"
426
- },
427
- {
428
- "token": "negative-border-color-focus-hover",
429
- "context": "Border (error)"
430
- },
431
- {
432
- "token": "negative-border-color-focus",
433
- "context": "Border (error)"
434
- },
435
- {
436
- "token": "negative-border-color-key-focus",
437
- "context": "Border (error)"
438
- },
439
- {
440
- "token": "neutral-content-color-default",
441
- "context": "Value"
442
- },
443
- {
444
- "token": "neutral-content-color-hover",
445
- "context": "Value"
446
- },
447
- {
448
- "token": "neutral-content-color-down",
449
- "context": "Value"
450
- },
451
- {
452
- "token": "neutral-content-color-focus-hover",
453
- "context": "Value"
454
- },
455
- {
456
- "token": "neutral-content-color-focus",
457
- "context": "Value"
458
- },
459
- {
460
- "token": "neutral-content-color-key-focus",
461
- "context": "Value"
462
- },
463
- {
464
- "token": "neutral-subdued-content-color-default",
465
- "context": "Label"
466
- },
467
- {
468
- "token": "negative-visual-color",
469
- "context": "Alert icon"
470
- },
471
- {
472
- "token": "disabled-background-color",
473
- "context": "Disabled"
474
- },
475
- {
476
- "token": "disabled-content-color",
477
- "context": "Disabled"
478
- },
479
- {
480
- "token": "focus-indicator-color",
481
- "context": "Focus ring"
482
- },
483
- {
484
- "token": "gray-700",
485
- "context": "Prefix"
486
- },
487
- {
488
- "token": "default-font-family",
489
- "context": "Value"
490
- },
491
- {
492
- "token": "regular-font-weight",
493
- "context": "Value"
494
- },
495
- {
496
- "token": "default-font-style",
497
- "context": "Value"
498
- },
499
- {
500
- "token": "component-s-regular",
501
- "context": "Value"
502
- },
503
- {
504
- "token": "component-m-regular",
505
- "context": "Value"
506
- },
507
- {
508
- "token": "component-l-regular",
509
- "context": "Value"
510
- },
511
- {
512
- "token": "component-xl-regular",
513
- "context": "Value"
514
- },
515
- {
516
- "token": "line-height-font-size-75",
517
- "context": "Value"
518
- },
519
- {
520
- "token": "line-height-font-size-100",
521
- "context": "Value"
522
- },
523
- {
524
- "token": "line-height-font-size-200",
525
- "context": "Value"
526
- },
527
- {
528
- "token": "line-height-font-size-300",
529
- "context": "Value"
530
- },
531
- {
532
- "token": "cjk-line-height-100",
533
- "context": "Value"
534
- },
535
- {
536
- "token": "medium-font-weight",
537
- "context": "Prefix"
538
- },
539
- {
540
- "token": "component-s-medium",
541
- "context": "Prefix"
542
- },
543
- {
544
- "token": "component-m-medium",
545
- "context": "Prefix"
546
- },
547
- {
548
- "token": "component-l-medium",
549
- "context": "Prefix"
550
- },
551
- {
552
- "token": "component-xl-medium",
553
- "context": "Prefix"
554
- }
555
- ],
556
- "accessibility": {
557
- "role": "combobox",
558
- "intents": ["select", "expand"],
559
- "focusable": true,
560
- "keyboardIntents": ["expand", "collapse", "navigate-options"],
561
- "wcag": [
562
- {
563
- "criterion": "1.3.1",
564
- "level": "A",
565
- "title": "Info and Relationships"
566
- },
567
- {
568
- "criterion": "2.1.1",
569
- "level": "A",
570
- "title": "Keyboard"
571
- },
572
- {
573
- "criterion": "4.1.2",
574
- "level": "A",
575
- "title": "Name, Role, Value"
576
- }
577
- ]
578
- }
579
- }