@fuf-stack/uniform 1.17.0 → 1.18.0

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 (400) hide show
  1. package/dist/Checkboxes/index.cjs +1 -1
  2. package/dist/Checkboxes/index.d.cts +1 -1
  3. package/dist/Checkboxes/index.d.ts +1 -1
  4. package/dist/Checkboxes/index.js +1 -1
  5. package/dist/{Checkboxes-BfUtbKe-.js → Checkboxes-BGrK_mwQ.js} +3 -3
  6. package/dist/{Checkboxes-BfUtbKe-.js.map → Checkboxes-BGrK_mwQ.js.map} +1 -1
  7. package/dist/{Checkboxes-3Rg0gyfO.cjs → Checkboxes-Dk7yyRVR.cjs} +4 -4
  8. package/dist/{Checkboxes-3Rg0gyfO.cjs.map → Checkboxes-Dk7yyRVR.cjs.map} +1 -1
  9. package/dist/FieldArray/index.cjs +1 -1
  10. package/dist/FieldArray/index.d.cts +1 -1
  11. package/dist/FieldArray/index.d.ts +1 -1
  12. package/dist/FieldArray/index.js +1 -1
  13. package/dist/{FieldArray-BgvSTDWi.cjs → FieldArray-BnZW6fwm.cjs} +7 -7
  14. package/dist/{FieldArray-BgvSTDWi.cjs.map → FieldArray-BnZW6fwm.cjs.map} +1 -1
  15. package/dist/{FieldArray-C8Ipn-tM.js → FieldArray-C53ox8yB.js} +6 -6
  16. package/dist/{FieldArray-C8Ipn-tM.js.map → FieldArray-C53ox8yB.js.map} +1 -1
  17. package/dist/FieldCard/index.cjs +1 -1
  18. package/dist/FieldCard/index.d.cts +1 -1
  19. package/dist/FieldCard/index.d.ts +1 -1
  20. package/dist/FieldCard/index.js +1 -1
  21. package/dist/{FieldCard-7XiCb6jZ.js → FieldCard-16yCF83m.js} +6 -5
  22. package/dist/FieldCard-16yCF83m.js.map +1 -0
  23. package/dist/{FieldCard-38ZBBWyE.cjs → FieldCard-BxK_IJOR.cjs} +7 -6
  24. package/dist/FieldCard-BxK_IJOR.cjs.map +1 -0
  25. package/dist/{FieldCopyTestIdButton-DxJYKqrz.cjs → FieldCopyTestIdButton-4uupFq1U.cjs} +2 -2
  26. package/dist/{FieldCopyTestIdButton-DxJYKqrz.cjs.map → FieldCopyTestIdButton-4uupFq1U.cjs.map} +1 -1
  27. package/dist/{FieldCopyTestIdButton-D9f1B-VS.js → FieldCopyTestIdButton-BoEdlzLs.js} +1 -1
  28. package/dist/{FieldCopyTestIdButton-D9f1B-VS.js.map → FieldCopyTestIdButton-BoEdlzLs.js.map} +1 -1
  29. package/dist/{FieldValidationError-A384-L3Y.cjs → FieldValidationError-Br6iopZj.cjs} +2 -2
  30. package/dist/{FieldValidationError-A384-L3Y.cjs.map → FieldValidationError-Br6iopZj.cjs.map} +1 -1
  31. package/dist/{FieldValidationError-BYwitb_B.js → FieldValidationError-XQaViV52.js} +1 -1
  32. package/dist/{FieldValidationError-BYwitb_B.js.map → FieldValidationError-XQaViV52.js.map} +1 -1
  33. package/dist/Form/index.cjs +1 -1
  34. package/dist/Form/index.d.cts +1 -1
  35. package/dist/Form/index.d.ts +2 -2
  36. package/dist/Form/index.js +1 -1
  37. package/dist/{Form-Ca3RxssB.cjs → Form--SsSvsxl.cjs} +3 -3
  38. package/dist/{Form-Ca3RxssB.cjs.map → Form--SsSvsxl.cjs.map} +1 -1
  39. package/dist/{Form-B7bv9fDO.js → Form-ccsEssie.js} +3 -3
  40. package/dist/{Form-B7bv9fDO.js.map → Form-ccsEssie.js.map} +1 -1
  41. package/dist/{FormContext-CeFKQmVH.cjs → FormContext-BSLO2-sO.cjs} +3 -3
  42. package/dist/FormContext-BSLO2-sO.cjs.map +1 -0
  43. package/dist/{FormContext-C2_WMi_v.d.ts → FormContext-CCe8drkp.d.ts} +1 -1
  44. package/dist/FormContext-CCe8drkp.d.ts.map +1 -0
  45. package/dist/{FormContext-Dl7KL_wl.d.cts → FormContext-RSA21aDt.d.cts} +1 -1
  46. package/dist/FormContext-RSA21aDt.d.cts.map +1 -0
  47. package/dist/{FormContext-DHYlCZ2u.js → FormContext-kE3YKhp_.js} +3 -3
  48. package/dist/FormContext-kE3YKhp_.js.map +1 -0
  49. package/dist/Grid/index.cjs +1 -1
  50. package/dist/Grid/index.d.cts +1 -1
  51. package/dist/Grid/index.d.ts +1 -1
  52. package/dist/Grid/index.js +1 -1
  53. package/dist/{Grid-CRURvciu.cjs → Grid-CE1fZKmV.cjs} +2 -2
  54. package/dist/{Grid-CRURvciu.cjs.map → Grid-CE1fZKmV.cjs.map} +1 -1
  55. package/dist/{Grid-LRjQlZms.js → Grid-CeaybCIF.js} +1 -1
  56. package/dist/{Grid-LRjQlZms.js.map → Grid-CeaybCIF.js.map} +1 -1
  57. package/dist/Input/index.cjs +1 -1
  58. package/dist/Input/index.d.cts +1 -1
  59. package/dist/Input/index.d.ts +1 -1
  60. package/dist/Input/index.js +1 -1
  61. package/dist/{Input-DlyrGFYf.cjs → Input-B3p_4ntD.cjs} +4 -4
  62. package/dist/{Input-DlyrGFYf.cjs.map → Input-B3p_4ntD.cjs.map} +1 -1
  63. package/dist/{Input-ChXItabV.js → Input-BCs_eyJ9.js} +3 -3
  64. package/dist/{Input-ChXItabV.js.map → Input-BCs_eyJ9.js.map} +1 -1
  65. package/dist/RadioBoxes/index.cjs +1 -1
  66. package/dist/RadioBoxes/index.d.cts +1 -1
  67. package/dist/RadioBoxes/index.d.ts +1 -1
  68. package/dist/RadioBoxes/index.js +1 -1
  69. package/dist/{RadioBoxes-D6ULFGfd.js → RadioBoxes-C3Cwrn2I.js} +3 -3
  70. package/dist/{RadioBoxes-D6ULFGfd.js.map → RadioBoxes-C3Cwrn2I.js.map} +1 -1
  71. package/dist/{RadioBoxes-ClDOhQkO.cjs → RadioBoxes-xRvNe5U8.cjs} +4 -4
  72. package/dist/{RadioBoxes-ClDOhQkO.cjs.map → RadioBoxes-xRvNe5U8.cjs.map} +1 -1
  73. package/dist/RadioTabs/index.cjs +1 -1
  74. package/dist/RadioTabs/index.d.cts +1 -1
  75. package/dist/RadioTabs/index.d.ts +1 -1
  76. package/dist/RadioTabs/index.js +1 -1
  77. package/dist/{RadioTabs-CgB0MmbK.cjs → RadioTabs-BaHvYcd-.cjs} +4 -4
  78. package/dist/{RadioTabs-CgB0MmbK.cjs.map → RadioTabs-BaHvYcd-.cjs.map} +1 -1
  79. package/dist/{RadioTabs-eSB6OXD7.js → RadioTabs-DfOGIsEf.js} +3 -3
  80. package/dist/{RadioTabs-eSB6OXD7.js.map → RadioTabs-DfOGIsEf.js.map} +1 -1
  81. package/dist/Radios/index.cjs +1 -1
  82. package/dist/Radios/index.d.cts +1 -1
  83. package/dist/Radios/index.d.ts +1 -1
  84. package/dist/Radios/index.js +1 -1
  85. package/dist/{Radios-DWsCLUVl.cjs → Radios-BfA3uL35.cjs} +4 -4
  86. package/dist/{Radios-DWsCLUVl.cjs.map → Radios-BfA3uL35.cjs.map} +1 -1
  87. package/dist/{Radios-BXuyREKO.js → Radios-xM-09vB5.js} +3 -3
  88. package/dist/{Radios-BXuyREKO.js.map → Radios-xM-09vB5.js.map} +1 -1
  89. package/dist/Select/index.cjs +1 -1
  90. package/dist/Select/index.d.cts +1 -1
  91. package/dist/Select/index.d.ts +1 -1
  92. package/dist/Select/index.js +1 -1
  93. package/dist/{Select-CTbXrAjL.cjs → Select-DH_YaruM.cjs} +5 -5
  94. package/dist/{Select-CTbXrAjL.cjs.map → Select-DH_YaruM.cjs.map} +1 -1
  95. package/dist/{Select-Dk_K_Q0F.js → Select-DlEUzYl6.js} +4 -4
  96. package/dist/{Select-Dk_K_Q0F.js.map → Select-DlEUzYl6.js.map} +1 -1
  97. package/dist/Slider/index.cjs +1 -1
  98. package/dist/Slider/index.d.cts +1 -1
  99. package/dist/Slider/index.d.ts +1 -1
  100. package/dist/Slider/index.js +1 -1
  101. package/dist/{Slider-ChGkOSJJ.cjs → Slider-C-dMrJZ6.cjs} +3 -3
  102. package/dist/{Slider-ChGkOSJJ.cjs.map → Slider-C-dMrJZ6.cjs.map} +1 -1
  103. package/dist/{Slider-DdF0ZBzn.js → Slider-CTFuVrp2.js} +2 -2
  104. package/dist/{Slider-DdF0ZBzn.js.map → Slider-CTFuVrp2.js.map} +1 -1
  105. package/dist/SubmitButton/index.cjs +1 -1
  106. package/dist/SubmitButton/index.d.cts +1 -1
  107. package/dist/SubmitButton/index.d.ts +1 -1
  108. package/dist/SubmitButton/index.js +1 -1
  109. package/dist/{SubmitButton-BrbHJcb4.js → SubmitButton-Bh1RN0F1.js} +2 -2
  110. package/dist/{SubmitButton-BrbHJcb4.js.map → SubmitButton-Bh1RN0F1.js.map} +1 -1
  111. package/dist/{SubmitButton-C6sgPR8K.cjs → SubmitButton-CJ6s1mZr.cjs} +3 -3
  112. package/dist/{SubmitButton-C6sgPR8K.cjs.map → SubmitButton-CJ6s1mZr.cjs.map} +1 -1
  113. package/dist/Switch/index.cjs +1 -1
  114. package/dist/Switch/index.d.cts +1 -1
  115. package/dist/Switch/index.d.ts +1 -1
  116. package/dist/Switch/index.js +1 -1
  117. package/dist/{Switch-DW9SOeIv.js → Switch-CXrz-M3V.js} +2 -2
  118. package/dist/{Switch-DW9SOeIv.js.map → Switch-CXrz-M3V.js.map} +1 -1
  119. package/dist/{Switch-Lt61rKxf.cjs → Switch-CeUMwheZ.cjs} +3 -3
  120. package/dist/{Switch-Lt61rKxf.cjs.map → Switch-CeUMwheZ.cjs.map} +1 -1
  121. package/dist/SwitchBox/index.cjs +1 -1
  122. package/dist/SwitchBox/index.d.cts +1 -1
  123. package/dist/SwitchBox/index.d.ts +1 -1
  124. package/dist/SwitchBox/index.js +1 -1
  125. package/dist/{SwitchBox-D-EI9Sl-.cjs → SwitchBox-4G_qcERZ.cjs} +3 -3
  126. package/dist/{SwitchBox-D-EI9Sl-.cjs.map → SwitchBox-4G_qcERZ.cjs.map} +1 -1
  127. package/dist/{SwitchBox-9KAu4WWd.js → SwitchBox-RfkVRDrE.js} +2 -2
  128. package/dist/{SwitchBox-9KAu4WWd.js.map → SwitchBox-RfkVRDrE.js.map} +1 -1
  129. package/dist/TextArea/index.cjs +1 -1
  130. package/dist/TextArea/index.d.cts +1 -1
  131. package/dist/TextArea/index.d.ts +1 -1
  132. package/dist/TextArea/index.js +1 -1
  133. package/dist/{TextArea-B0zYpNy-.js → TextArea-BLkVYmHZ.js} +3 -3
  134. package/dist/{TextArea-B0zYpNy-.js.map → TextArea-BLkVYmHZ.js.map} +1 -1
  135. package/dist/{TextArea-DRSFdn5v.cjs → TextArea-BYEuk4Ng.cjs} +4 -4
  136. package/dist/{TextArea-DRSFdn5v.cjs.map → TextArea-BYEuk4Ng.cjs.map} +1 -1
  137. package/dist/helpers/index.cjs +2 -1
  138. package/dist/helpers/index.d.cts +39 -1
  139. package/dist/helpers/index.d.cts.map +1 -1
  140. package/dist/helpers/index.d.ts +39 -1
  141. package/dist/helpers/index.d.ts.map +1 -1
  142. package/dist/helpers/index.js +2 -2
  143. package/dist/{helpers-D3A5d3M1.js → helpers-33jajRcN.js} +71 -2
  144. package/dist/{helpers-D3A5d3M1.js.map → helpers-33jajRcN.js.map} +1 -1
  145. package/dist/{helpers-CncbgvW_.cjs → helpers-Bd_QpqXg.cjs} +77 -2
  146. package/dist/{helpers-CncbgvW_.cjs.map → helpers-Bd_QpqXg.cjs.map} +1 -1
  147. package/dist/hooks/useClientValidation/index.cjs +1 -1
  148. package/dist/hooks/useClientValidation/index.d.cts +1 -1
  149. package/dist/hooks/useClientValidation/index.d.ts +1 -1
  150. package/dist/hooks/useClientValidation/index.js +1 -1
  151. package/dist/hooks/useController/index.cjs +1 -1
  152. package/dist/hooks/useController/index.d.cts +1 -1
  153. package/dist/hooks/useController/index.d.ts +2 -2
  154. package/dist/hooks/useController/index.js +1 -1
  155. package/dist/hooks/useFormContext/index.cjs +1 -1
  156. package/dist/hooks/useFormContext/index.d.cts +1 -1
  157. package/dist/hooks/useFormContext/index.d.ts +3 -3
  158. package/dist/hooks/useFormContext/index.js +1 -1
  159. package/dist/hooks/useInput/index.cjs +1 -1
  160. package/dist/hooks/useInput/index.d.cts +1 -1
  161. package/dist/hooks/useInput/index.d.ts +1 -1
  162. package/dist/hooks/useInput/index.js +1 -1
  163. package/dist/hooks/useInputValueDebounce/index.cjs +1 -1
  164. package/dist/hooks/useInputValueDebounce/index.d.cts +1 -1
  165. package/dist/hooks/useInputValueDebounce/index.d.ts +1 -1
  166. package/dist/hooks/useInputValueDebounce/index.js +1 -1
  167. package/dist/hooks/useInputValueTransform/index.cjs +1 -1
  168. package/dist/hooks/useInputValueTransform/index.d.cts +1 -1
  169. package/dist/hooks/useInputValueTransform/index.d.ts +1 -1
  170. package/dist/hooks/useInputValueTransform/index.js +1 -1
  171. package/dist/hooks/useUniformField/index.cjs +1 -1
  172. package/dist/hooks/useUniformField/index.d.cts +1 -1
  173. package/dist/hooks/useUniformField/index.d.ts +5 -5
  174. package/dist/hooks/useUniformField/index.js +1 -1
  175. package/dist/hooks/useUniformFieldArray/index.cjs +1 -1
  176. package/dist/hooks/useUniformFieldArray/index.d.cts +1 -1
  177. package/dist/hooks/useUniformFieldArray/index.d.ts +6 -6
  178. package/dist/hooks/useUniformFieldArray/index.js +1 -1
  179. package/dist/hooks/useWatchUserChange/index.cjs +1 -1
  180. package/dist/hooks/useWatchUserChange/index.d.cts +1 -1
  181. package/dist/hooks/useWatchUserChange/index.d.ts +1 -1
  182. package/dist/hooks/useWatchUserChange/index.js +1 -1
  183. package/dist/{index-pE9osud2.d.ts → index-ABoI1QMc.d.ts} +1 -1
  184. package/dist/index-ABoI1QMc.d.ts.map +1 -0
  185. package/dist/{index-BV_YDI6g.d.ts → index-B0WNiTKF.d.cts} +39 -77
  186. package/dist/index-B0WNiTKF.d.cts.map +1 -0
  187. package/dist/{index-BW9EUWZE.d.cts → index-B3DXQvAA.d.cts} +3 -3
  188. package/dist/index-B3DXQvAA.d.cts.map +1 -0
  189. package/dist/{index-aHcGnXHf.d.ts → index-BI_rLLgx.d.ts} +4 -4
  190. package/dist/index-BI_rLLgx.d.ts.map +1 -0
  191. package/dist/{index-nVYabHcT.d.cts → index-BPc0O2Ds.d.ts} +36 -35
  192. package/dist/index-BPc0O2Ds.d.ts.map +1 -0
  193. package/dist/{index-DJbdReTK.d.ts → index-BUbrPNtL.d.ts} +3 -3
  194. package/dist/index-BUbrPNtL.d.ts.map +1 -0
  195. package/dist/{index-CUy2EDqc.d.cts → index-B_OYOLtc.d.ts} +40 -78
  196. package/dist/index-B_OYOLtc.d.ts.map +1 -0
  197. package/dist/{index-DebErIUS.d.ts → index-BdTKCS0O.d.ts} +48 -48
  198. package/dist/index-BdTKCS0O.d.ts.map +1 -0
  199. package/dist/{index-CB00FCyi.d.ts → index-Bi0RH8tW.d.ts} +31 -43
  200. package/dist/index-Bi0RH8tW.d.ts.map +1 -0
  201. package/dist/{index-BFLKkqA3.d.ts → index-Box1ZCLh.d.ts} +3 -3
  202. package/dist/index-Box1ZCLh.d.ts.map +1 -0
  203. package/dist/{index-CbAh0Kfo.d.cts → index-BuJ4i2G8.d.cts} +3 -3
  204. package/dist/index-BuJ4i2G8.d.cts.map +1 -0
  205. package/dist/{index-DjDR6FpI.d.ts → index-BxTjmOVI.d.ts} +36 -36
  206. package/dist/index-BxTjmOVI.d.ts.map +1 -0
  207. package/dist/{index-DTURD6sl.d.cts → index-BySLJ5JG.d.ts} +7 -7
  208. package/dist/index-BySLJ5JG.d.ts.map +1 -0
  209. package/dist/index-C7t64NIn.d.cts +278 -0
  210. package/dist/index-C7t64NIn.d.cts.map +1 -0
  211. package/dist/{index-C3CvgmJw.d.ts → index-CAMcAf2p.d.cts} +4 -4
  212. package/dist/index-CAMcAf2p.d.cts.map +1 -0
  213. package/dist/{index-796vjEop.d.ts → index-CDdjrJRs.d.ts} +34 -34
  214. package/dist/index-CDdjrJRs.d.ts.map +1 -0
  215. package/dist/index-CELx_Pr_.d.ts +85 -0
  216. package/dist/index-CELx_Pr_.d.ts.map +1 -0
  217. package/dist/{index-D3RMbKbP.d.cts → index-CGjAL8dg.d.cts} +36 -36
  218. package/dist/index-CGjAL8dg.d.cts.map +1 -0
  219. package/dist/{index-DsyY9X04.d.cts → index-CYMw1FYm.d.cts} +3 -3
  220. package/dist/index-CYMw1FYm.d.cts.map +1 -0
  221. package/dist/{index-Cj5CLBt2.d.cts → index-Cbz1wgYP.d.ts} +4 -4
  222. package/dist/index-Cbz1wgYP.d.ts.map +1 -0
  223. package/dist/index-ChOoZHFX.d.ts +278 -0
  224. package/dist/index-ChOoZHFX.d.ts.map +1 -0
  225. package/dist/{index-Bo79xzb4.d.cts → index-CjbJYNFd.d.cts} +4 -4
  226. package/dist/index-CjbJYNFd.d.cts.map +1 -0
  227. package/dist/{index-DxfiwbJb.d.cts → index-CluXcbJV.d.cts} +18 -34
  228. package/dist/index-CluXcbJV.d.cts.map +1 -0
  229. package/dist/index-CwtoC1DE.d.cts +85 -0
  230. package/dist/index-CwtoC1DE.d.cts.map +1 -0
  231. package/dist/{index-BgXr1v45.d.cts → index-DUbBP1s0.d.cts} +34 -34
  232. package/dist/index-DUbBP1s0.d.cts.map +1 -0
  233. package/dist/{index-Cj-PU3Ck.d.ts → index-DWK4jUn6.d.cts} +34 -35
  234. package/dist/index-DWK4jUn6.d.cts.map +1 -0
  235. package/dist/{index-B_1td56I.d.ts → index-DYSdHsro.d.cts} +5 -5
  236. package/dist/index-DYSdHsro.d.cts.map +1 -0
  237. package/dist/{index-DAeb_8Q4.d.cts → index-Dp-7JoRm.d.cts} +31 -43
  238. package/dist/index-Dp-7JoRm.d.cts.map +1 -0
  239. package/dist/{index-Dy0m4FQj.d.ts → index-DrKDlcRp.d.cts} +7 -7
  240. package/dist/index-DrKDlcRp.d.cts.map +1 -0
  241. package/dist/{index-BD9y--o2.d.cts → index-MThhiwEy.d.ts} +6 -6
  242. package/dist/index-MThhiwEy.d.ts.map +1 -0
  243. package/dist/{index-C4-1V8jn.d.ts → index-Nzma24Py.d.ts} +3 -3
  244. package/dist/index-Nzma24Py.d.ts.map +1 -0
  245. package/dist/{index-CrxSEKKb.d.cts → index-RJd0nXDb.d.cts} +48 -48
  246. package/dist/index-RJd0nXDb.d.cts.map +1 -0
  247. package/dist/{index-DEJghucW.d.cts → index-SrU5788P.d.cts} +3 -3
  248. package/dist/index-SrU5788P.d.cts.map +1 -0
  249. package/dist/{index-gWYaaO6O.d.ts → index-htE4x59X.d.ts} +18 -34
  250. package/dist/index-htE4x59X.d.ts.map +1 -0
  251. package/dist/index.cjs +28 -27
  252. package/dist/index.d.cts +28 -28
  253. package/dist/index.d.ts +31 -31
  254. package/dist/index.js +28 -28
  255. package/dist/partials/FieldCopyTestIdButton/index.cjs +1 -1
  256. package/dist/partials/FieldCopyTestIdButton/index.d.cts +1 -1
  257. package/dist/partials/FieldCopyTestIdButton/index.d.ts +1 -1
  258. package/dist/partials/FieldCopyTestIdButton/index.js +1 -1
  259. package/dist/partials/FieldValidationError/index.cjs +1 -1
  260. package/dist/partials/FieldValidationError/index.d.cts +1 -1
  261. package/dist/partials/FieldValidationError/index.d.ts +1 -1
  262. package/dist/partials/FieldValidationError/index.js +1 -1
  263. package/dist/{useClientValidation-C6Daq53C.js → useClientValidation-DksyV18M.js} +3 -3
  264. package/dist/{useClientValidation-C6Daq53C.js.map → useClientValidation-DksyV18M.js.map} +1 -1
  265. package/dist/{useClientValidation-DzomULfo.cjs → useClientValidation-Dnj_wuwf.cjs} +4 -4
  266. package/dist/{useClientValidation-DzomULfo.cjs.map → useClientValidation-Dnj_wuwf.cjs.map} +1 -1
  267. package/dist/{useClientValidation-Bg0q3Axc.d.ts → useClientValidation-Dw-dmynu.d.cts} +1 -2
  268. package/dist/useClientValidation-Dw-dmynu.d.cts.map +1 -0
  269. package/dist/{useClientValidation-BvPDQmf6.d.cts → useClientValidation-DxFgfsEI.d.ts} +1 -2
  270. package/dist/useClientValidation-DxFgfsEI.d.ts.map +1 -0
  271. package/dist/{useController-oCYPeezC.cjs → useController-B_SSp5Z5.cjs} +3 -3
  272. package/dist/{useController-oCYPeezC.cjs.map → useController-B_SSp5Z5.cjs.map} +1 -1
  273. package/dist/{useController-C6Pg9T_3.d.cts → useController-CvPWE2Sy.d.cts} +1 -1
  274. package/dist/useController-CvPWE2Sy.d.cts.map +1 -0
  275. package/dist/{useController-BJ2SBdky.d.ts → useController-DfiNbuEz.d.ts} +1 -1
  276. package/dist/useController-DfiNbuEz.d.ts.map +1 -0
  277. package/dist/{useController-QcOl0O0v.js → useController-NjuthTyL.js} +3 -3
  278. package/dist/{useController-QcOl0O0v.js.map → useController-NjuthTyL.js.map} +1 -1
  279. package/dist/{useFormContext-B2TS6xq0.d.ts → useFormContext-C6OOtqZ5.d.ts} +18 -18
  280. package/dist/useFormContext-C6OOtqZ5.d.ts.map +1 -0
  281. package/dist/{useFormContext-356X5XAY.js → useFormContext-CLymm_7t.js} +1 -1
  282. package/dist/{useFormContext-356X5XAY.js.map → useFormContext-CLymm_7t.js.map} +1 -1
  283. package/dist/{useFormContext-n3WYgGkW.d.cts → useFormContext-Dh97YG47.d.cts} +18 -18
  284. package/dist/useFormContext-Dh97YG47.d.cts.map +1 -0
  285. package/dist/{useFormContext-UFBqUfOr.js → useFormContext-Di67HIf7.js} +3 -3
  286. package/dist/{useFormContext-UFBqUfOr.js.map → useFormContext-Di67HIf7.js.map} +1 -1
  287. package/dist/{useFormContext-DJiJlfGJ.cjs → useFormContext-vdeeDsAs.cjs} +3 -3
  288. package/dist/{useFormContext-DJiJlfGJ.cjs.map → useFormContext-vdeeDsAs.cjs.map} +1 -1
  289. package/dist/{useInputValueDebounce-KIKsvSLm.cjs → useInputValueDebounce-CRaM7HEM.cjs} +3 -3
  290. package/dist/{useInputValueDebounce-KIKsvSLm.cjs.map → useInputValueDebounce-CRaM7HEM.cjs.map} +1 -1
  291. package/dist/{useInputValueDebounce-D9wArTKz.js → useInputValueDebounce-DJO5uzLb.js} +2 -2
  292. package/dist/{useInputValueDebounce-D9wArTKz.js.map → useInputValueDebounce-DJO5uzLb.js.map} +1 -1
  293. package/dist/{useInputValueDebounce-fhmVn1aO.d.ts → useInputValueDebounce-Dhlv1NUY.d.ts} +1 -1
  294. package/dist/useInputValueDebounce-Dhlv1NUY.d.ts.map +1 -0
  295. package/dist/{useInputValueDebounce-DI1C6oaU.d.cts → useInputValueDebounce-ZLyAmuXV.d.cts} +1 -1
  296. package/dist/useInputValueDebounce-ZLyAmuXV.d.cts.map +1 -0
  297. package/dist/{useInputValueTransform-DuhPVE4L.cjs → useInputValueTransform-BBRvvhDe.cjs} +2 -2
  298. package/dist/{useInputValueTransform-DuhPVE4L.cjs.map → useInputValueTransform-BBRvvhDe.cjs.map} +1 -1
  299. package/dist/{useInputValueTransform-CMNC21vX.js → useInputValueTransform-C-fmz3ke.js} +1 -1
  300. package/dist/{useInputValueTransform-CMNC21vX.js.map → useInputValueTransform-C-fmz3ke.js.map} +1 -1
  301. package/dist/{useInputValueTransform-BV8o0PMI.d.cts → useInputValueTransform-CNCBU7a9.d.cts} +1 -1
  302. package/dist/useInputValueTransform-CNCBU7a9.d.cts.map +1 -0
  303. package/dist/{useInputValueTransform-Cc0qEsnS.d.ts → useInputValueTransform-tsMNM7g_.d.ts} +1 -1
  304. package/dist/useInputValueTransform-tsMNM7g_.d.ts.map +1 -0
  305. package/dist/{useUniformField-Dd3AnpgE.cjs → useUniformField-6c4OCAfb.cjs} +9 -29
  306. package/dist/useUniformField-6c4OCAfb.cjs.map +1 -0
  307. package/dist/{useUniformField-C6oSAFa3.js → useUniformField-C-Xyu-8v.js} +9 -29
  308. package/dist/useUniformField-C-Xyu-8v.js.map +1 -0
  309. package/dist/{useUniformField-CXSaAVTt.d.ts → useUniformField-CqqIJtqo.d.ts} +5 -5
  310. package/dist/useUniformField-CqqIJtqo.d.ts.map +1 -0
  311. package/dist/{useUniformField-ETnay_UI.d.cts → useUniformField-DIb__gKK.d.cts} +5 -5
  312. package/dist/useUniformField-DIb__gKK.d.cts.map +1 -0
  313. package/dist/{useUniformFieldArray-COtgcAnp.d.ts → useUniformFieldArray-4MOU0xac.d.ts} +14 -14
  314. package/dist/useUniformFieldArray-4MOU0xac.d.ts.map +1 -0
  315. package/dist/{useUniformFieldArray-4pUdrWYT.d.cts → useUniformFieldArray-BChcZvc5.d.cts} +14 -14
  316. package/dist/useUniformFieldArray-BChcZvc5.d.cts.map +1 -0
  317. package/dist/{useUniformFieldArray-DNrmEXLg.js → useUniformFieldArray-BKvA0FQW.js} +4 -4
  318. package/dist/{useUniformFieldArray-DNrmEXLg.js.map → useUniformFieldArray-BKvA0FQW.js.map} +1 -1
  319. package/dist/{useUniformFieldArray-D93AUZI4.cjs → useUniformFieldArray-CRCbV1J2.cjs} +5 -5
  320. package/dist/{useUniformFieldArray-D93AUZI4.cjs.map → useUniformFieldArray-CRCbV1J2.cjs.map} +1 -1
  321. package/dist/{useWatchUserChange-jivI5KIB.cjs → useWatchUserChange-C1Kluht2.cjs} +3 -3
  322. package/dist/{useWatchUserChange-jivI5KIB.cjs.map → useWatchUserChange-C1Kluht2.cjs.map} +1 -1
  323. package/dist/{useWatchUserChange-DX6gUHvM.d.ts → useWatchUserChange-CYd_8zeN.d.ts} +1 -1
  324. package/dist/useWatchUserChange-CYd_8zeN.d.ts.map +1 -0
  325. package/dist/{useWatchUserChange-cI5-j6M4.d.cts → useWatchUserChange-DedTNvGV.d.cts} +1 -1
  326. package/dist/useWatchUserChange-DedTNvGV.d.cts.map +1 -0
  327. package/dist/{useWatchUserChange-DyhUYlrN.js → useWatchUserChange-Dj9Imxfi.js} +2 -2
  328. package/dist/{useWatchUserChange-DyhUYlrN.js.map → useWatchUserChange-Dj9Imxfi.js.map} +1 -1
  329. package/package.json +8 -8
  330. package/dist/FieldCard-38ZBBWyE.cjs.map +0 -1
  331. package/dist/FieldCard-7XiCb6jZ.js.map +0 -1
  332. package/dist/FormContext-C2_WMi_v.d.ts.map +0 -1
  333. package/dist/FormContext-CeFKQmVH.cjs.map +0 -1
  334. package/dist/FormContext-DHYlCZ2u.js.map +0 -1
  335. package/dist/FormContext-Dl7KL_wl.d.cts.map +0 -1
  336. package/dist/index-796vjEop.d.ts.map +0 -1
  337. package/dist/index-B62CWrcm.d.ts +0 -97
  338. package/dist/index-B62CWrcm.d.ts.map +0 -1
  339. package/dist/index-BD9y--o2.d.cts.map +0 -1
  340. package/dist/index-BFLKkqA3.d.ts.map +0 -1
  341. package/dist/index-BV_YDI6g.d.ts.map +0 -1
  342. package/dist/index-BW9EUWZE.d.cts.map +0 -1
  343. package/dist/index-B_1td56I.d.ts.map +0 -1
  344. package/dist/index-BgXr1v45.d.cts.map +0 -1
  345. package/dist/index-Bo79xzb4.d.cts.map +0 -1
  346. package/dist/index-C3CvgmJw.d.ts.map +0 -1
  347. package/dist/index-C4-1V8jn.d.ts.map +0 -1
  348. package/dist/index-CB00FCyi.d.ts.map +0 -1
  349. package/dist/index-COwP53Gx.d.ts +0 -278
  350. package/dist/index-COwP53Gx.d.ts.map +0 -1
  351. package/dist/index-CUy2EDqc.d.cts.map +0 -1
  352. package/dist/index-CbAh0Kfo.d.cts.map +0 -1
  353. package/dist/index-Cj-PU3Ck.d.ts.map +0 -1
  354. package/dist/index-Cj5CLBt2.d.cts.map +0 -1
  355. package/dist/index-CrxSEKKb.d.cts.map +0 -1
  356. package/dist/index-D3RMbKbP.d.cts.map +0 -1
  357. package/dist/index-DAeb_8Q4.d.cts.map +0 -1
  358. package/dist/index-DEJghucW.d.cts.map +0 -1
  359. package/dist/index-DJbdReTK.d.ts.map +0 -1
  360. package/dist/index-DTURD6sl.d.cts.map +0 -1
  361. package/dist/index-DebErIUS.d.ts.map +0 -1
  362. package/dist/index-DfGCI-K_.d.cts +0 -278
  363. package/dist/index-DfGCI-K_.d.cts.map +0 -1
  364. package/dist/index-DjDR6FpI.d.ts.map +0 -1
  365. package/dist/index-DsyY9X04.d.cts.map +0 -1
  366. package/dist/index-DxfiwbJb.d.cts.map +0 -1
  367. package/dist/index-Dy0m4FQj.d.ts.map +0 -1
  368. package/dist/index-Y8XsRdxS.d.cts +0 -97
  369. package/dist/index-Y8XsRdxS.d.cts.map +0 -1
  370. package/dist/index-aHcGnXHf.d.ts.map +0 -1
  371. package/dist/index-gWYaaO6O.d.ts.map +0 -1
  372. package/dist/index-nVYabHcT.d.cts.map +0 -1
  373. package/dist/index-pE9osud2.d.ts.map +0 -1
  374. package/dist/useClientValidation-Bg0q3Axc.d.ts.map +0 -1
  375. package/dist/useClientValidation-BvPDQmf6.d.cts.map +0 -1
  376. package/dist/useController-BJ2SBdky.d.ts.map +0 -1
  377. package/dist/useController-C6Pg9T_3.d.cts.map +0 -1
  378. package/dist/useFormContext-B2TS6xq0.d.ts.map +0 -1
  379. package/dist/useFormContext-n3WYgGkW.d.cts.map +0 -1
  380. package/dist/useInputValueDebounce-DI1C6oaU.d.cts.map +0 -1
  381. package/dist/useInputValueDebounce-fhmVn1aO.d.ts.map +0 -1
  382. package/dist/useInputValueTransform-BV8o0PMI.d.cts.map +0 -1
  383. package/dist/useInputValueTransform-Cc0qEsnS.d.ts.map +0 -1
  384. package/dist/useUniformField-C6oSAFa3.js.map +0 -1
  385. package/dist/useUniformField-CXSaAVTt.d.ts.map +0 -1
  386. package/dist/useUniformField-Dd3AnpgE.cjs.map +0 -1
  387. package/dist/useUniformField-ETnay_UI.d.cts.map +0 -1
  388. package/dist/useUniformFieldArray-4pUdrWYT.d.cts.map +0 -1
  389. package/dist/useUniformFieldArray-COtgcAnp.d.ts.map +0 -1
  390. package/dist/useWatchUserChange-DX6gUHvM.d.ts.map +0 -1
  391. package/dist/useWatchUserChange-cI5-j6M4.d.cts.map +0 -1
  392. /package/dist/{index-BLREDRDJ.d.cts → index-BMCcWGYS.d.ts} +0 -0
  393. /package/dist/{index-BRLjimYW.d.ts → index-C8k_zgEm.d.cts} +0 -0
  394. /package/dist/{index-BYrmFhKl.d.ts → index-D86jXpHS.d.cts} +0 -0
  395. /package/dist/{index-CFBmva_r.d.ts → index-DDRpa5CJ.d.cts} +0 -0
  396. /package/dist/{index-DpEKQcoR.d.cts → index-GGHuYh77.d.ts} +0 -0
  397. /package/dist/{index-lQ_hGQ08.d.cts → index-hIBrhvnj.d.ts} +0 -0
  398. /package/dist/{useInput--wjwIBc5.d.cts → useInput-BVZvtfNg.d.ts} +0 -0
  399. /package/dist/{useInput-DZ6KGBxw.js → useInput-BWzvIUpW.js} +0 -0
  400. /package/dist/{useInput-BCdeYOOg.d.ts → useInput-CKmKH9Ij.d.cts} +0 -0
@@ -105,4 +105,4 @@ declare const useInputValueTransform: <TDisplay = unknown>({
105
105
  }: UseInputValueTransformOptions<TDisplay>) => UseInputValueTransformReturn<TDisplay>;
106
106
  //#endregion
107
107
  export { useInputValueTransform as i, UseInputValueTransformOptions as n, UseInputValueTransformReturn as r, InputValueTransform as t };
108
- //# sourceMappingURL=useInputValueTransform-Cc0qEsnS.d.ts.map
108
+ //# sourceMappingURL=useInputValueTransform-tsMNM7g_.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useInputValueTransform-tsMNM7g_.d.ts","names":[],"sources":["../src/hooks/useInputValueTransform/useInputValueTransform.ts"],"mappings":";UAEiB,mBAAA;EAAA;EAEf,cAAA,GAAiB,KAAA,cAAmB,QAAA;EAFF;EAIlC,WAAA,GAAc,KAAA,EAAO,QAAA;AAAA;AAAA,UAGN,6BAAA;EALE;EAOjB,IAAA;EALA;EAOA,SAAA,GAAY,mBAAA,CAAoB,QAAA;AAAA;AAAA,UAGjB,4BAAA;EAVc;EAY7B,cAAA,GAAiB,SAAA,cAAuB,QAAA;EATI;EAW5C,WAAA,GAAc,YAAA,EAAc,QAAA;AAAA;;;;;;;;AAJ9B;;;;;;;;;;;;;AAyFA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAAa,sBAAA;EAA8C,IAAA;EAAA;AAAA,GAGxD,6BAAA,CAA8B,QAAA,MAAY,4BAAA,CAA6B,QAAA"}
@@ -1,11 +1,10 @@
1
- const require_FormContext = require('./FormContext-CeFKQmVH.cjs');
2
- const require_helpers = require('./helpers-CncbgvW_.cjs');
3
- const require_FieldCopyTestIdButton = require('./FieldCopyTestIdButton-DxJYKqrz.cjs');
4
- const require_FieldValidationError = require('./FieldValidationError-A384-L3Y.cjs');
5
- const require_useController = require('./useController-oCYPeezC.cjs');
6
- const require_useFormContext = require('./useFormContext-DJiJlfGJ.cjs');
7
- const require_useInputValueTransform = require('./useInputValueTransform-DuhPVE4L.cjs');
8
- let _fuf_stack_pixel_utils = require("@fuf-stack/pixel-utils");
1
+ const require_FormContext = require('./FormContext-BSLO2-sO.cjs');
2
+ const require_helpers = require('./helpers-Bd_QpqXg.cjs');
3
+ const require_FieldCopyTestIdButton = require('./FieldCopyTestIdButton-4uupFq1U.cjs');
4
+ const require_FieldValidationError = require('./FieldValidationError-Br6iopZj.cjs');
5
+ const require_useController = require('./useController-B_SSp5Z5.cjs');
6
+ const require_useFormContext = require('./useFormContext-vdeeDsAs.cjs');
7
+ const require_useInputValueTransform = require('./useInputValueTransform-BBRvvhDe.cjs');
9
8
  let react = require("react");
10
9
  react = require_FormContext.__toESM(react);
11
10
  let _fuf_stack_pixels = require("@fuf-stack/pixels");
@@ -14,25 +13,6 @@ let _heroui_input = require("@heroui/input");
14
13
 
15
14
  //#region src/hooks/useUniformField/useUniformField.tsx
16
15
  /**
17
- * Debounce invalid state changes to prevent UI flicker on rapid changes.
18
- *
19
- * Primary purpose: Reduce UI flicker when validation state changes rapidly
20
- * (e.g., during fast typing). Without debouncing, error messages would flash
21
- * in/out rapidly, creating a poor UX.
22
- *
23
- * Secondary benefit: When animations are enabled (default), gives time for
24
- * enter/exit animations to complete smoothly.
25
- *
26
- * Behavior:
27
- * - Debounces both true → false and false → true transitions by `delayMs`
28
- * - Disabled in test environments for immediate snapshots
29
- */
30
- const useDebouncedInvalid = (invalid, delayMs) => {
31
- const debouncedInvalid = (0, _fuf_stack_pixels.useDebounce)(invalid, delayMs);
32
- if ((0, _fuf_stack_pixel_utils.isTestEnvironment)()) return invalid;
33
- return debouncedInvalid;
34
- };
35
- /**
36
16
  * Combines frequently used form field logic into a single hook.
37
17
  *
38
18
  * Provides:
@@ -104,7 +84,7 @@ const useUniformField = (params) => {
104
84
  * The entire condition is debounced to prevent flickering and allow smooth animations.
105
85
  */
106
86
  const hasValue = !require_helpers.isValueEmpty(fieldValue);
107
- const invalid = useDebouncedInvalid(rawInvalid && (hasValue || isTouched || submitCount > 0), 200);
87
+ const invalid = (0, _fuf_stack_pixels.useDebounce)(rawInvalid && (hasValue || isTouched || submitCount > 0), 200);
108
88
  const showTestIdCopyButton = debugMode === "debug-testids";
109
89
  const labelNode = !!label || showTestIdCopyButton ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [label !== false ? label : null, showTestIdCopyButton ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_FieldCopyTestIdButton.FieldCopyTestIdButton_default$1, { testId }) : null] }) : null;
110
90
  const errorMessage = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_FieldValidationError.FieldValidationError_default$1, {
@@ -159,4 +139,4 @@ Object.defineProperty(exports, 'useUniformField', {
159
139
  return useUniformField;
160
140
  }
161
141
  });
162
- //# sourceMappingURL=useUniformField-Dd3AnpgE.cjs.map
142
+ //# sourceMappingURL=useUniformField-6c4OCAfb.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useUniformField-6c4OCAfb.cjs","names":["useFormContext","useController","useInputValueTransform","isValueEmpty","FieldCopyTestIdButton","FieldValidationError"],"sources":["../src/hooks/useUniformField/useUniformField.tsx","../src/hooks/useUniformField/index.ts"],"sourcesContent":["import type { ReactNode } from 'react';\nimport type { FieldError, FieldValues, Path } from 'react-hook-form';\nimport type { InputValueTransform } from '../useInputValueTransform/useInputValueTransform';\n\nimport React from 'react';\n\nimport { useDebounce } from '@fuf-stack/pixels';\n\nimport { isValueEmpty } from '../../helpers';\nimport { FieldCopyTestIdButton } from '../../partials/FieldCopyTestIdButton';\nimport { FieldValidationError } from '../../partials/FieldValidationError';\nimport { useController } from '../useController/useController';\nimport { useFormContext } from '../useFormContext/useFormContext';\nimport { useInput } from '../useInput/useInput';\nimport { useInputValueTransform } from '../useInputValueTransform/useInputValueTransform';\n\nexport interface UseUniformFieldParams<\n TFieldValues extends FieldValues = FieldValues,\n TDisplay = unknown,\n> {\n /** Form field name */\n name: Path<TFieldValues> & string;\n /** Custom aria-label for accessibility. If not provided, falls back to field name when no visible label exists */\n ariaLabel?: string;\n /** Disable the field */\n disabled?: boolean;\n /** Optional label content */\n label?: ReactNode;\n /** Optional explicit test id used to build stable test ids */\n testId?: string;\n /** Optional value transformation between form and display values */\n transform?: InputValueTransform<TDisplay>;\n /** Input type for special number handling */\n type?: 'text' | 'number' | 'password';\n}\n\nexport interface UseUniformFieldReturn<\n TFieldValues extends FieldValues = FieldValues,\n> {\n /** Computed aria-label fallback (field name) when no visible label exists. Components can override based on their accessibility needs (e.g., if placeholder provides sufficient context) */\n ariaLabel: string | undefined;\n /** react-hook-form control instance for advanced integrations */\n control: ReturnType<typeof useFormContext<TFieldValues>>['control'];\n /** Debug mode from Uniform provider */\n debugMode: ReturnType<typeof useFormContext<TFieldValues>>['debugMode'];\n /** Current value used to initialize uncontrolled components */\n defaultValue: unknown;\n /** Whether the field is currently disabled (from RHF) */\n disabled: boolean | undefined;\n /** Validation error(s) for the field */\n error: FieldError[] | undefined;\n /** Pre-built errorMessage node to plug into components */\n errorMessage: ReactNode | null;\n /** RHF controller field with transformed value/onChange (use this for simple components) */\n field: ReturnType<typeof useController<TFieldValues>>['field'];\n /** Helper to spread standardized error message props to underlying components */\n getErrorMessageProps: ReturnType<typeof useInput>['getErrorMessageProps'];\n /** Helper to spread standardized helper wrapper props (for spacing/animation) */\n getHelperWrapperProps: ReturnType<typeof useInput>['getHelperWrapperProps'];\n /** Helper to spread standardized label props to underlying components */\n getLabelProps: ReturnType<typeof useInput>['getLabelProps'];\n /** Access current form values (converted to validation-friendly format) */\n getValues: ReturnType<typeof useFormContext<TFieldValues>>['getValues'];\n /** Whether the field should show invalid state (debounced for smooth animations). True when field is invalid AND (dirty OR touched OR submitted) */\n invalid: boolean;\n /** Computed label node including optional test id copy button */\n label: ReactNode | null;\n /** onBlur handler from controller */\n onBlur: ReturnType<typeof useController<TFieldValues>>['field']['onBlur'];\n /** onChange handler from controller (with transform applied) */\n onChange: ReturnType<typeof useController<TFieldValues>>['field']['onChange'];\n /** Ref to forward to underlying control */\n ref: ReturnType<typeof useController<TFieldValues>>['field']['ref'];\n /** Whether the field is required according to validation schema */\n required: boolean;\n /** Reset a specific field in the form */\n resetField: ReturnType<typeof useFormContext<TFieldValues>>['resetField'];\n /** Generated HTML data-testid for the field */\n testId: string;\n}\n\n/**\n * Combines frequently used form field logic into a single hook.\n *\n * Provides:\n * - Enhanced form context (validation-aware state, `testId`, value transforms)\n * - Controller field with nullish conversion handling\n * - Value transformation via `transform` prop:\n * • Allows disentangled display and form values (e.g., string ↔ object, boolean ↔ array)\n * • Automatically applies `toDisplayValue` to field value for components\n * • Automatically applies `toFormValue` to display value when onChange is called\n * • Works with `type` prop for automatic number/string conversion\n * • Examples: storing objects while displaying strings, storing booleans as arrays, enriching values with metadata\n * - Debounced `invalid` state with smart timing:\n * • `true` (field becomes invalid): applies immediately so errors show right away\n * • `false` (field becomes valid): delayed 200ms to allow smooth exit animations\n * • Respects `prefers-reduced-motion` by skipping delays when user prefers reduced motion\n * - Smart `invalid` visibility (via `showInvalid`):\n * • Shows errors when field is dirty OR touched OR form has been submitted\n * • Prevents showing errors on pristine/untouched fields for better UX\n * • Works well for all field types (text inputs, checkboxes, radios, arrays)\n * - Prebuilt `errorMessage` React node using `FieldValidationError`\n * - Computed `label` node which appends a `FieldCopyTestIdButton` in\n * `debug-testids` mode\n * - `defaultValue` for uncontrolled defaults and all usual field handlers\n * - Access to form utilities: `control`, `getValues`, `resetField`\n * - Presentation helpers: `getLabelProps`, `getErrorMessageProps`,\n * `getHelperWrapperProps` for consistent wiring to underlying UI components\n */\nexport const useUniformField = <\n TFieldValues extends FieldValues = FieldValues,\n TDisplay = unknown,\n>(\n params: UseUniformFieldParams<TFieldValues, TDisplay>,\n): UseUniformFieldReturn<TFieldValues> => {\n const {\n name,\n ariaLabel: customAriaLabel,\n disabled = false,\n testId: explicitTestId,\n label,\n type,\n transform,\n } = params;\n\n const {\n control,\n debugMode,\n formState: { submitCount },\n getFieldState,\n getValues,\n resetField,\n } = useFormContext<TFieldValues>();\n\n const {\n error,\n invalid: rawInvalid,\n isTouched,\n required,\n testId,\n } = getFieldState(name, explicitTestId);\n\n const { field } = useController<TFieldValues>({\n control,\n disabled,\n name,\n });\n const {\n onChange: fieldOnChange,\n value: fieldValue,\n disabled: isDisabled,\n onBlur,\n ref,\n } = field;\n\n // Get transform utilities (but don't apply them automatically)\n // Components can choose how to use them (directly or via useInputValueDebounce)\n const { toDisplayValue, toFormValue } = useInputValueTransform<TDisplay>({\n type,\n transform,\n });\n\n // For components without special needs: apply transform to value and onChange\n const transformedValue = toDisplayValue(fieldValue);\n const transformedOnChange = (eventOrValue: TDisplay | React.ChangeEvent) => {\n // Extract value from event or use value directly\n const displayValue =\n (eventOrValue as React.ChangeEvent<HTMLInputElement>)?.target?.value ??\n eventOrValue;\n const formValue = toFormValue(displayValue as TDisplay);\n fieldOnChange(formValue as typeof fieldValue);\n };\n\n const defaultValue = (getValues() as Record<string, unknown>)?.[\n name as string\n ];\n\n /**\n * Determine when to show the invalid state to the user.\n *\n * Show errors when the field is invalid AND any of these conditions are met:\n * - Field has a value (show validation errors like format/length while typing)\n * - Field is touched (focused and blurred) - good for text inputs\n * - Form has been submitted - shows all errors after submit attempt\n *\n * Note: We intentionally don't use isDirty because:\n * - Newly added array elements are marked \"dirty\" by RHF, causing immediate errors\n * - Field Cards with empty initial values show errors immediately\n * - hasValue + isTouched covers the same use cases more reliably\n *\n * This prevents showing errors on pristine/untouched/empty fields for better UX.\n * Examples:\n * - Text input: User loads form with empty required field → no error shown yet\n * - Text input: User types invalid content → error shows immediately (has value)\n * - Text input: User focuses and blurs without typing → error shows (via isTouched)\n * - Checkbox/radio: User selects option → error shows immediately (has value)\n * - Field array: User adds element → no error yet; after blur → error shows\n * - Any field: User submits form → all errors show (via submitCount)\n *\n * The entire condition is debounced to prevent flickering and allow smooth animations.\n */\n\n // isValueEmpty handles marker strings, flat array wrappers, empty arrays, and empty objects\n const hasValue = !isValueEmpty(fieldValue);\n const showInvalid = rawInvalid && (hasValue || isTouched || submitCount > 0);\n // Debounce to prevent flickering during rapid state changes\n const invalid = useDebounce(showInvalid, 200);\n\n // Build a label node that:\n // - shows the provided label (unless explicitly set to false)\n // - appends a copy-to-clipboard button for the test id in `debug-testids` mode\n // Consumers can pass this directly to component `label` props\n const showTestIdCopyButton = debugMode === 'debug-testids';\n const labelNode: ReactNode | null =\n !!label || showTestIdCopyButton ? (\n <>\n {label !== false ? label : null}\n {showTestIdCopyButton ? (\n <FieldCopyTestIdButton testId={testId} />\n ) : null}\n </>\n ) : null;\n\n // Ready-to-render error message; consumers can drop this into their\n // component `errorMessage` prop without repeating mapping/markup\n const errorMessage = <FieldValidationError error={error} testId={testId} />;\n\n // Generate standardized props for label, helper wrapper and error message\n // so consumers can spread them directly into UI components (e.g. HeroUI),\n // keeping animations/spacing consistent across fields\n const { getErrorMessageProps, getLabelProps, getHelperWrapperProps } =\n useInput({\n ref,\n classNames: {\n // set padding to 0 for error message exit animation\n helperWrapper: 'p-0',\n },\n errorMessage: JSON.stringify(error),\n isInvalid: invalid,\n isRequired: required,\n label,\n labelPlacement: 'outside',\n });\n\n // Compute aria-label: prefer custom prop, then use string label if available, otherwise field name\n // Components can further override this based on their specific accessibility needs\n // (e.g., Input/TextArea may skip this if they have a meaningful placeholder)\n const ariaLabel =\n customAriaLabel ?? (typeof label === 'string' ? label : name);\n\n return {\n ariaLabel,\n control,\n debugMode,\n defaultValue,\n disabled: isDisabled,\n error,\n errorMessage,\n field: {\n ...field,\n value: transformedValue as typeof field.value,\n onChange: transformedOnChange as typeof field.onChange,\n },\n getErrorMessageProps,\n getHelperWrapperProps,\n getLabelProps,\n getValues,\n invalid,\n label: labelNode,\n onBlur,\n onChange: transformedOnChange as typeof field.onChange,\n ref,\n required,\n resetField,\n testId,\n };\n};\n","/* v8 ignore start */\n\nexport * from './useUniformField';\n\n/* v8 ignore stop */\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6GA,MAAa,mBAIX,WACwC;CACxC,MAAM,EACJ,MACA,WAAW,iBACX,WAAW,OACX,QAAQ,gBACR,OACA,MACA,cACE;CAEJ,MAAM,EACJ,SACA,WACA,WAAW,EAAE,eACb,eACA,WACA,eACEA,uCAA8B;CAElC,MAAM,EACJ,OACA,SAAS,YACT,WACA,UACA,WACE,cAAc,MAAM,eAAe;CAEvC,MAAM,EAAE,UAAUC,oCAA4B;EAC5C;EACA;EACA;EACD,CAAC;CACF,MAAM,EACJ,UAAU,eACV,OAAO,YACP,UAAU,YACV,QACA,QACE;CAIJ,MAAM,EAAE,gBAAgB,gBAAgBC,sDAAiC;EACvE;EACA;EACD,CAAC;CAGF,MAAM,mBAAmB,eAAe,WAAW;CACnD,MAAM,uBAAuB,iBAA+C;AAM1E,gBADkB,YAFf,cAAsD,QAAQ,SAC/D,aACqD,CACV;;CAG/C,MAAM,eAAgB,WAAW,GAC/B;;;;;;;;;;;;;;;;;;;;;;;;;CA6BF,MAAM,WAAW,CAACC,6BAAa,WAAW;CAG1C,MAAM,6CAFc,eAAe,YAAY,aAAa,cAAc,IAEjC,IAAI;CAM7C,MAAM,uBAAuB,cAAc;CAC3C,MAAM,YACJ,CAAC,CAAC,SAAS,uBACT,qFACG,UAAU,QAAQ,QAAQ,MAC1B,uBACC,2CAACC,iEAA8B,SAAU,GACvC,QACH,GACD;CAIN,MAAM,eAAe,2CAACC;EAA4B;EAAe;GAAU;CAK3E,MAAM,EAAE,sBAAsB,eAAe,sDAClC;EACP;EACA,YAAY,EAEV,eAAe,OAChB;EACD,cAAc,KAAK,UAAU,MAAM;EACnC,WAAW;EACX,YAAY;EACZ;EACA,gBAAgB;EACjB,CAAC;AAQJ,QAAO;EACL,WAHA,oBAAoB,OAAO,UAAU,WAAW,QAAQ;EAIxD;EACA;EACA;EACA,UAAU;EACV;EACA;EACA,OAAO;GACL,GAAG;GACH,OAAO;GACP,UAAU;GACX;EACD;EACA;EACA;EACA;EACA;EACA,OAAO;EACP;EACA,UAAU;EACV;EACA;EACA;EACA;EACD"}
@@ -1,36 +1,16 @@
1
- import { r as isValueEmpty } from "./helpers-D3A5d3M1.js";
2
- import { n as FieldCopyTestIdButton_default } from "./FieldCopyTestIdButton-D9f1B-VS.js";
3
- import { n as FieldValidationError_default } from "./FieldValidationError-BYwitb_B.js";
4
- import { t as useController } from "./useController-QcOl0O0v.js";
5
- import { n as useFormContext } from "./useFormContext-UFBqUfOr.js";
6
- import { t as useInput } from "./useInput-DZ6KGBxw.js";
7
- import { t as useInputValueTransform } from "./useInputValueTransform-CMNC21vX.js";
8
- import { isTestEnvironment } from "@fuf-stack/pixel-utils";
1
+ import { r as isValueEmpty } from "./helpers-33jajRcN.js";
2
+ import { n as FieldCopyTestIdButton_default } from "./FieldCopyTestIdButton-BoEdlzLs.js";
3
+ import { n as FieldValidationError_default } from "./FieldValidationError-XQaViV52.js";
4
+ import { t as useController } from "./useController-NjuthTyL.js";
5
+ import { n as useFormContext } from "./useFormContext-Di67HIf7.js";
6
+ import { t as useInput } from "./useInput-BWzvIUpW.js";
7
+ import { t as useInputValueTransform } from "./useInputValueTransform-C-fmz3ke.js";
9
8
  import React from "react";
10
9
  import { useDebounce } from "@fuf-stack/pixels";
11
10
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
12
11
 
13
12
  //#region src/hooks/useUniformField/useUniformField.tsx
14
13
  /**
15
- * Debounce invalid state changes to prevent UI flicker on rapid changes.
16
- *
17
- * Primary purpose: Reduce UI flicker when validation state changes rapidly
18
- * (e.g., during fast typing). Without debouncing, error messages would flash
19
- * in/out rapidly, creating a poor UX.
20
- *
21
- * Secondary benefit: When animations are enabled (default), gives time for
22
- * enter/exit animations to complete smoothly.
23
- *
24
- * Behavior:
25
- * - Debounces both true → false and false → true transitions by `delayMs`
26
- * - Disabled in test environments for immediate snapshots
27
- */
28
- const useDebouncedInvalid = (invalid, delayMs) => {
29
- const debouncedInvalid = useDebounce(invalid, delayMs);
30
- if (isTestEnvironment()) return invalid;
31
- return debouncedInvalid;
32
- };
33
- /**
34
14
  * Combines frequently used form field logic into a single hook.
35
15
  *
36
16
  * Provides:
@@ -102,7 +82,7 @@ const useUniformField = (params) => {
102
82
  * The entire condition is debounced to prevent flickering and allow smooth animations.
103
83
  */
104
84
  const hasValue = !isValueEmpty(fieldValue);
105
- const invalid = useDebouncedInvalid(rawInvalid && (hasValue || isTouched || submitCount > 0), 200);
85
+ const invalid = useDebounce(rawInvalid && (hasValue || isTouched || submitCount > 0), 200);
106
86
  const showTestIdCopyButton = debugMode === "debug-testids";
107
87
  const labelNode = !!label || showTestIdCopyButton ? /* @__PURE__ */ jsxs(Fragment, { children: [label !== false ? label : null, showTestIdCopyButton ? /* @__PURE__ */ jsx(FieldCopyTestIdButton_default, { testId }) : null] }) : null;
108
88
  const errorMessage = /* @__PURE__ */ jsx(FieldValidationError_default, {
@@ -152,4 +132,4 @@ const useUniformField = (params) => {
152
132
 
153
133
  //#endregion
154
134
  export { useUniformField as t };
155
- //# sourceMappingURL=useUniformField-C6oSAFa3.js.map
135
+ //# sourceMappingURL=useUniformField-C-Xyu-8v.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useUniformField-C-Xyu-8v.js","names":["FieldCopyTestIdButton","FieldValidationError"],"sources":["../src/hooks/useUniformField/useUniformField.tsx","../src/hooks/useUniformField/index.ts"],"sourcesContent":["import type { ReactNode } from 'react';\nimport type { FieldError, FieldValues, Path } from 'react-hook-form';\nimport type { InputValueTransform } from '../useInputValueTransform/useInputValueTransform';\n\nimport React from 'react';\n\nimport { useDebounce } from '@fuf-stack/pixels';\n\nimport { isValueEmpty } from '../../helpers';\nimport { FieldCopyTestIdButton } from '../../partials/FieldCopyTestIdButton';\nimport { FieldValidationError } from '../../partials/FieldValidationError';\nimport { useController } from '../useController/useController';\nimport { useFormContext } from '../useFormContext/useFormContext';\nimport { useInput } from '../useInput/useInput';\nimport { useInputValueTransform } from '../useInputValueTransform/useInputValueTransform';\n\nexport interface UseUniformFieldParams<\n TFieldValues extends FieldValues = FieldValues,\n TDisplay = unknown,\n> {\n /** Form field name */\n name: Path<TFieldValues> & string;\n /** Custom aria-label for accessibility. If not provided, falls back to field name when no visible label exists */\n ariaLabel?: string;\n /** Disable the field */\n disabled?: boolean;\n /** Optional label content */\n label?: ReactNode;\n /** Optional explicit test id used to build stable test ids */\n testId?: string;\n /** Optional value transformation between form and display values */\n transform?: InputValueTransform<TDisplay>;\n /** Input type for special number handling */\n type?: 'text' | 'number' | 'password';\n}\n\nexport interface UseUniformFieldReturn<\n TFieldValues extends FieldValues = FieldValues,\n> {\n /** Computed aria-label fallback (field name) when no visible label exists. Components can override based on their accessibility needs (e.g., if placeholder provides sufficient context) */\n ariaLabel: string | undefined;\n /** react-hook-form control instance for advanced integrations */\n control: ReturnType<typeof useFormContext<TFieldValues>>['control'];\n /** Debug mode from Uniform provider */\n debugMode: ReturnType<typeof useFormContext<TFieldValues>>['debugMode'];\n /** Current value used to initialize uncontrolled components */\n defaultValue: unknown;\n /** Whether the field is currently disabled (from RHF) */\n disabled: boolean | undefined;\n /** Validation error(s) for the field */\n error: FieldError[] | undefined;\n /** Pre-built errorMessage node to plug into components */\n errorMessage: ReactNode | null;\n /** RHF controller field with transformed value/onChange (use this for simple components) */\n field: ReturnType<typeof useController<TFieldValues>>['field'];\n /** Helper to spread standardized error message props to underlying components */\n getErrorMessageProps: ReturnType<typeof useInput>['getErrorMessageProps'];\n /** Helper to spread standardized helper wrapper props (for spacing/animation) */\n getHelperWrapperProps: ReturnType<typeof useInput>['getHelperWrapperProps'];\n /** Helper to spread standardized label props to underlying components */\n getLabelProps: ReturnType<typeof useInput>['getLabelProps'];\n /** Access current form values (converted to validation-friendly format) */\n getValues: ReturnType<typeof useFormContext<TFieldValues>>['getValues'];\n /** Whether the field should show invalid state (debounced for smooth animations). True when field is invalid AND (dirty OR touched OR submitted) */\n invalid: boolean;\n /** Computed label node including optional test id copy button */\n label: ReactNode | null;\n /** onBlur handler from controller */\n onBlur: ReturnType<typeof useController<TFieldValues>>['field']['onBlur'];\n /** onChange handler from controller (with transform applied) */\n onChange: ReturnType<typeof useController<TFieldValues>>['field']['onChange'];\n /** Ref to forward to underlying control */\n ref: ReturnType<typeof useController<TFieldValues>>['field']['ref'];\n /** Whether the field is required according to validation schema */\n required: boolean;\n /** Reset a specific field in the form */\n resetField: ReturnType<typeof useFormContext<TFieldValues>>['resetField'];\n /** Generated HTML data-testid for the field */\n testId: string;\n}\n\n/**\n * Combines frequently used form field logic into a single hook.\n *\n * Provides:\n * - Enhanced form context (validation-aware state, `testId`, value transforms)\n * - Controller field with nullish conversion handling\n * - Value transformation via `transform` prop:\n * • Allows disentangled display and form values (e.g., string ↔ object, boolean ↔ array)\n * • Automatically applies `toDisplayValue` to field value for components\n * • Automatically applies `toFormValue` to display value when onChange is called\n * • Works with `type` prop for automatic number/string conversion\n * • Examples: storing objects while displaying strings, storing booleans as arrays, enriching values with metadata\n * - Debounced `invalid` state with smart timing:\n * • `true` (field becomes invalid): applies immediately so errors show right away\n * • `false` (field becomes valid): delayed 200ms to allow smooth exit animations\n * • Respects `prefers-reduced-motion` by skipping delays when user prefers reduced motion\n * - Smart `invalid` visibility (via `showInvalid`):\n * • Shows errors when field is dirty OR touched OR form has been submitted\n * • Prevents showing errors on pristine/untouched fields for better UX\n * • Works well for all field types (text inputs, checkboxes, radios, arrays)\n * - Prebuilt `errorMessage` React node using `FieldValidationError`\n * - Computed `label` node which appends a `FieldCopyTestIdButton` in\n * `debug-testids` mode\n * - `defaultValue` for uncontrolled defaults and all usual field handlers\n * - Access to form utilities: `control`, `getValues`, `resetField`\n * - Presentation helpers: `getLabelProps`, `getErrorMessageProps`,\n * `getHelperWrapperProps` for consistent wiring to underlying UI components\n */\nexport const useUniformField = <\n TFieldValues extends FieldValues = FieldValues,\n TDisplay = unknown,\n>(\n params: UseUniformFieldParams<TFieldValues, TDisplay>,\n): UseUniformFieldReturn<TFieldValues> => {\n const {\n name,\n ariaLabel: customAriaLabel,\n disabled = false,\n testId: explicitTestId,\n label,\n type,\n transform,\n } = params;\n\n const {\n control,\n debugMode,\n formState: { submitCount },\n getFieldState,\n getValues,\n resetField,\n } = useFormContext<TFieldValues>();\n\n const {\n error,\n invalid: rawInvalid,\n isTouched,\n required,\n testId,\n } = getFieldState(name, explicitTestId);\n\n const { field } = useController<TFieldValues>({\n control,\n disabled,\n name,\n });\n const {\n onChange: fieldOnChange,\n value: fieldValue,\n disabled: isDisabled,\n onBlur,\n ref,\n } = field;\n\n // Get transform utilities (but don't apply them automatically)\n // Components can choose how to use them (directly or via useInputValueDebounce)\n const { toDisplayValue, toFormValue } = useInputValueTransform<TDisplay>({\n type,\n transform,\n });\n\n // For components without special needs: apply transform to value and onChange\n const transformedValue = toDisplayValue(fieldValue);\n const transformedOnChange = (eventOrValue: TDisplay | React.ChangeEvent) => {\n // Extract value from event or use value directly\n const displayValue =\n (eventOrValue as React.ChangeEvent<HTMLInputElement>)?.target?.value ??\n eventOrValue;\n const formValue = toFormValue(displayValue as TDisplay);\n fieldOnChange(formValue as typeof fieldValue);\n };\n\n const defaultValue = (getValues() as Record<string, unknown>)?.[\n name as string\n ];\n\n /**\n * Determine when to show the invalid state to the user.\n *\n * Show errors when the field is invalid AND any of these conditions are met:\n * - Field has a value (show validation errors like format/length while typing)\n * - Field is touched (focused and blurred) - good for text inputs\n * - Form has been submitted - shows all errors after submit attempt\n *\n * Note: We intentionally don't use isDirty because:\n * - Newly added array elements are marked \"dirty\" by RHF, causing immediate errors\n * - Field Cards with empty initial values show errors immediately\n * - hasValue + isTouched covers the same use cases more reliably\n *\n * This prevents showing errors on pristine/untouched/empty fields for better UX.\n * Examples:\n * - Text input: User loads form with empty required field → no error shown yet\n * - Text input: User types invalid content → error shows immediately (has value)\n * - Text input: User focuses and blurs without typing → error shows (via isTouched)\n * - Checkbox/radio: User selects option → error shows immediately (has value)\n * - Field array: User adds element → no error yet; after blur → error shows\n * - Any field: User submits form → all errors show (via submitCount)\n *\n * The entire condition is debounced to prevent flickering and allow smooth animations.\n */\n\n // isValueEmpty handles marker strings, flat array wrappers, empty arrays, and empty objects\n const hasValue = !isValueEmpty(fieldValue);\n const showInvalid = rawInvalid && (hasValue || isTouched || submitCount > 0);\n // Debounce to prevent flickering during rapid state changes\n const invalid = useDebounce(showInvalid, 200);\n\n // Build a label node that:\n // - shows the provided label (unless explicitly set to false)\n // - appends a copy-to-clipboard button for the test id in `debug-testids` mode\n // Consumers can pass this directly to component `label` props\n const showTestIdCopyButton = debugMode === 'debug-testids';\n const labelNode: ReactNode | null =\n !!label || showTestIdCopyButton ? (\n <>\n {label !== false ? label : null}\n {showTestIdCopyButton ? (\n <FieldCopyTestIdButton testId={testId} />\n ) : null}\n </>\n ) : null;\n\n // Ready-to-render error message; consumers can drop this into their\n // component `errorMessage` prop without repeating mapping/markup\n const errorMessage = <FieldValidationError error={error} testId={testId} />;\n\n // Generate standardized props for label, helper wrapper and error message\n // so consumers can spread them directly into UI components (e.g. HeroUI),\n // keeping animations/spacing consistent across fields\n const { getErrorMessageProps, getLabelProps, getHelperWrapperProps } =\n useInput({\n ref,\n classNames: {\n // set padding to 0 for error message exit animation\n helperWrapper: 'p-0',\n },\n errorMessage: JSON.stringify(error),\n isInvalid: invalid,\n isRequired: required,\n label,\n labelPlacement: 'outside',\n });\n\n // Compute aria-label: prefer custom prop, then use string label if available, otherwise field name\n // Components can further override this based on their specific accessibility needs\n // (e.g., Input/TextArea may skip this if they have a meaningful placeholder)\n const ariaLabel =\n customAriaLabel ?? (typeof label === 'string' ? label : name);\n\n return {\n ariaLabel,\n control,\n debugMode,\n defaultValue,\n disabled: isDisabled,\n error,\n errorMessage,\n field: {\n ...field,\n value: transformedValue as typeof field.value,\n onChange: transformedOnChange as typeof field.onChange,\n },\n getErrorMessageProps,\n getHelperWrapperProps,\n getLabelProps,\n getValues,\n invalid,\n label: labelNode,\n onBlur,\n onChange: transformedOnChange as typeof field.onChange,\n ref,\n required,\n resetField,\n testId,\n };\n};\n","/* v8 ignore start */\n\nexport * from './useUniformField';\n\n/* v8 ignore stop */\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6GA,MAAa,mBAIX,WACwC;CACxC,MAAM,EACJ,MACA,WAAW,iBACX,WAAW,OACX,QAAQ,gBACR,OACA,MACA,cACE;CAEJ,MAAM,EACJ,SACA,WACA,WAAW,EAAE,eACb,eACA,WACA,eACE,gBAA8B;CAElC,MAAM,EACJ,OACA,SAAS,YACT,WACA,UACA,WACE,cAAc,MAAM,eAAe;CAEvC,MAAM,EAAE,UAAU,cAA4B;EAC5C;EACA;EACA;EACD,CAAC;CACF,MAAM,EACJ,UAAU,eACV,OAAO,YACP,UAAU,YACV,QACA,QACE;CAIJ,MAAM,EAAE,gBAAgB,gBAAgB,uBAAiC;EACvE;EACA;EACD,CAAC;CAGF,MAAM,mBAAmB,eAAe,WAAW;CACnD,MAAM,uBAAuB,iBAA+C;AAM1E,gBADkB,YAFf,cAAsD,QAAQ,SAC/D,aACqD,CACV;;CAG/C,MAAM,eAAgB,WAAW,GAC/B;;;;;;;;;;;;;;;;;;;;;;;;;CA6BF,MAAM,WAAW,CAAC,aAAa,WAAW;CAG1C,MAAM,UAAU,YAFI,eAAe,YAAY,aAAa,cAAc,IAEjC,IAAI;CAM7C,MAAM,uBAAuB,cAAc;CAC3C,MAAM,YACJ,CAAC,CAAC,SAAS,uBACT,4CACG,UAAU,QAAQ,QAAQ,MAC1B,uBACC,oBAACA,iCAA8B,SAAU,GACvC,QACH,GACD;CAIN,MAAM,eAAe,oBAACC;EAA4B;EAAe;GAAU;CAK3E,MAAM,EAAE,sBAAsB,eAAe,0BAC3C,SAAS;EACP;EACA,YAAY,EAEV,eAAe,OAChB;EACD,cAAc,KAAK,UAAU,MAAM;EACnC,WAAW;EACX,YAAY;EACZ;EACA,gBAAgB;EACjB,CAAC;AAQJ,QAAO;EACL,WAHA,oBAAoB,OAAO,UAAU,WAAW,QAAQ;EAIxD;EACA;EACA;EACA,UAAU;EACV;EACA;EACA,OAAO;GACL,GAAG;GACH,OAAO;GACP,UAAU;GACX;EACD;EACA;EACA;EACA;EACA;EACA,OAAO;EACP;EACA,UAAU;EACV;EACA;EACA;EACA;EACD"}
@@ -1,7 +1,7 @@
1
- import { t as InputValueTransform } from "./useInputValueTransform-Cc0qEsnS.js";
2
- import { r as useController$1 } from "./useController-BJ2SBdky.js";
3
- import { n as useFormContext$1 } from "./useFormContext-B2TS6xq0.js";
4
- import { t as useInput } from "./useInput-BCdeYOOg.js";
1
+ import { t as InputValueTransform } from "./useInputValueTransform-tsMNM7g_.js";
2
+ import { r as useController$1 } from "./useController-DfiNbuEz.js";
3
+ import { n as useFormContext$1 } from "./useFormContext-C6OOtqZ5.js";
4
+ import { t as useInput } from "./useInput-BVZvtfNg.js";
5
5
  import { ReactNode } from "react";
6
6
  import { FieldError, FieldValues, Path } from "react-hook-form";
7
7
 
@@ -95,4 +95,4 @@ interface UseUniformFieldReturn<TFieldValues extends FieldValues = FieldValues>
95
95
  declare const useUniformField: <TFieldValues extends FieldValues = FieldValues, TDisplay = unknown>(params: UseUniformFieldParams<TFieldValues, TDisplay>) => UseUniformFieldReturn<TFieldValues>;
96
96
  //#endregion
97
97
  export { UseUniformFieldReturn as n, useUniformField as r, UseUniformFieldParams as t };
98
- //# sourceMappingURL=useUniformField-CXSaAVTt.d.ts.map
98
+ //# sourceMappingURL=useUniformField-CqqIJtqo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useUniformField-CqqIJtqo.d.ts","names":[],"sources":["../src/hooks/useUniformField/useUniformField.tsx"],"mappings":";;;;;;;;UAgBiB,qBAAA,sBACM,WAAA,GAAc,WAAA;;EAInC,IAAA,EAAM,IAAA,CAAK,YAAA;EALyB;EAOpC,SAAA;EANqB;EAQrB,QAAA;EAJW;EAMX,KAAA,GAAQ,SAAA;EAAA;EAER,MAAA;EAEY;EAAZ,SAAA,GAAY,mBAAA,CAAoB,QAAA;EAAD;EAE/B,IAAA;AAAA;AAAA,UAGe,qBAAA,sBACM,WAAA,GAAc,WAAA;EAnBnC;EAsBA,SAAA;EAnBM;EAqBN,OAAA,EAAS,UAAA,QAAkB,gBAAA,CAAe,YAAA;EAnB1C;EAqBA,SAAA,EAAW,UAAA,QAAkB,gBAAA,CAAe,YAAA;EAjB5C;EAmBA,YAAA;EAjBA;EAmBA,QAAA;EAjBY;EAmBZ,KAAA,EAAO,UAAA;EAjBP;EAmBA,YAAA,EAAc,SAAA;EAnBV;EAqBJ,KAAA,EAAO,UAAA,QAAkB,eAAA,CAAc,YAAA;EAlBH;EAoBpC,oBAAA,EAAsB,UAAA,QAAkB,QAAA;EAnBnB;EAqBrB,qBAAA,EAAuB,UAAA,QAAkB,QAAA;EAhBC;EAkB1C,aAAA,EAAe,UAAA,QAAkB,QAAA;EAlBxB;EAoBT,SAAA,EAAW,UAAA,QAAkB,gBAAA,CAAe,YAAA;EAlBf;EAoB7B,OAAA;EAdO;EAgBP,KAAA,EAAO,SAAA;EAZgC;EAcvC,MAAA,EAAQ,UAAA,QAAkB,eAAA,CAAc,YAAA;EAdjC;EAgBP,QAAA,EAAU,UAAA,QAAkB,eAAA,CAAc,YAAA;EAdpB;EAgBtB,GAAA,EAAK,UAAA,QAAkB,eAAA,CAAc,YAAA;EAdd;EAgBvB,QAAA;EAde;EAgBf,UAAA,EAAY,UAAA,QAAkB,gBAAA,CAAe,YAAA;EAdhB;EAgB7B,MAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA+BW,eAAA,wBACU,WAAA,GAAc,WAAA,sBAGnC,MAAA,EAAQ,qBAAA,CAAsB,YAAA,EAAc,QAAA,MAC3C,qBAAA,CAAsB,YAAA"}
@@ -1,7 +1,7 @@
1
- import { t as InputValueTransform } from "./useInputValueTransform-BV8o0PMI.cjs";
2
- import { r as useController } from "./useController-C6Pg9T_3.cjs";
3
- import { n as useFormContext } from "./useFormContext-n3WYgGkW.cjs";
4
- import { t as useInput } from "./useInput--wjwIBc5.cjs";
1
+ import { t as InputValueTransform } from "./useInputValueTransform-CNCBU7a9.cjs";
2
+ import { r as useController } from "./useController-CvPWE2Sy.cjs";
3
+ import { n as useFormContext } from "./useFormContext-Dh97YG47.cjs";
4
+ import { t as useInput } from "./useInput-CKmKH9Ij.cjs";
5
5
  import { ReactNode } from "react";
6
6
  import { FieldError, FieldValues, Path } from "react-hook-form";
7
7
 
@@ -95,4 +95,4 @@ interface UseUniformFieldReturn<TFieldValues extends FieldValues = FieldValues>
95
95
  declare const useUniformField: <TFieldValues extends FieldValues = FieldValues, TDisplay = unknown>(params: UseUniformFieldParams<TFieldValues, TDisplay>) => UseUniformFieldReturn<TFieldValues>;
96
96
  //#endregion
97
97
  export { UseUniformFieldReturn as n, useUniformField as r, UseUniformFieldParams as t };
98
- //# sourceMappingURL=useUniformField-ETnay_UI.d.cts.map
98
+ //# sourceMappingURL=useUniformField-DIb__gKK.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useUniformField-DIb__gKK.d.cts","names":[],"sources":["../src/hooks/useUniformField/useUniformField.tsx"],"mappings":";;;;;;;;UAgBiB,qBAAA,sBACM,WAAA,GAAc,WAAA;;EAInC,IAAA,EAAM,IAAA,CAAK,YAAA;EALyB;EAOpC,SAAA;EANqB;EAQrB,QAAA;EAJW;EAMX,KAAA,GAAQ,SAAA;EAAA;EAER,MAAA;EAEY;EAAZ,SAAA,GAAY,mBAAA,CAAoB,QAAA;EAAD;EAE/B,IAAA;AAAA;AAAA,UAGe,qBAAA,sBACM,WAAA,GAAc,WAAA;EAnBnC;EAsBA,SAAA;EAnBM;EAqBN,OAAA,EAAS,UAAA,QAAkB,cAAA,CAAe,YAAA;EAnB1C;EAqBA,SAAA,EAAW,UAAA,QAAkB,cAAA,CAAe,YAAA;EAjB5C;EAmBA,YAAA;EAjBA;EAmBA,QAAA;EAjBY;EAmBZ,KAAA,EAAO,UAAA;EAjBP;EAmBA,YAAA,EAAc,SAAA;EAnBV;EAqBJ,KAAA,EAAO,UAAA,QAAkB,aAAA,CAAc,YAAA;EAlBH;EAoBpC,oBAAA,EAAsB,UAAA,QAAkB,QAAA;EAnBnB;EAqBrB,qBAAA,EAAuB,UAAA,QAAkB,QAAA;EAhBC;EAkB1C,aAAA,EAAe,UAAA,QAAkB,QAAA;EAlBxB;EAoBT,SAAA,EAAW,UAAA,QAAkB,cAAA,CAAe,YAAA;EAlBf;EAoB7B,OAAA;EAdO;EAgBP,KAAA,EAAO,SAAA;EAZgC;EAcvC,MAAA,EAAQ,UAAA,QAAkB,aAAA,CAAc,YAAA;EAdjC;EAgBP,QAAA,EAAU,UAAA,QAAkB,aAAA,CAAc,YAAA;EAdpB;EAgBtB,GAAA,EAAK,UAAA,QAAkB,aAAA,CAAc,YAAA;EAdd;EAgBvB,QAAA;EAde;EAgBf,UAAA,EAAY,UAAA,QAAkB,cAAA,CAAe,YAAA;EAdhB;EAgB7B,MAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA+BW,eAAA,wBACU,WAAA,GAAc,WAAA,sBAGnC,MAAA,EAAQ,qBAAA,CAAsB,YAAA,EAAc,QAAA,MAC3C,qBAAA,CAAsB,YAAA"}
@@ -1,7 +1,7 @@
1
- import { r as useController$1 } from "./useController-BJ2SBdky.js";
2
- import { n as useFormContext$1 } from "./useFormContext-B2TS6xq0.js";
1
+ import { r as useController$1 } from "./useController-DfiNbuEz.js";
2
+ import { n as useFormContext$1 } from "./useFormContext-C6OOtqZ5.js";
3
3
  import { ReactNode } from "react";
4
- import * as react_hook_form0 from "react-hook-form";
4
+ import * as react_hook_form14 from "react-hook-form";
5
5
  import { ArrayPath, FieldValues } from "react-hook-form";
6
6
  import * as _heroui_input0 from "@heroui/input";
7
7
 
@@ -44,36 +44,36 @@ declare const useUniformFieldArray: <TFieldValues extends FieldValues = FieldVal
44
44
  label
45
45
  }: UseUniformFieldArrayProps<TFieldValues>) => {
46
46
  ariaLabel: string | undefined;
47
- control: react_hook_form0.Control<TFieldValues, any, TFieldValues>;
47
+ control: react_hook_form14.Control<TFieldValues, any, TFieldValues>;
48
48
  debugMode: ReturnType<typeof useFormContext$1<TFieldValues_1>>["debugMode"];
49
49
  defaultValue: unknown;
50
50
  disabled: boolean | undefined;
51
- error: react_hook_form0.FieldError[] | undefined;
51
+ error: react_hook_form14.FieldError[] | undefined;
52
52
  errorMessage: ReactNode | null;
53
- field: Omit<react_hook_form0.ControllerRenderProps<TFieldValues>, "value" | "onChange"> & {
53
+ field: Omit<react_hook_form14.ControllerRenderProps<TFieldValues>, "value" | "onChange"> & {
54
54
  onChange: (...event: any[]) => void;
55
55
  value: string;
56
56
  };
57
57
  getErrorMessageProps: ReturnType<typeof _heroui_input0.useInput>["getErrorMessageProps"];
58
58
  getHelperWrapperProps: ReturnType<typeof _heroui_input0.useInput>["getHelperWrapperProps"];
59
59
  getLabelProps: ReturnType<typeof _heroui_input0.useInput>["getLabelProps"];
60
- getValues: react_hook_form0.UseFormGetValues<TFieldValues>;
60
+ getValues: react_hook_form14.UseFormGetValues<TFieldValues>;
61
61
  invalid: boolean;
62
62
  label: ReactNode | null;
63
63
  onBlur: ReturnType<typeof useController$1>["field"]["onBlur"];
64
64
  onChange: ReturnType<typeof useController$1>["field"]["onChange"];
65
65
  ref: ReturnType<typeof useController$1>["field"]["ref"];
66
66
  required: boolean;
67
- resetField: react_hook_form0.UseFormResetField<TFieldValues>;
67
+ resetField: react_hook_form14.UseFormResetField<TFieldValues>;
68
68
  testId: string;
69
- fields: react_hook_form0.FieldArrayWithId<TFieldValues, ArrayPath<TFieldValues>, "id">[];
70
- append: react_hook_form0.UseFieldArrayAppend<TFieldValues, ArrayPath<TFieldValues>>;
71
- remove: react_hook_form0.UseFieldArrayRemove;
72
- insert: react_hook_form0.UseFieldArrayInsert<TFieldValues, ArrayPath<TFieldValues>>;
73
- move: react_hook_form0.UseFieldArrayMove;
69
+ fields: react_hook_form14.FieldArrayWithId<TFieldValues, ArrayPath<TFieldValues>, "id">[];
70
+ append: react_hook_form14.UseFieldArrayAppend<TFieldValues, ArrayPath<TFieldValues>>;
71
+ remove: react_hook_form14.UseFieldArrayRemove;
72
+ insert: react_hook_form14.UseFieldArrayInsert<TFieldValues, ArrayPath<TFieldValues>>;
73
+ move: react_hook_form14.UseFieldArrayMove;
74
74
  disableAnimation: boolean;
75
75
  elementInitialValue: {};
76
76
  };
77
77
  //#endregion
78
78
  export { useUniformFieldArray as n, UseUniformFieldArrayProps as t };
79
- //# sourceMappingURL=useUniformFieldArray-COtgcAnp.d.ts.map
79
+ //# sourceMappingURL=useUniformFieldArray-4MOU0xac.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useUniformFieldArray-4MOU0xac.d.ts","names":[],"sources":["../src/hooks/useUniformFieldArray/useUniformFieldArray.ts"],"mappings":";;;;;;;;UAYiB,yBAAA,sBACM,WAAA,GAAc,WAAA;;EAGnC,IAAA,EAAM,SAAA,CAAU,YAAA;;EAEhB,IAAA;EANe;EAQf,mBAAA;EARwC;EAUxC,uBAAA;EATmC;EAWnC,QAAA;EARM;EAUN,MAAA;EAEiB;EAAjB,KAAA,GAAQ,SAAA;AAAA;;;;;;;;;;;;;cAeG,oBAAA,wBACU,WAAA,GAAc,WAAA;EACnC,IAAA;EAAA,IAAA;EAAA,mBAAA,EAAA,oBAAA;EAAA,uBAAA;EAAA,QAAA;EAAA,MAAA,EAAA,cAAA;EAAA;AAAA,GAQC,yBAAA,CAA0B,YAAA;;;;;;;;;kBAhC+B,KAAA;;;;;;;;;UAqExB,UAAA;YAEX,UAAA,QAFW,eAAA;OAKzB,UAAA,QAHc,eAAA"}
@@ -1,7 +1,7 @@
1
- import { r as useController } from "./useController-C6Pg9T_3.cjs";
2
- import { n as useFormContext } from "./useFormContext-n3WYgGkW.cjs";
1
+ import { r as useController } from "./useController-CvPWE2Sy.cjs";
2
+ import { n as useFormContext } from "./useFormContext-Dh97YG47.cjs";
3
3
  import { ReactNode } from "react";
4
- import * as react_hook_form0 from "react-hook-form";
4
+ import * as react_hook_form14 from "react-hook-form";
5
5
  import { ArrayPath, FieldValues } from "react-hook-form";
6
6
  import * as _heroui_input0 from "@heroui/input";
7
7
 
@@ -44,36 +44,36 @@ declare const useUniformFieldArray: <TFieldValues extends FieldValues = FieldVal
44
44
  label
45
45
  }: UseUniformFieldArrayProps<TFieldValues>) => {
46
46
  ariaLabel: string | undefined;
47
- control: react_hook_form0.Control<TFieldValues, any, TFieldValues>;
47
+ control: react_hook_form14.Control<TFieldValues, any, TFieldValues>;
48
48
  debugMode: ReturnType<typeof useFormContext<TFieldValues_1>>["debugMode"];
49
49
  defaultValue: unknown;
50
50
  disabled: boolean | undefined;
51
- error: react_hook_form0.FieldError[] | undefined;
51
+ error: react_hook_form14.FieldError[] | undefined;
52
52
  errorMessage: ReactNode | null;
53
- field: Omit<react_hook_form0.ControllerRenderProps<TFieldValues>, "value" | "onChange"> & {
53
+ field: Omit<react_hook_form14.ControllerRenderProps<TFieldValues>, "value" | "onChange"> & {
54
54
  onChange: (...event: any[]) => void;
55
55
  value: string;
56
56
  };
57
57
  getErrorMessageProps: ReturnType<typeof _heroui_input0.useInput>["getErrorMessageProps"];
58
58
  getHelperWrapperProps: ReturnType<typeof _heroui_input0.useInput>["getHelperWrapperProps"];
59
59
  getLabelProps: ReturnType<typeof _heroui_input0.useInput>["getLabelProps"];
60
- getValues: react_hook_form0.UseFormGetValues<TFieldValues>;
60
+ getValues: react_hook_form14.UseFormGetValues<TFieldValues>;
61
61
  invalid: boolean;
62
62
  label: ReactNode | null;
63
63
  onBlur: ReturnType<typeof useController>["field"]["onBlur"];
64
64
  onChange: ReturnType<typeof useController>["field"]["onChange"];
65
65
  ref: ReturnType<typeof useController>["field"]["ref"];
66
66
  required: boolean;
67
- resetField: react_hook_form0.UseFormResetField<TFieldValues>;
67
+ resetField: react_hook_form14.UseFormResetField<TFieldValues>;
68
68
  testId: string;
69
- fields: react_hook_form0.FieldArrayWithId<TFieldValues, ArrayPath<TFieldValues>, "id">[];
70
- append: react_hook_form0.UseFieldArrayAppend<TFieldValues, ArrayPath<TFieldValues>>;
71
- remove: react_hook_form0.UseFieldArrayRemove;
72
- insert: react_hook_form0.UseFieldArrayInsert<TFieldValues, ArrayPath<TFieldValues>>;
73
- move: react_hook_form0.UseFieldArrayMove;
69
+ fields: react_hook_form14.FieldArrayWithId<TFieldValues, ArrayPath<TFieldValues>, "id">[];
70
+ append: react_hook_form14.UseFieldArrayAppend<TFieldValues, ArrayPath<TFieldValues>>;
71
+ remove: react_hook_form14.UseFieldArrayRemove;
72
+ insert: react_hook_form14.UseFieldArrayInsert<TFieldValues, ArrayPath<TFieldValues>>;
73
+ move: react_hook_form14.UseFieldArrayMove;
74
74
  disableAnimation: boolean;
75
75
  elementInitialValue: {};
76
76
  };
77
77
  //#endregion
78
78
  export { useUniformFieldArray as n, UseUniformFieldArrayProps as t };
79
- //# sourceMappingURL=useUniformFieldArray-4pUdrWYT.d.cts.map
79
+ //# sourceMappingURL=useUniformFieldArray-BChcZvc5.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useUniformFieldArray-BChcZvc5.d.cts","names":[],"sources":["../src/hooks/useUniformFieldArray/useUniformFieldArray.ts"],"mappings":";;;;;;;;UAYiB,yBAAA,sBACM,WAAA,GAAc,WAAA;;EAGnC,IAAA,EAAM,SAAA,CAAU,YAAA;;EAEhB,IAAA;EANe;EAQf,mBAAA;EARwC;EAUxC,uBAAA;EATmC;EAWnC,QAAA;EARM;EAUN,MAAA;EAEiB;EAAjB,KAAA,GAAQ,SAAA;AAAA;;;;;;;;;;;;;cAeG,oBAAA,wBACU,WAAA,GAAc,WAAA;EACnC,IAAA;EAAA,IAAA;EAAA,mBAAA,EAAA,oBAAA;EAAA,uBAAA;EAAA,QAAA;EAAA,MAAA,EAAA,cAAA;EAAA;AAAA,GAQC,yBAAA,CAA0B,YAAA;;;;;;;;;kBAhC+B,KAAA;;;;;;;;;UAqExB,UAAA;YAEX,UAAA,QAFW,aAAA;OAKzB,UAAA,QAHc,aAAA"}
@@ -1,6 +1,6 @@
1
- import { t as flatArrayKey } from "./helpers-D3A5d3M1.js";
2
- import { n as useFormContext$1 } from "./useFormContext-UFBqUfOr.js";
3
- import { t as useUniformField } from "./useUniformField-C6oSAFa3.js";
1
+ import { t as flatArrayKey } from "./helpers-33jajRcN.js";
2
+ import { n as useFormContext$1 } from "./useFormContext-Di67HIf7.js";
3
+ import { t as useUniformField } from "./useUniformField-C-Xyu-8v.js";
4
4
  import { useEffect, useMemo, useRef, useState } from "react";
5
5
  import { useReducedMotion } from "@fuf-stack/pixel-motion";
6
6
  import { useFieldArray } from "react-hook-form";
@@ -81,4 +81,4 @@ const useUniformFieldArray = ({ name, flat = false, elementInitialValue: _elemen
81
81
 
82
82
  //#endregion
83
83
  export { useUniformFieldArray as t };
84
- //# sourceMappingURL=useUniformFieldArray-DNrmEXLg.js.map
84
+ //# sourceMappingURL=useUniformFieldArray-BKvA0FQW.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useUniformFieldArray-DNrmEXLg.js","names":["useRHFFieldArray","useFormContext"],"sources":["../src/hooks/useUniformFieldArray/useUniformFieldArray.ts","../src/hooks/useUniformFieldArray/index.ts"],"sourcesContent":["import type { ReactNode } from 'react';\nimport type { ArrayPath, FieldValues, Path } from 'react-hook-form';\n\nimport { useEffect, useMemo, useRef, useState } from 'react';\nimport { useFieldArray as useRHFFieldArray } from 'react-hook-form';\n\nimport { useReducedMotion } from '@fuf-stack/pixel-motion';\n\nimport { flatArrayKey } from '../../helpers';\nimport { useFormContext } from '../useFormContext';\nimport { useUniformField } from '../useUniformField';\n\nexport interface UseUniformFieldArrayProps<\n TFieldValues extends FieldValues = FieldValues,\n> {\n /** Field name for the array */\n name: ArrayPath<TFieldValues>;\n /** Whether this is a flat array (array of primitives) */\n flat?: boolean;\n /** Initial value for new array elements */\n elementInitialValue?: unknown;\n /** Whether the last element cannot be removed (always maintain at least one element) */\n lastElementNotRemovable?: boolean;\n /** Disable the field */\n disabled?: boolean;\n /** Optional explicit test id used to build stable test ids */\n testId?: string;\n /** Optional label content */\n label?: ReactNode;\n}\n\n/**\n * Enhanced useFieldArray hook with initialization and animation logic.\n * Based on React Hook Form's useFieldArray with additional features:\n * - Automatic initialization when lastElementNotRemovable is set\n * - Animation control (disabled during initialization)\n * - Support for flat arrays (arrays of primitives)\n *\n * Note: Automatic validation triggering on length change is disabled to prevent\n * triggering form-wide validation. Array validation still runs on form submission.\n *\n * @see https://react-hook-form.com/docs/usefieldarray\n */\nexport const useUniformFieldArray = <\n TFieldValues extends FieldValues = FieldValues,\n>({\n name,\n flat = false,\n elementInitialValue: _elementInitialValue = null,\n lastElementNotRemovable = false,\n disabled,\n testId: explicitTestId,\n label,\n}: UseUniformFieldArrayProps<TFieldValues>) => {\n // Get uniform field state and utilities\n const uniformField = useUniformField<TFieldValues>({\n name: name as Path<TFieldValues> & string,\n disabled,\n testId: explicitTestId,\n label,\n });\n\n const { control } = uniformField;\n\n const { fields, append, remove, insert, move } = useRHFFieldArray({\n control,\n name,\n });\n\n const { trigger, setValue } = useFormContext<TFieldValues>();\n\n // Determine if initialization is needed (initially or after reset).\n // This flag automatically handles both scenarios:\n // - Initial mount: fields.length starts at 0\n // - Form reset: fields.length becomes 0 again\n // Additional initialization conditions can be added here later (e.g., minElements > 0)\n // Using useMemo ensures this value is properly tracked by React and effects can depend on it\n const needsInitialize = useMemo(() => {\n return lastElementNotRemovable && fields.length === 0;\n }, [lastElementNotRemovable, fields.length]);\n\n // Track whether initialization has completed. Initialized contextually:\n // - If initialization IS needed (needsInitialize = true): starts as false, set to true after init\n // - If initialization is NOT needed (needsInitialize = false): starts as true (already initialized)\n // This ref is used to:\n // 1. Skip validation during initialization/re-initialization\n // 2. Gate animation enabling until after initialization\n // 3. Gate motion preference effect until after initialization\n const hasInitialized = useRef(!needsInitialize);\n\n // Reset initialization flag when needsInitialize changes to true.\n // This handles form reset: when fields become empty (needsInitialize becomes true),\n // hasInitialized is reset to false, triggering re-initialization in the effect below.\n useEffect(() => {\n if (needsInitialize) {\n hasInitialized.current = false;\n }\n }, [needsInitialize]);\n\n // Validate array-level constraints (min/max items) when length changes.\n // This ensures min/max errors appear instantly when user adds/removes items.\n // Note: Child field validation also runs, but new empty fields won't show as invalid\n // because useFormContext only sets invalid=true for touched fields or after form submission.\n // Skip validation during initialization/re-initialization to avoid showing errors prematurely.\n useEffect(() => {\n if (hasInitialized.current) {\n setTimeout(() => {\n trigger(name as Path<TFieldValues>);\n }, 200);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [fields.length]);\n\n // Animation control: Start with animations disabled to prevent animating in initial elements.\n // Will be enabled after initialization completes (unless user prefers reduced motion).\n const [disableAnimation, setDisableAnimation] = useState(true);\n\n // Respond to user's motion preference changes (after initialization).\n // During initialization, animations stay disabled regardless of preference.\n const prefersReducedMotion = useReducedMotion();\n useEffect(() => {\n if (hasInitialized.current) {\n setDisableAnimation(!!prefersReducedMotion);\n }\n }, [prefersReducedMotion]);\n\n // Prepare initial element value based on mode\n // - flat=true: arrays of primitives → object with flatArrayKey and null value by default\n // - flat=false: arrays of objects → empty object by default\n const elementInitialValue = useMemo(() => {\n return flat\n ? { [flatArrayKey]: _elementInitialValue ?? null }\n : (_elementInitialValue ?? {});\n }, [flat, _elementInitialValue]);\n\n // Initialization/Re-initialization: Add initial element when needed.\n // This handles both initial mount and form reset scenarios by reacting to needsInitialize.\n // CRITICAL: This effect MUST be the LAST hook in this component.\n // It sets hasInitialized.current = true, which acts as a gate for other effects.\n // If this runs before other effects, hasInitialized will be true during their first run,\n // causing them to execute logic meant only for post-initialization (e.g., validation,\n // animation enabling). By placing this last, all other effects run first with\n // hasInitialized = false, allowing them to skip initialization-phase logic.\n useEffect(\n () => {\n if (needsInitialize) {\n // use setValue instead of append to avoid focusing the added element\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n setValue(name as Path<TFieldValues>, [elementInitialValue] as any, {\n shouldDirty: false,\n shouldTouch: false,\n });\n\n // Mark initialization as complete\n hasInitialized.current = true;\n\n // Enable animations after a brief delay (unless user prefers reduced motion or animations are already enabled).\n // This only runs on initial mount when animations start disabled.\n // On reset, disableAnimation is typically false, so this setTimeout won't run and animations stay enabled.\n if (!prefersReducedMotion && disableAnimation) {\n setTimeout(() => {\n setDisableAnimation(false);\n }, 1);\n }\n }\n },\n // Run when needsInitialize changes (initial mount or reset)\n // needsInitialize is memoized based on fields.length and lastElementNotRemovable\n // Other dependencies are intentionally omitted:\n // - append, setValue, trigger, setDisableAnimation are stable refs/functions\n // - elementInitialValue, name, flat, prefersReducedMotion, disableAnimation are props/stable values\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [needsInitialize],\n );\n\n return {\n // Field array methods and state\n fields,\n append,\n remove,\n insert,\n move,\n disableAnimation,\n elementInitialValue,\n // Uniform field state and utilities (spread all)\n ...uniformField,\n };\n};\n","/* v8 ignore start */\n\nexport * from './useUniformFieldArray';\n\n/* v8 ignore stop */\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AA2CA,MAAa,wBAEX,EACA,MACA,OAAO,OACP,qBAAqB,uBAAuB,MAC5C,0BAA0B,OAC1B,UACA,QAAQ,gBACR,YAC6C;CAE7C,MAAM,eAAe,gBAA8B;EAC3C;EACN;EACA,QAAQ;EACR;EACD,CAAC;CAEF,MAAM,EAAE,YAAY;CAEpB,MAAM,EAAE,QAAQ,QAAQ,QAAQ,QAAQ,SAASA,cAAiB;EAChE;EACA;EACD,CAAC;CAEF,MAAM,EAAE,SAAS,aAAaC,kBAA8B;CAQ5D,MAAM,kBAAkB,cAAc;AACpC,SAAO,2BAA2B,OAAO,WAAW;IACnD,CAAC,yBAAyB,OAAO,OAAO,CAAC;CAS5C,MAAM,iBAAiB,OAAO,CAAC,gBAAgB;AAK/C,iBAAgB;AACd,MAAI,gBACF,gBAAe,UAAU;IAE1B,CAAC,gBAAgB,CAAC;AAOrB,iBAAgB;AACd,MAAI,eAAe,QACjB,kBAAiB;AACf,WAAQ,KAA2B;KAClC,IAAI;IAGR,CAAC,OAAO,OAAO,CAAC;CAInB,MAAM,CAAC,kBAAkB,uBAAuB,SAAS,KAAK;CAI9D,MAAM,uBAAuB,kBAAkB;AAC/C,iBAAgB;AACd,MAAI,eAAe,QACjB,qBAAoB,CAAC,CAAC,qBAAqB;IAE5C,CAAC,qBAAqB,CAAC;CAK1B,MAAM,sBAAsB,cAAc;AACxC,SAAO,OACH,GAAG,eAAe,wBAAwB,MAAM,GAC/C,wBAAwB,EAAE;IAC9B,CAAC,MAAM,qBAAqB,CAAC;AAUhC,iBACQ;AACJ,MAAI,iBAAiB;AAGnB,YAAS,MAA4B,CAAC,oBAAoB,EAAS;IACjE,aAAa;IACb,aAAa;IACd,CAAC;AAGF,kBAAe,UAAU;AAKzB,OAAI,CAAC,wBAAwB,iBAC3B,kBAAiB;AACf,wBAAoB,MAAM;MACzB,EAAE;;IAUX,CAAC,gBAAgB,CAClB;AAED,QAAO;EAEL;EACA;EACA;EACA;EACA;EACA;EACA;EAEA,GAAG;EACJ"}
1
+ {"version":3,"file":"useUniformFieldArray-BKvA0FQW.js","names":["useRHFFieldArray","useFormContext"],"sources":["../src/hooks/useUniformFieldArray/useUniformFieldArray.ts","../src/hooks/useUniformFieldArray/index.ts"],"sourcesContent":["import type { ReactNode } from 'react';\nimport type { ArrayPath, FieldValues, Path } from 'react-hook-form';\n\nimport { useEffect, useMemo, useRef, useState } from 'react';\nimport { useFieldArray as useRHFFieldArray } from 'react-hook-form';\n\nimport { useReducedMotion } from '@fuf-stack/pixel-motion';\n\nimport { flatArrayKey } from '../../helpers';\nimport { useFormContext } from '../useFormContext';\nimport { useUniformField } from '../useUniformField';\n\nexport interface UseUniformFieldArrayProps<\n TFieldValues extends FieldValues = FieldValues,\n> {\n /** Field name for the array */\n name: ArrayPath<TFieldValues>;\n /** Whether this is a flat array (array of primitives) */\n flat?: boolean;\n /** Initial value for new array elements */\n elementInitialValue?: unknown;\n /** Whether the last element cannot be removed (always maintain at least one element) */\n lastElementNotRemovable?: boolean;\n /** Disable the field */\n disabled?: boolean;\n /** Optional explicit test id used to build stable test ids */\n testId?: string;\n /** Optional label content */\n label?: ReactNode;\n}\n\n/**\n * Enhanced useFieldArray hook with initialization and animation logic.\n * Based on React Hook Form's useFieldArray with additional features:\n * - Automatic initialization when lastElementNotRemovable is set\n * - Animation control (disabled during initialization)\n * - Support for flat arrays (arrays of primitives)\n *\n * Note: Automatic validation triggering on length change is disabled to prevent\n * triggering form-wide validation. Array validation still runs on form submission.\n *\n * @see https://react-hook-form.com/docs/usefieldarray\n */\nexport const useUniformFieldArray = <\n TFieldValues extends FieldValues = FieldValues,\n>({\n name,\n flat = false,\n elementInitialValue: _elementInitialValue = null,\n lastElementNotRemovable = false,\n disabled,\n testId: explicitTestId,\n label,\n}: UseUniformFieldArrayProps<TFieldValues>) => {\n // Get uniform field state and utilities\n const uniformField = useUniformField<TFieldValues>({\n name: name as Path<TFieldValues> & string,\n disabled,\n testId: explicitTestId,\n label,\n });\n\n const { control } = uniformField;\n\n const { fields, append, remove, insert, move } = useRHFFieldArray({\n control,\n name,\n });\n\n const { trigger, setValue } = useFormContext<TFieldValues>();\n\n // Determine if initialization is needed (initially or after reset).\n // This flag automatically handles both scenarios:\n // - Initial mount: fields.length starts at 0\n // - Form reset: fields.length becomes 0 again\n // Additional initialization conditions can be added here later (e.g., minElements > 0)\n // Using useMemo ensures this value is properly tracked by React and effects can depend on it\n const needsInitialize = useMemo(() => {\n return lastElementNotRemovable && fields.length === 0;\n }, [lastElementNotRemovable, fields.length]);\n\n // Track whether initialization has completed. Initialized contextually:\n // - If initialization IS needed (needsInitialize = true): starts as false, set to true after init\n // - If initialization is NOT needed (needsInitialize = false): starts as true (already initialized)\n // This ref is used to:\n // 1. Skip validation during initialization/re-initialization\n // 2. Gate animation enabling until after initialization\n // 3. Gate motion preference effect until after initialization\n const hasInitialized = useRef(!needsInitialize);\n\n // Reset initialization flag when needsInitialize changes to true.\n // This handles form reset: when fields become empty (needsInitialize becomes true),\n // hasInitialized is reset to false, triggering re-initialization in the effect below.\n useEffect(() => {\n if (needsInitialize) {\n hasInitialized.current = false;\n }\n }, [needsInitialize]);\n\n // Validate array-level constraints (min/max items) when length changes.\n // This ensures min/max errors appear instantly when user adds/removes items.\n // Note: Child field validation also runs, but new empty fields won't show as invalid\n // because useFormContext only sets invalid=true for touched fields or after form submission.\n // Skip validation during initialization/re-initialization to avoid showing errors prematurely.\n useEffect(() => {\n if (hasInitialized.current) {\n setTimeout(() => {\n trigger(name as Path<TFieldValues>);\n }, 200);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [fields.length]);\n\n // Animation control: Start with animations disabled to prevent animating in initial elements.\n // Will be enabled after initialization completes (unless user prefers reduced motion).\n const [disableAnimation, setDisableAnimation] = useState(true);\n\n // Respond to user's motion preference changes (after initialization).\n // During initialization, animations stay disabled regardless of preference.\n const prefersReducedMotion = useReducedMotion();\n useEffect(() => {\n if (hasInitialized.current) {\n setDisableAnimation(!!prefersReducedMotion);\n }\n }, [prefersReducedMotion]);\n\n // Prepare initial element value based on mode\n // - flat=true: arrays of primitives → object with flatArrayKey and null value by default\n // - flat=false: arrays of objects → empty object by default\n const elementInitialValue = useMemo(() => {\n return flat\n ? { [flatArrayKey]: _elementInitialValue ?? null }\n : (_elementInitialValue ?? {});\n }, [flat, _elementInitialValue]);\n\n // Initialization/Re-initialization: Add initial element when needed.\n // This handles both initial mount and form reset scenarios by reacting to needsInitialize.\n // CRITICAL: This effect MUST be the LAST hook in this component.\n // It sets hasInitialized.current = true, which acts as a gate for other effects.\n // If this runs before other effects, hasInitialized will be true during their first run,\n // causing them to execute logic meant only for post-initialization (e.g., validation,\n // animation enabling). By placing this last, all other effects run first with\n // hasInitialized = false, allowing them to skip initialization-phase logic.\n useEffect(\n () => {\n if (needsInitialize) {\n // use setValue instead of append to avoid focusing the added element\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n setValue(name as Path<TFieldValues>, [elementInitialValue] as any, {\n shouldDirty: false,\n shouldTouch: false,\n });\n\n // Mark initialization as complete\n hasInitialized.current = true;\n\n // Enable animations after a brief delay (unless user prefers reduced motion or animations are already enabled).\n // This only runs on initial mount when animations start disabled.\n // On reset, disableAnimation is typically false, so this setTimeout won't run and animations stay enabled.\n if (!prefersReducedMotion && disableAnimation) {\n setTimeout(() => {\n setDisableAnimation(false);\n }, 1);\n }\n }\n },\n // Run when needsInitialize changes (initial mount or reset)\n // needsInitialize is memoized based on fields.length and lastElementNotRemovable\n // Other dependencies are intentionally omitted:\n // - append, setValue, trigger, setDisableAnimation are stable refs/functions\n // - elementInitialValue, name, flat, prefersReducedMotion, disableAnimation are props/stable values\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [needsInitialize],\n );\n\n return {\n // Field array methods and state\n fields,\n append,\n remove,\n insert,\n move,\n disableAnimation,\n elementInitialValue,\n // Uniform field state and utilities (spread all)\n ...uniformField,\n };\n};\n","/* v8 ignore start */\n\nexport * from './useUniformFieldArray';\n\n/* v8 ignore stop */\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AA2CA,MAAa,wBAEX,EACA,MACA,OAAO,OACP,qBAAqB,uBAAuB,MAC5C,0BAA0B,OAC1B,UACA,QAAQ,gBACR,YAC6C;CAE7C,MAAM,eAAe,gBAA8B;EAC3C;EACN;EACA,QAAQ;EACR;EACD,CAAC;CAEF,MAAM,EAAE,YAAY;CAEpB,MAAM,EAAE,QAAQ,QAAQ,QAAQ,QAAQ,SAASA,cAAiB;EAChE;EACA;EACD,CAAC;CAEF,MAAM,EAAE,SAAS,aAAaC,kBAA8B;CAQ5D,MAAM,kBAAkB,cAAc;AACpC,SAAO,2BAA2B,OAAO,WAAW;IACnD,CAAC,yBAAyB,OAAO,OAAO,CAAC;CAS5C,MAAM,iBAAiB,OAAO,CAAC,gBAAgB;AAK/C,iBAAgB;AACd,MAAI,gBACF,gBAAe,UAAU;IAE1B,CAAC,gBAAgB,CAAC;AAOrB,iBAAgB;AACd,MAAI,eAAe,QACjB,kBAAiB;AACf,WAAQ,KAA2B;KAClC,IAAI;IAGR,CAAC,OAAO,OAAO,CAAC;CAInB,MAAM,CAAC,kBAAkB,uBAAuB,SAAS,KAAK;CAI9D,MAAM,uBAAuB,kBAAkB;AAC/C,iBAAgB;AACd,MAAI,eAAe,QACjB,qBAAoB,CAAC,CAAC,qBAAqB;IAE5C,CAAC,qBAAqB,CAAC;CAK1B,MAAM,sBAAsB,cAAc;AACxC,SAAO,OACH,GAAG,eAAe,wBAAwB,MAAM,GAC/C,wBAAwB,EAAE;IAC9B,CAAC,MAAM,qBAAqB,CAAC;AAUhC,iBACQ;AACJ,MAAI,iBAAiB;AAGnB,YAAS,MAA4B,CAAC,oBAAoB,EAAS;IACjE,aAAa;IACb,aAAa;IACd,CAAC;AAGF,kBAAe,UAAU;AAKzB,OAAI,CAAC,wBAAwB,iBAC3B,kBAAiB;AACf,wBAAoB,MAAM;MACzB,EAAE;;IAUX,CAAC,gBAAgB,CAClB;AAED,QAAO;EAEL;EACA;EACA;EACA;EACA;EACA;EACA;EAEA,GAAG;EACJ"}
@@ -1,7 +1,7 @@
1
- const require_FormContext = require('./FormContext-CeFKQmVH.cjs');
2
- const require_helpers = require('./helpers-CncbgvW_.cjs');
3
- const require_useFormContext = require('./useFormContext-DJiJlfGJ.cjs');
4
- const require_useUniformField = require('./useUniformField-Dd3AnpgE.cjs');
1
+ const require_FormContext = require('./FormContext-BSLO2-sO.cjs');
2
+ const require_helpers = require('./helpers-Bd_QpqXg.cjs');
3
+ const require_useFormContext = require('./useFormContext-vdeeDsAs.cjs');
4
+ const require_useUniformField = require('./useUniformField-6c4OCAfb.cjs');
5
5
  let react = require("react");
6
6
  let _fuf_stack_pixel_motion = require("@fuf-stack/pixel-motion");
7
7
  let react_hook_form = require("react-hook-form");
@@ -87,4 +87,4 @@ Object.defineProperty(exports, 'useUniformFieldArray', {
87
87
  return useUniformFieldArray;
88
88
  }
89
89
  });
90
- //# sourceMappingURL=useUniformFieldArray-D93AUZI4.cjs.map
90
+ //# sourceMappingURL=useUniformFieldArray-CRCbV1J2.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"useUniformFieldArray-D93AUZI4.cjs","names":["useUniformField","useFormContext","flatArrayKey"],"sources":["../src/hooks/useUniformFieldArray/useUniformFieldArray.ts","../src/hooks/useUniformFieldArray/index.ts"],"sourcesContent":["import type { ReactNode } from 'react';\nimport type { ArrayPath, FieldValues, Path } from 'react-hook-form';\n\nimport { useEffect, useMemo, useRef, useState } from 'react';\nimport { useFieldArray as useRHFFieldArray } from 'react-hook-form';\n\nimport { useReducedMotion } from '@fuf-stack/pixel-motion';\n\nimport { flatArrayKey } from '../../helpers';\nimport { useFormContext } from '../useFormContext';\nimport { useUniformField } from '../useUniformField';\n\nexport interface UseUniformFieldArrayProps<\n TFieldValues extends FieldValues = FieldValues,\n> {\n /** Field name for the array */\n name: ArrayPath<TFieldValues>;\n /** Whether this is a flat array (array of primitives) */\n flat?: boolean;\n /** Initial value for new array elements */\n elementInitialValue?: unknown;\n /** Whether the last element cannot be removed (always maintain at least one element) */\n lastElementNotRemovable?: boolean;\n /** Disable the field */\n disabled?: boolean;\n /** Optional explicit test id used to build stable test ids */\n testId?: string;\n /** Optional label content */\n label?: ReactNode;\n}\n\n/**\n * Enhanced useFieldArray hook with initialization and animation logic.\n * Based on React Hook Form's useFieldArray with additional features:\n * - Automatic initialization when lastElementNotRemovable is set\n * - Animation control (disabled during initialization)\n * - Support for flat arrays (arrays of primitives)\n *\n * Note: Automatic validation triggering on length change is disabled to prevent\n * triggering form-wide validation. Array validation still runs on form submission.\n *\n * @see https://react-hook-form.com/docs/usefieldarray\n */\nexport const useUniformFieldArray = <\n TFieldValues extends FieldValues = FieldValues,\n>({\n name,\n flat = false,\n elementInitialValue: _elementInitialValue = null,\n lastElementNotRemovable = false,\n disabled,\n testId: explicitTestId,\n label,\n}: UseUniformFieldArrayProps<TFieldValues>) => {\n // Get uniform field state and utilities\n const uniformField = useUniformField<TFieldValues>({\n name: name as Path<TFieldValues> & string,\n disabled,\n testId: explicitTestId,\n label,\n });\n\n const { control } = uniformField;\n\n const { fields, append, remove, insert, move } = useRHFFieldArray({\n control,\n name,\n });\n\n const { trigger, setValue } = useFormContext<TFieldValues>();\n\n // Determine if initialization is needed (initially or after reset).\n // This flag automatically handles both scenarios:\n // - Initial mount: fields.length starts at 0\n // - Form reset: fields.length becomes 0 again\n // Additional initialization conditions can be added here later (e.g., minElements > 0)\n // Using useMemo ensures this value is properly tracked by React and effects can depend on it\n const needsInitialize = useMemo(() => {\n return lastElementNotRemovable && fields.length === 0;\n }, [lastElementNotRemovable, fields.length]);\n\n // Track whether initialization has completed. Initialized contextually:\n // - If initialization IS needed (needsInitialize = true): starts as false, set to true after init\n // - If initialization is NOT needed (needsInitialize = false): starts as true (already initialized)\n // This ref is used to:\n // 1. Skip validation during initialization/re-initialization\n // 2. Gate animation enabling until after initialization\n // 3. Gate motion preference effect until after initialization\n const hasInitialized = useRef(!needsInitialize);\n\n // Reset initialization flag when needsInitialize changes to true.\n // This handles form reset: when fields become empty (needsInitialize becomes true),\n // hasInitialized is reset to false, triggering re-initialization in the effect below.\n useEffect(() => {\n if (needsInitialize) {\n hasInitialized.current = false;\n }\n }, [needsInitialize]);\n\n // Validate array-level constraints (min/max items) when length changes.\n // This ensures min/max errors appear instantly when user adds/removes items.\n // Note: Child field validation also runs, but new empty fields won't show as invalid\n // because useFormContext only sets invalid=true for touched fields or after form submission.\n // Skip validation during initialization/re-initialization to avoid showing errors prematurely.\n useEffect(() => {\n if (hasInitialized.current) {\n setTimeout(() => {\n trigger(name as Path<TFieldValues>);\n }, 200);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [fields.length]);\n\n // Animation control: Start with animations disabled to prevent animating in initial elements.\n // Will be enabled after initialization completes (unless user prefers reduced motion).\n const [disableAnimation, setDisableAnimation] = useState(true);\n\n // Respond to user's motion preference changes (after initialization).\n // During initialization, animations stay disabled regardless of preference.\n const prefersReducedMotion = useReducedMotion();\n useEffect(() => {\n if (hasInitialized.current) {\n setDisableAnimation(!!prefersReducedMotion);\n }\n }, [prefersReducedMotion]);\n\n // Prepare initial element value based on mode\n // - flat=true: arrays of primitives → object with flatArrayKey and null value by default\n // - flat=false: arrays of objects → empty object by default\n const elementInitialValue = useMemo(() => {\n return flat\n ? { [flatArrayKey]: _elementInitialValue ?? null }\n : (_elementInitialValue ?? {});\n }, [flat, _elementInitialValue]);\n\n // Initialization/Re-initialization: Add initial element when needed.\n // This handles both initial mount and form reset scenarios by reacting to needsInitialize.\n // CRITICAL: This effect MUST be the LAST hook in this component.\n // It sets hasInitialized.current = true, which acts as a gate for other effects.\n // If this runs before other effects, hasInitialized will be true during their first run,\n // causing them to execute logic meant only for post-initialization (e.g., validation,\n // animation enabling). By placing this last, all other effects run first with\n // hasInitialized = false, allowing them to skip initialization-phase logic.\n useEffect(\n () => {\n if (needsInitialize) {\n // use setValue instead of append to avoid focusing the added element\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n setValue(name as Path<TFieldValues>, [elementInitialValue] as any, {\n shouldDirty: false,\n shouldTouch: false,\n });\n\n // Mark initialization as complete\n hasInitialized.current = true;\n\n // Enable animations after a brief delay (unless user prefers reduced motion or animations are already enabled).\n // This only runs on initial mount when animations start disabled.\n // On reset, disableAnimation is typically false, so this setTimeout won't run and animations stay enabled.\n if (!prefersReducedMotion && disableAnimation) {\n setTimeout(() => {\n setDisableAnimation(false);\n }, 1);\n }\n }\n },\n // Run when needsInitialize changes (initial mount or reset)\n // needsInitialize is memoized based on fields.length and lastElementNotRemovable\n // Other dependencies are intentionally omitted:\n // - append, setValue, trigger, setDisableAnimation are stable refs/functions\n // - elementInitialValue, name, flat, prefersReducedMotion, disableAnimation are props/stable values\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [needsInitialize],\n );\n\n return {\n // Field array methods and state\n fields,\n append,\n remove,\n insert,\n move,\n disableAnimation,\n elementInitialValue,\n // Uniform field state and utilities (spread all)\n ...uniformField,\n };\n};\n","/* v8 ignore start */\n\nexport * from './useUniformFieldArray';\n\n/* v8 ignore stop */\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA2CA,MAAa,wBAEX,EACA,MACA,OAAO,OACP,qBAAqB,uBAAuB,MAC5C,0BAA0B,OAC1B,UACA,QAAQ,gBACR,YAC6C;CAE7C,MAAM,eAAeA,wCAA8B;EAC3C;EACN;EACA,QAAQ;EACR;EACD,CAAC;CAEF,MAAM,EAAE,YAAY;CAEpB,MAAM,EAAE,QAAQ,QAAQ,QAAQ,QAAQ,4CAA0B;EAChE;EACA;EACD,CAAC;CAEF,MAAM,EAAE,SAAS,aAAaC,uCAA8B;CAQ5D,MAAM,2CAAgC;AACpC,SAAO,2BAA2B,OAAO,WAAW;IACnD,CAAC,yBAAyB,OAAO,OAAO,CAAC;CAS5C,MAAM,mCAAwB,CAAC,gBAAgB;AAK/C,4BAAgB;AACd,MAAI,gBACF,gBAAe,UAAU;IAE1B,CAAC,gBAAgB,CAAC;AAOrB,4BAAgB;AACd,MAAI,eAAe,QACjB,kBAAiB;AACf,WAAQ,KAA2B;KAClC,IAAI;IAGR,CAAC,OAAO,OAAO,CAAC;CAInB,MAAM,CAAC,kBAAkB,2CAAgC,KAAK;CAI9D,MAAM,sEAAyC;AAC/C,4BAAgB;AACd,MAAI,eAAe,QACjB,qBAAoB,CAAC,CAAC,qBAAqB;IAE5C,CAAC,qBAAqB,CAAC;CAK1B,MAAM,+CAAoC;AACxC,SAAO,OACH,GAAGC,+BAAe,wBAAwB,MAAM,GAC/C,wBAAwB,EAAE;IAC9B,CAAC,MAAM,qBAAqB,CAAC;AAUhC,4BACQ;AACJ,MAAI,iBAAiB;AAGnB,YAAS,MAA4B,CAAC,oBAAoB,EAAS;IACjE,aAAa;IACb,aAAa;IACd,CAAC;AAGF,kBAAe,UAAU;AAKzB,OAAI,CAAC,wBAAwB,iBAC3B,kBAAiB;AACf,wBAAoB,MAAM;MACzB,EAAE;;IAUX,CAAC,gBAAgB,CAClB;AAED,QAAO;EAEL;EACA;EACA;EACA;EACA;EACA;EACA;EAEA,GAAG;EACJ"}
1
+ {"version":3,"file":"useUniformFieldArray-CRCbV1J2.cjs","names":["useUniformField","useFormContext","flatArrayKey"],"sources":["../src/hooks/useUniformFieldArray/useUniformFieldArray.ts","../src/hooks/useUniformFieldArray/index.ts"],"sourcesContent":["import type { ReactNode } from 'react';\nimport type { ArrayPath, FieldValues, Path } from 'react-hook-form';\n\nimport { useEffect, useMemo, useRef, useState } from 'react';\nimport { useFieldArray as useRHFFieldArray } from 'react-hook-form';\n\nimport { useReducedMotion } from '@fuf-stack/pixel-motion';\n\nimport { flatArrayKey } from '../../helpers';\nimport { useFormContext } from '../useFormContext';\nimport { useUniformField } from '../useUniformField';\n\nexport interface UseUniformFieldArrayProps<\n TFieldValues extends FieldValues = FieldValues,\n> {\n /** Field name for the array */\n name: ArrayPath<TFieldValues>;\n /** Whether this is a flat array (array of primitives) */\n flat?: boolean;\n /** Initial value for new array elements */\n elementInitialValue?: unknown;\n /** Whether the last element cannot be removed (always maintain at least one element) */\n lastElementNotRemovable?: boolean;\n /** Disable the field */\n disabled?: boolean;\n /** Optional explicit test id used to build stable test ids */\n testId?: string;\n /** Optional label content */\n label?: ReactNode;\n}\n\n/**\n * Enhanced useFieldArray hook with initialization and animation logic.\n * Based on React Hook Form's useFieldArray with additional features:\n * - Automatic initialization when lastElementNotRemovable is set\n * - Animation control (disabled during initialization)\n * - Support for flat arrays (arrays of primitives)\n *\n * Note: Automatic validation triggering on length change is disabled to prevent\n * triggering form-wide validation. Array validation still runs on form submission.\n *\n * @see https://react-hook-form.com/docs/usefieldarray\n */\nexport const useUniformFieldArray = <\n TFieldValues extends FieldValues = FieldValues,\n>({\n name,\n flat = false,\n elementInitialValue: _elementInitialValue = null,\n lastElementNotRemovable = false,\n disabled,\n testId: explicitTestId,\n label,\n}: UseUniformFieldArrayProps<TFieldValues>) => {\n // Get uniform field state and utilities\n const uniformField = useUniformField<TFieldValues>({\n name: name as Path<TFieldValues> & string,\n disabled,\n testId: explicitTestId,\n label,\n });\n\n const { control } = uniformField;\n\n const { fields, append, remove, insert, move } = useRHFFieldArray({\n control,\n name,\n });\n\n const { trigger, setValue } = useFormContext<TFieldValues>();\n\n // Determine if initialization is needed (initially or after reset).\n // This flag automatically handles both scenarios:\n // - Initial mount: fields.length starts at 0\n // - Form reset: fields.length becomes 0 again\n // Additional initialization conditions can be added here later (e.g., minElements > 0)\n // Using useMemo ensures this value is properly tracked by React and effects can depend on it\n const needsInitialize = useMemo(() => {\n return lastElementNotRemovable && fields.length === 0;\n }, [lastElementNotRemovable, fields.length]);\n\n // Track whether initialization has completed. Initialized contextually:\n // - If initialization IS needed (needsInitialize = true): starts as false, set to true after init\n // - If initialization is NOT needed (needsInitialize = false): starts as true (already initialized)\n // This ref is used to:\n // 1. Skip validation during initialization/re-initialization\n // 2. Gate animation enabling until after initialization\n // 3. Gate motion preference effect until after initialization\n const hasInitialized = useRef(!needsInitialize);\n\n // Reset initialization flag when needsInitialize changes to true.\n // This handles form reset: when fields become empty (needsInitialize becomes true),\n // hasInitialized is reset to false, triggering re-initialization in the effect below.\n useEffect(() => {\n if (needsInitialize) {\n hasInitialized.current = false;\n }\n }, [needsInitialize]);\n\n // Validate array-level constraints (min/max items) when length changes.\n // This ensures min/max errors appear instantly when user adds/removes items.\n // Note: Child field validation also runs, but new empty fields won't show as invalid\n // because useFormContext only sets invalid=true for touched fields or after form submission.\n // Skip validation during initialization/re-initialization to avoid showing errors prematurely.\n useEffect(() => {\n if (hasInitialized.current) {\n setTimeout(() => {\n trigger(name as Path<TFieldValues>);\n }, 200);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [fields.length]);\n\n // Animation control: Start with animations disabled to prevent animating in initial elements.\n // Will be enabled after initialization completes (unless user prefers reduced motion).\n const [disableAnimation, setDisableAnimation] = useState(true);\n\n // Respond to user's motion preference changes (after initialization).\n // During initialization, animations stay disabled regardless of preference.\n const prefersReducedMotion = useReducedMotion();\n useEffect(() => {\n if (hasInitialized.current) {\n setDisableAnimation(!!prefersReducedMotion);\n }\n }, [prefersReducedMotion]);\n\n // Prepare initial element value based on mode\n // - flat=true: arrays of primitives → object with flatArrayKey and null value by default\n // - flat=false: arrays of objects → empty object by default\n const elementInitialValue = useMemo(() => {\n return flat\n ? { [flatArrayKey]: _elementInitialValue ?? null }\n : (_elementInitialValue ?? {});\n }, [flat, _elementInitialValue]);\n\n // Initialization/Re-initialization: Add initial element when needed.\n // This handles both initial mount and form reset scenarios by reacting to needsInitialize.\n // CRITICAL: This effect MUST be the LAST hook in this component.\n // It sets hasInitialized.current = true, which acts as a gate for other effects.\n // If this runs before other effects, hasInitialized will be true during their first run,\n // causing them to execute logic meant only for post-initialization (e.g., validation,\n // animation enabling). By placing this last, all other effects run first with\n // hasInitialized = false, allowing them to skip initialization-phase logic.\n useEffect(\n () => {\n if (needsInitialize) {\n // use setValue instead of append to avoid focusing the added element\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n setValue(name as Path<TFieldValues>, [elementInitialValue] as any, {\n shouldDirty: false,\n shouldTouch: false,\n });\n\n // Mark initialization as complete\n hasInitialized.current = true;\n\n // Enable animations after a brief delay (unless user prefers reduced motion or animations are already enabled).\n // This only runs on initial mount when animations start disabled.\n // On reset, disableAnimation is typically false, so this setTimeout won't run and animations stay enabled.\n if (!prefersReducedMotion && disableAnimation) {\n setTimeout(() => {\n setDisableAnimation(false);\n }, 1);\n }\n }\n },\n // Run when needsInitialize changes (initial mount or reset)\n // needsInitialize is memoized based on fields.length and lastElementNotRemovable\n // Other dependencies are intentionally omitted:\n // - append, setValue, trigger, setDisableAnimation are stable refs/functions\n // - elementInitialValue, name, flat, prefersReducedMotion, disableAnimation are props/stable values\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [needsInitialize],\n );\n\n return {\n // Field array methods and state\n fields,\n append,\n remove,\n insert,\n move,\n disableAnimation,\n elementInitialValue,\n // Uniform field state and utilities (spread all)\n ...uniformField,\n };\n};\n","/* v8 ignore start */\n\nexport * from './useUniformFieldArray';\n\n/* v8 ignore stop */\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA2CA,MAAa,wBAEX,EACA,MACA,OAAO,OACP,qBAAqB,uBAAuB,MAC5C,0BAA0B,OAC1B,UACA,QAAQ,gBACR,YAC6C;CAE7C,MAAM,eAAeA,wCAA8B;EAC3C;EACN;EACA,QAAQ;EACR;EACD,CAAC;CAEF,MAAM,EAAE,YAAY;CAEpB,MAAM,EAAE,QAAQ,QAAQ,QAAQ,QAAQ,4CAA0B;EAChE;EACA;EACD,CAAC;CAEF,MAAM,EAAE,SAAS,aAAaC,uCAA8B;CAQ5D,MAAM,2CAAgC;AACpC,SAAO,2BAA2B,OAAO,WAAW;IACnD,CAAC,yBAAyB,OAAO,OAAO,CAAC;CAS5C,MAAM,mCAAwB,CAAC,gBAAgB;AAK/C,4BAAgB;AACd,MAAI,gBACF,gBAAe,UAAU;IAE1B,CAAC,gBAAgB,CAAC;AAOrB,4BAAgB;AACd,MAAI,eAAe,QACjB,kBAAiB;AACf,WAAQ,KAA2B;KAClC,IAAI;IAGR,CAAC,OAAO,OAAO,CAAC;CAInB,MAAM,CAAC,kBAAkB,2CAAgC,KAAK;CAI9D,MAAM,sEAAyC;AAC/C,4BAAgB;AACd,MAAI,eAAe,QACjB,qBAAoB,CAAC,CAAC,qBAAqB;IAE5C,CAAC,qBAAqB,CAAC;CAK1B,MAAM,+CAAoC;AACxC,SAAO,OACH,GAAGC,+BAAe,wBAAwB,MAAM,GAC/C,wBAAwB,EAAE;IAC9B,CAAC,MAAM,qBAAqB,CAAC;AAUhC,4BACQ;AACJ,MAAI,iBAAiB;AAGnB,YAAS,MAA4B,CAAC,oBAAoB,EAAS;IACjE,aAAa;IACb,aAAa;IACd,CAAC;AAGF,kBAAe,UAAU;AAKzB,OAAI,CAAC,wBAAwB,iBAC3B,kBAAiB;AACf,wBAAoB,MAAM;MACzB,EAAE;;IAUX,CAAC,gBAAgB,CAClB;AAED,QAAO;EAEL;EACA;EACA;EACA;EACA;EACA;EACA;EAEA,GAAG;EACJ"}
@@ -1,5 +1,5 @@
1
- const require_FormContext = require('./FormContext-CeFKQmVH.cjs');
2
- const require_useFormContext = require('./useFormContext-DJiJlfGJ.cjs');
1
+ const require_FormContext = require('./FormContext-BSLO2-sO.cjs');
2
+ const require_useFormContext = require('./useFormContext-vdeeDsAs.cjs');
3
3
  let react = require("react");
4
4
 
5
5
  //#region src/hooks/useWatchUserChange/useWatchUserChange.ts
@@ -88,4 +88,4 @@ Object.defineProperty(exports, 'useWatchUserChange', {
88
88
  return useWatchUserChange;
89
89
  }
90
90
  });
91
- //# sourceMappingURL=useWatchUserChange-jivI5KIB.cjs.map
91
+ //# sourceMappingURL=useWatchUserChange-C1Kluht2.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"useWatchUserChange-jivI5KIB.cjs","names":["useFormContext"],"sources":["../src/hooks/useWatchUserChange/useWatchUserChange.ts"],"sourcesContent":["import type {\n FieldValues,\n Path,\n UseFormReset,\n UseFormResetField,\n UseFormSetValue,\n} from 'react-hook-form';\n\nimport { useEffect } from 'react';\n\nimport { useFormContext } from '../useFormContext/useFormContext';\n\nexport interface UseWatchUserChangeOptions<TFieldValues extends FieldValues> {\n /** Field name to watch for user changes */\n watch: Path<TFieldValues>;\n /**\n * Callback when watched field is changed by user input.\n * Receives the new value and form helpers (setValue, resetField, reset).\n */\n onChange: (\n value: unknown,\n helpers: {\n setValue: UseFormSetValue<TFieldValues>;\n resetField: UseFormResetField<TFieldValues>;\n reset: UseFormReset<TFieldValues>;\n },\n ) => void;\n}\n\n/**\n * Hook that watches for user changes on a specific form field.\n *\n * Only triggers on manual user input (typing, clicking, selecting),\n * NOT on programmatic changes like form.reset() or form.setValue().\n * Also does NOT trigger when selecting the same value (e.g., clicking\n * an already-selected option in a Select).\n *\n * This hook subscribes to field changes at the source (useController),\n * ensuring immediate and accurate detection of user interactions.\n *\n * Use cases:\n * - Reset dependent fields when parent field changes\n * - Set mode-specific default values when a toggle changes\n * - Clear form sections based on user selections\n * - Trigger side effects only on user interaction\n *\n * Note: To watch multiple fields, call this hook multiple times.\n *\n * @example\n * ```tsx\n * // Reset city and address when user changes country\n * useWatchUserChange({\n * watch: 'country',\n * onChange: (value, { resetField }) => {\n * resetField('city');\n * resetField('address');\n * },\n * });\n *\n * // Set defaults when user changes payment method\n * useWatchUserChange({\n * watch: 'paymentMethod',\n * onChange: (value, { setValue }) => {\n * if (value === 'credit') {\n * setValue('installments', 3);\n * } else {\n * setValue('installments', 1);\n * }\n * },\n * });\n *\n * // Watch multiple fields by calling the hook multiple times\n * useWatchUserChange({\n * watch: 'category',\n * onChange: (value, { resetField }) => {\n * resetField('productId');\n * },\n * });\n * useWatchUserChange({\n * watch: 'brand',\n * onChange: (value, { resetField }) => {\n * resetField('productId');\n * },\n * });\n * ```\n */\nexport const useWatchUserChange = <\n TFieldValues extends FieldValues = FieldValues,\n>({\n watch: watchField,\n onChange,\n}: UseWatchUserChangeOptions<TFieldValues>) => {\n const { setValue, resetField, reset, userChange } =\n useFormContext<TFieldValues>();\n\n useEffect(() => {\n // Create listener that checks if changed field is the one we're watching\n const listener = (fieldName: Path<TFieldValues>, value: unknown) => {\n // Check if this is the field we're watching\n if (fieldName === watchField) {\n // Call the onChange callback with helpers\n onChange(value, { setValue, resetField, reset });\n }\n };\n\n // Subscribe to user changes\n const unsubscribe = userChange.subscribe(listener);\n\n // Cleanup on unmount\n return unsubscribe;\n }, [watchField, onChange, setValue, resetField, reset, userChange]);\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsFA,MAAa,sBAEX,EACA,OAAO,YACP,eAC6C;CAC7C,MAAM,EAAE,UAAU,YAAY,OAAO,eACnCA,uCAA8B;AAEhC,4BAAgB;EAEd,MAAM,YAAY,WAA+B,UAAmB;AAElE,OAAI,cAAc,WAEhB,UAAS,OAAO;IAAE;IAAU;IAAY;IAAO,CAAC;;AAQpD,SAHoB,WAAW,UAAU,SAAS;IAIjD;EAAC;EAAY;EAAU;EAAU;EAAY;EAAO;EAAW,CAAC"}
1
+ {"version":3,"file":"useWatchUserChange-C1Kluht2.cjs","names":["useFormContext"],"sources":["../src/hooks/useWatchUserChange/useWatchUserChange.ts"],"sourcesContent":["import type {\n FieldValues,\n Path,\n UseFormReset,\n UseFormResetField,\n UseFormSetValue,\n} from 'react-hook-form';\n\nimport { useEffect } from 'react';\n\nimport { useFormContext } from '../useFormContext/useFormContext';\n\nexport interface UseWatchUserChangeOptions<TFieldValues extends FieldValues> {\n /** Field name to watch for user changes */\n watch: Path<TFieldValues>;\n /**\n * Callback when watched field is changed by user input.\n * Receives the new value and form helpers (setValue, resetField, reset).\n */\n onChange: (\n value: unknown,\n helpers: {\n setValue: UseFormSetValue<TFieldValues>;\n resetField: UseFormResetField<TFieldValues>;\n reset: UseFormReset<TFieldValues>;\n },\n ) => void;\n}\n\n/**\n * Hook that watches for user changes on a specific form field.\n *\n * Only triggers on manual user input (typing, clicking, selecting),\n * NOT on programmatic changes like form.reset() or form.setValue().\n * Also does NOT trigger when selecting the same value (e.g., clicking\n * an already-selected option in a Select).\n *\n * This hook subscribes to field changes at the source (useController),\n * ensuring immediate and accurate detection of user interactions.\n *\n * Use cases:\n * - Reset dependent fields when parent field changes\n * - Set mode-specific default values when a toggle changes\n * - Clear form sections based on user selections\n * - Trigger side effects only on user interaction\n *\n * Note: To watch multiple fields, call this hook multiple times.\n *\n * @example\n * ```tsx\n * // Reset city and address when user changes country\n * useWatchUserChange({\n * watch: 'country',\n * onChange: (value, { resetField }) => {\n * resetField('city');\n * resetField('address');\n * },\n * });\n *\n * // Set defaults when user changes payment method\n * useWatchUserChange({\n * watch: 'paymentMethod',\n * onChange: (value, { setValue }) => {\n * if (value === 'credit') {\n * setValue('installments', 3);\n * } else {\n * setValue('installments', 1);\n * }\n * },\n * });\n *\n * // Watch multiple fields by calling the hook multiple times\n * useWatchUserChange({\n * watch: 'category',\n * onChange: (value, { resetField }) => {\n * resetField('productId');\n * },\n * });\n * useWatchUserChange({\n * watch: 'brand',\n * onChange: (value, { resetField }) => {\n * resetField('productId');\n * },\n * });\n * ```\n */\nexport const useWatchUserChange = <\n TFieldValues extends FieldValues = FieldValues,\n>({\n watch: watchField,\n onChange,\n}: UseWatchUserChangeOptions<TFieldValues>) => {\n const { setValue, resetField, reset, userChange } =\n useFormContext<TFieldValues>();\n\n useEffect(() => {\n // Create listener that checks if changed field is the one we're watching\n const listener = (fieldName: Path<TFieldValues>, value: unknown) => {\n // Check if this is the field we're watching\n if (fieldName === watchField) {\n // Call the onChange callback with helpers\n onChange(value, { setValue, resetField, reset });\n }\n };\n\n // Subscribe to user changes\n const unsubscribe = userChange.subscribe(listener);\n\n // Cleanup on unmount\n return unsubscribe;\n }, [watchField, onChange, setValue, resetField, reset, userChange]);\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsFA,MAAa,sBAEX,EACA,OAAO,YACP,eAC6C;CAC7C,MAAM,EAAE,UAAU,YAAY,OAAO,eACnCA,uCAA8B;AAEhC,4BAAgB;EAEd,MAAM,YAAY,WAA+B,UAAmB;AAElE,OAAI,cAAc,WAEhB,UAAS,OAAO;IAAE;IAAU;IAAY;IAAO,CAAC;;AAQpD,SAHoB,WAAW,UAAU,SAAS;IAIjD;EAAC;EAAY;EAAU;EAAU;EAAY;EAAO;EAAW,CAAC"}
@@ -77,4 +77,4 @@ declare const useWatchUserChange: <TFieldValues extends FieldValues = FieldValue
77
77
  }: UseWatchUserChangeOptions<TFieldValues>) => void;
78
78
  //#endregion
79
79
  export { useWatchUserChange as n, UseWatchUserChangeOptions as t };
80
- //# sourceMappingURL=useWatchUserChange-DX6gUHvM.d.ts.map
80
+ //# sourceMappingURL=useWatchUserChange-CYd_8zeN.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useWatchUserChange-CYd_8zeN.d.ts","names":[],"sources":["../src/hooks/useWatchUserChange/useWatchUserChange.ts"],"mappings":";;;UAYiB,yBAAA,sBAA+C,WAAA;;EAE9D,KAAA,EAAO,IAAA,CAAK,YAAA;EAF4B;;;;EAOxC,QAAA,GACE,KAAA,WACA,OAAA;IACE,QAAA,EAAU,eAAA,CAAgB,YAAA;IAC1B,UAAA,EAAY,iBAAA,CAAkB,YAAA;IAC9B,KAAA,EAAO,YAAA,CAAa,YAAA;EAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;AA8D1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAAa,kBAAA,wBACU,WAAA,GAAc,WAAA;EACnC,KAAA,EAAA,UAAA;EAAA;AAAA,GAGC,yBAAA,CAA0B,YAAA"}
@@ -77,4 +77,4 @@ declare const useWatchUserChange: <TFieldValues extends FieldValues = FieldValue
77
77
  }: UseWatchUserChangeOptions<TFieldValues>) => void;
78
78
  //#endregion
79
79
  export { useWatchUserChange as n, UseWatchUserChangeOptions as t };
80
- //# sourceMappingURL=useWatchUserChange-cI5-j6M4.d.cts.map
80
+ //# sourceMappingURL=useWatchUserChange-DedTNvGV.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useWatchUserChange-DedTNvGV.d.cts","names":[],"sources":["../src/hooks/useWatchUserChange/useWatchUserChange.ts"],"mappings":";;;UAYiB,yBAAA,sBAA+C,WAAA;;EAE9D,KAAA,EAAO,IAAA,CAAK,YAAA;EAF4B;;;;EAOxC,QAAA,GACE,KAAA,WACA,OAAA;IACE,QAAA,EAAU,eAAA,CAAgB,YAAA;IAC1B,UAAA,EAAY,iBAAA,CAAkB,YAAA;IAC9B,KAAA,EAAO,YAAA,CAAa,YAAA;EAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;AA8D1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAAa,kBAAA,wBACU,WAAA,GAAc,WAAA;EACnC,KAAA,EAAA,UAAA;EAAA;AAAA,GAGC,yBAAA,CAA0B,YAAA"}
@@ -1,4 +1,4 @@
1
- import { n as useFormContext } from "./useFormContext-UFBqUfOr.js";
1
+ import { n as useFormContext } from "./useFormContext-Di67HIf7.js";
2
2
  import { useEffect } from "react";
3
3
 
4
4
  //#region src/hooks/useWatchUserChange/useWatchUserChange.ts
@@ -82,4 +82,4 @@ const useWatchUserChange = ({ watch: watchField, onChange }) => {
82
82
 
83
83
  //#endregion
84
84
  export { useWatchUserChange as t };
85
- //# sourceMappingURL=useWatchUserChange-DyhUYlrN.js.map
85
+ //# sourceMappingURL=useWatchUserChange-Dj9Imxfi.js.map