@adobe/design-data-spec 0.2.0 → 0.4.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/README.md +3 -3
- package/components/accordion.json +87 -0
- package/components/action-bar.json +21 -0
- package/components/action-button.json +75 -0
- package/components/action-group.json +68 -0
- package/components/alert-banner.json +33 -0
- package/components/alert-dialog.json +46 -0
- package/components/avatar-group.json +26 -0
- package/components/avatar.json +54 -0
- package/components/badge.json +73 -0
- package/components/body.json +29 -0
- package/components/bottom-navigation-android.json +41 -0
- package/components/breadcrumbs.json +89 -0
- package/components/button-group.json +37 -0
- package/components/button.json +70 -0
- package/components/calendar.json +104 -0
- package/components/cards.json +30 -0
- package/components/checkbox-group.json +53 -0
- package/components/checkbox.json +61 -0
- package/components/close-button.json +48 -0
- package/components/coach-indicator.json +38 -0
- package/components/coach-mark.json +55 -0
- package/components/code.json +25 -0
- package/components/color-area.json +77 -0
- package/components/color-handle.json +35 -0
- package/components/color-loupe.json +20 -0
- package/components/color-slider.json +79 -0
- package/components/color-wheel.json +60 -0
- package/components/combo-box.json +94 -0
- package/components/contextual-help.json +80 -0
- package/components/date-picker.json +161 -0
- package/components/detail.json +30 -0
- package/components/divider.json +27 -0
- package/components/drop-zone.json +45 -0
- package/components/field-label.json +43 -0
- package/components/heading.json +33 -0
- package/components/help-text.json +40 -0
- package/components/illustrated-message.json +49 -0
- package/components/in-field-progress-button.json +44 -0
- package/components/in-field-progress-circle.json +26 -0
- package/components/in-line-alert.json +47 -0
- package/components/link.json +45 -0
- package/components/list-view.json +93 -0
- package/components/menu.json +76 -0
- package/components/meter.json +48 -0
- package/components/number-field.json +70 -0
- package/components/opacity-checkerboard.json +25 -0
- package/components/picker.json +92 -0
- package/components/popover.json +69 -0
- package/components/progress-bar.json +68 -0
- package/components/progress-circle.json +45 -0
- package/components/radio-button.json +43 -0
- package/components/radio-group.json +62 -0
- package/components/rating.json +47 -0
- package/components/scroll-zoom-bar.json +53 -0
- package/components/search-field.json +72 -0
- package/components/segmented-control.json +76 -0
- package/components/select-box.json +62 -0
- package/components/side-navigation.json +71 -0
- package/components/slider.json +92 -0
- package/components/standard-dialog.json +53 -0
- package/components/standard-panel.json +53 -0
- package/components/status-light.json +54 -0
- package/components/steplist.json +56 -0
- package/components/swatch-group.json +48 -0
- package/components/swatch.json +59 -0
- package/components/switch.json +55 -0
- package/components/tab-bar-ios.json +41 -0
- package/components/table.json +122 -0
- package/components/tabs.json +79 -0
- package/components/tag-field.json +53 -0
- package/components/tag-group.json +35 -0
- package/components/tag.json +54 -0
- package/components/takeover-dialog.json +58 -0
- package/components/text-area.json +103 -0
- package/components/text-field.json +91 -0
- package/components/thumbnail.json +27 -0
- package/components/toast.json +33 -0
- package/components/tooltip.json +54 -0
- package/components/tray.json +21 -0
- package/components/tree-view.json +63 -0
- package/conformance/README.md +26 -26
- package/conformance/invalid/SPEC-014/expected-errors.json +10 -0
- package/conformance/invalid/SPEC-014/tokens.tokens.json +9 -0
- package/conformance/invalid/SPEC-018/dataset.json +9 -0
- package/conformance/invalid/SPEC-018/expected-errors.json +10 -0
- package/conformance/invalid/SPEC-019/dataset.json +29 -0
- package/conformance/invalid/SPEC-019/expected-errors.json +10 -0
- package/conformance/invalid/SPEC-020/dataset.json +27 -0
- package/conformance/invalid/SPEC-020/expected-errors.json +10 -0
- package/conformance/invalid/SPEC-021/dataset.json +18 -0
- package/conformance/invalid/SPEC-021/expected-errors.json +10 -0
- package/conformance/invalid/SPEC-022/dataset.json +33 -0
- package/conformance/invalid/SPEC-022/expected-errors.json +10 -0
- package/conformance/invalid/SPEC-023/dataset.json +18 -0
- package/conformance/invalid/SPEC-023/expected-errors.json +10 -0
- package/conformance/invalid/SPEC-024/dataset.json +18 -0
- package/conformance/invalid/SPEC-024/expected-errors.json +10 -0
- package/conformance/valid/component-refs/dataset.json +63 -0
- package/conformance/valid/lifecycle-with-last-modified.json +12 -0
- package/package.json +19 -6
- package/rules/rules.yaml +81 -0
- package/schemas/anatomy-part.schema.json +35 -0
- package/schemas/component.schema.json +267 -0
- package/schemas/state-declaration.schema.json +36 -0
- package/spec/agent-surface.md +116 -0
- package/spec/anatomy-format.md +167 -0
- package/spec/component-format.md +326 -0
- package/spec/evolution.md +32 -32
- package/spec/index.md +27 -21
- package/spec/manifest.md +3 -1
- package/spec/state-model.md +245 -0
- package/spec/taxonomy.md +17 -1
- package/spec/token-format.md +1 -1
- package/src/canonical.js +61 -0
- package/src/validate.js +166 -0
|
@@ -0,0 +1,79 @@
|
|
|
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/color-slider.json",
|
|
4
|
+
"specVersion": "1.0.0-draft",
|
|
5
|
+
"name": "color-slider",
|
|
6
|
+
"displayName": "Color slider",
|
|
7
|
+
"description": "A color slider lets users visually change an individual channel of a color.",
|
|
8
|
+
"meta": {
|
|
9
|
+
"category": "inputs",
|
|
10
|
+
"documentationUrl": "https://spectrum.adobe.com/page/color-slider/"
|
|
11
|
+
},
|
|
12
|
+
"options": {
|
|
13
|
+
"background": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "This will vary depending on implementation."
|
|
16
|
+
},
|
|
17
|
+
"channel": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"enum": [
|
|
20
|
+
"hue",
|
|
21
|
+
"saturation",
|
|
22
|
+
"lightness",
|
|
23
|
+
"red",
|
|
24
|
+
"green",
|
|
25
|
+
"blue",
|
|
26
|
+
"alpha"
|
|
27
|
+
],
|
|
28
|
+
"default": "hue",
|
|
29
|
+
"description": "Which channel of the color this slider controls. Use 'alpha' for opacity."
|
|
30
|
+
},
|
|
31
|
+
"value": {
|
|
32
|
+
"type": "number",
|
|
33
|
+
"description": "Number (from minValue to maxValue)."
|
|
34
|
+
},
|
|
35
|
+
"minValue": {
|
|
36
|
+
"type": "number",
|
|
37
|
+
"default": 0
|
|
38
|
+
},
|
|
39
|
+
"maxValue": {
|
|
40
|
+
"type": "number",
|
|
41
|
+
"default": 100
|
|
42
|
+
},
|
|
43
|
+
"step": {
|
|
44
|
+
"type": "number",
|
|
45
|
+
"default": 1
|
|
46
|
+
},
|
|
47
|
+
"orientation": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"enum": ["horizontal", "vertical"],
|
|
50
|
+
"default": "horizontal"
|
|
51
|
+
},
|
|
52
|
+
"length": {
|
|
53
|
+
"type": "number",
|
|
54
|
+
"default": 192,
|
|
55
|
+
"description": "units: px"
|
|
56
|
+
},
|
|
57
|
+
"isDisabled": {
|
|
58
|
+
"type": "boolean",
|
|
59
|
+
"default": false
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"states": [
|
|
63
|
+
{
|
|
64
|
+
"name": "hover",
|
|
65
|
+
"trigger": "interaction"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "down",
|
|
69
|
+
"trigger": "interaction"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"name": "keyboard-focus",
|
|
73
|
+
"trigger": "interaction"
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
"lifecycle": {
|
|
77
|
+
"introduced": "1.0.0-draft"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
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/color-wheel.json",
|
|
4
|
+
"specVersion": "1.0.0-draft",
|
|
5
|
+
"name": "color-wheel",
|
|
6
|
+
"displayName": "Color wheel",
|
|
7
|
+
"description": "A color wheel lets users visually change an individual channel of a color on a circular track.",
|
|
8
|
+
"meta": {
|
|
9
|
+
"category": "inputs",
|
|
10
|
+
"documentationUrl": "https://spectrum.adobe.com/page/color-wheel/"
|
|
11
|
+
},
|
|
12
|
+
"options": {
|
|
13
|
+
"background": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "This will vary depending on implementation."
|
|
16
|
+
},
|
|
17
|
+
"value": {
|
|
18
|
+
"type": "number",
|
|
19
|
+
"description": "Number (from minValue to maxValue)"
|
|
20
|
+
},
|
|
21
|
+
"minValue": {
|
|
22
|
+
"type": "number",
|
|
23
|
+
"default": 0
|
|
24
|
+
},
|
|
25
|
+
"maxValue": {
|
|
26
|
+
"type": "number",
|
|
27
|
+
"default": 360
|
|
28
|
+
},
|
|
29
|
+
"step": {
|
|
30
|
+
"type": "number",
|
|
31
|
+
"default": 1
|
|
32
|
+
},
|
|
33
|
+
"size": {
|
|
34
|
+
"type": "number",
|
|
35
|
+
"default": 192,
|
|
36
|
+
"description": "units: px"
|
|
37
|
+
},
|
|
38
|
+
"isDisabled": {
|
|
39
|
+
"type": "boolean",
|
|
40
|
+
"default": false
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"states": [
|
|
44
|
+
{
|
|
45
|
+
"name": "hover",
|
|
46
|
+
"trigger": "interaction"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "down",
|
|
50
|
+
"trigger": "interaction"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "keyboard-focus",
|
|
54
|
+
"trigger": "interaction"
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"lifecycle": {
|
|
58
|
+
"introduced": "1.0.0-draft"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
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/combo-box.json",
|
|
4
|
+
"specVersion": "1.0.0-draft",
|
|
5
|
+
"name": "combo-box",
|
|
6
|
+
"displayName": "Combo box",
|
|
7
|
+
"description": "Combo boxes combine a text entry with a picker menu, allowing users to filter longer lists to only the selections matching a query.",
|
|
8
|
+
"meta": {
|
|
9
|
+
"category": "inputs",
|
|
10
|
+
"documentationUrl": "https://spectrum.adobe.com/page/combo-box/"
|
|
11
|
+
},
|
|
12
|
+
"options": {
|
|
13
|
+
"label": {
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
"labelPosition": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"enum": ["top", "side", "in line"],
|
|
19
|
+
"default": "top"
|
|
20
|
+
},
|
|
21
|
+
"value": {
|
|
22
|
+
"type": "string"
|
|
23
|
+
},
|
|
24
|
+
"width": {
|
|
25
|
+
"type": "number"
|
|
26
|
+
},
|
|
27
|
+
"size": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"enum": ["s", "m", "l", "xl"],
|
|
30
|
+
"default": "m"
|
|
31
|
+
},
|
|
32
|
+
"isRequired": {
|
|
33
|
+
"type": "boolean",
|
|
34
|
+
"default": false
|
|
35
|
+
},
|
|
36
|
+
"necessityIndicator": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"enum": ["text", "icon"],
|
|
39
|
+
"default": "icon"
|
|
40
|
+
},
|
|
41
|
+
"hasAutocomplete": {
|
|
42
|
+
"type": "boolean",
|
|
43
|
+
"default": false
|
|
44
|
+
},
|
|
45
|
+
"menuTrigger": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"enum": ["input", "focus", "manual"],
|
|
48
|
+
"default": "input"
|
|
49
|
+
},
|
|
50
|
+
"isError": {
|
|
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
|
+
"description": {
|
|
63
|
+
"type": "string"
|
|
64
|
+
},
|
|
65
|
+
"errorMessage": {
|
|
66
|
+
"type": "string"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"states": [
|
|
70
|
+
{
|
|
71
|
+
"name": "hover-(text-area)",
|
|
72
|
+
"trigger": "prop"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "hover-(button-area)",
|
|
76
|
+
"trigger": "prop"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "focus-+-hover",
|
|
80
|
+
"trigger": "prop"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"name": "focus-+-not-hover",
|
|
84
|
+
"trigger": "prop"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "keyboard-focus",
|
|
88
|
+
"trigger": "interaction"
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"lifecycle": {
|
|
92
|
+
"introduced": "1.0.0-draft"
|
|
93
|
+
}
|
|
94
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
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/contextual-help.json",
|
|
4
|
+
"specVersion": "1.0.0-draft",
|
|
5
|
+
"name": "contextual-help",
|
|
6
|
+
"displayName": "Contextual help",
|
|
7
|
+
"description": "Contextual help shows a user extra information about the state of either an adjacent component or an entire view. It explains a high-level topic about an experience and can point users to more information elsewhere.",
|
|
8
|
+
"meta": {
|
|
9
|
+
"category": "feedback",
|
|
10
|
+
"documentationUrl": "https://spectrum.adobe.com/page/contextual-help/"
|
|
11
|
+
},
|
|
12
|
+
"options": {
|
|
13
|
+
"icon": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"enum": ["info", "help"],
|
|
16
|
+
"default": "info"
|
|
17
|
+
},
|
|
18
|
+
"popoverPlacement": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"enum": [
|
|
21
|
+
"top",
|
|
22
|
+
"top left",
|
|
23
|
+
"top right",
|
|
24
|
+
"top start",
|
|
25
|
+
"top end",
|
|
26
|
+
"bottom",
|
|
27
|
+
"bottom left",
|
|
28
|
+
"bottom right",
|
|
29
|
+
"bottom start",
|
|
30
|
+
"bottom end",
|
|
31
|
+
"left",
|
|
32
|
+
"left top",
|
|
33
|
+
"left bottom",
|
|
34
|
+
"start",
|
|
35
|
+
"start top",
|
|
36
|
+
"start bottom",
|
|
37
|
+
"right",
|
|
38
|
+
"right top",
|
|
39
|
+
"right bottom",
|
|
40
|
+
"end",
|
|
41
|
+
"end top",
|
|
42
|
+
"end bottom"
|
|
43
|
+
],
|
|
44
|
+
"default": "bottom start"
|
|
45
|
+
},
|
|
46
|
+
"popoverOffset": {
|
|
47
|
+
"type": "number",
|
|
48
|
+
"default": 8
|
|
49
|
+
},
|
|
50
|
+
"href": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"description": "Optional URL within contextual help content like a 'Learn more' link."
|
|
53
|
+
},
|
|
54
|
+
"popoverCrossOffset": {
|
|
55
|
+
"type": "number",
|
|
56
|
+
"default": 0
|
|
57
|
+
},
|
|
58
|
+
"containerPadding": {
|
|
59
|
+
"type": "number",
|
|
60
|
+
"default": 8
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"states": [
|
|
64
|
+
{
|
|
65
|
+
"name": "down",
|
|
66
|
+
"trigger": "interaction"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "open",
|
|
70
|
+
"trigger": "prop"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "keyboard-focus",
|
|
74
|
+
"trigger": "interaction"
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
"lifecycle": {
|
|
78
|
+
"introduced": "1.0.0-draft"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -0,0 +1,161 @@
|
|
|
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
|
+
}
|
|
@@ -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,27 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
}
|
|
@@ -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
|
+
}
|