@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,346 +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/search-field.json",
4
- "specVersion": "1.0.0-draft",
5
- "name": "search-field",
6
- "displayName": "Search field",
7
- "description": "A search field is used for searching and filtering items.",
8
- "meta": {
9
- "category": "inputs",
10
- "documentationUrl": "https://spectrum.adobe.com/page/search-field/"
11
- },
12
- "options": {
13
- "label": {
14
- "type": "string"
15
- },
16
- "hideLabel": {
17
- "type": "boolean",
18
- "default": false
19
- },
20
- "icon": {
21
- "$ref": "https://opensource.adobe.com/spectrum-design-data/schemas/types/workflow-icon.json",
22
- "description": "Icon must be present if the label is not defined."
23
- },
24
- "value": {
25
- "type": "string"
26
- },
27
- "width": {
28
- "type": "number"
29
- },
30
- "size": {
31
- "type": "string",
32
- "default": "m",
33
- "pattern": "^(x?s|m|x{0,3}l)$",
34
- "values": [
35
- {
36
- "value": "s"
37
- },
38
- {
39
- "value": "m"
40
- },
41
- {
42
- "value": "l"
43
- },
44
- {
45
- "value": "xl"
46
- }
47
- ]
48
- },
49
- "helpText": {
50
- "type": "string"
51
- },
52
- "placeholder": {
53
- "type": "string"
54
- },
55
- "isDisabled": {
56
- "type": "boolean",
57
- "default": false
58
- }
59
- },
60
- "states": [
61
- {
62
- "name": "down",
63
- "trigger": "interaction"
64
- },
65
- {
66
- "name": "hover",
67
- "trigger": "interaction"
68
- },
69
- {
70
- "name": "focus-+-hover",
71
- "trigger": "prop"
72
- },
73
- {
74
- "name": "focus-+-not-hover",
75
- "trigger": "prop"
76
- },
77
- {
78
- "name": "keyboard-focus",
79
- "trigger": "interaction"
80
- }
81
- ],
82
- "lifecycle": {
83
- "introduced": "1.0.0-draft"
84
- },
85
- "tokenBindings": [
86
- {
87
- "token": "in-field",
88
- "context": "Components"
89
- },
90
- {
91
- "token": "search-field-minimum-width-multiplier",
92
- "context": "Width (minimum)"
93
- },
94
- {
95
- "token": "field-width",
96
- "context": "Width (default)"
97
- },
98
- {
99
- "token": "component-height-75",
100
- "context": "Height"
101
- },
102
- {
103
- "token": "component-height-100",
104
- "context": "Height"
105
- },
106
- {
107
- "token": "component-height-200",
108
- "context": "Height"
109
- },
110
- {
111
- "token": "component-height-300",
112
- "context": "Height"
113
- },
114
- {
115
- "token": "help-text-to-component",
116
- "context": "Spacing (search field to help text)"
117
- },
118
- {
119
- "token": "corner-radius-full",
120
- "context": "Rounding"
121
- },
122
- {
123
- "token": "border-width-200",
124
- "context": "Border"
125
- },
126
- {
127
- "token": "workflow-icon-size-75",
128
- "context": "Icon"
129
- },
130
- {
131
- "token": "workflow-icon-size-100",
132
- "context": "Icon"
133
- },
134
- {
135
- "token": "workflow-icon-size-200",
136
- "context": "Icon"
137
- },
138
- {
139
- "token": "workflow-icon-size-300",
140
- "context": "Icon"
141
- },
142
- {
143
- "token": "component-pill-edge-to-text-75",
144
- "context": "Spacing (start/end edge to text)"
145
- },
146
- {
147
- "token": "component-pill-edge-to-text-100",
148
- "context": "Spacing (start/end edge to text)"
149
- },
150
- {
151
- "token": "component-pill-edge-to-text-200",
152
- "context": "Spacing (start/end edge to text)"
153
- },
154
- {
155
- "token": "component-pill-edge-to-text-300",
156
- "context": "Spacing (start/end edge to text)"
157
- },
158
- {
159
- "token": "component-pill-edge-to-visual-75",
160
- "context": "Spacing (start/end edge to text)"
161
- },
162
- {
163
- "token": "component-pill-edge-to-visual-100",
164
- "context": "Spacing (start/end edge to text)"
165
- },
166
- {
167
- "token": "component-pill-edge-to-visual-200",
168
- "context": "Spacing (start/end edge to text)"
169
- },
170
- {
171
- "token": "component-pill-edge-to-visual-300",
172
- "context": "Spacing (start/end edge to text)"
173
- },
174
- {
175
- "token": "text-to-visual-75",
176
- "context": "Spacing (icon to text)"
177
- },
178
- {
179
- "token": "text-to-visual-100",
180
- "context": "Spacing (icon to text)"
181
- },
182
- {
183
- "token": "text-to-visual-200",
184
- "context": "Spacing (icon to text)"
185
- },
186
- {
187
- "token": "text-to-visual-300",
188
- "context": "Spacing (icon to text)"
189
- },
190
- {
191
- "token": "component-top-to-workflow-icon-75",
192
- "context": "Spacing (top edge to icon)"
193
- },
194
- {
195
- "token": "component-top-to-workflow-icon-100",
196
- "context": "Spacing (top edge to icon)"
197
- },
198
- {
199
- "token": "component-top-to-workflow-icon-200",
200
- "context": "Spacing (top edge to icon)"
201
- },
202
- {
203
- "token": "component-top-to-workflow-icon-300",
204
- "context": "Spacing (top edge to icon)"
205
- },
206
- {
207
- "token": "focus-indicator-thickness",
208
- "context": "Focus indicator"
209
- },
210
- {
211
- "token": "focus-indicator-gap",
212
- "context": "Focus indicator"
213
- },
214
- {
215
- "token": "default-font-family",
216
- "context": "Label"
217
- },
218
- {
219
- "token": "regular-font-weight",
220
- "context": "Label"
221
- },
222
- {
223
- "token": "default-font-style",
224
- "context": "Label"
225
- },
226
- {
227
- "token": "component-s-regular",
228
- "context": "Label"
229
- },
230
- {
231
- "token": "component-m-regular",
232
- "context": "Label"
233
- },
234
- {
235
- "token": "component-l-regular",
236
- "context": "Label"
237
- },
238
- {
239
- "token": "component-xl-regular",
240
- "context": "Label"
241
- },
242
- {
243
- "token": "line-height-font-size-75",
244
- "context": "Label"
245
- },
246
- {
247
- "token": "line-height-font-size-100",
248
- "context": "Label"
249
- },
250
- {
251
- "token": "line-height-font-size-200",
252
- "context": "Label"
253
- },
254
- {
255
- "token": "line-height-font-size-300",
256
- "context": "Label"
257
- },
258
- {
259
- "token": "cjk-line-height-100",
260
- "context": "Label"
261
- },
262
- {
263
- "token": "gray-25",
264
- "context": "Background and border"
265
- },
266
- {
267
- "token": "gray-300",
268
- "context": "Background and border"
269
- },
270
- {
271
- "token": "gray-400",
272
- "context": "Background and border"
273
- },
274
- {
275
- "token": "gray-900",
276
- "context": "Background and border"
277
- },
278
- {
279
- "token": "gray-800",
280
- "context": "Background and border"
281
- },
282
- {
283
- "token": "neutral-content-color-default",
284
- "context": "Value, label and icon"
285
- },
286
- {
287
- "token": "neutral-content-color-hover",
288
- "context": "Value, label and icon"
289
- },
290
- {
291
- "token": "neutral-content-color-focus-hover",
292
- "context": "Value, label and icon"
293
- },
294
- {
295
- "token": "neutral-content-color-focus",
296
- "context": "Value, label and icon"
297
- },
298
- {
299
- "token": "neutral-content-color-key-focus",
300
- "context": "Value, label and icon"
301
- },
302
- {
303
- "token": "gray-600",
304
- "context": "Value, label and icon"
305
- },
306
- {
307
- "token": "disabled-content-color",
308
- "context": "Background and border (disabled)"
309
- },
310
- {
311
- "token": "disabled-border-color",
312
- "context": "Background and border (disabled)"
313
- },
314
- {
315
- "token": "focus-indicator-color",
316
- "context": "Focus ring"
317
- }
318
- ],
319
- "accessibility": {
320
- "role": "textbox",
321
- "intents": ["input"],
322
- "focusable": true,
323
- "wcag": [
324
- {
325
- "criterion": "1.3.1",
326
- "level": "A",
327
- "title": "Info and Relationships"
328
- },
329
- {
330
- "criterion": "1.3.5",
331
- "level": "AA",
332
- "title": "Identify Input Purpose"
333
- },
334
- {
335
- "criterion": "2.1.1",
336
- "level": "A",
337
- "title": "Keyboard"
338
- },
339
- {
340
- "criterion": "4.1.2",
341
- "level": "A",
342
- "title": "Name, Role, Value"
343
- }
344
- ]
345
- }
346
- }
@@ -1,248 +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/segmented-control.json",
4
- "specVersion": "1.0.0-draft",
5
- "name": "segmented-control",
6
- "displayName": "Segmented Control",
7
- "description": "Segmented controls allow users to select one option from a set of mutually exclusive options.",
8
- "meta": {
9
- "category": "navigation",
10
- "documentationUrl": "https://spectrum.adobe.com/page/segmented-control/"
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
- "isFluid": {
26
- "type": "boolean",
27
- "default": false,
28
- "description": "If true, the control takes up the full width of its container. Only applicable to horizontal segmented controls."
29
- },
30
- "alignment": {
31
- "type": "string",
32
- "default": "start",
33
- "values": [
34
- {
35
- "value": "start"
36
- },
37
- {
38
- "value": "center"
39
- }
40
- ]
41
- },
42
- "hideTracker": {
43
- "type": "boolean",
44
- "default": false,
45
- "description": "If true, the tracker that indicates the selected item is hidden."
46
- },
47
- "selectedItem": {
48
- "type": "string",
49
- "description": "The identifier of the currently selected item."
50
- },
51
- "keyboardActivation": {
52
- "type": "string",
53
- "default": "manual",
54
- "values": [
55
- {
56
- "value": "manual"
57
- },
58
- {
59
- "value": "automatic"
60
- }
61
- ]
62
- },
63
- "items": {
64
- "type": "array",
65
- "description": "An array of segmented control items.",
66
- "items": {
67
- "type": "object",
68
- "properties": {
69
- "label": {
70
- "type": "string",
71
- "description": "The text displayed for the segmented control item."
72
- },
73
- "isDisabled": {
74
- "type": "boolean",
75
- "default": false,
76
- "description": "Whether the segmented control item is disabled."
77
- },
78
- "state": {
79
- "type": "string",
80
- "enum": ["default", "hover", "keyboard focus"],
81
- "default": "default",
82
- "description": "The interaction state of the segmented control item."
83
- },
84
- "contentVariant": {
85
- "type": "string",
86
- "enum": ["label-only", "icon-only", "icon-label"],
87
- "default": "icon-label",
88
- "description": "Controls whether the segmented control item displays a label, an icon, or both."
89
- }
90
- }
91
- }
92
- }
93
- },
94
- "lifecycle": {
95
- "introduced": "1.0.0-draft"
96
- },
97
- "tokenBindings": [
98
- {
99
- "token": "segmented-control-item-height",
100
- "context": "Height "
101
- },
102
- {
103
- "token": "corner-radius-medium-default",
104
- "context": "Corner radius"
105
- },
106
- {
107
- "token": "workflow-icon-size-100",
108
- "context": "Icon "
109
- },
110
- {
111
- "token": "component-edge-to-visual-only-100",
112
- "context": "Spacing (top/bottom to edge, workflow icon only)"
113
- },
114
- {
115
- "token": "text-to-visual-100",
116
- "context": "Spacing (icon to label)"
117
- },
118
- {
119
- "token": "component-edge-to-visual-100",
120
- "context": "Spacing (start/end edges, workflow icon with label)"
121
- },
122
- {
123
- "token": "component-edge-to-text-100",
124
- "context": "Spacing (start/end edges, workflow icon with label)"
125
- },
126
- {
127
- "token": "component-top-to-text-100",
128
- "context": "Spacing (top/bottom to edge, workflow icon with label)"
129
- },
130
- {
131
- "token": "component-bottom-to-text-100",
132
- "context": "Spacing (top/bottom to edge, workflow icon with label)"
133
- },
134
- {
135
- "token": "component-top-to-workflow-icon-100",
136
- "context": "Spacing (top/bottom edge to icon, workflow icon with label)"
137
- },
138
- {
139
- "token": "spacing-50",
140
- "context": "Spacing (between segmented control items)"
141
- },
142
- {
143
- "token": "spacing-75",
144
- "context": "Spacing (between segmented control items)"
145
- },
146
- {
147
- "token": "focus-indicator-thickness",
148
- "context": "Focus ring"
149
- },
150
- {
151
- "token": "focus-indicator-gap",
152
- "context": "Focus ring"
153
- },
154
- {
155
- "token": "segmented-control-selection-border-width",
156
- "context": "Selection border"
157
- },
158
- {
159
- "token": "gray-600",
160
- "context": "Segmented control items (no track)"
161
- },
162
- {
163
- "token": "neutral-subdued-content-color-hover",
164
- "context": "Segmented control items (no track)"
165
- },
166
- {
167
- "token": "neutral-subdued-content-color-key-focus",
168
- "context": "Segmented control items (no track)"
169
- },
170
- {
171
- "token": "neutral-content-color-default",
172
- "context": "Segmented control items (no track)"
173
- },
174
- {
175
- "token": "neutral-content-color-hover",
176
- "context": "Segmented control items (no track)"
177
- },
178
- {
179
- "token": "neutral-content-color-key-focus",
180
- "context": "Segmented control items (no track)"
181
- },
182
- {
183
- "token": "gray-200",
184
- "context": "Segmented control items (no track)"
185
- },
186
- {
187
- "token": "neutral-subdued-content-color-default",
188
- "context": "Segmented control items (with track)"
189
- },
190
- {
191
- "token": "gray-25",
192
- "context": "Segmented control items (with track)"
193
- },
194
- {
195
- "token": "gray-100",
196
- "context": "Segmented control items (with track)"
197
- },
198
- {
199
- "token": "disabled-content-color",
200
- "context": "Disabled"
201
- },
202
- {
203
- "token": "disabled-background-color",
204
- "context": "Disabled"
205
- },
206
- {
207
- "token": "focus-indicator-color",
208
- "context": "Focus ring"
209
- },
210
- {
211
- "token": "default-font-family",
212
- "context": "Label"
213
- },
214
- {
215
- "token": "default-font-style",
216
- "context": "Label"
217
- },
218
- {
219
- "token": "regular-font-weight",
220
- "context": "Label"
221
- },
222
- {
223
- "token": "font-size-100",
224
- "context": "Label"
225
- },
226
- {
227
- "token": "line-height-100",
228
- "context": "Label"
229
- }
230
- ],
231
- "accessibility": {
232
- "intents": ["choose"],
233
- "focusable": true,
234
- "keyboardIntents": ["navigate-items", "activate"],
235
- "wcag": [
236
- {
237
- "criterion": "2.1.1",
238
- "level": "A",
239
- "title": "Keyboard"
240
- },
241
- {
242
- "criterion": "4.1.2",
243
- "level": "A",
244
- "title": "Name, Role, Value"
245
- }
246
- ]
247
- }
248
- }