@blockle/blocks 0.20.0-alpha1.0 → 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 (354) hide show
  1. package/README.md +1 -70
  2. package/dist/index.cjs +21 -71
  3. package/dist/index.d.ts +3 -36
  4. package/dist/index.js +3 -73
  5. package/dist/reset.cjs +1 -2
  6. package/dist/reset.d.ts +0 -0
  7. package/dist/reset.js +1 -2
  8. package/package.json +22 -78
  9. package/LICENSE +0 -21
  10. package/dist/components/accessibility/VisuallyHidden/VisuallyHidden.cjs +0 -20
  11. package/dist/components/accessibility/VisuallyHidden/VisuallyHidden.d.ts +0 -5
  12. package/dist/components/accessibility/VisuallyHidden/VisuallyHidden.js +0 -20
  13. package/dist/components/accessibility/VisuallyHidden/VisuallyHidden.spec.d.ts +0 -1
  14. package/dist/components/accessibility/VisuallyHidden/VisuallyHidden.stories.d.ts +0 -6
  15. package/dist/components/accessibility/VisuallyHidden/index.d.ts +0 -1
  16. package/dist/components/accessibility/VisuallyHidden/visually-hidden.css.cjs +0 -16
  17. package/dist/components/accessibility/VisuallyHidden/visually-hidden.css.d.ts +0 -1
  18. package/dist/components/accessibility/VisuallyHidden/visually-hidden.css.js +0 -16
  19. package/dist/components/display/Divider/Divider.cjs +0 -26
  20. package/dist/components/display/Divider/Divider.d.ts +0 -7
  21. package/dist/components/display/Divider/Divider.js +0 -26
  22. package/dist/components/display/Divider/Divider.spec.d.ts +0 -1
  23. package/dist/components/display/Divider/Divider.stories.d.ts +0 -6
  24. package/dist/components/display/Divider/divider.css.cjs +0 -16
  25. package/dist/components/display/Divider/divider.css.d.ts +0 -1
  26. package/dist/components/display/Divider/divider.css.js +0 -16
  27. package/dist/components/display/Divider/index.d.ts +0 -1
  28. package/dist/components/feedback/Progress/Progress.cjs +0 -54
  29. package/dist/components/feedback/Progress/Progress.d.ts +0 -16
  30. package/dist/components/feedback/Progress/Progress.js +0 -54
  31. package/dist/components/feedback/Progress/Progress.stories.d.ts +0 -5
  32. package/dist/components/feedback/Progress/index.d.ts +0 -1
  33. package/dist/components/feedback/Spinner/Spinner.cjs +0 -26
  34. package/dist/components/feedback/Spinner/Spinner.d.ts +0 -9
  35. package/dist/components/feedback/Spinner/Spinner.js +0 -26
  36. package/dist/components/feedback/Spinner/Spinner.stories.d.ts +0 -5
  37. package/dist/components/feedback/Spinner/index.d.ts +0 -1
  38. package/dist/components/form/Button/Button.cjs +0 -59
  39. package/dist/components/form/Button/Button.css.cjs +0 -16
  40. package/dist/components/form/Button/Button.css.d.ts +0 -1
  41. package/dist/components/form/Button/Button.css.js +0 -16
  42. package/dist/components/form/Button/Button.d.ts +0 -21
  43. package/dist/components/form/Button/Button.js +0 -59
  44. package/dist/components/form/Button/Button.spec.d.ts +0 -1
  45. package/dist/components/form/Button/Button.stories.d.ts +0 -7
  46. package/dist/components/form/Button/index.d.ts +0 -1
  47. package/dist/components/form/Checkbox/Checkbox.cjs +0 -79
  48. package/dist/components/form/Checkbox/Checkbox.d.ts +0 -9
  49. package/dist/components/form/Checkbox/Checkbox.js +0 -79
  50. package/dist/components/form/Checkbox/Checkbox.spec.d.ts +0 -1
  51. package/dist/components/form/Checkbox/Checkbox.stories.d.ts +0 -5
  52. package/dist/components/form/Checkbox/checkbox.css.cjs +0 -32
  53. package/dist/components/form/Checkbox/checkbox.css.d.ts +0 -3
  54. package/dist/components/form/Checkbox/checkbox.css.js +0 -32
  55. package/dist/components/form/Checkbox/index.d.ts +0 -1
  56. package/dist/components/form/Input/Input.cjs +0 -51
  57. package/dist/components/form/Input/Input.d.ts +0 -11
  58. package/dist/components/form/Input/Input.js +0 -51
  59. package/dist/components/form/Input/Input.spec.d.ts +0 -1
  60. package/dist/components/form/Input/Input.stories.d.ts +0 -5
  61. package/dist/components/form/Input/index.d.ts +0 -1
  62. package/dist/components/form/Input/input.css.cjs +0 -21
  63. package/dist/components/form/Input/input.css.d.ts +0 -1
  64. package/dist/components/form/Input/input.css.js +0 -21
  65. package/dist/components/form/Label/Label.cjs +0 -30
  66. package/dist/components/form/Label/Label.d.ts +0 -18
  67. package/dist/components/form/Label/Label.js +0 -30
  68. package/dist/components/form/Label/Label.spec.d.ts +0 -1
  69. package/dist/components/form/Label/Label.stories.d.ts +0 -6
  70. package/dist/components/form/Label/index.d.ts +0 -1
  71. package/dist/components/form/Radio/Radio.cjs +0 -48
  72. package/dist/components/form/Radio/Radio.d.ts +0 -8
  73. package/dist/components/form/Radio/Radio.js +0 -48
  74. package/dist/components/form/Radio/Radio.spec.d.ts +0 -1
  75. package/dist/components/form/Radio/Radio.stories.d.ts +0 -6
  76. package/dist/components/form/Radio/RadioGroup.d.ts +0 -8
  77. package/dist/components/form/Radio/index.d.ts +0 -2
  78. package/dist/components/form/Radio/radio.css.cjs +0 -32
  79. package/dist/components/form/Radio/radio.css.d.ts +0 -3
  80. package/dist/components/form/Radio/radio.css.js +0 -32
  81. package/dist/components/form/Select/Select.cjs +0 -65
  82. package/dist/components/form/Select/Select.d.ts +0 -10
  83. package/dist/components/form/Select/Select.js +0 -65
  84. package/dist/components/form/Select/Select.stories.d.ts +0 -5
  85. package/dist/components/form/Select/index.d.ts +0 -1
  86. package/dist/components/form/Select/select.css.cjs +0 -38
  87. package/dist/components/form/Select/select.css.d.ts +0 -3
  88. package/dist/components/form/Select/select.css.js +0 -38
  89. package/dist/components/form/Slider/Slider.cjs +0 -141
  90. package/dist/components/form/Slider/Slider.d.ts +0 -20
  91. package/dist/components/form/Slider/Slider.js +0 -141
  92. package/dist/components/form/Slider/Slider.spec.d.ts +0 -1
  93. package/dist/components/form/Slider/Slider.stories.d.ts +0 -6
  94. package/dist/components/form/Slider/index.d.ts +0 -1
  95. package/dist/components/form/Slider/slider.css.cjs +0 -75
  96. package/dist/components/form/Slider/slider.css.d.ts +0 -5
  97. package/dist/components/form/Slider/slider.css.js +0 -75
  98. package/dist/components/form/Slider/usePointerProgress.cjs +0 -47
  99. package/dist/components/form/Slider/usePointerProgress.d.ts +0 -11
  100. package/dist/components/form/Slider/usePointerProgress.js +0 -47
  101. package/dist/components/form/Switch/Switch.cjs +0 -73
  102. package/dist/components/form/Switch/Switch.d.ts +0 -6
  103. package/dist/components/form/Switch/Switch.js +0 -73
  104. package/dist/components/form/Switch/Switch.stories.d.ts +0 -5
  105. package/dist/components/form/Switch/index.d.ts +0 -1
  106. package/dist/components/form/Switch/switch.css.cjs +0 -27
  107. package/dist/components/form/Switch/switch.css.d.ts +0 -2
  108. package/dist/components/form/Switch/switch.css.js +0 -27
  109. package/dist/components/layout/Box/Box.cjs +0 -28
  110. package/dist/components/layout/Box/Box.d.ts +0 -11
  111. package/dist/components/layout/Box/Box.js +0 -28
  112. package/dist/components/layout/Box/Box.spec.d.ts +0 -1
  113. package/dist/components/layout/Box/Box.stories.d.ts +0 -6
  114. package/dist/components/layout/Box/index.d.ts +0 -1
  115. package/dist/components/layout/Inline/Inline.cjs +0 -30
  116. package/dist/components/layout/Inline/Inline.d.ts +0 -13
  117. package/dist/components/layout/Inline/Inline.js +0 -30
  118. package/dist/components/layout/Inline/Inline.stories.d.ts +0 -6
  119. package/dist/components/layout/Inline/index.d.ts +0 -1
  120. package/dist/components/layout/Stack/Stack.cjs +0 -30
  121. package/dist/components/layout/Stack/Stack.d.ts +0 -17
  122. package/dist/components/layout/Stack/Stack.js +0 -30
  123. package/dist/components/layout/Stack/Stack.stories.d.ts +0 -6
  124. package/dist/components/layout/Stack/index.d.ts +0 -1
  125. package/dist/components/navigation/Link/Link.cjs +0 -32
  126. package/dist/components/navigation/Link/Link.d.ts +0 -11
  127. package/dist/components/navigation/Link/Link.js +0 -32
  128. package/dist/components/navigation/Link/Link.stories.d.ts +0 -6
  129. package/dist/components/navigation/Link/index.d.ts +0 -1
  130. package/dist/components/other/BlocksProvider/BlocksProvider.cjs +0 -38
  131. package/dist/components/other/BlocksProvider/BlocksProvider.d.ts +0 -8
  132. package/dist/components/other/BlocksProvider/BlocksProvider.js +0 -38
  133. package/dist/components/other/BlocksProvider/context.cjs +0 -6
  134. package/dist/components/other/BlocksProvider/context.d.ts +0 -4
  135. package/dist/components/other/BlocksProvider/context.js +0 -6
  136. package/dist/components/other/BlocksProvider/index.d.ts +0 -2
  137. package/dist/components/other/Portal/Portal.cjs +0 -8
  138. package/dist/components/other/Portal/Portal.d.ts +0 -5
  139. package/dist/components/other/Portal/Portal.js +0 -8
  140. package/dist/components/other/Portal/index.d.ts +0 -1
  141. package/dist/components/overlay/Dialog/Dialog.cjs +0 -79
  142. package/dist/components/overlay/Dialog/Dialog.d.ts +0 -10
  143. package/dist/components/overlay/Dialog/Dialog.js +0 -79
  144. package/dist/components/overlay/Dialog/Dialog.stories.d.ts +0 -7
  145. package/dist/components/overlay/Dialog/dialog.css.cjs +0 -22
  146. package/dist/components/overlay/Dialog/dialog.css.d.ts +0 -1
  147. package/dist/components/overlay/Dialog/dialog.css.js +0 -22
  148. package/dist/components/overlay/Dialog/dialogHelper.cjs +0 -22
  149. package/dist/components/overlay/Dialog/dialogHelper.d.ts +0 -6
  150. package/dist/components/overlay/Dialog/dialogHelper.js +0 -22
  151. package/dist/components/overlay/Dialog/index.d.ts +0 -1
  152. package/dist/components/overlay/Popover/Popover.cjs +0 -113
  153. package/dist/components/overlay/Popover/Popover.d.ts +0 -12
  154. package/dist/components/overlay/Popover/Popover.js +0 -113
  155. package/dist/components/overlay/Popover/Popover.stories.d.ts +0 -5
  156. package/dist/components/overlay/Popover/popover-utils.cjs +0 -62
  157. package/dist/components/overlay/Popover/popover-utils.d.ts +0 -2
  158. package/dist/components/overlay/Popover/popover-utils.js +0 -62
  159. package/dist/components/overlay/Tooltip/Tooltip.cjs +0 -73
  160. package/dist/components/overlay/Tooltip/Tooltip.d.ts +0 -11
  161. package/dist/components/overlay/Tooltip/Tooltip.js +0 -73
  162. package/dist/components/overlay/Tooltip/Tooltip.stories.d.ts +0 -5
  163. package/dist/components/overlay/Tooltip/index.d.ts +0 -1
  164. package/dist/components/typography/Heading/Heading.cjs +0 -24
  165. package/dist/components/typography/Heading/Heading.d.ts +0 -8
  166. package/dist/components/typography/Heading/Heading.js +0 -24
  167. package/dist/components/typography/Heading/heading.css.cjs +0 -16
  168. package/dist/components/typography/Heading/heading.css.d.ts +0 -1
  169. package/dist/components/typography/Heading/heading.css.js +0 -16
  170. package/dist/components/typography/Heading/heading.stories.d.ts +0 -12
  171. package/dist/components/typography/Heading/index.d.ts +0 -1
  172. package/dist/components/typography/Text/Text.cjs +0 -21
  173. package/dist/components/typography/Text/Text.d.ts +0 -12
  174. package/dist/components/typography/Text/Text.js +0 -21
  175. package/dist/components/typography/Text/Text.stories.d.ts +0 -5
  176. package/dist/components/typography/Text/index.d.ts +0 -1
  177. package/dist/components/typography/Text/text.css.cjs +0 -16
  178. package/dist/components/typography/Text/text.css.d.ts +0 -1
  179. package/dist/components/typography/Text/text.css.js +0 -16
  180. package/dist/entries/themes/momotaro.d.ts +0 -1
  181. package/dist/hooks/useClickOutside/useClickOutside.cjs +0 -24
  182. package/dist/hooks/useClickOutside/useClickOutside.d.ts +0 -6
  183. package/dist/hooks/useClickOutside/useClickOutside.js +0 -24
  184. package/dist/hooks/useControlledValue/useControlledValue.cjs +0 -33
  185. package/dist/hooks/useControlledValue/useControlledValue.d.ts +0 -8
  186. package/dist/hooks/useControlledValue/useControlledValue.js +0 -33
  187. package/dist/hooks/useFocusLock/index.d.ts +0 -1
  188. package/dist/hooks/useFocusLock/useFocusLock.d.ts +0 -6
  189. package/dist/hooks/useIsomorphicLayoutEffect/index.d.ts +0 -1
  190. package/dist/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.cjs +0 -6
  191. package/dist/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.d.ts +0 -5
  192. package/dist/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js +0 -6
  193. package/dist/hooks/useKeyboard/index.d.ts +0 -1
  194. package/dist/hooks/useKeyboard/useKeyboard.cjs +0 -21
  195. package/dist/hooks/useKeyboard/useKeyboard.d.ts +0 -6
  196. package/dist/hooks/useKeyboard/useKeyboard.js +0 -21
  197. package/dist/hooks/useLayer/index.d.ts +0 -1
  198. package/dist/hooks/useLayer/useLayer.cjs +0 -27
  199. package/dist/hooks/useLayer/useLayer.d.ts +0 -1
  200. package/dist/hooks/useLayer/useLayer.js +0 -27
  201. package/dist/hooks/usePreventBodyScroll/index.d.ts +0 -1
  202. package/dist/hooks/usePreventBodyScroll/usePreventBodyScroll.cjs +0 -30
  203. package/dist/hooks/usePreventBodyScroll/usePreventBodyScroll.d.ts +0 -1
  204. package/dist/hooks/usePreventBodyScroll/usePreventBodyScroll.js +0 -30
  205. package/dist/hooks/useRestoreFocus/index.d.ts +0 -1
  206. package/dist/hooks/useRestoreFocus/useRestoreFocus.cjs +0 -19
  207. package/dist/hooks/useRestoreFocus/useRestoreFocus.d.ts +0 -4
  208. package/dist/hooks/useRestoreFocus/useRestoreFocus.js +0 -19
  209. package/dist/hooks/useRootAriaHidden/index.d.ts +0 -1
  210. package/dist/hooks/useRootAriaHidden/useRootAriaHidden.cjs +0 -12
  211. package/dist/hooks/useRootAriaHidden/useRootAriaHidden.d.ts +0 -7
  212. package/dist/hooks/useRootAriaHidden/useRootAriaHidden.js +0 -12
  213. package/dist/hooks/useVisibilityState/index.d.ts +0 -1
  214. package/dist/hooks/useVisibilityState/useVisibilityState.cjs +0 -17
  215. package/dist/hooks/useVisibilityState/useVisibilityState.d.ts +0 -3
  216. package/dist/hooks/useVisibilityState/useVisibilityState.js +0 -17
  217. package/dist/lib/asChildRenderer/createAsChildTemplate.cjs +0 -73
  218. package/dist/lib/asChildRenderer/createAsChildTemplate.d.ts +0 -34
  219. package/dist/lib/asChildRenderer/createAsChildTemplate.js +0 -73
  220. package/dist/lib/asChildRenderer/createAsChildTemplate.spec.d.ts +0 -1
  221. package/dist/lib/css/atoms/atomTypes.d.ts +0 -37
  222. package/dist/lib/css/atoms/atomicProperties.cjs +0 -90
  223. package/dist/lib/css/atoms/atomicProperties.d.ts +0 -286
  224. package/dist/lib/css/atoms/atomicProperties.js +0 -90
  225. package/dist/lib/css/atoms/atoms.d.ts +0 -1
  226. package/dist/lib/css/atoms/breakpoints.cjs +0 -15
  227. package/dist/lib/css/atoms/breakpoints.d.ts +0 -9
  228. package/dist/lib/css/atoms/breakpoints.js +0 -15
  229. package/dist/lib/css/atoms/index.d.ts +0 -2
  230. package/dist/lib/css/atoms/sprinkles.css.cjs +0 -52
  231. package/dist/lib/css/atoms/sprinkles.css.d.ts +0 -233
  232. package/dist/lib/css/atoms/sprinkles.css.js +0 -52
  233. package/dist/lib/css/flexbox/flexbox.cjs +0 -17
  234. package/dist/lib/css/flexbox/flexbox.d.ts +0 -15
  235. package/dist/lib/css/flexbox/flexbox.js +0 -17
  236. package/dist/lib/css/layers/layers.css.cjs +0 -8
  237. package/dist/lib/css/layers/layers.css.d.ts +0 -1
  238. package/dist/lib/css/layers/layers.css.js +0 -8
  239. package/dist/lib/css/reset/reset.css.cjs +0 -38
  240. package/dist/lib/css/reset/reset.css.d.ts +0 -1
  241. package/dist/lib/css/reset/reset.css.js +0 -37
  242. package/dist/lib/css/style/style.cjs +0 -29
  243. package/dist/lib/css/style/style.d.ts +0 -12
  244. package/dist/lib/css/style/style.js +0 -29
  245. package/dist/lib/css/utils/cssUtils.cjs +0 -6
  246. package/dist/lib/css/utils/cssUtils.d.ts +0 -1
  247. package/dist/lib/css/utils/cssUtils.js +0 -6
  248. package/dist/lib/react/mergeProps.cjs +0 -43
  249. package/dist/lib/react/mergeProps.d.ts +0 -4
  250. package/dist/lib/react/mergeProps.js +0 -43
  251. package/dist/lib/react/refs.cjs +0 -17
  252. package/dist/lib/react/refs.d.ts +0 -3
  253. package/dist/lib/react/refs.js +0 -17
  254. package/dist/lib/theme/componentThemes.d.ts +0 -134
  255. package/dist/lib/theme/makeComponentTheme.cjs +0 -6
  256. package/dist/lib/theme/makeComponentTheme.d.ts +0 -49
  257. package/dist/lib/theme/makeComponentTheme.js +0 -6
  258. package/dist/lib/theme/makeTheme.cjs +0 -13
  259. package/dist/lib/theme/makeTheme.d.ts +0 -14
  260. package/dist/lib/theme/makeTheme.js +0 -13
  261. package/dist/lib/theme/makeVanillaTheme.cjs +0 -20
  262. package/dist/lib/theme/makeVanillaTheme.d.ts +0 -16
  263. package/dist/lib/theme/makeVanillaTheme.js +0 -20
  264. package/dist/lib/theme/store/theme.cjs +0 -93
  265. package/dist/lib/theme/store/theme.d.ts +0 -13
  266. package/dist/lib/theme/store/theme.js +0 -93
  267. package/dist/lib/theme/tokens.cjs +0 -82
  268. package/dist/lib/theme/tokens.d.ts +0 -2
  269. package/dist/lib/theme/tokens.js +0 -82
  270. package/dist/lib/theme/tokensType.d.ts +0 -33
  271. package/dist/lib/theme/vars.css.cjs +0 -10
  272. package/dist/lib/theme/vars.css.d.ts +0 -75
  273. package/dist/lib/theme/vars.css.js +0 -10
  274. package/dist/lib/utils/atom-props.cjs +0 -16
  275. package/dist/lib/utils/atom-props.d.ts +0 -4
  276. package/dist/lib/utils/atom-props.js +0 -16
  277. package/dist/lib/utils/classnames.cjs +0 -7
  278. package/dist/lib/utils/classnames.d.ts +0 -3
  279. package/dist/lib/utils/classnames.js +0 -7
  280. package/dist/lib/utils/dom-focus.d.ts +0 -2
  281. package/dist/lib/utils/dom.cjs +0 -13
  282. package/dist/lib/utils/dom.d.ts +0 -4
  283. package/dist/lib/utils/dom.js +0 -13
  284. package/dist/lib/utils/helpers.d.ts +0 -9
  285. package/dist/lib/utils/math.cjs +0 -13
  286. package/dist/lib/utils/math.d.ts +0 -2
  287. package/dist/lib/utils/math.js +0 -13
  288. package/dist/lib/utils/utils.d.ts +0 -3
  289. package/dist/themes/momotaro/components/button.css.cjs +0 -110
  290. package/dist/themes/momotaro/components/button.css.d.ts +0 -1
  291. package/dist/themes/momotaro/components/button.css.js +0 -110
  292. package/dist/themes/momotaro/components/checkbox.css.cjs +0 -64
  293. package/dist/themes/momotaro/components/checkbox.css.d.ts +0 -1
  294. package/dist/themes/momotaro/components/checkbox.css.js +0 -64
  295. package/dist/themes/momotaro/components/dialog.css.cjs +0 -82
  296. package/dist/themes/momotaro/components/dialog.css.d.ts +0 -1
  297. package/dist/themes/momotaro/components/dialog.css.js +0 -82
  298. package/dist/themes/momotaro/components/divider.css.cjs +0 -16
  299. package/dist/themes/momotaro/components/divider.css.d.ts +0 -1
  300. package/dist/themes/momotaro/components/divider.css.js +0 -16
  301. package/dist/themes/momotaro/components/helpers.css.cjs +0 -47
  302. package/dist/themes/momotaro/components/helpers.css.d.ts +0 -8
  303. package/dist/themes/momotaro/components/helpers.css.js +0 -47
  304. package/dist/themes/momotaro/components/index.cjs +0 -35
  305. package/dist/themes/momotaro/components/index.d.ts +0 -2
  306. package/dist/themes/momotaro/components/index.js +0 -35
  307. package/dist/themes/momotaro/components/input.css.cjs +0 -48
  308. package/dist/themes/momotaro/components/input.css.d.ts +0 -1
  309. package/dist/themes/momotaro/components/input.css.js +0 -48
  310. package/dist/themes/momotaro/components/label.css.cjs +0 -34
  311. package/dist/themes/momotaro/components/label.css.d.ts +0 -1
  312. package/dist/themes/momotaro/components/label.css.js +0 -34
  313. package/dist/themes/momotaro/components/link.css.cjs +0 -57
  314. package/dist/themes/momotaro/components/link.css.d.ts +0 -1
  315. package/dist/themes/momotaro/components/link.css.js +0 -57
  316. package/dist/themes/momotaro/components/popover.css.cjs +0 -33
  317. package/dist/themes/momotaro/components/popover.css.d.ts +0 -1
  318. package/dist/themes/momotaro/components/popover.css.js +0 -33
  319. package/dist/themes/momotaro/components/progress.css.cjs +0 -59
  320. package/dist/themes/momotaro/components/progress.css.d.ts +0 -1
  321. package/dist/themes/momotaro/components/progress.css.js +0 -59
  322. package/dist/themes/momotaro/components/radio.css.cjs +0 -65
  323. package/dist/themes/momotaro/components/radio.css.d.ts +0 -1
  324. package/dist/themes/momotaro/components/radio.css.js +0 -65
  325. package/dist/themes/momotaro/components/select.css.cjs +0 -48
  326. package/dist/themes/momotaro/components/select.css.d.ts +0 -1
  327. package/dist/themes/momotaro/components/select.css.js +0 -48
  328. package/dist/themes/momotaro/components/slider.css.cjs +0 -93
  329. package/dist/themes/momotaro/components/slider.css.d.ts +0 -1
  330. package/dist/themes/momotaro/components/slider.css.js +0 -93
  331. package/dist/themes/momotaro/components/spinner.css.cjs +0 -44
  332. package/dist/themes/momotaro/components/spinner.css.d.ts +0 -1
  333. package/dist/themes/momotaro/components/spinner.css.js +0 -44
  334. package/dist/themes/momotaro/components/switch.css.cjs +0 -62
  335. package/dist/themes/momotaro/components/switch.css.d.ts +0 -1
  336. package/dist/themes/momotaro/components/switch.css.js +0 -62
  337. package/dist/themes/momotaro/components/tooltip.css.cjs +0 -31
  338. package/dist/themes/momotaro/components/tooltip.css.d.ts +0 -1
  339. package/dist/themes/momotaro/components/tooltip.css.js +0 -31
  340. package/dist/themes/momotaro/components/transitions.cjs +0 -4
  341. package/dist/themes/momotaro/components/transitions.d.ts +0 -1
  342. package/dist/themes/momotaro/components/transitions.js +0 -4
  343. package/dist/themes/momotaro/index.d.ts +0 -1
  344. package/dist/themes/momotaro/momotaro.css.cjs +0 -14
  345. package/dist/themes/momotaro/momotaro.css.d.ts +0 -1
  346. package/dist/themes/momotaro/momotaro.css.js +0 -14
  347. package/dist/themes/momotaro/tokens.css.cjs +0 -86
  348. package/dist/themes/momotaro/tokens.css.d.ts +0 -2
  349. package/dist/themes/momotaro/tokens.css.js +0 -86
  350. package/dist/themes/momotaro.cjs +0 -4
  351. package/dist/themes/momotaro.js +0 -4
  352. package/themes/momotaro/index.d.ts +0 -1
  353. package/themes/momotaro/package.json +0 -5
  354. /package/dist/{entries/reset.d.ts → index.spec.d.ts} +0 -0
@@ -1,82 +0,0 @@
1
- const tokens = {
2
- typography: {
3
- fontFamily: {
4
- body: "Roboto, sans-serif",
5
- primary: "Roboto, sans-serif",
6
- secondary: "Roboto, sans-serif"
7
- },
8
- fontSize: {
9
- xsmall: "0.75rem",
10
- small: "0.875rem",
11
- medium: "1rem",
12
- large: "1.125rem",
13
- xlarge: "1.25rem"
14
- },
15
- fontWeight: {
16
- regular: 400,
17
- medium: 500,
18
- strong: 700
19
- },
20
- lineHeight: {
21
- xsmall: "1rem",
22
- small: "1.25rem",
23
- medium: "1.5rem",
24
- large: "1.75rem",
25
- xlarge: "2rem"
26
- }
27
- },
28
- spacing: {
29
- none: 0,
30
- gutter: "1rem",
31
- xsmall: "0.25rem",
32
- small: "0.5rem",
33
- medium: "1rem",
34
- large: "1.5rem",
35
- xlarge: "2rem"
36
- },
37
- transition: {
38
- slow: "500ms",
39
- normal: "300ms",
40
- fast: "100ms"
41
- },
42
- border: {
43
- radius: {
44
- small: "0.25rem",
45
- medium: "0.5rem",
46
- large: "1rem",
47
- xlarge: "2rem"
48
- },
49
- width: {
50
- small: "1px",
51
- medium: "2px",
52
- large: "4px"
53
- }
54
- },
55
- shadow: {
56
- small: "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
57
- medium: "0 2px 4px 0 rgba(0, 0, 0, 0.05)",
58
- large: "0 4px 8px 0 rgba(0, 0, 0, 0.05)"
59
- },
60
- focus: {
61
- boxShadow: "0 0 0 2px #AF8EFF"
62
- },
63
- color: {
64
- black: "#000000",
65
- white: "#ffffff",
66
- body: "#ffffff",
67
- primaryLight: "#f5f5f5",
68
- primary: "#e0e0e0",
69
- primaryDark: "#aeaeae",
70
- secondaryLight: "#f5f5f5",
71
- secondary: "#e0e0e0",
72
- secondaryDark: "#aeaeae",
73
- text: "#000000",
74
- textLight: "#ffffff",
75
- textDark: "#aeaeae",
76
- danger: "#ff0000",
77
- link: "#0000ff"
78
- }
79
- };
80
- export {
81
- tokens
82
- };
@@ -1,33 +0,0 @@
1
- type FontWeight = 'regular' | 'medium' | 'strong';
2
- type Space = 'none' | 'gutter' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
3
- type Transition = 'slow' | 'normal' | 'fast';
4
- type BorderRadius = 'small' | 'medium' | 'large' | 'xlarge';
5
- type BorderWidth = 'small' | 'medium' | 'large';
6
- type BoxShadow = 'small' | 'medium' | 'large';
7
- type FontSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
8
- type LineHeight = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
9
- type Color = 'white' | 'black' | 'body' | 'primaryLight' | 'primary' | 'primaryDark' | 'secondaryLight' | 'secondary' | 'secondaryDark' | 'text' | 'textLight' | 'textDark' | 'danger' | 'link';
10
- export type ThemeTokens = {
11
- typography: {
12
- fontFamily: {
13
- body?: string;
14
- primary?: string;
15
- secondary?: string;
16
- };
17
- fontSize: Record<FontSize, number | string>;
18
- fontWeight: Record<FontWeight, 400 | 500 | 600 | 700 | 800>;
19
- lineHeight: Record<LineHeight, number | string>;
20
- };
21
- spacing: Record<Space, number | string>;
22
- transition: Record<Transition, string>;
23
- border: {
24
- radius: Record<BorderRadius, number | string>;
25
- width: Record<BorderWidth, number | string>;
26
- };
27
- shadow: Record<BoxShadow, string>;
28
- focus: {
29
- boxShadow: string;
30
- };
31
- color: Record<Color, string>;
32
- };
33
- export {};
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const fileScope = require("@vanilla-extract/css/fileScope");
4
- const css = require("@vanilla-extract/css");
5
- const makeVanillaTheme = require("./makeVanillaTheme.cjs");
6
- const tokens = require("./tokens.cjs");
7
- fileScope.setFileScope("src/lib/theme/vars.css.ts", "@blockle/blocks");
8
- const vars = css.createThemeContract(makeVanillaTheme.makeVanillaTheme(tokens.tokens));
9
- fileScope.endFileScope();
10
- exports.vars = vars;
@@ -1,75 +0,0 @@
1
- export declare const vars: {
2
- space: {
3
- medium: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
4
- none: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
5
- gutter: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
6
- xsmall: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
7
- small: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
8
- large: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
9
- xlarge: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
10
- };
11
- borderRadius: {
12
- medium: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
13
- small: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
14
- large: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
15
- xlarge: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
16
- };
17
- color: {
18
- white: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
19
- black: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
20
- body: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
21
- primaryLight: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
22
- primary: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
23
- primaryDark: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
24
- secondaryLight: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
25
- secondary: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
26
- secondaryDark: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
27
- text: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
28
- textLight: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
29
- textDark: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
30
- danger: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
31
- link: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
32
- };
33
- borderWidth: {
34
- medium: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
35
- small: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
36
- large: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
37
- };
38
- fontFamily: {
39
- body: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
40
- primary: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
41
- secondary: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
42
- };
43
- fontSize: {
44
- medium: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
45
- xsmall: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
46
- small: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
47
- large: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
48
- xlarge: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
49
- };
50
- fontWeight: {
51
- regular: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
52
- medium: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
53
- strong: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
54
- };
55
- lineHeight: {
56
- medium: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
57
- xsmall: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
58
- small: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
59
- large: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
60
- xlarge: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
61
- };
62
- transition: {
63
- slow: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
64
- normal: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
65
- fast: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
66
- };
67
- shadow: {
68
- medium: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
69
- small: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
70
- large: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
71
- };
72
- focus: {
73
- boxShadow: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
74
- };
75
- };
@@ -1,10 +0,0 @@
1
- import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
2
- import { createThemeContract } from "@vanilla-extract/css";
3
- import { makeVanillaTheme } from "./makeVanillaTheme.js";
4
- import { tokens } from "./tokens.js";
5
- setFileScope("src/lib/theme/vars.css.ts", "@blockle/blocks");
6
- const vars = createThemeContract(makeVanillaTheme(tokens));
7
- endFileScope();
8
- export {
9
- vars
10
- };
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const sprinkles_css = require("../css/atoms/sprinkles.css.cjs");
4
- function getAtomsAndProps(props) {
5
- const atomProps = {};
6
- const otherProps = {};
7
- for (const [name, value] of Object.entries(props)) {
8
- if (sprinkles_css.atoms.properties.has(name)) {
9
- atomProps[name] = value;
10
- } else {
11
- otherProps[name] = value;
12
- }
13
- }
14
- return [atomProps, otherProps];
15
- }
16
- exports.getAtomsAndProps = getAtomsAndProps;
@@ -1,4 +0,0 @@
1
- /**
2
- *
3
- */
4
- export declare function getAtomsAndProps(props: Record<string, unknown>): [atomsClassNames: Record<string, unknown>, props: Record<string, unknown>];
@@ -1,16 +0,0 @@
1
- import { atoms } from "../css/atoms/sprinkles.css.js";
2
- function getAtomsAndProps(props) {
3
- const atomProps = {};
4
- const otherProps = {};
5
- for (const [name, value] of Object.entries(props)) {
6
- if (atoms.properties.has(name)) {
7
- atomProps[name] = value;
8
- } else {
9
- otherProps[name] = value;
10
- }
11
- }
12
- return [atomProps, otherProps];
13
- }
14
- export {
15
- getAtomsAndProps
16
- };
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const classnames = (...args) => {
4
- const className = args.filter((arg) => arg && typeof arg === "string").join(" ");
5
- return className || void 0;
6
- };
7
- exports.classnames = classnames;
@@ -1,3 +0,0 @@
1
- type Args = null | undefined | boolean | string | unknown;
2
- export declare const classnames: (...args: Args[]) => string | undefined;
3
- export {};
@@ -1,7 +0,0 @@
1
- const classnames = (...args) => {
2
- const className = args.filter((arg) => arg && typeof arg === "string").join(" ");
3
- return className || void 0;
4
- };
5
- export {
6
- classnames
7
- };
@@ -1,2 +0,0 @@
1
- export declare const getFirstFocusableElement: (container: HTMLElement) => HTMLElement | null;
2
- export declare const focusFirstElement: (container: HTMLElement) => void;
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- function hasAnimationDuration(element) {
4
- if (!element) {
5
- return false;
6
- }
7
- const style = window.getComputedStyle(element);
8
- return hasDuration(style.transitionDuration) || hasDuration(style.animationDuration);
9
- }
10
- function hasDuration(duration) {
11
- return duration.split(",").map((part) => Number.parseFloat(part.trim())).some((part) => part > 0);
12
- }
13
- exports.hasAnimationDuration = hasAnimationDuration;
@@ -1,4 +0,0 @@
1
- /**
2
- * Check if the element has animation duration.
3
- */
4
- export declare function hasAnimationDuration(element: HTMLElement | null): boolean;
@@ -1,13 +0,0 @@
1
- function hasAnimationDuration(element) {
2
- if (!element) {
3
- return false;
4
- }
5
- const style = window.getComputedStyle(element);
6
- return hasDuration(style.transitionDuration) || hasDuration(style.animationDuration);
7
- }
8
- function hasDuration(duration) {
9
- return duration.split(",").map((part) => Number.parseFloat(part.trim())).some((part) => part > 0);
10
- }
11
- export {
12
- hasAnimationDuration
13
- };
@@ -1,9 +0,0 @@
1
- export type AnyString = string & {};
2
- /**
3
- * Suggest a type for a string literal but also allow any string.
4
- */
5
- export type OptionalLiteral<T extends string> = T | AnyString;
6
- export type RecordLike = Record<string | number, unknown>;
7
- export type IsStringUnion<T> = T extends string ? string extends T ? false : true : false;
8
- export type IsNumberUnion<T> = T extends number ? number extends T ? false : true : false;
9
- export type IsUnion<T> = IsStringUnion<T> extends true ? true : IsNumberUnion<T> extends true ? true : false;
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- function roundToPrecision(value, precision) {
4
- const factor = 10 ** precision;
5
- return Math.round(value * factor) / factor;
6
- }
7
- function getBoundValue(newValue, min, max, step) {
8
- let value = Math.round(newValue / step) * step;
9
- value = Math.max(min, Math.min(max, value));
10
- return value;
11
- }
12
- exports.getBoundValue = getBoundValue;
13
- exports.roundToPrecision = roundToPrecision;
@@ -1,2 +0,0 @@
1
- export declare function roundToPrecision(value: number, precision: number): number;
2
- export declare function getBoundValue(newValue: number, min: number, max: number, step: number): number;
@@ -1,13 +0,0 @@
1
- function roundToPrecision(value, precision) {
2
- const factor = 10 ** precision;
3
- return Math.round(value * factor) / factor;
4
- }
5
- function getBoundValue(newValue, min, max, step) {
6
- let value = Math.round(newValue / step) * step;
7
- value = Math.max(min, Math.min(max, value));
8
- return value;
9
- }
10
- export {
11
- getBoundValue,
12
- roundToPrecision
13
- };
@@ -1,3 +0,0 @@
1
- import { Atoms } from '../css/atoms';
2
- export type HTMLElementProps<E extends Element> = Omit<React.HTMLProps<E>, keyof Atoms | 'ref'>;
3
- export declare function isObjectLike<T extends Record<string, unknown>>(value: T): value is T;
@@ -1,110 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const fileScope = require("@vanilla-extract/css/fileScope");
4
- const css = require("@vanilla-extract/css");
5
- const style = require("../../../lib/css/style/style.cjs");
6
- const makeComponentTheme = require("../../../lib/theme/makeComponentTheme.cjs");
7
- const vars_css = require("../../../lib/theme/vars.css.cjs");
8
- const helpers_css = require("./helpers.css.cjs");
9
- fileScope.setFileScope("src/themes/momotaro/components/button.css.ts", "@blockle/blocks");
10
- const intentColor = css.createVar();
11
- const hoverBackgroundColor = css.createVar();
12
- const button = makeComponentTheme.makeComponentTheme("button", {
13
- base: style.style([
14
- {
15
- display: "inline-flex",
16
- placeItems: "center",
17
- fontSize: "medium",
18
- borderRadius: "medium",
19
- fontWeight: "medium",
20
- // Space between `startSlot | children | endSlot`
21
- gap: "small",
22
- selectors: {
23
- "&:hover:not(:disabled)": {
24
- backgroundColor: hoverBackgroundColor
25
- }
26
- }
27
- },
28
- helpers_css.clickable
29
- ]),
30
- variants: {
31
- variant: {
32
- solid: style.style({
33
- color: vars_css.vars.color.white,
34
- backgroundColor: intentColor,
35
- border: "none"
36
- }),
37
- outline: style.style({
38
- color: intentColor,
39
- borderWidth: "small",
40
- borderStyle: "solid",
41
- borderColor: intentColor,
42
- background: "transparent"
43
- }),
44
- ghost: style.style({
45
- color: intentColor,
46
- background: "transparent"
47
- })
48
- },
49
- size: {
50
- small: style.style({
51
- paddingInline: "large",
52
- height: 40
53
- }),
54
- medium: style.style({
55
- paddingInline: "xlarge",
56
- height: 56
57
- }),
58
- large: style.style({
59
- paddingInline: "xlarge",
60
- height: 72
61
- })
62
- },
63
- intent: {
64
- neutral: style.style({
65
- vars: {
66
- [intentColor]: vars_css.vars.color.primary,
67
- [hoverBackgroundColor]: vars_css.vars.color.primaryLight
68
- }
69
- }),
70
- danger: style.style({
71
- vars: {
72
- [intentColor]: vars_css.vars.color.danger,
73
- [hoverBackgroundColor]: "#fff8f7",
74
- [helpers_css.focusRingColor]: vars_css.vars.color.danger
75
- }
76
- })
77
- }
78
- },
79
- compoundVariants: [
80
- {
81
- variants: {
82
- variant: "solid",
83
- intent: "neutral"
84
- },
85
- style: style.style({
86
- vars: {
87
- [hoverBackgroundColor]: vars_css.vars.color.primaryDark
88
- }
89
- })
90
- },
91
- {
92
- variants: {
93
- variant: "solid",
94
- intent: "danger"
95
- },
96
- style: style.style({
97
- vars: {
98
- [hoverBackgroundColor]: "#f9b1a9"
99
- }
100
- })
101
- }
102
- ],
103
- defaultVariants: {
104
- size: "small",
105
- variant: "solid",
106
- intent: "neutral"
107
- }
108
- });
109
- fileScope.endFileScope();
110
- exports.button = button;
@@ -1 +0,0 @@
1
- export declare const button: import('../../../lib/theme/makeComponentTheme').ComponentTheme<import('../../../lib/theme/componentThemes').ButtonTheme> | undefined;
@@ -1,110 +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.js";
4
- import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.js";
5
- import { vars } from "../../../lib/theme/vars.css.js";
6
- import { focusRingColor, clickable } from "./helpers.css.js";
7
- setFileScope("src/themes/momotaro/components/button.css.ts", "@blockle/blocks");
8
- const intentColor = createVar();
9
- const hoverBackgroundColor = createVar();
10
- const button = makeComponentTheme("button", {
11
- base: style([
12
- {
13
- display: "inline-flex",
14
- placeItems: "center",
15
- fontSize: "medium",
16
- borderRadius: "medium",
17
- fontWeight: "medium",
18
- // Space between `startSlot | children | endSlot`
19
- gap: "small",
20
- selectors: {
21
- "&:hover:not(:disabled)": {
22
- backgroundColor: hoverBackgroundColor
23
- }
24
- }
25
- },
26
- clickable
27
- ]),
28
- variants: {
29
- variant: {
30
- solid: style({
31
- color: vars.color.white,
32
- backgroundColor: intentColor,
33
- border: "none"
34
- }),
35
- outline: style({
36
- color: intentColor,
37
- borderWidth: "small",
38
- borderStyle: "solid",
39
- borderColor: intentColor,
40
- background: "transparent"
41
- }),
42
- ghost: style({
43
- color: intentColor,
44
- background: "transparent"
45
- })
46
- },
47
- size: {
48
- small: style({
49
- paddingInline: "large",
50
- height: 40
51
- }),
52
- medium: style({
53
- paddingInline: "xlarge",
54
- height: 56
55
- }),
56
- large: style({
57
- paddingInline: "xlarge",
58
- height: 72
59
- })
60
- },
61
- intent: {
62
- neutral: style({
63
- vars: {
64
- [intentColor]: vars.color.primary,
65
- [hoverBackgroundColor]: vars.color.primaryLight
66
- }
67
- }),
68
- danger: style({
69
- vars: {
70
- [intentColor]: vars.color.danger,
71
- [hoverBackgroundColor]: "#fff8f7",
72
- [focusRingColor]: vars.color.danger
73
- }
74
- })
75
- }
76
- },
77
- compoundVariants: [
78
- {
79
- variants: {
80
- variant: "solid",
81
- intent: "neutral"
82
- },
83
- style: style({
84
- vars: {
85
- [hoverBackgroundColor]: vars.color.primaryDark
86
- }
87
- })
88
- },
89
- {
90
- variants: {
91
- variant: "solid",
92
- intent: "danger"
93
- },
94
- style: style({
95
- vars: {
96
- [hoverBackgroundColor]: "#f9b1a9"
97
- }
98
- })
99
- }
100
- ],
101
- defaultVariants: {
102
- size: "small",
103
- variant: "solid",
104
- intent: "neutral"
105
- }
106
- });
107
- endFileScope();
108
- export {
109
- button
110
- };
@@ -1,64 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const fileScope = require("@vanilla-extract/css/fileScope");
4
- const css = require("@vanilla-extract/css");
5
- const makeComponentTheme = require("../../../lib/theme/makeComponentTheme.cjs");
6
- const vars_css = require("../../../lib/theme/vars.css.cjs");
7
- const helpers_css = require("./helpers.css.cjs");
8
- const transitions = require("./transitions.cjs");
9
- const sprinkles_css = require("../../../lib/css/atoms/sprinkles.css.cjs");
10
- fileScope.setFileScope("src/themes/momotaro/components/checkbox.css.ts", "@blockle/blocks");
11
- const checkbox = makeComponentTheme.makeComponentTheme("checkbox", {
12
- base: css.style([
13
- {
14
- display: "flex",
15
- alignItems: "center",
16
- justifyContent: "center",
17
- inlineSize: 24,
18
- blockSize: 24,
19
- "@media": {
20
- "(prefers-reduced-motion: no-preference)": {
21
- transition: `background-color ${vars_css.vars.transition.normal}, box-shadow ${vars_css.vars.transition.fast}`
22
- }
23
- },
24
- selectors: {
25
- "&:hover:not(:has(input:disabled))": {
26
- backgroundColor: vars_css.vars.color.primaryDark
27
- },
28
- "&:has(input:checked)": {
29
- backgroundColor: vars_css.vars.color.primary
30
- }
31
- }
32
- },
33
- sprinkles_css.atoms({
34
- backgroundColor: "primaryLight",
35
- borderRadius: "small"
36
- }),
37
- helpers_css.focusable
38
- ]),
39
- icon: css.style({
40
- inlineSize: "1rem",
41
- blockSize: "1rem",
42
- color: "white",
43
- transform: "scale(0)",
44
- selectors: {
45
- "input:checked ~ &": {
46
- transform: "scale(1)"
47
- }
48
- },
49
- "@media": {
50
- "(prefers-reduced-motion: no-preference)": {
51
- transition: `transform ${vars_css.vars.transition.normal} ${transitions.bounceOut}`
52
- }
53
- }
54
- }),
55
- label: sprinkles_css.atoms({
56
- display: "flex",
57
- flexDirection: "row",
58
- padding: "xsmall",
59
- gap: "medium",
60
- cursor: "pointer"
61
- })
62
- });
63
- fileScope.endFileScope();
64
- exports.checkbox = checkbox;
@@ -1 +0,0 @@
1
- export declare const checkbox: import('../../../lib/theme/makeComponentTheme').ComponentTheme<import('../../../lib/theme/componentThemes').CheckboxTheme> | undefined;