@adobe/spectrum-design-data 1.0.3 → 2.1.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 +49 -295
- package/components/action-bar.json +16 -119
- package/components/action-button.json +69 -302
- package/components/action-group.json +74 -20
- package/components/alert-banner.json +27 -47
- package/components/alert-dialog.json +38 -40
- package/components/avatar-group.json +28 -54
- package/components/avatar.json +92 -59
- package/components/badge.json +121 -370
- package/components/breadcrumbs.json +53 -159
- package/components/button-group.json +40 -13
- package/components/button.json +88 -231
- package/components/cards.json +33 -262
- package/components/checkbox-group.json +58 -13
- package/components/checkbox.json +53 -156
- package/components/close-button.json +47 -76
- package/components/coach-indicator.json +44 -31
- package/components/coach-mark.json +19 -43
- package/components/color-area.json +64 -26
- package/components/color-handle.json +35 -27
- package/components/color-loupe.json +6 -17
- package/components/color-slider.json +80 -35
- package/components/color-wheel.json +51 -25
- package/components/combo-box.json +96 -242
- package/components/contextual-help.json +106 -59
- package/components/date-picker.json +59 -171
- package/components/divider.json +25 -17
- package/components/drop-zone.json +28 -105
- package/components/field-label.json +45 -103
- package/components/help-text.json +29 -97
- package/components/illustrated-message.json +25 -74
- package/components/in-field-progress-circle.json +0 -54
- package/components/in-line-alert.json +39 -130
- package/components/link.json +40 -58
- package/components/list-view.json +31 -176
- package/components/menu.json +105 -339
- package/components/meter.json +52 -78
- package/components/number-field.json +72 -239
- package/components/opacity-checkerboard.json +0 -18
- package/components/picker.json +95 -275
- package/components/popover.json +88 -45
- package/components/progress-bar.json +63 -78
- package/components/progress-circle.json +36 -33
- package/components/radio-button.json +36 -145
- package/components/radio-group.json +74 -18
- package/components/rating.json +33 -48
- package/components/search-field.json +64 -133
- package/components/segmented-control.json +37 -86
- package/components/select-box.json +52 -100
- package/components/side-navigation.json +32 -164
- package/components/slider.json +90 -182
- package/components/standard-dialog.json +37 -43
- package/components/status-light.json +92 -134
- package/components/steplist.json +23 -113
- package/components/swatch-group.json +50 -22
- package/components/swatch.json +62 -70
- package/components/switch.json +51 -143
- package/components/table.json +53 -216
- package/components/tabs.json +29 -84
- package/components/tag-field.json +53 -85
- package/components/tag-group.json +36 -18
- package/components/tag.json +43 -206
- package/components/takeover-dialog.json +30 -20
- package/components/text-area.json +114 -247
- package/components/text-field.json +90 -261
- package/components/thumbnail.json +46 -44
- package/components/title.json +0 -18
- package/components/toast.json +27 -61
- package/components/tooltip.json +36 -52
- package/components/tree-view.json +86 -197
- package/package.json +2 -2
- package/tokens/color-aliases.tokens.json +9 -7
- package/tokens/color-component.tokens.json +1 -1202
- package/tokens/color-palette.tokens.json +0 -33
- package/tokens/icons.tokens.json +3 -1
- package/tokens/layout-component.tokens.json +1044 -22359
- package/tokens/layout.tokens.json +1287 -1292
- package/tokens/semantic-color-palette.tokens.json +12 -4
- package/tokens/typography.tokens.json +559 -3212
package/components/swatch.json
CHANGED
|
@@ -52,110 +52,102 @@
|
|
|
52
52
|
"type": "string",
|
|
53
53
|
"default": "m",
|
|
54
54
|
"values": [
|
|
55
|
-
{
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
{
|
|
55
|
+
{
|
|
56
|
+
"value": "xs"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"value": "s"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"value": "m"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"value": "l"
|
|
66
|
+
}
|
|
59
67
|
]
|
|
60
68
|
},
|
|
61
69
|
"shape": {
|
|
62
70
|
"type": "string",
|
|
63
71
|
"default": "square",
|
|
64
|
-
"values": [
|
|
72
|
+
"values": [
|
|
73
|
+
{
|
|
74
|
+
"value": "square"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"value": "rectangle"
|
|
78
|
+
}
|
|
79
|
+
]
|
|
65
80
|
},
|
|
66
81
|
"cornerRounding": {
|
|
67
82
|
"type": "string",
|
|
68
83
|
"default": "none",
|
|
69
84
|
"description": "Determines the corner radius of the swatch. Partial refers to corner-radius-75.",
|
|
70
85
|
"values": [
|
|
71
|
-
{
|
|
72
|
-
|
|
73
|
-
|
|
86
|
+
{
|
|
87
|
+
"value": "none"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"value": "partial"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"value": "full"
|
|
94
|
+
}
|
|
74
95
|
]
|
|
75
96
|
},
|
|
76
|
-
"isSelected": {
|
|
77
|
-
|
|
97
|
+
"isSelected": {
|
|
98
|
+
"type": "boolean",
|
|
99
|
+
"default": false
|
|
100
|
+
},
|
|
101
|
+
"isDisabled": {
|
|
102
|
+
"type": "boolean",
|
|
103
|
+
"default": false
|
|
104
|
+
}
|
|
78
105
|
},
|
|
79
106
|
"anatomy": [
|
|
80
107
|
{
|
|
81
108
|
"name": "slash",
|
|
82
109
|
"description": "Diagonal slash indicating an empty or \"none\" swatch."
|
|
83
110
|
},
|
|
84
|
-
{
|
|
111
|
+
{
|
|
112
|
+
"name": "icon"
|
|
113
|
+
}
|
|
85
114
|
],
|
|
86
115
|
"states": [
|
|
87
|
-
{ "name": "hover", "trigger": "interaction" },
|
|
88
|
-
{ "name": "down", "trigger": "interaction" },
|
|
89
|
-
{ "name": "keyboard-focus", "trigger": "interaction" },
|
|
90
|
-
{ "name": "disabled", "trigger": "prop" }
|
|
91
|
-
],
|
|
92
|
-
"lifecycle": { "introduced": "1.0.0-draft" },
|
|
93
|
-
"tokenBindings": [
|
|
94
|
-
{ "token": "swatch-size-extra-small", "context": "Size (square)" },
|
|
95
|
-
{ "token": "swatch-size-small", "context": "Size (square)" },
|
|
96
|
-
{ "token": "swatch-size-medium", "context": "Size (square)" },
|
|
97
|
-
{ "token": "swatch-size-large", "context": "Size (square)" },
|
|
98
|
-
{
|
|
99
|
-
"token": "swatch-rectangle-width-multiplier",
|
|
100
|
-
"context": "Width (rectangle)"
|
|
101
|
-
},
|
|
102
|
-
{ "token": "corner-radius-75", "context": "Rounding" },
|
|
103
|
-
{ "token": "border-width-100", "context": "Border" },
|
|
104
|
-
{
|
|
105
|
-
"token": "border-width-200",
|
|
106
|
-
"context": "Border and inner border (selected)"
|
|
107
|
-
},
|
|
108
|
-
{ "token": "workflow-icon-size-50", "context": "Disabled icon asset" },
|
|
109
|
-
{ "token": "workflow-icon-size-75", "context": "Disabled icon asset" },
|
|
110
|
-
{ "token": "workflow-icon-size-100", "context": "Disabled icon asset" },
|
|
111
|
-
{ "token": "workflow-icon-size-200", "context": "Disabled icon asset" },
|
|
112
|
-
{
|
|
113
|
-
"token": "swatch-slash-thickness-extra-small",
|
|
114
|
-
"context": "Slash thickness (empty)"
|
|
115
|
-
},
|
|
116
116
|
{
|
|
117
|
-
"
|
|
118
|
-
"
|
|
117
|
+
"name": "hover",
|
|
118
|
+
"trigger": "interaction"
|
|
119
119
|
},
|
|
120
120
|
{
|
|
121
|
-
"
|
|
122
|
-
"
|
|
121
|
+
"name": "down",
|
|
122
|
+
"trigger": "interaction"
|
|
123
123
|
},
|
|
124
124
|
{
|
|
125
|
-
"
|
|
126
|
-
"
|
|
127
|
-
},
|
|
128
|
-
{ "token": "focus-indicator-thickness", "context": "Focus ring" },
|
|
129
|
-
{ "token": "focus-indicator-gap", "context": "Focus ring" },
|
|
130
|
-
{ "token": "spacing-75", "context": "Spacing (Tooltip to Swatch)" },
|
|
131
|
-
{ "token": "swatch-border-color", "context": "Border" },
|
|
132
|
-
{ "token": "swatch-border-opacity", "context": "Border" },
|
|
133
|
-
{ "token": "gray-1000", "context": "Border and inner border (selected)" },
|
|
134
|
-
{ "token": "gray-25", "context": "Border and inner border (selected)" },
|
|
135
|
-
{
|
|
136
|
-
"token": "swatch-disabled-icon-border-color",
|
|
137
|
-
"context": "Disabled icon"
|
|
125
|
+
"name": "keyboard-focus",
|
|
126
|
+
"trigger": "interaction"
|
|
138
127
|
},
|
|
139
128
|
{
|
|
140
|
-
"
|
|
141
|
-
"
|
|
142
|
-
}
|
|
143
|
-
{ "token": "white", "context": "Disabled icon" },
|
|
144
|
-
{ "token": "negative-visual-color", "context": "Slash" },
|
|
145
|
-
{ "token": "neutral-content-color-default", "context": "Dash UI icon" },
|
|
146
|
-
{ "token": "gray-100", "context": "Add “button” background" },
|
|
147
|
-
{ "token": "gray-200", "context": "Add “button” background" },
|
|
148
|
-
{ "token": "focus-indicator-color", "context": "Focus ring" },
|
|
149
|
-
{ "token": "spacing-50", "context": "Spacing (compact)" },
|
|
150
|
-
{ "token": "spacing-100", "context": "Spacing (spacious)" }
|
|
129
|
+
"name": "disabled",
|
|
130
|
+
"trigger": "prop"
|
|
131
|
+
}
|
|
151
132
|
],
|
|
133
|
+
"lifecycle": {
|
|
134
|
+
"introduced": "1.0.0-draft"
|
|
135
|
+
},
|
|
152
136
|
"accessibility": {
|
|
153
137
|
"intents": ["choose"],
|
|
154
138
|
"focusable": true,
|
|
155
139
|
"keyboardIntents": ["activate"],
|
|
156
140
|
"wcag": [
|
|
157
|
-
{
|
|
158
|
-
|
|
141
|
+
{
|
|
142
|
+
"criterion": "2.1.1",
|
|
143
|
+
"level": "A",
|
|
144
|
+
"title": "Keyboard"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"criterion": "4.1.2",
|
|
148
|
+
"level": "A",
|
|
149
|
+
"title": "Name, Role, Value"
|
|
150
|
+
}
|
|
159
151
|
]
|
|
160
152
|
}
|
|
161
153
|
}
|
package/components/switch.json
CHANGED
|
@@ -80,169 +80,77 @@
|
|
|
80
80
|
}
|
|
81
81
|
],
|
|
82
82
|
"options": {
|
|
83
|
-
"label": {
|
|
84
|
-
|
|
83
|
+
"label": {
|
|
84
|
+
"type": "string"
|
|
85
|
+
},
|
|
86
|
+
"isSelected": {
|
|
87
|
+
"type": "boolean",
|
|
88
|
+
"default": false
|
|
89
|
+
},
|
|
85
90
|
"size": {
|
|
86
91
|
"type": "string",
|
|
87
92
|
"default": "m",
|
|
88
93
|
"values": [
|
|
89
|
-
{
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
{
|
|
94
|
+
{
|
|
95
|
+
"value": "s"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"value": "m"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"value": "l"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"value": "xl"
|
|
105
|
+
}
|
|
93
106
|
]
|
|
94
107
|
},
|
|
95
|
-
"isEmphasized": {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
},
|
|
99
|
-
"states": [
|
|
100
|
-
{ "name": "hover", "trigger": "interaction" },
|
|
101
|
-
{ "name": "down", "trigger": "interaction" },
|
|
102
|
-
{ "name": "keyboard-focus", "trigger": "interaction" }
|
|
103
|
-
],
|
|
104
|
-
"lifecycle": { "introduced": "1.0.0-draft" },
|
|
105
|
-
"tokenBindings": [
|
|
106
|
-
{ "token": "component-height-75", "context": "Minimum height" },
|
|
107
|
-
{ "token": "component-height-100", "context": "Minimum height" },
|
|
108
|
-
{ "token": "component-height-200", "context": "Minimum height" },
|
|
109
|
-
{ "token": "component-height-300", "context": "Minimum height" },
|
|
110
|
-
{ "token": "corner-radius-full", "context": "Rounding" },
|
|
111
|
-
{ "token": "switch-control-width-small", "context": "Track (size)" },
|
|
112
|
-
{ "token": "switch-control-width-medium", "context": "Track (size)" },
|
|
113
|
-
{ "token": "switch-control-width-large", "context": "Track (size)" },
|
|
114
|
-
{ "token": "switch-control-width-extra-large", "context": "Track (size)" },
|
|
115
|
-
{ "token": "switch-control-height-small", "context": "Track (size)" },
|
|
116
|
-
{ "token": "switch-control-height-medium", "context": "Track (size)" },
|
|
117
|
-
{ "token": "switch-control-height-large", "context": "Track (size)" },
|
|
118
|
-
{ "token": "switch-control-height-extra-large", "context": "Track (size)" },
|
|
119
|
-
{ "token": "border-width-200", "context": "Track (border)" },
|
|
120
|
-
{ "token": "switch-handle-size-small", "context": "Handle (size)" },
|
|
121
|
-
{ "token": "switch-handle-size-medium", "context": "Handle (size)" },
|
|
122
|
-
{ "token": "switch-handle-size-large", "context": "Handle (size)" },
|
|
123
|
-
{ "token": "switch-handle-size-extra-large", "context": "Handle (size)" },
|
|
124
|
-
{
|
|
125
|
-
"token": "switch-handle-selected-size-small",
|
|
126
|
-
"context": "Handle (size)"
|
|
108
|
+
"isEmphasized": {
|
|
109
|
+
"type": "boolean",
|
|
110
|
+
"default": false
|
|
127
111
|
},
|
|
128
|
-
{
|
|
129
|
-
"
|
|
130
|
-
"
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
"token": "switch-handle-selected-size-large",
|
|
134
|
-
"context": "Handle (size)"
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
"token": "switch-handle-selected-size-extra-large",
|
|
138
|
-
"context": "Handle (size)"
|
|
139
|
-
},
|
|
140
|
-
{ "token": "text-to-control-75", "context": "Spacing (control to label)" },
|
|
141
|
-
{ "token": "text-to-control-100", "context": "Spacing (control to label)" },
|
|
142
|
-
{ "token": "text-to-control-200", "context": "Spacing (control to label)" },
|
|
143
|
-
{ "token": "text-to-control-300", "context": "Spacing (control to label)" },
|
|
144
|
-
{
|
|
145
|
-
"token": "switch-top-to-control-small",
|
|
146
|
-
"context": "Spacing (top edge to control)"
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
"token": "switch-top-to-control-medium",
|
|
150
|
-
"context": "Spacing (top edge to control)"
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
"token": "switch-top-to-control-large",
|
|
154
|
-
"context": "Spacing (top edge to control)"
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
"token": "switch-top-to-control-extra-large",
|
|
158
|
-
"context": "Spacing (top edge to control)"
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
"token": "component-top-to-text-75",
|
|
162
|
-
"context": "Spacing (top/bottom edge to label)"
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
"token": "component-top-to-text-100",
|
|
166
|
-
"context": "Spacing (top/bottom edge to label)"
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
"token": "component-top-to-text-200",
|
|
170
|
-
"context": "Spacing (top/bottom edge to label)"
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
"token": "component-top-to-text-300",
|
|
174
|
-
"context": "Spacing (top/bottom edge to label)"
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
"token": "component-bottom-to-text-75",
|
|
178
|
-
"context": "Spacing (top/bottom edge to label)"
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
"token": "component-bottom-to-text-100",
|
|
182
|
-
"context": "Spacing (top/bottom edge to label)"
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
"token": "component-bottom-to-text-200",
|
|
186
|
-
"context": "Spacing (top/bottom edge to label)"
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
"token": "component-bottom-to-text-300",
|
|
190
|
-
"context": "Spacing (top/bottom edge to label)"
|
|
191
|
-
},
|
|
192
|
-
{ "token": "focus-indicator-thickness", "context": "Focus indicator" },
|
|
193
|
-
{ "token": "focus-indicator-gap", "context": "Focus indicator" },
|
|
194
|
-
{
|
|
195
|
-
"token": "component-size-difference-down",
|
|
196
|
-
"context": "Component size (down)"
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
"token": "component-size-width-ratio-down",
|
|
200
|
-
"context": "Component size (down)"
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
"token": "component-size-minimum-perspective-down",
|
|
204
|
-
"context": "Component size (down)"
|
|
205
|
-
},
|
|
206
|
-
{ "token": "font-size-75", "context": "Font size" },
|
|
207
|
-
{ "token": "font-size-100", "context": "Font size" },
|
|
208
|
-
{ "token": "font-size-200", "context": "Font size" },
|
|
209
|
-
{ "token": "font-size-300", "context": "Font size" },
|
|
210
|
-
{ "token": "default-font-family", "context": "Font size" },
|
|
211
|
-
{ "token": "regular-font-weight", "context": "Font size" },
|
|
212
|
-
{ "token": "line-height-100", "context": "Font size" },
|
|
213
|
-
{ "token": "cjk-line-height-100", "context": "Font size" },
|
|
214
|
-
{ "token": "neutral-content-color-default", "context": "Label" },
|
|
215
|
-
{ "token": "neutral-content-color-hover", "context": "Label" },
|
|
216
|
-
{ "token": "neutral-content-color-down", "context": "Label" },
|
|
217
|
-
{ "token": "neutral-content-color-key-focus", "context": "Label" },
|
|
218
|
-
{ "token": "gray-25", "context": "Control" },
|
|
219
|
-
{
|
|
220
|
-
"token": "accent-content-color-default",
|
|
221
|
-
"context": "Control (selected, emphasized)"
|
|
112
|
+
"isDisabled": {
|
|
113
|
+
"type": "boolean",
|
|
114
|
+
"default": false
|
|
222
115
|
},
|
|
116
|
+
"isReadOnly": {
|
|
117
|
+
"type": "boolean",
|
|
118
|
+
"default": false
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"states": [
|
|
223
122
|
{
|
|
224
|
-
"
|
|
225
|
-
"
|
|
123
|
+
"name": "hover",
|
|
124
|
+
"trigger": "interaction"
|
|
226
125
|
},
|
|
227
126
|
{
|
|
228
|
-
"
|
|
229
|
-
"
|
|
127
|
+
"name": "down",
|
|
128
|
+
"trigger": "interaction"
|
|
230
129
|
},
|
|
231
130
|
{
|
|
232
|
-
"
|
|
233
|
-
"
|
|
234
|
-
}
|
|
235
|
-
{ "token": "disabled-content-color", "context": "Label (disabled)" },
|
|
236
|
-
{ "token": "focus-indicator-color", "context": "Focus indicator" }
|
|
131
|
+
"name": "keyboard-focus",
|
|
132
|
+
"trigger": "interaction"
|
|
133
|
+
}
|
|
237
134
|
],
|
|
135
|
+
"lifecycle": {
|
|
136
|
+
"introduced": "1.0.0-draft"
|
|
137
|
+
},
|
|
238
138
|
"accessibility": {
|
|
239
139
|
"role": "switch",
|
|
240
140
|
"intents": ["choose"],
|
|
241
141
|
"focusable": true,
|
|
242
142
|
"keyboardIntents": ["activate"],
|
|
243
143
|
"wcag": [
|
|
244
|
-
{
|
|
245
|
-
|
|
144
|
+
{
|
|
145
|
+
"criterion": "2.1.1",
|
|
146
|
+
"level": "A",
|
|
147
|
+
"title": "Keyboard"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"criterion": "4.1.2",
|
|
151
|
+
"level": "A",
|
|
152
|
+
"title": "Name, Role, Value"
|
|
153
|
+
}
|
|
246
154
|
]
|
|
247
155
|
}
|
|
248
156
|
}
|