@customafk/lunas-ui 0.0.57 → 0.0.60

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 (541) hide show
  1. package/README.md +248 -99
  2. package/dist/{add-new-B9KK77jE.js → add-new-BrbEoynl.js} +1 -1
  3. package/dist/{add-new-B9KK77jE.js.map → add-new-BrbEoynl.js.map} +1 -1
  4. package/dist/{add-new-B9vW0r69.cjs → add-new-C9Gjd7QJ.cjs} +1 -1
  5. package/dist/{add-new-B9vW0r69.cjs.map → add-new-C9Gjd7QJ.cjs.map} +1 -1
  6. package/dist/alert-dialog-CnUUZRzI.js +2 -0
  7. package/dist/alert-dialog-CnUUZRzI.js.map +1 -0
  8. package/dist/{alert-dialog-Bc-61QzL.cjs → alert-dialog-csUZX4AP.cjs} +2 -2
  9. package/dist/alert-dialog-csUZX4AP.cjs.map +1 -0
  10. package/dist/{badge-1pcWNSLo.js → badge-gByXCsor.js} +2 -2
  11. package/dist/{badge-1pcWNSLo.js.map → badge-gByXCsor.js.map} +1 -1
  12. package/dist/{badge-xqIWOEbF.cjs → badge-i7tq2_AR.cjs} +2 -2
  13. package/dist/{badge-xqIWOEbF.cjs.map → badge-i7tq2_AR.cjs.map} +1 -1
  14. package/dist/{button-ChLnQHG9.d.ts → button-BHhyePyp.d.ts} +3 -3
  15. package/dist/button-ChpGfVjG.cjs.map +1 -1
  16. package/dist/button-DL_i4AVi.js.map +1 -1
  17. package/dist/{calendar-rpgciCA-.cjs → calendar-DtHmsN1p.cjs} +2 -2
  18. package/dist/calendar-DtHmsN1p.cjs.map +1 -0
  19. package/dist/{calendar-CB_hTeGT.js → calendar-aC4BQig6.js} +2 -2
  20. package/dist/calendar-aC4BQig6.js.map +1 -0
  21. package/dist/cards/simple-card.cjs +1 -1
  22. package/dist/cards/simple-card.cjs.map +1 -1
  23. package/dist/cards/simple-card.d.cts +0 -1
  24. package/dist/cards/simple-card.d.ts +0 -1
  25. package/dist/cards/simple-card.js +1 -1
  26. package/dist/cards/simple-card.js.map +1 -1
  27. package/dist/command-B3A4F1pB.js.map +1 -1
  28. package/dist/{command-CQ0BKof5.d.ts → command-C6YVs0fB.d.ts} +12 -12
  29. package/dist/command-D5rQByNQ.cjs.map +1 -1
  30. package/dist/{command-BkU08119.d.cts → command-Duxn64SV.d.cts} +12 -12
  31. package/dist/data-display/country.cjs +1 -1
  32. package/dist/data-display/country.cjs.map +1 -1
  33. package/dist/data-display/country.d.cts +0 -1
  34. package/dist/data-display/country.d.ts +1 -2
  35. package/dist/data-display/country.js +1 -1
  36. package/dist/data-display/country.js.map +1 -1
  37. package/dist/data-display/data-list.cjs +1 -1
  38. package/dist/data-display/data-list.js +1 -1
  39. package/dist/data-display/date-tooltip.cjs +1 -1
  40. package/dist/data-display/date-tooltip.js +1 -1
  41. package/dist/data-display/date.cjs +1 -1
  42. package/dist/data-display/date.d.cts +0 -2
  43. package/dist/data-display/date.d.ts +0 -2
  44. package/dist/data-display/date.js +1 -1
  45. package/dist/data-display/empty.cjs +1 -1
  46. package/dist/data-display/empty.d.ts +2 -2
  47. package/dist/data-display/empty.js +1 -1
  48. package/dist/data-display/name.cjs +1 -1
  49. package/dist/data-display/name.cjs.map +1 -1
  50. package/dist/data-display/name.d.cts +0 -2
  51. package/dist/data-display/name.d.ts +0 -2
  52. package/dist/data-display/name.js +1 -1
  53. package/dist/data-display/name.js.map +1 -1
  54. package/dist/data-display/phone-number.cjs +1 -1
  55. package/dist/data-display/phone-number.js +1 -1
  56. package/dist/data-display/role-badge.cjs +1 -1
  57. package/dist/data-display/role-badge.cjs.map +1 -1
  58. package/dist/data-display/role-badge.d.cts +0 -1
  59. package/dist/data-display/role-badge.d.ts +1 -2
  60. package/dist/data-display/role-badge.js +1 -1
  61. package/dist/data-display/role-badge.js.map +1 -1
  62. package/dist/data-display/statistic.cjs +1 -1
  63. package/dist/data-display/statistic.cjs.map +1 -1
  64. package/dist/data-display/statistic.d.cts +4 -4
  65. package/dist/data-display/statistic.d.ts +4 -4
  66. package/dist/data-display/statistic.js +1 -1
  67. package/dist/data-display/statistic.js.map +1 -1
  68. package/dist/date-Cbx2drzh.js +2 -0
  69. package/dist/date-Cbx2drzh.js.map +1 -0
  70. package/dist/date-qVDm6BT3.cjs +2 -0
  71. package/dist/date-qVDm6BT3.cjs.map +1 -0
  72. package/dist/dialog-BEJ3krbY.js.map +1 -1
  73. package/dist/{dialog-Dt7Z19tQ.d.ts → dialog-Dra_FGdL.d.ts} +12 -12
  74. package/dist/dialog-E5OYibMU.cjs.map +1 -1
  75. package/dist/{dialog-DBHKJa6T.d.cts → dialog-uj9sAbgt.d.cts} +12 -12
  76. package/dist/dialogs/confirm-dialog.cjs +1 -1
  77. package/dist/dialogs/confirm-dialog.js +1 -1
  78. package/dist/dialogs/detail-dialog/component/sidebar.cjs +1 -1
  79. package/dist/dialogs/detail-dialog/component/sidebar.d.cts +27 -28
  80. package/dist/dialogs/detail-dialog/component/sidebar.d.ts +4 -5
  81. package/dist/dialogs/detail-dialog/component/sidebar.js +1 -1
  82. package/dist/dialogs/detail-dialog/index.cjs +1 -1
  83. package/dist/dialogs/detail-dialog/index.cjs.map +1 -1
  84. package/dist/dialogs/detail-dialog/index.js +1 -1
  85. package/dist/dialogs/detail-dialog/index.js.map +1 -1
  86. package/dist/dialogs/error-dialog.cjs +1 -1
  87. package/dist/dialogs/error-dialog.d.cts +0 -2
  88. package/dist/dialogs/error-dialog.d.ts +0 -2
  89. package/dist/dialogs/error-dialog.js +1 -1
  90. package/dist/dialogs/form-dialog.cjs +1 -1
  91. package/dist/dialogs/form-dialog.cjs.map +1 -1
  92. package/dist/dialogs/form-dialog.d.cts +2 -2
  93. package/dist/dialogs/form-dialog.d.ts +2 -2
  94. package/dist/dialogs/form-dialog.js +1 -1
  95. package/dist/dialogs/form-dialog.js.map +1 -1
  96. package/dist/dialogs/loading-dialog.cjs +1 -1
  97. package/dist/dialogs/loading-dialog.cjs.map +1 -1
  98. package/dist/dialogs/loading-dialog.d.cts +0 -2
  99. package/dist/dialogs/loading-dialog.d.ts +0 -2
  100. package/dist/dialogs/loading-dialog.js +1 -1
  101. package/dist/dialogs/loading-dialog.js.map +1 -1
  102. package/dist/dropdown-menu-BF9QbIfo.js.map +1 -1
  103. package/dist/dropdown-menu-CIldv8D7.cjs.map +1 -1
  104. package/dist/error-dialog-Be_eV-D7.js +2 -0
  105. package/dist/error-dialog-Be_eV-D7.js.map +1 -0
  106. package/dist/error-dialog-CsZ9SHEm.cjs +2 -0
  107. package/dist/error-dialog-CsZ9SHEm.cjs.map +1 -0
  108. package/dist/{flex-uJ4bFSYt.js → flex-D_GSLR10.js} +2 -2
  109. package/dist/{flex-uJ4bFSYt.js.map → flex-D_GSLR10.js.map} +1 -1
  110. package/dist/{flex-DHnsdjKn.cjs → flex-DaTrJCBr.cjs} +2 -2
  111. package/dist/{flex-DHnsdjKn.cjs.map → flex-DaTrJCBr.cjs.map} +1 -1
  112. package/dist/form-Dcd2HzUB.cjs +2 -0
  113. package/dist/form-Dcd2HzUB.cjs.map +1 -0
  114. package/dist/form-RRTCXIG6.js +2 -0
  115. package/dist/form-RRTCXIG6.js.map +1 -0
  116. package/dist/form-wrapper-CjFQKRzY.cjs +2 -0
  117. package/dist/form-wrapper-CjFQKRzY.cjs.map +1 -0
  118. package/dist/form-wrapper-D-KkrCiZ.js +2 -0
  119. package/dist/form-wrapper-D-KkrCiZ.js.map +1 -0
  120. package/dist/forms/combobox-field.cjs +1 -1
  121. package/dist/forms/combobox-field.cjs.map +1 -1
  122. package/dist/forms/combobox-field.d.cts +2 -2
  123. package/dist/forms/combobox-field.d.ts +2 -2
  124. package/dist/forms/combobox-field.js +1 -1
  125. package/dist/forms/combobox-field.js.map +1 -1
  126. package/dist/forms/date-field.cjs +1 -1
  127. package/dist/forms/date-field.cjs.map +1 -1
  128. package/dist/forms/date-field.d.cts +2 -2
  129. package/dist/forms/date-field.d.ts +2 -2
  130. package/dist/forms/date-field.js +1 -1
  131. package/dist/forms/date-field.js.map +1 -1
  132. package/dist/forms/form-wrapper.cjs +1 -1
  133. package/dist/forms/form-wrapper.d.cts +2 -3
  134. package/dist/forms/form-wrapper.d.ts +2 -3
  135. package/dist/forms/form-wrapper.js +1 -1
  136. package/dist/forms/multi-select-field.cjs +1 -1
  137. package/dist/forms/multi-select-field.cjs.map +1 -1
  138. package/dist/forms/multi-select-field.d.cts +2 -2
  139. package/dist/forms/multi-select-field.js +1 -1
  140. package/dist/forms/multi-select-field.js.map +1 -1
  141. package/dist/forms/number-field.cjs +1 -1
  142. package/dist/forms/number-field.cjs.map +1 -1
  143. package/dist/forms/number-field.d.cts +2 -2
  144. package/dist/forms/number-field.d.ts +2 -2
  145. package/dist/forms/number-field.js +1 -1
  146. package/dist/forms/number-field.js.map +1 -1
  147. package/dist/forms/password-field.cjs +1 -1
  148. package/dist/forms/password-field.cjs.map +1 -1
  149. package/dist/forms/password-field.d.cts +2 -2
  150. package/dist/forms/password-field.d.ts +2 -2
  151. package/dist/forms/password-field.js +1 -1
  152. package/dist/forms/password-field.js.map +1 -1
  153. package/dist/forms/select-field.cjs +1 -1
  154. package/dist/forms/select-field.cjs.map +1 -1
  155. package/dist/forms/select-field.d.cts +2 -2
  156. package/dist/forms/select-field.d.ts +2 -2
  157. package/dist/forms/select-field.js +1 -1
  158. package/dist/forms/select-field.js.map +1 -1
  159. package/dist/forms/switch-field.cjs +1 -1
  160. package/dist/forms/switch-field.cjs.map +1 -1
  161. package/dist/forms/switch-field.d.cts +2 -2
  162. package/dist/forms/switch-field.d.ts +2 -2
  163. package/dist/forms/switch-field.js +1 -1
  164. package/dist/forms/switch-field.js.map +1 -1
  165. package/dist/forms/text-field.cjs +1 -1
  166. package/dist/forms/text-field.cjs.map +1 -1
  167. package/dist/forms/text-field.d.cts +2 -2
  168. package/dist/forms/text-field.d.ts +2 -2
  169. package/dist/forms/text-field.js +1 -1
  170. package/dist/forms/text-field.js.map +1 -1
  171. package/dist/forms/textarea-field.cjs +1 -1
  172. package/dist/forms/textarea-field.d.cts +2 -2
  173. package/dist/forms/textarea-field.d.ts +2 -2
  174. package/dist/forms/textarea-field.js +1 -1
  175. package/dist/{input-BQYGZywO.d.cts → input-6yLVoluZ.d.cts} +3 -3
  176. package/dist/{input-OWyLq45f.js → input-B2PP82lE.js} +2 -2
  177. package/dist/input-B2PP82lE.js.map +1 -0
  178. package/dist/{input-B8bT3wuo.cjs → input-DQF8Uxmk.cjs} +2 -2
  179. package/dist/input-DQF8Uxmk.cjs.map +1 -0
  180. package/dist/{input-B8FXpdwz.d.ts → input-MftSrRAM.d.ts} +3 -3
  181. package/dist/label-BpefWj7m.js +2 -0
  182. package/dist/{label-BQ52Pjw-.js.map → label-BpefWj7m.js.map} +1 -1
  183. package/dist/label-BvHMsK0O.cjs +2 -0
  184. package/dist/{label-3eYQRRYp.cjs.map → label-BvHMsK0O.cjs.map} +1 -1
  185. package/dist/layouts/app-layout/index.cjs +1 -1
  186. package/dist/layouts/app-layout/index.cjs.map +1 -1
  187. package/dist/layouts/app-layout/index.d.cts +25 -25
  188. package/dist/layouts/app-layout/index.d.ts +26 -26
  189. package/dist/layouts/app-layout/index.js +1 -1
  190. package/dist/layouts/app-layout/index.js.map +1 -1
  191. package/dist/layouts/flex.cjs +1 -1
  192. package/dist/layouts/flex.d.cts +2 -2
  193. package/dist/layouts/flex.d.ts +2 -2
  194. package/dist/layouts/flex.js +1 -1
  195. package/dist/{multi-select-DoV9aD32.cjs → multi-select-Ch4hJ1ZJ.cjs} +2 -2
  196. package/dist/multi-select-Ch4hJ1ZJ.cjs.map +1 -0
  197. package/dist/multi-select-l55hOOtW.js +2 -0
  198. package/dist/multi-select-l55hOOtW.js.map +1 -0
  199. package/dist/paragraph-BsEYXIR3.cjs.map +1 -1
  200. package/dist/paragraph-D4klQX4h.js.map +1 -1
  201. package/dist/popover-BAGWkHPy.js.map +1 -1
  202. package/dist/popover-sgf8XI5P.cjs.map +1 -1
  203. package/dist/progress-CMMXIQct.js +2 -0
  204. package/dist/{progress-DPisovgi.js.map → progress-CMMXIQct.js.map} +1 -1
  205. package/dist/progress-IkXemE6u.cjs +2 -0
  206. package/dist/{progress-MyGITZ3w.cjs.map → progress-IkXemE6u.cjs.map} +1 -1
  207. package/dist/{refresh-By25Z7zj.cjs → refresh-CAScDb8R.cjs} +1 -1
  208. package/dist/{refresh-By25Z7zj.cjs.map → refresh-CAScDb8R.cjs.map} +1 -1
  209. package/dist/{refresh-CMzmHeMf.js → refresh-D4LYYQln.js} +1 -1
  210. package/dist/{refresh-CMzmHeMf.js.map → refresh-D4LYYQln.js.map} +1 -1
  211. package/dist/scroll-area-CPQoJKt1.js.map +1 -1
  212. package/dist/scroll-area-D7O1NyZn.cjs.map +1 -1
  213. package/dist/{search-input-BmAoqcee.cjs → search-input-B1eWzWZj.cjs} +2 -2
  214. package/dist/{search-input-BmAoqcee.cjs.map → search-input-B1eWzWZj.cjs.map} +1 -1
  215. package/dist/{search-input-Ba8aUECr.js → search-input-BZtDbdjl.js} +2 -2
  216. package/dist/{search-input-Ba8aUECr.js.map → search-input-BZtDbdjl.js.map} +1 -1
  217. package/dist/select-C7na5CE5.cjs +2 -0
  218. package/dist/select-C7na5CE5.cjs.map +1 -0
  219. package/dist/select-VpccO3h2.js +2 -0
  220. package/dist/select-VpccO3h2.js.map +1 -0
  221. package/dist/{separator-DJ-8s4B1.d.cts → separator-C0YKWxkk.d.cts} +3 -3
  222. package/dist/{separator-CJHYnmH1.d.ts → separator-D6-cZUiB.d.ts} +3 -3
  223. package/dist/{separator-Bp3QE0oo.js → separator-DW2rRXaF.js} +1 -1
  224. package/dist/{separator-Bp3QE0oo.js.map → separator-DW2rRXaF.js.map} +1 -1
  225. package/dist/{separator-CECnaAdc.cjs → separator-DbcVW13X.cjs} +1 -1
  226. package/dist/{separator-CECnaAdc.cjs.map → separator-DbcVW13X.cjs.map} +1 -1
  227. package/dist/{sheet-CvstHEA7.cjs → sheet-BoPRwRzk.cjs} +1 -1
  228. package/dist/sheet-BoPRwRzk.cjs.map +1 -0
  229. package/dist/{sheet-B2CNJMzu.js → sheet-CJscm87z.js} +1 -1
  230. package/dist/sheet-CJscm87z.js.map +1 -0
  231. package/dist/sidebar-BCsgl6i1.cjs +2 -0
  232. package/dist/sidebar-BCsgl6i1.cjs.map +1 -0
  233. package/dist/sidebar-BEgx0ScE.js +2 -0
  234. package/dist/sidebar-BEgx0ScE.js.map +1 -0
  235. package/dist/{skeleton-DcRggqJa.cjs → skeleton-1syVaGRv.cjs} +1 -1
  236. package/dist/{skeleton-DcRggqJa.cjs.map → skeleton-1syVaGRv.cjs.map} +1 -1
  237. package/dist/{skeleton-BSWmwJUf.js → skeleton-D_7tekGk.js} +1 -1
  238. package/dist/{skeleton-BSWmwJUf.js.map → skeleton-D_7tekGk.js.map} +1 -1
  239. package/dist/{switch-FHFPaOds.js → switch-DxMWudiz.js} +2 -2
  240. package/dist/{switch-FHFPaOds.js.map → switch-DxMWudiz.js.map} +1 -1
  241. package/dist/{switch-ozERHRm5.cjs → switch-fR9s61cJ.cjs} +2 -2
  242. package/dist/{switch-ozERHRm5.cjs.map → switch-fR9s61cJ.cjs.map} +1 -1
  243. package/dist/table/index.cjs +1 -1
  244. package/dist/table/index.cjs.map +1 -1
  245. package/dist/table/index.d.cts +2 -2
  246. package/dist/table/index.d.ts +2 -2
  247. package/dist/table/index.js +1 -1
  248. package/dist/table/index.js.map +1 -1
  249. package/dist/{table-Dgk7z91H.cjs → table-DxHSASjm.cjs} +2 -2
  250. package/dist/{table-Dgk7z91H.cjs.map → table-DxHSASjm.cjs.map} +1 -1
  251. package/dist/{table-goPaI3yw.js → table-DxiQX7c8.js} +2 -2
  252. package/dist/{table-goPaI3yw.js.map → table-DxiQX7c8.js.map} +1 -1
  253. package/dist/{textarea-DSJO-BLA.js → textarea-BZu5g3z6.js} +2 -2
  254. package/dist/textarea-BZu5g3z6.js.map +1 -0
  255. package/dist/{textarea-CtdlfMIV.cjs → textarea-qcxhp2mg.cjs} +2 -2
  256. package/dist/textarea-qcxhp2mg.cjs.map +1 -0
  257. package/dist/title-DONX1fR6.cjs.map +1 -1
  258. package/dist/title-itXqz0us.js.map +1 -1
  259. package/dist/{toggle-06cycHir.js → toggle-Biu3ZQOw.js} +2 -2
  260. package/dist/{toggle-06cycHir.js.map → toggle-Biu3ZQOw.js.map} +1 -1
  261. package/dist/{toggle-D5tumZ8L.d.cts → toggle-BxWWejw5.d.ts} +4 -4
  262. package/dist/{toggle-BIHM3COb.cjs → toggle-C50tM61w.cjs} +2 -2
  263. package/dist/{toggle-BIHM3COb.cjs.map → toggle-C50tM61w.cjs.map} +1 -1
  264. package/dist/{toggle-Dd0rFKhT.d.ts → toggle-DvJddJPj.d.cts} +4 -4
  265. package/dist/tooltip-B7S7TrMj.js +2 -0
  266. package/dist/{tooltip-Ba2AdN_7.js.map → tooltip-B7S7TrMj.js.map} +1 -1
  267. package/dist/{tooltip-DRqQqSFW.cjs → tooltip-BX3D74kN.cjs} +2 -2
  268. package/dist/{tooltip-DRqQqSFW.cjs.map → tooltip-BX3D74kN.cjs.map} +1 -1
  269. package/dist/{tooltip-BnRE0jV2.d.ts → tooltip-CcNSIS_A.d.ts} +6 -6
  270. package/dist/{tooltip-Dkh_dieJ.d.cts → tooltip-Ccg2G_fB.d.cts} +6 -6
  271. package/dist/types-BN8HhYHR.cjs.map +1 -1
  272. package/dist/types-DDfAVYxf.js.map +1 -1
  273. package/dist/{types-CmcNT14g.d.ts → types-engjL0nN.d.ts} +1 -1
  274. package/dist/typography/paragraph.d.cts +2 -2
  275. package/dist/typography/paragraph.d.ts +2 -2
  276. package/dist/typography/title.d.cts +2 -2
  277. package/dist/typography/title.d.ts +2 -2
  278. package/dist/ui/alert-dialog.cjs +1 -1
  279. package/dist/ui/alert-dialog.d.cts +12 -12
  280. package/dist/ui/alert-dialog.d.ts +12 -12
  281. package/dist/ui/alert-dialog.js +1 -1
  282. package/dist/ui/alert.cjs +1 -1
  283. package/dist/ui/alert.cjs.map +1 -1
  284. package/dist/ui/alert.d.ts +6 -6
  285. package/dist/ui/alert.js +1 -1
  286. package/dist/ui/alert.js.map +1 -1
  287. package/dist/ui/aspect-ratio.cjs +1 -1
  288. package/dist/ui/aspect-ratio.cjs.map +1 -1
  289. package/dist/ui/aspect-ratio.d.cts +2 -2
  290. package/dist/ui/aspect-ratio.d.ts +2 -2
  291. package/dist/ui/aspect-ratio.js +1 -1
  292. package/dist/ui/aspect-ratio.js.map +1 -1
  293. package/dist/ui/avatar.cjs +1 -1
  294. package/dist/ui/avatar.cjs.map +1 -1
  295. package/dist/ui/avatar.d.cts +4 -4
  296. package/dist/ui/avatar.d.ts +4 -4
  297. package/dist/ui/avatar.js +1 -1
  298. package/dist/ui/avatar.js.map +1 -1
  299. package/dist/ui/badge.cjs +1 -1
  300. package/dist/ui/badge.d.cts +2 -2
  301. package/dist/ui/badge.d.ts +4 -4
  302. package/dist/ui/badge.js +1 -1
  303. package/dist/ui/breadcrumb.cjs +1 -1
  304. package/dist/ui/breadcrumb.cjs.map +1 -1
  305. package/dist/ui/breadcrumb.d.cts +8 -8
  306. package/dist/ui/breadcrumb.d.ts +8 -8
  307. package/dist/ui/breadcrumb.js +1 -1
  308. package/dist/ui/breadcrumb.js.map +1 -1
  309. package/dist/ui/button.d.ts +1 -1
  310. package/dist/ui/buttons/add-new.cjs +1 -1
  311. package/dist/ui/buttons/add-new.js +1 -1
  312. package/dist/ui/buttons/refresh.cjs +1 -1
  313. package/dist/ui/buttons/refresh.js +1 -1
  314. package/dist/ui/buttons/upload-image.cjs +1 -1
  315. package/dist/ui/buttons/upload-image.cjs.map +1 -1
  316. package/dist/ui/buttons/upload-image.js +1 -1
  317. package/dist/ui/buttons/upload-image.js.map +1 -1
  318. package/dist/ui/calendar.cjs +1 -1
  319. package/dist/ui/calendar.d.cts +3 -3
  320. package/dist/ui/calendar.d.ts +4 -4
  321. package/dist/ui/calendar.js +1 -1
  322. package/dist/ui/card.d.cts +8 -8
  323. package/dist/ui/card.d.ts +8 -8
  324. package/dist/ui/carousel.cjs +1 -1
  325. package/dist/ui/carousel.cjs.map +1 -1
  326. package/dist/ui/carousel.d.cts +6 -6
  327. package/dist/ui/carousel.d.ts +7 -7
  328. package/dist/ui/carousel.js +1 -1
  329. package/dist/ui/carousel.js.map +1 -1
  330. package/dist/ui/collapsible.cjs +1 -1
  331. package/dist/ui/collapsible.cjs.map +1 -1
  332. package/dist/ui/collapsible.d.cts +4 -4
  333. package/dist/ui/collapsible.d.ts +4 -4
  334. package/dist/ui/collapsible.js +1 -1
  335. package/dist/ui/collapsible.js.map +1 -1
  336. package/dist/ui/command.d.cts +2 -2
  337. package/dist/ui/command.d.ts +2 -2
  338. package/dist/ui/context-menu.cjs +1 -1
  339. package/dist/ui/context-menu.cjs.map +1 -1
  340. package/dist/ui/context-menu.d.cts +16 -16
  341. package/dist/ui/context-menu.d.ts +16 -16
  342. package/dist/ui/context-menu.js +1 -1
  343. package/dist/ui/context-menu.js.map +1 -1
  344. package/dist/ui/dialog.d.cts +1 -1
  345. package/dist/ui/dialog.d.ts +1 -1
  346. package/dist/ui/dropdown-menu.d.cts +16 -16
  347. package/dist/ui/dropdown-menu.d.ts +16 -16
  348. package/dist/ui/file-uploader.cjs +2 -2
  349. package/dist/ui/file-uploader.cjs.map +1 -1
  350. package/dist/ui/file-uploader.d.cts +2 -2
  351. package/dist/ui/file-uploader.d.ts +2 -2
  352. package/dist/ui/file-uploader.js +2 -2
  353. package/dist/ui/file-uploader.js.map +1 -1
  354. package/dist/ui/form.cjs +1 -1
  355. package/dist/ui/form.d.cts +7 -7
  356. package/dist/ui/form.d.ts +7 -7
  357. package/dist/ui/form.js +1 -1
  358. package/dist/ui/hover-card.cjs +1 -1
  359. package/dist/ui/hover-card.cjs.map +1 -1
  360. package/dist/ui/hover-card.d.cts +4 -4
  361. package/dist/ui/hover-card.d.ts +4 -4
  362. package/dist/ui/hover-card.js +1 -1
  363. package/dist/ui/hover-card.js.map +1 -1
  364. package/dist/ui/image.cjs +2 -0
  365. package/dist/ui/image.cjs.map +1 -0
  366. package/dist/ui/image.d.cts +14 -0
  367. package/dist/ui/image.d.ts +14 -0
  368. package/dist/ui/image.js +2 -0
  369. package/dist/ui/image.js.map +1 -0
  370. package/dist/ui/input-otp.cjs +1 -1
  371. package/dist/ui/input-otp.cjs.map +1 -1
  372. package/dist/ui/input-otp.d.cts +5 -5
  373. package/dist/ui/input-otp.d.ts +5 -5
  374. package/dist/ui/input-otp.js +1 -1
  375. package/dist/ui/input-otp.js.map +1 -1
  376. package/dist/ui/input.cjs +1 -1
  377. package/dist/ui/input.d.cts +1 -1
  378. package/dist/ui/input.d.ts +1 -1
  379. package/dist/ui/input.js +1 -1
  380. package/dist/ui/inputs/search-input.cjs +1 -1
  381. package/dist/ui/inputs/search-input.d.cts +3 -3
  382. package/dist/ui/inputs/search-input.d.ts +3 -3
  383. package/dist/ui/inputs/search-input.js +1 -1
  384. package/dist/ui/label.cjs +1 -1
  385. package/dist/ui/label.d.cts +2 -2
  386. package/dist/ui/label.d.ts +2 -2
  387. package/dist/ui/label.js +1 -1
  388. package/dist/ui/menubar.cjs +1 -1
  389. package/dist/ui/menubar.cjs.map +1 -1
  390. package/dist/ui/menubar.d.cts +17 -17
  391. package/dist/ui/menubar.d.ts +17 -17
  392. package/dist/ui/menubar.js +1 -1
  393. package/dist/ui/menubar.js.map +1 -1
  394. package/dist/ui/multi-select.cjs +1 -1
  395. package/dist/ui/multi-select.d.cts +2 -2
  396. package/dist/ui/multi-select.d.ts +2 -2
  397. package/dist/ui/multi-select.js +1 -1
  398. package/dist/ui/navigation-menu.cjs.map +1 -1
  399. package/dist/ui/navigation-menu.d.cts +9 -9
  400. package/dist/ui/navigation-menu.d.ts +9 -9
  401. package/dist/ui/navigation-menu.js.map +1 -1
  402. package/dist/ui/pagination.cjs +1 -1
  403. package/dist/ui/pagination.cjs.map +1 -1
  404. package/dist/ui/pagination.d.cts +8 -8
  405. package/dist/ui/pagination.d.ts +9 -9
  406. package/dist/ui/pagination.js +1 -1
  407. package/dist/ui/pagination.js.map +1 -1
  408. package/dist/ui/popover.d.cts +5 -5
  409. package/dist/ui/popover.d.ts +5 -5
  410. package/dist/ui/progress.cjs +1 -1
  411. package/dist/ui/progress.d.cts +2 -2
  412. package/dist/ui/progress.d.ts +2 -2
  413. package/dist/ui/progress.js +1 -1
  414. package/dist/ui/radio-group.cjs +1 -1
  415. package/dist/ui/radio-group.cjs.map +1 -1
  416. package/dist/ui/radio-group.d.cts +3 -3
  417. package/dist/ui/radio-group.d.ts +3 -3
  418. package/dist/ui/radio-group.js +1 -1
  419. package/dist/ui/radio-group.js.map +1 -1
  420. package/dist/ui/resizable.cjs +1 -1
  421. package/dist/ui/resizable.cjs.map +1 -1
  422. package/dist/ui/resizable.d.cts +4 -4
  423. package/dist/ui/resizable.d.ts +4 -4
  424. package/dist/ui/resizable.js +1 -1
  425. package/dist/ui/resizable.js.map +1 -1
  426. package/dist/ui/scroll-area.d.cts +3 -3
  427. package/dist/ui/scroll-area.d.ts +3 -3
  428. package/dist/ui/select.cjs +1 -1
  429. package/dist/ui/select.d.cts +11 -11
  430. package/dist/ui/select.d.ts +11 -11
  431. package/dist/ui/select.js +1 -1
  432. package/dist/ui/separator.cjs +1 -1
  433. package/dist/ui/separator.d.cts +1 -1
  434. package/dist/ui/separator.d.ts +1 -1
  435. package/dist/ui/separator.js +1 -1
  436. package/dist/ui/sheet.cjs +1 -1
  437. package/dist/ui/sheet.d.cts +9 -9
  438. package/dist/ui/sheet.d.ts +9 -9
  439. package/dist/ui/sheet.js +1 -1
  440. package/dist/ui/sidebar.cjs +2 -1
  441. package/dist/ui/sidebar.cjs.map +1 -0
  442. package/dist/ui/sidebar.d.cts +29 -29
  443. package/dist/ui/sidebar.d.ts +30 -30
  444. package/dist/ui/sidebar.js +2 -1
  445. package/dist/ui/sidebar.js.map +1 -0
  446. package/dist/ui/skeleton.cjs +1 -1
  447. package/dist/ui/skeleton.d.cts +2 -2
  448. package/dist/ui/skeleton.d.ts +2 -2
  449. package/dist/ui/skeleton.js +1 -1
  450. package/dist/ui/slider.cjs +1 -1
  451. package/dist/ui/slider.cjs.map +1 -1
  452. package/dist/ui/slider.d.cts +2 -2
  453. package/dist/ui/slider.d.ts +2 -2
  454. package/dist/ui/slider.js +1 -1
  455. package/dist/ui/slider.js.map +1 -1
  456. package/dist/ui/sonner.d.cts +2 -2
  457. package/dist/ui/sonner.d.ts +2 -2
  458. package/dist/ui/switch.cjs +1 -1
  459. package/dist/ui/switch.d.cts +2 -2
  460. package/dist/ui/switch.d.ts +2 -2
  461. package/dist/ui/switch.js +1 -1
  462. package/dist/ui/table.cjs +1 -1
  463. package/dist/ui/table.d.cts +9 -9
  464. package/dist/ui/table.d.ts +9 -9
  465. package/dist/ui/table.js +1 -1
  466. package/dist/ui/tabs.cjs.map +1 -1
  467. package/dist/ui/tabs.d.cts +5 -5
  468. package/dist/ui/tabs.d.ts +5 -5
  469. package/dist/ui/tabs.js.map +1 -1
  470. package/dist/ui/textarea.cjs +1 -1
  471. package/dist/ui/textarea.d.cts +2 -2
  472. package/dist/ui/textarea.d.ts +2 -2
  473. package/dist/ui/textarea.js +1 -1
  474. package/dist/ui/toggle-group.cjs +1 -1
  475. package/dist/ui/toggle-group.cjs.map +1 -1
  476. package/dist/ui/toggle-group.d.cts +4 -4
  477. package/dist/ui/toggle-group.d.ts +4 -4
  478. package/dist/ui/toggle-group.js +1 -1
  479. package/dist/ui/toggle-group.js.map +1 -1
  480. package/dist/ui/toggle.cjs +1 -1
  481. package/dist/ui/toggle.d.cts +1 -1
  482. package/dist/ui/toggle.d.ts +1 -1
  483. package/dist/ui/toggle.js +1 -1
  484. package/dist/ui/tooltip.cjs +1 -1
  485. package/dist/ui/tooltip.d.cts +1 -1
  486. package/dist/ui/tooltip.d.ts +1 -1
  487. package/dist/ui/tooltip.js +1 -1
  488. package/package.json +15 -5
  489. package/dist/alert-dialog-Bc-61QzL.cjs.map +0 -1
  490. package/dist/alert-dialog-kpuqvmVo.js +0 -2
  491. package/dist/alert-dialog-kpuqvmVo.js.map +0 -1
  492. package/dist/calendar-CB_hTeGT.js.map +0 -1
  493. package/dist/calendar-rpgciCA-.cjs.map +0 -1
  494. package/dist/date-D7i-nFOS.js +0 -2
  495. package/dist/date-D7i-nFOS.js.map +0 -1
  496. package/dist/date-DevNulgp.cjs +0 -2
  497. package/dist/date-DevNulgp.cjs.map +0 -1
  498. package/dist/error-dialog-DvTlwpSn.cjs +0 -2
  499. package/dist/error-dialog-DvTlwpSn.cjs.map +0 -1
  500. package/dist/error-dialog-e9mFaOuG.js +0 -2
  501. package/dist/error-dialog-e9mFaOuG.js.map +0 -1
  502. package/dist/form-BzvxUv0a.js +0 -2
  503. package/dist/form-BzvxUv0a.js.map +0 -1
  504. package/dist/form-CXu8t0VS.cjs +0 -2
  505. package/dist/form-CXu8t0VS.cjs.map +0 -1
  506. package/dist/form-wrapper-CZKtb1j5.cjs +0 -2
  507. package/dist/form-wrapper-CZKtb1j5.cjs.map +0 -1
  508. package/dist/form-wrapper-Cks4xmCV.js +0 -2
  509. package/dist/form-wrapper-Cks4xmCV.js.map +0 -1
  510. package/dist/input-B8bT3wuo.cjs.map +0 -1
  511. package/dist/input-OWyLq45f.js.map +0 -1
  512. package/dist/label-3eYQRRYp.cjs +0 -2
  513. package/dist/label-BQ52Pjw-.js +0 -2
  514. package/dist/layouts/main/index.cjs +0 -2
  515. package/dist/layouts/main/index.cjs.map +0 -1
  516. package/dist/layouts/main/index.d.cts +0 -17
  517. package/dist/layouts/main/index.d.ts +0 -17
  518. package/dist/layouts/main/index.js +0 -2
  519. package/dist/layouts/main/index.js.map +0 -1
  520. package/dist/multi-select-DkEzuDXi.js +0 -2
  521. package/dist/multi-select-DkEzuDXi.js.map +0 -1
  522. package/dist/multi-select-DoV9aD32.cjs.map +0 -1
  523. package/dist/progress-DPisovgi.js +0 -2
  524. package/dist/progress-MyGITZ3w.cjs +0 -2
  525. package/dist/select-BjTQmEN7.js +0 -2
  526. package/dist/select-BjTQmEN7.js.map +0 -1
  527. package/dist/select-BlPiYiG_.cjs +0 -2
  528. package/dist/select-BlPiYiG_.cjs.map +0 -1
  529. package/dist/sheet-B2CNJMzu.js.map +0 -1
  530. package/dist/sheet-CvstHEA7.cjs.map +0 -1
  531. package/dist/sidebar-BDefeoUz.js +0 -2
  532. package/dist/sidebar-BDefeoUz.js.map +0 -1
  533. package/dist/sidebar-C6MoqLW4.cjs +0 -2
  534. package/dist/sidebar-C6MoqLW4.cjs.map +0 -1
  535. package/dist/sidebar-CoAMlkou.js +0 -2
  536. package/dist/sidebar-CoAMlkou.js.map +0 -1
  537. package/dist/sidebar-Dzl9-lVV.cjs +0 -2
  538. package/dist/sidebar-Dzl9-lVV.cjs.map +0 -1
  539. package/dist/textarea-CtdlfMIV.cjs.map +0 -1
  540. package/dist/textarea-DSJO-BLA.js.map +0 -1
  541. package/dist/tooltip-Ba2AdN_7.js +0 -2
@@ -1,2 +1,2 @@
1
- const e=require(`../chunk-CUT6urMc.cjs`);require(`../button-ChpGfVjG.cjs`);const t=require(`../alert-dialog-Bc-61QzL.cjs`),n=e.__toESM(require(`react/jsx-runtime`)),r=({open:e,isLoading:r=!1,title:i,description:a,onOpenChange:o,onConfirm:s})=>(0,n.jsx)(t.AlertDialog,{open:e,onOpenChange:o,children:(0,n.jsxs)(t.AlertDialogContent,{children:[(0,n.jsxs)(t.AlertDialogHeader,{className:`gap-0`,children:[(0,n.jsx)(t.AlertDialogTitle,{children:i}),(0,n.jsx)(t.AlertDialogDescription,{children:a})]}),(0,n.jsxs)(t.AlertDialogFooter,{children:[(0,n.jsx)(t.AlertDialogCancel,{children:`Cancel`}),(0,n.jsx)(t.AlertDialogAction,{className:`min-h-9 w-full md:w-24`,onClick:s,children:r?(0,n.jsx)(`div`,{className:`absolute inset-0 flex items-center justify-center`,children:(0,n.jsx)(`div`,{className:`loader-spinner text-muted-foreground`})}):`Confirm`})]})]})});exports.ConfirmDialog=r;
1
+ const e=require(`../chunk-CUT6urMc.cjs`);require(`../button-ChpGfVjG.cjs`);const t=require(`../alert-dialog-csUZX4AP.cjs`),n=e.__toESM(require(`react/jsx-runtime`)),r=({open:e,isLoading:r=!1,title:i,description:a,onOpenChange:o,onConfirm:s})=>(0,n.jsx)(t.AlertDialog,{open:e,onOpenChange:o,children:(0,n.jsxs)(t.AlertDialogContent,{children:[(0,n.jsxs)(t.AlertDialogHeader,{className:`gap-0`,children:[(0,n.jsx)(t.AlertDialogTitle,{children:i}),(0,n.jsx)(t.AlertDialogDescription,{children:a})]}),(0,n.jsxs)(t.AlertDialogFooter,{children:[(0,n.jsx)(t.AlertDialogCancel,{children:`Cancel`}),(0,n.jsx)(t.AlertDialogAction,{className:`min-h-9 w-full md:w-24`,onClick:s,children:r?(0,n.jsx)(`div`,{className:`absolute inset-0 flex items-center justify-center`,children:(0,n.jsx)(`div`,{className:`loader-spinner text-muted-foreground`})}):`Confirm`})]})]})});exports.ConfirmDialog=r;
2
2
  //# sourceMappingURL=confirm-dialog.cjs.map
@@ -1,2 +1,2 @@
1
- import"../button-DL_i4AVi.js";import{AlertDialog as e,AlertDialogAction as t,AlertDialogCancel as n,AlertDialogContent as r,AlertDialogDescription as i,AlertDialogFooter as a,AlertDialogHeader as o,AlertDialogTitle as s}from"../alert-dialog-kpuqvmVo.js";import{jsx as c,jsxs as l}from"react/jsx-runtime";const u=({open:u,isLoading:d=!1,title:f,description:p,onOpenChange:m,onConfirm:h})=>c(e,{open:u,onOpenChange:m,children:l(r,{children:[l(o,{className:`gap-0`,children:[c(s,{children:f}),c(i,{children:p})]}),l(a,{children:[c(n,{children:`Cancel`}),c(t,{className:`min-h-9 w-full md:w-24`,onClick:h,children:d?c(`div`,{className:`absolute inset-0 flex items-center justify-center`,children:c(`div`,{className:`loader-spinner text-muted-foreground`})}):`Confirm`})]})]})});export{u as ConfirmDialog};
1
+ import"../button-DL_i4AVi.js";import{AlertDialog as e,AlertDialogAction as t,AlertDialogCancel as n,AlertDialogContent as r,AlertDialogDescription as i,AlertDialogFooter as a,AlertDialogHeader as o,AlertDialogTitle as s}from"../alert-dialog-CnUUZRzI.js";import{jsx as c,jsxs as l}from"react/jsx-runtime";const u=({open:u,isLoading:d=!1,title:f,description:p,onOpenChange:m,onConfirm:h})=>c(e,{open:u,onOpenChange:m,children:l(r,{children:[l(o,{className:`gap-0`,children:[c(s,{children:f}),c(i,{children:p})]}),l(a,{children:[c(n,{children:`Cancel`}),c(t,{className:`min-h-9 w-full md:w-24`,onClick:h,children:d?c(`div`,{className:`absolute inset-0 flex items-center justify-center`,children:c(`div`,{className:`loader-spinner text-muted-foreground`})}):`Confirm`})]})]})});export{u as ConfirmDialog};
2
2
  //# sourceMappingURL=confirm-dialog.js.map
@@ -1 +1 @@
1
- "use client";require(`../../../tooltip-DRqQqSFW.cjs`),require(`../../../button-ChpGfVjG.cjs`),require(`../../../input-B8bT3wuo.cjs`),require(`../../../separator-CECnaAdc.cjs`),require(`../../../sheet-CvstHEA7.cjs`),require(`../../../skeleton-DcRggqJa.cjs`);const e=require(`../../../sidebar-C6MoqLW4.cjs`);exports.DetailDialogSidebarContent=e.DetailDialogSidebarContent,exports.DetailDialogSidebarFooter=e.DetailDialogSidebarFooter,exports.DetailDialogSidebarGroup=e.DetailDialogSidebarGroup,exports.DetailDialogSidebarGroupAction=e.DetailDialogSidebarGroupAction,exports.DetailDialogSidebarGroupContent=e.DetailDialogSidebarGroupContent,exports.DetailDialogSidebarGroupLabel=e.DetailDialogSidebarGroupLabel,exports.DetailDialogSidebarHeader=e.DetailDialogSidebarHeader,exports.DetailDialogSidebarMenu=e.DetailDialogSidebarMenu,exports.DetailDialogSidebarMenuAction=e.DetailDialogSidebarMenuAction,exports.DetailDialogSidebarMenuBadge=e.DetailDialogSidebarMenuBadge,exports.DetailDialogSidebarMenuButton=e.DetailDialogSidebarMenuButton,exports.DetailDialogSidebarMenuItem=e.DetailDialogSidebarMenuItem,exports.DetailDialogSidebarMenuSkeleton=e.DetailDialogSidebarMenuSkeleton,exports.DetailDialogSidebarMenuSub=e.DetailDialogSidebarMenuSub,exports.DetailDialogSidebarMenuSubButton=e.DetailDialogSidebarMenuSubButton,exports.DetailDialogSidebarMenuSubItem=e.DetailDialogSidebarMenuSubItem,exports.DetailDialogSidebarRail=e.DetailDialogSidebarRail,exports.DetailDialogSidebarSeparator=e.DetailDialogSidebarSeparator,exports.DetailDialogSidebarTrigger=e.DetailDialogSidebarTrigger,exports.Sidebar=e.Sidebar,exports.SidebarInput=e.SidebarInput,exports.SidebarInset=e.SidebarInset,exports.SidebarProvider=e.SidebarProvider,exports.useSidebar=e.useSidebar;
1
+ "use client";require(`../../../tooltip-BX3D74kN.cjs`),require(`../../../button-ChpGfVjG.cjs`),require(`../../../input-DQF8Uxmk.cjs`),require(`../../../skeleton-1syVaGRv.cjs`),require(`../../../separator-DbcVW13X.cjs`),require(`../../../sheet-BoPRwRzk.cjs`);const e=require(`../../../sidebar-BCsgl6i1.cjs`);exports.DetailDialogSidebarContent=e.DetailDialogSidebarContent,exports.DetailDialogSidebarFooter=e.DetailDialogSidebarFooter,exports.DetailDialogSidebarGroup=e.DetailDialogSidebarGroup,exports.DetailDialogSidebarGroupAction=e.DetailDialogSidebarGroupAction,exports.DetailDialogSidebarGroupContent=e.DetailDialogSidebarGroupContent,exports.DetailDialogSidebarGroupLabel=e.DetailDialogSidebarGroupLabel,exports.DetailDialogSidebarHeader=e.DetailDialogSidebarHeader,exports.DetailDialogSidebarMenu=e.DetailDialogSidebarMenu,exports.DetailDialogSidebarMenuAction=e.DetailDialogSidebarMenuAction,exports.DetailDialogSidebarMenuBadge=e.DetailDialogSidebarMenuBadge,exports.DetailDialogSidebarMenuButton=e.DetailDialogSidebarMenuButton,exports.DetailDialogSidebarMenuItem=e.DetailDialogSidebarMenuItem,exports.DetailDialogSidebarMenuSkeleton=e.DetailDialogSidebarMenuSkeleton,exports.DetailDialogSidebarMenuSub=e.DetailDialogSidebarMenuSub,exports.DetailDialogSidebarMenuSubButton=e.DetailDialogSidebarMenuSubButton,exports.DetailDialogSidebarMenuSubItem=e.DetailDialogSidebarMenuSubItem,exports.DetailDialogSidebarRail=e.DetailDialogSidebarRail,exports.DetailDialogSidebarSeparator=e.DetailDialogSidebarSeparator,exports.DetailDialogSidebarTrigger=e.DetailDialogSidebarTrigger,exports.Sidebar=e.Sidebar,exports.SidebarInput=e.SidebarInput,exports.SidebarInset=e.SidebarInset,exports.SidebarProvider=e.SidebarProvider,exports.useSidebar=e.useSidebar;
@@ -1,9 +1,8 @@
1
1
  import { Button } from "../../../button-QTiWGKzL.cjs";
2
- import { Input } from "../../../input-BQYGZywO.cjs";
3
- import { Separator } from "../../../separator-DJ-8s4B1.cjs";
4
- import { TooltipContent } from "../../../tooltip-Dkh_dieJ.cjs";
5
- import * as react_jsx_runtime233 from "react/jsx-runtime";
6
- import React from "react";
2
+ import { Input } from "../../../input-6yLVoluZ.cjs";
3
+ import { Separator } from "../../../separator-C0YKWxkk.cjs";
4
+ import { TooltipContent } from "../../../tooltip-Ccg2G_fB.cjs";
5
+ import * as react_jsx_runtime236 from "react/jsx-runtime";
7
6
  import * as class_variance_authority_types6 from "class-variance-authority/types";
8
7
  import { VariantProps } from "class-variance-authority";
9
8
 
@@ -30,7 +29,7 @@ declare function SidebarProvider({
30
29
  defaultOpen?: boolean;
31
30
  open?: boolean;
32
31
  onOpenChange?: (open: boolean) => void;
33
- }): react_jsx_runtime233.JSX.Element;
32
+ }): react_jsx_runtime236.JSX.Element;
34
33
  declare function Sidebar({
35
34
  side,
36
35
  variant,
@@ -42,70 +41,70 @@ declare function Sidebar({
42
41
  side?: 'left' | 'right';
43
42
  variant?: 'sidebar' | 'floating' | 'inset';
44
43
  collapsible?: 'offcanvas' | 'icon' | 'none';
45
- }): react_jsx_runtime233.JSX.Element;
44
+ }): react_jsx_runtime236.JSX.Element;
46
45
  declare function DetailDialogSidebarTrigger({
47
46
  className,
48
47
  onClick,
49
48
  ...props
50
- }: React.ComponentProps<typeof Button>): react_jsx_runtime233.JSX.Element;
49
+ }: React.ComponentProps<typeof Button>): react_jsx_runtime236.JSX.Element;
51
50
  declare function DetailDialogSidebarRail({
52
51
  className,
53
52
  ...props
54
- }: React.ComponentProps<'button'>): react_jsx_runtime233.JSX.Element;
53
+ }: React.ComponentProps<'button'>): react_jsx_runtime236.JSX.Element;
55
54
  declare function SidebarInset({
56
55
  className,
57
56
  ...props
58
- }: React.ComponentProps<'main'>): react_jsx_runtime233.JSX.Element;
57
+ }: React.ComponentProps<'main'>): react_jsx_runtime236.JSX.Element;
59
58
  declare function SidebarInput({
60
59
  className,
61
60
  ...props
62
- }: React.ComponentProps<typeof Input>): react_jsx_runtime233.JSX.Element;
61
+ }: React.ComponentProps<typeof Input>): react_jsx_runtime236.JSX.Element;
63
62
  declare function DetailDialogSidebarHeader({
64
63
  className,
65
64
  ...props
66
- }: React.ComponentProps<'div'>): react_jsx_runtime233.JSX.Element;
65
+ }: React.ComponentProps<'div'>): react_jsx_runtime236.JSX.Element;
67
66
  declare function DetailDialogSidebarFooter({
68
67
  className,
69
68
  ...props
70
- }: React.ComponentProps<'div'>): react_jsx_runtime233.JSX.Element;
69
+ }: React.ComponentProps<'div'>): react_jsx_runtime236.JSX.Element;
71
70
  declare function DetailDialogSidebarSeparator({
72
71
  className,
73
72
  ...props
74
- }: React.ComponentProps<typeof Separator>): react_jsx_runtime233.JSX.Element;
73
+ }: React.ComponentProps<typeof Separator>): react_jsx_runtime236.JSX.Element;
75
74
  declare function DetailDialogSidebarContent({
76
75
  className,
77
76
  ...props
78
- }: React.ComponentProps<'div'>): react_jsx_runtime233.JSX.Element;
77
+ }: React.ComponentProps<'div'>): react_jsx_runtime236.JSX.Element;
79
78
  declare function DetailDialogSidebarGroup({
80
79
  className,
81
80
  ...props
82
- }: React.ComponentProps<'div'>): react_jsx_runtime233.JSX.Element;
81
+ }: React.ComponentProps<'div'>): react_jsx_runtime236.JSX.Element;
83
82
  declare function DetailDialogSidebarGroupLabel({
84
83
  className,
85
84
  asChild,
86
85
  ...props
87
86
  }: React.ComponentProps<'div'> & {
88
87
  asChild?: boolean;
89
- }): react_jsx_runtime233.JSX.Element;
88
+ }): react_jsx_runtime236.JSX.Element;
90
89
  declare function DetailDialogSidebarGroupAction({
91
90
  className,
92
91
  asChild,
93
92
  ...props
94
93
  }: React.ComponentProps<'button'> & {
95
94
  asChild?: boolean;
96
- }): react_jsx_runtime233.JSX.Element;
95
+ }): react_jsx_runtime236.JSX.Element;
97
96
  declare function DetailDialogSidebarGroupContent({
98
97
  className,
99
98
  ...props
100
- }: React.ComponentProps<'div'>): react_jsx_runtime233.JSX.Element;
99
+ }: React.ComponentProps<'div'>): react_jsx_runtime236.JSX.Element;
101
100
  declare function DetailDialogSidebarMenu({
102
101
  className,
103
102
  ...props
104
- }: React.ComponentProps<'ul'>): react_jsx_runtime233.JSX.Element;
103
+ }: React.ComponentProps<'ul'>): react_jsx_runtime236.JSX.Element;
105
104
  declare function DetailDialogSidebarMenuItem({
106
105
  className,
107
106
  ...props
108
- }: React.ComponentProps<'li'>): react_jsx_runtime233.JSX.Element;
107
+ }: React.ComponentProps<'li'>): react_jsx_runtime236.JSX.Element;
109
108
  declare const sidebarMenuButtonVariants: (props?: ({
110
109
  variant?: "default" | "outline" | null | undefined;
111
110
  size?: "sm" | "lg" | "default" | null | undefined;
@@ -122,7 +121,7 @@ declare function DetailDialogSidebarMenuButton({
122
121
  asChild?: boolean;
123
122
  isActive?: boolean;
124
123
  tooltip?: string | React.ComponentProps<typeof TooltipContent>;
125
- } & VariantProps<typeof sidebarMenuButtonVariants>): react_jsx_runtime233.JSX.Element;
124
+ } & VariantProps<typeof sidebarMenuButtonVariants>): react_jsx_runtime236.JSX.Element;
126
125
  declare function DetailDialogSidebarMenuAction({
127
126
  className,
128
127
  asChild,
@@ -131,26 +130,26 @@ declare function DetailDialogSidebarMenuAction({
131
130
  }: React.ComponentProps<'button'> & {
132
131
  asChild?: boolean;
133
132
  showOnHover?: boolean;
134
- }): react_jsx_runtime233.JSX.Element;
133
+ }): react_jsx_runtime236.JSX.Element;
135
134
  declare function DetailDialogSidebarMenuBadge({
136
135
  className,
137
136
  ...props
138
- }: React.ComponentProps<'div'>): react_jsx_runtime233.JSX.Element;
137
+ }: React.ComponentProps<'div'>): react_jsx_runtime236.JSX.Element;
139
138
  declare function DetailDialogSidebarMenuSkeleton({
140
139
  className,
141
140
  showIcon,
142
141
  ...props
143
142
  }: React.ComponentProps<'div'> & {
144
143
  showIcon?: boolean;
145
- }): react_jsx_runtime233.JSX.Element;
144
+ }): react_jsx_runtime236.JSX.Element;
146
145
  declare function DetailDialogSidebarMenuSub({
147
146
  className,
148
147
  ...props
149
- }: React.ComponentProps<'ul'>): react_jsx_runtime233.JSX.Element;
148
+ }: React.ComponentProps<'ul'>): react_jsx_runtime236.JSX.Element;
150
149
  declare function DetailDialogSidebarMenuSubItem({
151
150
  className,
152
151
  ...props
153
- }: React.ComponentProps<'li'>): react_jsx_runtime233.JSX.Element;
152
+ }: React.ComponentProps<'li'>): react_jsx_runtime236.JSX.Element;
154
153
  declare function DetailDialogSidebarMenuSubButton({
155
154
  asChild,
156
155
  size,
@@ -161,7 +160,7 @@ declare function DetailDialogSidebarMenuSubButton({
161
160
  asChild?: boolean;
162
161
  size?: 'sm' | 'md';
163
162
  isActive?: boolean;
164
- }): react_jsx_runtime233.JSX.Element;
163
+ }): react_jsx_runtime236.JSX.Element;
165
164
  //#endregion
166
165
  export { DetailDialogSidebarContent, DetailDialogSidebarFooter, DetailDialogSidebarGroup, DetailDialogSidebarGroupAction, DetailDialogSidebarGroupContent, DetailDialogSidebarGroupLabel, DetailDialogSidebarHeader, DetailDialogSidebarMenu, DetailDialogSidebarMenuAction, DetailDialogSidebarMenuBadge, DetailDialogSidebarMenuButton, DetailDialogSidebarMenuItem, DetailDialogSidebarMenuSkeleton, DetailDialogSidebarMenuSub, DetailDialogSidebarMenuSubButton, DetailDialogSidebarMenuSubItem, DetailDialogSidebarRail, DetailDialogSidebarSeparator, DetailDialogSidebarTrigger, Sidebar, SidebarInput, SidebarInset, SidebarProvider, useSidebar };
167
166
  //# sourceMappingURL=sidebar.d.cts.map
@@ -1,8 +1,7 @@
1
- import { Button } from "../../../button-ChLnQHG9.js";
2
- import { Input } from "../../../input-B8FXpdwz.js";
3
- import { Separator } from "../../../separator-CJHYnmH1.js";
4
- import { TooltipContent } from "../../../tooltip-BnRE0jV2.js";
5
- import React from "react";
1
+ import { Button } from "../../../button-BHhyePyp.js";
2
+ import { Input } from "../../../input-MftSrRAM.js";
3
+ import { Separator } from "../../../separator-D6-cZUiB.js";
4
+ import { TooltipContent } from "../../../tooltip-CcNSIS_A.js";
6
5
  import * as react_jsx_runtime236 from "react/jsx-runtime";
7
6
  import { VariantProps } from "class-variance-authority";
8
7
  import * as class_variance_authority_types6 from "class-variance-authority/types";
@@ -1 +1 @@
1
- "use client";import"../../../tooltip-Ba2AdN_7.js";import"../../../button-DL_i4AVi.js";import"../../../input-OWyLq45f.js";import"../../../separator-Bp3QE0oo.js";import"../../../sheet-B2CNJMzu.js";import"../../../skeleton-BSWmwJUf.js";import{DetailDialogSidebarContent as e,DetailDialogSidebarFooter as t,DetailDialogSidebarGroup as n,DetailDialogSidebarGroupAction as r,DetailDialogSidebarGroupContent as i,DetailDialogSidebarGroupLabel as a,DetailDialogSidebarHeader as o,DetailDialogSidebarMenu as s,DetailDialogSidebarMenuAction as c,DetailDialogSidebarMenuBadge as l,DetailDialogSidebarMenuButton as u,DetailDialogSidebarMenuItem as d,DetailDialogSidebarMenuSkeleton as f,DetailDialogSidebarMenuSub as p,DetailDialogSidebarMenuSubButton as m,DetailDialogSidebarMenuSubItem as h,DetailDialogSidebarRail as g,DetailDialogSidebarSeparator as _,DetailDialogSidebarTrigger as v,Sidebar as y,SidebarInput as b,SidebarInset as x,SidebarProvider as S,useSidebar as C}from"../../../sidebar-CoAMlkou.js";export{e as DetailDialogSidebarContent,t as DetailDialogSidebarFooter,n as DetailDialogSidebarGroup,r as DetailDialogSidebarGroupAction,i as DetailDialogSidebarGroupContent,a as DetailDialogSidebarGroupLabel,o as DetailDialogSidebarHeader,s as DetailDialogSidebarMenu,c as DetailDialogSidebarMenuAction,l as DetailDialogSidebarMenuBadge,u as DetailDialogSidebarMenuButton,d as DetailDialogSidebarMenuItem,f as DetailDialogSidebarMenuSkeleton,p as DetailDialogSidebarMenuSub,m as DetailDialogSidebarMenuSubButton,h as DetailDialogSidebarMenuSubItem,g as DetailDialogSidebarRail,_ as DetailDialogSidebarSeparator,v as DetailDialogSidebarTrigger,y as Sidebar,b as SidebarInput,x as SidebarInset,S as SidebarProvider,C as useSidebar};
1
+ "use client";import"../../../tooltip-B7S7TrMj.js";import"../../../button-DL_i4AVi.js";import"../../../input-B2PP82lE.js";import"../../../skeleton-D_7tekGk.js";import"../../../separator-DW2rRXaF.js";import"../../../sheet-CJscm87z.js";import{DetailDialogSidebarContent as e,DetailDialogSidebarFooter as t,DetailDialogSidebarGroup as n,DetailDialogSidebarGroupAction as r,DetailDialogSidebarGroupContent as i,DetailDialogSidebarGroupLabel as a,DetailDialogSidebarHeader as o,DetailDialogSidebarMenu as s,DetailDialogSidebarMenuAction as c,DetailDialogSidebarMenuBadge as l,DetailDialogSidebarMenuButton as u,DetailDialogSidebarMenuItem as d,DetailDialogSidebarMenuSkeleton as f,DetailDialogSidebarMenuSub as p,DetailDialogSidebarMenuSubButton as m,DetailDialogSidebarMenuSubItem as h,DetailDialogSidebarRail as g,DetailDialogSidebarSeparator as _,DetailDialogSidebarTrigger as v,Sidebar as y,SidebarInput as b,SidebarInset as x,SidebarProvider as S,useSidebar as C}from"../../../sidebar-BEgx0ScE.js";export{e as DetailDialogSidebarContent,t as DetailDialogSidebarFooter,n as DetailDialogSidebarGroup,r as DetailDialogSidebarGroupAction,i as DetailDialogSidebarGroupContent,a as DetailDialogSidebarGroupLabel,o as DetailDialogSidebarHeader,s as DetailDialogSidebarMenu,c as DetailDialogSidebarMenuAction,l as DetailDialogSidebarMenuBadge,u as DetailDialogSidebarMenuButton,d as DetailDialogSidebarMenuItem,f as DetailDialogSidebarMenuSkeleton,p as DetailDialogSidebarMenuSub,m as DetailDialogSidebarMenuSubButton,h as DetailDialogSidebarMenuSubItem,g as DetailDialogSidebarRail,_ as DetailDialogSidebarSeparator,v as DetailDialogSidebarTrigger,y as Sidebar,b as SidebarInput,x as SidebarInset,S as SidebarProvider,C as useSidebar};
@@ -1,2 +1,2 @@
1
- const e=require(`../../chunk-CUT6urMc.cjs`);require(`../../card-BNMBjSC_.cjs`);const t=require(`../../flex-DHnsdjKn.cjs`),n=require(`../../date-DevNulgp.cjs`);require(`../../tooltip-DRqQqSFW.cjs`),require(`../../button-ChpGfVjG.cjs`);const r=require(`../../dialog-E5OYibMU.cjs`);require(`../../input-B8bT3wuo.cjs`);const i=require(`../../title-DONX1fR6.cjs`);require(`../../separator-CECnaAdc.cjs`),require(`../../sheet-CvstHEA7.cjs`),require(`../../skeleton-DcRggqJa.cjs`);const a=require(`../../sidebar-C6MoqLW4.cjs`),o=e.__toESM(require(`@customafk/react-toolkit/utils`)),s=e.__toESM(require(`react/jsx-runtime`)),c=e.__toESM(require(`lucide-react`)),l=()=>(0,s.jsxs)(r.DialogHeader,{className:`sr-only`,children:[(0,s.jsx)(r.DialogTitle,{className:`sr-only`}),(0,s.jsx)(r.DialogDescription,{className:`sr-only`})]}),u=({children:e})=>(0,s.jsx)(`main`,{"data-slot":`detail-dialog-main`,className:`relative h-full flex-1`,children:(0,s.jsx)(t.Flex,{padding:`none`,gap:`none`,vertical:!0,align:`stretch`,className:`absolute inset-0 size-full`,children:e})}),d=({title:e,createdAt:r})=>(0,s.jsxs)(`header`,{className:`bg-card border-border-weak flex w-full flex-0 items-start gap-x-2.5 border-b py-2.5 pr-12 pl-2`,children:[(0,s.jsx)(a.DetailDialogSidebarTrigger,{}),(0,s.jsxs)(t.Flex,{vertical:!0,align:`start`,padding:`none`,width:`null`,wrap:!1,className:`flex-1`,children:[(0,s.jsx)(i.Title,{level:5,className:`line-clamp-1 truncate text-wrap`,children:e||`Detail Dialog`}),(0,s.jsxs)(t.Flex,{padding:`none`,className:`text-text-positive-weak relative`,children:[(0,s.jsx)(c.CalendarIcon,{size:12,className:`absolute top-0.5 md:top-1`}),!!r&&(0,s.jsx)(n.DateDisplay,{showTime:!0,showHoliday:!0,date:r,format:`full`,className:`ml-4 text-xs md:text-sm`})]})]})]}),f=({children:e})=>(0,s.jsx)(r.DialogContent,{className:(0,o.cn)(`relative h-full overflow-hidden border-none p-0`,`rounded-none md:rounded-lg`,`max-h-svh max-w-svw`,`md:max-h-[90svh] md:max-w-[90svw]`,`xl:max-h-[90svh] xl:max-w-[90svw]`,`2xl:max-h-[90svh] 2xl:max-w-7xl`),onInteractOutside:e=>{e.preventDefault(),e.stopPropagation()},children:e}),p=({title:e,sidebarFooter:t,children:n})=>(0,s.jsxs)(a.Sidebar,{collapsible:`icon`,className:`shadow-nav z-20 hidden md:flex`,children:[(0,s.jsx)(a.DetailDialogSidebarHeader,{children:(0,s.jsx)(a.DetailDialogSidebarMenu,{children:(0,s.jsx)(a.DetailDialogSidebarMenuItem,{children:(0,s.jsxs)(a.DetailDialogSidebarMenuButton,{size:`lg`,tabIndex:-1,children:[(0,s.jsx)(`div`,{className:`bg-sidebar-primary text-sidebar-primary-foreground flex aspect-square size-8 items-center justify-center rounded-lg`,children:(0,s.jsx)(c.CatIcon,{size:16})}),(0,s.jsxs)(`div`,{className:`grid flex-1 text-left text-sm leading-tight`,children:[(0,s.jsx)(`span`,{className:`truncate font-medium`,children:e||`Detail Dialog`}),(0,s.jsx)(`span`,{className:`truncate text-xs`,children:`Lunas Enterprise`})]})]})})})}),(0,s.jsx)(a.DetailDialogSidebarContent,{children:(0,s.jsx)(a.DetailDialogSidebarGroup,{children:n})}),t&&(0,s.jsx)(a.DetailDialogSidebarFooter,{children:t})]}),m=({open:e,isLoading:n=!1,sidebarTitle:i,sidebar:o,sidebarFooter:c,title:m,createdAt:h,onOpenChange:g,children:_})=>(0,s.jsx)(r.Dialog,{open:e,onOpenChange:g,children:(0,s.jsxs)(f,{children:[(0,s.jsx)(l,{}),(0,s.jsxs)(a.SidebarProvider,{className:`h-full min-h-[85svh] items-start`,children:[(0,s.jsx)(p,{title:i,sidebarFooter:c,children:o}),(0,s.jsxs)(u,{children:[(0,s.jsx)(d,{title:m,createdAt:h}),n?(0,s.jsx)(t.Flex,{justify:`center`,className:`bg-muted-muted w-full flex-1 inset-shadow-sm`,children:(0,s.jsx)(`div`,{className:`loader`})}):(0,s.jsx)(`section`,{className:`bg-muted-muted relative flex flex-1 snap-y flex-col gap-0 overflow-y-auto inset-shadow-sm`,children:_})]})]})]})});exports.DetailDialog=m;
1
+ const e=require(`../../chunk-CUT6urMc.cjs`);require(`../../card-BNMBjSC_.cjs`);const t=require(`../../flex-DaTrJCBr.cjs`),n=require(`../../date-qVDm6BT3.cjs`);require(`../../tooltip-BX3D74kN.cjs`),require(`../../button-ChpGfVjG.cjs`);const r=require(`../../dialog-E5OYibMU.cjs`);require(`../../input-DQF8Uxmk.cjs`);const i=require(`../../title-DONX1fR6.cjs`);require(`../../skeleton-1syVaGRv.cjs`),require(`../../separator-DbcVW13X.cjs`),require(`../../sheet-BoPRwRzk.cjs`);const a=require(`../../sidebar-BCsgl6i1.cjs`),o=e.__toESM(require(`@customafk/react-toolkit/utils`)),s=e.__toESM(require(`react/jsx-runtime`)),c=e.__toESM(require(`lucide-react`)),l=()=>(0,s.jsxs)(r.DialogHeader,{className:`sr-only`,children:[(0,s.jsx)(r.DialogTitle,{className:`sr-only`}),(0,s.jsx)(r.DialogDescription,{className:`sr-only`})]}),u=({children:e})=>(0,s.jsx)(`main`,{"data-slot":`detail-dialog-main`,className:`relative h-full flex-1`,children:(0,s.jsx)(t.Flex,{padding:`none`,gap:`none`,vertical:!0,align:`stretch`,className:`absolute inset-0 size-full`,children:e})}),d=({title:e,createdAt:r})=>(0,s.jsxs)(`header`,{className:`bg-card border-border-weak flex w-full flex-0 items-start gap-x-2.5 border-b py-2.5 pr-12 pl-2`,children:[(0,s.jsx)(a.DetailDialogSidebarTrigger,{}),(0,s.jsxs)(t.Flex,{vertical:!0,align:`start`,padding:`none`,width:`null`,wrap:!1,className:`flex-1`,children:[(0,s.jsx)(i.Title,{level:5,className:`line-clamp-1 truncate text-wrap`,children:e||`Detail Dialog`}),(0,s.jsxs)(t.Flex,{padding:`none`,className:`text-text-positive-weak relative`,children:[(0,s.jsx)(c.CalendarIcon,{size:12,className:`absolute top-0.5 md:top-1`}),!!r&&(0,s.jsx)(n.DateDisplay,{showTime:!0,showHoliday:!0,date:r,format:`full`,className:`ml-4 text-xs md:text-sm`})]})]})]}),f=({children:e})=>(0,s.jsx)(r.DialogContent,{className:(0,o.cn)(`relative h-full overflow-hidden border-none p-0`,`rounded-none md:rounded-lg`,`max-h-svh max-w-svw`,`md:max-h-[90svh] md:max-w-[90svw]`,`xl:max-h-[90svh] xl:max-w-[90svw]`,`2xl:max-h-[90svh] 2xl:max-w-7xl`),onInteractOutside:e=>{e.preventDefault(),e.stopPropagation()},children:e}),p=({title:e,sidebarFooter:t,children:n})=>(0,s.jsxs)(a.Sidebar,{collapsible:`icon`,className:`shadow-nav z-20 hidden md:flex`,children:[(0,s.jsx)(a.DetailDialogSidebarHeader,{children:(0,s.jsx)(a.DetailDialogSidebarMenu,{children:(0,s.jsx)(a.DetailDialogSidebarMenuItem,{children:(0,s.jsxs)(a.DetailDialogSidebarMenuButton,{size:`lg`,tabIndex:-1,children:[(0,s.jsx)(`div`,{className:`bg-sidebar-primary text-sidebar-primary-foreground flex aspect-square size-8 items-center justify-center rounded-lg`,children:(0,s.jsx)(c.CatIcon,{size:16})}),(0,s.jsxs)(`div`,{className:`grid flex-1 text-left text-sm leading-tight`,children:[(0,s.jsx)(`span`,{className:`truncate font-medium`,children:e||`Detail Dialog`}),(0,s.jsx)(`span`,{className:`truncate text-xs`,children:`Lunas Enterprise`})]})]})})})}),(0,s.jsx)(a.DetailDialogSidebarContent,{children:(0,s.jsx)(a.DetailDialogSidebarGroup,{children:n})}),t&&(0,s.jsx)(a.DetailDialogSidebarFooter,{children:t})]}),m=({open:e,isLoading:n=!1,sidebarTitle:i,sidebar:o,sidebarFooter:c,title:m,createdAt:h,onOpenChange:g,children:_})=>(0,s.jsx)(r.Dialog,{open:e,onOpenChange:g,children:(0,s.jsxs)(f,{children:[(0,s.jsx)(l,{}),(0,s.jsxs)(a.SidebarProvider,{className:`h-full min-h-[85svh] items-start`,children:[(0,s.jsx)(p,{title:i,sidebarFooter:c,children:o}),(0,s.jsxs)(u,{children:[(0,s.jsx)(d,{title:m,createdAt:h}),n?(0,s.jsx)(t.Flex,{justify:`center`,className:`bg-muted-muted w-full flex-1 inset-shadow-sm`,children:(0,s.jsx)(`div`,{className:`loader`})}):(0,s.jsx)(`section`,{className:`bg-muted-muted relative flex flex-1 snap-y flex-col gap-0 overflow-y-auto inset-shadow-sm`,children:_})]})]})]})});exports.DetailDialog=m;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":["DialogHeader","DialogTitle","DialogDescription","DetailDialogMain: React.FC<React.PropsWithChildren>","Flex","DetailDialogMainHeader: React.FC<React.PropsWithChildren<DetailDialogMainHeaderProps>>","DetailDialogSidebarTrigger","Title","CalendarIcon","DateDisplay","DetailDialogWrapper: React.FC<React.PropsWithChildren>","DialogContent","DetailDialogSidebar: React.FC<React.PropsWithChildren<{ title?: string; sidebarFooter?: React.ReactNode }>>","Sidebar","DetailDialogSidebarHeader","DetailDialogSidebarMenu","DetailDialogSidebarMenuItem","DetailDialogSidebarMenuButton","CatIcon","DetailDialogSidebarContent","DetailDialogSidebarGroup","DetailDialogSidebarFooter","DetailDialog: React.FC<React.PropsWithChildren<Props>>","Dialog","SidebarProvider","Flex"],"sources":["../../../packages/components/dialogs/detail-dialog/component/header.tsx","../../../packages/components/dialogs/detail-dialog/component/main.tsx","../../../packages/components/dialogs/detail-dialog/component/wrapper.tsx","../../../packages/components/dialogs/detail-dialog/index.tsx"],"sourcesContent":["import { DialogDescription, DialogHeader, DialogTitle } from '@/components/ui/dialog'\n\nexport const DetailDialogHeader = () => {\n return (\n <DialogHeader className=\"sr-only\">\n <DialogTitle className=\"sr-only\"></DialogTitle>\n <DialogDescription className=\"sr-only\"></DialogDescription>\n </DialogHeader>\n )\n}\n","import { CalendarIcon } from 'lucide-react'\n\nimport { DateDisplay } from '@/components/data-display/date'\nimport { Flex } from '@/components/layouts/flex'\nimport { Title } from '@/components/typography/title'\n\nimport { DetailDialogSidebarTrigger } from './sidebar'\nimport { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card'\n\nexport const DetailDialogMain: React.FC<React.PropsWithChildren> = ({ children }) => (\n <main data-slot=\"detail-dialog-main\" className=\"relative h-full flex-1\">\n <Flex padding=\"none\" gap=\"none\" vertical align=\"stretch\" className=\"absolute inset-0 size-full\">\n {children}\n </Flex>\n </main>\n)\n\ntype DetailDialogMainHeaderProps = {\n title: string\n createdAt?: string | Date | number\n}\nexport const DetailDialogMainHeader: React.FC<React.PropsWithChildren<DetailDialogMainHeaderProps>> = ({ title, createdAt }) => (\n <header className=\"bg-card border-border-weak flex w-full flex-0 items-start gap-x-2.5 border-b py-2.5 pr-12 pl-2\">\n <DetailDialogSidebarTrigger />\n <Flex vertical align=\"start\" padding=\"none\" width=\"null\" wrap={false} className=\"flex-1\">\n <Title level={5} className=\"line-clamp-1 truncate text-wrap\">\n {title || 'Detail Dialog'}\n </Title>\n <Flex padding=\"none\" className=\"text-text-positive-weak relative\">\n <CalendarIcon size={12} className=\"absolute top-0.5 md:top-1\" />\n {!!createdAt && <DateDisplay showTime showHoliday date={createdAt} format=\"full\" className=\"ml-4 text-xs md:text-sm\" />}\n </Flex>\n </Flex>\n </header>\n)\n\nexport const DetailDialogMainGroup: React.FC<React.PropsWithChildren> = ({ children }) => (\n <Flex vertical gap=\"md\" padding=\"md\" width=\"full\">\n {children}\n </Flex>\n)\n\ntype DetailDialogMainGroupItemProps = {\n title?: string\n description?: string\n}\nexport const DetailDialogMainGroupItem: React.FC<React.PropsWithChildren<DetailDialogMainGroupItemProps>> = ({ title, description, children }) => (\n <Card className=\"w-full snap-start scroll-mt-4\">\n <CardHeader>\n <CardTitle>{title}</CardTitle>\n <CardDescription>{description}</CardDescription>\n </CardHeader>\n <CardContent>{children}</CardContent>\n </Card>\n)\n","import { DialogContent } from '@/components/ui/dialog'\nimport { cn } from '@customafk/react-toolkit/utils'\n\nexport const DetailDialogWrapper: React.FC<React.PropsWithChildren> = ({ children }) => {\n return (\n <DialogContent\n className={cn(\n 'relative h-full overflow-hidden border-none p-0',\n 'rounded-none md:rounded-lg',\n 'max-h-svh max-w-svw',\n 'md:max-h-[90svh] md:max-w-[90svw]',\n 'xl:max-h-[90svh] xl:max-w-[90svw]',\n '2xl:max-h-[90svh] 2xl:max-w-7xl',\n )}\n onInteractOutside={(e) => {\n e.preventDefault()\n e.stopPropagation()\n }}\n >\n {children}\n </DialogContent>\n )\n}\n","import { CatIcon } from 'lucide-react'\n\nimport { Flex } from '@/components/layouts/flex'\nimport { Dialog } from '@/components/ui/dialog'\n\nimport { DetailDialogHeader } from './component/header'\nimport { DetailDialogMain, DetailDialogMainHeader } from './component/main'\nimport {\n Sidebar,\n SidebarProvider,\n DetailDialogSidebarContent,\n DetailDialogSidebarFooter,\n DetailDialogSidebarGroup,\n DetailDialogSidebarHeader,\n DetailDialogSidebarMenu,\n DetailDialogSidebarMenuButton,\n DetailDialogSidebarMenuItem,\n} from './component/sidebar'\nimport { DetailDialogWrapper } from './component/wrapper'\n\nconst DetailDialogSidebar: React.FC<React.PropsWithChildren<{ title?: string; sidebarFooter?: React.ReactNode }>> = ({ title, sidebarFooter, children }) => {\n return (\n <Sidebar collapsible=\"icon\" className=\"shadow-nav z-20 hidden md:flex\">\n <DetailDialogSidebarHeader>\n <DetailDialogSidebarMenu>\n <DetailDialogSidebarMenuItem>\n <DetailDialogSidebarMenuButton size=\"lg\" tabIndex={-1}>\n <div className=\"bg-sidebar-primary text-sidebar-primary-foreground flex aspect-square size-8 items-center justify-center rounded-lg\">\n <CatIcon size={16} />\n </div>\n <div className=\"grid flex-1 text-left text-sm leading-tight\">\n <span className=\"truncate font-medium\">{title || 'Detail Dialog'}</span>\n <span className=\"truncate text-xs\">Lunas Enterprise</span>\n </div>\n </DetailDialogSidebarMenuButton>\n </DetailDialogSidebarMenuItem>\n </DetailDialogSidebarMenu>\n </DetailDialogSidebarHeader>\n <DetailDialogSidebarContent>\n <DetailDialogSidebarGroup>{children}</DetailDialogSidebarGroup>\n </DetailDialogSidebarContent>\n {sidebarFooter && <DetailDialogSidebarFooter>{sidebarFooter}</DetailDialogSidebarFooter>}\n </Sidebar>\n )\n}\n\ntype Props = {\n open?: boolean\n isLoading?: boolean\n sidebarTitle?: string\n sidebar?: React.ReactNode\n sidebarFooter?: React.ReactNode\n title: string\n createdAt: string | Date | number\n onOpenChange?: (open: boolean) => void | Promise<void>\n}\nexport const DetailDialog: React.FC<React.PropsWithChildren<Props>> = ({\n open,\n isLoading = false,\n sidebarTitle,\n sidebar,\n sidebarFooter,\n title,\n createdAt,\n onOpenChange,\n children,\n}) => {\n return (\n <Dialog open={open} onOpenChange={onOpenChange}>\n <DetailDialogWrapper>\n <DetailDialogHeader />\n <SidebarProvider className=\"h-full min-h-[85svh] items-start\">\n <DetailDialogSidebar title={sidebarTitle} sidebarFooter={sidebarFooter} children={sidebar} />\n <DetailDialogMain>\n <DetailDialogMainHeader title={title} createdAt={createdAt} />\n {isLoading ? (\n <Flex justify=\"center\" className=\"bg-muted-muted w-full flex-1 inset-shadow-sm\">\n <div className=\"loader\" />\n </Flex>\n ) : (\n <section className=\"bg-muted-muted relative flex flex-1 snap-y flex-col gap-0 overflow-y-auto inset-shadow-sm\">{children}</section>\n )}\n </DetailDialogMain>\n </SidebarProvider>\n </DetailDialogWrapper>\n </Dialog>\n )\n}\n"],"mappings":"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"}
1
+ {"version":3,"file":"index.cjs","names":["DialogHeader","DialogTitle","DialogDescription","DetailDialogMain: React.FC<React.PropsWithChildren>","Flex","DetailDialogMainHeader: React.FC<React.PropsWithChildren<DetailDialogMainHeaderProps>>","DetailDialogSidebarTrigger","Title","CalendarIcon","DateDisplay","DetailDialogWrapper: React.FC<React.PropsWithChildren>","DialogContent","DetailDialogSidebar: React.FC<React.PropsWithChildren<{ title?: string; sidebarFooter?: React.ReactNode }>>","Sidebar","DetailDialogSidebarHeader","DetailDialogSidebarMenu","DetailDialogSidebarMenuItem","DetailDialogSidebarMenuButton","CatIcon","DetailDialogSidebarContent","DetailDialogSidebarGroup","DetailDialogSidebarFooter","DetailDialog: React.FC<React.PropsWithChildren<Props>>","Dialog","SidebarProvider","Flex"],"sources":["../../../packages/components/dialogs/detail-dialog/component/header.tsx","../../../packages/components/dialogs/detail-dialog/component/main.tsx","../../../packages/components/dialogs/detail-dialog/component/wrapper.tsx","../../../packages/components/dialogs/detail-dialog/index.tsx"],"sourcesContent":["import { DialogDescription, DialogHeader, DialogTitle } from '@/components/ui/dialog'\n\nexport const DetailDialogHeader = () => {\n return (\n <DialogHeader className=\"sr-only\">\n <DialogTitle className=\"sr-only\"></DialogTitle>\n <DialogDescription className=\"sr-only\"></DialogDescription>\n </DialogHeader>\n )\n}\n","import { CalendarIcon } from 'lucide-react'\n\nimport { DateDisplay } from '@/components/data-display/date'\nimport { Flex } from '@/components/layouts/flex'\nimport { Title } from '@/components/typography/title'\nimport { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card'\n\nimport { DetailDialogSidebarTrigger } from './sidebar'\n\nexport const DetailDialogMain: React.FC<React.PropsWithChildren> = ({ children }) => (\n <main data-slot=\"detail-dialog-main\" className=\"relative h-full flex-1\">\n <Flex padding=\"none\" gap=\"none\" vertical align=\"stretch\" className=\"absolute inset-0 size-full\">\n {children}\n </Flex>\n </main>\n)\n\ntype DetailDialogMainHeaderProps = {\n title: string\n createdAt?: string | Date | number\n}\nexport const DetailDialogMainHeader: React.FC<React.PropsWithChildren<DetailDialogMainHeaderProps>> = ({ title, createdAt }) => (\n <header className=\"bg-card border-border-weak flex w-full flex-0 items-start gap-x-2.5 border-b py-2.5 pr-12 pl-2\">\n <DetailDialogSidebarTrigger />\n <Flex vertical align=\"start\" padding=\"none\" width=\"null\" wrap={false} className=\"flex-1\">\n <Title level={5} className=\"line-clamp-1 truncate text-wrap\">\n {title || 'Detail Dialog'}\n </Title>\n <Flex padding=\"none\" className=\"text-text-positive-weak relative\">\n <CalendarIcon size={12} className=\"absolute top-0.5 md:top-1\" />\n {!!createdAt && <DateDisplay showTime showHoliday date={createdAt} format=\"full\" className=\"ml-4 text-xs md:text-sm\" />}\n </Flex>\n </Flex>\n </header>\n)\n\nexport const DetailDialogMainGroup: React.FC<React.PropsWithChildren> = ({ children }) => (\n <Flex vertical gap=\"md\" padding=\"md\" width=\"full\">\n {children}\n </Flex>\n)\n\ntype DetailDialogMainGroupItemProps = {\n title?: string\n description?: string\n}\nexport const DetailDialogMainGroupItem: React.FC<React.PropsWithChildren<DetailDialogMainGroupItemProps>> = ({ title, description, children }) => (\n <Card className=\"w-full snap-start scroll-mt-4\">\n <CardHeader>\n <CardTitle>{title}</CardTitle>\n <CardDescription>{description}</CardDescription>\n </CardHeader>\n <CardContent>{children}</CardContent>\n </Card>\n)\n","import { cn } from '@customafk/react-toolkit/utils'\n\nimport { DialogContent } from '@/components/ui/dialog'\n\nexport const DetailDialogWrapper: React.FC<React.PropsWithChildren> = ({ children }) => {\n return (\n <DialogContent\n className={cn(\n 'relative h-full overflow-hidden border-none p-0',\n 'rounded-none md:rounded-lg',\n 'max-h-svh max-w-svw',\n 'md:max-h-[90svh] md:max-w-[90svw]',\n 'xl:max-h-[90svh] xl:max-w-[90svw]',\n '2xl:max-h-[90svh] 2xl:max-w-7xl',\n )}\n onInteractOutside={(e) => {\n e.preventDefault()\n e.stopPropagation()\n }}\n >\n {children}\n </DialogContent>\n )\n}\n","import { CatIcon } from 'lucide-react'\n\nimport { Flex } from '@/components/layouts/flex'\nimport { Dialog } from '@/components/ui/dialog'\n\nimport { DetailDialogHeader } from './component/header'\nimport { DetailDialogMain, DetailDialogMainHeader } from './component/main'\nimport {\n DetailDialogSidebarContent,\n DetailDialogSidebarFooter,\n DetailDialogSidebarGroup,\n DetailDialogSidebarHeader,\n DetailDialogSidebarMenu,\n DetailDialogSidebarMenuButton,\n DetailDialogSidebarMenuItem,\n Sidebar,\n SidebarProvider,\n} from './component/sidebar'\nimport { DetailDialogWrapper } from './component/wrapper'\n\nconst DetailDialogSidebar: React.FC<React.PropsWithChildren<{ title?: string; sidebarFooter?: React.ReactNode }>> = ({ title, sidebarFooter, children }) => {\n return (\n <Sidebar collapsible=\"icon\" className=\"shadow-nav z-20 hidden md:flex\">\n <DetailDialogSidebarHeader>\n <DetailDialogSidebarMenu>\n <DetailDialogSidebarMenuItem>\n <DetailDialogSidebarMenuButton size=\"lg\" tabIndex={-1}>\n <div className=\"bg-sidebar-primary text-sidebar-primary-foreground flex aspect-square size-8 items-center justify-center rounded-lg\">\n <CatIcon size={16} />\n </div>\n <div className=\"grid flex-1 text-left text-sm leading-tight\">\n <span className=\"truncate font-medium\">{title || 'Detail Dialog'}</span>\n <span className=\"truncate text-xs\">Lunas Enterprise</span>\n </div>\n </DetailDialogSidebarMenuButton>\n </DetailDialogSidebarMenuItem>\n </DetailDialogSidebarMenu>\n </DetailDialogSidebarHeader>\n <DetailDialogSidebarContent>\n <DetailDialogSidebarGroup>{children}</DetailDialogSidebarGroup>\n </DetailDialogSidebarContent>\n {sidebarFooter && <DetailDialogSidebarFooter>{sidebarFooter}</DetailDialogSidebarFooter>}\n </Sidebar>\n )\n}\n\ntype Props = {\n open?: boolean\n isLoading?: boolean\n sidebarTitle?: string\n sidebar?: React.ReactNode\n sidebarFooter?: React.ReactNode\n title: string\n createdAt: string | Date | number\n onOpenChange?: (open: boolean) => void | Promise<void>\n}\nexport const DetailDialog: React.FC<React.PropsWithChildren<Props>> = ({\n open,\n isLoading = false,\n sidebarTitle,\n sidebar,\n sidebarFooter,\n title,\n createdAt,\n onOpenChange,\n children,\n}) => {\n return (\n <Dialog open={open} onOpenChange={onOpenChange}>\n <DetailDialogWrapper>\n <DetailDialogHeader />\n <SidebarProvider className=\"h-full min-h-[85svh] items-start\">\n <DetailDialogSidebar title={sidebarTitle} sidebarFooter={sidebarFooter} children={sidebar} />\n <DetailDialogMain>\n <DetailDialogMainHeader title={title} createdAt={createdAt} />\n {isLoading ? (\n <Flex justify=\"center\" className=\"bg-muted-muted w-full flex-1 inset-shadow-sm\">\n <div className=\"loader\" />\n </Flex>\n ) : (\n <section className=\"bg-muted-muted relative flex flex-1 snap-y flex-col gap-0 overflow-y-auto inset-shadow-sm\">{children}</section>\n )}\n </DetailDialogMain>\n </SidebarProvider>\n </DetailDialogWrapper>\n </Dialog>\n )\n}\n"],"mappings":"8oBAEa,OAET,EAAA,EAAA,MAACA,EAAAA,aAAAA,CAAa,UAAU,qBACtB,EAAA,EAAA,KAACC,EAAAA,YAAAA,CAAY,UAAU,aACvB,EAAA,EAAA,KAACC,EAAAA,kBAAAA,CAAkB,UAAU,eCGtBC,GAAuD,CAAE,eACpE,EAAA,EAAA,KAAC,OAAA,CAAK,YAAU,qBAAqB,UAAU,mCAC7C,EAAA,EAAA,KAACsB,EAAAA,KAAAA,CAAK,QAAQ,OAAO,IAAI,OAAO,SAAA,GAAS,MAAM,UAAU,UAAU,6BAChE,eASMpB,GAA0F,CAAE,QAAO,gBAC9G,EAAA,EAAA,MAAC,SAAA,CAAO,UAAU,4GAChB,EAAA,EAAA,KAACC,EAAAA,2BAAAA,KACD,EAAA,EAAA,MAACmB,EAAAA,KAAAA,CAAK,SAAA,GAAS,MAAM,QAAQ,QAAQ,OAAO,MAAM,OAAO,KAAM,GAAO,UAAU,oBAC9E,EAAA,EAAA,KAAClB,EAAAA,MAAAA,CAAM,MAAO,EAAG,UAAU,2CACxB,GAAS,mBAEZ,EAAA,EAAA,MAACkB,EAAAA,KAAAA,CAAK,QAAQ,OAAO,UAAU,8CAC7B,EAAA,EAAA,KAACjB,EAAAA,aAAAA,CAAa,KAAM,GAAI,UAAU,8BACjC,CAAC,CAAC,IAAa,EAAA,EAAA,KAACC,EAAAA,YAAAA,CAAY,SAAA,GAAS,YAAA,GAAY,KAAM,EAAW,OAAO,OAAO,UAAU,qCC1BtFC,GAA0D,CAAE,eAErE,EAAA,EAAA,KAACC,EAAAA,cAAAA,CACC,WAAA,EAAA,EAAA,IACE,kDACA,6BACA,sBACA,oCACA,oCACA,mCAEF,kBAAoB,GAAM,CACxB,EAAE,iBACF,EAAE,mBAGH,aCADC,GAA+G,CAAE,QAAO,gBAAe,eAEzI,EAAA,EAAA,MAACC,EAAAA,QAAAA,CAAQ,YAAY,OAAO,UAAU,4CACpC,EAAA,EAAA,KAACC,EAAAA,0BAAAA,CAAAA,UACC,EAAA,EAAA,KAACC,EAAAA,wBAAAA,CAAAA,UACC,EAAA,EAAA,KAACC,EAAAA,4BAAAA,CAAAA,UACC,EAAA,EAAA,MAACC,EAAAA,8BAAAA,CAA8B,KAAK,KAAK,SAAU,cACjD,EAAA,EAAA,KAAC,MAAA,CAAI,UAAU,gIACb,EAAA,EAAA,KAACC,EAAAA,QAAAA,CAAQ,KAAM,QAEjB,EAAA,EAAA,MAAC,MAAA,CAAI,UAAU,yDACb,EAAA,EAAA,KAAC,OAAA,CAAK,UAAU,gCAAwB,GAAS,mBACjD,EAAA,EAAA,KAAC,OAAA,CAAK,UAAU,4BAAmB,kCAM7C,EAAA,EAAA,KAACC,EAAAA,2BAAAA,CAAAA,UACC,EAAA,EAAA,KAACC,EAAAA,yBAAAA,CAA0B,eAE5B,IAAiB,EAAA,EAAA,KAACC,EAAAA,0BAAAA,CAAAA,SAA2B,OAevCC,GAA0D,CACrE,OACA,YAAY,GACZ,eACA,UACA,gBACA,QACA,YACA,eACA,eAGE,EAAA,EAAA,KAACC,EAAAA,OAAAA,CAAa,OAAoB,yBAChC,EAAA,EAAA,MAAC,EAAA,CAAA,SAAA,EACC,EAAA,EAAA,KAAC,EAAA,KACD,EAAA,EAAA,MAACC,EAAAA,gBAAAA,CAAgB,UAAU,8CACzB,EAAA,EAAA,KAAC,EAAA,CAAoB,MAAO,EAA6B,gBAAe,SAAU,KAClF,EAAA,EAAA,MAAC,EAAA,CAAA,SAAA,EACC,EAAA,EAAA,KAAC,EAAA,CAA8B,QAAkB,cAChD,GACC,EAAA,EAAA,KAACC,EAAAA,KAAAA,CAAK,QAAQ,SAAS,UAAU,yDAC/B,EAAA,EAAA,KAAC,MAAA,CAAI,UAAU,cAGjB,EAAA,EAAA,KAAC,UAAA,CAAQ,UAAU,4FAA6F"}
@@ -1,2 +1,2 @@
1
- import"../../card-jtQVsG4Y.js";import{Flex as e}from"../../flex-uJ4bFSYt.js";import{DateDisplay as t}from"../../date-D7i-nFOS.js";import"../../tooltip-Ba2AdN_7.js";import"../../button-DL_i4AVi.js";import{Dialog as n,DialogContent as r,DialogDescription as i,DialogHeader as a,DialogTitle as o}from"../../dialog-BEJ3krbY.js";import"../../input-OWyLq45f.js";import{Title as s}from"../../title-itXqz0us.js";import"../../separator-Bp3QE0oo.js";import"../../sheet-B2CNJMzu.js";import"../../skeleton-BSWmwJUf.js";import{DetailDialogSidebarContent as c,DetailDialogSidebarFooter as l,DetailDialogSidebarGroup as u,DetailDialogSidebarHeader as d,DetailDialogSidebarMenu as f,DetailDialogSidebarMenuButton as p,DetailDialogSidebarMenuItem as m,DetailDialogSidebarTrigger as h,Sidebar as g,SidebarProvider as _}from"../../sidebar-CoAMlkou.js";import{cn as v}from"@customafk/react-toolkit/utils";import{jsx as y,jsxs as b}from"react/jsx-runtime";import{CalendarIcon as x,CatIcon as S}from"lucide-react";const C=()=>b(a,{className:`sr-only`,children:[y(o,{className:`sr-only`}),y(i,{className:`sr-only`})]}),w=({children:t})=>y(`main`,{"data-slot":`detail-dialog-main`,className:`relative h-full flex-1`,children:y(e,{padding:`none`,gap:`none`,vertical:!0,align:`stretch`,className:`absolute inset-0 size-full`,children:t})}),T=({title:n,createdAt:r})=>b(`header`,{className:`bg-card border-border-weak flex w-full flex-0 items-start gap-x-2.5 border-b py-2.5 pr-12 pl-2`,children:[y(h,{}),b(e,{vertical:!0,align:`start`,padding:`none`,width:`null`,wrap:!1,className:`flex-1`,children:[y(s,{level:5,className:`line-clamp-1 truncate text-wrap`,children:n||`Detail Dialog`}),b(e,{padding:`none`,className:`text-text-positive-weak relative`,children:[y(x,{size:12,className:`absolute top-0.5 md:top-1`}),!!r&&y(t,{showTime:!0,showHoliday:!0,date:r,format:`full`,className:`ml-4 text-xs md:text-sm`})]})]})]}),E=({children:e})=>y(r,{className:v(`relative h-full overflow-hidden border-none p-0`,`rounded-none md:rounded-lg`,`max-h-svh max-w-svw`,`md:max-h-[90svh] md:max-w-[90svw]`,`xl:max-h-[90svh] xl:max-w-[90svw]`,`2xl:max-h-[90svh] 2xl:max-w-7xl`),onInteractOutside:e=>{e.preventDefault(),e.stopPropagation()},children:e}),D=({title:e,sidebarFooter:t,children:n})=>b(g,{collapsible:`icon`,className:`shadow-nav z-20 hidden md:flex`,children:[y(d,{children:y(f,{children:y(m,{children:b(p,{size:`lg`,tabIndex:-1,children:[y(`div`,{className:`bg-sidebar-primary text-sidebar-primary-foreground flex aspect-square size-8 items-center justify-center rounded-lg`,children:y(S,{size:16})}),b(`div`,{className:`grid flex-1 text-left text-sm leading-tight`,children:[y(`span`,{className:`truncate font-medium`,children:e||`Detail Dialog`}),y(`span`,{className:`truncate text-xs`,children:`Lunas Enterprise`})]})]})})})}),y(c,{children:y(u,{children:n})}),t&&y(l,{children:t})]}),O=({open:t,isLoading:r=!1,sidebarTitle:i,sidebar:a,sidebarFooter:o,title:s,createdAt:c,onOpenChange:l,children:u})=>y(n,{open:t,onOpenChange:l,children:b(E,{children:[y(C,{}),b(_,{className:`h-full min-h-[85svh] items-start`,children:[y(D,{title:i,sidebarFooter:o,children:a}),b(w,{children:[y(T,{title:s,createdAt:c}),r?y(e,{justify:`center`,className:`bg-muted-muted w-full flex-1 inset-shadow-sm`,children:y(`div`,{className:`loader`})}):y(`section`,{className:`bg-muted-muted relative flex flex-1 snap-y flex-col gap-0 overflow-y-auto inset-shadow-sm`,children:u})]})]})]})});export{O as DetailDialog};
1
+ import"../../card-jtQVsG4Y.js";import{Flex as e}from"../../flex-D_GSLR10.js";import{DateDisplay as t}from"../../date-Cbx2drzh.js";import"../../tooltip-B7S7TrMj.js";import"../../button-DL_i4AVi.js";import{Dialog as n,DialogContent as r,DialogDescription as i,DialogHeader as a,DialogTitle as o}from"../../dialog-BEJ3krbY.js";import"../../input-B2PP82lE.js";import{Title as s}from"../../title-itXqz0us.js";import"../../skeleton-D_7tekGk.js";import"../../separator-DW2rRXaF.js";import"../../sheet-CJscm87z.js";import{DetailDialogSidebarContent as c,DetailDialogSidebarFooter as l,DetailDialogSidebarGroup as u,DetailDialogSidebarHeader as d,DetailDialogSidebarMenu as f,DetailDialogSidebarMenuButton as p,DetailDialogSidebarMenuItem as m,DetailDialogSidebarTrigger as h,Sidebar as g,SidebarProvider as _}from"../../sidebar-BEgx0ScE.js";import{cn as v}from"@customafk/react-toolkit/utils";import{jsx as y,jsxs as b}from"react/jsx-runtime";import{CalendarIcon as x,CatIcon as S}from"lucide-react";const C=()=>b(a,{className:`sr-only`,children:[y(o,{className:`sr-only`}),y(i,{className:`sr-only`})]}),w=({children:t})=>y(`main`,{"data-slot":`detail-dialog-main`,className:`relative h-full flex-1`,children:y(e,{padding:`none`,gap:`none`,vertical:!0,align:`stretch`,className:`absolute inset-0 size-full`,children:t})}),T=({title:n,createdAt:r})=>b(`header`,{className:`bg-card border-border-weak flex w-full flex-0 items-start gap-x-2.5 border-b py-2.5 pr-12 pl-2`,children:[y(h,{}),b(e,{vertical:!0,align:`start`,padding:`none`,width:`null`,wrap:!1,className:`flex-1`,children:[y(s,{level:5,className:`line-clamp-1 truncate text-wrap`,children:n||`Detail Dialog`}),b(e,{padding:`none`,className:`text-text-positive-weak relative`,children:[y(x,{size:12,className:`absolute top-0.5 md:top-1`}),!!r&&y(t,{showTime:!0,showHoliday:!0,date:r,format:`full`,className:`ml-4 text-xs md:text-sm`})]})]})]}),E=({children:e})=>y(r,{className:v(`relative h-full overflow-hidden border-none p-0`,`rounded-none md:rounded-lg`,`max-h-svh max-w-svw`,`md:max-h-[90svh] md:max-w-[90svw]`,`xl:max-h-[90svh] xl:max-w-[90svw]`,`2xl:max-h-[90svh] 2xl:max-w-7xl`),onInteractOutside:e=>{e.preventDefault(),e.stopPropagation()},children:e}),D=({title:e,sidebarFooter:t,children:n})=>b(g,{collapsible:`icon`,className:`shadow-nav z-20 hidden md:flex`,children:[y(d,{children:y(f,{children:y(m,{children:b(p,{size:`lg`,tabIndex:-1,children:[y(`div`,{className:`bg-sidebar-primary text-sidebar-primary-foreground flex aspect-square size-8 items-center justify-center rounded-lg`,children:y(S,{size:16})}),b(`div`,{className:`grid flex-1 text-left text-sm leading-tight`,children:[y(`span`,{className:`truncate font-medium`,children:e||`Detail Dialog`}),y(`span`,{className:`truncate text-xs`,children:`Lunas Enterprise`})]})]})})})}),y(c,{children:y(u,{children:n})}),t&&y(l,{children:t})]}),O=({open:t,isLoading:r=!1,sidebarTitle:i,sidebar:a,sidebarFooter:o,title:s,createdAt:c,onOpenChange:l,children:u})=>y(n,{open:t,onOpenChange:l,children:b(E,{children:[y(C,{}),b(_,{className:`h-full min-h-[85svh] items-start`,children:[y(D,{title:i,sidebarFooter:o,children:a}),b(w,{children:[y(T,{title:s,createdAt:c}),r?y(e,{justify:`center`,className:`bg-muted-muted w-full flex-1 inset-shadow-sm`,children:y(`div`,{className:`loader`})}):y(`section`,{className:`bg-muted-muted relative flex flex-1 snap-y flex-col gap-0 overflow-y-auto inset-shadow-sm`,children:u})]})]})]})});export{O as DetailDialog};
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["DetailDialogMain: React.FC<React.PropsWithChildren>","DetailDialogMainHeader: React.FC<React.PropsWithChildren<DetailDialogMainHeaderProps>>","DetailDialogWrapper: React.FC<React.PropsWithChildren>","DetailDialogSidebar: React.FC<React.PropsWithChildren<{ title?: string; sidebarFooter?: React.ReactNode }>>","DetailDialog: React.FC<React.PropsWithChildren<Props>>"],"sources":["../../../packages/components/dialogs/detail-dialog/component/header.tsx","../../../packages/components/dialogs/detail-dialog/component/main.tsx","../../../packages/components/dialogs/detail-dialog/component/wrapper.tsx","../../../packages/components/dialogs/detail-dialog/index.tsx"],"sourcesContent":["import { DialogDescription, DialogHeader, DialogTitle } from '@/components/ui/dialog'\n\nexport const DetailDialogHeader = () => {\n return (\n <DialogHeader className=\"sr-only\">\n <DialogTitle className=\"sr-only\"></DialogTitle>\n <DialogDescription className=\"sr-only\"></DialogDescription>\n </DialogHeader>\n )\n}\n","import { CalendarIcon } from 'lucide-react'\n\nimport { DateDisplay } from '@/components/data-display/date'\nimport { Flex } from '@/components/layouts/flex'\nimport { Title } from '@/components/typography/title'\n\nimport { DetailDialogSidebarTrigger } from './sidebar'\nimport { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card'\n\nexport const DetailDialogMain: React.FC<React.PropsWithChildren> = ({ children }) => (\n <main data-slot=\"detail-dialog-main\" className=\"relative h-full flex-1\">\n <Flex padding=\"none\" gap=\"none\" vertical align=\"stretch\" className=\"absolute inset-0 size-full\">\n {children}\n </Flex>\n </main>\n)\n\ntype DetailDialogMainHeaderProps = {\n title: string\n createdAt?: string | Date | number\n}\nexport const DetailDialogMainHeader: React.FC<React.PropsWithChildren<DetailDialogMainHeaderProps>> = ({ title, createdAt }) => (\n <header className=\"bg-card border-border-weak flex w-full flex-0 items-start gap-x-2.5 border-b py-2.5 pr-12 pl-2\">\n <DetailDialogSidebarTrigger />\n <Flex vertical align=\"start\" padding=\"none\" width=\"null\" wrap={false} className=\"flex-1\">\n <Title level={5} className=\"line-clamp-1 truncate text-wrap\">\n {title || 'Detail Dialog'}\n </Title>\n <Flex padding=\"none\" className=\"text-text-positive-weak relative\">\n <CalendarIcon size={12} className=\"absolute top-0.5 md:top-1\" />\n {!!createdAt && <DateDisplay showTime showHoliday date={createdAt} format=\"full\" className=\"ml-4 text-xs md:text-sm\" />}\n </Flex>\n </Flex>\n </header>\n)\n\nexport const DetailDialogMainGroup: React.FC<React.PropsWithChildren> = ({ children }) => (\n <Flex vertical gap=\"md\" padding=\"md\" width=\"full\">\n {children}\n </Flex>\n)\n\ntype DetailDialogMainGroupItemProps = {\n title?: string\n description?: string\n}\nexport const DetailDialogMainGroupItem: React.FC<React.PropsWithChildren<DetailDialogMainGroupItemProps>> = ({ title, description, children }) => (\n <Card className=\"w-full snap-start scroll-mt-4\">\n <CardHeader>\n <CardTitle>{title}</CardTitle>\n <CardDescription>{description}</CardDescription>\n </CardHeader>\n <CardContent>{children}</CardContent>\n </Card>\n)\n","import { DialogContent } from '@/components/ui/dialog'\nimport { cn } from '@customafk/react-toolkit/utils'\n\nexport const DetailDialogWrapper: React.FC<React.PropsWithChildren> = ({ children }) => {\n return (\n <DialogContent\n className={cn(\n 'relative h-full overflow-hidden border-none p-0',\n 'rounded-none md:rounded-lg',\n 'max-h-svh max-w-svw',\n 'md:max-h-[90svh] md:max-w-[90svw]',\n 'xl:max-h-[90svh] xl:max-w-[90svw]',\n '2xl:max-h-[90svh] 2xl:max-w-7xl',\n )}\n onInteractOutside={(e) => {\n e.preventDefault()\n e.stopPropagation()\n }}\n >\n {children}\n </DialogContent>\n )\n}\n","import { CatIcon } from 'lucide-react'\n\nimport { Flex } from '@/components/layouts/flex'\nimport { Dialog } from '@/components/ui/dialog'\n\nimport { DetailDialogHeader } from './component/header'\nimport { DetailDialogMain, DetailDialogMainHeader } from './component/main'\nimport {\n Sidebar,\n SidebarProvider,\n DetailDialogSidebarContent,\n DetailDialogSidebarFooter,\n DetailDialogSidebarGroup,\n DetailDialogSidebarHeader,\n DetailDialogSidebarMenu,\n DetailDialogSidebarMenuButton,\n DetailDialogSidebarMenuItem,\n} from './component/sidebar'\nimport { DetailDialogWrapper } from './component/wrapper'\n\nconst DetailDialogSidebar: React.FC<React.PropsWithChildren<{ title?: string; sidebarFooter?: React.ReactNode }>> = ({ title, sidebarFooter, children }) => {\n return (\n <Sidebar collapsible=\"icon\" className=\"shadow-nav z-20 hidden md:flex\">\n <DetailDialogSidebarHeader>\n <DetailDialogSidebarMenu>\n <DetailDialogSidebarMenuItem>\n <DetailDialogSidebarMenuButton size=\"lg\" tabIndex={-1}>\n <div className=\"bg-sidebar-primary text-sidebar-primary-foreground flex aspect-square size-8 items-center justify-center rounded-lg\">\n <CatIcon size={16} />\n </div>\n <div className=\"grid flex-1 text-left text-sm leading-tight\">\n <span className=\"truncate font-medium\">{title || 'Detail Dialog'}</span>\n <span className=\"truncate text-xs\">Lunas Enterprise</span>\n </div>\n </DetailDialogSidebarMenuButton>\n </DetailDialogSidebarMenuItem>\n </DetailDialogSidebarMenu>\n </DetailDialogSidebarHeader>\n <DetailDialogSidebarContent>\n <DetailDialogSidebarGroup>{children}</DetailDialogSidebarGroup>\n </DetailDialogSidebarContent>\n {sidebarFooter && <DetailDialogSidebarFooter>{sidebarFooter}</DetailDialogSidebarFooter>}\n </Sidebar>\n )\n}\n\ntype Props = {\n open?: boolean\n isLoading?: boolean\n sidebarTitle?: string\n sidebar?: React.ReactNode\n sidebarFooter?: React.ReactNode\n title: string\n createdAt: string | Date | number\n onOpenChange?: (open: boolean) => void | Promise<void>\n}\nexport const DetailDialog: React.FC<React.PropsWithChildren<Props>> = ({\n open,\n isLoading = false,\n sidebarTitle,\n sidebar,\n sidebarFooter,\n title,\n createdAt,\n onOpenChange,\n children,\n}) => {\n return (\n <Dialog open={open} onOpenChange={onOpenChange}>\n <DetailDialogWrapper>\n <DetailDialogHeader />\n <SidebarProvider className=\"h-full min-h-[85svh] items-start\">\n <DetailDialogSidebar title={sidebarTitle} sidebarFooter={sidebarFooter} children={sidebar} />\n <DetailDialogMain>\n <DetailDialogMainHeader title={title} createdAt={createdAt} />\n {isLoading ? (\n <Flex justify=\"center\" className=\"bg-muted-muted w-full flex-1 inset-shadow-sm\">\n <div className=\"loader\" />\n </Flex>\n ) : (\n <section className=\"bg-muted-muted relative flex flex-1 snap-y flex-col gap-0 overflow-y-auto inset-shadow-sm\">{children}</section>\n )}\n </DetailDialogMain>\n </SidebarProvider>\n </DetailDialogWrapper>\n </Dialog>\n )\n}\n"],"mappings":"g+BAEA,MAAa,MAET,EAAC,EAAA,CAAa,UAAU,oBACtB,EAAC,EAAA,CAAY,UAAU,YACvB,EAAC,EAAA,CAAkB,UAAU,eCGtBA,GAAuD,CAAE,cACpE,EAAC,OAAA,CAAK,YAAU,qBAAqB,UAAU,kCAC7C,EAAC,EAAA,CAAK,QAAQ,OAAO,IAAI,OAAO,SAAA,GAAS,MAAM,UAAU,UAAU,6BAChE,eASMC,GAA0F,CAAE,QAAO,eAC9G,EAAC,SAAA,CAAO,UAAU,2GAChB,EAAC,EAAA,IACD,EAAC,EAAA,CAAK,SAAA,GAAS,MAAM,QAAQ,QAAQ,OAAO,MAAM,OAAO,KAAM,GAAO,UAAU,mBAC9E,EAAC,EAAA,CAAM,MAAO,EAAG,UAAU,2CACxB,GAAS,kBAEZ,EAAC,EAAA,CAAK,QAAQ,OAAO,UAAU,6CAC7B,EAAC,EAAA,CAAa,KAAM,GAAI,UAAU,8BACjC,CAAC,CAAC,GAAa,EAAC,EAAA,CAAY,SAAA,GAAS,YAAA,GAAY,KAAM,EAAW,OAAO,OAAO,UAAU,qCC3BtFC,GAA0D,CAAE,cAErE,EAAC,EAAA,CACC,UAAW,EACT,kDACA,6BACA,sBACA,oCACA,oCACA,mCAEF,kBAAoB,GAAM,CACxB,EAAE,iBACF,EAAE,mBAGH,aCCDC,GAA+G,CAAE,QAAO,gBAAe,cAEzI,EAAC,EAAA,CAAQ,YAAY,OAAO,UAAU,2CACpC,EAAC,EAAA,CAAA,SACC,EAAC,EAAA,CAAA,SACC,EAAC,EAAA,CAAA,SACC,EAAC,EAAA,CAA8B,KAAK,KAAK,SAAU,aACjD,EAAC,MAAA,CAAI,UAAU,+HACb,EAAC,EAAA,CAAQ,KAAM,OAEjB,EAAC,MAAA,CAAI,UAAU,wDACb,EAAC,OAAA,CAAK,UAAU,gCAAwB,GAAS,kBACjD,EAAC,OAAA,CAAK,UAAU,4BAAmB,iCAM7C,EAAC,EAAA,CAAA,SACC,EAAC,EAAA,CAA0B,eAE5B,GAAiB,EAAC,EAAA,CAAA,SAA2B,OAevCC,GAA0D,CACrE,OACA,YAAY,GACZ,eACA,UACA,gBACA,QACA,YACA,eACA,cAGE,EAAC,EAAA,CAAa,OAAoB,wBAChC,EAAC,EAAA,CAAA,SAAA,CACC,EAAC,EAAA,IACD,EAAC,EAAA,CAAgB,UAAU,6CACzB,EAAC,EAAA,CAAoB,MAAO,EAA6B,gBAAe,SAAU,IAClF,EAAC,EAAA,CAAA,SAAA,CACC,EAAC,EAAA,CAA8B,QAAkB,cAChD,EACC,EAAC,EAAA,CAAK,QAAQ,SAAS,UAAU,wDAC/B,EAAC,MAAA,CAAI,UAAU,aAGjB,EAAC,UAAA,CAAQ,UAAU,4FAA6F"}
1
+ {"version":3,"file":"index.js","names":["DetailDialogMain: React.FC<React.PropsWithChildren>","DetailDialogMainHeader: React.FC<React.PropsWithChildren<DetailDialogMainHeaderProps>>","DetailDialogWrapper: React.FC<React.PropsWithChildren>","DetailDialogSidebar: React.FC<React.PropsWithChildren<{ title?: string; sidebarFooter?: React.ReactNode }>>","DetailDialog: React.FC<React.PropsWithChildren<Props>>"],"sources":["../../../packages/components/dialogs/detail-dialog/component/header.tsx","../../../packages/components/dialogs/detail-dialog/component/main.tsx","../../../packages/components/dialogs/detail-dialog/component/wrapper.tsx","../../../packages/components/dialogs/detail-dialog/index.tsx"],"sourcesContent":["import { DialogDescription, DialogHeader, DialogTitle } from '@/components/ui/dialog'\n\nexport const DetailDialogHeader = () => {\n return (\n <DialogHeader className=\"sr-only\">\n <DialogTitle className=\"sr-only\"></DialogTitle>\n <DialogDescription className=\"sr-only\"></DialogDescription>\n </DialogHeader>\n )\n}\n","import { CalendarIcon } from 'lucide-react'\n\nimport { DateDisplay } from '@/components/data-display/date'\nimport { Flex } from '@/components/layouts/flex'\nimport { Title } from '@/components/typography/title'\nimport { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card'\n\nimport { DetailDialogSidebarTrigger } from './sidebar'\n\nexport const DetailDialogMain: React.FC<React.PropsWithChildren> = ({ children }) => (\n <main data-slot=\"detail-dialog-main\" className=\"relative h-full flex-1\">\n <Flex padding=\"none\" gap=\"none\" vertical align=\"stretch\" className=\"absolute inset-0 size-full\">\n {children}\n </Flex>\n </main>\n)\n\ntype DetailDialogMainHeaderProps = {\n title: string\n createdAt?: string | Date | number\n}\nexport const DetailDialogMainHeader: React.FC<React.PropsWithChildren<DetailDialogMainHeaderProps>> = ({ title, createdAt }) => (\n <header className=\"bg-card border-border-weak flex w-full flex-0 items-start gap-x-2.5 border-b py-2.5 pr-12 pl-2\">\n <DetailDialogSidebarTrigger />\n <Flex vertical align=\"start\" padding=\"none\" width=\"null\" wrap={false} className=\"flex-1\">\n <Title level={5} className=\"line-clamp-1 truncate text-wrap\">\n {title || 'Detail Dialog'}\n </Title>\n <Flex padding=\"none\" className=\"text-text-positive-weak relative\">\n <CalendarIcon size={12} className=\"absolute top-0.5 md:top-1\" />\n {!!createdAt && <DateDisplay showTime showHoliday date={createdAt} format=\"full\" className=\"ml-4 text-xs md:text-sm\" />}\n </Flex>\n </Flex>\n </header>\n)\n\nexport const DetailDialogMainGroup: React.FC<React.PropsWithChildren> = ({ children }) => (\n <Flex vertical gap=\"md\" padding=\"md\" width=\"full\">\n {children}\n </Flex>\n)\n\ntype DetailDialogMainGroupItemProps = {\n title?: string\n description?: string\n}\nexport const DetailDialogMainGroupItem: React.FC<React.PropsWithChildren<DetailDialogMainGroupItemProps>> = ({ title, description, children }) => (\n <Card className=\"w-full snap-start scroll-mt-4\">\n <CardHeader>\n <CardTitle>{title}</CardTitle>\n <CardDescription>{description}</CardDescription>\n </CardHeader>\n <CardContent>{children}</CardContent>\n </Card>\n)\n","import { cn } from '@customafk/react-toolkit/utils'\n\nimport { DialogContent } from '@/components/ui/dialog'\n\nexport const DetailDialogWrapper: React.FC<React.PropsWithChildren> = ({ children }) => {\n return (\n <DialogContent\n className={cn(\n 'relative h-full overflow-hidden border-none p-0',\n 'rounded-none md:rounded-lg',\n 'max-h-svh max-w-svw',\n 'md:max-h-[90svh] md:max-w-[90svw]',\n 'xl:max-h-[90svh] xl:max-w-[90svw]',\n '2xl:max-h-[90svh] 2xl:max-w-7xl',\n )}\n onInteractOutside={(e) => {\n e.preventDefault()\n e.stopPropagation()\n }}\n >\n {children}\n </DialogContent>\n )\n}\n","import { CatIcon } from 'lucide-react'\n\nimport { Flex } from '@/components/layouts/flex'\nimport { Dialog } from '@/components/ui/dialog'\n\nimport { DetailDialogHeader } from './component/header'\nimport { DetailDialogMain, DetailDialogMainHeader } from './component/main'\nimport {\n DetailDialogSidebarContent,\n DetailDialogSidebarFooter,\n DetailDialogSidebarGroup,\n DetailDialogSidebarHeader,\n DetailDialogSidebarMenu,\n DetailDialogSidebarMenuButton,\n DetailDialogSidebarMenuItem,\n Sidebar,\n SidebarProvider,\n} from './component/sidebar'\nimport { DetailDialogWrapper } from './component/wrapper'\n\nconst DetailDialogSidebar: React.FC<React.PropsWithChildren<{ title?: string; sidebarFooter?: React.ReactNode }>> = ({ title, sidebarFooter, children }) => {\n return (\n <Sidebar collapsible=\"icon\" className=\"shadow-nav z-20 hidden md:flex\">\n <DetailDialogSidebarHeader>\n <DetailDialogSidebarMenu>\n <DetailDialogSidebarMenuItem>\n <DetailDialogSidebarMenuButton size=\"lg\" tabIndex={-1}>\n <div className=\"bg-sidebar-primary text-sidebar-primary-foreground flex aspect-square size-8 items-center justify-center rounded-lg\">\n <CatIcon size={16} />\n </div>\n <div className=\"grid flex-1 text-left text-sm leading-tight\">\n <span className=\"truncate font-medium\">{title || 'Detail Dialog'}</span>\n <span className=\"truncate text-xs\">Lunas Enterprise</span>\n </div>\n </DetailDialogSidebarMenuButton>\n </DetailDialogSidebarMenuItem>\n </DetailDialogSidebarMenu>\n </DetailDialogSidebarHeader>\n <DetailDialogSidebarContent>\n <DetailDialogSidebarGroup>{children}</DetailDialogSidebarGroup>\n </DetailDialogSidebarContent>\n {sidebarFooter && <DetailDialogSidebarFooter>{sidebarFooter}</DetailDialogSidebarFooter>}\n </Sidebar>\n )\n}\n\ntype Props = {\n open?: boolean\n isLoading?: boolean\n sidebarTitle?: string\n sidebar?: React.ReactNode\n sidebarFooter?: React.ReactNode\n title: string\n createdAt: string | Date | number\n onOpenChange?: (open: boolean) => void | Promise<void>\n}\nexport const DetailDialog: React.FC<React.PropsWithChildren<Props>> = ({\n open,\n isLoading = false,\n sidebarTitle,\n sidebar,\n sidebarFooter,\n title,\n createdAt,\n onOpenChange,\n children,\n}) => {\n return (\n <Dialog open={open} onOpenChange={onOpenChange}>\n <DetailDialogWrapper>\n <DetailDialogHeader />\n <SidebarProvider className=\"h-full min-h-[85svh] items-start\">\n <DetailDialogSidebar title={sidebarTitle} sidebarFooter={sidebarFooter} children={sidebar} />\n <DetailDialogMain>\n <DetailDialogMainHeader title={title} createdAt={createdAt} />\n {isLoading ? (\n <Flex justify=\"center\" className=\"bg-muted-muted w-full flex-1 inset-shadow-sm\">\n <div className=\"loader\" />\n </Flex>\n ) : (\n <section className=\"bg-muted-muted relative flex flex-1 snap-y flex-col gap-0 overflow-y-auto inset-shadow-sm\">{children}</section>\n )}\n </DetailDialogMain>\n </SidebarProvider>\n </DetailDialogWrapper>\n </Dialog>\n )\n}\n"],"mappings":"g+BAEA,MAAa,MAET,EAAC,EAAA,CAAa,UAAU,oBACtB,EAAC,EAAA,CAAY,UAAU,YACvB,EAAC,EAAA,CAAkB,UAAU,eCGtBA,GAAuD,CAAE,cACpE,EAAC,OAAA,CAAK,YAAU,qBAAqB,UAAU,kCAC7C,EAAC,EAAA,CAAK,QAAQ,OAAO,IAAI,OAAO,SAAA,GAAS,MAAM,UAAU,UAAU,6BAChE,eASMC,GAA0F,CAAE,QAAO,eAC9G,EAAC,SAAA,CAAO,UAAU,2GAChB,EAAC,EAAA,IACD,EAAC,EAAA,CAAK,SAAA,GAAS,MAAM,QAAQ,QAAQ,OAAO,MAAM,OAAO,KAAM,GAAO,UAAU,mBAC9E,EAAC,EAAA,CAAM,MAAO,EAAG,UAAU,2CACxB,GAAS,kBAEZ,EAAC,EAAA,CAAK,QAAQ,OAAO,UAAU,6CAC7B,EAAC,EAAA,CAAa,KAAM,GAAI,UAAU,8BACjC,CAAC,CAAC,GAAa,EAAC,EAAA,CAAY,SAAA,GAAS,YAAA,GAAY,KAAM,EAAW,OAAO,OAAO,UAAU,qCC1BtFC,GAA0D,CAAE,cAErE,EAAC,EAAA,CACC,UAAW,EACT,kDACA,6BACA,sBACA,oCACA,oCACA,mCAEF,kBAAoB,GAAM,CACxB,EAAE,iBACF,EAAE,mBAGH,aCADC,GAA+G,CAAE,QAAO,gBAAe,cAEzI,EAAC,EAAA,CAAQ,YAAY,OAAO,UAAU,2CACpC,EAAC,EAAA,CAAA,SACC,EAAC,EAAA,CAAA,SACC,EAAC,EAAA,CAAA,SACC,EAAC,EAAA,CAA8B,KAAK,KAAK,SAAU,aACjD,EAAC,MAAA,CAAI,UAAU,+HACb,EAAC,EAAA,CAAQ,KAAM,OAEjB,EAAC,MAAA,CAAI,UAAU,wDACb,EAAC,OAAA,CAAK,UAAU,gCAAwB,GAAS,kBACjD,EAAC,OAAA,CAAK,UAAU,4BAAmB,iCAM7C,EAAC,EAAA,CAAA,SACC,EAAC,EAAA,CAA0B,eAE5B,GAAiB,EAAC,EAAA,CAAA,SAA2B,OAevCC,GAA0D,CACrE,OACA,YAAY,GACZ,eACA,UACA,gBACA,QACA,YACA,eACA,cAGE,EAAC,EAAA,CAAa,OAAoB,wBAChC,EAAC,EAAA,CAAA,SAAA,CACC,EAAC,EAAA,IACD,EAAC,EAAA,CAAgB,UAAU,6CACzB,EAAC,EAAA,CAAoB,MAAO,EAA6B,gBAAe,SAAU,IAClF,EAAC,EAAA,CAAA,SAAA,CACC,EAAC,EAAA,CAA8B,QAAkB,cAChD,EACC,EAAC,EAAA,CAAK,QAAQ,SAAS,UAAU,wDAC/B,EAAC,MAAA,CAAI,UAAU,aAGjB,EAAC,UAAA,CAAQ,UAAU,4FAA6F"}
@@ -1 +1 @@
1
- require(`../button-ChpGfVjG.cjs`),require(`../alert-dialog-Bc-61QzL.cjs`);const e=require(`../error-dialog-DvTlwpSn.cjs`);exports.ErrorDialog=e.ErrorDialog;
1
+ require(`../button-ChpGfVjG.cjs`),require(`../alert-dialog-csUZX4AP.cjs`);const e=require(`../error-dialog-CsZ9SHEm.cjs`);exports.ErrorDialog=e.ErrorDialog;
@@ -1,5 +1,3 @@
1
- import React from "react";
2
-
3
1
  //#region packages/components/dialogs/error-dialog.d.ts
4
2
  type Props = {
5
3
  open?: boolean;
@@ -1,5 +1,3 @@
1
- import React from "react";
2
-
3
1
  //#region packages/components/dialogs/error-dialog.d.ts
4
2
  type Props = {
5
3
  open?: boolean;
@@ -1 +1 @@
1
- import"../button-DL_i4AVi.js";import"../alert-dialog-kpuqvmVo.js";import{ErrorDialog as e}from"../error-dialog-e9mFaOuG.js";export{e as ErrorDialog};
1
+ import"../button-DL_i4AVi.js";import"../alert-dialog-CnUUZRzI.js";import{ErrorDialog as e}from"../error-dialog-Be_eV-D7.js";export{e as ErrorDialog};
@@ -1,2 +1,2 @@
1
- const e=require(`../chunk-CUT6urMc.cjs`),t=require(`../button-ChpGfVjG.cjs`);require(`../alert-dialog-Bc-61QzL.cjs`),require(`../error-dialog-DvTlwpSn.cjs`),require(`../label-3eYQRRYp.cjs`),require(`../form-CXu8t0VS.cjs`);const n=require(`../form-wrapper-CZKtb1j5.cjs`),r=require(`../dialog-E5OYibMU.cjs`),i=e.__toESM(require(`react`)),a=e.__toESM(require(`@customafk/react-toolkit/utils`)),o=e.__toESM(require(`react/jsx-runtime`)),s=e.__toESM(require(`@customafk/react-toolkit/hooks/useMediaQuery`)),c=e.__toESM(require(`vaul`));function l({...e}){return(0,o.jsx)(c.Drawer.Root,{"data-slot":`drawer`,...e})}function u({...e}){return(0,o.jsx)(c.Drawer.Portal,{"data-slot":`drawer-portal`,...e})}function d({className:e,...t}){return(0,o.jsx)(c.Drawer.Overlay,{"data-slot":`drawer-overlay`,className:(0,a.cn)(`fixed inset-0 z-50 bg-black/50`,`data-[state=open]:animate-in`,`data-[state=closed]:animate-out`,`data-[state=open]:fade-in-0`,`data-[state=closed]:fade-out-0`,e),...t})}function f({className:e,children:t,...n}){return(0,o.jsxs)(u,{"data-slot":`drawer-portal`,children:[(0,o.jsx)(d,{}),(0,o.jsxs)(c.Drawer.Content,{"data-slot":`drawer-content`,className:(0,a.cn)(`group/drawer-content bg-background shadow-card fixed z-50 flex h-auto flex-col`,`data-[vaul-drawer-direction=top]:inset-x-0`,`data-[vaul-drawer-direction=top]:top-0`,`data-[vaul-drawer-direction=top]:mb-24`,`data-[vaul-drawer-direction=top]:max-h-[80vh]`,`data-[vaul-drawer-direction=top]:rounded-b-lg`,`data-[vaul-drawer-direction=bottom]:inset-x-0`,`data-[vaul-drawer-direction=bottom]:bottom-0`,`data-[vaul-drawer-direction=bottom]:mt-24`,`data-[vaul-drawer-direction=bottom]:max-h-[80vh]`,`data-[vaul-drawer-direction=bottom]:rounded-t-lg`,`data-[vaul-drawer-direction=right]:inset-y-0`,`data-[vaul-drawer-direction=right]:right-0`,`data-[vaul-drawer-direction=right]:w-3/4`,`data-[vaul-drawer-direction=right]:sm:max-w-sm`,`data-[vaul-drawer-direction=left]:inset-y-0`,`data-[vaul-drawer-direction=left]:left-0`,`data-[vaul-drawer-direction=left]:w-3/4`,`data-[vaul-drawer-direction=left]:sm:max-w-sm`,e),...n,children:[(0,o.jsx)(`div`,{className:`bg-border-weak mx-auto mt-4 hidden h-2 w-25 shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block`}),t]})]})}function p({className:e,...t}){return(0,o.jsx)(`div`,{"data-slot":`drawer-header`,className:(0,a.cn)(`flex flex-col gap-0.5 p-4`,`md:gap-1.5 md:text-left`,`group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center`,`group-data-[vaul-drawer-direction=top]/drawer-content:text-center`,e),...t})}function m({className:e,...t}){return(0,o.jsx)(`div`,{"data-slot":`drawer-footer`,className:(0,a.cn)(`mt-auto flex flex-col gap-2 p-4`,e),...t})}function h({className:e,...t}){return(0,o.jsx)(c.Drawer.Title,{"data-slot":`drawer-title`,className:(0,a.cn)(`text-text-positive font-semibold`,e),...t})}function g({className:e,...t}){return(0,o.jsx)(c.Drawer.Description,{"data-slot":`drawer-description`,className:(0,a.cn)(`text-text-positive-weak text-sm`,e),...t})}const _=({form:e,open:i,isSubmitting:c=!1,isResetAfterSubmit:u=!0,disableSubmit:d=!1,title:_,description:v,className:y,onOpenChange:b,onSubmit:x,onError:S,onReset:C,children:w})=>{let T=(0,s.useMediaQuery)(`(min-width: 768px)`);return T?(0,o.jsx)(r.Dialog,{open:i,onOpenChange:b,children:(0,o.jsxs)(r.DialogContent,{className:(0,a.cn)(`flex flex-col gap-0 border-none p-0`,y),onInteractOutside:e=>{e.preventDefault(),e.stopPropagation()},children:[(0,o.jsxs)(r.DialogHeader,{className:`border-border-weak flex-0 gap-2 border-b p-6 pb-4`,children:[(0,o.jsx)(r.DialogTitle,{children:_||`Form Dialog`}),(0,o.jsx)(r.DialogDescription,{children:v||`This is a form dialog where you can add your form elements.`})]}),(0,o.jsxs)(n.FormWrapper,{form:e,isResetAfterSubmit:u,className:`flex flex-1 flex-col overflow-y-auto`,onSubmit:x,onError:S,children:[(0,o.jsx)(`div`,{className:`bg-muted-muted size-full p-2 inset-shadow-sm`,children:(0,o.jsx)(`main`,{className:`bg-card shadow-card size-full flex-1 overflow-y-auto rounded-md p-4`,children:w})}),(0,o.jsxs)(r.DialogFooter,{className:`border-border-weak border-t p-6 pt-4`,children:[(0,o.jsx)(t.Button,{tabIndex:-1,type:`button`,variant:`outline`,color:`muted`,className:`w-30 rounded-full`,onClick:C,children:`Reset`}),(0,o.jsx)(t.Button,{autoFocus:!0,tabIndex:0,type:`submit`,isLoading:c,disabled:d,className:`w-30 rounded-full`,children:`Submit`})]})]})]})}):(0,o.jsx)(l,{open:i,onOpenChange:b,children:(0,o.jsxs)(f,{children:[(0,o.jsxs)(p,{className:`text-left`,children:[(0,o.jsx)(h,{children:_||`Form Dialog`}),(0,o.jsx)(g,{children:v||`This is a form dialog where you can add your form elements.`})]}),(0,o.jsxs)(n.FormWrapper,{form:e,isResetAfterSubmit:u,className:`flex flex-1 flex-col overflow-y-auto`,onSubmit:x,onError:S,children:[(0,o.jsx)(`main`,{className:`size-full flex-1 overflow-y-auto p-2`,children:w}),(0,o.jsxs)(m,{className:`pt-2`,children:[(0,o.jsx)(t.Button,{autoFocus:!0,tabIndex:0,type:`submit`,isLoading:c,disabled:d,className:`w-full rounded-full`,children:`Submit`}),(0,o.jsx)(t.Button,{tabIndex:-1,type:`button`,variant:`outline`,color:`muted`,className:`w-full rounded-full`,onClick:C,children:`Reset`})]})]})]})})};exports.FormDialog=_;
1
+ const e=require(`../chunk-CUT6urMc.cjs`),t=require(`../button-ChpGfVjG.cjs`);require(`../alert-dialog-csUZX4AP.cjs`),require(`../error-dialog-CsZ9SHEm.cjs`),require(`../label-BvHMsK0O.cjs`),require(`../form-Dcd2HzUB.cjs`);const n=require(`../form-wrapper-CjFQKRzY.cjs`),r=require(`../dialog-E5OYibMU.cjs`),i=e.__toESM(require(`@customafk/react-toolkit/utils`)),a=e.__toESM(require(`react/jsx-runtime`)),o=e.__toESM(require(`react`)),s=e.__toESM(require(`@customafk/react-toolkit/hooks/useMediaQuery`)),c=e.__toESM(require(`vaul`));function l({...e}){return(0,a.jsx)(c.Drawer.Root,{"data-slot":`drawer`,...e})}function u({...e}){return(0,a.jsx)(c.Drawer.Portal,{"data-slot":`drawer-portal`,...e})}function d({className:e,...t}){return(0,a.jsx)(c.Drawer.Overlay,{"data-slot":`drawer-overlay`,className:(0,i.cn)(`fixed inset-0 z-50 bg-black/50`,`data-[state=open]:animate-in`,`data-[state=closed]:animate-out`,`data-[state=open]:fade-in-0`,`data-[state=closed]:fade-out-0`,e),...t})}function f({className:e,children:t,...n}){return(0,a.jsxs)(u,{"data-slot":`drawer-portal`,children:[(0,a.jsx)(d,{}),(0,a.jsxs)(c.Drawer.Content,{"data-slot":`drawer-content`,className:(0,i.cn)(`group/drawer-content bg-background shadow-card fixed z-50 flex h-auto flex-col`,`data-[vaul-drawer-direction=top]:inset-x-0`,`data-[vaul-drawer-direction=top]:top-0`,`data-[vaul-drawer-direction=top]:mb-24`,`data-[vaul-drawer-direction=top]:max-h-[80vh]`,`data-[vaul-drawer-direction=top]:rounded-b-lg`,`data-[vaul-drawer-direction=bottom]:inset-x-0`,`data-[vaul-drawer-direction=bottom]:bottom-0`,`data-[vaul-drawer-direction=bottom]:mt-24`,`data-[vaul-drawer-direction=bottom]:max-h-[80vh]`,`data-[vaul-drawer-direction=bottom]:rounded-t-lg`,`data-[vaul-drawer-direction=right]:inset-y-0`,`data-[vaul-drawer-direction=right]:right-0`,`data-[vaul-drawer-direction=right]:w-3/4`,`data-[vaul-drawer-direction=right]:sm:max-w-sm`,`data-[vaul-drawer-direction=left]:inset-y-0`,`data-[vaul-drawer-direction=left]:left-0`,`data-[vaul-drawer-direction=left]:w-3/4`,`data-[vaul-drawer-direction=left]:sm:max-w-sm`,e),...n,children:[(0,a.jsx)(`div`,{className:`bg-border-weak mx-auto mt-4 hidden h-2 w-25 shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block`}),t]})]})}function p({className:e,...t}){return(0,a.jsx)(`div`,{"data-slot":`drawer-header`,className:(0,i.cn)(`flex flex-col gap-0.5 p-4`,`md:gap-1.5 md:text-left`,`group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center`,`group-data-[vaul-drawer-direction=top]/drawer-content:text-center`,e),...t})}function m({className:e,...t}){return(0,a.jsx)(`div`,{"data-slot":`drawer-footer`,className:(0,i.cn)(`mt-auto flex flex-col gap-2 p-4`,e),...t})}function h({className:e,...t}){return(0,a.jsx)(c.Drawer.Title,{"data-slot":`drawer-title`,className:(0,i.cn)(`text-text-positive font-semibold`,e),...t})}function g({className:e,...t}){return(0,a.jsx)(c.Drawer.Description,{"data-slot":`drawer-description`,className:(0,i.cn)(`text-text-positive-weak text-sm`,e),...t})}const _=({form:e,open:o,isSubmitting:c=!1,isResetAfterSubmit:u=!0,disableSubmit:d=!1,title:_,description:v,className:y,onOpenChange:b,onSubmit:x,onError:S,onReset:C,children:w})=>{let T=(0,s.useMediaQuery)(`(min-width: 768px)`);return T?(0,a.jsx)(r.Dialog,{open:o,onOpenChange:b,children:(0,a.jsxs)(r.DialogContent,{className:(0,i.cn)(`flex flex-col gap-0 border-none p-0`,y),onInteractOutside:e=>{e.preventDefault(),e.stopPropagation()},children:[(0,a.jsxs)(r.DialogHeader,{className:`border-border-weak flex-0 gap-2 border-b p-6 pb-4`,children:[(0,a.jsx)(r.DialogTitle,{children:_||`Form Dialog`}),(0,a.jsx)(r.DialogDescription,{children:v||`This is a form dialog where you can add your form elements.`})]}),(0,a.jsxs)(n.FormWrapper,{form:e,isResetAfterSubmit:u,className:`flex flex-1 flex-col overflow-y-auto`,onSubmit:x,onError:S,children:[(0,a.jsx)(`div`,{className:`bg-muted-muted size-full p-2 inset-shadow-sm`,children:(0,a.jsx)(`main`,{className:`bg-card shadow-card size-full flex-1 overflow-y-auto rounded-md p-4`,children:w})}),(0,a.jsxs)(r.DialogFooter,{className:`border-border-weak border-t p-6 pt-4`,children:[(0,a.jsx)(t.Button,{tabIndex:-1,type:`button`,variant:`outline`,color:`muted`,className:`w-30 rounded-full`,onClick:C,children:`Reset`}),(0,a.jsx)(t.Button,{autoFocus:!0,tabIndex:0,type:`submit`,isLoading:c,disabled:d,className:`w-30 rounded-full`,children:`Submit`})]})]})]})}):(0,a.jsx)(l,{open:o,onOpenChange:b,children:(0,a.jsxs)(f,{children:[(0,a.jsxs)(p,{className:`text-left`,children:[(0,a.jsx)(h,{children:_||`Form Dialog`}),(0,a.jsx)(g,{children:v||`This is a form dialog where you can add your form elements.`})]}),(0,a.jsxs)(n.FormWrapper,{form:e,isResetAfterSubmit:u,className:`flex flex-1 flex-col overflow-y-auto`,onSubmit:x,onError:S,children:[(0,a.jsx)(`main`,{className:`size-full flex-1 overflow-y-auto p-4`,children:w}),(0,a.jsxs)(m,{className:`pt-2`,children:[(0,a.jsx)(t.Button,{autoFocus:!0,tabIndex:0,type:`submit`,isLoading:c,disabled:d,className:`w-full rounded-full`,children:`Submit`}),(0,a.jsx)(t.Button,{tabIndex:-1,type:`button`,variant:`outline`,color:`muted`,className:`w-full rounded-full`,onClick:C,children:`Reset`})]})]})]})})};exports.FormDialog=_;
2
2
  //# sourceMappingURL=form-dialog.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"form-dialog.cjs","names":["DrawerPrimitive","FormWrapper","Button","Dialog","DialogContent","DialogHeader","DialogTitle","DialogDescription","DialogFooter"],"sources":["../../packages/components/ui/drawer.tsx","../../packages/components/dialogs/form-dialog.tsx"],"sourcesContent":["'use client'\nimport React from 'react'\nimport { Drawer as DrawerPrimitive } from 'vaul'\n\nimport { cn } from '@customafk/react-toolkit/utils'\n\nfunction Drawer({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>) {\n return <DrawerPrimitive.Root data-slot=\"drawer\" {...props} />\n}\n\nfunction DrawerTrigger({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Trigger>) {\n return <DrawerPrimitive.Trigger data-slot=\"drawer-trigger\" {...props} />\n}\n\nfunction DrawerPortal({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Portal>) {\n return <DrawerPrimitive.Portal data-slot=\"drawer-portal\" {...props} />\n}\n\nfunction DrawerClose({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Close>) {\n return <DrawerPrimitive.Close data-slot=\"drawer-close\" {...props} />\n}\n\nfunction DrawerOverlay({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Overlay>) {\n return (\n <DrawerPrimitive.Overlay\n data-slot=\"drawer-overlay\"\n className={cn(\n 'fixed inset-0 z-50 bg-black/50',\n 'data-[state=open]:animate-in',\n 'data-[state=closed]:animate-out',\n 'data-[state=open]:fade-in-0',\n 'data-[state=closed]:fade-out-0',\n className,\n )}\n {...props}\n />\n )\n}\n\nfunction DrawerContent({ className, children, ...props }: React.ComponentProps<typeof DrawerPrimitive.Content>) {\n return (\n <DrawerPortal data-slot=\"drawer-portal\">\n <DrawerOverlay />\n <DrawerPrimitive.Content\n data-slot=\"drawer-content\"\n className={cn(\n 'group/drawer-content bg-background shadow-card fixed z-50 flex h-auto flex-col',\n\n 'data-[vaul-drawer-direction=top]:inset-x-0',\n 'data-[vaul-drawer-direction=top]:top-0',\n 'data-[vaul-drawer-direction=top]:mb-24',\n 'data-[vaul-drawer-direction=top]:max-h-[80vh]',\n 'data-[vaul-drawer-direction=top]:rounded-b-lg',\n\n 'data-[vaul-drawer-direction=bottom]:inset-x-0',\n 'data-[vaul-drawer-direction=bottom]:bottom-0',\n 'data-[vaul-drawer-direction=bottom]:mt-24',\n 'data-[vaul-drawer-direction=bottom]:max-h-[80vh]',\n 'data-[vaul-drawer-direction=bottom]:rounded-t-lg',\n\n 'data-[vaul-drawer-direction=right]:inset-y-0',\n 'data-[vaul-drawer-direction=right]:right-0',\n 'data-[vaul-drawer-direction=right]:w-3/4',\n 'data-[vaul-drawer-direction=right]:sm:max-w-sm',\n\n 'data-[vaul-drawer-direction=left]:inset-y-0',\n 'data-[vaul-drawer-direction=left]:left-0',\n 'data-[vaul-drawer-direction=left]:w-3/4',\n 'data-[vaul-drawer-direction=left]:sm:max-w-sm',\n className,\n )}\n {...props}\n >\n <div className=\"bg-border-weak mx-auto mt-4 hidden h-2 w-25 shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block\" />\n {children}\n </DrawerPrimitive.Content>\n </DrawerPortal>\n )\n}\n\nfunction DrawerHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"drawer-header\"\n className={cn(\n 'flex flex-col gap-0.5 p-4',\n 'md:gap-1.5 md:text-left',\n 'group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center',\n 'group-data-[vaul-drawer-direction=top]/drawer-content:text-center',\n className,\n )}\n {...props}\n />\n )\n}\n\nfunction DrawerFooter({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"drawer-footer\" className={cn('mt-auto flex flex-col gap-2 p-4', className)} {...props} />\n}\n\nfunction DrawerTitle({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Title>) {\n return <DrawerPrimitive.Title data-slot=\"drawer-title\" className={cn('text-text-positive font-semibold', className)} {...props} />\n}\n\nfunction DrawerDescription({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Description>) {\n return <DrawerPrimitive.Description data-slot=\"drawer-description\" className={cn('text-text-positive-weak text-sm', className)} {...props} />\n}\n\nexport { Drawer, DrawerPortal, DrawerOverlay, DrawerTrigger, DrawerClose, DrawerContent, DrawerHeader, DrawerFooter, DrawerTitle, DrawerDescription }\n","import type { FieldValues, FormState, SubmitErrorHandler, UseFormProps } from 'react-hook-form'\n\nimport { cn } from '@customafk/react-toolkit/utils'\nimport { useMediaQuery } from '@customafk/react-toolkit/hooks/useMediaQuery'\n\nimport { FormWrapper } from '@/components/forms/form-wrapper'\nimport { Button } from '@/components/ui/button'\nimport { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle } from '@/components/ui/dialog'\nimport { Drawer, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle } from '@/components/ui/drawer'\n\ntype Props<TFieldValues extends FieldValues = FieldValues> = {\n form: UseFormProps<TFieldValues>\n\n open: boolean\n isSubmitting?: boolean\n isResetAfterSubmit?: boolean\n disableSubmit?: boolean\n title?: string\n description?: string\n className?: string\n\n onOpenChange: (open: boolean) => void\n onSubmit: (data: TFieldValues, formState: FormState<FieldValues>, dirtyFields: FormState<FieldValues>['dirtyFields']) => void | Promise<void>\n onError?: SubmitErrorHandler<TFieldValues>\n onReset?: () => void\n}\nexport const FormDialog = <TFieldValues extends FieldValues = FieldValues>({\n form,\n open,\n isSubmitting = false,\n isResetAfterSubmit = true,\n disableSubmit = false,\n title,\n description,\n className,\n\n onOpenChange,\n onSubmit,\n onError,\n onReset,\n children,\n}: React.PropsWithChildren<Props<TFieldValues>>) => {\n const isDesktop = useMediaQuery('(min-width: 768px)')\n\n if (!isDesktop) {\n return (\n <Drawer open={open} onOpenChange={onOpenChange}>\n <DrawerContent>\n <DrawerHeader className=\"text-left\">\n <DrawerTitle>{title || 'Form Dialog'}</DrawerTitle>\n <DrawerDescription>{description || 'This is a form dialog where you can add your form elements.'}</DrawerDescription>\n </DrawerHeader>\n <FormWrapper\n form={form}\n isResetAfterSubmit={isResetAfterSubmit}\n className=\"flex flex-1 flex-col overflow-y-auto\"\n onSubmit={onSubmit}\n onError={onError}\n >\n <main className=\"size-full flex-1 overflow-y-auto p-2\">{children}</main>\n <DrawerFooter className=\"pt-2\">\n <Button autoFocus tabIndex={0} type=\"submit\" isLoading={isSubmitting} disabled={disableSubmit} className=\"w-full rounded-full\">\n Submit\n </Button>\n <Button tabIndex={-1} type=\"button\" variant=\"outline\" color=\"muted\" className=\"w-full rounded-full\" onClick={onReset}>\n Reset\n </Button>\n </DrawerFooter>\n </FormWrapper>\n </DrawerContent>\n </Drawer>\n )\n }\n\n return (\n <Dialog open={open} onOpenChange={onOpenChange}>\n <DialogContent\n className={cn('flex flex-col gap-0 border-none p-0', className)}\n onInteractOutside={(e) => {\n e.preventDefault()\n e.stopPropagation()\n }}\n >\n <DialogHeader className=\"border-border-weak flex-0 gap-2 border-b p-6 pb-4\">\n <DialogTitle>{title || 'Form Dialog'}</DialogTitle>\n <DialogDescription>{description || 'This is a form dialog where you can add your form elements.'}</DialogDescription>\n </DialogHeader>\n <FormWrapper form={form} isResetAfterSubmit={isResetAfterSubmit} className=\"flex flex-1 flex-col overflow-y-auto\" onSubmit={onSubmit} onError={onError}>\n <div className=\"bg-muted-muted size-full p-2 inset-shadow-sm\">\n <main className=\"bg-card shadow-card size-full flex-1 overflow-y-auto rounded-md p-4\">{children}</main>\n </div>\n <DialogFooter className=\"border-border-weak border-t p-6 pt-4\">\n <Button tabIndex={-1} type=\"button\" variant=\"outline\" color=\"muted\" className=\"w-30 rounded-full\" onClick={onReset}>\n Reset\n </Button>\n <Button autoFocus tabIndex={0} type=\"submit\" isLoading={isSubmitting} disabled={disableSubmit} className=\"w-30 rounded-full\">\n Submit\n </Button>\n </DialogFooter>\n </FormWrapper>\n </DialogContent>\n </Dialog>\n )\n}\n"],"mappings":"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"}
1
+ {"version":3,"file":"form-dialog.cjs","names":["DrawerPrimitive","FormWrapper","Button","Dialog","DialogContent","DialogHeader","DialogTitle","DialogDescription","DialogFooter"],"sources":["../../packages/components/ui/drawer.tsx","../../packages/components/dialogs/form-dialog.tsx"],"sourcesContent":["'use client'\nimport React from 'react'\nimport { cn } from '@customafk/react-toolkit/utils'\n\nimport { Drawer as DrawerPrimitive } from 'vaul'\n\nfunction Drawer({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>) {\n return <DrawerPrimitive.Root data-slot=\"drawer\" {...props} />\n}\n\nfunction DrawerTrigger({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Trigger>) {\n return <DrawerPrimitive.Trigger data-slot=\"drawer-trigger\" {...props} />\n}\n\nfunction DrawerPortal({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Portal>) {\n return <DrawerPrimitive.Portal data-slot=\"drawer-portal\" {...props} />\n}\n\nfunction DrawerClose({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Close>) {\n return <DrawerPrimitive.Close data-slot=\"drawer-close\" {...props} />\n}\n\nfunction DrawerOverlay({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Overlay>) {\n return (\n <DrawerPrimitive.Overlay\n data-slot=\"drawer-overlay\"\n className={cn(\n 'fixed inset-0 z-50 bg-black/50',\n 'data-[state=open]:animate-in',\n 'data-[state=closed]:animate-out',\n 'data-[state=open]:fade-in-0',\n 'data-[state=closed]:fade-out-0',\n className,\n )}\n {...props}\n />\n )\n}\n\nfunction DrawerContent({ className, children, ...props }: React.ComponentProps<typeof DrawerPrimitive.Content>) {\n return (\n <DrawerPortal data-slot=\"drawer-portal\">\n <DrawerOverlay />\n <DrawerPrimitive.Content\n data-slot=\"drawer-content\"\n className={cn(\n 'group/drawer-content bg-background shadow-card fixed z-50 flex h-auto flex-col',\n\n 'data-[vaul-drawer-direction=top]:inset-x-0',\n 'data-[vaul-drawer-direction=top]:top-0',\n 'data-[vaul-drawer-direction=top]:mb-24',\n 'data-[vaul-drawer-direction=top]:max-h-[80vh]',\n 'data-[vaul-drawer-direction=top]:rounded-b-lg',\n\n 'data-[vaul-drawer-direction=bottom]:inset-x-0',\n 'data-[vaul-drawer-direction=bottom]:bottom-0',\n 'data-[vaul-drawer-direction=bottom]:mt-24',\n 'data-[vaul-drawer-direction=bottom]:max-h-[80vh]',\n 'data-[vaul-drawer-direction=bottom]:rounded-t-lg',\n\n 'data-[vaul-drawer-direction=right]:inset-y-0',\n 'data-[vaul-drawer-direction=right]:right-0',\n 'data-[vaul-drawer-direction=right]:w-3/4',\n 'data-[vaul-drawer-direction=right]:sm:max-w-sm',\n\n 'data-[vaul-drawer-direction=left]:inset-y-0',\n 'data-[vaul-drawer-direction=left]:left-0',\n 'data-[vaul-drawer-direction=left]:w-3/4',\n 'data-[vaul-drawer-direction=left]:sm:max-w-sm',\n className,\n )}\n {...props}\n >\n <div className=\"bg-border-weak mx-auto mt-4 hidden h-2 w-25 shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block\" />\n {children}\n </DrawerPrimitive.Content>\n </DrawerPortal>\n )\n}\n\nfunction DrawerHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"drawer-header\"\n className={cn(\n 'flex flex-col gap-0.5 p-4',\n 'md:gap-1.5 md:text-left',\n 'group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center',\n 'group-data-[vaul-drawer-direction=top]/drawer-content:text-center',\n className,\n )}\n {...props}\n />\n )\n}\n\nfunction DrawerFooter({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"drawer-footer\" className={cn('mt-auto flex flex-col gap-2 p-4', className)} {...props} />\n}\n\nfunction DrawerTitle({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Title>) {\n return <DrawerPrimitive.Title data-slot=\"drawer-title\" className={cn('text-text-positive font-semibold', className)} {...props} />\n}\n\nfunction DrawerDescription({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Description>) {\n return <DrawerPrimitive.Description data-slot=\"drawer-description\" className={cn('text-text-positive-weak text-sm', className)} {...props} />\n}\n\nexport { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger }\n","import type { FieldValues, FormState, SubmitErrorHandler, UseFormProps } from 'react-hook-form'\nimport { useMediaQuery } from '@customafk/react-toolkit/hooks/useMediaQuery'\nimport { cn } from '@customafk/react-toolkit/utils'\n\nimport { FormWrapper } from '@/components/forms/form-wrapper'\nimport { Button } from '@/components/ui/button'\nimport { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle } from '@/components/ui/dialog'\nimport { Drawer, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle } from '@/components/ui/drawer'\n\ntype Props<TFieldValues extends FieldValues = FieldValues> = {\n form: UseFormProps<TFieldValues>\n\n open: boolean\n isSubmitting?: boolean\n isResetAfterSubmit?: boolean\n disableSubmit?: boolean\n title?: string\n description?: string\n className?: string\n\n onOpenChange: (open: boolean) => void\n onSubmit: (data: TFieldValues, formState: FormState<FieldValues>, dirtyFields: FormState<FieldValues>['dirtyFields']) => void | Promise<void>\n onError?: SubmitErrorHandler<TFieldValues>\n onReset?: () => void\n}\nexport const FormDialog = <TFieldValues extends FieldValues = FieldValues>({\n form,\n open,\n isSubmitting = false,\n isResetAfterSubmit = true,\n disableSubmit = false,\n title,\n description,\n className,\n\n onOpenChange,\n onSubmit,\n onError,\n onReset,\n children,\n}: React.PropsWithChildren<Props<TFieldValues>>) => {\n const isDesktop = useMediaQuery('(min-width: 768px)')\n\n if (!isDesktop) {\n return (\n <Drawer open={open} onOpenChange={onOpenChange}>\n <DrawerContent>\n <DrawerHeader className=\"text-left\">\n <DrawerTitle>{title || 'Form Dialog'}</DrawerTitle>\n <DrawerDescription>{description || 'This is a form dialog where you can add your form elements.'}</DrawerDescription>\n </DrawerHeader>\n <FormWrapper\n form={form}\n isResetAfterSubmit={isResetAfterSubmit}\n className=\"flex flex-1 flex-col overflow-y-auto\"\n onSubmit={onSubmit}\n onError={onError}\n >\n <main className=\"size-full flex-1 overflow-y-auto p-4\">{children}</main>\n <DrawerFooter className=\"pt-2\">\n <Button autoFocus tabIndex={0} type=\"submit\" isLoading={isSubmitting} disabled={disableSubmit} className=\"w-full rounded-full\">\n Submit\n </Button>\n <Button tabIndex={-1} type=\"button\" variant=\"outline\" color=\"muted\" className=\"w-full rounded-full\" onClick={onReset}>\n Reset\n </Button>\n </DrawerFooter>\n </FormWrapper>\n </DrawerContent>\n </Drawer>\n )\n }\n\n return (\n <Dialog open={open} onOpenChange={onOpenChange}>\n <DialogContent\n className={cn('flex flex-col gap-0 border-none p-0', className)}\n onInteractOutside={(e) => {\n e.preventDefault()\n e.stopPropagation()\n }}\n >\n <DialogHeader className=\"border-border-weak flex-0 gap-2 border-b p-6 pb-4\">\n <DialogTitle>{title || 'Form Dialog'}</DialogTitle>\n <DialogDescription>{description || 'This is a form dialog where you can add your form elements.'}</DialogDescription>\n </DialogHeader>\n <FormWrapper form={form} isResetAfterSubmit={isResetAfterSubmit} className=\"flex flex-1 flex-col overflow-y-auto\" onSubmit={onSubmit} onError={onError}>\n <div className=\"bg-muted-muted size-full p-2 inset-shadow-sm\">\n <main className=\"bg-card shadow-card size-full flex-1 overflow-y-auto rounded-md p-4\">{children}</main>\n </div>\n <DialogFooter className=\"border-border-weak border-t p-6 pt-4\">\n <Button tabIndex={-1} type=\"button\" variant=\"outline\" color=\"muted\" className=\"w-30 rounded-full\" onClick={onReset}>\n Reset\n </Button>\n <Button autoFocus tabIndex={0} type=\"submit\" isLoading={isSubmitting} disabled={disableSubmit} className=\"w-30 rounded-full\">\n Submit\n </Button>\n </DialogFooter>\n </FormWrapper>\n </DialogContent>\n </Dialog>\n )\n}\n"],"mappings":"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"}
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime48 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime5 from "react/jsx-runtime";
2
2
  import { FieldValues, FormState, SubmitErrorHandler, UseFormProps } from "react-hook-form";
3
3
 
4
4
  //#region packages/components/dialogs/form-dialog.d.ts
@@ -30,7 +30,7 @@ declare const FormDialog: <TFieldValues extends FieldValues = FieldValues>({
30
30
  onError,
31
31
  onReset,
32
32
  children
33
- }: React.PropsWithChildren<Props<TFieldValues>>) => react_jsx_runtime48.JSX.Element;
33
+ }: React.PropsWithChildren<Props<TFieldValues>>) => react_jsx_runtime5.JSX.Element;
34
34
  //#endregion
35
35
  export { FormDialog };
36
36
  //# sourceMappingURL=form-dialog.d.cts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime3 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime1 from "react/jsx-runtime";
2
2
  import { FieldValues, FormState, SubmitErrorHandler, UseFormProps } from "react-hook-form";
3
3
 
4
4
  //#region packages/components/dialogs/form-dialog.d.ts
@@ -30,7 +30,7 @@ declare const FormDialog: <TFieldValues extends FieldValues = FieldValues>({
30
30
  onError,
31
31
  onReset,
32
32
  children
33
- }: React.PropsWithChildren<Props<TFieldValues>>) => react_jsx_runtime3.JSX.Element;
33
+ }: React.PropsWithChildren<Props<TFieldValues>>) => react_jsx_runtime1.JSX.Element;
34
34
  //#endregion
35
35
  export { FormDialog };
36
36
  //# sourceMappingURL=form-dialog.d.ts.map
@@ -1,2 +1,2 @@
1
- import{Button as e}from"../button-DL_i4AVi.js";import"../alert-dialog-kpuqvmVo.js";import"../error-dialog-e9mFaOuG.js";import"../label-BQ52Pjw-.js";import"../form-BzvxUv0a.js";import{FormWrapper as t}from"../form-wrapper-Cks4xmCV.js";import{Dialog as n,DialogContent as r,DialogDescription as i,DialogFooter as a,DialogHeader as o,DialogTitle as s}from"../dialog-BEJ3krbY.js";import c from"react";import{cn as l}from"@customafk/react-toolkit/utils";import{jsx as u,jsxs as d}from"react/jsx-runtime";import{useMediaQuery as f}from"@customafk/react-toolkit/hooks/useMediaQuery";import{Drawer as p}from"vaul";function m({...e}){return u(p.Root,{"data-slot":`drawer`,...e})}function h({...e}){return u(p.Portal,{"data-slot":`drawer-portal`,...e})}function g({className:e,...t}){return u(p.Overlay,{"data-slot":`drawer-overlay`,className:l(`fixed inset-0 z-50 bg-black/50`,`data-[state=open]:animate-in`,`data-[state=closed]:animate-out`,`data-[state=open]:fade-in-0`,`data-[state=closed]:fade-out-0`,e),...t})}function _({className:e,children:t,...n}){return d(h,{"data-slot":`drawer-portal`,children:[u(g,{}),d(p.Content,{"data-slot":`drawer-content`,className:l(`group/drawer-content bg-background shadow-card fixed z-50 flex h-auto flex-col`,`data-[vaul-drawer-direction=top]:inset-x-0`,`data-[vaul-drawer-direction=top]:top-0`,`data-[vaul-drawer-direction=top]:mb-24`,`data-[vaul-drawer-direction=top]:max-h-[80vh]`,`data-[vaul-drawer-direction=top]:rounded-b-lg`,`data-[vaul-drawer-direction=bottom]:inset-x-0`,`data-[vaul-drawer-direction=bottom]:bottom-0`,`data-[vaul-drawer-direction=bottom]:mt-24`,`data-[vaul-drawer-direction=bottom]:max-h-[80vh]`,`data-[vaul-drawer-direction=bottom]:rounded-t-lg`,`data-[vaul-drawer-direction=right]:inset-y-0`,`data-[vaul-drawer-direction=right]:right-0`,`data-[vaul-drawer-direction=right]:w-3/4`,`data-[vaul-drawer-direction=right]:sm:max-w-sm`,`data-[vaul-drawer-direction=left]:inset-y-0`,`data-[vaul-drawer-direction=left]:left-0`,`data-[vaul-drawer-direction=left]:w-3/4`,`data-[vaul-drawer-direction=left]:sm:max-w-sm`,e),...n,children:[u(`div`,{className:`bg-border-weak mx-auto mt-4 hidden h-2 w-25 shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block`}),t]})]})}function v({className:e,...t}){return u(`div`,{"data-slot":`drawer-header`,className:l(`flex flex-col gap-0.5 p-4`,`md:gap-1.5 md:text-left`,`group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center`,`group-data-[vaul-drawer-direction=top]/drawer-content:text-center`,e),...t})}function y({className:e,...t}){return u(`div`,{"data-slot":`drawer-footer`,className:l(`mt-auto flex flex-col gap-2 p-4`,e),...t})}function b({className:e,...t}){return u(p.Title,{"data-slot":`drawer-title`,className:l(`text-text-positive font-semibold`,e),...t})}function x({className:e,...t}){return u(p.Description,{"data-slot":`drawer-description`,className:l(`text-text-positive-weak text-sm`,e),...t})}const S=({form:c,open:p,isSubmitting:h=!1,isResetAfterSubmit:g=!0,disableSubmit:S=!1,title:C,description:w,className:T,onOpenChange:E,onSubmit:D,onError:O,onReset:k,children:A})=>{let j=f(`(min-width: 768px)`);return j?u(n,{open:p,onOpenChange:E,children:d(r,{className:l(`flex flex-col gap-0 border-none p-0`,T),onInteractOutside:e=>{e.preventDefault(),e.stopPropagation()},children:[d(o,{className:`border-border-weak flex-0 gap-2 border-b p-6 pb-4`,children:[u(s,{children:C||`Form Dialog`}),u(i,{children:w||`This is a form dialog where you can add your form elements.`})]}),d(t,{form:c,isResetAfterSubmit:g,className:`flex flex-1 flex-col overflow-y-auto`,onSubmit:D,onError:O,children:[u(`div`,{className:`bg-muted-muted size-full p-2 inset-shadow-sm`,children:u(`main`,{className:`bg-card shadow-card size-full flex-1 overflow-y-auto rounded-md p-4`,children:A})}),d(a,{className:`border-border-weak border-t p-6 pt-4`,children:[u(e,{tabIndex:-1,type:`button`,variant:`outline`,color:`muted`,className:`w-30 rounded-full`,onClick:k,children:`Reset`}),u(e,{autoFocus:!0,tabIndex:0,type:`submit`,isLoading:h,disabled:S,className:`w-30 rounded-full`,children:`Submit`})]})]})]})}):u(m,{open:p,onOpenChange:E,children:d(_,{children:[d(v,{className:`text-left`,children:[u(b,{children:C||`Form Dialog`}),u(x,{children:w||`This is a form dialog where you can add your form elements.`})]}),d(t,{form:c,isResetAfterSubmit:g,className:`flex flex-1 flex-col overflow-y-auto`,onSubmit:D,onError:O,children:[u(`main`,{className:`size-full flex-1 overflow-y-auto p-2`,children:A}),d(y,{className:`pt-2`,children:[u(e,{autoFocus:!0,tabIndex:0,type:`submit`,isLoading:h,disabled:S,className:`w-full rounded-full`,children:`Submit`}),u(e,{tabIndex:-1,type:`button`,variant:`outline`,color:`muted`,className:`w-full rounded-full`,onClick:k,children:`Reset`})]})]})]})})};export{S as FormDialog};
1
+ import{Button as e}from"../button-DL_i4AVi.js";import"../alert-dialog-CnUUZRzI.js";import"../error-dialog-Be_eV-D7.js";import"../label-BpefWj7m.js";import"../form-RRTCXIG6.js";import{FormWrapper as t}from"../form-wrapper-D-KkrCiZ.js";import{Dialog as n,DialogContent as r,DialogDescription as i,DialogFooter as a,DialogHeader as o,DialogTitle as s}from"../dialog-BEJ3krbY.js";import{cn as c}from"@customafk/react-toolkit/utils";import{jsx as l,jsxs as u}from"react/jsx-runtime";import d from"react";import{useMediaQuery as f}from"@customafk/react-toolkit/hooks/useMediaQuery";import{Drawer as p}from"vaul";function m({...e}){return l(p.Root,{"data-slot":`drawer`,...e})}function h({...e}){return l(p.Portal,{"data-slot":`drawer-portal`,...e})}function g({className:e,...t}){return l(p.Overlay,{"data-slot":`drawer-overlay`,className:c(`fixed inset-0 z-50 bg-black/50`,`data-[state=open]:animate-in`,`data-[state=closed]:animate-out`,`data-[state=open]:fade-in-0`,`data-[state=closed]:fade-out-0`,e),...t})}function _({className:e,children:t,...n}){return u(h,{"data-slot":`drawer-portal`,children:[l(g,{}),u(p.Content,{"data-slot":`drawer-content`,className:c(`group/drawer-content bg-background shadow-card fixed z-50 flex h-auto flex-col`,`data-[vaul-drawer-direction=top]:inset-x-0`,`data-[vaul-drawer-direction=top]:top-0`,`data-[vaul-drawer-direction=top]:mb-24`,`data-[vaul-drawer-direction=top]:max-h-[80vh]`,`data-[vaul-drawer-direction=top]:rounded-b-lg`,`data-[vaul-drawer-direction=bottom]:inset-x-0`,`data-[vaul-drawer-direction=bottom]:bottom-0`,`data-[vaul-drawer-direction=bottom]:mt-24`,`data-[vaul-drawer-direction=bottom]:max-h-[80vh]`,`data-[vaul-drawer-direction=bottom]:rounded-t-lg`,`data-[vaul-drawer-direction=right]:inset-y-0`,`data-[vaul-drawer-direction=right]:right-0`,`data-[vaul-drawer-direction=right]:w-3/4`,`data-[vaul-drawer-direction=right]:sm:max-w-sm`,`data-[vaul-drawer-direction=left]:inset-y-0`,`data-[vaul-drawer-direction=left]:left-0`,`data-[vaul-drawer-direction=left]:w-3/4`,`data-[vaul-drawer-direction=left]:sm:max-w-sm`,e),...n,children:[l(`div`,{className:`bg-border-weak mx-auto mt-4 hidden h-2 w-25 shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block`}),t]})]})}function v({className:e,...t}){return l(`div`,{"data-slot":`drawer-header`,className:c(`flex flex-col gap-0.5 p-4`,`md:gap-1.5 md:text-left`,`group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center`,`group-data-[vaul-drawer-direction=top]/drawer-content:text-center`,e),...t})}function y({className:e,...t}){return l(`div`,{"data-slot":`drawer-footer`,className:c(`mt-auto flex flex-col gap-2 p-4`,e),...t})}function b({className:e,...t}){return l(p.Title,{"data-slot":`drawer-title`,className:c(`text-text-positive font-semibold`,e),...t})}function x({className:e,...t}){return l(p.Description,{"data-slot":`drawer-description`,className:c(`text-text-positive-weak text-sm`,e),...t})}const S=({form:d,open:p,isSubmitting:h=!1,isResetAfterSubmit:g=!0,disableSubmit:S=!1,title:C,description:w,className:T,onOpenChange:E,onSubmit:D,onError:O,onReset:k,children:A})=>{let j=f(`(min-width: 768px)`);return j?l(n,{open:p,onOpenChange:E,children:u(r,{className:c(`flex flex-col gap-0 border-none p-0`,T),onInteractOutside:e=>{e.preventDefault(),e.stopPropagation()},children:[u(o,{className:`border-border-weak flex-0 gap-2 border-b p-6 pb-4`,children:[l(s,{children:C||`Form Dialog`}),l(i,{children:w||`This is a form dialog where you can add your form elements.`})]}),u(t,{form:d,isResetAfterSubmit:g,className:`flex flex-1 flex-col overflow-y-auto`,onSubmit:D,onError:O,children:[l(`div`,{className:`bg-muted-muted size-full p-2 inset-shadow-sm`,children:l(`main`,{className:`bg-card shadow-card size-full flex-1 overflow-y-auto rounded-md p-4`,children:A})}),u(a,{className:`border-border-weak border-t p-6 pt-4`,children:[l(e,{tabIndex:-1,type:`button`,variant:`outline`,color:`muted`,className:`w-30 rounded-full`,onClick:k,children:`Reset`}),l(e,{autoFocus:!0,tabIndex:0,type:`submit`,isLoading:h,disabled:S,className:`w-30 rounded-full`,children:`Submit`})]})]})]})}):l(m,{open:p,onOpenChange:E,children:u(_,{children:[u(v,{className:`text-left`,children:[l(b,{children:C||`Form Dialog`}),l(x,{children:w||`This is a form dialog where you can add your form elements.`})]}),u(t,{form:d,isResetAfterSubmit:g,className:`flex flex-1 flex-col overflow-y-auto`,onSubmit:D,onError:O,children:[l(`main`,{className:`size-full flex-1 overflow-y-auto p-4`,children:A}),u(y,{className:`pt-2`,children:[l(e,{autoFocus:!0,tabIndex:0,type:`submit`,isLoading:h,disabled:S,className:`w-full rounded-full`,children:`Submit`}),l(e,{tabIndex:-1,type:`button`,variant:`outline`,color:`muted`,className:`w-full rounded-full`,onClick:k,children:`Reset`})]})]})]})})};export{S as FormDialog};
2
2
  //# sourceMappingURL=form-dialog.js.map