@blockle/blocks 0.11.0 → 0.11.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/dist/index.cjs +10 -42
- package/dist/index.mjs +4 -36
- package/dist/momotaro.chunk.d.ts +266 -266
- package/dist/reset.css.cjs +0 -2
- package/dist/reset.css.mjs +0 -2
- package/dist/styles/components/display/Divider/divider.css.cjs +10 -3
- package/dist/styles/components/display/Divider/divider.css.mjs +10 -3
- package/dist/styles/components/form/Button/Button.css.cjs +10 -3
- package/dist/styles/components/form/Button/Button.css.mjs +10 -3
- package/dist/styles/components/form/Checkbox/checkbox.css.cjs +24 -5
- package/dist/styles/components/form/Checkbox/checkbox.css.mjs +24 -5
- package/dist/styles/components/form/Input/input.css.cjs +14 -3
- package/dist/styles/components/form/Input/input.css.mjs +14 -3
- package/dist/styles/components/form/Radio/radio.css.cjs +24 -5
- package/dist/styles/components/form/Radio/radio.css.mjs +24 -5
- package/dist/styles/components/form/Select/select.css.cjs +30 -5
- package/dist/styles/components/form/Select/select.css.mjs +30 -5
- package/dist/styles/components/form/Slider/slider.css.cjs +64 -7
- package/dist/styles/components/form/Slider/slider.css.mjs +64 -7
- package/dist/styles/components/form/Switch/switch.css.cjs +20 -4
- package/dist/styles/components/form/Switch/switch.css.mjs +20 -4
- package/dist/styles/components/overlay/Dialog/dialog.css.cjs +18 -3
- package/dist/styles/components/overlay/Dialog/dialog.css.mjs +18 -3
- package/dist/styles/components/typography/Heading/heading.css.cjs +10 -3
- package/dist/styles/components/typography/Heading/heading.css.mjs +10 -3
- package/dist/styles/components/typography/Text/text.css.cjs +10 -3
- package/dist/styles/components/typography/Text/text.css.mjs +10 -3
- package/dist/styles/lib/css/atoms/atomicProperties.cjs +83 -0
- package/dist/styles/lib/css/atoms/atomicProperties.mjs +84 -0
- package/dist/styles/lib/css/atoms/breakpoints.cjs +11 -0
- package/dist/styles/lib/css/atoms/breakpoints.mjs +12 -0
- package/dist/styles/lib/css/atoms/sprinkles.css.cjs +31 -2088
- package/dist/styles/lib/css/atoms/sprinkles.css.mjs +31 -2088
- package/dist/styles/lib/css/layers/layers.css.cjs +7 -0
- package/dist/styles/lib/css/layers/layers.css.mjs +8 -0
- package/dist/styles/lib/css/style/style.cjs +28 -0
- package/dist/styles/lib/css/style/style.mjs +29 -0
- package/dist/styles/lib/theme/makeComponentTheme.cjs +5 -0
- package/dist/styles/lib/theme/makeComponentTheme.mjs +6 -0
- package/dist/styles/lib/theme/makeTheme.cjs +2 -18
- package/dist/styles/lib/theme/makeTheme.mjs +1 -17
- package/dist/styles/lib/theme/makeVanillaTheme.cjs +19 -0
- package/dist/styles/lib/theme/makeVanillaTheme.mjs +20 -0
- package/dist/styles/lib/theme/tokens.cjs +81 -0
- package/dist/styles/lib/theme/tokens.mjs +82 -0
- package/dist/styles/lib/theme/vars.css.cjs +4 -76
- package/dist/styles/lib/theme/vars.css.mjs +4 -76
- package/dist/styles/themes/momotaro/components/button.css.cjs +103 -0
- package/dist/styles/themes/momotaro/components/button.css.mjs +104 -0
- package/dist/styles/themes/momotaro/components/checkbox.css.cjs +59 -0
- package/dist/styles/themes/momotaro/components/checkbox.css.mjs +60 -0
- package/dist/styles/themes/momotaro/components/dialog.css.cjs +68 -0
- package/dist/styles/themes/momotaro/components/dialog.css.mjs +69 -0
- package/dist/styles/themes/momotaro/components/divider.css.cjs +11 -0
- package/dist/styles/themes/momotaro/components/divider.css.mjs +12 -0
- package/dist/styles/themes/momotaro/components/dropdown.css.cjs +53 -0
- package/dist/styles/themes/momotaro/components/dropdown.css.mjs +54 -0
- package/dist/styles/themes/momotaro/components/helpers.css.cjs +43 -0
- package/dist/styles/themes/momotaro/components/helpers.css.mjs +44 -0
- package/dist/styles/themes/momotaro/components/index.cjs +32 -0
- package/dist/styles/themes/momotaro/components/index.mjs +33 -0
- package/dist/styles/themes/momotaro/components/input.css.cjs +41 -0
- package/dist/styles/themes/momotaro/components/input.css.mjs +42 -0
- package/dist/styles/themes/momotaro/components/label.css.cjs +33 -0
- package/dist/styles/themes/momotaro/components/label.css.mjs +34 -0
- package/dist/styles/themes/momotaro/components/link.css.cjs +47 -0
- package/dist/styles/themes/momotaro/components/link.css.mjs +48 -0
- package/dist/styles/themes/momotaro/components/progress.css.cjs +55 -0
- package/dist/styles/themes/momotaro/components/progress.css.mjs +56 -0
- package/dist/styles/themes/momotaro/components/radio.css.cjs +60 -0
- package/dist/styles/themes/momotaro/components/radio.css.mjs +61 -0
- package/dist/styles/themes/momotaro/components/select.css.cjs +44 -0
- package/dist/styles/themes/momotaro/components/select.css.mjs +45 -0
- package/dist/styles/themes/momotaro/components/slider.css.cjs +65 -0
- package/dist/styles/themes/momotaro/components/slider.css.mjs +66 -0
- package/dist/styles/themes/momotaro/components/spinner.css.cjs +43 -0
- package/dist/styles/themes/momotaro/components/spinner.css.mjs +44 -0
- package/dist/styles/themes/momotaro/components/switch.css.cjs +58 -0
- package/dist/styles/themes/momotaro/components/switch.css.mjs +59 -0
- package/dist/styles/themes/momotaro/components/transitions.cjs +3 -0
- package/dist/styles/themes/momotaro/components/transitions.mjs +4 -0
- package/dist/styles/themes/momotaro/momotaro.css.cjs +7 -191
- package/dist/styles/themes/momotaro/momotaro.css.mjs +7 -191
- package/dist/styles/themes/momotaro/tokens.css.cjs +84 -0
- package/dist/styles/themes/momotaro/tokens.css.mjs +85 -0
- package/package.json +1 -1
- package/dist/style.css +0 -2851
- package/dist/styles/components/form/Button/Button.css.ts.vanilla.cjs +0 -1
- package/dist/styles/components/form/Button/Button.css.ts.vanilla.mjs +0 -1
- package/dist/styles/components/form/Checkbox/checkbox.css.ts.vanilla.cjs +0 -1
- package/dist/styles/components/form/Checkbox/checkbox.css.ts.vanilla.mjs +0 -1
- package/dist/styles/components/form/Input/input.css.ts.vanilla.cjs +0 -1
- package/dist/styles/components/form/Input/input.css.ts.vanilla.mjs +0 -1
- package/dist/styles/components/form/Radio/radio.css.ts.vanilla.cjs +0 -1
- package/dist/styles/components/form/Radio/radio.css.ts.vanilla.mjs +0 -1
- package/dist/styles/components/form/Select/select.css.ts.vanilla.cjs +0 -1
- package/dist/styles/components/form/Select/select.css.ts.vanilla.mjs +0 -1
- package/dist/styles/components/form/Slider/slider.css.ts.vanilla.cjs +0 -1
- package/dist/styles/components/form/Slider/slider.css.ts.vanilla.mjs +0 -1
- package/dist/styles/components/form/Switch/switch.css.ts.vanilla.cjs +0 -1
- package/dist/styles/components/form/Switch/switch.css.ts.vanilla.mjs +0 -1
- package/dist/styles/components/overlay/Dialog/dialog.css.ts.vanilla.cjs +0 -1
- package/dist/styles/components/overlay/Dialog/dialog.css.ts.vanilla.mjs +0 -1
- package/dist/styles/components/typography/Heading/heading.css.ts.vanilla.cjs +0 -1
- package/dist/styles/components/typography/Heading/heading.css.ts.vanilla.mjs +0 -1
- package/dist/styles/components/typography/Text/text.css.ts.vanilla.cjs +0 -1
- package/dist/styles/components/typography/Text/text.css.ts.vanilla.mjs +0 -1
- package/dist/styles/entries/reset.css.ts.vanilla.cjs +0 -1
- package/dist/styles/entries/reset.css.ts.vanilla.mjs +0 -1
- package/dist/styles/lib/css/atoms/sprinkles.css.ts.vanilla.cjs +0 -1
- package/dist/styles/lib/css/atoms/sprinkles.css.ts.vanilla.mjs +0 -1
- package/dist/styles/lib/css/layers/layers.css.ts.vanilla.cjs +0 -1
- package/dist/styles/lib/css/layers/layers.css.ts.vanilla.mjs +0 -1
- package/dist/styles/lib/css/reset/reset.css.ts.vanilla.cjs +0 -1
- package/dist/styles/lib/css/reset/reset.css.ts.vanilla.mjs +0 -1
- package/dist/styles/lib/theme/vars.css.ts.vanilla.cjs +0 -1
- package/dist/styles/lib/theme/vars.css.ts.vanilla.mjs +0 -1
- package/dist/styles/themes/momotaro/components/button.css.ts.vanilla.cjs +0 -1
- package/dist/styles/themes/momotaro/components/button.css.ts.vanilla.mjs +0 -1
- package/dist/styles/themes/momotaro/components/checkbox.css.ts.vanilla.cjs +0 -1
- package/dist/styles/themes/momotaro/components/checkbox.css.ts.vanilla.mjs +0 -1
- package/dist/styles/themes/momotaro/components/dialog.css.ts.vanilla.cjs +0 -1
- package/dist/styles/themes/momotaro/components/dialog.css.ts.vanilla.mjs +0 -1
- package/dist/styles/themes/momotaro/components/divider.css.ts.vanilla.cjs +0 -1
- package/dist/styles/themes/momotaro/components/divider.css.ts.vanilla.mjs +0 -1
- package/dist/styles/themes/momotaro/components/dropdown.css.ts.vanilla.cjs +0 -1
- package/dist/styles/themes/momotaro/components/dropdown.css.ts.vanilla.mjs +0 -1
- package/dist/styles/themes/momotaro/components/helpers.css.ts.vanilla.cjs +0 -1
- package/dist/styles/themes/momotaro/components/helpers.css.ts.vanilla.mjs +0 -1
- package/dist/styles/themes/momotaro/components/input.css.ts.vanilla.cjs +0 -1
- package/dist/styles/themes/momotaro/components/input.css.ts.vanilla.mjs +0 -1
- package/dist/styles/themes/momotaro/components/label.css.ts.vanilla.cjs +0 -1
- package/dist/styles/themes/momotaro/components/label.css.ts.vanilla.mjs +0 -1
- package/dist/styles/themes/momotaro/components/link.css.ts.vanilla.cjs +0 -1
- package/dist/styles/themes/momotaro/components/link.css.ts.vanilla.mjs +0 -1
- package/dist/styles/themes/momotaro/components/progress.css.ts.vanilla.cjs +0 -1
- package/dist/styles/themes/momotaro/components/progress.css.ts.vanilla.mjs +0 -1
- package/dist/styles/themes/momotaro/components/radio.css.ts.vanilla.cjs +0 -1
- package/dist/styles/themes/momotaro/components/radio.css.ts.vanilla.mjs +0 -1
- package/dist/styles/themes/momotaro/components/select.css.ts.vanilla.cjs +0 -1
- package/dist/styles/themes/momotaro/components/select.css.ts.vanilla.mjs +0 -1
- package/dist/styles/themes/momotaro/components/slider.css.ts.vanilla.cjs +0 -1
- package/dist/styles/themes/momotaro/components/slider.css.ts.vanilla.mjs +0 -1
- package/dist/styles/themes/momotaro/components/spinner.css.ts.vanilla.cjs +0 -1
- package/dist/styles/themes/momotaro/components/spinner.css.ts.vanilla.mjs +0 -1
- package/dist/styles/themes/momotaro/components/switch.css.ts.vanilla.cjs +0 -1
- package/dist/styles/themes/momotaro/components/switch.css.ts.vanilla.mjs +0 -1
- package/dist/styles/themes/momotaro/momotaro.css.ts.vanilla.cjs +0 -1
- package/dist/styles/themes/momotaro/momotaro.css.ts.vanilla.mjs +0 -1
- package/dist/styles/themes/momotaro/tokens.css.ts.vanilla.cjs +0 -1
- package/dist/styles/themes/momotaro/tokens.css.ts.vanilla.mjs +0 -1
- /package/dist/styles/{components/display/Divider/divider.css.ts.vanilla.cjs → lib/css/reset/reset.css.cjs} +0 -0
- /package/dist/styles/{components/display/Divider/divider.css.ts.vanilla.mjs → lib/css/reset/reset.css.mjs} +0 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
+
import { createVar } from "@vanilla-extract/css";
|
|
3
|
+
import { style } from "../../../lib/css/style/style.mjs";
|
|
4
|
+
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.mjs";
|
|
5
|
+
import { vars } from "../../../lib/theme/vars.css.mjs";
|
|
6
|
+
import { focusable } from "./helpers.css.mjs";
|
|
7
|
+
setFileScope("src/themes/momotaro/components/slider.css.ts", "@blockle/blocks");
|
|
8
|
+
const trackBackground = createVar("trackBackground");
|
|
9
|
+
const filledTrackBackground = createVar("filledTrackBackground");
|
|
10
|
+
const thumbBackground = createVar("thumbBackground");
|
|
11
|
+
const slider = makeComponentTheme("slider", {
|
|
12
|
+
base: style({
|
|
13
|
+
blockSize: "20px"
|
|
14
|
+
}),
|
|
15
|
+
track: style({
|
|
16
|
+
blockSize: "4px",
|
|
17
|
+
backgroundColor: trackBackground,
|
|
18
|
+
borderRadius: "small"
|
|
19
|
+
}),
|
|
20
|
+
filledTrack: style({
|
|
21
|
+
backgroundColor: filledTrackBackground
|
|
22
|
+
}),
|
|
23
|
+
thumb: style([{
|
|
24
|
+
backgroundColor: thumbBackground,
|
|
25
|
+
borderRadius: "50%",
|
|
26
|
+
height: "16px",
|
|
27
|
+
width: "16px"
|
|
28
|
+
}, focusable]),
|
|
29
|
+
variants: {
|
|
30
|
+
size: {
|
|
31
|
+
small: style({
|
|
32
|
+
inlineSize: "100px"
|
|
33
|
+
}),
|
|
34
|
+
medium: style({
|
|
35
|
+
inlineSize: "200px"
|
|
36
|
+
}),
|
|
37
|
+
large: style({
|
|
38
|
+
inlineSize: "300px"
|
|
39
|
+
})
|
|
40
|
+
},
|
|
41
|
+
colorScheme: {
|
|
42
|
+
primary: style({
|
|
43
|
+
vars: {
|
|
44
|
+
[trackBackground]: vars.color.primaryLight,
|
|
45
|
+
[filledTrackBackground]: vars.color.primary,
|
|
46
|
+
[thumbBackground]: vars.color.primary
|
|
47
|
+
}
|
|
48
|
+
}),
|
|
49
|
+
secondary: style({
|
|
50
|
+
vars: {
|
|
51
|
+
[trackBackground]: vars.color.primaryLight,
|
|
52
|
+
[filledTrackBackground]: vars.color.secondary,
|
|
53
|
+
[thumbBackground]: vars.color.secondary
|
|
54
|
+
}
|
|
55
|
+
})
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
defaultVariants: {
|
|
59
|
+
size: "medium",
|
|
60
|
+
colorScheme: "primary"
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
endFileScope();
|
|
64
|
+
export {
|
|
65
|
+
slider
|
|
66
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
|
+
const css = require("@vanilla-extract/css");
|
|
4
|
+
const styles_lib_theme_makeComponentTheme_cjs = require("../../../lib/theme/makeComponentTheme.cjs");
|
|
5
|
+
fileScope.setFileScope("src/themes/momotaro/components/spinner.css.ts", "@blockle/blocks");
|
|
6
|
+
const spinAnimation = css.keyframes({
|
|
7
|
+
"0%": {
|
|
8
|
+
transform: "rotate(0deg)"
|
|
9
|
+
},
|
|
10
|
+
"100%": {
|
|
11
|
+
transform: "rotate(360deg)"
|
|
12
|
+
}
|
|
13
|
+
}, "spinAnimation");
|
|
14
|
+
const spinner = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("spinner", {
|
|
15
|
+
base: css.style({
|
|
16
|
+
aspectRatio: "1 / 1",
|
|
17
|
+
overflow: "hidden",
|
|
18
|
+
borderRadius: "50%",
|
|
19
|
+
borderWidth: "3px",
|
|
20
|
+
borderStyle: "solid",
|
|
21
|
+
borderColor: "currentColor transparent currentColor transparent",
|
|
22
|
+
animation: `${spinAnimation} 1.2s linear infinite`
|
|
23
|
+
}, "spinner_base"),
|
|
24
|
+
variants: {
|
|
25
|
+
// note: colors are handled by atoms
|
|
26
|
+
size: {
|
|
27
|
+
small: css.style({
|
|
28
|
+
width: 16
|
|
29
|
+
}, "spinner_variants_size_small"),
|
|
30
|
+
medium: css.style({
|
|
31
|
+
width: 24
|
|
32
|
+
}, "spinner_variants_size_medium"),
|
|
33
|
+
large: css.style({
|
|
34
|
+
width: 32
|
|
35
|
+
}, "spinner_variants_size_large")
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
defaultVariants: {
|
|
39
|
+
size: "small"
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
fileScope.endFileScope();
|
|
43
|
+
exports.spinner = spinner;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
+
import { keyframes, style } from "@vanilla-extract/css";
|
|
3
|
+
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.mjs";
|
|
4
|
+
setFileScope("src/themes/momotaro/components/spinner.css.ts", "@blockle/blocks");
|
|
5
|
+
const spinAnimation = keyframes({
|
|
6
|
+
"0%": {
|
|
7
|
+
transform: "rotate(0deg)"
|
|
8
|
+
},
|
|
9
|
+
"100%": {
|
|
10
|
+
transform: "rotate(360deg)"
|
|
11
|
+
}
|
|
12
|
+
}, "spinAnimation");
|
|
13
|
+
const spinner = makeComponentTheme("spinner", {
|
|
14
|
+
base: style({
|
|
15
|
+
aspectRatio: "1 / 1",
|
|
16
|
+
overflow: "hidden",
|
|
17
|
+
borderRadius: "50%",
|
|
18
|
+
borderWidth: "3px",
|
|
19
|
+
borderStyle: "solid",
|
|
20
|
+
borderColor: "currentColor transparent currentColor transparent",
|
|
21
|
+
animation: `${spinAnimation} 1.2s linear infinite`
|
|
22
|
+
}, "spinner_base"),
|
|
23
|
+
variants: {
|
|
24
|
+
// note: colors are handled by atoms
|
|
25
|
+
size: {
|
|
26
|
+
small: style({
|
|
27
|
+
width: 16
|
|
28
|
+
}, "spinner_variants_size_small"),
|
|
29
|
+
medium: style({
|
|
30
|
+
width: 24
|
|
31
|
+
}, "spinner_variants_size_medium"),
|
|
32
|
+
large: style({
|
|
33
|
+
width: 32
|
|
34
|
+
}, "spinner_variants_size_large")
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
defaultVariants: {
|
|
38
|
+
size: "small"
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
endFileScope();
|
|
42
|
+
export {
|
|
43
|
+
spinner
|
|
44
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
|
+
const css = require("@vanilla-extract/css");
|
|
4
|
+
const styles_lib_css_style_style_cjs = require("../../../lib/css/style/style.cjs");
|
|
5
|
+
const styles_lib_theme_makeComponentTheme_cjs = require("../../../lib/theme/makeComponentTheme.cjs");
|
|
6
|
+
const styles_lib_theme_vars_css_cjs = require("../../../lib/theme/vars.css.cjs");
|
|
7
|
+
const styles_themes_momotaro_components_helpers_css_cjs = require("./helpers.css.cjs");
|
|
8
|
+
fileScope.setFileScope("src/themes/momotaro/components/switch.css.ts", "@blockle/blocks");
|
|
9
|
+
const activeScaleFactor = css.createVar("activeScaleFactor");
|
|
10
|
+
const switchTheme = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("switch", {
|
|
11
|
+
base: styles_lib_css_style_style_cjs.style([{
|
|
12
|
+
width: 52,
|
|
13
|
+
height: 32,
|
|
14
|
+
borderRadius: "xlarge",
|
|
15
|
+
backgroundColor: "textLight",
|
|
16
|
+
"@media": {
|
|
17
|
+
"(prefers-reduced-motion: no-preference)": {
|
|
18
|
+
transition: `background-color 120ms linear, box-shadow ${styles_lib_theme_vars_css_cjs.vars.transition.fast}`
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
selectors: {
|
|
22
|
+
'&[data-checked="true"]': {
|
|
23
|
+
backgroundColor: styles_lib_theme_vars_css_cjs.vars.color.secondary
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
// Scale the switch when it's `:active`
|
|
27
|
+
vars: {
|
|
28
|
+
[activeScaleFactor]: "1"
|
|
29
|
+
},
|
|
30
|
+
":active": {
|
|
31
|
+
vars: {
|
|
32
|
+
[activeScaleFactor]: "0.96"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}, styles_themes_momotaro_components_helpers_css_cjs.focusable]),
|
|
36
|
+
slider: styles_lib_css_style_style_cjs.style({
|
|
37
|
+
width: 24,
|
|
38
|
+
height: 24,
|
|
39
|
+
top: 4,
|
|
40
|
+
left: 4,
|
|
41
|
+
transform: `translateX(0) scale(calc(0.9 * ${activeScaleFactor}))`,
|
|
42
|
+
position: "absolute",
|
|
43
|
+
backgroundColor: "white",
|
|
44
|
+
borderRadius: "xlarge",
|
|
45
|
+
selectors: {
|
|
46
|
+
'&[data-checked="true"]': {
|
|
47
|
+
transform: `translateX(20px) scale(${activeScaleFactor})`
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"@media": {
|
|
51
|
+
"(prefers-reduced-motion: no-preference)": {
|
|
52
|
+
transition: "transform 120ms ease-out"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
})
|
|
56
|
+
});
|
|
57
|
+
fileScope.endFileScope();
|
|
58
|
+
exports.switchTheme = switchTheme;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
+
import { createVar } from "@vanilla-extract/css";
|
|
3
|
+
import { style } from "../../../lib/css/style/style.mjs";
|
|
4
|
+
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.mjs";
|
|
5
|
+
import { vars } from "../../../lib/theme/vars.css.mjs";
|
|
6
|
+
import { focusable } from "./helpers.css.mjs";
|
|
7
|
+
setFileScope("src/themes/momotaro/components/switch.css.ts", "@blockle/blocks");
|
|
8
|
+
const activeScaleFactor = createVar("activeScaleFactor");
|
|
9
|
+
const switchTheme = makeComponentTheme("switch", {
|
|
10
|
+
base: style([{
|
|
11
|
+
width: 52,
|
|
12
|
+
height: 32,
|
|
13
|
+
borderRadius: "xlarge",
|
|
14
|
+
backgroundColor: "textLight",
|
|
15
|
+
"@media": {
|
|
16
|
+
"(prefers-reduced-motion: no-preference)": {
|
|
17
|
+
transition: `background-color 120ms linear, box-shadow ${vars.transition.fast}`
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
selectors: {
|
|
21
|
+
'&[data-checked="true"]': {
|
|
22
|
+
backgroundColor: vars.color.secondary
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
// Scale the switch when it's `:active`
|
|
26
|
+
vars: {
|
|
27
|
+
[activeScaleFactor]: "1"
|
|
28
|
+
},
|
|
29
|
+
":active": {
|
|
30
|
+
vars: {
|
|
31
|
+
[activeScaleFactor]: "0.96"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}, focusable]),
|
|
35
|
+
slider: style({
|
|
36
|
+
width: 24,
|
|
37
|
+
height: 24,
|
|
38
|
+
top: 4,
|
|
39
|
+
left: 4,
|
|
40
|
+
transform: `translateX(0) scale(calc(0.9 * ${activeScaleFactor}))`,
|
|
41
|
+
position: "absolute",
|
|
42
|
+
backgroundColor: "white",
|
|
43
|
+
borderRadius: "xlarge",
|
|
44
|
+
selectors: {
|
|
45
|
+
'&[data-checked="true"]': {
|
|
46
|
+
transform: `translateX(20px) scale(${activeScaleFactor})`
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"@media": {
|
|
50
|
+
"(prefers-reduced-motion: no-preference)": {
|
|
51
|
+
transition: "transform 120ms ease-out"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
})
|
|
55
|
+
});
|
|
56
|
+
endFileScope();
|
|
57
|
+
export {
|
|
58
|
+
switchTheme
|
|
59
|
+
};
|
|
@@ -1,197 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
|
-
require("
|
|
4
|
-
require("./components/
|
|
5
|
-
require("./
|
|
6
|
-
require("./components/dialog.css.ts.vanilla.cjs");
|
|
7
|
-
require("./components/divider.css.ts.vanilla.cjs");
|
|
8
|
-
require("./components/dropdown.css.ts.vanilla.cjs");
|
|
9
|
-
require("./components/input.css.ts.vanilla.cjs");
|
|
10
|
-
require("./components/label.css.ts.vanilla.cjs");
|
|
11
|
-
require("./components/link.css.ts.vanilla.cjs");
|
|
12
|
-
require("./components/progress.css.ts.vanilla.cjs");
|
|
13
|
-
require("./components/radio.css.ts.vanilla.cjs");
|
|
14
|
-
require("./components/select.css.ts.vanilla.cjs");
|
|
15
|
-
require("./components/slider.css.ts.vanilla.cjs");
|
|
16
|
-
require("./components/spinner.css.ts.vanilla.cjs");
|
|
17
|
-
require("./components/switch.css.ts.vanilla.cjs");
|
|
18
|
-
require("./components/helpers.css.ts.vanilla.cjs");
|
|
19
|
-
require("../../lib/css/atoms/sprinkles.css.ts.vanilla.cjs");
|
|
20
|
-
require("./momotaro.css.ts.vanilla.cjs");
|
|
3
|
+
const styles_lib_theme_makeTheme_cjs = require("../../lib/theme/makeTheme.cjs");
|
|
4
|
+
const styles_themes_momotaro_components_index_cjs = require("./components/index.cjs");
|
|
5
|
+
const styles_themes_momotaro_tokens_css_cjs = require("./tokens.css.cjs");
|
|
21
6
|
fileScope.setFileScope("src/themes/momotaro/momotaro.css.ts", "@blockle/blocks");
|
|
22
|
-
|
|
7
|
+
const momotaro = styles_lib_theme_makeTheme_cjs.makeTheme({
|
|
23
8
|
name: "momotaro",
|
|
24
|
-
|
|
25
|
-
components:
|
|
26
|
-
|
|
27
|
-
base: "ta7q6b8 ta7q6b2 rvxbw5s ta7q6b3 rvxbw98 rvxbw40 ta7q6b4 rvxbw7w ta7q6b5 rvxbwv ta7q6b6 rvxbw1z ta7q6b7 rvxbw8k _1pwcvlj2 _1pwcvlj1",
|
|
28
|
-
variants: {
|
|
29
|
-
variant: {
|
|
30
|
-
solid: "ta7q6ba ta7q6b9 rvxbw11",
|
|
31
|
-
outline: "ta7q6bc ta7q6bb rvxbwy",
|
|
32
|
-
ghost: "ta7q6bd"
|
|
33
|
-
},
|
|
34
|
-
size: {
|
|
35
|
-
small: "ta7q6bf ta7q6be rvxbwgw",
|
|
36
|
-
medium: "ta7q6bh ta7q6bg rvxbwh0",
|
|
37
|
-
large: "ta7q6bj ta7q6bi rvxbwh0"
|
|
38
|
-
},
|
|
39
|
-
intent: {
|
|
40
|
-
neutral: "ta7q6bk",
|
|
41
|
-
danger: "ta7q6bl"
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
compoundVariants: [{
|
|
45
|
-
variants: {
|
|
46
|
-
variant: "solid",
|
|
47
|
-
intent: "neutral"
|
|
48
|
-
},
|
|
49
|
-
style: "ta7q6bm"
|
|
50
|
-
}, {
|
|
51
|
-
variants: {
|
|
52
|
-
variant: "solid",
|
|
53
|
-
intent: "danger"
|
|
54
|
-
},
|
|
55
|
-
style: "ta7q6bn"
|
|
56
|
-
}],
|
|
57
|
-
defaultVariants: {
|
|
58
|
-
size: "small",
|
|
59
|
-
variant: "solid",
|
|
60
|
-
intent: "neutral"
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
checkbox: {
|
|
64
|
-
base: "_1cqtsrz1 _1cqtsrz0 rvxbw3 rvxbwu _1pwcvlj1",
|
|
65
|
-
icon: "_1cqtsrz2",
|
|
66
|
-
label: "_1cqtsrz3 rvxbw5o rvxbw6k rvxbwdg rvxbw8o rvxbw1r"
|
|
67
|
-
},
|
|
68
|
-
dialog: {
|
|
69
|
-
dialog: "_6gb0ay1 _6gb0ay0 rvxbw5o rvxbw6s rvxbwdc rvxbw11 rvxbw2n rvxbwv rvxbw1a",
|
|
70
|
-
backdrop: "_6gb0ay2",
|
|
71
|
-
variants: {
|
|
72
|
-
size: {
|
|
73
|
-
small: "_6gb0ay3",
|
|
74
|
-
medium: "_6gb0ay4",
|
|
75
|
-
large: "_6gb0ay5"
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
defaultVariants: {
|
|
79
|
-
size: "small"
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
divider: {
|
|
83
|
-
defaultVariants: {
|
|
84
|
-
color: "textLight"
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
dropdown: {
|
|
88
|
-
base: "dgheqo4 dgheqo0 rvxbw1 dgheqo1 rvxbwu dgheqo2 rvxbw19 dgheqo3 rvxbwdo",
|
|
89
|
-
variants: {
|
|
90
|
-
variant: {
|
|
91
|
-
solid: "dgheqoa dgheqo5 rvxbw1 dgheqo6 rvxbw11 dgheqo7 rvxbw19 dgheqo8 rvxbw1b dgheqo9 rvxbwdo",
|
|
92
|
-
outline: "dgheqod dgheqob rvxbw1b dgheqoc rvxbwdo"
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
defaultVariants: {
|
|
96
|
-
variant: "solid"
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
input: {
|
|
100
|
-
input: "thlqfd1 thlqfd0 rvxbw1k rvxbwds rvxbw11 rvxbwu",
|
|
101
|
-
container: "thlqfd3 thlqfd2 rvxbw1 rvxbwv rvxbw19"
|
|
102
|
-
},
|
|
103
|
-
label: {
|
|
104
|
-
base: "_1426p3v0",
|
|
105
|
-
variants: {
|
|
106
|
-
size: {
|
|
107
|
-
small: "_1426p3v1",
|
|
108
|
-
medium: "_1426p3v2",
|
|
109
|
-
large: "_1426p3v3"
|
|
110
|
-
},
|
|
111
|
-
required: "_1426p3v4"
|
|
112
|
-
},
|
|
113
|
-
defaultVariants: {
|
|
114
|
-
size: "large"
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
link: {
|
|
118
|
-
base: "zujos30 _1pwcvlj1",
|
|
119
|
-
variants: {
|
|
120
|
-
variant: {
|
|
121
|
-
inherit: "zujos31",
|
|
122
|
-
primary: "zujos32 rvxbw1f rvxbw1z",
|
|
123
|
-
secondary: "zujos33 rvxbw1i rvxbw1z"
|
|
124
|
-
},
|
|
125
|
-
underline: "zujos34"
|
|
126
|
-
},
|
|
127
|
-
defaultVariants: {
|
|
128
|
-
variant: "primary"
|
|
129
|
-
}
|
|
130
|
-
},
|
|
131
|
-
progress: {
|
|
132
|
-
base: "_185khh42 _185khh41 rvxbw2d rvxbwu rvxbwa rvxbw1f rvxbw2k",
|
|
133
|
-
bar: "_185khh43",
|
|
134
|
-
variants: {
|
|
135
|
-
indeterminate: "_185khh44"
|
|
136
|
-
}
|
|
137
|
-
},
|
|
138
|
-
radio: {
|
|
139
|
-
base: "fipgc31 fipgc30 rvxbw3 _1pwcvlj1",
|
|
140
|
-
icon: "fipgc32",
|
|
141
|
-
label: "fipgc33 rvxbw5o rvxbw6k rvxbwdg rvxbw8o rvxbw1r"
|
|
142
|
-
},
|
|
143
|
-
select: {
|
|
144
|
-
select: "_1q59vpe7 _1q59vpe0 rvxbw1k _1q59vpe1 rvxbwds _1q59vpe2 rvxbw11 _1q59vpe3 rvxbwd4 _1q59vpe4 rvxbw1 _1q59vpe5 rvxbwv _1q59vpe6 rvxbw19 _1pwcvlj1",
|
|
145
|
-
variants: {
|
|
146
|
-
variant: {
|
|
147
|
-
outline: "_1q59vpea _1q59vpe8 rvxbwy _1q59vpe9 rvxbwj",
|
|
148
|
-
solid: "_1q59vpeb"
|
|
149
|
-
}
|
|
150
|
-
},
|
|
151
|
-
icon: "_1q59vped _1q59vpec rvxbwgw",
|
|
152
|
-
defaultVariants: {
|
|
153
|
-
variant: "solid"
|
|
154
|
-
}
|
|
155
|
-
},
|
|
156
|
-
spinner: {
|
|
157
|
-
base: "ilkbcn1",
|
|
158
|
-
variants: {
|
|
159
|
-
size: {
|
|
160
|
-
small: "ilkbcn2",
|
|
161
|
-
medium: "ilkbcn3",
|
|
162
|
-
large: "ilkbcn4"
|
|
163
|
-
}
|
|
164
|
-
},
|
|
165
|
-
defaultVariants: {
|
|
166
|
-
size: "small"
|
|
167
|
-
}
|
|
168
|
-
},
|
|
169
|
-
"switch": {
|
|
170
|
-
base: "pzg9zr3 pzg9zr1 rvxbwx pzg9zr2 rvxbwa _1pwcvlj1",
|
|
171
|
-
slider: "pzg9zr7 pzg9zr4 rvxbwiw pzg9zr5 rvxbw1 pzg9zr6 rvxbwx"
|
|
172
|
-
},
|
|
173
|
-
slider: {
|
|
174
|
-
base: "nczc033",
|
|
175
|
-
track: "nczc035 nczc034 rvxbwu",
|
|
176
|
-
filledTrack: "nczc036",
|
|
177
|
-
thumb: "nczc037 _1pwcvlj1",
|
|
178
|
-
variants: {
|
|
179
|
-
size: {
|
|
180
|
-
small: "nczc038",
|
|
181
|
-
medium: "nczc039",
|
|
182
|
-
large: "nczc03a"
|
|
183
|
-
},
|
|
184
|
-
colorScheme: {
|
|
185
|
-
primary: "nczc03b",
|
|
186
|
-
secondary: "nczc03c"
|
|
187
|
-
}
|
|
188
|
-
},
|
|
189
|
-
defaultVariants: {
|
|
190
|
-
size: "medium",
|
|
191
|
-
colorScheme: "primary"
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
};
|
|
9
|
+
tokens: styles_themes_momotaro_tokens_css_cjs.tokens,
|
|
10
|
+
components: styles_themes_momotaro_components_index_cjs.components
|
|
11
|
+
});
|
|
196
12
|
fileScope.endFileScope();
|
|
197
13
|
exports.momotaro = momotaro;
|
|
@@ -1,197 +1,13 @@
|
|
|
1
1
|
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
-
import "
|
|
3
|
-
import "./components/
|
|
4
|
-
import "./
|
|
5
|
-
import "./components/dialog.css.ts.vanilla.mjs";
|
|
6
|
-
import "./components/divider.css.ts.vanilla.mjs";
|
|
7
|
-
import "./components/dropdown.css.ts.vanilla.mjs";
|
|
8
|
-
import "./components/input.css.ts.vanilla.mjs";
|
|
9
|
-
import "./components/label.css.ts.vanilla.mjs";
|
|
10
|
-
import "./components/link.css.ts.vanilla.mjs";
|
|
11
|
-
import "./components/progress.css.ts.vanilla.mjs";
|
|
12
|
-
import "./components/radio.css.ts.vanilla.mjs";
|
|
13
|
-
import "./components/select.css.ts.vanilla.mjs";
|
|
14
|
-
import "./components/slider.css.ts.vanilla.mjs";
|
|
15
|
-
import "./components/spinner.css.ts.vanilla.mjs";
|
|
16
|
-
import "./components/switch.css.ts.vanilla.mjs";
|
|
17
|
-
import "./components/helpers.css.ts.vanilla.mjs";
|
|
18
|
-
import "../../lib/css/atoms/sprinkles.css.ts.vanilla.mjs";
|
|
19
|
-
import "./momotaro.css.ts.vanilla.mjs";
|
|
2
|
+
import { makeTheme } from "../../lib/theme/makeTheme.mjs";
|
|
3
|
+
import { components } from "./components/index.mjs";
|
|
4
|
+
import { tokens } from "./tokens.css.mjs";
|
|
20
5
|
setFileScope("src/themes/momotaro/momotaro.css.ts", "@blockle/blocks");
|
|
21
|
-
|
|
6
|
+
const momotaro = makeTheme({
|
|
22
7
|
name: "momotaro",
|
|
23
|
-
|
|
24
|
-
components
|
|
25
|
-
|
|
26
|
-
base: "ta7q6b8 ta7q6b2 rvxbw5s ta7q6b3 rvxbw98 rvxbw40 ta7q6b4 rvxbw7w ta7q6b5 rvxbwv ta7q6b6 rvxbw1z ta7q6b7 rvxbw8k _1pwcvlj2 _1pwcvlj1",
|
|
27
|
-
variants: {
|
|
28
|
-
variant: {
|
|
29
|
-
solid: "ta7q6ba ta7q6b9 rvxbw11",
|
|
30
|
-
outline: "ta7q6bc ta7q6bb rvxbwy",
|
|
31
|
-
ghost: "ta7q6bd"
|
|
32
|
-
},
|
|
33
|
-
size: {
|
|
34
|
-
small: "ta7q6bf ta7q6be rvxbwgw",
|
|
35
|
-
medium: "ta7q6bh ta7q6bg rvxbwh0",
|
|
36
|
-
large: "ta7q6bj ta7q6bi rvxbwh0"
|
|
37
|
-
},
|
|
38
|
-
intent: {
|
|
39
|
-
neutral: "ta7q6bk",
|
|
40
|
-
danger: "ta7q6bl"
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
compoundVariants: [{
|
|
44
|
-
variants: {
|
|
45
|
-
variant: "solid",
|
|
46
|
-
intent: "neutral"
|
|
47
|
-
},
|
|
48
|
-
style: "ta7q6bm"
|
|
49
|
-
}, {
|
|
50
|
-
variants: {
|
|
51
|
-
variant: "solid",
|
|
52
|
-
intent: "danger"
|
|
53
|
-
},
|
|
54
|
-
style: "ta7q6bn"
|
|
55
|
-
}],
|
|
56
|
-
defaultVariants: {
|
|
57
|
-
size: "small",
|
|
58
|
-
variant: "solid",
|
|
59
|
-
intent: "neutral"
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
checkbox: {
|
|
63
|
-
base: "_1cqtsrz1 _1cqtsrz0 rvxbw3 rvxbwu _1pwcvlj1",
|
|
64
|
-
icon: "_1cqtsrz2",
|
|
65
|
-
label: "_1cqtsrz3 rvxbw5o rvxbw6k rvxbwdg rvxbw8o rvxbw1r"
|
|
66
|
-
},
|
|
67
|
-
dialog: {
|
|
68
|
-
dialog: "_6gb0ay1 _6gb0ay0 rvxbw5o rvxbw6s rvxbwdc rvxbw11 rvxbw2n rvxbwv rvxbw1a",
|
|
69
|
-
backdrop: "_6gb0ay2",
|
|
70
|
-
variants: {
|
|
71
|
-
size: {
|
|
72
|
-
small: "_6gb0ay3",
|
|
73
|
-
medium: "_6gb0ay4",
|
|
74
|
-
large: "_6gb0ay5"
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
defaultVariants: {
|
|
78
|
-
size: "small"
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
divider: {
|
|
82
|
-
defaultVariants: {
|
|
83
|
-
color: "textLight"
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
dropdown: {
|
|
87
|
-
base: "dgheqo4 dgheqo0 rvxbw1 dgheqo1 rvxbwu dgheqo2 rvxbw19 dgheqo3 rvxbwdo",
|
|
88
|
-
variants: {
|
|
89
|
-
variant: {
|
|
90
|
-
solid: "dgheqoa dgheqo5 rvxbw1 dgheqo6 rvxbw11 dgheqo7 rvxbw19 dgheqo8 rvxbw1b dgheqo9 rvxbwdo",
|
|
91
|
-
outline: "dgheqod dgheqob rvxbw1b dgheqoc rvxbwdo"
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
defaultVariants: {
|
|
95
|
-
variant: "solid"
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
input: {
|
|
99
|
-
input: "thlqfd1 thlqfd0 rvxbw1k rvxbwds rvxbw11 rvxbwu",
|
|
100
|
-
container: "thlqfd3 thlqfd2 rvxbw1 rvxbwv rvxbw19"
|
|
101
|
-
},
|
|
102
|
-
label: {
|
|
103
|
-
base: "_1426p3v0",
|
|
104
|
-
variants: {
|
|
105
|
-
size: {
|
|
106
|
-
small: "_1426p3v1",
|
|
107
|
-
medium: "_1426p3v2",
|
|
108
|
-
large: "_1426p3v3"
|
|
109
|
-
},
|
|
110
|
-
required: "_1426p3v4"
|
|
111
|
-
},
|
|
112
|
-
defaultVariants: {
|
|
113
|
-
size: "large"
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
link: {
|
|
117
|
-
base: "zujos30 _1pwcvlj1",
|
|
118
|
-
variants: {
|
|
119
|
-
variant: {
|
|
120
|
-
inherit: "zujos31",
|
|
121
|
-
primary: "zujos32 rvxbw1f rvxbw1z",
|
|
122
|
-
secondary: "zujos33 rvxbw1i rvxbw1z"
|
|
123
|
-
},
|
|
124
|
-
underline: "zujos34"
|
|
125
|
-
},
|
|
126
|
-
defaultVariants: {
|
|
127
|
-
variant: "primary"
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
|
-
progress: {
|
|
131
|
-
base: "_185khh42 _185khh41 rvxbw2d rvxbwu rvxbwa rvxbw1f rvxbw2k",
|
|
132
|
-
bar: "_185khh43",
|
|
133
|
-
variants: {
|
|
134
|
-
indeterminate: "_185khh44"
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
radio: {
|
|
138
|
-
base: "fipgc31 fipgc30 rvxbw3 _1pwcvlj1",
|
|
139
|
-
icon: "fipgc32",
|
|
140
|
-
label: "fipgc33 rvxbw5o rvxbw6k rvxbwdg rvxbw8o rvxbw1r"
|
|
141
|
-
},
|
|
142
|
-
select: {
|
|
143
|
-
select: "_1q59vpe7 _1q59vpe0 rvxbw1k _1q59vpe1 rvxbwds _1q59vpe2 rvxbw11 _1q59vpe3 rvxbwd4 _1q59vpe4 rvxbw1 _1q59vpe5 rvxbwv _1q59vpe6 rvxbw19 _1pwcvlj1",
|
|
144
|
-
variants: {
|
|
145
|
-
variant: {
|
|
146
|
-
outline: "_1q59vpea _1q59vpe8 rvxbwy _1q59vpe9 rvxbwj",
|
|
147
|
-
solid: "_1q59vpeb"
|
|
148
|
-
}
|
|
149
|
-
},
|
|
150
|
-
icon: "_1q59vped _1q59vpec rvxbwgw",
|
|
151
|
-
defaultVariants: {
|
|
152
|
-
variant: "solid"
|
|
153
|
-
}
|
|
154
|
-
},
|
|
155
|
-
spinner: {
|
|
156
|
-
base: "ilkbcn1",
|
|
157
|
-
variants: {
|
|
158
|
-
size: {
|
|
159
|
-
small: "ilkbcn2",
|
|
160
|
-
medium: "ilkbcn3",
|
|
161
|
-
large: "ilkbcn4"
|
|
162
|
-
}
|
|
163
|
-
},
|
|
164
|
-
defaultVariants: {
|
|
165
|
-
size: "small"
|
|
166
|
-
}
|
|
167
|
-
},
|
|
168
|
-
"switch": {
|
|
169
|
-
base: "pzg9zr3 pzg9zr1 rvxbwx pzg9zr2 rvxbwa _1pwcvlj1",
|
|
170
|
-
slider: "pzg9zr7 pzg9zr4 rvxbwiw pzg9zr5 rvxbw1 pzg9zr6 rvxbwx"
|
|
171
|
-
},
|
|
172
|
-
slider: {
|
|
173
|
-
base: "nczc033",
|
|
174
|
-
track: "nczc035 nczc034 rvxbwu",
|
|
175
|
-
filledTrack: "nczc036",
|
|
176
|
-
thumb: "nczc037 _1pwcvlj1",
|
|
177
|
-
variants: {
|
|
178
|
-
size: {
|
|
179
|
-
small: "nczc038",
|
|
180
|
-
medium: "nczc039",
|
|
181
|
-
large: "nczc03a"
|
|
182
|
-
},
|
|
183
|
-
colorScheme: {
|
|
184
|
-
primary: "nczc03b",
|
|
185
|
-
secondary: "nczc03c"
|
|
186
|
-
}
|
|
187
|
-
},
|
|
188
|
-
defaultVariants: {
|
|
189
|
-
size: "medium",
|
|
190
|
-
colorScheme: "primary"
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
};
|
|
8
|
+
tokens,
|
|
9
|
+
components
|
|
10
|
+
});
|
|
195
11
|
endFileScope();
|
|
196
12
|
export {
|
|
197
13
|
momotaro
|