@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,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
- }