@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,209 +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/help-text.json",
4
- "specVersion": "1.0.0-draft",
5
- "name": "help-text",
6
- "displayName": "Help text",
7
- "description": "Help text provides either an informative description or an error message that gives more context about what a user needs to input. It’s commonly used in forms.",
8
- "meta": {
9
- "category": "inputs",
10
- "documentationUrl": "https://spectrum.adobe.com/page/help-text/"
11
- },
12
- "options": {
13
- "text": {
14
- "type": "string"
15
- },
16
- "variant": {
17
- "type": "string",
18
- "default": "neutral",
19
- "values": [
20
- {
21
- "value": "neutral"
22
- },
23
- {
24
- "value": "negative"
25
- }
26
- ]
27
- },
28
- "hideIcon": {
29
- "type": "boolean",
30
- "default": false,
31
- "description": "Only applicable if variant is negative."
32
- },
33
- "size": {
34
- "type": "string",
35
- "default": "m",
36
- "values": [
37
- {
38
- "value": "s"
39
- },
40
- {
41
- "value": "m"
42
- },
43
- {
44
- "value": "l"
45
- },
46
- {
47
- "value": "xl"
48
- }
49
- ]
50
- },
51
- "isDisabled": {
52
- "type": "boolean",
53
- "default": false,
54
- "description": "Help text cannot be both disabled and negative variant."
55
- }
56
- },
57
- "lifecycle": {
58
- "introduced": "1.0.0-draft"
59
- },
60
- "tokenBindings": [
61
- {
62
- "token": "component-height-75",
63
- "context": "Minimum Height"
64
- },
65
- {
66
- "token": "component-height-100",
67
- "context": "Minimum Height"
68
- },
69
- {
70
- "token": "component-height-200",
71
- "context": "Minimum Height"
72
- },
73
- {
74
- "token": "component-height-300",
75
- "context": "Minimum Height"
76
- },
77
- {
78
- "token": "workflow-icon-size-75",
79
- "context": "Icon size"
80
- },
81
- {
82
- "token": "workflow-icon-size-100",
83
- "context": "Icon size"
84
- },
85
- {
86
- "token": "workflow-icon-size-200",
87
- "context": "Icon size"
88
- },
89
- {
90
- "token": "workflow-icon-size-300",
91
- "context": "Icon size"
92
- },
93
- {
94
- "token": "text-to-visual-75",
95
- "context": "Spacing (alert icon to text)"
96
- },
97
- {
98
- "token": "text-to-visual-100",
99
- "context": "Spacing (alert icon to text)"
100
- },
101
- {
102
- "token": "text-to-visual-200",
103
- "context": "Spacing (alert icon to text)"
104
- },
105
- {
106
- "token": "text-to-visual-300",
107
- "context": "Spacing (alert icon to text)"
108
- },
109
- {
110
- "token": "component-top-to-workflow-icon-75",
111
- "context": "Spacing (top/bottom edge to icon)"
112
- },
113
- {
114
- "token": "component-top-to-workflow-icon-100",
115
- "context": "Spacing (top/bottom edge to icon)"
116
- },
117
- {
118
- "token": "component-top-to-workflow-icon-200",
119
- "context": "Spacing (top/bottom edge to icon)"
120
- },
121
- {
122
- "token": "component-top-to-workflow-icon-300",
123
- "context": "Spacing (top/bottom edge to icon)"
124
- },
125
- {
126
- "token": "component-top-to-text-75",
127
- "context": "Spacing (top/bottom edge to text)"
128
- },
129
- {
130
- "token": "component-top-to-text-100",
131
- "context": "Spacing (top/bottom edge to text)"
132
- },
133
- {
134
- "token": "component-top-to-text-200",
135
- "context": "Spacing (top/bottom edge to text)"
136
- },
137
- {
138
- "token": "component-top-to-text-300",
139
- "context": "Spacing (top/bottom edge to text)"
140
- },
141
- {
142
- "token": "component-bottom-to-text-75",
143
- "context": "Spacing (top/bottom edge to text)"
144
- },
145
- {
146
- "token": "component-bottom-to-text-100",
147
- "context": "Spacing (top/bottom edge to text)"
148
- },
149
- {
150
- "token": "component-bottom-to-text-200",
151
- "context": "Spacing (top/bottom edge to text)"
152
- },
153
- {
154
- "token": "component-bottom-to-text-300",
155
- "context": "Spacing (top/bottom edge to text)"
156
- },
157
- {
158
- "token": "neutral-subdued-content-color-default",
159
- "context": "Text"
160
- },
161
- {
162
- "token": "disabled-content-color-default",
163
- "context": "Text and alert icon (disabled)"
164
- },
165
- {
166
- "token": "negative-content-color-default",
167
- "context": "Text and alert icon (warning)"
168
- },
169
- {
170
- "token": "default-font-family",
171
- "context": "Text"
172
- },
173
- {
174
- "token": "regular-font-weight",
175
- "context": "Text"
176
- },
177
- {
178
- "token": "default-font-style",
179
- "context": "Text"
180
- },
181
- {
182
- "token": "font-size-75",
183
- "context": "Text"
184
- },
185
- {
186
- "token": "font-size-100",
187
- "context": "Text"
188
- },
189
- {
190
- "token": "font-size-200",
191
- "context": "Text"
192
- },
193
- {
194
- "token": "font-size-300",
195
- "context": "Text"
196
- },
197
- {
198
- "token": "line-height-100",
199
- "context": "Text"
200
- },
201
- {
202
- "token": "cjk-line-height-100",
203
- "context": "Text"
204
- }
205
- ],
206
- "accessibility": {
207
- "focusable": false
208
- }
209
- }
@@ -1,175 +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/illustrated-message.json",
4
- "specVersion": "1.0.0-draft",
5
- "name": "illustrated-message",
6
- "displayName": "Illustrated message",
7
- "description": "An illustrated message displays an illustration with a short title and description, often used for empty states or error states.",
8
- "meta": {
9
- "category": "feedback",
10
- "documentationUrl": "https://spectrum.adobe.com/page/illustrated-message/"
11
- },
12
- "options": {
13
- "illustration": {
14
- "type": "string",
15
- "description": "Optional illustration or icon displayed above the message."
16
- },
17
- "size": {
18
- "type": "string",
19
- "default": "m",
20
- "description": "Size of the illustration.",
21
- "values": [
22
- {
23
- "value": "s"
24
- },
25
- {
26
- "value": "m"
27
- },
28
- {
29
- "value": "l"
30
- }
31
- ]
32
- },
33
- "orientation": {
34
- "type": "string",
35
- "default": "vertical",
36
- "description": "Orientation of the illustrated message.",
37
- "values": [
38
- {
39
- "value": "vertical"
40
- },
41
- {
42
- "value": "horizontal"
43
- }
44
- ]
45
- },
46
- "title": {
47
- "type": "string",
48
- "description": "Primary heading text of the message."
49
- },
50
- "description": {
51
- "type": "string",
52
- "description": "Secondary descriptive text providing context or instructions."
53
- },
54
- "primaryActionLabel": {
55
- "type": "string",
56
- "description": "Label for the primary action button. If undefined, no primary action is shown."
57
- },
58
- "secondaryActionLabel": {
59
- "type": "string",
60
- "description": "Label for the secondary action button. If undefined, no secondary action is shown."
61
- }
62
- },
63
- "lifecycle": {
64
- "introduced": "1.0.0-draft"
65
- },
66
- "tokenBindings": [
67
- {
68
- "token": "illustrated-message-vertical-maximum-width",
69
- "context": "Maximum width (Vertical variant)"
70
- },
71
- {
72
- "token": "illustrated-message-horizontal-maximum-width",
73
- "context": "Maximum width (Horizontal variant)"
74
- },
75
- {
76
- "token": "spacing-200",
77
- "context": "Spacing (Illustration to heading)"
78
- },
79
- {
80
- "token": "spacing-100",
81
- "context": "Spacing (Illustration to heading)"
82
- },
83
- {
84
- "token": "spacing-75",
85
- "context": "Spacing (Heading to description - vertical)"
86
- },
87
- {
88
- "token": "spacing-300",
89
- "context": "Spacing (Description to action - vertical)"
90
- },
91
- {
92
- "token": "title-sans-serif-font-family",
93
- "context": "Title"
94
- },
95
- {
96
- "token": "title-sans-serif-font-weight",
97
- "context": "Title"
98
- },
99
- {
100
- "token": "title-sans-serif-font-style",
101
- "context": "Title"
102
- },
103
- {
104
- "token": "title-line-height",
105
- "context": "Title"
106
- },
107
- {
108
- "token": "illustrated-message-small-title-font-size",
109
- "context": "Title"
110
- },
111
- {
112
- "token": "illustrated-message-small-cjk-title-font-size",
113
- "context": "Title"
114
- },
115
- {
116
- "token": "illustrated-message-medium-title-font-size",
117
- "context": "Title"
118
- },
119
- {
120
- "token": "illustrated-message-medium-cjk-title-font-size",
121
- "context": "Title"
122
- },
123
- {
124
- "token": "illustrated-message-large-title-font-size",
125
- "context": "Title"
126
- },
127
- {
128
- "token": "illustrated-message-large-cjk-title-font-size",
129
- "context": "Title"
130
- },
131
- {
132
- "token": "body-sans-serif-font-family",
133
- "context": "Description"
134
- },
135
- {
136
- "token": "body-sans-serif-font-weight",
137
- "context": "Description"
138
- },
139
- {
140
- "token": "body-sans-serif-font-style",
141
- "context": "Description"
142
- },
143
- {
144
- "token": "line-height-200",
145
- "context": "Description"
146
- },
147
- {
148
- "token": "illustrated-message-small-body-font-size",
149
- "context": "Description"
150
- },
151
- {
152
- "token": "illustrated-message-medium-body-font-size",
153
- "context": "Description"
154
- },
155
- {
156
- "token": "illustrated-message-large-body-font-size",
157
- "context": "Description"
158
- },
159
- {
160
- "token": "neutral-content-color-default",
161
- "context": "Illustration color"
162
- },
163
- {
164
- "token": "heading-color",
165
- "context": "Heading color"
166
- },
167
- {
168
- "token": "body-color",
169
- "context": "Description color"
170
- }
171
- ],
172
- "accessibility": {
173
- "focusable": false
174
- }
175
- }
@@ -1,88 +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/in-field-progress-button.json",
4
- "specVersion": "1.0.0-draft",
5
- "name": "in-field-progress-button",
6
- "displayName": "In field progress button",
7
- "description": "In field progress buttons provide interactive controls within form fields for actions like clearing, adding, or disclosing additional content.",
8
- "meta": {
9
- "category": "actions",
10
- "documentationUrl": "https://spectrum.adobe.com/page/in-field-progress-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
- "style": {
32
- "type": "string",
33
- "values": [
34
- {
35
- "value": "disclosure"
36
- },
37
- {
38
- "value": "clear"
39
- },
40
- {
41
- "value": "dash"
42
- },
43
- {
44
- "value": "add"
45
- }
46
- ]
47
- },
48
- "isQuiet": {
49
- "type": "boolean",
50
- "default": false
51
- }
52
- },
53
- "states": [
54
- {
55
- "name": "hover",
56
- "trigger": "interaction"
57
- },
58
- {
59
- "name": "down",
60
- "trigger": "interaction"
61
- },
62
- {
63
- "name": "keyboard-focus",
64
- "trigger": "interaction"
65
- }
66
- ],
67
- "lifecycle": {
68
- "introduced": "1.0.0-draft"
69
- },
70
- "accessibility": {
71
- "role": "button",
72
- "intents": ["trigger"],
73
- "focusable": true,
74
- "keyboardIntents": ["activate"],
75
- "wcag": [
76
- {
77
- "criterion": "2.1.1",
78
- "level": "A",
79
- "title": "Keyboard"
80
- },
81
- {
82
- "criterion": "4.1.2",
83
- "level": "A",
84
- "title": "Name, Role, Value"
85
- }
86
- ]
87
- }
88
- }
@@ -1,116 +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/in-field-progress-circle.json",
4
- "specVersion": "1.0.0-draft",
5
- "name": "in-field-progress-circle",
6
- "displayName": "In field progress circle",
7
- "description": "In field progress circles indicate progress for loading states within form fields and input areas.",
8
- "meta": {
9
- "category": "feedback",
10
- "documentationUrl": "https://spectrum.adobe.com/page/in-field-progress-circle/"
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
- "staticColor": {
32
- "type": "string",
33
- "values": [
34
- {
35
- "value": "white"
36
- },
37
- {
38
- "value": "black"
39
- }
40
- ]
41
- }
42
- },
43
- "lifecycle": {
44
- "introduced": "1.0.0-draft"
45
- },
46
- "tokenBindings": [
47
- {
48
- "token": "in-field-progress-circle-size-75",
49
- "context": "Height"
50
- },
51
- {
52
- "token": "in-field-progress-circle-size-100",
53
- "context": "Height"
54
- },
55
- {
56
- "token": "in-field-progress-circle-size-200",
57
- "context": "Height"
58
- },
59
- {
60
- "token": "in-field-progress-circle-size-300",
61
- "context": "Height"
62
- },
63
- {
64
- "token": "gray-300",
65
- "context": "Track and fill"
66
- },
67
- {
68
- "token": "accent-content-color-default",
69
- "context": "Track and fill"
70
- },
71
- {
72
- "token": "transparent-white-300",
73
- "context": "Track and fill (static white)"
74
- },
75
- {
76
- "token": "transparent-white-900",
77
- "context": "Track and fill (static white)"
78
- },
79
- {
80
- "token": "transparent-black-300",
81
- "context": "Track and fill (static black)"
82
- },
83
- {
84
- "token": "transparent-black-900",
85
- "context": "Track and fill (static black)"
86
- },
87
- {
88
- "token": "progress-circle-thickness-small",
89
- "context": "S1 Thickness"
90
- },
91
- {
92
- "token": "progress-circle-thickness-medium",
93
- "context": "S1 Thickness"
94
- },
95
- {
96
- "token": "progress-circle-thickness-large",
97
- "context": "S1 Thickness"
98
- }
99
- ],
100
- "accessibility": {
101
- "role": "progressbar",
102
- "focusable": false,
103
- "wcag": [
104
- {
105
- "criterion": "4.1.2",
106
- "level": "A",
107
- "title": "Name, Role, Value"
108
- },
109
- {
110
- "criterion": "4.1.3",
111
- "level": "AA",
112
- "title": "Status Messages"
113
- }
114
- ]
115
- }
116
- }