@adobe/design-data-spec 0.4.0 → 0.5.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 (81) hide show
  1. package/components/accordion.json +431 -1
  2. package/components/action-bar.json +183 -1
  3. package/components/action-button.json +407 -1
  4. package/components/action-group.json +15 -1
  5. package/components/alert-banner.json +79 -1
  6. package/components/alert-dialog.json +107 -1
  7. package/components/avatar-group.json +115 -1
  8. package/components/avatar.json +131 -1
  9. package/components/badge.json +430 -1
  10. package/components/breadcrumbs.json +175 -1
  11. package/components/button-group.json +11 -1
  12. package/components/button.json +466 -8
  13. package/components/cards.json +483 -1
  14. package/components/checkbox-group.json +2 -1
  15. package/components/checkbox.json +243 -1
  16. package/components/close-button.json +123 -1
  17. package/components/coach-indicator.json +39 -1
  18. package/components/coach-mark.json +103 -1
  19. package/components/color-area.json +39 -1
  20. package/components/color-handle.json +51 -1
  21. package/components/color-loupe.json +55 -1
  22. package/components/color-slider.json +43 -1
  23. package/components/color-wheel.json +35 -1
  24. package/components/combo-box.json +387 -1
  25. package/components/contextual-help.json +83 -1
  26. package/components/date-picker.json +279 -1
  27. package/components/divider.json +47 -1
  28. package/components/drop-zone.json +167 -1
  29. package/components/field-label.json +147 -1
  30. package/components/help-text.json +147 -1
  31. package/components/illustrated-message.json +107 -1
  32. package/components/in-field-progress-circle.json +55 -1
  33. package/components/in-line-alert.json +155 -1
  34. package/components/link.json +91 -1
  35. package/components/list-view.json +263 -1
  36. package/components/menu.json +467 -1
  37. package/components/meter.json +115 -1
  38. package/components/number-field.json +399 -1
  39. package/components/opacity-checkerboard.json +19 -1
  40. package/components/picker.json +431 -1
  41. package/components/popover.json +51 -1
  42. package/components/progress-bar.json +115 -1
  43. package/components/progress-circle.json +55 -1
  44. package/components/radio-button.json +243 -1
  45. package/components/radio-group.json +2 -1
  46. package/components/rating.json +99 -1
  47. package/components/search-field.json +235 -1
  48. package/components/segmented-control.json +135 -1
  49. package/components/select-box.json +187 -1
  50. package/components/side-navigation.json +223 -1
  51. package/components/slider.json +279 -1
  52. package/components/standard-dialog.json +99 -1
  53. package/components/status-light.json +219 -1
  54. package/components/steplist.json +215 -1
  55. package/components/swatch-group.json +15 -1
  56. package/components/swatch.json +136 -2
  57. package/components/switch.json +251 -1
  58. package/components/table.json +271 -1
  59. package/components/tabs.json +151 -1
  60. package/components/tag-field.json +151 -1
  61. package/components/tag-group.json +19 -1
  62. package/components/tag.json +323 -1
  63. package/components/takeover-dialog.json +35 -1
  64. package/components/text-area.json +383 -1
  65. package/components/text-field.json +411 -1
  66. package/components/thumbnail.json +83 -1
  67. package/components/title.json +39 -0
  68. package/components/toast.json +99 -1
  69. package/components/tooltip.json +87 -1
  70. package/components/tree-view.json +279 -1
  71. package/conformance/invalid/SPEC-027/dataset.json +25 -0
  72. package/conformance/invalid/SPEC-027/expected-errors.json +10 -0
  73. package/conformance/valid/token-bindings.json +27 -0
  74. package/package.json +1 -1
  75. package/rules/rules.yaml +9 -0
  76. package/schemas/component.schema.json +22 -0
  77. package/schemas/token.schema.json +27 -0
  78. package/spec/agent-surface.md +39 -9
  79. package/spec/component-format.md +41 -16
  80. package/spec/token-format.md +18 -0
  81. package/src/validate.js +27 -3
@@ -57,5 +57,247 @@
57
57
  ],
58
58
  "lifecycle": {
59
59
  "introduced": "1.0.0-draft"
60
- }
60
+ },
61
+ "tokenBindings": [
62
+ {
63
+ "token": "checkbox-control-size-small",
64
+ "context": "S2 Control (size)"
65
+ },
66
+ {
67
+ "token": "checkbox-control-size-medium",
68
+ "context": "S2 Control (size)"
69
+ },
70
+ {
71
+ "token": "checkbox-control-size-large",
72
+ "context": "S2 Control (size)"
73
+ },
74
+ {
75
+ "token": "checkbox-control-size-extra-large",
76
+ "context": "S2 Control (size)"
77
+ },
78
+ {
79
+ "token": "checkbox-top-to-control-small",
80
+ "context": "S2 Spacing (top edge to control)"
81
+ },
82
+ {
83
+ "token": "checkbox-top-to-control-medium",
84
+ "context": "S2 Spacing (top edge to control)"
85
+ },
86
+ {
87
+ "token": "checkbox-top-to-control-large",
88
+ "context": "S2 Spacing (top edge to control)"
89
+ },
90
+ {
91
+ "token": "checkbox-top-to-control-extra-large",
92
+ "context": "S2 Spacing (top edge to control)"
93
+ },
94
+ {
95
+ "token": "neutral-background-color-selected-default",
96
+ "context": "S2 Control (selected, non emphasized)"
97
+ },
98
+ {
99
+ "token": "neutral-background-color-selected-hover",
100
+ "context": "S2 Control (selected, non emphasized)"
101
+ },
102
+ {
103
+ "token": "neutral-background-color-selected-key-focus",
104
+ "context": "S2 Control (selected, non emphasized)"
105
+ },
106
+ {
107
+ "token": "component-height-75",
108
+ "context": "Minimum height"
109
+ },
110
+ {
111
+ "token": "component-height-100",
112
+ "context": "Minimum height"
113
+ },
114
+ {
115
+ "token": "component-height-200",
116
+ "context": "Minimum height"
117
+ },
118
+ {
119
+ "token": "component-height-300",
120
+ "context": "Minimum height"
121
+ },
122
+ {
123
+ "token": "component-size-difference-down",
124
+ "context": "Component size (down)"
125
+ },
126
+ {
127
+ "token": "component-size-width-ratio-down",
128
+ "context": "Component size (down)"
129
+ },
130
+ {
131
+ "token": "component-size-minimum-perspective-down",
132
+ "context": "Component size (down)"
133
+ },
134
+ {
135
+ "token": "border-width-200",
136
+ "context": "Control (border)"
137
+ },
138
+ {
139
+ "token": "corner-radius-small-size-small",
140
+ "context": "Control (rounding)"
141
+ },
142
+ {
143
+ "token": "corner-radius-small-size-medium",
144
+ "context": "Control (rounding)"
145
+ },
146
+ {
147
+ "token": "corner-radius-small-size-large",
148
+ "context": "Control (rounding)"
149
+ },
150
+ {
151
+ "token": "corner-radius-small-size-extra-large",
152
+ "context": "Control (rounding)"
153
+ },
154
+ {
155
+ "token": "text-to-control-75",
156
+ "context": "Spacing (control to label)"
157
+ },
158
+ {
159
+ "token": "text-to-control-100",
160
+ "context": "Spacing (control to label)"
161
+ },
162
+ {
163
+ "token": "text-to-control-200",
164
+ "context": "Spacing (control to label)"
165
+ },
166
+ {
167
+ "token": "text-to-control-300",
168
+ "context": "Spacing (control to label)"
169
+ },
170
+ {
171
+ "token": "component-top-to-text-75",
172
+ "context": "Spacing (top/bottom edge to label)"
173
+ },
174
+ {
175
+ "token": "component-top-to-text-100",
176
+ "context": "Spacing (top/bottom edge to label)"
177
+ },
178
+ {
179
+ "token": "component-top-to-text-200",
180
+ "context": "Spacing (top/bottom edge to label)"
181
+ },
182
+ {
183
+ "token": "component-top-to-text-300",
184
+ "context": "Spacing (top/bottom edge to label)"
185
+ },
186
+ {
187
+ "token": "component-bottom-to-text-75",
188
+ "context": "Spacing (top/bottom edge to label)"
189
+ },
190
+ {
191
+ "token": "component-bottom-to-text-100",
192
+ "context": "Spacing (top/bottom edge to label)"
193
+ },
194
+ {
195
+ "token": "component-bottom-to-text-200",
196
+ "context": "Spacing (top/bottom edge to label)"
197
+ },
198
+ {
199
+ "token": "component-bottom-to-text-300",
200
+ "context": "Spacing (top/bottom edge to label)"
201
+ },
202
+ {
203
+ "token": "focus-indicator-thickness",
204
+ "context": "Focus ring"
205
+ },
206
+ {
207
+ "token": "focus-indicator-gap",
208
+ "context": "Focus ring"
209
+ },
210
+ {
211
+ "token": "spacing-300",
212
+ "context": "Checkbox group spacing (horizontal)"
213
+ },
214
+ {
215
+ "token": "neutral-content-color-default",
216
+ "context": "Label"
217
+ },
218
+ {
219
+ "token": "neutral-content-color-hover",
220
+ "context": "Label"
221
+ },
222
+ {
223
+ "token": "neutral-content-color-down",
224
+ "context": "Label"
225
+ },
226
+ {
227
+ "token": "neutral-content-color-key-focus",
228
+ "context": "Label"
229
+ },
230
+ {
231
+ "token": "gray-25",
232
+ "context": "Control"
233
+ },
234
+ {
235
+ "token": "accent-content-color-default",
236
+ "context": "Control (selected, emphasized)"
237
+ },
238
+ {
239
+ "token": "accent-content-color-hover",
240
+ "context": "Control (selected, emphasized)"
241
+ },
242
+ {
243
+ "token": "accent-content-color-down",
244
+ "context": "Control (selected, emphasized)"
245
+ },
246
+ {
247
+ "token": "accent-content-color-key-focus",
248
+ "context": "Control (selected, emphasized)"
249
+ },
250
+ {
251
+ "token": "disabled-content-color",
252
+ "context": "Label (disabled)"
253
+ },
254
+ {
255
+ "token": "focus-indicator-color",
256
+ "context": "Focus ring"
257
+ },
258
+ {
259
+ "token": "negative-color-900",
260
+ "context": "Checkbox colors"
261
+ },
262
+ {
263
+ "token": "negative-color-1000",
264
+ "context": "Checkbox colors"
265
+ },
266
+ {
267
+ "token": "default-font-family",
268
+ "context": "Label"
269
+ },
270
+ {
271
+ "token": "regular-font-weight",
272
+ "context": "Label"
273
+ },
274
+ {
275
+ "token": "default-font-style",
276
+ "context": "Label"
277
+ },
278
+ {
279
+ "token": "font-size-75",
280
+ "context": "Label"
281
+ },
282
+ {
283
+ "token": "font-size-100",
284
+ "context": "Label"
285
+ },
286
+ {
287
+ "token": "font-size-200",
288
+ "context": "Label"
289
+ },
290
+ {
291
+ "token": "font-size-300",
292
+ "context": "Label"
293
+ },
294
+ {
295
+ "token": "line-height-100",
296
+ "context": "Label"
297
+ },
298
+ {
299
+ "token": "cjk-line-height-100",
300
+ "context": "Label"
301
+ }
302
+ ]
61
303
  }
@@ -44,5 +44,127 @@
44
44
  ],
45
45
  "lifecycle": {
46
46
  "introduced": "1.0.0-draft"
47
- }
47
+ },
48
+ "tokenBindings": [
49
+ {
50
+ "token": "component-height-75",
51
+ "context": "Button size"
52
+ },
53
+ {
54
+ "token": "component-height-100",
55
+ "context": "Button size"
56
+ },
57
+ {
58
+ "token": "component-height-200",
59
+ "context": "Button size"
60
+ },
61
+ {
62
+ "token": "component-height-300",
63
+ "context": "Button size"
64
+ },
65
+ {
66
+ "token": "component-size-difference-down",
67
+ "context": "Button size (down)"
68
+ },
69
+ {
70
+ "token": "component-size-width-ratio-down",
71
+ "context": "Button size (down)"
72
+ },
73
+ {
74
+ "token": "component-size-minimum-perspective-down",
75
+ "context": "Button size (down)"
76
+ },
77
+ {
78
+ "token": "cross-icon-size-200",
79
+ "context": "Cross icon size"
80
+ },
81
+ {
82
+ "token": "cross-icon-size-300",
83
+ "context": "Cross icon size"
84
+ },
85
+ {
86
+ "token": "cross-icon-size-400",
87
+ "context": "Cross icon size"
88
+ },
89
+ {
90
+ "token": "cross-icon-size-500",
91
+ "context": "Cross icon size"
92
+ },
93
+ {
94
+ "token": "focus-indicator-thickness",
95
+ "context": "Focus ring "
96
+ },
97
+ {
98
+ "token": "focus-indicator-gap",
99
+ "context": "Focus ring "
100
+ },
101
+ {
102
+ "token": "neutral-content-color-default",
103
+ "context": "Cross icon"
104
+ },
105
+ {
106
+ "token": "neutral-content-color-hover",
107
+ "context": "Cross icon"
108
+ },
109
+ {
110
+ "token": "neutral-content-color-down",
111
+ "context": "Cross icon"
112
+ },
113
+ {
114
+ "token": "neutral-content-color-key-focus",
115
+ "context": "Cross icon"
116
+ },
117
+ {
118
+ "token": "disabled-content-color",
119
+ "context": "Cross icon"
120
+ },
121
+ {
122
+ "token": "focus-indicator-color",
123
+ "context": "Focus ring"
124
+ },
125
+ {
126
+ "token": "gray-100",
127
+ "context": "Background "
128
+ },
129
+ {
130
+ "token": "transparent-white-800",
131
+ "context": "Cross icon (static white)"
132
+ },
133
+ {
134
+ "token": "transparent-white-900",
135
+ "context": "Cross icon (static white)"
136
+ },
137
+ {
138
+ "token": "disabled-static-white-background-color",
139
+ "context": "Cross icon (static white)"
140
+ },
141
+ {
142
+ "token": "static-white-focus-indicator-color",
143
+ "context": "Focus ring (static white)"
144
+ },
145
+ {
146
+ "token": "transparent-white-100",
147
+ "context": "Background (static white)"
148
+ },
149
+ {
150
+ "token": "transparent-black-800",
151
+ "context": "Cross icon (static black) "
152
+ },
153
+ {
154
+ "token": "transparent-black-900",
155
+ "context": "Cross icon (static black) "
156
+ },
157
+ {
158
+ "token": "disabled-static-black-background-color",
159
+ "context": "Cross icon (static black) "
160
+ },
161
+ {
162
+ "token": "static-black-focus-indicator-color",
163
+ "context": "Focus ring (static black) "
164
+ },
165
+ {
166
+ "token": "transparent-black-100",
167
+ "context": "Background (static black)"
168
+ }
169
+ ]
48
170
  }
@@ -34,5 +34,43 @@
34
34
  },
35
35
  "lifecycle": {
36
36
  "introduced": "1.0.0-draft"
37
- }
37
+ },
38
+ "tokenBindings": [
39
+ {
40
+ "token": "coach-indicator-collapsed-ring-thickness",
41
+ "context": "Ring"
42
+ },
43
+ {
44
+ "token": "coach-indicator-expanded-ring-thickness",
45
+ "context": "Ring"
46
+ },
47
+ {
48
+ "token": "coach-indicator-collapsed-gap",
49
+ "context": "Ring"
50
+ },
51
+ {
52
+ "token": "coach-indicator-expanded-gap",
53
+ "context": "Ring"
54
+ },
55
+ {
56
+ "token": "coach-indicator-collapsed-ring-rounding-increment",
57
+ "context": "Rounding"
58
+ },
59
+ {
60
+ "token": "coach-indicator-expanded-ring-rounding-increment",
61
+ "context": "Rounding"
62
+ },
63
+ {
64
+ "token": "coach-indicator-color",
65
+ "context": "Indicator (Default)"
66
+ },
67
+ {
68
+ "token": "coach-indicator-opacity",
69
+ "context": "Indicator (Default)"
70
+ },
71
+ {
72
+ "token": "white",
73
+ "context": "Indicator (Static white)"
74
+ }
75
+ ]
38
76
  }
@@ -51,5 +51,107 @@
51
51
  },
52
52
  "lifecycle": {
53
53
  "introduced": "1.0.0-draft"
54
- }
54
+ },
55
+ "tokenBindings": [
56
+ {
57
+ "token": "coach-mark-width",
58
+ "context": "Width"
59
+ },
60
+ {
61
+ "token": "coach-mark-minimum-width",
62
+ "context": "Width"
63
+ },
64
+ {
65
+ "token": "coach-mark-maximum-width",
66
+ "context": "Width"
67
+ },
68
+ {
69
+ "token": "coach-mark-edge-to-content",
70
+ "context": "Spacing (top/bottom/start/end edge to text)"
71
+ },
72
+ {
73
+ "token": "spacing-200",
74
+ "context": "Spacing (header to body, body to footer)"
75
+ },
76
+ {
77
+ "token": "spacing-300",
78
+ "context": "Spacing (header to body, body to footer)"
79
+ },
80
+ {
81
+ "token": "coach-mark-pagination-text-to-bottom-edge",
82
+ "context": "Spacing (pagination to bottom)"
83
+ },
84
+ {
85
+ "token": "coach-mark-media-minimum-height",
86
+ "context": "Media (16:9)"
87
+ },
88
+ {
89
+ "token": "coach-mark-media-height",
90
+ "context": "Media (4:3)"
91
+ },
92
+ {
93
+ "token": "spacing-100",
94
+ "context": "Spacing (action button to menu)"
95
+ },
96
+ {
97
+ "token": "title-sans-serif-font-family",
98
+ "context": "Title"
99
+ },
100
+ {
101
+ "token": "title-sans-serif-font-weight",
102
+ "context": "Title"
103
+ },
104
+ {
105
+ "token": "title-serif-font-style",
106
+ "context": "Title"
107
+ },
108
+ {
109
+ "token": "coach-mark-title-font-size",
110
+ "context": "Title"
111
+ },
112
+ {
113
+ "token": "title-line-height",
114
+ "context": "Title"
115
+ },
116
+ {
117
+ "token": "body-sans-serif-font-family",
118
+ "context": "Body"
119
+ },
120
+ {
121
+ "token": "body-sans-serif-font-weight",
122
+ "context": "Body"
123
+ },
124
+ {
125
+ "token": "body-serif-font-style",
126
+ "context": "Body"
127
+ },
128
+ {
129
+ "token": "coach-mark-body-font-size",
130
+ "context": "Body"
131
+ },
132
+ {
133
+ "token": "line-height-200",
134
+ "context": "Body"
135
+ },
136
+ {
137
+ "token": "medium-font-weight",
138
+ "context": "Pagination"
139
+ },
140
+ {
141
+ "token": "coach-mark-pagination-body-font-size",
142
+ "context": "Pagination"
143
+ },
144
+ {
145
+ "token": "heading-color",
146
+ "context": "Color"
147
+ },
148
+ {
149
+ "token": "body-color",
150
+ "context": "Color"
151
+ },
152
+ {
153
+ "token": "coach-mark-pagination-color",
154
+ "context": "Color"
155
+ }
156
+ ]
55
157
  }
@@ -73,5 +73,43 @@
73
73
  ],
74
74
  "lifecycle": {
75
75
  "introduced": "1.0.0-draft"
76
- }
76
+ },
77
+ "tokenBindings": [
78
+ {
79
+ "token": "color-area-width",
80
+ "context": "Size"
81
+ },
82
+ {
83
+ "token": "color-area-minimum-width",
84
+ "context": "Size"
85
+ },
86
+ {
87
+ "token": "color-area-height",
88
+ "context": "Size"
89
+ },
90
+ {
91
+ "token": "color-area-minimum-height",
92
+ "context": "Size"
93
+ },
94
+ {
95
+ "token": "color-area-border-width",
96
+ "context": "Color area border"
97
+ },
98
+ {
99
+ "token": "color-area-border-rounding",
100
+ "context": "Color area border"
101
+ },
102
+ {
103
+ "token": "color-area-border-color",
104
+ "context": "Color area border"
105
+ },
106
+ {
107
+ "token": "color-area-border-opacity",
108
+ "context": "Color area border"
109
+ },
110
+ {
111
+ "token": "disabled-background-color",
112
+ "context": "Disabled"
113
+ }
114
+ ]
77
115
  }
@@ -31,5 +31,55 @@
31
31
  },
32
32
  "lifecycle": {
33
33
  "introduced": "1.0.0-draft"
34
- }
34
+ },
35
+ "tokenBindings": [
36
+ {
37
+ "token": "color-handle-size",
38
+ "context": "Size (keyboard focus)"
39
+ },
40
+ {
41
+ "token": "color-handle-size-key-focus",
42
+ "context": "Size (keyboard focus)"
43
+ },
44
+ {
45
+ "token": "color-handle-border-width",
46
+ "context": "Border"
47
+ },
48
+ {
49
+ "token": "color-handle-inner-border-width",
50
+ "context": "Border"
51
+ },
52
+ {
53
+ "token": "color-handle-outer-border-width",
54
+ "context": "Border"
55
+ },
56
+ {
57
+ "token": "white",
58
+ "context": "Border"
59
+ },
60
+ {
61
+ "token": "color-handle-inner-border-color",
62
+ "context": "Border"
63
+ },
64
+ {
65
+ "token": "color-handle-inner-border-opacity",
66
+ "context": "Border"
67
+ },
68
+ {
69
+ "token": "color-handle-outer-border-color",
70
+ "context": "Border"
71
+ },
72
+ {
73
+ "token": "color-handle-outer-border-opacity",
74
+ "context": "Border"
75
+ },
76
+ {
77
+ "token": "disabled-content-color",
78
+ "context": "Border (disabled)"
79
+ },
80
+ {
81
+ "token": "disabled-background-color",
82
+ "context": "Border (disabled)"
83
+ }
84
+ ]
35
85
  }
@@ -16,5 +16,59 @@
16
16
  },
17
17
  "lifecycle": {
18
18
  "introduced": "1.0.0-draft"
19
- }
19
+ },
20
+ "tokenBindings": [
21
+ {
22
+ "token": "color-loupe-height",
23
+ "context": "Size"
24
+ },
25
+ {
26
+ "token": "color-loupe-width",
27
+ "context": "Size"
28
+ },
29
+ {
30
+ "token": "color-loupe-outer-border-width",
31
+ "context": "Border"
32
+ },
33
+ {
34
+ "token": "color-loupe-inner-border-width",
35
+ "context": "Border"
36
+ },
37
+ {
38
+ "token": "color-loupe-bottom-to-color-handle",
39
+ "context": "Spacing"
40
+ },
41
+ {
42
+ "token": "drop-shadow-elevated-x",
43
+ "context": "Shadows"
44
+ },
45
+ {
46
+ "token": "drop-shadow-elevated-y",
47
+ "context": "Shadows"
48
+ },
49
+ {
50
+ "token": "drop-shadow-elevated-blur",
51
+ "context": "Shadows"
52
+ },
53
+ {
54
+ "token": "color-loupe-outer-border",
55
+ "context": "Border"
56
+ },
57
+ {
58
+ "token": "drop-shadow-x",
59
+ "context": "S1 Shadows"
60
+ },
61
+ {
62
+ "token": "color-loupe-drop-shadow-y",
63
+ "context": "S1 Shadows"
64
+ },
65
+ {
66
+ "token": "color-loupe-drop-shadow-blur",
67
+ "context": "S1 Shadows"
68
+ },
69
+ {
70
+ "token": "color-loupe-drop-shadow-color",
71
+ "context": "S1 Shadows"
72
+ }
73
+ ]
20
74
  }