@blockle/blocks 0.11.0 → 0.11.2
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 +28 -60
- package/dist/index.mjs +4 -36
- package/dist/momotaro.chunk.d.ts +297 -293
- package/dist/reset.css.cjs +0 -2
- package/dist/reset.css.mjs +0 -2
- package/dist/styles/components/display/Divider/Divider.cjs +13 -13
- 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.cjs +2 -2
- 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.cjs +2 -2
- 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.cjs +3 -3
- 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.cjs +2 -2
- 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.cjs +2 -2
- 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.cjs +7 -7
- 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.cjs +6 -6
- 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/other/BlocksProvider/BlocksProvider.cjs +5 -5
- package/dist/styles/components/overlay/Dialog/Dialog.cjs +28819 -23
- package/dist/styles/components/overlay/Dialog/Dialog.mjs +28797 -3
- 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.cjs +2 -2
- 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 +325 -2072
- package/dist/styles/lib/css/atoms/sprinkles.css.mjs +326 -2073
- 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 +11 -9
- 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,41 @@
|
|
|
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
|
+
const styles_lib_theme_vars_css_cjs = require("../../../lib/theme/vars.css.cjs");
|
|
6
|
+
const styles_lib_css_atoms_sprinkles_css_cjs = require("../../../lib/css/atoms/sprinkles.css.cjs");
|
|
7
|
+
fileScope.setFileScope("src/themes/momotaro/components/input.css.ts", "@blockle/blocks");
|
|
8
|
+
const input = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("input", {
|
|
9
|
+
input: css.style([styles_lib_css_atoms_sprinkles_css_cjs.atoms({
|
|
10
|
+
color: "text",
|
|
11
|
+
padding: "large",
|
|
12
|
+
border: "none",
|
|
13
|
+
borderRadius: "small"
|
|
14
|
+
}), {
|
|
15
|
+
outline: "none",
|
|
16
|
+
background: "transparent",
|
|
17
|
+
"::placeholder": {
|
|
18
|
+
color: styles_lib_theme_vars_css_cjs.vars.color.textLight
|
|
19
|
+
},
|
|
20
|
+
":disabled": {}
|
|
21
|
+
}], "input_input"),
|
|
22
|
+
container: css.style([{
|
|
23
|
+
minHeight: 56,
|
|
24
|
+
"@media": {
|
|
25
|
+
"(prefers-reduced-motion: no-preference)": {
|
|
26
|
+
transition: `box-shadow ${styles_lib_theme_vars_css_cjs.vars.transition.fast}`
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
":focus-within": {
|
|
30
|
+
outline: "2px solid transparent",
|
|
31
|
+
outlineOffset: "2px",
|
|
32
|
+
boxShadow: `${styles_lib_theme_vars_css_cjs.vars.shadow.small}, ${styles_lib_theme_vars_css_cjs.vars.focus.boxShadow}`
|
|
33
|
+
}
|
|
34
|
+
}, styles_lib_css_atoms_sprinkles_css_cjs.atoms({
|
|
35
|
+
backgroundColor: "white",
|
|
36
|
+
borderRadius: "medium",
|
|
37
|
+
boxShadow: "medium"
|
|
38
|
+
})], "input_container")
|
|
39
|
+
});
|
|
40
|
+
fileScope.endFileScope();
|
|
41
|
+
exports.input = input;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
+
import { style } from "@vanilla-extract/css";
|
|
3
|
+
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.mjs";
|
|
4
|
+
import { vars } from "../../../lib/theme/vars.css.mjs";
|
|
5
|
+
import { atoms } from "../../../lib/css/atoms/sprinkles.css.mjs";
|
|
6
|
+
setFileScope("src/themes/momotaro/components/input.css.ts", "@blockle/blocks");
|
|
7
|
+
const input = makeComponentTheme("input", {
|
|
8
|
+
input: style([atoms({
|
|
9
|
+
color: "text",
|
|
10
|
+
padding: "large",
|
|
11
|
+
border: "none",
|
|
12
|
+
borderRadius: "small"
|
|
13
|
+
}), {
|
|
14
|
+
outline: "none",
|
|
15
|
+
background: "transparent",
|
|
16
|
+
"::placeholder": {
|
|
17
|
+
color: vars.color.textLight
|
|
18
|
+
},
|
|
19
|
+
":disabled": {}
|
|
20
|
+
}], "input_input"),
|
|
21
|
+
container: style([{
|
|
22
|
+
minHeight: 56,
|
|
23
|
+
"@media": {
|
|
24
|
+
"(prefers-reduced-motion: no-preference)": {
|
|
25
|
+
transition: `box-shadow ${vars.transition.fast}`
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
":focus-within": {
|
|
29
|
+
outline: "2px solid transparent",
|
|
30
|
+
outlineOffset: "2px",
|
|
31
|
+
boxShadow: `${vars.shadow.small}, ${vars.focus.boxShadow}`
|
|
32
|
+
}
|
|
33
|
+
}, atoms({
|
|
34
|
+
backgroundColor: "white",
|
|
35
|
+
borderRadius: "medium",
|
|
36
|
+
boxShadow: "medium"
|
|
37
|
+
})], "input_container")
|
|
38
|
+
});
|
|
39
|
+
endFileScope();
|
|
40
|
+
export {
|
|
41
|
+
input
|
|
42
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
const styles_lib_theme_vars_css_cjs = require("../../../lib/theme/vars.css.cjs");
|
|
6
|
+
fileScope.setFileScope("src/themes/momotaro/components/label.css.ts", "@blockle/blocks");
|
|
7
|
+
const label = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("label", {
|
|
8
|
+
base: css.style({}, "label_base"),
|
|
9
|
+
variants: {
|
|
10
|
+
size: {
|
|
11
|
+
small: css.style({
|
|
12
|
+
fontSize: styles_lib_theme_vars_css_cjs.vars.fontSize.xsmall
|
|
13
|
+
}, "label_variants_size_small"),
|
|
14
|
+
medium: css.style({
|
|
15
|
+
fontSize: styles_lib_theme_vars_css_cjs.vars.fontSize.small
|
|
16
|
+
}, "label_variants_size_medium"),
|
|
17
|
+
large: css.style({
|
|
18
|
+
fontSize: styles_lib_theme_vars_css_cjs.vars.fontSize.medium
|
|
19
|
+
}, "label_variants_size_large")
|
|
20
|
+
},
|
|
21
|
+
required: css.style({
|
|
22
|
+
":after": {
|
|
23
|
+
content: '"*"',
|
|
24
|
+
marginLeft: styles_lib_theme_vars_css_cjs.vars.space.xsmall
|
|
25
|
+
}
|
|
26
|
+
}, "label_variants_required")
|
|
27
|
+
},
|
|
28
|
+
defaultVariants: {
|
|
29
|
+
size: "large"
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
fileScope.endFileScope();
|
|
33
|
+
exports.label = label;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
+
import { style } from "@vanilla-extract/css";
|
|
3
|
+
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.mjs";
|
|
4
|
+
import { vars } from "../../../lib/theme/vars.css.mjs";
|
|
5
|
+
setFileScope("src/themes/momotaro/components/label.css.ts", "@blockle/blocks");
|
|
6
|
+
const label = makeComponentTheme("label", {
|
|
7
|
+
base: style({}, "label_base"),
|
|
8
|
+
variants: {
|
|
9
|
+
size: {
|
|
10
|
+
small: style({
|
|
11
|
+
fontSize: vars.fontSize.xsmall
|
|
12
|
+
}, "label_variants_size_small"),
|
|
13
|
+
medium: style({
|
|
14
|
+
fontSize: vars.fontSize.small
|
|
15
|
+
}, "label_variants_size_medium"),
|
|
16
|
+
large: style({
|
|
17
|
+
fontSize: vars.fontSize.medium
|
|
18
|
+
}, "label_variants_size_large")
|
|
19
|
+
},
|
|
20
|
+
required: style({
|
|
21
|
+
":after": {
|
|
22
|
+
content: '"*"',
|
|
23
|
+
marginLeft: vars.space.xsmall
|
|
24
|
+
}
|
|
25
|
+
}, "label_variants_required")
|
|
26
|
+
},
|
|
27
|
+
defaultVariants: {
|
|
28
|
+
size: "large"
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
endFileScope();
|
|
32
|
+
export {
|
|
33
|
+
label
|
|
34
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
const styles_themes_momotaro_components_helpers_css_cjs = require("./helpers.css.cjs");
|
|
6
|
+
const styles_lib_css_atoms_sprinkles_css_cjs = require("../../../lib/css/atoms/sprinkles.css.cjs");
|
|
7
|
+
fileScope.setFileScope("src/themes/momotaro/components/link.css.ts", "@blockle/blocks");
|
|
8
|
+
const link = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("link", {
|
|
9
|
+
base: css.style([{
|
|
10
|
+
outline: "none",
|
|
11
|
+
border: "none",
|
|
12
|
+
textDecoration: "none",
|
|
13
|
+
background: "transparent",
|
|
14
|
+
borderRadius: 1,
|
|
15
|
+
":hover": {
|
|
16
|
+
textDecoration: "underline"
|
|
17
|
+
},
|
|
18
|
+
":focus-visible": {
|
|
19
|
+
textDecoration: "underline"
|
|
20
|
+
},
|
|
21
|
+
cursor: "pointer"
|
|
22
|
+
}, styles_themes_momotaro_components_helpers_css_cjs.focusable], "link_base"),
|
|
23
|
+
variants: {
|
|
24
|
+
variant: {
|
|
25
|
+
inherit: css.style({
|
|
26
|
+
color: "inherit",
|
|
27
|
+
fontWeight: "inherit"
|
|
28
|
+
}, "link_variants_variant_inherit"),
|
|
29
|
+
primary: styles_lib_css_atoms_sprinkles_css_cjs.atoms({
|
|
30
|
+
color: "primary",
|
|
31
|
+
fontWeight: "medium"
|
|
32
|
+
}),
|
|
33
|
+
secondary: styles_lib_css_atoms_sprinkles_css_cjs.atoms({
|
|
34
|
+
color: "secondary",
|
|
35
|
+
fontWeight: "medium"
|
|
36
|
+
})
|
|
37
|
+
},
|
|
38
|
+
underline: css.style({
|
|
39
|
+
textDecoration: "underline"
|
|
40
|
+
}, "link_variants_underline")
|
|
41
|
+
},
|
|
42
|
+
defaultVariants: {
|
|
43
|
+
variant: "primary"
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
fileScope.endFileScope();
|
|
47
|
+
exports.link = link;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
+
import { style } from "@vanilla-extract/css";
|
|
3
|
+
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.mjs";
|
|
4
|
+
import { focusable } from "./helpers.css.mjs";
|
|
5
|
+
import { atoms } from "../../../lib/css/atoms/sprinkles.css.mjs";
|
|
6
|
+
setFileScope("src/themes/momotaro/components/link.css.ts", "@blockle/blocks");
|
|
7
|
+
const link = makeComponentTheme("link", {
|
|
8
|
+
base: style([{
|
|
9
|
+
outline: "none",
|
|
10
|
+
border: "none",
|
|
11
|
+
textDecoration: "none",
|
|
12
|
+
background: "transparent",
|
|
13
|
+
borderRadius: 1,
|
|
14
|
+
":hover": {
|
|
15
|
+
textDecoration: "underline"
|
|
16
|
+
},
|
|
17
|
+
":focus-visible": {
|
|
18
|
+
textDecoration: "underline"
|
|
19
|
+
},
|
|
20
|
+
cursor: "pointer"
|
|
21
|
+
}, focusable], "link_base"),
|
|
22
|
+
variants: {
|
|
23
|
+
variant: {
|
|
24
|
+
inherit: style({
|
|
25
|
+
color: "inherit",
|
|
26
|
+
fontWeight: "inherit"
|
|
27
|
+
}, "link_variants_variant_inherit"),
|
|
28
|
+
primary: atoms({
|
|
29
|
+
color: "primary",
|
|
30
|
+
fontWeight: "medium"
|
|
31
|
+
}),
|
|
32
|
+
secondary: atoms({
|
|
33
|
+
color: "secondary",
|
|
34
|
+
fontWeight: "medium"
|
|
35
|
+
})
|
|
36
|
+
},
|
|
37
|
+
underline: style({
|
|
38
|
+
textDecoration: "underline"
|
|
39
|
+
}, "link_variants_underline")
|
|
40
|
+
},
|
|
41
|
+
defaultVariants: {
|
|
42
|
+
variant: "primary"
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
endFileScope();
|
|
46
|
+
export {
|
|
47
|
+
link
|
|
48
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
const styles_lib_theme_vars_css_cjs = require("../../../lib/theme/vars.css.cjs");
|
|
6
|
+
const styles_lib_css_atoms_sprinkles_css_cjs = require("../../../lib/css/atoms/sprinkles.css.cjs");
|
|
7
|
+
fileScope.setFileScope("src/themes/momotaro/components/progress.css.ts", "@blockle/blocks");
|
|
8
|
+
const indeterminateAnimation = css.keyframes({
|
|
9
|
+
"0%": {
|
|
10
|
+
transform: "translateX(-100%)"
|
|
11
|
+
},
|
|
12
|
+
"100%": {
|
|
13
|
+
transform: "translateX(100%)"
|
|
14
|
+
}
|
|
15
|
+
}, "indeterminateAnimation");
|
|
16
|
+
const progress = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("progress", {
|
|
17
|
+
base: css.style([{
|
|
18
|
+
height: 8
|
|
19
|
+
}, styles_lib_css_atoms_sprinkles_css_cjs.atoms({
|
|
20
|
+
inlineSize: "full",
|
|
21
|
+
borderRadius: "small",
|
|
22
|
+
backgroundColor: "textLight",
|
|
23
|
+
color: "primary",
|
|
24
|
+
overflow: "hidden"
|
|
25
|
+
})], "progress_base"),
|
|
26
|
+
bar: css.style({
|
|
27
|
+
borderRadius: "inherit",
|
|
28
|
+
"@media": {
|
|
29
|
+
"(prefers-reduced-motion: no-preference)": {
|
|
30
|
+
transition: "transform 180ms ease-out"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}, "progress_bar"),
|
|
34
|
+
variants: {
|
|
35
|
+
indeterminate: css.style({
|
|
36
|
+
"@media": {
|
|
37
|
+
// For reduce motion we show a striped pattern instead of animating
|
|
38
|
+
"(prefers-reduced-motion: reduce)": {
|
|
39
|
+
backgroundImage: `repeating-linear-gradient(
|
|
40
|
+
45deg,
|
|
41
|
+
transparent,
|
|
42
|
+
transparent 20px,
|
|
43
|
+
${styles_lib_theme_vars_css_cjs.vars.color.primaryDark} 20px,
|
|
44
|
+
${styles_lib_theme_vars_css_cjs.vars.color.primaryDark} 40px
|
|
45
|
+
)`
|
|
46
|
+
},
|
|
47
|
+
"(prefers-reduced-motion: no-preference)": {
|
|
48
|
+
animation: `${indeterminateAnimation} 3s ease-in-out infinite`
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}, "progress_variants_indeterminate")
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
fileScope.endFileScope();
|
|
55
|
+
exports.progress = progress;
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
import { vars } from "../../../lib/theme/vars.css.mjs";
|
|
5
|
+
import { atoms } from "../../../lib/css/atoms/sprinkles.css.mjs";
|
|
6
|
+
setFileScope("src/themes/momotaro/components/progress.css.ts", "@blockle/blocks");
|
|
7
|
+
const indeterminateAnimation = keyframes({
|
|
8
|
+
"0%": {
|
|
9
|
+
transform: "translateX(-100%)"
|
|
10
|
+
},
|
|
11
|
+
"100%": {
|
|
12
|
+
transform: "translateX(100%)"
|
|
13
|
+
}
|
|
14
|
+
}, "indeterminateAnimation");
|
|
15
|
+
const progress = makeComponentTheme("progress", {
|
|
16
|
+
base: style([{
|
|
17
|
+
height: 8
|
|
18
|
+
}, atoms({
|
|
19
|
+
inlineSize: "full",
|
|
20
|
+
borderRadius: "small",
|
|
21
|
+
backgroundColor: "textLight",
|
|
22
|
+
color: "primary",
|
|
23
|
+
overflow: "hidden"
|
|
24
|
+
})], "progress_base"),
|
|
25
|
+
bar: style({
|
|
26
|
+
borderRadius: "inherit",
|
|
27
|
+
"@media": {
|
|
28
|
+
"(prefers-reduced-motion: no-preference)": {
|
|
29
|
+
transition: "transform 180ms ease-out"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}, "progress_bar"),
|
|
33
|
+
variants: {
|
|
34
|
+
indeterminate: style({
|
|
35
|
+
"@media": {
|
|
36
|
+
// For reduce motion we show a striped pattern instead of animating
|
|
37
|
+
"(prefers-reduced-motion: reduce)": {
|
|
38
|
+
backgroundImage: `repeating-linear-gradient(
|
|
39
|
+
45deg,
|
|
40
|
+
transparent,
|
|
41
|
+
transparent 20px,
|
|
42
|
+
${vars.color.primaryDark} 20px,
|
|
43
|
+
${vars.color.primaryDark} 40px
|
|
44
|
+
)`
|
|
45
|
+
},
|
|
46
|
+
"(prefers-reduced-motion: no-preference)": {
|
|
47
|
+
animation: `${indeterminateAnimation} 3s ease-in-out infinite`
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}, "progress_variants_indeterminate")
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
endFileScope();
|
|
54
|
+
export {
|
|
55
|
+
progress
|
|
56
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
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
|
+
const styles_lib_theme_vars_css_cjs = require("../../../lib/theme/vars.css.cjs");
|
|
6
|
+
const styles_themes_momotaro_components_helpers_css_cjs = require("./helpers.css.cjs");
|
|
7
|
+
const styles_themes_momotaro_components_transitions_cjs = require("./transitions.cjs");
|
|
8
|
+
const styles_lib_css_atoms_sprinkles_css_cjs = require("../../../lib/css/atoms/sprinkles.css.cjs");
|
|
9
|
+
fileScope.setFileScope("src/themes/momotaro/components/radio.css.ts", "@blockle/blocks");
|
|
10
|
+
const radio = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("radio", {
|
|
11
|
+
base: css.style([{
|
|
12
|
+
display: "flex",
|
|
13
|
+
alignItems: "center",
|
|
14
|
+
justifyContent: "center",
|
|
15
|
+
inlineSize: 24,
|
|
16
|
+
blockSize: 24,
|
|
17
|
+
borderRadius: 12,
|
|
18
|
+
"@media": {
|
|
19
|
+
"(prefers-reduced-motion: no-preference)": {
|
|
20
|
+
transition: `background-color ${styles_lib_theme_vars_css_cjs.vars.transition.fast}, box-shadow ${styles_lib_theme_vars_css_cjs.vars.transition.fast}`
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
":hover": {
|
|
24
|
+
backgroundColor: styles_lib_theme_vars_css_cjs.vars.color.primaryDark
|
|
25
|
+
},
|
|
26
|
+
selectors: {
|
|
27
|
+
"&:has(input:checked):not(:hover)": {
|
|
28
|
+
backgroundColor: styles_lib_theme_vars_css_cjs.vars.color.primary
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}, styles_lib_css_atoms_sprinkles_css_cjs.atoms({
|
|
32
|
+
backgroundColor: "primaryLight"
|
|
33
|
+
}), styles_themes_momotaro_components_helpers_css_cjs.focusable], "radio_base"),
|
|
34
|
+
icon: css.style({
|
|
35
|
+
height: 12,
|
|
36
|
+
width: 12,
|
|
37
|
+
backgroundColor: "white",
|
|
38
|
+
borderRadius: "8px",
|
|
39
|
+
transform: "scale(0)",
|
|
40
|
+
"@media": {
|
|
41
|
+
"(prefers-reduced-motion: no-preference)": {
|
|
42
|
+
transition: `transform ${styles_lib_theme_vars_css_cjs.vars.transition.normal} ${styles_themes_momotaro_components_transitions_cjs.bounceOut}`
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
selectors: {
|
|
46
|
+
"input:checked ~ &": {
|
|
47
|
+
transform: "scale(1)"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}, "radio_icon"),
|
|
51
|
+
label: styles_lib_css_atoms_sprinkles_css_cjs.atoms({
|
|
52
|
+
display: "flex",
|
|
53
|
+
flexDirection: "row",
|
|
54
|
+
padding: "xsmall",
|
|
55
|
+
gap: "medium",
|
|
56
|
+
cursor: "pointer"
|
|
57
|
+
})
|
|
58
|
+
});
|
|
59
|
+
fileScope.endFileScope();
|
|
60
|
+
exports.radio = radio;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
+
import { style } from "@vanilla-extract/css";
|
|
3
|
+
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.mjs";
|
|
4
|
+
import { vars } from "../../../lib/theme/vars.css.mjs";
|
|
5
|
+
import { focusable } from "./helpers.css.mjs";
|
|
6
|
+
import { bounceOut } from "./transitions.mjs";
|
|
7
|
+
import { atoms } from "../../../lib/css/atoms/sprinkles.css.mjs";
|
|
8
|
+
setFileScope("src/themes/momotaro/components/radio.css.ts", "@blockle/blocks");
|
|
9
|
+
const radio = makeComponentTheme("radio", {
|
|
10
|
+
base: style([{
|
|
11
|
+
display: "flex",
|
|
12
|
+
alignItems: "center",
|
|
13
|
+
justifyContent: "center",
|
|
14
|
+
inlineSize: 24,
|
|
15
|
+
blockSize: 24,
|
|
16
|
+
borderRadius: 12,
|
|
17
|
+
"@media": {
|
|
18
|
+
"(prefers-reduced-motion: no-preference)": {
|
|
19
|
+
transition: `background-color ${vars.transition.fast}, box-shadow ${vars.transition.fast}`
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
":hover": {
|
|
23
|
+
backgroundColor: vars.color.primaryDark
|
|
24
|
+
},
|
|
25
|
+
selectors: {
|
|
26
|
+
"&:has(input:checked):not(:hover)": {
|
|
27
|
+
backgroundColor: vars.color.primary
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}, atoms({
|
|
31
|
+
backgroundColor: "primaryLight"
|
|
32
|
+
}), focusable], "radio_base"),
|
|
33
|
+
icon: style({
|
|
34
|
+
height: 12,
|
|
35
|
+
width: 12,
|
|
36
|
+
backgroundColor: "white",
|
|
37
|
+
borderRadius: "8px",
|
|
38
|
+
transform: "scale(0)",
|
|
39
|
+
"@media": {
|
|
40
|
+
"(prefers-reduced-motion: no-preference)": {
|
|
41
|
+
transition: `transform ${vars.transition.normal} ${bounceOut}`
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
selectors: {
|
|
45
|
+
"input:checked ~ &": {
|
|
46
|
+
transform: "scale(1)"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}, "radio_icon"),
|
|
50
|
+
label: atoms({
|
|
51
|
+
display: "flex",
|
|
52
|
+
flexDirection: "row",
|
|
53
|
+
padding: "xsmall",
|
|
54
|
+
gap: "medium",
|
|
55
|
+
cursor: "pointer"
|
|
56
|
+
})
|
|
57
|
+
});
|
|
58
|
+
endFileScope();
|
|
59
|
+
export {
|
|
60
|
+
radio
|
|
61
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
|
+
const styles_lib_css_style_style_cjs = require("../../../lib/css/style/style.cjs");
|
|
4
|
+
const styles_lib_theme_makeComponentTheme_cjs = require("../../../lib/theme/makeComponentTheme.cjs");
|
|
5
|
+
const styles_lib_theme_vars_css_cjs = require("../../../lib/theme/vars.css.cjs");
|
|
6
|
+
const styles_themes_momotaro_components_helpers_css_cjs = require("./helpers.css.cjs");
|
|
7
|
+
fileScope.setFileScope("src/themes/momotaro/components/select.css.ts", "@blockle/blocks");
|
|
8
|
+
const select = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("select", {
|
|
9
|
+
select: styles_lib_css_style_style_cjs.style([{
|
|
10
|
+
color: "text",
|
|
11
|
+
padding: "large",
|
|
12
|
+
border: "none",
|
|
13
|
+
outline: "none",
|
|
14
|
+
backgroundColor: "white",
|
|
15
|
+
borderRadius: "medium",
|
|
16
|
+
boxShadow: "medium",
|
|
17
|
+
minHeight: 56,
|
|
18
|
+
transitionDuration: styles_lib_theme_vars_css_cjs.vars.transition.fast,
|
|
19
|
+
transitionProperty: "box-shadow",
|
|
20
|
+
":focus-within": {
|
|
21
|
+
outline: "2px solid transparent",
|
|
22
|
+
outlineOffset: "2px",
|
|
23
|
+
boxShadow: `${styles_lib_theme_vars_css_cjs.vars.shadow.small}, ${styles_lib_theme_vars_css_cjs.vars.focus.boxShadow}`
|
|
24
|
+
}
|
|
25
|
+
}, styles_themes_momotaro_components_helpers_css_cjs.focusable]),
|
|
26
|
+
variants: {
|
|
27
|
+
variant: {
|
|
28
|
+
outline: styles_lib_css_style_style_cjs.style({
|
|
29
|
+
borderWidth: "small",
|
|
30
|
+
borderStyle: "solid",
|
|
31
|
+
borderColor: "primary"
|
|
32
|
+
}),
|
|
33
|
+
solid: styles_lib_css_style_style_cjs.style({})
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
icon: styles_lib_css_style_style_cjs.style({
|
|
37
|
+
paddingInline: "large"
|
|
38
|
+
}),
|
|
39
|
+
defaultVariants: {
|
|
40
|
+
variant: "solid"
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
fileScope.endFileScope();
|
|
44
|
+
exports.select = select;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
+
import { style } from "../../../lib/css/style/style.mjs";
|
|
3
|
+
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.mjs";
|
|
4
|
+
import { vars } from "../../../lib/theme/vars.css.mjs";
|
|
5
|
+
import { focusable } from "./helpers.css.mjs";
|
|
6
|
+
setFileScope("src/themes/momotaro/components/select.css.ts", "@blockle/blocks");
|
|
7
|
+
const select = makeComponentTheme("select", {
|
|
8
|
+
select: style([{
|
|
9
|
+
color: "text",
|
|
10
|
+
padding: "large",
|
|
11
|
+
border: "none",
|
|
12
|
+
outline: "none",
|
|
13
|
+
backgroundColor: "white",
|
|
14
|
+
borderRadius: "medium",
|
|
15
|
+
boxShadow: "medium",
|
|
16
|
+
minHeight: 56,
|
|
17
|
+
transitionDuration: vars.transition.fast,
|
|
18
|
+
transitionProperty: "box-shadow",
|
|
19
|
+
":focus-within": {
|
|
20
|
+
outline: "2px solid transparent",
|
|
21
|
+
outlineOffset: "2px",
|
|
22
|
+
boxShadow: `${vars.shadow.small}, ${vars.focus.boxShadow}`
|
|
23
|
+
}
|
|
24
|
+
}, focusable]),
|
|
25
|
+
variants: {
|
|
26
|
+
variant: {
|
|
27
|
+
outline: style({
|
|
28
|
+
borderWidth: "small",
|
|
29
|
+
borderStyle: "solid",
|
|
30
|
+
borderColor: "primary"
|
|
31
|
+
}),
|
|
32
|
+
solid: style({})
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
icon: style({
|
|
36
|
+
paddingInline: "large"
|
|
37
|
+
}),
|
|
38
|
+
defaultVariants: {
|
|
39
|
+
variant: "solid"
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
endFileScope();
|
|
43
|
+
export {
|
|
44
|
+
select
|
|
45
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
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/slider.css.ts", "@blockle/blocks");
|
|
9
|
+
const trackBackground = css.createVar("trackBackground");
|
|
10
|
+
const filledTrackBackground = css.createVar("filledTrackBackground");
|
|
11
|
+
const thumbBackground = css.createVar("thumbBackground");
|
|
12
|
+
const slider = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("slider", {
|
|
13
|
+
base: styles_lib_css_style_style_cjs.style({
|
|
14
|
+
blockSize: "20px"
|
|
15
|
+
}),
|
|
16
|
+
track: styles_lib_css_style_style_cjs.style({
|
|
17
|
+
blockSize: "4px",
|
|
18
|
+
backgroundColor: trackBackground,
|
|
19
|
+
borderRadius: "small"
|
|
20
|
+
}),
|
|
21
|
+
filledTrack: styles_lib_css_style_style_cjs.style({
|
|
22
|
+
backgroundColor: filledTrackBackground
|
|
23
|
+
}),
|
|
24
|
+
thumb: styles_lib_css_style_style_cjs.style([{
|
|
25
|
+
backgroundColor: thumbBackground,
|
|
26
|
+
borderRadius: "50%",
|
|
27
|
+
height: "16px",
|
|
28
|
+
width: "16px"
|
|
29
|
+
}, styles_themes_momotaro_components_helpers_css_cjs.focusable]),
|
|
30
|
+
variants: {
|
|
31
|
+
size: {
|
|
32
|
+
small: styles_lib_css_style_style_cjs.style({
|
|
33
|
+
inlineSize: "100px"
|
|
34
|
+
}),
|
|
35
|
+
medium: styles_lib_css_style_style_cjs.style({
|
|
36
|
+
inlineSize: "200px"
|
|
37
|
+
}),
|
|
38
|
+
large: styles_lib_css_style_style_cjs.style({
|
|
39
|
+
inlineSize: "300px"
|
|
40
|
+
})
|
|
41
|
+
},
|
|
42
|
+
colorScheme: {
|
|
43
|
+
primary: styles_lib_css_style_style_cjs.style({
|
|
44
|
+
vars: {
|
|
45
|
+
[trackBackground]: styles_lib_theme_vars_css_cjs.vars.color.primaryLight,
|
|
46
|
+
[filledTrackBackground]: styles_lib_theme_vars_css_cjs.vars.color.primary,
|
|
47
|
+
[thumbBackground]: styles_lib_theme_vars_css_cjs.vars.color.primary
|
|
48
|
+
}
|
|
49
|
+
}),
|
|
50
|
+
secondary: styles_lib_css_style_style_cjs.style({
|
|
51
|
+
vars: {
|
|
52
|
+
[trackBackground]: styles_lib_theme_vars_css_cjs.vars.color.primaryLight,
|
|
53
|
+
[filledTrackBackground]: styles_lib_theme_vars_css_cjs.vars.color.secondary,
|
|
54
|
+
[thumbBackground]: styles_lib_theme_vars_css_cjs.vars.color.secondary
|
|
55
|
+
}
|
|
56
|
+
})
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
defaultVariants: {
|
|
60
|
+
size: "medium",
|
|
61
|
+
colorScheme: "primary"
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
fileScope.endFileScope();
|
|
65
|
+
exports.slider = slider;
|