@apolitical/component-library 4.5.11-beta.3 → 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 +3 -1
- 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;
|
|
@@ -3,13 +3,15 @@ export interface IProfileFormProps {
|
|
|
3
3
|
/** The functions to call */
|
|
4
4
|
functions: {
|
|
5
5
|
/** The function to upload the user's profile image */
|
|
6
|
-
uploadImage: () =>
|
|
6
|
+
uploadImage: () => void;
|
|
7
7
|
/** The function to handle getting the location predictions */
|
|
8
8
|
predictPlace: (arg: object) => {
|
|
9
9
|
city: Promise<any[]>;
|
|
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
|
};
|