@customafk/lunas-ui 0.2.40 → 0.2.42

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 (644) hide show
  1. package/dist/{alert-BztgYPpW.d.cts → alert-BVsYpWFX.d.cts} +5 -5
  2. package/dist/{alert-BzBDfGk2.js → alert-D5VmhFT9.js} +2 -2
  3. package/dist/{alert-BzBDfGk2.js.map → alert-D5VmhFT9.js.map} +1 -1
  4. package/dist/{alert-DFvMshuq.d.ts → alert-DXmXDeGs.d.ts} +5 -5
  5. package/dist/{alert-B2PaDJp6.cjs → alert-JwECRZfz.cjs} +2 -2
  6. package/dist/{alert-B2PaDJp6.cjs.map → alert-JwECRZfz.cjs.map} +1 -1
  7. package/dist/{button-DloFFxkz.d.ts → button-BBfGvggN.d.ts} +3 -3
  8. package/dist/{button-CRSezlCi.d.cts → button-BEjRVw6s.d.cts} +3 -3
  9. package/dist/{button.variants-CoSpd71B.js → button.variants-BruXd4VM.js} +1 -1
  10. package/dist/{button.variants-CoSpd71B.js.map → button.variants-BruXd4VM.js.map} +1 -1
  11. package/dist/{button.variants-4kw6plrv.cjs → button.variants-DgVFNsVc.cjs} +2 -2
  12. package/dist/{button.variants-4kw6plrv.cjs.map → button.variants-DgVFNsVc.cjs.map} +1 -1
  13. package/dist/cards/grid-product-card.cjs +1 -1
  14. package/dist/cards/grid-product-card.cjs.map +1 -1
  15. package/dist/cards/grid-product-card.js +1 -1
  16. package/dist/cards/grid-product-card.js.map +1 -1
  17. package/dist/cards/product-card.cjs +1 -1
  18. package/dist/cards/product-card.cjs.map +1 -1
  19. package/dist/cards/product-card.js +1 -1
  20. package/dist/cards/product-card.js.map +1 -1
  21. package/dist/cards/simple-card.cjs +1 -1
  22. package/dist/cards/simple-card.d.ts +2 -2
  23. package/dist/cards/simple-card.js +1 -1
  24. package/dist/chunk-Bmb41Sf3.cjs +1 -0
  25. package/dist/{close-Dlo1bI8x.cjs → close-Dflkky9q.cjs} +2 -2
  26. package/dist/{close-Dlo1bI8x.cjs.map → close-Dflkky9q.cjs.map} +1 -1
  27. package/dist/{close-C0PdZGxr.js → close-DrkwaVXK.js} +1 -1
  28. package/dist/{close-C0PdZGxr.js.map → close-DrkwaVXK.js.map} +1 -1
  29. package/dist/cms-layout-B8maJRLp.cjs +2 -0
  30. package/dist/{cms-layout-BCH4NroR.cjs.map → cms-layout-B8maJRLp.cjs.map} +1 -1
  31. package/dist/cms-layout-CLeGdpMb.js +2 -0
  32. package/dist/{cms-layout-tPwrgJZc.js.map → cms-layout-CLeGdpMb.js.map} +1 -1
  33. package/dist/data-display/country.cjs +1 -1
  34. package/dist/data-display/country.cjs.map +1 -1
  35. package/dist/data-display/country.d.cts +1 -1
  36. package/dist/data-display/country.d.ts +1 -1
  37. package/dist/data-display/country.js +1 -1
  38. package/dist/data-display/country.js.map +1 -1
  39. package/dist/data-display/data-list.cjs +1 -1
  40. package/dist/data-display/date-tooltip.cjs +1 -1
  41. package/dist/data-display/date-tooltip.cjs.map +1 -1
  42. package/dist/data-display/date-tooltip.js +1 -1
  43. package/dist/data-display/date-tooltip.js.map +1 -1
  44. package/dist/data-display/date.cjs +2 -1
  45. package/dist/data-display/date.cjs.map +1 -0
  46. package/dist/data-display/date.js +2 -1
  47. package/dist/data-display/date.js.map +1 -0
  48. package/dist/data-display/empty.cjs +1 -1
  49. package/dist/data-display/name.cjs +1 -1
  50. package/dist/data-display/name.cjs.map +1 -1
  51. package/dist/data-display/name.js +1 -1
  52. package/dist/data-display/name.js.map +1 -1
  53. package/dist/data-display/phone-number.cjs +1 -1
  54. package/dist/data-display/phone-number.cjs.map +1 -1
  55. package/dist/data-display/phone-number.js +1 -1
  56. package/dist/data-display/phone-number.js.map +1 -1
  57. package/dist/data-display/role-badge.cjs +1 -1
  58. package/dist/data-display/role-badge.cjs.map +1 -1
  59. package/dist/data-display/role-badge.d.cts +1 -1
  60. package/dist/data-display/role-badge.d.ts +1 -1
  61. package/dist/data-display/role-badge.js +1 -1
  62. package/dist/data-display/role-badge.js.map +1 -1
  63. package/dist/data-display/statistic.cjs +2 -1
  64. package/dist/data-display/statistic.cjs.map +1 -0
  65. package/dist/data-display/statistic.d.cts +3 -3
  66. package/dist/data-display/statistic.d.ts +3 -3
  67. package/dist/data-display/statistic.js +2 -1
  68. package/dist/data-display/statistic.js.map +1 -0
  69. package/dist/data-display/user.cjs +2 -1
  70. package/dist/data-display/user.cjs.map +1 -0
  71. package/dist/data-display/user.js +2 -1
  72. package/dist/data-display/user.js.map +1 -0
  73. package/dist/dialogs/confirm-dialog.cjs +1 -1
  74. package/dist/dialogs/confirm-dialog.js +1 -1
  75. package/dist/dialogs/detail-dialog/components/sidebar.cjs +1 -1
  76. package/dist/dialogs/detail-dialog/components/sidebar.d.cts +26 -26
  77. package/dist/dialogs/detail-dialog/components/sidebar.d.ts +26 -26
  78. package/dist/dialogs/detail-dialog/components/sidebar.js +1 -1
  79. package/dist/dialogs/detail-dialog/index.cjs +1 -1
  80. package/dist/dialogs/detail-dialog/index.cjs.map +1 -1
  81. package/dist/dialogs/detail-dialog/index.js +1 -1
  82. package/dist/dialogs/detail-dialog/index.js.map +1 -1
  83. package/dist/dialogs/error-dialog.cjs +1 -1
  84. package/dist/dialogs/error-dialog.js +1 -1
  85. package/dist/dialogs/loading-dialog.cjs +1 -1
  86. package/dist/dialogs/loading-dialog.cjs.map +1 -1
  87. package/dist/dialogs/loading-dialog.js +1 -1
  88. package/dist/dialogs/loading-dialog.js.map +1 -1
  89. package/dist/features/descriptions/index.cjs +1 -1
  90. package/dist/features/descriptions/index.cjs.map +1 -1
  91. package/dist/features/descriptions/index.d.cts +3 -3
  92. package/dist/features/descriptions/index.d.ts +4 -4
  93. package/dist/features/descriptions/index.js +1 -1
  94. package/dist/features/descriptions/index.js.map +1 -1
  95. package/dist/features/search-modal/index.cjs +1 -1
  96. package/dist/features/search-modal/index.d.cts +2 -2
  97. package/dist/features/search-modal/index.d.ts +2 -2
  98. package/dist/features/search-modal/index.js +1 -1
  99. package/dist/features/tables/index.cjs +1 -1
  100. package/dist/features/tables/index.d.cts +1 -1
  101. package/dist/features/tables/index.d.ts +1 -2
  102. package/dist/features/tables/index.js +1 -1
  103. package/dist/features/tanstack-form/index.cjs +1 -1
  104. package/dist/features/tanstack-form/index.d.cts +1 -1
  105. package/dist/features/tanstack-form/index.d.ts +1 -1
  106. package/dist/features/tanstack-form/index.js +1 -1
  107. package/dist/features/text-editor/index.cjs +1 -1
  108. package/dist/features/text-editor/index.d.cts +1 -1
  109. package/dist/features/text-editor/index.d.ts +1 -1
  110. package/dist/features/text-editor/index.js +1 -1
  111. package/dist/field-0gaEKxov.cjs +2 -0
  112. package/dist/{field-BrlETeXX.cjs.map → field-0gaEKxov.cjs.map} +1 -1
  113. package/dist/field-DG-kX3HU.js +2 -0
  114. package/dist/{field-DpoKF1nY.js.map → field-DG-kX3HU.js.map} +1 -1
  115. package/dist/{flex-DmWmOBn5.cjs → flex-BAfCk_in.cjs} +2 -2
  116. package/dist/{flex-DmWmOBn5.cjs.map → flex-BAfCk_in.cjs.map} +1 -1
  117. package/dist/{flex-CinRrgEy.js → flex-D_XtSjf4.js} +2 -2
  118. package/dist/{flex-CinRrgEy.js.map → flex-D_XtSjf4.js.map} +1 -1
  119. package/dist/{heading-tGTqk3pA.cjs → heading-BX7ZVnVg.cjs} +2 -2
  120. package/dist/{heading-tGTqk3pA.cjs.map → heading-BX7ZVnVg.cjs.map} +1 -1
  121. package/dist/{heading-Bz-hSatD.js → heading-Bw3eo6IT.js} +1 -1
  122. package/dist/{heading-Bz-hSatD.js.map → heading-Bw3eo6IT.js.map} +1 -1
  123. package/dist/{index-FIl1Am8j.d.cts → index--eHW_BCk.d.ts} +7 -7
  124. package/dist/{index-BlQGXGqt.d.ts → index-C257sc-c.d.ts} +1 -1
  125. package/dist/{index-DSciiDhn.d.cts → index-C4ZFmaZm.d.cts} +326 -326
  126. package/dist/{index-BX_ZHO1J.d.cts → index-DWEpRM8i.d.cts} +31 -31
  127. package/dist/{index-B3NschgB.d.ts → index-DnQeeNHV.d.ts} +3 -3
  128. package/dist/{index-0jdHH3H_.d.ts → index-_MFRCXuJ.d.cts} +2 -2
  129. package/dist/{index-KO98y6L0.d.cts → index-rNI5ia8r.d.cts} +1 -1
  130. package/dist/{index-DZVn4x4Q.d.ts → index-rZ2RtGJp.d.ts} +2 -2
  131. package/dist/index.cjs +1 -1
  132. package/dist/index.d.cts +11 -11
  133. package/dist/index.d.ts +11 -11
  134. package/dist/index.js +1 -1
  135. package/dist/layouts/cms-layout/index.cjs +1 -1
  136. package/dist/layouts/cms-layout/index.d.cts +1 -1
  137. package/dist/layouts/cms-layout/index.d.ts +1 -1
  138. package/dist/layouts/cms-layout/index.js +1 -1
  139. package/dist/layouts/flex.cjs +1 -1
  140. package/dist/layouts/flex.d.cts +5 -5
  141. package/dist/layouts/flex.d.ts +3 -3
  142. package/dist/layouts/flex.js +1 -1
  143. package/dist/layouts/grid.cjs +1 -1
  144. package/dist/layouts/payment-layout/index.cjs +1 -1
  145. package/dist/layouts/payment-layout/index.js +1 -1
  146. package/dist/pages/FeatureDeveloping.cjs +1 -1
  147. package/dist/pages/FeatureDeveloping.cjs.map +1 -1
  148. package/dist/pages/FeatureDeveloping.d.cts +2 -2
  149. package/dist/pages/FeatureDeveloping.d.ts +2 -2
  150. package/dist/pages/FeatureDeveloping.js +1 -1
  151. package/dist/pages/FeatureDeveloping.js.map +1 -1
  152. package/dist/pages/FeatureFixing.cjs +1 -1
  153. package/dist/pages/FeatureFixing.cjs.map +1 -1
  154. package/dist/pages/FeatureFixing.d.cts +2 -2
  155. package/dist/pages/FeatureFixing.d.ts +2 -2
  156. package/dist/pages/FeatureFixing.js +1 -1
  157. package/dist/pages/FeatureFixing.js.map +1 -1
  158. package/dist/pages/LoginPage.cjs +1 -1
  159. package/dist/pages/LoginPage.cjs.map +1 -1
  160. package/dist/pages/LoginPage.d.cts +2 -2
  161. package/dist/pages/LoginPage.d.ts +2 -2
  162. package/dist/pages/LoginPage.js +1 -1
  163. package/dist/pages/LoginPage.js.map +1 -1
  164. package/dist/pages/NotAuthorized.cjs +1 -1
  165. package/dist/pages/NotAuthorized.cjs.map +1 -1
  166. package/dist/pages/NotAuthorized.d.ts +2 -2
  167. package/dist/pages/NotAuthorized.js +1 -1
  168. package/dist/pages/NotAuthorized.js.map +1 -1
  169. package/dist/pages/NotFound.cjs +1 -1
  170. package/dist/pages/NotFound.cjs.map +1 -1
  171. package/dist/pages/NotFound.d.cts +2 -2
  172. package/dist/pages/NotFound.d.ts +2 -2
  173. package/dist/pages/NotFound.js +1 -1
  174. package/dist/pages/NotFound.js.map +1 -1
  175. package/dist/pages/RegisterPage.cjs +1 -1
  176. package/dist/pages/RegisterPage.cjs.map +1 -1
  177. package/dist/pages/RegisterPage.d.cts +2 -2
  178. package/dist/pages/RegisterPage.d.ts +2 -2
  179. package/dist/pages/RegisterPage.js +1 -1
  180. package/dist/pages/RegisterPage.js.map +1 -1
  181. package/dist/pages/VerifyEmailPage.cjs +1 -1
  182. package/dist/pages/VerifyEmailPage.cjs.map +1 -1
  183. package/dist/pages/VerifyEmailPage.d.cts +2 -2
  184. package/dist/pages/VerifyEmailPage.d.ts +2 -2
  185. package/dist/pages/VerifyEmailPage.js +1 -1
  186. package/dist/pages/VerifyEmailPage.js.map +1 -1
  187. package/dist/{paragraph-DvTZvbzw.cjs → paragraph-D0x3Jc6W.cjs} +2 -2
  188. package/dist/{paragraph-DvTZvbzw.cjs.map → paragraph-D0x3Jc6W.cjs.map} +1 -1
  189. package/dist/{paragraph-Cc13ZI4d.js → paragraph-ESjXXqHU.js} +1 -1
  190. package/dist/{paragraph-Cc13ZI4d.js.map → paragraph-ESjXXqHU.js.map} +1 -1
  191. package/dist/payment-layout-CksJbGsl.js +2 -0
  192. package/dist/{payment-layout-giaGvs8T.js.map → payment-layout-CksJbGsl.js.map} +1 -1
  193. package/dist/payment-layout-O7TNw2Cr.cjs +2 -0
  194. package/dist/{payment-layout-DyILfyVG.cjs.map → payment-layout-O7TNw2Cr.cjs.map} +1 -1
  195. package/dist/search-modal-Db8Xp2L4.cjs +2 -0
  196. package/dist/{search-modal-B-pzGcfP.cjs.map → search-modal-Db8Xp2L4.cjs.map} +1 -1
  197. package/dist/search-modal-DdonKbwA.js +2 -0
  198. package/dist/{search-modal-b2AE5WEW.js.map → search-modal-DdonKbwA.js.map} +1 -1
  199. package/dist/sidebar-BCuXtop_.js +2 -0
  200. package/dist/sidebar-BCuXtop_.js.map +1 -0
  201. package/dist/sidebar-CQZlWCK4.cjs +2 -0
  202. package/dist/{sidebar-D5J2gcTw.cjs.map → sidebar-CQZlWCK4.cjs.map} +1 -1
  203. package/dist/{skeleton-DlRDNM97.js → skeleton-DAcbjBGp.js} +1 -1
  204. package/dist/{skeleton-DlRDNM97.js.map → skeleton-DAcbjBGp.js.map} +1 -1
  205. package/dist/{skeleton-CX1USu1w.cjs → skeleton-oQFT4xR2.cjs} +2 -2
  206. package/dist/{skeleton-CX1USu1w.cjs.map → skeleton-oQFT4xR2.cjs.map} +1 -1
  207. package/dist/systems/google.cjs +1 -1
  208. package/dist/systems/google.js +1 -1
  209. package/dist/tables-DbwtCMRI.js +4 -0
  210. package/dist/{tables-DWQytYNm.js.map → tables-DbwtCMRI.js.map} +1 -1
  211. package/dist/tables-DgZbLZQP.cjs +4 -0
  212. package/dist/{tables-CPKHe3k-.cjs.map → tables-DgZbLZQP.cjs.map} +1 -1
  213. package/dist/tanstack-form-C3SGhsmN.cjs +2 -0
  214. package/dist/tanstack-form-C3SGhsmN.cjs.map +1 -0
  215. package/dist/tanstack-form-Ds_Zjt20.js +2 -0
  216. package/dist/tanstack-form-Ds_Zjt20.js.map +1 -0
  217. package/dist/text-editor-DhTxCxvH.cjs +2 -0
  218. package/dist/{text-editor-CvJN3nSL.cjs.map → text-editor-DhTxCxvH.cjs.map} +1 -1
  219. package/dist/text-editor-DwisU9_U.js +2 -0
  220. package/dist/{text-editor-WbS7pJJs.js.map → text-editor-DwisU9_U.js.map} +1 -1
  221. package/dist/typography/paragraph.cjs +1 -1
  222. package/dist/typography/paragraph.d.cts +4 -4
  223. package/dist/typography/paragraph.d.ts +3 -3
  224. package/dist/typography/paragraph.js +1 -1
  225. package/dist/typography/title.cjs +1 -1
  226. package/dist/ui/alert-dialog.cjs +1 -1
  227. package/dist/ui/alert-dialog.d.cts +12 -12
  228. package/dist/ui/alert-dialog.d.ts +12 -12
  229. package/dist/ui/alert-dialog.js +1 -1
  230. package/dist/ui/alert.cjs +1 -1
  231. package/dist/ui/alert.d.cts +1 -1
  232. package/dist/ui/alert.d.ts +1 -1
  233. package/dist/ui/alert.js +1 -1
  234. package/dist/ui/aspect-ratio.cjs +1 -1
  235. package/dist/ui/aspect-ratio.d.cts +2 -2
  236. package/dist/ui/aspect-ratio.d.ts +2 -2
  237. package/dist/ui/avatar.cjs +2 -1
  238. package/dist/ui/avatar.cjs.map +1 -0
  239. package/dist/ui/avatar.d.cts +4 -4
  240. package/dist/ui/avatar.d.ts +4 -4
  241. package/dist/ui/avatar.js +2 -1
  242. package/dist/ui/avatar.js.map +1 -0
  243. package/dist/ui/badge.cjs +2 -1
  244. package/dist/ui/badge.cjs.map +1 -0
  245. package/dist/ui/badge.d.cts +42 -2
  246. package/dist/ui/badge.d.ts +42 -2
  247. package/dist/ui/badge.js +2 -1
  248. package/dist/ui/badge.js.map +1 -0
  249. package/dist/ui/breadcrumb.cjs +1 -1
  250. package/dist/ui/breadcrumb.cjs.map +1 -1
  251. package/dist/ui/breadcrumb.d.cts +8 -8
  252. package/dist/ui/breadcrumb.d.ts +8 -8
  253. package/dist/ui/breadcrumb.js +1 -1
  254. package/dist/ui/breadcrumb.js.map +1 -1
  255. package/dist/ui/button-group.cjs +1 -1
  256. package/dist/ui/button-group.cjs.map +1 -1
  257. package/dist/ui/button-group.d.cts +7 -7
  258. package/dist/ui/button-group.d.ts +7 -7
  259. package/dist/ui/button-group.js +1 -1
  260. package/dist/ui/button-group.js.map +1 -1
  261. package/dist/ui/button.cjs +2 -1
  262. package/dist/ui/button.cjs.map +1 -0
  263. package/dist/ui/button.d.cts +1 -1
  264. package/dist/ui/button.d.ts +1 -1
  265. package/dist/ui/button.js +2 -1
  266. package/dist/ui/button.js.map +1 -0
  267. package/dist/ui/buttons/add-new.cjs +1 -1
  268. package/dist/ui/buttons/add-new.cjs.map +1 -1
  269. package/dist/ui/buttons/add-new.js +1 -1
  270. package/dist/ui/buttons/add-new.js.map +1 -1
  271. package/dist/ui/buttons/edit.cjs +1 -1
  272. package/dist/ui/buttons/edit.cjs.map +1 -1
  273. package/dist/ui/buttons/edit.js +1 -1
  274. package/dist/ui/buttons/edit.js.map +1 -1
  275. package/dist/ui/buttons/refresh.cjs +1 -1
  276. package/dist/ui/buttons/refresh.cjs.map +1 -1
  277. package/dist/ui/buttons/refresh.js +1 -1
  278. package/dist/ui/buttons/refresh.js.map +1 -1
  279. package/dist/ui/buttons/trash.cjs +1 -1
  280. package/dist/ui/buttons/trash.cjs.map +1 -1
  281. package/dist/ui/buttons/trash.js +1 -1
  282. package/dist/ui/buttons/trash.js.map +1 -1
  283. package/dist/ui/buttons/upload-image.cjs +1 -1
  284. package/dist/ui/buttons/upload-image.cjs.map +1 -1
  285. package/dist/ui/buttons/upload-image.js +1 -1
  286. package/dist/ui/buttons/upload-image.js.map +1 -1
  287. package/dist/ui/calendar.cjs +2 -1
  288. package/dist/ui/calendar.cjs.map +1 -0
  289. package/dist/ui/calendar.d.cts +4 -4
  290. package/dist/ui/calendar.d.ts +4 -4
  291. package/dist/ui/calendar.js +2 -1
  292. package/dist/ui/calendar.js.map +1 -0
  293. package/dist/ui/card.cjs +1 -1
  294. package/dist/ui/card.d.cts +8 -8
  295. package/dist/ui/card.d.ts +8 -8
  296. package/dist/ui/card.js +1 -1
  297. package/dist/ui/carousel.cjs +1 -1
  298. package/dist/ui/carousel.cjs.map +1 -1
  299. package/dist/ui/carousel.d.cts +7 -7
  300. package/dist/ui/carousel.d.ts +7 -7
  301. package/dist/ui/carousel.js +1 -1
  302. package/dist/ui/carousel.js.map +1 -1
  303. package/dist/ui/checkbox.cjs +2 -1
  304. package/dist/ui/checkbox.cjs.map +1 -0
  305. package/dist/ui/checkbox.d.cts +2 -2
  306. package/dist/ui/checkbox.js +2 -1
  307. package/dist/ui/checkbox.js.map +1 -0
  308. package/dist/ui/collapsible.cjs +1 -1
  309. package/dist/ui/collapsible.d.cts +4 -4
  310. package/dist/ui/command.cjs +2 -1
  311. package/dist/ui/command.cjs.map +1 -0
  312. package/dist/ui/command.d.cts +11 -11
  313. package/dist/ui/command.d.ts +11 -11
  314. package/dist/ui/command.js +2 -1
  315. package/dist/ui/command.js.map +1 -0
  316. package/dist/ui/context-menu.cjs +1 -1
  317. package/dist/ui/context-menu.d.cts +16 -16
  318. package/dist/ui/context-menu.d.ts +16 -16
  319. package/dist/ui/dialog.cjs +2 -1
  320. package/dist/ui/dialog.cjs.map +1 -0
  321. package/dist/ui/dialog.d.cts +90 -2
  322. package/dist/ui/dialog.d.ts +90 -2
  323. package/dist/ui/dialog.js +2 -1
  324. package/dist/ui/dialog.js.map +1 -0
  325. package/dist/ui/drawer.cjs +2 -1
  326. package/dist/ui/drawer.cjs.map +1 -0
  327. package/dist/ui/drawer.d.cts +11 -11
  328. package/dist/ui/drawer.d.ts +11 -11
  329. package/dist/ui/drawer.js +2 -1
  330. package/dist/ui/drawer.js.map +1 -0
  331. package/dist/ui/dropdown-menu.cjs +2 -1
  332. package/dist/ui/dropdown-menu.cjs.map +1 -0
  333. package/dist/ui/dropdown-menu.d.cts +16 -16
  334. package/dist/ui/dropdown-menu.d.ts +16 -16
  335. package/dist/ui/dropdown-menu.js +2 -1
  336. package/dist/ui/dropdown-menu.js.map +1 -0
  337. package/dist/ui/empty.cjs +1 -1
  338. package/dist/ui/empty.d.cts +9 -9
  339. package/dist/ui/empty.d.ts +7 -7
  340. package/dist/ui/field.cjs +1 -1
  341. package/dist/ui/field.d.cts +24 -24
  342. package/dist/ui/field.d.ts +24 -24
  343. package/dist/ui/field.js +1 -1
  344. package/dist/ui/file-uploader.cjs +2 -2
  345. package/dist/ui/file-uploader.cjs.map +1 -1
  346. package/dist/ui/file-uploader.d.cts +2 -2
  347. package/dist/ui/file-uploader.d.ts +2 -2
  348. package/dist/ui/file-uploader.js +2 -2
  349. package/dist/ui/file-uploader.js.map +1 -1
  350. package/dist/ui/form.cjs +1 -1
  351. package/dist/ui/form.cjs.map +1 -1
  352. package/dist/ui/form.d.cts +10 -10
  353. package/dist/ui/form.d.ts +10 -10
  354. package/dist/ui/form.js +1 -1
  355. package/dist/ui/form.js.map +1 -1
  356. package/dist/ui/hover-card.cjs +1 -1
  357. package/dist/ui/hover-card.d.cts +4 -4
  358. package/dist/ui/hover-card.d.ts +4 -4
  359. package/dist/ui/image.cjs +2 -1
  360. package/dist/ui/image.cjs.map +1 -0
  361. package/dist/ui/image.js +2 -1
  362. package/dist/ui/image.js.map +1 -0
  363. package/dist/ui/input-otp.cjs +1 -1
  364. package/dist/ui/input-otp.d.cts +5 -5
  365. package/dist/ui/input-otp.d.ts +5 -5
  366. package/dist/ui/input-otp.js +1 -1
  367. package/dist/ui/input.cjs +2 -1
  368. package/dist/ui/input.cjs.map +1 -0
  369. package/dist/ui/input.d.cts +44 -2
  370. package/dist/ui/input.d.ts +44 -2
  371. package/dist/ui/input.js +2 -1
  372. package/dist/ui/input.js.map +1 -0
  373. package/dist/ui/inputs/search-input.cjs +1 -1
  374. package/dist/ui/inputs/search-input.cjs.map +1 -1
  375. package/dist/ui/inputs/search-input.d.cts +3 -3
  376. package/dist/ui/inputs/search-input.d.ts +3 -3
  377. package/dist/ui/inputs/search-input.js +1 -1
  378. package/dist/ui/inputs/search-input.js.map +1 -1
  379. package/dist/ui/item.cjs +1 -1
  380. package/dist/ui/item.cjs.map +1 -1
  381. package/dist/ui/item.d.cts +15 -15
  382. package/dist/ui/item.d.ts +15 -15
  383. package/dist/ui/item.js +1 -1
  384. package/dist/ui/item.js.map +1 -1
  385. package/dist/ui/label.cjs +2 -1
  386. package/dist/ui/label.cjs.map +1 -0
  387. package/dist/ui/label.d.cts +2 -2
  388. package/dist/ui/label.d.ts +2 -2
  389. package/dist/ui/label.js +2 -1
  390. package/dist/ui/label.js.map +1 -0
  391. package/dist/ui/menubar.cjs +1 -1
  392. package/dist/ui/menubar.d.cts +17 -17
  393. package/dist/ui/menubar.d.ts +17 -17
  394. package/dist/ui/multi-select.cjs +1 -1
  395. package/dist/ui/multi-select.cjs.map +1 -1
  396. package/dist/ui/multi-select.d.cts +3 -3
  397. package/dist/ui/multi-select.d.ts +6 -7
  398. package/dist/ui/multi-select.js +1 -1
  399. package/dist/ui/multi-select.js.map +1 -1
  400. package/dist/ui/navigation-menu.cjs +1 -1
  401. package/dist/ui/navigation-menu.d.cts +9 -9
  402. package/dist/ui/navigation-menu.d.ts +9 -9
  403. package/dist/ui/pagination.cjs +1 -1
  404. package/dist/ui/pagination.d.cts +9 -9
  405. package/dist/ui/pagination.d.ts +9 -9
  406. package/dist/ui/pagination.js +1 -1
  407. package/dist/ui/popover.cjs +2 -1
  408. package/dist/ui/popover.cjs.map +1 -0
  409. package/dist/ui/popover.d.cts +6 -6
  410. package/dist/ui/popover.d.ts +6 -6
  411. package/dist/ui/popover.js +2 -1
  412. package/dist/ui/popover.js.map +1 -0
  413. package/dist/ui/progress.cjs +2 -1
  414. package/dist/ui/progress.cjs.map +1 -0
  415. package/dist/ui/progress.d.cts +2 -2
  416. package/dist/ui/progress.d.ts +2 -2
  417. package/dist/ui/progress.js +2 -1
  418. package/dist/ui/progress.js.map +1 -0
  419. package/dist/ui/radio-group.cjs +2 -1
  420. package/dist/ui/radio-group.cjs.map +1 -0
  421. package/dist/ui/radio-group.d.cts +3 -3
  422. package/dist/ui/radio-group.d.ts +3 -3
  423. package/dist/ui/radio-group.js +2 -1
  424. package/dist/ui/radio-group.js.map +1 -0
  425. package/dist/ui/resizable.cjs +2 -1
  426. package/dist/ui/resizable.cjs.map +1 -0
  427. package/dist/ui/resizable.d.cts +9 -9
  428. package/dist/ui/resizable.d.ts +9 -9
  429. package/dist/ui/resizable.js +2 -1
  430. package/dist/ui/resizable.js.map +1 -0
  431. package/dist/ui/scroll-area.cjs +1 -1
  432. package/dist/ui/scroll-area.d.cts +5 -5
  433. package/dist/ui/scroll-area.d.ts +5 -5
  434. package/dist/ui/scroll-area.js +1 -1
  435. package/dist/ui/select.cjs +2 -1
  436. package/dist/ui/select.cjs.map +1 -0
  437. package/dist/ui/select.d.cts +9 -9
  438. package/dist/ui/select.d.ts +9 -9
  439. package/dist/ui/select.js +2 -1
  440. package/dist/ui/select.js.map +1 -0
  441. package/dist/ui/separator.cjs +2 -1
  442. package/dist/ui/separator.cjs.map +1 -0
  443. package/dist/ui/separator.d.cts +2 -2
  444. package/dist/ui/separator.d.ts +2 -2
  445. package/dist/ui/separator.js +2 -1
  446. package/dist/ui/separator.js.map +1 -0
  447. package/dist/ui/sheet.cjs +2 -1
  448. package/dist/ui/sheet.cjs.map +1 -0
  449. package/dist/ui/sheet.d.cts +9 -9
  450. package/dist/ui/sheet.d.ts +9 -9
  451. package/dist/ui/sheet.js +2 -1
  452. package/dist/ui/sheet.js.map +1 -0
  453. package/dist/ui/skeleton.cjs +1 -1
  454. package/dist/ui/skeleton.d.cts +2 -2
  455. package/dist/ui/skeleton.d.ts +2 -2
  456. package/dist/ui/skeleton.js +1 -1
  457. package/dist/ui/slider.cjs +1 -1
  458. package/dist/ui/slider.d.cts +2 -2
  459. package/dist/ui/slider.d.ts +2 -2
  460. package/dist/ui/slider.js +1 -1
  461. package/dist/ui/sonner.cjs +1 -1
  462. package/dist/ui/sonner.d.cts +2 -2
  463. package/dist/ui/sonner.d.ts +2 -2
  464. package/dist/ui/spinner.cjs +2 -1
  465. package/dist/ui/spinner.cjs.map +1 -0
  466. package/dist/ui/spinner.d.cts +2 -2
  467. package/dist/ui/spinner.d.ts +2 -2
  468. package/dist/ui/spinner.js +2 -1
  469. package/dist/ui/spinner.js.map +1 -0
  470. package/dist/ui/switch.cjs +2 -1
  471. package/dist/ui/switch.cjs.map +1 -0
  472. package/dist/ui/switch.d.cts +2 -2
  473. package/dist/ui/switch.d.ts +2 -2
  474. package/dist/ui/switch.js +2 -1
  475. package/dist/ui/switch.js.map +1 -0
  476. package/dist/ui/table.cjs +1 -1
  477. package/dist/ui/table.d.cts +17 -17
  478. package/dist/ui/table.d.ts +17 -17
  479. package/dist/ui/table.js +1 -1
  480. package/dist/ui/tabs.cjs +1 -1
  481. package/dist/ui/tabs.d.cts +5 -5
  482. package/dist/ui/tabs.d.ts +5 -5
  483. package/dist/ui/textarea.cjs +2 -1
  484. package/dist/ui/textarea.cjs.map +1 -0
  485. package/dist/ui/textarea.d.cts +2 -2
  486. package/dist/ui/textarea.d.ts +2 -2
  487. package/dist/ui/textarea.js +2 -1
  488. package/dist/ui/textarea.js.map +1 -0
  489. package/dist/ui/toggle-group.cjs +1 -1
  490. package/dist/ui/toggle-group.cjs.map +1 -1
  491. package/dist/ui/toggle-group.d.cts +4 -4
  492. package/dist/ui/toggle-group.d.ts +4 -4
  493. package/dist/ui/toggle-group.js +1 -1
  494. package/dist/ui/toggle-group.js.map +1 -1
  495. package/dist/ui/toggle.cjs +1 -1
  496. package/dist/ui/toggle.d.cts +4 -4
  497. package/dist/ui/toggle.d.ts +4 -4
  498. package/dist/ui/tooltip.cjs +2 -1
  499. package/dist/ui/tooltip.cjs.map +1 -0
  500. package/dist/ui/tooltip.d.cts +5 -5
  501. package/dist/ui/tooltip.d.ts +5 -5
  502. package/dist/ui/tooltip.js +2 -1
  503. package/dist/ui/tooltip.js.map +1 -0
  504. package/package.json +1 -1
  505. package/dist/avatar-Hpj8lmux.js +0 -2
  506. package/dist/avatar-Hpj8lmux.js.map +0 -1
  507. package/dist/avatar-TyOphzGo.cjs +0 -2
  508. package/dist/avatar-TyOphzGo.cjs.map +0 -1
  509. package/dist/badge-BvKBYsIh.d.ts +0 -42
  510. package/dist/badge-CRpRXSuO.js +0 -2
  511. package/dist/badge-CRpRXSuO.js.map +0 -1
  512. package/dist/badge-KW7xu5Ca.cjs +0 -2
  513. package/dist/badge-KW7xu5Ca.cjs.map +0 -1
  514. package/dist/badge-Y-DJHIVI.d.cts +0 -42
  515. package/dist/button-C--DAN1D.cjs +0 -2
  516. package/dist/button-C--DAN1D.cjs.map +0 -1
  517. package/dist/button-LMMbL-uH.js +0 -2
  518. package/dist/button-LMMbL-uH.js.map +0 -1
  519. package/dist/calendar-4weBDnXz.cjs +0 -2
  520. package/dist/calendar-4weBDnXz.cjs.map +0 -1
  521. package/dist/calendar-DzPt7b6k.js +0 -2
  522. package/dist/calendar-DzPt7b6k.js.map +0 -1
  523. package/dist/checkbox-DLGDoU-1.js +0 -2
  524. package/dist/checkbox-DLGDoU-1.js.map +0 -1
  525. package/dist/checkbox-Dsq-MSbH.cjs +0 -2
  526. package/dist/checkbox-Dsq-MSbH.cjs.map +0 -1
  527. package/dist/chunk-350yNsax.cjs +0 -1
  528. package/dist/cms-layout-BCH4NroR.cjs +0 -2
  529. package/dist/cms-layout-tPwrgJZc.js +0 -2
  530. package/dist/command-2gUejA6g.js +0 -2
  531. package/dist/command-2gUejA6g.js.map +0 -1
  532. package/dist/command-CsP8a1Un.cjs +0 -2
  533. package/dist/command-CsP8a1Un.cjs.map +0 -1
  534. package/dist/date-BIqCFM1Z.js +0 -2
  535. package/dist/date-BIqCFM1Z.js.map +0 -1
  536. package/dist/date-D4NVl6C9.cjs +0 -2
  537. package/dist/date-D4NVl6C9.cjs.map +0 -1
  538. package/dist/dialog-BXkm3_Bk.d.ts +0 -90
  539. package/dist/dialog-BigPrWIj.cjs +0 -2
  540. package/dist/dialog-BigPrWIj.cjs.map +0 -1
  541. package/dist/dialog-CmutQ3rp.js +0 -2
  542. package/dist/dialog-CmutQ3rp.js.map +0 -1
  543. package/dist/dialog-DAl7wicp.d.cts +0 -90
  544. package/dist/dist-Cx5ufCdr.cjs +0 -2
  545. package/dist/dist-Cx5ufCdr.cjs.map +0 -1
  546. package/dist/dist-EPxjIRJp.js +0 -2
  547. package/dist/dist-EPxjIRJp.js.map +0 -1
  548. package/dist/drawer-B3qXaN5p.js +0 -2
  549. package/dist/drawer-B3qXaN5p.js.map +0 -1
  550. package/dist/drawer-BB8BZzDG.cjs +0 -2
  551. package/dist/drawer-BB8BZzDG.cjs.map +0 -1
  552. package/dist/dropdown-menu-CVh520yG.cjs +0 -2
  553. package/dist/dropdown-menu-CVh520yG.cjs.map +0 -1
  554. package/dist/dropdown-menu-DeHCVyby.js +0 -2
  555. package/dist/dropdown-menu-DeHCVyby.js.map +0 -1
  556. package/dist/field-BrlETeXX.cjs +0 -2
  557. package/dist/field-DpoKF1nY.js +0 -2
  558. package/dist/image-BpTuF_1w.js +0 -2
  559. package/dist/image-BpTuF_1w.js.map +0 -1
  560. package/dist/image-W_Yb0xTB.cjs +0 -2
  561. package/dist/image-W_Yb0xTB.cjs.map +0 -1
  562. package/dist/input-BBxY18n7.d.ts +0 -44
  563. package/dist/input-D59Pfu7U.d.cts +0 -44
  564. package/dist/input-DAfP6LZ7.js +0 -2
  565. package/dist/input-DAfP6LZ7.js.map +0 -1
  566. package/dist/input-WJ0DLHTR.cjs +0 -2
  567. package/dist/input-WJ0DLHTR.cjs.map +0 -1
  568. package/dist/label-B8cAG2kc.js +0 -2
  569. package/dist/label-B8cAG2kc.js.map +0 -1
  570. package/dist/label-CC6fXVbC.cjs +0 -2
  571. package/dist/label-CC6fXVbC.cjs.map +0 -1
  572. package/dist/payment-layout-DyILfyVG.cjs +0 -2
  573. package/dist/payment-layout-giaGvs8T.js +0 -2
  574. package/dist/popover-6233wU1s.js +0 -2
  575. package/dist/popover-6233wU1s.js.map +0 -1
  576. package/dist/popover-DBsC8Ltp.cjs +0 -2
  577. package/dist/popover-DBsC8Ltp.cjs.map +0 -1
  578. package/dist/progress-AYknlEgK.js +0 -2
  579. package/dist/progress-AYknlEgK.js.map +0 -1
  580. package/dist/progress-gvBqNiHp.cjs +0 -2
  581. package/dist/progress-gvBqNiHp.cjs.map +0 -1
  582. package/dist/radio-group-ImoBjpqZ.js +0 -2
  583. package/dist/radio-group-ImoBjpqZ.js.map +0 -1
  584. package/dist/radio-group-_TdMkv8w.cjs +0 -2
  585. package/dist/radio-group-_TdMkv8w.cjs.map +0 -1
  586. package/dist/resizable-C-M-mu6b.js +0 -2
  587. package/dist/resizable-C-M-mu6b.js.map +0 -1
  588. package/dist/resizable-sgpaHAb8.cjs +0 -2
  589. package/dist/resizable-sgpaHAb8.cjs.map +0 -1
  590. package/dist/search-modal-B-pzGcfP.cjs +0 -2
  591. package/dist/search-modal-b2AE5WEW.js +0 -2
  592. package/dist/select-CWLQHh8x.cjs +0 -2
  593. package/dist/select-CWLQHh8x.cjs.map +0 -1
  594. package/dist/select-CryLzZA0.js +0 -2
  595. package/dist/select-CryLzZA0.js.map +0 -1
  596. package/dist/separator-BM8hA4DP.js +0 -2
  597. package/dist/separator-BM8hA4DP.js.map +0 -1
  598. package/dist/separator-KuymG9g0.cjs +0 -2
  599. package/dist/separator-KuymG9g0.cjs.map +0 -1
  600. package/dist/sheet-CvKSi0UC.cjs +0 -2
  601. package/dist/sheet-CvKSi0UC.cjs.map +0 -1
  602. package/dist/sheet-DGXXYgWB.js +0 -2
  603. package/dist/sheet-DGXXYgWB.js.map +0 -1
  604. package/dist/sidebar-BDrsbzo5.js +0 -2
  605. package/dist/sidebar-BDrsbzo5.js.map +0 -1
  606. package/dist/sidebar-D5J2gcTw.cjs +0 -2
  607. package/dist/spinner-C1eamx3w.js +0 -2
  608. package/dist/spinner-C1eamx3w.js.map +0 -1
  609. package/dist/spinner-CFxorYEt.cjs +0 -2
  610. package/dist/spinner-CFxorYEt.cjs.map +0 -1
  611. package/dist/statistic-CYMqAYNc.js +0 -2
  612. package/dist/statistic-CYMqAYNc.js.map +0 -1
  613. package/dist/statistic-DDXilD7q.cjs +0 -2
  614. package/dist/statistic-DDXilD7q.cjs.map +0 -1
  615. package/dist/switch-BLHmdRq2.js +0 -2
  616. package/dist/switch-BLHmdRq2.js.map +0 -1
  617. package/dist/switch-DVfOV7wP.cjs +0 -2
  618. package/dist/switch-DVfOV7wP.cjs.map +0 -1
  619. package/dist/tables-CPKHe3k-.cjs +0 -4
  620. package/dist/tables-DWQytYNm.js +0 -4
  621. package/dist/tanstack-form-DatI41wz.cjs +0 -12
  622. package/dist/tanstack-form-DatI41wz.cjs.map +0 -1
  623. package/dist/tanstack-form-YVdm9V01.js +0 -12
  624. package/dist/tanstack-form-YVdm9V01.js.map +0 -1
  625. package/dist/text-editor-CvJN3nSL.cjs +0 -2
  626. package/dist/text-editor-WbS7pJJs.js +0 -2
  627. package/dist/textarea-Bp6VvhiA.js +0 -2
  628. package/dist/textarea-Bp6VvhiA.js.map +0 -1
  629. package/dist/textarea-Cc9CF8wD.cjs +0 -2
  630. package/dist/textarea-Cc9CF8wD.cjs.map +0 -1
  631. package/dist/tooltip-CBdoIzoM.cjs +0 -2
  632. package/dist/tooltip-CBdoIzoM.cjs.map +0 -1
  633. package/dist/tooltip-CVIl6Hln.js +0 -2
  634. package/dist/tooltip-CVIl6Hln.js.map +0 -1
  635. package/dist/types-BD1t0Bj8.cjs +0 -2
  636. package/dist/types-BD1t0Bj8.cjs.map +0 -1
  637. package/dist/types-BVSfF-1o.d.ts +0 -24
  638. package/dist/types-BZqffRVJ.js +0 -2
  639. package/dist/types-BZqffRVJ.js.map +0 -1
  640. package/dist/types-Cc_mLRAn.d.cts +0 -24
  641. package/dist/user-BSpgswEC.js +0 -2
  642. package/dist/user-BSpgswEC.js.map +0 -1
  643. package/dist/user-ii4FBhO1.cjs +0 -2
  644. package/dist/user-ii4FBhO1.cjs.map +0 -1
@@ -1 +1,2 @@
1
- "use client";import"../heading-Bz-hSatD.js";import"../paragraph-Cc13ZI4d.js";import"../close-C0PdZGxr.js";import"../dialog-CmutQ3rp.js";import{a as e,c as t,i as n,l as r,n as i,o as a,r as o,s,t as c}from"../command-2gUejA6g.js";export{c as Command,i as CommandDialog,o as CommandEmpty,n as CommandGroup,e as CommandInput,a as CommandItem,s as CommandList,t as CommandSeparator,r as CommandShortcut};
1
+ "use client";import{SearchIcon as e}from"lucide-react";import{cn as t}from"@customafk/react-toolkit/utils";import{jsx as n,jsxs as r}from"react/jsx-runtime";import{Dialog as i,DialogContent as a,DialogDescription as o,DialogHeader as s,DialogTitle as c}from"@/components/ui/dialog";import{Command as l}from"cmdk";function u({className:e,...r}){return n(l,{"data-slot":`command`,className:t(`flex size-full flex-col overflow-hidden rounded-md border-border-weak bg-popover text-text-positive`,e),...r})}function d({title:e=`Command Palette`,description:l=`Search for a command to run...`,children:d,className:f,showCloseButton:p=!0,...m}){return r(i,{...m,children:[r(s,{className:`sr-only`,children:[n(c,{children:e}),n(o,{children:l})]}),n(a,{className:t(`overflow-hidden p-0`,f),showCloseButton:p,children:n(u,{className:t(`**:[[cmdk-group-heading]]:text-text-positive-muted`,`**:data-[slot=command-input-wrapper]:h-12`,`**:[[cmdk-group-heading]]:px-2`,`**:[[cmdk-group-heading]]:font-medium`,`**:[[cmdk-group]]:px-2`,`[&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0`,`[&_[cmdk-input-wrapper]_svg]:size-5`,`**:[[cmdk-input]]:h-12`,`**:[[cmdk-item]]:px-2`,`**:[[cmdk-item]]:py-3`,`[&_[cmdk-item]_svg]:size-5`),children:d})})]})}function f({className:i,...a}){return r(`div`,{"data-slot":`command-input-wrapper`,className:`flex h-9 items-center gap-2 border-border-weak border-b px-3`,children:[n(e,{className:`size-4 shrink-0 opacity-50`}),n(l.Input,{"data-slot":`command-input`,className:t(`flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden`,`placeholder:text-text-positive-muted`,`disabled:cursor-not-allowed`,`disabled:opacity-50`,i),...a})]})}function p({className:e,...r}){return n(l.List,{"data-slot":`command-list`,className:t(`max-h-80 scroll-py-1 overflow-y-auto overflow-x-hidden`,e),...r})}function m({...e}){return n(l.Empty,{"data-slot":`command-empty`,className:`py-6 text-center text-sm`,...e})}function h({className:e,...r}){return n(l.Group,{"data-slot":`command-group`,className:t(`text-text-positive`,`overflow-hidden p-1`,`**:[[cmdk-group-heading]]:text-text-positive-weak`,`**:[[cmdk-group-heading]]:px-2`,`**:[[cmdk-group-heading]]:py-1.5`,`**:[[cmdk-group-heading]]:text-xs`,`**:[[cmdk-group-heading]]:font-medium`,e),...r})}function g({className:e,...r}){return n(l.Separator,{"data-slot":`command-separator`,className:t(`-mx-1 h-px bg-border-weak`,e),...r})}function _({className:e,...r}){return n(l.Item,{"data-slot":`command-item`,className:t(`relative flex cursor-pointer select-none items-center gap-2 rounded-md p-2.5 text-sm outline-hidden transition-all duration-300`,`active:ring-border`,`active:opacity-60`,`active:ring-4`,`data-[selected=true]:bg-muted-muted`,`data-[selected=true]:text-text-positive-strong`,`data-[disabled=true]:opacity-50`,`data-[disabled=true]:pointer-events-none`,`[&_svg]:shrink-0`,`[&_svg]:pointer-events-none`,`[&_svg:not([class*='size-'])]:size-4`,`[&_svg:not([class*='text-'])]:text-text-positive-muted`,e),...r})}function v({className:e,...r}){return n(`span`,{"data-slot":`command-shortcut`,className:t(`ml-auto text-text-positive-muted text-xs tracking-widest`,e),...r})}export{u as Command,d as CommandDialog,m as CommandEmpty,h as CommandGroup,f as CommandInput,_ as CommandItem,p as CommandList,g as CommandSeparator,v as CommandShortcut};
2
+ //# sourceMappingURL=command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command.js","names":["CommandPrimitive"],"sources":["../../packages/components/ui/command.tsx"],"sourcesContent":["'use client';\n\nimport { SearchIcon } from 'lucide-react';\n\nimport { cn } from '@customafk/react-toolkit/utils';\n\nimport { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from '@/components/ui/dialog';\n\nimport { Command as CommandPrimitive } from 'cmdk';\n\n/**\n * A cmdk-powered command palette for searching and executing commands.\n *\n * @example\n * ```tsx\n * import {\n * Command, CommandInput, CommandList, CommandEmpty,\n * CommandGroup, CommandItem,\n * } from '@customafk/lunas-ui/ui/command';\n *\n * <Command>\n * <CommandInput placeholder=\"Type a command…\" />\n * <CommandList>\n * <CommandEmpty>No results found.</CommandEmpty>\n * <CommandGroup heading=\"Suggestions\">\n * <CommandItem>Calendar</CommandItem>\n * <CommandItem>Search</CommandItem>\n * </CommandGroup>\n * </CommandList>\n * </Command>\n * ```\n */\nfunction Command({ className, ...props }: React.ComponentProps<typeof CommandPrimitive>) {\n return (\n <CommandPrimitive\n data-slot=\"command\"\n className={cn('flex size-full flex-col overflow-hidden rounded-md border-border-weak bg-popover text-text-positive', className)}\n {...props}\n />\n );\n}\n\n/**\n * A Command palette rendered inside a Dialog overlay.\n *\n * @param title - Accessible title for the dialog (screen-reader only).\n * @param description - Accessible description for the dialog (screen-reader only).\n * @param showCloseButton - Whether to show the built-in close button on the dialog.\n */\nfunction CommandDialog({\n title = 'Command Palette',\n description = 'Search for a command to run...',\n children,\n className,\n showCloseButton = true,\n ...props\n}: React.ComponentProps<typeof Dialog> & {\n title?: string;\n description?: string;\n className?: string;\n showCloseButton?: boolean;\n}) {\n return (\n <Dialog {...props}>\n <DialogHeader className=\"sr-only\">\n <DialogTitle>{title}</DialogTitle>\n <DialogDescription>{description}</DialogDescription>\n </DialogHeader>\n <DialogContent className={cn('overflow-hidden p-0', className)} showCloseButton={showCloseButton}>\n <Command\n className={cn(\n '**:[[cmdk-group-heading]]:text-text-positive-muted',\n '**:data-[slot=command-input-wrapper]:h-12',\n '**:[[cmdk-group-heading]]:px-2',\n '**:[[cmdk-group-heading]]:font-medium',\n '**:[[cmdk-group]]:px-2',\n '[&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0',\n '[&_[cmdk-input-wrapper]_svg]:size-5',\n '**:[[cmdk-input]]:h-12',\n '**:[[cmdk-item]]:px-2',\n '**:[[cmdk-item]]:py-3',\n '[&_[cmdk-item]_svg]:size-5'\n )}\n >\n {children}\n </Command>\n </DialogContent>\n </Dialog>\n );\n}\n\n/** Search input with a leading search icon that filters CommandItems in real time. */\nfunction CommandInput({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Input>) {\n return (\n <div data-slot=\"command-input-wrapper\" className=\"flex h-9 items-center gap-2 border-border-weak border-b px-3\">\n <SearchIcon className=\"size-4 shrink-0 opacity-50\" />\n <CommandPrimitive.Input\n data-slot=\"command-input\"\n className={cn(\n 'flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden',\n 'placeholder:text-text-positive-muted',\n 'disabled:cursor-not-allowed',\n 'disabled:opacity-50',\n className\n )}\n {...props}\n />\n </div>\n );\n}\n\n/** Scrollable list that renders filtered CommandGroups and CommandItems. */\nfunction CommandList({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.List>) {\n return <CommandPrimitive.List data-slot=\"command-list\" className={cn('max-h-80 scroll-py-1 overflow-y-auto overflow-x-hidden', className)} {...props} />;\n}\n\n/** Fallback message displayed when no CommandItems match the current search query. */\nfunction CommandEmpty({ ...props }: React.ComponentProps<typeof CommandPrimitive.Empty>) {\n return <CommandPrimitive.Empty data-slot=\"command-empty\" className=\"py-6 text-center text-sm\" {...props} />;\n}\n\n/** Groups CommandItems under an optional heading label. */\nfunction CommandGroup({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Group>) {\n return (\n <CommandPrimitive.Group\n data-slot=\"command-group\"\n className={cn(\n 'text-text-positive',\n 'overflow-hidden p-1',\n '**:[[cmdk-group-heading]]:text-text-positive-weak',\n '**:[[cmdk-group-heading]]:px-2',\n '**:[[cmdk-group-heading]]:py-1.5',\n '**:[[cmdk-group-heading]]:text-xs',\n '**:[[cmdk-group-heading]]:font-medium',\n className\n )}\n {...props}\n />\n );\n}\n\n/** Horizontal dividing line between groups in a CommandList. */\nfunction CommandSeparator({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Separator>) {\n return <CommandPrimitive.Separator data-slot=\"command-separator\" className={cn('-mx-1 h-px bg-border-weak', className)} {...props} />;\n}\n\n/** A selectable row inside a CommandGroup that is highlighted when active or hovered. */\nfunction CommandItem({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Item>) {\n return (\n <CommandPrimitive.Item\n data-slot=\"command-item\"\n className={cn(\n 'relative flex cursor-pointer select-none items-center gap-2 rounded-md p-2.5 text-sm outline-hidden transition-all duration-300',\n 'active:ring-border',\n 'active:opacity-60',\n 'active:ring-4',\n 'data-[selected=true]:bg-muted-muted',\n 'data-[selected=true]:text-text-positive-strong',\n 'data-[disabled=true]:opacity-50',\n 'data-[disabled=true]:pointer-events-none',\n '[&_svg]:shrink-0',\n '[&_svg]:pointer-events-none',\n \"[&_svg:not([class*='size-'])]:size-4\",\n \"[&_svg:not([class*='text-'])]:text-text-positive-muted\",\n className\n )}\n {...props}\n />\n );\n}\n\n/** Displays a keyboard shortcut hint aligned to the right of a CommandItem. */\nfunction CommandShortcut({ className, ...props }: React.ComponentProps<'span'>) {\n return <span data-slot=\"command-shortcut\" className={cn('ml-auto text-text-positive-muted text-xs tracking-widest', className)} {...props} />;\n}\n\nexport { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut };\n"],"mappings":"yTAgCA,SAAS,EAAQ,CAAE,YAAW,GAAG,GAAwD,CACvF,OACE,EAACA,EAAAA,CACC,YAAU,UACV,UAAW,EAAG,sGAAuG,EAAU,CAC/H,GAAI,GACJ,CAWN,SAAS,EAAc,CACrB,QAAQ,kBACR,cAAc,iCACd,WACA,YACA,kBAAkB,GAClB,GAAG,GAMF,CACD,OACE,EAAC,EAAA,CAAO,GAAI,YACV,EAAC,EAAA,CAAa,UAAU,oBACtB,EAAC,EAAA,CAAA,SAAa,EAAA,CAAoB,CAClC,EAAC,EAAA,CAAA,SAAmB,EAAA,CAAgC,CAAA,EACvC,CACf,EAAC,EAAA,CAAc,UAAW,EAAG,sBAAuB,EAAU,CAAmB,2BAC/E,EAAC,EAAA,CACC,UAAW,EACT,qDACA,4CACA,iCACA,wCACA,yBACA,oDACA,sCACA,yBACA,wBACA,wBACA,6BACD,CAEA,YACO,EACI,CAAA,EACT,CAKb,SAAS,EAAa,CAAE,YAAW,GAAG,GAA8D,CAClG,OACE,EAAC,MAAA,CAAI,YAAU,wBAAwB,UAAU,yEAC/C,EAAC,EAAA,CAAW,UAAU,6BAAA,CAA+B,CACrD,EAACA,EAAiB,MAAA,CAChB,YAAU,gBACV,UAAW,EACT,yEACA,uCACA,8BACA,sBACA,EACD,CACD,GAAI,GACJ,CAAA,EACE,CAKV,SAAS,EAAY,CAAE,YAAW,GAAG,GAA6D,CAChG,OAAO,EAACA,EAAiB,KAAA,CAAK,YAAU,eAAe,UAAW,EAAG,yDAA0D,EAAU,CAAE,GAAI,GAAS,CAI1J,SAAS,EAAa,CAAE,GAAG,GAA8D,CACvF,OAAO,EAACA,EAAiB,MAAA,CAAM,YAAU,gBAAgB,UAAU,2BAA2B,GAAI,GAAS,CAI7G,SAAS,EAAa,CAAE,YAAW,GAAG,GAA8D,CAClG,OACE,EAACA,EAAiB,MAAA,CAChB,YAAU,gBACV,UAAW,EACT,qBACA,sBACA,oDACA,iCACA,mCACA,oCACA,wCACA,EACD,CACD,GAAI,GACJ,CAKN,SAAS,EAAiB,CAAE,YAAW,GAAG,GAAkE,CAC1G,OAAO,EAACA,EAAiB,UAAA,CAAU,YAAU,oBAAoB,UAAW,EAAG,4BAA6B,EAAU,CAAE,GAAI,GAAS,CAIvI,SAAS,EAAY,CAAE,YAAW,GAAG,GAA6D,CAChG,OACE,EAACA,EAAiB,KAAA,CAChB,YAAU,eACV,UAAW,EACT,kIACA,qBACA,oBACA,gBACA,sCACA,iDACA,kCACA,2CACA,mBACA,8BACA,uCACA,yDACA,EACD,CACD,GAAI,GACJ,CAKN,SAAS,EAAgB,CAAE,YAAW,GAAG,GAAuC,CAC9E,OAAO,EAAC,OAAA,CAAK,YAAU,mBAAmB,UAAW,EAAG,2DAA4D,EAAU,CAAE,GAAI,GAAS"}
@@ -1,2 +1,2 @@
1
- "use client";const e=require(`../chunk-350yNsax.cjs`);let t=require(`lucide-react`),n=require(`@customafk/react-toolkit/utils`),r=require(`react/jsx-runtime`),i=require(`radix-ui`);function a({...e}){return(0,r.jsx)(i.ContextMenu.Root,{"data-slot":`context-menu`,...e})}function o({...e}){return(0,r.jsx)(i.ContextMenu.Trigger,{"data-slot":`context-menu-trigger`,...e})}function s({...e}){return(0,r.jsx)(i.ContextMenu.Group,{"data-slot":`context-menu-group`,...e})}function c({...e}){return(0,r.jsx)(i.ContextMenu.Portal,{"data-slot":`context-menu-portal`,...e})}function l({...e}){return(0,r.jsx)(i.ContextMenu.Sub,{"data-slot":`context-menu-sub`,...e})}function u({...e}){return(0,r.jsx)(i.ContextMenu.RadioGroup,{"data-slot":`context-menu-radio-group`,...e})}function d({className:e,inset:a,children:o,...s}){return(0,r.jsxs)(i.ContextMenu.SubTrigger,{"data-slot":`context-menu-sub-trigger`,"data-inset":a,className:(0,n.cn)(`focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...s,children:[o,(0,r.jsx)(t.ChevronRightIcon,{className:`ml-auto`})]})}function f({className:e,...t}){return(0,r.jsx)(i.ContextMenu.SubContent,{"data-slot":`context-menu-sub-content`,className:(0,n.cn)(`bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg`,e),...t})}function p({className:e,...t}){return(0,r.jsx)(i.ContextMenu.Portal,{children:(0,r.jsx)(i.ContextMenu.Content,{"data-slot":`context-menu-content`,className:(0,n.cn)(`bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md`,e),...t})})}function m({className:e,inset:t,variant:a=`default`,...o}){return(0,r.jsx)(i.ContextMenu.Item,{"data-slot":`context-menu-item`,"data-inset":t,"data-variant":a,className:(0,n.cn)(`focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...o})}function h({className:e,children:a,checked:o,...s}){return(0,r.jsxs)(i.ContextMenu.CheckboxItem,{"data-slot":`context-menu-checkbox-item`,className:(0,n.cn)(`focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),checked:o,...s,children:[(0,r.jsx)(`span`,{className:`pointer-events-none absolute left-2 flex size-3.5 items-center justify-center`,children:(0,r.jsx)(i.ContextMenu.ItemIndicator,{children:(0,r.jsx)(t.CheckIcon,{className:`size-4`})})}),a]})}function g({className:e,children:a,...o}){return(0,r.jsxs)(i.ContextMenu.RadioItem,{"data-slot":`context-menu-radio-item`,className:(0,n.cn)(`relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none`,`focus:bg-accent`,`focus:text-accent-foreground`,`data-[disabled]:pointer-events-none`,`data-[disabled]:opacity-50`,`[&_svg]:pointer-events-none`,`[&_svg]:shrink-0`,`[&_svg:not([class*='size-'])]:size-4`,e),...o,children:[(0,r.jsx)(`span`,{className:`pointer-events-none absolute left-2 flex size-3.5 items-center justify-center`,children:(0,r.jsx)(i.ContextMenu.ItemIndicator,{children:(0,r.jsx)(t.CircleIcon,{className:`size-2 fill-current`})})}),a]})}function _({className:e,inset:t,...a}){return(0,r.jsx)(i.ContextMenu.Label,{"data-slot":`context-menu-label`,"data-inset":t,className:(0,n.cn)(`text-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8`,e),...a})}function v({className:e,...t}){return(0,r.jsx)(i.ContextMenu.Separator,{"data-slot":`context-menu-separator`,className:(0,n.cn)(`bg-border -mx-1 my-1 h-px`,e),...t})}function y({className:e,...t}){return(0,r.jsx)(`span`,{"data-slot":`context-menu-shortcut`,className:(0,n.cn)(`text-muted-foreground ml-auto text-xs tracking-widest`,e),...t})}exports.ContextMenu=a,exports.ContextMenuCheckboxItem=h,exports.ContextMenuContent=p,exports.ContextMenuGroup=s,exports.ContextMenuItem=m,exports.ContextMenuLabel=_,exports.ContextMenuPortal=c,exports.ContextMenuRadioGroup=u,exports.ContextMenuRadioItem=g,exports.ContextMenuSeparator=v,exports.ContextMenuShortcut=y,exports.ContextMenuSub=l,exports.ContextMenuSubContent=f,exports.ContextMenuSubTrigger=d,exports.ContextMenuTrigger=o;
1
+ "use client";const e=require(`../chunk-Bmb41Sf3.cjs`);let t=require(`lucide-react`),n=require(`@customafk/react-toolkit/utils`),r=require(`react/jsx-runtime`),i=require(`radix-ui`);function a({...e}){return(0,r.jsx)(i.ContextMenu.Root,{"data-slot":`context-menu`,...e})}function o({...e}){return(0,r.jsx)(i.ContextMenu.Trigger,{"data-slot":`context-menu-trigger`,...e})}function s({...e}){return(0,r.jsx)(i.ContextMenu.Group,{"data-slot":`context-menu-group`,...e})}function c({...e}){return(0,r.jsx)(i.ContextMenu.Portal,{"data-slot":`context-menu-portal`,...e})}function l({...e}){return(0,r.jsx)(i.ContextMenu.Sub,{"data-slot":`context-menu-sub`,...e})}function u({...e}){return(0,r.jsx)(i.ContextMenu.RadioGroup,{"data-slot":`context-menu-radio-group`,...e})}function d({className:e,inset:a,children:o,...s}){return(0,r.jsxs)(i.ContextMenu.SubTrigger,{"data-slot":`context-menu-sub-trigger`,"data-inset":a,className:(0,n.cn)(`focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...s,children:[o,(0,r.jsx)(t.ChevronRightIcon,{className:`ml-auto`})]})}function f({className:e,...t}){return(0,r.jsx)(i.ContextMenu.SubContent,{"data-slot":`context-menu-sub-content`,className:(0,n.cn)(`bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg`,e),...t})}function p({className:e,...t}){return(0,r.jsx)(i.ContextMenu.Portal,{children:(0,r.jsx)(i.ContextMenu.Content,{"data-slot":`context-menu-content`,className:(0,n.cn)(`bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md`,e),...t})})}function m({className:e,inset:t,variant:a=`default`,...o}){return(0,r.jsx)(i.ContextMenu.Item,{"data-slot":`context-menu-item`,"data-inset":t,"data-variant":a,className:(0,n.cn)(`focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...o})}function h({className:e,children:a,checked:o,...s}){return(0,r.jsxs)(i.ContextMenu.CheckboxItem,{"data-slot":`context-menu-checkbox-item`,className:(0,n.cn)(`focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),checked:o,...s,children:[(0,r.jsx)(`span`,{className:`pointer-events-none absolute left-2 flex size-3.5 items-center justify-center`,children:(0,r.jsx)(i.ContextMenu.ItemIndicator,{children:(0,r.jsx)(t.CheckIcon,{className:`size-4`})})}),a]})}function g({className:e,children:a,...o}){return(0,r.jsxs)(i.ContextMenu.RadioItem,{"data-slot":`context-menu-radio-item`,className:(0,n.cn)(`relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none`,`focus:bg-accent`,`focus:text-accent-foreground`,`data-[disabled]:pointer-events-none`,`data-[disabled]:opacity-50`,`[&_svg]:pointer-events-none`,`[&_svg]:shrink-0`,`[&_svg:not([class*='size-'])]:size-4`,e),...o,children:[(0,r.jsx)(`span`,{className:`pointer-events-none absolute left-2 flex size-3.5 items-center justify-center`,children:(0,r.jsx)(i.ContextMenu.ItemIndicator,{children:(0,r.jsx)(t.CircleIcon,{className:`size-2 fill-current`})})}),a]})}function _({className:e,inset:t,...a}){return(0,r.jsx)(i.ContextMenu.Label,{"data-slot":`context-menu-label`,"data-inset":t,className:(0,n.cn)(`text-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8`,e),...a})}function v({className:e,...t}){return(0,r.jsx)(i.ContextMenu.Separator,{"data-slot":`context-menu-separator`,className:(0,n.cn)(`bg-border -mx-1 my-1 h-px`,e),...t})}function y({className:e,...t}){return(0,r.jsx)(`span`,{"data-slot":`context-menu-shortcut`,className:(0,n.cn)(`text-muted-foreground ml-auto text-xs tracking-widest`,e),...t})}exports.ContextMenu=a,exports.ContextMenuCheckboxItem=h,exports.ContextMenuContent=p,exports.ContextMenuGroup=s,exports.ContextMenuItem=m,exports.ContextMenuLabel=_,exports.ContextMenuPortal=c,exports.ContextMenuRadioGroup=u,exports.ContextMenuRadioItem=g,exports.ContextMenuSeparator=v,exports.ContextMenuShortcut=y,exports.ContextMenuSub=l,exports.ContextMenuSubContent=f,exports.ContextMenuSubTrigger=d,exports.ContextMenuTrigger=o;
2
2
  //# sourceMappingURL=context-menu.cjs.map
@@ -1,4 +1,4 @@
1
- import * as react35 from "react";
1
+ import * as react36 from "react";
2
2
  import { ContextMenu as ContextMenu$1 } from "radix-ui";
3
3
 
4
4
  //#region packages/components/ui/context-menu.d.ts
@@ -26,27 +26,27 @@ import { ContextMenu as ContextMenu$1 } from "radix-ui";
26
26
  */
27
27
  declare function ContextMenu({
28
28
  ...props
29
- }: React.ComponentProps<typeof ContextMenu$1.Root>): react35.JSX.Element;
29
+ }: React.ComponentProps<typeof ContextMenu$1.Root>): react36.JSX.Element;
30
30
  /** The area that listens for right-click to open the ContextMenu. */
31
31
  declare function ContextMenuTrigger({
32
32
  ...props
33
- }: React.ComponentProps<typeof ContextMenu$1.Trigger>): react35.JSX.Element;
33
+ }: React.ComponentProps<typeof ContextMenu$1.Trigger>): react36.JSX.Element;
34
34
  /** Groups related ContextMenuItems under a shared logical section. */
35
35
  declare function ContextMenuGroup({
36
36
  ...props
37
- }: React.ComponentProps<typeof ContextMenu$1.Group>): react35.JSX.Element;
37
+ }: React.ComponentProps<typeof ContextMenu$1.Group>): react36.JSX.Element;
38
38
  /** Portals ContextMenu content outside the current DOM hierarchy. */
39
39
  declare function ContextMenuPortal({
40
40
  ...props
41
- }: React.ComponentProps<typeof ContextMenu$1.Portal>): react35.JSX.Element;
41
+ }: React.ComponentProps<typeof ContextMenu$1.Portal>): react36.JSX.Element;
42
42
  /** Root container for a nested sub-menu inside a ContextMenu. */
43
43
  declare function ContextMenuSub({
44
44
  ...props
45
- }: React.ComponentProps<typeof ContextMenu$1.Sub>): react35.JSX.Element;
45
+ }: React.ComponentProps<typeof ContextMenu$1.Sub>): react36.JSX.Element;
46
46
  /** Groups ContextMenuRadioItems so only one can be selected at a time. */
47
47
  declare function ContextMenuRadioGroup({
48
48
  ...props
49
- }: React.ComponentProps<typeof ContextMenu$1.RadioGroup>): react35.JSX.Element;
49
+ }: React.ComponentProps<typeof ContextMenu$1.RadioGroup>): react36.JSX.Element;
50
50
  /**
51
51
  * Menu item that reveals a nested ContextMenuSubContent on hover or activation.
52
52
  *
@@ -59,17 +59,17 @@ declare function ContextMenuSubTrigger({
59
59
  ...props
60
60
  }: React.ComponentProps<typeof ContextMenu$1.SubTrigger> & {
61
61
  inset?: boolean;
62
- }): react35.JSX.Element;
62
+ }): react36.JSX.Element;
63
63
  /** Floating panel that contains the items of a nested ContextMenu sub-menu. */
64
64
  declare function ContextMenuSubContent({
65
65
  className,
66
66
  ...props
67
- }: React.ComponentProps<typeof ContextMenu$1.SubContent>): react35.JSX.Element;
67
+ }: React.ComponentProps<typeof ContextMenu$1.SubContent>): react36.JSX.Element;
68
68
  /** Animated floating panel that contains the context menu items. */
69
69
  declare function ContextMenuContent({
70
70
  className,
71
71
  ...props
72
- }: React.ComponentProps<typeof ContextMenu$1.Content>): react35.JSX.Element;
72
+ }: React.ComponentProps<typeof ContextMenu$1.Content>): react36.JSX.Element;
73
73
  /**
74
74
  * A single clickable row inside a ContextMenuContent.
75
75
  *
@@ -84,20 +84,20 @@ declare function ContextMenuItem({
84
84
  }: React.ComponentProps<typeof ContextMenu$1.Item> & {
85
85
  inset?: boolean;
86
86
  variant?: 'default' | 'destructive';
87
- }): react35.JSX.Element;
87
+ }): react36.JSX.Element;
88
88
  /** A checkable context menu item that displays a checkmark when selected. */
89
89
  declare function ContextMenuCheckboxItem({
90
90
  className,
91
91
  children,
92
92
  checked,
93
93
  ...props
94
- }: React.ComponentProps<typeof ContextMenu$1.CheckboxItem>): react35.JSX.Element;
94
+ }: React.ComponentProps<typeof ContextMenu$1.CheckboxItem>): react36.JSX.Element;
95
95
  /** A radio-button context menu item; shows a filled circle when selected. */
96
96
  declare function ContextMenuRadioItem({
97
97
  className,
98
98
  children,
99
99
  ...props
100
- }: React.ComponentProps<typeof ContextMenu$1.RadioItem>): react35.JSX.Element;
100
+ }: React.ComponentProps<typeof ContextMenu$1.RadioItem>): react36.JSX.Element;
101
101
  /**
102
102
  * Non-interactive label used to describe a group of context menu items.
103
103
  *
@@ -109,17 +109,17 @@ declare function ContextMenuLabel({
109
109
  ...props
110
110
  }: React.ComponentProps<typeof ContextMenu$1.Label> & {
111
111
  inset?: boolean;
112
- }): react35.JSX.Element;
112
+ }): react36.JSX.Element;
113
113
  /** Horizontal dividing line between groups of context menu items. */
114
114
  declare function ContextMenuSeparator({
115
115
  className,
116
116
  ...props
117
- }: React.ComponentProps<typeof ContextMenu$1.Separator>): react35.JSX.Element;
117
+ }: React.ComponentProps<typeof ContextMenu$1.Separator>): react36.JSX.Element;
118
118
  /** Displays a keyboard shortcut hint aligned to the right of a context menu item. */
119
119
  declare function ContextMenuShortcut({
120
120
  className,
121
121
  ...props
122
- }: React.ComponentProps<'span'>): react35.JSX.Element;
122
+ }: React.ComponentProps<'span'>): react36.JSX.Element;
123
123
  //#endregion
124
124
  export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger };
125
125
  //# sourceMappingURL=context-menu.d.cts.map
@@ -1,4 +1,4 @@
1
- import * as react220 from "react";
1
+ import * as react83 from "react";
2
2
  import { ContextMenu as ContextMenu$1 } from "radix-ui";
3
3
 
4
4
  //#region packages/components/ui/context-menu.d.ts
@@ -26,27 +26,27 @@ import { ContextMenu as ContextMenu$1 } from "radix-ui";
26
26
  */
27
27
  declare function ContextMenu({
28
28
  ...props
29
- }: React.ComponentProps<typeof ContextMenu$1.Root>): react220.JSX.Element;
29
+ }: React.ComponentProps<typeof ContextMenu$1.Root>): react83.JSX.Element;
30
30
  /** The area that listens for right-click to open the ContextMenu. */
31
31
  declare function ContextMenuTrigger({
32
32
  ...props
33
- }: React.ComponentProps<typeof ContextMenu$1.Trigger>): react220.JSX.Element;
33
+ }: React.ComponentProps<typeof ContextMenu$1.Trigger>): react83.JSX.Element;
34
34
  /** Groups related ContextMenuItems under a shared logical section. */
35
35
  declare function ContextMenuGroup({
36
36
  ...props
37
- }: React.ComponentProps<typeof ContextMenu$1.Group>): react220.JSX.Element;
37
+ }: React.ComponentProps<typeof ContextMenu$1.Group>): react83.JSX.Element;
38
38
  /** Portals ContextMenu content outside the current DOM hierarchy. */
39
39
  declare function ContextMenuPortal({
40
40
  ...props
41
- }: React.ComponentProps<typeof ContextMenu$1.Portal>): react220.JSX.Element;
41
+ }: React.ComponentProps<typeof ContextMenu$1.Portal>): react83.JSX.Element;
42
42
  /** Root container for a nested sub-menu inside a ContextMenu. */
43
43
  declare function ContextMenuSub({
44
44
  ...props
45
- }: React.ComponentProps<typeof ContextMenu$1.Sub>): react220.JSX.Element;
45
+ }: React.ComponentProps<typeof ContextMenu$1.Sub>): react83.JSX.Element;
46
46
  /** Groups ContextMenuRadioItems so only one can be selected at a time. */
47
47
  declare function ContextMenuRadioGroup({
48
48
  ...props
49
- }: React.ComponentProps<typeof ContextMenu$1.RadioGroup>): react220.JSX.Element;
49
+ }: React.ComponentProps<typeof ContextMenu$1.RadioGroup>): react83.JSX.Element;
50
50
  /**
51
51
  * Menu item that reveals a nested ContextMenuSubContent on hover or activation.
52
52
  *
@@ -59,17 +59,17 @@ declare function ContextMenuSubTrigger({
59
59
  ...props
60
60
  }: React.ComponentProps<typeof ContextMenu$1.SubTrigger> & {
61
61
  inset?: boolean;
62
- }): react220.JSX.Element;
62
+ }): react83.JSX.Element;
63
63
  /** Floating panel that contains the items of a nested ContextMenu sub-menu. */
64
64
  declare function ContextMenuSubContent({
65
65
  className,
66
66
  ...props
67
- }: React.ComponentProps<typeof ContextMenu$1.SubContent>): react220.JSX.Element;
67
+ }: React.ComponentProps<typeof ContextMenu$1.SubContent>): react83.JSX.Element;
68
68
  /** Animated floating panel that contains the context menu items. */
69
69
  declare function ContextMenuContent({
70
70
  className,
71
71
  ...props
72
- }: React.ComponentProps<typeof ContextMenu$1.Content>): react220.JSX.Element;
72
+ }: React.ComponentProps<typeof ContextMenu$1.Content>): react83.JSX.Element;
73
73
  /**
74
74
  * A single clickable row inside a ContextMenuContent.
75
75
  *
@@ -84,20 +84,20 @@ declare function ContextMenuItem({
84
84
  }: React.ComponentProps<typeof ContextMenu$1.Item> & {
85
85
  inset?: boolean;
86
86
  variant?: 'default' | 'destructive';
87
- }): react220.JSX.Element;
87
+ }): react83.JSX.Element;
88
88
  /** A checkable context menu item that displays a checkmark when selected. */
89
89
  declare function ContextMenuCheckboxItem({
90
90
  className,
91
91
  children,
92
92
  checked,
93
93
  ...props
94
- }: React.ComponentProps<typeof ContextMenu$1.CheckboxItem>): react220.JSX.Element;
94
+ }: React.ComponentProps<typeof ContextMenu$1.CheckboxItem>): react83.JSX.Element;
95
95
  /** A radio-button context menu item; shows a filled circle when selected. */
96
96
  declare function ContextMenuRadioItem({
97
97
  className,
98
98
  children,
99
99
  ...props
100
- }: React.ComponentProps<typeof ContextMenu$1.RadioItem>): react220.JSX.Element;
100
+ }: React.ComponentProps<typeof ContextMenu$1.RadioItem>): react83.JSX.Element;
101
101
  /**
102
102
  * Non-interactive label used to describe a group of context menu items.
103
103
  *
@@ -109,17 +109,17 @@ declare function ContextMenuLabel({
109
109
  ...props
110
110
  }: React.ComponentProps<typeof ContextMenu$1.Label> & {
111
111
  inset?: boolean;
112
- }): react220.JSX.Element;
112
+ }): react83.JSX.Element;
113
113
  /** Horizontal dividing line between groups of context menu items. */
114
114
  declare function ContextMenuSeparator({
115
115
  className,
116
116
  ...props
117
- }: React.ComponentProps<typeof ContextMenu$1.Separator>): react220.JSX.Element;
117
+ }: React.ComponentProps<typeof ContextMenu$1.Separator>): react83.JSX.Element;
118
118
  /** Displays a keyboard shortcut hint aligned to the right of a context menu item. */
119
119
  declare function ContextMenuShortcut({
120
120
  className,
121
121
  ...props
122
- }: React.ComponentProps<'span'>): react220.JSX.Element;
122
+ }: React.ComponentProps<'span'>): react83.JSX.Element;
123
123
  //#endregion
124
124
  export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger };
125
125
  //# sourceMappingURL=context-menu.d.ts.map
@@ -1 +1,2 @@
1
- "use client";require(`../heading-tGTqk3pA.cjs`),require(`../paragraph-DvTZvbzw.cjs`),require(`../close-Dlo1bI8x.cjs`);const e=require(`../dialog-BigPrWIj.cjs`);exports.Dialog=e.t,exports.DialogClose=e.n,exports.DialogContent=e.r,exports.DialogDescription=e.i,exports.DialogFooter=e.a,exports.DialogHeader=e.o,exports.DialogOverlay=e.s,exports.DialogPortal=e.c,exports.DialogTitle=e.l,exports.DialogTrigger=e.u;
1
+ "use client";const e=require(`../chunk-Bmb41Sf3.cjs`),t=require(`../heading-BX7ZVnVg.cjs`),n=require(`../paragraph-D0x3Jc6W.cjs`),r=require(`../close-Dflkky9q.cjs`);let i=require(`@customafk/react-toolkit/utils`),a=require(`react/jsx-runtime`),o=require(`radix-ui`);function s({...e}){return(0,a.jsx)(o.Dialog.Root,{"data-slot":`dialog`,...e})}function c({...e}){return(0,a.jsx)(o.Dialog.Trigger,{"data-slot":`dialog-trigger`,...e})}function l({...e}){return(0,a.jsx)(o.Dialog.Portal,{"data-slot":`dialog-portal`,...e})}function u({...e}){return(0,a.jsx)(o.Dialog.Close,{"data-slot":`dialog-close`,...e})}function d({className:e,...t}){return(0,a.jsx)(o.Dialog.Overlay,{"data-slot":`dialog-overlay`,className:(0,i.cn)(`fixed inset-0 z-50 bg-black/50`,`data-[state=open]:fade-in-0 data-[state=open]:animate-in`,`data-[state=closed]:fade-out-0 data-[state=closed]:animate-out`,e),...t})}function f({className:e,children:t,showCloseButton:n=!0,...s}){return(0,a.jsxs)(l,{children:[(0,a.jsx)(d,{}),(0,a.jsxs)(o.Dialog.Content,{"data-slot":`dialog-content`,className:(0,i.cn)(`fixed top-1/2 left-1/2 z-50 -translate-x-1/2 -translate-y-1/2`,`grid w-full max-w-[calc(100%-2rem)] bg-background`,`max-h-[85dvh] gap-4 rounded-2xl p-6 shadow-dialog outline-none duration-400`,`sm:max-w-lg`,`data-[state=open]:fade-in-0 data-[state=open]:zoom-in-80 data-[state=open]:animate-in`,`data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-80 data-[state=closed]:animate-out`,e),onOpenAutoFocus:e=>{e.preventDefault()},...s,children:[t,n&&(0,a.jsx)(o.Dialog.Close,{"data-slot":`dialog-close`,tabIndex:-1,asChild:!0,className:`absolute top-3 right-3`,children:(0,a.jsx)(r.t,{})})]})]})}function p({className:e,...t}){return(0,a.jsx)(`div`,{"data-slot":`dialog-header`,className:(0,i.cn)(`flex flex-col gap-2 text-center sm:text-left`,e),...t})}function m({className:e,...t}){return(0,a.jsx)(`div`,{"data-slot":`dialog-footer`,className:(0,i.cn)(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,e),...t})}function h({className:e,...n}){return(0,a.jsx)(o.Dialog.Title,{"data-slot":`dialog-title`,className:(0,i.cn)(t.t({level:`h3`}),e),...n})}function g({className:e,...t}){return(0,a.jsx)(o.Dialog.Description,{"data-slot":`dialog-description`,className:(0,i.cn)(n.n({variant:`muted`}),e),...t})}exports.Dialog=s,exports.DialogClose=u,exports.DialogContent=f,exports.DialogDescription=g,exports.DialogFooter=m,exports.DialogHeader=p,exports.DialogOverlay=d,exports.DialogPortal=l,exports.DialogTitle=h,exports.DialogTrigger=c;
2
+ //# sourceMappingURL=dialog.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dialog.cjs","names":["DialogPrimitive","CloseButton","headingVariants","paragraphVariants"],"sources":["../../packages/components/ui/dialog.tsx"],"sourcesContent":["'use client';\n\nimport { cn } from '@customafk/react-toolkit/utils';\n\nimport { Dialog as DialogPrimitive } from 'radix-ui';\nimport { headingVariants } from '../typography/heading';\nimport { paragraphVariants } from '../typography/paragraph';\nimport { CloseButton } from './buttons/close';\n\n/**\n * Accessible modal dialog built on Radix UI's Dialog primitives with animated overlay, close button, and responsive sizing.\n *\n * @example\n * ```tsx\n * import {\n * Dialog, DialogTrigger, DialogContent,\n * DialogHeader, DialogTitle, DialogDescription, DialogFooter,\n * } from '@customafk/lunas-ui/ui/dialog';\n * import { Button } from '@customafk/lunas-ui/ui/button';\n *\n * <Dialog>\n * <DialogTrigger asChild>\n * <Button>Open dialog</Button>\n * </DialogTrigger>\n * <DialogContent>\n * <DialogHeader>\n * <DialogTitle>Confirm action</DialogTitle>\n * <DialogDescription>This cannot be undone.</DialogDescription>\n * </DialogHeader>\n * <DialogFooter>\n * <Button variant=\"outline\">Cancel</Button>\n * <Button>Confirm</Button>\n * </DialogFooter>\n * </DialogContent>\n * </Dialog>\n * ```\n */\nfunction Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>) {\n return <DialogPrimitive.Root data-slot=\"dialog\" {...props} />;\n}\n\n/** Element that opens the dialog when clicked; typically wrapped with `asChild` around a `Button`. */\nfunction DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>) {\n return <DialogPrimitive.Trigger data-slot=\"dialog-trigger\" {...props} />;\n}\n\n/** Renders dialog overlay and content into a portal outside the normal React tree. */\nfunction DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>) {\n return <DialogPrimitive.Portal data-slot=\"dialog-portal\" {...props} />;\n}\n\n/** Button that closes the dialog; can be composed with `asChild` to use a custom element. */\nfunction DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>) {\n return <DialogPrimitive.Close data-slot=\"dialog-close\" {...props} />;\n}\n\n/** Semi-transparent backdrop rendered behind the dialog panel with fade-in/out animation. */\nfunction DialogOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>) {\n return (\n <DialogPrimitive.Overlay\n data-slot=\"dialog-overlay\"\n className={cn(\n 'fixed inset-0 z-50 bg-black/50',\n 'data-[state=open]:fade-in-0 data-[state=open]:animate-in',\n 'data-[state=closed]:fade-out-0 data-[state=closed]:animate-out',\n className\n )}\n {...props}\n />\n );\n}\n\n/**\n * Animated dialog panel centred on screen; includes `DialogOverlay` and an optional close button.\n *\n * @param showCloseButton - When `true` (default), renders a `CloseButton` in the top-right corner.\n */\nfunction DialogContent({\n className,\n children,\n showCloseButton = true,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Content> & {\n /** When `true` (default), renders an `×` close button fixed to the top-right corner of the panel. */\n showCloseButton?: boolean;\n}) {\n return (\n <DialogPortal>\n <DialogOverlay />\n <DialogPrimitive.Content\n data-slot=\"dialog-content\"\n className={cn(\n 'fixed top-1/2 left-1/2 z-50 -translate-x-1/2 -translate-y-1/2',\n 'grid w-full max-w-[calc(100%-2rem)] bg-background',\n 'max-h-[85dvh] gap-4 rounded-2xl p-6 shadow-dialog outline-none duration-400',\n 'sm:max-w-lg',\n 'data-[state=open]:fade-in-0 data-[state=open]:zoom-in-80 data-[state=open]:animate-in',\n 'data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-80 data-[state=closed]:animate-out',\n className\n )}\n onOpenAutoFocus={event => {\n // Prevents focus from shifting to the content when the dialog opens, which can cause layout shift if the content includes autofocusable elements.\n event.preventDefault();\n }}\n {...props}\n >\n {children}\n {showCloseButton && (\n <DialogPrimitive.Close data-slot=\"dialog-close\" tabIndex={-1} asChild className=\"absolute top-3 right-3\">\n <CloseButton />\n </DialogPrimitive.Close>\n )}\n </DialogPrimitive.Content>\n </DialogPortal>\n );\n}\n\n/** Layout wrapper for the dialog title and description, stacked vertically with left alignment on wider screens. */\nfunction DialogHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"dialog-header\" className={cn('flex flex-col gap-2 text-center sm:text-left', className)} {...props} />;\n}\n\n/** Layout wrapper for dialog action buttons, stacked on mobile and right-aligned in a row on wider screens. */\nfunction DialogFooter({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"dialog-footer\" className={cn('flex flex-col-reverse gap-2 sm:flex-row sm:justify-end', className)} {...props} />;\n}\n\n/** Accessible heading for the dialog panel, styled with the h3 heading variant and announced by screen readers. */\nfunction DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>) {\n return <DialogPrimitive.Title data-slot=\"dialog-title\" className={cn(headingVariants({ level: 'h3' }), className)} {...props} />;\n}\n\n/** Muted supporting text that describes the dialog's purpose; read by screen readers alongside the title. */\nfunction DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>) {\n return <DialogPrimitive.Description data-slot=\"dialog-description\" className={cn(paragraphVariants({ variant: 'muted' }), className)} {...props} />;\n}\n\nexport { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };\n"],"mappings":"0QAqCA,SAAS,EAAO,CAAE,GAAG,GAA4D,CAC/E,OAAO,EAAA,EAAA,KAACA,EAAAA,OAAgB,KAAA,CAAK,YAAU,SAAS,GAAI,GAAS,CAI/D,SAAS,EAAc,CAAE,GAAG,GAA+D,CACzF,OAAO,EAAA,EAAA,KAACA,EAAAA,OAAgB,QAAA,CAAQ,YAAU,iBAAiB,GAAI,GAAS,CAI1E,SAAS,EAAa,CAAE,GAAG,GAA8D,CACvF,OAAO,EAAA,EAAA,KAACA,EAAAA,OAAgB,OAAA,CAAO,YAAU,gBAAgB,GAAI,GAAS,CAIxE,SAAS,EAAY,CAAE,GAAG,GAA6D,CACrF,OAAO,EAAA,EAAA,KAACA,EAAAA,OAAgB,MAAA,CAAM,YAAU,eAAe,GAAI,GAAS,CAItE,SAAS,EAAc,CAAE,YAAW,GAAG,GAA+D,CACpG,OACE,EAAA,EAAA,KAACA,EAAAA,OAAgB,QAAA,CACf,YAAU,iBACV,WAAA,EAAA,EAAA,IACE,iCACA,2DACA,iEACA,EACD,CACD,GAAI,GACJ,CASN,SAAS,EAAc,CACrB,YACA,WACA,kBAAkB,GAClB,GAAG,GAIF,CACD,OACE,EAAA,EAAA,MAAC,EAAA,CAAA,SAAA,EACC,EAAA,EAAA,KAAC,EAAA,EAAA,CAAgB,EACjB,EAAA,EAAA,MAACA,EAAAA,OAAgB,QAAA,CACf,YAAU,iBACV,WAAA,EAAA,EAAA,IACE,gEACA,oDACA,8EACA,cACA,wFACA,iGACA,EACD,CACD,gBAAiB,GAAS,CAExB,EAAM,gBAAgB,EAExB,GAAI,YAEH,EACA,IACC,EAAA,EAAA,KAACA,EAAAA,OAAgB,MAAA,CAAM,YAAU,eAAe,SAAU,GAAI,QAAA,GAAQ,UAAU,mCAC9E,EAAA,EAAA,KAACC,EAAAA,EAAAA,EAAAA,CAAc,EACO,CAAA,EAEF,CAAA,CAAA,CACb,CAKnB,SAAS,EAAa,CAAE,YAAW,GAAG,GAAsC,CAC1E,OAAO,EAAA,EAAA,KAAC,MAAA,CAAI,YAAU,gBAAgB,WAAA,EAAA,EAAA,IAAc,+CAAgD,EAAU,CAAE,GAAI,GAAS,CAI/H,SAAS,EAAa,CAAE,YAAW,GAAG,GAAsC,CAC1E,OAAO,EAAA,EAAA,KAAC,MAAA,CAAI,YAAU,gBAAgB,WAAA,EAAA,EAAA,IAAc,yDAA0D,EAAU,CAAE,GAAI,GAAS,CAIzI,SAAS,EAAY,CAAE,YAAW,GAAG,GAA6D,CAChG,OAAO,EAAA,EAAA,KAACD,EAAAA,OAAgB,MAAA,CAAM,YAAU,eAAe,WAAA,EAAA,EAAA,IAAcE,EAAAA,EAAgB,CAAE,MAAO,KAAM,CAAC,CAAE,EAAU,CAAE,GAAI,GAAS,CAIlI,SAAS,EAAkB,CAAE,YAAW,GAAG,GAAmE,CAC5G,OAAO,EAAA,EAAA,KAACF,EAAAA,OAAgB,YAAA,CAAY,YAAU,qBAAqB,WAAA,EAAA,EAAA,IAAcG,EAAAA,EAAkB,CAAE,QAAS,QAAS,CAAC,CAAE,EAAU,CAAE,GAAI,GAAS"}
@@ -1,2 +1,90 @@
1
- import { a as DialogFooter, c as DialogPortal, i as DialogDescription, l as DialogTitle, n as DialogClose, o as DialogHeader, r as DialogContent, s as DialogOverlay, t as Dialog, u as DialogTrigger } from "../dialog-DAl7wicp.cjs";
2
- export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };
1
+ import * as react136 from "react";
2
+ import { Dialog as Dialog$1 } from "radix-ui";
3
+
4
+ //#region packages/components/ui/dialog.d.ts
5
+
6
+ /**
7
+ * Accessible modal dialog built on Radix UI's Dialog primitives with animated overlay, close button, and responsive sizing.
8
+ *
9
+ * @example
10
+ * ```tsx
11
+ * import {
12
+ * Dialog, DialogTrigger, DialogContent,
13
+ * DialogHeader, DialogTitle, DialogDescription, DialogFooter,
14
+ * } from '@customafk/lunas-ui/ui/dialog';
15
+ * import { Button } from '@customafk/lunas-ui/ui/button';
16
+ *
17
+ * <Dialog>
18
+ * <DialogTrigger asChild>
19
+ * <Button>Open dialog</Button>
20
+ * </DialogTrigger>
21
+ * <DialogContent>
22
+ * <DialogHeader>
23
+ * <DialogTitle>Confirm action</DialogTitle>
24
+ * <DialogDescription>This cannot be undone.</DialogDescription>
25
+ * </DialogHeader>
26
+ * <DialogFooter>
27
+ * <Button variant="outline">Cancel</Button>
28
+ * <Button>Confirm</Button>
29
+ * </DialogFooter>
30
+ * </DialogContent>
31
+ * </Dialog>
32
+ * ```
33
+ */
34
+ declare function Dialog({
35
+ ...props
36
+ }: React.ComponentProps<typeof Dialog$1.Root>): react136.JSX.Element;
37
+ /** Element that opens the dialog when clicked; typically wrapped with `asChild` around a `Button`. */
38
+ declare function DialogTrigger({
39
+ ...props
40
+ }: React.ComponentProps<typeof Dialog$1.Trigger>): react136.JSX.Element;
41
+ /** Renders dialog overlay and content into a portal outside the normal React tree. */
42
+ declare function DialogPortal({
43
+ ...props
44
+ }: React.ComponentProps<typeof Dialog$1.Portal>): react136.JSX.Element;
45
+ /** Button that closes the dialog; can be composed with `asChild` to use a custom element. */
46
+ declare function DialogClose({
47
+ ...props
48
+ }: React.ComponentProps<typeof Dialog$1.Close>): react136.JSX.Element;
49
+ /** Semi-transparent backdrop rendered behind the dialog panel with fade-in/out animation. */
50
+ declare function DialogOverlay({
51
+ className,
52
+ ...props
53
+ }: React.ComponentProps<typeof Dialog$1.Overlay>): react136.JSX.Element;
54
+ /**
55
+ * Animated dialog panel centred on screen; includes `DialogOverlay` and an optional close button.
56
+ *
57
+ * @param showCloseButton - When `true` (default), renders a `CloseButton` in the top-right corner.
58
+ */
59
+ declare function DialogContent({
60
+ className,
61
+ children,
62
+ showCloseButton,
63
+ ...props
64
+ }: React.ComponentProps<typeof Dialog$1.Content> & {
65
+ /** When `true` (default), renders an `×` close button fixed to the top-right corner of the panel. */
66
+ showCloseButton?: boolean;
67
+ }): react136.JSX.Element;
68
+ /** Layout wrapper for the dialog title and description, stacked vertically with left alignment on wider screens. */
69
+ declare function DialogHeader({
70
+ className,
71
+ ...props
72
+ }: React.ComponentProps<'div'>): react136.JSX.Element;
73
+ /** Layout wrapper for dialog action buttons, stacked on mobile and right-aligned in a row on wider screens. */
74
+ declare function DialogFooter({
75
+ className,
76
+ ...props
77
+ }: React.ComponentProps<'div'>): react136.JSX.Element;
78
+ /** Accessible heading for the dialog panel, styled with the h3 heading variant and announced by screen readers. */
79
+ declare function DialogTitle({
80
+ className,
81
+ ...props
82
+ }: React.ComponentProps<typeof Dialog$1.Title>): react136.JSX.Element;
83
+ /** Muted supporting text that describes the dialog's purpose; read by screen readers alongside the title. */
84
+ declare function DialogDescription({
85
+ className,
86
+ ...props
87
+ }: React.ComponentProps<typeof Dialog$1.Description>): react136.JSX.Element;
88
+ //#endregion
89
+ export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };
90
+ //# sourceMappingURL=dialog.d.cts.map
@@ -1,2 +1,90 @@
1
- import { a as DialogFooter, c as DialogPortal, i as DialogDescription, l as DialogTitle, n as DialogClose, o as DialogHeader, r as DialogContent, s as DialogOverlay, t as Dialog, u as DialogTrigger } from "../dialog-BXkm3_Bk.js";
2
- export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };
1
+ import * as react122 from "react";
2
+ import { Dialog as Dialog$1 } from "radix-ui";
3
+
4
+ //#region packages/components/ui/dialog.d.ts
5
+
6
+ /**
7
+ * Accessible modal dialog built on Radix UI's Dialog primitives with animated overlay, close button, and responsive sizing.
8
+ *
9
+ * @example
10
+ * ```tsx
11
+ * import {
12
+ * Dialog, DialogTrigger, DialogContent,
13
+ * DialogHeader, DialogTitle, DialogDescription, DialogFooter,
14
+ * } from '@customafk/lunas-ui/ui/dialog';
15
+ * import { Button } from '@customafk/lunas-ui/ui/button';
16
+ *
17
+ * <Dialog>
18
+ * <DialogTrigger asChild>
19
+ * <Button>Open dialog</Button>
20
+ * </DialogTrigger>
21
+ * <DialogContent>
22
+ * <DialogHeader>
23
+ * <DialogTitle>Confirm action</DialogTitle>
24
+ * <DialogDescription>This cannot be undone.</DialogDescription>
25
+ * </DialogHeader>
26
+ * <DialogFooter>
27
+ * <Button variant="outline">Cancel</Button>
28
+ * <Button>Confirm</Button>
29
+ * </DialogFooter>
30
+ * </DialogContent>
31
+ * </Dialog>
32
+ * ```
33
+ */
34
+ declare function Dialog({
35
+ ...props
36
+ }: React.ComponentProps<typeof Dialog$1.Root>): react122.JSX.Element;
37
+ /** Element that opens the dialog when clicked; typically wrapped with `asChild` around a `Button`. */
38
+ declare function DialogTrigger({
39
+ ...props
40
+ }: React.ComponentProps<typeof Dialog$1.Trigger>): react122.JSX.Element;
41
+ /** Renders dialog overlay and content into a portal outside the normal React tree. */
42
+ declare function DialogPortal({
43
+ ...props
44
+ }: React.ComponentProps<typeof Dialog$1.Portal>): react122.JSX.Element;
45
+ /** Button that closes the dialog; can be composed with `asChild` to use a custom element. */
46
+ declare function DialogClose({
47
+ ...props
48
+ }: React.ComponentProps<typeof Dialog$1.Close>): react122.JSX.Element;
49
+ /** Semi-transparent backdrop rendered behind the dialog panel with fade-in/out animation. */
50
+ declare function DialogOverlay({
51
+ className,
52
+ ...props
53
+ }: React.ComponentProps<typeof Dialog$1.Overlay>): react122.JSX.Element;
54
+ /**
55
+ * Animated dialog panel centred on screen; includes `DialogOverlay` and an optional close button.
56
+ *
57
+ * @param showCloseButton - When `true` (default), renders a `CloseButton` in the top-right corner.
58
+ */
59
+ declare function DialogContent({
60
+ className,
61
+ children,
62
+ showCloseButton,
63
+ ...props
64
+ }: React.ComponentProps<typeof Dialog$1.Content> & {
65
+ /** When `true` (default), renders an `×` close button fixed to the top-right corner of the panel. */
66
+ showCloseButton?: boolean;
67
+ }): react122.JSX.Element;
68
+ /** Layout wrapper for the dialog title and description, stacked vertically with left alignment on wider screens. */
69
+ declare function DialogHeader({
70
+ className,
71
+ ...props
72
+ }: React.ComponentProps<'div'>): react122.JSX.Element;
73
+ /** Layout wrapper for dialog action buttons, stacked on mobile and right-aligned in a row on wider screens. */
74
+ declare function DialogFooter({
75
+ className,
76
+ ...props
77
+ }: React.ComponentProps<'div'>): react122.JSX.Element;
78
+ /** Accessible heading for the dialog panel, styled with the h3 heading variant and announced by screen readers. */
79
+ declare function DialogTitle({
80
+ className,
81
+ ...props
82
+ }: React.ComponentProps<typeof Dialog$1.Title>): react122.JSX.Element;
83
+ /** Muted supporting text that describes the dialog's purpose; read by screen readers alongside the title. */
84
+ declare function DialogDescription({
85
+ className,
86
+ ...props
87
+ }: React.ComponentProps<typeof Dialog$1.Description>): react122.JSX.Element;
88
+ //#endregion
89
+ export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };
90
+ //# sourceMappingURL=dialog.d.ts.map
package/dist/ui/dialog.js CHANGED
@@ -1 +1,2 @@
1
- "use client";import"../heading-Bz-hSatD.js";import"../paragraph-Cc13ZI4d.js";import"../close-C0PdZGxr.js";import{a as e,c as t,i as n,l as r,n as i,o as a,r as o,s,t as c,u as l}from"../dialog-CmutQ3rp.js";export{c as Dialog,i as DialogClose,o as DialogContent,n as DialogDescription,e as DialogFooter,a as DialogHeader,s as DialogOverlay,t as DialogPortal,r as DialogTitle,l as DialogTrigger};
1
+ "use client";import{t as e}from"../heading-Bw3eo6IT.js";import{n as t}from"../paragraph-ESjXXqHU.js";import{t as n}from"../close-DrkwaVXK.js";import{cn as r}from"@customafk/react-toolkit/utils";import{jsx as i,jsxs as a}from"react/jsx-runtime";import{Dialog as o}from"radix-ui";function s({...e}){return i(o.Root,{"data-slot":`dialog`,...e})}function c({...e}){return i(o.Trigger,{"data-slot":`dialog-trigger`,...e})}function l({...e}){return i(o.Portal,{"data-slot":`dialog-portal`,...e})}function u({...e}){return i(o.Close,{"data-slot":`dialog-close`,...e})}function d({className:e,...t}){return i(o.Overlay,{"data-slot":`dialog-overlay`,className:r(`fixed inset-0 z-50 bg-black/50`,`data-[state=open]:fade-in-0 data-[state=open]:animate-in`,`data-[state=closed]:fade-out-0 data-[state=closed]:animate-out`,e),...t})}function f({className:e,children:t,showCloseButton:s=!0,...c}){return a(l,{children:[i(d,{}),a(o.Content,{"data-slot":`dialog-content`,className:r(`fixed top-1/2 left-1/2 z-50 -translate-x-1/2 -translate-y-1/2`,`grid w-full max-w-[calc(100%-2rem)] bg-background`,`max-h-[85dvh] gap-4 rounded-2xl p-6 shadow-dialog outline-none duration-400`,`sm:max-w-lg`,`data-[state=open]:fade-in-0 data-[state=open]:zoom-in-80 data-[state=open]:animate-in`,`data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-80 data-[state=closed]:animate-out`,e),onOpenAutoFocus:e=>{e.preventDefault()},...c,children:[t,s&&i(o.Close,{"data-slot":`dialog-close`,tabIndex:-1,asChild:!0,className:`absolute top-3 right-3`,children:i(n,{})})]})]})}function p({className:e,...t}){return i(`div`,{"data-slot":`dialog-header`,className:r(`flex flex-col gap-2 text-center sm:text-left`,e),...t})}function m({className:e,...t}){return i(`div`,{"data-slot":`dialog-footer`,className:r(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,e),...t})}function h({className:t,...n}){return i(o.Title,{"data-slot":`dialog-title`,className:r(e({level:`h3`}),t),...n})}function g({className:e,...n}){return i(o.Description,{"data-slot":`dialog-description`,className:r(t({variant:`muted`}),e),...n})}export{s as Dialog,u as DialogClose,f as DialogContent,g as DialogDescription,m as DialogFooter,p as DialogHeader,d as DialogOverlay,l as DialogPortal,h as DialogTitle,c as DialogTrigger};
2
+ //# sourceMappingURL=dialog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dialog.js","names":["DialogPrimitive"],"sources":["../../packages/components/ui/dialog.tsx"],"sourcesContent":["'use client';\n\nimport { cn } from '@customafk/react-toolkit/utils';\n\nimport { Dialog as DialogPrimitive } from 'radix-ui';\nimport { headingVariants } from '../typography/heading';\nimport { paragraphVariants } from '../typography/paragraph';\nimport { CloseButton } from './buttons/close';\n\n/**\n * Accessible modal dialog built on Radix UI's Dialog primitives with animated overlay, close button, and responsive sizing.\n *\n * @example\n * ```tsx\n * import {\n * Dialog, DialogTrigger, DialogContent,\n * DialogHeader, DialogTitle, DialogDescription, DialogFooter,\n * } from '@customafk/lunas-ui/ui/dialog';\n * import { Button } from '@customafk/lunas-ui/ui/button';\n *\n * <Dialog>\n * <DialogTrigger asChild>\n * <Button>Open dialog</Button>\n * </DialogTrigger>\n * <DialogContent>\n * <DialogHeader>\n * <DialogTitle>Confirm action</DialogTitle>\n * <DialogDescription>This cannot be undone.</DialogDescription>\n * </DialogHeader>\n * <DialogFooter>\n * <Button variant=\"outline\">Cancel</Button>\n * <Button>Confirm</Button>\n * </DialogFooter>\n * </DialogContent>\n * </Dialog>\n * ```\n */\nfunction Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>) {\n return <DialogPrimitive.Root data-slot=\"dialog\" {...props} />;\n}\n\n/** Element that opens the dialog when clicked; typically wrapped with `asChild` around a `Button`. */\nfunction DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>) {\n return <DialogPrimitive.Trigger data-slot=\"dialog-trigger\" {...props} />;\n}\n\n/** Renders dialog overlay and content into a portal outside the normal React tree. */\nfunction DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>) {\n return <DialogPrimitive.Portal data-slot=\"dialog-portal\" {...props} />;\n}\n\n/** Button that closes the dialog; can be composed with `asChild` to use a custom element. */\nfunction DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>) {\n return <DialogPrimitive.Close data-slot=\"dialog-close\" {...props} />;\n}\n\n/** Semi-transparent backdrop rendered behind the dialog panel with fade-in/out animation. */\nfunction DialogOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>) {\n return (\n <DialogPrimitive.Overlay\n data-slot=\"dialog-overlay\"\n className={cn(\n 'fixed inset-0 z-50 bg-black/50',\n 'data-[state=open]:fade-in-0 data-[state=open]:animate-in',\n 'data-[state=closed]:fade-out-0 data-[state=closed]:animate-out',\n className\n )}\n {...props}\n />\n );\n}\n\n/**\n * Animated dialog panel centred on screen; includes `DialogOverlay` and an optional close button.\n *\n * @param showCloseButton - When `true` (default), renders a `CloseButton` in the top-right corner.\n */\nfunction DialogContent({\n className,\n children,\n showCloseButton = true,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Content> & {\n /** When `true` (default), renders an `×` close button fixed to the top-right corner of the panel. */\n showCloseButton?: boolean;\n}) {\n return (\n <DialogPortal>\n <DialogOverlay />\n <DialogPrimitive.Content\n data-slot=\"dialog-content\"\n className={cn(\n 'fixed top-1/2 left-1/2 z-50 -translate-x-1/2 -translate-y-1/2',\n 'grid w-full max-w-[calc(100%-2rem)] bg-background',\n 'max-h-[85dvh] gap-4 rounded-2xl p-6 shadow-dialog outline-none duration-400',\n 'sm:max-w-lg',\n 'data-[state=open]:fade-in-0 data-[state=open]:zoom-in-80 data-[state=open]:animate-in',\n 'data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-80 data-[state=closed]:animate-out',\n className\n )}\n onOpenAutoFocus={event => {\n // Prevents focus from shifting to the content when the dialog opens, which can cause layout shift if the content includes autofocusable elements.\n event.preventDefault();\n }}\n {...props}\n >\n {children}\n {showCloseButton && (\n <DialogPrimitive.Close data-slot=\"dialog-close\" tabIndex={-1} asChild className=\"absolute top-3 right-3\">\n <CloseButton />\n </DialogPrimitive.Close>\n )}\n </DialogPrimitive.Content>\n </DialogPortal>\n );\n}\n\n/** Layout wrapper for the dialog title and description, stacked vertically with left alignment on wider screens. */\nfunction DialogHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"dialog-header\" className={cn('flex flex-col gap-2 text-center sm:text-left', className)} {...props} />;\n}\n\n/** Layout wrapper for dialog action buttons, stacked on mobile and right-aligned in a row on wider screens. */\nfunction DialogFooter({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"dialog-footer\" className={cn('flex flex-col-reverse gap-2 sm:flex-row sm:justify-end', className)} {...props} />;\n}\n\n/** Accessible heading for the dialog panel, styled with the h3 heading variant and announced by screen readers. */\nfunction DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>) {\n return <DialogPrimitive.Title data-slot=\"dialog-title\" className={cn(headingVariants({ level: 'h3' }), className)} {...props} />;\n}\n\n/** Muted supporting text that describes the dialog's purpose; read by screen readers alongside the title. */\nfunction DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>) {\n return <DialogPrimitive.Description data-slot=\"dialog-description\" className={cn(paragraphVariants({ variant: 'muted' }), className)} {...props} />;\n}\n\nexport { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };\n"],"mappings":"sRAqCA,SAAS,EAAO,CAAE,GAAG,GAA4D,CAC/E,OAAO,EAACA,EAAgB,KAAA,CAAK,YAAU,SAAS,GAAI,GAAS,CAI/D,SAAS,EAAc,CAAE,GAAG,GAA+D,CACzF,OAAO,EAACA,EAAgB,QAAA,CAAQ,YAAU,iBAAiB,GAAI,GAAS,CAI1E,SAAS,EAAa,CAAE,GAAG,GAA8D,CACvF,OAAO,EAACA,EAAgB,OAAA,CAAO,YAAU,gBAAgB,GAAI,GAAS,CAIxE,SAAS,EAAY,CAAE,GAAG,GAA6D,CACrF,OAAO,EAACA,EAAgB,MAAA,CAAM,YAAU,eAAe,GAAI,GAAS,CAItE,SAAS,EAAc,CAAE,YAAW,GAAG,GAA+D,CACpG,OACE,EAACA,EAAgB,QAAA,CACf,YAAU,iBACV,UAAW,EACT,iCACA,2DACA,iEACA,EACD,CACD,GAAI,GACJ,CASN,SAAS,EAAc,CACrB,YACA,WACA,kBAAkB,GAClB,GAAG,GAIF,CACD,OACE,EAAC,EAAA,CAAA,SAAA,CACC,EAAC,EAAA,EAAA,CAAgB,CACjB,EAACA,EAAgB,QAAA,CACf,YAAU,iBACV,UAAW,EACT,gEACA,oDACA,8EACA,cACA,wFACA,iGACA,EACD,CACD,gBAAiB,GAAS,CAExB,EAAM,gBAAgB,EAExB,GAAI,YAEH,EACA,GACC,EAACA,EAAgB,MAAA,CAAM,YAAU,eAAe,SAAU,GAAI,QAAA,GAAQ,UAAU,kCAC9E,EAAC,EAAA,EAAA,CAAc,EACO,CAAA,EAEF,CAAA,CAAA,CACb,CAKnB,SAAS,EAAa,CAAE,YAAW,GAAG,GAAsC,CAC1E,OAAO,EAAC,MAAA,CAAI,YAAU,gBAAgB,UAAW,EAAG,+CAAgD,EAAU,CAAE,GAAI,GAAS,CAI/H,SAAS,EAAa,CAAE,YAAW,GAAG,GAAsC,CAC1E,OAAO,EAAC,MAAA,CAAI,YAAU,gBAAgB,UAAW,EAAG,yDAA0D,EAAU,CAAE,GAAI,GAAS,CAIzI,SAAS,EAAY,CAAE,YAAW,GAAG,GAA6D,CAChG,OAAO,EAACA,EAAgB,MAAA,CAAM,YAAU,eAAe,UAAW,EAAG,EAAgB,CAAE,MAAO,KAAM,CAAC,CAAE,EAAU,CAAE,GAAI,GAAS,CAIlI,SAAS,EAAkB,CAAE,YAAW,GAAG,GAAmE,CAC5G,OAAO,EAACA,EAAgB,YAAA,CAAY,YAAU,qBAAqB,UAAW,EAAG,EAAkB,CAAE,QAAS,QAAS,CAAC,CAAE,EAAU,CAAE,GAAI,GAAS"}
@@ -1 +1,2 @@
1
- "use client";const e=require(`../drawer-BB8BZzDG.cjs`);exports.Drawer=e.t,exports.DrawerClose=e.n,exports.DrawerContent=e.r,exports.DrawerDescription=e.i,exports.DrawerFooter=e.a,exports.DrawerHeader=e.o,exports.DrawerOverlay=e.s,exports.DrawerPortal=e.c,exports.DrawerTitle=e.l,exports.DrawerTrigger=e.u;
1
+ "use client";const e=require(`../chunk-Bmb41Sf3.cjs`);let t=require(`@customafk/react-toolkit/utils`),n=require(`react/jsx-runtime`),r=require(`vaul`);function i({...e}){return(0,n.jsx)(r.Drawer.Root,{"data-slot":`drawer`,...e})}function a({...e}){return(0,n.jsx)(r.Drawer.Trigger,{"data-slot":`drawer-trigger`,...e})}function o({...e}){return(0,n.jsx)(r.Drawer.Portal,{"data-slot":`drawer-portal`,...e})}function s({...e}){return(0,n.jsx)(r.Drawer.Close,{"data-slot":`drawer-close`,...e})}function c({className:e,...i}){return(0,n.jsx)(r.Drawer.Overlay,{"data-slot":`drawer-overlay`,className:(0,t.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),...i})}function l({className:e,children:i,...a}){return(0,n.jsxs)(o,{"data-slot":`drawer-portal`,children:[(0,n.jsx)(c,{}),(0,n.jsxs)(r.Drawer.Content,{"data-slot":`drawer-content`,className:(0,t.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),...a,children:[(0,n.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`}),i]})]})}function u({className:e,...r}){return(0,n.jsx)(`div`,{"data-slot":`drawer-header`,className:(0,t.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),...r})}function d({className:e,...r}){return(0,n.jsx)(`div`,{"data-slot":`drawer-footer`,className:(0,t.cn)(`mt-auto flex flex-col gap-2 p-4`,e),...r})}function f({className:e,...i}){return(0,n.jsx)(r.Drawer.Title,{"data-slot":`drawer-title`,className:(0,t.cn)(`text-text-positive font-semibold`,e),...i})}function p({className:e,...i}){return(0,n.jsx)(r.Drawer.Description,{"data-slot":`drawer-description`,className:(0,t.cn)(`text-text-positive-weak text-sm`,e),...i})}exports.Drawer=i,exports.DrawerClose=s,exports.DrawerContent=l,exports.DrawerDescription=p,exports.DrawerFooter=d,exports.DrawerHeader=u,exports.DrawerOverlay=c,exports.DrawerPortal=o,exports.DrawerTitle=f,exports.DrawerTrigger=a;
2
+ //# sourceMappingURL=drawer.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drawer.cjs","names":["DrawerPrimitive"],"sources":["../../packages/components/ui/drawer.tsx"],"sourcesContent":["'use client';\nimport { cn } from '@customafk/react-toolkit/utils';\n\nimport { Drawer as DrawerPrimitive } from 'vaul';\n\n/**\n * Root provider for the Drawer — a vaul-powered slide-in panel supporting top, bottom, left, and right directions.\n *\n * @example\n * ```tsx\n * import { Drawer, DrawerTrigger, DrawerContent, DrawerHeader, DrawerTitle, DrawerDescription } from '@customafk/lunas-ui/ui/drawer';\n *\n * <Drawer>\n * <DrawerTrigger>Open Drawer</DrawerTrigger>\n * <DrawerContent>\n * <DrawerHeader>\n * <DrawerTitle>Confirm action</DrawerTitle>\n * <DrawerDescription>This action cannot be undone.</DrawerDescription>\n * </DrawerHeader>\n * </DrawerContent>\n * </Drawer>\n * ```\n */\nfunction Drawer({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>) {\n return <DrawerPrimitive.Root data-slot=\"drawer\" {...props} />;\n}\n\n/** Element that opens the Drawer when activated. */\nfunction DrawerTrigger({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Trigger>) {\n return <DrawerPrimitive.Trigger data-slot=\"drawer-trigger\" {...props} />;\n}\n\n/** Portals Drawer content outside the current DOM tree. */\nfunction DrawerPortal({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Portal>) {\n return <DrawerPrimitive.Portal data-slot=\"drawer-portal\" {...props} />;\n}\n\n/** Button that programmatically closes the Drawer. */\nfunction DrawerClose({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Close>) {\n return <DrawerPrimitive.Close data-slot=\"drawer-close\" {...props} />;\n}\n\n/** Dimmed backdrop rendered behind the Drawer panel. */\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\n/** The main Drawer panel; automatically positions itself based on the direction set on the root. */\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\n/** Padded header section at the top of the Drawer for the title and description. */\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\n/** Footer section pinned to the bottom of the Drawer, typically used for action buttons. */\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\n/** Accessible title element for the Drawer, announced by screen readers on open. */\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\n/** Accessible description element for the Drawer, providing supplemental context to the title. */\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"],"mappings":"uJAuBA,SAAS,EAAO,CAAE,GAAG,GAA4D,CAC/E,OAAO,EAAA,EAAA,KAACA,EAAAA,OAAgB,KAAA,CAAK,YAAU,SAAS,GAAI,GAAS,CAI/D,SAAS,EAAc,CAAE,GAAG,GAA+D,CACzF,OAAO,EAAA,EAAA,KAACA,EAAAA,OAAgB,QAAA,CAAQ,YAAU,iBAAiB,GAAI,GAAS,CAI1E,SAAS,EAAa,CAAE,GAAG,GAA8D,CACvF,OAAO,EAAA,EAAA,KAACA,EAAAA,OAAgB,OAAA,CAAO,YAAU,gBAAgB,GAAI,GAAS,CAIxE,SAAS,EAAY,CAAE,GAAG,GAA6D,CACrF,OAAO,EAAA,EAAA,KAACA,EAAAA,OAAgB,MAAA,CAAM,YAAU,eAAe,GAAI,GAAS,CAItE,SAAS,EAAc,CAAE,YAAW,GAAG,GAA+D,CACpG,OACE,EAAA,EAAA,KAACA,EAAAA,OAAgB,QAAA,CACf,YAAU,iBACV,WAAA,EAAA,EAAA,IACE,iCACA,+BACA,kCACA,8BACA,iCACA,EACD,CACD,GAAI,GACJ,CAKN,SAAS,EAAc,CAAE,YAAW,WAAU,GAAG,GAA+D,CAC9G,OACE,EAAA,EAAA,MAAC,EAAA,CAAa,YAAU,2BACtB,EAAA,EAAA,KAAC,EAAA,EAAA,CAAgB,EACjB,EAAA,EAAA,MAACA,EAAAA,OAAgB,QAAA,CACf,YAAU,iBACV,WAAA,EAAA,EAAA,IACE,iFAEA,6CACA,yCACA,yCACA,gDACA,gDAEA,gDACA,+CACA,4CACA,mDACA,mDAEA,+CACA,6CACA,2CACA,iDAEA,8CACA,2CACA,0CACA,gDACA,EACD,CACD,GAAI,aAEJ,EAAA,EAAA,KAAC,MAAA,CAAI,UAAU,mIAAA,CAAqI,CACnJ,EAAA,EACuB,CAAA,EACb,CAKnB,SAAS,EAAa,CAAE,YAAW,GAAG,GAAsC,CAC1E,OACE,EAAA,EAAA,KAAC,MAAA,CACC,YAAU,gBACV,WAAA,EAAA,EAAA,IACE,4BACA,0BACA,uEACA,oEACA,EACD,CACD,GAAI,GACJ,CAKN,SAAS,EAAa,CAAE,YAAW,GAAG,GAAsC,CAC1E,OAAO,EAAA,EAAA,KAAC,MAAA,CAAI,YAAU,gBAAgB,WAAA,EAAA,EAAA,IAAc,kCAAmC,EAAU,CAAE,GAAI,GAAS,CAIlH,SAAS,EAAY,CAAE,YAAW,GAAG,GAA6D,CAChG,OAAO,EAAA,EAAA,KAACA,EAAAA,OAAgB,MAAA,CAAM,YAAU,eAAe,WAAA,EAAA,EAAA,IAAc,mCAAoC,EAAU,CAAE,GAAI,GAAS,CAIpI,SAAS,EAAkB,CAAE,YAAW,GAAG,GAAmE,CAC5G,OAAO,EAAA,EAAA,KAACA,EAAAA,OAAgB,YAAA,CAAY,YAAU,qBAAqB,WAAA,EAAA,EAAA,IAAc,kCAAmC,EAAU,CAAE,GAAI,GAAS"}