@fuf-stack/uniform 1.11.2 → 1.11.3

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 (350) 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-BY4UK0Xf.js → Checkboxes-BvW4D5Nm.js} +3 -3
  6. package/dist/{Checkboxes-BY4UK0Xf.js.map → Checkboxes-BvW4D5Nm.js.map} +1 -1
  7. package/dist/{Checkboxes-DgCK-Wq-.cjs → Checkboxes-Cvdazf25.cjs} +4 -4
  8. package/dist/{Checkboxes-DgCK-Wq-.cjs.map → Checkboxes-Cvdazf25.cjs.map} +1 -1
  9. package/dist/FieldArray/index.cjs +1 -1
  10. package/dist/FieldArray/index.d.cts +1 -1
  11. package/dist/FieldArray/index.d.ts +1 -1
  12. package/dist/FieldArray/index.js +1 -1
  13. package/dist/{FieldArray-DBsyUQkU.cjs → FieldArray-CJpDgK_t.cjs} +7 -7
  14. package/dist/{FieldArray-DBsyUQkU.cjs.map → FieldArray-CJpDgK_t.cjs.map} +1 -1
  15. package/dist/{FieldArray-CDLaGvNj.js → FieldArray-omRNwxgy.js} +5 -5
  16. package/dist/{FieldArray-CDLaGvNj.js.map → FieldArray-omRNwxgy.js.map} +1 -1
  17. package/dist/FieldCard/index.cjs +1 -1
  18. package/dist/FieldCard/index.d.cts +1 -1
  19. package/dist/FieldCard/index.d.ts +1 -1
  20. package/dist/FieldCard/index.js +1 -1
  21. package/dist/{FieldCard-NKF358fO.cjs → FieldCard-Dt6QU7o7.cjs} +4 -4
  22. package/dist/{FieldCard-NKF358fO.cjs.map → FieldCard-Dt6QU7o7.cjs.map} +1 -1
  23. package/dist/{FieldCard-C1MCSbPW.js → FieldCard-Dyi-2qr6.js} +3 -3
  24. package/dist/{FieldCard-C1MCSbPW.js.map → FieldCard-Dyi-2qr6.js.map} +1 -1
  25. package/dist/{FieldCopyTestIdButton-BSYcSo2o.cjs → FieldCopyTestIdButton-By-hEZgA.cjs} +2 -2
  26. package/dist/{FieldCopyTestIdButton-BSYcSo2o.cjs.map → FieldCopyTestIdButton-By-hEZgA.cjs.map} +1 -1
  27. package/dist/{FieldCopyTestIdButton-DWPCDJ-s.js → FieldCopyTestIdButton-D9f1B-VS.js} +1 -1
  28. package/dist/{FieldCopyTestIdButton-DWPCDJ-s.js.map → FieldCopyTestIdButton-D9f1B-VS.js.map} +1 -1
  29. package/dist/{FieldValidationError-1hiDEFew.js → FieldValidationError-BYwitb_B.js} +1 -1
  30. package/dist/{FieldValidationError-1hiDEFew.js.map → FieldValidationError-BYwitb_B.js.map} +1 -1
  31. package/dist/{FieldValidationError-CE8R8qry.cjs → FieldValidationError-D64j5gnH.cjs} +2 -2
  32. package/dist/{FieldValidationError-CE8R8qry.cjs.map → FieldValidationError-D64j5gnH.cjs.map} +1 -1
  33. package/dist/Form/index.cjs +1 -1
  34. package/dist/Form/index.d.cts +1 -1
  35. package/dist/Form/index.d.ts +1 -1
  36. package/dist/Form/index.js +1 -1
  37. package/dist/{Form-DRNEwHsi.js → Form-B1fvbnxi.js} +3 -3
  38. package/dist/{Form-DRNEwHsi.js.map → Form-B1fvbnxi.js.map} +1 -1
  39. package/dist/{Form-BsD69fql.cjs → Form-CvnnGF45.cjs} +3 -3
  40. package/dist/{Form-BsD69fql.cjs.map → Form-CvnnGF45.cjs.map} +1 -1
  41. package/dist/{FormContext-CN9n_KdE.js → FormContext-Dl3k1r_k.js} +2 -2
  42. package/dist/{FormContext-CN9n_KdE.js.map → FormContext-Dl3k1r_k.js.map} +1 -1
  43. package/dist/{FormContext-Bb6d8hdG.cjs → FormContext-Lw4YL4-B.cjs} +2 -2
  44. package/dist/{FormContext-Bb6d8hdG.cjs.map → FormContext-Lw4YL4-B.cjs.map} +1 -1
  45. package/dist/Grid/index.cjs +1 -1
  46. package/dist/Grid/index.d.cts +1 -1
  47. package/dist/Grid/index.d.ts +1 -1
  48. package/dist/{Grid-D84e76CE.cjs → Grid-DezBAZbx.cjs} +2 -2
  49. package/dist/{Grid-D84e76CE.cjs.map → Grid-DezBAZbx.cjs.map} +1 -1
  50. package/dist/Input/index.cjs +1 -1
  51. package/dist/Input/index.d.cts +1 -1
  52. package/dist/Input/index.d.ts +1 -1
  53. package/dist/Input/index.js +1 -1
  54. package/dist/{Input-DeTpxiK_.cjs → Input-DR0gCf9q.cjs} +5 -4
  55. package/dist/Input-DR0gCf9q.cjs.map +1 -0
  56. package/dist/{Input-DXMWGTBh.js → Input-DksaHK1Y.js} +4 -3
  57. package/dist/Input-DksaHK1Y.js.map +1 -0
  58. package/dist/RadioBoxes/index.cjs +1 -1
  59. package/dist/RadioBoxes/index.d.cts +1 -1
  60. package/dist/RadioBoxes/index.d.ts +1 -1
  61. package/dist/RadioBoxes/index.js +1 -1
  62. package/dist/{RadioBoxes-BEln4a-B.js → RadioBoxes-DdIHH6B5.js} +2 -2
  63. package/dist/{RadioBoxes-BEln4a-B.js.map → RadioBoxes-DdIHH6B5.js.map} +1 -1
  64. package/dist/{RadioBoxes-gsQGqQCd.cjs → RadioBoxes-h-VLhJ9d.cjs} +3 -3
  65. package/dist/{RadioBoxes-gsQGqQCd.cjs.map → RadioBoxes-h-VLhJ9d.cjs.map} +1 -1
  66. package/dist/RadioTabs/index.cjs +1 -1
  67. package/dist/RadioTabs/index.d.cts +1 -1
  68. package/dist/RadioTabs/index.d.ts +1 -1
  69. package/dist/RadioTabs/index.js +1 -1
  70. package/dist/{RadioTabs-BYpP0tKA.cjs → RadioTabs-D6yF9jE3.cjs} +3 -3
  71. package/dist/{RadioTabs-BYpP0tKA.cjs.map → RadioTabs-D6yF9jE3.cjs.map} +1 -1
  72. package/dist/{RadioTabs-DLr9QiXI.js → RadioTabs-dLdlF91p.js} +2 -2
  73. package/dist/{RadioTabs-DLr9QiXI.js.map → RadioTabs-dLdlF91p.js.map} +1 -1
  74. package/dist/Radios/index.cjs +1 -1
  75. package/dist/Radios/index.d.cts +1 -1
  76. package/dist/Radios/index.d.ts +1 -1
  77. package/dist/Radios/index.js +1 -1
  78. package/dist/{Radios-BCOfnTke.cjs → Radios-D8alyG2f.cjs} +3 -3
  79. package/dist/{Radios-BCOfnTke.cjs.map → Radios-D8alyG2f.cjs.map} +1 -1
  80. package/dist/{Radios-DCXI2kMf.js → Radios-DiZ0Dfmp.js} +2 -2
  81. package/dist/{Radios-DCXI2kMf.js.map → Radios-DiZ0Dfmp.js.map} +1 -1
  82. package/dist/Select/index.cjs +1 -1
  83. package/dist/Select/index.d.cts +1 -1
  84. package/dist/Select/index.d.ts +1 -1
  85. package/dist/Select/index.js +1 -1
  86. package/dist/{Select-CyfEmWiD.js → Select-C9otN8uu.js} +3 -3
  87. package/dist/{Select-CyfEmWiD.js.map → Select-C9otN8uu.js.map} +1 -1
  88. package/dist/{Select-KnPGOO27.cjs → Select-DQVskslz.cjs} +4 -4
  89. package/dist/{Select-KnPGOO27.cjs.map → Select-DQVskslz.cjs.map} +1 -1
  90. package/dist/Slider/index.cjs +1 -1
  91. package/dist/Slider/index.d.cts +1 -1
  92. package/dist/Slider/index.d.ts +1 -1
  93. package/dist/Slider/index.js +1 -1
  94. package/dist/{Slider-C7xxYPgR.cjs → Slider-DwfyCQDM.cjs} +3 -3
  95. package/dist/{Slider-C7xxYPgR.cjs.map → Slider-DwfyCQDM.cjs.map} +1 -1
  96. package/dist/{Slider-Dlhb-9hC.js → Slider-meuLEC2k.js} +2 -2
  97. package/dist/{Slider-Dlhb-9hC.js.map → Slider-meuLEC2k.js.map} +1 -1
  98. package/dist/SubmitButton/index.cjs +1 -1
  99. package/dist/SubmitButton/index.d.cts +1 -1
  100. package/dist/SubmitButton/index.d.ts +1 -1
  101. package/dist/SubmitButton/index.js +1 -1
  102. package/dist/{SubmitButton-CUBItcBn.cjs → SubmitButton-B0kvUqkd.cjs} +3 -3
  103. package/dist/{SubmitButton-CUBItcBn.cjs.map → SubmitButton-B0kvUqkd.cjs.map} +1 -1
  104. package/dist/{SubmitButton-C5f6j0N4.js → SubmitButton-BHP9J9ml.js} +2 -2
  105. package/dist/{SubmitButton-C5f6j0N4.js.map → SubmitButton-BHP9J9ml.js.map} +1 -1
  106. package/dist/Switch/index.cjs +1 -1
  107. package/dist/Switch/index.d.cts +1 -1
  108. package/dist/Switch/index.d.ts +1 -1
  109. package/dist/Switch/index.js +1 -1
  110. package/dist/{Switch--m02Xcq8.js → Switch-DkciIYnD.js} +2 -2
  111. package/dist/{Switch--m02Xcq8.js.map → Switch-DkciIYnD.js.map} +1 -1
  112. package/dist/{Switch-6LyeZHJh.cjs → Switch-Ds0gDzjR.cjs} +3 -3
  113. package/dist/{Switch-6LyeZHJh.cjs.map → Switch-Ds0gDzjR.cjs.map} +1 -1
  114. package/dist/SwitchBox/index.cjs +1 -1
  115. package/dist/SwitchBox/index.d.cts +1 -1
  116. package/dist/SwitchBox/index.d.ts +1 -1
  117. package/dist/SwitchBox/index.js +1 -1
  118. package/dist/{SwitchBox-D0-e-pbM.js → SwitchBox-B6Z4rtWt.js} +2 -2
  119. package/dist/{SwitchBox-D0-e-pbM.js.map → SwitchBox-B6Z4rtWt.js.map} +1 -1
  120. package/dist/{SwitchBox-CtGiQdys.cjs → SwitchBox-B9JqwDtN.cjs} +3 -3
  121. package/dist/{SwitchBox-CtGiQdys.cjs.map → SwitchBox-B9JqwDtN.cjs.map} +1 -1
  122. package/dist/TextArea/index.cjs +1 -1
  123. package/dist/TextArea/index.d.cts +1 -1
  124. package/dist/TextArea/index.js +1 -1
  125. package/dist/{TextArea-PtdSABZS.cjs → TextArea-BqQtlPSV.cjs} +5 -4
  126. package/dist/{TextArea-PtdSABZS.cjs.map → TextArea-BqQtlPSV.cjs.map} +1 -1
  127. package/dist/{TextArea-BiSnvJ69.js → TextArea-DAx49KI6.js} +4 -3
  128. package/dist/{TextArea-BiSnvJ69.js.map → TextArea-DAx49KI6.js.map} +1 -1
  129. package/dist/helpers/index.cjs +2 -1
  130. package/dist/helpers/index.d.cts +164 -2
  131. package/dist/helpers/index.d.cts.map +1 -0
  132. package/dist/helpers/index.d.ts +164 -2
  133. package/dist/helpers/index.d.ts.map +1 -0
  134. package/dist/helpers/index.js +2 -2
  135. package/dist/{helpers-B-CJOBt3.js → helpers-CCINRgQk.js} +43 -2
  136. package/dist/helpers-CCINRgQk.js.map +1 -0
  137. package/dist/{helpers-B84E9vHd.cjs → helpers-nYTmL2gX.cjs} +49 -2
  138. package/dist/helpers-nYTmL2gX.cjs.map +1 -0
  139. package/dist/hooks/useClientValidation/index.cjs +1 -1
  140. package/dist/hooks/useClientValidation/index.d.cts +1 -1
  141. package/dist/hooks/useClientValidation/index.d.ts +1 -1
  142. package/dist/hooks/useClientValidation/index.js +1 -1
  143. package/dist/hooks/useController/index.cjs +1 -1
  144. package/dist/hooks/useController/index.d.cts +1 -1
  145. package/dist/hooks/useController/index.d.ts +2 -1
  146. package/dist/hooks/useController/index.js +1 -1
  147. package/dist/hooks/useFormContext/index.cjs +1 -1
  148. package/dist/hooks/useFormContext/index.d.cts +1 -1
  149. package/dist/hooks/useFormContext/index.d.ts +1 -1
  150. package/dist/hooks/useFormContext/index.js +1 -1
  151. package/dist/hooks/useInput/index.cjs +1 -1
  152. package/dist/hooks/useInputValueDebounce/index.cjs +1 -1
  153. package/dist/hooks/useInputValueDebounce/index.d.cts +1 -1
  154. package/dist/hooks/useInputValueDebounce/index.d.ts +1 -1
  155. package/dist/hooks/useInputValueDebounce/index.js +1 -1
  156. package/dist/hooks/useInputValueTransform/index.cjs +1 -1
  157. package/dist/hooks/useInputValueTransform/index.d.cts +1 -1
  158. package/dist/hooks/useInputValueTransform/index.d.ts +1 -1
  159. package/dist/hooks/useInputValueTransform/index.js +1 -1
  160. package/dist/hooks/useUniformField/index.cjs +1 -1
  161. package/dist/hooks/useUniformField/index.d.cts +1 -1
  162. package/dist/hooks/useUniformField/index.d.ts +3 -3
  163. package/dist/hooks/useUniformField/index.js +1 -1
  164. package/dist/hooks/useUniformFieldArray/index.cjs +1 -1
  165. package/dist/hooks/useUniformFieldArray/index.d.cts +1 -1
  166. package/dist/hooks/useUniformFieldArray/index.d.ts +4 -24
  167. package/dist/hooks/useUniformFieldArray/index.js +1 -1
  168. package/dist/hooks/useWatchUserChange/index.cjs +1 -1
  169. package/dist/hooks/useWatchUserChange/index.d.cts +1 -1
  170. package/dist/hooks/useWatchUserChange/index.d.ts +1 -1
  171. package/dist/hooks/useWatchUserChange/index.js +1 -1
  172. package/dist/{index-C1PUx1tH.d.ts → index-0wXxS5M7.d.ts} +7 -7
  173. package/dist/index-0wXxS5M7.d.ts.map +1 -0
  174. package/dist/{index-DvB46QAb.d.ts → index-1Egh73pR.d.ts} +3 -3
  175. package/dist/{index-DvB46QAb.d.ts.map → index-1Egh73pR.d.ts.map} +1 -1
  176. package/dist/{index-DmMenZfj.d.ts → index-3v_vja2i.d.ts} +6 -6
  177. package/dist/{index-DmMenZfj.d.ts.map → index-3v_vja2i.d.ts.map} +1 -1
  178. package/dist/{index-BTTo_ufh.d.ts → index-7mx-IcDp.d.ts} +3 -3
  179. package/dist/{index-BTTo_ufh.d.ts.map → index-7mx-IcDp.d.ts.map} +1 -1
  180. package/dist/{index-WogV9uVV.d.cts → index-BDV3JVoX.d.cts} +7 -7
  181. package/dist/{index-WogV9uVV.d.cts.map → index-BDV3JVoX.d.cts.map} +1 -1
  182. package/dist/{index-DxdaxM3o.d.cts → index-BFLKkqA3.d.ts} +2 -2
  183. package/dist/{index-Edx7MxXu.d.ts.map → index-BFLKkqA3.d.ts.map} +1 -1
  184. package/dist/{index-DG9C0kHA.d.ts → index-BGXgvZKr.d.ts} +35 -35
  185. package/dist/{index-DG9C0kHA.d.ts.map → index-BGXgvZKr.d.ts.map} +1 -1
  186. package/dist/{index-CVnn6mEI.d.ts → index-BSjUaHEO.d.cts} +4 -4
  187. package/dist/{index-BITJ-CZL.d.cts.map → index-BSjUaHEO.d.cts.map} +1 -1
  188. package/dist/{index-jmQP58tO.d.cts → index-B_aIzCcx.d.cts} +3 -3
  189. package/dist/{index-jmQP58tO.d.cts.map → index-B_aIzCcx.d.cts.map} +1 -1
  190. package/dist/{index-BITJ-CZL.d.cts → index-Bcppi5O7.d.ts} +4 -4
  191. package/dist/{index-CVnn6mEI.d.ts.map → index-Bcppi5O7.d.ts.map} +1 -1
  192. package/dist/{index-Bj_lpc5r.d.cts → index-C2A_i57R.d.cts} +21 -21
  193. package/dist/index-C2A_i57R.d.cts.map +1 -0
  194. package/dist/index-CFBmva_r.d.ts +1 -0
  195. package/dist/{index-CSBE6Et0.d.cts → index-CHNp5R5N.d.cts} +6 -6
  196. package/dist/{index-CSBE6Et0.d.cts.map → index-CHNp5R5N.d.cts.map} +1 -1
  197. package/dist/{index-BL0DnIzh.d.ts → index-CHXv_rNR.d.ts} +3 -3
  198. package/dist/{index-BL0DnIzh.d.ts.map → index-CHXv_rNR.d.ts.map} +1 -1
  199. package/dist/{index--E2ZsMya.d.ts → index-CTp4vdDb.d.ts} +6 -6
  200. package/dist/{index--E2ZsMya.d.ts.map → index-CTp4vdDb.d.ts.map} +1 -1
  201. package/dist/{index-F11geOHD.d.ts → index-CUn9q5KD.d.ts} +6 -6
  202. package/dist/{index-F11geOHD.d.ts.map → index-CUn9q5KD.d.ts.map} +1 -1
  203. package/dist/{index-BxA_pJWn.d.cts → index-CZyNkPDq.d.ts} +22 -22
  204. package/dist/{index-C-2nxT8D.d.ts.map → index-CZyNkPDq.d.ts.map} +1 -1
  205. package/dist/{index-C-2nxT8D.d.ts → index-CeYRsehb.d.cts} +22 -22
  206. package/dist/index-CeYRsehb.d.cts.map +1 -0
  207. package/dist/{index-DRij_w43.d.cts → index-CiF2KXB7.d.cts} +6 -6
  208. package/dist/{index-DRij_w43.d.cts.map → index-CiF2KXB7.d.cts.map} +1 -1
  209. package/dist/{index-DNkZrb7P.d.cts → index-CjJHVJwD.d.cts} +35 -35
  210. package/dist/{index-DNkZrb7P.d.cts.map → index-CjJHVJwD.d.cts.map} +1 -1
  211. package/dist/{index-D38wOL-M.d.ts → index-CnsR8nkm.d.cts} +34 -34
  212. package/dist/index-CnsR8nkm.d.cts.map +1 -0
  213. package/dist/{index-CGnr_e53.d.ts → index-CqGabrzW.d.cts} +38 -38
  214. package/dist/index-CqGabrzW.d.cts.map +1 -0
  215. package/dist/{index-CYdvpGJF.d.cts → index-CuvvZMop.d.cts} +3 -3
  216. package/dist/{index-CYdvpGJF.d.cts.map → index-CuvvZMop.d.cts.map} +1 -1
  217. package/dist/{index-BWNJdLDV.d.ts → index-DNFUttM8.d.ts} +21 -21
  218. package/dist/{index-BWNJdLDV.d.ts.map → index-DNFUttM8.d.ts.map} +1 -1
  219. package/dist/{index-BQDEnYTq.d.ts → index-DVRtBywt.d.ts} +1 -1
  220. package/dist/{index-BQDEnYTq.d.ts.map → index-DVRtBywt.d.ts.map} +1 -1
  221. package/dist/{index-oyX8xu0F.d.cts → index-D_WidR7r.d.cts} +6 -6
  222. package/dist/{index-oyX8xu0F.d.cts.map → index-D_WidR7r.d.cts.map} +1 -1
  223. package/dist/index-D_egu-QT.d.cts +264 -0
  224. package/dist/index-D_egu-QT.d.cts.map +1 -0
  225. package/dist/index-DajjPPWM.d.ts +264 -0
  226. package/dist/index-DajjPPWM.d.ts.map +1 -0
  227. package/dist/{index-Bo_n9sse.d.cts → index-DcYFLiul.d.cts} +48 -48
  228. package/dist/index-DcYFLiul.d.cts.map +1 -0
  229. package/dist/index-DnzC0GCS.d.ts.map +1 -1
  230. package/dist/{index-Edx7MxXu.d.ts → index-DvF_C1Bz.d.cts} +3 -3
  231. package/dist/{index-DxdaxM3o.d.cts.map → index-DvF_C1Bz.d.cts.map} +1 -1
  232. package/dist/{index-Cb0AgRRa.d.cts → index-cadUZZIY.d.cts} +3 -3
  233. package/dist/{index-Cb0AgRRa.d.cts.map → index-cadUZZIY.d.cts.map} +1 -1
  234. package/dist/{index-PU5WNOH9.d.cts → index-g9TZhGnE.d.cts} +3 -3
  235. package/dist/{index-PU5WNOH9.d.cts.map → index-g9TZhGnE.d.cts.map} +1 -1
  236. package/dist/index-lQ_hGQ08.d.cts +1 -0
  237. package/dist/{index-C0L7GvgN.d.cts → index-op7zETAQ.d.ts} +34 -34
  238. package/dist/index-op7zETAQ.d.ts.map +1 -0
  239. package/dist/{index-DoS0lVRe.d.cts → index-yVkU2v6b.d.ts} +37 -37
  240. package/dist/{index-CGnr_e53.d.ts.map → index-yVkU2v6b.d.ts.map} +1 -1
  241. package/dist/index.cjs +28 -27
  242. package/dist/index.d.cts +27 -27
  243. package/dist/index.d.ts +27 -26
  244. package/dist/index.js +26 -26
  245. package/dist/partials/FieldCopyTestIdButton/index.cjs +1 -1
  246. package/dist/partials/FieldCopyTestIdButton/index.d.cts +1 -1
  247. package/dist/partials/FieldCopyTestIdButton/index.d.ts +1 -1
  248. package/dist/partials/FieldCopyTestIdButton/index.js +1 -1
  249. package/dist/partials/FieldValidationError/index.cjs +1 -1
  250. package/dist/partials/FieldValidationError/index.d.cts +1 -1
  251. package/dist/partials/FieldValidationError/index.d.ts +1 -1
  252. package/dist/partials/FieldValidationError/index.js +1 -1
  253. package/dist/{useClientValidation-DJ4JuN_9.d.ts → useClientValidation-Bg0q3Axc.d.ts} +3 -3
  254. package/dist/{useClientValidation-DJ4JuN_9.d.ts.map → useClientValidation-Bg0q3Axc.d.ts.map} +1 -1
  255. package/dist/{useClientValidation-BnnscAEe.js → useClientValidation-BrTtRnqi.js} +3 -3
  256. package/dist/{useClientValidation-BnnscAEe.js.map → useClientValidation-BrTtRnqi.js.map} +1 -1
  257. package/dist/{useClientValidation-BQqwz628.d.cts → useClientValidation-BvPDQmf6.d.cts} +3 -3
  258. package/dist/{useClientValidation-BQqwz628.d.cts.map → useClientValidation-BvPDQmf6.d.cts.map} +1 -1
  259. package/dist/{useClientValidation-CmYVGlLr.cjs → useClientValidation-CdC7lEYP.cjs} +4 -4
  260. package/dist/{useClientValidation-CmYVGlLr.cjs.map → useClientValidation-CdC7lEYP.cjs.map} +1 -1
  261. package/dist/{useController-C_MZLZIp.d.cts → useController-BArZd2Vp.d.cts} +1 -1
  262. package/dist/{useController-C_MZLZIp.d.cts.map → useController-BArZd2Vp.d.cts.map} +1 -1
  263. package/dist/{useController-CkmO5CLh.cjs → useController-BBxji1nQ.cjs} +3 -3
  264. package/dist/{useController-CkmO5CLh.cjs.map → useController-BBxji1nQ.cjs.map} +1 -1
  265. package/dist/{useController-hjpJQf0w.d.ts → useController-MVHJ7WFp.d.ts} +1 -1
  266. package/dist/{useController-hjpJQf0w.d.ts.map → useController-MVHJ7WFp.d.ts.map} +1 -1
  267. package/dist/{useController-CumIERks.js → useController-g0AlWM__.js} +3 -3
  268. package/dist/{useController-CumIERks.js.map → useController-g0AlWM__.js.map} +1 -1
  269. package/dist/{useFormContext-B083Y-kw.d.cts → useFormContext--yod5xzQ.d.cts} +3 -3
  270. package/dist/useFormContext--yod5xzQ.d.cts.map +1 -0
  271. package/dist/{useFormContext-JCm1UR_e.js → useFormContext-BFoXZNkp.js} +3 -3
  272. package/dist/{useFormContext-JCm1UR_e.js.map → useFormContext-BFoXZNkp.js.map} +1 -1
  273. package/dist/{useFormContext-Bp0EODoO.cjs → useFormContext-CEr3zcL6.cjs} +3 -3
  274. package/dist/{useFormContext-Bp0EODoO.cjs.map → useFormContext-CEr3zcL6.cjs.map} +1 -1
  275. package/dist/{useFormContext-B2TS6xq0.d.ts → useFormContext-Cw6aAhos.d.ts} +3 -3
  276. package/dist/useFormContext-Cw6aAhos.d.ts.map +1 -0
  277. package/dist/{useInputValueDebounce-B5b-v8Hc.d.cts → useInputValueDebounce-DI1C6oaU.d.cts} +5 -1
  278. package/dist/useInputValueDebounce-DI1C6oaU.d.cts.map +1 -0
  279. package/dist/{useInputValueDebounce-DaH5ONlQ.js → useInputValueDebounce-Dop_8_OK.js} +12 -3
  280. package/dist/useInputValueDebounce-Dop_8_OK.js.map +1 -0
  281. package/dist/{useInputValueDebounce-BcUyaS94.cjs → useInputValueDebounce-TiNR4jtG.cjs} +13 -4
  282. package/dist/useInputValueDebounce-TiNR4jtG.cjs.map +1 -0
  283. package/dist/{useInputValueDebounce-DoRuSF6R.d.ts → useInputValueDebounce-fhmVn1aO.d.ts} +5 -1
  284. package/dist/useInputValueDebounce-fhmVn1aO.d.ts.map +1 -0
  285. package/dist/{useInputValueTransform-DFPA3KVy.cjs → useInputValueTransform-BNmfaj5D.cjs} +4 -3
  286. package/dist/{useInputValueTransform-DFPA3KVy.cjs.map → useInputValueTransform-BNmfaj5D.cjs.map} +1 -1
  287. package/dist/{useInputValueTransform-D7LfyYRe.d.ts → useInputValueTransform-BV8o0PMI.d.cts} +3 -2
  288. package/dist/useInputValueTransform-BV8o0PMI.d.cts.map +1 -0
  289. package/dist/{useInputValueTransform-aiIf8lq5.js → useInputValueTransform-CMNC21vX.js} +3 -2
  290. package/dist/{useInputValueTransform-aiIf8lq5.js.map → useInputValueTransform-CMNC21vX.js.map} +1 -1
  291. package/dist/{useInputValueTransform-BID-CQ-y.d.cts → useInputValueTransform-Cc0qEsnS.d.ts} +3 -2
  292. package/dist/useInputValueTransform-Cc0qEsnS.d.ts.map +1 -0
  293. package/dist/{useUniformField-B2OZ-Z1G.d.cts → useUniformField-B2zQtEbr.d.cts} +4 -4
  294. package/dist/{useUniformField-B2OZ-Z1G.d.cts.map → useUniformField-B2zQtEbr.d.cts.map} +1 -1
  295. package/dist/{useUniformField-gU4qYUwL.js → useUniformField-BKVVns0E.js} +34 -8
  296. package/dist/useUniformField-BKVVns0E.js.map +1 -0
  297. package/dist/{useUniformField-Bj23Kvbs.cjs → useUniformField-D6fwSjrH.cjs} +35 -9
  298. package/dist/useUniformField-D6fwSjrH.cjs.map +1 -0
  299. package/dist/{useUniformField-CwEHonNe.d.ts → useUniformField-RxZqXMuD.d.ts} +4 -4
  300. package/dist/{useUniformField-CwEHonNe.d.ts.map → useUniformField-RxZqXMuD.d.ts.map} +1 -1
  301. package/dist/{useUniformFieldArray-CXoWvu6m.d.ts → useUniformFieldArray-B_c55CnX.d.ts} +4 -4
  302. package/dist/useUniformFieldArray-B_c55CnX.d.ts.map +1 -0
  303. package/dist/{useUniformFieldArray-B5PyxL1P.js → useUniformFieldArray-BwE634m6.js} +4 -4
  304. package/dist/useUniformFieldArray-BwE634m6.js.map +1 -0
  305. package/dist/{useUniformFieldArray-G1lokW7x.cjs → useUniformFieldArray-Byfmzq97.cjs} +5 -5
  306. package/dist/useUniformFieldArray-Byfmzq97.cjs.map +1 -0
  307. package/dist/{useUniformFieldArray-qtJMEosJ.d.cts → useUniformFieldArray-WRuIMhw6.d.cts} +4 -4
  308. package/dist/useUniformFieldArray-WRuIMhw6.d.cts.map +1 -0
  309. package/dist/{useWatchUserChange-BAdiqg2q.d.ts → useWatchUserChange-Bf5JKDJJ.d.ts} +1 -1
  310. package/dist/{useWatchUserChange-BAdiqg2q.d.ts.map → useWatchUserChange-Bf5JKDJJ.d.ts.map} +1 -1
  311. package/dist/{useWatchUserChange-COVdHmki.d.cts → useWatchUserChange-Br4Q7syM.d.cts} +1 -1
  312. package/dist/{useWatchUserChange-COVdHmki.d.cts.map → useWatchUserChange-Br4Q7syM.d.cts.map} +1 -1
  313. package/dist/{useWatchUserChange-BnxYE-0b.cjs → useWatchUserChange-TMfaTCcp.cjs} +3 -3
  314. package/dist/{useWatchUserChange-BnxYE-0b.cjs.map → useWatchUserChange-TMfaTCcp.cjs.map} +1 -1
  315. package/dist/{useWatchUserChange-C1ezpj0t.js → useWatchUserChange-fZy6nGtD.js} +2 -2
  316. package/dist/{useWatchUserChange-C1ezpj0t.js.map → useWatchUserChange-fZy6nGtD.js.map} +1 -1
  317. package/package.json +3 -3
  318. package/dist/Input-DXMWGTBh.js.map +0 -1
  319. package/dist/Input-DeTpxiK_.cjs.map +0 -1
  320. package/dist/helpers-B-CJOBt3.js.map +0 -1
  321. package/dist/helpers-B84E9vHd.cjs.map +0 -1
  322. package/dist/index-Bj_lpc5r.d.cts.map +0 -1
  323. package/dist/index-Bo_n9sse.d.cts.map +0 -1
  324. package/dist/index-BxA_pJWn.d.cts.map +0 -1
  325. package/dist/index-C0L7GvgN.d.cts.map +0 -1
  326. package/dist/index-C1PUx1tH.d.ts.map +0 -1
  327. package/dist/index-CADnFWHq.d.ts +0 -264
  328. package/dist/index-CADnFWHq.d.ts.map +0 -1
  329. package/dist/index-D38wOL-M.d.ts.map +0 -1
  330. package/dist/index-DoS0lVRe.d.cts.map +0 -1
  331. package/dist/index-G0IgQWoU.d.cts +0 -134
  332. package/dist/index-G0IgQWoU.d.cts.map +0 -1
  333. package/dist/index-UjKqRe-8.d.ts +0 -134
  334. package/dist/index-UjKqRe-8.d.ts.map +0 -1
  335. package/dist/index-sJZ434Sg.d.cts +0 -264
  336. package/dist/index-sJZ434Sg.d.cts.map +0 -1
  337. package/dist/useFormContext-B083Y-kw.d.cts.map +0 -1
  338. package/dist/useFormContext-B2TS6xq0.d.ts.map +0 -1
  339. package/dist/useInputValueDebounce-B5b-v8Hc.d.cts.map +0 -1
  340. package/dist/useInputValueDebounce-BcUyaS94.cjs.map +0 -1
  341. package/dist/useInputValueDebounce-DaH5ONlQ.js.map +0 -1
  342. package/dist/useInputValueDebounce-DoRuSF6R.d.ts.map +0 -1
  343. package/dist/useInputValueTransform-BID-CQ-y.d.cts.map +0 -1
  344. package/dist/useInputValueTransform-D7LfyYRe.d.ts.map +0 -1
  345. package/dist/useUniformField-Bj23Kvbs.cjs.map +0 -1
  346. package/dist/useUniformField-gU4qYUwL.js.map +0 -1
  347. package/dist/useUniformFieldArray-B5PyxL1P.js.map +0 -1
  348. package/dist/useUniformFieldArray-CXoWvu6m.d.ts.map +0 -1
  349. package/dist/useUniformFieldArray-G1lokW7x.cjs.map +0 -1
  350. package/dist/useUniformFieldArray-qtJMEosJ.d.cts.map +0 -1
@@ -1,2 +1,164 @@
1
- import { a as toNullishString, i as toFormFormat, n as fromNullishString, o as toValidationFormat, r as nameToTestId, t as flatArrayKey } from "../index-G0IgQWoU.cjs";
2
- export { flatArrayKey, fromNullishString, nameToTestId, toFormFormat, toNullishString, toValidationFormat };
1
+ //#region src/helpers/nullishFields/nullishFields.d.ts
2
+ /** Key used to wrap flat array elements when converting to form format */
3
+ declare const flatArrayKey = "__FLAT__";
4
+ /**
5
+ * Checks if a value is considered "empty" for validation display purposes.
6
+ *
7
+ * Used by useUniformField to determine when to show validation errors.
8
+ * Empty values don't trigger immediate error display (user must interact first).
9
+ *
10
+ * Handles:
11
+ * - Primitives: null, undefined, ''
12
+ * - Marker strings: __NULL__, __FALSE__, __ZERO__ (converted via fromNullishString)
13
+ * - Empty arrays: []
14
+ * - Objects with all empty values: {a: null, b: ''}
15
+ * - Flat array wrappers: {__FLAT__: null} or {__FLAT__: ''}
16
+ *
17
+ * @param value - The value to check (will be converted via fromNullishString first)
18
+ * @returns true if the value is empty
19
+ *
20
+ * @example
21
+ * isValueEmpty(null) // true
22
+ * isValueEmpty('') // true
23
+ * isValueEmpty('__NULL__') // true (marker string)
24
+ * isValueEmpty([]) // true (empty array)
25
+ * isValueEmpty({a: null}) // true (object with all empty values)
26
+ * isValueEmpty({__FLAT__: null}) // true (flat array wrapper with empty value)
27
+ * isValueEmpty({__FLAT__: ''}) // true
28
+ * isValueEmpty('hello') // false
29
+ * isValueEmpty([1, 2]) // false
30
+ * isValueEmpty({a: 'value'}) // false
31
+ * isValueEmpty({__FLAT__: 'value'}) // false
32
+ */
33
+ declare const isValueEmpty: (value: unknown) => boolean;
34
+ /**
35
+ * Converts marker strings back to their original values when processing arrays
36
+ */
37
+ declare const fromNullishString: (value: unknown) => unknown;
38
+ /**
39
+ * Converts null/falsy values to marker strings for JSON processing
40
+ */
41
+ declare const toNullishString: (value: unknown) => unknown;
42
+ /**
43
+ * Converts field values to a format suitable for forms by:
44
+ * - Wrapping arrays of primitives as objects using the flatArrayKey `__FLAT__`
45
+ * to satisfy RHF's requirement that array fields contain objects
46
+ * - Removing empty strings and null values from objects
47
+ *
48
+ * This conversion is required because React Hook Form does not support arrays with
49
+ * flat values (string, number, boolean, null). Array fields must contain objects.
50
+ * We work around this by wrapping primitive entries: `{ __FLAT__: <value> }`.
51
+ *
52
+ * @example
53
+ * const fields = {
54
+ * name: 'John',
55
+ * scores: [0, null, 75, false],
56
+ * scoresDetailed: [
57
+ * { score: 1 },
58
+ * { score: null },
59
+ * { score: 0 },
60
+ * { score: false },
61
+ * { score: '' },
62
+ * ],
63
+ * contact: {
64
+ * email: '',
65
+ * phone: null,
66
+ * address: '123 Main St'
67
+ * }
68
+ * };
69
+ *
70
+ * // Result:
71
+ * {
72
+ * name: 'John',
73
+ * scores: [
74
+ * { __FLAT__: 0 },
75
+ * { __FLAT__: null },
76
+ * { __FLAT__: 75 },
77
+ * { __FLAT__: false }
78
+ * ],
79
+ * // Arrays of objects are left as objects; empty/null properties are removed
80
+ * scoresDetailed: [
81
+ * { score: 1 },
82
+ * {}, // null score removed
83
+ * { score: 0 },
84
+ * { score: false },
85
+ * {}, // empty string removed
86
+ * ],
87
+ * contact: {
88
+ * address: '123 Main St'
89
+ * }
90
+ * }
91
+ */
92
+ declare const toFormFormat: (fields: Record<string, unknown>) => Record<string, unknown>;
93
+ /**
94
+ * Converts form state to a format suitable for validation by:
95
+ * - Unwrapping flat array wrappers `{ __FLAT__: <value> }` back to primitives
96
+ * - Converting legacy string markers (__NULL__, __FALSE__, __ZERO__) back to their original values
97
+ * - Removing fields whose converted value is empty string or null
98
+ * - Removing empty arrays
99
+ *
100
+ * @example
101
+ * const formState = {
102
+ * name: 'John',
103
+ * scores: [
104
+ * { __FLAT__: 75 },
105
+ * { __FLAT__: 0 },
106
+ * { __FLAT__: null },
107
+ * { __FLAT__: false }
108
+ * ],
109
+ * emptyArray: [],
110
+ * scoresDetailed: [
111
+ * { score: 1 },
112
+ * {},
113
+ * { score: 0 },
114
+ * { score: false },
115
+ * {},
116
+ * ],
117
+ * contact: {
118
+ * address: '123 Main St',
119
+ * fax: null
120
+ * }
121
+ * };
122
+ *
123
+ * // Result:
124
+ * {
125
+ * name: 'John',
126
+ * scores: [75, 0, null, false],
127
+ * // emptyArray is removed
128
+ * // Objects inside arrays remain objects; empty entries remain empty objects
129
+ * scoresDetailed: [
130
+ * { score: 1 },
131
+ * {},
132
+ * { score: 0 },
133
+ * { score: false },
134
+ * {},
135
+ * ],
136
+ * contact: {
137
+ * address: '123 Main St'
138
+ * }
139
+ * }
140
+ */
141
+ declare const toValidationFormat: (formState: Record<string, unknown> | null | undefined) => Record<string, unknown> | null | undefined;
142
+ /**
143
+ * Converts a field name to a testId by removing flat array key segments and slugifying.
144
+ * Removes all occurrences of `flatArrayKey` from the field name and applies slugify transformation.
145
+ *
146
+ * This is used to generate stable testIds for form fields that don't include
147
+ * the internal `__FLAT__` marker used for flat arrays.
148
+ *
149
+ * @param name - The field name as a string (e.g., 'tags.0.__FLAT__') or array path (e.g., ['tags', '0', '__FLAT__'])
150
+ * @returns The slugified field name with all flat array key segments removed (e.g., 'tags_0')
151
+ *
152
+ * @example
153
+ * ```ts
154
+ * nameToTestId('tags.0.__FLAT__') // => 'tags_0'
155
+ * nameToTestId('array.0.__FLAT__') // => 'array_0'
156
+ * nameToTestId('nested.array.0.__FLAT__.field') // => 'nested_array_0_field'
157
+ * nameToTestId('simple.field') // => 'simple_field'
158
+ * nameToTestId(['tags', '0', '__FLAT__']) // => 'tags_0'
159
+ * ```
160
+ */
161
+ declare const nameToTestId: (name: string | readonly string[]) => string;
162
+ //#endregion
163
+ export { flatArrayKey, fromNullishString, isValueEmpty, nameToTestId, toFormFormat, toNullishString, toValidationFormat };
164
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../../src/helpers/nullishFields/nullishFields.ts"],"sourcesContent":[],"mappings":";;AAGa,cAAA,YAAA,GAAY,UAAA;AAsCzB;AA0BA;AAsCA;AA6EA;AA2EA;AAkGA;;;;;;;;;;;;;;;;;;;;;;;;cA1Ta;;;;cA0BA;;;;cAsCA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA6EA,uBAAwB,4BAwBE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAmD1B,gCACA,+CACV;;;;;;;;;;;;;;;;;;;;cAgGU"}
@@ -1,2 +1,164 @@
1
- import { a as toNullishString, i as toFormFormat, n as fromNullishString, o as toValidationFormat, r as nameToTestId, t as flatArrayKey } from "../index-UjKqRe-8.js";
2
- export { flatArrayKey, fromNullishString, nameToTestId, toFormFormat, toNullishString, toValidationFormat };
1
+ //#region src/helpers/nullishFields/nullishFields.d.ts
2
+ /** Key used to wrap flat array elements when converting to form format */
3
+ declare const flatArrayKey = "__FLAT__";
4
+ /**
5
+ * Checks if a value is considered "empty" for validation display purposes.
6
+ *
7
+ * Used by useUniformField to determine when to show validation errors.
8
+ * Empty values don't trigger immediate error display (user must interact first).
9
+ *
10
+ * Handles:
11
+ * - Primitives: null, undefined, ''
12
+ * - Marker strings: __NULL__, __FALSE__, __ZERO__ (converted via fromNullishString)
13
+ * - Empty arrays: []
14
+ * - Objects with all empty values: {a: null, b: ''}
15
+ * - Flat array wrappers: {__FLAT__: null} or {__FLAT__: ''}
16
+ *
17
+ * @param value - The value to check (will be converted via fromNullishString first)
18
+ * @returns true if the value is empty
19
+ *
20
+ * @example
21
+ * isValueEmpty(null) // true
22
+ * isValueEmpty('') // true
23
+ * isValueEmpty('__NULL__') // true (marker string)
24
+ * isValueEmpty([]) // true (empty array)
25
+ * isValueEmpty({a: null}) // true (object with all empty values)
26
+ * isValueEmpty({__FLAT__: null}) // true (flat array wrapper with empty value)
27
+ * isValueEmpty({__FLAT__: ''}) // true
28
+ * isValueEmpty('hello') // false
29
+ * isValueEmpty([1, 2]) // false
30
+ * isValueEmpty({a: 'value'}) // false
31
+ * isValueEmpty({__FLAT__: 'value'}) // false
32
+ */
33
+ declare const isValueEmpty: (value: unknown) => boolean;
34
+ /**
35
+ * Converts marker strings back to their original values when processing arrays
36
+ */
37
+ declare const fromNullishString: (value: unknown) => unknown;
38
+ /**
39
+ * Converts null/falsy values to marker strings for JSON processing
40
+ */
41
+ declare const toNullishString: (value: unknown) => unknown;
42
+ /**
43
+ * Converts field values to a format suitable for forms by:
44
+ * - Wrapping arrays of primitives as objects using the flatArrayKey `__FLAT__`
45
+ * to satisfy RHF's requirement that array fields contain objects
46
+ * - Removing empty strings and null values from objects
47
+ *
48
+ * This conversion is required because React Hook Form does not support arrays with
49
+ * flat values (string, number, boolean, null). Array fields must contain objects.
50
+ * We work around this by wrapping primitive entries: `{ __FLAT__: <value> }`.
51
+ *
52
+ * @example
53
+ * const fields = {
54
+ * name: 'John',
55
+ * scores: [0, null, 75, false],
56
+ * scoresDetailed: [
57
+ * { score: 1 },
58
+ * { score: null },
59
+ * { score: 0 },
60
+ * { score: false },
61
+ * { score: '' },
62
+ * ],
63
+ * contact: {
64
+ * email: '',
65
+ * phone: null,
66
+ * address: '123 Main St'
67
+ * }
68
+ * };
69
+ *
70
+ * // Result:
71
+ * {
72
+ * name: 'John',
73
+ * scores: [
74
+ * { __FLAT__: 0 },
75
+ * { __FLAT__: null },
76
+ * { __FLAT__: 75 },
77
+ * { __FLAT__: false }
78
+ * ],
79
+ * // Arrays of objects are left as objects; empty/null properties are removed
80
+ * scoresDetailed: [
81
+ * { score: 1 },
82
+ * {}, // null score removed
83
+ * { score: 0 },
84
+ * { score: false },
85
+ * {}, // empty string removed
86
+ * ],
87
+ * contact: {
88
+ * address: '123 Main St'
89
+ * }
90
+ * }
91
+ */
92
+ declare const toFormFormat: (fields: Record<string, unknown>) => Record<string, unknown>;
93
+ /**
94
+ * Converts form state to a format suitable for validation by:
95
+ * - Unwrapping flat array wrappers `{ __FLAT__: <value> }` back to primitives
96
+ * - Converting legacy string markers (__NULL__, __FALSE__, __ZERO__) back to their original values
97
+ * - Removing fields whose converted value is empty string or null
98
+ * - Removing empty arrays
99
+ *
100
+ * @example
101
+ * const formState = {
102
+ * name: 'John',
103
+ * scores: [
104
+ * { __FLAT__: 75 },
105
+ * { __FLAT__: 0 },
106
+ * { __FLAT__: null },
107
+ * { __FLAT__: false }
108
+ * ],
109
+ * emptyArray: [],
110
+ * scoresDetailed: [
111
+ * { score: 1 },
112
+ * {},
113
+ * { score: 0 },
114
+ * { score: false },
115
+ * {},
116
+ * ],
117
+ * contact: {
118
+ * address: '123 Main St',
119
+ * fax: null
120
+ * }
121
+ * };
122
+ *
123
+ * // Result:
124
+ * {
125
+ * name: 'John',
126
+ * scores: [75, 0, null, false],
127
+ * // emptyArray is removed
128
+ * // Objects inside arrays remain objects; empty entries remain empty objects
129
+ * scoresDetailed: [
130
+ * { score: 1 },
131
+ * {},
132
+ * { score: 0 },
133
+ * { score: false },
134
+ * {},
135
+ * ],
136
+ * contact: {
137
+ * address: '123 Main St'
138
+ * }
139
+ * }
140
+ */
141
+ declare const toValidationFormat: (formState: Record<string, unknown> | null | undefined) => Record<string, unknown> | null | undefined;
142
+ /**
143
+ * Converts a field name to a testId by removing flat array key segments and slugifying.
144
+ * Removes all occurrences of `flatArrayKey` from the field name and applies slugify transformation.
145
+ *
146
+ * This is used to generate stable testIds for form fields that don't include
147
+ * the internal `__FLAT__` marker used for flat arrays.
148
+ *
149
+ * @param name - The field name as a string (e.g., 'tags.0.__FLAT__') or array path (e.g., ['tags', '0', '__FLAT__'])
150
+ * @returns The slugified field name with all flat array key segments removed (e.g., 'tags_0')
151
+ *
152
+ * @example
153
+ * ```ts
154
+ * nameToTestId('tags.0.__FLAT__') // => 'tags_0'
155
+ * nameToTestId('array.0.__FLAT__') // => 'array_0'
156
+ * nameToTestId('nested.array.0.__FLAT__.field') // => 'nested_array_0_field'
157
+ * nameToTestId('simple.field') // => 'simple_field'
158
+ * nameToTestId(['tags', '0', '__FLAT__']) // => 'tags_0'
159
+ * ```
160
+ */
161
+ declare const nameToTestId: (name: string | readonly string[]) => string;
162
+ //#endregion
163
+ export { flatArrayKey, fromNullishString, isValueEmpty, nameToTestId, toFormFormat, toNullishString, toValidationFormat };
164
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/helpers/nullishFields/nullishFields.ts"],"sourcesContent":[],"mappings":";;AAGa,cAAA,YAAA,GAAY,UAAA;AAsCzB;AA0BA;AAsCA;AA6EA;AA2EA;AAkGA;;;;;;;;;;;;;;;;;;;;;;;;cA1Ta;;;;cA0BA;;;;cAsCA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA6EA,uBAAwB,4BAwBE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAmD1B,gCACA,+CACV;;;;;;;;;;;;;;;;;;;;cAgGU"}
@@ -1,3 +1,3 @@
1
- import { a as toNullishString, i as toFormFormat, n as fromNullishString, o as toValidationFormat, r as nameToTestId, t as flatArrayKey } from "../helpers-B-CJOBt3.js";
1
+ import { a as toFormFormat, i as nameToTestId, n as fromNullishString, o as toNullishString, r as isValueEmpty, s as toValidationFormat, t as flatArrayKey } from "../helpers-CCINRgQk.js";
2
2
 
3
- export { flatArrayKey, fromNullishString, nameToTestId, toFormFormat, toNullishString, toValidationFormat };
3
+ export { flatArrayKey, fromNullishString, isValueEmpty, nameToTestId, toFormFormat, toNullishString, toValidationFormat };
@@ -10,6 +10,47 @@ const nullString = "__NULL__";
10
10
  const falseString = "__FALSE__";
11
11
  const zeroString = "__ZERO__";
12
12
  /**
13
+ * Checks if a value is considered "empty" for validation display purposes.
14
+ *
15
+ * Used by useUniformField to determine when to show validation errors.
16
+ * Empty values don't trigger immediate error display (user must interact first).
17
+ *
18
+ * Handles:
19
+ * - Primitives: null, undefined, ''
20
+ * - Marker strings: __NULL__, __FALSE__, __ZERO__ (converted via fromNullishString)
21
+ * - Empty arrays: []
22
+ * - Objects with all empty values: {a: null, b: ''}
23
+ * - Flat array wrappers: {__FLAT__: null} or {__FLAT__: ''}
24
+ *
25
+ * @param value - The value to check (will be converted via fromNullishString first)
26
+ * @returns true if the value is empty
27
+ *
28
+ * @example
29
+ * isValueEmpty(null) // true
30
+ * isValueEmpty('') // true
31
+ * isValueEmpty('__NULL__') // true (marker string)
32
+ * isValueEmpty([]) // true (empty array)
33
+ * isValueEmpty({a: null}) // true (object with all empty values)
34
+ * isValueEmpty({__FLAT__: null}) // true (flat array wrapper with empty value)
35
+ * isValueEmpty({__FLAT__: ''}) // true
36
+ * isValueEmpty('hello') // false
37
+ * isValueEmpty([1, 2]) // false
38
+ * isValueEmpty({a: 'value'}) // false
39
+ * isValueEmpty({__FLAT__: 'value'}) // false
40
+ */
41
+ const isValueEmpty = (value) => {
42
+ const converted = fromNullishString(value);
43
+ if (converted === void 0 || converted === null || converted === "") return true;
44
+ if (Array.isArray(converted)) return converted.length === 0;
45
+ if (typeof converted === "object" && converted !== null) {
46
+ const record = converted;
47
+ if (flatArrayKey in record) return isValueEmpty(record[flatArrayKey]);
48
+ const values = Object.values(record);
49
+ return values.length === 0 || values.every(isValueEmpty);
50
+ }
51
+ return false;
52
+ };
53
+ /**
13
54
  * Converts marker strings back to their original values when processing arrays
14
55
  */
15
56
  const fromNullishString = (value) => {
@@ -232,5 +273,5 @@ const nameToTestId = (name) => {
232
273
  };
233
274
 
234
275
  //#endregion
235
- export { toNullishString as a, toFormFormat as i, fromNullishString as n, toValidationFormat as o, nameToTestId as r, flatArrayKey as t };
236
- //# sourceMappingURL=helpers-B-CJOBt3.js.map
276
+ export { toFormFormat as a, nameToTestId as i, fromNullishString as n, toNullishString as o, isValueEmpty as r, toValidationFormat as s, flatArrayKey as t };
277
+ //# sourceMappingURL=helpers-CCINRgQk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers-CCINRgQk.js","names":[],"sources":["../src/helpers/nullishFields/nullishFields.ts"],"sourcesContent":["import { slugify } from '@fuf-stack/pixel-utils';\n\n/** Key used to wrap flat array elements when converting to form format */\nexport const flatArrayKey = '__FLAT__';\n\n/**\n * String markers used to preserve null, false, and 0 values during JSON processing\n */\nconst nullString = '__NULL__';\nconst falseString = '__FALSE__';\nconst zeroString = '__ZERO__';\n\n/**\n * Checks if a value is considered \"empty\" for validation display purposes.\n *\n * Used by useUniformField to determine when to show validation errors.\n * Empty values don't trigger immediate error display (user must interact first).\n *\n * Handles:\n * - Primitives: null, undefined, ''\n * - Marker strings: __NULL__, __FALSE__, __ZERO__ (converted via fromNullishString)\n * - Empty arrays: []\n * - Objects with all empty values: {a: null, b: ''}\n * - Flat array wrappers: {__FLAT__: null} or {__FLAT__: ''}\n *\n * @param value - The value to check (will be converted via fromNullishString first)\n * @returns true if the value is empty\n *\n * @example\n * isValueEmpty(null) // true\n * isValueEmpty('') // true\n * isValueEmpty('__NULL__') // true (marker string)\n * isValueEmpty([]) // true (empty array)\n * isValueEmpty({a: null}) // true (object with all empty values)\n * isValueEmpty({__FLAT__: null}) // true (flat array wrapper with empty value)\n * isValueEmpty({__FLAT__: ''}) // true\n * isValueEmpty('hello') // false\n * isValueEmpty([1, 2]) // false\n * isValueEmpty({a: 'value'}) // false\n * isValueEmpty({__FLAT__: 'value'}) // false\n */\nexport const isValueEmpty = (value: unknown): boolean => {\n // Convert marker strings first\n const converted = fromNullishString(value);\n\n if (converted === undefined || converted === null || converted === '') {\n return true;\n }\n if (Array.isArray(converted)) {\n return converted.length === 0;\n }\n if (typeof converted === 'object' && converted !== null) {\n const record = converted as Record<string, unknown>;\n // Handle flat array wrapper: { __FLAT__: innerValue }\n if (flatArrayKey in record) {\n return isValueEmpty(record[flatArrayKey]);\n }\n // For objects (e.g., FieldCard), check if all values are null/undefined/empty\n const values = Object.values(record);\n return values.length === 0 || values.every(isValueEmpty);\n }\n return false;\n};\n\n/**\n * Converts marker strings back to their original values when processing arrays\n */\nexport const fromNullishString = (value: unknown): unknown => {\n // Support arrays: unwrap flat wrappers and convert marker strings per entry\n if (Array.isArray(value)) {\n return (value as unknown[]).map((entry) => {\n if (entry && typeof entry === 'object') {\n const record = entry as Record<string, unknown>;\n if (flatArrayKey in record) {\n const inner = record[flatArrayKey];\n // For arrays, treat empty string as null (placeholder input)\n if (inner === '') {\n return null;\n }\n return fromNullishString(inner);\n }\n }\n return fromNullishString(entry);\n });\n }\n\n if (typeof value !== 'string') {\n return value;\n }\n\n switch (value) {\n case nullString:\n return null;\n case falseString:\n return false;\n case zeroString:\n return 0;\n default:\n return value;\n }\n};\n\n/**\n * Converts null/falsy values to marker strings for JSON processing\n */\nexport const toNullishString = (value: unknown): unknown => {\n if (Array.isArray(value)) {\n // Only wrap arrays of primitives; leave arrays of objects as-is\n const isPrimitive = (v: unknown) => {\n return v === null || ['string', 'number', 'boolean'].includes(typeof v);\n };\n const isPrimitiveArray = (value as unknown[]).every(isPrimitive);\n if (isPrimitiveArray) {\n return (value as unknown[]).map((v) => {\n // Store raw primitive; do not convert to marker strings inside the wrapper\n return { [flatArrayKey]: v } as Record<string, unknown>;\n });\n }\n return value;\n }\n if (value === null || value === '') {\n return nullString;\n }\n if (value === false) {\n return falseString;\n }\n if (value === 0) {\n return zeroString;\n }\n return value;\n};\n\n/**\n * Converts field values to a format suitable for forms by:\n * - Wrapping arrays of primitives as objects using the flatArrayKey `__FLAT__`\n * to satisfy RHF's requirement that array fields contain objects\n * - Removing empty strings and null values from objects\n *\n * This conversion is required because React Hook Form does not support arrays with\n * flat values (string, number, boolean, null). Array fields must contain objects.\n * We work around this by wrapping primitive entries: `{ __FLAT__: <value> }`.\n *\n * @example\n * const fields = {\n * name: 'John',\n * scores: [0, null, 75, false],\n * scoresDetailed: [\n * { score: 1 },\n * { score: null },\n * { score: 0 },\n * { score: false },\n * { score: '' },\n * ],\n * contact: {\n * email: '',\n * phone: null,\n * address: '123 Main St'\n * }\n * };\n *\n * // Result:\n * {\n * name: 'John',\n * scores: [\n * { __FLAT__: 0 },\n * { __FLAT__: null },\n * { __FLAT__: 75 },\n * { __FLAT__: false }\n * ],\n * // Arrays of objects are left as objects; empty/null properties are removed\n * scoresDetailed: [\n * { score: 1 },\n * {}, // null score removed\n * { score: 0 },\n * { score: false },\n * {}, // empty string removed\n * ],\n * contact: {\n * address: '123 Main St'\n * }\n * }\n */\nexport const toFormFormat = (fields: Record<string, unknown>) => {\n const formFormatJson = JSON.stringify(fields, (_, value) => {\n if (Array.isArray(value)) {\n // Delegate to toNullishString to ensure consistent handling\n return toNullishString(value);\n }\n\n if (value && typeof value === 'object') {\n // Preserve flat-array wrappers as-is (do not filter their inner values here)\n const record = value as Record<string, unknown>;\n if (flatArrayKey in record) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n return value;\n }\n return Object.fromEntries(\n Object.entries(value).filter(([_key, v]) => {\n return v !== '' && v !== null;\n }),\n );\n }\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n return value;\n });\n\n return JSON.parse(formFormatJson) as Record<string, unknown>;\n};\n\n/**\n * Converts form state to a format suitable for validation by:\n * - Unwrapping flat array wrappers `{ __FLAT__: <value> }` back to primitives\n * - Converting legacy string markers (__NULL__, __FALSE__, __ZERO__) back to their original values\n * - Removing fields whose converted value is empty string or null\n * - Removing empty arrays\n *\n * @example\n * const formState = {\n * name: 'John',\n * scores: [\n * { __FLAT__: 75 },\n * { __FLAT__: 0 },\n * { __FLAT__: null },\n * { __FLAT__: false }\n * ],\n * emptyArray: [],\n * scoresDetailed: [\n * { score: 1 },\n * {},\n * { score: 0 },\n * { score: false },\n * {},\n * ],\n * contact: {\n * address: '123 Main St',\n * fax: null\n * }\n * };\n *\n * // Result:\n * {\n * name: 'John',\n * scores: [75, 0, null, false],\n * // emptyArray is removed\n * // Objects inside arrays remain objects; empty entries remain empty objects\n * scoresDetailed: [\n * { score: 1 },\n * {},\n * { score: 0 },\n * { score: false },\n * {},\n * ],\n * contact: {\n * address: '123 Main St'\n * }\n * }\n */\nexport const toValidationFormat = (\n formState: Record<string, unknown> | null | undefined,\n): Record<string, unknown> | null | undefined => {\n // Handle null or undefined input\n if (formState === undefined || formState === null) {\n return formState;\n }\n\n const validationFormatJson = JSON.stringify(formState, (_, value) => {\n if (Array.isArray(value)) {\n return value.map((v) => {\n // Unwrap new wrapper format { __FLAT__: <value> }\n if (v && typeof v === 'object') {\n const record = v as Record<string, unknown>;\n if (flatArrayKey in record) {\n const inner = record[flatArrayKey];\n // Treat empty string from forms as null in validation format\n if (inner === '') {\n return null;\n }\n return fromNullishString(inner);\n }\n }\n // Backward compatibility for string markers\n return fromNullishString(v);\n });\n }\n\n if (value && typeof value === 'object') {\n // Object branch: remove keys that resolve to empty/null after marker conversion\n // and unwrap flat-array wrappers if present.\n //\n // Why this shape?\n // - Forms may contain objects with placeholder/empty values that should not\n // be part of the validation payload (e.g. \"\" or __NULL__ markers).\n // - Arrays of primitives are stored as wrapper objects { __FLAT__: <value> }\n // to satisfy RHF structure constraints. When converting back for\n // validation, we need to treat wrappers whose inner value resolves to\n // empty/null as removable, and unwrap non-empty wrappers to the primitive.\n return Object.fromEntries(\n Object.entries(value)\n .filter(([_key, v]) => {\n // If this is a flat-array wrapper, convert the inner value first and\n // drop the key when the inner resolves to empty string or null.\n if (v && typeof v === 'object') {\n const record = v as Record<string, unknown>;\n if (flatArrayKey in record) {\n const convertedInner = fromNullishString(record[flatArrayKey]);\n return convertedInner !== '' && convertedInner !== null;\n }\n }\n // Drop empty arrays\n if (Array.isArray(v) && v.length === 0) {\n return false;\n }\n // For regular values, convert markers and drop when empty/null.\n const converted = fromNullishString(v);\n return converted !== '' && converted !== null;\n })\n .map(([k, v]) => {\n // Unwrap flat-array wrappers to raw primitives after conversion.\n if (v && typeof v === 'object') {\n const record = v as Record<string, unknown>;\n if (flatArrayKey in record) {\n return [k, fromNullishString(record[flatArrayKey])];\n }\n }\n // For other values, just convert markers.\n return [k, fromNullishString(v)];\n }),\n );\n }\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n return value;\n });\n\n return JSON.parse(validationFormatJson) as Record<string, unknown>;\n};\n\n/**\n * Converts a field name to a testId by removing flat array key segments and slugifying.\n * Removes all occurrences of `flatArrayKey` from the field name and applies slugify transformation.\n *\n * This is used to generate stable testIds for form fields that don't include\n * the internal `__FLAT__` marker used for flat arrays.\n *\n * @param name - The field name as a string (e.g., 'tags.0.__FLAT__') or array path (e.g., ['tags', '0', '__FLAT__'])\n * @returns The slugified field name with all flat array key segments removed (e.g., 'tags_0')\n *\n * @example\n * ```ts\n * nameToTestId('tags.0.__FLAT__') // => 'tags_0'\n * nameToTestId('array.0.__FLAT__') // => 'array_0'\n * nameToTestId('nested.array.0.__FLAT__.field') // => 'nested_array_0_field'\n * nameToTestId('simple.field') // => 'simple_field'\n * nameToTestId(['tags', '0', '__FLAT__']) // => 'tags_0'\n * ```\n */\nexport const nameToTestId = (name: string | readonly string[]): string => {\n let cleanName: string;\n\n // Handle array paths - filter out flatArrayKey and join with dots\n if (Array.isArray(name)) {\n cleanName = name\n .filter((segment: string) => {\n return segment !== flatArrayKey;\n })\n .join('.');\n } else {\n // Handle string paths - split by dots and filter out flatArrayKey segments\n const segments = (name as string).split('.');\n cleanName = segments\n .filter((segment: string) => {\n return segment !== flatArrayKey;\n })\n .join('.');\n }\n\n // Apply slugify transformation\n return slugify(cleanName, { replaceDots: true });\n};\n"],"mappings":"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"}
@@ -1,4 +1,4 @@
1
- const require_FormContext = require('./FormContext-Bb6d8hdG.cjs');
1
+ const require_FormContext = require('./FormContext-Lw4YL4-B.cjs');
2
2
  let _fuf_stack_pixel_utils = require("@fuf-stack/pixel-utils");
3
3
 
4
4
  //#region src/helpers/nullishFields/nullishFields.ts
@@ -11,6 +11,47 @@ const nullString = "__NULL__";
11
11
  const falseString = "__FALSE__";
12
12
  const zeroString = "__ZERO__";
13
13
  /**
14
+ * Checks if a value is considered "empty" for validation display purposes.
15
+ *
16
+ * Used by useUniformField to determine when to show validation errors.
17
+ * Empty values don't trigger immediate error display (user must interact first).
18
+ *
19
+ * Handles:
20
+ * - Primitives: null, undefined, ''
21
+ * - Marker strings: __NULL__, __FALSE__, __ZERO__ (converted via fromNullishString)
22
+ * - Empty arrays: []
23
+ * - Objects with all empty values: {a: null, b: ''}
24
+ * - Flat array wrappers: {__FLAT__: null} or {__FLAT__: ''}
25
+ *
26
+ * @param value - The value to check (will be converted via fromNullishString first)
27
+ * @returns true if the value is empty
28
+ *
29
+ * @example
30
+ * isValueEmpty(null) // true
31
+ * isValueEmpty('') // true
32
+ * isValueEmpty('__NULL__') // true (marker string)
33
+ * isValueEmpty([]) // true (empty array)
34
+ * isValueEmpty({a: null}) // true (object with all empty values)
35
+ * isValueEmpty({__FLAT__: null}) // true (flat array wrapper with empty value)
36
+ * isValueEmpty({__FLAT__: ''}) // true
37
+ * isValueEmpty('hello') // false
38
+ * isValueEmpty([1, 2]) // false
39
+ * isValueEmpty({a: 'value'}) // false
40
+ * isValueEmpty({__FLAT__: 'value'}) // false
41
+ */
42
+ const isValueEmpty = (value) => {
43
+ const converted = fromNullishString(value);
44
+ if (converted === void 0 || converted === null || converted === "") return true;
45
+ if (Array.isArray(converted)) return converted.length === 0;
46
+ if (typeof converted === "object" && converted !== null) {
47
+ const record = converted;
48
+ if (flatArrayKey in record) return isValueEmpty(record[flatArrayKey]);
49
+ const values = Object.values(record);
50
+ return values.length === 0 || values.every(isValueEmpty);
51
+ }
52
+ return false;
53
+ };
54
+ /**
14
55
  * Converts marker strings back to their original values when processing arrays
15
56
  */
16
57
  const fromNullishString = (value) => {
@@ -245,6 +286,12 @@ Object.defineProperty(exports, 'fromNullishString', {
245
286
  return fromNullishString;
246
287
  }
247
288
  });
289
+ Object.defineProperty(exports, 'isValueEmpty', {
290
+ enumerable: true,
291
+ get: function () {
292
+ return isValueEmpty;
293
+ }
294
+ });
248
295
  Object.defineProperty(exports, 'nameToTestId', {
249
296
  enumerable: true,
250
297
  get: function () {
@@ -269,4 +316,4 @@ Object.defineProperty(exports, 'toValidationFormat', {
269
316
  return toValidationFormat;
270
317
  }
271
318
  });
272
- //# sourceMappingURL=helpers-B84E9vHd.cjs.map
319
+ //# sourceMappingURL=helpers-nYTmL2gX.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers-nYTmL2gX.cjs","names":[],"sources":["../src/helpers/nullishFields/nullishFields.ts"],"sourcesContent":["import { slugify } from '@fuf-stack/pixel-utils';\n\n/** Key used to wrap flat array elements when converting to form format */\nexport const flatArrayKey = '__FLAT__';\n\n/**\n * String markers used to preserve null, false, and 0 values during JSON processing\n */\nconst nullString = '__NULL__';\nconst falseString = '__FALSE__';\nconst zeroString = '__ZERO__';\n\n/**\n * Checks if a value is considered \"empty\" for validation display purposes.\n *\n * Used by useUniformField to determine when to show validation errors.\n * Empty values don't trigger immediate error display (user must interact first).\n *\n * Handles:\n * - Primitives: null, undefined, ''\n * - Marker strings: __NULL__, __FALSE__, __ZERO__ (converted via fromNullishString)\n * - Empty arrays: []\n * - Objects with all empty values: {a: null, b: ''}\n * - Flat array wrappers: {__FLAT__: null} or {__FLAT__: ''}\n *\n * @param value - The value to check (will be converted via fromNullishString first)\n * @returns true if the value is empty\n *\n * @example\n * isValueEmpty(null) // true\n * isValueEmpty('') // true\n * isValueEmpty('__NULL__') // true (marker string)\n * isValueEmpty([]) // true (empty array)\n * isValueEmpty({a: null}) // true (object with all empty values)\n * isValueEmpty({__FLAT__: null}) // true (flat array wrapper with empty value)\n * isValueEmpty({__FLAT__: ''}) // true\n * isValueEmpty('hello') // false\n * isValueEmpty([1, 2]) // false\n * isValueEmpty({a: 'value'}) // false\n * isValueEmpty({__FLAT__: 'value'}) // false\n */\nexport const isValueEmpty = (value: unknown): boolean => {\n // Convert marker strings first\n const converted = fromNullishString(value);\n\n if (converted === undefined || converted === null || converted === '') {\n return true;\n }\n if (Array.isArray(converted)) {\n return converted.length === 0;\n }\n if (typeof converted === 'object' && converted !== null) {\n const record = converted as Record<string, unknown>;\n // Handle flat array wrapper: { __FLAT__: innerValue }\n if (flatArrayKey in record) {\n return isValueEmpty(record[flatArrayKey]);\n }\n // For objects (e.g., FieldCard), check if all values are null/undefined/empty\n const values = Object.values(record);\n return values.length === 0 || values.every(isValueEmpty);\n }\n return false;\n};\n\n/**\n * Converts marker strings back to their original values when processing arrays\n */\nexport const fromNullishString = (value: unknown): unknown => {\n // Support arrays: unwrap flat wrappers and convert marker strings per entry\n if (Array.isArray(value)) {\n return (value as unknown[]).map((entry) => {\n if (entry && typeof entry === 'object') {\n const record = entry as Record<string, unknown>;\n if (flatArrayKey in record) {\n const inner = record[flatArrayKey];\n // For arrays, treat empty string as null (placeholder input)\n if (inner === '') {\n return null;\n }\n return fromNullishString(inner);\n }\n }\n return fromNullishString(entry);\n });\n }\n\n if (typeof value !== 'string') {\n return value;\n }\n\n switch (value) {\n case nullString:\n return null;\n case falseString:\n return false;\n case zeroString:\n return 0;\n default:\n return value;\n }\n};\n\n/**\n * Converts null/falsy values to marker strings for JSON processing\n */\nexport const toNullishString = (value: unknown): unknown => {\n if (Array.isArray(value)) {\n // Only wrap arrays of primitives; leave arrays of objects as-is\n const isPrimitive = (v: unknown) => {\n return v === null || ['string', 'number', 'boolean'].includes(typeof v);\n };\n const isPrimitiveArray = (value as unknown[]).every(isPrimitive);\n if (isPrimitiveArray) {\n return (value as unknown[]).map((v) => {\n // Store raw primitive; do not convert to marker strings inside the wrapper\n return { [flatArrayKey]: v } as Record<string, unknown>;\n });\n }\n return value;\n }\n if (value === null || value === '') {\n return nullString;\n }\n if (value === false) {\n return falseString;\n }\n if (value === 0) {\n return zeroString;\n }\n return value;\n};\n\n/**\n * Converts field values to a format suitable for forms by:\n * - Wrapping arrays of primitives as objects using the flatArrayKey `__FLAT__`\n * to satisfy RHF's requirement that array fields contain objects\n * - Removing empty strings and null values from objects\n *\n * This conversion is required because React Hook Form does not support arrays with\n * flat values (string, number, boolean, null). Array fields must contain objects.\n * We work around this by wrapping primitive entries: `{ __FLAT__: <value> }`.\n *\n * @example\n * const fields = {\n * name: 'John',\n * scores: [0, null, 75, false],\n * scoresDetailed: [\n * { score: 1 },\n * { score: null },\n * { score: 0 },\n * { score: false },\n * { score: '' },\n * ],\n * contact: {\n * email: '',\n * phone: null,\n * address: '123 Main St'\n * }\n * };\n *\n * // Result:\n * {\n * name: 'John',\n * scores: [\n * { __FLAT__: 0 },\n * { __FLAT__: null },\n * { __FLAT__: 75 },\n * { __FLAT__: false }\n * ],\n * // Arrays of objects are left as objects; empty/null properties are removed\n * scoresDetailed: [\n * { score: 1 },\n * {}, // null score removed\n * { score: 0 },\n * { score: false },\n * {}, // empty string removed\n * ],\n * contact: {\n * address: '123 Main St'\n * }\n * }\n */\nexport const toFormFormat = (fields: Record<string, unknown>) => {\n const formFormatJson = JSON.stringify(fields, (_, value) => {\n if (Array.isArray(value)) {\n // Delegate to toNullishString to ensure consistent handling\n return toNullishString(value);\n }\n\n if (value && typeof value === 'object') {\n // Preserve flat-array wrappers as-is (do not filter their inner values here)\n const record = value as Record<string, unknown>;\n if (flatArrayKey in record) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n return value;\n }\n return Object.fromEntries(\n Object.entries(value).filter(([_key, v]) => {\n return v !== '' && v !== null;\n }),\n );\n }\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n return value;\n });\n\n return JSON.parse(formFormatJson) as Record<string, unknown>;\n};\n\n/**\n * Converts form state to a format suitable for validation by:\n * - Unwrapping flat array wrappers `{ __FLAT__: <value> }` back to primitives\n * - Converting legacy string markers (__NULL__, __FALSE__, __ZERO__) back to their original values\n * - Removing fields whose converted value is empty string or null\n * - Removing empty arrays\n *\n * @example\n * const formState = {\n * name: 'John',\n * scores: [\n * { __FLAT__: 75 },\n * { __FLAT__: 0 },\n * { __FLAT__: null },\n * { __FLAT__: false }\n * ],\n * emptyArray: [],\n * scoresDetailed: [\n * { score: 1 },\n * {},\n * { score: 0 },\n * { score: false },\n * {},\n * ],\n * contact: {\n * address: '123 Main St',\n * fax: null\n * }\n * };\n *\n * // Result:\n * {\n * name: 'John',\n * scores: [75, 0, null, false],\n * // emptyArray is removed\n * // Objects inside arrays remain objects; empty entries remain empty objects\n * scoresDetailed: [\n * { score: 1 },\n * {},\n * { score: 0 },\n * { score: false },\n * {},\n * ],\n * contact: {\n * address: '123 Main St'\n * }\n * }\n */\nexport const toValidationFormat = (\n formState: Record<string, unknown> | null | undefined,\n): Record<string, unknown> | null | undefined => {\n // Handle null or undefined input\n if (formState === undefined || formState === null) {\n return formState;\n }\n\n const validationFormatJson = JSON.stringify(formState, (_, value) => {\n if (Array.isArray(value)) {\n return value.map((v) => {\n // Unwrap new wrapper format { __FLAT__: <value> }\n if (v && typeof v === 'object') {\n const record = v as Record<string, unknown>;\n if (flatArrayKey in record) {\n const inner = record[flatArrayKey];\n // Treat empty string from forms as null in validation format\n if (inner === '') {\n return null;\n }\n return fromNullishString(inner);\n }\n }\n // Backward compatibility for string markers\n return fromNullishString(v);\n });\n }\n\n if (value && typeof value === 'object') {\n // Object branch: remove keys that resolve to empty/null after marker conversion\n // and unwrap flat-array wrappers if present.\n //\n // Why this shape?\n // - Forms may contain objects with placeholder/empty values that should not\n // be part of the validation payload (e.g. \"\" or __NULL__ markers).\n // - Arrays of primitives are stored as wrapper objects { __FLAT__: <value> }\n // to satisfy RHF structure constraints. When converting back for\n // validation, we need to treat wrappers whose inner value resolves to\n // empty/null as removable, and unwrap non-empty wrappers to the primitive.\n return Object.fromEntries(\n Object.entries(value)\n .filter(([_key, v]) => {\n // If this is a flat-array wrapper, convert the inner value first and\n // drop the key when the inner resolves to empty string or null.\n if (v && typeof v === 'object') {\n const record = v as Record<string, unknown>;\n if (flatArrayKey in record) {\n const convertedInner = fromNullishString(record[flatArrayKey]);\n return convertedInner !== '' && convertedInner !== null;\n }\n }\n // Drop empty arrays\n if (Array.isArray(v) && v.length === 0) {\n return false;\n }\n // For regular values, convert markers and drop when empty/null.\n const converted = fromNullishString(v);\n return converted !== '' && converted !== null;\n })\n .map(([k, v]) => {\n // Unwrap flat-array wrappers to raw primitives after conversion.\n if (v && typeof v === 'object') {\n const record = v as Record<string, unknown>;\n if (flatArrayKey in record) {\n return [k, fromNullishString(record[flatArrayKey])];\n }\n }\n // For other values, just convert markers.\n return [k, fromNullishString(v)];\n }),\n );\n }\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n return value;\n });\n\n return JSON.parse(validationFormatJson) as Record<string, unknown>;\n};\n\n/**\n * Converts a field name to a testId by removing flat array key segments and slugifying.\n * Removes all occurrences of `flatArrayKey` from the field name and applies slugify transformation.\n *\n * This is used to generate stable testIds for form fields that don't include\n * the internal `__FLAT__` marker used for flat arrays.\n *\n * @param name - The field name as a string (e.g., 'tags.0.__FLAT__') or array path (e.g., ['tags', '0', '__FLAT__'])\n * @returns The slugified field name with all flat array key segments removed (e.g., 'tags_0')\n *\n * @example\n * ```ts\n * nameToTestId('tags.0.__FLAT__') // => 'tags_0'\n * nameToTestId('array.0.__FLAT__') // => 'array_0'\n * nameToTestId('nested.array.0.__FLAT__.field') // => 'nested_array_0_field'\n * nameToTestId('simple.field') // => 'simple_field'\n * nameToTestId(['tags', '0', '__FLAT__']) // => 'tags_0'\n * ```\n */\nexport const nameToTestId = (name: string | readonly string[]): string => {\n let cleanName: string;\n\n // Handle array paths - filter out flatArrayKey and join with dots\n if (Array.isArray(name)) {\n cleanName = name\n .filter((segment: string) => {\n return segment !== flatArrayKey;\n })\n .join('.');\n } else {\n // Handle string paths - split by dots and filter out flatArrayKey segments\n const segments = (name as string).split('.');\n cleanName = segments\n .filter((segment: string) => {\n return segment !== flatArrayKey;\n })\n .join('.');\n }\n\n // Apply slugify transformation\n return slugify(cleanName, { replaceDots: true });\n};\n"],"mappings":"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"}
@@ -1,4 +1,4 @@
1
- const require_useClientValidation = require('../../useClientValidation-CmYVGlLr.cjs');
1
+ const require_useClientValidation = require('../../useClientValidation-CdC7lEYP.cjs');
2
2
 
3
3
  //#region src/hooks/useClientValidation/index.ts
4
4
  /* v8 ignore stop */
@@ -1,2 +1,2 @@
1
- import { n as useClientValidation, t as clientValidationSchemaByName } from "../../useClientValidation-BQqwz628.cjs";
1
+ import { n as useClientValidation, t as clientValidationSchemaByName } from "../../useClientValidation-BvPDQmf6.cjs";
2
2
  export { clientValidationSchemaByName, useClientValidation };
@@ -1,2 +1,2 @@
1
- import { n as useClientValidation, t as clientValidationSchemaByName } from "../../useClientValidation-DJ4JuN_9.js";
1
+ import { n as useClientValidation, t as clientValidationSchemaByName } from "../../useClientValidation-Bg0q3Axc.js";
2
2
  export { clientValidationSchemaByName, useClientValidation };
@@ -1,4 +1,4 @@
1
- import { n as useClientValidation, t as clientValidationSchemaByName } from "../../useClientValidation-BnnscAEe.js";
1
+ import { n as useClientValidation, t as clientValidationSchemaByName } from "../../useClientValidation-BrTtRnqi.js";
2
2
 
3
3
  //#region src/hooks/useClientValidation/index.ts
4
4
  /* v8 ignore stop */
@@ -1,4 +1,4 @@
1
- const require_useController = require('../../useController-CkmO5CLh.cjs');
1
+ const require_useController = require('../../useController-BBxji1nQ.cjs');
2
2
 
3
3
  //#region src/hooks/useController/index.ts
4
4
  /* v8 ignore stop */
@@ -1,2 +1,2 @@
1
- import { n as UseControllerReturn, r as useController, t as UseControllerProps } from "../../useController-C_MZLZIp.cjs";
1
+ import { n as UseControllerReturn, r as useController, t as UseControllerProps } from "../../useController-BArZd2Vp.cjs";
2
2
  export { UseControllerProps, UseControllerReturn, useController };
@@ -1,2 +1,3 @@
1
- import { n as UseControllerReturn, r as useController, t as UseControllerProps } from "../../useController-hjpJQf0w.js";
1
+ import { n as UseControllerReturn, r as useController, t as UseControllerProps } from "../../useController-MVHJ7WFp.js";
2
+ import "../../index-CFBmva_r.js";
2
3
  export { UseControllerProps, UseControllerReturn, useController };
@@ -1,4 +1,4 @@
1
- import { t as useController } from "../../useController-CumIERks.js";
1
+ import { t as useController } from "../../useController-g0AlWM__.js";
2
2
 
3
3
  //#region src/hooks/useController/index.ts
4
4
  /* v8 ignore stop */
@@ -1,4 +1,4 @@
1
- const require_useFormContext = require('../../useFormContext-Bp0EODoO.cjs');
1
+ const require_useFormContext = require('../../useFormContext-CEr3zcL6.cjs');
2
2
 
3
3
  exports.checkFieldIsRequired = require_useFormContext.checkFieldIsRequired;
4
4
  exports.useFormContext = require_useFormContext.useFormContext;
@@ -1,2 +1,2 @@
1
- import { n as useFormContext, t as checkFieldIsRequired } from "../../useFormContext-B083Y-kw.cjs";
1
+ import { n as useFormContext, t as checkFieldIsRequired } from "../../useFormContext--yod5xzQ.cjs";
2
2
  export { checkFieldIsRequired, useFormContext };
@@ -1,4 +1,4 @@
1
1
  import "../../FormContext-C2_WMi_v.js";
2
- import { n as useFormContext, t as checkFieldIsRequired } from "../../useFormContext-B2TS6xq0.js";
2
+ import { n as useFormContext, t as checkFieldIsRequired } from "../../useFormContext-Cw6aAhos.js";
3
3
  import "../../index-BRLjimYW.js";
4
4
  export { checkFieldIsRequired, useFormContext };
@@ -1,3 +1,3 @@
1
- import { n as useFormContext, t as checkFieldIsRequired } from "../../useFormContext-JCm1UR_e.js";
1
+ import { n as useFormContext, t as checkFieldIsRequired } from "../../useFormContext-BFoXZNkp.js";
2
2
 
3
3
  export { checkFieldIsRequired, useFormContext };
@@ -1,4 +1,4 @@
1
- const require_FormContext = require('../../FormContext-Bb6d8hdG.cjs');
1
+ const require_FormContext = require('../../FormContext-Lw4YL4-B.cjs');
2
2
  let _heroui_input = require("@heroui/input");
3
3
 
4
4
  //#region src/hooks/useInput/index.ts
@@ -1,3 +1,3 @@
1
- const require_useInputValueDebounce = require('../../useInputValueDebounce-BcUyaS94.cjs');
1
+ const require_useInputValueDebounce = require('../../useInputValueDebounce-TiNR4jtG.cjs');
2
2
 
3
3
  exports.useInputValueDebounce = require_useInputValueDebounce.useInputValueDebounce;