@adobe/design-data-spec 0.14.0 → 1.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/components/accordion.json +27 -4
- package/components/action-button.json +27 -4
- package/components/action-group.json +51 -10
- package/components/alert-banner.json +15 -2
- package/components/alert-dialog.json +18 -8
- package/components/avatar-group.json +24 -2
- package/components/avatar.json +72 -13
- package/components/badge.json +120 -31
- package/components/body.json +24 -2
- package/components/bottom-navigation-android.json +18 -4
- package/components/breadcrumbs.json +34 -7
- package/components/button-group.json +32 -5
- package/components/button.json +50 -10
- package/components/calendar.json +9 -2
- package/components/cards.json +21 -9
- package/components/checkbox-group.json +27 -6
- package/components/checkbox.json +15 -2
- package/components/close-button.json +24 -4
- package/components/coach-indicator.json +40 -14
- package/components/code.json +18 -2
- package/components/color-handle.json +24 -10
- package/components/color-slider.json +33 -12
- package/components/combo-box.json +48 -8
- package/components/contextual-help.json +78 -27
- package/components/date-picker.json +12 -2
- package/components/detail.json +24 -4
- package/components/divider.json +21 -4
- package/components/drop-zone.json +12 -2
- package/components/field-label.json +33 -6
- package/components/heading.json +36 -4
- package/components/help-text.json +25 -5
- package/components/illustrated-message.json +21 -4
- package/components/in-field-progress-button.json +29 -3
- package/components/in-field-progress-circle.json +23 -3
- package/components/in-line-alert.json +33 -11
- package/components/link.json +18 -4
- package/components/list-view.json +12 -2
- package/components/menu.json +42 -5
- package/components/meter.json +30 -4
- package/components/number-field.json +32 -5
- package/components/opacity-checkerboard.json +25 -2
- package/components/picker.json +41 -7
- package/components/popover.json +69 -25
- package/components/progress-bar.json +39 -8
- package/components/progress-circle.json +21 -4
- package/components/radio-group.json +42 -8
- package/components/scroll-zoom-bar.json +21 -4
- package/components/search-field.json +15 -2
- package/components/segmented-control.json +27 -6
- package/components/select-box.json +9 -2
- package/components/side-navigation.json +12 -2
- package/components/slider.json +17 -3
- package/components/standard-dialog.json +12 -2
- package/components/standard-panel.json +33 -6
- package/components/status-light.json +87 -28
- package/components/steplist.json +9 -2
- package/components/swatch-group.json +48 -8
- package/components/swatch.json +39 -9
- package/components/switch.json +15 -2
- package/components/tab-bar-ios.json +18 -4
- package/components/table.json +24 -4
- package/components/tabs.json +9 -2
- package/components/tag-field.json +27 -4
- package/components/tag-group.json +21 -4
- package/components/takeover-dialog.json +9 -2
- package/components/text-area.json +50 -7
- package/components/text-field.json +32 -5
- package/components/thumbnail.json +38 -1
- package/components/title.json +24 -2
- package/components/toast.json +15 -2
- package/components/tooltip.json +27 -4
- package/components/tree-view.json +42 -8
- package/conformance/invalid/SPEC-019/dataset.json +14 -1
- package/conformance/invalid/SPEC-037/dataset.json +86 -0
- package/conformance/invalid/SPEC-037/expected-errors.json +20 -0
- package/conformance/invalid/SPEC-038/dataset.json +20 -0
- package/conformance/invalid/SPEC-038/expected-errors.json +10 -0
- package/conformance/valid/SPEC-037/dataset.json +119 -0
- package/conformance/valid/SPEC-038/dataset.json +29 -0
- package/conformance/valid/component-refs/dataset.json +41 -7
- package/package.json +1 -1
- package/rules/rules.yaml +29 -1
- package/schemas/anatomy-part.schema.json +4 -0
- package/schemas/component.schema.json +33 -3
- package/schemas/state-declaration.schema.json +4 -0
- package/spec/agent-surface.md +1 -1
- package/spec/anatomy-format.md +14 -0
- package/spec/component-format.md +84 -28
- package/spec/state-model.md +18 -4
|
@@ -16,7 +16,14 @@
|
|
|
16
16
|
"labelPosition": {
|
|
17
17
|
"type": "string",
|
|
18
18
|
"default": "top",
|
|
19
|
-
"
|
|
19
|
+
"values": [
|
|
20
|
+
{
|
|
21
|
+
"value": "top"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"value": "side"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
20
27
|
},
|
|
21
28
|
"hideLabel": {
|
|
22
29
|
"type": "boolean",
|
|
@@ -31,13 +38,33 @@
|
|
|
31
38
|
},
|
|
32
39
|
"size": {
|
|
33
40
|
"type": "string",
|
|
34
|
-
"
|
|
35
|
-
"
|
|
41
|
+
"default": "m",
|
|
42
|
+
"values": [
|
|
43
|
+
{
|
|
44
|
+
"value": "s"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"value": "m"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"value": "l"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"value": "xl"
|
|
54
|
+
}
|
|
55
|
+
]
|
|
36
56
|
},
|
|
37
57
|
"necessityIndicator": {
|
|
38
58
|
"type": "string",
|
|
39
|
-
"
|
|
40
|
-
"
|
|
59
|
+
"default": "icon",
|
|
60
|
+
"values": [
|
|
61
|
+
{
|
|
62
|
+
"value": "text"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"value": "icon"
|
|
66
|
+
}
|
|
67
|
+
]
|
|
41
68
|
},
|
|
42
69
|
"isRequired": {
|
|
43
70
|
"type": "boolean",
|
|
@@ -12,7 +12,44 @@
|
|
|
12
12
|
"options": {
|
|
13
13
|
"size": {
|
|
14
14
|
"type": "number",
|
|
15
|
-
"
|
|
15
|
+
"values": [
|
|
16
|
+
{
|
|
17
|
+
"value": 50
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"value": 75
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"value": 100
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"value": 200
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"value": 300
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"value": 400
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"value": 500
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"value": 600
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"value": 700
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"value": 800
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"value": 900
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"value": 1000
|
|
51
|
+
}
|
|
52
|
+
]
|
|
16
53
|
}
|
|
17
54
|
},
|
|
18
55
|
"states": [
|
package/components/title.json
CHANGED
|
@@ -18,8 +18,30 @@
|
|
|
18
18
|
},
|
|
19
19
|
"size": {
|
|
20
20
|
"type": "string",
|
|
21
|
-
"
|
|
22
|
-
"
|
|
21
|
+
"default": "m",
|
|
22
|
+
"values": [
|
|
23
|
+
{
|
|
24
|
+
"value": "xs"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"value": "s"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"value": "m"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"value": "l"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"value": "xl"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"value": "xxl"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"value": "xxxl"
|
|
43
|
+
}
|
|
44
|
+
]
|
|
23
45
|
}
|
|
24
46
|
},
|
|
25
47
|
"lifecycle": {
|
package/components/toast.json
CHANGED
|
@@ -15,8 +15,21 @@
|
|
|
15
15
|
},
|
|
16
16
|
"variant": {
|
|
17
17
|
"type": "string",
|
|
18
|
-
"
|
|
19
|
-
"
|
|
18
|
+
"default": "neutral",
|
|
19
|
+
"values": [
|
|
20
|
+
{
|
|
21
|
+
"value": "neutral"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"value": "informative"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"value": "positive"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"value": "negative"
|
|
31
|
+
}
|
|
32
|
+
]
|
|
20
33
|
},
|
|
21
34
|
"actionLabel": {
|
|
22
35
|
"type": "string",
|
package/components/tooltip.json
CHANGED
|
@@ -15,8 +15,18 @@
|
|
|
15
15
|
},
|
|
16
16
|
"variant": {
|
|
17
17
|
"type": "string",
|
|
18
|
-
"
|
|
19
|
-
"
|
|
18
|
+
"default": "neutral",
|
|
19
|
+
"values": [
|
|
20
|
+
{
|
|
21
|
+
"value": "neutral"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"value": "informative"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"value": "negative"
|
|
28
|
+
}
|
|
29
|
+
]
|
|
20
30
|
},
|
|
21
31
|
"hasIcon": {
|
|
22
32
|
"type": "boolean",
|
|
@@ -30,8 +40,21 @@
|
|
|
30
40
|
},
|
|
31
41
|
"placement": {
|
|
32
42
|
"type": "string",
|
|
33
|
-
"
|
|
34
|
-
"
|
|
43
|
+
"default": "top",
|
|
44
|
+
"values": [
|
|
45
|
+
{
|
|
46
|
+
"value": "top"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"value": "bottom"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"value": "left"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"value": "right"
|
|
56
|
+
}
|
|
57
|
+
]
|
|
35
58
|
},
|
|
36
59
|
"shouldFlip": {
|
|
37
60
|
"type": "boolean",
|
|
@@ -12,8 +12,21 @@
|
|
|
12
12
|
"options": {
|
|
13
13
|
"size": {
|
|
14
14
|
"type": "string",
|
|
15
|
-
"
|
|
16
|
-
"
|
|
15
|
+
"default": "m",
|
|
16
|
+
"values": [
|
|
17
|
+
{
|
|
18
|
+
"value": "s"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"value": "m"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"value": "l"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"value": "xl"
|
|
28
|
+
}
|
|
29
|
+
]
|
|
17
30
|
},
|
|
18
31
|
"isDetached": {
|
|
19
32
|
"type": "boolean",
|
|
@@ -29,18 +42,39 @@
|
|
|
29
42
|
},
|
|
30
43
|
"selectionMode": {
|
|
31
44
|
"type": "string",
|
|
32
|
-
"
|
|
33
|
-
"
|
|
45
|
+
"default": "multiple",
|
|
46
|
+
"values": [
|
|
47
|
+
{
|
|
48
|
+
"value": "single"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"value": "multiple"
|
|
52
|
+
}
|
|
53
|
+
]
|
|
34
54
|
},
|
|
35
55
|
"selectionStyle": {
|
|
36
56
|
"type": "string",
|
|
37
|
-
"
|
|
38
|
-
"
|
|
57
|
+
"default": "checkbox",
|
|
58
|
+
"values": [
|
|
59
|
+
{
|
|
60
|
+
"value": "checkbox"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"value": "highlight"
|
|
64
|
+
}
|
|
65
|
+
]
|
|
39
66
|
},
|
|
40
67
|
"selectionBehavior": {
|
|
41
68
|
"type": "string",
|
|
42
|
-
"
|
|
43
|
-
"
|
|
69
|
+
"default": "toggle",
|
|
70
|
+
"values": [
|
|
71
|
+
{
|
|
72
|
+
"value": "toggle"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"value": "replace"
|
|
76
|
+
}
|
|
77
|
+
]
|
|
44
78
|
}
|
|
45
79
|
},
|
|
46
80
|
"states": [
|
|
@@ -21,7 +21,20 @@
|
|
|
21
21
|
"options": {
|
|
22
22
|
"variant": {
|
|
23
23
|
"type": "string",
|
|
24
|
-
"
|
|
24
|
+
"values": [
|
|
25
|
+
{
|
|
26
|
+
"value": "accent"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"value": "negative"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"value": "primary"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"value": "secondary"
|
|
36
|
+
}
|
|
37
|
+
]
|
|
25
38
|
}
|
|
26
39
|
}
|
|
27
40
|
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{
|
|
2
|
+
"tokens": [
|
|
3
|
+
{
|
|
4
|
+
"name": {
|
|
5
|
+
"component": "slider",
|
|
6
|
+
"anatomy": "handle",
|
|
7
|
+
"property": "background-color"
|
|
8
|
+
},
|
|
9
|
+
"value": "#0265dc"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"name": {
|
|
13
|
+
"component": "button",
|
|
14
|
+
"state": "pressed",
|
|
15
|
+
"property": "background-color"
|
|
16
|
+
},
|
|
17
|
+
"value": "#cccccc"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"name": {
|
|
21
|
+
"component": "button",
|
|
22
|
+
"variant": "cta",
|
|
23
|
+
"property": "background-color"
|
|
24
|
+
},
|
|
25
|
+
"value": "#0265dc"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"components": [
|
|
29
|
+
{
|
|
30
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/components/slider.json",
|
|
31
|
+
"name": "slider",
|
|
32
|
+
"displayName": "Slider",
|
|
33
|
+
"meta": {
|
|
34
|
+
"category": "forms",
|
|
35
|
+
"documentationUrl": "https://spectrum.adobe.com/page/slider/"
|
|
36
|
+
},
|
|
37
|
+
"anatomy": [
|
|
38
|
+
{
|
|
39
|
+
"name": "handle",
|
|
40
|
+
"lifecycle": {
|
|
41
|
+
"deprecated": "1.0.0-draft",
|
|
42
|
+
"deprecatedComment": "Renamed to thumb."
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/components/button.json",
|
|
49
|
+
"name": "button",
|
|
50
|
+
"displayName": "Button",
|
|
51
|
+
"meta": {
|
|
52
|
+
"category": "actions",
|
|
53
|
+
"documentationUrl": "https://spectrum.adobe.com/page/button/"
|
|
54
|
+
},
|
|
55
|
+
"states": [
|
|
56
|
+
{
|
|
57
|
+
"name": "pressed",
|
|
58
|
+
"lifecycle": {
|
|
59
|
+
"deprecated": "1.0.0-draft",
|
|
60
|
+
"deprecatedComment": "Use active instead."
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"options": {
|
|
65
|
+
"variant": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"values": [
|
|
68
|
+
{
|
|
69
|
+
"value": "primary"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"value": "secondary"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"value": "cta",
|
|
76
|
+
"lifecycle": {
|
|
77
|
+
"deprecated": "1.0.0-draft",
|
|
78
|
+
"deprecatedComment": "Use primary instead."
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"layer": 2,
|
|
3
|
+
"errors": [
|
|
4
|
+
{
|
|
5
|
+
"rule_id": "SPEC-037",
|
|
6
|
+
"severity": "warning",
|
|
7
|
+
"message_pattern": ".*deprecated anatomy part.*"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"rule_id": "SPEC-037",
|
|
11
|
+
"severity": "warning",
|
|
12
|
+
"message_pattern": ".*deprecated state.*"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"rule_id": "SPEC-037",
|
|
16
|
+
"severity": "warning",
|
|
17
|
+
"message_pattern": ".*deprecated option value.*"
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"tokens": {},
|
|
3
|
+
"components": [
|
|
4
|
+
{
|
|
5
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/components/badge.json",
|
|
6
|
+
"name": "badge",
|
|
7
|
+
"displayName": "Badge",
|
|
8
|
+
"meta": {
|
|
9
|
+
"category": "status",
|
|
10
|
+
"documentationUrl": "https://spectrum.adobe.com/page/badge/"
|
|
11
|
+
},
|
|
12
|
+
"options": {
|
|
13
|
+
"variant": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"enum": ["neutral", "informative", "positive", "negative"]
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
{
|
|
2
|
+
"tokens": [
|
|
3
|
+
{
|
|
4
|
+
"name": {
|
|
5
|
+
"component": "slider",
|
|
6
|
+
"anatomy": "track",
|
|
7
|
+
"property": "background-color"
|
|
8
|
+
},
|
|
9
|
+
"value": "#e0e0e0"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"name": {
|
|
13
|
+
"component": "slider",
|
|
14
|
+
"anatomy": "handle",
|
|
15
|
+
"property": "background-color"
|
|
16
|
+
},
|
|
17
|
+
"value": "#0265dc",
|
|
18
|
+
"deprecated": "1.0.0-draft"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": {
|
|
22
|
+
"component": "button",
|
|
23
|
+
"state": "hover",
|
|
24
|
+
"property": "background-color"
|
|
25
|
+
},
|
|
26
|
+
"value": "#eeeeee"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": {
|
|
30
|
+
"component": "button",
|
|
31
|
+
"state": "pressed",
|
|
32
|
+
"property": "background-color"
|
|
33
|
+
},
|
|
34
|
+
"value": "#cccccc",
|
|
35
|
+
"deprecated": "1.0.0-draft"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": {
|
|
39
|
+
"component": "button",
|
|
40
|
+
"variant": "primary",
|
|
41
|
+
"property": "background-color"
|
|
42
|
+
},
|
|
43
|
+
"value": "#0265dc"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": {
|
|
47
|
+
"component": "button",
|
|
48
|
+
"variant": "cta",
|
|
49
|
+
"property": "background-color"
|
|
50
|
+
},
|
|
51
|
+
"value": "#0265dc",
|
|
52
|
+
"deprecated": "1.0.0-draft"
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"components": [
|
|
56
|
+
{
|
|
57
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/components/slider.json",
|
|
58
|
+
"name": "slider",
|
|
59
|
+
"displayName": "Slider",
|
|
60
|
+
"meta": {
|
|
61
|
+
"category": "forms",
|
|
62
|
+
"documentationUrl": "https://spectrum.adobe.com/page/slider/"
|
|
63
|
+
},
|
|
64
|
+
"anatomy": [
|
|
65
|
+
{
|
|
66
|
+
"name": "track"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "handle",
|
|
70
|
+
"lifecycle": {
|
|
71
|
+
"deprecated": "1.0.0-draft",
|
|
72
|
+
"deprecatedComment": "Renamed to thumb."
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/components/button.json",
|
|
79
|
+
"name": "button",
|
|
80
|
+
"displayName": "Button",
|
|
81
|
+
"meta": {
|
|
82
|
+
"category": "actions",
|
|
83
|
+
"documentationUrl": "https://spectrum.adobe.com/page/button/"
|
|
84
|
+
},
|
|
85
|
+
"states": [
|
|
86
|
+
{
|
|
87
|
+
"name": "hover"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"name": "pressed",
|
|
91
|
+
"lifecycle": {
|
|
92
|
+
"deprecated": "1.0.0-draft",
|
|
93
|
+
"deprecatedComment": "Use active instead."
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
"options": {
|
|
98
|
+
"variant": {
|
|
99
|
+
"type": "string",
|
|
100
|
+
"values": [
|
|
101
|
+
{
|
|
102
|
+
"value": "primary"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"value": "secondary"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"value": "cta",
|
|
109
|
+
"lifecycle": {
|
|
110
|
+
"deprecated": "1.0.0-draft",
|
|
111
|
+
"deprecatedComment": "Use primary instead."
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
]
|
|
119
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"tokens": {},
|
|
3
|
+
"components": [
|
|
4
|
+
{
|
|
5
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/components/button.json",
|
|
6
|
+
"name": "button",
|
|
7
|
+
"displayName": "Button",
|
|
8
|
+
"meta": {
|
|
9
|
+
"category": "actions",
|
|
10
|
+
"documentationUrl": "https://spectrum.adobe.com/page/button/"
|
|
11
|
+
},
|
|
12
|
+
"options": {
|
|
13
|
+
"variant": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"values": [
|
|
16
|
+
{ "value": "primary" },
|
|
17
|
+
{ "value": "secondary" },
|
|
18
|
+
{ "value": "accent" }
|
|
19
|
+
],
|
|
20
|
+
"default": "accent"
|
|
21
|
+
},
|
|
22
|
+
"isDisabled": {
|
|
23
|
+
"type": "boolean",
|
|
24
|
+
"default": false
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
@@ -37,26 +37,60 @@
|
|
|
37
37
|
"options": {
|
|
38
38
|
"variant": {
|
|
39
39
|
"type": "string",
|
|
40
|
-
"
|
|
40
|
+
"values": [
|
|
41
|
+
{
|
|
42
|
+
"value": "accent"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"value": "negative"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"value": "primary"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"value": "secondary"
|
|
52
|
+
}
|
|
53
|
+
]
|
|
41
54
|
}
|
|
42
55
|
},
|
|
43
56
|
"slots": [
|
|
44
|
-
{
|
|
45
|
-
|
|
57
|
+
{
|
|
58
|
+
"name": "default",
|
|
59
|
+
"description": "Text label of the button."
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "icon",
|
|
63
|
+
"description": "Leading icon."
|
|
64
|
+
}
|
|
46
65
|
],
|
|
47
66
|
"anatomy": [
|
|
48
|
-
{
|
|
49
|
-
|
|
67
|
+
{
|
|
68
|
+
"name": "icon",
|
|
69
|
+
"description": "Leading icon."
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"name": "label",
|
|
73
|
+
"description": "Button text.",
|
|
74
|
+
"required": true
|
|
75
|
+
}
|
|
50
76
|
],
|
|
51
77
|
"states": [
|
|
52
|
-
{
|
|
78
|
+
{
|
|
79
|
+
"name": "hover",
|
|
80
|
+
"trigger": "interaction",
|
|
81
|
+
"precedence": 50
|
|
82
|
+
},
|
|
53
83
|
{
|
|
54
84
|
"name": "focus",
|
|
55
85
|
"trigger": "interaction",
|
|
56
86
|
"precedence": 60,
|
|
57
87
|
"layered": true
|
|
58
88
|
},
|
|
59
|
-
{
|
|
89
|
+
{
|
|
90
|
+
"name": "disabled",
|
|
91
|
+
"trigger": "prop",
|
|
92
|
+
"precedence": 100
|
|
93
|
+
}
|
|
60
94
|
]
|
|
61
95
|
}
|
|
62
96
|
]
|
package/package.json
CHANGED