@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,211 @@
|
|
|
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/drop-zone.json",
|
|
4
|
+
"specVersion": "1.0.0-draft",
|
|
5
|
+
"name": "drop-zone",
|
|
6
|
+
"displayName": "Drop zone",
|
|
7
|
+
"description": "A drop zone allows users to drag and drop files or other content into a designated area.",
|
|
8
|
+
"meta": {
|
|
9
|
+
"category": "inputs",
|
|
10
|
+
"documentationUrl": "https://spectrum.adobe.com/page/drop-zone/"
|
|
11
|
+
},
|
|
12
|
+
"options": {
|
|
13
|
+
"accept": {
|
|
14
|
+
"type": "array",
|
|
15
|
+
"items": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "File types that are accepted by the drop zone."
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"size": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"enum": ["s", "m", "l"],
|
|
23
|
+
"default": "m"
|
|
24
|
+
},
|
|
25
|
+
"actionLabel": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"description": "If undefined, this button does not appear."
|
|
28
|
+
},
|
|
29
|
+
"onDrop": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"description": "Callback function called when files are dropped onto the drop zone."
|
|
32
|
+
},
|
|
33
|
+
"onDragOver": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"description": "Callback function called when a file is dragged over the drop zone."
|
|
36
|
+
},
|
|
37
|
+
"onDragLeave": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"description": "Callback function called when a file is dragged out of the drop zone."
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"lifecycle": {
|
|
43
|
+
"introduced": "1.0.0-draft"
|
|
44
|
+
},
|
|
45
|
+
"tokenBindings": [
|
|
46
|
+
{
|
|
47
|
+
"token": "drop-zone-width",
|
|
48
|
+
"context": "Component width"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"token": "spacing-400",
|
|
52
|
+
"context": "Padding"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"token": "drop-zone-content-maximum-width",
|
|
56
|
+
"context": "Content width (maximum)"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"token": "border-width-200",
|
|
60
|
+
"context": "Border width and corner radius"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"token": "corner-radius-700",
|
|
64
|
+
"context": "Border width and corner radius"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"token": "drop-zone-border-dash-length",
|
|
68
|
+
"context": "Border width and corner radius"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"token": "drop-zone-border-dash-gap",
|
|
72
|
+
"context": "Border width and corner radius"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"token": "spacing-200",
|
|
76
|
+
"context": "Spacing (illustration to title area) "
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"token": "spacing-75",
|
|
80
|
+
"context": "Spacing (title area to body area) "
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"token": "spacing-300",
|
|
84
|
+
"context": "Spacing (body area to action) "
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"token": "component-height-300",
|
|
88
|
+
"context": "Text area (filled, hover)"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"token": "component-edge-to-text-300",
|
|
92
|
+
"context": "Text area (filled, hover)"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"token": "component-top",
|
|
96
|
+
"context": "Text area (filled, hover)"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"token": "text-300",
|
|
100
|
+
"context": "Text area (filled, hover)"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"token": "component-bottom-to-text-300",
|
|
104
|
+
"context": "Text area (filled, hover)"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"token": "title-sans-serif-font-family",
|
|
108
|
+
"context": "Title area and body area"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"token": "title-sans-serif-font-weight",
|
|
112
|
+
"context": "Title area and body area"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"token": "title-sans-serif-font-style",
|
|
116
|
+
"context": "Title area and body area"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"token": "drop-zone-title-font-size",
|
|
120
|
+
"context": "Title area and body area"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"token": "drop-zone-cjk-title-font-size",
|
|
124
|
+
"context": "Title area and body area"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"token": "title-line-height",
|
|
128
|
+
"context": "Title area and body area"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"token": "body-sans-serif-font-family",
|
|
132
|
+
"context": "Title area and body area"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"token": "body-sans-serif-font-weight",
|
|
136
|
+
"context": "Title area and body area"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"token": "body-sans-serif-font-style",
|
|
140
|
+
"context": "Title area and body area"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"token": "drop-zone-body-font-size",
|
|
144
|
+
"context": "Title area and body area"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"token": "body-line-height",
|
|
148
|
+
"context": "Title area and body area"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"token": "sans-serif-font-family",
|
|
152
|
+
"context": "Title area and body area"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"token": "bold-font-weight",
|
|
156
|
+
"context": "Title area and body area"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"token": "default-font-size",
|
|
160
|
+
"context": "Title area and body area"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"token": "font-size-300",
|
|
164
|
+
"context": "Title area and body area"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"token": "line-height-100",
|
|
168
|
+
"context": "Title area and body area"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"token": "grey-300",
|
|
172
|
+
"context": "Border color"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"token": "neutral-content-color-default",
|
|
176
|
+
"context": "Illustration color"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"token": "accent-content-color",
|
|
180
|
+
"context": "Illustration color"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"token": "heading-color",
|
|
184
|
+
"context": "Title and body color"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"token": "body-color",
|
|
188
|
+
"context": "Title and body color"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"token": "accent-visual-color",
|
|
192
|
+
"context": "Border and background color (empty, hover)"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"token": "drop-zone-background-color",
|
|
196
|
+
"context": "Border and background color (empty, hover)"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"token": "drop-zone-background-color-opacity",
|
|
200
|
+
"context": "Border and background color (empty, hover)"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"token": "drop-zone-background-color-opacity-indicatored",
|
|
204
|
+
"context": "Border, background, and text area color (filled, hover)"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"token": "white",
|
|
208
|
+
"context": "Border, background, and text area color (filled, hover)"
|
|
209
|
+
}
|
|
210
|
+
]
|
|
211
|
+
}
|
|
@@ -0,0 +1,189 @@
|
|
|
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/field-label.json",
|
|
4
|
+
"specVersion": "1.0.0-draft",
|
|
5
|
+
"name": "field-label",
|
|
6
|
+
"displayName": "Field label",
|
|
7
|
+
"description": "Field labels give context to the information that a user needs to input. They're commonly used in forms.",
|
|
8
|
+
"meta": {
|
|
9
|
+
"category": "inputs",
|
|
10
|
+
"documentationUrl": "https://spectrum.adobe.com/page/field-label/"
|
|
11
|
+
},
|
|
12
|
+
"options": {
|
|
13
|
+
"label": {
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
"labelPosition": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"enum": ["top", "side"],
|
|
19
|
+
"default": "top"
|
|
20
|
+
},
|
|
21
|
+
"size": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"enum": ["s", "m", "l", "xl"],
|
|
24
|
+
"default": "m"
|
|
25
|
+
},
|
|
26
|
+
"necessityIndicator": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"enum": ["text", "icon"],
|
|
29
|
+
"default": "icon"
|
|
30
|
+
},
|
|
31
|
+
"isRequired": {
|
|
32
|
+
"type": "boolean",
|
|
33
|
+
"default": false
|
|
34
|
+
},
|
|
35
|
+
"isDisabled": {
|
|
36
|
+
"type": "boolean",
|
|
37
|
+
"default": false
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"lifecycle": {
|
|
41
|
+
"introduced": "1.0.0-draft"
|
|
42
|
+
},
|
|
43
|
+
"tokenBindings": [
|
|
44
|
+
{
|
|
45
|
+
"token": "component-height-75",
|
|
46
|
+
"context": "Minimum height"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"token": "component-height-100",
|
|
50
|
+
"context": "Minimum height"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"token": "component-height-200",
|
|
54
|
+
"context": "Minimum height"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"token": "component-height-300",
|
|
58
|
+
"context": "Minimum height"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"token": "field-label-text-to-asterisk-small",
|
|
62
|
+
"context": "Spacing (label to asterisk icon)"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"token": "field-label-text-to-asterisk-medium",
|
|
66
|
+
"context": "Spacing (label to asterisk icon)"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"token": "field-label-text-to-asterisk-large",
|
|
70
|
+
"context": "Spacing (label to asterisk icon)"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"token": "field-label-text-to-asterisk-extra-large",
|
|
74
|
+
"context": "Spacing (label to asterisk icon)"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"token": "field-label-top-to-asterisk-small",
|
|
78
|
+
"context": "Spacing (top edge to asterisk icon)"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"token": "field-label-top-to-asterisk-medium",
|
|
82
|
+
"context": "Spacing (top edge to asterisk icon)"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"token": "field-label-top-to-asterisk-large",
|
|
86
|
+
"context": "Spacing (top edge to asterisk icon)"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"token": "field-label-top-to-asterisk-extra-large",
|
|
90
|
+
"context": "Spacing (top edge to asterisk icon)"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"token": "component-top-to-text-75",
|
|
94
|
+
"context": "Spacing (top/bottom edge to label)"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"token": "component-top-to-text-100",
|
|
98
|
+
"context": "Spacing (top/bottom edge to label)"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"token": "component-top-to-text-200",
|
|
102
|
+
"context": "Spacing (top/bottom edge to label)"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"token": "component-top-to-text-300",
|
|
106
|
+
"context": "Spacing (top/bottom edge to label)"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"token": "component-bottom-to-text-75",
|
|
110
|
+
"context": "Spacing (top/bottom edge to label)"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"token": "component-bottom-to-text-100",
|
|
114
|
+
"context": "Spacing (top/bottom edge to label)"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"token": "component-bottom-to-text-200",
|
|
118
|
+
"context": "Spacing (top/bottom edge to label)"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"token": "component-bottom-to-text-300",
|
|
122
|
+
"context": "Spacing (top/bottom edge to label)"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"token": "asterisk-icon-size-100",
|
|
126
|
+
"context": "Asterisk UI icon asset"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"token": "asterisk-icon-size-200",
|
|
130
|
+
"context": "Asterisk UI icon asset"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"token": "asterisk-icon-size-300",
|
|
134
|
+
"context": "Asterisk UI icon asset"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"token": "neutral-subdued-content-color-default",
|
|
138
|
+
"context": "Label and asterisk icon"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"token": "disabled-content-color",
|
|
142
|
+
"context": "Label and asterisk icon (disabled)"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"token": "white",
|
|
146
|
+
"context": "Label and asterisk icon (white)"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"token": "black",
|
|
150
|
+
"context": "Label and asterisk icon (black)"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"token": "default-font-family",
|
|
154
|
+
"context": "Label"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"token": "regular-font-weight",
|
|
158
|
+
"context": "Label"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"token": "default-font-style",
|
|
162
|
+
"context": "Label"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"token": "font-size-75",
|
|
166
|
+
"context": "Label"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"token": "font-size-100",
|
|
170
|
+
"context": "Label"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"token": "font-size-200",
|
|
174
|
+
"context": "Label"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"token": "font-size-300",
|
|
178
|
+
"context": "Label"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"token": "line-height-100",
|
|
182
|
+
"context": "Label"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"token": "cjk-line-height-100",
|
|
186
|
+
"context": "Label"
|
|
187
|
+
}
|
|
188
|
+
]
|
|
189
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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/heading.json",
|
|
4
|
+
"specVersion": "1.0.0-draft",
|
|
5
|
+
"name": "heading",
|
|
6
|
+
"displayName": "Heading",
|
|
7
|
+
"description": "Heading is a typography component used to create various levels of hierarchies between text.",
|
|
8
|
+
"meta": {
|
|
9
|
+
"category": "typography",
|
|
10
|
+
"documentationUrl": "https://spectrum.adobe.com/page/heading/"
|
|
11
|
+
},
|
|
12
|
+
"options": {
|
|
13
|
+
"script": {
|
|
14
|
+
"$ref": "https://opensource.adobe.com/spectrum-design-data/schemas/types/typography-script.json"
|
|
15
|
+
},
|
|
16
|
+
"classification": {
|
|
17
|
+
"$ref": "https://opensource.adobe.com/spectrum-design-data/schemas/types/typography-classification.json"
|
|
18
|
+
},
|
|
19
|
+
"weight": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"enum": ["light", "default", "heavy"],
|
|
22
|
+
"default": "default"
|
|
23
|
+
},
|
|
24
|
+
"size": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"enum": ["xs", "s", "m", "l", "xl", "xxl", "xxxl"],
|
|
27
|
+
"default": "m"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"lifecycle": {
|
|
31
|
+
"introduced": "1.0.0-draft"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,186 @@
|
|
|
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/help-text.json",
|
|
4
|
+
"specVersion": "1.0.0-draft",
|
|
5
|
+
"name": "help-text",
|
|
6
|
+
"displayName": "Help text",
|
|
7
|
+
"description": "Help text provides either an informative description or an error message that gives more context about what a user needs to input. It’s commonly used in forms.",
|
|
8
|
+
"meta": {
|
|
9
|
+
"category": "inputs",
|
|
10
|
+
"documentationUrl": "https://spectrum.adobe.com/page/help-text/"
|
|
11
|
+
},
|
|
12
|
+
"options": {
|
|
13
|
+
"text": {
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
"variant": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"enum": ["neutral", "negative"],
|
|
19
|
+
"default": "neutral"
|
|
20
|
+
},
|
|
21
|
+
"hideIcon": {
|
|
22
|
+
"type": "boolean",
|
|
23
|
+
"default": false,
|
|
24
|
+
"description": "Only applicable if variant is negative."
|
|
25
|
+
},
|
|
26
|
+
"size": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"enum": ["s", "m", "l", "xl"],
|
|
29
|
+
"default": "m"
|
|
30
|
+
},
|
|
31
|
+
"isDisabled": {
|
|
32
|
+
"type": "boolean",
|
|
33
|
+
"default": false,
|
|
34
|
+
"description": "Help text cannot be both disabled and negative variant."
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"lifecycle": {
|
|
38
|
+
"introduced": "1.0.0-draft"
|
|
39
|
+
},
|
|
40
|
+
"tokenBindings": [
|
|
41
|
+
{
|
|
42
|
+
"token": "component-height-75",
|
|
43
|
+
"context": "Minimum Height"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"token": "component-height-100",
|
|
47
|
+
"context": "Minimum Height"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"token": "component-height-200",
|
|
51
|
+
"context": "Minimum Height"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"token": "component-height-300",
|
|
55
|
+
"context": "Minimum Height"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"token": "workflow-icon-size-75",
|
|
59
|
+
"context": "Icon size"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"token": "workflow-icon-size-100",
|
|
63
|
+
"context": "Icon size"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"token": "workflow-icon-size-200",
|
|
67
|
+
"context": "Icon size"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"token": "workflow-icon-size-300",
|
|
71
|
+
"context": "Icon size"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"token": "text-to-visual-75",
|
|
75
|
+
"context": "Spacing (alert icon to text)"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"token": "text-to-visual-100",
|
|
79
|
+
"context": "Spacing (alert icon to text)"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"token": "text-to-visual-200",
|
|
83
|
+
"context": "Spacing (alert icon to text)"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"token": "text-to-visual-300",
|
|
87
|
+
"context": "Spacing (alert icon to text)"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"token": "component-top-to-workflow-icon-75",
|
|
91
|
+
"context": "Spacing (top/bottom edge to icon)"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"token": "component-top-to-workflow-icon-100",
|
|
95
|
+
"context": "Spacing (top/bottom edge to icon)"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"token": "component-top-to-workflow-icon-200",
|
|
99
|
+
"context": "Spacing (top/bottom edge to icon)"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"token": "component-top-to-workflow-icon-300",
|
|
103
|
+
"context": "Spacing (top/bottom edge to icon)"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"token": "component-top-to-text-75",
|
|
107
|
+
"context": "Spacing (top/bottom edge to text)"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"token": "component-top-to-text-100",
|
|
111
|
+
"context": "Spacing (top/bottom edge to text)"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"token": "component-top-to-text-200",
|
|
115
|
+
"context": "Spacing (top/bottom edge to text)"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"token": "component-top-to-text-300",
|
|
119
|
+
"context": "Spacing (top/bottom edge to text)"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"token": "component-bottom-to-text-75",
|
|
123
|
+
"context": "Spacing (top/bottom edge to text)"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"token": "component-bottom-to-text-100",
|
|
127
|
+
"context": "Spacing (top/bottom edge to text)"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"token": "component-bottom-to-text-200",
|
|
131
|
+
"context": "Spacing (top/bottom edge to text)"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"token": "component-bottom-to-text-300",
|
|
135
|
+
"context": "Spacing (top/bottom edge to text)"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"token": "neutral-subdued-content-color-default",
|
|
139
|
+
"context": "Text"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"token": "disabled-content-color-default",
|
|
143
|
+
"context": "Text and alert icon (disabled)"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"token": "negative-content-color-default",
|
|
147
|
+
"context": "Text and alert icon (warning)"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"token": "default-font-family",
|
|
151
|
+
"context": "Text"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"token": "regular-font-weight",
|
|
155
|
+
"context": "Text"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"token": "default-font-style",
|
|
159
|
+
"context": "Text"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"token": "font-size-75",
|
|
163
|
+
"context": "Text"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"token": "font-size-100",
|
|
167
|
+
"context": "Text"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"token": "font-size-200",
|
|
171
|
+
"context": "Text"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"token": "font-size-300",
|
|
175
|
+
"context": "Text"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"token": "line-height-100",
|
|
179
|
+
"context": "Text"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"token": "cjk-line-height-100",
|
|
183
|
+
"context": "Text"
|
|
184
|
+
}
|
|
185
|
+
]
|
|
186
|
+
}
|