@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,393 +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/tag.json",
4
- "specVersion": "1.0.0-draft",
5
- "name": "tag",
6
- "displayName": "Tag",
7
- "description": "Tags allow users to categorize content. They can represent keywords or people, and are grouped to describe an item or a search request.",
8
- "meta": {
9
- "category": "navigation",
10
- "documentationUrl": "https://spectrum.adobe.com/page/tag/"
11
- },
12
- "options": {
13
- "label": {
14
- "type": "string"
15
- },
16
- "hasAvatar": {
17
- "type": "boolean",
18
- "default": false
19
- },
20
- "isRemovable": {
21
- "type": "boolean",
22
- "default": false
23
- },
24
- "isError": {
25
- "type": "boolean",
26
- "default": false
27
- },
28
- "isDisabled": {
29
- "type": "boolean",
30
- "default": false
31
- },
32
- "isReadOnly": {
33
- "type": "boolean",
34
- "default": false
35
- }
36
- },
37
- "states": [
38
- {
39
- "name": "hover",
40
- "trigger": "interaction"
41
- },
42
- {
43
- "name": "down",
44
- "trigger": "interaction"
45
- },
46
- {
47
- "name": "keyboard-focus",
48
- "trigger": "interaction"
49
- }
50
- ],
51
- "lifecycle": {
52
- "introduced": "1.0.0-draft"
53
- },
54
- "tokenBindings": [
55
- {
56
- "token": "avatar-size-50",
57
- "context": "Components"
58
- },
59
- {
60
- "token": "avatar-size-100",
61
- "context": "Components"
62
- },
63
- {
64
- "token": "thumbnail-size-50",
65
- "context": "Components"
66
- },
67
- {
68
- "token": "thumbnail-size-75",
69
- "context": "Components"
70
- },
71
- {
72
- "token": "thumbnail-size-100",
73
- "context": "Components"
74
- },
75
- {
76
- "token": "component-height-75",
77
- "context": "Minimum height"
78
- },
79
- {
80
- "token": "component-height-100",
81
- "context": "Minimum height"
82
- },
83
- {
84
- "token": "component-height-200",
85
- "context": "Minimum height"
86
- },
87
- {
88
- "token": "tag-minimum-width-small",
89
- "context": "Minimum width (with label)"
90
- },
91
- {
92
- "token": "tag-minimum-width-medium",
93
- "context": "Minimum width (with label)"
94
- },
95
- {
96
- "token": "tag-minimum-width-large",
97
- "context": "Minimum width (with label)"
98
- },
99
- {
100
- "token": "tag-maximum-width-multiplier",
101
- "context": "Maximum width (with label)"
102
- },
103
- {
104
- "token": "component-size-difference-down",
105
- "context": "Component size (down)"
106
- },
107
- {
108
- "token": "component-size-width-ratio-down",
109
- "context": "Component size (down)"
110
- },
111
- {
112
- "token": "component-size-minimum-perspective-down",
113
- "context": "Component size (down)"
114
- },
115
- {
116
- "token": "corner-radius-medium-size-small",
117
- "context": "Rounding"
118
- },
119
- {
120
- "token": "corner-radius-medium-size-medium",
121
- "context": "Rounding"
122
- },
123
- {
124
- "token": "corner-radius-medium-size-large",
125
- "context": "Rounding"
126
- },
127
- {
128
- "token": "workflow-icon-size-75",
129
- "context": "Icon"
130
- },
131
- {
132
- "token": "workflow-icon-size-100",
133
- "context": "Icon"
134
- },
135
- {
136
- "token": "workflow-icon-size-200",
137
- "context": "Icon"
138
- },
139
- {
140
- "token": "cross-icon-size-75",
141
- "context": "Cross icon"
142
- },
143
- {
144
- "token": "cross-icon-size-100",
145
- "context": "Cross icon"
146
- },
147
- {
148
- "token": "cross-icon-size-200",
149
- "context": "Cross icon"
150
- },
151
- {
152
- "token": "component-edge-to-visual-75",
153
- "context": "Spacing (start/end edges)"
154
- },
155
- {
156
- "token": "component-edge-to-visual-100",
157
- "context": "Spacing (start/end edges)"
158
- },
159
- {
160
- "token": "component-edge-to-visual-200",
161
- "context": "Spacing (start/end edges)"
162
- },
163
- {
164
- "token": "component-edge-to-text-75",
165
- "context": "Spacing (start/end edges)"
166
- },
167
- {
168
- "token": "component-edge-to-text-100",
169
- "context": "Spacing (start/end edges)"
170
- },
171
- {
172
- "token": "component-edge-to-text-200",
173
- "context": "Spacing (start/end edges)"
174
- },
175
- {
176
- "token": "text-to-visual-75",
177
- "context": "Spacing (visual to label)"
178
- },
179
- {
180
- "token": "text-to-visual-100",
181
- "context": "Spacing (visual to label)"
182
- },
183
- {
184
- "token": "text-to-visual-200",
185
- "context": "Spacing (visual to label)"
186
- },
187
- {
188
- "token": "tag-label-to-clear-icon-small",
189
- "context": "Spacing (label to cross icon)"
190
- },
191
- {
192
- "token": "tag-label-to-clear-icon-medium",
193
- "context": "Spacing (label to cross icon)"
194
- },
195
- {
196
- "token": "tag-label-to-clear-icon-large",
197
- "context": "Spacing (label to cross icon)"
198
- },
199
- {
200
- "token": "tag-edge-to-clear-icon-small",
201
- "context": "Spacing (cross icon to end edge)"
202
- },
203
- {
204
- "token": "tag-edge-to-clear-icon-medium",
205
- "context": "Spacing (cross icon to end edge)"
206
- },
207
- {
208
- "token": "tag-edge-to-clear-icon-large",
209
- "context": "Spacing (cross icon to end edge)"
210
- },
211
- {
212
- "token": "component-top-to-workflow-icon-75",
213
- "context": "Spacing (top/bottom edge to icon)"
214
- },
215
- {
216
- "token": "component-top-to-workflow-icon-100",
217
- "context": "Spacing (top/bottom edge to icon)"
218
- },
219
- {
220
- "token": "component-top-to-workflow-icon-200",
221
- "context": "Spacing (top/bottom edge to icon)"
222
- },
223
- {
224
- "token": "tag-top-to-avatar-small",
225
- "context": "Spacing (top/bottom edge to avatar)"
226
- },
227
- {
228
- "token": "tag-top-to-avatar-medium",
229
- "context": "Spacing (top/bottom edge to avatar)"
230
- },
231
- {
232
- "token": "tag-top-to-avatar-large",
233
- "context": "Spacing (top/bottom edge to avatar)"
234
- },
235
- {
236
- "token": "component-top-to-text-75",
237
- "context": "Spacing (top edge to label)"
238
- },
239
- {
240
- "token": "component-top-to-text-100",
241
- "context": "Spacing (top edge to label)"
242
- },
243
- {
244
- "token": "component-top-to-text-200",
245
- "context": "Spacing (top edge to label)"
246
- },
247
- {
248
- "token": "tag-top-to-cross-icon-small",
249
- "context": "Spacing (top/bottom edge to cross icon)"
250
- },
251
- {
252
- "token": "tag-top-to-cross-icon-medium",
253
- "context": "Spacing (top/bottom edge to cross icon)"
254
- },
255
- {
256
- "token": "tag-top-to-cross-icon-large",
257
- "context": "Spacing (top/bottom edge to cross icon)"
258
- },
259
- {
260
- "token": "focus-indicator-thickness",
261
- "context": "Focus indicator"
262
- },
263
- {
264
- "token": "focus-indicator-gap",
265
- "context": "Focus indicator"
266
- },
267
- {
268
- "token": "default-font-family",
269
- "context": "Label"
270
- },
271
- {
272
- "token": "medium-font-weight",
273
- "context": "Label"
274
- },
275
- {
276
- "token": "default-font-style",
277
- "context": "Label"
278
- },
279
- {
280
- "token": "font-size-75",
281
- "context": "Label"
282
- },
283
- {
284
- "token": "font-size-100",
285
- "context": "Label"
286
- },
287
- {
288
- "token": "font-size-200",
289
- "context": "Label"
290
- },
291
- {
292
- "token": "line-height-100",
293
- "context": "Label"
294
- },
295
- {
296
- "token": "cjk-line-height-100",
297
- "context": "Label"
298
- },
299
- {
300
- "token": "accent-background-color-default",
301
- "context": "Background"
302
- },
303
- {
304
- "token": "accent-background-color-hover",
305
- "context": "Background"
306
- },
307
- {
308
- "token": "accent-background-color-down",
309
- "context": "Background"
310
- },
311
- {
312
- "token": "accent-background-color-key-focus",
313
- "context": "Background"
314
- },
315
- {
316
- "token": "white",
317
- "context": "Icon and Clear icon"
318
- },
319
- {
320
- "token": "neutral-selected-background-color-default",
321
- "context": "Background"
322
- },
323
- {
324
- "token": "neutral-selected-background-color-hover",
325
- "context": "Background"
326
- },
327
- {
328
- "token": "neutral-selected-background-color-down",
329
- "context": "Background"
330
- },
331
- {
332
- "token": "neutral-selected-background-color-key-focus",
333
- "context": "Background"
334
- },
335
- {
336
- "token": "gray-25",
337
- "context": "Icon and Clear icon"
338
- },
339
- {
340
- "token": "gray-100",
341
- "context": "Background"
342
- },
343
- {
344
- "token": "gray-200",
345
- "context": "Background"
346
- },
347
- {
348
- "token": "neutral-content-color-default",
349
- "context": "Icon and Clear icon and Label"
350
- },
351
- {
352
- "token": "neutral-content-color-hover",
353
- "context": "Icon and Clear icon and Label"
354
- },
355
- {
356
- "token": "neutral-content-color-down",
357
- "context": "Icon and Clear icon and Label"
358
- },
359
- {
360
- "token": "neutral-content-color-key-focus",
361
- "context": "Icon and Clear icon and Label"
362
- },
363
- {
364
- "token": "disabled-background-color",
365
- "context": "Fill"
366
- },
367
- {
368
- "token": "disabled-content-color",
369
- "context": "Icon and Clear icon"
370
- },
371
- {
372
- "token": "focus-indicator-color",
373
- "context": "Focus indicator"
374
- }
375
- ],
376
- "accessibility": {
377
- "intents": ["dismiss"],
378
- "focusable": true,
379
- "keyboardIntents": ["activate"],
380
- "wcag": [
381
- {
382
- "criterion": "2.1.1",
383
- "level": "A",
384
- "title": "Keyboard"
385
- },
386
- {
387
- "criterion": "4.1.2",
388
- "level": "A",
389
- "title": "Name, Role, Value"
390
- }
391
- ]
392
- }
393
- }
@@ -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/takeover-dialog.json",
4
- "specVersion": "1.0.0-draft",
5
- "name": "takeover-dialog",
6
- "displayName": "Takeover dialog",
7
- "description": "Takeover dialogs are larger, flexible dialogs that contain other components to support complex workflows.",
8
- "meta": {
9
- "category": "feedback",
10
- "documentationUrl": "https://spectrum.adobe.com/page/takeover-dialog/"
11
- },
12
- "options": {
13
- "title": {
14
- "type": "string"
15
- },
16
- "description": {
17
- "type": "string"
18
- },
19
- "variant": {
20
- "type": "string",
21
- "default": "dialog",
22
- "values": [
23
- {
24
- "value": "dialog"
25
- },
26
- {
27
- "value": "full screen"
28
- }
29
- ]
30
- },
31
- "primaryActionLabel": {
32
- "type": "string"
33
- },
34
- "secondaryActionLabel": {
35
- "type": "string",
36
- "description": "If undefined, this button does not appear."
37
- },
38
- "cancelActionLabel": {
39
- "type": "string",
40
- "default": "cancel",
41
- "description": "If undefined, this button does not appear."
42
- },
43
- "slots": {
44
- "type": "array",
45
- "description": "Areas where other components can be inserted (e.g. Side navigation, Steplist, Forms).",
46
- "items": {
47
- "type": "object",
48
- "properties": {
49
- "name": {
50
- "type": "string",
51
- "description": "Identifier for the slot (e.g. 'sidebar', 'content', 'footer')."
52
- },
53
- "component": {
54
- "type": "string",
55
- "description": "The type of component placed in this slot (e.g. side-navigation, steplist, form)."
56
- }
57
- },
58
- "required": ["name", "component"]
59
- }
60
- }
61
- },
62
- "lifecycle": {
63
- "introduced": "1.0.0-draft"
64
- },
65
- "tokenBindings": [
66
- {
67
- "token": "takeover-dialog-width",
68
- "context": "Height & width"
69
- },
70
- {
71
- "token": "takeover-dialog-height",
72
- "context": "Height & width"
73
- },
74
- {
75
- "token": "window-to-edge",
76
- "context": "Margins (dialog option)"
77
- },
78
- {
79
- "token": "corner-radius-extra-large-default",
80
- "context": "Rounding (dialog option)"
81
- },
82
- {
83
- "token": "background-color-layer2",
84
- "context": "Background"
85
- },
86
- {
87
- "token": "overlay-color",
88
- "context": "Overlay"
89
- },
90
- {
91
- "token": "overlay-opacity",
92
- "context": "Overlay"
93
- },
94
- {
95
- "token": "heading-color",
96
- "context": "Title"
97
- }
98
- ],
99
- "accessibility": {
100
- "role": "dialog",
101
- "intents": ["dismiss"],
102
- "focusable": false,
103
- "keyboardIntents": ["dismiss"],
104
- "wcag": [
105
- {
106
- "criterion": "2.4.3",
107
- "level": "A",
108
- "title": "Focus Order"
109
- },
110
- {
111
- "criterion": "4.1.2",
112
- "level": "A",
113
- "title": "Name, Role, Value"
114
- }
115
- ]
116
- }
117
- }