@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,21 +9,109 @@
|
|
|
9
9
|
"category": "inputs",
|
|
10
10
|
"documentationUrl": "https://spectrum.adobe.com/page/date-picker/"
|
|
11
11
|
},
|
|
12
|
+
"documentBlocks": [
|
|
13
|
+
{
|
|
14
|
+
"type": "purpose",
|
|
15
|
+
"content": "A date picker lets users enter a single date or a date range. It includes a calendar popover and a field."
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"type": "guideline",
|
|
19
|
+
"content": "Date pickers allow selection of a single date or a date range. They include a calendar within a popover, with optional manual entry. Date range variants support selecting a start and end date in one field."
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"type": "guideline",
|
|
23
|
+
"content": "Calendar popover displays a grid of days spanning one, two, or three months, enabling users to select a single date or a range."
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"type": "guideline",
|
|
27
|
+
"content": "Date field allows users to enter and edit date values. Users can edit each part of a date value, such as the day, month, and year, by interacting with individual segments. A date field includes a label, segments for each value of the date, and an in-field button to allow the user to open the calendar popover."
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"type": "guideline",
|
|
31
|
+
"content": "The range of days the user has selected (a start date and an end date)."
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"type": "guideline",
|
|
35
|
+
"content": "The selected date allows a user to see which date they have selected within the calendar popover."
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"type": "guideline",
|
|
39
|
+
"content": "A single date picker only displays a single date within the date field as well as a single month within the calendar popover."
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"type": "guideline",
|
|
43
|
+
"content": "A double date picker displays a date range within the date field as well as two consecutive months within the calendar popover."
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"type": "guideline",
|
|
47
|
+
"content": "A triple date picker displays a date range within the date field as well as three consecutive months within the calendar popover."
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"type": "guideline",
|
|
51
|
+
"content": "The calendar popover is displayed or hidden when the user selects the in-field button (the calendar icon)."
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"type": "guideline",
|
|
55
|
+
"content": "If a user selects a day preceding the first selection, that earlier day becomes the start of the range. For example:"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"type": "guideline",
|
|
59
|
+
"content": "A third selection resets the range. For example:"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"type": "guideline",
|
|
63
|
+
"content": "Date pickers display placeholder values in individual segments by default. This is to makes it easier for users to focus and edit specific values like the day, month, or year without re-entering the entire date."
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"type": "guideline",
|
|
67
|
+
"content": "This approach reduces input errors, improves accessibility, and supports faster, more precise interactions. It also adapts well to different regional formats, enhancing clarity across locales."
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"type": "guideline",
|
|
71
|
+
"content": "Date pickers can be used to select a single date or a date range (a start date and an end date)."
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"type": "guideline",
|
|
75
|
+
"content": "When a date picker is formatted to allow a range, it displays a placeholder by default. When the user first interacts with the date field, the first value of the placeholder is in focus. This is to allow the user to edit the individual segments. When the user opens the popover without interacting, it displays the current day along with the month and year based on their locale. However, the date field will continue to show the placeholder until the user either completes the range in the field or within the calendar popover."
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"type": "guideline",
|
|
79
|
+
"content": "If the user inputs a date range within the date field that spans more than the maximum of three months that the calendar popover allows, the calendar popover will only show the first three consecutive months within that range."
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"type": "guideline",
|
|
83
|
+
"content": "The date field can also capture time values with precision down to the second, and may include time zone information. The calendar popover can also include time-specific fields, allowing users to specify start and end times."
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"type": "guideline",
|
|
87
|
+
"content": "Date pickers can be marked as optional or required, depending on the situation. For required date pickers, there are two styling options: a “(required)” label or an asterisk. If you use an asterisk, be sure to include help text to explain what the asterisk means. Optional date pickers are either denoted with text added to the end of the label — “(optional)” — or have no indication at all."
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"type": "guideline",
|
|
91
|
+
"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."
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"type": "guideline",
|
|
95
|
+
"content": "A read-only state of date picker means that the user cannot interact with the field, and they can only read what the field is displaying. Therefore, the in-field button is not clickable. In the disabled state, the read-only state of date picker allows the user to focus on a value—even though they cannot change the value."
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"type": "guideline",
|
|
99
|
+
"content": "A disabled date picker means that the user cannot interact with the field, but not for the same reasons as a read-only scenario. For example, a date picker may be temporarily disabled because the user needs to complete a dependent task (such as filling out another field) somewhere within their experience. A disabled date picker does not allow for the ability to focus on a value, or to change its value."
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"type": "guideline",
|
|
103
|
+
"content": "A date picker can be marked as having an error to show that a value needs to be entered in order to move forward, or that an entered value is invalid. In this scenario, displaying error text beneath the date field can aid the user in understanding how to resolve it. Error text within the calendar popover may also be helpful to aid the user in understanding what the error is signaling."
|
|
104
|
+
}
|
|
105
|
+
],
|
|
12
106
|
"options": {
|
|
13
107
|
"variant": {
|
|
14
108
|
"type": "string",
|
|
15
109
|
"default": "single",
|
|
16
110
|
"description": "Controls the number of months displayed in the calendar popover.",
|
|
17
111
|
"values": [
|
|
18
|
-
{
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
{
|
|
22
|
-
"value": "double"
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"value": "triple"
|
|
26
|
-
}
|
|
112
|
+
{ "value": "single" },
|
|
113
|
+
{ "value": "double" },
|
|
114
|
+
{ "value": "triple" }
|
|
27
115
|
]
|
|
28
116
|
},
|
|
29
117
|
"selectedDate": {
|
|
@@ -34,14 +122,8 @@
|
|
|
34
122
|
"type": "object",
|
|
35
123
|
"description": "The currently selected date range, used when selectionMode is range.",
|
|
36
124
|
"properties": {
|
|
37
|
-
"start": {
|
|
38
|
-
|
|
39
|
-
"description": "Range start date."
|
|
40
|
-
},
|
|
41
|
-
"end": {
|
|
42
|
-
"type": "string",
|
|
43
|
-
"description": "Range end date."
|
|
44
|
-
}
|
|
125
|
+
"start": { "type": "string", "description": "Range start date." },
|
|
126
|
+
"end": { "type": "string", "description": "Range end date." }
|
|
45
127
|
}
|
|
46
128
|
},
|
|
47
129
|
"dateField": {
|
|
@@ -57,22 +139,10 @@
|
|
|
57
139
|
"enum": ["top", "side"],
|
|
58
140
|
"default": "top"
|
|
59
141
|
},
|
|
60
|
-
"hideLabel": {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
},
|
|
64
|
-
"isDisabled": {
|
|
65
|
-
"type": "boolean",
|
|
66
|
-
"default": false
|
|
67
|
-
},
|
|
68
|
-
"isReadOnly": {
|
|
69
|
-
"type": "boolean",
|
|
70
|
-
"default": false
|
|
71
|
-
},
|
|
72
|
-
"isRequired": {
|
|
73
|
-
"type": "boolean",
|
|
74
|
-
"default": false
|
|
75
|
-
},
|
|
142
|
+
"hideLabel": { "type": "boolean", "default": false },
|
|
143
|
+
"isDisabled": { "type": "boolean", "default": false },
|
|
144
|
+
"isReadOnly": { "type": "boolean", "default": false },
|
|
145
|
+
"isRequired": { "type": "boolean", "default": false },
|
|
76
146
|
"isError": {
|
|
77
147
|
"type": "boolean",
|
|
78
148
|
"default": false,
|
|
@@ -97,10 +167,7 @@
|
|
|
97
167
|
"type": "object",
|
|
98
168
|
"description": "Configuration for the calendar popover.",
|
|
99
169
|
"properties": {
|
|
100
|
-
"isDisabled": {
|
|
101
|
-
"type": "boolean",
|
|
102
|
-
"default": false
|
|
103
|
-
},
|
|
170
|
+
"isDisabled": { "type": "boolean", "default": false },
|
|
104
171
|
"minValue": {
|
|
105
172
|
"type": "string",
|
|
106
173
|
"description": "The minimum allowed date that a user may select."
|
|
@@ -165,14 +232,9 @@
|
|
|
165
232
|
}
|
|
166
233
|
}
|
|
167
234
|
},
|
|
168
|
-
"lifecycle": {
|
|
169
|
-
"introduced": "1.0.0-draft"
|
|
170
|
-
},
|
|
235
|
+
"lifecycle": { "introduced": "1.0.0-draft" },
|
|
171
236
|
"tokenBindings": [
|
|
172
|
-
{
|
|
173
|
-
"token": "component-to-calendar-popover",
|
|
174
|
-
"context": "Spacing (open)"
|
|
175
|
-
},
|
|
237
|
+
{ "token": "component-to-calendar-popover", "context": "Spacing (open)" },
|
|
176
238
|
{
|
|
177
239
|
"token": "single-calendar-popover-minimum-width",
|
|
178
240
|
"context": "Width (minimum)"
|
|
@@ -189,26 +251,11 @@
|
|
|
189
251
|
"token": "double-calendar-popover-minimum-height",
|
|
190
252
|
"context": "Height (minimum)"
|
|
191
253
|
},
|
|
192
|
-
{
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
"token": "spacing-300",
|
|
198
|
-
"context": "Spacing (start/end edge to days) "
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
"token": "spacing-400",
|
|
202
|
-
"context": "Spacing (top/bottom edge to days) "
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
"token": "spacing-700",
|
|
206
|
-
"context": "Spacing (month + year to chevron) "
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
"token": "spacing-100",
|
|
210
|
-
"context": "Spacing (between week labels) "
|
|
211
|
-
},
|
|
254
|
+
{ "token": "corner-radius-700", "context": "Corner rounding" },
|
|
255
|
+
{ "token": "spacing-300", "context": "Spacing (start/end edge to days) " },
|
|
256
|
+
{ "token": "spacing-400", "context": "Spacing (top/bottom edge to days) " },
|
|
257
|
+
{ "token": "spacing-700", "context": "Spacing (month + year to chevron) " },
|
|
258
|
+
{ "token": "spacing-100", "context": "Spacing (between week labels) " },
|
|
212
259
|
{
|
|
213
260
|
"token": "current-day-indicator-size-100",
|
|
214
261
|
"context": "Current day indicator"
|
|
@@ -229,50 +276,17 @@
|
|
|
229
276
|
"token": "range-border-dash-thickness",
|
|
230
277
|
"context": "Range fill stroke padding"
|
|
231
278
|
},
|
|
232
|
-
{
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
},
|
|
244
|
-
{
|
|
245
|
-
"token": "focus-indicator-color",
|
|
246
|
-
"context": "Day values "
|
|
247
|
-
},
|
|
248
|
-
{
|
|
249
|
-
"token": "neutral-content-color-default",
|
|
250
|
-
"context": "Day values "
|
|
251
|
-
},
|
|
252
|
-
{
|
|
253
|
-
"token": "gray-100",
|
|
254
|
-
"context": "Day values "
|
|
255
|
-
},
|
|
256
|
-
{
|
|
257
|
-
"token": "disabled-content-color",
|
|
258
|
-
"context": "Day values "
|
|
259
|
-
},
|
|
260
|
-
{
|
|
261
|
-
"token": "negative-background-color-default",
|
|
262
|
-
"context": "Day values "
|
|
263
|
-
},
|
|
264
|
-
{
|
|
265
|
-
"token": "negative-background-color-hover",
|
|
266
|
-
"context": "Day values "
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
"token": "neutral-content-color-hover",
|
|
270
|
-
"context": "Current day"
|
|
271
|
-
},
|
|
272
|
-
{
|
|
273
|
-
"token": "strikethrough-day-thickness",
|
|
274
|
-
"context": "Strikethrough day "
|
|
275
|
-
},
|
|
279
|
+
{ "token": "blue-900", "context": "Day values " },
|
|
280
|
+
{ "token": "white", "context": "Day values " },
|
|
281
|
+
{ "token": "blue-1000", "context": "Day values " },
|
|
282
|
+
{ "token": "focus-indicator-color", "context": "Day values " },
|
|
283
|
+
{ "token": "neutral-content-color-default", "context": "Day values " },
|
|
284
|
+
{ "token": "gray-100", "context": "Day values " },
|
|
285
|
+
{ "token": "disabled-content-color", "context": "Day values " },
|
|
286
|
+
{ "token": "negative-background-color-default", "context": "Day values " },
|
|
287
|
+
{ "token": "negative-background-color-hover", "context": "Day values " },
|
|
288
|
+
{ "token": "neutral-content-color-hover", "context": "Current day" },
|
|
289
|
+
{ "token": "strikethrough-day-thickness", "context": "Strikethrough day " },
|
|
276
290
|
{
|
|
277
291
|
"token": "strikethrough-day-orientation",
|
|
278
292
|
"context": "Strikethrough day "
|
|
@@ -281,10 +295,7 @@
|
|
|
281
295
|
"token": "blue-subtle-background-color-default",
|
|
282
296
|
"context": "Range fill color "
|
|
283
297
|
},
|
|
284
|
-
{
|
|
285
|
-
"token": "gray-25",
|
|
286
|
-
"context": "Background and border "
|
|
287
|
-
},
|
|
298
|
+
{ "token": "gray-25", "context": "Background and border " },
|
|
288
299
|
{
|
|
289
300
|
"token": "neutral-content-color-focus-hover",
|
|
290
301
|
"context": "In field button colors "
|
|
@@ -297,22 +308,13 @@
|
|
|
297
308
|
"token": "neutral-content-color-key-focus",
|
|
298
309
|
"context": "In field button colors "
|
|
299
310
|
},
|
|
300
|
-
{
|
|
301
|
-
|
|
302
|
-
"context": "In field button colors "
|
|
303
|
-
},
|
|
304
|
-
{
|
|
305
|
-
"token": "gray-200",
|
|
306
|
-
"context": "In field button colors "
|
|
307
|
-
},
|
|
311
|
+
{ "token": "disabled-color-content", "context": "In field button colors " },
|
|
312
|
+
{ "token": "gray-200", "context": "In field button colors " },
|
|
308
313
|
{
|
|
309
314
|
"token": "background-disabled-color",
|
|
310
315
|
"context": "In field button colors "
|
|
311
316
|
},
|
|
312
|
-
{
|
|
313
|
-
"token": "disabled-background-color",
|
|
314
|
-
"context": "Disabled"
|
|
315
|
-
},
|
|
317
|
+
{ "token": "disabled-background-color", "context": "Disabled" },
|
|
316
318
|
{
|
|
317
319
|
"token": "default-font-family",
|
|
318
320
|
"context": "Label, value, help text, and error message"
|
|
@@ -337,14 +339,8 @@
|
|
|
337
339
|
"token": "cjk-line-height-100",
|
|
338
340
|
"context": "Label, value, help text, and error message"
|
|
339
341
|
},
|
|
340
|
-
{
|
|
341
|
-
|
|
342
|
-
"context": "Width (minimum)"
|
|
343
|
-
},
|
|
344
|
-
{
|
|
345
|
-
"token": "component-height-100",
|
|
346
|
-
"context": "Height"
|
|
347
|
-
},
|
|
342
|
+
{ "token": "date-picker-minimum-width", "context": "Width (minimum)" },
|
|
343
|
+
{ "token": "component-height-100", "context": "Height" },
|
|
348
344
|
{
|
|
349
345
|
"token": "corner-radius-medium-size-medium",
|
|
350
346
|
"context": "Corner rounding "
|
|
@@ -365,22 +361,13 @@
|
|
|
365
361
|
"token": "component-bottom-to-text-100",
|
|
366
362
|
"context": "Spacing (top/bottom edge to label)"
|
|
367
363
|
},
|
|
368
|
-
{
|
|
369
|
-
"token": "border-width-200",
|
|
370
|
-
"context": "Border "
|
|
371
|
-
},
|
|
364
|
+
{ "token": "border-width-200", "context": "Border " },
|
|
372
365
|
{
|
|
373
366
|
"token": "focus-indicator-thickness",
|
|
374
367
|
"context": "Keyboard focus indicator "
|
|
375
368
|
},
|
|
376
|
-
{
|
|
377
|
-
|
|
378
|
-
"context": "Keyboard focus indicator "
|
|
379
|
-
},
|
|
380
|
-
{
|
|
381
|
-
"token": "spacing-50",
|
|
382
|
-
"context": "Individual value spacing "
|
|
383
|
-
},
|
|
369
|
+
{ "token": "focus-indicator-gap", "context": "Keyboard focus indicator " },
|
|
370
|
+
{ "token": "spacing-50", "context": "Individual value spacing " },
|
|
384
371
|
{
|
|
385
372
|
"token": "segmented-text-field-gap",
|
|
386
373
|
"context": "Spacing between values"
|
|
@@ -393,22 +380,13 @@
|
|
|
393
380
|
"token": "date-picker-visual-to-field-button",
|
|
394
381
|
"context": "Icon spacing (error)"
|
|
395
382
|
},
|
|
396
|
-
{
|
|
397
|
-
|
|
398
|
-
"context": "Alert icon size "
|
|
399
|
-
},
|
|
400
|
-
{
|
|
401
|
-
"token": "date-field-minimum-width",
|
|
402
|
-
"context": "Width (minimum)"
|
|
403
|
-
},
|
|
383
|
+
{ "token": "workflow-icon-size-100", "context": "Alert icon size " },
|
|
384
|
+
{ "token": "date-field-minimum-width", "context": "Width (minimum)" },
|
|
404
385
|
{
|
|
405
386
|
"token": "date-field-text-to-visual",
|
|
406
387
|
"context": "Spacing (value to alert icon)"
|
|
407
388
|
},
|
|
408
|
-
{
|
|
409
|
-
"token": "time-field-minimum-width",
|
|
410
|
-
"context": "Width (minimum)"
|
|
411
|
-
},
|
|
389
|
+
{ "token": "time-field-minimum-width", "context": "Width (minimum)" },
|
|
412
390
|
{
|
|
413
391
|
"token": "time-field-text-to-visual",
|
|
414
392
|
"context": "Spacing (value to alert icon)"
|
|
@@ -421,10 +399,7 @@
|
|
|
421
399
|
"token": "date-picker-text-to-visual",
|
|
422
400
|
"context": "Spacing (value to alert icon)"
|
|
423
401
|
},
|
|
424
|
-
{
|
|
425
|
-
"token": "negative-visual-color",
|
|
426
|
-
"context": "Alert icon (error) color"
|
|
427
|
-
},
|
|
402
|
+
{ "token": "negative-visual-color", "context": "Alert icon (error) color" },
|
|
428
403
|
{
|
|
429
404
|
"token": "negative-content-color-default",
|
|
430
405
|
"context": "Error message (error) color"
|
|
@@ -441,31 +416,16 @@
|
|
|
441
416
|
"token": "triple-calendar-popover-minimum-height",
|
|
442
417
|
"context": "Popover minimum width"
|
|
443
418
|
},
|
|
444
|
-
{
|
|
445
|
-
"token": "spacing-500",
|
|
446
|
-
"context": "Popover minimum width"
|
|
447
|
-
}
|
|
419
|
+
{ "token": "spacing-500", "context": "Popover minimum width" }
|
|
448
420
|
],
|
|
449
421
|
"accessibility": {
|
|
450
422
|
"intents": ["input", "choose"],
|
|
451
423
|
"focusable": true,
|
|
452
424
|
"keyboardIntents": ["navigate-items", "activate"],
|
|
453
425
|
"wcag": [
|
|
454
|
-
{
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
"title": "Info and Relationships"
|
|
458
|
-
},
|
|
459
|
-
{
|
|
460
|
-
"criterion": "2.1.1",
|
|
461
|
-
"level": "A",
|
|
462
|
-
"title": "Keyboard"
|
|
463
|
-
},
|
|
464
|
-
{
|
|
465
|
-
"criterion": "4.1.2",
|
|
466
|
-
"level": "A",
|
|
467
|
-
"title": "Name, Role, Value"
|
|
468
|
-
}
|
|
426
|
+
{ "criterion": "1.3.1", "level": "A", "title": "Info and Relationships" },
|
|
427
|
+
{ "criterion": "2.1.1", "level": "A", "title": "Keyboard" },
|
|
428
|
+
{ "criterion": "4.1.2", "level": "A", "title": "Name, Role, Value" }
|
|
469
429
|
]
|
|
470
430
|
}
|
|
471
431
|
}
|
package/components/divider.json
CHANGED
|
@@ -9,85 +9,46 @@
|
|
|
9
9
|
"category": "containers",
|
|
10
10
|
"documentationUrl": "https://spectrum.adobe.com/page/divider/"
|
|
11
11
|
},
|
|
12
|
+
"documentBlocks": [
|
|
13
|
+
{
|
|
14
|
+
"type": "purpose",
|
|
15
|
+
"content": "Dividers bring clarity to a layout by grouping and dividing content in close proximity. They can also be used to establish rhythm and hierarchy."
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"type": "guideline",
|
|
19
|
+
"content": "Place a divider below a header.\n\nDividers (medium or large) can be used in combination with a header text to create a section or a page title. In such cases, place the divider below the header."
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"type": "do-dont",
|
|
23
|
+
"content": "Don't overuse dividers",
|
|
24
|
+
"dont": "Dividers lose their value when overused. Use them sparingly to avoid creating unnecessary noise."
|
|
25
|
+
}
|
|
26
|
+
],
|
|
12
27
|
"options": {
|
|
13
28
|
"size": {
|
|
14
29
|
"type": "string",
|
|
15
30
|
"default": "s",
|
|
16
|
-
"values": [
|
|
17
|
-
{
|
|
18
|
-
"value": "s"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"value": "m"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"value": "l"
|
|
25
|
-
}
|
|
26
|
-
]
|
|
31
|
+
"values": [{ "value": "s" }, { "value": "m" }, { "value": "l" }]
|
|
27
32
|
},
|
|
28
33
|
"orientation": {
|
|
29
34
|
"type": "string",
|
|
30
35
|
"default": "horizontal",
|
|
31
|
-
"values": [
|
|
32
|
-
{
|
|
33
|
-
"value": "horizontal"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"value": "vertical"
|
|
37
|
-
}
|
|
38
|
-
]
|
|
36
|
+
"values": [{ "value": "horizontal" }, { "value": "vertical" }]
|
|
39
37
|
}
|
|
40
38
|
},
|
|
41
|
-
"lifecycle": {
|
|
42
|
-
"introduced": "1.0.0-draft"
|
|
43
|
-
},
|
|
39
|
+
"lifecycle": { "introduced": "1.0.0-draft" },
|
|
44
40
|
"tokenBindings": [
|
|
45
|
-
{
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"token": "divider-horizontal-minimum-width",
|
|
59
|
-
"context": "Horizontal"
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
"token": "divider-vertical-minimum-height",
|
|
63
|
-
"context": "Horizontal"
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
"token": "gray-200",
|
|
67
|
-
"context": "Fill "
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
"token": "gray-800",
|
|
71
|
-
"context": "Fill "
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
"token": "transparent-white-200",
|
|
75
|
-
"context": "Fill (white)"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"token": "transparent-white-800",
|
|
79
|
-
"context": "Fill (white)"
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
"token": "transparent-black-200",
|
|
83
|
-
"context": "Fill (black)"
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
"token": "transparent-black-800",
|
|
87
|
-
"context": "Fill (black)"
|
|
88
|
-
}
|
|
41
|
+
{ "token": "divider-thickness-small", "context": "Thickness" },
|
|
42
|
+
{ "token": "divider-thickness-medium", "context": "Thickness" },
|
|
43
|
+
{ "token": "divider-thickness-large", "context": "Thickness" },
|
|
44
|
+
{ "token": "divider-horizontal-minimum-width", "context": "Horizontal" },
|
|
45
|
+
{ "token": "divider-vertical-minimum-height", "context": "Horizontal" },
|
|
46
|
+
{ "token": "gray-200", "context": "Fill " },
|
|
47
|
+
{ "token": "gray-800", "context": "Fill " },
|
|
48
|
+
{ "token": "transparent-white-200", "context": "Fill (white)" },
|
|
49
|
+
{ "token": "transparent-white-800", "context": "Fill (white)" },
|
|
50
|
+
{ "token": "transparent-black-200", "context": "Fill (black)" },
|
|
51
|
+
{ "token": "transparent-black-800", "context": "Fill (black)" }
|
|
89
52
|
],
|
|
90
|
-
"accessibility": {
|
|
91
|
-
"focusable": false
|
|
92
|
-
}
|
|
53
|
+
"accessibility": { "focusable": false }
|
|
93
54
|
}
|