@adobe/spectrum-component-api-schemas 3.0.0 → 5.0.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/CHANGELOG.md +156 -0
- package/package.json +1 -1
- package/schemas/components/accordion.json +74 -0
- package/schemas/components/alert-banner.json +1 -1
- package/schemas/components/avatar-group.json +22 -0
- package/schemas/components/breadcrumbs.json +54 -0
- package/schemas/components/button-group.json +5 -0
- package/schemas/components/calendar.json +109 -0
- package/schemas/components/cards.json +238 -0
- package/schemas/components/checkbox-group.json +0 -4
- package/schemas/components/coach-mark.json +51 -0
- package/schemas/components/color-handle.json +31 -0
- package/schemas/components/color-slider.json +15 -1
- package/schemas/components/combo-box.json +1 -5
- package/schemas/components/contextual-help.json +5 -2
- package/schemas/components/date-picker.json +157 -0
- package/schemas/components/divider.json +1 -1
- package/schemas/components/drop-zone.json +41 -0
- package/schemas/components/illustrated-message.json +52 -0
- package/schemas/components/in-line-alert.json +19 -1
- package/schemas/components/list-view.json +106 -0
- package/schemas/components/menu.json +2 -4
- package/schemas/components/number-field.json +57 -0
- package/schemas/components/picker.json +18 -8
- package/schemas/components/radio-button.json +2 -2
- package/schemas/components/radio-group.json +0 -4
- package/schemas/components/scroll-zoom-bar.json +1 -1
- package/schemas/components/segmented-control.json +72 -0
- package/schemas/components/side-navigation.json +61 -2
- package/schemas/components/slider.json +5 -0
- package/schemas/components/standard-dialog.json +53 -0
- package/schemas/components/standard-panel.json +49 -0
- package/schemas/components/step-list.json +52 -0
- package/schemas/components/swatch-group.json +6 -0
- package/schemas/components/swatch.json +3 -2
- package/schemas/components/table.json +144 -0
- package/schemas/components/tabs.json +57 -36
- package/schemas/components/tag-field.json +42 -0
- package/schemas/components/tag-group.json +31 -0
- package/schemas/components/takeover-dialog.json +60 -0
- package/schemas/components/text-field.json +1 -1
- package/schemas/components/tree-view.json +1 -1
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/component.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-tokens/schemas/components/cards.json",
|
|
4
|
+
"title": "Cards",
|
|
5
|
+
"description": "Cards group related content into distinct layouts depending on context.",
|
|
6
|
+
"meta": {
|
|
7
|
+
"category": "containers",
|
|
8
|
+
"documentationUrl": "https://spectrum.adobe.com/page/cards/"
|
|
9
|
+
},
|
|
10
|
+
"type": "object",
|
|
11
|
+
"definitions": {
|
|
12
|
+
"baseCard": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"properties": {
|
|
15
|
+
"size": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"enum": ["xs", "s", "m", "l", "xl"],
|
|
18
|
+
"default": "m",
|
|
19
|
+
"description": "Overall size of the card."
|
|
20
|
+
},
|
|
21
|
+
"state": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"enum": ["default", "hover", "pending"],
|
|
24
|
+
"default": "default",
|
|
25
|
+
"description": "Interaction state of the card."
|
|
26
|
+
},
|
|
27
|
+
"isSelected": {
|
|
28
|
+
"type": "boolean",
|
|
29
|
+
"default": false,
|
|
30
|
+
"description": "Whether the card is selected."
|
|
31
|
+
},
|
|
32
|
+
"isQuiet": {
|
|
33
|
+
"type": "boolean",
|
|
34
|
+
"default": false,
|
|
35
|
+
"description": "Applies a quiet visual style."
|
|
36
|
+
},
|
|
37
|
+
"isDisabled": {
|
|
38
|
+
"type": "boolean",
|
|
39
|
+
"default": false,
|
|
40
|
+
"description": "Whether the card is disabled."
|
|
41
|
+
},
|
|
42
|
+
"hideCheckbox": {
|
|
43
|
+
"type": "boolean",
|
|
44
|
+
"default": false,
|
|
45
|
+
"description": "If true, the selection checkbox is hidden."
|
|
46
|
+
},
|
|
47
|
+
"actionLabel": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"description": "Optional action button label."
|
|
50
|
+
},
|
|
51
|
+
"metadata": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"description": "Optional metadata shown below the card."
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"properties": {
|
|
59
|
+
"variant": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"enum": [
|
|
62
|
+
"asset",
|
|
63
|
+
"collection",
|
|
64
|
+
"flex",
|
|
65
|
+
"gallery",
|
|
66
|
+
"horizontal",
|
|
67
|
+
"product"
|
|
68
|
+
],
|
|
69
|
+
"default": "asset",
|
|
70
|
+
"description": "Determines which card layout variant is used."
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"oneOf": [
|
|
74
|
+
{
|
|
75
|
+
"allOf": [
|
|
76
|
+
{
|
|
77
|
+
"$ref": "#/definitions/baseCard"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"properties": {
|
|
81
|
+
"variant": {
|
|
82
|
+
"const": "asset"
|
|
83
|
+
},
|
|
84
|
+
"title": {
|
|
85
|
+
"type": "string"
|
|
86
|
+
},
|
|
87
|
+
"description": {
|
|
88
|
+
"type": "string"
|
|
89
|
+
},
|
|
90
|
+
"image": {
|
|
91
|
+
"type": "string",
|
|
92
|
+
"description": "Preview image."
|
|
93
|
+
},
|
|
94
|
+
"previewVariant": {
|
|
95
|
+
"type": "string",
|
|
96
|
+
"enum": [
|
|
97
|
+
"full-bleed",
|
|
98
|
+
"half-horizontal",
|
|
99
|
+
"two-thirds-horizontal",
|
|
100
|
+
"half-vertical",
|
|
101
|
+
"two-thirds-vertical"
|
|
102
|
+
],
|
|
103
|
+
"default": "full-bleed",
|
|
104
|
+
"description": "Layout style for the preview image."
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"required": ["image"]
|
|
108
|
+
}
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"allOf": [
|
|
113
|
+
{
|
|
114
|
+
"$ref": "#/definitions/baseCard"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"properties": {
|
|
118
|
+
"variant": {
|
|
119
|
+
"const": "collection"
|
|
120
|
+
},
|
|
121
|
+
"title": {
|
|
122
|
+
"type": "string"
|
|
123
|
+
},
|
|
124
|
+
"description": {
|
|
125
|
+
"type": "string"
|
|
126
|
+
},
|
|
127
|
+
"collectionName": {
|
|
128
|
+
"type": "string"
|
|
129
|
+
},
|
|
130
|
+
"itemCount": {
|
|
131
|
+
"type": "number"
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"required": ["collectionName"]
|
|
135
|
+
}
|
|
136
|
+
]
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"allOf": [
|
|
140
|
+
{
|
|
141
|
+
"$ref": "#/definitions/baseCard"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"properties": {
|
|
145
|
+
"variant": {
|
|
146
|
+
"const": "flex"
|
|
147
|
+
},
|
|
148
|
+
"title": {
|
|
149
|
+
"type": "string"
|
|
150
|
+
},
|
|
151
|
+
"description": {
|
|
152
|
+
"type": "string"
|
|
153
|
+
},
|
|
154
|
+
"content": {
|
|
155
|
+
"type": "string",
|
|
156
|
+
"description": "Flexible card content."
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
]
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"properties": {
|
|
164
|
+
"variant": {
|
|
165
|
+
"const": "gallery"
|
|
166
|
+
},
|
|
167
|
+
"images": {
|
|
168
|
+
"type": "array",
|
|
169
|
+
"items": {
|
|
170
|
+
"type": "string"
|
|
171
|
+
},
|
|
172
|
+
"description": "Image URLs for gallery display."
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"required": ["images"],
|
|
176
|
+
"additionalProperties": false
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"allOf": [
|
|
180
|
+
{
|
|
181
|
+
"$ref": "#/definitions/baseCard"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"properties": {
|
|
185
|
+
"variant": {
|
|
186
|
+
"const": "horizontal"
|
|
187
|
+
},
|
|
188
|
+
"title": {
|
|
189
|
+
"type": "string"
|
|
190
|
+
},
|
|
191
|
+
"description": {
|
|
192
|
+
"type": "string"
|
|
193
|
+
},
|
|
194
|
+
"thumbnail": {
|
|
195
|
+
"type": "string",
|
|
196
|
+
"description": "Thumbnail image on left or right."
|
|
197
|
+
},
|
|
198
|
+
"details": {
|
|
199
|
+
"type": "string",
|
|
200
|
+
"description": "Supporting text beside thumbnail."
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
]
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"allOf": [
|
|
208
|
+
{
|
|
209
|
+
"$ref": "#/definitions/baseCard"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"properties": {
|
|
213
|
+
"variant": {
|
|
214
|
+
"const": "product"
|
|
215
|
+
},
|
|
216
|
+
"title": {
|
|
217
|
+
"type": "string"
|
|
218
|
+
},
|
|
219
|
+
"description": {
|
|
220
|
+
"type": "string"
|
|
221
|
+
},
|
|
222
|
+
"productName": {
|
|
223
|
+
"type": "string"
|
|
224
|
+
},
|
|
225
|
+
"price": {
|
|
226
|
+
"type": "string"
|
|
227
|
+
},
|
|
228
|
+
"thumbnail": {
|
|
229
|
+
"type": "string",
|
|
230
|
+
"description": "Thumbnail for the product."
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
"required": ["productName", "price", "thumbnail"]
|
|
234
|
+
}
|
|
235
|
+
]
|
|
236
|
+
}
|
|
237
|
+
]
|
|
238
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/component.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-tokens/schemas/components/coach-mark.json",
|
|
4
|
+
"title": "Coach mark",
|
|
5
|
+
"description": "Coach marks provide contextual guidance to users by highlighting specific interface elements.",
|
|
6
|
+
"meta": {
|
|
7
|
+
"category": "feedback",
|
|
8
|
+
"documentationUrl": "https://spectrum.adobe.com/page/coach-mark/"
|
|
9
|
+
},
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": {
|
|
12
|
+
"title": {
|
|
13
|
+
"type": "string"
|
|
14
|
+
},
|
|
15
|
+
"description": {
|
|
16
|
+
"type": "string"
|
|
17
|
+
},
|
|
18
|
+
"hideImage": {
|
|
19
|
+
"type": "boolean",
|
|
20
|
+
"default": false,
|
|
21
|
+
"description": "Optional image to display in dialog."
|
|
22
|
+
},
|
|
23
|
+
"actions": {
|
|
24
|
+
"type": "object",
|
|
25
|
+
"description": "Configuration for coach mark actions.",
|
|
26
|
+
"properties": {
|
|
27
|
+
"topActionLabel": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"description": "Optional action button displayed at the top, often for a menu."
|
|
30
|
+
},
|
|
31
|
+
"footerContent": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"description": "Optional footer content to display in the dialog footer like a checkbox."
|
|
34
|
+
},
|
|
35
|
+
"primaryActionLabel": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"description": "Label for the primary footer action."
|
|
38
|
+
},
|
|
39
|
+
"secondaryActionLabel": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"description": "Label for the secondary footer action (optional)."
|
|
42
|
+
},
|
|
43
|
+
"cancelActionLabel": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"default": "cancel",
|
|
46
|
+
"description": "Label for the cancel action (optional)."
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/component.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-tokens/schemas/components/color-handle.json",
|
|
4
|
+
"title": "Color handle",
|
|
5
|
+
"description": "Color handles allow users to select and adjust colors in a color picker.",
|
|
6
|
+
"meta": {
|
|
7
|
+
"category": "inputs",
|
|
8
|
+
"documentationUrl": "https://spectrum.adobe.com/page/color-handle/"
|
|
9
|
+
},
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": {
|
|
12
|
+
"channel": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"enum": [
|
|
15
|
+
"hue",
|
|
16
|
+
"saturation",
|
|
17
|
+
"lightness",
|
|
18
|
+
"red",
|
|
19
|
+
"green",
|
|
20
|
+
"blue",
|
|
21
|
+
"alpha"
|
|
22
|
+
],
|
|
23
|
+
"default": "hue",
|
|
24
|
+
"description": "Which channel of the color this handle controls. Use 'alpha' for opacity."
|
|
25
|
+
},
|
|
26
|
+
"isDisabled": {
|
|
27
|
+
"type": "boolean",
|
|
28
|
+
"default": false
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -13,9 +13,23 @@
|
|
|
13
13
|
"type": "string",
|
|
14
14
|
"description": "This will vary depending on implementation."
|
|
15
15
|
},
|
|
16
|
+
"channel": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"enum": [
|
|
19
|
+
"hue",
|
|
20
|
+
"saturation",
|
|
21
|
+
"lightness",
|
|
22
|
+
"red",
|
|
23
|
+
"green",
|
|
24
|
+
"blue",
|
|
25
|
+
"alpha"
|
|
26
|
+
],
|
|
27
|
+
"default": "hue",
|
|
28
|
+
"description": "Which channel of the color this slider controls. Use 'alpha' for opacity."
|
|
29
|
+
},
|
|
16
30
|
"value": {
|
|
17
31
|
"type": "number",
|
|
18
|
-
"description": "Number (from minValue to maxValue)"
|
|
32
|
+
"description": "Number (from minValue to maxValue)."
|
|
19
33
|
},
|
|
20
34
|
"minValue": {
|
|
21
35
|
"type": "number",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"labelPosition": {
|
|
16
16
|
"type": "string",
|
|
17
|
-
"enum": ["top", "side"],
|
|
17
|
+
"enum": ["top", "side", "in line"],
|
|
18
18
|
"default": "top"
|
|
19
19
|
},
|
|
20
20
|
"value": {
|
|
@@ -28,10 +28,6 @@
|
|
|
28
28
|
"enum": ["s", "m", "l", "xl"],
|
|
29
29
|
"default": "m"
|
|
30
30
|
},
|
|
31
|
-
"isQuiet": {
|
|
32
|
-
"type": "boolean",
|
|
33
|
-
"default": false
|
|
34
|
-
},
|
|
35
31
|
"isRequired": {
|
|
36
32
|
"type": "boolean",
|
|
37
33
|
"default": false
|
|
@@ -44,8 +44,11 @@
|
|
|
44
44
|
},
|
|
45
45
|
"popoverOffset": {
|
|
46
46
|
"type": "number",
|
|
47
|
-
"default":
|
|
48
|
-
|
|
47
|
+
"default": 8
|
|
48
|
+
},
|
|
49
|
+
"href": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"description": "Optional URL within contextual help content like a 'Learn more' link."
|
|
49
52
|
},
|
|
50
53
|
"popoverCrossOffset": {
|
|
51
54
|
"type": "number",
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/component.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-tokens/schemas/components/date-picker.json",
|
|
4
|
+
"title": "Date picker",
|
|
5
|
+
"description": "A date picker lets users enter a single date or a date range. It includes a calendar popover and a field.",
|
|
6
|
+
"meta": {
|
|
7
|
+
"category": "inputs",
|
|
8
|
+
"documentationUrl": "https://spectrum.adobe.com/page/date-picker/"
|
|
9
|
+
},
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": {
|
|
12
|
+
"variant": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"enum": ["single", "double", "triple"],
|
|
15
|
+
"default": "single",
|
|
16
|
+
"description": "Controls the number of months displayed in the calendar popover."
|
|
17
|
+
},
|
|
18
|
+
"selectedDate": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"description": "The currently selected date. Used when selectionMode is single."
|
|
21
|
+
},
|
|
22
|
+
"selectedRange": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"description": "The currently selected date range, used when selectionMode is range.",
|
|
25
|
+
"properties": {
|
|
26
|
+
"start": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"description": "Range start date."
|
|
29
|
+
},
|
|
30
|
+
"end": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"description": "Range end date."
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"dateField": {
|
|
37
|
+
"type": "object",
|
|
38
|
+
"description": "Configuration for the date input field.",
|
|
39
|
+
"properties": {
|
|
40
|
+
"label": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"description": "Optional text label displayed with the date field."
|
|
43
|
+
},
|
|
44
|
+
"labelPosition": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"enum": ["top", "side"],
|
|
47
|
+
"default": "top"
|
|
48
|
+
},
|
|
49
|
+
"hideLabel": {
|
|
50
|
+
"type": "boolean",
|
|
51
|
+
"default": false
|
|
52
|
+
},
|
|
53
|
+
"isDisabled": {
|
|
54
|
+
"type": "boolean",
|
|
55
|
+
"default": false
|
|
56
|
+
},
|
|
57
|
+
"isReadOnly": {
|
|
58
|
+
"type": "boolean",
|
|
59
|
+
"default": false
|
|
60
|
+
},
|
|
61
|
+
"isRequired": {
|
|
62
|
+
"type": "boolean",
|
|
63
|
+
"default": false
|
|
64
|
+
},
|
|
65
|
+
"isError": {
|
|
66
|
+
"type": "boolean",
|
|
67
|
+
"default": false,
|
|
68
|
+
"description": "If there is an error, this property overrides show valid icon."
|
|
69
|
+
},
|
|
70
|
+
"state": {
|
|
71
|
+
"type": "string",
|
|
72
|
+
"enum": [
|
|
73
|
+
"default",
|
|
74
|
+
"hover",
|
|
75
|
+
"hover (in-field button)",
|
|
76
|
+
"focus + hover",
|
|
77
|
+
"focus + open",
|
|
78
|
+
"focus + not hover",
|
|
79
|
+
"keyboard focus"
|
|
80
|
+
],
|
|
81
|
+
"default": "default"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"calendarPopover": {
|
|
86
|
+
"type": "object",
|
|
87
|
+
"description": "Configuration for the calendar popover.",
|
|
88
|
+
"properties": {
|
|
89
|
+
"isDisabled": {
|
|
90
|
+
"type": "boolean",
|
|
91
|
+
"default": false
|
|
92
|
+
},
|
|
93
|
+
"minValue": {
|
|
94
|
+
"type": "string",
|
|
95
|
+
"description": "The minimum allowed date that a user may select."
|
|
96
|
+
},
|
|
97
|
+
"maxValue": {
|
|
98
|
+
"type": "string",
|
|
99
|
+
"description": "The maximum allowed date that a user may select (ISO format string)."
|
|
100
|
+
},
|
|
101
|
+
"currentMonth": {
|
|
102
|
+
"type": "number",
|
|
103
|
+
"minimum": 1,
|
|
104
|
+
"maximum": 12,
|
|
105
|
+
"description": "The month currently displayed in the calendar (1 = January, 12 = December)."
|
|
106
|
+
},
|
|
107
|
+
"currentYear": {
|
|
108
|
+
"type": "number",
|
|
109
|
+
"description": "The year currently displayed in the calendar (Gregorian year number)."
|
|
110
|
+
},
|
|
111
|
+
"selectionMode": {
|
|
112
|
+
"type": "string",
|
|
113
|
+
"enum": ["single", "range"],
|
|
114
|
+
"default": "single",
|
|
115
|
+
"description": "Controls whether the calendar allows selecting a single date or a date range."
|
|
116
|
+
},
|
|
117
|
+
"showTimeZone": {
|
|
118
|
+
"type": "boolean",
|
|
119
|
+
"default": false,
|
|
120
|
+
"description": "Whether to show a time zone indicator in the popover."
|
|
121
|
+
},
|
|
122
|
+
"isError": {
|
|
123
|
+
"type": "boolean",
|
|
124
|
+
"default": false,
|
|
125
|
+
"description": "If the calendar popover is in an error state."
|
|
126
|
+
},
|
|
127
|
+
"timeFields": {
|
|
128
|
+
"type": "object",
|
|
129
|
+
"description": "Optional start and end time fields displayed within the calendar popover.",
|
|
130
|
+
"properties": {
|
|
131
|
+
"showStartTime": {
|
|
132
|
+
"type": "boolean",
|
|
133
|
+
"default": false,
|
|
134
|
+
"description": "If true, displays a start time field."
|
|
135
|
+
},
|
|
136
|
+
"showEndTime": {
|
|
137
|
+
"type": "boolean",
|
|
138
|
+
"default": false,
|
|
139
|
+
"description": "If true, displays an end time field."
|
|
140
|
+
},
|
|
141
|
+
"granularity": {
|
|
142
|
+
"type": "string",
|
|
143
|
+
"enum": ["hour", "minute", "second"],
|
|
144
|
+
"default": "minute",
|
|
145
|
+
"description": "The level of time granularity for the time fields."
|
|
146
|
+
},
|
|
147
|
+
"is24Hour": {
|
|
148
|
+
"type": "boolean",
|
|
149
|
+
"default": false,
|
|
150
|
+
"description": "If true, displays time in 24-hour format instead of AM/PM."
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/component.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-tokens/schemas/components/drop-zone.json",
|
|
4
|
+
"title": "Drop zone",
|
|
5
|
+
"description": "A drop zone allows users to drag and drop files or other content into a designated area.",
|
|
6
|
+
"meta": {
|
|
7
|
+
"category": "inputs",
|
|
8
|
+
"documentationUrl": "https://spectrum.adobe.com/page/drop-zone/"
|
|
9
|
+
},
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": {
|
|
12
|
+
"accept": {
|
|
13
|
+
"type": "array",
|
|
14
|
+
"items": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "File types that are accepted by the drop zone."
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"size": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"enum": ["s", "m", "l"],
|
|
22
|
+
"default": "m"
|
|
23
|
+
},
|
|
24
|
+
"actionLabel": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"description": "If undefined, this button does not appear."
|
|
27
|
+
},
|
|
28
|
+
"onDrop": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"description": "Callback function called when files are dropped onto the drop zone."
|
|
31
|
+
},
|
|
32
|
+
"onDragOver": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"description": "Callback function called when a file is dragged over the drop zone."
|
|
35
|
+
},
|
|
36
|
+
"onDragLeave": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"description": "Callback function called when a file is dragged out of the drop zone."
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/component.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-tokens/schemas/components/illustrated-message.json",
|
|
4
|
+
"title": "Illustrated message",
|
|
5
|
+
"description": "An illustrated message displays an illustration with a short title and description, often used for empty states or error states.",
|
|
6
|
+
"meta": {
|
|
7
|
+
"category": "feedback",
|
|
8
|
+
"documentationUrl": "https://spectrum.adobe.com/page/illustrated-message/"
|
|
9
|
+
},
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": {
|
|
12
|
+
"illustration": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"description": "Optional illustration or icon displayed above the message."
|
|
15
|
+
},
|
|
16
|
+
"size": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"enum": [
|
|
19
|
+
"s",
|
|
20
|
+
"m",
|
|
21
|
+
"l"
|
|
22
|
+
],
|
|
23
|
+
"default": "m",
|
|
24
|
+
"description": "Size of the illustration."
|
|
25
|
+
},
|
|
26
|
+
"orientation": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"enum": [
|
|
29
|
+
"vertical",
|
|
30
|
+
"horizontal"
|
|
31
|
+
],
|
|
32
|
+
"default": "vertical",
|
|
33
|
+
"description": "Orientation of the illustrated message."
|
|
34
|
+
},
|
|
35
|
+
"title": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"description": "Primary heading text of the message."
|
|
38
|
+
},
|
|
39
|
+
"description": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"description": "Secondary descriptive text providing context or instructions."
|
|
42
|
+
},
|
|
43
|
+
"primaryActionLabel": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"description": "Label for the primary action button. If undefined, no primary action is shown."
|
|
46
|
+
},
|
|
47
|
+
"secondaryActionLabel": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"description": "Label for the secondary action button. If undefined, no secondary action is shown."
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -17,9 +17,27 @@
|
|
|
17
17
|
"positive",
|
|
18
18
|
"notice",
|
|
19
19
|
"negative",
|
|
20
|
-
"
|
|
20
|
+
"accent"
|
|
21
21
|
],
|
|
22
22
|
"default": "neutral"
|
|
23
|
+
},
|
|
24
|
+
"style": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"enum": ["bold", "subtle", "outline"],
|
|
27
|
+
"default": "outline",
|
|
28
|
+
"description": "The visual style of the alert."
|
|
29
|
+
},
|
|
30
|
+
"href": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"description": "Optional URL within in-line alert content like a 'Learn more' link."
|
|
33
|
+
},
|
|
34
|
+
"heading": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"description": "Optional heading text displayed at the top of the alert."
|
|
37
|
+
},
|
|
38
|
+
"actionLabel": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"description": "If undefined, this button does not appear."
|
|
23
41
|
}
|
|
24
42
|
}
|
|
25
43
|
}
|