react-start-kit 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (531) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +99 -0
  3. package/dist/accordion/index.cjs.js +2 -0
  4. package/dist/accordion/index.cjs.js.map +1 -0
  5. package/dist/accordion/index.es.js +287 -0
  6. package/dist/accordion/index.es.js.map +1 -0
  7. package/dist/alert/index.cjs.js +2 -0
  8. package/dist/alert/index.cjs.js.map +1 -0
  9. package/dist/alert/index.es.js +8 -0
  10. package/dist/alert/index.es.js.map +1 -0
  11. package/dist/alert-dialog/index.cjs.js +2 -0
  12. package/dist/alert-dialog/index.cjs.js.map +1 -0
  13. package/dist/alert-dialog/index.es.js +15 -0
  14. package/dist/alert-dialog/index.es.js.map +1 -0
  15. package/dist/avatar/index.cjs.js +2 -0
  16. package/dist/avatar/index.cjs.js.map +1 -0
  17. package/dist/avatar/index.es.js +8 -0
  18. package/dist/avatar/index.es.js.map +1 -0
  19. package/dist/badge/index.cjs.js +2 -0
  20. package/dist/badge/index.cjs.js.map +1 -0
  21. package/dist/badge/index.es.js +6 -0
  22. package/dist/badge/index.es.js.map +1 -0
  23. package/dist/breadcrumb/index.cjs.js +2 -0
  24. package/dist/breadcrumb/index.cjs.js.map +1 -0
  25. package/dist/breadcrumb/index.es.js +10 -0
  26. package/dist/breadcrumb/index.es.js.map +1 -0
  27. package/dist/button/index.cjs.js +2 -0
  28. package/dist/button/index.cjs.js.map +1 -0
  29. package/dist/button/index.es.js +11 -0
  30. package/dist/button/index.es.js.map +1 -0
  31. package/dist/calendar/index.cjs.js +2 -0
  32. package/dist/calendar/index.cjs.js.map +1 -0
  33. package/dist/calendar/index.es.js +11 -0
  34. package/dist/calendar/index.es.js.map +1 -0
  35. package/dist/card/index.cjs.js +2 -0
  36. package/dist/card/index.cjs.js.map +1 -0
  37. package/dist/card/index.es.js +10 -0
  38. package/dist/card/index.es.js.map +1 -0
  39. package/dist/carousel/index.cjs.js +12 -0
  40. package/dist/carousel/index.cjs.js.map +1 -0
  41. package/dist/carousel/index.es.js +1441 -0
  42. package/dist/carousel/index.es.js.map +1 -0
  43. package/dist/chunks/_commonjsHelpers-DKOUU3wS.cjs.js +2 -0
  44. package/dist/chunks/_commonjsHelpers-DKOUU3wS.cjs.js.map +1 -0
  45. package/dist/chunks/_commonjsHelpers-DaMA6jEr.es.js +9 -0
  46. package/dist/chunks/_commonjsHelpers-DaMA6jEr.es.js.map +1 -0
  47. package/dist/chunks/alert-B9rImkiX.es.js +53 -0
  48. package/dist/chunks/alert-B9rImkiX.es.js.map +1 -0
  49. package/dist/chunks/alert-BNcf_eJn.cjs.js +2 -0
  50. package/dist/chunks/alert-BNcf_eJn.cjs.js.map +1 -0
  51. package/dist/chunks/alert-dialog-BfBtlIHj.cjs.js +8 -0
  52. package/dist/chunks/alert-dialog-BfBtlIHj.cjs.js.map +1 -0
  53. package/dist/chunks/alert-dialog-BrCPhmhd.es.js +209 -0
  54. package/dist/chunks/alert-dialog-BrCPhmhd.es.js.map +1 -0
  55. package/dist/chunks/avatar-CQMWDnOM.cjs.js +18 -0
  56. package/dist/chunks/avatar-CQMWDnOM.cjs.js.map +1 -0
  57. package/dist/chunks/avatar-zl4cf4c2.es.js +333 -0
  58. package/dist/chunks/avatar-zl4cf4c2.es.js.map +1 -0
  59. package/dist/chunks/badge-1ocx6hox.cjs.js +2 -0
  60. package/dist/chunks/badge-1ocx6hox.cjs.js.map +1 -0
  61. package/dist/chunks/badge-CPzxgRrM.es.js +75 -0
  62. package/dist/chunks/badge-CPzxgRrM.es.js.map +1 -0
  63. package/dist/chunks/breadcrumb-BrMrkZfa.es.js +82 -0
  64. package/dist/chunks/breadcrumb-BrMrkZfa.es.js.map +1 -0
  65. package/dist/chunks/breadcrumb-iPT-f06l.cjs.js +2 -0
  66. package/dist/chunks/breadcrumb-iPT-f06l.cjs.js.map +1 -0
  67. package/dist/chunks/button-CpKtD3qG.cjs.js +2 -0
  68. package/dist/chunks/button-CpKtD3qG.cjs.js.map +1 -0
  69. package/dist/chunks/button-DTRIYqDb.es.js +50 -0
  70. package/dist/chunks/button-DTRIYqDb.es.js.map +1 -0
  71. package/dist/chunks/button-group-B4h4-5eB.es.js +76 -0
  72. package/dist/chunks/button-group-B4h4-5eB.es.js.map +1 -0
  73. package/dist/chunks/button-group-CaFYso6b.cjs.js +2 -0
  74. package/dist/chunks/button-group-CaFYso6b.cjs.js.map +1 -0
  75. package/dist/chunks/card-B1sx5mON.cjs.js +2 -0
  76. package/dist/chunks/card-B1sx5mON.cjs.js.map +1 -0
  77. package/dist/chunks/card-BJ0eqFqO.es.js +74 -0
  78. package/dist/chunks/card-BJ0eqFqO.es.js.map +1 -0
  79. package/dist/chunks/check-B6UTraXT.cjs.js +7 -0
  80. package/dist/chunks/check-B6UTraXT.cjs.js.map +1 -0
  81. package/dist/chunks/check-DFKaRaBZ.es.js +12 -0
  82. package/dist/chunks/check-DFKaRaBZ.es.js.map +1 -0
  83. package/dist/chunks/chevron-down-DDxUy1A2.es.js +12 -0
  84. package/dist/chunks/chevron-down-DDxUy1A2.es.js.map +1 -0
  85. package/dist/chunks/chevron-down-T-PkxHnH.cjs.js +7 -0
  86. package/dist/chunks/chevron-down-T-PkxHnH.cjs.js.map +1 -0
  87. package/dist/chunks/chevron-left-B_pqqZqr.cjs.js +7 -0
  88. package/dist/chunks/chevron-left-B_pqqZqr.cjs.js.map +1 -0
  89. package/dist/chunks/chevron-left-CfOUdNQ0.es.js +12 -0
  90. package/dist/chunks/chevron-left-CfOUdNQ0.es.js.map +1 -0
  91. package/dist/chunks/chevron-right-BNG-Ugyb.es.js +12 -0
  92. package/dist/chunks/chevron-right-BNG-Ugyb.es.js.map +1 -0
  93. package/dist/chunks/chevron-right-BxyusM7v.cjs.js +7 -0
  94. package/dist/chunks/chevron-right-BxyusM7v.cjs.js.map +1 -0
  95. package/dist/chunks/circle--GxygOe5.es.js +12 -0
  96. package/dist/chunks/circle--GxygOe5.es.js.map +1 -0
  97. package/dist/chunks/circle-DjcntFbc.cjs.js +7 -0
  98. package/dist/chunks/circle-DjcntFbc.cjs.js.map +1 -0
  99. package/dist/chunks/collapsible-CBOSWBKB.cjs.js +2 -0
  100. package/dist/chunks/collapsible-CBOSWBKB.cjs.js.map +1 -0
  101. package/dist/chunks/collapsible-Ddd6kxXS.es.js +35 -0
  102. package/dist/chunks/collapsible-Ddd6kxXS.es.js.map +1 -0
  103. package/dist/chunks/createLucideIcon-CyFYF6Ug.es.js +124 -0
  104. package/dist/chunks/createLucideIcon-CyFYF6Ug.es.js.map +1 -0
  105. package/dist/chunks/createLucideIcon-HtK0p34L.cjs.js +42 -0
  106. package/dist/chunks/createLucideIcon-HtK0p34L.cjs.js.map +1 -0
  107. package/dist/chunks/dialog-BWF5BkHj.cjs.js +2 -0
  108. package/dist/chunks/dialog-BWF5BkHj.cjs.js.map +1 -0
  109. package/dist/chunks/dialog-D9BMBoAJ.es.js +105 -0
  110. package/dist/chunks/dialog-D9BMBoAJ.es.js.map +1 -0
  111. package/dist/chunks/dropdown-menu-Bu9wADja.cjs.js +2 -0
  112. package/dist/chunks/dropdown-menu-Bu9wADja.cjs.js.map +1 -0
  113. package/dist/chunks/dropdown-menu-CcnxQ7Zj.es.js +980 -0
  114. package/dist/chunks/dropdown-menu-CcnxQ7Zj.es.js.map +1 -0
  115. package/dist/chunks/ellipsis-9FjKj8zv.es.js +16 -0
  116. package/dist/chunks/ellipsis-9FjKj8zv.es.js.map +1 -0
  117. package/dist/chunks/ellipsis-FJjSjEdP.cjs.js +7 -0
  118. package/dist/chunks/ellipsis-FJjSjEdP.cjs.js.map +1 -0
  119. package/dist/chunks/index-BKZjW6I1.es.js +692 -0
  120. package/dist/chunks/index-BKZjW6I1.es.js.map +1 -0
  121. package/dist/chunks/index-BVqmUhu5.es.js +221 -0
  122. package/dist/chunks/index-BVqmUhu5.es.js.map +1 -0
  123. package/dist/chunks/index-BdfbDt7y.es.js +64 -0
  124. package/dist/chunks/index-BdfbDt7y.es.js.map +1 -0
  125. package/dist/chunks/index-Bli6ZByj.es.js +1571 -0
  126. package/dist/chunks/index-Bli6ZByj.es.js.map +1 -0
  127. package/dist/chunks/index-Br4MVOGV.es.js +12 -0
  128. package/dist/chunks/index-Br4MVOGV.es.js.map +1 -0
  129. package/dist/chunks/index-BruMW80s.cjs.js +2 -0
  130. package/dist/chunks/index-BruMW80s.cjs.js.map +1 -0
  131. package/dist/chunks/index-C28jaZCP.cjs.js +2 -0
  132. package/dist/chunks/index-C28jaZCP.cjs.js.map +1 -0
  133. package/dist/chunks/index-C8ni3LLa.cjs.js +2 -0
  134. package/dist/chunks/index-C8ni3LLa.cjs.js.map +1 -0
  135. package/dist/chunks/index-CGLGXpw0.cjs.js +2 -0
  136. package/dist/chunks/index-CGLGXpw0.cjs.js.map +1 -0
  137. package/dist/chunks/index-CItoM52t.cjs.js +2 -0
  138. package/dist/chunks/index-CItoM52t.cjs.js.map +1 -0
  139. package/dist/chunks/index-CJ0fGifh.cjs.js +2 -0
  140. package/dist/chunks/index-CJ0fGifh.cjs.js.map +1 -0
  141. package/dist/chunks/index-CMEUY8i_.cjs.js +2 -0
  142. package/dist/chunks/index-CMEUY8i_.cjs.js.map +1 -0
  143. package/dist/chunks/index-CN4RxFxN.cjs.js +2 -0
  144. package/dist/chunks/index-CN4RxFxN.cjs.js.map +1 -0
  145. package/dist/chunks/index-CNbacFZ5.es.js +116 -0
  146. package/dist/chunks/index-CNbacFZ5.es.js.map +1 -0
  147. package/dist/chunks/index-CbjDVb-G.es.js +93 -0
  148. package/dist/chunks/index-CbjDVb-G.es.js.map +1 -0
  149. package/dist/chunks/index-ClNIHY-1.es.js +134 -0
  150. package/dist/chunks/index-ClNIHY-1.es.js.map +1 -0
  151. package/dist/chunks/index-Clo5BFLY.es.js +32 -0
  152. package/dist/chunks/index-Clo5BFLY.es.js.map +1 -0
  153. package/dist/chunks/index-CtCzh8NB.cjs.js +6 -0
  154. package/dist/chunks/index-CtCzh8NB.cjs.js.map +1 -0
  155. package/dist/chunks/index-D9zW9Tk7.cjs.js +2 -0
  156. package/dist/chunks/index-D9zW9Tk7.cjs.js.map +1 -0
  157. package/dist/chunks/index-DBXFJW5M.es.js +11 -0
  158. package/dist/chunks/index-DBXFJW5M.es.js.map +1 -0
  159. package/dist/chunks/index-DG15yxNP.cjs.js +42 -0
  160. package/dist/chunks/index-DG15yxNP.cjs.js.map +1 -0
  161. package/dist/chunks/index-DGEvZwN5.cjs.js +2 -0
  162. package/dist/chunks/index-DGEvZwN5.cjs.js.map +1 -0
  163. package/dist/chunks/index-DLcqcWxM.es.js +30 -0
  164. package/dist/chunks/index-DLcqcWxM.es.js.map +1 -0
  165. package/dist/chunks/index-DNQZbZsM.es.js +179 -0
  166. package/dist/chunks/index-DNQZbZsM.es.js.map +1 -0
  167. package/dist/chunks/index-DnRKXUWD.cjs.js +2 -0
  168. package/dist/chunks/index-DnRKXUWD.cjs.js.map +1 -0
  169. package/dist/chunks/index-Dt3MSLsk.es.js +7 -0
  170. package/dist/chunks/index-Dt3MSLsk.es.js.map +1 -0
  171. package/dist/chunks/index-DvGm4EwH.es.js +62 -0
  172. package/dist/chunks/index-DvGm4EwH.es.js.map +1 -0
  173. package/dist/chunks/index-DwYXX2sM.es.js +14 -0
  174. package/dist/chunks/index-DwYXX2sM.es.js.map +1 -0
  175. package/dist/chunks/index-is755vrc.cjs.js +2 -0
  176. package/dist/chunks/index-is755vrc.cjs.js.map +1 -0
  177. package/dist/chunks/index-jFOWwfD3.cjs.js +2 -0
  178. package/dist/chunks/index-jFOWwfD3.cjs.js.map +1 -0
  179. package/dist/chunks/index-pF_O2Ico.cjs.js +2 -0
  180. package/dist/chunks/index-pF_O2Ico.cjs.js.map +1 -0
  181. package/dist/chunks/index-pQxT4IlV.cjs.js +2 -0
  182. package/dist/chunks/index-pQxT4IlV.cjs.js.map +1 -0
  183. package/dist/chunks/index-rKs9bXHr.es.js +7 -0
  184. package/dist/chunks/index-rKs9bXHr.es.js.map +1 -0
  185. package/dist/chunks/index-xA4mlFw5.es.js +35 -0
  186. package/dist/chunks/index-xA4mlFw5.es.js.map +1 -0
  187. package/dist/chunks/index-x_Mxo00P.cjs.js +2 -0
  188. package/dist/chunks/index-x_Mxo00P.cjs.js.map +1 -0
  189. package/dist/chunks/index-xl-szYFX.es.js +290 -0
  190. package/dist/chunks/index-xl-szYFX.es.js.map +1 -0
  191. package/dist/chunks/pagination-DFYeehFF.es.js +113 -0
  192. package/dist/chunks/pagination-DFYeehFF.es.js.map +1 -0
  193. package/dist/chunks/pagination-LHTb7tXo.cjs.js +2 -0
  194. package/dist/chunks/pagination-LHTb7tXo.cjs.js.map +1 -0
  195. package/dist/chunks/popover-Bh6emR_J.cjs.js +2 -0
  196. package/dist/chunks/popover-Bh6emR_J.cjs.js.map +1 -0
  197. package/dist/chunks/popover-BredK0sg.es.js +285 -0
  198. package/dist/chunks/popover-BredK0sg.es.js.map +1 -0
  199. package/dist/chunks/scroll-area-CwWjTiks.es.js +555 -0
  200. package/dist/chunks/scroll-area-CwWjTiks.es.js.map +1 -0
  201. package/dist/chunks/scroll-area-Nj6J9MqV.cjs.js +2 -0
  202. package/dist/chunks/scroll-area-Nj6J9MqV.cjs.js.map +1 -0
  203. package/dist/chunks/select-BTgKkicD.es.js +1404 -0
  204. package/dist/chunks/select-BTgKkicD.es.js.map +1 -0
  205. package/dist/chunks/select-D703Xctn.cjs.js +7 -0
  206. package/dist/chunks/select-D703Xctn.cjs.js.map +1 -0
  207. package/dist/chunks/separator-CGvV-BlI.cjs.js +2 -0
  208. package/dist/chunks/separator-CGvV-BlI.cjs.js.map +1 -0
  209. package/dist/chunks/separator-CgP4OHOF.es.js +67 -0
  210. package/dist/chunks/separator-CgP4OHOF.es.js.map +1 -0
  211. package/dist/chunks/sheet-BL1AP0aU.cjs.js +2 -0
  212. package/dist/chunks/sheet-BL1AP0aU.cjs.js.map +1 -0
  213. package/dist/chunks/sheet-CKsRhiVy.es.js +136 -0
  214. package/dist/chunks/sheet-CKsRhiVy.es.js.map +1 -0
  215. package/dist/chunks/skeleton-C7pnV7bc.cjs.js +2 -0
  216. package/dist/chunks/skeleton-C7pnV7bc.cjs.js.map +1 -0
  217. package/dist/chunks/skeleton-DKbF2Fso.es.js +18 -0
  218. package/dist/chunks/skeleton-DKbF2Fso.es.js.map +1 -0
  219. package/dist/chunks/table-BTb0KUhR.es.js +90 -0
  220. package/dist/chunks/table-BTb0KUhR.es.js.map +1 -0
  221. package/dist/chunks/table-Dxainp0Z.cjs.js +2 -0
  222. package/dist/chunks/table-Dxainp0Z.cjs.js.map +1 -0
  223. package/dist/chunks/tabs-BnamvF0S.es.js +317 -0
  224. package/dist/chunks/tabs-BnamvF0S.es.js.map +1 -0
  225. package/dist/chunks/tabs-CDt2LiNL.cjs.js +6 -0
  226. package/dist/chunks/tabs-CDt2LiNL.cjs.js.map +1 -0
  227. package/dist/chunks/textarea-4zXXFdLZ.cjs.js +187 -0
  228. package/dist/chunks/textarea-4zXXFdLZ.cjs.js.map +1 -0
  229. package/dist/chunks/textarea-CBSWNU0D.es.js +17234 -0
  230. package/dist/chunks/textarea-CBSWNU0D.es.js.map +1 -0
  231. package/dist/chunks/timepicker-CVkum2UK.es.js +3394 -0
  232. package/dist/chunks/timepicker-CVkum2UK.es.js.map +1 -0
  233. package/dist/chunks/timepicker-nlKbDl_W.cjs.js +7 -0
  234. package/dist/chunks/timepicker-nlKbDl_W.cjs.js.map +1 -0
  235. package/dist/chunks/tooltip-CsZB0nVr.cjs.js +2 -0
  236. package/dist/chunks/tooltip-CsZB0nVr.cjs.js.map +1 -0
  237. package/dist/chunks/tooltip-Dtzkuphk.es.js +341 -0
  238. package/dist/chunks/tooltip-Dtzkuphk.es.js.map +1 -0
  239. package/dist/chunks/utils-C4d7Ql9-.cjs.js +2 -0
  240. package/dist/chunks/utils-C4d7Ql9-.cjs.js.map +1 -0
  241. package/dist/chunks/utils-CnvKSirc.es.js +2778 -0
  242. package/dist/chunks/utils-CnvKSirc.es.js.map +1 -0
  243. package/dist/chunks/x-8d8XBbXN.es.js +15 -0
  244. package/dist/chunks/x-8d8XBbXN.es.js.map +1 -0
  245. package/dist/chunks/x-Ev63aQi_.cjs.js +7 -0
  246. package/dist/chunks/x-Ev63aQi_.cjs.js.map +1 -0
  247. package/dist/collapsible/index.cjs.js +2 -0
  248. package/dist/collapsible/index.cjs.js.map +1 -0
  249. package/dist/collapsible/index.es.js +7 -0
  250. package/dist/collapsible/index.es.js.map +1 -0
  251. package/dist/dialog/index.cjs.js +2 -0
  252. package/dist/dialog/index.cjs.js.map +1 -0
  253. package/dist/dialog/index.es.js +14 -0
  254. package/dist/dialog/index.es.js.map +1 -0
  255. package/dist/dropdown/index.cjs.js +2 -0
  256. package/dist/dropdown/index.cjs.js.map +1 -0
  257. package/dist/dropdown/index.es.js +19 -0
  258. package/dist/dropdown/index.es.js.map +1 -0
  259. package/dist/form/index.cjs.js +2 -0
  260. package/dist/form/index.cjs.js.map +1 -0
  261. package/dist/form/index.es.js +36 -0
  262. package/dist/form/index.es.js.map +1 -0
  263. package/dist/index.cjs.js +2 -0
  264. package/dist/index.cjs.js.map +1 -0
  265. package/dist/index.es.js +171 -0
  266. package/dist/index.es.js.map +1 -0
  267. package/dist/pagination/index.cjs.js +2 -0
  268. package/dist/pagination/index.cjs.js.map +1 -0
  269. package/dist/pagination/index.es.js +11 -0
  270. package/dist/pagination/index.es.js.map +1 -0
  271. package/dist/popover/index.cjs.js +2 -0
  272. package/dist/popover/index.cjs.js.map +1 -0
  273. package/dist/popover/index.es.js +7 -0
  274. package/dist/popover/index.es.js.map +1 -0
  275. package/dist/progress/index.cjs.js +7 -0
  276. package/dist/progress/index.cjs.js.map +1 -0
  277. package/dist/progress/index.es.js +194 -0
  278. package/dist/progress/index.es.js.map +1 -0
  279. package/dist/scroll-area/index.cjs.js +2 -0
  280. package/dist/scroll-area/index.cjs.js.map +1 -0
  281. package/dist/scroll-area/index.es.js +6 -0
  282. package/dist/scroll-area/index.es.js.map +1 -0
  283. package/dist/separator/index.cjs.js +2 -0
  284. package/dist/separator/index.cjs.js.map +1 -0
  285. package/dist/separator/index.es.js +5 -0
  286. package/dist/separator/index.es.js.map +1 -0
  287. package/dist/sheet/index.cjs.js +2 -0
  288. package/dist/sheet/index.cjs.js.map +1 -0
  289. package/dist/sheet/index.es.js +12 -0
  290. package/dist/sheet/index.es.js.map +1 -0
  291. package/dist/skeleton/index.cjs.js +2 -0
  292. package/dist/skeleton/index.cjs.js.map +1 -0
  293. package/dist/skeleton/index.es.js +5 -0
  294. package/dist/skeleton/index.es.js.map +1 -0
  295. package/dist/styles.css +7 -0
  296. package/dist/tab/index.cjs.js +2 -0
  297. package/dist/tab/index.cjs.js.map +1 -0
  298. package/dist/tab/index.es.js +8 -0
  299. package/dist/tab/index.es.js.map +1 -0
  300. package/dist/table/index.cjs.js +2 -0
  301. package/dist/table/index.cjs.js.map +1 -0
  302. package/dist/table/index.es.js +12 -0
  303. package/dist/table/index.es.js.map +1 -0
  304. package/dist/tooltip/index.cjs.js +2 -0
  305. package/dist/tooltip/index.cjs.js.map +1 -0
  306. package/dist/tooltip/index.es.js +8 -0
  307. package/dist/tooltip/index.es.js.map +1 -0
  308. package/dist/types/App.d.ts +9 -0
  309. package/dist/types/App.d.ts.map +1 -0
  310. package/dist/types/hooks/use-mobile.d.ts +8 -0
  311. package/dist/types/hooks/use-mobile.d.ts.map +1 -0
  312. package/dist/types/index.d.ts +28 -0
  313. package/dist/types/index.d.ts.map +1 -0
  314. package/dist/types/lib/day.d.ts +7 -0
  315. package/dist/types/lib/day.d.ts.map +1 -0
  316. package/dist/types/lib/index.d.ts +6 -0
  317. package/dist/types/lib/index.d.ts.map +1 -0
  318. package/dist/types/lib/utils.d.ts +10 -0
  319. package/dist/types/lib/utils.d.ts.map +1 -0
  320. package/dist/types/main.d.ts +1 -0
  321. package/dist/types/main.d.ts.map +1 -0
  322. package/dist/types/stories/Accordion.stories.d.ts +17 -0
  323. package/dist/types/stories/Accordion.stories.d.ts.map +1 -0
  324. package/dist/types/stories/Alert.stories.d.ts +26 -0
  325. package/dist/types/stories/Alert.stories.d.ts.map +1 -0
  326. package/dist/types/stories/AlertDialog.stories.d.ts +18 -0
  327. package/dist/types/stories/AlertDialog.stories.d.ts.map +1 -0
  328. package/dist/types/stories/Avatar.stories.d.ts +27 -0
  329. package/dist/types/stories/Avatar.stories.d.ts.map +1 -0
  330. package/dist/types/stories/Badge.stories.d.ts +44 -0
  331. package/dist/types/stories/Badge.stories.d.ts.map +1 -0
  332. package/dist/types/stories/Breadcrumb.stories.d.ts +20 -0
  333. package/dist/types/stories/Breadcrumb.stories.d.ts.map +1 -0
  334. package/dist/types/stories/Button.stories.d.ts +48 -0
  335. package/dist/types/stories/Button.stories.d.ts.map +1 -0
  336. package/dist/types/stories/ButtonGroup.stories.d.ts +29 -0
  337. package/dist/types/stories/ButtonGroup.stories.d.ts.map +1 -0
  338. package/dist/types/stories/Calendar.stories.d.ts +35 -0
  339. package/dist/types/stories/Calendar.stories.d.ts.map +1 -0
  340. package/dist/types/stories/Card.stories.d.ts +17 -0
  341. package/dist/types/stories/Card.stories.d.ts.map +1 -0
  342. package/dist/types/stories/Carousel.stories.d.ts +23 -0
  343. package/dist/types/stories/Carousel.stories.d.ts.map +1 -0
  344. package/dist/types/stories/Checkbox.stories.d.ts +31 -0
  345. package/dist/types/stories/Checkbox.stories.d.ts.map +1 -0
  346. package/dist/types/stories/Collapsible.stories.d.ts +17 -0
  347. package/dist/types/stories/Collapsible.stories.d.ts.map +1 -0
  348. package/dist/types/stories/DatePicker.stories.d.ts +14 -0
  349. package/dist/types/stories/DatePicker.stories.d.ts.map +1 -0
  350. package/dist/types/stories/Dialog.stories.d.ts +18 -0
  351. package/dist/types/stories/Dialog.stories.d.ts.map +1 -0
  352. package/dist/types/stories/DropdownMenu.stories.d.ts +17 -0
  353. package/dist/types/stories/DropdownMenu.stories.d.ts.map +1 -0
  354. package/dist/types/stories/FilepondContainer.stories.d.ts +21 -0
  355. package/dist/types/stories/FilepondContainer.stories.d.ts.map +1 -0
  356. package/dist/types/stories/Form.stories.d.ts +15 -0
  357. package/dist/types/stories/Form.stories.d.ts.map +1 -0
  358. package/dist/types/stories/HtmlEditor.stories.d.ts +27 -0
  359. package/dist/types/stories/HtmlEditor.stories.d.ts.map +1 -0
  360. package/dist/types/stories/Input.stories.d.ts +40 -0
  361. package/dist/types/stories/Input.stories.d.ts.map +1 -0
  362. package/dist/types/stories/Label.stories.d.ts +19 -0
  363. package/dist/types/stories/Label.stories.d.ts.map +1 -0
  364. package/dist/types/stories/MaskInput.stories.d.ts +115 -0
  365. package/dist/types/stories/MaskInput.stories.d.ts.map +1 -0
  366. package/dist/types/stories/Pagination.stories.d.ts +21 -0
  367. package/dist/types/stories/Pagination.stories.d.ts.map +1 -0
  368. package/dist/types/stories/Popover.stories.d.ts +17 -0
  369. package/dist/types/stories/Popover.stories.d.ts.map +1 -0
  370. package/dist/types/stories/Progress.stories.d.ts +33 -0
  371. package/dist/types/stories/Progress.stories.d.ts.map +1 -0
  372. package/dist/types/stories/RadioGroup.stories.d.ts +18 -0
  373. package/dist/types/stories/RadioGroup.stories.d.ts.map +1 -0
  374. package/dist/types/stories/ReactSelect.stories.d.ts +39 -0
  375. package/dist/types/stories/ReactSelect.stories.d.ts.map +1 -0
  376. package/dist/types/stories/ScrollArea.stories.d.ts +18 -0
  377. package/dist/types/stories/ScrollArea.stories.d.ts.map +1 -0
  378. package/dist/types/stories/Select.stories.d.ts +18 -0
  379. package/dist/types/stories/Select.stories.d.ts.map +1 -0
  380. package/dist/types/stories/Separator.stories.d.ts +28 -0
  381. package/dist/types/stories/Separator.stories.d.ts.map +1 -0
  382. package/dist/types/stories/Sheet.stories.d.ts +21 -0
  383. package/dist/types/stories/Sheet.stories.d.ts.map +1 -0
  384. package/dist/types/stories/Skeleton.stories.d.ts +22 -0
  385. package/dist/types/stories/Skeleton.stories.d.ts.map +1 -0
  386. package/dist/types/stories/Switch.stories.d.ts +29 -0
  387. package/dist/types/stories/Switch.stories.d.ts.map +1 -0
  388. package/dist/types/stories/Table.stories.d.ts +17 -0
  389. package/dist/types/stories/Table.stories.d.ts.map +1 -0
  390. package/dist/types/stories/Tabs.stories.d.ts +19 -0
  391. package/dist/types/stories/Tabs.stories.d.ts.map +1 -0
  392. package/dist/types/stories/Textarea.stories.d.ts +34 -0
  393. package/dist/types/stories/Textarea.stories.d.ts.map +1 -0
  394. package/dist/types/stories/TimePicker.stories.d.ts +33 -0
  395. package/dist/types/stories/TimePicker.stories.d.ts.map +1 -0
  396. package/dist/types/stories/Tooltip.stories.d.ts +27 -0
  397. package/dist/types/stories/Tooltip.stories.d.ts.map +1 -0
  398. package/dist/types/types/element-data.type.d.ts +8 -0
  399. package/dist/types/types/element-data.type.d.ts.map +1 -0
  400. package/dist/types/types/index.d.ts +2 -0
  401. package/dist/types/types/index.d.ts.map +1 -0
  402. package/dist/types/ui/accordion/accordion.d.ts +69 -0
  403. package/dist/types/ui/accordion/accordion.d.ts.map +1 -0
  404. package/dist/types/ui/accordion/index.d.ts +2 -0
  405. package/dist/types/ui/accordion/index.d.ts.map +1 -0
  406. package/dist/types/ui/alert/alert.d.ts +31 -0
  407. package/dist/types/ui/alert/alert.d.ts.map +1 -0
  408. package/dist/types/ui/alert/index.d.ts +2 -0
  409. package/dist/types/ui/alert/index.d.ts.map +1 -0
  410. package/dist/types/ui/alert-dialog/alert-dialog.d.ts +62 -0
  411. package/dist/types/ui/alert-dialog/alert-dialog.d.ts.map +1 -0
  412. package/dist/types/ui/alert-dialog/index.d.ts +2 -0
  413. package/dist/types/ui/alert-dialog/index.d.ts.map +1 -0
  414. package/dist/types/ui/avatar/avatar.d.ts +86 -0
  415. package/dist/types/ui/avatar/avatar.d.ts.map +1 -0
  416. package/dist/types/ui/avatar/index.d.ts +2 -0
  417. package/dist/types/ui/avatar/index.d.ts.map +1 -0
  418. package/dist/types/ui/badge/badge.d.ts +45 -0
  419. package/dist/types/ui/badge/badge.d.ts.map +1 -0
  420. package/dist/types/ui/badge/index.d.ts +2 -0
  421. package/dist/types/ui/badge/index.d.ts.map +1 -0
  422. package/dist/types/ui/breadcrumb/breadcrumb.d.ts +60 -0
  423. package/dist/types/ui/breadcrumb/breadcrumb.d.ts.map +1 -0
  424. package/dist/types/ui/breadcrumb/index.d.ts +2 -0
  425. package/dist/types/ui/breadcrumb/index.d.ts.map +1 -0
  426. package/dist/types/ui/button/button-group.d.ts +43 -0
  427. package/dist/types/ui/button/button-group.d.ts.map +1 -0
  428. package/dist/types/ui/button/button.d.ts +42 -0
  429. package/dist/types/ui/button/button.d.ts.map +1 -0
  430. package/dist/types/ui/button/index.d.ts +3 -0
  431. package/dist/types/ui/button/index.d.ts.map +1 -0
  432. package/dist/types/ui/calendar/calendar.d.ts +84 -0
  433. package/dist/types/ui/calendar/calendar.d.ts.map +1 -0
  434. package/dist/types/ui/calendar/datepicker.d.ts +8 -0
  435. package/dist/types/ui/calendar/datepicker.d.ts.map +1 -0
  436. package/dist/types/ui/calendar/index.d.ts +4 -0
  437. package/dist/types/ui/calendar/index.d.ts.map +1 -0
  438. package/dist/types/ui/calendar/timepicker.d.ts +38 -0
  439. package/dist/types/ui/calendar/timepicker.d.ts.map +1 -0
  440. package/dist/types/ui/card/card.d.ts +39 -0
  441. package/dist/types/ui/card/card.d.ts.map +1 -0
  442. package/dist/types/ui/card/index.d.ts +2 -0
  443. package/dist/types/ui/card/index.d.ts.map +1 -0
  444. package/dist/types/ui/carousel/carousel.d.ts +73 -0
  445. package/dist/types/ui/carousel/carousel.d.ts.map +1 -0
  446. package/dist/types/ui/carousel/index.d.ts +2 -0
  447. package/dist/types/ui/carousel/index.d.ts.map +1 -0
  448. package/dist/types/ui/collapsible/collapsible.d.ts +18 -0
  449. package/dist/types/ui/collapsible/collapsible.d.ts.map +1 -0
  450. package/dist/types/ui/collapsible/index.d.ts +2 -0
  451. package/dist/types/ui/collapsible/index.d.ts.map +1 -0
  452. package/dist/types/ui/dialog/dialog.d.ts +76 -0
  453. package/dist/types/ui/dialog/dialog.d.ts.map +1 -0
  454. package/dist/types/ui/dialog/index.d.ts +2 -0
  455. package/dist/types/ui/dialog/index.d.ts.map +1 -0
  456. package/dist/types/ui/dropdown/dropdown-menu.d.ts +88 -0
  457. package/dist/types/ui/dropdown/dropdown-menu.d.ts.map +1 -0
  458. package/dist/types/ui/dropdown/index.d.ts +2 -0
  459. package/dist/types/ui/dropdown/index.d.ts.map +1 -0
  460. package/dist/types/ui/form/checkbox.d.ts +16 -0
  461. package/dist/types/ui/form/checkbox.d.ts.map +1 -0
  462. package/dist/types/ui/form/filepond-container.d.ts +25 -0
  463. package/dist/types/ui/form/filepond-container.d.ts.map +1 -0
  464. package/dist/types/ui/form/form.d.ts +68 -0
  465. package/dist/types/ui/form/form.d.ts.map +1 -0
  466. package/dist/types/ui/form/html-editor.d.ts +38 -0
  467. package/dist/types/ui/form/html-editor.d.ts.map +1 -0
  468. package/dist/types/ui/form/index.d.ts +13 -0
  469. package/dist/types/ui/form/index.d.ts.map +1 -0
  470. package/dist/types/ui/form/input-mask.d.ts +111 -0
  471. package/dist/types/ui/form/input-mask.d.ts.map +1 -0
  472. package/dist/types/ui/form/input.d.ts +33 -0
  473. package/dist/types/ui/form/input.d.ts.map +1 -0
  474. package/dist/types/ui/form/label.d.ts +11 -0
  475. package/dist/types/ui/form/label.d.ts.map +1 -0
  476. package/dist/types/ui/form/radio-group.d.ts +25 -0
  477. package/dist/types/ui/form/radio-group.d.ts.map +1 -0
  478. package/dist/types/ui/form/react-select.d.ts +40 -0
  479. package/dist/types/ui/form/react-select.d.ts.map +1 -0
  480. package/dist/types/ui/form/select.d.ts +100 -0
  481. package/dist/types/ui/form/select.d.ts.map +1 -0
  482. package/dist/types/ui/form/switch.d.ts +16 -0
  483. package/dist/types/ui/form/switch.d.ts.map +1 -0
  484. package/dist/types/ui/form/textarea.d.ts +19 -0
  485. package/dist/types/ui/form/textarea.d.ts.map +1 -0
  486. package/dist/types/ui/pagination/index.d.ts +2 -0
  487. package/dist/types/ui/pagination/index.d.ts.map +1 -0
  488. package/dist/types/ui/pagination/pagination.d.ts +78 -0
  489. package/dist/types/ui/pagination/pagination.d.ts.map +1 -0
  490. package/dist/types/ui/popover/index.d.ts +2 -0
  491. package/dist/types/ui/popover/index.d.ts.map +1 -0
  492. package/dist/types/ui/popover/popover.d.ts +29 -0
  493. package/dist/types/ui/popover/popover.d.ts.map +1 -0
  494. package/dist/types/ui/progress/index.d.ts +2 -0
  495. package/dist/types/ui/progress/index.d.ts.map +1 -0
  496. package/dist/types/ui/progress/progress.d.ts +14 -0
  497. package/dist/types/ui/progress/progress.d.ts.map +1 -0
  498. package/dist/types/ui/scroll-area/index.d.ts +2 -0
  499. package/dist/types/ui/scroll-area/index.d.ts.map +1 -0
  500. package/dist/types/ui/scroll-area/scroll-area.d.ts +20 -0
  501. package/dist/types/ui/scroll-area/scroll-area.d.ts.map +1 -0
  502. package/dist/types/ui/separator/index.d.ts +2 -0
  503. package/dist/types/ui/separator/index.d.ts.map +1 -0
  504. package/dist/types/ui/separator/separator.d.ts +13 -0
  505. package/dist/types/ui/separator/separator.d.ts.map +1 -0
  506. package/dist/types/ui/sheet/index.d.ts +2 -0
  507. package/dist/types/ui/sheet/index.d.ts.map +1 -0
  508. package/dist/types/ui/sheet/sheet.d.ts +61 -0
  509. package/dist/types/ui/sheet/sheet.d.ts.map +1 -0
  510. package/dist/types/ui/skeleton/index.d.ts +2 -0
  511. package/dist/types/ui/skeleton/index.d.ts.map +1 -0
  512. package/dist/types/ui/skeleton/skeleton.d.ts +8 -0
  513. package/dist/types/ui/skeleton/skeleton.d.ts.map +1 -0
  514. package/dist/types/ui/tab/index.d.ts +2 -0
  515. package/dist/types/ui/tab/index.d.ts.map +1 -0
  516. package/dist/types/ui/tab/tabs.d.ts +50 -0
  517. package/dist/types/ui/tab/tabs.d.ts.map +1 -0
  518. package/dist/types/ui/table/index.d.ts +2 -0
  519. package/dist/types/ui/table/index.d.ts.map +1 -0
  520. package/dist/types/ui/table/table.d.ts +43 -0
  521. package/dist/types/ui/table/table.d.ts.map +1 -0
  522. package/dist/types/ui/tooltip/index.d.ts +2 -0
  523. package/dist/types/ui/tooltip/index.d.ts.map +1 -0
  524. package/dist/types/ui/tooltip/tooltip.d.ts +15 -0
  525. package/dist/types/ui/tooltip/tooltip.d.ts.map +1 -0
  526. package/dist/types/vite-env.d.ts +1 -0
  527. package/dist/utils/index.cjs.js +2 -0
  528. package/dist/utils/index.cjs.js.map +1 -0
  529. package/dist/utils/index.es.js +287 -0
  530. package/dist/utils/index.es.js.map +1 -0
  531. package/package.json +366 -0
@@ -0,0 +1,113 @@
1
+ import { jsx as n, jsxs as m } from "react/jsx-runtime";
2
+ import * as r from "react";
3
+ import { useTranslation as e } from "react-i18next";
4
+ import { c as t } from "./utils-CnvKSirc.es.js";
5
+ import { b as c } from "./button-DTRIYqDb.es.js";
6
+ import { E as p } from "./ellipsis-9FjKj8zv.es.js";
7
+ import { C as g } from "./chevron-right-BNG-Ugyb.es.js";
8
+ import { C as f } from "./chevron-left-CfOUdNQ0.es.js";
9
+ const N = ({ className: i, ...a }) => /* @__PURE__ */ n(
10
+ "nav",
11
+ {
12
+ role: "navigation",
13
+ "aria-label": "pagination",
14
+ className: t("flex w-full justify-center", i),
15
+ ...a
16
+ }
17
+ );
18
+ N.displayName = "Pagination";
19
+ const d = r.forwardRef(({ className: i, ...a }, s) => /* @__PURE__ */ n(
20
+ "ul",
21
+ {
22
+ ref: s,
23
+ className: t("flex flex-row items-center gap-1", i),
24
+ ...a
25
+ }
26
+ ));
27
+ d.displayName = "PaginationContent";
28
+ const u = r.forwardRef(({ className: i, ...a }, s) => /* @__PURE__ */ n("li", { ref: s, className: t("", i), ...a }));
29
+ u.displayName = "PaginationItem";
30
+ const o = ({
31
+ className: i,
32
+ isActive: a,
33
+ size: s = "icon",
34
+ ...l
35
+ }) => /* @__PURE__ */ n(
36
+ "a",
37
+ {
38
+ "aria-current": a ? "page" : void 0,
39
+ className: t(
40
+ c({
41
+ variant: a ? "tertiary" : "ghost",
42
+ size: s
43
+ }),
44
+ "cursor-pointer",
45
+ i
46
+ ),
47
+ ...l
48
+ }
49
+ );
50
+ o.displayName = "PaginationLink";
51
+ const P = ({
52
+ className: i,
53
+ ...a
54
+ }) => {
55
+ const { t: s } = e();
56
+ return /* @__PURE__ */ n(
57
+ o,
58
+ {
59
+ "aria-label": s("Go to previous page"),
60
+ size: "default",
61
+ className: t("gap-1 px-2.5", i),
62
+ ...a,
63
+ children: /* @__PURE__ */ n(f, { className: "h-4 w-4" })
64
+ }
65
+ );
66
+ };
67
+ P.displayName = "PaginationPrevious";
68
+ const h = ({
69
+ className: i,
70
+ ...a
71
+ }) => {
72
+ const { t: s } = e();
73
+ return /* @__PURE__ */ n(
74
+ o,
75
+ {
76
+ "aria-label": s("Go to next page"),
77
+ size: "default",
78
+ className: t("gap-1 px-2.5", i),
79
+ ...a,
80
+ children: /* @__PURE__ */ n(g, { className: "h-4 w-4" })
81
+ }
82
+ );
83
+ };
84
+ h.displayName = "PaginationNext";
85
+ const x = ({
86
+ className: i,
87
+ ...a
88
+ }) => {
89
+ const { t: s } = e();
90
+ return /* @__PURE__ */ m(
91
+ "span",
92
+ {
93
+ "aria-hidden": !0,
94
+ className: t("flex h-9 w-9 items-center justify-center", i),
95
+ ...a,
96
+ children: [
97
+ /* @__PURE__ */ n(p, { className: "h-4 w-4" }),
98
+ /* @__PURE__ */ n("span", { className: "sr-only", children: s("More pages") })
99
+ ]
100
+ }
101
+ );
102
+ };
103
+ x.displayName = "PaginationEllipsis";
104
+ export {
105
+ N as P,
106
+ d as a,
107
+ x as b,
108
+ u as c,
109
+ o as d,
110
+ h as e,
111
+ P as f
112
+ };
113
+ //# sourceMappingURL=pagination-DFYeehFF.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagination-DFYeehFF.es.js","sources":["../../src/ui/pagination/pagination.tsx"],"sourcesContent":["import { ChevronLeft, ChevronRight, MoreHorizontal } from 'lucide-react';\nimport * as React from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { cn } from '../../lib';\nimport { type ButtonProps, buttonVariants } from '../button';\n\n/**\n * Pagination - Navigation component for paginated content.\n * @returns {JSX.Element} The rendered Pagination component.\n * @param {object} props - The properties for the component.\n * @param {string} [props.className] - Additional classes for the pagination component.\n */\nconst Pagination = ({ className, ...props }: React.ComponentProps<'nav'>) => (\n <nav\n role=\"navigation\"\n aria-label=\"pagination\"\n className={cn('flex w-full justify-center', className)}\n {...props}\n />\n);\nPagination.displayName = 'Pagination';\n\n/**\n * PaginationContent - Wrapper list for pagination items.\n * @returns {JSX.Element} The rendered PaginationContent component.\n * @param {object} props - The properties for the component.\n * @param {string} [props.className] - Additional classes for the pagination content component.\n */\nconst PaginationContent = React.forwardRef<\n HTMLUListElement,\n React.ComponentProps<'ul'>\n>(({ className, ...props }, ref) => (\n <ul\n ref={ref}\n className={cn('flex flex-row items-center gap-1', className)}\n {...props}\n />\n));\nPaginationContent.displayName = 'PaginationContent';\n\n/**\n * PaginationItem - List item wrapper.\n * @returns {JSX.Element} The rendered PaginationItem component.\n * @param {object} props - The properties for the component.\n * @param {string} [props.className] - Additional classes for the pagination item component.\n */\nconst PaginationItem = React.forwardRef<\n HTMLLIElement,\n React.ComponentProps<'li'>\n>(({ className, ...props }, ref) => (\n <li ref={ref} className={cn('', className)} {...props} />\n));\nPaginationItem.displayName = 'PaginationItem';\n\n/**\n * Props for PaginationLink.\n * @property {boolean} [isActive] - Marks the current page.\n * @property {'lg'|'default'|'sm'|'xs'|'icon'} [size] - Button size forwarded to Button variants.\n */\ntype PaginationLinkProps = {\n isActive?: boolean;\n} & Pick<ButtonProps, 'size'> &\n React.ComponentProps<'a'>;\n\n/**\n * PaginationLink - A styled anchor used as a pagination control.\n * @returns {JSX.Element} The rendered PaginationLink component.\n * @param {object} props - The properties for the component.\n * @param {string} [props.className] - Additional classes for the pagination link component.\n * @param {boolean} [props.isActive] - Marks the current page.\n * @param {string} [props.size] - The size of the pagination link.\n */\nconst PaginationLink = ({\n className,\n isActive,\n size = 'icon',\n ...props\n}: PaginationLinkProps) => (\n <a\n aria-current={isActive ? 'page' : undefined}\n className={cn(\n buttonVariants({\n variant: isActive ? 'tertiary' : 'ghost',\n size,\n }),\n 'cursor-pointer',\n className\n )}\n {...props}\n />\n);\nPaginationLink.displayName = 'PaginationLink';\n\n/**\n * PaginationPrevious - Button to navigate to previous page.\n * @returns {JSX.Element} The rendered PaginationPrevious component.\n * @param {object} props - The properties for the component.\n * @param {string} [props.className] - Additional classes for the pagination previous component.\n */\nconst PaginationPrevious = ({\n className,\n ...props\n}: React.ComponentProps<typeof PaginationLink>) => {\n const { t } = useTranslation();\n return (\n <PaginationLink\n aria-label={t('Go to previous page')}\n size=\"default\"\n className={cn('gap-1 px-2.5', className)}\n {...props}\n >\n <ChevronLeft className=\"h-4 w-4\" />\n </PaginationLink>\n );\n};\nPaginationPrevious.displayName = 'PaginationPrevious';\n\n/**\n * PaginationNext - Button to navigate to next page.\n * @returns {JSX.Element} The rendered PaginationNext component.\n * @param {object} props - The properties for the component.\n * @param {string} [props.className] - Additional classes for the pagination next component.\n */\nconst PaginationNext = ({\n className,\n ...props\n}: React.ComponentProps<typeof PaginationLink>) => {\n const { t } = useTranslation();\n return (\n <PaginationLink\n aria-label={t('Go to next page')}\n size=\"default\"\n className={cn('gap-1 px-2.5', className)}\n {...props}\n >\n <ChevronRight className=\"h-4 w-4\" />\n </PaginationLink>\n );\n};\nPaginationNext.displayName = 'PaginationNext';\n\n/**\n * PaginationEllipsis - Non-interactive indicator for collapsed pages.\n * @returns {JSX.Element} The rendered PaginationEllipsis component.\n * @param {object} props - The properties for the component.\n * @param {string} [props.className] - Additional classes for the pagination ellipsis component.\n */\nconst PaginationEllipsis = ({\n className,\n ...props\n}: React.ComponentProps<'span'>) => {\n const { t } = useTranslation();\n return (\n <span\n aria-hidden\n className={cn('flex h-9 w-9 items-center justify-center', className)}\n {...props}\n >\n <MoreHorizontal className=\"h-4 w-4\" />\n <span className=\"sr-only\">{t('More pages')}</span>\n </span>\n );\n};\nPaginationEllipsis.displayName = 'PaginationEllipsis';\n\nexport {\n Pagination,\n PaginationContent,\n PaginationEllipsis,\n PaginationItem,\n PaginationLink,\n PaginationNext,\n PaginationPrevious,\n};\n"],"names":["Pagination","className","props","jsx","cn","PaginationContent","React","ref","PaginationItem","PaginationLink","isActive","size","buttonVariants","PaginationPrevious","t","useTranslation","ChevronLeft","PaginationNext","ChevronRight","PaginationEllipsis","jsxs","MoreHorizontal"],"mappings":";;;;;;;;AAYA,MAAMA,IAAa,CAAC,EAAE,WAAAC,GAAW,GAAGC,QAClC,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,MAAK;AAAA,IACL,cAAW;AAAA,IACX,WAAWC,EAAG,8BAA8BH,CAAS;AAAA,IACpD,GAAGC;AAAA,EAAA;AACN;AAEFF,EAAW,cAAc;AAQzB,MAAMK,IAAoBC,EAAM,WAG9B,CAAC,EAAE,WAAAL,GAAW,GAAGC,EAAA,GAASK,MAC1B,gBAAAJ;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,KAAAI;AAAA,IACA,WAAWH,EAAG,oCAAoCH,CAAS;AAAA,IAC1D,GAAGC;AAAA,EAAA;AACN,CACD;AACDG,EAAkB,cAAc;AAQhC,MAAMG,IAAiBF,EAAM,WAG3B,CAAC,EAAE,WAAAL,GAAW,GAAGC,KAASK,wBACzB,MAAA,EAAG,KAAAA,GAAU,WAAWH,EAAG,IAAIH,CAAS,GAAI,GAAGC,GAAO,CACxD;AACDM,EAAe,cAAc;AAoB7B,MAAMC,IAAiB,CAAC;AAAA,EACtB,WAAAR;AAAA,EACA,UAAAS;AAAA,EACA,MAAAC,IAAO;AAAA,EACP,GAAGT;AACL,MACE,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,gBAAcO,IAAW,SAAS;AAAA,IAClC,WAAWN;AAAA,MACTQ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B,GAAA,EAAe,WAAU,UAAA,CAAU;AAAA,0BACnC,QAAA,EAAK,WAAU,WAAW,UAAAP,EAAE,YAAY,EAAA,CAAE;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGjD;AACAK,EAAmB,cAAc;"}
@@ -0,0 +1,2 @@
1
+ "use strict";const t=require("react/jsx-runtime"),d=require("react"),r=require("react-i18next"),i=require("./utils-C4d7Ql9-.cjs.js"),f=require("./button-CpKtD3qG.cjs.js"),x=require("./ellipsis-FJjSjEdP.cjs.js"),N=require("./chevron-right-BxyusM7v.cjs.js"),j=require("./chevron-left-B_pqqZqr.cjs.js");function h(n){if(n&&n.__esModule)return n;const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const e in n)if(e!=="default"){const s=Object.getOwnPropertyDescriptor(n,e);Object.defineProperty(a,e,s.get?s:{enumerable:!0,get:()=>n[e]})}}return a.default=n,Object.freeze(a)}const c=h(d),l=({className:n,...a})=>t.jsx("nav",{role:"navigation","aria-label":"pagination",className:i.cn("flex w-full justify-center",n),...a});l.displayName="Pagination";const u=c.forwardRef(({className:n,...a},e)=>t.jsx("ul",{ref:e,className:i.cn("flex flex-row items-center gap-1",n),...a}));u.displayName="PaginationContent";const g=c.forwardRef(({className:n,...a},e)=>t.jsx("li",{ref:e,className:i.cn("",n),...a}));g.displayName="PaginationItem";const o=({className:n,isActive:a,size:e="icon",...s})=>t.jsx("a",{"aria-current":a?"page":void 0,className:i.cn(f.buttonVariants({variant:a?"tertiary":"ghost",size:e}),"cursor-pointer",n),...s});o.displayName="PaginationLink";const p=({className:n,...a})=>{const{t:e}=r.useTranslation();return t.jsx(o,{"aria-label":e("Go to previous page"),size:"default",className:i.cn("gap-1 px-2.5",n),...a,children:t.jsx(j.ChevronLeft,{className:"h-4 w-4"})})};p.displayName="PaginationPrevious";const m=({className:n,...a})=>{const{t:e}=r.useTranslation();return t.jsx(o,{"aria-label":e("Go to next page"),size:"default",className:i.cn("gap-1 px-2.5",n),...a,children:t.jsx(N.ChevronRight,{className:"h-4 w-4"})})};m.displayName="PaginationNext";const P=({className:n,...a})=>{const{t:e}=r.useTranslation();return t.jsxs("span",{"aria-hidden":!0,className:i.cn("flex h-9 w-9 items-center justify-center",n),...a,children:[t.jsx(x.Ellipsis,{className:"h-4 w-4"}),t.jsx("span",{className:"sr-only",children:e("More pages")})]})};P.displayName="PaginationEllipsis";exports.Pagination=l;exports.PaginationContent=u;exports.PaginationEllipsis=P;exports.PaginationItem=g;exports.PaginationLink=o;exports.PaginationNext=m;exports.PaginationPrevious=p;
2
+ //# sourceMappingURL=pagination-LHTb7tXo.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagination-LHTb7tXo.cjs.js","sources":["../../src/ui/pagination/pagination.tsx"],"sourcesContent":["import { ChevronLeft, ChevronRight, MoreHorizontal } from 'lucide-react';\nimport * as React from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { cn } from '../../lib';\nimport { type ButtonProps, buttonVariants } from '../button';\n\n/**\n * Pagination - Navigation component for paginated content.\n * @returns {JSX.Element} The rendered Pagination component.\n * @param {object} props - The properties for the component.\n * @param {string} [props.className] - Additional classes for the pagination component.\n */\nconst Pagination = ({ className, ...props }: React.ComponentProps<'nav'>) => (\n <nav\n role=\"navigation\"\n aria-label=\"pagination\"\n className={cn('flex w-full justify-center', className)}\n {...props}\n />\n);\nPagination.displayName = 'Pagination';\n\n/**\n * PaginationContent - Wrapper list for pagination items.\n * @returns {JSX.Element} The rendered PaginationContent component.\n * @param {object} props - The properties for the component.\n * @param {string} [props.className] - Additional classes for the pagination content component.\n */\nconst PaginationContent = React.forwardRef<\n HTMLUListElement,\n React.ComponentProps<'ul'>\n>(({ className, ...props }, ref) => (\n <ul\n ref={ref}\n className={cn('flex flex-row items-center gap-1', className)}\n {...props}\n />\n));\nPaginationContent.displayName = 'PaginationContent';\n\n/**\n * PaginationItem - List item wrapper.\n * @returns {JSX.Element} The rendered PaginationItem component.\n * @param {object} props - The properties for the component.\n * @param {string} [props.className] - Additional classes for the pagination item component.\n */\nconst PaginationItem = React.forwardRef<\n HTMLLIElement,\n React.ComponentProps<'li'>\n>(({ className, ...props }, ref) => (\n <li ref={ref} className={cn('', className)} {...props} />\n));\nPaginationItem.displayName = 'PaginationItem';\n\n/**\n * Props for PaginationLink.\n * @property {boolean} [isActive] - Marks the current page.\n * @property {'lg'|'default'|'sm'|'xs'|'icon'} [size] - Button size forwarded to Button variants.\n */\ntype PaginationLinkProps = {\n isActive?: boolean;\n} & Pick<ButtonProps, 'size'> &\n React.ComponentProps<'a'>;\n\n/**\n * PaginationLink - A styled anchor used as a pagination control.\n * @returns {JSX.Element} The rendered PaginationLink component.\n * @param {object} props - The properties for the component.\n * @param {string} [props.className] - Additional classes for the pagination link component.\n * @param {boolean} [props.isActive] - Marks the current page.\n * @param {string} [props.size] - The size of the pagination link.\n */\nconst PaginationLink = ({\n className,\n isActive,\n size = 'icon',\n ...props\n}: PaginationLinkProps) => (\n <a\n aria-current={isActive ? 'page' : undefined}\n className={cn(\n buttonVariants({\n variant: isActive ? 'tertiary' : 'ghost',\n size,\n }),\n 'cursor-pointer',\n className\n )}\n {...props}\n />\n);\nPaginationLink.displayName = 'PaginationLink';\n\n/**\n * PaginationPrevious - Button to navigate to previous page.\n * @returns {JSX.Element} The rendered PaginationPrevious component.\n * @param {object} props - The properties for the component.\n * @param {string} [props.className] - Additional classes for the pagination previous component.\n */\nconst PaginationPrevious = ({\n className,\n ...props\n}: React.ComponentProps<typeof PaginationLink>) => {\n const { t } = useTranslation();\n return (\n <PaginationLink\n aria-label={t('Go to previous page')}\n size=\"default\"\n className={cn('gap-1 px-2.5', className)}\n {...props}\n >\n <ChevronLeft className=\"h-4 w-4\" />\n </PaginationLink>\n );\n};\nPaginationPrevious.displayName = 'PaginationPrevious';\n\n/**\n * PaginationNext - Button to navigate to next page.\n * @returns {JSX.Element} The rendered PaginationNext component.\n * @param {object} props - The properties for the component.\n * @param {string} [props.className] - Additional classes for the pagination next component.\n */\nconst PaginationNext = ({\n className,\n ...props\n}: React.ComponentProps<typeof PaginationLink>) => {\n const { t } = useTranslation();\n return (\n <PaginationLink\n aria-label={t('Go to next page')}\n size=\"default\"\n className={cn('gap-1 px-2.5', className)}\n {...props}\n >\n <ChevronRight className=\"h-4 w-4\" />\n </PaginationLink>\n );\n};\nPaginationNext.displayName = 'PaginationNext';\n\n/**\n * PaginationEllipsis - Non-interactive indicator for collapsed pages.\n * @returns {JSX.Element} The rendered PaginationEllipsis component.\n * @param {object} props - The properties for the component.\n * @param {string} [props.className] - Additional classes for the pagination ellipsis component.\n */\nconst PaginationEllipsis = ({\n className,\n ...props\n}: React.ComponentProps<'span'>) => {\n const { t } = useTranslation();\n return (\n <span\n aria-hidden\n className={cn('flex h-9 w-9 items-center justify-center', className)}\n {...props}\n >\n <MoreHorizontal className=\"h-4 w-4\" />\n <span className=\"sr-only\">{t('More pages')}</span>\n </span>\n );\n};\nPaginationEllipsis.displayName = 'PaginationEllipsis';\n\nexport {\n Pagination,\n PaginationContent,\n PaginationEllipsis,\n PaginationItem,\n PaginationLink,\n PaginationNext,\n PaginationPrevious,\n};\n"],"names":["Pagination","className","props","jsx","cn","PaginationContent","React","ref","PaginationItem","PaginationLink","isActive","size","buttonVariants","PaginationPrevious","t","useTranslation","ChevronLeft","PaginationNext","ChevronRight","PaginationEllipsis","jsxs","MoreHorizontal"],"mappings":"kmBAYMA,EAAa,CAAC,CAAE,UAAAC,EAAW,GAAGC,KAClCC,EAAAA,IAAC,MAAA,CACC,KAAK,aACL,aAAW,aACX,UAAWC,EAAAA,GAAG,6BAA8BH,CAAS,EACpD,GAAGC,CAAA,CACN,EAEFF,EAAW,YAAc,aAQzB,MAAMK,EAAoBC,EAAM,WAG9B,CAAC,CAAE,UAAAL,EAAW,GAAGC,CAAA,EAASK,IAC1BJ,EAAAA,IAAC,KAAA,CACC,IAAAI,EACA,UAAWH,EAAAA,GAAG,mCAAoCH,CAAS,EAC1D,GAAGC,CA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GC,CACL,IAAoC,CAClC,KAAM,CAAE,EAAAY,CAAA,EAAMC,iBAAA,EACd,OACEK,EAAAA,KAAC,OAAA,CACC,cAAW,GACX,UAAWhB,EAAAA,GAAG,2CAA4CH,CAAS,EAClE,GAAGC,EAEJ,SAAA,CAAAC,EAAAA,IAACkB,EAAAA,SAAA,CAAe,UAAU,SAAA,CAAU,QACnC,OAAA,CAAK,UAAU,UAAW,SAAAP,EAAE,YAAY,CAAA,CAAE,CAAA,CAAA,CAAA,CAGjD,EACAK,EAAmB,YAAc"}
@@ -0,0 +1,2 @@
1
+ "use strict";const l=require("react/jsx-runtime"),$=require("react"),d=require("./index-D9zW9Tk7.cjs.js"),_=require("./index-jFOWwfD3.cjs.js"),q=require("./index-CItoM52t.cjs.js"),C=require("./index-DG15yxNP.cjs.js"),y=require("./index-BruMW80s.cjs.js"),g=require("./index-CGLGXpw0.cjs.js"),H=require("./utils-C4d7Ql9-.cjs.js");function V(e){if(e&&e.__esModule)return e;const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const a=V($);function L(e){const r=W(e),t=a.forwardRef((n,o)=>{const{children:s,...c}=n,i=a.Children.toArray(s),u=i.find(G);if(u){const p=u.props.children,m=i.map(v=>v===u?a.Children.count(p)>1?a.Children.only(null):a.isValidElement(p)?p.props.children:null:v);return l.jsx(r,{...c,ref:o,children:a.isValidElement(p)?a.cloneElement(p,void 0,m):null})}return l.jsx(r,{...c,ref:o,children:s})});return t.displayName=`${e}.Slot`,t}function W(e){const r=a.forwardRef((t,n)=>{const{children:o,...s}=t;if(a.isValidElement(o)){const c=K(o),i=B(s,o.props);return o.type!==a.Fragment&&(i.ref=n?_.composeRefs(n,c):c),a.cloneElement(o,i)}return a.Children.count(o)>1?a.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}var z=Symbol("radix.slottable");function G(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===z}function B(e,r){const t={...r};for(const n in r){const o=e[n],s=r[n];/^on[A-Z]/.test(n)?o&&s?t[n]=(...i)=>{const u=s(...i);return o(...i),u}:o&&(t[n]=o):n==="style"?t[n]={...o,...s}:n==="className"&&(t[n]=[o,s].filter(Boolean).join(" "))}return{...e,...t}}function K(e){var n,o;let r=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,t=r&&"isReactWarning"in r&&r.isReactWarning;return t?e.ref:(r=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,t=r&&"isReactWarning"in r&&r.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}var R="Popover",[E]=d.createContextScope(R,[g.createPopperScope]),x=g.createPopperScope(),[Z,f]=E(R),b=e=>{const{__scopePopover:r,children:t,open:n,defaultOpen:o,onOpenChange:s,modal:c=!1}=e,i=x(r),u=a.useRef(null),[p,m]=a.useState(!1),[v,P]=y.useControllableState({prop:n,defaultProp:o??!1,onChange:s,caller:R});return l.jsx(g.Root2,{...i,children:l.jsx(Z,{scope:r,contentId:y.useId(),triggerRef:u,open:v,onOpenChange:P,onOpenToggle:a.useCallback(()=>P(O=>!O),[P]),hasCustomAnchor:p,onCustomAnchorAdd:a.useCallback(()=>m(!0),[]),onCustomAnchorRemove:a.useCallback(()=>m(!1),[]),modal:c,children:t})})};b.displayName=R;var j="PopoverAnchor",U=a.forwardRef((e,r)=>{const{__scopePopover:t,...n}=e,o=f(j,t),s=x(t),{onCustomAnchorAdd:c,onCustomAnchorRemove:i}=o;return a.useEffect(()=>(c(),()=>i()),[c,i]),l.jsx(g.Anchor,{...s,...n,ref:r})});U.displayName=j;var w="PopoverTrigger",S=a.forwardRef((e,r)=>{const{__scopePopover:t,...n}=e,o=f(w,t),s=x(t),c=_.useComposedRefs(r,o.triggerRef),i=l.jsx(d.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":I(o.open),...n,ref:c,onClick:d.composeEventHandlers(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:l.jsx(g.Anchor,{asChild:!0,...s,children:i})});S.displayName=w;var A="PopoverPortal",[J,Q]=E(A,{forceMount:void 0}),N=e=>{const{__scopePopover:r,forceMount:t,children:n,container:o}=e,s=f(A,r);return l.jsx(J,{scope:r,forceMount:t,children:l.jsx(d.Presence,{present:t||s.open,children:l.jsx(C.Portal,{asChild:!0,container:o,children:n})})})};N.displayName=A;var h="PopoverContent",F=a.forwardRef((e,r)=>{const t=Q(h,e.__scopePopover),{forceMount:n=t.forceMount,...o}=e,s=f(h,e.__scopePopover);return l.jsx(d.Presence,{present:n||s.open,children:s.modal?l.jsx(Y,{...o,ref:r}):l.jsx(ee,{...o,ref:r})})});F.displayName=h;var X=L("PopoverContent.RemoveScroll"),Y=a.forwardRef((e,r)=>{const t=f(h,e.__scopePopover),n=a.useRef(null),o=_.useComposedRefs(r,n),s=a.useRef(!1);return a.useEffect(()=>{const c=n.current;if(c)return C.hideOthers(c)},[]),l.jsx(C.ReactRemoveScroll,{as:X,allowPinchZoom:!0,children:l.jsx(D,{...e,ref:o,trapFocus:t.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:d.composeEventHandlers(e.onCloseAutoFocus,c=>{var i;c.preventDefault(),s.current||(i=t.triggerRef.current)==null||i.focus()}),onPointerDownOutside:d.composeEventHandlers(e.onPointerDownOutside,c=>{const i=c.detail.originalEvent,u=i.button===0&&i.ctrlKey===!0,p=i.button===2||u;s.current=p},{checkForDefaultPrevented:!1}),onFocusOutside:d.composeEventHandlers(e.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1})})})}),ee=a.forwardRef((e,r)=>{const t=f(h,e.__scopePopover),n=a.useRef(!1),o=a.useRef(!1);return l.jsx(D,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var c,i;(c=e.onCloseAutoFocus)==null||c.call(e,s),s.defaultPrevented||(n.current||(i=t.triggerRef.current)==null||i.focus(),s.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:s=>{var u,p;(u=e.onInteractOutside)==null||u.call(e,s),s.defaultPrevented||(n.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=s.target;((p=t.triggerRef.current)==null?void 0:p.contains(c))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),D=a.forwardRef((e,r)=>{const{__scopePopover:t,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:p,onInteractOutside:m,...v}=e,P=f(h,t),O=x(t);return C.useFocusGuards(),l.jsx(C.FocusScope,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:s,children:l.jsx(q.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:m,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:p,onDismiss:()=>P.onOpenChange(!1),children:l.jsx(g.Content,{"data-state":I(P.open),role:"dialog",id:P.contentId,...O,...v,ref:r,style:{...v.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),T="PopoverClose",oe=a.forwardRef((e,r)=>{const{__scopePopover:t,...n}=e,o=f(T,t);return l.jsx(d.Primitive.button,{type:"button",...n,ref:r,onClick:d.composeEventHandlers(e.onClick,()=>o.onOpenChange(!1))})});oe.displayName=T;var te="PopoverArrow",re=a.forwardRef((e,r)=>{const{__scopePopover:t,...n}=e,o=x(t);return l.jsx(g.Arrow,{...o,...n,ref:r})});re.displayName=te;function I(e){return e?"open":"closed"}var ne=b,se=S,ae=N,M=F;const ce=ne,ie=se,k=a.forwardRef(({className:e,align:r="center",sideOffset:t=4,...n},o)=>l.jsx(ae,{children:l.jsx(M,{ref:o,align:r,sideOffset:t,className:H.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 rounded-md border p-4 shadow-md outline-none",e),...n})}));k.displayName=M.displayName;exports.Popover=ce;exports.PopoverContent=k;exports.PopoverTrigger=ie;
2
+ //# sourceMappingURL=popover-Bh6emR_J.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"popover-Bh6emR_J.cjs.js","sources":["../../node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-slot/dist/index.mjs","../../node_modules/@radix-ui/react-popover/dist/index.mjs","../../src/ui/popover/popover.tsx"],"sourcesContent":["// src/slot.tsx\nimport * as React from \"react\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { Fragment as Fragment2, jsx } from \"react/jsx-runtime\";\n// @__NO_SIDE_EFFECTS__\nfunction createSlot(ownerName) {\n const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);\n const Slot2 = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n const childrenArray = React.Children.toArray(children);\n const slottable = childrenArray.find(isSlottable);\n if (slottable) {\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child) => {\n if (child === slottable) {\n if (React.Children.count(newElement) > 1) return React.Children.only(null);\n return React.isValidElement(newElement) ? newElement.props.children : null;\n } else {\n return child;\n }\n });\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });\n }\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });\n });\n Slot2.displayName = `${ownerName}.Slot`;\n return Slot2;\n}\nvar Slot = /* @__PURE__ */ createSlot(\"Slot\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlotClone(ownerName) {\n const SlotClone = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n if (React.isValidElement(children)) {\n const childrenRef = getElementRef(children);\n const props2 = mergeProps(slotProps, children.props);\n if (children.type !== React.Fragment) {\n props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;\n }\n return React.cloneElement(children, props2);\n }\n return React.Children.count(children) > 1 ? React.Children.only(null) : null;\n });\n SlotClone.displayName = `${ownerName}.SlotClone`;\n return SlotClone;\n}\nvar SLOTTABLE_IDENTIFIER = Symbol(\"radix.slottable\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlottable(ownerName) {\n const Slottable2 = ({ children }) => {\n return /* @__PURE__ */ jsx(Fragment2, { children });\n };\n Slottable2.displayName = `${ownerName}.Slottable`;\n Slottable2.__radixId = SLOTTABLE_IDENTIFIER;\n return Slottable2;\n}\nvar Slottable = /* @__PURE__ */ createSlottable(\"Slottable\");\nfunction isSlottable(child) {\n return React.isValidElement(child) && typeof child.type === \"function\" && \"__radixId\" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;\n}\nfunction mergeProps(slotProps, childProps) {\n const overrideProps = { ...childProps };\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args) => {\n const result = childPropValue(...args);\n slotPropValue(...args);\n return result;\n };\n } else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n } else if (propName === \"style\") {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === \"className\") {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(\" \");\n }\n }\n return { ...slotProps, ...overrideProps };\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nexport {\n Slot as Root,\n Slot,\n Slottable,\n createSlot,\n createSlottable\n};\n//# sourceMappingURL=index.mjs.map\n","\"use client\";\n\n// src/popover.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { DismissableLayer } from \"@radix-ui/react-dismissable-layer\";\nimport { useFocusGuards } from \"@radix-ui/react-focus-guards\";\nimport { FocusScope } from \"@radix-ui/react-focus-scope\";\nimport { useId } from \"@radix-ui/react-id\";\nimport * as PopperPrimitive from \"@radix-ui/react-popper\";\nimport { createPopperScope } from \"@radix-ui/react-popper\";\nimport { Portal as PortalPrimitive } from \"@radix-ui/react-portal\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { createSlot } from \"@radix-ui/react-slot\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { hideOthers } from \"aria-hidden\";\nimport { RemoveScroll } from \"react-remove-scroll\";\nimport { jsx } from \"react/jsx-runtime\";\nvar POPOVER_NAME = \"Popover\";\nvar [createPopoverContext, createPopoverScope] = createContextScope(POPOVER_NAME, [\n createPopperScope\n]);\nvar usePopperScope = createPopperScope();\nvar [PopoverProvider, usePopoverContext] = createPopoverContext(POPOVER_NAME);\nvar Popover = (props) => {\n const {\n __scopePopover,\n children,\n open: openProp,\n defaultOpen,\n onOpenChange,\n modal = false\n } = props;\n const popperScope = usePopperScope(__scopePopover);\n const triggerRef = React.useRef(null);\n const [hasCustomAnchor, setHasCustomAnchor] = React.useState(false);\n const [open, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen ?? false,\n onChange: onOpenChange,\n caller: POPOVER_NAME\n });\n return /* @__PURE__ */ jsx(PopperPrimitive.Root, { ...popperScope, children: /* @__PURE__ */ jsx(\n PopoverProvider,\n {\n scope: __scopePopover,\n contentId: useId(),\n triggerRef,\n open,\n onOpenChange: setOpen,\n onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),\n hasCustomAnchor,\n onCustomAnchorAdd: React.useCallback(() => setHasCustomAnchor(true), []),\n onCustomAnchorRemove: React.useCallback(() => setHasCustomAnchor(false), []),\n modal,\n children\n }\n ) });\n};\nPopover.displayName = POPOVER_NAME;\nvar ANCHOR_NAME = \"PopoverAnchor\";\nvar PopoverAnchor = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopePopover, ...anchorProps } = props;\n const context = usePopoverContext(ANCHOR_NAME, __scopePopover);\n const popperScope = usePopperScope(__scopePopover);\n const { onCustomAnchorAdd, onCustomAnchorRemove } = context;\n React.useEffect(() => {\n onCustomAnchorAdd();\n return () => onCustomAnchorRemove();\n }, [onCustomAnchorAdd, onCustomAnchorRemove]);\n return /* @__PURE__ */ jsx(PopperPrimitive.Anchor, { ...popperScope, ...anchorProps, ref: forwardedRef });\n }\n);\nPopoverAnchor.displayName = ANCHOR_NAME;\nvar TRIGGER_NAME = \"PopoverTrigger\";\nvar PopoverTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopePopover, ...triggerProps } = props;\n const context = usePopoverContext(TRIGGER_NAME, __scopePopover);\n const popperScope = usePopperScope(__scopePopover);\n const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);\n const trigger = /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n \"aria-haspopup\": \"dialog\",\n \"aria-expanded\": context.open,\n \"aria-controls\": context.contentId,\n \"data-state\": getState(context.open),\n ...triggerProps,\n ref: composedTriggerRef,\n onClick: composeEventHandlers(props.onClick, context.onOpenToggle)\n }\n );\n return context.hasCustomAnchor ? trigger : /* @__PURE__ */ jsx(PopperPrimitive.Anchor, { asChild: true, ...popperScope, children: trigger });\n }\n);\nPopoverTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"PopoverPortal\";\nvar [PortalProvider, usePortalContext] = createPopoverContext(PORTAL_NAME, {\n forceMount: void 0\n});\nvar PopoverPortal = (props) => {\n const { __scopePopover, forceMount, children, container } = props;\n const context = usePopoverContext(PORTAL_NAME, __scopePopover);\n return /* @__PURE__ */ jsx(PortalProvider, { scope: __scopePopover, forceMount, children: /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(PortalPrimitive, { asChild: true, container, children }) }) });\n};\nPopoverPortal.displayName = PORTAL_NAME;\nvar CONTENT_NAME = \"PopoverContent\";\nvar PopoverContent = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(CONTENT_NAME, props.__scopePopover);\n const { forceMount = portalContext.forceMount, ...contentProps } = props;\n const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ jsx(PopoverContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(PopoverContentNonModal, { ...contentProps, ref: forwardedRef }) });\n }\n);\nPopoverContent.displayName = CONTENT_NAME;\nvar Slot = createSlot(\"PopoverContent.RemoveScroll\");\nvar PopoverContentModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, contentRef);\n const isRightClickOutsideRef = React.useRef(false);\n React.useEffect(() => {\n const content = contentRef.current;\n if (content) return hideOthers(content);\n }, []);\n return /* @__PURE__ */ jsx(RemoveScroll, { as: Slot, allowPinchZoom: true, children: /* @__PURE__ */ jsx(\n PopoverContentImpl,\n {\n ...props,\n ref: composedRefs,\n trapFocus: context.open,\n disableOutsidePointerEvents: true,\n onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event) => {\n event.preventDefault();\n if (!isRightClickOutsideRef.current) context.triggerRef.current?.focus();\n }),\n onPointerDownOutside: composeEventHandlers(\n props.onPointerDownOutside,\n (event) => {\n const originalEvent = event.detail.originalEvent;\n const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;\n const isRightClick = originalEvent.button === 2 || ctrlLeftClick;\n isRightClickOutsideRef.current = isRightClick;\n },\n { checkForDefaultPrevented: false }\n ),\n onFocusOutside: composeEventHandlers(\n props.onFocusOutside,\n (event) => event.preventDefault(),\n { checkForDefaultPrevented: false }\n )\n }\n ) });\n }\n);\nvar PopoverContentNonModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);\n const hasInteractedOutsideRef = React.useRef(false);\n const hasPointerDownOutsideRef = React.useRef(false);\n return /* @__PURE__ */ jsx(\n PopoverContentImpl,\n {\n ...props,\n ref: forwardedRef,\n trapFocus: false,\n disableOutsidePointerEvents: false,\n onCloseAutoFocus: (event) => {\n props.onCloseAutoFocus?.(event);\n if (!event.defaultPrevented) {\n if (!hasInteractedOutsideRef.current) context.triggerRef.current?.focus();\n event.preventDefault();\n }\n hasInteractedOutsideRef.current = false;\n hasPointerDownOutsideRef.current = false;\n },\n onInteractOutside: (event) => {\n props.onInteractOutside?.(event);\n if (!event.defaultPrevented) {\n hasInteractedOutsideRef.current = true;\n if (event.detail.originalEvent.type === \"pointerdown\") {\n hasPointerDownOutsideRef.current = true;\n }\n }\n const target = event.target;\n const targetIsTrigger = context.triggerRef.current?.contains(target);\n if (targetIsTrigger) event.preventDefault();\n if (event.detail.originalEvent.type === \"focusin\" && hasPointerDownOutsideRef.current) {\n event.preventDefault();\n }\n }\n }\n );\n }\n);\nvar PopoverContentImpl = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopePopover,\n trapFocus,\n onOpenAutoFocus,\n onCloseAutoFocus,\n disableOutsidePointerEvents,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside,\n onInteractOutside,\n ...contentProps\n } = props;\n const context = usePopoverContext(CONTENT_NAME, __scopePopover);\n const popperScope = usePopperScope(__scopePopover);\n useFocusGuards();\n return /* @__PURE__ */ jsx(\n FocusScope,\n {\n asChild: true,\n loop: true,\n trapped: trapFocus,\n onMountAutoFocus: onOpenAutoFocus,\n onUnmountAutoFocus: onCloseAutoFocus,\n children: /* @__PURE__ */ jsx(\n DismissableLayer,\n {\n asChild: true,\n disableOutsidePointerEvents,\n onInteractOutside,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside,\n onDismiss: () => context.onOpenChange(false),\n children: /* @__PURE__ */ jsx(\n PopperPrimitive.Content,\n {\n \"data-state\": getState(context.open),\n role: \"dialog\",\n id: context.contentId,\n ...popperScope,\n ...contentProps,\n ref: forwardedRef,\n style: {\n ...contentProps.style,\n // re-namespace exposed content custom properties\n ...{\n \"--radix-popover-content-transform-origin\": \"var(--radix-popper-transform-origin)\",\n \"--radix-popover-content-available-width\": \"var(--radix-popper-available-width)\",\n \"--radix-popover-content-available-height\": \"var(--radix-popper-available-height)\",\n \"--radix-popover-trigger-width\": \"var(--radix-popper-anchor-width)\",\n \"--radix-popover-trigger-height\": \"var(--radix-popper-anchor-height)\"\n }\n }\n }\n )\n }\n )\n }\n );\n }\n);\nvar CLOSE_NAME = \"PopoverClose\";\nvar PopoverClose = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopePopover, ...closeProps } = props;\n const context = usePopoverContext(CLOSE_NAME, __scopePopover);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n ...closeProps,\n ref: forwardedRef,\n onClick: composeEventHandlers(props.onClick, () => context.onOpenChange(false))\n }\n );\n }\n);\nPopoverClose.displayName = CLOSE_NAME;\nvar ARROW_NAME = \"PopoverArrow\";\nvar PopoverArrow = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopePopover, ...arrowProps } = props;\n const popperScope = usePopperScope(__scopePopover);\n return /* @__PURE__ */ jsx(PopperPrimitive.Arrow, { ...popperScope, ...arrowProps, ref: forwardedRef });\n }\n);\nPopoverArrow.displayName = ARROW_NAME;\nfunction getState(open) {\n return open ? \"open\" : \"closed\";\n}\nvar Root2 = Popover;\nvar Anchor2 = PopoverAnchor;\nvar Trigger = PopoverTrigger;\nvar Portal = PopoverPortal;\nvar Content2 = PopoverContent;\nvar Close = PopoverClose;\nvar Arrow2 = PopoverArrow;\nexport {\n Anchor2 as Anchor,\n Arrow2 as Arrow,\n Close,\n Content2 as Content,\n Popover,\n PopoverAnchor,\n PopoverArrow,\n PopoverClose,\n PopoverContent,\n PopoverPortal,\n PopoverTrigger,\n Portal,\n Root2 as Root,\n Trigger,\n createPopoverScope\n};\n//# sourceMappingURL=index.mjs.map\n","import * as PopoverPrimitive from '@radix-ui/react-popover';\nimport * as React from 'react';\nimport { cn } from '../../lib';\nimport type { ElementDataType } from '../../types';\n\n/**\n * Popover primitives for floating content triggered by another element.\n */\nconst Popover = PopoverPrimitive.Root;\n\nconst PopoverTrigger = PopoverPrimitive.Trigger;\n\n/**\n * PopoverContent - The floating panel that appears near the trigger.\n * @returns {JSX.Element} The rendered PopoverContent component.\n * @param {object} props - The properties for the component.\n * @param {string} [props.className] - Additional classes for the popover content.\n * @param {'start' | 'center' | 'end'} [props.align='center'] - The alignment of the popover content relative to the trigger.\n * @param {number} [props.sideOffset=4] - The distance between the trigger and the popover content.\n */\nconst PopoverContent = React.forwardRef<\n React.ElementRef<typeof PopoverPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>\n>(({ className, align = 'center', sideOffset = 4, ...props }, ref) => (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 rounded-md border p-4 shadow-md outline-none',\n className\n )}\n {...props}\n />\n </PopoverPrimitive.Portal>\n));\nPopoverContent.displayName = PopoverPrimitive.Content.displayName;\n\n/**\n * Props aggregation for components that wrap Popover primitives.\n * Useful for high-level components needing to forward props to specific Popover parts.\n * @property {React.ComponentPropsWithoutRef<typeof PopoverTrigger> & ElementDataType} [triggerProps] - Props for the PopoverTrigger component.\n * @property {React.ComponentPropsWithoutRef<typeof PopoverContent> & ElementDataType} [contentProps] - Props for the PopoverContent component.\n */\ninterface PopoverContainerProps {\n triggerProps?: React.ComponentPropsWithoutRef<typeof PopoverTrigger> &\n ElementDataType;\n contentProps?: React.ComponentPropsWithoutRef<typeof PopoverContent> &\n ElementDataType;\n}\n\nexport { Popover, PopoverContent, PopoverTrigger, type PopoverContainerProps };\n"],"names":["createSlot","ownerName","SlotClone","createSlotClone","Slot2","React","props","forwardedRef","children","slotProps","childrenArray","slottable","isSlottable","newElement","newChildren","child","jsx","childrenRef","getElementRef","props2","mergeProps","composeRefs","SLOTTABLE_IDENTIFIER","childProps","overrideProps","propName","slotPropValue","childPropValue","args","result","element","getter","_a","mayWarn","_b","POPOVER_NAME","createPopoverContext","createContextScope","createPopperScope","usePopperScope","PopoverProvider","usePopoverContext","Popover","__scopePopover","openProp","defaultOpen","onOpenChange","modal","popperScope","triggerRef","hasCustomAnchor","setHasCustomAnchor","open","setOpen","useControllableState","PopperPrimitive.Root","useId","prevOpen","ANCHOR_NAME","PopoverAnchor","anchorProps","context","onCustomAnchorAdd","onCustomAnchorRemove","PopperPrimitive.Anchor","TRIGGER_NAME","PopoverTrigger","triggerProps","composedTriggerRef","useComposedRefs","trigger","Primitive","getState","composeEventHandlers","PORTAL_NAME","PortalProvider","usePortalContext","PopoverPortal","forceMount","container","Presence","PortalPrimitive","CONTENT_NAME","PopoverContent","portalContext","contentProps","PopoverContentModal","PopoverContentNonModal","Slot","contentRef","composedRefs","isRightClickOutsideRef","content","hideOthers","RemoveScroll","PopoverContentImpl","event","originalEvent","ctrlLeftClick","isRightClick","hasInteractedOutsideRef","hasPointerDownOutsideRef","target","trapFocus","onOpenAutoFocus","onCloseAutoFocus","disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","useFocusGuards","FocusScope","DismissableLayer","PopperPrimitive.Content","CLOSE_NAME","PopoverClose","closeProps","ARROW_NAME","PopoverArrow","arrowProps","PopperPrimitive.Arrow","Root2","Trigger","Portal","Content2","PopoverPrimitive.Root","PopoverPrimitive.Trigger","className","align","sideOffset","ref","PopoverPrimitive.Portal","PopoverPrimitive.Content","cn"],"mappings":"8nBAKA,SAASA,EAAWC,EAAW,CAC7B,MAAMC,EAA4BC,EAAgBF,CAAS,EACrDG,EAAQC,EAAM,WAAW,CAACC,EAAOC,IAAiB,CACtD,KAAM,CAAE,SAAAC,EAAU,GAAGC,CAAS,EAAKH,EAC7BI,EAAgBL,EAAM,SAAS,QAAQG,CAAQ,EAC/CG,EAAYD,EAAc,KAAKE,CAAW,EAChD,GAAID,EAAW,CACb,MAAME,EAAaF,EAAU,MAAM,SAC7BG,EAAcJ,EAAc,IAAKK,GACjCA,IAAUJ,EACRN,EAAM,SAAS,MAAMQ,CAAU,EAAI,EAAUR,EAAM,SAAS,KAAK,IAAI,EAClEA,EAAM,eAAeQ,CAAU,EAAIA,EAAW,MAAM,SAAW,KAE/DE,CAEV,EACD,OAAuBC,EAAAA,IAAId,EAAW,CAAE,GAAGO,EAAW,IAAKF,EAAc,SAAUF,EAAM,eAAeQ,CAAU,EAAIR,EAAM,a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C,EAAQ,SAAU,WAAAC,EAAa,EAAG,GAAG5H,CAAA,EAAS6H,IAC5DnH,EAAAA,IAACoH,GAAA,CACC,SAAApH,EAAAA,IAACqH,EAAA,CACC,IAAAF,EACA,MAAAF,EACA,WAAAC,EACA,UAAWI,EAAAA,GACT,6aACAN,CAAA,EAED,GAAG1H,CAAA,CACN,EACF,CACD,EACD6E,EAAe,YAAckD,EAAyB","x_google_ignoreList":[0,1]}
@@ -0,0 +1,285 @@
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ import * as s from "react";
3
+ import { P as O, c as g, a as y, b as $ } from "./index-BVqmUhu5.es.js";
4
+ import { c as L, u as _ } from "./index-DLcqcWxM.es.js";
5
+ import { D as W } from "./index-ClNIHY-1.es.js";
6
+ import { P as H, h as j, R as z, u as G, F as B } from "./index-BKZjW6I1.es.js";
7
+ import { u as K, a as Z } from "./index-BdfbDt7y.es.js";
8
+ import { R as U, A as E, c as b, C as q, a as J } from "./index-Bli6ZByj.es.js";
9
+ import { c as Q } from "./utils-CnvKSirc.es.js";
10
+ // @__NO_SIDE_EFFECTS__
11
+ function X(e) {
12
+ const t = /* @__PURE__ */ Y(e), r = s.forwardRef((n, o) => {
13
+ const { children: a, ...i } = n, c = s.Children.toArray(a), p = c.find(oe);
14
+ if (p) {
15
+ const u = p.props.children, P = c.map((f) => f === p ? s.Children.count(u) > 1 ? s.Children.only(null) : s.isValidElement(u) ? u.props.children : null : f);
16
+ return /* @__PURE__ */ l(t, { ...i, ref: o, children: s.isValidElement(u) ? s.cloneElement(u, void 0, P) : null });
17
+ }
18
+ return /* @__PURE__ */ l(t, { ...i, ref: o, children: a });
19
+ });
20
+ return r.displayName = `${e}.Slot`, r;
21
+ }
22
+ // @__NO_SIDE_EFFECTS__
23
+ function Y(e) {
24
+ const t = s.forwardRef((r, n) => {
25
+ const { children: o, ...a } = r;
26
+ if (s.isValidElement(o)) {
27
+ const i = re(o), c = te(a, o.props);
28
+ return o.type !== s.Fragment && (c.ref = n ? L(n, i) : i), s.cloneElement(o, c);
29
+ }
30
+ return s.Children.count(o) > 1 ? s.Children.only(null) : null;
31
+ });
32
+ return t.displayName = `${e}.SlotClone`, t;
33
+ }
34
+ var ee = Symbol("radix.slottable");
35
+ function oe(e) {
36
+ return s.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === ee;
37
+ }
38
+ function te(e, t) {
39
+ const r = { ...t };
40
+ for (const n in t) {
41
+ const o = e[n], a = t[n];
42
+ /^on[A-Z]/.test(n) ? o && a ? r[n] = (...c) => {
43
+ const p = a(...c);
44
+ return o(...c), p;
45
+ } : o && (r[n] = o) : n === "style" ? r[n] = { ...o, ...a } : n === "className" && (r[n] = [o, a].filter(Boolean).join(" "));
46
+ }
47
+ return { ...e, ...r };
48
+ }
49
+ function re(e) {
50
+ var n, o;
51
+ let t = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, r = t && "isReactWarning" in t && t.isReactWarning;
52
+ return r ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
53
+ }
54
+ var C = "Popover", [x] = $(C, [
55
+ b
56
+ ]), h = b(), [ne, d] = x(C), w = (e) => {
57
+ const {
58
+ __scopePopover: t,
59
+ children: r,
60
+ open: n,
61
+ defaultOpen: o,
62
+ onOpenChange: a,
63
+ modal: i = !1
64
+ } = e, c = h(t), p = s.useRef(null), [u, P] = s.useState(!1), [f, v] = K({
65
+ prop: n,
66
+ defaultProp: o ?? !1,
67
+ onChange: a,
68
+ caller: C
69
+ });
70
+ return /* @__PURE__ */ l(U, { ...c, children: /* @__PURE__ */ l(
71
+ ne,
72
+ {
73
+ scope: t,
74
+ contentId: Z(),
75
+ triggerRef: p,
76
+ open: f,
77
+ onOpenChange: v,
78
+ onOpenToggle: s.useCallback(() => v((R) => !R), [v]),
79
+ hasCustomAnchor: u,
80
+ onCustomAnchorAdd: s.useCallback(() => P(!0), []),
81
+ onCustomAnchorRemove: s.useCallback(() => P(!1), []),
82
+ modal: i,
83
+ children: r
84
+ }
85
+ ) });
86
+ };
87
+ w.displayName = C;
88
+ var S = "PopoverAnchor", ae = s.forwardRef(
89
+ (e, t) => {
90
+ const { __scopePopover: r, ...n } = e, o = d(S, r), a = h(r), { onCustomAnchorAdd: i, onCustomAnchorRemove: c } = o;
91
+ return s.useEffect(() => (i(), () => c()), [i, c]), /* @__PURE__ */ l(E, { ...a, ...n, ref: t });
92
+ }
93
+ );
94
+ ae.displayName = S;
95
+ var N = "PopoverTrigger", F = s.forwardRef(
96
+ (e, t) => {
97
+ const { __scopePopover: r, ...n } = e, o = d(N, r), a = h(r), i = _(t, o.triggerRef), c = /* @__PURE__ */ l(
98
+ O.button,
99
+ {
100
+ type: "button",
101
+ "aria-haspopup": "dialog",
102
+ "aria-expanded": o.open,
103
+ "aria-controls": o.contentId,
104
+ "data-state": k(o.open),
105
+ ...n,
106
+ ref: i,
107
+ onClick: g(e.onClick, o.onOpenToggle)
108
+ }
109
+ );
110
+ return o.hasCustomAnchor ? c : /* @__PURE__ */ l(E, { asChild: !0, ...a, children: c });
111
+ }
112
+ );
113
+ F.displayName = N;
114
+ var A = "PopoverPortal", [se, ie] = x(A, {
115
+ forceMount: void 0
116
+ }), D = (e) => {
117
+ const { __scopePopover: t, forceMount: r, children: n, container: o } = e, a = d(A, t);
118
+ return /* @__PURE__ */ l(se, { scope: t, forceMount: r, children: /* @__PURE__ */ l(y, { present: r || a.open, children: /* @__PURE__ */ l(H, { asChild: !0, container: o, children: n }) }) });
119
+ };
120
+ D.displayName = A;
121
+ var m = "PopoverContent", I = s.forwardRef(
122
+ (e, t) => {
123
+ const r = ie(m, e.__scopePopover), { forceMount: n = r.forceMount, ...o } = e, a = d(m, e.__scopePopover);
124
+ return /* @__PURE__ */ l(y, { present: n || a.open, children: a.modal ? /* @__PURE__ */ l(le, { ...o, ref: t }) : /* @__PURE__ */ l(pe, { ...o, ref: t }) });
125
+ }
126
+ );
127
+ I.displayName = m;
128
+ var ce = /* @__PURE__ */ X("PopoverContent.RemoveScroll"), le = s.forwardRef(
129
+ (e, t) => {
130
+ const r = d(m, e.__scopePopover), n = s.useRef(null), o = _(t, n), a = s.useRef(!1);
131
+ return s.useEffect(() => {
132
+ const i = n.current;
133
+ if (i) return j(i);
134
+ }, []), /* @__PURE__ */ l(z, { as: ce, allowPinchZoom: !0, children: /* @__PURE__ */ l(
135
+ T,
136
+ {
137
+ ...e,
138
+ ref: o,
139
+ trapFocus: r.open,
140
+ disableOutsidePointerEvents: !0,
141
+ onCloseAutoFocus: g(e.onCloseAutoFocus, (i) => {
142
+ var c;
143
+ i.preventDefault(), a.current || (c = r.triggerRef.current) == null || c.focus();
144
+ }),
145
+ onPointerDownOutside: g(
146
+ e.onPointerDownOutside,
147
+ (i) => {
148
+ const c = i.detail.originalEvent, p = c.button === 0 && c.ctrlKey === !0, u = c.button === 2 || p;
149
+ a.current = u;
150
+ },
151
+ { checkForDefaultPrevented: !1 }
152
+ ),
153
+ onFocusOutside: g(
154
+ e.onFocusOutside,
155
+ (i) => i.preventDefault(),
156
+ { checkForDefaultPrevented: !1 }
157
+ )
158
+ }
159
+ ) });
160
+ }
161
+ ), pe = s.forwardRef(
162
+ (e, t) => {
163
+ const r = d(m, e.__scopePopover), n = s.useRef(!1), o = s.useRef(!1);
164
+ return /* @__PURE__ */ l(
165
+ T,
166
+ {
167
+ ...e,
168
+ ref: t,
169
+ trapFocus: !1,
170
+ disableOutsidePointerEvents: !1,
171
+ onCloseAutoFocus: (a) => {
172
+ var i, c;
173
+ (i = e.onCloseAutoFocus) == null || i.call(e, a), a.defaultPrevented || (n.current || (c = r.triggerRef.current) == null || c.focus(), a.preventDefault()), n.current = !1, o.current = !1;
174
+ },
175
+ onInteractOutside: (a) => {
176
+ var p, u;
177
+ (p = e.onInteractOutside) == null || p.call(e, a), a.defaultPrevented || (n.current = !0, a.detail.originalEvent.type === "pointerdown" && (o.current = !0));
178
+ const i = a.target;
179
+ ((u = r.triggerRef.current) == null ? void 0 : u.contains(i)) && a.preventDefault(), a.detail.originalEvent.type === "focusin" && o.current && a.preventDefault();
180
+ }
181
+ }
182
+ );
183
+ }
184
+ ), T = s.forwardRef(
185
+ (e, t) => {
186
+ const {
187
+ __scopePopover: r,
188
+ trapFocus: n,
189
+ onOpenAutoFocus: o,
190
+ onCloseAutoFocus: a,
191
+ disableOutsidePointerEvents: i,
192
+ onEscapeKeyDown: c,
193
+ onPointerDownOutside: p,
194
+ onFocusOutside: u,
195
+ onInteractOutside: P,
196
+ ...f
197
+ } = e, v = d(m, r), R = h(r);
198
+ return G(), /* @__PURE__ */ l(
199
+ B,
200
+ {
201
+ asChild: !0,
202
+ loop: !0,
203
+ trapped: n,
204
+ onMountAutoFocus: o,
205
+ onUnmountAutoFocus: a,
206
+ children: /* @__PURE__ */ l(
207
+ W,
208
+ {
209
+ asChild: !0,
210
+ disableOutsidePointerEvents: i,
211
+ onInteractOutside: P,
212
+ onEscapeKeyDown: c,
213
+ onPointerDownOutside: p,
214
+ onFocusOutside: u,
215
+ onDismiss: () => v.onOpenChange(!1),
216
+ children: /* @__PURE__ */ l(
217
+ q,
218
+ {
219
+ "data-state": k(v.open),
220
+ role: "dialog",
221
+ id: v.contentId,
222
+ ...R,
223
+ ...f,
224
+ ref: t,
225
+ style: {
226
+ ...f.style,
227
+ "--radix-popover-content-transform-origin": "var(--radix-popper-transform-origin)",
228
+ "--radix-popover-content-available-width": "var(--radix-popper-available-width)",
229
+ "--radix-popover-content-available-height": "var(--radix-popper-available-height)",
230
+ "--radix-popover-trigger-width": "var(--radix-popper-anchor-width)",
231
+ "--radix-popover-trigger-height": "var(--radix-popper-anchor-height)"
232
+ }
233
+ }
234
+ )
235
+ }
236
+ )
237
+ }
238
+ );
239
+ }
240
+ ), M = "PopoverClose", ue = s.forwardRef(
241
+ (e, t) => {
242
+ const { __scopePopover: r, ...n } = e, o = d(M, r);
243
+ return /* @__PURE__ */ l(
244
+ O.button,
245
+ {
246
+ type: "button",
247
+ ...n,
248
+ ref: t,
249
+ onClick: g(e.onClick, () => o.onOpenChange(!1))
250
+ }
251
+ );
252
+ }
253
+ );
254
+ ue.displayName = M;
255
+ var de = "PopoverArrow", fe = s.forwardRef(
256
+ (e, t) => {
257
+ const { __scopePopover: r, ...n } = e, o = h(r);
258
+ return /* @__PURE__ */ l(J, { ...o, ...n, ref: t });
259
+ }
260
+ );
261
+ fe.displayName = de;
262
+ function k(e) {
263
+ return e ? "open" : "closed";
264
+ }
265
+ var ve = w, Pe = F, me = D, V = I;
266
+ const be = ve, xe = Pe, ge = s.forwardRef(({ className: e, align: t = "center", sideOffset: r = 4, ...n }, o) => /* @__PURE__ */ l(me, { children: /* @__PURE__ */ l(
267
+ V,
268
+ {
269
+ ref: o,
270
+ align: t,
271
+ sideOffset: r,
272
+ className: Q(
273
+ "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 rounded-md border p-4 shadow-md outline-none",
274
+ e
275
+ ),
276
+ ...n
277
+ }
278
+ ) }));
279
+ ge.displayName = V.displayName;
280
+ export {
281
+ be as P,
282
+ ge as a,
283
+ xe as b
284
+ };
285
+ //# sourceMappingURL=popover-BredK0sg.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"popover-BredK0sg.es.js","sources":["../../node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-slot/dist/index.mjs","../../node_modules/@radix-ui/react-popover/dist/index.mjs","../../src/ui/popover/popover.tsx"],"sourcesContent":["// src/slot.tsx\nimport * as React from \"react\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { Fragment as Fragment2, jsx } from \"react/jsx-runtime\";\n// @__NO_SIDE_EFFECTS__\nfunction createSlot(ownerName) {\n const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);\n const Slot2 = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n const childrenArray = React.Children.toArray(children);\n const slottable = childrenArray.find(isSlottable);\n if (slottable) {\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child) => {\n if (child === slottable) {\n if (React.Children.count(newElement) > 1) return React.Children.only(null);\n return React.isValidElement(newElement) ? newElement.props.children : null;\n } else {\n return child;\n }\n });\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });\n }\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });\n });\n Slot2.displayName = `${ownerName}.Slot`;\n return Slot2;\n}\nvar Slot = /* @__PURE__ */ createSlot(\"Slot\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlotClone(ownerName) {\n const SlotClone = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n if (React.isValidElement(children)) {\n const childrenRef = getElementRef(children);\n const props2 = mergeProps(slotProps, children.props);\n if (children.type !== React.Fragment) {\n props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;\n }\n return React.cloneElement(children, props2);\n }\n return React.Children.count(children) > 1 ? React.Children.only(null) : null;\n });\n SlotClone.displayName = `${ownerName}.SlotClone`;\n return SlotClone;\n}\nvar SLOTTABLE_IDENTIFIER = Symbol(\"radix.slottable\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlottable(ownerName) {\n const Slottable2 = ({ children }) => {\n return /* @__PURE__ */ jsx(Fragment2, { children });\n };\n Slottable2.displayName = `${ownerName}.Slottable`;\n Slottable2.__radixId = SLOTTABLE_IDENTIFIER;\n return Slottable2;\n}\nvar Slottable = /* @__PURE__ */ createSlottable(\"Slottable\");\nfunction isSlottable(child) {\n return React.isValidElement(child) && typeof child.type === \"function\" && \"__radixId\" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;\n}\nfunction mergeProps(slotProps, childProps) {\n const overrideProps = { ...childProps };\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args) => {\n const result = childPropValue(...args);\n slotPropValue(...args);\n return result;\n };\n } else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n } else if (propName === \"style\") {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === \"className\") {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(\" \");\n }\n }\n return { ...slotProps, ...overrideProps };\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nexport {\n Slot as Root,\n Slot,\n Slottable,\n createSlot,\n createSlottable\n};\n//# sourceMappingURL=index.mjs.map\n","\"use client\";\n\n// src/popover.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { DismissableLayer } from \"@radix-ui/react-dismissable-layer\";\nimport { useFocusGuards } from \"@radix-ui/react-focus-guards\";\nimport { FocusScope } from \"@radix-ui/react-focus-scope\";\nimport { useId } from \"@radix-ui/react-id\";\nimport * as PopperPrimitive from \"@radix-ui/react-popper\";\nimport { createPopperScope } from \"@radix-ui/react-popper\";\nimport { Portal as PortalPrimitive } from \"@radix-ui/react-portal\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { createSlot } from \"@radix-ui/react-slot\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { hideOthers } from \"aria-hidden\";\nimport { RemoveScroll } from \"react-remove-scroll\";\nimport { jsx } from \"react/jsx-runtime\";\nvar POPOVER_NAME = \"Popover\";\nvar [createPopoverContext, createPopoverScope] = createContextScope(POPOVER_NAME, [\n createPopperScope\n]);\nvar usePopperScope = createPopperScope();\nvar [PopoverProvider, usePopoverContext] = createPopoverContext(POPOVER_NAME);\nvar Popover = (props) => {\n const {\n __scopePopover,\n children,\n open: openProp,\n defaultOpen,\n onOpenChange,\n modal = false\n } = props;\n const popperScope = usePopperScope(__scopePopover);\n const triggerRef = React.useRef(null);\n const [hasCustomAnchor, setHasCustomAnchor] = React.useState(false);\n const [open, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen ?? false,\n onChange: onOpenChange,\n caller: POPOVER_NAME\n });\n return /* @__PURE__ */ jsx(PopperPrimitive.Root, { ...popperScope, children: /* @__PURE__ */ jsx(\n PopoverProvider,\n {\n scope: __scopePopover,\n contentId: useId(),\n triggerRef,\n open,\n onOpenChange: setOpen,\n onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),\n hasCustomAnchor,\n onCustomAnchorAdd: React.useCallback(() => setHasCustomAnchor(true), []),\n onCustomAnchorRemove: React.useCallback(() => setHasCustomAnchor(false), []),\n modal,\n children\n }\n ) });\n};\nPopover.displayName = POPOVER_NAME;\nvar ANCHOR_NAME = \"PopoverAnchor\";\nvar PopoverAnchor = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopePopover, ...anchorProps } = props;\n const context = usePopoverContext(ANCHOR_NAME, __scopePopover);\n const popperScope = usePopperScope(__scopePopover);\n const { onCustomAnchorAdd, onCustomAnchorRemove } = context;\n React.useEffect(() => {\n onCustomAnchorAdd();\n return () => onCustomAnchorRemove();\n }, [onCustomAnchorAdd, onCustomAnchorRemove]);\n return /* @__PURE__ */ jsx(PopperPrimitive.Anchor, { ...popperScope, ...anchorProps, ref: forwardedRef });\n }\n);\nPopoverAnchor.displayName = ANCHOR_NAME;\nvar TRIGGER_NAME = \"PopoverTrigger\";\nvar PopoverTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopePopover, ...triggerProps } = props;\n const context = usePopoverContext(TRIGGER_NAME, __scopePopover);\n const popperScope = usePopperScope(__scopePopover);\n const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);\n const trigger = /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n \"aria-haspopup\": \"dialog\",\n \"aria-expanded\": context.open,\n \"aria-controls\": context.contentId,\n \"data-state\": getState(context.open),\n ...triggerProps,\n ref: composedTriggerRef,\n onClick: composeEventHandlers(props.onClick, context.onOpenToggle)\n }\n );\n return context.hasCustomAnchor ? trigger : /* @__PURE__ */ jsx(PopperPrimitive.Anchor, { asChild: true, ...popperScope, children: trigger });\n }\n);\nPopoverTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"PopoverPortal\";\nvar [PortalProvider, usePortalContext] = createPopoverContext(PORTAL_NAME, {\n forceMount: void 0\n});\nvar PopoverPortal = (props) => {\n const { __scopePopover, forceMount, children, container } = props;\n const context = usePopoverContext(PORTAL_NAME, __scopePopover);\n return /* @__PURE__ */ jsx(PortalProvider, { scope: __scopePopover, forceMount, children: /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(PortalPrimitive, { asChild: true, container, children }) }) });\n};\nPopoverPortal.displayName = PORTAL_NAME;\nvar CONTENT_NAME = \"PopoverContent\";\nvar PopoverContent = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(CONTENT_NAME, props.__scopePopover);\n const { forceMount = portalContext.forceMount, ...contentProps } = props;\n const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ jsx(PopoverContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(PopoverContentNonModal, { ...contentProps, ref: forwardedRef }) });\n }\n);\nPopoverContent.displayName = CONTENT_NAME;\nvar Slot = createSlot(\"PopoverContent.RemoveScroll\");\nvar PopoverContentModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, contentRef);\n const isRightClickOutsideRef = React.useRef(false);\n React.useEffect(() => {\n const content = contentRef.current;\n if (content) return hideOthers(content);\n }, []);\n return /* @__PURE__ */ jsx(RemoveScroll, { as: Slot, allowPinchZoom: true, children: /* @__PURE__ */ jsx(\n PopoverContentImpl,\n {\n ...props,\n ref: composedRefs,\n trapFocus: context.open,\n disableOutsidePointerEvents: true,\n onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event) => {\n event.preventDefault();\n if (!isRightClickOutsideRef.current) context.triggerRef.current?.focus();\n }),\n onPointerDownOutside: composeEventHandlers(\n props.onPointerDownOutside,\n (event) => {\n const originalEvent = event.detail.originalEvent;\n const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;\n const isRightClick = originalEvent.button === 2 || ctrlLeftClick;\n isRightClickOutsideRef.current = isRightClick;\n },\n { checkForDefaultPrevented: false }\n ),\n onFocusOutside: composeEventHandlers(\n props.onFocusOutside,\n (event) => event.preventDefault(),\n { checkForDefaultPrevented: false }\n )\n }\n ) });\n }\n);\nvar PopoverContentNonModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);\n const hasInteractedOutsideRef = React.useRef(false);\n const hasPointerDownOutsideRef = React.useRef(false);\n return /* @__PURE__ */ jsx(\n PopoverContentImpl,\n {\n ...props,\n ref: forwardedRef,\n trapFocus: false,\n disableOutsidePointerEvents: false,\n onCloseAutoFocus: (event) => {\n props.onCloseAutoFocus?.(event);\n if (!event.defaultPrevented) {\n if (!hasInteractedOutsideRef.current) context.triggerRef.current?.focus();\n event.preventDefault();\n }\n hasInteractedOutsideRef.current = false;\n hasPointerDownOutsideRef.current = false;\n },\n onInteractOutside: (event) => {\n props.onInteractOutside?.(event);\n if (!event.defaultPrevented) {\n hasInteractedOutsideRef.current = true;\n if (event.detail.originalEvent.type === \"pointerdown\") {\n hasPointerDownOutsideRef.current = true;\n }\n }\n const target = event.target;\n const targetIsTrigger = context.triggerRef.current?.contains(target);\n if (targetIsTrigger) event.preventDefault();\n if (event.detail.originalEvent.type === \"focusin\" && hasPointerDownOutsideRef.current) {\n event.preventDefault();\n }\n }\n }\n );\n }\n);\nvar PopoverContentImpl = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopePopover,\n trapFocus,\n onOpenAutoFocus,\n onCloseAutoFocus,\n disableOutsidePointerEvents,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside,\n onInteractOutside,\n ...contentProps\n } = props;\n const context = usePopoverContext(CONTENT_NAME, __scopePopover);\n const popperScope = usePopperScope(__scopePopover);\n useFocusGuards();\n return /* @__PURE__ */ jsx(\n FocusScope,\n {\n asChild: true,\n loop: true,\n trapped: trapFocus,\n onMountAutoFocus: onOpenAutoFocus,\n onUnmountAutoFocus: onCloseAutoFocus,\n children: /* @__PURE__ */ jsx(\n DismissableLayer,\n {\n asChild: true,\n disableOutsidePointerEvents,\n onInteractOutside,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside,\n onDismiss: () => context.onOpenChange(false),\n children: /* @__PURE__ */ jsx(\n PopperPrimitive.Content,\n {\n \"data-state\": getState(context.open),\n role: \"dialog\",\n id: context.contentId,\n ...popperScope,\n ...contentProps,\n ref: forwardedRef,\n style: {\n ...contentProps.style,\n // re-namespace exposed content custom properties\n ...{\n \"--radix-popover-content-transform-origin\": \"var(--radix-popper-transform-origin)\",\n \"--radix-popover-content-available-width\": \"var(--radix-popper-available-width)\",\n \"--radix-popover-content-available-height\": \"var(--radix-popper-available-height)\",\n \"--radix-popover-trigger-width\": \"var(--radix-popper-anchor-width)\",\n \"--radix-popover-trigger-height\": \"var(--radix-popper-anchor-height)\"\n }\n }\n }\n )\n }\n )\n }\n );\n }\n);\nvar CLOSE_NAME = \"PopoverClose\";\nvar PopoverClose = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopePopover, ...closeProps } = props;\n const context = usePopoverContext(CLOSE_NAME, __scopePopover);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n ...closeProps,\n ref: forwardedRef,\n onClick: composeEventHandlers(props.onClick, () => context.onOpenChange(false))\n }\n );\n }\n);\nPopoverClose.displayName = CLOSE_NAME;\nvar ARROW_NAME = \"PopoverArrow\";\nvar PopoverArrow = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopePopover, ...arrowProps } = props;\n const popperScope = usePopperScope(__scopePopover);\n return /* @__PURE__ */ jsx(PopperPrimitive.Arrow, { ...popperScope, ...arrowProps, ref: forwardedRef });\n }\n);\nPopoverArrow.displayName = ARROW_NAME;\nfunction getState(open) {\n return open ? \"open\" : \"closed\";\n}\nvar Root2 = Popover;\nvar Anchor2 = PopoverAnchor;\nvar Trigger = PopoverTrigger;\nvar Portal = PopoverPortal;\nvar Content2 = PopoverContent;\nvar Close = PopoverClose;\nvar Arrow2 = PopoverArrow;\nexport {\n Anchor2 as Anchor,\n Arrow2 as Arrow,\n Close,\n Content2 as Content,\n Popover,\n PopoverAnchor,\n PopoverArrow,\n PopoverClose,\n PopoverContent,\n PopoverPortal,\n PopoverTrigger,\n Portal,\n Root2 as Root,\n Trigger,\n createPopoverScope\n};\n//# sourceMappingURL=index.mjs.map\n","import * as PopoverPrimitive from '@radix-ui/react-popover';\nimport * as React from 'react';\nimport { cn } from '../../lib';\nimport type { ElementDataType } from '../../types';\n\n/**\n * Popover primitives for floating content triggered by another element.\n */\nconst Popover = PopoverPrimitive.Root;\n\nconst PopoverTrigger = PopoverPrimitive.Trigger;\n\n/**\n * PopoverContent - The floating panel that appears near the trigger.\n * @returns {JSX.Element} The rendered PopoverContent component.\n * @param {object} props - The properties for the component.\n * @param {string} [props.className] - Additional classes for the popover content.\n * @param {'start' | 'center' | 'end'} [props.align='center'] - The alignment of the popover content relative to the trigger.\n * @param {number} [props.sideOffset=4] - The distance between the trigger and the popover content.\n */\nconst PopoverContent = React.forwardRef<\n React.ElementRef<typeof PopoverPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>\n>(({ className, align = 'center', sideOffset = 4, ...props }, ref) => (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 rounded-md border p-4 shadow-md outline-none',\n className\n )}\n {...props}\n />\n </PopoverPrimitive.Portal>\n));\nPopoverContent.displayName = PopoverPrimitive.Content.displayName;\n\n/**\n * Props aggregation for components that wrap Popover primitives.\n * Useful for high-level components needing to forward props to specific Popover parts.\n * @property {React.ComponentPropsWithoutRef<typeof PopoverTrigger> & ElementDataType} [triggerProps] - Props for the PopoverTrigger component.\n * @property {React.ComponentPropsWithoutRef<typeof PopoverContent> & ElementDataType} [contentProps] - Props for the PopoverContent component.\n */\ninterface PopoverContainerProps {\n triggerProps?: React.ComponentPropsWithoutRef<typeof PopoverTrigger> &\n ElementDataType;\n contentProps?: React.ComponentPropsWithoutRef<typeof PopoverContent> &\n ElementDataType;\n}\n\nexport { Popover, PopoverContent, PopoverTrigger, type PopoverContainerProps };\n"],"names":["createSlot","ownerName","SlotClone","createSlotClone","Slot2","React","props","forwardedRef","children","slotProps","childrenArray","slottable","isSlottable","newElement","newChildren","child","jsx","childrenRef","getElementRef","props2","mergeProps","composeRefs","SLOTTABLE_IDENTIFIER","childProps","overrideProps","propName","slotPropValue","childPropValue","args","result","element","getter","_a","mayWarn","_b","POPOVER_NAME","createPopoverContext","createContextScope","createPopperScope","usePopperScope","PopoverProvider","usePopoverContext","Popover","__scopePopover","openProp","defaultOpen","onOpenChange","modal","popperScope","triggerRef","hasCustomAnchor","setHasCustomAnchor","open","setOpen","useControllableState","PopperPrimitive.Root","useId","prevOpen","ANCHOR_NAME","PopoverAnchor","anchorProps","context","onCustomAnchorAdd","onCustomAnchorRemove","PopperPrimitive.Anchor","TRIGGER_NAME","PopoverTrigger","triggerProps","composedTriggerRef","useComposedRefs","trigger","Primitive","getState","composeEventHandlers","PORTAL_NAME","PortalProvider","usePortalContext","PopoverPortal","forceMount","container","Presence","PortalPrimitive","CONTENT_NAME","PopoverContent","portalContext","contentProps","PopoverContentModal","PopoverContentNonModal","Slot","contentRef","composedRefs","isRightClickOutsideRef","content","hideOthers","RemoveScroll","PopoverContentImpl","event","originalEvent","ctrlLeftClick","isRightClick","hasInteractedOutsideRef","hasPointerDownOutsideRef","target","trapFocus","onOpenAutoFocus","onCloseAutoFocus","disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","useFocusGuards","FocusScope","DismissableLayer","PopperPrimitive.Content","CLOSE_NAME","PopoverClose","closeProps","ARROW_NAME","PopoverArrow","arrowProps","PopperPrimitive.Arrow","Root2","Trigger","Portal","Content2","PopoverPrimitive.Root","PopoverPrimitive.Trigger","className","align","sideOffset","ref","PopoverPrimitive.Portal","PopoverPrimitive.Content","cn"],"mappings":";;;;;;;;;;AAKA,SAASA,EAAWC,GAAW;AAC7B,QAAMC,IAA4B,gBAAAC,EAAgBF,CAAS,GACrDG,IAAQC,EAAM,WAAW,CAACC,GAAOC,M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