@adobe/design-data-spec 0.4.0 → 0.6.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
|
@@ -99,5 +99,387 @@
|
|
|
99
99
|
],
|
|
100
100
|
"lifecycle": {
|
|
101
101
|
"introduced": "1.0.0-draft"
|
|
102
|
-
}
|
|
102
|
+
},
|
|
103
|
+
"tokenBindings": [
|
|
104
|
+
{
|
|
105
|
+
"token": "field-default-width-small",
|
|
106
|
+
"context": "Width (default)"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"token": "field-default-width-medium",
|
|
110
|
+
"context": "Width (default)"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"token": "field-default-width-large",
|
|
114
|
+
"context": "Width (default)"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"token": "field-default-width-extra-large",
|
|
118
|
+
"context": "Width (default)"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"token": "text-area-minimum-width",
|
|
122
|
+
"context": "Width (minimum)"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"token": "text-area-minimum-height",
|
|
126
|
+
"context": "Height"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"token": "corner-radius-medium-size-small",
|
|
130
|
+
"context": "Rounding"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"token": "corner-radius-medium-size-medium",
|
|
134
|
+
"context": "Rounding"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"token": "corner-radius-medium-size-large",
|
|
138
|
+
"context": "Rounding"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"token": "corner-radius-medium-size-extra-large",
|
|
142
|
+
"context": "Rounding"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"token": "component-edge-to-text-75",
|
|
146
|
+
"context": "Spacing (start/end edge to value)"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"token": "component-edge-to-text-100",
|
|
150
|
+
"context": "Spacing (start/end edge to value)"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"token": "component-edge-to-text-200",
|
|
154
|
+
"context": "Spacing (start/end edge to value)"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"token": "component-edge-to-text-300",
|
|
158
|
+
"context": "Spacing (start/end edge to value)"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"token": "workflow-icon-size-75",
|
|
162
|
+
"context": "Prefix min-width"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"token": "workflow-icon-size-100",
|
|
166
|
+
"context": "Prefix min-width"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"token": "workflow-icon-size-200",
|
|
170
|
+
"context": "Prefix min-width"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"token": "workflow-icon-size-300",
|
|
174
|
+
"context": "Prefix min-width"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"token": "text-to-visual-75",
|
|
178
|
+
"context": "Spacing (prefix to value/placeholder)"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"token": "text-to-visual-100",
|
|
182
|
+
"context": "Spacing (prefix to value/placeholder)"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"token": "text-to-visual-200",
|
|
186
|
+
"context": "Spacing (prefix to value/placeholder)"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"token": "text-to-visual-300",
|
|
190
|
+
"context": "Spacing (prefix to value/placeholder)"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"token": "border-width-200",
|
|
194
|
+
"context": "Border"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"token": "focus-indicator-thickness",
|
|
198
|
+
"context": "Focus indicator"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"token": "field-label-to-component",
|
|
202
|
+
"context": "Spacing (field label to text area)"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"token": "spacing-200",
|
|
206
|
+
"context": "Spacing (character count to field label)"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"token": "side-label-character-count-to-field",
|
|
210
|
+
"context": "Spacing (side label, field to character count)"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"token": "help-text-to-component",
|
|
214
|
+
"context": "Spacing (text area to help text)"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"token": "component-top-to-workflow-icon-75",
|
|
218
|
+
"context": "Spacing (top/bottom edge to alert icon)"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"token": "component-top-to-workflow-icon-100",
|
|
222
|
+
"context": "Spacing (top/bottom edge to alert icon)"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"token": "component-top-to-workflow-icon-200",
|
|
226
|
+
"context": "Spacing (top/bottom edge to alert icon)"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"token": "component-top-to-workflow-icon-300",
|
|
230
|
+
"context": "Spacing (top/bottom edge to alert icon)"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"token": "field-edge-to-alert-icon-small",
|
|
234
|
+
"context": "Spacing (alert icon to end edge)"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"token": "field-edge-to-alert-icon-medium",
|
|
238
|
+
"context": "Spacing (alert icon to end edge)"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"token": "field-edge-to-alert-icon-large",
|
|
242
|
+
"context": "Spacing (alert icon to end edge)"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"token": "field-edge-to-alert-icon-extra-large",
|
|
246
|
+
"context": "Spacing (alert icon to end edge)"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"token": "checkmark-icon-size-75",
|
|
250
|
+
"context": "Checkmark UI icon asset"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"token": "checkmark-icon-size-100",
|
|
254
|
+
"context": "Checkmark UI icon asset"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"token": "checkmark-icon-size-200",
|
|
258
|
+
"context": "Checkmark UI icon asset"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"token": "checkmark-icon-size-300",
|
|
262
|
+
"context": "Checkmark UI icon asset"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"token": "field-top-to-validation-icon-small",
|
|
266
|
+
"context": "Spacing (top/bottom edge to validation icon)"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"token": "field-top-to-validation-icon-medium",
|
|
270
|
+
"context": "Spacing (top/bottom edge to validation icon)"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"token": "field-top-to-validation-icon-large",
|
|
274
|
+
"context": "Spacing (top/bottom edge to validation icon)"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"token": "field-top-to-validation-icon-extra-large",
|
|
278
|
+
"context": "Spacing (top/bottom edge to validation icon)"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"token": "field-edge-to-validation-icon-small",
|
|
282
|
+
"context": "Spacing (validation icon to end edge)"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"token": "field-edge-to-validation-icon-medium",
|
|
286
|
+
"context": "Spacing (validation icon to end edge)"
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"token": "field-edge-to-validation-icon-large",
|
|
290
|
+
"context": "Spacing (validation icon to end edge)"
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"token": "field-edge-to-validation-icon-extra-large",
|
|
294
|
+
"context": "Spacing (validation icon to end edge)"
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"token": "gray-25",
|
|
298
|
+
"context": "Background and border"
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"token": "gray-300",
|
|
302
|
+
"context": "Background and border"
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"token": "gray-400",
|
|
306
|
+
"context": "Background and border"
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"token": "gray-900",
|
|
310
|
+
"context": "Background and border"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"token": "gray-800",
|
|
314
|
+
"context": "Background and border"
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"token": "neutral-subdued-content-color-default",
|
|
318
|
+
"context": "Background and border"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"token": "negative-border-color-default",
|
|
322
|
+
"context": "Border (error)"
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"token": "negative-border-color-hover",
|
|
326
|
+
"context": "Border (error)"
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"token": "negative-border-color-focus-hover",
|
|
330
|
+
"context": "Border (error)"
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"token": "negative-border-color-focus",
|
|
334
|
+
"context": "Border (error)"
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"token": "negative-border-color-key-focus",
|
|
338
|
+
"context": "Border (error)"
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"token": "neutral-content-color-default",
|
|
342
|
+
"context": "Value"
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"token": "neutral-content-color-hover",
|
|
346
|
+
"context": "Value"
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
"token": "neutral-content-color-focus-hover",
|
|
350
|
+
"context": "Value"
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
"token": "neutral-content-color-focus",
|
|
354
|
+
"context": "Value"
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"token": "neutral-content-color-key-focus",
|
|
358
|
+
"context": "Value"
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
"token": "negative-visual-color",
|
|
362
|
+
"context": "Alert icon"
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"token": "positive-visual-color",
|
|
366
|
+
"context": "Positive icon"
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
"token": "disabled-border-color",
|
|
370
|
+
"context": "Disabled"
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"token": "disabled-content-color",
|
|
374
|
+
"context": "Disabled"
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
"token": "focus-indicator-color",
|
|
378
|
+
"context": "Focus ring"
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"token": "gray-600",
|
|
382
|
+
"context": "Leading icon"
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
"token": "default-font-family",
|
|
386
|
+
"context": "Label"
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"token": "regular-font-weight",
|
|
390
|
+
"context": "Label"
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
"token": "default-font-style",
|
|
394
|
+
"context": "Label"
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
"token": "component-s-regular",
|
|
398
|
+
"context": "Label"
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
"token": "component-m-regular",
|
|
402
|
+
"context": "Label"
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"token": "component-l-regular",
|
|
406
|
+
"context": "Label"
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
"token": "component-xl-regular",
|
|
410
|
+
"context": "Label"
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
"token": "line-height-font-size-75",
|
|
414
|
+
"context": "Label"
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
"token": "line-height-font-size-100",
|
|
418
|
+
"context": "Label"
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
"token": "line-height-font-size-200",
|
|
422
|
+
"context": "Label"
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
"token": "line-height-font-size-300",
|
|
426
|
+
"context": "Label"
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
"token": "cjk-line-height-100",
|
|
430
|
+
"context": "Label"
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
"token": "medium-font-weight",
|
|
434
|
+
"context": "Prefix"
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
"token": "component-s-medium",
|
|
438
|
+
"context": "Prefix"
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
"token": "component-m-medium",
|
|
442
|
+
"context": "Prefix"
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
"token": "component-l-medium",
|
|
446
|
+
"context": "Prefix"
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
"token": "component-xl-medium",
|
|
450
|
+
"context": "Prefix"
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
"token": "component-top-to-text-50",
|
|
454
|
+
"context": "Spacing (top/bottom edge to text)"
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
"token": "component-top-to-text-100",
|
|
458
|
+
"context": "Spacing (top/bottom edge to text)"
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
"token": "field-label-top-to-asterisk-large",
|
|
462
|
+
"context": "Spacing (top/bottom edge to required)"
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
"token": "field-label-top-to-asterisk-extra-large",
|
|
466
|
+
"context": "Spacing (top/bottom edge to required)"
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
"token": "component-top-to-text-300",
|
|
470
|
+
"context": "Leading icon (top/bottom edge to leading icon)"
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
"token": "component-top-to-workflow-icon-400",
|
|
474
|
+
"context": "Leading icon (top/bottom edge to leading icon)"
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
"token": "component-padding-vertical-200",
|
|
478
|
+
"context": "S2 Spacing (top/bottom edge to text: inline)"
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
"token": "component-padding-vertical-300",
|
|
482
|
+
"context": "S2 Spacing (top/bottom edge to text: inline)"
|
|
483
|
+
}
|
|
484
|
+
]
|
|
103
485
|
}
|