@adobe/design-data-spec 1.4.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 (123) 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 +14 -10
  7. package/schemas/component.schema.json +1 -1
  8. package/schemas/manifest.schema.json +1 -22
  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 +96 -30
  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/anatomy.json +0 -15
  102. package/fields/color-scheme.json +0 -15
  103. package/fields/colorFamily.json +0 -15
  104. package/fields/component.json +0 -15
  105. package/fields/contrast.json +0 -15
  106. package/fields/density.json +0 -15
  107. package/fields/easing.json +0 -15
  108. package/fields/family.json +0 -15
  109. package/fields/motionRole.json +0 -15
  110. package/fields/object.json +0 -15
  111. package/fields/orientation.json +0 -15
  112. package/fields/position.json +0 -15
  113. package/fields/property.json +0 -15
  114. package/fields/scale.json +0 -15
  115. package/fields/scaleIndex.json +0 -15
  116. package/fields/shape.json +0 -15
  117. package/fields/size.json +0 -15
  118. package/fields/state.json +0 -15
  119. package/fields/structure.json +0 -15
  120. package/fields/style.json +0 -15
  121. package/fields/substructure.json +0 -15
  122. package/fields/variant.json +0 -15
  123. package/fields/weight.json +0 -15
@@ -1,555 +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/text-area.json",
4
- "specVersion": "1.0.0-draft",
5
- "name": "text-area",
6
- "displayName": "Text area",
7
- "description": "A text area lets a user input a longer amount of text than a standard text field. It can include all of the standard validation options supported by the text field component.",
8
- "meta": {
9
- "category": "inputs",
10
- "documentationUrl": "https://spectrum.adobe.com/page/text-area/"
11
- },
12
- "options": {
13
- "label": {
14
- "type": "string"
15
- },
16
- "labelPosition": {
17
- "type": "string",
18
- "default": "top",
19
- "values": [
20
- {
21
- "value": "top"
22
- },
23
- {
24
- "value": "side"
25
- }
26
- ]
27
- },
28
- "hideLabel": {
29
- "type": "boolean",
30
- "default": false
31
- },
32
- "value": {
33
- "type": "string",
34
- "description": "from minValue to maxValue"
35
- },
36
- "width": {
37
- "type": "number"
38
- },
39
- "size": {
40
- "type": "string",
41
- "default": "m",
42
- "values": [
43
- {
44
- "value": "s"
45
- },
46
- {
47
- "value": "m"
48
- },
49
- {
50
- "value": "l"
51
- },
52
- {
53
- "value": "xl"
54
- }
55
- ]
56
- },
57
- "necessityIndicator": {
58
- "type": "string",
59
- "default": "icon",
60
- "values": [
61
- {
62
- "value": "text"
63
- },
64
- {
65
- "value": "icon"
66
- }
67
- ]
68
- },
69
- "isRequired": {
70
- "type": "boolean",
71
- "default": false
72
- },
73
- "hasCharacterCount": {
74
- "type": "boolean",
75
- "default": false
76
- },
77
- "showValidIcon": {
78
- "type": "boolean",
79
- "default": false
80
- },
81
- "isError": {
82
- "type": "boolean",
83
- "default": false
84
- },
85
- "isDisabled": {
86
- "type": "boolean",
87
- "default": false
88
- },
89
- "hideDragIcon": {
90
- "type": "boolean",
91
- "default": false
92
- },
93
- "height": {
94
- "type": "number",
95
- "description": "If undefined, height is dynamic and grows with input text."
96
- },
97
- "helpText": {
98
- "type": "string"
99
- },
100
- "errorMessage": {
101
- "type": "string"
102
- },
103
- "inputType": {
104
- "type": "string",
105
- "default": "text",
106
- "values": [
107
- {
108
- "value": "text"
109
- },
110
- {
111
- "value": "url"
112
- },
113
- {
114
- "value": "phone"
115
- },
116
- {
117
- "value": "email"
118
- },
119
- {
120
- "value": "password"
121
- }
122
- ]
123
- }
124
- },
125
- "states": [
126
- {
127
- "name": "hover",
128
- "trigger": "interaction"
129
- },
130
- {
131
- "name": "focus-+-hover",
132
- "trigger": "prop"
133
- },
134
- {
135
- "name": "focus-+-not-hover",
136
- "trigger": "prop"
137
- },
138
- {
139
- "name": "keyboard-focus",
140
- "trigger": "interaction"
141
- }
142
- ],
143
- "lifecycle": {
144
- "introduced": "1.0.0-draft"
145
- },
146
- "tokenBindings": [
147
- {
148
- "token": "field-default-width-small",
149
- "context": "Width (default)"
150
- },
151
- {
152
- "token": "field-default-width-medium",
153
- "context": "Width (default)"
154
- },
155
- {
156
- "token": "field-default-width-large",
157
- "context": "Width (default)"
158
- },
159
- {
160
- "token": "field-default-width-extra-large",
161
- "context": "Width (default)"
162
- },
163
- {
164
- "token": "text-area-minimum-width",
165
- "context": "Width (minimum)"
166
- },
167
- {
168
- "token": "text-area-minimum-height",
169
- "context": "Height"
170
- },
171
- {
172
- "token": "corner-radius-medium-size-small",
173
- "context": "Rounding"
174
- },
175
- {
176
- "token": "corner-radius-medium-size-medium",
177
- "context": "Rounding"
178
- },
179
- {
180
- "token": "corner-radius-medium-size-large",
181
- "context": "Rounding"
182
- },
183
- {
184
- "token": "corner-radius-medium-size-extra-large",
185
- "context": "Rounding"
186
- },
187
- {
188
- "token": "component-edge-to-text-75",
189
- "context": "Spacing (start/end edge to value)"
190
- },
191
- {
192
- "token": "component-edge-to-text-100",
193
- "context": "Spacing (start/end edge to value)"
194
- },
195
- {
196
- "token": "component-edge-to-text-200",
197
- "context": "Spacing (start/end edge to value)"
198
- },
199
- {
200
- "token": "component-edge-to-text-300",
201
- "context": "Spacing (start/end edge to value)"
202
- },
203
- {
204
- "token": "workflow-icon-size-75",
205
- "context": "Prefix min-width"
206
- },
207
- {
208
- "token": "workflow-icon-size-100",
209
- "context": "Prefix min-width"
210
- },
211
- {
212
- "token": "workflow-icon-size-200",
213
- "context": "Prefix min-width"
214
- },
215
- {
216
- "token": "workflow-icon-size-300",
217
- "context": "Prefix min-width"
218
- },
219
- {
220
- "token": "text-to-visual-75",
221
- "context": "Spacing (prefix to value/placeholder)"
222
- },
223
- {
224
- "token": "text-to-visual-100",
225
- "context": "Spacing (prefix to value/placeholder)"
226
- },
227
- {
228
- "token": "text-to-visual-200",
229
- "context": "Spacing (prefix to value/placeholder)"
230
- },
231
- {
232
- "token": "text-to-visual-300",
233
- "context": "Spacing (prefix to value/placeholder)"
234
- },
235
- {
236
- "token": "border-width-200",
237
- "context": "Border"
238
- },
239
- {
240
- "token": "focus-indicator-thickness",
241
- "context": "Focus indicator"
242
- },
243
- {
244
- "token": "field-label-to-component",
245
- "context": "Spacing (field label to text area)"
246
- },
247
- {
248
- "token": "spacing-200",
249
- "context": "Spacing (character count to field label)"
250
- },
251
- {
252
- "token": "side-label-character-count-to-field",
253
- "context": "Spacing (side label, field to character count)"
254
- },
255
- {
256
- "token": "help-text-to-component",
257
- "context": "Spacing (text area to help text)"
258
- },
259
- {
260
- "token": "component-top-to-workflow-icon-75",
261
- "context": "Spacing (top/bottom edge to alert icon)"
262
- },
263
- {
264
- "token": "component-top-to-workflow-icon-100",
265
- "context": "Spacing (top/bottom edge to alert icon)"
266
- },
267
- {
268
- "token": "component-top-to-workflow-icon-200",
269
- "context": "Spacing (top/bottom edge to alert icon)"
270
- },
271
- {
272
- "token": "component-top-to-workflow-icon-300",
273
- "context": "Spacing (top/bottom edge to alert icon)"
274
- },
275
- {
276
- "token": "field-edge-to-alert-icon-small",
277
- "context": "Spacing (alert icon to end edge)"
278
- },
279
- {
280
- "token": "field-edge-to-alert-icon-medium",
281
- "context": "Spacing (alert icon to end edge)"
282
- },
283
- {
284
- "token": "field-edge-to-alert-icon-large",
285
- "context": "Spacing (alert icon to end edge)"
286
- },
287
- {
288
- "token": "field-edge-to-alert-icon-extra-large",
289
- "context": "Spacing (alert icon to end edge)"
290
- },
291
- {
292
- "token": "checkmark-icon-size-75",
293
- "context": "Checkmark UI icon asset"
294
- },
295
- {
296
- "token": "checkmark-icon-size-100",
297
- "context": "Checkmark UI icon asset"
298
- },
299
- {
300
- "token": "checkmark-icon-size-200",
301
- "context": "Checkmark UI icon asset"
302
- },
303
- {
304
- "token": "checkmark-icon-size-300",
305
- "context": "Checkmark UI icon asset"
306
- },
307
- {
308
- "token": "field-top-to-validation-icon-small",
309
- "context": "Spacing (top/bottom edge to validation icon)"
310
- },
311
- {
312
- "token": "field-top-to-validation-icon-medium",
313
- "context": "Spacing (top/bottom edge to validation icon)"
314
- },
315
- {
316
- "token": "field-top-to-validation-icon-large",
317
- "context": "Spacing (top/bottom edge to validation icon)"
318
- },
319
- {
320
- "token": "field-top-to-validation-icon-extra-large",
321
- "context": "Spacing (top/bottom edge to validation icon)"
322
- },
323
- {
324
- "token": "field-edge-to-validation-icon-small",
325
- "context": "Spacing (validation icon to end edge)"
326
- },
327
- {
328
- "token": "field-edge-to-validation-icon-medium",
329
- "context": "Spacing (validation icon to end edge)"
330
- },
331
- {
332
- "token": "field-edge-to-validation-icon-large",
333
- "context": "Spacing (validation icon to end edge)"
334
- },
335
- {
336
- "token": "field-edge-to-validation-icon-extra-large",
337
- "context": "Spacing (validation icon to end edge)"
338
- },
339
- {
340
- "token": "gray-25",
341
- "context": "Background and border"
342
- },
343
- {
344
- "token": "gray-300",
345
- "context": "Background and border"
346
- },
347
- {
348
- "token": "gray-400",
349
- "context": "Background and border"
350
- },
351
- {
352
- "token": "gray-900",
353
- "context": "Background and border"
354
- },
355
- {
356
- "token": "gray-800",
357
- "context": "Background and border"
358
- },
359
- {
360
- "token": "neutral-subdued-content-color-default",
361
- "context": "Background and border"
362
- },
363
- {
364
- "token": "negative-border-color-default",
365
- "context": "Border (error)"
366
- },
367
- {
368
- "token": "negative-border-color-hover",
369
- "context": "Border (error)"
370
- },
371
- {
372
- "token": "negative-border-color-focus-hover",
373
- "context": "Border (error)"
374
- },
375
- {
376
- "token": "negative-border-color-focus",
377
- "context": "Border (error)"
378
- },
379
- {
380
- "token": "negative-border-color-key-focus",
381
- "context": "Border (error)"
382
- },
383
- {
384
- "token": "neutral-content-color-default",
385
- "context": "Value"
386
- },
387
- {
388
- "token": "neutral-content-color-hover",
389
- "context": "Value"
390
- },
391
- {
392
- "token": "neutral-content-color-focus-hover",
393
- "context": "Value"
394
- },
395
- {
396
- "token": "neutral-content-color-focus",
397
- "context": "Value"
398
- },
399
- {
400
- "token": "neutral-content-color-key-focus",
401
- "context": "Value"
402
- },
403
- {
404
- "token": "negative-visual-color",
405
- "context": "Alert icon"
406
- },
407
- {
408
- "token": "positive-visual-color",
409
- "context": "Positive icon"
410
- },
411
- {
412
- "token": "disabled-border-color",
413
- "context": "Disabled"
414
- },
415
- {
416
- "token": "disabled-content-color",
417
- "context": "Disabled"
418
- },
419
- {
420
- "token": "focus-indicator-color",
421
- "context": "Focus ring"
422
- },
423
- {
424
- "token": "gray-600",
425
- "context": "Leading icon"
426
- },
427
- {
428
- "token": "default-font-family",
429
- "context": "Label"
430
- },
431
- {
432
- "token": "regular-font-weight",
433
- "context": "Label"
434
- },
435
- {
436
- "token": "default-font-style",
437
- "context": "Label"
438
- },
439
- {
440
- "token": "component-s-regular",
441
- "context": "Label"
442
- },
443
- {
444
- "token": "component-m-regular",
445
- "context": "Label"
446
- },
447
- {
448
- "token": "component-l-regular",
449
- "context": "Label"
450
- },
451
- {
452
- "token": "component-xl-regular",
453
- "context": "Label"
454
- },
455
- {
456
- "token": "line-height-font-size-75",
457
- "context": "Label"
458
- },
459
- {
460
- "token": "line-height-font-size-100",
461
- "context": "Label"
462
- },
463
- {
464
- "token": "line-height-font-size-200",
465
- "context": "Label"
466
- },
467
- {
468
- "token": "line-height-font-size-300",
469
- "context": "Label"
470
- },
471
- {
472
- "token": "cjk-line-height-100",
473
- "context": "Label"
474
- },
475
- {
476
- "token": "medium-font-weight",
477
- "context": "Prefix"
478
- },
479
- {
480
- "token": "component-s-medium",
481
- "context": "Prefix"
482
- },
483
- {
484
- "token": "component-m-medium",
485
- "context": "Prefix"
486
- },
487
- {
488
- "token": "component-l-medium",
489
- "context": "Prefix"
490
- },
491
- {
492
- "token": "component-xl-medium",
493
- "context": "Prefix"
494
- },
495
- {
496
- "token": "component-top-to-text-50",
497
- "context": "Spacing (top/bottom edge to text)"
498
- },
499
- {
500
- "token": "component-top-to-text-100",
501
- "context": "Spacing (top/bottom edge to text)"
502
- },
503
- {
504
- "token": "field-label-top-to-asterisk-large",
505
- "context": "Spacing (top/bottom edge to required)"
506
- },
507
- {
508
- "token": "field-label-top-to-asterisk-extra-large",
509
- "context": "Spacing (top/bottom edge to required)"
510
- },
511
- {
512
- "token": "component-top-to-text-300",
513
- "context": "Leading icon (top/bottom edge to leading icon)"
514
- },
515
- {
516
- "token": "component-top-to-workflow-icon-400",
517
- "context": "Leading icon (top/bottom edge to leading icon)"
518
- },
519
- {
520
- "token": "component-padding-vertical-200",
521
- "context": "S2 Spacing (top/bottom edge to text: inline)"
522
- },
523
- {
524
- "token": "component-padding-vertical-300",
525
- "context": "S2 Spacing (top/bottom edge to text: inline)"
526
- }
527
- ],
528
- "accessibility": {
529
- "role": "textbox",
530
- "intents": ["input"],
531
- "focusable": true,
532
- "wcag": [
533
- {
534
- "criterion": "1.3.1",
535
- "level": "A",
536
- "title": "Info and Relationships"
537
- },
538
- {
539
- "criterion": "1.3.5",
540
- "level": "AA",
541
- "title": "Identify Input Purpose"
542
- },
543
- {
544
- "criterion": "2.1.1",
545
- "level": "A",
546
- "title": "Keyboard"
547
- },
548
- {
549
- "criterion": "4.1.2",
550
- "level": "A",
551
- "title": "Name, Role, Value"
552
- }
553
- ]
554
- }
555
- }