@apolitical/component-library 3.3.3 → 3.3.4-4117.1
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/signup-form/signup-form.d.ts +7 -1
- package/form/types/signup-form/signup-form.helpers.get-fields.d.ts +7 -1
- package/index.js +18 -18
- package/index.mjs +1282 -1276
- package/package.json +1 -1
- package/style.css +1 -1
- package/styles/base/_lists.scss +5 -0
- package/styles/variables/colors/theme/_base.scss +2 -0
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
interface ISignupForm {
|
|
2
2
|
className?: string;
|
|
3
|
+
labels?: {
|
|
4
|
+
expectation?: string;
|
|
5
|
+
};
|
|
6
|
+
placeholders?: {
|
|
7
|
+
expectation?: string;
|
|
8
|
+
};
|
|
3
9
|
functions: {
|
|
4
10
|
validateEmail: () => Promise<any>;
|
|
5
11
|
createAccount: (arg: any) => Promise<any>;
|
|
@@ -21,5 +27,5 @@ interface ISignupForm {
|
|
|
21
27
|
submitButton: string;
|
|
22
28
|
showSuccessMessage?: boolean;
|
|
23
29
|
}
|
|
24
|
-
declare const SignupForm: ({ className, functions, shouldShow, submitButton, dataToSubmit, ...props }: ISignupForm) => import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
declare const SignupForm: ({ className, labels, placeholders, functions, shouldShow, submitButton, dataToSubmit, ...props }: ISignupForm) => import("react/jsx-runtime").JSX.Element;
|
|
25
31
|
export default SignupForm;
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IField } from '../../../form/components/form/form.types';
|
|
3
3
|
interface Props {
|
|
4
|
+
labels?: {
|
|
5
|
+
expectation?: string;
|
|
6
|
+
};
|
|
7
|
+
placeholders?: {
|
|
8
|
+
expectation?: string;
|
|
9
|
+
};
|
|
4
10
|
shouldShow: {
|
|
5
11
|
title?: boolean;
|
|
6
12
|
expectation: boolean;
|
|
@@ -50,5 +56,5 @@ interface Props {
|
|
|
50
56
|
}) => string;
|
|
51
57
|
};
|
|
52
58
|
}
|
|
53
|
-
declare const _default: ({ shouldShow, functions: { validateEmail, resendVerificationCode }, refs, state, dispatch, dataToSubmit, intl, }: Props) => IField[];
|
|
59
|
+
declare const _default: ({ shouldShow, placeholders, labels, functions: { validateEmail, resendVerificationCode }, refs, state, dispatch, dataToSubmit, intl, }: Props) => IField[];
|
|
54
60
|
export default _default;
|