@blockle/blocks 0.8.8 → 0.8.9
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 +77 -736
- package/dist/index.d.mts +1 -0
- package/dist/index.mjs +56 -714
- package/dist/momotaro.chunk.d.ts +423 -410
- package/dist/reset.css.d.mts +2 -0
- package/dist/reset.css.d.ts +1 -1
- package/dist/styles/components/display/Divider/Divider.cjs +226 -0
- package/dist/styles/components/display/Divider/Divider.mjs +227 -0
- package/dist/styles/components/{Divider → display/Divider}/divider.css.cjs +2 -2
- package/dist/styles/components/{Divider → display/Divider}/divider.css.mjs +2 -2
- package/dist/styles/components/form/Button/Button.cjs +55 -0
- package/dist/styles/components/{Button → form/Button}/Button.css.cjs +2 -2
- package/dist/styles/components/{Button → form/Button}/Button.css.mjs +2 -2
- package/dist/styles/components/form/Button/Button.mjs +56 -0
- package/dist/styles/components/form/Checkbox/Checkbox.cjs +47 -0
- package/dist/styles/components/form/Checkbox/Checkbox.mjs +48 -0
- package/dist/styles/components/{Checkbox → form/Checkbox}/checkbox.css.cjs +2 -2
- package/dist/styles/components/{Checkbox → form/Checkbox}/checkbox.css.mjs +2 -2
- package/dist/styles/components/form/Input/Input.cjs +27 -0
- package/dist/styles/components/form/Input/Input.mjs +28 -0
- package/dist/styles/components/{Input → form/Input}/input.css.cjs +2 -2
- package/dist/styles/components/{Input → form/Input}/input.css.mjs +2 -2
- package/dist/styles/components/form/Radio/Radio.cjs +23 -0
- package/dist/styles/components/form/Radio/Radio.mjs +24 -0
- package/dist/styles/components/{Radio → form/Radio}/radio.css.cjs +2 -2
- package/dist/styles/components/{Radio → form/Radio}/radio.css.mjs +2 -2
- package/dist/styles/components/form/Switch/Switch.cjs +61 -0
- package/dist/styles/components/form/Switch/Switch.mjs +62 -0
- package/dist/styles/components/{Switch → form/Switch}/switch.css.cjs +2 -2
- package/dist/styles/components/{Switch → form/Switch}/switch.css.mjs +2 -2
- package/dist/styles/components/other/BlocksProvider/BlocksProvider.cjs +20 -0
- package/dist/styles/components/other/BlocksProvider/BlocksProvider.mjs +21 -0
- package/dist/styles/components/overlay/Dialog/Dialog.cjs +245 -0
- package/dist/styles/components/overlay/Dialog/Dialog.mjs +246 -0
- package/dist/styles/components/{Dialog → overlay/Dialog}/dialog.css.cjs +2 -2
- package/dist/styles/components/{Dialog → overlay/Dialog}/dialog.css.mjs +2 -2
- package/dist/styles/components/typography/Heading/Heading.cjs +14 -0
- package/dist/styles/components/typography/Heading/Heading.mjs +15 -0
- package/dist/styles/components/{Heading → typography/Heading}/heading.css.cjs +2 -2
- package/dist/styles/components/{Heading → typography/Heading}/heading.css.mjs +2 -2
- package/dist/styles/components/typography/Text/Text.cjs +9 -0
- package/dist/styles/components/typography/Text/Text.mjs +10 -0
- package/dist/styles/components/{Text → typography/Text}/text.css.cjs +2 -2
- package/dist/styles/components/{Text → typography/Text}/text.css.mjs +2 -2
- package/dist/styles/lib/css/atoms/atoms.cjs +1 -0
- package/dist/styles/lib/css/atoms/atoms.mjs +1 -0
- package/dist/styles/lib/css/atoms/sprinkles.css.cjs +2 -6
- package/dist/styles/lib/css/atoms/sprinkles.css.mjs +2 -6
- package/dist/styles/lib/css/layers/layers.css.cjs +1 -1
- package/dist/styles/lib/css/layers/layers.css.mjs +1 -1
- package/dist/styles/lib/theme/vars.css.cjs +1 -1
- package/dist/styles/lib/theme/vars.css.mjs +1 -1
- package/dist/styles/lib/utils/atom-props.cjs +15 -0
- package/dist/styles/lib/utils/atom-props.mjs +16 -0
- package/dist/styles/themes/momotaro/components/button.css.cjs +1 -1
- package/dist/styles/themes/momotaro/components/button.css.mjs +1 -1
- package/dist/styles/themes/momotaro/components/checkbox.css.cjs +1 -1
- package/dist/styles/themes/momotaro/components/checkbox.css.mjs +1 -1
- package/dist/styles/themes/momotaro/components/dialog.css.cjs +1 -1
- package/dist/styles/themes/momotaro/components/dialog.css.mjs +1 -1
- package/dist/styles/themes/momotaro/components/divider.css.cjs +1 -1
- package/dist/styles/themes/momotaro/components/divider.css.mjs +1 -1
- package/dist/styles/themes/momotaro/components/dropdown.css.cjs +54 -0
- package/dist/styles/themes/momotaro/components/dropdown.css.mjs +55 -0
- package/dist/styles/themes/momotaro/components/helpers.css.cjs +1 -1
- package/dist/styles/themes/momotaro/components/helpers.css.mjs +1 -1
- package/dist/styles/themes/momotaro/components/index.cjs +2 -0
- package/dist/styles/themes/momotaro/components/index.mjs +2 -0
- package/dist/styles/themes/momotaro/components/input.css.cjs +1 -1
- package/dist/styles/themes/momotaro/components/input.css.mjs +1 -1
- package/dist/styles/themes/momotaro/components/label.css.cjs +1 -1
- package/dist/styles/themes/momotaro/components/label.css.mjs +1 -1
- package/dist/styles/themes/momotaro/components/link.css.cjs +1 -1
- package/dist/styles/themes/momotaro/components/link.css.mjs +1 -1
- package/dist/styles/themes/momotaro/components/progress.css.cjs +1 -1
- package/dist/styles/themes/momotaro/components/progress.css.mjs +1 -1
- package/dist/styles/themes/momotaro/components/radio.css.cjs +1 -1
- package/dist/styles/themes/momotaro/components/radio.css.mjs +1 -1
- package/dist/styles/themes/momotaro/components/spinner.css.cjs +1 -1
- package/dist/styles/themes/momotaro/components/spinner.css.mjs +1 -1
- package/dist/styles/themes/momotaro/components/switch.css.cjs +1 -1
- package/dist/styles/themes/momotaro/components/switch.css.mjs +1 -1
- package/dist/styles/themes/momotaro/index.cjs +1 -0
- package/dist/styles/themes/momotaro/index.mjs +1 -0
- package/dist/styles/themes/momotaro/momotaro.css.cjs +1 -1
- package/dist/styles/themes/momotaro/momotaro.css.mjs +1 -1
- package/dist/styles/themes/momotaro/tokens.css.cjs +1 -1
- package/dist/styles/themes/momotaro/tokens.css.mjs +1 -1
- package/dist/themes/momotaro.d.mts +1 -0
- package/package.json +47 -37
|
@@ -0,0 +1,55 @@
|
|
|
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", "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
|
+
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
3
|
const css = require("@vanilla-extract/css");
|
|
4
4
|
const styles_lib_theme_vars_css_cjs = require("../../../lib/theme/vars.css.cjs");
|
|
5
|
-
fileScope.setFileScope("src/themes/momotaro/components/helpers.css.ts
|
|
5
|
+
fileScope.setFileScope("src/themes/momotaro/components/helpers.css.ts", "blocks");
|
|
6
6
|
const focusRingColor = css.createVar("focusRingColor");
|
|
7
7
|
const focusable = css.style({
|
|
8
8
|
":focus-visible": {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
2
|
import { createVar, style, fallbackVar } from "@vanilla-extract/css";
|
|
3
3
|
import { vars } from "../../../lib/theme/vars.css.mjs";
|
|
4
|
-
setFileScope("src/themes/momotaro/components/helpers.css.ts
|
|
4
|
+
setFileScope("src/themes/momotaro/components/helpers.css.ts", "blocks");
|
|
5
5
|
const focusRingColor = createVar("focusRingColor");
|
|
6
6
|
const focusable = style({
|
|
7
7
|
":focus-visible": {
|
|
@@ -3,6 +3,7 @@ const styles_themes_momotaro_components_button_css_cjs = require("./button.css.c
|
|
|
3
3
|
const styles_themes_momotaro_components_checkbox_css_cjs = require("./checkbox.css.cjs");
|
|
4
4
|
const styles_themes_momotaro_components_dialog_css_cjs = require("./dialog.css.cjs");
|
|
5
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");
|
|
6
7
|
const styles_themes_momotaro_components_input_css_cjs = require("./input.css.cjs");
|
|
7
8
|
const styles_themes_momotaro_components_label_css_cjs = require("./label.css.cjs");
|
|
8
9
|
const styles_themes_momotaro_components_link_css_cjs = require("./link.css.cjs");
|
|
@@ -21,6 +22,7 @@ const components = {
|
|
|
21
22
|
progress: styles_themes_momotaro_components_progress_css_cjs.progress,
|
|
22
23
|
radio: styles_themes_momotaro_components_radio_css_cjs.radio,
|
|
23
24
|
spinner: styles_themes_momotaro_components_spinner_css_cjs.spinner,
|
|
25
|
+
dropdown: styles_themes_momotaro_components_dropdown_css_cjs.dropdown,
|
|
24
26
|
switch: styles_themes_momotaro_components_switch_css_cjs.switchTheme
|
|
25
27
|
};
|
|
26
28
|
exports.components = components;
|
|
@@ -2,6 +2,7 @@ import { button } from "./button.css.mjs";
|
|
|
2
2
|
import { checkbox } from "./checkbox.css.mjs";
|
|
3
3
|
import { dialog } from "./dialog.css.mjs";
|
|
4
4
|
import { divider } from "./divider.css.mjs";
|
|
5
|
+
import { dropdown } from "./dropdown.css.mjs";
|
|
5
6
|
import { input } from "./input.css.mjs";
|
|
6
7
|
import { label } from "./label.css.mjs";
|
|
7
8
|
import { link } from "./link.css.mjs";
|
|
@@ -20,6 +21,7 @@ const components = {
|
|
|
20
21
|
progress,
|
|
21
22
|
radio,
|
|
22
23
|
spinner,
|
|
24
|
+
dropdown,
|
|
23
25
|
switch: switchTheme
|
|
24
26
|
};
|
|
25
27
|
export {
|
|
@@ -4,7 +4,7 @@ const css = require("@vanilla-extract/css");
|
|
|
4
4
|
const styles_lib_theme_makeComponentTheme_cjs = require("../../../lib/theme/makeComponentTheme.cjs");
|
|
5
5
|
const styles_lib_theme_vars_css_cjs = require("../../../lib/theme/vars.css.cjs");
|
|
6
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
|
|
7
|
+
fileScope.setFileScope("src/themes/momotaro/components/input.css.ts", "blocks");
|
|
8
8
|
const input = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("input", {
|
|
9
9
|
input: css.style([styles_lib_css_atoms_sprinkles_css_cjs.atoms({
|
|
10
10
|
color: "text",
|
|
@@ -3,7 +3,7 @@ import { style } from "@vanilla-extract/css";
|
|
|
3
3
|
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.mjs";
|
|
4
4
|
import { vars } from "../../../lib/theme/vars.css.mjs";
|
|
5
5
|
import { atoms } from "../../../lib/css/atoms/sprinkles.css.mjs";
|
|
6
|
-
setFileScope("src/themes/momotaro/components/input.css.ts
|
|
6
|
+
setFileScope("src/themes/momotaro/components/input.css.ts", "blocks");
|
|
7
7
|
const input = makeComponentTheme("input", {
|
|
8
8
|
input: style([atoms({
|
|
9
9
|
color: "text",
|
|
@@ -3,7 +3,7 @@ const fileScope = require("@vanilla-extract/css/fileScope");
|
|
|
3
3
|
const css = require("@vanilla-extract/css");
|
|
4
4
|
const styles_lib_theme_makeComponentTheme_cjs = require("../../../lib/theme/makeComponentTheme.cjs");
|
|
5
5
|
const styles_lib_theme_vars_css_cjs = require("../../../lib/theme/vars.css.cjs");
|
|
6
|
-
fileScope.setFileScope("src/themes/momotaro/components/label.css.ts
|
|
6
|
+
fileScope.setFileScope("src/themes/momotaro/components/label.css.ts", "blocks");
|
|
7
7
|
const label = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("label", {
|
|
8
8
|
base: css.style({}, "label_base"),
|
|
9
9
|
variants: {
|
|
@@ -2,7 +2,7 @@ import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
|
2
2
|
import { style } from "@vanilla-extract/css";
|
|
3
3
|
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.mjs";
|
|
4
4
|
import { vars } from "../../../lib/theme/vars.css.mjs";
|
|
5
|
-
setFileScope("src/themes/momotaro/components/label.css.ts
|
|
5
|
+
setFileScope("src/themes/momotaro/components/label.css.ts", "blocks");
|
|
6
6
|
const label = makeComponentTheme("label", {
|
|
7
7
|
base: style({}, "label_base"),
|
|
8
8
|
variants: {
|
|
@@ -4,7 +4,7 @@ const css = require("@vanilla-extract/css");
|
|
|
4
4
|
const styles_lib_theme_makeComponentTheme_cjs = require("../../../lib/theme/makeComponentTheme.cjs");
|
|
5
5
|
const styles_themes_momotaro_components_helpers_css_cjs = require("./helpers.css.cjs");
|
|
6
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
|
|
7
|
+
fileScope.setFileScope("src/themes/momotaro/components/link.css.ts", "blocks");
|
|
8
8
|
const link = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("link", {
|
|
9
9
|
base: css.style([{
|
|
10
10
|
outline: "none",
|
|
@@ -3,7 +3,7 @@ import { style } from "@vanilla-extract/css";
|
|
|
3
3
|
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.mjs";
|
|
4
4
|
import { focusable } from "./helpers.css.mjs";
|
|
5
5
|
import { atoms } from "../../../lib/css/atoms/sprinkles.css.mjs";
|
|
6
|
-
setFileScope("src/themes/momotaro/components/link.css.ts
|
|
6
|
+
setFileScope("src/themes/momotaro/components/link.css.ts", "blocks");
|
|
7
7
|
const link = makeComponentTheme("link", {
|
|
8
8
|
base: style([{
|
|
9
9
|
outline: "none",
|
|
@@ -4,7 +4,7 @@ const css = require("@vanilla-extract/css");
|
|
|
4
4
|
const styles_lib_theme_makeComponentTheme_cjs = require("../../../lib/theme/makeComponentTheme.cjs");
|
|
5
5
|
const styles_lib_theme_vars_css_cjs = require("../../../lib/theme/vars.css.cjs");
|
|
6
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
|
|
7
|
+
fileScope.setFileScope("src/themes/momotaro/components/progress.css.ts", "blocks");
|
|
8
8
|
const indeterminateAnimation = css.keyframes({
|
|
9
9
|
"0%": {
|
|
10
10
|
transform: "translateX(-100%)"
|
|
@@ -3,7 +3,7 @@ import { keyframes, style } from "@vanilla-extract/css";
|
|
|
3
3
|
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.mjs";
|
|
4
4
|
import { vars } from "../../../lib/theme/vars.css.mjs";
|
|
5
5
|
import { atoms } from "../../../lib/css/atoms/sprinkles.css.mjs";
|
|
6
|
-
setFileScope("src/themes/momotaro/components/progress.css.ts
|
|
6
|
+
setFileScope("src/themes/momotaro/components/progress.css.ts", "blocks");
|
|
7
7
|
const indeterminateAnimation = keyframes({
|
|
8
8
|
"0%": {
|
|
9
9
|
transform: "translateX(-100%)"
|
|
@@ -6,7 +6,7 @@ const styles_lib_theme_vars_css_cjs = require("../../../lib/theme/vars.css.cjs")
|
|
|
6
6
|
const styles_themes_momotaro_components_helpers_css_cjs = require("./helpers.css.cjs");
|
|
7
7
|
const styles_themes_momotaro_components_transitions_cjs = require("./transitions.cjs");
|
|
8
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
|
|
9
|
+
fileScope.setFileScope("src/themes/momotaro/components/radio.css.ts", "blocks");
|
|
10
10
|
const radio = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("radio", {
|
|
11
11
|
base: css.style([{
|
|
12
12
|
display: "flex",
|
|
@@ -5,7 +5,7 @@ import { vars } from "../../../lib/theme/vars.css.mjs";
|
|
|
5
5
|
import { focusable } from "./helpers.css.mjs";
|
|
6
6
|
import { bounceOut } from "./transitions.mjs";
|
|
7
7
|
import { atoms } from "../../../lib/css/atoms/sprinkles.css.mjs";
|
|
8
|
-
setFileScope("src/themes/momotaro/components/radio.css.ts
|
|
8
|
+
setFileScope("src/themes/momotaro/components/radio.css.ts", "blocks");
|
|
9
9
|
const radio = makeComponentTheme("radio", {
|
|
10
10
|
base: style([{
|
|
11
11
|
display: "flex",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
3
|
const css = require("@vanilla-extract/css");
|
|
4
4
|
const styles_lib_theme_makeComponentTheme_cjs = require("../../../lib/theme/makeComponentTheme.cjs");
|
|
5
|
-
fileScope.setFileScope("src/themes/momotaro/components/spinner.css.ts
|
|
5
|
+
fileScope.setFileScope("src/themes/momotaro/components/spinner.css.ts", "blocks");
|
|
6
6
|
const spinAnimation = css.keyframes({
|
|
7
7
|
"0%": {
|
|
8
8
|
transform: "rotate(0deg)"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
2
|
import { keyframes, style } from "@vanilla-extract/css";
|
|
3
3
|
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.mjs";
|
|
4
|
-
setFileScope("src/themes/momotaro/components/spinner.css.ts
|
|
4
|
+
setFileScope("src/themes/momotaro/components/spinner.css.ts", "blocks");
|
|
5
5
|
const spinAnimation = keyframes({
|
|
6
6
|
"0%": {
|
|
7
7
|
transform: "rotate(0deg)"
|
|
@@ -5,7 +5,7 @@ const styles_lib_css_style_style_cjs = require("../../../lib/css/style/style.cjs
|
|
|
5
5
|
const styles_lib_theme_makeComponentTheme_cjs = require("../../../lib/theme/makeComponentTheme.cjs");
|
|
6
6
|
const styles_lib_theme_vars_css_cjs = require("../../../lib/theme/vars.css.cjs");
|
|
7
7
|
const styles_themes_momotaro_components_helpers_css_cjs = require("./helpers.css.cjs");
|
|
8
|
-
fileScope.setFileScope("src/themes/momotaro/components/switch.css.ts
|
|
8
|
+
fileScope.setFileScope("src/themes/momotaro/components/switch.css.ts", "blocks");
|
|
9
9
|
const activeScaleFactor = css.createVar("activeScaleFactor");
|
|
10
10
|
const switchTheme = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("switch", {
|
|
11
11
|
base: styles_lib_css_style_style_cjs.style([{
|
|
@@ -4,7 +4,7 @@ import { style } from "../../../lib/css/style/style.mjs";
|
|
|
4
4
|
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.mjs";
|
|
5
5
|
import { vars } from "../../../lib/theme/vars.css.mjs";
|
|
6
6
|
import { focusable } from "./helpers.css.mjs";
|
|
7
|
-
setFileScope("src/themes/momotaro/components/switch.css.ts
|
|
7
|
+
setFileScope("src/themes/momotaro/components/switch.css.ts", "blocks");
|
|
8
8
|
const activeScaleFactor = createVar("activeScaleFactor");
|
|
9
9
|
const switchTheme = makeComponentTheme("switch", {
|
|
10
10
|
base: style([{
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -3,7 +3,7 @@ const fileScope = require("@vanilla-extract/css/fileScope");
|
|
|
3
3
|
const styles_lib_theme_makeTheme_cjs = require("../../lib/theme/makeTheme.cjs");
|
|
4
4
|
const styles_themes_momotaro_components_index_cjs = require("./components/index.cjs");
|
|
5
5
|
const styles_themes_momotaro_tokens_css_cjs = require("./tokens.css.cjs");
|
|
6
|
-
fileScope.setFileScope("src/themes/momotaro/momotaro.css.ts
|
|
6
|
+
fileScope.setFileScope("src/themes/momotaro/momotaro.css.ts", "blocks");
|
|
7
7
|
const momotaro = styles_lib_theme_makeTheme_cjs.makeTheme({
|
|
8
8
|
name: "momotaro",
|
|
9
9
|
tokens: styles_themes_momotaro_tokens_css_cjs.tokens,
|
|
@@ -2,7 +2,7 @@ import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
|
2
2
|
import { makeTheme } from "../../lib/theme/makeTheme.mjs";
|
|
3
3
|
import { components } from "./components/index.mjs";
|
|
4
4
|
import { tokens } from "./tokens.css.mjs";
|
|
5
|
-
setFileScope("src/themes/momotaro/momotaro.css.ts
|
|
5
|
+
setFileScope("src/themes/momotaro/momotaro.css.ts", "blocks");
|
|
6
6
|
const momotaro = makeTheme({
|
|
7
7
|
name: "momotaro",
|
|
8
8
|
tokens,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
|
-
fileScope.setFileScope("src/themes/momotaro/tokens.css.ts
|
|
3
|
+
fileScope.setFileScope("src/themes/momotaro/tokens.css.ts", "blocks");
|
|
4
4
|
const tokens = {
|
|
5
5
|
border: {
|
|
6
6
|
radius: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { momotaro } from '../momotaro.chunk.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blockle/blocks",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.9",
|
|
4
4
|
"description": "Blocks design system",
|
|
5
5
|
"repository": "git@github.com:Blockle/blocks.git",
|
|
6
6
|
"license": "MIT",
|
|
@@ -11,17 +11,26 @@
|
|
|
11
11
|
],
|
|
12
12
|
"exports": {
|
|
13
13
|
".": {
|
|
14
|
-
"types":
|
|
14
|
+
"types": {
|
|
15
|
+
"import": "./dist/index.d.mts",
|
|
16
|
+
"require": "./dist/index.d.ts"
|
|
17
|
+
},
|
|
15
18
|
"import": "./dist/index.mjs",
|
|
16
19
|
"require": "./dist/index.cjs"
|
|
17
20
|
},
|
|
18
21
|
"./reset.css": {
|
|
19
|
-
"types":
|
|
22
|
+
"types": {
|
|
23
|
+
"import": "./dist/reset.css.d.mts",
|
|
24
|
+
"require": "./dist/reset.css.d.ts"
|
|
25
|
+
},
|
|
20
26
|
"import": "./dist/reset.css.mjs",
|
|
21
27
|
"require": "./dist/reset.css.cjs"
|
|
22
28
|
},
|
|
23
29
|
"./themes/momotaro": {
|
|
24
|
-
"types":
|
|
30
|
+
"types": {
|
|
31
|
+
"import": "./dist/themes/momotaro.d.mts",
|
|
32
|
+
"require": "./dist/themes/momotaro.d.ts"
|
|
33
|
+
},
|
|
25
34
|
"import": "./dist/themes/momotaro.mjs",
|
|
26
35
|
"require": "./dist/themes/momotaro.cjs"
|
|
27
36
|
},
|
|
@@ -41,59 +50,60 @@
|
|
|
41
50
|
"coverage": "vitest run --coverage",
|
|
42
51
|
"fix": "crackle fix",
|
|
43
52
|
"lint": "eslint .",
|
|
53
|
+
"release": "yarn ts && yarn test && yarn build && changeset publish",
|
|
44
54
|
"storybook": "storybook dev -p 6006 --no-open",
|
|
45
55
|
"test": "vitest",
|
|
46
|
-
"ts": "tsc --noemit --project ./tsconfig.json"
|
|
47
|
-
"release": "yarn ts && yarn test && yarn build && changeset publish"
|
|
56
|
+
"ts": "tsc --noemit --project ./tsconfig.json"
|
|
48
57
|
},
|
|
49
58
|
"resolutions": {
|
|
50
59
|
"string-width": "^4.2.2"
|
|
51
60
|
},
|
|
52
61
|
"dependencies": {
|
|
53
|
-
"@vanilla-extract/css": "^1.
|
|
62
|
+
"@vanilla-extract/css": "^1.14.0",
|
|
54
63
|
"@vanilla-extract/css-utils": "^0.1.3",
|
|
55
64
|
"@vanilla-extract/sprinkles": "^1.6.1",
|
|
56
65
|
"react": "^18.2.0",
|
|
57
66
|
"react-dom": "^18.2.0"
|
|
58
67
|
},
|
|
59
68
|
"devDependencies": {
|
|
60
|
-
"@changesets/cli": "^2.
|
|
61
|
-
"@crackle/cli": "^0.
|
|
62
|
-
"@crackle/core": "^0.
|
|
63
|
-
"@storybook/addon-a11y": "^7.
|
|
64
|
-
"@storybook/addon-coverage": "^0.0
|
|
65
|
-
"@storybook/addon-essentials": "^7.
|
|
66
|
-
"@storybook/addon-interactions": "^7.
|
|
67
|
-
"@storybook/addon-links": "^7.
|
|
68
|
-
"@storybook/
|
|
69
|
+
"@changesets/cli": "^2.27.1",
|
|
70
|
+
"@crackle/cli": "^0.13.0",
|
|
71
|
+
"@crackle/core": "^0.31.0",
|
|
72
|
+
"@storybook/addon-a11y": "^7.6.9",
|
|
73
|
+
"@storybook/addon-coverage": "^1.0.0",
|
|
74
|
+
"@storybook/addon-essentials": "^7.6.9",
|
|
75
|
+
"@storybook/addon-interactions": "^7.6.9",
|
|
76
|
+
"@storybook/addon-links": "^7.6.9",
|
|
77
|
+
"@storybook/addons": "^7.6.17",
|
|
78
|
+
"@storybook/blocks": "^7.6.9",
|
|
69
79
|
"@storybook/jest": "^0.2.3",
|
|
70
|
-
"@storybook/react": "^7.
|
|
71
|
-
"@storybook/react-vite": "^7.
|
|
80
|
+
"@storybook/react": "^7.6.9",
|
|
81
|
+
"@storybook/react-vite": "^7.6.9",
|
|
72
82
|
"@storybook/testing-library": "^0.2.2",
|
|
73
|
-
"@testing-library/jest-dom": "^6.
|
|
74
|
-
"@testing-library/react": "^14.1.
|
|
75
|
-
"@types/react": "^18.2.
|
|
76
|
-
"@types/react-dom": "^18.2.
|
|
77
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
78
|
-
"@typescript-eslint/parser": "^6.
|
|
79
|
-
"@vanilla-extract/vite-plugin": "^3.
|
|
80
|
-
"@vitest/coverage-v8": "^
|
|
81
|
-
"autoprefixer": "^10.4.
|
|
83
|
+
"@testing-library/jest-dom": "^6.2.0",
|
|
84
|
+
"@testing-library/react": "^14.1.2",
|
|
85
|
+
"@types/react": "^18.2.48",
|
|
86
|
+
"@types/react-dom": "^18.2.18",
|
|
87
|
+
"@typescript-eslint/eslint-plugin": "^6.19.0",
|
|
88
|
+
"@typescript-eslint/parser": "^6.19.0",
|
|
89
|
+
"@vanilla-extract/vite-plugin": "^3.9.3",
|
|
90
|
+
"@vitest/coverage-v8": "^1.2.1",
|
|
91
|
+
"autoprefixer": "^10.4.17",
|
|
82
92
|
"cross-env": "^7.0.3",
|
|
83
|
-
"eslint": "^8.
|
|
84
|
-
"eslint-config-prettier": "^9.
|
|
85
|
-
"eslint-plugin-jest": "^27.6.
|
|
86
|
-
"eslint-plugin-prettier": "^5.
|
|
93
|
+
"eslint": "^8.56.0",
|
|
94
|
+
"eslint-config-prettier": "^9.1.0",
|
|
95
|
+
"eslint-plugin-jest": "^27.6.3",
|
|
96
|
+
"eslint-plugin-prettier": "^5.1.3",
|
|
87
97
|
"eslint-plugin-react": "^7.33.2",
|
|
88
98
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
89
99
|
"eslint-plugin-storybook": "^0.6.15",
|
|
90
|
-
"eslint-plugin-unicorn": "^
|
|
91
|
-
"jsdom": "^
|
|
92
|
-
"prettier": "^3.
|
|
100
|
+
"eslint-plugin-unicorn": "^50.0.1",
|
|
101
|
+
"jsdom": "^23.2.0",
|
|
102
|
+
"prettier": "^3.2.4",
|
|
93
103
|
"prop-types": "^15.8.1",
|
|
94
|
-
"storybook": "^7.
|
|
95
|
-
"typescript": "^5.
|
|
96
|
-
"vitest": "^
|
|
104
|
+
"storybook": "^7.6.9",
|
|
105
|
+
"typescript": "^5.3.3",
|
|
106
|
+
"vitest": "^1.2.1"
|
|
97
107
|
},
|
|
98
108
|
"packageManager": "yarn@1.22.19"
|
|
99
109
|
}
|