@apolitical/component-library 5.5.4-SW.0 → 5.5.4-ac.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/types/password-form/index.d.ts +1 -1
- package/form/types/password-form/password-form.d.ts +2 -6
- package/form/types/profile-form/profile-form.d.ts +2 -8
- package/form/types/publish-article-form/components/index.d.ts +1 -0
- package/form/types/publish-article-form/components/progress-bar/index.d.ts +1 -0
- package/form/types/publish-article-form/components/progress-bar/progress-bar.d.ts +2 -0
- package/general/progress-tracker/index.d.ts +1 -1
- package/general/progress-tracker/progress-tracker.d.ts +2 -2
- package/helpers/intl.d.ts +1 -0
- package/index.js +29 -29
- package/index.mjs +1560 -1548
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as PasswordForm
|
|
1
|
+
export { default as PasswordForm } from './password-form';
|
|
2
2
|
export * from './helper';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FormValues, IFormValues } from '../../components/form/form.types';
|
|
3
|
-
|
|
3
|
+
interface Props {
|
|
4
4
|
/** Indicated for whether to show the current password field */
|
|
5
5
|
isPasswordChange?: boolean;
|
|
6
6
|
/** The functions being passed to the form */
|
|
@@ -16,10 +16,6 @@ export interface IPasswordFormProps {
|
|
|
16
16
|
/** The function to call when the cancel button is clicked */
|
|
17
17
|
onCancel?: () => void;
|
|
18
18
|
};
|
|
19
|
-
/** Specify custom text for the submit button */
|
|
20
|
-
button?: {
|
|
21
|
-
text: string;
|
|
22
|
-
};
|
|
23
19
|
}
|
|
24
|
-
declare const PasswordForm: React.FC<
|
|
20
|
+
declare const PasswordForm: React.FC<Props>;
|
|
25
21
|
export default PasswordForm;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import type { IFormValues, IFormMeta } from './../../components/form/form.types';
|
|
2
2
|
export interface IProfileFormProps<OnSuccessArgs = IFormValues> {
|
|
3
|
-
/** Indicated for whether to the form is for creating the profile */
|
|
4
|
-
isCreateProfile?: boolean;
|
|
5
3
|
/** The hooks used in the form */
|
|
6
4
|
hooks: {
|
|
7
5
|
/** The hook to predict the user's location */
|
|
@@ -18,7 +16,7 @@ export interface IProfileFormProps<OnSuccessArgs = IFormValues> {
|
|
|
18
16
|
/** The functions to call */
|
|
19
17
|
functions: {
|
|
20
18
|
/** The function to upload the user's profile image */
|
|
21
|
-
uploadImage
|
|
19
|
+
uploadImage: () => Promise<unknown>;
|
|
22
20
|
/** The function to call on success */
|
|
23
21
|
onSuccess?: (data: OnSuccessArgs) => Promise<void>;
|
|
24
22
|
/** The function to call when the form is cancelled, e.g. the user presses a cancel button */
|
|
@@ -33,10 +31,6 @@ export interface IProfileFormProps<OnSuccessArgs = IFormValues> {
|
|
|
33
31
|
context?: string;
|
|
34
32
|
event?: string;
|
|
35
33
|
};
|
|
36
|
-
/** Specify custom text for the submit button */
|
|
37
|
-
button?: {
|
|
38
|
-
text: string;
|
|
39
|
-
};
|
|
40
34
|
}
|
|
41
|
-
declare const ProfileForm: ({
|
|
35
|
+
declare const ProfileForm: ({ hooks, functions, meta, gtm }: IProfileFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
42
36
|
export default ProfileForm;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './progress-bar';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ProgressBar } from './progress-bar';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as ProgressTracker
|
|
1
|
+
export { default as ProgressTracker } from './progress-tracker';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
2
|
+
interface Props {
|
|
3
3
|
/** The current step */
|
|
4
4
|
currentStep?: number;
|
|
5
5
|
/** The total number of steps */
|
|
6
6
|
steps?: number;
|
|
7
7
|
}
|
|
8
|
-
declare const NavigationDots: React.FC<
|
|
8
|
+
declare const NavigationDots: React.FC<Props>;
|
|
9
9
|
export default NavigationDots;
|
package/helpers/intl.d.ts
CHANGED
|
@@ -288,6 +288,7 @@ export declare const checkIntlPathExists: (path: string, language?: {
|
|
|
288
288
|
publishArticleForm_error: string;
|
|
289
289
|
publishArticleForm_error_underMinLength: string;
|
|
290
290
|
publishArticleForm_error_loggedOut: string;
|
|
291
|
+
publishArticleForm_progressBar: string;
|
|
291
292
|
ratings_text: string;
|
|
292
293
|
ratings_stars: string;
|
|
293
294
|
ratings_low: string;
|