@customafk/lunas-ui 0.2.42 → 0.2.43

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 (1008) hide show
  1. package/dist/alert-2JBj0aPL.d.mts +88 -0
  2. package/dist/alert-B2PaDJp6.cjs +2 -0
  3. package/dist/alert-B2PaDJp6.cjs.map +1 -0
  4. package/dist/alert-BbvPwf2x.mjs +2 -0
  5. package/dist/alert-BbvPwf2x.mjs.map +1 -0
  6. package/dist/alert-Cm6RAKdp.d.cts +88 -0
  7. package/dist/avatar-TyOphzGo.cjs +2 -0
  8. package/dist/avatar-TyOphzGo.cjs.map +1 -0
  9. package/dist/avatar-fltdRVsJ.mjs +2 -0
  10. package/dist/avatar-fltdRVsJ.mjs.map +1 -0
  11. package/dist/badge-CDGBGq8X.mjs +2 -0
  12. package/dist/badge-CDGBGq8X.mjs.map +1 -0
  13. package/dist/badge-CnR78VnH.d.mts +42 -0
  14. package/dist/badge-KW7xu5Ca.cjs +2 -0
  15. package/dist/badge-KW7xu5Ca.cjs.map +1 -0
  16. package/dist/badge-ic9HOAa7.d.cts +42 -0
  17. package/dist/button--eH0xdF-.d.mts +174 -0
  18. package/dist/button-C--DAN1D.cjs +2 -0
  19. package/dist/button-C--DAN1D.cjs.map +1 -0
  20. package/dist/button-CCVJTHBI.mjs +2 -0
  21. package/dist/button-CCVJTHBI.mjs.map +1 -0
  22. package/dist/button-DserH5cQ.d.cts +174 -0
  23. package/dist/button.variants-4kw6plrv.cjs +2 -0
  24. package/dist/button.variants-4kw6plrv.cjs.map +1 -0
  25. package/dist/button.variants-DkMqWB8G.mjs +2 -0
  26. package/dist/button.variants-DkMqWB8G.mjs.map +1 -0
  27. package/dist/calendar-4weBDnXz.cjs +2 -0
  28. package/dist/calendar-4weBDnXz.cjs.map +1 -0
  29. package/dist/calendar-R866yyd1.mjs +2 -0
  30. package/dist/calendar-R866yyd1.mjs.map +1 -0
  31. package/dist/cards/grid-product-card.cjs +1 -1
  32. package/dist/cards/grid-product-card.cjs.map +1 -1
  33. package/dist/cards/grid-product-card.d.mts +37 -0
  34. package/dist/cards/grid-product-card.mjs +2 -0
  35. package/dist/cards/grid-product-card.mjs.map +1 -0
  36. package/dist/cards/product-card.cjs +1 -1
  37. package/dist/cards/product-card.cjs.map +1 -1
  38. package/dist/cards/product-card.d.mts +37 -0
  39. package/dist/cards/product-card.mjs +2 -0
  40. package/dist/cards/product-card.mjs.map +1 -0
  41. package/dist/cards/simple-card.cjs +1 -1
  42. package/dist/cards/simple-card.d.mts +35 -0
  43. package/dist/cards/simple-card.mjs +2 -0
  44. package/dist/cards/simple-card.mjs.map +1 -0
  45. package/dist/checkbox-Cat3i08X.mjs +2 -0
  46. package/dist/checkbox-Cat3i08X.mjs.map +1 -0
  47. package/dist/checkbox-Dsq-MSbH.cjs +2 -0
  48. package/dist/checkbox-Dsq-MSbH.cjs.map +1 -0
  49. package/dist/chunk-350yNsax.cjs +1 -0
  50. package/dist/close-Dlo1bI8x.cjs +2 -0
  51. package/dist/close-Dlo1bI8x.cjs.map +1 -0
  52. package/dist/close-_UHFeiLS.mjs +2 -0
  53. package/dist/close-_UHFeiLS.mjs.map +1 -0
  54. package/dist/cms-layout-BCH4NroR.cjs +2 -0
  55. package/dist/cms-layout-BCH4NroR.cjs.map +1 -0
  56. package/dist/cms-layout-DkCR1AfG.mjs +2 -0
  57. package/dist/cms-layout-DkCR1AfG.mjs.map +1 -0
  58. package/dist/command-CsP8a1Un.cjs +2 -0
  59. package/dist/command-CsP8a1Un.cjs.map +1 -0
  60. package/dist/command-D6_CSbwJ.mjs +2 -0
  61. package/dist/command-D6_CSbwJ.mjs.map +1 -0
  62. package/dist/data-display/country.cjs +1 -1
  63. package/dist/data-display/country.cjs.map +1 -1
  64. package/dist/data-display/country.d.cts +1 -1
  65. package/dist/data-display/country.d.mts +22 -0
  66. package/dist/data-display/country.mjs +2 -0
  67. package/dist/data-display/country.mjs.map +1 -0
  68. package/dist/data-display/data-list.cjs +1 -1
  69. package/dist/data-display/data-list.d.mts +43 -0
  70. package/dist/data-display/data-list.mjs +2 -0
  71. package/dist/data-display/data-list.mjs.map +1 -0
  72. package/dist/data-display/date-tooltip.cjs +1 -1
  73. package/dist/data-display/date-tooltip.cjs.map +1 -1
  74. package/dist/data-display/date-tooltip.d.mts +19 -0
  75. package/dist/data-display/date-tooltip.mjs +2 -0
  76. package/dist/data-display/date-tooltip.mjs.map +1 -0
  77. package/dist/data-display/date.cjs +1 -2
  78. package/dist/data-display/date.d.mts +39 -0
  79. package/dist/data-display/date.mjs +1 -0
  80. package/dist/data-display/empty.cjs +1 -1
  81. package/dist/data-display/empty.d.mts +21 -0
  82. package/dist/data-display/empty.mjs +2 -0
  83. package/dist/data-display/empty.mjs.map +1 -0
  84. package/dist/data-display/name.cjs +1 -1
  85. package/dist/data-display/name.cjs.map +1 -1
  86. package/dist/data-display/name.d.mts +19 -0
  87. package/dist/data-display/name.mjs +2 -0
  88. package/dist/data-display/name.mjs.map +1 -0
  89. package/dist/data-display/phone-number.cjs +1 -1
  90. package/dist/data-display/phone-number.cjs.map +1 -1
  91. package/dist/data-display/phone-number.d.mts +19 -0
  92. package/dist/data-display/phone-number.mjs +2 -0
  93. package/dist/data-display/phone-number.mjs.map +1 -0
  94. package/dist/data-display/role-badge.cjs +1 -1
  95. package/dist/data-display/role-badge.cjs.map +1 -1
  96. package/dist/data-display/role-badge.d.cts +1 -1
  97. package/dist/data-display/role-badge.d.mts +22 -0
  98. package/dist/data-display/role-badge.mjs +2 -0
  99. package/dist/data-display/role-badge.mjs.map +1 -0
  100. package/dist/data-display/statistic.cjs +1 -2
  101. package/dist/data-display/statistic.d.cts +3 -3
  102. package/dist/data-display/statistic.d.mts +57 -0
  103. package/dist/data-display/statistic.mjs +1 -0
  104. package/dist/data-display/user.cjs +1 -2
  105. package/dist/data-display/user.d.mts +23 -0
  106. package/dist/data-display/user.mjs +1 -0
  107. package/dist/date-D4NVl6C9.cjs +2 -0
  108. package/dist/date-D4NVl6C9.cjs.map +1 -0
  109. package/dist/date-fY3sUcLp.mjs +2 -0
  110. package/dist/date-fY3sUcLp.mjs.map +1 -0
  111. package/dist/dialog-BigPrWIj.cjs +2 -0
  112. package/dist/dialog-BigPrWIj.cjs.map +1 -0
  113. package/dist/dialog-CLDnvNH_.mjs +2 -0
  114. package/dist/dialog-CLDnvNH_.mjs.map +1 -0
  115. package/dist/dialog-CYHT9WNs.d.cts +90 -0
  116. package/dist/dialog-pWSVE0gd.d.mts +90 -0
  117. package/dist/dialogs/confirm-dialog.cjs +1 -1
  118. package/dist/dialogs/confirm-dialog.d.mts +142 -0
  119. package/dist/dialogs/confirm-dialog.mjs +2 -0
  120. package/dist/dialogs/confirm-dialog.mjs.map +1 -0
  121. package/dist/dialogs/detail-dialog/components/sidebar.cjs +1 -1
  122. package/dist/dialogs/detail-dialog/components/sidebar.d.cts +26 -26
  123. package/dist/dialogs/detail-dialog/components/sidebar.d.mts +209 -0
  124. package/dist/dialogs/detail-dialog/components/sidebar.mjs +1 -0
  125. package/dist/dialogs/detail-dialog/index.cjs +1 -1
  126. package/dist/dialogs/detail-dialog/index.cjs.map +1 -1
  127. package/dist/dialogs/detail-dialog/index.d.mts +45 -0
  128. package/dist/dialogs/detail-dialog/index.mjs +2 -0
  129. package/dist/dialogs/detail-dialog/index.mjs.map +1 -0
  130. package/dist/dialogs/error-dialog.cjs +1 -1
  131. package/dist/dialogs/error-dialog.d.mts +25 -0
  132. package/dist/dialogs/error-dialog.mjs +2 -0
  133. package/dist/dialogs/error-dialog.mjs.map +1 -0
  134. package/dist/dialogs/loading-dialog.cjs +1 -1
  135. package/dist/dialogs/loading-dialog.cjs.map +1 -1
  136. package/dist/dialogs/loading-dialog.d.mts +21 -0
  137. package/dist/dialogs/loading-dialog.mjs +2 -0
  138. package/dist/dialogs/loading-dialog.mjs.map +1 -0
  139. package/dist/dist-Cx5ufCdr.cjs +2 -0
  140. package/dist/dist-Cx5ufCdr.cjs.map +1 -0
  141. package/dist/dist-DVrfqn8H.mjs +2 -0
  142. package/dist/dist-DVrfqn8H.mjs.map +1 -0
  143. package/dist/drawer-BB8BZzDG.cjs +2 -0
  144. package/dist/drawer-BB8BZzDG.cjs.map +1 -0
  145. package/dist/drawer-CMD7JWH8.mjs +2 -0
  146. package/dist/drawer-CMD7JWH8.mjs.map +1 -0
  147. package/dist/dropdown-menu-BWhiVsEf.mjs +2 -0
  148. package/dist/dropdown-menu-BWhiVsEf.mjs.map +1 -0
  149. package/dist/dropdown-menu-CVh520yG.cjs +2 -0
  150. package/dist/dropdown-menu-CVh520yG.cjs.map +1 -0
  151. package/dist/features/descriptions/index.cjs +1 -1
  152. package/dist/features/descriptions/index.cjs.map +1 -1
  153. package/dist/features/descriptions/index.d.cts +3 -3
  154. package/dist/features/descriptions/index.d.mts +246 -0
  155. package/dist/features/descriptions/index.mjs +2 -0
  156. package/dist/features/descriptions/index.mjs.map +1 -0
  157. package/dist/features/search-modal/index.cjs +1 -1
  158. package/dist/features/search-modal/index.d.cts +2 -2
  159. package/dist/features/search-modal/index.d.mts +17 -0
  160. package/dist/features/search-modal/index.mjs +1 -0
  161. package/dist/features/tables/index.cjs +1 -1
  162. package/dist/features/tables/index.d.cts +1 -1
  163. package/dist/features/tables/index.d.mts +3 -0
  164. package/dist/features/tables/index.mjs +1 -0
  165. package/dist/features/tanstack-form/index.cjs +1 -1
  166. package/dist/features/tanstack-form/index.d.cts +1 -1
  167. package/dist/features/tanstack-form/index.d.mts +2 -0
  168. package/dist/features/tanstack-form/index.mjs +1 -0
  169. package/dist/features/text-editor/index.cjs +1 -1
  170. package/dist/features/text-editor/index.d.cts +1 -1
  171. package/dist/features/text-editor/index.d.mts +2 -0
  172. package/dist/features/text-editor/index.mjs +1 -0
  173. package/dist/field-BrlETeXX.cjs +2 -0
  174. package/dist/field-BrlETeXX.cjs.map +1 -0
  175. package/dist/field-dYemS0hQ.mjs +2 -0
  176. package/dist/field-dYemS0hQ.mjs.map +1 -0
  177. package/dist/flex-B6YSJzGe.mjs +2 -0
  178. package/dist/flex-B6YSJzGe.mjs.map +1 -0
  179. package/dist/flex-DmWmOBn5.cjs +2 -0
  180. package/dist/flex-DmWmOBn5.cjs.map +1 -0
  181. package/dist/heading-De4Pn3mZ.mjs +2 -0
  182. package/dist/heading-De4Pn3mZ.mjs.map +1 -0
  183. package/dist/heading-tGTqk3pA.cjs +2 -0
  184. package/dist/heading-tGTqk3pA.cjs.map +1 -0
  185. package/dist/image-D7OZ13Ib.mjs +2 -0
  186. package/dist/image-D7OZ13Ib.mjs.map +1 -0
  187. package/dist/image-W_Yb0xTB.cjs +2 -0
  188. package/dist/image-W_Yb0xTB.cjs.map +1 -0
  189. package/dist/index-BsWsCPh8.d.cts +1093 -0
  190. package/dist/index-CMqwTAAq.d.mts +2348 -0
  191. package/dist/index-Cm62M0Ft.d.mts +90 -0
  192. package/dist/index-DSciiDhn.d.cts +2348 -0
  193. package/dist/index-DXU6DwLg.d.mts +1093 -0
  194. package/dist/index-DiW-62hY.d.mts +85 -0
  195. package/dist/index-FIl1Am8j.d.cts +85 -0
  196. package/dist/index-KO98y6L0.d.cts +90 -0
  197. package/dist/index.cjs +1 -1
  198. package/dist/index.d.cts +11 -11
  199. package/dist/index.d.mts +93 -0
  200. package/dist/index.mjs +1 -0
  201. package/dist/input-B_ucx08i.d.cts +44 -0
  202. package/dist/input-Drm_rLe2.d.mts +44 -0
  203. package/dist/input-NJP2wQOm.mjs +2 -0
  204. package/dist/input-NJP2wQOm.mjs.map +1 -0
  205. package/dist/input-WJ0DLHTR.cjs +2 -0
  206. package/dist/input-WJ0DLHTR.cjs.map +1 -0
  207. package/dist/label-CC6fXVbC.cjs +2 -0
  208. package/dist/label-CC6fXVbC.cjs.map +1 -0
  209. package/dist/label-CUCpwS5D.mjs +2 -0
  210. package/dist/label-CUCpwS5D.mjs.map +1 -0
  211. package/dist/layouts/cms-layout/index.cjs +1 -1
  212. package/dist/layouts/cms-layout/index.d.cts +1 -1
  213. package/dist/layouts/cms-layout/index.d.mts +2 -0
  214. package/dist/layouts/cms-layout/index.mjs +1 -0
  215. package/dist/layouts/flex.cjs +1 -1
  216. package/dist/layouts/flex.d.cts +5 -5
  217. package/dist/layouts/flex.d.mts +117 -0
  218. package/dist/layouts/flex.mjs +1 -0
  219. package/dist/layouts/grid.cjs +1 -1
  220. package/dist/layouts/grid.d.mts +19 -0
  221. package/dist/layouts/grid.mjs +2 -0
  222. package/dist/layouts/grid.mjs.map +1 -0
  223. package/dist/layouts/payment-layout/index.cjs +1 -1
  224. package/dist/layouts/payment-layout/index.d.mts +74 -0
  225. package/dist/layouts/payment-layout/index.mjs +1 -0
  226. package/dist/pages/FeatureDeveloping.cjs +1 -1
  227. package/dist/pages/FeatureDeveloping.cjs.map +1 -1
  228. package/dist/pages/FeatureDeveloping.d.cts +2 -2
  229. package/dist/pages/FeatureDeveloping.d.mts +43 -0
  230. package/dist/pages/FeatureDeveloping.mjs +2 -0
  231. package/dist/pages/FeatureDeveloping.mjs.map +1 -0
  232. package/dist/pages/FeatureFixing.cjs +1 -1
  233. package/dist/pages/FeatureFixing.cjs.map +1 -1
  234. package/dist/pages/FeatureFixing.d.cts +2 -2
  235. package/dist/pages/FeatureFixing.d.mts +43 -0
  236. package/dist/pages/FeatureFixing.mjs +2 -0
  237. package/dist/pages/FeatureFixing.mjs.map +1 -0
  238. package/dist/pages/LoginPage.cjs +1 -1
  239. package/dist/pages/LoginPage.cjs.map +1 -1
  240. package/dist/pages/LoginPage.d.cts +2 -2
  241. package/dist/pages/LoginPage.d.mts +55 -0
  242. package/dist/pages/LoginPage.mjs +2 -0
  243. package/dist/pages/LoginPage.mjs.map +1 -0
  244. package/dist/pages/NotAuthorized.cjs +1 -1
  245. package/dist/pages/NotAuthorized.cjs.map +1 -1
  246. package/dist/pages/NotAuthorized.d.cts +2 -2
  247. package/dist/pages/NotAuthorized.d.mts +43 -0
  248. package/dist/pages/NotAuthorized.mjs +2 -0
  249. package/dist/pages/NotAuthorized.mjs.map +1 -0
  250. package/dist/pages/NotFound.cjs +1 -1
  251. package/dist/pages/NotFound.cjs.map +1 -1
  252. package/dist/pages/NotFound.d.cts +2 -2
  253. package/dist/pages/NotFound.d.mts +43 -0
  254. package/dist/pages/NotFound.mjs +2 -0
  255. package/dist/pages/NotFound.mjs.map +1 -0
  256. package/dist/pages/RegisterPage.cjs +1 -1
  257. package/dist/pages/RegisterPage.cjs.map +1 -1
  258. package/dist/pages/RegisterPage.d.cts +2 -2
  259. package/dist/pages/RegisterPage.d.mts +52 -0
  260. package/dist/pages/RegisterPage.mjs +2 -0
  261. package/dist/pages/RegisterPage.mjs.map +1 -0
  262. package/dist/pages/VerifyEmailPage.cjs +1 -1
  263. package/dist/pages/VerifyEmailPage.cjs.map +1 -1
  264. package/dist/pages/VerifyEmailPage.d.cts +2 -2
  265. package/dist/pages/VerifyEmailPage.d.mts +64 -0
  266. package/dist/pages/VerifyEmailPage.mjs +2 -0
  267. package/dist/pages/VerifyEmailPage.mjs.map +1 -0
  268. package/dist/paragraph-DYLaQtTV.mjs +2 -0
  269. package/dist/paragraph-DYLaQtTV.mjs.map +1 -0
  270. package/dist/paragraph-DvTZvbzw.cjs +2 -0
  271. package/dist/paragraph-DvTZvbzw.cjs.map +1 -0
  272. package/dist/payment-layout-DrQ0kZPX.mjs +2 -0
  273. package/dist/payment-layout-DrQ0kZPX.mjs.map +1 -0
  274. package/dist/payment-layout-DyILfyVG.cjs +2 -0
  275. package/dist/payment-layout-DyILfyVG.cjs.map +1 -0
  276. package/dist/popover-C8rcemA3.mjs +2 -0
  277. package/dist/popover-C8rcemA3.mjs.map +1 -0
  278. package/dist/popover-DBsC8Ltp.cjs +2 -0
  279. package/dist/popover-DBsC8Ltp.cjs.map +1 -0
  280. package/dist/progress-CLeM0e7Z.mjs +2 -0
  281. package/dist/progress-CLeM0e7Z.mjs.map +1 -0
  282. package/dist/progress-gvBqNiHp.cjs +2 -0
  283. package/dist/progress-gvBqNiHp.cjs.map +1 -0
  284. package/dist/radio-group-Y9bhdr55.mjs +2 -0
  285. package/dist/radio-group-Y9bhdr55.mjs.map +1 -0
  286. package/dist/radio-group-_TdMkv8w.cjs +2 -0
  287. package/dist/radio-group-_TdMkv8w.cjs.map +1 -0
  288. package/dist/resizable-CpCaSCFB.mjs +2 -0
  289. package/dist/resizable-CpCaSCFB.mjs.map +1 -0
  290. package/dist/resizable-sgpaHAb8.cjs +2 -0
  291. package/dist/resizable-sgpaHAb8.cjs.map +1 -0
  292. package/dist/search-modal-B-pzGcfP.cjs +2 -0
  293. package/dist/search-modal-B-pzGcfP.cjs.map +1 -0
  294. package/dist/search-modal-Bn-GOOCy.mjs +2 -0
  295. package/dist/search-modal-Bn-GOOCy.mjs.map +1 -0
  296. package/dist/select-CWLQHh8x.cjs +2 -0
  297. package/dist/select-CWLQHh8x.cjs.map +1 -0
  298. package/dist/select-LlPCZFSF.mjs +2 -0
  299. package/dist/select-LlPCZFSF.mjs.map +1 -0
  300. package/dist/separator-D3Gmkxzq.mjs +2 -0
  301. package/dist/separator-D3Gmkxzq.mjs.map +1 -0
  302. package/dist/separator-KuymG9g0.cjs +2 -0
  303. package/dist/separator-KuymG9g0.cjs.map +1 -0
  304. package/dist/sheet-BFlIfNaA.mjs +2 -0
  305. package/dist/sheet-BFlIfNaA.mjs.map +1 -0
  306. package/dist/sheet-CvKSi0UC.cjs +2 -0
  307. package/dist/sheet-CvKSi0UC.cjs.map +1 -0
  308. package/dist/sidebar-ChtCyu-n.mjs +2 -0
  309. package/dist/sidebar-ChtCyu-n.mjs.map +1 -0
  310. package/dist/sidebar-D5J2gcTw.cjs +2 -0
  311. package/dist/sidebar-D5J2gcTw.cjs.map +1 -0
  312. package/dist/skeleton-C51IdOfK.mjs +2 -0
  313. package/dist/skeleton-C51IdOfK.mjs.map +1 -0
  314. package/dist/skeleton-CX1USu1w.cjs +2 -0
  315. package/dist/skeleton-CX1USu1w.cjs.map +1 -0
  316. package/dist/spinner-CFxorYEt.cjs +2 -0
  317. package/dist/spinner-CFxorYEt.cjs.map +1 -0
  318. package/dist/spinner-eClTgHjk.mjs +2 -0
  319. package/dist/spinner-eClTgHjk.mjs.map +1 -0
  320. package/dist/statistic-DDXilD7q.cjs +2 -0
  321. package/dist/statistic-DDXilD7q.cjs.map +1 -0
  322. package/dist/statistic-cwLwcukn.mjs +2 -0
  323. package/dist/statistic-cwLwcukn.mjs.map +1 -0
  324. package/dist/switch-BP7EPatj.mjs +2 -0
  325. package/dist/switch-BP7EPatj.mjs.map +1 -0
  326. package/dist/switch-DVfOV7wP.cjs +2 -0
  327. package/dist/switch-DVfOV7wP.cjs.map +1 -0
  328. package/dist/systems/google.cjs +1 -1
  329. package/dist/systems/google.d.mts +53 -0
  330. package/dist/systems/google.mjs +2 -0
  331. package/dist/systems/google.mjs.map +1 -0
  332. package/dist/tables-CFrsk2lM.mjs +4 -0
  333. package/dist/tables-CFrsk2lM.mjs.map +1 -0
  334. package/dist/tables-CPKHe3k-.cjs +4 -0
  335. package/dist/tables-CPKHe3k-.cjs.map +1 -0
  336. package/dist/tanstack-form-DT1TqIDl.mjs +12 -0
  337. package/dist/tanstack-form-DT1TqIDl.mjs.map +1 -0
  338. package/dist/tanstack-form-DatI41wz.cjs +12 -0
  339. package/dist/tanstack-form-DatI41wz.cjs.map +1 -0
  340. package/dist/text-editor-5mA7XyaI.mjs +2 -0
  341. package/dist/text-editor-5mA7XyaI.mjs.map +1 -0
  342. package/dist/text-editor-CvJN3nSL.cjs +2 -0
  343. package/dist/text-editor-CvJN3nSL.cjs.map +1 -0
  344. package/dist/textarea-7HDXcaK9.mjs +2 -0
  345. package/dist/textarea-7HDXcaK9.mjs.map +1 -0
  346. package/dist/textarea-Cc9CF8wD.cjs +2 -0
  347. package/dist/textarea-Cc9CF8wD.cjs.map +1 -0
  348. package/dist/tooltip-CBdoIzoM.cjs +2 -0
  349. package/dist/tooltip-CBdoIzoM.cjs.map +1 -0
  350. package/dist/tooltip-Dxl5Wa8i.mjs +2 -0
  351. package/dist/tooltip-Dxl5Wa8i.mjs.map +1 -0
  352. package/dist/types-B5nyTWtO.mjs +2 -0
  353. package/dist/types-B5nyTWtO.mjs.map +1 -0
  354. package/dist/types-BD1t0Bj8.cjs +2 -0
  355. package/dist/types-BD1t0Bj8.cjs.map +1 -0
  356. package/dist/types-Cc_mLRAn.d.cts +24 -0
  357. package/dist/types-YLu40dXY.d.mts +24 -0
  358. package/dist/typography/paragraph.cjs +1 -1
  359. package/dist/typography/paragraph.d.cts +4 -4
  360. package/dist/typography/paragraph.d.mts +48 -0
  361. package/dist/typography/paragraph.mjs +1 -0
  362. package/dist/typography/title.cjs +1 -1
  363. package/dist/typography/title.d.mts +43 -0
  364. package/dist/typography/title.mjs +2 -0
  365. package/dist/typography/title.mjs.map +1 -0
  366. package/dist/ui/alert-dialog.cjs +1 -1
  367. package/dist/ui/alert-dialog.d.cts +12 -12
  368. package/dist/ui/alert-dialog.d.mts +90 -0
  369. package/dist/ui/alert-dialog.mjs +2 -0
  370. package/dist/ui/alert-dialog.mjs.map +1 -0
  371. package/dist/ui/alert.cjs +1 -1
  372. package/dist/ui/alert.d.cts +1 -1
  373. package/dist/ui/alert.d.mts +2 -0
  374. package/dist/ui/alert.mjs +1 -0
  375. package/dist/ui/aspect-ratio.cjs +1 -1
  376. package/dist/ui/aspect-ratio.d.cts +2 -2
  377. package/dist/ui/aspect-ratio.d.mts +24 -0
  378. package/dist/ui/aspect-ratio.mjs +2 -0
  379. package/dist/ui/aspect-ratio.mjs.map +1 -0
  380. package/dist/ui/avatar.cjs +1 -2
  381. package/dist/ui/avatar.d.cts +4 -4
  382. package/dist/ui/avatar.d.mts +35 -0
  383. package/dist/ui/avatar.mjs +1 -0
  384. package/dist/ui/badge.cjs +1 -2
  385. package/dist/ui/badge.d.cts +2 -42
  386. package/dist/ui/badge.d.mts +2 -0
  387. package/dist/ui/badge.mjs +1 -0
  388. package/dist/ui/breadcrumb.cjs +1 -1
  389. package/dist/ui/breadcrumb.cjs.map +1 -1
  390. package/dist/ui/breadcrumb.d.cts +8 -8
  391. package/dist/ui/breadcrumb.d.mts +72 -0
  392. package/dist/ui/breadcrumb.mjs +2 -0
  393. package/dist/ui/breadcrumb.mjs.map +1 -0
  394. package/dist/ui/button-group.cjs +1 -1
  395. package/dist/ui/button-group.cjs.map +1 -1
  396. package/dist/ui/button-group.d.cts +7 -7
  397. package/dist/ui/button-group.d.mts +50 -0
  398. package/dist/ui/button-group.mjs +2 -0
  399. package/dist/ui/button-group.mjs.map +1 -0
  400. package/dist/ui/button.cjs +1 -2
  401. package/dist/ui/button.d.cts +1 -1
  402. package/dist/ui/button.d.mts +2 -0
  403. package/dist/ui/button.mjs +1 -0
  404. package/dist/ui/buttons/add-new.cjs +1 -1
  405. package/dist/ui/buttons/add-new.cjs.map +1 -1
  406. package/dist/ui/buttons/add-new.d.mts +17 -0
  407. package/dist/ui/buttons/add-new.mjs +2 -0
  408. package/dist/ui/buttons/add-new.mjs.map +1 -0
  409. package/dist/ui/buttons/edit.cjs +1 -1
  410. package/dist/ui/buttons/edit.cjs.map +1 -1
  411. package/dist/ui/buttons/edit.d.mts +17 -0
  412. package/dist/ui/buttons/edit.mjs +2 -0
  413. package/dist/ui/buttons/edit.mjs.map +1 -0
  414. package/dist/ui/buttons/refresh.cjs +1 -1
  415. package/dist/ui/buttons/refresh.cjs.map +1 -1
  416. package/dist/ui/buttons/refresh.d.mts +17 -0
  417. package/dist/ui/buttons/refresh.mjs +2 -0
  418. package/dist/ui/buttons/refresh.mjs.map +1 -0
  419. package/dist/ui/buttons/trash.cjs +1 -1
  420. package/dist/ui/buttons/trash.cjs.map +1 -1
  421. package/dist/ui/buttons/trash.d.mts +17 -0
  422. package/dist/ui/buttons/trash.mjs +2 -0
  423. package/dist/ui/buttons/trash.mjs.map +1 -0
  424. package/dist/ui/buttons/upload-image.cjs +1 -1
  425. package/dist/ui/buttons/upload-image.cjs.map +1 -1
  426. package/dist/ui/buttons/upload-image.d.mts +24 -0
  427. package/dist/ui/buttons/upload-image.mjs +2 -0
  428. package/dist/ui/buttons/upload-image.mjs.map +1 -0
  429. package/dist/ui/calendar.cjs +1 -2
  430. package/dist/ui/calendar.d.cts +4 -4
  431. package/dist/ui/calendar.d.mts +45 -0
  432. package/dist/ui/calendar.mjs +1 -0
  433. package/dist/ui/card.cjs +1 -1
  434. package/dist/ui/card.d.cts +8 -8
  435. package/dist/ui/card.d.mts +63 -0
  436. package/dist/ui/card.mjs +2 -0
  437. package/dist/ui/card.mjs.map +1 -0
  438. package/dist/ui/carousel.cjs +1 -1
  439. package/dist/ui/carousel.cjs.map +1 -1
  440. package/dist/ui/carousel.d.cts +7 -7
  441. package/dist/ui/carousel.d.mts +71 -0
  442. package/dist/ui/carousel.mjs +2 -0
  443. package/dist/ui/carousel.mjs.map +1 -0
  444. package/dist/ui/checkbox.cjs +1 -2
  445. package/dist/ui/checkbox.d.cts +2 -2
  446. package/dist/ui/checkbox.d.mts +26 -0
  447. package/dist/ui/checkbox.mjs +1 -0
  448. package/dist/ui/collapsible.cjs +1 -1
  449. package/dist/ui/collapsible.d.cts +4 -4
  450. package/dist/ui/collapsible.d.mts +34 -0
  451. package/dist/ui/collapsible.mjs +2 -0
  452. package/dist/ui/collapsible.mjs.map +1 -0
  453. package/dist/ui/command.cjs +1 -2
  454. package/dist/ui/command.d.cts +11 -11
  455. package/dist/ui/command.d.mts +89 -0
  456. package/dist/ui/command.mjs +1 -0
  457. package/dist/ui/context-menu.cjs +1 -1
  458. package/dist/ui/context-menu.d.cts +16 -16
  459. package/dist/ui/context-menu.d.mts +125 -0
  460. package/dist/ui/context-menu.mjs +2 -0
  461. package/dist/ui/context-menu.mjs.map +1 -0
  462. package/dist/ui/dialog.cjs +1 -2
  463. package/dist/ui/dialog.d.cts +2 -90
  464. package/dist/ui/dialog.d.mts +2 -0
  465. package/dist/ui/dialog.mjs +1 -0
  466. package/dist/ui/drawer.cjs +1 -2
  467. package/dist/ui/drawer.d.cts +11 -11
  468. package/dist/ui/drawer.d.mts +72 -0
  469. package/dist/ui/drawer.mjs +1 -0
  470. package/dist/ui/dropdown-menu.cjs +1 -2
  471. package/dist/ui/dropdown-menu.d.cts +16 -16
  472. package/dist/ui/dropdown-menu.d.mts +127 -0
  473. package/dist/ui/dropdown-menu.mjs +1 -0
  474. package/dist/ui/empty.cjs +1 -1
  475. package/dist/ui/empty.d.cts +9 -9
  476. package/dist/ui/empty.d.mts +68 -0
  477. package/dist/ui/empty.mjs +2 -0
  478. package/dist/ui/empty.mjs.map +1 -0
  479. package/dist/ui/field.cjs +1 -1
  480. package/dist/ui/field.d.cts +22 -22
  481. package/dist/ui/field.d.mts +65 -0
  482. package/dist/ui/field.mjs +1 -0
  483. package/dist/ui/file-uploader.cjs +2 -2
  484. package/dist/ui/file-uploader.cjs.map +1 -1
  485. package/dist/ui/file-uploader.d.cts +2 -2
  486. package/dist/ui/file-uploader.d.mts +103 -0
  487. package/dist/ui/file-uploader.mjs +3 -0
  488. package/dist/ui/file-uploader.mjs.map +1 -0
  489. package/dist/ui/form.cjs +1 -1
  490. package/dist/ui/form.cjs.map +1 -1
  491. package/dist/ui/form.d.cts +10 -10
  492. package/dist/ui/form.d.mts +112 -0
  493. package/dist/ui/form.mjs +2 -0
  494. package/dist/ui/form.mjs.map +1 -0
  495. package/dist/ui/hover-card.cjs +1 -1
  496. package/dist/ui/hover-card.d.cts +4 -4
  497. package/dist/ui/hover-card.d.mts +37 -0
  498. package/dist/ui/hover-card.mjs +2 -0
  499. package/dist/ui/hover-card.mjs.map +1 -0
  500. package/dist/ui/image.cjs +1 -2
  501. package/dist/ui/image.d.mts +36 -0
  502. package/dist/ui/image.mjs +1 -0
  503. package/dist/ui/input-otp.cjs +1 -1
  504. package/dist/ui/input-otp.d.cts +5 -5
  505. package/dist/ui/input-otp.d.mts +59 -0
  506. package/dist/ui/input-otp.mjs +2 -0
  507. package/dist/ui/input-otp.mjs.map +1 -0
  508. package/dist/ui/input.cjs +1 -2
  509. package/dist/ui/input.d.cts +2 -44
  510. package/dist/ui/input.d.mts +2 -0
  511. package/dist/ui/input.mjs +1 -0
  512. package/dist/ui/inputs/search-input.cjs +1 -1
  513. package/dist/ui/inputs/search-input.cjs.map +1 -1
  514. package/dist/ui/inputs/search-input.d.cts +3 -3
  515. package/dist/ui/inputs/search-input.d.mts +29 -0
  516. package/dist/ui/inputs/search-input.mjs +2 -0
  517. package/dist/ui/inputs/search-input.mjs.map +1 -0
  518. package/dist/ui/item.cjs +1 -1
  519. package/dist/ui/item.cjs.map +1 -1
  520. package/dist/ui/item.d.cts +15 -15
  521. package/dist/ui/item.d.mts +102 -0
  522. package/dist/ui/item.mjs +2 -0
  523. package/dist/ui/item.mjs.map +1 -0
  524. package/dist/ui/label.cjs +1 -2
  525. package/dist/ui/label.d.cts +2 -2
  526. package/dist/ui/label.d.mts +24 -0
  527. package/dist/ui/label.mjs +1 -0
  528. package/dist/ui/menubar.cjs +1 -1
  529. package/dist/ui/menubar.d.cts +17 -17
  530. package/dist/ui/menubar.d.mts +135 -0
  531. package/dist/ui/menubar.mjs +2 -0
  532. package/dist/ui/menubar.mjs.map +1 -0
  533. package/dist/ui/multi-select.cjs +1 -1
  534. package/dist/ui/multi-select.cjs.map +1 -1
  535. package/dist/ui/multi-select.d.cts +3 -3
  536. package/dist/ui/multi-select.d.mts +118 -0
  537. package/dist/ui/multi-select.mjs +2 -0
  538. package/dist/ui/multi-select.mjs.map +1 -0
  539. package/dist/ui/navigation-menu.cjs +1 -1
  540. package/dist/ui/navigation-menu.d.cts +11 -11
  541. package/dist/ui/navigation-menu.d.mts +77 -0
  542. package/dist/ui/navigation-menu.mjs +2 -0
  543. package/dist/ui/navigation-menu.mjs.map +1 -0
  544. package/dist/ui/pagination.cjs +1 -1
  545. package/dist/ui/pagination.d.cts +9 -9
  546. package/dist/ui/pagination.d.mts +67 -0
  547. package/dist/ui/pagination.mjs +2 -0
  548. package/dist/ui/pagination.mjs.map +1 -0
  549. package/dist/ui/popover.cjs +1 -2
  550. package/dist/ui/popover.d.cts +6 -6
  551. package/dist/ui/popover.d.mts +52 -0
  552. package/dist/ui/popover.mjs +1 -0
  553. package/dist/ui/progress.cjs +1 -2
  554. package/dist/ui/progress.d.cts +2 -2
  555. package/dist/ui/progress.d.mts +23 -0
  556. package/dist/ui/progress.mjs +1 -0
  557. package/dist/ui/radio-group.cjs +1 -2
  558. package/dist/ui/radio-group.d.cts +3 -3
  559. package/dist/ui/radio-group.d.mts +37 -0
  560. package/dist/ui/radio-group.mjs +1 -0
  561. package/dist/ui/resizable.cjs +1 -2
  562. package/dist/ui/resizable.d.cts +9 -9
  563. package/dist/ui/resizable.d.mts +63 -0
  564. package/dist/ui/resizable.mjs +1 -0
  565. package/dist/ui/scroll-area.cjs +1 -1
  566. package/dist/ui/scroll-area.d.cts +5 -5
  567. package/dist/ui/scroll-area.d.mts +37 -0
  568. package/dist/ui/scroll-area.mjs +2 -0
  569. package/dist/ui/scroll-area.mjs.map +1 -0
  570. package/dist/ui/select.cjs +1 -2
  571. package/dist/ui/select.d.cts +9 -9
  572. package/dist/ui/select.d.mts +77 -0
  573. package/dist/ui/select.mjs +1 -0
  574. package/dist/ui/separator.cjs +1 -2
  575. package/dist/ui/separator.d.cts +2 -2
  576. package/dist/ui/separator.d.mts +34 -0
  577. package/dist/ui/separator.mjs +1 -0
  578. package/dist/ui/sheet.cjs +1 -2
  579. package/dist/ui/sheet.d.cts +9 -9
  580. package/dist/ui/sheet.d.mts +69 -0
  581. package/dist/ui/sheet.mjs +1 -0
  582. package/dist/ui/skeleton.cjs +1 -1
  583. package/dist/ui/skeleton.d.cts +2 -2
  584. package/dist/ui/skeleton.d.mts +27 -0
  585. package/dist/ui/skeleton.mjs +1 -0
  586. package/dist/ui/slider.cjs +1 -1
  587. package/dist/ui/slider.d.cts +2 -2
  588. package/dist/ui/slider.d.mts +26 -0
  589. package/dist/ui/slider.mjs +2 -0
  590. package/dist/ui/slider.mjs.map +1 -0
  591. package/dist/ui/sonner.cjs +1 -1
  592. package/dist/ui/sonner.d.cts +2 -2
  593. package/dist/ui/sonner.d.mts +24 -0
  594. package/dist/ui/sonner.mjs +2 -0
  595. package/dist/ui/sonner.mjs.map +1 -0
  596. package/dist/ui/spinner.cjs +1 -2
  597. package/dist/ui/spinner.d.cts +2 -2
  598. package/dist/ui/spinner.d.mts +25 -0
  599. package/dist/ui/spinner.mjs +1 -0
  600. package/dist/ui/switch.cjs +1 -2
  601. package/dist/ui/switch.d.cts +2 -2
  602. package/dist/ui/switch.d.mts +26 -0
  603. package/dist/ui/switch.mjs +1 -0
  604. package/dist/ui/table.cjs +1 -1
  605. package/dist/ui/table.d.cts +17 -17
  606. package/dist/ui/table.d.mts +73 -0
  607. package/dist/ui/table.mjs +2 -0
  608. package/dist/ui/table.mjs.map +1 -0
  609. package/dist/ui/tabs.cjs +1 -1
  610. package/dist/ui/tabs.d.cts +5 -5
  611. package/dist/ui/tabs.d.mts +44 -0
  612. package/dist/ui/tabs.mjs +2 -0
  613. package/dist/ui/tabs.mjs.map +1 -0
  614. package/dist/ui/textarea.cjs +1 -2
  615. package/dist/ui/textarea.d.cts +2 -2
  616. package/dist/ui/textarea.d.mts +30 -0
  617. package/dist/ui/textarea.mjs +1 -0
  618. package/dist/ui/toggle-group.cjs +1 -1
  619. package/dist/ui/toggle-group.cjs.map +1 -1
  620. package/dist/ui/toggle-group.d.cts +4 -4
  621. package/dist/ui/toggle-group.d.mts +39 -0
  622. package/dist/ui/toggle-group.mjs +2 -0
  623. package/dist/ui/toggle-group.mjs.map +1 -0
  624. package/dist/ui/toggle.cjs +1 -1
  625. package/dist/ui/toggle.d.cts +4 -4
  626. package/dist/ui/toggle.d.mts +32 -0
  627. package/dist/ui/toggle.mjs +2 -0
  628. package/dist/ui/toggle.mjs.map +1 -0
  629. package/dist/ui/tooltip.cjs +1 -2
  630. package/dist/ui/tooltip.d.cts +5 -5
  631. package/dist/ui/tooltip.d.mts +55 -0
  632. package/dist/ui/tooltip.mjs +1 -0
  633. package/dist/user-DtZy4P9d.mjs +2 -0
  634. package/dist/user-DtZy4P9d.mjs.map +1 -0
  635. package/dist/user-ii4FBhO1.cjs +2 -0
  636. package/dist/user-ii4FBhO1.cjs.map +1 -0
  637. package/package.json +100 -100
  638. package/dist/alert-BVsYpWFX.d.cts +0 -88
  639. package/dist/alert-D5VmhFT9.js +0 -2
  640. package/dist/alert-D5VmhFT9.js.map +0 -1
  641. package/dist/alert-DXmXDeGs.d.ts +0 -88
  642. package/dist/alert-JwECRZfz.cjs +0 -2
  643. package/dist/alert-JwECRZfz.cjs.map +0 -1
  644. package/dist/button-BBfGvggN.d.ts +0 -174
  645. package/dist/button-BEjRVw6s.d.cts +0 -174
  646. package/dist/button.variants-BruXd4VM.js +0 -2
  647. package/dist/button.variants-BruXd4VM.js.map +0 -1
  648. package/dist/button.variants-DgVFNsVc.cjs +0 -2
  649. package/dist/button.variants-DgVFNsVc.cjs.map +0 -1
  650. package/dist/cards/grid-product-card.d.ts +0 -37
  651. package/dist/cards/grid-product-card.js +0 -2
  652. package/dist/cards/grid-product-card.js.map +0 -1
  653. package/dist/cards/product-card.d.ts +0 -37
  654. package/dist/cards/product-card.js +0 -2
  655. package/dist/cards/product-card.js.map +0 -1
  656. package/dist/cards/simple-card.d.ts +0 -35
  657. package/dist/cards/simple-card.js +0 -2
  658. package/dist/cards/simple-card.js.map +0 -1
  659. package/dist/chunk-Bmb41Sf3.cjs +0 -1
  660. package/dist/close-Dflkky9q.cjs +0 -2
  661. package/dist/close-Dflkky9q.cjs.map +0 -1
  662. package/dist/close-DrkwaVXK.js +0 -2
  663. package/dist/close-DrkwaVXK.js.map +0 -1
  664. package/dist/cms-layout-B8maJRLp.cjs +0 -2
  665. package/dist/cms-layout-B8maJRLp.cjs.map +0 -1
  666. package/dist/cms-layout-CLeGdpMb.js +0 -2
  667. package/dist/cms-layout-CLeGdpMb.js.map +0 -1
  668. package/dist/data-display/country.d.ts +0 -22
  669. package/dist/data-display/country.js +0 -2
  670. package/dist/data-display/country.js.map +0 -1
  671. package/dist/data-display/data-list.d.ts +0 -43
  672. package/dist/data-display/data-list.js +0 -2
  673. package/dist/data-display/data-list.js.map +0 -1
  674. package/dist/data-display/date-tooltip.d.ts +0 -19
  675. package/dist/data-display/date-tooltip.js +0 -2
  676. package/dist/data-display/date-tooltip.js.map +0 -1
  677. package/dist/data-display/date.cjs.map +0 -1
  678. package/dist/data-display/date.d.ts +0 -39
  679. package/dist/data-display/date.js +0 -2
  680. package/dist/data-display/date.js.map +0 -1
  681. package/dist/data-display/empty.d.ts +0 -21
  682. package/dist/data-display/empty.js +0 -2
  683. package/dist/data-display/empty.js.map +0 -1
  684. package/dist/data-display/name.d.ts +0 -19
  685. package/dist/data-display/name.js +0 -2
  686. package/dist/data-display/name.js.map +0 -1
  687. package/dist/data-display/phone-number.d.ts +0 -19
  688. package/dist/data-display/phone-number.js +0 -2
  689. package/dist/data-display/phone-number.js.map +0 -1
  690. package/dist/data-display/role-badge.d.ts +0 -22
  691. package/dist/data-display/role-badge.js +0 -2
  692. package/dist/data-display/role-badge.js.map +0 -1
  693. package/dist/data-display/statistic.cjs.map +0 -1
  694. package/dist/data-display/statistic.d.ts +0 -57
  695. package/dist/data-display/statistic.js +0 -2
  696. package/dist/data-display/statistic.js.map +0 -1
  697. package/dist/data-display/user.cjs.map +0 -1
  698. package/dist/data-display/user.d.ts +0 -23
  699. package/dist/data-display/user.js +0 -2
  700. package/dist/data-display/user.js.map +0 -1
  701. package/dist/dialogs/confirm-dialog.d.ts +0 -142
  702. package/dist/dialogs/confirm-dialog.js +0 -2
  703. package/dist/dialogs/confirm-dialog.js.map +0 -1
  704. package/dist/dialogs/detail-dialog/components/sidebar.d.ts +0 -209
  705. package/dist/dialogs/detail-dialog/components/sidebar.js +0 -1
  706. package/dist/dialogs/detail-dialog/index.d.ts +0 -45
  707. package/dist/dialogs/detail-dialog/index.js +0 -2
  708. package/dist/dialogs/detail-dialog/index.js.map +0 -1
  709. package/dist/dialogs/error-dialog.d.ts +0 -25
  710. package/dist/dialogs/error-dialog.js +0 -2
  711. package/dist/dialogs/error-dialog.js.map +0 -1
  712. package/dist/dialogs/loading-dialog.d.ts +0 -21
  713. package/dist/dialogs/loading-dialog.js +0 -2
  714. package/dist/dialogs/loading-dialog.js.map +0 -1
  715. package/dist/features/descriptions/index.d.ts +0 -246
  716. package/dist/features/descriptions/index.js +0 -2
  717. package/dist/features/descriptions/index.js.map +0 -1
  718. package/dist/features/search-modal/index.d.ts +0 -17
  719. package/dist/features/search-modal/index.js +0 -1
  720. package/dist/features/tables/index.d.ts +0 -2
  721. package/dist/features/tables/index.js +0 -1
  722. package/dist/features/tanstack-form/index.d.ts +0 -2
  723. package/dist/features/tanstack-form/index.js +0 -1
  724. package/dist/features/text-editor/index.d.ts +0 -2
  725. package/dist/features/text-editor/index.js +0 -1
  726. package/dist/field-0gaEKxov.cjs +0 -2
  727. package/dist/field-0gaEKxov.cjs.map +0 -1
  728. package/dist/field-DG-kX3HU.js +0 -2
  729. package/dist/field-DG-kX3HU.js.map +0 -1
  730. package/dist/flex-BAfCk_in.cjs +0 -2
  731. package/dist/flex-BAfCk_in.cjs.map +0 -1
  732. package/dist/flex-D_XtSjf4.js +0 -2
  733. package/dist/flex-D_XtSjf4.js.map +0 -1
  734. package/dist/heading-BX7ZVnVg.cjs +0 -2
  735. package/dist/heading-BX7ZVnVg.cjs.map +0 -1
  736. package/dist/heading-Bw3eo6IT.js +0 -2
  737. package/dist/heading-Bw3eo6IT.js.map +0 -1
  738. package/dist/index--eHW_BCk.d.ts +0 -85
  739. package/dist/index-C257sc-c.d.ts +0 -90
  740. package/dist/index-C4ZFmaZm.d.cts +0 -2348
  741. package/dist/index-DWEpRM8i.d.cts +0 -1093
  742. package/dist/index-DnQeeNHV.d.ts +0 -1093
  743. package/dist/index-_MFRCXuJ.d.cts +0 -85
  744. package/dist/index-rNI5ia8r.d.cts +0 -90
  745. package/dist/index-rZ2RtGJp.d.ts +0 -2348
  746. package/dist/index.d.ts +0 -93
  747. package/dist/index.js +0 -1
  748. package/dist/layouts/cms-layout/index.d.ts +0 -2
  749. package/dist/layouts/cms-layout/index.js +0 -1
  750. package/dist/layouts/flex.d.ts +0 -117
  751. package/dist/layouts/flex.js +0 -1
  752. package/dist/layouts/grid.d.ts +0 -19
  753. package/dist/layouts/grid.js +0 -2
  754. package/dist/layouts/grid.js.map +0 -1
  755. package/dist/layouts/payment-layout/index.d.ts +0 -74
  756. package/dist/layouts/payment-layout/index.js +0 -1
  757. package/dist/pages/FeatureDeveloping.d.ts +0 -43
  758. package/dist/pages/FeatureDeveloping.js +0 -2
  759. package/dist/pages/FeatureDeveloping.js.map +0 -1
  760. package/dist/pages/FeatureFixing.d.ts +0 -43
  761. package/dist/pages/FeatureFixing.js +0 -2
  762. package/dist/pages/FeatureFixing.js.map +0 -1
  763. package/dist/pages/LoginPage.d.ts +0 -55
  764. package/dist/pages/LoginPage.js +0 -2
  765. package/dist/pages/LoginPage.js.map +0 -1
  766. package/dist/pages/NotAuthorized.d.ts +0 -43
  767. package/dist/pages/NotAuthorized.js +0 -2
  768. package/dist/pages/NotAuthorized.js.map +0 -1
  769. package/dist/pages/NotFound.d.ts +0 -43
  770. package/dist/pages/NotFound.js +0 -2
  771. package/dist/pages/NotFound.js.map +0 -1
  772. package/dist/pages/RegisterPage.d.ts +0 -52
  773. package/dist/pages/RegisterPage.js +0 -2
  774. package/dist/pages/RegisterPage.js.map +0 -1
  775. package/dist/pages/VerifyEmailPage.d.ts +0 -64
  776. package/dist/pages/VerifyEmailPage.js +0 -2
  777. package/dist/pages/VerifyEmailPage.js.map +0 -1
  778. package/dist/paragraph-D0x3Jc6W.cjs +0 -2
  779. package/dist/paragraph-D0x3Jc6W.cjs.map +0 -1
  780. package/dist/paragraph-ESjXXqHU.js +0 -2
  781. package/dist/paragraph-ESjXXqHU.js.map +0 -1
  782. package/dist/payment-layout-CksJbGsl.js +0 -2
  783. package/dist/payment-layout-CksJbGsl.js.map +0 -1
  784. package/dist/payment-layout-O7TNw2Cr.cjs +0 -2
  785. package/dist/payment-layout-O7TNw2Cr.cjs.map +0 -1
  786. package/dist/search-modal-Db8Xp2L4.cjs +0 -2
  787. package/dist/search-modal-Db8Xp2L4.cjs.map +0 -1
  788. package/dist/search-modal-DdonKbwA.js +0 -2
  789. package/dist/search-modal-DdonKbwA.js.map +0 -1
  790. package/dist/sidebar-BCuXtop_.js +0 -2
  791. package/dist/sidebar-BCuXtop_.js.map +0 -1
  792. package/dist/sidebar-CQZlWCK4.cjs +0 -2
  793. package/dist/sidebar-CQZlWCK4.cjs.map +0 -1
  794. package/dist/skeleton-DAcbjBGp.js +0 -2
  795. package/dist/skeleton-DAcbjBGp.js.map +0 -1
  796. package/dist/skeleton-oQFT4xR2.cjs +0 -2
  797. package/dist/skeleton-oQFT4xR2.cjs.map +0 -1
  798. package/dist/systems/google.d.ts +0 -53
  799. package/dist/systems/google.js +0 -2
  800. package/dist/systems/google.js.map +0 -1
  801. package/dist/tables-DbwtCMRI.js +0 -4
  802. package/dist/tables-DbwtCMRI.js.map +0 -1
  803. package/dist/tables-DgZbLZQP.cjs +0 -4
  804. package/dist/tables-DgZbLZQP.cjs.map +0 -1
  805. package/dist/tanstack-form-C3SGhsmN.cjs +0 -2
  806. package/dist/tanstack-form-C3SGhsmN.cjs.map +0 -1
  807. package/dist/tanstack-form-Ds_Zjt20.js +0 -2
  808. package/dist/tanstack-form-Ds_Zjt20.js.map +0 -1
  809. package/dist/text-editor-DhTxCxvH.cjs +0 -2
  810. package/dist/text-editor-DhTxCxvH.cjs.map +0 -1
  811. package/dist/text-editor-DwisU9_U.js +0 -2
  812. package/dist/text-editor-DwisU9_U.js.map +0 -1
  813. package/dist/typography/paragraph.d.ts +0 -48
  814. package/dist/typography/paragraph.js +0 -1
  815. package/dist/typography/title.d.ts +0 -43
  816. package/dist/typography/title.js +0 -2
  817. package/dist/typography/title.js.map +0 -1
  818. package/dist/ui/alert-dialog.d.ts +0 -90
  819. package/dist/ui/alert-dialog.js +0 -2
  820. package/dist/ui/alert-dialog.js.map +0 -1
  821. package/dist/ui/alert.d.ts +0 -2
  822. package/dist/ui/alert.js +0 -1
  823. package/dist/ui/aspect-ratio.d.ts +0 -24
  824. package/dist/ui/aspect-ratio.js +0 -2
  825. package/dist/ui/aspect-ratio.js.map +0 -1
  826. package/dist/ui/avatar.cjs.map +0 -1
  827. package/dist/ui/avatar.d.ts +0 -35
  828. package/dist/ui/avatar.js +0 -2
  829. package/dist/ui/avatar.js.map +0 -1
  830. package/dist/ui/badge.cjs.map +0 -1
  831. package/dist/ui/badge.d.ts +0 -42
  832. package/dist/ui/badge.js +0 -2
  833. package/dist/ui/badge.js.map +0 -1
  834. package/dist/ui/breadcrumb.d.ts +0 -72
  835. package/dist/ui/breadcrumb.js +0 -2
  836. package/dist/ui/breadcrumb.js.map +0 -1
  837. package/dist/ui/button-group.d.ts +0 -50
  838. package/dist/ui/button-group.js +0 -2
  839. package/dist/ui/button-group.js.map +0 -1
  840. package/dist/ui/button.cjs.map +0 -1
  841. package/dist/ui/button.d.ts +0 -2
  842. package/dist/ui/button.js +0 -2
  843. package/dist/ui/button.js.map +0 -1
  844. package/dist/ui/buttons/add-new.d.ts +0 -17
  845. package/dist/ui/buttons/add-new.js +0 -2
  846. package/dist/ui/buttons/add-new.js.map +0 -1
  847. package/dist/ui/buttons/edit.d.ts +0 -17
  848. package/dist/ui/buttons/edit.js +0 -2
  849. package/dist/ui/buttons/edit.js.map +0 -1
  850. package/dist/ui/buttons/refresh.d.ts +0 -17
  851. package/dist/ui/buttons/refresh.js +0 -2
  852. package/dist/ui/buttons/refresh.js.map +0 -1
  853. package/dist/ui/buttons/trash.d.ts +0 -17
  854. package/dist/ui/buttons/trash.js +0 -2
  855. package/dist/ui/buttons/trash.js.map +0 -1
  856. package/dist/ui/buttons/upload-image.d.ts +0 -24
  857. package/dist/ui/buttons/upload-image.js +0 -2
  858. package/dist/ui/buttons/upload-image.js.map +0 -1
  859. package/dist/ui/calendar.cjs.map +0 -1
  860. package/dist/ui/calendar.d.ts +0 -45
  861. package/dist/ui/calendar.js +0 -2
  862. package/dist/ui/calendar.js.map +0 -1
  863. package/dist/ui/card.d.ts +0 -63
  864. package/dist/ui/card.js +0 -2
  865. package/dist/ui/card.js.map +0 -1
  866. package/dist/ui/carousel.d.ts +0 -71
  867. package/dist/ui/carousel.js +0 -2
  868. package/dist/ui/carousel.js.map +0 -1
  869. package/dist/ui/checkbox.cjs.map +0 -1
  870. package/dist/ui/checkbox.d.ts +0 -26
  871. package/dist/ui/checkbox.js +0 -2
  872. package/dist/ui/checkbox.js.map +0 -1
  873. package/dist/ui/collapsible.d.ts +0 -34
  874. package/dist/ui/collapsible.js +0 -2
  875. package/dist/ui/collapsible.js.map +0 -1
  876. package/dist/ui/command.cjs.map +0 -1
  877. package/dist/ui/command.d.ts +0 -89
  878. package/dist/ui/command.js +0 -2
  879. package/dist/ui/command.js.map +0 -1
  880. package/dist/ui/context-menu.d.ts +0 -125
  881. package/dist/ui/context-menu.js +0 -2
  882. package/dist/ui/context-menu.js.map +0 -1
  883. package/dist/ui/dialog.cjs.map +0 -1
  884. package/dist/ui/dialog.d.ts +0 -90
  885. package/dist/ui/dialog.js +0 -2
  886. package/dist/ui/dialog.js.map +0 -1
  887. package/dist/ui/drawer.cjs.map +0 -1
  888. package/dist/ui/drawer.d.ts +0 -72
  889. package/dist/ui/drawer.js +0 -2
  890. package/dist/ui/drawer.js.map +0 -1
  891. package/dist/ui/dropdown-menu.cjs.map +0 -1
  892. package/dist/ui/dropdown-menu.d.ts +0 -127
  893. package/dist/ui/dropdown-menu.js +0 -2
  894. package/dist/ui/dropdown-menu.js.map +0 -1
  895. package/dist/ui/empty.d.ts +0 -68
  896. package/dist/ui/empty.js +0 -2
  897. package/dist/ui/empty.js.map +0 -1
  898. package/dist/ui/field.d.ts +0 -65
  899. package/dist/ui/field.js +0 -1
  900. package/dist/ui/file-uploader.d.ts +0 -103
  901. package/dist/ui/file-uploader.js +0 -3
  902. package/dist/ui/file-uploader.js.map +0 -1
  903. package/dist/ui/form.d.ts +0 -112
  904. package/dist/ui/form.js +0 -2
  905. package/dist/ui/form.js.map +0 -1
  906. package/dist/ui/hover-card.d.ts +0 -37
  907. package/dist/ui/hover-card.js +0 -2
  908. package/dist/ui/hover-card.js.map +0 -1
  909. package/dist/ui/image.cjs.map +0 -1
  910. package/dist/ui/image.d.ts +0 -36
  911. package/dist/ui/image.js +0 -2
  912. package/dist/ui/image.js.map +0 -1
  913. package/dist/ui/input-otp.d.ts +0 -59
  914. package/dist/ui/input-otp.js +0 -2
  915. package/dist/ui/input-otp.js.map +0 -1
  916. package/dist/ui/input.cjs.map +0 -1
  917. package/dist/ui/input.d.ts +0 -44
  918. package/dist/ui/input.js +0 -2
  919. package/dist/ui/input.js.map +0 -1
  920. package/dist/ui/inputs/search-input.d.ts +0 -29
  921. package/dist/ui/inputs/search-input.js +0 -2
  922. package/dist/ui/inputs/search-input.js.map +0 -1
  923. package/dist/ui/item.d.ts +0 -102
  924. package/dist/ui/item.js +0 -2
  925. package/dist/ui/item.js.map +0 -1
  926. package/dist/ui/label.cjs.map +0 -1
  927. package/dist/ui/label.d.ts +0 -24
  928. package/dist/ui/label.js +0 -2
  929. package/dist/ui/label.js.map +0 -1
  930. package/dist/ui/menubar.d.ts +0 -135
  931. package/dist/ui/menubar.js +0 -2
  932. package/dist/ui/menubar.js.map +0 -1
  933. package/dist/ui/multi-select.d.ts +0 -117
  934. package/dist/ui/multi-select.js +0 -2
  935. package/dist/ui/multi-select.js.map +0 -1
  936. package/dist/ui/navigation-menu.d.ts +0 -77
  937. package/dist/ui/navigation-menu.js +0 -2
  938. package/dist/ui/navigation-menu.js.map +0 -1
  939. package/dist/ui/pagination.d.ts +0 -67
  940. package/dist/ui/pagination.js +0 -2
  941. package/dist/ui/pagination.js.map +0 -1
  942. package/dist/ui/popover.cjs.map +0 -1
  943. package/dist/ui/popover.d.ts +0 -52
  944. package/dist/ui/popover.js +0 -2
  945. package/dist/ui/popover.js.map +0 -1
  946. package/dist/ui/progress.cjs.map +0 -1
  947. package/dist/ui/progress.d.ts +0 -23
  948. package/dist/ui/progress.js +0 -2
  949. package/dist/ui/progress.js.map +0 -1
  950. package/dist/ui/radio-group.cjs.map +0 -1
  951. package/dist/ui/radio-group.d.ts +0 -37
  952. package/dist/ui/radio-group.js +0 -2
  953. package/dist/ui/radio-group.js.map +0 -1
  954. package/dist/ui/resizable.cjs.map +0 -1
  955. package/dist/ui/resizable.d.ts +0 -63
  956. package/dist/ui/resizable.js +0 -2
  957. package/dist/ui/resizable.js.map +0 -1
  958. package/dist/ui/scroll-area.d.ts +0 -37
  959. package/dist/ui/scroll-area.js +0 -2
  960. package/dist/ui/scroll-area.js.map +0 -1
  961. package/dist/ui/select.cjs.map +0 -1
  962. package/dist/ui/select.d.ts +0 -77
  963. package/dist/ui/select.js +0 -2
  964. package/dist/ui/select.js.map +0 -1
  965. package/dist/ui/separator.cjs.map +0 -1
  966. package/dist/ui/separator.d.ts +0 -34
  967. package/dist/ui/separator.js +0 -2
  968. package/dist/ui/separator.js.map +0 -1
  969. package/dist/ui/sheet.cjs.map +0 -1
  970. package/dist/ui/sheet.d.ts +0 -69
  971. package/dist/ui/sheet.js +0 -2
  972. package/dist/ui/sheet.js.map +0 -1
  973. package/dist/ui/skeleton.d.ts +0 -27
  974. package/dist/ui/skeleton.js +0 -1
  975. package/dist/ui/slider.d.ts +0 -26
  976. package/dist/ui/slider.js +0 -2
  977. package/dist/ui/slider.js.map +0 -1
  978. package/dist/ui/sonner.d.ts +0 -24
  979. package/dist/ui/sonner.js +0 -2
  980. package/dist/ui/sonner.js.map +0 -1
  981. package/dist/ui/spinner.cjs.map +0 -1
  982. package/dist/ui/spinner.d.ts +0 -25
  983. package/dist/ui/spinner.js +0 -2
  984. package/dist/ui/spinner.js.map +0 -1
  985. package/dist/ui/switch.cjs.map +0 -1
  986. package/dist/ui/switch.d.ts +0 -26
  987. package/dist/ui/switch.js +0 -2
  988. package/dist/ui/switch.js.map +0 -1
  989. package/dist/ui/table.d.ts +0 -73
  990. package/dist/ui/table.js +0 -2
  991. package/dist/ui/table.js.map +0 -1
  992. package/dist/ui/tabs.d.ts +0 -44
  993. package/dist/ui/tabs.js +0 -2
  994. package/dist/ui/tabs.js.map +0 -1
  995. package/dist/ui/textarea.cjs.map +0 -1
  996. package/dist/ui/textarea.d.ts +0 -30
  997. package/dist/ui/textarea.js +0 -2
  998. package/dist/ui/textarea.js.map +0 -1
  999. package/dist/ui/toggle-group.d.ts +0 -39
  1000. package/dist/ui/toggle-group.js +0 -2
  1001. package/dist/ui/toggle-group.js.map +0 -1
  1002. package/dist/ui/toggle.d.ts +0 -32
  1003. package/dist/ui/toggle.js +0 -2
  1004. package/dist/ui/toggle.js.map +0 -1
  1005. package/dist/ui/tooltip.cjs.map +0 -1
  1006. package/dist/ui/tooltip.d.ts +0 -55
  1007. package/dist/ui/tooltip.js +0 -2
  1008. package/dist/ui/tooltip.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"dialog.cjs","names":["DialogPrimitive","CloseButton","headingVariants","paragraphVariants"],"sources":["../../packages/components/ui/dialog.tsx"],"sourcesContent":["'use client';\n\nimport { cn } from '@customafk/react-toolkit/utils';\n\nimport { Dialog as DialogPrimitive } from 'radix-ui';\nimport { headingVariants } from '../typography/heading';\nimport { paragraphVariants } from '../typography/paragraph';\nimport { CloseButton } from './buttons/close';\n\n/**\n * Accessible modal dialog built on Radix UI's Dialog primitives with animated overlay, close button, and responsive sizing.\n *\n * @example\n * ```tsx\n * import {\n * Dialog, DialogTrigger, DialogContent,\n * DialogHeader, DialogTitle, DialogDescription, DialogFooter,\n * } from '@customafk/lunas-ui/ui/dialog';\n * import { Button } from '@customafk/lunas-ui/ui/button';\n *\n * <Dialog>\n * <DialogTrigger asChild>\n * <Button>Open dialog</Button>\n * </DialogTrigger>\n * <DialogContent>\n * <DialogHeader>\n * <DialogTitle>Confirm action</DialogTitle>\n * <DialogDescription>This cannot be undone.</DialogDescription>\n * </DialogHeader>\n * <DialogFooter>\n * <Button variant=\"outline\">Cancel</Button>\n * <Button>Confirm</Button>\n * </DialogFooter>\n * </DialogContent>\n * </Dialog>\n * ```\n */\nfunction Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>) {\n return <DialogPrimitive.Root data-slot=\"dialog\" {...props} />;\n}\n\n/** Element that opens the dialog when clicked; typically wrapped with `asChild` around a `Button`. */\nfunction DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>) {\n return <DialogPrimitive.Trigger data-slot=\"dialog-trigger\" {...props} />;\n}\n\n/** Renders dialog overlay and content into a portal outside the normal React tree. */\nfunction DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>) {\n return <DialogPrimitive.Portal data-slot=\"dialog-portal\" {...props} />;\n}\n\n/** Button that closes the dialog; can be composed with `asChild` to use a custom element. */\nfunction DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>) {\n return <DialogPrimitive.Close data-slot=\"dialog-close\" {...props} />;\n}\n\n/** Semi-transparent backdrop rendered behind the dialog panel with fade-in/out animation. */\nfunction DialogOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>) {\n return (\n <DialogPrimitive.Overlay\n data-slot=\"dialog-overlay\"\n className={cn(\n 'fixed inset-0 z-50 bg-black/50',\n 'data-[state=open]:fade-in-0 data-[state=open]:animate-in',\n 'data-[state=closed]:fade-out-0 data-[state=closed]:animate-out',\n className\n )}\n {...props}\n />\n );\n}\n\n/**\n * Animated dialog panel centred on screen; includes `DialogOverlay` and an optional close button.\n *\n * @param showCloseButton - When `true` (default), renders a `CloseButton` in the top-right corner.\n */\nfunction DialogContent({\n className,\n children,\n showCloseButton = true,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Content> & {\n /** When `true` (default), renders an `×` close button fixed to the top-right corner of the panel. */\n showCloseButton?: boolean;\n}) {\n return (\n <DialogPortal>\n <DialogOverlay />\n <DialogPrimitive.Content\n data-slot=\"dialog-content\"\n className={cn(\n 'fixed top-1/2 left-1/2 z-50 -translate-x-1/2 -translate-y-1/2',\n 'grid w-full max-w-[calc(100%-2rem)] bg-background',\n 'max-h-[85dvh] gap-4 rounded-2xl p-6 shadow-dialog outline-none duration-400',\n 'sm:max-w-lg',\n 'data-[state=open]:fade-in-0 data-[state=open]:zoom-in-80 data-[state=open]:animate-in',\n 'data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-80 data-[state=closed]:animate-out',\n className\n )}\n onOpenAutoFocus={event => {\n // Prevents focus from shifting to the content when the dialog opens, which can cause layout shift if the content includes autofocusable elements.\n event.preventDefault();\n }}\n {...props}\n >\n {children}\n {showCloseButton && (\n <DialogPrimitive.Close data-slot=\"dialog-close\" tabIndex={-1} asChild className=\"absolute top-3 right-3\">\n <CloseButton />\n </DialogPrimitive.Close>\n )}\n </DialogPrimitive.Content>\n </DialogPortal>\n );\n}\n\n/** Layout wrapper for the dialog title and description, stacked vertically with left alignment on wider screens. */\nfunction DialogHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"dialog-header\" className={cn('flex flex-col gap-2 text-center sm:text-left', className)} {...props} />;\n}\n\n/** Layout wrapper for dialog action buttons, stacked on mobile and right-aligned in a row on wider screens. */\nfunction DialogFooter({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"dialog-footer\" className={cn('flex flex-col-reverse gap-2 sm:flex-row sm:justify-end', className)} {...props} />;\n}\n\n/** Accessible heading for the dialog panel, styled with the h3 heading variant and announced by screen readers. */\nfunction DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>) {\n return <DialogPrimitive.Title data-slot=\"dialog-title\" className={cn(headingVariants({ level: 'h3' }), className)} {...props} />;\n}\n\n/** Muted supporting text that describes the dialog's purpose; read by screen readers alongside the title. */\nfunction DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>) {\n return <DialogPrimitive.Description data-slot=\"dialog-description\" className={cn(paragraphVariants({ variant: 'muted' }), className)} {...props} />;\n}\n\nexport { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };\n"],"mappings":"0QAqCA,SAAS,EAAO,CAAE,GAAG,GAA4D,CAC/E,OAAO,EAAA,EAAA,KAACA,EAAAA,OAAgB,KAAA,CAAK,YAAU,SAAS,GAAI,GAAS,CAI/D,SAAS,EAAc,CAAE,GAAG,GAA+D,CACzF,OAAO,EAAA,EAAA,KAACA,EAAAA,OAAgB,QAAA,CAAQ,YAAU,iBAAiB,GAAI,GAAS,CAI1E,SAAS,EAAa,CAAE,GAAG,GAA8D,CACvF,OAAO,EAAA,EAAA,KAACA,EAAAA,OAAgB,OAAA,CAAO,YAAU,gBAAgB,GAAI,GAAS,CAIxE,SAAS,EAAY,CAAE,GAAG,GAA6D,CACrF,OAAO,EAAA,EAAA,KAACA,EAAAA,OAAgB,MAAA,CAAM,YAAU,eAAe,GAAI,GAAS,CAItE,SAAS,EAAc,CAAE,YAAW,GAAG,GAA+D,CACpG,OACE,EAAA,EAAA,KAACA,EAAAA,OAAgB,QAAA,CACf,YAAU,iBACV,WAAA,EAAA,EAAA,IACE,iCACA,2DACA,iEACA,EACD,CACD,GAAI,GACJ,CASN,SAAS,EAAc,CACrB,YACA,WACA,kBAAkB,GAClB,GAAG,GAIF,CACD,OACE,EAAA,EAAA,MAAC,EAAA,CAAA,SAAA,EACC,EAAA,EAAA,KAAC,EAAA,EAAA,CAAgB,EACjB,EAAA,EAAA,MAACA,EAAAA,OAAgB,QAAA,CACf,YAAU,iBACV,WAAA,EAAA,EAAA,IACE,gEACA,oDACA,8EACA,cACA,wFACA,iGACA,EACD,CACD,gBAAiB,GAAS,CAExB,EAAM,gBAAgB,EAExB,GAAI,YAEH,EACA,IACC,EAAA,EAAA,KAACA,EAAAA,OAAgB,MAAA,CAAM,YAAU,eAAe,SAAU,GAAI,QAAA,GAAQ,UAAU,mCAC9E,EAAA,EAAA,KAACC,EAAAA,EAAAA,EAAAA,CAAc,EACO,CAAA,EAEF,CAAA,CAAA,CACb,CAKnB,SAAS,EAAa,CAAE,YAAW,GAAG,GAAsC,CAC1E,OAAO,EAAA,EAAA,KAAC,MAAA,CAAI,YAAU,gBAAgB,WAAA,EAAA,EAAA,IAAc,+CAAgD,EAAU,CAAE,GAAI,GAAS,CAI/H,SAAS,EAAa,CAAE,YAAW,GAAG,GAAsC,CAC1E,OAAO,EAAA,EAAA,KAAC,MAAA,CAAI,YAAU,gBAAgB,WAAA,EAAA,EAAA,IAAc,yDAA0D,EAAU,CAAE,GAAI,GAAS,CAIzI,SAAS,EAAY,CAAE,YAAW,GAAG,GAA6D,CAChG,OAAO,EAAA,EAAA,KAACD,EAAAA,OAAgB,MAAA,CAAM,YAAU,eAAe,WAAA,EAAA,EAAA,IAAcE,EAAAA,EAAgB,CAAE,MAAO,KAAM,CAAC,CAAE,EAAU,CAAE,GAAI,GAAS,CAIlI,SAAS,EAAkB,CAAE,YAAW,GAAG,GAAmE,CAC5G,OAAO,EAAA,EAAA,KAACF,EAAAA,OAAgB,YAAA,CAAY,YAAU,qBAAqB,WAAA,EAAA,EAAA,IAAcG,EAAAA,EAAkB,CAAE,QAAS,QAAS,CAAC,CAAE,EAAU,CAAE,GAAI,GAAS"}
@@ -1,90 +0,0 @@
1
- import * as react122 from "react";
2
- import { Dialog as Dialog$1 } from "radix-ui";
3
-
4
- //#region packages/components/ui/dialog.d.ts
5
-
6
- /**
7
- * Accessible modal dialog built on Radix UI's Dialog primitives with animated overlay, close button, and responsive sizing.
8
- *
9
- * @example
10
- * ```tsx
11
- * import {
12
- * Dialog, DialogTrigger, DialogContent,
13
- * DialogHeader, DialogTitle, DialogDescription, DialogFooter,
14
- * } from '@customafk/lunas-ui/ui/dialog';
15
- * import { Button } from '@customafk/lunas-ui/ui/button';
16
- *
17
- * <Dialog>
18
- * <DialogTrigger asChild>
19
- * <Button>Open dialog</Button>
20
- * </DialogTrigger>
21
- * <DialogContent>
22
- * <DialogHeader>
23
- * <DialogTitle>Confirm action</DialogTitle>
24
- * <DialogDescription>This cannot be undone.</DialogDescription>
25
- * </DialogHeader>
26
- * <DialogFooter>
27
- * <Button variant="outline">Cancel</Button>
28
- * <Button>Confirm</Button>
29
- * </DialogFooter>
30
- * </DialogContent>
31
- * </Dialog>
32
- * ```
33
- */
34
- declare function Dialog({
35
- ...props
36
- }: React.ComponentProps<typeof Dialog$1.Root>): react122.JSX.Element;
37
- /** Element that opens the dialog when clicked; typically wrapped with `asChild` around a `Button`. */
38
- declare function DialogTrigger({
39
- ...props
40
- }: React.ComponentProps<typeof Dialog$1.Trigger>): react122.JSX.Element;
41
- /** Renders dialog overlay and content into a portal outside the normal React tree. */
42
- declare function DialogPortal({
43
- ...props
44
- }: React.ComponentProps<typeof Dialog$1.Portal>): react122.JSX.Element;
45
- /** Button that closes the dialog; can be composed with `asChild` to use a custom element. */
46
- declare function DialogClose({
47
- ...props
48
- }: React.ComponentProps<typeof Dialog$1.Close>): react122.JSX.Element;
49
- /** Semi-transparent backdrop rendered behind the dialog panel with fade-in/out animation. */
50
- declare function DialogOverlay({
51
- className,
52
- ...props
53
- }: React.ComponentProps<typeof Dialog$1.Overlay>): react122.JSX.Element;
54
- /**
55
- * Animated dialog panel centred on screen; includes `DialogOverlay` and an optional close button.
56
- *
57
- * @param showCloseButton - When `true` (default), renders a `CloseButton` in the top-right corner.
58
- */
59
- declare function DialogContent({
60
- className,
61
- children,
62
- showCloseButton,
63
- ...props
64
- }: React.ComponentProps<typeof Dialog$1.Content> & {
65
- /** When `true` (default), renders an `×` close button fixed to the top-right corner of the panel. */
66
- showCloseButton?: boolean;
67
- }): react122.JSX.Element;
68
- /** Layout wrapper for the dialog title and description, stacked vertically with left alignment on wider screens. */
69
- declare function DialogHeader({
70
- className,
71
- ...props
72
- }: React.ComponentProps<'div'>): react122.JSX.Element;
73
- /** Layout wrapper for dialog action buttons, stacked on mobile and right-aligned in a row on wider screens. */
74
- declare function DialogFooter({
75
- className,
76
- ...props
77
- }: React.ComponentProps<'div'>): react122.JSX.Element;
78
- /** Accessible heading for the dialog panel, styled with the h3 heading variant and announced by screen readers. */
79
- declare function DialogTitle({
80
- className,
81
- ...props
82
- }: React.ComponentProps<typeof Dialog$1.Title>): react122.JSX.Element;
83
- /** Muted supporting text that describes the dialog's purpose; read by screen readers alongside the title. */
84
- declare function DialogDescription({
85
- className,
86
- ...props
87
- }: React.ComponentProps<typeof Dialog$1.Description>): react122.JSX.Element;
88
- //#endregion
89
- export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };
90
- //# sourceMappingURL=dialog.d.ts.map
package/dist/ui/dialog.js DELETED
@@ -1,2 +0,0 @@
1
- "use client";import{t as e}from"../heading-Bw3eo6IT.js";import{n as t}from"../paragraph-ESjXXqHU.js";import{t as n}from"../close-DrkwaVXK.js";import{cn as r}from"@customafk/react-toolkit/utils";import{jsx as i,jsxs as a}from"react/jsx-runtime";import{Dialog as o}from"radix-ui";function s({...e}){return i(o.Root,{"data-slot":`dialog`,...e})}function c({...e}){return i(o.Trigger,{"data-slot":`dialog-trigger`,...e})}function l({...e}){return i(o.Portal,{"data-slot":`dialog-portal`,...e})}function u({...e}){return i(o.Close,{"data-slot":`dialog-close`,...e})}function d({className:e,...t}){return i(o.Overlay,{"data-slot":`dialog-overlay`,className:r(`fixed inset-0 z-50 bg-black/50`,`data-[state=open]:fade-in-0 data-[state=open]:animate-in`,`data-[state=closed]:fade-out-0 data-[state=closed]:animate-out`,e),...t})}function f({className:e,children:t,showCloseButton:s=!0,...c}){return a(l,{children:[i(d,{}),a(o.Content,{"data-slot":`dialog-content`,className:r(`fixed top-1/2 left-1/2 z-50 -translate-x-1/2 -translate-y-1/2`,`grid w-full max-w-[calc(100%-2rem)] bg-background`,`max-h-[85dvh] gap-4 rounded-2xl p-6 shadow-dialog outline-none duration-400`,`sm:max-w-lg`,`data-[state=open]:fade-in-0 data-[state=open]:zoom-in-80 data-[state=open]:animate-in`,`data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-80 data-[state=closed]:animate-out`,e),onOpenAutoFocus:e=>{e.preventDefault()},...c,children:[t,s&&i(o.Close,{"data-slot":`dialog-close`,tabIndex:-1,asChild:!0,className:`absolute top-3 right-3`,children:i(n,{})})]})]})}function p({className:e,...t}){return i(`div`,{"data-slot":`dialog-header`,className:r(`flex flex-col gap-2 text-center sm:text-left`,e),...t})}function m({className:e,...t}){return i(`div`,{"data-slot":`dialog-footer`,className:r(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,e),...t})}function h({className:t,...n}){return i(o.Title,{"data-slot":`dialog-title`,className:r(e({level:`h3`}),t),...n})}function g({className:e,...n}){return i(o.Description,{"data-slot":`dialog-description`,className:r(t({variant:`muted`}),e),...n})}export{s as Dialog,u as DialogClose,f as DialogContent,g as DialogDescription,m as DialogFooter,p as DialogHeader,d as DialogOverlay,l as DialogPortal,h as DialogTitle,c as DialogTrigger};
2
- //# sourceMappingURL=dialog.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dialog.js","names":["DialogPrimitive"],"sources":["../../packages/components/ui/dialog.tsx"],"sourcesContent":["'use client';\n\nimport { cn } from '@customafk/react-toolkit/utils';\n\nimport { Dialog as DialogPrimitive } from 'radix-ui';\nimport { headingVariants } from '../typography/heading';\nimport { paragraphVariants } from '../typography/paragraph';\nimport { CloseButton } from './buttons/close';\n\n/**\n * Accessible modal dialog built on Radix UI's Dialog primitives with animated overlay, close button, and responsive sizing.\n *\n * @example\n * ```tsx\n * import {\n * Dialog, DialogTrigger, DialogContent,\n * DialogHeader, DialogTitle, DialogDescription, DialogFooter,\n * } from '@customafk/lunas-ui/ui/dialog';\n * import { Button } from '@customafk/lunas-ui/ui/button';\n *\n * <Dialog>\n * <DialogTrigger asChild>\n * <Button>Open dialog</Button>\n * </DialogTrigger>\n * <DialogContent>\n * <DialogHeader>\n * <DialogTitle>Confirm action</DialogTitle>\n * <DialogDescription>This cannot be undone.</DialogDescription>\n * </DialogHeader>\n * <DialogFooter>\n * <Button variant=\"outline\">Cancel</Button>\n * <Button>Confirm</Button>\n * </DialogFooter>\n * </DialogContent>\n * </Dialog>\n * ```\n */\nfunction Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>) {\n return <DialogPrimitive.Root data-slot=\"dialog\" {...props} />;\n}\n\n/** Element that opens the dialog when clicked; typically wrapped with `asChild` around a `Button`. */\nfunction DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>) {\n return <DialogPrimitive.Trigger data-slot=\"dialog-trigger\" {...props} />;\n}\n\n/** Renders dialog overlay and content into a portal outside the normal React tree. */\nfunction DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>) {\n return <DialogPrimitive.Portal data-slot=\"dialog-portal\" {...props} />;\n}\n\n/** Button that closes the dialog; can be composed with `asChild` to use a custom element. */\nfunction DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>) {\n return <DialogPrimitive.Close data-slot=\"dialog-close\" {...props} />;\n}\n\n/** Semi-transparent backdrop rendered behind the dialog panel with fade-in/out animation. */\nfunction DialogOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>) {\n return (\n <DialogPrimitive.Overlay\n data-slot=\"dialog-overlay\"\n className={cn(\n 'fixed inset-0 z-50 bg-black/50',\n 'data-[state=open]:fade-in-0 data-[state=open]:animate-in',\n 'data-[state=closed]:fade-out-0 data-[state=closed]:animate-out',\n className\n )}\n {...props}\n />\n );\n}\n\n/**\n * Animated dialog panel centred on screen; includes `DialogOverlay` and an optional close button.\n *\n * @param showCloseButton - When `true` (default), renders a `CloseButton` in the top-right corner.\n */\nfunction DialogContent({\n className,\n children,\n showCloseButton = true,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Content> & {\n /** When `true` (default), renders an `×` close button fixed to the top-right corner of the panel. */\n showCloseButton?: boolean;\n}) {\n return (\n <DialogPortal>\n <DialogOverlay />\n <DialogPrimitive.Content\n data-slot=\"dialog-content\"\n className={cn(\n 'fixed top-1/2 left-1/2 z-50 -translate-x-1/2 -translate-y-1/2',\n 'grid w-full max-w-[calc(100%-2rem)] bg-background',\n 'max-h-[85dvh] gap-4 rounded-2xl p-6 shadow-dialog outline-none duration-400',\n 'sm:max-w-lg',\n 'data-[state=open]:fade-in-0 data-[state=open]:zoom-in-80 data-[state=open]:animate-in',\n 'data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-80 data-[state=closed]:animate-out',\n className\n )}\n onOpenAutoFocus={event => {\n // Prevents focus from shifting to the content when the dialog opens, which can cause layout shift if the content includes autofocusable elements.\n event.preventDefault();\n }}\n {...props}\n >\n {children}\n {showCloseButton && (\n <DialogPrimitive.Close data-slot=\"dialog-close\" tabIndex={-1} asChild className=\"absolute top-3 right-3\">\n <CloseButton />\n </DialogPrimitive.Close>\n )}\n </DialogPrimitive.Content>\n </DialogPortal>\n );\n}\n\n/** Layout wrapper for the dialog title and description, stacked vertically with left alignment on wider screens. */\nfunction DialogHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"dialog-header\" className={cn('flex flex-col gap-2 text-center sm:text-left', className)} {...props} />;\n}\n\n/** Layout wrapper for dialog action buttons, stacked on mobile and right-aligned in a row on wider screens. */\nfunction DialogFooter({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"dialog-footer\" className={cn('flex flex-col-reverse gap-2 sm:flex-row sm:justify-end', className)} {...props} />;\n}\n\n/** Accessible heading for the dialog panel, styled with the h3 heading variant and announced by screen readers. */\nfunction DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>) {\n return <DialogPrimitive.Title data-slot=\"dialog-title\" className={cn(headingVariants({ level: 'h3' }), className)} {...props} />;\n}\n\n/** Muted supporting text that describes the dialog's purpose; read by screen readers alongside the title. */\nfunction DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>) {\n return <DialogPrimitive.Description data-slot=\"dialog-description\" className={cn(paragraphVariants({ variant: 'muted' }), className)} {...props} />;\n}\n\nexport { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };\n"],"mappings":"sRAqCA,SAAS,EAAO,CAAE,GAAG,GAA4D,CAC/E,OAAO,EAACA,EAAgB,KAAA,CAAK,YAAU,SAAS,GAAI,GAAS,CAI/D,SAAS,EAAc,CAAE,GAAG,GAA+D,CACzF,OAAO,EAACA,EAAgB,QAAA,CAAQ,YAAU,iBAAiB,GAAI,GAAS,CAI1E,SAAS,EAAa,CAAE,GAAG,GAA8D,CACvF,OAAO,EAACA,EAAgB,OAAA,CAAO,YAAU,gBAAgB,GAAI,GAAS,CAIxE,SAAS,EAAY,CAAE,GAAG,GAA6D,CACrF,OAAO,EAACA,EAAgB,MAAA,CAAM,YAAU,eAAe,GAAI,GAAS,CAItE,SAAS,EAAc,CAAE,YAAW,GAAG,GAA+D,CACpG,OACE,EAACA,EAAgB,QAAA,CACf,YAAU,iBACV,UAAW,EACT,iCACA,2DACA,iEACA,EACD,CACD,GAAI,GACJ,CASN,SAAS,EAAc,CACrB,YACA,WACA,kBAAkB,GAClB,GAAG,GAIF,CACD,OACE,EAAC,EAAA,CAAA,SAAA,CACC,EAAC,EAAA,EAAA,CAAgB,CACjB,EAACA,EAAgB,QAAA,CACf,YAAU,iBACV,UAAW,EACT,gEACA,oDACA,8EACA,cACA,wFACA,iGACA,EACD,CACD,gBAAiB,GAAS,CAExB,EAAM,gBAAgB,EAExB,GAAI,YAEH,EACA,GACC,EAACA,EAAgB,MAAA,CAAM,YAAU,eAAe,SAAU,GAAI,QAAA,GAAQ,UAAU,kCAC9E,EAAC,EAAA,EAAA,CAAc,EACO,CAAA,EAEF,CAAA,CAAA,CACb,CAKnB,SAAS,EAAa,CAAE,YAAW,GAAG,GAAsC,CAC1E,OAAO,EAAC,MAAA,CAAI,YAAU,gBAAgB,UAAW,EAAG,+CAAgD,EAAU,CAAE,GAAI,GAAS,CAI/H,SAAS,EAAa,CAAE,YAAW,GAAG,GAAsC,CAC1E,OAAO,EAAC,MAAA,CAAI,YAAU,gBAAgB,UAAW,EAAG,yDAA0D,EAAU,CAAE,GAAI,GAAS,CAIzI,SAAS,EAAY,CAAE,YAAW,GAAG,GAA6D,CAChG,OAAO,EAACA,EAAgB,MAAA,CAAM,YAAU,eAAe,UAAW,EAAG,EAAgB,CAAE,MAAO,KAAM,CAAC,CAAE,EAAU,CAAE,GAAI,GAAS,CAIlI,SAAS,EAAkB,CAAE,YAAW,GAAG,GAAmE,CAC5G,OAAO,EAACA,EAAgB,YAAA,CAAY,YAAU,qBAAqB,UAAW,EAAG,EAAkB,CAAE,QAAS,QAAS,CAAC,CAAE,EAAU,CAAE,GAAI,GAAS"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"drawer.cjs","names":["DrawerPrimitive"],"sources":["../../packages/components/ui/drawer.tsx"],"sourcesContent":["'use client';\nimport { cn } from '@customafk/react-toolkit/utils';\n\nimport { Drawer as DrawerPrimitive } from 'vaul';\n\n/**\n * Root provider for the Drawer — a vaul-powered slide-in panel supporting top, bottom, left, and right directions.\n *\n * @example\n * ```tsx\n * import { Drawer, DrawerTrigger, DrawerContent, DrawerHeader, DrawerTitle, DrawerDescription } from '@customafk/lunas-ui/ui/drawer';\n *\n * <Drawer>\n * <DrawerTrigger>Open Drawer</DrawerTrigger>\n * <DrawerContent>\n * <DrawerHeader>\n * <DrawerTitle>Confirm action</DrawerTitle>\n * <DrawerDescription>This action cannot be undone.</DrawerDescription>\n * </DrawerHeader>\n * </DrawerContent>\n * </Drawer>\n * ```\n */\nfunction Drawer({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>) {\n return <DrawerPrimitive.Root data-slot=\"drawer\" {...props} />;\n}\n\n/** Element that opens the Drawer when activated. */\nfunction DrawerTrigger({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Trigger>) {\n return <DrawerPrimitive.Trigger data-slot=\"drawer-trigger\" {...props} />;\n}\n\n/** Portals Drawer content outside the current DOM tree. */\nfunction DrawerPortal({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Portal>) {\n return <DrawerPrimitive.Portal data-slot=\"drawer-portal\" {...props} />;\n}\n\n/** Button that programmatically closes the Drawer. */\nfunction DrawerClose({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Close>) {\n return <DrawerPrimitive.Close data-slot=\"drawer-close\" {...props} />;\n}\n\n/** Dimmed backdrop rendered behind the Drawer panel. */\nfunction DrawerOverlay({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Overlay>) {\n return (\n <DrawerPrimitive.Overlay\n data-slot=\"drawer-overlay\"\n className={cn(\n 'fixed inset-0 z-50 bg-black/50',\n 'data-[state=open]:animate-in',\n 'data-[state=closed]:animate-out',\n 'data-[state=open]:fade-in-0',\n 'data-[state=closed]:fade-out-0',\n className\n )}\n {...props}\n />\n );\n}\n\n/** The main Drawer panel; automatically positions itself based on the direction set on the root. */\nfunction DrawerContent({ className, children, ...props }: React.ComponentProps<typeof DrawerPrimitive.Content>) {\n return (\n <DrawerPortal data-slot=\"drawer-portal\">\n <DrawerOverlay />\n <DrawerPrimitive.Content\n data-slot=\"drawer-content\"\n className={cn(\n 'group/drawer-content bg-background shadow-card fixed z-50 flex h-auto flex-col',\n\n 'data-[vaul-drawer-direction=top]:inset-x-0',\n 'data-[vaul-drawer-direction=top]:top-0',\n 'data-[vaul-drawer-direction=top]:mb-24',\n 'data-[vaul-drawer-direction=top]:max-h-[80vh]',\n 'data-[vaul-drawer-direction=top]:rounded-b-lg',\n\n 'data-[vaul-drawer-direction=bottom]:inset-x-0',\n 'data-[vaul-drawer-direction=bottom]:bottom-0',\n 'data-[vaul-drawer-direction=bottom]:mt-24',\n 'data-[vaul-drawer-direction=bottom]:max-h-[80vh]',\n 'data-[vaul-drawer-direction=bottom]:rounded-t-lg',\n\n 'data-[vaul-drawer-direction=right]:inset-y-0',\n 'data-[vaul-drawer-direction=right]:right-0',\n 'data-[vaul-drawer-direction=right]:w-3/4',\n 'data-[vaul-drawer-direction=right]:sm:max-w-sm',\n\n 'data-[vaul-drawer-direction=left]:inset-y-0',\n 'data-[vaul-drawer-direction=left]:left-0',\n 'data-[vaul-drawer-direction=left]:w-3/4',\n 'data-[vaul-drawer-direction=left]:sm:max-w-sm',\n className\n )}\n {...props}\n >\n <div className=\"bg-border-weak mx-auto mt-4 hidden h-2 w-25 shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block\" />\n {children}\n </DrawerPrimitive.Content>\n </DrawerPortal>\n );\n}\n\n/** Padded header section at the top of the Drawer for the title and description. */\nfunction DrawerHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"drawer-header\"\n className={cn(\n 'flex flex-col gap-0.5 p-4',\n 'md:gap-1.5 md:text-left',\n 'group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center',\n 'group-data-[vaul-drawer-direction=top]/drawer-content:text-center',\n className\n )}\n {...props}\n />\n );\n}\n\n/** Footer section pinned to the bottom of the Drawer, typically used for action buttons. */\nfunction DrawerFooter({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"drawer-footer\" className={cn('mt-auto flex flex-col gap-2 p-4', className)} {...props} />;\n}\n\n/** Accessible title element for the Drawer, announced by screen readers on open. */\nfunction DrawerTitle({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Title>) {\n return <DrawerPrimitive.Title data-slot=\"drawer-title\" className={cn('text-text-positive font-semibold', className)} {...props} />;\n}\n\n/** Accessible description element for the Drawer, providing supplemental context to the title. */\nfunction DrawerDescription({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Description>) {\n return <DrawerPrimitive.Description data-slot=\"drawer-description\" className={cn('text-text-positive-weak text-sm', className)} {...props} />;\n}\n\nexport { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger };\n"],"mappings":"uJAuBA,SAAS,EAAO,CAAE,GAAG,GAA4D,CAC/E,OAAO,EAAA,EAAA,KAACA,EAAAA,OAAgB,KAAA,CAAK,YAAU,SAAS,GAAI,GAAS,CAI/D,SAAS,EAAc,CAAE,GAAG,GAA+D,CACzF,OAAO,EAAA,EAAA,KAACA,EAAAA,OAAgB,QAAA,CAAQ,YAAU,iBAAiB,GAAI,GAAS,CAI1E,SAAS,EAAa,CAAE,GAAG,GAA8D,CACvF,OAAO,EAAA,EAAA,KAACA,EAAAA,OAAgB,OAAA,CAAO,YAAU,gBAAgB,GAAI,GAAS,CAIxE,SAAS,EAAY,CAAE,GAAG,GAA6D,CACrF,OAAO,EAAA,EAAA,KAACA,EAAAA,OAAgB,MAAA,CAAM,YAAU,eAAe,GAAI,GAAS,CAItE,SAAS,EAAc,CAAE,YAAW,GAAG,GAA+D,CACpG,OACE,EAAA,EAAA,KAACA,EAAAA,OAAgB,QAAA,CACf,YAAU,iBACV,WAAA,EAAA,EAAA,IACE,iCACA,+BACA,kCACA,8BACA,iCACA,EACD,CACD,GAAI,GACJ,CAKN,SAAS,EAAc,CAAE,YAAW,WAAU,GAAG,GAA+D,CAC9G,OACE,EAAA,EAAA,MAAC,EAAA,CAAa,YAAU,2BACtB,EAAA,EAAA,KAAC,EAAA,EAAA,CAAgB,EACjB,EAAA,EAAA,MAACA,EAAAA,OAAgB,QAAA,CACf,YAAU,iBACV,WAAA,EAAA,EAAA,IACE,iFAEA,6CACA,yCACA,yCACA,gDACA,gDAEA,gDACA,+CACA,4CACA,mDACA,mDAEA,+CACA,6CACA,2CACA,iDAEA,8CACA,2CACA,0CACA,gDACA,EACD,CACD,GAAI,aAEJ,EAAA,EAAA,KAAC,MAAA,CAAI,UAAU,mIAAA,CAAqI,CACnJ,EAAA,EACuB,CAAA,EACb,CAKnB,SAAS,EAAa,CAAE,YAAW,GAAG,GAAsC,CAC1E,OACE,EAAA,EAAA,KAAC,MAAA,CACC,YAAU,gBACV,WAAA,EAAA,EAAA,IACE,4BACA,0BACA,uEACA,oEACA,EACD,CACD,GAAI,GACJ,CAKN,SAAS,EAAa,CAAE,YAAW,GAAG,GAAsC,CAC1E,OAAO,EAAA,EAAA,KAAC,MAAA,CAAI,YAAU,gBAAgB,WAAA,EAAA,EAAA,IAAc,kCAAmC,EAAU,CAAE,GAAI,GAAS,CAIlH,SAAS,EAAY,CAAE,YAAW,GAAG,GAA6D,CAChG,OAAO,EAAA,EAAA,KAACA,EAAAA,OAAgB,MAAA,CAAM,YAAU,eAAe,WAAA,EAAA,EAAA,IAAc,mCAAoC,EAAU,CAAE,GAAI,GAAS,CAIpI,SAAS,EAAkB,CAAE,YAAW,GAAG,GAAmE,CAC5G,OAAO,EAAA,EAAA,KAACA,EAAAA,OAAgB,YAAA,CAAY,YAAU,qBAAqB,WAAA,EAAA,EAAA,IAAc,kCAAmC,EAAU,CAAE,GAAI,GAAS"}
@@ -1,72 +0,0 @@
1
- import * as react112 from "react";
2
- import { Drawer as Drawer$1 } from "vaul";
3
-
4
- //#region packages/components/ui/drawer.d.ts
5
-
6
- /**
7
- * Root provider for the Drawer — a vaul-powered slide-in panel supporting top, bottom, left, and right directions.
8
- *
9
- * @example
10
- * ```tsx
11
- * import { Drawer, DrawerTrigger, DrawerContent, DrawerHeader, DrawerTitle, DrawerDescription } from '@customafk/lunas-ui/ui/drawer';
12
- *
13
- * <Drawer>
14
- * <DrawerTrigger>Open Drawer</DrawerTrigger>
15
- * <DrawerContent>
16
- * <DrawerHeader>
17
- * <DrawerTitle>Confirm action</DrawerTitle>
18
- * <DrawerDescription>This action cannot be undone.</DrawerDescription>
19
- * </DrawerHeader>
20
- * </DrawerContent>
21
- * </Drawer>
22
- * ```
23
- */
24
- declare function Drawer({
25
- ...props
26
- }: React.ComponentProps<typeof Drawer$1.Root>): react112.JSX.Element;
27
- /** Element that opens the Drawer when activated. */
28
- declare function DrawerTrigger({
29
- ...props
30
- }: React.ComponentProps<typeof Drawer$1.Trigger>): react112.JSX.Element;
31
- /** Portals Drawer content outside the current DOM tree. */
32
- declare function DrawerPortal({
33
- ...props
34
- }: React.ComponentProps<typeof Drawer$1.Portal>): react112.JSX.Element;
35
- /** Button that programmatically closes the Drawer. */
36
- declare function DrawerClose({
37
- ...props
38
- }: React.ComponentProps<typeof Drawer$1.Close>): react112.JSX.Element;
39
- /** Dimmed backdrop rendered behind the Drawer panel. */
40
- declare function DrawerOverlay({
41
- className,
42
- ...props
43
- }: React.ComponentProps<typeof Drawer$1.Overlay>): react112.JSX.Element;
44
- /** The main Drawer panel; automatically positions itself based on the direction set on the root. */
45
- declare function DrawerContent({
46
- className,
47
- children,
48
- ...props
49
- }: React.ComponentProps<typeof Drawer$1.Content>): react112.JSX.Element;
50
- /** Padded header section at the top of the Drawer for the title and description. */
51
- declare function DrawerHeader({
52
- className,
53
- ...props
54
- }: React.ComponentProps<'div'>): react112.JSX.Element;
55
- /** Footer section pinned to the bottom of the Drawer, typically used for action buttons. */
56
- declare function DrawerFooter({
57
- className,
58
- ...props
59
- }: React.ComponentProps<'div'>): react112.JSX.Element;
60
- /** Accessible title element for the Drawer, announced by screen readers on open. */
61
- declare function DrawerTitle({
62
- className,
63
- ...props
64
- }: React.ComponentProps<typeof Drawer$1.Title>): react112.JSX.Element;
65
- /** Accessible description element for the Drawer, providing supplemental context to the title. */
66
- declare function DrawerDescription({
67
- className,
68
- ...props
69
- }: React.ComponentProps<typeof Drawer$1.Description>): react112.JSX.Element;
70
- //#endregion
71
- export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger };
72
- //# sourceMappingURL=drawer.d.ts.map
package/dist/ui/drawer.js DELETED
@@ -1,2 +0,0 @@
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
@@ -1 +0,0 @@
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 +0,0 @@
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":"qLA6BA,SAAS,EAAa,CAAE,GAAG,GAAkE,CAC3F,OAAO,EAAA,EAAA,KAACA,EAAAA,aAAsB,KAAA,CAAK,YAAU,gBAAgB,GAAI,GAAS,CAI5E,SAAS,EAAmB,CAAE,GAAG,GAAoE,CACnG,OAAO,EAAA,EAAA,KAACA,EAAAA,aAAsB,OAAA,CAAO,YAAU,uBAAuB,GAAI,GAAS,CAIrF,SAAS,EAAoB,CAAE,GAAG,GAAqE,CACrG,OAAO,EAAA,EAAA,KAACA,EAAAA,aAAsB,QAAA,CAAQ,YAAU,wBAAwB,GAAI,GAAS,CAIvF,SAAS,EAAoB,CAAE,YAAW,aAAa,EAAG,QAAQ,QAAS,GAAG,GAAqE,CACjJ,OACE,EAAA,EAAA,KAACA,EAAAA,aAAsB,OAAA,CAAA,UACrB,EAAA,EAAA,KAACA,EAAAA,aAAsB,QAAA,CACrB,YAAU,wBACE,aACL,QACP,WAAA,EAAA,EAAA,IACE,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,EAAA,EAAA,KAACA,EAAAA,aAAsB,MAAA,CAAM,YAAU,sBAAsB,GAAI,GAAS,CASnF,SAAS,EAAiB,CACxB,YACA,QACA,UAAU,UACV,GAAG,GAIF,CACD,OACE,EAAA,EAAA,KAACA,EAAAA,aAAsB,KAAA,CACrB,YAAU,qBACV,aAAY,EACZ,eAAc,EACd,WAAA,EAAA,EAAA,IACE,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,EAAA,EAAA,MAACA,EAAAA,aAAsB,aAAA,CACrB,YAAU,8BACV,WAAA,EAAA,EAAA,IACE,mIACA,uDACA,6DACA,+CACA,uCACA,EACD,CACQ,UACT,GAAI,aAEJ,EAAA,EAAA,KAAC,OAAA,CAAK,UAAU,0FACd,EAAA,EAAA,KAACA,EAAAA,aAAsB,cAAA,CAAA,UACrB,EAAA,EAAA,KAACC,EAAAA,UAAAA,CAAU,KAAM,GAAA,CAAM,CAAA,CACa,EACjC,CACN,EAAA,EACkC,CAKzC,SAAS,EAAuB,CAAE,GAAG,GAAwE,CAC3G,OAAO,EAAA,EAAA,KAACD,EAAAA,aAAsB,WAAA,CAAW,YAAU,4BAA4B,GAAI,GAAS,CAI9F,SAAS,EAAsB,CAAE,YAAW,WAAU,GAAG,GAAuE,CAC9H,OACE,EAAA,EAAA,MAACA,EAAAA,aAAsB,UAAA,CACrB,YAAU,2BACV,WAAA,EAAA,EAAA,IACE,mIACA,uDACA,6DACA,+CACA,uCACA,EACD,CACD,GAAI,aAEJ,EAAA,EAAA,KAAC,OAAA,CAAK,UAAU,0FACd,EAAA,EAAA,KAACA,EAAAA,aAAsB,cAAA,CAAA,UACrB,EAAA,EAAA,KAACE,EAAAA,WAAAA,CAAW,UAAU,sBAAA,CAAwB,CAAA,CACV,EACjC,CACN,EAAA,EAC+B,CAStC,SAAS,EAAkB,CACzB,YACA,QACA,GAAG,GAGF,CACD,OACE,EAAA,EAAA,KAACF,EAAAA,aAAsB,MAAA,CACrB,YAAU,sBACV,aAAY,EACZ,WAAA,EAAA,EAAA,IAAc,0EAA2E,EAAU,CACnG,GAAI,GACJ,CAKN,SAAS,EAAsB,CAAE,YAAW,GAAG,GAAuE,CACpH,OAAO,EAAA,EAAA,KAACA,EAAAA,aAAsB,UAAA,CAAU,YAAU,0BAA0B,WAAA,EAAA,EAAA,IAAc,iCAAkC,EAAU,CAAE,GAAI,GAAS,CAIvJ,SAAS,EAAqB,CAAE,YAAW,GAAG,GAAuC,CACnF,OAAO,EAAA,EAAA,KAAC,OAAA,CAAK,YAAU,yBAAyB,WAAA,EAAA,EAAA,IAAc,2DAA4D,EAAU,CAAE,GAAI,GAAS,CAIrJ,SAAS,EAAgB,CAAE,GAAG,GAAiE,CAC7F,OAAO,EAAA,EAAA,KAACA,EAAAA,aAAsB,IAAA,CAAI,YAAU,oBAAoB,GAAI,GAAS,CAQ/E,SAAS,EAAuB,CAC9B,YACA,QACA,WACA,GAAG,GAGF,CACD,OACE,EAAA,EAAA,MAACA,EAAAA,aAAsB,WAAA,CACrB,YAAU,4BACV,aAAY,EACZ,WAAA,EAAA,EAAA,IACE,qHACA,uDACA,+EACA,kBACA,+CACA,uCACA,EACD,CACD,GAAI,YAEH,GACD,EAAA,EAAA,KAACG,EAAAA,iBAAAA,CAAiB,UAAU,iBAAA,CAAmB,CAAA,EACd,CAKvC,SAAS,EAAuB,CAAE,YAAW,GAAG,GAAwE,CACtH,OACE,EAAA,EAAA,KAACH,EAAAA,aAAsB,WAAA,CACrB,YAAU,4BACV,WAAA,EAAA,EAAA,IACE,gCACA,gBACA,oCACA,2FACA,wFACA,iGACA,yCACA,yCACA,yCACA,yCACA,EACD,CACD,GAAI,GACJ"}
@@ -1,127 +0,0 @@
1
- import * as react138 from "react";
2
- import { DropdownMenu as DropdownMenu$1 } from "radix-ui";
3
-
4
- //#region packages/components/ui/dropdown-menu.d.ts
5
-
6
- /**
7
- * Root provider for the DropdownMenu — wraps all sub-components and controls open state.
8
- *
9
- * @example
10
- * ```tsx
11
- * import {
12
- * DropdownMenu, DropdownMenuTrigger, DropdownMenuContent,
13
- * DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator,
14
- * } from '@customafk/lunas-ui/ui/dropdown-menu';
15
- *
16
- * <DropdownMenu>
17
- * <DropdownMenuTrigger>Options</DropdownMenuTrigger>
18
- * <DropdownMenuContent>
19
- * <DropdownMenuLabel>My Account</DropdownMenuLabel>
20
- * <DropdownMenuSeparator />
21
- * <DropdownMenuItem>Profile</DropdownMenuItem>
22
- * <DropdownMenuItem variant="destructive">Delete</DropdownMenuItem>
23
- * </DropdownMenuContent>
24
- * </DropdownMenu>
25
- * ```
26
- */
27
- declare function DropdownMenu({
28
- ...props
29
- }: React.ComponentProps<typeof DropdownMenu$1.Root>): react138.JSX.Element;
30
- /** Portals DropdownMenu content outside the current DOM hierarchy. */
31
- declare function DropdownMenuPortal({
32
- ...props
33
- }: React.ComponentProps<typeof DropdownMenu$1.Portal>): react138.JSX.Element;
34
- /** Element that opens the DropdownMenu when activated. */
35
- declare function DropdownMenuTrigger({
36
- ...props
37
- }: React.ComponentProps<typeof DropdownMenu$1.Trigger>): react138.JSX.Element;
38
- /** Animated floating panel that contains the dropdown items. */
39
- declare function DropdownMenuContent({
40
- className,
41
- sideOffset,
42
- align,
43
- ...props
44
- }: React.ComponentProps<typeof DropdownMenu$1.Content>): react138.JSX.Element;
45
- /** Groups related DropdownMenuItems under a shared logical section. */
46
- declare function DropdownMenuGroup({
47
- ...props
48
- }: React.ComponentProps<typeof DropdownMenu$1.Group>): react138.JSX.Element;
49
- /**
50
- * A single clickable row inside a DropdownMenuContent.
51
- *
52
- * @param inset - When true, adds left padding to align with items that have icons.
53
- * @param variant - Visual style: `'default'` or `'destructive'`.
54
- */
55
- declare function DropdownMenuItem({
56
- className,
57
- inset,
58
- variant,
59
- ...props
60
- }: React.ComponentProps<typeof DropdownMenu$1.Item> & {
61
- inset?: boolean;
62
- variant?: 'default' | 'destructive';
63
- }): react138.JSX.Element;
64
- /** A checkable menu item that displays a checkmark when selected. */
65
- declare function DropdownMenuCheckboxItem({
66
- className,
67
- children,
68
- checked,
69
- ...props
70
- }: React.ComponentProps<typeof DropdownMenu$1.CheckboxItem>): react138.JSX.Element;
71
- /** Groups DropdownMenuRadioItems so only one can be selected at a time. */
72
- declare function DropdownMenuRadioGroup({
73
- ...props
74
- }: React.ComponentProps<typeof DropdownMenu$1.RadioGroup>): react138.JSX.Element;
75
- /** A radio-button menu item; shows a filled circle when selected. */
76
- declare function DropdownMenuRadioItem({
77
- className,
78
- children,
79
- ...props
80
- }: React.ComponentProps<typeof DropdownMenu$1.RadioItem>): react138.JSX.Element;
81
- /**
82
- * Non-interactive label used to describe a group of items.
83
- *
84
- * @param inset - When true, adds left padding to align with inset items.
85
- */
86
- declare function DropdownMenuLabel({
87
- className,
88
- inset,
89
- ...props
90
- }: React.ComponentProps<typeof DropdownMenu$1.Label> & {
91
- inset?: boolean;
92
- }): react138.JSX.Element;
93
- /** Horizontal dividing line between groups of dropdown items. */
94
- declare function DropdownMenuSeparator({
95
- className,
96
- ...props
97
- }: React.ComponentProps<typeof DropdownMenu$1.Separator>): react138.JSX.Element;
98
- /** Displays a keyboard shortcut hint aligned to the right of a menu item. */
99
- declare function DropdownMenuShortcut({
100
- className,
101
- ...props
102
- }: React.ComponentProps<'span'>): react138.JSX.Element;
103
- /** Root container for a nested sub-menu inside a DropdownMenu. */
104
- declare function DropdownMenuSub({
105
- ...props
106
- }: React.ComponentProps<typeof DropdownMenu$1.Sub>): react138.JSX.Element;
107
- /**
108
- * Menu item that reveals a nested DropdownMenuSubContent on hover or activation.
109
- *
110
- * @param inset - When true, adds left padding to align with inset items.
111
- */
112
- declare function DropdownMenuSubTrigger({
113
- className,
114
- inset,
115
- children,
116
- ...props
117
- }: React.ComponentProps<typeof DropdownMenu$1.SubTrigger> & {
118
- inset?: boolean;
119
- }): react138.JSX.Element;
120
- /** Floating panel that contains the items of a nested sub-menu. */
121
- declare function DropdownMenuSubContent({
122
- className,
123
- ...props
124
- }: React.ComponentProps<typeof DropdownMenu$1.SubContent>): react138.JSX.Element;
125
- //#endregion
126
- export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger };
127
- //# sourceMappingURL=dropdown-menu.d.ts.map
@@ -1,2 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,68 +0,0 @@
1
- import { VariantProps } from "class-variance-authority";
2
- import * as react132 from "react";
3
- import * as class_variance_authority_types5 from "class-variance-authority/types";
4
-
5
- //#region packages/components/ui/empty.d.ts
6
-
7
- /**
8
- * Full-page or section empty-state container with centred layout and dashed border, composed with EmptyHeader, EmptyMedia, EmptyTitle, EmptyDescription, and EmptyContent.
9
- *
10
- * @example
11
- * ```tsx
12
- * import {
13
- * Empty, EmptyHeader, EmptyMedia, EmptyTitle, EmptyDescription, EmptyContent,
14
- * } from '@customafk/lunas-ui/ui/empty';
15
- * import { SearchX } from 'lucide-react';
16
- *
17
- * <Empty>
18
- * <EmptyHeader>
19
- * <EmptyMedia variant="icon"><SearchX /></EmptyMedia>
20
- * <EmptyTitle>No results found</EmptyTitle>
21
- * <EmptyDescription>Try adjusting your search filters.</EmptyDescription>
22
- * </EmptyHeader>
23
- * <EmptyContent>
24
- * <button>Reset filters</button>
25
- * </EmptyContent>
26
- * </Empty>
27
- * ```
28
- */
29
- declare function Empty({
30
- className,
31
- ...props
32
- }: React.ComponentProps<'div'>): react132.JSX.Element;
33
- /** Centred column container for the media, title, and description of an empty state. */
34
- declare function EmptyHeader({
35
- className,
36
- ...props
37
- }: React.ComponentProps<'div'>): react132.JSX.Element;
38
- declare const emptyMediaVariants: (props?: ({
39
- variant?: "default" | "icon" | null | undefined;
40
- } & class_variance_authority_types5.ClassProp) | undefined) => string;
41
- /**
42
- * Container for the visual element (illustration, icon, or image) in an empty state.
43
- *
44
- * @param variant - `'default'` renders a transparent wrapper; `'icon'` renders a rounded muted square with the icon centred inside.
45
- */
46
- declare function EmptyMedia({
47
- className,
48
- variant,
49
- ...props
50
- }: React.ComponentProps<'div'> & VariantProps<typeof emptyMediaVariants>): react132.JSX.Element;
51
- /** Prominent heading text for the empty state. */
52
- declare function EmptyTitle({
53
- className,
54
- ...props
55
- }: React.ComponentProps<'div'>): react132.JSX.Element;
56
- /** Supporting body text that explains the empty state to the user. */
57
- declare function EmptyDescription({
58
- className,
59
- ...props
60
- }: React.ComponentProps<'p'>): react132.JSX.Element;
61
- /** Action area below the header — typically holds buttons or links to help the user proceed. */
62
- declare function EmptyContent({
63
- className,
64
- ...props
65
- }: React.ComponentProps<'div'>): react132.JSX.Element;
66
- //#endregion
67
- export { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle };
68
- //# sourceMappingURL=empty.d.ts.map
package/dist/ui/empty.js DELETED
@@ -1,2 +0,0 @@
1
- import{cn as e}from"@customafk/react-toolkit/utils";import{cva as t}from"class-variance-authority";import{jsx as n}from"react/jsx-runtime";function r({className:t,...r}){return n(`div`,{"data-slot":`empty`,className:e(`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`,t),...r})}function i({className:t,...r}){return n(`div`,{"data-slot":`empty-header`,className:e(`flex max-w-sm flex-col items-center gap-2 text-center`,t),...r})}const a=t(`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 o({className:t,variant:r=`default`,...i}){return n(`div`,{"data-slot":`empty-icon`,"data-variant":r,className:e(a({variant:r,className:t})),...i})}function s({className:t,...r}){return n(`div`,{"data-slot":`empty-title`,className:e(`text-lg font-medium tracking-tight`,t),...r})}function c({className:t,...r}){return n(`div`,{"data-slot":`empty-description`,className:e(`text-text-positive-weak [&>a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4`,t),...r})}function l({className:t,...r}){return n(`div`,{"data-slot":`empty-content`,className:e(`flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance`,t),...r})}export{r as Empty,l as EmptyContent,c as EmptyDescription,i as EmptyHeader,o as EmptyMedia,s as EmptyTitle};
2
- //# sourceMappingURL=empty.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"empty.js","names":[],"sources":["../../packages/components/ui/empty.tsx"],"sourcesContent":["import { cn } from '@customafk/react-toolkit/utils';\n\nimport type { VariantProps } from 'class-variance-authority';\nimport { cva } from 'class-variance-authority';\n\n/**\n * Full-page or section empty-state container with centred layout and dashed border, composed with EmptyHeader, EmptyMedia, EmptyTitle, EmptyDescription, and EmptyContent.\n *\n * @example\n * ```tsx\n * import {\n * Empty, EmptyHeader, EmptyMedia, EmptyTitle, EmptyDescription, EmptyContent,\n * } from '@customafk/lunas-ui/ui/empty';\n * import { SearchX } from 'lucide-react';\n *\n * <Empty>\n * <EmptyHeader>\n * <EmptyMedia variant=\"icon\"><SearchX /></EmptyMedia>\n * <EmptyTitle>No results found</EmptyTitle>\n * <EmptyDescription>Try adjusting your search filters.</EmptyDescription>\n * </EmptyHeader>\n * <EmptyContent>\n * <button>Reset filters</button>\n * </EmptyContent>\n * </Empty>\n * ```\n */\nfunction Empty({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"empty\"\n className={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', className)}\n {...props}\n />\n );\n}\n\n/** Centred column container for the media, title, and description of an empty state. */\nfunction EmptyHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"empty-header\" className={cn('flex max-w-sm flex-col items-center gap-2 text-center', className)} {...props} />;\n}\n\nconst emptyMediaVariants = cva('flex shrink-0 items-center justify-center mb-2 [&_svg]:pointer-events-none [&_svg]:shrink-0', {\n variants: {\n variant: {\n default: 'bg-transparent',\n 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\",\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n});\n\n/**\n * Container for the visual element (illustration, icon, or image) in an empty state.\n *\n * @param variant - `'default'` renders a transparent wrapper; `'icon'` renders a rounded muted square with the icon centred inside.\n */\nfunction EmptyMedia({ className, variant = 'default', ...props }: React.ComponentProps<'div'> & VariantProps<typeof emptyMediaVariants>) {\n return <div data-slot=\"empty-icon\" data-variant={variant} className={cn(emptyMediaVariants({ variant, className }))} {...props} />;\n}\n\n/** Prominent heading text for the empty state. */\nfunction EmptyTitle({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"empty-title\" className={cn('text-lg font-medium tracking-tight', className)} {...props} />;\n}\n\n/** Supporting body text that explains the empty state to the user. */\nfunction EmptyDescription({ className, ...props }: React.ComponentProps<'p'>) {\n return (\n <div\n data-slot=\"empty-description\"\n className={cn('text-text-positive-weak [&>a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4', className)}\n {...props}\n />\n );\n}\n\n/** Action area below the header — typically holds buttons or links to help the user proceed. */\nfunction EmptyContent({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div data-slot=\"empty-content\" className={cn('flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance', className)} {...props} />\n );\n}\n\nexport { Empty, EmptyHeader, EmptyTitle, EmptyDescription, EmptyContent, EmptyMedia };\n"],"mappings":"2IA2BA,SAAS,EAAM,CAAE,YAAW,GAAG,GAAsC,CACnE,OACE,EAAC,MAAA,CACC,YAAU,QACV,UAAW,EAAG,+HAAgI,EAAU,CACxJ,GAAI,GACJ,CAKN,SAAS,EAAY,CAAE,YAAW,GAAG,GAAsC,CACzE,OAAO,EAAC,MAAA,CAAI,YAAU,eAAe,UAAW,EAAG,wDAAyD,EAAU,CAAE,GAAI,GAAS,CAGvI,MAAM,EAAqB,EAAI,8FAA+F,CAC5H,SAAU,CACR,QAAS,CACP,QAAS,iBACT,KAAM,2IACP,CACF,CACD,gBAAiB,CACf,QAAS,UACV,CACF,CAAC,CAOF,SAAS,EAAW,CAAE,YAAW,UAAU,UAAW,GAAG,GAAgF,CACvI,OAAO,EAAC,MAAA,CAAI,YAAU,aAAa,eAAc,EAAS,UAAW,EAAG,EAAmB,CAAE,UAAS,YAAW,CAAC,CAAC,CAAE,GAAI,GAAS,CAIpI,SAAS,EAAW,CAAE,YAAW,GAAG,GAAsC,CACxE,OAAO,EAAC,MAAA,CAAI,YAAU,cAAc,UAAW,EAAG,qCAAsC,EAAU,CAAE,GAAI,GAAS,CAInH,SAAS,EAAiB,CAAE,YAAW,GAAG,GAAoC,CAC5E,OACE,EAAC,MAAA,CACC,YAAU,oBACV,UAAW,EAAG,4GAA6G,EAAU,CACrI,GAAI,GACJ,CAKN,SAAS,EAAa,CAAE,YAAW,GAAG,GAAsC,CAC1E,OACE,EAAC,MAAA,CAAI,YAAU,gBAAgB,UAAW,EAAG,gFAAiF,EAAU,CAAE,GAAI,GAAS"}