@fuf-stack/uniform 1.13.0 → 1.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Checkboxes/index.cjs +1 -1
- package/dist/Checkboxes/index.d.cts +1 -1
- package/dist/Checkboxes/index.d.ts +1 -1
- package/dist/Checkboxes/index.js +1 -1
- package/dist/{Checkboxes-mc1ZItR5.cjs → Checkboxes-3Rg0gyfO.cjs} +2 -2
- package/dist/{Checkboxes-mc1ZItR5.cjs.map → Checkboxes-3Rg0gyfO.cjs.map} +1 -1
- package/dist/{Checkboxes-BQI2kTIb.js → Checkboxes-BfUtbKe-.js} +2 -2
- package/dist/{Checkboxes-BQI2kTIb.js.map → Checkboxes-BfUtbKe-.js.map} +1 -1
- package/dist/FieldArray/index.cjs +1 -1
- package/dist/FieldArray/index.d.cts +1 -1
- package/dist/FieldArray/index.d.ts +1 -1
- package/dist/FieldArray/index.js +1 -1
- package/dist/{FieldArray-D4eGdGXA.js → FieldArray-Bnv1_-Rl.js} +3 -3
- package/dist/{FieldArray-D4eGdGXA.js.map → FieldArray-Bnv1_-Rl.js.map} +1 -1
- package/dist/{FieldArray-CsAyIsw9.cjs → FieldArray-DgJgrLOY.cjs} +3 -3
- package/dist/{FieldArray-CsAyIsw9.cjs.map → FieldArray-DgJgrLOY.cjs.map} +1 -1
- package/dist/FieldCard/index.cjs +1 -1
- package/dist/FieldCard/index.d.cts +1 -1
- package/dist/FieldCard/index.d.ts +1 -1
- package/dist/FieldCard/index.js +1 -1
- package/dist/{FieldCard-BPQIqqW5.js → FieldCard-CLd4PaoX.js} +2 -2
- package/dist/{FieldCard-BPQIqqW5.js.map → FieldCard-CLd4PaoX.js.map} +1 -1
- package/dist/{FieldCard-CgWjzrRD.cjs → FieldCard-CeEnVxiB.cjs} +2 -2
- package/dist/{FieldCard-CgWjzrRD.cjs.map → FieldCard-CeEnVxiB.cjs.map} +1 -1
- package/dist/Form/index.d.cts +1 -1
- package/dist/Form/index.d.ts +1 -1
- package/dist/Grid/index.d.cts +1 -1
- package/dist/Grid/index.d.ts +1 -1
- package/dist/Input/index.cjs +1 -1
- package/dist/Input/index.d.cts +1 -1
- package/dist/Input/index.d.ts +1 -1
- package/dist/Input/index.js +1 -1
- package/dist/{Input-BUfOTtDR.js → Input-ChXItabV.js} +2 -2
- package/dist/{Input-BUfOTtDR.js.map → Input-ChXItabV.js.map} +1 -1
- package/dist/{Input-7TmTrrV7.cjs → Input-DlyrGFYf.cjs} +2 -2
- package/dist/{Input-7TmTrrV7.cjs.map → Input-DlyrGFYf.cjs.map} +1 -1
- package/dist/RadioBoxes/index.cjs +1 -1
- package/dist/RadioBoxes/index.d.cts +1 -1
- package/dist/RadioBoxes/index.d.ts +1 -1
- package/dist/RadioBoxes/index.js +1 -1
- package/dist/{RadioBoxes-CjxWldIR.cjs → RadioBoxes-ClDOhQkO.cjs} +6 -6
- package/dist/{RadioBoxes-CjxWldIR.cjs.map → RadioBoxes-ClDOhQkO.cjs.map} +1 -1
- package/dist/{RadioBoxes-Dpd71z1S.js → RadioBoxes-D6ULFGfd.js} +6 -6
- package/dist/{RadioBoxes-Dpd71z1S.js.map → RadioBoxes-D6ULFGfd.js.map} +1 -1
- package/dist/RadioTabs/index.cjs +1 -1
- package/dist/RadioTabs/index.d.cts +1 -1
- package/dist/RadioTabs/index.d.ts +1 -1
- package/dist/RadioTabs/index.js +1 -1
- package/dist/{RadioTabs-BA-EMFRc.cjs → RadioTabs-CgB0MmbK.cjs} +2 -2
- package/dist/{RadioTabs-BA-EMFRc.cjs.map → RadioTabs-CgB0MmbK.cjs.map} +1 -1
- package/dist/{RadioTabs-BZlC19z0.js → RadioTabs-eSB6OXD7.js} +2 -2
- package/dist/{RadioTabs-BZlC19z0.js.map → RadioTabs-eSB6OXD7.js.map} +1 -1
- package/dist/Radios/index.cjs +1 -1
- package/dist/Radios/index.d.cts +1 -1
- package/dist/Radios/index.d.ts +1 -1
- package/dist/Radios/index.js +1 -1
- package/dist/{Radios-ClBrO7QR.js → Radios-BXuyREKO.js} +6 -6
- package/dist/Radios-BXuyREKO.js.map +1 -0
- package/dist/{Radios-Bfxy-Vnf.cjs → Radios-DWsCLUVl.cjs} +6 -6
- package/dist/Radios-DWsCLUVl.cjs.map +1 -0
- package/dist/Select/index.cjs +1 -1
- package/dist/Select/index.d.cts +1 -1
- package/dist/Select/index.d.ts +1 -1
- package/dist/Select/index.js +1 -1
- package/dist/{Select-CdTgOiUU.cjs → Select-CTbXrAjL.cjs} +124 -93
- package/dist/Select-CTbXrAjL.cjs.map +1 -0
- package/dist/{Select-9MyYYGeZ.js → Select-Dk_K_Q0F.js} +125 -94
- package/dist/Select-Dk_K_Q0F.js.map +1 -0
- package/dist/Slider/index.cjs +1 -1
- package/dist/Slider/index.d.cts +1 -1
- package/dist/Slider/index.d.ts +1 -1
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-CK9n0ryX.cjs → Slider-ChGkOSJJ.cjs} +2 -2
- package/dist/{Slider-CK9n0ryX.cjs.map → Slider-ChGkOSJJ.cjs.map} +1 -1
- package/dist/{Slider-Cy5vz5as.js → Slider-DdF0ZBzn.js} +2 -2
- package/dist/{Slider-Cy5vz5as.js.map → Slider-DdF0ZBzn.js.map} +1 -1
- package/dist/SubmitButton/index.d.cts +1 -1
- package/dist/SubmitButton/index.d.ts +1 -1
- package/dist/Switch/index.cjs +1 -1
- package/dist/Switch/index.d.cts +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-s64WUP5i.js → Switch-DW9SOeIv.js} +2 -2
- package/dist/{Switch-s64WUP5i.js.map → Switch-DW9SOeIv.js.map} +1 -1
- package/dist/{Switch-BBhxgBHh.cjs → Switch-Lt61rKxf.cjs} +2 -2
- package/dist/{Switch-BBhxgBHh.cjs.map → Switch-Lt61rKxf.cjs.map} +1 -1
- package/dist/SwitchBox/index.cjs +1 -1
- package/dist/SwitchBox/index.d.cts +1 -1
- package/dist/SwitchBox/index.d.ts +1 -1
- package/dist/SwitchBox/index.js +1 -1
- package/dist/{SwitchBox-CMw1MGJ0.js → SwitchBox-9KAu4WWd.js} +2 -2
- package/dist/{SwitchBox-CMw1MGJ0.js.map → SwitchBox-9KAu4WWd.js.map} +1 -1
- package/dist/{SwitchBox-BwdvgHpG.cjs → SwitchBox-D-EI9Sl-.cjs} +2 -2
- package/dist/{SwitchBox-BwdvgHpG.cjs.map → SwitchBox-D-EI9Sl-.cjs.map} +1 -1
- package/dist/TextArea/index.cjs +1 -1
- package/dist/TextArea/index.d.cts +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-DTkDJr6g.js → TextArea-B0zYpNy-.js} +2 -2
- package/dist/{TextArea-DTkDJr6g.js.map → TextArea-B0zYpNy-.js.map} +1 -1
- package/dist/{TextArea-COe8XP7f.cjs → TextArea-DRSFdn5v.cjs} +2 -2
- package/dist/{TextArea-COe8XP7f.cjs.map → TextArea-DRSFdn5v.cjs.map} +1 -1
- package/dist/helpers/index.d.cts +2 -186
- package/dist/helpers/index.d.ts +2 -186
- package/dist/hooks/useClientValidation/index.d.cts +1 -1
- package/dist/hooks/useClientValidation/index.d.ts +1 -1
- package/dist/hooks/useController/index.cjs +1 -1
- package/dist/hooks/useController/index.d.cts +1 -1
- package/dist/hooks/useController/index.d.ts +1 -2
- package/dist/hooks/useController/index.js +1 -1
- package/dist/hooks/useFormContext/index.d.cts +1 -1
- package/dist/hooks/useFormContext/index.d.ts +1 -1
- package/dist/hooks/useUniformField/index.cjs +1 -1
- package/dist/hooks/useUniformField/index.d.cts +1 -1
- package/dist/hooks/useUniformField/index.d.ts +3 -3
- package/dist/hooks/useUniformField/index.js +1 -1
- package/dist/hooks/useUniformFieldArray/index.cjs +1 -1
- package/dist/hooks/useUniformFieldArray/index.d.cts +1 -1
- package/dist/hooks/useUniformFieldArray/index.d.ts +24 -4
- package/dist/hooks/useUniformFieldArray/index.js +1 -1
- package/dist/hooks/useWatchUserChange/index.cjs +1 -1
- package/dist/hooks/useWatchUserChange/index.d.cts +1 -1
- package/dist/hooks/useWatchUserChange/index.d.ts +1 -1
- package/dist/hooks/useWatchUserChange/index.js +1 -1
- package/dist/{index-OwPGP648.d.ts → index-BGQrBRyF.d.cts} +4 -4
- package/dist/{index-acwVBMcR.d.cts.map → index-BGQrBRyF.d.cts.map} +1 -1
- package/dist/{index-DsyY9X04.d.cts → index-BHMwBAFH.d.cts} +3 -3
- package/dist/{index-DsyY9X04.d.cts.map → index-BHMwBAFH.d.cts.map} +1 -1
- package/dist/{index-DtWIiEFa.d.cts → index-BM5ClMN4.d.ts} +38 -24
- package/dist/index-BM5ClMN4.d.ts.map +1 -0
- package/dist/index-BPjrrFuM.d.ts +186 -0
- package/dist/index-BPjrrFuM.d.ts.map +1 -0
- package/dist/{index-CXkSuHEL.d.ts → index-BQDEnYTq.d.ts} +3 -3
- package/dist/{index-CXkSuHEL.d.ts.map → index-BQDEnYTq.d.ts.map} +1 -1
- package/dist/{index-_njc33cQ.d.cts → index-BSZJQBCK.d.ts} +4 -4
- package/dist/{index-rK5GxEPh.d.ts.map → index-BSZJQBCK.d.ts.map} +1 -1
- package/dist/{index-Z0IxHoXS.d.ts → index-BTTo_ufh.d.ts} +3 -3
- package/dist/{index-Z0IxHoXS.d.ts.map → index-BTTo_ufh.d.ts.map} +1 -1
- package/dist/index-BTr_gid3.d.cts +186 -0
- package/dist/index-BTr_gid3.d.cts.map +1 -0
- package/dist/{index-DMVoX5pj.d.cts → index-BapBrgmV.d.cts} +48 -48
- package/dist/index-BapBrgmV.d.cts.map +1 -0
- package/dist/{index-TbDhDIfv.d.ts → index-BbA9HcNa.d.cts} +2 -2
- package/dist/{index-KgMMIPyM.d.cts.map → index-BbA9HcNa.d.cts.map} +1 -1
- package/dist/{index-DvB46QAb.d.ts → index-Bd-E0JM1.d.ts} +3 -3
- package/dist/{index-DvB46QAb.d.ts.map → index-Bd-E0JM1.d.ts.map} +1 -1
- package/dist/{index-Bd7H1tdb.d.cts → index-Bfk32Dl3.d.cts} +3 -3
- package/dist/{index-Bd7H1tdb.d.cts.map → index-Bfk32Dl3.d.cts.map} +1 -1
- package/dist/{index-BhqOFcsS.d.cts → index-Bs-1Pwc6.d.cts} +4 -4
- package/dist/{index-BhqOFcsS.d.cts.map → index-Bs-1Pwc6.d.cts.map} +1 -1
- package/dist/{index-D9VXD1rv.d.cts → index-BxV89x6q.d.cts} +21 -21
- package/dist/index-BxV89x6q.d.cts.map +1 -0
- package/dist/{index-CASoDHjE.d.cts → index-C3yzuYLc.d.cts} +21 -21
- package/dist/{index-CASoDHjE.d.cts.map → index-C3yzuYLc.d.cts.map} +1 -1
- package/dist/{index-JfAmWj81.d.cts → index-CCUQ-2Ic.d.cts} +34 -34
- package/dist/index-CCUQ-2Ic.d.cts.map +1 -0
- package/dist/{index-D3o2YTBb.d.ts → index-CJse-RZf.d.cts} +38 -38
- package/dist/index-CJse-RZf.d.cts.map +1 -0
- package/dist/{index-BFeKALeM.d.ts → index-CODzh0zX.d.ts} +6 -6
- package/dist/{index-BFeKALeM.d.ts.map → index-CODzh0zX.d.ts.map} +1 -1
- package/dist/{index--J1-cUWg.d.cts → index-CnIrK5L3.d.cts} +35 -35
- package/dist/{index--J1-cUWg.d.cts.map → index-CnIrK5L3.d.cts.map} +1 -1
- package/dist/{index-JdksqsGh.d.ts → index-CuTHt_2o.d.cts} +5 -5
- package/dist/{index-CrpdF1Xw.d.cts.map → index-CuTHt_2o.d.cts.map} +1 -1
- package/dist/{index-CPbrUN5A.d.ts → index-DGryaZXZ.d.ts} +21 -21
- package/dist/{index-CPbrUN5A.d.ts.map → index-DGryaZXZ.d.ts.map} +1 -1
- package/dist/{index-7C539UUH.d.cts → index-DLJiYqVE.d.cts} +6 -6
- package/dist/{index-7C539UUH.d.cts.map → index-DLJiYqVE.d.cts.map} +1 -1
- package/dist/{index-DEtF7ckd.d.ts → index-DMphDWRk.d.ts} +34 -34
- package/dist/index-DMphDWRk.d.ts.map +1 -0
- package/dist/{index-rK5GxEPh.d.ts → index-DN9Ke6Y8.d.cts} +6 -6
- package/dist/{index-_njc33cQ.d.cts.map → index-DN9Ke6Y8.d.cts.map} +1 -1
- package/dist/{index-_zWAtv8G.d.ts → index-DoGBvZ4J.d.ts} +35 -35
- package/dist/{index-_zWAtv8G.d.ts.map → index-DoGBvZ4J.d.ts.map} +1 -1
- package/dist/{index-DsuMjcQk.d.ts → index-DsSuY_wP.d.ts} +6 -6
- package/dist/{index-DsuMjcQk.d.ts.map → index-DsSuY_wP.d.ts.map} +1 -1
- package/dist/{index-acwVBMcR.d.cts → index-DvAmzIEe.d.ts} +4 -4
- package/dist/{index-OwPGP648.d.ts.map → index-DvAmzIEe.d.ts.map} +1 -1
- package/dist/{index-DMojDmML.d.ts → index-RiAo6yCB.d.ts} +48 -48
- package/dist/{index-DMojDmML.d.ts.map → index-RiAo6yCB.d.ts.map} +1 -1
- package/dist/{index-BNu0EV5x.d.cts → index-U0Jx25HO.d.cts} +3 -3
- package/dist/{index-BNu0EV5x.d.cts.map → index-U0Jx25HO.d.cts.map} +1 -1
- package/dist/{index-Cs-7Ptqc.d.cts → index-_mq7cbF5.d.cts} +3 -3
- package/dist/{index-Cs-7Ptqc.d.cts.map → index-_mq7cbF5.d.cts.map} +1 -1
- package/dist/{index-DCZwOjSs.d.cts → index-drMNLgtV.d.ts} +24 -24
- package/dist/index-drMNLgtV.d.ts.map +1 -0
- package/dist/index-eJFvyVyS.d.cts +278 -0
- package/dist/index-eJFvyVyS.d.cts.map +1 -0
- package/dist/{index-CrpdF1Xw.d.cts → index-hK6woeqR.d.ts} +5 -5
- package/dist/{index-JdksqsGh.d.ts.map → index-hK6woeqR.d.ts.map} +1 -1
- package/dist/{index-CVY05bZf.d.ts → index-pE9osud2.d.ts} +3 -3
- package/dist/{index-CVY05bZf.d.ts.map → index-pE9osud2.d.ts.map} +1 -1
- package/dist/{index-BHmMP-ps.d.ts → index-uNWK5Vb5.d.ts} +21 -21
- package/dist/{index-BHmMP-ps.d.ts.map → index-uNWK5Vb5.d.ts.map} +1 -1
- package/dist/{index-KgMMIPyM.d.cts → index-y2jgEqoM.d.ts} +3 -3
- package/dist/{index-TbDhDIfv.d.ts.map → index-y2jgEqoM.d.ts.map} +1 -1
- package/dist/index.cjs +16 -16
- package/dist/index.d.cts +24 -24
- package/dist/index.d.ts +24 -25
- package/dist/index.js +16 -16
- package/dist/partials/FieldCopyTestIdButton/index.d.cts +1 -1
- package/dist/partials/FieldCopyTestIdButton/index.d.ts +1 -1
- package/dist/partials/FieldValidationError/index.d.cts +1 -1
- package/dist/partials/FieldValidationError/index.d.ts +1 -1
- package/dist/{useClientValidation-Bg0q3Axc.d.ts → useClientValidation-Bv0yxTyV.d.ts} +1 -1
- package/dist/{useClientValidation-Bg0q3Axc.d.ts.map → useClientValidation-Bv0yxTyV.d.ts.map} +1 -1
- package/dist/{useClientValidation-BvPDQmf6.d.cts → useClientValidation-DSMw7f-t.d.cts} +1 -1
- package/dist/{useClientValidation-BvPDQmf6.d.cts.map → useClientValidation-DSMw7f-t.d.cts.map} +1 -1
- package/dist/{useController-BArZd2Vp.d.cts → useController-B-DhUPpA.d.cts} +3 -1
- package/dist/{useController-BArZd2Vp.d.cts.map → useController-B-DhUPpA.d.cts.map} +1 -1
- package/dist/{useController-MVHJ7WFp.d.ts → useController-Co8wbo-Y.d.ts} +3 -1
- package/dist/{useController-MVHJ7WFp.d.ts.map → useController-Co8wbo-Y.d.ts.map} +1 -1
- package/dist/{useController-BPDcwfTj.js → useController-QcOl0O0v.js} +5 -2
- package/dist/useController-QcOl0O0v.js.map +1 -0
- package/dist/{useController-DHRkSHem.cjs → useController-oCYPeezC.cjs} +5 -2
- package/dist/useController-oCYPeezC.cjs.map +1 -0
- package/dist/{useFormContext-B2TS6xq0.d.ts → useFormContext-B7ooPCfd.d.ts} +3 -3
- package/dist/useFormContext-B7ooPCfd.d.ts.map +1 -0
- package/dist/{useFormContext-n3WYgGkW.d.cts → useFormContext-DihY1N8O.d.cts} +3 -3
- package/dist/useFormContext-DihY1N8O.d.cts.map +1 -0
- package/dist/{useUniformField-CrEz5lkV.d.cts → useUniformField-8ODkBNpn.d.cts} +3 -3
- package/dist/{useUniformField-CrEz5lkV.d.cts.map → useUniformField-8ODkBNpn.d.cts.map} +1 -1
- package/dist/{useUniformField-D2NgevBI.js → useUniformField-C6oSAFa3.js} +2 -2
- package/dist/{useUniformField-D2NgevBI.js.map → useUniformField-C6oSAFa3.js.map} +1 -1
- package/dist/{useUniformField-Bzv-6MG1.d.ts → useUniformField-CJX0u3Ou.d.ts} +3 -3
- package/dist/{useUniformField-Bzv-6MG1.d.ts.map → useUniformField-CJX0u3Ou.d.ts.map} +1 -1
- package/dist/{useUniformField-CGiibqg4.cjs → useUniformField-Dd3AnpgE.cjs} +2 -2
- package/dist/{useUniformField-CGiibqg4.cjs.map → useUniformField-Dd3AnpgE.cjs.map} +1 -1
- package/dist/{useUniformFieldArray-Ct8jD7JJ.cjs → useUniformFieldArray-D93AUZI4.cjs} +2 -2
- package/dist/{useUniformFieldArray-Ct8jD7JJ.cjs.map → useUniformFieldArray-D93AUZI4.cjs.map} +1 -1
- package/dist/{useUniformFieldArray-B2-Bfl74.d.cts → useUniformFieldArray-DF83iIC1.d.cts} +4 -4
- package/dist/{useUniformFieldArray-B2-Bfl74.d.cts.map → useUniformFieldArray-DF83iIC1.d.cts.map} +1 -1
- package/dist/{useUniformFieldArray-jUCzsveX.d.ts → useUniformFieldArray-DFGgYtxz.d.ts} +4 -4
- package/dist/{useUniformFieldArray-jUCzsveX.d.ts.map → useUniformFieldArray-DFGgYtxz.d.ts.map} +1 -1
- package/dist/{useUniformFieldArray-DcoVYtqx.js → useUniformFieldArray-DNrmEXLg.js} +2 -2
- package/dist/{useUniformFieldArray-DcoVYtqx.js.map → useUniformFieldArray-DNrmEXLg.js.map} +1 -1
- package/dist/{useWatchUserChange-Bf5JKDJJ.d.ts → useWatchUserChange-DahNCPDG.d.cts} +3 -1
- package/dist/{useWatchUserChange-Br4Q7syM.d.cts.map → useWatchUserChange-DahNCPDG.d.cts.map} +1 -1
- package/dist/{useWatchUserChange-1ELFYX_F.js → useWatchUserChange-DyhUYlrN.js} +3 -1
- package/dist/useWatchUserChange-DyhUYlrN.js.map +1 -0
- package/dist/{useWatchUserChange-Br4Q7syM.d.cts → useWatchUserChange-JMU-vN92.d.ts} +3 -1
- package/dist/{useWatchUserChange-Bf5JKDJJ.d.ts.map → useWatchUserChange-JMU-vN92.d.ts.map} +1 -1
- package/dist/{useWatchUserChange-C1zOvSSU.cjs → useWatchUserChange-jivI5KIB.cjs} +3 -1
- package/dist/useWatchUserChange-jivI5KIB.cjs.map +1 -0
- package/package.json +6 -6
- package/dist/Radios-Bfxy-Vnf.cjs.map +0 -1
- package/dist/Radios-ClBrO7QR.js.map +0 -1
- package/dist/Select-9MyYYGeZ.js.map +0 -1
- package/dist/Select-CdTgOiUU.cjs.map +0 -1
- package/dist/helpers/index.d.cts.map +0 -1
- package/dist/helpers/index.d.ts.map +0 -1
- package/dist/index-CFBmva_r.d.ts +0 -1
- package/dist/index-CNFk4ygb.d.ts +0 -264
- package/dist/index-CNFk4ygb.d.ts.map +0 -1
- package/dist/index-D3o2YTBb.d.ts.map +0 -1
- package/dist/index-D9VXD1rv.d.cts.map +0 -1
- package/dist/index-DCZwOjSs.d.cts.map +0 -1
- package/dist/index-DEtF7ckd.d.ts.map +0 -1
- package/dist/index-DMVoX5pj.d.cts.map +0 -1
- package/dist/index-DtWIiEFa.d.cts.map +0 -1
- package/dist/index-JfAmWj81.d.cts.map +0 -1
- package/dist/index-lQ_hGQ08.d.cts +0 -1
- package/dist/useController-BPDcwfTj.js.map +0 -1
- package/dist/useController-DHRkSHem.cjs.map +0 -1
- package/dist/useFormContext-B2TS6xq0.d.ts.map +0 -1
- package/dist/useFormContext-n3WYgGkW.d.cts.map +0 -1
- package/dist/useWatchUserChange-1ELFYX_F.js.map +0 -1
- package/dist/useWatchUserChange-C1zOvSSU.cjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-pE9osud2.d.ts","names":[],"sources":["../src/SubmitButton/SubmitButton.tsx"],"sourcesContent":[],"mappings":";;;;;UAQiB,iBAAA;;;EAAA;EAIJ,QAAA,CAAA,EAAA,SAAA;EAIH;EAED,SAAA,CAAA,EAAA,MAAA;EAIA;EAAW,KAAA,CAAA,EANV,WAMU,CAAA,OAAA,CAAA;EAQd;EAAgB,IAAA,CAAA,EAZb,WAYa,CAAA,MAAA,CAAA;EAAA;EAAA,OAAA,CAAA,EAAA,OAAA;EAAA;EAAA,IAAA,CAAA,EARb,WAQa,CAAA,MAAA,CAAA;EAAA;EAAA,MAAA,CAAA,EAAA,MAAA;;;;;cAAhB;;;;;;;;;GASH,sBAAiB,kBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { t as InputValueTransform } from "./useInputValueTransform-Cc0qEsnS.js";
|
|
2
2
|
import { TVClassName, TVProps } from "@fuf-stack/pixel-utils";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime8 from "react/jsx-runtime";
|
|
5
|
+
import * as tailwind_variants210 from "tailwind-variants";
|
|
6
6
|
|
|
7
7
|
//#region src/Input/Input.d.ts
|
|
8
|
-
declare const inputVariants:
|
|
8
|
+
declare const inputVariants: tailwind_variants210.TVReturnType<{
|
|
9
9
|
[key: string]: {
|
|
10
|
-
[key: string]:
|
|
11
|
-
base?:
|
|
12
|
-
input?:
|
|
13
|
-
inputWrapper?:
|
|
14
|
-
clearButton?:
|
|
10
|
+
[key: string]: tailwind_variants210.ClassValue | {
|
|
11
|
+
base?: tailwind_variants210.ClassValue;
|
|
12
|
+
input?: tailwind_variants210.ClassValue;
|
|
13
|
+
inputWrapper?: tailwind_variants210.ClassValue;
|
|
14
|
+
clearButton?: tailwind_variants210.ClassValue;
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
17
|
} | {
|
|
18
18
|
[x: string]: {
|
|
19
|
-
[x: string]:
|
|
20
|
-
base?:
|
|
21
|
-
input?:
|
|
22
|
-
inputWrapper?:
|
|
23
|
-
clearButton?:
|
|
19
|
+
[x: string]: tailwind_variants210.ClassValue | {
|
|
20
|
+
base?: tailwind_variants210.ClassValue;
|
|
21
|
+
input?: tailwind_variants210.ClassValue;
|
|
22
|
+
inputWrapper?: tailwind_variants210.ClassValue;
|
|
23
|
+
clearButton?: tailwind_variants210.ClassValue;
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
26
|
} | {}, {
|
|
@@ -34,11 +34,11 @@ declare const inputVariants: tailwind_variants222.TVReturnType<{
|
|
|
34
34
|
inputWrapper: string;
|
|
35
35
|
}, undefined, {
|
|
36
36
|
[key: string]: {
|
|
37
|
-
[key: string]:
|
|
38
|
-
base?:
|
|
39
|
-
input?:
|
|
40
|
-
inputWrapper?:
|
|
41
|
-
clearButton?:
|
|
37
|
+
[key: string]: tailwind_variants210.ClassValue | {
|
|
38
|
+
base?: tailwind_variants210.ClassValue;
|
|
39
|
+
input?: tailwind_variants210.ClassValue;
|
|
40
|
+
inputWrapper?: tailwind_variants210.ClassValue;
|
|
41
|
+
clearButton?: tailwind_variants210.ClassValue;
|
|
42
42
|
};
|
|
43
43
|
};
|
|
44
44
|
} | {}, {
|
|
@@ -50,7 +50,7 @@ declare const inputVariants: tailwind_variants222.TVReturnType<{
|
|
|
50
50
|
input: string;
|
|
51
51
|
/** inner wrapper (HeroUI inputWrapper slot) */
|
|
52
52
|
inputWrapper: string;
|
|
53
|
-
},
|
|
53
|
+
}, tailwind_variants210.TVReturnType<unknown, {
|
|
54
54
|
/** wrapper around the whole input */
|
|
55
55
|
base: string;
|
|
56
56
|
/** clear button */
|
|
@@ -109,7 +109,7 @@ declare const Input: ({
|
|
|
109
109
|
startContent,
|
|
110
110
|
type,
|
|
111
111
|
...uniformFieldProps
|
|
112
|
-
}: InputProps) =>
|
|
112
|
+
}: InputProps) => react_jsx_runtime8.JSX.Element;
|
|
113
113
|
//#endregion
|
|
114
114
|
export { InputProps as n, Input as t };
|
|
115
|
-
//# sourceMappingURL=index-
|
|
115
|
+
//# sourceMappingURL=index-uNWK5Vb5.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-uNWK5Vb5.d.ts","names":[],"sources":["../src/Input/Input.tsx"],"sourcesContent":[],"mappings":";;;;;;;cAca,oCAAa;;mBAWxB,oBAAA,CAAA,UAAA;;MAXW,KAAA,CAAA,iCAWX;MAAA,YAAA,CAAA,iCAAA;;;;;;;;;;;;;;;;;EAXwB,WAAA,EAAA,MAAA;EAarB;EACA,KAAA,EAAA,MAAS;EAEG;EAIH,YAAA,EAAA,MAAA;CAQC,EAAA,SAAA,EAAA;EAEL,CAAA,GAAA,EAAA,MAAA,CAAA,EAAA;IAUO,CAAA,GAAA,EAAA,MAAA,CAAA,oCAAA;MAIH,IAAA,CAAA,iCAAA;MA5BsB,KAAA,CAAA,iCAAA;MAAY,YAAA,CAAA,iCAAA;MAyK/C,WAAA,CAAA,iCAAA;IArIc,CAAA;EAAA,CAAA;CAAA,GAAA,CAAA,CAAA,EAAA;EAAA;EAAA,IAAA,EAAA,MAAA;EAAA;EAAA,WAAA,EAAA,MAAA;EAAA;EAAA,KAAA,EAAA,MAAA;EAAA;EAYZ,YAAA,EAAA,MAAA;CAAU,mCAAA,CAAA,OAAA,EAAA;EAyHZ;;;;;;;;;KA5KI,YAAA,GAAe,eAAe;KAC9B,SAAA,GAAY,mBAAmB;UAEnB,UAAA,SAAmB;;;;cAItB;;;;;;;;eAQC;;UAEL;;;;;;;;;;iBAUO;;;;cAIH;;;;;;;cAQR;aAAS;;;;;;;;;;;GAYZ,eAAU,kBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as react_jsx_runtime11 from "react/jsx-runtime";
|
|
2
1
|
import { ReactNode } from "react";
|
|
2
|
+
import * as react_jsx_runtime9 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/Grid/Grid.d.ts
|
|
5
5
|
interface GridProps {
|
|
@@ -17,7 +17,7 @@ declare const Grid: ({
|
|
|
17
17
|
children,
|
|
18
18
|
className,
|
|
19
19
|
testId
|
|
20
|
-
}: GridProps) =>
|
|
20
|
+
}: GridProps) => react_jsx_runtime9.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { GridProps as n, Grid as t };
|
|
23
|
-
//# sourceMappingURL=index-
|
|
23
|
+
//# sourceMappingURL=index-y2jgEqoM.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-y2jgEqoM.d.ts","names":[],"sources":["../src/Grid/Grid.tsx"],"sourcesContent":[],"mappings":";;;;UAIiB,SAAA;;aAEJ;EAFI;EAYX,SAUL,CAAA,EAAA,MAAA;EAVa;EAAA,MAAA,CAAA,EAAA,MAAA;;;;;cAAR;;;;GAIH,cAAS,kBAAA,CAAA,GAAA,CAAA"}
|
package/dist/index.cjs
CHANGED
|
@@ -2,29 +2,29 @@ const require_FormContext = require('./FormContext-CeFKQmVH.cjs');
|
|
|
2
2
|
const require_helpers = require('./helpers-CncbgvW_.cjs');
|
|
3
3
|
const require_FieldCopyTestIdButton = require('./FieldCopyTestIdButton-DxJYKqrz.cjs');
|
|
4
4
|
const require_FieldValidationError = require('./FieldValidationError-A384-L3Y.cjs');
|
|
5
|
-
const require_useController = require('./useController-
|
|
5
|
+
const require_useController = require('./useController-oCYPeezC.cjs');
|
|
6
6
|
const require_useFormContext = require('./useFormContext-DJiJlfGJ.cjs');
|
|
7
7
|
const require_useInputValueTransform = require('./useInputValueTransform-DuhPVE4L.cjs');
|
|
8
|
-
const require_useUniformField = require('./useUniformField-
|
|
9
|
-
const require_Checkboxes = require('./Checkboxes-
|
|
10
|
-
const require_useUniformFieldArray = require('./useUniformFieldArray-
|
|
11
|
-
const require_FieldArray = require('./FieldArray-
|
|
8
|
+
const require_useUniformField = require('./useUniformField-Dd3AnpgE.cjs');
|
|
9
|
+
const require_Checkboxes = require('./Checkboxes-3Rg0gyfO.cjs');
|
|
10
|
+
const require_useUniformFieldArray = require('./useUniformFieldArray-D93AUZI4.cjs');
|
|
11
|
+
const require_FieldArray = require('./FieldArray-DgJgrLOY.cjs');
|
|
12
12
|
const require_Grid = require('./Grid-CRURvciu.cjs');
|
|
13
|
-
const require_FieldCard = require('./FieldCard-
|
|
13
|
+
const require_FieldCard = require('./FieldCard-CeEnVxiB.cjs');
|
|
14
14
|
const require_Form = require('./Form-Ca3RxssB.cjs');
|
|
15
15
|
const require_useInputValueDebounce = require('./useInputValueDebounce-KIKsvSLm.cjs');
|
|
16
|
-
const require_Input = require('./Input-
|
|
17
|
-
const require_RadioBoxes = require('./RadioBoxes-
|
|
18
|
-
const require_RadioTabs = require('./RadioTabs-
|
|
19
|
-
const require_Radios = require('./Radios-
|
|
20
|
-
const require_Select = require('./Select-
|
|
21
|
-
const require_Slider = require('./Slider-
|
|
16
|
+
const require_Input = require('./Input-DlyrGFYf.cjs');
|
|
17
|
+
const require_RadioBoxes = require('./RadioBoxes-ClDOhQkO.cjs');
|
|
18
|
+
const require_RadioTabs = require('./RadioTabs-CgB0MmbK.cjs');
|
|
19
|
+
const require_Radios = require('./Radios-DWsCLUVl.cjs');
|
|
20
|
+
const require_Select = require('./Select-CTbXrAjL.cjs');
|
|
21
|
+
const require_Slider = require('./Slider-ChGkOSJJ.cjs');
|
|
22
22
|
const require_SubmitButton = require('./SubmitButton-C6sgPR8K.cjs');
|
|
23
|
-
const require_Switch = require('./Switch-
|
|
24
|
-
const require_SwitchBox = require('./SwitchBox-
|
|
25
|
-
const require_TextArea = require('./TextArea-
|
|
23
|
+
const require_Switch = require('./Switch-Lt61rKxf.cjs');
|
|
24
|
+
const require_SwitchBox = require('./SwitchBox-D-EI9Sl-.cjs');
|
|
25
|
+
const require_TextArea = require('./TextArea-DRSFdn5v.cjs');
|
|
26
26
|
const require_useClientValidation = require('./useClientValidation-DzomULfo.cjs');
|
|
27
|
-
const require_useWatchUserChange = require('./useWatchUserChange-
|
|
27
|
+
const require_useWatchUserChange = require('./useWatchUserChange-jivI5KIB.cjs');
|
|
28
28
|
let _heroui_input = require("@heroui/input");
|
|
29
29
|
|
|
30
30
|
//#region src/index.ts
|
package/dist/index.d.cts
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { i as useInputValueTransform, n as UseInputValueTransformOptions, r as UseInputValueTransformReturn, t as InputValueTransform } from "./useInputValueTransform-BV8o0PMI.cjs";
|
|
2
|
-
import { n as Checkboxes, r as CheckboxesProps, t as CheckboxOption } from "./index-
|
|
3
|
-
import { i as FieldArrayProps, n as FieldArrayChildrenRenderFn, r as FieldArrayFeatures, t as FieldArray } from "./index-
|
|
4
|
-
import { n as FieldCardProps, r as fieldCardVariants, t as FieldCard } from "./index-
|
|
5
|
-
import { n as FormProps, t as Form } from "./index-
|
|
6
|
-
import { n as GridProps, t as Grid } from "./index-
|
|
7
|
-
import { n as InputProps, t as Input } from "./index-
|
|
8
|
-
import { n as RadioBoxes, r as RadioBoxesProps, t as radioBoxVariants } from "./index
|
|
9
|
-
import { n as RadioTabsProps, t as RadioTabs } from "./index-
|
|
10
|
-
import { n as RadiosProps, t as Radios } from "./index-
|
|
11
|
-
import { n as SelectProps, t as Select } from "./index-
|
|
12
|
-
import { n as SliderProps, t as Slider } from "./index-
|
|
13
|
-
import { n as SubmitButtonProps, t as SubmitButton } from "./index-
|
|
14
|
-
import { n as SwitchProps, t as Switch } from "./index-
|
|
15
|
-
import { n as SwitchBoxProps, r as switchBoxVariants, t as SwitchBox } from "./index-
|
|
16
|
-
import { n as TextAreaProps, t as TextArea } from "./index-
|
|
17
|
-
import {
|
|
18
|
-
import { n as useClientValidation, t as clientValidationSchemaByName } from "./useClientValidation-
|
|
19
|
-
import { n as UseControllerReturn, r as useController, t as UseControllerProps } from "./useController-
|
|
20
|
-
import { n as useFormContext, t as checkFieldIsRequired } from "./useFormContext-
|
|
2
|
+
import { n as Checkboxes, r as CheckboxesProps, t as CheckboxOption } from "./index-DLJiYqVE.cjs";
|
|
3
|
+
import { i as FieldArrayProps, n as FieldArrayChildrenRenderFn, r as FieldArrayFeatures, t as FieldArray } from "./index-Bs-1Pwc6.cjs";
|
|
4
|
+
import { n as FieldCardProps, r as fieldCardVariants, t as FieldCard } from "./index-DN9Ke6Y8.cjs";
|
|
5
|
+
import { n as FormProps, t as Form } from "./index-U0Jx25HO.cjs";
|
|
6
|
+
import { n as GridProps, t as Grid } from "./index-BbA9HcNa.cjs";
|
|
7
|
+
import { n as InputProps, t as Input } from "./index-BxV89x6q.cjs";
|
|
8
|
+
import { n as RadioBoxes, r as RadioBoxesProps, t as radioBoxVariants } from "./index-CnIrK5L3.cjs";
|
|
9
|
+
import { n as RadioTabsProps, t as RadioTabs } from "./index-BGQrBRyF.cjs";
|
|
10
|
+
import { n as RadiosProps, t as Radios } from "./index-CCUQ-2Ic.cjs";
|
|
11
|
+
import { n as SelectProps, t as Select } from "./index-eJFvyVyS.cjs";
|
|
12
|
+
import { n as SliderProps, t as Slider } from "./index-BapBrgmV.cjs";
|
|
13
|
+
import { n as SubmitButtonProps, t as SubmitButton } from "./index-Bfk32Dl3.cjs";
|
|
14
|
+
import { n as SwitchProps, t as Switch } from "./index-CJse-RZf.cjs";
|
|
15
|
+
import { n as SwitchBoxProps, r as switchBoxVariants, t as SwitchBox } from "./index-CuTHt_2o.cjs";
|
|
16
|
+
import { n as TextAreaProps, t as TextArea } from "./index-C3yzuYLc.cjs";
|
|
17
|
+
import { a as toFormFormat, c as createOptionValueConverter, i as nameToTestId, n as fromNullishString, o as toNullishString, r as isValueEmpty, s as toValidationFormat, t as flatArrayKey } from "./index-BTr_gid3.cjs";
|
|
18
|
+
import { n as useClientValidation, t as clientValidationSchemaByName } from "./useClientValidation-DSMw7f-t.cjs";
|
|
19
|
+
import { n as UseControllerReturn, r as useController, t as UseControllerProps } from "./useController-B-DhUPpA.cjs";
|
|
20
|
+
import { n as useFormContext, t as checkFieldIsRequired } from "./useFormContext-DihY1N8O.cjs";
|
|
21
21
|
import { t as useInput } from "./useInput--wjwIBc5.cjs";
|
|
22
22
|
import { n as UseInputValueDebounceReturn, r as useInputValueDebounce, t as UseInputValueDebounceOptions } from "./useInputValueDebounce-DI1C6oaU.cjs";
|
|
23
|
-
import { n as UseUniformFieldReturn, r as useUniformField, t as UseUniformFieldParams } from "./useUniformField-
|
|
24
|
-
import { n as
|
|
25
|
-
import { n as
|
|
26
|
-
import { n as
|
|
27
|
-
import { n as
|
|
23
|
+
import { n as UseUniformFieldReturn, r as useUniformField, t as UseUniformFieldParams } from "./useUniformField-8ODkBNpn.cjs";
|
|
24
|
+
import { n as FieldCopyTestIdButtonProps, t as FieldCopyTestIdButton } from "./index-BHMwBAFH.cjs";
|
|
25
|
+
import { n as FieldValidationErrorProps, t as FieldValidationError } from "./index-_mq7cbF5.cjs";
|
|
26
|
+
import { n as useWatchUserChange, t as UseWatchUserChangeOptions } from "./useWatchUserChange-DahNCPDG.cjs";
|
|
27
|
+
import { n as useUniformFieldArray, t as UseUniformFieldArrayProps } from "./useUniformFieldArray-DF83iIC1.cjs";
|
|
28
28
|
export { CheckboxOption, Checkboxes, CheckboxesProps, FieldArray, FieldArrayChildrenRenderFn, FieldArrayFeatures, FieldArrayProps, FieldCard, FieldCardProps, FieldCopyTestIdButton, FieldCopyTestIdButtonProps, FieldValidationError, FieldValidationErrorProps, Form, FormProps, Grid, GridProps, Input, InputProps, InputValueTransform, RadioBoxes, RadioBoxesProps, RadioTabs, RadioTabsProps, Radios, RadiosProps, Select, SelectProps, Slider, SliderProps, SubmitButton, SubmitButtonProps, Switch, SwitchBox, SwitchBoxProps, SwitchProps, TextArea, TextAreaProps, UseControllerProps, UseControllerReturn, UseInputValueDebounceOptions, UseInputValueDebounceReturn, UseInputValueTransformOptions, UseInputValueTransformReturn, UseUniformFieldArrayProps, UseUniformFieldParams, UseUniformFieldReturn, UseWatchUserChangeOptions, checkFieldIsRequired, clientValidationSchemaByName, createOptionValueConverter, fieldCardVariants, flatArrayKey, fromNullishString, isValueEmpty, nameToTestId, radioBoxVariants, switchBoxVariants, toFormFormat, toNullishString, toValidationFormat, useClientValidation, useController, useFormContext, useInput, useInputValueDebounce, useInputValueTransform, useUniformField, useUniformFieldArray, useWatchUserChange };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,31 +1,30 @@
|
|
|
1
1
|
import { i as useInputValueTransform, n as UseInputValueTransformOptions, r as UseInputValueTransformReturn, t as InputValueTransform } from "./useInputValueTransform-Cc0qEsnS.js";
|
|
2
|
-
import { n as Checkboxes, r as CheckboxesProps, t as CheckboxOption } from "./index-
|
|
3
|
-
import { i as FieldArrayProps, n as FieldArrayChildrenRenderFn, r as FieldArrayFeatures, t as FieldArray } from "./index-
|
|
4
|
-
import { n as FieldCardProps, r as fieldCardVariants, t as FieldCard } from "./index-
|
|
2
|
+
import { n as Checkboxes, r as CheckboxesProps, t as CheckboxOption } from "./index-DsSuY_wP.js";
|
|
3
|
+
import { i as FieldArrayProps, n as FieldArrayChildrenRenderFn, r as FieldArrayFeatures, t as FieldArray } from "./index-CODzh0zX.js";
|
|
4
|
+
import { n as FieldCardProps, r as fieldCardVariants, t as FieldCard } from "./index-BSZJQBCK.js";
|
|
5
5
|
import "./FormContext-C2_WMi_v.js";
|
|
6
|
-
import { n as FormProps, t as Form } from "./index-
|
|
7
|
-
import { n as GridProps, t as Grid } from "./index-
|
|
8
|
-
import { n as InputProps, t as Input } from "./index-
|
|
9
|
-
import { n as RadioBoxes, r as RadioBoxesProps, t as radioBoxVariants } from "./index-
|
|
10
|
-
import { n as RadioTabsProps, t as RadioTabs } from "./index-
|
|
11
|
-
import { n as RadiosProps, t as Radios } from "./index-
|
|
12
|
-
import { n as SelectProps, t as Select } from "./index-
|
|
13
|
-
import { n as SliderProps, t as Slider } from "./index-
|
|
14
|
-
import { n as SubmitButtonProps, t as SubmitButton } from "./index-
|
|
15
|
-
import { n as SwitchProps, t as Switch } from "./index-
|
|
16
|
-
import { n as SwitchBoxProps, r as switchBoxVariants, t as SwitchBox } from "./index-
|
|
17
|
-
import { n as TextAreaProps, t as TextArea } from "./index-
|
|
18
|
-
import {
|
|
19
|
-
import { n as useClientValidation, t as clientValidationSchemaByName } from "./useClientValidation-
|
|
20
|
-
import { n as UseControllerReturn, r as useController, t as UseControllerProps } from "./useController-
|
|
21
|
-
import "./
|
|
22
|
-
import { n as useFormContext, t as checkFieldIsRequired } from "./useFormContext-B2TS6xq0.js";
|
|
6
|
+
import { n as FormProps, t as Form } from "./index-Bd-E0JM1.js";
|
|
7
|
+
import { n as GridProps, t as Grid } from "./index-y2jgEqoM.js";
|
|
8
|
+
import { n as InputProps, t as Input } from "./index-uNWK5Vb5.js";
|
|
9
|
+
import { n as RadioBoxes, r as RadioBoxesProps, t as radioBoxVariants } from "./index-DoGBvZ4J.js";
|
|
10
|
+
import { n as RadioTabsProps, t as RadioTabs } from "./index-DvAmzIEe.js";
|
|
11
|
+
import { n as RadiosProps, t as Radios } from "./index-DMphDWRk.js";
|
|
12
|
+
import { n as SelectProps, t as Select } from "./index-BM5ClMN4.js";
|
|
13
|
+
import { n as SliderProps, t as Slider } from "./index-RiAo6yCB.js";
|
|
14
|
+
import { n as SubmitButtonProps, t as SubmitButton } from "./index-pE9osud2.js";
|
|
15
|
+
import { n as SwitchProps, t as Switch } from "./index-drMNLgtV.js";
|
|
16
|
+
import { n as SwitchBoxProps, r as switchBoxVariants, t as SwitchBox } from "./index-hK6woeqR.js";
|
|
17
|
+
import { n as TextAreaProps, t as TextArea } from "./index-DGryaZXZ.js";
|
|
18
|
+
import { a as toFormFormat, c as createOptionValueConverter, i as nameToTestId, n as fromNullishString, o as toNullishString, r as isValueEmpty, s as toValidationFormat, t as flatArrayKey } from "./index-BPjrrFuM.js";
|
|
19
|
+
import { n as useClientValidation, t as clientValidationSchemaByName } from "./useClientValidation-Bv0yxTyV.js";
|
|
20
|
+
import { n as UseControllerReturn, r as useController, t as UseControllerProps } from "./useController-Co8wbo-Y.js";
|
|
21
|
+
import { n as useFormContext, t as checkFieldIsRequired } from "./useFormContext-B7ooPCfd.js";
|
|
23
22
|
import "./index-BRLjimYW.js";
|
|
24
23
|
import { t as useInput } from "./useInput-BCdeYOOg.js";
|
|
25
24
|
import { n as UseInputValueDebounceReturn, r as useInputValueDebounce, t as UseInputValueDebounceOptions } from "./useInputValueDebounce-fhmVn1aO.js";
|
|
26
|
-
import { n as UseUniformFieldReturn, r as useUniformField, t as UseUniformFieldParams } from "./useUniformField-
|
|
27
|
-
import { n as
|
|
28
|
-
import { n as
|
|
29
|
-
import { n as
|
|
30
|
-
import { n as
|
|
25
|
+
import { n as UseUniformFieldReturn, r as useUniformField, t as UseUniformFieldParams } from "./useUniformField-CJX0u3Ou.js";
|
|
26
|
+
import { n as FieldCopyTestIdButtonProps, t as FieldCopyTestIdButton } from "./index-BQDEnYTq.js";
|
|
27
|
+
import { n as FieldValidationErrorProps, t as FieldValidationError } from "./index-BTTo_ufh.js";
|
|
28
|
+
import { n as useWatchUserChange, t as UseWatchUserChangeOptions } from "./useWatchUserChange-JMU-vN92.js";
|
|
29
|
+
import { n as useUniformFieldArray, t as UseUniformFieldArrayProps } from "./useUniformFieldArray-DFGgYtxz.js";
|
|
31
30
|
export { CheckboxOption, Checkboxes, CheckboxesProps, FieldArray, FieldArrayChildrenRenderFn, FieldArrayFeatures, FieldArrayProps, FieldCard, FieldCardProps, FieldCopyTestIdButton, FieldCopyTestIdButtonProps, FieldValidationError, FieldValidationErrorProps, Form, FormProps, Grid, GridProps, Input, InputProps, InputValueTransform, RadioBoxes, RadioBoxesProps, RadioTabs, RadioTabsProps, Radios, RadiosProps, Select, SelectProps, Slider, SliderProps, SubmitButton, SubmitButtonProps, Switch, SwitchBox, SwitchBoxProps, SwitchProps, TextArea, TextAreaProps, UseControllerProps, UseControllerReturn, UseInputValueDebounceOptions, UseInputValueDebounceReturn, UseInputValueTransformOptions, UseInputValueTransformReturn, UseUniformFieldArrayProps, UseUniformFieldParams, UseUniformFieldReturn, UseWatchUserChangeOptions, checkFieldIsRequired, clientValidationSchemaByName, createOptionValueConverter, fieldCardVariants, flatArrayKey, fromNullishString, isValueEmpty, nameToTestId, radioBoxVariants, switchBoxVariants, toFormFormat, toNullishString, toValidationFormat, useClientValidation, useController, useFormContext, useInput, useInputValueDebounce, useInputValueTransform, useUniformField, useUniformFieldArray, useWatchUserChange };
|
package/dist/index.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { a as toFormFormat, c as createOptionValueConverter, i as nameToTestId, n as fromNullishString, o as toNullishString, r as isValueEmpty, s as toValidationFormat, t as flatArrayKey } from "./helpers-D3A5d3M1.js";
|
|
2
2
|
import { n as FieldCopyTestIdButton_default } from "./FieldCopyTestIdButton-D9f1B-VS.js";
|
|
3
3
|
import { n as FieldValidationError_default } from "./FieldValidationError-BYwitb_B.js";
|
|
4
|
-
import { t as useController } from "./useController-
|
|
4
|
+
import { t as useController } from "./useController-QcOl0O0v.js";
|
|
5
5
|
import { n as useFormContext, t as checkFieldIsRequired } from "./useFormContext-UFBqUfOr.js";
|
|
6
6
|
import { t as useInput } from "./useInput-DZ6KGBxw.js";
|
|
7
7
|
import { t as useInputValueTransform } from "./useInputValueTransform-CMNC21vX.js";
|
|
8
|
-
import { t as useUniformField } from "./useUniformField-
|
|
9
|
-
import { n as Checkboxes_default } from "./Checkboxes-
|
|
10
|
-
import { t as useUniformFieldArray } from "./useUniformFieldArray-
|
|
11
|
-
import { n as FieldArray_default } from "./FieldArray-
|
|
8
|
+
import { t as useUniformField } from "./useUniformField-C6oSAFa3.js";
|
|
9
|
+
import { n as Checkboxes_default } from "./Checkboxes-BfUtbKe-.js";
|
|
10
|
+
import { t as useUniformFieldArray } from "./useUniformFieldArray-DNrmEXLg.js";
|
|
11
|
+
import { n as FieldArray_default } from "./FieldArray-Bnv1_-Rl.js";
|
|
12
12
|
import { n as Grid_default } from "./Grid-LRjQlZms.js";
|
|
13
|
-
import { n as fieldCardVariants, t as FieldCard_default } from "./FieldCard-
|
|
13
|
+
import { n as fieldCardVariants, t as FieldCard_default } from "./FieldCard-CLd4PaoX.js";
|
|
14
14
|
import { n as Form_default } from "./Form-B7bv9fDO.js";
|
|
15
15
|
import { t as useInputValueDebounce } from "./useInputValueDebounce-D9wArTKz.js";
|
|
16
|
-
import { n as Input_default } from "./Input-
|
|
17
|
-
import { n as RadioBoxes_default, r as radioBoxVariants } from "./RadioBoxes-
|
|
18
|
-
import { n as RadioTabs_default } from "./RadioTabs-
|
|
19
|
-
import { n as Radios_default } from "./Radios-
|
|
20
|
-
import { n as Select_default } from "./Select-
|
|
21
|
-
import { n as Slider_default } from "./Slider-
|
|
16
|
+
import { n as Input_default } from "./Input-ChXItabV.js";
|
|
17
|
+
import { n as RadioBoxes_default, r as radioBoxVariants } from "./RadioBoxes-D6ULFGfd.js";
|
|
18
|
+
import { n as RadioTabs_default } from "./RadioTabs-eSB6OXD7.js";
|
|
19
|
+
import { n as Radios_default } from "./Radios-BXuyREKO.js";
|
|
20
|
+
import { n as Select_default } from "./Select-Dk_K_Q0F.js";
|
|
21
|
+
import { n as Slider_default } from "./Slider-DdF0ZBzn.js";
|
|
22
22
|
import { n as SubmitButton_default } from "./SubmitButton-BrbHJcb4.js";
|
|
23
|
-
import { n as Switch_default } from "./Switch-
|
|
24
|
-
import { n as SwitchBox_default, r as switchBoxVariants } from "./SwitchBox-
|
|
25
|
-
import { n as TextArea_default } from "./TextArea-
|
|
23
|
+
import { n as Switch_default } from "./Switch-DW9SOeIv.js";
|
|
24
|
+
import { n as SwitchBox_default, r as switchBoxVariants } from "./SwitchBox-9KAu4WWd.js";
|
|
25
|
+
import { n as TextArea_default } from "./TextArea-B0zYpNy-.js";
|
|
26
26
|
import { n as useClientValidation, t as clientValidationSchemaByName } from "./useClientValidation-C6Daq53C.js";
|
|
27
|
-
import { t as useWatchUserChange } from "./useWatchUserChange-
|
|
27
|
+
import { t as useWatchUserChange } from "./useWatchUserChange-DyhUYlrN.js";
|
|
28
28
|
|
|
29
29
|
//#region src/index.ts
|
|
30
30
|
/* v8 ignore stop */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as FieldCopyTestIdButtonProps, t as FieldCopyTestIdButton } from "../../index-
|
|
1
|
+
import { n as FieldCopyTestIdButtonProps, t as FieldCopyTestIdButton } from "../../index-BHMwBAFH.cjs";
|
|
2
2
|
export { FieldCopyTestIdButton, FieldCopyTestIdButton as default, FieldCopyTestIdButtonProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as FieldCopyTestIdButtonProps, t as FieldCopyTestIdButton } from "../../index-
|
|
1
|
+
import { n as FieldCopyTestIdButtonProps, t as FieldCopyTestIdButton } from "../../index-BQDEnYTq.js";
|
|
2
2
|
export { FieldCopyTestIdButton, FieldCopyTestIdButton as default, FieldCopyTestIdButtonProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as FieldValidationErrorProps, t as FieldValidationError } from "../../index-
|
|
1
|
+
import { n as FieldValidationErrorProps, t as FieldValidationError } from "../../index-_mq7cbF5.cjs";
|
|
2
2
|
export { FieldValidationError, FieldValidationError as default, FieldValidationErrorProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as FieldValidationErrorProps, t as FieldValidationError } from "../../index-
|
|
1
|
+
import { n as FieldValidationErrorProps, t as FieldValidationError } from "../../index-BTTo_ufh.js";
|
|
2
2
|
export { FieldValidationError, FieldValidationError as default, FieldValidationErrorProps };
|
|
@@ -147,4 +147,4 @@ declare const useClientValidation: <TData = unknown>(data: TData | null | undefi
|
|
|
147
147
|
declare const clientValidationSchemaByName: <T extends VetoTypeAny>(name: string, fieldSchema: T) => _fuf_stack_veto_dist_types_d_CNPgNK_V0.Z;
|
|
148
148
|
//#endregion
|
|
149
149
|
export { useClientValidation as n, clientValidationSchemaByName as t };
|
|
150
|
-
//# sourceMappingURL=useClientValidation-
|
|
150
|
+
//# sourceMappingURL=useClientValidation-Bv0yxTyV.d.ts.map
|
package/dist/{useClientValidation-Bg0q3Axc.d.ts.map → useClientValidation-Bv0yxTyV.d.ts.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useClientValidation-
|
|
1
|
+
{"version":3,"file":"useClientValidation-Bv0yxTyV.d.ts","names":[],"sources":["../src/hooks/useClientValidation/useClientValidation.ts"],"sourcesContent":[],"mappings":";;;;;;;;AAkEA;;;;;AAkIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAlIa,6CACL,gDACgB,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgIrB,yCAA0C,wCAExC,MAAC,sCAAA,CAAA"}
|
|
@@ -147,4 +147,4 @@ declare const useClientValidation: <TData = unknown>(data: TData | null | undefi
|
|
|
147
147
|
declare const clientValidationSchemaByName: <T extends VetoTypeAny>(name: string, fieldSchema: T) => _fuf_stack_veto_dist_types_d_CNPgNK_V0.Z;
|
|
148
148
|
//#endregion
|
|
149
149
|
export { useClientValidation as n, clientValidationSchemaByName as t };
|
|
150
|
-
//# sourceMappingURL=useClientValidation-
|
|
150
|
+
//# sourceMappingURL=useClientValidation-DSMw7f-t.d.cts.map
|
package/dist/{useClientValidation-BvPDQmf6.d.cts.map → useClientValidation-DSMw7f-t.d.cts.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useClientValidation-
|
|
1
|
+
{"version":3,"file":"useClientValidation-DSMw7f-t.d.cts","names":[],"sources":["../src/hooks/useClientValidation/useClientValidation.ts"],"sourcesContent":[],"mappings":";;;;;;;;AAkEA;;;;;AAkIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAlIa,6CACL,gDACgB,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgIrB,yCAA0C,wCAExC,MAAC,sCAAA,CAAA"}
|
|
@@ -19,6 +19,8 @@ interface UseControllerReturn<TFieldValues extends object = object> {
|
|
|
19
19
|
* 3. Handles both direct value changes and React synthetic events
|
|
20
20
|
* 4. Maintains the same API as react-hook-form's useController
|
|
21
21
|
* 5. Notifies UniformContext's userChange listeners on field changes (enables useWatchUserChange hook)
|
|
22
|
+
* 6. No-op when value unchanged: onChange is ignored if the new value equals the current value
|
|
23
|
+
* (prevents unnecessary re-renders and spurious useWatchUserChange triggers)
|
|
22
24
|
*
|
|
23
25
|
* This enables consistent handling of empty/null values while keeping a clean API
|
|
24
26
|
* for form inputs that expect string values.
|
|
@@ -28,4 +30,4 @@ interface UseControllerReturn<TFieldValues extends object = object> {
|
|
|
28
30
|
declare const useController: <TFieldValues extends object = object>(props: UseControllerProps$1<TFieldValues>) => UseControllerReturn<TFieldValues>;
|
|
29
31
|
//#endregion
|
|
30
32
|
export { UseControllerReturn as n, useController as r, UseControllerProps$1 as t };
|
|
31
|
-
//# sourceMappingURL=useController-
|
|
33
|
+
//# sourceMappingURL=useController-B-DhUPpA.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useController-
|
|
1
|
+
{"version":3,"file":"useController-B-DhUPpA.d.cts","names":[],"sources":["../src/hooks/useController/useController.ts"],"sourcesContent":[],"mappings":";;;KAaY,6DACV,mBAAsB;UAEP;EAHL,KAAA,EAIH,IAJG,CAIE,qBAJgB,CAIM,YAJN,CACN,EAAA,UAAA,GAAtB,OAAA,CAAA,GAAA;IAEe,QAAA,EAAA,CAAA,GAAA,KAAmB,EAAA,GAAA,EAAA,EAAA,GAAA,IAAA;IACA,KAAA,EAAA,MAAA;EAAtB,CAAA;EAAL,SAAA,EAMI,kBANJ,CAMuB,YANvB,CAAA;EAMuB,UAAA,EAClB,oBADkB;;;;AAqBhC;;;;;;;;;;;;;;;cAAa,6DACJ,qBAAmB,kBACzB,oBAAoB"}
|
|
@@ -19,6 +19,8 @@ interface UseControllerReturn<TFieldValues extends object = object> {
|
|
|
19
19
|
* 3. Handles both direct value changes and React synthetic events
|
|
20
20
|
* 4. Maintains the same API as react-hook-form's useController
|
|
21
21
|
* 5. Notifies UniformContext's userChange listeners on field changes (enables useWatchUserChange hook)
|
|
22
|
+
* 6. No-op when value unchanged: onChange is ignored if the new value equals the current value
|
|
23
|
+
* (prevents unnecessary re-renders and spurious useWatchUserChange triggers)
|
|
22
24
|
*
|
|
23
25
|
* This enables consistent handling of empty/null values while keeping a clean API
|
|
24
26
|
* for form inputs that expect string values.
|
|
@@ -28,4 +30,4 @@ interface UseControllerReturn<TFieldValues extends object = object> {
|
|
|
28
30
|
declare const useController$1: <TFieldValues extends object = object>(props: UseControllerProps$1<TFieldValues>) => UseControllerReturn<TFieldValues>;
|
|
29
31
|
//#endregion
|
|
30
32
|
export { UseControllerReturn as n, useController$1 as r, UseControllerProps$1 as t };
|
|
31
|
-
//# sourceMappingURL=useController-
|
|
33
|
+
//# sourceMappingURL=useController-Co8wbo-Y.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useController-
|
|
1
|
+
{"version":3,"file":"useController-Co8wbo-Y.d.ts","names":[],"sources":["../src/hooks/useController/useController.ts"],"sourcesContent":[],"mappings":";;;KAaY,6DACV,mBAAsB;UAEP;EAHL,KAAA,EAIH,IAJG,CAIE,qBAJgB,CAIM,YAJN,CACN,EAAA,UAAA,GAAtB,OAAA,CAAA,GAAA;IAEe,QAAA,EAAA,CAAA,GAAA,KAAmB,EAAA,GAAA,EAAA,EAAA,GAAA,IAAA;IACA,KAAA,EAAA,MAAA;EAAtB,CAAA;EAAL,SAAA,EAMI,kBANJ,CAMuB,YANvB,CAAA;EAMuB,UAAA,EAClB,oBADkB;;;;AAqBhC;;;;;;;;;;;;;;;cAAa,+DACJ,qBAAmB,kBACzB,oBAAoB"}
|
|
@@ -13,6 +13,8 @@ import { useController } from "react-hook-form";
|
|
|
13
13
|
* 3. Handles both direct value changes and React synthetic events
|
|
14
14
|
* 4. Maintains the same API as react-hook-form's useController
|
|
15
15
|
* 5. Notifies UniformContext's userChange listeners on field changes (enables useWatchUserChange hook)
|
|
16
|
+
* 6. No-op when value unchanged: onChange is ignored if the new value equals the current value
|
|
17
|
+
* (prevents unnecessary re-renders and spurious useWatchUserChange triggers)
|
|
16
18
|
*
|
|
17
19
|
* This enables consistent handling of empty/null values while keeping a clean API
|
|
18
20
|
* for form inputs that expect string values.
|
|
@@ -28,8 +30,9 @@ const useController$1 = (props) => {
|
|
|
28
30
|
onChange: (...event) => {
|
|
29
31
|
const value = event[0]?.target?.value ?? event[0];
|
|
30
32
|
const formattedValue = value === "" ? "" : toNullishString(value);
|
|
33
|
+
if (formattedValue === field.value) return;
|
|
31
34
|
field.onChange(formattedValue);
|
|
32
|
-
userChange?.notify(field.name,
|
|
35
|
+
userChange?.notify(field.name, value);
|
|
33
36
|
},
|
|
34
37
|
value: fromNullishString(field.value)
|
|
35
38
|
},
|
|
@@ -40,4 +43,4 @@ const useController$1 = (props) => {
|
|
|
40
43
|
|
|
41
44
|
//#endregion
|
|
42
45
|
export { useController$1 as t };
|
|
43
|
-
//# sourceMappingURL=useController-
|
|
46
|
+
//# sourceMappingURL=useController-QcOl0O0v.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useController-QcOl0O0v.js","names":["useController","useRHFController"],"sources":["../src/hooks/useController/useController.ts"],"sourcesContent":["import type {\n ControllerFieldState,\n ControllerRenderProps,\n UseControllerProps as RHFUseControllerProps,\n UseFormStateReturn,\n} from 'react-hook-form';\n\nimport { useContext } from 'react';\nimport { useController as useRHFController } from 'react-hook-form';\n\nimport { UniformContext } from '../../Form/subcomponents/FormContext';\nimport { fromNullishString, toNullishString } from '../../helpers';\n\nexport type UseControllerProps<TFieldValues extends object = object> =\n RHFUseControllerProps<TFieldValues>;\n\nexport interface UseControllerReturn<TFieldValues extends object = object> {\n field: Omit<ControllerRenderProps<TFieldValues>, 'onChange' | 'value'> & {\n // Using any[] to support both direct value changes and React synthetic events\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n onChange: (...event: any[]) => void;\n value: string;\n };\n formState: UseFormStateReturn<TFieldValues>;\n fieldState: ControllerFieldState;\n}\n\n/**\n * A wrapper around react-hook-form's useController that transparently handles nullish string conversions.\n *\n * Key features:\n * 1. Empty strings ('') in the UI are stored as null in form state\n * 2. Null/undefined values in form state are displayed as empty strings in the UI\n * 3. Handles both direct value changes and React synthetic events\n * 4. Maintains the same API as react-hook-form's useController\n * 5. Notifies UniformContext's userChange listeners on field changes (enables useWatchUserChange hook)\n * 6. No-op when value unchanged: onChange is ignored if the new value equals the current value\n * (prevents unnecessary re-renders and spurious useWatchUserChange triggers)\n *\n * This enables consistent handling of empty/null values while keeping a clean API\n * for form inputs that expect string values.\n *\n * @see https://react-hook-form.com/docs/usecontroller\n */\nexport const useController = <TFieldValues extends object = object>(\n props: UseControllerProps<TFieldValues>,\n): UseControllerReturn<TFieldValues> => {\n const { field, formState, fieldState } = useRHFController(props);\n const { userChange } = useContext(UniformContext);\n\n return {\n field: {\n ...field,\n // Handles both direct values (onChange(\"value\")) and events (onChange(event))\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n onChange: (...event: any[]) => {\n const value = event[0]?.target?.value ?? event[0];\n const formattedValue = value === '' ? '' : toNullishString(value);\n\n // Skip if value hasn't changed (e.g., user re-selects same option)\n // We compare formattedValue (the new value after nullish conversion) with\n // field.value (the current stored value, also in nullish format)\n if (formattedValue === field.value) {\n return;\n }\n\n // Update form state first\n field.onChange(formattedValue);\n\n // Then notify userChange listeners (for useWatchUserChange hook)\n // This ensures getValues() in listeners returns the updated value\n // Guard against undefined userChange (when used outside FormProvider)\n // NOTE: We notify with the original value (not formattedValue) so that\n // listeners receive the actual value (false, 0, null) instead of marker\n // strings like '__FALSE__', '__ZERO__', '__NULL__'\n userChange?.notify(field.name, value);\n },\n // Convert null/undefined to empty string for UI display\n value: fromNullishString(field.value) as string,\n },\n formState,\n fieldState,\n };\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AA4CA,MAAaA,mBACX,UACsC;CACtC,MAAM,EAAE,OAAO,WAAW,eAAeC,cAAiB,MAAM;CAChE,MAAM,EAAE,eAAe,WAAW,eAAe;AAEjD,QAAO;EACL,OAAO;GACL,GAAG;GAGH,WAAW,GAAG,UAAiB;IAC7B,MAAM,QAAQ,MAAM,IAAI,QAAQ,SAAS,MAAM;IAC/C,MAAM,iBAAiB,UAAU,KAAK,KAAK,gBAAgB,MAAM;AAKjE,QAAI,mBAAmB,MAAM,MAC3B;AAIF,UAAM,SAAS,eAAe;AAQ9B,gBAAY,OAAO,MAAM,MAAM,MAAM;;GAGvC,OAAO,kBAAkB,MAAM,MAAM;GACtC;EACD;EACA;EACD"}
|
|
@@ -13,6 +13,8 @@ let react_hook_form = require("react-hook-form");
|
|
|
13
13
|
* 3. Handles both direct value changes and React synthetic events
|
|
14
14
|
* 4. Maintains the same API as react-hook-form's useController
|
|
15
15
|
* 5. Notifies UniformContext's userChange listeners on field changes (enables useWatchUserChange hook)
|
|
16
|
+
* 6. No-op when value unchanged: onChange is ignored if the new value equals the current value
|
|
17
|
+
* (prevents unnecessary re-renders and spurious useWatchUserChange triggers)
|
|
16
18
|
*
|
|
17
19
|
* This enables consistent handling of empty/null values while keeping a clean API
|
|
18
20
|
* for form inputs that expect string values.
|
|
@@ -28,8 +30,9 @@ const useController = (props) => {
|
|
|
28
30
|
onChange: (...event) => {
|
|
29
31
|
const value = event[0]?.target?.value ?? event[0];
|
|
30
32
|
const formattedValue = value === "" ? "" : require_helpers.toNullishString(value);
|
|
33
|
+
if (formattedValue === field.value) return;
|
|
31
34
|
field.onChange(formattedValue);
|
|
32
|
-
userChange?.notify(field.name,
|
|
35
|
+
userChange?.notify(field.name, value);
|
|
33
36
|
},
|
|
34
37
|
value: require_helpers.fromNullishString(field.value)
|
|
35
38
|
},
|
|
@@ -45,4 +48,4 @@ Object.defineProperty(exports, 'useController', {
|
|
|
45
48
|
return useController;
|
|
46
49
|
}
|
|
47
50
|
});
|
|
48
|
-
//# sourceMappingURL=useController-
|
|
51
|
+
//# sourceMappingURL=useController-oCYPeezC.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useController-oCYPeezC.cjs","names":["UniformContext","toNullishString","fromNullishString"],"sources":["../src/hooks/useController/useController.ts"],"sourcesContent":["import type {\n ControllerFieldState,\n ControllerRenderProps,\n UseControllerProps as RHFUseControllerProps,\n UseFormStateReturn,\n} from 'react-hook-form';\n\nimport { useContext } from 'react';\nimport { useController as useRHFController } from 'react-hook-form';\n\nimport { UniformContext } from '../../Form/subcomponents/FormContext';\nimport { fromNullishString, toNullishString } from '../../helpers';\n\nexport type UseControllerProps<TFieldValues extends object = object> =\n RHFUseControllerProps<TFieldValues>;\n\nexport interface UseControllerReturn<TFieldValues extends object = object> {\n field: Omit<ControllerRenderProps<TFieldValues>, 'onChange' | 'value'> & {\n // Using any[] to support both direct value changes and React synthetic events\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n onChange: (...event: any[]) => void;\n value: string;\n };\n formState: UseFormStateReturn<TFieldValues>;\n fieldState: ControllerFieldState;\n}\n\n/**\n * A wrapper around react-hook-form's useController that transparently handles nullish string conversions.\n *\n * Key features:\n * 1. Empty strings ('') in the UI are stored as null in form state\n * 2. Null/undefined values in form state are displayed as empty strings in the UI\n * 3. Handles both direct value changes and React synthetic events\n * 4. Maintains the same API as react-hook-form's useController\n * 5. Notifies UniformContext's userChange listeners on field changes (enables useWatchUserChange hook)\n * 6. No-op when value unchanged: onChange is ignored if the new value equals the current value\n * (prevents unnecessary re-renders and spurious useWatchUserChange triggers)\n *\n * This enables consistent handling of empty/null values while keeping a clean API\n * for form inputs that expect string values.\n *\n * @see https://react-hook-form.com/docs/usecontroller\n */\nexport const useController = <TFieldValues extends object = object>(\n props: UseControllerProps<TFieldValues>,\n): UseControllerReturn<TFieldValues> => {\n const { field, formState, fieldState } = useRHFController(props);\n const { userChange } = useContext(UniformContext);\n\n return {\n field: {\n ...field,\n // Handles both direct values (onChange(\"value\")) and events (onChange(event))\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n onChange: (...event: any[]) => {\n const value = event[0]?.target?.value ?? event[0];\n const formattedValue = value === '' ? '' : toNullishString(value);\n\n // Skip if value hasn't changed (e.g., user re-selects same option)\n // We compare formattedValue (the new value after nullish conversion) with\n // field.value (the current stored value, also in nullish format)\n if (formattedValue === field.value) {\n return;\n }\n\n // Update form state first\n field.onChange(formattedValue);\n\n // Then notify userChange listeners (for useWatchUserChange hook)\n // This ensures getValues() in listeners returns the updated value\n // Guard against undefined userChange (when used outside FormProvider)\n // NOTE: We notify with the original value (not formattedValue) so that\n // listeners receive the actual value (false, 0, null) instead of marker\n // strings like '__FALSE__', '__ZERO__', '__NULL__'\n userChange?.notify(field.name, value);\n },\n // Convert null/undefined to empty string for UI display\n value: fromNullishString(field.value) as string,\n },\n formState,\n fieldState,\n };\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AA4CA,MAAa,iBACX,UACsC;CACtC,MAAM,EAAE,OAAO,WAAW,kDAAgC,MAAM;CAChE,MAAM,EAAE,qCAA0BA,mCAAe;AAEjD,QAAO;EACL,OAAO;GACL,GAAG;GAGH,WAAW,GAAG,UAAiB;IAC7B,MAAM,QAAQ,MAAM,IAAI,QAAQ,SAAS,MAAM;IAC/C,MAAM,iBAAiB,UAAU,KAAK,KAAKC,gCAAgB,MAAM;AAKjE,QAAI,mBAAmB,MAAM,MAC3B;AAIF,UAAM,SAAS,eAAe;AAQ9B,gBAAY,OAAO,MAAM,MAAM,MAAM;;GAGvC,OAAOC,kCAAkB,MAAM,MAAM;GACtC;EACD;EACA;EACD"}
|
|
@@ -32,10 +32,10 @@ declare const useFormContext$1: <TFieldValues extends FieldValues = FieldValues,
|
|
|
32
32
|
getValues: react_hook_form9.UseFormGetValues<TFieldValues>;
|
|
33
33
|
subscribe: react_hook_form9.UseFormSubscribe<TFieldValues>;
|
|
34
34
|
watch: react_hook_form9.UseFormWatch<TFieldValues>;
|
|
35
|
-
debugMode: "
|
|
35
|
+
debugMode: "off" | "disabled" | "debug" | "debug-testids";
|
|
36
36
|
debugModeSettings?: DebugModeSettings;
|
|
37
37
|
preventSubmit: (prevent: boolean) => void;
|
|
38
|
-
setDebugMode: (debugMode: "
|
|
38
|
+
setDebugMode: (debugMode: "off" | "disabled" | "debug" | "debug-testids") => void;
|
|
39
39
|
triggerSubmit: (e?: react0.BaseSyntheticEvent) => Promise<void> | void;
|
|
40
40
|
userChange: {
|
|
41
41
|
subscribe: (listener: UserChangeListener) => () => void;
|
|
@@ -61,4 +61,4 @@ declare const useFormContext$1: <TFieldValues extends FieldValues = FieldValues,
|
|
|
61
61
|
};
|
|
62
62
|
//#endregion
|
|
63
63
|
export { useFormContext$1 as n, checkFieldIsRequired as t };
|
|
64
|
-
//# sourceMappingURL=useFormContext-
|
|
64
|
+
//# sourceMappingURL=useFormContext-B7ooPCfd.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFormContext-B7ooPCfd.d.ts","names":[],"sources":["../src/hooks/useFormContext/useFormContext.ts"],"sourcesContent":[],"mappings":";;;;;;;;;cAYa,mCACC;;;;;AADd;AAqEA;;;;;cAAa,wCACU,cAAc,kDAEd;EAwBa,SAAA,4BAAA,aAAA,CAAA;EAAL,aAAA,EAAA,CAAA,IAAA,EAAA,IAAA,CAAK,YAAL,CAAA,EAAA,MAAA,CAAA,EAAA,MAAA,EAAA,GAAA;;;;;;;;;WAWO,mCAAA,aAAA,CAAA;EAAA,SAAA,mCAAA,aAAA,CAAA;EAAA,KAAA,+BAAA,aAAA,CAAA;EAyBpC,SAAA,EAAA,KAAA,GAAA,UAAA,GAAA,OAAA,GAAA,eAAA;EACyB,iBAAA,CAAA,mBAAA;EAAwE,aAAA,EAAA,CAAA,OAAA,EAAA,OAAA,EAAA,GAAA,IAAA;EAAA,YAAA,EAAA,CAAA,SAAA,EAAA,KAAA,GAAA,UAAA,GAAA,OAAA,GAAA,eAAA,EAAA,GAAA,IAAA;6BA1B7D,uBAAA;;0BAAA;;;;mBAyBpC;eACyB;aAAwE;qDAAA,gBAAA,CAAA,WAAA"}
|
|
@@ -32,10 +32,10 @@ declare const useFormContext: <TFieldValues extends FieldValues = FieldValues, T
|
|
|
32
32
|
getValues: react_hook_form9.UseFormGetValues<TFieldValues>;
|
|
33
33
|
subscribe: react_hook_form9.UseFormSubscribe<TFieldValues>;
|
|
34
34
|
watch: react_hook_form9.UseFormWatch<TFieldValues>;
|
|
35
|
-
debugMode: "
|
|
35
|
+
debugMode: "off" | "disabled" | "debug" | "debug-testids";
|
|
36
36
|
debugModeSettings?: DebugModeSettings;
|
|
37
37
|
preventSubmit: (prevent: boolean) => void;
|
|
38
|
-
setDebugMode: (debugMode: "
|
|
38
|
+
setDebugMode: (debugMode: "off" | "disabled" | "debug" | "debug-testids") => void;
|
|
39
39
|
triggerSubmit: (e?: react0.BaseSyntheticEvent) => Promise<void> | void;
|
|
40
40
|
userChange: {
|
|
41
41
|
subscribe: (listener: UserChangeListener) => () => void;
|
|
@@ -61,4 +61,4 @@ declare const useFormContext: <TFieldValues extends FieldValues = FieldValues, T
|
|
|
61
61
|
};
|
|
62
62
|
//#endregion
|
|
63
63
|
export { useFormContext as n, checkFieldIsRequired as t };
|
|
64
|
-
//# sourceMappingURL=useFormContext-
|
|
64
|
+
//# sourceMappingURL=useFormContext-DihY1N8O.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFormContext-DihY1N8O.d.cts","names":[],"sources":["../src/hooks/useFormContext/useFormContext.ts"],"sourcesContent":[],"mappings":";;;;;;;;;cAYa,mCACC;;;;;AADd;AAqEA;;;;;cAAa,sCACU,cAAc,kDAEd;EAwBa,SAAA,4BAAA,aAAA,CAAA;EAAL,aAAA,EAAA,CAAA,IAAA,EAAA,IAAA,CAAK,YAAL,CAAA,EAAA,MAAA,CAAA,EAAA,MAAA,EAAA,GAAA;;;;;;;;;WAWO,mCAAA,aAAA,CAAA;EAAA,SAAA,mCAAA,aAAA,CAAA;EAAA,KAAA,+BAAA,aAAA,CAAA;EAyBpC,SAAA,EAAA,KAAA,GAAA,UAAA,GAAA,OAAA,GAAA,eAAA;EACyB,iBAAA,CAAA,mBAAA;EAAwE,aAAA,EAAA,CAAA,OAAA,EAAA,OAAA,EAAA,GAAA,IAAA;EAAA,YAAA,EAAA,CAAA,SAAA,EAAA,KAAA,GAAA,UAAA,GAAA,OAAA,GAAA,eAAA,EAAA,GAAA,IAAA;6BA1B7D,uBAAA;;0BAAA;;;;mBAyBpC;eACyB;aAAwE;qDAAA,gBAAA,CAAA,WAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as InputValueTransform } from "./useInputValueTransform-BV8o0PMI.cjs";
|
|
2
|
-
import { r as useController } from "./useController-
|
|
3
|
-
import { n as useFormContext } from "./useFormContext-
|
|
2
|
+
import { r as useController } from "./useController-B-DhUPpA.cjs";
|
|
3
|
+
import { n as useFormContext } from "./useFormContext-DihY1N8O.cjs";
|
|
4
4
|
import { t as useInput } from "./useInput--wjwIBc5.cjs";
|
|
5
5
|
import { ReactNode } from "react";
|
|
6
6
|
import { FieldError, FieldValues, Path } from "react-hook-form";
|
|
@@ -95,4 +95,4 @@ interface UseUniformFieldReturn<TFieldValues extends FieldValues = FieldValues>
|
|
|
95
95
|
declare const useUniformField: <TFieldValues extends FieldValues = FieldValues, TDisplay = unknown>(params: UseUniformFieldParams<TFieldValues, TDisplay>) => UseUniformFieldReturn<TFieldValues>;
|
|
96
96
|
//#endregion
|
|
97
97
|
export { UseUniformFieldReturn as n, useUniformField as r, UseUniformFieldParams as t };
|
|
98
|
-
//# sourceMappingURL=useUniformField-
|
|
98
|
+
//# sourceMappingURL=useUniformField-8ODkBNpn.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUniformField-
|
|
1
|
+
{"version":3,"file":"useUniformField-8ODkBNpn.d.cts","names":[],"sources":["../src/hooks/useUniformField/useUniformField.tsx"],"sourcesContent":[],"mappings":";;;;;;;;UA0CiB,2CACM,cAAc;;EADpB,IAAA,EAKT,IALS,CAKJ,YALI,CAAqB,GAAA,MAAA;EACf;EAAc,SAAA,CAAA,EAAA,MAAA;EAIxB;EAAL,QAAA,CAAA,EAAA,OAAA;EAME;EAIwB,KAAA,CAAA,EAJxB,SAIwB;EAApB;EAAmB,MAAA,CAAA,EAAA,MAAA;EAKhB;EACM,SAAA,CAAA,EANT,mBAMS,CANW,QAMX,CAAA;EAAc;EAKO,IAAA,CAAA,EAAA,MAAA,GAAA,QAAA,GAAA,UAAA;;AAAjC,UANM,qBAMN,CAAA,qBALY,WAKZ,GAL0B,WAK1B,CAAA,CAAA;EAEmC;EAAf,SAAA,EAAA,MAAA,GAAA,SAAA;EAAlB;EAMJ,OAAA,EARE,UAQF,CAAA,OARoB,cAQpB,CARmC,YAQnC,CAAA,CAAA,CAAA,SAAA,CAAA;EAEO;EAEyB,SAAA,EAV5B,UAU4B,CAAA,OAVV,cAUU,CAVK,YAUL,CAAA,CAAA,CAAA,WAAA,CAAA;EAAd;EAAlB,YAAA,EAAA,OAAA;EAEiC;EAAlB,QAAA,EAAA,OAAA,GAAA,SAAA;EAEmB;EAAlB,KAAA,EARhB,UAQgB,EAAA,GAAA,SAAA;EAEU;EAAlB,YAAA,EARD,SAQC,GAAA,IAAA;EAE6B;EAAf,KAAA,EARtB,UAQsB,CAAA,OARJ,aAQI,CARU,YAQV,CAAA,CAAA,CAAA,OAAA,CAAA;EAAlB;EAIJ,oBAAA,EAVe,UAUf,CAAA,OAViC,QAUjC,CAAA,CAAA,sBAAA,CAAA;EAEiC;EAAd,qBAAA,EAVH,UAUG,CAAA,OAVe,QAUf,CAAA,CAAA,uBAAA,CAAA;EAAlB;EAEkC,aAAA,EAV3B,UAU2B,CAAA,OAVT,QAUS,CAAA,CAAA,eAAA,CAAA;EAAd;EAAlB,SAAA,EARC,UAQD,CAAA,OARmB,cAQnB,CARkC,YAQlC,CAAA,CAAA,CAAA,WAAA,CAAA;EAE2B;EAAd,OAAA,EAAA,OAAA;EAAlB;EAIwC,KAAA,EAVtC,SAUsC,GAAA,IAAA;EAAf;EAAlB,MAAA,EARJ,UAQI,CAAA,OARc,aAQd,CAR4B,YAQ5B,CAAA,CAAA,CAAA,OAAA,CAAA,CAAA,QAAA,CAAA;EAAU;EAiCX,QAAA,EAvCD,UA6MX,CAAA,OA7M6B,aA6M7B,CA7M2C,YA6M3C,CAAA,CAAA,CAAA,OAAA,CAAA,CAAA,UAAA,CAAA;EArKsB;EAAc,GAAA,EAtC9B,UAsC8B,CAAA,OAtCZ,aAsCY,CAtCE,YAsCF,CAAA,CAAA,CAAA,OAAA,CAAA,CAAA,KAAA,CAAA;EAGL;EAAc,QAAA,EAAA,OAAA;EAApC;EACe,UAAA,EAtCX,UAsCW,CAAA,OAtCO,cAsCP,CAtCsB,YAsCtB,CAAA,CAAA,CAAA,YAAA,CAAA;EAAtB;EAAqB,MAAA,EAAA,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cALX,uCACU,cAAc,yCAG3B,sBAAsB,cAAc,cAC3C,sBAAsB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as isValueEmpty } from "./helpers-D3A5d3M1.js";
|
|
2
2
|
import { n as FieldCopyTestIdButton_default } from "./FieldCopyTestIdButton-D9f1B-VS.js";
|
|
3
3
|
import { n as FieldValidationError_default } from "./FieldValidationError-BYwitb_B.js";
|
|
4
|
-
import { t as useController } from "./useController-
|
|
4
|
+
import { t as useController } from "./useController-QcOl0O0v.js";
|
|
5
5
|
import { n as useFormContext } from "./useFormContext-UFBqUfOr.js";
|
|
6
6
|
import { t as useInput } from "./useInput-DZ6KGBxw.js";
|
|
7
7
|
import { t as useInputValueTransform } from "./useInputValueTransform-CMNC21vX.js";
|
|
@@ -152,4 +152,4 @@ const useUniformField = (params) => {
|
|
|
152
152
|
|
|
153
153
|
//#endregion
|
|
154
154
|
export { useUniformField as t };
|
|
155
|
-
//# sourceMappingURL=useUniformField-
|
|
155
|
+
//# sourceMappingURL=useUniformField-C6oSAFa3.js.map
|