@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,117 +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/color-wheel.json",
4
- "specVersion": "1.0.0-draft",
5
- "name": "color-wheel",
6
- "displayName": "Color wheel",
7
- "description": "A color wheel lets users visually change an individual channel of a color on a circular track.",
8
- "meta": {
9
- "category": "inputs",
10
- "documentationUrl": "https://spectrum.adobe.com/page/color-wheel/"
11
- },
12
- "options": {
13
- "background": {
14
- "type": "string",
15
- "description": "This will vary depending on implementation."
16
- },
17
- "value": {
18
- "type": "number",
19
- "description": "Number (from minValue to maxValue)"
20
- },
21
- "minValue": {
22
- "type": "number",
23
- "default": 0
24
- },
25
- "maxValue": {
26
- "type": "number",
27
- "default": 360
28
- },
29
- "step": {
30
- "type": "number",
31
- "default": 1
32
- },
33
- "size": {
34
- "type": "number",
35
- "default": 192,
36
- "description": "units: px"
37
- },
38
- "isDisabled": {
39
- "type": "boolean",
40
- "default": false
41
- }
42
- },
43
- "states": [
44
- {
45
- "name": "hover",
46
- "trigger": "interaction"
47
- },
48
- {
49
- "name": "down",
50
- "trigger": "interaction"
51
- },
52
- {
53
- "name": "keyboard-focus",
54
- "trigger": "interaction"
55
- }
56
- ],
57
- "lifecycle": {
58
- "introduced": "1.0.0-draft"
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
- ],
94
- "accessibility": {
95
- "role": "slider",
96
- "intents": ["choose"],
97
- "focusable": true,
98
- "keyboardIntents": ["increment", "decrement"],
99
- "wcag": [
100
- {
101
- "criterion": "1.3.1",
102
- "level": "A",
103
- "title": "Info and Relationships"
104
- },
105
- {
106
- "criterion": "2.1.1",
107
- "level": "A",
108
- "title": "Keyboard"
109
- },
110
- {
111
- "criterion": "4.1.2",
112
- "level": "A",
113
- "title": "Name, Role, Value"
114
- }
115
- ]
116
- }
117
- }
@@ -1,543 +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/combo-box.json",
4
- "specVersion": "1.0.0-draft",
5
- "name": "combo-box",
6
- "displayName": "Combo box",
7
- "description": "Combo boxes combine a text entry with a picker menu, allowing users to filter longer lists to only the selections matching a query.",
8
- "meta": {
9
- "category": "inputs",
10
- "documentationUrl": "https://spectrum.adobe.com/page/combo-box/"
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
- "value": "in line"
28
- }
29
- ]
30
- },
31
- "value": {
32
- "type": "string"
33
- },
34
- "width": {
35
- "type": "number"
36
- },
37
- "size": {
38
- "type": "string",
39
- "default": "m",
40
- "values": [
41
- {
42
- "value": "s"
43
- },
44
- {
45
- "value": "m"
46
- },
47
- {
48
- "value": "l"
49
- },
50
- {
51
- "value": "xl"
52
- }
53
- ]
54
- },
55
- "isRequired": {
56
- "type": "boolean",
57
- "default": false
58
- },
59
- "necessityIndicator": {
60
- "type": "string",
61
- "default": "icon",
62
- "values": [
63
- {
64
- "value": "text"
65
- },
66
- {
67
- "value": "icon"
68
- }
69
- ]
70
- },
71
- "hasAutocomplete": {
72
- "type": "boolean",
73
- "default": false
74
- },
75
- "menuTrigger": {
76
- "type": "string",
77
- "default": "input",
78
- "values": [
79
- {
80
- "value": "input"
81
- },
82
- {
83
- "value": "focus"
84
- },
85
- {
86
- "value": "manual"
87
- }
88
- ]
89
- },
90
- "isError": {
91
- "type": "boolean",
92
- "default": false
93
- },
94
- "isDisabled": {
95
- "type": "boolean",
96
- "default": false
97
- },
98
- "isReadOnly": {
99
- "type": "boolean",
100
- "default": false
101
- },
102
- "description": {
103
- "type": "string"
104
- },
105
- "errorMessage": {
106
- "type": "string"
107
- }
108
- },
109
- "states": [
110
- {
111
- "name": "hover-(text-area)",
112
- "trigger": "prop"
113
- },
114
- {
115
- "name": "hover-(button-area)",
116
- "trigger": "prop"
117
- },
118
- {
119
- "name": "focus-+-hover",
120
- "trigger": "prop"
121
- },
122
- {
123
- "name": "focus-+-not-hover",
124
- "trigger": "prop"
125
- },
126
- {
127
- "name": "keyboard-focus",
128
- "trigger": "interaction"
129
- }
130
- ],
131
- "lifecycle": {
132
- "introduced": "1.0.0-draft"
133
- },
134
- "tokenBindings": [
135
- {
136
- "token": "combo-box-visual-to-field-button-quiet",
137
- "context": "S1 Spacing (alert icon/progress circle to field button)"
138
- },
139
- {
140
- "token": "component-top-to-text-300",
141
- "context": "S2 Leading icon (top/bottom edge to leading icon) position: inline"
142
- },
143
- {
144
- "token": "component-top-to-workflow-icon-400",
145
- "context": "S2 Leading icon (top/bottom edge to leading icon) position: inline"
146
- },
147
- {
148
- "token": "component-padding-vertical-200",
149
- "context": "S2 Spacing (top/bottom edge to text: inline)"
150
- },
151
- {
152
- "token": "component-padding-vertical-300",
153
- "context": "S2 Spacing (top/bottom edge to text: inline)"
154
- },
155
- {
156
- "token": "component-top-to-text-50",
157
- "context": "S2 Spacing (top/bottom edge to text: inline)"
158
- },
159
- {
160
- "token": "component-top-to-text-100",
161
- "context": "S2 Spacing (top/bottom edge to text: inline)"
162
- },
163
- {
164
- "token": "field-default-width-small",
165
- "context": "Width (default)"
166
- },
167
- {
168
- "token": "field-default-width-medium",
169
- "context": "Width (default)"
170
- },
171
- {
172
- "token": "field-default-width-large",
173
- "context": "Width (default)"
174
- },
175
- {
176
- "token": "field-default-width-extra-large",
177
- "context": "Width (default)"
178
- },
179
- {
180
- "token": "combo-box-minimum-width-multiplier",
181
- "context": "Width (minimum)"
182
- },
183
- {
184
- "token": "component-height-75",
185
- "context": "Height"
186
- },
187
- {
188
- "token": "component-height-100",
189
- "context": "Height"
190
- },
191
- {
192
- "token": "component-height-200",
193
- "context": "Height"
194
- },
195
- {
196
- "token": "component-height-300",
197
- "context": "Height"
198
- },
199
- {
200
- "token": "corner-radius-medium-size-small",
201
- "context": "Rounding"
202
- },
203
- {
204
- "token": "corner-radius-medium-size-medium",
205
- "context": "Rounding"
206
- },
207
- {
208
- "token": "corner-radius-medium-size-large",
209
- "context": "Rounding"
210
- },
211
- {
212
- "token": "corner-radius-medium-size-extra-large",
213
- "context": "Rounding"
214
- },
215
- {
216
- "token": "component-edge-to-text-75",
217
- "context": "Spacing (start/end edge to value)"
218
- },
219
- {
220
- "token": "component-edge-to-text-100",
221
- "context": "Spacing (start/end edge to value)"
222
- },
223
- {
224
- "token": "component-edge-to-text-200",
225
- "context": "Spacing (start/end edge to value)"
226
- },
227
- {
228
- "token": "component-edge-to-text-300",
229
- "context": "Spacing (start/end edge to value)"
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": "text-to-visual-75",
249
- "context": "Spacing (prefix to value/placeholder)"
250
- },
251
- {
252
- "token": "text-to-visual-100",
253
- "context": "Spacing (prefix to value/placeholder)"
254
- },
255
- {
256
- "token": "text-to-visual-200",
257
- "context": "Spacing (prefix to value/placeholder)"
258
- },
259
- {
260
- "token": "text-to-visual-300",
261
- "context": "Spacing (prefix to value/placeholder)"
262
- },
263
- {
264
- "token": "border-width-200",
265
- "context": "Border"
266
- },
267
- {
268
- "token": "focus-indicator-thickness",
269
- "context": "Focus indicator"
270
- },
271
- {
272
- "token": "focus-indicator-gap",
273
- "context": "Focus indicator"
274
- },
275
- {
276
- "token": "combo-box-visual-to-field-button",
277
- "context": "Spacing (alert icon/in-field progress circle to field button)"
278
- },
279
- {
280
- "token": "component-top-to-workflow-icon-75",
281
- "context": "Spacing (top/bottom edge to alert icon)"
282
- },
283
- {
284
- "token": "component-top-to-workflow-icon-100",
285
- "context": "Spacing (top/bottom edge to alert icon)"
286
- },
287
- {
288
- "token": "component-top-to-workflow-icon-200",
289
- "context": "Spacing (top/bottom edge to alert icon)"
290
- },
291
- {
292
- "token": "component-top-to-workflow-icon-300",
293
- "context": "Spacing (top/bottom edge to alert icon)"
294
- },
295
- {
296
- "token": "field-edge-to-alert-icon-small",
297
- "context": "Leading icon (leading icon to end edge)"
298
- },
299
- {
300
- "token": "field-edge-to-alert-icon-medium",
301
- "context": "Leading icon (leading icon to end edge)"
302
- },
303
- {
304
- "token": "field-edge-to-alert-icon-large",
305
- "context": "Leading icon (leading icon to end edge)"
306
- },
307
- {
308
- "token": "field-edge-to-alert-icon-extra-large",
309
- "context": "Leading icon (leading icon to end edge)"
310
- },
311
- {
312
- "token": "field-label-to-component",
313
- "context": "Spacing (field label to combo box)"
314
- },
315
- {
316
- "token": "component-to-menu-small",
317
- "context": "Spacing (component to menu)"
318
- },
319
- {
320
- "token": "component-to-menu-medium",
321
- "context": "Spacing (component to menu)"
322
- },
323
- {
324
- "token": "component-to-menu-large",
325
- "context": "Spacing (component to menu)"
326
- },
327
- {
328
- "token": "component-to-menu-extra-large",
329
- "context": "Spacing (component to menu)"
330
- },
331
- {
332
- "token": "help-text-to-component",
333
- "context": "Spacing (combo box to help text)"
334
- },
335
- {
336
- "token": "in-field-progress-circle",
337
- "context": "In-field progress circle"
338
- },
339
- {
340
- "token": "field-top-to-progress-circle-small",
341
- "context": "Spacing (top/bottom edge to in-field progress circle icon)"
342
- },
343
- {
344
- "token": "field-top-to-progress-circle-medium",
345
- "context": "Spacing (top/bottom edge to in-field progress circle icon)"
346
- },
347
- {
348
- "token": "field-top-to-progress-circle-large",
349
- "context": "Spacing (top/bottom edge to in-field progress circle icon)"
350
- },
351
- {
352
- "token": "field-top-to-progress-circle-extra-large",
353
- "context": "Spacing (top/bottom edge to in-field progress circle icon)"
354
- },
355
- {
356
- "token": "gray-25",
357
- "context": "Background and border"
358
- },
359
- {
360
- "token": "gray-300",
361
- "context": "Background and border"
362
- },
363
- {
364
- "token": "gray-400",
365
- "context": "Background and border"
366
- },
367
- {
368
- "token": "gray-900",
369
- "context": "Background and border"
370
- },
371
- {
372
- "token": "gray-800",
373
- "context": "Background and border"
374
- },
375
- {
376
- "token": "neutral-subdued-content-color-default",
377
- "context": "Background and border"
378
- },
379
- {
380
- "token": "negative-border-color-default",
381
- "context": "Border (error)"
382
- },
383
- {
384
- "token": "negative-border-color-hover",
385
- "context": "Border (error)"
386
- },
387
- {
388
- "token": "negative-border-color-focus-hover",
389
- "context": "Border (error)"
390
- },
391
- {
392
- "token": "negative-border-color-focus",
393
- "context": "Border (error)"
394
- },
395
- {
396
- "token": "negative-border-color-key-focus",
397
- "context": "Border (error)"
398
- },
399
- {
400
- "token": "neutral-content-color-default",
401
- "context": "Value"
402
- },
403
- {
404
- "token": "neutral-content-color-hover",
405
- "context": "Value"
406
- },
407
- {
408
- "token": "neutral-content-color-focus-hover",
409
- "context": "Value"
410
- },
411
- {
412
- "token": "neutral-content-color-focus",
413
- "context": "Value"
414
- },
415
- {
416
- "token": "neutral-content-color-key-focus",
417
- "context": "Value"
418
- },
419
- {
420
- "token": "negative-visual-color",
421
- "context": "Alert icon"
422
- },
423
- {
424
- "token": "disabled-content-color",
425
- "context": "Disabled"
426
- },
427
- {
428
- "token": "disabled-border-color",
429
- "context": "Disabled"
430
- },
431
- {
432
- "token": "disabled-background-color",
433
- "context": "Disabled"
434
- },
435
- {
436
- "token": "focus-indicator-color",
437
- "context": "Focus ring"
438
- },
439
- {
440
- "token": "default-font-family",
441
- "context": "Value"
442
- },
443
- {
444
- "token": "regular-font-weight",
445
- "context": "Value"
446
- },
447
- {
448
- "token": "default-font-style",
449
- "context": "Value"
450
- },
451
- {
452
- "token": "component-s-regular",
453
- "context": "Value"
454
- },
455
- {
456
- "token": "component-m-regular",
457
- "context": "Value"
458
- },
459
- {
460
- "token": "component-l-regular",
461
- "context": "Value"
462
- },
463
- {
464
- "token": "component-xl-regular",
465
- "context": "Value"
466
- },
467
- {
468
- "token": "line-height-font-size-75",
469
- "context": "Value"
470
- },
471
- {
472
- "token": "line-height-font-size-100",
473
- "context": "Value"
474
- },
475
- {
476
- "token": "line-height-font-size-200",
477
- "context": "Value"
478
- },
479
- {
480
- "token": "line-height-font-size-300",
481
- "context": "Value"
482
- },
483
- {
484
- "token": "cjk-line-height-100",
485
- "context": "Value"
486
- },
487
- {
488
- "token": "medium-font-weight",
489
- "context": "Prefix"
490
- },
491
- {
492
- "token": "component-s-medium",
493
- "context": "Prefix"
494
- },
495
- {
496
- "token": "component-m-medium",
497
- "context": "Prefix"
498
- },
499
- {
500
- "token": "component-l-medium",
501
- "context": "Prefix"
502
- },
503
- {
504
- "token": "component-xl-medium",
505
- "context": "Prefix"
506
- },
507
- {
508
- "token": "field-label-top-to-asterisk-large",
509
- "context": "Spacing (top/bottom edge to required)"
510
- },
511
- {
512
- "token": "field-label-top-to-asterisk-extra-large",
513
- "context": "Spacing (top/bottom edge to required)"
514
- },
515
- {
516
- "token": "gray-600",
517
- "context": "Label (populated true/false)"
518
- }
519
- ],
520
- "accessibility": {
521
- "role": "combobox",
522
- "intents": ["input", "select", "expand"],
523
- "focusable": true,
524
- "keyboardIntents": ["expand", "collapse", "navigate-options"],
525
- "wcag": [
526
- {
527
- "criterion": "1.3.1",
528
- "level": "A",
529
- "title": "Info and Relationships"
530
- },
531
- {
532
- "criterion": "2.1.1",
533
- "level": "A",
534
- "title": "Keyboard"
535
- },
536
- {
537
- "criterion": "4.1.2",
538
- "level": "A",
539
- "title": "Name, Role, Value"
540
- }
541
- ]
542
- }
543
- }