@adobe/design-data-spec 0.3.0 → 0.5.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 +517 -0
- package/components/action-bar.json +203 -0
- package/components/action-button.json +481 -0
- package/components/action-group.json +82 -0
- package/components/alert-banner.json +111 -0
- package/components/alert-dialog.json +152 -0
- package/components/avatar-group.json +140 -0
- package/components/avatar.json +184 -0
- package/components/badge.json +502 -0
- package/components/body.json +29 -0
- package/components/bottom-navigation-android.json +41 -0
- package/components/breadcrumbs.json +263 -0
- package/components/button-group.json +47 -0
- package/components/button.json +466 -8
- package/components/calendar.json +104 -0
- package/components/cards.json +512 -0
- package/components/checkbox-group.json +54 -0
- package/components/checkbox.json +303 -0
- package/components/close-button.json +170 -0
- package/components/coach-indicator.json +76 -0
- package/components/coach-mark.json +157 -0
- package/components/code.json +25 -0
- package/components/color-area.json +115 -0
- package/components/color-handle.json +85 -0
- package/components/color-loupe.json +74 -0
- package/components/color-slider.json +121 -0
- package/components/color-wheel.json +94 -0
- package/components/combo-box.json +480 -0
- package/components/contextual-help.json +162 -0
- package/components/date-picker.json +439 -0
- package/components/detail.json +30 -0
- package/components/divider.json +73 -0
- package/components/drop-zone.json +211 -0
- package/components/field-label.json +189 -0
- package/components/heading.json +33 -0
- package/components/help-text.json +186 -0
- package/components/illustrated-message.json +155 -0
- package/components/in-field-progress-button.json +44 -0
- package/components/in-field-progress-circle.json +80 -0
- package/components/in-line-alert.json +201 -0
- package/components/link.json +135 -0
- package/components/list-view.json +355 -0
- package/components/menu.json +542 -0
- package/components/meter.json +162 -0
- package/components/number-field.json +468 -0
- package/components/opacity-checkerboard.json +43 -0
- package/components/picker.json +522 -0
- package/components/popover.json +119 -0
- package/components/progress-bar.json +182 -0
- package/components/progress-circle.json +99 -0
- package/components/radio-button.json +285 -0
- package/components/radio-group.json +63 -0
- package/components/rating.json +145 -0
- package/components/scroll-zoom-bar.json +53 -0
- package/components/search-field.json +306 -0
- package/components/segmented-control.json +210 -0
- package/components/select-box.json +248 -0
- package/components/side-navigation.json +293 -0
- package/components/slider.json +370 -0
- package/components/standard-dialog.json +151 -0
- package/components/standard-panel.json +53 -0
- package/components/status-light.json +272 -0
- package/components/steplist.json +270 -0
- package/components/swatch-group.json +62 -0
- package/components/swatch.json +193 -0
- package/components/switch.json +305 -0
- package/components/tab-bar-ios.json +41 -0
- package/components/table.json +392 -0
- package/components/tabs.json +229 -0
- package/components/tag-field.json +203 -0
- package/components/tag-group.json +53 -0
- package/components/tag.json +376 -0
- package/components/takeover-dialog.json +92 -0
- package/components/text-area.json +485 -0
- package/components/text-field.json +501 -0
- package/components/thumbnail.json +109 -0
- package/components/title.json +39 -0
- package/components/toast.json +131 -0
- package/components/tooltip.json +140 -0
- package/components/tray.json +21 -0
- package/components/tree-view.json +341 -0
- package/conformance/invalid/SPEC-027/dataset.json +25 -0
- package/conformance/invalid/SPEC-027/expected-errors.json +10 -0
- package/conformance/valid/token-bindings.json +27 -0
- package/package.json +2 -1
- package/rules/rules.yaml +9 -0
- package/schemas/component.schema.json +24 -2
- package/schemas/token.schema.json +27 -0
- package/spec/agent-surface.md +39 -9
- package/spec/component-format.md +41 -16
- package/spec/token-format.md +18 -0
- package/src/validate.js +27 -3
|
@@ -0,0 +1,303 @@
|
|
|
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/checkbox.json",
|
|
4
|
+
"specVersion": "1.0.0-draft",
|
|
5
|
+
"name": "checkbox",
|
|
6
|
+
"displayName": "Checkbox",
|
|
7
|
+
"description": "Checkboxes allow users to select multiple items from a list of individual items, or to mark one individual item as selected.",
|
|
8
|
+
"meta": {
|
|
9
|
+
"category": "inputs",
|
|
10
|
+
"documentationUrl": "https://spectrum.adobe.com/page/checkbox/"
|
|
11
|
+
},
|
|
12
|
+
"options": {
|
|
13
|
+
"label": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "When the label is not defined, the checkbox appears as a standalone checkbox."
|
|
16
|
+
},
|
|
17
|
+
"isSelected": {
|
|
18
|
+
"type": "boolean",
|
|
19
|
+
"default": false
|
|
20
|
+
},
|
|
21
|
+
"isIndeterminate": {
|
|
22
|
+
"type": "boolean",
|
|
23
|
+
"default": false,
|
|
24
|
+
"description": "When a checkbox is indeterminate, it overrides the selection state."
|
|
25
|
+
},
|
|
26
|
+
"size": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"enum": ["s", "m", "l", "xl"],
|
|
29
|
+
"default": "m"
|
|
30
|
+
},
|
|
31
|
+
"isEmphasized": {
|
|
32
|
+
"type": "boolean",
|
|
33
|
+
"default": false
|
|
34
|
+
},
|
|
35
|
+
"isDisabled": {
|
|
36
|
+
"type": "boolean",
|
|
37
|
+
"default": false
|
|
38
|
+
},
|
|
39
|
+
"isError": {
|
|
40
|
+
"type": "boolean",
|
|
41
|
+
"default": false
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"states": [
|
|
45
|
+
{
|
|
46
|
+
"name": "hover",
|
|
47
|
+
"trigger": "interaction"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"name": "down",
|
|
51
|
+
"trigger": "interaction"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "keyboard-focus",
|
|
55
|
+
"trigger": "interaction"
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
"lifecycle": {
|
|
59
|
+
"introduced": "1.0.0-draft"
|
|
60
|
+
},
|
|
61
|
+
"tokenBindings": [
|
|
62
|
+
{
|
|
63
|
+
"token": "checkbox-control-size-small",
|
|
64
|
+
"context": "S2 Control (size)"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"token": "checkbox-control-size-medium",
|
|
68
|
+
"context": "S2 Control (size)"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"token": "checkbox-control-size-large",
|
|
72
|
+
"context": "S2 Control (size)"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"token": "checkbox-control-size-extra-large",
|
|
76
|
+
"context": "S2 Control (size)"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"token": "checkbox-top-to-control-small",
|
|
80
|
+
"context": "S2 Spacing (top edge to control)"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"token": "checkbox-top-to-control-medium",
|
|
84
|
+
"context": "S2 Spacing (top edge to control)"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"token": "checkbox-top-to-control-large",
|
|
88
|
+
"context": "S2 Spacing (top edge to control)"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"token": "checkbox-top-to-control-extra-large",
|
|
92
|
+
"context": "S2 Spacing (top edge to control)"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"token": "neutral-background-color-selected-default",
|
|
96
|
+
"context": "S2 Control (selected, non emphasized)"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"token": "neutral-background-color-selected-hover",
|
|
100
|
+
"context": "S2 Control (selected, non emphasized)"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"token": "neutral-background-color-selected-key-focus",
|
|
104
|
+
"context": "S2 Control (selected, non emphasized)"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"token": "component-height-75",
|
|
108
|
+
"context": "Minimum height"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"token": "component-height-100",
|
|
112
|
+
"context": "Minimum height"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"token": "component-height-200",
|
|
116
|
+
"context": "Minimum height"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"token": "component-height-300",
|
|
120
|
+
"context": "Minimum height"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"token": "component-size-difference-down",
|
|
124
|
+
"context": "Component size (down)"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"token": "component-size-width-ratio-down",
|
|
128
|
+
"context": "Component size (down)"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"token": "component-size-minimum-perspective-down",
|
|
132
|
+
"context": "Component size (down)"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"token": "border-width-200",
|
|
136
|
+
"context": "Control (border)"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"token": "corner-radius-small-size-small",
|
|
140
|
+
"context": "Control (rounding)"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"token": "corner-radius-small-size-medium",
|
|
144
|
+
"context": "Control (rounding)"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"token": "corner-radius-small-size-large",
|
|
148
|
+
"context": "Control (rounding)"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"token": "corner-radius-small-size-extra-large",
|
|
152
|
+
"context": "Control (rounding)"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"token": "text-to-control-75",
|
|
156
|
+
"context": "Spacing (control to label)"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"token": "text-to-control-100",
|
|
160
|
+
"context": "Spacing (control to label)"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"token": "text-to-control-200",
|
|
164
|
+
"context": "Spacing (control to label)"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"token": "text-to-control-300",
|
|
168
|
+
"context": "Spacing (control to label)"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"token": "component-top-to-text-75",
|
|
172
|
+
"context": "Spacing (top/bottom edge to label)"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"token": "component-top-to-text-100",
|
|
176
|
+
"context": "Spacing (top/bottom edge to label)"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"token": "component-top-to-text-200",
|
|
180
|
+
"context": "Spacing (top/bottom edge to label)"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"token": "component-top-to-text-300",
|
|
184
|
+
"context": "Spacing (top/bottom edge to label)"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"token": "component-bottom-to-text-75",
|
|
188
|
+
"context": "Spacing (top/bottom edge to label)"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"token": "component-bottom-to-text-100",
|
|
192
|
+
"context": "Spacing (top/bottom edge to label)"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"token": "component-bottom-to-text-200",
|
|
196
|
+
"context": "Spacing (top/bottom edge to label)"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"token": "component-bottom-to-text-300",
|
|
200
|
+
"context": "Spacing (top/bottom edge to label)"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"token": "focus-indicator-thickness",
|
|
204
|
+
"context": "Focus ring"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"token": "focus-indicator-gap",
|
|
208
|
+
"context": "Focus ring"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"token": "spacing-300",
|
|
212
|
+
"context": "Checkbox group spacing (horizontal)"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"token": "neutral-content-color-default",
|
|
216
|
+
"context": "Label"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"token": "neutral-content-color-hover",
|
|
220
|
+
"context": "Label"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"token": "neutral-content-color-down",
|
|
224
|
+
"context": "Label"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"token": "neutral-content-color-key-focus",
|
|
228
|
+
"context": "Label"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"token": "gray-25",
|
|
232
|
+
"context": "Control"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"token": "accent-content-color-default",
|
|
236
|
+
"context": "Control (selected, emphasized)"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"token": "accent-content-color-hover",
|
|
240
|
+
"context": "Control (selected, emphasized)"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"token": "accent-content-color-down",
|
|
244
|
+
"context": "Control (selected, emphasized)"
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"token": "accent-content-color-key-focus",
|
|
248
|
+
"context": "Control (selected, emphasized)"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"token": "disabled-content-color",
|
|
252
|
+
"context": "Label (disabled)"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"token": "focus-indicator-color",
|
|
256
|
+
"context": "Focus ring"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"token": "negative-color-900",
|
|
260
|
+
"context": "Checkbox colors"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"token": "negative-color-1000",
|
|
264
|
+
"context": "Checkbox colors"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"token": "default-font-family",
|
|
268
|
+
"context": "Label"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"token": "regular-font-weight",
|
|
272
|
+
"context": "Label"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"token": "default-font-style",
|
|
276
|
+
"context": "Label"
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"token": "font-size-75",
|
|
280
|
+
"context": "Label"
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"token": "font-size-100",
|
|
284
|
+
"context": "Label"
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"token": "font-size-200",
|
|
288
|
+
"context": "Label"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"token": "font-size-300",
|
|
292
|
+
"context": "Label"
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"token": "line-height-100",
|
|
296
|
+
"context": "Label"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"token": "cjk-line-height-100",
|
|
300
|
+
"context": "Label"
|
|
301
|
+
}
|
|
302
|
+
]
|
|
303
|
+
}
|
|
@@ -0,0 +1,170 @@
|
|
|
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/close-button.json",
|
|
4
|
+
"specVersion": "1.0.0-draft",
|
|
5
|
+
"name": "close-button",
|
|
6
|
+
"displayName": "Close button",
|
|
7
|
+
"description": "The close button is used inside of other components, like a toast or an action bar, for closing or dismissing its parent component.",
|
|
8
|
+
"meta": {
|
|
9
|
+
"category": "actions",
|
|
10
|
+
"documentationUrl": "https://spectrum.adobe.com/page/close-button/"
|
|
11
|
+
},
|
|
12
|
+
"options": {
|
|
13
|
+
"size": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"enum": ["s", "m", "l", "xl"],
|
|
16
|
+
"default": "m"
|
|
17
|
+
},
|
|
18
|
+
"iconSize": {
|
|
19
|
+
"type": "string"
|
|
20
|
+
},
|
|
21
|
+
"staticColor": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"enum": ["white", "black"],
|
|
24
|
+
"description": "Static color must not be set for the default version of this component."
|
|
25
|
+
},
|
|
26
|
+
"isDisabled": {
|
|
27
|
+
"type": "boolean",
|
|
28
|
+
"default": false
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"states": [
|
|
32
|
+
{
|
|
33
|
+
"name": "hover",
|
|
34
|
+
"trigger": "interaction"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "down",
|
|
38
|
+
"trigger": "interaction"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "keyboard-focus",
|
|
42
|
+
"trigger": "interaction"
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"lifecycle": {
|
|
46
|
+
"introduced": "1.0.0-draft"
|
|
47
|
+
},
|
|
48
|
+
"tokenBindings": [
|
|
49
|
+
{
|
|
50
|
+
"token": "component-height-75",
|
|
51
|
+
"context": "Button size"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"token": "component-height-100",
|
|
55
|
+
"context": "Button size"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"token": "component-height-200",
|
|
59
|
+
"context": "Button size"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"token": "component-height-300",
|
|
63
|
+
"context": "Button size"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"token": "component-size-difference-down",
|
|
67
|
+
"context": "Button size (down)"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"token": "component-size-width-ratio-down",
|
|
71
|
+
"context": "Button size (down)"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"token": "component-size-minimum-perspective-down",
|
|
75
|
+
"context": "Button size (down)"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"token": "cross-icon-size-200",
|
|
79
|
+
"context": "Cross icon size"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"token": "cross-icon-size-300",
|
|
83
|
+
"context": "Cross icon size"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"token": "cross-icon-size-400",
|
|
87
|
+
"context": "Cross icon size"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"token": "cross-icon-size-500",
|
|
91
|
+
"context": "Cross icon size"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"token": "focus-indicator-thickness",
|
|
95
|
+
"context": "Focus ring "
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"token": "focus-indicator-gap",
|
|
99
|
+
"context": "Focus ring "
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"token": "neutral-content-color-default",
|
|
103
|
+
"context": "Cross icon"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"token": "neutral-content-color-hover",
|
|
107
|
+
"context": "Cross icon"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"token": "neutral-content-color-down",
|
|
111
|
+
"context": "Cross icon"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"token": "neutral-content-color-key-focus",
|
|
115
|
+
"context": "Cross icon"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"token": "disabled-content-color",
|
|
119
|
+
"context": "Cross icon"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"token": "focus-indicator-color",
|
|
123
|
+
"context": "Focus ring"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"token": "gray-100",
|
|
127
|
+
"context": "Background "
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"token": "transparent-white-800",
|
|
131
|
+
"context": "Cross icon (static white)"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"token": "transparent-white-900",
|
|
135
|
+
"context": "Cross icon (static white)"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"token": "disabled-static-white-background-color",
|
|
139
|
+
"context": "Cross icon (static white)"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"token": "static-white-focus-indicator-color",
|
|
143
|
+
"context": "Focus ring (static white)"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"token": "transparent-white-100",
|
|
147
|
+
"context": "Background (static white)"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"token": "transparent-black-800",
|
|
151
|
+
"context": "Cross icon (static black) "
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"token": "transparent-black-900",
|
|
155
|
+
"context": "Cross icon (static black) "
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"token": "disabled-static-black-background-color",
|
|
159
|
+
"context": "Cross icon (static black) "
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"token": "static-black-focus-indicator-color",
|
|
163
|
+
"context": "Focus ring (static black) "
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"token": "transparent-black-100",
|
|
167
|
+
"context": "Background (static black)"
|
|
168
|
+
}
|
|
169
|
+
]
|
|
170
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
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/coach-indicator.json",
|
|
4
|
+
"specVersion": "1.0.0-draft",
|
|
5
|
+
"name": "coach-indicator",
|
|
6
|
+
"displayName": "Coach indicator",
|
|
7
|
+
"description": "Coach indicators help guide users through interfaces by highlighting important areas or features during onboarding and feature discovery.",
|
|
8
|
+
"meta": {
|
|
9
|
+
"category": "feedback",
|
|
10
|
+
"documentationUrl": "https://spectrum.adobe.com/page/coach-indicator/"
|
|
11
|
+
},
|
|
12
|
+
"options": {
|
|
13
|
+
"cornerRounding": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"enum": [
|
|
16
|
+
"none",
|
|
17
|
+
"corner-radius-75",
|
|
18
|
+
"corner-radius-100",
|
|
19
|
+
"corner-radius-200",
|
|
20
|
+
"corner-radius-300",
|
|
21
|
+
"corner-radius-400",
|
|
22
|
+
"corner-radius-500",
|
|
23
|
+
"corner-radius-600",
|
|
24
|
+
"corner-radius-700",
|
|
25
|
+
"corner-radius-800",
|
|
26
|
+
"full"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
"staticColor": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"enum": ["white"],
|
|
32
|
+
"description": "If not set to white, the coach indicator uses the default color."
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"lifecycle": {
|
|
36
|
+
"introduced": "1.0.0-draft"
|
|
37
|
+
},
|
|
38
|
+
"tokenBindings": [
|
|
39
|
+
{
|
|
40
|
+
"token": "coach-indicator-collapsed-ring-thickness",
|
|
41
|
+
"context": "Ring"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"token": "coach-indicator-expanded-ring-thickness",
|
|
45
|
+
"context": "Ring"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"token": "coach-indicator-collapsed-gap",
|
|
49
|
+
"context": "Ring"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"token": "coach-indicator-expanded-gap",
|
|
53
|
+
"context": "Ring"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"token": "coach-indicator-collapsed-ring-rounding-increment",
|
|
57
|
+
"context": "Rounding"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"token": "coach-indicator-expanded-ring-rounding-increment",
|
|
61
|
+
"context": "Rounding"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"token": "coach-indicator-color",
|
|
65
|
+
"context": "Indicator (Default)"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"token": "coach-indicator-opacity",
|
|
69
|
+
"context": "Indicator (Default)"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"token": "white",
|
|
73
|
+
"context": "Indicator (Static white)"
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
}
|
|
@@ -0,0 +1,157 @@
|
|
|
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/coach-mark.json",
|
|
4
|
+
"specVersion": "1.0.0-draft",
|
|
5
|
+
"name": "coach-mark",
|
|
6
|
+
"displayName": "Coach mark",
|
|
7
|
+
"description": "Coach marks provide contextual guidance to users by highlighting specific interface elements.",
|
|
8
|
+
"meta": {
|
|
9
|
+
"category": "feedback",
|
|
10
|
+
"documentationUrl": "https://spectrum.adobe.com/page/coach-mark/"
|
|
11
|
+
},
|
|
12
|
+
"options": {
|
|
13
|
+
"title": {
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
"description": {
|
|
17
|
+
"type": "string"
|
|
18
|
+
},
|
|
19
|
+
"hideImage": {
|
|
20
|
+
"type": "boolean",
|
|
21
|
+
"default": false,
|
|
22
|
+
"description": "Optional image to display in dialog."
|
|
23
|
+
},
|
|
24
|
+
"actions": {
|
|
25
|
+
"type": "object",
|
|
26
|
+
"description": "Configuration for coach mark actions.",
|
|
27
|
+
"properties": {
|
|
28
|
+
"topActionLabel": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"description": "Optional action button displayed at the top, often for a menu."
|
|
31
|
+
},
|
|
32
|
+
"footerContent": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"description": "Optional footer content to display in the dialog footer like a checkbox."
|
|
35
|
+
},
|
|
36
|
+
"primaryActionLabel": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"description": "Label for the primary footer action."
|
|
39
|
+
},
|
|
40
|
+
"secondaryActionLabel": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"description": "Label for the secondary footer action (optional)."
|
|
43
|
+
},
|
|
44
|
+
"cancelActionLabel": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"default": "cancel",
|
|
47
|
+
"description": "Label for the cancel action (optional)."
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"lifecycle": {
|
|
53
|
+
"introduced": "1.0.0-draft"
|
|
54
|
+
},
|
|
55
|
+
"tokenBindings": [
|
|
56
|
+
{
|
|
57
|
+
"token": "coach-mark-width",
|
|
58
|
+
"context": "Width"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"token": "coach-mark-minimum-width",
|
|
62
|
+
"context": "Width"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"token": "coach-mark-maximum-width",
|
|
66
|
+
"context": "Width"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"token": "coach-mark-edge-to-content",
|
|
70
|
+
"context": "Spacing (top/bottom/start/end edge to text)"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"token": "spacing-200",
|
|
74
|
+
"context": "Spacing (header to body, body to footer)"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"token": "spacing-300",
|
|
78
|
+
"context": "Spacing (header to body, body to footer)"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"token": "coach-mark-pagination-text-to-bottom-edge",
|
|
82
|
+
"context": "Spacing (pagination to bottom)"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"token": "coach-mark-media-minimum-height",
|
|
86
|
+
"context": "Media (16:9)"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"token": "coach-mark-media-height",
|
|
90
|
+
"context": "Media (4:3)"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"token": "spacing-100",
|
|
94
|
+
"context": "Spacing (action button to menu)"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"token": "title-sans-serif-font-family",
|
|
98
|
+
"context": "Title"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"token": "title-sans-serif-font-weight",
|
|
102
|
+
"context": "Title"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"token": "title-serif-font-style",
|
|
106
|
+
"context": "Title"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"token": "coach-mark-title-font-size",
|
|
110
|
+
"context": "Title"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"token": "title-line-height",
|
|
114
|
+
"context": "Title"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"token": "body-sans-serif-font-family",
|
|
118
|
+
"context": "Body"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"token": "body-sans-serif-font-weight",
|
|
122
|
+
"context": "Body"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"token": "body-serif-font-style",
|
|
126
|
+
"context": "Body"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"token": "coach-mark-body-font-size",
|
|
130
|
+
"context": "Body"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"token": "line-height-200",
|
|
134
|
+
"context": "Body"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"token": "medium-font-weight",
|
|
138
|
+
"context": "Pagination"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"token": "coach-mark-pagination-body-font-size",
|
|
142
|
+
"context": "Pagination"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"token": "heading-color",
|
|
146
|
+
"context": "Color"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"token": "body-color",
|
|
150
|
+
"context": "Color"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"token": "coach-mark-pagination-color",
|
|
154
|
+
"context": "Color"
|
|
155
|
+
}
|
|
156
|
+
]
|
|
157
|
+
}
|