@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,54 +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
|
-
fileScope.setFileScope("src/themes/momotaro/components/dropdown.css.ts", "@blockle/blocks");
|
|
6
|
-
const dropdown = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("dropdown", {
|
|
7
|
-
base: styles_lib_css_style_style_cjs.style({
|
|
8
|
-
backgroundColor: "white",
|
|
9
|
-
borderRadius: "small",
|
|
10
|
-
boxShadow: "medium",
|
|
11
|
-
padding: "medium",
|
|
12
|
-
vars: {
|
|
13
|
-
"--spacing": "0.5rem"
|
|
14
|
-
},
|
|
15
|
-
selectors: {
|
|
16
|
-
"&[data-open]": {
|
|
17
|
-
transform: "translate(0, 0)",
|
|
18
|
-
opacity: 1
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
// Apply the animation only if the user has not requested reduced motion
|
|
22
|
-
"@media": {
|
|
23
|
-
"(prefers-reduced-motion: no-preference)": {
|
|
24
|
-
// transform: 'scale(0.9)',
|
|
25
|
-
transform: "translateY(var(--spacing))",
|
|
26
|
-
transition: "opacity 80ms linear, transform 80ms",
|
|
27
|
-
opacity: 0
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}),
|
|
31
|
-
variants: {
|
|
32
|
-
variant: {
|
|
33
|
-
solid: styles_lib_css_style_style_cjs.style({
|
|
34
|
-
backgroundColor: "white",
|
|
35
|
-
border: "none",
|
|
36
|
-
boxShadow: "medium",
|
|
37
|
-
color: "black",
|
|
38
|
-
padding: "medium"
|
|
39
|
-
}),
|
|
40
|
-
outline: styles_lib_css_style_style_cjs.style({
|
|
41
|
-
backgroundColor: "transparent",
|
|
42
|
-
border: "1px solid black",
|
|
43
|
-
boxShadow: "none",
|
|
44
|
-
color: "black",
|
|
45
|
-
padding: "medium"
|
|
46
|
-
})
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
defaultVariants: {
|
|
50
|
-
variant: "solid"
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
fileScope.endFileScope();
|
|
54
|
-
exports.dropdown = dropdown;
|
|
@@ -1,55 +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
|
-
setFileScope("src/themes/momotaro/components/dropdown.css.ts", "@blockle/blocks");
|
|
5
|
-
const dropdown = makeComponentTheme("dropdown", {
|
|
6
|
-
base: style({
|
|
7
|
-
backgroundColor: "white",
|
|
8
|
-
borderRadius: "small",
|
|
9
|
-
boxShadow: "medium",
|
|
10
|
-
padding: "medium",
|
|
11
|
-
vars: {
|
|
12
|
-
"--spacing": "0.5rem"
|
|
13
|
-
},
|
|
14
|
-
selectors: {
|
|
15
|
-
"&[data-open]": {
|
|
16
|
-
transform: "translate(0, 0)",
|
|
17
|
-
opacity: 1
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
// Apply the animation only if the user has not requested reduced motion
|
|
21
|
-
"@media": {
|
|
22
|
-
"(prefers-reduced-motion: no-preference)": {
|
|
23
|
-
// transform: 'scale(0.9)',
|
|
24
|
-
transform: "translateY(var(--spacing))",
|
|
25
|
-
transition: "opacity 80ms linear, transform 80ms",
|
|
26
|
-
opacity: 0
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}),
|
|
30
|
-
variants: {
|
|
31
|
-
variant: {
|
|
32
|
-
solid: style({
|
|
33
|
-
backgroundColor: "white",
|
|
34
|
-
border: "none",
|
|
35
|
-
boxShadow: "medium",
|
|
36
|
-
color: "black",
|
|
37
|
-
padding: "medium"
|
|
38
|
-
}),
|
|
39
|
-
outline: style({
|
|
40
|
-
backgroundColor: "transparent",
|
|
41
|
-
border: "1px solid black",
|
|
42
|
-
boxShadow: "none",
|
|
43
|
-
color: "black",
|
|
44
|
-
padding: "medium"
|
|
45
|
-
})
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
defaultVariants: {
|
|
49
|
-
variant: "solid"
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
endFileScope();
|
|
53
|
-
export {
|
|
54
|
-
dropdown
|
|
55
|
-
};
|
|
@@ -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_vars_css_cjs = require("../../../lib/theme/vars.css.cjs");
|
|
5
|
-
fileScope.setFileScope("src/themes/momotaro/components/helpers.css.ts", "@blockle/blocks");
|
|
6
|
-
const focusRingColor = css.createVar("focusRingColor");
|
|
7
|
-
const focusable = css.style({
|
|
8
|
-
"@media": {
|
|
9
|
-
"(prefers-reduced-motion: no-preference)": {
|
|
10
|
-
transition: `box-shadow ${styles_lib_theme_vars_css_cjs.vars.transition.fast}`
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
":focus-visible": {
|
|
14
|
-
outline: "2px solid transparent",
|
|
15
|
-
outlineOffset: "2px",
|
|
16
|
-
boxShadow: `0 0 1px 2px ${css.fallbackVar(focusRingColor, "#AF8EFF")}`
|
|
17
|
-
},
|
|
18
|
-
selectors: {
|
|
19
|
-
"&:disabled, &[disabled]": {
|
|
20
|
-
opacity: 0.5,
|
|
21
|
-
cursor: "auto",
|
|
22
|
-
pointerEvents: "none"
|
|
23
|
-
},
|
|
24
|
-
"&:has(input:focus-visible)": {
|
|
25
|
-
outline: "2px solid transparent",
|
|
26
|
-
outlineOffset: "2px",
|
|
27
|
-
boxShadow: styles_lib_theme_vars_css_cjs.vars.focus.boxShadow
|
|
28
|
-
},
|
|
29
|
-
"&:has(input:disabled)": {
|
|
30
|
-
opacity: 0.5,
|
|
31
|
-
cursor: "auto"
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}, "focusable");
|
|
35
|
-
const clickable = css.style([focusable, {
|
|
36
|
-
":active": {
|
|
37
|
-
transform: "scale(0.975)"
|
|
38
|
-
}
|
|
39
|
-
}], "clickable");
|
|
40
|
-
fileScope.endFileScope();
|
|
41
|
-
exports.clickable = clickable;
|
|
42
|
-
exports.focusRingColor = focusRingColor;
|
|
43
|
-
exports.focusable = focusable;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
-
import { createVar, style, fallbackVar } from "@vanilla-extract/css";
|
|
3
|
-
import { vars } from "../../../lib/theme/vars.css.mjs";
|
|
4
|
-
setFileScope("src/themes/momotaro/components/helpers.css.ts", "@blockle/blocks");
|
|
5
|
-
const focusRingColor = createVar("focusRingColor");
|
|
6
|
-
const focusable = style({
|
|
7
|
-
"@media": {
|
|
8
|
-
"(prefers-reduced-motion: no-preference)": {
|
|
9
|
-
transition: `box-shadow ${vars.transition.fast}`
|
|
10
|
-
}
|
|
11
|
-
},
|
|
12
|
-
":focus-visible": {
|
|
13
|
-
outline: "2px solid transparent",
|
|
14
|
-
outlineOffset: "2px",
|
|
15
|
-
boxShadow: `0 0 1px 2px ${fallbackVar(focusRingColor, "#AF8EFF")}`
|
|
16
|
-
},
|
|
17
|
-
selectors: {
|
|
18
|
-
"&:disabled, &[disabled]": {
|
|
19
|
-
opacity: 0.5,
|
|
20
|
-
cursor: "auto",
|
|
21
|
-
pointerEvents: "none"
|
|
22
|
-
},
|
|
23
|
-
"&:has(input:focus-visible)": {
|
|
24
|
-
outline: "2px solid transparent",
|
|
25
|
-
outlineOffset: "2px",
|
|
26
|
-
boxShadow: vars.focus.boxShadow
|
|
27
|
-
},
|
|
28
|
-
"&:has(input:disabled)": {
|
|
29
|
-
opacity: 0.5,
|
|
30
|
-
cursor: "auto"
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}, "focusable");
|
|
34
|
-
const clickable = style([focusable, {
|
|
35
|
-
":active": {
|
|
36
|
-
transform: "scale(0.975)"
|
|
37
|
-
}
|
|
38
|
-
}], "clickable");
|
|
39
|
-
endFileScope();
|
|
40
|
-
export {
|
|
41
|
-
clickable,
|
|
42
|
-
focusRingColor,
|
|
43
|
-
focusable
|
|
44
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const styles_themes_momotaro_components_button_css_cjs = require("./button.css.cjs");
|
|
3
|
-
const styles_themes_momotaro_components_checkbox_css_cjs = require("./checkbox.css.cjs");
|
|
4
|
-
const styles_themes_momotaro_components_dialog_css_cjs = require("./dialog.css.cjs");
|
|
5
|
-
const styles_themes_momotaro_components_divider_css_cjs = require("./divider.css.cjs");
|
|
6
|
-
const styles_themes_momotaro_components_dropdown_css_cjs = require("./dropdown.css.cjs");
|
|
7
|
-
const styles_themes_momotaro_components_input_css_cjs = require("./input.css.cjs");
|
|
8
|
-
const styles_themes_momotaro_components_label_css_cjs = require("./label.css.cjs");
|
|
9
|
-
const styles_themes_momotaro_components_link_css_cjs = require("./link.css.cjs");
|
|
10
|
-
const styles_themes_momotaro_components_progress_css_cjs = require("./progress.css.cjs");
|
|
11
|
-
const styles_themes_momotaro_components_radio_css_cjs = require("./radio.css.cjs");
|
|
12
|
-
const styles_themes_momotaro_components_select_css_cjs = require("./select.css.cjs");
|
|
13
|
-
const styles_themes_momotaro_components_slider_css_cjs = require("./slider.css.cjs");
|
|
14
|
-
const styles_themes_momotaro_components_spinner_css_cjs = require("./spinner.css.cjs");
|
|
15
|
-
const styles_themes_momotaro_components_switch_css_cjs = require("./switch.css.cjs");
|
|
16
|
-
const components = {
|
|
17
|
-
button: styles_themes_momotaro_components_button_css_cjs.button,
|
|
18
|
-
checkbox: styles_themes_momotaro_components_checkbox_css_cjs.checkbox,
|
|
19
|
-
dialog: styles_themes_momotaro_components_dialog_css_cjs.dialog,
|
|
20
|
-
divider: styles_themes_momotaro_components_divider_css_cjs.divider,
|
|
21
|
-
dropdown: styles_themes_momotaro_components_dropdown_css_cjs.dropdown,
|
|
22
|
-
input: styles_themes_momotaro_components_input_css_cjs.input,
|
|
23
|
-
label: styles_themes_momotaro_components_label_css_cjs.label,
|
|
24
|
-
link: styles_themes_momotaro_components_link_css_cjs.link,
|
|
25
|
-
progress: styles_themes_momotaro_components_progress_css_cjs.progress,
|
|
26
|
-
radio: styles_themes_momotaro_components_radio_css_cjs.radio,
|
|
27
|
-
select: styles_themes_momotaro_components_select_css_cjs.select,
|
|
28
|
-
spinner: styles_themes_momotaro_components_spinner_css_cjs.spinner,
|
|
29
|
-
switch: styles_themes_momotaro_components_switch_css_cjs.switchTheme,
|
|
30
|
-
slider: styles_themes_momotaro_components_slider_css_cjs.slider
|
|
31
|
-
};
|
|
32
|
-
exports.components = components;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { button } from "./button.css.mjs";
|
|
2
|
-
import { checkbox } from "./checkbox.css.mjs";
|
|
3
|
-
import { dialog } from "./dialog.css.mjs";
|
|
4
|
-
import { divider } from "./divider.css.mjs";
|
|
5
|
-
import { dropdown } from "./dropdown.css.mjs";
|
|
6
|
-
import { input } from "./input.css.mjs";
|
|
7
|
-
import { label } from "./label.css.mjs";
|
|
8
|
-
import { link } from "./link.css.mjs";
|
|
9
|
-
import { progress } from "./progress.css.mjs";
|
|
10
|
-
import { radio } from "./radio.css.mjs";
|
|
11
|
-
import { select } from "./select.css.mjs";
|
|
12
|
-
import { slider } from "./slider.css.mjs";
|
|
13
|
-
import { spinner } from "./spinner.css.mjs";
|
|
14
|
-
import { switchTheme } from "./switch.css.mjs";
|
|
15
|
-
const components = {
|
|
16
|
-
button,
|
|
17
|
-
checkbox,
|
|
18
|
-
dialog,
|
|
19
|
-
divider,
|
|
20
|
-
dropdown,
|
|
21
|
-
input,
|
|
22
|
-
label,
|
|
23
|
-
link,
|
|
24
|
-
progress,
|
|
25
|
-
radio,
|
|
26
|
-
select,
|
|
27
|
-
spinner,
|
|
28
|
-
switch: switchTheme,
|
|
29
|
-
slider
|
|
30
|
-
};
|
|
31
|
-
export {
|
|
32
|
-
components
|
|
33
|
-
};
|
|
@@ -1,41 +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_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;
|
|
@@ -1,42 +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 { 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
|
-
};
|
|
@@ -1,33 +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
|
-
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;
|
|
@@ -1,34 +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
|
-
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
|
-
};
|
|
@@ -1,47 +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_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;
|
|
@@ -1,48 +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 { 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
|
-
};
|
|
@@ -1,55 +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_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;
|
|
@@ -1,56 +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
|
-
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
|
-
};
|