@kadoui/react 1.5.10 → 1.6.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 (357) hide show
  1. package/dist/components/AccessNavigation/AccessNavigation.d.ts +6 -0
  2. package/dist/components/AccessNavigation/AccessNavigation.d.ts.map +1 -0
  3. package/dist/components/AccessNavigation/AccessNavigation.js +27 -0
  4. package/dist/components/Accordion/Accordion.d.ts +8 -0
  5. package/dist/components/Accordion/Accordion.d.ts.map +1 -0
  6. package/dist/components/Accordion/Accordion.js +7 -0
  7. package/dist/components/Accordion/AccordionBody.d.ts +4 -0
  8. package/dist/components/Accordion/AccordionBody.d.ts.map +1 -0
  9. package/dist/components/Accordion/AccordionBody.js +11 -0
  10. package/dist/components/Accordion/AccordionContext.d.ts +7 -0
  11. package/dist/components/Accordion/AccordionContext.d.ts.map +1 -0
  12. package/dist/components/Accordion/AccordionContext.js +2 -0
  13. package/dist/components/Accordion/AccordionRoot.d.ts +4 -0
  14. package/dist/components/Accordion/AccordionRoot.d.ts.map +1 -0
  15. package/dist/components/Accordion/AccordionRoot.js +8 -0
  16. package/dist/components/Accordion/AccordionToggle.d.ts +6 -0
  17. package/dist/components/Accordion/AccordionToggle.d.ts.map +1 -0
  18. package/dist/components/Accordion/AccordionToggle.js +12 -0
  19. package/dist/components/Affix/Affix.d.ts +4 -0
  20. package/dist/components/Affix/Affix.d.ts.map +1 -0
  21. package/dist/components/Affix/Affix.js +36 -0
  22. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +6 -0
  23. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts.map +1 -0
  24. package/dist/components/Breadcrumbs/Breadcrumbs.js +5 -0
  25. package/dist/components/Breadcrumbs/BreadcrumbsContext.d.ts +6 -0
  26. package/dist/components/Breadcrumbs/BreadcrumbsContext.d.ts.map +1 -0
  27. package/dist/components/Breadcrumbs/BreadcrumbsContext.js +2 -0
  28. package/dist/components/Breadcrumbs/BreadcrumbsItem.d.ts +6 -0
  29. package/dist/components/Breadcrumbs/BreadcrumbsItem.d.ts.map +1 -0
  30. package/dist/components/Breadcrumbs/BreadcrumbsItem.js +8 -0
  31. package/dist/components/Breadcrumbs/BreadcrumbsRoot.d.ts +6 -0
  32. package/dist/components/Breadcrumbs/BreadcrumbsRoot.d.ts.map +1 -0
  33. package/dist/components/Breadcrumbs/BreadcrumbsRoot.js +6 -0
  34. package/dist/components/Carousel/Carousel.d.ts +10 -0
  35. package/dist/components/Carousel/Carousel.d.ts.map +1 -0
  36. package/dist/components/Carousel/Carousel.js +9 -0
  37. package/dist/components/Carousel/CarouselContainer.d.ts +4 -0
  38. package/dist/components/Carousel/CarouselContainer.d.ts.map +1 -0
  39. package/dist/components/Carousel/CarouselContainer.js +8 -0
  40. package/dist/components/Carousel/CarouselContext.d.ts +8 -0
  41. package/dist/components/Carousel/CarouselContext.d.ts.map +1 -0
  42. package/dist/components/Carousel/CarouselContext.js +2 -0
  43. package/dist/components/Carousel/CarouselLeftFade.d.ts +5 -0
  44. package/dist/components/Carousel/CarouselLeftFade.d.ts.map +1 -0
  45. package/dist/components/Carousel/CarouselLeftFade.js +11 -0
  46. package/dist/components/Carousel/CarouselRightFade.d.ts +5 -0
  47. package/dist/components/Carousel/CarouselRightFade.d.ts.map +1 -0
  48. package/dist/components/Carousel/CarouselRightFade.js +11 -0
  49. package/dist/components/Carousel/CarouselRoot.d.ts +4 -0
  50. package/dist/components/Carousel/CarouselRoot.d.ts.map +1 -0
  51. package/dist/components/Carousel/CarouselRoot.js +40 -0
  52. package/dist/components/ClientOnly/ClientOnly.d.ts +4 -0
  53. package/dist/components/ClientOnly/ClientOnly.d.ts.map +1 -0
  54. package/dist/components/ClientOnly/ClientOnly.js +6 -0
  55. package/dist/components/Clipboard/Clipboard.d.ts +8 -0
  56. package/dist/components/Clipboard/Clipboard.d.ts.map +1 -0
  57. package/dist/components/Clipboard/Clipboard.js +11 -0
  58. package/dist/components/ContextMenu/ContextMenu.d.ts +6 -0
  59. package/dist/components/ContextMenu/ContextMenu.d.ts.map +1 -0
  60. package/dist/components/ContextMenu/ContextMenu.js +5 -0
  61. package/dist/components/ContextMenu/ContextMenuContent.d.ts +4 -0
  62. package/dist/components/ContextMenu/ContextMenuContent.d.ts.map +1 -0
  63. package/dist/components/ContextMenu/ContextMenuContent.js +30 -0
  64. package/dist/components/ContextMenu/ContextMenuContext.d.ts +11 -0
  65. package/dist/components/ContextMenu/ContextMenuContext.d.ts.map +1 -0
  66. package/dist/components/ContextMenu/ContextMenuContext.js +2 -0
  67. package/dist/components/ContextMenu/ContextMenuRoot.d.ts +4 -0
  68. package/dist/components/ContextMenu/ContextMenuRoot.d.ts.map +1 -0
  69. package/dist/components/ContextMenu/ContextMenuRoot.js +55 -0
  70. package/dist/components/Drawer/Drawer.d.ts +10 -0
  71. package/dist/components/Drawer/Drawer.d.ts.map +1 -0
  72. package/dist/components/Drawer/Drawer.js +9 -0
  73. package/dist/components/Drawer/DrawerBody.d.ts +6 -0
  74. package/dist/components/Drawer/DrawerBody.d.ts.map +1 -0
  75. package/dist/components/Drawer/DrawerBody.js +37 -0
  76. package/dist/components/Drawer/DrawerContext.d.ts +7 -0
  77. package/dist/components/Drawer/DrawerContext.d.ts.map +1 -0
  78. package/dist/components/Drawer/DrawerContext.js +2 -0
  79. package/dist/components/Drawer/DrawerPortal.d.ts +4 -0
  80. package/dist/components/Drawer/DrawerPortal.d.ts.map +1 -0
  81. package/dist/components/Drawer/DrawerPortal.js +14 -0
  82. package/dist/components/Drawer/DrawerRoot.d.ts +4 -0
  83. package/dist/components/Drawer/DrawerRoot.d.ts.map +1 -0
  84. package/dist/components/Drawer/DrawerRoot.js +34 -0
  85. package/dist/components/Drawer/DrawerToggle.d.ts +4 -0
  86. package/dist/components/Drawer/DrawerToggle.d.ts.map +1 -0
  87. package/dist/components/Drawer/DrawerToggle.js +11 -0
  88. package/dist/components/LoaderLink/LoaderLink.d.ts +6 -0
  89. package/dist/components/LoaderLink/LoaderLink.d.ts.map +1 -0
  90. package/dist/components/LoaderLink/LoaderLink.js +6 -0
  91. package/dist/components/Modal/Modal.d.ts +14 -0
  92. package/dist/components/Modal/Modal.d.ts.map +1 -0
  93. package/dist/components/Modal/Modal.js +13 -0
  94. package/dist/components/Modal/ModalBody.d.ts +4 -0
  95. package/dist/components/Modal/ModalBody.d.ts.map +1 -0
  96. package/dist/components/Modal/ModalBody.js +20 -0
  97. package/dist/components/Modal/ModalContent.d.ts +4 -0
  98. package/dist/components/Modal/ModalContent.d.ts.map +1 -0
  99. package/dist/components/Modal/ModalContent.js +4 -0
  100. package/dist/components/Modal/ModalContext.d.ts +7 -0
  101. package/dist/components/Modal/ModalContext.d.ts.map +1 -0
  102. package/dist/components/Modal/ModalContext.js +2 -0
  103. package/dist/components/Modal/ModalHeader.d.ts +4 -0
  104. package/dist/components/Modal/ModalHeader.d.ts.map +1 -0
  105. package/dist/components/Modal/ModalHeader.js +4 -0
  106. package/dist/components/Modal/ModalPortal.d.ts +4 -0
  107. package/dist/components/Modal/ModalPortal.d.ts.map +1 -0
  108. package/dist/components/Modal/ModalPortal.js +14 -0
  109. package/dist/components/Modal/ModalRoot.d.ts +6 -0
  110. package/dist/components/Modal/ModalRoot.d.ts.map +1 -0
  111. package/dist/components/Modal/ModalRoot.js +34 -0
  112. package/dist/components/Modal/ModalTrigger.d.ts +4 -0
  113. package/dist/components/Modal/ModalTrigger.d.ts.map +1 -0
  114. package/dist/components/Modal/ModalTrigger.js +11 -0
  115. package/dist/components/Otp/Otp.d.ts +8 -0
  116. package/dist/components/Otp/Otp.d.ts.map +1 -0
  117. package/dist/components/Otp/Otp.js +7 -0
  118. package/dist/components/Otp/OtpContext.d.ts +7 -0
  119. package/dist/components/Otp/OtpContext.d.ts.map +1 -0
  120. package/dist/components/Otp/OtpContext.js +4 -0
  121. package/dist/components/Otp/OtpHiddenInput.d.ts +4 -0
  122. package/dist/components/Otp/OtpHiddenInput.d.ts.map +1 -0
  123. package/dist/components/Otp/OtpHiddenInput.js +8 -0
  124. package/dist/components/Otp/OtpInputs.d.ts +7 -0
  125. package/dist/components/Otp/OtpInputs.d.ts.map +1 -0
  126. package/dist/components/Otp/OtpInputs.js +55 -0
  127. package/dist/components/Otp/OtpRoot.d.ts +4 -0
  128. package/dist/components/Otp/OtpRoot.d.ts.map +1 -0
  129. package/dist/components/Otp/OtpRoot.js +14 -0
  130. package/dist/components/Pagination/Pagination.d.ts +16 -0
  131. package/dist/components/Pagination/Pagination.d.ts.map +1 -0
  132. package/dist/components/Pagination/Pagination.js +12 -0
  133. package/dist/components/Pagination/PaginationContext.d.ts +8 -0
  134. package/dist/components/Pagination/PaginationContext.d.ts.map +1 -0
  135. package/dist/components/Pagination/PaginationContext.js +2 -0
  136. package/dist/components/Pagination/PaginationCounts.d.ts +4 -0
  137. package/dist/components/Pagination/PaginationCounts.d.ts.map +1 -0
  138. package/dist/components/Pagination/PaginationCounts.js +8 -0
  139. package/dist/components/Pagination/PaginationNextBtn.d.ts +6 -0
  140. package/dist/components/Pagination/PaginationNextBtn.d.ts.map +1 -0
  141. package/dist/components/Pagination/PaginationNextBtn.js +11 -0
  142. package/dist/components/Pagination/PaginationPrevBtn.d.ts +6 -0
  143. package/dist/components/Pagination/PaginationPrevBtn.d.ts.map +1 -0
  144. package/dist/components/Pagination/PaginationPrevBtn.js +11 -0
  145. package/dist/components/Pagination/PaginationSearchParamsRoot.d.ts +7 -0
  146. package/dist/components/Pagination/PaginationSearchParamsRoot.d.ts.map +1 -0
  147. package/dist/components/Pagination/PaginationSearchParamsRoot.js +29 -0
  148. package/dist/components/Pagination/PaginationStateRoot.d.ts +6 -0
  149. package/dist/components/Pagination/PaginationStateRoot.d.ts.map +1 -0
  150. package/dist/components/Pagination/PaginationStateRoot.js +10 -0
  151. package/dist/components/PasswordInput/PasswordInput.d.ts +8 -0
  152. package/dist/components/PasswordInput/PasswordInput.d.ts.map +1 -0
  153. package/dist/components/PasswordInput/PasswordInput.js +7 -0
  154. package/dist/components/PasswordInput/PasswordInputContext.d.ts +7 -0
  155. package/dist/components/PasswordInput/PasswordInputContext.d.ts.map +1 -0
  156. package/dist/components/PasswordInput/PasswordInputContext.js +2 -0
  157. package/dist/components/PasswordInput/PasswordInputField.d.ts +4 -0
  158. package/dist/components/PasswordInput/PasswordInputField.d.ts.map +1 -0
  159. package/dist/components/PasswordInput/PasswordInputField.js +8 -0
  160. package/dist/components/PasswordInput/PasswordInputRoot.d.ts +4 -0
  161. package/dist/components/PasswordInput/PasswordInputRoot.d.ts.map +1 -0
  162. package/dist/components/PasswordInput/PasswordInputRoot.js +8 -0
  163. package/dist/components/PasswordInput/PasswordInputToggle.d.ts +6 -0
  164. package/dist/components/PasswordInput/PasswordInputToggle.d.ts.map +1 -0
  165. package/dist/components/PasswordInput/PasswordInputToggle.js +11 -0
  166. package/dist/components/Popover/Popover.d.ts +8 -0
  167. package/dist/components/Popover/Popover.d.ts.map +1 -0
  168. package/dist/components/Popover/Popover.js +7 -0
  169. package/dist/components/Popover/PopoverBody.d.ts +6 -0
  170. package/dist/components/Popover/PopoverBody.d.ts.map +1 -0
  171. package/dist/components/Popover/PopoverBody.js +13 -0
  172. package/dist/components/Popover/PopoverContext.d.ts +10 -0
  173. package/dist/components/Popover/PopoverContext.d.ts.map +1 -0
  174. package/dist/components/Popover/PopoverContext.js +2 -0
  175. package/dist/components/Popover/PopoverRoot.d.ts +8 -0
  176. package/dist/components/Popover/PopoverRoot.d.ts.map +1 -0
  177. package/dist/components/Popover/PopoverRoot.js +74 -0
  178. package/dist/components/Popover/PopoverToggle.d.ts +4 -0
  179. package/dist/components/Popover/PopoverToggle.d.ts.map +1 -0
  180. package/dist/components/Popover/PopoverToggle.js +14 -0
  181. package/dist/components/Portal/Portal.d.ts +6 -0
  182. package/dist/components/Portal/Portal.d.ts.map +1 -0
  183. package/dist/components/Portal/Portal.js +6 -0
  184. package/dist/components/Progress/Progress.d.ts +6 -0
  185. package/dist/components/Progress/Progress.d.ts.map +1 -0
  186. package/dist/components/Progress/Progress.js +5 -0
  187. package/dist/components/Progress/ProgressBar.d.ts +6 -0
  188. package/dist/components/Progress/ProgressBar.d.ts.map +1 -0
  189. package/dist/components/Progress/ProgressBar.js +10 -0
  190. package/dist/components/Progress/ProgressContext.d.ts +6 -0
  191. package/dist/components/Progress/ProgressContext.d.ts.map +1 -0
  192. package/dist/components/Progress/ProgressContext.js +2 -0
  193. package/dist/components/Progress/ProgressRoot.d.ts +7 -0
  194. package/dist/components/Progress/ProgressRoot.d.ts.map +1 -0
  195. package/dist/components/Progress/ProgressRoot.js +6 -0
  196. package/dist/components/QrCode/QrCode.d.ts +8 -0
  197. package/dist/components/QrCode/QrCode.d.ts.map +1 -0
  198. package/dist/components/QrCode/QrCode.js +15 -0
  199. package/dist/components/Rating/Rating.d.ts +5 -0
  200. package/dist/components/Rating/Rating.d.ts.map +1 -0
  201. package/dist/components/Rating/Rating.js +5 -0
  202. package/dist/components/Rating/RatingContext.d.ts +7 -0
  203. package/dist/components/Rating/RatingContext.d.ts.map +1 -0
  204. package/dist/components/Rating/RatingContext.js +2 -0
  205. package/dist/components/Rating/RatingItems.d.ts +10 -0
  206. package/dist/components/Rating/RatingItems.d.ts.map +1 -0
  207. package/dist/components/Rating/RatingItems.js +13 -0
  208. package/dist/components/Rating/RatingRoot.d.ts +4 -0
  209. package/dist/components/Rating/RatingRoot.d.ts.map +1 -0
  210. package/dist/components/Rating/RatingRoot.js +8 -0
  211. package/dist/components/Sheet/Sheet.d.ts +14 -0
  212. package/dist/components/Sheet/Sheet.d.ts.map +1 -0
  213. package/dist/components/Sheet/Sheet.js +13 -0
  214. package/dist/components/Sheet/SheetBody.d.ts +4 -0
  215. package/dist/components/Sheet/SheetBody.d.ts.map +1 -0
  216. package/dist/components/Sheet/SheetBody.js +21 -0
  217. package/dist/components/Sheet/SheetContent.d.ts +4 -0
  218. package/dist/components/Sheet/SheetContent.d.ts.map +1 -0
  219. package/dist/components/Sheet/SheetContent.js +4 -0
  220. package/dist/components/Sheet/SheetContext.d.ts +12 -0
  221. package/dist/components/Sheet/SheetContext.d.ts.map +1 -0
  222. package/dist/components/Sheet/SheetContext.js +2 -0
  223. package/dist/components/Sheet/SheetHeader.d.ts +4 -0
  224. package/dist/components/Sheet/SheetHeader.d.ts.map +1 -0
  225. package/dist/components/Sheet/SheetHeader.js +11 -0
  226. package/dist/components/Sheet/SheetPortal.d.ts +4 -0
  227. package/dist/components/Sheet/SheetPortal.d.ts.map +1 -0
  228. package/dist/components/Sheet/SheetPortal.js +11 -0
  229. package/dist/components/Sheet/SheetRoot.d.ts +4 -0
  230. package/dist/components/Sheet/SheetRoot.d.ts.map +1 -0
  231. package/dist/components/Sheet/SheetRoot.js +35 -0
  232. package/dist/components/Sheet/SheetToggle.d.ts +4 -0
  233. package/dist/components/Sheet/SheetToggle.d.ts.map +1 -0
  234. package/dist/components/Sheet/SheetToggle.js +11 -0
  235. package/dist/components/ShowMore/ShowMore.d.ts +10 -0
  236. package/dist/components/ShowMore/ShowMore.d.ts.map +1 -0
  237. package/dist/components/ShowMore/ShowMore.js +9 -0
  238. package/dist/components/ShowMore/ShowMoreContent.d.ts +4 -0
  239. package/dist/components/ShowMore/ShowMoreContent.d.ts.map +1 -0
  240. package/dist/components/ShowMore/ShowMoreContent.js +19 -0
  241. package/dist/components/ShowMore/ShowMoreContext.d.ts +10 -0
  242. package/dist/components/ShowMore/ShowMoreContext.d.ts.map +1 -0
  243. package/dist/components/ShowMore/ShowMoreContext.js +2 -0
  244. package/dist/components/ShowMore/ShowMoreFade.d.ts +4 -0
  245. package/dist/components/ShowMore/ShowMoreFade.d.ts.map +1 -0
  246. package/dist/components/ShowMore/ShowMoreFade.js +8 -0
  247. package/dist/components/ShowMore/ShowMoreRoot.d.ts +7 -0
  248. package/dist/components/ShowMore/ShowMoreRoot.d.ts.map +1 -0
  249. package/dist/components/ShowMore/ShowMoreRoot.js +21 -0
  250. package/dist/components/ShowMore/ShowMoreTrigger.d.ts +4 -0
  251. package/dist/components/ShowMore/ShowMoreTrigger.d.ts.map +1 -0
  252. package/dist/components/ShowMore/ShowMoreTrigger.js +14 -0
  253. package/dist/components/Spoiler/Spoiler.d.ts +6 -0
  254. package/dist/components/Spoiler/Spoiler.d.ts.map +1 -0
  255. package/dist/components/Spoiler/Spoiler.js +5 -0
  256. package/dist/components/Spoiler/SpoilerBlur.d.ts +4 -0
  257. package/dist/components/Spoiler/SpoilerBlur.d.ts.map +1 -0
  258. package/dist/components/Spoiler/SpoilerBlur.js +9 -0
  259. package/dist/components/Spoiler/SpoilerContext.d.ts +7 -0
  260. package/dist/components/Spoiler/SpoilerContext.d.ts.map +1 -0
  261. package/dist/components/Spoiler/SpoilerContext.js +2 -0
  262. package/dist/components/Spoiler/SpoilerRoot.d.ts +4 -0
  263. package/dist/components/Spoiler/SpoilerRoot.d.ts.map +1 -0
  264. package/dist/components/Spoiler/SpoilerRoot.js +9 -0
  265. package/dist/components/Steps/Steps.d.ts +19 -0
  266. package/dist/components/Steps/Steps.d.ts.map +1 -0
  267. package/dist/components/Steps/Steps.js +14 -0
  268. package/dist/components/Steps/StepsContext.d.ts +14 -0
  269. package/dist/components/Steps/StepsContext.d.ts.map +1 -0
  270. package/dist/components/Steps/StepsContext.js +2 -0
  271. package/dist/components/Steps/StepsIndexBtn.d.ts +6 -0
  272. package/dist/components/Steps/StepsIndexBtn.d.ts.map +1 -0
  273. package/dist/components/Steps/StepsIndexBtn.js +11 -0
  274. package/dist/components/Steps/StepsNextBtn.d.ts +6 -0
  275. package/dist/components/Steps/StepsNextBtn.d.ts.map +1 -0
  276. package/dist/components/Steps/StepsNextBtn.js +11 -0
  277. package/dist/components/Steps/StepsPrevBtn.d.ts +6 -0
  278. package/dist/components/Steps/StepsPrevBtn.d.ts.map +1 -0
  279. package/dist/components/Steps/StepsPrevBtn.js +11 -0
  280. package/dist/components/Steps/StepsRender.d.ts +2 -0
  281. package/dist/components/Steps/StepsRender.d.ts.map +1 -0
  282. package/dist/components/Steps/StepsRender.js +7 -0
  283. package/dist/components/Steps/StepsSearchParamsRoot.d.ts +8 -0
  284. package/dist/components/Steps/StepsSearchParamsRoot.d.ts.map +1 -0
  285. package/dist/components/Steps/StepsSearchParamsRoot.js +29 -0
  286. package/dist/components/Steps/StepsStateRoot.d.ts +7 -0
  287. package/dist/components/Steps/StepsStateRoot.d.ts.map +1 -0
  288. package/dist/components/Steps/StepsStateRoot.js +10 -0
  289. package/dist/components/Submit/Submit.d.ts +6 -0
  290. package/dist/components/Submit/Submit.d.ts.map +1 -0
  291. package/dist/components/Submit/Submit.js +5 -0
  292. package/dist/components/Submit/SubmitContext.d.ts +5 -0
  293. package/dist/components/Submit/SubmitContext.d.ts.map +1 -0
  294. package/dist/components/Submit/SubmitContext.js +2 -0
  295. package/dist/components/Submit/SubmitLoader.d.ts +6 -0
  296. package/dist/components/Submit/SubmitLoader.d.ts.map +1 -0
  297. package/dist/components/Submit/SubmitLoader.js +7 -0
  298. package/dist/components/Submit/SubmitRoot.d.ts +6 -0
  299. package/dist/components/Submit/SubmitRoot.d.ts.map +1 -0
  300. package/dist/components/Submit/SubmitRoot.js +8 -0
  301. package/dist/components/Swap/Swap.d.ts +8 -0
  302. package/dist/components/Swap/Swap.d.ts.map +1 -0
  303. package/dist/components/Swap/Swap.js +7 -0
  304. package/dist/components/Swap/SwapContext.d.ts +7 -0
  305. package/dist/components/Swap/SwapContext.d.ts.map +1 -0
  306. package/dist/components/Swap/SwapContext.js +2 -0
  307. package/dist/components/Swap/SwapItem.d.ts +4 -0
  308. package/dist/components/Swap/SwapItem.d.ts.map +1 -0
  309. package/dist/components/Swap/SwapItem.js +6 -0
  310. package/dist/components/Swap/SwapRoot.d.ts +8 -0
  311. package/dist/components/Swap/SwapRoot.d.ts.map +1 -0
  312. package/dist/components/Swap/SwapRoot.js +13 -0
  313. package/dist/components/Swap/SwapTrigger.d.ts +6 -0
  314. package/dist/components/Swap/SwapTrigger.d.ts.map +1 -0
  315. package/dist/components/Swap/SwapTrigger.js +17 -0
  316. package/dist/components/Tabs/Tabs.d.ts +10 -0
  317. package/dist/components/Tabs/Tabs.d.ts.map +1 -0
  318. package/dist/components/Tabs/Tabs.js +9 -0
  319. package/dist/components/Tabs/TabsContext.d.ts +7 -0
  320. package/dist/components/Tabs/TabsContext.d.ts.map +1 -0
  321. package/dist/components/Tabs/TabsContext.js +5 -0
  322. package/dist/components/Tabs/TabsList.d.ts +4 -0
  323. package/dist/components/Tabs/TabsList.d.ts.map +1 -0
  324. package/dist/components/Tabs/TabsList.js +5 -0
  325. package/dist/components/Tabs/TabsPanel.d.ts +6 -0
  326. package/dist/components/Tabs/TabsPanel.d.ts.map +1 -0
  327. package/dist/components/Tabs/TabsPanel.js +9 -0
  328. package/dist/components/Tabs/TabsRoot.d.ts +7 -0
  329. package/dist/components/Tabs/TabsRoot.d.ts.map +1 -0
  330. package/dist/components/Tabs/TabsRoot.js +6 -0
  331. package/dist/components/Tabs/TabsTab.d.ts +6 -0
  332. package/dist/components/Tabs/TabsTab.d.ts.map +1 -0
  333. package/dist/components/Tabs/TabsTab.js +11 -0
  334. package/dist/index.d.ts +27 -434
  335. package/dist/index.d.ts.map +1 -0
  336. package/dist/index.js +26 -1764
  337. package/dist/utils/browser.d.ts +3 -0
  338. package/dist/utils/browser.d.ts.map +1 -0
  339. package/dist/utils/browser.js +21 -0
  340. package/dist/utils/cn.d.ts +3 -0
  341. package/dist/utils/cn.d.ts.map +1 -0
  342. package/dist/utils/cn.js +3 -0
  343. package/dist/utils/form.d.ts +2 -0
  344. package/dist/utils/form.d.ts.map +1 -0
  345. package/dist/utils/form.js +8 -0
  346. package/dist/utils.d.ts +4 -10
  347. package/dist/utils.d.ts.map +1 -0
  348. package/dist/utils.js +3 -46
  349. package/package.json +5 -12
  350. package/dist/index.cjs +0 -1824
  351. package/dist/index.cjs.map +0 -1
  352. package/dist/index.d.cts +0 -434
  353. package/dist/index.js.map +0 -1
  354. package/dist/utils.cjs +0 -76
  355. package/dist/utils.cjs.map +0 -1
  356. package/dist/utils.d.cts +0 -10
  357. package/dist/utils.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,1764 +1,26 @@
1
- // src/utils/browser.ts
2
- var getBrowserScrollbarWith = () => {
3
- const outer = document.createElement("div");
4
- outer.style.visibility = "hidden";
5
- outer.style.overflow = "scroll";
6
- document.body.appendChild(outer);
7
- const inner = document.createElement("div");
8
- outer.appendChild(inner);
9
- const scrollbarWidth = outer.offsetWidth - inner.offsetWidth;
10
- outer.parentNode?.removeChild(outer);
11
- return scrollbarWidth;
12
- };
13
- var selectAccessibleChildren = (parent) => {
14
- const children = Array.from(
15
- parent.querySelectorAll(`
16
- a:not([tabindex="-1"]),
17
- input:not([disabled],[tabindex="-1"]),
18
- select:not([disabled],[tabindex="-1"]),
19
- textarea:not([disabled],[tabindex="-1"]),
20
- button:not([disabled],[tabindex="-1"])
21
- `)
22
- );
23
- return children;
24
- };
25
-
26
- // src/utils/cn.ts
27
- import { twMerge } from "tailwind-merge";
28
- import { clsx } from "clsx";
29
- var cn = (...inputs) => twMerge(clsx(inputs));
30
-
31
- // src/components/AccessNavigation/AccessNavigation.tsx
32
- import { jsx } from "react/jsx-runtime";
33
- function AccessNavigation({ direction = "y", dir, onKeyDown, ...p }) {
34
- const handleKeyDown = (ev) => {
35
- const focusableChildren = selectAccessibleChildren(ev.currentTarget);
36
- if (!focusableChildren.length) {
37
- return;
38
- }
39
- const currentDir = dir || document.documentElement.getAttribute("dir") || "ltr";
40
- const currentIndex = focusableChildren.findIndex((item) => item === document.activeElement);
41
- if (ev.key === (direction === "y" ? "ArrowDown" : currentDir === "ltr" ? "ArrowRight" : "ArrowLeft")) {
42
- ev.preventDefault();
43
- const nextIndex = currentIndex === -1 || currentIndex === focusableChildren.length - 1 ? 0 : currentIndex + 1;
44
- focusableChildren[nextIndex]?.focus();
45
- }
46
- if (ev.key === (direction === "y" ? "ArrowUp" : currentDir === "ltr" ? "ArrowLeft" : "ArrowRight")) {
47
- ev.preventDefault();
48
- const prevIndex = currentIndex <= 0 ? focusableChildren.length - 1 : currentIndex - 1;
49
- focusableChildren[prevIndex]?.focus();
50
- }
51
- };
52
- return /* @__PURE__ */ jsx(
53
- "div",
54
- {
55
- dir,
56
- onKeyDown: (ev) => {
57
- onKeyDown?.(ev);
58
- handleKeyDown(ev);
59
- },
60
- ...p
61
- }
62
- );
63
- }
64
-
65
- // src/components/Accordion/AccordionBody.tsx
66
- import { use } from "react";
67
- import { AnimatePresence, motion } from "framer-motion";
68
-
69
- // src/components/Accordion/AccordionContext.ts
70
- import { createContext } from "react";
71
- var AccordionContext = createContext({});
72
-
73
- // src/components/Accordion/AccordionBody.tsx
74
- import { jsx as jsx2 } from "react/jsx-runtime";
75
- function AccordionBody({ children, ...props }) {
76
- const { isOpen } = use(AccordionContext);
77
- return /* @__PURE__ */ jsx2(AnimatePresence, { children: isOpen ? /* @__PURE__ */ jsx2(
78
- motion.div,
79
- {
80
- initial: { height: 0, opacity: 0 },
81
- animate: { height: "auto", opacity: 1 },
82
- exit: { height: 0, opacity: 0 },
83
- ...props,
84
- children
85
- }
86
- ) : null });
87
- }
88
-
89
- // src/components/Accordion/AccordionRoot.tsx
90
- import { useState } from "react";
91
- import { jsx as jsx3 } from "react/jsx-runtime";
92
- function AccordionRoot({ children }) {
93
- const [isOpen, setOpen] = useState(false);
94
- return /* @__PURE__ */ jsx3(AccordionContext, { value: { isOpen, setOpen }, children });
95
- }
96
-
97
- // src/components/Accordion/AccordionToggle.tsx
98
- import { use as use2 } from "react";
99
- import { jsx as jsx4 } from "react/jsx-runtime";
100
- function AccordionToggle({ className, onClick, ...props }) {
101
- const { isOpen, setOpen } = use2(AccordionContext);
102
- return /* @__PURE__ */ jsx4(
103
- "button",
104
- {
105
- onClick: (ev) => {
106
- onClick?.(ev);
107
- setOpen((prev) => !prev);
108
- },
109
- className: cn(
110
- isOpen ? "accordion-active" : null,
111
- className
112
- ),
113
- ...props
114
- }
115
- );
116
- }
117
-
118
- // src/components/Accordion/Accordion.ts
119
- var Accordion = Object.assign(AccordionRoot, {
120
- Toggle: AccordionToggle,
121
- Body: AccordionBody
122
- });
123
-
124
- // src/components/Affix/Affix.tsx
125
- import { useState as useState2, useEffect } from "react";
126
- import { jsx as jsx5 } from "react/jsx-runtime";
127
- var Affix = ({ className, onClick, ...p }) => {
128
- const [isVisible, setIsVisible] = useState2(false);
129
- const [lastScrollY, setLastScrollY] = useState2(0);
130
- useEffect(() => {
131
- const handleScroll = () => {
132
- const currentScrollY = window.scrollY;
133
- const viewportHeight = window.innerHeight;
134
- const scrollThreshold = viewportHeight * 0.5;
135
- if (currentScrollY > scrollThreshold && currentScrollY > lastScrollY) {
136
- setIsVisible(true);
137
- } else if (currentScrollY < lastScrollY && currentScrollY < scrollThreshold) {
138
- setIsVisible(false);
139
- }
140
- setLastScrollY(currentScrollY);
141
- };
142
- window.addEventListener("scroll", handleScroll, {
143
- passive: true
144
- });
145
- return () => window.removeEventListener("scroll", handleScroll);
146
- }, [lastScrollY]);
147
- const scrollToTop = () => {
148
- window.scrollTo({
149
- top: 0,
150
- behavior: "smooth"
151
- });
152
- };
153
- return /* @__PURE__ */ jsx5(
154
- "button",
155
- {
156
- onClick: (ev) => {
157
- onClick?.(ev);
158
- scrollToTop();
159
- },
160
- className: cn(
161
- isVisible ? "affix-active" : null,
162
- className
163
- ),
164
- ...p
165
- }
166
- );
167
- };
168
-
169
- // src/components/Breadcrumbs/BreadcrumbsItem.tsx
170
- import { use as use3 } from "react";
171
-
172
- // src/components/Breadcrumbs/BreadcrumbsContext.ts
173
- import { createContext as createContext2 } from "react";
174
- var BreadcrumbsContext = createContext2({});
175
-
176
- // src/components/Breadcrumbs/BreadcrumbsItem.tsx
177
- import { jsxs } from "react/jsx-runtime";
178
- function BreadcrumbsItem({ isLast = false, children, ...p }) {
179
- const { separator } = use3(BreadcrumbsContext);
180
- return /* @__PURE__ */ jsxs("div", { ...p, children: [
181
- children,
182
- !isLast && separator
183
- ] });
184
- }
185
-
186
- // src/components/Breadcrumbs/BreadcrumbsRoot.tsx
187
- import { jsx as jsx6 } from "react/jsx-runtime";
188
- function BreadcrumbsRoot({ separator = "/", ...p }) {
189
- return /* @__PURE__ */ jsx6(BreadcrumbsContext, { value: { separator }, children: /* @__PURE__ */ jsx6("nav", { ...p }) });
190
- }
191
-
192
- // src/components/Breadcrumbs/Breadcrumbs.ts
193
- var Breadcrumbs = Object.assign(BreadcrumbsRoot, {
194
- Item: BreadcrumbsItem
195
- });
196
-
197
- // src/components/Carousel/CarouselRoot.tsx
198
- import { useEffect as useEffect2, useRef, useState as useState3 } from "react";
199
-
200
- // src/components/Carousel/CarouselContext.ts
201
- import { createContext as createContext3 } from "react";
202
- var CarouselContext = createContext3({});
203
-
204
- // src/components/Carousel/CarouselRoot.tsx
205
- import { jsx as jsx7 } from "react/jsx-runtime";
206
- function CarouselRoot({ dir, ...p }) {
207
- const scrollRef = useRef(null);
208
- const [leftOpacity, setLeftOpacity] = useState3(0);
209
- const [rightOpacity, setRightOpacity] = useState3(1);
210
- const updateFade = () => {
211
- const el = scrollRef.current;
212
- if (!el) return;
213
- const { scrollLeft, scrollWidth, clientWidth } = el;
214
- const maxScroll = scrollWidth - clientWidth;
215
- if (maxScroll <= 0) {
216
- setLeftOpacity(0);
217
- setRightOpacity(0);
218
- return;
219
- }
220
- const scrollRatio = Math.abs(+(scrollLeft / maxScroll));
221
- const left = +Math.min(1, scrollRatio * 2).toFixed(1);
222
- const right = +Math.min(1, (1 - scrollRatio) * 2).toFixed(1);
223
- const currentDir = dir || document.documentElement.getAttribute("dir") || "ltr";
224
- setLeftOpacity(currentDir === "ltr" ? right : left);
225
- setRightOpacity(currentDir === "ltr" ? left : right);
226
- };
227
- useEffect2(() => {
228
- const el = scrollRef.current;
229
- if (!el) return;
230
- updateFade();
231
- el.addEventListener("scroll", updateFade);
232
- window.addEventListener("resize", updateFade);
233
- return () => {
234
- el.removeEventListener("scroll", updateFade);
235
- window.removeEventListener("resize", updateFade);
236
- };
237
- }, []);
238
- return /* @__PURE__ */ jsx7(CarouselContext, { value: { scrollRef, leftOpacity, rightOpacity }, children: /* @__PURE__ */ jsx7("div", { ...p }) });
239
- }
240
-
241
- // src/components/Carousel/CarouselLeftFade.tsx
242
- import { use as use4 } from "react";
243
- import { jsx as jsx8 } from "react/jsx-runtime";
244
- function CarouselLeftFade({ style, ...p }) {
245
- const { leftOpacity } = use4(CarouselContext);
246
- return /* @__PURE__ */ jsx8(
247
- "div",
248
- {
249
- style: {
250
- opacity: leftOpacity,
251
- ...style
252
- },
253
- ...p
254
- }
255
- );
256
- }
257
-
258
- // src/components/Carousel/CarouselContainer.tsx
259
- import { use as use5 } from "react";
260
- import { jsx as jsx9 } from "react/jsx-runtime";
261
- function CarouselContainer({ children, ...p }) {
262
- const { scrollRef } = use5(CarouselContext);
263
- return /* @__PURE__ */ jsx9("div", { ref: scrollRef, ...p, children });
264
- }
265
-
266
- // src/components/Carousel/CarouselRightFade.tsx
267
- import { use as use6 } from "react";
268
- import { jsx as jsx10 } from "react/jsx-runtime";
269
- function CarouselRightFade({ style, ...p }) {
270
- const { rightOpacity } = use6(CarouselContext);
271
- return /* @__PURE__ */ jsx10(
272
- "div",
273
- {
274
- style: {
275
- opacity: rightOpacity,
276
- ...style
277
- },
278
- ...p
279
- }
280
- );
281
- }
282
-
283
- // src/components/Carousel/Carousel.ts
284
- var Carousel = Object.assign(CarouselRoot, {
285
- Container: CarouselContainer,
286
- LeftFade: CarouselLeftFade,
287
- RightFade: CarouselRightFade
288
- });
289
-
290
- // src/components/ClientOnly/ClientOnly.tsx
291
- import { useMounted } from "@mantine/hooks";
292
- function ClientOnly({ children }) {
293
- const mounted = useMounted();
294
- return mounted ? children : null;
295
- }
296
-
297
- // src/components/Clipboard/Clipboard.tsx
298
- import { useClipboard } from "@mantine/hooks";
299
- import { jsx as jsx11 } from "react/jsx-runtime";
300
- function Clipboard({ copiedChildren, onClick, children, text, timeout = 3e3, ...props }) {
301
- const { copy, copied } = useClipboard({ timeout });
302
- const handleClick = (ev) => {
303
- onClick?.(ev);
304
- copy(text.trim());
305
- };
306
- return /* @__PURE__ */ jsx11(
307
- "button",
308
- {
309
- "aria-label": text,
310
- onClick: handleClick,
311
- ...props,
312
- children: copiedChildren && copied ? copiedChildren : children
313
- }
314
- );
315
- }
316
-
317
- // src/components/ContextMenu/ContextMenuRoot.tsx
318
- import { useCallback, useEffect as useEffect3, useRef as useRef2, useState as useState4 } from "react";
319
-
320
- // src/components/ContextMenu/ContextMenuContext.ts
321
- import { createContext as createContext4 } from "react";
322
- var ContextMenuContext = createContext4({});
323
-
324
- // src/components/ContextMenu/ContextMenuRoot.tsx
325
- import { jsx as jsx12 } from "react/jsx-runtime";
326
- function ContextMenuRoot({ onContextMenu, ...p }) {
327
- const [position, setPosition] = useState4(void 0);
328
- const [isOpen, setOpen] = useState4(false);
329
- const contentRef = useRef2(null);
330
- const handleClickOutside = useCallback((ev) => {
331
- if (!contentRef.current?.contains(ev.target)) {
332
- setOpen(false);
333
- setPosition(void 0);
334
- }
335
- }, []);
336
- useEffect3(() => {
337
- document.addEventListener("click", handleClickOutside);
338
- return () => document.removeEventListener("click", handleClickOutside);
339
- }, [handleClickOutside]);
340
- useEffect3(() => {
341
- const scrollbarWidth = getBrowserScrollbarWith();
342
- if (isOpen) {
343
- document.body.style.overflow = "hidden";
344
- document.body.style.paddingRight = `${scrollbarWidth}px`;
345
- } else {
346
- document.body.style.overflow = "unset";
347
- document.body.style.paddingRight = "0px";
348
- }
349
- ;
350
- }, [isOpen]);
351
- const handleContextMenu = (ev) => {
352
- if (!contentRef.current) return;
353
- ev.preventDefault();
354
- const viewportWidth = window.innerWidth;
355
- const viewportHeight = window.innerHeight;
356
- const menuWidth = contentRef.current.scrollWidth;
357
- const menuHeight = contentRef.current.scrollHeight;
358
- let x = ev.clientX;
359
- let y = ev.clientY;
360
- if (x + menuWidth > viewportWidth) {
361
- x = viewportWidth - menuWidth - 10;
362
- }
363
- if (y + menuHeight > viewportHeight) {
364
- y = viewportHeight - menuHeight - 10;
365
- }
366
- setPosition({ x, y });
367
- setOpen(true);
368
- };
369
- return /* @__PURE__ */ jsx12(ContextMenuContext, { value: { contentRef, isOpen, position }, children: /* @__PURE__ */ jsx12(
370
- "div",
371
- {
372
- onContextMenu: (ev) => {
373
- onContextMenu?.(ev);
374
- handleContextMenu(ev);
375
- },
376
- ...p
377
- }
378
- ) });
379
- }
380
-
381
- // src/components/ContextMenu/ContextMenuContent.tsx
382
- import { use as use7, useEffect as useEffect4 } from "react";
383
- import { jsx as jsx13 } from "react/jsx-runtime";
384
- function ContextMenuContent({ onContextMenu, className, ...p }) {
385
- const { contentRef, position, isOpen } = use7(ContextMenuContext);
386
- useEffect4(() => {
387
- if (!contentRef.current) {
388
- return;
389
- }
390
- if (isOpen) {
391
- const children = selectAccessibleChildren(contentRef.current);
392
- const firstChild = children[0];
393
- if (!firstChild) {
394
- return;
395
- }
396
- firstChild.focus();
397
- }
398
- }, [isOpen, position, contentRef]);
399
- return /* @__PURE__ */ jsx13(
400
- "div",
401
- {
402
- ref: contentRef,
403
- onContextMenu: (ev) => {
404
- ev.stopPropagation();
405
- ev.preventDefault();
406
- onContextMenu?.(ev);
407
- },
408
- className: cn(
409
- isOpen ? "context-menu-active" : null,
410
- className
411
- ),
412
- style: {
413
- top: position?.y,
414
- left: position?.x
415
- },
416
- ...p
417
- }
418
- );
419
- }
420
-
421
- // src/components/ContextMenu/ContextMenu.ts
422
- var ContextMenu = Object.assign(ContextMenuRoot, {
423
- Content: ContextMenuContent
424
- });
425
-
426
- // src/components/Drawer/DrawerBody.tsx
427
- import { motion as motion2 } from "framer-motion";
428
- import { use as use8, useEffect as useEffect5, useRef as useRef3 } from "react";
429
-
430
- // src/components/Drawer/DrawerContext.ts
431
- import { createContext as createContext5 } from "react";
432
- var DrawerContext = createContext5({});
433
-
434
- // src/components/Drawer/DrawerBody.tsx
435
- import { jsx as jsx14 } from "react/jsx-runtime";
436
- function DrawerBody({ position, dir, children, ...p }) {
437
- const { isOpen } = use8(DrawerContext);
438
- const bodyRef = useRef3(null);
439
- useEffect5(() => {
440
- if (isOpen) {
441
- const indexElement = bodyRef.current?.querySelector("[data-drawer='index']");
442
- indexElement?.focus();
443
- }
444
- ;
445
- }, [isOpen]);
446
- const currentDir = dir || document.documentElement.getAttribute("dir") || "ltr";
447
- const currentPosition = position || (currentDir === "ltr" ? "left" : "right");
448
- const direction = ["right", "left"].includes(currentPosition) ? "y" : "x";
449
- const width = direction === "y" ? "clamp(300px,30%,30%)" : void 0;
450
- const height = direction === "y" ? void 0 : "50%";
451
- return /* @__PURE__ */ jsx14(
452
- motion2.div,
453
- {
454
- ref: bodyRef,
455
- onClick: (ev) => ev.stopPropagation(),
456
- initial: direction === "y" ? { x: currentPosition === "left" ? "-100%" : "100%" } : { y: currentPosition === "top" ? "-100%" : "100%" },
457
- animate: { y: 0, x: 0 },
458
- exit: direction === "y" ? { x: currentPosition === "left" ? "-100%" : "100%" } : { y: currentPosition === "top" ? "-100%" : "100%" },
459
- style: {
460
- width,
461
- height,
462
- ...currentPosition === "top" ? { top: 0, left: 0, right: 0 } : currentPosition === "right" ? { top: 0, bottom: 0, right: 0 } : currentPosition === "bottom" ? { bottom: 0, left: 0, right: 0 } : { top: 0, bottom: 0, left: 0 }
463
- },
464
- transition: { ease: "easeInOut" },
465
- ...p,
466
- children
467
- }
468
- );
469
- }
470
-
471
- // src/components/Drawer/DrawerRoot.tsx
472
- import { useState as useState5, useEffect as useEffect6 } from "react";
473
- import { jsx as jsx15 } from "react/jsx-runtime";
474
- function DrawerRoot({ children }) {
475
- const [isOpen, setOpen] = useState5(false);
476
- useEffect6(() => {
477
- const handleEscape = (ev) => {
478
- if (ev.key === "Escape") {
479
- setOpen(false);
480
- }
481
- ;
482
- };
483
- document.addEventListener("keydown", handleEscape);
484
- return () => {
485
- document.removeEventListener("keydown", handleEscape);
486
- document.body.style.overflow = "unset";
487
- };
488
- }, []);
489
- useEffect6(() => {
490
- const scrollbarWidth = getBrowserScrollbarWith();
491
- if (isOpen) {
492
- document.body.style.overflow = "hidden";
493
- document.body.style.paddingRight = `${scrollbarWidth}px`;
494
- } else {
495
- document.body.style.overflow = "unset";
496
- document.body.style.paddingRight = "0px";
497
- }
498
- ;
499
- }, [isOpen]);
500
- return /* @__PURE__ */ jsx15(DrawerContext, { value: { isOpen, setOpen }, children });
501
- }
502
-
503
- // src/components/Drawer/DrawerPortal.tsx
504
- import { use as use9 } from "react";
505
- import { motion as motion3, AnimatePresence as AnimatePresence2 } from "framer-motion";
506
-
507
- // src/components/Portal/Portal.tsx
508
- import { createPortal } from "react-dom";
509
- import { Fragment, jsx as jsx16 } from "react/jsx-runtime";
510
- function Portal({ children, container }) {
511
- return createPortal(
512
- /* @__PURE__ */ jsx16(Fragment, { children }),
513
- container || document.body
514
- );
515
- }
516
-
517
- // src/components/Drawer/DrawerPortal.tsx
518
- import { jsx as jsx17 } from "react/jsx-runtime";
519
- function DrawerPortal({ onClick, ...p }) {
520
- const { isOpen, setOpen } = use9(DrawerContext);
521
- return /* @__PURE__ */ jsx17(ClientOnly, { children: /* @__PURE__ */ jsx17(Portal, { children: /* @__PURE__ */ jsx17(AnimatePresence2, { children: isOpen ? /* @__PURE__ */ jsx17(
522
- motion3.div,
523
- {
524
- initial: { opacity: 0 },
525
- animate: { opacity: 1 },
526
- exit: { opacity: 0 },
527
- onClick: (ev) => {
528
- onClick?.(ev);
529
- setOpen(false);
530
- },
531
- ...p
532
- }
533
- ) : null }) }) });
534
- }
535
-
536
- // src/components/Drawer/DrawerToggle.tsx
537
- import { use as use10 } from "react";
538
- import { jsx as jsx18 } from "react/jsx-runtime";
539
- function DrawerToggle({ onClick, ...props }) {
540
- const { setOpen } = use10(DrawerContext);
541
- return /* @__PURE__ */ jsx18(
542
- "button",
543
- {
544
- onClick: (ev) => {
545
- onClick?.(ev);
546
- setOpen((prev) => !prev);
547
- },
548
- ...props
549
- }
550
- );
551
- }
552
-
553
- // src/components/Drawer/Drawer.ts
554
- var Drawer = Object.assign(DrawerRoot, {
555
- Toggle: DrawerToggle,
556
- Portal: DrawerPortal,
557
- Body: DrawerBody
558
- });
559
-
560
- // src/components/LoaderLink/LoaderLink.tsx
561
- import { useLinkStatus } from "next/link";
562
- function LoaderLink({ loader, children }) {
563
- const { pending } = useLinkStatus();
564
- return pending ? loader : children;
565
- }
566
-
567
- // src/components/Modal/ModalRoot.tsx
568
- import { useState as useState6, useEffect as useEffect7 } from "react";
569
-
570
- // src/components/Modal/ModalContext.ts
571
- import { createContext as createContext6 } from "react";
572
- var ModalContext = createContext6({});
573
-
574
- // src/components/Modal/ModalRoot.tsx
575
- import { jsx as jsx19 } from "react/jsx-runtime";
576
- function ModalRoot({ children, defaultOpen = false }) {
577
- const [isOpen, setOpen] = useState6(defaultOpen);
578
- useEffect7(() => {
579
- const handleEscape = (e) => {
580
- if (e.key === "Escape") {
581
- setOpen(false);
582
- }
583
- ;
584
- };
585
- document.addEventListener("keydown", handleEscape);
586
- return () => {
587
- document.removeEventListener("keydown", handleEscape);
588
- document.body.style.overflow = "unset";
589
- };
590
- }, []);
591
- useEffect7(() => {
592
- const scrollbarWidth = getBrowserScrollbarWith();
593
- if (isOpen) {
594
- document.body.style.overflow = "hidden";
595
- document.body.style.paddingRight = `${scrollbarWidth}px`;
596
- } else {
597
- document.body.style.overflow = "unset";
598
- document.body.style.paddingRight = "0px";
599
- }
600
- ;
601
- }, [isOpen]);
602
- return /* @__PURE__ */ jsx19(ModalContext, { value: { isOpen, setOpen }, children });
603
- }
604
-
605
- // src/components/Modal/ModalBody.tsx
606
- import { use as use11, useEffect as useEffect8, useRef as useRef4 } from "react";
607
- import { AnimatePresence as AnimatePresence3, motion as motion4 } from "framer-motion";
608
- import { jsx as jsx20 } from "react/jsx-runtime";
609
- function ModalBody({ onClick, ...props }) {
610
- const { isOpen } = use11(ModalContext);
611
- const contentRef = useRef4(null);
612
- useEffect8(() => {
613
- if (isOpen) {
614
- const indexElement = contentRef.current?.querySelector("[data-modal='index']");
615
- indexElement?.focus();
616
- }
617
- ;
618
- }, [isOpen]);
619
- return /* @__PURE__ */ jsx20(AnimatePresence3, { children: isOpen ? /* @__PURE__ */ jsx20(
620
- motion4.div,
621
- {
622
- ref: contentRef,
623
- initial: { opacity: 0, scale: 0.9 },
624
- animate: { opacity: 1, scale: 1 },
625
- exit: { opacity: 0, scale: 0.9 },
626
- transition: { ease: "easeInOut" },
627
- onClick: (ev) => {
628
- onClick?.(ev);
629
- ev.stopPropagation();
630
- },
631
- ...props
632
- }
633
- ) : null });
634
- }
635
-
636
- // src/components/Modal/ModalHeader.tsx
637
- import { jsx as jsx21 } from "react/jsx-runtime";
638
- function ModalHeader(p) {
639
- return /* @__PURE__ */ jsx21("div", { ...p });
640
- }
641
-
642
- // src/components/Modal/ModalPortal.tsx
643
- import { use as use12 } from "react";
644
- import { motion as motion5, AnimatePresence as AnimatePresence4 } from "framer-motion";
645
- import { jsx as jsx22 } from "react/jsx-runtime";
646
- function ModalPortal({ onClick, ...p }) {
647
- const { isOpen, setOpen } = use12(ModalContext);
648
- return /* @__PURE__ */ jsx22(ClientOnly, { children: /* @__PURE__ */ jsx22(Portal, { children: /* @__PURE__ */ jsx22(AnimatePresence4, { children: isOpen ? /* @__PURE__ */ jsx22(
649
- motion5.div,
650
- {
651
- initial: { opacity: 0 },
652
- animate: { opacity: 1 },
653
- exit: { opacity: 0 },
654
- onClick: (ev) => {
655
- onClick?.(ev);
656
- setOpen(false);
657
- },
658
- ...p
659
- }
660
- ) : null }) }) });
661
- }
662
-
663
- // src/components/Modal/ModalTrigger.tsx
664
- import { use as use13 } from "react";
665
- import { jsx as jsx23 } from "react/jsx-runtime";
666
- function ModalToggle({ onClick, ...props }) {
667
- const { setOpen } = use13(ModalContext);
668
- return /* @__PURE__ */ jsx23(
669
- "button",
670
- {
671
- onClick: (ev) => {
672
- onClick?.(ev);
673
- setOpen((prev) => !prev);
674
- },
675
- ...props
676
- }
677
- );
678
- }
679
-
680
- // src/components/Modal/ModalContent.tsx
681
- import { jsx as jsx24 } from "react/jsx-runtime";
682
- function ModalContent(p) {
683
- return /* @__PURE__ */ jsx24("div", { ...p });
684
- }
685
-
686
- // src/components/Modal/Modal.ts
687
- var Modal = Object.assign(ModalRoot, {
688
- Toggle: ModalToggle,
689
- Portal: ModalPortal,
690
- Body: ModalBody,
691
- Header: ModalHeader,
692
- Content: ModalContent
693
- });
694
-
695
- // src/components/Otp/OtpRoot.tsx
696
- import { useEffect as useEffect9, useRef as useRef5 } from "react";
697
-
698
- // src/components/Otp/OtpContext.ts
699
- import { createContext as createContext7 } from "react";
700
- var OtpContext = createContext7({
701
- getInputsValue: () => ""
702
- });
703
-
704
- // src/components/Otp/OtpRoot.tsx
705
- import { jsx as jsx25 } from "react/jsx-runtime";
706
- function OtpRoot(p) {
707
- const inputs = useRef5([]);
708
- useEffect9(() => {
709
- inputs.current[0]?.focus();
710
- }, []);
711
- const getInputsValue = () => {
712
- return inputs?.current.map((input) => input?.value || "").join("") || "";
713
- };
714
- return /* @__PURE__ */ jsx25(OtpContext, { value: { inputs, getInputsValue }, children: /* @__PURE__ */ jsx25("div", { ...p }) });
715
- }
716
-
717
- // src/components/Otp/OtpInputs.tsx
718
- import { use as use14 } from "react";
719
- import { jsx as jsx26 } from "react/jsx-runtime";
720
- function OtpInputs({ name, length, onLastChange, ...props }) {
721
- const { inputs, getInputsValue } = use14(OtpContext);
722
- const handlePaste = (ev, startIndex) => {
723
- ev.preventDefault();
724
- const pastedData = ev.clipboardData.getData("text").replace(/\s/g, "");
725
- if (!pastedData) return;
726
- for (let i = 0; i < pastedData.length; i++) {
727
- const inputIndex = startIndex + i;
728
- if (inputIndex >= length) break;
729
- const input = inputs?.current[inputIndex];
730
- const indexedPastedData = pastedData[i];
731
- if (input && indexedPastedData) {
732
- input.value = indexedPastedData;
733
- }
734
- }
735
- const nextIndex = Math.min(startIndex + pastedData.length, length - 1);
736
- inputs?.current[nextIndex]?.focus();
737
- const otpValue = getInputsValue();
738
- if (otpValue.length === length) {
739
- onLastChange?.(otpValue);
740
- }
741
- };
742
- const handleInputChange = (value, index) => {
743
- if (value) {
744
- const currentInput = inputs?.current[index];
745
- const currentValue = currentInput?.value[currentInput.value.length - 1];
746
- if (currentValue) {
747
- currentInput.value = currentValue;
748
- }
749
- const nextInput = inputs?.current[index + 1];
750
- if (nextInput) {
751
- nextInput.value = "";
752
- nextInput.focus();
753
- return;
754
- }
755
- onLastChange?.(getInputsValue());
756
- }
757
- };
758
- const handleBackspace = (e, index) => {
759
- if (e.key === "Backspace" && !e.currentTarget.value && index > 0) {
760
- inputs?.current[index - 1]?.focus();
761
- }
762
- };
763
- return Array.from({ length }).map(
764
- (_, index) => /* @__PURE__ */ jsx26(
765
- "input",
766
- {
767
- autoComplete: "off",
768
- name: `${name || "otp"}-${index}`,
769
- onPaste: (ev) => handlePaste(ev, index),
770
- onKeyDown: (ev) => handleBackspace(ev, index),
771
- onChange: (ev) => handleInputChange(ev.target.value, index),
772
- ref: (el) => {
773
- if (inputs) {
774
- inputs.current[index] = el;
775
- }
776
- },
777
- ...props
778
- },
779
- index
780
- )
781
- );
782
- }
783
-
784
- // src/components/Otp/OtpHiddenInput.tsx
785
- import { use as use15 } from "react";
786
- import { jsx as jsx27 } from "react/jsx-runtime";
787
- function OtpHiddenInput({ name, ...p }) {
788
- const { getInputsValue } = use15(OtpContext);
789
- return /* @__PURE__ */ jsx27("input", { type: "hidden", tabIndex: -1, name: name || "otp", value: getInputsValue(), ...p });
790
- }
791
-
792
- // src/components/Otp/Otp.ts
793
- var Otp = Object.assign(OtpRoot, {
794
- Inputs: OtpInputs,
795
- HiddenInput: OtpHiddenInput
796
- });
797
-
798
- // src/components/Pagination/PaginationCounts.tsx
799
- import { use as use16 } from "react";
800
-
801
- // src/components/Pagination/PaginationContext.tsx
802
- import { createContext as createContext8 } from "react";
803
- var PaginationContext = createContext8({});
804
-
805
- // src/components/Pagination/PaginationCounts.tsx
806
- import { jsxs as jsxs2 } from "react/jsx-runtime";
807
- function PaginationCounts(props) {
808
- const { page, pageLength } = use16(PaginationContext);
809
- return /* @__PURE__ */ jsxs2("p", { ...props, children: [
810
- "Page ",
811
- page,
812
- " / ",
813
- pageLength
814
- ] });
815
- }
816
-
817
- // src/components/Pagination/PaginationNextBtn.tsx
818
- import { use as use17 } from "react";
819
- import { jsx as jsx28 } from "react/jsx-runtime";
820
- function PaginationNextBtn({ onClick, disabled, ...p }) {
821
- const { page, pageLength, nextPage } = use17(PaginationContext);
822
- return /* @__PURE__ */ jsx28(
823
- "button",
824
- {
825
- disabled: disabled || page === pageLength,
826
- onClick: (ev) => {
827
- onClick?.(ev);
828
- nextPage();
829
- },
830
- ...p
831
- }
832
- );
833
- }
834
-
835
- // src/components/Pagination/PaginationPrevBtn.tsx
836
- import { use as use18 } from "react";
837
- import { jsx as jsx29 } from "react/jsx-runtime";
838
- function PaginationPrevBtn({ onClick, disabled, ...p }) {
839
- const { page, prevPage } = use18(PaginationContext);
840
- return /* @__PURE__ */ jsx29(
841
- "button",
842
- {
843
- disabled: disabled || page === 1,
844
- onClick: (ev) => {
845
- onClick?.(ev);
846
- prevPage();
847
- },
848
- ...p
849
- }
850
- );
851
- }
852
-
853
- // src/components/Pagination/PaginationStateRoot.tsx
854
- import { useState as useState7 } from "react";
855
- import { jsx as jsx30 } from "react/jsx-runtime";
856
- function PaginationStateRoot({ pageLength, children }) {
857
- const [page, setPage] = useState7(1);
858
- const nextPage = () => setPage((prev) => prev < pageLength ? prev + 1 : prev);
859
- const prevPage = () => setPage((prev) => prev > 1 ? prev - 1 : prev);
860
- return /* @__PURE__ */ jsx30(PaginationContext.Provider, { value: { page, pageLength, nextPage, prevPage }, children });
861
- }
862
-
863
- // src/components/Pagination/PaginationSearchParamsRoot.tsx
864
- import { useRouter, useSearchParams } from "next/navigation";
865
- import { useEffect as useEffect10, useState as useState8 } from "react";
866
- import { jsx as jsx31 } from "react/jsx-runtime";
867
- function PaginationSearchParamsRoot({ pageKey, pageLength, children }) {
868
- const router = useRouter();
869
- const searchParams = useSearchParams();
870
- const [currentPage, setCurrentPage] = useState8(1);
871
- useEffect10(() => {
872
- setCurrentPage(+(searchParams.get(pageKey || "page") || "1"));
873
- }, [pageKey, searchParams]);
874
- const pushRouter = (page) => {
875
- const params = new URLSearchParams(searchParams.toString());
876
- params.set(pageKey || "page", page.toString());
877
- router.push("?" + params.toString());
878
- };
879
- const nextPage = () => {
880
- if (currentPage < pageLength) {
881
- pushRouter(currentPage + 1);
882
- }
883
- };
884
- const prevPage = () => {
885
- if (currentPage > 1) {
886
- pushRouter(currentPage - 1);
887
- }
888
- };
889
- return /* @__PURE__ */ jsx31(PaginationContext.Provider, { value: { page: currentPage, pageLength, nextPage, prevPage }, children });
890
- }
891
-
892
- // src/components/Pagination/Pagination.ts
893
- var baseComponents = {
894
- Counts: PaginationCounts,
895
- NextBtn: PaginationNextBtn,
896
- PrevBtn: PaginationPrevBtn
897
- };
898
- var PaginationWithState = Object.assign(PaginationStateRoot, baseComponents);
899
- var PaginationWithSearchParams = Object.assign(PaginationSearchParamsRoot, baseComponents);
900
-
901
- // src/components/PasswordInput/PasswordInputRoot.tsx
902
- import { useState as useState9 } from "react";
903
-
904
- // src/components/PasswordInput/PasswordInputContext.tsx
905
- import { createContext as createContext9 } from "react";
906
- var PasswordInputContext = createContext9({});
907
-
908
- // src/components/PasswordInput/PasswordInputRoot.tsx
909
- import { jsx as jsx32 } from "react/jsx-runtime";
910
- function PasswordInputRoot(props) {
911
- const [isVisible, setIsVisible] = useState9(false);
912
- return /* @__PURE__ */ jsx32(PasswordInputContext, { value: { isVisible, setIsVisible }, children: /* @__PURE__ */ jsx32("label", { ...props }) });
913
- }
914
-
915
- // src/components/PasswordInput/PasswordInputField.tsx
916
- import { use as use19 } from "react";
917
- import { jsx as jsx33 } from "react/jsx-runtime";
918
- function PasswordInputField(props) {
919
- const { isVisible } = use19(PasswordInputContext);
920
- return /* @__PURE__ */ jsx33("input", { type: isVisible ? "text" : "password", ...props });
921
- }
922
-
923
- // src/components/PasswordInput/PasswordInputToggle.tsx
924
- import { use as use20 } from "react";
925
- import { jsx as jsx34 } from "react/jsx-runtime";
926
- function PasswordInputToggle({ visibleChildren, onClick, children, ...props }) {
927
- const { isVisible, setIsVisible } = use20(PasswordInputContext);
928
- return /* @__PURE__ */ jsx34(
929
- "button",
930
- {
931
- type: "button",
932
- onClick: (ev) => {
933
- setIsVisible((prev) => !prev);
934
- onClick?.(ev);
935
- },
936
- ...props,
937
- children: isVisible ? visibleChildren : children
938
- }
939
- );
940
- }
941
-
942
- // src/components/PasswordInput/PasswordInput.ts
943
- var PasswordInput = Object.assign(PasswordInputRoot, {
944
- Field: PasswordInputField,
945
- Toggle: PasswordInputToggle
946
- });
947
-
948
- // src/components/Popover/PopoverBody.tsx
949
- import { use as use21 } from "react";
950
-
951
- // src/components/Popover/PopoverContext.ts
952
- import { createContext as createContext10 } from "react";
953
- var PopoverContext = createContext10({});
954
-
955
- // src/components/Popover/PopoverBody.tsx
956
- import { jsx as jsx35 } from "react/jsx-runtime";
957
- function PopoverBody({ preventClose, onClick, ...p }) {
958
- const { bodyRef, isOpen } = use21(PopoverContext);
959
- return isOpen ? /* @__PURE__ */ jsx35(
960
- "div",
961
- {
962
- ref: bodyRef,
963
- "data-state": isOpen ? "active" : "inactive",
964
- onClick: (ev) => {
965
- if (preventClose) {
966
- ev.stopPropagation();
967
- }
968
- onClick?.(ev);
969
- },
970
- ...p
971
- }
972
- ) : null;
973
- }
974
-
975
- // src/components/Popover/PopoverRoot.tsx
976
- import { useEffect as useEffect11, useRef as useRef6, useState as useState10 } from "react";
977
- import { jsx as jsx36 } from "react/jsx-runtime";
978
- function PopoverRoot({ mode = "click", accessHorizontalArrows, onKeyDown, onMouseEnter, onMouseLeave, ...p }) {
979
- const [isOpen, setOpen] = useState10(false);
980
- const toggleRef = useRef6(null);
981
- const bodyRef = useRef6(null);
982
- useEffect11(() => {
983
- const closeHandler = () => {
984
- setOpen(false);
985
- };
986
- window.addEventListener("click", closeHandler);
987
- return () => window.removeEventListener("click", closeHandler);
988
- }, []);
989
- useEffect11(() => {
990
- if (isOpen) {
991
- selectFirstMenuChild();
992
- }
993
- }, [isOpen]);
994
- const selectFirstMenuChild = () => {
995
- if (!bodyRef.current) {
996
- return;
997
- }
998
- const children = selectAccessibleChildren(bodyRef.current);
999
- const firstChild = children[0];
1000
- if (!firstChild) {
1001
- return;
1002
- }
1003
- firstChild.focus();
1004
- };
1005
- const handleKeyDown = (ev) => {
1006
- if (!accessHorizontalArrows) {
1007
- return null;
1008
- }
1009
- if (ev.key === "ArrowRight") {
1010
- if (accessHorizontalArrows === "ArrowRight") {
1011
- setOpen(true);
1012
- selectFirstMenuChild();
1013
- } else {
1014
- setOpen(false);
1015
- toggleRef.current?.focus();
1016
- }
1017
- }
1018
- if (ev.key === "ArrowLeft") {
1019
- if (accessHorizontalArrows === "ArrowLeft") {
1020
- setOpen(true);
1021
- selectFirstMenuChild();
1022
- } else {
1023
- setOpen(false);
1024
- toggleRef.current?.focus();
1025
- }
1026
- }
1027
- };
1028
- return /* @__PURE__ */ jsx36(PopoverContext, { value: { isOpen, setOpen, toggleRef, bodyRef, mode }, children: /* @__PURE__ */ jsx36(
1029
- "div",
1030
- {
1031
- "data-state": isOpen ? "active" : "inactive",
1032
- onKeyDown: (ev) => {
1033
- onKeyDown?.(ev);
1034
- handleKeyDown(ev);
1035
- },
1036
- onMouseEnter: (ev) => {
1037
- onMouseEnter?.(ev);
1038
- if (["hover", "both"].includes(mode)) {
1039
- ev.stopPropagation();
1040
- setOpen(true);
1041
- }
1042
- },
1043
- onMouseLeave: (ev) => {
1044
- onMouseLeave?.(ev);
1045
- if (["hover", "both"].includes(mode)) {
1046
- ev.stopPropagation();
1047
- setOpen(false);
1048
- }
1049
- },
1050
- ...p
1051
- }
1052
- ) });
1053
- }
1054
-
1055
- // src/components/Popover/PopoverToggle.tsx
1056
- import { use as use22 } from "react";
1057
- import { jsx as jsx37 } from "react/jsx-runtime";
1058
- function PopoverToggle({ onClick, ...props }) {
1059
- const { mode, toggleRef, isOpen, setOpen } = use22(PopoverContext);
1060
- return /* @__PURE__ */ jsx37(
1061
- "button",
1062
- {
1063
- ref: toggleRef,
1064
- "data-state": isOpen ? "active" : "inactive",
1065
- onClick: (ev) => {
1066
- onClick?.(ev);
1067
- ev.stopPropagation();
1068
- if (["click", "both"].includes(mode)) {
1069
- setOpen((prev) => !prev);
1070
- }
1071
- },
1072
- ...props
1073
- }
1074
- );
1075
- }
1076
-
1077
- // src/components/Popover/Popover.ts
1078
- var Popover = Object.assign(PopoverRoot, {
1079
- Toggle: PopoverToggle,
1080
- Body: PopoverBody
1081
- });
1082
-
1083
- // src/components/Progress/ProgressBar.tsx
1084
- import { use as use23 } from "react";
1085
- import { motion as motion6 } from "framer-motion";
1086
-
1087
- // src/components/Progress/ProgressContext.ts
1088
- import { createContext as createContext11 } from "react";
1089
- var ProgressContext = createContext11({});
1090
-
1091
- // src/components/Progress/ProgressBar.tsx
1092
- import { jsx as jsx38, jsxs as jsxs3 } from "react/jsx-runtime";
1093
- function ProgressBar({ duration, children, ...p }) {
1094
- const { value, maxValue } = use23(ProgressContext);
1095
- const percentage = Math.min(100, Math.max(0, value / maxValue * 100));
1096
- return /* @__PURE__ */ jsx38(
1097
- motion6.div,
1098
- {
1099
- initial: { width: 0 },
1100
- whileInView: { width: `${percentage}%` },
1101
- transition: { duration: duration || 3 },
1102
- ...p,
1103
- children: children || /* @__PURE__ */ jsxs3("span", { className: "text-xs", children: [
1104
- percentage,
1105
- "%"
1106
- ] })
1107
- }
1108
- );
1109
- }
1110
-
1111
- // src/components/Progress/ProgressRoot.tsx
1112
- import { jsx as jsx39 } from "react/jsx-runtime";
1113
- function ProgressRoot({ value, maxValue = 100, ...p }) {
1114
- return /* @__PURE__ */ jsx39(ProgressContext, { value: { value, maxValue }, children: /* @__PURE__ */ jsx39("div", { ...p }) });
1115
- }
1116
-
1117
- // src/components/Progress/Progress.ts
1118
- var Progress = Object.assign(ProgressRoot, {
1119
- Bar: ProgressBar
1120
- });
1121
-
1122
- // src/components/QrCode/QrCode.tsx
1123
- import QRCode from "qrcode";
1124
- import { useEffect as useEffect12, useRef as useRef7 } from "react";
1125
- import { jsx as jsx40 } from "react/jsx-runtime";
1126
- function QrCode({ value, options, ...props }) {
1127
- const canvasRef = useRef7(null);
1128
- useEffect12(() => {
1129
- console.log(value);
1130
- QRCode.toCanvas(canvasRef.current, value, options, function(error) {
1131
- if (error) console.error(error);
1132
- });
1133
- }, [value, options]);
1134
- return /* @__PURE__ */ jsx40("canvas", { ref: canvasRef, ...props });
1135
- }
1136
-
1137
- // src/components/Rating/RatingRoot.tsx
1138
- import { useState as useState11 } from "react";
1139
-
1140
- // src/components/Rating/RatingContext.ts
1141
- import { createContext as createContext12 } from "react";
1142
- var RatingContext = createContext12({});
1143
-
1144
- // src/components/Rating/RatingRoot.tsx
1145
- import { jsx as jsx41 } from "react/jsx-runtime";
1146
- var RatingRoot = (p) => {
1147
- const [hoverValue, setHoverValue] = useState11(null);
1148
- return /* @__PURE__ */ jsx41(RatingContext, { value: { hoverValue, setHoverValue }, children: /* @__PURE__ */ jsx41(
1149
- "div",
1150
- {
1151
- onMouseLeave: () => setHoverValue(null),
1152
- ...p
1153
- }
1154
- ) });
1155
- };
1156
-
1157
- // src/components/Rating/RatingItems.tsx
1158
- import { use as use24 } from "react";
1159
- import { jsx as jsx42 } from "react/jsx-runtime";
1160
- function RatingItems({ count, value, onValueChange, element, activeElement, ...p }) {
1161
- const { hoverValue, setHoverValue } = use24(RatingContext);
1162
- const displayValue = hoverValue !== null ? hoverValue : value;
1163
- return Array.from({ length: count }).map((_, index) => {
1164
- const itemValue = index + 1;
1165
- const isActive = itemValue <= displayValue;
1166
- return /* @__PURE__ */ jsx42(
1167
- "button",
1168
- {
1169
- role: "radio",
1170
- type: "button",
1171
- "aria-checked": itemValue === value,
1172
- onClick: () => onValueChange(itemValue),
1173
- onMouseEnter: () => setHoverValue(itemValue),
1174
- "aria-label": `${itemValue} out of ${count} stars`,
1175
- ...p,
1176
- children: isActive ? activeElement : element
1177
- },
1178
- index
1179
- );
1180
- });
1181
- }
1182
-
1183
- // src/components/Rating/Rating.ts
1184
- var Rating = Object.assign(RatingRoot, {
1185
- Items: RatingItems
1186
- });
1187
-
1188
- // src/components/Sheet/SheetBody.tsx
1189
- import { use as use25 } from "react";
1190
- import { motion as motion7 } from "framer-motion";
1191
-
1192
- // src/components/Sheet/SheetContext.ts
1193
- import { createContext as createContext13 } from "react";
1194
- var SheetContext = createContext13({});
1195
-
1196
- // src/components/Sheet/SheetBody.tsx
1197
- import { jsx as jsx43 } from "react/jsx-runtime";
1198
- function SheetBody(p) {
1199
- const { controls, y, closeHandler: handleClose } = use25(SheetContext);
1200
- return /* @__PURE__ */ jsx43(
1201
- motion7.div,
1202
- {
1203
- id: "sheet",
1204
- onClick: (ev) => ev.stopPropagation(),
1205
- initial: { y: "100%" },
1206
- animate: { y: "0%" },
1207
- exit: { y: "100%" },
1208
- style: { y },
1209
- drag: "y",
1210
- dragControls: controls,
1211
- dragListener: false,
1212
- transition: {
1213
- ease: "easeInOut"
1214
- },
1215
- onDragEnd: () => {
1216
- if ((y?.get() || 0) >= 100) {
1217
- handleClose();
1218
- }
1219
- },
1220
- dragConstraints: {
1221
- top: 0,
1222
- bottom: 0
1223
- },
1224
- dragElastic: {
1225
- top: 0,
1226
- bottom: 0.5
1227
- },
1228
- ...p
1229
- }
1230
- );
1231
- }
1232
-
1233
- // src/components/Sheet/SheetRoot.tsx
1234
- import { useEffect as useEffect13, useState as useState12 } from "react";
1235
- import {
1236
- useDragControls,
1237
- useMotionValue,
1238
- useAnimate
1239
- } from "framer-motion";
1240
- import { jsx as jsx44 } from "react/jsx-runtime";
1241
- function SheetRoot({ children }) {
1242
- const y = useMotionValue(0);
1243
- const controls = useDragControls();
1244
- const [scope, animate] = useAnimate();
1245
- const [isOpen, setOpen] = useState12(false);
1246
- useEffect13(() => {
1247
- const bodyElem = document.body;
1248
- const removeOverflow = () => {
1249
- bodyElem.style.overflow = "unset";
1250
- };
1251
- if (isOpen) {
1252
- bodyElem.style.overflow = "hidden";
1253
- } else {
1254
- removeOverflow();
1255
- }
1256
- return () => removeOverflow();
1257
- }, [isOpen]);
1258
- const closeHandler = async () => {
1259
- animate(scope.current, {
1260
- opacity: [1, 0]
1261
- });
1262
- const yStart = typeof y.get() === "number" ? y.get() : 0;
1263
- await animate("#sheet", {
1264
- y: [yStart, "100%"]
1265
- });
1266
- setOpen(false);
1267
- };
1268
- return /* @__PURE__ */ jsx44(SheetContext, { value: { isOpen, setOpen, closeHandler, scope, controls, y }, children });
1269
- }
1270
-
1271
- // src/components/Sheet/SheetHeader.tsx
1272
- import { use as use26 } from "react";
1273
- import { jsx as jsx45 } from "react/jsx-runtime";
1274
- function SheetHeader({ onPointerDown, ...p }) {
1275
- const { controls } = use26(SheetContext);
1276
- return /* @__PURE__ */ jsx45(
1277
- "div",
1278
- {
1279
- onPointerDown: (ev) => {
1280
- controls?.start(ev);
1281
- onPointerDown?.(ev);
1282
- },
1283
- ...p
1284
- }
1285
- );
1286
- }
1287
-
1288
- // src/components/Sheet/SheetPortal.tsx
1289
- import { use as use27 } from "react";
1290
- import { AnimatePresence as AnimatePresence5, motion as motion8 } from "framer-motion";
1291
- import { jsx as jsx46 } from "react/jsx-runtime";
1292
- function SheetPortal(p) {
1293
- const { isOpen, closeHandler: handleClose, scope } = use27(SheetContext);
1294
- return /* @__PURE__ */ jsx46(ClientOnly, { children: /* @__PURE__ */ jsx46(Portal, { children: /* @__PURE__ */ jsx46(AnimatePresence5, { children: isOpen ? /* @__PURE__ */ jsx46(
1295
- motion8.div,
1296
- {
1297
- ref: scope,
1298
- onClick: handleClose,
1299
- initial: { opacity: 0 },
1300
- animate: { opacity: 1 },
1301
- exit: { opacity: 0 },
1302
- ...p
1303
- }
1304
- ) : null }) }) });
1305
- }
1306
-
1307
- // src/components/Sheet/SheetToggle.tsx
1308
- import { use as use28 } from "react";
1309
- import { jsx as jsx47 } from "react/jsx-runtime";
1310
- function SheetToggle({ onClick, ...props }) {
1311
- const { setOpen } = use28(SheetContext);
1312
- return /* @__PURE__ */ jsx47(
1313
- "button",
1314
- {
1315
- onClick: (ev) => {
1316
- onClick?.(ev);
1317
- setOpen((prev) => !prev);
1318
- },
1319
- ...props
1320
- }
1321
- );
1322
- }
1323
-
1324
- // src/components/Sheet/SheetContent.tsx
1325
- import { jsx as jsx48 } from "react/jsx-runtime";
1326
- function SheetContent(p) {
1327
- return /* @__PURE__ */ jsx48("div", { ...p });
1328
- }
1329
-
1330
- // src/components/Sheet/Sheet.ts
1331
- var Sheet = Object.assign(SheetRoot, {
1332
- Portal: SheetPortal,
1333
- Body: SheetBody,
1334
- Header: SheetHeader,
1335
- Content: SheetContent,
1336
- Toggle: SheetToggle
1337
- });
1338
-
1339
- // src/components/ShowMore/ShowMoreRoot.tsx
1340
- import { useEffect as useEffect14, useRef as useRef8, useState as useState13 } from "react";
1341
-
1342
- // src/components/ShowMore/ShowMoreContext.ts
1343
- import { createContext as createContext14 } from "react";
1344
- var ShowMoreContext = createContext14({});
1345
-
1346
- // src/components/ShowMore/ShowMoreRoot.tsx
1347
- import { jsx as jsx49 } from "react/jsx-runtime";
1348
- function ShowMoreRoot({ maxLines, defaultExpanded = false, style, ...p }) {
1349
- const [shouldShowMore, setShouldShowMore] = useState13(false);
1350
- const [isShowMore, setIsShowMore] = useState13(defaultExpanded);
1351
- const [maxHeight, setMaxHeight] = useState13(0);
1352
- const contentRef = useRef8(null);
1353
- useEffect14(() => {
1354
- if (contentRef.current) {
1355
- const element = contentRef.current;
1356
- const lineHeight = Number.parseInt(window.getComputedStyle(element).lineHeight);
1357
- const maxHeight2 = lineHeight * (maxLines || 3);
1358
- const actualHeight = element.scrollHeight;
1359
- setMaxHeight(maxHeight2);
1360
- setShouldShowMore(actualHeight > maxHeight2);
1361
- }
1362
- }, [maxLines]);
1363
- return /* @__PURE__ */ jsx49(ShowMoreContext, { value: { contentRef, isShowMore, setIsShowMore, maxHeight, shouldShowMore }, children: /* @__PURE__ */ jsx49("div", { style: { position: "relative", ...style }, ...p }) });
1364
- }
1365
-
1366
- // src/components/ShowMore/ShowMoreFade.tsx
1367
- import { use as use29 } from "react";
1368
- import { jsx as jsx50 } from "react/jsx-runtime";
1369
- function ShowMoreFade(p) {
1370
- const { shouldShowMore, isShowMore } = use29(ShowMoreContext);
1371
- return shouldShowMore && !isShowMore ? /* @__PURE__ */ jsx50("div", { ...p }) : null;
1372
- }
1373
-
1374
- // src/components/ShowMore/ShowMoreContent.tsx
1375
- import { use as use30 } from "react";
1376
- import { jsx as jsx51 } from "react/jsx-runtime";
1377
- function ShowMoreContent({ children, style, ...props }) {
1378
- const { contentRef, shouldShowMore, isShowMore, maxHeight } = use30(ShowMoreContext);
1379
- return /* @__PURE__ */ jsx51(
1380
- "div",
1381
- {
1382
- ref: contentRef,
1383
- style: {
1384
- overflow: "hidden",
1385
- transition: "all 150ms ease",
1386
- height: shouldShowMore ? isShowMore ? contentRef.current?.scrollHeight ? `${contentRef.current.scrollHeight}px` : "auto" : maxHeight : "auto",
1387
- ...style
1388
- },
1389
- ...props,
1390
- children
1391
- }
1392
- );
1393
- }
1394
-
1395
- // src/components/ShowMore/ShowMoreTrigger.tsx
1396
- import { use as use31 } from "react";
1397
- import { jsx as jsx52 } from "react/jsx-runtime";
1398
- function ShowMoreTrigger({ onClick, style, ...p }) {
1399
- const { setIsShowMore } = use31(ShowMoreContext);
1400
- return /* @__PURE__ */ jsx52(
1401
- "button",
1402
- {
1403
- style: {
1404
- position: "relative",
1405
- ...style
1406
- },
1407
- onClick: (ev) => {
1408
- onClick?.(ev);
1409
- setIsShowMore((prev) => !prev);
1410
- },
1411
- ...p
1412
- }
1413
- );
1414
- }
1415
-
1416
- // src/components/ShowMore/ShowMore.ts
1417
- var ShowMore = Object.assign(ShowMoreRoot, {
1418
- Content: ShowMoreContent,
1419
- Trigger: ShowMoreTrigger,
1420
- Fade: ShowMoreFade
1421
- });
1422
-
1423
- // src/components/Spoiler/SpoilerBlur.tsx
1424
- import { use as use32 } from "react";
1425
-
1426
- // src/components/Spoiler/SpoilerContext.ts
1427
- import { createContext as createContext15 } from "react";
1428
- var SpoilerContext = createContext15({});
1429
-
1430
- // src/components/Spoiler/SpoilerBlur.tsx
1431
- import { jsx as jsx53 } from "react/jsx-runtime";
1432
- function SpoilerBlur({ className, ...p }) {
1433
- const { isOpen } = use32(SpoilerContext);
1434
- return /* @__PURE__ */ jsx53(
1435
- "span",
1436
- {
1437
- className: cn(
1438
- isOpen ? "spoiler-active" : null,
1439
- className
1440
- ),
1441
- ...p
1442
- }
1443
- );
1444
- }
1445
-
1446
- // src/components/Spoiler/SpoilerRoot.tsx
1447
- import { useState as useState14 } from "react";
1448
- import { jsx as jsx54 } from "react/jsx-runtime";
1449
- function SpoilerRoot({ className, ...p }) {
1450
- const [isOpen, setOpen] = useState14(false);
1451
- return /* @__PURE__ */ jsx54(SpoilerContext, { value: { isOpen, setOpen }, children: /* @__PURE__ */ jsx54(
1452
- "span",
1453
- {
1454
- onClick: () => setOpen(true),
1455
- className: cn(
1456
- isOpen ? "spoiler-active" : null,
1457
- className
1458
- ),
1459
- ...p
1460
- }
1461
- ) });
1462
- }
1463
-
1464
- // src/components/Spoiler/Spoiler.ts
1465
- var Spoiler = Object.assign(SpoilerRoot, {
1466
- Blur: SpoilerBlur
1467
- });
1468
-
1469
- // src/components/Steps/StepsRender.tsx
1470
- import { use as use33 } from "react";
1471
-
1472
- // src/components/Steps/StepsContext.ts
1473
- import { createContext as createContext16 } from "react";
1474
- var StepsContext = createContext16({});
1475
-
1476
- // src/components/Steps/StepsRender.tsx
1477
- function StepsRender() {
1478
- const { step, steps } = use33(StepsContext);
1479
- return steps.find((_, index) => index + 1 === step)?.component;
1480
- }
1481
-
1482
- // src/components/Steps/StepsPrevBtn.tsx
1483
- import { use as use34 } from "react";
1484
- import { jsx as jsx55 } from "react/jsx-runtime";
1485
- function StepsPrevBtn({ onClick, disabled, ...p }) {
1486
- const { step, prevStep } = use34(StepsContext);
1487
- return /* @__PURE__ */ jsx55(
1488
- "button",
1489
- {
1490
- disabled: disabled || step === 1,
1491
- onClick: (ev) => {
1492
- onClick?.(ev);
1493
- prevStep();
1494
- },
1495
- ...p
1496
- }
1497
- );
1498
- }
1499
-
1500
- // src/components/Steps/StepsNextBtn.tsx
1501
- import { use as use35 } from "react";
1502
- import { jsx as jsx56 } from "react/jsx-runtime";
1503
- function StepsNextBtn({ onClick, disabled, ...p }) {
1504
- const { step, steps, nextStep } = use35(StepsContext);
1505
- return /* @__PURE__ */ jsx56(
1506
- "button",
1507
- {
1508
- disabled: disabled || step === steps.length,
1509
- onClick: (ev) => {
1510
- onClick?.(ev);
1511
- nextStep();
1512
- },
1513
- ...p
1514
- }
1515
- );
1516
- }
1517
-
1518
- // src/components/Steps/StepsIndexBtn.tsx
1519
- import { use as use36 } from "react";
1520
- import { jsx as jsx57 } from "react/jsx-runtime";
1521
- function StepsIndexBtn({ index, onClick, ...p }) {
1522
- const { step, setStep } = use36(StepsContext);
1523
- return /* @__PURE__ */ jsx57(
1524
- "button",
1525
- {
1526
- disabled: step < index,
1527
- onClick: (ev) => {
1528
- onClick?.(ev);
1529
- setStep(index);
1530
- },
1531
- ...p
1532
- }
1533
- );
1534
- }
1535
-
1536
- // src/components/Steps/StepsStateRoot.tsx
1537
- import { useState as useState15 } from "react";
1538
- import { jsx as jsx58 } from "react/jsx-runtime";
1539
- function StepsStateRoot({ children, steps }) {
1540
- const [step, setStep] = useState15(1);
1541
- const nextStep = () => setStep((prev) => prev + 1);
1542
- const prevStep = () => setStep((prev) => prev - 1);
1543
- return /* @__PURE__ */ jsx58(StepsContext.Provider, { value: { step, setStep, steps, nextStep, prevStep }, children });
1544
- }
1545
-
1546
- // src/components/Steps/StepsSearchParamsRoot.tsx
1547
- import { useRouter as useRouter2, useSearchParams as useSearchParams2 } from "next/navigation";
1548
- import { useEffect as useEffect15, useState as useState16 } from "react";
1549
- import { jsx as jsx59 } from "react/jsx-runtime";
1550
- function StepsSearchParamsRoot({ children, steps, stepKey }) {
1551
- const router = useRouter2();
1552
- const searchParams = useSearchParams2();
1553
- const [currentStep, setCurrentStep] = useState16(1);
1554
- useEffect15(() => {
1555
- setCurrentStep(+(searchParams.get(stepKey || "step") || "1"));
1556
- }, [stepKey, searchParams]);
1557
- const pushRouter = (page) => {
1558
- const params = new URLSearchParams(searchParams.toString());
1559
- params.set(stepKey || "step", page.toString());
1560
- router.push("?" + params.toString());
1561
- };
1562
- const nextStep = () => {
1563
- if (currentStep < steps.length) {
1564
- pushRouter(currentStep + 1);
1565
- }
1566
- };
1567
- const prevStep = () => {
1568
- if (currentStep > 1) {
1569
- pushRouter(currentStep - 1);
1570
- }
1571
- };
1572
- return /* @__PURE__ */ jsx59(StepsContext.Provider, { value: { step: currentStep, setStep: setCurrentStep, steps, nextStep, prevStep }, children });
1573
- }
1574
-
1575
- // src/components/Steps/Steps.ts
1576
- var baseComponents2 = {
1577
- Render: StepsRender,
1578
- IndexBtn: StepsIndexBtn,
1579
- PrevBtn: StepsPrevBtn,
1580
- NextBtn: StepsNextBtn
1581
- };
1582
- var StepsWithState = Object.assign(StepsStateRoot, baseComponents2);
1583
- var StepsWithSearchParams = Object.assign(StepsSearchParamsRoot, baseComponents2);
1584
-
1585
- // src/components/Swap/SwapItem.tsx
1586
- import { motion as motion9 } from "framer-motion";
1587
- import { jsx as jsx60 } from "react/jsx-runtime";
1588
- function SwapItem(p) {
1589
- return /* @__PURE__ */ jsx60(
1590
- motion9.span,
1591
- {
1592
- initial: { rotate: 90, opacity: 0 },
1593
- animate: { rotate: 0, opacity: 1 },
1594
- exit: { rotate: 90, opacity: 0 },
1595
- ...p
1596
- }
1597
- );
1598
- }
1599
-
1600
- // src/components/Swap/SwapRoot.tsx
1601
- import { AnimatePresence as AnimatePresence6 } from "framer-motion";
1602
- import { useState as useState17 } from "react";
1603
-
1604
- // src/components/Swap/SwapContext.ts
1605
- import { createContext as createContext17 } from "react";
1606
- var SwapContext = createContext17({});
1607
-
1608
- // src/components/Swap/SwapRoot.tsx
1609
- import { jsx as jsx61 } from "react/jsx-runtime";
1610
- function SwapRoot({ items, defaultItem, onSwap, ...p }) {
1611
- const [activeItem, setActiveItem] = useState17(defaultItem || items[1]);
1612
- const handleSwap = (newItem) => {
1613
- setActiveItem(newItem);
1614
- onSwap?.(newItem);
1615
- };
1616
- return /* @__PURE__ */ jsx61(SwapContext, { value: { items, activeItem, handleSwap }, children: /* @__PURE__ */ jsx61(AnimatePresence6, { mode: "wait", children: /* @__PURE__ */ jsx61("div", { ...p }) }) });
1617
- }
1618
-
1619
- // src/components/Swap/SwapTrigger.tsx
1620
- import { use as use37 } from "react";
1621
- import { jsx as jsx62 } from "react/jsx-runtime";
1622
- function SwapTrigger({ item, onClick, ...p }) {
1623
- const { items, activeItem, handleSwap } = use37(SwapContext);
1624
- return activeItem === item ? /* @__PURE__ */ jsx62(
1625
- "button",
1626
- {
1627
- onClick: (ev) => {
1628
- onClick?.(ev);
1629
- {
1630
- const nextIndex = items.indexOf(item) + 1 >= items.length ? 0 : items.indexOf(item) + 1;
1631
- const nextItem = items[nextIndex];
1632
- if (nextItem !== void 0) {
1633
- handleSwap(nextItem);
1634
- }
1635
- }
1636
- },
1637
- ...p
1638
- }
1639
- ) : null;
1640
- }
1641
-
1642
- // src/components/Swap/Swap.ts
1643
- var Swap = Object.assign(SwapRoot, {
1644
- Trigger: SwapTrigger,
1645
- Item: SwapItem
1646
- });
1647
-
1648
- // src/components/Tabs/TabsTab.tsx
1649
- import { use as use38 } from "react";
1650
-
1651
- // src/components/Tabs/TabsContext.ts
1652
- import { createContext as createContext18 } from "react";
1653
- var TabsContext = createContext18({
1654
- activeTab: "",
1655
- setActiveTab: () => {
1656
- }
1657
- });
1658
-
1659
- // src/components/Tabs/TabsTab.tsx
1660
- import { jsx as jsx63 } from "react/jsx-runtime";
1661
- function TabsTab({ value, onClick, ...props }) {
1662
- const { setActiveTab } = use38(TabsContext);
1663
- return /* @__PURE__ */ jsx63(
1664
- "button",
1665
- {
1666
- onClick: (ev) => {
1667
- onClick?.(ev);
1668
- setActiveTab(value);
1669
- },
1670
- ...props
1671
- }
1672
- );
1673
- }
1674
-
1675
- // src/components/Tabs/TabsList.tsx
1676
- import { jsx as jsx64 } from "react/jsx-runtime";
1677
- function TabsList(p) {
1678
- return /* @__PURE__ */ jsx64("div", { ...p });
1679
- }
1680
-
1681
- // src/components/Tabs/TabsRoot.tsx
1682
- import { jsx as jsx65 } from "react/jsx-runtime";
1683
- function TabsRoot({ activeTab, setActiveTab, children }) {
1684
- return /* @__PURE__ */ jsx65(TabsContext, { value: { activeTab, setActiveTab }, children });
1685
- }
1686
-
1687
- // src/components/Tabs/TabsPanel.tsx
1688
- import { use as use39 } from "react";
1689
- import { jsx as jsx66 } from "react/jsx-runtime";
1690
- function TabsPanel({ value, ...p }) {
1691
- const { activeTab } = use39(TabsContext);
1692
- const isActive = activeTab === value;
1693
- return isActive ? /* @__PURE__ */ jsx66("div", { ...p }) : null;
1694
- }
1695
-
1696
- // src/components/Tabs/Tabs.ts
1697
- var Tabs = Object.assign(TabsRoot, {
1698
- List: TabsList,
1699
- Tab: TabsTab,
1700
- Panel: TabsPanel
1701
- });
1702
-
1703
- // src/components/Submit/SubmitRoot.tsx
1704
- import { useFormStatus } from "react-dom";
1705
-
1706
- // src/components/Submit/SubmitContext.ts
1707
- import { createContext as createContext19 } from "react";
1708
- var SubmitContext = createContext19({});
1709
-
1710
- // src/components/Submit/SubmitRoot.tsx
1711
- import { jsx as jsx67 } from "react/jsx-runtime";
1712
- function SubmitRoot({ disabled, ...p }) {
1713
- const { pending } = useFormStatus();
1714
- return /* @__PURE__ */ jsx67(SubmitContext, { value: { pending }, children: /* @__PURE__ */ jsx67(
1715
- "button",
1716
- {
1717
- disabled: disabled || pending,
1718
- ...p
1719
- }
1720
- ) });
1721
- }
1722
-
1723
- // src/components/Submit/SubmitLoader.tsx
1724
- import { use as use40 } from "react";
1725
- function SubmitLoader({ children, loader }) {
1726
- const { pending } = use40(SubmitContext);
1727
- return pending ? loader : children;
1728
- }
1729
-
1730
- // src/components/Submit/Submit.ts
1731
- var Submit = Object.assign(SubmitRoot, {
1732
- Loader: SubmitLoader
1733
- });
1734
- export {
1735
- AccessNavigation,
1736
- Accordion,
1737
- Affix,
1738
- Breadcrumbs,
1739
- Carousel,
1740
- ClientOnly,
1741
- Clipboard,
1742
- ContextMenu,
1743
- Drawer,
1744
- LoaderLink,
1745
- Modal,
1746
- Otp,
1747
- PaginationWithSearchParams,
1748
- PaginationWithState,
1749
- PasswordInput,
1750
- Popover,
1751
- Portal,
1752
- Progress,
1753
- QrCode,
1754
- Rating,
1755
- Sheet,
1756
- ShowMore,
1757
- Spoiler,
1758
- StepsWithSearchParams,
1759
- StepsWithState,
1760
- Submit,
1761
- Swap,
1762
- Tabs
1763
- };
1764
- //# sourceMappingURL=index.js.map
1
+ export * from "./components/AccessNavigation/AccessNavigation";
2
+ export * from "./components/Accordion/Accordion";
3
+ export * from "./components/Affix/Affix";
4
+ export * from "./components/Breadcrumbs/Breadcrumbs";
5
+ export * from "./components/Carousel/Carousel";
6
+ export * from "./components/ClientOnly/ClientOnly";
7
+ export * from "./components/Clipboard/Clipboard";
8
+ export * from "./components/ContextMenu/ContextMenu";
9
+ export * from "./components/Drawer/Drawer";
10
+ export * from "./components/LoaderLink/LoaderLink";
11
+ export * from "./components/Modal/Modal";
12
+ export * from "./components/Otp/Otp";
13
+ export * from "./components/Pagination/Pagination";
14
+ export * from "./components/PasswordInput/PasswordInput";
15
+ export * from "./components/Popover/Popover";
16
+ export * from "./components/Portal/Portal";
17
+ export * from "./components/Progress/Progress";
18
+ export * from "./components/QrCode/QrCode";
19
+ export * from "./components/Rating/Rating";
20
+ export * from "./components/Sheet/Sheet";
21
+ export * from "./components/ShowMore/ShowMore";
22
+ export * from "./components/Spoiler/Spoiler";
23
+ export * from "./components/Steps/Steps";
24
+ export * from "./components/Swap/Swap";
25
+ export * from "./components/Tabs/Tabs";
26
+ export * from "./components/Submit/Submit";