@kadoui/react 1.0.0 → 1.1.2

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 (323) hide show
  1. package/README.md +1 -0
  2. package/dist/components/AccessNavigation/AccessNavigation.d.ts.map +1 -1
  3. package/dist/components/AccessNavigation/AccessNavigation.jsx +1 -1
  4. package/dist/components/Accordion/AccordionBody.d.ts +1 -1
  5. package/dist/components/Accordion/AccordionBody.d.ts.map +1 -1
  6. package/dist/components/Accordion/AccordionBody.jsx +3 -6
  7. package/dist/components/Accordion/AccordionToggle.d.ts +1 -1
  8. package/dist/components/Accordion/AccordionToggle.d.ts.map +1 -1
  9. package/dist/components/Accordion/AccordionToggle.jsx +3 -8
  10. package/dist/components/Affix/Affix.d.ts +1 -1
  11. package/dist/components/Affix/Affix.d.ts.map +1 -1
  12. package/dist/components/Affix/Affix.jsx +3 -6
  13. package/dist/components/Breadcrumbs/BreadcrumbsItem.d.ts +1 -1
  14. package/dist/components/Breadcrumbs/BreadcrumbsItem.d.ts.map +1 -1
  15. package/dist/components/Breadcrumbs/BreadcrumbsItem.jsx +2 -3
  16. package/dist/components/Breadcrumbs/BreadcrumbsRoot.d.ts +1 -1
  17. package/dist/components/Breadcrumbs/BreadcrumbsRoot.d.ts.map +1 -1
  18. package/dist/components/Breadcrumbs/BreadcrumbsRoot.jsx +2 -3
  19. package/dist/components/Carousel/Carousel.d.ts +4 -0
  20. package/dist/components/Carousel/Carousel.d.ts.map +1 -1
  21. package/dist/components/Carousel/Carousel.js +5 -1
  22. package/dist/components/Carousel/CarouselContainer.d.ts +1 -1
  23. package/dist/components/Carousel/CarouselContainer.d.ts.map +1 -1
  24. package/dist/components/Carousel/CarouselContainer.jsx +2 -3
  25. package/dist/components/Carousel/CarouselContext.d.ts +2 -0
  26. package/dist/components/Carousel/CarouselContext.d.ts.map +1 -1
  27. package/dist/components/Carousel/CarouselLeftFade.d.ts +5 -0
  28. package/dist/components/Carousel/CarouselLeftFade.d.ts.map +1 -0
  29. package/dist/components/Carousel/CarouselLeftFade.jsx +10 -0
  30. package/dist/components/Carousel/CarouselRightFade.d.ts +5 -0
  31. package/dist/components/Carousel/CarouselRightFade.d.ts.map +1 -0
  32. package/dist/components/Carousel/CarouselRightFade.jsx +10 -0
  33. package/dist/components/Carousel/CarouselRoot.d.ts +1 -1
  34. package/dist/components/Carousel/CarouselRoot.d.ts.map +1 -1
  35. package/dist/components/Carousel/CarouselRoot.jsx +3 -16
  36. package/dist/components/Clipboard/Clipboard.d.ts +3 -2
  37. package/dist/components/Clipboard/Clipboard.d.ts.map +1 -1
  38. package/dist/components/Clipboard/Clipboard.jsx +2 -5
  39. package/dist/components/ContextMenu/ContextMenuContent.d.ts.map +1 -1
  40. package/dist/components/ContextMenu/ContextMenuContent.jsx +3 -2
  41. package/dist/components/ContextMenu/ContextMenuRoot.d.ts.map +1 -1
  42. package/dist/components/ContextMenu/ContextMenuRoot.jsx +1 -1
  43. package/dist/components/Drawer/DrawerBody.d.ts +1 -1
  44. package/dist/components/Drawer/DrawerBody.d.ts.map +1 -1
  45. package/dist/components/Drawer/DrawerBody.jsx +3 -4
  46. package/dist/components/Drawer/DrawerPortal.d.ts +1 -1
  47. package/dist/components/Drawer/DrawerPortal.d.ts.map +1 -1
  48. package/dist/components/Drawer/DrawerPortal.jsx +2 -3
  49. package/dist/components/Drawer/DrawerRoot.jsx +1 -1
  50. package/dist/components/Dropdown/DropdownMenu.d.ts +1 -1
  51. package/dist/components/Dropdown/DropdownMenu.d.ts.map +1 -1
  52. package/dist/components/Dropdown/DropdownMenu.jsx +2 -3
  53. package/dist/components/Dropdown/DropdownRoot.d.ts +1 -1
  54. package/dist/components/Dropdown/DropdownRoot.d.ts.map +1 -1
  55. package/dist/components/Dropdown/DropdownRoot.jsx +4 -6
  56. package/dist/components/LoaderLink/LoaderLink.d.ts +6 -0
  57. package/dist/components/LoaderLink/LoaderLink.d.ts.map +1 -0
  58. package/dist/components/LoaderLink/LoaderLink.jsx +6 -0
  59. package/dist/components/Modal/Modal.d.ts +3 -3
  60. package/dist/components/Modal/Modal.js +3 -3
  61. package/dist/components/Modal/ModalBody.d.ts +3 -3
  62. package/dist/components/Modal/ModalBody.d.ts.map +1 -1
  63. package/dist/components/Modal/ModalBody.jsx +20 -5
  64. package/dist/components/Modal/ModalContent.d.ts +3 -3
  65. package/dist/components/Modal/ModalContent.d.ts.map +1 -1
  66. package/dist/components/Modal/ModalContent.jsx +2 -21
  67. package/dist/components/Modal/ModalHeader.d.ts +1 -1
  68. package/dist/components/Modal/ModalHeader.d.ts.map +1 -1
  69. package/dist/components/Modal/ModalHeader.jsx +2 -3
  70. package/dist/components/Modal/ModalPortal.d.ts +1 -1
  71. package/dist/components/Modal/ModalPortal.d.ts.map +1 -1
  72. package/dist/components/Modal/ModalPortal.jsx +2 -3
  73. package/dist/components/Modal/ModalRoot.d.ts.map +1 -1
  74. package/dist/components/Modal/ModalRoot.jsx +1 -1
  75. package/dist/components/Otp/OtpInputs.d.ts +1 -1
  76. package/dist/components/Otp/OtpInputs.d.ts.map +1 -1
  77. package/dist/components/Otp/OtpInputs.jsx +2 -3
  78. package/dist/components/Otp/OtpRoot.d.ts +1 -1
  79. package/dist/components/Otp/OtpRoot.d.ts.map +1 -1
  80. package/dist/components/Otp/OtpRoot.jsx +2 -3
  81. package/dist/components/Pagination/PaginationNextBtn.d.ts +1 -1
  82. package/dist/components/Pagination/PaginationNextBtn.d.ts.map +1 -1
  83. package/dist/components/Pagination/PaginationNextBtn.jsx +2 -5
  84. package/dist/components/Pagination/PaginationPrevBtn.d.ts +1 -1
  85. package/dist/components/Pagination/PaginationPrevBtn.d.ts.map +1 -1
  86. package/dist/components/Pagination/PaginationPrevBtn.jsx +2 -5
  87. package/dist/components/PasswordInput/PasswordInputToggle.d.ts +5 -3
  88. package/dist/components/PasswordInput/PasswordInputToggle.d.ts.map +1 -1
  89. package/dist/components/PasswordInput/PasswordInputToggle.jsx +2 -10
  90. package/dist/components/Progress/ProgressBar.d.ts +1 -1
  91. package/dist/components/Progress/ProgressBar.d.ts.map +1 -1
  92. package/dist/components/Progress/ProgressBar.jsx +2 -3
  93. package/dist/components/Progress/ProgressRoot.d.ts +1 -1
  94. package/dist/components/Progress/ProgressRoot.d.ts.map +1 -1
  95. package/dist/components/Progress/ProgressRoot.jsx +2 -3
  96. package/dist/components/Rating/Rating.d.ts +1 -1
  97. package/dist/components/Rating/RatingItems.d.ts +3 -3
  98. package/dist/components/Rating/RatingItems.d.ts.map +1 -1
  99. package/dist/components/Rating/RatingItems.jsx +3 -7
  100. package/dist/components/Rating/RatingRoot.d.ts +1 -1
  101. package/dist/components/Rating/RatingRoot.d.ts.map +1 -1
  102. package/dist/components/Rating/RatingRoot.jsx +2 -3
  103. package/dist/components/Sheet/Sheet.d.ts.map +1 -1
  104. package/dist/components/Sheet/SheetBody.d.ts +1 -1
  105. package/dist/components/Sheet/SheetBody.d.ts.map +1 -1
  106. package/dist/components/Sheet/SheetBody.jsx +5 -6
  107. package/dist/components/Sheet/SheetContent.d.ts +1 -1
  108. package/dist/components/Sheet/SheetContent.d.ts.map +1 -1
  109. package/dist/components/Sheet/SheetContent.jsx +2 -3
  110. package/dist/components/Sheet/SheetContext.d.ts +1 -2
  111. package/dist/components/Sheet/SheetContext.d.ts.map +1 -1
  112. package/dist/components/Sheet/SheetHeader.d.ts +1 -1
  113. package/dist/components/Sheet/SheetHeader.d.ts.map +1 -1
  114. package/dist/components/Sheet/SheetHeader.jsx +5 -5
  115. package/dist/components/Sheet/SheetPortal.d.ts +1 -1
  116. package/dist/components/Sheet/SheetPortal.d.ts.map +1 -1
  117. package/dist/components/Sheet/SheetPortal.jsx +2 -3
  118. package/dist/components/Sheet/SheetRoot.d.ts.map +1 -1
  119. package/dist/components/Sheet/SheetRoot.jsx +6 -7
  120. package/dist/components/ShowMore/ShowMoreContent.d.ts +1 -1
  121. package/dist/components/ShowMore/ShowMoreContent.d.ts.map +1 -1
  122. package/dist/components/ShowMore/ShowMoreContent.jsx +6 -4
  123. package/dist/components/ShowMore/ShowMoreFade.d.ts +1 -1
  124. package/dist/components/ShowMore/ShowMoreFade.d.ts.map +1 -1
  125. package/dist/components/ShowMore/ShowMoreFade.jsx +2 -3
  126. package/dist/components/ShowMore/ShowMoreRoot.d.ts +1 -1
  127. package/dist/components/ShowMore/ShowMoreRoot.d.ts.map +1 -1
  128. package/dist/components/ShowMore/ShowMoreRoot.jsx +2 -3
  129. package/dist/components/ShowMore/ShowMoreTrigger.d.ts +1 -1
  130. package/dist/components/ShowMore/ShowMoreTrigger.d.ts.map +1 -1
  131. package/dist/components/ShowMore/ShowMoreTrigger.jsx +5 -3
  132. package/dist/components/Slide/Slide.d.ts +2 -2
  133. package/dist/components/Slide/Slide.d.ts.map +1 -1
  134. package/dist/components/Slide/Slide.js +2 -2
  135. package/dist/components/Slide/SlideBody.d.ts +4 -0
  136. package/dist/components/Slide/SlideBody.d.ts.map +1 -0
  137. package/dist/components/Slide/SlideBody.jsx +3 -0
  138. package/dist/components/Slide/SlideHeader.d.ts +1 -1
  139. package/dist/components/Slide/SlideHeader.d.ts.map +1 -1
  140. package/dist/components/Slide/SlideHeader.jsx +2 -3
  141. package/dist/components/Slide/SlidePortal.d.ts.map +1 -1
  142. package/dist/components/Slide/SlidePortal.jsx +2 -2
  143. package/dist/components/Slide/SlideRoot.d.ts +4 -2
  144. package/dist/components/Slide/SlideRoot.d.ts.map +1 -1
  145. package/dist/components/Slide/SlideRoot.jsx +12 -7
  146. package/dist/components/Spoiler/Spoiler.d.ts +4 -4
  147. package/dist/components/Spoiler/Spoiler.d.ts.map +1 -1
  148. package/dist/components/Spoiler/Spoiler.js +5 -0
  149. package/dist/components/Spoiler/SpoilerBlur.d.ts +4 -0
  150. package/dist/components/Spoiler/SpoilerBlur.d.ts.map +1 -0
  151. package/dist/components/Spoiler/SpoilerBlur.jsx +8 -0
  152. package/dist/components/Spoiler/SpoilerContext.d.ts +7 -0
  153. package/dist/components/Spoiler/SpoilerContext.d.ts.map +1 -0
  154. package/dist/components/Spoiler/SpoilerContext.js +2 -0
  155. package/dist/components/Spoiler/SpoilerRoot.d.ts +4 -0
  156. package/dist/components/Spoiler/SpoilerRoot.d.ts.map +1 -0
  157. package/dist/components/Spoiler/SpoilerRoot.jsx +10 -0
  158. package/dist/components/Steps/Steps.d.ts +6 -3
  159. package/dist/components/Steps/Steps.d.ts.map +1 -1
  160. package/dist/components/Steps/Steps.js +4 -2
  161. package/dist/components/Steps/StepsContext.d.ts.map +1 -1
  162. package/dist/components/Steps/StepsContext.js +2 -0
  163. package/dist/components/Steps/StepsControls.jsx +1 -1
  164. package/dist/components/Steps/StepsIndexBtn.d.ts +6 -0
  165. package/dist/components/Steps/StepsIndexBtn.d.ts.map +1 -0
  166. package/dist/components/Steps/StepsIndexBtn.jsx +10 -0
  167. package/dist/components/Steps/StepsNextBtn.d.ts +1 -1
  168. package/dist/components/Steps/StepsNextBtn.d.ts.map +1 -1
  169. package/dist/components/Steps/StepsNextBtn.jsx +2 -5
  170. package/dist/components/Steps/StepsPrevBtn.d.ts +1 -1
  171. package/dist/components/Steps/StepsPrevBtn.d.ts.map +1 -1
  172. package/dist/components/Steps/StepsPrevBtn.jsx +2 -5
  173. package/dist/components/Steps/StepsRender.d.ts +2 -0
  174. package/dist/components/Steps/StepsRender.d.ts.map +1 -0
  175. package/dist/components/Steps/StepsRender.jsx +7 -0
  176. package/dist/components/Tabs/TabsList.d.ts +1 -1
  177. package/dist/components/Tabs/TabsList.d.ts.map +1 -1
  178. package/dist/components/Tabs/TabsList.jsx +2 -3
  179. package/dist/components/Tabs/TabsPanel.d.ts +1 -1
  180. package/dist/components/Tabs/TabsPanel.d.ts.map +1 -1
  181. package/dist/components/Tabs/TabsPanel.jsx +2 -3
  182. package/dist/components/Toast/ToastBox.jsx +1 -1
  183. package/dist/index.d.ts +1 -4
  184. package/dist/index.d.ts.map +1 -1
  185. package/dist/index.js +1 -4
  186. package/dist/utils/browser.d.ts +3 -0
  187. package/dist/utils/browser.d.ts.map +1 -0
  188. package/dist/utils/browser.js +21 -0
  189. package/dist/utils/cn.d.ts +3 -0
  190. package/dist/utils/cn.d.ts.map +1 -0
  191. package/dist/utils/cn.js +3 -0
  192. package/dist/utils/form.d.ts +2 -0
  193. package/dist/utils/form.d.ts.map +1 -0
  194. package/dist/utils/form.js +8 -0
  195. package/dist/utils.d.ts +4 -0
  196. package/dist/utils.d.ts.map +1 -0
  197. package/dist/utils.js +3 -0
  198. package/package.json +6 -4
  199. package/dist/components/LinkLoader/LinkLoader.d.ts +0 -6
  200. package/dist/components/LinkLoader/LinkLoader.d.ts.map +0 -1
  201. package/dist/components/LinkLoader/LinkLoader.jsx +0 -8
  202. package/dist/components/Slide/SlideContent.d.ts +0 -4
  203. package/dist/components/Slide/SlideContent.d.ts.map +0 -1
  204. package/dist/components/Slide/SlideContent.jsx +0 -4
  205. package/dist/components/Spoiler/Spoiler.jsx +0 -11
  206. package/src/components/AccessNavigation/AccessNavigation.tsx +0 -46
  207. package/src/components/Accordion/Accordion.ts +0 -8
  208. package/src/components/Accordion/AccordionBody.tsx +0 -31
  209. package/src/components/Accordion/AccordionContext.ts +0 -8
  210. package/src/components/Accordion/AccordionRoot.tsx +0 -17
  211. package/src/components/Accordion/AccordionToggle.tsx +0 -29
  212. package/src/components/Affix/Affix.tsx +0 -59
  213. package/src/components/Breadcrumbs/Breadcrumbs.ts +0 -6
  214. package/src/components/Breadcrumbs/BreadcrumbsContext.ts +0 -7
  215. package/src/components/Breadcrumbs/BreadcrumbsItem.tsx +0 -24
  216. package/src/components/Breadcrumbs/BreadcrumbsRoot.tsx +0 -21
  217. package/src/components/Carousel/Carousel.ts +0 -6
  218. package/src/components/Carousel/CarouselContainer.tsx +0 -18
  219. package/src/components/Carousel/CarouselContext.ts +0 -7
  220. package/src/components/Carousel/CarouselRoot.tsx +0 -75
  221. package/src/components/ClientOnly/ClientOnly.tsx +0 -12
  222. package/src/components/Clipboard/Clipboard.tsx +0 -36
  223. package/src/components/ContextMenu/ContextMenu.ts +0 -6
  224. package/src/components/ContextMenu/ContextMenuContent.tsx +0 -51
  225. package/src/components/ContextMenu/ContextMenuContext.ts +0 -9
  226. package/src/components/ContextMenu/ContextMenuRoot.tsx +0 -79
  227. package/src/components/Drawer/Drawer.ts +0 -10
  228. package/src/components/Drawer/DrawerBody.tsx +0 -67
  229. package/src/components/Drawer/DrawerContext.ts +0 -8
  230. package/src/components/Drawer/DrawerPortal.tsx +0 -40
  231. package/src/components/Drawer/DrawerRoot.tsx +0 -45
  232. package/src/components/Drawer/DrawerToggle.tsx +0 -21
  233. package/src/components/Dropdown/Dropdown.ts +0 -8
  234. package/src/components/Dropdown/DropdownContext.ts +0 -10
  235. package/src/components/Dropdown/DropdownMenu.tsx +0 -34
  236. package/src/components/Dropdown/DropdownRoot.tsx +0 -90
  237. package/src/components/Dropdown/DropdownToggle.tsx +0 -23
  238. package/src/components/LinkLoader/LinkLoader.tsx +0 -16
  239. package/src/components/Modal/Modal.ts +0 -14
  240. package/src/components/Modal/ModalBody.tsx +0 -12
  241. package/src/components/Modal/ModalContent.tsx +0 -44
  242. package/src/components/Modal/ModalContext.ts +0 -8
  243. package/src/components/Modal/ModalHeader.tsx +0 -10
  244. package/src/components/Modal/ModalPortal.tsx +0 -40
  245. package/src/components/Modal/ModalRoot.tsx +0 -47
  246. package/src/components/Modal/ModalTrigger.tsx +0 -21
  247. package/src/components/Otp/Otp.ts +0 -8
  248. package/src/components/Otp/OtpContext.ts +0 -10
  249. package/src/components/Otp/OtpHiddenInput.tsx +0 -15
  250. package/src/components/Otp/OtpInputs.tsx +0 -86
  251. package/src/components/Otp/OtpRoot.tsx +0 -26
  252. package/src/components/Pagination/Pagination.ts +0 -15
  253. package/src/components/Pagination/PaginationContext.tsx +0 -10
  254. package/src/components/Pagination/PaginationCounts.tsx +0 -17
  255. package/src/components/Pagination/PaginationNextBtn.tsx +0 -27
  256. package/src/components/Pagination/PaginationPrevBtn.tsx +0 -27
  257. package/src/components/Pagination/PaginationSearchParamsRoot.tsx +0 -45
  258. package/src/components/Pagination/PaginationStateRoot.tsx +0 -23
  259. package/src/components/PasswordInput/PasswordInput.ts +0 -8
  260. package/src/components/PasswordInput/PasswordInputContext.tsx +0 -8
  261. package/src/components/PasswordInput/PasswordInputField.tsx +0 -15
  262. package/src/components/PasswordInput/PasswordInputRoot.tsx +0 -17
  263. package/src/components/PasswordInput/PasswordInputToggle.tsx +0 -52
  264. package/src/components/Portal/Portal.tsx +0 -17
  265. package/src/components/Progress/Progress.ts +0 -6
  266. package/src/components/Progress/ProgressBar.tsx +0 -29
  267. package/src/components/Progress/ProgressContext.ts +0 -8
  268. package/src/components/Progress/ProgressRoot.tsx +0 -22
  269. package/src/components/QrCode/QrCode.tsx +0 -22
  270. package/src/components/Rating/Rating.ts +0 -6
  271. package/src/components/Rating/RatingContext.ts +0 -8
  272. package/src/components/Rating/RatingItems.tsx +0 -50
  273. package/src/components/Rating/RatingRoot.tsx +0 -22
  274. package/src/components/Sheet/Sheet.tsx +0 -14
  275. package/src/components/Sheet/SheetBody.tsx +0 -49
  276. package/src/components/Sheet/SheetContent.tsx +0 -8
  277. package/src/components/Sheet/SheetContext.ts +0 -14
  278. package/src/components/Sheet/SheetHeader.tsx +0 -24
  279. package/src/components/Sheet/SheetPortal.tsx +0 -35
  280. package/src/components/Sheet/SheetRoot.tsx +0 -56
  281. package/src/components/Sheet/SheetToggle.tsx +0 -21
  282. package/src/components/ShowMore/ShowMore.ts +0 -10
  283. package/src/components/ShowMore/ShowMoreContent.tsx +0 -31
  284. package/src/components/ShowMore/ShowMoreContext.ts +0 -11
  285. package/src/components/ShowMore/ShowMoreFade.tsx +0 -18
  286. package/src/components/ShowMore/ShowMoreRoot.tsx +0 -37
  287. package/src/components/ShowMore/ShowMoreTrigger.tsx +0 -23
  288. package/src/components/Slide/Slide.ts +0 -12
  289. package/src/components/Slide/SlideContent.tsx +0 -8
  290. package/src/components/Slide/SlideContext.ts +0 -11
  291. package/src/components/Slide/SlideHeader.tsx +0 -10
  292. package/src/components/Slide/SlidePortal.tsx +0 -26
  293. package/src/components/Slide/SlideRoot.tsx +0 -39
  294. package/src/components/Slide/SlideToggle.tsx +0 -21
  295. package/src/components/Spoiler/Spoiler.tsx +0 -28
  296. package/src/components/Steps/Steps.ts +0 -15
  297. package/src/components/Steps/StepsContext.tsx +0 -16
  298. package/src/components/Steps/StepsControls.tsx +0 -56
  299. package/src/components/Steps/StepsNextBtn.tsx +0 -27
  300. package/src/components/Steps/StepsPrevBtn.tsx +0 -27
  301. package/src/components/Steps/StepsSearchParamsRoot.tsx +0 -45
  302. package/src/components/Steps/StepsStateRoot.tsx +0 -23
  303. package/src/components/Swap/Swap.ts +0 -8
  304. package/src/components/Swap/SwapContext.ts +0 -9
  305. package/src/components/Swap/SwapItem.tsx +0 -16
  306. package/src/components/Swap/SwapRoot.tsx +0 -29
  307. package/src/components/Swap/SwapTrigger.tsx +0 -31
  308. package/src/components/Tabs/Tabs.ts +0 -10
  309. package/src/components/Tabs/TabsContext.ts +0 -11
  310. package/src/components/Tabs/TabsList.tsx +0 -12
  311. package/src/components/Tabs/TabsPanel.tsx +0 -23
  312. package/src/components/Tabs/TabsRoot.tsx +0 -18
  313. package/src/components/Tabs/TabsTab.tsx +0 -23
  314. package/src/components/Toast/Toast.ts +0 -3
  315. package/src/components/Toast/ToastBox.tsx +0 -50
  316. package/src/components/Toast/ToastRoot.tsx +0 -71
  317. package/src/components/Toast/toastStore.ts +0 -22
  318. package/src/components/Toggle/Toggle.ts +0 -6
  319. package/src/components/Toggle/ToggleContext.ts +0 -9
  320. package/src/components/Toggle/ToggleRoot.tsx +0 -26
  321. package/src/components/Toggle/ToggleSwitch.tsx +0 -41
  322. package/src/index.ts +0 -28
  323. /package/dist/components/Sheet/{Sheet.jsx → Sheet.js} +0 -0
@@ -1,5 +1,5 @@
1
- import { ModalBody } from "./ModalBody";
2
1
  import { ModalRoot } from "./ModalRoot";
2
+ import { ModalBody } from "./ModalBody";
3
3
  import { ModalHeader } from "./ModalHeader";
4
4
  import { ModalPortal } from "./ModalPortal";
5
5
  import { ModalToggle } from "./ModalTrigger";
@@ -7,8 +7,8 @@ import { ModalContent } from "./ModalContent";
7
7
  export declare const Modal: typeof ModalRoot & {
8
8
  Toggle: typeof ModalToggle;
9
9
  Portal: typeof ModalPortal;
10
- Content: typeof ModalContent;
11
- Header: typeof ModalHeader;
12
10
  Body: typeof ModalBody;
11
+ Header: typeof ModalHeader;
12
+ Content: typeof ModalContent;
13
13
  };
14
14
  //# sourceMappingURL=Modal.d.ts.map
@@ -1,5 +1,5 @@
1
- import { ModalBody } from "./ModalBody";
2
1
  import { ModalRoot } from "./ModalRoot";
2
+ import { ModalBody } from "./ModalBody";
3
3
  import { ModalHeader } from "./ModalHeader";
4
4
  import { ModalPortal } from "./ModalPortal";
5
5
  import { ModalToggle } from "./ModalTrigger";
@@ -7,7 +7,7 @@ import { ModalContent } from "./ModalContent";
7
7
  export const Modal = Object.assign(ModalRoot, {
8
8
  Toggle: ModalToggle,
9
9
  Portal: ModalPortal,
10
- Content: ModalContent,
10
+ Body: ModalBody,
11
11
  Header: ModalHeader,
12
- Body: ModalBody
12
+ Content: ModalContent
13
13
  });
@@ -1,4 +1,4 @@
1
- import type { HTMLAttributes } from "react";
2
- export type ModalBodyPropsT = HTMLAttributes<HTMLDivElement>;
3
- export declare function ModalBody({ children, className, ...props }: ModalBodyPropsT): import("react").JSX.Element;
1
+ import { HTMLMotionProps } from "framer-motion";
2
+ export type ModalBodyPropsT = HTMLMotionProps<"div">;
3
+ export declare function ModalBody({ onClick, ...props }: ModalBodyPropsT): import("react").JSX.Element;
4
4
  //# sourceMappingURL=ModalBody.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ModalBody.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/ModalBody.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,MAAM,eAAe,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;AAE7D,wBAAgB,SAAS,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,+BAM3E"}
1
+ {"version":3,"file":"ModalBody.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/ModalBody.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAmB,eAAe,EAAU,MAAM,eAAe,CAAC;AAIzE,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC;AAErD,wBAAgB,SAAS,CAAC,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,+BA6B/D"}
@@ -1,6 +1,21 @@
1
- import { cn } from "kadoui-utils";
2
- export function ModalBody({ children, className, ...props }) {
3
- return (<div className={cn("py-3 px-1.5 mx-1.5 max-h-[calc(100%-4rem)] overflow-y-auto", className)} {...props}>
4
- {children}
5
- </div>);
1
+ "use client";
2
+ import { use, useEffect, useRef } from "react";
3
+ import { AnimatePresence, motion } from "framer-motion";
4
+ import { ModalContext } from "./ModalContext";
5
+ export function ModalBody({ onClick, ...props }) {
6
+ const { isOpen } = use(ModalContext);
7
+ const contentRef = useRef(null);
8
+ useEffect(() => {
9
+ if (isOpen) {
10
+ const indexElement = contentRef.current?.querySelector("[data-modal='index']");
11
+ indexElement?.focus();
12
+ }
13
+ ;
14
+ }, [isOpen]);
15
+ return (<AnimatePresence>
16
+ {isOpen ? (<motion.div ref={contentRef} initial={{ opacity: 0, scale: 0.9 }} animate={{ opacity: 1, scale: 1 }} exit={{ opacity: 0, scale: 0.9 }} transition={{ ease: "easeInOut" }} onClick={ev => {
17
+ onClick?.(ev);
18
+ ev.stopPropagation();
19
+ }} {...props}/>) : null}
20
+ </AnimatePresence>);
6
21
  }
@@ -1,4 +1,4 @@
1
- import { HTMLMotionProps } from "framer-motion";
2
- export type ModalContentPropsT = HTMLMotionProps<"div">;
3
- export declare function ModalContent({ onClick, className, ...props }: ModalContentPropsT): import("react").JSX.Element;
1
+ import type { HTMLAttributes } from "react";
2
+ export type ModalContentPropsT = HTMLAttributes<HTMLDivElement>;
3
+ export declare function ModalContent(p: ModalContentPropsT): import("react").JSX.Element;
4
4
  //# sourceMappingURL=ModalContent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ModalContent.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/ModalContent.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAmB,eAAe,EAAU,MAAM,eAAe,CAAC;AAIzE,MAAM,MAAM,kBAAkB,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC;AAExD,wBAAgB,YAAY,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,+BAiChF"}
1
+ {"version":3,"file":"ModalContent.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/ModalContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;AAEhE,wBAAgB,YAAY,CAAC,CAAC,EAAE,kBAAkB,+BAIjD"}
@@ -1,22 +1,3 @@
1
- "use client";
2
- import { cn } from "kadoui-utils";
3
- import { use, useEffect, useRef } from "react";
4
- import { AnimatePresence, motion } from "framer-motion";
5
- import { ModalContext } from "./ModalContext";
6
- export function ModalContent({ onClick, className, ...props }) {
7
- const { isOpen } = use(ModalContext);
8
- const contentRef = useRef(null);
9
- useEffect(() => {
10
- if (isOpen) {
11
- const indexElement = contentRef.current?.querySelector("[data-modal='index']");
12
- indexElement?.focus();
13
- }
14
- ;
15
- }, [isOpen]);
16
- return (<AnimatePresence>
17
- {isOpen ? (<motion.div ref={contentRef} initial={{ opacity: 0, scale: 0.9 }} animate={{ opacity: 1, scale: 1 }} exit={{ opacity: 0, scale: 0.9 }} transition={{ ease: "easeInOut" }} onClick={ev => {
18
- onClick?.(ev);
19
- ev.stopPropagation();
20
- }} className={cn("bg-background rounded-2xl w-max max-w-[90%] h-full max-h-[90%]", className)} {...props}/>) : null}
21
- </AnimatePresence>);
1
+ export function ModalContent(p) {
2
+ return (<div {...p}/>);
22
3
  }
@@ -1,4 +1,4 @@
1
1
  import type { HTMLAttributes } from "react";
2
2
  export type ModalHeaderPropsT = HTMLAttributes<HTMLDivElement>;
3
- export declare function ModalHeader({ className, ...props }: ModalHeaderPropsT): import("react").JSX.Element;
3
+ export declare function ModalHeader(p: ModalHeaderPropsT): import("react").JSX.Element;
4
4
  //# sourceMappingURL=ModalHeader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ModalHeader.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/ModalHeader.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;AAE/D,wBAAgB,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,+BAIrE"}
1
+ {"version":3,"file":"ModalHeader.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/ModalHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;AAE/D,wBAAgB,WAAW,CAAC,CAAC,EAAE,iBAAiB,+BAI/C"}
@@ -1,4 +1,3 @@
1
- import { cn } from "kadoui-utils";
2
- export function ModalHeader({ className, ...props }) {
3
- return (<div className={cn("h-16 f-align px-3 bg-background rounded-t-2xl border-b border-separator sticky top-0", className)} {...props}/>);
1
+ export function ModalHeader(p) {
2
+ return (<div {...p}/>);
4
3
  }
@@ -1,4 +1,4 @@
1
1
  import { HTMLMotionProps } from "framer-motion";
2
2
  export type ModalPortalPropsT = HTMLMotionProps<"div">;
3
- export declare function ModalPortal({ onClick, className, ...props }: ModalPortalPropsT): import("react").JSX.Element;
3
+ export declare function ModalPortal({ onClick, ...p }: ModalPortalPropsT): import("react").JSX.Element;
4
4
  //# sourceMappingURL=ModalPortal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ModalPortal.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/ModalPortal.tsx"],"names":[],"mappings":"AAIA,OAAO,EAA2B,eAAe,EAAE,MAAM,eAAe,CAAC;AAMzE,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC;AAEvD,wBAAgB,WAAW,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,+BA2B9E"}
1
+ {"version":3,"file":"ModalPortal.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/ModalPortal.tsx"],"names":[],"mappings":"AAGA,OAAO,EAA2B,eAAe,EAAE,MAAM,eAAe,CAAC;AAMzE,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC;AAEvD,wBAAgB,WAAW,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,EAAE,iBAAiB,+BAuB/D"}
@@ -1,11 +1,10 @@
1
1
  "use client";
2
2
  import { use } from "react";
3
- import { cn } from "kadoui-utils";
4
3
  import { motion, AnimatePresence } from "framer-motion";
5
4
  import { Portal } from "../Portal/Portal";
6
5
  import { ModalContext } from "./ModalContext";
7
6
  import { ClientOnly } from "../ClientOnly/ClientOnly";
8
- export function ModalPortal({ onClick, className, ...props }) {
7
+ export function ModalPortal({ onClick, ...p }) {
9
8
  const { isOpen, setOpen } = use(ModalContext);
10
9
  return (<ClientOnly>
11
10
  <Portal>
@@ -13,7 +12,7 @@ export function ModalPortal({ onClick, className, ...props }) {
13
12
  {isOpen ? (<motion.div initial={{ opacity: 0 }} animate={{ opacity: 1 }} exit={{ opacity: 0 }} onClick={ev => {
14
13
  onClick?.(ev);
15
14
  setOpen(false);
16
- }} className={cn("fixed inset-0 z-50 f-center bg-foreground/10", className)} {...props}/>) : null}
15
+ }} {...p}/>) : null}
17
16
  </AnimatePresence>
18
17
  </Portal>
19
18
  </ClientOnly>);
@@ -1 +1 @@
1
- {"version":3,"file":"ModalRoot.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/ModalRoot.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAuB,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAI/D,MAAM,MAAM,eAAe,GAAG,iBAAiB,GAAG;IAChD,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAA;AAED,wBAAgB,SAAS,CAAC,EAAE,QAAQ,EAAE,WAAmB,EAAE,EAAE,eAAe,+BAmC3E"}
1
+ {"version":3,"file":"ModalRoot.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/ModalRoot.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAuB,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAM/D,MAAM,MAAM,eAAe,GAAG,iBAAiB,GAAG;IAChD,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAA;AAED,wBAAgB,SAAS,CAAC,EAAE,QAAQ,EAAE,WAAmB,EAAE,EAAE,eAAe,+BAmC3E"}
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { getBrowserScrollbarWith } from "kadoui-utils";
3
2
  import { useState, useEffect } from "react";
3
+ import { getBrowserScrollbarWith } from "../../utils";
4
4
  import { ModalContext } from "./ModalContext";
5
5
  export function ModalRoot({ children, defaultOpen = false }) {
6
6
  const [isOpen, setOpen] = useState(defaultOpen);
@@ -3,5 +3,5 @@ export type OtpInputsPropsT = InputHTMLAttributes<HTMLInputElement> & {
3
3
  length: number;
4
4
  onLastChange?: (otp: string) => void;
5
5
  };
6
- export declare function OtpInputs({ className, name, length, onLastChange, ...props }: OtpInputsPropsT): import("react").JSX.Element[];
6
+ export declare function OtpInputs({ name, length, onLastChange, ...props }: OtpInputsPropsT): import("react").JSX.Element[];
7
7
  //# sourceMappingURL=OtpInputs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"OtpInputs.d.ts","sourceRoot":"","sources":["../../../src/components/Otp/OtpInputs.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAkB,mBAAmB,EAAsB,MAAM,OAAO,CAAC;AAIhF,MAAM,MAAM,eAAe,GAAG,mBAAmB,CAAC,gBAAgB,CAAC,GAAG;IACpE,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC,CAAA;AAED,wBAAgB,SAAS,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,iCAyE7F"}
1
+ {"version":3,"file":"OtpInputs.d.ts","sourceRoot":"","sources":["../../../src/components/Otp/OtpInputs.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAkB,mBAAmB,EAAsB,MAAM,OAAO,CAAC;AAIhF,MAAM,MAAM,eAAe,GAAG,mBAAmB,CAAC,gBAAgB,CAAC,GAAG;IACpE,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC,CAAA;AAED,wBAAgB,SAAS,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,iCAwElF"}
@@ -1,8 +1,7 @@
1
1
  "use client";
2
- import { cn } from "kadoui-utils";
3
2
  import { use } from "react";
4
3
  import { OtpContext } from "./OtpContext";
5
- export function OtpInputs({ className, name, length, onLastChange, ...props }) {
4
+ export function OtpInputs({ name, length, onLastChange, ...props }) {
6
5
  const { inputs, getInputsValue } = use(OtpContext);
7
6
  const handlePaste = (ev, startIndex) => {
8
7
  ev.preventDefault();
@@ -47,7 +46,7 @@ export function OtpInputs({ className, name, length, onLastChange, ...props }) {
47
46
  inputs?.current[index - 1]?.focus();
48
47
  }
49
48
  };
50
- return Array.from({ length }).map((_, index) => (<input key={index} autoComplete="off" name={`${name || "otp"}-${index}`} onPaste={ev => handlePaste(ev, index)} onKeyDown={ev => handleBackspace(ev, index)} onChange={ev => handleInputChange(ev.target.value, index)} className={cn("input-outline input-square text-center", className)} ref={el => {
49
+ return Array.from({ length }).map((_, index) => (<input key={index} autoComplete="off" name={`${name || "otp"}-${index}`} onPaste={ev => handlePaste(ev, index)} onKeyDown={ev => handleBackspace(ev, index)} onChange={ev => handleInputChange(ev.target.value, index)} ref={el => {
51
50
  if (inputs) {
52
51
  inputs.current[index] = el;
53
52
  }
@@ -1,4 +1,4 @@
1
1
  import { HTMLAttributes } from "react";
2
2
  export type OtpRootPropsT = HTMLAttributes<HTMLDivElement>;
3
- export declare function OtpRoot({ className, ...props }: OtpRootPropsT): import("react").JSX.Element;
3
+ export declare function OtpRoot(p: OtpRootPropsT): import("react").JSX.Element;
4
4
  //# sourceMappingURL=OtpRoot.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"OtpRoot.d.ts","sourceRoot":"","sources":["../../../src/components/Otp/OtpRoot.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAqB,MAAM,OAAO,CAAC;AAI1D,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;AAE3D,wBAAgB,OAAO,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,+BAgB7D"}
1
+ {"version":3,"file":"OtpRoot.d.ts","sourceRoot":"","sources":["../../../src/components/Otp/OtpRoot.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAqB,MAAM,OAAO,CAAC;AAI1D,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;AAE3D,wBAAgB,OAAO,CAAC,CAAC,EAAE,aAAa,+BAgBvC"}
@@ -1,8 +1,7 @@
1
1
  "use client";
2
- import { cn } from "kadoui-utils";
3
2
  import { useEffect, useRef } from "react";
4
3
  import { OtpContext } from "./OtpContext";
5
- export function OtpRoot({ className, ...props }) {
4
+ export function OtpRoot(p) {
6
5
  const inputs = useRef([]);
7
6
  useEffect(() => {
8
7
  inputs.current[0]?.focus();
@@ -11,6 +10,6 @@ export function OtpRoot({ className, ...props }) {
11
10
  return inputs?.current.map(input => input?.value || "").join("") || "";
12
11
  };
13
12
  return (<OtpContext value={{ inputs, getInputsValue }}>
14
- <div className={cn("f-align gap-1.5", className)} {...props}/>
13
+ <div {...p}/>
15
14
  </OtpContext>);
16
15
  }
@@ -2,5 +2,5 @@ import { HTMLAttributes } from "react";
2
2
  export type PaginationNextBtnPropsT = HTMLAttributes<HTMLButtonElement> & {
3
3
  disabled?: boolean;
4
4
  };
5
- export declare function PaginationNextBtn({ onClick, disabled, children, ...props }: PaginationNextBtnPropsT): import("react").JSX.Element;
5
+ export declare function PaginationNextBtn({ onClick, disabled, ...p }: PaginationNextBtnPropsT): import("react").JSX.Element;
6
6
  //# sourceMappingURL=PaginationNextBtn.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PaginationNextBtn.d.ts","sourceRoot":"","sources":["../../../src/components/Pagination/PaginationNextBtn.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAO,MAAM,OAAO,CAAC;AAK5C,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC,iBAAiB,CAAC,GAAG;IACxE,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,uBAAuB,+BAenG"}
1
+ {"version":3,"file":"PaginationNextBtn.d.ts","sourceRoot":"","sources":["../../../src/components/Pagination/PaginationNextBtn.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAO,MAAM,OAAO,CAAC;AAI5C,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC,iBAAiB,CAAC,GAAG;IACxE,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,CAAC,EAAE,EAAE,uBAAuB,+BAarF"}
@@ -1,13 +1,10 @@
1
1
  "use client";
2
2
  import { use } from "react";
3
- import { ChevronRightIcon } from "lucide-react";
4
3
  import { PaginationContext } from "./PaginationContext";
5
- export function PaginationNextBtn({ onClick, disabled, children, ...props }) {
4
+ export function PaginationNextBtn({ onClick, disabled, ...p }) {
6
5
  const { page, pageLength, nextPage } = use(PaginationContext);
7
6
  return (<button disabled={disabled || page === pageLength} onClick={ev => {
8
7
  onClick?.(ev);
9
8
  nextPage();
10
- }} {...props}>
11
- {children || <ChevronRightIcon className="compatible-icon"/>}
12
- </button>);
9
+ }} {...p}/>);
13
10
  }
@@ -2,5 +2,5 @@ import { HTMLAttributes } from "react";
2
2
  export type PaginationPrevBtnPropsT = HTMLAttributes<HTMLButtonElement> & {
3
3
  disabled?: boolean;
4
4
  };
5
- export declare function PaginationPrevBtn({ onClick, disabled, children, ...props }: PaginationPrevBtnPropsT): import("react").JSX.Element;
5
+ export declare function PaginationPrevBtn({ onClick, disabled, ...p }: PaginationPrevBtnPropsT): import("react").JSX.Element;
6
6
  //# sourceMappingURL=PaginationPrevBtn.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PaginationPrevBtn.d.ts","sourceRoot":"","sources":["../../../src/components/Pagination/PaginationPrevBtn.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAO,MAAM,OAAO,CAAC;AAK5C,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC,iBAAiB,CAAC,GAAG;IACxE,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAA;AAED,wBAAgB,iBAAiB,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,uBAAuB,+BAenG"}
1
+ {"version":3,"file":"PaginationPrevBtn.d.ts","sourceRoot":"","sources":["../../../src/components/Pagination/PaginationPrevBtn.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAO,MAAM,OAAO,CAAC;AAI5C,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC,iBAAiB,CAAC,GAAG;IACxE,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAA;AAED,wBAAgB,iBAAiB,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,CAAC,EAAE,EAAE,uBAAuB,+BAarF"}
@@ -1,13 +1,10 @@
1
1
  "use client";
2
2
  import { use } from "react";
3
- import { ChevronLeftIcon } from "lucide-react";
4
3
  import { PaginationContext } from "./PaginationContext";
5
- export function PaginationPrevBtn({ onClick, disabled, children, ...props }) {
4
+ export function PaginationPrevBtn({ onClick, disabled, ...p }) {
6
5
  const { page, prevPage } = use(PaginationContext);
7
6
  return (<button disabled={disabled || page === 1} onClick={ev => {
8
7
  onClick?.(ev);
9
8
  prevPage();
10
- }} {...props}>
11
- {children || <ChevronLeftIcon className="compatible-icon"/>}
12
- </button>);
9
+ }} {...p}/>);
13
10
  }
@@ -1,4 +1,6 @@
1
- import { ButtonHTMLAttributes } from "react";
2
- export type PasswordInputTogglePropsT = ButtonHTMLAttributes<HTMLButtonElement>;
3
- export declare function PasswordInputToggle({ onClick, children, ...props }: PasswordInputTogglePropsT): import("react").JSX.Element;
1
+ import { ButtonHTMLAttributes, ReactNode } from "react";
2
+ export type PasswordInputTogglePropsT = ButtonHTMLAttributes<HTMLButtonElement> & {
3
+ visibleChildren: ReactNode;
4
+ };
5
+ export declare function PasswordInputToggle({ visibleChildren, onClick, children, ...props }: PasswordInputTogglePropsT): import("react").JSX.Element;
4
6
  //# sourceMappingURL=PasswordInputToggle.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PasswordInputToggle.d.ts","sourceRoot":"","sources":["../../../src/components/PasswordInput/PasswordInputToggle.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAO,MAAM,OAAO,CAAC;AAMlD,MAAM,MAAM,yBAAyB,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAEhF,wBAAgB,mBAAmB,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,yBAAyB,+BAyC7F"}
1
+ {"version":3,"file":"PasswordInputToggle.d.ts","sourceRoot":"","sources":["../../../src/components/PasswordInput/PasswordInputToggle.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,SAAS,EAAO,MAAM,OAAO,CAAC;AAI7D,MAAM,MAAM,yBAAyB,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,GAAG;IAChF,eAAe,EAAE,SAAS,CAAC;CAC5B,CAAC;AAEF,wBAAgB,mBAAmB,CAAC,EAAE,eAAe,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,yBAAyB,+BAe9G"}
@@ -1,20 +1,12 @@
1
1
  "use client";
2
2
  import { use } from "react";
3
- import { EyeClosedIcon, EyeIcon } from "lucide-react";
4
- import { AnimatePresence, motion } from "framer-motion";
5
3
  import { PasswordInputContext } from "./PasswordInputContext";
6
- export function PasswordInputToggle({ onClick, children, ...props }) {
4
+ export function PasswordInputToggle({ visibleChildren, onClick, children, ...props }) {
7
5
  const { isVisible, setIsVisible } = use(PasswordInputContext);
8
6
  return (<button type="button" onClick={ev => {
9
7
  setIsVisible(prev => !prev);
10
8
  onClick?.(ev);
11
9
  }} {...props}>
12
- {children || (<AnimatePresence initial={false} mode="wait">
13
- {isVisible ? (<motion.div key="visible" className="compatible-icon" initial={{ opacity: 0, y: "-25%" }} animate={{ opacity: 1, y: 0 }} exit={{ opacity: 0, y: "25%" }} transition={{ duration: 0.1 }}>
14
- <EyeIcon className="size-full"/>
15
- </motion.div>) : (<motion.div key="hidden" className="compatible-icon" initial={{ opacity: 0, y: "-25%" }} animate={{ opacity: 1, y: 0 }} exit={{ opacity: 0, y: "25%" }} transition={{ duration: 0.1 }}>
16
- <EyeClosedIcon className="size-full"/>
17
- </motion.div>)}
18
- </AnimatePresence>)}
10
+ {isVisible ? visibleChildren : children}
19
11
  </button>);
20
12
  }
@@ -2,5 +2,5 @@ import { HTMLMotionProps } from "framer-motion";
2
2
  export type ProgressBarPropsT = HTMLMotionProps<"div"> & {
3
3
  duration?: number;
4
4
  };
5
- export declare function ProgressBar({ className, duration, children, ...p }: ProgressBarPropsT): import("react").JSX.Element;
5
+ export declare function ProgressBar({ duration, children, ...p }: ProgressBarPropsT): import("react").JSX.Element;
6
6
  //# sourceMappingURL=ProgressBar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProgressBar.d.ts","sourceRoot":"","sources":["../../../src/components/Progress/ProgressBar.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAU,MAAM,eAAe,CAAC;AAIxD,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC,KAAK,CAAC,GAAG;IACvD,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAA;AAED,wBAAgB,WAAW,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,CAAC,EAAE,EAAE,iBAAiB,+BAgBrF"}
1
+ {"version":3,"file":"ProgressBar.d.ts","sourceRoot":"","sources":["../../../src/components/Progress/ProgressBar.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAU,MAAM,eAAe,CAAC;AAIxD,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC,KAAK,CAAC,GAAG;IACvD,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAA;AAED,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,CAAC,EAAE,EAAE,iBAAiB,+BAe1E"}
@@ -1,12 +1,11 @@
1
1
  "use client";
2
2
  import { use } from "react";
3
- import { cn } from "kadoui-utils";
4
3
  import { motion } from "framer-motion";
5
4
  import { ProgressContext } from "./ProgressContext";
6
- export function ProgressBar({ className, duration, children, ...p }) {
5
+ export function ProgressBar({ duration, children, ...p }) {
7
6
  const { value, maxValue } = use(ProgressContext);
8
7
  const percentage = Math.min(100, Math.max(0, (value / maxValue) * 100));
9
- return (<motion.div className={cn("f-center h-full bg-palette text-brush max-w-full", className)} initial={{ width: 0 }} whileInView={{ width: `${percentage}%` }} transition={{ duration: duration || 3 }} {...p}>
8
+ return (<motion.div initial={{ width: 0 }} whileInView={{ width: `${percentage}%` }} transition={{ duration: duration || 3 }} {...p}>
10
9
  {children || <span className="text-xs">{percentage}%</span>}
11
10
  </motion.div>);
12
11
  }
@@ -3,5 +3,5 @@ export type ProgressRootPropsT = HTMLAttributes<HTMLDivElement> & {
3
3
  value: number;
4
4
  maxValue?: number;
5
5
  };
6
- export declare function ProgressRoot({ value, maxValue, className, ...p }: ProgressRootPropsT): import("react").JSX.Element;
6
+ export declare function ProgressRoot({ value, maxValue, ...p }: ProgressRootPropsT): import("react").JSX.Element;
7
7
  //# sourceMappingURL=ProgressRoot.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProgressRoot.d.ts","sourceRoot":"","sources":["../../../src/components/Progress/ProgressRoot.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG;IAChE,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAA;AAED,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,QAAc,EAAE,SAAS,EAAE,GAAG,CAAC,EAAE,EAAE,kBAAkB,+BAS1F"}
1
+ {"version":3,"file":"ProgressRoot.d.ts","sourceRoot":"","sources":["../../../src/components/Progress/ProgressRoot.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG;IAChE,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAA;AAED,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,QAAc,EAAE,GAAG,CAAC,EAAE,EAAE,kBAAkB,+BAM/E"}
@@ -1,8 +1,7 @@
1
1
  "use client";
2
- import { cn } from "kadoui-utils";
3
2
  import { ProgressContext } from "./ProgressContext";
4
- export function ProgressRoot({ value, maxValue = 100, className, ...p }) {
3
+ export function ProgressRoot({ value, maxValue = 100, ...p }) {
5
4
  return (<ProgressContext value={{ value, maxValue }}>
6
- <div className={cn("w-full rounded-kado overflow-hidden h-6 bg-palette/10", className)} {...p}/>
5
+ <div {...p}/>
7
6
  </ProgressContext>);
8
7
  }
@@ -1,5 +1,5 @@
1
1
  import { RatingItems } from "./RatingItems";
2
- export declare const Rating: (({ className, ...p }: import("./RatingRoot").RatingRootPropsT) => import("react").JSX.Element) & {
2
+ export declare const Rating: ((p: import("./RatingRoot").RatingRootPropsT) => import("react").JSX.Element) & {
3
3
  Items: typeof RatingItems;
4
4
  };
5
5
  //# sourceMappingURL=Rating.d.ts.map
@@ -3,8 +3,8 @@ export type RatingItemsPropsT = ButtonHTMLAttributes<HTMLButtonElement> & {
3
3
  count: number;
4
4
  value: number;
5
5
  onValueChange: (newValue: number) => void;
6
- element?: ReactNode;
7
- activeElement?: ReactNode;
6
+ element: ReactNode;
7
+ activeElement: ReactNode;
8
8
  };
9
- export declare function RatingItems({ count, value, onValueChange, element, activeElement, className, ...p }: RatingItemsPropsT): import("react").JSX.Element[];
9
+ export declare function RatingItems({ count, value, onValueChange, element, activeElement, ...p }: RatingItemsPropsT): import("react").JSX.Element[];
10
10
  //# sourceMappingURL=RatingItems.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RatingItems.d.ts","sourceRoot":"","sources":["../../../src/components/Rating/RatingItems.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,oBAAoB,EAAE,SAAS,EAAO,MAAM,OAAO,CAAC;AAI7D,MAAM,MAAM,iBAAiB,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,GAAG;IACxE,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,aAAa,CAAC,EAAE,SAAS,CAAC;CAC3B,CAAA;AAED,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,GAAG,CAAC,EAAE,EAAE,iBAAiB,iCAiCtH"}
1
+ {"version":3,"file":"RatingItems.d.ts","sourceRoot":"","sources":["../../../src/components/Rating/RatingItems.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,SAAS,EAAO,MAAM,OAAO,CAAC;AAI7D,MAAM,MAAM,iBAAiB,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,GAAG;IACxE,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,OAAO,EAAE,SAAS,CAAC;IACnB,aAAa,EAAE,SAAS,CAAC;CAC1B,CAAA;AAED,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,aAAa,EAAE,GAAG,CAAC,EAAE,EAAE,iBAAiB,iCA0B3G"}
@@ -1,18 +1,14 @@
1
1
  "use client";
2
- import { cn } from "kadoui-utils";
3
- import { StarIcon } from "lucide-react";
4
2
  import { use } from "react";
5
3
  import { RatingContext } from "./RatingContext";
6
- export function RatingItems({ count, value, onValueChange, element, activeElement, className, ...p }) {
4
+ export function RatingItems({ count, value, onValueChange, element, activeElement, ...p }) {
7
5
  const { hoverValue, setHoverValue } = use(RatingContext);
8
- const defaultElement = element || <StarIcon className="icon-size-3 text-palette"/>;
9
- const defaultActiveElement = activeElement || <StarIcon className="icon-size-3 text-palette fill-palette"/>;
10
6
  const displayValue = hoverValue !== null ? hoverValue : value;
11
7
  return (Array.from({ length: count }).map((_, index) => {
12
8
  const itemValue = index + 1;
13
9
  const isActive = itemValue <= displayValue;
14
- return (<button key={index} role="radio" type="button" className={cn("transition-all px-0.5 not-active:hover:-translate-y-0.5", className)} aria-checked={itemValue === value} onClick={() => onValueChange(itemValue)} onMouseEnter={() => setHoverValue(itemValue)} aria-label={`${itemValue} out of ${count} stars`} {...p}>
15
- {isActive ? defaultActiveElement : defaultElement}
10
+ return (<button key={index} role="radio" type="button" aria-checked={itemValue === value} onClick={() => onValueChange(itemValue)} onMouseEnter={() => setHoverValue(itemValue)} aria-label={`${itemValue} out of ${count} stars`} {...p}>
11
+ {isActive ? activeElement : element}
16
12
  </button>);
17
13
  }));
18
14
  }
@@ -1,4 +1,4 @@
1
1
  import { HTMLAttributes } from "react";
2
2
  export type RatingRootPropsT = HTMLAttributes<HTMLDivElement>;
3
- export declare const RatingRoot: ({ className, ...p }: RatingRootPropsT) => import("react").JSX.Element;
3
+ export declare const RatingRoot: (p: RatingRootPropsT) => import("react").JSX.Element;
4
4
  //# sourceMappingURL=RatingRoot.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RatingRoot.d.ts","sourceRoot":"","sources":["../../../src/components/Rating/RatingRoot.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAY,MAAM,OAAO,CAAC;AAIjD,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAA;AAE7D,eAAO,MAAM,UAAU,GAAI,qBAAqB,gBAAgB,gCAY/D,CAAA"}
1
+ {"version":3,"file":"RatingRoot.d.ts","sourceRoot":"","sources":["../../../src/components/Rating/RatingRoot.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAY,MAAM,OAAO,CAAC;AAIjD,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAA;AAE7D,eAAO,MAAM,UAAU,GAAI,GAAG,gBAAgB,gCAW7C,CAAA"}
@@ -1,10 +1,9 @@
1
1
  "use client";
2
- import { cn } from "kadoui-utils";
3
2
  import { useState } from "react";
4
3
  import { RatingContext } from "./RatingContext";
5
- export const RatingRoot = ({ className, ...p }) => {
4
+ export const RatingRoot = (p) => {
6
5
  const [hoverValue, setHoverValue] = useState(null);
7
6
  return (<RatingContext value={{ hoverValue, setHoverValue }}>
8
- <div className={cn("f-align w-fit max-w-full", className)} onMouseLeave={() => setHoverValue(null)} {...p}/>
7
+ <div onMouseLeave={() => setHoverValue(null)} {...p}/>
9
8
  </RatingContext>);
10
9
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Sheet.d.ts","sourceRoot":"","sources":["../../../src/components/Sheet/Sheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,eAAO,MAAM,KAAK;;;;;;CAMhB,CAAC"}
1
+ {"version":3,"file":"Sheet.d.ts","sourceRoot":"","sources":["../../../src/components/Sheet/Sheet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,eAAO,MAAM,KAAK;;;;;;CAMhB,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import { HTMLMotionProps } from "framer-motion";
2
2
  export type SheetBodyPropsT = HTMLMotionProps<"div">;
3
- export declare function SheetBody({ className, ...props }: SheetBodyPropsT): import("react").JSX.Element;
3
+ export declare function SheetBody(p: SheetBodyPropsT): import("react").JSX.Element;
4
4
  //# sourceMappingURL=SheetBody.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SheetBody.d.ts","sourceRoot":"","sources":["../../../src/components/Sheet/SheetBody.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAU,MAAM,eAAe,CAAC;AAIxD,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC;AAErD,wBAAgB,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,+BAsCjE"}
1
+ {"version":3,"file":"SheetBody.d.ts","sourceRoot":"","sources":["../../../src/components/Sheet/SheetBody.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAU,MAAM,eAAe,CAAC;AAIxD,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC;AAErD,wBAAgB,SAAS,CAAC,CAAC,EAAE,eAAe,+BAiC3C"}
@@ -1,13 +1,12 @@
1
1
  "use client";
2
2
  import { use } from "react";
3
- import { cn } from "kadoui-utils";
4
3
  import { motion } from "framer-motion";
5
4
  import { SheetContext } from "./SheetContext";
6
- export function SheetBody({ className, ...props }) {
7
- const { drawerRef, controls, y, closeHandler: handleClose } = use(SheetContext);
8
- return (<motion.div id="drawer" ref={drawerRef} onClick={(ev) => ev.stopPropagation()} initial={{ y: "100%" }} animate={{ y: "0%" }} exit={{ y: "100%" }} style={{ y }} drag="y" dragControls={controls} dragListener={false} transition={{
5
+ export function SheetBody(p) {
6
+ const { controls, y, closeHandler: handleClose } = use(SheetContext);
7
+ return (<motion.div id="sheet" onClick={(ev) => ev.stopPropagation()} initial={{ y: "100%" }} animate={{ y: "0%" }} exit={{ y: "100%" }} style={{ y }} drag="y" dragControls={controls} dragListener={false} transition={{
9
8
  ease: "easeInOut",
10
- }} className={cn("absolute bottom-0 h-[75%] w-full overflow-hidden bg-background", className)} onDragEnd={() => {
9
+ }} onDragEnd={() => {
11
10
  if ((y?.get() || 0) >= 100) {
12
11
  handleClose();
13
12
  }
@@ -17,5 +16,5 @@ export function SheetBody({ className, ...props }) {
17
16
  }} dragElastic={{
18
17
  top: 0,
19
18
  bottom: 0.5,
20
- }} {...props}/>);
19
+ }} {...p}/>);
21
20
  }
@@ -1,4 +1,4 @@
1
1
  import { HTMLAttributes } from "react";
2
2
  export type SheetContentPropsT = HTMLAttributes<HTMLDivElement>;
3
- export declare function SheetContent({ className, ...props }: SheetContentPropsT): import("react").JSX.Element;
3
+ export declare function SheetContent(p: SheetContentPropsT): import("react").JSX.Element;
4
4
  //# sourceMappingURL=SheetContent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SheetContent.d.ts","sourceRoot":"","sources":["../../../src/components/Sheet/SheetContent.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;AAEhE,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,+BAEvE"}
1
+ {"version":3,"file":"SheetContent.d.ts","sourceRoot":"","sources":["../../../src/components/Sheet/SheetContent.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;AAEhE,wBAAgB,YAAY,CAAC,CAAC,EAAE,kBAAkB,+BAEjD"}
@@ -1,4 +1,3 @@
1
- import { cn } from "kadoui-utils";
2
- export function SheetContent({ className, ...props }) {
3
- return <div className={cn("overflow-y-auto h-[calc(100%-1.75rem)] px-3 pb-3", className)} {...props}/>;
1
+ export function SheetContent(p) {
2
+ return <div {...p}/>;
4
3
  }
@@ -1,10 +1,9 @@
1
+ import { Dispatch, SetStateAction } from "react";
1
2
  import { AnimationScope, DragControls, MotionValue } from "framer-motion";
2
- import { Dispatch, RefObject, SetStateAction } from "react";
3
3
  export type SheetContextT = {
4
4
  isOpen: boolean;
5
5
  setOpen: Dispatch<SetStateAction<boolean>>;
6
6
  closeHandler: () => void;
7
- drawerRef?: RefObject<HTMLDivElement>;
8
7
  scope?: AnimationScope<any>;
9
8
  controls?: DragControls;
10
9
  y?: MotionValue<number>;
@@ -1 +1 @@
1
- {"version":3,"file":"SheetContext.d.ts","sourceRoot":"","sources":["../../../src/components/Sheet/SheetContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC1E,OAAO,EAAiB,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE3E,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAC3C,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,SAAS,CAAC,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;IACtC,KAAK,CAAC,EAAE,cAAc,CAAC,GAAG,CAAC,CAAC;IAC5B,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,CAAC,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CACzB,CAAA;AAED,eAAO,MAAM,YAAY,wCAAoD,CAAC"}
1
+ {"version":3,"file":"SheetContext.d.ts","sourceRoot":"","sources":["../../../src/components/Sheet/SheetContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE1E,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAC3C,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,KAAK,CAAC,EAAE,cAAc,CAAC,GAAG,CAAC,CAAC;IAC5B,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,CAAC,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CACzB,CAAA;AAED,eAAO,MAAM,YAAY,wCAAoD,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import { HTMLAttributes } from "react";
2
2
  export type SheetHeaderPropsT = HTMLAttributes<HTMLDivElement>;
3
- export declare function SheetHeader({ className, children, ...props }: SheetHeaderPropsT): import("react").JSX.Element;
3
+ export declare function SheetHeader({ onPointerDown, ...p }: SheetHeaderPropsT): import("react").JSX.Element;
4
4
  //# sourceMappingURL=SheetHeader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SheetHeader.d.ts","sourceRoot":"","sources":["../../../src/components/Sheet/SheetHeader.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAO,MAAM,OAAO,CAAC;AAI5C,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;AAE/D,wBAAgB,WAAW,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,+BAc/E"}
1
+ {"version":3,"file":"SheetHeader.d.ts","sourceRoot":"","sources":["../../../src/components/Sheet/SheetHeader.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAO,MAAM,OAAO,CAAC;AAI5C,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;AAE/D,wBAAgB,WAAW,CAAC,EAAE,aAAa,EAAE,GAAG,CAAC,EAAE,EAAE,iBAAiB,+BAYrE"}