@adobe/design-data-spec 1.5.0 → 2.0.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 (124) 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/package.json +5 -6
  6. package/rules/rules.yaml +8 -7
  7. package/schemas/component.schema.json +1 -1
  8. package/schemas/manifest.schema.json +1 -23
  9. package/schemas/platform-extension.json +79 -0
  10. package/schemas/registry-value.json +230 -0
  11. package/schemas/token.schema.json +1 -1
  12. package/spec/agent-surface.md +16 -14
  13. package/spec/anatomy-format.md +1 -1
  14. package/spec/cascade.md +1 -1
  15. package/spec/index.md +5 -5
  16. package/spec/mode-sets.md +1 -1
  17. package/spec/registry.md +6 -8
  18. package/spec/taxonomy.md +32 -32
  19. package/spec/token-format.md +11 -3
  20. package/components/accordion.json +0 -557
  21. package/components/action-bar.json +0 -214
  22. package/components/action-button.json +0 -522
  23. package/components/action-group.json +0 -134
  24. package/components/alert-banner.json +0 -134
  25. package/components/alert-dialog.json +0 -180
  26. package/components/avatar-group.json +0 -166
  27. package/components/avatar.json +0 -246
  28. package/components/badge.json +0 -594
  29. package/components/body.json +0 -54
  30. package/components/bottom-navigation-android.json +0 -72
  31. package/components/breadcrumbs.json +0 -307
  32. package/components/button-group.json +0 -86
  33. package/components/button.json +0 -586
  34. package/components/calendar.json +0 -133
  35. package/components/cards.json +0 -541
  36. package/components/checkbox-group.json +0 -91
  37. package/components/checkbox.json +0 -339
  38. package/components/close-button.json +0 -208
  39. package/components/coach-indicator.json +0 -105
  40. package/components/coach-mark.json +0 -169
  41. package/components/code.json +0 -44
  42. package/components/color-area.json +0 -138
  43. package/components/color-handle.json +0 -111
  44. package/components/color-loupe.json +0 -77
  45. package/components/color-slider.json +0 -165
  46. package/components/color-wheel.json +0 -117
  47. package/components/combo-box.json +0 -543
  48. package/components/contextual-help.json +0 -230
  49. package/components/date-picker.json +0 -471
  50. package/components/detail.json +0 -53
  51. package/components/divider.json +0 -93
  52. package/components/drop-zone.json +0 -238
  53. package/components/field-label.json +0 -219
  54. package/components/heading.json +0 -68
  55. package/components/help-text.json +0 -209
  56. package/components/illustrated-message.json +0 -175
  57. package/components/in-field-progress-button.json +0 -88
  58. package/components/in-field-progress-circle.json +0 -116
  59. package/components/in-line-alert.json +0 -233
  60. package/components/link.json +0 -167
  61. package/components/list-view.json +0 -382
  62. package/components/menu.json +0 -597
  63. package/components/meter.json +0 -199
  64. package/components/number-field.json +0 -518
  65. package/components/opacity-checkerboard.json +0 -69
  66. package/components/picker.json +0 -579
  67. package/components/popover.json +0 -174
  68. package/components/progress-bar.json +0 -229
  69. package/components/progress-circle.json +0 -132
  70. package/components/radio-button.json +0 -308
  71. package/components/radio-group.json +0 -113
  72. package/components/rating.json +0 -168
  73. package/components/scroll-zoom-bar.json +0 -82
  74. package/components/search-field.json +0 -346
  75. package/components/segmented-control.json +0 -248
  76. package/components/select-box.json +0 -272
  77. package/components/side-navigation.json +0 -320
  78. package/components/slider.json +0 -407
  79. package/components/standard-dialog.json +0 -179
  80. package/components/standard-panel.json +0 -83
  81. package/components/status-light.json +0 -334
  82. package/components/steplist.json +0 -294
  83. package/components/swatch-group.json +0 -114
  84. package/components/swatch.json +0 -240
  85. package/components/switch.json +0 -336
  86. package/components/tab-bar-ios.json +0 -72
  87. package/components/table.json +0 -435
  88. package/components/tabs.json +0 -253
  89. package/components/tag-field.json +0 -243
  90. package/components/tag-group.json +0 -87
  91. package/components/tag.json +0 -393
  92. package/components/takeover-dialog.json +0 -117
  93. package/components/text-area.json +0 -555
  94. package/components/text-field.json +0 -555
  95. package/components/thumbnail.json +0 -149
  96. package/components/title.json +0 -91
  97. package/components/toast.json +0 -156
  98. package/components/tooltip.json +0 -179
  99. package/components/tray.json +0 -32
  100. package/components/tree-view.json +0 -393
  101. package/fields/alignment.json +0 -15
  102. package/fields/anatomy.json +0 -15
  103. package/fields/color-scheme.json +0 -15
  104. package/fields/colorFamily.json +0 -15
  105. package/fields/component.json +0 -15
  106. package/fields/contrast.json +0 -15
  107. package/fields/density.json +0 -15
  108. package/fields/easing.json +0 -15
  109. package/fields/family.json +0 -15
  110. package/fields/motionRole.json +0 -15
  111. package/fields/object.json +0 -15
  112. package/fields/orientation.json +0 -15
  113. package/fields/position.json +0 -15
  114. package/fields/property.json +0 -15
  115. package/fields/scale.json +0 -15
  116. package/fields/scaleIndex.json +0 -15
  117. package/fields/shape.json +0 -15
  118. package/fields/size.json +0 -15
  119. package/fields/state.json +0 -15
  120. package/fields/structure.json +0 -15
  121. package/fields/style.json +0 -15
  122. package/fields/substructure.json +0 -15
  123. package/fields/variant.json +0 -15
  124. package/fields/weight.json +0 -15
@@ -1,114 +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/swatch-group.json",
4
- "specVersion": "1.0.0-draft",
5
- "name": "swatch-group",
6
- "displayName": "Swatch group",
7
- "description": "A swatch group is a grouping of swatches that are related to each other.",
8
- "meta": {
9
- "category": "inputs",
10
- "documentationUrl": "https://spectrum.adobe.com/page/swatch-group/"
11
- },
12
- "options": {
13
- "size": {
14
- "type": "string",
15
- "default": "m",
16
- "values": [
17
- {
18
- "value": "xs"
19
- },
20
- {
21
- "value": "s"
22
- },
23
- {
24
- "value": "m"
25
- },
26
- {
27
- "value": "l"
28
- }
29
- ]
30
- },
31
- "density": {
32
- "type": "string",
33
- "default": "regular",
34
- "values": [
35
- {
36
- "value": "compact"
37
- },
38
- {
39
- "value": "regular"
40
- },
41
- {
42
- "value": "spacious"
43
- }
44
- ]
45
- },
46
- "enableSelection": {
47
- "type": "boolean",
48
- "default": false
49
- },
50
- "selectionMode": {
51
- "type": "string",
52
- "description": "Only applicable if selection is enabled.",
53
- "default": "single",
54
- "values": [
55
- {
56
- "value": "single"
57
- },
58
- {
59
- "value": "multiple"
60
- }
61
- ]
62
- },
63
- "allowsEmptySelection": {
64
- "type": "boolean",
65
- "default": false,
66
- "description": "Only applicable if selection is enabled."
67
- },
68
- "cornerRadius": {
69
- "type": "string",
70
- "default": "none",
71
- "description": "Determines the corner radius of each swatch in the group. Partial refers to corner-radius-75.",
72
- "values": [
73
- {
74
- "value": "none"
75
- },
76
- {
77
- "value": "full"
78
- },
79
- {
80
- "value": "partial"
81
- }
82
- ]
83
- }
84
- },
85
- "lifecycle": {
86
- "introduced": "1.0.0-draft"
87
- },
88
- "tokenBindings": [
89
- {
90
- "token": "swatch-group-spacing-spacious",
91
- "context": "Spacing (spacious)"
92
- },
93
- {
94
- "token": "swatch-group-border-color",
95
- "context": "Border"
96
- },
97
- {
98
- "token": "swatch-group-border-opacity",
99
- "context": "Border"
100
- }
101
- ],
102
- "accessibility": {
103
- "role": "group",
104
- "intents": ["choose"],
105
- "focusable": false,
106
- "wcag": [
107
- {
108
- "criterion": "4.1.2",
109
- "level": "A",
110
- "title": "Name, Role, Value"
111
- }
112
- ]
113
- }
114
- }
@@ -1,240 +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/swatch.json",
4
- "specVersion": "1.0.0-draft",
5
- "name": "swatch",
6
- "displayName": "Swatch",
7
- "description": "A swatch shows a small sample of a fill — such as a color, gradient, texture, or material — that is intended to be applied to an object.",
8
- "meta": {
9
- "category": "inputs",
10
- "documentationUrl": "https://spectrum.adobe.com/page/swatch/"
11
- },
12
- "options": {
13
- "preview": {
14
- "type": "string",
15
- "description": "This will vary depending on implementation."
16
- },
17
- "size": {
18
- "type": "string",
19
- "default": "m",
20
- "values": [
21
- {
22
- "value": "xs"
23
- },
24
- {
25
- "value": "s"
26
- },
27
- {
28
- "value": "m"
29
- },
30
- {
31
- "value": "l"
32
- }
33
- ]
34
- },
35
- "shape": {
36
- "type": "string",
37
- "default": "square",
38
- "values": [
39
- {
40
- "value": "square"
41
- },
42
- {
43
- "value": "rectangle"
44
- }
45
- ]
46
- },
47
- "cornerRounding": {
48
- "type": "string",
49
- "default": "none",
50
- "description": "Determines the corner radius of the swatch. Partial refers to corner-radius-75.",
51
- "values": [
52
- {
53
- "value": "none"
54
- },
55
- {
56
- "value": "partial"
57
- },
58
- {
59
- "value": "full"
60
- }
61
- ]
62
- },
63
- "isSelected": {
64
- "type": "boolean",
65
- "default": false
66
- },
67
- "isDisabled": {
68
- "type": "boolean",
69
- "default": false
70
- }
71
- },
72
- "states": [
73
- {
74
- "name": "hover",
75
- "trigger": "interaction"
76
- },
77
- {
78
- "name": "down",
79
- "trigger": "interaction"
80
- },
81
- {
82
- "name": "keyboard-focus",
83
- "trigger": "interaction"
84
- }
85
- ],
86
- "lifecycle": {
87
- "introduced": "1.0.0-draft"
88
- },
89
- "tokenBindings": [
90
- {
91
- "token": "swatch-size-extra-small",
92
- "context": "Size (square)"
93
- },
94
- {
95
- "token": "swatch-size-small",
96
- "context": "Size (square)"
97
- },
98
- {
99
- "token": "swatch-size-medium",
100
- "context": "Size (square)"
101
- },
102
- {
103
- "token": "swatch-size-large",
104
- "context": "Size (square)"
105
- },
106
- {
107
- "token": "swatch-rectangle-width-multiplier",
108
- "context": "Width (rectangle)"
109
- },
110
- {
111
- "token": "corner-radius-75",
112
- "context": "Rounding"
113
- },
114
- {
115
- "token": "border-width-100",
116
- "context": "Border"
117
- },
118
- {
119
- "token": "border-width-200",
120
- "context": "Border and inner border (selected)"
121
- },
122
- {
123
- "token": "workflow-icon-size-50",
124
- "context": "Disabled icon asset"
125
- },
126
- {
127
- "token": "workflow-icon-size-75",
128
- "context": "Disabled icon asset"
129
- },
130
- {
131
- "token": "workflow-icon-size-100",
132
- "context": "Disabled icon asset"
133
- },
134
- {
135
- "token": "workflow-icon-size-200",
136
- "context": "Disabled icon asset"
137
- },
138
- {
139
- "token": "swatch-slash-thickness-extra-small",
140
- "context": "Slash thickness (empty)"
141
- },
142
- {
143
- "token": "swatch-slash-thickness-small",
144
- "context": "Slash thickness (empty)"
145
- },
146
- {
147
- "token": "swatch-slash-thickness-medium",
148
- "context": "Slash thickness (empty)"
149
- },
150
- {
151
- "token": "swatch-slash-thickness-large",
152
- "context": "Slash thickness (empty)"
153
- },
154
- {
155
- "token": "focus-indicator-thickness",
156
- "context": "Focus ring"
157
- },
158
- {
159
- "token": "focus-indicator-gap",
160
- "context": "Focus ring"
161
- },
162
- {
163
- "token": "spacing-75",
164
- "context": "Spacing (Tooltip to Swatch)"
165
- },
166
- {
167
- "token": "swatch-border-color",
168
- "context": "Border"
169
- },
170
- {
171
- "token": "swatch-border-opacity",
172
- "context": "Border"
173
- },
174
- {
175
- "token": "gray-1000",
176
- "context": "Border and inner border (selected)"
177
- },
178
- {
179
- "token": "gray-25",
180
- "context": "Border and inner border (selected)"
181
- },
182
- {
183
- "token": "swatch-disabled-icon-border-color",
184
- "context": "Disabled icon"
185
- },
186
- {
187
- "token": "swatch-disabled-icon-border-opacity",
188
- "context": "Disabled icon"
189
- },
190
- {
191
- "token": "white",
192
- "context": "Disabled icon"
193
- },
194
- {
195
- "token": "negative-visual-color",
196
- "context": "Slash"
197
- },
198
- {
199
- "token": "neutral-content-color-default",
200
- "context": "Dash UI icon"
201
- },
202
- {
203
- "token": "gray-100",
204
- "context": "Add “button” background"
205
- },
206
- {
207
- "token": "gray-200",
208
- "context": "Add “button” background"
209
- },
210
- {
211
- "token": "focus-indicator-color",
212
- "context": "Focus ring"
213
- },
214
- {
215
- "token": "spacing-50",
216
- "context": "Spacing (compact)"
217
- },
218
- {
219
- "token": "spacing-100",
220
- "context": "Spacing (spacious)"
221
- }
222
- ],
223
- "accessibility": {
224
- "intents": ["choose"],
225
- "focusable": true,
226
- "keyboardIntents": ["activate"],
227
- "wcag": [
228
- {
229
- "criterion": "2.1.1",
230
- "level": "A",
231
- "title": "Keyboard"
232
- },
233
- {
234
- "criterion": "4.1.2",
235
- "level": "A",
236
- "title": "Name, Role, Value"
237
- }
238
- ]
239
- }
240
- }
@@ -1,336 +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/switch.json",
4
- "specVersion": "1.0.0-draft",
5
- "name": "switch",
6
- "displayName": "Switch",
7
- "description": "Switches allow users to turn an individual option on or off. They are usually used to activate or deactivate a specific setting.",
8
- "meta": {
9
- "category": "inputs",
10
- "documentationUrl": "https://spectrum.adobe.com/page/switch/"
11
- },
12
- "options": {
13
- "label": {
14
- "type": "string"
15
- },
16
- "isSelected": {
17
- "type": "boolean",
18
- "default": false
19
- },
20
- "size": {
21
- "type": "string",
22
- "default": "m",
23
- "values": [
24
- {
25
- "value": "s"
26
- },
27
- {
28
- "value": "m"
29
- },
30
- {
31
- "value": "l"
32
- },
33
- {
34
- "value": "xl"
35
- }
36
- ]
37
- },
38
- "isEmphasized": {
39
- "type": "boolean",
40
- "default": false
41
- },
42
- "isDisabled": {
43
- "type": "boolean",
44
- "default": false
45
- },
46
- "isReadOnly": {
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": "Minimum height"
72
- },
73
- {
74
- "token": "component-height-100",
75
- "context": "Minimum height"
76
- },
77
- {
78
- "token": "component-height-200",
79
- "context": "Minimum height"
80
- },
81
- {
82
- "token": "component-height-300",
83
- "context": "Minimum height"
84
- },
85
- {
86
- "token": "corner-radius-full",
87
- "context": "Rounding"
88
- },
89
- {
90
- "token": "switch-control-width-small",
91
- "context": "Track (size)"
92
- },
93
- {
94
- "token": "switch-control-width-medium",
95
- "context": "Track (size)"
96
- },
97
- {
98
- "token": "switch-control-width-large",
99
- "context": "Track (size)"
100
- },
101
- {
102
- "token": "switch-control-width-extra-large",
103
- "context": "Track (size)"
104
- },
105
- {
106
- "token": "switch-control-height-small",
107
- "context": "Track (size)"
108
- },
109
- {
110
- "token": "switch-control-height-medium",
111
- "context": "Track (size)"
112
- },
113
- {
114
- "token": "switch-control-height-large",
115
- "context": "Track (size)"
116
- },
117
- {
118
- "token": "switch-control-height-extra-large",
119
- "context": "Track (size)"
120
- },
121
- {
122
- "token": "border-width-200",
123
- "context": "Track (border)"
124
- },
125
- {
126
- "token": "switch-handle-size-small",
127
- "context": "Handle (size)"
128
- },
129
- {
130
- "token": "switch-handle-size-medium",
131
- "context": "Handle (size)"
132
- },
133
- {
134
- "token": "switch-handle-size-large",
135
- "context": "Handle (size)"
136
- },
137
- {
138
- "token": "switch-handle-size-extra-large",
139
- "context": "Handle (size)"
140
- },
141
- {
142
- "token": "switch-handle-selected-size-small",
143
- "context": "Handle (size)"
144
- },
145
- {
146
- "token": "switch-handle-selected-size-medium",
147
- "context": "Handle (size)"
148
- },
149
- {
150
- "token": "switch-handle-selected-size-large",
151
- "context": "Handle (size)"
152
- },
153
- {
154
- "token": "switch-handle-selected-size-extra-large",
155
- "context": "Handle (size)"
156
- },
157
- {
158
- "token": "text-to-control-75",
159
- "context": "Spacing (control to label)"
160
- },
161
- {
162
- "token": "text-to-control-100",
163
- "context": "Spacing (control to label)"
164
- },
165
- {
166
- "token": "text-to-control-200",
167
- "context": "Spacing (control to label)"
168
- },
169
- {
170
- "token": "text-to-control-300",
171
- "context": "Spacing (control to label)"
172
- },
173
- {
174
- "token": "switch-top-to-control-small",
175
- "context": "Spacing (top edge to control)"
176
- },
177
- {
178
- "token": "switch-top-to-control-medium",
179
- "context": "Spacing (top edge to control)"
180
- },
181
- {
182
- "token": "switch-top-to-control-large",
183
- "context": "Spacing (top edge to control)"
184
- },
185
- {
186
- "token": "switch-top-to-control-extra-large",
187
- "context": "Spacing (top edge to control)"
188
- },
189
- {
190
- "token": "component-top-to-text-75",
191
- "context": "Spacing (top/bottom edge to label)"
192
- },
193
- {
194
- "token": "component-top-to-text-100",
195
- "context": "Spacing (top/bottom edge to label)"
196
- },
197
- {
198
- "token": "component-top-to-text-200",
199
- "context": "Spacing (top/bottom edge to label)"
200
- },
201
- {
202
- "token": "component-top-to-text-300",
203
- "context": "Spacing (top/bottom edge to label)"
204
- },
205
- {
206
- "token": "component-bottom-to-text-75",
207
- "context": "Spacing (top/bottom edge to label)"
208
- },
209
- {
210
- "token": "component-bottom-to-text-100",
211
- "context": "Spacing (top/bottom edge to label)"
212
- },
213
- {
214
- "token": "component-bottom-to-text-200",
215
- "context": "Spacing (top/bottom edge to label)"
216
- },
217
- {
218
- "token": "component-bottom-to-text-300",
219
- "context": "Spacing (top/bottom edge to label)"
220
- },
221
- {
222
- "token": "focus-indicator-thickness",
223
- "context": "Focus indicator"
224
- },
225
- {
226
- "token": "focus-indicator-gap",
227
- "context": "Focus indicator"
228
- },
229
- {
230
- "token": "component-size-difference-down",
231
- "context": "Component size (down)"
232
- },
233
- {
234
- "token": "component-size-width-ratio-down",
235
- "context": "Component size (down)"
236
- },
237
- {
238
- "token": "component-size-minimum-perspective-down",
239
- "context": "Component size (down)"
240
- },
241
- {
242
- "token": "font-size-75",
243
- "context": "Font size"
244
- },
245
- {
246
- "token": "font-size-100",
247
- "context": "Font size"
248
- },
249
- {
250
- "token": "font-size-200",
251
- "context": "Font size"
252
- },
253
- {
254
- "token": "font-size-300",
255
- "context": "Font size"
256
- },
257
- {
258
- "token": "default-font-family",
259
- "context": "Font size"
260
- },
261
- {
262
- "token": "regular-font-weight",
263
- "context": "Font size"
264
- },
265
- {
266
- "token": "line-height-100",
267
- "context": "Font size"
268
- },
269
- {
270
- "token": "cjk-line-height-100",
271
- "context": "Font size"
272
- },
273
- {
274
- "token": "neutral-content-color-default",
275
- "context": "Label"
276
- },
277
- {
278
- "token": "neutral-content-color-hover",
279
- "context": "Label"
280
- },
281
- {
282
- "token": "neutral-content-color-down",
283
- "context": "Label"
284
- },
285
- {
286
- "token": "neutral-content-color-key-focus",
287
- "context": "Label"
288
- },
289
- {
290
- "token": "gray-25",
291
- "context": "Control"
292
- },
293
- {
294
- "token": "accent-content-color-default",
295
- "context": "Control (selected, emphasized)"
296
- },
297
- {
298
- "token": "accent-content-color-hover",
299
- "context": "Control (selected, emphasized)"
300
- },
301
- {
302
- "token": "accent-content-color-down",
303
- "context": "Control (selected, emphasized)"
304
- },
305
- {
306
- "token": "accent-content-color-key-focus",
307
- "context": "Control (selected, emphasized)"
308
- },
309
- {
310
- "token": "disabled-content-color",
311
- "context": "Label (disabled)"
312
- },
313
- {
314
- "token": "focus-indicator-color",
315
- "context": "Focus indicator"
316
- }
317
- ],
318
- "accessibility": {
319
- "role": "switch",
320
- "intents": ["choose"],
321
- "focusable": true,
322
- "keyboardIntents": ["activate"],
323
- "wcag": [
324
- {
325
- "criterion": "2.1.1",
326
- "level": "A",
327
- "title": "Keyboard"
328
- },
329
- {
330
- "criterion": "4.1.2",
331
- "level": "A",
332
- "title": "Name, Role, Value"
333
- }
334
- ]
335
- }
336
- }