@blockle/blocks 0.5.1 → 0.7.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.
Files changed (51) hide show
  1. package/dist/index.cjs +264 -186
  2. package/dist/index.d.ts +1 -1
  3. package/dist/index.mjs +262 -184
  4. package/dist/momotaro.chunk.d.ts +337 -251
  5. package/dist/styles/components/Input/input.css.cjs +14 -0
  6. package/dist/styles/components/Input/input.css.mjs +15 -0
  7. package/dist/styles/lib/css/atoms/atomicProperties.cjs +17 -17
  8. package/dist/styles/lib/css/atoms/atomicProperties.mjs +1 -1
  9. package/dist/styles/lib/theme/makeComponentTheme.cjs +5 -0
  10. package/dist/styles/lib/theme/makeComponentTheme.mjs +6 -0
  11. package/dist/styles/lib/theme/makeTheme.cjs +12 -0
  12. package/dist/styles/lib/{css/theme → theme}/makeTheme.mjs +3 -2
  13. package/dist/styles/lib/theme/vars.css.cjs +9 -0
  14. package/dist/styles/lib/{css/theme → theme}/vars.css.mjs +1 -1
  15. package/dist/styles/themes/momotaro/components/button.css.cjs +21 -12
  16. package/dist/styles/themes/momotaro/components/button.css.mjs +14 -5
  17. package/dist/styles/themes/momotaro/components/checkbox.css.cjs +53 -0
  18. package/dist/styles/themes/momotaro/components/checkbox.css.mjs +54 -0
  19. package/dist/styles/themes/momotaro/components/dialog.css.cjs +25 -6
  20. package/dist/styles/themes/momotaro/components/dialog.css.mjs +24 -5
  21. package/dist/styles/themes/momotaro/components/divider.css.cjs +2 -2
  22. package/dist/styles/themes/momotaro/components/divider.css.mjs +1 -1
  23. package/dist/styles/themes/momotaro/components/helpers.css.cjs +20 -5
  24. package/dist/styles/themes/momotaro/components/helpers.css.mjs +18 -3
  25. package/dist/styles/themes/momotaro/components/index.cjs +11 -3
  26. package/dist/styles/themes/momotaro/components/index.mjs +11 -3
  27. package/dist/styles/themes/momotaro/components/input.css.cjs +40 -0
  28. package/dist/styles/themes/momotaro/components/input.css.mjs +41 -0
  29. package/dist/styles/themes/momotaro/components/label.css.cjs +33 -0
  30. package/dist/styles/themes/momotaro/components/label.css.mjs +34 -0
  31. package/dist/styles/themes/momotaro/components/link.css.cjs +6 -4
  32. package/dist/styles/themes/momotaro/components/link.css.mjs +5 -3
  33. package/dist/styles/themes/momotaro/components/radio.css.cjs +53 -0
  34. package/dist/styles/themes/momotaro/components/radio.css.mjs +54 -0
  35. package/dist/styles/themes/momotaro/components/spinner.css.cjs +2 -2
  36. package/dist/styles/themes/momotaro/components/spinner.css.mjs +1 -1
  37. package/dist/styles/themes/momotaro/components/transitions.cjs +3 -0
  38. package/dist/styles/themes/momotaro/components/transitions.mjs +4 -0
  39. package/dist/styles/themes/momotaro/momotaro.css.cjs +2 -2
  40. package/dist/styles/themes/momotaro/momotaro.css.mjs +1 -1
  41. package/dist/styles/themes/momotaro/tokens.css.cjs +4 -4
  42. package/dist/styles/themes/momotaro/tokens.css.mjs +4 -4
  43. package/package.json +2 -2
  44. package/dist/styles/lib/css/theme/makeComponentTheme.cjs +0 -3
  45. package/dist/styles/lib/css/theme/makeComponentTheme.mjs +0 -4
  46. package/dist/styles/lib/css/theme/makeTheme.cjs +0 -11
  47. package/dist/styles/lib/css/theme/vars.css.cjs +0 -9
  48. /package/dist/styles/lib/{css/theme → theme}/makeVanillaTheme.cjs +0 -0
  49. /package/dist/styles/lib/{css/theme → theme}/makeVanillaTheme.mjs +0 -0
  50. /package/dist/styles/lib/{css/theme → theme}/tokens.cjs +0 -0
  51. /package/dist/styles/lib/{css/theme → theme}/tokens.mjs +0 -0
@@ -1,14 +1,22 @@
1
1
  "use strict";
2
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_input_css_cjs = require("./input.css.cjs");
7
+ const styles_themes_momotaro_components_label_css_cjs = require("./label.css.cjs");
3
8
  const styles_themes_momotaro_components_link_css_cjs = require("./link.css.cjs");
9
+ const styles_themes_momotaro_components_radio_css_cjs = require("./radio.css.cjs");
4
10
  const styles_themes_momotaro_components_spinner_css_cjs = require("./spinner.css.cjs");
5
- const styles_themes_momotaro_components_divider_css_cjs = require("./divider.css.cjs");
6
- const styles_themes_momotaro_components_dialog_css_cjs = require("./dialog.css.cjs");
7
11
  const components = {
8
12
  button: styles_themes_momotaro_components_button_css_cjs.button,
9
13
  link: styles_themes_momotaro_components_link_css_cjs.link,
10
14
  spinner: styles_themes_momotaro_components_spinner_css_cjs.spinner,
11
15
  divider: styles_themes_momotaro_components_divider_css_cjs.divider,
12
- dialog: styles_themes_momotaro_components_dialog_css_cjs.dialog
16
+ dialog: styles_themes_momotaro_components_dialog_css_cjs.dialog,
17
+ input: styles_themes_momotaro_components_input_css_cjs.input,
18
+ checkbox: styles_themes_momotaro_components_checkbox_css_cjs.checkbox,
19
+ radio: styles_themes_momotaro_components_radio_css_cjs.radio,
20
+ label: styles_themes_momotaro_components_label_css_cjs.label
13
21
  };
14
22
  exports.components = components;
@@ -1,14 +1,22 @@
1
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 { input } from "./input.css.mjs";
6
+ import { label } from "./label.css.mjs";
2
7
  import { link } from "./link.css.mjs";
8
+ import { radio } from "./radio.css.mjs";
3
9
  import { spinner } from "./spinner.css.mjs";
4
- import { divider } from "./divider.css.mjs";
5
- import { dialog } from "./dialog.css.mjs";
6
10
  const components = {
7
11
  button,
8
12
  link,
9
13
  spinner,
10
14
  divider,
11
- dialog
15
+ dialog,
16
+ input,
17
+ checkbox,
18
+ radio,
19
+ label
12
20
  };
13
21
  export {
14
22
  components
@@ -0,0 +1,40 @@
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?used", "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
+ paddingY: "large",
12
+ paddingX: "large",
13
+ border: "none",
14
+ borderRadius: "small"
15
+ }), {
16
+ outline: "none",
17
+ background: "transparent",
18
+ "::placeholder": {
19
+ color: styles_lib_theme_vars_css_cjs.vars.color.textLight
20
+ },
21
+ ":disabled": {}
22
+ }], "input_input"),
23
+ container: css.style([{
24
+ minHeight: 56,
25
+ transitionDuration: styles_lib_theme_vars_css_cjs.vars.transition.fast,
26
+ transitionProperty: "box-shadow",
27
+ ":focus-within": {
28
+ outline: "2px solid transparent",
29
+ outlineOffset: "2px",
30
+ boxShadow: `${styles_lib_theme_vars_css_cjs.vars.shadow.small}, ${styles_lib_theme_vars_css_cjs.vars.focus.boxShadow}`
31
+ }
32
+ }, styles_lib_css_atoms_sprinkles_css_cjs.atoms({
33
+ backgroundColor: "white",
34
+ borderRadius: "medium",
35
+ boxShadow: "medium",
36
+ gap: "large"
37
+ })], "input_container")
38
+ });
39
+ fileScope.endFileScope();
40
+ exports.input = input;
@@ -0,0 +1,41 @@
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?used", "blocks");
7
+ const input = makeComponentTheme("input", {
8
+ input: style([atoms({
9
+ color: "text",
10
+ paddingY: "large",
11
+ paddingX: "large",
12
+ border: "none",
13
+ borderRadius: "small"
14
+ }), {
15
+ outline: "none",
16
+ background: "transparent",
17
+ "::placeholder": {
18
+ color: vars.color.textLight
19
+ },
20
+ ":disabled": {}
21
+ }], "input_input"),
22
+ container: style([{
23
+ minHeight: 56,
24
+ transitionDuration: vars.transition.fast,
25
+ transitionProperty: "box-shadow",
26
+ ":focus-within": {
27
+ outline: "2px solid transparent",
28
+ outlineOffset: "2px",
29
+ boxShadow: `${vars.shadow.small}, ${vars.focus.boxShadow}`
30
+ }
31
+ }, atoms({
32
+ backgroundColor: "white",
33
+ borderRadius: "medium",
34
+ boxShadow: "medium",
35
+ gap: "large"
36
+ })], "input_container")
37
+ });
38
+ endFileScope();
39
+ export {
40
+ input
41
+ };
@@ -0,0 +1,33 @@
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?used", "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;
@@ -0,0 +1,34 @@
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?used", "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,15 +1,17 @@
1
1
  "use strict";
2
2
  const fileScope = require("@vanilla-extract/css/fileScope");
3
3
  const css = require("@vanilla-extract/css");
4
- const styles_lib_css_theme_makeComponentTheme_cjs = require("../../../lib/css/theme/makeComponentTheme.cjs");
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");
5
6
  const styles_lib_css_atoms_sprinkles_css_cjs = require("../../../lib/css/atoms/sprinkles.css.cjs");
6
7
  fileScope.setFileScope("src/themes/momotaro/components/link.css.ts?used", "blocks");
7
- const link = styles_lib_css_theme_makeComponentTheme_cjs.makeComponentTheme("link", {
8
- base: css.style({
8
+ const link = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("link", {
9
+ base: css.style([{
9
10
  outline: "none",
10
11
  border: "none",
11
12
  textDecoration: "none",
12
13
  background: "transparent",
14
+ borderRadius: 1,
13
15
  ":hover": {
14
16
  textDecoration: "underline"
15
17
  },
@@ -17,7 +19,7 @@ const link = styles_lib_css_theme_makeComponentTheme_cjs.makeComponentTheme("lin
17
19
  textDecoration: "underline"
18
20
  },
19
21
  cursor: "pointer"
20
- }, "link_base"),
22
+ }, styles_themes_momotaro_components_helpers_css_cjs.focusable], "link_base"),
21
23
  variants: {
22
24
  variant: {
23
25
  inherit: css.style({
@@ -1,14 +1,16 @@
1
1
  import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
2
2
  import { style } from "@vanilla-extract/css";
3
- import { makeComponentTheme } from "../../../lib/css/theme/makeComponentTheme.mjs";
3
+ import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.mjs";
4
+ import { focusable } from "./helpers.css.mjs";
4
5
  import { atoms } from "../../../lib/css/atoms/sprinkles.css.mjs";
5
6
  setFileScope("src/themes/momotaro/components/link.css.ts?used", "blocks");
6
7
  const link = makeComponentTheme("link", {
7
- base: style({
8
+ base: style([{
8
9
  outline: "none",
9
10
  border: "none",
10
11
  textDecoration: "none",
11
12
  background: "transparent",
13
+ borderRadius: 1,
12
14
  ":hover": {
13
15
  textDecoration: "underline"
14
16
  },
@@ -16,7 +18,7 @@ const link = makeComponentTheme("link", {
16
18
  textDecoration: "underline"
17
19
  },
18
20
  cursor: "pointer"
19
- }, "link_base"),
21
+ }, focusable], "link_base"),
20
22
  variants: {
21
23
  variant: {
22
24
  inherit: style({
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ const fileScope = require("@vanilla-extract/css/fileScope");
3
+ const css = require("@vanilla-extract/css");
4
+ const styles_lib_theme_makeComponentTheme_cjs = require("../../../lib/theme/makeComponentTheme.cjs");
5
+ const styles_lib_theme_vars_css_cjs = require("../../../lib/theme/vars.css.cjs");
6
+ const styles_themes_momotaro_components_helpers_css_cjs = require("./helpers.css.cjs");
7
+ const styles_themes_momotaro_components_transitions_cjs = require("./transitions.cjs");
8
+ const styles_lib_css_atoms_sprinkles_css_cjs = require("../../../lib/css/atoms/sprinkles.css.cjs");
9
+ fileScope.setFileScope("src/themes/momotaro/components/radio.css.ts?used", "blocks");
10
+ const radio = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("radio", {
11
+ base: css.style([{
12
+ display: "flex",
13
+ alignItems: "center",
14
+ justifyContent: "center",
15
+ width: 24,
16
+ height: 24,
17
+ borderRadius: 12,
18
+ transition: `transform ${styles_lib_theme_vars_css_cjs.vars.transition.fast}`,
19
+ transitionProperty: "background-color",
20
+ ":hover": {
21
+ backgroundColor: styles_lib_theme_vars_css_cjs.vars.color.primaryDark
22
+ },
23
+ selectors: {
24
+ "&:has(input:checked):not(:hover)": {
25
+ backgroundColor: styles_lib_theme_vars_css_cjs.vars.color.primary
26
+ }
27
+ }
28
+ }, styles_lib_css_atoms_sprinkles_css_cjs.atoms({
29
+ backgroundColor: "primaryLight"
30
+ }), styles_themes_momotaro_components_helpers_css_cjs.focusable], "radio_base"),
31
+ icon: css.style({
32
+ height: 12,
33
+ width: 12,
34
+ backgroundColor: "white",
35
+ borderRadius: "8px",
36
+ transform: "scale(0)",
37
+ transition: `transform ${styles_lib_theme_vars_css_cjs.vars.transition.normal} ${styles_themes_momotaro_components_transitions_cjs.bounceOut}`,
38
+ selectors: {
39
+ "input:checked ~ &": {
40
+ transform: "scale(1)"
41
+ }
42
+ }
43
+ }, "radio_icon"),
44
+ label: styles_lib_css_atoms_sprinkles_css_cjs.atoms({
45
+ display: "flex",
46
+ flexDirection: "row",
47
+ padding: "xsmall",
48
+ gap: "medium",
49
+ cursor: "pointer"
50
+ })
51
+ });
52
+ fileScope.endFileScope();
53
+ exports.radio = radio;
@@ -0,0 +1,54 @@
1
+ import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
2
+ import { style } from "@vanilla-extract/css";
3
+ import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.mjs";
4
+ import { vars } from "../../../lib/theme/vars.css.mjs";
5
+ import { focusable } from "./helpers.css.mjs";
6
+ import { bounceOut } from "./transitions.mjs";
7
+ import { atoms } from "../../../lib/css/atoms/sprinkles.css.mjs";
8
+ setFileScope("src/themes/momotaro/components/radio.css.ts?used", "blocks");
9
+ const radio = makeComponentTheme("radio", {
10
+ base: style([{
11
+ display: "flex",
12
+ alignItems: "center",
13
+ justifyContent: "center",
14
+ width: 24,
15
+ height: 24,
16
+ borderRadius: 12,
17
+ transition: `transform ${vars.transition.fast}`,
18
+ transitionProperty: "background-color",
19
+ ":hover": {
20
+ backgroundColor: vars.color.primaryDark
21
+ },
22
+ selectors: {
23
+ "&:has(input:checked):not(:hover)": {
24
+ backgroundColor: vars.color.primary
25
+ }
26
+ }
27
+ }, atoms({
28
+ backgroundColor: "primaryLight"
29
+ }), focusable], "radio_base"),
30
+ icon: style({
31
+ height: 12,
32
+ width: 12,
33
+ backgroundColor: "white",
34
+ borderRadius: "8px",
35
+ transform: "scale(0)",
36
+ transition: `transform ${vars.transition.normal} ${bounceOut}`,
37
+ selectors: {
38
+ "input:checked ~ &": {
39
+ transform: "scale(1)"
40
+ }
41
+ }
42
+ }, "radio_icon"),
43
+ label: atoms({
44
+ display: "flex",
45
+ flexDirection: "row",
46
+ padding: "xsmall",
47
+ gap: "medium",
48
+ cursor: "pointer"
49
+ })
50
+ });
51
+ endFileScope();
52
+ export {
53
+ radio
54
+ };
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  const fileScope = require("@vanilla-extract/css/fileScope");
3
3
  const css = require("@vanilla-extract/css");
4
- const styles_lib_css_theme_makeComponentTheme_cjs = require("../../../lib/css/theme/makeComponentTheme.cjs");
4
+ const styles_lib_theme_makeComponentTheme_cjs = require("../../../lib/theme/makeComponentTheme.cjs");
5
5
  fileScope.setFileScope("src/themes/momotaro/components/spinner.css.ts?used", "blocks");
6
6
  const spinAnimation = css.keyframes({
7
7
  "0%": {
@@ -11,7 +11,7 @@ const spinAnimation = css.keyframes({
11
11
  transform: "rotate(360deg)"
12
12
  }
13
13
  }, "spinAnimation");
14
- const spinner = styles_lib_css_theme_makeComponentTheme_cjs.makeComponentTheme("spinner", {
14
+ const spinner = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("spinner", {
15
15
  base: css.style({
16
16
  aspectRatio: "1 / 1",
17
17
  overflow: "hidden",
@@ -1,6 +1,6 @@
1
1
  import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
2
2
  import { keyframes, style } from "@vanilla-extract/css";
3
- import { makeComponentTheme } from "../../../lib/css/theme/makeComponentTheme.mjs";
3
+ import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.mjs";
4
4
  setFileScope("src/themes/momotaro/components/spinner.css.ts?used", "blocks");
5
5
  const spinAnimation = keyframes({
6
6
  "0%": {
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ const bounceOut = "cubic-bezier(.65,.36,.55,1.65)";
3
+ exports.bounceOut = bounceOut;
@@ -0,0 +1,4 @@
1
+ const bounceOut = "cubic-bezier(.65,.36,.55,1.65)";
2
+ export {
3
+ bounceOut
4
+ };
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  const fileScope = require("@vanilla-extract/css/fileScope");
3
- const styles_lib_css_theme_makeTheme_cjs = require("../../lib/css/theme/makeTheme.cjs");
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
6
  fileScope.setFileScope("src/themes/momotaro/momotaro.css.ts?used", "blocks");
7
- const momotaro = styles_lib_css_theme_makeTheme_cjs.makeTheme({
7
+ const momotaro = styles_lib_theme_makeTheme_cjs.makeTheme({
8
8
  name: "momotaro",
9
9
  tokens: styles_themes_momotaro_tokens_css_cjs.tokens,
10
10
  components: styles_themes_momotaro_components_index_cjs.components
@@ -1,5 +1,5 @@
1
1
  import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
2
- import { makeTheme } from "../../lib/css/theme/makeTheme.mjs";
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
5
  setFileScope("src/themes/momotaro/momotaro.css.ts?used", "blocks");
@@ -37,7 +37,7 @@ const tokens = {
37
37
  large: "0px 16px 24px rgba(0, 0, 0, 0.08)"
38
38
  },
39
39
  focus: {
40
- boxShadow: "0 0 4px 2px #AF8EFF"
40
+ boxShadow: "0 0 1px 2px #AF8EFF"
41
41
  },
42
42
  spacing: {
43
43
  none: "0px",
@@ -49,9 +49,9 @@ const tokens = {
49
49
  xlarge: "24px"
50
50
  },
51
51
  transition: {
52
- slow: "0.5s",
53
- normal: "0.3s",
54
- fast: "0.1s"
52
+ slow: "240ms",
53
+ normal: "120ms",
54
+ fast: "80ms"
55
55
  },
56
56
  typography: {
57
57
  fontFamily: {
@@ -36,7 +36,7 @@ const tokens = {
36
36
  large: "0px 16px 24px rgba(0, 0, 0, 0.08)"
37
37
  },
38
38
  focus: {
39
- boxShadow: "0 0 4px 2px #AF8EFF"
39
+ boxShadow: "0 0 1px 2px #AF8EFF"
40
40
  },
41
41
  spacing: {
42
42
  none: "0px",
@@ -48,9 +48,9 @@ const tokens = {
48
48
  xlarge: "24px"
49
49
  },
50
50
  transition: {
51
- slow: "0.5s",
52
- normal: "0.3s",
53
- fast: "0.1s"
51
+ slow: "240ms",
52
+ normal: "120ms",
53
+ fast: "80ms"
54
54
  },
55
55
  typography: {
56
56
  fontFamily: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockle/blocks",
3
- "version": "0.5.1",
3
+ "version": "0.7.0",
4
4
  "description": "Blocks design system",
5
5
  "repository": "git@github.com:Blockle/blocks.git",
6
6
  "license": "MIT",
@@ -44,7 +44,7 @@
44
44
  "storybook": "storybook dev -p 6006 --no-open",
45
45
  "test": "vitest",
46
46
  "ts": "tsc --noemit --project ./tsconfig.json",
47
- "release": "yarn test && yarn build && changeset publish"
47
+ "release": "yarn ts && yarn test && yarn build && changeset publish"
48
48
  },
49
49
  "resolutions": {
50
50
  "string-width": "^4.2.2"
@@ -1,3 +0,0 @@
1
- "use strict";
2
- const makeComponentTheme = (name, options) => options;
3
- exports.makeComponentTheme = makeComponentTheme;
@@ -1,4 +0,0 @@
1
- const makeComponentTheme = (name, options) => options;
2
- export {
3
- makeComponentTheme
4
- };
@@ -1,11 +0,0 @@
1
- "use strict";
2
- const css = require("@vanilla-extract/css");
3
- const styles_lib_css_theme_makeVanillaTheme_cjs = require("./makeVanillaTheme.cjs");
4
- const styles_lib_css_theme_vars_css_cjs = require("./vars.css.cjs");
5
- const makeTheme = (theme) => {
6
- return {
7
- vars: css.createTheme(styles_lib_css_theme_vars_css_cjs.vars, styles_lib_css_theme_makeVanillaTheme_cjs.makeVanillaTheme(theme.tokens)),
8
- components: theme.components
9
- };
10
- };
11
- exports.makeTheme = makeTheme;
@@ -1,9 +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_theme_makeVanillaTheme_cjs = require("./makeVanillaTheme.cjs");
5
- const styles_lib_css_theme_tokens_cjs = require("./tokens.cjs");
6
- fileScope.setFileScope("src/lib/css/theme/vars.css.ts?used", "blocks");
7
- const vars = css.createThemeContract(styles_lib_css_theme_makeVanillaTheme_cjs.makeVanillaTheme(styles_lib_css_theme_tokens_cjs.tokens));
8
- fileScope.endFileScope();
9
- exports.vars = vars;
File without changes
File without changes