@fuf-stack/uniform 1.13.0 → 1.14.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-BQI2kTIb.js → Checkboxes-C57URc95.js} +2 -2
- package/dist/{Checkboxes-BQI2kTIb.js.map → Checkboxes-C57URc95.js.map} +1 -1
- package/dist/{Checkboxes-mc1ZItR5.cjs → Checkboxes-D5sibD6f.cjs} +2 -2
- package/dist/{Checkboxes-mc1ZItR5.cjs.map → Checkboxes-D5sibD6f.cjs.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-CsAyIsw9.cjs → FieldArray-CWxV0Q6O.cjs} +3 -3
- package/dist/{FieldArray-CsAyIsw9.cjs.map → FieldArray-CWxV0Q6O.cjs.map} +1 -1
- package/dist/{FieldArray-D4eGdGXA.js → FieldArray-D-vR7oCb.js} +3 -3
- package/dist/{FieldArray-D4eGdGXA.js.map → FieldArray-D-vR7oCb.js.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-CKEeknzL.js} +2 -2
- package/dist/{FieldCard-BPQIqqW5.js.map → FieldCard-CKEeknzL.js.map} +1 -1
- package/dist/{FieldCard-CgWjzrRD.cjs → FieldCard-DiaY4qXt.cjs} +2 -2
- package/dist/{FieldCard-CgWjzrRD.cjs.map → FieldCard-DiaY4qXt.cjs.map} +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-7TmTrrV7.cjs → Input-BJkL5IVO.cjs} +2 -2
- package/dist/{Input-7TmTrrV7.cjs.map → Input-BJkL5IVO.cjs.map} +1 -1
- package/dist/{Input-BUfOTtDR.js → Input-CUeTrgO_.js} +2 -2
- package/dist/{Input-BUfOTtDR.js.map → Input-CUeTrgO_.js.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-Dpd71z1S.js → RadioBoxes-B-EbjvDm.js} +6 -6
- package/dist/{RadioBoxes-Dpd71z1S.js.map → RadioBoxes-B-EbjvDm.js.map} +1 -1
- package/dist/{RadioBoxes-CjxWldIR.cjs → RadioBoxes-BXAo2Nom.cjs} +6 -6
- package/dist/{RadioBoxes-CjxWldIR.cjs.map → RadioBoxes-BXAo2Nom.cjs.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-BZlC19z0.js → RadioTabs-C2FIAjx-.js} +2 -2
- package/dist/{RadioTabs-BZlC19z0.js.map → RadioTabs-C2FIAjx-.js.map} +1 -1
- package/dist/{RadioTabs-BA-EMFRc.cjs → RadioTabs-rDuug93J.cjs} +2 -2
- package/dist/{RadioTabs-BA-EMFRc.cjs.map → RadioTabs-rDuug93J.cjs.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-Bfxy-Vnf.cjs → Radios-LD2USByC.cjs} +6 -6
- package/dist/Radios-LD2USByC.cjs.map +1 -0
- package/dist/{Radios-ClBrO7QR.js → Radios-N5qCQRBU.js} +6 -6
- package/dist/Radios-N5qCQRBU.js.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-C5mS7WZC.cjs} +102 -92
- package/dist/Select-C5mS7WZC.cjs.map +1 -0
- package/dist/{Select-9MyYYGeZ.js → Select-D_LJBu0p.js} +102 -92
- package/dist/Select-D_LJBu0p.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-Cy5vz5as.js → Slider-CNlNpxV-.js} +2 -2
- package/dist/{Slider-Cy5vz5as.js.map → Slider-CNlNpxV-.js.map} +1 -1
- package/dist/{Slider-CK9n0ryX.cjs → Slider-D-bfkzoh.cjs} +2 -2
- package/dist/{Slider-CK9n0ryX.cjs.map → Slider-D-bfkzoh.cjs.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-BBhxgBHh.cjs → Switch-BBAkWBHA.cjs} +2 -2
- package/dist/{Switch-BBhxgBHh.cjs.map → Switch-BBAkWBHA.cjs.map} +1 -1
- package/dist/{Switch-s64WUP5i.js → Switch-DZptJsFF.js} +2 -2
- package/dist/{Switch-s64WUP5i.js.map → Switch-DZptJsFF.js.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-BwdvgHpG.cjs → SwitchBox-DHAJ_YXU.cjs} +2 -2
- package/dist/{SwitchBox-BwdvgHpG.cjs.map → SwitchBox-DHAJ_YXU.cjs.map} +1 -1
- package/dist/{SwitchBox-CMw1MGJ0.js → SwitchBox-DZQCW3SK.js} +2 -2
- package/dist/{SwitchBox-CMw1MGJ0.js.map → SwitchBox-DZQCW3SK.js.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-COe8XP7f.cjs → TextArea-BBpGkB5f.cjs} +2 -2
- package/dist/{TextArea-COe8XP7f.cjs.map → TextArea-BBpGkB5f.cjs.map} +1 -1
- package/dist/{TextArea-DTkDJr6g.js → TextArea-Dg2ZqJm2.js} +2 -2
- package/dist/{TextArea-DTkDJr6g.js.map → TextArea-Dg2ZqJm2.js.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.d.cts +1 -1
- package/dist/hooks/useWatchUserChange/index.d.ts +1 -1
- package/dist/{index-_njc33cQ.d.cts → index-5Hp_MzN_.d.cts} +4 -4
- package/dist/{index-_njc33cQ.d.cts.map → index-5Hp_MzN_.d.cts.map} +1 -1
- package/dist/{index-DsyY9X04.d.cts → index-6eckRMZA.d.cts} +3 -3
- package/dist/{index-DsyY9X04.d.cts.map → index-6eckRMZA.d.cts.map} +1 -1
- package/dist/{index-CVY05bZf.d.ts → index-B5BDC8Al.d.ts} +3 -3
- package/dist/{index-CVY05bZf.d.ts.map → index-B5BDC8Al.d.ts.map} +1 -1
- package/dist/{index-DMojDmML.d.ts → index-BHklv3dW.d.ts} +48 -48
- package/dist/index-BHklv3dW.d.ts.map +1 -0
- package/dist/{index-OwPGP648.d.ts → index-BOgOCyFF.d.cts} +4 -4
- package/dist/{index-acwVBMcR.d.cts.map → index-BOgOCyFF.d.cts.map} +1 -1
- package/dist/index-BPjrrFuM.d.ts +186 -0
- package/dist/index-BPjrrFuM.d.ts.map +1 -0
- package/dist/index-BTr_gid3.d.cts +186 -0
- package/dist/index-BTr_gid3.d.cts.map +1 -0
- package/dist/{index--J1-cUWg.d.cts → index-BZ9HvBM6.d.cts} +35 -35
- package/dist/{index--J1-cUWg.d.cts.map → index-BZ9HvBM6.d.cts.map} +1 -1
- package/dist/{index-BFeKALeM.d.ts → index-BbAjuXqS.d.cts} +5 -5
- package/dist/{index-BhqOFcsS.d.cts.map → index-BbAjuXqS.d.cts.map} +1 -1
- package/dist/{index-CASoDHjE.d.cts → index-BeinxTzw.d.cts} +21 -21
- package/dist/{index-CASoDHjE.d.cts.map → index-BeinxTzw.d.cts.map} +1 -1
- package/dist/{index-TbDhDIfv.d.ts → index-BuaPmiMt.d.ts} +3 -3
- package/dist/{index-TbDhDIfv.d.ts.map → index-BuaPmiMt.d.ts.map} +1 -1
- package/dist/{index-rK5GxEPh.d.ts → index-ByQXPNeM.d.ts} +6 -6
- package/dist/{index-rK5GxEPh.d.ts.map → index-ByQXPNeM.d.ts.map} +1 -1
- package/dist/{index-DEtF7ckd.d.ts → index-C0--RHyE.d.cts} +34 -34
- package/dist/index-C0--RHyE.d.cts.map +1 -0
- package/dist/{index-CPbrUN5A.d.ts → index-CEzwxdlZ.d.ts} +21 -21
- package/dist/{index-CPbrUN5A.d.ts.map → index-CEzwxdlZ.d.ts.map} +1 -1
- package/dist/{index-CXkSuHEL.d.ts → index-CJcgEkPo.d.ts} +3 -3
- package/dist/{index-CXkSuHEL.d.ts.map → index-CJcgEkPo.d.ts.map} +1 -1
- package/dist/{index-DtWIiEFa.d.cts → index-CPE2gcz3.d.ts} +24 -24
- package/dist/index-CPE2gcz3.d.ts.map +1 -0
- package/dist/{index-Cs-7Ptqc.d.cts → index-CYdvpGJF.d.cts} +3 -3
- package/dist/{index-Cs-7Ptqc.d.cts.map → index-CYdvpGJF.d.cts.map} +1 -1
- package/dist/{index-Bd7H1tdb.d.cts → index-Cb0AgRRa.d.cts} +3 -3
- package/dist/{index-Bd7H1tdb.d.cts.map → index-Cb0AgRRa.d.cts.map} +1 -1
- package/dist/{index-D3o2YTBb.d.ts → index-Cb8jQhHS.d.ts} +36 -36
- package/dist/index-Cb8jQhHS.d.ts.map +1 -0
- package/dist/{index-D9VXD1rv.d.cts → index-CbK-kEVY.d.cts} +21 -21
- package/dist/{index-D9VXD1rv.d.cts.map → index-CbK-kEVY.d.cts.map} +1 -1
- package/dist/{index-BhqOFcsS.d.cts → index-CkhVD2Pw.d.ts} +6 -6
- package/dist/{index-BFeKALeM.d.ts.map → index-CkhVD2Pw.d.ts.map} +1 -1
- package/dist/{index-JfAmWj81.d.cts → index-ClQFLoqX.d.ts} +34 -34
- package/dist/index-ClQFLoqX.d.ts.map +1 -0
- package/dist/{index-_zWAtv8G.d.ts → index-CusdoJv3.d.ts} +35 -35
- package/dist/{index-_zWAtv8G.d.ts.map → index-CusdoJv3.d.ts.map} +1 -1
- package/dist/{index-Z0IxHoXS.d.ts → index-DElTYKk8.d.ts} +1 -1
- package/dist/{index-Z0IxHoXS.d.ts.map → index-DElTYKk8.d.ts.map} +1 -1
- package/dist/{index-CrpdF1Xw.d.cts → index-DMOAkVG4.d.ts} +6 -6
- package/dist/{index-JdksqsGh.d.ts.map → index-DMOAkVG4.d.ts.map} +1 -1
- package/dist/{index-7C539UUH.d.cts → index-DS54nHWk.d.cts} +6 -6
- package/dist/{index-7C539UUH.d.cts.map → index-DS54nHWk.d.cts.map} +1 -1
- package/dist/{index-DCZwOjSs.d.cts → index-DamFEDHU.d.cts} +36 -36
- package/dist/index-DamFEDHU.d.cts.map +1 -0
- package/dist/{index-BHmMP-ps.d.ts → index-DeHDOwxr.d.ts} +21 -21
- package/dist/{index-BHmMP-ps.d.ts.map → index-DeHDOwxr.d.ts.map} +1 -1
- package/dist/{index-JdksqsGh.d.ts → index-DsQabhNC.d.cts} +6 -6
- package/dist/{index-CrpdF1Xw.d.cts.map → index-DsQabhNC.d.cts.map} +1 -1
- package/dist/{index-KgMMIPyM.d.cts → index-P3_aBCSt.d.cts} +3 -3
- package/dist/{index-KgMMIPyM.d.cts.map → index-P3_aBCSt.d.cts.map} +1 -1
- package/dist/{index-DvB46QAb.d.ts → index-aHcGnXHf.d.ts} +3 -3
- package/dist/{index-DvB46QAb.d.ts.map → index-aHcGnXHf.d.ts.map} +1 -1
- package/dist/{index-acwVBMcR.d.cts → index-ecrJ75NW.d.ts} +4 -4
- package/dist/{index-OwPGP648.d.ts.map → index-ecrJ75NW.d.ts.map} +1 -1
- package/dist/index-jeFGTign.d.cts +264 -0
- package/dist/index-jeFGTign.d.cts.map +1 -0
- package/dist/{index-DMVoX5pj.d.cts → index-nE7tTo2d.d.cts} +48 -48
- package/dist/index-nE7tTo2d.d.cts.map +1 -0
- package/dist/{index-DsuMjcQk.d.ts → index-qNwZcAWj.d.ts} +6 -6
- package/dist/{index-DsuMjcQk.d.ts.map → index-qNwZcAWj.d.ts.map} +1 -1
- package/dist/index.cjs +15 -15
- package/dist/index.d.cts +23 -23
- package/dist/index.d.ts +24 -25
- package/dist/index.js +15 -15
- 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-DHRkSHem.cjs → useController-BySgDIes.cjs} +2 -2
- package/dist/{useController-DHRkSHem.cjs.map → useController-BySgDIes.cjs.map} +1 -1
- package/dist/{useController-BArZd2Vp.d.cts → useController-C_MZLZIp.d.cts} +1 -1
- package/dist/{useController-BArZd2Vp.d.cts.map → useController-C_MZLZIp.d.cts.map} +1 -1
- package/dist/{useController-BPDcwfTj.js → useController-Dleq15tG.js} +2 -2
- package/dist/{useController-BPDcwfTj.js.map → useController-Dleq15tG.js.map} +1 -1
- package/dist/{useController-MVHJ7WFp.d.ts → useController-hjpJQf0w.d.ts} +1 -1
- package/dist/{useController-MVHJ7WFp.d.ts.map → useController-hjpJQf0w.d.ts.map} +1 -1
- 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-CGiibqg4.cjs → useUniformField-BJTRfqCQ.cjs} +2 -2
- package/dist/{useUniformField-CGiibqg4.cjs.map → useUniformField-BJTRfqCQ.cjs.map} +1 -1
- package/dist/{useUniformField-D2NgevBI.js → useUniformField-Brwxoghf.js} +2 -2
- package/dist/{useUniformField-D2NgevBI.js.map → useUniformField-Brwxoghf.js.map} +1 -1
- package/dist/{useUniformField-CrEz5lkV.d.cts → useUniformField-Dz_-tPrO.d.cts} +3 -3
- package/dist/{useUniformField-CrEz5lkV.d.cts.map → useUniformField-Dz_-tPrO.d.cts.map} +1 -1
- package/dist/{useUniformField-Bzv-6MG1.d.ts → useUniformField-giYkUMG_.d.ts} +3 -3
- package/dist/{useUniformField-Bzv-6MG1.d.ts.map → useUniformField-giYkUMG_.d.ts.map} +1 -1
- package/dist/{useUniformFieldArray-B2-Bfl74.d.cts → useUniformFieldArray-BMBc3o7P.d.cts} +4 -4
- package/dist/{useUniformFieldArray-B2-Bfl74.d.cts.map → useUniformFieldArray-BMBc3o7P.d.cts.map} +1 -1
- package/dist/{useUniformFieldArray-jUCzsveX.d.ts → useUniformFieldArray-COp7qAwf.d.ts} +4 -4
- package/dist/{useUniformFieldArray-jUCzsveX.d.ts.map → useUniformFieldArray-COp7qAwf.d.ts.map} +1 -1
- package/dist/{useUniformFieldArray-Ct8jD7JJ.cjs → useUniformFieldArray-N5uHlvRy.cjs} +2 -2
- package/dist/{useUniformFieldArray-Ct8jD7JJ.cjs.map → useUniformFieldArray-N5uHlvRy.cjs.map} +1 -1
- package/dist/{useUniformFieldArray-DcoVYtqx.js → useUniformFieldArray-SlUu--d6.js} +2 -2
- package/dist/{useUniformFieldArray-DcoVYtqx.js.map → useUniformFieldArray-SlUu--d6.js.map} +1 -1
- package/dist/{useWatchUserChange-Bf5JKDJJ.d.ts → useWatchUserChange-BAdiqg2q.d.ts} +1 -1
- package/dist/{useWatchUserChange-Bf5JKDJJ.d.ts.map → useWatchUserChange-BAdiqg2q.d.ts.map} +1 -1
- package/dist/{useWatchUserChange-Br4Q7syM.d.cts → useWatchUserChange-COVdHmki.d.cts} +1 -1
- package/dist/{useWatchUserChange-Br4Q7syM.d.cts.map → useWatchUserChange-COVdHmki.d.cts.map} +1 -1
- 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-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-DMojDmML.d.ts.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/useFormContext-B2TS6xq0.d.ts.map +0 -1
- package/dist/useFormContext-n3WYgGkW.d.cts.map +0 -1
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as tailwind_variants0 from "tailwind-variants";
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
import { TVClassName, TVProps } from "@fuf-stack/pixel-utils";
|
|
4
4
|
import { ReactNode } from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/Slider/Slider.d.ts
|
|
7
|
-
declare const sliderVariants:
|
|
7
|
+
declare const sliderVariants: tailwind_variants0.TVReturnType<{
|
|
8
8
|
[key: string]: {
|
|
9
|
-
[key: string]:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
trackWrapper?:
|
|
9
|
+
[key: string]: tailwind_variants0.ClassValue | {
|
|
10
|
+
base?: tailwind_variants0.ClassValue;
|
|
11
|
+
label?: tailwind_variants0.ClassValue;
|
|
12
|
+
value?: tailwind_variants0.ClassValue;
|
|
13
|
+
endContent?: tailwind_variants0.ClassValue;
|
|
14
|
+
errorMessage?: tailwind_variants0.ClassValue;
|
|
15
|
+
filler?: tailwind_variants0.ClassValue;
|
|
16
|
+
labelWrapper?: tailwind_variants0.ClassValue;
|
|
17
|
+
mark?: tailwind_variants0.ClassValue;
|
|
18
|
+
startContent?: tailwind_variants0.ClassValue;
|
|
19
|
+
step?: tailwind_variants0.ClassValue;
|
|
20
|
+
thumb?: tailwind_variants0.ClassValue;
|
|
21
|
+
track?: tailwind_variants0.ClassValue;
|
|
22
|
+
trackWrapper?: tailwind_variants0.ClassValue;
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
25
|
} | {
|
|
26
26
|
[x: string]: {
|
|
27
|
-
[x: string]:
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
trackWrapper?:
|
|
27
|
+
[x: string]: tailwind_variants0.ClassValue | {
|
|
28
|
+
base?: tailwind_variants0.ClassValue;
|
|
29
|
+
label?: tailwind_variants0.ClassValue;
|
|
30
|
+
value?: tailwind_variants0.ClassValue;
|
|
31
|
+
endContent?: tailwind_variants0.ClassValue;
|
|
32
|
+
errorMessage?: tailwind_variants0.ClassValue;
|
|
33
|
+
filler?: tailwind_variants0.ClassValue;
|
|
34
|
+
labelWrapper?: tailwind_variants0.ClassValue;
|
|
35
|
+
mark?: tailwind_variants0.ClassValue;
|
|
36
|
+
startContent?: tailwind_variants0.ClassValue;
|
|
37
|
+
step?: tailwind_variants0.ClassValue;
|
|
38
|
+
thumb?: tailwind_variants0.ClassValue;
|
|
39
|
+
track?: tailwind_variants0.ClassValue;
|
|
40
|
+
trackWrapper?: tailwind_variants0.ClassValue;
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
43
|
} | {}, {
|
|
@@ -56,20 +56,20 @@ declare const sliderVariants: tailwind_variants158.TVReturnType<{
|
|
|
56
56
|
value: string;
|
|
57
57
|
}, undefined, {
|
|
58
58
|
[key: string]: {
|
|
59
|
-
[key: string]:
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
trackWrapper?:
|
|
59
|
+
[key: string]: tailwind_variants0.ClassValue | {
|
|
60
|
+
base?: tailwind_variants0.ClassValue;
|
|
61
|
+
label?: tailwind_variants0.ClassValue;
|
|
62
|
+
value?: tailwind_variants0.ClassValue;
|
|
63
|
+
endContent?: tailwind_variants0.ClassValue;
|
|
64
|
+
errorMessage?: tailwind_variants0.ClassValue;
|
|
65
|
+
filler?: tailwind_variants0.ClassValue;
|
|
66
|
+
labelWrapper?: tailwind_variants0.ClassValue;
|
|
67
|
+
mark?: tailwind_variants0.ClassValue;
|
|
68
|
+
startContent?: tailwind_variants0.ClassValue;
|
|
69
|
+
step?: tailwind_variants0.ClassValue;
|
|
70
|
+
thumb?: tailwind_variants0.ClassValue;
|
|
71
|
+
track?: tailwind_variants0.ClassValue;
|
|
72
|
+
trackWrapper?: tailwind_variants0.ClassValue;
|
|
73
73
|
};
|
|
74
74
|
};
|
|
75
75
|
} | {}, {
|
|
@@ -86,7 +86,7 @@ declare const sliderVariants: tailwind_variants158.TVReturnType<{
|
|
|
86
86
|
track: string;
|
|
87
87
|
trackWrapper: string;
|
|
88
88
|
value: string;
|
|
89
|
-
},
|
|
89
|
+
}, tailwind_variants0.TVReturnType<unknown, {
|
|
90
90
|
base: string;
|
|
91
91
|
endContent: string;
|
|
92
92
|
errorMessage: string;
|
|
@@ -163,7 +163,7 @@ declare const Slider: ({
|
|
|
163
163
|
minValue,
|
|
164
164
|
maxValue,
|
|
165
165
|
...uniformFieldProps
|
|
166
|
-
}: SliderProps) =>
|
|
166
|
+
}: SliderProps) => react_jsx_runtime0.JSX.Element;
|
|
167
167
|
//#endregion
|
|
168
168
|
export { SliderProps as n, Slider as t };
|
|
169
|
-
//# sourceMappingURL=index-
|
|
169
|
+
//# sourceMappingURL=index-nE7tTo2d.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-nE7tTo2d.d.cts","names":[],"sources":["../src/Slider/Slider.tsx"],"sourcesContent":[],"mappings":";;;;;;cAYa,mCAAc;;mBAmBzB,kBAAA,CAAA,UAAA;;MAnBW,KAAA,CAAA,+BAmBX;MAAA,KAAA,CAAA,+BAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAnByB;EAAA,KAAA,EAAA,MAAA;AAmBxB,CAAA,EAAA,SAEE,EAAA;EACA,CAAA,GAAA,EAAA,MAAS,CAAA,EAAA;IAEG,CAAA,GAAA,EAAA,MAAY,CAAA,kCAAA;MAIf,IAAA,CAAA,+BAAA;MAIC,KAAA,CAAA,+BAAA;MAkBE,KAAA,CAAA,+BAAA;MA1BoB,UAAA,CAAA,+BAAA;MAAY,YAAA,CAAA,+BAAA;MAiD3C,MAwHL,CAAA,+BAAA;MAxHe,YAAA,CAAA,+BAAA;MAAA,IAAA,CAAA,+BAAA;MAAA,YAAA,CAAA,+BAAA;MAAA,IAAA,CAAA,+BAAA;MAAA,KAAA,CAAA,+BAAA;MAAA,KAAA,CAAA,+BAAA;MAAA,YAAA,CAAA,+BAAA;IAAA,CAAA;EAAA,CAAA;CAAA,GAAA,CAAA,CAAA,EAAA;EAYb,IAAA,EAAA,MAAA;EAAW,UAAA,EAAA,MAAA;EA4Gb,YAAA,EAAA,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;;KA5KI,YAAA,GAAe,eAAe;KAC9B,SAAA,GAAY,mBAAmB;UAEnB,WAAA,SAAoB;;;;cAIvB;;;;eAIC;;;;;;;;;;;;;;;;;;iBAkBE;;;;;;;;;;;;;;;;;;;;;;cAuBX;;;;;;;;;;;;GAYH,gBAAW,kBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
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_runtime10 from "react/jsx-runtime";
|
|
5
|
+
import * as tailwind_variants254 from "tailwind-variants";
|
|
6
6
|
|
|
7
7
|
//#region src/Checkboxes/Checkboxes.d.ts
|
|
8
|
-
declare const checkboxesVariants:
|
|
8
|
+
declare const checkboxesVariants: tailwind_variants254.TVReturnType<{
|
|
9
9
|
color: {
|
|
10
10
|
readonly default: {
|
|
11
11
|
wrapper: string;
|
|
@@ -85,7 +85,7 @@ declare const checkboxesVariants: tailwind_variants241.TVReturnType<{
|
|
|
85
85
|
optionLabelSubline: string;
|
|
86
86
|
optionWrapper: string;
|
|
87
87
|
wrapper: string;
|
|
88
|
-
},
|
|
88
|
+
}, tailwind_variants254.TVReturnType<{
|
|
89
89
|
color: {
|
|
90
90
|
readonly default: {
|
|
91
91
|
wrapper: string;
|
|
@@ -175,7 +175,7 @@ declare const Checkboxes: ({
|
|
|
175
175
|
options,
|
|
176
176
|
name,
|
|
177
177
|
...uniformFieldProps
|
|
178
|
-
}: CheckboxesProps) =>
|
|
178
|
+
}: CheckboxesProps) => react_jsx_runtime10.JSX.Element;
|
|
179
179
|
//#endregion
|
|
180
180
|
export { Checkboxes as n, CheckboxesProps as r, CheckboxOption as t };
|
|
181
|
-
//# sourceMappingURL=index-
|
|
181
|
+
//# sourceMappingURL=index-qNwZcAWj.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-qNwZcAWj.d.ts","names":[],"sources":["../src/Checkboxes/Checkboxes.tsx"],"sourcesContent":[],"mappings":";;;;;;;cAoBa,oBAmCX,oBAAA,CAnC6B;;;;IAAlB,CAAA;IAqCR,SAAA,OAAY,EAAA;MACZ,OAAS,EAAA,MAAA;IAEG,CAAA;IAaA,SAAA,SAAgB,EAAA;MAInB,OAAA,EAAA,MAAA;IAEJ,CAAA;IAMA,SAAA,OAAA,EAAA;MAMC,OAAA,EAAA,MAAA;IAIG,CAAA;IAtB2B,SAAA,OAAA,EAAA;MAAY,OAAA,EAAA,MAAA;IA4B/C,CAAA;IAAc,SAAA,MAAA,EAAA;MAAA,OAAA,EAAA,MAAA;IAAA,CAAA;IAAA,SAAA,IAAA,EAAA;MAAA,SAAA,OAAA,EAAA,+DAAA;IAAA,CAAA;EAQjB,CAAA;EAAe,WAAA,EAAA;IAiHjB,IAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAvKC,oBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEG,YAAA,GAAe,eAAe;KAC9B,SAAA,GAAY,mBAAmB;UAEnB,cAAA;;UAEP;;iBAEO;;;;;;;;UASA,eAAA,SAAwB;;;;cAI3B;;UAEJ;;;;;;UAMA;;;;;;WAMC;;;;cAIG;;;;;cAMR;;;;;;;;GAQH,oBAAe,mBAAA,CAAA,GAAA,CAAA"}
|
package/dist/index.cjs
CHANGED
|
@@ -2,27 +2,27 @@ 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-BySgDIes.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-BJTRfqCQ.cjs');
|
|
9
|
+
const require_Checkboxes = require('./Checkboxes-D5sibD6f.cjs');
|
|
10
|
+
const require_useUniformFieldArray = require('./useUniformFieldArray-N5uHlvRy.cjs');
|
|
11
|
+
const require_FieldArray = require('./FieldArray-CWxV0Q6O.cjs');
|
|
12
12
|
const require_Grid = require('./Grid-CRURvciu.cjs');
|
|
13
|
-
const require_FieldCard = require('./FieldCard-
|
|
13
|
+
const require_FieldCard = require('./FieldCard-DiaY4qXt.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-BJkL5IVO.cjs');
|
|
17
|
+
const require_RadioBoxes = require('./RadioBoxes-BXAo2Nom.cjs');
|
|
18
|
+
const require_RadioTabs = require('./RadioTabs-rDuug93J.cjs');
|
|
19
|
+
const require_Radios = require('./Radios-LD2USByC.cjs');
|
|
20
|
+
const require_Select = require('./Select-C5mS7WZC.cjs');
|
|
21
|
+
const require_Slider = require('./Slider-D-bfkzoh.cjs');
|
|
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-BBAkWBHA.cjs');
|
|
24
|
+
const require_SwitchBox = require('./SwitchBox-DHAJ_YXU.cjs');
|
|
25
|
+
const require_TextArea = require('./TextArea-BBpGkB5f.cjs');
|
|
26
26
|
const require_useClientValidation = require('./useClientValidation-DzomULfo.cjs');
|
|
27
27
|
const require_useWatchUserChange = require('./useWatchUserChange-C1zOvSSU.cjs');
|
|
28
28
|
let _heroui_input = require("@heroui/input");
|
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-
|
|
2
|
+
import { n as Checkboxes, r as CheckboxesProps, t as CheckboxOption } from "./index-DS54nHWk.cjs";
|
|
3
|
+
import { i as FieldArrayProps, n as FieldArrayChildrenRenderFn, r as FieldArrayFeatures, t as FieldArray } from "./index-BbAjuXqS.cjs";
|
|
4
|
+
import { n as FieldCardProps, r as fieldCardVariants, t as FieldCard } from "./index-5Hp_MzN_.cjs";
|
|
5
5
|
import { n as FormProps, t as Form } from "./index-BNu0EV5x.cjs";
|
|
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-
|
|
6
|
+
import { n as GridProps, t as Grid } from "./index-P3_aBCSt.cjs";
|
|
7
|
+
import { n as InputProps, t as Input } from "./index-CbK-kEVY.cjs";
|
|
8
|
+
import { n as RadioBoxes, r as RadioBoxesProps, t as radioBoxVariants } from "./index-BZ9HvBM6.cjs";
|
|
9
|
+
import { n as RadioTabsProps, t as RadioTabs } from "./index-BOgOCyFF.cjs";
|
|
10
|
+
import { n as RadiosProps, t as Radios } from "./index-C0--RHyE.cjs";
|
|
11
|
+
import { n as SelectProps, t as Select } from "./index-jeFGTign.cjs";
|
|
12
|
+
import { n as SliderProps, t as Slider } from "./index-nE7tTo2d.cjs";
|
|
13
|
+
import { n as SubmitButtonProps, t as SubmitButton } from "./index-Cb0AgRRa.cjs";
|
|
14
|
+
import { n as SwitchProps, t as Switch } from "./index-DamFEDHU.cjs";
|
|
15
|
+
import { n as SwitchBoxProps, r as switchBoxVariants, t as SwitchBox } from "./index-DsQabhNC.cjs";
|
|
16
|
+
import { n as TextAreaProps, t as TextArea } from "./index-BeinxTzw.cjs";
|
|
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-C_MZLZIp.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-Dz_-tPrO.cjs";
|
|
24
|
+
import { n as FieldCopyTestIdButtonProps, t as FieldCopyTestIdButton } from "./index-6eckRMZA.cjs";
|
|
25
|
+
import { n as FieldValidationErrorProps, t as FieldValidationError } from "./index-CYdvpGJF.cjs";
|
|
26
|
+
import { n as useWatchUserChange, t as UseWatchUserChangeOptions } from "./useWatchUserChange-COVdHmki.cjs";
|
|
27
|
+
import { n as useUniformFieldArray, t as UseUniformFieldArrayProps } from "./useUniformFieldArray-BMBc3o7P.cjs";
|
|
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-qNwZcAWj.js";
|
|
3
|
+
import { i as FieldArrayProps, n as FieldArrayChildrenRenderFn, r as FieldArrayFeatures, t as FieldArray } from "./index-CkhVD2Pw.js";
|
|
4
|
+
import { n as FieldCardProps, r as fieldCardVariants, t as FieldCard } from "./index-ByQXPNeM.js";
|
|
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-aHcGnXHf.js";
|
|
7
|
+
import { n as GridProps, t as Grid } from "./index-BuaPmiMt.js";
|
|
8
|
+
import { n as InputProps, t as Input } from "./index-DeHDOwxr.js";
|
|
9
|
+
import { n as RadioBoxes, r as RadioBoxesProps, t as radioBoxVariants } from "./index-CusdoJv3.js";
|
|
10
|
+
import { n as RadioTabsProps, t as RadioTabs } from "./index-ecrJ75NW.js";
|
|
11
|
+
import { n as RadiosProps, t as Radios } from "./index-ClQFLoqX.js";
|
|
12
|
+
import { n as SelectProps, t as Select } from "./index-CPE2gcz3.js";
|
|
13
|
+
import { n as SliderProps, t as Slider } from "./index-BHklv3dW.js";
|
|
14
|
+
import { n as SubmitButtonProps, t as SubmitButton } from "./index-B5BDC8Al.js";
|
|
15
|
+
import { n as SwitchProps, t as Switch } from "./index-Cb8jQhHS.js";
|
|
16
|
+
import { n as SwitchBoxProps, r as switchBoxVariants, t as SwitchBox } from "./index-DMOAkVG4.js";
|
|
17
|
+
import { n as TextAreaProps, t as TextArea } from "./index-CEzwxdlZ.js";
|
|
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-hjpJQf0w.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-giYkUMG_.js";
|
|
26
|
+
import { n as FieldCopyTestIdButtonProps, t as FieldCopyTestIdButton } from "./index-CJcgEkPo.js";
|
|
27
|
+
import { n as FieldValidationErrorProps, t as FieldValidationError } from "./index-DElTYKk8.js";
|
|
28
|
+
import { n as useWatchUserChange, t as UseWatchUserChangeOptions } from "./useWatchUserChange-BAdiqg2q.js";
|
|
29
|
+
import { n as useUniformFieldArray, t as UseUniformFieldArrayProps } from "./useUniformFieldArray-COp7qAwf.js";
|
|
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,28 +1,28 @@
|
|
|
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-Dleq15tG.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-Brwxoghf.js";
|
|
9
|
+
import { n as Checkboxes_default } from "./Checkboxes-C57URc95.js";
|
|
10
|
+
import { t as useUniformFieldArray } from "./useUniformFieldArray-SlUu--d6.js";
|
|
11
|
+
import { n as FieldArray_default } from "./FieldArray-D-vR7oCb.js";
|
|
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-CKEeknzL.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-CUeTrgO_.js";
|
|
17
|
+
import { n as RadioBoxes_default, r as radioBoxVariants } from "./RadioBoxes-B-EbjvDm.js";
|
|
18
|
+
import { n as RadioTabs_default } from "./RadioTabs-C2FIAjx-.js";
|
|
19
|
+
import { n as Radios_default } from "./Radios-N5qCQRBU.js";
|
|
20
|
+
import { n as Select_default } from "./Select-D_LJBu0p.js";
|
|
21
|
+
import { n as Slider_default } from "./Slider-CNlNpxV-.js";
|
|
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-DZptJsFF.js";
|
|
24
|
+
import { n as SwitchBox_default, r as switchBoxVariants } from "./SwitchBox-DZQCW3SK.js";
|
|
25
|
+
import { n as TextArea_default } from "./TextArea-Dg2ZqJm2.js";
|
|
26
26
|
import { n as useClientValidation, t as clientValidationSchemaByName } from "./useClientValidation-C6Daq53C.js";
|
|
27
27
|
import { t as useWatchUserChange } from "./useWatchUserChange-1ELFYX_F.js";
|
|
28
28
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as FieldCopyTestIdButtonProps, t as FieldCopyTestIdButton } from "../../index-
|
|
1
|
+
import { n as FieldCopyTestIdButtonProps, t as FieldCopyTestIdButton } from "../../index-6eckRMZA.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-CJcgEkPo.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-CYdvpGJF.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-DElTYKk8.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"}
|
|
@@ -29,7 +29,7 @@ const useController = (props) => {
|
|
|
29
29
|
const value = event[0]?.target?.value ?? event[0];
|
|
30
30
|
const formattedValue = value === "" ? "" : require_helpers.toNullishString(value);
|
|
31
31
|
field.onChange(formattedValue);
|
|
32
|
-
userChange?.notify(field.name,
|
|
32
|
+
userChange?.notify(field.name, value);
|
|
33
33
|
},
|
|
34
34
|
value: require_helpers.fromNullishString(field.value)
|
|
35
35
|
},
|
|
@@ -45,4 +45,4 @@ Object.defineProperty(exports, 'useController', {
|
|
|
45
45
|
return useController;
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
|
-
//# sourceMappingURL=useController-
|
|
48
|
+
//# sourceMappingURL=useController-BySgDIes.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useController-
|
|
1
|
+
{"version":3,"file":"useController-BySgDIes.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 *\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 // 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":";;;;;;;;;;;;;;;;;;;;;AA0CA,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;AAGjE,UAAM,SAAS,eAAe;AAQ9B,gBAAY,OAAO,MAAM,MAAM,MAAM;;GAGvC,OAAOC,kCAAkB,MAAM,MAAM;GACtC;EACD;EACA;EACD"}
|
|
@@ -28,4 +28,4 @@ interface UseControllerReturn<TFieldValues extends object = object> {
|
|
|
28
28
|
declare const useController: <TFieldValues extends object = object>(props: UseControllerProps$1<TFieldValues>) => UseControllerReturn<TFieldValues>;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { UseControllerReturn as n, useController as r, UseControllerProps$1 as t };
|
|
31
|
-
//# sourceMappingURL=useController-
|
|
31
|
+
//# sourceMappingURL=useController-C_MZLZIp.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useController-
|
|
1
|
+
{"version":3,"file":"useController-C_MZLZIp.d.cts","names":[],"sources":["../src/hooks/useController/useController.ts"],"sourcesContent":[],"mappings":";;;KAaY,6DACV,mBAAsB;UAEP;EAHL,KAAA,EAIH,IAJG,CAIE,qBAJgB,CAIM,YAJN,CACN,EAAA,UAAA,GAAtB,OAAA,CAAA,GAAA;IAEe,QAAA,EAAA,CAAA,GAAA,KAAmB,EAAA,GAAA,EAAA,EAAA,GAAA,IAAA;IACA,KAAA,EAAA,MAAA;EAAtB,CAAA;EAAL,SAAA,EAMI,kBANJ,CAMuB,YANvB,CAAA;EAMuB,UAAA,EAClB,oBADkB;;;;AAmBhC;;;;;;;;;;;;;cAAa,6DACJ,qBAAmB,kBACzB,oBAAoB"}
|
|
@@ -29,7 +29,7 @@ const useController$1 = (props) => {
|
|
|
29
29
|
const value = event[0]?.target?.value ?? event[0];
|
|
30
30
|
const formattedValue = value === "" ? "" : toNullishString(value);
|
|
31
31
|
field.onChange(formattedValue);
|
|
32
|
-
userChange?.notify(field.name,
|
|
32
|
+
userChange?.notify(field.name, value);
|
|
33
33
|
},
|
|
34
34
|
value: fromNullishString(field.value)
|
|
35
35
|
},
|
|
@@ -40,4 +40,4 @@ const useController$1 = (props) => {
|
|
|
40
40
|
|
|
41
41
|
//#endregion
|
|
42
42
|
export { useController$1 as t };
|
|
43
|
-
//# sourceMappingURL=useController-
|
|
43
|
+
//# sourceMappingURL=useController-Dleq15tG.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useController-
|
|
1
|
+
{"version":3,"file":"useController-Dleq15tG.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 *\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 // 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":";;;;;;;;;;;;;;;;;;;;;AA0CA,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;AAGjE,UAAM,SAAS,eAAe;AAQ9B,gBAAY,OAAO,MAAM,MAAM,MAAM;;GAGvC,OAAO,kBAAkB,MAAM,MAAM;GACtC;EACD;EACA;EACD"}
|
|
@@ -28,4 +28,4 @@ interface UseControllerReturn<TFieldValues extends object = object> {
|
|
|
28
28
|
declare const useController$1: <TFieldValues extends object = object>(props: UseControllerProps$1<TFieldValues>) => UseControllerReturn<TFieldValues>;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { UseControllerReturn as n, useController$1 as r, UseControllerProps$1 as t };
|
|
31
|
-
//# sourceMappingURL=useController-
|
|
31
|
+
//# sourceMappingURL=useController-hjpJQf0w.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useController-
|
|
1
|
+
{"version":3,"file":"useController-hjpJQf0w.d.ts","names":[],"sources":["../src/hooks/useController/useController.ts"],"sourcesContent":[],"mappings":";;;KAaY,6DACV,mBAAsB;UAEP;EAHL,KAAA,EAIH,IAJG,CAIE,qBAJgB,CAIM,YAJN,CACN,EAAA,UAAA,GAAtB,OAAA,CAAA,GAAA;IAEe,QAAA,EAAA,CAAA,GAAA,KAAmB,EAAA,GAAA,EAAA,EAAA,GAAA,IAAA;IACA,KAAA,EAAA,MAAA;EAAtB,CAAA;EAAL,SAAA,EAMI,kBANJ,CAMuB,YANvB,CAAA;EAMuB,UAAA,EAClB,oBADkB;;;;AAmBhC;;;;;;;;;;;;;cAAa,+DACJ,qBAAmB,kBACzB,oBAAoB"}
|
|
@@ -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"}
|