@customafk/lunas-ui 0.0.67 → 0.0.69

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 (266) hide show
  1. package/dist/{alert-dialog-B5dXkMIF.js → alert-dialog-BDKOU-BT.js} +1 -1
  2. package/dist/{alert-dialog-B5dXkMIF.js.map → alert-dialog-BDKOU-BT.js.map} +1 -1
  3. package/dist/{alert-dialog-D-4wxqLK.cjs → alert-dialog-CTKVGTqb.cjs} +1 -1
  4. package/dist/{alert-dialog-D-4wxqLK.cjs.map → alert-dialog-CTKVGTqb.cjs.map} +1 -1
  5. package/dist/{button-NPRxTW9Y.d.cts → button-DZYXtWzR.d.ts} +6 -6
  6. package/dist/{button-ld6DUDGr.d.ts → button-LfFi39Jg.d.cts} +5 -5
  7. package/dist/{calendar-B6F_Lppz.cjs → calendar-BaIr1lqT.cjs} +1 -1
  8. package/dist/{calendar-B6F_Lppz.cjs.map → calendar-BaIr1lqT.cjs.map} +1 -1
  9. package/dist/{calendar-CXddeN7A.js → calendar-CAERbEr4.js} +1 -1
  10. package/dist/{calendar-CXddeN7A.js.map → calendar-CAERbEr4.js.map} +1 -1
  11. package/dist/{command-CgW_wSCe.d.cts → command-B2sNWZwT.d.ts} +12 -12
  12. package/dist/{command-CyWyRcle.js → command-BNKI-kLT.js} +2 -2
  13. package/dist/{command-CyWyRcle.js.map → command-BNKI-kLT.js.map} +1 -1
  14. package/dist/{command-BL20khiI.d.ts → command-Cbs1WmSg.d.cts} +12 -12
  15. package/dist/{command-BNYekOzL.cjs → command-DEBqV5of.cjs} +2 -2
  16. package/dist/{command-BNYekOzL.cjs.map → command-DEBqV5of.cjs.map} +1 -1
  17. package/dist/data-display/empty.d.cts +2 -2
  18. package/dist/data-display/empty.d.ts +2 -2
  19. package/dist/data-display/statistic.d.cts +2 -2
  20. package/dist/data-display/statistic.d.ts +2 -2
  21. package/dist/{dialog-CTwMjrks.d.cts → dialog-B7_YVIxQ.d.ts} +12 -12
  22. package/dist/{dialog-pMHkBJ-w.js → dialog-BXL-7iaS.js} +1 -1
  23. package/dist/{dialog-pMHkBJ-w.js.map → dialog-BXL-7iaS.js.map} +1 -1
  24. package/dist/{dialog-BfrTUQrJ.d.ts → dialog-BlSmlsZc.d.cts} +12 -12
  25. package/dist/{dialog-wX27mb8E.cjs → dialog-Cefxay6y.cjs} +1 -1
  26. package/dist/{dialog-wX27mb8E.cjs.map → dialog-Cefxay6y.cjs.map} +1 -1
  27. package/dist/dialogs/confirm-dialog.cjs +1 -1
  28. package/dist/dialogs/confirm-dialog.js +1 -1
  29. package/dist/dialogs/detail-dialog/component/sidebar.cjs +1 -1
  30. package/dist/dialogs/detail-dialog/component/sidebar.d.cts +29 -29
  31. package/dist/dialogs/detail-dialog/component/sidebar.d.ts +31 -31
  32. package/dist/dialogs/detail-dialog/component/sidebar.js +1 -1
  33. package/dist/dialogs/detail-dialog/index.cjs +1 -1
  34. package/dist/dialogs/detail-dialog/index.js +1 -1
  35. package/dist/dialogs/error-dialog.cjs +1 -1
  36. package/dist/dialogs/error-dialog.js +1 -1
  37. package/dist/dialogs/form-dialog.cjs +1 -1
  38. package/dist/dialogs/form-dialog.d.cts +2 -2
  39. package/dist/dialogs/form-dialog.d.ts +2 -2
  40. package/dist/dialogs/form-dialog.js +1 -1
  41. package/dist/dialogs/loading-dialog.cjs +1 -1
  42. package/dist/dialogs/loading-dialog.js +1 -1
  43. package/dist/{drawer-DnhgwetT.js → drawer-D6qggBnW.js} +1 -1
  44. package/dist/{drawer-DnhgwetT.js.map → drawer-D6qggBnW.js.map} +1 -1
  45. package/dist/{drawer-sRfKhXA3.cjs → drawer-oeYvUxv8.cjs} +1 -1
  46. package/dist/{drawer-sRfKhXA3.cjs.map → drawer-oeYvUxv8.cjs.map} +1 -1
  47. package/dist/{error-dialog-DGg0x5xF.cjs → error-dialog-1xq8gXX_.cjs} +2 -2
  48. package/dist/{error-dialog-DGg0x5xF.cjs.map → error-dialog-1xq8gXX_.cjs.map} +1 -1
  49. package/dist/{error-dialog-CphiTB4y.js → error-dialog-m_6k921_.js} +2 -2
  50. package/dist/{error-dialog-CphiTB4y.js.map → error-dialog-m_6k921_.js.map} +1 -1
  51. package/dist/{form-wrapper-Deo8gKv5.js → form-wrapper-BezrUArd.js} +2 -2
  52. package/dist/{form-wrapper-Deo8gKv5.js.map → form-wrapper-BezrUArd.js.map} +1 -1
  53. package/dist/{form-wrapper-C3pU1F5r.cjs → form-wrapper-CIH-4QPY.cjs} +2 -2
  54. package/dist/{form-wrapper-C3pU1F5r.cjs.map → form-wrapper-CIH-4QPY.cjs.map} +1 -1
  55. package/dist/forms/combobox-field.cjs +1 -1
  56. package/dist/forms/combobox-field.d.cts +2 -2
  57. package/dist/forms/combobox-field.d.ts +2 -2
  58. package/dist/forms/combobox-field.js +1 -1
  59. package/dist/forms/date-field.cjs +1 -1
  60. package/dist/forms/date-field.d.cts +2 -2
  61. package/dist/forms/date-field.d.ts +2 -2
  62. package/dist/forms/date-field.js +1 -1
  63. package/dist/forms/form-wrapper.cjs +1 -1
  64. package/dist/forms/form-wrapper.d.ts +2 -2
  65. package/dist/forms/form-wrapper.js +1 -1
  66. package/dist/forms/multi-select-field.cjs +1 -1
  67. package/dist/forms/multi-select-field.cjs.map +1 -1
  68. package/dist/forms/multi-select-field.d.cts +2 -2
  69. package/dist/forms/multi-select-field.d.ts +2 -2
  70. package/dist/forms/multi-select-field.js +1 -1
  71. package/dist/forms/number-field.cjs +1 -1
  72. package/dist/forms/number-field.d.cts +2 -2
  73. package/dist/forms/number-field.d.ts +2 -2
  74. package/dist/forms/number-field.js +1 -1
  75. package/dist/forms/password-field.cjs +1 -1
  76. package/dist/forms/password-field.d.cts +2 -2
  77. package/dist/forms/password-field.d.ts +2 -2
  78. package/dist/forms/password-field.js +1 -1
  79. package/dist/forms/select-field.cjs +1 -1
  80. package/dist/forms/select-field.d.cts +2 -2
  81. package/dist/forms/select-field.d.ts +2 -2
  82. package/dist/forms/select-field.js +1 -1
  83. package/dist/forms/switch-field.cjs +1 -1
  84. package/dist/forms/switch-field.d.cts +2 -2
  85. package/dist/forms/switch-field.d.ts +2 -2
  86. package/dist/forms/switch-field.js +1 -1
  87. package/dist/forms/text-field.cjs +1 -1
  88. package/dist/forms/text-field.d.cts +2 -2
  89. package/dist/forms/text-field.js +1 -1
  90. package/dist/forms/textarea-field.cjs +1 -1
  91. package/dist/forms/textarea-field.d.cts +2 -2
  92. package/dist/forms/textarea-field.js +1 -1
  93. package/dist/{input-Dx2DxNMy.d.cts → input-BFZu6Cb8.d.cts} +3 -3
  94. package/dist/{input-BUYJ4_aj.js → input-BFZuwsER.js} +1 -1
  95. package/dist/{input-BUYJ4_aj.js.map → input-BFZuwsER.js.map} +1 -1
  96. package/dist/{input-DgtTVBtN.cjs → input-ERPHY3v4.cjs} +1 -1
  97. package/dist/{input-DgtTVBtN.cjs.map → input-ERPHY3v4.cjs.map} +1 -1
  98. package/dist/{input-CWzkJbaD.d.ts → input-d_SOv6FU.d.ts} +3 -3
  99. package/dist/layouts/app-layout/index.d.cts +4 -4
  100. package/dist/layouts/app-layout/index.d.ts +29 -29
  101. package/dist/layouts/flex.d.cts +4 -4
  102. package/dist/layouts/flex.d.ts +4 -4
  103. package/dist/layouts/service-layout/index.cjs +1 -1
  104. package/dist/layouts/service-layout/index.cjs.map +1 -1
  105. package/dist/layouts/service-layout/index.d.cts +4 -4
  106. package/dist/layouts/service-layout/index.d.ts +16 -16
  107. package/dist/layouts/service-layout/index.js +1 -1
  108. package/dist/layouts/service-layout/index.js.map +1 -1
  109. package/dist/{multi-select-DRKqFg1M.cjs → multi-select-Bhl2uJgf.cjs} +2 -2
  110. package/dist/{multi-select-DRKqFg1M.cjs.map → multi-select-Bhl2uJgf.cjs.map} +1 -1
  111. package/dist/{multi-select-DyhAPckx.js → multi-select-DLWPfDCM.js} +2 -2
  112. package/dist/{multi-select-DyhAPckx.js.map → multi-select-DLWPfDCM.js.map} +1 -1
  113. package/dist/{popover-CxOK3oy2.js → popover-BjCVseR5.js} +1 -1
  114. package/dist/{popover-CxOK3oy2.js.map → popover-BjCVseR5.js.map} +1 -1
  115. package/dist/{popover-Bi7GLJT5.cjs → popover-D7UZ966w.cjs} +1 -1
  116. package/dist/{popover-Bi7GLJT5.cjs.map → popover-D7UZ966w.cjs.map} +1 -1
  117. package/dist/{search-input-DnYrPBeT.js → search-input-C_7D7Nqj.js} +2 -2
  118. package/dist/{search-input-DnYrPBeT.js.map → search-input-C_7D7Nqj.js.map} +1 -1
  119. package/dist/{search-input-BkhVqB3R.cjs → search-input-hIVKLXXb.cjs} +2 -2
  120. package/dist/{search-input-BkhVqB3R.cjs.map → search-input-hIVKLXXb.cjs.map} +1 -1
  121. package/dist/{select-Cmq5a3Wg.js → select-CijI0HX0.js} +1 -1
  122. package/dist/{select-Cmq5a3Wg.js.map → select-CijI0HX0.js.map} +1 -1
  123. package/dist/{select-DAE3Xg7g.cjs → select-oxr4KoHx.cjs} +1 -1
  124. package/dist/{select-DAE3Xg7g.cjs.map → select-oxr4KoHx.cjs.map} +1 -1
  125. package/dist/{separator-ZGvcRkrl.d.cts → separator-B79v6wKg.d.cts} +3 -3
  126. package/dist/{separator-9s0ppov1.d.ts → separator-CJZGYT24.d.ts} +3 -3
  127. package/dist/{sidebar-CROF88rz.cjs → sidebar-BxGyCuTJ.cjs} +2 -2
  128. package/dist/{sidebar-CROF88rz.cjs.map → sidebar-BxGyCuTJ.cjs.map} +1 -1
  129. package/dist/{sidebar-CrStgrmq.js → sidebar-CMWETVDr.js} +2 -2
  130. package/dist/{sidebar-CrStgrmq.js.map → sidebar-CMWETVDr.js.map} +1 -1
  131. package/dist/{switch-BnHSwQ5T.cjs → switch-BPSKvrTw.cjs} +1 -1
  132. package/dist/{switch-BnHSwQ5T.cjs.map → switch-BPSKvrTw.cjs.map} +1 -1
  133. package/dist/{switch-iwm2-R_e.js → switch-Crju8DJO.js} +1 -1
  134. package/dist/{switch-iwm2-R_e.js.map → switch-Crju8DJO.js.map} +1 -1
  135. package/dist/table/index.cjs +1 -1
  136. package/dist/table/index.d.cts +2 -2
  137. package/dist/table/index.d.ts +2 -2
  138. package/dist/table/index.js +1 -1
  139. package/dist/{textarea-DbNqKCAi.js → textarea-BCZiUxv7.js} +1 -1
  140. package/dist/{textarea-DbNqKCAi.js.map → textarea-BCZiUxv7.js.map} +1 -1
  141. package/dist/{textarea-DK_bNV0u.cjs → textarea-BtACo9UF.cjs} +1 -1
  142. package/dist/{textarea-DK_bNV0u.cjs.map → textarea-BtACo9UF.cjs.map} +1 -1
  143. package/dist/{toggle-DpUG0EqP.d.cts → toggle-B3cvw5ny.d.ts} +6 -6
  144. package/dist/{toggle-DIRRdVOx.d.ts → toggle-Dq091q_s.d.cts} +5 -5
  145. package/dist/{tooltip-ChyvXWdm.d.ts → tooltip-B1Lj1ujY.d.ts} +6 -6
  146. package/dist/{tooltip-BZDwRKZ6.d.cts → tooltip-DijjzZk1.d.cts} +6 -6
  147. package/dist/typography/paragraph.d.cts +2 -2
  148. package/dist/typography/paragraph.d.ts +2 -2
  149. package/dist/typography/title.d.cts +2 -2
  150. package/dist/typography/title.d.ts +2 -2
  151. package/dist/ui/alert-dialog.cjs +1 -1
  152. package/dist/ui/alert-dialog.d.cts +12 -12
  153. package/dist/ui/alert-dialog.d.ts +12 -12
  154. package/dist/ui/alert-dialog.js +1 -1
  155. package/dist/ui/alert.d.cts +4 -4
  156. package/dist/ui/alert.d.ts +4 -4
  157. package/dist/ui/aspect-ratio.d.cts +2 -2
  158. package/dist/ui/aspect-ratio.d.ts +2 -2
  159. package/dist/ui/avatar.d.cts +4 -4
  160. package/dist/ui/avatar.d.ts +4 -4
  161. package/dist/ui/badge.d.cts +2 -2
  162. package/dist/ui/badge.d.ts +4 -4
  163. package/dist/ui/breadcrumb.d.cts +8 -8
  164. package/dist/ui/breadcrumb.d.ts +8 -8
  165. package/dist/ui/button.d.cts +1 -1
  166. package/dist/ui/button.d.ts +1 -1
  167. package/dist/ui/calendar.cjs +1 -1
  168. package/dist/ui/calendar.d.cts +4 -4
  169. package/dist/ui/calendar.d.ts +4 -4
  170. package/dist/ui/calendar.js +1 -1
  171. package/dist/ui/card.d.cts +8 -8
  172. package/dist/ui/card.d.ts +8 -8
  173. package/dist/ui/carousel.d.cts +7 -7
  174. package/dist/ui/carousel.d.ts +7 -7
  175. package/dist/ui/collapsible.d.cts +4 -4
  176. package/dist/ui/collapsible.d.ts +4 -4
  177. package/dist/ui/command.cjs +1 -1
  178. package/dist/ui/command.d.cts +2 -2
  179. package/dist/ui/command.d.ts +2 -2
  180. package/dist/ui/command.js +1 -1
  181. package/dist/ui/context-menu.d.cts +16 -16
  182. package/dist/ui/context-menu.d.ts +16 -16
  183. package/dist/ui/dialog.cjs +1 -1
  184. package/dist/ui/dialog.d.cts +1 -1
  185. package/dist/ui/dialog.d.ts +1 -1
  186. package/dist/ui/dialog.js +1 -1
  187. package/dist/ui/dropdown-menu.d.cts +16 -16
  188. package/dist/ui/dropdown-menu.d.ts +16 -16
  189. package/dist/ui/file-uploader.d.cts +2 -2
  190. package/dist/ui/file-uploader.d.ts +2 -2
  191. package/dist/ui/form.d.cts +7 -7
  192. package/dist/ui/form.d.ts +7 -7
  193. package/dist/ui/hover-card.d.cts +4 -4
  194. package/dist/ui/hover-card.d.ts +4 -4
  195. package/dist/ui/input-otp.d.cts +5 -5
  196. package/dist/ui/input-otp.d.ts +5 -5
  197. package/dist/ui/input.cjs +1 -1
  198. package/dist/ui/input.d.cts +1 -1
  199. package/dist/ui/input.d.ts +1 -1
  200. package/dist/ui/input.js +1 -1
  201. package/dist/ui/inputs/search-input.cjs +1 -1
  202. package/dist/ui/inputs/search-input.d.cts +3 -3
  203. package/dist/ui/inputs/search-input.d.ts +3 -3
  204. package/dist/ui/inputs/search-input.js +1 -1
  205. package/dist/ui/label.d.cts +2 -2
  206. package/dist/ui/label.d.ts +2 -2
  207. package/dist/ui/menubar.d.cts +17 -17
  208. package/dist/ui/menubar.d.ts +17 -17
  209. package/dist/ui/multi-select.cjs +1 -1
  210. package/dist/ui/multi-select.d.cts +2 -2
  211. package/dist/ui/multi-select.d.ts +2 -2
  212. package/dist/ui/multi-select.js +1 -1
  213. package/dist/ui/navigation-menu.d.cts +9 -9
  214. package/dist/ui/navigation-menu.d.ts +11 -11
  215. package/dist/ui/pagination.d.cts +9 -9
  216. package/dist/ui/pagination.d.ts +9 -9
  217. package/dist/ui/popover.cjs +1 -1
  218. package/dist/ui/popover.d.cts +5 -5
  219. package/dist/ui/popover.d.ts +5 -5
  220. package/dist/ui/popover.js +1 -1
  221. package/dist/ui/progress.d.cts +2 -2
  222. package/dist/ui/progress.d.ts +2 -2
  223. package/dist/ui/radio-group.d.cts +3 -3
  224. package/dist/ui/radio-group.d.ts +3 -3
  225. package/dist/ui/resizable.d.cts +4 -4
  226. package/dist/ui/resizable.d.ts +4 -4
  227. package/dist/ui/scroll-area.d.cts +3 -3
  228. package/dist/ui/scroll-area.d.ts +3 -3
  229. package/dist/ui/select.cjs +1 -1
  230. package/dist/ui/select.d.cts +11 -11
  231. package/dist/ui/select.d.ts +11 -11
  232. package/dist/ui/select.js +1 -1
  233. package/dist/ui/separator.d.cts +1 -1
  234. package/dist/ui/separator.d.ts +1 -1
  235. package/dist/ui/sheet.d.cts +9 -9
  236. package/dist/ui/sheet.d.ts +9 -9
  237. package/dist/ui/sidebar.cjs +1 -1
  238. package/dist/ui/sidebar.cjs.map +1 -1
  239. package/dist/ui/sidebar.d.cts +29 -29
  240. package/dist/ui/sidebar.d.ts +29 -29
  241. package/dist/ui/sidebar.js +1 -1
  242. package/dist/ui/sidebar.js.map +1 -1
  243. package/dist/ui/skeleton.d.cts +2 -2
  244. package/dist/ui/skeleton.d.ts +2 -2
  245. package/dist/ui/slider.d.cts +2 -2
  246. package/dist/ui/slider.d.ts +2 -2
  247. package/dist/ui/sonner.d.cts +2 -2
  248. package/dist/ui/sonner.d.ts +2 -2
  249. package/dist/ui/switch.cjs +1 -1
  250. package/dist/ui/switch.d.cts +2 -2
  251. package/dist/ui/switch.d.ts +2 -2
  252. package/dist/ui/switch.js +1 -1
  253. package/dist/ui/table.d.cts +9 -9
  254. package/dist/ui/table.d.ts +9 -9
  255. package/dist/ui/tabs.d.cts +5 -5
  256. package/dist/ui/tabs.d.ts +5 -5
  257. package/dist/ui/textarea.cjs +1 -1
  258. package/dist/ui/textarea.d.ts +2 -2
  259. package/dist/ui/textarea.js +1 -1
  260. package/dist/ui/toggle-group.d.cts +4 -4
  261. package/dist/ui/toggle-group.d.ts +4 -4
  262. package/dist/ui/toggle.d.cts +1 -1
  263. package/dist/ui/toggle.d.ts +1 -1
  264. package/dist/ui/tooltip.d.cts +1 -1
  265. package/dist/ui/tooltip.d.ts +1 -1
  266. package/package.json +2 -2
@@ -1,2 +1,2 @@
1
- const e=require(`../chunk-CUT6urMc.cjs`);require(`../label-BZqk7MPJ.cjs`);const t=require(`../form-CtpHZKmh.cjs`),n=require(`../input-DgtTVBtN.cjs`),r=e.__toESM(require(`@customafk/react-toolkit/utils`)),i=e.__toESM(require(`react/jsx-runtime`)),a=e.__toESM(require(`react`)),o=e.__toESM(require(`react-hook-form`)),s=e=>e?/^-?\d*\.?\d*$/:/^\d*\.?\d*$/,c=e=>Number(e).toLocaleString(),l=({disabled:e=!1,readonly:t=!1,allowNegative:o=!1,numberAfterDecimalPoint:l=2,roundingRule:u=`none`,value:d=``,unitText:f,decimal:p,placeholder:m,precision:h,onChange:g,onValueChange:_,onBlur:v,...y})=>{let b=(0,a.useRef)(null),x=(0,a.useRef)(null),[S,C]=(0,a.useState)(d.toString()),w=p?.[1]??l,T=p&&p[0]-p[1],E=(0,a.useMemo)(()=>s(o),[o]),D=(0,a.useCallback)(e=>{if(!w&&e.includes(`.`))return!1;let t=e.split(`.`)[1];return!t||t.length<=w},[w]),O=(0,a.useCallback)(e=>{if(!p||e===`-`)return!0;let[t,n=``]=e.split(`.`);return n.length<=p[1]&&(t.startsWith(`-`)?t.length-1:t.length)<=T},[p,T]),k=(0,a.useCallback)((e,t)=>{if(u===`none`)return e;let n=Math.pow(10,t),r=e*n;switch(u){case`up`:return Math.ceil(r)/n;case`down`:return Math.floor(r)/n;case`nearest`:return r%1<.1?Math.floor(r)/n:r%1>=.59?Math.ceil(r)/n:(Math.floor(r)+.5)/n;default:return e}},[u]),A=(0,a.useCallback)(e=>!l&&e.includes(`.`)||e.split(`.`)[1]?.length>l,[l]),j=(0,a.useCallback)(e=>{if(e===`0`)return`0`;if(!Number(e))return``;let t=parseFloat(e),n=Math.min(w-1,h||0),r=k(t,n).toString(),[i,a=``]=r.split(`.`),o=c(i);return a?`${o}.${a}`:o},[k,w,h]),M=(0,a.useCallback)(e=>{if(!p||e===`-`)return!0;let[t,n=``]=e.split(`.`),r=t.startsWith(`-`)?t.length-1:t.length,i=p[0]-p[1];return n.length<=p[1]&&r<=i},[p]),N=(0,a.useCallback)(e=>{g?.(e);let{value:t}=e.target;if(!t){_?.(void 0),C(``);return}let n=t===`0`,r=t===`-`&&o;if(n||r){_?.(0),C(t);return}let i=E.test(t)&&O(t)&&(p||D(t));if(!i)return;let a=parseFloat(t)||0;_?.(a),C(t)},[o,p,D,O,g,_,E]),P=(0,a.useCallback)(()=>{t||C(e=>e.replace(/,/g,``))},[t]),F=(0,a.useCallback)(()=>{t||(v?.(),C(e=>j(e)))},[t,v,j]);return(0,a.useEffect)(()=>{let e=document.activeElement===x.current;if(!d||!E.test(d.toString())||!M(d.toString())||!p&&A(d.toString())){C(``);return}C(t=>t===`-`?`-`:t?e?d.toString():j(d.toString()):``)},[p,j,d,A,M,E]),(0,a.useEffect)(()=>{if(!b.current||!x.current||!f)return;let e=b.current.offsetWidth;x.current.style.setProperty(`padding-right`,`${(e+10)/16}rem`)},[e,f]),(0,i.jsxs)(`div`,{className:`relative`,children:[(0,i.jsx)(n.Input,{...y,ref:x,value:S||(t?`0`:``),placeholder:m,disabled:e,readOnly:t,className:(0,r.cn)(`font-number text-end`,t&&`bg-muted text-muted-foreground`),onChange:N,onFocus:P,onBlur:F}),f&&(0,i.jsx)(`span`,{ref:b,className:`text-muted-foreground pointer-events-none absolute top-1/2 right-2 -translate-y-1/2 text-sm`,children:f})]})},u=({name:e,label:n=`Number Field`,placeholder:r=`0`,isShowErrorMsg:a=!1,isShowCount:s=!1,unitText:c=``,description:u=``,onValueChange:d})=>{let f=(0,o.useWatch)({name:e});return(0,i.jsx)(t.FormField,{name:e,render:({field:{onChange:e,...o}})=>(0,i.jsxs)(t.FormItem,{className:`w-full gap-0`,children:[(0,i.jsx)(t.FormLabel,{children:n}),(0,i.jsx)(t.FormControl,{children:(0,i.jsx)(l,{...o,placeholder:r,className:`w-full`,unitText:c,onValueChange:t=>{e(t),d?.(t)}})}),s&&(0,i.jsxs)(`div`,{className:`text-muted-foreground text-end text-xs`,children:[f?.length??0,` characters`]}),!!u&&(0,i.jsx)(t.FormDescription,{children:u}),a&&(0,i.jsx)(t.FormMessage,{})]})})};exports.NumberField=u;
1
+ const e=require(`../chunk-CUT6urMc.cjs`);require(`../label-BZqk7MPJ.cjs`);const t=require(`../form-CtpHZKmh.cjs`),n=require(`../input-ERPHY3v4.cjs`),r=e.__toESM(require(`@customafk/react-toolkit/utils`)),i=e.__toESM(require(`react/jsx-runtime`)),a=e.__toESM(require(`react`)),o=e.__toESM(require(`react-hook-form`)),s=e=>e?/^-?\d*\.?\d*$/:/^\d*\.?\d*$/,c=e=>Number(e).toLocaleString(),l=({disabled:e=!1,readonly:t=!1,allowNegative:o=!1,numberAfterDecimalPoint:l=2,roundingRule:u=`none`,value:d=``,unitText:f,decimal:p,placeholder:m,precision:h,onChange:g,onValueChange:_,onBlur:v,...y})=>{let b=(0,a.useRef)(null),x=(0,a.useRef)(null),[S,C]=(0,a.useState)(d.toString()),w=p?.[1]??l,T=p&&p[0]-p[1],E=(0,a.useMemo)(()=>s(o),[o]),D=(0,a.useCallback)(e=>{if(!w&&e.includes(`.`))return!1;let t=e.split(`.`)[1];return!t||t.length<=w},[w]),O=(0,a.useCallback)(e=>{if(!p||e===`-`)return!0;let[t,n=``]=e.split(`.`);return n.length<=p[1]&&(t.startsWith(`-`)?t.length-1:t.length)<=T},[p,T]),k=(0,a.useCallback)((e,t)=>{if(u===`none`)return e;let n=Math.pow(10,t),r=e*n;switch(u){case`up`:return Math.ceil(r)/n;case`down`:return Math.floor(r)/n;case`nearest`:return r%1<.1?Math.floor(r)/n:r%1>=.59?Math.ceil(r)/n:(Math.floor(r)+.5)/n;default:return e}},[u]),A=(0,a.useCallback)(e=>!l&&e.includes(`.`)||e.split(`.`)[1]?.length>l,[l]),j=(0,a.useCallback)(e=>{if(e===`0`)return`0`;if(!Number(e))return``;let t=parseFloat(e),n=Math.min(w-1,h||0),r=k(t,n).toString(),[i,a=``]=r.split(`.`),o=c(i);return a?`${o}.${a}`:o},[k,w,h]),M=(0,a.useCallback)(e=>{if(!p||e===`-`)return!0;let[t,n=``]=e.split(`.`),r=t.startsWith(`-`)?t.length-1:t.length,i=p[0]-p[1];return n.length<=p[1]&&r<=i},[p]),N=(0,a.useCallback)(e=>{g?.(e);let{value:t}=e.target;if(!t){_?.(void 0),C(``);return}let n=t===`0`,r=t===`-`&&o;if(n||r){_?.(0),C(t);return}let i=E.test(t)&&O(t)&&(p||D(t));if(!i)return;let a=parseFloat(t)||0;_?.(a),C(t)},[o,p,D,O,g,_,E]),P=(0,a.useCallback)(()=>{t||C(e=>e.replace(/,/g,``))},[t]),F=(0,a.useCallback)(()=>{t||(v?.(),C(e=>j(e)))},[t,v,j]);return(0,a.useEffect)(()=>{let e=document.activeElement===x.current;if(!d||!E.test(d.toString())||!M(d.toString())||!p&&A(d.toString())){C(``);return}C(t=>t===`-`?`-`:t?e?d.toString():j(d.toString()):``)},[p,j,d,A,M,E]),(0,a.useEffect)(()=>{if(!b.current||!x.current||!f)return;let e=b.current.offsetWidth;x.current.style.setProperty(`padding-right`,`${(e+10)/16}rem`)},[e,f]),(0,i.jsxs)(`div`,{className:`relative`,children:[(0,i.jsx)(n.Input,{...y,ref:x,value:S||(t?`0`:``),placeholder:m,disabled:e,readOnly:t,className:(0,r.cn)(`font-number text-end`,t&&`bg-muted text-muted-foreground`),onChange:N,onFocus:P,onBlur:F}),f&&(0,i.jsx)(`span`,{ref:b,className:`text-muted-foreground pointer-events-none absolute top-1/2 right-2 -translate-y-1/2 text-sm`,children:f})]})},u=({name:e,label:n=`Number Field`,placeholder:r=`0`,isShowErrorMsg:a=!1,isShowCount:s=!1,unitText:c=``,description:u=``,onValueChange:d})=>{let f=(0,o.useWatch)({name:e});return(0,i.jsx)(t.FormField,{name:e,render:({field:{onChange:e,...o}})=>(0,i.jsxs)(t.FormItem,{className:`w-full gap-0`,children:[(0,i.jsx)(t.FormLabel,{children:n}),(0,i.jsx)(t.FormControl,{children:(0,i.jsx)(l,{...o,placeholder:r,className:`w-full`,unitText:c,onValueChange:t=>{e(t),d?.(t)}})}),s&&(0,i.jsxs)(`div`,{className:`text-muted-foreground text-end text-xs`,children:[f?.length??0,` characters`]}),!!u&&(0,i.jsx)(t.FormDescription,{children:u}),a&&(0,i.jsx)(t.FormMessage,{})]})})};exports.NumberField=u;
2
2
  //# sourceMappingURL=number-field.cjs.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime6 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime1 from "react/jsx-runtime";
2
2
  import { FieldPath, FieldValues } from "react-hook-form";
3
3
 
4
4
  //#region packages/components/forms/number-field.d.ts
@@ -22,7 +22,7 @@ declare const NumberField: <TFieldValues extends FieldValues = FieldValues>({
22
22
  unitText,
23
23
  description,
24
24
  onValueChange
25
- }: Props<TFieldValues>) => react_jsx_runtime6.JSX.Element;
25
+ }: Props<TFieldValues>) => react_jsx_runtime1.JSX.Element;
26
26
  //#endregion
27
27
  export { NumberField };
28
28
  //# sourceMappingURL=number-field.d.cts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime7 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime3 from "react/jsx-runtime";
2
2
  import { FieldPath, FieldValues } from "react-hook-form";
3
3
 
4
4
  //#region packages/components/forms/number-field.d.ts
@@ -22,7 +22,7 @@ declare const NumberField: <TFieldValues extends FieldValues = FieldValues>({
22
22
  unitText,
23
23
  description,
24
24
  onValueChange
25
- }: Props<TFieldValues>) => react_jsx_runtime7.JSX.Element;
25
+ }: Props<TFieldValues>) => react_jsx_runtime3.JSX.Element;
26
26
  //#endregion
27
27
  export { NumberField };
28
28
  //# sourceMappingURL=number-field.d.ts.map
@@ -1,2 +1,2 @@
1
- import"../label-HVpeECNr.js";import{FormControl as e,FormDescription as t,FormField as n,FormItem as r,FormLabel as i,FormMessage as a}from"../form-B-KLKj5u.js";import{Input as o}from"../input-BUYJ4_aj.js";import{cn as s}from"@customafk/react-toolkit/utils";import{jsx as c,jsxs as l}from"react/jsx-runtime";import{useCallback as u,useEffect as d,useMemo as f,useRef as p,useState as m}from"react";import{useWatch as h}from"react-hook-form";const g=e=>e?/^-?\d*\.?\d*$/:/^\d*\.?\d*$/,_=e=>Number(e).toLocaleString(),v=({disabled:e=!1,readonly:t=!1,allowNegative:n=!1,numberAfterDecimalPoint:r=2,roundingRule:i=`none`,value:a=``,unitText:h,decimal:v,placeholder:y,precision:b,onChange:x,onValueChange:S,onBlur:C,...w})=>{let T=p(null),E=p(null),[D,O]=m(a.toString()),k=v?.[1]??r,A=v&&v[0]-v[1],j=f(()=>g(n),[n]),M=u(e=>{if(!k&&e.includes(`.`))return!1;let t=e.split(`.`)[1];return!t||t.length<=k},[k]),N=u(e=>{if(!v||e===`-`)return!0;let[t,n=``]=e.split(`.`);return n.length<=v[1]&&(t.startsWith(`-`)?t.length-1:t.length)<=A},[v,A]),P=u((e,t)=>{if(i===`none`)return e;let n=Math.pow(10,t),r=e*n;switch(i){case`up`:return Math.ceil(r)/n;case`down`:return Math.floor(r)/n;case`nearest`:return r%1<.1?Math.floor(r)/n:r%1>=.59?Math.ceil(r)/n:(Math.floor(r)+.5)/n;default:return e}},[i]),F=u(e=>!r&&e.includes(`.`)||e.split(`.`)[1]?.length>r,[r]),I=u(e=>{if(e===`0`)return`0`;if(!Number(e))return``;let t=parseFloat(e),n=Math.min(k-1,b||0),r=P(t,n).toString(),[i,a=``]=r.split(`.`),o=_(i);return a?`${o}.${a}`:o},[P,k,b]),L=u(e=>{if(!v||e===`-`)return!0;let[t,n=``]=e.split(`.`),r=t.startsWith(`-`)?t.length-1:t.length,i=v[0]-v[1];return n.length<=v[1]&&r<=i},[v]),R=u(e=>{x?.(e);let{value:t}=e.target;if(!t){S?.(void 0),O(``);return}let r=t===`0`,i=t===`-`&&n;if(r||i){S?.(0),O(t);return}let a=j.test(t)&&N(t)&&(v||M(t));if(!a)return;let o=parseFloat(t)||0;S?.(o),O(t)},[n,v,M,N,x,S,j]),z=u(()=>{t||O(e=>e.replace(/,/g,``))},[t]),B=u(()=>{t||(C?.(),O(e=>I(e)))},[t,C,I]);return d(()=>{let e=document.activeElement===E.current;if(!a||!j.test(a.toString())||!L(a.toString())||!v&&F(a.toString())){O(``);return}O(t=>t===`-`?`-`:t?e?a.toString():I(a.toString()):``)},[v,I,a,F,L,j]),d(()=>{if(!T.current||!E.current||!h)return;let e=T.current.offsetWidth;E.current.style.setProperty(`padding-right`,`${(e+10)/16}rem`)},[e,h]),l(`div`,{className:`relative`,children:[c(o,{...w,ref:E,value:D||(t?`0`:``),placeholder:y,disabled:e,readOnly:t,className:s(`font-number text-end`,t&&`bg-muted text-muted-foreground`),onChange:R,onFocus:z,onBlur:B}),h&&c(`span`,{ref:T,className:`text-muted-foreground pointer-events-none absolute top-1/2 right-2 -translate-y-1/2 text-sm`,children:h})]})},y=({name:o,label:s=`Number Field`,placeholder:u=`0`,isShowErrorMsg:d=!1,isShowCount:f=!1,unitText:p=``,description:m=``,onValueChange:g})=>{let _=h({name:o});return c(n,{name:o,render:({field:{onChange:n,...o}})=>l(r,{className:`w-full gap-0`,children:[c(i,{children:s}),c(e,{children:c(v,{...o,placeholder:u,className:`w-full`,unitText:p,onValueChange:e=>{n(e),g?.(e)}})}),f&&l(`div`,{className:`text-muted-foreground text-end text-xs`,children:[_?.length??0,` characters`]}),!!m&&c(t,{children:m}),d&&c(a,{})]})})};export{y as NumberField};
1
+ import"../label-HVpeECNr.js";import{FormControl as e,FormDescription as t,FormField as n,FormItem as r,FormLabel as i,FormMessage as a}from"../form-B-KLKj5u.js";import{Input as o}from"../input-BFZuwsER.js";import{cn as s}from"@customafk/react-toolkit/utils";import{jsx as c,jsxs as l}from"react/jsx-runtime";import{useCallback as u,useEffect as d,useMemo as f,useRef as p,useState as m}from"react";import{useWatch as h}from"react-hook-form";const g=e=>e?/^-?\d*\.?\d*$/:/^\d*\.?\d*$/,_=e=>Number(e).toLocaleString(),v=({disabled:e=!1,readonly:t=!1,allowNegative:n=!1,numberAfterDecimalPoint:r=2,roundingRule:i=`none`,value:a=``,unitText:h,decimal:v,placeholder:y,precision:b,onChange:x,onValueChange:S,onBlur:C,...w})=>{let T=p(null),E=p(null),[D,O]=m(a.toString()),k=v?.[1]??r,A=v&&v[0]-v[1],j=f(()=>g(n),[n]),M=u(e=>{if(!k&&e.includes(`.`))return!1;let t=e.split(`.`)[1];return!t||t.length<=k},[k]),N=u(e=>{if(!v||e===`-`)return!0;let[t,n=``]=e.split(`.`);return n.length<=v[1]&&(t.startsWith(`-`)?t.length-1:t.length)<=A},[v,A]),P=u((e,t)=>{if(i===`none`)return e;let n=Math.pow(10,t),r=e*n;switch(i){case`up`:return Math.ceil(r)/n;case`down`:return Math.floor(r)/n;case`nearest`:return r%1<.1?Math.floor(r)/n:r%1>=.59?Math.ceil(r)/n:(Math.floor(r)+.5)/n;default:return e}},[i]),F=u(e=>!r&&e.includes(`.`)||e.split(`.`)[1]?.length>r,[r]),I=u(e=>{if(e===`0`)return`0`;if(!Number(e))return``;let t=parseFloat(e),n=Math.min(k-1,b||0),r=P(t,n).toString(),[i,a=``]=r.split(`.`),o=_(i);return a?`${o}.${a}`:o},[P,k,b]),L=u(e=>{if(!v||e===`-`)return!0;let[t,n=``]=e.split(`.`),r=t.startsWith(`-`)?t.length-1:t.length,i=v[0]-v[1];return n.length<=v[1]&&r<=i},[v]),R=u(e=>{x?.(e);let{value:t}=e.target;if(!t){S?.(void 0),O(``);return}let r=t===`0`,i=t===`-`&&n;if(r||i){S?.(0),O(t);return}let a=j.test(t)&&N(t)&&(v||M(t));if(!a)return;let o=parseFloat(t)||0;S?.(o),O(t)},[n,v,M,N,x,S,j]),z=u(()=>{t||O(e=>e.replace(/,/g,``))},[t]),B=u(()=>{t||(C?.(),O(e=>I(e)))},[t,C,I]);return d(()=>{let e=document.activeElement===E.current;if(!a||!j.test(a.toString())||!L(a.toString())||!v&&F(a.toString())){O(``);return}O(t=>t===`-`?`-`:t?e?a.toString():I(a.toString()):``)},[v,I,a,F,L,j]),d(()=>{if(!T.current||!E.current||!h)return;let e=T.current.offsetWidth;E.current.style.setProperty(`padding-right`,`${(e+10)/16}rem`)},[e,h]),l(`div`,{className:`relative`,children:[c(o,{...w,ref:E,value:D||(t?`0`:``),placeholder:y,disabled:e,readOnly:t,className:s(`font-number text-end`,t&&`bg-muted text-muted-foreground`),onChange:R,onFocus:z,onBlur:B}),h&&c(`span`,{ref:T,className:`text-muted-foreground pointer-events-none absolute top-1/2 right-2 -translate-y-1/2 text-sm`,children:h})]})},y=({name:o,label:s=`Number Field`,placeholder:u=`0`,isShowErrorMsg:d=!1,isShowCount:f=!1,unitText:p=``,description:m=``,onValueChange:g})=>{let _=h({name:o});return c(n,{name:o,render:({field:{onChange:n,...o}})=>l(r,{className:`w-full gap-0`,children:[c(i,{children:s}),c(e,{children:c(v,{...o,placeholder:u,className:`w-full`,unitText:p,onValueChange:e=>{n(e),g?.(e)}})}),f&&l(`div`,{className:`text-muted-foreground text-end text-xs`,children:[_?.length??0,` characters`]}),!!m&&c(t,{children:m}),d&&c(a,{})]})})};export{y as NumberField};
2
2
  //# sourceMappingURL=number-field.js.map
@@ -1,2 +1,2 @@
1
- "use client";const e=require(`../chunk-CUT6urMc.cjs`);require(`../label-BZqk7MPJ.cjs`);const t=require(`../form-CtpHZKmh.cjs`),n=require(`../input-DgtTVBtN.cjs`),r=e.__toESM(require(`lucide-react`)),i=e.__toESM(require(`@customafk/react-toolkit/utils`)),a=e.__toESM(require(`react/jsx-runtime`)),o=e.__toESM(require(`react`)),s=({className:e,...t})=>{let s=(0,o.useId)(),[c,l]=(0,o.useState)(!1),u=(0,o.useCallback)(()=>l(e=>!e),[]);return(0,a.jsxs)(`div`,{className:`relative`,children:[(0,a.jsx)(n.Input,{...t,id:s,placeholder:`Password`,type:c?`text`:`password`,className:(0,i.cn)(`pe-9`,e)}),(0,a.jsx)(`button`,{className:`text-muted-foreground/80 hover:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 absolute inset-y-0 end-0 flex h-full w-9 items-center justify-center rounded-e-md transition-[color,box-shadow] outline-none focus:z-10 focus-visible:ring-[3px] disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50`,type:`button`,onClick:u,"aria-label":c?`Hide password`:`Show password`,"aria-pressed":c,"aria-controls":`password`,children:c?(0,a.jsx)(r.EyeOffIcon,{size:16,"aria-hidden":`true`}):(0,a.jsx)(r.EyeIcon,{size:16,"aria-hidden":`true`})})]})},c=({name:e,label:n=`Text Field`,placeholder:r=`Enter text here`,isShowErrorMsg:i=!1,description:o,onValueChange:c})=>(0,a.jsx)(t.FormField,{name:e,render:({field:e})=>(0,a.jsxs)(t.FormItem,{className:`w-full`,children:[(0,a.jsx)(t.FormLabel,{children:n}),(0,a.jsx)(t.FormControl,{children:(0,a.jsx)(s,{placeholder:r,...e,onValueChange:c})}),!!o&&(0,a.jsx)(t.FormDescription,{children:o}),i&&(0,a.jsx)(t.FormMessage,{})]})});exports.PasswordField=c;
1
+ "use client";const e=require(`../chunk-CUT6urMc.cjs`);require(`../label-BZqk7MPJ.cjs`);const t=require(`../form-CtpHZKmh.cjs`),n=require(`../input-ERPHY3v4.cjs`),r=e.__toESM(require(`lucide-react`)),i=e.__toESM(require(`@customafk/react-toolkit/utils`)),a=e.__toESM(require(`react/jsx-runtime`)),o=e.__toESM(require(`react`)),s=({className:e,...t})=>{let s=(0,o.useId)(),[c,l]=(0,o.useState)(!1),u=(0,o.useCallback)(()=>l(e=>!e),[]);return(0,a.jsxs)(`div`,{className:`relative`,children:[(0,a.jsx)(n.Input,{...t,id:s,placeholder:`Password`,type:c?`text`:`password`,className:(0,i.cn)(`pe-9`,e)}),(0,a.jsx)(`button`,{className:`text-muted-foreground/80 hover:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 absolute inset-y-0 end-0 flex h-full w-9 items-center justify-center rounded-e-md transition-[color,box-shadow] outline-none focus:z-10 focus-visible:ring-[3px] disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50`,type:`button`,onClick:u,"aria-label":c?`Hide password`:`Show password`,"aria-pressed":c,"aria-controls":`password`,children:c?(0,a.jsx)(r.EyeOffIcon,{size:16,"aria-hidden":`true`}):(0,a.jsx)(r.EyeIcon,{size:16,"aria-hidden":`true`})})]})},c=({name:e,label:n=`Text Field`,placeholder:r=`Enter text here`,isShowErrorMsg:i=!1,description:o,onValueChange:c})=>(0,a.jsx)(t.FormField,{name:e,render:({field:e})=>(0,a.jsxs)(t.FormItem,{className:`w-full`,children:[(0,a.jsx)(t.FormLabel,{children:n}),(0,a.jsx)(t.FormControl,{children:(0,a.jsx)(s,{placeholder:r,...e,onValueChange:c})}),!!o&&(0,a.jsx)(t.FormDescription,{children:o}),i&&(0,a.jsx)(t.FormMessage,{})]})});exports.PasswordField=c;
2
2
  //# sourceMappingURL=password-field.cjs.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime25 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime7 from "react/jsx-runtime";
2
2
  import { FieldPath, FieldValues } from "react-hook-form";
3
3
 
4
4
  //#region packages/components/forms/password-field.d.ts
@@ -17,7 +17,7 @@ declare const PasswordField: <TFieldValues extends FieldValues = FieldValues>({
17
17
  isShowErrorMsg,
18
18
  description,
19
19
  onValueChange
20
- }: Props<TFieldValues>) => react_jsx_runtime25.JSX.Element;
20
+ }: Props<TFieldValues>) => react_jsx_runtime7.JSX.Element;
21
21
  //#endregion
22
22
  export { PasswordField };
23
23
  //# sourceMappingURL=password-field.d.cts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime8 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime5 from "react/jsx-runtime";
2
2
  import { FieldPath, FieldValues } from "react-hook-form";
3
3
 
4
4
  //#region packages/components/forms/password-field.d.ts
@@ -17,7 +17,7 @@ declare const PasswordField: <TFieldValues extends FieldValues = FieldValues>({
17
17
  isShowErrorMsg,
18
18
  description,
19
19
  onValueChange
20
- }: Props<TFieldValues>) => react_jsx_runtime8.JSX.Element;
20
+ }: Props<TFieldValues>) => react_jsx_runtime5.JSX.Element;
21
21
  //#endregion
22
22
  export { PasswordField };
23
23
  //# sourceMappingURL=password-field.d.ts.map
@@ -1,2 +1,2 @@
1
- "use client";import"../label-HVpeECNr.js";import{FormControl as e,FormDescription as t,FormField as n,FormItem as r,FormLabel as i,FormMessage as a}from"../form-B-KLKj5u.js";import{Input as o}from"../input-BUYJ4_aj.js";import{EyeIcon as s,EyeOffIcon as c}from"lucide-react";import{cn as l}from"@customafk/react-toolkit/utils";import{jsx as u,jsxs as d}from"react/jsx-runtime";import{useCallback as f,useId as p,useState as m}from"react";const h=({className:e,...t})=>{let n=p(),[r,i]=m(!1),a=f(()=>i(e=>!e),[]);return d(`div`,{className:`relative`,children:[u(o,{...t,id:n,placeholder:`Password`,type:r?`text`:`password`,className:l(`pe-9`,e)}),u(`button`,{className:`text-muted-foreground/80 hover:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 absolute inset-y-0 end-0 flex h-full w-9 items-center justify-center rounded-e-md transition-[color,box-shadow] outline-none focus:z-10 focus-visible:ring-[3px] disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50`,type:`button`,onClick:a,"aria-label":r?`Hide password`:`Show password`,"aria-pressed":r,"aria-controls":`password`,children:u(r?c:s,{size:16,"aria-hidden":`true`})})]})},g=({name:o,label:s=`Text Field`,placeholder:c=`Enter text here`,isShowErrorMsg:l=!1,description:f,onValueChange:p})=>u(n,{name:o,render:({field:n})=>d(r,{className:`w-full`,children:[u(i,{children:s}),u(e,{children:u(h,{placeholder:c,...n,onValueChange:p})}),!!f&&u(t,{children:f}),l&&u(a,{})]})});export{g as PasswordField};
1
+ "use client";import"../label-HVpeECNr.js";import{FormControl as e,FormDescription as t,FormField as n,FormItem as r,FormLabel as i,FormMessage as a}from"../form-B-KLKj5u.js";import{Input as o}from"../input-BFZuwsER.js";import{EyeIcon as s,EyeOffIcon as c}from"lucide-react";import{cn as l}from"@customafk/react-toolkit/utils";import{jsx as u,jsxs as d}from"react/jsx-runtime";import{useCallback as f,useId as p,useState as m}from"react";const h=({className:e,...t})=>{let n=p(),[r,i]=m(!1),a=f(()=>i(e=>!e),[]);return d(`div`,{className:`relative`,children:[u(o,{...t,id:n,placeholder:`Password`,type:r?`text`:`password`,className:l(`pe-9`,e)}),u(`button`,{className:`text-muted-foreground/80 hover:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 absolute inset-y-0 end-0 flex h-full w-9 items-center justify-center rounded-e-md transition-[color,box-shadow] outline-none focus:z-10 focus-visible:ring-[3px] disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50`,type:`button`,onClick:a,"aria-label":r?`Hide password`:`Show password`,"aria-pressed":r,"aria-controls":`password`,children:u(r?c:s,{size:16,"aria-hidden":`true`})})]})},g=({name:o,label:s=`Text Field`,placeholder:c=`Enter text here`,isShowErrorMsg:l=!1,description:f,onValueChange:p})=>u(n,{name:o,render:({field:n})=>d(r,{className:`w-full`,children:[u(i,{children:s}),u(e,{children:u(h,{placeholder:c,...n,onValueChange:p})}),!!f&&u(t,{children:f}),l&&u(a,{})]})});export{g as PasswordField};
2
2
  //# sourceMappingURL=password-field.js.map
@@ -1,2 +1,2 @@
1
- "use client";const e=require(`../chunk-CUT6urMc.cjs`);require(`../label-BZqk7MPJ.cjs`);const t=require(`../form-CtpHZKmh.cjs`),n=require(`../select-DAE3Xg7g.cjs`),r=e.__toESM(require(`@customafk/react-toolkit/utils`)),i=e.__toESM(require(`react/jsx-runtime`)),a=({name:e,label:a=`Select Field`,placeholder:o=`Select an option`,disabledValues:s=[],options:c=[],isShowLabel:l=!0,isShowErrorMsg:u=!1,description:d=``,className:f=``})=>(0,i.jsx)(t.FormField,{name:e,render:({field:e})=>(0,i.jsxs)(t.FormItem,{className:(0,r.cn)(`w-full`,f),children:[l&&(0,i.jsx)(t.FormLabel,{children:a}),(0,i.jsxs)(n.Select,{defaultValue:e.value,onValueChange:e.onChange,children:[(0,i.jsx)(t.FormControl,{children:(0,i.jsx)(n.SelectTrigger,{className:`w-full`,children:(0,i.jsx)(n.SelectValue,{placeholder:o})})}),(0,i.jsx)(n.SelectContent,{children:c.map(e=>(0,i.jsx)(n.SelectItem,{disabled:s.includes(e.value),value:e.value,children:e.label},e.value))})]}),!!d&&(0,i.jsx)(t.FormDescription,{children:d}),u&&(0,i.jsx)(t.FormMessage,{})]})});exports.SelectField=a;
1
+ "use client";const e=require(`../chunk-CUT6urMc.cjs`);require(`../label-BZqk7MPJ.cjs`);const t=require(`../form-CtpHZKmh.cjs`),n=require(`../select-oxr4KoHx.cjs`),r=e.__toESM(require(`@customafk/react-toolkit/utils`)),i=e.__toESM(require(`react/jsx-runtime`)),a=({name:e,label:a=`Select Field`,placeholder:o=`Select an option`,disabledValues:s=[],options:c=[],isShowLabel:l=!0,isShowErrorMsg:u=!1,description:d=``,className:f=``})=>(0,i.jsx)(t.FormField,{name:e,render:({field:e})=>(0,i.jsxs)(t.FormItem,{className:(0,r.cn)(`w-full`,f),children:[l&&(0,i.jsx)(t.FormLabel,{children:a}),(0,i.jsxs)(n.Select,{defaultValue:e.value,onValueChange:e.onChange,children:[(0,i.jsx)(t.FormControl,{children:(0,i.jsx)(n.SelectTrigger,{className:`w-full`,children:(0,i.jsx)(n.SelectValue,{placeholder:o})})}),(0,i.jsx)(n.SelectContent,{children:c.map(e=>(0,i.jsx)(n.SelectItem,{disabled:s.includes(e.value),value:e.value,children:e.label},e.value))})]}),!!d&&(0,i.jsx)(t.FormDescription,{children:d}),u&&(0,i.jsx)(t.FormMessage,{})]})});exports.SelectField=a;
2
2
  //# sourceMappingURL=select-field.cjs.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime0 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime4 from "react/jsx-runtime";
2
2
  import { FieldPath, FieldValues } from "react-hook-form";
3
3
 
4
4
  //#region packages/components/forms/select-field.d.ts
@@ -27,7 +27,7 @@ declare const SelectField: <TFieldValues extends FieldValues = FieldValues>({
27
27
  isShowErrorMsg,
28
28
  description,
29
29
  className
30
- }: Props<TFieldValues>) => react_jsx_runtime0.JSX.Element;
30
+ }: Props<TFieldValues>) => react_jsx_runtime4.JSX.Element;
31
31
  //#endregion
32
32
  export { SelectField };
33
33
  //# sourceMappingURL=select-field.d.cts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime4 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime6 from "react/jsx-runtime";
2
2
  import { FieldPath, FieldValues } from "react-hook-form";
3
3
 
4
4
  //#region packages/components/forms/select-field.d.ts
@@ -27,7 +27,7 @@ declare const SelectField: <TFieldValues extends FieldValues = FieldValues>({
27
27
  isShowErrorMsg,
28
28
  description,
29
29
  className
30
- }: Props<TFieldValues>) => react_jsx_runtime4.JSX.Element;
30
+ }: Props<TFieldValues>) => react_jsx_runtime6.JSX.Element;
31
31
  //#endregion
32
32
  export { SelectField };
33
33
  //# sourceMappingURL=select-field.d.ts.map
@@ -1,2 +1,2 @@
1
- "use client";import"../label-HVpeECNr.js";import{FormControl as e,FormDescription as t,FormField as n,FormItem as r,FormLabel as i,FormMessage as a}from"../form-B-KLKj5u.js";import{Select as o,SelectContent as s,SelectItem as c,SelectTrigger as l,SelectValue as u}from"../select-Cmq5a3Wg.js";import{cn as d}from"@customafk/react-toolkit/utils";import{jsx as f,jsxs as p}from"react/jsx-runtime";const m=({name:m,label:h=`Select Field`,placeholder:g=`Select an option`,disabledValues:_=[],options:v=[],isShowLabel:y=!0,isShowErrorMsg:b=!1,description:x=``,className:S=``})=>f(n,{name:m,render:({field:n})=>p(r,{className:d(`w-full`,S),children:[y&&f(i,{children:h}),p(o,{defaultValue:n.value,onValueChange:n.onChange,children:[f(e,{children:f(l,{className:`w-full`,children:f(u,{placeholder:g})})}),f(s,{children:v.map(e=>f(c,{disabled:_.includes(e.value),value:e.value,children:e.label},e.value))})]}),!!x&&f(t,{children:x}),b&&f(a,{})]})});export{m as SelectField};
1
+ "use client";import"../label-HVpeECNr.js";import{FormControl as e,FormDescription as t,FormField as n,FormItem as r,FormLabel as i,FormMessage as a}from"../form-B-KLKj5u.js";import{Select as o,SelectContent as s,SelectItem as c,SelectTrigger as l,SelectValue as u}from"../select-CijI0HX0.js";import{cn as d}from"@customafk/react-toolkit/utils";import{jsx as f,jsxs as p}from"react/jsx-runtime";const m=({name:m,label:h=`Select Field`,placeholder:g=`Select an option`,disabledValues:_=[],options:v=[],isShowLabel:y=!0,isShowErrorMsg:b=!1,description:x=``,className:S=``})=>f(n,{name:m,render:({field:n})=>p(r,{className:d(`w-full`,S),children:[y&&f(i,{children:h}),p(o,{defaultValue:n.value,onValueChange:n.onChange,children:[f(e,{children:f(l,{className:`w-full`,children:f(u,{placeholder:g})})}),f(s,{children:v.map(e=>f(c,{disabled:_.includes(e.value),value:e.value,children:e.label},e.value))})]}),!!x&&f(t,{children:x}),b&&f(a,{})]})});export{m as SelectField};
2
2
  //# sourceMappingURL=select-field.js.map
@@ -1,2 +1,2 @@
1
- "use client";const e=require(`../chunk-CUT6urMc.cjs`);require(`../label-BZqk7MPJ.cjs`);const t=require(`../form-CtpHZKmh.cjs`),n=require(`../switch-BnHSwQ5T.cjs`),r=e.__toESM(require(`@customafk/react-toolkit/utils`)),i=e.__toESM(require(`react/jsx-runtime`)),a=({name:e,label:a=`Switch Field`,description:o,isShowErrorMsg:s=!1})=>(0,i.jsx)(t.FormField,{name:e,render:({field:e})=>(0,i.jsxs)(`div`,{className:`spage-y-1`,children:[(0,i.jsxs)(t.FormItem,{className:(0,r.cn)(`border-border-weak flex flex-row items-center justify-between rounded-lg border p-3 shadow-xs`),children:[(0,i.jsxs)(`div`,{className:`space-y-0.5`,children:[(0,i.jsx)(t.FormLabel,{className:`cursor-pointer text-sm`,children:a}),o&&(0,i.jsx)(t.FormDescription,{className:`text-xs`,children:o})]}),(0,i.jsx)(t.FormControl,{children:(0,i.jsx)(n.Switch,{checked:e.value,onCheckedChange:e.onChange})})]}),s&&(0,i.jsx)(t.FormMessage,{})]})});exports.SwitchField=a;
1
+ "use client";const e=require(`../chunk-CUT6urMc.cjs`);require(`../label-BZqk7MPJ.cjs`);const t=require(`../form-CtpHZKmh.cjs`),n=require(`../switch-BPSKvrTw.cjs`),r=e.__toESM(require(`@customafk/react-toolkit/utils`)),i=e.__toESM(require(`react/jsx-runtime`)),a=({name:e,label:a=`Switch Field`,description:o,isShowErrorMsg:s=!1})=>(0,i.jsx)(t.FormField,{name:e,render:({field:e})=>(0,i.jsxs)(`div`,{className:`spage-y-1`,children:[(0,i.jsxs)(t.FormItem,{className:(0,r.cn)(`border-border-weak flex flex-row items-center justify-between rounded-lg border p-3 shadow-xs`),children:[(0,i.jsxs)(`div`,{className:`space-y-0.5`,children:[(0,i.jsx)(t.FormLabel,{className:`cursor-pointer text-sm`,children:a}),o&&(0,i.jsx)(t.FormDescription,{className:`text-xs`,children:o})]}),(0,i.jsx)(t.FormControl,{children:(0,i.jsx)(n.Switch,{checked:e.value,onCheckedChange:e.onChange})})]}),s&&(0,i.jsx)(t.FormMessage,{})]})});exports.SwitchField=a;
2
2
  //# sourceMappingURL=switch-field.cjs.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime54 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime9 from "react/jsx-runtime";
2
2
  import { FieldPath, FieldValues } from "react-hook-form";
3
3
 
4
4
  //#region packages/components/forms/switch-field.d.ts
@@ -13,7 +13,7 @@ declare const SwitchField: <TFieldValues extends FieldValues = FieldValues>({
13
13
  label,
14
14
  description,
15
15
  isShowErrorMsg
16
- }: Props<TFieldValues>) => react_jsx_runtime54.JSX.Element;
16
+ }: Props<TFieldValues>) => react_jsx_runtime9.JSX.Element;
17
17
  //#endregion
18
18
  export { SwitchField };
19
19
  //# sourceMappingURL=switch-field.d.cts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime12 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime1 from "react/jsx-runtime";
2
2
  import { FieldPath, FieldValues } from "react-hook-form";
3
3
 
4
4
  //#region packages/components/forms/switch-field.d.ts
@@ -13,7 +13,7 @@ declare const SwitchField: <TFieldValues extends FieldValues = FieldValues>({
13
13
  label,
14
14
  description,
15
15
  isShowErrorMsg
16
- }: Props<TFieldValues>) => react_jsx_runtime12.JSX.Element;
16
+ }: Props<TFieldValues>) => react_jsx_runtime1.JSX.Element;
17
17
  //#endregion
18
18
  export { SwitchField };
19
19
  //# sourceMappingURL=switch-field.d.ts.map
@@ -1,2 +1,2 @@
1
- "use client";import"../label-HVpeECNr.js";import{FormControl as e,FormDescription as t,FormField as n,FormItem as r,FormLabel as i,FormMessage as a}from"../form-B-KLKj5u.js";import{Switch as o}from"../switch-iwm2-R_e.js";import{cn as s}from"@customafk/react-toolkit/utils";import{jsx as c,jsxs as l}from"react/jsx-runtime";const u=({name:u,label:d=`Switch Field`,description:f,isShowErrorMsg:p=!1})=>c(n,{name:u,render:({field:n})=>l(`div`,{className:`spage-y-1`,children:[l(r,{className:s(`border-border-weak flex flex-row items-center justify-between rounded-lg border p-3 shadow-xs`),children:[l(`div`,{className:`space-y-0.5`,children:[c(i,{className:`cursor-pointer text-sm`,children:d}),f&&c(t,{className:`text-xs`,children:f})]}),c(e,{children:c(o,{checked:n.value,onCheckedChange:n.onChange})})]}),p&&c(a,{})]})});export{u as SwitchField};
1
+ "use client";import"../label-HVpeECNr.js";import{FormControl as e,FormDescription as t,FormField as n,FormItem as r,FormLabel as i,FormMessage as a}from"../form-B-KLKj5u.js";import{Switch as o}from"../switch-Crju8DJO.js";import{cn as s}from"@customafk/react-toolkit/utils";import{jsx as c,jsxs as l}from"react/jsx-runtime";const u=({name:u,label:d=`Switch Field`,description:f,isShowErrorMsg:p=!1})=>c(n,{name:u,render:({field:n})=>l(`div`,{className:`spage-y-1`,children:[l(r,{className:s(`border-border-weak flex flex-row items-center justify-between rounded-lg border p-3 shadow-xs`),children:[l(`div`,{className:`space-y-0.5`,children:[c(i,{className:`cursor-pointer text-sm`,children:d}),f&&c(t,{className:`text-xs`,children:f})]}),c(e,{children:c(o,{checked:n.value,onCheckedChange:n.onChange})})]}),p&&c(a,{})]})});export{u as SwitchField};
2
2
  //# sourceMappingURL=switch-field.js.map
@@ -1,2 +1,2 @@
1
- "use client";const e=require(`../chunk-CUT6urMc.cjs`),t=require(`../flex-DMgD86BT.cjs`);require(`../label-BZqk7MPJ.cjs`);const n=require(`../form-CtpHZKmh.cjs`),r=require(`../input-DgtTVBtN.cjs`),i=e.__toESM(require(`lucide-react`)),a=e.__toESM(require(`@customafk/react-toolkit/utils`)),o=e.__toESM(require(`react/jsx-runtime`)),s=e.__toESM(require(`react`)),c=e.__toESM(require(`react-hook-form`)),l=({name:e,label:l=`Text Field`,placeholder:u=`Enter text here`,isShowLabel:d=!0,isShowClearButton:f=!1,isShowErrorMsg:p=!1,isShowCount:m=!1,description:h,className:g=``,onValueChange:_})=>{let{resetField:v}=n.useFormField(),y=(0,c.useWatch)({name:e}),b=(0,s.useCallback)(()=>{v(e)},[v,e]);return(0,o.jsx)(n.FormField,{name:e,render:({field:e})=>(0,o.jsxs)(n.FormItem,{className:(0,a.cn)(`w-full gap-0`,m||!!h&&`space-y-1`,g),children:[d&&(0,o.jsx)(n.FormLabel,{children:l}),(0,o.jsxs)(`div`,{className:`relative`,children:[(0,o.jsx)(n.FormControl,{children:(0,o.jsx)(r.Input,{...e,placeholder:u,className:(0,a.cn)(`w-full`,f&&`pr-9`),onValueChange:_})}),f&&y&&(0,o.jsx)(`button`,{type:`button`,className:`text-text-positive-weak hover:text-text-positive focus-visible:ring-border absolute inset-y-0 end-0 flex h-full w-8 cursor-pointer items-center justify-center rounded-e-md transition-[color,box-shadow] outline-none focus:z-10 focus-visible:ring-2`,"aria-label":`Clear input`,onClick:b,children:(0,o.jsx)(i.XIcon,{size:14,"aria-hidden":`true`})})]}),(0,o.jsxs)(t.Flex,{width:`full`,padding:`none`,justify:`end`,children:[p&&(0,o.jsx)(n.FormMessage,{className:`grow`}),m&&(0,o.jsxs)(`div`,{className:`text-text-positive-weak text-end text-xs`,children:[y?.length??0,` characters`]})]}),!!h&&(0,o.jsx)(n.FormDescription,{children:h})]})})};exports.TextField=l;
1
+ "use client";const e=require(`../chunk-CUT6urMc.cjs`),t=require(`../flex-DMgD86BT.cjs`);require(`../label-BZqk7MPJ.cjs`);const n=require(`../form-CtpHZKmh.cjs`),r=require(`../input-ERPHY3v4.cjs`),i=e.__toESM(require(`lucide-react`)),a=e.__toESM(require(`@customafk/react-toolkit/utils`)),o=e.__toESM(require(`react/jsx-runtime`)),s=e.__toESM(require(`react`)),c=e.__toESM(require(`react-hook-form`)),l=({name:e,label:l=`Text Field`,placeholder:u=`Enter text here`,isShowLabel:d=!0,isShowClearButton:f=!1,isShowErrorMsg:p=!1,isShowCount:m=!1,description:h,className:g=``,onValueChange:_})=>{let{resetField:v}=n.useFormField(),y=(0,c.useWatch)({name:e}),b=(0,s.useCallback)(()=>{v(e)},[v,e]);return(0,o.jsx)(n.FormField,{name:e,render:({field:e})=>(0,o.jsxs)(n.FormItem,{className:(0,a.cn)(`w-full gap-0`,m||!!h&&`space-y-1`,g),children:[d&&(0,o.jsx)(n.FormLabel,{children:l}),(0,o.jsxs)(`div`,{className:`relative`,children:[(0,o.jsx)(n.FormControl,{children:(0,o.jsx)(r.Input,{...e,placeholder:u,className:(0,a.cn)(`w-full`,f&&`pr-9`),onValueChange:_})}),f&&y&&(0,o.jsx)(`button`,{type:`button`,className:`text-text-positive-weak hover:text-text-positive focus-visible:ring-border absolute inset-y-0 end-0 flex h-full w-8 cursor-pointer items-center justify-center rounded-e-md transition-[color,box-shadow] outline-none focus:z-10 focus-visible:ring-2`,"aria-label":`Clear input`,onClick:b,children:(0,o.jsx)(i.XIcon,{size:14,"aria-hidden":`true`})})]}),(0,o.jsxs)(t.Flex,{width:`full`,padding:`none`,justify:`end`,children:[p&&(0,o.jsx)(n.FormMessage,{className:`grow`}),m&&(0,o.jsxs)(`div`,{className:`text-text-positive-weak text-end text-xs`,children:[y?.length??0,` characters`]})]}),!!h&&(0,o.jsx)(n.FormDescription,{children:h})]})})};exports.TextField=l;
2
2
  //# sourceMappingURL=text-field.cjs.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime87 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime6 from "react/jsx-runtime";
2
2
  import { FieldPath, FieldValues } from "react-hook-form";
3
3
 
4
4
  //#region packages/components/forms/text-field.d.ts
@@ -25,7 +25,7 @@ declare const TextField: <TFieldValues extends FieldValues = FieldValues>({
25
25
  description,
26
26
  className,
27
27
  onValueChange
28
- }: Props<TFieldValues>) => react_jsx_runtime87.JSX.Element;
28
+ }: Props<TFieldValues>) => react_jsx_runtime6.JSX.Element;
29
29
  //#endregion
30
30
  export { TextField };
31
31
  //# sourceMappingURL=text-field.d.cts.map
@@ -1,2 +1,2 @@
1
- "use client";import{Flex as e}from"../flex-BZHWRUkz.js";import"../label-HVpeECNr.js";import{FormControl as t,FormDescription as n,FormField as r,FormItem as i,FormLabel as a,FormMessage as o,useFormField as s}from"../form-B-KLKj5u.js";import{Input as c}from"../input-BUYJ4_aj.js";import{XIcon as l}from"lucide-react";import{cn as u}from"@customafk/react-toolkit/utils";import{jsx as d,jsxs as f}from"react/jsx-runtime";import{useCallback as p}from"react";import{useWatch as m}from"react-hook-form";const h=({name:h,label:g=`Text Field`,placeholder:_=`Enter text here`,isShowLabel:v=!0,isShowClearButton:y=!1,isShowErrorMsg:b=!1,isShowCount:x=!1,description:S,className:C=``,onValueChange:w})=>{let{resetField:T}=s(),E=m({name:h}),D=p(()=>{T(h)},[T,h]);return d(r,{name:h,render:({field:r})=>f(i,{className:u(`w-full gap-0`,x||!!S&&`space-y-1`,C),children:[v&&d(a,{children:g}),f(`div`,{className:`relative`,children:[d(t,{children:d(c,{...r,placeholder:_,className:u(`w-full`,y&&`pr-9`),onValueChange:w})}),y&&E&&d(`button`,{type:`button`,className:`text-text-positive-weak hover:text-text-positive focus-visible:ring-border absolute inset-y-0 end-0 flex h-full w-8 cursor-pointer items-center justify-center rounded-e-md transition-[color,box-shadow] outline-none focus:z-10 focus-visible:ring-2`,"aria-label":`Clear input`,onClick:D,children:d(l,{size:14,"aria-hidden":`true`})})]}),f(e,{width:`full`,padding:`none`,justify:`end`,children:[b&&d(o,{className:`grow`}),x&&f(`div`,{className:`text-text-positive-weak text-end text-xs`,children:[E?.length??0,` characters`]})]}),!!S&&d(n,{children:S})]})})};export{h as TextField};
1
+ "use client";import{Flex as e}from"../flex-BZHWRUkz.js";import"../label-HVpeECNr.js";import{FormControl as t,FormDescription as n,FormField as r,FormItem as i,FormLabel as a,FormMessage as o,useFormField as s}from"../form-B-KLKj5u.js";import{Input as c}from"../input-BFZuwsER.js";import{XIcon as l}from"lucide-react";import{cn as u}from"@customafk/react-toolkit/utils";import{jsx as d,jsxs as f}from"react/jsx-runtime";import{useCallback as p}from"react";import{useWatch as m}from"react-hook-form";const h=({name:h,label:g=`Text Field`,placeholder:_=`Enter text here`,isShowLabel:v=!0,isShowClearButton:y=!1,isShowErrorMsg:b=!1,isShowCount:x=!1,description:S,className:C=``,onValueChange:w})=>{let{resetField:T}=s(),E=m({name:h}),D=p(()=>{T(h)},[T,h]);return d(r,{name:h,render:({field:r})=>f(i,{className:u(`w-full gap-0`,x||!!S&&`space-y-1`,C),children:[v&&d(a,{children:g}),f(`div`,{className:`relative`,children:[d(t,{children:d(c,{...r,placeholder:_,className:u(`w-full`,y&&`pr-9`),onValueChange:w})}),y&&E&&d(`button`,{type:`button`,className:`text-text-positive-weak hover:text-text-positive focus-visible:ring-border absolute inset-y-0 end-0 flex h-full w-8 cursor-pointer items-center justify-center rounded-e-md transition-[color,box-shadow] outline-none focus:z-10 focus-visible:ring-2`,"aria-label":`Clear input`,onClick:D,children:d(l,{size:14,"aria-hidden":`true`})})]}),f(e,{width:`full`,padding:`none`,justify:`end`,children:[b&&d(o,{className:`grow`}),x&&f(`div`,{className:`text-text-positive-weak text-end text-xs`,children:[E?.length??0,` characters`]})]}),!!S&&d(n,{children:S})]})})};export{h as TextField};
2
2
  //# sourceMappingURL=text-field.js.map
@@ -1,2 +1,2 @@
1
- "use client";const e=require(`../chunk-CUT6urMc.cjs`);require(`../label-BZqk7MPJ.cjs`);const t=require(`../form-CtpHZKmh.cjs`),n=require(`../textarea-DK_bNV0u.cjs`),r=e.__toESM(require(`react/jsx-runtime`)),i=e.__toESM(require(`react-hook-form`)),a=({name:e,label:a=`Textarea Field`,placeholder:o=`Enter text here`,isShowErrorMsg:s=!1,isShowCount:c=!1,description:l,rows:u=3,onValueChange:d})=>{let f=(0,i.useWatch)({name:e});return(0,r.jsx)(t.FormField,{name:e,render:({field:e})=>(0,r.jsxs)(t.FormItem,{className:`w-full`,children:[(0,r.jsx)(t.FormLabel,{children:a}),(0,r.jsx)(t.FormControl,{children:(0,r.jsx)(n.Textarea,{...e,placeholder:o,className:`w-full`,rows:u,onValueChange:d})}),c&&(0,r.jsxs)(`div`,{className:`text-muted-foreground text-end text-xs`,children:[f?.length??0,` characters`]}),!!l&&(0,r.jsx)(t.FormDescription,{children:l}),s&&(0,r.jsx)(t.FormMessage,{})]})})};exports.TextareaField=a;
1
+ "use client";const e=require(`../chunk-CUT6urMc.cjs`);require(`../label-BZqk7MPJ.cjs`);const t=require(`../form-CtpHZKmh.cjs`),n=require(`../textarea-BtACo9UF.cjs`),r=e.__toESM(require(`react/jsx-runtime`)),i=e.__toESM(require(`react-hook-form`)),a=({name:e,label:a=`Textarea Field`,placeholder:o=`Enter text here`,isShowErrorMsg:s=!1,isShowCount:c=!1,description:l,rows:u=3,onValueChange:d})=>{let f=(0,i.useWatch)({name:e});return(0,r.jsx)(t.FormField,{name:e,render:({field:e})=>(0,r.jsxs)(t.FormItem,{className:`w-full`,children:[(0,r.jsx)(t.FormLabel,{children:a}),(0,r.jsx)(t.FormControl,{children:(0,r.jsx)(n.Textarea,{...e,placeholder:o,className:`w-full`,rows:u,onValueChange:d})}),c&&(0,r.jsxs)(`div`,{className:`text-muted-foreground text-end text-xs`,children:[f?.length??0,` characters`]}),!!l&&(0,r.jsx)(t.FormDescription,{children:l}),s&&(0,r.jsx)(t.FormMessage,{})]})})};exports.TextareaField=a;
2
2
  //# sourceMappingURL=textarea-field.cjs.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime41 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime212 from "react/jsx-runtime";
2
2
  import { FieldPath, FieldValues } from "react-hook-form";
3
3
 
4
4
  //#region packages/components/forms/textarea-field.d.ts
@@ -21,7 +21,7 @@ declare const TextareaField: <TFieldValues extends FieldValues = FieldValues>({
21
21
  description,
22
22
  rows,
23
23
  onValueChange
24
- }: Props<TFieldValues>) => react_jsx_runtime41.JSX.Element;
24
+ }: Props<TFieldValues>) => react_jsx_runtime212.JSX.Element;
25
25
  //#endregion
26
26
  export { TextareaField };
27
27
  //# sourceMappingURL=textarea-field.d.cts.map
@@ -1,2 +1,2 @@
1
- "use client";import"../label-HVpeECNr.js";import{FormControl as e,FormDescription as t,FormField as n,FormItem as r,FormLabel as i,FormMessage as a}from"../form-B-KLKj5u.js";import{Textarea as o}from"../textarea-DbNqKCAi.js";import{jsx as s,jsxs as c}from"react/jsx-runtime";import{useWatch as l}from"react-hook-form";const u=({name:u,label:d=`Textarea Field`,placeholder:f=`Enter text here`,isShowErrorMsg:p=!1,isShowCount:m=!1,description:h,rows:g=3,onValueChange:_})=>{let v=l({name:u});return s(n,{name:u,render:({field:n})=>c(r,{className:`w-full`,children:[s(i,{children:d}),s(e,{children:s(o,{...n,placeholder:f,className:`w-full`,rows:g,onValueChange:_})}),m&&c(`div`,{className:`text-muted-foreground text-end text-xs`,children:[v?.length??0,` characters`]}),!!h&&s(t,{children:h}),p&&s(a,{})]})})};export{u as TextareaField};
1
+ "use client";import"../label-HVpeECNr.js";import{FormControl as e,FormDescription as t,FormField as n,FormItem as r,FormLabel as i,FormMessage as a}from"../form-B-KLKj5u.js";import{Textarea as o}from"../textarea-BCZiUxv7.js";import{jsx as s,jsxs as c}from"react/jsx-runtime";import{useWatch as l}from"react-hook-form";const u=({name:u,label:d=`Textarea Field`,placeholder:f=`Enter text here`,isShowErrorMsg:p=!1,isShowCount:m=!1,description:h,rows:g=3,onValueChange:_})=>{let v=l({name:u});return s(n,{name:u,render:({field:n})=>c(r,{className:`w-full`,children:[s(i,{children:d}),s(e,{children:s(o,{...n,placeholder:f,className:`w-full`,rows:g,onValueChange:_})}),m&&c(`div`,{className:`text-muted-foreground text-end text-xs`,children:[v?.length??0,` characters`]}),!!h&&s(t,{children:h}),p&&s(a,{})]})})};export{u as TextareaField};
2
2
  //# sourceMappingURL=textarea-field.js.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime55 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime85 from "react/jsx-runtime";
2
2
 
3
3
  //#region packages/components/ui/input.d.ts
4
4
  declare function Input({
@@ -8,7 +8,7 @@ declare function Input({
8
8
  ...props
9
9
  }: React.ComponentProps<'input'> & {
10
10
  onValueChange?: (value: string) => void;
11
- }): react_jsx_runtime55.JSX.Element;
11
+ }): react_jsx_runtime85.JSX.Element;
12
12
  //#endregion
13
13
  export { Input };
14
- //# sourceMappingURL=input-Dx2DxNMy.d.cts.map
14
+ //# sourceMappingURL=input-BFZu6Cb8.d.cts.map
@@ -1,2 +1,2 @@
1
1
  import{cn as e}from"@customafk/react-toolkit/utils";import{jsx as t}from"react/jsx-runtime";import{useCallback as n}from"react";function r({className:r,onChange:i,onValueChange:a,...o}){let s=n(e=>{i?.(e),a?.(e.target.value)},[i,a]);return t(`input`,{"data-slot":`input`,className:e(`flex h-9 w-full px-3 py-1`,`border-border-weak shadow-input rounded-md border`,`caret-primary bg-transparent text-sm`,`transition-[color,border,box-shadow] outline-none`,`placeholder:text-text-positive-muted`,`hover:border-border`,`disabled:pointer-events-none`,`disabled:cursor-not-allowed`,`disabled:opacity-50`,`focus-visible:ring-4`,`focus-visible:ring-primary-weak`,`focus-visible:border-primary-strong`,`aria-invalid:ring-danger-muted`,`aria-invalid:border-danger`,r),...o,onChange:s})}export{r as Input};
2
- //# sourceMappingURL=input-BUYJ4_aj.js.map
2
+ //# sourceMappingURL=input-BFZuwsER.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"input-BUYJ4_aj.js","names":[],"sources":["../packages/components/ui/input.tsx"],"sourcesContent":["'use client'\nimport { useCallback } from 'react'\nimport { cn } from '@customafk/react-toolkit/utils'\n\nfunction Input({\n className,\n onChange,\n onValueChange,\n ...props\n}: React.ComponentProps<'input'> & {\n onValueChange?: (value: string) => void\n}) {\n const handleChange = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n onChange?.(e)\n onValueChange?.(e.target.value)\n },\n [onChange, onValueChange],\n )\n return (\n <input\n data-slot=\"input\"\n className={cn(\n 'flex h-9 w-full px-3 py-1',\n 'border-border-weak shadow-input rounded-md border',\n 'caret-primary bg-transparent text-sm',\n 'transition-[color,border,box-shadow] outline-none',\n 'placeholder:text-text-positive-muted',\n 'hover:border-border',\n 'disabled:pointer-events-none',\n 'disabled:cursor-not-allowed',\n 'disabled:opacity-50',\n 'focus-visible:ring-4',\n 'focus-visible:ring-primary-weak',\n 'focus-visible:border-primary-strong',\n 'aria-invalid:ring-danger-muted',\n 'aria-invalid:border-danger',\n className,\n )}\n {...props}\n onChange={handleChange}\n />\n )\n}\n\nexport { Input }\n"],"mappings":"gIAIA,SAAS,EAAM,CACb,YACA,WACA,gBACA,GAAG,GAGF,CACD,IAAM,EAAe,EAClB,GAA2C,CAC1C,IAAW,GACX,IAAgB,EAAE,OAAO,QAE3B,CAAC,EAAU,IAEb,OACE,EAAC,QAAA,CACC,YAAU,QACV,UAAW,EACT,4BACA,oDACA,uCACA,oDACA,uCACA,sBACA,+BACA,8BACA,sBACA,uBACA,kCACA,sCACA,iCACA,6BACA,GAEF,GAAI,EACJ,SAAU"}
1
+ {"version":3,"file":"input-BFZuwsER.js","names":[],"sources":["../packages/components/ui/input.tsx"],"sourcesContent":["'use client'\nimport { useCallback } from 'react'\nimport { cn } from '@customafk/react-toolkit/utils'\n\nfunction Input({\n className,\n onChange,\n onValueChange,\n ...props\n}: React.ComponentProps<'input'> & {\n onValueChange?: (value: string) => void\n}) {\n const handleChange = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n onChange?.(e)\n onValueChange?.(e.target.value)\n },\n [onChange, onValueChange],\n )\n return (\n <input\n data-slot=\"input\"\n className={cn(\n 'flex h-9 w-full px-3 py-1',\n 'border-border-weak shadow-input rounded-md border',\n 'caret-primary bg-transparent text-sm',\n 'transition-[color,border,box-shadow] outline-none',\n 'placeholder:text-text-positive-muted',\n 'hover:border-border',\n 'disabled:pointer-events-none',\n 'disabled:cursor-not-allowed',\n 'disabled:opacity-50',\n 'focus-visible:ring-4',\n 'focus-visible:ring-primary-weak',\n 'focus-visible:border-primary-strong',\n 'aria-invalid:ring-danger-muted',\n 'aria-invalid:border-danger',\n className,\n )}\n {...props}\n onChange={handleChange}\n />\n )\n}\n\nexport { Input }\n"],"mappings":"gIAIA,SAAS,EAAM,CACb,YACA,WACA,gBACA,GAAG,GAGF,CACD,IAAM,EAAe,EAClB,GAA2C,CAC1C,IAAW,GACX,IAAgB,EAAE,OAAO,QAE3B,CAAC,EAAU,IAEb,OACE,EAAC,QAAA,CACC,YAAU,QACV,UAAW,EACT,4BACA,oDACA,uCACA,oDACA,uCACA,sBACA,+BACA,8BACA,sBACA,uBACA,kCACA,sCACA,iCACA,6BACA,GAEF,GAAI,EACJ,SAAU"}
@@ -1,2 +1,2 @@
1
1
  const e=require(`./chunk-CUT6urMc.cjs`),t=e.__toESM(require(`@customafk/react-toolkit/utils`)),n=e.__toESM(require(`react/jsx-runtime`)),r=e.__toESM(require(`react`));function i({className:e,onChange:i,onValueChange:a,...o}){let s=(0,r.useCallback)(e=>{i?.(e),a?.(e.target.value)},[i,a]);return(0,n.jsx)(`input`,{"data-slot":`input`,className:(0,t.cn)(`flex h-9 w-full px-3 py-1`,`border-border-weak shadow-input rounded-md border`,`caret-primary bg-transparent text-sm`,`transition-[color,border,box-shadow] outline-none`,`placeholder:text-text-positive-muted`,`hover:border-border`,`disabled:pointer-events-none`,`disabled:cursor-not-allowed`,`disabled:opacity-50`,`focus-visible:ring-4`,`focus-visible:ring-primary-weak`,`focus-visible:border-primary-strong`,`aria-invalid:ring-danger-muted`,`aria-invalid:border-danger`,e),...o,onChange:s})}Object.defineProperty(exports,`Input`,{enumerable:!0,get:function(){return i}});
2
- //# sourceMappingURL=input-DgtTVBtN.cjs.map
2
+ //# sourceMappingURL=input-ERPHY3v4.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"input-DgtTVBtN.cjs","names":[],"sources":["../packages/components/ui/input.tsx"],"sourcesContent":["'use client'\nimport { useCallback } from 'react'\nimport { cn } from '@customafk/react-toolkit/utils'\n\nfunction Input({\n className,\n onChange,\n onValueChange,\n ...props\n}: React.ComponentProps<'input'> & {\n onValueChange?: (value: string) => void\n}) {\n const handleChange = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n onChange?.(e)\n onValueChange?.(e.target.value)\n },\n [onChange, onValueChange],\n )\n return (\n <input\n data-slot=\"input\"\n className={cn(\n 'flex h-9 w-full px-3 py-1',\n 'border-border-weak shadow-input rounded-md border',\n 'caret-primary bg-transparent text-sm',\n 'transition-[color,border,box-shadow] outline-none',\n 'placeholder:text-text-positive-muted',\n 'hover:border-border',\n 'disabled:pointer-events-none',\n 'disabled:cursor-not-allowed',\n 'disabled:opacity-50',\n 'focus-visible:ring-4',\n 'focus-visible:ring-primary-weak',\n 'focus-visible:border-primary-strong',\n 'aria-invalid:ring-danger-muted',\n 'aria-invalid:border-danger',\n className,\n )}\n {...props}\n onChange={handleChange}\n />\n )\n}\n\nexport { Input }\n"],"mappings":"uKAIA,SAAS,EAAM,CACb,YACA,WACA,gBACA,GAAG,GAGF,CACD,IAAM,GAAA,EAAA,EAAA,aACH,GAA2C,CAC1C,IAAW,GACX,IAAgB,EAAE,OAAO,QAE3B,CAAC,EAAU,IAEb,OACE,EAAA,EAAA,KAAC,QAAA,CACC,YAAU,QACV,WAAA,EAAA,EAAA,IACE,4BACA,oDACA,uCACA,oDACA,uCACA,sBACA,+BACA,8BACA,sBACA,uBACA,kCACA,sCACA,iCACA,6BACA,GAEF,GAAI,EACJ,SAAU"}
1
+ {"version":3,"file":"input-ERPHY3v4.cjs","names":[],"sources":["../packages/components/ui/input.tsx"],"sourcesContent":["'use client'\nimport { useCallback } from 'react'\nimport { cn } from '@customafk/react-toolkit/utils'\n\nfunction Input({\n className,\n onChange,\n onValueChange,\n ...props\n}: React.ComponentProps<'input'> & {\n onValueChange?: (value: string) => void\n}) {\n const handleChange = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n onChange?.(e)\n onValueChange?.(e.target.value)\n },\n [onChange, onValueChange],\n )\n return (\n <input\n data-slot=\"input\"\n className={cn(\n 'flex h-9 w-full px-3 py-1',\n 'border-border-weak shadow-input rounded-md border',\n 'caret-primary bg-transparent text-sm',\n 'transition-[color,border,box-shadow] outline-none',\n 'placeholder:text-text-positive-muted',\n 'hover:border-border',\n 'disabled:pointer-events-none',\n 'disabled:cursor-not-allowed',\n 'disabled:opacity-50',\n 'focus-visible:ring-4',\n 'focus-visible:ring-primary-weak',\n 'focus-visible:border-primary-strong',\n 'aria-invalid:ring-danger-muted',\n 'aria-invalid:border-danger',\n className,\n )}\n {...props}\n onChange={handleChange}\n />\n )\n}\n\nexport { Input }\n"],"mappings":"uKAIA,SAAS,EAAM,CACb,YACA,WACA,gBACA,GAAG,GAGF,CACD,IAAM,GAAA,EAAA,EAAA,aACH,GAA2C,CAC1C,IAAW,GACX,IAAgB,EAAE,OAAO,QAE3B,CAAC,EAAU,IAEb,OACE,EAAA,EAAA,KAAC,QAAA,CACC,YAAU,QACV,WAAA,EAAA,EAAA,IACE,4BACA,oDACA,uCACA,oDACA,uCACA,sBACA,+BACA,8BACA,sBACA,uBACA,kCACA,sCACA,iCACA,6BACA,GAEF,GAAI,EACJ,SAAU"}
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime103 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime202 from "react/jsx-runtime";
2
2
 
3
3
  //#region packages/components/ui/input.d.ts
4
4
  declare function Input({
@@ -8,7 +8,7 @@ declare function Input({
8
8
  ...props
9
9
  }: React.ComponentProps<'input'> & {
10
10
  onValueChange?: (value: string) => void;
11
- }): react_jsx_runtime103.JSX.Element;
11
+ }): react_jsx_runtime202.JSX.Element;
12
12
  //#endregion
13
13
  export { Input };
14
- //# sourceMappingURL=input-CWzkJbaD.d.ts.map
14
+ //# sourceMappingURL=input-d_SOv6FU.d.ts.map
@@ -1,6 +1,6 @@
1
- import { Button } from "../../button-NPRxTW9Y.cjs";
2
- import { Separator } from "../../separator-ZGvcRkrl.cjs";
3
- import { TooltipContent } from "../../tooltip-BZDwRKZ6.cjs";
1
+ import { Button } from "../../button-LfFi39Jg.cjs";
2
+ import { Separator } from "../../separator-B79v6wKg.cjs";
3
+ import { TooltipContent } from "../../tooltip-DijjzZk1.cjs";
4
4
  import * as react_jsx_runtime259 from "react/jsx-runtime";
5
5
  import * as class_variance_authority_types7 from "class-variance-authority/types";
6
6
  import { VariantProps } from "class-variance-authority";
@@ -103,7 +103,7 @@ declare function AppLayoutSidebarMenuItem({
103
103
  }: React.ComponentProps<'li'>): react_jsx_runtime259.JSX.Element;
104
104
  declare const sidebarMenuButtonVariants: (props?: ({
105
105
  variant?: "default" | "outline" | null | undefined;
106
- size?: "sm" | "lg" | "default" | null | undefined;
106
+ size?: "default" | "sm" | "lg" | null | undefined;
107
107
  } & class_variance_authority_types7.ClassProp) | undefined) => string;
108
108
  declare function AppLayoutSidebarMenuButton({
109
109
  asChild,
@@ -1,9 +1,9 @@
1
- import { Button } from "../../button-ld6DUDGr.js";
2
- import { Separator } from "../../separator-9s0ppov1.js";
3
- import { TooltipContent } from "../../tooltip-ChyvXWdm.js";
1
+ import { Button } from "../../button-DZYXtWzR.js";
2
+ import { Separator } from "../../separator-CJZGYT24.js";
3
+ import { TooltipContent } from "../../tooltip-B1Lj1ujY.js";
4
4
  import { VariantProps } from "class-variance-authority";
5
- import * as react_jsx_runtime281 from "react/jsx-runtime";
6
- import * as class_variance_authority_types8 from "class-variance-authority/types";
5
+ import * as react_jsx_runtime259 from "react/jsx-runtime";
6
+ import * as class_variance_authority_types7 from "class-variance-authority/types";
7
7
 
8
8
  //#region packages/components/layouts/app-layout/sidebar.d.ts
9
9
  type SidebarContextProps = {
@@ -28,7 +28,7 @@ declare function SidebarProvider({
28
28
  defaultOpen?: boolean;
29
29
  open?: boolean;
30
30
  onOpenChange?: (open: boolean) => void;
31
- }): react_jsx_runtime281.JSX.Element;
31
+ }): react_jsx_runtime259.JSX.Element;
32
32
  declare function Sidebar({
33
33
  side,
34
34
  variant,
@@ -40,71 +40,71 @@ declare function Sidebar({
40
40
  side?: 'left' | 'right';
41
41
  variant?: 'sidebar' | 'floating' | 'inset';
42
42
  collapsible?: 'offcanvas' | 'icon' | 'none';
43
- }): react_jsx_runtime281.JSX.Element;
43
+ }): react_jsx_runtime259.JSX.Element;
44
44
  declare function AppLayoutSidebarTrigger({
45
45
  className,
46
46
  onClick,
47
47
  ...props
48
- }: React.ComponentProps<typeof Button>): react_jsx_runtime281.JSX.Element;
48
+ }: React.ComponentProps<typeof Button>): react_jsx_runtime259.JSX.Element;
49
49
  declare function AppLayoutSidebarRail({
50
50
  className,
51
51
  ...props
52
- }: React.ComponentProps<'button'>): react_jsx_runtime281.JSX.Element;
52
+ }: React.ComponentProps<'button'>): react_jsx_runtime259.JSX.Element;
53
53
  declare function AppLayoutSidebarInset({
54
54
  className,
55
55
  children,
56
56
  ...props
57
- }: React.ComponentProps<'main'>): react_jsx_runtime281.JSX.Element;
57
+ }: React.ComponentProps<'main'>): react_jsx_runtime259.JSX.Element;
58
58
  declare function AppLayoutSidebarHeader({
59
59
  className,
60
60
  ...props
61
- }: React.ComponentProps<'div'>): react_jsx_runtime281.JSX.Element;
61
+ }: React.ComponentProps<'div'>): react_jsx_runtime259.JSX.Element;
62
62
  declare function AppLayoutSidebarFooter({
63
63
  className,
64
64
  ...props
65
- }: React.ComponentProps<'div'>): react_jsx_runtime281.JSX.Element;
65
+ }: React.ComponentProps<'div'>): react_jsx_runtime259.JSX.Element;
66
66
  declare function AppLayoutSidebarSeparator({
67
67
  className,
68
68
  ...props
69
- }: React.ComponentProps<typeof Separator>): react_jsx_runtime281.JSX.Element;
69
+ }: React.ComponentProps<typeof Separator>): react_jsx_runtime259.JSX.Element;
70
70
  declare function AppLayoutSidebarContent({
71
71
  className,
72
72
  ...props
73
- }: React.ComponentProps<'div'>): react_jsx_runtime281.JSX.Element;
73
+ }: React.ComponentProps<'div'>): react_jsx_runtime259.JSX.Element;
74
74
  declare function AppLayoutSidebarGroup({
75
75
  className,
76
76
  ...props
77
- }: React.ComponentProps<'div'>): react_jsx_runtime281.JSX.Element;
77
+ }: React.ComponentProps<'div'>): react_jsx_runtime259.JSX.Element;
78
78
  declare function AppLayoutSidebarGroupLabel({
79
79
  className,
80
80
  asChild,
81
81
  ...props
82
82
  }: React.ComponentProps<'div'> & {
83
83
  asChild?: boolean;
84
- }): react_jsx_runtime281.JSX.Element;
84
+ }): react_jsx_runtime259.JSX.Element;
85
85
  declare function AppLayoutSidebarGroupAction({
86
86
  className,
87
87
  asChild,
88
88
  ...props
89
89
  }: React.ComponentProps<'button'> & {
90
90
  asChild?: boolean;
91
- }): react_jsx_runtime281.JSX.Element;
91
+ }): react_jsx_runtime259.JSX.Element;
92
92
  declare function AppLayoutSidebarGroupContent({
93
93
  className,
94
94
  ...props
95
- }: React.ComponentProps<'div'>): react_jsx_runtime281.JSX.Element;
95
+ }: React.ComponentProps<'div'>): react_jsx_runtime259.JSX.Element;
96
96
  declare function AppLayoutSidebarMenu({
97
97
  className,
98
98
  ...props
99
- }: React.ComponentProps<'ul'>): react_jsx_runtime281.JSX.Element;
99
+ }: React.ComponentProps<'ul'>): react_jsx_runtime259.JSX.Element;
100
100
  declare function AppLayoutSidebarMenuItem({
101
101
  className,
102
102
  ...props
103
- }: React.ComponentProps<'li'>): react_jsx_runtime281.JSX.Element;
103
+ }: React.ComponentProps<'li'>): react_jsx_runtime259.JSX.Element;
104
104
  declare const sidebarMenuButtonVariants: (props?: ({
105
105
  variant?: "default" | "outline" | null | undefined;
106
- size?: "sm" | "lg" | "default" | null | undefined;
107
- } & class_variance_authority_types8.ClassProp) | undefined) => string;
106
+ size?: "default" | "sm" | "lg" | null | undefined;
107
+ } & class_variance_authority_types7.ClassProp) | undefined) => string;
108
108
  declare function AppLayoutSidebarMenuButton({
109
109
  asChild,
110
110
  isActive,
@@ -117,7 +117,7 @@ declare function AppLayoutSidebarMenuButton({
117
117
  asChild?: boolean;
118
118
  isActive?: boolean;
119
119
  tooltip?: string | React.ComponentProps<typeof TooltipContent>;
120
- } & VariantProps<typeof sidebarMenuButtonVariants>): react_jsx_runtime281.JSX.Element;
120
+ } & VariantProps<typeof sidebarMenuButtonVariants>): react_jsx_runtime259.JSX.Element;
121
121
  declare function AppLayoutSidebarMenuAction({
122
122
  className,
123
123
  asChild,
@@ -126,26 +126,26 @@ declare function AppLayoutSidebarMenuAction({
126
126
  }: React.ComponentProps<'button'> & {
127
127
  asChild?: boolean;
128
128
  showOnHover?: boolean;
129
- }): react_jsx_runtime281.JSX.Element;
129
+ }): react_jsx_runtime259.JSX.Element;
130
130
  declare function AppLayoutSidebarMenuBadge({
131
131
  className,
132
132
  ...props
133
- }: React.ComponentProps<'div'>): react_jsx_runtime281.JSX.Element;
133
+ }: React.ComponentProps<'div'>): react_jsx_runtime259.JSX.Element;
134
134
  declare function AppLayoutSidebarMenuSkeleton({
135
135
  className,
136
136
  showIcon,
137
137
  ...props
138
138
  }: React.ComponentProps<'div'> & {
139
139
  showIcon?: boolean;
140
- }): react_jsx_runtime281.JSX.Element;
140
+ }): react_jsx_runtime259.JSX.Element;
141
141
  declare function AppLayoutSidebarMenuSub({
142
142
  className,
143
143
  ...props
144
- }: React.ComponentProps<'ul'>): react_jsx_runtime281.JSX.Element;
144
+ }: React.ComponentProps<'ul'>): react_jsx_runtime259.JSX.Element;
145
145
  declare function AppLayoutSidebarMenuSubItem({
146
146
  className,
147
147
  ...props
148
- }: React.ComponentProps<'li'>): react_jsx_runtime281.JSX.Element;
148
+ }: React.ComponentProps<'li'>): react_jsx_runtime259.JSX.Element;
149
149
  declare function AppLayoutSidebarMenuSubButton({
150
150
  asChild,
151
151
  size,
@@ -156,7 +156,7 @@ declare function AppLayoutSidebarMenuSubButton({
156
156
  asChild?: boolean;
157
157
  size?: 'sm' | 'md';
158
158
  isActive?: boolean;
159
- }): react_jsx_runtime281.JSX.Element;
159
+ }): react_jsx_runtime259.JSX.Element;
160
160
  //#endregion
161
161
  //#region packages/components/layouts/app-layout/index.d.ts
162
162
  declare const AppLayoutWrapper: React.FC<React.PropsWithChildren>;
@@ -1,5 +1,5 @@
1
- import * as react_jsx_runtime83 from "react/jsx-runtime";
2
- import * as class_variance_authority_types2 from "class-variance-authority/types";
1
+ import * as react_jsx_runtime42 from "react/jsx-runtime";
2
+ import * as class_variance_authority_types0 from "class-variance-authority/types";
3
3
  import { VariantProps } from "class-variance-authority";
4
4
 
5
5
  //#region packages/components/layouts/flex.d.ts
@@ -12,7 +12,7 @@ declare const flexVariants: (props?: ({
12
12
  gap?: "xs" | "sm" | "md" | "lg" | "xl" | "none" | null | undefined;
13
13
  justify?: "start" | "center" | "end" | "between" | "around" | "evenly" | "stretch" | null | undefined;
14
14
  align?: "start" | "center" | "end" | "stretch" | "baseline" | null | undefined;
15
- } & class_variance_authority_types2.ClassProp) | undefined) => string;
15
+ } & class_variance_authority_types0.ClassProp) | undefined) => string;
16
16
  type Props = {
17
17
  className?: string;
18
18
  } & VariantProps<typeof flexVariants>;
@@ -27,7 +27,7 @@ declare const Flex: ({
27
27
  align,
28
28
  className,
29
29
  children
30
- }: React.PropsWithChildren<Props>) => react_jsx_runtime83.JSX.Element;
30
+ }: React.PropsWithChildren<Props>) => react_jsx_runtime42.JSX.Element;
31
31
  //#endregion
32
32
  export { Flex };
33
33
  //# sourceMappingURL=flex.d.cts.map
@@ -1,6 +1,6 @@
1
1
  import { VariantProps } from "class-variance-authority";
2
- import * as react_jsx_runtime13 from "react/jsx-runtime";
3
- import * as class_variance_authority_types0 from "class-variance-authority/types";
2
+ import * as react_jsx_runtime56 from "react/jsx-runtime";
3
+ import * as class_variance_authority_types2 from "class-variance-authority/types";
4
4
 
5
5
  //#region packages/components/layouts/flex.d.ts
6
6
  declare const flexVariants: (props?: ({
@@ -12,7 +12,7 @@ declare const flexVariants: (props?: ({
12
12
  gap?: "xs" | "sm" | "md" | "lg" | "xl" | "none" | null | undefined;
13
13
  justify?: "start" | "center" | "end" | "between" | "around" | "evenly" | "stretch" | null | undefined;
14
14
  align?: "start" | "center" | "end" | "stretch" | "baseline" | null | undefined;
15
- } & class_variance_authority_types0.ClassProp) | undefined) => string;
15
+ } & class_variance_authority_types2.ClassProp) | undefined) => string;
16
16
  type Props = {
17
17
  className?: string;
18
18
  } & VariantProps<typeof flexVariants>;
@@ -27,7 +27,7 @@ declare const Flex: ({
27
27
  align,
28
28
  className,
29
29
  children
30
- }: React.PropsWithChildren<Props>) => react_jsx_runtime13.JSX.Element;
30
+ }: React.PropsWithChildren<Props>) => react_jsx_runtime56.JSX.Element;
31
31
  //#endregion
32
32
  export { Flex };
33
33
  //# sourceMappingURL=flex.d.ts.map