@adobe/spectrum-tokens 12.12.1 → 12.13.1
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 +105 -0
- package/dist/json/drover.json +94 -0
- package/dist/json/variables.json +1154 -0
- package/manifest.json +7 -3
- package/moon.yml +2 -1
- package/package.json +3 -2
- package/schemas/component.json +29 -0
- package/schemas/components/action-bar.json +18 -0
- package/schemas/components/action-button.json +62 -0
- package/schemas/components/action-group.json +69 -0
- package/schemas/components/alert-banner.json +29 -0
- package/schemas/components/alert-dialog.json +42 -0
- package/schemas/components/avatar.json +30 -0
- package/schemas/components/badge.json +50 -0
- package/schemas/components/body.json +25 -0
- package/schemas/components/bottom-navigation-android.json +37 -0
- package/schemas/components/breadcrumbs.json +18 -0
- package/schemas/components/button-group.json +28 -0
- package/schemas/components/button.json +60 -0
- package/schemas/components/checkbox-group.json +53 -0
- package/schemas/components/checkbox.json +52 -0
- package/schemas/components/close-button.json +35 -0
- package/schemas/components/code.json +21 -0
- package/schemas/components/color-area.json +64 -0
- package/schemas/components/color-loupe.json +21 -0
- package/schemas/components/color-slider.json +52 -0
- package/schemas/components/color-wheel.json +47 -0
- package/schemas/components/combo-box.json +84 -0
- package/schemas/components/contextual-help.json +64 -0
- package/schemas/components/detail.json +26 -0
- package/schemas/components/divider.json +23 -0
- package/schemas/components/field-label.json +39 -0
- package/schemas/components/heading.json +29 -0
- package/schemas/components/help-text.json +35 -0
- package/schemas/components/in-line-alert.json +25 -0
- package/schemas/components/link.json +32 -0
- package/schemas/components/menu.json +65 -0
- package/schemas/components/meter.json +37 -0
- package/schemas/components/picker.json +85 -0
- package/schemas/components/popover.json +65 -0
- package/schemas/components/progress-bar.json +50 -0
- package/schemas/components/progress-circle.json +41 -0
- package/schemas/components/radio-group.json +62 -0
- package/schemas/components/rating.json +31 -0
- package/schemas/components/scroll-zoom-bar.json +44 -0
- package/schemas/components/side-navigation.json +18 -0
- package/schemas/components/slider.json +74 -0
- package/schemas/components/status-light.json +44 -0
- package/schemas/components/swatch-group.json +38 -0
- package/schemas/components/swatch.json +45 -0
- package/schemas/components/switch.json +42 -0
- package/schemas/components/tab-bar-ios.json +37 -0
- package/schemas/components/tabs.json +32 -0
- package/schemas/components/tag.json +41 -0
- package/schemas/components/text-area.json +98 -0
- package/schemas/components/text-field.json +86 -0
- package/schemas/components/toast.json +29 -0
- package/schemas/components/tooltip.json +50 -0
- package/schemas/components/tray.json +17 -0
- package/schemas/components/tree-view.json +50 -0
- package/schemas/types/component-size.json +8 -0
- package/schemas/types/hex-color.json +8 -0
- package/schemas/types/typography-classification.json +9 -0
- package/schemas/types/typography-script.json +9 -0
- package/schemas/types/workflow-icon.json +901 -0
- package/src/color-component.json +45 -0
- package/src/layout-component.json +923 -0
- package/tasks/buildManifest.js +6 -1
- package/tasks/diff.js +1 -1
- package/test/checkId.test.js +64 -0
- package/test/schemaValidator.test.js +74 -0
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/component.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-tokens/schema/components/menu.json",
|
|
4
|
+
"title": "Menu",
|
|
5
|
+
"description": "Menus help users take actions, choose from a list of options, configure settings, and more. They can be placed in a transient container, like a popover or tray.",
|
|
6
|
+
"meta": {
|
|
7
|
+
"category": "actions",
|
|
8
|
+
"documentationUrl": "https://spectrum.adobe.com/page/menu/"
|
|
9
|
+
},
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": {
|
|
12
|
+
"container": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"enum": ["popover", "tray"],
|
|
15
|
+
"default": null
|
|
16
|
+
},
|
|
17
|
+
"label": {
|
|
18
|
+
"type": "string"
|
|
19
|
+
},
|
|
20
|
+
"icon": {
|
|
21
|
+
"$ref": "https://opensource.adobe.com/spectrum-tokens/schemas/types/workflow-icon.json",
|
|
22
|
+
"description": "Icon must be present if the label is not defined."
|
|
23
|
+
},
|
|
24
|
+
"description": {
|
|
25
|
+
"type": "string"
|
|
26
|
+
},
|
|
27
|
+
"value": {
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
"size": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"enum": ["s", "m", "l", "xl"],
|
|
33
|
+
"default": "m"
|
|
34
|
+
},
|
|
35
|
+
"selectionMode": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"enum": ["single", "multiple"],
|
|
38
|
+
"default": null
|
|
39
|
+
},
|
|
40
|
+
"selectionStyle": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"enum": ["checkbox", "switch"]
|
|
43
|
+
},
|
|
44
|
+
"sectionHeader": {
|
|
45
|
+
"type": "string"
|
|
46
|
+
},
|
|
47
|
+
"isCollapsible": {
|
|
48
|
+
"type": "boolean",
|
|
49
|
+
"default": false
|
|
50
|
+
},
|
|
51
|
+
"isUnavailable": {
|
|
52
|
+
"type": "boolean",
|
|
53
|
+
"default": false
|
|
54
|
+
},
|
|
55
|
+
"isDisabled": {
|
|
56
|
+
"type": "boolean",
|
|
57
|
+
"default": false
|
|
58
|
+
},
|
|
59
|
+
"state": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"enum": ["default", "hover", "down", "keyboard focus"],
|
|
62
|
+
"default": "default"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/component.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-tokens/schema/components/meter.json",
|
|
4
|
+
"title": "Meter",
|
|
5
|
+
"description": "Meters are visual representations of a quantity or an achievement. Their progress is determined by user actions, rather than system actions.",
|
|
6
|
+
"meta": {
|
|
7
|
+
"category": "status",
|
|
8
|
+
"documentationUrl": "https://spectrum.adobe.com/page/meter/"
|
|
9
|
+
},
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": {
|
|
12
|
+
"variant": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"enum": ["informative", "positive", "notice", "negative"],
|
|
15
|
+
"default": "informative"
|
|
16
|
+
},
|
|
17
|
+
"label": {
|
|
18
|
+
"type": "string"
|
|
19
|
+
},
|
|
20
|
+
"valueLable": {
|
|
21
|
+
"type": "string"
|
|
22
|
+
},
|
|
23
|
+
"width": {
|
|
24
|
+
"type": "number"
|
|
25
|
+
},
|
|
26
|
+
"size": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"enum": ["small", "large"],
|
|
29
|
+
"default": "large"
|
|
30
|
+
},
|
|
31
|
+
"value": {
|
|
32
|
+
"type": "number",
|
|
33
|
+
"minimum": 0,
|
|
34
|
+
"maximum": 1
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/component.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-tokens/schema/components/picker.json",
|
|
4
|
+
"title": "Picker",
|
|
5
|
+
"description": "Pickers (sometimes known as \"dropdowns\" or \"selects\") allow users to choose from a list of options in a limited space. The list of options can change based on the context.",
|
|
6
|
+
"meta": {
|
|
7
|
+
"category": "inputs",
|
|
8
|
+
"documentationUrl": "https://spectrum.adobe.com/page/picker/"
|
|
9
|
+
},
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": {
|
|
12
|
+
"label": {
|
|
13
|
+
"type": "string"
|
|
14
|
+
},
|
|
15
|
+
"labelPosition": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"default": "top",
|
|
18
|
+
"enum": ["top", "side"]
|
|
19
|
+
},
|
|
20
|
+
"placeholder": {
|
|
21
|
+
"type": "string"
|
|
22
|
+
},
|
|
23
|
+
"value": {
|
|
24
|
+
"type": "string"
|
|
25
|
+
},
|
|
26
|
+
"width": {
|
|
27
|
+
"type": "number",
|
|
28
|
+
"description": "Not applicable to quiet picker."
|
|
29
|
+
},
|
|
30
|
+
"size": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"enum": ["s", "m", "l", "xl"],
|
|
33
|
+
"default": "m"
|
|
34
|
+
},
|
|
35
|
+
"isQuiet": {
|
|
36
|
+
"type": "boolean",
|
|
37
|
+
"default": false
|
|
38
|
+
},
|
|
39
|
+
"necessityIndicator": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"enum": ["text", "icon"],
|
|
42
|
+
"default": "icon"
|
|
43
|
+
},
|
|
44
|
+
"isRequired": {
|
|
45
|
+
"type": "boolean",
|
|
46
|
+
"default": false
|
|
47
|
+
},
|
|
48
|
+
"menuContainer": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"enum": ["popover", "tray"],
|
|
51
|
+
"default": "popover"
|
|
52
|
+
},
|
|
53
|
+
"isDisabled": {
|
|
54
|
+
"type": "boolean",
|
|
55
|
+
"default": false
|
|
56
|
+
},
|
|
57
|
+
"isError": {
|
|
58
|
+
"type": "boolean",
|
|
59
|
+
"default": false
|
|
60
|
+
},
|
|
61
|
+
"isReadOnly": {
|
|
62
|
+
"type": "boolean",
|
|
63
|
+
"default": false
|
|
64
|
+
},
|
|
65
|
+
"description": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"default": null
|
|
68
|
+
},
|
|
69
|
+
"errorMessage": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"default": null
|
|
72
|
+
},
|
|
73
|
+
"state": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"enum": [
|
|
76
|
+
"default",
|
|
77
|
+
"hover",
|
|
78
|
+
"focus + hover",
|
|
79
|
+
"focus + not hover",
|
|
80
|
+
"keyboard focus"
|
|
81
|
+
],
|
|
82
|
+
"default": "default"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/component.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-tokens/schema/components/popover.json",
|
|
4
|
+
"title": "Popover",
|
|
5
|
+
"description": "Popovers are containers used to display transient content such as menus, options, additional actions, and more. They visually stand out through stroke and drop shadow and float on top of the interface.",
|
|
6
|
+
"meta": {
|
|
7
|
+
"category": "containers",
|
|
8
|
+
"documentationUrl": "https://spectrum.adobe.com/page/popover/"
|
|
9
|
+
},
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": {
|
|
12
|
+
"width": {
|
|
13
|
+
"type": "integer"
|
|
14
|
+
},
|
|
15
|
+
"height": {
|
|
16
|
+
"type": "number"
|
|
17
|
+
},
|
|
18
|
+
"showTip": {
|
|
19
|
+
"type": "boolean",
|
|
20
|
+
"default": false
|
|
21
|
+
},
|
|
22
|
+
"placement": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"enum": [
|
|
25
|
+
"top",
|
|
26
|
+
"top left",
|
|
27
|
+
"top right",
|
|
28
|
+
"top start",
|
|
29
|
+
"top end",
|
|
30
|
+
"bottom",
|
|
31
|
+
"bottom left",
|
|
32
|
+
"bottom right",
|
|
33
|
+
"bottom start",
|
|
34
|
+
"bottom end",
|
|
35
|
+
"left",
|
|
36
|
+
"left top",
|
|
37
|
+
"left bottom",
|
|
38
|
+
"start",
|
|
39
|
+
"start top",
|
|
40
|
+
"start bottom",
|
|
41
|
+
"right",
|
|
42
|
+
"right top",
|
|
43
|
+
"right bottom",
|
|
44
|
+
"end",
|
|
45
|
+
"end top",
|
|
46
|
+
"end bottom"
|
|
47
|
+
],
|
|
48
|
+
"default": "bottom"
|
|
49
|
+
},
|
|
50
|
+
"offset": {
|
|
51
|
+
"type": "number",
|
|
52
|
+
"default": 6,
|
|
53
|
+
"description": "default: 6 px (desktop) or 8 px (mobile)"
|
|
54
|
+
},
|
|
55
|
+
"crossOffset": {
|
|
56
|
+
"type": "number",
|
|
57
|
+
"default": 0
|
|
58
|
+
},
|
|
59
|
+
"containerPadding": {
|
|
60
|
+
"type": "number",
|
|
61
|
+
"default": 8,
|
|
62
|
+
"description": "pixel measurement"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/component.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-tokens/schema/components/progress-bar.json",
|
|
4
|
+
"title": "Progress bar",
|
|
5
|
+
"description": "Progress bars show the progression of a system operation: downloading, uploading, processing, etc., in a visual way. They can represent either determinate or indeterminate progress.",
|
|
6
|
+
"meta": {
|
|
7
|
+
"category": "status",
|
|
8
|
+
"documentationUrl": "https://spectrum.adobe.com/page/progress-bar/"
|
|
9
|
+
},
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": {
|
|
12
|
+
"variant": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"enum": ["default", "over background"],
|
|
15
|
+
"default": "default"
|
|
16
|
+
},
|
|
17
|
+
"label": {
|
|
18
|
+
"type": "string"
|
|
19
|
+
},
|
|
20
|
+
"value": {
|
|
21
|
+
"type": "number",
|
|
22
|
+
"description": "Not applicable when indeterminate."
|
|
23
|
+
},
|
|
24
|
+
"minValue": {
|
|
25
|
+
"type": "number",
|
|
26
|
+
"default": 0,
|
|
27
|
+
"description": "Not applicable when indeterminate."
|
|
28
|
+
},
|
|
29
|
+
"maxValue": {
|
|
30
|
+
"type": "number",
|
|
31
|
+
"default": 1,
|
|
32
|
+
"description": "Not applicable when indeterminate."
|
|
33
|
+
},
|
|
34
|
+
"valueLabel": {
|
|
35
|
+
"type": "string"
|
|
36
|
+
},
|
|
37
|
+
"width": {
|
|
38
|
+
"type": "number"
|
|
39
|
+
},
|
|
40
|
+
"size": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"enum": ["s", "m", "l", "xl"],
|
|
43
|
+
"default": "m"
|
|
44
|
+
},
|
|
45
|
+
"isIndeterminate": {
|
|
46
|
+
"type": "boolean",
|
|
47
|
+
"default": false
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/component.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-tokens/schema/components/progress-circle.json",
|
|
4
|
+
"title": "Progress circle",
|
|
5
|
+
"description": "Progress circles show the progression of a system operation such as downloading, uploading, processing, etc. in a visual way. They can represent determinate or indeterminate progress.",
|
|
6
|
+
"meta": {
|
|
7
|
+
"category": "status",
|
|
8
|
+
"documentationUrl": "https://spectrum.adobe.com/page/progress-circle/"
|
|
9
|
+
},
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": {
|
|
12
|
+
"variant": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"enum": ["default", "over background"],
|
|
15
|
+
"default": "default"
|
|
16
|
+
},
|
|
17
|
+
"value": {
|
|
18
|
+
"type": "number",
|
|
19
|
+
"description": "Not applicable when indeterminate."
|
|
20
|
+
},
|
|
21
|
+
"minValue": {
|
|
22
|
+
"type": "number",
|
|
23
|
+
"default": 0,
|
|
24
|
+
"description": "Not applicable when indeterminate."
|
|
25
|
+
},
|
|
26
|
+
"maxValue": {
|
|
27
|
+
"type": "number",
|
|
28
|
+
"default": 1,
|
|
29
|
+
"description": "Not applicable when indeterminate."
|
|
30
|
+
},
|
|
31
|
+
"size": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"enum": ["s", "m", "l"],
|
|
34
|
+
"default": "m"
|
|
35
|
+
},
|
|
36
|
+
"isIndeterminate": {
|
|
37
|
+
"type": "boolean",
|
|
38
|
+
"default": false
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/component.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-tokens/schema/components/radio-group.json",
|
|
4
|
+
"title": "Radio Group",
|
|
5
|
+
"description": "A radio group is a grouping of radio buttons that are related to each other.",
|
|
6
|
+
"meta": {
|
|
7
|
+
"category": "inputs",
|
|
8
|
+
"documentationUrl": "https://spectrum.adobe.com/page/radio-group/"
|
|
9
|
+
},
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": {
|
|
12
|
+
"label": {
|
|
13
|
+
"type": "string"
|
|
14
|
+
},
|
|
15
|
+
"labelPosition": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"enum": ["top", "side"],
|
|
18
|
+
"default": "top"
|
|
19
|
+
},
|
|
20
|
+
"orientation": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"enum": ["horizontal", "vertical"],
|
|
23
|
+
"default": "vertical"
|
|
24
|
+
},
|
|
25
|
+
"size": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"enum": ["s", "m", "l", "xl"],
|
|
28
|
+
"default": "m"
|
|
29
|
+
},
|
|
30
|
+
"isEmphasized": {
|
|
31
|
+
"type": "boolean",
|
|
32
|
+
"default": false
|
|
33
|
+
},
|
|
34
|
+
"necessityIndicator": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"enum": ["text", "icon"],
|
|
37
|
+
"default": "icon"
|
|
38
|
+
},
|
|
39
|
+
"isRequired": {
|
|
40
|
+
"type": "boolean",
|
|
41
|
+
"default": false
|
|
42
|
+
},
|
|
43
|
+
"isError": {
|
|
44
|
+
"type": "boolean",
|
|
45
|
+
"default": false
|
|
46
|
+
},
|
|
47
|
+
"isDisabled": {
|
|
48
|
+
"type": "boolean",
|
|
49
|
+
"default": false
|
|
50
|
+
},
|
|
51
|
+
"isReadOnly": {
|
|
52
|
+
"type": "boolean",
|
|
53
|
+
"default": false
|
|
54
|
+
},
|
|
55
|
+
"errorMessage": {
|
|
56
|
+
"type": "string"
|
|
57
|
+
},
|
|
58
|
+
"description": {
|
|
59
|
+
"type": "string"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/component.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-tokens/schema/components/rating.json",
|
|
4
|
+
"title": "Rating",
|
|
5
|
+
"description": "The rating component lets users apply a rating to an item or experience, such as an image, a forum post, an item for sale in a marketplace, and more.",
|
|
6
|
+
"meta": {
|
|
7
|
+
"category": "inputs",
|
|
8
|
+
"documentationUrl": "https://spectrum.adobe.com/page/rating/"
|
|
9
|
+
},
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": {
|
|
12
|
+
"value": {
|
|
13
|
+
"type": "integer",
|
|
14
|
+
"minimum": 0,
|
|
15
|
+
"maximum": 5
|
|
16
|
+
},
|
|
17
|
+
"isEmphasized": {
|
|
18
|
+
"type": "boolean",
|
|
19
|
+
"default": false
|
|
20
|
+
},
|
|
21
|
+
"isDisabled": {
|
|
22
|
+
"type": "boolean",
|
|
23
|
+
"default": false
|
|
24
|
+
},
|
|
25
|
+
"state": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"enum": ["default", "hover", "down", "keyboard focus"],
|
|
28
|
+
"default": "default"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/component.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-tokens/schema/components/scroll-zoom-bar.json",
|
|
4
|
+
"title": "Scroll-zoom bar",
|
|
5
|
+
"description": "Primarily for usage in timelines, a scroll-zoom bar lets a user scroll or zoom with the same control.",
|
|
6
|
+
"meta": {
|
|
7
|
+
"category": "navigation",
|
|
8
|
+
"documentationUrl": "https://spectrum.adobe.com/page/scroll-zoom-bar/"
|
|
9
|
+
},
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": {
|
|
12
|
+
"size": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"enum": ["s", "m", "l"],
|
|
15
|
+
"default": "m"
|
|
16
|
+
},
|
|
17
|
+
"orientation": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"enum": ["horizontal", "vertical"],
|
|
20
|
+
"default": "horizontal"
|
|
21
|
+
},
|
|
22
|
+
"hideTrack": {
|
|
23
|
+
"type": "boolean",
|
|
24
|
+
"default": false
|
|
25
|
+
},
|
|
26
|
+
"hideHandles": {
|
|
27
|
+
"type": "boolean",
|
|
28
|
+
"default": false
|
|
29
|
+
},
|
|
30
|
+
"scaleDown": {
|
|
31
|
+
"type": "boolean",
|
|
32
|
+
"default": false
|
|
33
|
+
},
|
|
34
|
+
"isDetatched": {
|
|
35
|
+
"type": "boolean",
|
|
36
|
+
"default": false
|
|
37
|
+
},
|
|
38
|
+
"state": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"enum": ["default", "hover", "keyboard focus"],
|
|
41
|
+
"default": "default"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/component.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-tokens/schema/components/side-navigation.json",
|
|
4
|
+
"title": "Side navigation",
|
|
5
|
+
"description": "Side navigation lets users navigate the entire content of a product or a section. These can be used for a single level or a multi-level navigation.",
|
|
6
|
+
"meta": {
|
|
7
|
+
"category": "navigation",
|
|
8
|
+
"documentationUrl": "https://spectrum.adobe.com/page/side-navigation/"
|
|
9
|
+
},
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": {
|
|
12
|
+
"state": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"enum": ["default", "hover", "down", "keyboard focus"],
|
|
15
|
+
"default": "default"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/component.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-tokens/schema/components/slider.json",
|
|
4
|
+
"title": "Slider",
|
|
5
|
+
"description": "Sliders allow users to quickly select a value within a range. They should be used when the upper and lower bounds to the range are invariable.",
|
|
6
|
+
"meta": {
|
|
7
|
+
"category": "inputs",
|
|
8
|
+
"documentationUrl": "https://spectrum.adobe.com/page/slider/"
|
|
9
|
+
},
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": {
|
|
12
|
+
"label": {
|
|
13
|
+
"type": "string"
|
|
14
|
+
},
|
|
15
|
+
"labelPosition": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"default": "top",
|
|
18
|
+
"enum": ["top", "side"]
|
|
19
|
+
},
|
|
20
|
+
"value": {
|
|
21
|
+
"type": "number",
|
|
22
|
+
"description": "from minValue to maxValue"
|
|
23
|
+
},
|
|
24
|
+
"minValue": {
|
|
25
|
+
"type": "number",
|
|
26
|
+
"default": 0
|
|
27
|
+
},
|
|
28
|
+
"maxValue": {
|
|
29
|
+
"type": "number",
|
|
30
|
+
"default": 100
|
|
31
|
+
},
|
|
32
|
+
"step": {
|
|
33
|
+
"type": "number",
|
|
34
|
+
"default": 1
|
|
35
|
+
},
|
|
36
|
+
"valueFormat": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"description": "This will vary depending on implementation."
|
|
39
|
+
},
|
|
40
|
+
"progressionScale": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"enum": ["linear", "log"],
|
|
43
|
+
"default": "linear"
|
|
44
|
+
},
|
|
45
|
+
"width": {
|
|
46
|
+
"type": "number"
|
|
47
|
+
},
|
|
48
|
+
"hasFill": {
|
|
49
|
+
"type": "boolean",
|
|
50
|
+
"default": false
|
|
51
|
+
},
|
|
52
|
+
"fillStart": {
|
|
53
|
+
"type": "number",
|
|
54
|
+
"default": 0
|
|
55
|
+
},
|
|
56
|
+
"hasGradient": {
|
|
57
|
+
"type": "boolean",
|
|
58
|
+
"default": false
|
|
59
|
+
},
|
|
60
|
+
"isEditable": {
|
|
61
|
+
"type": "boolean",
|
|
62
|
+
"default": false
|
|
63
|
+
},
|
|
64
|
+
"isDisabled": {
|
|
65
|
+
"type": "boolean",
|
|
66
|
+
"default": false
|
|
67
|
+
},
|
|
68
|
+
"state": {
|
|
69
|
+
"type": "string",
|
|
70
|
+
"enum": ["default", "hover", "down", "keyboard focus"],
|
|
71
|
+
"default": "default"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/component.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-tokens/schema/components/status-light.json",
|
|
4
|
+
"title": "Status light",
|
|
5
|
+
"description": "Status lights describe the condition of an entity. They can be used to convey semantic meaning, such as statuses and categories.",
|
|
6
|
+
"meta": {
|
|
7
|
+
"category": "status",
|
|
8
|
+
"documentationUrl": "https://spectrum.adobe.com/page/status-light/"
|
|
9
|
+
},
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": {
|
|
12
|
+
"label": {
|
|
13
|
+
"type": "string"
|
|
14
|
+
},
|
|
15
|
+
"variant": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"enum": [
|
|
18
|
+
"informative",
|
|
19
|
+
"neutral",
|
|
20
|
+
"positive",
|
|
21
|
+
"notice",
|
|
22
|
+
"negative",
|
|
23
|
+
"indigo",
|
|
24
|
+
"celery",
|
|
25
|
+
"chartreuse",
|
|
26
|
+
"yellow",
|
|
27
|
+
"magenta",
|
|
28
|
+
"fuchsia",
|
|
29
|
+
"purple",
|
|
30
|
+
"seafoam"
|
|
31
|
+
],
|
|
32
|
+
"default": "informative"
|
|
33
|
+
},
|
|
34
|
+
"size": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"enum": ["s", "m", "l", "xl"],
|
|
37
|
+
"default": "m"
|
|
38
|
+
},
|
|
39
|
+
"isDisabled": {
|
|
40
|
+
"type": "boolean",
|
|
41
|
+
"default": false
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/component.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-tokens/schema/components/swatch-group.json",
|
|
4
|
+
"title": "Swatch group",
|
|
5
|
+
"description": "A swatch group is a grouping of swatches that are related to each other.",
|
|
6
|
+
"meta": {
|
|
7
|
+
"category": "inputs",
|
|
8
|
+
"documentationUrl": "https://spectrum.adobe.com/page/swatch-group/"
|
|
9
|
+
},
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": {
|
|
12
|
+
"size": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"enum": ["xs", "s", "m", "l"],
|
|
15
|
+
"default": "m"
|
|
16
|
+
},
|
|
17
|
+
"density": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"enum": ["compact", "regular", "spacious"],
|
|
20
|
+
"default": "regular"
|
|
21
|
+
},
|
|
22
|
+
"enableSelection": {
|
|
23
|
+
"type": "boolean",
|
|
24
|
+
"default": false
|
|
25
|
+
},
|
|
26
|
+
"selectionMode": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"description": "Only applicable if selection is enabled.",
|
|
29
|
+
"enum": ["single", "multiple"],
|
|
30
|
+
"default": "single"
|
|
31
|
+
},
|
|
32
|
+
"allowsEmptySelection": {
|
|
33
|
+
"type": "boolean",
|
|
34
|
+
"default": false,
|
|
35
|
+
"description": "Only applicable if selection is enabled."
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|