@adobe/spectrum-design-data 0.3.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.
Files changed (99) hide show
  1. package/LICENSE +1 -1
  2. package/components/accordion.json +108 -194
  3. package/components/action-bar.json +64 -97
  4. package/components/action-button.json +95 -230
  5. package/components/action-group.json +88 -86
  6. package/components/alert-banner.json +104 -76
  7. package/components/alert-dialog.json +78 -126
  8. package/components/avatar-group.json +61 -119
  9. package/components/avatar.json +98 -212
  10. package/components/badge.json +138 -256
  11. package/components/breadcrumbs.json +95 -89
  12. package/components/button-group.json +57 -48
  13. package/components/button.json +151 -368
  14. package/components/calendar.json +97 -34
  15. package/components/cards.json +109 -250
  16. package/components/checkbox-group.json +50 -58
  17. package/components/checkbox.json +121 -186
  18. package/components/close-button.json +61 -124
  19. package/components/coach-indicator.json +63 -72
  20. package/components/coach-mark.json +89 -93
  21. package/components/color-area.json +68 -94
  22. package/components/color-handle.json +39 -79
  23. package/components/color-loupe.json +35 -52
  24. package/components/color-slider.json +95 -116
  25. package/components/color-wheel.json +67 -73
  26. package/components/combo-box.json +243 -331
  27. package/components/contextual-help.json +86 -175
  28. package/components/date-picker.json +139 -179
  29. package/components/divider.json +30 -69
  30. package/components/drop-zone.json +51 -92
  31. package/components/field-label.json +75 -117
  32. package/components/help-text.json +81 -105
  33. package/components/illustrated-message.json +106 -73
  34. package/components/in-line-alert.json +50 -83
  35. package/components/link.json +63 -85
  36. package/components/list-view.json +107 -146
  37. package/components/menu.json +180 -274
  38. package/components/meter.json +72 -118
  39. package/components/number-field.json +213 -305
  40. package/components/picker.json +208 -320
  41. package/components/popover.json +94 -129
  42. package/components/progress-bar.json +94 -131
  43. package/components/progress-circle.json +45 -72
  44. package/components/radio-button.json +87 -156
  45. package/components/radio-group.json +107 -74
  46. package/components/rating.json +66 -99
  47. package/components/search-field.json +132 -202
  48. package/components/segmented-control.json +94 -109
  49. package/components/select-box.json +119 -179
  50. package/components/side-navigation.json +108 -118
  51. package/components/slider.json +143 -228
  52. package/components/standard-dialog.json +96 -114
  53. package/components/standard-panel.json +105 -53
  54. package/components/status-light.json +104 -240
  55. package/components/steplist.json +77 -161
  56. package/components/swatch-group.json +42 -58
  57. package/components/swatch.json +75 -162
  58. package/components/switch.json +101 -189
  59. package/components/table.json +97 -102
  60. package/components/tabs.json +77 -104
  61. package/components/tag-field.json +86 -150
  62. package/components/tag-group.json +50 -44
  63. package/components/tag.json +81 -198
  64. package/components/takeover-dialog.json +59 -57
  65. package/components/text-area.json +200 -323
  66. package/components/text-field.json +183 -304
  67. package/components/thumbnail.json +63 -105
  68. package/components/toast.json +97 -83
  69. package/components/tooltip.json +104 -96
  70. package/components/tree-view.json +169 -181
  71. package/guidelines/app-frame-content-area.json +87 -0
  72. package/guidelines/app-frame-creating-bluelines.json +61 -0
  73. package/guidelines/app-frame-header.json +75 -0
  74. package/guidelines/app-frame-overview.json +167 -0
  75. package/guidelines/app-frame-side-navigation.json +138 -0
  76. package/guidelines/attention-hierarchy.json +42 -0
  77. package/guidelines/background-layers.json +41 -0
  78. package/guidelines/brand.json +50 -0
  79. package/guidelines/colors.json +65 -0
  80. package/guidelines/containers.json +65 -0
  81. package/guidelines/developer-overview.json +38 -0
  82. package/guidelines/faqs.json +35 -0
  83. package/guidelines/fonts.json +58 -0
  84. package/guidelines/grays.json +69 -0
  85. package/guidelines/icon-fundamentals.json +45 -0
  86. package/guidelines/illustrations.json +114 -0
  87. package/guidelines/introduction.json +34 -0
  88. package/guidelines/manifest.json +204 -0
  89. package/guidelines/motion.json +41 -0
  90. package/guidelines/object-styles.json +105 -0
  91. package/guidelines/principles.json +30 -0
  92. package/guidelines/resources.json +59 -0
  93. package/guidelines/spacing.json +25 -0
  94. package/guidelines/states.json +34 -0
  95. package/guidelines/typography-fundamentals.json +145 -0
  96. package/guidelines/using-icons.json +110 -0
  97. package/package.json +5 -2
  98. package/tokens/layout-component.tokens.json +72 -36
  99. package/tokens/layout.tokens.json +207 -92
@@ -9,181 +9,202 @@
9
9
  "category": "inputs",
10
10
  "documentationUrl": "https://spectrum.adobe.com/page/text-area/"
11
11
  },
12
- "options": {
13
- "label": {
14
- "type": "string"
12
+ "documentBlocks": [
13
+ {
14
+ "type": "purpose",
15
+ "content": "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."
15
16
  },
16
- "labelPosition": {
17
- "type": "string",
18
- "default": "top",
19
- "values": [
20
- {
21
- "value": "top"
22
- },
23
- {
24
- "value": "side"
25
- }
26
- ]
17
+ {
18
+ "type": "guideline",
19
+ "content": "Labels can be placed either on top or on the side. Top labels are the default and are recommended because they work better with long copy, localization, and responsive layouts. Side labels are most useful when vertical space is limited."
27
20
  },
28
- "hideLabel": {
29
- "type": "boolean",
30
- "default": false
21
+ {
22
+ "type": "guideline",
23
+ "content": "The value shows a user’s entered text."
31
24
  },
32
- "value": {
33
- "type": "string",
34
- "description": "from minValue to maxValue"
25
+ {
26
+ "type": "guideline",
27
+ "content": "The text area’s default width is field-default-width-\\[small/medium/large/extra-large]."
35
28
  },
36
- "width": {
37
- "type": "number"
29
+ {
30
+ "type": "guideline",
31
+ "content": "Text areas come in four different sizes: small, medium, large, and extra-large. The medium size is the default and most frequently used option. Use the other sizes sparingly; they should be used to create a hierarchy of importance within the page."
38
32
  },
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
- ]
33
+ {
34
+ "type": "guideline",
35
+ "content": "Text areas can be marked as optional or required, depending on the situation. For required text areas, there are two styling options: a “(required)” label or an asterisk. If you use an asterisk, be sure to include hint text to explain what the asterisk means. Optional text areas are either denoted with text added to the end of the label — “(optional)” — or have no indication at all."
56
36
  },
57
- "necessityIndicator": {
58
- "type": "string",
59
- "default": "icon",
60
- "values": [
61
- {
62
- "value": "text"
63
- },
64
- {
65
- "value": "icon"
66
- }
67
- ]
37
+ {
38
+ "type": "guideline",
39
+ "content": "The asterisk used in this component is an icon that has specific spacing from the label text — not part of the label text itself."
68
40
  },
69
- "isRequired": {
70
- "type": "boolean",
71
- "default": false
41
+ {
42
+ "type": "guideline",
43
+ "content": "Text areas can show a character count when input must stay under a set limit. This indicator can appear alongside others, such as validation icons or “optional” and “required” labels."
72
44
  },
73
- "hasCharacterCount": {
74
- "type": "boolean",
75
- "default": false
45
+ {
46
+ "type": "guideline",
47
+ "content": "Text areas can show a validation icon when input must follow a specific format, such as an email or credit card number. The icon appears as soon as the entry is valid."
76
48
  },
77
- "showValidIcon": {
78
- "type": "boolean",
79
- "default": false
49
+ {
50
+ "type": "guideline",
51
+ "content": "A text area can be marked as having an error to show that a value needs to be entered in order to move forward or that a value that was entered is invalid. If an error exists, the error icon always overrides the validation icon."
80
52
  },
81
- "isError": {
82
- "type": "boolean",
83
- "default": false
53
+ {
54
+ "type": "guideline",
55
+ "content": "A text area in a disabled state shows that the input field exists, but is not available in that circumstance. This can be used to maintain layout continuity and communicate that a text area may become available later."
84
56
  },
85
- "isDisabled": {
86
- "type": "boolean",
87
- "default": false
57
+ {
58
+ "type": "guideline",
59
+ "content": "If the height is defined, text areas can either be a static size or can be resizable with a drag icon in the bottom right corner. The drag icon should be hidden if the fixed variant is turned off, or if the text area should not be resizable."
88
60
  },
89
- "hideDragIcon": {
90
- "type": "boolean",
91
- "default": false
61
+ {
62
+ "type": "guideline",
63
+ "content": "When defined as fixed (either by the development team or by the end user via the dragIcon), users can scroll inside the field."
92
64
  },
93
- "height": {
94
- "type": "number",
95
- "description": "If undefined, height is dynamic and grows with input text."
65
+ {
66
+ "type": "guideline",
67
+ "content": "A text area can have help text below the field to give extra context or instruction about what a user should input in the field. The help text communicates a hint or helpful information, such as specific requirements for correctly filling out the field."
96
68
  },
97
- "helpText": {
98
- "type": "string"
69
+ {
70
+ "type": "guideline",
71
+ "content": "A text area can be marked as having an error to show that a value needs to be entered in order to move forward or that a value that was entered is invalid. The error message communicates an error for when the field requirements aren’t met, prompting a user to adjust what they had originally input. If an error exists, the error icon always overrides the validation icon."
99
72
  },
100
- "errorMessage": {
101
- "type": "string"
73
+ {
74
+ "type": "guideline",
75
+ "content": "A text area can have multiple input types, depending on the need and use case. Text areas have a text input type by default."
102
76
  },
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
77
  {
127
- "name": "hover",
128
- "trigger": "interaction"
78
+ "type": "guideline",
79
+ "content": "Use these input types for the following use cases:"
129
80
  },
130
81
  {
131
- "name": "focus-+-hover",
132
- "trigger": "prop"
82
+ "type": "guideline",
83
+ "content": "When typing into a text area and reaching the end of the field on a number-height text area, the cursor should remain as static in the bottom right corner (for left-to-right languages) while text above it overflows through the top of the field. When the field loses focus, text should overflow through the bottom of the text area, showing the beginning of the text."
133
84
  },
134
85
  {
135
- "name": "focus-+-not-hover",
136
- "trigger": "prop"
86
+ "type": "guideline",
87
+ "content": "When a text area presents multiple values that are not identical, the field should show an en dash (–)."
137
88
  },
138
89
  {
139
- "name": "keyboard-focus",
140
- "trigger": "interaction"
141
- }
142
- ],
143
- "lifecycle": {
144
- "introduced": "1.0.0-draft"
145
- },
146
- "tokenBindings": [
90
+ "type": "guideline",
91
+ "content": "When the help text is too long for the available horizontal space, it wraps to form another line."
92
+ },
147
93
  {
148
- "token": "field-default-width-small",
149
- "context": "Width (default)"
94
+ "type": "guideline",
95
+ "content": "Every text area should have a label. A text area without a label is ambiguous and not accessible."
150
96
  },
151
97
  {
152
- "token": "field-default-width-medium",
153
- "context": "Width (default)"
98
+ "type": "guideline",
99
+ "content": "Text area labels and placeholder text should be written in sentence case."
154
100
  },
155
101
  {
156
- "token": "field-default-width-large",
157
- "context": "Width (default)"
102
+ "type": "guideline",
103
+ "content": "In a single form, mark only the required fields or only the optional fields, depending on whichever is less frequent in the entire form. If most of the text fields are optional, only the required fields should be give an asterisk or have labels appended with “(required)”. If most of the text fields are required, only the optional fields should be appended with “(optional)”. An asterisk should never be used to note that a text area is optional."
158
104
  },
159
105
  {
160
- "token": "field-default-width-extra-large",
161
- "context": "Width (default)"
106
+ "type": "guideline",
107
+ "content": "The description in the help text is flexible and encompasses a range of guidance. Sometimes this guidance is about what to input, and sometime it’s about how to input. This includes information such as:"
162
108
  },
163
109
  {
164
- "token": "text-area-minimum-width",
165
- "context": "Width (minimum)"
110
+ "type": "guideline",
111
+ "content": "The help text’s message should not simply restate the same information in the label in order to prompt someone to interact with it. Don’t add help text if it isn’t actually relevant or meaningful to a user in order to try to maintain layout continuity with other inputs that require help text."
166
112
  },
167
113
  {
168
- "token": "text-area-minimum-height",
169
- "context": "Height"
114
+ "type": "guideline",
115
+ "content": "Putting instructions for how to complete an input, requirements, or any other essential information into placeholder text is not accessible. Once a value is entered, placeholder text is no longer viewable; if someone is using an automatic form filler, they will never get the information in the placeholder text."
170
116
  },
171
117
  {
172
- "token": "corner-radius-medium-size-small",
173
- "context": "Rounding"
118
+ "type": "guideline",
119
+ "content": "Instead of placeholder text, use the help text description to convey requirements or to show any formatting examples that would help user comprehension. If there's placeholder text and help text at the same time, it becomes redundant and distracting, especially if they're communicating the same thing."
174
120
  },
175
121
  {
176
- "token": "corner-radius-medium-size-medium",
177
- "context": "Rounding"
122
+ "type": "guideline",
123
+ "content": "The help text area also displays an error message. When a text area already includes help text and an error is triggered, the help text is replaced with error text. Once the error is resolved, the help text description reappears below the field."
178
124
  },
179
125
  {
180
- "token": "corner-radius-medium-size-large",
181
- "context": "Rounding"
126
+ "type": "guideline",
127
+ "content": "Since one gets replaced by the other, the language of the help text and error text need to work together to convey the same messaging. Help text explains the requirement or adds supplementary context for how to successfully complete the input. Error text tells a user how to fix the error by re-stating the input requirements or describing the necessary interaction. Make sure that the help text and the error text include the same essential information so that it isn’t lost if one replaces the other like minimum requirements."
128
+ },
129
+ {
130
+ "type": "guideline",
131
+ "content": "Write error messaging in a human-centered way by guiding a user and showing them a solution — don’t simply state what’s wrong and then leave them guessing as to how to resolve it. Ambiguous error messages can be frustrating and even shame-inducing for users. Also, keep in mind that something that a system may deem an error may not actually be perceived as an error to a user."
132
+ },
133
+ {
134
+ "type": "guideline",
135
+ "content": "Error text should be written in 1-2 short, complete sentences and in a clear and straightforward way. End sentences with a period, and never with an exclamation point. For text areas, the nature of the error is often related to something that needs to be fixed for in-line validation, so a helpful tone is most appropriate. For example, if someone were to miss filling out a required field that asks for their interests, write the error text like you’re offering a hint or a tip to help guide them to understand what needs to go in the missing field: “Enter at least one interest.”"
136
+ }
137
+ ],
138
+ "options": {
139
+ "label": { "type": "string" },
140
+ "labelPosition": {
141
+ "type": "string",
142
+ "default": "top",
143
+ "values": [{ "value": "top" }, { "value": "side" }]
144
+ },
145
+ "hideLabel": { "type": "boolean", "default": false },
146
+ "value": { "type": "string", "description": "from minValue to maxValue" },
147
+ "width": { "type": "number" },
148
+ "size": {
149
+ "type": "string",
150
+ "default": "m",
151
+ "values": [
152
+ { "value": "s" },
153
+ { "value": "m" },
154
+ { "value": "l" },
155
+ { "value": "xl" }
156
+ ]
157
+ },
158
+ "necessityIndicator": {
159
+ "type": "string",
160
+ "default": "icon",
161
+ "values": [{ "value": "text" }, { "value": "icon" }]
162
+ },
163
+ "isRequired": { "type": "boolean", "default": false },
164
+ "hasCharacterCount": { "type": "boolean", "default": false },
165
+ "showValidIcon": { "type": "boolean", "default": false },
166
+ "isError": { "type": "boolean", "default": false },
167
+ "isDisabled": { "type": "boolean", "default": false },
168
+ "hideDragIcon": { "type": "boolean", "default": false },
169
+ "height": {
170
+ "type": "number",
171
+ "description": "If undefined, height is dynamic and grows with input text."
182
172
  },
173
+ "helpText": { "type": "string" },
174
+ "errorMessage": { "type": "string" },
175
+ "inputType": {
176
+ "type": "string",
177
+ "default": "text",
178
+ "values": [
179
+ { "value": "text" },
180
+ { "value": "url" },
181
+ { "value": "phone" },
182
+ { "value": "email" },
183
+ { "value": "password" }
184
+ ]
185
+ }
186
+ },
187
+ "states": [
188
+ { "name": "hover", "trigger": "interaction" },
189
+ { "name": "focus-+-hover", "trigger": "prop" },
190
+ { "name": "focus-+-not-hover", "trigger": "prop" },
191
+ { "name": "keyboard-focus", "trigger": "interaction" }
192
+ ],
193
+ "lifecycle": { "introduced": "1.0.0-draft" },
194
+ "tokenBindings": [
195
+ { "token": "field-default-width-small", "context": "Width (default)" },
196
+ { "token": "field-default-width-medium", "context": "Width (default)" },
197
+ { "token": "field-default-width-large", "context": "Width (default)" },
183
198
  {
184
- "token": "corner-radius-medium-size-extra-large",
185
- "context": "Rounding"
199
+ "token": "field-default-width-extra-large",
200
+ "context": "Width (default)"
186
201
  },
202
+ { "token": "text-area-minimum-width", "context": "Width (minimum)" },
203
+ { "token": "text-area-minimum-height", "context": "Height" },
204
+ { "token": "corner-radius-medium-size-small", "context": "Rounding" },
205
+ { "token": "corner-radius-medium-size-medium", "context": "Rounding" },
206
+ { "token": "corner-radius-medium-size-large", "context": "Rounding" },
207
+ { "token": "corner-radius-medium-size-extra-large", "context": "Rounding" },
187
208
  {
188
209
  "token": "component-edge-to-text-75",
189
210
  "context": "Spacing (start/end edge to value)"
@@ -200,22 +221,10 @@
200
221
  "token": "component-edge-to-text-300",
201
222
  "context": "Spacing (start/end edge to value)"
202
223
  },
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
- },
224
+ { "token": "workflow-icon-size-75", "context": "Prefix min-width" },
225
+ { "token": "workflow-icon-size-100", "context": "Prefix min-width" },
226
+ { "token": "workflow-icon-size-200", "context": "Prefix min-width" },
227
+ { "token": "workflow-icon-size-300", "context": "Prefix min-width" },
219
228
  {
220
229
  "token": "text-to-visual-75",
221
230
  "context": "Spacing (prefix to value/placeholder)"
@@ -232,14 +241,8 @@
232
241
  "token": "text-to-visual-300",
233
242
  "context": "Spacing (prefix to value/placeholder)"
234
243
  },
235
- {
236
- "token": "border-width-200",
237
- "context": "Border"
238
- },
239
- {
240
- "token": "focus-indicator-thickness",
241
- "context": "Focus indicator"
242
- },
244
+ { "token": "border-width-200", "context": "Border" },
245
+ { "token": "focus-indicator-thickness", "context": "Focus indicator" },
243
246
  {
244
247
  "token": "field-label-to-component",
245
248
  "context": "Spacing (field label to text area)"
@@ -288,10 +291,7 @@
288
291
  "token": "field-edge-to-alert-icon-extra-large",
289
292
  "context": "Spacing (alert icon to end edge)"
290
293
  },
291
- {
292
- "token": "checkmark-icon-size-75",
293
- "context": "Checkmark UI icon asset"
294
- },
294
+ { "token": "checkmark-icon-size-75", "context": "Checkmark UI icon asset" },
295
295
  {
296
296
  "token": "checkmark-icon-size-100",
297
297
  "context": "Checkmark UI icon asset"
@@ -336,162 +336,51 @@
336
336
  "token": "field-edge-to-validation-icon-extra-large",
337
337
  "context": "Spacing (validation icon to end edge)"
338
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
- },
339
+ { "token": "gray-25", "context": "Background and border" },
340
+ { "token": "gray-300", "context": "Background and border" },
341
+ { "token": "gray-400", "context": "Background and border" },
342
+ { "token": "gray-900", "context": "Background and border" },
343
+ { "token": "gray-800", "context": "Background and border" },
359
344
  {
360
345
  "token": "neutral-subdued-content-color-default",
361
346
  "context": "Background and border"
362
347
  },
363
- {
364
- "token": "negative-border-color-default",
365
- "context": "Border (error)"
366
- },
367
- {
368
- "token": "negative-border-color-hover",
369
- "context": "Border (error)"
370
- },
348
+ { "token": "negative-border-color-default", "context": "Border (error)" },
349
+ { "token": "negative-border-color-hover", "context": "Border (error)" },
371
350
  {
372
351
  "token": "negative-border-color-focus-hover",
373
352
  "context": "Border (error)"
374
353
  },
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
- },
354
+ { "token": "negative-border-color-focus", "context": "Border (error)" },
355
+ { "token": "negative-border-color-key-focus", "context": "Border (error)" },
356
+ { "token": "neutral-content-color-default", "context": "Value" },
357
+ { "token": "neutral-content-color-hover", "context": "Value" },
358
+ { "token": "neutral-content-color-focus-hover", "context": "Value" },
359
+ { "token": "neutral-content-color-focus", "context": "Value" },
360
+ { "token": "neutral-content-color-key-focus", "context": "Value" },
361
+ { "token": "negative-visual-color", "context": "Alert icon" },
362
+ { "token": "positive-visual-color", "context": "Positive icon" },
363
+ { "token": "disabled-border-color", "context": "Disabled" },
364
+ { "token": "disabled-content-color", "context": "Disabled" },
365
+ { "token": "focus-indicator-color", "context": "Focus ring" },
366
+ { "token": "gray-600", "context": "Leading icon" },
367
+ { "token": "default-font-family", "context": "Label" },
368
+ { "token": "regular-font-weight", "context": "Label" },
369
+ { "token": "default-font-style", "context": "Label" },
370
+ { "token": "component-s-regular", "context": "Label" },
371
+ { "token": "component-m-regular", "context": "Label" },
372
+ { "token": "component-l-regular", "context": "Label" },
373
+ { "token": "component-xl-regular", "context": "Label" },
374
+ { "token": "line-height-font-size-75", "context": "Label" },
375
+ { "token": "line-height-font-size-100", "context": "Label" },
376
+ { "token": "line-height-font-size-200", "context": "Label" },
377
+ { "token": "line-height-font-size-300", "context": "Label" },
378
+ { "token": "cjk-line-height-100", "context": "Label" },
379
+ { "token": "medium-font-weight", "context": "Prefix" },
380
+ { "token": "component-s-medium", "context": "Prefix" },
381
+ { "token": "component-m-medium", "context": "Prefix" },
382
+ { "token": "component-l-medium", "context": "Prefix" },
383
+ { "token": "component-xl-medium", "context": "Prefix" },
495
384
  {
496
385
  "token": "component-top-to-text-50",
497
386
  "context": "Spacing (top/bottom edge to text)"
@@ -530,26 +419,14 @@
530
419
  "intents": ["input"],
531
420
  "focusable": true,
532
421
  "wcag": [
533
- {
534
- "criterion": "1.3.1",
535
- "level": "A",
536
- "title": "Info and Relationships"
537
- },
422
+ { "criterion": "1.3.1", "level": "A", "title": "Info and Relationships" },
538
423
  {
539
424
  "criterion": "1.3.5",
540
425
  "level": "AA",
541
426
  "title": "Identify Input Purpose"
542
427
  },
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
- }
428
+ { "criterion": "2.1.1", "level": "A", "title": "Keyboard" },
429
+ { "criterion": "4.1.2", "level": "A", "title": "Name, Role, Value" }
553
430
  ]
554
431
  }
555
432
  }