@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-field/"
11
11
  },
12
+ "implementations": [
13
+ {
14
+ "platform": "web",
15
+ "componentName": "TextField",
16
+ "package": "@react-spectrum/s2"
17
+ }
18
+ ],
12
19
  "documentBlocks": [
13
20
  {
14
21
  "type": "purpose",
@@ -16,127 +23,248 @@
16
23
  },
17
24
  {
18
25
  "type": "guideline",
19
- "content": "Minimum width.\n\nThe 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."
26
+ "content": "Text fields collect custom text input. They can display optional cues to indicate formatting, validation, or other input requirements."
27
+ },
28
+ {
29
+ "type": "guideline",
30
+ "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
+ },
32
+ {
33
+ "type": "guideline",
34
+ "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
+ },
36
+ {
37
+ "type": "guideline",
38
+ "content": "The value shows a user’s entered text."
39
+ },
40
+ {
41
+ "type": "guideline",
42
+ "content": "The text field’s default width is field-default-width-\\[small/medium/large/extra-large]."
43
+ },
44
+ {
45
+ "type": "guideline",
46
+ "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."
47
+ },
48
+ {
49
+ "type": "guideline",
50
+ "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."
51
+ },
52
+ {
53
+ "type": "guideline",
54
+ "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."
55
+ },
56
+ {
57
+ "type": "guideline",
58
+ "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."
59
+ },
60
+ {
61
+ "type": "guideline",
62
+ "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."
63
+ },
64
+ {
65
+ "type": "guideline",
66
+ "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."
67
+ },
68
+ {
69
+ "type": "guideline",
70
+ "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."
71
+ },
72
+ {
73
+ "type": "guideline",
74
+ "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."
20
75
  },
21
76
  {
22
77
  "type": "guideline",
23
- "content": "Text overflow.\n\nWhen the field label is too long for the available horizontal space, it wraps to form another line. The field text itself truncates."
78
+ "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."
24
79
  },
25
80
  {
26
81
  "type": "guideline",
27
- "content": "Mixed value.\n\nWhen a text field presents multiple values that are not identical, the field should show an en dash (–)."
82
+ "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."
28
83
  },
29
84
  {
30
85
  "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."
86
+ "content": "When the field label is too long for the available horizontal space, it wraps to form another line. The field text itself truncates."
32
87
  },
33
88
  {
34
89
  "type": "guideline",
35
- "content": "Include a label.\n\nEvery text field should have a label. A field without a label is ambiguous and not accessible."
90
+ "content": "When a text field presents multiple values that are not identical, the field should show an en dash (–)."
36
91
  },
37
92
  {
38
93
  "type": "guideline",
39
- "content": "Review label-less designs.\n\nIn rare cases where context is sufficient and a label could be absent, make sure to have the design reviewed and approved by an accessibility expert. These should still include an aria-label in HTML (depending on the context, aria-label or aria-labelledby )."
94
+ "content": "When the help text is too long for the available horizontal space, it wraps to form another line."
40
95
  },
41
96
  {
42
97
  "type": "guideline",
43
- "content": "Follow capitalization rules.\n\nField labels should be in sentence case."
98
+ "content": "Every text field should have a label. A field without a label is ambiguous and not accessible."
44
99
  },
45
100
  {
46
101
  "type": "guideline",
47
- "content": "Mark the minority of text fields 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 field is optional."
102
+ "content": "Field labels should be in sentence case."
48
103
  },
49
104
  {
50
105
  "type": "guideline",
51
- "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."
106
+ "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."
52
107
  },
53
108
  {
54
- "type": "do-dont",
55
- "content": "Don't use placeholder text",
56
- "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, 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."
109
+ "type": "guideline",
110
+ "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."
57
111
  },
58
112
  {
59
113
  "type": "guideline",
60
- "content": "Switch help text with error text.\n\nThe 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. 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."
114
+ "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."
61
115
  },
62
116
  {
63
117
  "type": "guideline",
64
- "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 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."
118
+ "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."
65
119
  },
66
120
  {
67
121
  "type": "guideline",
68
- "content": "RTL.\n\nIn right‑to‑left languages, the text‑field layout is mirrored. The label is right‑aligned, and elements such as the character count, validation marker and error icon are left‑aligned. Keep in mind that some content, including email addresses, does not change direction or translate."
122
+ "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."
69
123
  },
70
124
  {
71
125
  "type": "guideline",
72
- "content": "Keyboard interactions.\n\nKey Interaction TabTabbing into a text field moves focus into the field and selects the existing text.Shift + TabMoves focus to the previous focusable element.Printable charactersInserts text at the caret position.Left / Right ArrowMoves caret one character left/right.Home / EndMoves caret to start/end of field value.Backspace / DeleteRemoves character before/after caret.Ctrl / Cmd + ASelects all text.EnterSubmits the enclosing form or triggers the form’s default action (implementation/context dependent)."
126
+ "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."
73
127
  },
74
128
  {
75
129
  "type": "guideline",
76
- "content": "Cursor guidelines.\n\nCursor Description TextUse over the field to indicate to the user that text is editable within the field.PointerAny clickable control that is part of the text field (e.g., clear/reveal/help icon) uses the pointer cursor."
130
+ "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."
77
131
  },
78
132
  {
79
133
  "type": "guideline",
80
- "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 used inside text fields (e.g., validation, clear, or affordance icons), must provide a text alternative that communicates their purpose. All text fields need an accessible name so screen readers can announce their function.Info and relationships, Identify purpose 1.3.1, 1.3.6 A, AAAText fields and their labels, descriptions, and error messages should be understandable by assistive technologies like screen readers. This means the proper semantic HTML or ARIA role should be utilized.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 fields 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."
134
+ "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.”"
81
135
  }
82
136
  ],
83
137
  "options": {
84
- "label": { "type": "string" },
138
+ "label": {
139
+ "type": "string"
140
+ },
85
141
  "labelPosition": {
86
142
  "type": "string",
87
143
  "default": "top",
88
- "values": [{ "value": "top" }, { "value": "side" }]
144
+ "values": [
145
+ {
146
+ "value": "top"
147
+ },
148
+ {
149
+ "value": "side"
150
+ }
151
+ ]
152
+ },
153
+ "hideLabel": {
154
+ "type": "boolean",
155
+ "default": false
156
+ },
157
+ "value": {
158
+ "type": "string",
159
+ "description": "from minValue to maxValue"
160
+ },
161
+ "width": {
162
+ "type": "number"
89
163
  },
90
- "hideLabel": { "type": "boolean", "default": false },
91
- "value": { "type": "string", "description": "from minValue to maxValue" },
92
- "width": { "type": "number" },
93
164
  "size": {
94
165
  "type": "string",
95
166
  "default": "m",
96
167
  "values": [
97
- { "value": "s" },
98
- { "value": "m" },
99
- { "value": "l" },
100
- { "value": "xl" }
168
+ {
169
+ "value": "s"
170
+ },
171
+ {
172
+ "value": "m"
173
+ },
174
+ {
175
+ "value": "l"
176
+ },
177
+ {
178
+ "value": "xl"
179
+ }
101
180
  ]
102
181
  },
103
182
  "necessityIndicator": {
104
183
  "type": "string",
105
184
  "default": "icon",
106
- "values": [{ "value": "text" }, { "value": "icon" }]
185
+ "values": [
186
+ {
187
+ "value": "text"
188
+ },
189
+ {
190
+ "value": "icon"
191
+ }
192
+ ]
193
+ },
194
+ "isRequired": {
195
+ "type": "boolean",
196
+ "default": false
197
+ },
198
+ "hasCharacterCount": {
199
+ "type": "boolean",
200
+ "default": false
201
+ },
202
+ "showValidIcon": {
203
+ "type": "boolean",
204
+ "default": false
107
205
  },
108
- "isRequired": { "type": "boolean", "default": false },
109
- "hasCharacterCount": { "type": "boolean", "default": false },
110
- "showValidIcon": { "type": "boolean", "default": false },
111
206
  "isError": {
112
207
  "type": "boolean",
113
208
  "default": false,
114
209
  "description": "If there is an error, this property overrides show valid icon."
115
210
  },
116
- "isDisabled": { "type": "boolean", "default": false },
117
- "helpText": { "type": "string" },
118
- "errorMessage": { "type": "string" }
211
+ "isDisabled": {
212
+ "type": "boolean",
213
+ "default": false
214
+ },
215
+ "helpText": {
216
+ "type": "string"
217
+ },
218
+ "errorMessage": {
219
+ "type": "string"
220
+ }
119
221
  },
120
222
  "states": [
121
- { "name": "hover", "trigger": "interaction" },
122
- { "name": "focus-+-hover", "trigger": "prop" },
123
- { "name": "focus-+-not-hover", "trigger": "prop" },
124
- { "name": "keyboard-focus", "trigger": "interaction" }
223
+ {
224
+ "name": "hover",
225
+ "trigger": "interaction"
226
+ },
227
+ {
228
+ "name": "focus-+-hover",
229
+ "trigger": "prop"
230
+ },
231
+ {
232
+ "name": "focus-+-not-hover",
233
+ "trigger": "prop"
234
+ },
235
+ {
236
+ "name": "keyboard-focus",
237
+ "trigger": "interaction"
238
+ }
125
239
  ],
126
- "lifecycle": { "introduced": "1.0.0-draft" },
240
+ "lifecycle": {
241
+ "introduced": "1.0.0-draft"
242
+ },
127
243
  "accessibility": {
128
244
  "role": "textbox",
129
245
  "intents": ["input"],
130
246
  "focusable": true,
131
247
  "wcag": [
132
- { "criterion": "1.3.1", "level": "A", "title": "Info and Relationships" },
248
+ {
249
+ "criterion": "1.3.1",
250
+ "level": "A",
251
+ "title": "Info and Relationships"
252
+ },
133
253
  {
134
254
  "criterion": "1.3.5",
135
255
  "level": "AA",
136
256
  "title": "Identify Input Purpose"
137
257
  },
138
- { "criterion": "2.1.1", "level": "A", "title": "Keyboard" },
139
- { "criterion": "4.1.2", "level": "A", "title": "Name, Role, Value" }
258
+ {
259
+ "criterion": "2.1.1",
260
+ "level": "A",
261
+ "title": "Keyboard"
262
+ },
263
+ {
264
+ "criterion": "4.1.2",
265
+ "level": "A",
266
+ "title": "Name, Role, Value"
267
+ }
140
268
  ]
141
269
  }
142
270
  }
@@ -16,53 +16,94 @@
16
16
  },
17
17
  {
18
18
  "type": "guideline",
19
- "content": "Keyboard focus.\n\nThumbnails can be navigated using a keyboard in certain scenarios, such as layers or layer masks. When a thumbnail is used as pure representation of an item, focus should be set on the component the thumbnail is used within."
19
+ "content": "Thumbnails display a preview of an image, layer, or effect, and appear in a variety of locations as a visual reference."
20
20
  },
21
21
  {
22
22
  "type": "guideline",
23
- "content": "Image.\n\nThumbnails feature rounded corners and may include images with transparency. A subtle inset border helps distinguish images that might otherwise blend into the product's theme colors."
23
+ "content": "Thumbnail sizes scale exponentially. The opacity checkerboard responsively resizes to appropriately fit within each thumbnail size."
24
24
  },
25
25
  {
26
26
  "type": "guideline",
27
- "content": "Layer.\n\nWhen thumbnails are used in layer management (such as Treeview, Compact or Detail Layers panels), the thumbnail is given a thick gray border."
27
+ "content": "Thumbnails can be navigated using a keyboard in certain scenarios, such as layers or layer masks. When a thumbnail is used as pure representation of an item, focus should be set on the component the thumbnail is used within."
28
28
  },
29
29
  {
30
30
  "type": "guideline",
31
- "content": "Selected layer.\n\nWhen a user selects a thumbnail in layer management, such as in Treeview, Compact or Detail Layers panels, it is highlighted with a thick blue border."
31
+ "content": "Thumbnails feature rounded corners and may include images with transparency. A subtle inset border helps distinguish images that might otherwise blend into the product’s theme colors."
32
32
  },
33
33
  {
34
34
  "type": "guideline",
35
- "content": "Using thumbnails in treeview.\n\nTree view items can show thumbnails as an alternative to icons. Thumbnails are best used when a user needs to have a preview of the content represented by the tree view item. Icons can be used as a fallback for when an image is unavailable, but should be appropriately sized to match the thumbnail."
35
+ "content": "When thumbnails are used in layer management (such as Treeview, Compact or Detail Layers panels), the thumbnail is given a thick gray border."
36
36
  },
37
37
  {
38
38
  "type": "guideline",
39
- "content": "Be mindful of thumbnail size and proportions.\n\nTree views with thumbnails should use a thumbnail size that is appropriate to the size of the tree view itself. For example, an extra-large tree view would not work well with small thumbnails; those proportions may be better suited for using icons instead."
39
+ "content": "When a user selects a thumbnail in layer management, such as in Treeview, Compact or Detail Layers panels, it is highlighted with a thick blue border."
40
40
  },
41
41
  {
42
42
  "type": "guideline",
43
- "content": "Multiple thumbnail.\n\nIn some cases, multiple thumbnails need to be displayed in-line with the tree view item (e.g., layer masks). These thumbnails should be individually selectable and inherit all other behaviors of a standard tree view item, such as drag-and-drop behavior. Don't use more than 3 thumbnails per tree view item."
43
+ "content": "Tree view items can show thumbnails as an alternative to icons. Thumbnails are best used when a user needs to have a preview of the content represented by the tree view item. Icons can be used as a fallback for when an image is unavailable, but should be appropriately sized to match the thumbnail."
44
+ },
45
+ {
46
+ "type": "guideline",
47
+ "content": "Tree views with thumbnails should use a thumbnail size that is appropriate to the size of the tree view itself. For example, an extra-large tree view would not work well with small thumbnails; those proportions may be better suited for using icons instead."
48
+ },
49
+ {
50
+ "type": "guideline",
51
+ "content": "In some cases, multiple thumbnails need to be displayed in-line with the tree view item (e.g., layer masks). These thumbnails should be individually selectable and inherit all other behaviors of a standard tree view item, such as drag-and-drop behavior. Don't use more than 3 thumbnails per tree view item."
44
52
  }
45
53
  ],
46
54
  "options": {
47
55
  "size": {
48
56
  "type": "number",
49
57
  "values": [
50
- { "value": 50 },
51
- { "value": 75 },
52
- { "value": 100 },
53
- { "value": 200 },
54
- { "value": 300 },
55
- { "value": 400 },
56
- { "value": 500 },
57
- { "value": 600 },
58
- { "value": 700 },
59
- { "value": 800 },
60
- { "value": 900 },
61
- { "value": 1000 }
58
+ {
59
+ "value": 50
60
+ },
61
+ {
62
+ "value": 75
63
+ },
64
+ {
65
+ "value": 100
66
+ },
67
+ {
68
+ "value": 200
69
+ },
70
+ {
71
+ "value": 300
72
+ },
73
+ {
74
+ "value": 400
75
+ },
76
+ {
77
+ "value": 500
78
+ },
79
+ {
80
+ "value": 600
81
+ },
82
+ {
83
+ "value": 700
84
+ },
85
+ {
86
+ "value": 800
87
+ },
88
+ {
89
+ "value": 900
90
+ },
91
+ {
92
+ "value": 1000
93
+ }
62
94
  ]
63
95
  }
64
96
  },
65
- "states": [{ "name": "disabled", "trigger": "prop" }],
66
- "lifecycle": { "introduced": "1.0.0-draft" },
67
- "accessibility": { "focusable": false }
97
+ "states": [
98
+ {
99
+ "name": "disabled",
100
+ "trigger": "prop"
101
+ }
102
+ ],
103
+ "lifecycle": {
104
+ "introduced": "1.0.0-draft"
105
+ },
106
+ "accessibility": {
107
+ "focusable": false
108
+ }
68
109
  }
@@ -9,5 +9,12 @@
9
9
  "category": "inputs",
10
10
  "documentationUrl": "https://spectrum.adobe.com/page/time-field/"
11
11
  },
12
+ "implementations": [
13
+ {
14
+ "platform": "web",
15
+ "componentName": "TimeField",
16
+ "package": "@react-spectrum/s2"
17
+ }
18
+ ],
12
19
  "lifecycle": { "introduced": "1.0.0-draft" }
13
20
  }