@blockle/blocks 0.11.0 → 0.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +10 -42
- package/dist/index.mjs +4 -36
- package/dist/momotaro.chunk.d.ts +266 -266
- package/dist/reset.css.cjs +0 -2
- package/dist/reset.css.mjs +0 -2
- package/dist/styles/components/display/Divider/divider.css.cjs +10 -3
- package/dist/styles/components/display/Divider/divider.css.mjs +10 -3
- package/dist/styles/components/form/Button/Button.css.cjs +10 -3
- package/dist/styles/components/form/Button/Button.css.mjs +10 -3
- package/dist/styles/components/form/Checkbox/checkbox.css.cjs +24 -5
- package/dist/styles/components/form/Checkbox/checkbox.css.mjs +24 -5
- package/dist/styles/components/form/Input/input.css.cjs +14 -3
- package/dist/styles/components/form/Input/input.css.mjs +14 -3
- package/dist/styles/components/form/Radio/radio.css.cjs +24 -5
- package/dist/styles/components/form/Radio/radio.css.mjs +24 -5
- package/dist/styles/components/form/Select/select.css.cjs +30 -5
- package/dist/styles/components/form/Select/select.css.mjs +30 -5
- package/dist/styles/components/form/Slider/slider.css.cjs +64 -7
- package/dist/styles/components/form/Slider/slider.css.mjs +64 -7
- package/dist/styles/components/form/Switch/switch.css.cjs +20 -4
- package/dist/styles/components/form/Switch/switch.css.mjs +20 -4
- package/dist/styles/components/overlay/Dialog/dialog.css.cjs +18 -3
- package/dist/styles/components/overlay/Dialog/dialog.css.mjs +18 -3
- package/dist/styles/components/typography/Heading/heading.css.cjs +10 -3
- package/dist/styles/components/typography/Heading/heading.css.mjs +10 -3
- package/dist/styles/components/typography/Text/text.css.cjs +10 -3
- package/dist/styles/components/typography/Text/text.css.mjs +10 -3
- package/dist/styles/lib/css/atoms/atomicProperties.cjs +83 -0
- package/dist/styles/lib/css/atoms/atomicProperties.mjs +84 -0
- package/dist/styles/lib/css/atoms/breakpoints.cjs +11 -0
- package/dist/styles/lib/css/atoms/breakpoints.mjs +12 -0
- package/dist/styles/lib/css/atoms/sprinkles.css.cjs +31 -2088
- package/dist/styles/lib/css/atoms/sprinkles.css.mjs +31 -2088
- package/dist/styles/lib/css/layers/layers.css.cjs +7 -0
- package/dist/styles/lib/css/layers/layers.css.mjs +8 -0
- package/dist/styles/lib/css/style/style.cjs +28 -0
- package/dist/styles/lib/css/style/style.mjs +29 -0
- package/dist/styles/lib/theme/makeComponentTheme.cjs +5 -0
- package/dist/styles/lib/theme/makeComponentTheme.mjs +6 -0
- package/dist/styles/lib/theme/makeTheme.cjs +2 -18
- package/dist/styles/lib/theme/makeTheme.mjs +1 -17
- package/dist/styles/lib/theme/makeVanillaTheme.cjs +19 -0
- package/dist/styles/lib/theme/makeVanillaTheme.mjs +20 -0
- package/dist/styles/lib/theme/tokens.cjs +81 -0
- package/dist/styles/lib/theme/tokens.mjs +82 -0
- package/dist/styles/lib/theme/vars.css.cjs +4 -76
- package/dist/styles/lib/theme/vars.css.mjs +4 -76
- package/dist/styles/themes/momotaro/components/button.css.cjs +103 -0
- package/dist/styles/themes/momotaro/components/button.css.mjs +104 -0
- package/dist/styles/themes/momotaro/components/checkbox.css.cjs +59 -0
- package/dist/styles/themes/momotaro/components/checkbox.css.mjs +60 -0
- package/dist/styles/themes/momotaro/components/dialog.css.cjs +68 -0
- package/dist/styles/themes/momotaro/components/dialog.css.mjs +69 -0
- package/dist/styles/themes/momotaro/components/divider.css.cjs +11 -0
- package/dist/styles/themes/momotaro/components/divider.css.mjs +12 -0
- package/dist/styles/themes/momotaro/components/dropdown.css.cjs +53 -0
- package/dist/styles/themes/momotaro/components/dropdown.css.mjs +54 -0
- package/dist/styles/themes/momotaro/components/helpers.css.cjs +43 -0
- package/dist/styles/themes/momotaro/components/helpers.css.mjs +44 -0
- package/dist/styles/themes/momotaro/components/index.cjs +32 -0
- package/dist/styles/themes/momotaro/components/index.mjs +33 -0
- package/dist/styles/themes/momotaro/components/input.css.cjs +41 -0
- package/dist/styles/themes/momotaro/components/input.css.mjs +42 -0
- package/dist/styles/themes/momotaro/components/label.css.cjs +33 -0
- package/dist/styles/themes/momotaro/components/label.css.mjs +34 -0
- package/dist/styles/themes/momotaro/components/link.css.cjs +47 -0
- package/dist/styles/themes/momotaro/components/link.css.mjs +48 -0
- package/dist/styles/themes/momotaro/components/progress.css.cjs +55 -0
- package/dist/styles/themes/momotaro/components/progress.css.mjs +56 -0
- package/dist/styles/themes/momotaro/components/radio.css.cjs +60 -0
- package/dist/styles/themes/momotaro/components/radio.css.mjs +61 -0
- package/dist/styles/themes/momotaro/components/select.css.cjs +44 -0
- package/dist/styles/themes/momotaro/components/select.css.mjs +45 -0
- package/dist/styles/themes/momotaro/components/slider.css.cjs +65 -0
- package/dist/styles/themes/momotaro/components/slider.css.mjs +66 -0
- package/dist/styles/themes/momotaro/components/spinner.css.cjs +43 -0
- package/dist/styles/themes/momotaro/components/spinner.css.mjs +44 -0
- package/dist/styles/themes/momotaro/components/switch.css.cjs +58 -0
- package/dist/styles/themes/momotaro/components/switch.css.mjs +59 -0
- package/dist/styles/themes/momotaro/components/transitions.cjs +3 -0
- package/dist/styles/themes/momotaro/components/transitions.mjs +4 -0
- package/dist/styles/themes/momotaro/momotaro.css.cjs +7 -191
- package/dist/styles/themes/momotaro/momotaro.css.mjs +7 -191
- package/dist/styles/themes/momotaro/tokens.css.cjs +84 -0
- package/dist/styles/themes/momotaro/tokens.css.mjs +85 -0
- package/package.json +1 -1
- package/dist/style.css +0 -2851
- package/dist/styles/components/form/Button/Button.css.ts.vanilla.cjs +0 -1
- package/dist/styles/components/form/Button/Button.css.ts.vanilla.mjs +0 -1
- package/dist/styles/components/form/Checkbox/checkbox.css.ts.vanilla.cjs +0 -1
- package/dist/styles/components/form/Checkbox/checkbox.css.ts.vanilla.mjs +0 -1
- package/dist/styles/components/form/Input/input.css.ts.vanilla.cjs +0 -1
- package/dist/styles/components/form/Input/input.css.ts.vanilla.mjs +0 -1
- package/dist/styles/components/form/Radio/radio.css.ts.vanilla.cjs +0 -1
- package/dist/styles/components/form/Radio/radio.css.ts.vanilla.mjs +0 -1
- package/dist/styles/components/form/Select/select.css.ts.vanilla.cjs +0 -1
- package/dist/styles/components/form/Select/select.css.ts.vanilla.mjs +0 -1
- package/dist/styles/components/form/Slider/slider.css.ts.vanilla.cjs +0 -1
- package/dist/styles/components/form/Slider/slider.css.ts.vanilla.mjs +0 -1
- package/dist/styles/components/form/Switch/switch.css.ts.vanilla.cjs +0 -1
- package/dist/styles/components/form/Switch/switch.css.ts.vanilla.mjs +0 -1
- package/dist/styles/components/overlay/Dialog/dialog.css.ts.vanilla.cjs +0 -1
- package/dist/styles/components/overlay/Dialog/dialog.css.ts.vanilla.mjs +0 -1
- package/dist/styles/components/typography/Heading/heading.css.ts.vanilla.cjs +0 -1
- package/dist/styles/components/typography/Heading/heading.css.ts.vanilla.mjs +0 -1
- package/dist/styles/components/typography/Text/text.css.ts.vanilla.cjs +0 -1
- package/dist/styles/components/typography/Text/text.css.ts.vanilla.mjs +0 -1
- package/dist/styles/entries/reset.css.ts.vanilla.cjs +0 -1
- package/dist/styles/entries/reset.css.ts.vanilla.mjs +0 -1
- package/dist/styles/lib/css/atoms/sprinkles.css.ts.vanilla.cjs +0 -1
- package/dist/styles/lib/css/atoms/sprinkles.css.ts.vanilla.mjs +0 -1
- package/dist/styles/lib/css/layers/layers.css.ts.vanilla.cjs +0 -1
- package/dist/styles/lib/css/layers/layers.css.ts.vanilla.mjs +0 -1
- package/dist/styles/lib/css/reset/reset.css.ts.vanilla.cjs +0 -1
- package/dist/styles/lib/css/reset/reset.css.ts.vanilla.mjs +0 -1
- package/dist/styles/lib/theme/vars.css.ts.vanilla.cjs +0 -1
- package/dist/styles/lib/theme/vars.css.ts.vanilla.mjs +0 -1
- package/dist/styles/themes/momotaro/components/button.css.ts.vanilla.cjs +0 -1
- package/dist/styles/themes/momotaro/components/button.css.ts.vanilla.mjs +0 -1
- package/dist/styles/themes/momotaro/components/checkbox.css.ts.vanilla.cjs +0 -1
- package/dist/styles/themes/momotaro/components/checkbox.css.ts.vanilla.mjs +0 -1
- package/dist/styles/themes/momotaro/components/dialog.css.ts.vanilla.cjs +0 -1
- package/dist/styles/themes/momotaro/components/dialog.css.ts.vanilla.mjs +0 -1
- package/dist/styles/themes/momotaro/components/divider.css.ts.vanilla.cjs +0 -1
- package/dist/styles/themes/momotaro/components/divider.css.ts.vanilla.mjs +0 -1
- package/dist/styles/themes/momotaro/components/dropdown.css.ts.vanilla.cjs +0 -1
- package/dist/styles/themes/momotaro/components/dropdown.css.ts.vanilla.mjs +0 -1
- package/dist/styles/themes/momotaro/components/helpers.css.ts.vanilla.cjs +0 -1
- package/dist/styles/themes/momotaro/components/helpers.css.ts.vanilla.mjs +0 -1
- package/dist/styles/themes/momotaro/components/input.css.ts.vanilla.cjs +0 -1
- package/dist/styles/themes/momotaro/components/input.css.ts.vanilla.mjs +0 -1
- package/dist/styles/themes/momotaro/components/label.css.ts.vanilla.cjs +0 -1
- package/dist/styles/themes/momotaro/components/label.css.ts.vanilla.mjs +0 -1
- package/dist/styles/themes/momotaro/components/link.css.ts.vanilla.cjs +0 -1
- package/dist/styles/themes/momotaro/components/link.css.ts.vanilla.mjs +0 -1
- package/dist/styles/themes/momotaro/components/progress.css.ts.vanilla.cjs +0 -1
- package/dist/styles/themes/momotaro/components/progress.css.ts.vanilla.mjs +0 -1
- package/dist/styles/themes/momotaro/components/radio.css.ts.vanilla.cjs +0 -1
- package/dist/styles/themes/momotaro/components/radio.css.ts.vanilla.mjs +0 -1
- package/dist/styles/themes/momotaro/components/select.css.ts.vanilla.cjs +0 -1
- package/dist/styles/themes/momotaro/components/select.css.ts.vanilla.mjs +0 -1
- package/dist/styles/themes/momotaro/components/slider.css.ts.vanilla.cjs +0 -1
- package/dist/styles/themes/momotaro/components/slider.css.ts.vanilla.mjs +0 -1
- package/dist/styles/themes/momotaro/components/spinner.css.ts.vanilla.cjs +0 -1
- package/dist/styles/themes/momotaro/components/spinner.css.ts.vanilla.mjs +0 -1
- package/dist/styles/themes/momotaro/components/switch.css.ts.vanilla.cjs +0 -1
- package/dist/styles/themes/momotaro/components/switch.css.ts.vanilla.mjs +0 -1
- package/dist/styles/themes/momotaro/momotaro.css.ts.vanilla.cjs +0 -1
- package/dist/styles/themes/momotaro/momotaro.css.ts.vanilla.mjs +0 -1
- package/dist/styles/themes/momotaro/tokens.css.ts.vanilla.cjs +0 -1
- package/dist/styles/themes/momotaro/tokens.css.ts.vanilla.mjs +0 -1
- /package/dist/styles/{components/display/Divider/divider.css.ts.vanilla.cjs → lib/css/reset/reset.css.cjs} +0 -0
- /package/dist/styles/{components/display/Divider/divider.css.ts.vanilla.mjs → lib/css/reset/reset.css.mjs} +0 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
|
+
fileScope.setFileScope("src/themes/momotaro/tokens.css.ts", "@blockle/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: "#7CF5CD",
|
|
26
|
+
secondary: "#7FE3F0",
|
|
27
|
+
secondaryDark: "#68C6EF",
|
|
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;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
+
setFileScope("src/themes/momotaro/tokens.css.ts", "@blockle/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: "#7CF5CD",
|
|
25
|
+
secondary: "#7FE3F0",
|
|
26
|
+
secondaryDark: "#68C6EF",
|
|
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
|
+
};
|