@zealicsolutions/web-ui 0.3.1 → 0.3.3-2.2125
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +26 -31
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/atoms/Buttons/Buttons.stories.d.ts +4 -4
- package/dist/cjs/src/atoms/Buttons/IconButton.d.ts +1 -1
- package/dist/cjs/src/atoms/Circle/Circle.d.ts +1 -0
- package/dist/cjs/src/atoms/GoogleMap/GoogleMap.d.ts +2 -13
- package/dist/cjs/src/atoms/Input/Input.d.ts +3 -1
- package/dist/cjs/src/atoms/Input/Input.stories.d.ts +1 -1
- package/dist/cjs/src/atoms/Input/helpers.d.ts +18 -0
- package/dist/cjs/src/atoms/RadioButtons/RadioButtons.d.ts +40 -21
- package/dist/cjs/src/atoms/RadioButtons/RadioButtons.stories.d.ts +22 -8
- package/dist/cjs/src/atoms/RadioButtons/RadioOption.d.ts +6 -3
- package/dist/cjs/src/atoms/RadioButtons/helpers.d.ts +9 -3
- package/dist/cjs/src/atoms/RadioButtons/styles.d.ts +7 -7
- package/dist/cjs/src/atoms/RichTextViewer/types.d.ts +1 -0
- package/dist/cjs/src/atoms/Select/Select.d.ts +19 -14
- package/dist/cjs/src/atoms/Select/Select.stories.d.ts +14 -1
- package/dist/cjs/src/containers/Container.d.ts +38 -2
- package/dist/cjs/src/containers/FormStepContainer.d.ts +6 -0
- package/dist/cjs/src/containers/MoleculeItem.d.ts +2 -1
- package/dist/cjs/src/containers/hooks/index.d.ts +1 -0
- package/dist/cjs/src/containers/hooks/useCheckCondition.d.ts +11 -0
- package/dist/cjs/src/containers/hooks/useCheckCondition.test.d.ts +1 -0
- package/dist/cjs/src/containers/mock-data.d.ts +2 -0
- package/dist/cjs/src/containers/styles.d.ts +2 -3
- package/dist/cjs/src/containers/types/moleculeTypes.d.ts +98 -39
- package/dist/cjs/src/containers/types/types.d.ts +34 -8
- package/dist/cjs/src/contexts/ButtonActionsContext/ButtonActionsContext.d.ts +11 -0
- package/dist/cjs/src/contexts/ButtonActionsContext/ButtonActionsContextProvider.d.ts +11 -0
- package/dist/cjs/src/contexts/FormStepContext/FormStepContext.d.ts +13 -0
- package/dist/cjs/src/contexts/FormStepContext/FormStepContextProvider.d.ts +5 -0
- package/dist/cjs/src/contexts/FormStepContext/utils.d.ts +2 -0
- package/dist/cjs/src/contexts/MlrRichTextViewerContext/types.d.ts +3 -0
- package/dist/cjs/src/contexts/OrganismContext/OrganismContext.d.ts +8 -0
- package/dist/cjs/src/contexts/OrganismContext/OrganismContextProvider.d.ts +6 -0
- package/dist/cjs/src/contexts/OrganismContext/utils.d.ts +5 -0
- package/dist/cjs/src/contexts/hooks/index.d.ts +4 -0
- package/dist/cjs/src/contexts/hooks/useButtonActionsContext.d.ts +1 -0
- package/dist/cjs/src/contexts/hooks/useFormStepContext.d.ts +1 -0
- package/dist/cjs/src/contexts/hooks/useOrganismContext.d.ts +1 -0
- package/dist/cjs/src/contexts/index.d.ts +5 -0
- package/dist/cjs/src/fieldsConfiguration/types.d.ts +1 -1
- package/dist/cjs/src/helpers/validations.d.ts +9 -0
- package/dist/cjs/src/molecules/Button/Button.d.ts +1 -2
- package/dist/cjs/src/molecules/Button/Button.stories.d.ts +2 -2
- package/dist/cjs/src/molecules/CheckboxField/CheckboxField.d.ts +5 -3
- package/dist/cjs/src/molecules/CheckboxField/CheckboxField.stories.d.ts +21 -3
- package/dist/cjs/src/molecules/CheckboxField/CheckboxGroup.d.ts +5 -1
- package/dist/cjs/src/molecules/Consent/Consent.d.ts +28 -0
- package/dist/cjs/src/molecules/Consent/Consent.stories.d.ts +9 -0
- package/dist/cjs/src/{organisms → molecules}/Consent/ConsentCapture.d.ts +2 -1
- package/dist/cjs/src/molecules/Consent/ConsentMolecule.d.ts +3 -0
- package/dist/cjs/src/{organisms → molecules}/Consent/consentMock.d.ts +2 -2
- package/dist/cjs/src/molecules/Drawer/Drawer.stories.d.ts +2 -2
- package/dist/cjs/src/molecules/Image/Image.d.ts +3 -2
- package/dist/cjs/src/molecules/Image/Image.stories.d.ts +1 -1
- package/dist/cjs/src/molecules/InputField/InputField.d.ts +3 -1
- package/dist/cjs/src/molecules/InputField/InputField.stories.d.ts +21 -3
- package/dist/cjs/src/molecules/PdfDocument/PdfDocument.d.ts +1 -2
- package/dist/cjs/src/molecules/RadioButtonField/RadioButtonField.d.ts +45 -17
- package/dist/cjs/src/molecules/RadioButtonField/RadioButtonField.stories.d.ts +53 -11
- package/dist/cjs/src/molecules/SelectField/SelectField.d.ts +3 -1
- package/dist/cjs/src/molecules/SelectField/SelectField.stories.d.ts +35 -4
- package/dist/cjs/src/molecules/TabGroup/TabGroup.d.ts +2 -4
- package/dist/cjs/src/molecules/TabGroup/styles.d.ts +3 -3
- package/dist/cjs/src/molecules/Video/Video.d.ts +3 -1
- package/dist/cjs/src/molecules/Video/Video.stories.d.ts +2 -2
- package/dist/cjs/src/molecules/ZealUIModal/ZealUIModal.d.ts +20 -0
- package/dist/cjs/src/molecules/ZealUIModal/ZealUIModal.stories.d.ts +9 -0
- package/dist/cjs/src/molecules/index.d.ts +2 -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/FeedContent/styles.d.ts +1 -1
- 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/cjs/src/typescript.d.ts +6 -0
- package/dist/esm/index.js +26 -31
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/atoms/Buttons/Buttons.stories.d.ts +4 -4
- package/dist/esm/src/atoms/Buttons/IconButton.d.ts +1 -1
- package/dist/esm/src/atoms/Circle/Circle.d.ts +1 -0
- package/dist/esm/src/atoms/GoogleMap/GoogleMap.d.ts +2 -13
- package/dist/esm/src/atoms/Input/Input.d.ts +3 -1
- package/dist/esm/src/atoms/Input/Input.stories.d.ts +1 -1
- package/dist/esm/src/atoms/Input/helpers.d.ts +18 -0
- package/dist/esm/src/atoms/RadioButtons/RadioButtons.d.ts +40 -21
- package/dist/esm/src/atoms/RadioButtons/RadioButtons.stories.d.ts +22 -8
- package/dist/esm/src/atoms/RadioButtons/RadioOption.d.ts +6 -3
- package/dist/esm/src/atoms/RadioButtons/helpers.d.ts +9 -3
- package/dist/esm/src/atoms/RadioButtons/styles.d.ts +7 -7
- package/dist/esm/src/atoms/RichTextViewer/types.d.ts +1 -0
- package/dist/esm/src/atoms/Select/Select.d.ts +19 -14
- package/dist/esm/src/atoms/Select/Select.stories.d.ts +14 -1
- package/dist/esm/src/containers/Container.d.ts +38 -2
- package/dist/esm/src/containers/FormStepContainer.d.ts +6 -0
- package/dist/esm/src/containers/MoleculeItem.d.ts +2 -1
- package/dist/esm/src/containers/hooks/index.d.ts +1 -0
- package/dist/esm/src/containers/hooks/useCheckCondition.d.ts +11 -0
- package/dist/esm/src/containers/hooks/useCheckCondition.test.d.ts +1 -0
- package/dist/esm/src/containers/mock-data.d.ts +2 -0
- package/dist/esm/src/containers/styles.d.ts +2 -3
- package/dist/esm/src/containers/types/moleculeTypes.d.ts +98 -39
- package/dist/esm/src/containers/types/types.d.ts +34 -8
- package/dist/esm/src/contexts/ButtonActionsContext/ButtonActionsContext.d.ts +11 -0
- package/dist/esm/src/contexts/ButtonActionsContext/ButtonActionsContextProvider.d.ts +11 -0
- package/dist/esm/src/contexts/FormStepContext/FormStepContext.d.ts +13 -0
- package/dist/esm/src/contexts/FormStepContext/FormStepContextProvider.d.ts +5 -0
- package/dist/esm/src/contexts/FormStepContext/utils.d.ts +2 -0
- package/dist/esm/src/contexts/MlrRichTextViewerContext/types.d.ts +3 -0
- package/dist/esm/src/contexts/OrganismContext/OrganismContext.d.ts +8 -0
- package/dist/esm/src/contexts/OrganismContext/OrganismContextProvider.d.ts +6 -0
- package/dist/esm/src/contexts/OrganismContext/utils.d.ts +5 -0
- package/dist/esm/src/contexts/hooks/index.d.ts +4 -0
- package/dist/esm/src/contexts/hooks/useButtonActionsContext.d.ts +1 -0
- package/dist/esm/src/contexts/hooks/useFormStepContext.d.ts +1 -0
- package/dist/esm/src/contexts/hooks/useOrganismContext.d.ts +1 -0
- package/dist/esm/src/contexts/index.d.ts +5 -0
- package/dist/esm/src/fieldsConfiguration/types.d.ts +1 -1
- package/dist/esm/src/helpers/validations.d.ts +9 -0
- package/dist/esm/src/molecules/Button/Button.d.ts +1 -2
- package/dist/esm/src/molecules/Button/Button.stories.d.ts +2 -2
- package/dist/esm/src/molecules/CheckboxField/CheckboxField.d.ts +5 -3
- package/dist/esm/src/molecules/CheckboxField/CheckboxField.stories.d.ts +21 -3
- package/dist/esm/src/molecules/CheckboxField/CheckboxGroup.d.ts +5 -1
- package/dist/esm/src/molecules/Consent/Consent.d.ts +28 -0
- package/dist/esm/src/molecules/Consent/Consent.stories.d.ts +9 -0
- package/dist/esm/src/{organisms → molecules}/Consent/ConsentCapture.d.ts +2 -1
- package/dist/esm/src/molecules/Consent/ConsentMolecule.d.ts +3 -0
- package/dist/esm/src/{organisms → molecules}/Consent/consentMock.d.ts +2 -2
- package/dist/esm/src/molecules/Drawer/Drawer.stories.d.ts +2 -2
- package/dist/esm/src/molecules/Image/Image.d.ts +3 -2
- package/dist/esm/src/molecules/Image/Image.stories.d.ts +1 -1
- package/dist/esm/src/molecules/InputField/InputField.d.ts +3 -1
- package/dist/esm/src/molecules/InputField/InputField.stories.d.ts +21 -3
- package/dist/esm/src/molecules/PdfDocument/PdfDocument.d.ts +1 -2
- package/dist/esm/src/molecules/RadioButtonField/RadioButtonField.d.ts +45 -17
- package/dist/esm/src/molecules/RadioButtonField/RadioButtonField.stories.d.ts +53 -11
- package/dist/esm/src/molecules/SelectField/SelectField.d.ts +3 -1
- package/dist/esm/src/molecules/SelectField/SelectField.stories.d.ts +35 -4
- package/dist/esm/src/molecules/TabGroup/TabGroup.d.ts +2 -4
- package/dist/esm/src/molecules/TabGroup/styles.d.ts +3 -3
- package/dist/esm/src/molecules/Video/Video.d.ts +3 -1
- package/dist/esm/src/molecules/Video/Video.stories.d.ts +2 -2
- package/dist/esm/src/molecules/ZealUIModal/ZealUIModal.d.ts +20 -0
- package/dist/esm/src/molecules/ZealUIModal/ZealUIModal.stories.d.ts +9 -0
- package/dist/esm/src/molecules/index.d.ts +2 -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/FeedContent/styles.d.ts +1 -1
- 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/esm/src/typescript.d.ts +6 -0
- package/dist/index.d.ts +438 -208
- package/package.json +10 -5
- package/dist/cjs/src/atoms/GoogleMap/GoogleMap.stories.d.ts +0 -12
- package/dist/cjs/src/molecules/PdfDocument/PdfDocument.stories.d.ts +0 -9
- package/dist/cjs/src/organisms/Consent/Consent.d.ts +0 -11
- package/dist/cjs/src/organisms/Consent/Consent.stories.d.ts +0 -9
- package/dist/esm/src/atoms/GoogleMap/GoogleMap.stories.d.ts +0 -12
- package/dist/esm/src/molecules/PdfDocument/PdfDocument.stories.d.ts +0 -9
- package/dist/esm/src/organisms/Consent/Consent.d.ts +0 -11
- package/dist/esm/src/organisms/Consent/Consent.stories.d.ts +0 -9
package/dist/index.d.ts
CHANGED
@@ -1,45 +1,48 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import * as
|
3
|
-
import
|
2
|
+
import * as react from 'react';
|
3
|
+
import react__default, { PropsWithChildren, ReactNode, Dispatch, SetStateAction, CSSProperties as CSSProperties$1, ComponentType, KeyboardEvent } from 'react';
|
4
4
|
import * as styled_components from 'styled-components';
|
5
5
|
import { CSSProperties, DefaultTheme } from 'styled-components';
|
6
6
|
import { ThemeColors as ThemeColors$1, SizesTypes as SizesTypes$1, FontSizesTypes as FontSizesTypes$2 } from 'theme';
|
7
|
-
import
|
7
|
+
import * as typescript from 'typescript';
|
8
|
+
import { StylesType, AnyObject, Callback as Callback$1, OverrideStyles, StyledTransientProps, Nullable, StrictUnion } from 'typescript';
|
9
|
+
import { RefCallBack, Control as Control$1, ControllerProps as ControllerProps$1 } from 'react-hook-form/dist/types';
|
8
10
|
import { IconNames as IconNames$1 } from 'atoms/Icon/Icon';
|
9
|
-
import {
|
11
|
+
import { FieldTypes as FieldTypes$1, UIFields as UIFields$1, InputFieldTypes as InputFieldTypes$1 } from 'fieldsConfiguration/types';
|
10
12
|
import { ThemeColors as ThemeColors$2, FontSizesTypes as FontSizesTypes$1, SizesTypes as SizesTypes$2, BreakpointSizesTypes as BreakpointSizesTypes$1 } from 'theme/types';
|
11
|
-
import
|
12
|
-
import {
|
13
|
-
import { WithGoogleMapProps } from 'react-google-maps/lib/withGoogleMap';
|
14
|
-
import { WithScriptjsProps } from 'react-google-maps/lib/withScriptjs';
|
13
|
+
import * as react_hook_form from 'react-hook-form';
|
14
|
+
import { ControllerProps, DeepPartial, FieldValues, FormState, Control, UseFormReturn, ValidationMode } from 'react-hook-form';
|
15
15
|
import * as atoms from 'atoms';
|
16
|
-
import { TextProps as TextProps$1, IconNames as IconNames$2, TouchableOpacityProps as TouchableOpacityProps$1, AvatarProps as AvatarProps$1, TabProps as TabProps$1,
|
17
|
-
import {
|
18
|
-
import {
|
19
|
-
import {
|
20
|
-
import {
|
16
|
+
import { SelectOption as SelectOption$1, TextProps as TextProps$1, IconNames as IconNames$2, TouchableOpacityProps as TouchableOpacityProps$1, AvatarProps as AvatarProps$1, TabProps as TabProps$1, InputProps as InputProps$1, SelectProps as SelectProps$1, RegularImageProps as RegularImageProps$1, TextButtonProps as TextButtonProps$1, TabTheme as TabTheme$1, RadioButtonsProps as RadioButtonsProps$1, RadioButtonInternalConfigProps as RadioButtonInternalConfigProps$1, HorizontalButtonsProps as HorizontalButtonsProps$1, IconProps as IconProps$1 } from 'atoms';
|
17
|
+
import { InputFieldProps as InputFieldProps$1, SelectFieldProps as SelectFieldProps$1, FieldSectionProps as FieldSectionProps$1, BaseButtonProps as BaseButtonProps$1, MenuItem as MenuItem$1, ConsentProps as ConsentProps$1, HeroImageProps as HeroImageProps$1, ColumnsProps as ColumnsProps$1, EmphasizedTextProps as EmphasizedTextProps$1, TabGroupProps as TabGroupProps$1, AvatarDropdownProps as AvatarDropdownProps$1, FeedContentHeaderProps as FeedContentHeaderProps$1, AlertProps as AlertProps$1, BottomNaVBarItemProps as BottomNaVBarItemProps$1, ButtonProps as ButtonProps$1, MenuItemsProps as MenuItemsProps$1, ImageProps as ImageProps$1, TextMoleculeProps as TextMoleculeProps$1, AdditionalTabContainerProps as AdditionalTabContainerProps$1, RadioButtonFieldProps as RadioButtonFieldProps$1, CheckboxFieldProps as CheckboxFieldProps$1, Consent as Consent$1 } from 'molecules';
|
18
|
+
import { TooltipProps as TooltipProps$1 } from 'rc-tooltip/lib/Tooltip';
|
19
|
+
import { RadioGroup, DrawerProps as DrawerProps$1, ModalProps } from '@mui/material';
|
20
|
+
import { UIFields as UIFields$2, UIField as UIField$1 } from 'fieldsConfiguration';
|
21
|
+
import { SetPasswordFields, MaxRuleValidation, MinRuleValidation } from 'organisms/SetPasswordForm/types';
|
22
|
+
import { ConsentProps as ConsentProps$2 } from 'molecules/Consent/Consent';
|
21
23
|
import { FooterAProps } from 'organisms/Footer/FooterA';
|
22
24
|
import { FooterBProps } from 'organisms/Footer/FooterB';
|
23
25
|
import { FooterCProps } from 'organisms/Footer/FooterC';
|
24
26
|
import { FooterDProps } from 'organisms/Footer/FooterD';
|
27
|
+
import { FilteredFeedContentType as FilteredFeedContentType$1, HeroSliderProps as HeroSliderProps$1, ProcessTrackerProps as ProcessTrackerProps$1, ConsentProps as ConsentProps$3, ProcessTrackerStatus as ProcessTrackerStatus$1 } from 'organisms';
|
25
28
|
import { FeedContentContainerProps as FeedContentContainerProps$1 } from 'organisms/FeedContentContainer/FeedContentContainer';
|
26
29
|
import { SubscribePanelProps as SubscribePanelProps$1 } from 'organisms/SubscribePanel/type';
|
27
30
|
import { ISIAProps } from 'organisms/ISI/ISIA';
|
28
31
|
import { HeaderAProps as HeaderAProps$1 } from 'organisms/Header/HeaderA';
|
29
32
|
import { FeedContentProps as FeedContentProps$1, FeedContentTemplateTypes as FeedContentTemplateTypes$1 } from 'organisms/FeedContent/types';
|
30
|
-
import * as react_hook_form from 'react-hook-form';
|
31
|
-
import { Control, ControllerProps, DeepPartial, FieldValues, FormState, UseFormReturn, ValidationMode } from 'react-hook-form';
|
32
33
|
import { AlertProps as AlertProps$2 } from 'molecules/Alert/Alert';
|
33
34
|
import { LoginFields as LoginFields$1 } from 'organisms/LoginForm/types';
|
34
35
|
import { AnnotationsList as AnnotationsList$1 } from 'contexts/MlrRichTextViewerContext/types';
|
35
36
|
import * as contexts_MlrRichTextViewerContext_MlrRichTextViewerContext from 'contexts/MlrRichTextViewerContext/MlrRichTextViewerContext';
|
37
|
+
import * as contexts_ButtonActionsContext_ButtonActionsContext from 'contexts/ButtonActionsContext/ButtonActionsContext';
|
38
|
+
import * as containers from 'containers';
|
39
|
+
import { ContainerComponentProps as ContainerComponentProps$1, Molecule as Molecule$1, ConditionConfig as ConditionConfig$1 } from 'containers';
|
36
40
|
export * from 'helpers/constants';
|
37
|
-
import { Control as Control$1, ControllerProps as ControllerProps$1 } from 'react-hook-form/dist/types';
|
38
41
|
import { CheckboxInternalConfigProps as CheckboxInternalConfigProps$1 } from 'atoms/Checkbox/types';
|
39
|
-
import {
|
40
|
-
import {
|
42
|
+
import { CustomDescendant } from 'atoms/RichTextViewer/types';
|
43
|
+
import { ConsentCaptureProps } from 'molecules/Consent/ConsentCapture';
|
41
44
|
import * as containers_types_types from 'containers/types/types';
|
42
|
-
import { ContainerProps as ContainerProps$
|
45
|
+
import { ContainerProps as ContainerProps$1 } from 'containers/types/types';
|
43
46
|
|
44
47
|
declare type TouchableOpacityProps = PropsWithChildren<{
|
45
48
|
activeOpacity?: number;
|
@@ -51,7 +54,7 @@ declare const TouchableOpacity: styled_components.StyledComponent<"div", styled_
|
|
51
54
|
withoutOpacityEffect?: boolean | undefined;
|
52
55
|
disabled?: boolean | undefined;
|
53
56
|
} & {
|
54
|
-
children?:
|
57
|
+
children?: react.ReactNode;
|
55
58
|
}, never>;
|
56
59
|
|
57
60
|
declare type CheckboxInternalConfigProps = Partial<{
|
@@ -81,6 +84,8 @@ declare const Checkbox: ({ id, onClick, label, isError, disabled, isEditMode, is
|
|
81
84
|
declare type SelectOption = {
|
82
85
|
id: string;
|
83
86
|
label: string;
|
87
|
+
value?: string;
|
88
|
+
config?: AnyObject;
|
84
89
|
};
|
85
90
|
declare type SelectInternalConfigurationOptions = {
|
86
91
|
placeholderTextColor: ThemeColors$1 | string;
|
@@ -92,19 +97,68 @@ declare type SelectInternalConfigurationOptions = {
|
|
92
97
|
wrapperStyles: StylesType;
|
93
98
|
styles: StylesType;
|
94
99
|
};
|
95
|
-
declare type SelectProps = {
|
100
|
+
declare type SelectProps = Partial<{
|
101
|
+
ref: RefCallBack;
|
102
|
+
onBlur: Callback$1;
|
103
|
+
value: string;
|
104
|
+
optionsPresentation: boolean;
|
105
|
+
onChange: (value: string) => void;
|
106
|
+
placeholder: string;
|
107
|
+
disabled: boolean;
|
108
|
+
options: SelectOption[];
|
109
|
+
isError: boolean;
|
110
|
+
isEditMode: boolean;
|
111
|
+
selectInternalConfig: SelectInternalConfigurationOptions;
|
112
|
+
isRichText: boolean;
|
113
|
+
}>;
|
114
|
+
declare const Select: ({ ref, onBlur, onChange, value, placeholder, options, disabled, optionsPresentation, isError, selectInternalConfig, isRichText, }: SelectProps) => JSX.Element;
|
115
|
+
|
116
|
+
declare const getFieldPlaceholder: (type: FieldTypes$1, title?: string) => string;
|
117
|
+
|
118
|
+
declare type InputFieldTypes = 'phone_number' | 'text' | 'email' | 'password' | 'numerical' | 'month_year_date' | 'day_month_year_date' | 'month_day_year_date' | 'us_zip_code' | 'any';
|
119
|
+
declare type FieldTypes = 'input' | 'select' | 'checkbox';
|
120
|
+
declare type UIField<T = string> = (UIInputField & UISelectField & UICheckboxField) & {
|
121
|
+
name: T;
|
122
|
+
type: FieldTypes;
|
96
123
|
value?: string;
|
97
|
-
|
98
|
-
onChange?: (value: string) => void;
|
124
|
+
label?: string;
|
99
125
|
placeholder?: string;
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
selectInternalConfig?: SelectInternalConfigurationOptions;
|
105
|
-
isRichText?: boolean;
|
126
|
+
required?: boolean;
|
127
|
+
tooltip?: string;
|
128
|
+
rules?: ControllerProps['rules'];
|
129
|
+
order?: number;
|
106
130
|
};
|
107
|
-
declare
|
131
|
+
declare type UIInputField = {
|
132
|
+
inputType?: InputFieldTypes;
|
133
|
+
maxLength?: number;
|
134
|
+
onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
135
|
+
} & InputFieldProps$1;
|
136
|
+
declare type UISelectField = {
|
137
|
+
options?: SelectOption$1[];
|
138
|
+
} & SelectFieldProps$1;
|
139
|
+
declare type UICheckboxField = {
|
140
|
+
checkboxLabel?: string;
|
141
|
+
};
|
142
|
+
declare type UIFields<T extends object> = UIField<keyof T>[];
|
143
|
+
|
144
|
+
declare const getInitialValuesFromFields: <T extends object>(fields: UIFields$1<T>) => DeepPartial<T>;
|
145
|
+
declare const isFormValid: <T extends FieldValues>(formState: FormState<T>) => boolean;
|
146
|
+
declare const getFieldsFromFieldSections: <T extends object>(sections: Pick<FieldSectionProps$1<T>, "fields">[]) => UIFields$1<T>;
|
147
|
+
|
148
|
+
declare const acquisitionFormMockFields: UIFields$1<Record<string, string>>;
|
149
|
+
declare const setPasswordMockFields: UIFields$1<SetPasswordFields>;
|
150
|
+
declare const loginMockFields: UIFields$1<LoginFields$1>;
|
151
|
+
declare const sectionMockFields: UIFields$1<Record<string, string>>;
|
152
|
+
declare const profileInformationMockForm: {
|
153
|
+
label: string;
|
154
|
+
fields: UIFields$1<Record<string, string>>;
|
155
|
+
}[];
|
156
|
+
|
157
|
+
declare type MaskConfig = Partial<{
|
158
|
+
maskPlaceholder: string;
|
159
|
+
dataModelFieldType: InputFieldTypes;
|
160
|
+
maskPattern: Array<string | RegExp>;
|
161
|
+
}>;
|
108
162
|
|
109
163
|
declare type InputFieldInternalConfigProps = Partial<{
|
110
164
|
textColor: ThemeColors$2 | string;
|
@@ -132,10 +186,11 @@ declare type InputProps = {
|
|
132
186
|
isError?: boolean;
|
133
187
|
maxLength?: number;
|
134
188
|
onChange?: (value: string) => void;
|
135
|
-
onKeyDown?: (event:
|
189
|
+
onKeyDown?: (event: react__default.KeyboardEvent<HTMLInputElement>) => void;
|
136
190
|
internalConfig?: InputFieldInternalConfigProps;
|
191
|
+
config?: MaskConfig;
|
137
192
|
};
|
138
|
-
declare const Input: ({ value, leftIcon, rightIcon, onChange, onBlur, disabled, isError, placeholder, isEditMode, type, internalConfig, ...rest }: InputProps) => JSX.Element;
|
193
|
+
declare const Input: ({ value, leftIcon, rightIcon, onChange, onBlur, disabled, isError, placeholder, isEditMode, type, internalConfig, config, ...rest }: InputProps) => JSX.Element;
|
139
194
|
|
140
195
|
declare type TextTypes = 'primary' | 'secondary' | 'error' | 'success';
|
141
196
|
declare type TextAlign = 'center' | 'right' | 'left';
|
@@ -309,16 +364,7 @@ declare type DividerProps = {
|
|
309
364
|
};
|
310
365
|
declare const Divider: styled_components.StyledComponent<"div", styled_components.DefaultTheme, DividerProps, never>;
|
311
366
|
|
312
|
-
declare
|
313
|
-
lat: number;
|
314
|
-
lng: number;
|
315
|
-
};
|
316
|
-
declare type GoogleMapProps = {
|
317
|
-
position: MapPosition;
|
318
|
-
} & WithScriptjsProps & WithGoogleMapProps;
|
319
|
-
declare const GoogleMap: React__default.ComponentClass<{
|
320
|
-
position: MapPosition;
|
321
|
-
} & WithScriptjsProps & WithGoogleMapProps, any>;
|
367
|
+
declare const GoogleMap: () => JSX.Element;
|
322
368
|
|
323
369
|
declare const MATRIX_MESSAGE_ELEMENT_ID = "matrix-message";
|
324
370
|
declare const COMMUNICATION_LINK_ELEMENT_ID = "communication-link";
|
@@ -335,40 +381,56 @@ declare type RichTextEditorProps = Partial<{
|
|
335
381
|
}>;
|
336
382
|
declare const RichTextViewer: ({ value, color, textStyles, font, numberOfLines, extraTextProps, }: RichTextEditorProps) => JSX.Element | null;
|
337
383
|
|
338
|
-
declare type RadioButtonInternalConfigProps = {
|
384
|
+
declare type RadioButtonInternalConfigProps = Partial<{
|
339
385
|
selectedRadioOptionBackgroundColor: ThemeColors$1 | string;
|
340
386
|
selectedRadioOptionIndicatorColor: ThemeColors$1 | string;
|
341
387
|
buttonPadding: number;
|
342
388
|
textPadding: number;
|
343
389
|
styles: StylesType;
|
344
390
|
wrapperStyles: StylesType;
|
345
|
-
buttonOptionSpacing
|
346
|
-
|
347
|
-
|
348
|
-
id: T;
|
349
|
-
label?: string;
|
350
|
-
error?: boolean;
|
351
|
-
disabled?: boolean;
|
352
|
-
isRichText?: boolean;
|
353
|
-
};
|
391
|
+
buttonOptionSpacing: SizesTypes$1;
|
392
|
+
radioGroupWrapperStyles: StylesType;
|
393
|
+
}>;
|
354
394
|
declare type RadioButtonsProps<T extends string> = Partial<{
|
355
|
-
|
356
|
-
|
395
|
+
ref: RefCallBack;
|
396
|
+
name: string;
|
357
397
|
value: T;
|
398
|
+
options: SelectOption[];
|
399
|
+
onBlur: Callback$1;
|
400
|
+
onChange: (value: T) => void;
|
358
401
|
isRow: boolean;
|
359
|
-
|
360
|
-
|
402
|
+
isError: boolean;
|
403
|
+
disabled: boolean;
|
404
|
+
isEditMode: boolean;
|
405
|
+
isRichText: boolean;
|
361
406
|
internalConfig: RadioButtonInternalConfigProps;
|
362
407
|
}>;
|
363
|
-
declare const RadioButtons: <T extends string>({ value,
|
364
|
-
|
365
|
-
|
408
|
+
declare const RadioButtons: <T extends string>({ ref, name, value, options, onBlur, onChange, isRow, isError, disabled, isEditMode, isRichText, internalConfig, }: Partial<{
|
409
|
+
ref: RefCallBack;
|
410
|
+
name: string;
|
366
411
|
value: T;
|
412
|
+
options: SelectOption[];
|
413
|
+
onBlur: Callback$1;
|
414
|
+
onChange: (value: T) => void;
|
367
415
|
isRow: boolean;
|
368
|
-
|
369
|
-
|
370
|
-
|
416
|
+
isError: boolean;
|
417
|
+
disabled: boolean;
|
418
|
+
isEditMode: boolean;
|
419
|
+
isRichText: boolean;
|
420
|
+
internalConfig: Partial<{
|
421
|
+
selectedRadioOptionBackgroundColor: ThemeColors$1 | string;
|
422
|
+
selectedRadioOptionIndicatorColor: ThemeColors$1 | string;
|
423
|
+
buttonPadding: number;
|
424
|
+
textPadding: number;
|
425
|
+
styles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
|
426
|
+
wrapperStyles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
|
427
|
+
buttonOptionSpacing: SizesTypes$1;
|
428
|
+
radioGroupWrapperStyles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
|
429
|
+
}>;
|
371
430
|
}>) => JSX.Element;
|
431
|
+
declare const RadioGroupWrapper: styled_components.StyledComponent<typeof RadioGroup, styled_components.DefaultTheme, StyledTransientProps<{
|
432
|
+
isRow: boolean;
|
433
|
+
}> & OverrideStyles, never>;
|
372
434
|
|
373
435
|
declare type CircleType = 'link' | 'message';
|
374
436
|
declare type CircleBoxProps = {
|
@@ -376,6 +438,7 @@ declare type CircleBoxProps = {
|
|
376
438
|
type: CircleType;
|
377
439
|
};
|
378
440
|
declare const Circle: ({ index, type }: CircleBoxProps) => JSX.Element;
|
441
|
+
declare const CirclesWrapper: styled_components.StyledComponent<"span", styled_components.DefaultTheme, {}, never>;
|
379
442
|
|
380
443
|
declare type CircularIndicatorProps = {
|
381
444
|
active: boolean;
|
@@ -423,7 +486,7 @@ declare type TabProps<T = string, K = string> = {
|
|
423
486
|
selectedTabIndicatorColor: ThemeColors$1 | string;
|
424
487
|
styles: StylesType;
|
425
488
|
}>;
|
426
|
-
declare const ZealTab: <T extends string, K extends string>({ options, onClick, text, tabKey, vertical, onOptionClick, tabTheme, tabFont, tabPadding, selectedTabIndicatorColor, textSize, defaultTabTextColor, ...tabProps }: TabProps<T, K>, ref:
|
489
|
+
declare const ZealTab: <T extends string, K extends string>({ options, onClick, text, tabKey, vertical, onOptionClick, tabTheme, tabFont, tabPadding, selectedTabIndicatorColor, textSize, defaultTabTextColor, ...tabProps }: TabProps<T, K>, ref: react__default.ForwardedRef<TabElement>) => JSX.Element;
|
427
490
|
declare const Tab: <T, K>(props: {
|
428
491
|
tabKey: T;
|
429
492
|
text: string;
|
@@ -444,7 +507,7 @@ declare const Tab: <T, K>(props: {
|
|
444
507
|
selectedTabIndicatorColor: ThemeColors$1 | string;
|
445
508
|
styles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
|
446
509
|
}> & {
|
447
|
-
ref?:
|
510
|
+
ref?: react__default.ForwardedRef<TabElement> | undefined;
|
448
511
|
}) => ReturnType<typeof ZealTab>;
|
449
512
|
|
450
513
|
declare type SetPasswordRuleValidation = {
|
@@ -452,7 +515,7 @@ declare type SetPasswordRuleValidation = {
|
|
452
515
|
rule: MaxRuleValidation | MinRuleValidation;
|
453
516
|
};
|
454
517
|
declare type SetPasswordFormProps = {
|
455
|
-
fields: UIFields$
|
518
|
+
fields: UIFields$2<SetPasswordFields>;
|
456
519
|
logoUrl: string;
|
457
520
|
isLoading?: boolean;
|
458
521
|
validations: SetPasswordRuleValidation[];
|
@@ -463,7 +526,7 @@ declare const SetPasswordForm: ({ logoUrl, fields, validations, onBack, onSubmit
|
|
463
526
|
|
464
527
|
declare const showAcceptToastMessage: () => void | undefined;
|
465
528
|
declare type AcquisitionFormProps<T extends object> = {
|
466
|
-
fields: UIFields$
|
529
|
+
fields: UIFields$2<T>;
|
467
530
|
consents: ConsentProps$1[];
|
468
531
|
logoUrl: string;
|
469
532
|
isLoading?: boolean;
|
@@ -499,7 +562,7 @@ declare type LoginFields = {
|
|
499
562
|
};
|
500
563
|
|
501
564
|
declare type LoginFormProps = {
|
502
|
-
fields: UIFields$
|
565
|
+
fields: UIFields$2<LoginFields>;
|
503
566
|
logoUrl: string;
|
504
567
|
isLoading?: boolean;
|
505
568
|
twoFactorAuthConfig?: {
|
@@ -638,32 +701,6 @@ declare type HeaderProps<T = string> = (HeaderAProps<T> & {
|
|
638
701
|
});
|
639
702
|
declare const Header: <T extends string | number>(props: HeaderProps<T>) => JSX.Element;
|
640
703
|
|
641
|
-
declare type ButtonCaptureProps = {
|
642
|
-
type: 'button';
|
643
|
-
acceptButton: ButtonProps$1;
|
644
|
-
denyButton: ButtonProps$1;
|
645
|
-
};
|
646
|
-
declare type RadioButtonsCaptureProps<T extends string> = {
|
647
|
-
type: 'radioButton';
|
648
|
-
acceptValue: T;
|
649
|
-
} & RadioButtonsProps$1<T>;
|
650
|
-
declare type CheckboxCaptureProps = {
|
651
|
-
type: 'checkbox';
|
652
|
-
label: string;
|
653
|
-
value: boolean;
|
654
|
-
onChange: (value: boolean) => void;
|
655
|
-
};
|
656
|
-
declare type ConsentCaptureProps<T extends string = string> = ButtonCaptureProps | RadioButtonsCaptureProps<T> | CheckboxCaptureProps;
|
657
|
-
|
658
|
-
declare type ConsentProps<T extends string = string> = {
|
659
|
-
text: string;
|
660
|
-
isRequired?: boolean;
|
661
|
-
consentCaptureProps: ConsentCaptureProps<T>;
|
662
|
-
containerStyles?: CSSProperties;
|
663
|
-
clearStyles?: boolean;
|
664
|
-
};
|
665
|
-
declare const Consent: <T extends string>({ text, consentCaptureProps, containerStyles, clearStyles, }: ConsentProps<T>) => JSX.Element;
|
666
|
-
|
667
704
|
declare type ProcessTrackerStatus = 'complete' | 'incomplete' | 'in_progress';
|
668
705
|
declare type ProcessTrackerProps = {
|
669
706
|
title?: Nullable<string>;
|
@@ -763,7 +800,7 @@ interface Helpers {
|
|
763
800
|
}
|
764
801
|
declare const useStep: (maxStep: number) => [number, Helpers];
|
765
802
|
|
766
|
-
declare const useRequiredConsentsAcceptedValues: (consents: ConsentProps$
|
803
|
+
declare const useRequiredConsentsAcceptedValues: (consents: ConsentProps$3[]) => boolean;
|
767
804
|
|
768
805
|
declare const defaultTheme: DefaultTheme;
|
769
806
|
|
@@ -795,47 +832,6 @@ declare const toastStyles: styled_components.FlattenSimpleInterpolation;
|
|
795
832
|
|
796
833
|
declare const useMediaQuery: (breakpointSize: BreakpointSizesTypes$1) => boolean;
|
797
834
|
|
798
|
-
declare const getFieldPlaceholder: (type: FieldTypes$1, title?: string) => string;
|
799
|
-
|
800
|
-
declare type InputFieldTypes = 'phone-number' | 'text' | 'email' | 'password' | 'numerical' | 'any';
|
801
|
-
declare type FieldTypes = 'input' | 'select' | 'checkbox';
|
802
|
-
declare type UIField<T = string> = (UIInputField & UISelectField & UICheckboxField) & {
|
803
|
-
name: T;
|
804
|
-
type: FieldTypes;
|
805
|
-
value?: string;
|
806
|
-
label?: string;
|
807
|
-
placeholder?: string;
|
808
|
-
required?: boolean;
|
809
|
-
tooltip?: string;
|
810
|
-
rules?: ControllerProps['rules'];
|
811
|
-
order?: number;
|
812
|
-
};
|
813
|
-
declare type UIInputField = {
|
814
|
-
inputType?: InputFieldTypes;
|
815
|
-
maxLength?: number;
|
816
|
-
onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
817
|
-
} & InputFieldProps$1;
|
818
|
-
declare type UISelectField = {
|
819
|
-
options?: SelectOption$1[];
|
820
|
-
} & SelectFieldProps$1;
|
821
|
-
declare type UICheckboxField = {
|
822
|
-
checkboxLabel?: string;
|
823
|
-
};
|
824
|
-
declare type UIFields<T extends object> = UIField<keyof T>[];
|
825
|
-
|
826
|
-
declare const getInitialValuesFromFields: <T extends object>(fields: UIFields$2<T>) => DeepPartial<T>;
|
827
|
-
declare const isFormValid: <T extends FieldValues>(formState: FormState<T>) => boolean;
|
828
|
-
declare const getFieldsFromFieldSections: <T extends object>(sections: Pick<FieldSectionProps$1<T>, "fields">[]) => UIFields$2<T>;
|
829
|
-
|
830
|
-
declare const acquisitionFormMockFields: UIFields$2<Record<string, string>>;
|
831
|
-
declare const setPasswordMockFields: UIFields$2<SetPasswordFields>;
|
832
|
-
declare const loginMockFields: UIFields$2<LoginFields$1>;
|
833
|
-
declare const sectionMockFields: UIFields$2<Record<string, string>>;
|
834
|
-
declare const profileInformationMockForm: {
|
835
|
-
label: string;
|
836
|
-
fields: UIFields$2<Record<string, string>>;
|
837
|
-
}[];
|
838
|
-
|
839
835
|
declare type MlrRichTextViewerProviderProps = PropsWithChildren<{
|
840
836
|
annotationsList: AnnotationsList$1;
|
841
837
|
isMLRReview: boolean;
|
@@ -848,12 +844,15 @@ declare type MlrRichTextViewerContextType = {
|
|
848
844
|
showAnnotations: boolean;
|
849
845
|
annotationsList: AnnotationsList$1;
|
850
846
|
};
|
851
|
-
declare const MlrRichTextViewerContext:
|
847
|
+
declare const MlrRichTextViewerContext: react.Context<MlrRichTextViewerContextType>;
|
852
848
|
|
853
849
|
declare type AnnotationsList = {
|
854
850
|
tags: {
|
855
851
|
id: string;
|
856
852
|
label: string;
|
853
|
+
entityIds: string[];
|
854
|
+
moleculeIds: string[];
|
855
|
+
referencedByIds: string[];
|
857
856
|
}[];
|
858
857
|
links: {
|
859
858
|
referencedById: string;
|
@@ -865,6 +864,42 @@ declare type AnnotationsList = {
|
|
865
864
|
|
866
865
|
declare const useMlrRichTextViewerContext: () => contexts_MlrRichTextViewerContext_MlrRichTextViewerContext.MlrRichTextViewerContextType;
|
867
866
|
|
867
|
+
declare const useButtonActionsContext: () => contexts_ButtonActionsContext_ButtonActionsContext.ButtonActionsContextType;
|
868
|
+
|
869
|
+
declare type ButtonActionsContextType = {
|
870
|
+
actionContent?: ContainerComponentProps$1;
|
871
|
+
setActionContent: Dispatch<SetStateAction<ContainerComponentProps$1>>;
|
872
|
+
isModalVisible: boolean;
|
873
|
+
setModalVisible: Dispatch<SetStateAction<boolean>>;
|
874
|
+
isDrawerVisible: boolean;
|
875
|
+
setDrawerVisible: Dispatch<SetStateAction<boolean>>;
|
876
|
+
};
|
877
|
+
declare const ButtonActionsContext: react.Context<ButtonActionsContextType>;
|
878
|
+
|
879
|
+
declare type ButtonActionsProviderProps = PropsWithChildren<Partial<{
|
880
|
+
actionContent: ContainerComponentProps$1;
|
881
|
+
setActionContent: Dispatch<SetStateAction<ContainerComponentProps$1>>;
|
882
|
+
isModalVisible: boolean;
|
883
|
+
setModalVisible: Dispatch<SetStateAction<boolean>>;
|
884
|
+
setDrawerVisible: Dispatch<SetStateAction<boolean>>;
|
885
|
+
isDrawerVisible: boolean;
|
886
|
+
}>>;
|
887
|
+
declare const ButtonActionsProvider: ({ children }: ButtonActionsProviderProps) => JSX.Element;
|
888
|
+
|
889
|
+
declare type StepItem = ContainerComponentProps$1 | Molecule$1;
|
890
|
+
declare type GroupedStepItemsByStepContainer = Map<string, StepItem[]>;
|
891
|
+
|
892
|
+
declare type OrganismContextType = {
|
893
|
+
items: (ContainerComponentProps$1 | Molecule$1)[];
|
894
|
+
groupStepItemsByStepContainer: () => GroupedStepItemsByStepContainer;
|
895
|
+
};
|
896
|
+
declare const OrganismContext: react.Context<OrganismContextType>;
|
897
|
+
|
898
|
+
declare type FormStepContextProviderProps = PropsWithChildren<Partial<{
|
899
|
+
initItems: (ContainerComponentProps$1 | Molecule$1)[];
|
900
|
+
}>>;
|
901
|
+
declare const OrganismContextProvider: ({ initItems, children, }: FormStepContextProviderProps) => JSX.Element;
|
902
|
+
|
868
903
|
declare type FieldRuleLabelTypes = 'OPTIONAL' | 'REQUIRED';
|
869
904
|
declare type LabelInternalConfig = {
|
870
905
|
fontVariant: FontSizesTypes$2;
|
@@ -916,8 +951,9 @@ declare type InputFieldProps = Partial<{
|
|
916
951
|
inputProps: InputProps$1;
|
917
952
|
styles: StylesType;
|
918
953
|
labelsProps: FieldLabelsProps;
|
954
|
+
conditionConfig?: ConditionConfig$1;
|
919
955
|
}>;
|
920
|
-
declare const InputField: ({ control, name, inputProps, styles, labelsProps, defaultValue, optional, required, rules, }: InputFieldProps) => JSX.Element;
|
956
|
+
declare const InputField: ({ control, name, inputProps, styles, labelsProps, defaultValue, optional, required, rules, conditionConfig, }: InputFieldProps) => JSX.Element | null;
|
921
957
|
|
922
958
|
declare type FieldMapperProps<T extends object> = {
|
923
959
|
field: UIField$1<keyof T>;
|
@@ -951,14 +987,17 @@ declare type CheckboxFieldProps = Partial<{
|
|
951
987
|
required: boolean;
|
952
988
|
optional: boolean;
|
953
989
|
wrapperStyles: StylesType;
|
990
|
+
conditionConfig?: ConditionConfig$1;
|
954
991
|
}>;
|
955
|
-
declare const CheckboxField: ({ checkboxesProps, name, rules, control, optional, required, labelsProps, wrapperStyles, }: CheckboxFieldProps) => JSX.Element;
|
992
|
+
declare const CheckboxField: ({ checkboxesProps, name, rules, control, optional, required, labelsProps, wrapperStyles, conditionConfig, }: CheckboxFieldProps) => JSX.Element | null;
|
956
993
|
|
957
994
|
declare type CheckboxGroupProps = Partial<{
|
995
|
+
ref: RefCallBack;
|
996
|
+
onBlur: Callback$1;
|
958
997
|
onChange: (checkedIds: string[]) => void;
|
959
998
|
checkboxesProps: CheckboxesProps;
|
960
999
|
}>;
|
961
|
-
declare const CheckboxGroup: ({ onChange, checkboxesProps }: CheckboxGroupProps) => JSX.Element;
|
1000
|
+
declare const CheckboxGroup: ({ ref, onBlur, onChange, checkboxesProps }: CheckboxGroupProps) => JSX.Element;
|
962
1001
|
|
963
1002
|
declare type SelectFieldProps = Partial<{
|
964
1003
|
selectProps: SelectProps$1;
|
@@ -970,8 +1009,9 @@ declare type SelectFieldProps = Partial<{
|
|
970
1009
|
optional: boolean;
|
971
1010
|
defaultValue: string;
|
972
1011
|
styles: StylesType;
|
1012
|
+
conditionConfig?: ConditionConfig$1;
|
973
1013
|
}>;
|
974
|
-
declare const SelectField: ({ selectProps, name, defaultValue, optional, required, control, styles, labelsProps, rules, }: SelectFieldProps) => JSX.Element;
|
1014
|
+
declare const SelectField: ({ selectProps, name, defaultValue, optional, required, control, styles, labelsProps, rules, conditionConfig, }: SelectFieldProps) => JSX.Element | null;
|
975
1015
|
|
976
1016
|
declare type CustomValidationRule<T = string> = {
|
977
1017
|
text: string;
|
@@ -1064,7 +1104,7 @@ declare const AvatarDropdown: <T extends string | number>({ avatarProps, menuCon
|
|
1064
1104
|
|
1065
1105
|
declare type TabType<T = string, K = string> = Pick<TabProps$1<T, K>, 'text' | 'tabKey' | 'disabled' | 'options' | 'divider'>;
|
1066
1106
|
declare type AdditionalTabContainerProps = {
|
1067
|
-
containerStyle?:
|
1107
|
+
containerStyle?: StylesType;
|
1068
1108
|
containerProps?: Record<string, unknown>;
|
1069
1109
|
};
|
1070
1110
|
declare type TabGroupProps<T = string, K = string> = {
|
@@ -1112,34 +1152,61 @@ declare const EmphasizedText: ({ textContent, invertColors }: EmphasizedTextProp
|
|
1112
1152
|
|
1113
1153
|
declare type RadioButtonFieldProps<T extends string> = Partial<{
|
1114
1154
|
name: string;
|
1115
|
-
control: Control$1<any>;
|
1116
1155
|
rules: ControllerProps$1['rules'];
|
1117
|
-
|
1156
|
+
styles: StylesType;
|
1157
|
+
control: Control$1<any>;
|
1118
1158
|
optional: boolean;
|
1159
|
+
required: boolean;
|
1160
|
+
labelsProps: FieldLabelsProps;
|
1119
1161
|
defaultValue: string;
|
1120
|
-
styles: CSSProperties;
|
1121
1162
|
radioButtonsProps: RadioButtonsProps$1<T>;
|
1122
|
-
|
1163
|
+
internalConfig: RadioButtonInternalConfigProps$1;
|
1164
|
+
conditionConfig?: ConditionConfig$1;
|
1123
1165
|
}>;
|
1124
|
-
declare const RadioButtonField: <T extends string>({
|
1166
|
+
declare const RadioButtonField: <T extends string>({ name, rules, styles, control, optional, required, labelsProps, defaultValue, radioButtonsProps, conditionConfig, }: Partial<{
|
1125
1167
|
name: string;
|
1126
|
-
control: Control$1<any>;
|
1127
1168
|
rules: ControllerProps$1['rules'];
|
1128
|
-
|
1169
|
+
styles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
|
1170
|
+
control: Control$1<any>;
|
1129
1171
|
optional: boolean;
|
1172
|
+
required: boolean;
|
1173
|
+
labelsProps: FieldLabelsProps;
|
1130
1174
|
defaultValue: string;
|
1131
|
-
styles: CSSProperties;
|
1132
1175
|
radioButtonsProps: Partial<{
|
1133
|
-
|
1134
|
-
|
1176
|
+
ref: react_hook_form.RefCallBack;
|
1177
|
+
name: string;
|
1135
1178
|
value: T;
|
1179
|
+
options: atoms.SelectOption[];
|
1180
|
+
onBlur: typescript.Callback;
|
1181
|
+
onChange: (value: T) => void;
|
1136
1182
|
isRow: boolean;
|
1137
|
-
|
1138
|
-
|
1139
|
-
|
1183
|
+
isError: boolean;
|
1184
|
+
disabled: boolean;
|
1185
|
+
isEditMode: boolean;
|
1186
|
+
isRichText: boolean;
|
1187
|
+
internalConfig: Partial<{
|
1188
|
+
selectedRadioOptionBackgroundColor: string;
|
1189
|
+
selectedRadioOptionIndicatorColor: string;
|
1190
|
+
buttonPadding: number;
|
1191
|
+
textPadding: number;
|
1192
|
+
styles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
|
1193
|
+
wrapperStyles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
|
1194
|
+
buttonOptionSpacing: SizesTypes;
|
1195
|
+
radioGroupWrapperStyles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
|
1196
|
+
}>;
|
1140
1197
|
}>;
|
1141
|
-
|
1142
|
-
|
1198
|
+
internalConfig: Partial<{
|
1199
|
+
selectedRadioOptionBackgroundColor: string;
|
1200
|
+
selectedRadioOptionIndicatorColor: string;
|
1201
|
+
buttonPadding: number;
|
1202
|
+
textPadding: number;
|
1203
|
+
styles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
|
1204
|
+
wrapperStyles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
|
1205
|
+
buttonOptionSpacing: SizesTypes;
|
1206
|
+
radioGroupWrapperStyles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
|
1207
|
+
}>;
|
1208
|
+
conditionConfig?: ConditionConfig$1 | undefined;
|
1209
|
+
}>) => JSX.Element | null;
|
1143
1210
|
|
1144
1211
|
declare type AlertProps = {
|
1145
1212
|
style?: CSSProperties;
|
@@ -1183,7 +1250,7 @@ declare type PdfDocumentProps = {
|
|
1183
1250
|
disabledPaginationArrowColor: ThemeColors$1 | string;
|
1184
1251
|
}>;
|
1185
1252
|
};
|
1186
|
-
declare const PdfDocument: (
|
1253
|
+
declare const PdfDocument: () => JSX.Element;
|
1187
1254
|
|
1188
1255
|
declare type FeedTemplateKeys = `feed_${'a' | 'b'}`;
|
1189
1256
|
declare type FeedContentHeaderProps = {
|
@@ -1224,9 +1291,10 @@ declare type VideoProps = {
|
|
1224
1291
|
enableCoverImage: boolean;
|
1225
1292
|
coverImageSrc: string;
|
1226
1293
|
style: CSSProperties;
|
1294
|
+
styles: StylesType;
|
1227
1295
|
template: FeedContentTemplateTypes$1;
|
1228
1296
|
}>;
|
1229
|
-
declare const Video: ({ style, src, width, template, autoplay, enableCoverImage, coverImageSrc, }: VideoProps) => JSX.Element;
|
1297
|
+
declare const Video: ({ style, src, width, template, autoplay, enableCoverImage, coverImageSrc, styles, }: VideoProps) => JSX.Element | null;
|
1230
1298
|
|
1231
1299
|
declare type ImageProps = {
|
1232
1300
|
src: string;
|
@@ -1234,13 +1302,14 @@ declare type ImageProps = {
|
|
1234
1302
|
id: string;
|
1235
1303
|
altText: string;
|
1236
1304
|
link: string;
|
1305
|
+
onClick: Callback$1;
|
1237
1306
|
width: number;
|
1238
1307
|
height: number;
|
1239
1308
|
cornerRadius: number;
|
1240
1309
|
behaveAs: 'background' | 'regular';
|
1241
1310
|
styles: StylesType;
|
1242
1311
|
}>;
|
1243
|
-
declare const Image: ({ src, link, altText, styles, width, height, id, behaveAs, cornerRadius, }: ImageProps) => JSX.Element;
|
1312
|
+
declare const Image: ({ src, onClick, link, altText, styles, width, height, id, behaveAs, cornerRadius, }: ImageProps) => JSX.Element | null;
|
1244
1313
|
|
1245
1314
|
declare type CarouselProps = {
|
1246
1315
|
children: JSX.Element[];
|
@@ -1311,22 +1380,129 @@ declare type ButtonProps = BaseButtonProps & {
|
|
1311
1380
|
};
|
1312
1381
|
declare const Button: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children, buttonStyle, size, textColor, inactiveTextColor, state, href, ...props }: ButtonProps) => JSX.Element | null;
|
1313
1382
|
|
1314
|
-
declare
|
1315
|
-
|
1383
|
+
declare type ZealUIModalProps = PropsWithChildren<Pick<ModalProps, 'open'>> & {
|
1384
|
+
padding?: number | string;
|
1385
|
+
wrapperStyles?: CSSProperties;
|
1386
|
+
onKeyDown?: <T extends HTMLElement>(event: KeyboardEvent<T>) => void;
|
1387
|
+
modalStyles?: CSSProperties;
|
1388
|
+
onClose?: Callback$1;
|
1389
|
+
};
|
1390
|
+
declare const ZealUIModal: ({ children, wrapperStyles, padding, onKeyDown, modalStyles, ...rest }: ZealUIModalProps) => JSX.Element;
|
1391
|
+
declare const ModalWrapper: styled_components.StyledComponent<"div", styled_components.DefaultTheme, OverrideStyles, never>;
|
1392
|
+
declare const IconWrapper: styled_components.StyledComponent<"div", styled_components.DefaultTheme, {
|
1393
|
+
activeOpacity?: number | undefined;
|
1394
|
+
withoutOpacityEffect?: boolean | undefined;
|
1395
|
+
disabled?: boolean | undefined;
|
1396
|
+
} & {
|
1397
|
+
children?: react__default.ReactNode;
|
1398
|
+
}, never>;
|
1399
|
+
|
1400
|
+
declare type ConsentCaptureMethod = 'button' | 'radioButton' | 'checkbox';
|
1401
|
+
declare type DefaultSelectionType = 'confirmation' | 'rejection';
|
1402
|
+
declare type ConsentProps<T extends string = string> = {
|
1403
|
+
text: string;
|
1404
|
+
isRequired?: boolean;
|
1405
|
+
consentCaptureProps: ConsentCaptureProps<T>;
|
1406
|
+
containerStyles?: CSSProperties;
|
1407
|
+
clearStyles?: boolean;
|
1408
|
+
};
|
1409
|
+
declare type Consent = {
|
1410
|
+
id: string;
|
1411
|
+
name: string;
|
1412
|
+
acknowledgment: CustomDescendant[];
|
1413
|
+
methodOfCapture: ConsentCaptureMethod;
|
1414
|
+
description: string;
|
1415
|
+
language: CustomDescendant[];
|
1416
|
+
expiration: string;
|
1417
|
+
confirmationButtonText: string;
|
1418
|
+
rejectionButtonText: string;
|
1419
|
+
defaultSelection: DefaultSelectionType;
|
1420
|
+
value?: DefaultSelectionType | boolean;
|
1421
|
+
isRequired?: boolean;
|
1422
|
+
};
|
1423
|
+
declare const Consent: <T extends string>({ text, consentCaptureProps, containerStyles, clearStyles, }: ConsentProps<T>) => JSX.Element;
|
1424
|
+
|
1425
|
+
declare const Container: ({ children, wide, compact, type, props, id, }: Partial<{
|
1426
|
+
type: containers.ContainerType;
|
1427
|
+
wide: Partial<{
|
1428
|
+
containerStyle: styled_components.CSSProperties;
|
1429
|
+
containerProps: Partial<{
|
1430
|
+
position: containers.ContainerPositionType;
|
1431
|
+
scrollBehaviour: containers.ContainerScrollBehaviourType;
|
1432
|
+
cornerRadius: number;
|
1433
|
+
styles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
|
1434
|
+
formProps: containers.FormContainerProps;
|
1435
|
+
formStepProps: containers.FormStepContainerProps;
|
1436
|
+
}>;
|
1437
|
+
}>;
|
1438
|
+
compact: Partial<{
|
1439
|
+
containerStyle: styled_components.CSSProperties;
|
1440
|
+
containerProps: Partial<{
|
1441
|
+
position: containers.ContainerPositionType;
|
1442
|
+
scrollBehaviour: containers.ContainerScrollBehaviourType;
|
1443
|
+
cornerRadius: number;
|
1444
|
+
styles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
|
1445
|
+
formProps: containers.FormContainerProps;
|
1446
|
+
formStepProps: containers.FormStepContainerProps;
|
1447
|
+
}>;
|
1448
|
+
}>;
|
1449
|
+
props: Partial<{
|
1450
|
+
position: containers.ContainerPositionType;
|
1451
|
+
scrollBehaviour: containers.ContainerScrollBehaviourType;
|
1452
|
+
cornerRadius: number;
|
1453
|
+
styles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
|
1454
|
+
formProps: containers.FormContainerProps;
|
1455
|
+
formStepProps: containers.FormStepContainerProps;
|
1456
|
+
}>;
|
1457
|
+
}> & {
|
1458
|
+
children?: react.ReactNode;
|
1459
|
+
} & {
|
1460
|
+
id: string;
|
1461
|
+
}) => JSX.Element;
|
1462
|
+
declare const ContainerComponent: ({ type, items, config, tabsProps, id, }: ContainerComponentProps$1) => JSX.Element | null;
|
1316
1463
|
|
1464
|
+
declare type ActionTypes = 'link' | 'popup' | 'drawer' | 'download' | 'submit' | 'reset' | 'destroy';
|
1465
|
+
declare type DownloadFile = {
|
1466
|
+
url: string;
|
1467
|
+
name: string;
|
1468
|
+
};
|
1469
|
+
declare type LinkAction = LinkAttributes;
|
1470
|
+
declare type PopupDrawerAction = ContainerComponentProps;
|
1471
|
+
declare type DownloadAction = DownloadFile;
|
1472
|
+
declare type SubmitAction = AnyObject;
|
1473
|
+
declare type CancelAction = AnyObject;
|
1474
|
+
declare type ResetAction = AnyObject;
|
1475
|
+
declare type DestroyAction = AnyObject;
|
1476
|
+
declare type Action = {
|
1477
|
+
type: ActionTypes;
|
1478
|
+
} & Partial<{
|
1479
|
+
link: LinkAction;
|
1480
|
+
popup: PopupDrawerAction;
|
1481
|
+
drawer: PopupDrawerAction;
|
1482
|
+
download: DownloadAction;
|
1483
|
+
submit: SubmitAction;
|
1484
|
+
cancel: CancelAction;
|
1485
|
+
reset: ResetAction;
|
1486
|
+
destroy: DestroyAction;
|
1487
|
+
}>;
|
1317
1488
|
declare type ImageAttributes = {
|
1318
1489
|
attributeType: 'image';
|
1319
1490
|
imageSource: string;
|
1320
1491
|
};
|
1321
1492
|
interface TextAttributes {
|
1493
|
+
id?: string;
|
1322
1494
|
attributeType: 'text';
|
1323
|
-
isRichText
|
1495
|
+
isRichText?: boolean;
|
1324
1496
|
text: string;
|
1325
1497
|
}
|
1326
1498
|
interface VideoAttributes {
|
1327
1499
|
attributeType: 'video';
|
1328
1500
|
videoSource: string;
|
1329
1501
|
}
|
1502
|
+
interface ActionAttributes {
|
1503
|
+
attributeType: 'action';
|
1504
|
+
action: Action;
|
1505
|
+
}
|
1330
1506
|
interface LinkAttributes {
|
1331
1507
|
id: string;
|
1332
1508
|
attributeType: 'link';
|
@@ -1336,6 +1512,7 @@ interface LinkAttributes {
|
|
1336
1512
|
name: string;
|
1337
1513
|
}
|
1338
1514
|
interface SelectAttributes {
|
1515
|
+
id?: string;
|
1339
1516
|
attributeType: 'select';
|
1340
1517
|
value: string;
|
1341
1518
|
options: SelectOption$1[];
|
@@ -1348,56 +1525,72 @@ interface IterableAttributes {
|
|
1348
1525
|
attributeType: 'iterable';
|
1349
1526
|
options: SelectOption$1[];
|
1350
1527
|
}
|
1351
|
-
|
1528
|
+
interface DataConnectionAttributes {
|
1529
|
+
id: string;
|
1530
|
+
attributeType: 'data_model_field';
|
1531
|
+
dataModelField: {
|
1532
|
+
id: string;
|
1533
|
+
fieldName: string;
|
1534
|
+
code: string;
|
1535
|
+
};
|
1536
|
+
}
|
1537
|
+
interface ConditionConfigAttributes {
|
1538
|
+
id: string;
|
1539
|
+
attributeType: 'condition_config';
|
1540
|
+
conditionConfig: ConditionConfig;
|
1541
|
+
}
|
1542
|
+
declare type MoleculeTypes = 'image' | 'text' | 'button' | 'video' | 'header_tab_group' | 'input_field' | 'select_field' | 'radio_button_field' | 'checkbox_field' | 'consent';
|
1352
1543
|
interface BaseMolecule {
|
1353
1544
|
id: string;
|
1354
1545
|
instance: 'molecule';
|
1355
1546
|
type: MoleculeTypes;
|
1547
|
+
metadata?: AnyObject;
|
1356
1548
|
}
|
1357
1549
|
interface ImageMolecule extends BaseMolecule {
|
1358
1550
|
type: 'image';
|
1359
|
-
attributes: {
|
1551
|
+
attributes: Partial<{
|
1360
1552
|
image: ImageAttributes;
|
1361
1553
|
altText: Omit<TextAttributes, 'isRichText'>;
|
1362
1554
|
link: LinkAttributes;
|
1363
|
-
}
|
1555
|
+
}>;
|
1364
1556
|
config: {
|
1365
|
-
props
|
1557
|
+
props?: Omit<ImageProps$1, 'src' | 'link' | 'altText'>;
|
1366
1558
|
};
|
1367
1559
|
}
|
1368
1560
|
interface TextMoleculeType extends BaseMolecule {
|
1369
1561
|
type: 'text';
|
1370
|
-
attributes: {
|
1562
|
+
attributes: Partial<{
|
1371
1563
|
text: TextAttributes;
|
1372
1564
|
seoStyle: SelectAttributes;
|
1373
|
-
|
1565
|
+
fontVariant: SelectAttributes;
|
1566
|
+
}>;
|
1374
1567
|
config: {
|
1375
|
-
props
|
1568
|
+
props?: TextMoleculeProps$1;
|
1376
1569
|
};
|
1377
1570
|
}
|
1378
1571
|
interface ButtonMolecule extends BaseMolecule {
|
1379
1572
|
type: 'button';
|
1380
|
-
attributes: {
|
1573
|
+
attributes: Partial<{
|
1381
1574
|
title: TextAttributes;
|
1382
|
-
|
1383
|
-
}
|
1575
|
+
action: ActionAttributes;
|
1576
|
+
}>;
|
1384
1577
|
config: {
|
1385
|
-
props
|
1578
|
+
props?: Partial<Omit<ButtonProps$1, 'disabled' | 'children' | 'link' | 'text' | 'onClick' | 'elementId'>>;
|
1386
1579
|
};
|
1387
1580
|
}
|
1388
1581
|
interface VideoMolecule extends BaseMolecule {
|
1389
1582
|
type: 'video';
|
1390
|
-
attributes: {
|
1583
|
+
attributes: Partial<{
|
1391
1584
|
video: VideoAttributes;
|
1392
1585
|
altText: Omit<TextAttributes, 'isRichText'>;
|
1393
1586
|
autoPlayVideo: BooleanAttributes;
|
1394
1587
|
enableCoverImage: BooleanAttributes;
|
1395
1588
|
coverImage: ImageAttributes;
|
1396
|
-
}
|
1589
|
+
}>;
|
1397
1590
|
config: {
|
1398
1591
|
props: Partial<{
|
1399
1592
|
width: number;
|
1400
|
-
styles:
|
1593
|
+
styles: StylesType;
|
1401
1594
|
}>;
|
1402
1595
|
};
|
1403
1596
|
}
|
@@ -1405,83 +1598,102 @@ interface TabGroupMolecule extends BaseMolecule {
|
|
1405
1598
|
type: 'header_tab_group';
|
1406
1599
|
config: {
|
1407
1600
|
props: TabGroupProps$1;
|
1408
|
-
wide:
|
1409
|
-
|
1410
|
-
containerProps?: Record<string, unknown>;
|
1411
|
-
};
|
1412
|
-
compact: {
|
1413
|
-
containerStyle?: CSSProperties;
|
1414
|
-
containerProps?: Record<string, unknown>;
|
1415
|
-
};
|
1601
|
+
wide: AdditionalTabContainerProps$1;
|
1602
|
+
compact: AdditionalTabContainerProps$1;
|
1416
1603
|
};
|
1417
1604
|
}
|
1418
1605
|
interface TextInputMolecule extends BaseMolecule {
|
1419
1606
|
type: 'input_field';
|
1420
|
-
attributes: {
|
1607
|
+
attributes: Partial<{
|
1421
1608
|
label: TextAttributes;
|
1422
1609
|
required: BooleanAttributes;
|
1423
1610
|
inputType: SelectAttributes;
|
1424
|
-
|
1611
|
+
dataModelField: DataConnectionAttributes;
|
1612
|
+
conditionConfig: ConditionConfigAttributes;
|
1613
|
+
}>;
|
1425
1614
|
config: {
|
1426
|
-
props
|
1615
|
+
props?: Partial<{
|
1427
1616
|
state: 'default' | 'error';
|
1428
1617
|
} & InputFieldProps$1>;
|
1429
1618
|
};
|
1430
1619
|
}
|
1431
1620
|
interface SelectFieldMolecule extends BaseMolecule {
|
1432
1621
|
type: 'select_field';
|
1433
|
-
attributes: {
|
1622
|
+
attributes: Partial<{
|
1434
1623
|
label: TextAttributes;
|
1435
1624
|
required: BooleanAttributes;
|
1436
1625
|
options: IterableAttributes;
|
1437
|
-
|
1626
|
+
dataModelField: DataConnectionAttributes;
|
1627
|
+
conditionConfig: ConditionConfigAttributes;
|
1628
|
+
}>;
|
1438
1629
|
config: {
|
1439
|
-
props
|
1630
|
+
props?: Partial<{
|
1440
1631
|
state: 'default' | 'error';
|
1441
1632
|
} & SelectFieldProps$1>;
|
1442
1633
|
};
|
1443
1634
|
}
|
1444
1635
|
interface RadioButtonFieldMolecule extends BaseMolecule {
|
1445
1636
|
type: 'radio_button_field';
|
1446
|
-
attributes: {
|
1637
|
+
attributes: Partial<{
|
1447
1638
|
label: TextAttributes;
|
1448
1639
|
required: BooleanAttributes;
|
1449
1640
|
options: IterableAttributes;
|
1450
|
-
|
1641
|
+
dataModelField: DataConnectionAttributes;
|
1642
|
+
conditionConfig: ConditionConfigAttributes;
|
1643
|
+
}>;
|
1451
1644
|
config: {
|
1452
|
-
props
|
1645
|
+
props?: Partial<{
|
1453
1646
|
state: 'default' | 'error';
|
1454
1647
|
} & RadioButtonFieldProps$1<string>>;
|
1455
1648
|
};
|
1456
1649
|
}
|
1457
1650
|
interface CheckboxFieldMolecule extends BaseMolecule {
|
1458
1651
|
type: 'checkbox_field';
|
1459
|
-
attributes: {
|
1652
|
+
attributes: Partial<{
|
1460
1653
|
label: TextAttributes;
|
1461
1654
|
required: BooleanAttributes;
|
1462
1655
|
options: IterableAttributes;
|
1463
|
-
|
1656
|
+
dataModelField: DataConnectionAttributes;
|
1657
|
+
conditionConfig: ConditionConfigAttributes;
|
1658
|
+
}>;
|
1464
1659
|
config: {
|
1465
|
-
props
|
1660
|
+
props?: Partial<{
|
1466
1661
|
state: 'default' | 'error';
|
1467
1662
|
} & CheckboxFieldProps$1>;
|
1468
1663
|
};
|
1469
1664
|
}
|
1470
|
-
|
1665
|
+
interface ConsentFieldMolecule extends BaseMolecule {
|
1666
|
+
type: 'consent';
|
1667
|
+
attributes: Partial<{
|
1668
|
+
consent: Partial<{
|
1669
|
+
attributeType: 'consent';
|
1670
|
+
consent: Consent$1;
|
1671
|
+
required: BooleanAttributes;
|
1672
|
+
}>;
|
1673
|
+
}>;
|
1674
|
+
}
|
1675
|
+
declare type Molecule = StrictUnion<ImageMolecule | TextMoleculeType | ButtonMolecule | VideoMolecule | TabGroupMolecule | TextInputMolecule | SelectFieldMolecule | RadioButtonFieldMolecule | CheckboxFieldMolecule | ConsentFieldMolecule> & {
|
1471
1676
|
form?: UseFormReturn<any>;
|
1472
1677
|
};
|
1473
1678
|
|
1474
|
-
declare type ContainerType = 'row' | 'column' | 'slider' | 'form';
|
1475
|
-
declare type ContainerPositionType = 'fixed' | 'sticky' | 'static';
|
1679
|
+
declare type ContainerType = 'row' | 'column' | 'slider' | 'form' | 'form_step';
|
1680
|
+
declare type ContainerPositionType = 'fixed' | 'sticky' | 'static' | 'relative';
|
1476
1681
|
declare type ContainerScrollBehaviourType = 'vertical' | 'horizontal' | 'auto' | 'none';
|
1682
|
+
declare type FormStepContainerProps = {
|
1683
|
+
formStepName: string;
|
1684
|
+
order: number;
|
1685
|
+
conditionConfig: ConditionConfig;
|
1686
|
+
};
|
1687
|
+
declare type FormContainerProps = {
|
1688
|
+
mode: keyof ValidationMode;
|
1689
|
+
};
|
1477
1690
|
declare type ContainerPropsType = Partial<{
|
1478
1691
|
position: ContainerPositionType;
|
1479
1692
|
scrollBehaviour: ContainerScrollBehaviourType;
|
1480
1693
|
cornerRadius: number;
|
1481
1694
|
styles: StylesType;
|
1482
|
-
formProps:
|
1483
|
-
|
1484
|
-
};
|
1695
|
+
formProps: FormContainerProps;
|
1696
|
+
formStepProps: FormStepContainerProps;
|
1485
1697
|
}>;
|
1486
1698
|
declare type AdditionalContainerProps = Partial<{
|
1487
1699
|
containerStyle: CSSProperties;
|
@@ -1497,24 +1709,42 @@ declare type ContainerComponentProps = {
|
|
1497
1709
|
id: string;
|
1498
1710
|
instance: 'container';
|
1499
1711
|
type: ContainerType;
|
1712
|
+
items: (ContainerComponentProps | Molecule)[];
|
1500
1713
|
config: {
|
1501
1714
|
wide?: AdditionalContainerProps;
|
1502
1715
|
compact?: AdditionalContainerProps;
|
1503
1716
|
props?: ContainerPropsType;
|
1504
1717
|
};
|
1505
|
-
items: (ContainerComponentProps | Molecule)[];
|
1506
1718
|
tabsProps?: Pick<TabGroupProps$1, 'tabs' | 'activeTabKey' | 'onTabChange'>;
|
1719
|
+
metadata?: AnyObject;
|
1720
|
+
attributes?: AnyObject;
|
1721
|
+
containerLibraryId?: string;
|
1507
1722
|
};
|
1723
|
+
declare type CriteriaType = 'operator' | 'condition';
|
1724
|
+
declare type ConditionCriteria = {
|
1725
|
+
id: string;
|
1726
|
+
type: CriteriaType;
|
1727
|
+
operator: string;
|
1728
|
+
dataFieldId: Nullable<string>;
|
1729
|
+
dataFieldName: Nullable<string>;
|
1730
|
+
dataValue: Nullable<string>;
|
1731
|
+
connectedTo: Nullable<string>;
|
1732
|
+
};
|
1733
|
+
declare type SegmentationType = 'simple' | 'advanced';
|
1734
|
+
declare type ConditionConfig = Nullable<{
|
1735
|
+
id: string;
|
1736
|
+
segmentationType: SegmentationType;
|
1737
|
+
criteriaList: ConditionCriteria[];
|
1738
|
+
}>;
|
1508
1739
|
|
1509
|
-
declare const ContainerWrapper: styled_components.StyledComponent<"div", styled_components.DefaultTheme, Pick<ContainerProps$
|
1740
|
+
declare const ContainerWrapper: styled_components.StyledComponent<"div", styled_components.DefaultTheme, Pick<ContainerProps$1, "type"> & {
|
1510
1741
|
containerProps?: Partial<{
|
1511
1742
|
position: containers_types_types.ContainerPositionType;
|
1512
1743
|
scrollBehaviour: containers_types_types.ContainerScrollBehaviourType;
|
1513
1744
|
cornerRadius: number;
|
1514
1745
|
styles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
|
1515
|
-
formProps:
|
1516
|
-
|
1517
|
-
};
|
1746
|
+
formProps: containers_types_types.FormContainerProps;
|
1747
|
+
formStepProps: containers_types_types.FormStepContainerProps;
|
1518
1748
|
}> | undefined;
|
1519
1749
|
}, never>;
|
1520
1750
|
|
@@ -1523,4 +1753,4 @@ declare const OrganismItem: ({ item, tabsProps, }: {
|
|
1523
1753
|
tabsProps?: Pick<TabGroupProps$1<string, string>, "tabs" | "activeTabKey" | "onTabChange"> | undefined;
|
1524
1754
|
}) => JSX.Element | null;
|
1525
1755
|
|
1526
|
-
export { AcquisitionForm, AcquisitionFormProps, AdditionalContainerProps, Alert, AlertProps, AnnotationsList, ArrowIconWrapper, AuthMethod, Avatar, AvatarDropdown, AvatarDropdownProps, AvatarProps, BackgroundImage, BaseButtonProps, BaseMolecule, Body, BodyProps, BooleanAttributes, BottomNaVBarItemProps, BottomNavBarItem, BottomNavBarNavigation, BottomNavBarNavigationProps, BreakpointSizesTypes, Button, ButtonMolecule, ButtonProps, ButtonType, ButtonVariant, ButtonsWrapper, COMMUNICATION_LINK_DATA_TEXT, COMMUNICATION_LINK_DATA_URL, COMMUNICATION_LINK_ELEMENT_ID, CaretIconWrapper, Carousel, CarouselProps, Checkbox, CheckboxField, CheckboxFieldMolecule, CheckboxFieldProps, CheckboxGroup, CheckboxGroupProps, CheckboxProps, CheckboxesProps, Circle, CircleBoxProps, CircularIndicator, CircularIndicatorProps, CircularIndicatorStyledComponent, ColumnItem, Columns, ColumnsProps, Consent, ConsentProps, Container, ContainerComponent, ContainerComponentProps, ContainerPositionType, ContainerProps, ContainerPropsType, ContainerScrollBehaviourType, ContainerType, ContainerWrapper, CustomValidation, CustomValidationProps, CustomValidationRule, DefaultTemplate, DefaultTemplateProps, Divider, DividerProps, Drawer, DynamicContentZone, DynamicContentZoneProps, DynamicElementProps, EmphasizedText, EmphasizedTextProps, ErrorText, FeedContent, FeedContentContainer, FeedContentContainerProps, FeedContentHeader, FeedContentHeaderProps, FeedTemplateKeys, FieldLabels, FieldLabelsProps, FieldMapper, FieldMapperProps, FieldRuleLabelTypes, FieldSection, FieldSectionProps, FieldTypes, FilteredFeedContentType, FontSizesTypes, FontWeight, Footer, FooterContactInfo, FooterLink, FooterProps, ForgotPasswordForm, ForgotPasswordFormProps,
|
1756
|
+
export { AcquisitionForm, AcquisitionFormProps, ActionAttributes, ActionTypes, AdditionalContainerProps, AdditionalTabContainerProps, Alert, AlertProps, AnnotationsList, ArrowIconWrapper, AuthMethod, Avatar, AvatarDropdown, AvatarDropdownProps, AvatarProps, BackgroundImage, BaseButtonProps, BaseMolecule, Body, BodyProps, BooleanAttributes, BottomNaVBarItemProps, BottomNavBarItem, BottomNavBarNavigation, BottomNavBarNavigationProps, BreakpointSizesTypes, Button, ButtonActionsContext, ButtonActionsContextType, ButtonActionsProvider, ButtonActionsProviderProps, ButtonMolecule, ButtonProps, ButtonType, ButtonVariant, ButtonsWrapper, COMMUNICATION_LINK_DATA_TEXT, COMMUNICATION_LINK_DATA_URL, COMMUNICATION_LINK_ELEMENT_ID, CaretIconWrapper, Carousel, CarouselProps, Checkbox, CheckboxField, CheckboxFieldMolecule, CheckboxFieldProps, CheckboxGroup, CheckboxGroupProps, CheckboxProps, CheckboxesProps, Circle, CircleBoxProps, CirclesWrapper, CircularIndicator, CircularIndicatorProps, CircularIndicatorStyledComponent, ColumnItem, Columns, ColumnsProps, ConditionConfig, ConditionConfigAttributes, ConditionCriteria, Consent, ConsentCaptureMethod, ConsentFieldMolecule, ConsentProps, Container, ContainerComponent, ContainerComponentProps, ContainerPositionType, ContainerProps, ContainerPropsType, ContainerScrollBehaviourType, ContainerType, ContainerWrapper, CriteriaType, CustomValidation, CustomValidationProps, CustomValidationRule, DataConnectionAttributes, DefaultSelectionType, DefaultTemplate, DefaultTemplateProps, Divider, DividerProps, DownloadFile, Drawer, DynamicContentZone, DynamicContentZoneProps, DynamicElementProps, EmphasizedText, EmphasizedTextProps, ErrorText, FeedContent, FeedContentContainer, FeedContentContainerProps, FeedContentHeader, FeedContentHeaderProps, FeedTemplateKeys, FieldLabels, FieldLabelsProps, FieldMapper, FieldMapperProps, FieldRuleLabelTypes, FieldSection, FieldSectionProps, FieldTypes, FilteredFeedContentType, FontSizesTypes, FontWeight, Footer, FooterContactInfo, FooterLink, FooterProps, ForgotPasswordForm, ForgotPasswordFormProps, FormContainerProps, FormStepContainerProps, FormStepContextProviderProps, GoogleMap, Header, HeaderProps, HeroImage, HeroImageAlignment, HeroImageProps, HeroImageTemplate, HeroSlider, HeroSliderProps, HeroSliderWrapper, HorizontalButtons, HorizontalButtonsField, HorizontalButtonsProps, HorizontalPadding, HorizontalPaddingProps, ISI, ISIProps, Icon, IconButton, IconButtonProps, IconNames, IconProps, IconWrapper, Image, ImageAttributes, ImageMolecule, ImageProps, Input, InputField, InputFieldInternalConfigProps, InputFieldProps, InputFieldTypes, InputIconProps, InputProps, IterableAttributes, LabelInternalConfig, LinkAttributes, LoginForm, LoginFormProps, MATRIX_MESSAGE_DATA_ID, MATRIX_MESSAGE_ELEMENT_ID, MenuItem, MenuItems, MenuItemsProps, MenuNavigation, MenuNavigationProps, MlrRichTextViewerContext, MlrRichTextViewerContextType, MlrRichTextViewerProvider, MlrRichTextViewerProviderProps, ModalWrapper, Molecule, MoleculeTypes, NavigationDotsWrapper, OrganismContext, OrganismContextProvider, OrganismContextType, OrganismItem, OrientationType, PdfDocument, PdfDocumentProps, ProcessTracker, ProcessTrackerProps, ProcessTrackerStatus, ProfileInformation, ProfileInformationProps, RadioButtonField, RadioButtonFieldMolecule, RadioButtonFieldProps, RadioButtonInternalConfigProps, RadioButtons, RadioButtonsProps, RadioGroupWrapper, RegularImage, RegularImageProps, RichTextEditorProps, RichTextViewer, RuleLabelInternalConfig, SegmentationType, Select, SelectAttributes, SelectField, SelectFieldMolecule, SelectFieldProps, SelectInternalConfigurationOptions, SelectOption, SelectProps, SelectableCardGroup, SelectableCardGroupProps, SeoTags, SetPasswordForm, SetPasswordFormProps, SetPasswordRuleValidation, SizesTypes, Slide, SlidesWrapper, Spacer, SpacerProps, Spinner, Stepper, StepperProps, StyleWrapper, SubscribePanel, Tab, TabGroup, TabGroupMolecule, TabGroupProps, TabOption, TabProps, TabTheme, TabType, TextAlign, TextAttributes, TextButton, TextButtonProps, TextInputMolecule, TextMolecule, TextMoleculeProps, TextMoleculeType, TextProps, TextTypes, TextWrapper, TextWrapperProps, ThemeColors, ThemeColorsType, ThemeDevicesType, ThemeSizesType, ThemeTextType, Tooltip, TooltipInternalConfig, TooltipProps, TouchableOpacity, TouchableOpacityProps, TwoFactorAuth, TwoFactorAuthProps, UICheckboxField, UIField, UIFields, UIInputField, UISelectField, ValidationTag, ValidationTagProps, ValidationTagStatus, VerticalPadding, Video, VideoAttributes, VideoMolecule, VideoProps, Wrapper, ZealTheme, ZealThemeProvider, ZealUIModal, ZealUIModalProps, acquisitionFormMockFields, defaultTheme, getFieldPlaceholder, getFieldsFromFieldSections, getInitialValuesFromFields, isFormValid, loginMockFields, profileInformationMockForm, sectionMockFields, setPasswordMockFields, showAcceptToastMessage, toast, toastStyles, useButtonActionsContext, useMediaQuery, useMlrRichTextViewerContext, useRequiredConsentsAcceptedValues, useStep };
|