@apolitical/component-library 4.5.11 → 4.5.12-beta.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/form/components/form/form.d.ts +1 -1
- package/form/types/profile-form/profile-form.d.ts +2 -0
- package/index.js +41 -41
- package/index.mjs +2007 -2010
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { IFormProps } from './form.types';
|
|
2
|
-
declare const Form: ({ element, fields, className, id: formId, formRef: ref, intlPath, button, secondaryActionButton, meta, children, gtm, functions
|
|
2
|
+
declare const Form: ({ element, fields, className, id: formId, formRef: ref, intlPath, button, secondaryActionButton, meta, children, gtm, functions, ...props }: IFormProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
3
3
|
export default Form;
|
|
@@ -10,6 +10,8 @@ export interface IProfileFormProps {
|
|
|
10
10
|
};
|
|
11
11
|
/** The function to call on success */
|
|
12
12
|
onSuccess?: (data: IFormValues) => Promise<void>;
|
|
13
|
+
/** The function to call when the form is cancelled, e.g. the user presses a cancel button */
|
|
14
|
+
onCancel?: () => void;
|
|
13
15
|
/** The function to call on failure */
|
|
14
16
|
onFailure?: () => void;
|
|
15
17
|
};
|