@fuzzy-ui/react 0.1.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 (402) hide show
  1. package/dist/cjs/Box/Box.js +2 -0
  2. package/dist/cjs/Box/box.style.js +1 -0
  3. package/dist/cjs/Button/Button.js +2 -0
  4. package/dist/cjs/Button/Ripple.js +2 -0
  5. package/dist/cjs/Button/button.style.js +1 -0
  6. package/dist/cjs/Card/Card.js +2 -0
  7. package/dist/cjs/Card/card.style.js +1 -0
  8. package/dist/cjs/Flex/Flex.js +2 -0
  9. package/dist/cjs/Flex/flex.style.js +1 -0
  10. package/dist/cjs/Grid/Grid.js +2 -0
  11. package/dist/cjs/Grid/grid.helpers.js +1 -0
  12. package/dist/cjs/Grid/grid.layout.js +1 -0
  13. package/dist/cjs/Grid/grid.span.js +1 -0
  14. package/dist/cjs/Grid/grid.style.js +1 -0
  15. package/dist/cjs/Header/Head.Brand.js +2 -0
  16. package/dist/cjs/Header/Header.js +2 -0
  17. package/dist/cjs/Header/header.style.js +1 -0
  18. package/dist/cjs/Header/index.js +1 -0
  19. package/dist/cjs/Input/Addons.js +2 -0
  20. package/dist/cjs/Input/Input.js +2 -0
  21. package/dist/cjs/Input/Inter.js +2 -0
  22. package/dist/cjs/Input/Pass.js +2 -0
  23. package/dist/cjs/Input/filter.input.js +1 -0
  24. package/dist/cjs/Input/index.js +1 -0
  25. package/dist/cjs/Input/input.style.js +1 -0
  26. package/dist/cjs/Modal/Modal.Close.js +2 -0
  27. package/dist/cjs/Modal/Modal.Overlay.js +2 -0
  28. package/dist/cjs/Modal/Modal.js +2 -0
  29. package/dist/cjs/Modal/index.js +1 -0
  30. package/dist/cjs/Modal/modal.style.js +1 -0
  31. package/dist/cjs/NavMenu/Indicator.js +2 -0
  32. package/dist/cjs/NavMenu/Menu.Icon.js +2 -0
  33. package/dist/cjs/NavMenu/Nav.Item.js +2 -0
  34. package/dist/cjs/NavMenu/Nav.Link.js +2 -0
  35. package/dist/cjs/NavMenu/Nav.Menu.js +2 -0
  36. package/dist/cjs/NavMenu/Nav.Sub.js +2 -0
  37. package/dist/cjs/NavMenu/NavMenu.js +2 -0
  38. package/dist/cjs/NavMenu/Viewport.js +2 -0
  39. package/dist/cjs/NavMenu/index.js +1 -0
  40. package/dist/cjs/NavMenu/navmenu.style.js +1 -0
  41. package/dist/cjs/NavMenu/utils.js +1 -0
  42. package/dist/cjs/Popover/Popover.Anchor.js +2 -0
  43. package/dist/cjs/Popover/Popover.Close.js +2 -0
  44. package/dist/cjs/Popover/Popover.Content.js +2 -0
  45. package/dist/cjs/Popover/Popover.Trigger.js +2 -0
  46. package/dist/cjs/Popover/Popover.js +2 -0
  47. package/dist/cjs/Popover/index.js +1 -0
  48. package/dist/cjs/Popover/popover.style.js +1 -0
  49. package/dist/cjs/Portal/index.js +1 -0
  50. package/dist/cjs/Presence/index.js +1 -0
  51. package/dist/cjs/Select/Select.Group.js +2 -0
  52. package/dist/cjs/Select/Select.Item.js +2 -0
  53. package/dist/cjs/Select/Select.Separator.js +2 -0
  54. package/dist/cjs/Select/Select.Trigger.js +2 -0
  55. package/dist/cjs/Select/Select.js +2 -0
  56. package/dist/cjs/Select/index.js +1 -0
  57. package/dist/cjs/Select/select.style.js +1 -0
  58. package/dist/cjs/Separator/Separator.js +2 -0
  59. package/dist/cjs/Separator/separator.style.js +1 -0
  60. package/dist/cjs/Slider/Slider.js +2 -0
  61. package/dist/cjs/Slider/slider.style.js +1 -0
  62. package/dist/cjs/Slot/index.js +1 -0
  63. package/dist/cjs/Spinner/Spinner.js +2 -0
  64. package/dist/cjs/Spinner/spinner.style.js +1 -0
  65. package/dist/cjs/Table/Body.js +2 -0
  66. package/dist/cjs/Table/Expand.js +2 -0
  67. package/dist/cjs/Table/Foot.js +2 -0
  68. package/dist/cjs/Table/Head.js +2 -0
  69. package/dist/cjs/Table/Table.js +2 -0
  70. package/dist/cjs/Table/table.style.js +1 -0
  71. package/dist/cjs/Table/utils.js +1 -0
  72. package/dist/cjs/Text/Text.js +2 -0
  73. package/dist/cjs/Text/text.style.js +1 -0
  74. package/dist/cjs/TextArea/TextArea.js +2 -0
  75. package/dist/cjs/TextArea/textarea.style.js +1 -0
  76. package/dist/cjs/Tooltip/Provider.js +2 -0
  77. package/dist/cjs/Tooltip/Tooltip.js +2 -0
  78. package/dist/cjs/Tooltip/tooltip.style.js +1 -0
  79. package/dist/cjs/hooks/use-debounce.js +1 -0
  80. package/dist/cjs/hooks/use-isomorphic-layout-effect.js +1 -0
  81. package/dist/cjs/hooks/use-media-query.js +1 -0
  82. package/dist/cjs/hooks/use-rollback.js +1 -0
  83. package/dist/cjs/hooks/use-scroll.js +1 -0
  84. package/dist/cjs/hooks/use-timeout.js +1 -0
  85. package/dist/cjs/index.js +1 -0
  86. package/dist/cjs/shared/icons/Caret.Down.js +2 -0
  87. package/dist/cjs/shared/icons/Check.js +2 -0
  88. package/dist/cjs/shared/icons/Chevron.Down.js +2 -0
  89. package/dist/cjs/shared/icons/Chevron.Up.js +2 -0
  90. package/dist/cjs/shared/icons/Circle.js +2 -0
  91. package/dist/cjs/shared/icons/Cross.js +2 -0
  92. package/dist/cjs/shared/styled-utils.js +1 -0
  93. package/dist/cjs/style/ThemeProvider.js +2 -0
  94. package/dist/cjs/style/Themes.js +2 -0
  95. package/dist/cjs/style/defaults/breakpoints.js +1 -0
  96. package/dist/cjs/style/defaults/colors/error.js +1 -0
  97. package/dist/cjs/style/defaults/colors/index.js +1 -0
  98. package/dist/cjs/style/defaults/colors/neutral.js +1 -0
  99. package/dist/cjs/style/defaults/colors/primary.js +1 -0
  100. package/dist/cjs/style/defaults/colors/secondary.js +1 -0
  101. package/dist/cjs/style/defaults/colors/success.js +1 -0
  102. package/dist/cjs/style/defaults/colors/tertiary.js +1 -0
  103. package/dist/cjs/style/defaults/colors/warning.js +1 -0
  104. package/dist/cjs/style/defaults/conditions.js +1 -0
  105. package/dist/cjs/style/defaults/constants.js +1 -0
  106. package/dist/cjs/style/defaults/globals.js +2 -0
  107. package/dist/cjs/style/defaults/propMap.js +1 -0
  108. package/dist/cjs/style/defaults/shadows.js +1 -0
  109. package/dist/cjs/style/defaults/theme.js +1 -0
  110. package/dist/cjs/style/defaults/tokens.js +1 -0
  111. package/dist/cjs/style/defaults/utilities.js +1 -0
  112. package/dist/cjs/style/stitches.config.js +1 -0
  113. package/dist/cjs/style/styled.js +2 -0
  114. package/dist/cjs/style/useTheme.js +2 -0
  115. package/dist/cjs/utils/WithWrapper.js +2 -0
  116. package/dist/cjs/utils/children.js +1 -0
  117. package/dist/cjs/utils/clamp.js +1 -0
  118. package/dist/cjs/utils/closest.js +1 -0
  119. package/dist/cjs/utils/deepMerge.js +1 -0
  120. package/dist/cjs/utils/forward.js +1 -0
  121. package/dist/cjs/utils/range.js +1 -0
  122. package/dist/cjs/utils/screen.js +1 -0
  123. package/dist/cjs/utils/simpleStrFilter.js +1 -0
  124. package/dist/cjs/utils/textTransform.js +1 -0
  125. package/dist/cjs/utils/typeis.js +1 -0
  126. package/dist/cjs/utils/types.js +1 -0
  127. package/dist/cjs/utils/unique.str.js +1 -0
  128. package/dist/esm/Box/Box.js +2 -0
  129. package/dist/esm/Box/box.style.js +1 -0
  130. package/dist/esm/Button/Button.js +2 -0
  131. package/dist/esm/Button/Ripple.js +2 -0
  132. package/dist/esm/Button/button.style.js +1 -0
  133. package/dist/esm/Card/Card.js +2 -0
  134. package/dist/esm/Card/card.style.js +1 -0
  135. package/dist/esm/Flex/Flex.js +2 -0
  136. package/dist/esm/Flex/flex.style.js +1 -0
  137. package/dist/esm/Grid/Grid.js +2 -0
  138. package/dist/esm/Grid/grid.helpers.js +1 -0
  139. package/dist/esm/Grid/grid.layout.js +1 -0
  140. package/dist/esm/Grid/grid.span.js +1 -0
  141. package/dist/esm/Grid/grid.style.js +1 -0
  142. package/dist/esm/Header/Head.Brand.js +2 -0
  143. package/dist/esm/Header/Header.js +2 -0
  144. package/dist/esm/Header/header.style.js +1 -0
  145. package/dist/esm/Header/index.js +1 -0
  146. package/dist/esm/Input/Addons.js +2 -0
  147. package/dist/esm/Input/Input.js +2 -0
  148. package/dist/esm/Input/Inter.js +2 -0
  149. package/dist/esm/Input/Pass.js +2 -0
  150. package/dist/esm/Input/filter.input.js +1 -0
  151. package/dist/esm/Input/index.js +1 -0
  152. package/dist/esm/Input/input.style.js +1 -0
  153. package/dist/esm/Modal/Modal.Close.js +2 -0
  154. package/dist/esm/Modal/Modal.Overlay.js +2 -0
  155. package/dist/esm/Modal/Modal.js +2 -0
  156. package/dist/esm/Modal/index.js +1 -0
  157. package/dist/esm/Modal/modal.style.js +1 -0
  158. package/dist/esm/NavMenu/Indicator.js +2 -0
  159. package/dist/esm/NavMenu/Menu.Icon.js +2 -0
  160. package/dist/esm/NavMenu/Nav.Item.js +2 -0
  161. package/dist/esm/NavMenu/Nav.Link.js +2 -0
  162. package/dist/esm/NavMenu/Nav.Menu.js +2 -0
  163. package/dist/esm/NavMenu/Nav.Sub.js +2 -0
  164. package/dist/esm/NavMenu/NavMenu.js +2 -0
  165. package/dist/esm/NavMenu/Viewport.js +2 -0
  166. package/dist/esm/NavMenu/index.js +1 -0
  167. package/dist/esm/NavMenu/navmenu.style.js +1 -0
  168. package/dist/esm/NavMenu/utils.js +1 -0
  169. package/dist/esm/Popover/Popover.Anchor.js +2 -0
  170. package/dist/esm/Popover/Popover.Close.js +2 -0
  171. package/dist/esm/Popover/Popover.Content.js +2 -0
  172. package/dist/esm/Popover/Popover.Trigger.js +2 -0
  173. package/dist/esm/Popover/Popover.js +2 -0
  174. package/dist/esm/Popover/index.js +1 -0
  175. package/dist/esm/Popover/popover.style.js +1 -0
  176. package/dist/esm/Portal/index.js +1 -0
  177. package/dist/esm/Presence/index.js +1 -0
  178. package/dist/esm/Select/Select.Group.js +2 -0
  179. package/dist/esm/Select/Select.Item.js +2 -0
  180. package/dist/esm/Select/Select.Separator.js +2 -0
  181. package/dist/esm/Select/Select.Trigger.js +2 -0
  182. package/dist/esm/Select/Select.js +2 -0
  183. package/dist/esm/Select/index.js +1 -0
  184. package/dist/esm/Select/select.style.js +1 -0
  185. package/dist/esm/Separator/Separator.js +2 -0
  186. package/dist/esm/Separator/separator.style.js +1 -0
  187. package/dist/esm/Slider/Slider.js +2 -0
  188. package/dist/esm/Slider/slider.style.js +1 -0
  189. package/dist/esm/Slot/index.js +1 -0
  190. package/dist/esm/Spinner/Spinner.js +2 -0
  191. package/dist/esm/Spinner/spinner.style.js +1 -0
  192. package/dist/esm/Table/Body.js +2 -0
  193. package/dist/esm/Table/Expand.js +2 -0
  194. package/dist/esm/Table/Foot.js +2 -0
  195. package/dist/esm/Table/Head.js +2 -0
  196. package/dist/esm/Table/Table.js +2 -0
  197. package/dist/esm/Table/table.style.js +1 -0
  198. package/dist/esm/Table/utils.js +1 -0
  199. package/dist/esm/Text/Text.js +2 -0
  200. package/dist/esm/Text/text.style.js +1 -0
  201. package/dist/esm/TextArea/TextArea.js +2 -0
  202. package/dist/esm/TextArea/textarea.style.js +1 -0
  203. package/dist/esm/Tooltip/Provider.js +2 -0
  204. package/dist/esm/Tooltip/Tooltip.js +2 -0
  205. package/dist/esm/Tooltip/tooltip.style.js +1 -0
  206. package/dist/esm/hooks/use-debounce.js +1 -0
  207. package/dist/esm/hooks/use-isomorphic-layout-effect.js +1 -0
  208. package/dist/esm/hooks/use-media-query.js +1 -0
  209. package/dist/esm/hooks/use-rollback.js +1 -0
  210. package/dist/esm/hooks/use-scroll.js +1 -0
  211. package/dist/esm/hooks/use-timeout.js +1 -0
  212. package/dist/esm/index.js +1 -0
  213. package/dist/esm/shared/icons/Caret.Down.js +2 -0
  214. package/dist/esm/shared/icons/Check.js +2 -0
  215. package/dist/esm/shared/icons/Chevron.Down.js +2 -0
  216. package/dist/esm/shared/icons/Chevron.Up.js +2 -0
  217. package/dist/esm/shared/icons/Circle.js +2 -0
  218. package/dist/esm/shared/icons/Cross.js +2 -0
  219. package/dist/esm/shared/styled-utils.js +1 -0
  220. package/dist/esm/style/ThemeProvider.js +2 -0
  221. package/dist/esm/style/Themes.js +2 -0
  222. package/dist/esm/style/defaults/breakpoints.js +1 -0
  223. package/dist/esm/style/defaults/colors/error.js +1 -0
  224. package/dist/esm/style/defaults/colors/index.js +1 -0
  225. package/dist/esm/style/defaults/colors/neutral.js +1 -0
  226. package/dist/esm/style/defaults/colors/primary.js +1 -0
  227. package/dist/esm/style/defaults/colors/secondary.js +1 -0
  228. package/dist/esm/style/defaults/colors/success.js +1 -0
  229. package/dist/esm/style/defaults/colors/tertiary.js +1 -0
  230. package/dist/esm/style/defaults/colors/warning.js +1 -0
  231. package/dist/esm/style/defaults/conditions.js +1 -0
  232. package/dist/esm/style/defaults/constants.js +1 -0
  233. package/dist/esm/style/defaults/globals.js +2 -0
  234. package/dist/esm/style/defaults/propMap.js +1 -0
  235. package/dist/esm/style/defaults/shadows.js +1 -0
  236. package/dist/esm/style/defaults/theme.js +1 -0
  237. package/dist/esm/style/defaults/tokens.js +1 -0
  238. package/dist/esm/style/defaults/utilities.js +1 -0
  239. package/dist/esm/style/stitches.config.js +1 -0
  240. package/dist/esm/style/styled.js +2 -0
  241. package/dist/esm/style/useTheme.js +2 -0
  242. package/dist/esm/utils/WithWrapper.js +2 -0
  243. package/dist/esm/utils/children.js +1 -0
  244. package/dist/esm/utils/clamp.js +1 -0
  245. package/dist/esm/utils/closest.js +1 -0
  246. package/dist/esm/utils/deepMerge.js +1 -0
  247. package/dist/esm/utils/forward.js +1 -0
  248. package/dist/esm/utils/range.js +1 -0
  249. package/dist/esm/utils/screen.js +1 -0
  250. package/dist/esm/utils/simpleStrFilter.js +1 -0
  251. package/dist/esm/utils/textTransform.js +1 -0
  252. package/dist/esm/utils/typeis.js +1 -0
  253. package/dist/esm/utils/types.js +1 -0
  254. package/dist/esm/utils/unique.str.js +1 -0
  255. package/dist/package.json +43 -0
  256. package/dist/types/Box/Box.d.ts +6 -0
  257. package/dist/types/Box/box.style.d.ts +4 -0
  258. package/dist/types/Box/index.d.ts +2 -0
  259. package/dist/types/Button/Button.d.ts +10 -0
  260. package/dist/types/Button/Ripple.d.ts +10 -0
  261. package/dist/types/Button/button.style.d.ts +20 -0
  262. package/dist/types/Button/index.d.ts +2 -0
  263. package/dist/types/Card/Card.d.ts +33 -0
  264. package/dist/types/Card/card.style.d.ts +14 -0
  265. package/dist/types/Card/index.d.ts +2 -0
  266. package/dist/types/Flex/Flex.d.ts +17 -0
  267. package/dist/types/Flex/flex.style.d.ts +22 -0
  268. package/dist/types/Flex/index.d.ts +2 -0
  269. package/dist/types/Grid/Grid.d.ts +7 -0
  270. package/dist/types/Grid/grid.helpers.d.ts +45 -0
  271. package/dist/types/Grid/grid.layout.d.ts +23 -0
  272. package/dist/types/Grid/grid.span.d.ts +5 -0
  273. package/dist/types/Grid/grid.style.d.ts +3 -0
  274. package/dist/types/Grid/index.d.ts +2 -0
  275. package/dist/types/Header/Head.Brand.d.ts +5 -0
  276. package/dist/types/Header/Header.d.ts +12 -0
  277. package/dist/types/Header/header.style.d.ts +19 -0
  278. package/dist/types/Header/index.d.ts +6 -0
  279. package/dist/types/Input/Addons.d.ts +9 -0
  280. package/dist/types/Input/Input.d.ts +8 -0
  281. package/dist/types/Input/Inter.d.ts +16 -0
  282. package/dist/types/Input/Pass.d.ts +15 -0
  283. package/dist/types/Input/filter.input.d.ts +18 -0
  284. package/dist/types/Input/index.d.ts +3 -0
  285. package/dist/types/Input/input.style.d.ts +32 -0
  286. package/dist/types/Modal/Modal.Close.d.ts +5 -0
  287. package/dist/types/Modal/Modal.Overlay.d.ts +6 -0
  288. package/dist/types/Modal/Modal.d.ts +8 -0
  289. package/dist/types/Modal/index.d.ts +9 -0
  290. package/dist/types/Modal/modal.style.d.ts +53 -0
  291. package/dist/types/NavMenu/Indicator.d.ts +6 -0
  292. package/dist/types/NavMenu/Menu.Icon.d.ts +15 -0
  293. package/dist/types/NavMenu/Nav.Item.d.ts +5 -0
  294. package/dist/types/NavMenu/Nav.Link.d.ts +5 -0
  295. package/dist/types/NavMenu/Nav.Menu.d.ts +7 -0
  296. package/dist/types/NavMenu/Nav.Sub.d.ts +9 -0
  297. package/dist/types/NavMenu/NavMenu.d.ts +9 -0
  298. package/dist/types/NavMenu/Viewport.d.ts +6 -0
  299. package/dist/types/NavMenu/index.d.ts +14 -0
  300. package/dist/types/NavMenu/navmenu.style.d.ts +46 -0
  301. package/dist/types/NavMenu/utils.d.ts +7 -0
  302. package/dist/types/Popover/Popover.Anchor.d.ts +5 -0
  303. package/dist/types/Popover/Popover.Close.d.ts +5 -0
  304. package/dist/types/Popover/Popover.Content.d.ts +5 -0
  305. package/dist/types/Popover/Popover.Trigger.d.ts +5 -0
  306. package/dist/types/Popover/Popover.d.ts +5 -0
  307. package/dist/types/Popover/index.d.ts +12 -0
  308. package/dist/types/Popover/popover.style.d.ts +51 -0
  309. package/dist/types/Portal/index.d.ts +4 -0
  310. package/dist/types/Presence/index.d.ts +4 -0
  311. package/dist/types/Select/Select.Group.d.ts +5 -0
  312. package/dist/types/Select/Select.Item.d.ts +5 -0
  313. package/dist/types/Select/Select.Separator.d.ts +5 -0
  314. package/dist/types/Select/Select.Trigger.d.ts +9 -0
  315. package/dist/types/Select/Select.d.ts +7 -0
  316. package/dist/types/Select/index.d.ts +11 -0
  317. package/dist/types/Select/select.style.d.ts +89 -0
  318. package/dist/types/Separator/Separator.d.ts +5 -0
  319. package/dist/types/Separator/index.d.ts +2 -0
  320. package/dist/types/Separator/separator.style.d.ts +23 -0
  321. package/dist/types/Slider/Slider.d.ts +7 -0
  322. package/dist/types/Slider/index.d.ts +2 -0
  323. package/dist/types/Slider/slider.style.d.ts +24 -0
  324. package/dist/types/Slot/index.d.ts +13 -0
  325. package/dist/types/Spinner/Spinner.d.ts +6 -0
  326. package/dist/types/Spinner/index.d.ts +2 -0
  327. package/dist/types/Spinner/spinner.style.d.ts +7 -0
  328. package/dist/types/Table/Body.d.ts +13 -0
  329. package/dist/types/Table/Expand.d.ts +20 -0
  330. package/dist/types/Table/Foot.d.ts +10 -0
  331. package/dist/types/Table/Head.d.ts +17 -0
  332. package/dist/types/Table/Table.d.ts +5 -0
  333. package/dist/types/Table/index.d.ts +2 -0
  334. package/dist/types/Table/table.style.d.ts +64 -0
  335. package/dist/types/Table/utils.d.ts +7 -0
  336. package/dist/types/Text/Text.d.ts +8 -0
  337. package/dist/types/Text/index.d.ts +2 -0
  338. package/dist/types/Text/text.style.d.ts +9 -0
  339. package/dist/types/TextArea/TextArea.d.ts +7 -0
  340. package/dist/types/TextArea/index.d.ts +2 -0
  341. package/dist/types/TextArea/textarea.style.d.ts +18 -0
  342. package/dist/types/Tooltip/Provider.d.ts +5 -0
  343. package/dist/types/Tooltip/Tooltip.d.ts +7 -0
  344. package/dist/types/Tooltip/index.d.ts +4 -0
  345. package/dist/types/Tooltip/tooltip.style.d.ts +29 -0
  346. package/dist/types/hooks/index.d.ts +6 -0
  347. package/dist/types/hooks/use-debounce.d.ts +4 -0
  348. package/dist/types/hooks/use-isomorphic-layout-effect.d.ts +3 -0
  349. package/dist/types/hooks/use-media-query.d.ts +32 -0
  350. package/dist/types/hooks/use-rollback.d.ts +5 -0
  351. package/dist/types/hooks/use-scroll.d.ts +19 -0
  352. package/dist/types/hooks/use-timeout.d.ts +1 -0
  353. package/dist/types/index.d.ts +47 -0
  354. package/dist/types/shared/icons/Caret.Down.d.ts +3 -0
  355. package/dist/types/shared/icons/Check.d.ts +3 -0
  356. package/dist/types/shared/icons/Chevron.Down.d.ts +3 -0
  357. package/dist/types/shared/icons/Chevron.Up.d.ts +3 -0
  358. package/dist/types/shared/icons/Circle.d.ts +3 -0
  359. package/dist/types/shared/icons/Cross.d.ts +3 -0
  360. package/dist/types/shared/icons/types.d.ts +3 -0
  361. package/dist/types/shared/styled-utils.d.ts +245 -0
  362. package/dist/types/style/ThemeProvider.d.ts +20 -0
  363. package/dist/types/style/Themes.d.ts +3 -0
  364. package/dist/types/style/defaults/breakpoints.d.ts +41 -0
  365. package/dist/types/style/defaults/colors/error.d.ts +31 -0
  366. package/dist/types/style/defaults/colors/index.d.ts +306 -0
  367. package/dist/types/style/defaults/colors/neutral.d.ts +31 -0
  368. package/dist/types/style/defaults/colors/primary.d.ts +31 -0
  369. package/dist/types/style/defaults/colors/secondary.d.ts +31 -0
  370. package/dist/types/style/defaults/colors/success.d.ts +31 -0
  371. package/dist/types/style/defaults/colors/tertiary.d.ts +31 -0
  372. package/dist/types/style/defaults/colors/warning.d.ts +31 -0
  373. package/dist/types/style/defaults/conditions.d.ts +28 -0
  374. package/dist/types/style/defaults/constants.d.ts +4 -0
  375. package/dist/types/style/defaults/globals.d.ts +1 -0
  376. package/dist/types/style/defaults/propMap.d.ts +159 -0
  377. package/dist/types/style/defaults/shadows.d.ts +27 -0
  378. package/dist/types/style/defaults/theme.d.ts +1902 -0
  379. package/dist/types/style/defaults/tokens.d.ts +202 -0
  380. package/dist/types/style/defaults/utilities.d.ts +242 -0
  381. package/dist/types/style/index.d.ts +6 -0
  382. package/dist/types/style/stitches.config.d.ts +502 -0
  383. package/dist/types/style/styled.d.ts +3 -0
  384. package/dist/types/style/types.d.ts +151 -0
  385. package/dist/types/style/useTheme.d.ts +3 -0
  386. package/dist/types/utils/WithWrapper.d.ts +8 -0
  387. package/dist/types/utils/autoResize.d.ts +1 -0
  388. package/dist/types/utils/children.d.ts +6 -0
  389. package/dist/types/utils/clamp.d.ts +2 -0
  390. package/dist/types/utils/closest.d.ts +2 -0
  391. package/dist/types/utils/composeRefs.d.ts +1 -0
  392. package/dist/types/utils/deepMerge.d.ts +2 -0
  393. package/dist/types/utils/forward.d.ts +6 -0
  394. package/dist/types/utils/index.d.ts +14 -0
  395. package/dist/types/utils/range.d.ts +1 -0
  396. package/dist/types/utils/screen.d.ts +31 -0
  397. package/dist/types/utils/simpleStrFilter.d.ts +36 -0
  398. package/dist/types/utils/textTransform.d.ts +9 -0
  399. package/dist/types/utils/typeis.d.ts +10 -0
  400. package/dist/types/utils/types.d.ts +35 -0
  401. package/dist/types/utils/unique.str.d.ts +1 -0
  402. package/package.json +57 -0
@@ -0,0 +1,502 @@
1
+ import type { CSS as C } from '@stitches/core';
2
+ import type CreateCore from '@stitches/core/types/stitches';
3
+ import type { Theme } from './types';
4
+ import type { Tokens } from './defaults/theme';
5
+ export declare const newTheme: Stitches['createTheme'];
6
+ export declare const css: Stitches['css'];
7
+ export declare const globalCss: Stitches['globalCss'];
8
+ export declare const keyframes: Stitches['keyframes'];
9
+ export declare const getCssText: Stitches['getCssText'];
10
+ export declare const defaultTheme: Stitches['theme'];
11
+ export declare const defaultConfig: Stitches['config'];
12
+ export declare const defaultClass: string;
13
+ declare const SEMANTIC: readonly ["primary", "secondary", "tertiary", "success", "warning", "error"];
14
+ declare const fontSizes: {
15
+ '2xs': string;
16
+ xs: string;
17
+ sm: string;
18
+ md: string;
19
+ lg: string;
20
+ xl: string;
21
+ '2xl': string;
22
+ '3xl': string;
23
+ '4xl': string;
24
+ '5xl': string;
25
+ '6xl': string;
26
+ '7xl': string;
27
+ '8xl': string;
28
+ '9xl': string;
29
+ };
30
+ /** FontSizes expects types String or Number, otherwise returns undefined */
31
+ export declare const fsFixer: (fs?: FontSizes) => string | number | undefined;
32
+ /** the "default" color will be treated as undefined */
33
+ export declare const isSemanticColor: (color?: SemanticKeys) => "primary" | "secondary" | "tertiary" | "success" | "warning" | "error" | undefined;
34
+ /** color "default" will be returned as fallback color or undefined */
35
+ export declare const semanticScaler: (color?: SemanticKeys | (string & {}), fallback?: string, options?: {
36
+ /** Extend color value with token like "$colors$red" instead of "red", default is true. */
37
+ tokenExt?: boolean;
38
+ /** Scale of color from 1 to 12 in string or number, default is 9. */
39
+ scale?: Scale;
40
+ /** Combine fallback color with scale number, default is true. */
41
+ fallbackScaled?: boolean;
42
+ }) => string | undefined;
43
+ export declare const cfgGen: (cls?: string) => {
44
+ prefix: NAMED;
45
+ media: MEDIA;
46
+ themeMap: THEME_MAP;
47
+ utils: UTILS;
48
+ theme: THEME;
49
+ };
50
+ export declare const createTheme: <T extends Theme>({ type, theme, className }: T) => string & {
51
+ className: string;
52
+ selector: string;
53
+ } & import("@stitches/core/types/stitches").ThemeTokens<{
54
+ space: {
55
+ xs: string;
56
+ sm: string;
57
+ md: string;
58
+ lg: string;
59
+ xl: string;
60
+ '2xl': string;
61
+ '3xl': string;
62
+ '4xl': string;
63
+ '5xl': string;
64
+ '6xl': string;
65
+ '7xl': string;
66
+ '8xl': string;
67
+ '9xl': string;
68
+ 0: string;
69
+ 1: string;
70
+ 2: string;
71
+ 3: string;
72
+ 4: string;
73
+ 5: string;
74
+ 6: string;
75
+ 7: string;
76
+ 8: string;
77
+ 9: string;
78
+ 10: string;
79
+ 11: string;
80
+ 12: string;
81
+ 13: string;
82
+ 14: string;
83
+ 15: string;
84
+ 16: string;
85
+ 17: string;
86
+ 18: string;
87
+ 19: string;
88
+ 20: string;
89
+ 24: string;
90
+ 28: string;
91
+ 32: string;
92
+ 36: string;
93
+ 40: string;
94
+ 44: string;
95
+ 48: string;
96
+ 52: string;
97
+ 56: string;
98
+ 60: string;
99
+ 64: string;
100
+ 72: string;
101
+ 80: string;
102
+ 96: string;
103
+ min: string;
104
+ max: string;
105
+ fit: string;
106
+ screen: string;
107
+ full: string;
108
+ px: string;
109
+ };
110
+ sizes: {
111
+ md: string;
112
+ lg: string;
113
+ xl: string;
114
+ '2xl': string;
115
+ '3xl': string;
116
+ '4xl': string;
117
+ '5xl': string;
118
+ '6xl': string;
119
+ '7xl': string;
120
+ '8xl': string;
121
+ 0: string;
122
+ 1: string;
123
+ 2: string;
124
+ 3: string;
125
+ 4: string;
126
+ 5: string;
127
+ 6: string;
128
+ 7: string;
129
+ 8: string;
130
+ 9: string;
131
+ 10: string;
132
+ 11: string;
133
+ 12: string;
134
+ 13: string;
135
+ 14: string;
136
+ 15: string;
137
+ 16: string;
138
+ 17: string;
139
+ 18: string;
140
+ 19: string;
141
+ 20: string;
142
+ 24: string;
143
+ 28: string;
144
+ 32: string;
145
+ 36: string;
146
+ 40: string;
147
+ 44: string;
148
+ 48: string;
149
+ 52: string;
150
+ 56: string;
151
+ 60: string;
152
+ 64: string;
153
+ 72: string;
154
+ 80: string;
155
+ 96: string;
156
+ min: string;
157
+ max: string;
158
+ fit: string;
159
+ screen: string;
160
+ full: string;
161
+ px: string;
162
+ };
163
+ fonts: {
164
+ sans: string;
165
+ serif: string;
166
+ mono: string;
167
+ };
168
+ fontSizes: {
169
+ '2xs': string;
170
+ xs: string;
171
+ sm: string;
172
+ md: string;
173
+ lg: string;
174
+ xl: string;
175
+ '2xl': string;
176
+ '3xl': string;
177
+ '4xl': string;
178
+ '5xl': string;
179
+ '6xl': string;
180
+ '7xl': string;
181
+ '8xl': string;
182
+ '9xl': string;
183
+ };
184
+ fontWeights: {
185
+ hairline: string;
186
+ thin: string;
187
+ light: string;
188
+ normal: string;
189
+ medium: string;
190
+ semibold: string;
191
+ bold: string;
192
+ extrabold: string;
193
+ black: string;
194
+ };
195
+ radii: {
196
+ xs: string;
197
+ sm: string;
198
+ md: string;
199
+ base: string;
200
+ lg: string;
201
+ xl: string;
202
+ '2xl': string;
203
+ '3xl': string;
204
+ squared: string;
205
+ rounded: string;
206
+ pill: string;
207
+ };
208
+ lineHeights: {
209
+ xs: string;
210
+ sm: string;
211
+ base: string;
212
+ md: string;
213
+ lg: string;
214
+ xl: string;
215
+ '2xl': string;
216
+ '3xl': string;
217
+ '4xl': string;
218
+ '5xl': string;
219
+ '6xl': string;
220
+ '7xl': string;
221
+ '8xl': string;
222
+ '9xl': string;
223
+ };
224
+ letterSpacings: {
225
+ tighter: string;
226
+ tight: string;
227
+ normal: string;
228
+ wide: string;
229
+ wider: string;
230
+ widest: string;
231
+ };
232
+ zIndices: {
233
+ 1: string;
234
+ 2: string;
235
+ 3: string;
236
+ 4: string;
237
+ 5: string;
238
+ 10: string;
239
+ max: string;
240
+ };
241
+ borderWidths: {
242
+ light: string;
243
+ normal: string;
244
+ bold: string;
245
+ extrabold: string;
246
+ black: string;
247
+ };
248
+ transitions: {
249
+ default: string;
250
+ button: string;
251
+ card: string;
252
+ };
253
+ colors: {
254
+ disable2: string;
255
+ disable1: string;
256
+ disable3: string;
257
+ disable4: string;
258
+ disable5: string;
259
+ disable6: string;
260
+ disable7: string;
261
+ disable8: string;
262
+ disable9: string;
263
+ disable10: string;
264
+ disable11: string;
265
+ disable12: string;
266
+ neutral1: string;
267
+ neutral2: string;
268
+ neutral3: string;
269
+ neutral4: string;
270
+ neutral5: string;
271
+ neutral6: string;
272
+ neutral7: string;
273
+ neutral8: string;
274
+ neutral9: string;
275
+ neutral10: string;
276
+ neutral11: string;
277
+ neutral12: string;
278
+ error1: string;
279
+ error2: string;
280
+ error3: string;
281
+ error4: string;
282
+ error5: string;
283
+ error6: string;
284
+ error7: string;
285
+ error8: string;
286
+ error9: string;
287
+ error10: string;
288
+ error11: string;
289
+ error12: string;
290
+ warning1: string;
291
+ warning2: string;
292
+ warning3: string;
293
+ warning4: string;
294
+ warning5: string;
295
+ warning6: string;
296
+ warning7: string;
297
+ warning8: string;
298
+ warning9: string;
299
+ warning10: string;
300
+ warning11: string;
301
+ warning12: string;
302
+ success1: string;
303
+ success2: string;
304
+ success3: string;
305
+ success4: string;
306
+ success5: string;
307
+ success6: string;
308
+ success7: string;
309
+ success8: string;
310
+ success9: string;
311
+ success10: string;
312
+ success11: string;
313
+ success12: string;
314
+ tertiary1: string;
315
+ tertiary2: string;
316
+ tertiary3: string;
317
+ tertiary4: string;
318
+ tertiary5: string;
319
+ tertiary6: string;
320
+ tertiary7: string;
321
+ tertiary8: string;
322
+ tertiary9: string;
323
+ tertiary10: string;
324
+ tertiary11: string;
325
+ tertiary12: string;
326
+ secondary1: string;
327
+ secondary2: string;
328
+ secondary3: string;
329
+ secondary4: string;
330
+ secondary5: string;
331
+ secondary6: string;
332
+ secondary7: string;
333
+ secondary8: string;
334
+ secondary9: string;
335
+ secondary10: string;
336
+ secondary11: string;
337
+ secondary12: string;
338
+ primary1: string;
339
+ primary2: string;
340
+ primary3: string;
341
+ primary4: string;
342
+ primary5: string;
343
+ primary6: string;
344
+ primary7: string;
345
+ primary8: string;
346
+ primary9: string;
347
+ primary10: string;
348
+ primary11: string;
349
+ primary12: string;
350
+ foregroundA2: string;
351
+ foregroundA1: string;
352
+ foregroundA3: string;
353
+ foregroundA4: string;
354
+ foregroundA5: string;
355
+ foregroundA6: string;
356
+ foregroundA7: string;
357
+ foregroundA8: string;
358
+ foregroundA9: string;
359
+ foregroundA10: string;
360
+ foregroundA11: string;
361
+ foregroundA12: string;
362
+ backgroundA2: string;
363
+ backgroundA1: string;
364
+ backgroundA3: string;
365
+ backgroundA4: string;
366
+ backgroundA5: string;
367
+ backgroundA6: string;
368
+ backgroundA7: string;
369
+ backgroundA8: string;
370
+ backgroundA9: string;
371
+ backgroundA10: string;
372
+ backgroundA11: string;
373
+ backgroundA12: string;
374
+ whiteA1: string;
375
+ whiteA2: string;
376
+ whiteA3: string;
377
+ whiteA4: string;
378
+ whiteA5: string;
379
+ whiteA6: string;
380
+ whiteA7: string;
381
+ whiteA8: string;
382
+ whiteA9: string;
383
+ whiteA10: string;
384
+ whiteA11: string;
385
+ whiteA12: string;
386
+ blackA1: string;
387
+ blackA2: string;
388
+ blackA3: string;
389
+ blackA4: string;
390
+ blackA5: string;
391
+ blackA6: string;
392
+ blackA7: string;
393
+ blackA8: string;
394
+ blackA9: string;
395
+ blackA10: string;
396
+ blackA11: string;
397
+ blackA12: string;
398
+ white: string;
399
+ black: string;
400
+ text: string;
401
+ background: string;
402
+ foreground: string;
403
+ divider: string;
404
+ subtleBackground: string;
405
+ };
406
+ shadows: {
407
+ xxs: string;
408
+ xs: string;
409
+ sm: string;
410
+ md: string;
411
+ lg: string;
412
+ xl: string;
413
+ '2xl': string;
414
+ '3xl': string;
415
+ '4xl': string;
416
+ '5xl': string;
417
+ };
418
+ color: {
419
+ xScheme: number;
420
+ };
421
+ } & {
422
+ borderStyles: {
423
+ [x: string]: string | number | boolean;
424
+ [x: number]: string | number | boolean;
425
+ };
426
+ borderWidths: {
427
+ [x: string]: string | number | boolean;
428
+ [x: number]: string | number | boolean;
429
+ };
430
+ colors: {
431
+ [x: string]: string | number | boolean;
432
+ [x: number]: string | number | boolean;
433
+ };
434
+ fonts: {
435
+ [x: string]: string | number | boolean;
436
+ [x: number]: string | number | boolean;
437
+ };
438
+ fontSizes: {
439
+ [x: string]: string | number | boolean;
440
+ [x: number]: string | number | boolean;
441
+ };
442
+ fontWeights: {
443
+ [x: string]: string | number | boolean;
444
+ [x: number]: string | number | boolean;
445
+ };
446
+ letterSpacings: {
447
+ [x: string]: string | number | boolean;
448
+ [x: number]: string | number | boolean;
449
+ };
450
+ lineHeights: {
451
+ [x: string]: string | number | boolean;
452
+ [x: number]: string | number | boolean;
453
+ };
454
+ radii: {
455
+ [x: string]: string | number | boolean;
456
+ [x: number]: string | number | boolean;
457
+ };
458
+ shadows: {
459
+ [x: string]: string | number | boolean;
460
+ [x: number]: string | number | boolean;
461
+ };
462
+ space: {
463
+ [x: string]: string | number | boolean;
464
+ [x: number]: string | number | boolean;
465
+ };
466
+ sizes: {
467
+ [x: string]: string | number | boolean;
468
+ [x: number]: string | number | boolean;
469
+ };
470
+ transitions: {
471
+ [x: string]: string | number | boolean;
472
+ [x: number]: string | number | boolean;
473
+ };
474
+ zIndices: {
475
+ [x: string]: string | number | boolean;
476
+ [x: number]: string | number | boolean;
477
+ };
478
+ }, string> & {
479
+ set: {
480
+ class: string;
481
+ scheme: "light" | "dark";
482
+ };
483
+ };
484
+ type StringOrNumber = (string & {}) | number;
485
+ type ScaleNum = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
486
+ type Scale = `${ScaleNum}` | ScaleNum;
487
+ export type SemanticKeys = (typeof SEMANTIC)[number] | 'default';
488
+ export type CSSColorKeys = Extract<CSS['color'], string>;
489
+ export type Config = Stitches['config'];
490
+ export type CSS = C<Config>;
491
+ export type WithStyleConfig = Parameters<typeof css.withConfig>[0];
492
+ export type CSSContainer = {
493
+ cssContainer?: CSS;
494
+ };
495
+ export type FontSizes = keyof typeof fontSizes | StringOrNumber;
496
+ type NAMED = string;
497
+ type MEDIA = Tokens['media'];
498
+ type THEME = Tokens['theme'];
499
+ type THEME_MAP = Tokens['themeMap'];
500
+ type UTILS = Tokens['utils'];
501
+ type Stitches = CreateCore<NAMED, MEDIA, THEME, THEME_MAP, UTILS>;
502
+ export {};
@@ -0,0 +1,3 @@
1
+ import type { Styled } from './types';
2
+ declare const styled: Styled;
3
+ export default styled;
@@ -0,0 +1,151 @@
1
+ import type { ForwardRefExoticComponent, ReactElement, ElementType, ComponentType, JSXElementConstructor, ComponentPropsWithRef } from 'react';
2
+ import type { Assign, Function as Fn, String as Str, WideObject, Widen } from '@stitches/core/types/util';
3
+ import type { RemoveIndex } from '@stitches/core/types/stitches';
4
+ import type { TransformProps, $$StyledComponentType, $$StyledComponentProps, $$StyledComponentMedia, StyledComponentProps as SCProps } from '@stitches/core/types/styled-component';
5
+ import type { CSS, Config, WithStyleConfig } from './stitches.config';
6
+ import { cfgGen } from './stitches.config';
7
+ export type { PropertyValue, ScaleValue, CSSProperties } from '@stitches/core/types';
8
+ export type EI<T> = T;
9
+ type TokenValues = {
10
+ [Token in number | string]: boolean | number | string;
11
+ };
12
+ type TokenTheme = {
13
+ [K in keyof Config['theme']]: Config['theme'][K] & TokenValues;
14
+ };
15
+ declare namespace ConfigType {
16
+ type Theme<T = {}> = {
17
+ borderStyles?: TokenValues;
18
+ borderWidths?: TokenValues;
19
+ colors?: TokenValues;
20
+ fonts?: TokenValues;
21
+ fontSizes?: TokenValues;
22
+ fontWeights?: TokenValues;
23
+ letterSpacings?: TokenValues;
24
+ lineHeights?: TokenValues;
25
+ radii?: TokenValues;
26
+ shadows?: TokenValues;
27
+ space?: TokenValues;
28
+ sizes?: TokenValues;
29
+ transitions?: TokenValues;
30
+ zIndices?: TokenValues;
31
+ } & {
32
+ [Scale in keyof T]: {
33
+ [Token in keyof T[Scale]]: T[Scale][Token] extends boolean | number | string ? T[Scale][Token] : boolean | number | string;
34
+ };
35
+ };
36
+ }
37
+ export type ThemeCfg<T = {}> = ConfigType.Theme<T>;
38
+ export type Theme = {
39
+ type?: 'dark' | 'light';
40
+ className?: string;
41
+ theme?: (TokenTheme & {
42
+ [Token in number | string]: TokenValues;
43
+ }) | {};
44
+ };
45
+ type ThemeData = {
46
+ [themeName: string]: {
47
+ class: string;
48
+ scheme: string;
49
+ };
50
+ };
51
+ export interface UseThemeProps {
52
+ /** List of all available theme names */
53
+ themes: string[];
54
+ /** Forced theme name for the current page */
55
+ forcedTheme?: string;
56
+ /** Update the theme */
57
+ setTheme: (theme: string) => void;
58
+ /** Active theme name */
59
+ theme?: string;
60
+ /** If `enableSystem` is true and the active theme is "system", this returns whether the system preference resolved to "dark" or "light". Otherwise, identical to `theme` */
61
+ resolvedTheme?: string;
62
+ /** Current config theme */
63
+ config?: ReturnType<typeof cfgGen>;
64
+ /** Get current theme scheme. */
65
+ scheme?: 'dark' | 'light';
66
+ }
67
+ export interface ThemeProviderProps {
68
+ /** Forced theme name for the current page */
69
+ forcedTheme?: string;
70
+ /** Whether to switch between dark and light themes based on prefers-color-scheme */
71
+ enableSystem?: boolean;
72
+ /** Disable all CSS transitions when switching themes */
73
+ disableTransitionOnChange?: boolean;
74
+ /** Whether to indicate to browsers which color scheme is used (dark or light) for built-in UI like inputs and buttons */
75
+ enableColorScheme?: boolean;
76
+ /** Key used to store theme setting in localStorage */
77
+ storageKey?: string;
78
+ /** Default theme name. If `enableSystem` is false, the default theme is light */
79
+ defaultTheme?: string;
80
+ /** Mapping of theme name to HTML attribute value. Object where key is the theme name and value is the attribute value */
81
+ themes?: ThemeData;
82
+ /** Nonce string to pass to the inline script for CSP headers */
83
+ nonce?: string;
84
+ children?: React.ReactNode;
85
+ }
86
+ /** Unique symbol used to reference the props of a Styled Component. */
87
+ declare const $$StyledCustomProps: unique symbol;
88
+ /** Unique symbol used to reference the props of a Styled Component. */
89
+ type $$StyledCustomProps = typeof $$StyledCustomProps;
90
+ interface Media extends EI<Config['media']> {
91
+ }
92
+ type _CSS = {
93
+ css?: CSS;
94
+ };
95
+ type _AS = {
96
+ as?: ElementType;
97
+ };
98
+ type AS_CSS = _AS & _CSS;
99
+ type Transform<P = {}> = TransformProps<P, Media>;
100
+ type VariantProps<P extends any, K extends keyof P> = Transform<{
101
+ [X in Exclude<keyof P, K>]: P[X];
102
+ }> & {
103
+ [X in K]: P[X];
104
+ };
105
+ type Composer<Composers = []> = {
106
+ [K in keyof Composers]: string extends Composers[K] ? Composers[K] : Composers[K] extends string | ComponentType<any> | Fn ? Composers[K] : RemoveIndex<CSS> & {
107
+ /** The **variants** property lets you set a subclass of styles based on a key-value pair. */
108
+ variants?: {
109
+ [Name in string]: {
110
+ [Pair in number | string]: CSS;
111
+ };
112
+ };
113
+ /** The **compoundVariants** property lets you to set a subclass of styles based on a combination of active variants. */
114
+ compoundVariants?: Array<('variants' extends keyof Composers[K] ? {
115
+ [Name in keyof Composers[K]['variants']]?: Widen<keyof Composers[K]['variants'][Name]> | Str;
116
+ } : WideObject) & {
117
+ css: CSS;
118
+ }>;
119
+ /** The **defaultVariants** property allows you to predefine the active key-value pairs of variants. */
120
+ defaultVariants?: 'variants' extends keyof Composers[K] ? {
121
+ [Name in keyof Composers[K]['variants']]?: Widen<keyof Composers[K]['variants'][Name]> | Str;
122
+ } : WideObject;
123
+ } & CSS & {
124
+ [K2 in keyof Composers[K]]: K2 extends 'compoundVariants' | 'defaultVariants' | 'variants' ? unknown : K2 extends keyof CSS ? CSS[K2] : unknown;
125
+ };
126
+ };
127
+ type Composition = Array<string | ElementType | ForwardRefExoticComponent<any> | JSXElementConstructor<any> | Fn | {
128
+ [name: string]: unknown;
129
+ }>;
130
+ type StyledFunctionType = <Type extends ElementType, Composers extends Composition = []>(type: Type, ...composers: Composer<Composers>) => StyledComponent<Type, SCProps<Composers>>;
131
+ /** Returns a new Styled Component. */
132
+ export interface StyledComponent<Type = 'span', Props = {}> extends ForwardRefExoticComponent<Assign<Type extends ElementType ? ComponentPropsWithRef<Type> : never, Transform<Props> & AS_CSS>> {
133
+ (props: Assign<Type extends ElementType ? ComponentPropsWithRef<Type> : {}, Transform<Props> & AS_CSS>): ReactElement | null;
134
+ <C extends CSS, As extends ElementType = Type extends ElementType ? Type : any, InnerProps = Type extends StyledComponent<any, infer IP> ? IP : {}>(props: Assign<ComponentPropsWithRef<As extends ElementType ? As : never>, Transform<Assign<InnerProps, Props>> & {
135
+ as?: As;
136
+ css?: {
137
+ [K in keyof C]: K extends keyof CSS ? CSS[K] : never;
138
+ };
139
+ }>): ReactElement | null;
140
+ className: string;
141
+ selector: string;
142
+ [$$StyledComponentType]: Type;
143
+ [$$StyledComponentProps]: Props;
144
+ [$$StyledComponentMedia]: Media;
145
+ [$$StyledCustomProps]: Assign<Type extends ElementType ? ComponentPropsWithRef<Type> : never, AS_CSS>;
146
+ }
147
+ export type Styled = {
148
+ withConfig: (config: WithStyleConfig) => StyledFunctionType;
149
+ } & StyledFunctionType;
150
+ export type StyledProps<T extends any, K extends typeof $$StyledComponentProps extends keyof T ? keyof T[typeof $$StyledComponentProps] : keyof unknown = never> = typeof $$StyledComponentProps extends keyof T ? typeof $$StyledCustomProps extends keyof T ? Assign<T[typeof $$StyledCustomProps], VariantProps<T[typeof $$StyledComponentProps], K>> : {} : {};
151
+ export type StyledVariants<T extends any, K extends typeof $$StyledComponentProps extends keyof T ? keyof T[typeof $$StyledComponentProps] : keyof unknown = never> = typeof $$StyledComponentProps extends keyof T ? VariantProps<T[typeof $$StyledComponentProps], K> : {};
@@ -0,0 +1,3 @@
1
+ import type { UseThemeProps } from './types';
2
+ declare const useTheme: () => UseThemeProps;
3
+ export default useTheme;
@@ -0,0 +1,8 @@
1
+ type ReactNode = React.ReactNode;
2
+ type Props = {
3
+ condition: boolean;
4
+ wrapper: (child: ReactNode) => ReactNode;
5
+ children: ReactNode;
6
+ };
7
+ declare const _default: React.FC<Props>;
8
+ export default _default;
@@ -0,0 +1 @@
1
+ export * from '@zag-js/auto-resize';
@@ -0,0 +1,6 @@
1
+ export default function (children: React.ReactNode): {
2
+ count: number;
3
+ onlyChild: boolean;
4
+ type: "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" | "reactelement" | "reactfragment" | "reactsuspense" | "reactprovider" | "reactcontext" | "reactportal" | "reactcomponent" | "htmlelement" | "nan" | "stringnumber" | "stringhtml" | "class" | "asyncfunction" | "generatorfunction" | "null" | "array" | "date" | "error" | "regexp" | "set" | "map" | "weakset" | "weakmap" | "promise" | "window" | "htmldocument" | "navigator" | (string & {});
5
+ child: (string | number | bigint | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | import("react").ReactPortal | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined>)[];
6
+ };
@@ -0,0 +1,2 @@
1
+ /** Clamp a number to keep it inside a specific range boundary. */
2
+ export default function (min: number, max: number, value: number): number;
@@ -0,0 +1,2 @@
1
+ /** Find the closest number in the array of number. */
2
+ export default function (num: number, stack: Array<number>): number;
@@ -0,0 +1 @@
1
+ export { composeRefs, useComposedRefs } from '@radix-ui/react-compose-refs';
@@ -0,0 +1,2 @@
1
+ declare const dm: typeof import("deepmerge");
2
+ export default dm;