@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,4 +1,4 @@
1
- import * as react63 from "react";
1
+ import * as react105 from "react";
2
2
  import { Drawer as Drawer$1 } from "vaul";
3
3
 
4
4
  //#region packages/components/ui/drawer.d.ts
@@ -23,50 +23,50 @@ import { Drawer as Drawer$1 } from "vaul";
23
23
  */
24
24
  declare function Drawer({
25
25
  ...props
26
- }: React.ComponentProps<typeof Drawer$1.Root>): react63.JSX.Element;
26
+ }: React.ComponentProps<typeof Drawer$1.Root>): react105.JSX.Element;
27
27
  /** Element that opens the Drawer when activated. */
28
28
  declare function DrawerTrigger({
29
29
  ...props
30
- }: React.ComponentProps<typeof Drawer$1.Trigger>): react63.JSX.Element;
30
+ }: React.ComponentProps<typeof Drawer$1.Trigger>): react105.JSX.Element;
31
31
  /** Portals Drawer content outside the current DOM tree. */
32
32
  declare function DrawerPortal({
33
33
  ...props
34
- }: React.ComponentProps<typeof Drawer$1.Portal>): react63.JSX.Element;
34
+ }: React.ComponentProps<typeof Drawer$1.Portal>): react105.JSX.Element;
35
35
  /** Button that programmatically closes the Drawer. */
36
36
  declare function DrawerClose({
37
37
  ...props
38
- }: React.ComponentProps<typeof Drawer$1.Close>): react63.JSX.Element;
38
+ }: React.ComponentProps<typeof Drawer$1.Close>): react105.JSX.Element;
39
39
  /** Dimmed backdrop rendered behind the Drawer panel. */
40
40
  declare function DrawerOverlay({
41
41
  className,
42
42
  ...props
43
- }: React.ComponentProps<typeof Drawer$1.Overlay>): react63.JSX.Element;
43
+ }: React.ComponentProps<typeof Drawer$1.Overlay>): react105.JSX.Element;
44
44
  /** The main Drawer panel; automatically positions itself based on the direction set on the root. */
45
45
  declare function DrawerContent({
46
46
  className,
47
47
  children,
48
48
  ...props
49
- }: React.ComponentProps<typeof Drawer$1.Content>): react63.JSX.Element;
49
+ }: React.ComponentProps<typeof Drawer$1.Content>): react105.JSX.Element;
50
50
  /** Padded header section at the top of the Drawer for the title and description. */
51
51
  declare function DrawerHeader({
52
52
  className,
53
53
  ...props
54
- }: React.ComponentProps<'div'>): react63.JSX.Element;
54
+ }: React.ComponentProps<'div'>): react105.JSX.Element;
55
55
  /** Footer section pinned to the bottom of the Drawer, typically used for action buttons. */
56
56
  declare function DrawerFooter({
57
57
  className,
58
58
  ...props
59
- }: React.ComponentProps<'div'>): react63.JSX.Element;
59
+ }: React.ComponentProps<'div'>): react105.JSX.Element;
60
60
  /** Accessible title element for the Drawer, announced by screen readers on open. */
61
61
  declare function DrawerTitle({
62
62
  className,
63
63
  ...props
64
- }: React.ComponentProps<typeof Drawer$1.Title>): react63.JSX.Element;
64
+ }: React.ComponentProps<typeof Drawer$1.Title>): react105.JSX.Element;
65
65
  /** Accessible description element for the Drawer, providing supplemental context to the title. */
66
66
  declare function DrawerDescription({
67
67
  className,
68
68
  ...props
69
- }: React.ComponentProps<typeof Drawer$1.Description>): react63.JSX.Element;
69
+ }: React.ComponentProps<typeof Drawer$1.Description>): react105.JSX.Element;
70
70
  //#endregion
71
71
  export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger };
72
72
  //# sourceMappingURL=drawer.d.cts.map
@@ -1,4 +1,4 @@
1
- import * as react90 from "react";
1
+ import * as react112 from "react";
2
2
  import { Drawer as Drawer$1 } from "vaul";
3
3
 
4
4
  //#region packages/components/ui/drawer.d.ts
@@ -23,50 +23,50 @@ import { Drawer as Drawer$1 } from "vaul";
23
23
  */
24
24
  declare function Drawer({
25
25
  ...props
26
- }: React.ComponentProps<typeof Drawer$1.Root>): react90.JSX.Element;
26
+ }: React.ComponentProps<typeof Drawer$1.Root>): react112.JSX.Element;
27
27
  /** Element that opens the Drawer when activated. */
28
28
  declare function DrawerTrigger({
29
29
  ...props
30
- }: React.ComponentProps<typeof Drawer$1.Trigger>): react90.JSX.Element;
30
+ }: React.ComponentProps<typeof Drawer$1.Trigger>): react112.JSX.Element;
31
31
  /** Portals Drawer content outside the current DOM tree. */
32
32
  declare function DrawerPortal({
33
33
  ...props
34
- }: React.ComponentProps<typeof Drawer$1.Portal>): react90.JSX.Element;
34
+ }: React.ComponentProps<typeof Drawer$1.Portal>): react112.JSX.Element;
35
35
  /** Button that programmatically closes the Drawer. */
36
36
  declare function DrawerClose({
37
37
  ...props
38
- }: React.ComponentProps<typeof Drawer$1.Close>): react90.JSX.Element;
38
+ }: React.ComponentProps<typeof Drawer$1.Close>): react112.JSX.Element;
39
39
  /** Dimmed backdrop rendered behind the Drawer panel. */
40
40
  declare function DrawerOverlay({
41
41
  className,
42
42
  ...props
43
- }: React.ComponentProps<typeof Drawer$1.Overlay>): react90.JSX.Element;
43
+ }: React.ComponentProps<typeof Drawer$1.Overlay>): react112.JSX.Element;
44
44
  /** The main Drawer panel; automatically positions itself based on the direction set on the root. */
45
45
  declare function DrawerContent({
46
46
  className,
47
47
  children,
48
48
  ...props
49
- }: React.ComponentProps<typeof Drawer$1.Content>): react90.JSX.Element;
49
+ }: React.ComponentProps<typeof Drawer$1.Content>): react112.JSX.Element;
50
50
  /** Padded header section at the top of the Drawer for the title and description. */
51
51
  declare function DrawerHeader({
52
52
  className,
53
53
  ...props
54
- }: React.ComponentProps<'div'>): react90.JSX.Element;
54
+ }: React.ComponentProps<'div'>): react112.JSX.Element;
55
55
  /** Footer section pinned to the bottom of the Drawer, typically used for action buttons. */
56
56
  declare function DrawerFooter({
57
57
  className,
58
58
  ...props
59
- }: React.ComponentProps<'div'>): react90.JSX.Element;
59
+ }: React.ComponentProps<'div'>): react112.JSX.Element;
60
60
  /** Accessible title element for the Drawer, announced by screen readers on open. */
61
61
  declare function DrawerTitle({
62
62
  className,
63
63
  ...props
64
- }: React.ComponentProps<typeof Drawer$1.Title>): react90.JSX.Element;
64
+ }: React.ComponentProps<typeof Drawer$1.Title>): react112.JSX.Element;
65
65
  /** Accessible description element for the Drawer, providing supplemental context to the title. */
66
66
  declare function DrawerDescription({
67
67
  className,
68
68
  ...props
69
- }: React.ComponentProps<typeof Drawer$1.Description>): react90.JSX.Element;
69
+ }: React.ComponentProps<typeof Drawer$1.Description>): react112.JSX.Element;
70
70
  //#endregion
71
71
  export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger };
72
72
  //# sourceMappingURL=drawer.d.ts.map
package/dist/ui/drawer.js CHANGED
@@ -1 +1,2 @@
1
- "use client";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"../drawer-B3qXaN5p.js";export{c as Drawer,i as DrawerClose,o as DrawerContent,n as DrawerDescription,e as DrawerFooter,a as DrawerHeader,s as DrawerOverlay,t as DrawerPortal,r as DrawerTitle,l as DrawerTrigger};
1
+ "use client";import{cn as e}from"@customafk/react-toolkit/utils";import{jsx as t,jsxs as n}from"react/jsx-runtime";import{Drawer as r}from"vaul";function i({...e}){return t(r.Root,{"data-slot":`drawer`,...e})}function a({...e}){return t(r.Trigger,{"data-slot":`drawer-trigger`,...e})}function o({...e}){return t(r.Portal,{"data-slot":`drawer-portal`,...e})}function s({...e}){return t(r.Close,{"data-slot":`drawer-close`,...e})}function c({className:n,...i}){return t(r.Overlay,{"data-slot":`drawer-overlay`,className:e(`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`,n),...i})}function l({className:i,children:a,...s}){return n(o,{"data-slot":`drawer-portal`,children:[t(c,{}),n(r.Content,{"data-slot":`drawer-content`,className:e(`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`,i),...s,children:[t(`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`}),a]})]})}function u({className:n,...r}){return t(`div`,{"data-slot":`drawer-header`,className:e(`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`,n),...r})}function d({className:n,...r}){return t(`div`,{"data-slot":`drawer-footer`,className:e(`mt-auto flex flex-col gap-2 p-4`,n),...r})}function f({className:n,...i}){return t(r.Title,{"data-slot":`drawer-title`,className:e(`text-text-positive font-semibold`,n),...i})}function p({className:n,...i}){return t(r.Description,{"data-slot":`drawer-description`,className:e(`text-text-positive-weak text-sm`,n),...i})}export{i as Drawer,s as DrawerClose,l as DrawerContent,p as DrawerDescription,d as DrawerFooter,u as DrawerHeader,c as DrawerOverlay,o as DrawerPortal,f as DrawerTitle,a as DrawerTrigger};
2
+ //# sourceMappingURL=drawer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drawer.js","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":"iJAuBA,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,+BACA,kCACA,8BACA,iCACA,EACD,CACD,GAAI,GACJ,CAKN,SAAS,EAAc,CAAE,YAAW,WAAU,GAAG,GAA+D,CAC9G,OACE,EAAC,EAAA,CAAa,YAAU,0BACtB,EAAC,EAAA,EAAA,CAAgB,CACjB,EAACA,EAAgB,QAAA,CACf,YAAU,iBACV,UAAW,EACT,iFAEA,6CACA,yCACA,yCACA,gDACA,gDAEA,gDACA,+CACA,4CACA,mDACA,mDAEA,+CACA,6CACA,2CACA,iDAEA,8CACA,2CACA,0CACA,gDACA,EACD,CACD,GAAI,YAEJ,EAAC,MAAA,CAAI,UAAU,mIAAA,CAAqI,CACnJ,EAAA,EACuB,CAAA,EACb,CAKnB,SAAS,EAAa,CAAE,YAAW,GAAG,GAAsC,CAC1E,OACE,EAAC,MAAA,CACC,YAAU,gBACV,UAAW,EACT,4BACA,0BACA,uEACA,oEACA,EACD,CACD,GAAI,GACJ,CAKN,SAAS,EAAa,CAAE,YAAW,GAAG,GAAsC,CAC1E,OAAO,EAAC,MAAA,CAAI,YAAU,gBAAgB,UAAW,EAAG,kCAAmC,EAAU,CAAE,GAAI,GAAS,CAIlH,SAAS,EAAY,CAAE,YAAW,GAAG,GAA6D,CAChG,OAAO,EAACA,EAAgB,MAAA,CAAM,YAAU,eAAe,UAAW,EAAG,mCAAoC,EAAU,CAAE,GAAI,GAAS,CAIpI,SAAS,EAAkB,CAAE,YAAW,GAAG,GAAmE,CAC5G,OAAO,EAACA,EAAgB,YAAA,CAAY,YAAU,qBAAqB,UAAW,EAAG,kCAAmC,EAAU,CAAE,GAAI,GAAS"}
@@ -1 +1,2 @@
1
- "use client";const e=require(`../dropdown-menu-CVh520yG.cjs`);exports.DropdownMenu=e.t,exports.DropdownMenuCheckboxItem=e.n,exports.DropdownMenuContent=e.r,exports.DropdownMenuGroup=e.i,exports.DropdownMenuItem=e.a,exports.DropdownMenuLabel=e.o,exports.DropdownMenuPortal=e.s,exports.DropdownMenuRadioGroup=e.c,exports.DropdownMenuRadioItem=e.l,exports.DropdownMenuSeparator=e.u,exports.DropdownMenuShortcut=e.d,exports.DropdownMenuSub=e.f,exports.DropdownMenuSubContent=e.p,exports.DropdownMenuSubTrigger=e.m,exports.DropdownMenuTrigger=e.h;
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.DropdownMenu.Root,{"data-slot":`dropdown-menu`,...e})}function o({...e}){return(0,r.jsx)(i.DropdownMenu.Portal,{"data-slot":`dropdown-menu-portal`,...e})}function s({...e}){return(0,r.jsx)(i.DropdownMenu.Trigger,{"data-slot":`dropdown-menu-trigger`,...e})}function c({className:e,sideOffset:t=4,align:a=`start`,...o}){return(0,r.jsx)(i.DropdownMenu.Portal,{children:(0,r.jsx)(i.DropdownMenu.Content,{"data-slot":`dropdown-menu-content`,sideOffset:t,align:a,className:(0,n.cn)(`bg-popover text-text-positive`,`z-50 min-w-32`,`overflow-y-auto overflow-x-hidden`,`rounded-md p-1.5 shadow-dropdown`,`max-h-(--radix-dropdown-menu-content-available-height)`,`origin-(--radix-dropdown-menu-content-transform-origin)`,`data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95`,`data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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`,e),...o})})}function l({...e}){return(0,r.jsx)(i.DropdownMenu.Group,{"data-slot":`dropdown-menu-group`,...e})}function u({className:e,inset:t,variant:a=`default`,...o}){return(0,r.jsx)(i.DropdownMenu.Item,{"data-slot":`dropdown-menu-item`,"data-inset":t,"data-variant":a,className:(0,n.cn)(`relative flex cursor-pointer select-none items-center gap-2 rounded-md px-2 py-2.5 text-sm outline-hidden transition-colors`,`focus:bg-muted-muted focus:text-text-positive-strong`,`data-inset:pl-8`,`data-disabled:pointer-events-none data-disabled:opacity-50`,`data-[variant=destructive]:text-danger`,`data-[variant=destructive]:focus:bg-danger-muted data-[variant=destructive]:focus:text-danger-strong`,`data-[variant=destructive]:*:[svg]:text-danger!`,`[&_svg]:pointer-events-none [&_svg]:shrink-0`,`[&_svg:not([class*='size-'])]:size-4`,`[&_svg:not([class*='text-'])]:text-text-positive-weak`,e),...o})}function d({className:e,children:a,checked:o,...s}){return(0,r.jsxs)(i.DropdownMenu.CheckboxItem,{"data-slot":`dropdown-menu-checkbox-item`,className:(0,n.cn)(`relative flex cursor-pointer select-none items-center gap-2 rounded-md py-2.5 pr-2 pl-8 text-sm outline-hidden transition-colors`,`focus:bg-muted-muted focus:text-text-positive-strong`,`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.DropdownMenu.ItemIndicator,{children:(0,r.jsx)(t.CheckIcon,{size:16})})}),a]})}function f({...e}){return(0,r.jsx)(i.DropdownMenu.RadioGroup,{"data-slot":`dropdown-menu-radio-group`,...e})}function p({className:e,children:a,...o}){return(0,r.jsxs)(i.DropdownMenu.RadioItem,{"data-slot":`dropdown-menu-radio-item`,className:(0,n.cn)(`relative flex cursor-pointer select-none items-center gap-2 rounded-md py-2.5 pr-2 pl-8 text-sm outline-hidden transition-colors`,`focus:bg-muted-muted focus:text-text-positive-strong`,`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.DropdownMenu.ItemIndicator,{children:(0,r.jsx)(t.CircleIcon,{className:`size-2 fill-current`})})}),a]})}function m({className:e,inset:t,...a}){return(0,r.jsx)(i.DropdownMenu.Label,{"data-slot":`dropdown-menu-label`,"data-inset":t,className:(0,n.cn)(`px-2 py-1.5 font-medium text-sm text-text-positive-weak data-inset:pl-8`,e),...a})}function h({className:e,...t}){return(0,r.jsx)(i.DropdownMenu.Separator,{"data-slot":`dropdown-menu-separator`,className:(0,n.cn)(`-mx-1 my-1 h-px bg-border-weak`,e),...t})}function g({className:e,...t}){return(0,r.jsx)(`span`,{"data-slot":`dropdown-menu-shortcut`,className:(0,n.cn)(`ml-auto text-xs text-text-positive-muted tracking-widest`,e),...t})}function _({...e}){return(0,r.jsx)(i.DropdownMenu.Sub,{"data-slot":`dropdown-menu-sub`,...e})}function v({className:e,inset:a,children:o,...s}){return(0,r.jsxs)(i.DropdownMenu.SubTrigger,{"data-slot":`dropdown-menu-sub-trigger`,"data-inset":a,className:(0,n.cn)(`flex cursor-pointer select-none items-center gap-2 rounded-md px-2 py-2.5 text-sm outline-hidden transition-colors`,`focus:bg-muted-muted focus:text-text-positive-strong`,`data-[state=open]:bg-muted-muted data-[state=open]:text-text-positive-strong`,`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 size-4`})]})}function y({className:e,...t}){return(0,r.jsx)(i.DropdownMenu.SubContent,{"data-slot":`dropdown-menu-sub-content`,className:(0,n.cn)(`bg-popover text-text-positive`,`z-50 min-w-32`,`overflow-y-auto overflow-x-hidden`,`origin-(--radix-dropdown-menu-content-transform-origin) rounded-md p-1.5 shadow-dropdown`,`data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95`,`data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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`,e),...t})}exports.DropdownMenu=a,exports.DropdownMenuCheckboxItem=d,exports.DropdownMenuContent=c,exports.DropdownMenuGroup=l,exports.DropdownMenuItem=u,exports.DropdownMenuLabel=m,exports.DropdownMenuPortal=o,exports.DropdownMenuRadioGroup=f,exports.DropdownMenuRadioItem=p,exports.DropdownMenuSeparator=h,exports.DropdownMenuShortcut=g,exports.DropdownMenuSub=_,exports.DropdownMenuSubContent=y,exports.DropdownMenuSubTrigger=v,exports.DropdownMenuTrigger=s;
2
+ //# sourceMappingURL=dropdown-menu.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dropdown-menu.cjs","names":["DropdownMenuPrimitive","CheckIcon","CircleIcon","ChevronRightIcon"],"sources":["../../packages/components/ui/dropdown-menu.tsx"],"sourcesContent":["'use client';\n\nimport { CheckIcon, ChevronRightIcon, CircleIcon } from 'lucide-react';\n\nimport { cn } from '@customafk/react-toolkit/utils';\n\nimport { DropdownMenu as DropdownMenuPrimitive } from 'radix-ui';\n\n/**\n * Root provider for the DropdownMenu — wraps all sub-components and controls open state.\n *\n * @example\n * ```tsx\n * import {\n * DropdownMenu, DropdownMenuTrigger, DropdownMenuContent,\n * DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator,\n * } from '@customafk/lunas-ui/ui/dropdown-menu';\n *\n * <DropdownMenu>\n * <DropdownMenuTrigger>Options</DropdownMenuTrigger>\n * <DropdownMenuContent>\n * <DropdownMenuLabel>My Account</DropdownMenuLabel>\n * <DropdownMenuSeparator />\n * <DropdownMenuItem>Profile</DropdownMenuItem>\n * <DropdownMenuItem variant=\"destructive\">Delete</DropdownMenuItem>\n * </DropdownMenuContent>\n * </DropdownMenu>\n * ```\n */\nfunction DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>) {\n return <DropdownMenuPrimitive.Root data-slot=\"dropdown-menu\" {...props} />;\n}\n\n/** Portals DropdownMenu content outside the current DOM hierarchy. */\nfunction DropdownMenuPortal({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>) {\n return <DropdownMenuPrimitive.Portal data-slot=\"dropdown-menu-portal\" {...props} />;\n}\n\n/** Element that opens the DropdownMenu when activated. */\nfunction DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>) {\n return <DropdownMenuPrimitive.Trigger data-slot=\"dropdown-menu-trigger\" {...props} />;\n}\n\n/** Animated floating panel that contains the dropdown items. */\nfunction DropdownMenuContent({ className, sideOffset = 4, align = 'start', ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Content>) {\n return (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n data-slot=\"dropdown-menu-content\"\n sideOffset={sideOffset}\n align={align}\n className={cn(\n 'bg-popover text-text-positive',\n 'z-50 min-w-32',\n 'overflow-y-auto overflow-x-hidden',\n 'rounded-md p-1.5 shadow-dropdown',\n 'max-h-(--radix-dropdown-menu-content-available-height)',\n 'origin-(--radix-dropdown-menu-content-transform-origin)',\n 'data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95',\n 'data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95',\n 'data-[side=bottom]:slide-in-from-top-2',\n 'data-[side=left]:slide-in-from-right-2',\n 'data-[side=right]:slide-in-from-left-2',\n 'data-[side=top]:slide-in-from-bottom-2',\n className\n )}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n );\n}\n\n/** Groups related DropdownMenuItems under a shared logical section. */\nfunction DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Group>) {\n return <DropdownMenuPrimitive.Group data-slot=\"dropdown-menu-group\" {...props} />;\n}\n\n/**\n * A single clickable row inside a DropdownMenuContent.\n *\n * @param inset - When true, adds left padding to align with items that have icons.\n * @param variant - Visual style: `'default'` or `'destructive'`.\n */\nfunction DropdownMenuItem({\n className,\n inset,\n variant = 'default',\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {\n inset?: boolean;\n variant?: 'default' | 'destructive';\n}) {\n return (\n <DropdownMenuPrimitive.Item\n data-slot=\"dropdown-menu-item\"\n data-inset={inset}\n data-variant={variant}\n className={cn(\n 'relative flex cursor-pointer select-none items-center gap-2 rounded-md px-2 py-2.5 text-sm outline-hidden transition-colors',\n 'focus:bg-muted-muted focus:text-text-positive-strong',\n 'data-inset:pl-8',\n 'data-disabled:pointer-events-none data-disabled:opacity-50',\n 'data-[variant=destructive]:text-danger',\n 'data-[variant=destructive]:focus:bg-danger-muted data-[variant=destructive]:focus:text-danger-strong',\n 'data-[variant=destructive]:*:[svg]:text-danger!',\n '[&_svg]:pointer-events-none [&_svg]:shrink-0',\n \"[&_svg:not([class*='size-'])]:size-4\",\n \"[&_svg:not([class*='text-'])]:text-text-positive-weak\",\n className\n )}\n {...props}\n />\n );\n}\n\n/** A checkable menu item that displays a checkmark when selected. */\nfunction DropdownMenuCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>) {\n return (\n <DropdownMenuPrimitive.CheckboxItem\n data-slot=\"dropdown-menu-checkbox-item\"\n className={cn(\n 'relative flex cursor-pointer select-none items-center gap-2 rounded-md py-2.5 pr-2 pl-8 text-sm outline-hidden transition-colors',\n 'focus:bg-muted-muted focus:text-text-positive-strong',\n 'data-disabled:pointer-events-none data-disabled:opacity-50',\n '[&_svg]:pointer-events-none [&_svg]:shrink-0',\n \"[&_svg:not([class*='size-'])]:size-4\",\n className\n )}\n checked={checked}\n {...props}\n >\n <span className=\"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <CheckIcon size={16} />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n );\n}\n\n/** Groups DropdownMenuRadioItems so only one can be selected at a time. */\nfunction DropdownMenuRadioGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>) {\n return <DropdownMenuPrimitive.RadioGroup data-slot=\"dropdown-menu-radio-group\" {...props} />;\n}\n\n/** A radio-button menu item; shows a filled circle when selected. */\nfunction DropdownMenuRadioItem({ className, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>) {\n return (\n <DropdownMenuPrimitive.RadioItem\n data-slot=\"dropdown-menu-radio-item\"\n className={cn(\n 'relative flex cursor-pointer select-none items-center gap-2 rounded-md py-2.5 pr-2 pl-8 text-sm outline-hidden transition-colors',\n 'focus:bg-muted-muted focus:text-text-positive-strong',\n 'data-disabled:pointer-events-none data-disabled:opacity-50',\n '[&_svg]:pointer-events-none [&_svg]:shrink-0',\n \"[&_svg:not([class*='size-'])]:size-4\",\n className\n )}\n {...props}\n >\n <span className=\"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <CircleIcon className=\"size-2 fill-current\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.RadioItem>\n );\n}\n\n/**\n * Non-interactive label used to describe a group of items.\n *\n * @param inset - When true, adds left padding to align with inset items.\n */\nfunction DropdownMenuLabel({\n className,\n inset,\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Label> & {\n inset?: boolean;\n}) {\n return (\n <DropdownMenuPrimitive.Label\n data-slot=\"dropdown-menu-label\"\n data-inset={inset}\n className={cn('px-2 py-1.5 font-medium text-sm text-text-positive-weak data-inset:pl-8', className)}\n {...props}\n />\n );\n}\n\n/** Horizontal dividing line between groups of dropdown items. */\nfunction DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>) {\n return <DropdownMenuPrimitive.Separator data-slot=\"dropdown-menu-separator\" className={cn('-mx-1 my-1 h-px bg-border-weak', className)} {...props} />;\n}\n\n/** Displays a keyboard shortcut hint aligned to the right of a menu item. */\nfunction DropdownMenuShortcut({ className, ...props }: React.ComponentProps<'span'>) {\n return <span data-slot=\"dropdown-menu-shortcut\" className={cn('ml-auto text-xs text-text-positive-muted tracking-widest', className)} {...props} />;\n}\n\n/** Root container for a nested sub-menu inside a DropdownMenu. */\nfunction DropdownMenuSub({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>) {\n return <DropdownMenuPrimitive.Sub data-slot=\"dropdown-menu-sub\" {...props} />;\n}\n\n/**\n * Menu item that reveals a nested DropdownMenuSubContent on hover or activation.\n *\n * @param inset - When true, adds left padding to align with inset items.\n */\nfunction DropdownMenuSubTrigger({\n className,\n inset,\n children,\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {\n inset?: boolean;\n}) {\n return (\n <DropdownMenuPrimitive.SubTrigger\n data-slot=\"dropdown-menu-sub-trigger\"\n data-inset={inset}\n className={cn(\n 'flex cursor-pointer select-none items-center gap-2 rounded-md px-2 py-2.5 text-sm outline-hidden transition-colors',\n 'focus:bg-muted-muted focus:text-text-positive-strong',\n 'data-[state=open]:bg-muted-muted data-[state=open]:text-text-positive-strong',\n 'data-inset:pl-8',\n '[&_svg]:pointer-events-none [&_svg]:shrink-0',\n \"[&_svg:not([class*='size-'])]:size-4\",\n className\n )}\n {...props}\n >\n {children}\n <ChevronRightIcon className=\"ml-auto size-4\" />\n </DropdownMenuPrimitive.SubTrigger>\n );\n}\n\n/** Floating panel that contains the items of a nested sub-menu. */\nfunction DropdownMenuSubContent({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>) {\n return (\n <DropdownMenuPrimitive.SubContent\n data-slot=\"dropdown-menu-sub-content\"\n className={cn(\n 'bg-popover text-text-positive',\n 'z-50 min-w-32',\n 'overflow-y-auto overflow-x-hidden',\n 'origin-(--radix-dropdown-menu-content-transform-origin) rounded-md p-1.5 shadow-dropdown',\n 'data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95',\n 'data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95',\n 'data-[side=bottom]:slide-in-from-top-2',\n 'data-[side=left]:slide-in-from-right-2',\n 'data-[side=right]:slide-in-from-left-2',\n 'data-[side=top]:slide-in-from-bottom-2',\n className\n )}\n {...props}\n />\n );\n}\n\nexport {\n DropdownMenu,\n DropdownMenuCheckboxItem,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuPortal,\n DropdownMenuRadioGroup,\n DropdownMenuRadioItem,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuTrigger,\n};\n"],"mappings":"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"}
@@ -1,4 +1,4 @@
1
- import * as react187 from "react";
1
+ import * as react121 from "react";
2
2
  import { DropdownMenu as DropdownMenu$1 } from "radix-ui";
3
3
 
4
4
  //#region packages/components/ui/dropdown-menu.d.ts
@@ -26,26 +26,26 @@ import { DropdownMenu as DropdownMenu$1 } from "radix-ui";
26
26
  */
27
27
  declare function DropdownMenu({
28
28
  ...props
29
- }: React.ComponentProps<typeof DropdownMenu$1.Root>): react187.JSX.Element;
29
+ }: React.ComponentProps<typeof DropdownMenu$1.Root>): react121.JSX.Element;
30
30
  /** Portals DropdownMenu content outside the current DOM hierarchy. */
31
31
  declare function DropdownMenuPortal({
32
32
  ...props
33
- }: React.ComponentProps<typeof DropdownMenu$1.Portal>): react187.JSX.Element;
33
+ }: React.ComponentProps<typeof DropdownMenu$1.Portal>): react121.JSX.Element;
34
34
  /** Element that opens the DropdownMenu when activated. */
35
35
  declare function DropdownMenuTrigger({
36
36
  ...props
37
- }: React.ComponentProps<typeof DropdownMenu$1.Trigger>): react187.JSX.Element;
37
+ }: React.ComponentProps<typeof DropdownMenu$1.Trigger>): react121.JSX.Element;
38
38
  /** Animated floating panel that contains the dropdown items. */
39
39
  declare function DropdownMenuContent({
40
40
  className,
41
41
  sideOffset,
42
42
  align,
43
43
  ...props
44
- }: React.ComponentProps<typeof DropdownMenu$1.Content>): react187.JSX.Element;
44
+ }: React.ComponentProps<typeof DropdownMenu$1.Content>): react121.JSX.Element;
45
45
  /** Groups related DropdownMenuItems under a shared logical section. */
46
46
  declare function DropdownMenuGroup({
47
47
  ...props
48
- }: React.ComponentProps<typeof DropdownMenu$1.Group>): react187.JSX.Element;
48
+ }: React.ComponentProps<typeof DropdownMenu$1.Group>): react121.JSX.Element;
49
49
  /**
50
50
  * A single clickable row inside a DropdownMenuContent.
51
51
  *
@@ -60,24 +60,24 @@ declare function DropdownMenuItem({
60
60
  }: React.ComponentProps<typeof DropdownMenu$1.Item> & {
61
61
  inset?: boolean;
62
62
  variant?: 'default' | 'destructive';
63
- }): react187.JSX.Element;
63
+ }): react121.JSX.Element;
64
64
  /** A checkable menu item that displays a checkmark when selected. */
65
65
  declare function DropdownMenuCheckboxItem({
66
66
  className,
67
67
  children,
68
68
  checked,
69
69
  ...props
70
- }: React.ComponentProps<typeof DropdownMenu$1.CheckboxItem>): react187.JSX.Element;
70
+ }: React.ComponentProps<typeof DropdownMenu$1.CheckboxItem>): react121.JSX.Element;
71
71
  /** Groups DropdownMenuRadioItems so only one can be selected at a time. */
72
72
  declare function DropdownMenuRadioGroup({
73
73
  ...props
74
- }: React.ComponentProps<typeof DropdownMenu$1.RadioGroup>): react187.JSX.Element;
74
+ }: React.ComponentProps<typeof DropdownMenu$1.RadioGroup>): react121.JSX.Element;
75
75
  /** A radio-button menu item; shows a filled circle when selected. */
76
76
  declare function DropdownMenuRadioItem({
77
77
  className,
78
78
  children,
79
79
  ...props
80
- }: React.ComponentProps<typeof DropdownMenu$1.RadioItem>): react187.JSX.Element;
80
+ }: React.ComponentProps<typeof DropdownMenu$1.RadioItem>): react121.JSX.Element;
81
81
  /**
82
82
  * Non-interactive label used to describe a group of items.
83
83
  *
@@ -89,21 +89,21 @@ declare function DropdownMenuLabel({
89
89
  ...props
90
90
  }: React.ComponentProps<typeof DropdownMenu$1.Label> & {
91
91
  inset?: boolean;
92
- }): react187.JSX.Element;
92
+ }): react121.JSX.Element;
93
93
  /** Horizontal dividing line between groups of dropdown items. */
94
94
  declare function DropdownMenuSeparator({
95
95
  className,
96
96
  ...props
97
- }: React.ComponentProps<typeof DropdownMenu$1.Separator>): react187.JSX.Element;
97
+ }: React.ComponentProps<typeof DropdownMenu$1.Separator>): react121.JSX.Element;
98
98
  /** Displays a keyboard shortcut hint aligned to the right of a menu item. */
99
99
  declare function DropdownMenuShortcut({
100
100
  className,
101
101
  ...props
102
- }: React.ComponentProps<'span'>): react187.JSX.Element;
102
+ }: React.ComponentProps<'span'>): react121.JSX.Element;
103
103
  /** Root container for a nested sub-menu inside a DropdownMenu. */
104
104
  declare function DropdownMenuSub({
105
105
  ...props
106
- }: React.ComponentProps<typeof DropdownMenu$1.Sub>): react187.JSX.Element;
106
+ }: React.ComponentProps<typeof DropdownMenu$1.Sub>): react121.JSX.Element;
107
107
  /**
108
108
  * Menu item that reveals a nested DropdownMenuSubContent on hover or activation.
109
109
  *
@@ -116,12 +116,12 @@ declare function DropdownMenuSubTrigger({
116
116
  ...props
117
117
  }: React.ComponentProps<typeof DropdownMenu$1.SubTrigger> & {
118
118
  inset?: boolean;
119
- }): react187.JSX.Element;
119
+ }): react121.JSX.Element;
120
120
  /** Floating panel that contains the items of a nested sub-menu. */
121
121
  declare function DropdownMenuSubContent({
122
122
  className,
123
123
  ...props
124
- }: React.ComponentProps<typeof DropdownMenu$1.SubContent>): react187.JSX.Element;
124
+ }: React.ComponentProps<typeof DropdownMenu$1.SubContent>): react121.JSX.Element;
125
125
  //#endregion
126
126
  export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger };
127
127
  //# sourceMappingURL=dropdown-menu.d.cts.map
@@ -1,4 +1,4 @@
1
- import * as react280 from "react";
1
+ import * as react138 from "react";
2
2
  import { DropdownMenu as DropdownMenu$1 } from "radix-ui";
3
3
 
4
4
  //#region packages/components/ui/dropdown-menu.d.ts
@@ -26,26 +26,26 @@ import { DropdownMenu as DropdownMenu$1 } from "radix-ui";
26
26
  */
27
27
  declare function DropdownMenu({
28
28
  ...props
29
- }: React.ComponentProps<typeof DropdownMenu$1.Root>): react280.JSX.Element;
29
+ }: React.ComponentProps<typeof DropdownMenu$1.Root>): react138.JSX.Element;
30
30
  /** Portals DropdownMenu content outside the current DOM hierarchy. */
31
31
  declare function DropdownMenuPortal({
32
32
  ...props
33
- }: React.ComponentProps<typeof DropdownMenu$1.Portal>): react280.JSX.Element;
33
+ }: React.ComponentProps<typeof DropdownMenu$1.Portal>): react138.JSX.Element;
34
34
  /** Element that opens the DropdownMenu when activated. */
35
35
  declare function DropdownMenuTrigger({
36
36
  ...props
37
- }: React.ComponentProps<typeof DropdownMenu$1.Trigger>): react280.JSX.Element;
37
+ }: React.ComponentProps<typeof DropdownMenu$1.Trigger>): react138.JSX.Element;
38
38
  /** Animated floating panel that contains the dropdown items. */
39
39
  declare function DropdownMenuContent({
40
40
  className,
41
41
  sideOffset,
42
42
  align,
43
43
  ...props
44
- }: React.ComponentProps<typeof DropdownMenu$1.Content>): react280.JSX.Element;
44
+ }: React.ComponentProps<typeof DropdownMenu$1.Content>): react138.JSX.Element;
45
45
  /** Groups related DropdownMenuItems under a shared logical section. */
46
46
  declare function DropdownMenuGroup({
47
47
  ...props
48
- }: React.ComponentProps<typeof DropdownMenu$1.Group>): react280.JSX.Element;
48
+ }: React.ComponentProps<typeof DropdownMenu$1.Group>): react138.JSX.Element;
49
49
  /**
50
50
  * A single clickable row inside a DropdownMenuContent.
51
51
  *
@@ -60,24 +60,24 @@ declare function DropdownMenuItem({
60
60
  }: React.ComponentProps<typeof DropdownMenu$1.Item> & {
61
61
  inset?: boolean;
62
62
  variant?: 'default' | 'destructive';
63
- }): react280.JSX.Element;
63
+ }): react138.JSX.Element;
64
64
  /** A checkable menu item that displays a checkmark when selected. */
65
65
  declare function DropdownMenuCheckboxItem({
66
66
  className,
67
67
  children,
68
68
  checked,
69
69
  ...props
70
- }: React.ComponentProps<typeof DropdownMenu$1.CheckboxItem>): react280.JSX.Element;
70
+ }: React.ComponentProps<typeof DropdownMenu$1.CheckboxItem>): react138.JSX.Element;
71
71
  /** Groups DropdownMenuRadioItems so only one can be selected at a time. */
72
72
  declare function DropdownMenuRadioGroup({
73
73
  ...props
74
- }: React.ComponentProps<typeof DropdownMenu$1.RadioGroup>): react280.JSX.Element;
74
+ }: React.ComponentProps<typeof DropdownMenu$1.RadioGroup>): react138.JSX.Element;
75
75
  /** A radio-button menu item; shows a filled circle when selected. */
76
76
  declare function DropdownMenuRadioItem({
77
77
  className,
78
78
  children,
79
79
  ...props
80
- }: React.ComponentProps<typeof DropdownMenu$1.RadioItem>): react280.JSX.Element;
80
+ }: React.ComponentProps<typeof DropdownMenu$1.RadioItem>): react138.JSX.Element;
81
81
  /**
82
82
  * Non-interactive label used to describe a group of items.
83
83
  *
@@ -89,21 +89,21 @@ declare function DropdownMenuLabel({
89
89
  ...props
90
90
  }: React.ComponentProps<typeof DropdownMenu$1.Label> & {
91
91
  inset?: boolean;
92
- }): react280.JSX.Element;
92
+ }): react138.JSX.Element;
93
93
  /** Horizontal dividing line between groups of dropdown items. */
94
94
  declare function DropdownMenuSeparator({
95
95
  className,
96
96
  ...props
97
- }: React.ComponentProps<typeof DropdownMenu$1.Separator>): react280.JSX.Element;
97
+ }: React.ComponentProps<typeof DropdownMenu$1.Separator>): react138.JSX.Element;
98
98
  /** Displays a keyboard shortcut hint aligned to the right of a menu item. */
99
99
  declare function DropdownMenuShortcut({
100
100
  className,
101
101
  ...props
102
- }: React.ComponentProps<'span'>): react280.JSX.Element;
102
+ }: React.ComponentProps<'span'>): react138.JSX.Element;
103
103
  /** Root container for a nested sub-menu inside a DropdownMenu. */
104
104
  declare function DropdownMenuSub({
105
105
  ...props
106
- }: React.ComponentProps<typeof DropdownMenu$1.Sub>): react280.JSX.Element;
106
+ }: React.ComponentProps<typeof DropdownMenu$1.Sub>): react138.JSX.Element;
107
107
  /**
108
108
  * Menu item that reveals a nested DropdownMenuSubContent on hover or activation.
109
109
  *
@@ -116,12 +116,12 @@ declare function DropdownMenuSubTrigger({
116
116
  ...props
117
117
  }: React.ComponentProps<typeof DropdownMenu$1.SubTrigger> & {
118
118
  inset?: boolean;
119
- }): react280.JSX.Element;
119
+ }): react138.JSX.Element;
120
120
  /** Floating panel that contains the items of a nested sub-menu. */
121
121
  declare function DropdownMenuSubContent({
122
122
  className,
123
123
  ...props
124
- }: React.ComponentProps<typeof DropdownMenu$1.SubContent>): react280.JSX.Element;
124
+ }: React.ComponentProps<typeof DropdownMenu$1.SubContent>): react138.JSX.Element;
125
125
  //#endregion
126
126
  export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger };
127
127
  //# sourceMappingURL=dropdown-menu.d.ts.map
@@ -1 +1,2 @@
1
- "use client";import{a as e,c as t,d as n,f as r,h as i,i as a,l as o,m as s,n as c,o as l,p as u,r as d,s as f,t as p,u as m}from"../dropdown-menu-DeHCVyby.js";export{p as DropdownMenu,c as DropdownMenuCheckboxItem,d as DropdownMenuContent,a as DropdownMenuGroup,e as DropdownMenuItem,l as DropdownMenuLabel,f as DropdownMenuPortal,t as DropdownMenuRadioGroup,o as DropdownMenuRadioItem,m as DropdownMenuSeparator,n as DropdownMenuShortcut,r as DropdownMenuSub,u as DropdownMenuSubContent,s as DropdownMenuSubTrigger,i as DropdownMenuTrigger};
1
+ "use client";import{CheckIcon as e,ChevronRightIcon as t,CircleIcon as n}from"lucide-react";import{cn as r}from"@customafk/react-toolkit/utils";import{jsx as i,jsxs as a}from"react/jsx-runtime";import{DropdownMenu as o}from"radix-ui";function s({...e}){return i(o.Root,{"data-slot":`dropdown-menu`,...e})}function c({...e}){return i(o.Portal,{"data-slot":`dropdown-menu-portal`,...e})}function l({...e}){return i(o.Trigger,{"data-slot":`dropdown-menu-trigger`,...e})}function u({className:e,sideOffset:t=4,align:n=`start`,...a}){return i(o.Portal,{children:i(o.Content,{"data-slot":`dropdown-menu-content`,sideOffset:t,align:n,className:r(`bg-popover text-text-positive`,`z-50 min-w-32`,`overflow-y-auto overflow-x-hidden`,`rounded-md p-1.5 shadow-dropdown`,`max-h-(--radix-dropdown-menu-content-available-height)`,`origin-(--radix-dropdown-menu-content-transform-origin)`,`data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95`,`data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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`,e),...a})})}function d({...e}){return i(o.Group,{"data-slot":`dropdown-menu-group`,...e})}function f({className:e,inset:t,variant:n=`default`,...a}){return i(o.Item,{"data-slot":`dropdown-menu-item`,"data-inset":t,"data-variant":n,className:r(`relative flex cursor-pointer select-none items-center gap-2 rounded-md px-2 py-2.5 text-sm outline-hidden transition-colors`,`focus:bg-muted-muted focus:text-text-positive-strong`,`data-inset:pl-8`,`data-disabled:pointer-events-none data-disabled:opacity-50`,`data-[variant=destructive]:text-danger`,`data-[variant=destructive]:focus:bg-danger-muted data-[variant=destructive]:focus:text-danger-strong`,`data-[variant=destructive]:*:[svg]:text-danger!`,`[&_svg]:pointer-events-none [&_svg]:shrink-0`,`[&_svg:not([class*='size-'])]:size-4`,`[&_svg:not([class*='text-'])]:text-text-positive-weak`,e),...a})}function p({className:t,children:n,checked:s,...c}){return a(o.CheckboxItem,{"data-slot":`dropdown-menu-checkbox-item`,className:r(`relative flex cursor-pointer select-none items-center gap-2 rounded-md py-2.5 pr-2 pl-8 text-sm outline-hidden transition-colors`,`focus:bg-muted-muted focus:text-text-positive-strong`,`data-disabled:pointer-events-none data-disabled:opacity-50`,`[&_svg]:pointer-events-none [&_svg]:shrink-0`,`[&_svg:not([class*='size-'])]:size-4`,t),checked:s,...c,children:[i(`span`,{className:`pointer-events-none absolute left-2 flex size-3.5 items-center justify-center`,children:i(o.ItemIndicator,{children:i(e,{size:16})})}),n]})}function m({...e}){return i(o.RadioGroup,{"data-slot":`dropdown-menu-radio-group`,...e})}function h({className:e,children:t,...s}){return a(o.RadioItem,{"data-slot":`dropdown-menu-radio-item`,className:r(`relative flex cursor-pointer select-none items-center gap-2 rounded-md py-2.5 pr-2 pl-8 text-sm outline-hidden transition-colors`,`focus:bg-muted-muted focus:text-text-positive-strong`,`data-disabled:pointer-events-none data-disabled:opacity-50`,`[&_svg]:pointer-events-none [&_svg]:shrink-0`,`[&_svg:not([class*='size-'])]:size-4`,e),...s,children:[i(`span`,{className:`pointer-events-none absolute left-2 flex size-3.5 items-center justify-center`,children:i(o.ItemIndicator,{children:i(n,{className:`size-2 fill-current`})})}),t]})}function g({className:e,inset:t,...n}){return i(o.Label,{"data-slot":`dropdown-menu-label`,"data-inset":t,className:r(`px-2 py-1.5 font-medium text-sm text-text-positive-weak data-inset:pl-8`,e),...n})}function _({className:e,...t}){return i(o.Separator,{"data-slot":`dropdown-menu-separator`,className:r(`-mx-1 my-1 h-px bg-border-weak`,e),...t})}function v({className:e,...t}){return i(`span`,{"data-slot":`dropdown-menu-shortcut`,className:r(`ml-auto text-xs text-text-positive-muted tracking-widest`,e),...t})}function y({...e}){return i(o.Sub,{"data-slot":`dropdown-menu-sub`,...e})}function b({className:e,inset:n,children:s,...c}){return a(o.SubTrigger,{"data-slot":`dropdown-menu-sub-trigger`,"data-inset":n,className:r(`flex cursor-pointer select-none items-center gap-2 rounded-md px-2 py-2.5 text-sm outline-hidden transition-colors`,`focus:bg-muted-muted focus:text-text-positive-strong`,`data-[state=open]:bg-muted-muted data-[state=open]:text-text-positive-strong`,`data-inset:pl-8`,`[&_svg]:pointer-events-none [&_svg]:shrink-0`,`[&_svg:not([class*='size-'])]:size-4`,e),...c,children:[s,i(t,{className:`ml-auto size-4`})]})}function x({className:e,...t}){return i(o.SubContent,{"data-slot":`dropdown-menu-sub-content`,className:r(`bg-popover text-text-positive`,`z-50 min-w-32`,`overflow-y-auto overflow-x-hidden`,`origin-(--radix-dropdown-menu-content-transform-origin) rounded-md p-1.5 shadow-dropdown`,`data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95`,`data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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`,e),...t})}export{s as DropdownMenu,p as DropdownMenuCheckboxItem,u as DropdownMenuContent,d as DropdownMenuGroup,f as DropdownMenuItem,g as DropdownMenuLabel,c as DropdownMenuPortal,m as DropdownMenuRadioGroup,h as DropdownMenuRadioItem,_ as DropdownMenuSeparator,v as DropdownMenuShortcut,y as DropdownMenuSub,x as DropdownMenuSubContent,b as DropdownMenuSubTrigger,l as DropdownMenuTrigger};
2
+ //# sourceMappingURL=dropdown-menu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dropdown-menu.js","names":["DropdownMenuPrimitive"],"sources":["../../packages/components/ui/dropdown-menu.tsx"],"sourcesContent":["'use client';\n\nimport { CheckIcon, ChevronRightIcon, CircleIcon } from 'lucide-react';\n\nimport { cn } from '@customafk/react-toolkit/utils';\n\nimport { DropdownMenu as DropdownMenuPrimitive } from 'radix-ui';\n\n/**\n * Root provider for the DropdownMenu — wraps all sub-components and controls open state.\n *\n * @example\n * ```tsx\n * import {\n * DropdownMenu, DropdownMenuTrigger, DropdownMenuContent,\n * DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator,\n * } from '@customafk/lunas-ui/ui/dropdown-menu';\n *\n * <DropdownMenu>\n * <DropdownMenuTrigger>Options</DropdownMenuTrigger>\n * <DropdownMenuContent>\n * <DropdownMenuLabel>My Account</DropdownMenuLabel>\n * <DropdownMenuSeparator />\n * <DropdownMenuItem>Profile</DropdownMenuItem>\n * <DropdownMenuItem variant=\"destructive\">Delete</DropdownMenuItem>\n * </DropdownMenuContent>\n * </DropdownMenu>\n * ```\n */\nfunction DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>) {\n return <DropdownMenuPrimitive.Root data-slot=\"dropdown-menu\" {...props} />;\n}\n\n/** Portals DropdownMenu content outside the current DOM hierarchy. */\nfunction DropdownMenuPortal({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>) {\n return <DropdownMenuPrimitive.Portal data-slot=\"dropdown-menu-portal\" {...props} />;\n}\n\n/** Element that opens the DropdownMenu when activated. */\nfunction DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>) {\n return <DropdownMenuPrimitive.Trigger data-slot=\"dropdown-menu-trigger\" {...props} />;\n}\n\n/** Animated floating panel that contains the dropdown items. */\nfunction DropdownMenuContent({ className, sideOffset = 4, align = 'start', ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Content>) {\n return (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n data-slot=\"dropdown-menu-content\"\n sideOffset={sideOffset}\n align={align}\n className={cn(\n 'bg-popover text-text-positive',\n 'z-50 min-w-32',\n 'overflow-y-auto overflow-x-hidden',\n 'rounded-md p-1.5 shadow-dropdown',\n 'max-h-(--radix-dropdown-menu-content-available-height)',\n 'origin-(--radix-dropdown-menu-content-transform-origin)',\n 'data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95',\n 'data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95',\n 'data-[side=bottom]:slide-in-from-top-2',\n 'data-[side=left]:slide-in-from-right-2',\n 'data-[side=right]:slide-in-from-left-2',\n 'data-[side=top]:slide-in-from-bottom-2',\n className\n )}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n );\n}\n\n/** Groups related DropdownMenuItems under a shared logical section. */\nfunction DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Group>) {\n return <DropdownMenuPrimitive.Group data-slot=\"dropdown-menu-group\" {...props} />;\n}\n\n/**\n * A single clickable row inside a DropdownMenuContent.\n *\n * @param inset - When true, adds left padding to align with items that have icons.\n * @param variant - Visual style: `'default'` or `'destructive'`.\n */\nfunction DropdownMenuItem({\n className,\n inset,\n variant = 'default',\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {\n inset?: boolean;\n variant?: 'default' | 'destructive';\n}) {\n return (\n <DropdownMenuPrimitive.Item\n data-slot=\"dropdown-menu-item\"\n data-inset={inset}\n data-variant={variant}\n className={cn(\n 'relative flex cursor-pointer select-none items-center gap-2 rounded-md px-2 py-2.5 text-sm outline-hidden transition-colors',\n 'focus:bg-muted-muted focus:text-text-positive-strong',\n 'data-inset:pl-8',\n 'data-disabled:pointer-events-none data-disabled:opacity-50',\n 'data-[variant=destructive]:text-danger',\n 'data-[variant=destructive]:focus:bg-danger-muted data-[variant=destructive]:focus:text-danger-strong',\n 'data-[variant=destructive]:*:[svg]:text-danger!',\n '[&_svg]:pointer-events-none [&_svg]:shrink-0',\n \"[&_svg:not([class*='size-'])]:size-4\",\n \"[&_svg:not([class*='text-'])]:text-text-positive-weak\",\n className\n )}\n {...props}\n />\n );\n}\n\n/** A checkable menu item that displays a checkmark when selected. */\nfunction DropdownMenuCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>) {\n return (\n <DropdownMenuPrimitive.CheckboxItem\n data-slot=\"dropdown-menu-checkbox-item\"\n className={cn(\n 'relative flex cursor-pointer select-none items-center gap-2 rounded-md py-2.5 pr-2 pl-8 text-sm outline-hidden transition-colors',\n 'focus:bg-muted-muted focus:text-text-positive-strong',\n 'data-disabled:pointer-events-none data-disabled:opacity-50',\n '[&_svg]:pointer-events-none [&_svg]:shrink-0',\n \"[&_svg:not([class*='size-'])]:size-4\",\n className\n )}\n checked={checked}\n {...props}\n >\n <span className=\"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <CheckIcon size={16} />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n );\n}\n\n/** Groups DropdownMenuRadioItems so only one can be selected at a time. */\nfunction DropdownMenuRadioGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>) {\n return <DropdownMenuPrimitive.RadioGroup data-slot=\"dropdown-menu-radio-group\" {...props} />;\n}\n\n/** A radio-button menu item; shows a filled circle when selected. */\nfunction DropdownMenuRadioItem({ className, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>) {\n return (\n <DropdownMenuPrimitive.RadioItem\n data-slot=\"dropdown-menu-radio-item\"\n className={cn(\n 'relative flex cursor-pointer select-none items-center gap-2 rounded-md py-2.5 pr-2 pl-8 text-sm outline-hidden transition-colors',\n 'focus:bg-muted-muted focus:text-text-positive-strong',\n 'data-disabled:pointer-events-none data-disabled:opacity-50',\n '[&_svg]:pointer-events-none [&_svg]:shrink-0',\n \"[&_svg:not([class*='size-'])]:size-4\",\n className\n )}\n {...props}\n >\n <span className=\"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <CircleIcon className=\"size-2 fill-current\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.RadioItem>\n );\n}\n\n/**\n * Non-interactive label used to describe a group of items.\n *\n * @param inset - When true, adds left padding to align with inset items.\n */\nfunction DropdownMenuLabel({\n className,\n inset,\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Label> & {\n inset?: boolean;\n}) {\n return (\n <DropdownMenuPrimitive.Label\n data-slot=\"dropdown-menu-label\"\n data-inset={inset}\n className={cn('px-2 py-1.5 font-medium text-sm text-text-positive-weak data-inset:pl-8', className)}\n {...props}\n />\n );\n}\n\n/** Horizontal dividing line between groups of dropdown items. */\nfunction DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>) {\n return <DropdownMenuPrimitive.Separator data-slot=\"dropdown-menu-separator\" className={cn('-mx-1 my-1 h-px bg-border-weak', className)} {...props} />;\n}\n\n/** Displays a keyboard shortcut hint aligned to the right of a menu item. */\nfunction DropdownMenuShortcut({ className, ...props }: React.ComponentProps<'span'>) {\n return <span data-slot=\"dropdown-menu-shortcut\" className={cn('ml-auto text-xs text-text-positive-muted tracking-widest', className)} {...props} />;\n}\n\n/** Root container for a nested sub-menu inside a DropdownMenu. */\nfunction DropdownMenuSub({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>) {\n return <DropdownMenuPrimitive.Sub data-slot=\"dropdown-menu-sub\" {...props} />;\n}\n\n/**\n * Menu item that reveals a nested DropdownMenuSubContent on hover or activation.\n *\n * @param inset - When true, adds left padding to align with inset items.\n */\nfunction DropdownMenuSubTrigger({\n className,\n inset,\n children,\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {\n inset?: boolean;\n}) {\n return (\n <DropdownMenuPrimitive.SubTrigger\n data-slot=\"dropdown-menu-sub-trigger\"\n data-inset={inset}\n className={cn(\n 'flex cursor-pointer select-none items-center gap-2 rounded-md px-2 py-2.5 text-sm outline-hidden transition-colors',\n 'focus:bg-muted-muted focus:text-text-positive-strong',\n 'data-[state=open]:bg-muted-muted data-[state=open]:text-text-positive-strong',\n 'data-inset:pl-8',\n '[&_svg]:pointer-events-none [&_svg]:shrink-0',\n \"[&_svg:not([class*='size-'])]:size-4\",\n className\n )}\n {...props}\n >\n {children}\n <ChevronRightIcon className=\"ml-auto size-4\" />\n </DropdownMenuPrimitive.SubTrigger>\n );\n}\n\n/** Floating panel that contains the items of a nested sub-menu. */\nfunction DropdownMenuSubContent({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>) {\n return (\n <DropdownMenuPrimitive.SubContent\n data-slot=\"dropdown-menu-sub-content\"\n className={cn(\n 'bg-popover text-text-positive',\n 'z-50 min-w-32',\n 'overflow-y-auto overflow-x-hidden',\n 'origin-(--radix-dropdown-menu-content-transform-origin) rounded-md p-1.5 shadow-dropdown',\n 'data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95',\n 'data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95',\n 'data-[side=bottom]:slide-in-from-top-2',\n 'data-[side=left]:slide-in-from-right-2',\n 'data-[side=right]:slide-in-from-left-2',\n 'data-[side=top]:slide-in-from-bottom-2',\n className\n )}\n {...props}\n />\n );\n}\n\nexport {\n DropdownMenu,\n DropdownMenuCheckboxItem,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuPortal,\n DropdownMenuRadioGroup,\n DropdownMenuRadioItem,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuTrigger,\n};\n"],"mappings":"0OA6BA,SAAS,EAAa,CAAE,GAAG,GAAkE,CAC3F,OAAO,EAACA,EAAsB,KAAA,CAAK,YAAU,gBAAgB,GAAI,GAAS,CAI5E,SAAS,EAAmB,CAAE,GAAG,GAAoE,CACnG,OAAO,EAACA,EAAsB,OAAA,CAAO,YAAU,uBAAuB,GAAI,GAAS,CAIrF,SAAS,EAAoB,CAAE,GAAG,GAAqE,CACrG,OAAO,EAACA,EAAsB,QAAA,CAAQ,YAAU,wBAAwB,GAAI,GAAS,CAIvF,SAAS,EAAoB,CAAE,YAAW,aAAa,EAAG,QAAQ,QAAS,GAAG,GAAqE,CACjJ,OACE,EAACA,EAAsB,OAAA,CAAA,SACrB,EAACA,EAAsB,QAAA,CACrB,YAAU,wBACE,aACL,QACP,UAAW,EACT,gCACA,gBACA,oCACA,mCACA,yDACA,0DACA,wFACA,iGACA,yCACA,yCACA,yCACA,yCACA,EACD,CACD,GAAI,GACJ,CAAA,CAC2B,CAKnC,SAAS,EAAkB,CAAE,GAAG,GAAmE,CACjG,OAAO,EAACA,EAAsB,MAAA,CAAM,YAAU,sBAAsB,GAAI,GAAS,CASnF,SAAS,EAAiB,CACxB,YACA,QACA,UAAU,UACV,GAAG,GAIF,CACD,OACE,EAACA,EAAsB,KAAA,CACrB,YAAU,qBACV,aAAY,EACZ,eAAc,EACd,UAAW,EACT,8HACA,uDACA,kBACA,6DACA,yCACA,uGACA,kDACA,+CACA,uCACA,wDACA,EACD,CACD,GAAI,GACJ,CAKN,SAAS,EAAyB,CAAE,YAAW,WAAU,UAAS,GAAG,GAA0E,CAC7I,OACE,EAACA,EAAsB,aAAA,CACrB,YAAU,8BACV,UAAW,EACT,mIACA,uDACA,6DACA,+CACA,uCACA,EACD,CACQ,UACT,GAAI,YAEJ,EAAC,OAAA,CAAK,UAAU,yFACd,EAACA,EAAsB,cAAA,CAAA,SACrB,EAAC,EAAA,CAAU,KAAM,GAAA,CAAM,CAAA,CACa,EACjC,CACN,EAAA,EACkC,CAKzC,SAAS,EAAuB,CAAE,GAAG,GAAwE,CAC3G,OAAO,EAACA,EAAsB,WAAA,CAAW,YAAU,4BAA4B,GAAI,GAAS,CAI9F,SAAS,EAAsB,CAAE,YAAW,WAAU,GAAG,GAAuE,CAC9H,OACE,EAACA,EAAsB,UAAA,CACrB,YAAU,2BACV,UAAW,EACT,mIACA,uDACA,6DACA,+CACA,uCACA,EACD,CACD,GAAI,YAEJ,EAAC,OAAA,CAAK,UAAU,yFACd,EAACA,EAAsB,cAAA,CAAA,SACrB,EAAC,EAAA,CAAW,UAAU,sBAAA,CAAwB,CAAA,CACV,EACjC,CACN,EAAA,EAC+B,CAStC,SAAS,EAAkB,CACzB,YACA,QACA,GAAG,GAGF,CACD,OACE,EAACA,EAAsB,MAAA,CACrB,YAAU,sBACV,aAAY,EACZ,UAAW,EAAG,0EAA2E,EAAU,CACnG,GAAI,GACJ,CAKN,SAAS,EAAsB,CAAE,YAAW,GAAG,GAAuE,CACpH,OAAO,EAACA,EAAsB,UAAA,CAAU,YAAU,0BAA0B,UAAW,EAAG,iCAAkC,EAAU,CAAE,GAAI,GAAS,CAIvJ,SAAS,EAAqB,CAAE,YAAW,GAAG,GAAuC,CACnF,OAAO,EAAC,OAAA,CAAK,YAAU,yBAAyB,UAAW,EAAG,2DAA4D,EAAU,CAAE,GAAI,GAAS,CAIrJ,SAAS,EAAgB,CAAE,GAAG,GAAiE,CAC7F,OAAO,EAACA,EAAsB,IAAA,CAAI,YAAU,oBAAoB,GAAI,GAAS,CAQ/E,SAAS,EAAuB,CAC9B,YACA,QACA,WACA,GAAG,GAGF,CACD,OACE,EAACA,EAAsB,WAAA,CACrB,YAAU,4BACV,aAAY,EACZ,UAAW,EACT,qHACA,uDACA,+EACA,kBACA,+CACA,uCACA,EACD,CACD,GAAI,YAEH,EACD,EAAC,EAAA,CAAiB,UAAU,iBAAA,CAAmB,CAAA,EACd,CAKvC,SAAS,EAAuB,CAAE,YAAW,GAAG,GAAwE,CACtH,OACE,EAACA,EAAsB,WAAA,CACrB,YAAU,4BACV,UAAW,EACT,gCACA,gBACA,oCACA,2FACA,wFACA,iGACA,yCACA,yCACA,yCACA,yCACA,EACD,CACD,GAAI,GACJ"}
package/dist/ui/empty.cjs CHANGED
@@ -1,2 +1,2 @@
1
- const e=require(`../chunk-350yNsax.cjs`);let t=require(`@customafk/react-toolkit/utils`),n=require(`class-variance-authority`),r=require(`react/jsx-runtime`);function i({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`empty`,className:(0,t.cn)(`flex min-w-0 flex-1 flex-col items-center justify-center gap-6 rounded-lg border-dashed p-6 text-center text-balance md:p-12`,e),...n})}function a({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`empty-header`,className:(0,t.cn)(`flex max-w-sm flex-col items-center gap-2 text-center`,e),...n})}const o=(0,n.cva)(`flex shrink-0 items-center justify-center mb-2 [&_svg]:pointer-events-none [&_svg]:shrink-0`,{variants:{variant:{default:`bg-transparent`,icon:`bg-muted-muted text-text-positive-weak flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-6`}},defaultVariants:{variant:`default`}});function s({className:e,variant:n=`default`,...i}){return(0,r.jsx)(`div`,{"data-slot":`empty-icon`,"data-variant":n,className:(0,t.cn)(o({variant:n,className:e})),...i})}function c({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`empty-title`,className:(0,t.cn)(`text-lg font-medium tracking-tight`,e),...n})}function l({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`empty-description`,className:(0,t.cn)(`text-text-positive-weak [&>a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4`,e),...n})}function u({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`empty-content`,className:(0,t.cn)(`flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance`,e),...n})}exports.Empty=i,exports.EmptyContent=u,exports.EmptyDescription=l,exports.EmptyHeader=a,exports.EmptyMedia=s,exports.EmptyTitle=c;
1
+ const e=require(`../chunk-Bmb41Sf3.cjs`);let t=require(`@customafk/react-toolkit/utils`),n=require(`class-variance-authority`),r=require(`react/jsx-runtime`);function i({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`empty`,className:(0,t.cn)(`flex min-w-0 flex-1 flex-col items-center justify-center gap-6 rounded-lg border-dashed p-6 text-center text-balance md:p-12`,e),...n})}function a({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`empty-header`,className:(0,t.cn)(`flex max-w-sm flex-col items-center gap-2 text-center`,e),...n})}const o=(0,n.cva)(`flex shrink-0 items-center justify-center mb-2 [&_svg]:pointer-events-none [&_svg]:shrink-0`,{variants:{variant:{default:`bg-transparent`,icon:`bg-muted-muted text-text-positive-weak flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-6`}},defaultVariants:{variant:`default`}});function s({className:e,variant:n=`default`,...i}){return(0,r.jsx)(`div`,{"data-slot":`empty-icon`,"data-variant":n,className:(0,t.cn)(o({variant:n,className:e})),...i})}function c({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`empty-title`,className:(0,t.cn)(`text-lg font-medium tracking-tight`,e),...n})}function l({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`empty-description`,className:(0,t.cn)(`text-text-positive-weak [&>a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4`,e),...n})}function u({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`empty-content`,className:(0,t.cn)(`flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance`,e),...n})}exports.Empty=i,exports.EmptyContent=u,exports.EmptyDescription=l,exports.EmptyHeader=a,exports.EmptyMedia=s,exports.EmptyTitle=c;
2
2
  //# sourceMappingURL=empty.cjs.map
@@ -1,5 +1,5 @@
1
- import * as react88 from "react";
2
- import * as class_variance_authority_types3 from "class-variance-authority/types";
1
+ import * as react115 from "react";
2
+ import * as class_variance_authority_types4 from "class-variance-authority/types";
3
3
  import { VariantProps } from "class-variance-authority";
4
4
 
5
5
  //#region packages/components/ui/empty.d.ts
@@ -29,15 +29,15 @@ import { VariantProps } from "class-variance-authority";
29
29
  declare function Empty({
30
30
  className,
31
31
  ...props
32
- }: React.ComponentProps<'div'>): react88.JSX.Element;
32
+ }: React.ComponentProps<'div'>): react115.JSX.Element;
33
33
  /** Centred column container for the media, title, and description of an empty state. */
34
34
  declare function EmptyHeader({
35
35
  className,
36
36
  ...props
37
- }: React.ComponentProps<'div'>): react88.JSX.Element;
37
+ }: React.ComponentProps<'div'>): react115.JSX.Element;
38
38
  declare const emptyMediaVariants: (props?: ({
39
39
  variant?: "default" | "icon" | null | undefined;
40
- } & class_variance_authority_types3.ClassProp) | undefined) => string;
40
+ } & class_variance_authority_types4.ClassProp) | undefined) => string;
41
41
  /**
42
42
  * Container for the visual element (illustration, icon, or image) in an empty state.
43
43
  *
@@ -47,22 +47,22 @@ declare function EmptyMedia({
47
47
  className,
48
48
  variant,
49
49
  ...props
50
- }: React.ComponentProps<'div'> & VariantProps<typeof emptyMediaVariants>): react88.JSX.Element;
50
+ }: React.ComponentProps<'div'> & VariantProps<typeof emptyMediaVariants>): react115.JSX.Element;
51
51
  /** Prominent heading text for the empty state. */
52
52
  declare function EmptyTitle({
53
53
  className,
54
54
  ...props
55
- }: React.ComponentProps<'div'>): react88.JSX.Element;
55
+ }: React.ComponentProps<'div'>): react115.JSX.Element;
56
56
  /** Supporting body text that explains the empty state to the user. */
57
57
  declare function EmptyDescription({
58
58
  className,
59
59
  ...props
60
- }: React.ComponentProps<'p'>): react88.JSX.Element;
60
+ }: React.ComponentProps<'p'>): react115.JSX.Element;
61
61
  /** Action area below the header — typically holds buttons or links to help the user proceed. */
62
62
  declare function EmptyContent({
63
63
  className,
64
64
  ...props
65
- }: React.ComponentProps<'div'>): react88.JSX.Element;
65
+ }: React.ComponentProps<'div'>): react115.JSX.Element;
66
66
  //#endregion
67
67
  export { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle };
68
68
  //# sourceMappingURL=empty.d.cts.map
@@ -1,5 +1,5 @@
1
- import * as react81 from "react";
2
1
  import { VariantProps } from "class-variance-authority";
2
+ import * as react132 from "react";
3
3
  import * as class_variance_authority_types5 from "class-variance-authority/types";
4
4
 
5
5
  //#region packages/components/ui/empty.d.ts
@@ -29,12 +29,12 @@ import * as class_variance_authority_types5 from "class-variance-authority/types
29
29
  declare function Empty({
30
30
  className,
31
31
  ...props
32
- }: React.ComponentProps<'div'>): react81.JSX.Element;
32
+ }: React.ComponentProps<'div'>): react132.JSX.Element;
33
33
  /** Centred column container for the media, title, and description of an empty state. */
34
34
  declare function EmptyHeader({
35
35
  className,
36
36
  ...props
37
- }: React.ComponentProps<'div'>): react81.JSX.Element;
37
+ }: React.ComponentProps<'div'>): react132.JSX.Element;
38
38
  declare const emptyMediaVariants: (props?: ({
39
39
  variant?: "default" | "icon" | null | undefined;
40
40
  } & class_variance_authority_types5.ClassProp) | undefined) => string;
@@ -47,22 +47,22 @@ declare function EmptyMedia({
47
47
  className,
48
48
  variant,
49
49
  ...props
50
- }: React.ComponentProps<'div'> & VariantProps<typeof emptyMediaVariants>): react81.JSX.Element;
50
+ }: React.ComponentProps<'div'> & VariantProps<typeof emptyMediaVariants>): react132.JSX.Element;
51
51
  /** Prominent heading text for the empty state. */
52
52
  declare function EmptyTitle({
53
53
  className,
54
54
  ...props
55
- }: React.ComponentProps<'div'>): react81.JSX.Element;
55
+ }: React.ComponentProps<'div'>): react132.JSX.Element;
56
56
  /** Supporting body text that explains the empty state to the user. */
57
57
  declare function EmptyDescription({
58
58
  className,
59
59
  ...props
60
- }: React.ComponentProps<'p'>): react81.JSX.Element;
60
+ }: React.ComponentProps<'p'>): react132.JSX.Element;
61
61
  /** Action area below the header — typically holds buttons or links to help the user proceed. */
62
62
  declare function EmptyContent({
63
63
  className,
64
64
  ...props
65
- }: React.ComponentProps<'div'>): react81.JSX.Element;
65
+ }: React.ComponentProps<'div'>): react132.JSX.Element;
66
66
  //#endregion
67
67
  export { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle };
68
68
  //# sourceMappingURL=empty.d.ts.map
package/dist/ui/field.cjs CHANGED
@@ -1 +1 @@
1
- "use client";require(`../separator-KuymG9g0.cjs`),require(`../label-CC6fXVbC.cjs`);const e=require(`../field-BrlETeXX.cjs`);exports.Field=e.t,exports.FieldContent=e.n,exports.FieldDescription=e.r,exports.FieldError=e.i,exports.FieldGroup=e.a,exports.FieldLabel=e.o,exports.FieldLegend=e.s,exports.FieldSeparator=e.c,exports.FieldSet=e.l,exports.FieldTitle=e.u;
1
+ "use client";const e=require(`../field-0gaEKxov.cjs`);exports.Field=e.t,exports.FieldContent=e.n,exports.FieldDescription=e.r,exports.FieldError=e.i,exports.FieldGroup=e.a,exports.FieldLabel=e.o,exports.FieldLegend=e.s,exports.FieldSeparator=e.c,exports.FieldSet=e.l,exports.FieldTitle=e.u;