@adobe/spectrum-design-data 0.0.1 → 0.2.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 (145) hide show
  1. package/LICENSE +201 -0
  2. package/components/accordion.json +557 -0
  3. package/components/action-bar.json +214 -0
  4. package/components/action-button.json +522 -0
  5. package/components/action-group.json +134 -0
  6. package/components/alert-banner.json +134 -0
  7. package/components/alert-dialog.json +180 -0
  8. package/components/avatar-group.json +166 -0
  9. package/components/avatar.json +246 -0
  10. package/components/badge.json +594 -0
  11. package/components/body.json +54 -0
  12. package/components/bottom-navigation-android.json +72 -0
  13. package/components/breadcrumbs.json +307 -0
  14. package/components/button-group.json +86 -0
  15. package/components/button.json +586 -0
  16. package/components/calendar.json +133 -0
  17. package/components/cards.json +541 -0
  18. package/components/checkbox-group.json +91 -0
  19. package/components/checkbox.json +339 -0
  20. package/components/close-button.json +208 -0
  21. package/components/coach-indicator.json +105 -0
  22. package/components/coach-mark.json +169 -0
  23. package/components/code.json +44 -0
  24. package/components/color-area.json +138 -0
  25. package/components/color-handle.json +111 -0
  26. package/components/color-loupe.json +77 -0
  27. package/components/color-slider.json +165 -0
  28. package/components/color-wheel.json +117 -0
  29. package/components/combo-box.json +543 -0
  30. package/components/contextual-help.json +230 -0
  31. package/components/date-picker.json +471 -0
  32. package/components/detail.json +53 -0
  33. package/components/divider.json +93 -0
  34. package/components/drop-zone.json +238 -0
  35. package/components/field-label.json +219 -0
  36. package/components/heading.json +68 -0
  37. package/components/help-text.json +209 -0
  38. package/components/illustrated-message.json +175 -0
  39. package/components/in-field-progress-button.json +88 -0
  40. package/components/in-field-progress-circle.json +116 -0
  41. package/components/in-line-alert.json +233 -0
  42. package/components/link.json +167 -0
  43. package/components/list-view.json +382 -0
  44. package/components/menu.json +597 -0
  45. package/components/meter.json +199 -0
  46. package/components/number-field.json +518 -0
  47. package/components/opacity-checkerboard.json +69 -0
  48. package/components/picker.json +579 -0
  49. package/components/popover.json +174 -0
  50. package/components/progress-bar.json +229 -0
  51. package/components/progress-circle.json +132 -0
  52. package/components/radio-button.json +308 -0
  53. package/components/radio-group.json +113 -0
  54. package/components/rating.json +168 -0
  55. package/components/scroll-zoom-bar.json +82 -0
  56. package/components/search-field.json +346 -0
  57. package/components/segmented-control.json +248 -0
  58. package/components/select-box.json +272 -0
  59. package/components/side-navigation.json +320 -0
  60. package/components/slider.json +407 -0
  61. package/components/standard-dialog.json +179 -0
  62. package/components/standard-panel.json +83 -0
  63. package/components/status-light.json +334 -0
  64. package/components/steplist.json +294 -0
  65. package/components/swatch-group.json +114 -0
  66. package/components/swatch.json +240 -0
  67. package/components/switch.json +336 -0
  68. package/components/tab-bar-ios.json +72 -0
  69. package/components/table.json +435 -0
  70. package/components/tabs.json +253 -0
  71. package/components/tag-field.json +243 -0
  72. package/components/tag-group.json +87 -0
  73. package/components/tag.json +393 -0
  74. package/components/takeover-dialog.json +117 -0
  75. package/components/text-area.json +555 -0
  76. package/components/text-field.json +555 -0
  77. package/components/thumbnail.json +149 -0
  78. package/components/title.json +91 -0
  79. package/components/toast.json +156 -0
  80. package/components/tooltip.json +179 -0
  81. package/components/tray.json +32 -0
  82. package/components/tree-view.json +393 -0
  83. package/fields/alignment.json +15 -0
  84. package/fields/anatomy.json +15 -0
  85. package/fields/color-scheme.json +15 -0
  86. package/fields/colorFamily.json +15 -0
  87. package/fields/component.json +15 -0
  88. package/fields/contrast.json +15 -0
  89. package/fields/density.json +15 -0
  90. package/fields/easing.json +15 -0
  91. package/fields/family.json +15 -0
  92. package/fields/motionRole.json +15 -0
  93. package/fields/object.json +15 -0
  94. package/fields/orientation.json +15 -0
  95. package/fields/position.json +15 -0
  96. package/fields/property.json +15 -0
  97. package/fields/scale.json +15 -0
  98. package/fields/scaleIndex.json +15 -0
  99. package/fields/shape.json +15 -0
  100. package/fields/size.json +15 -0
  101. package/fields/state.json +15 -0
  102. package/fields/structure.json +15 -0
  103. package/fields/style.json +15 -0
  104. package/fields/substructure.json +15 -0
  105. package/fields/variant.json +15 -0
  106. package/fields/weight.json +15 -0
  107. package/mode-sets/color-scheme.json +8 -0
  108. package/mode-sets/contrast.json +8 -0
  109. package/mode-sets/scale.json +8 -0
  110. package/package.json +42 -3
  111. package/registry/alignments.json +22 -0
  112. package/registry/anatomy-terms.json +739 -0
  113. package/registry/categories.json +55 -0
  114. package/registry/color-families.json +177 -0
  115. package/registry/components.json +277 -0
  116. package/registry/densities.json +17 -0
  117. package/registry/easing-curves.json +42 -0
  118. package/registry/glossary.json +181 -0
  119. package/registry/motion-roles.json +32 -0
  120. package/registry/navigation-terms.json +241 -0
  121. package/registry/orientations.json +17 -0
  122. package/registry/platform-extensions/ios-states.json +59 -0
  123. package/registry/platform-extensions/web-components-states.json +58 -0
  124. package/registry/platforms.json +37 -0
  125. package/registry/positions.json +32 -0
  126. package/registry/property-terms.json +212 -0
  127. package/registry/scale-values.json +126 -0
  128. package/registry/shapes.json +12 -0
  129. package/registry/sizes.json +71 -0
  130. package/registry/states.json +184 -0
  131. package/registry/structures.json +57 -0
  132. package/registry/substructures.json +12 -0
  133. package/registry/token-objects.json +32 -0
  134. package/registry/token-terminology.json +925 -0
  135. package/registry/typography-families.json +27 -0
  136. package/registry/typography-styles.json +22 -0
  137. package/registry/typography-weights.json +37 -0
  138. package/registry/variants.json +282 -0
  139. package/tokens/color-aliases.tokens.json +332 -328
  140. package/tokens/color-component.tokens.json +74 -74
  141. package/tokens/icons.tokens.json +191 -191
  142. package/tokens/layout-component.tokens.json +373 -316
  143. package/tokens/layout.tokens.json +110 -98
  144. package/tokens/semantic-color-palette.tokens.json +104 -104
  145. package/tokens/typography.tokens.json +233 -233
@@ -0,0 +1,555 @@
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
+ }