@adobe/spectrum-design-data 3.3.0-beta.0 → 3.3.0-beta.1
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 +15 -54
- package/components/action-bar.json +9 -23
- package/components/action-button.json +39 -79
- package/components/action-group.json +18 -129
- package/components/alert-banner.json +8 -27
- package/components/alert-dialog.json +34 -48
- package/components/avatar-group.json +9 -28
- package/components/avatar.json +29 -92
- package/components/badge.json +56 -150
- package/components/breadcrumbs.json +26 -100
- package/components/button-group.json +19 -50
- package/components/button.json +61 -92
- package/components/calendar.json +8 -67
- package/components/cards.json +31 -46
- package/components/checkbox-group.json +16 -78
- package/components/checkbox.json +27 -90
- package/components/close-button.json +20 -62
- package/components/coach-indicator.json +14 -44
- package/components/coach-mark.json +8 -26
- package/components/color-area.json +20 -93
- package/components/color-handle.json +25 -38
- package/components/color-loupe.json +2 -6
- package/components/color-slider.json +26 -122
- package/components/color-wheel.json +17 -84
- package/components/combo-box.json +50 -182
- package/components/contextual-help.json +80 -119
- package/components/date-picker.json +24 -120
- package/components/divider.json +12 -25
- package/components/drop-zone.json +18 -30
- package/components/field-label.json +21 -62
- package/components/help-text.json +16 -53
- package/components/illustrated-message.json +21 -72
- package/components/in-line-alert.json +13 -53
- package/components/link.json +24 -56
- package/components/list-view.json +15 -73
- package/components/menu.json +45 -174
- package/components/meter.json +24 -65
- package/components/number-field.json +34 -168
- package/components/picker.json +42 -181
- package/components/popover.json +37 -113
- package/components/progress-bar.json +23 -95
- package/components/progress-circle.json +12 -42
- package/components/radio-button.json +14 -67
- package/components/radio-group.json +28 -125
- package/components/rating.json +9 -38
- package/components/search-field.json +34 -119
- package/components/segmented-control.json +21 -63
- package/components/select-box.json +29 -96
- package/components/side-navigation.json +28 -69
- package/components/slider.json +39 -148
- package/components/standard-dialog.json +16 -88
- package/components/status-light.json +41 -123
- package/components/steplist.json +5 -24
- package/components/swatch-group.json +19 -55
- package/components/swatch.json +24 -79
- package/components/switch.json +31 -72
- package/components/table.json +26 -73
- package/components/tabs.json +22 -39
- package/components/tag-field.json +14 -60
- package/components/tag-group.json +16 -49
- package/components/tag.json +21 -71
- package/components/takeover-dialog.json +10 -61
- package/components/text-area.json +49 -198
- package/components/text-field.json +42 -163
- package/components/thumbnail.json +22 -63
- package/components/toast.json +29 -50
- package/components/tooltip.json +27 -74
- package/components/tree-view.json +45 -140
- package/guidelines/introduction.json +2 -2
- package/guidelines/manifest.json +2 -74
- package/guidelines/principles.json +2 -2
- package/package.json +1 -1
- package/guidelines/app-frame-content-area.json +0 -81
- package/guidelines/app-frame-creating-bluelines.json +0 -58
- package/guidelines/app-frame-header.json +0 -72
- package/guidelines/app-frame-side-navigation.json +0 -138
- package/guidelines/containers.json +0 -62
- package/guidelines/illustrations.json +0 -111
- package/guidelines/object-styles.json +0 -102
- package/guidelines/spacing.json +0 -25
- package/guidelines/typography-fundamentals.json +0 -142
|
@@ -16,63 +16,27 @@
|
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
18
|
"type": "guideline",
|
|
19
|
-
"content": "
|
|
19
|
+
"content": "Keyboard focus.\n\nThe keyboard focus state enlarges the handle to become twice as large. The loupe is a visual-only element and should not receive focus since it does not provide interactive functionality."
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
22
|
"type": "guideline",
|
|
23
|
-
"content": "
|
|
23
|
+
"content": "Handle behavior.\n\nUnlike the slider itself, the color slider's handle can slide all the way to the edge of the track. It always displays the selected color inside the handle and never gets cut off by the track or any container."
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
"type": "guideline",
|
|
27
|
-
"content": "
|
|
27
|
+
"content": "Minimum length.\n\nA color slider's minimum length is 80 px on desktop, 100 px on mobile."
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
"type": "guideline",
|
|
31
|
-
"content": "
|
|
31
|
+
"content": "Include labels.\n\nColor sliders should be labeled and, when applicable, paired with text fields. If labeling each individual slider is redundant, label the group of sliders instead (for example, \"RGB\" or \"HSB\")."
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
"type": "guideline",
|
|
35
|
-
"content": "
|
|
35
|
+
"content": "Display color selection.\n\nWhen using color sliders, it's important to clearly display the color selection in real time. It can be in a color swatch, directly on the canvas, or both."
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
"type": "guideline",
|
|
39
|
-
"content": "
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"type": "guideline",
|
|
43
|
-
"content": "The value is the number selected within the color slider’s range, from the min value to max value."
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"type": "guideline",
|
|
47
|
-
"content": "Controls a single color channel — such as hue, lightness, or alpha—at a time. The track’s gradient visualizes the full range of values for that channel."
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"type": "guideline",
|
|
51
|
-
"content": "The background of the color slider is a visual representation of the range of values a user can select from. This can represent color properties such as hues, color channel values (such as RGB or CMYK levels), or opacity. The exact format this background property takes will depend on what implementation you are working with. Some examples of the format include image, canvas, and gradient."
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"type": "guideline",
|
|
55
|
-
"content": "The keyboard focus state enlarges the handle to become twice as large. The loupe is a visual-only element and should not receive focus since it does not provide interactive functionality."
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"type": "guideline",
|
|
59
|
-
"content": "Unlike the slider itself, the color slider’s handle can slide all the way to the edge of the track. It always displays the selected color inside the handle and never gets cut off by the track or any container."
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
"type": "guideline",
|
|
63
|
-
"content": "A color slider’s minimum length is 80 px on desktop, 100 px on mobile."
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
"type": "guideline",
|
|
67
|
-
"content": "Color sliders should be labeled and, when applicable, paired with text fields. If labeling each individual slider is redundant, label the group of sliders instead (for example, “RGB” or “HSB”)."
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
"type": "guideline",
|
|
71
|
-
"content": "When using color sliders, it’s important to clearly display the color selection in real time. It can be in a color swatch, directly on the canvas, or both."
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
"type": "guideline",
|
|
75
|
-
"content": "The color loupe component can be used above the handle to show the selected color that would otherwise be covered by a cursor, stylus, or finger on the down/touch state. This can be customized to appear only on finger-input, or always appear regardless of input type."
|
|
39
|
+
"content": "Color loupe on down/touch state.\n\nThe color loupe component can be used above the handle to show the selected color that would otherwise be covered by a cursor, stylus, or finger on the down/touch state. This can be customized to appear only on finger-input, or always appear regardless of input type."
|
|
76
40
|
}
|
|
77
41
|
],
|
|
78
42
|
"options": {
|
|
@@ -85,105 +49,45 @@
|
|
|
85
49
|
"default": "hue",
|
|
86
50
|
"description": "Which channel of the color this slider controls. Use 'alpha' for opacity.",
|
|
87
51
|
"values": [
|
|
88
|
-
{
|
|
89
|
-
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"value": "lightness"
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
"value": "red"
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
"value": "green"
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
"value": "blue"
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
"value": "alpha"
|
|
108
|
-
}
|
|
52
|
+
{ "value": "hue" },
|
|
53
|
+
{ "value": "saturation" },
|
|
54
|
+
{ "value": "lightness" },
|
|
55
|
+
{ "value": "red" },
|
|
56
|
+
{ "value": "green" },
|
|
57
|
+
{ "value": "blue" },
|
|
58
|
+
{ "value": "alpha" }
|
|
109
59
|
]
|
|
110
60
|
},
|
|
111
61
|
"value": {
|
|
112
62
|
"type": "number",
|
|
113
63
|
"description": "Number (from minValue to maxValue)."
|
|
114
64
|
},
|
|
115
|
-
"minValue": {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
},
|
|
119
|
-
"maxValue": {
|
|
120
|
-
"type": "number",
|
|
121
|
-
"default": 100
|
|
122
|
-
},
|
|
123
|
-
"step": {
|
|
124
|
-
"type": "number",
|
|
125
|
-
"default": 1
|
|
126
|
-
},
|
|
65
|
+
"minValue": { "type": "number", "default": 0 },
|
|
66
|
+
"maxValue": { "type": "number", "default": 100 },
|
|
67
|
+
"step": { "type": "number", "default": 1 },
|
|
127
68
|
"orientation": {
|
|
128
69
|
"type": "string",
|
|
129
70
|
"default": "horizontal",
|
|
130
|
-
"values": [
|
|
131
|
-
{
|
|
132
|
-
"value": "horizontal"
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
"value": "vertical"
|
|
136
|
-
}
|
|
137
|
-
]
|
|
138
|
-
},
|
|
139
|
-
"length": {
|
|
140
|
-
"type": "number",
|
|
141
|
-
"default": 192,
|
|
142
|
-
"description": "units: px"
|
|
71
|
+
"values": [{ "value": "horizontal" }, { "value": "vertical" }]
|
|
143
72
|
},
|
|
144
|
-
"
|
|
145
|
-
|
|
146
|
-
"default": false
|
|
147
|
-
}
|
|
73
|
+
"length": { "type": "number", "default": 192, "description": "units: px" },
|
|
74
|
+
"isDisabled": { "type": "boolean", "default": false }
|
|
148
75
|
},
|
|
149
76
|
"states": [
|
|
150
|
-
{
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
"name": "down",
|
|
156
|
-
"trigger": "interaction"
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
"name": "keyboard-focus",
|
|
160
|
-
"trigger": "interaction"
|
|
161
|
-
}
|
|
77
|
+
{ "name": "hover", "trigger": "interaction" },
|
|
78
|
+
{ "name": "down", "trigger": "interaction" },
|
|
79
|
+
{ "name": "keyboard-focus", "trigger": "interaction" }
|
|
162
80
|
],
|
|
163
|
-
"lifecycle": {
|
|
164
|
-
"introduced": "1.0.0-draft"
|
|
165
|
-
},
|
|
81
|
+
"lifecycle": { "introduced": "1.0.0-draft" },
|
|
166
82
|
"accessibility": {
|
|
167
83
|
"role": "slider",
|
|
168
84
|
"intents": ["choose"],
|
|
169
85
|
"focusable": true,
|
|
170
86
|
"keyboardIntents": ["increment", "decrement"],
|
|
171
87
|
"wcag": [
|
|
172
|
-
{
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
"title": "Info and Relationships"
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
"criterion": "2.1.1",
|
|
179
|
-
"level": "A",
|
|
180
|
-
"title": "Keyboard"
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
"criterion": "4.1.2",
|
|
184
|
-
"level": "A",
|
|
185
|
-
"title": "Name, Role, Value"
|
|
186
|
-
}
|
|
88
|
+
{ "criterion": "1.3.1", "level": "A", "title": "Info and Relationships" },
|
|
89
|
+
{ "criterion": "2.1.1", "level": "A", "title": "Keyboard" },
|
|
90
|
+
{ "criterion": "4.1.2", "level": "A", "title": "Name, Role, Value" }
|
|
187
91
|
]
|
|
188
92
|
}
|
|
189
93
|
}
|
|
@@ -16,51 +16,23 @@
|
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
18
|
"type": "guideline",
|
|
19
|
-
"content": "
|
|
19
|
+
"content": "Keyboard focus.\n\nA color wheel can be navigated using a keyboard. The keyboard focus state enlarges the handle to become twice as large."
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
22
|
"type": "guideline",
|
|
23
|
-
"content": "
|
|
23
|
+
"content": "Minimum size.\n\nMinimum sizing ensures that the component remains clear, usable, and visually consistent, even in flexible or responsive layouts."
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
"type": "guideline",
|
|
27
|
-
"content": "
|
|
27
|
+
"content": "Placing a color area inside a color wheel.\n\nThe color wheel is often used together with the color area component for color selection. When placing the color area inside the color wheel, make sure to leave enough of a margin between the two components to ensure there's enough space for the both the handles."
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
"type": "guideline",
|
|
31
|
-
"content": "
|
|
31
|
+
"content": "Display color selection.\n\nWhen using color areas, it's important to clearly display the color selection in real time. It can be in a color swatch, directly on the canvas, or both."
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
"type": "guideline",
|
|
35
|
-
"content": "
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"type": "guideline",
|
|
39
|
-
"content": "The value is the number selected within the color wheel’s range, from the minimum value to the maximum value."
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"type": "guideline",
|
|
43
|
-
"content": "The background of the color wheel is a visual representation of the range of values that a user can select from. It can represent color properties such as hues or color channel values (such as RGB or CMYK levels). The exact format this background property takes will depend on what implementation you are working with. Some examples of the format include image, canvas, and gradient."
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"type": "guideline",
|
|
47
|
-
"content": "A color wheel can be navigated using a keyboard. The keyboard focus state enlarges the handle to become twice as large."
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"type": "guideline",
|
|
51
|
-
"content": "Minimum sizing ensures that the component remains clear, usable, and visually consistent, even in flexible or responsive layouts."
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"type": "guideline",
|
|
55
|
-
"content": "The color wheel is often used together with the color area component for color selection. When placing the color area inside the color wheel, make sure to leave enough of a margin between the two components to ensure there’s enough space for the both the handles."
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"type": "guideline",
|
|
59
|
-
"content": "When using color areas, it’s important to clearly display the color selection in real time. It can be in a color swatch, directly on the canvas, or both."
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
"type": "guideline",
|
|
63
|
-
"content": "The color loupe component can be used above the handle to show the selected color that would otherwise be covered by a cursor, stylus, or finger on the down/touch state. This can be customized to appear only on finger-input, or always appear regardless of input type."
|
|
35
|
+
"content": "Color loupe on down/touch state.\n\nThe color loupe component can be used above the handle to show the selected color that would otherwise be covered by a cursor, stylus, or finger on the down/touch state. This can be customized to appear only on finger-input, or always appear regardless of input type."
|
|
64
36
|
}
|
|
65
37
|
],
|
|
66
38
|
"options": {
|
|
@@ -72,66 +44,27 @@
|
|
|
72
44
|
"type": "number",
|
|
73
45
|
"description": "Number (from minValue to maxValue)"
|
|
74
46
|
},
|
|
75
|
-
"minValue": {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
},
|
|
79
|
-
"
|
|
80
|
-
"type": "number",
|
|
81
|
-
"default": 360
|
|
82
|
-
},
|
|
83
|
-
"step": {
|
|
84
|
-
"type": "number",
|
|
85
|
-
"default": 1
|
|
86
|
-
},
|
|
87
|
-
"size": {
|
|
88
|
-
"type": "number",
|
|
89
|
-
"default": 192,
|
|
90
|
-
"description": "units: px"
|
|
91
|
-
},
|
|
92
|
-
"isDisabled": {
|
|
93
|
-
"type": "boolean",
|
|
94
|
-
"default": false
|
|
95
|
-
}
|
|
47
|
+
"minValue": { "type": "number", "default": 0 },
|
|
48
|
+
"maxValue": { "type": "number", "default": 360 },
|
|
49
|
+
"step": { "type": "number", "default": 1 },
|
|
50
|
+
"size": { "type": "number", "default": 192, "description": "units: px" },
|
|
51
|
+
"isDisabled": { "type": "boolean", "default": false }
|
|
96
52
|
},
|
|
97
53
|
"states": [
|
|
98
|
-
{
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
"name": "down",
|
|
104
|
-
"trigger": "interaction"
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
"name": "keyboard-focus",
|
|
108
|
-
"trigger": "interaction"
|
|
109
|
-
}
|
|
54
|
+
{ "name": "hover", "trigger": "interaction" },
|
|
55
|
+
{ "name": "down", "trigger": "interaction" },
|
|
56
|
+
{ "name": "keyboard-focus", "trigger": "interaction" }
|
|
110
57
|
],
|
|
111
|
-
"lifecycle": {
|
|
112
|
-
"introduced": "1.0.0-draft"
|
|
113
|
-
},
|
|
58
|
+
"lifecycle": { "introduced": "1.0.0-draft" },
|
|
114
59
|
"accessibility": {
|
|
115
60
|
"role": "slider",
|
|
116
61
|
"intents": ["choose"],
|
|
117
62
|
"focusable": true,
|
|
118
63
|
"keyboardIntents": ["increment", "decrement"],
|
|
119
64
|
"wcag": [
|
|
120
|
-
{
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
"title": "Info and Relationships"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"criterion": "2.1.1",
|
|
127
|
-
"level": "A",
|
|
128
|
-
"title": "Keyboard"
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
"criterion": "4.1.2",
|
|
132
|
-
"level": "A",
|
|
133
|
-
"title": "Name, Role, Value"
|
|
134
|
-
}
|
|
65
|
+
{ "criterion": "1.3.1", "level": "A", "title": "Info and Relationships" },
|
|
66
|
+
{ "criterion": "2.1.1", "level": "A", "title": "Keyboard" },
|
|
67
|
+
{ "criterion": "4.1.2", "level": "A", "title": "Name, Role, Value" }
|
|
135
68
|
]
|
|
136
69
|
}
|
|
137
70
|
}
|