@zealicsolutions/web-ui 0.1.26 → 0.1.28
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/dist/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/helpers/validations.d.ts +5 -0
- package/dist/cjs/src/molecules/InputField/InputField.d.ts +2 -2
- package/dist/cjs/src/organisms/AcquisitionForm/AcquisitionForm.d.ts +4 -2
- package/dist/cjs/src/organisms/AcquisitionForm/AcquisitionForm.stories.d.ts +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/helpers/validations.d.ts +5 -0
- package/dist/esm/src/molecules/InputField/InputField.d.ts +2 -2
- package/dist/esm/src/organisms/AcquisitionForm/AcquisitionForm.d.ts +4 -2
- package/dist/esm/src/organisms/AcquisitionForm/AcquisitionForm.stories.d.ts +1 -1
- package/dist/index.d.ts +5 -3
- package/package.json +1 -1
@@ -0,0 +1,5 @@
|
|
1
|
+
import { InputFieldTypes } from 'fieldsConfiguration';
|
2
|
+
import { ValidationRule } from 'react-hook-form';
|
3
|
+
export declare const phoneNumberValidation: RegExp;
|
4
|
+
export declare const emailValidation: RegExp;
|
5
|
+
export declare const getInputValidation: (type?: InputFieldTypes) => ValidationRule<RegExp> | undefined;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { CSSProperties } from 'styled-components';
|
3
|
-
import { Control, ControllerProps } from 'react-hook-form/dist/types';
|
4
2
|
import { InputProps } from 'atoms';
|
3
|
+
import { Control, ControllerProps } from 'react-hook-form/dist/types';
|
4
|
+
import { CSSProperties } from 'styled-components';
|
5
5
|
import { FieldLabelsProps } from '../FieldLabels/FieldLabels';
|
6
6
|
export declare type InputFieldProps = {
|
7
7
|
name: string;
|
@@ -4,7 +4,7 @@ import type { Callback } from 'typescript';
|
|
4
4
|
import { UIFields } from '../../fieldsConfiguration';
|
5
5
|
export declare type AcquisitionFormProps<T extends object> = {
|
6
6
|
fields: UIFields<T>;
|
7
|
-
consents
|
7
|
+
consents: ConsentProps[];
|
8
8
|
logoUrl: string;
|
9
9
|
isLoading?: boolean;
|
10
10
|
isSubmitDisabled?: boolean;
|
@@ -13,5 +13,7 @@ export declare type AcquisitionFormProps<T extends object> = {
|
|
13
13
|
buttonText?: string;
|
14
14
|
onSubmit: (values: T) => void;
|
15
15
|
onLinkButtonClick?: Callback;
|
16
|
+
showConsentLabel?: boolean;
|
17
|
+
triggerFormInitially?: boolean;
|
16
18
|
};
|
17
|
-
export declare const AcquisitionForm: <T extends object>({ logoUrl, title, description, buttonText, fields, onSubmit, onLinkButtonClick, isSubmitDisabled, consents, isLoading, }: AcquisitionFormProps<T>) => JSX.Element;
|
19
|
+
export declare const AcquisitionForm: <T extends object>({ logoUrl, title, description, buttonText, fields, onSubmit, showConsentLabel, onLinkButtonClick, isSubmitDisabled, consents, isLoading, triggerFormInitially, }: AcquisitionFormProps<T>) => JSX.Element;
|
@@ -3,7 +3,7 @@ import { ComponentStory } from '@storybook/react';
|
|
3
3
|
import { AcquisitionForm as AcquisitionFormComponent } from './AcquisitionForm';
|
4
4
|
declare const _default: {
|
5
5
|
title: string;
|
6
|
-
component: <T extends object>({ logoUrl, title, description, buttonText, fields, onSubmit, onLinkButtonClick, isSubmitDisabled, consents, isLoading, }: import("./AcquisitionForm").AcquisitionFormProps<T>) => JSX.Element;
|
6
|
+
component: <T extends object>({ logoUrl, title, description, buttonText, fields, onSubmit, showConsentLabel, onLinkButtonClick, isSubmitDisabled, consents, isLoading, triggerFormInitially, }: import("./AcquisitionForm").AcquisitionFormProps<T>) => JSX.Element;
|
7
7
|
};
|
8
8
|
export default _default;
|
9
9
|
export declare const AcquisitionForm: ComponentStory<typeof AcquisitionFormComponent>;
|
package/dist/index.d.ts
CHANGED
@@ -14,8 +14,8 @@ import { ThemeColors as ThemeColors$2, SizesTypes as SizesTypes$1, FontSizesType
|
|
14
14
|
import { TooltipProps as TooltipProps$1 } from 'rc-tooltip/lib/Tooltip';
|
15
15
|
import { WithGoogleMapProps } from 'react-google-maps/lib/withGoogleMap';
|
16
16
|
import { WithScriptjsProps } from 'react-google-maps/lib/withScriptjs';
|
17
|
-
import { Control, ControllerProps } from 'react-hook-form/dist/types';
|
18
17
|
import { InputProps as InputProps$1, RadioButtonsProps as RadioButtonsProps$1, ButtonProps as ButtonProps$1 } from 'atoms';
|
18
|
+
import { Control, ControllerProps } from 'react-hook-form/dist/types';
|
19
19
|
import { SelectOption as SelectOption$1 } from 'atoms/Select/types';
|
20
20
|
import { ControllerProps as ControllerProps$1, DeepPartial, FieldValues, FormState } from 'react-hook-form';
|
21
21
|
import { SetPasswordFields, MaxRuleValidation, MinRuleValidation } from 'organisms/SetPasswordForm/types';
|
@@ -538,7 +538,7 @@ declare const SetPasswordForm: ({ logoUrl, fields, validations, onBack, onSubmit
|
|
538
538
|
|
539
539
|
declare type AcquisitionFormProps<T extends object> = {
|
540
540
|
fields: UIFields<T>;
|
541
|
-
consents
|
541
|
+
consents: ConsentProps$1[];
|
542
542
|
logoUrl: string;
|
543
543
|
isLoading?: boolean;
|
544
544
|
isSubmitDisabled?: boolean;
|
@@ -547,8 +547,10 @@ declare type AcquisitionFormProps<T extends object> = {
|
|
547
547
|
buttonText?: string;
|
548
548
|
onSubmit: (values: T) => void;
|
549
549
|
onLinkButtonClick?: Callback;
|
550
|
+
showConsentLabel?: boolean;
|
551
|
+
triggerFormInitially?: boolean;
|
550
552
|
};
|
551
|
-
declare const AcquisitionForm: <T extends object>({ logoUrl, title, description, buttonText, fields, onSubmit, onLinkButtonClick, isSubmitDisabled, consents, isLoading, }: AcquisitionFormProps<T>) => JSX.Element;
|
553
|
+
declare const AcquisitionForm: <T extends object>({ logoUrl, title, description, buttonText, fields, onSubmit, showConsentLabel, onLinkButtonClick, isSubmitDisabled, consents, isLoading, triggerFormInitially, }: AcquisitionFormProps<T>) => JSX.Element;
|
552
554
|
|
553
555
|
declare type VerificationCodeForm = {
|
554
556
|
code: string;
|