@blockle/blocks 0.9.1 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +258 -8
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +259 -8
- package/dist/momotaro.chunk.d.ts +317 -271
- package/dist/reset.css.cjs +3 -1
- package/dist/reset.css.mjs +3 -1
- package/dist/style.css +2851 -0
- package/dist/styles/components/display/Divider/Divider.cjs +1 -0
- package/dist/styles/components/display/Divider/Divider.mjs +1 -0
- package/dist/styles/components/display/Divider/divider.css.cjs +4 -11
- package/dist/styles/components/display/Divider/divider.css.mjs +4 -11
- package/dist/styles/components/form/Button/Button.css.cjs +4 -11
- package/dist/styles/components/form/Button/Button.css.mjs +4 -11
- package/dist/styles/components/form/Button/Button.css.ts.vanilla.cjs +1 -0
- package/dist/styles/components/form/Button/Button.css.ts.vanilla.mjs +1 -0
- package/dist/styles/components/form/Checkbox/checkbox.css.cjs +6 -25
- package/dist/styles/components/form/Checkbox/checkbox.css.mjs +6 -25
- package/dist/styles/components/form/Checkbox/checkbox.css.ts.vanilla.cjs +1 -0
- package/dist/styles/components/form/Checkbox/checkbox.css.ts.vanilla.mjs +1 -0
- package/dist/styles/components/form/Input/input.css.cjs +4 -15
- package/dist/styles/components/form/Input/input.css.mjs +4 -15
- package/dist/styles/components/form/Input/input.css.ts.vanilla.cjs +1 -0
- package/dist/styles/components/form/Input/input.css.ts.vanilla.mjs +1 -0
- package/dist/styles/components/form/Radio/radio.css.cjs +6 -25
- package/dist/styles/components/form/Radio/radio.css.mjs +6 -25
- package/dist/styles/components/form/Radio/radio.css.ts.vanilla.cjs +1 -0
- package/dist/styles/components/form/Radio/radio.css.ts.vanilla.mjs +1 -0
- package/dist/styles/components/form/Select/Select.cjs +2 -2
- package/dist/styles/components/form/Select/Select.mjs +2 -2
- package/dist/styles/components/form/Select/select.css.cjs +6 -31
- package/dist/styles/components/form/Select/select.css.mjs +6 -31
- package/dist/styles/components/form/Select/select.css.ts.vanilla.cjs +1 -0
- package/dist/styles/components/form/Select/select.css.ts.vanilla.mjs +1 -0
- package/dist/styles/components/form/Slider/Slider.cjs +155 -0
- package/dist/styles/components/form/Slider/Slider.mjs +156 -0
- package/dist/styles/components/form/Slider/slider.css.cjs +16 -0
- package/dist/styles/components/form/Slider/slider.css.mjs +17 -0
- package/dist/styles/components/form/Slider/slider.css.ts.vanilla.cjs +1 -0
- package/dist/styles/components/form/Slider/slider.css.ts.vanilla.mjs +1 -0
- package/dist/styles/components/form/Switch/switch.css.cjs +5 -21
- package/dist/styles/components/form/Switch/switch.css.mjs +5 -21
- package/dist/styles/components/form/Switch/switch.css.ts.vanilla.cjs +1 -0
- package/dist/styles/components/form/Switch/switch.css.ts.vanilla.mjs +1 -0
- package/dist/styles/components/overlay/Dialog/Dialog.cjs +3 -0
- package/dist/styles/components/overlay/Dialog/Dialog.mjs +4 -1
- package/dist/styles/components/overlay/Dialog/dialog.css.cjs +4 -19
- package/dist/styles/components/overlay/Dialog/dialog.css.mjs +4 -19
- package/dist/styles/components/overlay/Dialog/dialog.css.ts.vanilla.cjs +1 -0
- package/dist/styles/components/overlay/Dialog/dialog.css.ts.vanilla.mjs +1 -0
- package/dist/styles/components/typography/Heading/heading.css.cjs +4 -11
- package/dist/styles/components/typography/Heading/heading.css.mjs +4 -11
- package/dist/styles/components/typography/Heading/heading.css.ts.vanilla.cjs +1 -0
- package/dist/styles/components/typography/Heading/heading.css.ts.vanilla.mjs +1 -0
- package/dist/styles/components/typography/Text/text.css.cjs +4 -11
- package/dist/styles/components/typography/Text/text.css.mjs +4 -11
- package/dist/styles/components/typography/Text/text.css.ts.vanilla.cjs +1 -0
- package/dist/styles/components/typography/Text/text.css.ts.vanilla.mjs +1 -0
- package/dist/styles/entries/reset.css.ts.vanilla.cjs +1 -0
- package/dist/styles/entries/reset.css.ts.vanilla.mjs +1 -0
- package/dist/styles/lib/css/atoms/sprinkles.css.cjs +2089 -32
- package/dist/styles/lib/css/atoms/sprinkles.css.mjs +2089 -32
- package/dist/styles/lib/css/atoms/sprinkles.css.ts.vanilla.cjs +1 -0
- package/dist/styles/lib/css/atoms/sprinkles.css.ts.vanilla.mjs +1 -0
- package/dist/styles/lib/css/layers/layers.css.ts.vanilla.cjs +1 -0
- package/dist/styles/lib/css/layers/layers.css.ts.vanilla.mjs +1 -0
- package/dist/styles/lib/css/reset/reset.css.ts.vanilla.cjs +1 -0
- package/dist/styles/lib/css/reset/reset.css.ts.vanilla.mjs +1 -0
- package/dist/styles/lib/theme/makeTheme.cjs +18 -2
- package/dist/styles/lib/theme/makeTheme.mjs +17 -1
- package/dist/styles/lib/theme/vars.css.cjs +77 -5
- package/dist/styles/lib/theme/vars.css.mjs +77 -5
- package/dist/styles/lib/theme/vars.css.ts.vanilla.cjs +1 -0
- package/dist/styles/lib/theme/vars.css.ts.vanilla.mjs +1 -0
- package/dist/styles/themes/momotaro/components/button.css.ts.vanilla.cjs +1 -0
- package/dist/styles/themes/momotaro/components/button.css.ts.vanilla.mjs +1 -0
- package/dist/styles/themes/momotaro/components/checkbox.css.ts.vanilla.cjs +1 -0
- package/dist/styles/themes/momotaro/components/checkbox.css.ts.vanilla.mjs +1 -0
- package/dist/styles/themes/momotaro/components/dialog.css.ts.vanilla.cjs +1 -0
- package/dist/styles/themes/momotaro/components/dialog.css.ts.vanilla.mjs +1 -0
- package/dist/styles/themes/momotaro/components/divider.css.ts.vanilla.cjs +1 -0
- package/dist/styles/themes/momotaro/components/divider.css.ts.vanilla.mjs +1 -0
- package/dist/styles/themes/momotaro/components/dropdown.css.ts.vanilla.cjs +1 -0
- package/dist/styles/themes/momotaro/components/dropdown.css.ts.vanilla.mjs +1 -0
- package/dist/styles/themes/momotaro/components/helpers.css.ts.vanilla.cjs +1 -0
- package/dist/styles/themes/momotaro/components/helpers.css.ts.vanilla.mjs +1 -0
- package/dist/styles/themes/momotaro/components/input.css.ts.vanilla.cjs +1 -0
- package/dist/styles/themes/momotaro/components/input.css.ts.vanilla.mjs +1 -0
- package/dist/styles/themes/momotaro/components/label.css.ts.vanilla.cjs +1 -0
- package/dist/styles/themes/momotaro/components/label.css.ts.vanilla.mjs +1 -0
- package/dist/styles/themes/momotaro/components/link.css.ts.vanilla.cjs +1 -0
- package/dist/styles/themes/momotaro/components/link.css.ts.vanilla.mjs +1 -0
- package/dist/styles/themes/momotaro/components/progress.css.ts.vanilla.cjs +1 -0
- package/dist/styles/themes/momotaro/components/progress.css.ts.vanilla.mjs +1 -0
- package/dist/styles/themes/momotaro/components/radio.css.ts.vanilla.cjs +1 -0
- package/dist/styles/themes/momotaro/components/radio.css.ts.vanilla.mjs +1 -0
- package/dist/styles/themes/momotaro/components/select.css.ts.vanilla.cjs +1 -0
- package/dist/styles/themes/momotaro/components/select.css.ts.vanilla.mjs +1 -0
- package/dist/styles/themes/momotaro/components/slider.css.ts.vanilla.cjs +1 -0
- package/dist/styles/themes/momotaro/components/slider.css.ts.vanilla.mjs +1 -0
- package/dist/styles/themes/momotaro/components/spinner.css.ts.vanilla.cjs +1 -0
- package/dist/styles/themes/momotaro/components/spinner.css.ts.vanilla.mjs +1 -0
- package/dist/styles/themes/momotaro/components/switch.css.ts.vanilla.cjs +1 -0
- package/dist/styles/themes/momotaro/components/switch.css.ts.vanilla.mjs +1 -0
- package/dist/styles/themes/momotaro/momotaro.css.cjs +192 -8
- package/dist/styles/themes/momotaro/momotaro.css.mjs +192 -8
- package/dist/styles/themes/momotaro/momotaro.css.ts.vanilla.cjs +1 -0
- package/dist/styles/themes/momotaro/momotaro.css.ts.vanilla.mjs +1 -0
- package/dist/styles/themes/momotaro/tokens.css.ts.vanilla.cjs +1 -0
- package/dist/styles/themes/momotaro/tokens.css.ts.vanilla.mjs +1 -0
- package/package.json +33 -33
- package/dist/styles/lib/css/atoms/atomicProperties.cjs +0 -83
- package/dist/styles/lib/css/atoms/atomicProperties.mjs +0 -84
- package/dist/styles/lib/css/atoms/breakpoints.cjs +0 -11
- package/dist/styles/lib/css/atoms/breakpoints.mjs +0 -12
- package/dist/styles/lib/css/layers/layers.css.cjs +0 -7
- package/dist/styles/lib/css/layers/layers.css.mjs +0 -8
- package/dist/styles/lib/css/style/style.cjs +0 -28
- package/dist/styles/lib/css/style/style.mjs +0 -29
- package/dist/styles/lib/theme/makeComponentTheme.cjs +0 -5
- package/dist/styles/lib/theme/makeComponentTheme.mjs +0 -6
- package/dist/styles/lib/theme/makeVanillaTheme.cjs +0 -19
- package/dist/styles/lib/theme/makeVanillaTheme.mjs +0 -20
- package/dist/styles/lib/theme/tokens.cjs +0 -81
- package/dist/styles/lib/theme/tokens.mjs +0 -82
- package/dist/styles/themes/momotaro/components/button.css.cjs +0 -103
- package/dist/styles/themes/momotaro/components/button.css.mjs +0 -104
- package/dist/styles/themes/momotaro/components/checkbox.css.cjs +0 -59
- package/dist/styles/themes/momotaro/components/checkbox.css.mjs +0 -60
- package/dist/styles/themes/momotaro/components/dialog.css.cjs +0 -68
- package/dist/styles/themes/momotaro/components/dialog.css.mjs +0 -69
- package/dist/styles/themes/momotaro/components/divider.css.cjs +0 -11
- package/dist/styles/themes/momotaro/components/divider.css.mjs +0 -12
- package/dist/styles/themes/momotaro/components/dropdown.css.cjs +0 -54
- package/dist/styles/themes/momotaro/components/dropdown.css.mjs +0 -55
- package/dist/styles/themes/momotaro/components/helpers.css.cjs +0 -43
- package/dist/styles/themes/momotaro/components/helpers.css.mjs +0 -44
- package/dist/styles/themes/momotaro/components/index.cjs +0 -30
- package/dist/styles/themes/momotaro/components/index.mjs +0 -31
- package/dist/styles/themes/momotaro/components/input.css.cjs +0 -41
- package/dist/styles/themes/momotaro/components/input.css.mjs +0 -42
- package/dist/styles/themes/momotaro/components/label.css.cjs +0 -33
- package/dist/styles/themes/momotaro/components/label.css.mjs +0 -34
- package/dist/styles/themes/momotaro/components/link.css.cjs +0 -47
- package/dist/styles/themes/momotaro/components/link.css.mjs +0 -48
- package/dist/styles/themes/momotaro/components/progress.css.cjs +0 -55
- package/dist/styles/themes/momotaro/components/progress.css.mjs +0 -56
- package/dist/styles/themes/momotaro/components/radio.css.cjs +0 -60
- package/dist/styles/themes/momotaro/components/radio.css.mjs +0 -61
- package/dist/styles/themes/momotaro/components/select.css.cjs +0 -35
- package/dist/styles/themes/momotaro/components/select.css.mjs +0 -36
- package/dist/styles/themes/momotaro/components/spinner.css.cjs +0 -43
- package/dist/styles/themes/momotaro/components/spinner.css.mjs +0 -44
- package/dist/styles/themes/momotaro/components/switch.css.cjs +0 -58
- package/dist/styles/themes/momotaro/components/switch.css.mjs +0 -59
- package/dist/styles/themes/momotaro/components/transitions.cjs +0 -3
- package/dist/styles/themes/momotaro/components/transitions.mjs +0 -4
- package/dist/styles/themes/momotaro/tokens.css.cjs +0 -84
- package/dist/styles/themes/momotaro/tokens.css.mjs +0 -85
- /package/dist/styles/{lib/css/reset/reset.css.cjs → components/display/Divider/divider.css.ts.vanilla.cjs} +0 -0
- /package/dist/styles/{lib/css/reset/reset.css.mjs → components/display/Divider/divider.css.ts.vanilla.mjs} +0 -0
|
@@ -1,60 +0,0 @@
|
|
|
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", "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;
|
|
@@ -1,61 +0,0 @@
|
|
|
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", "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
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
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", "blocks");
|
|
8
|
-
const select = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("select", {
|
|
9
|
-
// wrapper: style({}),
|
|
10
|
-
select: styles_lib_css_style_style_cjs.style([{
|
|
11
|
-
color: "text",
|
|
12
|
-
padding: "large",
|
|
13
|
-
border: "none",
|
|
14
|
-
outline: "none",
|
|
15
|
-
backgroundColor: "white",
|
|
16
|
-
borderRadius: "medium",
|
|
17
|
-
boxShadow: "medium",
|
|
18
|
-
minHeight: 56,
|
|
19
|
-
transitionDuration: styles_lib_theme_vars_css_cjs.vars.transition.fast,
|
|
20
|
-
transitionProperty: "box-shadow",
|
|
21
|
-
":focus-within": {
|
|
22
|
-
outline: "2px solid transparent",
|
|
23
|
-
outlineOffset: "2px",
|
|
24
|
-
boxShadow: `${styles_lib_theme_vars_css_cjs.vars.shadow.small}, ${styles_lib_theme_vars_css_cjs.vars.focus.boxShadow}`
|
|
25
|
-
}
|
|
26
|
-
}, styles_themes_momotaro_components_helpers_css_cjs.focusable]),
|
|
27
|
-
icon: styles_lib_css_style_style_cjs.style({
|
|
28
|
-
paddingInline: "large"
|
|
29
|
-
}),
|
|
30
|
-
defaultVariants: {
|
|
31
|
-
variant: "outline"
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
fileScope.endFileScope();
|
|
35
|
-
exports.select = select;
|
|
@@ -1,36 +0,0 @@
|
|
|
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", "blocks");
|
|
7
|
-
const select = makeComponentTheme("select", {
|
|
8
|
-
// wrapper: style({}),
|
|
9
|
-
select: 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: vars.transition.fast,
|
|
19
|
-
transitionProperty: "box-shadow",
|
|
20
|
-
":focus-within": {
|
|
21
|
-
outline: "2px solid transparent",
|
|
22
|
-
outlineOffset: "2px",
|
|
23
|
-
boxShadow: `${vars.shadow.small}, ${vars.focus.boxShadow}`
|
|
24
|
-
}
|
|
25
|
-
}, focusable]),
|
|
26
|
-
icon: style({
|
|
27
|
-
paddingInline: "large"
|
|
28
|
-
}),
|
|
29
|
-
defaultVariants: {
|
|
30
|
-
variant: "outline"
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
endFileScope();
|
|
34
|
-
export {
|
|
35
|
-
select
|
|
36
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
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", "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;
|
|
@@ -1,44 +0,0 @@
|
|
|
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", "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
|
-
};
|
|
@@ -1,58 +0,0 @@
|
|
|
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", "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;
|
|
@@ -1,59 +0,0 @@
|
|
|
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", "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,84 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
|
-
fileScope.setFileScope("src/themes/momotaro/tokens.css.ts", "blocks");
|
|
4
|
-
const tokens = {
|
|
5
|
-
border: {
|
|
6
|
-
radius: {
|
|
7
|
-
small: "4px",
|
|
8
|
-
medium: "8px",
|
|
9
|
-
large: "16px",
|
|
10
|
-
xlarge: "32px"
|
|
11
|
-
},
|
|
12
|
-
width: {
|
|
13
|
-
small: "1px",
|
|
14
|
-
medium: "2px",
|
|
15
|
-
large: "4px"
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
color: {
|
|
19
|
-
white: "#fff",
|
|
20
|
-
black: "#000",
|
|
21
|
-
body: "#F4F6FA",
|
|
22
|
-
primaryLight: "#E4DFFF",
|
|
23
|
-
primary: "#7265E3",
|
|
24
|
-
primaryDark: "#4D3CAB",
|
|
25
|
-
secondaryLight: "#7265E3",
|
|
26
|
-
secondary: "#7FE3F0",
|
|
27
|
-
secondaryDark: "#4D3CAB",
|
|
28
|
-
text: "#2D3142",
|
|
29
|
-
textLight: "#9C9EB9",
|
|
30
|
-
textDark: "#4C5980",
|
|
31
|
-
danger: "#FF9B90",
|
|
32
|
-
link: "#7265E3"
|
|
33
|
-
},
|
|
34
|
-
shadow: {
|
|
35
|
-
small: "0px 4px 8px rgba(0, 0, 0, 0.08)",
|
|
36
|
-
medium: "0px 8px 16px rgba(0, 0, 0, 0.08)",
|
|
37
|
-
large: "0px 16px 24px rgba(0, 0, 0, 0.08)"
|
|
38
|
-
},
|
|
39
|
-
focus: {
|
|
40
|
-
boxShadow: "0 0 1px 2px #AF8EFF"
|
|
41
|
-
},
|
|
42
|
-
spacing: {
|
|
43
|
-
none: "0px",
|
|
44
|
-
gutter: "28px",
|
|
45
|
-
xsmall: "4px",
|
|
46
|
-
small: "8px",
|
|
47
|
-
medium: "12px",
|
|
48
|
-
large: "16px",
|
|
49
|
-
xlarge: "24px"
|
|
50
|
-
},
|
|
51
|
-
transition: {
|
|
52
|
-
slow: "240ms",
|
|
53
|
-
normal: "120ms",
|
|
54
|
-
fast: "80ms"
|
|
55
|
-
},
|
|
56
|
-
typography: {
|
|
57
|
-
fontFamily: {
|
|
58
|
-
body: '"Rubik", sans-serif',
|
|
59
|
-
primary: '"Rubik", sans-serif',
|
|
60
|
-
secondary: '"Rubik", sans-serif'
|
|
61
|
-
},
|
|
62
|
-
fontSize: {
|
|
63
|
-
xsmall: "12px",
|
|
64
|
-
small: "14px",
|
|
65
|
-
medium: "16px",
|
|
66
|
-
large: "20px",
|
|
67
|
-
xlarge: "24px"
|
|
68
|
-
},
|
|
69
|
-
fontWeight: {
|
|
70
|
-
regular: 400,
|
|
71
|
-
medium: 500,
|
|
72
|
-
strong: 700
|
|
73
|
-
},
|
|
74
|
-
lineHeight: {
|
|
75
|
-
xsmall: "1rem",
|
|
76
|
-
small: "1.25rem",
|
|
77
|
-
medium: "1.5rem",
|
|
78
|
-
large: "1.75rem",
|
|
79
|
-
xlarge: "2rem"
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
fileScope.endFileScope();
|
|
84
|
-
exports.tokens = tokens;
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
-
setFileScope("src/themes/momotaro/tokens.css.ts", "blocks");
|
|
3
|
-
const tokens = {
|
|
4
|
-
border: {
|
|
5
|
-
radius: {
|
|
6
|
-
small: "4px",
|
|
7
|
-
medium: "8px",
|
|
8
|
-
large: "16px",
|
|
9
|
-
xlarge: "32px"
|
|
10
|
-
},
|
|
11
|
-
width: {
|
|
12
|
-
small: "1px",
|
|
13
|
-
medium: "2px",
|
|
14
|
-
large: "4px"
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
color: {
|
|
18
|
-
white: "#fff",
|
|
19
|
-
black: "#000",
|
|
20
|
-
body: "#F4F6FA",
|
|
21
|
-
primaryLight: "#E4DFFF",
|
|
22
|
-
primary: "#7265E3",
|
|
23
|
-
primaryDark: "#4D3CAB",
|
|
24
|
-
secondaryLight: "#7265E3",
|
|
25
|
-
secondary: "#7FE3F0",
|
|
26
|
-
secondaryDark: "#4D3CAB",
|
|
27
|
-
text: "#2D3142",
|
|
28
|
-
textLight: "#9C9EB9",
|
|
29
|
-
textDark: "#4C5980",
|
|
30
|
-
danger: "#FF9B90",
|
|
31
|
-
link: "#7265E3"
|
|
32
|
-
},
|
|
33
|
-
shadow: {
|
|
34
|
-
small: "0px 4px 8px rgba(0, 0, 0, 0.08)",
|
|
35
|
-
medium: "0px 8px 16px rgba(0, 0, 0, 0.08)",
|
|
36
|
-
large: "0px 16px 24px rgba(0, 0, 0, 0.08)"
|
|
37
|
-
},
|
|
38
|
-
focus: {
|
|
39
|
-
boxShadow: "0 0 1px 2px #AF8EFF"
|
|
40
|
-
},
|
|
41
|
-
spacing: {
|
|
42
|
-
none: "0px",
|
|
43
|
-
gutter: "28px",
|
|
44
|
-
xsmall: "4px",
|
|
45
|
-
small: "8px",
|
|
46
|
-
medium: "12px",
|
|
47
|
-
large: "16px",
|
|
48
|
-
xlarge: "24px"
|
|
49
|
-
},
|
|
50
|
-
transition: {
|
|
51
|
-
slow: "240ms",
|
|
52
|
-
normal: "120ms",
|
|
53
|
-
fast: "80ms"
|
|
54
|
-
},
|
|
55
|
-
typography: {
|
|
56
|
-
fontFamily: {
|
|
57
|
-
body: '"Rubik", sans-serif',
|
|
58
|
-
primary: '"Rubik", sans-serif',
|
|
59
|
-
secondary: '"Rubik", sans-serif'
|
|
60
|
-
},
|
|
61
|
-
fontSize: {
|
|
62
|
-
xsmall: "12px",
|
|
63
|
-
small: "14px",
|
|
64
|
-
medium: "16px",
|
|
65
|
-
large: "20px",
|
|
66
|
-
xlarge: "24px"
|
|
67
|
-
},
|
|
68
|
-
fontWeight: {
|
|
69
|
-
regular: 400,
|
|
70
|
-
medium: 500,
|
|
71
|
-
strong: 700
|
|
72
|
-
},
|
|
73
|
-
lineHeight: {
|
|
74
|
-
xsmall: "1rem",
|
|
75
|
-
small: "1.25rem",
|
|
76
|
-
medium: "1.5rem",
|
|
77
|
-
large: "1.75rem",
|
|
78
|
-
xlarge: "2rem"
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
endFileScope();
|
|
83
|
-
export {
|
|
84
|
-
tokens
|
|
85
|
-
};
|
|
File without changes
|
|
File without changes
|