@fuf-stack/uniform 1.24.12 → 1.26.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.d.ts → index.d.mts} +112 -119
- package/dist/Checkboxes/index.d.mts.map +1 -0
- package/dist/Checkboxes/{index.js → index.mjs} +2 -2
- package/dist/Checkboxes/index.mjs.map +1 -0
- package/dist/DatePicker/{index.d.cts → index.d.mts} +425 -417
- package/dist/{Slider/index.d.cts.map → DatePicker/index.d.mts.map} +1 -1
- package/dist/DatePicker/{index.js → index.mjs} +2 -2
- package/dist/DatePicker/index.mjs.map +1 -0
- package/dist/FieldArray/{index.d.cts → index.d.mts} +177 -164
- package/dist/FieldArray/index.d.mts.map +1 -0
- package/dist/FieldArray/{index.js → index.mjs} +6 -6
- package/dist/FieldArray/index.mjs.map +1 -0
- package/dist/FieldCard/{index.d.cts → index.d.mts} +84 -80
- package/dist/FieldCard/index.d.mts.map +1 -0
- package/dist/FieldCard/{index.js → index.mjs} +4 -4
- package/dist/FieldCard/index.mjs.map +1 -0
- package/dist/{FieldCopyTestIdButton-CRJBix9D.js → FieldCopyTestIdButton-CRJBix9D.mjs} +1 -1
- package/dist/FieldCopyTestIdButton-CRJBix9D.mjs.map +1 -0
- package/dist/{FieldValidationError-ByRoIxaM.js → FieldValidationError-ByRoIxaM.mjs} +1 -1
- package/dist/FieldValidationError-ByRoIxaM.mjs.map +1 -0
- package/dist/{Time/index.d.ts → Form/index.d.mts} +333 -332
- package/dist/Form/index.d.mts.map +1 -0
- package/dist/Form/index.mjs +159 -0
- package/dist/Form/index.mjs.map +1 -0
- package/dist/{FormContext-LgzrDWu1.d.ts → FormContext-CsFiNvuJ.d.mts} +1 -2
- package/dist/FormContext-CsFiNvuJ.d.mts.map +1 -0
- package/dist/{FormContext-DjJOJKxj.js → FormContext-gHSwOlcy.mjs} +2 -2
- package/dist/FormContext-gHSwOlcy.mjs.map +1 -0
- package/dist/Grid/{index.d.ts → index.d.mts} +2 -7
- package/dist/Grid/index.d.mts.map +1 -0
- package/dist/Grid/index.mjs +2 -0
- package/dist/{Grid-CTs-Rb9G.js → Grid-CTs-Rb9G.mjs} +1 -1
- package/dist/{Grid-BbqCRkuY.cjs.map → Grid-CTs-Rb9G.mjs.map} +1 -1
- package/dist/Input/{index.d.cts → index.d.mts} +178 -183
- package/dist/Input/index.d.mts.map +1 -0
- package/dist/Input/{index.js → index.mjs} +3 -3
- package/dist/Input/index.mjs.map +1 -0
- package/dist/RadioBoxes/{index.d.cts → index.d.mts} +366 -371
- package/dist/{Switch/index.d.ts.map → RadioBoxes/index.d.mts.map} +1 -1
- package/dist/RadioBoxes/{index.js → index.mjs} +3 -3
- package/dist/RadioBoxes/{index.cjs.map → index.mjs.map} +1 -1
- package/dist/RadioTabs/{index.d.cts → index.d.mts} +116 -125
- package/dist/RadioTabs/index.d.mts.map +1 -0
- package/dist/RadioTabs/{index.js → index.mjs} +3 -3
- package/dist/RadioTabs/index.mjs.map +1 -0
- package/dist/Radios/{index.d.cts → index.d.mts} +360 -365
- package/dist/{DatePicker/index.d.ts.map → Radios/index.d.mts.map} +1 -1
- package/dist/Radios/{index.js → index.mjs} +3 -3
- package/dist/Radios/index.mjs.map +1 -0
- package/dist/Select/{index.d.cts → index.d.mts} +1028 -1045
- package/dist/Select/{index.d.ts.map → index.d.mts.map} +1 -1
- package/dist/Select/{index.js → index.mjs} +5 -6
- package/dist/Select/index.mjs.map +1 -0
- package/dist/Slider/{index.d.cts → index.d.mts} +451 -464
- package/dist/Slider/{index.d.ts.map → index.d.mts.map} +1 -1
- package/dist/Slider/{index.js → index.mjs} +2 -2
- package/dist/Slider/index.mjs.map +1 -0
- package/dist/SubmitButton/index.d.mts +44 -0
- package/dist/SubmitButton/index.d.mts.map +1 -0
- package/dist/SubmitButton/index.mjs +40 -0
- package/dist/SubmitButton/index.mjs.map +1 -0
- package/dist/Switch/{index.d.cts → index.d.mts} +323 -332
- package/dist/Switch/{index.d.cts.map → index.d.mts.map} +1 -1
- package/dist/Switch/{index.js → index.mjs} +2 -2
- package/dist/Switch/index.mjs.map +1 -0
- package/dist/SwitchBox/{index.d.cts → index.d.mts} +115 -124
- package/dist/SwitchBox/index.d.mts.map +1 -0
- package/dist/SwitchBox/{index.js → index.mjs} +2 -2
- package/dist/SwitchBox/index.mjs.map +1 -0
- package/dist/TextArea/{index.d.cts → index.d.mts} +177 -177
- package/dist/TextArea/index.d.mts.map +1 -0
- package/dist/TextArea/{index.js → index.mjs} +3 -3
- package/dist/TextArea/index.mjs.map +1 -0
- package/dist/Time/{index.d.cts → index.d.mts} +285 -282
- package/dist/Time/index.d.mts.map +1 -0
- package/dist/Time/{index.js → index.mjs} +2 -2
- package/dist/Time/index.mjs.map +1 -0
- package/dist/helpers/{index.d.ts → index.d.mts} +1 -2
- package/dist/helpers/index.d.mts.map +1 -0
- package/dist/helpers/{index.js → index.mjs} +1 -1
- package/dist/helpers/{index.cjs.map → index.mjs.map} +1 -1
- package/dist/hooks/useClientValidation/{index.d.ts → index.d.mts} +1 -2
- package/dist/hooks/useClientValidation/index.d.mts.map +1 -0
- package/dist/hooks/useClientValidation/{index.js → index.mjs} +3 -3
- package/dist/hooks/useClientValidation/index.mjs.map +1 -0
- package/dist/hooks/useController/{index.d.cts → index.d.mts} +2 -1
- package/dist/hooks/useController/index.mjs +7 -0
- package/dist/hooks/useController/{index.cjs.map → index.mjs.map} +1 -1
- package/dist/hooks/useFormContext/index.d.mts +3 -0
- package/dist/hooks/useFormContext/{index.js → index.mjs} +2 -2
- package/dist/hooks/useFormContext/{index.cjs.map → index.mjs.map} +1 -1
- package/dist/hooks/useInput/index.d.mts +2 -0
- package/dist/hooks/useInput/index.mjs +7 -0
- package/dist/hooks/useInput/{index.cjs.map → index.mjs.map} +1 -1
- package/dist/hooks/useInputValueDebounce/{index.d.ts → index.d.mts} +2 -8
- package/dist/hooks/useInputValueDebounce/index.d.mts.map +1 -0
- package/dist/hooks/useInputValueDebounce/{index.js → index.mjs} +2 -2
- package/dist/hooks/useInputValueDebounce/index.mjs.map +1 -0
- package/dist/hooks/useInputValueTransform/{index.d.cts → index.d.mts} +2 -1
- package/dist/hooks/useInputValueTransform/{index.js → index.mjs} +2 -2
- package/dist/hooks/useInputValueTransform/{index.cjs.map → index.mjs.map} +1 -1
- package/dist/hooks/useUniformField/{index.d.ts → index.d.mts} +5 -6
- package/dist/hooks/useUniformField/index.d.mts.map +1 -0
- package/dist/hooks/useUniformField/{index.js → index.mjs} +8 -8
- package/dist/hooks/useUniformField/index.mjs.map +1 -0
- package/dist/hooks/useUniformFieldArray/{index.d.ts → index.d.mts} +6 -13
- package/dist/hooks/useUniformFieldArray/index.d.mts.map +1 -0
- package/dist/hooks/useUniformFieldArray/{index.js → index.mjs} +5 -5
- package/dist/hooks/useUniformFieldArray/index.mjs.map +1 -0
- package/dist/hooks/useWatchFormReset/{index.d.ts → index.d.mts} +2 -4
- package/dist/hooks/useWatchFormReset/index.d.mts.map +1 -0
- package/dist/hooks/useWatchFormReset/{index.js → index.mjs} +2 -2
- package/dist/hooks/useWatchFormReset/index.mjs.map +1 -0
- package/dist/hooks/useWatchUserChange/{index.d.ts → index.d.mts} +2 -6
- package/dist/hooks/useWatchUserChange/index.d.mts.map +1 -0
- package/dist/hooks/useWatchUserChange/{index.js → index.mjs} +2 -2
- package/dist/hooks/useWatchUserChange/index.mjs.map +1 -0
- package/dist/index-CAdGtKE_.d.mts +1 -0
- package/dist/index-CaxrMD1A.d.mts +1 -0
- package/dist/index-CwJo1b4Z.d.mts +1 -0
- package/dist/partials/FieldCopyTestIdButton/{index.d.ts → index.d.mts} +2 -5
- package/dist/partials/FieldCopyTestIdButton/index.d.mts.map +1 -0
- package/dist/partials/FieldCopyTestIdButton/{index.js → index.mjs} +1 -1
- package/dist/partials/FieldValidationError/{index.d.ts → index.d.mts} +2 -7
- package/dist/partials/FieldValidationError/index.d.mts.map +1 -0
- package/dist/partials/FieldValidationError/{index.js → index.mjs} +1 -1
- package/dist/{useController-DxFS0u7c.js → useController-CK39i6HI.mjs} +3 -3
- package/dist/useController-CK39i6HI.mjs.map +1 -0
- package/dist/{useController-CvQqCvFJ.d.ts → useController-DcK2YHbw.d.mts} +1 -2
- package/dist/useController-DcK2YHbw.d.mts.map +1 -0
- package/dist/{useFormContext-CJ9027lh.d.ts → useFormContext-BegmYvGA.d.mts} +4 -5
- package/dist/useFormContext-BegmYvGA.d.mts.map +1 -0
- package/dist/{useFormContext-BUSoUBUP.js → useFormContext-Bw4LokAf.mjs} +3 -3
- package/dist/useFormContext-Bw4LokAf.mjs.map +1 -0
- package/dist/{useInputValueTransform-DJ5zkqSy.js → useInputValueTransform-DJ5zkqSy.mjs} +1 -1
- package/dist/{useInputValueTransform-P62UUZBl.cjs.map → useInputValueTransform-DJ5zkqSy.mjs.map} +1 -1
- package/dist/{useInputValueTransform-DCXXb2Lp.d.ts → useInputValueTransform-LOaEim7k.d.mts} +2 -5
- package/dist/useInputValueTransform-LOaEim7k.d.mts.map +1 -0
- package/package.json +41 -131
- package/dist/Checkboxes/index.cjs +0 -129
- package/dist/Checkboxes/index.cjs.map +0 -1
- package/dist/Checkboxes/index.d.cts +0 -551
- package/dist/Checkboxes/index.d.cts.map +0 -1
- package/dist/Checkboxes/index.d.ts.map +0 -1
- package/dist/Checkboxes/index.js.map +0 -1
- package/dist/DatePicker/index.cjs +0 -202
- package/dist/DatePicker/index.cjs.map +0 -1
- package/dist/DatePicker/index.d.cts.map +0 -1
- package/dist/DatePicker/index.d.ts +0 -1532
- package/dist/DatePicker/index.js.map +0 -1
- package/dist/FieldArray/index.cjs +0 -499
- package/dist/FieldArray/index.cjs.map +0 -1
- package/dist/FieldArray/index.d.cts.map +0 -1
- package/dist/FieldArray/index.d.ts +0 -539
- package/dist/FieldArray/index.d.ts.map +0 -1
- package/dist/FieldArray/index.js.map +0 -1
- package/dist/FieldCard/index.cjs +0 -231
- package/dist/FieldCard/index.cjs.map +0 -1
- package/dist/FieldCard/index.d.cts.map +0 -1
- package/dist/FieldCard/index.d.ts +0 -314
- package/dist/FieldCard/index.d.ts.map +0 -1
- package/dist/FieldCard/index.js.map +0 -1
- package/dist/FieldCopyTestIdButton-CRJBix9D.js.map +0 -1
- package/dist/FieldCopyTestIdButton-D3D_LmJh.cjs +0 -31
- package/dist/FieldCopyTestIdButton-D3D_LmJh.cjs.map +0 -1
- package/dist/FieldValidationError-ByRoIxaM.js.map +0 -1
- package/dist/FieldValidationError-CfYKzl7P.cjs +0 -61
- package/dist/FieldValidationError-CfYKzl7P.cjs.map +0 -1
- package/dist/Form/index.cjs +0 -120
- package/dist/Form/index.cjs.map +0 -1
- package/dist/Form/index.d.cts +0 -43
- package/dist/Form/index.d.cts.map +0 -1
- package/dist/Form/index.d.ts +0 -43
- package/dist/Form/index.d.ts.map +0 -1
- package/dist/Form/index.js +0 -116
- package/dist/Form/index.js.map +0 -1
- package/dist/FormContext-BLWS7bhO.d.cts +0 -20
- package/dist/FormContext-BLWS7bhO.d.cts.map +0 -1
- package/dist/FormContext-DjJOJKxj.js.map +0 -1
- package/dist/FormContext-LgzrDWu1.d.ts.map +0 -1
- package/dist/FormContext-eCnp-y2P.cjs +0 -319
- package/dist/FormContext-eCnp-y2P.cjs.map +0 -1
- package/dist/Grid/index.cjs +0 -6
- package/dist/Grid/index.d.cts +0 -22
- package/dist/Grid/index.d.cts.map +0 -1
- package/dist/Grid/index.d.ts.map +0 -1
- package/dist/Grid/index.js +0 -2
- package/dist/Grid-BbqCRkuY.cjs +0 -25
- package/dist/Grid-CTs-Rb9G.js.map +0 -1
- package/dist/Input/index.cjs +0 -100
- package/dist/Input/index.cjs.map +0 -1
- package/dist/Input/index.d.cts.map +0 -1
- package/dist/Input/index.d.ts +0 -677
- package/dist/Input/index.d.ts.map +0 -1
- package/dist/Input/index.js.map +0 -1
- package/dist/RadioBoxes/index.cjs +0 -147
- package/dist/RadioBoxes/index.d.cts.map +0 -1
- package/dist/RadioBoxes/index.d.ts +0 -1477
- package/dist/RadioBoxes/index.d.ts.map +0 -1
- package/dist/RadioBoxes/index.js.map +0 -1
- package/dist/RadioTabs/index.cjs +0 -132
- package/dist/RadioTabs/index.cjs.map +0 -1
- package/dist/RadioTabs/index.d.cts.map +0 -1
- package/dist/RadioTabs/index.d.ts +0 -585
- package/dist/RadioTabs/index.d.ts.map +0 -1
- package/dist/RadioTabs/index.js.map +0 -1
- package/dist/Radios/index.cjs +0 -97
- package/dist/Radios/index.cjs.map +0 -1
- package/dist/Radios/index.d.cts.map +0 -1
- package/dist/Radios/index.d.ts +0 -1399
- package/dist/Radios/index.d.ts.map +0 -1
- package/dist/Radios/index.js.map +0 -1
- package/dist/Select/index.cjs +0 -303
- package/dist/Select/index.cjs.map +0 -1
- package/dist/Select/index.d.cts.map +0 -1
- package/dist/Select/index.d.ts +0 -3920
- package/dist/Select/index.js.map +0 -1
- package/dist/Slider/index.cjs +0 -117
- package/dist/Slider/index.cjs.map +0 -1
- package/dist/Slider/index.d.ts +0 -1760
- package/dist/Slider/index.js.map +0 -1
- package/dist/SubmitButton/index.cjs +0 -35
- package/dist/SubmitButton/index.cjs.map +0 -1
- package/dist/SubmitButton/index.d.cts +0 -38
- package/dist/SubmitButton/index.d.cts.map +0 -1
- package/dist/SubmitButton/index.d.ts +0 -38
- package/dist/SubmitButton/index.d.ts.map +0 -1
- package/dist/SubmitButton/index.js +0 -31
- package/dist/SubmitButton/index.js.map +0 -1
- package/dist/Switch/index.cjs +0 -86
- package/dist/Switch/index.cjs.map +0 -1
- package/dist/Switch/index.d.ts +0 -1257
- package/dist/Switch/index.js.map +0 -1
- package/dist/SwitchBox/index.cjs +0 -158
- package/dist/SwitchBox/index.cjs.map +0 -1
- package/dist/SwitchBox/index.d.cts.map +0 -1
- package/dist/SwitchBox/index.d.ts +0 -473
- package/dist/SwitchBox/index.d.ts.map +0 -1
- package/dist/SwitchBox/index.js.map +0 -1
- package/dist/TextArea/index.cjs +0 -70
- package/dist/TextArea/index.cjs.map +0 -1
- package/dist/TextArea/index.d.cts.map +0 -1
- package/dist/TextArea/index.d.ts +0 -659
- package/dist/TextArea/index.d.ts.map +0 -1
- package/dist/TextArea/index.js.map +0 -1
- package/dist/Time/index.cjs +0 -228
- package/dist/Time/index.cjs.map +0 -1
- package/dist/Time/index.d.cts.map +0 -1
- package/dist/Time/index.d.ts.map +0 -1
- package/dist/Time/index.js.map +0 -1
- package/dist/helpers/index.cjs +0 -430
- package/dist/helpers/index.d.cts +0 -238
- package/dist/helpers/index.d.cts.map +0 -1
- package/dist/helpers/index.d.ts.map +0 -1
- package/dist/helpers/index.js.map +0 -1
- package/dist/hooks/useClientValidation/index.cjs +0 -185
- package/dist/hooks/useClientValidation/index.cjs.map +0 -1
- package/dist/hooks/useClientValidation/index.d.cts +0 -148
- package/dist/hooks/useClientValidation/index.d.cts.map +0 -1
- package/dist/hooks/useClientValidation/index.d.ts.map +0 -1
- package/dist/hooks/useClientValidation/index.js.map +0 -1
- package/dist/hooks/useController/index.cjs +0 -8
- package/dist/hooks/useController/index.d.ts +0 -2
- package/dist/hooks/useController/index.js +0 -7
- package/dist/hooks/useController/index.js.map +0 -1
- package/dist/hooks/useFormContext/index.cjs +0 -9
- package/dist/hooks/useFormContext/index.d.cts +0 -2
- package/dist/hooks/useFormContext/index.d.ts +0 -2
- package/dist/hooks/useFormContext/index.js.map +0 -1
- package/dist/hooks/useInput/index.cjs +0 -13
- package/dist/hooks/useInput/index.d.cts +0 -2
- package/dist/hooks/useInput/index.d.ts +0 -2
- package/dist/hooks/useInput/index.js +0 -7
- package/dist/hooks/useInput/index.js.map +0 -1
- package/dist/hooks/useInputValueDebounce/index.cjs +0 -92
- package/dist/hooks/useInputValueDebounce/index.cjs.map +0 -1
- package/dist/hooks/useInputValueDebounce/index.d.cts +0 -66
- package/dist/hooks/useInputValueDebounce/index.d.cts.map +0 -1
- package/dist/hooks/useInputValueDebounce/index.d.ts.map +0 -1
- package/dist/hooks/useInputValueDebounce/index.js.map +0 -1
- package/dist/hooks/useInputValueTransform/index.cjs +0 -8
- package/dist/hooks/useInputValueTransform/index.d.ts +0 -2
- package/dist/hooks/useInputValueTransform/index.js.map +0 -1
- package/dist/hooks/useUniformField/index.cjs +0 -139
- package/dist/hooks/useUniformField/index.cjs.map +0 -1
- package/dist/hooks/useUniformField/index.d.cts +0 -100
- package/dist/hooks/useUniformField/index.d.cts.map +0 -1
- package/dist/hooks/useUniformField/index.d.ts.map +0 -1
- package/dist/hooks/useUniformField/index.js.map +0 -1
- package/dist/hooks/useUniformFieldArray/index.cjs +0 -102
- package/dist/hooks/useUniformFieldArray/index.cjs.map +0 -1
- package/dist/hooks/useUniformFieldArray/index.d.cts +0 -81
- package/dist/hooks/useUniformFieldArray/index.d.cts.map +0 -1
- package/dist/hooks/useUniformFieldArray/index.d.ts.map +0 -1
- package/dist/hooks/useUniformFieldArray/index.js.map +0 -1
- package/dist/hooks/useWatchFormReset/index.cjs +0 -38
- package/dist/hooks/useWatchFormReset/index.cjs.map +0 -1
- package/dist/hooks/useWatchFormReset/index.d.cts +0 -38
- package/dist/hooks/useWatchFormReset/index.d.cts.map +0 -1
- package/dist/hooks/useWatchFormReset/index.d.ts.map +0 -1
- package/dist/hooks/useWatchFormReset/index.js.map +0 -1
- package/dist/hooks/useWatchUserChange/index.cjs +0 -88
- package/dist/hooks/useWatchUserChange/index.cjs.map +0 -1
- package/dist/hooks/useWatchUserChange/index.d.cts +0 -80
- package/dist/hooks/useWatchUserChange/index.d.cts.map +0 -1
- package/dist/hooks/useWatchUserChange/index.d.ts.map +0 -1
- package/dist/hooks/useWatchUserChange/index.js.map +0 -1
- package/dist/index-BKZ67WMa.d.cts +0 -1
- package/dist/index-BKZ67WMa.d.ts +0 -1
- package/dist/index-BVVgDSdq.d.cts +0 -1
- package/dist/index-BVVgDSdq.d.ts +0 -1
- package/dist/index-DmtQKWjk.d.cts +0 -1
- package/dist/index-DmtQKWjk.d.ts +0 -1
- package/dist/partials/FieldCopyTestIdButton/index.cjs +0 -6
- package/dist/partials/FieldCopyTestIdButton/index.d.cts +0 -14
- package/dist/partials/FieldCopyTestIdButton/index.d.cts.map +0 -1
- package/dist/partials/FieldCopyTestIdButton/index.d.ts.map +0 -1
- package/dist/partials/FieldValidationError/index.cjs +0 -6
- package/dist/partials/FieldValidationError/index.d.cts +0 -22
- package/dist/partials/FieldValidationError/index.d.cts.map +0 -1
- package/dist/partials/FieldValidationError/index.d.ts.map +0 -1
- package/dist/useController-CvQqCvFJ.d.ts.map +0 -1
- package/dist/useController-D87H3etM.cjs +0 -50
- package/dist/useController-D87H3etM.cjs.map +0 -1
- package/dist/useController-DxFS0u7c.js.map +0 -1
- package/dist/useController-fblEApv_.d.cts +0 -33
- package/dist/useController-fblEApv_.d.cts.map +0 -1
- package/dist/useFormContext-BSIXyfbo.cjs +0 -146
- package/dist/useFormContext-BSIXyfbo.cjs.map +0 -1
- package/dist/useFormContext-BUSoUBUP.js.map +0 -1
- package/dist/useFormContext-CJ9027lh.d.ts.map +0 -1
- package/dist/useFormContext-D84GPAdx.d.cts +0 -67
- package/dist/useFormContext-D84GPAdx.d.cts.map +0 -1
- package/dist/useInput-ClpHDPdr.d.ts +0 -2
- package/dist/useInputValueTransform-DCXXb2Lp.d.cts +0 -108
- package/dist/useInputValueTransform-DCXXb2Lp.d.cts.map +0 -1
- package/dist/useInputValueTransform-DCXXb2Lp.d.ts.map +0 -1
- package/dist/useInputValueTransform-DJ5zkqSy.js.map +0 -1
- package/dist/useInputValueTransform-P62UUZBl.cjs +0 -115
- /package/dist/{useInput-C0aJaAGe.js → useInput-C0aJaAGe.mjs} +0 -0
- /package/dist/{useInput-ClpHDPdr.d.cts → useInput-ClpHDPdr.d.mts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../../src/Slider/Slider.tsx"],"mappings":";;;cAYa,kBAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA4BtB,eAAe,eAAe;KAC9B,YAAY,mBAAmB;UAEnB,oBAAoB;;EAEnC;;EAEA,YAAY;;EAEZ;;EAEA,aAAa;;EAEb;;EAEA;;EAEA;;;;;EAKA;;;;;EAKA;;EAEA,eAAe;;;;;EAKf;;EAEA;;;;;EAKA;;;;;EAKA;;;;;cAMI,WAAU,WAAA,YAAA,YAAA,MAAA,WAAA,MAAA,cAAA,MAAA,UAAA,aAAA,qBAYb,gCAAW,IAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useUniformField } from "../hooks/useUniformField/index.
|
|
1
|
+
import { useUniformField } from "../hooks/useUniformField/index.mjs";
|
|
2
2
|
import { cn, tv, variantsToClassNames } from "@fuf-stack/pixel-utils";
|
|
3
3
|
import { useRef } from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -109,4 +109,4 @@ var Slider_default = Slider$1;
|
|
|
109
109
|
//#endregion
|
|
110
110
|
export { Slider_default as default, sliderVariants };
|
|
111
111
|
|
|
112
|
-
//# sourceMappingURL=index.
|
|
112
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["Slider","HeroUISlider","Slider"],"sources":["../../src/Slider/Slider.tsx","../../src/Slider/index.ts"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { ReactNode } from 'react';\n\nimport { useRef } from 'react';\n\nimport { Slider as HeroUISlider } from '@heroui/slider';\nimport { VisuallyHidden } from '@react-aria/visually-hidden';\n\nimport { cn, tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\nimport { useUniformField } from '../hooks/useUniformField';\n\nexport const sliderVariants = tv({\n slots: {\n base: [\n // Enables group-data selectors used by slider slots.\n 'group',\n // Match shared field wrapper layout.\n 'flex w-full flex-col',\n // Keep spacing between label/track consistent.\n 'gap-y-1.5',\n ],\n endContent: '',\n errorMessage: 'ml-1 mt-1',\n filler: '',\n // see HeroUI styles for group-data condition,\n // e.g.: https://github.com/heroui-inc/heroui/blob/main/packages/core/theme/src/components/select.ts\n label:\n 'cursor-default text-sm text-foreground subpixel-antialiased group-data-[invalid=true]:!text-danger group-data-[required=true]:after:ml-0.5 group-data-[required=true]:after:text-danger group-data-[required=true]:after:content-[\"*\"]',\n labelWrapper: 'mb-1',\n mark: '',\n startContent: '',\n step: '',\n thumb: '',\n track: '',\n trackWrapper: '',\n value: '',\n },\n});\n\ntype VariantProps = TVProps<typeof sliderVariants>;\ntype ClassName = TVClassName<typeof sliderVariants>;\n\nexport interface SliderProps extends VariantProps {\n /** Custom aria-label for accessibility. If not provided, falls back to field name when no visible label exists */\n ariaLabel?: string;\n /** CSS class name */\n className?: ClassName;\n /** input field is disabled */\n disabled?: boolean;\n /** Content to display at the end of the slider */\n endContent?: ReactNode;\n /** The offset from where the fill should start */\n fillOffset?: number;\n /** form field label */\n label?: string;\n /** form field name */\n name: string;\n /**\n * Whether to show step dots on the slider\n * @default false\n */\n showSteps?: boolean;\n /**\n * The size of the slider\n * @default \"md\"\n */\n size?: 'sm' | 'md' | 'lg';\n /** Content to display at the start of the slider */\n startContent?: ReactNode;\n /**\n * The step value of the slider\n * @default 1\n */\n step?: number;\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n /**\n * The minimum value of the slider\n * @default 0\n */\n minValue?: number;\n /**\n * The maximum value of the slider\n * @default 100\n */\n maxValue?: number;\n}\n\n/**\n * Slider component based on [HeroUI Slider](https://www.heroui.com//docs/components/slider)\n */\nconst Slider = ({\n className = undefined,\n endContent = undefined,\n fillOffset = undefined,\n name,\n showSteps = false,\n size = 'md',\n startContent = undefined,\n step = 1,\n minValue = 0,\n maxValue = 100,\n ...uniformFieldProps\n}: SliderProps) => {\n const {\n ariaLabel,\n disabled,\n field,\n getErrorMessageProps,\n getHelperWrapperProps,\n invalid,\n label,\n onBlur,\n onChange,\n ref,\n required,\n errorMessage,\n testId,\n } = useUniformField({\n name,\n ...uniformFieldProps,\n });\n\n // Ref for the visual slider to forward focus\n const visualSliderRef = useRef<HTMLDivElement>(null);\n\n // classNames from slots\n const variants = sliderVariants();\n const classNames = variantsToClassNames(variants, className, 'base');\n\n // Get the current value, defaulting to minValue if null/undefined\n const currentValue = field.value != null ? Number(field.value) : minValue;\n\n return (\n <div\n className={classNames.base}\n data-invalid={invalid}\n data-required={required}\n data-testid={testId}\n >\n {/* Visually hidden input for form accessibility and focus management */}\n <VisuallyHidden>\n <input\n ref={ref}\n aria-label={ariaLabel}\n disabled={disabled}\n max={maxValue}\n min={minValue}\n name={name}\n onBlur={onBlur}\n onChange={(e) => {\n onChange(Number(e.target.value));\n }}\n onFocus={() => {\n // When RHF focuses this hidden input (e.g., on validation error),\n // forward focus to the visual slider to show focus ring\n visualSliderRef.current?.focus();\n }}\n step={step}\n tabIndex={-1}\n type=\"range\"\n value={currentValue}\n />\n </VisuallyHidden>\n {/* Visual HeroUISlider component */}\n <HeroUISlider\n ref={visualSliderRef}\n aria-label={ariaLabel}\n classNames={{\n endContent: classNames.endContent,\n filler: classNames.filler,\n label: classNames.label,\n labelWrapper: classNames.labelWrapper,\n mark: classNames.mark,\n startContent: classNames.startContent,\n step: classNames.step,\n thumb: classNames.thumb,\n track: classNames.track,\n trackWrapper: classNames.trackWrapper,\n value: classNames.value,\n }}\n color={invalid ? 'danger' : 'primary'}\n endContent={endContent}\n fillOffset={fillOffset}\n isDisabled={disabled}\n label={label}\n maxValue={maxValue}\n minValue={minValue}\n name={`${name}_slider`}\n onBlur={onBlur}\n onChange={onChange}\n showSteps={showSteps}\n size={size}\n startContent={startContent}\n step={step}\n value={currentValue}\n />\n {invalid ? (\n <div\n {...getHelperWrapperProps()}\n className={cn(\n getHelperWrapperProps()?.className,\n // force helper to be visible (for some reason it's hidden by default) and remove margin\n 'ml-0 block',\n )}\n >\n <div {...getErrorMessageProps()}>{errorMessage}</div>\n </div>\n ) : null}\n </div>\n );\n};\n\nexport default Slider;\n","import Slider from './Slider';\n\nexport type { SliderProps } from './Slider';\n\nexport { sliderVariants } from './Slider';\n\nexport default Slider;\n"],"mappings":";;;;;;;AAYA,MAAa,iBAAiB,GAAG,EAC/B,OAAO;CACL,MAAM;EAEJ;EAEA;EAEA;CACF;CACA,YAAY;CACZ,cAAc;CACd,QAAQ;CAGR,OACE;CACF,cAAc;CACd,MAAM;CACN,cAAc;CACd,MAAM;CACN,OAAO;CACP,OAAO;CACP,cAAc;CACd,OAAO;AACT,EACF,CAAC;;;;AAsDD,MAAMA,YAAU,EACd,YAAY,KAAA,GACZ,aAAa,KAAA,GACb,aAAa,KAAA,GACb,MACA,YAAY,OACZ,OAAO,MACP,eAAe,KAAA,GACf,OAAO,GACP,WAAW,GACX,WAAW,KACX,GAAG,wBAC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|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { ButtonProps } from "@fuf-stack/pixels";
|
|
3
|
+
//#region src/SubmitButton/SubmitButton.d.ts
|
|
4
|
+
interface SubmitButtonProps {
|
|
5
|
+
/** sets HTML aria-label attribute */
|
|
6
|
+
ariaLabel?: string;
|
|
7
|
+
/** child components */
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
/** CSS class name */
|
|
10
|
+
className?: string;
|
|
11
|
+
/** color of the submit button */
|
|
12
|
+
color?: ButtonProps['color'];
|
|
13
|
+
/** icon of the submit button */
|
|
14
|
+
icon?: ButtonProps['icon'];
|
|
15
|
+
/** If set loading animation is shown */
|
|
16
|
+
loading?: boolean;
|
|
17
|
+
/** id of the form this button should submit when it is rendered OUTSIDE that
|
|
18
|
+
* form (e.g. a modal footer). Associates the button with the form via the
|
|
19
|
+
* native HTML `form` attribute — set the same id on `<Form remoteFormId>`. */
|
|
20
|
+
remoteFormId?: string;
|
|
21
|
+
/** size of the submit button */
|
|
22
|
+
size?: ButtonProps['size'];
|
|
23
|
+
/** HTML data-testid attribute used in e2e tests */
|
|
24
|
+
testId?: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Submit button for a uniform `Form`.
|
|
28
|
+
*
|
|
29
|
+
* It is a plain native submit button (`type="submit"`) and reads no form
|
|
30
|
+
* context, so it works both inside a `<Form>` and standalone. Submission is
|
|
31
|
+
* handled entirely by the browser:
|
|
32
|
+
* - click submits the associated form,
|
|
33
|
+
* - pressing Enter in a form field triggers native implicit form submission.
|
|
34
|
+
*
|
|
35
|
+
* When rendered OUTSIDE the form it belongs to, pass `remoteFormId` (matching the
|
|
36
|
+
* form's `remoteFormId`) to associate them via the native HTML `form` attribute.
|
|
37
|
+
*
|
|
38
|
+
* See SUBMITBUTTON_CONTEXT.md for the (intentionally dropped) context-based
|
|
39
|
+
* features `isSubmitting` and `triggerSubmit` and how to re-add them safely.
|
|
40
|
+
*/
|
|
41
|
+
declare const SubmitButton: ({ ariaLabel, children, className, color, icon, loading, remoteFormId, size, testId }: SubmitButtonProps) => import("react").JSX.Element;
|
|
42
|
+
//#endregion
|
|
43
|
+
export { type SubmitButtonProps, SubmitButton as default };
|
|
44
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../../src/SubmitButton/SubmitButton.tsx"],"mappings":";;;UAMiB;;EAEf;;EAEA,WAAW;;EAEX;;EAEA,QAAQ;;EAER,OAAO;;EAEP;;;;EAIA;;EAEA,OAAO;;EAEP;;;;;;;;;;;;;;;;;cAkBI,iBAAgB,WAAA,UAAA,WAAA,OAAA,MAAA,SAAA,cAAA,MAAA,UAUnB,sCAAiB,IAAA"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { cn, slugify } from "@fuf-stack/pixel-utils";
|
|
2
|
+
import { Button } from "@fuf-stack/pixels";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
//#region src/SubmitButton/SubmitButton.tsx
|
|
5
|
+
/**
|
|
6
|
+
* Submit button for a uniform `Form`.
|
|
7
|
+
*
|
|
8
|
+
* It is a plain native submit button (`type="submit"`) and reads no form
|
|
9
|
+
* context, so it works both inside a `<Form>` and standalone. Submission is
|
|
10
|
+
* handled entirely by the browser:
|
|
11
|
+
* - click submits the associated form,
|
|
12
|
+
* - pressing Enter in a form field triggers native implicit form submission.
|
|
13
|
+
*
|
|
14
|
+
* When rendered OUTSIDE the form it belongs to, pass `remoteFormId` (matching the
|
|
15
|
+
* form's `remoteFormId`) to associate them via the native HTML `form` attribute.
|
|
16
|
+
*
|
|
17
|
+
* See SUBMITBUTTON_CONTEXT.md for the (intentionally dropped) context-based
|
|
18
|
+
* features `isSubmitting` and `triggerSubmit` and how to re-add them safely.
|
|
19
|
+
*/
|
|
20
|
+
const SubmitButton = ({ ariaLabel = "Submit form", children = "Submit", className = void 0, color = "success", icon = void 0, loading = false, remoteFormId = void 0, size = "md", testId = "form_submit_button" }) => {
|
|
21
|
+
return /* @__PURE__ */ jsx(Button, {
|
|
22
|
+
ariaLabel,
|
|
23
|
+
className: cn(className),
|
|
24
|
+
color,
|
|
25
|
+
form: remoteFormId,
|
|
26
|
+
icon,
|
|
27
|
+
loading,
|
|
28
|
+
size,
|
|
29
|
+
testId: slugify(testId, { replaceDots: true }),
|
|
30
|
+
type: "submit",
|
|
31
|
+
children
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
//#endregion
|
|
35
|
+
//#region src/SubmitButton/index.ts
|
|
36
|
+
var SubmitButton_default = SubmitButton;
|
|
37
|
+
//#endregion
|
|
38
|
+
export { SubmitButton_default as default };
|
|
39
|
+
|
|
40
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../src/SubmitButton/SubmitButton.tsx","../../src/SubmitButton/index.ts"],"sourcesContent":["import type { ButtonProps } from '@fuf-stack/pixels';\nimport type { ReactNode } from 'react';\n\nimport { cn, slugify } from '@fuf-stack/pixel-utils';\nimport { Button } from '@fuf-stack/pixels';\n\nexport interface SubmitButtonProps {\n /** sets HTML aria-label attribute */\n ariaLabel?: string;\n /** child components */\n children?: ReactNode;\n /** CSS class name */\n className?: string;\n /** color of the submit button */\n color?: ButtonProps['color'];\n /** icon of the submit button */\n icon?: ButtonProps['icon'];\n /** If set loading animation is shown */\n loading?: boolean;\n /** id of the form this button should submit when it is rendered OUTSIDE that\n * form (e.g. a modal footer). Associates the button with the form via the\n * native HTML `form` attribute — set the same id on `<Form remoteFormId>`. */\n remoteFormId?: string;\n /** size of the submit button */\n size?: ButtonProps['size'];\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n}\n\n/**\n * Submit button for a uniform `Form`.\n *\n * It is a plain native submit button (`type=\"submit\"`) and reads no form\n * context, so it works both inside a `<Form>` and standalone. Submission is\n * handled entirely by the browser:\n * - click submits the associated form,\n * - pressing Enter in a form field triggers native implicit form submission.\n *\n * When rendered OUTSIDE the form it belongs to, pass `remoteFormId` (matching the\n * form's `remoteFormId`) to associate them via the native HTML `form` attribute.\n *\n * See SUBMITBUTTON_CONTEXT.md for the (intentionally dropped) context-based\n * features `isSubmitting` and `triggerSubmit` and how to re-add them safely.\n */\nconst SubmitButton = ({\n ariaLabel = 'Submit form',\n children = 'Submit',\n className = undefined,\n color = 'success',\n icon = undefined,\n loading = false,\n remoteFormId = undefined,\n size = 'md',\n testId = 'form_submit_button',\n}: SubmitButtonProps) => {\n return (\n <Button\n ariaLabel={ariaLabel}\n className={cn(className)}\n color={color}\n // associate with a form rendered elsewhere via the native `form` attribute\n // (see remoteFormId prop) so the button can submit a form it is not a DOM\n // descendant of\n form={remoteFormId}\n icon={icon}\n loading={loading}\n size={size}\n testId={slugify(testId, { replaceDots: true })}\n // type=\"submit\" makes the button a submit control of its form. Required for\n // the browser's native \"implicit form submission\" (pressing Enter in a form\n // field submits the form and thereby runs its validation).\n type=\"submit\"\n >\n {children}\n </Button>\n );\n};\n\nexport default SubmitButton;\n","import SubmitButton from './SubmitButton';\n\nexport type { SubmitButtonProps } from './SubmitButton';\n\nexport default SubmitButton;\n"],"mappings":";;;;;;;;;;;;;;;;;;;AA4CA,MAAM,gBAAgB,EACpB,YAAY,eACZ,WAAW,UACX,YAAY,KAAA,GACZ,QAAQ,WACR,OAAO,KAAA,GACP,UAAU,OACV,eAAe,KAAA,GACf,OAAO,MACP,SAAS,2BACc;CACvB,OACE,oBAAC,QAAD;EACa;EACX,WAAW,GAAG,SAAS;EAChB;EAIP,MAAM;EACA;EACG;EACH;EACN,QAAQ,QAAQ,QAAQ,EAAE,aAAa,KAAK,CAAC;EAI7C,MAAK;EAEJ;CACK,CAAA;AAEZ;;;ACxEA,IAAA,uBAAe"}
|