@swell/swell-ui 0.0.0-stage → 0.1.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 +22 -0
- package/README.md +165 -2
- package/custom-elements.json +8274 -0
- package/dist/chunks/badge-Dt6q8Cqa.js +11 -0
- package/dist/chunks/button-C7nCiu-t.js +123 -0
- package/dist/chunks/card-CvSQEug8.js +10 -0
- package/dist/chunks/checkbox-BRI_A1TP.js +99 -0
- package/dist/chunks/chip-BtnufSMG.js +48 -0
- package/dist/chunks/config-C-FYxOaJ.js +588 -0
- package/dist/chunks/define-BlQTa1g4.js +19 -0
- package/dist/chunks/description-BHfQ8meK.js +19 -0
- package/dist/chunks/disclosure-CET8-H6f.js +56 -0
- package/dist/chunks/divider-BfkO0c1j.js +27 -0
- package/dist/chunks/element-B4-_7TLZ.js +138 -0
- package/dist/chunks/input-Uun-ls2_.js +53 -0
- package/dist/chunks/link-8qHFEKQE.js +53 -0
- package/dist/chunks/link-D4NC86oc.js +24 -0
- package/dist/chunks/lookup-5icr_T6o.js +205 -0
- package/dist/chunks/lookup-list-Bw6OJoDS.js +19 -0
- package/dist/chunks/lookup-option-Mn3k8W2M.js +26 -0
- package/dist/chunks/popover-D3Ob6slA.js +92 -0
- package/dist/chunks/popup-Dbh2fchP.js +21 -0
- package/dist/chunks/quantity-h3wqn8tC.js +140 -0
- package/dist/chunks/radio-BhFDL3pO.js +192 -0
- package/dist/chunks/radio-option-hT29S8Zl.js +88 -0
- package/dist/chunks/select-DS1n_htj.js +331 -0
- package/dist/chunks/select-option-DoM9GAe0.js +66 -0
- package/dist/chunks/skeleton-DfPjhls9.js +13 -0
- package/dist/chunks/status-B23JZ5RQ.js +71 -0
- package/dist/chunks/tab-BpjFUbFO.js +107 -0
- package/dist/chunks/tabs-aWKq1Iaz.js +122 -0
- package/dist/chunks/text-ZWPy-iB3.js +26 -0
- package/dist/chunks/text-field-BB_MRt5h.js +158 -0
- package/dist/chunks/textarea-L6_OJ2IN.js +18 -0
- package/dist/chunks/thumbnail-CLe9AsFg.js +21 -0
- package/dist/chunks/toggle-C7-oPgWR.js +22 -0
- package/dist/chunks/ui-HcyMKwzs.js +11 -0
- package/dist/editors/vscode.css-custom-data.json +824 -0
- package/dist/editors/vscode.html-custom-data.json +1156 -0
- package/dist/editors/web-types.json +1706 -0
- package/dist/elements/badge.d.ts +1 -0
- package/dist/elements/badge.js +1 -0
- package/dist/elements/button.d.ts +1 -0
- package/dist/elements/button.js +1 -0
- package/dist/elements/card.d.ts +1 -0
- package/dist/elements/card.js +1 -0
- package/dist/elements/checkbox.d.ts +1 -0
- package/dist/elements/checkbox.js +1 -0
- package/dist/elements/chip.d.ts +1 -0
- package/dist/elements/chip.js +1 -0
- package/dist/elements/disclosure.d.ts +1 -0
- package/dist/elements/disclosure.js +1 -0
- package/dist/elements/divider.d.ts +1 -0
- package/dist/elements/divider.js +1 -0
- package/dist/elements/input.d.ts +1 -0
- package/dist/elements/input.js +1 -0
- package/dist/elements/link.d.ts +1 -0
- package/dist/elements/link.js +1 -0
- package/dist/elements/lookup-list.d.ts +1 -0
- package/dist/elements/lookup-list.js +1 -0
- package/dist/elements/lookup-option.d.ts +1 -0
- package/dist/elements/lookup-option.js +1 -0
- package/dist/elements/lookup.d.ts +1 -0
- package/dist/elements/lookup.js +1 -0
- package/dist/elements/popover.d.ts +1 -0
- package/dist/elements/popover.js +1 -0
- package/dist/elements/quantity.d.ts +1 -0
- package/dist/elements/quantity.js +1 -0
- package/dist/elements/radio-option.d.ts +1 -0
- package/dist/elements/radio-option.js +1 -0
- package/dist/elements/radio.d.ts +1 -0
- package/dist/elements/radio.js +1 -0
- package/dist/elements/select-option.d.ts +1 -0
- package/dist/elements/select-option.js +1 -0
- package/dist/elements/select.d.ts +1 -0
- package/dist/elements/select.js +1 -0
- package/dist/elements/skeleton.d.ts +1 -0
- package/dist/elements/skeleton.js +1 -0
- package/dist/elements/status.d.ts +1 -0
- package/dist/elements/status.js +1 -0
- package/dist/elements/tab.d.ts +1 -0
- package/dist/elements/tab.js +1 -0
- package/dist/elements/tabs.d.ts +1 -0
- package/dist/elements/tabs.js +1 -0
- package/dist/elements/text.d.ts +1 -0
- package/dist/elements/text.js +1 -0
- package/dist/elements/textarea.d.ts +1 -0
- package/dist/elements/textarea.js +1 -0
- package/dist/elements/thumbnail.d.ts +1 -0
- package/dist/elements/thumbnail.js +1 -0
- package/dist/elements/ui.d.ts +1 -0
- package/dist/elements/ui.js +1 -0
- package/dist/frameworks/jsx.d.ts +3589 -0
- package/dist/frameworks/preact.d.ts +9 -0
- package/dist/frameworks/solid.d.ts +7 -0
- package/dist/frameworks/svelte.d.ts +1676 -0
- package/dist/frameworks/vue.d.ts +827 -0
- package/dist/index.js +80 -0
- package/dist/react/badge.d.ts +12 -0
- package/dist/react/badge.js +4 -0
- package/dist/react/button.d.ts +16 -0
- package/dist/react/button.js +4 -0
- package/dist/react/card.d.ts +11 -0
- package/dist/react/card.js +4 -0
- package/dist/react/checkbox.d.ts +14 -0
- package/dist/react/checkbox.js +4 -0
- package/dist/react/chip.d.ts +12 -0
- package/dist/react/chip.js +4 -0
- package/dist/react/create.js +49 -0
- package/dist/react/disclosure.d.ts +11 -0
- package/dist/react/disclosure.js +4 -0
- package/dist/react/divider.d.ts +9 -0
- package/dist/react/divider.js +4 -0
- package/dist/react/index.d.ts +26 -0
- package/dist/react/index.js +26 -0
- package/dist/react/input.d.ts +28 -0
- package/dist/react/input.js +4 -0
- package/dist/react/link.d.ts +15 -0
- package/dist/react/link.js +4 -0
- package/dist/react/lookup-list.d.ts +9 -0
- package/dist/react/lookup-list.js +4 -0
- package/dist/react/lookup-option.d.ts +11 -0
- package/dist/react/lookup-option.js +4 -0
- package/dist/react/lookup.d.ts +28 -0
- package/dist/react/lookup.js +4 -0
- package/dist/react/popover.d.ts +11 -0
- package/dist/react/popover.js +4 -0
- package/dist/react/quantity.d.ts +15 -0
- package/dist/react/quantity.js +4 -0
- package/dist/react/radio-option.d.ts +11 -0
- package/dist/react/radio-option.js +4 -0
- package/dist/react/radio.d.ts +18 -0
- package/dist/react/radio.js +4 -0
- package/dist/react/select-option.d.ts +11 -0
- package/dist/react/select-option.js +4 -0
- package/dist/react/select.d.ts +20 -0
- package/dist/react/select.js +4 -0
- package/dist/react/skeleton.d.ts +11 -0
- package/dist/react/skeleton.js +4 -0
- package/dist/react/status.d.ts +12 -0
- package/dist/react/status.js +4 -0
- package/dist/react/tab.d.ts +10 -0
- package/dist/react/tab.js +4 -0
- package/dist/react/tabs.d.ts +17 -0
- package/dist/react/tabs.js +4 -0
- package/dist/react/text.d.ts +12 -0
- package/dist/react/text.js +4 -0
- package/dist/react/textarea.d.ts +23 -0
- package/dist/react/textarea.js +4 -0
- package/dist/react/thumbnail.d.ts +13 -0
- package/dist/react/thumbnail.js +4 -0
- package/dist/react/ui.d.ts +10 -0
- package/dist/react/ui.js +4 -0
- package/dist/types/components/core/badge/badge.d.ts +25 -0
- package/dist/types/components/core/button/button.d.ts +60 -0
- package/dist/types/components/core/card/card.d.ts +21 -0
- package/dist/types/components/core/checkbox/checkbox.d.ts +46 -0
- package/dist/types/components/core/chip/chip.d.ts +36 -0
- package/dist/types/components/core/disclosure/disclosure.d.ts +37 -0
- package/dist/types/components/core/divider/divider.d.ts +21 -0
- package/dist/types/components/core/index.d.ts +21 -0
- package/dist/types/components/core/input/input.d.ts +57 -0
- package/dist/types/components/core/link/link.d.ts +42 -0
- package/dist/types/components/core/lookup/lookup-list.d.ts +21 -0
- package/dist/types/components/core/lookup/lookup-option.d.ts +27 -0
- package/dist/types/components/core/lookup/lookup.d.ts +32 -0
- package/dist/types/components/core/popover/popover.d.ts +33 -0
- package/dist/types/components/core/quantity/quantity.d.ts +47 -0
- package/dist/types/components/core/radio/radio-option.d.ts +82 -0
- package/dist/types/components/core/radio/radio.d.ts +65 -0
- package/dist/types/components/core/select/select-option.d.ts +69 -0
- package/dist/types/components/core/select/select.d.ts +70 -0
- package/dist/types/components/core/skeleton/skeleton.d.ts +23 -0
- package/dist/types/components/core/status/status.d.ts +38 -0
- package/dist/types/components/core/tabs/tab.d.ts +76 -0
- package/dist/types/components/core/tabs/tabs.d.ts +46 -0
- package/dist/types/components/core/text/text.d.ts +23 -0
- package/dist/types/components/core/textarea/textarea.d.ts +45 -0
- package/dist/types/components/core/thumbnail/thumbnail.d.ts +27 -0
- package/dist/types/components/core/ui/ui.d.ts +16 -0
- package/dist/types/components/elements.d.ts +1 -0
- package/dist/types/react/create.d.ts +8 -0
- package/dist/types/runtime/config.d.ts +25 -0
- package/dist/types/runtime/css.d.ts +12 -0
- package/dist/types/runtime/define.d.ts +4 -0
- package/dist/types/runtime/description.d.ts +12 -0
- package/dist/types/runtime/element.d.ts +61 -0
- package/dist/types/runtime/focus.d.ts +5 -0
- package/dist/types/runtime/form.d.ts +5 -0
- package/dist/types/runtime/index.d.ts +2 -0
- package/dist/types/runtime/link.d.ts +17 -0
- package/dist/types/runtime/loader.d.ts +21 -0
- package/dist/types/runtime/popup.d.ts +8 -0
- package/dist/types/runtime/sheet.d.ts +31 -0
- package/dist/types/runtime/text-field.d.ts +47 -0
- package/dist/types/runtime/toggle.d.ts +8 -0
- package/dist/types/runtime/tokens.generated.d.ts +492 -0
- package/dist/types/runtime/values.d.ts +6 -0
- package/dist/types/runtime/variants.d.ts +4 -0
- package/package.json +136 -4
- package/resolver.json +111 -0
- package/src/components/core/badge/tokens.json +152 -0
- package/src/components/core/button/tokens.dark.json +16 -0
- package/src/components/core/button/tokens.json +232 -0
- package/src/components/core/card/tokens.json +35 -0
- package/src/components/core/checkbox/tokens.json +15 -0
- package/src/components/core/chip/tokens.json +144 -0
- package/src/components/core/link/tokens.json +24 -0
- package/src/components/core/radio/tokens.dark.json +17 -0
- package/src/components/core/radio/tokens.json +114 -0
- package/src/components/core/status/tokens.dark.json +71 -0
- package/src/components/core/status/tokens.json +135 -0
- package/src/components/core/tabs/tokens.json +80 -0
- package/src/components/core/text/tokens.json +222 -0
- package/src/components/core/thumbnail/tokens.json +46 -0
- package/tokens/border.json +38 -0
- package/tokens/color.dark.json +88 -0
- package/tokens/color.json +115 -0
- package/tokens/control.json +115 -0
- package/tokens/field.dark.json +65 -0
- package/tokens/field.json +158 -0
- package/tokens/focus.json +26 -0
- package/tokens/font.json +117 -0
- package/tokens/motion.json +49 -0
- package/tokens/overlay.json +81 -0
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
{
|
|
2
|
+
"chip": {
|
|
3
|
+
"$description": "Chips: a short value the shopper can remove, such as an applied discount code. A chip draws its background, border and text, and its remove button in the accent.",
|
|
4
|
+
"$extensions": {
|
|
5
|
+
"is.swell.ui": {
|
|
6
|
+
"attributes": {
|
|
7
|
+
"size": ["xsmall", "small", "large", "xlarge"]
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"height": {
|
|
12
|
+
"$type": "dimension",
|
|
13
|
+
"$value": {
|
|
14
|
+
"value": 32,
|
|
15
|
+
"unit": "px"
|
|
16
|
+
},
|
|
17
|
+
"$description": "Height of medium chips."
|
|
18
|
+
},
|
|
19
|
+
"font": {
|
|
20
|
+
"size": {
|
|
21
|
+
"$type": "dimension",
|
|
22
|
+
"$value": "{font.caption.size}",
|
|
23
|
+
"$description": "Font size of medium chips."
|
|
24
|
+
},
|
|
25
|
+
"weight": {
|
|
26
|
+
"$type": "fontWeight",
|
|
27
|
+
"$value": "{font.bold.weight}",
|
|
28
|
+
"$description": "Font weight of chips."
|
|
29
|
+
},
|
|
30
|
+
"tracking": {
|
|
31
|
+
"$type": "number",
|
|
32
|
+
"$value": 0.03,
|
|
33
|
+
"$description": "Letter spacing of chips, in em.",
|
|
34
|
+
"$extensions": {
|
|
35
|
+
"is.swell.ui": {
|
|
36
|
+
"unit": "em"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"xsmall": {
|
|
42
|
+
"height": {
|
|
43
|
+
"$type": "dimension",
|
|
44
|
+
"$value": {
|
|
45
|
+
"value": 24,
|
|
46
|
+
"unit": "px"
|
|
47
|
+
},
|
|
48
|
+
"$description": "Height of extra small chips."
|
|
49
|
+
},
|
|
50
|
+
"font": {
|
|
51
|
+
"size": {
|
|
52
|
+
"$type": "dimension",
|
|
53
|
+
"$value": {
|
|
54
|
+
"value": 11,
|
|
55
|
+
"unit": "px"
|
|
56
|
+
},
|
|
57
|
+
"$description": "Font size of extra small chips."
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"small": {
|
|
62
|
+
"height": {
|
|
63
|
+
"$type": "dimension",
|
|
64
|
+
"$value": {
|
|
65
|
+
"value": 28,
|
|
66
|
+
"unit": "px"
|
|
67
|
+
},
|
|
68
|
+
"$description": "Height of small chips."
|
|
69
|
+
},
|
|
70
|
+
"font": {
|
|
71
|
+
"size": {
|
|
72
|
+
"$type": "dimension",
|
|
73
|
+
"$value": {
|
|
74
|
+
"value": 12,
|
|
75
|
+
"unit": "px"
|
|
76
|
+
},
|
|
77
|
+
"$description": "Font size of small chips."
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"large": {
|
|
82
|
+
"height": {
|
|
83
|
+
"$type": "dimension",
|
|
84
|
+
"$value": {
|
|
85
|
+
"value": 36,
|
|
86
|
+
"unit": "px"
|
|
87
|
+
},
|
|
88
|
+
"$description": "Height of large chips."
|
|
89
|
+
},
|
|
90
|
+
"font": {
|
|
91
|
+
"size": {
|
|
92
|
+
"$type": "dimension",
|
|
93
|
+
"$value": {
|
|
94
|
+
"value": 14,
|
|
95
|
+
"unit": "px"
|
|
96
|
+
},
|
|
97
|
+
"$description": "Font size of large chips."
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"xlarge": {
|
|
102
|
+
"height": {
|
|
103
|
+
"$type": "dimension",
|
|
104
|
+
"$value": {
|
|
105
|
+
"value": 40,
|
|
106
|
+
"unit": "px"
|
|
107
|
+
},
|
|
108
|
+
"$description": "Height of extra large chips."
|
|
109
|
+
},
|
|
110
|
+
"font": {
|
|
111
|
+
"size": {
|
|
112
|
+
"$type": "dimension",
|
|
113
|
+
"$value": {
|
|
114
|
+
"value": 16,
|
|
115
|
+
"unit": "px"
|
|
116
|
+
},
|
|
117
|
+
"$description": "Font size of extra large chips."
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"color": {
|
|
122
|
+
"background": {
|
|
123
|
+
"$type": "color",
|
|
124
|
+
"$value": "{color.background}",
|
|
125
|
+
"$description": "Fill of chips."
|
|
126
|
+
},
|
|
127
|
+
"foreground": {
|
|
128
|
+
"$type": "color",
|
|
129
|
+
"$value": "{color.foreground}",
|
|
130
|
+
"$description": "Text of chips."
|
|
131
|
+
},
|
|
132
|
+
"border": {
|
|
133
|
+
"$type": "color",
|
|
134
|
+
"$value": "{color.border}",
|
|
135
|
+
"$description": "Border of chips."
|
|
136
|
+
},
|
|
137
|
+
"accent": {
|
|
138
|
+
"$type": "color",
|
|
139
|
+
"$value": "{color.secondary.foreground}",
|
|
140
|
+
"$description": "The remove button of chips."
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"link": {
|
|
3
|
+
"$description": "Links: underlined in text, and plain ones on their own.",
|
|
4
|
+
"$extensions": {
|
|
5
|
+
"is.swell.ui": {
|
|
6
|
+
"variants": true
|
|
7
|
+
}
|
|
8
|
+
},
|
|
9
|
+
"font": {
|
|
10
|
+
"weight": {
|
|
11
|
+
"$type": "fontWeight",
|
|
12
|
+
"$value": "{font.strong.weight}",
|
|
13
|
+
"$description": "Font weight of plain links."
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"color": {
|
|
17
|
+
"accent": {
|
|
18
|
+
"$type": "color",
|
|
19
|
+
"$value": "{color.accent}",
|
|
20
|
+
"$description": "Color of links."
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"radio": {
|
|
3
|
+
"$description": "Dark theme values of radio.",
|
|
4
|
+
"checked": {
|
|
5
|
+
"color": {
|
|
6
|
+
"background": {
|
|
7
|
+
"$type": "color",
|
|
8
|
+
"$value": {
|
|
9
|
+
"colorSpace": "srgb",
|
|
10
|
+
"components": [0.098, 0.1216, 0.1765],
|
|
11
|
+
"hex": "#191f2d"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
{
|
|
2
|
+
"radio": {
|
|
3
|
+
"$description": "Radio groups and their options. The appearance lays the options out: plain draws the circle and the label; outline puts each option in a frame with the background, border and radius below; segmented, set with the attribute only, puts the options on a track and marks the chosen one with a marker in that background, rounded by border.radius; button, set with the attribute only, draws each option as a button in that background and a 1px border, rounded by border.radius.",
|
|
4
|
+
"$extensions": {
|
|
5
|
+
"is.swell.ui": {
|
|
6
|
+
"settings": {
|
|
7
|
+
"appearance": {
|
|
8
|
+
"description": "How the options of a radio group are drawn when the group has no appearance attribute: plain (the circle and the label) or outline (each option in a frame). Segmented and button are set on a group with its attribute only.",
|
|
9
|
+
"values": ["plain", "outline"],
|
|
10
|
+
"default": "plain"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"states": ["checked"]
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"border": {
|
|
17
|
+
"radius": {
|
|
18
|
+
"$type": "dimension",
|
|
19
|
+
"$value": "{border.radius}",
|
|
20
|
+
"$description": "Corner radius of outline options and of skeleton cards."
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"color": {
|
|
24
|
+
"background": {
|
|
25
|
+
"$type": "color",
|
|
26
|
+
"$value": "{color.background}",
|
|
27
|
+
"$description": "Background of outline and button options and of the marker of a segmented group."
|
|
28
|
+
},
|
|
29
|
+
"border": {
|
|
30
|
+
"$type": "color",
|
|
31
|
+
"$value": "{color.border}",
|
|
32
|
+
"$description": "Border of outline and button options; decorative: the circle of an outline option and the label of a button option mark the control."
|
|
33
|
+
},
|
|
34
|
+
"shadow": {
|
|
35
|
+
"$type": "color",
|
|
36
|
+
"$value": {
|
|
37
|
+
"colorSpace": "srgb",
|
|
38
|
+
"components": [0, 0, 0],
|
|
39
|
+
"hex": "#000000",
|
|
40
|
+
"alpha": 0.1
|
|
41
|
+
},
|
|
42
|
+
"$description": "Color of the shadow of the marker of a segmented group."
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"indicator": {
|
|
46
|
+
"$description": "The circle that marks the chosen option.",
|
|
47
|
+
"$extensions": {
|
|
48
|
+
"is.swell.ui": {
|
|
49
|
+
"settings": {
|
|
50
|
+
"position": {
|
|
51
|
+
"description": "Where the circle sits in the row of an option: at the start or at the end.",
|
|
52
|
+
"values": ["start", "end"],
|
|
53
|
+
"default": "start"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"checked": {
|
|
60
|
+
"color": {
|
|
61
|
+
"background": {
|
|
62
|
+
"$type": "color",
|
|
63
|
+
"$value": {
|
|
64
|
+
"colorSpace": "srgb",
|
|
65
|
+
"components": [0.9451, 0.9569, 0.9961],
|
|
66
|
+
"hex": "#f1f4fe"
|
|
67
|
+
},
|
|
68
|
+
"$description": "Fill of the chosen option of a group drawn as buttons."
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"shadow": {
|
|
73
|
+
"$type": "shadow",
|
|
74
|
+
"$value": {
|
|
75
|
+
"color": "{radio.color.shadow}",
|
|
76
|
+
"offsetX": {
|
|
77
|
+
"value": 0,
|
|
78
|
+
"unit": "px"
|
|
79
|
+
},
|
|
80
|
+
"offsetY": {
|
|
81
|
+
"value": 1,
|
|
82
|
+
"unit": "px"
|
|
83
|
+
},
|
|
84
|
+
"blur": {
|
|
85
|
+
"value": 3,
|
|
86
|
+
"unit": "px"
|
|
87
|
+
},
|
|
88
|
+
"spread": {
|
|
89
|
+
"value": 0,
|
|
90
|
+
"unit": "px"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"$description": "Shadow of the marker under the chosen option of a segmented group, in radio.color.shadow."
|
|
94
|
+
},
|
|
95
|
+
"gap": {
|
|
96
|
+
"$type": "dimension",
|
|
97
|
+
"$value": {
|
|
98
|
+
"value": 8,
|
|
99
|
+
"unit": "px"
|
|
100
|
+
},
|
|
101
|
+
"$description": "Space between the options of a radio group."
|
|
102
|
+
},
|
|
103
|
+
"button": {
|
|
104
|
+
"gap": {
|
|
105
|
+
"$type": "dimension",
|
|
106
|
+
"$value": {
|
|
107
|
+
"value": 6,
|
|
108
|
+
"unit": "px"
|
|
109
|
+
},
|
|
110
|
+
"$description": "Space between the options of a radio group drawn as buttons."
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"status": {
|
|
3
|
+
"$description": "Dark theme values of status.",
|
|
4
|
+
"danger": {
|
|
5
|
+
"color": {
|
|
6
|
+
"background": {
|
|
7
|
+
"$type": "color",
|
|
8
|
+
"$value": {
|
|
9
|
+
"colorSpace": "srgb",
|
|
10
|
+
"components": [0.949, 0.3333, 0.3529],
|
|
11
|
+
"hex": "#f2555a",
|
|
12
|
+
"alpha": 0.09
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"border": {
|
|
16
|
+
"$type": "color",
|
|
17
|
+
"$value": {
|
|
18
|
+
"colorSpace": "srgb",
|
|
19
|
+
"components": [0.949, 0.3333, 0.3529],
|
|
20
|
+
"hex": "#f2555a",
|
|
21
|
+
"alpha": 0.35
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"success": {
|
|
27
|
+
"color": {
|
|
28
|
+
"background": {
|
|
29
|
+
"$type": "color",
|
|
30
|
+
"$value": {
|
|
31
|
+
"colorSpace": "srgb",
|
|
32
|
+
"components": [0.2431, 0.8118, 0.5569],
|
|
33
|
+
"hex": "#3ecf8e",
|
|
34
|
+
"alpha": 0.09
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"border": {
|
|
38
|
+
"$type": "color",
|
|
39
|
+
"$value": {
|
|
40
|
+
"colorSpace": "srgb",
|
|
41
|
+
"components": [0.2431, 0.8118, 0.5569],
|
|
42
|
+
"hex": "#3ecf8e",
|
|
43
|
+
"alpha": 0.35
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"warning": {
|
|
49
|
+
"color": {
|
|
50
|
+
"background": {
|
|
51
|
+
"$type": "color",
|
|
52
|
+
"$value": {
|
|
53
|
+
"colorSpace": "srgb",
|
|
54
|
+
"components": [0.9412, 0.6667, 0.2353],
|
|
55
|
+
"hex": "#f0aa3c",
|
|
56
|
+
"alpha": 0.09
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"border": {
|
|
60
|
+
"$type": "color",
|
|
61
|
+
"$value": {
|
|
62
|
+
"colorSpace": "srgb",
|
|
63
|
+
"components": [0.9412, 0.6667, 0.2353],
|
|
64
|
+
"hex": "#f0aa3c",
|
|
65
|
+
"alpha": 0.35
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
{
|
|
2
|
+
"status": {
|
|
3
|
+
"$description": "Status messages. The type picks the color of the icon and border, and tints the background of a filled message; the appearance lays it out: filled adds the background, outline keeps the border, plain keeps the icon and text in the font of a field error, and quiet draws a note in the quiet palette.",
|
|
4
|
+
"$extensions": {
|
|
5
|
+
"is.swell.ui": {
|
|
6
|
+
"attributes": {
|
|
7
|
+
"type": ["danger", "success", "warning"]
|
|
8
|
+
},
|
|
9
|
+
"settings": {
|
|
10
|
+
"appearance": {
|
|
11
|
+
"description": "How status messages are drawn when the element has no appearance attribute.",
|
|
12
|
+
"values": ["filled", "outline", "plain"],
|
|
13
|
+
"default": "filled"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"border": {
|
|
19
|
+
"radius": {
|
|
20
|
+
"$type": "dimension",
|
|
21
|
+
"$value": "{border.radius}",
|
|
22
|
+
"$description": "Corner radius of status messages."
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"color": {
|
|
26
|
+
"background": {
|
|
27
|
+
"$type": "color",
|
|
28
|
+
"$value": "{color.secondary.background}",
|
|
29
|
+
"$description": "Background of filled messages; a type sets its own."
|
|
30
|
+
},
|
|
31
|
+
"foreground": {
|
|
32
|
+
"$type": "color",
|
|
33
|
+
"$value": "{color.foreground}",
|
|
34
|
+
"$description": "Text of status messages."
|
|
35
|
+
},
|
|
36
|
+
"accent": {
|
|
37
|
+
"$type": "color",
|
|
38
|
+
"$value": "{status.color.foreground}",
|
|
39
|
+
"$description": "Icon of a message without a type, such as the host's start icon; a type sets its own, which also draws the border of an outline message and the text of a plain danger one."
|
|
40
|
+
},
|
|
41
|
+
"border": {
|
|
42
|
+
"$type": "color",
|
|
43
|
+
"$value": "{color.border}",
|
|
44
|
+
"$description": "Border of messages; a type sets its own."
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"danger": {
|
|
48
|
+
"color": {
|
|
49
|
+
"accent": {
|
|
50
|
+
"$type": "color",
|
|
51
|
+
"$value": "{color.danger}",
|
|
52
|
+
"$description": "Icon of danger messages, the border of an outline one and the text of a plain one."
|
|
53
|
+
},
|
|
54
|
+
"background": {
|
|
55
|
+
"$type": "color",
|
|
56
|
+
"$value": {
|
|
57
|
+
"colorSpace": "srgb",
|
|
58
|
+
"components": [0.8431, 0.2157, 0.2392],
|
|
59
|
+
"hex": "#d7373d",
|
|
60
|
+
"alpha": 0.09
|
|
61
|
+
},
|
|
62
|
+
"$description": "Background of filled danger messages."
|
|
63
|
+
},
|
|
64
|
+
"border": {
|
|
65
|
+
"$type": "color",
|
|
66
|
+
"$value": {
|
|
67
|
+
"colorSpace": "srgb",
|
|
68
|
+
"components": [0.8431, 0.2157, 0.2392],
|
|
69
|
+
"hex": "#d7373d",
|
|
70
|
+
"alpha": 0.35
|
|
71
|
+
},
|
|
72
|
+
"$description": "Border of filled danger messages."
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"success": {
|
|
77
|
+
"color": {
|
|
78
|
+
"accent": {
|
|
79
|
+
"$type": "color",
|
|
80
|
+
"$value": "{color.success}",
|
|
81
|
+
"$description": "Icon of success messages, the border of an outline one."
|
|
82
|
+
},
|
|
83
|
+
"background": {
|
|
84
|
+
"$type": "color",
|
|
85
|
+
"$value": {
|
|
86
|
+
"colorSpace": "srgb",
|
|
87
|
+
"components": [0.0706, 0.5804, 0.3686],
|
|
88
|
+
"hex": "#12945e",
|
|
89
|
+
"alpha": 0.09
|
|
90
|
+
},
|
|
91
|
+
"$description": "Background of filled success messages."
|
|
92
|
+
},
|
|
93
|
+
"border": {
|
|
94
|
+
"$type": "color",
|
|
95
|
+
"$value": {
|
|
96
|
+
"colorSpace": "srgb",
|
|
97
|
+
"components": [0.0706, 0.5804, 0.3686],
|
|
98
|
+
"hex": "#12945e",
|
|
99
|
+
"alpha": 0.35
|
|
100
|
+
},
|
|
101
|
+
"$description": "Border of filled success messages."
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"warning": {
|
|
106
|
+
"color": {
|
|
107
|
+
"accent": {
|
|
108
|
+
"$type": "color",
|
|
109
|
+
"$value": "{color.warning}",
|
|
110
|
+
"$description": "Icon of warning messages, the border of an outline one."
|
|
111
|
+
},
|
|
112
|
+
"background": {
|
|
113
|
+
"$type": "color",
|
|
114
|
+
"$value": {
|
|
115
|
+
"colorSpace": "srgb",
|
|
116
|
+
"components": [0.7255, 0.4392, 0.0392],
|
|
117
|
+
"hex": "#b9700a",
|
|
118
|
+
"alpha": 0.09
|
|
119
|
+
},
|
|
120
|
+
"$description": "Background of filled warning messages."
|
|
121
|
+
},
|
|
122
|
+
"border": {
|
|
123
|
+
"$type": "color",
|
|
124
|
+
"$value": {
|
|
125
|
+
"colorSpace": "srgb",
|
|
126
|
+
"components": [0.7255, 0.4392, 0.0392],
|
|
127
|
+
"hex": "#b9700a",
|
|
128
|
+
"alpha": 0.35
|
|
129
|
+
},
|
|
130
|
+
"$description": "Border of filled warning messages."
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
{
|
|
2
|
+
"tabs": {
|
|
3
|
+
"$description": "Tabs: a line under the chosen tab, a track with a marker under it, or numbered steps. The colors come from the palette; a segmented track takes color.secondary.background and its marker the background below, with a ring in field.color.border.",
|
|
4
|
+
"$extensions": {
|
|
5
|
+
"is.swell.ui": {
|
|
6
|
+
"settings": {
|
|
7
|
+
"appearance": {
|
|
8
|
+
"description": "How tabs are drawn when the element has no appearance attribute; steps come from the attribute only.",
|
|
9
|
+
"values": ["underline", "segmented"],
|
|
10
|
+
"default": "underline"
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"border": {
|
|
16
|
+
"radius": {
|
|
17
|
+
"$type": "dimension",
|
|
18
|
+
"$value": "{border.radius}",
|
|
19
|
+
"$description": "Corner radius of the marker of segmented tabs; the track takes 4px more."
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"indicator": {
|
|
23
|
+
"width": {
|
|
24
|
+
"$type": "dimension",
|
|
25
|
+
"$value": {
|
|
26
|
+
"value": 2,
|
|
27
|
+
"unit": "px"
|
|
28
|
+
},
|
|
29
|
+
"$description": "Width of the line that marks the chosen tab, and of the lines between steps."
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"color": {
|
|
33
|
+
"background": {
|
|
34
|
+
"$type": "color",
|
|
35
|
+
"$value": "{color.background}",
|
|
36
|
+
"$description": "Background of the marker of segmented tabs."
|
|
37
|
+
},
|
|
38
|
+
"shadow": {
|
|
39
|
+
"$type": "color",
|
|
40
|
+
"$value": {
|
|
41
|
+
"colorSpace": "srgb",
|
|
42
|
+
"components": [0, 0, 0],
|
|
43
|
+
"alpha": 0.1,
|
|
44
|
+
"hex": "#000000"
|
|
45
|
+
},
|
|
46
|
+
"$description": "Color of the shadow of the marker of segmented tabs."
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"font": {
|
|
50
|
+
"weight": {
|
|
51
|
+
"$type": "fontWeight",
|
|
52
|
+
"$value": "{font.strong.weight}",
|
|
53
|
+
"$description": "Font weight of tab labels."
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"shadow": {
|
|
57
|
+
"$type": "shadow",
|
|
58
|
+
"$value": {
|
|
59
|
+
"color": "{tabs.color.shadow}",
|
|
60
|
+
"offsetX": {
|
|
61
|
+
"value": 0,
|
|
62
|
+
"unit": "px"
|
|
63
|
+
},
|
|
64
|
+
"offsetY": {
|
|
65
|
+
"value": 1,
|
|
66
|
+
"unit": "px"
|
|
67
|
+
},
|
|
68
|
+
"blur": {
|
|
69
|
+
"value": 3,
|
|
70
|
+
"unit": "px"
|
|
71
|
+
},
|
|
72
|
+
"spread": {
|
|
73
|
+
"value": 0,
|
|
74
|
+
"unit": "px"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"$description": "Shadow of the marker under the chosen segmented tab, in tabs.color.shadow."
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|