@zealicsolutions/web-ui 0.3.17 → 0.3.19
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +4 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/containers/FormStepContainer.d.ts +4 -0
- package/dist/cjs/src/containers/hooks/index.d.ts +1 -0
- package/dist/cjs/src/containers/hooks/useCheckCondition.d.ts +6 -0
- package/dist/cjs/src/containers/hooks/useCheckCondition.test.d.ts +1 -0
- package/dist/cjs/src/containers/mock-data.d.ts +1 -0
- package/dist/cjs/src/containers/styles.d.ts +2 -3
- package/dist/cjs/src/containers/types/moleculeTypes.d.ts +44 -12
- package/dist/cjs/src/containers/types/types.d.ts +28 -5
- package/dist/cjs/src/molecules/CheckboxField/CheckboxField.d.ts +3 -1
- package/dist/cjs/src/molecules/CheckboxField/CheckboxField.stories.d.ts +3 -2
- package/dist/cjs/src/molecules/Consent/Consent.d.ts +28 -0
- package/dist/cjs/src/{organisms → molecules}/Consent/Consent.stories.d.ts +2 -2
- package/dist/{esm/src/organisms → cjs/src/molecules}/Consent/ConsentCapture.d.ts +2 -1
- package/dist/cjs/src/molecules/Consent/ConsentMolecule.d.ts +3 -0
- package/dist/{esm/src/organisms → cjs/src/molecules}/Consent/consentMock.d.ts +2 -2
- package/dist/cjs/src/molecules/InputField/InputField.d.ts +3 -1
- package/dist/cjs/src/molecules/InputField/InputField.stories.d.ts +3 -2
- package/dist/cjs/src/molecules/RadioButtonField/RadioButtonField.d.ts +5 -2
- package/dist/cjs/src/molecules/RadioButtonField/RadioButtonField.stories.d.ts +3 -2
- package/dist/cjs/src/molecules/SelectField/SelectField.d.ts +3 -1
- package/dist/cjs/src/molecules/SelectField/SelectField.stories.d.ts +3 -2
- package/dist/cjs/src/molecules/index.d.ts +1 -0
- package/dist/cjs/src/organisms/AcquisitionForm/AcquisitionForm.d.ts +1 -1
- package/dist/cjs/src/organisms/AcquisitionForm/AcquisitionForm.stories.d.ts +2 -2
- package/dist/cjs/src/organisms/LoginForm/LoginForm.d.ts +1 -1
- package/dist/cjs/src/organisms/LoginForm/LoginForm.stories.d.ts +2 -2
- package/dist/cjs/src/organisms/index.d.ts +0 -1
- package/dist/esm/index.js +4 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/containers/FormStepContainer.d.ts +4 -0
- package/dist/esm/src/containers/hooks/index.d.ts +1 -0
- package/dist/esm/src/containers/hooks/useCheckCondition.d.ts +6 -0
- package/dist/esm/src/containers/hooks/useCheckCondition.test.d.ts +1 -0
- package/dist/esm/src/containers/mock-data.d.ts +1 -0
- package/dist/esm/src/containers/styles.d.ts +2 -3
- package/dist/esm/src/containers/types/moleculeTypes.d.ts +44 -12
- package/dist/esm/src/containers/types/types.d.ts +28 -5
- package/dist/esm/src/molecules/CheckboxField/CheckboxField.d.ts +3 -1
- package/dist/esm/src/molecules/CheckboxField/CheckboxField.stories.d.ts +3 -2
- package/dist/esm/src/molecules/Consent/Consent.d.ts +28 -0
- package/dist/esm/src/{organisms → molecules}/Consent/Consent.stories.d.ts +2 -2
- package/dist/{cjs/src/organisms → esm/src/molecules}/Consent/ConsentCapture.d.ts +2 -1
- package/dist/esm/src/molecules/Consent/ConsentMolecule.d.ts +3 -0
- package/dist/{cjs/src/organisms → esm/src/molecules}/Consent/consentMock.d.ts +2 -2
- package/dist/esm/src/molecules/InputField/InputField.d.ts +3 -1
- package/dist/esm/src/molecules/InputField/InputField.stories.d.ts +3 -2
- package/dist/esm/src/molecules/RadioButtonField/RadioButtonField.d.ts +5 -2
- package/dist/esm/src/molecules/RadioButtonField/RadioButtonField.stories.d.ts +3 -2
- package/dist/esm/src/molecules/SelectField/SelectField.d.ts +3 -1
- package/dist/esm/src/molecules/SelectField/SelectField.stories.d.ts +3 -2
- package/dist/esm/src/molecules/index.d.ts +1 -0
- package/dist/esm/src/organisms/AcquisitionForm/AcquisitionForm.d.ts +1 -1
- package/dist/esm/src/organisms/AcquisitionForm/AcquisitionForm.stories.d.ts +2 -2
- package/dist/esm/src/organisms/LoginForm/LoginForm.d.ts +1 -1
- package/dist/esm/src/organisms/LoginForm/LoginForm.stories.d.ts +2 -2
- package/dist/esm/src/organisms/index.d.ts +0 -1
- package/dist/index.d.ts +115 -55
- package/package.json +2 -1
- package/dist/cjs/src/organisms/Consent/Consent.d.ts +0 -11
- package/dist/esm/src/organisms/Consent/Consent.d.ts +0 -11
@@ -0,0 +1,4 @@
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
2
|
+
import { FormStepContainerProps } from 'containers';
|
3
|
+
export declare type StepContainerProps = PropsWithChildren<Partial<FormStepContainerProps>>;
|
4
|
+
export declare const FormStepContainer: ({ formStepName, order, conditionConfig, children, }: StepContainerProps) => JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { useCheckCondition } from './useCheckCondition';
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { ConditionConfig } from 'containers/types/types';
|
2
|
+
import { AnyObject } from 'typescript';
|
3
|
+
/**
|
4
|
+
* @attention This hook needs to be used inside of the form container for the form fields
|
5
|
+
*/
|
6
|
+
export declare const useCheckCondition: (config?: ConditionConfig, formData?: AnyObject) => boolean;
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -2,3 +2,4 @@ import { ContainerComponentProps } from 'containers';
|
|
2
2
|
export declare const sliderContainerProps: ContainerComponentProps;
|
3
3
|
export declare const formContainerProps: ContainerComponentProps;
|
4
4
|
export declare const columnContainerProps: ContainerComponentProps;
|
5
|
+
export declare const formBuilderData: ContainerComponentProps;
|
@@ -5,8 +5,7 @@ export declare const ContainerWrapper: import("styled-components").StyledCompone
|
|
5
5
|
scrollBehaviour: import("containers/types/types").ContainerScrollBehaviourType;
|
6
6
|
cornerRadius: number;
|
7
7
|
styles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
8
|
-
formProps:
|
9
|
-
|
10
|
-
};
|
8
|
+
formProps: import("containers/types/types").FormContainerProps;
|
9
|
+
formStepProps: import("containers/types/types").FormStepContainerProps;
|
11
10
|
}> | undefined;
|
12
11
|
}, never>;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { SelectOption } from 'atoms';
|
2
|
-
import { AdditionalTabContainerProps, ButtonProps, CheckboxFieldProps, ImageProps, InputFieldProps, RadioButtonFieldProps, SelectFieldProps, TabGroupProps, TextMoleculeProps } from 'molecules';
|
2
|
+
import { AdditionalTabContainerProps, ButtonProps, CheckboxFieldProps, Consent, ImageProps, InputFieldProps, RadioButtonFieldProps, SelectFieldProps, TabGroupProps, TextMoleculeProps } from 'molecules';
|
3
3
|
import { UseFormReturn } from 'react-hook-form';
|
4
4
|
import { CSSProperties } from 'styled-components';
|
5
5
|
import type { AnyObject, Nullable, StrictUnion } from 'typescript';
|
6
|
-
import { ContainerComponentProps } from './types';
|
6
|
+
import { ConditionConfig, ContainerComponentProps } from './types';
|
7
7
|
export declare type ActionTypes = 'link' | 'popup' | 'drawer' | 'download' | 'submit' | 'reset' | 'destroy';
|
8
8
|
export declare type DownloadFile = {
|
9
9
|
url: string;
|
@@ -35,7 +35,7 @@ export declare type ImageAttributes = {
|
|
35
35
|
export interface TextAttributes {
|
36
36
|
id?: string;
|
37
37
|
attributeType: 'text';
|
38
|
-
isRichText
|
38
|
+
isRichText?: boolean;
|
39
39
|
text: string;
|
40
40
|
}
|
41
41
|
export interface VideoAttributes {
|
@@ -68,7 +68,21 @@ export interface IterableAttributes {
|
|
68
68
|
attributeType: 'iterable';
|
69
69
|
options: SelectOption[];
|
70
70
|
}
|
71
|
-
export
|
71
|
+
export interface DataConnectionAttributes {
|
72
|
+
id: string;
|
73
|
+
attributeType: 'data_model_field';
|
74
|
+
dataModelField: {
|
75
|
+
id: string;
|
76
|
+
fieldName: string;
|
77
|
+
code: string;
|
78
|
+
};
|
79
|
+
}
|
80
|
+
export interface ConditionConfigAttributes {
|
81
|
+
id: string;
|
82
|
+
attributeType: 'condition_config';
|
83
|
+
conditionConfig: ConditionConfig;
|
84
|
+
}
|
85
|
+
export declare type MoleculeTypes = 'image' | 'text' | 'button' | 'video' | 'header_tab_group' | 'input_field' | 'select_field' | 'radio_button_field' | 'checkbox_field' | 'consent';
|
72
86
|
export interface BaseMolecule {
|
73
87
|
id: string;
|
74
88
|
instance: 'molecule';
|
@@ -83,7 +97,7 @@ export interface ImageMolecule extends BaseMolecule {
|
|
83
97
|
link: LinkAttributes;
|
84
98
|
};
|
85
99
|
config: {
|
86
|
-
props
|
100
|
+
props?: Omit<ImageProps, 'src' | 'link' | 'altText'>;
|
87
101
|
};
|
88
102
|
}
|
89
103
|
export interface TextMoleculeType extends BaseMolecule {
|
@@ -94,7 +108,7 @@ export interface TextMoleculeType extends BaseMolecule {
|
|
94
108
|
fontVariant: SelectAttributes;
|
95
109
|
};
|
96
110
|
config: {
|
97
|
-
props
|
111
|
+
props?: TextMoleculeProps;
|
98
112
|
};
|
99
113
|
}
|
100
114
|
export interface ButtonMolecule extends BaseMolecule {
|
@@ -104,7 +118,7 @@ export interface ButtonMolecule extends BaseMolecule {
|
|
104
118
|
action: ActionAttributes;
|
105
119
|
};
|
106
120
|
config: {
|
107
|
-
props
|
121
|
+
props?: Partial<Omit<ButtonProps, 'disabled' | 'children' | 'link' | 'text' | 'onClick' | 'elementId'>>;
|
108
122
|
};
|
109
123
|
}
|
110
124
|
export interface VideoMolecule extends BaseMolecule {
|
@@ -137,9 +151,11 @@ export interface TextInputMolecule extends BaseMolecule {
|
|
137
151
|
label: TextAttributes;
|
138
152
|
required: BooleanAttributes;
|
139
153
|
inputType: SelectAttributes;
|
154
|
+
dataModelField: DataConnectionAttributes;
|
155
|
+
conditionConfig: ConditionConfigAttributes;
|
140
156
|
};
|
141
157
|
config: {
|
142
|
-
props
|
158
|
+
props?: Partial<{
|
143
159
|
state: 'default' | 'error';
|
144
160
|
} & InputFieldProps>;
|
145
161
|
};
|
@@ -150,9 +166,11 @@ export interface SelectFieldMolecule extends BaseMolecule {
|
|
150
166
|
label: TextAttributes;
|
151
167
|
required: BooleanAttributes;
|
152
168
|
options: IterableAttributes;
|
169
|
+
dataModelField: DataConnectionAttributes;
|
170
|
+
conditionConfig: ConditionConfigAttributes;
|
153
171
|
};
|
154
172
|
config: {
|
155
|
-
props
|
173
|
+
props?: Partial<{
|
156
174
|
state: 'default' | 'error';
|
157
175
|
} & SelectFieldProps>;
|
158
176
|
};
|
@@ -163,9 +181,11 @@ export interface RadioButtonFieldMolecule extends BaseMolecule {
|
|
163
181
|
label: TextAttributes;
|
164
182
|
required: BooleanAttributes;
|
165
183
|
options: IterableAttributes;
|
184
|
+
dataModelField: DataConnectionAttributes;
|
185
|
+
conditionConfig: ConditionConfigAttributes;
|
166
186
|
};
|
167
187
|
config: {
|
168
|
-
props
|
188
|
+
props?: Partial<{
|
169
189
|
state: 'default' | 'error';
|
170
190
|
} & RadioButtonFieldProps<string>>;
|
171
191
|
};
|
@@ -176,14 +196,26 @@ export interface CheckboxFieldMolecule extends BaseMolecule {
|
|
176
196
|
label: TextAttributes;
|
177
197
|
required: BooleanAttributes;
|
178
198
|
options: IterableAttributes;
|
199
|
+
dataModelField: DataConnectionAttributes;
|
200
|
+
conditionConfig: ConditionConfigAttributes;
|
179
201
|
};
|
180
202
|
config: {
|
181
|
-
props
|
203
|
+
props?: Partial<{
|
182
204
|
state: 'default' | 'error';
|
183
205
|
} & CheckboxFieldProps>;
|
184
206
|
};
|
185
207
|
}
|
186
|
-
export
|
208
|
+
export interface ConsentFieldMolecule extends BaseMolecule {
|
209
|
+
type: 'consent';
|
210
|
+
attributes: {
|
211
|
+
consent: {
|
212
|
+
attributeType: 'consent';
|
213
|
+
consent: Consent;
|
214
|
+
required: BooleanAttributes;
|
215
|
+
};
|
216
|
+
};
|
217
|
+
}
|
218
|
+
export declare type Molecule = StrictUnion<ImageMolecule | TextMoleculeType | ButtonMolecule | VideoMolecule | TabGroupMolecule | TextInputMolecule | SelectFieldMolecule | RadioButtonFieldMolecule | CheckboxFieldMolecule | ConsentFieldMolecule> & {
|
187
219
|
form?: UseFormReturn<any>;
|
188
220
|
};
|
189
221
|
export {};
|
@@ -2,19 +2,26 @@ import { TabGroupProps } from 'molecules';
|
|
2
2
|
import { PropsWithChildren } from 'react';
|
3
3
|
import { CSSProperties } from 'styled-components';
|
4
4
|
import { ValidationMode } from 'react-hook-form';
|
5
|
-
import type { AnyObject, StylesType } from 'typescript';
|
5
|
+
import type { AnyObject, Nullable, StylesType } from 'typescript';
|
6
6
|
import { Molecule } from './moleculeTypes';
|
7
|
-
export declare type ContainerType = 'row' | 'column' | 'slider' | 'form';
|
7
|
+
export declare type ContainerType = 'row' | 'column' | 'slider' | 'form' | 'form_step';
|
8
8
|
export declare type ContainerPositionType = 'fixed' | 'sticky' | 'static' | 'relative';
|
9
9
|
export declare type ContainerScrollBehaviourType = 'vertical' | 'horizontal' | 'auto' | 'none';
|
10
|
+
export declare type FormStepContainerProps = {
|
11
|
+
formStepName: string;
|
12
|
+
order: number;
|
13
|
+
conditionConfig: ConditionConfig;
|
14
|
+
};
|
15
|
+
export declare type FormContainerProps = {
|
16
|
+
mode: keyof ValidationMode;
|
17
|
+
};
|
10
18
|
export declare type ContainerPropsType = Partial<{
|
11
19
|
position: ContainerPositionType;
|
12
20
|
scrollBehaviour: ContainerScrollBehaviourType;
|
13
21
|
cornerRadius: number;
|
14
22
|
styles: StylesType;
|
15
|
-
formProps:
|
16
|
-
|
17
|
-
};
|
23
|
+
formProps: FormContainerProps;
|
24
|
+
formStepProps: FormStepContainerProps;
|
18
25
|
}>;
|
19
26
|
export declare type AdditionalContainerProps = Partial<{
|
20
27
|
containerStyle: CSSProperties;
|
@@ -41,3 +48,19 @@ export declare type ContainerComponentProps = {
|
|
41
48
|
attributes?: AnyObject;
|
42
49
|
containerLibraryId?: string;
|
43
50
|
};
|
51
|
+
export declare type CriteriaType = 'operator' | 'condition';
|
52
|
+
export declare type ConditionCriteria = {
|
53
|
+
id: string;
|
54
|
+
type: CriteriaType;
|
55
|
+
operator: string;
|
56
|
+
dataFieldId: Nullable<string>;
|
57
|
+
dataFieldName: Nullable<string>;
|
58
|
+
dataValue: Nullable<string>;
|
59
|
+
connectedTo: Nullable<string>;
|
60
|
+
};
|
61
|
+
export declare type SegmentationType = 'simple' | 'advanced';
|
62
|
+
export declare type ConditionConfig = Nullable<{
|
63
|
+
id: string;
|
64
|
+
segmentationType: SegmentationType;
|
65
|
+
criteriaList: ConditionCriteria[];
|
66
|
+
}>;
|
@@ -4,6 +4,7 @@ import { SelectOption } from 'atoms';
|
|
4
4
|
import type { StylesType } from 'typescript';
|
5
5
|
import { CheckboxInternalConfigProps } from 'atoms/Checkbox/types';
|
6
6
|
import { FieldLabelsProps } from '../FieldLabels/FieldLabels';
|
7
|
+
import { ConditionConfig } from 'containers';
|
7
8
|
export declare type CheckboxesProps = Partial<{
|
8
9
|
checkboxGroupWrapperStyles: StylesType;
|
9
10
|
checkboxFieldWrapperStyles: StylesType;
|
@@ -25,5 +26,6 @@ export declare type CheckboxFieldProps = Partial<{
|
|
25
26
|
required: boolean;
|
26
27
|
optional: boolean;
|
27
28
|
wrapperStyles: StylesType;
|
29
|
+
conditionConfig?: ConditionConfig;
|
28
30
|
}>;
|
29
|
-
export declare const CheckboxField: ({ checkboxesProps, name, rules, control, optional, required, labelsProps, wrapperStyles, }: CheckboxFieldProps) => JSX.Element;
|
31
|
+
export declare const CheckboxField: ({ checkboxesProps, name, rules, control, optional, required, labelsProps, wrapperStyles, conditionConfig, }: CheckboxFieldProps) => JSX.Element | null;
|
@@ -3,7 +3,7 @@ import type { StoryFn } from '@storybook/react';
|
|
3
3
|
import { CheckboxField as CheckboxFieldComponent } from 'molecules';
|
4
4
|
declare const _default: {
|
5
5
|
title: string;
|
6
|
-
component: ({ checkboxesProps, name, rules, control, optional, required, labelsProps, wrapperStyles, }: Partial<{
|
6
|
+
component: ({ checkboxesProps, name, rules, control, optional, required, labelsProps, wrapperStyles, conditionConfig, }: Partial<{
|
7
7
|
checkboxesProps: Partial<{
|
8
8
|
checkboxGroupWrapperStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
9
9
|
checkboxFieldWrapperStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
@@ -48,7 +48,8 @@ declare const _default: {
|
|
48
48
|
required: boolean;
|
49
49
|
optional: boolean;
|
50
50
|
wrapperStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
51
|
-
|
51
|
+
conditionConfig?: import("../..").ConditionConfig | undefined;
|
52
|
+
}>) => JSX.Element | null;
|
52
53
|
};
|
53
54
|
export default _default;
|
54
55
|
export declare const CheckboxField: StoryFn<typeof CheckboxFieldComponent>;
|
@@ -0,0 +1,28 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { CustomDescendant } from 'atoms/RichTextViewer/types';
|
3
|
+
import { ConsentCaptureProps } from 'molecules/Consent/ConsentCapture';
|
4
|
+
import { CSSProperties } from 'styled-components';
|
5
|
+
export declare type ConsentCaptureMethod = 'button' | 'radioButton' | 'checkbox';
|
6
|
+
export declare type DefaultSelectionType = 'confirmation' | 'rejection';
|
7
|
+
export declare type Consent = {
|
8
|
+
id: string;
|
9
|
+
name: string;
|
10
|
+
acknowledgment: CustomDescendant[];
|
11
|
+
methodOfCapture: ConsentCaptureMethod;
|
12
|
+
description: string;
|
13
|
+
language: CustomDescendant[];
|
14
|
+
expiration: string;
|
15
|
+
confirmationButtonText: string;
|
16
|
+
rejectionButtonText: string;
|
17
|
+
defaultSelection: DefaultSelectionType;
|
18
|
+
value?: DefaultSelectionType | boolean;
|
19
|
+
isRequired?: boolean;
|
20
|
+
};
|
21
|
+
export declare type ConsentProps<T extends string = string> = {
|
22
|
+
text: string;
|
23
|
+
isRequired?: boolean;
|
24
|
+
consentCaptureProps: ConsentCaptureProps<T>;
|
25
|
+
containerStyles?: CSSProperties;
|
26
|
+
clearStyles?: boolean;
|
27
|
+
};
|
28
|
+
export declare const Consent: <T extends string>({ text, consentCaptureProps, containerStyles, clearStyles, }: ConsentProps<T>) => JSX.Element;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import type { StoryFn } from '@storybook/react';
|
3
|
-
import { Consent as ConsentComponent } from '
|
3
|
+
import { Consent as ConsentComponent } from 'molecules/Consent/Consent';
|
4
4
|
declare const _default: {
|
5
5
|
title: string;
|
6
|
-
component: <T extends string>({ text, consentCaptureProps, containerStyles, clearStyles, }: import("
|
6
|
+
component: <T extends string>({ text, consentCaptureProps, containerStyles, clearStyles, }: import("molecules/Consent/Consent").ConsentProps<T>) => JSX.Element;
|
7
7
|
};
|
8
8
|
export default _default;
|
9
9
|
export declare const Consent: StoryFn<typeof ConsentComponent>;
|
@@ -11,10 +11,11 @@ export declare type RadioButtonsCaptureProps<T extends string> = {
|
|
11
11
|
acceptValue: T;
|
12
12
|
} & RadioButtonsProps<T>;
|
13
13
|
export declare type CheckboxCaptureProps = {
|
14
|
+
id: string;
|
14
15
|
type: 'checkbox';
|
15
16
|
label: string;
|
16
17
|
value: boolean;
|
17
|
-
onChange: (
|
18
|
+
onChange: (id: string) => void;
|
18
19
|
};
|
19
20
|
export declare type ConsentCaptureProps<T extends string = string> = ButtonCaptureProps | RadioButtonsCaptureProps<T> | CheckboxCaptureProps;
|
20
21
|
export declare const ConsentCapture: <T extends string>(props: ConsentCaptureProps<T>) => JSX.Element;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { ConsentProps } from '
|
2
|
-
import { ConsentCaptureProps } from '
|
1
|
+
import { ConsentProps } from 'molecules';
|
2
|
+
import { ConsentCaptureProps } from 'molecules/Consent/ConsentCapture';
|
3
3
|
export declare const consentTextMock = "[{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"Please read these terms and conditions (\\\"terms and conditions\\\", \\\"terms\\\") carefully before using [website URL] website (\u201Cwebsite\u201D, \\\"service\\\") operated by [company name] (\\\"us\\\", 'we\\\", \\\"our\\\").\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"Conditions of use\",\"bold\":true}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"By using this website, you certify that you have read and reviewed this Agreement and that you agree to comply with its terms. If you do not want to be bound by the terms of this Agreement, you are advised to stop using the website accordingly. [company name] only grants use and access of this website, its products, and its services to those who have accepted its terms.\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"Privacy policy\",\"bold\":true}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"Before you continue using our website, we advise you to read our privacy policy [link to privacy policy] regarding our user data collection. It will help you better understand our practices.\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"Age restriction\",\"bold\":true}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"You must be at least 18 (eighteen) years of age before you can use this website. By using this website, you warrant that you are at least 18 years of age and you may legally adhere to this Agreement. [company name] assumes no responsibility for liabilities related to age misrepresentation.\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"Intellectual property\",\"bold\":true}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"You agree that all materials, products, and services provided on this website are the property of [company name], its affiliates, directors, officers, employees, agents, suppliers, or licensors including all copyrights, trade secrets, trademarks, patents, and other intellectual property. You also agree that you will not reproduce or redistribute the [company name]\u2019s intellectual property in any way, including electronic, digital, or new trademark registrations.\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"You grant [company name] a royalty-free and non-exclusive license to display, use, copy, transmit, and broadcast the content you upload and publish. For issues regarding intellectual property claims, you should contact the company in order to come to an agreement.\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"User accounts\",\"bold\":true}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"As a user of this website, you may be asked to register with us and provide private information. You are responsible for ensuring the accuracy of this information, and you are responsible for maintaining the safety and security of your identifying information. You are also responsible for all activities that occur under your account or password.\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"If you think there are any possible issues regarding the security of your account on the website, inform us immediately so we may address them accordingly.\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"We reserve all rights to terminate accounts, edit or remove content and cancel orders at our sole discretion.\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"Applicable law\",\"bold\":true}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"By using this website, you agree that the laws of the [your location], without regard to principles of conflict laws, will govern these terms and conditions, or any dispute of any sort that might come between [company name] and you, or its business partners and associates.\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"Disputes\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"Any dispute related in any way to your use of this website or to products you purchase from us shall be arbitrated by state or federal court [your location] and you consent to exclusive jurisdiction and venue of such courts.\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"Indemnification\",\"bold\":true}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"You agree to indemnify [company name] and its affiliates and hold [company name] harmless against legal claims and demands that may arise from your use or misuse of our services. We reserve the right to select our own legal counsel.\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"Limitation on liability\",\"bold\":true}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"[company name] is not liable for any damages that may occur to you as a result of your misuse of our website.\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"[company name] reserves the right to edit, modify, and change this Agreement at any time. We shall let our users know of these changes through electronic mail. This Agreement is an understanding between [company name] and the user, and this supersedes and replaces all prior agreements regarding the use of this website.\"}]}]";
|
4
4
|
export declare const captureButtonPropsMock: ConsentCaptureProps;
|
5
5
|
export declare const captureCheckboxPropsMock: ConsentCaptureProps;
|
@@ -3,6 +3,7 @@ import { Control, ControllerProps } from 'react-hook-form/dist/types';
|
|
3
3
|
import { InputProps } from 'atoms';
|
4
4
|
import type { StylesType } from 'typescript';
|
5
5
|
import { FieldLabelsProps } from '../FieldLabels/FieldLabels';
|
6
|
+
import { ConditionConfig } from 'containers';
|
6
7
|
export declare type InputFieldProps = Partial<{
|
7
8
|
name: string;
|
8
9
|
control: Control<any>;
|
@@ -13,5 +14,6 @@ export declare type InputFieldProps = Partial<{
|
|
13
14
|
inputProps: InputProps;
|
14
15
|
styles: StylesType;
|
15
16
|
labelsProps: FieldLabelsProps;
|
17
|
+
conditionConfig?: ConditionConfig;
|
16
18
|
}>;
|
17
|
-
export declare const InputField: ({ control, name, inputProps, styles, labelsProps, defaultValue, optional, required, rules, }: InputFieldProps) => JSX.Element;
|
19
|
+
export declare const InputField: ({ control, name, inputProps, styles, labelsProps, defaultValue, optional, required, rules, conditionConfig, }: InputFieldProps) => JSX.Element | null;
|
@@ -3,7 +3,7 @@ import { StoryFn } from '@storybook/react';
|
|
3
3
|
import { InputFieldProps } from './InputField';
|
4
4
|
declare const _default: {
|
5
5
|
title: string;
|
6
|
-
component: ({ control, name, inputProps, styles, labelsProps, defaultValue, optional, required, rules, }: Partial<{
|
6
|
+
component: ({ control, name, inputProps, styles, labelsProps, defaultValue, optional, required, rules, conditionConfig, }: Partial<{
|
7
7
|
name: string;
|
8
8
|
control: import("react-hook-form").Control<any, any>;
|
9
9
|
rules: Omit<Partial<{
|
@@ -30,7 +30,8 @@ declare const _default: {
|
|
30
30
|
inputProps: import("../..").InputProps;
|
31
31
|
styles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
32
32
|
labelsProps: import("..").FieldLabelsProps;
|
33
|
-
|
33
|
+
conditionConfig?: import("../..").ConditionConfig | undefined;
|
34
|
+
}>) => JSX.Element | null;
|
34
35
|
};
|
35
36
|
export default _default;
|
36
37
|
export declare const InputField: StoryFn<InputFieldProps>;
|
@@ -3,6 +3,7 @@ import { RadioButtonInternalConfigProps, RadioButtonsProps } from 'atoms';
|
|
3
3
|
import { Control, ControllerProps } from 'react-hook-form/dist/types';
|
4
4
|
import type { StylesType } from 'typescript';
|
5
5
|
import { FieldLabelsProps } from '../FieldLabels/FieldLabels';
|
6
|
+
import { ConditionConfig } from 'containers';
|
6
7
|
export declare type RadioButtonFieldProps<T extends string> = Partial<{
|
7
8
|
name: string;
|
8
9
|
rules: ControllerProps['rules'];
|
@@ -14,8 +15,9 @@ export declare type RadioButtonFieldProps<T extends string> = Partial<{
|
|
14
15
|
defaultValue: string;
|
15
16
|
radioButtonsProps: RadioButtonsProps<T>;
|
16
17
|
internalConfig: RadioButtonInternalConfigProps;
|
18
|
+
conditionConfig?: ConditionConfig;
|
17
19
|
}>;
|
18
|
-
export declare const RadioButtonField: <T extends string>({ name, rules, styles, control, optional, required, labelsProps, defaultValue, radioButtonsProps, }: Partial<{
|
20
|
+
export declare const RadioButtonField: <T extends string>({ name, rules, styles, control, optional, required, labelsProps, defaultValue, radioButtonsProps, conditionConfig, }: Partial<{
|
19
21
|
name: string;
|
20
22
|
rules: ControllerProps['rules'];
|
21
23
|
styles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
@@ -57,4 +59,5 @@ export declare const RadioButtonField: <T extends string>({ name, rules, styles,
|
|
57
59
|
buttonOptionSpacing: import("../..").SizesTypes;
|
58
60
|
radioGroupWrapperStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
59
61
|
}>;
|
60
|
-
|
62
|
+
conditionConfig?: ConditionConfig | undefined;
|
63
|
+
}>) => JSX.Element | null;
|
@@ -3,7 +3,7 @@ import type { ComponentStory } from '@storybook/react';
|
|
3
3
|
import { RadioButtonField as RadioButtonFieldComponent } from './RadioButtonField';
|
4
4
|
declare const _default: {
|
5
5
|
title: string;
|
6
|
-
component: <T extends string>({ name, rules, styles, control, optional, required, labelsProps, defaultValue, radioButtonsProps, }: Partial<{
|
6
|
+
component: <T extends string>({ name, rules, styles, control, optional, required, labelsProps, defaultValue, radioButtonsProps, conditionConfig, }: Partial<{
|
7
7
|
name: string;
|
8
8
|
rules: Omit<Partial<{
|
9
9
|
required: string | import("react-hook-form").ValidationRule<boolean>;
|
@@ -62,7 +62,8 @@ declare const _default: {
|
|
62
62
|
buttonOptionSpacing: import("theme").SizesTypes;
|
63
63
|
radioGroupWrapperStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
64
64
|
}>;
|
65
|
-
|
65
|
+
conditionConfig?: import("../..").ConditionConfig | undefined;
|
66
|
+
}>) => JSX.Element | null;
|
66
67
|
};
|
67
68
|
export default _default;
|
68
69
|
export declare const RadioButtonField: ComponentStory<typeof RadioButtonFieldComponent>;
|
@@ -3,6 +3,7 @@ import { SelectProps } from 'atoms';
|
|
3
3
|
import { Control, ControllerProps } from 'react-hook-form/dist/types';
|
4
4
|
import type { StylesType } from 'typescript';
|
5
5
|
import { FieldLabelsProps } from '../FieldLabels/FieldLabels';
|
6
|
+
import { ConditionConfig } from 'containers';
|
6
7
|
export declare type SelectFieldProps = Partial<{
|
7
8
|
selectProps: SelectProps;
|
8
9
|
labelsProps: FieldLabelsProps;
|
@@ -13,5 +14,6 @@ export declare type SelectFieldProps = Partial<{
|
|
13
14
|
optional: boolean;
|
14
15
|
defaultValue: string;
|
15
16
|
styles: StylesType;
|
17
|
+
conditionConfig?: ConditionConfig;
|
16
18
|
}>;
|
17
|
-
export declare const SelectField: ({ selectProps, name, defaultValue, optional, required, control, styles, labelsProps, rules, }: SelectFieldProps) => JSX.Element;
|
19
|
+
export declare const SelectField: ({ selectProps, name, defaultValue, optional, required, control, styles, labelsProps, rules, conditionConfig, }: SelectFieldProps) => JSX.Element | null;
|
@@ -3,7 +3,7 @@ import { StoryFn } from '@storybook/react';
|
|
3
3
|
import { SelectFieldProps } from './SelectField';
|
4
4
|
declare const _default: {
|
5
5
|
title: string;
|
6
|
-
component: ({ selectProps, name, defaultValue, optional, required, control, styles, labelsProps, rules, }: Partial<{
|
6
|
+
component: ({ selectProps, name, defaultValue, optional, required, control, styles, labelsProps, rules, conditionConfig, }: Partial<{
|
7
7
|
selectProps: Partial<{
|
8
8
|
ref: import("react-hook-form").RefCallBack;
|
9
9
|
onBlur: import("typescript").Callback;
|
@@ -43,7 +43,8 @@ declare const _default: {
|
|
43
43
|
optional: boolean;
|
44
44
|
defaultValue: string;
|
45
45
|
styles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
46
|
-
|
46
|
+
conditionConfig?: import("../..").ConditionConfig | undefined;
|
47
|
+
}>) => JSX.Element | null;
|
47
48
|
};
|
48
49
|
export default _default;
|
49
50
|
export declare const SelectField: StoryFn<SelectFieldProps>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { UIFields } from 'fieldsConfiguration';
|
3
|
-
import { ConsentProps } from '
|
3
|
+
import { ConsentProps } from 'molecules';
|
4
4
|
import type { Callback } from 'typescript';
|
5
5
|
export declare const showAcceptToastMessage: () => void | undefined;
|
6
6
|
export declare type AcquisitionFormProps<T extends object> = {
|
@@ -1,9 +1,9 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import {
|
2
|
+
import { StoryFn } from '@storybook/react';
|
3
3
|
import { AcquisitionForm as AcquisitionFormComponent } from './AcquisitionForm';
|
4
4
|
declare const _default: {
|
5
5
|
title: string;
|
6
6
|
component: <T extends object>({ logoUrl, title, description, buttonText, fields, optionsPresentation, onSubmit, showConsentLabel, onLinkButtonClick, isSubmitDisabled, consents, isLoading, triggerFormInitially, isTooltipVisible, }: import("./AcquisitionForm").AcquisitionFormProps<T>) => JSX.Element;
|
7
7
|
};
|
8
8
|
export default _default;
|
9
|
-
export declare const AcquisitionForm:
|
9
|
+
export declare const AcquisitionForm: StoryFn<typeof AcquisitionFormComponent>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { UIFields } from 'fieldsConfiguration';
|
3
|
-
import { ConsentProps } from '
|
3
|
+
import { ConsentProps } from 'molecules/Consent/Consent';
|
4
4
|
import type { Callback } from 'typescript';
|
5
5
|
import { TwoFactorAuthProps } from '../TwoFactorAuth/TwoFactorAuth';
|
6
6
|
import { LoginFields } from './types';
|
@@ -1,9 +1,9 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import {
|
2
|
+
import { StoryFn } from '@storybook/react';
|
3
3
|
import { LoginForm as LoginFormComponent } from './LoginForm';
|
4
4
|
declare const _default: {
|
5
5
|
title: string;
|
6
6
|
component: ({ logoUrl, fields, isTooltipVisible, onSubmit, optionsPresentation, onSignUpButtonClick, isLoading, twoFactorAuthConfig, consents, onForgotPasswordButtonClick, }: import("./LoginForm").LoginFormProps) => JSX.Element;
|
7
7
|
};
|
8
8
|
export default _default;
|
9
|
-
export declare const LoginForm:
|
9
|
+
export declare const LoginForm: StoryFn<typeof LoginFormComponent>;
|
@@ -10,7 +10,6 @@ export * from './ForgotPasswordForm/ForgotPasswordForm';
|
|
10
10
|
export * from './Body/Body';
|
11
11
|
export * from './ISI/ISI';
|
12
12
|
export * from './Header/Header';
|
13
|
-
export * from './Consent/Consent';
|
14
13
|
export * from './ProcessTracker/ProcessTracker';
|
15
14
|
export * from './FeedContentContainer/FeedContentContainer';
|
16
15
|
export * from './DynamicContentZone/DynamicContentZone';
|