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.
@@ -1 +1,2 @@
1
1
  export declare function useFormValues<TValues extends object>(): [Partial<TValues>, (value: Partial<TValues>, all: TValues) => void];
2
+ export declare function useFormValid(): [boolean, (newValid: boolean) => void];
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "revdev-components",
3
- "version": "0.99.0",
3
+ "version": "0.100.0",
4
4
  "main": "build/index.js",
5
5
  "module": "build/index.esm.js",
6
6
  "scripts": {