@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,439 @@
|
|
|
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/date-picker.json",
|
|
4
|
+
"specVersion": "1.0.0-draft",
|
|
5
|
+
"name": "date-picker",
|
|
6
|
+
"displayName": "Date picker",
|
|
7
|
+
"description": "A date picker lets users enter a single date or a date range. It includes a calendar popover and a field.",
|
|
8
|
+
"meta": {
|
|
9
|
+
"category": "inputs",
|
|
10
|
+
"documentationUrl": "https://spectrum.adobe.com/page/date-picker/"
|
|
11
|
+
},
|
|
12
|
+
"options": {
|
|
13
|
+
"variant": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"enum": ["single", "double", "triple"],
|
|
16
|
+
"default": "single",
|
|
17
|
+
"description": "Controls the number of months displayed in the calendar popover."
|
|
18
|
+
},
|
|
19
|
+
"selectedDate": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "The currently selected date. Used when selectionMode is single."
|
|
22
|
+
},
|
|
23
|
+
"selectedRange": {
|
|
24
|
+
"type": "object",
|
|
25
|
+
"description": "The currently selected date range, used when selectionMode is range.",
|
|
26
|
+
"properties": {
|
|
27
|
+
"start": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"description": "Range start date."
|
|
30
|
+
},
|
|
31
|
+
"end": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"description": "Range end date."
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"dateField": {
|
|
38
|
+
"type": "object",
|
|
39
|
+
"description": "Configuration for the date input field.",
|
|
40
|
+
"properties": {
|
|
41
|
+
"label": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"description": "Optional text label displayed with the date field."
|
|
44
|
+
},
|
|
45
|
+
"labelPosition": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"enum": ["top", "side"],
|
|
48
|
+
"default": "top"
|
|
49
|
+
},
|
|
50
|
+
"hideLabel": {
|
|
51
|
+
"type": "boolean",
|
|
52
|
+
"default": false
|
|
53
|
+
},
|
|
54
|
+
"isDisabled": {
|
|
55
|
+
"type": "boolean",
|
|
56
|
+
"default": false
|
|
57
|
+
},
|
|
58
|
+
"isReadOnly": {
|
|
59
|
+
"type": "boolean",
|
|
60
|
+
"default": false
|
|
61
|
+
},
|
|
62
|
+
"isRequired": {
|
|
63
|
+
"type": "boolean",
|
|
64
|
+
"default": false
|
|
65
|
+
},
|
|
66
|
+
"isError": {
|
|
67
|
+
"type": "boolean",
|
|
68
|
+
"default": false,
|
|
69
|
+
"description": "If there is an error, this property overrides show valid icon."
|
|
70
|
+
},
|
|
71
|
+
"state": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"enum": [
|
|
74
|
+
"default",
|
|
75
|
+
"hover",
|
|
76
|
+
"hover (in-field button)",
|
|
77
|
+
"focus + hover",
|
|
78
|
+
"focus + open",
|
|
79
|
+
"focus + not hover",
|
|
80
|
+
"keyboard focus"
|
|
81
|
+
],
|
|
82
|
+
"default": "default"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"calendarPopover": {
|
|
87
|
+
"type": "object",
|
|
88
|
+
"description": "Configuration for the calendar popover.",
|
|
89
|
+
"properties": {
|
|
90
|
+
"isDisabled": {
|
|
91
|
+
"type": "boolean",
|
|
92
|
+
"default": false
|
|
93
|
+
},
|
|
94
|
+
"minValue": {
|
|
95
|
+
"type": "string",
|
|
96
|
+
"description": "The minimum allowed date that a user may select."
|
|
97
|
+
},
|
|
98
|
+
"maxValue": {
|
|
99
|
+
"type": "string",
|
|
100
|
+
"description": "The maximum allowed date that a user may select (ISO format string)."
|
|
101
|
+
},
|
|
102
|
+
"currentMonth": {
|
|
103
|
+
"type": "number",
|
|
104
|
+
"minimum": 1,
|
|
105
|
+
"maximum": 12,
|
|
106
|
+
"description": "The month currently displayed in the calendar (1 = January, 12 = December)."
|
|
107
|
+
},
|
|
108
|
+
"currentYear": {
|
|
109
|
+
"type": "number",
|
|
110
|
+
"description": "The year currently displayed in the calendar (Gregorian year number)."
|
|
111
|
+
},
|
|
112
|
+
"selectionMode": {
|
|
113
|
+
"type": "string",
|
|
114
|
+
"enum": ["single", "range"],
|
|
115
|
+
"default": "single",
|
|
116
|
+
"description": "Controls whether the calendar allows selecting a single date or a date range."
|
|
117
|
+
},
|
|
118
|
+
"showTimeZone": {
|
|
119
|
+
"type": "boolean",
|
|
120
|
+
"default": false,
|
|
121
|
+
"description": "Whether to show a time zone indicator in the popover."
|
|
122
|
+
},
|
|
123
|
+
"isError": {
|
|
124
|
+
"type": "boolean",
|
|
125
|
+
"default": false,
|
|
126
|
+
"description": "If the calendar popover is in an error state."
|
|
127
|
+
},
|
|
128
|
+
"timeFields": {
|
|
129
|
+
"type": "object",
|
|
130
|
+
"description": "Optional start and end time fields displayed within the calendar popover.",
|
|
131
|
+
"properties": {
|
|
132
|
+
"showStartTime": {
|
|
133
|
+
"type": "boolean",
|
|
134
|
+
"default": false,
|
|
135
|
+
"description": "If true, displays a start time field."
|
|
136
|
+
},
|
|
137
|
+
"showEndTime": {
|
|
138
|
+
"type": "boolean",
|
|
139
|
+
"default": false,
|
|
140
|
+
"description": "If true, displays an end time field."
|
|
141
|
+
},
|
|
142
|
+
"granularity": {
|
|
143
|
+
"type": "string",
|
|
144
|
+
"enum": ["hour", "minute", "second"],
|
|
145
|
+
"default": "minute",
|
|
146
|
+
"description": "The level of time granularity for the time fields."
|
|
147
|
+
},
|
|
148
|
+
"is24Hour": {
|
|
149
|
+
"type": "boolean",
|
|
150
|
+
"default": false,
|
|
151
|
+
"description": "If true, displays time in 24-hour format instead of AM/PM."
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
"lifecycle": {
|
|
159
|
+
"introduced": "1.0.0-draft"
|
|
160
|
+
},
|
|
161
|
+
"tokenBindings": [
|
|
162
|
+
{
|
|
163
|
+
"token": "component-to-calendar-popover",
|
|
164
|
+
"context": "Spacing (open)"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"token": "single-calendar-popover-minimum-width",
|
|
168
|
+
"context": "Width (minimum)"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"token": "double-calendar-popover-minimum-width",
|
|
172
|
+
"context": "Width (minimum)"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"token": "single-calendar-popover-minimum-height",
|
|
176
|
+
"context": "Height (minimum)"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"token": "double-calendar-popover-minimum-height",
|
|
180
|
+
"context": "Height (minimum)"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"token": "corner-radius-700",
|
|
184
|
+
"context": "Corner rounding"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"token": "spacing-300",
|
|
188
|
+
"context": "Spacing (start/end edge to days) "
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"token": "spacing-400",
|
|
192
|
+
"context": "Spacing (top/bottom edge to days) "
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"token": "spacing-700",
|
|
196
|
+
"context": "Spacing (month + year to chevron) "
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"token": "spacing-100",
|
|
200
|
+
"context": "Spacing (between week labels) "
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"token": "current-day-indicator-size-100",
|
|
204
|
+
"context": "Current day indicator"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"token": "spacing-200",
|
|
208
|
+
"context": "Spacing (between week labels and days) "
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"token": "range-border-dash-length",
|
|
212
|
+
"context": "Range fill stroke padding"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"token": "range-border-dash-gap",
|
|
216
|
+
"context": "Range fill stroke padding"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"token": "range-border-dash-thickness",
|
|
220
|
+
"context": "Range fill stroke padding"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"token": "blue-900",
|
|
224
|
+
"context": "Day values "
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"token": "white",
|
|
228
|
+
"context": "Day values "
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"token": "blue-1000",
|
|
232
|
+
"context": "Day values "
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"token": "focus-indicator-color",
|
|
236
|
+
"context": "Day values "
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"token": "neutral-content-color-default",
|
|
240
|
+
"context": "Day values "
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"token": "gray-100",
|
|
244
|
+
"context": "Day values "
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"token": "disabled-content-color",
|
|
248
|
+
"context": "Day values "
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"token": "negative-background-color-default",
|
|
252
|
+
"context": "Day values "
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"token": "negative-background-color-hover",
|
|
256
|
+
"context": "Day values "
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"token": "neutral-content-color-hover",
|
|
260
|
+
"context": "Current day"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"token": "strikethrough-day-thickness",
|
|
264
|
+
"context": "Strikethrough day "
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"token": "strikethrough-day-orientation",
|
|
268
|
+
"context": "Strikethrough day "
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"token": "blue-subtle-background-color-default",
|
|
272
|
+
"context": "Range fill color "
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"token": "gray-25",
|
|
276
|
+
"context": "Background and border "
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"token": "neutral-content-color-focus-hover",
|
|
280
|
+
"context": "In field button colors "
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"token": "neutral-content-color-focus",
|
|
284
|
+
"context": "In field button colors "
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"token": "neutral-content-color-key-focus",
|
|
288
|
+
"context": "In field button colors "
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"token": "disabled-color-content",
|
|
292
|
+
"context": "In field button colors "
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"token": "gray-200",
|
|
296
|
+
"context": "In field button colors "
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"token": "background-disabled-color",
|
|
300
|
+
"context": "In field button colors "
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"token": "disabled-background-color",
|
|
304
|
+
"context": "Disabled"
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"token": "default-font-family",
|
|
308
|
+
"context": "Label, value, help text, and error message"
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"token": "regular-font-weight",
|
|
312
|
+
"context": "Label, value, help text, and error message"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"token": "default-font-style",
|
|
316
|
+
"context": "Label, value, help text, and error message"
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"token": "font-size-100",
|
|
320
|
+
"context": "Label, value, help text, and error message"
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"token": "line-height-100",
|
|
324
|
+
"context": "Label, value, help text, and error message"
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"token": "cjk-line-height-100",
|
|
328
|
+
"context": "Label, value, help text, and error message"
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"token": "date-picker-minimum-width",
|
|
332
|
+
"context": "Width (minimum)"
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"token": "component-height-100",
|
|
336
|
+
"context": "Height"
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"token": "corner-radius-medium-size-medium",
|
|
340
|
+
"context": "Corner rounding "
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"token": "component-edge-to-text-100",
|
|
344
|
+
"context": "Spacing (start edge to value) "
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"token": "date-picker-text-to-in-field-button",
|
|
348
|
+
"context": "Spacing (value to in-field button)"
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
"token": "component-top-to-text-100",
|
|
352
|
+
"context": "Spacing (top/bottom edge to label)"
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
"token": "component-bottom-to-text-100",
|
|
356
|
+
"context": "Spacing (top/bottom edge to label)"
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"token": "border-width-200",
|
|
360
|
+
"context": "Border "
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"token": "focus-indicator-thickness",
|
|
364
|
+
"context": "Keyboard focus indicator "
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"token": "focus-indicator-gap",
|
|
368
|
+
"context": "Keyboard focus indicator "
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
"token": "spacing-50",
|
|
372
|
+
"context": "Individual value spacing "
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
"token": "segmented-text-field-gap",
|
|
376
|
+
"context": "Spacing between values"
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"token": "segmented-text-field-rounding",
|
|
380
|
+
"context": "Focused value rounding "
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"token": "date-picker-visual-to-field-button",
|
|
384
|
+
"context": "Icon spacing (error)"
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
"token": "workflow-icon-size-100",
|
|
388
|
+
"context": "Alert icon size "
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
"token": "date-field-minimum-width",
|
|
392
|
+
"context": "Width (minimum)"
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"token": "date-field-text-to-visual",
|
|
396
|
+
"context": "Spacing (value to alert icon)"
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
"token": "time-field-minimum-width",
|
|
400
|
+
"context": "Width (minimum)"
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
"token": "time-field-text-to-visual",
|
|
404
|
+
"context": "Spacing (value to alert icon)"
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"token": "component-top-to-workflow-icon-100",
|
|
408
|
+
"context": "Spacing (top/bottom edge to alert icon)"
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
"token": "date-picker-text-to-visual",
|
|
412
|
+
"context": "Spacing (value to alert icon)"
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
"token": "negative-visual-color",
|
|
416
|
+
"context": "Alert icon (error) color"
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
"token": "negative-content-color-default",
|
|
420
|
+
"context": "Error message (error) color"
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
"token": "neutral-subdued-content-color-default",
|
|
424
|
+
"context": "Help text color "
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
"token": "triple-calendar-popover-minimum-width",
|
|
428
|
+
"context": "Popover minimum width"
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
"token": "triple-calendar-popover-minimum-height",
|
|
432
|
+
"context": "Popover minimum width"
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
"token": "spacing-500",
|
|
436
|
+
"context": "Popover minimum width"
|
|
437
|
+
}
|
|
438
|
+
]
|
|
439
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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/detail.json",
|
|
4
|
+
"specVersion": "1.0.0-draft",
|
|
5
|
+
"name": "detail",
|
|
6
|
+
"displayName": "Detail",
|
|
7
|
+
"description": "Detail is a typography component used for disclosing extra information or smaller items in hierarchical relationships of text.",
|
|
8
|
+
"meta": {
|
|
9
|
+
"category": "typography",
|
|
10
|
+
"documentationUrl": "https://spectrum.adobe.com/page/detail/"
|
|
11
|
+
},
|
|
12
|
+
"options": {
|
|
13
|
+
"script": {
|
|
14
|
+
"$ref": "https://opensource.adobe.com/spectrum-design-data/schemas/types/typography-script.json"
|
|
15
|
+
},
|
|
16
|
+
"weight": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"enum": ["light", "default"],
|
|
19
|
+
"default": "default"
|
|
20
|
+
},
|
|
21
|
+
"size": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"enum": ["s", "m", "l", "xl"],
|
|
24
|
+
"default": "m"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"lifecycle": {
|
|
28
|
+
"introduced": "1.0.0-draft"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
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/divider.json",
|
|
4
|
+
"specVersion": "1.0.0-draft",
|
|
5
|
+
"name": "divider",
|
|
6
|
+
"displayName": "Divider",
|
|
7
|
+
"description": "Dividers bring clarity to a layout by grouping and dividing content in close proximity. They can also be used to establish rhythm and hierarchy.",
|
|
8
|
+
"meta": {
|
|
9
|
+
"category": "containers",
|
|
10
|
+
"documentationUrl": "https://spectrum.adobe.com/page/divider/"
|
|
11
|
+
},
|
|
12
|
+
"options": {
|
|
13
|
+
"size": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"enum": ["s", "m", "l"],
|
|
16
|
+
"default": "s"
|
|
17
|
+
},
|
|
18
|
+
"orientation": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"enum": ["horizontal", "vertical"],
|
|
21
|
+
"default": "horizontal"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"lifecycle": {
|
|
25
|
+
"introduced": "1.0.0-draft"
|
|
26
|
+
},
|
|
27
|
+
"tokenBindings": [
|
|
28
|
+
{
|
|
29
|
+
"token": "divider-thickness-small",
|
|
30
|
+
"context": "Thickness"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"token": "divider-thickness-medium",
|
|
34
|
+
"context": "Thickness"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"token": "divider-thickness-large",
|
|
38
|
+
"context": "Thickness"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"token": "divider-horizontal-minimum-width",
|
|
42
|
+
"context": "Horizontal"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"token": "divider-vertical-minimum-height",
|
|
46
|
+
"context": "Horizontal"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"token": "gray-200",
|
|
50
|
+
"context": "Fill "
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"token": "gray-800",
|
|
54
|
+
"context": "Fill "
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"token": "transparent-white-200",
|
|
58
|
+
"context": "Fill (white)"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"token": "transparent-white-800",
|
|
62
|
+
"context": "Fill (white)"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"token": "transparent-black-200",
|
|
66
|
+
"context": "Fill (black)"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"token": "transparent-black-800",
|
|
70
|
+
"context": "Fill (black)"
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
}
|