@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,57 +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 helpers_css = require("./helpers.css.cjs");
7
- const sprinkles_css = require("../../../lib/css/atoms/sprinkles.css.cjs");
8
- fileScope.setFileScope("src/themes/momotaro/components/link.css.ts", "@blockle/blocks");
9
- const link = makeComponentTheme.makeComponentTheme("link", {
10
- base: css.style([
11
- {
12
- outline: "none",
13
- border: "none",
14
- textDecoration: "none",
15
- background: "transparent",
16
- borderRadius: 1,
17
- ":hover": {
18
- textDecoration: "underline"
19
- },
20
- ":focus-visible": {
21
- textDecoration: "underline"
22
- },
23
- cursor: "pointer"
24
- // selectors: {
25
- // '&[target="_blank"]::after': {
26
- // content: '"\\2197"',
27
- // marginLeft: 4,
28
- // },
29
- // },
30
- },
31
- helpers_css.focusable
32
- ]),
33
- variants: {
34
- variant: {
35
- inherit: css.style({
36
- color: "inherit",
37
- fontWeight: "inherit"
38
- }),
39
- primary: sprinkles_css.atoms({
40
- color: "primary",
41
- fontWeight: "medium"
42
- }),
43
- secondary: sprinkles_css.atoms({
44
- color: "secondary",
45
- fontWeight: "medium"
46
- })
47
- },
48
- underline: css.style({
49
- textDecoration: "underline"
50
- })
51
- },
52
- defaultVariants: {
53
- variant: "primary"
54
- }
55
- });
56
- fileScope.endFileScope();
57
- exports.link = link;
@@ -1 +0,0 @@
1
- export declare const link: import('../../../lib/theme/makeComponentTheme').ComponentTheme<import('../../../lib/theme/componentThemes').LinkTheme> | undefined;
@@ -1,57 +0,0 @@
1
- import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
2
- import { style } from "@vanilla-extract/css";
3
- import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.js";
4
- import { focusable } from "./helpers.css.js";
5
- import { atoms } from "../../../lib/css/atoms/sprinkles.css.js";
6
- setFileScope("src/themes/momotaro/components/link.css.ts", "@blockle/blocks");
7
- const link = makeComponentTheme("link", {
8
- base: style([
9
- {
10
- outline: "none",
11
- border: "none",
12
- textDecoration: "none",
13
- background: "transparent",
14
- borderRadius: 1,
15
- ":hover": {
16
- textDecoration: "underline"
17
- },
18
- ":focus-visible": {
19
- textDecoration: "underline"
20
- },
21
- cursor: "pointer"
22
- // selectors: {
23
- // '&[target="_blank"]::after': {
24
- // content: '"\\2197"',
25
- // marginLeft: 4,
26
- // },
27
- // },
28
- },
29
- focusable
30
- ]),
31
- variants: {
32
- variant: {
33
- inherit: style({
34
- color: "inherit",
35
- fontWeight: "inherit"
36
- }),
37
- primary: atoms({
38
- color: "primary",
39
- fontWeight: "medium"
40
- }),
41
- secondary: atoms({
42
- color: "secondary",
43
- fontWeight: "medium"
44
- })
45
- },
46
- underline: style({
47
- textDecoration: "underline"
48
- })
49
- },
50
- defaultVariants: {
51
- variant: "primary"
52
- }
53
- });
54
- endFileScope();
55
- export {
56
- link
57
- };
@@ -1,33 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const fileScope = require("@vanilla-extract/css/fileScope");
4
- const style = require("../../../lib/css/style/style.cjs");
5
- const makeComponentTheme = require("../../../lib/theme/makeComponentTheme.cjs");
6
- fileScope.setFileScope("src/themes/momotaro/components/popover.css.ts", "@blockle/blocks");
7
- const popover = makeComponentTheme.makeComponentTheme("popover", {
8
- base: style.style({
9
- backgroundColor: "white",
10
- borderRadius: "small",
11
- boxShadow: "medium",
12
- padding: "medium",
13
- margin: "small",
14
- // Space between the popover and the anchor element
15
- width: "max-content",
16
- selectors: {
17
- "&[data-open]": {
18
- transform: "scale(1)",
19
- opacity: 1
20
- }
21
- },
22
- // Apply the animation only if the user has not requested reduced motion
23
- "@media": {
24
- "(prefers-reduced-motion: no-preference)": {
25
- transform: "scale(0.95)",
26
- transition: "opacity 80ms linear, transform 80ms",
27
- opacity: 0
28
- }
29
- }
30
- })
31
- });
32
- fileScope.endFileScope();
33
- exports.popover = popover;
@@ -1 +0,0 @@
1
- export declare const popover: import('../../../lib/theme/makeComponentTheme').ComponentTheme<import('../../../lib/theme/componentThemes').PopoverTheme> | undefined;
@@ -1,33 +0,0 @@
1
- import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
2
- import { style } from "../../../lib/css/style/style.js";
3
- import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.js";
4
- setFileScope("src/themes/momotaro/components/popover.css.ts", "@blockle/blocks");
5
- const popover = makeComponentTheme("popover", {
6
- base: style({
7
- backgroundColor: "white",
8
- borderRadius: "small",
9
- boxShadow: "medium",
10
- padding: "medium",
11
- margin: "small",
12
- // Space between the popover and the anchor element
13
- width: "max-content",
14
- selectors: {
15
- "&[data-open]": {
16
- transform: "scale(1)",
17
- opacity: 1
18
- }
19
- },
20
- // Apply the animation only if the user has not requested reduced motion
21
- "@media": {
22
- "(prefers-reduced-motion: no-preference)": {
23
- transform: "scale(0.95)",
24
- transition: "opacity 80ms linear, transform 80ms",
25
- opacity: 0
26
- }
27
- }
28
- })
29
- });
30
- endFileScope();
31
- export {
32
- popover
33
- };
@@ -1,59 +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 sprinkles_css = require("../../../lib/css/atoms/sprinkles.css.cjs");
8
- fileScope.setFileScope("src/themes/momotaro/components/progress.css.ts", "@blockle/blocks");
9
- const indeterminateAnimation = css.keyframes({
10
- "0%": {
11
- transform: "translateX(-100%)"
12
- },
13
- "100%": {
14
- transform: "translateX(100%)"
15
- }
16
- });
17
- const progress = makeComponentTheme.makeComponentTheme("progress", {
18
- base: css.style([
19
- {
20
- height: 8
21
- },
22
- sprinkles_css.atoms({
23
- inlineSize: "full",
24
- borderRadius: "small",
25
- backgroundColor: "textLight",
26
- color: "primary",
27
- overflow: "hidden"
28
- })
29
- ]),
30
- bar: css.style({
31
- borderRadius: "inherit",
32
- "@media": {
33
- "(prefers-reduced-motion: no-preference)": {
34
- transition: "transform 180ms ease-out"
35
- }
36
- }
37
- }),
38
- variants: {
39
- indeterminate: css.style({
40
- "@media": {
41
- // For reduce motion we show a striped pattern instead of animating
42
- "(prefers-reduced-motion: reduce)": {
43
- backgroundImage: `repeating-linear-gradient(
44
- 45deg,
45
- transparent,
46
- transparent 20px,
47
- ${vars_css.vars.color.primaryDark} 20px,
48
- ${vars_css.vars.color.primaryDark} 40px
49
- )`
50
- },
51
- "(prefers-reduced-motion: no-preference)": {
52
- animation: `${indeterminateAnimation} 3s ease-in-out infinite`
53
- }
54
- }
55
- })
56
- }
57
- });
58
- fileScope.endFileScope();
59
- exports.progress = progress;
@@ -1 +0,0 @@
1
- export declare const progress: import('../../../lib/theme/makeComponentTheme').ComponentTheme<import('../../../lib/theme/componentThemes').ProgressTheme> | undefined;
@@ -1,59 +0,0 @@
1
- import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
2
- import { style, keyframes } from "@vanilla-extract/css";
3
- import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.js";
4
- import { vars } from "../../../lib/theme/vars.css.js";
5
- import { atoms } from "../../../lib/css/atoms/sprinkles.css.js";
6
- setFileScope("src/themes/momotaro/components/progress.css.ts", "@blockle/blocks");
7
- const indeterminateAnimation = keyframes({
8
- "0%": {
9
- transform: "translateX(-100%)"
10
- },
11
- "100%": {
12
- transform: "translateX(100%)"
13
- }
14
- });
15
- const progress = makeComponentTheme("progress", {
16
- base: style([
17
- {
18
- height: 8
19
- },
20
- atoms({
21
- inlineSize: "full",
22
- borderRadius: "small",
23
- backgroundColor: "textLight",
24
- color: "primary",
25
- overflow: "hidden"
26
- })
27
- ]),
28
- bar: style({
29
- borderRadius: "inherit",
30
- "@media": {
31
- "(prefers-reduced-motion: no-preference)": {
32
- transition: "transform 180ms ease-out"
33
- }
34
- }
35
- }),
36
- variants: {
37
- indeterminate: style({
38
- "@media": {
39
- // For reduce motion we show a striped pattern instead of animating
40
- "(prefers-reduced-motion: reduce)": {
41
- backgroundImage: `repeating-linear-gradient(
42
- 45deg,
43
- transparent,
44
- transparent 20px,
45
- ${vars.color.primaryDark} 20px,
46
- ${vars.color.primaryDark} 40px
47
- )`
48
- },
49
- "(prefers-reduced-motion: no-preference)": {
50
- animation: `${indeterminateAnimation} 3s ease-in-out infinite`
51
- }
52
- }
53
- })
54
- }
55
- });
56
- endFileScope();
57
- export {
58
- progress
59
- };
@@ -1,65 +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/radio.css.ts", "@blockle/blocks");
11
- const radio = makeComponentTheme.makeComponentTheme("radio", {
12
- base: css.style([
13
- {
14
- display: "flex",
15
- alignItems: "center",
16
- justifyContent: "center",
17
- inlineSize: 24,
18
- blockSize: 24,
19
- borderRadius: 12,
20
- "@media": {
21
- "(prefers-reduced-motion: no-preference)": {
22
- transition: `background-color ${vars_css.vars.transition.fast}, box-shadow ${vars_css.vars.transition.fast}`
23
- }
24
- },
25
- ":hover": {
26
- backgroundColor: vars_css.vars.color.primaryDark
27
- },
28
- selectors: {
29
- "&:has(input:checked):not(:hover)": {
30
- backgroundColor: vars_css.vars.color.primary
31
- }
32
- }
33
- },
34
- sprinkles_css.atoms({
35
- backgroundColor: "primaryLight"
36
- }),
37
- helpers_css.focusable
38
- ]),
39
- icon: css.style({
40
- height: 12,
41
- width: 12,
42
- backgroundColor: "white",
43
- borderRadius: "8px",
44
- transform: "scale(0)",
45
- "@media": {
46
- "(prefers-reduced-motion: no-preference)": {
47
- transition: `transform ${vars_css.vars.transition.normal} ${transitions.bounceOut}`
48
- }
49
- },
50
- selectors: {
51
- "input:checked ~ &": {
52
- transform: "scale(1)"
53
- }
54
- }
55
- }),
56
- label: sprinkles_css.atoms({
57
- display: "flex",
58
- flexDirection: "row",
59
- padding: "xsmall",
60
- gap: "medium",
61
- cursor: "pointer"
62
- })
63
- });
64
- fileScope.endFileScope();
65
- exports.radio = radio;
@@ -1 +0,0 @@
1
- export declare const radio: import('../../../lib/theme/makeComponentTheme').ComponentTheme<import('../../../lib/theme/componentThemes').RadioTheme> | undefined;
@@ -1,65 +0,0 @@
1
- import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
2
- import { style } from "@vanilla-extract/css";
3
- import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.js";
4
- import { vars } from "../../../lib/theme/vars.css.js";
5
- import { focusable } from "./helpers.css.js";
6
- import { bounceOut } from "./transitions.js";
7
- import { atoms } from "../../../lib/css/atoms/sprinkles.css.js";
8
- setFileScope("src/themes/momotaro/components/radio.css.ts", "@blockle/blocks");
9
- const radio = makeComponentTheme("radio", {
10
- base: style([
11
- {
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 ${vars.transition.fast}, box-shadow ${vars.transition.fast}`
21
- }
22
- },
23
- ":hover": {
24
- backgroundColor: vars.color.primaryDark
25
- },
26
- selectors: {
27
- "&:has(input:checked):not(:hover)": {
28
- backgroundColor: vars.color.primary
29
- }
30
- }
31
- },
32
- atoms({
33
- backgroundColor: "primaryLight"
34
- }),
35
- focusable
36
- ]),
37
- icon: style({
38
- height: 12,
39
- width: 12,
40
- backgroundColor: "white",
41
- borderRadius: "8px",
42
- transform: "scale(0)",
43
- "@media": {
44
- "(prefers-reduced-motion: no-preference)": {
45
- transition: `transform ${vars.transition.normal} ${bounceOut}`
46
- }
47
- },
48
- selectors: {
49
- "input:checked ~ &": {
50
- transform: "scale(1)"
51
- }
52
- }
53
- }),
54
- label: atoms({
55
- display: "flex",
56
- flexDirection: "row",
57
- padding: "xsmall",
58
- gap: "medium",
59
- cursor: "pointer"
60
- })
61
- });
62
- endFileScope();
63
- export {
64
- radio
65
- };
@@ -1,48 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const fileScope = require("@vanilla-extract/css/fileScope");
4
- const style = require("../../../lib/css/style/style.cjs");
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
- fileScope.setFileScope("src/themes/momotaro/components/select.css.ts", "@blockle/blocks");
9
- const select = makeComponentTheme.makeComponentTheme("select", {
10
- select: style.style([
11
- {
12
- color: "text",
13
- padding: "large",
14
- border: "none",
15
- outline: "none",
16
- backgroundColor: "white",
17
- borderRadius: "medium",
18
- boxShadow: "medium",
19
- minHeight: 56,
20
- transitionDuration: vars_css.vars.transition.fast,
21
- transitionProperty: "box-shadow",
22
- ":focus-within": {
23
- outline: "2px solid transparent",
24
- outlineOffset: "2px",
25
- boxShadow: `${vars_css.vars.shadow.small}, ${vars_css.vars.focus.boxShadow}`
26
- }
27
- },
28
- helpers_css.focusable
29
- ]),
30
- variants: {
31
- variant: {
32
- outline: style.style({
33
- borderWidth: "small",
34
- borderStyle: "solid",
35
- borderColor: "primary"
36
- }),
37
- solid: style.style({})
38
- }
39
- },
40
- icon: style.style({
41
- paddingInline: "large"
42
- }),
43
- defaultVariants: {
44
- variant: "solid"
45
- }
46
- });
47
- fileScope.endFileScope();
48
- exports.select = select;
@@ -1 +0,0 @@
1
- export declare const select: import('../../../lib/theme/makeComponentTheme').ComponentTheme<import('../../../lib/theme/componentThemes').SelectTheme> | undefined;
@@ -1,48 +0,0 @@
1
- import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
2
- import { style } from "../../../lib/css/style/style.js";
3
- import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.js";
4
- import { vars } from "../../../lib/theme/vars.css.js";
5
- import { focusable } from "./helpers.css.js";
6
- setFileScope("src/themes/momotaro/components/select.css.ts", "@blockle/blocks");
7
- const select = makeComponentTheme("select", {
8
- select: style([
9
- {
10
- color: "text",
11
- padding: "large",
12
- border: "none",
13
- outline: "none",
14
- backgroundColor: "white",
15
- borderRadius: "medium",
16
- boxShadow: "medium",
17
- minHeight: 56,
18
- transitionDuration: vars.transition.fast,
19
- transitionProperty: "box-shadow",
20
- ":focus-within": {
21
- outline: "2px solid transparent",
22
- outlineOffset: "2px",
23
- boxShadow: `${vars.shadow.small}, ${vars.focus.boxShadow}`
24
- }
25
- },
26
- focusable
27
- ]),
28
- variants: {
29
- variant: {
30
- outline: style({
31
- borderWidth: "small",
32
- borderStyle: "solid",
33
- borderColor: "primary"
34
- }),
35
- solid: style({})
36
- }
37
- },
38
- icon: style({
39
- paddingInline: "large"
40
- }),
41
- defaultVariants: {
42
- variant: "solid"
43
- }
44
- });
45
- endFileScope();
46
- export {
47
- select
48
- };
@@ -1,93 +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/slider.css.ts", "@blockle/blocks");
10
- const trackBackground = css.createVar();
11
- const filledTrackBackground = css.createVar();
12
- const thumbBackground = css.createVar();
13
- const thumbActive = css.createVar();
14
- const slider = makeComponentTheme.makeComponentTheme("slider", {
15
- base: style.style({
16
- blockSize: "20px"
17
- }),
18
- track: style.style({
19
- blockSize: "4px",
20
- backgroundColor: trackBackground,
21
- borderRadius: "small"
22
- }),
23
- filledTrack: style.style({
24
- backgroundColor: filledTrackBackground
25
- }),
26
- thumb: style.style([
27
- {
28
- backgroundColor: thumbBackground,
29
- borderRadius: "50%",
30
- height: "16px",
31
- width: "16px",
32
- boxShadow: `0 0 0 0px color-mix(in srgb, ${vars_css.vars.color.primaryLight}, transparent 0%)`,
33
- vars: {
34
- [thumbActive]: `0 0 0 8px color-mix(in srgb, ${vars_css.vars.color.primaryLight}, transparent 20%)`
35
- },
36
- ":hover": {
37
- boxShadow: thumbActive
38
- },
39
- ":focus-visible": {
40
- boxShadow: thumbActive
41
- },
42
- "@media": {
43
- "(prefers-reduced-motion: no-preference)": {
44
- transition: "box-shadow 0.2s"
45
- }
46
- }
47
- },
48
- helpers_css.focusable
49
- ]),
50
- variants: {
51
- size: {
52
- small: style.style({
53
- inlineSize: "100px"
54
- }),
55
- medium: style.style({
56
- inlineSize: "200px"
57
- }),
58
- large: style.style({
59
- inlineSize: "300px"
60
- })
61
- },
62
- colorScheme: {
63
- primary: style.style({
64
- vars: {
65
- [trackBackground]: vars_css.vars.color.primaryLight,
66
- [filledTrackBackground]: vars_css.vars.color.primary,
67
- [thumbBackground]: vars_css.vars.color.primary
68
- }
69
- }),
70
- secondary: style.style({
71
- vars: {
72
- [trackBackground]: vars_css.vars.color.primaryLight,
73
- [filledTrackBackground]: vars_css.vars.color.secondary,
74
- [thumbBackground]: vars_css.vars.color.secondary
75
- }
76
- })
77
- },
78
- disabled: style.style({
79
- pointerEvents: "none",
80
- vars: {
81
- [trackBackground]: "#c0c0c0",
82
- [filledTrackBackground]: "#ccc",
83
- [thumbBackground]: "#c0c0c0"
84
- }
85
- })
86
- },
87
- defaultVariants: {
88
- size: "medium",
89
- colorScheme: "primary"
90
- }
91
- });
92
- fileScope.endFileScope();
93
- exports.slider = slider;
@@ -1 +0,0 @@
1
- export declare const slider: import('../../../lib/theme/makeComponentTheme').ComponentTheme<import('../../../lib/theme/componentThemes').SliderTheme> | undefined;