@blockle/blocks 0.20.0-alpha1 → 1.0.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 (267) hide show
  1. package/README.md +1 -70
  2. package/dist/index.cjs +21 -71
  3. package/dist/index.d.ts +3 -1
  4. package/dist/index.js +3 -0
  5. package/dist/index.spec.d.ts +0 -0
  6. package/dist/reset.cjs +1 -2
  7. package/dist/reset.d.ts +0 -2
  8. package/dist/reset.js +1 -0
  9. package/package.json +24 -81
  10. package/LICENSE +0 -21
  11. package/dist/components/accessibility/VisuallyHidden/VisuallyHidden.cjs +0 -19
  12. package/dist/components/accessibility/VisuallyHidden/VisuallyHidden.mjs +0 -20
  13. package/dist/components/accessibility/VisuallyHidden/index.cjs +0 -1
  14. package/dist/components/accessibility/VisuallyHidden/index.mjs +0 -1
  15. package/dist/components/accessibility/VisuallyHidden/visually-hidden.css.cjs +0 -15
  16. package/dist/components/accessibility/VisuallyHidden/visually-hidden.css.mjs +0 -16
  17. package/dist/components/display/Divider/Divider.cjs +0 -25
  18. package/dist/components/display/Divider/Divider.mjs +0 -26
  19. package/dist/components/display/Divider/divider.css.cjs +0 -15
  20. package/dist/components/display/Divider/divider.css.mjs +0 -16
  21. package/dist/components/display/Divider/index.cjs +0 -1
  22. package/dist/components/display/Divider/index.mjs +0 -1
  23. package/dist/components/feedback/Progress/Progress.cjs +0 -53
  24. package/dist/components/feedback/Progress/Progress.mjs +0 -54
  25. package/dist/components/feedback/Progress/index.cjs +0 -1
  26. package/dist/components/feedback/Progress/index.mjs +0 -1
  27. package/dist/components/feedback/Spinner/Spinner.cjs +0 -25
  28. package/dist/components/feedback/Spinner/Spinner.mjs +0 -26
  29. package/dist/components/feedback/Spinner/index.cjs +0 -1
  30. package/dist/components/feedback/Spinner/index.mjs +0 -1
  31. package/dist/components/form/Button/Button.cjs +0 -58
  32. package/dist/components/form/Button/Button.css.cjs +0 -15
  33. package/dist/components/form/Button/Button.css.mjs +0 -16
  34. package/dist/components/form/Button/Button.mjs +0 -59
  35. package/dist/components/form/Button/index.cjs +0 -1
  36. package/dist/components/form/Button/index.mjs +0 -1
  37. package/dist/components/form/Checkbox/Checkbox.cjs +0 -78
  38. package/dist/components/form/Checkbox/Checkbox.mjs +0 -79
  39. package/dist/components/form/Checkbox/checkbox.css.cjs +0 -31
  40. package/dist/components/form/Checkbox/checkbox.css.mjs +0 -32
  41. package/dist/components/form/Checkbox/index.cjs +0 -1
  42. package/dist/components/form/Checkbox/index.mjs +0 -1
  43. package/dist/components/form/Input/Input.cjs +0 -50
  44. package/dist/components/form/Input/Input.mjs +0 -51
  45. package/dist/components/form/Input/index.cjs +0 -1
  46. package/dist/components/form/Input/index.mjs +0 -1
  47. package/dist/components/form/Input/input.css.cjs +0 -20
  48. package/dist/components/form/Input/input.css.mjs +0 -21
  49. package/dist/components/form/Label/Label.cjs +0 -29
  50. package/dist/components/form/Label/Label.mjs +0 -30
  51. package/dist/components/form/Label/index.cjs +0 -1
  52. package/dist/components/form/Label/index.mjs +0 -1
  53. package/dist/components/form/Radio/Radio.cjs +0 -47
  54. package/dist/components/form/Radio/Radio.mjs +0 -48
  55. package/dist/components/form/Radio/RadioGroup.cjs +0 -1
  56. package/dist/components/form/Radio/RadioGroup.mjs +0 -1
  57. package/dist/components/form/Radio/index.cjs +0 -1
  58. package/dist/components/form/Radio/index.mjs +0 -1
  59. package/dist/components/form/Radio/radio.css.cjs +0 -31
  60. package/dist/components/form/Radio/radio.css.mjs +0 -32
  61. package/dist/components/form/Select/Select.cjs +0 -64
  62. package/dist/components/form/Select/Select.mjs +0 -65
  63. package/dist/components/form/Select/index.cjs +0 -1
  64. package/dist/components/form/Select/index.mjs +0 -1
  65. package/dist/components/form/Select/select.css.cjs +0 -37
  66. package/dist/components/form/Select/select.css.mjs +0 -38
  67. package/dist/components/form/Slider/Slider.cjs +0 -139
  68. package/dist/components/form/Slider/Slider.mjs +0 -142
  69. package/dist/components/form/Slider/index.cjs +0 -1
  70. package/dist/components/form/Slider/index.mjs +0 -1
  71. package/dist/components/form/Slider/slider.css.cjs +0 -74
  72. package/dist/components/form/Slider/slider.css.mjs +0 -75
  73. package/dist/components/form/Slider/usePointerProgress.cjs +0 -44
  74. package/dist/components/form/Slider/usePointerProgress.mjs +0 -45
  75. package/dist/components/form/Switch/Switch.cjs +0 -71
  76. package/dist/components/form/Switch/Switch.mjs +0 -74
  77. package/dist/components/form/Switch/index.cjs +0 -1
  78. package/dist/components/form/Switch/index.mjs +0 -1
  79. package/dist/components/form/Switch/switch.css.cjs +0 -26
  80. package/dist/components/form/Switch/switch.css.mjs +0 -27
  81. package/dist/components/layout/Box/Box.cjs +0 -27
  82. package/dist/components/layout/Box/Box.mjs +0 -28
  83. package/dist/components/layout/Box/index.cjs +0 -1
  84. package/dist/components/layout/Box/index.mjs +0 -1
  85. package/dist/components/layout/Inline/Inline.cjs +0 -29
  86. package/dist/components/layout/Inline/Inline.mjs +0 -30
  87. package/dist/components/layout/Inline/index.cjs +0 -1
  88. package/dist/components/layout/Inline/index.mjs +0 -1
  89. package/dist/components/layout/Stack/Stack.cjs +0 -29
  90. package/dist/components/layout/Stack/Stack.mjs +0 -30
  91. package/dist/components/layout/Stack/index.cjs +0 -1
  92. package/dist/components/layout/Stack/index.mjs +0 -1
  93. package/dist/components/navigation/Link/Link.cjs +0 -31
  94. package/dist/components/navigation/Link/Link.mjs +0 -32
  95. package/dist/components/navigation/Link/index.cjs +0 -1
  96. package/dist/components/navigation/Link/index.mjs +0 -1
  97. package/dist/components/other/BlocksProvider/BlocksProvider.cjs +0 -36
  98. package/dist/components/other/BlocksProvider/BlocksProvider.mjs +0 -39
  99. package/dist/components/other/BlocksProvider/context.cjs +0 -4
  100. package/dist/components/other/BlocksProvider/context.mjs +0 -7
  101. package/dist/components/other/BlocksProvider/index.cjs +0 -1
  102. package/dist/components/other/BlocksProvider/index.mjs +0 -1
  103. package/dist/components/other/Portal/Portal.cjs +0 -7
  104. package/dist/components/other/Portal/Portal.mjs +0 -8
  105. package/dist/components/other/Portal/index.cjs +0 -1
  106. package/dist/components/other/Portal/index.mjs +0 -1
  107. package/dist/components/overlay/Dialog/Dialog.cjs +0 -77
  108. package/dist/components/overlay/Dialog/Dialog.mjs +0 -80
  109. package/dist/components/overlay/Dialog/dialog.css.cjs +0 -21
  110. package/dist/components/overlay/Dialog/dialog.css.mjs +0 -22
  111. package/dist/components/overlay/Dialog/dialogHelper.cjs +0 -20
  112. package/dist/components/overlay/Dialog/dialogHelper.mjs +0 -21
  113. package/dist/components/overlay/Dialog/index.cjs +0 -1
  114. package/dist/components/overlay/Dialog/index.mjs +0 -1
  115. package/dist/components/overlay/Popover/Popover.cjs +0 -111
  116. package/dist/components/overlay/Popover/Popover.mjs +0 -112
  117. package/dist/components/overlay/Popover/popover-utils.cjs +0 -61
  118. package/dist/components/overlay/Popover/popover-utils.mjs +0 -62
  119. package/dist/components/overlay/Tooltip/Tooltip.cjs +0 -71
  120. package/dist/components/overlay/Tooltip/Tooltip.mjs +0 -74
  121. package/dist/components/overlay/Tooltip/index.cjs +0 -1
  122. package/dist/components/overlay/Tooltip/index.mjs +0 -1
  123. package/dist/components/typography/Heading/Heading.cjs +0 -23
  124. package/dist/components/typography/Heading/Heading.mjs +0 -24
  125. package/dist/components/typography/Heading/heading.css.cjs +0 -15
  126. package/dist/components/typography/Heading/heading.css.mjs +0 -16
  127. package/dist/components/typography/Heading/index.cjs +0 -1
  128. package/dist/components/typography/Heading/index.mjs +0 -1
  129. package/dist/components/typography/Text/Text.cjs +0 -20
  130. package/dist/components/typography/Text/Text.mjs +0 -21
  131. package/dist/components/typography/Text/index.cjs +0 -1
  132. package/dist/components/typography/Text/index.mjs +0 -1
  133. package/dist/components/typography/Text/text.css.cjs +0 -15
  134. package/dist/components/typography/Text/text.css.mjs +0 -16
  135. package/dist/hooks/useClickOutside/useClickOutside.cjs +0 -22
  136. package/dist/hooks/useClickOutside/useClickOutside.mjs +0 -23
  137. package/dist/hooks/useControlledValue/useControlledValue.cjs +0 -31
  138. package/dist/hooks/useControlledValue/useControlledValue.mjs +0 -32
  139. package/dist/hooks/useIsomorphicLayoutEffect/index.cjs +0 -1
  140. package/dist/hooks/useIsomorphicLayoutEffect/index.mjs +0 -1
  141. package/dist/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.cjs +0 -4
  142. package/dist/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.mjs +0 -7
  143. package/dist/hooks/useKeyboard/index.cjs +0 -1
  144. package/dist/hooks/useKeyboard/index.mjs +0 -1
  145. package/dist/hooks/useKeyboard/useKeyboard.cjs +0 -19
  146. package/dist/hooks/useKeyboard/useKeyboard.mjs +0 -22
  147. package/dist/hooks/useLayer/index.cjs +0 -1
  148. package/dist/hooks/useLayer/index.mjs +0 -1
  149. package/dist/hooks/useLayer/useLayer.cjs +0 -25
  150. package/dist/hooks/useLayer/useLayer.mjs +0 -26
  151. package/dist/hooks/usePreventBodyScroll/index.cjs +0 -1
  152. package/dist/hooks/usePreventBodyScroll/index.mjs +0 -1
  153. package/dist/hooks/usePreventBodyScroll/usePreventBodyScroll.cjs +0 -29
  154. package/dist/hooks/usePreventBodyScroll/usePreventBodyScroll.mjs +0 -30
  155. package/dist/hooks/useRestoreFocus/index.cjs +0 -1
  156. package/dist/hooks/useRestoreFocus/index.mjs +0 -1
  157. package/dist/hooks/useRestoreFocus/useRestoreFocus.cjs +0 -17
  158. package/dist/hooks/useRestoreFocus/useRestoreFocus.mjs +0 -18
  159. package/dist/hooks/useRootAriaHidden/index.cjs +0 -1
  160. package/dist/hooks/useRootAriaHidden/index.mjs +0 -1
  161. package/dist/hooks/useRootAriaHidden/useRootAriaHidden.cjs +0 -11
  162. package/dist/hooks/useRootAriaHidden/useRootAriaHidden.mjs +0 -12
  163. package/dist/hooks/useVisibilityState/index.cjs +0 -1
  164. package/dist/hooks/useVisibilityState/index.mjs +0 -1
  165. package/dist/hooks/useVisibilityState/useVisibilityState.cjs +0 -15
  166. package/dist/hooks/useVisibilityState/useVisibilityState.mjs +0 -16
  167. package/dist/index.d.mts +0 -1
  168. package/dist/index.mjs +0 -73
  169. package/dist/lib/asChildRenderer/createAsChildTemplate.cjs +0 -72
  170. package/dist/lib/asChildRenderer/createAsChildTemplate.mjs +0 -73
  171. package/dist/lib/css/atoms/atomicProperties.cjs +0 -89
  172. package/dist/lib/css/atoms/atomicProperties.mjs +0 -90
  173. package/dist/lib/css/atoms/atoms.cjs +0 -2
  174. package/dist/lib/css/atoms/atoms.mjs +0 -1
  175. package/dist/lib/css/atoms/breakpoints.cjs +0 -13
  176. package/dist/lib/css/atoms/breakpoints.mjs +0 -14
  177. package/dist/lib/css/atoms/index.cjs +0 -2
  178. package/dist/lib/css/atoms/index.mjs +0 -1
  179. package/dist/lib/css/atoms/sprinkles.css.cjs +0 -38
  180. package/dist/lib/css/atoms/sprinkles.css.mjs +0 -39
  181. package/dist/lib/css/flexbox/flexbox.cjs +0 -16
  182. package/dist/lib/css/flexbox/flexbox.mjs +0 -17
  183. package/dist/lib/css/layers/layers.css.cjs +0 -7
  184. package/dist/lib/css/layers/layers.css.mjs +0 -8
  185. package/dist/lib/css/reset/reset.css.cjs +0 -38
  186. package/dist/lib/css/reset/reset.css.mjs +0 -37
  187. package/dist/lib/css/style/style.cjs +0 -28
  188. package/dist/lib/css/style/style.mjs +0 -29
  189. package/dist/lib/css/utils/cssUtils.cjs +0 -5
  190. package/dist/lib/css/utils/cssUtils.mjs +0 -6
  191. package/dist/lib/react/mergeProps.cjs +0 -42
  192. package/dist/lib/react/mergeProps.mjs +0 -43
  193. package/dist/lib/react/refs.cjs +0 -16
  194. package/dist/lib/react/refs.mjs +0 -17
  195. package/dist/lib/theme/makeComponentTheme.cjs +0 -5
  196. package/dist/lib/theme/makeComponentTheme.mjs +0 -6
  197. package/dist/lib/theme/makeTheme.cjs +0 -12
  198. package/dist/lib/theme/makeTheme.mjs +0 -13
  199. package/dist/lib/theme/makeVanillaTheme.cjs +0 -19
  200. package/dist/lib/theme/makeVanillaTheme.mjs +0 -20
  201. package/dist/lib/theme/store/theme.cjs +0 -92
  202. package/dist/lib/theme/store/theme.mjs +0 -93
  203. package/dist/lib/theme/tokens.cjs +0 -81
  204. package/dist/lib/theme/tokens.mjs +0 -82
  205. package/dist/lib/theme/vars.css.cjs +0 -9
  206. package/dist/lib/theme/vars.css.mjs +0 -10
  207. package/dist/lib/utils/atom-props.cjs +0 -15
  208. package/dist/lib/utils/atom-props.mjs +0 -16
  209. package/dist/lib/utils/classnames.cjs +0 -6
  210. package/dist/lib/utils/classnames.mjs +0 -7
  211. package/dist/lib/utils/dom.cjs +0 -12
  212. package/dist/lib/utils/dom.mjs +0 -13
  213. package/dist/lib/utils/math.cjs +0 -12
  214. package/dist/lib/utils/math.mjs +0 -13
  215. package/dist/momotaro.chunk.d.ts +0 -906
  216. package/dist/reset.d.mts +0 -2
  217. package/dist/reset.mjs +0 -2
  218. package/dist/themes/momotaro/components/button.css.cjs +0 -103
  219. package/dist/themes/momotaro/components/button.css.mjs +0 -104
  220. package/dist/themes/momotaro/components/checkbox.css.cjs +0 -59
  221. package/dist/themes/momotaro/components/checkbox.css.mjs +0 -60
  222. package/dist/themes/momotaro/components/dialog.css.cjs +0 -78
  223. package/dist/themes/momotaro/components/dialog.css.mjs +0 -79
  224. package/dist/themes/momotaro/components/divider.css.cjs +0 -15
  225. package/dist/themes/momotaro/components/divider.css.mjs +0 -16
  226. package/dist/themes/momotaro/components/helpers.css.cjs +0 -43
  227. package/dist/themes/momotaro/components/helpers.css.mjs +0 -44
  228. package/dist/themes/momotaro/components/index.cjs +0 -34
  229. package/dist/themes/momotaro/components/index.mjs +0 -35
  230. package/dist/themes/momotaro/components/input.css.cjs +0 -41
  231. package/dist/themes/momotaro/components/input.css.mjs +0 -42
  232. package/dist/themes/momotaro/components/label.css.cjs +0 -33
  233. package/dist/themes/momotaro/components/label.css.mjs +0 -34
  234. package/dist/themes/momotaro/components/link.css.cjs +0 -53
  235. package/dist/themes/momotaro/components/link.css.mjs +0 -54
  236. package/dist/themes/momotaro/components/popover.css.cjs +0 -32
  237. package/dist/themes/momotaro/components/popover.css.mjs +0 -33
  238. package/dist/themes/momotaro/components/progress.css.cjs +0 -55
  239. package/dist/themes/momotaro/components/progress.css.mjs +0 -56
  240. package/dist/themes/momotaro/components/radio.css.cjs +0 -60
  241. package/dist/themes/momotaro/components/radio.css.mjs +0 -61
  242. package/dist/themes/momotaro/components/select.css.cjs +0 -44
  243. package/dist/themes/momotaro/components/select.css.mjs +0 -45
  244. package/dist/themes/momotaro/components/slider.css.cjs +0 -89
  245. package/dist/themes/momotaro/components/slider.css.mjs +0 -90
  246. package/dist/themes/momotaro/components/spinner.css.cjs +0 -43
  247. package/dist/themes/momotaro/components/spinner.css.mjs +0 -44
  248. package/dist/themes/momotaro/components/switch.css.cjs +0 -58
  249. package/dist/themes/momotaro/components/switch.css.mjs +0 -59
  250. package/dist/themes/momotaro/components/tooltip.css.cjs +0 -30
  251. package/dist/themes/momotaro/components/tooltip.css.mjs +0 -31
  252. package/dist/themes/momotaro/components/transitions.cjs +0 -3
  253. package/dist/themes/momotaro/components/transitions.mjs +0 -4
  254. package/dist/themes/momotaro/index.cjs +0 -2
  255. package/dist/themes/momotaro/index.mjs +0 -1
  256. package/dist/themes/momotaro/momotaro.css.cjs +0 -13
  257. package/dist/themes/momotaro/momotaro.css.mjs +0 -14
  258. package/dist/themes/momotaro/tokens.css.cjs +0 -85
  259. package/dist/themes/momotaro/tokens.css.mjs +0 -86
  260. package/dist/themes/momotaro.cjs +0 -4
  261. package/dist/themes/momotaro.d.mts +0 -1
  262. package/dist/themes/momotaro.d.ts +0 -1
  263. package/dist/themes/momotaro.mjs +0 -4
  264. package/reset/index.d.ts +0 -1
  265. package/reset/package.json +0 -5
  266. package/themes/momotaro/index.d.ts +0 -1
  267. package/themes/momotaro/package.json +0 -5
@@ -1,89 +0,0 @@
1
- "use strict";
2
- const fileScope = require("@vanilla-extract/css/fileScope");
3
- const css = require("@vanilla-extract/css");
4
- const lib_css_style_style_cjs = require("../../../lib/css/style/style.cjs");
5
- const lib_theme_makeComponentTheme_cjs = require("../../../lib/theme/makeComponentTheme.cjs");
6
- const lib_theme_vars_css_cjs = require("../../../lib/theme/vars.css.cjs");
7
- const 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 thumbActive = css.createVar("thumbActive");
13
- const slider = lib_theme_makeComponentTheme_cjs.makeComponentTheme("slider", {
14
- base: lib_css_style_style_cjs.style({
15
- blockSize: "20px"
16
- }),
17
- track: lib_css_style_style_cjs.style({
18
- blockSize: "4px",
19
- backgroundColor: trackBackground,
20
- borderRadius: "small"
21
- }),
22
- filledTrack: lib_css_style_style_cjs.style({
23
- backgroundColor: filledTrackBackground
24
- }),
25
- thumb: lib_css_style_style_cjs.style([{
26
- backgroundColor: thumbBackground,
27
- borderRadius: "50%",
28
- height: "16px",
29
- width: "16px",
30
- boxShadow: `0 0 0 0px color-mix(in srgb, ${lib_theme_vars_css_cjs.vars.color.primaryLight}, transparent 0%)`,
31
- vars: {
32
- [thumbActive]: `0 0 0 8px color-mix(in srgb, ${lib_theme_vars_css_cjs.vars.color.primaryLight}, transparent 20%)`
33
- },
34
- ":hover": {
35
- boxShadow: thumbActive
36
- },
37
- ":focus-visible": {
38
- boxShadow: thumbActive
39
- },
40
- "@media": {
41
- "(prefers-reduced-motion: no-preference)": {
42
- transition: "box-shadow 0.2s"
43
- }
44
- }
45
- }, themes_momotaro_components_helpers_css_cjs.focusable]),
46
- variants: {
47
- size: {
48
- small: lib_css_style_style_cjs.style({
49
- inlineSize: "100px"
50
- }),
51
- medium: lib_css_style_style_cjs.style({
52
- inlineSize: "200px"
53
- }),
54
- large: lib_css_style_style_cjs.style({
55
- inlineSize: "300px"
56
- })
57
- },
58
- colorScheme: {
59
- primary: lib_css_style_style_cjs.style({
60
- vars: {
61
- [trackBackground]: lib_theme_vars_css_cjs.vars.color.primaryLight,
62
- [filledTrackBackground]: lib_theme_vars_css_cjs.vars.color.primary,
63
- [thumbBackground]: lib_theme_vars_css_cjs.vars.color.primary
64
- }
65
- }),
66
- secondary: lib_css_style_style_cjs.style({
67
- vars: {
68
- [trackBackground]: lib_theme_vars_css_cjs.vars.color.primaryLight,
69
- [filledTrackBackground]: lib_theme_vars_css_cjs.vars.color.secondary,
70
- [thumbBackground]: lib_theme_vars_css_cjs.vars.color.secondary
71
- }
72
- })
73
- },
74
- disabled: lib_css_style_style_cjs.style({
75
- pointerEvents: "none",
76
- vars: {
77
- [trackBackground]: "#c0c0c0",
78
- [filledTrackBackground]: "#ccc",
79
- [thumbBackground]: "#c0c0c0"
80
- }
81
- })
82
- },
83
- defaultVariants: {
84
- size: "medium",
85
- colorScheme: "primary"
86
- }
87
- });
88
- fileScope.endFileScope();
89
- exports.slider = slider;
@@ -1,90 +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 thumbActive = createVar("thumbActive");
12
- const slider = makeComponentTheme("slider", {
13
- base: style({
14
- blockSize: "20px"
15
- }),
16
- track: style({
17
- blockSize: "4px",
18
- backgroundColor: trackBackground,
19
- borderRadius: "small"
20
- }),
21
- filledTrack: style({
22
- backgroundColor: filledTrackBackground
23
- }),
24
- thumb: style([{
25
- backgroundColor: thumbBackground,
26
- borderRadius: "50%",
27
- height: "16px",
28
- width: "16px",
29
- boxShadow: `0 0 0 0px color-mix(in srgb, ${vars.color.primaryLight}, transparent 0%)`,
30
- vars: {
31
- [thumbActive]: `0 0 0 8px color-mix(in srgb, ${vars.color.primaryLight}, transparent 20%)`
32
- },
33
- ":hover": {
34
- boxShadow: thumbActive
35
- },
36
- ":focus-visible": {
37
- boxShadow: thumbActive
38
- },
39
- "@media": {
40
- "(prefers-reduced-motion: no-preference)": {
41
- transition: "box-shadow 0.2s"
42
- }
43
- }
44
- }, focusable]),
45
- variants: {
46
- size: {
47
- small: style({
48
- inlineSize: "100px"
49
- }),
50
- medium: style({
51
- inlineSize: "200px"
52
- }),
53
- large: style({
54
- inlineSize: "300px"
55
- })
56
- },
57
- colorScheme: {
58
- primary: style({
59
- vars: {
60
- [trackBackground]: vars.color.primaryLight,
61
- [filledTrackBackground]: vars.color.primary,
62
- [thumbBackground]: vars.color.primary
63
- }
64
- }),
65
- secondary: style({
66
- vars: {
67
- [trackBackground]: vars.color.primaryLight,
68
- [filledTrackBackground]: vars.color.secondary,
69
- [thumbBackground]: vars.color.secondary
70
- }
71
- })
72
- },
73
- disabled: style({
74
- pointerEvents: "none",
75
- vars: {
76
- [trackBackground]: "#c0c0c0",
77
- [filledTrackBackground]: "#ccc",
78
- [thumbBackground]: "#c0c0c0"
79
- }
80
- })
81
- },
82
- defaultVariants: {
83
- size: "medium",
84
- colorScheme: "primary"
85
- }
86
- });
87
- endFileScope();
88
- export {
89
- slider
90
- };
@@ -1,43 +0,0 @@
1
- "use strict";
2
- const fileScope = require("@vanilla-extract/css/fileScope");
3
- const css = require("@vanilla-extract/css");
4
- const 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 = 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 { style, keyframes } 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 lib_css_style_style_cjs = require("../../../lib/css/style/style.cjs");
5
- const lib_theme_makeComponentTheme_cjs = require("../../../lib/theme/makeComponentTheme.cjs");
6
- const lib_theme_vars_css_cjs = require("../../../lib/theme/vars.css.cjs");
7
- const 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 = lib_theme_makeComponentTheme_cjs.makeComponentTheme("switch", {
11
- base: 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 ${lib_theme_vars_css_cjs.vars.transition.fast}`
19
- }
20
- },
21
- selectors: {
22
- '&[data-checked="true"]': {
23
- backgroundColor: 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
- }, themes_momotaro_components_helpers_css_cjs.focusable]),
36
- slider: 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,30 +0,0 @@
1
- "use strict";
2
- const fileScope = require("@vanilla-extract/css/fileScope");
3
- const lib_css_style_style_cjs = require("../../../lib/css/style/style.cjs");
4
- const lib_theme_makeComponentTheme_cjs = require("../../../lib/theme/makeComponentTheme.cjs");
5
- fileScope.setFileScope("src/themes/momotaro/components/tooltip.css.ts", "@blockle/blocks");
6
- const tooltip = lib_theme_makeComponentTheme_cjs.makeComponentTheme("tooltip", {
7
- base: lib_css_style_style_cjs.style({
8
- backgroundColor: "primary",
9
- padding: "small"
10
- }),
11
- variants: {
12
- colorScheme: {
13
- primary: lib_css_style_style_cjs.style({
14
- backgroundColor: "rgba(0, 0, 0, 0.8)",
15
- boxShadow: "0 0 0 1px rgba(255, 255, 255, 0.1)",
16
- color: "white"
17
- }),
18
- secondary: lib_css_style_style_cjs.style({
19
- backgroundColor: "rgba(255, 255, 255, 0.8)",
20
- boxShadow: "0 0 0 1px rgba(0, 0, 0, 0.1)",
21
- color: "black"
22
- })
23
- }
24
- },
25
- defaultVariants: {
26
- colorScheme: "primary"
27
- }
28
- });
29
- fileScope.endFileScope();
30
- exports.tooltip = tooltip;
@@ -1,31 +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
- setFileScope("src/themes/momotaro/components/tooltip.css.ts", "@blockle/blocks");
5
- const tooltip = makeComponentTheme("tooltip", {
6
- base: style({
7
- backgroundColor: "primary",
8
- padding: "small"
9
- }),
10
- variants: {
11
- colorScheme: {
12
- primary: style({
13
- backgroundColor: "rgba(0, 0, 0, 0.8)",
14
- boxShadow: "0 0 0 1px rgba(255, 255, 255, 0.1)",
15
- color: "white"
16
- }),
17
- secondary: style({
18
- backgroundColor: "rgba(255, 255, 255, 0.8)",
19
- boxShadow: "0 0 0 1px rgba(0, 0, 0, 0.1)",
20
- color: "black"
21
- })
22
- }
23
- },
24
- defaultVariants: {
25
- colorScheme: "primary"
26
- }
27
- });
28
- endFileScope();
29
- export {
30
- tooltip
31
- };
@@ -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,2 +0,0 @@
1
- "use strict";
2
- require("./momotaro.css.cjs");
@@ -1 +0,0 @@
1
- import "./momotaro.css.mjs";
@@ -1,13 +0,0 @@
1
- "use strict";
2
- const fileScope = require("@vanilla-extract/css/fileScope");
3
- const lib_theme_makeTheme_cjs = require("../../lib/theme/makeTheme.cjs");
4
- const themes_momotaro_components_index_cjs = require("./components/index.cjs");
5
- const themes_momotaro_tokens_css_cjs = require("./tokens.css.cjs");
6
- fileScope.setFileScope("src/themes/momotaro/momotaro.css.ts", "@blockle/blocks");
7
- const momotaro = lib_theme_makeTheme_cjs.makeTheme({
8
- name: "momotaro",
9
- tokens: themes_momotaro_tokens_css_cjs.tokens,
10
- components: themes_momotaro_components_index_cjs.components
11
- });
12
- fileScope.endFileScope();
13
- exports.momotaro = momotaro;
@@ -1,14 +0,0 @@
1
- import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
2
- import { makeTheme } from "../../lib/theme/makeTheme.mjs";
3
- import { components } from "./components/index.mjs";
4
- import { tokens } from "./tokens.css.mjs";
5
- setFileScope("src/themes/momotaro/momotaro.css.ts", "@blockle/blocks");
6
- const momotaro = makeTheme({
7
- name: "momotaro",
8
- tokens,
9
- components
10
- });
11
- endFileScope();
12
- export {
13
- momotaro
14
- };
@@ -1,85 +0,0 @@
1
- "use strict";
2
- const fileScope = require("@vanilla-extract/css/fileScope");
3
- const lib_css_utils_cssUtils_cjs = require("../../lib/css/utils/cssUtils.cjs");
4
- fileScope.setFileScope("src/themes/momotaro/tokens.css.ts", "@blockle/blocks");
5
- const tokens = {
6
- border: {
7
- radius: {
8
- small: "4px",
9
- medium: "8px",
10
- large: "16px",
11
- xlarge: "32px"
12
- },
13
- width: {
14
- small: "1px",
15
- medium: "2px",
16
- large: "4px"
17
- }
18
- },
19
- color: {
20
- white: "#fff",
21
- black: "#000",
22
- body: "#F4F6FA",
23
- primaryLight: "#E4DFFF",
24
- primary: "#7265E3",
25
- primaryDark: "#4D3CAB",
26
- secondaryLight: "#7CF5CD",
27
- secondary: "#7FE3F0",
28
- secondaryDark: "#68C6EF",
29
- text: "#2D3142",
30
- textLight: "#9C9EB9",
31
- textDark: "#4C5980",
32
- danger: "#FF9B90",
33
- link: "#7265E3"
34
- },
35
- shadow: {
36
- small: "0px 4px 8px rgba(0, 0, 0, 0.08)",
37
- medium: "0px 8px 16px rgba(0, 0, 0, 0.08)",
38
- large: "0px 16px 24px rgba(0, 0, 0, 0.08)"
39
- },
40
- focus: {
41
- boxShadow: "0 0 1px 2px #AF8EFF"
42
- },
43
- spacing: {
44
- none: "0px",
45
- gutter: "28px",
46
- xsmall: "4px",
47
- small: "8px",
48
- medium: "12px",
49
- large: "16px",
50
- xlarge: "24px"
51
- },
52
- transition: {
53
- slow: "240ms",
54
- normal: "120ms",
55
- fast: "80ms"
56
- },
57
- typography: {
58
- fontFamily: {
59
- body: '"Rubik", sans-serif',
60
- primary: '"Rubik", sans-serif',
61
- secondary: '"Rubik", sans-serif'
62
- },
63
- fontSize: {
64
- xsmall: lib_css_utils_cssUtils_cjs.rem(12),
65
- small: lib_css_utils_cssUtils_cjs.rem(14),
66
- medium: lib_css_utils_cssUtils_cjs.rem(16),
67
- large: lib_css_utils_cssUtils_cjs.rem(20),
68
- xlarge: lib_css_utils_cssUtils_cjs.rem(24)
69
- },
70
- fontWeight: {
71
- regular: 400,
72
- medium: 500,
73
- strong: 700
74
- },
75
- lineHeight: {
76
- xsmall: lib_css_utils_cssUtils_cjs.rem(16),
77
- small: lib_css_utils_cssUtils_cjs.rem(20),
78
- medium: lib_css_utils_cssUtils_cjs.rem(24),
79
- large: lib_css_utils_cssUtils_cjs.rem(28),
80
- xlarge: lib_css_utils_cssUtils_cjs.rem(32)
81
- }
82
- }
83
- };
84
- fileScope.endFileScope();
85
- exports.tokens = tokens;
@@ -1,86 +0,0 @@
1
- import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
2
- import { rem } from "../../lib/css/utils/cssUtils.mjs";
3
- 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: rem(12),
64
- small: rem(14),
65
- medium: rem(16),
66
- large: rem(20),
67
- xlarge: rem(24)
68
- },
69
- fontWeight: {
70
- regular: 400,
71
- medium: 500,
72
- strong: 700
73
- },
74
- lineHeight: {
75
- xsmall: rem(16),
76
- small: rem(20),
77
- medium: rem(24),
78
- large: rem(28),
79
- xlarge: rem(32)
80
- }
81
- }
82
- };
83
- endFileScope();
84
- export {
85
- tokens
86
- };
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const themes_momotaro_momotaro_css_cjs = require("./momotaro/momotaro.css.cjs");
4
- exports.momotaro = themes_momotaro_momotaro_css_cjs.momotaro;
@@ -1 +0,0 @@
1
- export { momotaro } from '../momotaro.chunk.js';
@@ -1 +0,0 @@
1
- export { momotaro } from '../momotaro.chunk.js';