@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.
- package/components/accordion.json +431 -1
- package/components/action-bar.json +183 -1
- package/components/action-button.json +407 -1
- package/components/action-group.json +15 -1
- package/components/alert-banner.json +79 -1
- package/components/alert-dialog.json +107 -1
- package/components/avatar-group.json +115 -1
- package/components/avatar.json +131 -1
- package/components/badge.json +430 -1
- package/components/breadcrumbs.json +175 -1
- package/components/button-group.json +11 -1
- package/components/button.json +466 -8
- package/components/cards.json +483 -1
- package/components/checkbox-group.json +2 -1
- package/components/checkbox.json +243 -1
- package/components/close-button.json +123 -1
- package/components/coach-indicator.json +39 -1
- package/components/coach-mark.json +103 -1
- package/components/color-area.json +39 -1
- package/components/color-handle.json +51 -1
- package/components/color-loupe.json +55 -1
- package/components/color-slider.json +43 -1
- package/components/color-wheel.json +35 -1
- package/components/combo-box.json +387 -1
- package/components/contextual-help.json +83 -1
- package/components/date-picker.json +279 -1
- package/components/divider.json +47 -1
- package/components/drop-zone.json +167 -1
- package/components/field-label.json +147 -1
- package/components/help-text.json +147 -1
- package/components/illustrated-message.json +107 -1
- package/components/in-field-progress-circle.json +55 -1
- package/components/in-line-alert.json +155 -1
- package/components/link.json +91 -1
- package/components/list-view.json +263 -1
- package/components/menu.json +467 -1
- package/components/meter.json +115 -1
- package/components/number-field.json +399 -1
- package/components/opacity-checkerboard.json +19 -1
- package/components/picker.json +431 -1
- package/components/popover.json +51 -1
- package/components/progress-bar.json +115 -1
- package/components/progress-circle.json +55 -1
- package/components/radio-button.json +243 -1
- package/components/radio-group.json +2 -1
- package/components/rating.json +99 -1
- package/components/search-field.json +235 -1
- package/components/segmented-control.json +135 -1
- package/components/select-box.json +187 -1
- package/components/side-navigation.json +223 -1
- package/components/slider.json +279 -1
- package/components/standard-dialog.json +99 -1
- package/components/status-light.json +219 -1
- package/components/steplist.json +215 -1
- package/components/swatch-group.json +15 -1
- package/components/swatch.json +136 -2
- package/components/switch.json +251 -1
- package/components/table.json +271 -1
- package/components/tabs.json +151 -1
- package/components/tag-field.json +151 -1
- package/components/tag-group.json +19 -1
- package/components/tag.json +323 -1
- package/components/takeover-dialog.json +35 -1
- package/components/text-area.json +383 -1
- package/components/text-field.json +411 -1
- package/components/thumbnail.json +83 -1
- package/components/title.json +39 -0
- package/components/toast.json +99 -1
- package/components/tooltip.json +87 -1
- package/components/tree-view.json +279 -1
- package/conformance/invalid/SPEC-027/dataset.json +25 -0
- package/conformance/invalid/SPEC-027/expected-errors.json +10 -0
- package/conformance/valid/token-bindings.json +27 -0
- package/package.json +1 -1
- package/rules/rules.yaml +9 -0
- package/schemas/component.schema.json +22 -0
- package/schemas/token.schema.json +27 -0
- package/spec/agent-surface.md +39 -9
- package/spec/component-format.md +41 -16
- package/spec/token-format.md +18 -0
- package/src/validate.js +27 -3
package/components/tag.json
CHANGED
|
@@ -50,5 +50,327 @@
|
|
|
50
50
|
],
|
|
51
51
|
"lifecycle": {
|
|
52
52
|
"introduced": "1.0.0-draft"
|
|
53
|
-
}
|
|
53
|
+
},
|
|
54
|
+
"tokenBindings": [
|
|
55
|
+
{
|
|
56
|
+
"token": "avatar-size-50",
|
|
57
|
+
"context": "Components"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"token": "avatar-size-100",
|
|
61
|
+
"context": "Components"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"token": "thumbnail-size-50",
|
|
65
|
+
"context": "Components"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"token": "thumbnail-size-75",
|
|
69
|
+
"context": "Components"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"token": "thumbnail-size-100",
|
|
73
|
+
"context": "Components"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"token": "component-height-75",
|
|
77
|
+
"context": "Minimum height"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"token": "component-height-100",
|
|
81
|
+
"context": "Minimum height"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"token": "component-height-200",
|
|
85
|
+
"context": "Minimum height"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"token": "tag-minimum-width-small",
|
|
89
|
+
"context": "Minimum width (with label)"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"token": "tag-minimum-width-medium",
|
|
93
|
+
"context": "Minimum width (with label)"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"token": "tag-minimum-width-large",
|
|
97
|
+
"context": "Minimum width (with label)"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"token": "tag-maximum-width-multiplier",
|
|
101
|
+
"context": "Maximum width (with label)"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"token": "component-size-difference-down",
|
|
105
|
+
"context": "Component size (down)"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"token": "component-size-width-ratio-down",
|
|
109
|
+
"context": "Component size (down)"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"token": "component-size-minimum-perspective-down",
|
|
113
|
+
"context": "Component size (down)"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"token": "corner-radius-medium-size-small",
|
|
117
|
+
"context": "Rounding"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"token": "corner-radius-medium-size-medium",
|
|
121
|
+
"context": "Rounding"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"token": "corner-radius-medium-size-large",
|
|
125
|
+
"context": "Rounding"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"token": "workflow-icon-size-75",
|
|
129
|
+
"context": "Icon"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"token": "workflow-icon-size-100",
|
|
133
|
+
"context": "Icon"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"token": "workflow-icon-size-200",
|
|
137
|
+
"context": "Icon"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"token": "cross-icon-size-75",
|
|
141
|
+
"context": "Cross icon"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"token": "cross-icon-size-100",
|
|
145
|
+
"context": "Cross icon"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"token": "cross-icon-size-200",
|
|
149
|
+
"context": "Cross icon"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"token": "component-edge-to-visual-75",
|
|
153
|
+
"context": "Spacing (start/end edges)"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"token": "component-edge-to-visual-100",
|
|
157
|
+
"context": "Spacing (start/end edges)"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"token": "component-edge-to-visual-200",
|
|
161
|
+
"context": "Spacing (start/end edges)"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"token": "component-edge-to-text-75",
|
|
165
|
+
"context": "Spacing (start/end edges)"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"token": "component-edge-to-text-100",
|
|
169
|
+
"context": "Spacing (start/end edges)"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"token": "component-edge-to-text-200",
|
|
173
|
+
"context": "Spacing (start/end edges)"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"token": "text-to-visual-75",
|
|
177
|
+
"context": "Spacing (visual to label)"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"token": "text-to-visual-100",
|
|
181
|
+
"context": "Spacing (visual to label)"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"token": "text-to-visual-200",
|
|
185
|
+
"context": "Spacing (visual to label)"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"token": "tag-label-to-clear-icon-small",
|
|
189
|
+
"context": "Spacing (label to cross icon)"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"token": "tag-label-to-clear-icon-medium",
|
|
193
|
+
"context": "Spacing (label to cross icon)"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"token": "tag-label-to-clear-icon-large",
|
|
197
|
+
"context": "Spacing (label to cross icon)"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"token": "tag-edge-to-clear-icon-small",
|
|
201
|
+
"context": "Spacing (cross icon to end edge)"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"token": "tag-edge-to-clear-icon-medium",
|
|
205
|
+
"context": "Spacing (cross icon to end edge)"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"token": "tag-edge-to-clear-icon-large",
|
|
209
|
+
"context": "Spacing (cross icon to end edge)"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"token": "component-top-to-workflow-icon-75",
|
|
213
|
+
"context": "Spacing (top/bottom edge to icon)"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"token": "component-top-to-workflow-icon-100",
|
|
217
|
+
"context": "Spacing (top/bottom edge to icon)"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"token": "component-top-to-workflow-icon-200",
|
|
221
|
+
"context": "Spacing (top/bottom edge to icon)"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"token": "tag-top-to-avatar-small",
|
|
225
|
+
"context": "Spacing (top/bottom edge to avatar)"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"token": "tag-top-to-avatar-medium",
|
|
229
|
+
"context": "Spacing (top/bottom edge to avatar)"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"token": "tag-top-to-avatar-large",
|
|
233
|
+
"context": "Spacing (top/bottom edge to avatar)"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"token": "component-top-to-text-75",
|
|
237
|
+
"context": "Spacing (top edge to label)"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"token": "component-top-to-text-100",
|
|
241
|
+
"context": "Spacing (top edge to label)"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"token": "component-top-to-text-200",
|
|
245
|
+
"context": "Spacing (top edge to label)"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"token": "tag-top-to-cross-icon-small",
|
|
249
|
+
"context": "Spacing (top/bottom edge to cross icon)"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"token": "tag-top-to-cross-icon-medium",
|
|
253
|
+
"context": "Spacing (top/bottom edge to cross icon)"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"token": "tag-top-to-cross-icon-large",
|
|
257
|
+
"context": "Spacing (top/bottom edge to cross icon)"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"token": "focus-indicator-thickness",
|
|
261
|
+
"context": "Focus indicator"
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"token": "focus-indicator-gap",
|
|
265
|
+
"context": "Focus indicator"
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"token": "default-font-family",
|
|
269
|
+
"context": "Label"
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"token": "medium-font-weight",
|
|
273
|
+
"context": "Label"
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"token": "default-font-style",
|
|
277
|
+
"context": "Label"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"token": "font-size-75",
|
|
281
|
+
"context": "Label"
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"token": "font-size-100",
|
|
285
|
+
"context": "Label"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"token": "font-size-200",
|
|
289
|
+
"context": "Label"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"token": "line-height-100",
|
|
293
|
+
"context": "Label"
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"token": "cjk-line-height-100",
|
|
297
|
+
"context": "Label"
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"token": "accent-background-color-default",
|
|
301
|
+
"context": "Background"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"token": "accent-background-color-hover",
|
|
305
|
+
"context": "Background"
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"token": "accent-background-color-down",
|
|
309
|
+
"context": "Background"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"token": "accent-background-color-key-focus",
|
|
313
|
+
"context": "Background"
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"token": "white",
|
|
317
|
+
"context": "Icon and Clear icon"
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"token": "neutral-selected-background-color-default",
|
|
321
|
+
"context": "Background"
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"token": "neutral-selected-background-color-hover",
|
|
325
|
+
"context": "Background"
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"token": "neutral-selected-background-color-down",
|
|
329
|
+
"context": "Background"
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"token": "neutral-selected-background-color-key-focus",
|
|
333
|
+
"context": "Background"
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
"token": "gray-25",
|
|
337
|
+
"context": "Icon and Clear icon"
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
"token": "gray-100",
|
|
341
|
+
"context": "Background"
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
"token": "gray-200",
|
|
345
|
+
"context": "Background"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"token": "neutral-content-color-default",
|
|
349
|
+
"context": "Icon and Clear icon and Label"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"token": "neutral-content-color-hover",
|
|
353
|
+
"context": "Icon and Clear icon and Label"
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"token": "neutral-content-color-down",
|
|
357
|
+
"context": "Icon and Clear icon and Label"
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"token": "neutral-content-color-key-focus",
|
|
361
|
+
"context": "Icon and Clear icon and Label"
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
"token": "disabled-background-color",
|
|
365
|
+
"context": "Fill"
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"token": "disabled-content-color",
|
|
369
|
+
"context": "Icon and Clear icon"
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"token": "focus-indicator-color",
|
|
373
|
+
"context": "Focus indicator"
|
|
374
|
+
}
|
|
375
|
+
]
|
|
54
376
|
}
|
|
@@ -54,5 +54,39 @@
|
|
|
54
54
|
},
|
|
55
55
|
"lifecycle": {
|
|
56
56
|
"introduced": "1.0.0-draft"
|
|
57
|
-
}
|
|
57
|
+
},
|
|
58
|
+
"tokenBindings": [
|
|
59
|
+
{
|
|
60
|
+
"token": "takeover-dialog-width",
|
|
61
|
+
"context": "Height & width"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"token": "takeover-dialog-height",
|
|
65
|
+
"context": "Height & width"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"token": "window-to-edge",
|
|
69
|
+
"context": "Margins (dialog option)"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"token": "corner-radius-extra-large-default",
|
|
73
|
+
"context": "Rounding (dialog option)"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"token": "background-color-layer2",
|
|
77
|
+
"context": "Background"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"token": "overlay-color",
|
|
81
|
+
"context": "Overlay"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"token": "overlay-opacity",
|
|
85
|
+
"context": "Overlay"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"token": "heading-color",
|
|
89
|
+
"context": "Title"
|
|
90
|
+
}
|
|
91
|
+
]
|
|
58
92
|
}
|