@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.
Files changed (153) hide show
  1. package/dist/index.cjs +10 -42
  2. package/dist/index.mjs +4 -36
  3. package/dist/momotaro.chunk.d.ts +266 -266
  4. package/dist/reset.css.cjs +0 -2
  5. package/dist/reset.css.mjs +0 -2
  6. package/dist/styles/components/display/Divider/divider.css.cjs +10 -3
  7. package/dist/styles/components/display/Divider/divider.css.mjs +10 -3
  8. package/dist/styles/components/form/Button/Button.css.cjs +10 -3
  9. package/dist/styles/components/form/Button/Button.css.mjs +10 -3
  10. package/dist/styles/components/form/Checkbox/checkbox.css.cjs +24 -5
  11. package/dist/styles/components/form/Checkbox/checkbox.css.mjs +24 -5
  12. package/dist/styles/components/form/Input/input.css.cjs +14 -3
  13. package/dist/styles/components/form/Input/input.css.mjs +14 -3
  14. package/dist/styles/components/form/Radio/radio.css.cjs +24 -5
  15. package/dist/styles/components/form/Radio/radio.css.mjs +24 -5
  16. package/dist/styles/components/form/Select/select.css.cjs +30 -5
  17. package/dist/styles/components/form/Select/select.css.mjs +30 -5
  18. package/dist/styles/components/form/Slider/slider.css.cjs +64 -7
  19. package/dist/styles/components/form/Slider/slider.css.mjs +64 -7
  20. package/dist/styles/components/form/Switch/switch.css.cjs +20 -4
  21. package/dist/styles/components/form/Switch/switch.css.mjs +20 -4
  22. package/dist/styles/components/overlay/Dialog/dialog.css.cjs +18 -3
  23. package/dist/styles/components/overlay/Dialog/dialog.css.mjs +18 -3
  24. package/dist/styles/components/typography/Heading/heading.css.cjs +10 -3
  25. package/dist/styles/components/typography/Heading/heading.css.mjs +10 -3
  26. package/dist/styles/components/typography/Text/text.css.cjs +10 -3
  27. package/dist/styles/components/typography/Text/text.css.mjs +10 -3
  28. package/dist/styles/lib/css/atoms/atomicProperties.cjs +83 -0
  29. package/dist/styles/lib/css/atoms/atomicProperties.mjs +84 -0
  30. package/dist/styles/lib/css/atoms/breakpoints.cjs +11 -0
  31. package/dist/styles/lib/css/atoms/breakpoints.mjs +12 -0
  32. package/dist/styles/lib/css/atoms/sprinkles.css.cjs +31 -2088
  33. package/dist/styles/lib/css/atoms/sprinkles.css.mjs +31 -2088
  34. package/dist/styles/lib/css/layers/layers.css.cjs +7 -0
  35. package/dist/styles/lib/css/layers/layers.css.mjs +8 -0
  36. package/dist/styles/lib/css/style/style.cjs +28 -0
  37. package/dist/styles/lib/css/style/style.mjs +29 -0
  38. package/dist/styles/lib/theme/makeComponentTheme.cjs +5 -0
  39. package/dist/styles/lib/theme/makeComponentTheme.mjs +6 -0
  40. package/dist/styles/lib/theme/makeTheme.cjs +2 -18
  41. package/dist/styles/lib/theme/makeTheme.mjs +1 -17
  42. package/dist/styles/lib/theme/makeVanillaTheme.cjs +19 -0
  43. package/dist/styles/lib/theme/makeVanillaTheme.mjs +20 -0
  44. package/dist/styles/lib/theme/tokens.cjs +81 -0
  45. package/dist/styles/lib/theme/tokens.mjs +82 -0
  46. package/dist/styles/lib/theme/vars.css.cjs +4 -76
  47. package/dist/styles/lib/theme/vars.css.mjs +4 -76
  48. package/dist/styles/themes/momotaro/components/button.css.cjs +103 -0
  49. package/dist/styles/themes/momotaro/components/button.css.mjs +104 -0
  50. package/dist/styles/themes/momotaro/components/checkbox.css.cjs +59 -0
  51. package/dist/styles/themes/momotaro/components/checkbox.css.mjs +60 -0
  52. package/dist/styles/themes/momotaro/components/dialog.css.cjs +68 -0
  53. package/dist/styles/themes/momotaro/components/dialog.css.mjs +69 -0
  54. package/dist/styles/themes/momotaro/components/divider.css.cjs +11 -0
  55. package/dist/styles/themes/momotaro/components/divider.css.mjs +12 -0
  56. package/dist/styles/themes/momotaro/components/dropdown.css.cjs +53 -0
  57. package/dist/styles/themes/momotaro/components/dropdown.css.mjs +54 -0
  58. package/dist/styles/themes/momotaro/components/helpers.css.cjs +43 -0
  59. package/dist/styles/themes/momotaro/components/helpers.css.mjs +44 -0
  60. package/dist/styles/themes/momotaro/components/index.cjs +32 -0
  61. package/dist/styles/themes/momotaro/components/index.mjs +33 -0
  62. package/dist/styles/themes/momotaro/components/input.css.cjs +41 -0
  63. package/dist/styles/themes/momotaro/components/input.css.mjs +42 -0
  64. package/dist/styles/themes/momotaro/components/label.css.cjs +33 -0
  65. package/dist/styles/themes/momotaro/components/label.css.mjs +34 -0
  66. package/dist/styles/themes/momotaro/components/link.css.cjs +47 -0
  67. package/dist/styles/themes/momotaro/components/link.css.mjs +48 -0
  68. package/dist/styles/themes/momotaro/components/progress.css.cjs +55 -0
  69. package/dist/styles/themes/momotaro/components/progress.css.mjs +56 -0
  70. package/dist/styles/themes/momotaro/components/radio.css.cjs +60 -0
  71. package/dist/styles/themes/momotaro/components/radio.css.mjs +61 -0
  72. package/dist/styles/themes/momotaro/components/select.css.cjs +44 -0
  73. package/dist/styles/themes/momotaro/components/select.css.mjs +45 -0
  74. package/dist/styles/themes/momotaro/components/slider.css.cjs +65 -0
  75. package/dist/styles/themes/momotaro/components/slider.css.mjs +66 -0
  76. package/dist/styles/themes/momotaro/components/spinner.css.cjs +43 -0
  77. package/dist/styles/themes/momotaro/components/spinner.css.mjs +44 -0
  78. package/dist/styles/themes/momotaro/components/switch.css.cjs +58 -0
  79. package/dist/styles/themes/momotaro/components/switch.css.mjs +59 -0
  80. package/dist/styles/themes/momotaro/components/transitions.cjs +3 -0
  81. package/dist/styles/themes/momotaro/components/transitions.mjs +4 -0
  82. package/dist/styles/themes/momotaro/momotaro.css.cjs +7 -191
  83. package/dist/styles/themes/momotaro/momotaro.css.mjs +7 -191
  84. package/dist/styles/themes/momotaro/tokens.css.cjs +84 -0
  85. package/dist/styles/themes/momotaro/tokens.css.mjs +85 -0
  86. package/package.json +1 -1
  87. package/dist/style.css +0 -2851
  88. package/dist/styles/components/form/Button/Button.css.ts.vanilla.cjs +0 -1
  89. package/dist/styles/components/form/Button/Button.css.ts.vanilla.mjs +0 -1
  90. package/dist/styles/components/form/Checkbox/checkbox.css.ts.vanilla.cjs +0 -1
  91. package/dist/styles/components/form/Checkbox/checkbox.css.ts.vanilla.mjs +0 -1
  92. package/dist/styles/components/form/Input/input.css.ts.vanilla.cjs +0 -1
  93. package/dist/styles/components/form/Input/input.css.ts.vanilla.mjs +0 -1
  94. package/dist/styles/components/form/Radio/radio.css.ts.vanilla.cjs +0 -1
  95. package/dist/styles/components/form/Radio/radio.css.ts.vanilla.mjs +0 -1
  96. package/dist/styles/components/form/Select/select.css.ts.vanilla.cjs +0 -1
  97. package/dist/styles/components/form/Select/select.css.ts.vanilla.mjs +0 -1
  98. package/dist/styles/components/form/Slider/slider.css.ts.vanilla.cjs +0 -1
  99. package/dist/styles/components/form/Slider/slider.css.ts.vanilla.mjs +0 -1
  100. package/dist/styles/components/form/Switch/switch.css.ts.vanilla.cjs +0 -1
  101. package/dist/styles/components/form/Switch/switch.css.ts.vanilla.mjs +0 -1
  102. package/dist/styles/components/overlay/Dialog/dialog.css.ts.vanilla.cjs +0 -1
  103. package/dist/styles/components/overlay/Dialog/dialog.css.ts.vanilla.mjs +0 -1
  104. package/dist/styles/components/typography/Heading/heading.css.ts.vanilla.cjs +0 -1
  105. package/dist/styles/components/typography/Heading/heading.css.ts.vanilla.mjs +0 -1
  106. package/dist/styles/components/typography/Text/text.css.ts.vanilla.cjs +0 -1
  107. package/dist/styles/components/typography/Text/text.css.ts.vanilla.mjs +0 -1
  108. package/dist/styles/entries/reset.css.ts.vanilla.cjs +0 -1
  109. package/dist/styles/entries/reset.css.ts.vanilla.mjs +0 -1
  110. package/dist/styles/lib/css/atoms/sprinkles.css.ts.vanilla.cjs +0 -1
  111. package/dist/styles/lib/css/atoms/sprinkles.css.ts.vanilla.mjs +0 -1
  112. package/dist/styles/lib/css/layers/layers.css.ts.vanilla.cjs +0 -1
  113. package/dist/styles/lib/css/layers/layers.css.ts.vanilla.mjs +0 -1
  114. package/dist/styles/lib/css/reset/reset.css.ts.vanilla.cjs +0 -1
  115. package/dist/styles/lib/css/reset/reset.css.ts.vanilla.mjs +0 -1
  116. package/dist/styles/lib/theme/vars.css.ts.vanilla.cjs +0 -1
  117. package/dist/styles/lib/theme/vars.css.ts.vanilla.mjs +0 -1
  118. package/dist/styles/themes/momotaro/components/button.css.ts.vanilla.cjs +0 -1
  119. package/dist/styles/themes/momotaro/components/button.css.ts.vanilla.mjs +0 -1
  120. package/dist/styles/themes/momotaro/components/checkbox.css.ts.vanilla.cjs +0 -1
  121. package/dist/styles/themes/momotaro/components/checkbox.css.ts.vanilla.mjs +0 -1
  122. package/dist/styles/themes/momotaro/components/dialog.css.ts.vanilla.cjs +0 -1
  123. package/dist/styles/themes/momotaro/components/dialog.css.ts.vanilla.mjs +0 -1
  124. package/dist/styles/themes/momotaro/components/divider.css.ts.vanilla.cjs +0 -1
  125. package/dist/styles/themes/momotaro/components/divider.css.ts.vanilla.mjs +0 -1
  126. package/dist/styles/themes/momotaro/components/dropdown.css.ts.vanilla.cjs +0 -1
  127. package/dist/styles/themes/momotaro/components/dropdown.css.ts.vanilla.mjs +0 -1
  128. package/dist/styles/themes/momotaro/components/helpers.css.ts.vanilla.cjs +0 -1
  129. package/dist/styles/themes/momotaro/components/helpers.css.ts.vanilla.mjs +0 -1
  130. package/dist/styles/themes/momotaro/components/input.css.ts.vanilla.cjs +0 -1
  131. package/dist/styles/themes/momotaro/components/input.css.ts.vanilla.mjs +0 -1
  132. package/dist/styles/themes/momotaro/components/label.css.ts.vanilla.cjs +0 -1
  133. package/dist/styles/themes/momotaro/components/label.css.ts.vanilla.mjs +0 -1
  134. package/dist/styles/themes/momotaro/components/link.css.ts.vanilla.cjs +0 -1
  135. package/dist/styles/themes/momotaro/components/link.css.ts.vanilla.mjs +0 -1
  136. package/dist/styles/themes/momotaro/components/progress.css.ts.vanilla.cjs +0 -1
  137. package/dist/styles/themes/momotaro/components/progress.css.ts.vanilla.mjs +0 -1
  138. package/dist/styles/themes/momotaro/components/radio.css.ts.vanilla.cjs +0 -1
  139. package/dist/styles/themes/momotaro/components/radio.css.ts.vanilla.mjs +0 -1
  140. package/dist/styles/themes/momotaro/components/select.css.ts.vanilla.cjs +0 -1
  141. package/dist/styles/themes/momotaro/components/select.css.ts.vanilla.mjs +0 -1
  142. package/dist/styles/themes/momotaro/components/slider.css.ts.vanilla.cjs +0 -1
  143. package/dist/styles/themes/momotaro/components/slider.css.ts.vanilla.mjs +0 -1
  144. package/dist/styles/themes/momotaro/components/spinner.css.ts.vanilla.cjs +0 -1
  145. package/dist/styles/themes/momotaro/components/spinner.css.ts.vanilla.mjs +0 -1
  146. package/dist/styles/themes/momotaro/components/switch.css.ts.vanilla.cjs +0 -1
  147. package/dist/styles/themes/momotaro/components/switch.css.ts.vanilla.mjs +0 -1
  148. package/dist/styles/themes/momotaro/momotaro.css.ts.vanilla.cjs +0 -1
  149. package/dist/styles/themes/momotaro/momotaro.css.ts.vanilla.mjs +0 -1
  150. package/dist/styles/themes/momotaro/tokens.css.ts.vanilla.cjs +0 -1
  151. package/dist/styles/themes/momotaro/tokens.css.ts.vanilla.mjs +0 -1
  152. /package/dist/styles/{components/display/Divider/divider.css.ts.vanilla.cjs → lib/css/reset/reset.css.cjs} +0 -0
  153. /package/dist/styles/{components/display/Divider/divider.css.ts.vanilla.mjs → lib/css/reset/reset.css.mjs} +0 -0
@@ -0,0 +1,41 @@
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;
@@ -0,0 +1,42 @@
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
+ };
@@ -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", "@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;
@@ -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", "@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
+ };
@@ -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_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;
@@ -0,0 +1,48 @@
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
+ };
@@ -0,0 +1,55 @@
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;
@@ -0,0 +1,56 @@
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
+ };
@@ -0,0 +1,60 @@
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", "@blockle/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
+ inlineSize: 24,
16
+ blockSize: 24,
17
+ borderRadius: 12,
18
+ "@media": {
19
+ "(prefers-reduced-motion: no-preference)": {
20
+ transition: `background-color ${styles_lib_theme_vars_css_cjs.vars.transition.fast}, box-shadow ${styles_lib_theme_vars_css_cjs.vars.transition.fast}`
21
+ }
22
+ },
23
+ ":hover": {
24
+ backgroundColor: styles_lib_theme_vars_css_cjs.vars.color.primaryDark
25
+ },
26
+ selectors: {
27
+ "&:has(input:checked):not(:hover)": {
28
+ backgroundColor: styles_lib_theme_vars_css_cjs.vars.color.primary
29
+ }
30
+ }
31
+ }, styles_lib_css_atoms_sprinkles_css_cjs.atoms({
32
+ backgroundColor: "primaryLight"
33
+ }), styles_themes_momotaro_components_helpers_css_cjs.focusable], "radio_base"),
34
+ icon: css.style({
35
+ height: 12,
36
+ width: 12,
37
+ backgroundColor: "white",
38
+ borderRadius: "8px",
39
+ transform: "scale(0)",
40
+ "@media": {
41
+ "(prefers-reduced-motion: no-preference)": {
42
+ transition: `transform ${styles_lib_theme_vars_css_cjs.vars.transition.normal} ${styles_themes_momotaro_components_transitions_cjs.bounceOut}`
43
+ }
44
+ },
45
+ selectors: {
46
+ "input:checked ~ &": {
47
+ transform: "scale(1)"
48
+ }
49
+ }
50
+ }, "radio_icon"),
51
+ label: styles_lib_css_atoms_sprinkles_css_cjs.atoms({
52
+ display: "flex",
53
+ flexDirection: "row",
54
+ padding: "xsmall",
55
+ gap: "medium",
56
+ cursor: "pointer"
57
+ })
58
+ });
59
+ fileScope.endFileScope();
60
+ exports.radio = radio;
@@ -0,0 +1,61 @@
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", "@blockle/blocks");
9
+ const radio = makeComponentTheme("radio", {
10
+ base: style([{
11
+ display: "flex",
12
+ alignItems: "center",
13
+ justifyContent: "center",
14
+ inlineSize: 24,
15
+ blockSize: 24,
16
+ borderRadius: 12,
17
+ "@media": {
18
+ "(prefers-reduced-motion: no-preference)": {
19
+ transition: `background-color ${vars.transition.fast}, box-shadow ${vars.transition.fast}`
20
+ }
21
+ },
22
+ ":hover": {
23
+ backgroundColor: vars.color.primaryDark
24
+ },
25
+ selectors: {
26
+ "&:has(input:checked):not(:hover)": {
27
+ backgroundColor: vars.color.primary
28
+ }
29
+ }
30
+ }, atoms({
31
+ backgroundColor: "primaryLight"
32
+ }), focusable], "radio_base"),
33
+ icon: style({
34
+ height: 12,
35
+ width: 12,
36
+ backgroundColor: "white",
37
+ borderRadius: "8px",
38
+ transform: "scale(0)",
39
+ "@media": {
40
+ "(prefers-reduced-motion: no-preference)": {
41
+ transition: `transform ${vars.transition.normal} ${bounceOut}`
42
+ }
43
+ },
44
+ selectors: {
45
+ "input:checked ~ &": {
46
+ transform: "scale(1)"
47
+ }
48
+ }
49
+ }, "radio_icon"),
50
+ label: atoms({
51
+ display: "flex",
52
+ flexDirection: "row",
53
+ padding: "xsmall",
54
+ gap: "medium",
55
+ cursor: "pointer"
56
+ })
57
+ });
58
+ endFileScope();
59
+ export {
60
+ radio
61
+ };
@@ -0,0 +1,44 @@
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
+ 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
+ fileScope.setFileScope("src/themes/momotaro/components/select.css.ts", "@blockle/blocks");
8
+ const select = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("select", {
9
+ select: styles_lib_css_style_style_cjs.style([{
10
+ color: "text",
11
+ padding: "large",
12
+ border: "none",
13
+ outline: "none",
14
+ backgroundColor: "white",
15
+ borderRadius: "medium",
16
+ boxShadow: "medium",
17
+ minHeight: 56,
18
+ transitionDuration: styles_lib_theme_vars_css_cjs.vars.transition.fast,
19
+ transitionProperty: "box-shadow",
20
+ ":focus-within": {
21
+ outline: "2px solid transparent",
22
+ outlineOffset: "2px",
23
+ boxShadow: `${styles_lib_theme_vars_css_cjs.vars.shadow.small}, ${styles_lib_theme_vars_css_cjs.vars.focus.boxShadow}`
24
+ }
25
+ }, styles_themes_momotaro_components_helpers_css_cjs.focusable]),
26
+ variants: {
27
+ variant: {
28
+ outline: styles_lib_css_style_style_cjs.style({
29
+ borderWidth: "small",
30
+ borderStyle: "solid",
31
+ borderColor: "primary"
32
+ }),
33
+ solid: styles_lib_css_style_style_cjs.style({})
34
+ }
35
+ },
36
+ icon: styles_lib_css_style_style_cjs.style({
37
+ paddingInline: "large"
38
+ }),
39
+ defaultVariants: {
40
+ variant: "solid"
41
+ }
42
+ });
43
+ fileScope.endFileScope();
44
+ exports.select = select;
@@ -0,0 +1,45 @@
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
+ import { vars } from "../../../lib/theme/vars.css.mjs";
5
+ import { focusable } from "./helpers.css.mjs";
6
+ setFileScope("src/themes/momotaro/components/select.css.ts", "@blockle/blocks");
7
+ const select = makeComponentTheme("select", {
8
+ select: style([{
9
+ color: "text",
10
+ padding: "large",
11
+ border: "none",
12
+ outline: "none",
13
+ backgroundColor: "white",
14
+ borderRadius: "medium",
15
+ boxShadow: "medium",
16
+ minHeight: 56,
17
+ transitionDuration: vars.transition.fast,
18
+ transitionProperty: "box-shadow",
19
+ ":focus-within": {
20
+ outline: "2px solid transparent",
21
+ outlineOffset: "2px",
22
+ boxShadow: `${vars.shadow.small}, ${vars.focus.boxShadow}`
23
+ }
24
+ }, focusable]),
25
+ variants: {
26
+ variant: {
27
+ outline: style({
28
+ borderWidth: "small",
29
+ borderStyle: "solid",
30
+ borderColor: "primary"
31
+ }),
32
+ solid: style({})
33
+ }
34
+ },
35
+ icon: style({
36
+ paddingInline: "large"
37
+ }),
38
+ defaultVariants: {
39
+ variant: "solid"
40
+ }
41
+ });
42
+ endFileScope();
43
+ export {
44
+ select
45
+ };
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ const fileScope = require("@vanilla-extract/css/fileScope");
3
+ const css = require("@vanilla-extract/css");
4
+ const styles_lib_css_style_style_cjs = require("../../../lib/css/style/style.cjs");
5
+ const styles_lib_theme_makeComponentTheme_cjs = require("../../../lib/theme/makeComponentTheme.cjs");
6
+ const styles_lib_theme_vars_css_cjs = require("../../../lib/theme/vars.css.cjs");
7
+ const styles_themes_momotaro_components_helpers_css_cjs = require("./helpers.css.cjs");
8
+ fileScope.setFileScope("src/themes/momotaro/components/slider.css.ts", "@blockle/blocks");
9
+ const trackBackground = css.createVar("trackBackground");
10
+ const filledTrackBackground = css.createVar("filledTrackBackground");
11
+ const thumbBackground = css.createVar("thumbBackground");
12
+ const slider = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("slider", {
13
+ base: styles_lib_css_style_style_cjs.style({
14
+ blockSize: "20px"
15
+ }),
16
+ track: styles_lib_css_style_style_cjs.style({
17
+ blockSize: "4px",
18
+ backgroundColor: trackBackground,
19
+ borderRadius: "small"
20
+ }),
21
+ filledTrack: styles_lib_css_style_style_cjs.style({
22
+ backgroundColor: filledTrackBackground
23
+ }),
24
+ thumb: styles_lib_css_style_style_cjs.style([{
25
+ backgroundColor: thumbBackground,
26
+ borderRadius: "50%",
27
+ height: "16px",
28
+ width: "16px"
29
+ }, styles_themes_momotaro_components_helpers_css_cjs.focusable]),
30
+ variants: {
31
+ size: {
32
+ small: styles_lib_css_style_style_cjs.style({
33
+ inlineSize: "100px"
34
+ }),
35
+ medium: styles_lib_css_style_style_cjs.style({
36
+ inlineSize: "200px"
37
+ }),
38
+ large: styles_lib_css_style_style_cjs.style({
39
+ inlineSize: "300px"
40
+ })
41
+ },
42
+ colorScheme: {
43
+ primary: styles_lib_css_style_style_cjs.style({
44
+ vars: {
45
+ [trackBackground]: styles_lib_theme_vars_css_cjs.vars.color.primaryLight,
46
+ [filledTrackBackground]: styles_lib_theme_vars_css_cjs.vars.color.primary,
47
+ [thumbBackground]: styles_lib_theme_vars_css_cjs.vars.color.primary
48
+ }
49
+ }),
50
+ secondary: styles_lib_css_style_style_cjs.style({
51
+ vars: {
52
+ [trackBackground]: styles_lib_theme_vars_css_cjs.vars.color.primaryLight,
53
+ [filledTrackBackground]: styles_lib_theme_vars_css_cjs.vars.color.secondary,
54
+ [thumbBackground]: styles_lib_theme_vars_css_cjs.vars.color.secondary
55
+ }
56
+ })
57
+ }
58
+ },
59
+ defaultVariants: {
60
+ size: "medium",
61
+ colorScheme: "primary"
62
+ }
63
+ });
64
+ fileScope.endFileScope();
65
+ exports.slider = slider;