@customafk/lunas-ui 0.2.25 → 0.2.27

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 (527) hide show
  1. package/dist/{alert-B7TDxb35.cjs → alert-6_f_JgU-.cjs} +2 -2
  2. package/dist/{alert-B7TDxb35.cjs.map → alert-6_f_JgU-.cjs.map} +1 -1
  3. package/dist/{alert-C-Y4ZWNd.mjs → alert-BSAtkBnX.mjs} +2 -2
  4. package/dist/{alert-C-Y4ZWNd.mjs.map → alert-BSAtkBnX.mjs.map} +1 -1
  5. package/dist/{alert-CMZEZjzm.d.cts → alert-Bbooe3K0.d.cts} +8 -8
  6. package/dist/{alert-BETfoslt.d.mts → alert-Ck2z0ECv.d.mts} +6 -6
  7. package/dist/avatar-CK1R4r0j.mjs +2 -0
  8. package/dist/{avatar-SJmvlfqm.mjs.map → avatar-CK1R4r0j.mjs.map} +1 -1
  9. package/dist/avatar-aVxo69zP.cjs +2 -0
  10. package/dist/{avatar-CTS9-raY.cjs.map → avatar-aVxo69zP.cjs.map} +1 -1
  11. package/dist/{badge-9z9Eg_bC.d.cts → badge-BUDQIgSz.d.mts} +7 -7
  12. package/dist/{badge-uQ0pIZbQ.cjs → badge-DMnKV_uW.cjs} +2 -2
  13. package/dist/{badge-uQ0pIZbQ.cjs.map → badge-DMnKV_uW.cjs.map} +1 -1
  14. package/dist/{badge-BTtXqVuq.d.mts → badge-Dxa365-r.d.cts} +7 -7
  15. package/dist/{badge-DSwkF4C4.mjs → badge-utjRo-lW.mjs} +2 -2
  16. package/dist/{badge-DSwkF4C4.mjs.map → badge-utjRo-lW.mjs.map} +1 -1
  17. package/dist/button-BqxBQ4Kr.mjs +2 -0
  18. package/dist/{button-Bc8L9sFb.mjs.map → button-BqxBQ4Kr.mjs.map} +1 -1
  19. package/dist/button-Bu4ejNOW.cjs +2 -0
  20. package/dist/{button-CwDT3m4m.cjs.map → button-Bu4ejNOW.cjs.map} +1 -1
  21. package/dist/{button-y6EPgwvZ.d.cts → button-C7IuBgb_.d.cts} +7 -7
  22. package/dist/{button-DGSNru3Z.d.mts → button-u7M3BQF5.d.mts} +5 -5
  23. package/dist/{calendar-C2psGpju.mjs → calendar-CHVujBHK.mjs} +2 -2
  24. package/dist/{calendar-C2psGpju.mjs.map → calendar-CHVujBHK.mjs.map} +1 -1
  25. package/dist/{calendar-BMXIBCsr.cjs → calendar-ChaYPTJO.cjs} +2 -2
  26. package/dist/{calendar-BMXIBCsr.cjs.map → calendar-ChaYPTJO.cjs.map} +1 -1
  27. package/dist/cards/grid-product-card.cjs +1 -1
  28. package/dist/cards/grid-product-card.mjs +1 -1
  29. package/dist/cards/product-card.cjs +1 -1
  30. package/dist/cards/product-card.mjs +1 -1
  31. package/dist/cards/simple-card.cjs +1 -1
  32. package/dist/cards/simple-card.d.cts +2 -2
  33. package/dist/cards/simple-card.d.mts +2 -2
  34. package/dist/cards/simple-card.mjs +1 -1
  35. package/dist/{checkbox-Di7ACavC.cjs → checkbox-BQ_TclX9.cjs} +2 -2
  36. package/dist/{checkbox-Di7ACavC.cjs.map → checkbox-BQ_TclX9.cjs.map} +1 -1
  37. package/dist/{checkbox-Bwy_4QS_.mjs → checkbox-CJsl9OjF.mjs} +2 -2
  38. package/dist/{checkbox-Bwy_4QS_.mjs.map → checkbox-CJsl9OjF.mjs.map} +1 -1
  39. package/dist/close-BMhGSmGs.mjs +2 -0
  40. package/dist/{close-BS6EeCrQ.mjs.map → close-BMhGSmGs.mjs.map} +1 -1
  41. package/dist/{close-DXk_H3Gt.cjs → close-DUBEKxhw.cjs} +2 -2
  42. package/dist/{close-DXk_H3Gt.cjs.map → close-DUBEKxhw.cjs.map} +1 -1
  43. package/dist/{cms-layout-DCODI3eE.mjs → cms-layout--NUD8VVh.mjs} +2 -2
  44. package/dist/{cms-layout-DCODI3eE.mjs.map → cms-layout--NUD8VVh.mjs.map} +1 -1
  45. package/dist/{cms-layout-mgZdCNOL.cjs → cms-layout-COfACv3M.cjs} +2 -2
  46. package/dist/{cms-layout-mgZdCNOL.cjs.map → cms-layout-COfACv3M.cjs.map} +1 -1
  47. package/dist/{command-B5DpL6OG.mjs → command-Bvauothg.mjs} +2 -2
  48. package/dist/{command-B5DpL6OG.mjs.map → command-Bvauothg.mjs.map} +1 -1
  49. package/dist/{command-SHd-d_o0.cjs → command-CTdjZi1F.cjs} +2 -2
  50. package/dist/{command-SHd-d_o0.cjs.map → command-CTdjZi1F.cjs.map} +1 -1
  51. package/dist/data-display/country.cjs +1 -1
  52. package/dist/data-display/country.mjs +1 -1
  53. package/dist/data-display/data-list.cjs +1 -1
  54. package/dist/data-display/data-list.mjs +1 -1
  55. package/dist/data-display/date-tooltip.cjs +1 -1
  56. package/dist/data-display/date-tooltip.mjs +1 -1
  57. package/dist/data-display/date.cjs +1 -1
  58. package/dist/data-display/date.mjs +1 -1
  59. package/dist/data-display/empty.cjs +1 -1
  60. package/dist/data-display/empty.mjs +1 -1
  61. package/dist/data-display/name.cjs +1 -1
  62. package/dist/data-display/name.mjs +1 -1
  63. package/dist/data-display/phone-number.cjs +1 -1
  64. package/dist/data-display/phone-number.mjs +1 -1
  65. package/dist/data-display/role-badge.cjs +1 -1
  66. package/dist/data-display/role-badge.mjs +1 -1
  67. package/dist/data-display/statistic.cjs +1 -1
  68. package/dist/data-display/statistic.d.cts +2 -3
  69. package/dist/data-display/statistic.d.mts +1 -2
  70. package/dist/data-display/statistic.mjs +1 -1
  71. package/dist/data-display/user.cjs +1 -1
  72. package/dist/data-display/user.mjs +1 -1
  73. package/dist/{date-D_nB7Lh1.mjs → date-BQ0c19uk.mjs} +2 -2
  74. package/dist/{date-D_nB7Lh1.mjs.map → date-BQ0c19uk.mjs.map} +1 -1
  75. package/dist/{date-a3RI5Pwo.cjs → date-DtajzNoy.cjs} +2 -2
  76. package/dist/{date-a3RI5Pwo.cjs.map → date-DtajzNoy.cjs.map} +1 -1
  77. package/dist/{dialog-Z2IoE4ra.d.mts → dialog-CvPMWn6Y.d.mts} +12 -12
  78. package/dist/{dialog-DPEdvGiI.d.cts → dialog-DE7tIKD6.d.cts} +12 -12
  79. package/dist/{dialog-o_68LQXd.cjs → dialog-DEnyBH2X.cjs} +2 -2
  80. package/dist/{dialog-o_68LQXd.cjs.map → dialog-DEnyBH2X.cjs.map} +1 -1
  81. package/dist/dialog-jqiIqxlm.mjs +2 -0
  82. package/dist/{dialog-DG4vMCr5.mjs.map → dialog-jqiIqxlm.mjs.map} +1 -1
  83. package/dist/dialogs/confirm-dialog.cjs +1 -1
  84. package/dist/dialogs/confirm-dialog.mjs +1 -1
  85. package/dist/dialogs/detail-dialog/components/sidebar.cjs +1 -1
  86. package/dist/dialogs/detail-dialog/components/sidebar.d.cts +27 -27
  87. package/dist/dialogs/detail-dialog/components/sidebar.d.mts +27 -27
  88. package/dist/dialogs/detail-dialog/components/sidebar.mjs +1 -1
  89. package/dist/dialogs/detail-dialog/index.cjs +1 -1
  90. package/dist/dialogs/detail-dialog/index.mjs +1 -1
  91. package/dist/dialogs/error-dialog.cjs +1 -1
  92. package/dist/dialogs/error-dialog.mjs +1 -1
  93. package/dist/dialogs/loading-dialog.cjs +1 -1
  94. package/dist/dialogs/loading-dialog.mjs +1 -1
  95. package/dist/dist-CAeolvAH.cjs +2 -0
  96. package/dist/dist-CAeolvAH.cjs.map +1 -0
  97. package/dist/dist-DdGJ50nX.mjs +2 -0
  98. package/dist/dist-DdGJ50nX.mjs.map +1 -0
  99. package/dist/{dropdown-menu-BlsIwe4B.mjs → dropdown-menu-B_uBxY94.mjs} +2 -2
  100. package/dist/{dropdown-menu-BlsIwe4B.mjs.map → dropdown-menu-B_uBxY94.mjs.map} +1 -1
  101. package/dist/{dropdown-menu-Ct9BLGfa.cjs → dropdown-menu-DMwvWoxe.cjs} +2 -2
  102. package/dist/{dropdown-menu-Ct9BLGfa.cjs.map → dropdown-menu-DMwvWoxe.cjs.map} +1 -1
  103. package/dist/features/descriptions/index.cjs +1 -1
  104. package/dist/features/descriptions/index.d.cts +4 -5
  105. package/dist/features/descriptions/index.d.mts +6 -7
  106. package/dist/features/descriptions/index.mjs +1 -1
  107. package/dist/features/search-modal/index.cjs +1 -1
  108. package/dist/features/search-modal/index.d.cts +2 -2
  109. package/dist/features/search-modal/index.d.mts +2 -2
  110. package/dist/features/search-modal/index.mjs +1 -1
  111. package/dist/features/tables/index.cjs +1 -1
  112. package/dist/features/tables/index.d.cts +1 -1
  113. package/dist/features/tables/index.d.mts +2 -2
  114. package/dist/features/tables/index.mjs +1 -1
  115. package/dist/features/tanstack-form/index.cjs +1 -1
  116. package/dist/features/tanstack-form/index.d.cts +1 -1
  117. package/dist/features/tanstack-form/index.d.mts +1 -1
  118. package/dist/features/tanstack-form/index.mjs +1 -1
  119. package/dist/features/text-editor/index.cjs +1 -1
  120. package/dist/features/text-editor/index.d.cts +1 -1
  121. package/dist/features/text-editor/index.d.mts +1 -1
  122. package/dist/features/text-editor/index.mjs +1 -1
  123. package/dist/{field-Mn2bf2Ns.mjs → field-Bh7Hq4Lo.mjs} +2 -2
  124. package/dist/{field-Mn2bf2Ns.mjs.map → field-Bh7Hq4Lo.mjs.map} +1 -1
  125. package/dist/{field-enVJXFvC.cjs → field-DTGEedKl.cjs} +2 -2
  126. package/dist/{field-enVJXFvC.cjs.map → field-DTGEedKl.cjs.map} +1 -1
  127. package/dist/{flex-Br7F9Fln.mjs → flex-Bl5yzx6g.mjs} +2 -2
  128. package/dist/{flex-Br7F9Fln.mjs.map → flex-Bl5yzx6g.mjs.map} +1 -1
  129. package/dist/{flex-BbbogTsZ.cjs → flex-DYh2t8ft.cjs} +2 -2
  130. package/dist/{flex-BbbogTsZ.cjs.map → flex-DYh2t8ft.cjs.map} +1 -1
  131. package/dist/{heading-BnaNuvDS.mjs → heading-B1t9baTw.mjs} +2 -2
  132. package/dist/{heading-BnaNuvDS.mjs.map → heading-B1t9baTw.mjs.map} +1 -1
  133. package/dist/{heading-AKz5ewy-.cjs → heading-wUXEbicM.cjs} +2 -2
  134. package/dist/{heading-AKz5ewy-.cjs.map → heading-wUXEbicM.cjs.map} +1 -1
  135. package/dist/image-C4gMBmyV.mjs +2 -0
  136. package/dist/{image-C-CdKKP1.mjs.map → image-C4gMBmyV.mjs.map} +1 -1
  137. package/dist/image-Y7gCz7uE.cjs +2 -0
  138. package/dist/{image-B1Dm5LWk.cjs.map → image-Y7gCz7uE.cjs.map} +1 -1
  139. package/dist/{index-GMITpWH3.d.mts → index-C3dXDjdR.d.mts} +4 -4
  140. package/dist/{index-Che417mo.d.cts → index-CyBWPhx7.d.cts} +27 -28
  141. package/dist/{index-DQA0fwM5.d.cts → index-DPnJrJS9.d.mts} +676 -305
  142. package/dist/{index-C81U0XWP.d.cts → index-DpdXz-q5.d.cts} +4 -4
  143. package/dist/{index-qRmNM-0U.d.mts → index-UfOfYRNf.d.cts} +677 -306
  144. package/dist/{index-vsBzzlFs.d.mts → index-rE1M5FGs.d.mts} +27 -28
  145. package/dist/index.cjs +1 -1
  146. package/dist/index.d.cts +8 -8
  147. package/dist/index.d.mts +8 -8
  148. package/dist/index.mjs +1 -1
  149. package/dist/{input-BMOYFJYM.cjs → input-1ceJxxFI.cjs} +2 -2
  150. package/dist/{input-BMOYFJYM.cjs.map → input-1ceJxxFI.cjs.map} +1 -1
  151. package/dist/{input-CjubfyGk.d.cts → input-B9XN8dsE.d.cts} +6 -6
  152. package/dist/{input-DLRypEj3.mjs → input-CKFQdvqY.mjs} +2 -2
  153. package/dist/{input-DLRypEj3.mjs.map → input-CKFQdvqY.mjs.map} +1 -1
  154. package/dist/{input-DEChxakv.d.mts → input-ZL65yvYU.d.mts} +4 -4
  155. package/dist/{label-DYsRdKMt.cjs → label-BHbqbBtO.cjs} +2 -2
  156. package/dist/{label-DYsRdKMt.cjs.map → label-BHbqbBtO.cjs.map} +1 -1
  157. package/dist/label-CE2m0U_j.mjs +2 -0
  158. package/dist/{label-BukQnBn7.mjs.map → label-CE2m0U_j.mjs.map} +1 -1
  159. package/dist/layouts/cms-layout/index.cjs +1 -1
  160. package/dist/layouts/cms-layout/index.mjs +1 -1
  161. package/dist/layouts/flex.cjs +1 -1
  162. package/dist/layouts/flex.d.cts +5 -6
  163. package/dist/layouts/flex.d.mts +5 -6
  164. package/dist/layouts/flex.mjs +1 -1
  165. package/dist/layouts/grid.cjs +1 -1
  166. package/dist/layouts/grid.mjs +1 -1
  167. package/dist/layouts/payment-layout/index.cjs +1 -1
  168. package/dist/layouts/payment-layout/index.mjs +1 -1
  169. package/dist/pages/FeatureDeveloping.cjs +1 -1
  170. package/dist/pages/FeatureDeveloping.d.cts +2 -2
  171. package/dist/pages/FeatureDeveloping.d.mts +2 -2
  172. package/dist/pages/FeatureDeveloping.mjs +1 -1
  173. package/dist/pages/FeatureFixing.cjs +1 -1
  174. package/dist/pages/FeatureFixing.d.cts +2 -2
  175. package/dist/pages/FeatureFixing.d.mts +2 -2
  176. package/dist/pages/FeatureFixing.mjs +1 -1
  177. package/dist/pages/LoginPage.cjs +1 -1
  178. package/dist/pages/LoginPage.d.cts +2 -2
  179. package/dist/pages/LoginPage.d.mts +2 -2
  180. package/dist/pages/LoginPage.mjs +1 -1
  181. package/dist/pages/NotAuthorized.cjs +1 -1
  182. package/dist/pages/NotAuthorized.d.cts +2 -2
  183. package/dist/pages/NotAuthorized.d.mts +2 -2
  184. package/dist/pages/NotAuthorized.mjs +1 -1
  185. package/dist/pages/NotFound.cjs +1 -1
  186. package/dist/pages/NotFound.d.cts +2 -2
  187. package/dist/pages/NotFound.d.mts +2 -2
  188. package/dist/pages/NotFound.mjs +1 -1
  189. package/dist/pages/RegisterPage.cjs +1 -1
  190. package/dist/pages/RegisterPage.d.cts +2 -2
  191. package/dist/pages/RegisterPage.d.mts +2 -2
  192. package/dist/pages/RegisterPage.mjs +1 -1
  193. package/dist/pages/VerifyEmailPage.cjs +1 -1
  194. package/dist/pages/VerifyEmailPage.d.cts +2 -2
  195. package/dist/pages/VerifyEmailPage.d.mts +2 -2
  196. package/dist/pages/VerifyEmailPage.mjs +1 -1
  197. package/dist/{paragraph-DN85Huc4.cjs → paragraph-D-JHj7EP.cjs} +2 -2
  198. package/dist/{paragraph-DN85Huc4.cjs.map → paragraph-D-JHj7EP.cjs.map} +1 -1
  199. package/dist/{paragraph-CnHNC0rS.mjs → paragraph-J_QbLq9_.mjs} +2 -2
  200. package/dist/{paragraph-CnHNC0rS.mjs.map → paragraph-J_QbLq9_.mjs.map} +1 -1
  201. package/dist/{payment-layout-DquWXt_w.cjs → payment-layout-8rRJJa0f.cjs} +2 -2
  202. package/dist/{payment-layout-DquWXt_w.cjs.map → payment-layout-8rRJJa0f.cjs.map} +1 -1
  203. package/dist/{payment-layout-YLfa3T79.mjs → payment-layout-BdGZbGO-.mjs} +2 -2
  204. package/dist/{payment-layout-YLfa3T79.mjs.map → payment-layout-BdGZbGO-.mjs.map} +1 -1
  205. package/dist/popover-BCzVvfnV.mjs +2 -0
  206. package/dist/{popover-DvGJ23lJ.mjs.map → popover-BCzVvfnV.mjs.map} +1 -1
  207. package/dist/{popover-AEt-aSy3.cjs → popover-Bnrgg4do.cjs} +2 -2
  208. package/dist/{popover-AEt-aSy3.cjs.map → popover-Bnrgg4do.cjs.map} +1 -1
  209. package/dist/progress-BXWPPNt5.cjs +2 -0
  210. package/dist/{progress-DE1FdQ1J.cjs.map → progress-BXWPPNt5.cjs.map} +1 -1
  211. package/dist/progress-BcEEbgJJ.mjs +2 -0
  212. package/dist/{progress-2G9rCupJ.mjs.map → progress-BcEEbgJJ.mjs.map} +1 -1
  213. package/dist/radio-group-CsmpBZTK.mjs +2 -0
  214. package/dist/{radio-group-fN6o0QBx.mjs.map → radio-group-CsmpBZTK.mjs.map} +1 -1
  215. package/dist/{radio-group-C7FAAawm.cjs → radio-group-KMvVXCIk.cjs} +2 -2
  216. package/dist/{radio-group-C7FAAawm.cjs.map → radio-group-KMvVXCIk.cjs.map} +1 -1
  217. package/dist/{resizable-DDPMwd28.cjs → resizable-C7uLlTGB.cjs} +2 -2
  218. package/dist/{resizable-DDPMwd28.cjs.map → resizable-C7uLlTGB.cjs.map} +1 -1
  219. package/dist/{resizable-BxsL978e.mjs → resizable-em2svgMz.mjs} +2 -2
  220. package/dist/{resizable-BxsL978e.mjs.map → resizable-em2svgMz.mjs.map} +1 -1
  221. package/dist/{search-modal-DZI6O6ua.mjs → search-modal-DyOsqK-4.mjs} +2 -2
  222. package/dist/{search-modal-DZI6O6ua.mjs.map → search-modal-DyOsqK-4.mjs.map} +1 -1
  223. package/dist/{search-modal-C-jNqQI1.cjs → search-modal-zmavzZRx.cjs} +2 -2
  224. package/dist/{search-modal-C-jNqQI1.cjs.map → search-modal-zmavzZRx.cjs.map} +1 -1
  225. package/dist/{select-Ze8Fq88G.mjs → select-C2Ro2wmj.mjs} +2 -2
  226. package/dist/{select-Ze8Fq88G.mjs.map → select-C2Ro2wmj.mjs.map} +1 -1
  227. package/dist/{select-DzylYFes.cjs → select-DHiTqZeX.cjs} +2 -2
  228. package/dist/{select-DzylYFes.cjs.map → select-DHiTqZeX.cjs.map} +1 -1
  229. package/dist/{separator-BwZb12bh.cjs → separator-jytY1CPq.cjs} +2 -2
  230. package/dist/{separator-BwZb12bh.cjs.map → separator-jytY1CPq.cjs.map} +1 -1
  231. package/dist/separator-yTKDuMWb.mjs +2 -0
  232. package/dist/{separator-DXnFHf3v.mjs.map → separator-yTKDuMWb.mjs.map} +1 -1
  233. package/dist/sheet-DDBCHwn6.mjs +2 -0
  234. package/dist/{sheet-GUUifKAd.mjs.map → sheet-DDBCHwn6.mjs.map} +1 -1
  235. package/dist/{sheet-CaDXTx7n.cjs → sheet-DuMrjidC.cjs} +2 -2
  236. package/dist/{sheet-CaDXTx7n.cjs.map → sheet-DuMrjidC.cjs.map} +1 -1
  237. package/dist/{sidebar-CcJCnqLb.cjs → sidebar-BXrGXVxx.cjs} +2 -2
  238. package/dist/{sidebar-CcJCnqLb.cjs.map → sidebar-BXrGXVxx.cjs.map} +1 -1
  239. package/dist/{sidebar-C_jArO1q.mjs → sidebar-De1RZMAG.mjs} +2 -2
  240. package/dist/{sidebar-C_jArO1q.mjs.map → sidebar-De1RZMAG.mjs.map} +1 -1
  241. package/dist/skeleton-CHympz8k.cjs +2 -0
  242. package/dist/{skeleton-BfMCjXYM.cjs.map → skeleton-CHympz8k.cjs.map} +1 -1
  243. package/dist/skeleton-Czl96pWA.mjs +2 -0
  244. package/dist/{skeleton-BLwzHejl.mjs.map → skeleton-Czl96pWA.mjs.map} +1 -1
  245. package/dist/spinner-CWUvnJQw.mjs +2 -0
  246. package/dist/{spinner-BaZ19Lla.mjs.map → spinner-CWUvnJQw.mjs.map} +1 -1
  247. package/dist/spinner-DgusnQMw.cjs +2 -0
  248. package/dist/{spinner-rA8pMY6v.cjs.map → spinner-DgusnQMw.cjs.map} +1 -1
  249. package/dist/{tables-EnSyNV7J.mjs → tables-BQ-QiA1V.mjs} +3 -3
  250. package/dist/{tables-EnSyNV7J.mjs.map → tables-BQ-QiA1V.mjs.map} +1 -1
  251. package/dist/{tables-CI2AZcbt.cjs → tables-LRWPOv2a.cjs} +3 -3
  252. package/dist/{tables-CI2AZcbt.cjs.map → tables-LRWPOv2a.cjs.map} +1 -1
  253. package/dist/tanstack-form--I4H53bf.cjs +2 -0
  254. package/dist/tanstack-form--I4H53bf.cjs.map +1 -0
  255. package/dist/tanstack-form-DKIudGKP.mjs +2 -0
  256. package/dist/tanstack-form-DKIudGKP.mjs.map +1 -0
  257. package/dist/text-editor-D182J9Y5.mjs +2 -0
  258. package/dist/{text-editor-ae2UTKW8.mjs.map → text-editor-D182J9Y5.mjs.map} +1 -1
  259. package/dist/text-editor-Dy3_hyNw.cjs +2 -0
  260. package/dist/{text-editor-BHmVZnEK.cjs.map → text-editor-Dy3_hyNw.cjs.map} +1 -1
  261. package/dist/{textarea-CEtUNLwy.mjs → textarea-Cvdq7UAn.mjs} +2 -2
  262. package/dist/{textarea-CEtUNLwy.mjs.map → textarea-Cvdq7UAn.mjs.map} +1 -1
  263. package/dist/{textarea-DZ86A_cm.cjs → textarea-SPXNe-iZ.cjs} +2 -2
  264. package/dist/{textarea-DZ86A_cm.cjs.map → textarea-SPXNe-iZ.cjs.map} +1 -1
  265. package/dist/tooltip-BMdzWaaH.mjs +2 -0
  266. package/dist/{tooltip-Cy0HbyAx.mjs.map → tooltip-BMdzWaaH.mjs.map} +1 -1
  267. package/dist/{tooltip-itUmYz9k.cjs → tooltip-DC6i1A25.cjs} +2 -2
  268. package/dist/{tooltip-itUmYz9k.cjs.map → tooltip-DC6i1A25.cjs.map} +1 -1
  269. package/dist/typography/paragraph.cjs +1 -1
  270. package/dist/typography/paragraph.d.cts +5 -5
  271. package/dist/typography/paragraph.d.mts +3 -3
  272. package/dist/typography/paragraph.mjs +1 -1
  273. package/dist/typography/title.cjs +1 -1
  274. package/dist/typography/title.d.cts +2 -3
  275. package/dist/typography/title.d.mts +2 -3
  276. package/dist/typography/title.mjs +1 -1
  277. package/dist/ui/alert-dialog.cjs +1 -1
  278. package/dist/ui/alert-dialog.d.cts +12 -12
  279. package/dist/ui/alert-dialog.d.mts +12 -12
  280. package/dist/ui/alert-dialog.mjs +1 -1
  281. package/dist/ui/alert.cjs +1 -1
  282. package/dist/ui/alert.d.cts +1 -1
  283. package/dist/ui/alert.d.mts +1 -1
  284. package/dist/ui/alert.mjs +1 -1
  285. package/dist/ui/aspect-ratio.cjs +1 -1
  286. package/dist/ui/aspect-ratio.d.cts +2 -2
  287. package/dist/ui/aspect-ratio.d.mts +2 -2
  288. package/dist/ui/aspect-ratio.mjs +1 -1
  289. package/dist/ui/avatar.cjs +1 -1
  290. package/dist/ui/avatar.d.cts +4 -4
  291. package/dist/ui/avatar.d.mts +4 -4
  292. package/dist/ui/avatar.mjs +1 -1
  293. package/dist/ui/badge.cjs +1 -1
  294. package/dist/ui/badge.d.cts +1 -1
  295. package/dist/ui/badge.d.mts +1 -1
  296. package/dist/ui/badge.mjs +1 -1
  297. package/dist/ui/breadcrumb.cjs +1 -1
  298. package/dist/ui/breadcrumb.d.cts +8 -8
  299. package/dist/ui/breadcrumb.d.mts +8 -8
  300. package/dist/ui/breadcrumb.mjs +1 -1
  301. package/dist/ui/button-group.cjs +1 -1
  302. package/dist/ui/button-group.d.cts +6 -6
  303. package/dist/ui/button-group.d.mts +6 -6
  304. package/dist/ui/button-group.mjs +1 -1
  305. package/dist/ui/button.cjs +1 -1
  306. package/dist/ui/button.d.cts +1 -1
  307. package/dist/ui/button.d.mts +1 -1
  308. package/dist/ui/button.mjs +1 -1
  309. package/dist/ui/buttons/add-new.cjs +1 -1
  310. package/dist/ui/buttons/add-new.mjs +1 -1
  311. package/dist/ui/buttons/edit.cjs +1 -1
  312. package/dist/ui/buttons/edit.mjs +1 -1
  313. package/dist/ui/buttons/refresh.cjs +1 -1
  314. package/dist/ui/buttons/refresh.mjs +1 -1
  315. package/dist/ui/buttons/trash.cjs +1 -1
  316. package/dist/ui/buttons/trash.mjs +1 -1
  317. package/dist/ui/buttons/upload-image.cjs +1 -1
  318. package/dist/ui/buttons/upload-image.mjs +1 -1
  319. package/dist/ui/calendar.cjs +1 -1
  320. package/dist/ui/calendar.d.cts +4 -4
  321. package/dist/ui/calendar.d.mts +4 -4
  322. package/dist/ui/calendar.mjs +1 -1
  323. package/dist/ui/card.cjs +1 -1
  324. package/dist/ui/card.d.cts +8 -8
  325. package/dist/ui/card.d.mts +8 -8
  326. package/dist/ui/card.mjs +1 -1
  327. package/dist/ui/carousel.cjs +1 -1
  328. package/dist/ui/carousel.d.cts +7 -7
  329. package/dist/ui/carousel.d.mts +7 -7
  330. package/dist/ui/carousel.mjs +1 -1
  331. package/dist/ui/checkbox.cjs +1 -1
  332. package/dist/ui/checkbox.d.cts +2 -2
  333. package/dist/ui/checkbox.d.mts +2 -2
  334. package/dist/ui/checkbox.mjs +1 -1
  335. package/dist/ui/collapsible.d.cts +4 -4
  336. package/dist/ui/collapsible.d.mts +4 -4
  337. package/dist/ui/command.cjs +1 -1
  338. package/dist/ui/command.d.cts +11 -11
  339. package/dist/ui/command.d.mts +11 -11
  340. package/dist/ui/command.mjs +1 -1
  341. package/dist/ui/context-menu.cjs +1 -1
  342. package/dist/ui/context-menu.d.cts +16 -16
  343. package/dist/ui/context-menu.d.mts +16 -16
  344. package/dist/ui/context-menu.mjs +1 -1
  345. package/dist/ui/dialog.cjs +1 -1
  346. package/dist/ui/dialog.d.cts +1 -1
  347. package/dist/ui/dialog.d.mts +1 -1
  348. package/dist/ui/dialog.mjs +1 -1
  349. package/dist/ui/drawer.cjs +1 -1
  350. package/dist/ui/drawer.d.cts +11 -11
  351. package/dist/ui/drawer.d.mts +11 -11
  352. package/dist/ui/drawer.mjs +1 -1
  353. package/dist/ui/dropdown-menu.cjs +1 -1
  354. package/dist/ui/dropdown-menu.d.cts +16 -16
  355. package/dist/ui/dropdown-menu.d.mts +16 -16
  356. package/dist/ui/dropdown-menu.mjs +1 -1
  357. package/dist/ui/empty.cjs +1 -1
  358. package/dist/ui/empty.d.cts +9 -9
  359. package/dist/ui/empty.d.mts +9 -9
  360. package/dist/ui/empty.mjs +1 -1
  361. package/dist/ui/field.cjs +1 -1
  362. package/dist/ui/field.d.cts +23 -24
  363. package/dist/ui/field.d.mts +23 -24
  364. package/dist/ui/field.mjs +1 -1
  365. package/dist/ui/file-uploader.cjs +2 -2
  366. package/dist/ui/file-uploader.d.cts +2 -2
  367. package/dist/ui/file-uploader.d.mts +2 -2
  368. package/dist/ui/file-uploader.mjs +2 -2
  369. package/dist/ui/form.cjs +1 -1
  370. package/dist/ui/form.d.cts +30 -12
  371. package/dist/ui/form.d.mts +30 -12
  372. package/dist/ui/form.mjs +1 -1
  373. package/dist/ui/hover-card.cjs +1 -1
  374. package/dist/ui/hover-card.d.cts +4 -4
  375. package/dist/ui/hover-card.d.mts +4 -4
  376. package/dist/ui/hover-card.mjs +1 -1
  377. package/dist/ui/image.cjs +1 -1
  378. package/dist/ui/image.mjs +1 -1
  379. package/dist/ui/input-otp.cjs +1 -1
  380. package/dist/ui/input-otp.d.cts +5 -5
  381. package/dist/ui/input-otp.d.mts +5 -5
  382. package/dist/ui/input-otp.mjs +1 -1
  383. package/dist/ui/input.cjs +1 -1
  384. package/dist/ui/input.d.cts +1 -1
  385. package/dist/ui/input.d.mts +1 -1
  386. package/dist/ui/input.mjs +1 -1
  387. package/dist/ui/inputs/search-input.cjs +1 -1
  388. package/dist/ui/inputs/search-input.d.cts +3 -3
  389. package/dist/ui/inputs/search-input.d.mts +3 -3
  390. package/dist/ui/inputs/search-input.mjs +1 -1
  391. package/dist/ui/item.cjs +1 -1
  392. package/dist/ui/item.d.cts +16 -16
  393. package/dist/ui/item.d.mts +13 -13
  394. package/dist/ui/item.mjs +1 -1
  395. package/dist/ui/label.cjs +1 -1
  396. package/dist/ui/label.d.cts +2 -2
  397. package/dist/ui/label.d.mts +2 -2
  398. package/dist/ui/label.mjs +1 -1
  399. package/dist/ui/menubar.cjs +1 -1
  400. package/dist/ui/menubar.d.cts +17 -17
  401. package/dist/ui/menubar.d.mts +17 -17
  402. package/dist/ui/menubar.mjs +1 -1
  403. package/dist/ui/multi-select.cjs +1 -1
  404. package/dist/ui/multi-select.d.cts +2 -2
  405. package/dist/ui/multi-select.d.mts +3 -3
  406. package/dist/ui/multi-select.mjs +1 -1
  407. package/dist/ui/navigation-menu.cjs +1 -1
  408. package/dist/ui/navigation-menu.d.cts +11 -11
  409. package/dist/ui/navigation-menu.d.mts +9 -9
  410. package/dist/ui/navigation-menu.mjs +1 -1
  411. package/dist/ui/pagination.cjs +1 -1
  412. package/dist/ui/pagination.d.cts +9 -9
  413. package/dist/ui/pagination.d.mts +9 -9
  414. package/dist/ui/pagination.mjs +1 -1
  415. package/dist/ui/popover.cjs +1 -1
  416. package/dist/ui/popover.d.cts +6 -6
  417. package/dist/ui/popover.d.mts +6 -6
  418. package/dist/ui/popover.mjs +1 -1
  419. package/dist/ui/progress.cjs +1 -1
  420. package/dist/ui/progress.d.cts +2 -2
  421. package/dist/ui/progress.d.mts +2 -2
  422. package/dist/ui/progress.mjs +1 -1
  423. package/dist/ui/radio-group.cjs +1 -1
  424. package/dist/ui/radio-group.d.cts +3 -3
  425. package/dist/ui/radio-group.d.mts +3 -3
  426. package/dist/ui/radio-group.mjs +1 -1
  427. package/dist/ui/resizable.cjs +1 -1
  428. package/dist/ui/resizable.d.cts +9 -9
  429. package/dist/ui/resizable.d.mts +9 -9
  430. package/dist/ui/resizable.mjs +1 -1
  431. package/dist/ui/scroll-area.cjs +1 -1
  432. package/dist/ui/scroll-area.d.cts +5 -6
  433. package/dist/ui/scroll-area.d.mts +5 -6
  434. package/dist/ui/scroll-area.mjs +1 -1
  435. package/dist/ui/select.cjs +1 -1
  436. package/dist/ui/select.d.cts +9 -9
  437. package/dist/ui/select.d.mts +9 -9
  438. package/dist/ui/select.mjs +1 -1
  439. package/dist/ui/separator.cjs +1 -1
  440. package/dist/ui/separator.d.cts +2 -2
  441. package/dist/ui/separator.d.mts +2 -2
  442. package/dist/ui/separator.mjs +1 -1
  443. package/dist/ui/sheet.cjs +1 -1
  444. package/dist/ui/sheet.d.cts +9 -9
  445. package/dist/ui/sheet.d.mts +9 -9
  446. package/dist/ui/sheet.mjs +1 -1
  447. package/dist/ui/sidebar.cjs +1 -1
  448. package/dist/ui/sidebar.d.cts +27 -27
  449. package/dist/ui/sidebar.d.mts +29 -29
  450. package/dist/ui/sidebar.mjs +1 -1
  451. package/dist/ui/skeleton.cjs +1 -1
  452. package/dist/ui/skeleton.d.cts +2 -2
  453. package/dist/ui/skeleton.d.mts +2 -2
  454. package/dist/ui/skeleton.mjs +1 -1
  455. package/dist/ui/slider.cjs +1 -1
  456. package/dist/ui/slider.d.cts +2 -2
  457. package/dist/ui/slider.d.mts +2 -2
  458. package/dist/ui/slider.mjs +1 -1
  459. package/dist/ui/sonner.d.cts +2 -2
  460. package/dist/ui/sonner.d.mts +2 -2
  461. package/dist/ui/spinner.cjs +1 -1
  462. package/dist/ui/spinner.d.cts +2 -2
  463. package/dist/ui/spinner.d.mts +2 -2
  464. package/dist/ui/spinner.mjs +1 -1
  465. package/dist/ui/switch.cjs +1 -1
  466. package/dist/ui/switch.d.cts +2 -2
  467. package/dist/ui/switch.d.mts +2 -2
  468. package/dist/ui/switch.mjs +1 -1
  469. package/dist/ui/table.cjs +1 -1
  470. package/dist/ui/table.d.cts +17 -18
  471. package/dist/ui/table.d.mts +17 -18
  472. package/dist/ui/table.mjs +1 -1
  473. package/dist/ui/tabs.cjs +1 -1
  474. package/dist/ui/tabs.d.cts +5 -5
  475. package/dist/ui/tabs.d.mts +5 -5
  476. package/dist/ui/tabs.mjs +1 -1
  477. package/dist/ui/textarea.cjs +1 -1
  478. package/dist/ui/textarea.d.cts +2 -2
  479. package/dist/ui/textarea.d.mts +2 -2
  480. package/dist/ui/textarea.mjs +1 -1
  481. package/dist/ui/toggle-group.cjs +1 -1
  482. package/dist/ui/toggle-group.d.cts +3 -3
  483. package/dist/ui/toggle-group.d.mts +3 -3
  484. package/dist/ui/toggle-group.mjs +1 -1
  485. package/dist/ui/toggle.cjs +1 -1
  486. package/dist/ui/toggle.d.cts +5 -5
  487. package/dist/ui/toggle.d.mts +5 -5
  488. package/dist/ui/toggle.mjs +1 -1
  489. package/dist/ui/tooltip.cjs +1 -1
  490. package/dist/ui/tooltip.d.cts +5 -5
  491. package/dist/ui/tooltip.d.mts +5 -5
  492. package/dist/ui/tooltip.mjs +1 -1
  493. package/dist/{user-BEyYLDNK.cjs → user-CQY0YnAc.cjs} +2 -2
  494. package/dist/{user-BEyYLDNK.cjs.map → user-CQY0YnAc.cjs.map} +1 -1
  495. package/dist/{user-DxSilm4V.mjs → user-DexjSvGZ.mjs} +2 -2
  496. package/dist/{user-DxSilm4V.mjs.map → user-DexjSvGZ.mjs.map} +1 -1
  497. package/package.json +1 -1
  498. package/dist/avatar-CTS9-raY.cjs +0 -2
  499. package/dist/avatar-SJmvlfqm.mjs +0 -2
  500. package/dist/button-Bc8L9sFb.mjs +0 -2
  501. package/dist/button-CwDT3m4m.cjs +0 -2
  502. package/dist/close-BS6EeCrQ.mjs +0 -2
  503. package/dist/dialog-DG4vMCr5.mjs +0 -2
  504. package/dist/dist-Dh8WwRa8.cjs +0 -2
  505. package/dist/dist-Dh8WwRa8.cjs.map +0 -1
  506. package/dist/dist-XxWAVHy8.mjs +0 -2
  507. package/dist/dist-XxWAVHy8.mjs.map +0 -1
  508. package/dist/image-B1Dm5LWk.cjs +0 -2
  509. package/dist/image-C-CdKKP1.mjs +0 -2
  510. package/dist/label-BukQnBn7.mjs +0 -2
  511. package/dist/popover-DvGJ23lJ.mjs +0 -2
  512. package/dist/progress-2G9rCupJ.mjs +0 -2
  513. package/dist/progress-DE1FdQ1J.cjs +0 -2
  514. package/dist/radio-group-fN6o0QBx.mjs +0 -2
  515. package/dist/separator-DXnFHf3v.mjs +0 -2
  516. package/dist/sheet-GUUifKAd.mjs +0 -2
  517. package/dist/skeleton-BLwzHejl.mjs +0 -2
  518. package/dist/skeleton-BfMCjXYM.cjs +0 -2
  519. package/dist/spinner-BaZ19Lla.mjs +0 -2
  520. package/dist/spinner-rA8pMY6v.cjs +0 -2
  521. package/dist/tanstack-form-C1EVQJ-n.mjs +0 -2
  522. package/dist/tanstack-form-C1EVQJ-n.mjs.map +0 -1
  523. package/dist/tanstack-form-D3SXGzZI.cjs +0 -2
  524. package/dist/tanstack-form-D3SXGzZI.cjs.map +0 -1
  525. package/dist/text-editor-BHmVZnEK.cjs +0 -2
  526. package/dist/text-editor-ae2UTKW8.mjs +0 -2
  527. package/dist/tooltip-Cy0HbyAx.mjs +0 -2
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime81 from "react/jsx-runtime";
1
+ import * as react128 from "react";
2
2
  import { DropdownMenu as DropdownMenu$1 } from "radix-ui";
3
3
 
4
4
  //#region packages/components/ui/dropdown-menu.d.ts
@@ -26,26 +26,26 @@ import { DropdownMenu as DropdownMenu$1 } from "radix-ui";
26
26
  */
27
27
  declare function DropdownMenu({
28
28
  ...props
29
- }: React.ComponentProps<typeof DropdownMenu$1.Root>): react_jsx_runtime81.JSX.Element;
29
+ }: React.ComponentProps<typeof DropdownMenu$1.Root>): react128.JSX.Element;
30
30
  /** Portals DropdownMenu content outside the current DOM hierarchy. */
31
31
  declare function DropdownMenuPortal({
32
32
  ...props
33
- }: React.ComponentProps<typeof DropdownMenu$1.Portal>): react_jsx_runtime81.JSX.Element;
33
+ }: React.ComponentProps<typeof DropdownMenu$1.Portal>): react128.JSX.Element;
34
34
  /** Element that opens the DropdownMenu when activated. */
35
35
  declare function DropdownMenuTrigger({
36
36
  ...props
37
- }: React.ComponentProps<typeof DropdownMenu$1.Trigger>): react_jsx_runtime81.JSX.Element;
37
+ }: React.ComponentProps<typeof DropdownMenu$1.Trigger>): react128.JSX.Element;
38
38
  /** Animated floating panel that contains the dropdown items. */
39
39
  declare function DropdownMenuContent({
40
40
  className,
41
41
  sideOffset,
42
42
  align,
43
43
  ...props
44
- }: React.ComponentProps<typeof DropdownMenu$1.Content>): react_jsx_runtime81.JSX.Element;
44
+ }: React.ComponentProps<typeof DropdownMenu$1.Content>): react128.JSX.Element;
45
45
  /** Groups related DropdownMenuItems under a shared logical section. */
46
46
  declare function DropdownMenuGroup({
47
47
  ...props
48
- }: React.ComponentProps<typeof DropdownMenu$1.Group>): react_jsx_runtime81.JSX.Element;
48
+ }: React.ComponentProps<typeof DropdownMenu$1.Group>): react128.JSX.Element;
49
49
  /**
50
50
  * A single clickable row inside a DropdownMenuContent.
51
51
  *
@@ -60,24 +60,24 @@ declare function DropdownMenuItem({
60
60
  }: React.ComponentProps<typeof DropdownMenu$1.Item> & {
61
61
  inset?: boolean;
62
62
  variant?: 'default' | 'destructive';
63
- }): react_jsx_runtime81.JSX.Element;
63
+ }): react128.JSX.Element;
64
64
  /** A checkable menu item that displays a checkmark when selected. */
65
65
  declare function DropdownMenuCheckboxItem({
66
66
  className,
67
67
  children,
68
68
  checked,
69
69
  ...props
70
- }: React.ComponentProps<typeof DropdownMenu$1.CheckboxItem>): react_jsx_runtime81.JSX.Element;
70
+ }: React.ComponentProps<typeof DropdownMenu$1.CheckboxItem>): react128.JSX.Element;
71
71
  /** Groups DropdownMenuRadioItems so only one can be selected at a time. */
72
72
  declare function DropdownMenuRadioGroup({
73
73
  ...props
74
- }: React.ComponentProps<typeof DropdownMenu$1.RadioGroup>): react_jsx_runtime81.JSX.Element;
74
+ }: React.ComponentProps<typeof DropdownMenu$1.RadioGroup>): react128.JSX.Element;
75
75
  /** A radio-button menu item; shows a filled circle when selected. */
76
76
  declare function DropdownMenuRadioItem({
77
77
  className,
78
78
  children,
79
79
  ...props
80
- }: React.ComponentProps<typeof DropdownMenu$1.RadioItem>): react_jsx_runtime81.JSX.Element;
80
+ }: React.ComponentProps<typeof DropdownMenu$1.RadioItem>): react128.JSX.Element;
81
81
  /**
82
82
  * Non-interactive label used to describe a group of items.
83
83
  *
@@ -89,21 +89,21 @@ declare function DropdownMenuLabel({
89
89
  ...props
90
90
  }: React.ComponentProps<typeof DropdownMenu$1.Label> & {
91
91
  inset?: boolean;
92
- }): react_jsx_runtime81.JSX.Element;
92
+ }): react128.JSX.Element;
93
93
  /** Horizontal dividing line between groups of dropdown items. */
94
94
  declare function DropdownMenuSeparator({
95
95
  className,
96
96
  ...props
97
- }: React.ComponentProps<typeof DropdownMenu$1.Separator>): react_jsx_runtime81.JSX.Element;
97
+ }: React.ComponentProps<typeof DropdownMenu$1.Separator>): react128.JSX.Element;
98
98
  /** Displays a keyboard shortcut hint aligned to the right of a menu item. */
99
99
  declare function DropdownMenuShortcut({
100
100
  className,
101
101
  ...props
102
- }: React.ComponentProps<'span'>): react_jsx_runtime81.JSX.Element;
102
+ }: React.ComponentProps<'span'>): react128.JSX.Element;
103
103
  /** Root container for a nested sub-menu inside a DropdownMenu. */
104
104
  declare function DropdownMenuSub({
105
105
  ...props
106
- }: React.ComponentProps<typeof DropdownMenu$1.Sub>): react_jsx_runtime81.JSX.Element;
106
+ }: React.ComponentProps<typeof DropdownMenu$1.Sub>): react128.JSX.Element;
107
107
  /**
108
108
  * Menu item that reveals a nested DropdownMenuSubContent on hover or activation.
109
109
  *
@@ -116,12 +116,12 @@ declare function DropdownMenuSubTrigger({
116
116
  ...props
117
117
  }: React.ComponentProps<typeof DropdownMenu$1.SubTrigger> & {
118
118
  inset?: boolean;
119
- }): react_jsx_runtime81.JSX.Element;
119
+ }): react128.JSX.Element;
120
120
  /** Floating panel that contains the items of a nested sub-menu. */
121
121
  declare function DropdownMenuSubContent({
122
122
  className,
123
123
  ...props
124
- }: React.ComponentProps<typeof DropdownMenu$1.SubContent>): react_jsx_runtime81.JSX.Element;
124
+ }: React.ComponentProps<typeof DropdownMenu$1.SubContent>): react128.JSX.Element;
125
125
  //#endregion
126
126
  export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger };
127
127
  //# sourceMappingURL=dropdown-menu.d.mts.map
@@ -1 +1 @@
1
- "use client";import{a as e,c as t,d as n,f as r,h as i,i as a,l as o,m as s,n as c,o as l,p as u,r as d,s as f,t as p,u as m}from"../dropdown-menu-BlsIwe4B.mjs";export{p as DropdownMenu,c as DropdownMenuCheckboxItem,d as DropdownMenuContent,a as DropdownMenuGroup,e as DropdownMenuItem,l as DropdownMenuLabel,f as DropdownMenuPortal,t as DropdownMenuRadioGroup,o as DropdownMenuRadioItem,m as DropdownMenuSeparator,n as DropdownMenuShortcut,r as DropdownMenuSub,u as DropdownMenuSubContent,s as DropdownMenuSubTrigger,i as DropdownMenuTrigger};
1
+ "use client";import{a as e,c as t,d as n,f as r,h as i,i as a,l as o,m as s,n as c,o as l,p as u,r as d,s as f,t as p,u as m}from"../dropdown-menu-B_uBxY94.mjs";export{p as DropdownMenu,c as DropdownMenuCheckboxItem,d as DropdownMenuContent,a as DropdownMenuGroup,e as DropdownMenuItem,l as DropdownMenuLabel,f as DropdownMenuPortal,t as DropdownMenuRadioGroup,o as DropdownMenuRadioItem,m as DropdownMenuSeparator,n as DropdownMenuShortcut,r as DropdownMenuSub,u as DropdownMenuSubContent,s as DropdownMenuSubTrigger,i as DropdownMenuTrigger};
package/dist/ui/empty.cjs CHANGED
@@ -1,2 +1,2 @@
1
- const e=require(`../chunk-Bmb41Sf3.cjs`);let t=require(`react/jsx-runtime`),n=require(`@customafk/react-toolkit/utils`),r=require(`class-variance-authority`);function i({className:e,...r}){return(0,t.jsx)(`div`,{"data-slot":`empty`,className:(0,n.cn)(`flex min-w-0 flex-1 flex-col items-center justify-center gap-6 rounded-lg border-dashed p-6 text-center text-balance md:p-12`,e),...r})}function a({className:e,...r}){return(0,t.jsx)(`div`,{"data-slot":`empty-header`,className:(0,n.cn)(`flex max-w-sm flex-col items-center gap-2 text-center`,e),...r})}const o=(0,r.cva)(`flex shrink-0 items-center justify-center mb-2 [&_svg]:pointer-events-none [&_svg]:shrink-0`,{variants:{variant:{default:`bg-transparent`,icon:`bg-muted-muted text-text-positive-weak flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-6`}},defaultVariants:{variant:`default`}});function s({className:e,variant:r=`default`,...i}){return(0,t.jsx)(`div`,{"data-slot":`empty-icon`,"data-variant":r,className:(0,n.cn)(o({variant:r,className:e})),...i})}function c({className:e,...r}){return(0,t.jsx)(`div`,{"data-slot":`empty-title`,className:(0,n.cn)(`text-lg font-medium tracking-tight`,e),...r})}function l({className:e,...r}){return(0,t.jsx)(`div`,{"data-slot":`empty-description`,className:(0,n.cn)(`text-text-positive-weak [&>a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4`,e),...r})}function u({className:e,...r}){return(0,t.jsx)(`div`,{"data-slot":`empty-content`,className:(0,n.cn)(`flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance`,e),...r})}exports.Empty=i,exports.EmptyContent=u,exports.EmptyDescription=l,exports.EmptyHeader=a,exports.EmptyMedia=s,exports.EmptyTitle=c;
1
+ const e=require(`../chunk-Bmb41Sf3.cjs`);let t=require(`@customafk/react-toolkit/utils`),n=require(`class-variance-authority`),r=require(`react/jsx-runtime`);function i({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`empty`,className:(0,t.cn)(`flex min-w-0 flex-1 flex-col items-center justify-center gap-6 rounded-lg border-dashed p-6 text-center text-balance md:p-12`,e),...n})}function a({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`empty-header`,className:(0,t.cn)(`flex max-w-sm flex-col items-center gap-2 text-center`,e),...n})}const o=(0,n.cva)(`flex shrink-0 items-center justify-center mb-2 [&_svg]:pointer-events-none [&_svg]:shrink-0`,{variants:{variant:{default:`bg-transparent`,icon:`bg-muted-muted text-text-positive-weak flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-6`}},defaultVariants:{variant:`default`}});function s({className:e,variant:n=`default`,...i}){return(0,r.jsx)(`div`,{"data-slot":`empty-icon`,"data-variant":n,className:(0,t.cn)(o({variant:n,className:e})),...i})}function c({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`empty-title`,className:(0,t.cn)(`text-lg font-medium tracking-tight`,e),...n})}function l({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`empty-description`,className:(0,t.cn)(`text-text-positive-weak [&>a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4`,e),...n})}function u({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`empty-content`,className:(0,t.cn)(`flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance`,e),...n})}exports.Empty=i,exports.EmptyContent=u,exports.EmptyDescription=l,exports.EmptyHeader=a,exports.EmptyMedia=s,exports.EmptyTitle=c;
2
2
  //# sourceMappingURL=empty.cjs.map
@@ -1,5 +1,5 @@
1
- import * as react_jsx_runtime9 from "react/jsx-runtime";
2
- import * as class_variance_authority_types2 from "class-variance-authority/types";
1
+ import * as react227 from "react";
2
+ import * as class_variance_authority_types8 from "class-variance-authority/types";
3
3
  import { VariantProps } from "class-variance-authority";
4
4
 
5
5
  //#region packages/components/ui/empty.d.ts
@@ -29,15 +29,15 @@ import { VariantProps } from "class-variance-authority";
29
29
  declare function Empty({
30
30
  className,
31
31
  ...props
32
- }: React.ComponentProps<'div'>): react_jsx_runtime9.JSX.Element;
32
+ }: React.ComponentProps<'div'>): react227.JSX.Element;
33
33
  /** Centred column container for the media, title, and description of an empty state. */
34
34
  declare function EmptyHeader({
35
35
  className,
36
36
  ...props
37
- }: React.ComponentProps<'div'>): react_jsx_runtime9.JSX.Element;
37
+ }: React.ComponentProps<'div'>): react227.JSX.Element;
38
38
  declare const emptyMediaVariants: (props?: ({
39
39
  variant?: "default" | "icon" | null | undefined;
40
- } & class_variance_authority_types2.ClassProp) | undefined) => string;
40
+ } & class_variance_authority_types8.ClassProp) | undefined) => string;
41
41
  /**
42
42
  * Container for the visual element (illustration, icon, or image) in an empty state.
43
43
  *
@@ -47,22 +47,22 @@ declare function EmptyMedia({
47
47
  className,
48
48
  variant,
49
49
  ...props
50
- }: React.ComponentProps<'div'> & VariantProps<typeof emptyMediaVariants>): react_jsx_runtime9.JSX.Element;
50
+ }: React.ComponentProps<'div'> & VariantProps<typeof emptyMediaVariants>): react227.JSX.Element;
51
51
  /** Prominent heading text for the empty state. */
52
52
  declare function EmptyTitle({
53
53
  className,
54
54
  ...props
55
- }: React.ComponentProps<'div'>): react_jsx_runtime9.JSX.Element;
55
+ }: React.ComponentProps<'div'>): react227.JSX.Element;
56
56
  /** Supporting body text that explains the empty state to the user. */
57
57
  declare function EmptyDescription({
58
58
  className,
59
59
  ...props
60
- }: React.ComponentProps<'p'>): react_jsx_runtime9.JSX.Element;
60
+ }: React.ComponentProps<'p'>): react227.JSX.Element;
61
61
  /** Action area below the header — typically holds buttons or links to help the user proceed. */
62
62
  declare function EmptyContent({
63
63
  className,
64
64
  ...props
65
- }: React.ComponentProps<'div'>): react_jsx_runtime9.JSX.Element;
65
+ }: React.ComponentProps<'div'>): react227.JSX.Element;
66
66
  //#endregion
67
67
  export { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle };
68
68
  //# sourceMappingURL=empty.d.cts.map
@@ -1,6 +1,6 @@
1
- import * as react_jsx_runtime153 from "react/jsx-runtime";
1
+ import * as react143 from "react";
2
2
  import { VariantProps } from "class-variance-authority";
3
- import * as class_variance_authority_types6 from "class-variance-authority/types";
3
+ import * as class_variance_authority_types5 from "class-variance-authority/types";
4
4
 
5
5
  //#region packages/components/ui/empty.d.ts
6
6
 
@@ -29,15 +29,15 @@ import * as class_variance_authority_types6 from "class-variance-authority/types
29
29
  declare function Empty({
30
30
  className,
31
31
  ...props
32
- }: React.ComponentProps<'div'>): react_jsx_runtime153.JSX.Element;
32
+ }: React.ComponentProps<'div'>): react143.JSX.Element;
33
33
  /** Centred column container for the media, title, and description of an empty state. */
34
34
  declare function EmptyHeader({
35
35
  className,
36
36
  ...props
37
- }: React.ComponentProps<'div'>): react_jsx_runtime153.JSX.Element;
37
+ }: React.ComponentProps<'div'>): react143.JSX.Element;
38
38
  declare const emptyMediaVariants: (props?: ({
39
39
  variant?: "default" | "icon" | null | undefined;
40
- } & class_variance_authority_types6.ClassProp) | undefined) => string;
40
+ } & class_variance_authority_types5.ClassProp) | undefined) => string;
41
41
  /**
42
42
  * Container for the visual element (illustration, icon, or image) in an empty state.
43
43
  *
@@ -47,22 +47,22 @@ declare function EmptyMedia({
47
47
  className,
48
48
  variant,
49
49
  ...props
50
- }: React.ComponentProps<'div'> & VariantProps<typeof emptyMediaVariants>): react_jsx_runtime153.JSX.Element;
50
+ }: React.ComponentProps<'div'> & VariantProps<typeof emptyMediaVariants>): react143.JSX.Element;
51
51
  /** Prominent heading text for the empty state. */
52
52
  declare function EmptyTitle({
53
53
  className,
54
54
  ...props
55
- }: React.ComponentProps<'div'>): react_jsx_runtime153.JSX.Element;
55
+ }: React.ComponentProps<'div'>): react143.JSX.Element;
56
56
  /** Supporting body text that explains the empty state to the user. */
57
57
  declare function EmptyDescription({
58
58
  className,
59
59
  ...props
60
- }: React.ComponentProps<'p'>): react_jsx_runtime153.JSX.Element;
60
+ }: React.ComponentProps<'p'>): react143.JSX.Element;
61
61
  /** Action area below the header — typically holds buttons or links to help the user proceed. */
62
62
  declare function EmptyContent({
63
63
  className,
64
64
  ...props
65
- }: React.ComponentProps<'div'>): react_jsx_runtime153.JSX.Element;
65
+ }: React.ComponentProps<'div'>): react143.JSX.Element;
66
66
  //#endregion
67
67
  export { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle };
68
68
  //# sourceMappingURL=empty.d.mts.map
package/dist/ui/empty.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import{jsx as e}from"react/jsx-runtime";import{cn as t}from"@customafk/react-toolkit/utils";import{cva as n}from"class-variance-authority";function r({className:n,...r}){return e(`div`,{"data-slot":`empty`,className:t(`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`,n),...r})}function i({className:n,...r}){return e(`div`,{"data-slot":`empty-header`,className:t(`flex max-w-sm flex-col items-center gap-2 text-center`,n),...r})}const a=n(`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:n,variant:r=`default`,...i}){return e(`div`,{"data-slot":`empty-icon`,"data-variant":r,className:t(a({variant:r,className:n})),...i})}function s({className:n,...r}){return e(`div`,{"data-slot":`empty-title`,className:t(`text-lg font-medium tracking-tight`,n),...r})}function c({className:n,...r}){return e(`div`,{"data-slot":`empty-description`,className:t(`text-text-positive-weak [&>a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4`,n),...r})}function l({className:n,...r}){return e(`div`,{"data-slot":`empty-content`,className:t(`flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance`,n),...r})}export{r as Empty,l as EmptyContent,c as EmptyDescription,i as EmptyHeader,o as EmptyMedia,s as EmptyTitle};
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
2
  //# sourceMappingURL=empty.mjs.map
package/dist/ui/field.cjs CHANGED
@@ -1 +1 @@
1
- "use client";require(`../separator-BwZb12bh.cjs`),require(`../label-DYsRdKMt.cjs`);const e=require(`../field-enVJXFvC.cjs`);exports.Field=e.t,exports.FieldContent=e.n,exports.FieldDescription=e.r,exports.FieldError=e.i,exports.FieldGroup=e.a,exports.FieldLabel=e.o,exports.FieldLegend=e.s,exports.FieldSeparator=e.c,exports.FieldSet=e.l,exports.FieldTitle=e.u;
1
+ "use client";require(`../separator-jytY1CPq.cjs`),require(`../label-BHbqbBtO.cjs`);const e=require(`../field-DTGEedKl.cjs`);exports.Field=e.t,exports.FieldContent=e.n,exports.FieldDescription=e.r,exports.FieldError=e.i,exports.FieldGroup=e.a,exports.FieldLabel=e.o,exports.FieldLegend=e.s,exports.FieldSeparator=e.c,exports.FieldSet=e.l,exports.FieldTitle=e.u;
@@ -1,57 +1,56 @@
1
1
  import { Label } from "./label.cjs";
2
- import * as react_jsx_runtime29 from "react/jsx-runtime";
3
- import * as class_variance_authority_types3 from "class-variance-authority/types";
4
- import * as react0 from "react";
2
+ import * as react112 from "react";
3
+ import * as class_variance_authority_types5 from "class-variance-authority/types";
5
4
  import { VariantProps } from "class-variance-authority";
6
5
 
7
6
  //#region packages/components/ui/field.d.ts
8
- declare const FieldSet: react0.MemoExoticComponent<({
7
+ declare const FieldSet: react112.MemoExoticComponent<({
9
8
  className,
10
9
  ...props
11
- }: React.ComponentProps<"fieldset">) => react_jsx_runtime29.JSX.Element>;
12
- declare const FieldLegend: react0.MemoExoticComponent<({
10
+ }: React.ComponentProps<"fieldset">) => react112.JSX.Element>;
11
+ declare const FieldLegend: react112.MemoExoticComponent<({
13
12
  className,
14
13
  variant,
15
14
  ...props
16
15
  }: React.ComponentProps<"legend"> & {
17
16
  variant?: "legend" | "label";
18
- }) => react_jsx_runtime29.JSX.Element>;
19
- declare const FieldGroup: react0.MemoExoticComponent<({
17
+ }) => react112.JSX.Element>;
18
+ declare const FieldGroup: react112.MemoExoticComponent<({
20
19
  className,
21
20
  ...props
22
- }: React.ComponentProps<"div">) => react_jsx_runtime29.JSX.Element>;
21
+ }: React.ComponentProps<"div">) => react112.JSX.Element>;
23
22
  declare const fieldVariants: (props?: ({
24
23
  orientation?: "vertical" | "horizontal" | "responsive" | null | undefined;
25
- } & class_variance_authority_types3.ClassProp) | undefined) => string;
26
- declare const Field: react0.MemoExoticComponent<({
24
+ } & class_variance_authority_types5.ClassProp) | undefined) => string;
25
+ declare const Field: react112.MemoExoticComponent<({
27
26
  className,
28
27
  orientation,
29
28
  ...props
30
- }: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>) => react_jsx_runtime29.JSX.Element>;
31
- declare const FieldContent: react0.MemoExoticComponent<({
29
+ }: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>) => react112.JSX.Element>;
30
+ declare const FieldContent: react112.MemoExoticComponent<({
32
31
  className,
33
32
  ...props
34
- }: React.ComponentProps<"div">) => react_jsx_runtime29.JSX.Element>;
35
- declare const FieldLabel: react0.MemoExoticComponent<({
33
+ }: React.ComponentProps<"div">) => react112.JSX.Element>;
34
+ declare const FieldLabel: react112.MemoExoticComponent<({
36
35
  className,
37
36
  ...props
38
- }: React.ComponentProps<typeof Label>) => react_jsx_runtime29.JSX.Element>;
39
- declare const FieldTitle: react0.MemoExoticComponent<({
37
+ }: React.ComponentProps<typeof Label>) => react112.JSX.Element>;
38
+ declare const FieldTitle: react112.MemoExoticComponent<({
40
39
  className,
41
40
  ...props
42
- }: React.ComponentProps<"div">) => react_jsx_runtime29.JSX.Element>;
43
- declare const FieldDescription: react0.MemoExoticComponent<({
41
+ }: React.ComponentProps<"div">) => react112.JSX.Element>;
42
+ declare const FieldDescription: react112.MemoExoticComponent<({
44
43
  className,
45
44
  ...props
46
- }: React.ComponentProps<"p">) => react_jsx_runtime29.JSX.Element>;
47
- declare const FieldSeparator: react0.MemoExoticComponent<({
45
+ }: React.ComponentProps<"p">) => react112.JSX.Element>;
46
+ declare const FieldSeparator: react112.MemoExoticComponent<({
48
47
  children,
49
48
  className,
50
49
  ...props
51
50
  }: React.ComponentProps<"div"> & {
52
51
  children?: React.ReactNode;
53
- }) => react_jsx_runtime29.JSX.Element>;
54
- declare const FieldError: react0.MemoExoticComponent<({
52
+ }) => react112.JSX.Element>;
53
+ declare const FieldError: react112.MemoExoticComponent<({
55
54
  className,
56
55
  children,
57
56
  errors,
@@ -60,7 +59,7 @@ declare const FieldError: react0.MemoExoticComponent<({
60
59
  errors?: Array<{
61
60
  message?: string;
62
61
  } | undefined>;
63
- }) => react_jsx_runtime29.JSX.Element | null>;
62
+ }) => react112.JSX.Element | null>;
64
63
  //#endregion
65
64
  export { Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle };
66
65
  //# sourceMappingURL=field.d.cts.map
@@ -1,57 +1,56 @@
1
1
  import { Label } from "./label.mjs";
2
- import * as react1 from "react";
3
- import * as react_jsx_runtime108 from "react/jsx-runtime";
2
+ import * as react162 from "react";
4
3
  import { VariantProps } from "class-variance-authority";
5
- import * as class_variance_authority_types5 from "class-variance-authority/types";
4
+ import * as class_variance_authority_types6 from "class-variance-authority/types";
6
5
 
7
6
  //#region packages/components/ui/field.d.ts
8
- declare const FieldSet: react1.MemoExoticComponent<({
7
+ declare const FieldSet: react162.MemoExoticComponent<({
9
8
  className,
10
9
  ...props
11
- }: React.ComponentProps<"fieldset">) => react_jsx_runtime108.JSX.Element>;
12
- declare const FieldLegend: react1.MemoExoticComponent<({
10
+ }: React.ComponentProps<"fieldset">) => react162.JSX.Element>;
11
+ declare const FieldLegend: react162.MemoExoticComponent<({
13
12
  className,
14
13
  variant,
15
14
  ...props
16
15
  }: React.ComponentProps<"legend"> & {
17
16
  variant?: "legend" | "label";
18
- }) => react_jsx_runtime108.JSX.Element>;
19
- declare const FieldGroup: react1.MemoExoticComponent<({
17
+ }) => react162.JSX.Element>;
18
+ declare const FieldGroup: react162.MemoExoticComponent<({
20
19
  className,
21
20
  ...props
22
- }: React.ComponentProps<"div">) => react_jsx_runtime108.JSX.Element>;
21
+ }: React.ComponentProps<"div">) => react162.JSX.Element>;
23
22
  declare const fieldVariants: (props?: ({
24
23
  orientation?: "vertical" | "horizontal" | "responsive" | null | undefined;
25
- } & class_variance_authority_types5.ClassProp) | undefined) => string;
26
- declare const Field: react1.MemoExoticComponent<({
24
+ } & class_variance_authority_types6.ClassProp) | undefined) => string;
25
+ declare const Field: react162.MemoExoticComponent<({
27
26
  className,
28
27
  orientation,
29
28
  ...props
30
- }: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>) => react_jsx_runtime108.JSX.Element>;
31
- declare const FieldContent: react1.MemoExoticComponent<({
29
+ }: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>) => react162.JSX.Element>;
30
+ declare const FieldContent: react162.MemoExoticComponent<({
32
31
  className,
33
32
  ...props
34
- }: React.ComponentProps<"div">) => react_jsx_runtime108.JSX.Element>;
35
- declare const FieldLabel: react1.MemoExoticComponent<({
33
+ }: React.ComponentProps<"div">) => react162.JSX.Element>;
34
+ declare const FieldLabel: react162.MemoExoticComponent<({
36
35
  className,
37
36
  ...props
38
- }: React.ComponentProps<typeof Label>) => react_jsx_runtime108.JSX.Element>;
39
- declare const FieldTitle: react1.MemoExoticComponent<({
37
+ }: React.ComponentProps<typeof Label>) => react162.JSX.Element>;
38
+ declare const FieldTitle: react162.MemoExoticComponent<({
40
39
  className,
41
40
  ...props
42
- }: React.ComponentProps<"div">) => react_jsx_runtime108.JSX.Element>;
43
- declare const FieldDescription: react1.MemoExoticComponent<({
41
+ }: React.ComponentProps<"div">) => react162.JSX.Element>;
42
+ declare const FieldDescription: react162.MemoExoticComponent<({
44
43
  className,
45
44
  ...props
46
- }: React.ComponentProps<"p">) => react_jsx_runtime108.JSX.Element>;
47
- declare const FieldSeparator: react1.MemoExoticComponent<({
45
+ }: React.ComponentProps<"p">) => react162.JSX.Element>;
46
+ declare const FieldSeparator: react162.MemoExoticComponent<({
48
47
  children,
49
48
  className,
50
49
  ...props
51
50
  }: React.ComponentProps<"div"> & {
52
51
  children?: React.ReactNode;
53
- }) => react_jsx_runtime108.JSX.Element>;
54
- declare const FieldError: react1.MemoExoticComponent<({
52
+ }) => react162.JSX.Element>;
53
+ declare const FieldError: react162.MemoExoticComponent<({
55
54
  className,
56
55
  children,
57
56
  errors,
@@ -60,7 +59,7 @@ declare const FieldError: react1.MemoExoticComponent<({
60
59
  errors?: Array<{
61
60
  message?: string;
62
61
  } | undefined>;
63
- }) => react_jsx_runtime108.JSX.Element | null>;
62
+ }) => react162.JSX.Element | null>;
64
63
  //#endregion
65
64
  export { Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle };
66
65
  //# sourceMappingURL=field.d.mts.map
package/dist/ui/field.mjs CHANGED
@@ -1 +1 @@
1
- "use client";import"../separator-DXnFHf3v.mjs";import"../label-BukQnBn7.mjs";import{a as e,c as t,i as n,l as r,n as i,o as a,r as o,s,t as c,u as l}from"../field-Mn2bf2Ns.mjs";export{c as Field,i as FieldContent,o as FieldDescription,n as FieldError,e as FieldGroup,a as FieldLabel,s as FieldLegend,t as FieldSeparator,r as FieldSet,l as FieldTitle};
1
+ "use client";import"../separator-yTKDuMWb.mjs";import"../label-CE2m0U_j.mjs";import{a as e,c as t,i as n,l as r,n as i,o as a,r as o,s,t as c,u as l}from"../field-Bh7Hq4Lo.mjs";export{c as Field,i as FieldContent,o as FieldDescription,n as FieldError,e as FieldGroup,a as FieldLabel,s as FieldLegend,t as FieldSeparator,r as FieldSet,l as FieldTitle};
@@ -1,3 +1,3 @@
1
- "use client";const e=require(`../chunk-Bmb41Sf3.cjs`);require(`../button.variants-tnhb123u.cjs`);const t=require(`../button-CwDT3m4m.cjs`),n=require(`../progress-DE1FdQ1J.cjs`);let r=require(`lucide-react`),i=require(`react`),a=require(`react/jsx-runtime`),o=require(`@customafk/react-toolkit/utils`),s=require(`react-dropzone`);s=e.t(s);let c=require(`@customafk/react-toolkit/hooks/useControllableState`),l=require(`sonner`);function u(e){let{value:t,onValueChange:n,onUpload:u,progresses:p,accept:m={"image/*":[]},maxSize:h=1024*1024*2,maxFileCount:g=1,multiple:_=!1,disabled:v=!1,showText:y=!0,iconSize:b,className:x,...S}=e,[C,w]=(0,c.useControllableState)({prop:t,onChange:n}),T=(0,i.useCallback)((e,t)=>{if(!_&&g===1&&e.length>1){l.toast.error(`Cannot upload more than 1 file at a time`);return}if((C?.length??0)+e.length>g){l.toast.error(`Cannot upload more than ${g} files`);return}let n=e.map(e=>Object.assign(e,{preview:URL.createObjectURL(e)})),r=C?[...C,...n]:n;if(w(r),t.length>0&&t.forEach(({file:e})=>{l.toast.error(`File ${e.name} was rejected`)}),u&&r.length>0&&r.length<=g){let e=r.length>0?`${r.length} files`:`file`;u(r).then(()=>{w([]),(0,l.toast)(`${e} uploaded`)})}},[C,g,_,u,w]);function E(e){if(!C)return;f(C[e])&&URL.revokeObjectURL(C[e].preview);let t=C.filter((t,n)=>n!==e);w(t),n?.(t)}(0,i.useEffect)(()=>()=>{C&&C.forEach(e=>{f(e)&&URL.revokeObjectURL(e.preview)})},[]);let D=v||(C?.length??0)>=g;return(0,a.jsxs)(`div`,{className:`relative flex w-full flex-col gap-6`,children:[(0,a.jsx)(s.default,{onDrop:T,accept:m,maxSize:h,maxFiles:g,multiple:g>1||_,disabled:D,children:({getRootProps:e,getInputProps:t,isDragActive:n})=>(0,a.jsxs)(`div`,{...e(),className:(0,o.cn)(`group`,`border-border-weak`,`hover:bg-border-weak/20`,`relative grid h-52 w-full cursor-pointer place-items-center rounded-lg border-2 border-dashed px-5 py-2.5 text-center transition`,`ring-offset-background`,`focus-visible:ring-primary-weak`,`focus-visible:ring-2`,`focus-visible:ring-offset-2`,`focus-visible:outline-hidden`,n&&`border-border-primary-strong bg-border-weak/40`,D&&`pointer-events-none opacity-60`,x),...S,children:[(0,a.jsx)(`input`,{...t()}),n?(0,a.jsxs)(`div`,{className:`flex flex-col items-center justify-center gap-4 sm:px-5`,children:[(0,a.jsx)(`div`,{className:`rounded-full border border-dashed p-3`,children:(0,a.jsx)(r.Upload,{className:`text-text-positive-muted size-7`,"aria-hidden":`true`})}),(0,a.jsx)(`p`,{className:`text-text-positive-muted font-medium`,children:`Drop the files here`})]}):(0,a.jsxs)(`div`,{className:`flex flex-col items-center justify-center gap-4 sm:px-5`,children:[(0,a.jsx)(`div`,{className:`rounded-full border border-dashed p-3`,children:(0,a.jsx)(r.Upload,{size:b||24,className:`text-muted-foreground`,"aria-hidden":`true`})}),y&&(0,a.jsxs)(`div`,{className:`flex flex-col gap-px`,children:[(0,a.jsxs)(`p`,{className:`text-text-positive-weak text-xs font-medium`,children:[`Drag `,`'n'`,` drop files here, or click to select files`]}),(0,a.jsxs)(`p`,{className:`text-text-positive-muted text-xs`,children:[`You can upload`,g>1?` ${g===1/0?`multiple`:g}
2
- files (up to ${(0,o.formatBytes)(h)} each)`:` a file with ${(0,o.formatBytes)(h)}`]})]})]})]})}),C?.length?(0,a.jsxs)(`div`,{className:`h-fit w-full overflow-y-auto`,children:[(0,a.jsxs)(`div`,{className:`flex items-center justify-between px-3 py-2.5`,children:[(0,a.jsxs)(`div`,{className:`text-text-positive-weak flex items-center gap-1`,children:[(0,a.jsx)(r.Image,{size:16,"aria-hidden":`true`}),(0,a.jsxs)(`p`,{className:`text-sm`,children:[`Ảnh đã tải lên (`,C.length,`)`]})]}),(0,a.jsxs)(`button`,{className:`hover:text-text-positive text-text-positive-muted flex cursor-pointer items-center gap-1 transition-colors duration-200`,onClick:()=>{C&&(C.forEach(e=>{f(e)&&URL.revokeObjectURL(e.preview)}),w([]),n?.([]))},children:[(0,a.jsx)(r.Trash2,{size:16,"aria-hidden":`true`}),(0,a.jsx)(`p`,{className:`text-sm`,children:`Xóa tất cả`})]})]}),(0,a.jsx)(`div`,{className:`flex flex-col gap-2.5`,children:C?.map((e,t)=>(0,a.jsx)(d,{file:e,onRemove:()=>E(t),progress:p?.[e.name]},t))})]}):null]})}function d({file:e,progress:i,onRemove:s}){return(0,a.jsxs)(`div`,{className:`border-border-weak hover:border-border relative flex items-center gap-4 rounded-md border py-2 pr-3 pl-2 shadow-xs transition-colors`,children:[(0,a.jsxs)(`div`,{className:`flex flex-1 gap-2.5`,children:[f(e)?(0,a.jsx)(p,{file:e}):null,(0,a.jsxs)(`div`,{className:`flex w-full flex-col gap-2`,children:[(0,a.jsxs)(`div`,{className:`flex flex-col gap-y-0.5`,children:[(0,a.jsx)(`p`,{className:`text-text-positive line-clamp-1 text-sm`,children:e.name}),(0,a.jsx)(`p`,{className:`text-text-positive-muted text-xs`,children:(0,o.formatBytes)(e.size)})]}),i?(0,a.jsx)(n.t,{value:i}):null]})]}),(0,a.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,a.jsxs)(t.t,{type:`button`,variant:`ghost`,color:`secondary`,size:`icon`,className:`size-7`,onClick:s,children:[(0,a.jsx)(r.Trash2,{size:16,className:`text-text-positive-muted`,"aria-hidden":`true`}),(0,a.jsx)(`span`,{className:`sr-only`,children:`Remove file`})]})})]})}function f(e){return`preview`in e&&typeof e.preview==`string`}function p({file:e}){return e.type.startsWith(`image/`)?(0,a.jsx)(`img`,{src:e.preview,className:`border-border aspect-square size-10 shrink-0 rounded border object-cover object-top shadow-sm`}):(0,a.jsx)(r.FileText,{className:`text-text-positive-muted size-10 border`,"aria-hidden":`true`})}exports.FileUploader=u;
1
+ "use client";const e=require(`../chunk-Bmb41Sf3.cjs`);require(`../button.variants-tnhb123u.cjs`);const t=require(`../button-Bu4ejNOW.cjs`),n=require(`../progress-BXWPPNt5.cjs`);let r=require(`lucide-react`),i=require(`react`),a=require(`@customafk/react-toolkit/utils`),o=require(`react/jsx-runtime`),s=require(`react-dropzone`);s=e.t(s);let c=require(`@customafk/react-toolkit/hooks/useControllableState`),l=require(`sonner`);function u(e){let{value:t,onValueChange:n,onUpload:u,progresses:p,accept:m={"image/*":[]},maxSize:h=1024*1024*2,maxFileCount:g=1,multiple:_=!1,disabled:v=!1,showText:y=!0,iconSize:b,className:x,...S}=e,[C,w]=(0,c.useControllableState)({prop:t,onChange:n}),T=(0,i.useCallback)((e,t)=>{if(!_&&g===1&&e.length>1){l.toast.error(`Cannot upload more than 1 file at a time`);return}if((C?.length??0)+e.length>g){l.toast.error(`Cannot upload more than ${g} files`);return}let n=e.map(e=>Object.assign(e,{preview:URL.createObjectURL(e)})),r=C?[...C,...n]:n;if(w(r),t.length>0&&t.forEach(({file:e})=>{l.toast.error(`File ${e.name} was rejected`)}),u&&r.length>0&&r.length<=g){let e=r.length>0?`${r.length} files`:`file`;u(r).then(()=>{w([]),(0,l.toast)(`${e} uploaded`)})}},[C,g,_,u,w]);function E(e){if(!C)return;f(C[e])&&URL.revokeObjectURL(C[e].preview);let t=C.filter((t,n)=>n!==e);w(t),n?.(t)}(0,i.useEffect)(()=>()=>{C&&C.forEach(e=>{f(e)&&URL.revokeObjectURL(e.preview)})},[]);let D=v||(C?.length??0)>=g;return(0,o.jsxs)(`div`,{className:`relative flex w-full flex-col gap-6`,children:[(0,o.jsx)(s.default,{onDrop:T,accept:m,maxSize:h,maxFiles:g,multiple:g>1||_,disabled:D,children:({getRootProps:e,getInputProps:t,isDragActive:n})=>(0,o.jsxs)(`div`,{...e(),className:(0,a.cn)(`group`,`border-border-weak`,`hover:bg-border-weak/20`,`relative grid h-52 w-full cursor-pointer place-items-center rounded-lg border-2 border-dashed px-5 py-2.5 text-center transition`,`ring-offset-background`,`focus-visible:ring-primary-weak`,`focus-visible:ring-2`,`focus-visible:ring-offset-2`,`focus-visible:outline-hidden`,n&&`border-border-primary-strong bg-border-weak/40`,D&&`pointer-events-none opacity-60`,x),...S,children:[(0,o.jsx)(`input`,{...t()}),n?(0,o.jsxs)(`div`,{className:`flex flex-col items-center justify-center gap-4 sm:px-5`,children:[(0,o.jsx)(`div`,{className:`rounded-full border border-dashed p-3`,children:(0,o.jsx)(r.Upload,{className:`text-text-positive-muted size-7`,"aria-hidden":`true`})}),(0,o.jsx)(`p`,{className:`text-text-positive-muted font-medium`,children:`Drop the files here`})]}):(0,o.jsxs)(`div`,{className:`flex flex-col items-center justify-center gap-4 sm:px-5`,children:[(0,o.jsx)(`div`,{className:`rounded-full border border-dashed p-3`,children:(0,o.jsx)(r.Upload,{size:b||24,className:`text-muted-foreground`,"aria-hidden":`true`})}),y&&(0,o.jsxs)(`div`,{className:`flex flex-col gap-px`,children:[(0,o.jsxs)(`p`,{className:`text-text-positive-weak text-xs font-medium`,children:[`Drag `,`'n'`,` drop files here, or click to select files`]}),(0,o.jsxs)(`p`,{className:`text-text-positive-muted text-xs`,children:[`You can upload`,g>1?` ${g===1/0?`multiple`:g}
2
+ files (up to ${(0,a.formatBytes)(h)} each)`:` a file with ${(0,a.formatBytes)(h)}`]})]})]})]})}),C?.length?(0,o.jsxs)(`div`,{className:`h-fit w-full overflow-y-auto`,children:[(0,o.jsxs)(`div`,{className:`flex items-center justify-between px-3 py-2.5`,children:[(0,o.jsxs)(`div`,{className:`text-text-positive-weak flex items-center gap-1`,children:[(0,o.jsx)(r.Image,{size:16,"aria-hidden":`true`}),(0,o.jsxs)(`p`,{className:`text-sm`,children:[`Ảnh đã tải lên (`,C.length,`)`]})]}),(0,o.jsxs)(`button`,{className:`hover:text-text-positive text-text-positive-muted flex cursor-pointer items-center gap-1 transition-colors duration-200`,onClick:()=>{C&&(C.forEach(e=>{f(e)&&URL.revokeObjectURL(e.preview)}),w([]),n?.([]))},children:[(0,o.jsx)(r.Trash2,{size:16,"aria-hidden":`true`}),(0,o.jsx)(`p`,{className:`text-sm`,children:`Xóa tất cả`})]})]}),(0,o.jsx)(`div`,{className:`flex flex-col gap-2.5`,children:C?.map((e,t)=>(0,o.jsx)(d,{file:e,onRemove:()=>E(t),progress:p?.[e.name]},t))})]}):null]})}function d({file:e,progress:i,onRemove:s}){return(0,o.jsxs)(`div`,{className:`border-border-weak hover:border-border relative flex items-center gap-4 rounded-md border py-2 pr-3 pl-2 shadow-xs transition-colors`,children:[(0,o.jsxs)(`div`,{className:`flex flex-1 gap-2.5`,children:[f(e)?(0,o.jsx)(p,{file:e}):null,(0,o.jsxs)(`div`,{className:`flex w-full flex-col gap-2`,children:[(0,o.jsxs)(`div`,{className:`flex flex-col gap-y-0.5`,children:[(0,o.jsx)(`p`,{className:`text-text-positive line-clamp-1 text-sm`,children:e.name}),(0,o.jsx)(`p`,{className:`text-text-positive-muted text-xs`,children:(0,a.formatBytes)(e.size)})]}),i?(0,o.jsx)(n.t,{value:i}):null]})]}),(0,o.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,o.jsxs)(t.t,{type:`button`,variant:`ghost`,color:`secondary`,size:`icon`,className:`size-7`,onClick:s,children:[(0,o.jsx)(r.Trash2,{size:16,className:`text-text-positive-muted`,"aria-hidden":`true`}),(0,o.jsx)(`span`,{className:`sr-only`,children:`Remove file`})]})})]})}function f(e){return`preview`in e&&typeof e.preview==`string`}function p({file:e}){return e.type.startsWith(`image/`)?(0,o.jsx)(`img`,{src:e.preview,className:`border-border aspect-square size-10 shrink-0 rounded border object-cover object-top shadow-sm`}):(0,o.jsx)(r.FileText,{className:`text-text-positive-muted size-10 border`,"aria-hidden":`true`})}exports.FileUploader=u;
3
3
  //# sourceMappingURL=file-uploader.cjs.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime60 from "react/jsx-runtime";
1
+ import * as react150 from "react";
2
2
  import { DropzoneProps } from "react-dropzone";
3
3
 
4
4
  //#region packages/components/ui/file-uploader.d.ts
@@ -97,7 +97,7 @@ interface FileUploaderProps extends React.HTMLAttributes<HTMLDivElement> {
97
97
  /**
98
98
  * A drag-and-drop file upload zone that manages file selection, validation, preview generation, and optional async upload with progress tracking.
99
99
  */
100
- declare function FileUploader(props: FileUploaderProps): react_jsx_runtime60.JSX.Element;
100
+ declare function FileUploader(props: FileUploaderProps): react150.JSX.Element;
101
101
  //#endregion
102
102
  export { FileUploader };
103
103
  //# sourceMappingURL=file-uploader.d.cts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime152 from "react/jsx-runtime";
1
+ import * as react152 from "react";
2
2
  import { DropzoneProps } from "react-dropzone";
3
3
 
4
4
  //#region packages/components/ui/file-uploader.d.ts
@@ -97,7 +97,7 @@ interface FileUploaderProps extends React.HTMLAttributes<HTMLDivElement> {
97
97
  /**
98
98
  * A drag-and-drop file upload zone that manages file selection, validation, preview generation, and optional async upload with progress tracking.
99
99
  */
100
- declare function FileUploader(props: FileUploaderProps): react_jsx_runtime152.JSX.Element;
100
+ declare function FileUploader(props: FileUploaderProps): react152.JSX.Element;
101
101
  //#endregion
102
102
  export { FileUploader };
103
103
  //# sourceMappingURL=file-uploader.d.mts.map
@@ -1,3 +1,3 @@
1
- "use client";import"../button.variants-CwcJHcI5.mjs";import{t as e}from"../button-Bc8L9sFb.mjs";import{t}from"../progress-2G9rCupJ.mjs";import{FileText as n,Image as r,Trash2 as i,Upload as a}from"lucide-react";import{useCallback as o,useEffect as s}from"react";import{jsx as c,jsxs as l}from"react/jsx-runtime";import{cn as u,formatBytes as d}from"@customafk/react-toolkit/utils";import f from"react-dropzone";import{useControllableState as p}from"@customafk/react-toolkit/hooks/useControllableState";import{toast as m}from"sonner";function h(e){let{value:t,onValueChange:n,onUpload:h,progresses:v,accept:y={"image/*":[]},maxSize:b=1024*1024*2,maxFileCount:x=1,multiple:S=!1,disabled:C=!1,showText:w=!0,iconSize:T,className:E,...D}=e,[O,k]=p({prop:t,onChange:n}),A=o((e,t)=>{if(!S&&x===1&&e.length>1){m.error(`Cannot upload more than 1 file at a time`);return}if((O?.length??0)+e.length>x){m.error(`Cannot upload more than ${x} files`);return}let n=e.map(e=>Object.assign(e,{preview:URL.createObjectURL(e)})),r=O?[...O,...n]:n;if(k(r),t.length>0&&t.forEach(({file:e})=>{m.error(`File ${e.name} was rejected`)}),h&&r.length>0&&r.length<=x){let e=r.length>0?`${r.length} files`:`file`;h(r).then(()=>{k([]),m(`${e} uploaded`)})}},[O,x,S,h,k]);function j(e){if(!O)return;_(O[e])&&URL.revokeObjectURL(O[e].preview);let t=O.filter((t,n)=>n!==e);k(t),n?.(t)}s(()=>()=>{O&&O.forEach(e=>{_(e)&&URL.revokeObjectURL(e.preview)})},[]);let M=C||(O?.length??0)>=x;return l(`div`,{className:`relative flex w-full flex-col gap-6`,children:[c(f,{onDrop:A,accept:y,maxSize:b,maxFiles:x,multiple:x>1||S,disabled:M,children:({getRootProps:e,getInputProps:t,isDragActive:n})=>l(`div`,{...e(),className:u(`group`,`border-border-weak`,`hover:bg-border-weak/20`,`relative grid h-52 w-full cursor-pointer place-items-center rounded-lg border-2 border-dashed px-5 py-2.5 text-center transition`,`ring-offset-background`,`focus-visible:ring-primary-weak`,`focus-visible:ring-2`,`focus-visible:ring-offset-2`,`focus-visible:outline-hidden`,n&&`border-border-primary-strong bg-border-weak/40`,M&&`pointer-events-none opacity-60`,E),...D,children:[c(`input`,{...t()}),n?l(`div`,{className:`flex flex-col items-center justify-center gap-4 sm:px-5`,children:[c(`div`,{className:`rounded-full border border-dashed p-3`,children:c(a,{className:`text-text-positive-muted size-7`,"aria-hidden":`true`})}),c(`p`,{className:`text-text-positive-muted font-medium`,children:`Drop the files here`})]}):l(`div`,{className:`flex flex-col items-center justify-center gap-4 sm:px-5`,children:[c(`div`,{className:`rounded-full border border-dashed p-3`,children:c(a,{size:T||24,className:`text-muted-foreground`,"aria-hidden":`true`})}),w&&l(`div`,{className:`flex flex-col gap-px`,children:[l(`p`,{className:`text-text-positive-weak text-xs font-medium`,children:[`Drag `,`'n'`,` drop files here, or click to select files`]}),l(`p`,{className:`text-text-positive-muted text-xs`,children:[`You can upload`,x>1?` ${x===1/0?`multiple`:x}
2
- files (up to ${d(b)} each)`:` a file with ${d(b)}`]})]})]})]})}),O?.length?l(`div`,{className:`h-fit w-full overflow-y-auto`,children:[l(`div`,{className:`flex items-center justify-between px-3 py-2.5`,children:[l(`div`,{className:`text-text-positive-weak flex items-center gap-1`,children:[c(r,{size:16,"aria-hidden":`true`}),l(`p`,{className:`text-sm`,children:[`Ảnh đã tải lên (`,O.length,`)`]})]}),l(`button`,{className:`hover:text-text-positive text-text-positive-muted flex cursor-pointer items-center gap-1 transition-colors duration-200`,onClick:()=>{O&&(O.forEach(e=>{_(e)&&URL.revokeObjectURL(e.preview)}),k([]),n?.([]))},children:[c(i,{size:16,"aria-hidden":`true`}),c(`p`,{className:`text-sm`,children:`Xóa tất cả`})]})]}),c(`div`,{className:`flex flex-col gap-2.5`,children:O?.map((e,t)=>c(g,{file:e,onRemove:()=>j(t),progress:v?.[e.name]},t))})]}):null]})}function g({file:n,progress:r,onRemove:a}){return l(`div`,{className:`border-border-weak hover:border-border relative flex items-center gap-4 rounded-md border py-2 pr-3 pl-2 shadow-xs transition-colors`,children:[l(`div`,{className:`flex flex-1 gap-2.5`,children:[_(n)?c(v,{file:n}):null,l(`div`,{className:`flex w-full flex-col gap-2`,children:[l(`div`,{className:`flex flex-col gap-y-0.5`,children:[c(`p`,{className:`text-text-positive line-clamp-1 text-sm`,children:n.name}),c(`p`,{className:`text-text-positive-muted text-xs`,children:d(n.size)})]}),r?c(t,{value:r}):null]})]}),c(`div`,{className:`flex items-center gap-2`,children:l(e,{type:`button`,variant:`ghost`,color:`secondary`,size:`icon`,className:`size-7`,onClick:a,children:[c(i,{size:16,className:`text-text-positive-muted`,"aria-hidden":`true`}),c(`span`,{className:`sr-only`,children:`Remove file`})]})})]})}function _(e){return`preview`in e&&typeof e.preview==`string`}function v({file:e}){return e.type.startsWith(`image/`)?c(`img`,{src:e.preview,className:`border-border aspect-square size-10 shrink-0 rounded border object-cover object-top shadow-sm`}):c(n,{className:`text-text-positive-muted size-10 border`,"aria-hidden":`true`})}export{h as FileUploader};
1
+ "use client";import"../button.variants-CwcJHcI5.mjs";import{t as e}from"../button-BqxBQ4Kr.mjs";import{t}from"../progress-BcEEbgJJ.mjs";import{FileText as n,Image as r,Trash2 as i,Upload as a}from"lucide-react";import{useCallback as o,useEffect as s}from"react";import{cn as c,formatBytes as l}from"@customafk/react-toolkit/utils";import{jsx as u,jsxs as d}from"react/jsx-runtime";import f from"react-dropzone";import{useControllableState as p}from"@customafk/react-toolkit/hooks/useControllableState";import{toast as m}from"sonner";function h(e){let{value:t,onValueChange:n,onUpload:h,progresses:v,accept:y={"image/*":[]},maxSize:b=1024*1024*2,maxFileCount:x=1,multiple:S=!1,disabled:C=!1,showText:w=!0,iconSize:T,className:E,...D}=e,[O,k]=p({prop:t,onChange:n}),A=o((e,t)=>{if(!S&&x===1&&e.length>1){m.error(`Cannot upload more than 1 file at a time`);return}if((O?.length??0)+e.length>x){m.error(`Cannot upload more than ${x} files`);return}let n=e.map(e=>Object.assign(e,{preview:URL.createObjectURL(e)})),r=O?[...O,...n]:n;if(k(r),t.length>0&&t.forEach(({file:e})=>{m.error(`File ${e.name} was rejected`)}),h&&r.length>0&&r.length<=x){let e=r.length>0?`${r.length} files`:`file`;h(r).then(()=>{k([]),m(`${e} uploaded`)})}},[O,x,S,h,k]);function j(e){if(!O)return;_(O[e])&&URL.revokeObjectURL(O[e].preview);let t=O.filter((t,n)=>n!==e);k(t),n?.(t)}s(()=>()=>{O&&O.forEach(e=>{_(e)&&URL.revokeObjectURL(e.preview)})},[]);let M=C||(O?.length??0)>=x;return d(`div`,{className:`relative flex w-full flex-col gap-6`,children:[u(f,{onDrop:A,accept:y,maxSize:b,maxFiles:x,multiple:x>1||S,disabled:M,children:({getRootProps:e,getInputProps:t,isDragActive:n})=>d(`div`,{...e(),className:c(`group`,`border-border-weak`,`hover:bg-border-weak/20`,`relative grid h-52 w-full cursor-pointer place-items-center rounded-lg border-2 border-dashed px-5 py-2.5 text-center transition`,`ring-offset-background`,`focus-visible:ring-primary-weak`,`focus-visible:ring-2`,`focus-visible:ring-offset-2`,`focus-visible:outline-hidden`,n&&`border-border-primary-strong bg-border-weak/40`,M&&`pointer-events-none opacity-60`,E),...D,children:[u(`input`,{...t()}),n?d(`div`,{className:`flex flex-col items-center justify-center gap-4 sm:px-5`,children:[u(`div`,{className:`rounded-full border border-dashed p-3`,children:u(a,{className:`text-text-positive-muted size-7`,"aria-hidden":`true`})}),u(`p`,{className:`text-text-positive-muted font-medium`,children:`Drop the files here`})]}):d(`div`,{className:`flex flex-col items-center justify-center gap-4 sm:px-5`,children:[u(`div`,{className:`rounded-full border border-dashed p-3`,children:u(a,{size:T||24,className:`text-muted-foreground`,"aria-hidden":`true`})}),w&&d(`div`,{className:`flex flex-col gap-px`,children:[d(`p`,{className:`text-text-positive-weak text-xs font-medium`,children:[`Drag `,`'n'`,` drop files here, or click to select files`]}),d(`p`,{className:`text-text-positive-muted text-xs`,children:[`You can upload`,x>1?` ${x===1/0?`multiple`:x}
2
+ files (up to ${l(b)} each)`:` a file with ${l(b)}`]})]})]})]})}),O?.length?d(`div`,{className:`h-fit w-full overflow-y-auto`,children:[d(`div`,{className:`flex items-center justify-between px-3 py-2.5`,children:[d(`div`,{className:`text-text-positive-weak flex items-center gap-1`,children:[u(r,{size:16,"aria-hidden":`true`}),d(`p`,{className:`text-sm`,children:[`Ảnh đã tải lên (`,O.length,`)`]})]}),d(`button`,{className:`hover:text-text-positive text-text-positive-muted flex cursor-pointer items-center gap-1 transition-colors duration-200`,onClick:()=>{O&&(O.forEach(e=>{_(e)&&URL.revokeObjectURL(e.preview)}),k([]),n?.([]))},children:[u(i,{size:16,"aria-hidden":`true`}),u(`p`,{className:`text-sm`,children:`Xóa tất cả`})]})]}),u(`div`,{className:`flex flex-col gap-2.5`,children:O?.map((e,t)=>u(g,{file:e,onRemove:()=>j(t),progress:v?.[e.name]},t))})]}):null]})}function g({file:n,progress:r,onRemove:a}){return d(`div`,{className:`border-border-weak hover:border-border relative flex items-center gap-4 rounded-md border py-2 pr-3 pl-2 shadow-xs transition-colors`,children:[d(`div`,{className:`flex flex-1 gap-2.5`,children:[_(n)?u(v,{file:n}):null,d(`div`,{className:`flex w-full flex-col gap-2`,children:[d(`div`,{className:`flex flex-col gap-y-0.5`,children:[u(`p`,{className:`text-text-positive line-clamp-1 text-sm`,children:n.name}),u(`p`,{className:`text-text-positive-muted text-xs`,children:l(n.size)})]}),r?u(t,{value:r}):null]})]}),u(`div`,{className:`flex items-center gap-2`,children:d(e,{type:`button`,variant:`ghost`,color:`secondary`,size:`icon`,className:`size-7`,onClick:a,children:[u(i,{size:16,className:`text-text-positive-muted`,"aria-hidden":`true`}),u(`span`,{className:`sr-only`,children:`Remove file`})]})})]})}function _(e){return`preview`in e&&typeof e.preview==`string`}function v({file:e}){return e.type.startsWith(`image/`)?u(`img`,{src:e.preview,className:`border-border aspect-square size-10 shrink-0 rounded border object-cover object-top shadow-sm`}):u(n,{className:`text-text-positive-muted size-10 border`,"aria-hidden":`true`})}export{h as FileUploader};
3
3
  //# sourceMappingURL=file-uploader.mjs.map
package/dist/ui/form.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use client";const e=require(`../chunk-Bmb41Sf3.cjs`);require(`../separator-BwZb12bh.cjs`),require(`../label-DYsRdKMt.cjs`);const t=require(`../field-enVJXFvC.cjs`);let n=require(`react`),r=require(`react/jsx-runtime`),i=require(`@customafk/react-toolkit/utils`),a=require(`radix-ui`),o=require(`react-hook-form`);const s=o.FormProvider,c=(0,n.createContext)({}),l=({...e})=>(0,r.jsx)(c.Provider,{value:{name:e.name},children:(0,r.jsx)(o.Controller,{...e})}),u=()=>{let e=(0,n.use)(c),t=(0,n.use)(d),{getFieldState:r,control:i,resetField:a}=(0,o.useFormContext)(),s=(0,o.useFormState)({name:e.name}),l=r(e.name,s);if(!e)throw Error(`useFormField should be used within <FormField>`);let{id:u}=t;return{id:u,control:i,resetField:a,name:e.name,formItemId:`${u}-form-item`,formDescriptionId:`${u}-form-item-description`,formMessageId:`${u}-form-item-message`,...l}},d=(0,n.createContext)({}),f=(0,n.memo)(({className:e,orientation:i=`responsive`,...a})=>{let o=(0,n.useId)();return(0,r.jsx)(d.Provider,{value:{id:o},children:(0,r.jsx)(t.t,{orientation:i,...a,className:e})})});f.displayName=`FormItem`;const p=(0,n.memo)(({...e})=>{let{formItemId:n}=u();return(0,r.jsx)(t.o,{htmlFor:n,...e})});p.displayName=`FormLabel`;const m=(0,n.memo)(({...e})=>{let{error:t,formItemId:n,formDescriptionId:i,formMessageId:o}=u();return(0,r.jsx)(a.Slot.Slot,{"data-slot":`form-control`,id:n,"aria-describedby":t?`${i} ${o}`:`${i}`,"aria-invalid":!!t,...e})});m.displayName=`FormControl`;function h({className:e,...n}){let{formDescriptionId:a}=u();return(0,r.jsx)(t.r,{id:a,className:(0,i.cn)(`text-text-positive-weak text-sm/6 leading-normal font-normal`,`group-has-data-[orientation=horizontal]/field:text-balance`,`last:mt-0 nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5`,`[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4`,e),...n})}function g({className:e,children:t,...n}){let{error:a,formMessageId:o}=u();return(0,r.jsx)(`span`,{"data-slot":`form-message`,id:o,className:(0,i.cn)(`text-danger text-xs`,e),...n,children:a?String(a?.message??``):t})}exports.Form=s,exports.FormControl=m,exports.FormDescription=h,exports.FormField=l,exports.FormItem=f,exports.FormLabel=p,exports.FormMessage=g,exports.useFormField=u;
1
+ "use client";const e=require(`../chunk-Bmb41Sf3.cjs`);require(`../separator-jytY1CPq.cjs`),require(`../label-BHbqbBtO.cjs`);const t=require(`../field-DTGEedKl.cjs`);let n=require(`react`),r=require(`@customafk/react-toolkit/utils`),i=require(`react/jsx-runtime`),a=require(`radix-ui`),o=require(`react-hook-form`);const s=o.FormProvider,c=(0,n.createContext)({}),l=({...e})=>(0,i.jsx)(c.Provider,{value:{name:e.name},children:(0,i.jsx)(o.Controller,{...e})}),u=()=>{let e=(0,n.use)(c),t=(0,n.use)(d),{getFieldState:r,control:i,resetField:a}=(0,o.useFormContext)(),s=(0,o.useFormState)({name:e.name}),l=r(e.name,s);if(!e)throw Error(`useFormField should be used within <FormField>`);let{id:u}=t;return{id:u,control:i,resetField:a,name:e.name,formItemId:`${u}-form-item`,formDescriptionId:`${u}-form-item-description`,formMessageId:`${u}-form-item-message`,...l}},d=(0,n.createContext)({}),f=(0,n.memo)(({className:e,orientation:r=`responsive`,...a})=>{let o=(0,n.useId)();return(0,i.jsx)(d.Provider,{value:{id:o},children:(0,i.jsx)(t.t,{orientation:r,...a,className:e})})});f.displayName=`FormItem`;const p=(0,n.memo)(({...e})=>{let{formItemId:n}=u();return(0,i.jsx)(t.o,{htmlFor:n,...e})});p.displayName=`FormLabel`;const m=(0,n.memo)(({...e})=>{let{error:t,formItemId:n,formDescriptionId:r,formMessageId:o}=u();return(0,i.jsx)(a.Slot.Slot,{"data-slot":`form-control`,id:n,"aria-describedby":t?`${r} ${o}`:`${r}`,"aria-invalid":!!t,...e})});m.displayName=`FormControl`;function h({className:e,...n}){let{formDescriptionId:a}=u();return(0,i.jsx)(t.r,{id:a,className:(0,r.cn)(`text-text-positive-weak text-sm/6 leading-normal font-normal`,`group-has-data-[orientation=horizontal]/field:text-balance`,`last:mt-0 nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5`,`[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4`,e),...n})}function g({className:e,children:t,...n}){let{error:a,formMessageId:o}=u();return(0,i.jsx)(`span`,{"data-slot":`form-message`,id:o,className:(0,r.cn)(`text-danger text-xs`,e),...n,children:a?String(a?.message??``):t})}exports.Form=s,exports.FormControl=m,exports.FormDescription=h,exports.FormField=l,exports.FormItem=f,exports.FormLabel=p,exports.FormMessage=g,exports.useFormField=u;
2
2
  //# sourceMappingURL=form.cjs.map