@adobe/spectrum-design-data 3.3.0-beta.2 → 3.3.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 (136) hide show
  1. package/components/accordion.json +67 -15
  2. package/components/action-bar.json +30 -9
  3. package/components/action-button.json +92 -39
  4. package/components/action-group.json +137 -18
  5. package/components/alert-banner.json +27 -8
  6. package/components/alert-dialog.json +55 -34
  7. package/components/avatar-group.json +35 -9
  8. package/components/avatar.json +105 -29
  9. package/components/badge.json +163 -56
  10. package/components/breadcrumbs.json +107 -26
  11. package/components/button-group.json +63 -19
  12. package/components/button.json +105 -61
  13. package/components/calendar.json +74 -8
  14. package/components/card.json +13 -0
  15. package/components/cards.json +46 -31
  16. package/components/checkbox-group.json +85 -16
  17. package/components/checkbox.json +97 -27
  18. package/components/close-button.json +75 -20
  19. package/components/coach-indicator.json +44 -14
  20. package/components/coach-mark.json +26 -8
  21. package/components/color-area.json +100 -20
  22. package/components/color-handle.json +46 -25
  23. package/components/color-loupe.json +14 -2
  24. package/components/color-slider.json +129 -26
  25. package/components/color-wheel.json +91 -17
  26. package/components/combo-box.json +189 -50
  27. package/components/contextual-help.json +126 -80
  28. package/components/date-field.json +7 -0
  29. package/components/date-picker.json +127 -24
  30. package/components/divider.json +38 -12
  31. package/components/drop-zone.json +37 -18
  32. package/components/field-label.json +62 -21
  33. package/components/heading.json +7 -0
  34. package/components/help-text.json +53 -16
  35. package/components/illustrated-message.json +85 -21
  36. package/components/in-line-alert.json +53 -13
  37. package/components/link.json +63 -24
  38. package/components/list-view.json +80 -15
  39. package/components/menu.json +181 -45
  40. package/components/meter.json +78 -24
  41. package/components/number-field.json +175 -34
  42. package/components/picker.json +188 -42
  43. package/components/popover.json +126 -37
  44. package/components/progress-bar.json +108 -23
  45. package/components/progress-circle.json +55 -12
  46. package/components/radio-button.json +67 -14
  47. package/components/radio-group.json +132 -28
  48. package/components/rating.json +38 -9
  49. package/components/search-field.json +126 -34
  50. package/components/segmented-control.json +70 -21
  51. package/components/select-box.json +103 -29
  52. package/components/side-navigation.json +69 -28
  53. package/components/slider.json +155 -39
  54. package/components/standard-dialog.json +88 -16
  55. package/components/status-light.json +136 -41
  56. package/components/steplist.json +24 -5
  57. package/components/swatch-group.json +55 -19
  58. package/components/swatch.json +79 -24
  59. package/components/switch.json +79 -31
  60. package/components/table.json +73 -26
  61. package/components/tabs.json +52 -22
  62. package/components/tag-field.json +60 -14
  63. package/components/tag-group.json +56 -16
  64. package/components/tag.json +78 -21
  65. package/components/takeover-dialog.json +61 -10
  66. package/components/text-area.json +205 -49
  67. package/components/text-field.json +170 -42
  68. package/components/thumbnail.json +63 -22
  69. package/components/time-field.json +7 -0
  70. package/components/toast.json +50 -29
  71. package/components/tooltip.json +87 -27
  72. package/components/tree-view.json +147 -45
  73. package/components/user-card.json +7 -0
  74. package/guidelines/app-frame-overview.json +44 -46
  75. package/guidelines/attention-hierarchy.json +22 -13
  76. package/guidelines/background-layers.json +10 -80
  77. package/guidelines/brand.json +12 -32
  78. package/guidelines/colors.json +17 -47
  79. package/guidelines/developer-overview.json +9 -25
  80. package/guidelines/faqs.json +9 -96
  81. package/guidelines/fonts.json +14 -29
  82. package/guidelines/grays.json +44 -17
  83. package/guidelines/icon-fundamentals.json +18 -7
  84. package/guidelines/manifest.json +15 -367
  85. package/guidelines/motion.json +16 -17
  86. package/guidelines/principles.json +8 -7
  87. package/guidelines/resources.json +15 -21
  88. package/guidelines/states.json +11 -16
  89. package/guidelines/using-icons.json +44 -33
  90. package/package.json +2 -2
  91. package/registry/platform-implementations.json +30 -0
  92. package/guidelines/ai-resource-guide.json +0 -50
  93. package/guidelines/applying-the-type-system.json +0 -67
  94. package/guidelines/bi-directionality.json +0 -57
  95. package/guidelines/border-width.json +0 -58
  96. package/guidelines/cognitive.json +0 -197
  97. package/guidelines/component-spacing.json +0 -61
  98. package/guidelines/contact-us.json +0 -67
  99. package/guidelines/content-area-browsing-context.json +0 -65
  100. package/guidelines/content-design-grammar-and-mechanics.json +0 -241
  101. package/guidelines/content-design-voice-and-tone.json +0 -37
  102. package/guidelines/content-grammar-and-mechanics.json +0 -252
  103. package/guidelines/content-language-and-inclusivity-writing-about-people.json +0 -103
  104. package/guidelines/content-language-and-inclusivity-writing-with-visuals.json +0 -70
  105. package/guidelines/content-voice-and-tone.json +0 -47
  106. package/guidelines/creating-bluelines-browsing-context.json +0 -91
  107. package/guidelines/design-tokens.json +0 -158
  108. package/guidelines/drop-shadow.json +0 -68
  109. package/guidelines/grammar-and-mechanics.json +0 -252
  110. package/guidelines/header-browsing-context.json +0 -40
  111. package/guidelines/illustration.json +0 -105
  112. package/guidelines/in-product-word-list.json +0 -29
  113. package/guidelines/inclusive-design.json +0 -101
  114. package/guidelines/inclusive-ux-writing.json +0 -30
  115. package/guidelines/internationalization.json +0 -87
  116. package/guidelines/language-and-inclusivity-writing-about-people.json +0 -85
  117. package/guidelines/language-and-inclusivity-writing-with-visuals.json +0 -61
  118. package/guidelines/layout-and-structure-containers.json +0 -47
  119. package/guidelines/layout-and-structure-spacing-overview.json +0 -66
  120. package/guidelines/layout-spacing.json +0 -39
  121. package/guidelines/object-styles-overview.json +0 -17
  122. package/guidelines/rounding.json +0 -73
  123. package/guidelines/side-navigation-browsing-context.json +0 -74
  124. package/guidelines/spacing-overview.json +0 -45
  125. package/guidelines/support.json +0 -113
  126. package/guidelines/typography-overview.json +0 -43
  127. package/guidelines/typography-system.json +0 -208
  128. package/guidelines/visual-language-containers.json +0 -36
  129. package/guidelines/voice-and-tone.json +0 -47
  130. package/guidelines/whats-new.json +0 -32
  131. package/guidelines/writing-about-people.json +0 -103
  132. package/guidelines/writing-for-errors.json +0 -120
  133. package/guidelines/writing-for-onboarding.json +0 -119
  134. package/guidelines/writing-for-readability.json +0 -54
  135. package/guidelines/writing-with-visuals.json +0 -70
  136. package/registry/platform-extensions/web-components-states.json +0 -58
@@ -9,6 +9,13 @@
9
9
  "category": "inputs",
10
10
  "documentationUrl": "https://spectrum.adobe.com/page/text-area/"
11
11
  },
12
+ "implementations": [
13
+ {
14
+ "platform": "web",
15
+ "componentName": "TextArea",
16
+ "package": "@react-spectrum/s2"
17
+ }
18
+ ],
12
19
  "documentBlocks": [
13
20
  {
14
21
  "type": "purpose",
@@ -16,135 +23,284 @@
16
23
  },
17
24
  {
18
25
  "type": "guideline",
19
- "content": "Minimum width.\n\nText areas are ideal for long sentences or paragraphs, and should comfortably accommodate larger amounts of text. They should have a minimum height of text-area-minimum-height (when the height of the text area is a defined number). The minimum width is field-default-width-[small/medium/large/extra-large]."
26
+ "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."
20
27
  },
21
28
  {
22
29
  "type": "guideline",
23
- "content": "Text overflow.\n\nWhen 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."
30
+ "content": "The value shows a user’s entered text."
24
31
  },
25
32
  {
26
33
  "type": "guideline",
27
- "content": "Mixed value.\n\nWhen a text area presents multiple values that are not identical, the field should show an en dash (–)."
34
+ "content": "The text area’s default width is field-default-width-\\[small/medium/large/extra-large]."
28
35
  },
29
36
  {
30
37
  "type": "guideline",
31
- "content": "Help text overflow.\n\nWhen the help text is too long for the available horizontal space, it wraps to form another line."
38
+ "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."
32
39
  },
33
40
  {
34
41
  "type": "guideline",
35
- "content": "Include a label.\n\nEvery text area should have a label. A text area without a label is ambiguous and not accessible."
42
+ "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."
36
43
  },
37
44
  {
38
45
  "type": "guideline",
39
- "content": "Follow capitalization rules.\n\nText area labels and placeholder text should be written in sentence case."
46
+ "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."
40
47
  },
41
48
  {
42
49
  "type": "guideline",
43
- "content": "Mark the minority of text areas in a form as required or optional.\n\nIn 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."
50
+ "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."
44
51
  },
45
52
  {
46
53
  "type": "guideline",
47
- "content": "Use help text to show hints, formatting, and requirements.\n\nThe 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: An overall description of the input field Hints for what kind of information needs to be input Specific formatting examples or requirements 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."
54
+ "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."
48
55
  },
49
56
  {
50
- "type": "do-dont",
51
- "content": "Don't use placeholder text",
52
- "dont": "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. 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."
57
+ "type": "guideline",
58
+ "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."
53
59
  },
54
60
  {
55
61
  "type": "guideline",
56
- "content": "Switch help text with error text.\n\nThe 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. 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."
62
+ "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."
57
63
  },
58
64
  {
59
65
  "type": "guideline",
60
- "content": "Write error text that shows a solution.\n\nWrite 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. 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."
66
+ "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."
61
67
  },
62
68
  {
63
69
  "type": "guideline",
64
- "content": "RTL.\n\nIn right‑to‑left languages, the text‑area layout is mirrored. The label appears right‑aligned, and elements such as the character count, validation icon and error icon appear left‑aligned. Keep in mind that some content, including email addresses, does not change direction or translate."
70
+ "content": "When defined as fixed (either by the development team or by the end user via the dragIcon), users can scroll inside the field."
65
71
  },
66
72
  {
67
73
  "type": "guideline",
68
- "content": "Keyboard interactions.\n\nKey Interaction TabTabbing into a text area selects the existing text.Shift + TabMoves focus to the previous focusable element.EnterInserts a new line at the caret position.Arrow keysMove caret through text; with Shift, extend text selection.Home / EndMove caret to start/end of line (platform behavior may vary).Ctrl/Cmd + ASelect all text in the text area. Note: Standard native text-editing shortcuts (copy, paste, undo, redo, delete, word navigation) should be preserved and not overridden."
74
+ "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."
69
75
  },
70
76
  {
71
77
  "type": "guideline",
72
- "content": "Cursor guidelines.\n\nCursor Description TextUse text cursor over editable text area content in all states.PointerAny clickable control that is part of the text area (e.g., clear/reveal/help icon) uses the pointer cursor.Move (up/down and left/right)Use while dragging the resize handle (if resizing is enabled)."
78
+ "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."
73
79
  },
74
80
  {
75
81
  "type": "guideline",
76
- "content": "WCAG 2.2 compliance.\n\nAny criterion not mention in the below table are not applicable to this component or are resolved with underlying requirements, engineering, and styles of the entire system. 1. Perceivable Requirement Criterion Level Compliance Non-text content 1.1.1 ANon-text elements, such as icons paired with a text area (validation icons, clear-input icons), must provide a text alternative. All text areas need an accessible name (via a visible label, title, aria-label, or associated text) so screen readers can announce their purpose.Info and relationships, Identify purpose 1.3.1, 1.3.6 A, AAAText areas should be understandable by assistive technologies. The label, help text, error message, and required state must be programmatically associated with the field using semantic HTML or ARIA.Contrast 1.4.3 AAThe visual presentation of text has a contrast ratio of at least 4.5:1.Resize text 1.4.4 AAText areas can be resized up to 200% without loss of content or functionality and without assistive technology.Visual presentation 1.4.8 AAAThe width of text blocks is no more than 80 characters (40 for CJK languages), and text is never justified.Non-text contrast 1.4.11 AAThe visual presentation of illustrations, icons, and component states have a contrast ratio of at least 3:1. Not applicable for empty fields.Text spacing 1.4.12 AALine height of text is at least 1.5x the font size. 2. Operable RequirementCriterionLevel Compliance Keyboard 2.1.1, 2.1.3 A, AAAAll functionality of the component is operable through a keyboard without specific timing for keystrokes.Keyboard traps 2.1.2 AFocus can be moved away from the component using only a keyboard.Seizures and physical reactions 2.3.1, 2.3.2, 2.3.3 A, AAA, AAAThere is no flashing content or unnecessary motion or animation in this component.Focus order 2.4.3 ANavigation sequences receive focus in an order that preserves meaning and operability.Focus visible 2.4.7 AAKeyboard states use an indicator that is visible with at least 3:1 contrast."
82
+ "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."
83
+ },
84
+ {
85
+ "type": "guideline",
86
+ "content": "Use these input types for the following use cases:"
87
+ },
88
+ {
89
+ "type": "guideline",
90
+ "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."
91
+ },
92
+ {
93
+ "type": "guideline",
94
+ "content": "When a text area presents multiple values that are not identical, the field should show an en dash (–)."
95
+ },
96
+ {
97
+ "type": "guideline",
98
+ "content": "When the help text is too long for the available horizontal space, it wraps to form another line."
99
+ },
100
+ {
101
+ "type": "guideline",
102
+ "content": "Every text area should have a label. A text area without a label is ambiguous and not accessible."
103
+ },
104
+ {
105
+ "type": "guideline",
106
+ "content": "Text area labels and placeholder text should be written in sentence case."
107
+ },
108
+ {
109
+ "type": "guideline",
110
+ "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."
111
+ },
112
+ {
113
+ "type": "guideline",
114
+ "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:"
115
+ },
116
+ {
117
+ "type": "guideline",
118
+ "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."
119
+ },
120
+ {
121
+ "type": "guideline",
122
+ "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."
123
+ },
124
+ {
125
+ "type": "guideline",
126
+ "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."
127
+ },
128
+ {
129
+ "type": "guideline",
130
+ "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."
131
+ },
132
+ {
133
+ "type": "guideline",
134
+ "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."
135
+ },
136
+ {
137
+ "type": "guideline",
138
+ "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."
139
+ },
140
+ {
141
+ "type": "guideline",
142
+ "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.”"
77
143
  }
78
144
  ],
79
145
  "options": {
80
- "label": { "type": "string" },
146
+ "label": {
147
+ "type": "string"
148
+ },
81
149
  "labelPosition": {
82
150
  "type": "string",
83
151
  "default": "top",
84
- "values": [{ "value": "top" }, { "value": "side" }]
152
+ "values": [
153
+ {
154
+ "value": "top"
155
+ },
156
+ {
157
+ "value": "side"
158
+ }
159
+ ]
160
+ },
161
+ "hideLabel": {
162
+ "type": "boolean",
163
+ "default": false
164
+ },
165
+ "value": {
166
+ "type": "string",
167
+ "description": "from minValue to maxValue"
168
+ },
169
+ "width": {
170
+ "type": "number"
85
171
  },
86
- "hideLabel": { "type": "boolean", "default": false },
87
- "value": { "type": "string", "description": "from minValue to maxValue" },
88
- "width": { "type": "number" },
89
172
  "size": {
90
173
  "type": "string",
91
174
  "default": "m",
92
175
  "values": [
93
- { "value": "s" },
94
- { "value": "m" },
95
- { "value": "l" },
96
- { "value": "xl" }
176
+ {
177
+ "value": "s"
178
+ },
179
+ {
180
+ "value": "m"
181
+ },
182
+ {
183
+ "value": "l"
184
+ },
185
+ {
186
+ "value": "xl"
187
+ }
97
188
  ]
98
189
  },
99
190
  "necessityIndicator": {
100
191
  "type": "string",
101
192
  "default": "icon",
102
- "values": [{ "value": "text" }, { "value": "icon" }]
103
- },
104
- "isRequired": { "type": "boolean", "default": false },
105
- "hasCharacterCount": { "type": "boolean", "default": false },
106
- "showValidIcon": { "type": "boolean", "default": false },
107
- "isError": { "type": "boolean", "default": false },
108
- "isDisabled": { "type": "boolean", "default": false },
109
- "hideDragIcon": { "type": "boolean", "default": false },
193
+ "values": [
194
+ {
195
+ "value": "text"
196
+ },
197
+ {
198
+ "value": "icon"
199
+ }
200
+ ]
201
+ },
202
+ "isRequired": {
203
+ "type": "boolean",
204
+ "default": false
205
+ },
206
+ "hasCharacterCount": {
207
+ "type": "boolean",
208
+ "default": false
209
+ },
210
+ "showValidIcon": {
211
+ "type": "boolean",
212
+ "default": false
213
+ },
214
+ "isError": {
215
+ "type": "boolean",
216
+ "default": false
217
+ },
218
+ "isDisabled": {
219
+ "type": "boolean",
220
+ "default": false
221
+ },
222
+ "hideDragIcon": {
223
+ "type": "boolean",
224
+ "default": false
225
+ },
110
226
  "height": {
111
227
  "type": "number",
112
228
  "description": "If undefined, height is dynamic and grows with input text."
113
229
  },
114
- "helpText": { "type": "string" },
115
- "errorMessage": { "type": "string" },
230
+ "helpText": {
231
+ "type": "string"
232
+ },
233
+ "errorMessage": {
234
+ "type": "string"
235
+ },
116
236
  "inputType": {
117
237
  "type": "string",
118
238
  "default": "text",
119
239
  "values": [
120
- { "value": "text" },
121
- { "value": "url" },
122
- { "value": "phone" },
123
- { "value": "email" },
124
- { "value": "password" }
240
+ {
241
+ "value": "text"
242
+ },
243
+ {
244
+ "value": "url"
245
+ },
246
+ {
247
+ "value": "phone"
248
+ },
249
+ {
250
+ "value": "email"
251
+ },
252
+ {
253
+ "value": "password"
254
+ }
125
255
  ]
126
256
  }
127
257
  },
128
258
  "states": [
129
- { "name": "hover", "trigger": "interaction" },
130
- { "name": "focus-+-hover", "trigger": "prop" },
131
- { "name": "focus-+-not-hover", "trigger": "prop" },
132
- { "name": "keyboard-focus", "trigger": "interaction" }
259
+ {
260
+ "name": "hover",
261
+ "trigger": "interaction"
262
+ },
263
+ {
264
+ "name": "focus-+-hover",
265
+ "trigger": "prop"
266
+ },
267
+ {
268
+ "name": "focus-+-not-hover",
269
+ "trigger": "prop"
270
+ },
271
+ {
272
+ "name": "keyboard-focus",
273
+ "trigger": "interaction"
274
+ }
133
275
  ],
134
- "lifecycle": { "introduced": "1.0.0-draft" },
276
+ "lifecycle": {
277
+ "introduced": "1.0.0-draft"
278
+ },
135
279
  "accessibility": {
136
280
  "role": "textbox",
137
281
  "intents": ["input"],
138
282
  "focusable": true,
139
283
  "wcag": [
140
- { "criterion": "1.3.1", "level": "A", "title": "Info and Relationships" },
284
+ {
285
+ "criterion": "1.3.1",
286
+ "level": "A",
287
+ "title": "Info and Relationships"
288
+ },
141
289
  {
142
290
  "criterion": "1.3.5",
143
291
  "level": "AA",
144
292
  "title": "Identify Input Purpose"
145
293
  },
146
- { "criterion": "2.1.1", "level": "A", "title": "Keyboard" },
147
- { "criterion": "4.1.2", "level": "A", "title": "Name, Role, Value" }
294
+ {
295
+ "criterion": "2.1.1",
296
+ "level": "A",
297
+ "title": "Keyboard"
298
+ },
299
+ {
300
+ "criterion": "4.1.2",
301
+ "level": "A",
302
+ "title": "Name, Role, Value"
303
+ }
148
304
  ]
149
305
  }
150
306
  }