@kamod-ch/ui 1.1.0 → 1.2.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 (330) hide show
  1. package/LICENSE.md +9 -0
  2. package/README.md +12 -0
  3. package/dist/{Accordion-D1PiNspd.d.ts → Accordion-BiCBkB8o.d.ts} +7 -1
  4. package/dist/{AlertDialog-GadhKjPC.d.ts → AlertDialog-CZ2taZg4.d.ts} +3 -3
  5. package/dist/Button-OI3VvO-J.d.ts +84 -0
  6. package/dist/{Collapsible-CW1hQwqV.d.ts → Collapsible-BdQqvk35.d.ts} +6 -1
  7. package/dist/{ComboboxValue-BGfXgtZt.d.ts → ComboboxValue-Cq6zoDkt.d.ts} +1 -1
  8. package/dist/{Dialog-BOIteLfe.d.ts → Dialog-DdD1sMwk.d.ts} +12 -1
  9. package/dist/{DialogContent-cQHSRQdT.d.ts → DialogContent-YWzwWdSv.d.ts} +6 -1
  10. package/dist/{Drawer-CdjXZxxK.d.ts → Drawer-8xfn9KLf.d.ts} +2 -2
  11. package/dist/{Dropdown-CVbWVKok.d.ts → Dropdown-CzDJJgXQ.d.ts} +32 -27
  12. package/dist/{FieldTitle-aSgThW-B.d.ts → FieldTitle-hsI0Y6Zm.d.ts} +13 -13
  13. package/dist/{HoverCard-aVEEtkyO.d.ts → HoverCard-CBBr-tT9.d.ts} +14 -14
  14. package/dist/{Input-Cem05el9.d.ts → Input-C_X0Xpn2.d.ts} +11 -11
  15. package/dist/{PopoverTrigger-CH_Kx2mn.d.ts → PopoverTrigger-CIPAh0h0.d.ts} +14 -14
  16. package/dist/{RadioGroup-BaElzLwa.d.ts → RadioGroup-BDF3NaXQ.d.ts} +8 -8
  17. package/dist/{Sheet-DZ-p-aHY.d.ts → Sheet-DVt5iTiK.d.ts} +1 -1
  18. package/dist/{SidebarProvider-Bx7-BdQn.d.ts → SidebarProvider-CoVCItNd.d.ts} +18 -18
  19. package/dist/{Switch-CTTkNdqF.d.ts → Switch-BcNJFeRY.d.ts} +8 -8
  20. package/dist/{Tabs-CR-thcs6.d.ts → Tabs-CrXH3YED.d.ts} +18 -9
  21. package/dist/{Textarea-DbKkduOG.d.ts → Textarea-CST17pYW.d.ts} +11 -11
  22. package/dist/Toggle-BgvkYUI8.d.ts +49 -0
  23. package/dist/{ToggleGroup-UeYHzQe7.d.ts → ToggleGroup-CqYICGsS.d.ts} +42 -42
  24. package/dist/Typography-Df9IVmw2.d.ts +64 -0
  25. package/dist/{chunk-ZM67EKZC.js → chunk-22G3DW5M.js} +4 -4
  26. package/dist/{chunk-ZM67EKZC.js.map → chunk-22G3DW5M.js.map} +1 -1
  27. package/dist/{chunk-BDK7CDEI.js → chunk-2F3PWEDR.js} +3 -3
  28. package/dist/{chunk-BDK7CDEI.js.map → chunk-2F3PWEDR.js.map} +1 -1
  29. package/dist/{chunk-ZHAGKFSO.js → chunk-2SPOI3MX.js} +3 -3
  30. package/dist/{chunk-ZHAGKFSO.js.map → chunk-2SPOI3MX.js.map} +1 -1
  31. package/dist/chunk-2UTJHQTS.js +162 -0
  32. package/dist/chunk-2UTJHQTS.js.map +1 -0
  33. package/dist/{chunk-NKKMM6CK.js → chunk-3AFRSB5R.js} +3 -3
  34. package/dist/{chunk-NKKMM6CK.js.map → chunk-3AFRSB5R.js.map} +1 -1
  35. package/dist/{chunk-LCMPFPBN.js → chunk-3ETRJPBL.js} +3 -3
  36. package/dist/{chunk-LCMPFPBN.js.map → chunk-3ETRJPBL.js.map} +1 -1
  37. package/dist/{chunk-WAPRVVDQ.js → chunk-3HBKDY64.js} +3 -3
  38. package/dist/{chunk-WAPRVVDQ.js.map → chunk-3HBKDY64.js.map} +1 -1
  39. package/dist/{chunk-PPYJQNE5.js → chunk-3XMFQKWB.js} +9 -5
  40. package/dist/chunk-3XMFQKWB.js.map +1 -0
  41. package/dist/{chunk-HCTZJYHK.js → chunk-4SQKSVBH.js} +6 -6
  42. package/dist/chunk-4SQKSVBH.js.map +1 -0
  43. package/dist/{chunk-ZVAW22GX.js → chunk-4ZFKDNSK.js} +3 -3
  44. package/dist/{chunk-ZVAW22GX.js.map → chunk-4ZFKDNSK.js.map} +1 -1
  45. package/dist/{chunk-IJ4ZRIR4.js → chunk-53FZEAOJ.js} +5 -5
  46. package/dist/{chunk-IJ4ZRIR4.js.map → chunk-53FZEAOJ.js.map} +1 -1
  47. package/dist/{chunk-BYG2ULS3.js → chunk-5ATODZ6L.js} +5 -7
  48. package/dist/chunk-5ATODZ6L.js.map +1 -0
  49. package/dist/{chunk-TXKPDNRD.js → chunk-5I7ULBDP.js} +3 -3
  50. package/dist/{chunk-TXKPDNRD.js.map → chunk-5I7ULBDP.js.map} +1 -1
  51. package/dist/{chunk-UEXTD7ZB.js → chunk-6HFTTHSY.js} +3 -3
  52. package/dist/{chunk-UEXTD7ZB.js.map → chunk-6HFTTHSY.js.map} +1 -1
  53. package/dist/{chunk-6RASPU5N.js → chunk-7LWAWZHM.js} +4 -11
  54. package/dist/chunk-7LWAWZHM.js.map +1 -0
  55. package/dist/{chunk-RHNI5UQO.js → chunk-A6ZZZFZN.js} +4 -4
  56. package/dist/{chunk-RHNI5UQO.js.map → chunk-A6ZZZFZN.js.map} +1 -1
  57. package/dist/{chunk-V63YIVKJ.js → chunk-APZXMU2X.js} +4 -4
  58. package/dist/{chunk-V63YIVKJ.js.map → chunk-APZXMU2X.js.map} +1 -1
  59. package/dist/{chunk-6FYSVMH7.js → chunk-AYLEWD77.js} +3 -3
  60. package/dist/{chunk-6FYSVMH7.js.map → chunk-AYLEWD77.js.map} +1 -1
  61. package/dist/{chunk-D3DQ4ICC.js → chunk-BZMD4EZC.js} +4 -11
  62. package/dist/chunk-BZMD4EZC.js.map +1 -0
  63. package/dist/{chunk-PU5J5EPY.js → chunk-C7TARE5T.js} +5 -5
  64. package/dist/{chunk-PU5J5EPY.js.map → chunk-C7TARE5T.js.map} +1 -1
  65. package/dist/{chunk-5FBD2NTR.js → chunk-DDRX6NNW.js} +6 -9
  66. package/dist/chunk-DDRX6NNW.js.map +1 -0
  67. package/dist/{chunk-HHLQYMPT.js → chunk-DUTKHOH3.js} +4 -4
  68. package/dist/{chunk-HHLQYMPT.js.map → chunk-DUTKHOH3.js.map} +1 -1
  69. package/dist/{chunk-24QD2FTA.js → chunk-EBXTNL52.js} +12 -15
  70. package/dist/chunk-EBXTNL52.js.map +1 -0
  71. package/dist/{chunk-STRBBF45.js → chunk-FOQ32NEP.js} +5 -5
  72. package/dist/chunk-FOQ32NEP.js.map +1 -0
  73. package/dist/{chunk-UIA74JVN.js → chunk-FXG53XY2.js} +5 -5
  74. package/dist/chunk-FXG53XY2.js.map +1 -0
  75. package/dist/{chunk-2KY7P27I.js → chunk-G7LTWXRN.js} +3 -3
  76. package/dist/{chunk-2KY7P27I.js.map → chunk-G7LTWXRN.js.map} +1 -1
  77. package/dist/{chunk-6BK3PIRX.js → chunk-GD3VBO44.js} +6 -6
  78. package/dist/{chunk-6BK3PIRX.js.map → chunk-GD3VBO44.js.map} +1 -1
  79. package/dist/{chunk-MD6HHORY.js → chunk-GPRE2VWB.js} +3 -3
  80. package/dist/{chunk-MD6HHORY.js.map → chunk-GPRE2VWB.js.map} +1 -1
  81. package/dist/{chunk-QZX3RFIC.js → chunk-HJF5AV4L.js} +11 -34
  82. package/dist/chunk-HJF5AV4L.js.map +1 -0
  83. package/dist/{chunk-QFDTG2ZJ.js → chunk-HWPROYKB.js} +3 -3
  84. package/dist/{chunk-QFDTG2ZJ.js.map → chunk-HWPROYKB.js.map} +1 -1
  85. package/dist/chunk-ISISDJ3Z.js +205 -0
  86. package/dist/chunk-ISISDJ3Z.js.map +1 -0
  87. package/dist/{chunk-3LIT5GWF.js → chunk-IW43BO47.js} +57 -19
  88. package/dist/chunk-IW43BO47.js.map +1 -0
  89. package/dist/{chunk-CLEC2RMU.js → chunk-JKEILBHG.js} +3 -3
  90. package/dist/{chunk-CLEC2RMU.js.map → chunk-JKEILBHG.js.map} +1 -1
  91. package/dist/{chunk-TFLSEEM4.js → chunk-KCN3GXRK.js} +3 -3
  92. package/dist/{chunk-TFLSEEM4.js.map → chunk-KCN3GXRK.js.map} +1 -1
  93. package/dist/{chunk-EMUPVA2F.js → chunk-KHV3WV6T.js} +4 -4
  94. package/dist/{chunk-EMUPVA2F.js.map → chunk-KHV3WV6T.js.map} +1 -1
  95. package/dist/{chunk-G6TV6TF7.js → chunk-KJ5PYCJG.js} +4 -12
  96. package/dist/chunk-KJ5PYCJG.js.map +1 -0
  97. package/dist/{chunk-5KS2VSX2.js → chunk-LAM4GIME.js} +4 -4
  98. package/dist/chunk-LAM4GIME.js.map +1 -0
  99. package/dist/{chunk-OCLVMKVC.js → chunk-MDXTENZ4.js} +8 -31
  100. package/dist/chunk-MDXTENZ4.js.map +1 -0
  101. package/dist/{chunk-CP55TVOV.js → chunk-MJUKNUFV.js} +3 -3
  102. package/dist/{chunk-CP55TVOV.js.map → chunk-MJUKNUFV.js.map} +1 -1
  103. package/dist/{chunk-GGTDJEE2.js → chunk-MTNLY7AY.js} +3 -3
  104. package/dist/{chunk-GGTDJEE2.js.map → chunk-MTNLY7AY.js.map} +1 -1
  105. package/dist/{chunk-67J4KBOW.js → chunk-NBIBBLP6.js} +10 -52
  106. package/dist/chunk-NBIBBLP6.js.map +1 -0
  107. package/dist/chunk-NBP4J2QF.js +200 -0
  108. package/dist/chunk-NBP4J2QF.js.map +1 -0
  109. package/dist/{chunk-NGKQBNZ5.js → chunk-NJYJCMKY.js} +3 -3
  110. package/dist/{chunk-NGKQBNZ5.js.map → chunk-NJYJCMKY.js.map} +1 -1
  111. package/dist/{chunk-COPT6I2D.js → chunk-NSEY5IC6.js} +9 -10
  112. package/dist/chunk-NSEY5IC6.js.map +1 -0
  113. package/dist/{chunk-UARVH66B.js → chunk-O4PHGLXF.js} +5 -5
  114. package/dist/{chunk-UARVH66B.js.map → chunk-O4PHGLXF.js.map} +1 -1
  115. package/dist/{chunk-J4DMQV64.js → chunk-OCZC4PDM.js} +3 -3
  116. package/dist/{chunk-J4DMQV64.js.map → chunk-OCZC4PDM.js.map} +1 -1
  117. package/dist/{chunk-IQH3XSOI.js → chunk-ODYHA3O5.js} +4 -4
  118. package/dist/{chunk-IQH3XSOI.js.map → chunk-ODYHA3O5.js.map} +1 -1
  119. package/dist/chunk-OJEZZVZB.js +9 -0
  120. package/dist/{chunk-CMBERB5B.js.map → chunk-OJEZZVZB.js.map} +1 -1
  121. package/dist/{chunk-7IOAIEIA.js → chunk-OTXP2QJ7.js} +6 -6
  122. package/dist/{chunk-7IOAIEIA.js.map → chunk-OTXP2QJ7.js.map} +1 -1
  123. package/dist/{chunk-JSHUWI3C.js → chunk-OUVUK3E7.js} +9 -9
  124. package/dist/chunk-OUVUK3E7.js.map +1 -0
  125. package/dist/{chunk-3KB54OYF.js → chunk-P6ICWO5B.js} +3 -3
  126. package/dist/{chunk-3KB54OYF.js.map → chunk-P6ICWO5B.js.map} +1 -1
  127. package/dist/{chunk-GIU6BZTW.js → chunk-P7PPE4P5.js} +8 -11
  128. package/dist/chunk-P7PPE4P5.js.map +1 -0
  129. package/dist/{chunk-XGFJJ2YB.js → chunk-PVQUVEZV.js} +4 -11
  130. package/dist/chunk-PVQUVEZV.js.map +1 -0
  131. package/dist/{chunk-LCWXIQKA.js → chunk-Q3RL7TOY.js} +4 -4
  132. package/dist/chunk-Q3RL7TOY.js.map +1 -0
  133. package/dist/{chunk-5Q4RBIMZ.js → chunk-Q5B6ROW6.js} +3 -3
  134. package/dist/{chunk-5Q4RBIMZ.js.map → chunk-Q5B6ROW6.js.map} +1 -1
  135. package/dist/{chunk-262EK2XT.js → chunk-Q7ZDP6DS.js} +9 -7
  136. package/dist/chunk-Q7ZDP6DS.js.map +1 -0
  137. package/dist/{chunk-4IBTERDG.js → chunk-QFTOABOJ.js} +3 -3
  138. package/dist/{chunk-4IBTERDG.js.map → chunk-QFTOABOJ.js.map} +1 -1
  139. package/dist/{chunk-JURNPBSW.js → chunk-QINEFXUA.js} +3 -3
  140. package/dist/{chunk-JURNPBSW.js.map → chunk-QINEFXUA.js.map} +1 -1
  141. package/dist/{chunk-FIOKWIJP.js → chunk-QWSD34JA.js} +4 -4
  142. package/dist/{chunk-FIOKWIJP.js.map → chunk-QWSD34JA.js.map} +1 -1
  143. package/dist/{chunk-Q5IUIA6B.js → chunk-RLBAA7WW.js} +3 -3
  144. package/dist/{chunk-Q5IUIA6B.js.map → chunk-RLBAA7WW.js.map} +1 -1
  145. package/dist/{chunk-MJQ6R345.js → chunk-SEC7UN45.js} +5 -5
  146. package/dist/chunk-SEC7UN45.js.map +1 -0
  147. package/dist/chunk-SIA46B4Q.js +9 -0
  148. package/dist/{chunk-RTIFG4XT.js.map → chunk-SIA46B4Q.js.map} +1 -1
  149. package/dist/{chunk-X4HPHMYW.js → chunk-TMPADU74.js} +4 -4
  150. package/dist/{chunk-X4HPHMYW.js.map → chunk-TMPADU74.js.map} +1 -1
  151. package/dist/{chunk-YTHUHPE5.js → chunk-USPWL4KC.js} +3 -3
  152. package/dist/{chunk-YTHUHPE5.js.map → chunk-USPWL4KC.js.map} +1 -1
  153. package/dist/{chunk-U2UNWXBC.js → chunk-VEQ7X2PO.js} +7 -6
  154. package/dist/chunk-VEQ7X2PO.js.map +1 -0
  155. package/dist/{chunk-YZLPO4B2.js → chunk-WRXXU5F6.js} +4 -11
  156. package/dist/chunk-WRXXU5F6.js.map +1 -0
  157. package/dist/{chunk-XNYAQZIB.js → chunk-X4B6I3M4.js} +4 -4
  158. package/dist/{chunk-XNYAQZIB.js.map → chunk-X4B6I3M4.js.map} +1 -1
  159. package/dist/{chunk-JNF7FDJO.js → chunk-XCYEWILH.js} +4 -4
  160. package/dist/{chunk-JNF7FDJO.js.map → chunk-XCYEWILH.js.map} +1 -1
  161. package/dist/{chunk-V2MG5Y5F.js → chunk-XGVQXRLA.js} +4 -4
  162. package/dist/chunk-XGVQXRLA.js.map +1 -0
  163. package/dist/chunk-XIANSPQO.js +11 -0
  164. package/dist/chunk-XIANSPQO.js.map +1 -0
  165. package/dist/{chunk-UNWEH4Z6.js → chunk-XOMPJYYA.js} +4 -4
  166. package/dist/chunk-XOMPJYYA.js.map +1 -0
  167. package/dist/{chunk-UXWUFNXY.js → chunk-XSYSV3R3.js} +3 -3
  168. package/dist/{chunk-UXWUFNXY.js.map → chunk-XSYSV3R3.js.map} +1 -1
  169. package/dist/{chunk-ERBGZZ2U.js → chunk-XZYJUJED.js} +4 -4
  170. package/dist/chunk-XZYJUJED.js.map +1 -0
  171. package/dist/{chunk-PFV7YIEP.js → chunk-Z4JNYSV3.js} +4 -4
  172. package/dist/{chunk-PFV7YIEP.js.map → chunk-Z4JNYSV3.js.map} +1 -1
  173. package/dist/{chunk-4V3WHQJE.js → chunk-ZLSCHWTN.js} +4 -4
  174. package/dist/{chunk-4V3WHQJE.js.map → chunk-ZLSCHWTN.js.map} +1 -1
  175. package/dist/chunk-ZQ2WOX4X.js +29 -0
  176. package/dist/chunk-ZQ2WOX4X.js.map +1 -0
  177. package/dist/{chunk-NILG56Z7.js → chunk-ZROHNZDC.js} +4 -4
  178. package/dist/{chunk-NILG56Z7.js.map → chunk-ZROHNZDC.js.map} +1 -1
  179. package/dist/{chunk-PGOCR4LG.js → chunk-ZVYCUG4N.js} +4 -4
  180. package/dist/chunk-ZVYCUG4N.js.map +1 -0
  181. package/dist/components/accordion/index.d.ts +2 -2
  182. package/dist/components/accordion/index.js +3 -2
  183. package/dist/components/alert/index.d.ts +26 -26
  184. package/dist/components/alert/index.js +2 -2
  185. package/dist/components/alert-dialog/index.d.ts +6 -5
  186. package/dist/components/alert-dialog/index.js +6 -6
  187. package/dist/components/aspect-ratio/index.js +2 -2
  188. package/dist/components/avatar/index.d.ts +11 -11
  189. package/dist/components/avatar/index.js +2 -2
  190. package/dist/components/badge/index.d.ts +112 -112
  191. package/dist/components/badge/index.js +2 -2
  192. package/dist/components/breadcrumb/index.js +2 -2
  193. package/dist/components/button/index.d.ts +51 -51
  194. package/dist/components/button/index.js +3 -3
  195. package/dist/components/button-group/index.js +2 -2
  196. package/dist/components/calendar/index.js +10 -10
  197. package/dist/components/card/index.d.ts +22 -22
  198. package/dist/components/card/index.js +2 -1
  199. package/dist/components/carousel/index.js +3 -3
  200. package/dist/components/chart/index.js +2 -2
  201. package/dist/components/checkbox/index.js +2 -2
  202. package/dist/components/collapsible/index.d.ts +2 -2
  203. package/dist/components/collapsible/index.js +3 -2
  204. package/dist/components/combobox/index.d.ts +2 -2
  205. package/dist/components/combobox/index.js +5 -5
  206. package/dist/components/command/index.js +7 -7
  207. package/dist/components/context-menu/index.d.ts +11 -11
  208. package/dist/components/context-menu/index.js +3 -3
  209. package/dist/components/data-table/index.js +3 -3
  210. package/dist/components/date-picker/index.js +6 -6
  211. package/dist/components/dialog/index.d.ts +26 -5
  212. package/dist/components/dialog/index.js +5 -5
  213. package/dist/components/direction/index.js +2 -2
  214. package/dist/components/drawer/index.d.ts +5 -4
  215. package/dist/components/drawer/index.js +5 -5
  216. package/dist/components/dropdown/index.d.ts +3 -3
  217. package/dist/components/dropdown/index.js +3 -3
  218. package/dist/components/dropzone/index.js +3 -3
  219. package/dist/components/empty/index.d.ts +6 -6
  220. package/dist/components/empty/index.js +2 -2
  221. package/dist/components/field/index.d.ts +2 -2
  222. package/dist/components/field/index.js +4 -4
  223. package/dist/components/hover-card/index.d.ts +2 -2
  224. package/dist/components/hover-card/index.js +2 -1
  225. package/dist/components/image/index.js +2 -2
  226. package/dist/components/input/index.d.ts +12 -12
  227. package/dist/components/input/index.js +3 -2
  228. package/dist/components/input-group/index.d.ts +56 -56
  229. package/dist/components/input-group/index.js +5 -5
  230. package/dist/components/input-otp/index.js +2 -2
  231. package/dist/components/item/index.d.ts +31 -31
  232. package/dist/components/item/index.js +3 -3
  233. package/dist/components/kbd/index.d.ts +8 -8
  234. package/dist/components/kbd/index.js +2 -2
  235. package/dist/components/label/index.d.ts +22 -22
  236. package/dist/components/label/index.js +3 -2
  237. package/dist/components/locale-segment-group/index.js +2 -2
  238. package/dist/components/menubar/index.js +3 -3
  239. package/dist/components/native-select/index.d.ts +34 -34
  240. package/dist/components/native-select/index.js +2 -1
  241. package/dist/components/navigation-menu/index.d.ts +2 -2
  242. package/dist/components/navigation-menu/index.js +3 -3
  243. package/dist/components/pagination/index.d.ts +1 -1
  244. package/dist/components/pagination/index.js +3 -3
  245. package/dist/components/popover/index.d.ts +22 -22
  246. package/dist/components/popover/index.js +4 -3
  247. package/dist/components/progress/index.js +2 -2
  248. package/dist/components/prose/index.js +2 -2
  249. package/dist/components/radio-group/index.d.ts +2 -2
  250. package/dist/components/radio-group/index.js +3 -3
  251. package/dist/components/scroll-area/index.js +2 -2
  252. package/dist/components/select/index.js +3 -3
  253. package/dist/components/selectable-card/index.js +3 -3
  254. package/dist/components/separator/index.d.ts +8 -8
  255. package/dist/components/separator/index.js +3 -2
  256. package/dist/components/sheet/index.d.ts +5 -4
  257. package/dist/components/sheet/index.js +5 -5
  258. package/dist/components/sidebar/index.d.ts +3 -3
  259. package/dist/components/sidebar/index.js +10 -10
  260. package/dist/components/skeleton/index.d.ts +22 -22
  261. package/dist/components/skeleton/index.js +2 -1
  262. package/dist/components/slider/index.js +2 -2
  263. package/dist/components/spinner/index.js +2 -2
  264. package/dist/components/switch/index.d.ts +1 -1
  265. package/dist/components/switch/index.js +2 -2
  266. package/dist/components/table/index.js +3 -3
  267. package/dist/components/tabs/index.d.ts +2 -2
  268. package/dist/components/tabs/index.js +3 -3
  269. package/dist/components/textarea/index.d.ts +12 -12
  270. package/dist/components/textarea/index.js +3 -2
  271. package/dist/components/theme-toggle/index.js +4 -4
  272. package/dist/components/toggle/index.d.ts +1 -1
  273. package/dist/components/toggle/index.js +2 -2
  274. package/dist/components/toggle-group/index.d.ts +2 -2
  275. package/dist/components/toggle-group/index.js +2 -2
  276. package/dist/components/typography/index.d.ts +2 -2
  277. package/dist/components/typography/index.js +2 -2
  278. package/dist/components/video/index.js +2 -2
  279. package/dist/index.d.ts +24 -24
  280. package/dist/index.js +79 -78
  281. package/dist/lib/interactive/index.js +1 -1
  282. package/dist/lib/utils.d.ts +2 -1
  283. package/dist/lib/utils.js +1 -1
  284. package/dist/{navigationMenuTriggerStyle-BWnESpon.d.ts → navigationMenuTriggerStyle-DUhqCYxO.d.ts} +1 -1
  285. package/dist/theme.css +16 -0
  286. package/dist/utils.d.ts +2 -0
  287. package/dist/utils.js +3 -0
  288. package/dist/utils.js.map +1 -0
  289. package/package.json +28 -25
  290. package/dist/Button-vQnkiVTI.d.ts +0 -84
  291. package/dist/Toggle-CseZl7XN.d.ts +0 -49
  292. package/dist/Typography-ccTtE182.d.ts +0 -64
  293. package/dist/chunk-24QD2FTA.js.map +0 -1
  294. package/dist/chunk-262EK2XT.js.map +0 -1
  295. package/dist/chunk-3LIT5GWF.js.map +0 -1
  296. package/dist/chunk-5FBD2NTR.js.map +0 -1
  297. package/dist/chunk-5KS2VSX2.js.map +0 -1
  298. package/dist/chunk-67J4KBOW.js.map +0 -1
  299. package/dist/chunk-6RASPU5N.js.map +0 -1
  300. package/dist/chunk-BYG2ULS3.js.map +0 -1
  301. package/dist/chunk-CMBERB5B.js +0 -9
  302. package/dist/chunk-COPT6I2D.js.map +0 -1
  303. package/dist/chunk-D3DQ4ICC.js.map +0 -1
  304. package/dist/chunk-ERBGZZ2U.js.map +0 -1
  305. package/dist/chunk-G6TV6TF7.js.map +0 -1
  306. package/dist/chunk-GIU6BZTW.js.map +0 -1
  307. package/dist/chunk-HCTZJYHK.js.map +0 -1
  308. package/dist/chunk-JSHUWI3C.js.map +0 -1
  309. package/dist/chunk-LCWXIQKA.js.map +0 -1
  310. package/dist/chunk-MJQ6R345.js.map +0 -1
  311. package/dist/chunk-MKG3UAP6.js +0 -347
  312. package/dist/chunk-MKG3UAP6.js.map +0 -1
  313. package/dist/chunk-MS2ZNYCJ.js +0 -9
  314. package/dist/chunk-MS2ZNYCJ.js.map +0 -1
  315. package/dist/chunk-OCLVMKVC.js.map +0 -1
  316. package/dist/chunk-PGOCR4LG.js.map +0 -1
  317. package/dist/chunk-PPYJQNE5.js.map +0 -1
  318. package/dist/chunk-QZX3RFIC.js.map +0 -1
  319. package/dist/chunk-RTIFG4XT.js +0 -9
  320. package/dist/chunk-STRBBF45.js.map +0 -1
  321. package/dist/chunk-U2UNWXBC.js.map +0 -1
  322. package/dist/chunk-UEGIKBX6.js +0 -385
  323. package/dist/chunk-UEGIKBX6.js.map +0 -1
  324. package/dist/chunk-UIA74JVN.js.map +0 -1
  325. package/dist/chunk-UNWEH4Z6.js.map +0 -1
  326. package/dist/chunk-V2MG5Y5F.js.map +0 -1
  327. package/dist/chunk-X2YUFNK7.js +0 -18
  328. package/dist/chunk-X2YUFNK7.js.map +0 -1
  329. package/dist/chunk-XGFJJ2YB.js.map +0 -1
  330. package/dist/chunk-YZLPO4B2.js.map +0 -1
@@ -17,25 +17,34 @@ declare const TabsTrigger: ({ value, class: className, children, onClick, onKeyD
17
17
 
18
18
  declare const tabsList: tailwind_variants.TVReturnType<{
19
19
  variant: {
20
- default: string;
21
- line: string;
20
+ default: "";
21
+ line: "gap-1 rounded-none bg-transparent p-0 ring-0 group-data-[orientation=horizontal]/tabs:rounded-none";
22
22
  };
23
23
  }, undefined, string[], {
24
24
  variant: {
25
- default: string;
26
- line: string;
25
+ default: "";
26
+ line: "gap-1 rounded-none bg-transparent p-0 ring-0 group-data-[orientation=horizontal]/tabs:rounded-none";
27
27
  };
28
- }, undefined, tailwind_variants.TVReturnType<{
28
+ }, undefined, tailwind_variants.TVReturnTypeLike<{
29
29
  variant: {
30
- default: string;
31
- line: string;
30
+ default: "";
31
+ line: "gap-1 rounded-none bg-transparent p-0 ring-0 group-data-[orientation=horizontal]/tabs:rounded-none";
32
32
  };
33
- }, undefined, string[], unknown, unknown, undefined>>;
33
+ }, undefined>>;
34
34
  type TabsListProps = JSX.HTMLAttributes<HTMLDivElement> & VariantProps<typeof tabsList> & {
35
35
  children?: ComponentChildren;
36
36
  };
37
37
  declare const TabsList: ({ variant, class: className, children, ...rest }: TabsListProps) => JSX.Element;
38
38
 
39
+ type TabsContextValue = {
40
+ value: string;
41
+ setValue: (next: string) => void;
42
+ orientation: "horizontal" | "vertical";
43
+ baseId: string;
44
+ triggerId: (tabValue: string) => string;
45
+ contentId: (tabValue: string) => string;
46
+ };
47
+ declare const useTabs: () => TabsContextValue;
39
48
  type TabsProps = JSX.HTMLAttributes<HTMLDivElement> & {
40
49
  defaultValue: string;
41
50
  syncKey?: string;
@@ -44,4 +53,4 @@ type TabsProps = JSX.HTMLAttributes<HTMLDivElement> & {
44
53
  };
45
54
  declare const Tabs: ({ defaultValue, syncKey, orientation, class: className, children, ...rest }: TabsProps) => JSX.Element;
46
55
 
47
- export { Tabs as T, TabsContent as a, TabsList as b, TabsTrigger as c, type TabsProps as d, type TabsListProps as e, type TabsTriggerProps as f, type TabsContentProps as g };
56
+ export { Tabs as T, TabsContent as a, TabsList as b, TabsTrigger as c, type TabsProps as d, type TabsListProps as e, type TabsTriggerProps as f, type TabsContentProps as g, useTabs as u };
@@ -4,23 +4,23 @@ import { JSX } from 'preact';
4
4
 
5
5
  declare const textarea: tailwind_variants.TVReturnType<{
6
6
  size: {
7
- sm: string;
8
- md: string;
9
- lg: string;
7
+ sm: "min-h-16 px-2.5 py-1.5 text-sm";
8
+ md: "min-h-16 px-3 py-2 text-base";
9
+ lg: "min-h-24 px-4 py-3 text-lg";
10
10
  };
11
11
  }, undefined, string[], {
12
12
  size: {
13
- sm: string;
14
- md: string;
15
- lg: string;
13
+ sm: "min-h-16 px-2.5 py-1.5 text-sm";
14
+ md: "min-h-16 px-3 py-2 text-base";
15
+ lg: "min-h-24 px-4 py-3 text-lg";
16
16
  };
17
- }, undefined, tailwind_variants.TVReturnType<{
17
+ }, undefined, tailwind_variants.TVReturnTypeLike<{
18
18
  size: {
19
- sm: string;
20
- md: string;
21
- lg: string;
19
+ sm: "min-h-16 px-2.5 py-1.5 text-sm";
20
+ md: "min-h-16 px-3 py-2 text-base";
21
+ lg: "min-h-24 px-4 py-3 text-lg";
22
22
  };
23
- }, undefined, string[], unknown, unknown, undefined>>;
23
+ }, undefined>>;
24
24
  type TextareaProps = Omit<JSX.TextareaHTMLAttributes<HTMLTextAreaElement>, "size"> & VariantProps<typeof textarea>;
25
25
  declare const Textarea: ({ size, class: className, ...rest }: TextareaProps) => JSX.Element;
26
26
 
@@ -0,0 +1,49 @@
1
+ import * as tailwind_variants from 'tailwind-variants';
2
+ import { VariantProps } from 'tailwind-variants';
3
+ import { JSX, ComponentChildren } from 'preact';
4
+
5
+ declare const toggle: tailwind_variants.TVReturnType<{
6
+ variant: {
7
+ default: "bg-transparent hover:bg-muted hover:text-muted-foreground";
8
+ outline: "border border-input/80 bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/25 dark:border-input/80 dark:hover:bg-input/45";
9
+ };
10
+ size: {
11
+ sm: "h-7 min-w-7 px-1.5 text-[11px] leading-none";
12
+ default: "h-8 min-w-8 px-2";
13
+ lg: "h-9 min-w-9 px-2.5 text-sm";
14
+ icon: "size-8 p-0";
15
+ };
16
+ }, undefined, string[], {
17
+ variant: {
18
+ default: "bg-transparent hover:bg-muted hover:text-muted-foreground";
19
+ outline: "border border-input/80 bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/25 dark:border-input/80 dark:hover:bg-input/45";
20
+ };
21
+ size: {
22
+ sm: "h-7 min-w-7 px-1.5 text-[11px] leading-none";
23
+ default: "h-8 min-w-8 px-2";
24
+ lg: "h-9 min-w-9 px-2.5 text-sm";
25
+ icon: "size-8 p-0";
26
+ };
27
+ }, undefined, tailwind_variants.TVReturnTypeLike<{
28
+ variant: {
29
+ default: "bg-transparent hover:bg-muted hover:text-muted-foreground";
30
+ outline: "border border-input/80 bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/25 dark:border-input/80 dark:hover:bg-input/45";
31
+ };
32
+ size: {
33
+ sm: "h-7 min-w-7 px-1.5 text-[11px] leading-none";
34
+ default: "h-8 min-w-8 px-2";
35
+ lg: "h-9 min-w-9 px-2.5 text-sm";
36
+ icon: "size-8 p-0";
37
+ };
38
+ }, undefined>>;
39
+ type ToggleVariants = VariantProps<typeof toggle>;
40
+ type ToggleProps = Omit<JSX.ButtonHTMLAttributes<HTMLButtonElement>, "class"> & ToggleVariants & {
41
+ class?: string;
42
+ defaultPressed?: boolean;
43
+ pressed?: boolean;
44
+ onPressedChange?: (next: boolean) => void;
45
+ children?: ComponentChildren;
46
+ };
47
+ declare const Toggle: ({ defaultPressed, pressed, onPressedChange, variant, size, class: className, children, onClick, ...rest }: ToggleProps) => JSX.Element;
48
+
49
+ export { Toggle as T };
@@ -4,38 +4,38 @@ import { JSX, ComponentChildren } from 'preact';
4
4
 
5
5
  declare const toggleGroupItem$1: tailwind_variants.TVReturnType<{
6
6
  variant: {
7
- default: string;
8
- outline: string;
9
- pill: string;
7
+ default: "bg-transparent hover:bg-muted hover:text-muted-foreground";
8
+ outline: "border border-input/80 bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/25 dark:border-input/80 dark:hover:bg-input/45";
9
+ pill: "rounded-full border border-transparent bg-muted/60 hover:bg-muted";
10
10
  };
11
11
  size: {
12
- sm: string;
13
- default: string;
14
- lg: string;
12
+ sm: "h-7 min-w-7 gap-0.5 px-1.5 text-[11px] leading-none";
13
+ default: "h-8 min-w-8 gap-1 px-2";
14
+ lg: "h-9 min-w-9 gap-1.5 px-2.5 text-sm";
15
15
  };
16
16
  }, undefined, string[], {
17
17
  variant: {
18
- default: string;
19
- outline: string;
20
- pill: string;
18
+ default: "bg-transparent hover:bg-muted hover:text-muted-foreground";
19
+ outline: "border border-input/80 bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/25 dark:border-input/80 dark:hover:bg-input/45";
20
+ pill: "rounded-full border border-transparent bg-muted/60 hover:bg-muted";
21
21
  };
22
22
  size: {
23
- sm: string;
24
- default: string;
25
- lg: string;
23
+ sm: "h-7 min-w-7 gap-0.5 px-1.5 text-[11px] leading-none";
24
+ default: "h-8 min-w-8 gap-1 px-2";
25
+ lg: "h-9 min-w-9 gap-1.5 px-2.5 text-sm";
26
26
  };
27
- }, undefined, tailwind_variants.TVReturnType<{
27
+ }, undefined, tailwind_variants.TVReturnTypeLike<{
28
28
  variant: {
29
- default: string;
30
- outline: string;
31
- pill: string;
29
+ default: "bg-transparent hover:bg-muted hover:text-muted-foreground";
30
+ outline: "border border-input/80 bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/25 dark:border-input/80 dark:hover:bg-input/45";
31
+ pill: "rounded-full border border-transparent bg-muted/60 hover:bg-muted";
32
32
  };
33
33
  size: {
34
- sm: string;
35
- default: string;
36
- lg: string;
34
+ sm: "h-7 min-w-7 gap-0.5 px-1.5 text-[11px] leading-none";
35
+ default: "h-8 min-w-8 gap-1 px-2";
36
+ lg: "h-9 min-w-9 gap-1.5 px-2.5 text-sm";
37
37
  };
38
- }, undefined, string[], unknown, unknown, undefined>>;
38
+ }, undefined>>;
39
39
  type ToggleGroupItemVariants$1 = VariantProps<typeof toggleGroupItem$1>;
40
40
  type ToggleGroupItemProps = Omit<JSX.ButtonHTMLAttributes<HTMLButtonElement>, "class"> & ToggleGroupItemVariants$1 & {
41
41
  class?: string;
@@ -47,38 +47,38 @@ declare const ToggleGroupItem: ({ class: className, value, variant, size, disabl
47
47
  type ToggleGroupType = "single" | "multiple";
48
48
  declare const toggleGroup: tailwind_variants.TVReturnType<{
49
49
  orientation: {
50
- horizontal: string;
51
- vertical: string;
50
+ horizontal: "flex-row items-center";
51
+ vertical: "flex-col items-start";
52
52
  };
53
53
  spacing: {
54
- none: string;
55
- sm: string;
56
- default: string;
57
- lg: string;
54
+ none: "gap-0";
55
+ sm: "gap-0.5";
56
+ default: "gap-1";
57
+ lg: "gap-1.5";
58
58
  };
59
59
  }, undefined, "inline-flex items-center justify-center", {
60
60
  orientation: {
61
- horizontal: string;
62
- vertical: string;
61
+ horizontal: "flex-row items-center";
62
+ vertical: "flex-col items-start";
63
63
  };
64
64
  spacing: {
65
- none: string;
66
- sm: string;
67
- default: string;
68
- lg: string;
65
+ none: "gap-0";
66
+ sm: "gap-0.5";
67
+ default: "gap-1";
68
+ lg: "gap-1.5";
69
69
  };
70
- }, undefined, tailwind_variants.TVReturnType<{
70
+ }, undefined, tailwind_variants.TVReturnTypeLike<{
71
71
  orientation: {
72
- horizontal: string;
73
- vertical: string;
72
+ horizontal: "flex-row items-center";
73
+ vertical: "flex-col items-start";
74
74
  };
75
75
  spacing: {
76
- none: string;
77
- sm: string;
78
- default: string;
79
- lg: string;
76
+ none: "gap-0";
77
+ sm: "gap-0.5";
78
+ default: "gap-1";
79
+ lg: "gap-1.5";
80
80
  };
81
- }, undefined, "inline-flex items-center justify-center", unknown, unknown, undefined>>;
81
+ }, undefined>>;
82
82
  declare const toggleGroupItem: tailwind_variants.TVReturnType<{
83
83
  variant: {
84
84
  default: undefined;
@@ -101,7 +101,7 @@ declare const toggleGroupItem: tailwind_variants.TVReturnType<{
101
101
  default: undefined;
102
102
  lg: undefined;
103
103
  };
104
- }, undefined, tailwind_variants.TVReturnType<{
104
+ }, undefined, tailwind_variants.TVReturnTypeLike<{
105
105
  variant: {
106
106
  default: undefined;
107
107
  outline: undefined;
@@ -112,7 +112,7 @@ declare const toggleGroupItem: tailwind_variants.TVReturnType<{
112
112
  default: undefined;
113
113
  lg: undefined;
114
114
  };
115
- }, undefined, undefined, unknown, unknown, undefined>>;
115
+ }, undefined>>;
116
116
  type ToggleGroupItemVariants = VariantProps<typeof toggleGroupItem>;
117
117
  type ToggleGroupBaseProps = Omit<JSX.HTMLAttributes<HTMLDivElement>, "class"> & VariantProps<typeof toggleGroup> & ToggleGroupItemVariants & {
118
118
  class?: string;
@@ -0,0 +1,64 @@
1
+ import * as tailwind_variants from 'tailwind-variants';
2
+ import { VariantProps } from 'tailwind-variants';
3
+ import { JSX, ComponentChildren } from 'preact';
4
+
5
+ declare const typography: tailwind_variants.TVReturnType<{
6
+ variant: {
7
+ h1: "scroll-m-20 text-4xl font-extrabold tracking-tight lg:text-5xl";
8
+ h2: "scroll-m-20 border-b pb-2 text-3xl font-semibold tracking-tight first:mt-0";
9
+ h3: "scroll-m-20 text-2xl font-semibold tracking-tight";
10
+ h4: "scroll-m-20 text-xl font-semibold tracking-tight";
11
+ p: "leading-7 [&:not(:first-child)]:mt-6";
12
+ blockquote: "mt-6 border-l-2 pl-6 italic";
13
+ code: "relative rounded bg-muted px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold";
14
+ inlineCode: "relative rounded bg-muted px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold";
15
+ list: "my-6 ml-6 list-disc [&>li]:mt-2";
16
+ table: "my-6 w-full overflow-y-auto";
17
+ lead: "text-xl text-muted-foreground";
18
+ large: "text-lg font-semibold";
19
+ muted: "text-sm text-muted-foreground";
20
+ small: "text-sm font-medium leading-none";
21
+ };
22
+ }, undefined, "text-foreground", {
23
+ variant: {
24
+ h1: "scroll-m-20 text-4xl font-extrabold tracking-tight lg:text-5xl";
25
+ h2: "scroll-m-20 border-b pb-2 text-3xl font-semibold tracking-tight first:mt-0";
26
+ h3: "scroll-m-20 text-2xl font-semibold tracking-tight";
27
+ h4: "scroll-m-20 text-xl font-semibold tracking-tight";
28
+ p: "leading-7 [&:not(:first-child)]:mt-6";
29
+ blockquote: "mt-6 border-l-2 pl-6 italic";
30
+ code: "relative rounded bg-muted px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold";
31
+ inlineCode: "relative rounded bg-muted px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold";
32
+ list: "my-6 ml-6 list-disc [&>li]:mt-2";
33
+ table: "my-6 w-full overflow-y-auto";
34
+ lead: "text-xl text-muted-foreground";
35
+ large: "text-lg font-semibold";
36
+ muted: "text-sm text-muted-foreground";
37
+ small: "text-sm font-medium leading-none";
38
+ };
39
+ }, undefined, tailwind_variants.TVReturnTypeLike<{
40
+ variant: {
41
+ h1: "scroll-m-20 text-4xl font-extrabold tracking-tight lg:text-5xl";
42
+ h2: "scroll-m-20 border-b pb-2 text-3xl font-semibold tracking-tight first:mt-0";
43
+ h3: "scroll-m-20 text-2xl font-semibold tracking-tight";
44
+ h4: "scroll-m-20 text-xl font-semibold tracking-tight";
45
+ p: "leading-7 [&:not(:first-child)]:mt-6";
46
+ blockquote: "mt-6 border-l-2 pl-6 italic";
47
+ code: "relative rounded bg-muted px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold";
48
+ inlineCode: "relative rounded bg-muted px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold";
49
+ list: "my-6 ml-6 list-disc [&>li]:mt-2";
50
+ table: "my-6 w-full overflow-y-auto";
51
+ lead: "text-xl text-muted-foreground";
52
+ large: "text-lg font-semibold";
53
+ muted: "text-sm text-muted-foreground";
54
+ small: "text-sm font-medium leading-none";
55
+ };
56
+ }, undefined>>;
57
+ type TypographyVariants = VariantProps<typeof typography>;
58
+ type TypographyProps = JSX.HTMLAttributes<HTMLElementTagNameMap[keyof HTMLElementTagNameMap]> & TypographyVariants & {
59
+ as?: keyof HTMLElementTagNameMap;
60
+ children?: ComponentChildren;
61
+ };
62
+ declare const Typography: ({ as, variant, class: className, children, ...rest }: TypographyProps) => JSX.Element;
63
+
64
+ export { Typography as T, type TypographyVariants as a, typography as t };
@@ -1,5 +1,5 @@
1
- import { button } from './chunk-5FBD2NTR.js';
2
- import { cn } from './chunk-MS2ZNYCJ.js';
1
+ import { button } from './chunk-DDRX6NNW.js';
2
+ import { cn } from './chunk-XIANSPQO.js';
3
3
  import { jsx, jsxs, Fragment } from 'preact/jsx-runtime';
4
4
 
5
5
  var Pagination = ({ class: className, children, ...rest }) => /* @__PURE__ */ jsx(
@@ -131,5 +131,5 @@ var PaginationPrevious = ({
131
131
  );
132
132
 
133
133
  export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious };
134
- //# sourceMappingURL=chunk-ZM67EKZC.js.map
135
- //# sourceMappingURL=chunk-ZM67EKZC.js.map
134
+ //# sourceMappingURL=chunk-22G3DW5M.js.map
135
+ //# sourceMappingURL=chunk-22G3DW5M.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/pagination/Pagination.tsx","../src/components/pagination/PaginationContent.tsx","../src/components/pagination/pagination-icons.tsx","../src/components/pagination/PaginationEllipsis.tsx","../src/components/pagination/PaginationItem.tsx","../src/components/pagination/PaginationLink.tsx","../src/components/pagination/PaginationNext.tsx","../src/components/pagination/PaginationPrevious.tsx"],"names":["jsx","jsxs","Fragment"],"mappings":";;;;AAOO,IAAM,UAAA,GAAa,CAAC,EAAE,KAAA,EAAO,WAAW,QAAA,EAAU,GAAG,MAAK,qBAC/D,GAAA;AAAA,EAAC,KAAA;AAAA,EAAA;AAAA,IACC,YAAA,EAAW,YAAA;AAAA,IACX,WAAA,EAAU,YAAA;AAAA,IACV,KAAA,EAAO,EAAA,CAAG,oCAAA,EAAsC,SAAS,CAAA;AAAA,IACxD,GAAG,IAAA;AAAA,IAEH;AAAA;AACH;ACRK,IAAM,oBAAoB,CAAC;AAAA,EAChC,KAAA,EAAO,SAAA;AAAA,EACP,QAAA;AAAA,EACA,GAAG;AACL,CAAA,qBACEA,GAAAA;AAAA,EAAC,IAAA;AAAA,EAAA;AAAA,IACC,WAAA,EAAU,oBAAA;AAAA,IACV,KAAA,EAAO,EAAA,CAAG,4CAAA,EAA8C,SAAS,CAAA;AAAA,IAChE,GAAG,IAAA;AAAA,IAEH;AAAA;AACH;ACfF,IAAM,OAAA,GAA4C;AAAA,EAChD,KAAA,EAAO,4BAAA;AAAA,EACP,IAAA,EAAM,MAAA;AAAA,EACN,MAAA,EAAQ,cAAA;AAAA,EACR,cAAA,EAAgB,CAAA;AAAA,EAChB,gBAAA,EAAkB,OAAA;AAAA,EAClB,iBAAA,EAAmB,OAAA;AAAA,EACnB,aAAA,EAAe;AACjB,CAAA;AAEO,IAAM,wBAAwB,CAAC;AAAA,EACpC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A,EAAM,oBAAoB,QAAA,EAAA,IAAA,EAAK;AAAA,KAAA,EACvC;AAAA;AAEJ","file":"chunk-ZM67EKZC.js","sourcesContent":["import type { ComponentChildren, JSX } from \"preact\";\nimport { cn } from \"../../lib/utils\";\n\nexport type PaginationProps = JSX.HTMLAttributes<HTMLElement> & {\n children?: ComponentChildren;\n};\n\nexport const Pagination = ({ class: className, children, ...rest }: PaginationProps) => (\n <nav\n aria-label=\"pagination\"\n data-slot=\"pagination\"\n class={cn(\"mx-auto flex w-full justify-center\", className)}\n {...rest}\n >\n {children}\n </nav>\n);\n","import type { ComponentChildren, JSX } from \"preact\";\nimport { cn } from \"../../lib/utils\";\n\nexport type PaginationContentProps = JSX.HTMLAttributes<HTMLUListElement> & {\n children?: ComponentChildren;\n};\n\nexport const PaginationContent = ({\n class: className,\n children,\n ...rest\n}: PaginationContentProps) => (\n <ul\n data-slot=\"pagination-content\"\n class={cn(\"flex flex-row items-center gap-1 list-none\", className)}\n {...rest}\n >\n {children}\n </ul>\n);\n","import type { JSX } from \"preact\";\nimport { cn } from \"../../lib/utils\";\n\nconst svgBase: JSX.SVGAttributes<SVGSVGElement> = {\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"none\",\n stroke: \"currentColor\",\n \"stroke-width\": 2,\n \"stroke-linecap\": \"round\",\n \"stroke-linejoin\": \"round\",\n \"aria-hidden\": true,\n};\n\nexport const PaginationChevronLeft = ({\n class: className,\n ...props\n}: JSX.SVGAttributes<SVGSVGElement>) => (\n <svg {...svgBase} viewBox=\"0 0 24 24\" class={cn(\"size-4\", className)} {...props}>\n <path d=\"m15 18-6-6 6-6\" />\n </svg>\n);\n\nexport const PaginationChevronRight = ({\n class: className,\n ...props\n}: JSX.SVGAttributes<SVGSVGElement>) => (\n <svg {...svgBase} viewBox=\"0 0 24 24\" class={cn(\"size-4\", className)} {...props}>\n <path d=\"m9 18 6-6-6-6\" />\n </svg>\n);\n\nexport const PaginationMoreHorizontal = ({\n class: className,\n ...props\n}: JSX.SVGAttributes<SVGSVGElement>) => (\n <svg {...svgBase} viewBox=\"0 0 24 24\" class={cn(\"size-4\", className)} {...props}>\n <circle cx=\"12\" cy=\"12\" r=\"1\" />\n <circle cx=\"19\" cy=\"12\" r=\"1\" />\n <circle cx=\"5\" cy=\"12\" r=\"1\" />\n </svg>\n);\n","import type { JSX } from \"preact\";\nimport { cn } from \"../../lib/utils\";\nimport { PaginationMoreHorizontal } from \"./pagination-icons\";\n\nexport type PaginationEllipsisProps = JSX.HTMLAttributes<HTMLSpanElement>;\n\nexport const PaginationEllipsis = ({ class: className, ...rest }: PaginationEllipsisProps) => (\n <span\n data-slot=\"pagination-ellipsis\"\n aria-hidden\n class={cn(\"text-muted-foreground flex size-9 items-center justify-center\", className)}\n {...rest}\n >\n <PaginationMoreHorizontal />\n <span class=\"sr-only\">More pages</span>\n </span>\n);\n","import type { ComponentChildren, JSX } from \"preact\";\n\nexport type PaginationItemProps = JSX.HTMLAttributes<HTMLLIElement> & {\n children?: ComponentChildren;\n};\n\nexport const PaginationItem = ({ children, ...rest }: PaginationItemProps) => (\n <li data-slot=\"pagination-item\" {...rest}>\n {children}\n </li>\n);\n","import type { ComponentChildren, JSX } from \"preact\";\nimport type { VariantProps } from \"tailwind-variants\";\nimport { cn } from \"../../lib/utils\";\nimport { button } from \"../button/Button\";\n\nexport type PaginationLinkProps = Omit<JSX.AnchorHTMLAttributes<HTMLAnchorElement>, \"size\"> & {\n isActive?: boolean;\n size?: VariantProps<typeof button>[\"size\"];\n children?: ComponentChildren;\n \"data-slot\"?: string;\n};\n\nexport const PaginationLink = ({\n isActive = false,\n size = \"default\",\n class: className,\n \"data-slot\": dataSlot = \"pagination-link\",\n children,\n ...rest\n}: PaginationLinkProps) => {\n const r = rest as Record<string, unknown>;\n const restStyleClass = (r.class ?? r.className) as string | undefined;\n const { class: _c, className: _cn, ...anchorRest } = r;\n\n return (\n <a\n {...(anchorRest as JSX.AnchorHTMLAttributes<HTMLAnchorElement>)}\n data-slot={dataSlot}\n aria-current={isActive ? \"page\" : undefined}\n class={cn(\n button({ variant: isActive ? \"outline\" : \"ghost\", size }),\n \"h-9 min-w-9 justify-center px-2.5 [&_svg]:size-4 [&_svg]:shrink-0\",\n className,\n restStyleClass,\n )}\n >\n {children}\n </a>\n );\n};\n","import type { ComponentChildren } from \"preact\";\nimport { cn } from \"../../lib/utils\";\nimport { PaginationLink, type PaginationLinkProps } from \"./PaginationLink\";\nimport { PaginationChevronRight } from \"./pagination-icons\";\n\nexport type PaginationNextProps = Omit<PaginationLinkProps, \"children\"> & {\n children?: ComponentChildren;\n text?: string;\n};\n\nexport const PaginationNext = ({\n children,\n text = \"Next\",\n class: className,\n ...rest\n}: PaginationNextProps) => (\n <PaginationLink\n data-slot=\"pagination-next\"\n aria-label=\"Go to next page\"\n size=\"default\"\n class={cn(\"gap-1 pr-2.5 sm:pl-2.5\", className)}\n {...rest}\n >\n {children !== undefined && children !== null ? (\n children\n ) : (\n <>\n <span class=\"hidden sm:inline\">{text}</span>\n <PaginationChevronRight />\n </>\n )}\n </PaginationLink>\n);\n","import type { ComponentChildren } from \"preact\";\nimport { cn } from \"../../lib/utils\";\nimport { PaginationLink, type PaginationLinkProps } from \"./PaginationLink\";\nimport { PaginationChevronLeft } from \"./pagination-icons\";\n\nexport type PaginationPreviousProps = Omit<PaginationLinkProps, \"children\"> & {\n children?: ComponentChildren;\n text?: string;\n};\n\nexport const PaginationPrevious = ({\n children,\n text = \"Previous\",\n class: className,\n ...rest\n}: PaginationPreviousProps) => (\n <PaginationLink\n data-slot=\"pagination-previous\"\n aria-label=\"Go to previous page\"\n size=\"default\"\n class={cn(\"gap-1 pl-2.5 sm:pr-2.5\", className)}\n {...rest}\n >\n {children !== undefined && children !== null ? (\n children\n ) : (\n <>\n <PaginationChevronLeft />\n <span class=\"hidden sm:inline\">{text}</span>\n </>\n )}\n </PaginationLink>\n);\n"]}
1
+ {"version":3,"sources":["../src/components/pagination/Pagination.tsx","../src/components/pagination/PaginationContent.tsx","../src/components/pagination/pagination-icons.tsx","../src/components/pagination/PaginationEllipsis.tsx","../src/components/pagination/PaginationItem.tsx","../src/components/pagination/PaginationLink.tsx","../src/components/pagination/PaginationNext.tsx","../src/components/pagination/PaginationPrevious.tsx"],"names":["jsx","jsxs","Fragment"],"mappings":";;;;AAOO,IAAM,UAAA,GAAa,CAAC,EAAE,KAAA,EAAO,WAAW,QAAA,EAAU,GAAG,MAAK,qBAC/D,GAAA;AAAA,EAAC,KAAA;AAAA,EAAA;AAAA,IACC,YAAA,EAAW,YAAA;AAAA,IACX,WAAA,EAAU,YAAA;AAAA,IACV,KAAA,EAAO,EAAA,CAAG,oCAAA,EAAsC,SAAS,CAAA;AAAA,IACxD,GAAG,IAAA;AAAA,IAEH;AAAA;AACH;ACRK,IAAM,oBAAoB,CAAC;AAAA,EAChC,KAAA,EAAO,SAAA;AAAA,EACP,QAAA;AAAA,EACA,GAAG;AACL,CAAA,qBACEA,GAAAA;AAAA,EAAC,IAAA;AAAA,EAAA;AAAA,IACC,WAAA,EAAU,oBAAA;AAAA,IACV,KAAA,EAAO,EAAA,CAAG,4CAAA,EAA8C,SAAS,CAAA;AAAA,IAChE,GAAG,IAAA;AAAA,IAEH;AAAA;AACH;ACfF,IAAM,OAAA,GAA4C;AAAA,EAChD,KAAA,EAAO,4BAAA;AAAA,EACP,IAAA,EAAM,MAAA;AAAA,EACN,MAAA,EAAQ,cAAA;AAAA,EACR,cAAA,EAAgB,CAAA;AAAA,EAChB,gBAAA,EAAkB,OAAA;AAAA,EAClB,iBAAA,EAAmB,OAAA;AAAA,EACnB,aAAA,EAAe;AACjB,CAAA;AAEO,IAAM,wBAAwB,CAAC;AAAA,EACpC,KAAA,EAAO,SAAA;AAAA,EACP,GAAG;AACL,CAAA,qBACEA,GAAAA,CAAC,KAAA,EAAA,EAAK,GAAG,OAAA,EAAS,OAAA,EAAQ,aAAY,KAAA,EAAO,EAAA,CAAG,UAAU,SAAS,CAAA,EAAI,GAAG,KAA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ACEA,GAAAA;AAAA,EAAC,cAAA;AAAA,EAAA;AAAA,IACC,WAAA,EAAU,iBAAA;AAAA,IACV,YAAA,EAAW,iBAAA;AAAA,IACX,IAAA,EAAK,SAAA;AAAA,IACL,KAAA,EAAO,EAAA,CAAG,wBAAA,EAA0B,SAAS,CAAA;AAAA,IAC5C,GAAG,IAAA;AAAA,IAEH,uBAAa,MAAA,IAAa,QAAA,KAAa,OACtC,QAAA,mBAEAC,KAAA,QAAA,EAAA,EACE,QAAA,EAAA;AAAA,sBAAAD,GAAAA,CAAC,MAAA,EAAA,EAAK,KAAA,EAAM,kBAAA,EAAoB,QAAA,EAAA,IAAA,EAAK,CAAA;AAAA,sBACrCA,IAAC,sBAAA,EAAA,EAAuB;AAAA,KAAA,EAC1B;AAAA;AAEJ;ACrBK,IAAM,qBAAqB,CAAC;AAAA,EACjC,QAAA;AAAA,EACA,IAAA,GAAO,UAAA;AAAA,EACP,KAAA,EAAO,SAAA;AAAA,EACP,GAAG;AACL,CAAA,qBACEA,GAAAA;AAAA,EAAC,cAAA;AAAA,EAAA;AAAA,IACC,WAAA,EAAU,qBAAA;AAAA,IACV,YAAA,EAAW,qBAAA;AAAA,IACX,IAAA,EAAK,SAAA;AAAA,IACL,KAAA,EAAO,EAAA,CAAG,wBAAA,EAA0B,SAAS,CAAA;AAAA,IAC5C,GAAG,IAAA;AAAA,IAEH,QAAA,EAAA,QAAA,KAAa,UAAa,QAAA,KAAa,IAAA,GACtC,2BAEAC,IAAAA,CAAAC,UAAA,EACE,QAAA,EAAA;AAAA,sBAAAF,IAAC,qBAAA,EAAA,EAAsB,CAAA;AAAA,sBACvBA,GAAAA,CAAC,MAAA,EAAA,EAAK,KAAA,EAAM,oBAAoB,QAAA,EAAA,IAAA,EAAK;AAAA,KAAA,EACvC;AAAA;AAEJ","file":"chunk-22G3DW5M.js","sourcesContent":["import type { ComponentChildren, JSX } from \"preact\";\nimport { cn } from \"../../lib/utils\";\n\nexport type PaginationProps = JSX.HTMLAttributes<HTMLElement> & {\n children?: ComponentChildren;\n};\n\nexport const Pagination = ({ class: className, children, ...rest }: PaginationProps) => (\n <nav\n aria-label=\"pagination\"\n data-slot=\"pagination\"\n class={cn(\"mx-auto flex w-full justify-center\", className)}\n {...rest}\n >\n {children}\n </nav>\n);\n","import type { ComponentChildren, JSX } from \"preact\";\nimport { cn } from \"../../lib/utils\";\n\nexport type PaginationContentProps = JSX.HTMLAttributes<HTMLUListElement> & {\n children?: ComponentChildren;\n};\n\nexport const PaginationContent = ({\n class: className,\n children,\n ...rest\n}: PaginationContentProps) => (\n <ul\n data-slot=\"pagination-content\"\n class={cn(\"flex flex-row items-center gap-1 list-none\", className)}\n {...rest}\n >\n {children}\n </ul>\n);\n","import type { JSX } from \"preact\";\nimport { cn } from \"../../lib/utils\";\n\nconst svgBase: JSX.SVGAttributes<SVGSVGElement> = {\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"none\",\n stroke: \"currentColor\",\n \"stroke-width\": 2,\n \"stroke-linecap\": \"round\",\n \"stroke-linejoin\": \"round\",\n \"aria-hidden\": true,\n};\n\nexport const PaginationChevronLeft = ({\n class: className,\n ...props\n}: JSX.SVGAttributes<SVGSVGElement>) => (\n <svg {...svgBase} viewBox=\"0 0 24 24\" class={cn(\"size-4\", className)} {...props}>\n <path d=\"m15 18-6-6 6-6\" />\n </svg>\n);\n\nexport const PaginationChevronRight = ({\n class: className,\n ...props\n}: JSX.SVGAttributes<SVGSVGElement>) => (\n <svg {...svgBase} viewBox=\"0 0 24 24\" class={cn(\"size-4\", className)} {...props}>\n <path d=\"m9 18 6-6-6-6\" />\n </svg>\n);\n\nexport const PaginationMoreHorizontal = ({\n class: className,\n ...props\n}: JSX.SVGAttributes<SVGSVGElement>) => (\n <svg {...svgBase} viewBox=\"0 0 24 24\" class={cn(\"size-4\", className)} {...props}>\n <circle cx=\"12\" cy=\"12\" r=\"1\" />\n <circle cx=\"19\" cy=\"12\" r=\"1\" />\n <circle cx=\"5\" cy=\"12\" r=\"1\" />\n </svg>\n);\n","import type { JSX } from \"preact\";\nimport { cn } from \"../../lib/utils\";\nimport { PaginationMoreHorizontal } from \"./pagination-icons\";\n\nexport type PaginationEllipsisProps = JSX.HTMLAttributes<HTMLSpanElement>;\n\nexport const PaginationEllipsis = ({ class: className, ...rest }: PaginationEllipsisProps) => (\n <span\n data-slot=\"pagination-ellipsis\"\n aria-hidden\n class={cn(\"text-muted-foreground flex size-9 items-center justify-center\", className)}\n {...rest}\n >\n <PaginationMoreHorizontal />\n <span class=\"sr-only\">More pages</span>\n </span>\n);\n","import type { ComponentChildren, JSX } from \"preact\";\n\nexport type PaginationItemProps = JSX.HTMLAttributes<HTMLLIElement> & {\n children?: ComponentChildren;\n};\n\nexport const PaginationItem = ({ children, ...rest }: PaginationItemProps) => (\n <li data-slot=\"pagination-item\" {...rest}>\n {children}\n </li>\n);\n","import type { ComponentChildren, JSX } from \"preact\";\nimport type { VariantProps } from \"tailwind-variants\";\nimport { cn } from \"../../lib/utils\";\nimport { button } from \"../button/Button\";\n\nexport type PaginationLinkProps = Omit<JSX.AnchorHTMLAttributes<HTMLAnchorElement>, \"size\"> & {\n isActive?: boolean;\n size?: VariantProps<typeof button>[\"size\"];\n children?: ComponentChildren;\n \"data-slot\"?: string;\n};\n\nexport const PaginationLink = ({\n isActive = false,\n size = \"default\",\n class: className,\n \"data-slot\": dataSlot = \"pagination-link\",\n children,\n ...rest\n}: PaginationLinkProps) => {\n const r = rest as Record<string, unknown>;\n const restStyleClass = (r.class ?? r.className) as string | undefined;\n const { class: _c, className: _cn, ...anchorRest } = r;\n\n return (\n <a\n {...(anchorRest as JSX.AnchorHTMLAttributes<HTMLAnchorElement>)}\n data-slot={dataSlot}\n aria-current={isActive ? \"page\" : undefined}\n class={cn(\n button({ variant: isActive ? \"outline\" : \"ghost\", size }),\n \"h-9 min-w-9 justify-center px-2.5 [&_svg]:size-4 [&_svg]:shrink-0\",\n className,\n restStyleClass,\n )}\n >\n {children}\n </a>\n );\n};\n","import type { ComponentChildren } from \"preact\";\nimport { cn } from \"../../lib/utils\";\nimport { PaginationLink, type PaginationLinkProps } from \"./PaginationLink\";\nimport { PaginationChevronRight } from \"./pagination-icons\";\n\nexport type PaginationNextProps = Omit<PaginationLinkProps, \"children\"> & {\n children?: ComponentChildren;\n text?: string;\n};\n\nexport const PaginationNext = ({\n children,\n text = \"Next\",\n class: className,\n ...rest\n}: PaginationNextProps) => (\n <PaginationLink\n data-slot=\"pagination-next\"\n aria-label=\"Go to next page\"\n size=\"default\"\n class={cn(\"gap-1 pr-2.5 sm:pl-2.5\", className)}\n {...rest}\n >\n {children !== undefined && children !== null ? (\n children\n ) : (\n <>\n <span class=\"hidden sm:inline\">{text}</span>\n <PaginationChevronRight />\n </>\n )}\n </PaginationLink>\n);\n","import type { ComponentChildren } from \"preact\";\nimport { cn } from \"../../lib/utils\";\nimport { PaginationLink, type PaginationLinkProps } from \"./PaginationLink\";\nimport { PaginationChevronLeft } from \"./pagination-icons\";\n\nexport type PaginationPreviousProps = Omit<PaginationLinkProps, \"children\"> & {\n children?: ComponentChildren;\n text?: string;\n};\n\nexport const PaginationPrevious = ({\n children,\n text = \"Previous\",\n class: className,\n ...rest\n}: PaginationPreviousProps) => (\n <PaginationLink\n data-slot=\"pagination-previous\"\n aria-label=\"Go to previous page\"\n size=\"default\"\n class={cn(\"gap-1 pl-2.5 sm:pr-2.5\", className)}\n {...rest}\n >\n {children !== undefined && children !== null ? (\n children\n ) : (\n <>\n <PaginationChevronLeft />\n <span class=\"hidden sm:inline\">{text}</span>\n </>\n )}\n </PaginationLink>\n);\n"]}
@@ -1,4 +1,4 @@
1
- import { cn } from './chunk-MS2ZNYCJ.js';
1
+ import { cn } from './chunk-XIANSPQO.js';
2
2
  import { createContext } from 'preact';
3
3
  import { useContext } from 'preact/hooks';
4
4
  import { jsx } from 'preact/jsx-runtime';
@@ -18,5 +18,5 @@ var Direction = ({ dir = "ltr", ...rest }) => /* @__PURE__ */ jsx(DirectionProvi
18
18
  var direction_default = Direction;
19
19
 
20
20
  export { Direction, DirectionProvider, direction_default, useDirection };
21
- //# sourceMappingURL=chunk-BDK7CDEI.js.map
22
- //# sourceMappingURL=chunk-BDK7CDEI.js.map
21
+ //# sourceMappingURL=chunk-2F3PWEDR.js.map
22
+ //# sourceMappingURL=chunk-2F3PWEDR.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/direction/Direction.tsx","../src/components/direction/index.ts"],"names":[],"mappings":";;;;;AAOA,IAAM,gBAAA,GAAmB,cAA8B,KAAK,CAAA;AAGrD,IAAM,YAAA,GAAe,MAAM,UAAA,CAAW,gBAAgB;AAatD,IAAM,oBAAoB,CAAC;AAAA,EAChC,SAAA,GAAY,KAAA;AAAA,EACZ,KAAA,EAAO,SAAA;AAAA,EACP,QAAA;AAAA,EACA,aAAa,QAAA,GAAW,oBAAA;AAAA,EACxB,GAAG;AACL,CAAA,yBACG,gBAAA,CAAiB,QAAA,EAAjB,EAA0B,KAAA,EAAO,SAAA,EAChC,8BAAC,KAAA,EAAA,EAAI,GAAA,EAAK,WAAW,WAAA,EAAW,QAAA,EAAU,OAAO,EAAA,CAAG,SAAS,GAAI,GAAG,IAAA,EACjE,UACH,CAAA,EACF;AASK,IAAM,SAAA,GAAY,CAAC,EAAE,GAAA,GAAM,OAAO,GAAG,IAAA,EAAK,qBAC/C,GAAA,CAAC,qBAAkB,SAAA,EAAW,GAAA,EAAK,WAAA,EAAU,WAAA,EAAa,GAAG,IAAA,EAAM;;;ACvCrE,IAAO,iBAAA,GAAQ","file":"chunk-BDK7CDEI.js","sourcesContent":["import type { ComponentChildren, JSX } from \"preact\";\nimport { createContext } from \"preact\";\nimport { useContext } from \"preact/hooks\";\nimport { cn } from \"../../lib/utils\";\n\nexport type DirectionValue = \"ltr\" | \"rtl\";\n\nconst DirectionContext = createContext<DirectionValue>(\"ltr\");\n\n/** Returns the active text direction from the nearest `DirectionProvider` / `Direction` wrapper (default `ltr`). */\nexport const useDirection = () => useContext(DirectionContext);\n\nexport type DirectionProviderProps = Omit<JSX.HTMLAttributes<HTMLDivElement>, \"dir\"> & {\n /** Text direction for the subtree — matches shadcn `DirectionProvider` (`direction` prop). */\n direction?: DirectionValue;\n children?: ComponentChildren;\n \"data-slot\"?: string;\n};\n\n/**\n * Sets both React context and the HTML `dir` attribute on a wrapping element so logical CSS (`ms-*`, `me-*`, etc.) resolves correctly.\n * For full-document RTL, also set `dir` on `<html>` (see docs).\n */\nexport const DirectionProvider = ({\n direction = \"ltr\",\n class: className,\n children,\n \"data-slot\": dataSlot = \"direction-provider\",\n ...rest\n}: DirectionProviderProps) => (\n <DirectionContext.Provider value={direction}>\n <div dir={direction} data-slot={dataSlot} class={cn(className)} {...rest}>\n {children}\n </div>\n </DirectionContext.Provider>\n);\n\nexport type DirectionProps = Omit<DirectionProviderProps, \"direction\"> & {\n /** Kamod legacy prop — same as `direction` on `DirectionProvider`. */\n dir?: DirectionValue;\n};\n\n/** Same as `DirectionProvider` but uses prop `dir` instead of `direction` (backwards compatible). */\nexport const Direction = ({ dir = \"ltr\", ...rest }: DirectionProps) => (\n <DirectionProvider direction={dir} data-slot=\"direction\" {...rest} />\n);\n","import { Direction, DirectionProvider, useDirection } from \"./Direction\";\n\nexport type { DirectionProps, DirectionProviderProps, DirectionValue } from \"./Direction\";\nexport { Direction, DirectionProvider, useDirection };\n\nexport default Direction;\n"]}
1
+ {"version":3,"sources":["../src/components/direction/Direction.tsx","../src/components/direction/index.ts"],"names":[],"mappings":";;;;;AAOA,IAAM,gBAAA,GAAmB,cAA8B,KAAK,CAAA;AAGrD,IAAM,YAAA,GAAe,MAAM,UAAA,CAAW,gBAAgB;AAatD,IAAM,oBAAoB,CAAC;AAAA,EAChC,SAAA,GAAY,KAAA;AAAA,EACZ,KAAA,EAAO,SAAA;AAAA,EACP,QAAA;AAAA,EACA,aAAa,QAAA,GAAW,oBAAA;AAAA,EACxB,GAAG;AACL,CAAA,yBACG,gBAAA,CAAiB,QAAA,EAAjB,EAA0B,KAAA,EAAO,SAAA,EAChC,8BAAC,KAAA,EAAA,EAAI,GAAA,EAAK,WAAW,WAAA,EAAW,QAAA,EAAU,OAAO,EAAA,CAAG,SAAS,GAAI,GAAG,IAAA,EACjE,UACH,CAAA,EACF;AASK,IAAM,SAAA,GAAY,CAAC,EAAE,GAAA,GAAM,OAAO,GAAG,IAAA,EAAK,qBAC/C,GAAA,CAAC,qBAAkB,SAAA,EAAW,GAAA,EAAK,WAAA,EAAU,WAAA,EAAa,GAAG,IAAA,EAAM;;;ACvCrE,IAAO,iBAAA,GAAQ","file":"chunk-2F3PWEDR.js","sourcesContent":["import type { ComponentChildren, JSX } from \"preact\";\nimport { createContext } from \"preact\";\nimport { useContext } from \"preact/hooks\";\nimport { cn } from \"../../lib/utils\";\n\nexport type DirectionValue = \"ltr\" | \"rtl\";\n\nconst DirectionContext = createContext<DirectionValue>(\"ltr\");\n\n/** Returns the active text direction from the nearest `DirectionProvider` / `Direction` wrapper (default `ltr`). */\nexport const useDirection = () => useContext(DirectionContext);\n\nexport type DirectionProviderProps = Omit<JSX.HTMLAttributes<HTMLDivElement>, \"dir\"> & {\n /** Text direction for the subtree — matches shadcn `DirectionProvider` (`direction` prop). */\n direction?: DirectionValue;\n children?: ComponentChildren;\n \"data-slot\"?: string;\n};\n\n/**\n * Sets both React context and the HTML `dir` attribute on a wrapping element so logical CSS (`ms-*`, `me-*`, etc.) resolves correctly.\n * For full-document RTL, also set `dir` on `<html>` (see docs).\n */\nexport const DirectionProvider = ({\n direction = \"ltr\",\n class: className,\n children,\n \"data-slot\": dataSlot = \"direction-provider\",\n ...rest\n}: DirectionProviderProps) => (\n <DirectionContext.Provider value={direction}>\n <div dir={direction} data-slot={dataSlot} class={cn(className)} {...rest}>\n {children}\n </div>\n </DirectionContext.Provider>\n);\n\nexport type DirectionProps = Omit<DirectionProviderProps, \"direction\"> & {\n /** Kamod legacy prop — same as `direction` on `DirectionProvider`. */\n dir?: DirectionValue;\n};\n\n/** Same as `DirectionProvider` but uses prop `dir` instead of `direction` (backwards compatible). */\nexport const Direction = ({ dir = \"ltr\", ...rest }: DirectionProps) => (\n <DirectionProvider direction={dir} data-slot=\"direction\" {...rest} />\n);\n","import { Direction, DirectionProvider, useDirection } from \"./Direction\";\n\nexport type { DirectionProps, DirectionProviderProps, DirectionValue } from \"./Direction\";\nexport { Direction, DirectionProvider, useDirection };\n\nexport default Direction;\n"]}
@@ -1,4 +1,4 @@
1
- import { cn } from './chunk-MS2ZNYCJ.js';
1
+ import { cn } from './chunk-XIANSPQO.js';
2
2
  import { jsx } from 'preact/jsx-runtime';
3
3
 
4
4
  var Prose = ({ class: className, children, ...rest }) => /* @__PURE__ */ jsx(
@@ -12,5 +12,5 @@ var Prose = ({ class: className, children, ...rest }) => /* @__PURE__ */ jsx(
12
12
  );
13
13
 
14
14
  export { Prose };
15
- //# sourceMappingURL=chunk-ZHAGKFSO.js.map
16
- //# sourceMappingURL=chunk-ZHAGKFSO.js.map
15
+ //# sourceMappingURL=chunk-2SPOI3MX.js.map
16
+ //# sourceMappingURL=chunk-2SPOI3MX.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/prose/Prose.tsx"],"names":[],"mappings":";;;AAOO,IAAM,KAAA,GAAQ,CAAC,EAAE,KAAA,EAAO,WAAW,QAAA,EAAU,GAAG,MAAK,qBAC1D,GAAA;AAAA,EAAC,KAAA;AAAA,EAAA;AAAA,IACC,WAAA,EAAU,OAAA;AAAA,IACV,KAAA,EAAO,EAAA,CAAG,kDAAA,EAAoD,SAAS,CAAA;AAAA,IACtE,GAAG,IAAA;AAAA,IAEH;AAAA;AACH","file":"chunk-ZHAGKFSO.js","sourcesContent":["import type { ComponentChildren, JSX } from \"preact\";\nimport { cn } from \"../../lib/utils\";\n\nexport type ProseProps = JSX.HTMLAttributes<HTMLDivElement> & {\n children?: ComponentChildren;\n};\n\nexport const Prose = ({ class: className, children, ...rest }: ProseProps) => (\n <div\n data-slot=\"prose\"\n class={cn(\"prose prose-neutral dark:prose-invert max-w-none\", className)}\n {...rest}\n >\n {children}\n </div>\n);\n"]}
1
+ {"version":3,"sources":["../src/components/prose/Prose.tsx"],"names":[],"mappings":";;;AAOO,IAAM,KAAA,GAAQ,CAAC,EAAE,KAAA,EAAO,WAAW,QAAA,EAAU,GAAG,MAAK,qBAC1D,GAAA;AAAA,EAAC,KAAA;AAAA,EAAA;AAAA,IACC,WAAA,EAAU,OAAA;AAAA,IACV,KAAA,EAAO,EAAA,CAAG,kDAAA,EAAoD,SAAS,CAAA;AAAA,IACtE,GAAG,IAAA;AAAA,IAEH;AAAA;AACH","file":"chunk-2SPOI3MX.js","sourcesContent":["import type { ComponentChildren, JSX } from \"preact\";\nimport { cn } from \"../../lib/utils\";\n\nexport type ProseProps = JSX.HTMLAttributes<HTMLDivElement> & {\n children?: ComponentChildren;\n};\n\nexport const Prose = ({ class: className, children, ...rest }: ProseProps) => (\n <div\n data-slot=\"prose\"\n class={cn(\"prose prose-neutral dark:prose-invert max-w-none\", className)}\n {...rest}\n >\n {children}\n </div>\n);\n"]}
@@ -0,0 +1,162 @@
1
+ import { useHeightDisclosureContent } from './chunk-ISISDJ3Z.js';
2
+ import { cn } from './chunk-XIANSPQO.js';
3
+ import { signal } from '@preact/signals';
4
+ import { createContext, isValidElement, cloneElement } from 'preact';
5
+ import { useContext, useMemo } from 'preact/hooks';
6
+ import { jsx } from 'preact/jsx-runtime';
7
+
8
+ var CollapsibleContext = createContext(null);
9
+ var useCollapsible = () => {
10
+ const context = useContext(CollapsibleContext);
11
+ if (!context) throw new Error("Collapsible subcomponents must be used within Collapsible");
12
+ return context;
13
+ };
14
+ var Collapsible = ({
15
+ defaultOpen = false,
16
+ open: openProp,
17
+ onOpenChange,
18
+ children,
19
+ ...rest
20
+ }) => {
21
+ const uncontrolled = useMemo(() => signal(defaultOpen), []);
22
+ const isControlled = openProp !== void 0;
23
+ const open = isControlled ? Boolean(openProp) : uncontrolled.value;
24
+ const setOpen = (next) => {
25
+ if (!isControlled) {
26
+ uncontrolled.value = next;
27
+ }
28
+ onOpenChange?.(next);
29
+ };
30
+ const context = { open, setOpen };
31
+ return /* @__PURE__ */ jsx(CollapsibleContext.Provider, { value: context, children: /* @__PURE__ */ jsx("div", { "data-slot": "collapsible", "data-state": open ? "open" : "closed", ...rest, children }) });
32
+ };
33
+ var CollapsibleContent = ({
34
+ forceMount = false,
35
+ duration = "320ms",
36
+ timingFunction = "cubic-bezier(0.22, 1, 0.36, 1)",
37
+ largeContentThreshold = 560,
38
+ children,
39
+ class: className,
40
+ style,
41
+ ...rest
42
+ }) => {
43
+ const { open } = useCollapsible();
44
+ const {
45
+ allowRender,
46
+ isAnimatingClose,
47
+ isAnimatingOpen,
48
+ outerRef,
49
+ innerRef,
50
+ handleTransitionEnd
51
+ } = useHeightDisclosureContent({
52
+ open,
53
+ forceMount,
54
+ duration,
55
+ timingFunction,
56
+ largeContentThreshold
57
+ });
58
+ if (!allowRender) return null;
59
+ const mergedStyle = {
60
+ ...typeof style === "object" && style !== null && !Array.isArray(style) ? style : {},
61
+ ["--kamodui-collapsible-duration"]: duration,
62
+ ["--kamodui-collapsible-timing-function"]: timingFunction
63
+ };
64
+ return /* @__PURE__ */ jsx(
65
+ "div",
66
+ {
67
+ ref: outerRef,
68
+ "data-slot": "collapsible-content",
69
+ "data-state": open ? "open" : "closed",
70
+ onTransitionEnd: handleTransitionEnd,
71
+ style: mergedStyle,
72
+ class: cn(
73
+ "min-h-0 overflow-hidden",
74
+ (isAnimatingOpen || isAnimatingClose) && "will-change-[height]"
75
+ ),
76
+ "aria-hidden": !open && !isAnimatingClose,
77
+ inert: !open || void 0,
78
+ ...rest,
79
+ children: /* @__PURE__ */ jsx(
80
+ "div",
81
+ {
82
+ ref: innerRef,
83
+ "data-slot": "collapsible-content-inner",
84
+ class: cn("min-h-0 min-w-0", className),
85
+ children
86
+ }
87
+ )
88
+ }
89
+ );
90
+ };
91
+ var callRef = (ref, node) => {
92
+ if (typeof ref === "function") {
93
+ ref(node);
94
+ } else if (ref && typeof ref === "object" && "current" in ref) {
95
+ ref.current = node;
96
+ }
97
+ };
98
+ var CollapsibleTrigger = ({
99
+ asChild = false,
100
+ children,
101
+ onClick,
102
+ ref: outerRef,
103
+ "data-slot": dataSlot = "collapsible-trigger",
104
+ ...rest
105
+ }) => {
106
+ const { open, setOpen } = useCollapsible();
107
+ const toggle = () => setOpen(!open);
108
+ const handleClick = (event) => {
109
+ onClick?.(event);
110
+ if (event.defaultPrevented) return;
111
+ toggle();
112
+ };
113
+ if (asChild) {
114
+ if (!isValidElement(children)) {
115
+ return null;
116
+ }
117
+ const childProps = children.props ?? {};
118
+ return cloneElement(children, {
119
+ ...childProps,
120
+ ...rest,
121
+ "aria-expanded": open,
122
+ "data-state": open ? "open" : "closed",
123
+ "data-slot": dataSlot,
124
+ onClick: (event) => {
125
+ childProps.onClick?.(event);
126
+ handleClick(event);
127
+ },
128
+ ref: (node) => {
129
+ callRef(childProps.ref, node);
130
+ callRef(outerRef, node);
131
+ }
132
+ });
133
+ }
134
+ return /* @__PURE__ */ jsx(
135
+ "button",
136
+ {
137
+ type: "button",
138
+ "data-slot": dataSlot,
139
+ "aria-expanded": open,
140
+ "data-state": open ? "open" : "closed",
141
+ onClick: (event) => {
142
+ handleClick(event);
143
+ },
144
+ ref: (node) => {
145
+ callRef(outerRef, node);
146
+ },
147
+ ...rest,
148
+ children
149
+ }
150
+ );
151
+ };
152
+
153
+ // src/components/collapsible/index.ts
154
+ var collapsible_default = {
155
+ Root: Collapsible,
156
+ Trigger: CollapsibleTrigger,
157
+ Content: CollapsibleContent
158
+ };
159
+
160
+ export { Collapsible, CollapsibleContent, CollapsibleTrigger, collapsible_default, useCollapsible };
161
+ //# sourceMappingURL=chunk-2UTJHQTS.js.map
162
+ //# sourceMappingURL=chunk-2UTJHQTS.js.map