@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,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/component.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-tokens/schema/components/swatch.json",
|
|
4
|
+
"title": "Swatch",
|
|
5
|
+
"description": "A swatch shows a small sample of a fill — such as a color, gradient, texture, or material — that is intended to be applied to an object.",
|
|
6
|
+
"meta": {
|
|
7
|
+
"category": "inputs",
|
|
8
|
+
"documentationUrl": "https://spectrum.adobe.com/page/swatch/"
|
|
9
|
+
},
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": {
|
|
12
|
+
"preview": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"description": "This will vary depending on implementation."
|
|
15
|
+
},
|
|
16
|
+
"size": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"enum": ["xs", "s", "m", "l"],
|
|
19
|
+
"default": "m"
|
|
20
|
+
},
|
|
21
|
+
"shape": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"enum": ["square", "rectangle"],
|
|
24
|
+
"default": "square"
|
|
25
|
+
},
|
|
26
|
+
"cornerRounding": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"enum": ["default", "full"],
|
|
29
|
+
"default": "default"
|
|
30
|
+
},
|
|
31
|
+
"isSelected": {
|
|
32
|
+
"type": "boolean",
|
|
33
|
+
"default": false
|
|
34
|
+
},
|
|
35
|
+
"isDisabled": {
|
|
36
|
+
"type": "boolean",
|
|
37
|
+
"default": false
|
|
38
|
+
},
|
|
39
|
+
"state": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"enum": ["default", "hover", "down", "keyboard focus"],
|
|
42
|
+
"default": "default"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/component.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-tokens/schema/components/switch.json",
|
|
4
|
+
"title": "Switch",
|
|
5
|
+
"description": "Switches allow users to turn an individual option on or off. They are usually used to activate or deactivate a specific setting.",
|
|
6
|
+
"meta": {
|
|
7
|
+
"category": "inputs",
|
|
8
|
+
"documentationUrl": "https://spectrum.adobe.com/page/switch/"
|
|
9
|
+
},
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": {
|
|
12
|
+
"label": {
|
|
13
|
+
"type": "string"
|
|
14
|
+
},
|
|
15
|
+
"isSelected": {
|
|
16
|
+
"type": "boolean",
|
|
17
|
+
"default": false
|
|
18
|
+
},
|
|
19
|
+
"size": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"enum": ["s", "m", "l", "xl"],
|
|
22
|
+
"default": "m"
|
|
23
|
+
},
|
|
24
|
+
"isEmphasized": {
|
|
25
|
+
"type": "boolean",
|
|
26
|
+
"default": false
|
|
27
|
+
},
|
|
28
|
+
"isDisabled": {
|
|
29
|
+
"type": "boolean",
|
|
30
|
+
"default": false
|
|
31
|
+
},
|
|
32
|
+
"isReadOnly": {
|
|
33
|
+
"type": "boolean",
|
|
34
|
+
"default": false
|
|
35
|
+
},
|
|
36
|
+
"state": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"enum": ["default", "hover", "down", "keyboard focus"],
|
|
39
|
+
"default": "default"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -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/tab-bar-ios.json",
|
|
4
|
+
"title": "Tab bar (iOS)",
|
|
5
|
+
"description": "Tab bar is a top-level navigation control for iOS apps.",
|
|
6
|
+
"meta": {
|
|
7
|
+
"category": "navigation",
|
|
8
|
+
"documentationUrl": "https://spectrum.adobe.com/page/tab-bar-ios/"
|
|
9
|
+
},
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": {
|
|
12
|
+
"label": {
|
|
13
|
+
"type": "string"
|
|
14
|
+
},
|
|
15
|
+
"labelPosition": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"enum": ["bottom", "side"],
|
|
18
|
+
"default": "bottom"
|
|
19
|
+
},
|
|
20
|
+
"icon": {
|
|
21
|
+
"$ref": "https://opensource.adobe.com/spectrum-tokens/schemas/types/workflow-icon.json"
|
|
22
|
+
},
|
|
23
|
+
"background": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"enum": ["primary", "secondary"],
|
|
26
|
+
"default": "primary"
|
|
27
|
+
},
|
|
28
|
+
"hasBadge": {
|
|
29
|
+
"type": "boolean",
|
|
30
|
+
"default": false
|
|
31
|
+
},
|
|
32
|
+
"isDisabled": {
|
|
33
|
+
"type": "boolean",
|
|
34
|
+
"default": false
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/component.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-tokens/schema/components/tabs.json",
|
|
4
|
+
"title": "Tabs",
|
|
5
|
+
"description": "Tabs organize content into multiple sections and allow users to navigate between them. The content under the set of tabs should be related and form a coherent unit.",
|
|
6
|
+
"meta": {
|
|
7
|
+
"category": "navigation",
|
|
8
|
+
"documentationUrl": "https://spectrum.adobe.com/page/tabs/"
|
|
9
|
+
},
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": {
|
|
12
|
+
"label": {
|
|
13
|
+
"type": "string"
|
|
14
|
+
},
|
|
15
|
+
"icon": {
|
|
16
|
+
"$ref": "https://opensource.adobe.com/spectrum-tokens/schemas/types/workflow-icon.json"
|
|
17
|
+
},
|
|
18
|
+
"isSelected": {
|
|
19
|
+
"type": "boolean",
|
|
20
|
+
"default": false
|
|
21
|
+
},
|
|
22
|
+
"isDisabled": {
|
|
23
|
+
"type": "boolean",
|
|
24
|
+
"default": false
|
|
25
|
+
},
|
|
26
|
+
"state": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"enum": ["default", "hover", "down", "keyboard focus"],
|
|
29
|
+
"default": "default"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -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/tag.json",
|
|
4
|
+
"title": "Tag",
|
|
5
|
+
"description": "Tags allow users to categorize content. They can represent keywords or people, and are grouped to describe an item or a search request.",
|
|
6
|
+
"meta": {
|
|
7
|
+
"category": "navigation",
|
|
8
|
+
"documentationUrl": "https://spectrum.adobe.com/page/tag/"
|
|
9
|
+
},
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": {
|
|
12
|
+
"label": {
|
|
13
|
+
"type": "string"
|
|
14
|
+
},
|
|
15
|
+
"hasAvatar": {
|
|
16
|
+
"type": "boolean",
|
|
17
|
+
"default": false
|
|
18
|
+
},
|
|
19
|
+
"isRemovable": {
|
|
20
|
+
"type": "boolean",
|
|
21
|
+
"default": false
|
|
22
|
+
},
|
|
23
|
+
"isError": {
|
|
24
|
+
"type": "boolean",
|
|
25
|
+
"default": false
|
|
26
|
+
},
|
|
27
|
+
"isDisabled": {
|
|
28
|
+
"type": "boolean",
|
|
29
|
+
"default": false
|
|
30
|
+
},
|
|
31
|
+
"isReadOnly": {
|
|
32
|
+
"type": "boolean",
|
|
33
|
+
"default": false
|
|
34
|
+
},
|
|
35
|
+
"state": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"enum": ["default", "hover", "down", "keyboard focus"],
|
|
38
|
+
"default": "default"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/component.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-tokens/schema/components/text-area.json",
|
|
4
|
+
"title": "Text area",
|
|
5
|
+
"description": "A text area lets a user input a longer amount of text than a standard text field. It can include all of the standard validation options supported by the text field component.",
|
|
6
|
+
"meta": {
|
|
7
|
+
"category": "inputs",
|
|
8
|
+
"documentationUrl": "https://spectrum.adobe.com/page/text-area/"
|
|
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": "string",
|
|
22
|
+
"description": "from minValue to maxValue"
|
|
23
|
+
},
|
|
24
|
+
"width": {
|
|
25
|
+
"type": "number"
|
|
26
|
+
},
|
|
27
|
+
"size": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"enum": ["s", "m", "l", "xl"],
|
|
30
|
+
"default": "m"
|
|
31
|
+
},
|
|
32
|
+
"isQuiet": {
|
|
33
|
+
"type": "boolean",
|
|
34
|
+
"default": false
|
|
35
|
+
},
|
|
36
|
+
"necessityIndicator": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"enum": ["text", "icon"],
|
|
39
|
+
"default": "icon"
|
|
40
|
+
},
|
|
41
|
+
"isRequired": {
|
|
42
|
+
"type": "boolean",
|
|
43
|
+
"default": false
|
|
44
|
+
},
|
|
45
|
+
"hasCharacterCount": {
|
|
46
|
+
"type": "boolean",
|
|
47
|
+
"default": false
|
|
48
|
+
},
|
|
49
|
+
"showValidIcon": {
|
|
50
|
+
"type": "boolean",
|
|
51
|
+
"default": false
|
|
52
|
+
},
|
|
53
|
+
"isError": {
|
|
54
|
+
"type": "boolean",
|
|
55
|
+
"default": false
|
|
56
|
+
},
|
|
57
|
+
"isDisabled": {
|
|
58
|
+
"type": "boolean",
|
|
59
|
+
"default": false
|
|
60
|
+
},
|
|
61
|
+
"isReadOnly": {
|
|
62
|
+
"type": "boolean",
|
|
63
|
+
"default": false
|
|
64
|
+
},
|
|
65
|
+
"hideDragIcon": {
|
|
66
|
+
"type": "boolean",
|
|
67
|
+
"default": false
|
|
68
|
+
},
|
|
69
|
+
"height": {
|
|
70
|
+
"type": "number",
|
|
71
|
+
"description": "If undefined, height is dynamic and grows with input text."
|
|
72
|
+
},
|
|
73
|
+
"description": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"default": null
|
|
76
|
+
},
|
|
77
|
+
"errorMessage": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"default": null
|
|
80
|
+
},
|
|
81
|
+
"inputType": {
|
|
82
|
+
"type": "string",
|
|
83
|
+
"enum": ["text", "url", "phone", "email", "password"],
|
|
84
|
+
"default": "text"
|
|
85
|
+
},
|
|
86
|
+
"state": {
|
|
87
|
+
"type": "string",
|
|
88
|
+
"enum": [
|
|
89
|
+
"default",
|
|
90
|
+
"hover",
|
|
91
|
+
"focus + hover",
|
|
92
|
+
"focus + not hover",
|
|
93
|
+
"keyboard focus"
|
|
94
|
+
],
|
|
95
|
+
"default": "default"
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/component.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-tokens/schema/components/text-field.json",
|
|
4
|
+
"title": "Text field",
|
|
5
|
+
"description": "Text fields allow users to input custom text entries with a keyboard. Various options can be shown with the field to communicate the input requirements.",
|
|
6
|
+
"meta": {
|
|
7
|
+
"category": "inputs",
|
|
8
|
+
"documentationUrl": "https://spectrum.adobe.com/page/text-field/"
|
|
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": "string",
|
|
22
|
+
"description": "from minValue to maxValue"
|
|
23
|
+
},
|
|
24
|
+
"width": {
|
|
25
|
+
"type": "number"
|
|
26
|
+
},
|
|
27
|
+
"size": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"enum": ["s", "m", "l", "xl"],
|
|
30
|
+
"default": "m"
|
|
31
|
+
},
|
|
32
|
+
"isQuiet": {
|
|
33
|
+
"type": "boolean",
|
|
34
|
+
"default": false
|
|
35
|
+
},
|
|
36
|
+
"necessityIndicator": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"enum": ["text", "icon"],
|
|
39
|
+
"default": "icon"
|
|
40
|
+
},
|
|
41
|
+
"isRequired": {
|
|
42
|
+
"type": "boolean",
|
|
43
|
+
"default": false
|
|
44
|
+
},
|
|
45
|
+
"hasCharacterCount": {
|
|
46
|
+
"type": "boolean",
|
|
47
|
+
"default": false
|
|
48
|
+
},
|
|
49
|
+
"showValidIcon": {
|
|
50
|
+
"type": "boolean",
|
|
51
|
+
"default": false
|
|
52
|
+
},
|
|
53
|
+
"isError": {
|
|
54
|
+
"type": "boolean",
|
|
55
|
+
"default": false,
|
|
56
|
+
"description": "If there’s an error, this property overrides show valid icon."
|
|
57
|
+
},
|
|
58
|
+
"isDisabled": {
|
|
59
|
+
"type": "boolean",
|
|
60
|
+
"default": false
|
|
61
|
+
},
|
|
62
|
+
"isReadOnly": {
|
|
63
|
+
"type": "boolean",
|
|
64
|
+
"default": false
|
|
65
|
+
},
|
|
66
|
+
"description": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"default": null
|
|
69
|
+
},
|
|
70
|
+
"errorMessage": {
|
|
71
|
+
"type": "string",
|
|
72
|
+
"default": null
|
|
73
|
+
},
|
|
74
|
+
"state": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"enum": [
|
|
77
|
+
"default",
|
|
78
|
+
"hover",
|
|
79
|
+
"focus + hover",
|
|
80
|
+
"focus + not hover",
|
|
81
|
+
"keyboard focus"
|
|
82
|
+
],
|
|
83
|
+
"default": "default"
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/component.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-tokens/schema/components/toast.json",
|
|
4
|
+
"title": "Toast",
|
|
5
|
+
"description": "Toasts display brief, temporary notifications. They're meant to be noticed without disrupting a user's experience or requiring an action to be taken.",
|
|
6
|
+
"meta": {
|
|
7
|
+
"category": "feedback",
|
|
8
|
+
"documentationUrl": "https://spectrum.adobe.com/page/toast/"
|
|
9
|
+
},
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": {
|
|
12
|
+
"text": {
|
|
13
|
+
"type": "string"
|
|
14
|
+
},
|
|
15
|
+
"variant": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"enum": ["neutral", "informative", "positive", "negative"],
|
|
18
|
+
"default": "neutral"
|
|
19
|
+
},
|
|
20
|
+
"actionLabel": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"description": "If undefined, this button does not appear."
|
|
23
|
+
},
|
|
24
|
+
"isAutoDismissible": {
|
|
25
|
+
"type": "boolean",
|
|
26
|
+
"default": false
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -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/tooltip.json",
|
|
4
|
+
"title": "Tooltip",
|
|
5
|
+
"description": "Tooltips show contextual help or information about specific components when a user hovers or focuses on them.",
|
|
6
|
+
"meta": {
|
|
7
|
+
"category": "feedback",
|
|
8
|
+
"documentationUrl": "https://spectrum.adobe.com/page/tooltip/"
|
|
9
|
+
},
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": {
|
|
12
|
+
"label": {
|
|
13
|
+
"type": "string"
|
|
14
|
+
},
|
|
15
|
+
"variant": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"enum": ["neutral", "informative", "positive", "negative"],
|
|
18
|
+
"default": "neutral"
|
|
19
|
+
},
|
|
20
|
+
"hasIcon": {
|
|
21
|
+
"type": "boolean",
|
|
22
|
+
"description": "If the neutral variant, there’s never an icon.",
|
|
23
|
+
"default": false
|
|
24
|
+
},
|
|
25
|
+
"maxWidth": {
|
|
26
|
+
"type": "number",
|
|
27
|
+
"default": 160,
|
|
28
|
+
"description": "units: pixels"
|
|
29
|
+
},
|
|
30
|
+
"placement": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"enum": ["top", "bottom", "left", "right"],
|
|
33
|
+
"default": "top"
|
|
34
|
+
},
|
|
35
|
+
"shouldFlip": {
|
|
36
|
+
"type": "boolean",
|
|
37
|
+
"default": false
|
|
38
|
+
},
|
|
39
|
+
"offset": {
|
|
40
|
+
"type": "number",
|
|
41
|
+
"default": 4,
|
|
42
|
+
"description": "units: pixels"
|
|
43
|
+
},
|
|
44
|
+
"containerPadding": {
|
|
45
|
+
"type": "number",
|
|
46
|
+
"default": 8,
|
|
47
|
+
"description": "units: pixels"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/component.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-tokens/schema/components/tray.json",
|
|
4
|
+
"title": "Tray",
|
|
5
|
+
"description": "Trays are containers that display transient content such as menus, options, additional actions, and more. They only exist on mobile experiences and are used for exposing types of content that may be too overwhelming for popovers.",
|
|
6
|
+
"meta": {
|
|
7
|
+
"category": "containers",
|
|
8
|
+
"documentationUrl": "https://spectrum.adobe.com/page/tray/"
|
|
9
|
+
},
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": {
|
|
12
|
+
"height": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"default": "auto"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -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/tree-view.json",
|
|
4
|
+
"title": "Tree view",
|
|
5
|
+
"description": "A tree view provides users with a way to navigate nested hierarchical information.",
|
|
6
|
+
"meta": {
|
|
7
|
+
"category": "navigation",
|
|
8
|
+
"documentationUrl": "https://spectrum.adobe.com/page/tree-view/"
|
|
9
|
+
},
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": {
|
|
12
|
+
"size": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"enum": ["s", "m", "l", "xl"],
|
|
15
|
+
"default": "m"
|
|
16
|
+
},
|
|
17
|
+
"isDetached": {
|
|
18
|
+
"type": "boolean",
|
|
19
|
+
"default": false
|
|
20
|
+
},
|
|
21
|
+
"emphasized": {
|
|
22
|
+
"type": "boolean",
|
|
23
|
+
"default": false
|
|
24
|
+
},
|
|
25
|
+
"showDragIcon": {
|
|
26
|
+
"type": "boolean",
|
|
27
|
+
"default": false
|
|
28
|
+
},
|
|
29
|
+
"selectionMode": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"enum": ["single", "multiple"],
|
|
32
|
+
"default": "multiple"
|
|
33
|
+
},
|
|
34
|
+
"selectionStyle": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"enum": ["checkbox", "highlight"],
|
|
37
|
+
"default": "checkbox"
|
|
38
|
+
},
|
|
39
|
+
"selectionBehavior": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"enum": ["toggle", "replace"],
|
|
42
|
+
"default": "toggle"
|
|
43
|
+
},
|
|
44
|
+
"state": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"enum": ["default", "hover", "down", "keyboard focus"],
|
|
47
|
+
"default": "default"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-tokens/schemas/types/component-size.json",
|
|
4
|
+
"title": "component-size",
|
|
5
|
+
"description": "T-shirt sizes for components",
|
|
6
|
+
"type": "string",
|
|
7
|
+
"enum": ["xs", "s", "m", "l", "xl", "xxl", "xxxl"]
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-tokens/schemas/types/hex-color.json",
|
|
4
|
+
"title": "hex-color",
|
|
5
|
+
"description": "Hexadecimal color code",
|
|
6
|
+
"type": "string",
|
|
7
|
+
"pattern": "/^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/"
|
|
8
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-tokens/schemas/types/typography-classification.json",
|
|
4
|
+
"title": "typography-classification",
|
|
5
|
+
"description": "Typography classification",
|
|
6
|
+
"type": "string",
|
|
7
|
+
"enum": ["serif", "sans serif"],
|
|
8
|
+
"default": "sans serif"
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-tokens/schemas/types/typography-script.json",
|
|
4
|
+
"title": "typography-script",
|
|
5
|
+
"description": "The script of the text.",
|
|
6
|
+
"type": "string",
|
|
7
|
+
"enum": ["latin", "han", "arabic", "hebrew"],
|
|
8
|
+
"default": "latin"
|
|
9
|
+
}
|