revdev-components 0.99.0 → 0.100.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/build/hooks/form-values.d.ts +1 -0
- package/build/index.js +8 -0
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -4856,6 +4856,13 @@ function useFormValues() {
|
|
|
4856
4856
|
}, []);
|
|
4857
4857
|
return [values, handleChange];
|
|
4858
4858
|
}
|
|
4859
|
+
function useFormValid() {
|
|
4860
|
+
var _a = React.useState(false), valid = _a[0], setValid = _a[1];
|
|
4861
|
+
var handleValid = React.useCallback(function (newValid) {
|
|
4862
|
+
setValid(newValid);
|
|
4863
|
+
}, []);
|
|
4864
|
+
return [valid, handleValid];
|
|
4865
|
+
}
|
|
4859
4866
|
|
|
4860
4867
|
function useDidMount() {
|
|
4861
4868
|
var _a = React.useState(false), mount = _a[0], setMount = _a[1];
|
|
@@ -5457,6 +5464,7 @@ exports.TextAreaField = TextAreaField;
|
|
|
5457
5464
|
exports.useAppFormRules = useAppFormRules;
|
|
5458
5465
|
exports.useDebounceEffect = useDebounceEffect;
|
|
5459
5466
|
exports.useDidMount = useDidMount;
|
|
5467
|
+
exports.useFormValid = useFormValid;
|
|
5460
5468
|
exports.useFormValues = useFormValues;
|
|
5461
5469
|
exports.useLineProps = useLineProps;
|
|
5462
5470
|
exports.usePrevious = usePrevious;
|