@adobe/spectrum-design-data 0.4.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/accordion.json +108 -194
- package/components/action-bar.json +64 -97
- package/components/action-button.json +95 -230
- package/components/action-group.json +88 -86
- package/components/alert-banner.json +104 -76
- package/components/alert-dialog.json +78 -126
- package/components/avatar-group.json +61 -119
- package/components/avatar.json +98 -212
- package/components/badge.json +138 -256
- package/components/breadcrumbs.json +95 -89
- package/components/button-group.json +57 -48
- package/components/button.json +151 -368
- package/components/calendar.json +97 -34
- package/components/cards.json +109 -250
- package/components/checkbox-group.json +50 -58
- package/components/checkbox.json +121 -186
- package/components/close-button.json +61 -124
- package/components/coach-indicator.json +63 -72
- package/components/coach-mark.json +89 -93
- package/components/color-area.json +68 -94
- package/components/color-handle.json +39 -79
- package/components/color-loupe.json +35 -52
- package/components/color-slider.json +95 -116
- package/components/color-wheel.json +67 -73
- package/components/combo-box.json +243 -331
- package/components/contextual-help.json +86 -175
- package/components/date-picker.json +139 -179
- package/components/divider.json +30 -69
- package/components/drop-zone.json +51 -92
- package/components/field-label.json +75 -117
- package/components/help-text.json +81 -105
- package/components/illustrated-message.json +106 -73
- package/components/in-line-alert.json +50 -83
- package/components/link.json +63 -85
- package/components/list-view.json +107 -146
- package/components/menu.json +180 -274
- package/components/meter.json +72 -118
- package/components/number-field.json +213 -305
- package/components/picker.json +208 -320
- package/components/popover.json +94 -129
- package/components/progress-bar.json +94 -131
- package/components/progress-circle.json +45 -72
- package/components/radio-button.json +87 -156
- package/components/radio-group.json +107 -74
- package/components/rating.json +66 -99
- package/components/search-field.json +132 -202
- package/components/segmented-control.json +94 -109
- package/components/select-box.json +119 -179
- package/components/side-navigation.json +108 -118
- package/components/slider.json +143 -228
- package/components/standard-dialog.json +96 -114
- package/components/standard-panel.json +105 -53
- package/components/status-light.json +104 -240
- package/components/steplist.json +77 -161
- package/components/swatch-group.json +42 -58
- package/components/swatch.json +75 -162
- package/components/switch.json +101 -189
- package/components/table.json +97 -102
- package/components/tabs.json +77 -104
- package/components/tag-field.json +86 -150
- package/components/tag-group.json +50 -44
- package/components/tag.json +81 -198
- package/components/takeover-dialog.json +59 -57
- package/components/text-area.json +200 -323
- package/components/text-field.json +183 -304
- package/components/thumbnail.json +63 -105
- package/components/toast.json +97 -83
- package/components/tooltip.json +104 -96
- package/components/tree-view.json +169 -181
- package/guidelines/app-frame-content-area.json +87 -0
- package/guidelines/app-frame-creating-bluelines.json +61 -0
- package/guidelines/app-frame-header.json +75 -0
- package/guidelines/app-frame-overview.json +167 -0
- package/guidelines/app-frame-side-navigation.json +138 -0
- package/guidelines/attention-hierarchy.json +42 -0
- package/guidelines/background-layers.json +41 -0
- package/guidelines/brand.json +50 -0
- package/guidelines/colors.json +65 -0
- package/guidelines/containers.json +65 -0
- package/guidelines/developer-overview.json +38 -0
- package/guidelines/faqs.json +35 -0
- package/guidelines/fonts.json +58 -0
- package/guidelines/grays.json +69 -0
- package/guidelines/icon-fundamentals.json +45 -0
- package/guidelines/illustrations.json +114 -0
- package/guidelines/introduction.json +34 -0
- package/guidelines/manifest.json +204 -0
- package/guidelines/motion.json +41 -0
- package/guidelines/object-styles.json +105 -0
- package/guidelines/principles.json +30 -0
- package/guidelines/resources.json +59 -0
- package/guidelines/spacing.json +25 -0
- package/guidelines/states.json +34 -0
- package/guidelines/typography-fundamentals.json +145 -0
- package/guidelines/using-icons.json +110 -0
- package/package.json +5 -2
|
@@ -9,165 +9,188 @@
|
|
|
9
9
|
"category": "inputs",
|
|
10
10
|
"documentationUrl": "https://spectrum.adobe.com/page/text-field/"
|
|
11
11
|
},
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
"type": "
|
|
12
|
+
"documentBlocks": [
|
|
13
|
+
{
|
|
14
|
+
"type": "purpose",
|
|
15
|
+
"content": "Text fields allow users to input custom text entries with a keyboard. Various options can be shown with the field to communicate the input requirements."
|
|
15
16
|
},
|
|
16
|
-
|
|
17
|
-
"type": "
|
|
18
|
-
"
|
|
19
|
-
"values": [
|
|
20
|
-
{
|
|
21
|
-
"value": "top"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"value": "side"
|
|
25
|
-
}
|
|
26
|
-
]
|
|
17
|
+
{
|
|
18
|
+
"type": "guideline",
|
|
19
|
+
"content": "Text fields collect custom text input. They can display optional cues to indicate formatting, validation, or other input requirements."
|
|
27
20
|
},
|
|
28
|
-
|
|
29
|
-
"type": "
|
|
30
|
-
"
|
|
21
|
+
{
|
|
22
|
+
"type": "guideline",
|
|
23
|
+
"content": "Text fields should always have an accessible name, typically provided by a visible text label. In rare cases where context is sufficient and an accessibility expert has reviewed the design, the visible label may be hidden or omitted. When no visible label is present, the input must still expose an accessible name (for example, in HTML via “aria-label” or “aria-labelledby,” and on other platforms via the platform’s accessible-name mechanism)."
|
|
31
24
|
},
|
|
32
|
-
|
|
33
|
-
"type": "
|
|
34
|
-
"
|
|
25
|
+
{
|
|
26
|
+
"type": "guideline",
|
|
27
|
+
"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."
|
|
35
28
|
},
|
|
36
|
-
|
|
37
|
-
"type": "
|
|
29
|
+
{
|
|
30
|
+
"type": "guideline",
|
|
31
|
+
"content": "The value shows a user’s entered text."
|
|
38
32
|
},
|
|
39
|
-
|
|
40
|
-
"type": "
|
|
41
|
-
"
|
|
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": "The text field’s default width is field-default-width-\\[small/medium/large/extra-large]."
|
|
56
36
|
},
|
|
57
|
-
|
|
58
|
-
"type": "
|
|
59
|
-
"
|
|
60
|
-
"values": [
|
|
61
|
-
{
|
|
62
|
-
"value": "text"
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
"value": "icon"
|
|
66
|
-
}
|
|
67
|
-
]
|
|
37
|
+
{
|
|
38
|
+
"type": "guideline",
|
|
39
|
+
"content": "Text fields 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."
|
|
68
40
|
},
|
|
69
|
-
|
|
70
|
-
"type": "
|
|
71
|
-
"
|
|
41
|
+
{
|
|
42
|
+
"type": "guideline",
|
|
43
|
+
"content": "Text fields can be marked as optional or required, depending on the situation. For required text fields, 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 fields are either denoted with text added to the end of the label — “(optional)” — or have no indication at all."
|
|
72
44
|
},
|
|
73
|
-
|
|
74
|
-
"type": "
|
|
75
|
-
"
|
|
45
|
+
{
|
|
46
|
+
"type": "guideline",
|
|
47
|
+
"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."
|
|
76
48
|
},
|
|
77
|
-
|
|
78
|
-
"type": "
|
|
79
|
-
"
|
|
49
|
+
{
|
|
50
|
+
"type": "guideline",
|
|
51
|
+
"content": "Text fields can display a character count indicator when the length of the text entry needs to be kept under a predefined value. Character count indicators can be used in conjunction with other indicators (validation icon, “optional” or “required” indicators) when necessary."
|
|
80
52
|
},
|
|
81
|
-
|
|
82
|
-
"type": "
|
|
83
|
-
"
|
|
84
|
-
"description": "If there is an error, this property overrides show valid icon."
|
|
53
|
+
{
|
|
54
|
+
"type": "guideline",
|
|
55
|
+
"content": "Text fields can display a validation icon when the text entry is expected to conform to a specific format such as email address, credit card number, password creation requirements, and many more. The icon appears as soon as a user types a valid entry in the field."
|
|
85
56
|
},
|
|
86
|
-
|
|
87
|
-
"type": "
|
|
88
|
-
"
|
|
57
|
+
{
|
|
58
|
+
"type": "guideline",
|
|
59
|
+
"content": "A text field 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."
|
|
89
60
|
},
|
|
90
|
-
|
|
91
|
-
"type": "
|
|
61
|
+
{
|
|
62
|
+
"type": "guideline",
|
|
63
|
+
"content": "A text field in a disabled state shows that an text field exists, but is not available in that circumstance. This can be used to maintain layout continuity and communicate that a field may become available later."
|
|
92
64
|
},
|
|
93
|
-
"errorMessage": {
|
|
94
|
-
"type": "string"
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
"states": [
|
|
98
65
|
{
|
|
99
|
-
"
|
|
100
|
-
"
|
|
66
|
+
"type": "guideline",
|
|
67
|
+
"content": "A text field 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."
|
|
101
68
|
},
|
|
102
69
|
{
|
|
103
|
-
"
|
|
104
|
-
"
|
|
70
|
+
"type": "guideline",
|
|
71
|
+
"content": "A text field 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."
|
|
105
72
|
},
|
|
106
73
|
{
|
|
107
|
-
"
|
|
108
|
-
"
|
|
74
|
+
"type": "guideline",
|
|
75
|
+
"content": "The minimum width for a text field is 1.5 × the height of the field. This minimum width guarantees that small text fields are readable and easy to target on touch devices."
|
|
109
76
|
},
|
|
110
77
|
{
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
}
|
|
114
|
-
],
|
|
115
|
-
"lifecycle": {
|
|
116
|
-
"introduced": "1.0.0-draft"
|
|
117
|
-
},
|
|
118
|
-
"tokenBindings": [
|
|
78
|
+
"type": "guideline",
|
|
79
|
+
"content": "When the field label is too long for the available horizontal space, it wraps to form another line. The field text itself truncates."
|
|
80
|
+
},
|
|
119
81
|
{
|
|
120
|
-
"
|
|
121
|
-
"
|
|
82
|
+
"type": "guideline",
|
|
83
|
+
"content": "When a text field presents multiple values that are not identical, the field should show an en dash (–)."
|
|
122
84
|
},
|
|
123
85
|
{
|
|
124
|
-
"
|
|
125
|
-
"
|
|
86
|
+
"type": "guideline",
|
|
87
|
+
"content": "When the help text is too long for the available horizontal space, it wraps to form another line."
|
|
126
88
|
},
|
|
127
89
|
{
|
|
128
|
-
"
|
|
129
|
-
"
|
|
90
|
+
"type": "guideline",
|
|
91
|
+
"content": "Every text field should have a label. A field without a label is ambiguous and not accessible."
|
|
130
92
|
},
|
|
131
93
|
{
|
|
132
|
-
"
|
|
133
|
-
"
|
|
94
|
+
"type": "guideline",
|
|
95
|
+
"content": "Field labels should be in sentence case."
|
|
134
96
|
},
|
|
135
97
|
{
|
|
136
|
-
"
|
|
137
|
-
"
|
|
98
|
+
"type": "guideline",
|
|
99
|
+
"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 field is optional."
|
|
138
100
|
},
|
|
139
101
|
{
|
|
140
|
-
"
|
|
141
|
-
"
|
|
102
|
+
"type": "guideline",
|
|
103
|
+
"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."
|
|
142
104
|
},
|
|
143
105
|
{
|
|
144
|
-
"
|
|
145
|
-
"
|
|
106
|
+
"type": "guideline",
|
|
107
|
+
"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."
|
|
146
108
|
},
|
|
147
109
|
{
|
|
148
|
-
"
|
|
149
|
-
"
|
|
110
|
+
"type": "guideline",
|
|
111
|
+
"content": "Instead, 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."
|
|
150
112
|
},
|
|
151
113
|
{
|
|
152
|
-
"
|
|
153
|
-
"
|
|
114
|
+
"type": "guideline",
|
|
115
|
+
"content": "The help text area also displays an error message. When a text field 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."
|
|
154
116
|
},
|
|
155
117
|
{
|
|
156
|
-
"
|
|
157
|
-
"
|
|
118
|
+
"type": "guideline",
|
|
119
|
+
"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 password requirements."
|
|
158
120
|
},
|
|
159
121
|
{
|
|
160
|
-
"
|
|
161
|
-
"
|
|
122
|
+
"type": "guideline",
|
|
123
|
+
"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."
|
|
162
124
|
},
|
|
163
125
|
{
|
|
164
|
-
"
|
|
165
|
-
"
|
|
126
|
+
"type": "guideline",
|
|
127
|
+
"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 fields, 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 email address, 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 your email address.”"
|
|
128
|
+
}
|
|
129
|
+
],
|
|
130
|
+
"options": {
|
|
131
|
+
"label": { "type": "string" },
|
|
132
|
+
"labelPosition": {
|
|
133
|
+
"type": "string",
|
|
134
|
+
"default": "top",
|
|
135
|
+
"values": [{ "value": "top" }, { "value": "side" }]
|
|
136
|
+
},
|
|
137
|
+
"hideLabel": { "type": "boolean", "default": false },
|
|
138
|
+
"value": { "type": "string", "description": "from minValue to maxValue" },
|
|
139
|
+
"width": { "type": "number" },
|
|
140
|
+
"size": {
|
|
141
|
+
"type": "string",
|
|
142
|
+
"default": "m",
|
|
143
|
+
"values": [
|
|
144
|
+
{ "value": "s" },
|
|
145
|
+
{ "value": "m" },
|
|
146
|
+
{ "value": "l" },
|
|
147
|
+
{ "value": "xl" }
|
|
148
|
+
]
|
|
149
|
+
},
|
|
150
|
+
"necessityIndicator": {
|
|
151
|
+
"type": "string",
|
|
152
|
+
"default": "icon",
|
|
153
|
+
"values": [{ "value": "text" }, { "value": "icon" }]
|
|
166
154
|
},
|
|
155
|
+
"isRequired": { "type": "boolean", "default": false },
|
|
156
|
+
"hasCharacterCount": { "type": "boolean", "default": false },
|
|
157
|
+
"showValidIcon": { "type": "boolean", "default": false },
|
|
158
|
+
"isError": {
|
|
159
|
+
"type": "boolean",
|
|
160
|
+
"default": false,
|
|
161
|
+
"description": "If there is an error, this property overrides show valid icon."
|
|
162
|
+
},
|
|
163
|
+
"isDisabled": { "type": "boolean", "default": false },
|
|
164
|
+
"helpText": { "type": "string" },
|
|
165
|
+
"errorMessage": { "type": "string" }
|
|
166
|
+
},
|
|
167
|
+
"states": [
|
|
168
|
+
{ "name": "hover", "trigger": "interaction" },
|
|
169
|
+
{ "name": "focus-+-hover", "trigger": "prop" },
|
|
170
|
+
{ "name": "focus-+-not-hover", "trigger": "prop" },
|
|
171
|
+
{ "name": "keyboard-focus", "trigger": "interaction" }
|
|
172
|
+
],
|
|
173
|
+
"lifecycle": { "introduced": "1.0.0-draft" },
|
|
174
|
+
"tokenBindings": [
|
|
175
|
+
{ "token": "field-default-width-small", "context": "Width (default)" },
|
|
176
|
+
{ "token": "field-default-width-medium", "context": "Width (default)" },
|
|
177
|
+
{ "token": "field-default-width-large", "context": "Width (default)" },
|
|
167
178
|
{
|
|
168
|
-
"token": "
|
|
169
|
-
"context": "
|
|
179
|
+
"token": "field-default-width-extra-large",
|
|
180
|
+
"context": "Width (default)"
|
|
170
181
|
},
|
|
182
|
+
{
|
|
183
|
+
"token": "text-field-minimum-width-multiplier",
|
|
184
|
+
"context": "Width (minimum)"
|
|
185
|
+
},
|
|
186
|
+
{ "token": "component-height-75", "context": "Height" },
|
|
187
|
+
{ "token": "component-height-100", "context": "Height" },
|
|
188
|
+
{ "token": "component-height-200", "context": "Height" },
|
|
189
|
+
{ "token": "component-height-300", "context": "Height" },
|
|
190
|
+
{ "token": "corner-radius-medium-size-small", "context": "Rounding" },
|
|
191
|
+
{ "token": "corner-radius-medium-size-medium", "context": "Rounding" },
|
|
192
|
+
{ "token": "corner-radius-medium-size-large", "context": "Rounding" },
|
|
193
|
+
{ "token": "corner-radius-medium-size-extra-large", "context": "Rounding" },
|
|
171
194
|
{
|
|
172
195
|
"token": "component-edge-to-text-75",
|
|
173
196
|
"context": "Spacing (start/end edge to value)"
|
|
@@ -184,22 +207,10 @@
|
|
|
184
207
|
"token": "component-edge-to-text-300",
|
|
185
208
|
"context": "Spacing (start/end edge to value)"
|
|
186
209
|
},
|
|
187
|
-
{
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
"token": "workflow-icon-size-100",
|
|
193
|
-
"context": "Prefix min-width"
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
"token": "workflow-icon-size-200",
|
|
197
|
-
"context": "Prefix min-width"
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
"token": "workflow-icon-size-300",
|
|
201
|
-
"context": "Prefix min-width"
|
|
202
|
-
},
|
|
210
|
+
{ "token": "workflow-icon-size-75", "context": "Prefix min-width" },
|
|
211
|
+
{ "token": "workflow-icon-size-100", "context": "Prefix min-width" },
|
|
212
|
+
{ "token": "workflow-icon-size-200", "context": "Prefix min-width" },
|
|
213
|
+
{ "token": "workflow-icon-size-300", "context": "Prefix min-width" },
|
|
203
214
|
{
|
|
204
215
|
"token": "text-to-visual-75",
|
|
205
216
|
"context": "Spacing (prefix to value/placeholder)"
|
|
@@ -216,14 +227,8 @@
|
|
|
216
227
|
"token": "text-to-visual-300",
|
|
217
228
|
"context": "Spacing (prefix to value/placeholder)"
|
|
218
229
|
},
|
|
219
|
-
{
|
|
220
|
-
|
|
221
|
-
"context": "Border"
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
"token": "focus-indicator-thickness",
|
|
225
|
-
"context": "Focus indicator"
|
|
226
|
-
},
|
|
230
|
+
{ "token": "border-width-200", "context": "Border" },
|
|
231
|
+
{ "token": "focus-indicator-thickness", "context": "Focus indicator" },
|
|
227
232
|
{
|
|
228
233
|
"token": "component-top-to-workflow-icon-75",
|
|
229
234
|
"context": "Spacing (top/bottom edge to alert icon)"
|
|
@@ -256,10 +261,7 @@
|
|
|
256
261
|
"token": "field-edge-to-alert-icon-extra-large",
|
|
257
262
|
"context": "Spacing (alert icon to end edge)"
|
|
258
263
|
},
|
|
259
|
-
{
|
|
260
|
-
"token": "checkmark-icon-size-75",
|
|
261
|
-
"context": "Checkmark UI icon asset"
|
|
262
|
-
},
|
|
264
|
+
{ "token": "checkmark-icon-size-75", "context": "Checkmark UI icon asset" },
|
|
263
265
|
{
|
|
264
266
|
"token": "checkmark-icon-size-100",
|
|
265
267
|
"context": "Checkmark UI icon asset"
|
|
@@ -336,162 +338,51 @@
|
|
|
336
338
|
"token": "help-text-to-component",
|
|
337
339
|
"context": "Spacing (text field to help text)"
|
|
338
340
|
},
|
|
339
|
-
{
|
|
340
|
-
|
|
341
|
-
|
|
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
|
-
},
|
|
341
|
+
{ "token": "gray-25", "context": "Background and border" },
|
|
342
|
+
{ "token": "gray-300", "context": "Background and border" },
|
|
343
|
+
{ "token": "gray-400", "context": "Background and border" },
|
|
344
|
+
{ "token": "gray-900", "context": "Background and border" },
|
|
345
|
+
{ "token": "gray-800", "context": "Background and border" },
|
|
359
346
|
{
|
|
360
347
|
"token": "neutral-subdued-content-color-default",
|
|
361
348
|
"context": "Background and border"
|
|
362
349
|
},
|
|
363
|
-
{
|
|
364
|
-
|
|
365
|
-
"context": "Border (error)"
|
|
366
|
-
},
|
|
367
|
-
{
|
|
368
|
-
"token": "negative-border-color-hover",
|
|
369
|
-
"context": "Border (error)"
|
|
370
|
-
},
|
|
350
|
+
{ "token": "negative-border-color-default", "context": "Border (error)" },
|
|
351
|
+
{ "token": "negative-border-color-hover", "context": "Border (error)" },
|
|
371
352
|
{
|
|
372
353
|
"token": "negative-border-color-focus-hover",
|
|
373
354
|
"context": "Border (error)"
|
|
374
355
|
},
|
|
375
|
-
{
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
},
|
|
379
|
-
{
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
},
|
|
383
|
-
{
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
},
|
|
387
|
-
{
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
},
|
|
391
|
-
{
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
},
|
|
395
|
-
{
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
},
|
|
399
|
-
{
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
},
|
|
403
|
-
{
|
|
404
|
-
|
|
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": "Value"
|
|
430
|
-
},
|
|
431
|
-
{
|
|
432
|
-
"token": "regular-font-weight",
|
|
433
|
-
"context": "Value"
|
|
434
|
-
},
|
|
435
|
-
{
|
|
436
|
-
"token": "default-font-style",
|
|
437
|
-
"context": "Value"
|
|
438
|
-
},
|
|
439
|
-
{
|
|
440
|
-
"token": "component-s-regular",
|
|
441
|
-
"context": "Value"
|
|
442
|
-
},
|
|
443
|
-
{
|
|
444
|
-
"token": "component-m-regular",
|
|
445
|
-
"context": "Value"
|
|
446
|
-
},
|
|
447
|
-
{
|
|
448
|
-
"token": "component-l-regular",
|
|
449
|
-
"context": "Value"
|
|
450
|
-
},
|
|
451
|
-
{
|
|
452
|
-
"token": "component-xl-regular",
|
|
453
|
-
"context": "Value"
|
|
454
|
-
},
|
|
455
|
-
{
|
|
456
|
-
"token": "line-height-font-size-75",
|
|
457
|
-
"context": "Value"
|
|
458
|
-
},
|
|
459
|
-
{
|
|
460
|
-
"token": "line-height-font-size-100",
|
|
461
|
-
"context": "Value"
|
|
462
|
-
},
|
|
463
|
-
{
|
|
464
|
-
"token": "line-height-font-size-200",
|
|
465
|
-
"context": "Value"
|
|
466
|
-
},
|
|
467
|
-
{
|
|
468
|
-
"token": "line-height-font-size-300",
|
|
469
|
-
"context": "Value"
|
|
470
|
-
},
|
|
471
|
-
{
|
|
472
|
-
"token": "cjk-line-height-100",
|
|
473
|
-
"context": "Value"
|
|
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
|
-
},
|
|
356
|
+
{ "token": "negative-border-color-focus", "context": "Border (error)" },
|
|
357
|
+
{ "token": "negative-border-color-key-focus", "context": "Border (error)" },
|
|
358
|
+
{ "token": "neutral-content-color-default", "context": "Value" },
|
|
359
|
+
{ "token": "neutral-content-color-hover", "context": "Value" },
|
|
360
|
+
{ "token": "neutral-content-color-focus-hover", "context": "Value" },
|
|
361
|
+
{ "token": "neutral-content-color-focus", "context": "Value" },
|
|
362
|
+
{ "token": "neutral-content-color-key-focus", "context": "Value" },
|
|
363
|
+
{ "token": "negative-visual-color", "context": "Alert icon" },
|
|
364
|
+
{ "token": "positive-visual-color", "context": "Positive icon" },
|
|
365
|
+
{ "token": "disabled-border-color", "context": "Disabled" },
|
|
366
|
+
{ "token": "disabled-content-color", "context": "Disabled" },
|
|
367
|
+
{ "token": "focus-indicator-color", "context": "Focus ring" },
|
|
368
|
+
{ "token": "gray-600", "context": "Leading icon" },
|
|
369
|
+
{ "token": "default-font-family", "context": "Value" },
|
|
370
|
+
{ "token": "regular-font-weight", "context": "Value" },
|
|
371
|
+
{ "token": "default-font-style", "context": "Value" },
|
|
372
|
+
{ "token": "component-s-regular", "context": "Value" },
|
|
373
|
+
{ "token": "component-m-regular", "context": "Value" },
|
|
374
|
+
{ "token": "component-l-regular", "context": "Value" },
|
|
375
|
+
{ "token": "component-xl-regular", "context": "Value" },
|
|
376
|
+
{ "token": "line-height-font-size-75", "context": "Value" },
|
|
377
|
+
{ "token": "line-height-font-size-100", "context": "Value" },
|
|
378
|
+
{ "token": "line-height-font-size-200", "context": "Value" },
|
|
379
|
+
{ "token": "line-height-font-size-300", "context": "Value" },
|
|
380
|
+
{ "token": "cjk-line-height-100", "context": "Value" },
|
|
381
|
+
{ "token": "medium-font-weight", "context": "Prefix" },
|
|
382
|
+
{ "token": "component-s-medium", "context": "Prefix" },
|
|
383
|
+
{ "token": "component-m-medium", "context": "Prefix" },
|
|
384
|
+
{ "token": "component-l-medium", "context": "Prefix" },
|
|
385
|
+
{ "token": "component-xl-medium", "context": "Prefix" },
|
|
495
386
|
{
|
|
496
387
|
"token": "component-padding-vertical-200",
|
|
497
388
|
"context": "Spacing (top/bottom edge to text)"
|
|
@@ -530,26 +421,14 @@
|
|
|
530
421
|
"intents": ["input"],
|
|
531
422
|
"focusable": true,
|
|
532
423
|
"wcag": [
|
|
533
|
-
{
|
|
534
|
-
"criterion": "1.3.1",
|
|
535
|
-
"level": "A",
|
|
536
|
-
"title": "Info and Relationships"
|
|
537
|
-
},
|
|
424
|
+
{ "criterion": "1.3.1", "level": "A", "title": "Info and Relationships" },
|
|
538
425
|
{
|
|
539
426
|
"criterion": "1.3.5",
|
|
540
427
|
"level": "AA",
|
|
541
428
|
"title": "Identify Input Purpose"
|
|
542
429
|
},
|
|
543
|
-
{
|
|
544
|
-
|
|
545
|
-
"level": "A",
|
|
546
|
-
"title": "Keyboard"
|
|
547
|
-
},
|
|
548
|
-
{
|
|
549
|
-
"criterion": "4.1.2",
|
|
550
|
-
"level": "A",
|
|
551
|
-
"title": "Name, Role, Value"
|
|
552
|
-
}
|
|
430
|
+
{ "criterion": "2.1.1", "level": "A", "title": "Keyboard" },
|
|
431
|
+
{ "criterion": "4.1.2", "level": "A", "title": "Name, Role, Value" }
|
|
553
432
|
]
|
|
554
433
|
}
|
|
555
434
|
}
|