@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,334 +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/status-light.json",
4
- "specVersion": "1.0.0-draft",
5
- "name": "status-light",
6
- "displayName": "Status light",
7
- "description": "Status lights describe the condition of an entity. They can be used to convey semantic meaning, such as statuses and categories.",
8
- "meta": {
9
- "category": "status",
10
- "documentationUrl": "https://spectrum.adobe.com/page/status-light/"
11
- },
12
- "options": {
13
- "label": {
14
- "type": "string"
15
- },
16
- "variant": {
17
- "type": "string",
18
- "default": "informative",
19
- "values": [
20
- {
21
- "value": "informative"
22
- },
23
- {
24
- "value": "neutral"
25
- },
26
- {
27
- "value": "positive"
28
- },
29
- {
30
- "value": "notice"
31
- },
32
- {
33
- "value": "negative"
34
- },
35
- {
36
- "value": "indigo"
37
- },
38
- {
39
- "value": "celery"
40
- },
41
- {
42
- "value": "chartreuse"
43
- },
44
- {
45
- "value": "yellow"
46
- },
47
- {
48
- "value": "magenta"
49
- },
50
- {
51
- "value": "fuchsia"
52
- },
53
- {
54
- "value": "purple"
55
- },
56
- {
57
- "value": "seafoam"
58
- },
59
- {
60
- "value": "pink"
61
- },
62
- {
63
- "value": "turquoise"
64
- },
65
- {
66
- "value": "cinnamon"
67
- },
68
- {
69
- "value": "brown"
70
- },
71
- {
72
- "value": "silver"
73
- },
74
- {
75
- "value": "gray"
76
- },
77
- {
78
- "value": "red"
79
- },
80
- {
81
- "value": "orange"
82
- },
83
- {
84
- "value": "green"
85
- },
86
- {
87
- "value": "cyan"
88
- }
89
- ]
90
- },
91
- "size": {
92
- "type": "string",
93
- "default": "m",
94
- "values": [
95
- {
96
- "value": "s"
97
- },
98
- {
99
- "value": "m"
100
- },
101
- {
102
- "value": "l"
103
- },
104
- {
105
- "value": "xl"
106
- }
107
- ]
108
- }
109
- },
110
- "lifecycle": {
111
- "introduced": "1.0.0-draft"
112
- },
113
- "tokenBindings": [
114
- {
115
- "token": "component-height-75",
116
- "context": "Height"
117
- },
118
- {
119
- "token": "component-height-100",
120
- "context": "Height"
121
- },
122
- {
123
- "token": "component-height-200",
124
- "context": "Height"
125
- },
126
- {
127
- "token": "component-height-300",
128
- "context": "Height"
129
- },
130
- {
131
- "token": "status-light-dot-size-small",
132
- "context": "Dot size"
133
- },
134
- {
135
- "token": "status-light-dot-size-medium",
136
- "context": "Dot size"
137
- },
138
- {
139
- "token": "status-light-dot-size-large",
140
- "context": "Dot size"
141
- },
142
- {
143
- "token": "status-light-dot-extra-large",
144
- "context": "Dot size"
145
- },
146
- {
147
- "token": "status-light-text-to-visual-75",
148
- "context": "Spacing (dot to label) "
149
- },
150
- {
151
- "token": "status-light-text-to-visual-100",
152
- "context": "Spacing (dot to label) "
153
- },
154
- {
155
- "token": "status-light-text-to-visual-200",
156
- "context": "Spacing (dot to label) "
157
- },
158
- {
159
- "token": "status-light-text-to-visual-300",
160
- "context": "Spacing (dot to label) "
161
- },
162
- {
163
- "token": "status-light-top-to-dot-small",
164
- "context": "Spacing (top edge to dot) "
165
- },
166
- {
167
- "token": "status-light-top-to-dot-medium",
168
- "context": "Spacing (top edge to dot) "
169
- },
170
- {
171
- "token": "status-light-top-to-dot-large",
172
- "context": "Spacing (top edge to dot) "
173
- },
174
- {
175
- "token": "status-light-top-to-dot-extra-large",
176
- "context": "Spacing (top edge to dot) "
177
- },
178
- {
179
- "token": "component-top-to-text-75",
180
- "context": "Spacing (top/bottom edge to label)"
181
- },
182
- {
183
- "token": "component-top-to-text-100",
184
- "context": "Spacing (top/bottom edge to label)"
185
- },
186
- {
187
- "token": "component-top-to-text-200",
188
- "context": "Spacing (top/bottom edge to label)"
189
- },
190
- {
191
- "token": "component-top-to-text-300",
192
- "context": "Spacing (top/bottom edge to label)"
193
- },
194
- {
195
- "token": "component-bottom-to-text-75",
196
- "context": "Spacing (top/bottom edge to label)"
197
- },
198
- {
199
- "token": "component-bottom-to-text-100",
200
- "context": "Spacing (top/bottom edge to label)"
201
- },
202
- {
203
- "token": "component-bottom-to-text-200",
204
- "context": "Spacing (top/bottom edge to label)"
205
- },
206
- {
207
- "token": "component-bottom-to-text-300",
208
- "context": "Spacing (top/bottom edge to label)"
209
- },
210
- {
211
- "token": "default-font-family",
212
- "context": "Label"
213
- },
214
- {
215
- "token": "regular-font-weight",
216
- "context": "Label"
217
- },
218
- {
219
- "token": "default-font-style",
220
- "context": "Label"
221
- },
222
- {
223
- "token": "font-size-75",
224
- "context": "Label"
225
- },
226
- {
227
- "token": "font-size-100",
228
- "context": "Label"
229
- },
230
- {
231
- "token": "font-size-200",
232
- "context": "Label"
233
- },
234
- {
235
- "token": "font-size-300",
236
- "context": "Label"
237
- },
238
- {
239
- "token": "line-height-100",
240
- "context": "Label"
241
- },
242
- {
243
- "token": "cjk-line-height-100",
244
- "context": "Label"
245
- },
246
- {
247
- "token": "informative-visual-color",
248
- "context": "Semantic (Dot) "
249
- },
250
- {
251
- "token": "neutral-visual-color",
252
- "context": "Semantic (Dot) "
253
- },
254
- {
255
- "token": "positive-visual-color",
256
- "context": "Semantic (Dot) "
257
- },
258
- {
259
- "token": "notice-visual-color",
260
- "context": "Semantic (Dot) "
261
- },
262
- {
263
- "token": "negative-visual-color",
264
- "context": "Semantic (Dot) "
265
- },
266
- {
267
- "token": "celery-visual-color",
268
- "context": "Non-semantic (Dot) "
269
- },
270
- {
271
- "token": "chartreuse-visual-color",
272
- "context": "Non-semantic (Dot) "
273
- },
274
- {
275
- "token": "cyan-visual-color",
276
- "context": "Non-semantic (Dot) "
277
- },
278
- {
279
- "token": "fuchsia-visual-color",
280
- "context": "Non-semantic (Dot) "
281
- },
282
- {
283
- "token": "purple-visual-color",
284
- "context": "Non-semantic (Dot) "
285
- },
286
- {
287
- "token": "magenta-visual-color",
288
- "context": "Non-semantic (Dot) "
289
- },
290
- {
291
- "token": "indigo-visual-color",
292
- "context": "Non-semantic (Dot) "
293
- },
294
- {
295
- "token": "seafoam-visual-color",
296
- "context": "Non-semantic (Dot) "
297
- },
298
- {
299
- "token": "yellow-visual-color",
300
- "context": "Non-semantic (Dot) "
301
- },
302
- {
303
- "token": "pink-visual-color",
304
- "context": "Non-semantic (Dot) "
305
- },
306
- {
307
- "token": "turquoise-visual-color",
308
- "context": "Non-semantic (Dot) "
309
- },
310
- {
311
- "token": "cinnamon-visual-color",
312
- "context": "Non-semantic (Dot) "
313
- },
314
- {
315
- "token": "brown-visual-color",
316
- "context": "Non-semantic (Dot) "
317
- },
318
- {
319
- "token": "silver-visual-color",
320
- "context": "Non-semantic (Dot) "
321
- },
322
- {
323
- "token": "gray-600",
324
- "context": "Label"
325
- },
326
- {
327
- "token": "neutral-content-color-default",
328
- "context": "Label"
329
- }
330
- ],
331
- "accessibility": {
332
- "focusable": false
333
- }
334
- }
@@ -1,294 +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/steplist.json",
4
- "specVersion": "1.0.0-draft",
5
- "name": "steplist",
6
- "displayName": "Steplist",
7
- "description": "Step lists display progress through a sequence of steps, with each step marked as completed, current, or incomplete.",
8
- "meta": {
9
- "category": "navigation",
10
- "documentationUrl": "https://spectrum.adobe.com/page/steplist/"
11
- },
12
- "options": {
13
- "orientation": {
14
- "type": "string",
15
- "default": "horizontal",
16
- "values": [
17
- {
18
- "value": "horizontal"
19
- },
20
- {
21
- "value": "vertical"
22
- }
23
- ]
24
- },
25
- "items": {
26
- "type": "array",
27
- "description": "An array of step items in the step list.",
28
- "items": {
29
- "type": "object",
30
- "properties": {
31
- "label": {
32
- "type": "string",
33
- "description": "The text displayed for the step item."
34
- },
35
- "isDisabled": {
36
- "type": "boolean",
37
- "default": false,
38
- "description": "Whether the step item is disabled."
39
- },
40
- "stepState": {
41
- "type": "string",
42
- "enum": [
43
- "completed default",
44
- "completed hover",
45
- "current default",
46
- "incomplete default"
47
- ],
48
- "default": "current default",
49
- "description": "The current state of the step item."
50
- }
51
- },
52
- "required": ["label", "stepState"]
53
- }
54
- },
55
- "currentStep": {
56
- "type": "string",
57
- "description": "The identifier or label of the currently active step."
58
- }
59
- },
60
- "lifecycle": {
61
- "introduced": "1.0.0-draft"
62
- },
63
- "tokenBindings": [
64
- {
65
- "token": "steplist-step-default-width-small",
66
- "context": "Width small (default)"
67
- },
68
- {
69
- "token": "steplist-step-default-width-medium",
70
- "context": "Width small (default)"
71
- },
72
- {
73
- "token": "steplist-step-default-width-large",
74
- "context": "Width small (default)"
75
- },
76
- {
77
- "token": "steplist-step-default-width-extra-large",
78
- "context": "Width small (default)"
79
- },
80
- {
81
- "token": "steplist-step-default-height-small",
82
- "context": "Height small (default)"
83
- },
84
- {
85
- "token": "steplist-step-default-height-medium",
86
- "context": "Height small (default)"
87
- },
88
- {
89
- "token": "steplist-step-default-height-large",
90
- "context": "Height small (default)"
91
- },
92
- {
93
- "token": "steplist-step-default-height-extra-large",
94
- "context": "Height small (default)"
95
- },
96
- {
97
- "token": "steplist-step-to-track-size-small",
98
- "context": "Spacing (step to track)"
99
- },
100
- {
101
- "token": "steplist-step-to-track-size-medium",
102
- "context": "Spacing (step to track)"
103
- },
104
- {
105
- "token": "steplist-step-to-track-size-large",
106
- "context": "Spacing (step to track)"
107
- },
108
- {
109
- "token": "steplist-step-to-track-size-extra-large",
110
- "context": "Spacing (step to track)"
111
- },
112
- {
113
- "token": "steplist-bottom-to-text",
114
- "context": "Text adjustment"
115
- },
116
- {
117
- "token": "border-width-200",
118
- "context": "Visual border"
119
- },
120
- {
121
- "token": "text-to-visual-75",
122
- "context": "Spacing (text to visual)"
123
- },
124
- {
125
- "token": "text-to-visual-100",
126
- "context": "Spacing (text to visual)"
127
- },
128
- {
129
- "token": "text-to-visual-200",
130
- "context": "Spacing (text to visual)"
131
- },
132
- {
133
- "token": "text-to-visual-300",
134
- "context": "Spacing (text to visual)"
135
- },
136
- {
137
- "token": "steplist-visual-size-small",
138
- "context": "Visual size"
139
- },
140
- {
141
- "token": "steplist-visual-size-medium",
142
- "context": "Visual size"
143
- },
144
- {
145
- "token": "steplist-visual-size-large",
146
- "context": "Visual size"
147
- },
148
- {
149
- "token": "steplist-visual-size-extra-large",
150
- "context": "Visual size"
151
- },
152
- {
153
- "token": "steplist-track-thickness-thickness",
154
- "context": "Steplist track thickness"
155
- },
156
- {
157
- "token": "neutral-subdued-content-color-default",
158
- "context": "Step text"
159
- },
160
- {
161
- "token": "neutral-subdued-content-color-hover",
162
- "context": "Step text"
163
- },
164
- {
165
- "token": "neutral-subdued-content-color-key-focus",
166
- "context": "Step text"
167
- },
168
- {
169
- "token": "neutral-content-color-default",
170
- "context": "Step text"
171
- },
172
- {
173
- "token": "neutral-content-color-key-focus",
174
- "context": "Step text"
175
- },
176
- {
177
- "token": "accent-content-color-default",
178
- "context": "Step text"
179
- },
180
- {
181
- "token": "accent-content-color-key-focus",
182
- "context": "Step text"
183
- },
184
- {
185
- "token": "neutral-subdued-background-color-default",
186
- "context": "Step visual"
187
- },
188
- {
189
- "token": "neutral-subdued-background-color-hover",
190
- "context": "Step visual"
191
- },
192
- {
193
- "token": "neutral-subdued-background-color-key-focus",
194
- "context": "Step visual"
195
- },
196
- {
197
- "token": "neutral-background-color-default",
198
- "context": "Step visual"
199
- },
200
- {
201
- "token": "neutral-background-color-key-focus",
202
- "context": "Step visual"
203
- },
204
- {
205
- "token": "neutral-visual-color",
206
- "context": "Step visual"
207
- },
208
- {
209
- "token": "accent-background-color-default",
210
- "context": "Step visual"
211
- },
212
- {
213
- "token": "accent-background-color-key-focus",
214
- "context": "Step visual"
215
- },
216
- {
217
- "token": "accent-background-color-hover",
218
- "context": "Step visual"
219
- },
220
- {
221
- "token": "gray-25",
222
- "context": "Step visual text"
223
- },
224
- {
225
- "token": "white",
226
- "context": "Step visual text"
227
- },
228
- {
229
- "token": "accent-visual-color",
230
- "context": "Steplist track"
231
- },
232
- {
233
- "token": "disabled-content-color",
234
- "context": "Disabled"
235
- },
236
- {
237
- "token": "disabled-background-color",
238
- "context": "Disabled"
239
- },
240
- {
241
- "token": "default-font-family",
242
- "context": "Label"
243
- },
244
- {
245
- "token": "regular-font-weight",
246
- "context": "Label"
247
- },
248
- {
249
- "token": "default-font-style",
250
- "context": "Label"
251
- },
252
- {
253
- "token": "font-size-75",
254
- "context": "Label"
255
- },
256
- {
257
- "token": "font-size-100",
258
- "context": "Label"
259
- },
260
- {
261
- "token": "font-size-200",
262
- "context": "Label"
263
- },
264
- {
265
- "token": "font-size-300",
266
- "context": "Label"
267
- },
268
- {
269
- "token": "line-height-100",
270
- "context": "Label"
271
- },
272
- {
273
- "token": "cjk-line-height-100",
274
- "context": "Label"
275
- }
276
- ],
277
- "accessibility": {
278
- "intents": ["navigate"],
279
- "focusable": true,
280
- "keyboardIntents": ["navigate-items", "activate"],
281
- "wcag": [
282
- {
283
- "criterion": "2.1.1",
284
- "level": "A",
285
- "title": "Keyboard"
286
- },
287
- {
288
- "criterion": "4.1.2",
289
- "level": "A",
290
- "title": "Name, Role, Value"
291
- }
292
- ]
293
- }
294
- }