@blockle/blocks 0.2.3 → 0.3.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 (31) hide show
  1. package/dist/index.cjs +134 -6
  2. package/dist/index.d.ts +1 -1
  3. package/dist/index.mjs +136 -6
  4. package/dist/momotaro.chunk.d.ts +261 -155
  5. package/dist/reset.css.cjs +0 -1
  6. package/dist/reset.css.mjs +0 -1
  7. package/dist/styles/components/Button/Button.css.cjs +15 -0
  8. package/dist/styles/components/Button/Button.css.mjs +16 -0
  9. package/dist/styles/lib/css/atoms/index.cjs +1 -0
  10. package/dist/styles/lib/css/atoms/index.mjs +1 -0
  11. package/dist/styles/lib/css/layers/layers.css.cjs +7 -0
  12. package/dist/styles/lib/css/layers/layers.css.mjs +8 -0
  13. package/dist/styles/lib/css/reset/reset.css.cjs +0 -36
  14. package/dist/styles/lib/css/reset/reset.css.mjs +1 -36
  15. package/dist/styles/lib/css/theme/makeVanillaTheme.cjs +5 -2
  16. package/dist/styles/lib/css/theme/makeVanillaTheme.mjs +5 -2
  17. package/dist/styles/lib/css/theme/tokens.cjs +5 -2
  18. package/dist/styles/lib/css/theme/tokens.mjs +5 -2
  19. package/dist/styles/themes/momotaro/components/button.css.cjs +85 -25
  20. package/dist/styles/themes/momotaro/components/button.css.mjs +85 -25
  21. package/dist/styles/themes/momotaro/components/helpers.css.cjs +26 -0
  22. package/dist/styles/themes/momotaro/components/helpers.css.mjs +27 -0
  23. package/dist/styles/themes/momotaro/components/index.cjs +5 -1
  24. package/dist/styles/themes/momotaro/components/index.mjs +5 -1
  25. package/dist/styles/themes/momotaro/components/link.css.cjs +47 -0
  26. package/dist/styles/themes/momotaro/components/link.css.mjs +48 -0
  27. package/dist/styles/themes/momotaro/components/spinner.css.cjs +44 -0
  28. package/dist/styles/themes/momotaro/components/spinner.css.mjs +45 -0
  29. package/dist/styles/themes/momotaro/tokens.cjs +5 -2
  30. package/dist/styles/themes/momotaro/tokens.mjs +5 -2
  31. package/package.json +31 -2
@@ -1,5 +1,4 @@
1
1
  "use strict";
2
2
  const fileScope = require("@vanilla-extract/css/fileScope");
3
- require("./styles/lib/css/reset/reset.css.cjs");
4
3
  fileScope.setFileScope("src/entries/reset.css.ts", "blocks");
5
4
  fileScope.endFileScope();
@@ -1,4 +1,3 @@
1
1
  import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
2
- import "./styles/lib/css/reset/reset.css.mjs";
3
2
  setFileScope("src/entries/reset.css.ts", "blocks");
4
3
  endFileScope();
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ const fileScope = require("@vanilla-extract/css/fileScope");
3
+ const css = require("@vanilla-extract/css");
4
+ const styles_lib_css_layers_layers_css_cjs = require("../../lib/css/layers/layers.css.cjs");
5
+ fileScope.setFileScope("src/components/Button/Button.css.ts?used", "blocks");
6
+ const buttonReset = css.style({
7
+ "@layer": {
8
+ [styles_lib_css_layers_layers_css_cjs.blocksLayer]: {
9
+ all: "unset",
10
+ cursor: "pointer"
11
+ }
12
+ }
13
+ }, "buttonReset");
14
+ fileScope.endFileScope();
15
+ exports.buttonReset = buttonReset;
@@ -0,0 +1,16 @@
1
+ import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
2
+ import { style } from "@vanilla-extract/css";
3
+ import { blocksLayer } from "../../lib/css/layers/layers.css.mjs";
4
+ setFileScope("src/components/Button/Button.css.ts?used", "blocks");
5
+ const buttonReset = style({
6
+ "@layer": {
7
+ [blocksLayer]: {
8
+ all: "unset",
9
+ cursor: "pointer"
10
+ }
11
+ }
12
+ }, "buttonReset");
13
+ endFileScope();
14
+ export {
15
+ buttonReset
16
+ };
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ const fileScope = require("@vanilla-extract/css/fileScope");
3
+ const css = require("@vanilla-extract/css");
4
+ fileScope.setFileScope("src/lib/css/layers/layers.css.ts?used", "blocks");
5
+ const blocksLayer = css.layer("blockle-blocks");
6
+ fileScope.endFileScope();
7
+ exports.blocksLayer = blocksLayer;
@@ -0,0 +1,8 @@
1
+ import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
2
+ import { layer } from "@vanilla-extract/css";
3
+ setFileScope("src/lib/css/layers/layers.css.ts?used", "blocks");
4
+ const blocksLayer = layer("blockle-blocks");
5
+ endFileScope();
6
+ export {
7
+ blocksLayer
8
+ };
@@ -1,37 +1 @@
1
1
  "use strict";
2
- const fileScope = require("@vanilla-extract/css/fileScope");
3
- const css = require("@vanilla-extract/css");
4
- fileScope.setFileScope("src/lib/css/reset/reset.css.ts?used", "blocks");
5
- css.globalStyle(":where(*, *::before, *::after)", {
6
- boxSizing: "inherit"
7
- });
8
- css.globalStyle(":where(html)", {
9
- lineHeight: 1.5,
10
- boxSizing: "border-box",
11
- WebkitFontSmoothing: "antialiased"
12
- });
13
- css.globalStyle(":where(body)", {
14
- margin: 0,
15
- padding: 0,
16
- fontFamily: "Calibri, sans-serif"
17
- });
18
- css.globalStyle(":where(button, input, optgroup, select, textarea)", {
19
- fontFamily: "inherit",
20
- fontSize: "100%",
21
- lineHeight: "inherit",
22
- margin: 0,
23
- padding: 0
24
- });
25
- css.globalStyle(":where(p, ul, ol, pre, blockquote)", {
26
- margin: 0,
27
- padding: 0
28
- });
29
- css.globalStyle(":where(h1, h2, h3, h4, h5, h6)", {
30
- margin: 0,
31
- padding: 0,
32
- fontSize: "inherit"
33
- });
34
- css.globalStyle(":where(pre)", {
35
- whiteSpace: "pre-wrap"
36
- });
37
- fileScope.endFileScope();
@@ -1,36 +1 @@
1
- import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
2
- import { globalStyle } from "@vanilla-extract/css";
3
- setFileScope("src/lib/css/reset/reset.css.ts?used", "blocks");
4
- globalStyle(":where(*, *::before, *::after)", {
5
- boxSizing: "inherit"
6
- });
7
- globalStyle(":where(html)", {
8
- lineHeight: 1.5,
9
- boxSizing: "border-box",
10
- WebkitFontSmoothing: "antialiased"
11
- });
12
- globalStyle(":where(body)", {
13
- margin: 0,
14
- padding: 0,
15
- fontFamily: "Calibri, sans-serif"
16
- });
17
- globalStyle(":where(button, input, optgroup, select, textarea)", {
18
- fontFamily: "inherit",
19
- fontSize: "100%",
20
- lineHeight: "inherit",
21
- margin: 0,
22
- padding: 0
23
- });
24
- globalStyle(":where(p, ul, ol, pre, blockquote)", {
25
- margin: 0,
26
- padding: 0
27
- });
28
- globalStyle(":where(h1, h2, h3, h4, h5, h6)", {
29
- margin: 0,
30
- padding: 0,
31
- fontSize: "inherit"
32
- });
33
- globalStyle(":where(pre)", {
34
- whiteSpace: "pre-wrap"
35
- });
36
- endFileScope();
1
+
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  const makeVanillaTheme = (tokens) => {
3
3
  return {
4
- space: tokens.space,
4
+ space: tokens.spacing,
5
5
  borderRadius: tokens.border.radius,
6
6
  color: tokens.color,
7
7
  borderWidth: tokens.border.width,
@@ -10,7 +10,10 @@ const makeVanillaTheme = (tokens) => {
10
10
  fontWeight: tokens.typography.fontWeight,
11
11
  lineHeight: tokens.typography.lineHeight,
12
12
  transition: tokens.transition,
13
- shadow: tokens.shadow
13
+ shadow: tokens.shadow,
14
+ focus: {
15
+ boxShadow: tokens.focus.boxShadow
16
+ }
14
17
  };
15
18
  };
16
19
  exports.makeVanillaTheme = makeVanillaTheme;
@@ -1,6 +1,6 @@
1
1
  const makeVanillaTheme = (tokens) => {
2
2
  return {
3
- space: tokens.space,
3
+ space: tokens.spacing,
4
4
  borderRadius: tokens.border.radius,
5
5
  color: tokens.color,
6
6
  borderWidth: tokens.border.width,
@@ -9,7 +9,10 @@ const makeVanillaTheme = (tokens) => {
9
9
  fontWeight: tokens.typography.fontWeight,
10
10
  lineHeight: tokens.typography.lineHeight,
11
11
  transition: tokens.transition,
12
- shadow: tokens.shadow
12
+ shadow: tokens.shadow,
13
+ focus: {
14
+ boxShadow: tokens.focus.boxShadow
15
+ }
13
16
  };
14
17
  };
15
18
  export {
@@ -25,7 +25,7 @@ const tokens = {
25
25
  xlarge: "2rem"
26
26
  }
27
27
  },
28
- space: {
28
+ spacing: {
29
29
  none: 0,
30
30
  gutter: "1rem",
31
31
  xsmall: "0.25rem",
@@ -57,6 +57,9 @@ const tokens = {
57
57
  medium: "0 2px 4px 0 rgba(0, 0, 0, 0.05)",
58
58
  large: "0 4px 8px 0 rgba(0, 0, 0, 0.05)"
59
59
  },
60
+ focus: {
61
+ boxShadow: "0 0 0 2px #AF8EFF"
62
+ },
60
63
  color: {
61
64
  black: "#000000",
62
65
  white: "#ffffff",
@@ -70,7 +73,7 @@ const tokens = {
70
73
  text: "#000000",
71
74
  textLight: "#ffffff",
72
75
  textDark: "#aeaeae",
73
- caution: "#ff0000",
76
+ danger: "#ff0000",
74
77
  link: "#0000ff"
75
78
  }
76
79
  };
@@ -24,7 +24,7 @@ const tokens = {
24
24
  xlarge: "2rem"
25
25
  }
26
26
  },
27
- space: {
27
+ spacing: {
28
28
  none: 0,
29
29
  gutter: "1rem",
30
30
  xsmall: "0.25rem",
@@ -56,6 +56,9 @@ const tokens = {
56
56
  medium: "0 2px 4px 0 rgba(0, 0, 0, 0.05)",
57
57
  large: "0 4px 8px 0 rgba(0, 0, 0, 0.05)"
58
58
  },
59
+ focus: {
60
+ boxShadow: "0 0 0 2px #AF8EFF"
61
+ },
59
62
  color: {
60
63
  black: "#000000",
61
64
  white: "#ffffff",
@@ -69,7 +72,7 @@ const tokens = {
69
72
  text: "#000000",
70
73
  textLight: "#ffffff",
71
74
  textDark: "#aeaeae",
72
- caution: "#ff0000",
75
+ danger: "#ff0000",
73
76
  link: "#0000ff"
74
77
  }
75
78
  };
@@ -1,45 +1,105 @@
1
1
  "use strict";
2
2
  const fileScope = require("@vanilla-extract/css/fileScope");
3
+ const css = require("@vanilla-extract/css");
3
4
  const styles_lib_css_theme_makeComponentTheme_cjs = require("../../../lib/css/theme/makeComponentTheme.cjs");
4
5
  const styles_lib_css_theme_vars_css_cjs = require("../../../lib/css/theme/vars.css.cjs");
6
+ const styles_themes_momotaro_components_helpers_css_cjs = require("./helpers.css.cjs");
7
+ const styles_lib_css_atoms_sprinkles_css_cjs = require("../../../lib/css/atoms/sprinkles.css.cjs");
5
8
  fileScope.setFileScope("src/themes/momotaro/components/button.css.ts?used", "blocks");
9
+ const primaryColor = css.createVar("primaryColor");
6
10
  const button = styles_lib_css_theme_makeComponentTheme_cjs.makeComponentTheme({
7
11
  type: "button",
8
- base: {
9
- // ...
10
- borderRadius: "9999px"
11
- },
12
+ base: css.style([styles_lib_css_atoms_sprinkles_css_cjs.atoms({
13
+ display: "inline-flex",
14
+ placeItems: "center",
15
+ fontSize: "medium",
16
+ borderRadius: "medium",
17
+ fontWeight: "medium"
18
+ }), styles_themes_momotaro_components_helpers_css_cjs.focusable], "button_base"),
12
19
  variants: {
13
20
  // ...
21
+ // styleVariants could be used to but lacks correct typings atm
14
22
  variant: {
15
- solid: {
16
- color: styles_lib_css_theme_vars_css_cjs.vars.color.primary
17
- },
18
- outline: {},
19
- ghost: {},
20
- link: {}
23
+ solid: css.style({
24
+ color: styles_lib_css_theme_vars_css_cjs.vars.color.white,
25
+ backgroundColor: primaryColor,
26
+ border: "none",
27
+ selectors: {
28
+ "&:hover:not(:disabled)": {
29
+ backgroundColor: styles_lib_css_theme_vars_css_cjs.vars.color.primaryDark
30
+ }
31
+ }
32
+ }, "button_variants_variant_solid"),
33
+ outline: css.style({
34
+ color: primaryColor,
35
+ borderWidth: styles_lib_css_theme_vars_css_cjs.vars.borderWidth.small,
36
+ borderStyle: "solid",
37
+ borderColor: primaryColor,
38
+ background: "transparent",
39
+ selectors: {
40
+ "&:hover:not(:disabled)": {
41
+ backgroundColor: styles_lib_css_theme_vars_css_cjs.vars.color.primaryLight
42
+ }
43
+ }
44
+ }, "button_variants_variant_outline"),
45
+ ghost: css.style({
46
+ color: primaryColor,
47
+ background: "transparent",
48
+ selectors: {
49
+ "&:hover:not(:disabled)": {
50
+ backgroundColor: styles_lib_css_theme_vars_css_cjs.vars.color.primaryLight
51
+ }
52
+ }
53
+ }, "button_variants_variant_ghost")
21
54
  },
22
55
  size: {
23
- small: {},
24
- medium: {},
25
- large: {}
56
+ small: css.style([styles_lib_css_atoms_sprinkles_css_cjs.atoms({
57
+ paddingX: "large"
58
+ }), {
59
+ height: 40
60
+ }], "button_variants_size_small"),
61
+ medium: css.style([styles_lib_css_atoms_sprinkles_css_cjs.atoms({
62
+ paddingX: "xlarge"
63
+ }), {
64
+ height: 56
65
+ }], "button_variants_size_medium"),
66
+ large: css.style([styles_lib_css_atoms_sprinkles_css_cjs.atoms({
67
+ paddingX: "xlarge"
68
+ }), {
69
+ height: 72
70
+ }], "button_variants_size_large")
71
+ },
72
+ intent: {
73
+ neutral: css.style({
74
+ vars: {
75
+ [primaryColor]: styles_lib_css_theme_vars_css_cjs.vars.color.primary
76
+ }
77
+ }, "button_variants_intent_neutral"),
78
+ danger: css.style({
79
+ vars: {
80
+ [primaryColor]: styles_lib_css_theme_vars_css_cjs.vars.color.danger
81
+ }
82
+ }, "button_variants_intent_danger")
26
83
  }
27
84
  },
28
85
  compoundVariants: [
29
- // ...
30
- {
31
- variants: {
32
- variant: "solid",
33
- size: "small"
34
- },
35
- style: {
36
- // ...
37
- }
38
- }
86
+ // Example of compound variants
87
+ // {
88
+ // variants: {
89
+ // intent: 'danger',
90
+ // variant: 'ghost',
91
+ // },
92
+ // style: style({
93
+ // color: vars.color.danger,
94
+ // fontSize: vars.fontSize.small,
95
+ // background: 'red',
96
+ // }),
97
+ // },
39
98
  ],
40
99
  defaultVariants: {
41
- // ...
42
- variant: "ghost"
100
+ size: "small",
101
+ variant: "ghost",
102
+ intent: "neutral"
43
103
  }
44
104
  });
45
105
  fileScope.endFileScope();
@@ -1,44 +1,104 @@
1
1
  import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
2
+ import { createVar, style } from "@vanilla-extract/css";
2
3
  import { makeComponentTheme } from "../../../lib/css/theme/makeComponentTheme.mjs";
3
4
  import { vars } from "../../../lib/css/theme/vars.css.mjs";
5
+ import { focusable } from "./helpers.css.mjs";
6
+ import { atoms } from "../../../lib/css/atoms/sprinkles.css.mjs";
4
7
  setFileScope("src/themes/momotaro/components/button.css.ts?used", "blocks");
8
+ const primaryColor = createVar("primaryColor");
5
9
  const button = makeComponentTheme({
6
10
  type: "button",
7
- base: {
8
- // ...
9
- borderRadius: "9999px"
10
- },
11
+ base: style([atoms({
12
+ display: "inline-flex",
13
+ placeItems: "center",
14
+ fontSize: "medium",
15
+ borderRadius: "medium",
16
+ fontWeight: "medium"
17
+ }), focusable], "button_base"),
11
18
  variants: {
12
19
  // ...
20
+ // styleVariants could be used to but lacks correct typings atm
13
21
  variant: {
14
- solid: {
15
- color: vars.color.primary
16
- },
17
- outline: {},
18
- ghost: {},
19
- link: {}
22
+ solid: style({
23
+ color: vars.color.white,
24
+ backgroundColor: primaryColor,
25
+ border: "none",
26
+ selectors: {
27
+ "&:hover:not(:disabled)": {
28
+ backgroundColor: vars.color.primaryDark
29
+ }
30
+ }
31
+ }, "button_variants_variant_solid"),
32
+ outline: style({
33
+ color: primaryColor,
34
+ borderWidth: vars.borderWidth.small,
35
+ borderStyle: "solid",
36
+ borderColor: primaryColor,
37
+ background: "transparent",
38
+ selectors: {
39
+ "&:hover:not(:disabled)": {
40
+ backgroundColor: vars.color.primaryLight
41
+ }
42
+ }
43
+ }, "button_variants_variant_outline"),
44
+ ghost: style({
45
+ color: primaryColor,
46
+ background: "transparent",
47
+ selectors: {
48
+ "&:hover:not(:disabled)": {
49
+ backgroundColor: vars.color.primaryLight
50
+ }
51
+ }
52
+ }, "button_variants_variant_ghost")
20
53
  },
21
54
  size: {
22
- small: {},
23
- medium: {},
24
- large: {}
55
+ small: style([atoms({
56
+ paddingX: "large"
57
+ }), {
58
+ height: 40
59
+ }], "button_variants_size_small"),
60
+ medium: style([atoms({
61
+ paddingX: "xlarge"
62
+ }), {
63
+ height: 56
64
+ }], "button_variants_size_medium"),
65
+ large: style([atoms({
66
+ paddingX: "xlarge"
67
+ }), {
68
+ height: 72
69
+ }], "button_variants_size_large")
70
+ },
71
+ intent: {
72
+ neutral: style({
73
+ vars: {
74
+ [primaryColor]: vars.color.primary
75
+ }
76
+ }, "button_variants_intent_neutral"),
77
+ danger: style({
78
+ vars: {
79
+ [primaryColor]: vars.color.danger
80
+ }
81
+ }, "button_variants_intent_danger")
25
82
  }
26
83
  },
27
84
  compoundVariants: [
28
- // ...
29
- {
30
- variants: {
31
- variant: "solid",
32
- size: "small"
33
- },
34
- style: {
35
- // ...
36
- }
37
- }
85
+ // Example of compound variants
86
+ // {
87
+ // variants: {
88
+ // intent: 'danger',
89
+ // variant: 'ghost',
90
+ // },
91
+ // style: style({
92
+ // color: vars.color.danger,
93
+ // fontSize: vars.fontSize.small,
94
+ // background: 'red',
95
+ // }),
96
+ // },
38
97
  ],
39
98
  defaultVariants: {
40
- // ...
41
- variant: "ghost"
99
+ size: "small",
100
+ variant: "ghost",
101
+ intent: "neutral"
42
102
  }
43
103
  });
44
104
  endFileScope();
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ const fileScope = require("@vanilla-extract/css/fileScope");
3
+ const css = require("@vanilla-extract/css");
4
+ const styles_lib_css_theme_vars_css_cjs = require("../../../lib/css/theme/vars.css.cjs");
5
+ fileScope.setFileScope("src/themes/momotaro/components/helpers.css.ts?used", "blocks");
6
+ const focusable = css.style({
7
+ ":focus-visible": {
8
+ outline: "2px solid transparent",
9
+ outlineOffset: "2px",
10
+ boxShadow: styles_lib_css_theme_vars_css_cjs.vars.focus.boxShadow,
11
+ transitionDuration: styles_lib_css_theme_vars_css_cjs.vars.transition.fast,
12
+ transitionProperty: "box-shadow"
13
+ },
14
+ ":disabled": {
15
+ opacity: 0.5,
16
+ cursor: "auto"
17
+ },
18
+ // TODO This is for buttons?
19
+ selectors: {
20
+ "&:active:not(:disabled)": {
21
+ transform: "scale(0.9)"
22
+ }
23
+ }
24
+ }, "focusable");
25
+ fileScope.endFileScope();
26
+ exports.focusable = focusable;
@@ -0,0 +1,27 @@
1
+ import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
2
+ import { style } from "@vanilla-extract/css";
3
+ import { vars } from "../../../lib/css/theme/vars.css.mjs";
4
+ setFileScope("src/themes/momotaro/components/helpers.css.ts?used", "blocks");
5
+ const focusable = style({
6
+ ":focus-visible": {
7
+ outline: "2px solid transparent",
8
+ outlineOffset: "2px",
9
+ boxShadow: vars.focus.boxShadow,
10
+ transitionDuration: vars.transition.fast,
11
+ transitionProperty: "box-shadow"
12
+ },
13
+ ":disabled": {
14
+ opacity: 0.5,
15
+ cursor: "auto"
16
+ },
17
+ // TODO This is for buttons?
18
+ selectors: {
19
+ "&:active:not(:disabled)": {
20
+ transform: "scale(0.9)"
21
+ }
22
+ }
23
+ }, "focusable");
24
+ endFileScope();
25
+ export {
26
+ focusable
27
+ };
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  const styles_themes_momotaro_components_button_css_cjs = require("./button.css.cjs");
3
+ const styles_themes_momotaro_components_link_css_cjs = require("./link.css.cjs");
4
+ const styles_themes_momotaro_components_spinner_css_cjs = require("./spinner.css.cjs");
3
5
  const components = {
4
- button: styles_themes_momotaro_components_button_css_cjs.button
6
+ button: styles_themes_momotaro_components_button_css_cjs.button,
7
+ link: styles_themes_momotaro_components_link_css_cjs.link,
8
+ spinner: styles_themes_momotaro_components_spinner_css_cjs.spinner
5
9
  };
6
10
  exports.components = components;
@@ -1,6 +1,10 @@
1
1
  import { button } from "./button.css.mjs";
2
+ import { link } from "./link.css.mjs";
3
+ import { spinner } from "./spinner.css.mjs";
2
4
  const components = {
3
- button
5
+ button,
6
+ link,
7
+ spinner
4
8
  };
5
9
  export {
6
10
  components
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ const fileScope = require("@vanilla-extract/css/fileScope");
3
+ const css = require("@vanilla-extract/css");
4
+ const styles_lib_css_theme_makeComponentTheme_cjs = require("../../../lib/css/theme/makeComponentTheme.cjs");
5
+ const styles_lib_css_atoms_sprinkles_css_cjs = require("../../../lib/css/atoms/sprinkles.css.cjs");
6
+ fileScope.setFileScope("src/themes/momotaro/components/link.css.ts?used", "blocks");
7
+ const link = styles_lib_css_theme_makeComponentTheme_cjs.makeComponentTheme({
8
+ type: "link",
9
+ base: css.style({
10
+ outline: "none",
11
+ border: "none",
12
+ textDecoration: "none",
13
+ background: "transparent",
14
+ ":hover": {
15
+ textDecoration: "underline"
16
+ },
17
+ ":focus-visible": {
18
+ textDecoration: "underline"
19
+ },
20
+ cursor: "pointer"
21
+ }, "link_base"),
22
+ variants: {
23
+ variant: {
24
+ inherit: css.style({
25
+ color: "inherit",
26
+ fontWeight: "inherit"
27
+ }, "link_variants_variant_inherit"),
28
+ primary: styles_lib_css_atoms_sprinkles_css_cjs.atoms({
29
+ color: "primary",
30
+ fontWeight: "medium"
31
+ }),
32
+ secondary: styles_lib_css_atoms_sprinkles_css_cjs.atoms({
33
+ color: "secondary",
34
+ fontWeight: "medium"
35
+ })
36
+ },
37
+ underline: css.style({
38
+ textDecoration: "underline"
39
+ }, "link_variants_underline")
40
+ },
41
+ defaultVariants: {
42
+ variant: "primary",
43
+ underline: true
44
+ }
45
+ });
46
+ fileScope.endFileScope();
47
+ exports.link = link;