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