@blockle/blocks 0.19.0 → 0.20.0-alpha1

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 (283) hide show
  1. package/dist/components/accessibility/VisuallyHidden/VisuallyHidden.cjs +19 -0
  2. package/dist/components/accessibility/VisuallyHidden/VisuallyHidden.mjs +20 -0
  3. package/dist/components/accessibility/VisuallyHidden/index.cjs +1 -0
  4. package/dist/components/accessibility/VisuallyHidden/index.mjs +1 -0
  5. package/dist/{styles/components/Accessibility → components/accessibility}/VisuallyHidden/visually-hidden.css.cjs +1 -1
  6. package/dist/{styles/components/Accessibility → components/accessibility}/VisuallyHidden/visually-hidden.css.mjs +1 -1
  7. package/dist/components/display/Divider/Divider.cjs +25 -0
  8. package/dist/components/display/Divider/Divider.mjs +26 -0
  9. package/dist/{styles/components → components}/display/Divider/divider.css.cjs +2 -2
  10. package/dist/components/display/Divider/index.cjs +1 -0
  11. package/dist/components/display/Divider/index.mjs +1 -0
  12. package/dist/components/feedback/Progress/Progress.cjs +53 -0
  13. package/dist/components/feedback/Progress/Progress.mjs +54 -0
  14. package/dist/components/feedback/Progress/index.cjs +1 -0
  15. package/dist/components/feedback/Progress/index.mjs +1 -0
  16. package/dist/components/feedback/Spinner/Spinner.cjs +25 -0
  17. package/dist/components/feedback/Spinner/Spinner.mjs +26 -0
  18. package/dist/components/feedback/Spinner/index.cjs +1 -0
  19. package/dist/components/feedback/Spinner/index.mjs +1 -0
  20. package/dist/components/form/Button/Button.cjs +58 -0
  21. package/dist/{styles/components → components}/form/Button/Button.css.cjs +2 -2
  22. package/dist/{styles/components → components}/form/Button/Button.mjs +13 -11
  23. package/dist/components/form/Button/index.cjs +1 -0
  24. package/dist/components/form/Button/index.mjs +1 -0
  25. package/dist/components/form/Checkbox/Checkbox.cjs +78 -0
  26. package/dist/components/form/Checkbox/Checkbox.mjs +79 -0
  27. package/dist/{styles/components → components}/form/Checkbox/checkbox.css.cjs +3 -3
  28. package/dist/components/form/Checkbox/index.cjs +1 -0
  29. package/dist/components/form/Checkbox/index.mjs +1 -0
  30. package/dist/components/form/Input/Input.cjs +50 -0
  31. package/dist/components/form/Input/Input.mjs +51 -0
  32. package/dist/components/form/Input/index.cjs +1 -0
  33. package/dist/components/form/Input/index.mjs +1 -0
  34. package/dist/{styles/components → components}/form/Input/input.css.cjs +2 -2
  35. package/dist/components/form/Label/Label.cjs +29 -0
  36. package/dist/components/form/Label/Label.mjs +30 -0
  37. package/dist/components/form/Label/index.cjs +1 -0
  38. package/dist/components/form/Label/index.mjs +1 -0
  39. package/dist/components/form/Radio/Radio.cjs +47 -0
  40. package/dist/components/form/Radio/Radio.mjs +48 -0
  41. package/dist/components/form/Radio/RadioGroup.cjs +1 -0
  42. package/dist/components/form/Radio/RadioGroup.mjs +1 -0
  43. package/dist/components/form/Radio/index.cjs +1 -0
  44. package/dist/components/form/Radio/index.mjs +1 -0
  45. package/dist/{styles/components → components}/form/Radio/radio.css.cjs +3 -3
  46. package/dist/components/form/Select/Select.cjs +64 -0
  47. package/dist/{styles/components → components}/form/Select/Select.mjs +23 -6
  48. package/dist/components/form/Select/index.cjs +1 -0
  49. package/dist/components/form/Select/index.mjs +1 -0
  50. package/dist/{styles/components → components}/form/Select/select.css.cjs +4 -4
  51. package/dist/components/form/Slider/Slider.cjs +139 -0
  52. package/dist/components/form/Slider/Slider.mjs +142 -0
  53. package/dist/components/form/Slider/index.cjs +1 -0
  54. package/dist/components/form/Slider/index.mjs +1 -0
  55. package/dist/{styles/components → components}/form/Slider/slider.css.cjs +6 -6
  56. package/dist/components/form/Slider/usePointerProgress.cjs +44 -0
  57. package/dist/components/form/Slider/usePointerProgress.mjs +45 -0
  58. package/dist/{styles/components → components}/form/Switch/Switch.cjs +10 -8
  59. package/dist/{styles/components → components}/form/Switch/Switch.mjs +9 -5
  60. package/dist/components/form/Switch/index.cjs +1 -0
  61. package/dist/components/form/Switch/index.mjs +1 -0
  62. package/dist/{styles/components → components}/form/Switch/switch.css.cjs +3 -3
  63. package/dist/components/layout/Box/Box.cjs +27 -0
  64. package/dist/components/layout/Box/Box.mjs +28 -0
  65. package/dist/components/layout/Box/index.cjs +1 -0
  66. package/dist/components/layout/Box/index.mjs +1 -0
  67. package/dist/components/layout/Inline/Inline.cjs +29 -0
  68. package/dist/components/layout/Inline/Inline.mjs +30 -0
  69. package/dist/components/layout/Inline/index.cjs +1 -0
  70. package/dist/components/layout/Inline/index.mjs +1 -0
  71. package/dist/components/layout/Stack/Stack.cjs +29 -0
  72. package/dist/components/layout/Stack/Stack.mjs +30 -0
  73. package/dist/components/layout/Stack/index.cjs +1 -0
  74. package/dist/components/layout/Stack/index.mjs +1 -0
  75. package/dist/components/navigation/Link/Link.cjs +31 -0
  76. package/dist/components/navigation/Link/Link.mjs +32 -0
  77. package/dist/components/navigation/Link/index.cjs +1 -0
  78. package/dist/components/navigation/Link/index.mjs +1 -0
  79. package/dist/components/other/BlocksProvider/BlocksProvider.cjs +36 -0
  80. package/dist/components/other/BlocksProvider/BlocksProvider.mjs +39 -0
  81. package/dist/components/other/BlocksProvider/context.cjs +4 -0
  82. package/dist/components/other/BlocksProvider/context.mjs +7 -0
  83. package/dist/components/other/BlocksProvider/index.cjs +1 -0
  84. package/dist/components/other/BlocksProvider/index.mjs +1 -0
  85. package/dist/components/other/Portal/Portal.cjs +7 -0
  86. package/dist/components/other/Portal/Portal.mjs +8 -0
  87. package/dist/components/other/Portal/index.cjs +1 -0
  88. package/dist/components/other/Portal/index.mjs +1 -0
  89. package/dist/components/overlay/Dialog/Dialog.cjs +77 -0
  90. package/dist/components/overlay/Dialog/Dialog.mjs +80 -0
  91. package/dist/{styles/components → components}/overlay/Dialog/dialog.css.cjs +2 -2
  92. package/dist/components/overlay/Dialog/dialogHelper.cjs +20 -0
  93. package/dist/components/overlay/Dialog/dialogHelper.mjs +21 -0
  94. package/dist/components/overlay/Dialog/index.cjs +1 -0
  95. package/dist/components/overlay/Dialog/index.mjs +1 -0
  96. package/dist/components/overlay/Popover/Popover.cjs +111 -0
  97. package/dist/components/overlay/Popover/Popover.mjs +112 -0
  98. package/dist/components/overlay/Popover/popover-utils.cjs +61 -0
  99. package/dist/components/overlay/Popover/popover-utils.mjs +62 -0
  100. package/dist/components/overlay/Tooltip/Tooltip.cjs +71 -0
  101. package/dist/components/overlay/Tooltip/Tooltip.mjs +74 -0
  102. package/dist/components/overlay/Tooltip/index.cjs +1 -0
  103. package/dist/components/overlay/Tooltip/index.mjs +1 -0
  104. package/dist/components/typography/Heading/Heading.cjs +23 -0
  105. package/dist/components/typography/Heading/Heading.mjs +24 -0
  106. package/dist/{styles/components → components}/typography/Heading/heading.css.cjs +2 -2
  107. package/dist/components/typography/Heading/index.cjs +1 -0
  108. package/dist/components/typography/Heading/index.mjs +1 -0
  109. package/dist/components/typography/Text/Text.cjs +20 -0
  110. package/dist/{styles/components → components}/typography/Text/Text.mjs +2 -2
  111. package/dist/components/typography/Text/index.cjs +1 -0
  112. package/dist/components/typography/Text/index.mjs +1 -0
  113. package/dist/{styles/components → components}/typography/Text/text.css.cjs +2 -2
  114. package/dist/hooks/useClickOutside/useClickOutside.cjs +22 -0
  115. package/dist/hooks/useClickOutside/useClickOutside.mjs +23 -0
  116. package/dist/hooks/useControlledValue/useControlledValue.cjs +31 -0
  117. package/dist/hooks/useControlledValue/useControlledValue.mjs +32 -0
  118. package/dist/hooks/useIsomorphicLayoutEffect/index.cjs +1 -0
  119. package/dist/hooks/useIsomorphicLayoutEffect/index.mjs +1 -0
  120. package/dist/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.cjs +4 -0
  121. package/dist/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.mjs +7 -0
  122. package/dist/hooks/useKeyboard/index.cjs +1 -0
  123. package/dist/hooks/useKeyboard/index.mjs +1 -0
  124. package/dist/hooks/useKeyboard/useKeyboard.cjs +19 -0
  125. package/dist/hooks/useKeyboard/useKeyboard.mjs +22 -0
  126. package/dist/hooks/useLayer/index.cjs +1 -0
  127. package/dist/hooks/useLayer/index.mjs +1 -0
  128. package/dist/hooks/useLayer/useLayer.cjs +25 -0
  129. package/dist/hooks/useLayer/useLayer.mjs +26 -0
  130. package/dist/hooks/usePreventBodyScroll/index.cjs +1 -0
  131. package/dist/hooks/usePreventBodyScroll/index.mjs +1 -0
  132. package/dist/hooks/usePreventBodyScroll/usePreventBodyScroll.cjs +29 -0
  133. package/dist/hooks/usePreventBodyScroll/usePreventBodyScroll.mjs +30 -0
  134. package/dist/hooks/useRestoreFocus/index.cjs +1 -0
  135. package/dist/hooks/useRestoreFocus/index.mjs +1 -0
  136. package/dist/hooks/useRestoreFocus/useRestoreFocus.cjs +17 -0
  137. package/dist/hooks/useRestoreFocus/useRestoreFocus.mjs +18 -0
  138. package/dist/hooks/useRootAriaHidden/index.cjs +1 -0
  139. package/dist/hooks/useRootAriaHidden/index.mjs +1 -0
  140. package/dist/hooks/useRootAriaHidden/useRootAriaHidden.cjs +11 -0
  141. package/dist/hooks/useRootAriaHidden/useRootAriaHidden.mjs +12 -0
  142. package/dist/hooks/useVisibilityState/index.cjs +1 -0
  143. package/dist/hooks/useVisibilityState/index.mjs +1 -0
  144. package/dist/hooks/useVisibilityState/useVisibilityState.cjs +15 -0
  145. package/dist/hooks/useVisibilityState/useVisibilityState.mjs +16 -0
  146. package/dist/index.cjs +71 -444
  147. package/dist/index.d.mts +1 -1
  148. package/dist/index.d.ts +1 -1
  149. package/dist/index.mjs +37 -415
  150. package/dist/lib/asChildRenderer/createAsChildTemplate.cjs +72 -0
  151. package/dist/lib/asChildRenderer/createAsChildTemplate.mjs +73 -0
  152. package/dist/{styles/lib → lib}/css/atoms/atomicProperties.cjs +28 -22
  153. package/dist/{styles/lib → lib}/css/atoms/atomicProperties.mjs +7 -1
  154. package/dist/{styles/lib → lib}/css/atoms/sprinkles.css.cjs +8 -8
  155. package/dist/lib/css/flexbox/flexbox.cjs +16 -0
  156. package/dist/lib/css/flexbox/flexbox.mjs +17 -0
  157. package/dist/{styles/lib → lib}/css/style/style.cjs +3 -3
  158. package/dist/lib/react/mergeProps.cjs +42 -0
  159. package/dist/lib/react/mergeProps.mjs +43 -0
  160. package/dist/lib/react/refs.cjs +16 -0
  161. package/dist/lib/react/refs.mjs +17 -0
  162. package/dist/lib/theme/makeTheme.cjs +12 -0
  163. package/dist/lib/theme/store/theme.cjs +92 -0
  164. package/dist/lib/theme/store/theme.mjs +93 -0
  165. package/dist/lib/theme/vars.css.cjs +9 -0
  166. package/dist/{styles/lib → lib}/utils/atom-props.cjs +2 -2
  167. package/dist/lib/utils/classnames.cjs +6 -0
  168. package/dist/lib/utils/classnames.mjs +7 -0
  169. package/dist/lib/utils/dom.cjs +12 -0
  170. package/dist/lib/utils/dom.mjs +13 -0
  171. package/dist/lib/utils/math.cjs +12 -0
  172. package/dist/lib/utils/math.mjs +13 -0
  173. package/dist/momotaro.chunk.d.ts +40 -56
  174. package/dist/reset.cjs +2 -2
  175. package/dist/reset.mjs +2 -2
  176. package/dist/{styles/themes → themes}/momotaro/components/button.css.cjs +23 -23
  177. package/dist/themes/momotaro/components/checkbox.css.cjs +59 -0
  178. package/dist/{styles/themes → themes}/momotaro/components/dialog.css.cjs +4 -4
  179. package/dist/{styles/themes → themes}/momotaro/components/divider.css.cjs +2 -2
  180. package/dist/{styles/themes → themes}/momotaro/components/helpers.css.cjs +3 -3
  181. package/dist/themes/momotaro/components/index.cjs +34 -0
  182. package/dist/{styles/themes → themes}/momotaro/components/input.css.cjs +9 -9
  183. package/dist/{styles/themes → themes}/momotaro/components/label.css.cjs +7 -7
  184. package/dist/{styles/themes → themes}/momotaro/components/link.css.cjs +7 -7
  185. package/dist/{styles/themes → themes}/momotaro/components/popover.css.cjs +4 -4
  186. package/dist/{styles/themes → themes}/momotaro/components/progress.css.cjs +7 -7
  187. package/dist/themes/momotaro/components/radio.css.cjs +60 -0
  188. package/dist/themes/momotaro/components/select.css.cjs +44 -0
  189. package/dist/themes/momotaro/components/slider.css.cjs +89 -0
  190. package/dist/{styles/themes → themes}/momotaro/components/spinner.css.cjs +2 -2
  191. package/dist/{styles/themes → themes}/momotaro/components/switch.css.cjs +10 -10
  192. package/dist/{styles/themes → themes}/momotaro/components/tooltip.css.cjs +6 -6
  193. package/dist/themes/momotaro/momotaro.css.cjs +13 -0
  194. package/dist/{styles/themes → themes}/momotaro/tokens.css.cjs +11 -11
  195. package/dist/themes/momotaro.cjs +2 -2
  196. package/dist/themes/momotaro.mjs +1 -1
  197. package/package.json +5 -15
  198. package/dist/styles/components/Accessibility/VisuallyHidden/VisuallyHidden.cjs +0 -16
  199. package/dist/styles/components/Accessibility/VisuallyHidden/VisuallyHidden.mjs +0 -17
  200. package/dist/styles/components/display/Divider/Divider.cjs +0 -239
  201. package/dist/styles/components/display/Divider/Divider.mjs +0 -240
  202. package/dist/styles/components/form/Button/Button.cjs +0 -56
  203. package/dist/styles/components/form/Checkbox/Checkbox.cjs +0 -84
  204. package/dist/styles/components/form/Checkbox/Checkbox.mjs +0 -85
  205. package/dist/styles/components/form/Input/Input.cjs +0 -37
  206. package/dist/styles/components/form/Input/Input.mjs +0 -38
  207. package/dist/styles/components/form/Radio/Radio.cjs +0 -23
  208. package/dist/styles/components/form/Radio/Radio.mjs +0 -24
  209. package/dist/styles/components/form/Select/Select.cjs +0 -47
  210. package/dist/styles/components/form/Slider/Slider.cjs +0 -205
  211. package/dist/styles/components/form/Slider/Slider.mjs +0 -206
  212. package/dist/styles/components/other/BlocksProvider/BlocksProvider.cjs +0 -41
  213. package/dist/styles/components/other/BlocksProvider/BlocksProvider.mjs +0 -42
  214. package/dist/styles/components/overlay/Dialog/Dialog.cjs +0 -172
  215. package/dist/styles/components/overlay/Dialog/Dialog.mjs +0 -173
  216. package/dist/styles/components/typography/Heading/Heading.cjs +0 -15
  217. package/dist/styles/components/typography/Heading/Heading.mjs +0 -16
  218. package/dist/styles/components/typography/Text/Text.cjs +0 -20
  219. package/dist/styles/lib/theme/makeTheme.cjs +0 -12
  220. package/dist/styles/lib/theme/vars.css.cjs +0 -9
  221. package/dist/styles/themes/momotaro/components/checkbox.css.cjs +0 -59
  222. package/dist/styles/themes/momotaro/components/index.cjs +0 -34
  223. package/dist/styles/themes/momotaro/components/radio.css.cjs +0 -60
  224. package/dist/styles/themes/momotaro/components/select.css.cjs +0 -44
  225. package/dist/styles/themes/momotaro/components/slider.css.cjs +0 -89
  226. package/dist/styles/themes/momotaro/momotaro.css.cjs +0 -13
  227. /package/dist/{styles/components → components}/display/Divider/divider.css.mjs +0 -0
  228. /package/dist/{styles/components → components}/form/Button/Button.css.mjs +0 -0
  229. /package/dist/{styles/components → components}/form/Checkbox/checkbox.css.mjs +0 -0
  230. /package/dist/{styles/components → components}/form/Input/input.css.mjs +0 -0
  231. /package/dist/{styles/components → components}/form/Radio/radio.css.mjs +0 -0
  232. /package/dist/{styles/components → components}/form/Select/select.css.mjs +0 -0
  233. /package/dist/{styles/components → components}/form/Slider/slider.css.mjs +0 -0
  234. /package/dist/{styles/components → components}/form/Switch/switch.css.mjs +0 -0
  235. /package/dist/{styles/components → components}/overlay/Dialog/dialog.css.mjs +0 -0
  236. /package/dist/{styles/components → components}/typography/Heading/heading.css.mjs +0 -0
  237. /package/dist/{styles/components → components}/typography/Text/text.css.mjs +0 -0
  238. /package/dist/{styles/lib → lib}/css/atoms/atoms.cjs +0 -0
  239. /package/dist/{styles/lib → lib}/css/atoms/atoms.mjs +0 -0
  240. /package/dist/{styles/lib → lib}/css/atoms/breakpoints.cjs +0 -0
  241. /package/dist/{styles/lib → lib}/css/atoms/breakpoints.mjs +0 -0
  242. /package/dist/{styles/lib → lib}/css/atoms/index.cjs +0 -0
  243. /package/dist/{styles/lib → lib}/css/atoms/index.mjs +0 -0
  244. /package/dist/{styles/lib → lib}/css/atoms/sprinkles.css.mjs +0 -0
  245. /package/dist/{styles/lib → lib}/css/layers/layers.css.cjs +0 -0
  246. /package/dist/{styles/lib → lib}/css/layers/layers.css.mjs +0 -0
  247. /package/dist/{styles/lib → lib}/css/reset/reset.css.cjs +0 -0
  248. /package/dist/{styles/lib → lib}/css/reset/reset.css.mjs +0 -0
  249. /package/dist/{styles/lib → lib}/css/style/style.mjs +0 -0
  250. /package/dist/{styles/lib → lib}/css/utils/cssUtils.cjs +0 -0
  251. /package/dist/{styles/lib → lib}/css/utils/cssUtils.mjs +0 -0
  252. /package/dist/{styles/lib → lib}/theme/makeComponentTheme.cjs +0 -0
  253. /package/dist/{styles/lib → lib}/theme/makeComponentTheme.mjs +0 -0
  254. /package/dist/{styles/lib → lib}/theme/makeTheme.mjs +0 -0
  255. /package/dist/{styles/lib → lib}/theme/makeVanillaTheme.cjs +0 -0
  256. /package/dist/{styles/lib → lib}/theme/makeVanillaTheme.mjs +0 -0
  257. /package/dist/{styles/lib → lib}/theme/tokens.cjs +0 -0
  258. /package/dist/{styles/lib → lib}/theme/tokens.mjs +0 -0
  259. /package/dist/{styles/lib → lib}/theme/vars.css.mjs +0 -0
  260. /package/dist/{styles/lib → lib}/utils/atom-props.mjs +0 -0
  261. /package/dist/{styles/themes → themes}/momotaro/components/button.css.mjs +0 -0
  262. /package/dist/{styles/themes → themes}/momotaro/components/checkbox.css.mjs +0 -0
  263. /package/dist/{styles/themes → themes}/momotaro/components/dialog.css.mjs +0 -0
  264. /package/dist/{styles/themes → themes}/momotaro/components/divider.css.mjs +0 -0
  265. /package/dist/{styles/themes → themes}/momotaro/components/helpers.css.mjs +0 -0
  266. /package/dist/{styles/themes → themes}/momotaro/components/index.mjs +0 -0
  267. /package/dist/{styles/themes → themes}/momotaro/components/input.css.mjs +0 -0
  268. /package/dist/{styles/themes → themes}/momotaro/components/label.css.mjs +0 -0
  269. /package/dist/{styles/themes → themes}/momotaro/components/link.css.mjs +0 -0
  270. /package/dist/{styles/themes → themes}/momotaro/components/popover.css.mjs +0 -0
  271. /package/dist/{styles/themes → themes}/momotaro/components/progress.css.mjs +0 -0
  272. /package/dist/{styles/themes → themes}/momotaro/components/radio.css.mjs +0 -0
  273. /package/dist/{styles/themes → themes}/momotaro/components/select.css.mjs +0 -0
  274. /package/dist/{styles/themes → themes}/momotaro/components/slider.css.mjs +0 -0
  275. /package/dist/{styles/themes → themes}/momotaro/components/spinner.css.mjs +0 -0
  276. /package/dist/{styles/themes → themes}/momotaro/components/switch.css.mjs +0 -0
  277. /package/dist/{styles/themes → themes}/momotaro/components/tooltip.css.mjs +0 -0
  278. /package/dist/{styles/themes → themes}/momotaro/components/transitions.cjs +0 -0
  279. /package/dist/{styles/themes → themes}/momotaro/components/transitions.mjs +0 -0
  280. /package/dist/{styles/themes → themes}/momotaro/index.cjs +0 -0
  281. /package/dist/{styles/themes → themes}/momotaro/index.mjs +0 -0
  282. /package/dist/{styles/themes → themes}/momotaro/momotaro.css.mjs +0 -0
  283. /package/dist/{styles/themes → themes}/momotaro/tokens.css.mjs +0 -0
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ const themes_momotaro_components_button_css_cjs = require("./button.css.cjs");
3
+ const themes_momotaro_components_checkbox_css_cjs = require("./checkbox.css.cjs");
4
+ const themes_momotaro_components_dialog_css_cjs = require("./dialog.css.cjs");
5
+ const themes_momotaro_components_divider_css_cjs = require("./divider.css.cjs");
6
+ const themes_momotaro_components_input_css_cjs = require("./input.css.cjs");
7
+ const themes_momotaro_components_label_css_cjs = require("./label.css.cjs");
8
+ const themes_momotaro_components_link_css_cjs = require("./link.css.cjs");
9
+ const themes_momotaro_components_popover_css_cjs = require("./popover.css.cjs");
10
+ const themes_momotaro_components_progress_css_cjs = require("./progress.css.cjs");
11
+ const themes_momotaro_components_radio_css_cjs = require("./radio.css.cjs");
12
+ const themes_momotaro_components_select_css_cjs = require("./select.css.cjs");
13
+ const themes_momotaro_components_slider_css_cjs = require("./slider.css.cjs");
14
+ const themes_momotaro_components_spinner_css_cjs = require("./spinner.css.cjs");
15
+ const themes_momotaro_components_switch_css_cjs = require("./switch.css.cjs");
16
+ const themes_momotaro_components_tooltip_css_cjs = require("./tooltip.css.cjs");
17
+ const components = {
18
+ button: themes_momotaro_components_button_css_cjs.button,
19
+ checkbox: themes_momotaro_components_checkbox_css_cjs.checkbox,
20
+ dialog: themes_momotaro_components_dialog_css_cjs.dialog,
21
+ divider: themes_momotaro_components_divider_css_cjs.divider,
22
+ input: themes_momotaro_components_input_css_cjs.input,
23
+ label: themes_momotaro_components_label_css_cjs.label,
24
+ link: themes_momotaro_components_link_css_cjs.link,
25
+ popover: themes_momotaro_components_popover_css_cjs.popover,
26
+ progress: themes_momotaro_components_progress_css_cjs.progress,
27
+ radio: themes_momotaro_components_radio_css_cjs.radio,
28
+ select: themes_momotaro_components_select_css_cjs.select,
29
+ slider: themes_momotaro_components_slider_css_cjs.slider,
30
+ spinner: themes_momotaro_components_spinner_css_cjs.spinner,
31
+ switch: themes_momotaro_components_switch_css_cjs.switchTheme,
32
+ tooltip: themes_momotaro_components_tooltip_css_cjs.tooltip
33
+ };
34
+ exports.components = components;
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  const fileScope = require("@vanilla-extract/css/fileScope");
3
3
  const css = require("@vanilla-extract/css");
4
- const styles_lib_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");
4
+ const lib_theme_makeComponentTheme_cjs = require("../../../lib/theme/makeComponentTheme.cjs");
5
+ const lib_theme_vars_css_cjs = require("../../../lib/theme/vars.css.cjs");
6
+ const lib_css_atoms_sprinkles_css_cjs = require("../../../lib/css/atoms/sprinkles.css.cjs");
7
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({
8
+ const input = lib_theme_makeComponentTheme_cjs.makeComponentTheme("input", {
9
+ input: css.style([lib_css_atoms_sprinkles_css_cjs.atoms({
10
10
  color: "text",
11
11
  padding: "large",
12
12
  border: "none",
@@ -15,7 +15,7 @@ const input = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("input"
15
15
  outline: "none",
16
16
  background: "transparent",
17
17
  "::placeholder": {
18
- color: styles_lib_theme_vars_css_cjs.vars.color.textLight
18
+ color: lib_theme_vars_css_cjs.vars.color.textLight
19
19
  },
20
20
  ":disabled": {}
21
21
  }], "input_input"),
@@ -23,15 +23,15 @@ const input = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("input"
23
23
  minHeight: 56,
24
24
  "@media": {
25
25
  "(prefers-reduced-motion: no-preference)": {
26
- transition: `box-shadow ${styles_lib_theme_vars_css_cjs.vars.transition.fast}`
26
+ transition: `box-shadow ${lib_theme_vars_css_cjs.vars.transition.fast}`
27
27
  }
28
28
  },
29
29
  ":focus-within": {
30
30
  outline: "2px solid transparent",
31
31
  outlineOffset: "2px",
32
- boxShadow: `${styles_lib_theme_vars_css_cjs.vars.shadow.small}, ${styles_lib_theme_vars_css_cjs.vars.focus.boxShadow}`
32
+ boxShadow: `${lib_theme_vars_css_cjs.vars.shadow.small}, ${lib_theme_vars_css_cjs.vars.focus.boxShadow}`
33
33
  }
34
- }, styles_lib_css_atoms_sprinkles_css_cjs.atoms({
34
+ }, lib_css_atoms_sprinkles_css_cjs.atoms({
35
35
  backgroundColor: "white",
36
36
  borderRadius: "medium",
37
37
  boxShadow: "medium"
@@ -1,27 +1,27 @@
1
1
  "use strict";
2
2
  const fileScope = require("@vanilla-extract/css/fileScope");
3
3
  const css = require("@vanilla-extract/css");
4
- const styles_lib_theme_makeComponentTheme_cjs = require("../../../lib/theme/makeComponentTheme.cjs");
5
- const styles_lib_theme_vars_css_cjs = require("../../../lib/theme/vars.css.cjs");
4
+ const lib_theme_makeComponentTheme_cjs = require("../../../lib/theme/makeComponentTheme.cjs");
5
+ const lib_theme_vars_css_cjs = require("../../../lib/theme/vars.css.cjs");
6
6
  fileScope.setFileScope("src/themes/momotaro/components/label.css.ts", "@blockle/blocks");
7
- const label = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("label", {
7
+ const label = lib_theme_makeComponentTheme_cjs.makeComponentTheme("label", {
8
8
  base: css.style({}, "label_base"),
9
9
  variants: {
10
10
  size: {
11
11
  small: css.style({
12
- fontSize: styles_lib_theme_vars_css_cjs.vars.fontSize.xsmall
12
+ fontSize: lib_theme_vars_css_cjs.vars.fontSize.xsmall
13
13
  }, "label_variants_size_small"),
14
14
  medium: css.style({
15
- fontSize: styles_lib_theme_vars_css_cjs.vars.fontSize.small
15
+ fontSize: lib_theme_vars_css_cjs.vars.fontSize.small
16
16
  }, "label_variants_size_medium"),
17
17
  large: css.style({
18
- fontSize: styles_lib_theme_vars_css_cjs.vars.fontSize.medium
18
+ fontSize: lib_theme_vars_css_cjs.vars.fontSize.medium
19
19
  }, "label_variants_size_large")
20
20
  },
21
21
  required: css.style({
22
22
  ":after": {
23
23
  content: '"*"',
24
- marginLeft: styles_lib_theme_vars_css_cjs.vars.space.xsmall
24
+ marginLeft: lib_theme_vars_css_cjs.vars.space.xsmall
25
25
  }
26
26
  }, "label_variants_required")
27
27
  },
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  const fileScope = require("@vanilla-extract/css/fileScope");
3
3
  const css = require("@vanilla-extract/css");
4
- const styles_lib_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");
4
+ const lib_theme_makeComponentTheme_cjs = require("../../../lib/theme/makeComponentTheme.cjs");
5
+ const themes_momotaro_components_helpers_css_cjs = require("./helpers.css.cjs");
6
+ const lib_css_atoms_sprinkles_css_cjs = require("../../../lib/css/atoms/sprinkles.css.cjs");
7
7
  fileScope.setFileScope("src/themes/momotaro/components/link.css.ts", "@blockle/blocks");
8
- const link = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("link", {
8
+ const link = lib_theme_makeComponentTheme_cjs.makeComponentTheme("link", {
9
9
  base: css.style([{
10
10
  outline: "none",
11
11
  border: "none",
@@ -25,18 +25,18 @@ const link = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("link",
25
25
  // marginLeft: 4,
26
26
  // },
27
27
  // },
28
- }, styles_themes_momotaro_components_helpers_css_cjs.focusable], "link_base"),
28
+ }, themes_momotaro_components_helpers_css_cjs.focusable], "link_base"),
29
29
  variants: {
30
30
  variant: {
31
31
  inherit: css.style({
32
32
  color: "inherit",
33
33
  fontWeight: "inherit"
34
34
  }, "link_variants_variant_inherit"),
35
- primary: styles_lib_css_atoms_sprinkles_css_cjs.atoms({
35
+ primary: lib_css_atoms_sprinkles_css_cjs.atoms({
36
36
  color: "primary",
37
37
  fontWeight: "medium"
38
38
  }),
39
- secondary: styles_lib_css_atoms_sprinkles_css_cjs.atoms({
39
+ secondary: lib_css_atoms_sprinkles_css_cjs.atoms({
40
40
  color: "secondary",
41
41
  fontWeight: "medium"
42
42
  })
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
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");
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
5
  fileScope.setFileScope("src/themes/momotaro/components/popover.css.ts", "@blockle/blocks");
6
- const popover = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("popover", {
7
- base: styles_lib_css_style_style_cjs.style({
6
+ const popover = lib_theme_makeComponentTheme_cjs.makeComponentTheme("popover", {
7
+ base: lib_css_style_style_cjs.style({
8
8
  backgroundColor: "white",
9
9
  borderRadius: "small",
10
10
  boxShadow: "medium",
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  const fileScope = require("@vanilla-extract/css/fileScope");
3
3
  const css = require("@vanilla-extract/css");
4
- const styles_lib_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");
4
+ const lib_theme_makeComponentTheme_cjs = require("../../../lib/theme/makeComponentTheme.cjs");
5
+ const lib_theme_vars_css_cjs = require("../../../lib/theme/vars.css.cjs");
6
+ const lib_css_atoms_sprinkles_css_cjs = require("../../../lib/css/atoms/sprinkles.css.cjs");
7
7
  fileScope.setFileScope("src/themes/momotaro/components/progress.css.ts", "@blockle/blocks");
8
8
  const indeterminateAnimation = css.keyframes({
9
9
  "0%": {
@@ -13,10 +13,10 @@ const indeterminateAnimation = css.keyframes({
13
13
  transform: "translateX(100%)"
14
14
  }
15
15
  }, "indeterminateAnimation");
16
- const progress = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("progress", {
16
+ const progress = lib_theme_makeComponentTheme_cjs.makeComponentTheme("progress", {
17
17
  base: css.style([{
18
18
  height: 8
19
- }, styles_lib_css_atoms_sprinkles_css_cjs.atoms({
19
+ }, lib_css_atoms_sprinkles_css_cjs.atoms({
20
20
  inlineSize: "full",
21
21
  borderRadius: "small",
22
22
  backgroundColor: "textLight",
@@ -40,8 +40,8 @@ const progress = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("pro
40
40
  45deg,
41
41
  transparent,
42
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
43
+ ${lib_theme_vars_css_cjs.vars.color.primaryDark} 20px,
44
+ ${lib_theme_vars_css_cjs.vars.color.primaryDark} 40px
45
45
  )`
46
46
  },
47
47
  "(prefers-reduced-motion: no-preference)": {
@@ -0,0 +1,60 @@
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
+ const lib_theme_vars_css_cjs = require("../../../lib/theme/vars.css.cjs");
6
+ const themes_momotaro_components_helpers_css_cjs = require("./helpers.css.cjs");
7
+ const themes_momotaro_components_transitions_cjs = require("./transitions.cjs");
8
+ const 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 = 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 ${lib_theme_vars_css_cjs.vars.transition.fast}, box-shadow ${lib_theme_vars_css_cjs.vars.transition.fast}`
21
+ }
22
+ },
23
+ ":hover": {
24
+ backgroundColor: lib_theme_vars_css_cjs.vars.color.primaryDark
25
+ },
26
+ selectors: {
27
+ "&:has(input:checked):not(:hover)": {
28
+ backgroundColor: lib_theme_vars_css_cjs.vars.color.primary
29
+ }
30
+ }
31
+ }, lib_css_atoms_sprinkles_css_cjs.atoms({
32
+ backgroundColor: "primaryLight"
33
+ }), 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 ${lib_theme_vars_css_cjs.vars.transition.normal} ${themes_momotaro_components_transitions_cjs.bounceOut}`
43
+ }
44
+ },
45
+ selectors: {
46
+ "input:checked ~ &": {
47
+ transform: "scale(1)"
48
+ }
49
+ }
50
+ }, "radio_icon"),
51
+ label: 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,44 @@
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
+ const lib_theme_vars_css_cjs = require("../../../lib/theme/vars.css.cjs");
6
+ const 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 = lib_theme_makeComponentTheme_cjs.makeComponentTheme("select", {
9
+ select: 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: 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: `${lib_theme_vars_css_cjs.vars.shadow.small}, ${lib_theme_vars_css_cjs.vars.focus.boxShadow}`
24
+ }
25
+ }, themes_momotaro_components_helpers_css_cjs.focusable]),
26
+ variants: {
27
+ variant: {
28
+ outline: lib_css_style_style_cjs.style({
29
+ borderWidth: "small",
30
+ borderStyle: "solid",
31
+ borderColor: "primary"
32
+ }),
33
+ solid: lib_css_style_style_cjs.style({})
34
+ }
35
+ },
36
+ icon: 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,89 @@
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,7 +1,7 @@
1
1
  "use strict";
2
2
  const fileScope = require("@vanilla-extract/css/fileScope");
3
3
  const css = require("@vanilla-extract/css");
4
- const styles_lib_theme_makeComponentTheme_cjs = require("../../../lib/theme/makeComponentTheme.cjs");
4
+ const lib_theme_makeComponentTheme_cjs = require("../../../lib/theme/makeComponentTheme.cjs");
5
5
  fileScope.setFileScope("src/themes/momotaro/components/spinner.css.ts", "@blockle/blocks");
6
6
  const spinAnimation = css.keyframes({
7
7
  "0%": {
@@ -11,7 +11,7 @@ const spinAnimation = css.keyframes({
11
11
  transform: "rotate(360deg)"
12
12
  }
13
13
  }, "spinAnimation");
14
- const spinner = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("spinner", {
14
+ const spinner = lib_theme_makeComponentTheme_cjs.makeComponentTheme("spinner", {
15
15
  base: css.style({
16
16
  aspectRatio: "1 / 1",
17
17
  overflow: "hidden",
@@ -1,26 +1,26 @@
1
1
  "use strict";
2
2
  const fileScope = require("@vanilla-extract/css/fileScope");
3
3
  const css = require("@vanilla-extract/css");
4
- const styles_lib_css_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");
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
8
  fileScope.setFileScope("src/themes/momotaro/components/switch.css.ts", "@blockle/blocks");
9
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([{
10
+ const switchTheme = lib_theme_makeComponentTheme_cjs.makeComponentTheme("switch", {
11
+ base: lib_css_style_style_cjs.style([{
12
12
  width: 52,
13
13
  height: 32,
14
14
  borderRadius: "xlarge",
15
15
  backgroundColor: "textLight",
16
16
  "@media": {
17
17
  "(prefers-reduced-motion: no-preference)": {
18
- transition: `background-color 120ms linear, box-shadow ${styles_lib_theme_vars_css_cjs.vars.transition.fast}`
18
+ transition: `background-color 120ms linear, box-shadow ${lib_theme_vars_css_cjs.vars.transition.fast}`
19
19
  }
20
20
  },
21
21
  selectors: {
22
22
  '&[data-checked="true"]': {
23
- backgroundColor: styles_lib_theme_vars_css_cjs.vars.color.secondary
23
+ backgroundColor: lib_theme_vars_css_cjs.vars.color.secondary
24
24
  }
25
25
  },
26
26
  // Scale the switch when it's `:active`
@@ -32,8 +32,8 @@ const switchTheme = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("
32
32
  [activeScaleFactor]: "0.96"
33
33
  }
34
34
  }
35
- }, styles_themes_momotaro_components_helpers_css_cjs.focusable]),
36
- slider: styles_lib_css_style_style_cjs.style({
35
+ }, themes_momotaro_components_helpers_css_cjs.focusable]),
36
+ slider: lib_css_style_style_cjs.style({
37
37
  width: 24,
38
38
  height: 24,
39
39
  top: 4,
@@ -1,21 +1,21 @@
1
1
  "use strict";
2
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");
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
5
  fileScope.setFileScope("src/themes/momotaro/components/tooltip.css.ts", "@blockle/blocks");
6
- const tooltip = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("tooltip", {
7
- base: styles_lib_css_style_style_cjs.style({
6
+ const tooltip = lib_theme_makeComponentTheme_cjs.makeComponentTheme("tooltip", {
7
+ base: lib_css_style_style_cjs.style({
8
8
  backgroundColor: "primary",
9
9
  padding: "small"
10
10
  }),
11
11
  variants: {
12
12
  colorScheme: {
13
- primary: styles_lib_css_style_style_cjs.style({
13
+ primary: lib_css_style_style_cjs.style({
14
14
  backgroundColor: "rgba(0, 0, 0, 0.8)",
15
15
  boxShadow: "0 0 0 1px rgba(255, 255, 255, 0.1)",
16
16
  color: "white"
17
17
  }),
18
- secondary: styles_lib_css_style_style_cjs.style({
18
+ secondary: lib_css_style_style_cjs.style({
19
19
  backgroundColor: "rgba(255, 255, 255, 0.8)",
20
20
  boxShadow: "0 0 0 1px rgba(0, 0, 0, 0.1)",
21
21
  color: "black"
@@ -0,0 +1,13 @@
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,6 +1,6 @@
1
1
  "use strict";
2
2
  const fileScope = require("@vanilla-extract/css/fileScope");
3
- const styles_lib_css_utils_cssUtils_cjs = require("../../lib/css/utils/cssUtils.cjs");
3
+ const lib_css_utils_cssUtils_cjs = require("../../lib/css/utils/cssUtils.cjs");
4
4
  fileScope.setFileScope("src/themes/momotaro/tokens.css.ts", "@blockle/blocks");
5
5
  const tokens = {
6
6
  border: {
@@ -61,11 +61,11 @@ const tokens = {
61
61
  secondary: '"Rubik", sans-serif'
62
62
  },
63
63
  fontSize: {
64
- xsmall: styles_lib_css_utils_cssUtils_cjs.rem(12),
65
- small: styles_lib_css_utils_cssUtils_cjs.rem(14),
66
- medium: styles_lib_css_utils_cssUtils_cjs.rem(16),
67
- large: styles_lib_css_utils_cssUtils_cjs.rem(20),
68
- xlarge: styles_lib_css_utils_cssUtils_cjs.rem(24)
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
69
  },
70
70
  fontWeight: {
71
71
  regular: 400,
@@ -73,11 +73,11 @@ const tokens = {
73
73
  strong: 700
74
74
  },
75
75
  lineHeight: {
76
- xsmall: styles_lib_css_utils_cssUtils_cjs.rem(16),
77
- small: styles_lib_css_utils_cssUtils_cjs.rem(20),
78
- medium: styles_lib_css_utils_cssUtils_cjs.rem(24),
79
- large: styles_lib_css_utils_cssUtils_cjs.rem(28),
80
- xlarge: styles_lib_css_utils_cssUtils_cjs.rem(32)
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
81
  }
82
82
  }
83
83
  };
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const styles_themes_momotaro_momotaro_css_cjs = require("../styles/themes/momotaro/momotaro.css.cjs");
4
- exports.momotaro = styles_themes_momotaro_momotaro_css_cjs.momotaro;
3
+ const themes_momotaro_momotaro_css_cjs = require("./momotaro/momotaro.css.cjs");
4
+ exports.momotaro = themes_momotaro_momotaro_css_cjs.momotaro;
@@ -1,4 +1,4 @@
1
- import { momotaro } from "../styles/themes/momotaro/momotaro.css.mjs";
1
+ import { momotaro } from "./momotaro/momotaro.css.mjs";
2
2
  export {
3
3
  momotaro
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockle/blocks",
3
- "version": "0.19.0",
3
+ "version": "0.20.0-alpha1",
4
4
  "description": "Blocks design system",
5
5
  "repository": "git@github.com:Blockle/blocks.git",
6
6
  "license": "MIT",
@@ -49,12 +49,13 @@
49
49
  "themes/momotaro"
50
50
  ],
51
51
  "scripts": {
52
- "build": "crackle package && node ./temp-use-client-fix.js",
52
+ "build": "crackle package && node ./scripts/use-client-fix.mjs",
53
53
  "build-storybook": "storybook build",
54
54
  "changeset": "changeset",
55
55
  "coverage": "vitest run --coverage",
56
56
  "fix": "crackle fix",
57
- "lint": "eslint .",
57
+ "lint": "biome format ./src",
58
+ "lint:fix": "biome format --write ./src",
58
59
  "release": "npm run ts && npm run test && npm run build && changeset publish",
59
60
  "storybook": "storybook dev -p 6006 --no-open",
60
61
  "test": "vitest --silent",
@@ -64,6 +65,7 @@
64
65
  "string-width": "^4.2.2"
65
66
  },
66
67
  "devDependencies": {
68
+ "@biomejs/biome": "1.9.4",
67
69
  "@changesets/cli": "^2.27.12",
68
70
  "@chromatic-com/storybook": "^3.2.4",
69
71
  "@crackle/cli": "^0.15.5",
@@ -80,11 +82,8 @@
80
82
  "@storybook/test": "^8.5.3",
81
83
  "@testing-library/jest-dom": "^6.6.3",
82
84
  "@testing-library/react": "^16.2.0",
83
- "@types/eslint": "^8.56.12",
84
85
  "@types/react": "^19.0.8",
85
86
  "@types/react-dom": "^19.0.3",
86
- "@typescript-eslint/eslint-plugin": "^7.18.0",
87
- "@typescript-eslint/parser": "^7.18.0",
88
87
  "@vanilla-extract/css": "^1.17.1",
89
88
  "@vanilla-extract/css-utils": "^0.1.4",
90
89
  "@vanilla-extract/sprinkles": "^1.6.2",
@@ -92,16 +91,7 @@
92
91
  "@vitest/coverage-v8": "^3.0.4",
93
92
  "autoprefixer": "^10.4.19",
94
93
  "cross-env": "^7.0.3",
95
- "eslint": "^8.57.0",
96
- "eslint-config-prettier": "^9.1.0",
97
- "eslint-plugin-jest": "^28.6.0",
98
- "eslint-plugin-prettier": "^5.1.3",
99
- "eslint-plugin-react": "^7.34.2",
100
- "eslint-plugin-react-hooks": "^4.6.2",
101
- "eslint-plugin-storybook": "^0.8.0",
102
- "eslint-plugin-unicorn": "^53.0.0",
103
94
  "jsdom": "^26.0.0",
104
- "prettier": "^3.3.1",
105
95
  "prop-types": "^15.8.1",
106
96
  "react": "^19.0.0",
107
97
  "react-dom": "^19.0.0",
@@ -1,16 +0,0 @@
1
- "use strict";
2
- const jsxRuntime = require("react/jsx-runtime");
3
- const styles_components_Accessibility_VisuallyHidden_visuallyHidden_css_cjs = require("./visually-hidden.css.cjs");
4
- const classnames = (...args) => {
5
- const className = args.filter((arg) => arg && typeof arg === "string").join(" ");
6
- return className || void 0;
7
- };
8
- const VisuallyHidden = ({
9
- children,
10
- className,
11
- ...restProps
12
- }) => {
13
- return /* @__PURE__ */ jsxRuntime.jsx("span", { className: classnames(styles_components_Accessibility_VisuallyHidden_visuallyHidden_css_cjs.visuallyHidden, className), ...restProps, children });
14
- };
15
- exports.VisuallyHidden = VisuallyHidden;
16
- exports.classnames = classnames;