@zealicsolutions/web-ui 0.2.85 → 0.2.87
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +32 -33
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/atoms/Buttons/{Button.stories.d.ts → Buttons.stories.d.ts} +4 -3
- package/dist/cjs/src/atoms/Buttons/TextButton.d.ts +1 -1
- package/dist/cjs/src/atoms/Input/Input.d.ts +14 -2
- package/dist/cjs/src/atoms/Input/Input.stories.d.ts +4 -4
- package/dist/cjs/src/atoms/RegularImage/RegularImage.d.ts +4 -7
- package/dist/cjs/src/atoms/RegularImage/RegularImage.stories.d.ts +1 -2
- package/dist/cjs/src/atoms/RichTextViewer/RichTextViewer.d.ts +1 -1
- package/dist/cjs/src/atoms/Tooltip/Tooltip.d.ts +6 -3
- package/dist/cjs/src/atoms/Tooltip/Tooltip.stories.d.ts +1 -1
- package/dist/cjs/src/atoms/index.d.ts +0 -1
- package/dist/cjs/src/containers/MoleculeItem.d.ts +1 -1
- package/dist/cjs/src/containers/types/moleculeTypes.d.ts +4 -5
- package/dist/cjs/src/fieldsConfiguration/types.d.ts +5 -2
- package/dist/cjs/src/helpers/validations.d.ts +2 -0
- package/dist/cjs/src/index.d.ts +2 -2
- package/dist/cjs/src/{atoms/Buttons → molecules/Button}/Button.d.ts +2 -1
- package/dist/cjs/src/molecules/Button/Button.stories.d.ts +9 -0
- package/dist/cjs/src/molecules/Columns/Column.d.ts +1 -2
- package/dist/cjs/src/molecules/Columns/styles.d.ts +2 -3
- package/dist/cjs/src/molecules/FieldLabels/FieldLabels.d.ts +33 -1
- package/dist/cjs/src/molecules/FieldLabels/FieldLabels.stories.d.ts +4 -4
- package/dist/cjs/src/molecules/FieldMapper/FieldMapper.d.ts +3 -2
- package/dist/cjs/src/molecules/HeroImage/HeroImage.d.ts +2 -1
- package/dist/cjs/src/molecules/Image/Image.d.ts +3 -2
- package/dist/cjs/src/molecules/InputField/InputField.d.ts +2 -2
- package/dist/cjs/src/molecules/InputField/InputField.stories.d.ts +4 -5
- package/dist/cjs/src/molecules/SelectField/SelectField.d.ts +2 -2
- package/dist/cjs/src/molecules/TextMolecule/TextMolecule.d.ts +1 -1
- package/dist/cjs/src/molecules/index.d.ts +1 -0
- package/dist/cjs/src/organisms/Consent/ConsentCapture.d.ts +2 -1
- package/dist/cjs/src/organisms/FeedContent/types.d.ts +2 -2
- package/dist/cjs/src/organisms/Footer/Footer.stories.d.ts +2 -2
- package/dist/cjs/src/organisms/Footer/styles.d.ts +1 -2
- package/dist/cjs/src/organisms/Header/Header.stories.d.ts +2 -2
- package/dist/cjs/src/organisms/LoginForm/LoginForm.d.ts +1 -1
- package/dist/cjs/src/organisms/ProfileInformation/ProfileInformation.d.ts +1 -2
- package/dist/cjs/src/organisms/SetPasswordForm/SetPasswordForm.d.ts +1 -1
- package/dist/cjs/src/typescript.d.ts +3 -0
- package/dist/esm/index.js +32 -33
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/atoms/Buttons/{Button.stories.d.ts → Buttons.stories.d.ts} +4 -3
- package/dist/esm/src/atoms/Buttons/TextButton.d.ts +1 -1
- package/dist/esm/src/atoms/Input/Input.d.ts +14 -2
- package/dist/esm/src/atoms/Input/Input.stories.d.ts +4 -4
- package/dist/esm/src/atoms/RegularImage/RegularImage.d.ts +4 -7
- package/dist/esm/src/atoms/RegularImage/RegularImage.stories.d.ts +1 -2
- package/dist/esm/src/atoms/RichTextViewer/RichTextViewer.d.ts +1 -1
- package/dist/esm/src/atoms/Tooltip/Tooltip.d.ts +6 -3
- package/dist/esm/src/atoms/Tooltip/Tooltip.stories.d.ts +1 -1
- package/dist/esm/src/atoms/index.d.ts +0 -1
- package/dist/esm/src/containers/MoleculeItem.d.ts +1 -1
- package/dist/esm/src/containers/types/moleculeTypes.d.ts +4 -5
- package/dist/esm/src/fieldsConfiguration/types.d.ts +5 -2
- package/dist/esm/src/helpers/validations.d.ts +2 -0
- package/dist/esm/src/index.d.ts +2 -2
- package/dist/esm/src/{atoms/Buttons → molecules/Button}/Button.d.ts +2 -1
- package/dist/esm/src/molecules/Button/Button.stories.d.ts +9 -0
- package/dist/esm/src/molecules/Columns/Column.d.ts +1 -2
- package/dist/esm/src/molecules/Columns/styles.d.ts +2 -3
- package/dist/esm/src/molecules/FieldLabels/FieldLabels.d.ts +33 -1
- package/dist/esm/src/molecules/FieldLabels/FieldLabels.stories.d.ts +4 -4
- package/dist/esm/src/molecules/FieldMapper/FieldMapper.d.ts +3 -2
- package/dist/esm/src/molecules/HeroImage/HeroImage.d.ts +2 -1
- package/dist/esm/src/molecules/Image/Image.d.ts +3 -2
- package/dist/esm/src/molecules/InputField/InputField.d.ts +2 -2
- package/dist/esm/src/molecules/InputField/InputField.stories.d.ts +4 -5
- package/dist/esm/src/molecules/SelectField/SelectField.d.ts +2 -2
- package/dist/esm/src/molecules/TextMolecule/TextMolecule.d.ts +1 -1
- package/dist/esm/src/molecules/index.d.ts +1 -0
- package/dist/esm/src/organisms/Consent/ConsentCapture.d.ts +2 -1
- package/dist/esm/src/organisms/FeedContent/types.d.ts +2 -2
- package/dist/esm/src/organisms/Footer/Footer.stories.d.ts +2 -2
- package/dist/esm/src/organisms/Footer/styles.d.ts +1 -2
- package/dist/esm/src/organisms/Header/Header.stories.d.ts +2 -2
- package/dist/esm/src/organisms/LoginForm/LoginForm.d.ts +1 -1
- package/dist/esm/src/organisms/ProfileInformation/ProfileInformation.d.ts +1 -2
- package/dist/esm/src/organisms/SetPasswordForm/SetPasswordForm.d.ts +1 -1
- package/dist/esm/src/typescript.d.ts +3 -0
- package/dist/index.d.ts +761 -718
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -1,26 +1,21 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import * as React$1 from 'react';
|
3
|
-
import React__default, { PropsWithChildren, ReactNode, CSSProperties as CSSProperties$1, ComponentType
|
3
|
+
import React__default, { PropsWithChildren, ReactNode, Dispatch, SetStateAction, CSSProperties as CSSProperties$1, ComponentType } from 'react';
|
4
4
|
import * as styled_components from 'styled-components';
|
5
5
|
import { CSSProperties, DefaultTheme } from 'styled-components';
|
6
|
-
import { FontSizesTypes as FontSizesTypes$1, ThemeColors as ThemeColors$1, SizesTypes as SizesTypes$1 } from 'theme';
|
7
|
-
import { Callback as Callback$1, StylesType, Nullable, StrictUnion } from 'typescript';
|
8
6
|
import { IconNames as IconNames$1 } from 'atoms/Icon/Icon';
|
9
|
-
import { InputFieldTypes as InputFieldTypes$1, FieldTypes as FieldTypes$1, UIFields as UIFields$
|
10
|
-
import {
|
7
|
+
import { InputFieldTypes as InputFieldTypes$1, FieldTypes as FieldTypes$1, UIFields as UIFields$2 } from 'fieldsConfiguration/types';
|
8
|
+
import { ThemeColors as ThemeColors$1, FontSizesTypes as FontSizesTypes$1, SizesTypes as SizesTypes$2, BreakpointSizesTypes as BreakpointSizesTypes$1 } from 'theme/types';
|
9
|
+
import { StylesType, Callback as Callback$1, OverrideStyles, Nullable, StrictUnion } from 'typescript';
|
10
|
+
import { ThemeColors as ThemeColors$2, SizesTypes as SizesTypes$1, FontSizesTypes as FontSizesTypes$2 } from 'theme';
|
11
|
+
import { BaseButtonProps as BaseButtonProps$1, MenuItem as MenuItem$1, HeroImageProps as HeroImageProps$1, ColumnsProps as ColumnsProps$1, EmphasizedTextProps as EmphasizedTextProps$1, TabGroupProps as TabGroupProps$1, AvatarDropdownProps as AvatarDropdownProps$1, ButtonProps as ButtonProps$1, FeedContentHeaderProps as FeedContentHeaderProps$1, AlertProps as AlertProps$1, BottomNaVBarItemProps as BottomNaVBarItemProps$1, FieldLabelsProps as FieldLabelsProps$1, FieldSectionProps as FieldSectionProps$1, MenuItemsProps as MenuItemsProps$1, InputFieldProps as InputFieldProps$1, ImageProps as ImageProps$1 } from 'molecules';
|
11
12
|
import { TooltipProps as TooltipProps$1 } from 'rc-tooltip/lib/Tooltip';
|
12
13
|
import { WithGoogleMapProps } from 'react-google-maps/lib/withGoogleMap';
|
13
14
|
import { WithScriptjsProps } from 'react-google-maps/lib/withScriptjs';
|
14
|
-
import { TextProps as TextProps$1, IconNames as IconNames$2, TouchableOpacityProps as TouchableOpacityProps$1,
|
15
|
-
import {
|
16
|
-
import {
|
17
|
-
import {
|
18
|
-
import { ControllerProps as ControllerProps$1, DeepPartial, FieldValues, FormState, Control as Control$1 } from 'react-hook-form';
|
19
|
-
import { DrawerProps as DrawerProps$1 } from '@mui/material';
|
20
|
-
import { ProcessTrackerStatus as ProcessTrackerStatus$1, FilteredFeedContentType as FilteredFeedContentType$1, ConsentProps as ConsentProps$1, HeroSliderProps as HeroSliderProps$1, ProcessTrackerProps as ProcessTrackerProps$1 } from 'organisms';
|
21
|
-
import { FeedContentTemplateTypes as FeedContentTemplateTypes$1, FeedContentProps as FeedContentProps$1 } from 'organisms/FeedContent/types';
|
22
|
-
import { SetPasswordFields, MaxRuleValidation, MinRuleValidation } from 'organisms/SetPasswordForm/types';
|
23
|
-
import { UIFields as UIFields$2 } from 'fieldsConfiguration';
|
15
|
+
import { TextProps as TextProps$1, IconNames as IconNames$2, TouchableOpacityProps as TouchableOpacityProps$1, AvatarProps as AvatarProps$1, TabProps as TabProps$1, RadioButtonsProps as RadioButtonsProps$1, InputProps as InputProps$1, CheckBoxProps as CheckBoxProps$1, RegularImageProps as RegularImageProps$1, TextButtonProps as TextButtonProps$1, TabTheme as TabTheme$1, HorizontalButtonsProps as HorizontalButtonsProps$1, IconProps as IconProps$1 } from 'atoms';
|
16
|
+
import { UIFields as UIFields$1, UIField as UIField$1 } from 'fieldsConfiguration';
|
17
|
+
import { MaxRuleValidation, MinRuleValidation, SetPasswordFields } from 'organisms/SetPasswordForm/types';
|
18
|
+
import { ConsentProps as ConsentProps$1, FilteredFeedContentType as FilteredFeedContentType$1, HeroSliderProps as HeroSliderProps$1, ProcessTrackerProps as ProcessTrackerProps$1, ProcessTrackerStatus as ProcessTrackerStatus$1 } from 'organisms';
|
24
19
|
import { ConsentProps as ConsentProps$2 } from 'organisms/Consent/Consent';
|
25
20
|
import { FooterAProps } from 'organisms/Footer/FooterA';
|
26
21
|
import { FooterBProps } from 'organisms/Footer/FooterB';
|
@@ -30,49 +25,19 @@ import { FeedContentContainerProps as FeedContentContainerProps$1 } from 'organi
|
|
30
25
|
import { SubscribePanelProps as SubscribePanelProps$1 } from 'organisms/SubscribePanel/type';
|
31
26
|
import { ISIAProps } from 'organisms/ISI/ISIA';
|
32
27
|
import { HeaderAProps as HeaderAProps$1 } from 'organisms/Header/HeaderA';
|
28
|
+
import { FeedContentProps as FeedContentProps$1, FeedContentTemplateTypes as FeedContentTemplateTypes$1 } from 'organisms/FeedContent/types';
|
29
|
+
import { Control, ControllerProps, DeepPartial, FieldValues, FormState } from 'react-hook-form';
|
33
30
|
import { AlertProps as AlertProps$2 } from 'molecules/Alert/Alert';
|
31
|
+
import { SelectOption as SelectOption$1 } from 'atoms/Select/types';
|
34
32
|
import { LoginFields as LoginFields$1 } from 'organisms/LoginForm/types';
|
35
33
|
import { AnnotationsList as AnnotationsList$1 } from 'contexts/MlrRichTextViewerContext/types';
|
36
34
|
import * as contexts_MlrRichTextViewerContext_MlrRichTextViewerContext from 'contexts/MlrRichTextViewerContext/MlrRichTextViewerContext';
|
35
|
+
export * from 'helpers/constants';
|
36
|
+
import { Control as Control$1, ControllerProps as ControllerProps$1 } from 'react-hook-form/dist/types';
|
37
|
+
import { DrawerProps as DrawerProps$1 } from '@mui/material';
|
37
38
|
import { ContainerProps as ContainerProps$1, ContainerComponentProps as ContainerComponentProps$1, Molecule as Molecule$1 } from 'containers';
|
38
39
|
import * as containers_types_types from 'containers/types/types';
|
39
40
|
import { ContainerProps as ContainerProps$2 } from 'containers/types/types';
|
40
|
-
export * from 'helpers/constants';
|
41
|
-
|
42
|
-
declare type ButtonVariant = 'primary' | 'secondary' | 'text' | 'custom';
|
43
|
-
declare type BaseButtonProps = PropsWithChildren<{
|
44
|
-
onClick?: Callback$1;
|
45
|
-
variant?: ButtonVariant;
|
46
|
-
disabled?: boolean;
|
47
|
-
fullWidth?: boolean;
|
48
|
-
size?: 'medium' | 'small';
|
49
|
-
buttonFont?: FontSizesTypes$1;
|
50
|
-
textColor?: ThemeColors$1 | string;
|
51
|
-
textSize?: number;
|
52
|
-
horizontalPadding?: SizesTypes$1;
|
53
|
-
verticalPadding?: SizesTypes$1;
|
54
|
-
buttonColor?: ThemeColors$1 | string;
|
55
|
-
buttonStroke?: ThemeColors$1 | string;
|
56
|
-
cornerRadius?: SizesTypes$1 | number;
|
57
|
-
hoverButtonColor?: ThemeColors$1 | string;
|
58
|
-
hoverStrokeColor?: ThemeColors$1 | string;
|
59
|
-
inactiveButtonColor?: ThemeColors$1 | string;
|
60
|
-
inactiveStrokeColor?: ThemeColors$1 | string;
|
61
|
-
styles?: StylesType;
|
62
|
-
colorTheme?: 'light' | 'dark';
|
63
|
-
href?: string;
|
64
|
-
}>;
|
65
|
-
declare type ButtonProps = BaseButtonProps & {
|
66
|
-
fullWidth?: boolean;
|
67
|
-
text?: string;
|
68
|
-
link?: string;
|
69
|
-
elementId?: string;
|
70
|
-
loading?: boolean;
|
71
|
-
isRichText?: boolean;
|
72
|
-
containerStyle?: CSSProperties;
|
73
|
-
buttonStyle?: CSSProperties;
|
74
|
-
};
|
75
|
-
declare const Button: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children, buttonStyle, size, ...props }: ButtonProps) => JSX.Element | null;
|
76
41
|
|
77
42
|
declare type TouchableOpacityProps = PropsWithChildren<{
|
78
43
|
activeOpacity?: number;
|
@@ -113,6 +78,16 @@ declare type SelectProps = {
|
|
113
78
|
|
114
79
|
declare const Select: ({ onChange, value, placeholder, options, disabled, optionsPresentation, isError, }: SelectProps) => JSX.Element;
|
115
80
|
|
81
|
+
declare type InputFieldInternalConfigProps = {
|
82
|
+
textColor: ThemeColors$1 | string;
|
83
|
+
textFontSize: number;
|
84
|
+
placeholderTextColor: ThemeColors$1 | string;
|
85
|
+
placeholderTextFontSize: number;
|
86
|
+
verticalPadding: number;
|
87
|
+
horizontalPadding: number;
|
88
|
+
styles: StylesType;
|
89
|
+
wrapperStyles: StylesType;
|
90
|
+
};
|
116
91
|
declare type InputIconProps = {
|
117
92
|
name: IconNames$1;
|
118
93
|
onClick?: Callback$1;
|
@@ -130,18 +105,19 @@ declare type InputProps = {
|
|
130
105
|
maxLength?: number;
|
131
106
|
onChange?: (value: string) => void;
|
132
107
|
onKeyDown?: (event: React__default.KeyboardEvent<HTMLInputElement>) => void;
|
108
|
+
internalConfig?: InputFieldInternalConfigProps;
|
133
109
|
};
|
134
|
-
declare const Input: ({ value, leftIcon, rightIcon, onChange, onBlur, disabled, isError, placeholder, isEditMode, type, ...rest }: InputProps) => JSX.Element;
|
110
|
+
declare const Input: ({ value, leftIcon, rightIcon, onChange, onBlur, disabled, isError, placeholder, isEditMode, type, internalConfig, ...rest }: InputProps) => JSX.Element;
|
135
111
|
|
136
112
|
declare type TextTypes = 'primary' | 'secondary' | 'error' | 'success';
|
137
113
|
declare type TextAlign = 'center' | 'right' | 'left';
|
138
114
|
declare type SeoTags = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';
|
139
115
|
declare type TextProps = {
|
140
|
-
variant: FontSizesTypes$
|
116
|
+
variant: FontSizesTypes$1;
|
141
117
|
layout?: 'div' | 'span';
|
142
118
|
type?: TextTypes;
|
143
119
|
styles?: StylesType;
|
144
|
-
color?: ThemeColors$
|
120
|
+
color?: ThemeColors$1 | string;
|
145
121
|
numberOfLines?: number;
|
146
122
|
textAlign?: TextAlign;
|
147
123
|
behaveAs?: 'text' | 'button';
|
@@ -153,8 +129,8 @@ declare const TextWrapper: ({ children, seoTag, ...textProps }: TextWrapperProps
|
|
153
129
|
declare type IconProps = {
|
154
130
|
name: IconNames;
|
155
131
|
size?: number;
|
156
|
-
color?: ThemeColors$
|
157
|
-
fill?: ThemeColors$
|
132
|
+
color?: ThemeColors$2 | string;
|
133
|
+
fill?: ThemeColors$2 | string;
|
158
134
|
pointerEvents?: 'auto' | 'none';
|
159
135
|
style?: CSSProperties;
|
160
136
|
};
|
@@ -194,7 +170,7 @@ declare type SpacerProps = {
|
|
194
170
|
declare const Spacer: styled_components.StyledComponent<"div", styled_components.DefaultTheme, SpacerProps, never>;
|
195
171
|
|
196
172
|
declare const Spinner: styled_components.StyledComponent<"div", styled_components.DefaultTheme, {
|
197
|
-
color?: ThemeColors$
|
173
|
+
color?: ThemeColors$1 | undefined;
|
198
174
|
size?: SizesTypes$2 | undefined;
|
199
175
|
}, never>;
|
200
176
|
|
@@ -202,38 +178,35 @@ declare type RegularImageProps = {
|
|
202
178
|
src: string;
|
203
179
|
} & Partial<{
|
204
180
|
alt: string;
|
205
|
-
style: CSSProperties;
|
206
181
|
width: number | string;
|
207
182
|
height: number | string;
|
208
183
|
onClick: Callback$1;
|
209
184
|
cornerRadius: number;
|
210
|
-
}
|
185
|
+
}> & OverrideStyles;
|
211
186
|
declare const RegularImage: styled_components.StyledComponent<"img", styled_components.DefaultTheme, {
|
212
187
|
src: string;
|
213
188
|
} & Partial<{
|
214
189
|
alt: string;
|
215
|
-
style: CSSProperties;
|
216
190
|
width: number | string;
|
217
191
|
height: number | string;
|
218
192
|
onClick: Callback$1;
|
219
193
|
cornerRadius: number;
|
220
|
-
}
|
194
|
+
}> & OverrideStyles, never>;
|
221
195
|
declare const BackgroundImage: styled_components.StyledComponent<"img", styled_components.DefaultTheme, {
|
222
196
|
src: string;
|
223
197
|
} & Partial<{
|
224
198
|
alt: string;
|
225
|
-
style: CSSProperties;
|
226
199
|
width: number | string;
|
227
200
|
height: number | string;
|
228
201
|
onClick: Callback$1;
|
229
202
|
cornerRadius: number;
|
230
|
-
}
|
203
|
+
}> & OverrideStyles, never>;
|
231
204
|
|
232
|
-
declare type TextButtonProps = Pick<BaseButtonProps, 'disabled' | 'onClick' | 'children' | 'colorTheme' | 'size'> & {
|
205
|
+
declare type TextButtonProps = Pick<BaseButtonProps$1, 'disabled' | 'onClick' | 'children' | 'colorTheme' | 'size'> & {
|
233
206
|
buttonLink?: string;
|
234
207
|
elementId?: string;
|
235
208
|
};
|
236
|
-
declare const TextButton: styled_components.StyledComponent<"a", styled_components.DefaultTheme, Pick<BaseButtonProps, "children" | "onClick" | "disabled" | "size" | "colorTheme"> & {
|
209
|
+
declare const TextButton: styled_components.StyledComponent<"a", styled_components.DefaultTheme, Pick<BaseButtonProps$1, "children" | "onClick" | "disabled" | "size" | "colorTheme"> & {
|
237
210
|
buttonLink?: string | undefined;
|
238
211
|
elementId?: string | undefined;
|
239
212
|
}, never>;
|
@@ -245,9 +218,11 @@ declare type ValidationTagProps = {
|
|
245
218
|
};
|
246
219
|
declare const ValidationTag: ({ text, status }: ValidationTagProps) => JSX.Element;
|
247
220
|
|
248
|
-
declare type TooltipProps = Pick<TooltipProps$1, 'overlay' | 'placement' | 'trigger' | 'visible' | 'children'
|
249
|
-
|
250
|
-
|
221
|
+
declare type TooltipProps = Pick<TooltipProps$1, 'overlay' | 'placement' | 'trigger' | 'visible' | 'children'> & {
|
222
|
+
styles?: StylesType;
|
223
|
+
};
|
224
|
+
declare const StyleWrapper: styled_components.StyledComponent<"div", styled_components.DefaultTheme, OverrideStyles, never>;
|
225
|
+
declare const Tooltip: ({ trigger, placement, styles, ...props }: TooltipProps) => JSX.Element;
|
251
226
|
|
252
227
|
declare type ToastType = 'success' | 'infoTierOne' | 'infoTierTwo' | 'warning' | 'error';
|
253
228
|
declare type ToastParams = {
|
@@ -274,10 +249,10 @@ declare type AvatarProps = {
|
|
274
249
|
size?: SizesTypes$1 | number;
|
275
250
|
withShadow?: boolean;
|
276
251
|
label?: string;
|
277
|
-
backgroundColor?: ThemeColors$
|
252
|
+
backgroundColor?: ThemeColors$2;
|
278
253
|
textConfig?: {
|
279
|
-
color?: ThemeColors$
|
280
|
-
font?: FontSizesTypes$
|
254
|
+
color?: ThemeColors$2;
|
255
|
+
font?: FontSizesTypes$2;
|
281
256
|
};
|
282
257
|
content: {
|
283
258
|
initials?: string;
|
@@ -296,7 +271,7 @@ declare const VerticalPadding: styled_components.StyledComponent<"div", styled_c
|
|
296
271
|
|
297
272
|
declare type DividerProps = {
|
298
273
|
type?: 'horizontal' | 'vertical';
|
299
|
-
color?: ThemeColors$
|
274
|
+
color?: ThemeColors$2 | string;
|
300
275
|
marginVertical?: SizesTypes$1 | number;
|
301
276
|
marginHorizontal?: SizesTypes$1 | number;
|
302
277
|
weight?: number;
|
@@ -321,8 +296,8 @@ declare const COMMUNICATION_LINK_DATA_URL = "communication-link-url";
|
|
321
296
|
declare const COMMUNICATION_LINK_DATA_TEXT = "communication-link-text";
|
322
297
|
declare type RichTextEditorProps = Partial<{
|
323
298
|
value: string;
|
324
|
-
font: FontSizesTypes$
|
325
|
-
color: ThemeColors$
|
299
|
+
font: FontSizesTypes$2;
|
300
|
+
color: ThemeColors$2 | string;
|
326
301
|
textStyles: StylesType;
|
327
302
|
numberOfLines?: number;
|
328
303
|
extraTextProps?: TextProps$1;
|
@@ -355,8 +330,8 @@ declare const Circle: ({ index, type }: CircleBoxProps) => JSX.Element;
|
|
355
330
|
|
356
331
|
declare type CircularIndicatorProps = {
|
357
332
|
active: boolean;
|
358
|
-
activeColor?: ThemeColors$
|
359
|
-
inactiveColor?: ThemeColors$
|
333
|
+
activeColor?: ThemeColors$2 | string;
|
334
|
+
inactiveColor?: ThemeColors$2 | string;
|
360
335
|
};
|
361
336
|
declare const CircularIndicator: ({ activeColor, inactiveColor, ...props }: CircularIndicatorProps) => JSX.Element;
|
362
337
|
declare const CircularIndicatorStyledComponent: styled_components.StyledComponent<"span", styled_components.DefaultTheme, CircularIndicatorProps, never>;
|
@@ -365,8 +340,8 @@ declare type IconButtonProps = {
|
|
365
340
|
name: IconNames$2;
|
366
341
|
size?: number;
|
367
342
|
onClick: Callback$1;
|
368
|
-
color?: ThemeColors$
|
369
|
-
fill?: ThemeColors$
|
343
|
+
color?: ThemeColors$2 | string;
|
344
|
+
fill?: ThemeColors$2 | string;
|
370
345
|
pointerEvents?: 'auto' | 'none';
|
371
346
|
};
|
372
347
|
declare const IconButton: ({ name, color, onClick, disabled, activeOpacity, withoutOpacityEffect, ...props }: IconButtonProps & TouchableOpacityProps$1) => JSX.Element;
|
@@ -391,12 +366,12 @@ declare type TabProps<T = string, K = string> = {
|
|
391
366
|
onOptionClick: (optionKey: K) => void;
|
392
367
|
tabTheme: TabTheme;
|
393
368
|
divider: boolean;
|
394
|
-
tabFont: FontSizesTypes$
|
369
|
+
tabFont: FontSizesTypes$2;
|
395
370
|
textSize: number;
|
396
371
|
tabPadding: SizesTypes$1 | number;
|
397
|
-
defaultTabTextColor: ThemeColors$
|
398
|
-
selectedTabTextColor: ThemeColors$
|
399
|
-
selectedTabIndicatorColor: ThemeColors$
|
372
|
+
defaultTabTextColor: ThemeColors$2 | string;
|
373
|
+
selectedTabTextColor: ThemeColors$2 | string;
|
374
|
+
selectedTabIndicatorColor: ThemeColors$2 | string;
|
400
375
|
styles: StylesType;
|
401
376
|
}>;
|
402
377
|
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;
|
@@ -412,768 +387,836 @@ declare const Tab: <T, K>(props: {
|
|
412
387
|
onOptionClick: (optionKey: K) => void;
|
413
388
|
tabTheme: TabTheme;
|
414
389
|
divider: boolean;
|
415
|
-
tabFont: FontSizesTypes$
|
390
|
+
tabFont: FontSizesTypes$2;
|
416
391
|
textSize: number;
|
417
392
|
tabPadding: SizesTypes$1 | number;
|
418
|
-
defaultTabTextColor: ThemeColors$
|
419
|
-
selectedTabTextColor: ThemeColors$
|
420
|
-
selectedTabIndicatorColor: ThemeColors$
|
393
|
+
defaultTabTextColor: ThemeColors$2 | string;
|
394
|
+
selectedTabTextColor: ThemeColors$2 | string;
|
395
|
+
selectedTabIndicatorColor: ThemeColors$2 | string;
|
421
396
|
styles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
|
422
397
|
}> & {
|
423
398
|
ref?: React__default.ForwardedRef<TabElement> | undefined;
|
424
399
|
}) => ReturnType<typeof ZealTab>;
|
425
400
|
|
426
|
-
declare type
|
427
|
-
declare type FieldLabelsProps = {
|
401
|
+
declare type SetPasswordRuleValidation = {
|
428
402
|
label: string;
|
429
|
-
|
430
|
-
isError?: boolean;
|
431
|
-
isTooltipVisible?: boolean;
|
432
|
-
ruleLabel?: FieldRuleLabelTypes;
|
403
|
+
rule: MaxRuleValidation | MinRuleValidation;
|
433
404
|
};
|
434
|
-
declare
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
optional?: boolean;
|
442
|
-
defaultValue?: string;
|
443
|
-
inputProps: InputProps$1;
|
444
|
-
styles?: CSSProperties;
|
445
|
-
labelsProps?: FieldLabelsProps;
|
405
|
+
declare type SetPasswordFormProps = {
|
406
|
+
fields: UIFields$1<SetPasswordFields>;
|
407
|
+
logoUrl: string;
|
408
|
+
isLoading?: boolean;
|
409
|
+
validations: SetPasswordRuleValidation[];
|
410
|
+
onSubmit: (values: SetPasswordFields) => void;
|
411
|
+
onBack: () => void;
|
446
412
|
};
|
447
|
-
declare const
|
448
|
-
|
449
|
-
declare const getFieldPlaceholder: (type: FieldTypes$1, title?: string) => string;
|
413
|
+
declare const SetPasswordForm: ({ logoUrl, fields, validations, onBack, onSubmit, isLoading, }: SetPasswordFormProps) => JSX.Element;
|
450
414
|
|
451
|
-
declare
|
452
|
-
declare type
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
415
|
+
declare const showAcceptToastMessage: () => void | undefined;
|
416
|
+
declare type AcquisitionFormProps<T extends object> = {
|
417
|
+
fields: UIFields$1<T>;
|
418
|
+
consents: ConsentProps$1[];
|
419
|
+
logoUrl: string;
|
420
|
+
isLoading?: boolean;
|
421
|
+
isSubmitDisabled?: boolean;
|
422
|
+
title: string;
|
423
|
+
description?: string;
|
424
|
+
buttonText?: string;
|
425
|
+
onSubmit: (values: T) => void;
|
426
|
+
onLinkButtonClick?: Callback$1;
|
427
|
+
showConsentLabel?: boolean;
|
428
|
+
triggerFormInitially?: boolean;
|
429
|
+
isTooltipVisible?: boolean;
|
430
|
+
optionsPresentation?: boolean;
|
464
431
|
};
|
465
|
-
declare
|
466
|
-
|
467
|
-
|
468
|
-
|
432
|
+
declare const AcquisitionForm: <T extends object>({ logoUrl, title, description, buttonText, fields, optionsPresentation, onSubmit, showConsentLabel, onLinkButtonClick, isSubmitDisabled, consents, isLoading, triggerFormInitially, isTooltipVisible, }: AcquisitionFormProps<T>) => JSX.Element;
|
433
|
+
|
434
|
+
declare type VerificationCodeForm = {
|
435
|
+
code: string;
|
469
436
|
};
|
470
|
-
declare type
|
471
|
-
|
437
|
+
declare type AuthMethod = 'email' | 'sms';
|
438
|
+
declare type TwoFactorAuthProps = {
|
439
|
+
logoUrl: string;
|
440
|
+
onNext?: (authMethod: AuthMethod) => Promise<void>;
|
441
|
+
onSubmit?: (values: VerificationCodeForm) => void;
|
442
|
+
onBack?: () => void;
|
472
443
|
};
|
473
|
-
declare
|
474
|
-
|
444
|
+
declare const TwoFactorAuth: ({ logoUrl, onSubmit, onBack, onNext }: TwoFactorAuthProps) => JSX.Element;
|
445
|
+
|
446
|
+
declare type LoginFields = {
|
447
|
+
email: string;
|
448
|
+
password: string;
|
449
|
+
rememberMe: boolean;
|
475
450
|
};
|
476
|
-
declare type UIFields<T extends object> = UIField<keyof T>[];
|
477
451
|
|
478
|
-
declare
|
479
|
-
|
480
|
-
|
452
|
+
declare type LoginFormProps = {
|
453
|
+
fields: UIFields$1<LoginFields>;
|
454
|
+
logoUrl: string;
|
455
|
+
isLoading?: boolean;
|
456
|
+
twoFactorAuthConfig?: {
|
457
|
+
twoFactorShow: boolean;
|
458
|
+
twoFactorAuthProps: TwoFactorAuthProps;
|
459
|
+
};
|
460
|
+
optionsPresentation?: boolean;
|
461
|
+
onSubmit: (values: LoginFields) => void;
|
462
|
+
onSignUpButtonClick?: Callback$1;
|
463
|
+
onForgotPasswordButtonClick?: Callback$1;
|
464
|
+
isTooltipVisible?: boolean;
|
465
|
+
consents: ConsentProps$2[];
|
466
|
+
};
|
467
|
+
declare const LoginForm: ({ logoUrl, fields, isTooltipVisible, onSubmit, optionsPresentation, onSignUpButtonClick, isLoading, twoFactorAuthConfig, consents, onForgotPasswordButtonClick, }: LoginFormProps) => JSX.Element;
|
481
468
|
|
482
|
-
declare
|
483
|
-
declare const
|
484
|
-
declare const loginMockFields: UIFields$1<LoginFields$1>;
|
485
|
-
declare const sectionMockFields: UIFields$1<Record<string, string>>;
|
486
|
-
declare const profileInformationMockForm: {
|
487
|
-
label: string;
|
488
|
-
fields: UIFields$1<Record<string, string>>;
|
489
|
-
}[];
|
469
|
+
declare type FooterProps = FooterAProps | FooterBProps | FooterCProps | FooterDProps;
|
470
|
+
declare const Footer: (props: FooterProps) => JSX.Element;
|
490
471
|
|
491
|
-
declare type
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
472
|
+
declare type FeedContentTemplateTypes = 'full_width_content' | 'standard_content' | 'auto_play' | '';
|
473
|
+
declare type FeedContentProps = {
|
474
|
+
feedContentType: Omit<FilteredFeedContentType$1, 'all'>;
|
475
|
+
feedContentTemplate: FeedContentTemplateTypes;
|
476
|
+
id?: string;
|
477
|
+
image?: string;
|
478
|
+
video?: string;
|
479
|
+
document?: string;
|
480
|
+
title?: Nullable<string>;
|
481
|
+
description: Nullable<string>;
|
482
|
+
lastUpdated: string;
|
483
|
+
buttonConfig: {
|
484
|
+
disabled?: boolean;
|
485
|
+
onClick?: () => void;
|
486
|
+
};
|
487
|
+
withCloseIcon?: {
|
488
|
+
onClose: Callback$1;
|
489
|
+
};
|
490
|
+
isMobile?: boolean;
|
491
|
+
isExpanded?: boolean;
|
492
|
+
fullWidth?: boolean;
|
493
|
+
fullWidthTemplateContainerStyles?: CSSProperties;
|
494
|
+
showDefaultDocumentStyles?: boolean;
|
495
|
+
destinationLink?: string;
|
496
|
+
onDestinationHandler?: Callback$1;
|
497
|
+
imageStyles?: StylesType;
|
498
|
+
videoStyles?: CSSProperties;
|
499
|
+
isEnabledFavoriting?: boolean;
|
500
|
+
isFavorite?: boolean;
|
501
|
+
onFavoriteClickHandler?: Callback$1;
|
502
|
+
onFavoriteIconClick?: (selectedFeedContent: FeedContentProps) => void;
|
499
503
|
};
|
500
|
-
declare const FieldMapper: <T extends object>({ field, isEditMode, spacer, control, isTooltipVisible, optionsPresentation, styles, }: FieldMapperProps<T>) => JSX.Element | null;
|
501
504
|
|
502
|
-
declare
|
505
|
+
declare const FeedContent: ({ feedContentTemplate, ...props }: FeedContentProps) => JSX.Element;
|
506
|
+
|
507
|
+
declare type FooterContactInfo = {
|
508
|
+
phoneNumber: string;
|
509
|
+
addressLine1: string;
|
510
|
+
addressLine2: string;
|
511
|
+
};
|
512
|
+
declare type FooterLink = {
|
513
|
+
id: string;
|
503
514
|
name: string;
|
504
|
-
|
505
|
-
defaultValue?: boolean;
|
506
|
-
checkboxProps: Omit<CheckBoxProps$1, 'error' | 'onClick' | 'value'>;
|
515
|
+
location: string;
|
507
516
|
};
|
508
|
-
declare const CheckboxField: ({ control, name, checkboxProps, defaultValue, }: CheckboxFieldProps) => JSX.Element;
|
509
517
|
|
510
|
-
declare type
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
518
|
+
declare type ProfileInformationProps<TabKeys extends string> = {
|
519
|
+
backgroundImageUrl: string;
|
520
|
+
avatarProps: AvatarProps$1;
|
521
|
+
tabs: TabProps$1<string, TabKeys>[];
|
522
|
+
tabContents: Record<TabKeys, () => ReactNode>;
|
523
|
+
initialTabKey: TabKeys;
|
524
|
+
title: string;
|
525
|
+
editIcons?: {
|
526
|
+
isEditMode: boolean;
|
527
|
+
onSave: Callback$1;
|
528
|
+
onEdit: Callback$1;
|
529
|
+
onClose: Callback$1;
|
530
|
+
};
|
520
531
|
};
|
521
|
-
declare const
|
532
|
+
declare const ProfileInformation: <TabKeys extends string>({ avatarProps, backgroundImageUrl, initialTabKey, tabs, title, editIcons, tabContents, }: ProfileInformationProps<TabKeys>) => JSX.Element;
|
522
533
|
|
523
|
-
declare type
|
524
|
-
|
525
|
-
validate: (value?: T) => boolean;
|
534
|
+
declare type EmailAddressFields = {
|
535
|
+
email: string;
|
526
536
|
};
|
527
|
-
declare type
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
537
|
+
declare type ForgotPasswordFormProps = {
|
538
|
+
logoUrl: string;
|
539
|
+
isLoading?: boolean;
|
540
|
+
onSubmit?: (values: EmailAddressFields) => void;
|
541
|
+
onBack?: Callback$1;
|
532
542
|
};
|
533
|
-
declare const
|
543
|
+
declare const ForgotPasswordForm: ({ logoUrl, onBack, onSubmit, isLoading, }: ForgotPasswordFormProps) => JSX.Element;
|
534
544
|
|
535
|
-
declare type
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
545
|
+
declare type BodyProps = {
|
546
|
+
elements: {
|
547
|
+
data: (HeroImageProps$1 | HeroSliderProps$1 | SubscribePanelProps$1 | ColumnsProps$1 | EmphasizedTextProps$1 | FeedContentContainerProps$1)[];
|
548
|
+
spacer?: number;
|
549
|
+
};
|
550
|
+
horizontalPaddings?: number;
|
551
|
+
containerStyles?: CSSProperties;
|
541
552
|
};
|
553
|
+
declare const Body: ({ elements, horizontalPaddings, containerStyles, }: BodyProps) => JSX.Element;
|
542
554
|
|
543
|
-
declare type
|
544
|
-
|
545
|
-
handleChange?: (value: T | undefined) => void;
|
546
|
-
spacing?: SizesTypes$1;
|
547
|
-
initialValue?: T;
|
548
|
-
};
|
549
|
-
declare const SelectableCardGroup: <T extends string>({ cards, handleChange, spacing, initialValue, }: SelectableCardGroupProps<T>) => JSX.Element;
|
555
|
+
declare type ISIProps = ISIAProps;
|
556
|
+
declare const ISI: (props: ISIProps) => JSX.Element;
|
550
557
|
|
551
|
-
declare type
|
552
|
-
|
553
|
-
|
554
|
-
type: 'hero_image';
|
555
|
-
backgroundImage: RegularImageProps$1;
|
556
|
-
mainHeading: string;
|
557
|
-
subHeading?: string;
|
558
|
-
button?: ButtonProps$1;
|
559
|
-
contentAlignment?: HeroImageAlignment;
|
560
|
-
horizontalPaddings?: number;
|
561
|
-
template?: HeroImageTemplate;
|
562
|
-
isMobile?: boolean;
|
563
|
-
height?: number;
|
558
|
+
declare type ImportantLink = {
|
559
|
+
text: string;
|
560
|
+
href: string;
|
564
561
|
};
|
565
|
-
declare
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
562
|
+
declare type HeaderAProps<T = string> = {
|
563
|
+
className?: string;
|
564
|
+
links?: ImportantLink[];
|
565
|
+
logoUrl: string;
|
566
|
+
tabsProps: TabGroupProps$1;
|
567
|
+
onActionButtonClick?: Callback$1;
|
568
|
+
buttonText: string;
|
569
|
+
buttonLink: string;
|
570
|
+
isMobile?: boolean;
|
574
571
|
};
|
575
572
|
|
576
|
-
declare
|
577
|
-
|
578
|
-
declare type ColumnsTemplateKeys = 'horizontal' | 'card' | 'with_image';
|
573
|
+
declare type HeaderBProps<T = string> = Pick<HeaderAProps$1<T>, 'isMobile' | 'logoUrl' | 'tabsProps' | 'buttonText' | 'onActionButtonClick' | 'buttonLink' | 'className'>;
|
579
574
|
|
580
|
-
declare type
|
581
|
-
type: 'columns';
|
582
|
-
columns: ColumnItem[];
|
583
|
-
containerStyles?: CSSProperties$1;
|
584
|
-
template?: ColumnsTemplateKeys;
|
585
|
-
};
|
586
|
-
declare type ColumnItem = {
|
587
|
-
title?: string;
|
588
|
-
mainContent?: string;
|
589
|
-
button?: TextButtonProps$1;
|
590
|
-
icon: string;
|
591
|
-
};
|
592
|
-
declare const Columns: ({ columns, containerStyles, template }: ColumnsProps) => JSX.Element;
|
575
|
+
declare type HeaderCProps<T> = Pick<HeaderAProps$1<T>, 'logoUrl' | 'tabsProps' | 'isMobile' | 'className'>;
|
593
576
|
|
594
|
-
declare type
|
595
|
-
|
596
|
-
|
597
|
-
onClick?: (id: T) => void;
|
598
|
-
};
|
599
|
-
declare type MenuItemsProps<T> = {
|
600
|
-
title?: string;
|
601
|
-
onItemPress?: (id: T) => void;
|
602
|
-
options?: MenuItem<T>[];
|
603
|
-
};
|
604
|
-
declare const MenuItems: <T extends string | number>({ title, onItemPress, options, }: MenuItemsProps<T>) => JSX.Element;
|
577
|
+
declare type HeaderDProps = {
|
578
|
+
withAvatar: AvatarDropdownProps$1<string>;
|
579
|
+
} & Pick<HeaderAProps$1, 'isMobile' | 'logoUrl' | 'links' | 'tabsProps' | 'className'>;
|
605
580
|
|
606
|
-
declare type
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
581
|
+
declare type HeaderProps<T = string> = (HeaderAProps<T> & {
|
582
|
+
type: 'header_a';
|
583
|
+
}) | (HeaderBProps<T> & {
|
584
|
+
type: 'header_b';
|
585
|
+
}) | (HeaderCProps<T> & {
|
586
|
+
type: 'header_c';
|
587
|
+
}) | (HeaderDProps & {
|
588
|
+
type: 'header_d';
|
589
|
+
});
|
590
|
+
declare const Header: <T extends string | number>(props: HeaderProps<T>) => JSX.Element;
|
611
591
|
|
612
|
-
declare type
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
};
|
617
|
-
declare type TabGroupProps<T = string, K = string> = {
|
618
|
-
tabs: TabType<T, K>[];
|
619
|
-
activeTabKey: T;
|
620
|
-
onTabChange?: (tabKey: T) => void;
|
621
|
-
onOptionClick?: (optionKey: K) => void;
|
622
|
-
styles?: StylesType;
|
623
|
-
vertical?: boolean;
|
624
|
-
tabTheme?: TabTheme$1;
|
625
|
-
tabFont?: FontSizesTypes$2;
|
626
|
-
textSize?: number;
|
627
|
-
tabPadding?: SizesTypes$2 | number;
|
628
|
-
tabSpacing?: SizesTypes$2;
|
629
|
-
defaultTabTextColor?: ThemeColors$2 | string;
|
630
|
-
selectedTabTextColor?: ThemeColors$2 | string;
|
631
|
-
selectedTabIndicatorColor?: ThemeColors$2 | string;
|
632
|
-
wide?: AdditionalTabContainerProps;
|
633
|
-
compact?: AdditionalTabContainerProps;
|
592
|
+
declare type ButtonCaptureProps = {
|
593
|
+
type: 'button';
|
594
|
+
acceptButton: ButtonProps$1;
|
595
|
+
denyButton: ButtonProps$1;
|
634
596
|
};
|
635
|
-
declare
|
636
|
-
|
637
|
-
|
597
|
+
declare type RadioButtonsCaptureProps<T extends string> = {
|
598
|
+
type: 'radioButton';
|
599
|
+
acceptValue: T;
|
600
|
+
} & RadioButtonsProps$1<T>;
|
601
|
+
declare type CheckboxCaptureProps = {
|
602
|
+
type: 'checkbox';
|
638
603
|
label: string;
|
639
|
-
|
640
|
-
|
641
|
-
fields: UIFields<T>;
|
642
|
-
};
|
643
|
-
declare const FieldSection: <T extends object>({ fields, label, isEditMode, control, }: FieldSectionProps<T>) => JSX.Element;
|
644
|
-
|
645
|
-
declare type MenuNavigationProps<T> = {
|
646
|
-
menuConfig: MenuItemsProps<T>;
|
647
|
-
};
|
648
|
-
declare const MenuNavigation: <T extends string | number>({ menuConfig, }: MenuNavigationProps<T>) => JSX.Element;
|
649
|
-
declare const CaretIconWrapper: styled_components.StyledComponent<"div", styled_components.DefaultTheme, {
|
650
|
-
isOpen: boolean;
|
651
|
-
}, never>;
|
652
|
-
|
653
|
-
declare type EmphasizedTextProps = {
|
654
|
-
type: 'emphasized_text';
|
655
|
-
invertColors: boolean;
|
656
|
-
textContent: string;
|
604
|
+
value: boolean;
|
605
|
+
onChange: (value: boolean) => void;
|
657
606
|
};
|
658
|
-
declare
|
607
|
+
declare type ConsentCaptureProps<T extends string = string> = ButtonCaptureProps | RadioButtonsCaptureProps<T> | CheckboxCaptureProps;
|
659
608
|
|
660
|
-
declare type
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
defaultValue?: string;
|
667
|
-
styles?: CSSProperties;
|
668
|
-
radioButtonsProps: RadioButtonsProps$1<T>;
|
669
|
-
labelsProps?: FieldLabelsProps;
|
609
|
+
declare type ConsentProps<T extends string = string> = {
|
610
|
+
text: string;
|
611
|
+
isRequired?: boolean;
|
612
|
+
consentCaptureProps: ConsentCaptureProps<T>;
|
613
|
+
containerStyles?: CSSProperties;
|
614
|
+
clearStyles?: boolean;
|
670
615
|
};
|
671
|
-
declare const
|
616
|
+
declare const Consent: <T extends string>({ text, consentCaptureProps, containerStyles, clearStyles, }: ConsentProps<T>) => JSX.Element;
|
672
617
|
|
673
|
-
declare type
|
674
|
-
|
675
|
-
title
|
676
|
-
description
|
677
|
-
color?: string;
|
618
|
+
declare type ProcessTrackerStatus = 'complete' | 'incomplete' | 'in_progress';
|
619
|
+
declare type ProcessTrackerProps = {
|
620
|
+
title?: Nullable<string>;
|
621
|
+
description?: Nullable<string>;
|
678
622
|
isMobile?: boolean;
|
679
|
-
|
680
|
-
|
623
|
+
statuses?: {
|
624
|
+
title: string;
|
625
|
+
description: string;
|
626
|
+
status: ProcessTrackerStatus;
|
627
|
+
}[];
|
628
|
+
currentStep?: number;
|
629
|
+
style?: CSSProperties;
|
681
630
|
withCloseIcon?: {
|
682
631
|
onClose: Callback$1;
|
683
632
|
};
|
684
|
-
fontColor?: ThemeColors$1;
|
685
633
|
destinationLink?: string;
|
686
634
|
onDestinationHandler?: Callback$1;
|
687
|
-
containerStyles?: CSSProperties;
|
688
|
-
};
|
689
|
-
declare const Alert: ({ logo, title, withCloseIcon, description, style, fontColor, containerStyles, isMobile, ...props }: AlertProps) => JSX.Element;
|
690
|
-
|
691
|
-
declare type OrientationType = 'horizontal' | 'vertical';
|
692
|
-
declare type StepperProps = {
|
693
|
-
steps: {
|
694
|
-
title: string;
|
695
|
-
description?: string;
|
696
|
-
status?: ProcessTrackerStatus$1;
|
697
|
-
}[];
|
698
|
-
currentStep: number;
|
699
|
-
orientation?: OrientationType;
|
700
635
|
};
|
701
|
-
declare const
|
636
|
+
declare const ProcessTracker: ({ title, statuses, isMobile, description, currentStep, style, withCloseIcon, }: ProcessTrackerProps) => JSX.Element;
|
702
637
|
|
703
|
-
declare type
|
704
|
-
|
638
|
+
declare type FilteredFeedContentType = 'all' | 'favourite';
|
639
|
+
declare type FeedContentContainerProps = {
|
640
|
+
type: 'feed';
|
641
|
+
feedHeader: Omit<FeedContentHeaderProps$1, 'isMobile'>;
|
642
|
+
feedContent?: Omit<FeedContentProps$1, 'isMobile'>[];
|
705
643
|
isMobile?: boolean;
|
706
|
-
customDocumentStyles?: Partial<{
|
707
|
-
wrapperBackgroundColor: ThemeColors$1 | string;
|
708
|
-
pageNumberColor: ThemeColors$1 | string;
|
709
|
-
pageWidth: number;
|
710
|
-
pageHeight: number;
|
711
|
-
paginationArrowColor: ThemeColors$1 | string;
|
712
|
-
disabledPaginationArrowColor: ThemeColors$1 | string;
|
713
|
-
}>;
|
714
644
|
};
|
715
|
-
declare const
|
716
|
-
|
717
|
-
declare type FeedTemplateKeys = `feed_${'a' | 'b'}`;
|
718
|
-
declare type FeedContentHeaderProps = {
|
719
|
-
title: string;
|
720
|
-
enableFavoriting?: boolean;
|
721
|
-
templateType: FeedTemplateKeys;
|
722
|
-
isMobile?: boolean;
|
723
|
-
menuConfig: MenuItemsProps$1<FilteredFeedContentType$1>;
|
724
|
-
} & Partial<Omit<InputFieldProps$1, 'labelsProps' | 'required' | 'optional'>>;
|
725
|
-
declare const FeedContentHeader: ({ templateType, title, name, inputProps, isMobile, menuConfig, ...rest }: FeedContentHeaderProps) => JSX.Element;
|
645
|
+
declare const FeedContentContainer: ({ feedHeader, feedContent, isMobile, }: FeedContentContainerProps) => JSX.Element;
|
726
646
|
|
727
|
-
declare type
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
|
647
|
+
declare type DynamicElementProps = (AlertProps$1 & {
|
648
|
+
elementType: 'alert';
|
649
|
+
}) | (ProcessTrackerProps$1 & {
|
650
|
+
elementType: 'process_tracker';
|
651
|
+
}) | (FeedContentProps$1 & {
|
652
|
+
elementType: 'feed_content';
|
653
|
+
});
|
654
|
+
declare type SizeProps = SizesTypes$1 | number;
|
655
|
+
declare type DynamicContentZoneProps = {
|
656
|
+
elements: {
|
657
|
+
data: DynamicElementProps[];
|
658
|
+
spacer?: SizeProps;
|
659
|
+
};
|
660
|
+
horizontalPaddings?: SizeProps;
|
661
|
+
containerStyles?: CSSProperties;
|
734
662
|
};
|
735
|
-
declare const
|
663
|
+
declare const DynamicContentZone: ({ elements, horizontalPaddings, containerStyles, }: DynamicContentZoneProps) => JSX.Element;
|
736
664
|
|
737
|
-
declare type
|
665
|
+
declare type BottomNavBarNavigationProps = {
|
666
|
+
navbarItems: BottomNaVBarItemProps$1[];
|
667
|
+
};
|
668
|
+
declare const BottomNavBarNavigation: ({ navbarItems }: BottomNavBarNavigationProps) => JSX.Element;
|
738
669
|
|
739
|
-
declare type
|
740
|
-
|
741
|
-
|
742
|
-
active: boolean;
|
743
|
-
activeColor: string;
|
744
|
-
onNavigate: Callback;
|
670
|
+
declare type HeroSliderProps = {
|
671
|
+
type: 'hero_slides';
|
672
|
+
heroSlides: Omit<HeroImageProps$1, 'type' | 'template'>[];
|
745
673
|
};
|
746
|
-
declare const
|
674
|
+
declare const HeroSlider: ({ heroSlides }: HeroSliderProps) => JSX.Element | null;
|
675
|
+
declare const HeroSliderWrapper: styled_components.StyledComponent<"div", styled_components.DefaultTheme, {}, never>;
|
747
676
|
|
748
|
-
declare type
|
749
|
-
|
750
|
-
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
|
755
|
-
|
756
|
-
|
757
|
-
|
758
|
-
|
677
|
+
declare type SubscribePanelTemplateKeys = `subscribe_template_${'a' | 'b'}`;
|
678
|
+
declare type SubscribePanelTemplateProps = {
|
679
|
+
title?: string;
|
680
|
+
description?: string;
|
681
|
+
isSubscribing?: boolean;
|
682
|
+
subscribeHandler: Callback$1;
|
683
|
+
isMobile: boolean;
|
684
|
+
control: Control<SubscribePanelForm>;
|
685
|
+
};
|
686
|
+
declare type SubscribePanelProps = Omit<SubscribePanelTemplateProps, 'isMobile' | 'control' | 'subscribeHandler'> & {
|
687
|
+
type: 'subscribe_panel';
|
688
|
+
template: SubscribePanelTemplateKeys;
|
689
|
+
onSubscribe: (email: string) => void;
|
690
|
+
};
|
691
|
+
declare type SubscribePanelForm = {
|
692
|
+
email: string;
|
693
|
+
};
|
759
694
|
|
760
|
-
declare
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
|
765
|
-
|
766
|
-
|
767
|
-
|
768
|
-
|
769
|
-
|
695
|
+
declare const SubscribePanel: ({ template, onSubscribe, ...props }: SubscribePanelProps) => JSX.Element;
|
696
|
+
|
697
|
+
declare type DefaultTemplateProps = {
|
698
|
+
alerts?: AlertProps$2[];
|
699
|
+
processTracker?: ProcessTrackerProps$1;
|
700
|
+
header: React.ReactNode;
|
701
|
+
feedContent?: React.ReactNode;
|
702
|
+
banner?: React.ReactNode;
|
703
|
+
content?: React.ReactNode;
|
704
|
+
};
|
705
|
+
declare const DefaultTemplate: ({ header, banner, content, alerts, processTracker, feedContent, }: DefaultTemplateProps) => JSX.Element;
|
706
|
+
|
707
|
+
interface Helpers {
|
708
|
+
goToNextStep: () => void;
|
709
|
+
goToPrevStep: () => void;
|
710
|
+
reset: () => void;
|
711
|
+
canGoToNextStep: boolean;
|
712
|
+
canGoToPrevStep: boolean;
|
713
|
+
setStep: Dispatch<SetStateAction<number>>;
|
714
|
+
}
|
715
|
+
declare const useStep: (maxStep: number) => [number, Helpers];
|
716
|
+
|
717
|
+
declare const useRequiredConsentsAcceptedValues: (consents: ConsentProps$1[]) => boolean;
|
718
|
+
|
719
|
+
declare const defaultTheme: DefaultTheme;
|
720
|
+
|
721
|
+
declare const ZealThemeProvider: (props: PropsWithChildren<{
|
722
|
+
theme?: DefaultTheme;
|
723
|
+
}>) => JSX.Element;
|
724
|
+
|
725
|
+
declare type ThemeColors = 'primary' | 'primaryTint' | 'primaryShade' | 'secondary' | 'secondaryTint' | 'secondaryShade' | 'pink' | 'pinkTint' | 'pinkShade' | 'orange' | 'orangeTint' | 'orangeShade' | 'purple' | 'purpleTint' | 'purpleShade' | 'indigo' | 'indigoTint1' | 'indigoTint2' | 'gray1' | 'gray2' | 'gray3' | 'gray4' | 'gray5' | 'green' | 'greenTint' | 'greenShade' | 'yellow' | 'yellowTint' | 'yellowShade' | 'red' | 'redTint' | 'redShade' | 'black' | 'white' | 'blue' | 'blueTint' | 'blueShade' | 'background';
|
726
|
+
declare type SizesTypes = '5XL' | '4XL' | '3XL' | '2XL' | 'XL' | 'L' | 'M' | 'S' | 'XS';
|
727
|
+
declare type FontSizesTypes = Exclude<SizesTypes, '5XL' | '4XL'>;
|
728
|
+
declare type BreakpointSizesTypes = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
729
|
+
declare type FontWeight = 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900;
|
730
|
+
declare type ThemeColorsType = Record<ThemeColors, string>;
|
731
|
+
declare type ThemeTextType = Record<FontSizesTypes, {
|
732
|
+
'font-weight': string;
|
733
|
+
'font-size': number;
|
734
|
+
'line-height': number;
|
770
735
|
}>;
|
771
|
-
declare
|
736
|
+
declare type ThemeSizesType = Record<SizesTypes, number>;
|
737
|
+
declare type ThemeDevicesType = Record<BreakpointSizesTypes, string>;
|
738
|
+
declare type ZealTheme = {
|
739
|
+
colors: ThemeColorsType;
|
740
|
+
fonts: Record<FontSizesTypes, number>;
|
741
|
+
sizes: ThemeSizesType;
|
742
|
+
devices: ThemeDevicesType;
|
743
|
+
};
|
772
744
|
|
773
|
-
declare
|
774
|
-
|
745
|
+
declare const toastStyles: styled_components.FlattenSimpleInterpolation;
|
746
|
+
|
747
|
+
declare const useMediaQuery: (breakpointSize: BreakpointSizesTypes$1) => boolean;
|
748
|
+
|
749
|
+
declare const getFieldPlaceholder: (type: FieldTypes$1, title?: string) => string;
|
750
|
+
|
751
|
+
declare type InputFieldTypes = 'phoneNumber' | 'text' | 'email' | 'password' | 'number' | 'any';
|
752
|
+
declare type FieldTypes = 'input' | 'select' | 'checkbox';
|
753
|
+
declare type UIField<T = string> = (UIInputField & UISelectField & UICheckboxField) & {
|
754
|
+
name: T;
|
755
|
+
type: FieldTypes;
|
756
|
+
value?: string;
|
757
|
+
label?: string;
|
758
|
+
placeholder?: string;
|
759
|
+
required?: boolean;
|
760
|
+
tooltip?: string;
|
761
|
+
rules?: ControllerProps['rules'];
|
762
|
+
order?: number;
|
775
763
|
};
|
776
|
-
declare
|
777
|
-
|
778
|
-
|
779
|
-
|
780
|
-
|
781
|
-
|
782
|
-
|
783
|
-
declare
|
784
|
-
|
785
|
-
}
|
786
|
-
declare
|
764
|
+
declare type UIInputField = {
|
765
|
+
inputType?: InputFieldTypes;
|
766
|
+
maxLength?: number;
|
767
|
+
onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
768
|
+
inputProps?: InputProps$1;
|
769
|
+
labelsProps?: FieldLabelsProps$1;
|
770
|
+
};
|
771
|
+
declare type UISelectField = {
|
772
|
+
options?: SelectOption$1[];
|
773
|
+
};
|
774
|
+
declare type UICheckboxField = {
|
775
|
+
checkboxLabel?: string;
|
776
|
+
};
|
777
|
+
declare type UIFields<T extends object> = UIField<keyof T>[];
|
787
778
|
|
788
|
-
declare
|
789
|
-
|
790
|
-
|
791
|
-
fontVariant: FontSizesTypes$1;
|
792
|
-
textSize: number;
|
793
|
-
textColor: ThemeColors$1 | string;
|
794
|
-
letterSpacing: number;
|
795
|
-
lineHeight: number;
|
796
|
-
fontWeight: number;
|
797
|
-
isRichText: boolean;
|
798
|
-
styles: StylesType;
|
799
|
-
textAlign: 'center' | 'right' | 'left';
|
800
|
-
}> & Pick<TextProps$1, 'seoTag'>;
|
779
|
+
declare const getInitialValuesFromFields: <T extends object>(fields: UIFields$2<T>) => DeepPartial<T>;
|
780
|
+
declare const isFormValid: <T extends FieldValues>(formState: FormState<T>) => boolean;
|
781
|
+
declare const getFieldsFromFieldSections: <T extends object>(sections: Pick<FieldSectionProps$1<T>, "fields">[]) => UIFields$2<T>;
|
801
782
|
|
802
|
-
declare
|
783
|
+
declare const acquisitionFormMockFields: UIFields$2<Record<string, string>>;
|
784
|
+
declare const setPasswordMockFields: UIFields$2<SetPasswordFields>;
|
785
|
+
declare const loginMockFields: UIFields$2<LoginFields$1>;
|
786
|
+
declare const sectionMockFields: UIFields$2<Record<string, string>>;
|
787
|
+
declare const profileInformationMockForm: {
|
803
788
|
label: string;
|
804
|
-
|
805
|
-
};
|
806
|
-
|
807
|
-
|
808
|
-
|
809
|
-
|
810
|
-
|
811
|
-
|
812
|
-
|
789
|
+
fields: UIFields$2<Record<string, string>>;
|
790
|
+
}[];
|
791
|
+
|
792
|
+
declare type MlrRichTextViewerProviderProps = PropsWithChildren<{
|
793
|
+
annotationsList: AnnotationsList$1;
|
794
|
+
isMLRReview: boolean;
|
795
|
+
showAnnotations: boolean;
|
796
|
+
}>;
|
797
|
+
declare const MlrRichTextViewerProvider: ({ children, isMLRReview, showAnnotations, annotationsList, }: MlrRichTextViewerProviderProps) => JSX.Element;
|
798
|
+
|
799
|
+
declare type MlrRichTextViewerContextType = {
|
800
|
+
isMLRReview: boolean;
|
801
|
+
showAnnotations: boolean;
|
802
|
+
annotationsList: AnnotationsList$1;
|
813
803
|
};
|
814
|
-
declare const
|
804
|
+
declare const MlrRichTextViewerContext: React$1.Context<MlrRichTextViewerContextType>;
|
815
805
|
|
816
|
-
declare
|
817
|
-
|
818
|
-
|
819
|
-
|
820
|
-
|
821
|
-
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
onSubmit: (values: T) => void;
|
827
|
-
onLinkButtonClick?: Callback$1;
|
828
|
-
showConsentLabel?: boolean;
|
829
|
-
triggerFormInitially?: boolean;
|
830
|
-
isTooltipVisible?: boolean;
|
831
|
-
optionsPresentation?: boolean;
|
806
|
+
declare type AnnotationsList = {
|
807
|
+
tags: {
|
808
|
+
id: string;
|
809
|
+
label: string;
|
810
|
+
}[];
|
811
|
+
links: {
|
812
|
+
id: string;
|
813
|
+
text: string;
|
814
|
+
url: string;
|
815
|
+
}[];
|
832
816
|
};
|
833
|
-
declare const AcquisitionForm: <T extends object>({ logoUrl, title, description, buttonText, fields, optionsPresentation, onSubmit, showConsentLabel, onLinkButtonClick, isSubmitDisabled, consents, isLoading, triggerFormInitially, isTooltipVisible, }: AcquisitionFormProps<T>) => JSX.Element;
|
834
817
|
|
835
|
-
declare
|
836
|
-
|
818
|
+
declare const useMlrRichTextViewerContext: () => contexts_MlrRichTextViewerContext_MlrRichTextViewerContext.MlrRichTextViewerContextType;
|
819
|
+
|
820
|
+
declare type FieldRuleLabelTypes = 'OPTIONAL' | 'REQUIRED';
|
821
|
+
declare type LabelInternalConfig = {
|
822
|
+
fontVariant: FontSizesTypes$2;
|
823
|
+
fontSize: number;
|
824
|
+
fontWeight: string | number;
|
825
|
+
color: ThemeColors$2 | string;
|
826
|
+
padding: string;
|
827
|
+
styles: StylesType;
|
828
|
+
wrapperStyles: StylesType;
|
837
829
|
};
|
838
|
-
declare type
|
839
|
-
|
840
|
-
|
841
|
-
|
842
|
-
|
843
|
-
|
830
|
+
declare type RuleLabelInternalConfig = {
|
831
|
+
requiredTextColor: ThemeColors$2 | string;
|
832
|
+
optionalTextColor: ThemeColors$2 | string;
|
833
|
+
padding: string;
|
834
|
+
fontSize: number;
|
835
|
+
styles: StylesType;
|
844
836
|
};
|
845
|
-
declare
|
846
|
-
|
847
|
-
|
848
|
-
|
849
|
-
|
850
|
-
|
837
|
+
declare type TooltipInternalConfig = {
|
838
|
+
fontVariant: FontSizesTypes$2;
|
839
|
+
fontSize: number;
|
840
|
+
fontWeight: string | number;
|
841
|
+
color: ThemeColors$2 | string;
|
842
|
+
padding: string;
|
843
|
+
backgroundColor: ThemeColors$2 | string;
|
844
|
+
iconColor: ThemeColors$2 | string;
|
845
|
+
styles: StylesType;
|
846
|
+
wrapperStyles: StylesType;
|
851
847
|
};
|
852
|
-
|
853
|
-
|
854
|
-
|
855
|
-
|
856
|
-
isLoading?: boolean;
|
857
|
-
twoFactorAuthConfig?: {
|
858
|
-
twoFactorShow: boolean;
|
859
|
-
twoFactorAuthProps: TwoFactorAuthProps;
|
860
|
-
};
|
861
|
-
optionsPresentation?: boolean;
|
862
|
-
onSubmit: (values: LoginFields) => void;
|
863
|
-
onSignUpButtonClick?: Callback$1;
|
864
|
-
onForgotPasswordButtonClick?: Callback$1;
|
848
|
+
declare type FieldLabelsProps = {
|
849
|
+
label: string;
|
850
|
+
tooltipText?: string;
|
851
|
+
isError?: boolean;
|
865
852
|
isTooltipVisible?: boolean;
|
866
|
-
|
853
|
+
ruleLabel?: FieldRuleLabelTypes;
|
854
|
+
labelInternalConfig?: LabelInternalConfig;
|
855
|
+
ruleLabelInternalConfig?: RuleLabelInternalConfig;
|
856
|
+
tooltipInternalConfig?: TooltipInternalConfig;
|
867
857
|
};
|
868
|
-
declare const
|
858
|
+
declare const FieldLabels: ({ label, isTooltipVisible, isError, ruleLabel, tooltipText, labelInternalConfig, ruleLabelInternalConfig, tooltipInternalConfig, }: FieldLabelsProps) => JSX.Element;
|
869
859
|
|
870
|
-
declare type
|
871
|
-
|
872
|
-
|
873
|
-
|
874
|
-
|
875
|
-
|
876
|
-
|
877
|
-
|
878
|
-
|
879
|
-
|
880
|
-
document?: string;
|
881
|
-
title?: Nullable<string>;
|
882
|
-
description: Nullable<string>;
|
883
|
-
lastUpdated: string;
|
884
|
-
buttonConfig: {
|
885
|
-
disabled?: boolean;
|
886
|
-
onClick?: () => void;
|
887
|
-
};
|
888
|
-
withCloseIcon?: {
|
889
|
-
onClose: Callback$1;
|
890
|
-
};
|
891
|
-
isMobile?: boolean;
|
892
|
-
isExpanded?: boolean;
|
893
|
-
fullWidth?: boolean;
|
894
|
-
fullWidthTemplateContainerStyles?: CSSProperties;
|
895
|
-
showDefaultDocumentStyles?: boolean;
|
896
|
-
destinationLink?: string;
|
897
|
-
onDestinationHandler?: Callback$1;
|
898
|
-
imageStyles?: CSSProperties;
|
899
|
-
videoStyles?: CSSProperties;
|
900
|
-
isEnabledFavoriting?: boolean;
|
901
|
-
isFavorite?: boolean;
|
902
|
-
onFavoriteClickHandler?: Callback$1;
|
903
|
-
onFavoriteIconClick?: (selectedFeedContent: FeedContentProps) => void;
|
860
|
+
declare type InputFieldProps = {
|
861
|
+
name: string;
|
862
|
+
control?: Control$1<any>;
|
863
|
+
rules?: ControllerProps$1['rules'];
|
864
|
+
required?: boolean;
|
865
|
+
optional?: boolean;
|
866
|
+
defaultValue?: string;
|
867
|
+
inputProps: InputProps$1;
|
868
|
+
styles?: StylesType;
|
869
|
+
labelsProps?: FieldLabelsProps;
|
904
870
|
};
|
871
|
+
declare const InputField: ({ control, name, inputProps, styles, labelsProps, defaultValue, optional, required, rules, }: InputFieldProps) => JSX.Element;
|
905
872
|
|
906
|
-
declare
|
873
|
+
declare type FieldMapperProps<T extends object> = {
|
874
|
+
field: UIField$1<keyof T>;
|
875
|
+
isEditMode?: boolean;
|
876
|
+
control?: Control$1<T>;
|
877
|
+
spacer?: number;
|
878
|
+
isTooltipVisible?: boolean;
|
879
|
+
optionsPresentation?: boolean;
|
880
|
+
styles?: StylesType;
|
881
|
+
};
|
882
|
+
declare const FieldMapper: <T extends object>({ field, isEditMode, spacer, control, isTooltipVisible, optionsPresentation, styles, }: FieldMapperProps<T>) => JSX.Element | null;
|
907
883
|
|
908
|
-
declare type
|
909
|
-
|
910
|
-
|
911
|
-
|
884
|
+
declare type CheckboxFieldProps = {
|
885
|
+
name: string;
|
886
|
+
control?: Control$1<any>;
|
887
|
+
defaultValue?: boolean;
|
888
|
+
checkboxProps: Omit<CheckBoxProps$1, 'error' | 'onClick' | 'value'>;
|
912
889
|
};
|
913
|
-
declare
|
914
|
-
|
890
|
+
declare const CheckboxField: ({ control, name, checkboxProps, defaultValue, }: CheckboxFieldProps) => JSX.Element;
|
891
|
+
|
892
|
+
declare type SelectFieldProps = {
|
893
|
+
selectProps: SelectProps;
|
894
|
+
labelsProps?: FieldLabelsProps;
|
915
895
|
name: string;
|
916
|
-
|
896
|
+
rules?: ControllerProps$1['rules'];
|
897
|
+
control?: Control$1<any>;
|
898
|
+
required?: boolean;
|
899
|
+
optional?: boolean;
|
900
|
+
defaultValue?: string;
|
901
|
+
styles?: StylesType;
|
917
902
|
};
|
903
|
+
declare const SelectField: ({ selectProps, name, defaultValue, optional, required, control, styles, labelsProps, rules, }: SelectFieldProps) => JSX.Element;
|
918
904
|
|
919
|
-
declare type
|
920
|
-
|
921
|
-
|
922
|
-
tabs: TabProps$2<string, TabKeys>[];
|
923
|
-
tabContents: Record<TabKeys, () => ReactNode>;
|
924
|
-
initialTabKey: TabKeys;
|
925
|
-
title: string;
|
926
|
-
editIcons?: {
|
927
|
-
isEditMode: boolean;
|
928
|
-
onSave: Callback$1;
|
929
|
-
onEdit: Callback$1;
|
930
|
-
onClose: Callback$1;
|
931
|
-
};
|
905
|
+
declare type CustomValidationRule<T = string> = {
|
906
|
+
text: string;
|
907
|
+
validate: (value?: T) => boolean;
|
932
908
|
};
|
933
|
-
declare
|
909
|
+
declare type CustomValidationProps<T = string> = {
|
910
|
+
label?: string;
|
911
|
+
value: T;
|
912
|
+
isSubmitted?: boolean;
|
913
|
+
rules: CustomValidationRule<T>[];
|
914
|
+
};
|
915
|
+
declare const CustomValidation: <T extends string = string>({ rules, value, isSubmitted, label, }: CustomValidationProps<T>) => JSX.Element;
|
934
916
|
|
935
|
-
declare type
|
936
|
-
|
917
|
+
declare type BaseSelectableProps<T> = {
|
918
|
+
iconName: IconNames$2;
|
919
|
+
infoText: string;
|
920
|
+
isActive?: boolean;
|
921
|
+
onClick?: (value: T) => void;
|
922
|
+
value: T;
|
937
923
|
};
|
938
|
-
|
939
|
-
|
940
|
-
|
941
|
-
|
942
|
-
|
924
|
+
|
925
|
+
declare type SelectableCardGroupProps<T> = {
|
926
|
+
cards: BaseSelectableProps<T>[];
|
927
|
+
handleChange?: (value: T | undefined) => void;
|
928
|
+
spacing?: SizesTypes$1;
|
929
|
+
initialValue?: T;
|
943
930
|
};
|
944
|
-
declare const
|
931
|
+
declare const SelectableCardGroup: <T extends string>({ cards, handleChange, spacing, initialValue, }: SelectableCardGroupProps<T>) => JSX.Element;
|
945
932
|
|
946
|
-
declare type
|
947
|
-
|
948
|
-
|
949
|
-
|
950
|
-
|
933
|
+
declare type HeroImageAlignment = 'left_aligned' | 'center_aligned';
|
934
|
+
declare type HeroImageTemplate = 'card' | 'full_width';
|
935
|
+
declare type HeroImageProps = {
|
936
|
+
type: 'hero_image';
|
937
|
+
backgroundImage: RegularImageProps$1;
|
938
|
+
mainHeading: string;
|
939
|
+
subHeading?: string;
|
940
|
+
button?: ButtonProps$1;
|
941
|
+
contentAlignment?: HeroImageAlignment;
|
951
942
|
horizontalPaddings?: number;
|
952
|
-
|
943
|
+
template?: HeroImageTemplate;
|
944
|
+
isMobile?: boolean;
|
945
|
+
height?: number;
|
953
946
|
};
|
954
|
-
declare const
|
947
|
+
declare const HeroImage: ({ backgroundImage, button, contentAlignment, mainHeading, horizontalPaddings, subHeading, template, isMobile, height, }: HeroImageProps) => JSX.Element;
|
955
948
|
|
956
|
-
declare type
|
957
|
-
declare
|
949
|
+
declare type Anchor = 'top' | 'left' | 'bottom' | 'right';
|
950
|
+
declare type DrawerProps = DrawerProps$1 & {
|
951
|
+
anchor: Anchor;
|
952
|
+
padding?: SizesTypes$2 | number;
|
953
|
+
height?: number | string;
|
954
|
+
width?: number | string;
|
955
|
+
closeIconColor?: ThemeColors$1 | string;
|
956
|
+
};
|
958
957
|
|
959
|
-
declare
|
960
|
-
|
961
|
-
|
958
|
+
declare const Drawer: ({ children, closeIconColor, ...props }: PropsWithChildren<DrawerProps>) => JSX.Element;
|
959
|
+
|
960
|
+
declare type ColumnsTemplateKeys = 'horizontal' | 'card' | 'with_image';
|
961
|
+
|
962
|
+
declare type ColumnsProps = {
|
963
|
+
type: 'columns';
|
964
|
+
columns: ColumnItem[];
|
965
|
+
containerStyles?: CSSProperties$1;
|
966
|
+
template?: ColumnsTemplateKeys;
|
962
967
|
};
|
963
|
-
declare type
|
964
|
-
|
965
|
-
|
966
|
-
|
967
|
-
|
968
|
-
onActionButtonClick?: Callback$1;
|
969
|
-
buttonText: string;
|
970
|
-
buttonLink: string;
|
971
|
-
isMobile?: boolean;
|
968
|
+
declare type ColumnItem = {
|
969
|
+
title?: string;
|
970
|
+
mainContent?: string;
|
971
|
+
button?: TextButtonProps$1;
|
972
|
+
icon: string;
|
972
973
|
};
|
974
|
+
declare const Columns: ({ columns, containerStyles, template }: ColumnsProps) => JSX.Element;
|
973
975
|
|
974
|
-
declare type
|
976
|
+
declare type MenuItem<T> = {
|
977
|
+
id: T;
|
978
|
+
title: string;
|
979
|
+
onClick?: (id: T) => void;
|
980
|
+
};
|
981
|
+
declare type MenuItemsProps<T> = {
|
982
|
+
title?: string;
|
983
|
+
onItemPress?: (id: T) => void;
|
984
|
+
options?: MenuItem<T>[];
|
985
|
+
};
|
986
|
+
declare const MenuItems: <T extends string | number>({ title, onItemPress, options, }: MenuItemsProps<T>) => JSX.Element;
|
975
987
|
|
976
|
-
declare type
|
988
|
+
declare type AvatarDropdownProps<T> = {
|
989
|
+
avatarProps: AvatarProps$1;
|
990
|
+
menuConfig: MenuItemsProps<T>;
|
991
|
+
};
|
992
|
+
declare const AvatarDropdown: <T extends string | number>({ avatarProps, menuConfig, }: AvatarDropdownProps<T>) => JSX.Element;
|
977
993
|
|
978
|
-
declare type
|
979
|
-
|
980
|
-
|
994
|
+
declare type TabType<T = string, K = string> = Pick<TabProps$1<T, K>, 'text' | 'tabKey' | 'disabled' | 'options' | 'divider'>;
|
995
|
+
declare type AdditionalTabContainerProps = {
|
996
|
+
containerStyle?: CSSProperties;
|
997
|
+
containerProps?: Record<string, unknown>;
|
998
|
+
};
|
999
|
+
declare type TabGroupProps<T = string, K = string> = {
|
1000
|
+
tabs: TabType<T, K>[];
|
1001
|
+
activeTabKey: T;
|
1002
|
+
onTabChange?: (tabKey: T) => void;
|
1003
|
+
onOptionClick?: (optionKey: K) => void;
|
1004
|
+
styles?: StylesType;
|
1005
|
+
vertical?: boolean;
|
1006
|
+
tabTheme?: TabTheme$1;
|
1007
|
+
tabFont?: FontSizesTypes$1;
|
1008
|
+
textSize?: number;
|
1009
|
+
tabPadding?: SizesTypes$2 | number;
|
1010
|
+
tabSpacing?: SizesTypes$2;
|
1011
|
+
defaultTabTextColor?: ThemeColors$1 | string;
|
1012
|
+
selectedTabTextColor?: ThemeColors$1 | string;
|
1013
|
+
selectedTabIndicatorColor?: ThemeColors$1 | string;
|
1014
|
+
wide?: AdditionalTabContainerProps;
|
1015
|
+
compact?: AdditionalTabContainerProps;
|
1016
|
+
};
|
1017
|
+
declare const TabGroup: <T extends string, K extends string>({ tabs, vertical, activeTabKey, onTabChange, tabTheme, wide, compact, tabSpacing, ...props }: TabGroupProps<T, K>) => JSX.Element;
|
981
1018
|
|
982
|
-
declare type
|
983
|
-
|
984
|
-
|
985
|
-
|
986
|
-
|
987
|
-
|
988
|
-
|
989
|
-
type: 'header_d';
|
990
|
-
});
|
991
|
-
declare const Header: <T extends string | number>(props: HeaderProps<T>) => JSX.Element;
|
1019
|
+
declare type FieldSectionProps<T extends object> = {
|
1020
|
+
label: string;
|
1021
|
+
control?: Control$1<T>;
|
1022
|
+
isEditMode?: boolean;
|
1023
|
+
fields: UIFields<T>;
|
1024
|
+
};
|
1025
|
+
declare const FieldSection: <T extends object>({ fields, label, isEditMode, control, }: FieldSectionProps<T>) => JSX.Element;
|
992
1026
|
|
993
|
-
declare type
|
994
|
-
|
995
|
-
acceptButton: ButtonProps$1;
|
996
|
-
denyButton: ButtonProps$1;
|
1027
|
+
declare type MenuNavigationProps<T> = {
|
1028
|
+
menuConfig: MenuItemsProps<T>;
|
997
1029
|
};
|
998
|
-
declare
|
999
|
-
|
1000
|
-
|
1001
|
-
}
|
1002
|
-
|
1003
|
-
|
1004
|
-
|
1005
|
-
|
1006
|
-
|
1030
|
+
declare const MenuNavigation: <T extends string | number>({ menuConfig, }: MenuNavigationProps<T>) => JSX.Element;
|
1031
|
+
declare const CaretIconWrapper: styled_components.StyledComponent<"div", styled_components.DefaultTheme, {
|
1032
|
+
isOpen: boolean;
|
1033
|
+
}, never>;
|
1034
|
+
|
1035
|
+
declare type EmphasizedTextProps = {
|
1036
|
+
type: 'emphasized_text';
|
1037
|
+
invertColors: boolean;
|
1038
|
+
textContent: string;
|
1007
1039
|
};
|
1008
|
-
declare
|
1040
|
+
declare const EmphasizedText: ({ textContent, invertColors }: EmphasizedTextProps) => JSX.Element;
|
1009
1041
|
|
1010
|
-
declare type
|
1011
|
-
|
1012
|
-
|
1013
|
-
|
1014
|
-
|
1015
|
-
|
1042
|
+
declare type RadioButtonFieldProps<T extends string> = {
|
1043
|
+
name: string;
|
1044
|
+
control?: Control$1<any>;
|
1045
|
+
rules?: ControllerProps$1['rules'];
|
1046
|
+
required?: boolean;
|
1047
|
+
optional?: boolean;
|
1048
|
+
defaultValue?: string;
|
1049
|
+
styles?: CSSProperties;
|
1050
|
+
radioButtonsProps: RadioButtonsProps$1<T>;
|
1051
|
+
labelsProps?: FieldLabelsProps;
|
1016
1052
|
};
|
1017
|
-
declare const
|
1053
|
+
declare const RadioButtonField: <T extends string>({ control, name, radioButtonsProps, styles, labelsProps, defaultValue, optional, required, rules, }: RadioButtonFieldProps<T>) => JSX.Element;
|
1018
1054
|
|
1019
|
-
declare type
|
1020
|
-
declare type ProcessTrackerProps = {
|
1021
|
-
title?: Nullable<string>;
|
1022
|
-
description?: Nullable<string>;
|
1023
|
-
isMobile?: boolean;
|
1024
|
-
statuses?: {
|
1025
|
-
title: string;
|
1026
|
-
description: string;
|
1027
|
-
status: ProcessTrackerStatus;
|
1028
|
-
}[];
|
1029
|
-
currentStep?: number;
|
1055
|
+
declare type AlertProps = {
|
1030
1056
|
style?: CSSProperties;
|
1057
|
+
title: string;
|
1058
|
+
description: string;
|
1059
|
+
color?: string;
|
1060
|
+
isMobile?: boolean;
|
1061
|
+
logo?: string;
|
1062
|
+
fullWidth?: boolean;
|
1031
1063
|
withCloseIcon?: {
|
1032
1064
|
onClose: Callback$1;
|
1033
1065
|
};
|
1066
|
+
fontColor?: ThemeColors$2;
|
1034
1067
|
destinationLink?: string;
|
1035
1068
|
onDestinationHandler?: Callback$1;
|
1036
|
-
};
|
1037
|
-
declare const ProcessTracker: ({ title, statuses, isMobile, description, currentStep, style, withCloseIcon, }: ProcessTrackerProps) => JSX.Element;
|
1038
|
-
|
1039
|
-
declare type FilteredFeedContentType = 'all' | 'favourite';
|
1040
|
-
declare type FeedContentContainerProps = {
|
1041
|
-
type: 'feed';
|
1042
|
-
feedHeader: Omit<FeedContentHeaderProps$1, 'isMobile'>;
|
1043
|
-
feedContent?: Omit<FeedContentProps$1, 'isMobile'>[];
|
1044
|
-
isMobile?: boolean;
|
1045
|
-
};
|
1046
|
-
declare const FeedContentContainer: ({ feedHeader, feedContent, isMobile, }: FeedContentContainerProps) => JSX.Element;
|
1047
|
-
|
1048
|
-
declare type DynamicElementProps = (AlertProps$1 & {
|
1049
|
-
elementType: 'alert';
|
1050
|
-
}) | (ProcessTrackerProps$1 & {
|
1051
|
-
elementType: 'process_tracker';
|
1052
|
-
}) | (FeedContentProps$1 & {
|
1053
|
-
elementType: 'feed_content';
|
1054
|
-
});
|
1055
|
-
declare type SizeProps = SizesTypes$1 | number;
|
1056
|
-
declare type DynamicContentZoneProps = {
|
1057
|
-
elements: {
|
1058
|
-
data: DynamicElementProps[];
|
1059
|
-
spacer?: SizeProps;
|
1060
|
-
};
|
1061
|
-
horizontalPaddings?: SizeProps;
|
1062
1069
|
containerStyles?: CSSProperties;
|
1063
1070
|
};
|
1064
|
-
declare const
|
1071
|
+
declare const Alert: ({ logo, title, withCloseIcon, description, style, fontColor, containerStyles, isMobile, ...props }: AlertProps) => JSX.Element;
|
1065
1072
|
|
1066
|
-
declare type
|
1067
|
-
|
1073
|
+
declare type OrientationType = 'horizontal' | 'vertical';
|
1074
|
+
declare type StepperProps = {
|
1075
|
+
steps: {
|
1076
|
+
title: string;
|
1077
|
+
description?: string;
|
1078
|
+
status?: ProcessTrackerStatus$1;
|
1079
|
+
}[];
|
1080
|
+
currentStep: number;
|
1081
|
+
orientation?: OrientationType;
|
1068
1082
|
};
|
1069
|
-
declare const
|
1083
|
+
declare const Stepper: ({ steps, orientation, currentStep }: StepperProps) => JSX.Element;
|
1070
1084
|
|
1071
|
-
declare type
|
1072
|
-
|
1073
|
-
|
1085
|
+
declare type PdfDocumentProps = {
|
1086
|
+
source: string;
|
1087
|
+
isMobile?: boolean;
|
1088
|
+
customDocumentStyles?: Partial<{
|
1089
|
+
wrapperBackgroundColor: ThemeColors$2 | string;
|
1090
|
+
pageNumberColor: ThemeColors$2 | string;
|
1091
|
+
pageWidth: number;
|
1092
|
+
pageHeight: number;
|
1093
|
+
paginationArrowColor: ThemeColors$2 | string;
|
1094
|
+
disabledPaginationArrowColor: ThemeColors$2 | string;
|
1095
|
+
}>;
|
1074
1096
|
};
|
1075
|
-
declare const
|
1076
|
-
declare const HeroSliderWrapper: styled_components.StyledComponent<"div", styled_components.DefaultTheme, {}, never>;
|
1097
|
+
declare const PdfDocument: ({ source, isMobile, customDocumentStyles, }: PdfDocumentProps) => JSX.Element;
|
1077
1098
|
|
1078
|
-
declare type
|
1079
|
-
declare type
|
1080
|
-
title
|
1099
|
+
declare type FeedTemplateKeys = `feed_${'a' | 'b'}`;
|
1100
|
+
declare type FeedContentHeaderProps = {
|
1101
|
+
title: string;
|
1102
|
+
enableFavoriting?: boolean;
|
1103
|
+
templateType: FeedTemplateKeys;
|
1104
|
+
isMobile?: boolean;
|
1105
|
+
menuConfig: MenuItemsProps$1<FilteredFeedContentType$1>;
|
1106
|
+
} & Partial<Omit<InputFieldProps$1, 'labelsProps' | 'required' | 'optional'>>;
|
1107
|
+
declare const FeedContentHeader: ({ templateType, title, name, inputProps, isMobile, menuConfig, ...rest }: FeedContentHeaderProps) => JSX.Element;
|
1108
|
+
|
1109
|
+
declare type ToggleFieldProps = {
|
1110
|
+
name: string;
|
1111
|
+
title: string;
|
1112
|
+
control?: Control$1<any>;
|
1081
1113
|
description?: string;
|
1082
|
-
|
1083
|
-
|
1084
|
-
isMobile: boolean;
|
1085
|
-
control: Control$1<SubscribePanelForm>;
|
1086
|
-
};
|
1087
|
-
declare type SubscribePanelProps = Omit<SubscribePanelTemplateProps, 'isMobile' | 'control' | 'subscribeHandler'> & {
|
1088
|
-
type: 'subscribe_panel';
|
1089
|
-
template: SubscribePanelTemplateKeys;
|
1090
|
-
onSubscribe: (email: string) => void;
|
1091
|
-
};
|
1092
|
-
declare type SubscribePanelForm = {
|
1093
|
-
email: string;
|
1114
|
+
horizontalButtonsProps: HorizontalButtonsProps$1;
|
1115
|
+
defaultValue?: string;
|
1094
1116
|
};
|
1117
|
+
declare const HorizontalButtonsField: ({ name, title, control, description, horizontalButtonsProps, }: ToggleFieldProps) => JSX.Element;
|
1095
1118
|
|
1096
|
-
declare
|
1119
|
+
declare type Callback = () => void;
|
1097
1120
|
|
1098
|
-
declare type
|
1099
|
-
|
1100
|
-
|
1101
|
-
|
1102
|
-
|
1103
|
-
|
1104
|
-
content?: React.ReactNode;
|
1121
|
+
declare type BottomNaVBarItemProps = {
|
1122
|
+
name: string;
|
1123
|
+
icon: ComponentType<Omit<IconProps$1, 'name'>>;
|
1124
|
+
active: boolean;
|
1125
|
+
activeColor: string;
|
1126
|
+
onNavigate: Callback;
|
1105
1127
|
};
|
1106
|
-
declare const
|
1107
|
-
|
1108
|
-
interface Helpers {
|
1109
|
-
goToNextStep: () => void;
|
1110
|
-
goToPrevStep: () => void;
|
1111
|
-
reset: () => void;
|
1112
|
-
canGoToNextStep: boolean;
|
1113
|
-
canGoToPrevStep: boolean;
|
1114
|
-
setStep: Dispatch<SetStateAction<number>>;
|
1115
|
-
}
|
1116
|
-
declare const useStep: (maxStep: number) => [number, Helpers];
|
1117
|
-
|
1118
|
-
declare const useRequiredConsentsAcceptedValues: (consents: ConsentProps$1[]) => boolean;
|
1119
|
-
|
1120
|
-
declare const defaultTheme: DefaultTheme;
|
1121
|
-
|
1122
|
-
declare const ZealThemeProvider: (props: PropsWithChildren<{
|
1123
|
-
theme?: DefaultTheme;
|
1124
|
-
}>) => JSX.Element;
|
1128
|
+
declare const BottomNavBarItem: ({ name, icon: IconComponent, active, activeColor, onNavigate, }: BottomNaVBarItemProps) => JSX.Element;
|
1125
1129
|
|
1126
|
-
declare type
|
1127
|
-
|
1128
|
-
|
1129
|
-
|
1130
|
-
|
1131
|
-
|
1132
|
-
|
1133
|
-
|
1134
|
-
|
1135
|
-
'line-height': number;
|
1130
|
+
declare type VideoProps = {
|
1131
|
+
src: string;
|
1132
|
+
} & Partial<{
|
1133
|
+
width: number;
|
1134
|
+
autoplay: boolean;
|
1135
|
+
enableCoverImage: boolean;
|
1136
|
+
coverImageSrc: string;
|
1137
|
+
style: CSSProperties;
|
1138
|
+
template: FeedContentTemplateTypes$1;
|
1136
1139
|
}>;
|
1137
|
-
declare
|
1138
|
-
declare type ThemeDevicesType = Record<BreakpointSizesTypes, string>;
|
1139
|
-
declare type ZealTheme = {
|
1140
|
-
colors: ThemeColorsType;
|
1141
|
-
fonts: Record<FontSizesTypes, number>;
|
1142
|
-
sizes: ThemeSizesType;
|
1143
|
-
devices: ThemeDevicesType;
|
1144
|
-
};
|
1145
|
-
|
1146
|
-
declare const toastStyles: styled_components.FlattenSimpleInterpolation;
|
1147
|
-
|
1148
|
-
declare const useMediaQuery: (breakpointSize: BreakpointSizesTypes$1) => boolean;
|
1140
|
+
declare const Video: ({ style, src, width, template, autoplay, enableCoverImage, coverImageSrc, }: VideoProps) => JSX.Element;
|
1149
1141
|
|
1150
|
-
declare type
|
1151
|
-
|
1152
|
-
|
1153
|
-
|
1142
|
+
declare type ImageProps = {
|
1143
|
+
src: string;
|
1144
|
+
} & Partial<{
|
1145
|
+
altText: string;
|
1146
|
+
link: string;
|
1147
|
+
width: number;
|
1148
|
+
height: number;
|
1149
|
+
cornerRadius: number;
|
1150
|
+
behaveAs: 'background' | 'regular';
|
1151
|
+
styles: StylesType;
|
1154
1152
|
}>;
|
1155
|
-
declare const
|
1153
|
+
declare const Image: ({ src, link, altText, styles, width, height, behaveAs, cornerRadius, }: ImageProps) => JSX.Element;
|
1156
1154
|
|
1157
|
-
declare type
|
1158
|
-
|
1159
|
-
showAnnotations: boolean;
|
1160
|
-
annotationsList: AnnotationsList$1;
|
1155
|
+
declare type CarouselProps = {
|
1156
|
+
children: JSX.Element[];
|
1161
1157
|
};
|
1162
|
-
declare const
|
1158
|
+
declare const Carousel: ({ children }: PropsWithChildren<CarouselProps>) => JSX.Element;
|
1159
|
+
declare const Wrapper: styled_components.StyledComponent<"section", styled_components.DefaultTheme, {}, never>;
|
1160
|
+
declare const SlidesWrapper: styled_components.StyledComponent<"ul", styled_components.DefaultTheme, {
|
1161
|
+
translateX: number;
|
1162
|
+
}, never>;
|
1163
|
+
declare const Slide: styled_components.StyledComponent<"li", styled_components.DefaultTheme, {}, never>;
|
1164
|
+
declare const ButtonsWrapper: styled_components.StyledComponent<"div", styled_components.DefaultTheme, {}, never>;
|
1165
|
+
declare const ArrowIconWrapper: styled_components.StyledComponent<"div", styled_components.DefaultTheme, {
|
1166
|
+
arrowSide: 'left' | 'right';
|
1167
|
+
}, never>;
|
1168
|
+
declare const NavigationDotsWrapper: styled_components.StyledComponent<"div", styled_components.DefaultTheme, {}, never>;
|
1163
1169
|
|
1164
|
-
declare type
|
1165
|
-
|
1166
|
-
|
1167
|
-
|
1168
|
-
|
1169
|
-
|
1170
|
-
|
1171
|
-
|
1172
|
-
|
1173
|
-
|
1174
|
-
|
1170
|
+
declare type TextMoleculeProps = Partial<{
|
1171
|
+
text: string;
|
1172
|
+
variant: 'base' | 'custom';
|
1173
|
+
fontVariant: FontSizesTypes$2;
|
1174
|
+
textSize: number;
|
1175
|
+
textColor: ThemeColors$2 | string;
|
1176
|
+
letterSpacing: number;
|
1177
|
+
lineHeight: number;
|
1178
|
+
fontWeight: string | number;
|
1179
|
+
isRichText: boolean;
|
1180
|
+
styles: StylesType;
|
1181
|
+
textAlign: 'center' | 'right' | 'left';
|
1182
|
+
}> & Pick<TextProps$1, 'seoTag'>;
|
1183
|
+
declare const TextMolecule: ({ isRichText, variant, text, seoTag, fontVariant, textColor, textSize, fontWeight, lineHeight, letterSpacing, styles, textAlign, }: TextMoleculeProps) => JSX.Element;
|
1175
1184
|
|
1176
|
-
declare
|
1185
|
+
declare type ButtonVariant = 'primary' | 'secondary' | 'text' | 'custom';
|
1186
|
+
declare type BaseButtonProps = PropsWithChildren<{
|
1187
|
+
onClick?: Callback$1;
|
1188
|
+
variant?: ButtonVariant;
|
1189
|
+
disabled?: boolean;
|
1190
|
+
fullWidth?: boolean;
|
1191
|
+
size?: 'medium' | 'small';
|
1192
|
+
buttonFont?: FontSizesTypes$2;
|
1193
|
+
textColor?: ThemeColors$2 | string;
|
1194
|
+
textSize?: number;
|
1195
|
+
horizontalPadding?: SizesTypes$1;
|
1196
|
+
verticalPadding?: SizesTypes$1;
|
1197
|
+
buttonColor?: ThemeColors$2 | string;
|
1198
|
+
buttonStroke?: ThemeColors$2 | string;
|
1199
|
+
cornerRadius?: SizesTypes$1 | number;
|
1200
|
+
hoverButtonColor?: ThemeColors$2 | string;
|
1201
|
+
hoverStrokeColor?: ThemeColors$2 | string;
|
1202
|
+
inactiveButtonColor?: ThemeColors$2 | string;
|
1203
|
+
inactiveStrokeColor?: ThemeColors$2 | string;
|
1204
|
+
inactiveTextColor?: ThemeColors$2 | string;
|
1205
|
+
styles?: StylesType;
|
1206
|
+
colorTheme?: 'light' | 'dark';
|
1207
|
+
href?: string;
|
1208
|
+
}>;
|
1209
|
+
declare type ButtonProps = BaseButtonProps & {
|
1210
|
+
fullWidth?: boolean;
|
1211
|
+
text?: string;
|
1212
|
+
link?: string;
|
1213
|
+
elementId?: string;
|
1214
|
+
loading?: boolean;
|
1215
|
+
isRichText?: boolean;
|
1216
|
+
containerStyle?: CSSProperties;
|
1217
|
+
buttonStyle?: CSSProperties;
|
1218
|
+
};
|
1219
|
+
declare const Button: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children, buttonStyle, size, textColor, inactiveTextColor, ...props }: ButtonProps) => JSX.Element | null;
|
1177
1220
|
|
1178
1221
|
declare const Container: ({ children, wide, compact, type, ...props }: ContainerProps$1) => JSX.Element;
|
1179
1222
|
declare const ContainerComponent: ({ type, items, config, tabsProps }: ContainerComponentProps$1) => JSX.Element | null;
|
@@ -1225,7 +1268,7 @@ interface ImageMolecule extends BaseMolecule {
|
|
1225
1268
|
props: Omit<ImageProps$1, 'src' | 'link' | 'altText'>;
|
1226
1269
|
};
|
1227
1270
|
}
|
1228
|
-
interface
|
1271
|
+
interface TextMoleculeType extends BaseMolecule {
|
1229
1272
|
type: 'text';
|
1230
1273
|
attributes: {
|
1231
1274
|
text: TextAttributes;
|
@@ -1233,9 +1276,9 @@ interface TextMolecule extends BaseMolecule {
|
|
1233
1276
|
};
|
1234
1277
|
config: {
|
1235
1278
|
props: {
|
1236
|
-
fontVariant: FontSizesTypes$
|
1279
|
+
fontVariant: FontSizesTypes$2;
|
1237
1280
|
textSize: number;
|
1238
|
-
textColor: ThemeColors$
|
1281
|
+
textColor: ThemeColors$2 | string;
|
1239
1282
|
letterSpacing: number;
|
1240
1283
|
lineHeight: number;
|
1241
1284
|
isRichText: boolean;
|
@@ -1283,7 +1326,7 @@ interface TabGroupMolecule extends BaseMolecule {
|
|
1283
1326
|
};
|
1284
1327
|
};
|
1285
1328
|
}
|
1286
|
-
declare type Molecule = StrictUnion<ImageMolecule |
|
1329
|
+
declare type Molecule = StrictUnion<ImageMolecule | TextMoleculeType | ButtonMolecule | VideoMolecule | TabGroupMolecule>;
|
1287
1330
|
|
1288
1331
|
declare type ContainerType = 'row' | 'column' | 'slider';
|
1289
1332
|
declare type ContainerPositionType = 'fixed' | 'sticky' | 'static';
|
@@ -1327,4 +1370,4 @@ declare const OrganismItem: ({ item, tabsProps, }: {
|
|
1327
1370
|
tabsProps?: Pick<TabGroupProps$1<string, string>, "tabs" | "activeTabKey" | "onTabChange"> | undefined;
|
1328
1371
|
}) => JSX.Element | null;
|
1329
1372
|
|
1330
|
-
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, ButtonVariant, ButtonsWrapper, COMMUNICATION_LINK_DATA_TEXT, COMMUNICATION_LINK_DATA_URL, COMMUNICATION_LINK_ELEMENT_ID, CaretIconWrapper, Carousel, CarouselProps, CheckBoxProps, Checkbox, CheckboxField, CheckboxFieldProps, 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, FeedContent, FeedContentContainer, FeedContentContainerProps, FeedContentHeader, FeedContentHeaderProps, FeedTemplateKeys, FieldLabels, FieldLabelsProps, FieldMapper, FieldMapperProps, FieldRuleLabelTypes, FieldSection, FieldSectionProps, FieldTypes, FilteredFeedContentType, FontSizesTypes, FontWeight, Footer, FooterContactInfo, FooterLink, FooterProps, ForgotPasswordForm, ForgotPasswordFormProps, GoogleMap, GoogleMapProps, Header, HeaderProps, HeroImage, HeroImageAlignment, HeroImageProps, HeroImageTemplate, HeroSlider, HeroSliderProps, HeroSliderWrapper, HorizontalButtons, HorizontalButtonsField, HorizontalButtonsProps, HorizontalPadding, HorizontalPaddingProps, ISI, ISIProps, Icon, IconButton, IconButtonProps, IconNames, IconProps, Image, ImageAttributes, ImageMolecule, ImageProps, Input, InputField, InputFieldProps, InputFieldTypes, InputIconProps, InputProps, LinkAttributes, LoginForm, LoginFormProps, MATRIX_MESSAGE_DATA_ID, MATRIX_MESSAGE_ELEMENT_ID, MapPosition, MenuItem, MenuItems, MenuItemsProps, MenuNavigation, MenuNavigationProps, MlrRichTextViewerContext, MlrRichTextViewerContextType, MlrRichTextViewerProvider, MlrRichTextViewerProviderProps, Molecule, MoleculeTypes, NavigationDotsWrapper, OrganismItem, OrientationType, PdfDocument, PdfDocumentProps, ProcessTracker, ProcessTrackerProps, ProcessTrackerStatus, ProfileInformation, ProfileInformationProps, RadioButtonField, RadioButtonFieldProps, RadioButtonType, RadioButtons, RadioButtonsProps, RegularImage, RegularImageProps, RichTextEditorProps, RichTextViewer, Select, SelectAttributes, SelectField, SelectFieldProps, 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, TextMoleculeProps, TextProps, TextTypes, TextWrapper, TextWrapperProps, ThemeColors, ThemeColorsType, ThemeDevicesType, ThemeSizesType, ThemeTextType, Tooltip, TooltipProps, TouchableOpacity, TouchableOpacityProps, TwoFactorAuth, TwoFactorAuthProps, UICheckboxField, UIField, UIFields, UIInputField, UISelectField, ValidationTag, ValidationTagProps, ValidationTagStatus, VerticalPadding, Video, VideoAttributes, VideoMolecule, VideoProps, Wrapper, ZealTheme, ZealThemeProvider, acquisitionFormMockFields, defaultTheme, getFieldPlaceholder, getFieldsFromFieldSections, getInitialValuesFromFields, isFormValid, loginMockFields, profileInformationMockForm, sectionMockFields, setPasswordMockFields, showAcceptToastMessage, toast, toastStyles, useMediaQuery, useMlrRichTextViewerContext, useRequiredConsentsAcceptedValues, useStep };
|
1373
|
+
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, ButtonVariant, ButtonsWrapper, COMMUNICATION_LINK_DATA_TEXT, COMMUNICATION_LINK_DATA_URL, COMMUNICATION_LINK_ELEMENT_ID, CaretIconWrapper, Carousel, CarouselProps, CheckBoxProps, Checkbox, CheckboxField, CheckboxFieldProps, 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, FeedContent, FeedContentContainer, FeedContentContainerProps, FeedContentHeader, FeedContentHeaderProps, FeedTemplateKeys, FieldLabels, FieldLabelsProps, FieldMapper, FieldMapperProps, FieldRuleLabelTypes, FieldSection, FieldSectionProps, FieldTypes, FilteredFeedContentType, FontSizesTypes, FontWeight, Footer, FooterContactInfo, FooterLink, FooterProps, ForgotPasswordForm, ForgotPasswordFormProps, GoogleMap, GoogleMapProps, Header, HeaderProps, HeroImage, HeroImageAlignment, HeroImageProps, HeroImageTemplate, HeroSlider, HeroSliderProps, HeroSliderWrapper, HorizontalButtons, HorizontalButtonsField, HorizontalButtonsProps, HorizontalPadding, HorizontalPaddingProps, ISI, ISIProps, Icon, IconButton, IconButtonProps, IconNames, IconProps, Image, ImageAttributes, ImageMolecule, ImageProps, Input, InputField, InputFieldInternalConfigProps, InputFieldProps, InputFieldTypes, InputIconProps, InputProps, LabelInternalConfig, LinkAttributes, LoginForm, LoginFormProps, MATRIX_MESSAGE_DATA_ID, MATRIX_MESSAGE_ELEMENT_ID, MapPosition, MenuItem, MenuItems, MenuItemsProps, MenuNavigation, MenuNavigationProps, MlrRichTextViewerContext, MlrRichTextViewerContextType, MlrRichTextViewerProvider, MlrRichTextViewerProviderProps, Molecule, MoleculeTypes, NavigationDotsWrapper, OrganismItem, OrientationType, PdfDocument, PdfDocumentProps, ProcessTracker, ProcessTrackerProps, ProcessTrackerStatus, ProfileInformation, ProfileInformationProps, RadioButtonField, RadioButtonFieldProps, RadioButtonType, RadioButtons, RadioButtonsProps, RegularImage, RegularImageProps, RichTextEditorProps, RichTextViewer, RuleLabelInternalConfig, Select, SelectAttributes, SelectField, SelectFieldProps, 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, 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, acquisitionFormMockFields, defaultTheme, getFieldPlaceholder, getFieldsFromFieldSections, getInitialValuesFromFields, isFormValid, loginMockFields, profileInformationMockForm, sectionMockFields, setPasswordMockFields, showAcceptToastMessage, toast, toastStyles, useMediaQuery, useMlrRichTextViewerContext, useRequiredConsentsAcceptedValues, useStep };
|