@adobe/spectrum-component-api-schemas 3.0.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +116 -0
- package/package.json +1 -1
- package/schemas/components/accordion.json +90 -0
- package/schemas/components/avatar-group.json +30 -0
- package/schemas/components/breadcrumbs.json +54 -0
- package/schemas/components/button-group.json +5 -0
- package/schemas/components/checkbox-group.json +1 -5
- package/schemas/components/color-handle.json +31 -0
- package/schemas/components/color-slider.json +7 -1
- package/schemas/components/combo-box.json +1 -5
- package/schemas/components/contextual-help.json +5 -2
- package/schemas/components/date-picker.json +157 -0
- package/schemas/components/divider.json +1 -1
- package/schemas/components/drop-zone.json +41 -0
- package/schemas/components/in-line-alert.json +19 -1
- package/schemas/components/menu.json +2 -4
- package/schemas/components/number-field.json +73 -0
- package/schemas/components/radio-button.json +8 -3
- package/schemas/components/radio-group.json +0 -4
- package/schemas/components/scroll-zoom-bar.json +1 -1
- package/schemas/components/segmented-control.json +89 -0
- package/schemas/components/slider.json +19 -3
- package/schemas/components/step-list.json +52 -0
- package/schemas/components/swatch-group.json +25 -3
- package/schemas/components/swatch.json +23 -5
- package/schemas/components/tabs.json +78 -37
- package/schemas/components/tag-field.json +51 -0
- package/schemas/components/tag-group.json +38 -0
- package/schemas/components/text-field.json +15 -4
- package/schemas/components/tree-view.json +1 -1
|
@@ -11,8 +11,7 @@
|
|
|
11
11
|
"properties": {
|
|
12
12
|
"container": {
|
|
13
13
|
"type": "string",
|
|
14
|
-
"enum": ["popover", "tray"]
|
|
15
|
-
"default": null
|
|
14
|
+
"enum": ["popover", "tray"]
|
|
16
15
|
},
|
|
17
16
|
"label": {
|
|
18
17
|
"type": "string"
|
|
@@ -34,8 +33,7 @@
|
|
|
34
33
|
},
|
|
35
34
|
"selectionMode": {
|
|
36
35
|
"type": "string",
|
|
37
|
-
"enum": ["single", "multiple"]
|
|
38
|
-
"default": null
|
|
36
|
+
"enum": ["single", "multiple", "no selection"]
|
|
39
37
|
},
|
|
40
38
|
"selectionStyle": {
|
|
41
39
|
"type": "string",
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/component.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-tokens/schemas/components/number-field.json",
|
|
4
|
+
"title": "Number field",
|
|
5
|
+
"description": "Number fields allow users to enter a numeric value, with optional increment and decrement buttons.",
|
|
6
|
+
"meta": {
|
|
7
|
+
"category": "inputs",
|
|
8
|
+
"documentationUrl": "https://spectrum.adobe.com/page/number-field/"
|
|
9
|
+
},
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": {
|
|
12
|
+
"label": {
|
|
13
|
+
"type": "string"
|
|
14
|
+
},
|
|
15
|
+
"size": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"enum": [
|
|
18
|
+
"s",
|
|
19
|
+
"m",
|
|
20
|
+
"l",
|
|
21
|
+
"xl"
|
|
22
|
+
],
|
|
23
|
+
"default": "m"
|
|
24
|
+
},
|
|
25
|
+
"labelPosition": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"default": "top",
|
|
28
|
+
"enum": [
|
|
29
|
+
"top",
|
|
30
|
+
"side"
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
"hideLabel": {
|
|
34
|
+
"type": "boolean",
|
|
35
|
+
"default": false
|
|
36
|
+
},
|
|
37
|
+
"state": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"enum": [
|
|
40
|
+
"default",
|
|
41
|
+
"hover",
|
|
42
|
+
"focus + hover",
|
|
43
|
+
"focus + not hover"
|
|
44
|
+
],
|
|
45
|
+
"default": "default"
|
|
46
|
+
},
|
|
47
|
+
"isDisabled": {
|
|
48
|
+
"type": "boolean",
|
|
49
|
+
"default": false
|
|
50
|
+
},
|
|
51
|
+
"isError": {
|
|
52
|
+
"type": "boolean",
|
|
53
|
+
"default": false
|
|
54
|
+
},
|
|
55
|
+
"isRequired": {
|
|
56
|
+
"type": "boolean",
|
|
57
|
+
"default": false
|
|
58
|
+
},
|
|
59
|
+
"necessityIndicator": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"enum": [
|
|
62
|
+
"text",
|
|
63
|
+
"icon"
|
|
64
|
+
],
|
|
65
|
+
"default": "icon"
|
|
66
|
+
},
|
|
67
|
+
"hideStepper": {
|
|
68
|
+
"type": "boolean",
|
|
69
|
+
"default": false,
|
|
70
|
+
"description": "If true, hides in-field increment and decrement buttons (stepper)."
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -11,7 +11,12 @@
|
|
|
11
11
|
"properties": {
|
|
12
12
|
"state": {
|
|
13
13
|
"type": "string",
|
|
14
|
-
"enum": [
|
|
14
|
+
"enum": [
|
|
15
|
+
"default",
|
|
16
|
+
"hover",
|
|
17
|
+
"down",
|
|
18
|
+
"keyboard focus"
|
|
19
|
+
],
|
|
15
20
|
"default": "default"
|
|
16
21
|
},
|
|
17
22
|
"isSelected": {
|
|
@@ -23,8 +28,8 @@
|
|
|
23
28
|
"default": false
|
|
24
29
|
},
|
|
25
30
|
"label": {
|
|
26
|
-
"type": "
|
|
27
|
-
"
|
|
31
|
+
"type": "string",
|
|
32
|
+
"description": "The text displayed next to a radio button."
|
|
28
33
|
}
|
|
29
34
|
}
|
|
30
35
|
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/component.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-tokens/schemas/components/segmented-control.json",
|
|
4
|
+
"title": "Segmented Control",
|
|
5
|
+
"description": "Segmented controls allow users to select one option from a set of mutually exclusive options.",
|
|
6
|
+
"meta": {
|
|
7
|
+
"category": "navigation",
|
|
8
|
+
"documentationUrl": "https://spectrum.adobe.com/page/segmented-control/"
|
|
9
|
+
},
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": {
|
|
12
|
+
"orientation": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"enum": [
|
|
15
|
+
"horizontal",
|
|
16
|
+
"vertical"
|
|
17
|
+
],
|
|
18
|
+
"default": "horizontal"
|
|
19
|
+
},
|
|
20
|
+
"isFluid": {
|
|
21
|
+
"type": "boolean",
|
|
22
|
+
"default": false,
|
|
23
|
+
"description": "If true, the control takes up the full width of its container. Only applicable to horizontal segmented controls."
|
|
24
|
+
},
|
|
25
|
+
"alignment": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"enum": [
|
|
28
|
+
"start",
|
|
29
|
+
"center"
|
|
30
|
+
],
|
|
31
|
+
"default": "start"
|
|
32
|
+
},
|
|
33
|
+
"hideTracker": {
|
|
34
|
+
"type": "boolean",
|
|
35
|
+
"default": false,
|
|
36
|
+
"description": "If true, the tracker that indicates the selected item is hidden."
|
|
37
|
+
},
|
|
38
|
+
"selectedItem": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"description": "The identifier of the currently selected item."
|
|
41
|
+
},
|
|
42
|
+
"keyboardActivation": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"enum": [
|
|
45
|
+
"manual",
|
|
46
|
+
"automatic"
|
|
47
|
+
],
|
|
48
|
+
"default": "manual"
|
|
49
|
+
},
|
|
50
|
+
"items": {
|
|
51
|
+
"type": "array",
|
|
52
|
+
"description": "An array of segmented control items.",
|
|
53
|
+
"items": {
|
|
54
|
+
"type": "object",
|
|
55
|
+
"properties": {
|
|
56
|
+
"label": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"description": "The text displayed for the segmented control item."
|
|
59
|
+
},
|
|
60
|
+
"isDisabled": {
|
|
61
|
+
"type": "boolean",
|
|
62
|
+
"default": false,
|
|
63
|
+
"description": "Whether the segmented control item is disabled."
|
|
64
|
+
},
|
|
65
|
+
"state": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"enum": [
|
|
68
|
+
"default",
|
|
69
|
+
"hover",
|
|
70
|
+
"keyboard focus"
|
|
71
|
+
],
|
|
72
|
+
"default": "default",
|
|
73
|
+
"description": "The interaction state of the segmented control item."
|
|
74
|
+
},
|
|
75
|
+
"contentVariant": {
|
|
76
|
+
"type": "string",
|
|
77
|
+
"enum": [
|
|
78
|
+
"label-only",
|
|
79
|
+
"icon-only",
|
|
80
|
+
"icon-label"
|
|
81
|
+
],
|
|
82
|
+
"default": "icon-label",
|
|
83
|
+
"description": "Controls whether the segmented control item displays a label, an icon, or both."
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -15,7 +15,10 @@
|
|
|
15
15
|
"labelPosition": {
|
|
16
16
|
"type": "string",
|
|
17
17
|
"default": "top",
|
|
18
|
-
"enum": [
|
|
18
|
+
"enum": [
|
|
19
|
+
"top",
|
|
20
|
+
"side"
|
|
21
|
+
]
|
|
19
22
|
},
|
|
20
23
|
"value": {
|
|
21
24
|
"type": "number",
|
|
@@ -29,6 +32,11 @@
|
|
|
29
32
|
"type": "number",
|
|
30
33
|
"default": 100
|
|
31
34
|
},
|
|
35
|
+
"isRange": {
|
|
36
|
+
"type": "boolean",
|
|
37
|
+
"default": false,
|
|
38
|
+
"description": "If true, the slider will allow selection of a range of values by displaying two handles."
|
|
39
|
+
},
|
|
32
40
|
"step": {
|
|
33
41
|
"type": "number",
|
|
34
42
|
"default": 1
|
|
@@ -39,7 +47,10 @@
|
|
|
39
47
|
},
|
|
40
48
|
"progressionScale": {
|
|
41
49
|
"type": "string",
|
|
42
|
-
"enum": [
|
|
50
|
+
"enum": [
|
|
51
|
+
"linear",
|
|
52
|
+
"log"
|
|
53
|
+
],
|
|
43
54
|
"default": "linear"
|
|
44
55
|
},
|
|
45
56
|
"width": {
|
|
@@ -67,7 +78,12 @@
|
|
|
67
78
|
},
|
|
68
79
|
"state": {
|
|
69
80
|
"type": "string",
|
|
70
|
-
"enum": [
|
|
81
|
+
"enum": [
|
|
82
|
+
"default",
|
|
83
|
+
"hover",
|
|
84
|
+
"down",
|
|
85
|
+
"keyboard focus"
|
|
86
|
+
],
|
|
71
87
|
"default": "default"
|
|
72
88
|
}
|
|
73
89
|
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/component.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-tokens/schemas/components/step-list.json",
|
|
4
|
+
"title": "Step list",
|
|
5
|
+
"description": "Step lists display progress through a sequence of steps, with each step marked as completed, current, or incomplete.",
|
|
6
|
+
"meta": {
|
|
7
|
+
"category": "navigation",
|
|
8
|
+
"documentationUrl": "https://spectrum.adobe.com/page/step-list/"
|
|
9
|
+
},
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": {
|
|
12
|
+
"orientation": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"enum": ["horizontal", "vertical"],
|
|
15
|
+
"default": "horizontal"
|
|
16
|
+
},
|
|
17
|
+
"items": {
|
|
18
|
+
"type": "array",
|
|
19
|
+
"description": "An array of step items in the step list.",
|
|
20
|
+
"items": {
|
|
21
|
+
"type": "object",
|
|
22
|
+
"properties": {
|
|
23
|
+
"label": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"description": "The text displayed for the step item."
|
|
26
|
+
},
|
|
27
|
+
"isDisabled": {
|
|
28
|
+
"type": "boolean",
|
|
29
|
+
"default": false,
|
|
30
|
+
"description": "Whether the step item is disabled."
|
|
31
|
+
},
|
|
32
|
+
"stepState": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"enum": [
|
|
35
|
+
"completed default",
|
|
36
|
+
"completed hover",
|
|
37
|
+
"current default",
|
|
38
|
+
"incomplete default"
|
|
39
|
+
],
|
|
40
|
+
"default": "current default",
|
|
41
|
+
"description": "The current state of the step item."
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"required": ["label", "stepState"]
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"currentStep": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"description": "The identifier or label of the currently active step."
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -11,12 +11,21 @@
|
|
|
11
11
|
"properties": {
|
|
12
12
|
"size": {
|
|
13
13
|
"type": "string",
|
|
14
|
-
"enum": [
|
|
14
|
+
"enum": [
|
|
15
|
+
"xs",
|
|
16
|
+
"s",
|
|
17
|
+
"m",
|
|
18
|
+
"l"
|
|
19
|
+
],
|
|
15
20
|
"default": "m"
|
|
16
21
|
},
|
|
17
22
|
"density": {
|
|
18
23
|
"type": "string",
|
|
19
|
-
"enum": [
|
|
24
|
+
"enum": [
|
|
25
|
+
"compact",
|
|
26
|
+
"regular",
|
|
27
|
+
"spacious"
|
|
28
|
+
],
|
|
20
29
|
"default": "regular"
|
|
21
30
|
},
|
|
22
31
|
"enableSelection": {
|
|
@@ -26,13 +35,26 @@
|
|
|
26
35
|
"selectionMode": {
|
|
27
36
|
"type": "string",
|
|
28
37
|
"description": "Only applicable if selection is enabled.",
|
|
29
|
-
"enum": [
|
|
38
|
+
"enum": [
|
|
39
|
+
"single",
|
|
40
|
+
"multiple"
|
|
41
|
+
],
|
|
30
42
|
"default": "single"
|
|
31
43
|
},
|
|
32
44
|
"allowsEmptySelection": {
|
|
33
45
|
"type": "boolean",
|
|
34
46
|
"default": false,
|
|
35
47
|
"description": "Only applicable if selection is enabled."
|
|
48
|
+
},
|
|
49
|
+
"cornerRadius": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"enum": [
|
|
52
|
+
"none",
|
|
53
|
+
"full",
|
|
54
|
+
"partial"
|
|
55
|
+
],
|
|
56
|
+
"default": "none",
|
|
57
|
+
"description": "Determines the corner radius of each swatch in the group. Partial refers to corner-radius-75."
|
|
36
58
|
}
|
|
37
59
|
}
|
|
38
60
|
}
|
|
@@ -15,18 +15,31 @@
|
|
|
15
15
|
},
|
|
16
16
|
"size": {
|
|
17
17
|
"type": "string",
|
|
18
|
-
"enum": [
|
|
18
|
+
"enum": [
|
|
19
|
+
"xs",
|
|
20
|
+
"s",
|
|
21
|
+
"m",
|
|
22
|
+
"l"
|
|
23
|
+
],
|
|
19
24
|
"default": "m"
|
|
20
25
|
},
|
|
21
26
|
"shape": {
|
|
22
27
|
"type": "string",
|
|
23
|
-
"enum": [
|
|
28
|
+
"enum": [
|
|
29
|
+
"square",
|
|
30
|
+
"rectangle"
|
|
31
|
+
],
|
|
24
32
|
"default": "square"
|
|
25
33
|
},
|
|
26
34
|
"cornerRounding": {
|
|
27
35
|
"type": "string",
|
|
28
|
-
"enum": [
|
|
29
|
-
|
|
36
|
+
"enum": [
|
|
37
|
+
"none",
|
|
38
|
+
"partial",
|
|
39
|
+
"full"
|
|
40
|
+
],
|
|
41
|
+
"default": "none",
|
|
42
|
+
"description": "Determines the corner radius of the swatch. Partial refers to corner-radius-75."
|
|
30
43
|
},
|
|
31
44
|
"isSelected": {
|
|
32
45
|
"type": "boolean",
|
|
@@ -38,7 +51,12 @@
|
|
|
38
51
|
},
|
|
39
52
|
"state": {
|
|
40
53
|
"type": "string",
|
|
41
|
-
"enum": [
|
|
54
|
+
"enum": [
|
|
55
|
+
"default",
|
|
56
|
+
"hover",
|
|
57
|
+
"down",
|
|
58
|
+
"keyboard focus"
|
|
59
|
+
],
|
|
42
60
|
"default": "default"
|
|
43
61
|
}
|
|
44
62
|
}
|
|
@@ -11,44 +11,85 @@
|
|
|
11
11
|
"properties": {
|
|
12
12
|
"orientation": {
|
|
13
13
|
"type": "string",
|
|
14
|
-
"enum": [
|
|
15
|
-
|
|
14
|
+
"enum": [
|
|
15
|
+
"horizontal",
|
|
16
|
+
"vertical"
|
|
17
|
+
],
|
|
18
|
+
"default": "horizontal"
|
|
16
19
|
},
|
|
17
|
-
"
|
|
18
|
-
"type": "
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
20
|
+
"items": {
|
|
21
|
+
"type": "array",
|
|
22
|
+
"description": "An array of tab items.",
|
|
23
|
+
"items": {
|
|
24
|
+
"type": "object",
|
|
25
|
+
"properties": {
|
|
26
|
+
"label": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"description": "The text displayed for the tab item."
|
|
29
|
+
},
|
|
30
|
+
"isDisabled": {
|
|
31
|
+
"type": "boolean",
|
|
32
|
+
"default": false,
|
|
33
|
+
"description": "Whether the tab is disabled."
|
|
34
|
+
},
|
|
35
|
+
"state": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"enum": [
|
|
38
|
+
"default",
|
|
39
|
+
"hover",
|
|
40
|
+
"keyboard focus"
|
|
41
|
+
],
|
|
42
|
+
"default": "default",
|
|
43
|
+
"description": "The interaction state of the tab item."
|
|
44
|
+
},
|
|
45
|
+
"contentVariant": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"enum": [
|
|
48
|
+
"label-only",
|
|
49
|
+
"icon-only",
|
|
50
|
+
"icon-label"
|
|
51
|
+
],
|
|
52
|
+
"default": "icon-label",
|
|
53
|
+
"description": "Controls whether the tab displays a label, an icon, or both."
|
|
54
|
+
},
|
|
55
|
+
"density": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"enum": [
|
|
58
|
+
"compact",
|
|
59
|
+
"regular"
|
|
60
|
+
],
|
|
61
|
+
"default": "regular"
|
|
62
|
+
},
|
|
63
|
+
"isFluid": {
|
|
64
|
+
"type": "boolean",
|
|
65
|
+
"default": false,
|
|
66
|
+
"description": "This overrides density and is only applicable to horizontal tabs."
|
|
67
|
+
},
|
|
68
|
+
"isEmphasized": {
|
|
69
|
+
"type": "boolean",
|
|
70
|
+
"default": false
|
|
71
|
+
},
|
|
72
|
+
"alignment": {
|
|
73
|
+
"type": "string",
|
|
74
|
+
"enum": [
|
|
75
|
+
"start",
|
|
76
|
+
"center"
|
|
77
|
+
],
|
|
78
|
+
"default": "start"
|
|
79
|
+
},
|
|
80
|
+
"selectedItem": {
|
|
81
|
+
"description": "(list of available items)"
|
|
82
|
+
},
|
|
83
|
+
"keyboardActivation": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"enum": [
|
|
86
|
+
"manual",
|
|
87
|
+
"automatic"
|
|
88
|
+
],
|
|
89
|
+
"default": "manual"
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
52
93
|
}
|
|
53
94
|
}
|
|
54
95
|
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/component.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-tokens/schemas/components/tag-field.json",
|
|
4
|
+
"title": "Tag field",
|
|
5
|
+
"description": "A tag field is an input field that allows users to enter and manage tags.",
|
|
6
|
+
"meta": {
|
|
7
|
+
"category": "inputs",
|
|
8
|
+
"documentationUrl": "https://spectrum.adobe.com/page/tag-field/"
|
|
9
|
+
},
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": {
|
|
12
|
+
"size": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"enum": [
|
|
15
|
+
"s",
|
|
16
|
+
"m",
|
|
17
|
+
"l"
|
|
18
|
+
],
|
|
19
|
+
"default": "m"
|
|
20
|
+
},
|
|
21
|
+
"state": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"enum": [
|
|
24
|
+
"default",
|
|
25
|
+
"hover",
|
|
26
|
+
"focus + hover",
|
|
27
|
+
"focus + not hover",
|
|
28
|
+
"keyboard focus"
|
|
29
|
+
],
|
|
30
|
+
"default": "default"
|
|
31
|
+
},
|
|
32
|
+
"style": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"enum": [
|
|
35
|
+
"keyword",
|
|
36
|
+
"icon",
|
|
37
|
+
"thumbnail",
|
|
38
|
+
"avatar"
|
|
39
|
+
],
|
|
40
|
+
"default": "keyword"
|
|
41
|
+
},
|
|
42
|
+
"isDisabled": {
|
|
43
|
+
"type": "boolean",
|
|
44
|
+
"default": false
|
|
45
|
+
},
|
|
46
|
+
"hideLabel": {
|
|
47
|
+
"type": "boolean",
|
|
48
|
+
"default": false
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/component.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-tokens/schemas/components/tag-group.json",
|
|
4
|
+
"title": "Tag group",
|
|
5
|
+
"description": "A tag group is a collection of tags that represent a set of related items.",
|
|
6
|
+
"meta": {
|
|
7
|
+
"category": "inputs",
|
|
8
|
+
"documentationUrl": "https://spectrum.adobe.com/page/tag-group/"
|
|
9
|
+
},
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": {
|
|
12
|
+
"size": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"enum": [
|
|
15
|
+
"s",
|
|
16
|
+
"m",
|
|
17
|
+
"l"
|
|
18
|
+
],
|
|
19
|
+
"default": "m"
|
|
20
|
+
},
|
|
21
|
+
"labelPosition": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"enum": [
|
|
24
|
+
"top",
|
|
25
|
+
"side"
|
|
26
|
+
],
|
|
27
|
+
"default": "top"
|
|
28
|
+
},
|
|
29
|
+
"hideLabel": {
|
|
30
|
+
"type": "boolean",
|
|
31
|
+
"default": false
|
|
32
|
+
},
|
|
33
|
+
"actionLabel": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"description": "If undefined, this button does not appear."
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|