@adobe/spectrum-design-data 0.0.0-size-token-taxonomy-20260929225107

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 (203) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +75 -0
  3. package/components/accordion.json +185 -0
  4. package/components/action-bar.json +89 -0
  5. package/components/action-button.json +167 -0
  6. package/components/action-group.json +190 -0
  7. package/components/alert-banner.json +148 -0
  8. package/components/alert-dialog.json +124 -0
  9. package/components/avatar-group.json +82 -0
  10. package/components/avatar.json +162 -0
  11. package/components/badge.json +227 -0
  12. package/components/bar-panel.json +14 -0
  13. package/components/body.json +54 -0
  14. package/components/bottom-navigation-android.json +72 -0
  15. package/components/breadcrumbs.json +213 -0
  16. package/components/button-group.json +122 -0
  17. package/components/button.json +239 -0
  18. package/components/calendar.json +196 -0
  19. package/components/card-horizontal.json +14 -0
  20. package/components/card.json +22 -0
  21. package/components/cards.json +117 -0
  22. package/components/checkbox-group.json +128 -0
  23. package/components/checkbox.json +171 -0
  24. package/components/close-button.json +116 -0
  25. package/components/coach-indicator.json +109 -0
  26. package/components/coach-mark.json +151 -0
  27. package/components/code.json +44 -0
  28. package/components/collection-card.json +13 -0
  29. package/components/color-area.json +150 -0
  30. package/components/color-control.json +14 -0
  31. package/components/color-handle.json +79 -0
  32. package/components/color-loupe.json +49 -0
  33. package/components/color-slider.json +189 -0
  34. package/components/color-wheel.json +137 -0
  35. package/components/combo-box.json +319 -0
  36. package/components/contextual-help.json +186 -0
  37. package/components/date-field.json +13 -0
  38. package/components/date-picker.json +297 -0
  39. package/components/detail.json +53 -0
  40. package/components/divider.json +62 -0
  41. package/components/double-calendar.json +13 -0
  42. package/components/drop-zone.json +102 -0
  43. package/components/field-label.json +125 -0
  44. package/components/field.json +13 -0
  45. package/components/floating-action-button.json +13 -0
  46. package/components/form-item.json +13 -0
  47. package/components/heading.json +68 -0
  48. package/components/help-text.json +117 -0
  49. package/components/illustrated-message.json +159 -0
  50. package/components/in-field-button.json +14 -0
  51. package/components/in-field-progress-button.json +88 -0
  52. package/components/in-field-progress-circle.json +62 -0
  53. package/components/in-line-alert.json +109 -0
  54. package/components/link.json +127 -0
  55. package/components/list-view.json +233 -0
  56. package/components/menu.json +310 -0
  57. package/components/meter.json +127 -0
  58. package/components/number-field.json +264 -0
  59. package/components/opacity-checkerboard.json +51 -0
  60. package/components/picker.json +287 -0
  61. package/components/popover.json +182 -0
  62. package/components/progress-bar.json +177 -0
  63. package/components/progress-circle.json +108 -0
  64. package/components/radio-button.json +130 -0
  65. package/components/radio-group.json +202 -0
  66. package/components/rating.json +120 -0
  67. package/components/scroll-zoom-bar.json +82 -0
  68. package/components/search-field.json +206 -0
  69. package/components/segmented-control.json +184 -0
  70. package/components/segmented-text-field.json +13 -0
  71. package/components/select-box.json +165 -0
  72. package/components/side-navigation.json +185 -0
  73. package/components/single-calendar.json +13 -0
  74. package/components/slider.json +238 -0
  75. package/components/stack-item.json +23 -0
  76. package/components/standard-dialog.json +155 -0
  77. package/components/standard-panel.json +135 -0
  78. package/components/status-light.json +175 -0
  79. package/components/steplist.json +127 -0
  80. package/components/swatch-group.json +126 -0
  81. package/components/swatch.json +153 -0
  82. package/components/switch.json +156 -0
  83. package/components/table.json +273 -0
  84. package/components/tabs.json +163 -0
  85. package/components/tag-field.json +147 -0
  86. package/components/tag-group.json +111 -0
  87. package/components/tag.json +123 -0
  88. package/components/takeover-dialog.json +129 -0
  89. package/components/text-area.json +299 -0
  90. package/components/text-field.json +263 -0
  91. package/components/thumbnail.json +109 -0
  92. package/components/time-field.json +13 -0
  93. package/components/title.json +53 -0
  94. package/components/toast.json +136 -0
  95. package/components/tooltip.json +171 -0
  96. package/components/tray.json +32 -0
  97. package/components/tree-view.json +270 -0
  98. package/components/triple-calendar.json +13 -0
  99. package/components/user-card.json +14 -0
  100. package/fields/alignment.json +15 -0
  101. package/fields/anatomy.json +15 -0
  102. package/fields/color-scheme.json +16 -0
  103. package/fields/colorFamily.json +16 -0
  104. package/fields/colorRole.json +16 -0
  105. package/fields/component.json +15 -0
  106. package/fields/contrast.json +16 -0
  107. package/fields/density.json +15 -0
  108. package/fields/easing.json +15 -0
  109. package/fields/emphasis.json +16 -0
  110. package/fields/family.json +16 -0
  111. package/fields/from.json +16 -0
  112. package/fields/icon.json +15 -0
  113. package/fields/motionRole.json +15 -0
  114. package/fields/object.json +15 -0
  115. package/fields/orientation.json +15 -0
  116. package/fields/position.json +15 -0
  117. package/fields/property.json +15 -0
  118. package/fields/qualifier.json +15 -0
  119. package/fields/referenceScaleIndex.json +16 -0
  120. package/fields/role.json +15 -0
  121. package/fields/scale.json +16 -0
  122. package/fields/scaleIndex.json +16 -0
  123. package/fields/script.json +16 -0
  124. package/fields/shape.json +15 -0
  125. package/fields/size.json +15 -0
  126. package/fields/state.json +15 -0
  127. package/fields/structure.json +16 -0
  128. package/fields/style.json +15 -0
  129. package/fields/substructure.json +15 -0
  130. package/fields/to.json +16 -0
  131. package/fields/variant.json +15 -0
  132. package/fields/weight.json +15 -0
  133. package/guidelines/app-frame-content-area.json +81 -0
  134. package/guidelines/app-frame-creating-bluelines.json +58 -0
  135. package/guidelines/app-frame-header.json +72 -0
  136. package/guidelines/app-frame-overview.json +167 -0
  137. package/guidelines/app-frame-side-navigation.json +138 -0
  138. package/guidelines/attention-hierarchy.json +42 -0
  139. package/guidelines/background-layers.json +38 -0
  140. package/guidelines/brand.json +50 -0
  141. package/guidelines/colors.json +62 -0
  142. package/guidelines/containers.json +62 -0
  143. package/guidelines/developer-overview.json +35 -0
  144. package/guidelines/faqs.json +35 -0
  145. package/guidelines/fonts.json +58 -0
  146. package/guidelines/grays.json +66 -0
  147. package/guidelines/icon-fundamentals.json +45 -0
  148. package/guidelines/illustrations.json +111 -0
  149. package/guidelines/introduction.json +31 -0
  150. package/guidelines/manifest.json +204 -0
  151. package/guidelines/motion.json +41 -0
  152. package/guidelines/object-styles.json +102 -0
  153. package/guidelines/principles.json +30 -0
  154. package/guidelines/resources.json +59 -0
  155. package/guidelines/spacing.json +25 -0
  156. package/guidelines/states.json +34 -0
  157. package/guidelines/typography-fundamentals.json +142 -0
  158. package/guidelines/using-icons.json +107 -0
  159. package/mode-sets/color-scheme.json +8 -0
  160. package/mode-sets/contrast.json +8 -0
  161. package/mode-sets/scale.json +8 -0
  162. package/package.json +68 -0
  163. package/registry/alignments.json +22 -0
  164. package/registry/anatomy-terms.json +860 -0
  165. package/registry/categories.json +55 -0
  166. package/registry/color-families.json +177 -0
  167. package/registry/color-roles.json +47 -0
  168. package/registry/components.json +472 -0
  169. package/registry/densities.json +17 -0
  170. package/registry/easing-curves.json +42 -0
  171. package/registry/glossary.json +181 -0
  172. package/registry/icon-terms.json +104 -0
  173. package/registry/motion-roles.json +32 -0
  174. package/registry/navigation-terms.json +241 -0
  175. package/registry/orientations.json +17 -0
  176. package/registry/platform-extensions/web-components-states.json +58 -0
  177. package/registry/platforms.json +37 -0
  178. package/registry/positions.json +70 -0
  179. package/registry/property-terms.json +352 -0
  180. package/registry/qualifiers.json +47 -0
  181. package/registry/roles.json +17 -0
  182. package/registry/scale-values.json +133 -0
  183. package/registry/scripts.json +12 -0
  184. package/registry/shapes.json +27 -0
  185. package/registry/sizes.json +78 -0
  186. package/registry/states.json +187 -0
  187. package/registry/structures.json +67 -0
  188. package/registry/substructures.json +12 -0
  189. package/registry/token-objects.json +32 -0
  190. package/registry/token-terminology.json +925 -0
  191. package/registry/typography-emphasis.json +32 -0
  192. package/registry/typography-families.json +22 -0
  193. package/registry/typography-styles.json +22 -0
  194. package/registry/typography-weights.json +37 -0
  195. package/registry/variants.json +366 -0
  196. package/tokens/color-aliases.tokens.json +5579 -0
  197. package/tokens/color-component.tokens.json +1 -0
  198. package/tokens/color-palette.tokens.json +13458 -0
  199. package/tokens/icons.tokens.json +2777 -0
  200. package/tokens/layout-component.tokens.json +3121 -0
  201. package/tokens/layout.tokens.json +8741 -0
  202. package/tokens/semantic-color-palette.tokens.json +1246 -0
  203. package/tokens/typography.tokens.json +1447 -0
@@ -0,0 +1,319 @@
1
+ {
2
+ "$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/component.schema.json",
3
+ "$id": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/components/combo-box.json",
4
+ "specVersion": "1.0.0-draft",
5
+ "name": "combo-box",
6
+ "displayName": "Combo box",
7
+ "description": "Combo boxes combine a text entry with a picker menu, allowing users to filter longer lists to only the selections matching a query.",
8
+ "meta": {
9
+ "category": "inputs",
10
+ "documentationUrl": "https://spectrum.adobe.com/page/combo-box/"
11
+ },
12
+ "documentBlocks": [
13
+ {
14
+ "type": "purpose",
15
+ "content": "Combo boxes combine a text entry with a picker menu, allowing users to filter longer lists to only the selections matching a query."
16
+ },
17
+ {
18
+ "type": "guideline",
19
+ "content": "Combo boxes combine a text field with a picker menu. They support filtering longer lists by narrowing options based on typed input. Use when both freeform entry and guided selection are needed."
20
+ },
21
+ {
22
+ "type": "guideline",
23
+ "content": "A combo box can be marked as having an error to show that a value needs to be entered or that a value is invalid, prompting the user to correct their input before moving forward."
24
+ },
25
+ {
26
+ "type": "guideline",
27
+ "content": "A combo box 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."
28
+ },
29
+ {
30
+ "type": "guideline",
31
+ "content": "Combo boxes have a read-only option for when content in the disabled state still needs to be shown. This allows for content to be copied, but not interacted with or changed. A combo box does not have a read-only option if no selection has been made."
32
+ },
33
+ {
34
+ "type": "guideline",
35
+ "content": "A combo box in a disabled state shows that an input field exists, but is not available in that circumstance. This can be used to maintain layout continuity and communicate that it may become available later."
36
+ },
37
+ {
38
+ "type": "guideline",
39
+ "content": "A combo box 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."
40
+ },
41
+ {
42
+ "type": "guideline",
43
+ "content": "There are 3 options for how a combo box’s menu can be triggered: when a user starts typing (“input”), when focus is placed on the input field (“focus”), and manually when the user clicks or taps the field button (“manual”). These are used for different degrees of the information complexity and/or user familiarity of menu options."
44
+ },
45
+ {
46
+ "type": "guideline",
47
+ "content": "By default, the menu is triggered when a user starts typing. This should be used when the content is readily familiar or commonplace enough to a user that they can begin populating values without seeing a list of all available options."
48
+ },
49
+ {
50
+ "type": "guideline",
51
+ "content": "If the content of the combo box is unfamiliar or complex, the menu should be triggered when focus is placed on the input field because a user would benefit from seeing example content before selecting a value."
52
+ },
53
+ {
54
+ "type": "guideline",
55
+ "content": "If the content of the combo box is highly familiar and autocomplete is sufficient to surface options, the menu can be set to trigger manually."
56
+ },
57
+ {
58
+ "type": "guideline",
59
+ "content": "Combo boxes can automatically complete suggested results within the input field."
60
+ },
61
+ {
62
+ "type": "guideline",
63
+ "content": "Combo boxes can be marked as optional or required, depending on the situation. For required combo boxes, 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 combo boxes are either denoted with text added to the end of the label — “(optional)” — or have no indication at all."
64
+ },
65
+ {
66
+ "type": "guideline",
67
+ "content": "Combo boxes 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
+ },
69
+ {
70
+ "type": "guideline",
71
+ "content": "The value shows a user’s entered text or the option they’ve selected."
72
+ },
73
+ {
74
+ "type": "guideline",
75
+ "content": "Combo boxes 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. 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)."
76
+ },
77
+ {
78
+ "type": "guideline",
79
+ "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."
80
+ },
81
+ {
82
+ "type": "guideline",
83
+ "content": "When the field label and menu text are too long for the available horizontal space, they wrap to form another line. The field text itself truncates at the end, but the text can be shown in full in the menu."
84
+ },
85
+ {
86
+ "type": "guideline",
87
+ "content": "When the help text is too long for the available horizontal space, it wraps to form another line."
88
+ },
89
+ {
90
+ "type": "guideline",
91
+ "content": "The combo box menu can be as tall as necessary to show as many options as possible in the available space. There is no maximum height."
92
+ },
93
+ {
94
+ "type": "guideline",
95
+ "content": "The text input functionality of the combo box is meant to make large lists easier to search. If you have fewer than 6 items, use radio buttons. If you have more than 6 items, consider whether your list of selections is complex enough to merit searching and filtering. If it's not complex enough for a combo box, you can use a picker."
96
+ },
97
+ {
98
+ "type": "guideline",
99
+ "content": "It’s okay to suppress the popover when the combo box contains entries the user is familiar with, and when autocomplete is enabled. A suppressed popover can still be opened when the field button containing the chevron is clicked."
100
+ },
101
+ {
102
+ "type": "guideline",
103
+ "content": "Launch the popover immediately if your user is highly unfamiliar with the content in the combo box, or if the data is especially complex."
104
+ },
105
+ {
106
+ "type": "guideline",
107
+ "content": "Launch the popover on text change if your user can get started typing without seeing a long list of options."
108
+ },
109
+ {
110
+ "type": "guideline",
111
+ "content": "When a suggestion is appended to the end of typed text, it remains the selected value when focus leaves the field. This guards against the scenario when a user sees a word completed in a field, continues to another form component, and the failure to commit changes erases the suggestion."
112
+ },
113
+ {
114
+ "type": "guideline",
115
+ "content": "When autocomplete is disabled, best matches get a hover style in the popover, but don’t get saved as a value unless they’re clicked on or \"Enter\" is pressed."
116
+ },
117
+ {
118
+ "type": "guideline",
119
+ "content": "Every combo box should have a label. A combo box without a label is ambiguous and not accessible. In rare cases where a label could be absent, make sure to have the design reviewed and approved by an accessibility expert."
120
+ },
121
+ {
122
+ "type": "guideline",
123
+ "content": "Keep menu items short and concise. Long menu items that cause text to wrap to multiple lines are discouraged. If text wrapping becomes a frequent concern, consider revising the text or use alternative UI patterns that will give your content more space."
124
+ },
125
+ {
126
+ "type": "guideline",
127
+ "content": "Choose a width for your combo boxes that is likely to accommodate the majority of selections available within it. When a combo box is in focus and the typed input exceeds the width of the field, push the leftmost text out of sight while allowing text to continue to be entered towards the chevron. When a combo box is deselected, truncate the selected entry with ellipsis before it collides with the chevron button."
128
+ },
129
+ {
130
+ "type": "guideline",
131
+ "content": "Field labels, placeholder text, and menu items should be in sentence case."
132
+ },
133
+ {
134
+ "type": "guideline",
135
+ "content": "When labeling combo boxes in a form, only mark the minority type—either required or optional—to reduce visual clutter:"
136
+ },
137
+ {
138
+ "type": "guideline",
139
+ "content": "Important: Never use an asterisk to indicate an optional combo box."
140
+ },
141
+ {
142
+ "type": "guideline",
143
+ "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."
144
+ },
145
+ {
146
+ "type": "guideline",
147
+ "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."
148
+ },
149
+ {
150
+ "type": "guideline",
151
+ "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."
152
+ },
153
+ {
154
+ "type": "guideline",
155
+ "content": "The help text area also displays an error message. When a combo box 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."
156
+ },
157
+ {
158
+ "type": "guideline",
159
+ "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."
160
+ },
161
+ {
162
+ "type": "guideline",
163
+ "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."
164
+ },
165
+ {
166
+ "type": "guideline",
167
+ "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 combo boxes, 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 combo box that asks for them to choose a topic, 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: “Choose at least one topic.”"
168
+ }
169
+ ],
170
+ "options": {
171
+ "label": {
172
+ "type": "string"
173
+ },
174
+ "labelPosition": {
175
+ "type": "string",
176
+ "default": "top",
177
+ "values": [
178
+ {
179
+ "value": "top"
180
+ },
181
+ {
182
+ "value": "side"
183
+ },
184
+ {
185
+ "value": "in line"
186
+ }
187
+ ]
188
+ },
189
+ "value": {
190
+ "type": "string"
191
+ },
192
+ "width": {
193
+ "type": "number"
194
+ },
195
+ "size": {
196
+ "type": "string",
197
+ "default": "m",
198
+ "values": [
199
+ {
200
+ "value": "s"
201
+ },
202
+ {
203
+ "value": "m"
204
+ },
205
+ {
206
+ "value": "l"
207
+ },
208
+ {
209
+ "value": "xl"
210
+ }
211
+ ]
212
+ },
213
+ "isRequired": {
214
+ "type": "boolean",
215
+ "default": false
216
+ },
217
+ "necessityIndicator": {
218
+ "type": "string",
219
+ "default": "icon",
220
+ "values": [
221
+ {
222
+ "value": "text"
223
+ },
224
+ {
225
+ "value": "icon"
226
+ }
227
+ ]
228
+ },
229
+ "hasAutocomplete": {
230
+ "type": "boolean",
231
+ "default": false
232
+ },
233
+ "menuTrigger": {
234
+ "type": "string",
235
+ "default": "input",
236
+ "values": [
237
+ {
238
+ "value": "input"
239
+ },
240
+ {
241
+ "value": "focus"
242
+ },
243
+ {
244
+ "value": "manual"
245
+ }
246
+ ]
247
+ },
248
+ "isError": {
249
+ "type": "boolean",
250
+ "default": false
251
+ },
252
+ "isDisabled": {
253
+ "type": "boolean",
254
+ "default": false
255
+ },
256
+ "isReadOnly": {
257
+ "type": "boolean",
258
+ "default": false
259
+ },
260
+ "description": {
261
+ "type": "string"
262
+ },
263
+ "errorMessage": {
264
+ "type": "string"
265
+ }
266
+ },
267
+ "states": [
268
+ {
269
+ "name": "hover-text-area",
270
+ "trigger": "prop",
271
+ "description": "Hover scoped to the text-entry anatomy part, distinct from hover over the field button."
272
+ },
273
+ {
274
+ "name": "hover-button-area",
275
+ "trigger": "prop",
276
+ "description": "Hover scoped to the field button anatomy part, distinct from hover over the text-entry area."
277
+ },
278
+ {
279
+ "name": "focus-hover",
280
+ "trigger": "prop",
281
+ "description": "Combined focus and hover, when the field is focused and the pointer is also over it."
282
+ },
283
+ {
284
+ "name": "focus-not-hover",
285
+ "trigger": "prop",
286
+ "description": "Focus without hover, when the field is focused but the pointer is not over it."
287
+ },
288
+ {
289
+ "name": "keyboard-focus",
290
+ "trigger": "interaction"
291
+ }
292
+ ],
293
+ "lifecycle": {
294
+ "introduced": "1.0.0-draft"
295
+ },
296
+ "accessibility": {
297
+ "role": "combobox",
298
+ "intents": ["input", "select", "expand"],
299
+ "focusable": true,
300
+ "keyboardIntents": ["expand", "collapse", "navigate-options"],
301
+ "wcag": [
302
+ {
303
+ "criterion": "1.3.1",
304
+ "level": "A",
305
+ "title": "Info and Relationships"
306
+ },
307
+ {
308
+ "criterion": "2.1.1",
309
+ "level": "A",
310
+ "title": "Keyboard"
311
+ },
312
+ {
313
+ "criterion": "4.1.2",
314
+ "level": "A",
315
+ "title": "Name, Role, Value"
316
+ }
317
+ ]
318
+ }
319
+ }
@@ -0,0 +1,186 @@
1
+ {
2
+ "$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/component.schema.json",
3
+ "$id": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/components/contextual-help.json",
4
+ "specVersion": "1.0.0-draft",
5
+ "name": "contextual-help",
6
+ "displayName": "Contextual help",
7
+ "description": "Contextual help shows a user extra information about the state of either an adjacent component or an entire view. It explains a high-level topic about an experience and can point users to more information elsewhere.",
8
+ "meta": {
9
+ "category": "feedback",
10
+ "documentationUrl": "https://spectrum.adobe.com/page/contextual-help/"
11
+ },
12
+ "documentBlocks": [
13
+ {
14
+ "type": "purpose",
15
+ "content": "Contextual help shows a user extra information about the state of either an adjacent component or an entire view. It explains a high-level topic about an experience and can point users to more information elsewhere."
16
+ },
17
+ {
18
+ "type": "guideline",
19
+ "content": "Contextual help displays additional information about the state of a nearby component or an entire view. It explains high-level concepts and can link to more detailed guidance."
20
+ },
21
+ {
22
+ "type": "guideline",
23
+ "content": "To make sure that a popover will stay within certain boundaries (e.g., a browser window) it’s possible to define a container, and a container padding value, to respect."
24
+ },
25
+ {
26
+ "type": "guideline",
27
+ "content": "The cross offset is the placement offset on the cross axis (x-axis for top and bottom, y-axis for left and right)."
28
+ },
29
+ {
30
+ "type": "guideline",
31
+ "content": "A contextual help can have up to one link."
32
+ },
33
+ {
34
+ "type": "guideline",
35
+ "content": "The offset is the distance between the action button and the popover edge. There is a default value but this can also be adjusted depending on the context."
36
+ },
37
+ {
38
+ "type": "guideline",
39
+ "content": "Indicates whether contents are informative or provides helpful guidance."
40
+ },
41
+ {
42
+ "type": "guideline",
43
+ "content": "Contextual help can be used to explain why a component is disabled and how to enable it. Don’t make disabled components interactive (with focus states or hovering) as a way to display contextual information."
44
+ },
45
+ {
46
+ "type": "guideline",
47
+ "content": "There are two size options for the action button in contextual help: extra-small and small. Regardless of size, the action button should be quiet and display only an icon."
48
+ }
49
+ ],
50
+ "options": {
51
+ "icon": {
52
+ "type": "string",
53
+ "default": "info",
54
+ "values": [
55
+ {
56
+ "value": "info"
57
+ },
58
+ {
59
+ "value": "help"
60
+ }
61
+ ]
62
+ },
63
+ "popoverPlacement": {
64
+ "type": "string",
65
+ "default": "bottom start",
66
+ "values": [
67
+ {
68
+ "value": "top"
69
+ },
70
+ {
71
+ "value": "top left"
72
+ },
73
+ {
74
+ "value": "top right"
75
+ },
76
+ {
77
+ "value": "top start"
78
+ },
79
+ {
80
+ "value": "top end"
81
+ },
82
+ {
83
+ "value": "bottom"
84
+ },
85
+ {
86
+ "value": "bottom left"
87
+ },
88
+ {
89
+ "value": "bottom right"
90
+ },
91
+ {
92
+ "value": "bottom start"
93
+ },
94
+ {
95
+ "value": "bottom end"
96
+ },
97
+ {
98
+ "value": "left"
99
+ },
100
+ {
101
+ "value": "left top"
102
+ },
103
+ {
104
+ "value": "left bottom"
105
+ },
106
+ {
107
+ "value": "start"
108
+ },
109
+ {
110
+ "value": "start top"
111
+ },
112
+ {
113
+ "value": "start bottom"
114
+ },
115
+ {
116
+ "value": "right"
117
+ },
118
+ {
119
+ "value": "right top"
120
+ },
121
+ {
122
+ "value": "right bottom"
123
+ },
124
+ {
125
+ "value": "end"
126
+ },
127
+ {
128
+ "value": "end top"
129
+ },
130
+ {
131
+ "value": "end bottom"
132
+ }
133
+ ]
134
+ },
135
+ "popoverOffset": {
136
+ "type": "number",
137
+ "default": 8
138
+ },
139
+ "href": {
140
+ "type": "string",
141
+ "description": "Optional URL within contextual help content like a 'Learn more' link."
142
+ },
143
+ "popoverCrossOffset": {
144
+ "type": "number",
145
+ "default": 0
146
+ },
147
+ "containerPadding": {
148
+ "type": "number",
149
+ "default": 8
150
+ }
151
+ },
152
+ "states": [
153
+ {
154
+ "name": "down",
155
+ "trigger": "interaction"
156
+ },
157
+ {
158
+ "name": "open",
159
+ "trigger": "prop"
160
+ },
161
+ {
162
+ "name": "keyboard-focus",
163
+ "trigger": "interaction"
164
+ }
165
+ ],
166
+ "lifecycle": {
167
+ "introduced": "1.0.0-draft"
168
+ },
169
+ "accessibility": {
170
+ "intents": ["trigger"],
171
+ "focusable": true,
172
+ "keyboardIntents": ["activate"],
173
+ "wcag": [
174
+ {
175
+ "criterion": "2.1.1",
176
+ "level": "A",
177
+ "title": "Keyboard"
178
+ },
179
+ {
180
+ "criterion": "4.1.2",
181
+ "level": "A",
182
+ "title": "Name, Role, Value"
183
+ }
184
+ ]
185
+ }
186
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/component.schema.json",
3
+ "$id": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/components/date-field.json",
4
+ "specVersion": "1.0.0-draft",
5
+ "name": "date-field",
6
+ "displayName": "Date field",
7
+ "description": "A field for entering a date value.",
8
+ "meta": {
9
+ "category": "inputs",
10
+ "documentationUrl": "https://spectrum.adobe.com/page/date-field/"
11
+ },
12
+ "lifecycle": { "introduced": "1.0.0-draft" }
13
+ }