@blockle/blocks 0.10.0 → 0.11.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 (161) hide show
  1. package/dist/index.cjs +256 -8
  2. package/dist/index.d.mts +1 -1
  3. package/dist/index.d.ts +1 -1
  4. package/dist/index.mjs +257 -8
  5. package/dist/momotaro.chunk.d.ts +289 -271
  6. package/dist/reset.css.cjs +2 -0
  7. package/dist/reset.css.mjs +2 -0
  8. package/dist/style.css +2851 -0
  9. package/dist/styles/components/display/Divider/Divider.cjs +1 -0
  10. package/dist/styles/components/display/Divider/Divider.mjs +1 -0
  11. package/dist/styles/components/display/Divider/divider.css.cjs +3 -10
  12. package/dist/styles/components/display/Divider/divider.css.mjs +3 -10
  13. package/dist/styles/components/form/Button/Button.css.cjs +3 -10
  14. package/dist/styles/components/form/Button/Button.css.mjs +3 -10
  15. package/dist/styles/components/form/Button/Button.css.ts.vanilla.cjs +1 -0
  16. package/dist/styles/components/form/Button/Button.css.ts.vanilla.mjs +1 -0
  17. package/dist/styles/components/form/Checkbox/checkbox.css.cjs +5 -24
  18. package/dist/styles/components/form/Checkbox/checkbox.css.mjs +5 -24
  19. package/dist/styles/components/form/Checkbox/checkbox.css.ts.vanilla.cjs +1 -0
  20. package/dist/styles/components/form/Checkbox/checkbox.css.ts.vanilla.mjs +1 -0
  21. package/dist/styles/components/form/Input/input.css.cjs +3 -14
  22. package/dist/styles/components/form/Input/input.css.mjs +3 -14
  23. package/dist/styles/components/form/Input/input.css.ts.vanilla.cjs +1 -0
  24. package/dist/styles/components/form/Input/input.css.ts.vanilla.mjs +1 -0
  25. package/dist/styles/components/form/Radio/radio.css.cjs +5 -24
  26. package/dist/styles/components/form/Radio/radio.css.mjs +5 -24
  27. package/dist/styles/components/form/Radio/radio.css.ts.vanilla.cjs +1 -0
  28. package/dist/styles/components/form/Radio/radio.css.ts.vanilla.mjs +1 -0
  29. package/dist/styles/components/form/Select/Select.cjs +2 -2
  30. package/dist/styles/components/form/Select/Select.mjs +2 -2
  31. package/dist/styles/components/form/Select/select.css.cjs +5 -30
  32. package/dist/styles/components/form/Select/select.css.mjs +5 -30
  33. package/dist/styles/components/form/Select/select.css.ts.vanilla.cjs +1 -0
  34. package/dist/styles/components/form/Select/select.css.ts.vanilla.mjs +1 -0
  35. package/dist/styles/components/form/Slider/slider.css.cjs +7 -64
  36. package/dist/styles/components/form/Slider/slider.css.mjs +7 -64
  37. package/dist/styles/components/form/Slider/slider.css.ts.vanilla.cjs +1 -0
  38. package/dist/styles/components/form/Slider/slider.css.ts.vanilla.mjs +1 -0
  39. package/dist/styles/components/form/Switch/switch.css.cjs +4 -20
  40. package/dist/styles/components/form/Switch/switch.css.mjs +4 -20
  41. package/dist/styles/components/form/Switch/switch.css.ts.vanilla.cjs +1 -0
  42. package/dist/styles/components/form/Switch/switch.css.ts.vanilla.mjs +1 -0
  43. package/dist/styles/components/overlay/Dialog/Dialog.cjs +3 -0
  44. package/dist/styles/components/overlay/Dialog/Dialog.mjs +4 -1
  45. package/dist/styles/components/overlay/Dialog/dialog.css.cjs +3 -18
  46. package/dist/styles/components/overlay/Dialog/dialog.css.mjs +3 -18
  47. package/dist/styles/components/overlay/Dialog/dialog.css.ts.vanilla.cjs +1 -0
  48. package/dist/styles/components/overlay/Dialog/dialog.css.ts.vanilla.mjs +1 -0
  49. package/dist/styles/components/typography/Heading/heading.css.cjs +3 -10
  50. package/dist/styles/components/typography/Heading/heading.css.mjs +3 -10
  51. package/dist/styles/components/typography/Heading/heading.css.ts.vanilla.cjs +1 -0
  52. package/dist/styles/components/typography/Heading/heading.css.ts.vanilla.mjs +1 -0
  53. package/dist/styles/components/typography/Text/text.css.cjs +3 -10
  54. package/dist/styles/components/typography/Text/text.css.mjs +3 -10
  55. package/dist/styles/components/typography/Text/text.css.ts.vanilla.cjs +1 -0
  56. package/dist/styles/components/typography/Text/text.css.ts.vanilla.mjs +1 -0
  57. package/dist/styles/entries/reset.css.ts.vanilla.cjs +1 -0
  58. package/dist/styles/entries/reset.css.ts.vanilla.mjs +1 -0
  59. package/dist/styles/lib/css/atoms/sprinkles.css.cjs +2088 -31
  60. package/dist/styles/lib/css/atoms/sprinkles.css.mjs +2088 -31
  61. package/dist/styles/lib/css/atoms/sprinkles.css.ts.vanilla.cjs +1 -0
  62. package/dist/styles/lib/css/atoms/sprinkles.css.ts.vanilla.mjs +1 -0
  63. package/dist/styles/lib/css/layers/layers.css.ts.vanilla.cjs +1 -0
  64. package/dist/styles/lib/css/layers/layers.css.ts.vanilla.mjs +1 -0
  65. package/dist/styles/lib/css/reset/reset.css.ts.vanilla.cjs +1 -0
  66. package/dist/styles/lib/css/reset/reset.css.ts.vanilla.mjs +1 -0
  67. package/dist/styles/lib/theme/makeTheme.cjs +18 -2
  68. package/dist/styles/lib/theme/makeTheme.mjs +17 -1
  69. package/dist/styles/lib/theme/vars.css.cjs +76 -4
  70. package/dist/styles/lib/theme/vars.css.mjs +76 -4
  71. package/dist/styles/lib/theme/vars.css.ts.vanilla.cjs +1 -0
  72. package/dist/styles/lib/theme/vars.css.ts.vanilla.mjs +1 -0
  73. package/dist/styles/themes/momotaro/components/button.css.ts.vanilla.cjs +1 -0
  74. package/dist/styles/themes/momotaro/components/button.css.ts.vanilla.mjs +1 -0
  75. package/dist/styles/themes/momotaro/components/checkbox.css.ts.vanilla.cjs +1 -0
  76. package/dist/styles/themes/momotaro/components/checkbox.css.ts.vanilla.mjs +1 -0
  77. package/dist/styles/themes/momotaro/components/dialog.css.ts.vanilla.cjs +1 -0
  78. package/dist/styles/themes/momotaro/components/dialog.css.ts.vanilla.mjs +1 -0
  79. package/dist/styles/themes/momotaro/components/divider.css.ts.vanilla.cjs +1 -0
  80. package/dist/styles/themes/momotaro/components/divider.css.ts.vanilla.mjs +1 -0
  81. package/dist/styles/themes/momotaro/components/dropdown.css.ts.vanilla.cjs +1 -0
  82. package/dist/styles/themes/momotaro/components/dropdown.css.ts.vanilla.mjs +1 -0
  83. package/dist/styles/themes/momotaro/components/helpers.css.ts.vanilla.cjs +1 -0
  84. package/dist/styles/themes/momotaro/components/helpers.css.ts.vanilla.mjs +1 -0
  85. package/dist/styles/themes/momotaro/components/input.css.ts.vanilla.cjs +1 -0
  86. package/dist/styles/themes/momotaro/components/input.css.ts.vanilla.mjs +1 -0
  87. package/dist/styles/themes/momotaro/components/label.css.ts.vanilla.cjs +1 -0
  88. package/dist/styles/themes/momotaro/components/label.css.ts.vanilla.mjs +1 -0
  89. package/dist/styles/themes/momotaro/components/link.css.ts.vanilla.cjs +1 -0
  90. package/dist/styles/themes/momotaro/components/link.css.ts.vanilla.mjs +1 -0
  91. package/dist/styles/themes/momotaro/components/progress.css.ts.vanilla.cjs +1 -0
  92. package/dist/styles/themes/momotaro/components/progress.css.ts.vanilla.mjs +1 -0
  93. package/dist/styles/themes/momotaro/components/radio.css.ts.vanilla.cjs +1 -0
  94. package/dist/styles/themes/momotaro/components/radio.css.ts.vanilla.mjs +1 -0
  95. package/dist/styles/themes/momotaro/components/select.css.ts.vanilla.cjs +1 -0
  96. package/dist/styles/themes/momotaro/components/select.css.ts.vanilla.mjs +1 -0
  97. package/dist/styles/themes/momotaro/components/slider.css.ts.vanilla.cjs +1 -0
  98. package/dist/styles/themes/momotaro/components/slider.css.ts.vanilla.mjs +1 -0
  99. package/dist/styles/themes/momotaro/components/spinner.css.ts.vanilla.cjs +1 -0
  100. package/dist/styles/themes/momotaro/components/spinner.css.ts.vanilla.mjs +1 -0
  101. package/dist/styles/themes/momotaro/components/switch.css.ts.vanilla.cjs +1 -0
  102. package/dist/styles/themes/momotaro/components/switch.css.ts.vanilla.mjs +1 -0
  103. package/dist/styles/themes/momotaro/momotaro.css.cjs +191 -7
  104. package/dist/styles/themes/momotaro/momotaro.css.mjs +191 -7
  105. package/dist/styles/themes/momotaro/momotaro.css.ts.vanilla.cjs +1 -0
  106. package/dist/styles/themes/momotaro/momotaro.css.ts.vanilla.mjs +1 -0
  107. package/dist/styles/themes/momotaro/tokens.css.ts.vanilla.cjs +1 -0
  108. package/dist/styles/themes/momotaro/tokens.css.ts.vanilla.mjs +1 -0
  109. package/package.json +22 -22
  110. package/dist/styles/lib/css/atoms/atomicProperties.cjs +0 -83
  111. package/dist/styles/lib/css/atoms/atomicProperties.mjs +0 -84
  112. package/dist/styles/lib/css/atoms/breakpoints.cjs +0 -11
  113. package/dist/styles/lib/css/atoms/breakpoints.mjs +0 -12
  114. package/dist/styles/lib/css/layers/layers.css.cjs +0 -7
  115. package/dist/styles/lib/css/layers/layers.css.mjs +0 -8
  116. package/dist/styles/lib/css/style/style.cjs +0 -28
  117. package/dist/styles/lib/css/style/style.mjs +0 -29
  118. package/dist/styles/lib/theme/makeComponentTheme.cjs +0 -5
  119. package/dist/styles/lib/theme/makeComponentTheme.mjs +0 -6
  120. package/dist/styles/lib/theme/makeVanillaTheme.cjs +0 -19
  121. package/dist/styles/lib/theme/makeVanillaTheme.mjs +0 -20
  122. package/dist/styles/lib/theme/tokens.cjs +0 -81
  123. package/dist/styles/lib/theme/tokens.mjs +0 -82
  124. package/dist/styles/themes/momotaro/components/button.css.cjs +0 -103
  125. package/dist/styles/themes/momotaro/components/button.css.mjs +0 -104
  126. package/dist/styles/themes/momotaro/components/checkbox.css.cjs +0 -59
  127. package/dist/styles/themes/momotaro/components/checkbox.css.mjs +0 -60
  128. package/dist/styles/themes/momotaro/components/dialog.css.cjs +0 -68
  129. package/dist/styles/themes/momotaro/components/dialog.css.mjs +0 -69
  130. package/dist/styles/themes/momotaro/components/divider.css.cjs +0 -11
  131. package/dist/styles/themes/momotaro/components/divider.css.mjs +0 -12
  132. package/dist/styles/themes/momotaro/components/dropdown.css.cjs +0 -54
  133. package/dist/styles/themes/momotaro/components/dropdown.css.mjs +0 -55
  134. package/dist/styles/themes/momotaro/components/helpers.css.cjs +0 -43
  135. package/dist/styles/themes/momotaro/components/helpers.css.mjs +0 -44
  136. package/dist/styles/themes/momotaro/components/index.cjs +0 -32
  137. package/dist/styles/themes/momotaro/components/index.mjs +0 -33
  138. package/dist/styles/themes/momotaro/components/input.css.cjs +0 -41
  139. package/dist/styles/themes/momotaro/components/input.css.mjs +0 -42
  140. package/dist/styles/themes/momotaro/components/label.css.cjs +0 -33
  141. package/dist/styles/themes/momotaro/components/label.css.mjs +0 -34
  142. package/dist/styles/themes/momotaro/components/link.css.cjs +0 -47
  143. package/dist/styles/themes/momotaro/components/link.css.mjs +0 -48
  144. package/dist/styles/themes/momotaro/components/progress.css.cjs +0 -55
  145. package/dist/styles/themes/momotaro/components/progress.css.mjs +0 -56
  146. package/dist/styles/themes/momotaro/components/radio.css.cjs +0 -60
  147. package/dist/styles/themes/momotaro/components/radio.css.mjs +0 -61
  148. package/dist/styles/themes/momotaro/components/select.css.cjs +0 -35
  149. package/dist/styles/themes/momotaro/components/select.css.mjs +0 -36
  150. package/dist/styles/themes/momotaro/components/slider.css.cjs +0 -65
  151. package/dist/styles/themes/momotaro/components/slider.css.mjs +0 -66
  152. package/dist/styles/themes/momotaro/components/spinner.css.cjs +0 -43
  153. package/dist/styles/themes/momotaro/components/spinner.css.mjs +0 -44
  154. package/dist/styles/themes/momotaro/components/switch.css.cjs +0 -58
  155. package/dist/styles/themes/momotaro/components/switch.css.mjs +0 -59
  156. package/dist/styles/themes/momotaro/components/transitions.cjs +0 -3
  157. package/dist/styles/themes/momotaro/components/transitions.mjs +0 -4
  158. package/dist/styles/themes/momotaro/tokens.css.cjs +0 -84
  159. package/dist/styles/themes/momotaro/tokens.css.mjs +0 -85
  160. /package/dist/styles/{lib/css/reset/reset.css.cjs → components/display/Divider/divider.css.ts.vanilla.cjs} +0 -0
  161. /package/dist/styles/{lib/css/reset/reset.css.mjs → components/display/Divider/divider.css.ts.vanilla.mjs} +0 -0
@@ -1,60 +0,0 @@
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;
@@ -1,61 +0,0 @@
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
- };
@@ -1,35 +0,0 @@
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
- // wrapper: style({}),
10
- select: styles_lib_css_style_style_cjs.style([{
11
- color: "text",
12
- padding: "large",
13
- border: "none",
14
- outline: "none",
15
- backgroundColor: "white",
16
- borderRadius: "medium",
17
- boxShadow: "medium",
18
- minHeight: 56,
19
- transitionDuration: styles_lib_theme_vars_css_cjs.vars.transition.fast,
20
- transitionProperty: "box-shadow",
21
- ":focus-within": {
22
- outline: "2px solid transparent",
23
- outlineOffset: "2px",
24
- boxShadow: `${styles_lib_theme_vars_css_cjs.vars.shadow.small}, ${styles_lib_theme_vars_css_cjs.vars.focus.boxShadow}`
25
- }
26
- }, styles_themes_momotaro_components_helpers_css_cjs.focusable]),
27
- icon: styles_lib_css_style_style_cjs.style({
28
- paddingInline: "large"
29
- }),
30
- defaultVariants: {
31
- variant: "outline"
32
- }
33
- });
34
- fileScope.endFileScope();
35
- exports.select = select;
@@ -1,36 +0,0 @@
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
- // wrapper: style({}),
9
- select: 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: vars.transition.fast,
19
- transitionProperty: "box-shadow",
20
- ":focus-within": {
21
- outline: "2px solid transparent",
22
- outlineOffset: "2px",
23
- boxShadow: `${vars.shadow.small}, ${vars.focus.boxShadow}`
24
- }
25
- }, focusable]),
26
- icon: style({
27
- paddingInline: "large"
28
- }),
29
- defaultVariants: {
30
- variant: "outline"
31
- }
32
- });
33
- endFileScope();
34
- export {
35
- select
36
- };
@@ -1,65 +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_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;
@@ -1,66 +0,0 @@
1
- import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
2
- import { createVar } from "@vanilla-extract/css";
3
- import { style } from "../../../lib/css/style/style.mjs";
4
- import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.mjs";
5
- import { vars } from "../../../lib/theme/vars.css.mjs";
6
- import { focusable } from "./helpers.css.mjs";
7
- setFileScope("src/themes/momotaro/components/slider.css.ts", "@blockle/blocks");
8
- const trackBackground = createVar("trackBackground");
9
- const filledTrackBackground = createVar("filledTrackBackground");
10
- const thumbBackground = createVar("thumbBackground");
11
- const slider = makeComponentTheme("slider", {
12
- base: style({
13
- blockSize: "20px"
14
- }),
15
- track: style({
16
- blockSize: "4px",
17
- backgroundColor: trackBackground,
18
- borderRadius: "small"
19
- }),
20
- filledTrack: style({
21
- backgroundColor: filledTrackBackground
22
- }),
23
- thumb: style([{
24
- backgroundColor: thumbBackground,
25
- borderRadius: "50%",
26
- height: "16px",
27
- width: "16px"
28
- }, focusable]),
29
- variants: {
30
- size: {
31
- small: style({
32
- inlineSize: "100px"
33
- }),
34
- medium: style({
35
- inlineSize: "200px"
36
- }),
37
- large: style({
38
- inlineSize: "300px"
39
- })
40
- },
41
- colorScheme: {
42
- primary: style({
43
- vars: {
44
- [trackBackground]: vars.color.primaryLight,
45
- [filledTrackBackground]: vars.color.primary,
46
- [thumbBackground]: vars.color.primary
47
- }
48
- }),
49
- secondary: style({
50
- vars: {
51
- [trackBackground]: vars.color.primaryLight,
52
- [filledTrackBackground]: vars.color.secondary,
53
- [thumbBackground]: vars.color.secondary
54
- }
55
- })
56
- }
57
- },
58
- defaultVariants: {
59
- size: "medium",
60
- colorScheme: "primary"
61
- }
62
- });
63
- endFileScope();
64
- export {
65
- slider
66
- };
@@ -1,43 +0,0 @@
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
- fileScope.setFileScope("src/themes/momotaro/components/spinner.css.ts", "@blockle/blocks");
6
- const spinAnimation = css.keyframes({
7
- "0%": {
8
- transform: "rotate(0deg)"
9
- },
10
- "100%": {
11
- transform: "rotate(360deg)"
12
- }
13
- }, "spinAnimation");
14
- const spinner = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("spinner", {
15
- base: css.style({
16
- aspectRatio: "1 / 1",
17
- overflow: "hidden",
18
- borderRadius: "50%",
19
- borderWidth: "3px",
20
- borderStyle: "solid",
21
- borderColor: "currentColor transparent currentColor transparent",
22
- animation: `${spinAnimation} 1.2s linear infinite`
23
- }, "spinner_base"),
24
- variants: {
25
- // note: colors are handled by atoms
26
- size: {
27
- small: css.style({
28
- width: 16
29
- }, "spinner_variants_size_small"),
30
- medium: css.style({
31
- width: 24
32
- }, "spinner_variants_size_medium"),
33
- large: css.style({
34
- width: 32
35
- }, "spinner_variants_size_large")
36
- }
37
- },
38
- defaultVariants: {
39
- size: "small"
40
- }
41
- });
42
- fileScope.endFileScope();
43
- exports.spinner = spinner;
@@ -1,44 +0,0 @@
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
- setFileScope("src/themes/momotaro/components/spinner.css.ts", "@blockle/blocks");
5
- const spinAnimation = keyframes({
6
- "0%": {
7
- transform: "rotate(0deg)"
8
- },
9
- "100%": {
10
- transform: "rotate(360deg)"
11
- }
12
- }, "spinAnimation");
13
- const spinner = makeComponentTheme("spinner", {
14
- base: style({
15
- aspectRatio: "1 / 1",
16
- overflow: "hidden",
17
- borderRadius: "50%",
18
- borderWidth: "3px",
19
- borderStyle: "solid",
20
- borderColor: "currentColor transparent currentColor transparent",
21
- animation: `${spinAnimation} 1.2s linear infinite`
22
- }, "spinner_base"),
23
- variants: {
24
- // note: colors are handled by atoms
25
- size: {
26
- small: style({
27
- width: 16
28
- }, "spinner_variants_size_small"),
29
- medium: style({
30
- width: 24
31
- }, "spinner_variants_size_medium"),
32
- large: style({
33
- width: 32
34
- }, "spinner_variants_size_large")
35
- }
36
- },
37
- defaultVariants: {
38
- size: "small"
39
- }
40
- });
41
- endFileScope();
42
- export {
43
- spinner
44
- };
@@ -1,58 +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_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/switch.css.ts", "@blockle/blocks");
9
- const activeScaleFactor = css.createVar("activeScaleFactor");
10
- const switchTheme = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("switch", {
11
- base: styles_lib_css_style_style_cjs.style([{
12
- width: 52,
13
- height: 32,
14
- borderRadius: "xlarge",
15
- backgroundColor: "textLight",
16
- "@media": {
17
- "(prefers-reduced-motion: no-preference)": {
18
- transition: `background-color 120ms linear, box-shadow ${styles_lib_theme_vars_css_cjs.vars.transition.fast}`
19
- }
20
- },
21
- selectors: {
22
- '&[data-checked="true"]': {
23
- backgroundColor: styles_lib_theme_vars_css_cjs.vars.color.secondary
24
- }
25
- },
26
- // Scale the switch when it's `:active`
27
- vars: {
28
- [activeScaleFactor]: "1"
29
- },
30
- ":active": {
31
- vars: {
32
- [activeScaleFactor]: "0.96"
33
- }
34
- }
35
- }, styles_themes_momotaro_components_helpers_css_cjs.focusable]),
36
- slider: styles_lib_css_style_style_cjs.style({
37
- width: 24,
38
- height: 24,
39
- top: 4,
40
- left: 4,
41
- transform: `translateX(0) scale(calc(0.9 * ${activeScaleFactor}))`,
42
- position: "absolute",
43
- backgroundColor: "white",
44
- borderRadius: "xlarge",
45
- selectors: {
46
- '&[data-checked="true"]': {
47
- transform: `translateX(20px) scale(${activeScaleFactor})`
48
- }
49
- },
50
- "@media": {
51
- "(prefers-reduced-motion: no-preference)": {
52
- transition: "transform 120ms ease-out"
53
- }
54
- }
55
- })
56
- });
57
- fileScope.endFileScope();
58
- exports.switchTheme = switchTheme;
@@ -1,59 +0,0 @@
1
- import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
2
- import { createVar } from "@vanilla-extract/css";
3
- import { style } from "../../../lib/css/style/style.mjs";
4
- import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.mjs";
5
- import { vars } from "../../../lib/theme/vars.css.mjs";
6
- import { focusable } from "./helpers.css.mjs";
7
- setFileScope("src/themes/momotaro/components/switch.css.ts", "@blockle/blocks");
8
- const activeScaleFactor = createVar("activeScaleFactor");
9
- const switchTheme = makeComponentTheme("switch", {
10
- base: style([{
11
- width: 52,
12
- height: 32,
13
- borderRadius: "xlarge",
14
- backgroundColor: "textLight",
15
- "@media": {
16
- "(prefers-reduced-motion: no-preference)": {
17
- transition: `background-color 120ms linear, box-shadow ${vars.transition.fast}`
18
- }
19
- },
20
- selectors: {
21
- '&[data-checked="true"]': {
22
- backgroundColor: vars.color.secondary
23
- }
24
- },
25
- // Scale the switch when it's `:active`
26
- vars: {
27
- [activeScaleFactor]: "1"
28
- },
29
- ":active": {
30
- vars: {
31
- [activeScaleFactor]: "0.96"
32
- }
33
- }
34
- }, focusable]),
35
- slider: style({
36
- width: 24,
37
- height: 24,
38
- top: 4,
39
- left: 4,
40
- transform: `translateX(0) scale(calc(0.9 * ${activeScaleFactor}))`,
41
- position: "absolute",
42
- backgroundColor: "white",
43
- borderRadius: "xlarge",
44
- selectors: {
45
- '&[data-checked="true"]': {
46
- transform: `translateX(20px) scale(${activeScaleFactor})`
47
- }
48
- },
49
- "@media": {
50
- "(prefers-reduced-motion: no-preference)": {
51
- transition: "transform 120ms ease-out"
52
- }
53
- }
54
- })
55
- });
56
- endFileScope();
57
- export {
58
- switchTheme
59
- };
@@ -1,3 +0,0 @@
1
- "use strict";
2
- const bounceOut = "cubic-bezier(.65,.36,.55,1.65)";
3
- exports.bounceOut = bounceOut;
@@ -1,4 +0,0 @@
1
- const bounceOut = "cubic-bezier(.65,.36,.55,1.65)";
2
- export {
3
- bounceOut
4
- };
@@ -1,84 +0,0 @@
1
- "use strict";
2
- const fileScope = require("@vanilla-extract/css/fileScope");
3
- fileScope.setFileScope("src/themes/momotaro/tokens.css.ts", "@blockle/blocks");
4
- const tokens = {
5
- border: {
6
- radius: {
7
- small: "4px",
8
- medium: "8px",
9
- large: "16px",
10
- xlarge: "32px"
11
- },
12
- width: {
13
- small: "1px",
14
- medium: "2px",
15
- large: "4px"
16
- }
17
- },
18
- color: {
19
- white: "#fff",
20
- black: "#000",
21
- body: "#F4F6FA",
22
- primaryLight: "#E4DFFF",
23
- primary: "#7265E3",
24
- primaryDark: "#4D3CAB",
25
- secondaryLight: "#7CF5CD",
26
- secondary: "#7FE3F0",
27
- secondaryDark: "#68C6EF",
28
- text: "#2D3142",
29
- textLight: "#9C9EB9",
30
- textDark: "#4C5980",
31
- danger: "#FF9B90",
32
- link: "#7265E3"
33
- },
34
- shadow: {
35
- small: "0px 4px 8px rgba(0, 0, 0, 0.08)",
36
- medium: "0px 8px 16px rgba(0, 0, 0, 0.08)",
37
- large: "0px 16px 24px rgba(0, 0, 0, 0.08)"
38
- },
39
- focus: {
40
- boxShadow: "0 0 1px 2px #AF8EFF"
41
- },
42
- spacing: {
43
- none: "0px",
44
- gutter: "28px",
45
- xsmall: "4px",
46
- small: "8px",
47
- medium: "12px",
48
- large: "16px",
49
- xlarge: "24px"
50
- },
51
- transition: {
52
- slow: "240ms",
53
- normal: "120ms",
54
- fast: "80ms"
55
- },
56
- typography: {
57
- fontFamily: {
58
- body: '"Rubik", sans-serif',
59
- primary: '"Rubik", sans-serif',
60
- secondary: '"Rubik", sans-serif'
61
- },
62
- fontSize: {
63
- xsmall: "12px",
64
- small: "14px",
65
- medium: "16px",
66
- large: "20px",
67
- xlarge: "24px"
68
- },
69
- fontWeight: {
70
- regular: 400,
71
- medium: 500,
72
- strong: 700
73
- },
74
- lineHeight: {
75
- xsmall: "1rem",
76
- small: "1.25rem",
77
- medium: "1.5rem",
78
- large: "1.75rem",
79
- xlarge: "2rem"
80
- }
81
- }
82
- };
83
- fileScope.endFileScope();
84
- exports.tokens = tokens;