@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,272 +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/select-box.json",
4
- "specVersion": "1.0.0-draft",
5
- "name": "select-box",
6
- "displayName": "Select box",
7
- "meta": {
8
- "category": "inputs",
9
- "documentationUrl": "https://spectrum.adobe.com/page/select-box/"
10
- },
11
- "options": {
12
- "label": {
13
- "type": "string"
14
- },
15
- "orientation": {
16
- "type": "string",
17
- "default": "vertical",
18
- "values": [
19
- {
20
- "value": "horizontal"
21
- },
22
- {
23
- "value": "vertical"
24
- }
25
- ]
26
- },
27
- "body": {
28
- "type": "string"
29
- },
30
- "isSelected": {
31
- "type": "boolean",
32
- "default": false
33
- },
34
- "hideIllustration": {
35
- "type": "boolean",
36
- "default": false
37
- },
38
- "showCheckbox": {
39
- "type": "boolean",
40
- "default": false
41
- },
42
- "isDisabled": {
43
- "type": "boolean",
44
- "default": false
45
- },
46
- "multiple": {
47
- "type": "boolean",
48
- "default": false,
49
- "description": "Set to true to allow multiple selections."
50
- }
51
- },
52
- "states": [
53
- {
54
- "name": "down",
55
- "trigger": "interaction"
56
- },
57
- {
58
- "name": "hover",
59
- "trigger": "interaction"
60
- },
61
- {
62
- "name": "keyboard-focus",
63
- "trigger": "interaction"
64
- }
65
- ],
66
- "lifecycle": {
67
- "introduced": "1.0.0-draft"
68
- },
69
- "tokenBindings": [
70
- {
71
- "token": "select-box-vertical-height",
72
- "context": "Component height and width (vertical)"
73
- },
74
- {
75
- "token": "select-box-vertical-edge-to-content",
76
- "context": "Padding (vertical)"
77
- },
78
- {
79
- "token": "select-box-vertical-illustration-to-label",
80
- "context": "Spacing (illustration to text, vertical)"
81
- },
82
- {
83
- "token": "select-box-horizontal-width",
84
- "context": "Component width (horizontal)"
85
- },
86
- {
87
- "token": "select-box-horizontal-minimum-width",
88
- "context": "Component minimum width (horizontal)"
89
- },
90
- {
91
- "token": "select-box-horizontal-minimum-height",
92
- "context": "Component minimum height (horizontal)"
93
- },
94
- {
95
- "token": "select-box-horizontal-top-to-content",
96
- "context": "Padding (horizontal)"
97
- },
98
- {
99
- "token": "select-box-horizontal-start-to-content",
100
- "context": "Padding (horizontal)"
101
- },
102
- {
103
- "token": "select-box-horizontal-end-to-content",
104
- "context": "Padding (horizontal)"
105
- },
106
- {
107
- "token": "select-box-horizontal-label-to-description",
108
- "context": "Spacing (label to description, horizontal)"
109
- },
110
- {
111
- "token": "select-box-horizontal-illustration-to-label",
112
- "context": "Spacing (illustration to label, horizontal)"
113
- },
114
- {
115
- "token": "border-width-200",
116
- "context": "Border (Selected)"
117
- },
118
- {
119
- "token": "component-size-difference-down",
120
- "context": "Down state"
121
- },
122
- {
123
- "token": "component-size-width-ratio-down",
124
- "context": "Down state"
125
- },
126
- {
127
- "token": "component-size-minimum-perspective-down",
128
- "context": "Down state"
129
- },
130
- {
131
- "token": "focus-indicator-thickness",
132
- "context": "Border (Selected)"
133
- },
134
- {
135
- "token": "corner-radius-700",
136
- "context": "Border radius"
137
- },
138
- {
139
- "token": "select-box-edge-to-checkbox",
140
- "context": "Spacing (top/side edge to checkbox)"
141
- },
142
- {
143
- "token": "default-font-family",
144
- "context": "Text (vertical)"
145
- },
146
- {
147
- "token": "regular-font-weight",
148
- "context": "Text (vertical)"
149
- },
150
- {
151
- "token": "default-font-style",
152
- "context": "Text (vertical)"
153
- },
154
- {
155
- "token": "font-size-100",
156
- "context": "Text (vertical)"
157
- },
158
- {
159
- "token": "line-height-100",
160
- "context": "Text (vertical)"
161
- },
162
- {
163
- "token": "cjk-line-height-100",
164
- "context": "Text (vertical)"
165
- },
166
- {
167
- "token": "bold-font-weight",
168
- "context": "Text (horizontal)"
169
- },
170
- {
171
- "token": "background-layer-2-color",
172
- "context": "Background"
173
- },
174
- {
175
- "token": "neutral-content-color-default",
176
- "context": "Illustration color"
177
- },
178
- {
179
- "token": "neutral-content-color-hover",
180
- "context": "Illustration color"
181
- },
182
- {
183
- "token": "netural-content-color-focus",
184
- "context": "Illustration color"
185
- },
186
- {
187
- "token": "select-box-selected-border-color",
188
- "context": "Border (selected)"
189
- },
190
- {
191
- "token": "gray-900",
192
- "context": "Border (selected)"
193
- },
194
- {
195
- "token": "focus-indicator-color",
196
- "context": "Border (focus)"
197
- },
198
- {
199
- "token": "disabled-content-color",
200
- "context": "Disabled"
201
- },
202
- {
203
- "token": "disabled-background-color",
204
- "context": "Disabled"
205
- },
206
- {
207
- "token": "drop-shadow-emphasized-default-x",
208
- "context": "Default"
209
- },
210
- {
211
- "token": "drop-shadow-emphasized-default-y",
212
- "context": "Default"
213
- },
214
- {
215
- "token": "drop-shadow-emphasized-default-blur",
216
- "context": "Default"
217
- },
218
- {
219
- "token": "drop-shadow-emphasized-default-color",
220
- "context": "Default"
221
- },
222
- {
223
- "token": "drop-shadow-emphasized-hover-x",
224
- "context": "Hover"
225
- },
226
- {
227
- "token": "drop-shadow-emphasized-hover-y",
228
- "context": "Hover"
229
- },
230
- {
231
- "token": "drop-shadow-emphasized-hover-blur",
232
- "context": "Hover"
233
- },
234
- {
235
- "token": "drop-shadow-emphasized-hover-color",
236
- "context": "Hover"
237
- },
238
- {
239
- "token": "drop-shadow-elevated-x",
240
- "context": "Focus"
241
- },
242
- {
243
- "token": "drop-shadow-elevated-y",
244
- "context": "Focus"
245
- },
246
- {
247
- "token": "drop-shadow-elevated-blur",
248
- "context": "Focus"
249
- },
250
- {
251
- "token": "drop-shadow-elevated-color",
252
- "context": "Focus"
253
- }
254
- ],
255
- "accessibility": {
256
- "intents": ["select"],
257
- "focusable": true,
258
- "keyboardIntents": ["activate"],
259
- "wcag": [
260
- {
261
- "criterion": "2.1.1",
262
- "level": "A",
263
- "title": "Keyboard"
264
- },
265
- {
266
- "criterion": "4.1.2",
267
- "level": "A",
268
- "title": "Name, Role, Value"
269
- }
270
- ]
271
- }
272
- }
@@ -1,320 +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/side-navigation.json",
4
- "specVersion": "1.0.0-draft",
5
- "name": "side-navigation",
6
- "displayName": "Side navigation",
7
- "description": "Side navigation lets users navigate the entire content of a product or a section. These can be used for a single level or a multi-level navigation.",
8
- "meta": {
9
- "category": "navigation",
10
- "documentationUrl": "https://spectrum.adobe.com/page/side-navigation/"
11
- },
12
- "options": {
13
- "items": {
14
- "type": "array",
15
- "description": "The list of navigation items.",
16
- "items": {
17
- "type": "object",
18
- "properties": {
19
- "label": {
20
- "type": "string",
21
- "description": "Text label for the navigation item."
22
- },
23
- "state": {
24
- "type": "string",
25
- "enum": ["default", "hover", "down", "keyboard focus"],
26
- "default": "default",
27
- "description": "State of the navigation item."
28
- },
29
- "icon": {
30
- "type": "string",
31
- "description": "Optional icon token for the navigation item."
32
- },
33
- "isSelected": {
34
- "type": "boolean",
35
- "default": false,
36
- "description": "Whether the item is currently selected."
37
- },
38
- "isDisabled": {
39
- "type": "boolean",
40
- "default": false,
41
- "description": "Whether the item is disabled."
42
- }
43
- },
44
- "required": ["label"]
45
- }
46
- },
47
- "selectionMode": {
48
- "type": "string",
49
- "default": "single",
50
- "description": "How selection is handled for items.",
51
- "values": [
52
- {
53
- "value": "none"
54
- },
55
- {
56
- "value": "single"
57
- },
58
- {
59
- "value": "multiple"
60
- }
61
- ]
62
- }
63
- },
64
- "states": [
65
- {
66
- "name": "hover",
67
- "trigger": "interaction"
68
- },
69
- {
70
- "name": "down",
71
- "trigger": "interaction"
72
- },
73
- {
74
- "name": "keyboard-focus",
75
- "trigger": "interaction"
76
- }
77
- ],
78
- "lifecycle": {
79
- "introduced": "1.0.0-draft"
80
- },
81
- "tokenBindings": [
82
- {
83
- "token": "component-height-100",
84
- "context": "Minimum height"
85
- },
86
- {
87
- "token": "side-navigation-width",
88
- "context": "Width (default)"
89
- },
90
- {
91
- "token": "side-navigation-minimum-width",
92
- "context": "Width (minimum)"
93
- },
94
- {
95
- "token": "side-navigation-maximum-width",
96
- "context": "Width (maximum)"
97
- },
98
- {
99
- "token": "component-size-difference-down",
100
- "context": "Component size (down)"
101
- },
102
- {
103
- "token": "component-size-width-ratio-down",
104
- "context": "Component size (down)"
105
- },
106
- {
107
- "token": "component-size-minimum-perspective-down",
108
- "context": "Component size (down)"
109
- },
110
- {
111
- "token": "side-navigation-indicator-height",
112
- "context": "Side navigation indicator"
113
- },
114
- {
115
- "token": "side-navigation-indicator-thickness",
116
- "context": "Side navigation indicator"
117
- },
118
- {
119
- "token": "side-navigation-indicator-to-content",
120
- "context": "Spacing (indicator to content)"
121
- },
122
- {
123
- "token": "workflow-icon-size-100",
124
- "context": "Icon"
125
- },
126
- {
127
- "token": "text-to-visual-100",
128
- "context": "Spacing (icon to label)"
129
- },
130
- {
131
- "token": "component-edge-to-text-100",
132
- "context": "Spacing (single-level, start/end to content)"
133
- },
134
- {
135
- "token": "side-navigation-edge-to-indicator",
136
- "context": "Spacing (single-level, start/end to content)"
137
- },
138
- {
139
- "token": "side-navigation-second-level-edge-to-indicator",
140
- "context": "Spacing (multi-level, no icon, start edge to content)"
141
- },
142
- {
143
- "token": "side-navigation-third-level-edge-to-indicator",
144
- "context": "Spacing (multi-level, no icon, start edge to content)"
145
- },
146
- {
147
- "token": "side-navigation-with-icon-second-level-edge-to-indicator",
148
- "context": "Spacing (multi-level, no icon, start edge to content)"
149
- },
150
- {
151
- "token": "side-navigation-with-icon-third-level-edge-to-indicator",
152
- "context": "Spacing (multi-level, no icon, start edge to content)"
153
- },
154
- {
155
- "token": "side-navigation-second-level-edge-to-text",
156
- "context": "Spacing (multi-level, no icon, start edge to content)"
157
- },
158
- {
159
- "token": "side-navigation-third-level-edge-to-text",
160
- "context": "Spacing (multi-level, no icon, start edge to content)"
161
- },
162
- {
163
- "token": "side-navigation-with-icon-second-level-edge-to-text",
164
- "context": "Spacing (multi-level, no icon, start edge to content)"
165
- },
166
- {
167
- "token": "side-navigation-with-icon-third-level-edge-to-text",
168
- "context": "Spacing (multi-level, no icon, start edge to content)"
169
- },
170
- {
171
- "token": "field-edge-to-disclosure-icon-75",
172
- "context": "Spacing (edge to disclosure icon)"
173
- },
174
- {
175
- "token": "side-navigation-counter-to-disclosure",
176
- "context": "Spacing (text to trailing accessory area)"
177
- },
178
- {
179
- "token": "navigation-trailing-accessory-area-to-edge",
180
- "context": "Spacing (single-level, end to content)"
181
- },
182
- {
183
- "token": "side-navigation-item-to-item",
184
- "context": "Spacing (vertically between side-nav items)"
185
- },
186
- {
187
- "token": "side-navigation-item-to-header",
188
- "context": "Spacing (vertically between side-nav item and side-nav title)"
189
- },
190
- {
191
- "token": "side-navigation-header-to-item",
192
- "context": "Spacing (vertically between side-nav item and side-nav title)"
193
- },
194
- {
195
- "token": "component-top-to-workflow-icon-100",
196
- "context": "Layout"
197
- },
198
- {
199
- "token": "component-padding-vertical-100",
200
- "context": "Spacing (top edge to label)"
201
- },
202
- {
203
- "token": "side-navigation-bottom-to-text",
204
- "context": "Spacing (label wrapping)"
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": "gray-400",
216
- "context": "Side navigation indicator "
217
- },
218
- {
219
- "token": "gray-800",
220
- "context": "Side navigation indicator "
221
- },
222
- {
223
- "token": "neutral-subdued-content-color-default",
224
- "context": "Navigation item label and icon"
225
- },
226
- {
227
- "token": "neutral-subdued-content-color-hover",
228
- "context": "Navigation item label and icon"
229
- },
230
- {
231
- "token": "neutral-subdued-content-color-down",
232
- "context": "Navigation item label and icon"
233
- },
234
- {
235
- "token": "neutral-subdued-content-color-key-focus",
236
- "context": "Navigation item label and icon"
237
- },
238
- {
239
- "token": "neutral-content-color-default",
240
- "context": "Navigation item label and icon (selected)"
241
- },
242
- {
243
- "token": "neutral-content-color-hover",
244
- "context": "Navigation item label and icon (selected)"
245
- },
246
- {
247
- "token": "neutral-content-color-down",
248
- "context": "Navigation item label and icon (selected)"
249
- },
250
- {
251
- "token": "neutral-content-color-key-focus",
252
- "context": "Navigation item label and icon (selected)"
253
- },
254
- {
255
- "token": "gray-600",
256
- "context": "Side navigation title"
257
- },
258
- {
259
- "token": "disabled-content-color",
260
- "context": "Label and icon (disabled)"
261
- },
262
- {
263
- "token": "focus-indicator-color",
264
- "context": "Focus indicator"
265
- },
266
- {
267
- "token": "default-font-family",
268
- "context": "Text "
269
- },
270
- {
271
- "token": "regular-font-weight",
272
- "context": "Text "
273
- },
274
- {
275
- "token": "default-font-style",
276
- "context": "Text "
277
- },
278
- {
279
- "token": "font-size-100",
280
- "context": "Text "
281
- },
282
- {
283
- "token": "line-height-100",
284
- "context": "Text "
285
- },
286
- {
287
- "token": "cjk-line-height-100",
288
- "context": "Text "
289
- },
290
- {
291
- "token": "bold-font-weight",
292
- "context": "Text (selected)"
293
- },
294
- {
295
- "token": "medium-font-weight",
296
- "context": "Text (Side navigation title)"
297
- },
298
- {
299
- "token": "font-size-75",
300
- "context": "Text (Side navigation title)"
301
- }
302
- ],
303
- "accessibility": {
304
- "intents": ["navigate"],
305
- "focusable": true,
306
- "keyboardIntents": ["navigate-items", "activate"],
307
- "wcag": [
308
- {
309
- "criterion": "2.1.1",
310
- "level": "A",
311
- "title": "Keyboard"
312
- },
313
- {
314
- "criterion": "4.1.2",
315
- "level": "A",
316
- "title": "Name, Role, Value"
317
- }
318
- ]
319
- }
320
- }