@blockle/blocks 0.10.0 → 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 +256 -8
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +257 -8
- package/dist/momotaro.chunk.d.ts +289 -271
- package/dist/reset.css.cjs +2 -0
- package/dist/reset.css.mjs +2 -0
- 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 +3 -10
- package/dist/styles/components/display/Divider/divider.css.mjs +3 -10
- package/dist/styles/components/form/Button/Button.css.cjs +3 -10
- package/dist/styles/components/form/Button/Button.css.mjs +3 -10
- 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 +5 -24
- package/dist/styles/components/form/Checkbox/checkbox.css.mjs +5 -24
- 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 +3 -14
- package/dist/styles/components/form/Input/input.css.mjs +3 -14
- 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 +5 -24
- package/dist/styles/components/form/Radio/radio.css.mjs +5 -24
- 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 +5 -30
- package/dist/styles/components/form/Select/select.css.mjs +5 -30
- 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.css.cjs +7 -64
- package/dist/styles/components/form/Slider/slider.css.mjs +7 -64
- 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 +4 -20
- package/dist/styles/components/form/Switch/switch.css.mjs +4 -20
- 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 +3 -18
- package/dist/styles/components/overlay/Dialog/dialog.css.mjs +3 -18
- 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 +3 -10
- package/dist/styles/components/typography/Heading/heading.css.mjs +3 -10
- 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 +3 -10
- package/dist/styles/components/typography/Text/text.css.mjs +3 -10
- 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 +2088 -31
- package/dist/styles/lib/css/atoms/sprinkles.css.mjs +2088 -31
- 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 +76 -4
- package/dist/styles/lib/theme/vars.css.mjs +76 -4
- 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 +191 -7
- package/dist/styles/themes/momotaro/momotaro.css.mjs +191 -7
- 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 +22 -22
- 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 -32
- package/dist/styles/themes/momotaro/components/index.mjs +0 -33
- 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/slider.css.cjs +0 -65
- package/dist/styles/themes/momotaro/components/slider.css.mjs +0 -66
- 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,81 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const tokens = {
|
|
3
|
-
typography: {
|
|
4
|
-
fontFamily: {
|
|
5
|
-
body: "Roboto, sans-serif",
|
|
6
|
-
primary: "Roboto, sans-serif",
|
|
7
|
-
secondary: "Roboto, sans-serif"
|
|
8
|
-
},
|
|
9
|
-
fontSize: {
|
|
10
|
-
xsmall: "0.75rem",
|
|
11
|
-
small: "0.875rem",
|
|
12
|
-
medium: "1rem",
|
|
13
|
-
large: "1.125rem",
|
|
14
|
-
xlarge: "1.25rem"
|
|
15
|
-
},
|
|
16
|
-
fontWeight: {
|
|
17
|
-
regular: 400,
|
|
18
|
-
medium: 500,
|
|
19
|
-
strong: 700
|
|
20
|
-
},
|
|
21
|
-
lineHeight: {
|
|
22
|
-
xsmall: "1rem",
|
|
23
|
-
small: "1.25rem",
|
|
24
|
-
medium: "1.5rem",
|
|
25
|
-
large: "1.75rem",
|
|
26
|
-
xlarge: "2rem"
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
spacing: {
|
|
30
|
-
none: 0,
|
|
31
|
-
gutter: "1rem",
|
|
32
|
-
xsmall: "0.25rem",
|
|
33
|
-
small: "0.5rem",
|
|
34
|
-
medium: "1rem",
|
|
35
|
-
large: "1.5rem",
|
|
36
|
-
xlarge: "2rem"
|
|
37
|
-
},
|
|
38
|
-
transition: {
|
|
39
|
-
slow: "0.5s",
|
|
40
|
-
normal: "0.3s",
|
|
41
|
-
fast: "0.1s"
|
|
42
|
-
},
|
|
43
|
-
border: {
|
|
44
|
-
radius: {
|
|
45
|
-
small: "0.25rem",
|
|
46
|
-
medium: "0.5rem",
|
|
47
|
-
large: "1rem",
|
|
48
|
-
xlarge: "2rem"
|
|
49
|
-
},
|
|
50
|
-
width: {
|
|
51
|
-
small: "1px",
|
|
52
|
-
medium: "2px",
|
|
53
|
-
large: "4px"
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
shadow: {
|
|
57
|
-
small: "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
|
|
58
|
-
medium: "0 2px 4px 0 rgba(0, 0, 0, 0.05)",
|
|
59
|
-
large: "0 4px 8px 0 rgba(0, 0, 0, 0.05)"
|
|
60
|
-
},
|
|
61
|
-
focus: {
|
|
62
|
-
boxShadow: "0 0 0 2px #AF8EFF"
|
|
63
|
-
},
|
|
64
|
-
color: {
|
|
65
|
-
black: "#000000",
|
|
66
|
-
white: "#ffffff",
|
|
67
|
-
body: "#ffffff",
|
|
68
|
-
primaryLight: "#f5f5f5",
|
|
69
|
-
primary: "#e0e0e0",
|
|
70
|
-
primaryDark: "#aeaeae",
|
|
71
|
-
secondaryLight: "#f5f5f5",
|
|
72
|
-
secondary: "#e0e0e0",
|
|
73
|
-
secondaryDark: "#aeaeae",
|
|
74
|
-
text: "#000000",
|
|
75
|
-
textLight: "#ffffff",
|
|
76
|
-
textDark: "#aeaeae",
|
|
77
|
-
danger: "#ff0000",
|
|
78
|
-
link: "#0000ff"
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
|
-
exports.tokens = tokens;
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
const tokens = {
|
|
2
|
-
typography: {
|
|
3
|
-
fontFamily: {
|
|
4
|
-
body: "Roboto, sans-serif",
|
|
5
|
-
primary: "Roboto, sans-serif",
|
|
6
|
-
secondary: "Roboto, sans-serif"
|
|
7
|
-
},
|
|
8
|
-
fontSize: {
|
|
9
|
-
xsmall: "0.75rem",
|
|
10
|
-
small: "0.875rem",
|
|
11
|
-
medium: "1rem",
|
|
12
|
-
large: "1.125rem",
|
|
13
|
-
xlarge: "1.25rem"
|
|
14
|
-
},
|
|
15
|
-
fontWeight: {
|
|
16
|
-
regular: 400,
|
|
17
|
-
medium: 500,
|
|
18
|
-
strong: 700
|
|
19
|
-
},
|
|
20
|
-
lineHeight: {
|
|
21
|
-
xsmall: "1rem",
|
|
22
|
-
small: "1.25rem",
|
|
23
|
-
medium: "1.5rem",
|
|
24
|
-
large: "1.75rem",
|
|
25
|
-
xlarge: "2rem"
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
spacing: {
|
|
29
|
-
none: 0,
|
|
30
|
-
gutter: "1rem",
|
|
31
|
-
xsmall: "0.25rem",
|
|
32
|
-
small: "0.5rem",
|
|
33
|
-
medium: "1rem",
|
|
34
|
-
large: "1.5rem",
|
|
35
|
-
xlarge: "2rem"
|
|
36
|
-
},
|
|
37
|
-
transition: {
|
|
38
|
-
slow: "0.5s",
|
|
39
|
-
normal: "0.3s",
|
|
40
|
-
fast: "0.1s"
|
|
41
|
-
},
|
|
42
|
-
border: {
|
|
43
|
-
radius: {
|
|
44
|
-
small: "0.25rem",
|
|
45
|
-
medium: "0.5rem",
|
|
46
|
-
large: "1rem",
|
|
47
|
-
xlarge: "2rem"
|
|
48
|
-
},
|
|
49
|
-
width: {
|
|
50
|
-
small: "1px",
|
|
51
|
-
medium: "2px",
|
|
52
|
-
large: "4px"
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
shadow: {
|
|
56
|
-
small: "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
|
|
57
|
-
medium: "0 2px 4px 0 rgba(0, 0, 0, 0.05)",
|
|
58
|
-
large: "0 4px 8px 0 rgba(0, 0, 0, 0.05)"
|
|
59
|
-
},
|
|
60
|
-
focus: {
|
|
61
|
-
boxShadow: "0 0 0 2px #AF8EFF"
|
|
62
|
-
},
|
|
63
|
-
color: {
|
|
64
|
-
black: "#000000",
|
|
65
|
-
white: "#ffffff",
|
|
66
|
-
body: "#ffffff",
|
|
67
|
-
primaryLight: "#f5f5f5",
|
|
68
|
-
primary: "#e0e0e0",
|
|
69
|
-
primaryDark: "#aeaeae",
|
|
70
|
-
secondaryLight: "#f5f5f5",
|
|
71
|
-
secondary: "#e0e0e0",
|
|
72
|
-
secondaryDark: "#aeaeae",
|
|
73
|
-
text: "#000000",
|
|
74
|
-
textLight: "#ffffff",
|
|
75
|
-
textDark: "#aeaeae",
|
|
76
|
-
danger: "#ff0000",
|
|
77
|
-
link: "#0000ff"
|
|
78
|
-
}
|
|
79
|
-
};
|
|
80
|
-
export {
|
|
81
|
-
tokens
|
|
82
|
-
};
|
|
@@ -1,103 +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/button.css.ts", "@blockle/blocks");
|
|
9
|
-
const intentColor = css.createVar("intentColor");
|
|
10
|
-
const hoverBackgroundColor = css.createVar("hoverBackgroundColor");
|
|
11
|
-
const button = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("button", {
|
|
12
|
-
base: styles_lib_css_style_style_cjs.style([{
|
|
13
|
-
display: "inline-flex",
|
|
14
|
-
placeItems: "center",
|
|
15
|
-
fontSize: "medium",
|
|
16
|
-
borderRadius: "medium",
|
|
17
|
-
fontWeight: "medium",
|
|
18
|
-
// Space between `startSlot | children | endSlot`
|
|
19
|
-
gap: "small",
|
|
20
|
-
selectors: {
|
|
21
|
-
"&:hover:not(:disabled)": {
|
|
22
|
-
backgroundColor: hoverBackgroundColor
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}, styles_themes_momotaro_components_helpers_css_cjs.clickable]),
|
|
26
|
-
variants: {
|
|
27
|
-
variant: {
|
|
28
|
-
solid: styles_lib_css_style_style_cjs.style({
|
|
29
|
-
color: styles_lib_theme_vars_css_cjs.vars.color.white,
|
|
30
|
-
backgroundColor: intentColor,
|
|
31
|
-
border: "none"
|
|
32
|
-
}),
|
|
33
|
-
outline: styles_lib_css_style_style_cjs.style({
|
|
34
|
-
color: intentColor,
|
|
35
|
-
borderWidth: "small",
|
|
36
|
-
borderStyle: "solid",
|
|
37
|
-
borderColor: intentColor,
|
|
38
|
-
background: "transparent"
|
|
39
|
-
}),
|
|
40
|
-
ghost: styles_lib_css_style_style_cjs.style({
|
|
41
|
-
color: intentColor,
|
|
42
|
-
background: "transparent"
|
|
43
|
-
})
|
|
44
|
-
},
|
|
45
|
-
size: {
|
|
46
|
-
small: styles_lib_css_style_style_cjs.style({
|
|
47
|
-
paddingInline: "large",
|
|
48
|
-
height: 40
|
|
49
|
-
}),
|
|
50
|
-
medium: styles_lib_css_style_style_cjs.style({
|
|
51
|
-
paddingInline: "xlarge",
|
|
52
|
-
height: 56
|
|
53
|
-
}),
|
|
54
|
-
large: styles_lib_css_style_style_cjs.style({
|
|
55
|
-
paddingInline: "xlarge",
|
|
56
|
-
height: 72
|
|
57
|
-
})
|
|
58
|
-
},
|
|
59
|
-
intent: {
|
|
60
|
-
neutral: styles_lib_css_style_style_cjs.style({
|
|
61
|
-
vars: {
|
|
62
|
-
[intentColor]: styles_lib_theme_vars_css_cjs.vars.color.primary,
|
|
63
|
-
[hoverBackgroundColor]: styles_lib_theme_vars_css_cjs.vars.color.primaryLight
|
|
64
|
-
}
|
|
65
|
-
}),
|
|
66
|
-
danger: styles_lib_css_style_style_cjs.style({
|
|
67
|
-
vars: {
|
|
68
|
-
[intentColor]: styles_lib_theme_vars_css_cjs.vars.color.danger,
|
|
69
|
-
[hoverBackgroundColor]: "#fff8f7",
|
|
70
|
-
[styles_themes_momotaro_components_helpers_css_cjs.focusRingColor]: styles_lib_theme_vars_css_cjs.vars.color.danger
|
|
71
|
-
}
|
|
72
|
-
})
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
compoundVariants: [{
|
|
76
|
-
variants: {
|
|
77
|
-
variant: "solid",
|
|
78
|
-
intent: "neutral"
|
|
79
|
-
},
|
|
80
|
-
style: styles_lib_css_style_style_cjs.style({
|
|
81
|
-
vars: {
|
|
82
|
-
[hoverBackgroundColor]: styles_lib_theme_vars_css_cjs.vars.color.primaryDark
|
|
83
|
-
}
|
|
84
|
-
})
|
|
85
|
-
}, {
|
|
86
|
-
variants: {
|
|
87
|
-
variant: "solid",
|
|
88
|
-
intent: "danger"
|
|
89
|
-
},
|
|
90
|
-
style: styles_lib_css_style_style_cjs.style({
|
|
91
|
-
vars: {
|
|
92
|
-
[hoverBackgroundColor]: "#f9b1a9"
|
|
93
|
-
}
|
|
94
|
-
})
|
|
95
|
-
}],
|
|
96
|
-
defaultVariants: {
|
|
97
|
-
size: "small",
|
|
98
|
-
variant: "solid",
|
|
99
|
-
intent: "neutral"
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
|
-
fileScope.endFileScope();
|
|
103
|
-
exports.button = button;
|
|
@@ -1,104 +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 { clickable, focusRingColor } from "./helpers.css.mjs";
|
|
7
|
-
setFileScope("src/themes/momotaro/components/button.css.ts", "@blockle/blocks");
|
|
8
|
-
const intentColor = createVar("intentColor");
|
|
9
|
-
const hoverBackgroundColor = createVar("hoverBackgroundColor");
|
|
10
|
-
const button = makeComponentTheme("button", {
|
|
11
|
-
base: style([{
|
|
12
|
-
display: "inline-flex",
|
|
13
|
-
placeItems: "center",
|
|
14
|
-
fontSize: "medium",
|
|
15
|
-
borderRadius: "medium",
|
|
16
|
-
fontWeight: "medium",
|
|
17
|
-
// Space between `startSlot | children | endSlot`
|
|
18
|
-
gap: "small",
|
|
19
|
-
selectors: {
|
|
20
|
-
"&:hover:not(:disabled)": {
|
|
21
|
-
backgroundColor: hoverBackgroundColor
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}, clickable]),
|
|
25
|
-
variants: {
|
|
26
|
-
variant: {
|
|
27
|
-
solid: style({
|
|
28
|
-
color: vars.color.white,
|
|
29
|
-
backgroundColor: intentColor,
|
|
30
|
-
border: "none"
|
|
31
|
-
}),
|
|
32
|
-
outline: style({
|
|
33
|
-
color: intentColor,
|
|
34
|
-
borderWidth: "small",
|
|
35
|
-
borderStyle: "solid",
|
|
36
|
-
borderColor: intentColor,
|
|
37
|
-
background: "transparent"
|
|
38
|
-
}),
|
|
39
|
-
ghost: style({
|
|
40
|
-
color: intentColor,
|
|
41
|
-
background: "transparent"
|
|
42
|
-
})
|
|
43
|
-
},
|
|
44
|
-
size: {
|
|
45
|
-
small: style({
|
|
46
|
-
paddingInline: "large",
|
|
47
|
-
height: 40
|
|
48
|
-
}),
|
|
49
|
-
medium: style({
|
|
50
|
-
paddingInline: "xlarge",
|
|
51
|
-
height: 56
|
|
52
|
-
}),
|
|
53
|
-
large: style({
|
|
54
|
-
paddingInline: "xlarge",
|
|
55
|
-
height: 72
|
|
56
|
-
})
|
|
57
|
-
},
|
|
58
|
-
intent: {
|
|
59
|
-
neutral: style({
|
|
60
|
-
vars: {
|
|
61
|
-
[intentColor]: vars.color.primary,
|
|
62
|
-
[hoverBackgroundColor]: vars.color.primaryLight
|
|
63
|
-
}
|
|
64
|
-
}),
|
|
65
|
-
danger: style({
|
|
66
|
-
vars: {
|
|
67
|
-
[intentColor]: vars.color.danger,
|
|
68
|
-
[hoverBackgroundColor]: "#fff8f7",
|
|
69
|
-
[focusRingColor]: vars.color.danger
|
|
70
|
-
}
|
|
71
|
-
})
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
compoundVariants: [{
|
|
75
|
-
variants: {
|
|
76
|
-
variant: "solid",
|
|
77
|
-
intent: "neutral"
|
|
78
|
-
},
|
|
79
|
-
style: style({
|
|
80
|
-
vars: {
|
|
81
|
-
[hoverBackgroundColor]: vars.color.primaryDark
|
|
82
|
-
}
|
|
83
|
-
})
|
|
84
|
-
}, {
|
|
85
|
-
variants: {
|
|
86
|
-
variant: "solid",
|
|
87
|
-
intent: "danger"
|
|
88
|
-
},
|
|
89
|
-
style: style({
|
|
90
|
-
vars: {
|
|
91
|
-
[hoverBackgroundColor]: "#f9b1a9"
|
|
92
|
-
}
|
|
93
|
-
})
|
|
94
|
-
}],
|
|
95
|
-
defaultVariants: {
|
|
96
|
-
size: "small",
|
|
97
|
-
variant: "solid",
|
|
98
|
-
intent: "neutral"
|
|
99
|
-
}
|
|
100
|
-
});
|
|
101
|
-
endFileScope();
|
|
102
|
-
export {
|
|
103
|
-
button
|
|
104
|
-
};
|
|
@@ -1,59 +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/checkbox.css.ts", "@blockle/blocks");
|
|
10
|
-
const checkbox = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("checkbox", {
|
|
11
|
-
base: css.style([{
|
|
12
|
-
display: "flex",
|
|
13
|
-
alignItems: "center",
|
|
14
|
-
justifyContent: "center",
|
|
15
|
-
inlineSize: 24,
|
|
16
|
-
blockSize: 24,
|
|
17
|
-
"@media": {
|
|
18
|
-
"(prefers-reduced-motion: no-preference)": {
|
|
19
|
-
transition: `background-color ${styles_lib_theme_vars_css_cjs.vars.transition.normal}, box-shadow ${styles_lib_theme_vars_css_cjs.vars.transition.fast}`
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
selectors: {
|
|
23
|
-
"&:hover:not(:has(input:disabled))": {
|
|
24
|
-
backgroundColor: styles_lib_theme_vars_css_cjs.vars.color.primaryDark
|
|
25
|
-
},
|
|
26
|
-
"&:has(input:checked)": {
|
|
27
|
-
backgroundColor: styles_lib_theme_vars_css_cjs.vars.color.primary
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}, styles_lib_css_atoms_sprinkles_css_cjs.atoms({
|
|
31
|
-
backgroundColor: "primaryLight",
|
|
32
|
-
borderRadius: "small"
|
|
33
|
-
}), styles_themes_momotaro_components_helpers_css_cjs.focusable], "checkbox_base"),
|
|
34
|
-
icon: css.style({
|
|
35
|
-
inlineSize: "1rem",
|
|
36
|
-
blockSize: "1rem",
|
|
37
|
-
color: "white",
|
|
38
|
-
transform: "scale(0)",
|
|
39
|
-
selectors: {
|
|
40
|
-
"input:checked ~ &": {
|
|
41
|
-
transform: "scale(1)"
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
"@media": {
|
|
45
|
-
"(prefers-reduced-motion: no-preference)": {
|
|
46
|
-
transition: `transform ${styles_lib_theme_vars_css_cjs.vars.transition.normal} ${styles_themes_momotaro_components_transitions_cjs.bounceOut}`
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}, "checkbox_icon"),
|
|
50
|
-
label: styles_lib_css_atoms_sprinkles_css_cjs.atoms({
|
|
51
|
-
display: "flex",
|
|
52
|
-
flexDirection: "row",
|
|
53
|
-
padding: "xsmall",
|
|
54
|
-
gap: "medium",
|
|
55
|
-
cursor: "pointer"
|
|
56
|
-
})
|
|
57
|
-
});
|
|
58
|
-
fileScope.endFileScope();
|
|
59
|
-
exports.checkbox = checkbox;
|
|
@@ -1,60 +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/checkbox.css.ts", "@blockle/blocks");
|
|
9
|
-
const checkbox = makeComponentTheme("checkbox", {
|
|
10
|
-
base: style([{
|
|
11
|
-
display: "flex",
|
|
12
|
-
alignItems: "center",
|
|
13
|
-
justifyContent: "center",
|
|
14
|
-
inlineSize: 24,
|
|
15
|
-
blockSize: 24,
|
|
16
|
-
"@media": {
|
|
17
|
-
"(prefers-reduced-motion: no-preference)": {
|
|
18
|
-
transition: `background-color ${vars.transition.normal}, box-shadow ${vars.transition.fast}`
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
selectors: {
|
|
22
|
-
"&:hover:not(:has(input:disabled))": {
|
|
23
|
-
backgroundColor: vars.color.primaryDark
|
|
24
|
-
},
|
|
25
|
-
"&:has(input:checked)": {
|
|
26
|
-
backgroundColor: vars.color.primary
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}, atoms({
|
|
30
|
-
backgroundColor: "primaryLight",
|
|
31
|
-
borderRadius: "small"
|
|
32
|
-
}), focusable], "checkbox_base"),
|
|
33
|
-
icon: style({
|
|
34
|
-
inlineSize: "1rem",
|
|
35
|
-
blockSize: "1rem",
|
|
36
|
-
color: "white",
|
|
37
|
-
transform: "scale(0)",
|
|
38
|
-
selectors: {
|
|
39
|
-
"input:checked ~ &": {
|
|
40
|
-
transform: "scale(1)"
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
"@media": {
|
|
44
|
-
"(prefers-reduced-motion: no-preference)": {
|
|
45
|
-
transition: `transform ${vars.transition.normal} ${bounceOut}`
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}, "checkbox_icon"),
|
|
49
|
-
label: atoms({
|
|
50
|
-
display: "flex",
|
|
51
|
-
flexDirection: "row",
|
|
52
|
-
padding: "xsmall",
|
|
53
|
-
gap: "medium",
|
|
54
|
-
cursor: "pointer"
|
|
55
|
-
})
|
|
56
|
-
});
|
|
57
|
-
endFileScope();
|
|
58
|
-
export {
|
|
59
|
-
checkbox
|
|
60
|
-
};
|
|
@@ -1,68 +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_css_atoms_sprinkles_css_cjs = require("../../../lib/css/atoms/sprinkles.css.cjs");
|
|
6
|
-
fileScope.setFileScope("src/themes/momotaro/components/dialog.css.ts", "@blockle/blocks");
|
|
7
|
-
const dialog = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("dialog", {
|
|
8
|
-
dialog: css.style([styles_lib_css_atoms_sprinkles_css_cjs.atoms({
|
|
9
|
-
display: "flex",
|
|
10
|
-
flexDirection: "column",
|
|
11
|
-
padding: "gutter",
|
|
12
|
-
border: "none",
|
|
13
|
-
overflow: "auto",
|
|
14
|
-
borderRadius: "medium",
|
|
15
|
-
boxShadow: "large"
|
|
16
|
-
}), {
|
|
17
|
-
maxHeight: "90%",
|
|
18
|
-
minWidth: "300px",
|
|
19
|
-
selectors: {
|
|
20
|
-
"&[data-open]": {
|
|
21
|
-
transform: "scale(1)"
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
// Apply the animation only if the user has not requested reduced motion
|
|
25
|
-
"@media": {
|
|
26
|
-
"(prefers-reduced-motion: no-preference)": {
|
|
27
|
-
transform: "scale(0.9)",
|
|
28
|
-
transition: "transform 160ms"
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}], "dialog_dialog"),
|
|
32
|
-
backdrop: css.style({
|
|
33
|
-
backgroundColor: "rgba(0, 0, 0, 0.5)",
|
|
34
|
-
selectors: {
|
|
35
|
-
"&[data-open]": {
|
|
36
|
-
opacity: 1
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
// Apply the animation only if the user has not requested reduced motion
|
|
40
|
-
"@media": {
|
|
41
|
-
"(prefers-reduced-motion: no-preference)": {
|
|
42
|
-
opacity: 0,
|
|
43
|
-
transition: "opacity 160ms"
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}, "dialog_backdrop"),
|
|
47
|
-
variants: {
|
|
48
|
-
size: {
|
|
49
|
-
small: css.style({
|
|
50
|
-
width: "400px",
|
|
51
|
-
maxWidth: "min(400px, 90%)"
|
|
52
|
-
}, "dialog_variants_size_small"),
|
|
53
|
-
medium: css.style({
|
|
54
|
-
width: "600px",
|
|
55
|
-
maxWidth: "min(600px, 90%)"
|
|
56
|
-
}, "dialog_variants_size_medium"),
|
|
57
|
-
large: css.style({
|
|
58
|
-
width: "800px",
|
|
59
|
-
maxWidth: "min(800px, 90%)"
|
|
60
|
-
}, "dialog_variants_size_large")
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
defaultVariants: {
|
|
64
|
-
size: "small"
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
fileScope.endFileScope();
|
|
68
|
-
exports.dialog = dialog;
|
|
@@ -1,69 +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 { atoms } from "../../../lib/css/atoms/sprinkles.css.mjs";
|
|
5
|
-
setFileScope("src/themes/momotaro/components/dialog.css.ts", "@blockle/blocks");
|
|
6
|
-
const dialog = makeComponentTheme("dialog", {
|
|
7
|
-
dialog: style([atoms({
|
|
8
|
-
display: "flex",
|
|
9
|
-
flexDirection: "column",
|
|
10
|
-
padding: "gutter",
|
|
11
|
-
border: "none",
|
|
12
|
-
overflow: "auto",
|
|
13
|
-
borderRadius: "medium",
|
|
14
|
-
boxShadow: "large"
|
|
15
|
-
}), {
|
|
16
|
-
maxHeight: "90%",
|
|
17
|
-
minWidth: "300px",
|
|
18
|
-
selectors: {
|
|
19
|
-
"&[data-open]": {
|
|
20
|
-
transform: "scale(1)"
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
// Apply the animation only if the user has not requested reduced motion
|
|
24
|
-
"@media": {
|
|
25
|
-
"(prefers-reduced-motion: no-preference)": {
|
|
26
|
-
transform: "scale(0.9)",
|
|
27
|
-
transition: "transform 160ms"
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}], "dialog_dialog"),
|
|
31
|
-
backdrop: style({
|
|
32
|
-
backgroundColor: "rgba(0, 0, 0, 0.5)",
|
|
33
|
-
selectors: {
|
|
34
|
-
"&[data-open]": {
|
|
35
|
-
opacity: 1
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
// Apply the animation only if the user has not requested reduced motion
|
|
39
|
-
"@media": {
|
|
40
|
-
"(prefers-reduced-motion: no-preference)": {
|
|
41
|
-
opacity: 0,
|
|
42
|
-
transition: "opacity 160ms"
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}, "dialog_backdrop"),
|
|
46
|
-
variants: {
|
|
47
|
-
size: {
|
|
48
|
-
small: style({
|
|
49
|
-
width: "400px",
|
|
50
|
-
maxWidth: "min(400px, 90%)"
|
|
51
|
-
}, "dialog_variants_size_small"),
|
|
52
|
-
medium: style({
|
|
53
|
-
width: "600px",
|
|
54
|
-
maxWidth: "min(600px, 90%)"
|
|
55
|
-
}, "dialog_variants_size_medium"),
|
|
56
|
-
large: style({
|
|
57
|
-
width: "800px",
|
|
58
|
-
maxWidth: "min(800px, 90%)"
|
|
59
|
-
}, "dialog_variants_size_large")
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
defaultVariants: {
|
|
63
|
-
size: "small"
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
endFileScope();
|
|
67
|
-
export {
|
|
68
|
-
dialog
|
|
69
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
|
-
const styles_lib_theme_makeComponentTheme_cjs = require("../../../lib/theme/makeComponentTheme.cjs");
|
|
4
|
-
fileScope.setFileScope("src/themes/momotaro/components/divider.css.ts", "@blockle/blocks");
|
|
5
|
-
const divider = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("divider", {
|
|
6
|
-
defaultVariants: {
|
|
7
|
-
color: "textLight"
|
|
8
|
-
}
|
|
9
|
-
});
|
|
10
|
-
fileScope.endFileScope();
|
|
11
|
-
exports.divider = divider;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
-
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.mjs";
|
|
3
|
-
setFileScope("src/themes/momotaro/components/divider.css.ts", "@blockle/blocks");
|
|
4
|
-
const divider = makeComponentTheme("divider", {
|
|
5
|
-
defaultVariants: {
|
|
6
|
-
color: "textLight"
|
|
7
|
-
}
|
|
8
|
-
});
|
|
9
|
-
endFileScope();
|
|
10
|
-
export {
|
|
11
|
-
divider
|
|
12
|
-
};
|