@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,339 +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/checkbox.json",
4
- "specVersion": "1.0.0-draft",
5
- "name": "checkbox",
6
- "displayName": "Checkbox",
7
- "description": "Checkboxes allow users to select multiple items from a list of individual items, or to mark one individual item as selected.",
8
- "meta": {
9
- "category": "inputs",
10
- "documentationUrl": "https://spectrum.adobe.com/page/checkbox/"
11
- },
12
- "options": {
13
- "label": {
14
- "type": "string",
15
- "description": "When the label is not defined, the checkbox appears as a standalone checkbox."
16
- },
17
- "isSelected": {
18
- "type": "boolean",
19
- "default": false
20
- },
21
- "isIndeterminate": {
22
- "type": "boolean",
23
- "default": false,
24
- "description": "When a checkbox is indeterminate, it overrides the selection state."
25
- },
26
- "size": {
27
- "type": "string",
28
- "default": "m",
29
- "values": [
30
- {
31
- "value": "s"
32
- },
33
- {
34
- "value": "m"
35
- },
36
- {
37
- "value": "l"
38
- },
39
- {
40
- "value": "xl"
41
- }
42
- ]
43
- },
44
- "isEmphasized": {
45
- "type": "boolean",
46
- "default": false
47
- },
48
- "isDisabled": {
49
- "type": "boolean",
50
- "default": false
51
- },
52
- "isError": {
53
- "type": "boolean",
54
- "default": false
55
- }
56
- },
57
- "states": [
58
- {
59
- "name": "hover",
60
- "trigger": "interaction"
61
- },
62
- {
63
- "name": "down",
64
- "trigger": "interaction"
65
- },
66
- {
67
- "name": "keyboard-focus",
68
- "trigger": "interaction"
69
- }
70
- ],
71
- "lifecycle": {
72
- "introduced": "1.0.0-draft"
73
- },
74
- "tokenBindings": [
75
- {
76
- "token": "checkbox-control-size-small",
77
- "context": "S2 Control (size)"
78
- },
79
- {
80
- "token": "checkbox-control-size-medium",
81
- "context": "S2 Control (size)"
82
- },
83
- {
84
- "token": "checkbox-control-size-large",
85
- "context": "S2 Control (size)"
86
- },
87
- {
88
- "token": "checkbox-control-size-extra-large",
89
- "context": "S2 Control (size)"
90
- },
91
- {
92
- "token": "checkbox-top-to-control-small",
93
- "context": "S2 Spacing (top edge to control)"
94
- },
95
- {
96
- "token": "checkbox-top-to-control-medium",
97
- "context": "S2 Spacing (top edge to control)"
98
- },
99
- {
100
- "token": "checkbox-top-to-control-large",
101
- "context": "S2 Spacing (top edge to control)"
102
- },
103
- {
104
- "token": "checkbox-top-to-control-extra-large",
105
- "context": "S2 Spacing (top edge to control)"
106
- },
107
- {
108
- "token": "neutral-background-color-selected-default",
109
- "context": "S2 Control (selected, non emphasized)"
110
- },
111
- {
112
- "token": "neutral-background-color-selected-hover",
113
- "context": "S2 Control (selected, non emphasized)"
114
- },
115
- {
116
- "token": "neutral-background-color-selected-key-focus",
117
- "context": "S2 Control (selected, non emphasized)"
118
- },
119
- {
120
- "token": "component-height-75",
121
- "context": "Minimum height"
122
- },
123
- {
124
- "token": "component-height-100",
125
- "context": "Minimum height"
126
- },
127
- {
128
- "token": "component-height-200",
129
- "context": "Minimum height"
130
- },
131
- {
132
- "token": "component-height-300",
133
- "context": "Minimum height"
134
- },
135
- {
136
- "token": "component-size-difference-down",
137
- "context": "Component size (down)"
138
- },
139
- {
140
- "token": "component-size-width-ratio-down",
141
- "context": "Component size (down)"
142
- },
143
- {
144
- "token": "component-size-minimum-perspective-down",
145
- "context": "Component size (down)"
146
- },
147
- {
148
- "token": "border-width-200",
149
- "context": "Control (border)"
150
- },
151
- {
152
- "token": "corner-radius-small-size-small",
153
- "context": "Control (rounding)"
154
- },
155
- {
156
- "token": "corner-radius-small-size-medium",
157
- "context": "Control (rounding)"
158
- },
159
- {
160
- "token": "corner-radius-small-size-large",
161
- "context": "Control (rounding)"
162
- },
163
- {
164
- "token": "corner-radius-small-size-extra-large",
165
- "context": "Control (rounding)"
166
- },
167
- {
168
- "token": "text-to-control-75",
169
- "context": "Spacing (control to label)"
170
- },
171
- {
172
- "token": "text-to-control-100",
173
- "context": "Spacing (control to label)"
174
- },
175
- {
176
- "token": "text-to-control-200",
177
- "context": "Spacing (control to label)"
178
- },
179
- {
180
- "token": "text-to-control-300",
181
- "context": "Spacing (control to label)"
182
- },
183
- {
184
- "token": "component-top-to-text-75",
185
- "context": "Spacing (top/bottom edge to label)"
186
- },
187
- {
188
- "token": "component-top-to-text-100",
189
- "context": "Spacing (top/bottom edge to label)"
190
- },
191
- {
192
- "token": "component-top-to-text-200",
193
- "context": "Spacing (top/bottom edge to label)"
194
- },
195
- {
196
- "token": "component-top-to-text-300",
197
- "context": "Spacing (top/bottom edge to label)"
198
- },
199
- {
200
- "token": "component-bottom-to-text-75",
201
- "context": "Spacing (top/bottom edge to label)"
202
- },
203
- {
204
- "token": "component-bottom-to-text-100",
205
- "context": "Spacing (top/bottom edge to label)"
206
- },
207
- {
208
- "token": "component-bottom-to-text-200",
209
- "context": "Spacing (top/bottom edge to label)"
210
- },
211
- {
212
- "token": "component-bottom-to-text-300",
213
- "context": "Spacing (top/bottom edge to label)"
214
- },
215
- {
216
- "token": "focus-indicator-thickness",
217
- "context": "Focus ring"
218
- },
219
- {
220
- "token": "focus-indicator-gap",
221
- "context": "Focus ring"
222
- },
223
- {
224
- "token": "spacing-300",
225
- "context": "Checkbox group spacing (horizontal)"
226
- },
227
- {
228
- "token": "neutral-content-color-default",
229
- "context": "Label"
230
- },
231
- {
232
- "token": "neutral-content-color-hover",
233
- "context": "Label"
234
- },
235
- {
236
- "token": "neutral-content-color-down",
237
- "context": "Label"
238
- },
239
- {
240
- "token": "neutral-content-color-key-focus",
241
- "context": "Label"
242
- },
243
- {
244
- "token": "gray-25",
245
- "context": "Control"
246
- },
247
- {
248
- "token": "accent-content-color-default",
249
- "context": "Control (selected, emphasized)"
250
- },
251
- {
252
- "token": "accent-content-color-hover",
253
- "context": "Control (selected, emphasized)"
254
- },
255
- {
256
- "token": "accent-content-color-down",
257
- "context": "Control (selected, emphasized)"
258
- },
259
- {
260
- "token": "accent-content-color-key-focus",
261
- "context": "Control (selected, emphasized)"
262
- },
263
- {
264
- "token": "disabled-content-color",
265
- "context": "Label (disabled)"
266
- },
267
- {
268
- "token": "focus-indicator-color",
269
- "context": "Focus ring"
270
- },
271
- {
272
- "token": "negative-color-900",
273
- "context": "Checkbox colors"
274
- },
275
- {
276
- "token": "negative-color-1000",
277
- "context": "Checkbox colors"
278
- },
279
- {
280
- "token": "default-font-family",
281
- "context": "Label"
282
- },
283
- {
284
- "token": "regular-font-weight",
285
- "context": "Label"
286
- },
287
- {
288
- "token": "default-font-style",
289
- "context": "Label"
290
- },
291
- {
292
- "token": "font-size-75",
293
- "context": "Label"
294
- },
295
- {
296
- "token": "font-size-100",
297
- "context": "Label"
298
- },
299
- {
300
- "token": "font-size-200",
301
- "context": "Label"
302
- },
303
- {
304
- "token": "font-size-300",
305
- "context": "Label"
306
- },
307
- {
308
- "token": "line-height-100",
309
- "context": "Label"
310
- },
311
- {
312
- "token": "cjk-line-height-100",
313
- "context": "Label"
314
- }
315
- ],
316
- "accessibility": {
317
- "role": "checkbox",
318
- "intents": ["choose"],
319
- "focusable": true,
320
- "keyboardIntents": ["activate"],
321
- "wcag": [
322
- {
323
- "criterion": "1.3.1",
324
- "level": "A",
325
- "title": "Info and Relationships"
326
- },
327
- {
328
- "criterion": "2.1.1",
329
- "level": "A",
330
- "title": "Keyboard"
331
- },
332
- {
333
- "criterion": "4.1.2",
334
- "level": "A",
335
- "title": "Name, Role, Value"
336
- }
337
- ]
338
- }
339
- }
@@ -1,208 +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/close-button.json",
4
- "specVersion": "1.0.0-draft",
5
- "name": "close-button",
6
- "displayName": "Close button",
7
- "description": "The close button is used inside of other components, like a toast or an action bar, for closing or dismissing its parent component.",
8
- "meta": {
9
- "category": "actions",
10
- "documentationUrl": "https://spectrum.adobe.com/page/close-button/"
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
- "iconSize": {
32
- "type": "string"
33
- },
34
- "staticColor": {
35
- "type": "string",
36
- "description": "Static color must not be set for the default version of this component.",
37
- "values": [
38
- {
39
- "value": "white"
40
- },
41
- {
42
- "value": "black"
43
- }
44
- ]
45
- },
46
- "isDisabled": {
47
- "type": "boolean",
48
- "default": false
49
- }
50
- },
51
- "states": [
52
- {
53
- "name": "hover",
54
- "trigger": "interaction"
55
- },
56
- {
57
- "name": "down",
58
- "trigger": "interaction"
59
- },
60
- {
61
- "name": "keyboard-focus",
62
- "trigger": "interaction"
63
- }
64
- ],
65
- "lifecycle": {
66
- "introduced": "1.0.0-draft"
67
- },
68
- "tokenBindings": [
69
- {
70
- "token": "component-height-75",
71
- "context": "Button size"
72
- },
73
- {
74
- "token": "component-height-100",
75
- "context": "Button size"
76
- },
77
- {
78
- "token": "component-height-200",
79
- "context": "Button size"
80
- },
81
- {
82
- "token": "component-height-300",
83
- "context": "Button size"
84
- },
85
- {
86
- "token": "component-size-difference-down",
87
- "context": "Button size (down)"
88
- },
89
- {
90
- "token": "component-size-width-ratio-down",
91
- "context": "Button size (down)"
92
- },
93
- {
94
- "token": "component-size-minimum-perspective-down",
95
- "context": "Button size (down)"
96
- },
97
- {
98
- "token": "cross-icon-size-200",
99
- "context": "Cross icon size"
100
- },
101
- {
102
- "token": "cross-icon-size-300",
103
- "context": "Cross icon size"
104
- },
105
- {
106
- "token": "cross-icon-size-400",
107
- "context": "Cross icon size"
108
- },
109
- {
110
- "token": "cross-icon-size-500",
111
- "context": "Cross icon size"
112
- },
113
- {
114
- "token": "focus-indicator-thickness",
115
- "context": "Focus ring "
116
- },
117
- {
118
- "token": "focus-indicator-gap",
119
- "context": "Focus ring "
120
- },
121
- {
122
- "token": "neutral-content-color-default",
123
- "context": "Cross icon"
124
- },
125
- {
126
- "token": "neutral-content-color-hover",
127
- "context": "Cross icon"
128
- },
129
- {
130
- "token": "neutral-content-color-down",
131
- "context": "Cross icon"
132
- },
133
- {
134
- "token": "neutral-content-color-key-focus",
135
- "context": "Cross icon"
136
- },
137
- {
138
- "token": "disabled-content-color",
139
- "context": "Cross icon"
140
- },
141
- {
142
- "token": "focus-indicator-color",
143
- "context": "Focus ring"
144
- },
145
- {
146
- "token": "gray-100",
147
- "context": "Background "
148
- },
149
- {
150
- "token": "transparent-white-800",
151
- "context": "Cross icon (static white)"
152
- },
153
- {
154
- "token": "transparent-white-900",
155
- "context": "Cross icon (static white)"
156
- },
157
- {
158
- "token": "disabled-static-white-background-color",
159
- "context": "Cross icon (static white)"
160
- },
161
- {
162
- "token": "static-white-focus-indicator-color",
163
- "context": "Focus ring (static white)"
164
- },
165
- {
166
- "token": "transparent-white-100",
167
- "context": "Background (static white)"
168
- },
169
- {
170
- "token": "transparent-black-800",
171
- "context": "Cross icon (static black) "
172
- },
173
- {
174
- "token": "transparent-black-900",
175
- "context": "Cross icon (static black) "
176
- },
177
- {
178
- "token": "disabled-static-black-background-color",
179
- "context": "Cross icon (static black) "
180
- },
181
- {
182
- "token": "static-black-focus-indicator-color",
183
- "context": "Focus ring (static black) "
184
- },
185
- {
186
- "token": "transparent-black-100",
187
- "context": "Background (static black)"
188
- }
189
- ],
190
- "accessibility": {
191
- "role": "button",
192
- "intents": ["dismiss"],
193
- "focusable": true,
194
- "keyboardIntents": ["activate"],
195
- "wcag": [
196
- {
197
- "criterion": "2.1.1",
198
- "level": "A",
199
- "title": "Keyboard"
200
- },
201
- {
202
- "criterion": "4.1.2",
203
- "level": "A",
204
- "title": "Name, Role, Value"
205
- }
206
- ]
207
- }
208
- }
@@ -1,105 +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/coach-indicator.json",
4
- "specVersion": "1.0.0-draft",
5
- "name": "coach-indicator",
6
- "displayName": "Coach indicator",
7
- "description": "Coach indicators help guide users through interfaces by highlighting important areas or features during onboarding and feature discovery.",
8
- "meta": {
9
- "category": "feedback",
10
- "documentationUrl": "https://spectrum.adobe.com/page/coach-indicator/"
11
- },
12
- "options": {
13
- "cornerRounding": {
14
- "type": "string",
15
- "values": [
16
- {
17
- "value": "none"
18
- },
19
- {
20
- "value": "corner-radius-75"
21
- },
22
- {
23
- "value": "corner-radius-100"
24
- },
25
- {
26
- "value": "corner-radius-200"
27
- },
28
- {
29
- "value": "corner-radius-300"
30
- },
31
- {
32
- "value": "corner-radius-400"
33
- },
34
- {
35
- "value": "corner-radius-500"
36
- },
37
- {
38
- "value": "corner-radius-600"
39
- },
40
- {
41
- "value": "corner-radius-700"
42
- },
43
- {
44
- "value": "corner-radius-800"
45
- },
46
- {
47
- "value": "full"
48
- }
49
- ]
50
- },
51
- "staticColor": {
52
- "type": "string",
53
- "description": "If not set to white, the coach indicator uses the default color.",
54
- "values": [
55
- {
56
- "value": "white"
57
- }
58
- ]
59
- }
60
- },
61
- "lifecycle": {
62
- "introduced": "1.0.0-draft"
63
- },
64
- "tokenBindings": [
65
- {
66
- "token": "coach-indicator-collapsed-ring-thickness",
67
- "context": "Ring"
68
- },
69
- {
70
- "token": "coach-indicator-expanded-ring-thickness",
71
- "context": "Ring"
72
- },
73
- {
74
- "token": "coach-indicator-collapsed-gap",
75
- "context": "Ring"
76
- },
77
- {
78
- "token": "coach-indicator-expanded-gap",
79
- "context": "Ring"
80
- },
81
- {
82
- "token": "coach-indicator-collapsed-ring-rounding-increment",
83
- "context": "Rounding"
84
- },
85
- {
86
- "token": "coach-indicator-expanded-ring-rounding-increment",
87
- "context": "Rounding"
88
- },
89
- {
90
- "token": "coach-indicator-color",
91
- "context": "Indicator (Default)"
92
- },
93
- {
94
- "token": "coach-indicator-opacity",
95
- "context": "Indicator (Default)"
96
- },
97
- {
98
- "token": "white",
99
- "context": "Indicator (Static white)"
100
- }
101
- ],
102
- "accessibility": {
103
- "focusable": false
104
- }
105
- }