@customafk/lunas-ui 0.1.18 → 0.1.20

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 (377) hide show
  1. package/dist/{avatar-BNU7KL48.mjs → avatar-BaxX-xI9.mjs} +1 -1
  2. package/dist/{avatar-BNU7KL48.mjs.map → avatar-BaxX-xI9.mjs.map} +1 -1
  3. package/dist/{avatar-DzZQenXU.cjs → avatar-dAu1c0bC.cjs} +1 -1
  4. package/dist/{avatar-DzZQenXU.cjs.map → avatar-dAu1c0bC.cjs.map} +1 -1
  5. package/dist/{button-vNDXA78a.d.mts → button-C2mvaa5I.d.mts} +5 -5
  6. package/dist/{button-C8HSrN_3.d.cts → button-CVYH2lum.d.cts} +5 -5
  7. package/dist/{button-JJaTl28Z.mjs → button-DIEXNBpi.mjs} +2 -2
  8. package/dist/{button-JJaTl28Z.mjs.map → button-DIEXNBpi.mjs.map} +1 -1
  9. package/dist/{button.variants-CgCCe7qb.mjs → button.variants-DmUzMbB8.mjs} +1 -1
  10. package/dist/{button.variants-CgCCe7qb.mjs.map → button.variants-DmUzMbB8.mjs.map} +1 -1
  11. package/dist/card-CWAdGhMr.mjs +2 -0
  12. package/dist/card-CWAdGhMr.mjs.map +1 -0
  13. package/dist/card-wGoU4Xiq.cjs +2 -0
  14. package/dist/card-wGoU4Xiq.cjs.map +1 -0
  15. package/dist/cards/grid-product-card.cjs +1 -1
  16. package/dist/cards/grid-product-card.mjs +1 -1
  17. package/dist/cards/product-card.cjs +1 -1
  18. package/dist/cards/product-card.mjs +1 -1
  19. package/dist/cards/simple-card.cjs +1 -1
  20. package/dist/cards/simple-card.mjs +1 -1
  21. package/dist/{close-B_PnUzNN.mjs → close-CGei_VQ6.mjs} +1 -1
  22. package/dist/{close-B_PnUzNN.mjs.map → close-CGei_VQ6.mjs.map} +1 -1
  23. package/dist/{close-DKsjFTou.cjs → close-CXhpIVAZ.cjs} +1 -1
  24. package/dist/{close-DKsjFTou.cjs.map → close-CXhpIVAZ.cjs.map} +1 -1
  25. package/dist/{command-Dohhg_fY.cjs → command-B8Tbe4oe.cjs} +2 -2
  26. package/dist/{command-Dohhg_fY.cjs.map → command-B8Tbe4oe.cjs.map} +1 -1
  27. package/dist/{command-CtWxCsMm.mjs → command-BLlJzBw9.mjs} +2 -2
  28. package/dist/{command-CtWxCsMm.mjs.map → command-BLlJzBw9.mjs.map} +1 -1
  29. package/dist/data-display/country.cjs +1 -1
  30. package/dist/data-display/country.cjs.map +1 -1
  31. package/dist/data-display/country.d.cts +1 -1
  32. package/dist/data-display/country.d.mts +1 -1
  33. package/dist/data-display/country.mjs +1 -1
  34. package/dist/data-display/country.mjs.map +1 -1
  35. package/dist/data-display/data-list.cjs +1 -1
  36. package/dist/data-display/data-list.cjs.map +1 -1
  37. package/dist/data-display/data-list.mjs +1 -1
  38. package/dist/data-display/data-list.mjs.map +1 -1
  39. package/dist/data-display/date-tooltip.cjs +1 -1
  40. package/dist/data-display/date-tooltip.mjs +1 -1
  41. package/dist/data-display/date.cjs +1 -1
  42. package/dist/data-display/date.mjs +1 -1
  43. package/dist/data-display/empty.cjs +1 -1
  44. package/dist/data-display/empty.cjs.map +1 -1
  45. package/dist/data-display/empty.d.mts +2 -2
  46. package/dist/data-display/empty.mjs +1 -1
  47. package/dist/data-display/empty.mjs.map +1 -1
  48. package/dist/data-display/name.cjs +1 -1
  49. package/dist/data-display/name.cjs.map +1 -1
  50. package/dist/data-display/name.mjs +1 -1
  51. package/dist/data-display/name.mjs.map +1 -1
  52. package/dist/data-display/phone-number.cjs +1 -1
  53. package/dist/data-display/phone-number.mjs +1 -1
  54. package/dist/data-display/role-badge.d.cts +1 -1
  55. package/dist/data-display/role-badge.d.mts +1 -1
  56. package/dist/data-display/role-badge.mjs +1 -1
  57. package/dist/data-display/statistic.cjs +1 -1
  58. package/dist/data-display/statistic.cjs.map +1 -1
  59. package/dist/data-display/statistic.d.cts +2 -2
  60. package/dist/data-display/statistic.mjs +1 -1
  61. package/dist/data-display/statistic.mjs.map +1 -1
  62. package/dist/data-display/user.cjs +1 -1
  63. package/dist/data-display/user.cjs.map +1 -1
  64. package/dist/data-display/user.mjs +1 -1
  65. package/dist/data-display/user.mjs.map +1 -1
  66. package/dist/{date-BUKVV2NZ.cjs → date-DU8xM0hQ.cjs} +2 -2
  67. package/dist/date-DU8xM0hQ.cjs.map +1 -0
  68. package/dist/{date-SmlhDFZs.mjs → date-Vl-tZLuD.mjs} +2 -2
  69. package/dist/date-Vl-tZLuD.mjs.map +1 -0
  70. package/dist/{dialog-CoSwDi4O.d.cts → dialog-B-W-TsHv.d.cts} +12 -12
  71. package/dist/{dialog-DU7tobKF.d.mts → dialog-DTDroSTP.d.mts} +12 -12
  72. package/dist/{dialog-DEnVUD9A.cjs → dialog-DZ_gg6Ol.cjs} +2 -2
  73. package/dist/{dialog-DEnVUD9A.cjs.map → dialog-DZ_gg6Ol.cjs.map} +1 -1
  74. package/dist/{dialog-4ZJcWPar.mjs → dialog-DeZVOOmh.mjs} +2 -2
  75. package/dist/{dialog-4ZJcWPar.mjs.map → dialog-DeZVOOmh.mjs.map} +1 -1
  76. package/dist/dialogs/confirm-dialog.mjs +1 -1
  77. package/dist/dialogs/detail-dialog/component/sidebar.cjs +1 -1
  78. package/dist/dialogs/detail-dialog/component/sidebar.d.cts +30 -30
  79. package/dist/dialogs/detail-dialog/component/sidebar.d.mts +28 -28
  80. package/dist/dialogs/detail-dialog/component/sidebar.mjs +1 -1
  81. package/dist/dialogs/detail-dialog/index.cjs +1 -1
  82. package/dist/dialogs/detail-dialog/index.cjs.map +1 -1
  83. package/dist/dialogs/detail-dialog/index.mjs +1 -1
  84. package/dist/dialogs/detail-dialog/index.mjs.map +1 -1
  85. package/dist/dialogs/error-dialog.mjs +1 -1
  86. package/dist/dialogs/loading-dialog.cjs +1 -1
  87. package/dist/dialogs/loading-dialog.mjs +1 -1
  88. package/dist/{dist-D2ydYRc4.mjs → dist-CT2ZB1PF.mjs} +1 -1
  89. package/dist/{dist-D2ydYRc4.mjs.map → dist-CT2ZB1PF.mjs.map} +1 -1
  90. package/dist/{drawer-B2QxYWMi.mjs → drawer-272Fecsq.mjs} +1 -1
  91. package/dist/{drawer-B2QxYWMi.mjs.map → drawer-272Fecsq.mjs.map} +1 -1
  92. package/dist/{drawer-DpT2kOKz.cjs → drawer-y-Yrqskp.cjs} +1 -1
  93. package/dist/{drawer-DpT2kOKz.cjs.map → drawer-y-Yrqskp.cjs.map} +1 -1
  94. package/dist/{dropdown-menu-BuyuU6uF.cjs → dropdown-menu-C_dw8mro.cjs} +1 -1
  95. package/dist/{dropdown-menu-BuyuU6uF.cjs.map → dropdown-menu-C_dw8mro.cjs.map} +1 -1
  96. package/dist/{dropdown-menu-BwcDzb4B.mjs → dropdown-menu-CtU6oBI4.mjs} +1 -1
  97. package/dist/{dropdown-menu-BwcDzb4B.mjs.map → dropdown-menu-CtU6oBI4.mjs.map} +1 -1
  98. package/dist/features/search-modal/index.cjs +1 -1
  99. package/dist/features/search-modal/index.d.cts +2 -2
  100. package/dist/features/search-modal/index.d.mts +2 -2
  101. package/dist/features/search-modal/index.mjs +1 -1
  102. package/dist/features/tables/index.cjs +2 -0
  103. package/dist/features/tables/index.cjs.map +1 -0
  104. package/dist/features/tables/index.d.cts +75 -0
  105. package/dist/features/tables/index.d.mts +75 -0
  106. package/dist/features/tables/index.mjs +2 -0
  107. package/dist/features/tables/index.mjs.map +1 -0
  108. package/dist/features/tanstack-form/index.cjs +1 -1
  109. package/dist/features/tanstack-form/index.mjs +1 -1
  110. package/dist/flex-BGQqaHKh.mjs +2 -0
  111. package/dist/flex-BGQqaHKh.mjs.map +1 -0
  112. package/dist/flex-BYj-xYaw.cjs +2 -0
  113. package/dist/flex-BYj-xYaw.cjs.map +1 -0
  114. package/dist/{image-xsA4ZQ-u.mjs → image-BwbAQRxx.mjs} +2 -2
  115. package/dist/{image-xsA4ZQ-u.mjs.map → image-BwbAQRxx.mjs.map} +1 -1
  116. package/dist/{input-CEwMjaj3.d.cts → input-7SdNeLmh.d.cts} +4 -4
  117. package/dist/{input-CYFvmWQU.mjs → input-CC10BdKh.mjs} +1 -1
  118. package/dist/{input-CYFvmWQU.mjs.map → input-CC10BdKh.mjs.map} +1 -1
  119. package/dist/{input-ttkmXaOF.d.mts → input-Dh6hVhHG.d.mts} +4 -4
  120. package/dist/{input-CvMqFdEE.cjs → input-DhUevNkc.cjs} +1 -1
  121. package/dist/{input-CvMqFdEE.cjs.map → input-DhUevNkc.cjs.map} +1 -1
  122. package/dist/{label-D6vHFlHX.cjs → label-CaBktIhh.cjs} +1 -1
  123. package/dist/{label-D6vHFlHX.cjs.map → label-CaBktIhh.cjs.map} +1 -1
  124. package/dist/{label-11tIftbr.mjs → label-DVfxfyG5.mjs} +1 -1
  125. package/dist/{label-11tIftbr.mjs.map → label-DVfxfyG5.mjs.map} +1 -1
  126. package/dist/layouts/app-layout/index.cjs +1 -1
  127. package/dist/layouts/app-layout/index.d.cts +28 -28
  128. package/dist/layouts/app-layout/index.d.mts +28 -28
  129. package/dist/layouts/app-layout/index.mjs +1 -1
  130. package/dist/layouts/cms-layout/index.cjs +1 -1
  131. package/dist/layouts/cms-layout/index.cjs.map +1 -1
  132. package/dist/layouts/cms-layout/index.mjs +1 -1
  133. package/dist/layouts/cms-layout/index.mjs.map +1 -1
  134. package/dist/layouts/flex.cjs +1 -2
  135. package/dist/layouts/flex.d.cts +6 -6
  136. package/dist/layouts/flex.d.mts +4 -4
  137. package/dist/layouts/flex.mjs +1 -2
  138. package/dist/layouts/service-layout/index.cjs +1 -1
  139. package/dist/layouts/service-layout/index.d.cts +13 -13
  140. package/dist/layouts/service-layout/index.d.mts +15 -15
  141. package/dist/layouts/service-layout/index.mjs +1 -1
  142. package/dist/layouts/service-layout/index.mjs.map +1 -1
  143. package/dist/pages/FeatureDeveloping.d.cts +2 -2
  144. package/dist/pages/FeatureDeveloping.d.mts +2 -2
  145. package/dist/pages/FeatureDeveloping.mjs +1 -1
  146. package/dist/pages/FeatureFixing.d.cts +2 -2
  147. package/dist/pages/FeatureFixing.d.mts +2 -2
  148. package/dist/pages/FeatureFixing.mjs +1 -1
  149. package/dist/pages/NotAuthorized.d.cts +2 -2
  150. package/dist/pages/NotAuthorized.d.mts +2 -2
  151. package/dist/pages/NotAuthorized.mjs +1 -1
  152. package/dist/pages/NotFound.d.cts +2 -2
  153. package/dist/pages/NotFound.d.mts +2 -2
  154. package/dist/pages/NotFound.mjs +1 -1
  155. package/dist/paragraph-0_oMnSMM.cjs +2 -0
  156. package/dist/paragraph-0_oMnSMM.cjs.map +1 -0
  157. package/dist/paragraph-BXY43iOX.mjs +2 -0
  158. package/dist/paragraph-BXY43iOX.mjs.map +1 -0
  159. package/dist/resizable-B9HHrfKn.mjs +2 -0
  160. package/dist/resizable-B9HHrfKn.mjs.map +1 -0
  161. package/dist/resizable-D8XbQdj_.cjs +2 -0
  162. package/dist/resizable-D8XbQdj_.cjs.map +1 -0
  163. package/dist/{scroll-area-4UBa5t9-.mjs → scroll-area-CiMS2UY7.mjs} +1 -1
  164. package/dist/{scroll-area-4UBa5t9-.mjs.map → scroll-area-CiMS2UY7.mjs.map} +1 -1
  165. package/dist/{scroll-area-BzXnYZNO.cjs → scroll-area-qE6GqGkn.cjs} +1 -1
  166. package/dist/{scroll-area-BzXnYZNO.cjs.map → scroll-area-qE6GqGkn.cjs.map} +1 -1
  167. package/dist/{separator-Be9cbVN8.d.mts → separator-BlXmdu-p.d.cts} +3 -3
  168. package/dist/{separator-Bf0gymN4.mjs → separator-C2yOD6r_.mjs} +1 -1
  169. package/dist/{separator-Bf0gymN4.mjs.map → separator-C2yOD6r_.mjs.map} +1 -1
  170. package/dist/{separator-jytY1CPq.cjs → separator-D3CGKwyf.cjs} +1 -1
  171. package/dist/{separator-jytY1CPq.cjs.map → separator-D3CGKwyf.cjs.map} +1 -1
  172. package/dist/{separator-DiP2uw3M.d.cts → separator-uqlPXXM6.d.mts} +3 -3
  173. package/dist/{sheet-oadGRiie.mjs → sheet-DXLayspn.mjs} +1 -1
  174. package/dist/{sheet-oadGRiie.mjs.map → sheet-DXLayspn.mjs.map} +1 -1
  175. package/dist/{sheet-BTGsz390.cjs → sheet-DtWL6WcJ.cjs} +1 -1
  176. package/dist/{sheet-BTGsz390.cjs.map → sheet-DtWL6WcJ.cjs.map} +1 -1
  177. package/dist/{skeleton-6MpPv0K3.mjs → skeleton-CvZncisJ.mjs} +1 -1
  178. package/dist/{skeleton-6MpPv0K3.mjs.map → skeleton-CvZncisJ.mjs.map} +1 -1
  179. package/dist/{tabs-BIo6ZB9g.mjs → tabs-Cjh2jtUZ.mjs} +1 -1
  180. package/dist/{tabs-BIo6ZB9g.mjs.map → tabs-Cjh2jtUZ.mjs.map} +1 -1
  181. package/dist/{tabs-bXy8hbAR.cjs → tabs-DSofRReg.cjs} +1 -1
  182. package/dist/{tabs-bXy8hbAR.cjs.map → tabs-DSofRReg.cjs.map} +1 -1
  183. package/dist/{title-BaHImoIu.cjs → title-C4XNLXSe.cjs} +1 -1
  184. package/dist/{title-BaHImoIu.cjs.map → title-C4XNLXSe.cjs.map} +1 -1
  185. package/dist/{title-DcNd812E.mjs → title-CMJS7QS7.mjs} +1 -1
  186. package/dist/{title-DcNd812E.mjs.map → title-CMJS7QS7.mjs.map} +1 -1
  187. package/dist/{tooltip-DGiat0Dt.mjs → tooltip-D0XDvxqi.mjs} +1 -1
  188. package/dist/{tooltip-DGiat0Dt.mjs.map → tooltip-D0XDvxqi.mjs.map} +1 -1
  189. package/dist/{tooltip-CwJnif3V.d.mts → tooltip-DOnCuFV4.d.cts} +6 -6
  190. package/dist/{tooltip-xl-O4did.d.cts → tooltip-DWHcJkRL.d.mts} +6 -6
  191. package/dist/{tooltip-CUSQdxdt.cjs → tooltip-zYWazsY5.cjs} +1 -1
  192. package/dist/{tooltip-CUSQdxdt.cjs.map → tooltip-zYWazsY5.cjs.map} +1 -1
  193. package/dist/{types-BQMTFD_z.mjs → types-BZefxrvC.mjs} +1 -1
  194. package/dist/{types-BQMTFD_z.mjs.map → types-BZefxrvC.mjs.map} +1 -1
  195. package/dist/{types-BB_E2uE0.d.mts → types-D2kMOc_b.d.mts} +1 -1
  196. package/dist/{types-CwAGHByL.d.cts → types-D8mZhixM.d.cts} +1 -1
  197. package/dist/typography/paragraph.cjs +1 -2
  198. package/dist/typography/paragraph.d.cts +2 -2
  199. package/dist/typography/paragraph.d.mts +2 -2
  200. package/dist/typography/paragraph.mjs +1 -2
  201. package/dist/typography/title.cjs +1 -1
  202. package/dist/typography/title.d.cts +2 -2
  203. package/dist/typography/title.d.mts +2 -2
  204. package/dist/typography/title.mjs +1 -1
  205. package/dist/ui/alert-dialog.d.cts +12 -12
  206. package/dist/ui/alert-dialog.d.mts +12 -12
  207. package/dist/ui/alert-dialog.mjs +1 -1
  208. package/dist/ui/alert.d.cts +6 -6
  209. package/dist/ui/alert.d.mts +4 -4
  210. package/dist/ui/aspect-ratio.d.cts +2 -2
  211. package/dist/ui/aspect-ratio.d.mts +2 -2
  212. package/dist/ui/avatar.cjs +1 -1
  213. package/dist/ui/avatar.d.cts +4 -4
  214. package/dist/ui/avatar.d.mts +4 -4
  215. package/dist/ui/avatar.mjs +1 -1
  216. package/dist/ui/badge.d.cts +4 -4
  217. package/dist/ui/badge.d.mts +4 -4
  218. package/dist/ui/breadcrumb.d.mts +8 -8
  219. package/dist/ui/breadcrumb.mjs +1 -1
  220. package/dist/ui/button-group.cjs +1 -1
  221. package/dist/ui/button-group.d.cts +7 -7
  222. package/dist/ui/button-group.d.mts +7 -7
  223. package/dist/ui/button-group.mjs +1 -1
  224. package/dist/ui/button.d.cts +1 -1
  225. package/dist/ui/button.d.mts +1 -1
  226. package/dist/ui/button.mjs +1 -1
  227. package/dist/ui/buttons/add-new.cjs +1 -1
  228. package/dist/ui/buttons/add-new.cjs.map +1 -1
  229. package/dist/ui/buttons/add-new.mjs +1 -1
  230. package/dist/ui/buttons/add-new.mjs.map +1 -1
  231. package/dist/ui/buttons/edit.mjs +1 -1
  232. package/dist/ui/buttons/refresh.cjs +1 -1
  233. package/dist/ui/buttons/refresh.cjs.map +1 -1
  234. package/dist/ui/buttons/refresh.mjs +1 -1
  235. package/dist/ui/buttons/refresh.mjs.map +1 -1
  236. package/dist/ui/buttons/trash.mjs +1 -1
  237. package/dist/ui/buttons/upload-image.mjs +1 -1
  238. package/dist/ui/calendar.d.cts +4 -4
  239. package/dist/ui/calendar.d.mts +4 -4
  240. package/dist/ui/calendar.mjs +1 -1
  241. package/dist/ui/card.cjs +1 -1
  242. package/dist/ui/card.d.cts +8 -8
  243. package/dist/ui/card.d.mts +8 -8
  244. package/dist/ui/card.mjs +1 -1
  245. package/dist/ui/carousel.d.cts +7 -7
  246. package/dist/ui/carousel.d.mts +7 -7
  247. package/dist/ui/carousel.mjs +1 -1
  248. package/dist/ui/collapsible.d.cts +4 -4
  249. package/dist/ui/collapsible.d.mts +4 -4
  250. package/dist/ui/command.cjs +1 -1
  251. package/dist/ui/command.d.cts +11 -11
  252. package/dist/ui/command.d.mts +11 -11
  253. package/dist/ui/command.mjs +1 -1
  254. package/dist/ui/context-menu.d.cts +16 -16
  255. package/dist/ui/context-menu.d.mts +16 -16
  256. package/dist/ui/dialog.cjs +1 -1
  257. package/dist/ui/dialog.d.cts +1 -1
  258. package/dist/ui/dialog.d.mts +1 -1
  259. package/dist/ui/dialog.mjs +1 -1
  260. package/dist/ui/drawer.cjs +1 -1
  261. package/dist/ui/drawer.d.cts +11 -11
  262. package/dist/ui/drawer.mjs +1 -1
  263. package/dist/ui/dropdown-menu.cjs +1 -1
  264. package/dist/ui/dropdown-menu.d.cts +16 -16
  265. package/dist/ui/dropdown-menu.d.mts +16 -16
  266. package/dist/ui/dropdown-menu.mjs +1 -1
  267. package/dist/ui/empty.d.mts +9 -9
  268. package/dist/ui/field.cjs +1 -1
  269. package/dist/ui/field.d.cts +22 -22
  270. package/dist/ui/field.d.mts +13 -13
  271. package/dist/ui/field.mjs +1 -1
  272. package/dist/ui/file-uploader.d.cts +2 -2
  273. package/dist/ui/file-uploader.d.mts +2 -2
  274. package/dist/ui/file-uploader.mjs +1 -1
  275. package/dist/ui/form.cjs +1 -1
  276. package/dist/ui/form.d.cts +11 -11
  277. package/dist/ui/form.d.mts +7 -7
  278. package/dist/ui/form.mjs +1 -1
  279. package/dist/ui/hover-card.d.cts +4 -4
  280. package/dist/ui/hover-card.d.mts +4 -4
  281. package/dist/ui/image.mjs +1 -1
  282. package/dist/ui/input-otp.d.cts +5 -5
  283. package/dist/ui/input-otp.d.mts +5 -5
  284. package/dist/ui/input.cjs +1 -1
  285. package/dist/ui/input.d.cts +1 -1
  286. package/dist/ui/input.d.mts +1 -1
  287. package/dist/ui/input.mjs +1 -1
  288. package/dist/ui/inputs/search-input.cjs +1 -1
  289. package/dist/ui/inputs/search-input.d.cts +3 -3
  290. package/dist/ui/inputs/search-input.d.mts +3 -3
  291. package/dist/ui/inputs/search-input.mjs +1 -1
  292. package/dist/ui/item.cjs +1 -1
  293. package/dist/ui/item.d.cts +14 -14
  294. package/dist/ui/item.d.mts +17 -17
  295. package/dist/ui/item.mjs +1 -1
  296. package/dist/ui/label.cjs +1 -1
  297. package/dist/ui/label.d.cts +2 -2
  298. package/dist/ui/label.d.mts +2 -2
  299. package/dist/ui/label.mjs +1 -1
  300. package/dist/ui/menubar.d.cts +17 -17
  301. package/dist/ui/menubar.d.mts +17 -17
  302. package/dist/ui/multi-select.cjs +1 -1
  303. package/dist/ui/multi-select.d.mts +3 -3
  304. package/dist/ui/multi-select.mjs +1 -1
  305. package/dist/ui/navigation-menu.d.cts +9 -9
  306. package/dist/ui/navigation-menu.d.mts +11 -11
  307. package/dist/ui/pagination.d.cts +9 -9
  308. package/dist/ui/pagination.d.mts +9 -9
  309. package/dist/ui/pagination.mjs +1 -1
  310. package/dist/ui/popover.d.cts +5 -5
  311. package/dist/ui/popover.d.mts +5 -5
  312. package/dist/ui/progress.d.cts +2 -2
  313. package/dist/ui/progress.d.mts +2 -2
  314. package/dist/ui/radio-group.d.cts +3 -3
  315. package/dist/ui/radio-group.d.mts +3 -3
  316. package/dist/ui/resizable.cjs +1 -2
  317. package/dist/ui/resizable.d.cts +4 -4
  318. package/dist/ui/resizable.d.mts +4 -4
  319. package/dist/ui/resizable.mjs +1 -2
  320. package/dist/ui/scroll-area.cjs +1 -1
  321. package/dist/ui/scroll-area.d.cts +3 -3
  322. package/dist/ui/scroll-area.d.mts +6 -6
  323. package/dist/ui/scroll-area.mjs +1 -1
  324. package/dist/ui/select.d.cts +11 -11
  325. package/dist/ui/select.d.mts +11 -11
  326. package/dist/ui/separator.cjs +1 -1
  327. package/dist/ui/separator.d.cts +1 -1
  328. package/dist/ui/separator.d.mts +1 -1
  329. package/dist/ui/separator.mjs +1 -1
  330. package/dist/ui/sheet.cjs +1 -1
  331. package/dist/ui/sheet.d.cts +9 -9
  332. package/dist/ui/sheet.d.mts +9 -9
  333. package/dist/ui/sheet.mjs +1 -1
  334. package/dist/ui/sidebar.cjs +1 -1
  335. package/dist/ui/sidebar.d.cts +30 -30
  336. package/dist/ui/sidebar.d.mts +28 -28
  337. package/dist/ui/sidebar.mjs +1 -1
  338. package/dist/ui/skeleton.d.cts +2 -2
  339. package/dist/ui/skeleton.d.mts +2 -2
  340. package/dist/ui/skeleton.mjs +1 -1
  341. package/dist/ui/slider.d.cts +2 -2
  342. package/dist/ui/slider.d.mts +2 -2
  343. package/dist/ui/sonner.d.cts +2 -2
  344. package/dist/ui/sonner.d.mts +2 -2
  345. package/dist/ui/spinner.d.cts +2 -2
  346. package/dist/ui/spinner.d.mts +2 -2
  347. package/dist/ui/switch.d.cts +2 -2
  348. package/dist/ui/switch.d.mts +2 -2
  349. package/dist/ui/table.d.cts +9 -9
  350. package/dist/ui/table.d.mts +18 -18
  351. package/dist/ui/tabs.cjs +1 -1
  352. package/dist/ui/tabs.d.cts +5 -5
  353. package/dist/ui/tabs.d.mts +5 -5
  354. package/dist/ui/tabs.mjs +1 -1
  355. package/dist/ui/textarea.d.cts +2 -2
  356. package/dist/ui/textarea.d.mts +2 -2
  357. package/dist/ui/toggle-group.d.cts +3 -3
  358. package/dist/ui/toggle-group.d.mts +3 -3
  359. package/dist/ui/toggle.d.cts +4 -4
  360. package/dist/ui/toggle.d.mts +2 -2
  361. package/dist/ui/tooltip.cjs +1 -1
  362. package/dist/ui/tooltip.d.cts +1 -1
  363. package/dist/ui/tooltip.d.mts +1 -1
  364. package/dist/ui/tooltip.mjs +1 -1
  365. package/package.json +5 -1
  366. package/dist/card-C8fcblBB.mjs +0 -2
  367. package/dist/card-C8fcblBB.mjs.map +0 -1
  368. package/dist/card-CXsIpa9Y.cjs +0 -2
  369. package/dist/card-CXsIpa9Y.cjs.map +0 -1
  370. package/dist/date-BUKVV2NZ.cjs.map +0 -1
  371. package/dist/date-SmlhDFZs.mjs.map +0 -1
  372. package/dist/layouts/flex.cjs.map +0 -1
  373. package/dist/layouts/flex.mjs.map +0 -1
  374. package/dist/typography/paragraph.cjs.map +0 -1
  375. package/dist/typography/paragraph.mjs.map +0 -1
  376. package/dist/ui/resizable.cjs.map +0 -1
  377. package/dist/ui/resizable.mjs.map +0 -1
@@ -1,44 +1,44 @@
1
- import * as react_jsx_runtime136 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime121 from "react/jsx-runtime";
2
2
  import { Drawer as Drawer$1 } from "vaul";
3
3
 
4
4
  //#region packages/components/ui/drawer.d.ts
5
5
  declare function Drawer({
6
6
  ...props
7
- }: React.ComponentProps<typeof Drawer$1.Root>): react_jsx_runtime136.JSX.Element;
7
+ }: React.ComponentProps<typeof Drawer$1.Root>): react_jsx_runtime121.JSX.Element;
8
8
  declare function DrawerTrigger({
9
9
  ...props
10
- }: React.ComponentProps<typeof Drawer$1.Trigger>): react_jsx_runtime136.JSX.Element;
10
+ }: React.ComponentProps<typeof Drawer$1.Trigger>): react_jsx_runtime121.JSX.Element;
11
11
  declare function DrawerPortal({
12
12
  ...props
13
- }: React.ComponentProps<typeof Drawer$1.Portal>): react_jsx_runtime136.JSX.Element;
13
+ }: React.ComponentProps<typeof Drawer$1.Portal>): react_jsx_runtime121.JSX.Element;
14
14
  declare function DrawerClose({
15
15
  ...props
16
- }: React.ComponentProps<typeof Drawer$1.Close>): react_jsx_runtime136.JSX.Element;
16
+ }: React.ComponentProps<typeof Drawer$1.Close>): react_jsx_runtime121.JSX.Element;
17
17
  declare function DrawerOverlay({
18
18
  className,
19
19
  ...props
20
- }: React.ComponentProps<typeof Drawer$1.Overlay>): react_jsx_runtime136.JSX.Element;
20
+ }: React.ComponentProps<typeof Drawer$1.Overlay>): react_jsx_runtime121.JSX.Element;
21
21
  declare function DrawerContent({
22
22
  className,
23
23
  children,
24
24
  ...props
25
- }: React.ComponentProps<typeof Drawer$1.Content>): react_jsx_runtime136.JSX.Element;
25
+ }: React.ComponentProps<typeof Drawer$1.Content>): react_jsx_runtime121.JSX.Element;
26
26
  declare function DrawerHeader({
27
27
  className,
28
28
  ...props
29
- }: React.ComponentProps<'div'>): react_jsx_runtime136.JSX.Element;
29
+ }: React.ComponentProps<'div'>): react_jsx_runtime121.JSX.Element;
30
30
  declare function DrawerFooter({
31
31
  className,
32
32
  ...props
33
- }: React.ComponentProps<'div'>): react_jsx_runtime136.JSX.Element;
33
+ }: React.ComponentProps<'div'>): react_jsx_runtime121.JSX.Element;
34
34
  declare function DrawerTitle({
35
35
  className,
36
36
  ...props
37
- }: React.ComponentProps<typeof Drawer$1.Title>): react_jsx_runtime136.JSX.Element;
37
+ }: React.ComponentProps<typeof Drawer$1.Title>): react_jsx_runtime121.JSX.Element;
38
38
  declare function DrawerDescription({
39
39
  className,
40
40
  ...props
41
- }: React.ComponentProps<typeof Drawer$1.Description>): react_jsx_runtime136.JSX.Element;
41
+ }: React.ComponentProps<typeof Drawer$1.Description>): react_jsx_runtime121.JSX.Element;
42
42
  //#endregion
43
43
  export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger };
44
44
  //# sourceMappingURL=drawer.d.cts.map
@@ -1 +1 @@
1
- "use client";import{a as e,c as t,i as n,l as r,n as i,o as a,r as o,s,t as c,u as l}from"../drawer-B2QxYWMi.mjs";export{c as Drawer,i as DrawerClose,o as DrawerContent,n as DrawerDescription,e as DrawerFooter,a as DrawerHeader,s as DrawerOverlay,t as DrawerPortal,r as DrawerTitle,l as DrawerTrigger};
1
+ "use client";import{a as e,c as t,i as n,l as r,n as i,o as a,r as o,s,t as c,u as l}from"../drawer-272Fecsq.mjs";export{c as Drawer,i as DrawerClose,o as DrawerContent,n as DrawerDescription,e as DrawerFooter,a as DrawerHeader,s as DrawerOverlay,t as DrawerPortal,r as DrawerTitle,l as DrawerTrigger};
@@ -1 +1 @@
1
- "use client";const e=require(`../dropdown-menu-BuyuU6uF.cjs`);exports.DropdownMenu=e.t,exports.DropdownMenuCheckboxItem=e.n,exports.DropdownMenuContent=e.r,exports.DropdownMenuGroup=e.i,exports.DropdownMenuItem=e.a,exports.DropdownMenuLabel=e.o,exports.DropdownMenuPortal=e.s,exports.DropdownMenuRadioGroup=e.c,exports.DropdownMenuRadioItem=e.l,exports.DropdownMenuSeparator=e.u,exports.DropdownMenuShortcut=e.d,exports.DropdownMenuSub=e.f,exports.DropdownMenuSubContent=e.p,exports.DropdownMenuSubTrigger=e.m,exports.DropdownMenuTrigger=e.h;
1
+ "use client";const e=require(`../dropdown-menu-C_dw8mro.cjs`);exports.DropdownMenu=e.t,exports.DropdownMenuCheckboxItem=e.n,exports.DropdownMenuContent=e.r,exports.DropdownMenuGroup=e.i,exports.DropdownMenuItem=e.a,exports.DropdownMenuLabel=e.o,exports.DropdownMenuPortal=e.s,exports.DropdownMenuRadioGroup=e.c,exports.DropdownMenuRadioItem=e.l,exports.DropdownMenuSeparator=e.u,exports.DropdownMenuShortcut=e.d,exports.DropdownMenuSub=e.f,exports.DropdownMenuSubContent=e.p,exports.DropdownMenuSubTrigger=e.m,exports.DropdownMenuTrigger=e.h;
@@ -1,25 +1,25 @@
1
- import * as react_jsx_runtime121 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime106 from "react/jsx-runtime";
2
2
  import { DropdownMenu as DropdownMenu$1 } from "radix-ui";
3
3
 
4
4
  //#region packages/components/ui/dropdown-menu.d.ts
5
5
  declare function DropdownMenu({
6
6
  ...props
7
- }: React.ComponentProps<typeof DropdownMenu$1.Root>): react_jsx_runtime121.JSX.Element;
7
+ }: React.ComponentProps<typeof DropdownMenu$1.Root>): react_jsx_runtime106.JSX.Element;
8
8
  declare function DropdownMenuPortal({
9
9
  ...props
10
- }: React.ComponentProps<typeof DropdownMenu$1.Portal>): react_jsx_runtime121.JSX.Element;
10
+ }: React.ComponentProps<typeof DropdownMenu$1.Portal>): react_jsx_runtime106.JSX.Element;
11
11
  declare function DropdownMenuTrigger({
12
12
  ...props
13
- }: React.ComponentProps<typeof DropdownMenu$1.Trigger>): react_jsx_runtime121.JSX.Element;
13
+ }: React.ComponentProps<typeof DropdownMenu$1.Trigger>): react_jsx_runtime106.JSX.Element;
14
14
  declare function DropdownMenuContent({
15
15
  className,
16
16
  sideOffset,
17
17
  align,
18
18
  ...props
19
- }: React.ComponentProps<typeof DropdownMenu$1.Content>): react_jsx_runtime121.JSX.Element;
19
+ }: React.ComponentProps<typeof DropdownMenu$1.Content>): react_jsx_runtime106.JSX.Element;
20
20
  declare function DropdownMenuGroup({
21
21
  ...props
22
- }: React.ComponentProps<typeof DropdownMenu$1.Group>): react_jsx_runtime121.JSX.Element;
22
+ }: React.ComponentProps<typeof DropdownMenu$1.Group>): react_jsx_runtime106.JSX.Element;
23
23
  declare function DropdownMenuItem({
24
24
  className,
25
25
  inset,
@@ -28,39 +28,39 @@ declare function DropdownMenuItem({
28
28
  }: React.ComponentProps<typeof DropdownMenu$1.Item> & {
29
29
  inset?: boolean;
30
30
  variant?: 'default' | 'destructive';
31
- }): react_jsx_runtime121.JSX.Element;
31
+ }): react_jsx_runtime106.JSX.Element;
32
32
  declare function DropdownMenuCheckboxItem({
33
33
  className,
34
34
  children,
35
35
  checked,
36
36
  ...props
37
- }: React.ComponentProps<typeof DropdownMenu$1.CheckboxItem>): react_jsx_runtime121.JSX.Element;
37
+ }: React.ComponentProps<typeof DropdownMenu$1.CheckboxItem>): react_jsx_runtime106.JSX.Element;
38
38
  declare function DropdownMenuRadioGroup({
39
39
  ...props
40
- }: React.ComponentProps<typeof DropdownMenu$1.RadioGroup>): react_jsx_runtime121.JSX.Element;
40
+ }: React.ComponentProps<typeof DropdownMenu$1.RadioGroup>): react_jsx_runtime106.JSX.Element;
41
41
  declare function DropdownMenuRadioItem({
42
42
  className,
43
43
  children,
44
44
  ...props
45
- }: React.ComponentProps<typeof DropdownMenu$1.RadioItem>): react_jsx_runtime121.JSX.Element;
45
+ }: React.ComponentProps<typeof DropdownMenu$1.RadioItem>): react_jsx_runtime106.JSX.Element;
46
46
  declare function DropdownMenuLabel({
47
47
  className,
48
48
  inset,
49
49
  ...props
50
50
  }: React.ComponentProps<typeof DropdownMenu$1.Label> & {
51
51
  inset?: boolean;
52
- }): react_jsx_runtime121.JSX.Element;
52
+ }): react_jsx_runtime106.JSX.Element;
53
53
  declare function DropdownMenuSeparator({
54
54
  className,
55
55
  ...props
56
- }: React.ComponentProps<typeof DropdownMenu$1.Separator>): react_jsx_runtime121.JSX.Element;
56
+ }: React.ComponentProps<typeof DropdownMenu$1.Separator>): react_jsx_runtime106.JSX.Element;
57
57
  declare function DropdownMenuShortcut({
58
58
  className,
59
59
  ...props
60
- }: React.ComponentProps<'span'>): react_jsx_runtime121.JSX.Element;
60
+ }: React.ComponentProps<'span'>): react_jsx_runtime106.JSX.Element;
61
61
  declare function DropdownMenuSub({
62
62
  ...props
63
- }: React.ComponentProps<typeof DropdownMenu$1.Sub>): react_jsx_runtime121.JSX.Element;
63
+ }: React.ComponentProps<typeof DropdownMenu$1.Sub>): react_jsx_runtime106.JSX.Element;
64
64
  declare function DropdownMenuSubTrigger({
65
65
  className,
66
66
  inset,
@@ -68,11 +68,11 @@ declare function DropdownMenuSubTrigger({
68
68
  ...props
69
69
  }: React.ComponentProps<typeof DropdownMenu$1.SubTrigger> & {
70
70
  inset?: boolean;
71
- }): react_jsx_runtime121.JSX.Element;
71
+ }): react_jsx_runtime106.JSX.Element;
72
72
  declare function DropdownMenuSubContent({
73
73
  className,
74
74
  ...props
75
- }: React.ComponentProps<typeof DropdownMenu$1.SubContent>): react_jsx_runtime121.JSX.Element;
75
+ }: React.ComponentProps<typeof DropdownMenu$1.SubContent>): react_jsx_runtime106.JSX.Element;
76
76
  //#endregion
77
77
  export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger };
78
78
  //# sourceMappingURL=dropdown-menu.d.cts.map
@@ -1,25 +1,25 @@
1
- import * as react_jsx_runtime247 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime152 from "react/jsx-runtime";
2
2
  import { DropdownMenu as DropdownMenu$1 } from "radix-ui";
3
3
 
4
4
  //#region packages/components/ui/dropdown-menu.d.ts
5
5
  declare function DropdownMenu({
6
6
  ...props
7
- }: React.ComponentProps<typeof DropdownMenu$1.Root>): react_jsx_runtime247.JSX.Element;
7
+ }: React.ComponentProps<typeof DropdownMenu$1.Root>): react_jsx_runtime152.JSX.Element;
8
8
  declare function DropdownMenuPortal({
9
9
  ...props
10
- }: React.ComponentProps<typeof DropdownMenu$1.Portal>): react_jsx_runtime247.JSX.Element;
10
+ }: React.ComponentProps<typeof DropdownMenu$1.Portal>): react_jsx_runtime152.JSX.Element;
11
11
  declare function DropdownMenuTrigger({
12
12
  ...props
13
- }: React.ComponentProps<typeof DropdownMenu$1.Trigger>): react_jsx_runtime247.JSX.Element;
13
+ }: React.ComponentProps<typeof DropdownMenu$1.Trigger>): react_jsx_runtime152.JSX.Element;
14
14
  declare function DropdownMenuContent({
15
15
  className,
16
16
  sideOffset,
17
17
  align,
18
18
  ...props
19
- }: React.ComponentProps<typeof DropdownMenu$1.Content>): react_jsx_runtime247.JSX.Element;
19
+ }: React.ComponentProps<typeof DropdownMenu$1.Content>): react_jsx_runtime152.JSX.Element;
20
20
  declare function DropdownMenuGroup({
21
21
  ...props
22
- }: React.ComponentProps<typeof DropdownMenu$1.Group>): react_jsx_runtime247.JSX.Element;
22
+ }: React.ComponentProps<typeof DropdownMenu$1.Group>): react_jsx_runtime152.JSX.Element;
23
23
  declare function DropdownMenuItem({
24
24
  className,
25
25
  inset,
@@ -28,39 +28,39 @@ declare function DropdownMenuItem({
28
28
  }: React.ComponentProps<typeof DropdownMenu$1.Item> & {
29
29
  inset?: boolean;
30
30
  variant?: 'default' | 'destructive';
31
- }): react_jsx_runtime247.JSX.Element;
31
+ }): react_jsx_runtime152.JSX.Element;
32
32
  declare function DropdownMenuCheckboxItem({
33
33
  className,
34
34
  children,
35
35
  checked,
36
36
  ...props
37
- }: React.ComponentProps<typeof DropdownMenu$1.CheckboxItem>): react_jsx_runtime247.JSX.Element;
37
+ }: React.ComponentProps<typeof DropdownMenu$1.CheckboxItem>): react_jsx_runtime152.JSX.Element;
38
38
  declare function DropdownMenuRadioGroup({
39
39
  ...props
40
- }: React.ComponentProps<typeof DropdownMenu$1.RadioGroup>): react_jsx_runtime247.JSX.Element;
40
+ }: React.ComponentProps<typeof DropdownMenu$1.RadioGroup>): react_jsx_runtime152.JSX.Element;
41
41
  declare function DropdownMenuRadioItem({
42
42
  className,
43
43
  children,
44
44
  ...props
45
- }: React.ComponentProps<typeof DropdownMenu$1.RadioItem>): react_jsx_runtime247.JSX.Element;
45
+ }: React.ComponentProps<typeof DropdownMenu$1.RadioItem>): react_jsx_runtime152.JSX.Element;
46
46
  declare function DropdownMenuLabel({
47
47
  className,
48
48
  inset,
49
49
  ...props
50
50
  }: React.ComponentProps<typeof DropdownMenu$1.Label> & {
51
51
  inset?: boolean;
52
- }): react_jsx_runtime247.JSX.Element;
52
+ }): react_jsx_runtime152.JSX.Element;
53
53
  declare function DropdownMenuSeparator({
54
54
  className,
55
55
  ...props
56
- }: React.ComponentProps<typeof DropdownMenu$1.Separator>): react_jsx_runtime247.JSX.Element;
56
+ }: React.ComponentProps<typeof DropdownMenu$1.Separator>): react_jsx_runtime152.JSX.Element;
57
57
  declare function DropdownMenuShortcut({
58
58
  className,
59
59
  ...props
60
- }: React.ComponentProps<'span'>): react_jsx_runtime247.JSX.Element;
60
+ }: React.ComponentProps<'span'>): react_jsx_runtime152.JSX.Element;
61
61
  declare function DropdownMenuSub({
62
62
  ...props
63
- }: React.ComponentProps<typeof DropdownMenu$1.Sub>): react_jsx_runtime247.JSX.Element;
63
+ }: React.ComponentProps<typeof DropdownMenu$1.Sub>): react_jsx_runtime152.JSX.Element;
64
64
  declare function DropdownMenuSubTrigger({
65
65
  className,
66
66
  inset,
@@ -68,11 +68,11 @@ declare function DropdownMenuSubTrigger({
68
68
  ...props
69
69
  }: React.ComponentProps<typeof DropdownMenu$1.SubTrigger> & {
70
70
  inset?: boolean;
71
- }): react_jsx_runtime247.JSX.Element;
71
+ }): react_jsx_runtime152.JSX.Element;
72
72
  declare function DropdownMenuSubContent({
73
73
  className,
74
74
  ...props
75
- }: React.ComponentProps<typeof DropdownMenu$1.SubContent>): react_jsx_runtime247.JSX.Element;
75
+ }: React.ComponentProps<typeof DropdownMenu$1.SubContent>): react_jsx_runtime152.JSX.Element;
76
76
  //#endregion
77
77
  export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger };
78
78
  //# 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-BwcDzb4B.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-CtU6oBI4.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,36 +1,36 @@
1
- import * as react_jsx_runtime97 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime52 from "react/jsx-runtime";
2
2
  import { VariantProps } from "class-variance-authority";
3
- import * as class_variance_authority_types3 from "class-variance-authority/types";
3
+ import * as class_variance_authority_types2 from "class-variance-authority/types";
4
4
 
5
5
  //#region packages/components/ui/empty.d.ts
6
6
  declare function Empty({
7
7
  className,
8
8
  ...props
9
- }: React.ComponentProps<'div'>): react_jsx_runtime97.JSX.Element;
9
+ }: React.ComponentProps<'div'>): react_jsx_runtime52.JSX.Element;
10
10
  declare function EmptyHeader({
11
11
  className,
12
12
  ...props
13
- }: React.ComponentProps<'div'>): react_jsx_runtime97.JSX.Element;
13
+ }: React.ComponentProps<'div'>): react_jsx_runtime52.JSX.Element;
14
14
  declare const emptyMediaVariants: (props?: ({
15
15
  variant?: "default" | "icon" | null | undefined;
16
- } & class_variance_authority_types3.ClassProp) | undefined) => string;
16
+ } & class_variance_authority_types2.ClassProp) | undefined) => string;
17
17
  declare function EmptyMedia({
18
18
  className,
19
19
  variant,
20
20
  ...props
21
- }: React.ComponentProps<'div'> & VariantProps<typeof emptyMediaVariants>): react_jsx_runtime97.JSX.Element;
21
+ }: React.ComponentProps<'div'> & VariantProps<typeof emptyMediaVariants>): react_jsx_runtime52.JSX.Element;
22
22
  declare function EmptyTitle({
23
23
  className,
24
24
  ...props
25
- }: React.ComponentProps<'div'>): react_jsx_runtime97.JSX.Element;
25
+ }: React.ComponentProps<'div'>): react_jsx_runtime52.JSX.Element;
26
26
  declare function EmptyDescription({
27
27
  className,
28
28
  ...props
29
- }: React.ComponentProps<'p'>): react_jsx_runtime97.JSX.Element;
29
+ }: React.ComponentProps<'p'>): react_jsx_runtime52.JSX.Element;
30
30
  declare function EmptyContent({
31
31
  className,
32
32
  ...props
33
- }: React.ComponentProps<'div'>): react_jsx_runtime97.JSX.Element;
33
+ }: React.ComponentProps<'div'>): react_jsx_runtime52.JSX.Element;
34
34
  //#endregion
35
35
  export { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle };
36
36
  //# sourceMappingURL=empty.d.mts.map
package/dist/ui/field.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use client";const e=require(`../chunk-Bmb41Sf3.cjs`),t=require(`../separator-jytY1CPq.cjs`),n=require(`../label-D6vHFlHX.cjs`);let r=require(`@customafk/react-toolkit/utils`),i=require(`react/jsx-runtime`),a=require(`lucide-react`),o=require(`react`),s=require(`class-variance-authority`);const c=(0,o.memo)(({className:e,...t})=>(0,i.jsx)(`fieldset`,{"data-slot":`field-set`,className:(0,r.cn)(`flex flex-col gap-6`,`has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3`,e),...t}));c.displayName=`FieldSet`;const l=(0,o.memo)(({className:e,variant:t=`legend`,...n})=>(0,i.jsx)(`legend`,{"data-slot":`field-legend`,"data-variant":t,className:(0,r.cn)(`mb-3 font-medium`,`data-[variant=legend]:text-base`,`data-[variant=label]:text-sm`,e),...n}));l.displayName=`FieldLegend`;const u=(0,o.memo)(({className:e,...t})=>(0,i.jsx)(`div`,{"data-slot":`field-group`,className:(0,r.cn)(`group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4`,e),...t}));u.displayName=`FieldGroup`;const d=(0,s.cva)(`group/field flex w-full gap-3 data-[invalid=true]:text-destructive`,{variants:{orientation:{vertical:[`flex-col *:w-full [&>.sr-only]:w-auto`],horizontal:[`flex-row items-center`,`*:data-[slot=field-label]:flex-auto`,`has-[>[data-slot=field-content]]:items-start`,`has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px`],responsive:[`flex-col *:w-full [&>.sr-only]:w-auto`,`@md/field-group:flex-row`,`@md/field-group:items-center`,`@md/field-group:*:w-auto`,`@md/field-group:*:data-[slot=field-label]:flex-auto`,`@md/field-group:has-[>[data-slot=field-content]]:items-start`,`@md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px`]}},defaultVariants:{orientation:`vertical`}}),f=(0,o.memo)(({className:e,orientation:t=`vertical`,...n})=>(0,i.jsx)(`div`,{"data-slot":`field`,"data-orientation":t,className:(0,r.cn)(d({orientation:t}),e),...n}));f.displayName=`Field`;const p=(0,o.memo)(({className:e,...t})=>(0,i.jsx)(`div`,{"data-slot":`field-content`,className:(0,r.cn)(`group/field-content flex basis-2/5 flex-col gap-1.5 leading-snug`,e),...t}));p.displayName=`FieldContent`;const m=(0,o.memo)(({className:e,...t})=>(0,i.jsx)(n.t,{"data-slot":`field-label`,className:(0,r.cn)(`group/field-label peer/field-label flex w-fit gap-2 leading-snug`,`group-data-[disabled=true]/field:opacity-50`,`has-[>[data-slot=field]]:w-full`,`has-[>[data-slot=field]]:flex-col`,`has-[>[data-slot=field]]:rounded-md`,`has-[>[data-slot=field]]:border`,`*:data-[slot=field]:p-4`,`has-data-[state=checked]:bg-primary/5`,`has-data-[state=checked]:border-primary`,e),...t}));m.displayName=`FieldLabel`;const h=(0,o.memo)(({className:e,...t})=>(0,i.jsx)(`div`,{"data-slot":`field-label`,className:(0,r.cn)(`flex w-fit items-center gap-2 font-medium text-sm leading-snug group-data-[disabled=true]/field:opacity-50`,e),...t}));h.displayName=`FieldTitle`;const g=(0,o.memo)(({className:e,...t})=>(0,i.jsx)(`p`,{"data-slot":`field-description`,className:(0,r.cn)(`text-text-positive-weak text-sm 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),...t}));g.displayName=`FieldDescription`;const _=(0,o.memo)(({children:e,className:n,...a})=>(0,i.jsxs)(`div`,{"data-slot":`field-separator`,"data-content":!!e,className:(0,r.cn)(`relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2`,n),...a,children:[(0,i.jsx)(t.t,{className:`absolute inset-0 top-1/2`}),e&&(0,i.jsx)(`span`,{className:`relative mx-auto block w-fit bg-background px-2 text-text-positive-weak`,"data-slot":`field-separator-content`,children:e})]}));_.displayName=`FieldSeparator`;const v=(0,o.memo)(({className:e,children:t,errors:n,...s})=>{let c=(0,o.useMemo)(()=>t||(n?n?.length===1&&n[0]?.message?(0,i.jsxs)(`div`,{className:`flex flex-row items-center justify-start gap-x-0.5`,children:[(0,i.jsx)(a.BanIcon,{size:14}),(0,i.jsx)(`p`,{children:n[0].message})]}):(0,i.jsx)(`ul`,{className:`ml-4 flex list-disc flex-col gap-1`,children:n.map(e=>typeof e==`string`?(0,i.jsx)(`li`,{children:e},e):e?.message?(0,i.jsx)(`li`,{children:e.message},e.message):null)}):null),[t,n]);return c?(0,i.jsx)(`div`,{role:`alert`,"data-slot":`field-error`,className:(0,r.cn)(`w-full font-normal text-danger text-xs`,e),...s,children:c}):null});v.displayName=`FieldError`,exports.Field=f,exports.FieldContent=p,exports.FieldDescription=g,exports.FieldError=v,exports.FieldGroup=u,exports.FieldLabel=m,exports.FieldLegend=l,exports.FieldSeparator=_,exports.FieldSet=c,exports.FieldTitle=h;
1
+ "use client";const e=require(`../chunk-Bmb41Sf3.cjs`),t=require(`../separator-D3CGKwyf.cjs`),n=require(`../label-CaBktIhh.cjs`);let r=require(`@customafk/react-toolkit/utils`),i=require(`react/jsx-runtime`),a=require(`lucide-react`),o=require(`react`),s=require(`class-variance-authority`);const c=(0,o.memo)(({className:e,...t})=>(0,i.jsx)(`fieldset`,{"data-slot":`field-set`,className:(0,r.cn)(`flex flex-col gap-6`,`has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3`,e),...t}));c.displayName=`FieldSet`;const l=(0,o.memo)(({className:e,variant:t=`legend`,...n})=>(0,i.jsx)(`legend`,{"data-slot":`field-legend`,"data-variant":t,className:(0,r.cn)(`mb-3 font-medium`,`data-[variant=legend]:text-base`,`data-[variant=label]:text-sm`,e),...n}));l.displayName=`FieldLegend`;const u=(0,o.memo)(({className:e,...t})=>(0,i.jsx)(`div`,{"data-slot":`field-group`,className:(0,r.cn)(`group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4`,e),...t}));u.displayName=`FieldGroup`;const d=(0,s.cva)(`group/field flex w-full gap-3 data-[invalid=true]:text-destructive`,{variants:{orientation:{vertical:[`flex-col *:w-full [&>.sr-only]:w-auto`],horizontal:[`flex-row items-center`,`*:data-[slot=field-label]:flex-auto`,`has-[>[data-slot=field-content]]:items-start`,`has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px`],responsive:[`flex-col *:w-full [&>.sr-only]:w-auto`,`@md/field-group:flex-row`,`@md/field-group:items-center`,`@md/field-group:*:w-auto`,`@md/field-group:*:data-[slot=field-label]:flex-auto`,`@md/field-group:has-[>[data-slot=field-content]]:items-start`,`@md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px`]}},defaultVariants:{orientation:`vertical`}}),f=(0,o.memo)(({className:e,orientation:t=`vertical`,...n})=>(0,i.jsx)(`div`,{"data-slot":`field`,"data-orientation":t,className:(0,r.cn)(d({orientation:t}),e),...n}));f.displayName=`Field`;const p=(0,o.memo)(({className:e,...t})=>(0,i.jsx)(`div`,{"data-slot":`field-content`,className:(0,r.cn)(`group/field-content flex basis-2/5 flex-col gap-1.5 leading-snug`,e),...t}));p.displayName=`FieldContent`;const m=(0,o.memo)(({className:e,...t})=>(0,i.jsx)(n.t,{"data-slot":`field-label`,className:(0,r.cn)(`group/field-label peer/field-label flex w-fit gap-2 leading-snug`,`group-data-[disabled=true]/field:opacity-50`,`has-[>[data-slot=field]]:w-full`,`has-[>[data-slot=field]]:flex-col`,`has-[>[data-slot=field]]:rounded-md`,`has-[>[data-slot=field]]:border`,`*:data-[slot=field]:p-4`,`has-data-[state=checked]:bg-primary/5`,`has-data-[state=checked]:border-primary`,e),...t}));m.displayName=`FieldLabel`;const h=(0,o.memo)(({className:e,...t})=>(0,i.jsx)(`div`,{"data-slot":`field-label`,className:(0,r.cn)(`flex w-fit items-center gap-2 font-medium text-sm leading-snug group-data-[disabled=true]/field:opacity-50`,e),...t}));h.displayName=`FieldTitle`;const g=(0,o.memo)(({className:e,...t})=>(0,i.jsx)(`p`,{"data-slot":`field-description`,className:(0,r.cn)(`text-text-positive-weak text-sm 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),...t}));g.displayName=`FieldDescription`;const _=(0,o.memo)(({children:e,className:n,...a})=>(0,i.jsxs)(`div`,{"data-slot":`field-separator`,"data-content":!!e,className:(0,r.cn)(`relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2`,n),...a,children:[(0,i.jsx)(t.t,{className:`absolute inset-0 top-1/2`}),e&&(0,i.jsx)(`span`,{className:`relative mx-auto block w-fit bg-background px-2 text-text-positive-weak`,"data-slot":`field-separator-content`,children:e})]}));_.displayName=`FieldSeparator`;const v=(0,o.memo)(({className:e,children:t,errors:n,...s})=>{let c=(0,o.useMemo)(()=>t||(n?n?.length===1&&n[0]?.message?(0,i.jsxs)(`div`,{className:`flex flex-row items-center justify-start gap-x-0.5`,children:[(0,i.jsx)(a.BanIcon,{size:14}),(0,i.jsx)(`p`,{children:n[0].message})]}):(0,i.jsx)(`ul`,{className:`ml-4 flex list-disc flex-col gap-1`,children:n.map(e=>typeof e==`string`?(0,i.jsx)(`li`,{children:e},e):e?.message?(0,i.jsx)(`li`,{children:e.message},e.message):null)}):null),[t,n]);return c?(0,i.jsx)(`div`,{role:`alert`,"data-slot":`field-error`,className:(0,r.cn)(`w-full font-normal text-danger text-xs`,e),...s,children:c}):null});v.displayName=`FieldError`,exports.Field=f,exports.FieldContent=p,exports.FieldDescription=g,exports.FieldError=v,exports.FieldGroup=u,exports.FieldLabel=m,exports.FieldLegend=l,exports.FieldSeparator=_,exports.FieldSet=c,exports.FieldTitle=h;
2
2
  //# sourceMappingURL=field.cjs.map
@@ -1,57 +1,57 @@
1
1
  import { Label } from "./label.cjs";
2
- import * as react_jsx_runtime157 from "react/jsx-runtime";
3
- import * as react4 from "react";
2
+ import * as react_jsx_runtime131 from "react/jsx-runtime";
3
+ import * as react1 from "react";
4
4
  import * as class_variance_authority_types4 from "class-variance-authority/types";
5
5
  import { VariantProps } from "class-variance-authority";
6
6
 
7
7
  //#region packages/components/ui/field.d.ts
8
- declare const FieldSet: react4.MemoExoticComponent<({
8
+ declare const FieldSet: react1.MemoExoticComponent<({
9
9
  className,
10
10
  ...props
11
- }: React.ComponentProps<"fieldset">) => react_jsx_runtime157.JSX.Element>;
12
- declare const FieldLegend: react4.MemoExoticComponent<({
11
+ }: React.ComponentProps<"fieldset">) => react_jsx_runtime131.JSX.Element>;
12
+ declare const FieldLegend: react1.MemoExoticComponent<({
13
13
  className,
14
14
  variant,
15
15
  ...props
16
16
  }: React.ComponentProps<"legend"> & {
17
17
  variant?: "legend" | "label";
18
- }) => react_jsx_runtime157.JSX.Element>;
19
- declare const FieldGroup: react4.MemoExoticComponent<({
18
+ }) => react_jsx_runtime131.JSX.Element>;
19
+ declare const FieldGroup: react1.MemoExoticComponent<({
20
20
  className,
21
21
  ...props
22
- }: React.ComponentProps<"div">) => react_jsx_runtime157.JSX.Element>;
22
+ }: React.ComponentProps<"div">) => react_jsx_runtime131.JSX.Element>;
23
23
  declare const fieldVariants: (props?: ({
24
24
  orientation?: "vertical" | "horizontal" | "responsive" | null | undefined;
25
25
  } & class_variance_authority_types4.ClassProp) | undefined) => string;
26
- declare const Field: react4.MemoExoticComponent<({
26
+ declare const Field: react1.MemoExoticComponent<({
27
27
  className,
28
28
  orientation,
29
29
  ...props
30
- }: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>) => react_jsx_runtime157.JSX.Element>;
31
- declare const FieldContent: react4.MemoExoticComponent<({
30
+ }: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>) => react_jsx_runtime131.JSX.Element>;
31
+ declare const FieldContent: react1.MemoExoticComponent<({
32
32
  className,
33
33
  ...props
34
- }: React.ComponentProps<"div">) => react_jsx_runtime157.JSX.Element>;
35
- declare const FieldLabel: react4.MemoExoticComponent<({
34
+ }: React.ComponentProps<"div">) => react_jsx_runtime131.JSX.Element>;
35
+ declare const FieldLabel: react1.MemoExoticComponent<({
36
36
  className,
37
37
  ...props
38
- }: React.ComponentProps<typeof Label>) => react_jsx_runtime157.JSX.Element>;
39
- declare const FieldTitle: react4.MemoExoticComponent<({
38
+ }: React.ComponentProps<typeof Label>) => react_jsx_runtime131.JSX.Element>;
39
+ declare const FieldTitle: react1.MemoExoticComponent<({
40
40
  className,
41
41
  ...props
42
- }: React.ComponentProps<"div">) => react_jsx_runtime157.JSX.Element>;
43
- declare const FieldDescription: react4.MemoExoticComponent<({
42
+ }: React.ComponentProps<"div">) => react_jsx_runtime131.JSX.Element>;
43
+ declare const FieldDescription: react1.MemoExoticComponent<({
44
44
  className,
45
45
  ...props
46
- }: React.ComponentProps<"p">) => react_jsx_runtime157.JSX.Element>;
47
- declare const FieldSeparator: react4.MemoExoticComponent<({
46
+ }: React.ComponentProps<"p">) => react_jsx_runtime131.JSX.Element>;
47
+ declare const FieldSeparator: react1.MemoExoticComponent<({
48
48
  children,
49
49
  className,
50
50
  ...props
51
51
  }: React.ComponentProps<"div"> & {
52
52
  children?: React.ReactNode;
53
- }) => react_jsx_runtime157.JSX.Element>;
54
- declare const FieldError: react4.MemoExoticComponent<({
53
+ }) => react_jsx_runtime131.JSX.Element>;
54
+ declare const FieldError: react1.MemoExoticComponent<({
55
55
  className,
56
56
  children,
57
57
  errors,
@@ -60,7 +60,7 @@ declare const FieldError: react4.MemoExoticComponent<({
60
60
  errors?: Array<{
61
61
  message?: string;
62
62
  } | undefined>;
63
- }) => react_jsx_runtime157.JSX.Element | null>;
63
+ }) => react_jsx_runtime131.JSX.Element | null>;
64
64
  //#endregion
65
65
  export { Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle };
66
66
  //# sourceMappingURL=field.d.cts.map
@@ -1,56 +1,56 @@
1
1
  import { Label } from "./label.mjs";
2
- import * as react_jsx_runtime112 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime184 from "react/jsx-runtime";
3
3
  import * as react4 from "react";
4
4
  import { VariantProps } from "class-variance-authority";
5
- import * as class_variance_authority_types4 from "class-variance-authority/types";
5
+ import * as class_variance_authority_types7 from "class-variance-authority/types";
6
6
 
7
7
  //#region packages/components/ui/field.d.ts
8
8
  declare const FieldSet: react4.MemoExoticComponent<({
9
9
  className,
10
10
  ...props
11
- }: React.ComponentProps<"fieldset">) => react_jsx_runtime112.JSX.Element>;
11
+ }: React.ComponentProps<"fieldset">) => react_jsx_runtime184.JSX.Element>;
12
12
  declare const FieldLegend: react4.MemoExoticComponent<({
13
13
  className,
14
14
  variant,
15
15
  ...props
16
16
  }: React.ComponentProps<"legend"> & {
17
17
  variant?: "legend" | "label";
18
- }) => react_jsx_runtime112.JSX.Element>;
18
+ }) => react_jsx_runtime184.JSX.Element>;
19
19
  declare const FieldGroup: react4.MemoExoticComponent<({
20
20
  className,
21
21
  ...props
22
- }: React.ComponentProps<"div">) => react_jsx_runtime112.JSX.Element>;
22
+ }: React.ComponentProps<"div">) => react_jsx_runtime184.JSX.Element>;
23
23
  declare const fieldVariants: (props?: ({
24
24
  orientation?: "vertical" | "horizontal" | "responsive" | null | undefined;
25
- } & class_variance_authority_types4.ClassProp) | undefined) => string;
25
+ } & class_variance_authority_types7.ClassProp) | undefined) => string;
26
26
  declare const Field: react4.MemoExoticComponent<({
27
27
  className,
28
28
  orientation,
29
29
  ...props
30
- }: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>) => react_jsx_runtime112.JSX.Element>;
30
+ }: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>) => react_jsx_runtime184.JSX.Element>;
31
31
  declare const FieldContent: react4.MemoExoticComponent<({
32
32
  className,
33
33
  ...props
34
- }: React.ComponentProps<"div">) => react_jsx_runtime112.JSX.Element>;
34
+ }: React.ComponentProps<"div">) => react_jsx_runtime184.JSX.Element>;
35
35
  declare const FieldLabel: react4.MemoExoticComponent<({
36
36
  className,
37
37
  ...props
38
- }: React.ComponentProps<typeof Label>) => react_jsx_runtime112.JSX.Element>;
38
+ }: React.ComponentProps<typeof Label>) => react_jsx_runtime184.JSX.Element>;
39
39
  declare const FieldTitle: react4.MemoExoticComponent<({
40
40
  className,
41
41
  ...props
42
- }: React.ComponentProps<"div">) => react_jsx_runtime112.JSX.Element>;
42
+ }: React.ComponentProps<"div">) => react_jsx_runtime184.JSX.Element>;
43
43
  declare const FieldDescription: react4.MemoExoticComponent<({
44
44
  className,
45
45
  ...props
46
- }: React.ComponentProps<"p">) => react_jsx_runtime112.JSX.Element>;
46
+ }: React.ComponentProps<"p">) => react_jsx_runtime184.JSX.Element>;
47
47
  declare const FieldSeparator: react4.MemoExoticComponent<({
48
48
  children,
49
49
  className,
50
50
  ...props
51
51
  }: React.ComponentProps<"div"> & {
52
52
  children?: React.ReactNode;
53
- }) => react_jsx_runtime112.JSX.Element>;
53
+ }) => react_jsx_runtime184.JSX.Element>;
54
54
  declare const FieldError: react4.MemoExoticComponent<({
55
55
  className,
56
56
  children,
@@ -60,7 +60,7 @@ declare const FieldError: react4.MemoExoticComponent<({
60
60
  errors?: Array<{
61
61
  message?: string;
62
62
  } | undefined>;
63
- }) => react_jsx_runtime112.JSX.Element | null>;
63
+ }) => react_jsx_runtime184.JSX.Element | null>;
64
64
  //#endregion
65
65
  export { Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle };
66
66
  //# sourceMappingURL=field.d.mts.map
package/dist/ui/field.mjs CHANGED
@@ -1,2 +1,2 @@
1
- "use client";import{t as e}from"../separator-Bf0gymN4.mjs";import{t}from"../label-11tIftbr.mjs";import{cn as n}from"@customafk/react-toolkit/utils";import{jsx as r,jsxs as i}from"react/jsx-runtime";import{BanIcon as a}from"lucide-react";import{memo as o,useMemo as s}from"react";import{cva as c}from"class-variance-authority";const l=o(({className:e,...t})=>r(`fieldset`,{"data-slot":`field-set`,className:n(`flex flex-col gap-6`,`has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3`,e),...t}));l.displayName=`FieldSet`;const u=o(({className:e,variant:t=`legend`,...i})=>r(`legend`,{"data-slot":`field-legend`,"data-variant":t,className:n(`mb-3 font-medium`,`data-[variant=legend]:text-base`,`data-[variant=label]:text-sm`,e),...i}));u.displayName=`FieldLegend`;const d=o(({className:e,...t})=>r(`div`,{"data-slot":`field-group`,className:n(`group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4`,e),...t}));d.displayName=`FieldGroup`;const f=c(`group/field flex w-full gap-3 data-[invalid=true]:text-destructive`,{variants:{orientation:{vertical:[`flex-col *:w-full [&>.sr-only]:w-auto`],horizontal:[`flex-row items-center`,`*:data-[slot=field-label]:flex-auto`,`has-[>[data-slot=field-content]]:items-start`,`has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px`],responsive:[`flex-col *:w-full [&>.sr-only]:w-auto`,`@md/field-group:flex-row`,`@md/field-group:items-center`,`@md/field-group:*:w-auto`,`@md/field-group:*:data-[slot=field-label]:flex-auto`,`@md/field-group:has-[>[data-slot=field-content]]:items-start`,`@md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px`]}},defaultVariants:{orientation:`vertical`}}),p=o(({className:e,orientation:t=`vertical`,...i})=>r(`div`,{"data-slot":`field`,"data-orientation":t,className:n(f({orientation:t}),e),...i}));p.displayName=`Field`;const m=o(({className:e,...t})=>r(`div`,{"data-slot":`field-content`,className:n(`group/field-content flex basis-2/5 flex-col gap-1.5 leading-snug`,e),...t}));m.displayName=`FieldContent`;const h=o(({className:e,...i})=>r(t,{"data-slot":`field-label`,className:n(`group/field-label peer/field-label flex w-fit gap-2 leading-snug`,`group-data-[disabled=true]/field:opacity-50`,`has-[>[data-slot=field]]:w-full`,`has-[>[data-slot=field]]:flex-col`,`has-[>[data-slot=field]]:rounded-md`,`has-[>[data-slot=field]]:border`,`*:data-[slot=field]:p-4`,`has-data-[state=checked]:bg-primary/5`,`has-data-[state=checked]:border-primary`,e),...i}));h.displayName=`FieldLabel`;const g=o(({className:e,...t})=>r(`div`,{"data-slot":`field-label`,className:n(`flex w-fit items-center gap-2 font-medium text-sm leading-snug group-data-[disabled=true]/field:opacity-50`,e),...t}));g.displayName=`FieldTitle`;const _=o(({className:e,...t})=>r(`p`,{"data-slot":`field-description`,className:n(`text-text-positive-weak text-sm 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),...t}));_.displayName=`FieldDescription`;const v=o(({children:t,className:a,...o})=>i(`div`,{"data-slot":`field-separator`,"data-content":!!t,className:n(`relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2`,a),...o,children:[r(e,{className:`absolute inset-0 top-1/2`}),t&&r(`span`,{className:`relative mx-auto block w-fit bg-background px-2 text-text-positive-weak`,"data-slot":`field-separator-content`,children:t})]}));v.displayName=`FieldSeparator`;const y=o(({className:e,children:t,errors:o,...c})=>{let l=s(()=>t||(o?o?.length===1&&o[0]?.message?i(`div`,{className:`flex flex-row items-center justify-start gap-x-0.5`,children:[r(a,{size:14}),r(`p`,{children:o[0].message})]}):r(`ul`,{className:`ml-4 flex list-disc flex-col gap-1`,children:o.map(e=>typeof e==`string`?r(`li`,{children:e},e):e?.message?r(`li`,{children:e.message},e.message):null)}):null),[t,o]);return l?r(`div`,{role:`alert`,"data-slot":`field-error`,className:n(`w-full font-normal text-danger text-xs`,e),...c,children:l}):null});y.displayName=`FieldError`;export{p as Field,m as FieldContent,_ as FieldDescription,y as FieldError,d as FieldGroup,h as FieldLabel,u as FieldLegend,v as FieldSeparator,l as FieldSet,g as FieldTitle};
1
+ "use client";import{t as e}from"../separator-C2yOD6r_.mjs";import{t}from"../label-DVfxfyG5.mjs";import{cn as n}from"@customafk/react-toolkit/utils";import{jsx as r,jsxs as i}from"react/jsx-runtime";import{BanIcon as a}from"lucide-react";import{memo as o,useMemo as s}from"react";import{cva as c}from"class-variance-authority";const l=o(({className:e,...t})=>r(`fieldset`,{"data-slot":`field-set`,className:n(`flex flex-col gap-6`,`has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3`,e),...t}));l.displayName=`FieldSet`;const u=o(({className:e,variant:t=`legend`,...i})=>r(`legend`,{"data-slot":`field-legend`,"data-variant":t,className:n(`mb-3 font-medium`,`data-[variant=legend]:text-base`,`data-[variant=label]:text-sm`,e),...i}));u.displayName=`FieldLegend`;const d=o(({className:e,...t})=>r(`div`,{"data-slot":`field-group`,className:n(`group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4`,e),...t}));d.displayName=`FieldGroup`;const f=c(`group/field flex w-full gap-3 data-[invalid=true]:text-destructive`,{variants:{orientation:{vertical:[`flex-col *:w-full [&>.sr-only]:w-auto`],horizontal:[`flex-row items-center`,`*:data-[slot=field-label]:flex-auto`,`has-[>[data-slot=field-content]]:items-start`,`has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px`],responsive:[`flex-col *:w-full [&>.sr-only]:w-auto`,`@md/field-group:flex-row`,`@md/field-group:items-center`,`@md/field-group:*:w-auto`,`@md/field-group:*:data-[slot=field-label]:flex-auto`,`@md/field-group:has-[>[data-slot=field-content]]:items-start`,`@md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px`]}},defaultVariants:{orientation:`vertical`}}),p=o(({className:e,orientation:t=`vertical`,...i})=>r(`div`,{"data-slot":`field`,"data-orientation":t,className:n(f({orientation:t}),e),...i}));p.displayName=`Field`;const m=o(({className:e,...t})=>r(`div`,{"data-slot":`field-content`,className:n(`group/field-content flex basis-2/5 flex-col gap-1.5 leading-snug`,e),...t}));m.displayName=`FieldContent`;const h=o(({className:e,...i})=>r(t,{"data-slot":`field-label`,className:n(`group/field-label peer/field-label flex w-fit gap-2 leading-snug`,`group-data-[disabled=true]/field:opacity-50`,`has-[>[data-slot=field]]:w-full`,`has-[>[data-slot=field]]:flex-col`,`has-[>[data-slot=field]]:rounded-md`,`has-[>[data-slot=field]]:border`,`*:data-[slot=field]:p-4`,`has-data-[state=checked]:bg-primary/5`,`has-data-[state=checked]:border-primary`,e),...i}));h.displayName=`FieldLabel`;const g=o(({className:e,...t})=>r(`div`,{"data-slot":`field-label`,className:n(`flex w-fit items-center gap-2 font-medium text-sm leading-snug group-data-[disabled=true]/field:opacity-50`,e),...t}));g.displayName=`FieldTitle`;const _=o(({className:e,...t})=>r(`p`,{"data-slot":`field-description`,className:n(`text-text-positive-weak text-sm 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),...t}));_.displayName=`FieldDescription`;const v=o(({children:t,className:a,...o})=>i(`div`,{"data-slot":`field-separator`,"data-content":!!t,className:n(`relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2`,a),...o,children:[r(e,{className:`absolute inset-0 top-1/2`}),t&&r(`span`,{className:`relative mx-auto block w-fit bg-background px-2 text-text-positive-weak`,"data-slot":`field-separator-content`,children:t})]}));v.displayName=`FieldSeparator`;const y=o(({className:e,children:t,errors:o,...c})=>{let l=s(()=>t||(o?o?.length===1&&o[0]?.message?i(`div`,{className:`flex flex-row items-center justify-start gap-x-0.5`,children:[r(a,{size:14}),r(`p`,{children:o[0].message})]}):r(`ul`,{className:`ml-4 flex list-disc flex-col gap-1`,children:o.map(e=>typeof e==`string`?r(`li`,{children:e},e):e?.message?r(`li`,{children:e.message},e.message):null)}):null),[t,o]);return l?r(`div`,{role:`alert`,"data-slot":`field-error`,className:n(`w-full font-normal text-danger text-xs`,e),...c,children:l}):null});y.displayName=`FieldError`;export{p as Field,m as FieldContent,_ as FieldDescription,y as FieldError,d as FieldGroup,h as FieldLabel,u as FieldLegend,v as FieldSeparator,l as FieldSet,g as FieldTitle};
2
2
  //# sourceMappingURL=field.mjs.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime149 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime150 from "react/jsx-runtime";
2
2
  import { DropzoneProps } from "react-dropzone";
3
3
 
4
4
  //#region packages/components/ui/file-uploader.d.ts
@@ -72,7 +72,7 @@ interface FileUploaderProps extends React.HTMLAttributes<HTMLDivElement> {
72
72
  showText?: boolean;
73
73
  iconSize?: number;
74
74
  }
75
- declare function FileUploader(props: FileUploaderProps): react_jsx_runtime149.JSX.Element;
75
+ declare function FileUploader(props: FileUploaderProps): react_jsx_runtime150.JSX.Element;
76
76
  //#endregion
77
77
  export { FileUploader };
78
78
  //# sourceMappingURL=file-uploader.d.cts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime133 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime221 from "react/jsx-runtime";
2
2
  import { DropzoneProps } from "react-dropzone";
3
3
 
4
4
  //#region packages/components/ui/file-uploader.d.ts
@@ -72,7 +72,7 @@ interface FileUploaderProps extends React.HTMLAttributes<HTMLDivElement> {
72
72
  showText?: boolean;
73
73
  iconSize?: number;
74
74
  }
75
- declare function FileUploader(props: FileUploaderProps): react_jsx_runtime133.JSX.Element;
75
+ declare function FileUploader(props: FileUploaderProps): react_jsx_runtime221.JSX.Element;
76
76
  //#endregion
77
77
  export { FileUploader };
78
78
  //# sourceMappingURL=file-uploader.d.mts.map
@@ -1,3 +1,3 @@
1
- "use client";import"../button.variants-CgCCe7qb.mjs";import{t as e}from"../button-JJaTl28Z.mjs";import{Progress as t}from"./progress.mjs";import{cn as n,formatBytes as r}from"@customafk/react-toolkit/utils";import{jsx as i,jsxs as a}from"react/jsx-runtime";import{FileText as o,Image as s,Trash2 as c,Upload as l}from"lucide-react";import{useCallback as u,useEffect as d}from"react";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:o,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:o}),A=u((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),o?.(t)}d(()=>()=>{O&&O.forEach(e=>{_(e)&&URL.revokeObjectURL(e.preview)})},[]);let M=C||(O?.length??0)>=x;return a(`div`,{className:`relative flex w-full flex-col gap-6`,children:[i(f,{onDrop:A,accept:y,maxSize:b,maxFiles:x,multiple:x>1||S,disabled:M,children:({getRootProps:e,getInputProps:t,isDragActive:o})=>a(`div`,{...e(),className:n(`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`,o&&`border-border-primary-strong bg-border-weak/40`,M&&`pointer-events-none opacity-60`,E),...D,children:[i(`input`,{...t()}),o?a(`div`,{className:`flex flex-col items-center justify-center gap-4 sm:px-5`,children:[i(`div`,{className:`rounded-full border border-dashed p-3`,children:i(l,{className:`text-text-positive-muted size-7`,"aria-hidden":`true`})}),i(`p`,{className:`text-text-positive-muted font-medium`,children:`Drop the files here`})]}):a(`div`,{className:`flex flex-col items-center justify-center gap-4 sm:px-5`,children:[i(`div`,{className:`rounded-full border border-dashed p-3`,children:i(l,{size:T||24,className:`text-muted-foreground`,"aria-hidden":`true`})}),w&&a(`div`,{className:`flex flex-col gap-px`,children:[a(`p`,{className:`text-text-positive-weak text-xs font-medium`,children:[`Drag `,`'n'`,` drop files here, or click to select files`]}),a(`p`,{className:`text-text-positive-muted text-xs`,children:[`You can upload`,x>1?` ${x===1/0?`multiple`:x}
1
+ "use client";import"../button.variants-DmUzMbB8.mjs";import{t as e}from"../button-DIEXNBpi.mjs";import{Progress as t}from"./progress.mjs";import{cn as n,formatBytes as r}from"@customafk/react-toolkit/utils";import{jsx as i,jsxs as a}from"react/jsx-runtime";import{FileText as o,Image as s,Trash2 as c,Upload as l}from"lucide-react";import{useCallback as u,useEffect as d}from"react";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:o,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:o}),A=u((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),o?.(t)}d(()=>()=>{O&&O.forEach(e=>{_(e)&&URL.revokeObjectURL(e.preview)})},[]);let M=C||(O?.length??0)>=x;return a(`div`,{className:`relative flex w-full flex-col gap-6`,children:[i(f,{onDrop:A,accept:y,maxSize:b,maxFiles:x,multiple:x>1||S,disabled:M,children:({getRootProps:e,getInputProps:t,isDragActive:o})=>a(`div`,{...e(),className:n(`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`,o&&`border-border-primary-strong bg-border-weak/40`,M&&`pointer-events-none opacity-60`,E),...D,children:[i(`input`,{...t()}),o?a(`div`,{className:`flex flex-col items-center justify-center gap-4 sm:px-5`,children:[i(`div`,{className:`rounded-full border border-dashed p-3`,children:i(l,{className:`text-text-positive-muted size-7`,"aria-hidden":`true`})}),i(`p`,{className:`text-text-positive-muted font-medium`,children:`Drop the files here`})]}):a(`div`,{className:`flex flex-col items-center justify-center gap-4 sm:px-5`,children:[i(`div`,{className:`rounded-full border border-dashed p-3`,children:i(l,{size:T||24,className:`text-muted-foreground`,"aria-hidden":`true`})}),w&&a(`div`,{className:`flex flex-col gap-px`,children:[a(`p`,{className:`text-text-positive-weak text-xs font-medium`,children:[`Drag `,`'n'`,` drop files here, or click to select files`]}),a(`p`,{className:`text-text-positive-muted text-xs`,children:[`You can upload`,x>1?` ${x===1/0?`multiple`:x}
2
2
  files (up to ${r(b)} each)`:` a file with ${r(b)}`]})]})]})]})}),O?.length?a(`div`,{className:`h-fit w-full overflow-y-auto`,children:[a(`div`,{className:`flex items-center justify-between px-3 py-2.5`,children:[a(`div`,{className:`text-text-positive-weak flex items-center gap-1`,children:[i(s,{size:16,"aria-hidden":`true`}),a(`p`,{className:`text-sm`,children:[`Ảnh đã tải lên (`,O.length,`)`]})]}),a(`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([]),o?.([]))},children:[i(c,{size:16,"aria-hidden":`true`}),i(`p`,{className:`text-sm`,children:`Xóa tất cả`})]})]}),i(`div`,{className:`flex flex-col gap-2.5`,children:O?.map((e,t)=>i(g,{file:e,onRemove:()=>j(t),progress:v?.[e.name]},t))})]}):null]})}function g({file:n,progress:o,onRemove:s}){return a(`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:[a(`div`,{className:`flex flex-1 gap-2.5`,children:[_(n)?i(v,{file:n}):null,a(`div`,{className:`flex w-full flex-col gap-2`,children:[a(`div`,{className:`flex flex-col gap-y-0.5`,children:[i(`p`,{className:`text-text-positive line-clamp-1 text-sm`,children:n.name}),i(`p`,{className:`text-text-positive-muted text-xs`,children:r(n.size)})]}),o?i(t,{value:o}):null]})]}),i(`div`,{className:`flex items-center gap-2`,children:a(e,{type:`button`,variant:`ghost`,color:`secondary`,size:`icon`,className:`size-7`,onClick:s,children:[i(c,{size:16,className:`text-text-positive-muted`,"aria-hidden":`true`}),i(`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/`)?i(`img`,{src:e.preview,className:`border-border aspect-square size-10 shrink-0 rounded border object-cover object-top shadow-sm`}):i(o,{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-jytY1CPq.cjs`),require(`../label-D6vHFlHX.cjs`);const t=require(`./field.cjs`);let n=require(`@customafk/react-toolkit/utils`),r=require(`react/jsx-runtime`),i=require(`react`),a=require(`radix-ui`),o=require(`react-hook-form`);const s=o.FormProvider,c=(0,i.createContext)({}),l=({...e})=>(0,r.jsx)(c.Provider,{value:{name:e.name},children:(0,r.jsx)(o.Controller,{...e})}),u=()=>{let e=(0,i.use)(c),t=(0,i.use)(d),{getFieldState:n,control:r,resetField:a}=(0,o.useFormContext)(),s=(0,o.useFormState)({name:e.name}),l=n(e.name,s);if(!e)throw Error(`useFormField should be used within <FormField>`);let{id:u}=t;return{id:u,control:r,resetField:a,name:e.name,formItemId:`${u}-form-item`,formDescriptionId:`${u}-form-item-description`,formMessageId:`${u}-form-item-message`,...l}},d=(0,i.createContext)({}),f=(0,i.memo)(({className:e,orientation:n=`responsive`,...a})=>{let o=(0,i.useId)();return(0,r.jsx)(d.Provider,{value:{id:o},children:(0,r.jsx)(t.Field,{orientation:n,...a,className:e})})});f.displayName=`FormItem`;const p=(0,i.memo)(({...e})=>{let{formItemId:n}=u();return(0,r.jsx)(t.FieldLabel,{htmlFor:n,...e})});p.displayName=`FormLabel`;const m=(0,i.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,...i}){let{formDescriptionId:a}=u();return(0,r.jsx)(t.FieldDescription,{id:a,className:(0,n.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),...i})}function g({className:e,children:t,...i}){let{error:a,formMessageId:o}=u();return(0,r.jsx)(`span`,{"data-slot":`form-message`,id:o,className:(0,n.cn)(`text-danger text-xs`,e),...i,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-D3CGKwyf.cjs`),require(`../label-CaBktIhh.cjs`);const t=require(`./field.cjs`);let n=require(`@customafk/react-toolkit/utils`),r=require(`react/jsx-runtime`),i=require(`react`),a=require(`radix-ui`),o=require(`react-hook-form`);const s=o.FormProvider,c=(0,i.createContext)({}),l=({...e})=>(0,r.jsx)(c.Provider,{value:{name:e.name},children:(0,r.jsx)(o.Controller,{...e})}),u=()=>{let e=(0,i.use)(c),t=(0,i.use)(d),{getFieldState:n,control:r,resetField:a}=(0,o.useFormContext)(),s=(0,o.useFormState)({name:e.name}),l=n(e.name,s);if(!e)throw Error(`useFormField should be used within <FormField>`);let{id:u}=t;return{id:u,control:r,resetField:a,name:e.name,formItemId:`${u}-form-item`,formDescriptionId:`${u}-form-item-description`,formMessageId:`${u}-form-item-message`,...l}},d=(0,i.createContext)({}),f=(0,i.memo)(({className:e,orientation:n=`responsive`,...a})=>{let o=(0,i.useId)();return(0,r.jsx)(d.Provider,{value:{id:o},children:(0,r.jsx)(t.Field,{orientation:n,...a,className:e})})});f.displayName=`FormItem`;const p=(0,i.memo)(({...e})=>{let{formItemId:n}=u();return(0,r.jsx)(t.FieldLabel,{htmlFor:n,...e})});p.displayName=`FormLabel`;const m=(0,i.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,...i}){let{formDescriptionId:a}=u();return(0,r.jsx)(t.FieldDescription,{id:a,className:(0,n.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),...i})}function g({className:e,children:t,...i}){let{error:a,formMessageId:o}=u();return(0,r.jsx)(`span`,{"data-slot":`form-message`,id:o,className:(0,n.cn)(`text-danger text-xs`,e),...i,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