ab-ui-library 1.42.9 → 1.42.10

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.
@@ -132,6 +132,7 @@ var FormContainer = function FormContainer(props) {
132
132
  isDirty: isDirty,
133
133
  isSubmitted: isSubmitted,
134
134
  isSubmitting: isSubmitting,
135
+ isValid: formState.isValid,
135
136
  clearErrors: clearErrors,
136
137
  setError: setError,
137
138
  dirtyFields: dirtyFields,
@@ -17,5 +17,6 @@ export type TFormContextProps = {
17
17
  trigger?: UseFormTrigger<TFormData>;
18
18
  getFieldState?: UseFormGetFieldState<TFormData>;
19
19
  unregister?: UseFormUnregister<TFormData>;
20
+ isValid: boolean;
20
21
  };
21
22
  export declare const FormContext: import("react").Context<TFormContextProps>;
package/context/types.js CHANGED
@@ -6,7 +6,8 @@ var FormContext = /*#__PURE__*/createContext({
6
6
  setValue: noop,
7
7
  isSubmitted: false,
8
8
  isSubmitting: false,
9
- dirtyFields: {}
9
+ dirtyFields: {},
10
+ isValid: false
10
11
  });
11
12
 
12
13
  export { FormContext };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ab-ui-library",
3
- "version": "1.42.9",
3
+ "version": "1.42.10",
4
4
  "description": "UI library for AM",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",