@adobe/spectrum-design-data 0.1.0 → 0.2.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 +557 -0
- package/components/action-bar.json +214 -0
- package/components/action-button.json +522 -0
- package/components/action-group.json +134 -0
- package/components/alert-banner.json +134 -0
- package/components/alert-dialog.json +180 -0
- package/components/avatar-group.json +166 -0
- package/components/avatar.json +246 -0
- package/components/badge.json +594 -0
- package/components/body.json +54 -0
- package/components/bottom-navigation-android.json +72 -0
- package/components/breadcrumbs.json +307 -0
- package/components/button-group.json +86 -0
- package/components/button.json +586 -0
- package/components/calendar.json +133 -0
- package/components/cards.json +541 -0
- package/components/checkbox-group.json +91 -0
- package/components/checkbox.json +339 -0
- package/components/close-button.json +208 -0
- package/components/coach-indicator.json +105 -0
- package/components/coach-mark.json +169 -0
- package/components/code.json +44 -0
- package/components/color-area.json +138 -0
- package/components/color-handle.json +111 -0
- package/components/color-loupe.json +77 -0
- package/components/color-slider.json +165 -0
- package/components/color-wheel.json +117 -0
- package/components/combo-box.json +543 -0
- package/components/contextual-help.json +230 -0
- package/components/date-picker.json +471 -0
- package/components/detail.json +53 -0
- package/components/divider.json +93 -0
- package/components/drop-zone.json +238 -0
- package/components/field-label.json +219 -0
- package/components/heading.json +68 -0
- package/components/help-text.json +209 -0
- package/components/illustrated-message.json +175 -0
- package/components/in-field-progress-button.json +88 -0
- package/components/in-field-progress-circle.json +116 -0
- package/components/in-line-alert.json +233 -0
- package/components/link.json +167 -0
- package/components/list-view.json +382 -0
- package/components/menu.json +597 -0
- package/components/meter.json +199 -0
- package/components/number-field.json +518 -0
- package/components/opacity-checkerboard.json +69 -0
- package/components/picker.json +579 -0
- package/components/popover.json +174 -0
- package/components/progress-bar.json +229 -0
- package/components/progress-circle.json +132 -0
- package/components/radio-button.json +308 -0
- package/components/radio-group.json +113 -0
- package/components/rating.json +168 -0
- package/components/scroll-zoom-bar.json +82 -0
- package/components/search-field.json +346 -0
- package/components/segmented-control.json +248 -0
- package/components/select-box.json +272 -0
- package/components/side-navigation.json +320 -0
- package/components/slider.json +407 -0
- package/components/standard-dialog.json +179 -0
- package/components/standard-panel.json +83 -0
- package/components/status-light.json +334 -0
- package/components/steplist.json +294 -0
- package/components/swatch-group.json +114 -0
- package/components/swatch.json +240 -0
- package/components/switch.json +336 -0
- package/components/tab-bar-ios.json +72 -0
- package/components/table.json +435 -0
- package/components/tabs.json +253 -0
- package/components/tag-field.json +243 -0
- package/components/tag-group.json +87 -0
- package/components/tag.json +393 -0
- package/components/takeover-dialog.json +117 -0
- package/components/text-area.json +555 -0
- package/components/text-field.json +555 -0
- package/components/thumbnail.json +149 -0
- package/components/title.json +91 -0
- package/components/toast.json +156 -0
- package/components/tooltip.json +179 -0
- package/components/tray.json +32 -0
- package/components/tree-view.json +393 -0
- package/fields/alignment.json +15 -0
- package/fields/anatomy.json +15 -0
- package/fields/color-scheme.json +15 -0
- package/fields/colorFamily.json +15 -0
- package/fields/component.json +15 -0
- package/fields/contrast.json +15 -0
- package/fields/density.json +15 -0
- package/fields/easing.json +15 -0
- package/fields/family.json +15 -0
- package/fields/motionRole.json +15 -0
- package/fields/object.json +15 -0
- package/fields/orientation.json +15 -0
- package/fields/position.json +15 -0
- package/fields/property.json +15 -0
- package/fields/scale.json +15 -0
- package/fields/scaleIndex.json +15 -0
- package/fields/shape.json +15 -0
- package/fields/size.json +15 -0
- package/fields/state.json +15 -0
- package/fields/structure.json +15 -0
- package/fields/style.json +15 -0
- package/fields/substructure.json +15 -0
- package/fields/variant.json +15 -0
- package/fields/weight.json +15 -0
- package/mode-sets/color-scheme.json +8 -0
- package/mode-sets/contrast.json +8 -0
- package/mode-sets/scale.json +8 -0
- package/package.json +41 -2
- package/registry/alignments.json +22 -0
- package/registry/anatomy-terms.json +739 -0
- package/registry/categories.json +55 -0
- package/registry/color-families.json +177 -0
- package/registry/components.json +277 -0
- package/registry/densities.json +17 -0
- package/registry/easing-curves.json +42 -0
- package/registry/glossary.json +181 -0
- package/registry/motion-roles.json +32 -0
- package/registry/navigation-terms.json +241 -0
- package/registry/orientations.json +17 -0
- package/registry/platform-extensions/ios-states.json +59 -0
- package/registry/platform-extensions/web-components-states.json +58 -0
- package/registry/platforms.json +37 -0
- package/registry/positions.json +32 -0
- package/registry/property-terms.json +212 -0
- package/registry/scale-values.json +126 -0
- package/registry/shapes.json +12 -0
- package/registry/sizes.json +71 -0
- package/registry/states.json +184 -0
- package/registry/structures.json +57 -0
- package/registry/substructures.json +12 -0
- package/registry/token-objects.json +32 -0
- package/registry/token-terminology.json +925 -0
- package/registry/typography-families.json +27 -0
- package/registry/typography-styles.json +22 -0
- package/registry/typography-weights.json +37 -0
- package/registry/variants.json +282 -0
- package/tokens/color-aliases.tokens.json +332 -328
- package/tokens/color-component.tokens.json +74 -74
- package/tokens/icons.tokens.json +191 -191
- package/tokens/layout-component.tokens.json +373 -316
- package/tokens/layout.tokens.json +110 -98
- package/tokens/semantic-color-palette.tokens.json +104 -104
- package/tokens/typography.tokens.json +233 -233
|
@@ -0,0 +1,253 @@
|
|
|
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/tabs.json",
|
|
4
|
+
"specVersion": "1.0.0-draft",
|
|
5
|
+
"name": "tabs",
|
|
6
|
+
"displayName": "Tabs",
|
|
7
|
+
"description": "Tabs organize content into multiple sections and allow users to navigate between them. The content under the set of tabs should be related and form a coherent unit.",
|
|
8
|
+
"meta": {
|
|
9
|
+
"category": "navigation",
|
|
10
|
+
"documentationUrl": "https://spectrum.adobe.com/page/tabs/"
|
|
11
|
+
},
|
|
12
|
+
"options": {
|
|
13
|
+
"orientation": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"default": "horizontal",
|
|
16
|
+
"values": [
|
|
17
|
+
{
|
|
18
|
+
"value": "horizontal"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"value": "vertical"
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
"items": {
|
|
26
|
+
"type": "array",
|
|
27
|
+
"description": "An array of tab items.",
|
|
28
|
+
"items": {
|
|
29
|
+
"type": "object",
|
|
30
|
+
"properties": {
|
|
31
|
+
"label": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"description": "The text displayed for the tab item."
|
|
34
|
+
},
|
|
35
|
+
"isDisabled": {
|
|
36
|
+
"type": "boolean",
|
|
37
|
+
"default": false,
|
|
38
|
+
"description": "Whether the tab is disabled."
|
|
39
|
+
},
|
|
40
|
+
"state": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"enum": ["default", "hover", "keyboard focus"],
|
|
43
|
+
"default": "default",
|
|
44
|
+
"description": "The interaction state of the tab item."
|
|
45
|
+
},
|
|
46
|
+
"contentVariant": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"enum": ["label-only", "icon-only", "icon-label"],
|
|
49
|
+
"default": "icon-label",
|
|
50
|
+
"description": "Controls whether the tab displays a label, an icon, or both."
|
|
51
|
+
},
|
|
52
|
+
"density": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"enum": ["compact", "regular"],
|
|
55
|
+
"default": "regular"
|
|
56
|
+
},
|
|
57
|
+
"isFluid": {
|
|
58
|
+
"type": "boolean",
|
|
59
|
+
"default": false,
|
|
60
|
+
"description": "This overrides density and is only applicable to horizontal tabs."
|
|
61
|
+
},
|
|
62
|
+
"isEmphasized": {
|
|
63
|
+
"type": "boolean",
|
|
64
|
+
"default": false
|
|
65
|
+
},
|
|
66
|
+
"alignment": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"enum": ["start", "center"],
|
|
69
|
+
"default": "start"
|
|
70
|
+
},
|
|
71
|
+
"selectedItem": {
|
|
72
|
+
"description": "(list of available items)"
|
|
73
|
+
},
|
|
74
|
+
"keyboardActivation": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"enum": ["manual", "automatic"],
|
|
77
|
+
"default": "manual"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"lifecycle": {
|
|
84
|
+
"introduced": "1.0.0-draft"
|
|
85
|
+
},
|
|
86
|
+
"tokenBindings": [
|
|
87
|
+
{
|
|
88
|
+
"token": "tab-item-compact-height-medium",
|
|
89
|
+
"context": "Height "
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"token": "tab-item-height-medium",
|
|
93
|
+
"context": "Regular density "
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"token": "corner-radius-0",
|
|
97
|
+
"context": "Corner radius"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"token": "workflow-icon-size-100",
|
|
101
|
+
"context": "Icon "
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"token": "text-to-visual-100",
|
|
105
|
+
"context": "Spacing (icon to label)"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"token": "tab-item-top-to-workflow-icon-compact-medium",
|
|
109
|
+
"context": "Spacing (top/bottom to edge, workflow icon only)"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"token": "tab-item-top-to-workflow-icon-medium",
|
|
113
|
+
"context": "Spacing (top/bottom to edge, workflow icon only)"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"token": "tab-item-side-to-workflow-icon-compact-medium",
|
|
117
|
+
"context": "Spacing (side to edge, workflow icon only)"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"token": "tab-item-side-to-workflow-icon-medium",
|
|
121
|
+
"context": "Spacing (side to edge, workflow icon only)"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"token": "spacing-100",
|
|
125
|
+
"context": "Spacing (edge to edge)"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"token": "tab-item-top-to-text-compact-medium",
|
|
129
|
+
"context": "Spacing (top edge to label)"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"token": "tab-item-top-to-text-medium",
|
|
133
|
+
"context": "Spacing (top edge to label)"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"token": "tab-item-bottom-to-text-compact-medium",
|
|
137
|
+
"context": "Spacing (bottom edge to label)"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"token": "tab-item-bottom-to-text-medium",
|
|
141
|
+
"context": "Spacing (bottom edge to label)"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"token": "tab-item-to-tab-item-compact-horizontal-medium",
|
|
145
|
+
"context": "Spacing (between tab items, horizontal)"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"token": "tab-item-to-tab-item-horizontal-medium",
|
|
149
|
+
"context": "Spacing (between tab items, horizontal)"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"token": "focus-indicator-thickness",
|
|
153
|
+
"context": "Focus ring"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"token": "focus-indicator-gap",
|
|
157
|
+
"context": "Focus ring"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"token": "tab-selection-indicator-thickness",
|
|
161
|
+
"context": "Selection indicator (underline)"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"token": "spacing-75",
|
|
165
|
+
"context": "Spacing (selected) "
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"token": "spacing-200",
|
|
169
|
+
"context": "Spacing (selected) "
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"token": "spacing-50",
|
|
173
|
+
"context": "Spacing (selected with keyboard focus) "
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"token": "neutral-content-color-default",
|
|
177
|
+
"context": "Tab items and selection indicator"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"token": "neutral-content-color-hover",
|
|
181
|
+
"context": "Tab items and selection indicator"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"token": "neutral-content-color-key-focus",
|
|
185
|
+
"context": "Tab items and selection indicator"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"token": "neutral-subdued-content-color-default",
|
|
189
|
+
"context": "Tab items and selection indicator"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"token": "neutral-subdued-content-color-hover",
|
|
193
|
+
"context": "Tab items and selection indicator"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"token": "neutral-subdued-content-color-key-focus",
|
|
197
|
+
"context": "Tab items and selection indicator"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"token": "disabled-border-color",
|
|
201
|
+
"context": "Disabled"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"token": "disabled-content-color",
|
|
205
|
+
"context": "Disabled"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"token": "focus-indicator-color",
|
|
209
|
+
"context": "Focus ring"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"token": "default-font-family"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"token": "default-font-style"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"token": "regular-font-weight"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"token": "font-size-75"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"token": "font-size-100"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"token": "font-size-200"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"token": "font-size-300"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"token": "line-height-100"
|
|
234
|
+
}
|
|
235
|
+
],
|
|
236
|
+
"accessibility": {
|
|
237
|
+
"intents": ["navigate"],
|
|
238
|
+
"focusable": true,
|
|
239
|
+
"keyboardIntents": ["navigate-items"],
|
|
240
|
+
"wcag": [
|
|
241
|
+
{
|
|
242
|
+
"criterion": "2.1.1",
|
|
243
|
+
"level": "A",
|
|
244
|
+
"title": "Keyboard"
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"criterion": "4.1.2",
|
|
248
|
+
"level": "A",
|
|
249
|
+
"title": "Name, Role, Value"
|
|
250
|
+
}
|
|
251
|
+
]
|
|
252
|
+
}
|
|
253
|
+
}
|
|
@@ -0,0 +1,243 @@
|
|
|
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/tag-field.json",
|
|
4
|
+
"specVersion": "1.0.0-draft",
|
|
5
|
+
"name": "tag-field",
|
|
6
|
+
"displayName": "Tag field",
|
|
7
|
+
"description": "A tag field is an input field that allows users to enter and manage tags.",
|
|
8
|
+
"meta": {
|
|
9
|
+
"category": "inputs",
|
|
10
|
+
"documentationUrl": "https://spectrum.adobe.com/page/tag-field/"
|
|
11
|
+
},
|
|
12
|
+
"options": {
|
|
13
|
+
"size": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"default": "m",
|
|
16
|
+
"values": [
|
|
17
|
+
{
|
|
18
|
+
"value": "s"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"value": "m"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"value": "l"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
"style": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"default": "keyword",
|
|
31
|
+
"values": [
|
|
32
|
+
{
|
|
33
|
+
"value": "keyword"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"value": "icon"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"value": "thumbnail"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"value": "avatar"
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
"isDisabled": {
|
|
47
|
+
"type": "boolean",
|
|
48
|
+
"default": false
|
|
49
|
+
},
|
|
50
|
+
"hideLabel": {
|
|
51
|
+
"type": "boolean",
|
|
52
|
+
"default": false
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"states": [
|
|
56
|
+
{
|
|
57
|
+
"name": "hover",
|
|
58
|
+
"trigger": "interaction"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"name": "focus-+-hover",
|
|
62
|
+
"trigger": "prop"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "focus-+-not-hover",
|
|
66
|
+
"trigger": "prop"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "keyboard-focus",
|
|
70
|
+
"trigger": "interaction"
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
"lifecycle": {
|
|
74
|
+
"introduced": "1.0.0-draft"
|
|
75
|
+
},
|
|
76
|
+
"tokenBindings": [
|
|
77
|
+
{
|
|
78
|
+
"token": "tag-field-default-width-small",
|
|
79
|
+
"context": "Width (default)"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"token": "tag-field-default-width-medium",
|
|
83
|
+
"context": "Width (default)"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"token": "tag-field-default-width-large",
|
|
87
|
+
"context": "Width (default)"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"token": "tag-field-minimum-width",
|
|
91
|
+
"context": "Width (minimum)"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"token": "tag-field-minimum-height-small",
|
|
95
|
+
"context": "Height (minimum)"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"token": "tag-field-minimum-height-medium",
|
|
99
|
+
"context": "Height (minimum)"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"token": "tag-field-minimum-height-large",
|
|
103
|
+
"context": "Height (minimum)"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"token": "corner-radius-medium-size-small",
|
|
107
|
+
"context": "Rounding"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"token": "corner-radius-medium-size-medium",
|
|
111
|
+
"context": "Rounding"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"token": "corner-radius-medium-size-large",
|
|
115
|
+
"context": "Rounding"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"token": "border-width-200",
|
|
119
|
+
"context": "Border"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"token": "focus-indicator-thickness",
|
|
123
|
+
"context": "Focus indicator"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"token": "workflow-icon-size-75",
|
|
127
|
+
"context": "Alert icon"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"token": "workflow-icon-size-100",
|
|
131
|
+
"context": "Alert icon"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"token": "workflow-icon-size-200",
|
|
135
|
+
"context": "Alert icon"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"token": "field-edge-to-alert-icon-small",
|
|
139
|
+
"context": "Spacing (top/bottom edge to alert icon)"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"token": "field-edge-to-alert-icon-medium",
|
|
143
|
+
"context": "Spacing (top/bottom edge to alert icon)"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"token": "field-edge-to-alert-icon-large",
|
|
147
|
+
"context": "Spacing (top/bottom edge to alert icon)"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"token": "field-label-to-component",
|
|
151
|
+
"context": "Spacing (field label to tag field)"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"token": "tag-field-edge-to-content-small",
|
|
155
|
+
"context": "Spacing (edge to tag group)"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"token": "tag-field-edge-to-content-medium",
|
|
159
|
+
"context": "Spacing (edge to tag group)"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"token": "tag-field-edge-to-content-large",
|
|
163
|
+
"context": "Spacing (edge to tag group)"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"token": "help-text-to-component",
|
|
167
|
+
"context": "Spacing (tag field to help text)"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"token": "spacing-200",
|
|
171
|
+
"context": "Spacing (minimum, field label to field)"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"token": "gray-25",
|
|
175
|
+
"context": "Background and border"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"token": "gray-300",
|
|
179
|
+
"context": "Background and border"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"token": "gray-400",
|
|
183
|
+
"context": "Background and border"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"token": "gray-900",
|
|
187
|
+
"context": "Background and border"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"token": "gray-800",
|
|
191
|
+
"context": "Background and border"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"token": "negative-border-color-default",
|
|
195
|
+
"context": "Border (error)"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"token": "negative-border-color-hover",
|
|
199
|
+
"context": "Border (error)"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"token": "negative-border-color-focus-hover",
|
|
203
|
+
"context": "Border (error)"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"token": "negative-border-color-focus",
|
|
207
|
+
"context": "Border (error)"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"token": "negative-border-color-key-focus",
|
|
211
|
+
"context": "Border (error)"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"token": "negative-visual-color",
|
|
215
|
+
"context": "Alert icon"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"token": "disabled-border-color",
|
|
219
|
+
"context": "Disabled"
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"token": "focus-indicator-color",
|
|
223
|
+
"context": "Focus ring"
|
|
224
|
+
}
|
|
225
|
+
],
|
|
226
|
+
"accessibility": {
|
|
227
|
+
"intents": ["input", "select"],
|
|
228
|
+
"focusable": true,
|
|
229
|
+
"keyboardIntents": ["navigate-items", "activate"],
|
|
230
|
+
"wcag": [
|
|
231
|
+
{
|
|
232
|
+
"criterion": "1.3.1",
|
|
233
|
+
"level": "A",
|
|
234
|
+
"title": "Info and Relationships"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"criterion": "4.1.2",
|
|
238
|
+
"level": "A",
|
|
239
|
+
"title": "Name, Role, Value"
|
|
240
|
+
}
|
|
241
|
+
]
|
|
242
|
+
}
|
|
243
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
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/tag-group.json",
|
|
4
|
+
"specVersion": "1.0.0-draft",
|
|
5
|
+
"name": "tag-group",
|
|
6
|
+
"displayName": "Tag group",
|
|
7
|
+
"description": "A tag group is a collection of tags that represent a set of related items.",
|
|
8
|
+
"meta": {
|
|
9
|
+
"category": "inputs",
|
|
10
|
+
"documentationUrl": "https://spectrum.adobe.com/page/tag-group/"
|
|
11
|
+
},
|
|
12
|
+
"options": {
|
|
13
|
+
"size": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"default": "m",
|
|
16
|
+
"values": [
|
|
17
|
+
{
|
|
18
|
+
"value": "s"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"value": "m"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"value": "l"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
"labelPosition": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"default": "top",
|
|
31
|
+
"values": [
|
|
32
|
+
{
|
|
33
|
+
"value": "top"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"value": "side"
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"hideLabel": {
|
|
41
|
+
"type": "boolean",
|
|
42
|
+
"default": false
|
|
43
|
+
},
|
|
44
|
+
"actionLabel": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"description": "If undefined, this button does not appear."
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"lifecycle": {
|
|
50
|
+
"introduced": "1.0.0-draft"
|
|
51
|
+
},
|
|
52
|
+
"tokenBindings": [
|
|
53
|
+
{
|
|
54
|
+
"token": "spacing-100",
|
|
55
|
+
"context": "Spacing (vertical)"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"token": "spacing-200",
|
|
59
|
+
"context": "Spacing (vertical)"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"token": "field-label-to-component",
|
|
63
|
+
"context": "Spacing (Field label to Tags)"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"token": "help-text-to-component",
|
|
67
|
+
"context": "Spacing (Text area to Help text)"
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
|
+
"accessibility": {
|
|
71
|
+
"intents": ["select"],
|
|
72
|
+
"focusable": true,
|
|
73
|
+
"keyboardIntents": ["navigate-items", "activate"],
|
|
74
|
+
"wcag": [
|
|
75
|
+
{
|
|
76
|
+
"criterion": "1.3.1",
|
|
77
|
+
"level": "A",
|
|
78
|
+
"title": "Info and Relationships"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"criterion": "4.1.2",
|
|
82
|
+
"level": "A",
|
|
83
|
+
"title": "Name, Role, Value"
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
}
|