@customafk/lunas-ui 0.1.25 → 0.1.26

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 (300) hide show
  1. package/dist/{avatar-BaxX-xI9.mjs → avatar-DCbv3HzU.mjs} +1 -1
  2. package/dist/{avatar-BaxX-xI9.mjs.map → avatar-DCbv3HzU.mjs.map} +1 -1
  3. package/dist/{avatar-dAu1c0bC.cjs → avatar-aVxo69zP.cjs} +1 -1
  4. package/dist/{avatar-dAu1c0bC.cjs.map → avatar-aVxo69zP.cjs.map} +1 -1
  5. package/dist/badge-BncGz_13.mjs +2 -0
  6. package/dist/badge-BncGz_13.mjs.map +1 -0
  7. package/dist/badge-xKNC7uv3.cjs +2 -0
  8. package/dist/badge-xKNC7uv3.cjs.map +1 -0
  9. package/dist/{button-CPlyY35o.d.cts → button-Bg1fW3Y7.d.mts} +4 -4
  10. package/dist/{button-CyABYH6s.d.mts → button-C-I1CGSH.d.cts} +5 -5
  11. package/dist/card-CWAdGhMr.mjs.map +1 -1
  12. package/dist/card-wGoU4Xiq.cjs.map +1 -1
  13. package/dist/cards/grid-product-card.cjs +1 -1
  14. package/dist/cards/grid-product-card.mjs +1 -1
  15. package/dist/cards/product-card.cjs +1 -1
  16. package/dist/cards/product-card.mjs +1 -1
  17. package/dist/{close-CGei_VQ6.mjs → close-BuQ2DHur.mjs} +1 -1
  18. package/dist/{close-CGei_VQ6.mjs.map → close-BuQ2DHur.mjs.map} +1 -1
  19. package/dist/{close-CXhpIVAZ.cjs → close-DvsVM8lM.cjs} +1 -1
  20. package/dist/{close-CXhpIVAZ.cjs.map → close-DvsVM8lM.cjs.map} +1 -1
  21. package/dist/{command-BLlJzBw9.mjs → command-BKiAU1oU.mjs} +2 -2
  22. package/dist/{command-BLlJzBw9.mjs.map → command-BKiAU1oU.mjs.map} +1 -1
  23. package/dist/{command-B8Tbe4oe.cjs → command-BqSzRw6j.cjs} +2 -2
  24. package/dist/{command-B8Tbe4oe.cjs.map → command-BqSzRw6j.cjs.map} +1 -1
  25. package/dist/data-display/country.d.mts +1 -1
  26. package/dist/data-display/date-tooltip.cjs +1 -1
  27. package/dist/data-display/date-tooltip.cjs.map +1 -1
  28. package/dist/data-display/date-tooltip.mjs +1 -1
  29. package/dist/data-display/date-tooltip.mjs.map +1 -1
  30. package/dist/data-display/empty.d.mts +2 -2
  31. package/dist/data-display/name.cjs +1 -1
  32. package/dist/data-display/name.mjs +1 -1
  33. package/dist/data-display/phone-number.cjs +1 -1
  34. package/dist/data-display/phone-number.mjs +1 -1
  35. package/dist/data-display/role-badge.cjs +1 -1
  36. package/dist/data-display/role-badge.cjs.map +1 -1
  37. package/dist/data-display/role-badge.d.mts +1 -1
  38. package/dist/data-display/role-badge.mjs +1 -1
  39. package/dist/data-display/role-badge.mjs.map +1 -1
  40. package/dist/data-display/statistic.cjs +1 -1
  41. package/dist/data-display/statistic.cjs.map +1 -1
  42. package/dist/data-display/statistic.d.mts +2 -2
  43. package/dist/data-display/statistic.mjs +1 -1
  44. package/dist/data-display/statistic.mjs.map +1 -1
  45. package/dist/data-display/user.cjs +1 -1
  46. package/dist/data-display/user.mjs +1 -1
  47. package/dist/{dialog-DZ_gg6Ol.cjs → dialog-DVwvHuQB.cjs} +2 -2
  48. package/dist/{dialog-DZ_gg6Ol.cjs.map → dialog-DVwvHuQB.cjs.map} +1 -1
  49. package/dist/{dialog-C1fYq5rO.d.cts → dialog-UKGZcMTI.d.mts} +12 -12
  50. package/dist/{dialog-DeZVOOmh.mjs → dialog-bd77jxcu.mjs} +2 -2
  51. package/dist/{dialog-DeZVOOmh.mjs.map → dialog-bd77jxcu.mjs.map} +1 -1
  52. package/dist/{dialog-eqSp0Cdp.d.mts → dialog-eNVy-E39.d.cts} +12 -12
  53. package/dist/dialogs/detail-dialog/component/sidebar.cjs +1 -1
  54. package/dist/dialogs/detail-dialog/component/sidebar.d.cts +28 -28
  55. package/dist/dialogs/detail-dialog/component/sidebar.d.mts +28 -28
  56. package/dist/dialogs/detail-dialog/component/sidebar.mjs +1 -1
  57. package/dist/dialogs/detail-dialog/index.cjs +1 -1
  58. package/dist/dialogs/detail-dialog/index.mjs +1 -1
  59. package/dist/dialogs/loading-dialog.cjs +1 -1
  60. package/dist/dialogs/loading-dialog.mjs +1 -1
  61. package/dist/{drawer-272Fecsq.mjs → drawer-ClbO_Gt0.mjs} +1 -1
  62. package/dist/{drawer-272Fecsq.mjs.map → drawer-ClbO_Gt0.mjs.map} +1 -1
  63. package/dist/{drawer-y-Yrqskp.cjs → drawer-DluJOnDX.cjs} +1 -1
  64. package/dist/{drawer-y-Yrqskp.cjs.map → drawer-DluJOnDX.cjs.map} +1 -1
  65. package/dist/{dropdown-menu-CtU6oBI4.mjs → dropdown-menu-DPhbyDEo.mjs} +1 -1
  66. package/dist/{dropdown-menu-CtU6oBI4.mjs.map → dropdown-menu-DPhbyDEo.mjs.map} +1 -1
  67. package/dist/{dropdown-menu-C_dw8mro.cjs → dropdown-menu-DQs_Lvq7.cjs} +1 -1
  68. package/dist/{dropdown-menu-C_dw8mro.cjs.map → dropdown-menu-DQs_Lvq7.cjs.map} +1 -1
  69. package/dist/features/search-modal/index.cjs +1 -1
  70. package/dist/features/search-modal/index.d.cts +2 -2
  71. package/dist/features/search-modal/index.d.mts +2 -2
  72. package/dist/features/search-modal/index.mjs +1 -1
  73. package/dist/features/tables/index.cjs +1 -1
  74. package/dist/features/tables/index.cjs.map +1 -1
  75. package/dist/features/tables/index.d.cts +36 -5
  76. package/dist/features/tables/index.d.mts +36 -5
  77. package/dist/features/tables/index.mjs +1 -1
  78. package/dist/features/tables/index.mjs.map +1 -1
  79. package/dist/features/tanstack-form/index.cjs +1 -1
  80. package/dist/features/tanstack-form/index.mjs +1 -1
  81. package/dist/{image-BwbAQRxx.mjs → image-CbKDFah7.mjs} +2 -2
  82. package/dist/{image-BwbAQRxx.mjs.map → image-CbKDFah7.mjs.map} +1 -1
  83. package/dist/{image-C-XEJWcw.cjs → image-D5vQS72z.cjs} +2 -2
  84. package/dist/{image-C-XEJWcw.cjs.map → image-D5vQS72z.cjs.map} +1 -1
  85. package/dist/{input-DhUevNkc.cjs → input-C1BXP8dd.cjs} +1 -1
  86. package/dist/{input-DhUevNkc.cjs.map → input-C1BXP8dd.cjs.map} +1 -1
  87. package/dist/{input-CC10BdKh.mjs → input-C1K2wbv1.mjs} +1 -1
  88. package/dist/{input-CC10BdKh.mjs.map → input-C1K2wbv1.mjs.map} +1 -1
  89. package/dist/{input-B8fOADyL.d.mts → input-CuvhIW05.d.mts} +4 -4
  90. package/dist/{input-CsRVSfuH.d.cts → input-tIFltAI8.d.cts} +6 -6
  91. package/dist/{label-CaBktIhh.cjs → label-CkTb259R.cjs} +1 -1
  92. package/dist/{label-CaBktIhh.cjs.map → label-CkTb259R.cjs.map} +1 -1
  93. package/dist/{label-DVfxfyG5.mjs → label-DwmJnk4H.mjs} +1 -1
  94. package/dist/{label-DVfxfyG5.mjs.map → label-DwmJnk4H.mjs.map} +1 -1
  95. package/dist/layouts/app-layout/index.cjs +1 -1
  96. package/dist/layouts/app-layout/index.d.cts +28 -28
  97. package/dist/layouts/app-layout/index.d.mts +3 -3
  98. package/dist/layouts/app-layout/index.mjs +1 -1
  99. package/dist/layouts/cms-layout/index.cjs +1 -1
  100. package/dist/layouts/cms-layout/index.mjs +1 -1
  101. package/dist/layouts/flex.d.cts +4 -4
  102. package/dist/layouts/flex.d.mts +4 -4
  103. package/dist/layouts/service-layout/index.cjs +1 -1
  104. package/dist/layouts/service-layout/index.d.cts +1 -1
  105. package/dist/layouts/service-layout/index.d.mts +3 -3
  106. package/dist/layouts/service-layout/index.mjs +1 -1
  107. package/dist/pages/FeatureDeveloping.d.cts +2 -2
  108. package/dist/pages/FeatureDeveloping.d.mts +2 -2
  109. package/dist/pages/FeatureFixing.d.mts +2 -2
  110. package/dist/pages/NotAuthorized.d.cts +2 -2
  111. package/dist/pages/NotAuthorized.d.mts +2 -2
  112. package/dist/pages/NotFound.d.cts +2 -2
  113. package/dist/pages/NotFound.d.mts +2 -2
  114. package/dist/{resizable-D8XbQdj_.cjs → resizable-C2-dXaDM.cjs} +1 -1
  115. package/dist/{resizable-D8XbQdj_.cjs.map → resizable-C2-dXaDM.cjs.map} +1 -1
  116. package/dist/{resizable-B9HHrfKn.mjs → resizable-LConLbS6.mjs} +1 -1
  117. package/dist/{resizable-B9HHrfKn.mjs.map → resizable-LConLbS6.mjs.map} +1 -1
  118. package/dist/{scroll-area-CiMS2UY7.mjs → scroll-area-6xusEFm6.mjs} +1 -1
  119. package/dist/{scroll-area-CiMS2UY7.mjs.map → scroll-area-6xusEFm6.mjs.map} +1 -1
  120. package/dist/{scroll-area-qE6GqGkn.cjs → scroll-area-D61j6n8I.cjs} +1 -1
  121. package/dist/{scroll-area-qE6GqGkn.cjs.map → scroll-area-D61j6n8I.cjs.map} +1 -1
  122. package/dist/{separator-BlXmdu-p.d.cts → separator-B0xZ0amV.d.mts} +3 -3
  123. package/dist/{separator-DjuElvvp.d.mts → separator-BlCcNC_3.d.cts} +3 -3
  124. package/dist/{separator-D3CGKwyf.cjs → separator-Crr30ZHa.cjs} +1 -1
  125. package/dist/{separator-D3CGKwyf.cjs.map → separator-Crr30ZHa.cjs.map} +1 -1
  126. package/dist/{separator-C2yOD6r_.mjs → separator-yTKDuMWb.mjs} +1 -1
  127. package/dist/{separator-C2yOD6r_.mjs.map → separator-yTKDuMWb.mjs.map} +1 -1
  128. package/dist/{sheet-DXLayspn.mjs → sheet-BSeiP8S8.mjs} +1 -1
  129. package/dist/{sheet-DXLayspn.mjs.map → sheet-BSeiP8S8.mjs.map} +1 -1
  130. package/dist/{sheet-DtWL6WcJ.cjs → sheet-BYKV6xT_.cjs} +1 -1
  131. package/dist/{sheet-DtWL6WcJ.cjs.map → sheet-BYKV6xT_.cjs.map} +1 -1
  132. package/dist/skeleton-C4suljHP.cjs.map +1 -1
  133. package/dist/skeleton-CvZncisJ.mjs.map +1 -1
  134. package/dist/{tabs-DSofRReg.cjs → tabs-DldSJjLy.cjs} +1 -1
  135. package/dist/{tabs-DSofRReg.cjs.map → tabs-DldSJjLy.cjs.map} +1 -1
  136. package/dist/{tabs-Cjh2jtUZ.mjs → tabs-XrUcxpL1.mjs} +1 -1
  137. package/dist/{tabs-Cjh2jtUZ.mjs.map → tabs-XrUcxpL1.mjs.map} +1 -1
  138. package/dist/{title-CMJS7QS7.mjs → title-BK1YcXjX.mjs} +1 -1
  139. package/dist/{title-CMJS7QS7.mjs.map → title-BK1YcXjX.mjs.map} +1 -1
  140. package/dist/{title-C4XNLXSe.cjs → title-BNv6aAfA.cjs} +1 -1
  141. package/dist/{title-C4XNLXSe.cjs.map → title-BNv6aAfA.cjs.map} +1 -1
  142. package/dist/{tooltip-D0XDvxqi.mjs → tooltip-BDaKTFKI.mjs} +1 -1
  143. package/dist/{tooltip-D0XDvxqi.mjs.map → tooltip-BDaKTFKI.mjs.map} +1 -1
  144. package/dist/{tooltip-zYWazsY5.cjs → tooltip-BimfNium.cjs} +1 -1
  145. package/dist/{tooltip-zYWazsY5.cjs.map → tooltip-BimfNium.cjs.map} +1 -1
  146. package/dist/{tooltip-BZ-lfeF_.d.mts → tooltip-CCJYVy_H.d.mts} +6 -6
  147. package/dist/{tooltip-szcBtW8t.d.cts → tooltip-DeAzmFCB.d.cts} +6 -6
  148. package/dist/{types-D2kMOc_b.d.mts → types-DWnJKJ5r.d.mts} +1 -1
  149. package/dist/typography/paragraph.d.cts +2 -2
  150. package/dist/typography/title.cjs +1 -1
  151. package/dist/typography/title.d.cts +2 -2
  152. package/dist/typography/title.d.mts +2 -2
  153. package/dist/typography/title.mjs +1 -1
  154. package/dist/ui/alert-dialog.d.cts +12 -12
  155. package/dist/ui/alert-dialog.d.mts +12 -12
  156. package/dist/ui/alert.d.cts +6 -6
  157. package/dist/ui/alert.d.mts +4 -4
  158. package/dist/ui/aspect-ratio.d.cts +2 -2
  159. package/dist/ui/aspect-ratio.d.mts +2 -2
  160. package/dist/ui/avatar.cjs +1 -1
  161. package/dist/ui/avatar.d.cts +4 -4
  162. package/dist/ui/avatar.d.mts +4 -4
  163. package/dist/ui/avatar.mjs +1 -1
  164. package/dist/ui/badge.cjs +1 -2
  165. package/dist/ui/badge.d.cts +4 -4
  166. package/dist/ui/badge.d.mts +2 -2
  167. package/dist/ui/badge.mjs +1 -2
  168. package/dist/ui/breadcrumb.d.cts +8 -8
  169. package/dist/ui/breadcrumb.d.mts +8 -8
  170. package/dist/ui/button-group.cjs +1 -1
  171. package/dist/ui/button-group.d.cts +7 -7
  172. package/dist/ui/button-group.d.mts +5 -5
  173. package/dist/ui/button-group.mjs +1 -1
  174. package/dist/ui/button.d.cts +1 -1
  175. package/dist/ui/button.d.mts +1 -1
  176. package/dist/ui/calendar.d.cts +4 -4
  177. package/dist/ui/calendar.d.mts +4 -4
  178. package/dist/ui/card.d.cts +8 -8
  179. package/dist/ui/card.d.mts +8 -8
  180. package/dist/ui/carousel.d.cts +7 -7
  181. package/dist/ui/carousel.d.mts +7 -7
  182. package/dist/ui/collapsible.d.cts +4 -4
  183. package/dist/ui/collapsible.d.mts +4 -4
  184. package/dist/ui/command.cjs +1 -1
  185. package/dist/ui/command.d.cts +11 -11
  186. package/dist/ui/command.d.mts +11 -11
  187. package/dist/ui/command.mjs +1 -1
  188. package/dist/ui/context-menu.d.cts +16 -16
  189. package/dist/ui/context-menu.d.mts +16 -16
  190. package/dist/ui/dialog.cjs +1 -1
  191. package/dist/ui/dialog.d.cts +1 -1
  192. package/dist/ui/dialog.d.mts +1 -1
  193. package/dist/ui/dialog.mjs +1 -1
  194. package/dist/ui/drawer.cjs +1 -1
  195. package/dist/ui/drawer.d.cts +11 -11
  196. package/dist/ui/drawer.d.mts +11 -11
  197. package/dist/ui/drawer.mjs +1 -1
  198. package/dist/ui/dropdown-menu.cjs +1 -1
  199. package/dist/ui/dropdown-menu.d.cts +16 -16
  200. package/dist/ui/dropdown-menu.d.mts +16 -16
  201. package/dist/ui/dropdown-menu.mjs +1 -1
  202. package/dist/ui/empty.d.cts +9 -9
  203. package/dist/ui/empty.d.mts +7 -7
  204. package/dist/ui/field.cjs +1 -1
  205. package/dist/ui/field.d.cts +22 -22
  206. package/dist/ui/field.d.mts +24 -24
  207. package/dist/ui/field.mjs +1 -1
  208. package/dist/ui/file-uploader.d.cts +2 -2
  209. package/dist/ui/file-uploader.d.mts +2 -2
  210. package/dist/ui/form.cjs +1 -1
  211. package/dist/ui/form.d.cts +11 -11
  212. package/dist/ui/form.d.mts +11 -11
  213. package/dist/ui/form.mjs +1 -1
  214. package/dist/ui/hover-card.d.cts +4 -4
  215. package/dist/ui/hover-card.d.mts +4 -4
  216. package/dist/ui/image.cjs +1 -1
  217. package/dist/ui/image.mjs +1 -1
  218. package/dist/ui/input-otp.d.cts +5 -5
  219. package/dist/ui/input-otp.d.mts +5 -5
  220. package/dist/ui/input.cjs +1 -1
  221. package/dist/ui/input.d.cts +1 -1
  222. package/dist/ui/input.d.mts +1 -1
  223. package/dist/ui/input.mjs +1 -1
  224. package/dist/ui/inputs/search-input.cjs +1 -1
  225. package/dist/ui/inputs/search-input.d.cts +3 -3
  226. package/dist/ui/inputs/search-input.d.mts +3 -3
  227. package/dist/ui/inputs/search-input.mjs +1 -1
  228. package/dist/ui/item.cjs +1 -1
  229. package/dist/ui/item.d.cts +15 -15
  230. package/dist/ui/item.d.mts +15 -15
  231. package/dist/ui/item.mjs +1 -1
  232. package/dist/ui/label.cjs +1 -1
  233. package/dist/ui/label.d.cts +2 -2
  234. package/dist/ui/label.d.mts +2 -2
  235. package/dist/ui/label.mjs +1 -1
  236. package/dist/ui/menubar.d.cts +17 -17
  237. package/dist/ui/menubar.d.mts +17 -17
  238. package/dist/ui/multi-select.cjs +1 -1
  239. package/dist/ui/multi-select.d.mts +3 -3
  240. package/dist/ui/multi-select.mjs +1 -1
  241. package/dist/ui/navigation-menu.d.cts +11 -11
  242. package/dist/ui/navigation-menu.d.mts +9 -9
  243. package/dist/ui/pagination.d.cts +9 -9
  244. package/dist/ui/pagination.d.mts +9 -9
  245. package/dist/ui/popover.d.cts +5 -5
  246. package/dist/ui/popover.d.mts +5 -5
  247. package/dist/ui/progress.d.cts +2 -2
  248. package/dist/ui/progress.d.mts +2 -2
  249. package/dist/ui/radio-group.d.cts +3 -3
  250. package/dist/ui/radio-group.d.mts +3 -3
  251. package/dist/ui/resizable.cjs +1 -1
  252. package/dist/ui/resizable.d.cts +4 -4
  253. package/dist/ui/resizable.d.mts +4 -4
  254. package/dist/ui/resizable.mjs +1 -1
  255. package/dist/ui/scroll-area.cjs +1 -1
  256. package/dist/ui/scroll-area.d.cts +3 -3
  257. package/dist/ui/scroll-area.d.mts +6 -6
  258. package/dist/ui/scroll-area.mjs +1 -1
  259. package/dist/ui/select.d.cts +11 -11
  260. package/dist/ui/select.d.mts +11 -11
  261. package/dist/ui/separator.cjs +1 -1
  262. package/dist/ui/separator.d.cts +1 -1
  263. package/dist/ui/separator.d.mts +1 -1
  264. package/dist/ui/separator.mjs +1 -1
  265. package/dist/ui/sheet.cjs +1 -1
  266. package/dist/ui/sheet.d.cts +9 -9
  267. package/dist/ui/sheet.d.mts +9 -9
  268. package/dist/ui/sheet.mjs +1 -1
  269. package/dist/ui/sidebar.cjs +1 -1
  270. package/dist/ui/sidebar.d.cts +28 -28
  271. package/dist/ui/sidebar.d.mts +30 -30
  272. package/dist/ui/sidebar.mjs +1 -1
  273. package/dist/ui/skeleton.d.cts +2 -2
  274. package/dist/ui/skeleton.d.mts +2 -2
  275. package/dist/ui/slider.d.mts +2 -2
  276. package/dist/ui/sonner.d.cts +2 -2
  277. package/dist/ui/sonner.d.mts +2 -2
  278. package/dist/ui/spinner.d.cts +2 -2
  279. package/dist/ui/spinner.d.mts +2 -2
  280. package/dist/ui/switch.d.cts +2 -2
  281. package/dist/ui/switch.d.mts +2 -2
  282. package/dist/ui/table.d.cts +9 -9
  283. package/dist/ui/table.d.mts +9 -9
  284. package/dist/ui/tabs.cjs +1 -1
  285. package/dist/ui/tabs.d.cts +5 -5
  286. package/dist/ui/tabs.d.mts +5 -5
  287. package/dist/ui/tabs.mjs +1 -1
  288. package/dist/ui/textarea.d.cts +2 -2
  289. package/dist/ui/textarea.d.mts +2 -2
  290. package/dist/ui/toggle-group.d.cts +3 -3
  291. package/dist/ui/toggle-group.d.mts +3 -3
  292. package/dist/ui/toggle.d.cts +2 -2
  293. package/dist/ui/toggle.d.mts +4 -4
  294. package/dist/ui/tooltip.cjs +1 -1
  295. package/dist/ui/tooltip.d.cts +1 -1
  296. package/dist/ui/tooltip.d.mts +1 -1
  297. package/dist/ui/tooltip.mjs +1 -1
  298. package/package.json +1 -1
  299. package/dist/ui/badge.cjs.map +0 -1
  300. package/dist/ui/badge.mjs.map +0 -1
package/dist/ui/field.cjs CHANGED
@@ -1,2 +1,2 @@
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;
1
+ "use client";const e=require(`../chunk-Bmb41Sf3.cjs`),t=require(`../separator-Crr30ZHa.cjs`),n=require(`../label-CkTb259R.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_runtime140 from "react/jsx-runtime";
3
- import * as react1 from "react";
2
+ import * as react_jsx_runtime87 from "react/jsx-runtime";
3
+ import * as react4 from "react";
4
4
  import * as class_variance_authority_types3 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: react1.MemoExoticComponent<({
8
+ declare const FieldSet: react4.MemoExoticComponent<({
9
9
  className,
10
10
  ...props
11
- }: React.ComponentProps<"fieldset">) => react_jsx_runtime140.JSX.Element>;
12
- declare const FieldLegend: react1.MemoExoticComponent<({
11
+ }: React.ComponentProps<"fieldset">) => react_jsx_runtime87.JSX.Element>;
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_runtime140.JSX.Element>;
19
- declare const FieldGroup: react1.MemoExoticComponent<({
18
+ }) => react_jsx_runtime87.JSX.Element>;
19
+ declare const FieldGroup: react4.MemoExoticComponent<({
20
20
  className,
21
21
  ...props
22
- }: React.ComponentProps<"div">) => react_jsx_runtime140.JSX.Element>;
22
+ }: React.ComponentProps<"div">) => react_jsx_runtime87.JSX.Element>;
23
23
  declare const fieldVariants: (props?: ({
24
24
  orientation?: "vertical" | "horizontal" | "responsive" | null | undefined;
25
25
  } & class_variance_authority_types3.ClassProp) | undefined) => string;
26
- declare const Field: react1.MemoExoticComponent<({
26
+ declare const Field: react4.MemoExoticComponent<({
27
27
  className,
28
28
  orientation,
29
29
  ...props
30
- }: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>) => react_jsx_runtime140.JSX.Element>;
31
- declare const FieldContent: react1.MemoExoticComponent<({
30
+ }: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>) => react_jsx_runtime87.JSX.Element>;
31
+ declare const FieldContent: react4.MemoExoticComponent<({
32
32
  className,
33
33
  ...props
34
- }: React.ComponentProps<"div">) => react_jsx_runtime140.JSX.Element>;
35
- declare const FieldLabel: react1.MemoExoticComponent<({
34
+ }: React.ComponentProps<"div">) => react_jsx_runtime87.JSX.Element>;
35
+ declare const FieldLabel: react4.MemoExoticComponent<({
36
36
  className,
37
37
  ...props
38
- }: React.ComponentProps<typeof Label>) => react_jsx_runtime140.JSX.Element>;
39
- declare const FieldTitle: react1.MemoExoticComponent<({
38
+ }: React.ComponentProps<typeof Label>) => react_jsx_runtime87.JSX.Element>;
39
+ declare const FieldTitle: react4.MemoExoticComponent<({
40
40
  className,
41
41
  ...props
42
- }: React.ComponentProps<"div">) => react_jsx_runtime140.JSX.Element>;
43
- declare const FieldDescription: react1.MemoExoticComponent<({
42
+ }: React.ComponentProps<"div">) => react_jsx_runtime87.JSX.Element>;
43
+ declare const FieldDescription: react4.MemoExoticComponent<({
44
44
  className,
45
45
  ...props
46
- }: React.ComponentProps<"p">) => react_jsx_runtime140.JSX.Element>;
47
- declare const FieldSeparator: react1.MemoExoticComponent<({
46
+ }: React.ComponentProps<"p">) => react_jsx_runtime87.JSX.Element>;
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_runtime140.JSX.Element>;
54
- declare const FieldError: react1.MemoExoticComponent<({
53
+ }) => react_jsx_runtime87.JSX.Element>;
54
+ declare const FieldError: react4.MemoExoticComponent<({
55
55
  className,
56
56
  children,
57
57
  errors,
@@ -60,7 +60,7 @@ declare const FieldError: react1.MemoExoticComponent<({
60
60
  errors?: Array<{
61
61
  message?: string;
62
62
  } | undefined>;
63
- }) => react_jsx_runtime140.JSX.Element | null>;
63
+ }) => react_jsx_runtime87.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,57 +1,57 @@
1
1
  import { Label } from "./label.mjs";
2
- import * as react_jsx_runtime184 from "react/jsx-runtime";
3
- import * as react4 from "react";
2
+ import * as react_jsx_runtime146 from "react/jsx-runtime";
3
+ import * as react1 from "react";
4
4
  import { VariantProps } from "class-variance-authority";
5
- import * as class_variance_authority_types6 from "class-variance-authority/types";
5
+ import * as class_variance_authority_types4 from "class-variance-authority/types";
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_runtime184.JSX.Element>;
12
- declare const FieldLegend: react4.MemoExoticComponent<({
11
+ }: React.ComponentProps<"fieldset">) => react_jsx_runtime146.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_runtime184.JSX.Element>;
19
- declare const FieldGroup: react4.MemoExoticComponent<({
18
+ }) => react_jsx_runtime146.JSX.Element>;
19
+ declare const FieldGroup: react1.MemoExoticComponent<({
20
20
  className,
21
21
  ...props
22
- }: React.ComponentProps<"div">) => react_jsx_runtime184.JSX.Element>;
22
+ }: React.ComponentProps<"div">) => react_jsx_runtime146.JSX.Element>;
23
23
  declare const fieldVariants: (props?: ({
24
24
  orientation?: "vertical" | "horizontal" | "responsive" | null | undefined;
25
- } & class_variance_authority_types6.ClassProp) | undefined) => string;
26
- declare const Field: react4.MemoExoticComponent<({
25
+ } & class_variance_authority_types4.ClassProp) | undefined) => string;
26
+ declare const Field: react1.MemoExoticComponent<({
27
27
  className,
28
28
  orientation,
29
29
  ...props
30
- }: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>) => react_jsx_runtime184.JSX.Element>;
31
- declare const FieldContent: react4.MemoExoticComponent<({
30
+ }: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>) => react_jsx_runtime146.JSX.Element>;
31
+ declare const FieldContent: react1.MemoExoticComponent<({
32
32
  className,
33
33
  ...props
34
- }: React.ComponentProps<"div">) => react_jsx_runtime184.JSX.Element>;
35
- declare const FieldLabel: react4.MemoExoticComponent<({
34
+ }: React.ComponentProps<"div">) => react_jsx_runtime146.JSX.Element>;
35
+ declare const FieldLabel: react1.MemoExoticComponent<({
36
36
  className,
37
37
  ...props
38
- }: React.ComponentProps<typeof Label>) => react_jsx_runtime184.JSX.Element>;
39
- declare const FieldTitle: react4.MemoExoticComponent<({
38
+ }: React.ComponentProps<typeof Label>) => react_jsx_runtime146.JSX.Element>;
39
+ declare const FieldTitle: react1.MemoExoticComponent<({
40
40
  className,
41
41
  ...props
42
- }: React.ComponentProps<"div">) => react_jsx_runtime184.JSX.Element>;
43
- declare const FieldDescription: react4.MemoExoticComponent<({
42
+ }: React.ComponentProps<"div">) => react_jsx_runtime146.JSX.Element>;
43
+ declare const FieldDescription: react1.MemoExoticComponent<({
44
44
  className,
45
45
  ...props
46
- }: React.ComponentProps<"p">) => react_jsx_runtime184.JSX.Element>;
47
- declare const FieldSeparator: react4.MemoExoticComponent<({
46
+ }: React.ComponentProps<"p">) => react_jsx_runtime146.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_runtime184.JSX.Element>;
54
- declare const FieldError: react4.MemoExoticComponent<({
53
+ }) => react_jsx_runtime146.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_runtime184.JSX.Element | null>;
63
+ }) => react_jsx_runtime146.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-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};
1
+ "use client";import{t as e}from"../separator-yTKDuMWb.mjs";import{t}from"../label-DwmJnk4H.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_runtime165 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime113 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_runtime165.JSX.Element;
75
+ declare function FileUploader(props: FileUploaderProps): react_jsx_runtime113.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_runtime258 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime166 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_runtime258.JSX.Element;
75
+ declare function FileUploader(props: FileUploaderProps): react_jsx_runtime166.JSX.Element;
76
76
  //#endregion
77
77
  export { FileUploader };
78
78
  //# sourceMappingURL=file-uploader.d.mts.map
package/dist/ui/form.cjs CHANGED
@@ -1,2 +1,2 @@
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;
1
+ "use client";const e=require(`../chunk-Bmb41Sf3.cjs`);require(`../separator-Crr30ZHa.cjs`),require(`../label-CkTb259R.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
@@ -1,5 +1,5 @@
1
- import * as react_jsx_runtime159 from "react/jsx-runtime";
2
- import * as react11 from "react";
1
+ import * as react_jsx_runtime81 from "react/jsx-runtime";
2
+ import * as react1 from "react";
3
3
  import { Label, Slot } from "radix-ui";
4
4
  import * as react_hook_form0 from "react-hook-form";
5
5
  import { ControllerProps, FieldPath, FieldValues } from "react-hook-form";
@@ -8,7 +8,7 @@ import { ControllerProps, FieldPath, FieldValues } from "react-hook-form";
8
8
  declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: react_hook_form0.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
9
9
  declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({
10
10
  ...props
11
- }: ControllerProps<TFieldValues, TName>) => react_jsx_runtime159.JSX.Element;
11
+ }: ControllerProps<TFieldValues, TName>) => react_jsx_runtime81.JSX.Element;
12
12
  declare const useFormField: () => {
13
13
  invalid: boolean;
14
14
  isDirty: boolean;
@@ -23,28 +23,28 @@ declare const useFormField: () => {
23
23
  formDescriptionId: string;
24
24
  formMessageId: string;
25
25
  };
26
- declare const FormItem: react11.MemoExoticComponent<({
26
+ declare const FormItem: react1.MemoExoticComponent<({
27
27
  className,
28
28
  orientation,
29
29
  ...props
30
30
  }: React.ComponentProps<"div"> & {
31
31
  orientation?: "vertical" | "horizontal" | "responsive";
32
- }) => react_jsx_runtime159.JSX.Element>;
33
- declare const FormLabel: react11.MemoExoticComponent<({
32
+ }) => react_jsx_runtime81.JSX.Element>;
33
+ declare const FormLabel: react1.MemoExoticComponent<({
34
34
  ...props
35
- }: React.ComponentProps<typeof Label.Root>) => react_jsx_runtime159.JSX.Element>;
36
- declare const FormControl: react11.MemoExoticComponent<({
35
+ }: React.ComponentProps<typeof Label.Root>) => react_jsx_runtime81.JSX.Element>;
36
+ declare const FormControl: react1.MemoExoticComponent<({
37
37
  ...props
38
- }: React.ComponentProps<typeof Slot.Slot>) => react_jsx_runtime159.JSX.Element>;
38
+ }: React.ComponentProps<typeof Slot.Slot>) => react_jsx_runtime81.JSX.Element>;
39
39
  declare function FormDescription({
40
40
  className,
41
41
  ...props
42
- }: React.ComponentProps<'p'>): react_jsx_runtime159.JSX.Element;
42
+ }: React.ComponentProps<'p'>): react_jsx_runtime81.JSX.Element;
43
43
  declare function FormMessage({
44
44
  className,
45
45
  children,
46
46
  ...props
47
- }: React.ComponentProps<'p'>): react_jsx_runtime159.JSX.Element;
47
+ }: React.ComponentProps<'p'>): react_jsx_runtime81.JSX.Element;
48
48
  //#endregion
49
49
  export { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField };
50
50
  //# sourceMappingURL=form.d.cts.map
@@ -1,5 +1,5 @@
1
- import * as react_jsx_runtime123 from "react/jsx-runtime";
2
- import * as react1 from "react";
1
+ import * as react_jsx_runtime156 from "react/jsx-runtime";
2
+ import * as react11 from "react";
3
3
  import { Label, Slot } from "radix-ui";
4
4
  import * as react_hook_form0 from "react-hook-form";
5
5
  import { ControllerProps, FieldPath, FieldValues } from "react-hook-form";
@@ -8,7 +8,7 @@ import { ControllerProps, FieldPath, FieldValues } from "react-hook-form";
8
8
  declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: react_hook_form0.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
9
9
  declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({
10
10
  ...props
11
- }: ControllerProps<TFieldValues, TName>) => react_jsx_runtime123.JSX.Element;
11
+ }: ControllerProps<TFieldValues, TName>) => react_jsx_runtime156.JSX.Element;
12
12
  declare const useFormField: () => {
13
13
  invalid: boolean;
14
14
  isDirty: boolean;
@@ -23,28 +23,28 @@ declare const useFormField: () => {
23
23
  formDescriptionId: string;
24
24
  formMessageId: string;
25
25
  };
26
- declare const FormItem: react1.MemoExoticComponent<({
26
+ declare const FormItem: react11.MemoExoticComponent<({
27
27
  className,
28
28
  orientation,
29
29
  ...props
30
30
  }: React.ComponentProps<"div"> & {
31
31
  orientation?: "vertical" | "horizontal" | "responsive";
32
- }) => react_jsx_runtime123.JSX.Element>;
33
- declare const FormLabel: react1.MemoExoticComponent<({
32
+ }) => react_jsx_runtime156.JSX.Element>;
33
+ declare const FormLabel: react11.MemoExoticComponent<({
34
34
  ...props
35
- }: React.ComponentProps<typeof Label.Root>) => react_jsx_runtime123.JSX.Element>;
36
- declare const FormControl: react1.MemoExoticComponent<({
35
+ }: React.ComponentProps<typeof Label.Root>) => react_jsx_runtime156.JSX.Element>;
36
+ declare const FormControl: react11.MemoExoticComponent<({
37
37
  ...props
38
- }: React.ComponentProps<typeof Slot.Slot>) => react_jsx_runtime123.JSX.Element>;
38
+ }: React.ComponentProps<typeof Slot.Slot>) => react_jsx_runtime156.JSX.Element>;
39
39
  declare function FormDescription({
40
40
  className,
41
41
  ...props
42
- }: React.ComponentProps<'p'>): react_jsx_runtime123.JSX.Element;
42
+ }: React.ComponentProps<'p'>): react_jsx_runtime156.JSX.Element;
43
43
  declare function FormMessage({
44
44
  className,
45
45
  children,
46
46
  ...props
47
- }: React.ComponentProps<'p'>): react_jsx_runtime123.JSX.Element;
47
+ }: React.ComponentProps<'p'>): react_jsx_runtime156.JSX.Element;
48
48
  //#endregion
49
49
  export { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField };
50
50
  //# sourceMappingURL=form.d.mts.map
package/dist/ui/form.mjs CHANGED
@@ -1,2 +1,2 @@
1
- "use client";import"../separator-C2yOD6r_.mjs";import"../label-DVfxfyG5.mjs";import{Field as e,FieldDescription as t,FieldLabel as n}from"./field.mjs";import{cn as r}from"@customafk/react-toolkit/utils";import{jsx as i}from"react/jsx-runtime";import{createContext as a,memo as o,use as s,useId as c}from"react";import{Slot as l}from"radix-ui";import{Controller as u,FormProvider as d,useFormContext as f,useFormState as p}from"react-hook-form";const m=d,h=a({}),g=({...e})=>i(h.Provider,{value:{name:e.name},children:i(u,{...e})}),_=()=>{let e=s(h),t=s(v),{getFieldState:n,control:r,resetField:i}=f(),a=p({name:e.name}),o=n(e.name,a);if(!e)throw Error(`useFormField should be used within <FormField>`);let{id:c}=t;return{id:c,control:r,resetField:i,name:e.name,formItemId:`${c}-form-item`,formDescriptionId:`${c}-form-item-description`,formMessageId:`${c}-form-item-message`,...o}},v=a({}),y=o(({className:t,orientation:n=`responsive`,...r})=>{let a=c();return i(v.Provider,{value:{id:a},children:i(e,{orientation:n,...r,className:t})})});y.displayName=`FormItem`;const b=o(({...e})=>{let{formItemId:t}=_();return i(n,{htmlFor:t,...e})});b.displayName=`FormLabel`;const x=o(({...e})=>{let{error:t,formItemId:n,formDescriptionId:r,formMessageId:a}=_();return i(l.Slot,{"data-slot":`form-control`,id:n,"aria-describedby":t?`${r} ${a}`:`${r}`,"aria-invalid":!!t,...e})});x.displayName=`FormControl`;function S({className:e,...n}){let{formDescriptionId:a}=_();return i(t,{id:a,className:r(`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 C({className:e,children:t,...n}){let{error:a,formMessageId:o}=_();return i(`span`,{"data-slot":`form-message`,id:o,className:r(`text-danger text-xs`,e),...n,children:a?String(a?.message??``):t})}export{m as Form,x as FormControl,S as FormDescription,g as FormField,y as FormItem,b as FormLabel,C as FormMessage,_ as useFormField};
1
+ "use client";import"../separator-yTKDuMWb.mjs";import"../label-DwmJnk4H.mjs";import{Field as e,FieldDescription as t,FieldLabel as n}from"./field.mjs";import{cn as r}from"@customafk/react-toolkit/utils";import{jsx as i}from"react/jsx-runtime";import{createContext as a,memo as o,use as s,useId as c}from"react";import{Slot as l}from"radix-ui";import{Controller as u,FormProvider as d,useFormContext as f,useFormState as p}from"react-hook-form";const m=d,h=a({}),g=({...e})=>i(h.Provider,{value:{name:e.name},children:i(u,{...e})}),_=()=>{let e=s(h),t=s(v),{getFieldState:n,control:r,resetField:i}=f(),a=p({name:e.name}),o=n(e.name,a);if(!e)throw Error(`useFormField should be used within <FormField>`);let{id:c}=t;return{id:c,control:r,resetField:i,name:e.name,formItemId:`${c}-form-item`,formDescriptionId:`${c}-form-item-description`,formMessageId:`${c}-form-item-message`,...o}},v=a({}),y=o(({className:t,orientation:n=`responsive`,...r})=>{let a=c();return i(v.Provider,{value:{id:a},children:i(e,{orientation:n,...r,className:t})})});y.displayName=`FormItem`;const b=o(({...e})=>{let{formItemId:t}=_();return i(n,{htmlFor:t,...e})});b.displayName=`FormLabel`;const x=o(({...e})=>{let{error:t,formItemId:n,formDescriptionId:r,formMessageId:a}=_();return i(l.Slot,{"data-slot":`form-control`,id:n,"aria-describedby":t?`${r} ${a}`:`${r}`,"aria-invalid":!!t,...e})});x.displayName=`FormControl`;function S({className:e,...n}){let{formDescriptionId:a}=_();return i(t,{id:a,className:r(`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 C({className:e,children:t,...n}){let{error:a,formMessageId:o}=_();return i(`span`,{"data-slot":`form-message`,id:o,className:r(`text-danger text-xs`,e),...n,children:a?String(a?.message??``):t})}export{m as Form,x as FormControl,S as FormDescription,g as FormField,y as FormItem,b as FormLabel,C as FormMessage,_ as useFormField};
2
2
  //# sourceMappingURL=form.mjs.map
@@ -1,19 +1,19 @@
1
- import * as react_jsx_runtime156 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime114 from "react/jsx-runtime";
2
2
  import { HoverCard as HoverCard$1 } from "radix-ui";
3
3
 
4
4
  //#region packages/components/ui/hover-card.d.ts
5
5
  declare function HoverCard({
6
6
  ...props
7
- }: React.ComponentProps<typeof HoverCard$1.Root>): react_jsx_runtime156.JSX.Element;
7
+ }: React.ComponentProps<typeof HoverCard$1.Root>): react_jsx_runtime114.JSX.Element;
8
8
  declare function HoverCardTrigger({
9
9
  ...props
10
- }: React.ComponentProps<typeof HoverCard$1.Trigger>): react_jsx_runtime156.JSX.Element;
10
+ }: React.ComponentProps<typeof HoverCard$1.Trigger>): react_jsx_runtime114.JSX.Element;
11
11
  declare function HoverCardContent({
12
12
  className,
13
13
  align,
14
14
  sideOffset,
15
15
  ...props
16
- }: React.ComponentProps<typeof HoverCard$1.Content>): react_jsx_runtime156.JSX.Element;
16
+ }: React.ComponentProps<typeof HoverCard$1.Content>): react_jsx_runtime114.JSX.Element;
17
17
  //#endregion
18
18
  export { HoverCard, HoverCardContent, HoverCardTrigger };
19
19
  //# sourceMappingURL=hover-card.d.cts.map
@@ -1,19 +1,19 @@
1
- import * as react_jsx_runtime77 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime162 from "react/jsx-runtime";
2
2
  import { HoverCard as HoverCard$1 } from "radix-ui";
3
3
 
4
4
  //#region packages/components/ui/hover-card.d.ts
5
5
  declare function HoverCard({
6
6
  ...props
7
- }: React.ComponentProps<typeof HoverCard$1.Root>): react_jsx_runtime77.JSX.Element;
7
+ }: React.ComponentProps<typeof HoverCard$1.Root>): react_jsx_runtime162.JSX.Element;
8
8
  declare function HoverCardTrigger({
9
9
  ...props
10
- }: React.ComponentProps<typeof HoverCard$1.Trigger>): react_jsx_runtime77.JSX.Element;
10
+ }: React.ComponentProps<typeof HoverCard$1.Trigger>): react_jsx_runtime162.JSX.Element;
11
11
  declare function HoverCardContent({
12
12
  className,
13
13
  align,
14
14
  sideOffset,
15
15
  ...props
16
- }: React.ComponentProps<typeof HoverCard$1.Content>): react_jsx_runtime77.JSX.Element;
16
+ }: React.ComponentProps<typeof HoverCard$1.Content>): react_jsx_runtime162.JSX.Element;
17
17
  //#endregion
18
18
  export { HoverCard, HoverCardContent, HoverCardTrigger };
19
19
  //# sourceMappingURL=hover-card.d.mts.map
package/dist/ui/image.cjs CHANGED
@@ -1 +1 @@
1
- require(`../skeleton-C4suljHP.cjs`);const e=require(`../image-C-XEJWcw.cjs`);exports.Image=e.t;
1
+ require(`../skeleton-C4suljHP.cjs`);const e=require(`../image-D5vQS72z.cjs`);exports.Image=e.t;
package/dist/ui/image.mjs CHANGED
@@ -1 +1 @@
1
- import"../skeleton-CvZncisJ.mjs";import{t as e}from"../image-BwbAQRxx.mjs";export{e as Image};
1
+ import"../skeleton-CvZncisJ.mjs";import{t as e}from"../image-CbKDFah7.mjs";export{e as Image};
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime167 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime97 from "react/jsx-runtime";
2
2
  import { OTPInput } from "input-otp";
3
3
 
4
4
  //#region packages/components/ui/input-otp.d.ts
@@ -8,21 +8,21 @@ declare function InputOTP({
8
8
  ...props
9
9
  }: React.ComponentProps<typeof OTPInput> & {
10
10
  containerClassName?: string;
11
- }): react_jsx_runtime167.JSX.Element;
11
+ }): react_jsx_runtime97.JSX.Element;
12
12
  declare function InputOTPGroup({
13
13
  className,
14
14
  ...props
15
- }: React.ComponentProps<'div'>): react_jsx_runtime167.JSX.Element;
15
+ }: React.ComponentProps<'div'>): react_jsx_runtime97.JSX.Element;
16
16
  declare function InputOTPSlot({
17
17
  index,
18
18
  className,
19
19
  ...props
20
20
  }: React.ComponentProps<'div'> & {
21
21
  index: number;
22
- }): react_jsx_runtime167.JSX.Element;
22
+ }): react_jsx_runtime97.JSX.Element;
23
23
  declare function InputOTPSeparator({
24
24
  ...props
25
- }: React.ComponentProps<'div'>): react_jsx_runtime167.JSX.Element;
25
+ }: React.ComponentProps<'div'>): react_jsx_runtime97.JSX.Element;
26
26
  //#endregion
27
27
  export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot };
28
28
  //# sourceMappingURL=input-otp.d.cts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime102 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime167 from "react/jsx-runtime";
2
2
  import { OTPInput } from "input-otp";
3
3
 
4
4
  //#region packages/components/ui/input-otp.d.ts
@@ -8,21 +8,21 @@ declare function InputOTP({
8
8
  ...props
9
9
  }: React.ComponentProps<typeof OTPInput> & {
10
10
  containerClassName?: string;
11
- }): react_jsx_runtime102.JSX.Element;
11
+ }): react_jsx_runtime167.JSX.Element;
12
12
  declare function InputOTPGroup({
13
13
  className,
14
14
  ...props
15
- }: React.ComponentProps<'div'>): react_jsx_runtime102.JSX.Element;
15
+ }: React.ComponentProps<'div'>): react_jsx_runtime167.JSX.Element;
16
16
  declare function InputOTPSlot({
17
17
  index,
18
18
  className,
19
19
  ...props
20
20
  }: React.ComponentProps<'div'> & {
21
21
  index: number;
22
- }): react_jsx_runtime102.JSX.Element;
22
+ }): react_jsx_runtime167.JSX.Element;
23
23
  declare function InputOTPSeparator({
24
24
  ...props
25
- }: React.ComponentProps<'div'>): react_jsx_runtime102.JSX.Element;
25
+ }: React.ComponentProps<'div'>): react_jsx_runtime167.JSX.Element;
26
26
  //#endregion
27
27
  export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot };
28
28
  //# sourceMappingURL=input-otp.d.mts.map
package/dist/ui/input.cjs CHANGED
@@ -1 +1 @@
1
- "use client";const e=require(`../input-DhUevNkc.cjs`);exports.Input=e.t;
1
+ "use client";const e=require(`../input-C1BXP8dd.cjs`);exports.Input=e.t;
@@ -1,2 +1,2 @@
1
- import { t as Input } from "../input-CsRVSfuH.cjs";
1
+ import { t as Input } from "../input-tIFltAI8.cjs";
2
2
  export { Input };
@@ -1,2 +1,2 @@
1
- import { t as Input } from "../input-B8fOADyL.mjs";
1
+ import { t as Input } from "../input-CuvhIW05.mjs";
2
2
  export { Input };
package/dist/ui/input.mjs CHANGED
@@ -1 +1 @@
1
- "use client";import{t as e}from"../input-CC10BdKh.mjs";export{e as Input};
1
+ "use client";import{t as e}from"../input-C1K2wbv1.mjs";export{e as Input};
@@ -1,2 +1,2 @@
1
- const e=require(`../../chunk-Bmb41Sf3.cjs`),t=require(`../../input-DhUevNkc.cjs`);let n=require(`@customafk/react-toolkit/utils`),r=require(`react/jsx-runtime`),i=require(`lucide-react`);const a=({className:e,...a})=>(0,r.jsxs)(`div`,{className:`relative`,children:[(0,r.jsx)(t.t,{...a,type:`search`,className:(0,n.cn)(`ps-9 pe-9`,e)}),(0,r.jsx)(`div`,{className:`pointer-events-none absolute inset-y-0 start-0 flex items-center justify-center ps-3 text-text-positive-weak peer-disabled:opacity-50`,children:(0,r.jsx)(i.SearchIcon,{size:16})}),(0,r.jsx)(`button`,{className:`absolute inset-y-0 end-0 flex h-full w-9 items-center justify-center rounded-e-md text-text-positive-weak outline-none transition-[color,box-shadow] hover:text-text-positive focus:z-10 focus-visible:border focus-visible:border-primary-strong focus-visible:ring-[3px] focus-visible:ring-primary-weak disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50`,"aria-label":`Submit search`,type:`submit`,children:(0,r.jsx)(i.ArrowRightIcon,{size:16,"aria-hidden":`true`})})]});exports.SearchInput=a;
1
+ const e=require(`../../chunk-Bmb41Sf3.cjs`),t=require(`../../input-C1BXP8dd.cjs`);let n=require(`@customafk/react-toolkit/utils`),r=require(`react/jsx-runtime`),i=require(`lucide-react`);const a=({className:e,...a})=>(0,r.jsxs)(`div`,{className:`relative`,children:[(0,r.jsx)(t.t,{...a,type:`search`,className:(0,n.cn)(`ps-9 pe-9`,e)}),(0,r.jsx)(`div`,{className:`pointer-events-none absolute inset-y-0 start-0 flex items-center justify-center ps-3 text-text-positive-weak peer-disabled:opacity-50`,children:(0,r.jsx)(i.SearchIcon,{size:16})}),(0,r.jsx)(`button`,{className:`absolute inset-y-0 end-0 flex h-full w-9 items-center justify-center rounded-e-md text-text-positive-weak outline-none transition-[color,box-shadow] hover:text-text-positive focus:z-10 focus-visible:border focus-visible:border-primary-strong focus-visible:ring-[3px] focus-visible:ring-primary-weak disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50`,"aria-label":`Submit search`,type:`submit`,children:(0,r.jsx)(i.ArrowRightIcon,{size:16,"aria-hidden":`true`})})]});exports.SearchInput=a;
2
2
  //# sourceMappingURL=search-input.cjs.map
@@ -1,12 +1,12 @@
1
- import { t as Input } from "../../input-CsRVSfuH.cjs";
2
- import * as react_jsx_runtime33 from "react/jsx-runtime";
1
+ import { t as Input } from "../../input-tIFltAI8.cjs";
2
+ import * as react_jsx_runtime34 from "react/jsx-runtime";
3
3
 
4
4
  //#region packages/components/ui/inputs/search-input.d.ts
5
5
  type Props = React.ComponentPropsWithoutRef<typeof Input>;
6
6
  declare const SearchInput: ({
7
7
  className,
8
8
  ...rest
9
- }: Props) => react_jsx_runtime33.JSX.Element;
9
+ }: Props) => react_jsx_runtime34.JSX.Element;
10
10
  //#endregion
11
11
  export { SearchInput };
12
12
  //# sourceMappingURL=search-input.d.cts.map
@@ -1,12 +1,12 @@
1
- import { t as Input } from "../../input-B8fOADyL.mjs";
2
- import * as react_jsx_runtime32 from "react/jsx-runtime";
1
+ import { t as Input } from "../../input-CuvhIW05.mjs";
2
+ import * as react_jsx_runtime33 from "react/jsx-runtime";
3
3
 
4
4
  //#region packages/components/ui/inputs/search-input.d.ts
5
5
  type Props = React.ComponentPropsWithoutRef<typeof Input>;
6
6
  declare const SearchInput: ({
7
7
  className,
8
8
  ...rest
9
- }: Props) => react_jsx_runtime32.JSX.Element;
9
+ }: Props) => react_jsx_runtime33.JSX.Element;
10
10
  //#endregion
11
11
  export { SearchInput };
12
12
  //# sourceMappingURL=search-input.d.mts.map
@@ -1,2 +1,2 @@
1
- import{t as e}from"../../input-CC10BdKh.mjs";import{cn as t}from"@customafk/react-toolkit/utils";import{jsx as n,jsxs as r}from"react/jsx-runtime";import{ArrowRightIcon as i,SearchIcon as a}from"lucide-react";const o=({className:o,...s})=>r(`div`,{className:`relative`,children:[n(e,{...s,type:`search`,className:t(`ps-9 pe-9`,o)}),n(`div`,{className:`pointer-events-none absolute inset-y-0 start-0 flex items-center justify-center ps-3 text-text-positive-weak peer-disabled:opacity-50`,children:n(a,{size:16})}),n(`button`,{className:`absolute inset-y-0 end-0 flex h-full w-9 items-center justify-center rounded-e-md text-text-positive-weak outline-none transition-[color,box-shadow] hover:text-text-positive focus:z-10 focus-visible:border focus-visible:border-primary-strong focus-visible:ring-[3px] focus-visible:ring-primary-weak disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50`,"aria-label":`Submit search`,type:`submit`,children:n(i,{size:16,"aria-hidden":`true`})})]});export{o as SearchInput};
1
+ import{t as e}from"../../input-C1K2wbv1.mjs";import{cn as t}from"@customafk/react-toolkit/utils";import{jsx as n,jsxs as r}from"react/jsx-runtime";import{ArrowRightIcon as i,SearchIcon as a}from"lucide-react";const o=({className:o,...s})=>r(`div`,{className:`relative`,children:[n(e,{...s,type:`search`,className:t(`ps-9 pe-9`,o)}),n(`div`,{className:`pointer-events-none absolute inset-y-0 start-0 flex items-center justify-center ps-3 text-text-positive-weak peer-disabled:opacity-50`,children:n(a,{size:16})}),n(`button`,{className:`absolute inset-y-0 end-0 flex h-full w-9 items-center justify-center rounded-e-md text-text-positive-weak outline-none transition-[color,box-shadow] hover:text-text-positive focus:z-10 focus-visible:border focus-visible:border-primary-strong focus-visible:ring-[3px] focus-visible:ring-primary-weak disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50`,"aria-label":`Submit search`,type:`submit`,children:n(i,{size:16,"aria-hidden":`true`})})]});export{o as SearchInput};
2
2
  //# sourceMappingURL=search-input.mjs.map
package/dist/ui/item.cjs CHANGED
@@ -1,2 +1,2 @@
1
- const e=require(`../chunk-Bmb41Sf3.cjs`),t=require(`../dist-CBsvReQV.cjs`),n=require(`../separator-D3CGKwyf.cjs`);let r=require(`@customafk/react-toolkit/utils`),i=require(`react/jsx-runtime`),a=require(`class-variance-authority`);function o({className:e,...t}){return(0,i.jsx)(`div`,{role:`list`,"data-slot":`item-group`,className:(0,r.cn)(`group/item-group flex flex-col`,e),...t})}function s({className:e,...t}){return(0,i.jsx)(n.t,{"data-slot":`item-separator`,orientation:`horizontal`,className:(0,r.cn)(`my-0`,e),...t})}const c=(0,a.cva)(`group/item flex items-center border border-transparent text-sm rounded-md transition-colors [a]:hover:bg-accent/50 [a]:transition-colors duration-100 flex-wrap outline-none focus-visible:border-primary-strong focus-visible:ring-primary-weak focus-visible:ring-[3px]`,{variants:{variant:{default:`bg-transparent`,outline:`border-border`,muted:`bg-muted-weak`},size:{default:`p-4 gap-4 `,sm:`py-3 px-4 gap-2.5`}},defaultVariants:{variant:`default`,size:`default`}});function l({className:e,variant:n=`default`,size:a=`default`,asChild:o=!1,...s}){return(0,i.jsx)(o?t.t:`div`,{"data-slot":`item`,"data-variant":n,"data-size":a,className:(0,r.cn)(c({variant:n,size:a,className:e})),...s})}const u=(0,a.cva)(`flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:self-start [&_svg]:pointer-events-none group-has-[[data-slot=item-description]]/item:translate-y-0.5`,{variants:{variant:{default:`bg-transparent`,icon:`size-8 border rounded-sm bg-muted [&_svg:not([class*='size-'])]:size-4`,image:`size-10 rounded-sm overflow-hidden [&_img]:size-full [&_img]:object-cover`}},defaultVariants:{variant:`default`}});function d({className:e,variant:t=`default`,...n}){return(0,i.jsx)(`div`,{"data-slot":`item-media`,"data-variant":t,className:(0,r.cn)(u({variant:t,className:e})),...n})}function f({className:e,...t}){return(0,i.jsx)(`div`,{"data-slot":`item-content`,className:(0,r.cn)(`flex flex-1 flex-col gap-1 [&+[data-slot=item-content]]:flex-none`,e),...t})}function p({className:e,...t}){return(0,i.jsx)(`div`,{"data-slot":`item-title`,className:(0,r.cn)(`flex w-fit items-center gap-2 text-sm leading-snug font-medium`,e),...t})}function m({className:e,...t}){return(0,i.jsx)(`p`,{"data-slot":`item-description`,className:(0,r.cn)(`text-muted-foreground line-clamp-2 text-sm leading-normal font-normal text-balance`,`[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4`,e),...t})}function h({className:e,...t}){return(0,i.jsx)(`div`,{"data-slot":`item-actions`,className:(0,r.cn)(`flex items-center gap-2`,e),...t})}function g({className:e,...t}){return(0,i.jsx)(`div`,{"data-slot":`item-header`,className:(0,r.cn)(`flex basis-full items-center justify-between gap-2`,e),...t})}function _({className:e,...t}){return(0,i.jsx)(`div`,{"data-slot":`item-footer`,className:(0,r.cn)(`flex basis-full items-center justify-between gap-2`,e),...t})}exports.Item=l,exports.ItemActions=h,exports.ItemContent=f,exports.ItemDescription=m,exports.ItemFooter=_,exports.ItemGroup=o,exports.ItemHeader=g,exports.ItemMedia=d,exports.ItemSeparator=s,exports.ItemTitle=p;
1
+ const e=require(`../chunk-Bmb41Sf3.cjs`),t=require(`../dist-CBsvReQV.cjs`),n=require(`../separator-Crr30ZHa.cjs`);let r=require(`@customafk/react-toolkit/utils`),i=require(`react/jsx-runtime`),a=require(`class-variance-authority`);function o({className:e,...t}){return(0,i.jsx)(`div`,{role:`list`,"data-slot":`item-group`,className:(0,r.cn)(`group/item-group flex flex-col`,e),...t})}function s({className:e,...t}){return(0,i.jsx)(n.t,{"data-slot":`item-separator`,orientation:`horizontal`,className:(0,r.cn)(`my-0`,e),...t})}const c=(0,a.cva)(`group/item flex items-center border border-transparent text-sm rounded-md transition-colors [a]:hover:bg-accent/50 [a]:transition-colors duration-100 flex-wrap outline-none focus-visible:border-primary-strong focus-visible:ring-primary-weak focus-visible:ring-[3px]`,{variants:{variant:{default:`bg-transparent`,outline:`border-border`,muted:`bg-muted-weak`},size:{default:`p-4 gap-4 `,sm:`py-3 px-4 gap-2.5`}},defaultVariants:{variant:`default`,size:`default`}});function l({className:e,variant:n=`default`,size:a=`default`,asChild:o=!1,...s}){return(0,i.jsx)(o?t.t:`div`,{"data-slot":`item`,"data-variant":n,"data-size":a,className:(0,r.cn)(c({variant:n,size:a,className:e})),...s})}const u=(0,a.cva)(`flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:self-start [&_svg]:pointer-events-none group-has-[[data-slot=item-description]]/item:translate-y-0.5`,{variants:{variant:{default:`bg-transparent`,icon:`size-8 border rounded-sm bg-muted [&_svg:not([class*='size-'])]:size-4`,image:`size-10 rounded-sm overflow-hidden [&_img]:size-full [&_img]:object-cover`}},defaultVariants:{variant:`default`}});function d({className:e,variant:t=`default`,...n}){return(0,i.jsx)(`div`,{"data-slot":`item-media`,"data-variant":t,className:(0,r.cn)(u({variant:t,className:e})),...n})}function f({className:e,...t}){return(0,i.jsx)(`div`,{"data-slot":`item-content`,className:(0,r.cn)(`flex flex-1 flex-col gap-1 [&+[data-slot=item-content]]:flex-none`,e),...t})}function p({className:e,...t}){return(0,i.jsx)(`div`,{"data-slot":`item-title`,className:(0,r.cn)(`flex w-fit items-center gap-2 text-sm leading-snug font-medium`,e),...t})}function m({className:e,...t}){return(0,i.jsx)(`p`,{"data-slot":`item-description`,className:(0,r.cn)(`text-muted-foreground line-clamp-2 text-sm leading-normal font-normal text-balance`,`[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4`,e),...t})}function h({className:e,...t}){return(0,i.jsx)(`div`,{"data-slot":`item-actions`,className:(0,r.cn)(`flex items-center gap-2`,e),...t})}function g({className:e,...t}){return(0,i.jsx)(`div`,{"data-slot":`item-header`,className:(0,r.cn)(`flex basis-full items-center justify-between gap-2`,e),...t})}function _({className:e,...t}){return(0,i.jsx)(`div`,{"data-slot":`item-footer`,className:(0,r.cn)(`flex basis-full items-center justify-between gap-2`,e),...t})}exports.Item=l,exports.ItemActions=h,exports.ItemContent=f,exports.ItemDescription=m,exports.ItemFooter=_,exports.ItemGroup=o,exports.ItemHeader=g,exports.ItemMedia=d,exports.ItemSeparator=s,exports.ItemTitle=p;
2
2
  //# sourceMappingURL=item.cjs.map