@fuf-stack/uniform 1.11.0 → 1.11.2

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 (311) 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-CGWhnpBp.js → Checkboxes-BY4UK0Xf.js} +6 -6
  6. package/dist/Checkboxes-BY4UK0Xf.js.map +1 -0
  7. package/dist/{Checkboxes-Ds6bzl6p.cjs → Checkboxes-DgCK-Wq-.cjs} +18 -18
  8. package/dist/Checkboxes-DgCK-Wq-.cjs.map +1 -0
  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-D3iUaRLo.js → FieldArray-CDLaGvNj.js} +8 -8
  14. package/dist/FieldArray-CDLaGvNj.js.map +1 -0
  15. package/dist/{FieldArray-BexXN9bO.cjs → FieldArray-DBsyUQkU.cjs} +49 -49
  16. package/dist/FieldArray-DBsyUQkU.cjs.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-mpmErfDK.js → FieldCard-C1MCSbPW.js} +3 -3
  22. package/dist/{FieldCard-mpmErfDK.js.map → FieldCard-C1MCSbPW.js.map} +1 -1
  23. package/dist/{FieldCard-pP7aniZU.cjs → FieldCard-NKF358fO.cjs} +13 -13
  24. package/dist/{FieldCard-pP7aniZU.cjs.map → FieldCard-NKF358fO.cjs.map} +1 -1
  25. package/dist/{FieldCopyTestIdButton-AaLwu_8y.cjs → FieldCopyTestIdButton-BSYcSo2o.cjs} +10 -10
  26. package/dist/{FieldCopyTestIdButton-AaLwu_8y.cjs.map → FieldCopyTestIdButton-BSYcSo2o.cjs.map} +1 -1
  27. package/dist/{FieldCopyTestIdButton-Cx8AXJhO.js → FieldCopyTestIdButton-DWPCDJ-s.js} +4 -4
  28. package/dist/{FieldCopyTestIdButton-Cx8AXJhO.js.map → FieldCopyTestIdButton-DWPCDJ-s.js.map} +1 -1
  29. package/dist/{FieldValidationError-D86DPSOH.js → FieldValidationError-1hiDEFew.js} +4 -4
  30. package/dist/{FieldValidationError-D86DPSOH.js.map → FieldValidationError-1hiDEFew.js.map} +1 -1
  31. package/dist/{FieldValidationError-Cq6aI0tE.cjs → FieldValidationError-CE8R8qry.cjs} +13 -13
  32. package/dist/{FieldValidationError-Cq6aI0tE.cjs.map → FieldValidationError-CE8R8qry.cjs.map} +1 -1
  33. package/dist/Form/index.cjs +1 -1
  34. package/dist/Form/index.d.ts +1 -1
  35. package/dist/Form/index.js +1 -1
  36. package/dist/{Form-FvN3SXfF.cjs → Form-BsD69fql.cjs} +19 -19
  37. package/dist/{Form-FvN3SXfF.cjs.map → Form-BsD69fql.cjs.map} +1 -1
  38. package/dist/{Form-CFmCTl60.js → Form-DRNEwHsi.js} +4 -4
  39. package/dist/{Form-CFmCTl60.js.map → Form-DRNEwHsi.js.map} +1 -1
  40. package/dist/{FormContext-C3GymQOA.cjs → FormContext-Bb6d8hdG.cjs} +8 -8
  41. package/dist/FormContext-Bb6d8hdG.cjs.map +1 -0
  42. package/dist/FormContext-CN9n_KdE.js.map +1 -1
  43. package/dist/Grid/index.cjs +1 -1
  44. package/dist/Grid/index.d.cts +1 -1
  45. package/dist/Grid/index.d.ts +1 -1
  46. package/dist/Grid/index.js +1 -1
  47. package/dist/{Grid-DG60vYYG.cjs → Grid-D84e76CE.cjs} +8 -8
  48. package/dist/{Grid-DG60vYYG.cjs.map → Grid-D84e76CE.cjs.map} +1 -1
  49. package/dist/{Grid-DEH7Sezi.js → Grid-LRjQlZms.js} +4 -4
  50. package/dist/{Grid-DEH7Sezi.js.map → Grid-LRjQlZms.js.map} +1 -1
  51. package/dist/Input/index.cjs +1 -1
  52. package/dist/Input/index.d.cts +1 -1
  53. package/dist/Input/index.d.ts +1 -1
  54. package/dist/Input/index.js +1 -1
  55. package/dist/{Input--h5t7Sbl.js → Input-DXMWGTBh.js} +5 -5
  56. package/dist/Input-DXMWGTBh.js.map +1 -0
  57. package/dist/{Input-DKfFFOpo.cjs → Input-DeTpxiK_.cjs} +15 -15
  58. package/dist/Input-DeTpxiK_.cjs.map +1 -0
  59. package/dist/RadioBoxes/index.cjs +1 -1
  60. package/dist/RadioBoxes/index.d.cts +1 -1
  61. package/dist/RadioBoxes/index.d.ts +1 -1
  62. package/dist/RadioBoxes/index.js +1 -1
  63. package/dist/{RadioBoxes-7qdHj3ti.js → RadioBoxes-BEln4a-B.js} +5 -5
  64. package/dist/RadioBoxes-BEln4a-B.js.map +1 -0
  65. package/dist/{RadioBoxes-Bd9ahl4i.cjs → RadioBoxes-gsQGqQCd.cjs} +22 -22
  66. package/dist/RadioBoxes-gsQGqQCd.cjs.map +1 -0
  67. package/dist/RadioTabs/index.cjs +1 -1
  68. package/dist/RadioTabs/index.d.cts +1 -1
  69. package/dist/RadioTabs/index.d.ts +1 -1
  70. package/dist/RadioTabs/index.js +1 -1
  71. package/dist/{RadioTabs-DcEUdW7r.cjs → RadioTabs-BYpP0tKA.cjs} +18 -18
  72. package/dist/RadioTabs-BYpP0tKA.cjs.map +1 -0
  73. package/dist/{RadioTabs-DXs98jng.js → RadioTabs-DLr9QiXI.js} +5 -5
  74. package/dist/RadioTabs-DLr9QiXI.js.map +1 -0
  75. package/dist/Radios/index.cjs +1 -1
  76. package/dist/Radios/index.d.cts +1 -1
  77. package/dist/Radios/index.d.ts +1 -1
  78. package/dist/Radios/index.js +1 -1
  79. package/dist/{Radios-CIPNqPzi.cjs → Radios-BCOfnTke.cjs} +14 -14
  80. package/dist/{Radios-CIPNqPzi.cjs.map → Radios-BCOfnTke.cjs.map} +1 -1
  81. package/dist/{Radios-BIx06mzU.js → Radios-DCXI2kMf.js} +5 -5
  82. package/dist/{Radios-BIx06mzU.js.map → Radios-DCXI2kMf.js.map} +1 -1
  83. package/dist/Select/index.cjs +1 -1
  84. package/dist/Select/index.d.cts +1 -1
  85. package/dist/Select/index.d.ts +1 -1
  86. package/dist/Select/index.js +1 -1
  87. package/dist/{Select-CBjqYDcs.js → Select-CyfEmWiD.js} +5 -5
  88. package/dist/Select-CyfEmWiD.js.map +1 -0
  89. package/dist/{Select-BsL7qn2v.cjs → Select-KnPGOO27.cjs} +19 -19
  90. package/dist/Select-KnPGOO27.cjs.map +1 -0
  91. package/dist/Slider/index.cjs +1 -1
  92. package/dist/Slider/index.d.cts +1 -1
  93. package/dist/Slider/index.d.ts +1 -1
  94. package/dist/Slider/index.js +1 -1
  95. package/dist/{Slider-BDLbD7d5.cjs → Slider-C7xxYPgR.cjs} +15 -15
  96. package/dist/{Slider-BDLbD7d5.cjs.map → Slider-C7xxYPgR.cjs.map} +1 -1
  97. package/dist/{Slider-BHjHSoIk.js → Slider-Dlhb-9hC.js} +5 -5
  98. package/dist/{Slider-BHjHSoIk.js.map → Slider-Dlhb-9hC.js.map} +1 -1
  99. package/dist/SubmitButton/index.cjs +1 -1
  100. package/dist/SubmitButton/index.d.cts +1 -1
  101. package/dist/SubmitButton/index.d.ts +1 -1
  102. package/dist/SubmitButton/index.js +1 -1
  103. package/dist/{SubmitButton-7iOaKzhB.js → SubmitButton-C5f6j0N4.js} +4 -4
  104. package/dist/{SubmitButton-7iOaKzhB.js.map → SubmitButton-C5f6j0N4.js.map} +1 -1
  105. package/dist/{SubmitButton-DhtPJuro.cjs → SubmitButton-CUBItcBn.cjs} +12 -12
  106. package/dist/{SubmitButton-DhtPJuro.cjs.map → SubmitButton-CUBItcBn.cjs.map} +1 -1
  107. package/dist/Switch/index.cjs +1 -1
  108. package/dist/Switch/index.d.cts +1 -1
  109. package/dist/Switch/index.d.ts +1 -1
  110. package/dist/Switch/index.js +1 -1
  111. package/dist/{Switch-DCxAgt_L.js → Switch--m02Xcq8.js} +5 -5
  112. package/dist/{Switch-DCxAgt_L.js.map → Switch--m02Xcq8.js.map} +1 -1
  113. package/dist/{Switch-Dczzog3v.cjs → Switch-6LyeZHJh.cjs} +15 -15
  114. package/dist/{Switch-Dczzog3v.cjs.map → Switch-6LyeZHJh.cjs.map} +1 -1
  115. package/dist/SwitchBox/index.cjs +1 -1
  116. package/dist/SwitchBox/index.d.cts +1 -1
  117. package/dist/SwitchBox/index.d.ts +1 -1
  118. package/dist/SwitchBox/index.js +1 -1
  119. package/dist/{SwitchBox-DqVmZYId.cjs → SwitchBox-CtGiQdys.cjs} +19 -19
  120. package/dist/{SwitchBox-DqVmZYId.cjs.map → SwitchBox-CtGiQdys.cjs.map} +1 -1
  121. package/dist/{SwitchBox-DPHryDOM.js → SwitchBox-D0-e-pbM.js} +5 -5
  122. package/dist/{SwitchBox-DPHryDOM.js.map → SwitchBox-D0-e-pbM.js.map} +1 -1
  123. package/dist/TextArea/index.cjs +1 -1
  124. package/dist/TextArea/index.d.cts +1 -1
  125. package/dist/TextArea/index.d.ts +1 -1
  126. package/dist/TextArea/index.js +1 -1
  127. package/dist/{TextArea-BR6e-Fio.js → TextArea-BiSnvJ69.js} +5 -5
  128. package/dist/{TextArea-BR6e-Fio.js.map → TextArea-BiSnvJ69.js.map} +1 -1
  129. package/dist/{TextArea-CH-F6_ax.cjs → TextArea-PtdSABZS.cjs} +13 -13
  130. package/dist/{TextArea-CH-F6_ax.cjs.map → TextArea-PtdSABZS.cjs.map} +1 -1
  131. package/dist/helpers/index.cjs +1 -1
  132. package/dist/helpers-B-CJOBt3.js.map +1 -1
  133. package/dist/{helpers-KTgXi0lA.cjs → helpers-B84E9vHd.cjs} +4 -4
  134. package/dist/helpers-B84E9vHd.cjs.map +1 -0
  135. package/dist/hooks/useClientValidation/index.cjs +1 -1
  136. package/dist/hooks/useClientValidation/index.d.cts +1 -1
  137. package/dist/hooks/useClientValidation/index.d.ts +1 -1
  138. package/dist/hooks/useController/index.cjs +1 -1
  139. package/dist/hooks/useController/index.d.ts +0 -1
  140. package/dist/hooks/useFormContext/index.cjs +1 -1
  141. package/dist/hooks/useFormContext/index.d.cts +1 -1
  142. package/dist/hooks/useFormContext/index.d.ts +2 -2
  143. package/dist/hooks/useInput/index.cjs +3 -3
  144. package/dist/hooks/useInput/index.d.cts +1 -1
  145. package/dist/hooks/useInput/index.d.ts +1 -1
  146. package/dist/hooks/useInputValueDebounce/index.cjs +1 -1
  147. package/dist/hooks/useInputValueDebounce/index.d.cts +1 -1
  148. package/dist/hooks/useInputValueDebounce/index.d.ts +1 -1
  149. package/dist/hooks/useInputValueTransform/index.cjs +1 -1
  150. package/dist/hooks/useUniformField/index.cjs +1 -1
  151. package/dist/hooks/useUniformField/index.d.cts +1 -1
  152. package/dist/hooks/useUniformField/index.d.ts +3 -3
  153. package/dist/hooks/useUniformField/index.js +1 -1
  154. package/dist/hooks/useUniformFieldArray/index.cjs +1 -1
  155. package/dist/hooks/useUniformFieldArray/index.d.cts +1 -1
  156. package/dist/hooks/useUniformFieldArray/index.d.ts +24 -4
  157. package/dist/hooks/useUniformFieldArray/index.js +1 -1
  158. package/dist/hooks/useWatchUserChange/index.cjs +1 -1
  159. package/dist/{index-CzypMcVS.d.cts → index--E2ZsMya.d.ts} +6 -6
  160. package/dist/{index-C_ATGeaX.d.ts.map → index--E2ZsMya.d.ts.map} +1 -1
  161. package/dist/{index-C56I3SOi.d.cts → index-BITJ-CZL.d.cts} +4 -4
  162. package/dist/{index-C56I3SOi.d.cts.map → index-BITJ-CZL.d.cts.map} +1 -1
  163. package/dist/{index-CVY05bZf.d.ts → index-BL0DnIzh.d.ts} +3 -3
  164. package/dist/{index-CVY05bZf.d.ts.map → index-BL0DnIzh.d.ts.map} +1 -1
  165. package/dist/{index-CHmS3ri3.d.ts → index-BQDEnYTq.d.ts} +1 -1
  166. package/dist/{index-CHmS3ri3.d.ts.map → index-BQDEnYTq.d.ts.map} +1 -1
  167. package/dist/{index-DHHBSmJb.d.ts → index-BTTo_ufh.d.ts} +1 -1
  168. package/dist/{index-DHHBSmJb.d.ts.map → index-BTTo_ufh.d.ts.map} +1 -1
  169. package/dist/{index-B74QlCAy.d.cts → index-BWNJdLDV.d.ts} +48 -48
  170. package/dist/{index-B4Wkijem.d.ts.map → index-BWNJdLDV.d.ts.map} +1 -1
  171. package/dist/{index-CraZe1qS.d.ts → index-Bj_lpc5r.d.cts} +21 -21
  172. package/dist/{index-CI9QBUoM.d.cts.map → index-Bj_lpc5r.d.cts.map} +1 -1
  173. package/dist/{index-B4Wkijem.d.ts → index-Bo_n9sse.d.cts} +47 -47
  174. package/dist/{index-B74QlCAy.d.cts.map → index-Bo_n9sse.d.cts.map} +1 -1
  175. package/dist/{index-iuLEYAix.d.cts → index-BxA_pJWn.d.cts} +21 -21
  176. package/dist/{index-iuLEYAix.d.cts.map → index-BxA_pJWn.d.cts.map} +1 -1
  177. package/dist/{index-Drl7euco.d.ts → index-C-2nxT8D.d.ts} +21 -21
  178. package/dist/{index-Drl7euco.d.ts.map → index-C-2nxT8D.d.ts.map} +1 -1
  179. package/dist/{index-C1fYmoY0.d.ts → index-C0L7GvgN.d.cts} +34 -34
  180. package/dist/index-C0L7GvgN.d.cts.map +1 -0
  181. package/dist/{index-DzuP5q-2.d.ts → index-C1PUx1tH.d.ts} +6 -6
  182. package/dist/index-C1PUx1tH.d.ts.map +1 -0
  183. package/dist/index-CADnFWHq.d.ts +264 -0
  184. package/dist/{index-BTEsKen4.d.ts.map → index-CADnFWHq.d.ts.map} +1 -1
  185. package/dist/{index-BM4XWo1K.d.ts → index-CGnr_e53.d.ts} +36 -36
  186. package/dist/{index-BM4XWo1K.d.ts.map → index-CGnr_e53.d.ts.map} +1 -1
  187. package/dist/{index-DhMSgdwM.d.ts → index-CSBE6Et0.d.cts} +6 -6
  188. package/dist/{index-Dklb-p_1.d.cts.map → index-CSBE6Et0.d.cts.map} +1 -1
  189. package/dist/{index-D6RB3b5L.d.ts → index-CVnn6mEI.d.ts} +4 -4
  190. package/dist/{index-D6RB3b5L.d.ts.map → index-CVnn6mEI.d.ts.map} +1 -1
  191. package/dist/{index-BMN2XNyT.d.cts → index-CYdvpGJF.d.cts} +3 -3
  192. package/dist/{index-BMN2XNyT.d.cts.map → index-CYdvpGJF.d.cts.map} +1 -1
  193. package/dist/{index-CbAh0Kfo.d.cts → index-Cb0AgRRa.d.cts} +3 -3
  194. package/dist/{index-CbAh0Kfo.d.cts.map → index-Cb0AgRRa.d.cts.map} +1 -1
  195. package/dist/{index-DA5um0u6.d.cts → index-D38wOL-M.d.ts} +34 -34
  196. package/dist/index-D38wOL-M.d.ts.map +1 -0
  197. package/dist/{index-DpD4MxGD.d.cts → index-DG9C0kHA.d.ts} +35 -34
  198. package/dist/{index-RvYO46Vg.d.ts.map → index-DG9C0kHA.d.ts.map} +1 -1
  199. package/dist/{index-RvYO46Vg.d.ts → index-DNkZrb7P.d.cts} +35 -36
  200. package/dist/{index-DpD4MxGD.d.cts.map → index-DNkZrb7P.d.cts.map} +1 -1
  201. package/dist/{index-C_ATGeaX.d.ts → index-DRij_w43.d.cts} +5 -5
  202. package/dist/{index-CzypMcVS.d.cts.map → index-DRij_w43.d.cts.map} +1 -1
  203. package/dist/{index-Dklb-p_1.d.cts → index-DmMenZfj.d.ts} +5 -5
  204. package/dist/{index-DhMSgdwM.d.ts.map → index-DmMenZfj.d.ts.map} +1 -1
  205. package/dist/{index-CI9QBUoM.d.cts → index-DnzC0GCS.d.ts} +3 -3
  206. package/dist/index-DnzC0GCS.d.ts.map +1 -0
  207. package/dist/{index-BOI0cy-n.d.cts → index-DoS0lVRe.d.cts} +34 -34
  208. package/dist/index-DoS0lVRe.d.cts.map +1 -0
  209. package/dist/{index-aHcGnXHf.d.ts → index-DvB46QAb.d.ts} +3 -3
  210. package/dist/{index-aHcGnXHf.d.ts.map → index-DvB46QAb.d.ts.map} +1 -1
  211. package/dist/{index-BW9EUWZE.d.cts → index-DxdaxM3o.d.cts} +3 -3
  212. package/dist/{index-BW9EUWZE.d.cts.map → index-DxdaxM3o.d.cts.map} +1 -1
  213. package/dist/{index-CQWoxgWk.d.ts → index-Edx7MxXu.d.ts} +3 -3
  214. package/dist/{index-CQWoxgWk.d.ts.map → index-Edx7MxXu.d.ts.map} +1 -1
  215. package/dist/{index-BaBZGCqS.d.cts → index-F11geOHD.d.ts} +6 -6
  216. package/dist/{index-CvA5yKx9.d.ts.map → index-F11geOHD.d.ts.map} +1 -1
  217. package/dist/{index-1gPh6Uoh.d.cts → index-PU5WNOH9.d.cts} +3 -3
  218. package/dist/{index-1gPh6Uoh.d.cts.map → index-PU5WNOH9.d.cts.map} +1 -1
  219. package/dist/{index-CO-l7RmT.d.cts → index-WogV9uVV.d.cts} +6 -6
  220. package/dist/{index-CO-l7RmT.d.cts.map → index-WogV9uVV.d.cts.map} +1 -1
  221. package/dist/{index-CvA5yKx9.d.ts → index-oyX8xu0F.d.cts} +4 -4
  222. package/dist/{index-BaBZGCqS.d.cts.map → index-oyX8xu0F.d.cts.map} +1 -1
  223. package/dist/index-sJZ434Sg.d.cts +264 -0
  224. package/dist/index-sJZ434Sg.d.cts.map +1 -0
  225. package/dist/index.cjs +29 -29
  226. package/dist/index.d.cts +22 -22
  227. package/dist/index.d.ts +24 -25
  228. package/dist/index.js +19 -19
  229. package/dist/partials/FieldCopyTestIdButton/index.cjs +1 -1
  230. package/dist/partials/FieldCopyTestIdButton/index.d.cts +1 -1
  231. package/dist/partials/FieldCopyTestIdButton/index.d.ts +1 -1
  232. package/dist/partials/FieldCopyTestIdButton/index.js +1 -1
  233. package/dist/partials/FieldValidationError/index.cjs +1 -1
  234. package/dist/partials/FieldValidationError/index.d.cts +1 -1
  235. package/dist/partials/FieldValidationError/index.d.ts +1 -1
  236. package/dist/partials/FieldValidationError/index.js +1 -1
  237. package/dist/{useClientValidation-CkBtUSco.d.ts → useClientValidation-BQqwz628.d.cts} +3 -3
  238. package/dist/{useClientValidation-C3Q5UCy9.d.cts.map → useClientValidation-BQqwz628.d.cts.map} +1 -1
  239. package/dist/useClientValidation-BnnscAEe.js.map +1 -1
  240. package/dist/{useClientValidation-oZd4_ocQ.cjs → useClientValidation-CmYVGlLr.cjs} +7 -7
  241. package/dist/useClientValidation-CmYVGlLr.cjs.map +1 -0
  242. package/dist/{useClientValidation-C3Q5UCy9.d.cts → useClientValidation-DJ4JuN_9.d.ts} +3 -3
  243. package/dist/{useClientValidation-CkBtUSco.d.ts.map → useClientValidation-DJ4JuN_9.d.ts.map} +1 -1
  244. package/dist/{useController-BzkCcbSo.cjs → useController-CkmO5CLh.cjs} +3 -3
  245. package/dist/{useController-BzkCcbSo.cjs.map → useController-CkmO5CLh.cjs.map} +1 -1
  246. package/dist/{useFormContext-CZh7pv8f.d.cts → useFormContext-B083Y-kw.d.cts} +17 -17
  247. package/dist/{useFormContext-CZh7pv8f.d.cts.map → useFormContext-B083Y-kw.d.cts.map} +1 -1
  248. package/dist/{useFormContext-3AAPT6eZ.d.ts → useFormContext-B2TS6xq0.d.ts} +1 -1
  249. package/dist/{useFormContext-3AAPT6eZ.d.ts.map → useFormContext-B2TS6xq0.d.ts.map} +1 -1
  250. package/dist/{useFormContext-CWuN-_7P.cjs → useFormContext-Bp0EODoO.cjs} +3 -3
  251. package/dist/useFormContext-Bp0EODoO.cjs.map +1 -0
  252. package/dist/useFormContext-JCm1UR_e.js.map +1 -1
  253. package/dist/{useInputValueDebounce-B2RzCWty.d.cts → useInputValueDebounce-B5b-v8Hc.d.cts} +1 -1
  254. package/dist/{useInputValueDebounce-B2RzCWty.d.cts.map → useInputValueDebounce-B5b-v8Hc.d.cts.map} +1 -1
  255. package/dist/{useInputValueDebounce-tL8maIp8.cjs → useInputValueDebounce-BcUyaS94.cjs} +2 -2
  256. package/dist/{useInputValueDebounce-tL8maIp8.cjs.map → useInputValueDebounce-BcUyaS94.cjs.map} +1 -1
  257. package/dist/{useInputValueDebounce-C7_bvNGH.d.ts → useInputValueDebounce-DoRuSF6R.d.ts} +1 -1
  258. package/dist/{useInputValueDebounce-C7_bvNGH.d.ts.map → useInputValueDebounce-DoRuSF6R.d.ts.map} +1 -1
  259. package/dist/{useInputValueTransform-C-uSW8Y3.cjs → useInputValueTransform-DFPA3KVy.cjs} +2 -2
  260. package/dist/{useInputValueTransform-C-uSW8Y3.cjs.map → useInputValueTransform-DFPA3KVy.cjs.map} +1 -1
  261. package/dist/{useUniformField-Be3kdnhK.d.cts → useUniformField-B2OZ-Z1G.d.cts} +3 -3
  262. package/dist/{useUniformField-Be3kdnhK.d.cts.map → useUniformField-B2OZ-Z1G.d.cts.map} +1 -1
  263. package/dist/{useUniformField-BMvnRC_r.cjs → useUniformField-Bj23Kvbs.cjs} +13 -13
  264. package/dist/useUniformField-Bj23Kvbs.cjs.map +1 -0
  265. package/dist/{useUniformField-DDHQ5B11.d.ts → useUniformField-CwEHonNe.d.ts} +3 -3
  266. package/dist/{useUniformField-DDHQ5B11.d.ts.map → useUniformField-CwEHonNe.d.ts.map} +1 -1
  267. package/dist/{useUniformField-ClprfrES.js → useUniformField-gU4qYUwL.js} +3 -3
  268. package/dist/useUniformField-gU4qYUwL.js.map +1 -0
  269. package/dist/{useUniformFieldArray-C-0OXG3N.js → useUniformFieldArray-B5PyxL1P.js} +2 -2
  270. package/dist/{useUniformFieldArray-C-0OXG3N.js.map → useUniformFieldArray-B5PyxL1P.js.map} +1 -1
  271. package/dist/{useUniformFieldArray-BhPi3gPv.d.ts → useUniformFieldArray-CXoWvu6m.d.ts} +3 -3
  272. package/dist/{useUniformFieldArray-BhPi3gPv.d.ts.map → useUniformFieldArray-CXoWvu6m.d.ts.map} +1 -1
  273. package/dist/{useUniformFieldArray-btjvJdZ6.cjs → useUniformFieldArray-G1lokW7x.cjs} +7 -7
  274. package/dist/{useUniformFieldArray-btjvJdZ6.cjs.map → useUniformFieldArray-G1lokW7x.cjs.map} +1 -1
  275. package/dist/{useUniformFieldArray-BBFw08qL.d.cts → useUniformFieldArray-qtJMEosJ.d.cts} +13 -13
  276. package/dist/{useUniformFieldArray-BBFw08qL.d.cts.map → useUniformFieldArray-qtJMEosJ.d.cts.map} +1 -1
  277. package/dist/{useWatchUserChange-C5dr12By.cjs → useWatchUserChange-BnxYE-0b.cjs} +3 -3
  278. package/dist/{useWatchUserChange-C5dr12By.cjs.map → useWatchUserChange-BnxYE-0b.cjs.map} +1 -1
  279. package/package.json +10 -10
  280. package/dist/Checkboxes-CGWhnpBp.js.map +0 -1
  281. package/dist/Checkboxes-Ds6bzl6p.cjs.map +0 -1
  282. package/dist/FieldArray-BexXN9bO.cjs.map +0 -1
  283. package/dist/FieldArray-D3iUaRLo.js.map +0 -1
  284. package/dist/FormContext-C3GymQOA.cjs.map +0 -1
  285. package/dist/Input--h5t7Sbl.js.map +0 -1
  286. package/dist/Input-DKfFFOpo.cjs.map +0 -1
  287. package/dist/RadioBoxes-7qdHj3ti.js.map +0 -1
  288. package/dist/RadioBoxes-Bd9ahl4i.cjs.map +0 -1
  289. package/dist/RadioTabs-DXs98jng.js.map +0 -1
  290. package/dist/RadioTabs-DcEUdW7r.cjs.map +0 -1
  291. package/dist/Select-BsL7qn2v.cjs.map +0 -1
  292. package/dist/Select-CBjqYDcs.js.map +0 -1
  293. package/dist/helpers-KTgXi0lA.cjs.map +0 -1
  294. package/dist/index-BOI0cy-n.d.cts.map +0 -1
  295. package/dist/index-BTEsKen4.d.ts +0 -264
  296. package/dist/index-C1fYmoY0.d.ts.map +0 -1
  297. package/dist/index-CJNLQVjx.d.ts +0 -1
  298. package/dist/index-CqV2Q3da.d.cts +0 -264
  299. package/dist/index-CqV2Q3da.d.cts.map +0 -1
  300. package/dist/index-CraZe1qS.d.ts.map +0 -1
  301. package/dist/index-CwSIy_W-.d.cts +0 -1
  302. package/dist/index-DA5um0u6.d.cts.map +0 -1
  303. package/dist/index-DzuP5q-2.d.ts.map +0 -1
  304. package/dist/useClientValidation-oZd4_ocQ.cjs.map +0 -1
  305. package/dist/useFormContext-CWuN-_7P.cjs.map +0 -1
  306. package/dist/useUniformField-BMvnRC_r.cjs.map +0 -1
  307. package/dist/useUniformField-ClprfrES.js.map +0 -1
  308. /package/dist/{index-B3Z8gdjC.d.ts → index-BRLjimYW.d.ts} +0 -0
  309. /package/dist/{index-BXpMZvwA.d.cts → index-DpEKQcoR.d.cts} +0 -0
  310. /package/dist/{useInput-IGJqJ2tR.d.ts → useInput--wjwIBc5.d.cts} +0 -0
  311. /package/dist/{useInput-NMHJNZ5A.d.cts → useInput-BCdeYOOg.d.ts} +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"useUniformField-ClprfrES.js","names":["labelNode: ReactNode | null","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 { 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 isDirty,\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 is dirty (value changed from initial) - good for checkboxes/radios/arrays\n * - Field is touched (focused and blurred) - good for text inputs\n * - Form has been submitted - shows all errors after submit attempt\n *\n * This prevents showing errors on pristine/untouched fields for better UX.\n * Examples:\n * - Text input: User loads form with empty required field → no error shown yet\n * - Text input: User focuses and blurs → error shows (via isTouched)\n * - Checkbox group: User clicks first checkbox → error shows immediately (via isDirty)\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 * when any of the states (invalid, isDirty, isTouched, submitCount) change.\n */\n const showInvalid = rawInvalid && (isDirty || 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":";;;;;;;;;;;;;;;;;;;;;;;;;;AA8BA,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,SACA,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;CAsBF,MAAM,UAAU,oBADI,eAAe,WAAW,aAAa,cAAc,IACxB,IAAI;CAMrD,MAAM,uBAAuB,cAAc;CAC3C,MAAMA,YACJ,CAAC,CAAC,SAAS,uBACT,4CACG,UAAU,QAAQ,QAAQ,MAC1B,uBACC,oBAACC,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"}