@fuf-stack/uniform 1.14.0 → 1.16.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 (252) 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-D5sibD6f.cjs → Checkboxes-3Rg0gyfO.cjs} +2 -2
  6. package/dist/{Checkboxes-D5sibD6f.cjs.map → Checkboxes-3Rg0gyfO.cjs.map} +1 -1
  7. package/dist/{Checkboxes-C57URc95.js → Checkboxes-BfUtbKe-.js} +2 -2
  8. package/dist/{Checkboxes-C57URc95.js.map → Checkboxes-BfUtbKe-.js.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-CWxV0Q6O.cjs → FieldArray-BgvSTDWi.cjs} +5 -5
  14. package/dist/FieldArray-BgvSTDWi.cjs.map +1 -0
  15. package/dist/{FieldArray-D-vR7oCb.js → FieldArray-C8Ipn-tM.js} +5 -5
  16. package/dist/FieldArray-C8Ipn-tM.js.map +1 -0
  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-CKEeknzL.js → FieldCard-DZSiMFoO.js} +71 -16
  22. package/dist/FieldCard-DZSiMFoO.js.map +1 -0
  23. package/dist/{FieldCard-DiaY4qXt.cjs → FieldCard-DcMORXZR.cjs} +71 -16
  24. package/dist/FieldCard-DcMORXZR.cjs.map +1 -0
  25. package/dist/Form/index.d.cts +1 -1
  26. package/dist/Grid/index.d.cts +1 -1
  27. package/dist/Grid/index.d.ts +1 -1
  28. package/dist/Input/index.cjs +1 -1
  29. package/dist/Input/index.d.cts +1 -1
  30. package/dist/Input/index.d.ts +1 -1
  31. package/dist/Input/index.js +1 -1
  32. package/dist/{Input-CUeTrgO_.js → Input-ChXItabV.js} +2 -2
  33. package/dist/{Input-CUeTrgO_.js.map → Input-ChXItabV.js.map} +1 -1
  34. package/dist/{Input-BJkL5IVO.cjs → Input-DlyrGFYf.cjs} +2 -2
  35. package/dist/{Input-BJkL5IVO.cjs.map → Input-DlyrGFYf.cjs.map} +1 -1
  36. package/dist/RadioBoxes/index.cjs +1 -1
  37. package/dist/RadioBoxes/index.d.cts +1 -1
  38. package/dist/RadioBoxes/index.d.ts +1 -1
  39. package/dist/RadioBoxes/index.js +1 -1
  40. package/dist/{RadioBoxes-BXAo2Nom.cjs → RadioBoxes-ClDOhQkO.cjs} +2 -2
  41. package/dist/{RadioBoxes-BXAo2Nom.cjs.map → RadioBoxes-ClDOhQkO.cjs.map} +1 -1
  42. package/dist/{RadioBoxes-B-EbjvDm.js → RadioBoxes-D6ULFGfd.js} +2 -2
  43. package/dist/{RadioBoxes-B-EbjvDm.js.map → RadioBoxes-D6ULFGfd.js.map} +1 -1
  44. package/dist/RadioTabs/index.cjs +1 -1
  45. package/dist/RadioTabs/index.d.cts +1 -1
  46. package/dist/RadioTabs/index.d.ts +1 -1
  47. package/dist/RadioTabs/index.js +1 -1
  48. package/dist/{RadioTabs-rDuug93J.cjs → RadioTabs-CgB0MmbK.cjs} +2 -2
  49. package/dist/{RadioTabs-rDuug93J.cjs.map → RadioTabs-CgB0MmbK.cjs.map} +1 -1
  50. package/dist/{RadioTabs-C2FIAjx-.js → RadioTabs-eSB6OXD7.js} +2 -2
  51. package/dist/{RadioTabs-C2FIAjx-.js.map → RadioTabs-eSB6OXD7.js.map} +1 -1
  52. package/dist/Radios/index.cjs +1 -1
  53. package/dist/Radios/index.d.cts +1 -1
  54. package/dist/Radios/index.d.ts +1 -1
  55. package/dist/Radios/index.js +1 -1
  56. package/dist/{Radios-N5qCQRBU.js → Radios-BXuyREKO.js} +2 -2
  57. package/dist/{Radios-N5qCQRBU.js.map → Radios-BXuyREKO.js.map} +1 -1
  58. package/dist/{Radios-LD2USByC.cjs → Radios-DWsCLUVl.cjs} +2 -2
  59. package/dist/{Radios-LD2USByC.cjs.map → Radios-DWsCLUVl.cjs.map} +1 -1
  60. package/dist/Select/index.cjs +1 -1
  61. package/dist/Select/index.d.cts +1 -1
  62. package/dist/Select/index.d.ts +1 -1
  63. package/dist/Select/index.js +1 -1
  64. package/dist/{Select-C5mS7WZC.cjs → Select-CTbXrAjL.cjs} +34 -13
  65. package/dist/Select-CTbXrAjL.cjs.map +1 -0
  66. package/dist/{Select-D_LJBu0p.js → Select-Dk_K_Q0F.js} +35 -14
  67. package/dist/Select-Dk_K_Q0F.js.map +1 -0
  68. package/dist/Slider/index.cjs +1 -1
  69. package/dist/Slider/index.d.cts +1 -1
  70. package/dist/Slider/index.d.ts +1 -1
  71. package/dist/Slider/index.js +1 -1
  72. package/dist/{Slider-D-bfkzoh.cjs → Slider-ChGkOSJJ.cjs} +2 -2
  73. package/dist/{Slider-D-bfkzoh.cjs.map → Slider-ChGkOSJJ.cjs.map} +1 -1
  74. package/dist/{Slider-CNlNpxV-.js → Slider-DdF0ZBzn.js} +2 -2
  75. package/dist/{Slider-CNlNpxV-.js.map → Slider-DdF0ZBzn.js.map} +1 -1
  76. package/dist/SubmitButton/index.d.cts +1 -1
  77. package/dist/SubmitButton/index.d.ts +1 -1
  78. package/dist/Switch/index.cjs +1 -1
  79. package/dist/Switch/index.d.cts +1 -1
  80. package/dist/Switch/index.d.ts +1 -1
  81. package/dist/Switch/index.js +1 -1
  82. package/dist/{Switch-DZptJsFF.js → Switch-DW9SOeIv.js} +2 -2
  83. package/dist/{Switch-DZptJsFF.js.map → Switch-DW9SOeIv.js.map} +1 -1
  84. package/dist/{Switch-BBAkWBHA.cjs → Switch-Lt61rKxf.cjs} +2 -2
  85. package/dist/{Switch-BBAkWBHA.cjs.map → Switch-Lt61rKxf.cjs.map} +1 -1
  86. package/dist/SwitchBox/index.cjs +1 -1
  87. package/dist/SwitchBox/index.d.cts +1 -1
  88. package/dist/SwitchBox/index.d.ts +1 -1
  89. package/dist/SwitchBox/index.js +1 -1
  90. package/dist/{SwitchBox-DZQCW3SK.js → SwitchBox-9KAu4WWd.js} +2 -2
  91. package/dist/{SwitchBox-DZQCW3SK.js.map → SwitchBox-9KAu4WWd.js.map} +1 -1
  92. package/dist/{SwitchBox-DHAJ_YXU.cjs → SwitchBox-D-EI9Sl-.cjs} +2 -2
  93. package/dist/{SwitchBox-DHAJ_YXU.cjs.map → SwitchBox-D-EI9Sl-.cjs.map} +1 -1
  94. package/dist/TextArea/index.cjs +1 -1
  95. package/dist/TextArea/index.d.cts +1 -1
  96. package/dist/TextArea/index.d.ts +1 -1
  97. package/dist/TextArea/index.js +1 -1
  98. package/dist/{TextArea-Dg2ZqJm2.js → TextArea-B0zYpNy-.js} +2 -2
  99. package/dist/{TextArea-Dg2ZqJm2.js.map → TextArea-B0zYpNy-.js.map} +1 -1
  100. package/dist/{TextArea-BBpGkB5f.cjs → TextArea-DRSFdn5v.cjs} +2 -2
  101. package/dist/{TextArea-BBpGkB5f.cjs.map → TextArea-DRSFdn5v.cjs.map} +1 -1
  102. package/dist/hooks/useController/index.cjs +1 -1
  103. package/dist/hooks/useController/index.d.cts +1 -1
  104. package/dist/hooks/useController/index.d.ts +1 -1
  105. package/dist/hooks/useController/index.js +1 -1
  106. package/dist/hooks/useFormContext/index.d.cts +1 -1
  107. package/dist/hooks/useFormContext/index.d.ts +1 -1
  108. package/dist/hooks/useUniformField/index.cjs +1 -1
  109. package/dist/hooks/useUniformField/index.d.cts +1 -1
  110. package/dist/hooks/useUniformField/index.d.ts +3 -3
  111. package/dist/hooks/useUniformField/index.js +1 -1
  112. package/dist/hooks/useUniformFieldArray/index.cjs +1 -1
  113. package/dist/hooks/useUniformFieldArray/index.d.cts +1 -1
  114. package/dist/hooks/useUniformFieldArray/index.d.ts +21 -21
  115. package/dist/hooks/useUniformFieldArray/index.js +1 -1
  116. package/dist/hooks/useWatchUserChange/index.cjs +1 -1
  117. package/dist/hooks/useWatchUserChange/index.d.cts +1 -1
  118. package/dist/hooks/useWatchUserChange/index.d.ts +1 -1
  119. package/dist/hooks/useWatchUserChange/index.js +1 -1
  120. package/dist/{index-CEzwxdlZ.d.ts → index-2SVlCM0Y.d.cts} +21 -21
  121. package/dist/{index-BeinxTzw.d.cts.map → index-2SVlCM0Y.d.cts.map} +1 -1
  122. package/dist/{index-CYdvpGJF.d.cts → index-B2IL9Zt7.d.cts} +3 -3
  123. package/dist/{index-CYdvpGJF.d.cts.map → index-B2IL9Zt7.d.cts.map} +1 -1
  124. package/dist/{index-BeinxTzw.d.cts → index-BDvr4eaz.d.ts} +21 -21
  125. package/dist/{index-CEzwxdlZ.d.ts.map → index-BDvr4eaz.d.ts.map} +1 -1
  126. package/dist/{index-nE7tTo2d.d.cts → index-BKCiuwim.d.cts} +46 -46
  127. package/dist/{index-nE7tTo2d.d.cts.map → index-BKCiuwim.d.cts.map} +1 -1
  128. package/dist/index-BTr_gid3.d.cts.map +1 -1
  129. package/dist/{index-C0--RHyE.d.cts → index-BZrLB2p0.d.cts} +34 -34
  130. package/dist/{index-C0--RHyE.d.cts.map → index-BZrLB2p0.d.cts.map} +1 -1
  131. package/dist/{index-P3_aBCSt.d.cts → index-BbA9HcNa.d.cts} +3 -3
  132. package/dist/{index-P3_aBCSt.d.cts.map → index-BbA9HcNa.d.cts.map} +1 -1
  133. package/dist/{index-BNu0EV5x.d.cts → index-Bo79xzb4.d.cts} +3 -3
  134. package/dist/{index-BNu0EV5x.d.cts.map → index-Bo79xzb4.d.cts.map} +1 -1
  135. package/dist/{index-ByQXPNeM.d.ts → index-BuX42Bbd.d.ts} +7 -6
  136. package/dist/index-BuX42Bbd.d.ts.map +1 -0
  137. package/dist/{index-BuaPmiMt.d.ts → index-CCeHSmIe.d.ts} +3 -3
  138. package/dist/{index-BuaPmiMt.d.ts.map → index-CCeHSmIe.d.ts.map} +1 -1
  139. package/dist/{index-CkhVD2Pw.d.ts → index-CJ90vm9t.d.ts} +6 -6
  140. package/dist/{index-CkhVD2Pw.d.ts.map → index-CJ90vm9t.d.ts.map} +1 -1
  141. package/dist/{index-DElTYKk8.d.ts → index-CPcJGZVS.d.ts} +3 -3
  142. package/dist/{index-DElTYKk8.d.ts.map → index-CPcJGZVS.d.ts.map} +1 -1
  143. package/dist/index-CRYEKT3o.d.ts +278 -0
  144. package/dist/index-CRYEKT3o.d.ts.map +1 -0
  145. package/dist/{index-B5BDC8Al.d.ts → index-CVY05bZf.d.ts} +3 -3
  146. package/dist/{index-B5BDC8Al.d.ts.map → index-CVY05bZf.d.ts.map} +1 -1
  147. package/dist/{index-DS54nHWk.d.cts → index-CZ5EIIjq.d.cts} +6 -6
  148. package/dist/{index-DS54nHWk.d.cts.map → index-CZ5EIIjq.d.cts.map} +1 -1
  149. package/dist/{index-BHklv3dW.d.ts → index-CdXOAPMb.d.ts} +48 -48
  150. package/dist/index-CdXOAPMb.d.ts.map +1 -0
  151. package/dist/{index-BOgOCyFF.d.cts → index-Cj5CLBt2.d.cts} +4 -4
  152. package/dist/{index-BOgOCyFF.d.cts.map → index-Cj5CLBt2.d.cts.map} +1 -1
  153. package/dist/{index-Cb0AgRRa.d.cts → index-CpVfOXNv.d.cts} +3 -3
  154. package/dist/{index-Cb0AgRRa.d.cts.map → index-CpVfOXNv.d.cts.map} +1 -1
  155. package/dist/{index-BbAjuXqS.d.cts → index-Ct2YYfiU.d.cts} +6 -6
  156. package/dist/{index-BbAjuXqS.d.cts.map → index-Ct2YYfiU.d.cts.map} +1 -1
  157. package/dist/{index-CbK-kEVY.d.cts → index-D-ucmG60.d.ts} +22 -22
  158. package/dist/index-D-ucmG60.d.ts.map +1 -0
  159. package/dist/index-D5rTKWm9.d.cts +278 -0
  160. package/dist/index-D5rTKWm9.d.cts.map +1 -0
  161. package/dist/{index-DsQabhNC.d.cts → index-DS4AP9pV.d.ts} +6 -6
  162. package/dist/{index-DMOAkVG4.d.ts.map → index-DS4AP9pV.d.ts.map} +1 -1
  163. package/dist/{index-5Hp_MzN_.d.cts → index-DW1uBiAf.d.cts} +5 -4
  164. package/dist/index-DW1uBiAf.d.cts.map +1 -0
  165. package/dist/{index-DamFEDHU.d.cts → index-DYErnCVV.d.cts} +36 -36
  166. package/dist/index-DYErnCVV.d.cts.map +1 -0
  167. package/dist/{index-DeHDOwxr.d.ts → index-DaBgwR1t.d.cts} +7 -7
  168. package/dist/{index-CbK-kEVY.d.cts.map → index-DaBgwR1t.d.cts.map} +1 -1
  169. package/dist/{index-Cb8jQhHS.d.ts → index-Djc5tmi3.d.ts} +36 -36
  170. package/dist/index-Djc5tmi3.d.ts.map +1 -0
  171. package/dist/{index-qNwZcAWj.d.ts → index-DubKudrE.d.ts} +6 -6
  172. package/dist/{index-qNwZcAWj.d.ts.map → index-DubKudrE.d.ts.map} +1 -1
  173. package/dist/{index-DMOAkVG4.d.ts → index-DymdaDrj.d.cts} +6 -6
  174. package/dist/{index-DsQabhNC.d.cts.map → index-DymdaDrj.d.cts.map} +1 -1
  175. package/dist/{index-CusdoJv3.d.ts → index-FHPC_VE1.d.ts} +35 -35
  176. package/dist/{index-CusdoJv3.d.ts.map → index-FHPC_VE1.d.ts.map} +1 -1
  177. package/dist/{index-6eckRMZA.d.cts → index-PU5WNOH9.d.cts} +3 -3
  178. package/dist/{index-6eckRMZA.d.cts.map → index-PU5WNOH9.d.cts.map} +1 -1
  179. package/dist/{index-BZ9HvBM6.d.cts → index-hacHTzh4.d.cts} +35 -35
  180. package/dist/{index-BZ9HvBM6.d.cts.map → index-hacHTzh4.d.cts.map} +1 -1
  181. package/dist/{index-CJcgEkPo.d.ts → index-lot50R9R.d.ts} +3 -3
  182. package/dist/{index-CJcgEkPo.d.ts.map → index-lot50R9R.d.ts.map} +1 -1
  183. package/dist/{index-ClQFLoqX.d.ts → index-noH6pESQ.d.ts} +34 -34
  184. package/dist/index-noH6pESQ.d.ts.map +1 -0
  185. package/dist/{index-ecrJ75NW.d.ts → index-tIGuHSXb.d.ts} +4 -4
  186. package/dist/{index-ecrJ75NW.d.ts.map → index-tIGuHSXb.d.ts.map} +1 -1
  187. package/dist/index.cjs +16 -16
  188. package/dist/index.d.cts +22 -22
  189. package/dist/index.d.ts +21 -21
  190. package/dist/index.js +16 -16
  191. package/dist/partials/FieldCopyTestIdButton/index.d.cts +1 -1
  192. package/dist/partials/FieldCopyTestIdButton/index.d.ts +1 -1
  193. package/dist/partials/FieldValidationError/index.d.cts +1 -1
  194. package/dist/partials/FieldValidationError/index.d.ts +1 -1
  195. package/dist/{useController-C_MZLZIp.d.cts → useController-B-DhUPpA.d.cts} +3 -1
  196. package/dist/{useController-C_MZLZIp.d.cts.map → useController-B-DhUPpA.d.cts.map} +1 -1
  197. package/dist/{useController-hjpJQf0w.d.ts → useController-Co8wbo-Y.d.ts} +3 -1
  198. package/dist/{useController-hjpJQf0w.d.ts.map → useController-Co8wbo-Y.d.ts.map} +1 -1
  199. package/dist/{useController-Dleq15tG.js → useController-QcOl0O0v.js} +4 -1
  200. package/dist/useController-QcOl0O0v.js.map +1 -0
  201. package/dist/{useController-BySgDIes.cjs → useController-oCYPeezC.cjs} +4 -1
  202. package/dist/useController-oCYPeezC.cjs.map +1 -0
  203. package/dist/{useFormContext-B7ooPCfd.d.ts → useFormContext-DDx8LD8e.d.ts} +3 -3
  204. package/dist/{useFormContext-B7ooPCfd.d.ts.map → useFormContext-DDx8LD8e.d.ts.map} +1 -1
  205. package/dist/{useFormContext-DihY1N8O.d.cts → useFormContext-oEivkWtB.d.cts} +19 -19
  206. package/dist/{useFormContext-DihY1N8O.d.cts.map → useFormContext-oEivkWtB.d.cts.map} +1 -1
  207. package/dist/{useUniformField-Brwxoghf.js → useUniformField-C6oSAFa3.js} +2 -2
  208. package/dist/{useUniformField-Brwxoghf.js.map → useUniformField-C6oSAFa3.js.map} +1 -1
  209. package/dist/{useUniformField-Dz_-tPrO.d.cts → useUniformField-DFXQO9dw.d.cts} +3 -3
  210. package/dist/{useUniformField-Dz_-tPrO.d.cts.map → useUniformField-DFXQO9dw.d.cts.map} +1 -1
  211. package/dist/{useUniformField-BJTRfqCQ.cjs → useUniformField-Dd3AnpgE.cjs} +2 -2
  212. package/dist/{useUniformField-BJTRfqCQ.cjs.map → useUniformField-Dd3AnpgE.cjs.map} +1 -1
  213. package/dist/{useUniformField-giYkUMG_.d.ts → useUniformField-q3GCAV85.d.ts} +3 -3
  214. package/dist/{useUniformField-giYkUMG_.d.ts.map → useUniformField-q3GCAV85.d.ts.map} +1 -1
  215. package/dist/{useUniformFieldArray-BMBc3o7P.d.cts → useUniformFieldArray-B3smveBW.d.cts} +14 -14
  216. package/dist/{useUniformFieldArray-BMBc3o7P.d.cts.map → useUniformFieldArray-B3smveBW.d.cts.map} +1 -1
  217. package/dist/{useUniformFieldArray-COp7qAwf.d.ts → useUniformFieldArray-CmACueEO.d.ts} +4 -4
  218. package/dist/{useUniformFieldArray-COp7qAwf.d.ts.map → useUniformFieldArray-CmACueEO.d.ts.map} +1 -1
  219. package/dist/{useUniformFieldArray-N5uHlvRy.cjs → useUniformFieldArray-D93AUZI4.cjs} +2 -2
  220. package/dist/{useUniformFieldArray-N5uHlvRy.cjs.map → useUniformFieldArray-D93AUZI4.cjs.map} +1 -1
  221. package/dist/{useUniformFieldArray-SlUu--d6.js → useUniformFieldArray-DNrmEXLg.js} +2 -2
  222. package/dist/{useUniformFieldArray-SlUu--d6.js.map → useUniformFieldArray-DNrmEXLg.js.map} +1 -1
  223. package/dist/{useWatchUserChange-BAdiqg2q.d.ts → useWatchUserChange-DahNCPDG.d.cts} +3 -1
  224. package/dist/{useWatchUserChange-COVdHmki.d.cts.map → useWatchUserChange-DahNCPDG.d.cts.map} +1 -1
  225. package/dist/{useWatchUserChange-1ELFYX_F.js → useWatchUserChange-DyhUYlrN.js} +3 -1
  226. package/dist/useWatchUserChange-DyhUYlrN.js.map +1 -0
  227. package/dist/{useWatchUserChange-COVdHmki.d.cts → useWatchUserChange-JMU-vN92.d.ts} +3 -1
  228. package/dist/{useWatchUserChange-BAdiqg2q.d.ts.map → useWatchUserChange-JMU-vN92.d.ts.map} +1 -1
  229. package/dist/{useWatchUserChange-C1zOvSSU.cjs → useWatchUserChange-jivI5KIB.cjs} +3 -1
  230. package/dist/useWatchUserChange-jivI5KIB.cjs.map +1 -0
  231. package/package.json +2 -2
  232. package/dist/FieldArray-CWxV0Q6O.cjs.map +0 -1
  233. package/dist/FieldArray-D-vR7oCb.js.map +0 -1
  234. package/dist/FieldCard-CKEeknzL.js.map +0 -1
  235. package/dist/FieldCard-DiaY4qXt.cjs.map +0 -1
  236. package/dist/Select-C5mS7WZC.cjs.map +0 -1
  237. package/dist/Select-D_LJBu0p.js.map +0 -1
  238. package/dist/index-5Hp_MzN_.d.cts.map +0 -1
  239. package/dist/index-BHklv3dW.d.ts.map +0 -1
  240. package/dist/index-ByQXPNeM.d.ts.map +0 -1
  241. package/dist/index-CPE2gcz3.d.ts +0 -264
  242. package/dist/index-CPE2gcz3.d.ts.map +0 -1
  243. package/dist/index-Cb8jQhHS.d.ts.map +0 -1
  244. package/dist/index-ClQFLoqX.d.ts.map +0 -1
  245. package/dist/index-DamFEDHU.d.cts.map +0 -1
  246. package/dist/index-DeHDOwxr.d.ts.map +0 -1
  247. package/dist/index-jeFGTign.d.cts +0 -264
  248. package/dist/index-jeFGTign.d.cts.map +0 -1
  249. package/dist/useController-BySgDIes.cjs.map +0 -1
  250. package/dist/useController-Dleq15tG.js.map +0 -1
  251. package/dist/useWatchUserChange-1ELFYX_F.js.map +0 -1
  252. package/dist/useWatchUserChange-C1zOvSSU.cjs.map +0 -1
package/dist/index.cjs CHANGED
@@ -2,29 +2,29 @@ const require_FormContext = require('./FormContext-CeFKQmVH.cjs');
2
2
  const require_helpers = require('./helpers-CncbgvW_.cjs');
3
3
  const require_FieldCopyTestIdButton = require('./FieldCopyTestIdButton-DxJYKqrz.cjs');
4
4
  const require_FieldValidationError = require('./FieldValidationError-A384-L3Y.cjs');
5
- const require_useController = require('./useController-BySgDIes.cjs');
5
+ const require_useController = require('./useController-oCYPeezC.cjs');
6
6
  const require_useFormContext = require('./useFormContext-DJiJlfGJ.cjs');
7
7
  const require_useInputValueTransform = require('./useInputValueTransform-DuhPVE4L.cjs');
8
- const require_useUniformField = require('./useUniformField-BJTRfqCQ.cjs');
9
- const require_Checkboxes = require('./Checkboxes-D5sibD6f.cjs');
10
- const require_useUniformFieldArray = require('./useUniformFieldArray-N5uHlvRy.cjs');
11
- const require_FieldArray = require('./FieldArray-CWxV0Q6O.cjs');
8
+ const require_useUniformField = require('./useUniformField-Dd3AnpgE.cjs');
9
+ const require_Checkboxes = require('./Checkboxes-3Rg0gyfO.cjs');
10
+ const require_useUniformFieldArray = require('./useUniformFieldArray-D93AUZI4.cjs');
11
+ const require_FieldArray = require('./FieldArray-BgvSTDWi.cjs');
12
12
  const require_Grid = require('./Grid-CRURvciu.cjs');
13
- const require_FieldCard = require('./FieldCard-DiaY4qXt.cjs');
13
+ const require_FieldCard = require('./FieldCard-DcMORXZR.cjs');
14
14
  const require_Form = require('./Form-Ca3RxssB.cjs');
15
15
  const require_useInputValueDebounce = require('./useInputValueDebounce-KIKsvSLm.cjs');
16
- const require_Input = require('./Input-BJkL5IVO.cjs');
17
- const require_RadioBoxes = require('./RadioBoxes-BXAo2Nom.cjs');
18
- const require_RadioTabs = require('./RadioTabs-rDuug93J.cjs');
19
- const require_Radios = require('./Radios-LD2USByC.cjs');
20
- const require_Select = require('./Select-C5mS7WZC.cjs');
21
- const require_Slider = require('./Slider-D-bfkzoh.cjs');
16
+ const require_Input = require('./Input-DlyrGFYf.cjs');
17
+ const require_RadioBoxes = require('./RadioBoxes-ClDOhQkO.cjs');
18
+ const require_RadioTabs = require('./RadioTabs-CgB0MmbK.cjs');
19
+ const require_Radios = require('./Radios-DWsCLUVl.cjs');
20
+ const require_Select = require('./Select-CTbXrAjL.cjs');
21
+ const require_Slider = require('./Slider-ChGkOSJJ.cjs');
22
22
  const require_SubmitButton = require('./SubmitButton-C6sgPR8K.cjs');
23
- const require_Switch = require('./Switch-BBAkWBHA.cjs');
24
- const require_SwitchBox = require('./SwitchBox-DHAJ_YXU.cjs');
25
- const require_TextArea = require('./TextArea-BBpGkB5f.cjs');
23
+ const require_Switch = require('./Switch-Lt61rKxf.cjs');
24
+ const require_SwitchBox = require('./SwitchBox-D-EI9Sl-.cjs');
25
+ const require_TextArea = require('./TextArea-DRSFdn5v.cjs');
26
26
  const require_useClientValidation = require('./useClientValidation-DzomULfo.cjs');
27
- const require_useWatchUserChange = require('./useWatchUserChange-C1zOvSSU.cjs');
27
+ const require_useWatchUserChange = require('./useWatchUserChange-jivI5KIB.cjs');
28
28
  let _heroui_input = require("@heroui/input");
29
29
 
30
30
  //#region src/index.ts
package/dist/index.d.cts CHANGED
@@ -1,28 +1,28 @@
1
1
  import { i as useInputValueTransform, n as UseInputValueTransformOptions, r as UseInputValueTransformReturn, t as InputValueTransform } from "./useInputValueTransform-BV8o0PMI.cjs";
2
- import { n as Checkboxes, r as CheckboxesProps, t as CheckboxOption } from "./index-DS54nHWk.cjs";
3
- import { i as FieldArrayProps, n as FieldArrayChildrenRenderFn, r as FieldArrayFeatures, t as FieldArray } from "./index-BbAjuXqS.cjs";
4
- import { n as FieldCardProps, r as fieldCardVariants, t as FieldCard } from "./index-5Hp_MzN_.cjs";
5
- import { n as FormProps, t as Form } from "./index-BNu0EV5x.cjs";
6
- import { n as GridProps, t as Grid } from "./index-P3_aBCSt.cjs";
7
- import { n as InputProps, t as Input } from "./index-CbK-kEVY.cjs";
8
- import { n as RadioBoxes, r as RadioBoxesProps, t as radioBoxVariants } from "./index-BZ9HvBM6.cjs";
9
- import { n as RadioTabsProps, t as RadioTabs } from "./index-BOgOCyFF.cjs";
10
- import { n as RadiosProps, t as Radios } from "./index-C0--RHyE.cjs";
11
- import { n as SelectProps, t as Select } from "./index-jeFGTign.cjs";
12
- import { n as SliderProps, t as Slider } from "./index-nE7tTo2d.cjs";
13
- import { n as SubmitButtonProps, t as SubmitButton } from "./index-Cb0AgRRa.cjs";
14
- import { n as SwitchProps, t as Switch } from "./index-DamFEDHU.cjs";
15
- import { n as SwitchBoxProps, r as switchBoxVariants, t as SwitchBox } from "./index-DsQabhNC.cjs";
16
- import { n as TextAreaProps, t as TextArea } from "./index-BeinxTzw.cjs";
2
+ import { n as Checkboxes, r as CheckboxesProps, t as CheckboxOption } from "./index-CZ5EIIjq.cjs";
3
+ import { i as FieldArrayProps, n as FieldArrayChildrenRenderFn, r as FieldArrayFeatures, t as FieldArray } from "./index-Ct2YYfiU.cjs";
4
+ import { n as FieldCardProps, r as fieldCardVariants, t as FieldCard } from "./index-DW1uBiAf.cjs";
5
+ import { n as FormProps, t as Form } from "./index-Bo79xzb4.cjs";
6
+ import { n as GridProps, t as Grid } from "./index-BbA9HcNa.cjs";
7
+ import { n as InputProps, t as Input } from "./index-DaBgwR1t.cjs";
8
+ import { n as RadioBoxes, r as RadioBoxesProps, t as radioBoxVariants } from "./index-hacHTzh4.cjs";
9
+ import { n as RadioTabsProps, t as RadioTabs } from "./index-Cj5CLBt2.cjs";
10
+ import { n as RadiosProps, t as Radios } from "./index-BZrLB2p0.cjs";
11
+ import { n as SelectProps, t as Select } from "./index-D5rTKWm9.cjs";
12
+ import { n as SliderProps, t as Slider } from "./index-BKCiuwim.cjs";
13
+ import { n as SubmitButtonProps, t as SubmitButton } from "./index-CpVfOXNv.cjs";
14
+ import { n as SwitchProps, t as Switch } from "./index-DYErnCVV.cjs";
15
+ import { n as SwitchBoxProps, r as switchBoxVariants, t as SwitchBox } from "./index-DymdaDrj.cjs";
16
+ import { n as TextAreaProps, t as TextArea } from "./index-2SVlCM0Y.cjs";
17
17
  import { a as toFormFormat, c as createOptionValueConverter, i as nameToTestId, n as fromNullishString, o as toNullishString, r as isValueEmpty, s as toValidationFormat, t as flatArrayKey } from "./index-BTr_gid3.cjs";
18
18
  import { n as useClientValidation, t as clientValidationSchemaByName } from "./useClientValidation-DSMw7f-t.cjs";
19
- import { n as UseControllerReturn, r as useController, t as UseControllerProps } from "./useController-C_MZLZIp.cjs";
20
- import { n as useFormContext, t as checkFieldIsRequired } from "./useFormContext-DihY1N8O.cjs";
19
+ import { n as UseControllerReturn, r as useController, t as UseControllerProps } from "./useController-B-DhUPpA.cjs";
20
+ import { n as useFormContext, t as checkFieldIsRequired } from "./useFormContext-oEivkWtB.cjs";
21
21
  import { t as useInput } from "./useInput--wjwIBc5.cjs";
22
22
  import { n as UseInputValueDebounceReturn, r as useInputValueDebounce, t as UseInputValueDebounceOptions } from "./useInputValueDebounce-DI1C6oaU.cjs";
23
- import { n as UseUniformFieldReturn, r as useUniformField, t as UseUniformFieldParams } from "./useUniformField-Dz_-tPrO.cjs";
24
- import { n as FieldCopyTestIdButtonProps, t as FieldCopyTestIdButton } from "./index-6eckRMZA.cjs";
25
- import { n as FieldValidationErrorProps, t as FieldValidationError } from "./index-CYdvpGJF.cjs";
26
- import { n as useWatchUserChange, t as UseWatchUserChangeOptions } from "./useWatchUserChange-COVdHmki.cjs";
27
- import { n as useUniformFieldArray, t as UseUniformFieldArrayProps } from "./useUniformFieldArray-BMBc3o7P.cjs";
23
+ import { n as UseUniformFieldReturn, r as useUniformField, t as UseUniformFieldParams } from "./useUniformField-DFXQO9dw.cjs";
24
+ import { n as FieldCopyTestIdButtonProps, t as FieldCopyTestIdButton } from "./index-PU5WNOH9.cjs";
25
+ import { n as FieldValidationErrorProps, t as FieldValidationError } from "./index-B2IL9Zt7.cjs";
26
+ import { n as useWatchUserChange, t as UseWatchUserChangeOptions } from "./useWatchUserChange-DahNCPDG.cjs";
27
+ import { n as useUniformFieldArray, t as UseUniformFieldArrayProps } from "./useUniformFieldArray-B3smveBW.cjs";
28
28
  export { CheckboxOption, Checkboxes, CheckboxesProps, FieldArray, FieldArrayChildrenRenderFn, FieldArrayFeatures, FieldArrayProps, FieldCard, FieldCardProps, FieldCopyTestIdButton, FieldCopyTestIdButtonProps, FieldValidationError, FieldValidationErrorProps, Form, FormProps, Grid, GridProps, Input, InputProps, InputValueTransform, RadioBoxes, RadioBoxesProps, RadioTabs, RadioTabsProps, Radios, RadiosProps, Select, SelectProps, Slider, SliderProps, SubmitButton, SubmitButtonProps, Switch, SwitchBox, SwitchBoxProps, SwitchProps, TextArea, TextAreaProps, UseControllerProps, UseControllerReturn, UseInputValueDebounceOptions, UseInputValueDebounceReturn, UseInputValueTransformOptions, UseInputValueTransformReturn, UseUniformFieldArrayProps, UseUniformFieldParams, UseUniformFieldReturn, UseWatchUserChangeOptions, checkFieldIsRequired, clientValidationSchemaByName, createOptionValueConverter, fieldCardVariants, flatArrayKey, fromNullishString, isValueEmpty, nameToTestId, radioBoxVariants, switchBoxVariants, toFormFormat, toNullishString, toValidationFormat, useClientValidation, useController, useFormContext, useInput, useInputValueDebounce, useInputValueTransform, useUniformField, useUniformFieldArray, useWatchUserChange };
package/dist/index.d.ts CHANGED
@@ -1,30 +1,30 @@
1
1
  import { i as useInputValueTransform, n as UseInputValueTransformOptions, r as UseInputValueTransformReturn, t as InputValueTransform } from "./useInputValueTransform-Cc0qEsnS.js";
2
- import { n as Checkboxes, r as CheckboxesProps, t as CheckboxOption } from "./index-qNwZcAWj.js";
3
- import { i as FieldArrayProps, n as FieldArrayChildrenRenderFn, r as FieldArrayFeatures, t as FieldArray } from "./index-CkhVD2Pw.js";
4
- import { n as FieldCardProps, r as fieldCardVariants, t as FieldCard } from "./index-ByQXPNeM.js";
2
+ import { n as Checkboxes, r as CheckboxesProps, t as CheckboxOption } from "./index-DubKudrE.js";
3
+ import { i as FieldArrayProps, n as FieldArrayChildrenRenderFn, r as FieldArrayFeatures, t as FieldArray } from "./index-CJ90vm9t.js";
4
+ import { n as FieldCardProps, r as fieldCardVariants, t as FieldCard } from "./index-BuX42Bbd.js";
5
5
  import "./FormContext-C2_WMi_v.js";
6
6
  import { n as FormProps, t as Form } from "./index-aHcGnXHf.js";
7
- import { n as GridProps, t as Grid } from "./index-BuaPmiMt.js";
8
- import { n as InputProps, t as Input } from "./index-DeHDOwxr.js";
9
- import { n as RadioBoxes, r as RadioBoxesProps, t as radioBoxVariants } from "./index-CusdoJv3.js";
10
- import { n as RadioTabsProps, t as RadioTabs } from "./index-ecrJ75NW.js";
11
- import { n as RadiosProps, t as Radios } from "./index-ClQFLoqX.js";
12
- import { n as SelectProps, t as Select } from "./index-CPE2gcz3.js";
13
- import { n as SliderProps, t as Slider } from "./index-BHklv3dW.js";
14
- import { n as SubmitButtonProps, t as SubmitButton } from "./index-B5BDC8Al.js";
15
- import { n as SwitchProps, t as Switch } from "./index-Cb8jQhHS.js";
16
- import { n as SwitchBoxProps, r as switchBoxVariants, t as SwitchBox } from "./index-DMOAkVG4.js";
17
- import { n as TextAreaProps, t as TextArea } from "./index-CEzwxdlZ.js";
7
+ import { n as GridProps, t as Grid } from "./index-CCeHSmIe.js";
8
+ import { n as InputProps, t as Input } from "./index-D-ucmG60.js";
9
+ import { n as RadioBoxes, r as RadioBoxesProps, t as radioBoxVariants } from "./index-FHPC_VE1.js";
10
+ import { n as RadioTabsProps, t as RadioTabs } from "./index-tIGuHSXb.js";
11
+ import { n as RadiosProps, t as Radios } from "./index-noH6pESQ.js";
12
+ import { n as SelectProps, t as Select } from "./index-CRYEKT3o.js";
13
+ import { n as SliderProps, t as Slider } from "./index-CdXOAPMb.js";
14
+ import { n as SubmitButtonProps, t as SubmitButton } from "./index-CVY05bZf.js";
15
+ import { n as SwitchProps, t as Switch } from "./index-Djc5tmi3.js";
16
+ import { n as SwitchBoxProps, r as switchBoxVariants, t as SwitchBox } from "./index-DS4AP9pV.js";
17
+ import { n as TextAreaProps, t as TextArea } from "./index-BDvr4eaz.js";
18
18
  import { a as toFormFormat, c as createOptionValueConverter, i as nameToTestId, n as fromNullishString, o as toNullishString, r as isValueEmpty, s as toValidationFormat, t as flatArrayKey } from "./index-BPjrrFuM.js";
19
19
  import { n as useClientValidation, t as clientValidationSchemaByName } from "./useClientValidation-Bv0yxTyV.js";
20
- import { n as UseControllerReturn, r as useController, t as UseControllerProps } from "./useController-hjpJQf0w.js";
21
- import { n as useFormContext, t as checkFieldIsRequired } from "./useFormContext-B7ooPCfd.js";
20
+ import { n as UseControllerReturn, r as useController, t as UseControllerProps } from "./useController-Co8wbo-Y.js";
21
+ import { n as useFormContext, t as checkFieldIsRequired } from "./useFormContext-DDx8LD8e.js";
22
22
  import "./index-BRLjimYW.js";
23
23
  import { t as useInput } from "./useInput-BCdeYOOg.js";
24
24
  import { n as UseInputValueDebounceReturn, r as useInputValueDebounce, t as UseInputValueDebounceOptions } from "./useInputValueDebounce-fhmVn1aO.js";
25
- import { n as UseUniformFieldReturn, r as useUniformField, t as UseUniformFieldParams } from "./useUniformField-giYkUMG_.js";
26
- import { n as FieldCopyTestIdButtonProps, t as FieldCopyTestIdButton } from "./index-CJcgEkPo.js";
27
- import { n as FieldValidationErrorProps, t as FieldValidationError } from "./index-DElTYKk8.js";
28
- import { n as useWatchUserChange, t as UseWatchUserChangeOptions } from "./useWatchUserChange-BAdiqg2q.js";
29
- import { n as useUniformFieldArray, t as UseUniformFieldArrayProps } from "./useUniformFieldArray-COp7qAwf.js";
25
+ import { n as UseUniformFieldReturn, r as useUniformField, t as UseUniformFieldParams } from "./useUniformField-q3GCAV85.js";
26
+ import { n as FieldCopyTestIdButtonProps, t as FieldCopyTestIdButton } from "./index-lot50R9R.js";
27
+ import { n as FieldValidationErrorProps, t as FieldValidationError } from "./index-CPcJGZVS.js";
28
+ import { n as useWatchUserChange, t as UseWatchUserChangeOptions } from "./useWatchUserChange-JMU-vN92.js";
29
+ import { n as useUniformFieldArray, t as UseUniformFieldArrayProps } from "./useUniformFieldArray-CmACueEO.js";
30
30
  export { CheckboxOption, Checkboxes, CheckboxesProps, FieldArray, FieldArrayChildrenRenderFn, FieldArrayFeatures, FieldArrayProps, FieldCard, FieldCardProps, FieldCopyTestIdButton, FieldCopyTestIdButtonProps, FieldValidationError, FieldValidationErrorProps, Form, FormProps, Grid, GridProps, Input, InputProps, InputValueTransform, RadioBoxes, RadioBoxesProps, RadioTabs, RadioTabsProps, Radios, RadiosProps, Select, SelectProps, Slider, SliderProps, SubmitButton, SubmitButtonProps, Switch, SwitchBox, SwitchBoxProps, SwitchProps, TextArea, TextAreaProps, UseControllerProps, UseControllerReturn, UseInputValueDebounceOptions, UseInputValueDebounceReturn, UseInputValueTransformOptions, UseInputValueTransformReturn, UseUniformFieldArrayProps, UseUniformFieldParams, UseUniformFieldReturn, UseWatchUserChangeOptions, checkFieldIsRequired, clientValidationSchemaByName, createOptionValueConverter, fieldCardVariants, flatArrayKey, fromNullishString, isValueEmpty, nameToTestId, radioBoxVariants, switchBoxVariants, toFormFormat, toNullishString, toValidationFormat, useClientValidation, useController, useFormContext, useInput, useInputValueDebounce, useInputValueTransform, useUniformField, useUniformFieldArray, useWatchUserChange };
package/dist/index.js CHANGED
@@ -1,30 +1,30 @@
1
1
  import { a as toFormFormat, c as createOptionValueConverter, i as nameToTestId, n as fromNullishString, o as toNullishString, r as isValueEmpty, s as toValidationFormat, t as flatArrayKey } from "./helpers-D3A5d3M1.js";
2
2
  import { n as FieldCopyTestIdButton_default } from "./FieldCopyTestIdButton-D9f1B-VS.js";
3
3
  import { n as FieldValidationError_default } from "./FieldValidationError-BYwitb_B.js";
4
- import { t as useController } from "./useController-Dleq15tG.js";
4
+ import { t as useController } from "./useController-QcOl0O0v.js";
5
5
  import { n as useFormContext, t as checkFieldIsRequired } from "./useFormContext-UFBqUfOr.js";
6
6
  import { t as useInput } from "./useInput-DZ6KGBxw.js";
7
7
  import { t as useInputValueTransform } from "./useInputValueTransform-CMNC21vX.js";
8
- import { t as useUniformField } from "./useUniformField-Brwxoghf.js";
9
- import { n as Checkboxes_default } from "./Checkboxes-C57URc95.js";
10
- import { t as useUniformFieldArray } from "./useUniformFieldArray-SlUu--d6.js";
11
- import { n as FieldArray_default } from "./FieldArray-D-vR7oCb.js";
8
+ import { t as useUniformField } from "./useUniformField-C6oSAFa3.js";
9
+ import { n as Checkboxes_default } from "./Checkboxes-BfUtbKe-.js";
10
+ import { t as useUniformFieldArray } from "./useUniformFieldArray-DNrmEXLg.js";
11
+ import { n as FieldArray_default } from "./FieldArray-C8Ipn-tM.js";
12
12
  import { n as Grid_default } from "./Grid-LRjQlZms.js";
13
- import { n as fieldCardVariants, t as FieldCard_default } from "./FieldCard-CKEeknzL.js";
13
+ import { n as fieldCardVariants, t as FieldCard_default } from "./FieldCard-DZSiMFoO.js";
14
14
  import { n as Form_default } from "./Form-B7bv9fDO.js";
15
15
  import { t as useInputValueDebounce } from "./useInputValueDebounce-D9wArTKz.js";
16
- import { n as Input_default } from "./Input-CUeTrgO_.js";
17
- import { n as RadioBoxes_default, r as radioBoxVariants } from "./RadioBoxes-B-EbjvDm.js";
18
- import { n as RadioTabs_default } from "./RadioTabs-C2FIAjx-.js";
19
- import { n as Radios_default } from "./Radios-N5qCQRBU.js";
20
- import { n as Select_default } from "./Select-D_LJBu0p.js";
21
- import { n as Slider_default } from "./Slider-CNlNpxV-.js";
16
+ import { n as Input_default } from "./Input-ChXItabV.js";
17
+ import { n as RadioBoxes_default, r as radioBoxVariants } from "./RadioBoxes-D6ULFGfd.js";
18
+ import { n as RadioTabs_default } from "./RadioTabs-eSB6OXD7.js";
19
+ import { n as Radios_default } from "./Radios-BXuyREKO.js";
20
+ import { n as Select_default } from "./Select-Dk_K_Q0F.js";
21
+ import { n as Slider_default } from "./Slider-DdF0ZBzn.js";
22
22
  import { n as SubmitButton_default } from "./SubmitButton-BrbHJcb4.js";
23
- import { n as Switch_default } from "./Switch-DZptJsFF.js";
24
- import { n as SwitchBox_default, r as switchBoxVariants } from "./SwitchBox-DZQCW3SK.js";
25
- import { n as TextArea_default } from "./TextArea-Dg2ZqJm2.js";
23
+ import { n as Switch_default } from "./Switch-DW9SOeIv.js";
24
+ import { n as SwitchBox_default, r as switchBoxVariants } from "./SwitchBox-9KAu4WWd.js";
25
+ import { n as TextArea_default } from "./TextArea-B0zYpNy-.js";
26
26
  import { n as useClientValidation, t as clientValidationSchemaByName } from "./useClientValidation-C6Daq53C.js";
27
- import { t as useWatchUserChange } from "./useWatchUserChange-1ELFYX_F.js";
27
+ import { t as useWatchUserChange } from "./useWatchUserChange-DyhUYlrN.js";
28
28
 
29
29
  //#region src/index.ts
30
30
  /* v8 ignore stop */
@@ -1,2 +1,2 @@
1
- import { n as FieldCopyTestIdButtonProps, t as FieldCopyTestIdButton } from "../../index-6eckRMZA.cjs";
1
+ import { n as FieldCopyTestIdButtonProps, t as FieldCopyTestIdButton } from "../../index-PU5WNOH9.cjs";
2
2
  export { FieldCopyTestIdButton, FieldCopyTestIdButton as default, FieldCopyTestIdButtonProps };
@@ -1,2 +1,2 @@
1
- import { n as FieldCopyTestIdButtonProps, t as FieldCopyTestIdButton } from "../../index-CJcgEkPo.js";
1
+ import { n as FieldCopyTestIdButtonProps, t as FieldCopyTestIdButton } from "../../index-lot50R9R.js";
2
2
  export { FieldCopyTestIdButton, FieldCopyTestIdButton as default, FieldCopyTestIdButtonProps };
@@ -1,2 +1,2 @@
1
- import { n as FieldValidationErrorProps, t as FieldValidationError } from "../../index-CYdvpGJF.cjs";
1
+ import { n as FieldValidationErrorProps, t as FieldValidationError } from "../../index-B2IL9Zt7.cjs";
2
2
  export { FieldValidationError, FieldValidationError as default, FieldValidationErrorProps };
@@ -1,2 +1,2 @@
1
- import { n as FieldValidationErrorProps, t as FieldValidationError } from "../../index-DElTYKk8.js";
1
+ import { n as FieldValidationErrorProps, t as FieldValidationError } from "../../index-CPcJGZVS.js";
2
2
  export { FieldValidationError, FieldValidationError as default, FieldValidationErrorProps };
@@ -19,6 +19,8 @@ interface UseControllerReturn<TFieldValues extends object = object> {
19
19
  * 3. Handles both direct value changes and React synthetic events
20
20
  * 4. Maintains the same API as react-hook-form's useController
21
21
  * 5. Notifies UniformContext's userChange listeners on field changes (enables useWatchUserChange hook)
22
+ * 6. No-op when value unchanged: onChange is ignored if the new value equals the current value
23
+ * (prevents unnecessary re-renders and spurious useWatchUserChange triggers)
22
24
  *
23
25
  * This enables consistent handling of empty/null values while keeping a clean API
24
26
  * for form inputs that expect string values.
@@ -28,4 +30,4 @@ interface UseControllerReturn<TFieldValues extends object = object> {
28
30
  declare const useController: <TFieldValues extends object = object>(props: UseControllerProps$1<TFieldValues>) => UseControllerReturn<TFieldValues>;
29
31
  //#endregion
30
32
  export { UseControllerReturn as n, useController as r, UseControllerProps$1 as t };
31
- //# sourceMappingURL=useController-C_MZLZIp.d.cts.map
33
+ //# sourceMappingURL=useController-B-DhUPpA.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useController-C_MZLZIp.d.cts","names":[],"sources":["../src/hooks/useController/useController.ts"],"sourcesContent":[],"mappings":";;;KAaY,6DACV,mBAAsB;UAEP;EAHL,KAAA,EAIH,IAJG,CAIE,qBAJgB,CAIM,YAJN,CACN,EAAA,UAAA,GAAtB,OAAA,CAAA,GAAA;IAEe,QAAA,EAAA,CAAA,GAAA,KAAmB,EAAA,GAAA,EAAA,EAAA,GAAA,IAAA;IACA,KAAA,EAAA,MAAA;EAAtB,CAAA;EAAL,SAAA,EAMI,kBANJ,CAMuB,YANvB,CAAA;EAMuB,UAAA,EAClB,oBADkB;;;;AAmBhC;;;;;;;;;;;;;cAAa,6DACJ,qBAAmB,kBACzB,oBAAoB"}
1
+ {"version":3,"file":"useController-B-DhUPpA.d.cts","names":[],"sources":["../src/hooks/useController/useController.ts"],"sourcesContent":[],"mappings":";;;KAaY,6DACV,mBAAsB;UAEP;EAHL,KAAA,EAIH,IAJG,CAIE,qBAJgB,CAIM,YAJN,CACN,EAAA,UAAA,GAAtB,OAAA,CAAA,GAAA;IAEe,QAAA,EAAA,CAAA,GAAA,KAAmB,EAAA,GAAA,EAAA,EAAA,GAAA,IAAA;IACA,KAAA,EAAA,MAAA;EAAtB,CAAA;EAAL,SAAA,EAMI,kBANJ,CAMuB,YANvB,CAAA;EAMuB,UAAA,EAClB,oBADkB;;;;AAqBhC;;;;;;;;;;;;;;;cAAa,6DACJ,qBAAmB,kBACzB,oBAAoB"}
@@ -19,6 +19,8 @@ interface UseControllerReturn<TFieldValues extends object = object> {
19
19
  * 3. Handles both direct value changes and React synthetic events
20
20
  * 4. Maintains the same API as react-hook-form's useController
21
21
  * 5. Notifies UniformContext's userChange listeners on field changes (enables useWatchUserChange hook)
22
+ * 6. No-op when value unchanged: onChange is ignored if the new value equals the current value
23
+ * (prevents unnecessary re-renders and spurious useWatchUserChange triggers)
22
24
  *
23
25
  * This enables consistent handling of empty/null values while keeping a clean API
24
26
  * for form inputs that expect string values.
@@ -28,4 +30,4 @@ interface UseControllerReturn<TFieldValues extends object = object> {
28
30
  declare const useController$1: <TFieldValues extends object = object>(props: UseControllerProps$1<TFieldValues>) => UseControllerReturn<TFieldValues>;
29
31
  //#endregion
30
32
  export { UseControllerReturn as n, useController$1 as r, UseControllerProps$1 as t };
31
- //# sourceMappingURL=useController-hjpJQf0w.d.ts.map
33
+ //# sourceMappingURL=useController-Co8wbo-Y.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useController-hjpJQf0w.d.ts","names":[],"sources":["../src/hooks/useController/useController.ts"],"sourcesContent":[],"mappings":";;;KAaY,6DACV,mBAAsB;UAEP;EAHL,KAAA,EAIH,IAJG,CAIE,qBAJgB,CAIM,YAJN,CACN,EAAA,UAAA,GAAtB,OAAA,CAAA,GAAA;IAEe,QAAA,EAAA,CAAA,GAAA,KAAmB,EAAA,GAAA,EAAA,EAAA,GAAA,IAAA;IACA,KAAA,EAAA,MAAA;EAAtB,CAAA;EAAL,SAAA,EAMI,kBANJ,CAMuB,YANvB,CAAA;EAMuB,UAAA,EAClB,oBADkB;;;;AAmBhC;;;;;;;;;;;;;cAAa,+DACJ,qBAAmB,kBACzB,oBAAoB"}
1
+ {"version":3,"file":"useController-Co8wbo-Y.d.ts","names":[],"sources":["../src/hooks/useController/useController.ts"],"sourcesContent":[],"mappings":";;;KAaY,6DACV,mBAAsB;UAEP;EAHL,KAAA,EAIH,IAJG,CAIE,qBAJgB,CAIM,YAHZ,CAAA,EAAA,UAAA,GAAtB,OAAA,CAAA,GAAA;IAEe,QAAA,EAAA,CAAA,GAAA,KAAmB,EAAA,GAAA,EAAA,EAAA,GAAA,IAAA;IACA,KAAA,EAAA,MAAA;EAAtB,CAAA;EAAL,SAAA,EAMI,kBANJ,CAMuB,YANvB,CAAA;EAMuB,UAAA,EAClB,oBADkB;;;;AAqBhC;;;;;;;;;;;;;;;cAAa,+DACJ,qBAAmB,kBACzB,oBAAoB"}
@@ -13,6 +13,8 @@ import { useController } from "react-hook-form";
13
13
  * 3. Handles both direct value changes and React synthetic events
14
14
  * 4. Maintains the same API as react-hook-form's useController
15
15
  * 5. Notifies UniformContext's userChange listeners on field changes (enables useWatchUserChange hook)
16
+ * 6. No-op when value unchanged: onChange is ignored if the new value equals the current value
17
+ * (prevents unnecessary re-renders and spurious useWatchUserChange triggers)
16
18
  *
17
19
  * This enables consistent handling of empty/null values while keeping a clean API
18
20
  * for form inputs that expect string values.
@@ -28,6 +30,7 @@ const useController$1 = (props) => {
28
30
  onChange: (...event) => {
29
31
  const value = event[0]?.target?.value ?? event[0];
30
32
  const formattedValue = value === "" ? "" : toNullishString(value);
33
+ if (formattedValue === field.value) return;
31
34
  field.onChange(formattedValue);
32
35
  userChange?.notify(field.name, value);
33
36
  },
@@ -40,4 +43,4 @@ const useController$1 = (props) => {
40
43
 
41
44
  //#endregion
42
45
  export { useController$1 as t };
43
- //# sourceMappingURL=useController-Dleq15tG.js.map
46
+ //# sourceMappingURL=useController-QcOl0O0v.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useController-QcOl0O0v.js","names":["useController","useRHFController"],"sources":["../src/hooks/useController/useController.ts"],"sourcesContent":["import type {\n ControllerFieldState,\n ControllerRenderProps,\n UseControllerProps as RHFUseControllerProps,\n UseFormStateReturn,\n} from 'react-hook-form';\n\nimport { useContext } from 'react';\nimport { useController as useRHFController } from 'react-hook-form';\n\nimport { UniformContext } from '../../Form/subcomponents/FormContext';\nimport { fromNullishString, toNullishString } from '../../helpers';\n\nexport type UseControllerProps<TFieldValues extends object = object> =\n RHFUseControllerProps<TFieldValues>;\n\nexport interface UseControllerReturn<TFieldValues extends object = object> {\n field: Omit<ControllerRenderProps<TFieldValues>, 'onChange' | 'value'> & {\n // Using any[] to support both direct value changes and React synthetic events\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n onChange: (...event: any[]) => void;\n value: string;\n };\n formState: UseFormStateReturn<TFieldValues>;\n fieldState: ControllerFieldState;\n}\n\n/**\n * A wrapper around react-hook-form's useController that transparently handles nullish string conversions.\n *\n * Key features:\n * 1. Empty strings ('') in the UI are stored as null in form state\n * 2. Null/undefined values in form state are displayed as empty strings in the UI\n * 3. Handles both direct value changes and React synthetic events\n * 4. Maintains the same API as react-hook-form's useController\n * 5. Notifies UniformContext's userChange listeners on field changes (enables useWatchUserChange hook)\n * 6. No-op when value unchanged: onChange is ignored if the new value equals the current value\n * (prevents unnecessary re-renders and spurious useWatchUserChange triggers)\n *\n * This enables consistent handling of empty/null values while keeping a clean API\n * for form inputs that expect string values.\n *\n * @see https://react-hook-form.com/docs/usecontroller\n */\nexport const useController = <TFieldValues extends object = object>(\n props: UseControllerProps<TFieldValues>,\n): UseControllerReturn<TFieldValues> => {\n const { field, formState, fieldState } = useRHFController(props);\n const { userChange } = useContext(UniformContext);\n\n return {\n field: {\n ...field,\n // Handles both direct values (onChange(\"value\")) and events (onChange(event))\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n onChange: (...event: any[]) => {\n const value = event[0]?.target?.value ?? event[0];\n const formattedValue = value === '' ? '' : toNullishString(value);\n\n // Skip if value hasn't changed (e.g., user re-selects same option)\n // We compare formattedValue (the new value after nullish conversion) with\n // field.value (the current stored value, also in nullish format)\n if (formattedValue === field.value) {\n return;\n }\n\n // Update form state first\n field.onChange(formattedValue);\n\n // Then notify userChange listeners (for useWatchUserChange hook)\n // This ensures getValues() in listeners returns the updated value\n // Guard against undefined userChange (when used outside FormProvider)\n // NOTE: We notify with the original value (not formattedValue) so that\n // listeners receive the actual value (false, 0, null) instead of marker\n // strings like '__FALSE__', '__ZERO__', '__NULL__'\n userChange?.notify(field.name, value);\n },\n // Convert null/undefined to empty string for UI display\n value: fromNullishString(field.value) as string,\n },\n formState,\n fieldState,\n };\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AA4CA,MAAaA,mBACX,UACsC;CACtC,MAAM,EAAE,OAAO,WAAW,eAAeC,cAAiB,MAAM;CAChE,MAAM,EAAE,eAAe,WAAW,eAAe;AAEjD,QAAO;EACL,OAAO;GACL,GAAG;GAGH,WAAW,GAAG,UAAiB;IAC7B,MAAM,QAAQ,MAAM,IAAI,QAAQ,SAAS,MAAM;IAC/C,MAAM,iBAAiB,UAAU,KAAK,KAAK,gBAAgB,MAAM;AAKjE,QAAI,mBAAmB,MAAM,MAC3B;AAIF,UAAM,SAAS,eAAe;AAQ9B,gBAAY,OAAO,MAAM,MAAM,MAAM;;GAGvC,OAAO,kBAAkB,MAAM,MAAM;GACtC;EACD;EACA;EACD"}
@@ -13,6 +13,8 @@ let react_hook_form = require("react-hook-form");
13
13
  * 3. Handles both direct value changes and React synthetic events
14
14
  * 4. Maintains the same API as react-hook-form's useController
15
15
  * 5. Notifies UniformContext's userChange listeners on field changes (enables useWatchUserChange hook)
16
+ * 6. No-op when value unchanged: onChange is ignored if the new value equals the current value
17
+ * (prevents unnecessary re-renders and spurious useWatchUserChange triggers)
16
18
  *
17
19
  * This enables consistent handling of empty/null values while keeping a clean API
18
20
  * for form inputs that expect string values.
@@ -28,6 +30,7 @@ const useController = (props) => {
28
30
  onChange: (...event) => {
29
31
  const value = event[0]?.target?.value ?? event[0];
30
32
  const formattedValue = value === "" ? "" : require_helpers.toNullishString(value);
33
+ if (formattedValue === field.value) return;
31
34
  field.onChange(formattedValue);
32
35
  userChange?.notify(field.name, value);
33
36
  },
@@ -45,4 +48,4 @@ Object.defineProperty(exports, 'useController', {
45
48
  return useController;
46
49
  }
47
50
  });
48
- //# sourceMappingURL=useController-BySgDIes.cjs.map
51
+ //# sourceMappingURL=useController-oCYPeezC.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useController-oCYPeezC.cjs","names":["UniformContext","toNullishString","fromNullishString"],"sources":["../src/hooks/useController/useController.ts"],"sourcesContent":["import type {\n ControllerFieldState,\n ControllerRenderProps,\n UseControllerProps as RHFUseControllerProps,\n UseFormStateReturn,\n} from 'react-hook-form';\n\nimport { useContext } from 'react';\nimport { useController as useRHFController } from 'react-hook-form';\n\nimport { UniformContext } from '../../Form/subcomponents/FormContext';\nimport { fromNullishString, toNullishString } from '../../helpers';\n\nexport type UseControllerProps<TFieldValues extends object = object> =\n RHFUseControllerProps<TFieldValues>;\n\nexport interface UseControllerReturn<TFieldValues extends object = object> {\n field: Omit<ControllerRenderProps<TFieldValues>, 'onChange' | 'value'> & {\n // Using any[] to support both direct value changes and React synthetic events\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n onChange: (...event: any[]) => void;\n value: string;\n };\n formState: UseFormStateReturn<TFieldValues>;\n fieldState: ControllerFieldState;\n}\n\n/**\n * A wrapper around react-hook-form's useController that transparently handles nullish string conversions.\n *\n * Key features:\n * 1. Empty strings ('') in the UI are stored as null in form state\n * 2. Null/undefined values in form state are displayed as empty strings in the UI\n * 3. Handles both direct value changes and React synthetic events\n * 4. Maintains the same API as react-hook-form's useController\n * 5. Notifies UniformContext's userChange listeners on field changes (enables useWatchUserChange hook)\n * 6. No-op when value unchanged: onChange is ignored if the new value equals the current value\n * (prevents unnecessary re-renders and spurious useWatchUserChange triggers)\n *\n * This enables consistent handling of empty/null values while keeping a clean API\n * for form inputs that expect string values.\n *\n * @see https://react-hook-form.com/docs/usecontroller\n */\nexport const useController = <TFieldValues extends object = object>(\n props: UseControllerProps<TFieldValues>,\n): UseControllerReturn<TFieldValues> => {\n const { field, formState, fieldState } = useRHFController(props);\n const { userChange } = useContext(UniformContext);\n\n return {\n field: {\n ...field,\n // Handles both direct values (onChange(\"value\")) and events (onChange(event))\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n onChange: (...event: any[]) => {\n const value = event[0]?.target?.value ?? event[0];\n const formattedValue = value === '' ? '' : toNullishString(value);\n\n // Skip if value hasn't changed (e.g., user re-selects same option)\n // We compare formattedValue (the new value after nullish conversion) with\n // field.value (the current stored value, also in nullish format)\n if (formattedValue === field.value) {\n return;\n }\n\n // Update form state first\n field.onChange(formattedValue);\n\n // Then notify userChange listeners (for useWatchUserChange hook)\n // This ensures getValues() in listeners returns the updated value\n // Guard against undefined userChange (when used outside FormProvider)\n // NOTE: We notify with the original value (not formattedValue) so that\n // listeners receive the actual value (false, 0, null) instead of marker\n // strings like '__FALSE__', '__ZERO__', '__NULL__'\n userChange?.notify(field.name, value);\n },\n // Convert null/undefined to empty string for UI display\n value: fromNullishString(field.value) as string,\n },\n formState,\n fieldState,\n };\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AA4CA,MAAa,iBACX,UACsC;CACtC,MAAM,EAAE,OAAO,WAAW,kDAAgC,MAAM;CAChE,MAAM,EAAE,qCAA0BA,mCAAe;AAEjD,QAAO;EACL,OAAO;GACL,GAAG;GAGH,WAAW,GAAG,UAAiB;IAC7B,MAAM,QAAQ,MAAM,IAAI,QAAQ,SAAS,MAAM;IAC/C,MAAM,iBAAiB,UAAU,KAAK,KAAKC,gCAAgB,MAAM;AAKjE,QAAI,mBAAmB,MAAM,MAC3B;AAIF,UAAM,SAAS,eAAe;AAQ9B,gBAAY,OAAO,MAAM,MAAM,MAAM;;GAGvC,OAAOC,kCAAkB,MAAM,MAAM;GACtC;EACD;EACA;EACD"}
@@ -32,10 +32,10 @@ declare const useFormContext$1: <TFieldValues extends FieldValues = FieldValues,
32
32
  getValues: react_hook_form9.UseFormGetValues<TFieldValues>;
33
33
  subscribe: react_hook_form9.UseFormSubscribe<TFieldValues>;
34
34
  watch: react_hook_form9.UseFormWatch<TFieldValues>;
35
- debugMode: "off" | "disabled" | "debug" | "debug-testids";
35
+ debugMode: "disabled" | "off" | "debug" | "debug-testids";
36
36
  debugModeSettings?: DebugModeSettings;
37
37
  preventSubmit: (prevent: boolean) => void;
38
- setDebugMode: (debugMode: "off" | "disabled" | "debug" | "debug-testids") => void;
38
+ setDebugMode: (debugMode: "disabled" | "off" | "debug" | "debug-testids") => void;
39
39
  triggerSubmit: (e?: react0.BaseSyntheticEvent) => Promise<void> | void;
40
40
  userChange: {
41
41
  subscribe: (listener: UserChangeListener) => () => void;
@@ -61,4 +61,4 @@ declare const useFormContext$1: <TFieldValues extends FieldValues = FieldValues,
61
61
  };
62
62
  //#endregion
63
63
  export { useFormContext$1 as n, checkFieldIsRequired as t };
64
- //# sourceMappingURL=useFormContext-B7ooPCfd.d.ts.map
64
+ //# sourceMappingURL=useFormContext-DDx8LD8e.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useFormContext-B7ooPCfd.d.ts","names":[],"sources":["../src/hooks/useFormContext/useFormContext.ts"],"sourcesContent":[],"mappings":";;;;;;;;;cAYa,mCACC;;;;;AADd;AAqEA;;;;;cAAa,wCACU,cAAc,kDAEd;EAwBa,SAAA,4BAAA,aAAA,CAAA;EAAL,aAAA,EAAA,CAAA,IAAA,EAAA,IAAA,CAAK,YAAL,CAAA,EAAA,MAAA,CAAA,EAAA,MAAA,EAAA,GAAA;;;;;;;;;WAWO,mCAAA,aAAA,CAAA;EAAA,SAAA,mCAAA,aAAA,CAAA;EAAA,KAAA,+BAAA,aAAA,CAAA;EAyBpC,SAAA,EAAA,KAAA,GAAA,UAAA,GAAA,OAAA,GAAA,eAAA;EACyB,iBAAA,CAAA,mBAAA;EAAwE,aAAA,EAAA,CAAA,OAAA,EAAA,OAAA,EAAA,GAAA,IAAA;EAAA,YAAA,EAAA,CAAA,SAAA,EAAA,KAAA,GAAA,UAAA,GAAA,OAAA,GAAA,eAAA,EAAA,GAAA,IAAA;6BA1B7D,uBAAA;;0BAAA;;;;mBAyBpC;eACyB;aAAwE;qDAAA,gBAAA,CAAA,WAAA"}
1
+ {"version":3,"file":"useFormContext-DDx8LD8e.d.ts","names":[],"sources":["../src/hooks/useFormContext/useFormContext.ts"],"sourcesContent":[],"mappings":";;;;;;;;;cAYa,mCACC;;;;;AADd;AAqEA;;;;;cAAa,wCACU,cAAc,kDAEd;EAwBa,SAAA,4BAAA,aAAA,CAAA;EAAL,aAAA,EAAA,CAAA,IAAA,EAAA,IAAA,CAAK,YAAL,CAAA,EAAA,MAAA,CAAA,EAAA,MAAA,EAAA,GAAA;;;;;;;;;WAWO,mCAAA,aAAA,CAAA;EAAA,SAAA,mCAAA,aAAA,CAAA;EAAA,KAAA,+BAAA,aAAA,CAAA;EAyBpC,SAAA,EAAA,UAAA,GAAA,KAAA,GAAA,OAAA,GAAA,eAAA;EACyB,iBAAA,CAAA,mBAAA;EAAwE,aAAA,EAAA,CAAA,OAAA,EAAA,OAAA,EAAA,GAAA,IAAA;EAAA,YAAA,EAAA,CAAA,SAAA,EAAA,UAAA,GAAA,KAAA,GAAA,OAAA,GAAA,eAAA,EAAA,GAAA,IAAA;6BA1B7D,uBAAA;;0BAAA;;;;mBAyBpC;eACyB;aAAwE;qDAAA,gBAAA,CAAA,WAAA"}
@@ -2,7 +2,7 @@ import { n as UserChangeListener, t as DebugModeSettings } from "./FormContext-D
2
2
  import * as react0 from "react";
3
3
  import * as _fuf_stack_veto0 from "@fuf-stack/veto";
4
4
  import { VetoFormattedError, VetoInstance } from "@fuf-stack/veto";
5
- import * as react_hook_form9 from "react-hook-form";
5
+ import * as react_hook_form0 from "react-hook-form";
6
6
  import { FieldError, FieldValues, Path } from "react-hook-form";
7
7
 
8
8
  //#region src/hooks/useFormContext/useFormContext.d.ts
@@ -19,7 +19,7 @@ declare const checkFieldIsRequired: (validation: VetoInstance, path: string[]) =
19
19
  * - Filters out empty/null values
20
20
  */
21
21
  declare const useFormContext: <TFieldValues extends FieldValues = FieldValues, TContext = any, TTransformedValues = TFieldValues>() => {
22
- formState: react_hook_form9.FormState<TFieldValues>;
22
+ formState: react_hook_form0.FormState<TFieldValues>;
23
23
  getFieldState: (name: Path<TFieldValues>, testId?: string) => {
24
24
  error: FieldError[] | undefined;
25
25
  invalid: boolean;
@@ -29,13 +29,13 @@ declare const useFormContext: <TFieldValues extends FieldValues = FieldValues, T
29
29
  isTouched: boolean;
30
30
  isValidating: boolean;
31
31
  };
32
- getValues: react_hook_form9.UseFormGetValues<TFieldValues>;
33
- subscribe: react_hook_form9.UseFormSubscribe<TFieldValues>;
34
- watch: react_hook_form9.UseFormWatch<TFieldValues>;
35
- debugMode: "off" | "disabled" | "debug" | "debug-testids";
32
+ getValues: react_hook_form0.UseFormGetValues<TFieldValues>;
33
+ subscribe: react_hook_form0.UseFormSubscribe<TFieldValues>;
34
+ watch: react_hook_form0.UseFormWatch<TFieldValues>;
35
+ debugMode: "disabled" | "off" | "debug" | "debug-testids";
36
36
  debugModeSettings?: DebugModeSettings;
37
37
  preventSubmit: (prevent: boolean) => void;
38
- setDebugMode: (debugMode: "off" | "disabled" | "debug" | "debug-testids") => void;
38
+ setDebugMode: (debugMode: "disabled" | "off" | "debug" | "debug-testids") => void;
39
39
  triggerSubmit: (e?: react0.BaseSyntheticEvent) => Promise<void> | void;
40
40
  userChange: {
41
41
  subscribe: (listener: UserChangeListener) => () => void;
@@ -47,18 +47,18 @@ declare const useFormContext: <TFieldValues extends FieldValues = FieldValues, T
47
47
  errors?: VetoFormattedError;
48
48
  setClientValidationSchema: (key: string, schema: _fuf_stack_veto0.VetoTypeAny | null) => void;
49
49
  };
50
- setError: react_hook_form9.UseFormSetError<TFieldValues>;
51
- clearErrors: react_hook_form9.UseFormClearErrors<TFieldValues>;
52
- setValue: react_hook_form9.UseFormSetValue<TFieldValues>;
53
- trigger: react_hook_form9.UseFormTrigger<TFieldValues>;
54
- resetField: react_hook_form9.UseFormResetField<TFieldValues>;
55
- reset: react_hook_form9.UseFormReset<TFieldValues>;
56
- handleSubmit: react_hook_form9.UseFormHandleSubmit<TFieldValues, TTransformedValues>;
57
- unregister: react_hook_form9.UseFormUnregister<TFieldValues>;
58
- control: react_hook_form9.Control<TFieldValues, TContext, TTransformedValues>;
59
- register: react_hook_form9.UseFormRegister<TFieldValues>;
60
- setFocus: react_hook_form9.UseFormSetFocus<TFieldValues>;
50
+ setError: react_hook_form0.UseFormSetError<TFieldValues>;
51
+ clearErrors: react_hook_form0.UseFormClearErrors<TFieldValues>;
52
+ setValue: react_hook_form0.UseFormSetValue<TFieldValues>;
53
+ trigger: react_hook_form0.UseFormTrigger<TFieldValues>;
54
+ resetField: react_hook_form0.UseFormResetField<TFieldValues>;
55
+ reset: react_hook_form0.UseFormReset<TFieldValues>;
56
+ handleSubmit: react_hook_form0.UseFormHandleSubmit<TFieldValues, TTransformedValues>;
57
+ unregister: react_hook_form0.UseFormUnregister<TFieldValues>;
58
+ control: react_hook_form0.Control<TFieldValues, TContext, TTransformedValues>;
59
+ register: react_hook_form0.UseFormRegister<TFieldValues>;
60
+ setFocus: react_hook_form0.UseFormSetFocus<TFieldValues>;
61
61
  };
62
62
  //#endregion
63
63
  export { useFormContext as n, checkFieldIsRequired as t };
64
- //# sourceMappingURL=useFormContext-DihY1N8O.d.cts.map
64
+ //# sourceMappingURL=useFormContext-oEivkWtB.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useFormContext-DihY1N8O.d.cts","names":[],"sources":["../src/hooks/useFormContext/useFormContext.ts"],"sourcesContent":[],"mappings":";;;;;;;;;cAYa,mCACC;;;;;AADd;AAqEA;;;;;cAAa,sCACU,cAAc,kDAEd;EAwBa,SAAA,4BAAA,aAAA,CAAA;EAAL,aAAA,EAAA,CAAA,IAAA,EAAA,IAAA,CAAK,YAAL,CAAA,EAAA,MAAA,CAAA,EAAA,MAAA,EAAA,GAAA;;;;;;;;;WAWO,mCAAA,aAAA,CAAA;EAAA,SAAA,mCAAA,aAAA,CAAA;EAAA,KAAA,+BAAA,aAAA,CAAA;EAyBpC,SAAA,EAAA,KAAA,GAAA,UAAA,GAAA,OAAA,GAAA,eAAA;EACyB,iBAAA,CAAA,mBAAA;EAAwE,aAAA,EAAA,CAAA,OAAA,EAAA,OAAA,EAAA,GAAA,IAAA;EAAA,YAAA,EAAA,CAAA,SAAA,EAAA,KAAA,GAAA,UAAA,GAAA,OAAA,GAAA,eAAA,EAAA,GAAA,IAAA;6BA1B7D,uBAAA;;0BAAA;;;;mBAyBpC;eACyB;aAAwE;qDAAA,gBAAA,CAAA,WAAA"}
1
+ {"version":3,"file":"useFormContext-oEivkWtB.d.cts","names":[],"sources":["../src/hooks/useFormContext/useFormContext.ts"],"sourcesContent":[],"mappings":";;;;;;;;;cAYa,mCACC;;;;;AADd;AAqEA;;;;;cAAa,sCACU,cAAc,kDAEd;EAwBa,SAAA,4BAAA,aAAA,CAAA;EAAL,aAAA,EAAA,CAAA,IAAA,EAAA,IAAA,CAAK,YAAL,CAAA,EAAA,MAAA,CAAA,EAAA,MAAA,EAAA,GAAA;;;;;;;;;WAWO,mCAAA,aAAA,CAAA;EAAA,SAAA,mCAAA,aAAA,CAAA;EAAA,KAAA,+BAAA,aAAA,CAAA;EAyBpC,SAAA,EAAA,UAAA,GAAA,KAAA,GAAA,OAAA,GAAA,eAAA;EACyB,iBAAA,CAAA,mBAAA;EAAwE,aAAA,EAAA,CAAA,OAAA,EAAA,OAAA,EAAA,GAAA,IAAA;EAAA,YAAA,EAAA,CAAA,SAAA,EAAA,UAAA,GAAA,KAAA,GAAA,OAAA,GAAA,eAAA,EAAA,GAAA,IAAA;6BA1B7D,uBAAA;;0BAAA;;;;mBAyBpC;eACyB;aAAwE;qDAAA,gBAAA,CAAA,WAAA"}
@@ -1,7 +1,7 @@
1
1
  import { r as isValueEmpty } from "./helpers-D3A5d3M1.js";
2
2
  import { n as FieldCopyTestIdButton_default } from "./FieldCopyTestIdButton-D9f1B-VS.js";
3
3
  import { n as FieldValidationError_default } from "./FieldValidationError-BYwitb_B.js";
4
- import { t as useController } from "./useController-Dleq15tG.js";
4
+ import { t as useController } from "./useController-QcOl0O0v.js";
5
5
  import { n as useFormContext } from "./useFormContext-UFBqUfOr.js";
6
6
  import { t as useInput } from "./useInput-DZ6KGBxw.js";
7
7
  import { t as useInputValueTransform } from "./useInputValueTransform-CMNC21vX.js";
@@ -152,4 +152,4 @@ const useUniformField = (params) => {
152
152
 
153
153
  //#endregion
154
154
  export { useUniformField as t };
155
- //# sourceMappingURL=useUniformField-Brwxoghf.js.map
155
+ //# sourceMappingURL=useUniformField-C6oSAFa3.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useUniformField-Brwxoghf.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 { isTestEnvironment } from '@fuf-stack/pixel-utils';\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\n/**\n * Debounce invalid state changes to prevent UI flicker on rapid changes.\n *\n * Primary purpose: Reduce UI flicker when validation state changes rapidly\n * (e.g., during fast typing). Without debouncing, error messages would flash\n * in/out rapidly, creating a poor UX.\n *\n * Secondary benefit: When animations are enabled (default), gives time for\n * enter/exit animations to complete smoothly.\n *\n * Behavior:\n * - Debounces both true → false and false → true transitions by `delayMs`\n * - Disabled in test environments for immediate snapshots\n */\nconst useDebouncedInvalid = (invalid: boolean, delayMs: number) => {\n const debouncedInvalid = useDebounce(invalid, delayMs);\n\n // Disable debouncing in test environments for immediate snapshots\n if (isTestEnvironment()) {\n return invalid;\n }\n\n return debouncedInvalid;\n};\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 const invalid = useDebouncedInvalid(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":";;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BA,MAAM,uBAAuB,SAAkB,YAAoB;CACjE,MAAM,mBAAmB,YAAY,SAAS,QAAQ;AAGtD,KAAI,mBAAmB,CACrB,QAAO;AAGT,QAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgGT,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;CAE1C,MAAM,UAAU,oBADI,eAAe,YAAY,aAAa,cAAc,IACzB,IAAI;CAMrD,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
+ {"version":3,"file":"useUniformField-C6oSAFa3.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 { isTestEnvironment } from '@fuf-stack/pixel-utils';\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\n/**\n * Debounce invalid state changes to prevent UI flicker on rapid changes.\n *\n * Primary purpose: Reduce UI flicker when validation state changes rapidly\n * (e.g., during fast typing). Without debouncing, error messages would flash\n * in/out rapidly, creating a poor UX.\n *\n * Secondary benefit: When animations are enabled (default), gives time for\n * enter/exit animations to complete smoothly.\n *\n * Behavior:\n * - Debounces both true → false and false → true transitions by `delayMs`\n * - Disabled in test environments for immediate snapshots\n */\nconst useDebouncedInvalid = (invalid: boolean, delayMs: number) => {\n const debouncedInvalid = useDebounce(invalid, delayMs);\n\n // Disable debouncing in test environments for immediate snapshots\n if (isTestEnvironment()) {\n return invalid;\n }\n\n return debouncedInvalid;\n};\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 const invalid = useDebouncedInvalid(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":";;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BA,MAAM,uBAAuB,SAAkB,YAAoB;CACjE,MAAM,mBAAmB,YAAY,SAAS,QAAQ;AAGtD,KAAI,mBAAmB,CACrB,QAAO;AAGT,QAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgGT,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;CAE1C,MAAM,UAAU,oBADI,eAAe,YAAY,aAAa,cAAc,IACzB,IAAI;CAMrD,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,6 +1,6 @@
1
1
  import { t as InputValueTransform } from "./useInputValueTransform-BV8o0PMI.cjs";
2
- import { r as useController } from "./useController-C_MZLZIp.cjs";
3
- import { n as useFormContext } from "./useFormContext-DihY1N8O.cjs";
2
+ import { r as useController } from "./useController-B-DhUPpA.cjs";
3
+ import { n as useFormContext } from "./useFormContext-oEivkWtB.cjs";
4
4
  import { t as useInput } from "./useInput--wjwIBc5.cjs";
5
5
  import { ReactNode } from "react";
6
6
  import { FieldError, FieldValues, Path } from "react-hook-form";
@@ -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-Dz_-tPrO.d.cts.map
98
+ //# sourceMappingURL=useUniformField-DFXQO9dw.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useUniformField-Dz_-tPrO.d.cts","names":[],"sources":["../src/hooks/useUniformField/useUniformField.tsx"],"sourcesContent":[],"mappings":";;;;;;;;UA0CiB,2CACM,cAAc;;EADpB,IAAA,EAKT,IALS,CAKJ,YALI,CAAqB,GAAA,MAAA;EACf;EAAc,SAAA,CAAA,EAAA,MAAA;EAIxB;EAAL,QAAA,CAAA,EAAA,OAAA;EAME;EAIwB,KAAA,CAAA,EAJxB,SAIwB;EAApB;EAAmB,MAAA,CAAA,EAAA,MAAA;EAKhB;EACM,SAAA,CAAA,EANT,mBAMS,CANW,QAMX,CAAA;EAAc;EAKO,IAAA,CAAA,EAAA,MAAA,GAAA,QAAA,GAAA,UAAA;;AAAjC,UANM,qBAMN,CAAA,qBALY,WAKZ,GAL0B,WAK1B,CAAA,CAAA;EAEmC;EAAf,SAAA,EAAA,MAAA,GAAA,SAAA;EAAlB;EAMJ,OAAA,EARE,UAQF,CAAA,OARoB,cAQpB,CARmC,YAQnC,CAAA,CAAA,CAAA,SAAA,CAAA;EAEO;EAEyB,SAAA,EAV5B,UAU4B,CAAA,OAVV,cAUU,CAVK,YAUL,CAAA,CAAA,CAAA,WAAA,CAAA;EAAd;EAAlB,YAAA,EAAA,OAAA;EAEiC;EAAlB,QAAA,EAAA,OAAA,GAAA,SAAA;EAEmB;EAAlB,KAAA,EARhB,UAQgB,EAAA,GAAA,SAAA;EAEU;EAAlB,YAAA,EARD,SAQC,GAAA,IAAA;EAE6B;EAAf,KAAA,EARtB,UAQsB,CAAA,OARJ,aAQI,CARU,YAQV,CAAA,CAAA,CAAA,OAAA,CAAA;EAAlB;EAIJ,oBAAA,EAVe,UAUf,CAAA,OAViC,QAUjC,CAAA,CAAA,sBAAA,CAAA;EAEiC;EAAd,qBAAA,EAVH,UAUG,CAAA,OAVe,QAUf,CAAA,CAAA,uBAAA,CAAA;EAAlB;EAEkC,aAAA,EAV3B,UAU2B,CAAA,OAVT,QAUS,CAAA,CAAA,eAAA,CAAA;EAAd;EAAlB,SAAA,EARC,UAQD,CAAA,OARmB,cAQnB,CARkC,YAQlC,CAAA,CAAA,CAAA,WAAA,CAAA;EAE2B;EAAd,OAAA,EAAA,OAAA;EAAlB;EAIwC,KAAA,EAVtC,SAUsC,GAAA,IAAA;EAAf;EAAlB,MAAA,EARJ,UAQI,CAAA,OARc,aAQd,CAR4B,YAQ5B,CAAA,CAAA,CAAA,OAAA,CAAA,CAAA,QAAA,CAAA;EAAU;EAiCX,QAAA,EAvCD,UA6MX,CAAA,OA7M6B,aA6M7B,CA7M2C,YA6M3C,CAAA,CAAA,CAAA,OAAA,CAAA,CAAA,UAAA,CAAA;EArKsB;EAAc,GAAA,EAtC9B,UAsC8B,CAAA,OAtCZ,aAsCY,CAtCE,YAsCF,CAAA,CAAA,CAAA,OAAA,CAAA,CAAA,KAAA,CAAA;EAGL;EAAc,QAAA,EAAA,OAAA;EAApC;EACe,UAAA,EAtCX,UAsCW,CAAA,OAtCO,cAsCP,CAtCsB,YAsCtB,CAAA,CAAA,CAAA,YAAA,CAAA;EAAtB;EAAqB,MAAA,EAAA,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cALX,uCACU,cAAc,yCAG3B,sBAAsB,cAAc,cAC3C,sBAAsB"}
1
+ {"version":3,"file":"useUniformField-DFXQO9dw.d.cts","names":[],"sources":["../src/hooks/useUniformField/useUniformField.tsx"],"sourcesContent":[],"mappings":";;;;;;;;UA0CiB,2CACM,cAAc;;EADpB,IAAA,EAKT,IALS,CAKJ,YALI,CAAqB,GAAA,MAAA;EACf;EAAc,SAAA,CAAA,EAAA,MAAA;EAIxB;EAAL,QAAA,CAAA,EAAA,OAAA;EAME;EAIwB,KAAA,CAAA,EAJxB,SAIwB;EAApB;EAAmB,MAAA,CAAA,EAAA,MAAA;EAKhB;EACM,SAAA,CAAA,EANT,mBAMS,CANW,QAMX,CAAA;EAAc;EAKO,IAAA,CAAA,EAAA,MAAA,GAAA,QAAA,GAAA,UAAA;;AAAjC,UANM,qBAMN,CAAA,qBALY,WAKZ,GAL0B,WAK1B,CAAA,CAAA;EAEmC;EAAf,SAAA,EAAA,MAAA,GAAA,SAAA;EAAlB;EAMJ,OAAA,EARE,UAQF,CAAA,OARoB,cAQpB,CARmC,YAQnC,CAAA,CAAA,CAAA,SAAA,CAAA;EAEO;EAEyB,SAAA,EAV5B,UAU4B,CAAA,OAVV,cAUU,CAVK,YAUL,CAAA,CAAA,CAAA,WAAA,CAAA;EAAd;EAAlB,YAAA,EAAA,OAAA;EAEiC;EAAlB,QAAA,EAAA,OAAA,GAAA,SAAA;EAEmB;EAAlB,KAAA,EARhB,UAQgB,EAAA,GAAA,SAAA;EAEU;EAAlB,YAAA,EARD,SAQC,GAAA,IAAA;EAE6B;EAAf,KAAA,EARtB,UAQsB,CAAA,OARJ,aAQI,CARU,YAQV,CAAA,CAAA,CAAA,OAAA,CAAA;EAAlB;EAIJ,oBAAA,EAVe,UAUf,CAAA,OAViC,QAUjC,CAAA,CAAA,sBAAA,CAAA;EAEiC;EAAd,qBAAA,EAVH,UAUG,CAAA,OAVe,QAUf,CAAA,CAAA,uBAAA,CAAA;EAAlB;EAEkC,aAAA,EAV3B,UAU2B,CAAA,OAVT,QAUS,CAAA,CAAA,eAAA,CAAA;EAAd;EAAlB,SAAA,EARC,UAQD,CAAA,OARmB,cAQnB,CARkC,YAQlC,CAAA,CAAA,CAAA,WAAA,CAAA;EAE2B;EAAd,OAAA,EAAA,OAAA;EAAlB;EAIwC,KAAA,EAVtC,SAUsC,GAAA,IAAA;EAAf;EAAlB,MAAA,EARJ,UAQI,CAAA,OARc,aAQd,CAR4B,YAQ5B,CAAA,CAAA,CAAA,OAAA,CAAA,CAAA,QAAA,CAAA;EAAU;EAiCX,QAAA,EAvCD,UA6MX,CAAA,OA7M6B,aA6M7B,CA7M2C,YA6M3C,CAAA,CAAA,CAAA,OAAA,CAAA,CAAA,UAAA,CAAA;EArKsB;EAAc,GAAA,EAtC9B,UAsC8B,CAAA,OAtCZ,aAsCY,CAtCE,YAsCF,CAAA,CAAA,CAAA,OAAA,CAAA,CAAA,KAAA,CAAA;EAGL;EAAc,QAAA,EAAA,OAAA;EAApC;EACe,UAAA,EAtCX,UAsCW,CAAA,OAtCO,cAsCP,CAtCsB,YAsCtB,CAAA,CAAA,CAAA,YAAA,CAAA;EAAtB;EAAqB,MAAA,EAAA,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cALX,uCACU,cAAc,yCAG3B,sBAAsB,cAAc,cAC3C,sBAAsB"}
@@ -2,7 +2,7 @@ const require_FormContext = require('./FormContext-CeFKQmVH.cjs');
2
2
  const require_helpers = require('./helpers-CncbgvW_.cjs');
3
3
  const require_FieldCopyTestIdButton = require('./FieldCopyTestIdButton-DxJYKqrz.cjs');
4
4
  const require_FieldValidationError = require('./FieldValidationError-A384-L3Y.cjs');
5
- const require_useController = require('./useController-BySgDIes.cjs');
5
+ const require_useController = require('./useController-oCYPeezC.cjs');
6
6
  const require_useFormContext = require('./useFormContext-DJiJlfGJ.cjs');
7
7
  const require_useInputValueTransform = require('./useInputValueTransform-DuhPVE4L.cjs');
8
8
  let _fuf_stack_pixel_utils = require("@fuf-stack/pixel-utils");
@@ -159,4 +159,4 @@ Object.defineProperty(exports, 'useUniformField', {
159
159
  return useUniformField;
160
160
  }
161
161
  });
162
- //# sourceMappingURL=useUniformField-BJTRfqCQ.cjs.map
162
+ //# sourceMappingURL=useUniformField-Dd3AnpgE.cjs.map