@zealicsolutions/web-ui 0.4.22 → 0.4.24

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/index.d.ts CHANGED
@@ -6,18 +6,18 @@ import { CSSProperties, DefaultTheme } from 'styled-components';
6
6
  import * as theme from 'theme';
7
7
  import { ThemeColors as ThemeColors$1, SizesTypes as SizesTypes$1, FontSizesTypes as FontSizesTypes$2 } from 'theme';
8
8
  import * as typescript from 'typescript';
9
- import { StylesType, AnyObject as AnyObject$1, Callback as Callback$1, OverrideStyles, StyledTransientProps, Nullable, StrictUnion } from 'typescript';
9
+ import { StylesType, AnyObject as AnyObject$1, Callback as Callback$1, Nullable, StrictUnion, OverrideStyles, StyledTransientProps } from 'typescript';
10
10
  import { RefCallBack, Control as Control$1, ControllerProps as ControllerProps$1 } from 'react-hook-form/dist/types';
11
11
  import { IconNames as IconNames$1 } from 'atoms/Icon/Icon';
12
12
  import * as containers from 'containers';
13
- import { FormStateType as FormStateType$1, ContainerComponentProps as ContainerComponentProps$1, Molecule as Molecule$1, StateConfigType as StateConfigType$1, ConditionConfig as ConditionConfig$1, MetadataStateConfig as MetadataStateConfig$1 } from 'containers';
13
+ import { ContainerComponentProps as ContainerComponentProps$1, Molecule as Molecule$1, FormStateType as FormStateType$1, StateConfigType as StateConfigType$1, ConditionConfig as ConditionConfig$1, MetadataStateConfig as MetadataStateConfig$1 } from 'containers';
14
14
  import { FieldTypes as FieldTypes$1, UIFields as UIFields$1, InputFieldTypes as InputFieldTypes$1 } from 'fieldsConfiguration/types';
15
15
  import { ThemeColors as ThemeColors$2, FontSizesTypes as FontSizesTypes$1, SizesTypes as SizesTypes$2, BreakpointSizesTypes as BreakpointSizesTypes$1 } from 'theme/types';
16
16
  import * as atoms from 'atoms';
17
- 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, LinkVariant as LinkVariant$1 } from 'atoms';
18
- 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, ConsentType as ConsentType$1, LinkProps as LinkProps$1, AvatarDropdownMenuConfigType as AvatarDropdownMenuConfigType$1 } from 'molecules';
17
+ import { SelectOption as SelectOption$1, LinkVariant as LinkVariant$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';
18
+ import { ImageProps as ImageProps$1, TextMoleculeProps as TextMoleculeProps$1, ButtonProps as ButtonProps$1, TabGroupProps as TabGroupProps$1, AdditionalTabContainerProps as AdditionalTabContainerProps$1, InputFieldProps as InputFieldProps$1, SelectFieldProps as SelectFieldProps$1, RadioButtonFieldProps as RadioButtonFieldProps$1, CheckboxFieldProps as CheckboxFieldProps$1, ConsentType as ConsentType$1, LinkProps as LinkProps$1, AvatarDropdownProps as AvatarDropdownProps$1, AvatarDropdownMenuConfigType as AvatarDropdownMenuConfigType$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, FeedContentHeaderProps as FeedContentHeaderProps$1, AlertProps as AlertProps$1, BottomNaVBarItemProps as BottomNaVBarItemProps$1, MenuItemsProps as MenuItemsProps$1 } from 'molecules';
19
19
  import * as react_hook_form from 'react-hook-form';
20
- import { ControllerProps, DeepPartial, FieldValues, FormState, Control, UseFormReturn, ValidationMode } from 'react-hook-form';
20
+ import { UseFormReturn, ValidationMode, ControllerProps, DeepPartial, FieldValues, FormState, Control } from 'react-hook-form';
21
21
  import { TooltipProps as TooltipProps$1 } from 'rc-tooltip/lib/Tooltip';
22
22
  import { WithGoogleMapProps } from 'react-google-maps/lib/withGoogleMap';
23
23
  import { WithScriptjsProps } from 'react-google-maps/lib/withScriptjs';
@@ -118,148 +118,623 @@ declare type SelectProps = Partial<{
118
118
  }>;
119
119
  declare const Select: ({ ref, onBlur, onChange, value, placeholder, options, disabled, optionsPresentation, isError, isEditMode, selectInternalConfig, isRichText, }: SelectProps) => JSX.Element;
120
120
 
121
- declare type Callback = () => void;
122
- declare type AnyObject = Record<string, unknown>;
123
-
124
- declare const getFieldPlaceholder: (type: FieldTypes$1, title?: string) => string;
125
-
126
- declare type InputFieldTypes = 'phone_number' | 'text' | 'email' | 'password' | 'numerical' | 'month_year_date' | 'day_month_year_date' | 'month_day_year_date' | 'us_zip_code' | 'username' | 'any';
127
- declare type FieldTypes = 'input' | 'select' | 'checkbox';
128
- declare type UIField<T = string> = (UIInputField & UISelectField & UICheckboxField) & {
129
- name: T;
130
- type: FieldTypes;
131
- value?: string;
132
- label?: string;
133
- placeholder?: string;
134
- required?: boolean;
135
- tooltip?: string;
136
- rules?: ControllerProps['rules'];
137
- order?: number;
138
- };
139
- declare type UIInputField = {
140
- inputType?: InputFieldTypes;
141
- maxLength?: number;
142
- onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
143
- } & InputFieldProps$1;
144
- declare type UISelectField = {
145
- options?: SelectOption$1[];
146
- } & SelectFieldProps$1;
147
- declare type UICheckboxField = {
148
- checkboxLabel?: string;
149
- };
150
- declare type UIFields<T extends object> = UIField<keyof T>[];
151
-
152
- declare const getInitialValuesFromFields: <T extends object>(fields: UIFields$1<T>) => DeepPartial<T>;
153
- declare const isFormValid: <T extends FieldValues>(formState: FormState<T>) => boolean;
154
- declare const getFieldsFromFieldSections: <T extends object>(sections: Pick<FieldSectionProps$1<T>, "fields">[]) => UIFields$1<T>;
155
-
156
- declare const acquisitionFormMockFields: UIFields$1<Record<string, string>>;
157
- declare const setPasswordMockFields: UIFields$1<SetPasswordFields>;
158
- declare const passwordMockFields: UIFields$1<PasswordFields>;
159
- declare const loginMockFields: UIFields$1<LoginFields$1>;
160
- declare const sectionMockFields: UIFields$1<Record<string, string>>;
161
- declare const profileInformationMockForm: {
162
- label: string;
163
- fields: UIFields$1<Record<string, string>>;
164
- }[];
165
-
166
- declare type MaskConfig = Partial<{
167
- maskPlaceholder: string;
168
- dataModelFieldType: InputFieldTypes;
169
- maskPattern: Array<string | RegExp>;
170
- }>;
121
+ declare const Container: ({ children, wide, compact, type, props, id, metadata, isMobile, }: Partial<{
122
+ type: containers.ContainerType;
123
+ containerTemplateType: "row_content_container";
124
+ wide: Partial<{
125
+ containerStyle: styled_components.CSSProperties;
126
+ containerProps: Partial<{
127
+ position: containers.ContainerPositionType;
128
+ scrollBehaviour: containers.ContainerScrollBehaviourType;
129
+ cornerRadius: number | theme.SizesTypes;
130
+ gap: theme.SizesTypes;
131
+ styles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
132
+ sliderProps: containers.SliderProps;
133
+ formProps: containers.FormContainerProps;
134
+ formStepProps: containers.FormStepContainerProps;
135
+ padding: containers.Padding;
136
+ border: string;
137
+ activeChildrenIds: string[];
138
+ activeOrganismIds: string[];
139
+ }>;
140
+ }>;
141
+ compact: Partial<{
142
+ containerStyle: styled_components.CSSProperties;
143
+ containerProps: Partial<{
144
+ position: containers.ContainerPositionType;
145
+ scrollBehaviour: containers.ContainerScrollBehaviourType;
146
+ cornerRadius: number | theme.SizesTypes;
147
+ gap: theme.SizesTypes;
148
+ styles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
149
+ sliderProps: containers.SliderProps;
150
+ formProps: containers.FormContainerProps;
151
+ formStepProps: containers.FormStepContainerProps;
152
+ padding: containers.Padding;
153
+ border: string;
154
+ activeChildrenIds: string[];
155
+ activeOrganismIds: string[];
156
+ }>;
157
+ }>;
158
+ props: Partial<{
159
+ position: containers.ContainerPositionType;
160
+ scrollBehaviour: containers.ContainerScrollBehaviourType;
161
+ cornerRadius: number | theme.SizesTypes;
162
+ gap: theme.SizesTypes;
163
+ styles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
164
+ sliderProps: containers.SliderProps;
165
+ formProps: containers.FormContainerProps;
166
+ formStepProps: containers.FormStepContainerProps;
167
+ padding: containers.Padding;
168
+ border: string;
169
+ activeChildrenIds: string[];
170
+ activeOrganismIds: string[];
171
+ }>;
172
+ metadata: containers.MetadataType;
173
+ isMobile: boolean;
174
+ }> & {
175
+ children?: ReactNode;
176
+ } & {
177
+ id: string;
178
+ }) => JSX.Element | null;
179
+ declare const ContainerComponent: ({ config, tabsProps, id, type, items, metadata, formData, setFormData, isMobile, }: ContainerComponentProps$1 & {
180
+ formData?: AnyObject$1 | undefined;
181
+ setFormData?: Dispatch<SetStateAction<AnyObject$1>> | undefined;
182
+ }) => JSX.Element | null;
171
183
 
172
- declare type InputFieldInternalConfigProps = Partial<{
173
- textColor: ThemeColors$2 | string;
174
- textFontSize: number;
175
- placeholderTextColor: ThemeColors$2 | string;
176
- placeholderTextFontSize: number;
177
- verticalPadding: number;
178
- horizontalPadding: number;
179
- styles: StylesType;
180
- wrapperStyles: StylesType;
181
- }>;
182
- declare type InputIconProps = {
183
- name: IconNames$1;
184
- onClick?: Callback$1;
184
+ declare type ActionTypes = 'link' | 'popup' | 'drawer' | 'download' | 'submit' | 'reset' | 'destroy';
185
+ declare type DataModelFieldFormatCodeTypes = 'date' | 'email' | 'string' | 'integer' | 'boolean' | 'numeric' | 'zip_code' | 'phone_number';
186
+ declare type DataModelFieldFormatValueTypes = 'any' | 'text' | 'email' | 'integer' | 'numerical' | 'us_zip_code' | 'phone_number' | 'month_year_date' | 'day_month_year_date' | 'month_day_year_date' | 'year_month_day_date';
187
+ declare type DownloadFile = {
188
+ url: string;
189
+ name: string;
185
190
  };
186
- declare type InputProps = Partial<{
187
- value: string;
188
- leftIcon: InputIconProps;
189
- rightIcon: InputIconProps;
190
- onBlur: Callback$1;
191
- type: InputFieldTypes$1;
192
- placeholder: string;
193
- disabled: boolean;
194
- isEditMode: boolean;
195
- isError: boolean;
196
- maxLength: number;
197
- onChange: (value: string) => void;
198
- onKeyDown: (event: react__default.KeyboardEvent<HTMLInputElement>) => void;
199
- internalConfig: InputFieldInternalConfigProps;
200
- config?: MaskConfig;
201
- state: FormStateType$1;
191
+ declare type LinkAction = LinkAttributes;
192
+ declare type PopupDrawerAction = ContainerComponentProps;
193
+ declare type DownloadAction = DownloadFile;
194
+ declare type SubmitAction = AnyObject$1;
195
+ declare type CancelAction = AnyObject$1;
196
+ declare type ResetAction = AnyObject$1;
197
+ declare type DestroyAction = AnyObject$1;
198
+ declare type Action = {
199
+ type: ActionTypes;
200
+ } & Partial<{
201
+ link: LinkAction;
202
+ popup: PopupDrawerAction;
203
+ drawer: PopupDrawerAction;
204
+ download: DownloadAction;
205
+ submit: SubmitAction;
206
+ cancel: CancelAction;
207
+ reset: ResetAction;
208
+ destroy: DestroyAction;
202
209
  }>;
203
- declare const Input: ({ value, leftIcon, rightIcon, onChange, onBlur, disabled, isError, placeholder, isEditMode, type, internalConfig, config, ...rest }: InputProps) => JSX.Element;
204
-
205
- declare type TextTypes = 'primary' | 'secondary' | 'error' | 'success';
206
- declare type TextAlign = 'center' | 'right' | 'left';
207
- declare type SeoTags = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';
208
- declare type TextProps = {
209
- variant: FontSizesTypes$1;
210
- layout?: 'div' | 'span';
211
- type?: TextTypes;
212
- styles?: StylesType;
213
- color?: ThemeColors$2 | string;
214
- numberOfLines?: number;
215
- textAlign?: TextAlign;
216
- behaveAs?: 'text' | 'button';
217
- seoTag?: SeoTags;
218
- htmlElementId?: string;
210
+ declare type FormStateType = 'default' | 'success' | 'error' | 'format_error' | 'field_error' | 'open_dropdown' | 'match_error';
211
+ declare type ImageAttributes = {
212
+ attributeType: 'image';
213
+ imageSource: string;
219
214
  };
220
- declare type TextWrapperProps = PropsWithChildren<TextProps>;
221
- declare const TextWrapper: ({ children, seoTag, ...textProps }: TextWrapperProps) => JSX.Element;
222
- declare const ErrorText: ({ text }: {
215
+ interface TextAttributes {
216
+ id?: string;
217
+ attributeType: 'text';
218
+ isRichText?: boolean;
223
219
  text: string;
224
- }) => JSX.Element;
225
-
226
- declare type IconProps = {
227
- name: IconNames;
228
- size?: number;
229
- color?: ThemeColors$1 | string;
230
- fill?: ThemeColors$1 | string;
231
- pointerEvents?: 'auto' | 'none';
232
- style?: CSSProperties;
220
+ }
221
+ interface VideoAttributes {
222
+ attributeType: 'video';
223
+ videoSource: string;
224
+ }
225
+ interface ActionAttributes {
226
+ attributeType: 'action';
227
+ action: Action;
228
+ }
229
+ interface LinkAttributes {
230
+ id: string;
231
+ attributeType: 'link';
232
+ type: 'internalLink' | 'externalLink';
233
+ internalLink: Nullable<string>;
234
+ externalLink: Nullable<string>;
235
+ name: string;
236
+ }
237
+ interface SelectAttributes {
238
+ id?: string;
239
+ attributeType: 'select';
240
+ value: string;
241
+ options: SelectOption$1[];
242
+ }
243
+ interface BooleanAttributes {
244
+ attributeType: 'boolean';
245
+ value: boolean;
246
+ }
247
+ interface IterableAttributes {
248
+ attributeType: 'iterable';
249
+ options: SelectOption$1[];
250
+ }
251
+ declare type DataModelFieldFormat = {
252
+ id: string;
253
+ label: string;
254
+ value: DataModelFieldFormatValueTypes;
255
+ code: DataModelFieldFormatCodeTypes;
256
+ config: MaskConfig;
233
257
  };
234
- declare const availableIcons: {
235
- ArrowRight: ({ color, ...props }: Omit<IconProps, "name">) => JSX.Element;
236
- Bell: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
237
- Bookmark: ({ fill, color, size, ...props }: Omit<IconProps, "name">) => JSX.Element;
238
- CaretDown: ({ color, size, }: Omit<IconProps, "name">) => JSX.Element;
239
- CaretLeft: ({ color, size, ...props }: Omit<IconProps, "name">) => JSX.Element;
240
- CaretRight: ({ color, size, ...props }: Omit<IconProps, "name">) => JSX.Element;
241
- CaretUp: ({ color, ...props }: Omit<IconProps, "name">) => JSX.Element;
242
- Check: ({ size, color, }: Omit<IconProps, "name">) => JSX.Element;
243
- Close: ({ size, color, }: Omit<IconProps, "name">) => JSX.Element;
244
- Edit: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
245
- Filter: ({ size, color, }: Omit<IconProps, "name">) => JSX.Element;
246
- Hide: ({ color, size }: Omit<IconProps, "name">) => JSX.Element;
247
- Info: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
248
- InfoBoxIcon: ({ color, size }: Omit<IconProps, "name">) => JSX.Element;
249
- Mail: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
250
- Menu: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
251
- Minus: ({ size, color, }: Omit<IconProps, "name">) => JSX.Element;
252
- Mobile: ({ size, color, }: Omit<IconProps, "name">) => JSX.Element;
253
- Play: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
254
- Save: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
255
- Search: ({ size, color, ...props }: Omit<IconProps, "name">) => JSX.Element;
256
- View: ({ color, size, }: Omit<IconProps, "name">) => JSX.Element;
257
- Warning: ({ size, color, }: Omit<IconProps, "name">) => JSX.Element;
258
+ declare type DataConnectionValues = {
259
+ dataFieldName: string;
260
+ dataModelFieldId: string;
261
+ defaultValue?: string;
262
+ entitySubtypeId?: string;
263
+ entitySubtypeName?: string;
264
+ format: DataModelFieldFormat;
258
265
  };
259
- declare type IconNames = keyof typeof availableIcons;
260
- declare const Icon: ({ name, color, ...props }: IconProps) => JSX.Element;
261
-
262
- declare type SpacerProps = {
266
+ interface DataConnectionAttributes {
267
+ id: string;
268
+ attributeType: 'data_model_field';
269
+ dataModelField: DataConnectionValues;
270
+ }
271
+ interface ConditionConfigAttributes {
272
+ id: string;
273
+ attributeType: 'condition_config';
274
+ conditionConfig: ConditionConfig;
275
+ }
276
+ interface ColorAttributes {
277
+ attributeType: 'color';
278
+ color: string;
279
+ }
280
+ declare type MoleculeTypes = 'image' | 'text' | 'button' | 'video' | 'header_tab_group' | 'input_field' | 'select_field' | 'radio_button_field' | 'checkbox_field' | 'consent' | 'link' | 'password_setup_field' | 'account_button';
281
+ interface BaseMolecule {
282
+ id: string;
283
+ instance: 'molecule';
284
+ type: MoleculeTypes;
285
+ metadata?: MetadataType;
286
+ }
287
+ interface ImageMolecule extends BaseMolecule {
288
+ type: 'image';
289
+ attributes: Partial<{
290
+ image: ImageAttributes;
291
+ altText: Omit<TextAttributes, 'isRichText'>;
292
+ link: LinkAttributes;
293
+ }>;
294
+ config: {
295
+ props?: Omit<ImageProps$1, 'src' | 'link' | 'altText'>;
296
+ };
297
+ }
298
+ interface TextMoleculeType extends BaseMolecule {
299
+ type: 'text';
300
+ attributes: Partial<{
301
+ text: TextAttributes;
302
+ seoStyle: SelectAttributes;
303
+ fontVariant: SelectAttributes;
304
+ color: ColorAttributes;
305
+ }>;
306
+ config: {
307
+ props?: TextMoleculeProps$1;
308
+ };
309
+ }
310
+ interface ButtonMolecule extends BaseMolecule {
311
+ type: 'button';
312
+ attributes: Partial<{
313
+ title: TextAttributes;
314
+ action: ActionAttributes;
315
+ }>;
316
+ config: {
317
+ props?: Partial<Omit<ButtonProps$1, 'disabled' | 'children' | 'link' | 'text' | 'onClick' | 'elementId'>>;
318
+ };
319
+ }
320
+ interface VideoMolecule extends BaseMolecule {
321
+ type: 'video';
322
+ attributes: Partial<{
323
+ video: VideoAttributes;
324
+ altText: Omit<TextAttributes, 'isRichText'>;
325
+ autoPlayVideo: BooleanAttributes;
326
+ enableCoverImage: BooleanAttributes;
327
+ coverImage: ImageAttributes;
328
+ }>;
329
+ config: {
330
+ props: Partial<{
331
+ width: number;
332
+ styles: StylesType;
333
+ }>;
334
+ };
335
+ }
336
+ interface TabGroupMolecule extends BaseMolecule {
337
+ type: 'header_tab_group';
338
+ config: {
339
+ props: TabGroupProps$1;
340
+ wide: AdditionalTabContainerProps$1;
341
+ compact: AdditionalTabContainerProps$1;
342
+ };
343
+ }
344
+ interface TextInputMolecule extends BaseMolecule {
345
+ type: 'input_field';
346
+ attributes: Partial<{
347
+ label: TextAttributes;
348
+ required: BooleanAttributes;
349
+ dataModelField: DataConnectionAttributes;
350
+ conditionConfig: ConditionConfigAttributes;
351
+ }>;
352
+ config: {
353
+ props: InputFieldProps$1;
354
+ };
355
+ }
356
+ interface SelectFieldMolecule extends BaseMolecule {
357
+ type: 'select_field';
358
+ attributes: Partial<{
359
+ label: TextAttributes;
360
+ required: BooleanAttributes;
361
+ options: IterableAttributes;
362
+ dataModelField: DataConnectionAttributes;
363
+ conditionConfig: ConditionConfigAttributes;
364
+ }>;
365
+ config: {
366
+ props: SelectFieldProps$1;
367
+ };
368
+ }
369
+ interface RadioButtonFieldMolecule extends BaseMolecule {
370
+ type: 'radio_button_field';
371
+ attributes: Partial<{
372
+ label: TextAttributes;
373
+ required: BooleanAttributes;
374
+ options: IterableAttributes;
375
+ dataModelField: DataConnectionAttributes;
376
+ conditionConfig: ConditionConfigAttributes;
377
+ }>;
378
+ config: {
379
+ props: RadioButtonFieldProps$1<string>;
380
+ };
381
+ }
382
+ interface CheckboxFieldMolecule extends BaseMolecule {
383
+ type: 'checkbox_field';
384
+ attributes: Partial<{
385
+ label: TextAttributes;
386
+ required: BooleanAttributes;
387
+ options: IterableAttributes;
388
+ dataModelField: DataConnectionAttributes;
389
+ conditionConfig: ConditionConfigAttributes;
390
+ }>;
391
+ config: {
392
+ props: CheckboxFieldProps$1;
393
+ };
394
+ }
395
+ interface ConsentFieldMolecule extends BaseMolecule {
396
+ type: 'consent';
397
+ attributes: Partial<{
398
+ consent: Partial<{
399
+ attributeType: 'consent';
400
+ consent: ConsentType$1;
401
+ required: BooleanAttributes;
402
+ }>;
403
+ conditionConfig: ConditionConfigAttributes;
404
+ }>;
405
+ config: {
406
+ props: Partial<{
407
+ state: 'field_error';
408
+ }>;
409
+ };
410
+ }
411
+ interface LinkMolecule extends BaseMolecule {
412
+ type: 'link';
413
+ attributes: {
414
+ text: TextAttributes;
415
+ link: LinkAttributes;
416
+ };
417
+ config: {
418
+ props: Omit<LinkProps$1, '$variant' | '$styles'> & Partial<{
419
+ variant: LinkVariant$1;
420
+ styles: StylesType;
421
+ }>;
422
+ };
423
+ }
424
+ interface PasswordSetupMolecule extends BaseMolecule {
425
+ type: 'password_setup_field';
426
+ attributes: Partial<{
427
+ passwordFieldLabel: TextAttributes;
428
+ reenteredPasswordFieldLabel: TextAttributes;
429
+ passwordFieldRequired: BooleanAttributes;
430
+ reenteredPasswordFieldRequired: BooleanAttributes;
431
+ dataModelField: DataConnectionAttributes;
432
+ }>;
433
+ config: {
434
+ props: {
435
+ validationLabel?: string;
436
+ state?: FormStateType;
437
+ passwordInputProps: InputFieldProps$1;
438
+ reenteredPasswordInputProps: InputFieldProps$1;
439
+ };
440
+ };
441
+ }
442
+ interface AccountButtonMolecule extends BaseMolecule {
443
+ type: 'account_button';
444
+ config: {
445
+ props: AvatarDropdownProps$1<AvatarDropdownMenuConfigType$1>;
446
+ };
447
+ }
448
+ declare type Molecule = StrictUnion<ImageMolecule | TextMoleculeType | ButtonMolecule | VideoMolecule | TabGroupMolecule | TextInputMolecule | SelectFieldMolecule | RadioButtonFieldMolecule | CheckboxFieldMolecule | ConsentFieldMolecule | LinkMolecule | PasswordSetupMolecule | AccountButtonMolecule> & Partial<{
449
+ form: UseFormReturn<any>;
450
+ formData: AnyObject$1;
451
+ setFormData: Dispatch<SetStateAction<AnyObject$1>>;
452
+ }>;
453
+
454
+ declare type ContainerType = 'row' | 'column' | 'slider' | 'form' | 'form_step' | 'dynamic';
455
+ declare type ContainerTemplateType = 'row_content_container';
456
+ declare type WrappedContainerType = Extract<ContainerType, 'slider' | 'form' | 'form_step'>;
457
+ declare type ContainerPositionType = 'fixed' | 'sticky' | 'static' | 'relative';
458
+ declare type ContainerScrollBehaviourType = 'vertical' | 'horizontal' | 'auto' | 'none';
459
+ declare type StateActionType = 'visible' | 'disabled';
460
+ declare type StateEventType = 'click' | 'view';
461
+ declare type StateListenerConfigType = {
462
+ role: 'stateListener';
463
+ stateKey: string;
464
+ stateValue: string | boolean;
465
+ defaultState: Partial<Record<StateActionType, boolean>>;
466
+ action: Partial<Record<StateActionType, boolean>>;
467
+ };
468
+ declare type StateModifierConfigType = {
469
+ role: 'stateModifier';
470
+ stateKey: string;
471
+ event: StateEventType;
472
+ };
473
+ declare type MetadataStateConfig = StateListenerConfigType | StateModifierConfigType;
474
+ declare type MetadataType = AnyObject$1 & {
475
+ stateConfig: MetadataStateConfig[];
476
+ notEditable?: boolean;
477
+ hasOwnButton?: boolean;
478
+ };
479
+ declare type SliderProps = {
480
+ autoplay?: boolean;
481
+ autoplayDuration?: number;
482
+ };
483
+ declare type FormStepContainerProps = {
484
+ formStepName: string;
485
+ order: number;
486
+ conditionConfig: ConditionConfig;
487
+ formStepStyles?: CSSProperties;
488
+ };
489
+ declare type FormContainerProps = {
490
+ mode: keyof ValidationMode;
491
+ };
492
+ declare type PaddingVariants = 'top' | 'right' | 'bottom' | 'left';
493
+ declare type Padding = Record<PaddingVariants, SizesTypes$1 | string> | SizesTypes$1 | string;
494
+ declare type ContainerPropsType = Partial<{
495
+ position: ContainerPositionType;
496
+ scrollBehaviour: ContainerScrollBehaviourType;
497
+ cornerRadius: SizesTypes$1 | number;
498
+ gap: SizesTypes$1;
499
+ styles: StylesType;
500
+ sliderProps: SliderProps;
501
+ formProps: FormContainerProps;
502
+ formStepProps: FormStepContainerProps;
503
+ padding: Padding;
504
+ border: string;
505
+ activeChildrenIds: string[];
506
+ activeOrganismIds: string[];
507
+ }>;
508
+ declare type AdditionalContainerProps = Partial<{
509
+ containerStyle: CSSProperties;
510
+ containerProps: ContainerPropsType;
511
+ }>;
512
+ declare type ContainerProps = PropsWithChildren<Partial<{
513
+ type: ContainerType;
514
+ containerTemplateType: ContainerTemplateType;
515
+ wide: AdditionalContainerProps;
516
+ compact: AdditionalContainerProps;
517
+ props: ContainerPropsType;
518
+ metadata: MetadataType;
519
+ isMobile: boolean;
520
+ }>>;
521
+ declare type ContainerComponentProps = {
522
+ id: string;
523
+ instance: 'container';
524
+ type: ContainerType;
525
+ items: (ContainerComponentProps | Molecule)[];
526
+ config: Partial<{
527
+ wide: AdditionalContainerProps;
528
+ compact: AdditionalContainerProps;
529
+ props: ContainerPropsType;
530
+ }>;
531
+ tabsProps?: Pick<TabGroupProps$1, 'tabs' | 'activeTabKey' | 'onTabChange'>;
532
+ metadata?: MetadataType;
533
+ attributes?: AnyObject$1;
534
+ containerLibraryId?: string;
535
+ isMobile?: boolean;
536
+ };
537
+ declare type CriteriaType = 'operator' | 'condition';
538
+ declare type ConditionCriteria = {
539
+ id: string;
540
+ type: CriteriaType;
541
+ operator: string;
542
+ dataFieldId: Nullable<string>;
543
+ dataFieldName: Nullable<string>;
544
+ dataValue: Nullable<string>;
545
+ connectedTo: Nullable<string>;
546
+ };
547
+ declare type SegmentationType = 'simple' | 'advanced';
548
+ declare type ConditionConfig = Nullable<{
549
+ id: string;
550
+ segmentationType: SegmentationType;
551
+ criteriaList: ConditionCriteria[];
552
+ }>;
553
+ declare type FormDataStateConfig = {
554
+ value?: string | number;
555
+ } & Record<string, {
556
+ value?: string | number;
557
+ }>;
558
+ declare type StateConfigType = Record<string, Nullable<boolean | string | FormDataStateConfig>>;
559
+
560
+ declare type Callback = () => void;
561
+ declare type AnyObject = Record<string, unknown>;
562
+
563
+ declare const ContainerWrapper: styled_components.StyledComponent<"div", styled_components.DefaultTheme, Pick<ContainerProps$1, "type"> & {
564
+ containerProps?: Partial<{
565
+ position: containers_types_types.ContainerPositionType;
566
+ scrollBehaviour: containers_types_types.ContainerScrollBehaviourType;
567
+ cornerRadius: number | SizesTypes$1;
568
+ gap: SizesTypes$1;
569
+ styles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
570
+ sliderProps: containers_types_types.SliderProps;
571
+ formProps: containers_types_types.FormContainerProps;
572
+ formStepProps: containers_types_types.FormStepContainerProps;
573
+ padding: containers_types_types.Padding;
574
+ border: string;
575
+ activeChildrenIds: string[];
576
+ activeOrganismIds: string[];
577
+ }> | undefined;
578
+ metadata?: AnyObject | undefined;
579
+ }, never>;
580
+
581
+ declare type OrganismItemProps = {
582
+ item: ContainerComponentProps$1 | Molecule$1;
583
+ tabsProps?: Pick<TabGroupProps$1, 'tabs' | 'activeTabKey' | 'onTabChange'>;
584
+ formData?: AnyObject$1;
585
+ setFormData?: Dispatch<SetStateAction<AnyObject$1>>;
586
+ isMobile?: boolean;
587
+ };
588
+ declare const OrganismItem: ({ item, tabsProps, formData, setFormData, isMobile, }: OrganismItemProps) => JSX.Element | null;
589
+
590
+ declare type FormOrganismItemProps = {
591
+ item: ContainerComponentProps$2;
592
+ activeChildrenIds: string[];
593
+ formData?: AnyObject$1;
594
+ setFormData?: Dispatch<SetStateAction<AnyObject$1>>;
595
+ isMobile?: boolean;
596
+ };
597
+ declare const FormOrganismItem: ({ formData, setFormData, isMobile, ...props }: FormOrganismItemProps) => JSX.Element | null;
598
+
599
+ declare const getFieldPlaceholder: (type: FieldTypes$1, title?: string) => string;
600
+
601
+ declare type InputFieldTypes = 'any' | 'text' | 'email' | 'integer' | 'password' | 'username' | 'numerical' | 'us_zip_code' | 'phone_number' | 'month_year_date' | 'day_month_year_date' | 'month_day_year_date' | 'year_month_day_date';
602
+ declare type FieldTypes = 'input' | 'select' | 'checkbox';
603
+ declare type UIField<T = string> = (UIInputField & UISelectField & UICheckboxField) & {
604
+ name: T;
605
+ type: FieldTypes;
606
+ value?: string;
607
+ label?: string;
608
+ placeholder?: string;
609
+ required?: boolean;
610
+ tooltip?: string;
611
+ rules?: ControllerProps['rules'];
612
+ order?: number;
613
+ };
614
+ declare type UIInputField = {
615
+ inputType?: InputFieldTypes;
616
+ maxLength?: number;
617
+ onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
618
+ } & InputFieldProps$1;
619
+ declare type UISelectField = {
620
+ options?: SelectOption$1[];
621
+ } & SelectFieldProps$1;
622
+ declare type UICheckboxField = {
623
+ checkboxLabel?: string;
624
+ };
625
+ declare type UIFields<T extends object> = UIField<keyof T>[];
626
+
627
+ declare const getInitialValuesFromFields: <T extends object>(fields: UIFields$1<T>) => DeepPartial<T>;
628
+ declare const isFormValid: <T extends FieldValues>(formState: FormState<T>) => boolean;
629
+ declare const getFieldsFromFieldSections: <T extends object>(sections: Pick<FieldSectionProps$1<T>, "fields">[]) => UIFields$1<T>;
630
+
631
+ declare const acquisitionFormMockFields: UIFields$1<Record<string, string>>;
632
+ declare const setPasswordMockFields: UIFields$1<SetPasswordFields>;
633
+ declare const passwordMockFields: UIFields$1<PasswordFields>;
634
+ declare const loginMockFields: UIFields$1<LoginFields$1>;
635
+ declare const sectionMockFields: UIFields$1<Record<string, string>>;
636
+ declare const profileInformationMockForm: {
637
+ label: string;
638
+ fields: UIFields$1<Record<string, string>>;
639
+ }[];
640
+
641
+ declare type MaskConfig = {
642
+ maskPlaceholder?: string;
643
+ maskPattern?: Array<string | RegExp>;
644
+ dataModelFieldType: DataModelFieldFormatCodeTypes;
645
+ };
646
+
647
+ declare type InputFieldInternalConfigProps = Partial<{
648
+ textColor: ThemeColors$2 | string;
649
+ textFontSize: number;
650
+ placeholderTextColor: ThemeColors$2 | string;
651
+ placeholderTextFontSize: number;
652
+ verticalPadding: number;
653
+ horizontalPadding: number;
654
+ styles: StylesType;
655
+ wrapperStyles: StylesType;
656
+ }>;
657
+ declare type InputIconProps = {
658
+ name: IconNames$1;
659
+ onClick?: Callback$1;
660
+ };
661
+ declare type InputProps = Partial<{
662
+ value: string;
663
+ leftIcon: InputIconProps;
664
+ rightIcon: InputIconProps;
665
+ onBlur: Callback$1;
666
+ type: InputFieldTypes$1;
667
+ placeholder: string;
668
+ disabled: boolean;
669
+ isEditMode: boolean;
670
+ isError: boolean;
671
+ maxLength: number;
672
+ onChange: (value: string) => void;
673
+ onKeyDown: (event: react__default.KeyboardEvent<HTMLInputElement>) => void;
674
+ internalConfig: InputFieldInternalConfigProps;
675
+ config?: MaskConfig;
676
+ state: FormStateType$1;
677
+ }>;
678
+ declare const Input: ({ value, leftIcon, rightIcon, onChange, onBlur, disabled, isError, placeholder, isEditMode, type, internalConfig, config, ...rest }: InputProps) => JSX.Element;
679
+
680
+ declare type TextTypes = 'primary' | 'secondary' | 'error' | 'success';
681
+ declare type TextAlign = 'center' | 'right' | 'left';
682
+ declare type SeoTags = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';
683
+ declare type TextProps = {
684
+ variant: FontSizesTypes$1;
685
+ layout?: 'div' | 'span';
686
+ type?: TextTypes;
687
+ styles?: StylesType;
688
+ color?: ThemeColors$2 | string;
689
+ numberOfLines?: number;
690
+ textAlign?: TextAlign;
691
+ behaveAs?: 'text' | 'button';
692
+ seoTag?: SeoTags;
693
+ htmlElementId?: string;
694
+ };
695
+ declare type TextWrapperProps = PropsWithChildren<TextProps>;
696
+ declare const TextWrapper: ({ children, seoTag, ...textProps }: TextWrapperProps) => JSX.Element;
697
+ declare const ErrorText: ({ text }: {
698
+ text: string;
699
+ }) => JSX.Element;
700
+
701
+ declare type IconProps = {
702
+ name: IconNames;
703
+ size?: number;
704
+ color?: ThemeColors$1 | string;
705
+ fill?: ThemeColors$1 | string;
706
+ pointerEvents?: 'auto' | 'none';
707
+ style?: CSSProperties;
708
+ };
709
+ declare const availableIcons: {
710
+ ArrowRight: ({ color, ...props }: Omit<IconProps, "name">) => JSX.Element;
711
+ Bell: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
712
+ Bookmark: ({ fill, color, size, ...props }: Omit<IconProps, "name">) => JSX.Element;
713
+ CaretDown: ({ color, size, }: Omit<IconProps, "name">) => JSX.Element;
714
+ CaretLeft: ({ color, size, ...props }: Omit<IconProps, "name">) => JSX.Element;
715
+ CaretRight: ({ color, size, ...props }: Omit<IconProps, "name">) => JSX.Element;
716
+ CaretUp: ({ color, ...props }: Omit<IconProps, "name">) => JSX.Element;
717
+ Check: ({ size, color, }: Omit<IconProps, "name">) => JSX.Element;
718
+ Close: ({ size, color, }: Omit<IconProps, "name">) => JSX.Element;
719
+ Edit: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
720
+ Filter: ({ size, color, }: Omit<IconProps, "name">) => JSX.Element;
721
+ Hide: ({ color, size }: Omit<IconProps, "name">) => JSX.Element;
722
+ Info: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
723
+ InfoBoxIcon: ({ color, size }: Omit<IconProps, "name">) => JSX.Element;
724
+ Mail: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
725
+ Menu: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
726
+ Minus: ({ size, color, }: Omit<IconProps, "name">) => JSX.Element;
727
+ Mobile: ({ size, color, }: Omit<IconProps, "name">) => JSX.Element;
728
+ Play: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
729
+ Save: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
730
+ Search: ({ size, color, ...props }: Omit<IconProps, "name">) => JSX.Element;
731
+ View: ({ color, size, }: Omit<IconProps, "name">) => JSX.Element;
732
+ Warning: ({ size, color, }: Omit<IconProps, "name">) => JSX.Element;
733
+ };
734
+ declare type IconNames = keyof typeof availableIcons;
735
+ declare const Icon: ({ name, color, ...props }: IconProps) => JSX.Element;
736
+
737
+ declare type SpacerProps = {
263
738
  width?: SizesTypes$1 | number;
264
739
  height?: SizesTypes$1 | number;
265
740
  layout?: 'div' | 'span';
@@ -1103,913 +1578,448 @@ declare type SelectFieldProps = Partial<{
1103
1578
  control: Control$1<any>;
1104
1579
  required: boolean;
1105
1580
  optional: boolean;
1106
- defaultValue: string;
1107
- styles: StylesType;
1108
- conditionConfig: ConditionConfig$1;
1109
- state: FormStateType$1;
1110
- formData: AnyObject$1;
1111
- htmlElementId: string;
1112
- }>;
1113
- declare const SelectField: ({ selectProps, name, defaultValue, optional, required, control, styles, labelsProps, rules, conditionConfig, formData, state, htmlElementId, }: SelectFieldProps) => JSX.Element | null;
1114
-
1115
- declare type CustomValidationRule<T = string> = {
1116
- text: string;
1117
- validate: (value?: T) => boolean;
1118
- };
1119
- declare type CustomValidationProps<T = string> = {
1120
- label?: string;
1121
- value: T;
1122
- isSubmitted?: boolean;
1123
- rules: CustomValidationRule<T>[];
1124
- spacer?: number;
1125
- validationState?: FormStateType$1;
1126
- };
1127
- declare const CustomValidation: <T extends string = string>({ rules, value, isSubmitted, label, spacer, validationState, }: CustomValidationProps<T>) => JSX.Element;
1128
-
1129
- declare type BaseSelectableProps<T> = {
1130
- iconName: IconNames$2;
1131
- infoText: string;
1132
- isActive?: boolean;
1133
- onClick?: (value: T) => void;
1134
- value: T;
1135
- };
1136
-
1137
- declare type SelectableCardGroupProps<T> = {
1138
- cards: BaseSelectableProps<T>[];
1139
- handleChange?: (value: T | undefined) => void;
1140
- spacing?: SizesTypes$1;
1141
- initialValue?: T;
1142
- };
1143
- declare const SelectableCardGroup: <T extends string>({ cards, handleChange, spacing, initialValue, }: SelectableCardGroupProps<T>) => JSX.Element;
1144
-
1145
- declare type HeroImageAlignment = 'left_aligned' | 'center_aligned';
1146
- declare type HeroImageTemplate = 'card' | 'full_width';
1147
- declare type HeroImageProps = {
1148
- type: 'hero_image';
1149
- backgroundImage: RegularImageProps$1;
1150
- mainHeading: string;
1151
- subHeading?: string;
1152
- button?: ButtonProps$1;
1153
- contentAlignment?: HeroImageAlignment;
1154
- horizontalPaddings?: number;
1155
- template?: HeroImageTemplate;
1156
- isMobile?: boolean;
1157
- height?: number;
1158
- };
1159
- declare const HeroImage: ({ backgroundImage, button, contentAlignment, mainHeading, horizontalPaddings, subHeading, template, isMobile, height, }: HeroImageProps) => JSX.Element;
1160
-
1161
- declare type Anchor = 'top' | 'left' | 'bottom' | 'right';
1162
- declare type DrawerProps = DrawerProps$1 & {
1163
- anchor: Anchor;
1164
- padding?: SizesTypes$2 | number;
1165
- height?: number | string;
1166
- width?: number | string;
1167
- closeIconColor?: ThemeColors$2 | string;
1168
- };
1169
-
1170
- declare const Drawer: ({ children, closeIconColor, ...props }: PropsWithChildren<DrawerProps>) => JSX.Element;
1171
-
1172
- declare type ColumnsTemplateKeys = 'horizontal' | 'card' | 'with_image';
1173
-
1174
- declare type ColumnsProps = {
1175
- type: 'columns';
1176
- columns: ColumnItem[];
1177
- containerStyles?: CSSProperties$1;
1178
- template?: ColumnsTemplateKeys;
1179
- };
1180
- declare type ColumnItem = {
1181
- title?: string;
1182
- mainContent?: string;
1183
- button?: TextButtonProps$1;
1184
- icon: string;
1185
- };
1186
- declare const Columns: ({ columns, containerStyles, template }: ColumnsProps) => JSX.Element;
1187
-
1188
- declare type MenuItem<T> = {
1189
- id: T;
1190
- title: string;
1191
- onClick?: (id: T) => void;
1192
- };
1193
- declare type MenuItemsProps<T> = {
1194
- title?: string;
1195
- onItemPress?: (id: T) => void;
1196
- options?: MenuItem<T>[];
1197
- };
1198
- declare const MenuItems: <T extends string | number>({ title, onItemPress, options, }: MenuItemsProps<T>) => JSX.Element;
1199
-
1200
- declare type AvatarDropdownMenuConfigType = 'log-out' | 'account-information';
1201
- declare type AvatarDropdownProps<T = string> = {
1202
- avatarProps: AvatarProps$1;
1203
- menuConfig: MenuItemsProps<T>;
1204
- };
1205
- declare const AvatarDropdown: <T extends string | number>({ avatarProps, menuConfig, }: AvatarDropdownProps<T>) => JSX.Element;
1206
-
1207
- declare type TabType<T = string, K = string> = Pick<TabProps$1<T, K>, 'text' | 'tabKey' | 'disabled' | 'options' | 'divider'>;
1208
- declare type AdditionalTabContainerProps = {
1209
- containerStyle?: StylesType;
1210
- containerProps?: Record<string, unknown>;
1211
- };
1212
- declare type TabGroupProps<T = string, K = string> = {
1213
- tabs: TabType<T, K>[];
1214
- activeTabKey: T;
1215
- onTabChange?: (tabKey: T) => void;
1216
- onOptionClick?: (optionKey: K) => void;
1217
- styles?: StylesType;
1218
- vertical?: boolean;
1219
- tabTheme?: TabTheme$1;
1220
- tabFont?: FontSizesTypes$1;
1221
- textSize?: number;
1222
- tabPadding?: SizesTypes$2 | number;
1223
- tabSpacing?: SizesTypes$2;
1224
- defaultTabTextColor?: ThemeColors$2 | string;
1225
- selectedTabTextColor?: ThemeColors$2 | string;
1226
- selectedTabIndicatorColor?: ThemeColors$2 | string;
1227
- wide?: AdditionalTabContainerProps;
1228
- compact?: AdditionalTabContainerProps;
1229
- isMobile?: boolean;
1230
- htmlElementId?: string;
1231
- };
1232
- declare const TabGroup: <T extends string, K extends string>({ tabs, vertical, activeTabKey, onTabChange, tabTheme, wide, compact, tabSpacing, isMobile, htmlElementId, ...props }: TabGroupProps<T, K>) => JSX.Element;
1233
-
1234
- declare type FieldSectionProps<T extends object> = {
1235
- label: string;
1236
- control?: Control$1<T>;
1237
- isEditMode?: boolean;
1238
- fields: UIFields<T>;
1239
- };
1240
- declare const FieldSection: <T extends object>({ fields, label, isEditMode, control, }: FieldSectionProps<T>) => JSX.Element;
1241
-
1242
- declare type MenuNavigationProps<T> = {
1243
- menuConfig: MenuItemsProps<T>;
1244
- };
1245
- declare const MenuNavigation: <T extends string | number>({ menuConfig, }: MenuNavigationProps<T>) => JSX.Element;
1246
- declare const CaretIconWrapper: styled_components.StyledComponent<"div", styled_components.DefaultTheme, {
1247
- isOpen: boolean;
1248
- }, never>;
1249
-
1250
- declare type EmphasizedTextProps = {
1251
- type: 'emphasized_text';
1252
- invertColors: boolean;
1253
- textContent: string;
1254
- };
1255
- declare const EmphasizedText: ({ textContent, invertColors }: EmphasizedTextProps) => JSX.Element;
1256
-
1257
- declare type RadioButtonFieldProps<T extends string> = Partial<{
1258
- name: string;
1259
- rules: ControllerProps$1['rules'];
1260
- styles: StylesType;
1261
- control: Control$1<any>;
1262
- optional: boolean;
1263
- required: boolean;
1264
- labelsProps: FieldLabelsProps;
1265
- defaultValue: string;
1266
- radioButtonsProps: RadioButtonsProps$1<T>;
1267
- internalConfig: RadioButtonInternalConfigProps$1;
1268
- conditionConfig: ConditionConfig$1;
1269
- state: FormStateType$1;
1270
- formData: AnyObject$1;
1271
- htmlElementId: string;
1272
- }>;
1273
- declare const RadioButtonField: <T extends string>({ name, rules, styles, control, optional, required, labelsProps, defaultValue, radioButtonsProps, conditionConfig, formData, htmlElementId, state, }: Partial<{
1274
- name: string;
1275
- rules: ControllerProps$1['rules'];
1276
- styles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
1277
- control: Control$1<any>;
1278
- optional: boolean;
1279
- required: boolean;
1280
- labelsProps: FieldLabelsProps;
1281
- defaultValue: string;
1282
- radioButtonsProps: Partial<{
1283
- ref: react_hook_form.RefCallBack;
1284
- name: string;
1285
- value: T;
1286
- options: atoms.SelectOption[];
1287
- onBlur: typescript.Callback;
1288
- onChange: (value: T) => void;
1289
- isRow: boolean;
1290
- isError: boolean;
1291
- disabled: boolean;
1292
- isEditMode: boolean;
1293
- isRichText: boolean;
1294
- internalConfig: Partial<{
1295
- selectedRadioOptionBackgroundColor: string;
1296
- selectedRadioOptionIndicatorColor: string;
1297
- buttonPadding: number;
1298
- textPadding: number;
1299
- styles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
1300
- wrapperStyles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
1301
- buttonOptionSpacing: SizesTypes;
1302
- radioGroupWrapperStyles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
1303
- }>;
1304
- }>;
1305
- internalConfig: Partial<{
1306
- selectedRadioOptionBackgroundColor: string;
1307
- selectedRadioOptionIndicatorColor: string;
1308
- buttonPadding: number;
1309
- textPadding: number;
1310
- styles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
1311
- wrapperStyles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
1312
- buttonOptionSpacing: SizesTypes;
1313
- radioGroupWrapperStyles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
1314
- }>;
1315
- conditionConfig: ConditionConfig$1;
1316
- state: FormStateType$1;
1317
- formData: AnyObject$1;
1318
- htmlElementId: string;
1319
- }>) => JSX.Element | null;
1320
-
1321
- declare type AlertProps = {
1322
- style?: CSSProperties;
1323
- title: string;
1324
- description: string;
1325
- color?: string;
1326
- isMobile?: boolean;
1327
- logo?: string;
1328
- fullWidth?: boolean;
1329
- withCloseIcon?: {
1330
- onClose: Callback$1;
1331
- };
1332
- fontColor?: ThemeColors$1;
1333
- destinationLink?: string;
1334
- onDestinationHandler?: Callback$1;
1335
- containerStyles?: CSSProperties;
1581
+ defaultValue: string;
1582
+ styles: StylesType;
1583
+ conditionConfig: ConditionConfig$1;
1584
+ state: FormStateType$1;
1585
+ formData: AnyObject$1;
1586
+ htmlElementId: string;
1587
+ }>;
1588
+ declare const SelectField: ({ selectProps, name, defaultValue, optional, required, control, styles, labelsProps, rules, conditionConfig, formData, state, htmlElementId, }: SelectFieldProps) => JSX.Element | null;
1589
+
1590
+ declare type CustomValidationRule<T = string> = {
1591
+ text: string;
1592
+ validate: (value?: T) => boolean;
1336
1593
  };
1337
- declare const Alert: ({ logo, title, withCloseIcon, description, style, fontColor, containerStyles, isMobile, ...props }: AlertProps) => JSX.Element;
1594
+ declare type CustomValidationProps<T = string> = {
1595
+ label?: string;
1596
+ value: T;
1597
+ isSubmitted?: boolean;
1598
+ rules: CustomValidationRule<T>[];
1599
+ spacer?: number;
1600
+ validationState?: FormStateType$1;
1601
+ };
1602
+ declare const CustomValidation: <T extends string = string>({ rules, value, isSubmitted, label, spacer, validationState, }: CustomValidationProps<T>) => JSX.Element;
1338
1603
 
1339
- declare type OrientationType = 'horizontal' | 'vertical';
1340
- declare type StepperProps = {
1341
- steps: {
1342
- title: string;
1343
- description?: string;
1344
- status?: ProcessTrackerStatus$1;
1345
- }[];
1346
- currentStep: number;
1347
- orientation?: OrientationType;
1604
+ declare type BaseSelectableProps<T> = {
1605
+ iconName: IconNames$2;
1606
+ infoText: string;
1607
+ isActive?: boolean;
1608
+ onClick?: (value: T) => void;
1609
+ value: T;
1348
1610
  };
1349
- declare const Stepper: ({ steps, orientation, currentStep }: StepperProps) => JSX.Element;
1350
1611
 
1351
- declare type PdfDocumentProps = {
1352
- source: string;
1353
- isMobile?: boolean;
1354
- customDocumentStyles?: Partial<{
1355
- wrapperBackgroundColor: ThemeColors$1 | string;
1356
- pageNumberColor: ThemeColors$1 | string;
1357
- pageWidth: number;
1358
- pageHeight: number;
1359
- paginationArrowColor: ThemeColors$1 | string;
1360
- disabledPaginationArrowColor: ThemeColors$1 | string;
1361
- }>;
1612
+ declare type SelectableCardGroupProps<T> = {
1613
+ cards: BaseSelectableProps<T>[];
1614
+ handleChange?: (value: T | undefined) => void;
1615
+ spacing?: SizesTypes$1;
1616
+ initialValue?: T;
1362
1617
  };
1363
- declare const PdfDocument: ({ source, isMobile, customDocumentStyles, }: PdfDocumentProps) => JSX.Element;
1618
+ declare const SelectableCardGroup: <T extends string>({ cards, handleChange, spacing, initialValue, }: SelectableCardGroupProps<T>) => JSX.Element;
1364
1619
 
1365
- declare type FeedTemplateKeys = `feed_${'a' | 'b'}`;
1366
- declare type FeedContentHeaderProps = {
1367
- title: string;
1368
- enableFavoriting?: boolean;
1369
- templateType: FeedTemplateKeys;
1620
+ declare type HeroImageAlignment = 'left_aligned' | 'center_aligned';
1621
+ declare type HeroImageTemplate = 'card' | 'full_width';
1622
+ declare type HeroImageProps = {
1623
+ type: 'hero_image';
1624
+ backgroundImage: RegularImageProps$1;
1625
+ mainHeading: string;
1626
+ subHeading?: string;
1627
+ button?: ButtonProps$1;
1628
+ contentAlignment?: HeroImageAlignment;
1629
+ horizontalPaddings?: number;
1630
+ template?: HeroImageTemplate;
1370
1631
  isMobile?: boolean;
1371
- menuConfig: MenuItemsProps$1<FilteredFeedContentType$1>;
1372
- } & Partial<Omit<InputFieldProps$1, 'labelsProps' | 'required' | 'optional'>>;
1373
- declare const FeedContentHeader: ({ templateType, title, name, inputProps, isMobile, menuConfig, ...rest }: FeedContentHeaderProps) => JSX.Element;
1374
-
1375
- declare type ToggleFieldProps = {
1376
- name: string;
1377
- title: string;
1378
- control?: Control$1<any>;
1379
- description?: string;
1380
- horizontalButtonsProps: HorizontalButtonsProps$1;
1381
- defaultValue?: string;
1632
+ height?: number;
1382
1633
  };
1383
- declare const HorizontalButtonsField: ({ name, title, control, description, horizontalButtonsProps, }: ToggleFieldProps) => JSX.Element;
1634
+ declare const HeroImage: ({ backgroundImage, button, contentAlignment, mainHeading, horizontalPaddings, subHeading, template, isMobile, height, }: HeroImageProps) => JSX.Element;
1384
1635
 
1385
- declare type BottomNaVBarItemProps = {
1386
- name: string;
1387
- icon: ComponentType<Omit<IconProps$1, 'name'>>;
1388
- active: boolean;
1389
- activeColor: string;
1390
- onNavigate: Callback;
1636
+ declare type Anchor = 'top' | 'left' | 'bottom' | 'right';
1637
+ declare type DrawerProps = DrawerProps$1 & {
1638
+ anchor: Anchor;
1639
+ padding?: SizesTypes$2 | number;
1640
+ height?: number | string;
1641
+ width?: number | string;
1642
+ closeIconColor?: ThemeColors$2 | string;
1391
1643
  };
1392
- declare const BottomNavBarItem: ({ name, icon, active, activeColor, onNavigate, }: BottomNaVBarItemProps) => JSX.Element;
1393
1644
 
1394
- declare type VideoProps = {
1395
- src: string;
1396
- } & Partial<{
1397
- width: number;
1398
- height: number;
1399
- autoplay: boolean;
1400
- enableCoverImage: boolean;
1401
- coverImageSrc: string;
1402
- style: CSSProperties;
1403
- styles: StylesType;
1404
- template: FeedContentTemplateTypes$1;
1405
- htmlElementId: string;
1406
- }>;
1407
- declare const Video: ({ style, src, width, height, template, autoplay, enableCoverImage, coverImageSrc, styles, htmlElementId, }: VideoProps) => JSX.Element | null;
1645
+ declare const Drawer: ({ children, closeIconColor, ...props }: PropsWithChildren<DrawerProps>) => JSX.Element;
1408
1646
 
1409
- declare type ImageProps = {
1410
- src: string;
1411
- } & Partial<{
1412
- id: string;
1413
- altText: string;
1414
- link: string;
1415
- onClick: Callback$1;
1416
- width: number;
1417
- height: number;
1418
- cornerRadius: number;
1419
- behaveAs: 'background' | 'regular';
1420
- styles: StylesType;
1421
- stateConfig: MetadataStateConfig$1[];
1422
- htmlElementId: string;
1423
- }>;
1424
- declare const Image: ({ src, onClick, link, altText, styles, width, height, id, behaveAs, cornerRadius, stateConfig, htmlElementId, }: ImageProps) => JSX.Element | null;
1647
+ declare type ColumnsTemplateKeys = 'horizontal' | 'card' | 'with_image';
1425
1648
 
1426
- declare type CarouselProps = {
1427
- children: JSX.Element[];
1428
- autoplay?: boolean;
1429
- autoplayDuration?: number;
1649
+ declare type ColumnsProps = {
1650
+ type: 'columns';
1651
+ columns: ColumnItem[];
1652
+ containerStyles?: CSSProperties$1;
1653
+ template?: ColumnsTemplateKeys;
1430
1654
  };
1431
- declare const Carousel: ({ children, autoplay, autoplayDuration, }: PropsWithChildren<CarouselProps>) => JSX.Element;
1432
- declare const Wrapper: styled_components.StyledComponent<"section", styled_components.DefaultTheme, {}, never>;
1433
- declare const SlidesWrapper: styled_components.StyledComponent<"ul", styled_components.DefaultTheme, {
1434
- translateX: number;
1435
- }, never>;
1436
- declare const Slide: styled_components.StyledComponent<"li", styled_components.DefaultTheme, {}, never>;
1437
- declare const ButtonsWrapper: styled_components.StyledComponent<"div", styled_components.DefaultTheme, {}, never>;
1438
- declare const ArrowIconWrapper: styled_components.StyledComponent<"div", styled_components.DefaultTheme, {
1439
- arrowSide: 'left' | 'right';
1440
- }, never>;
1441
- declare const NavigationDotsWrapper: styled_components.StyledComponent<"div", styled_components.DefaultTheme, {}, never>;
1655
+ declare type ColumnItem = {
1656
+ title?: string;
1657
+ mainContent?: string;
1658
+ button?: TextButtonProps$1;
1659
+ icon: string;
1660
+ };
1661
+ declare const Columns: ({ columns, containerStyles, template }: ColumnsProps) => JSX.Element;
1442
1662
 
1443
- declare type TextMoleculeProps = Partial<{
1444
- text: string;
1445
- variant: 'base' | 'custom';
1446
- fontVariant: FontSizesTypes$2;
1447
- textSize: number;
1448
- textColor: ThemeColors$1 | string;
1449
- letterSpacing: number;
1450
- lineHeight: number;
1451
- fontWeight: string | number;
1452
- isRichText: boolean;
1453
- styles: StylesType;
1454
- textAlign: 'center' | 'right' | 'left';
1455
- htmlElementId: string;
1456
- }> & Pick<TextProps$1, 'seoTag' | 'numberOfLines'>;
1457
- declare const TextMolecule: ({ isRichText, variant, text, seoTag, fontVariant, textColor, textSize, fontWeight, lineHeight, letterSpacing, styles, textAlign, htmlElementId, ...restOfTextProps }: TextMoleculeProps) => JSX.Element;
1663
+ declare type MenuItem<T> = {
1664
+ id: T;
1665
+ title: string;
1666
+ onClick?: (id: T) => void;
1667
+ };
1668
+ declare type MenuItemsProps<T> = {
1669
+ title?: string;
1670
+ onItemPress?: (id: T) => void;
1671
+ options?: MenuItem<T>[];
1672
+ };
1673
+ declare const MenuItems: <T extends string | number>({ title, onItemPress, options, }: MenuItemsProps<T>) => JSX.Element;
1458
1674
 
1459
- declare type ButtonVariant = 'primary' | 'secondary' | 'text' | 'custom';
1460
- declare type ButtonType = 'button' | 'submit' | 'reset';
1461
- declare type BaseButtonProps = PropsWithChildren<Partial<{
1462
- onClick: Callback$1;
1463
- variant: ButtonVariant;
1464
- disabled: boolean;
1465
- state: 'disabled' | 'enabled';
1466
- fullWidth: boolean;
1467
- size: 'medium' | 'small';
1468
- buttonFont: FontSizesTypes$2;
1469
- textColor: ThemeColors$1 | string;
1470
- textSize: number;
1471
- horizontalPadding: SizesTypes$1;
1472
- verticalPadding: SizesTypes$1;
1473
- buttonColor: ThemeColors$1 | string;
1474
- buttonStroke: ThemeColors$1 | string;
1475
- cornerRadius: SizesTypes$1 | number;
1476
- hoverButtonColor: ThemeColors$1 | string;
1477
- hoverStrokeColor: ThemeColors$1 | string;
1478
- inactiveButtonColor: ThemeColors$1 | string;
1479
- inactiveStrokeColor: ThemeColors$1 | string;
1480
- inactiveTextColor: ThemeColors$1 | string;
1481
- styles: StylesType;
1482
- colorTheme: 'light' | 'dark';
1483
- href: string;
1484
- type: ButtonType;
1485
- }>>;
1486
- declare type ButtonProps = BaseButtonProps & {
1487
- fullWidth?: boolean;
1488
- text?: string;
1489
- link?: string;
1490
- elementId?: string;
1491
- loading?: boolean;
1492
- isRichText?: boolean;
1675
+ declare type AvatarDropdownMenuConfigType = 'log-out' | 'account-information';
1676
+ declare type AvatarDropdownProps<T = string> = {
1677
+ avatarProps: AvatarProps$1;
1678
+ menuConfig: MenuItemsProps<T>;
1679
+ };
1680
+ declare const AvatarDropdown: <T extends string | number>({ avatarProps, menuConfig, }: AvatarDropdownProps<T>) => JSX.Element;
1681
+
1682
+ declare type TabType<T = string, K = string> = Pick<TabProps$1<T, K>, 'text' | 'tabKey' | 'disabled' | 'options' | 'divider'>;
1683
+ declare type AdditionalTabContainerProps = {
1493
1684
  containerStyle?: StylesType;
1494
- buttonStyle?: StylesType;
1495
- stateConfig?: MetadataStateConfig$1[];
1685
+ containerProps?: Record<string, unknown>;
1686
+ };
1687
+ declare type TabGroupProps<T = string, K = string> = {
1688
+ tabs: TabType<T, K>[];
1689
+ activeTabKey: T;
1690
+ onTabChange?: (tabKey: T) => void;
1691
+ onOptionClick?: (optionKey: K) => void;
1692
+ styles?: StylesType;
1693
+ vertical?: boolean;
1694
+ tabTheme?: TabTheme$1;
1695
+ tabFont?: FontSizesTypes$1;
1696
+ textSize?: number;
1697
+ tabPadding?: SizesTypes$2 | number;
1698
+ tabSpacing?: SizesTypes$2;
1699
+ defaultTabTextColor?: ThemeColors$2 | string;
1700
+ selectedTabTextColor?: ThemeColors$2 | string;
1701
+ selectedTabIndicatorColor?: ThemeColors$2 | string;
1702
+ wide?: AdditionalTabContainerProps;
1703
+ compact?: AdditionalTabContainerProps;
1704
+ isMobile?: boolean;
1496
1705
  htmlElementId?: string;
1497
1706
  };
1498
- declare const Button: ({ text, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children, buttonStyle, size, textColor, inactiveTextColor, state, href, stateConfig, htmlElementId, ...props }: ButtonProps) => JSX.Element | null;
1707
+ declare const TabGroup: <T extends string, K extends string>({ tabs, vertical, activeTabKey, onTabChange, tabTheme, wide, compact, tabSpacing, isMobile, htmlElementId, ...props }: TabGroupProps<T, K>) => JSX.Element;
1708
+
1709
+ declare type FieldSectionProps<T extends object> = {
1710
+ label: string;
1711
+ control?: Control$1<T>;
1712
+ isEditMode?: boolean;
1713
+ fields: UIFields<T>;
1714
+ };
1715
+ declare const FieldSection: <T extends object>({ fields, label, isEditMode, control, }: FieldSectionProps<T>) => JSX.Element;
1499
1716
 
1500
- declare type ZealUIModalProps = PropsWithChildren<Pick<ModalProps, 'open'>> & {
1501
- padding?: number | string;
1502
- wrapperStyles?: CSSProperties;
1503
- onKeyDown?: <T extends HTMLElement>(event: KeyboardEvent<T>) => void;
1504
- modalStyles?: CSSProperties;
1505
- onClose?: Callback$1;
1717
+ declare type MenuNavigationProps<T> = {
1718
+ menuConfig: MenuItemsProps<T>;
1506
1719
  };
1507
- declare const ZealUIModal: ({ children, wrapperStyles, padding, onKeyDown, modalStyles, ...rest }: ZealUIModalProps) => JSX.Element;
1508
- declare const ModalWrapper: styled_components.StyledComponent<"div", styled_components.DefaultTheme, OverrideStyles, never>;
1509
- declare const IconWrapper: styled_components.StyledComponent<"div", styled_components.DefaultTheme, {
1510
- activeOpacity?: number | undefined;
1511
- withoutOpacityEffect?: boolean | undefined;
1512
- disabled?: boolean | undefined;
1513
- } & {
1514
- children?: react__default.ReactNode;
1720
+ declare const MenuNavigation: <T extends string | number>({ menuConfig, }: MenuNavigationProps<T>) => JSX.Element;
1721
+ declare const CaretIconWrapper: styled_components.StyledComponent<"div", styled_components.DefaultTheme, {
1722
+ isOpen: boolean;
1515
1723
  }, never>;
1516
1724
 
1517
- declare type ConsentCaptureMethod = 'button' | 'radioButton' | 'checkbox';
1518
- declare type DefaultSelectionType = 'confirmation' | 'rejection';
1519
- declare type ConsentType = {
1520
- id: string;
1521
- name: string;
1522
- acknowledgment: CustomDescendant[];
1523
- methodOfCapture: ConsentCaptureMethod;
1524
- description: string;
1525
- language: CustomDescendant[];
1526
- expiration: string;
1527
- confirmationButtonText: string;
1528
- rejectionButtonText: string;
1529
- defaultSelection: DefaultSelectionType;
1530
- value?: DefaultSelectionType | boolean;
1531
- isRequired?: boolean;
1532
- };
1533
- declare type ConsentProps<T extends string = string> = {
1534
- text: string;
1535
- isRequired?: boolean;
1536
- consentCaptureProps: ConsentCaptureProps<T>;
1537
- containerStyles?: CSSProperties;
1538
- clearStyles?: boolean;
1725
+ declare type EmphasizedTextProps = {
1726
+ type: 'emphasized_text';
1727
+ invertColors: boolean;
1728
+ textContent: string;
1539
1729
  };
1540
- declare const Consent: <T extends string>({ text, consentCaptureProps, containerStyles, clearStyles, }: ConsentProps<T>) => JSX.Element;
1541
-
1542
- declare type LinkProps = Omit<TextButtonProps$1, 'children'> & Partial<{
1543
- text: string;
1544
- isRichText: boolean;
1545
- href: string;
1546
- htmlElementId: string;
1547
- }>;
1548
- declare const Link: ({ text, isRichText, htmlElementId, ...props }: LinkProps) => JSX.Element | null;
1549
-
1550
- declare const Container: ({ children, wide, compact, type, props, id, metadata, isMobile, }: Partial<{
1551
- type: containers.ContainerType;
1552
- containerTemplateType: "row_content_container";
1553
- wide: Partial<{
1554
- containerStyle: styled_components.CSSProperties;
1555
- containerProps: Partial<{
1556
- position: containers.ContainerPositionType;
1557
- scrollBehaviour: containers.ContainerScrollBehaviourType;
1558
- cornerRadius: number | theme.SizesTypes;
1559
- gap: theme.SizesTypes;
1560
- styles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
1561
- sliderProps: containers.SliderProps;
1562
- formProps: containers.FormContainerProps;
1563
- formStepProps: containers.FormStepContainerProps;
1564
- padding: containers.Padding;
1565
- border: string;
1566
- activeChildrenIds: string[];
1567
- activeOrganismIds: string[];
1568
- }>;
1569
- }>;
1570
- compact: Partial<{
1571
- containerStyle: styled_components.CSSProperties;
1572
- containerProps: Partial<{
1573
- position: containers.ContainerPositionType;
1574
- scrollBehaviour: containers.ContainerScrollBehaviourType;
1575
- cornerRadius: number | theme.SizesTypes;
1576
- gap: theme.SizesTypes;
1577
- styles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
1578
- sliderProps: containers.SliderProps;
1579
- formProps: containers.FormContainerProps;
1580
- formStepProps: containers.FormStepContainerProps;
1581
- padding: containers.Padding;
1582
- border: string;
1583
- activeChildrenIds: string[];
1584
- activeOrganismIds: string[];
1585
- }>;
1586
- }>;
1587
- props: Partial<{
1588
- position: containers.ContainerPositionType;
1589
- scrollBehaviour: containers.ContainerScrollBehaviourType;
1590
- cornerRadius: number | theme.SizesTypes;
1591
- gap: theme.SizesTypes;
1592
- styles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
1593
- sliderProps: containers.SliderProps;
1594
- formProps: containers.FormContainerProps;
1595
- formStepProps: containers.FormStepContainerProps;
1596
- padding: containers.Padding;
1597
- border: string;
1598
- activeChildrenIds: string[];
1599
- activeOrganismIds: string[];
1600
- }>;
1601
- metadata: containers.MetadataType;
1602
- isMobile: boolean;
1603
- }> & {
1604
- children?: ReactNode;
1605
- } & {
1606
- id: string;
1607
- }) => JSX.Element | null;
1608
- declare const ContainerComponent: ({ config, tabsProps, id, type, items, metadata, formData, setFormData, isMobile, }: ContainerComponentProps$1 & {
1609
- formData?: AnyObject$1 | undefined;
1610
- setFormData?: Dispatch<SetStateAction<AnyObject$1>> | undefined;
1611
- }) => JSX.Element | null;
1730
+ declare const EmphasizedText: ({ textContent, invertColors }: EmphasizedTextProps) => JSX.Element;
1612
1731
 
1613
- declare type ActionTypes = 'link' | 'popup' | 'drawer' | 'download' | 'submit' | 'reset' | 'destroy';
1614
- declare type DownloadFile = {
1615
- url: string;
1616
- name: string;
1617
- };
1618
- declare type LinkAction = LinkAttributes;
1619
- declare type PopupDrawerAction = ContainerComponentProps;
1620
- declare type DownloadAction = DownloadFile;
1621
- declare type SubmitAction = AnyObject$1;
1622
- declare type CancelAction = AnyObject$1;
1623
- declare type ResetAction = AnyObject$1;
1624
- declare type DestroyAction = AnyObject$1;
1625
- declare type Action = {
1626
- type: ActionTypes;
1627
- } & Partial<{
1628
- link: LinkAction;
1629
- popup: PopupDrawerAction;
1630
- drawer: PopupDrawerAction;
1631
- download: DownloadAction;
1632
- submit: SubmitAction;
1633
- cancel: CancelAction;
1634
- reset: ResetAction;
1635
- destroy: DestroyAction;
1636
- }>;
1637
- declare type FormStateType = 'default' | 'success' | 'error' | 'format_error' | 'field_error' | 'open_dropdown' | 'match_error';
1638
- declare type ImageAttributes = {
1639
- attributeType: 'image';
1640
- imageSource: string;
1641
- };
1642
- interface TextAttributes {
1643
- id?: string;
1644
- attributeType: 'text';
1645
- isRichText?: boolean;
1646
- text: string;
1647
- }
1648
- interface VideoAttributes {
1649
- attributeType: 'video';
1650
- videoSource: string;
1651
- }
1652
- interface ActionAttributes {
1653
- attributeType: 'action';
1654
- action: Action;
1655
- }
1656
- interface LinkAttributes {
1657
- id: string;
1658
- attributeType: 'link';
1659
- type: 'internalLink' | 'externalLink';
1660
- internalLink: Nullable<string>;
1661
- externalLink: Nullable<string>;
1732
+ declare type RadioButtonFieldProps<T extends string> = Partial<{
1662
1733
  name: string;
1663
- }
1664
- interface SelectAttributes {
1665
- id?: string;
1666
- attributeType: 'select';
1667
- value: string;
1668
- options: SelectOption$1[];
1669
- }
1670
- interface BooleanAttributes {
1671
- attributeType: 'boolean';
1672
- value: boolean;
1673
- }
1674
- interface IterableAttributes {
1675
- attributeType: 'iterable';
1676
- options: SelectOption$1[];
1677
- }
1678
- interface DataConnectionAttributes {
1679
- id: string;
1680
- attributeType: 'data_model_field';
1681
- dataModelField: {
1682
- dataFieldName: string;
1683
- dataModelFieldId: string;
1684
- defaultValue?: string;
1685
- entitySubtypeId?: string;
1686
- entitySubtypeName?: string;
1687
- };
1688
- }
1689
- interface ConditionConfigAttributes {
1690
- id: string;
1691
- attributeType: 'condition_config';
1692
- conditionConfig: ConditionConfig;
1693
- }
1694
- interface ColorAttributes {
1695
- attributeType: 'color';
1696
- color: string;
1697
- }
1698
- declare type MoleculeTypes = 'image' | 'text' | 'button' | 'video' | 'header_tab_group' | 'input_field' | 'select_field' | 'radio_button_field' | 'checkbox_field' | 'consent' | 'link' | 'password_setup_field' | 'account_button';
1699
- interface BaseMolecule {
1700
- id: string;
1701
- instance: 'molecule';
1702
- type: MoleculeTypes;
1703
- metadata?: MetadataType;
1704
- }
1705
- interface ImageMolecule extends BaseMolecule {
1706
- type: 'image';
1707
- attributes: Partial<{
1708
- image: ImageAttributes;
1709
- altText: Omit<TextAttributes, 'isRichText'>;
1710
- link: LinkAttributes;
1711
- }>;
1712
- config: {
1713
- props?: Omit<ImageProps$1, 'src' | 'link' | 'altText'>;
1714
- };
1715
- }
1716
- interface TextMoleculeType extends BaseMolecule {
1717
- type: 'text';
1718
- attributes: Partial<{
1719
- text: TextAttributes;
1720
- seoStyle: SelectAttributes;
1721
- fontVariant: SelectAttributes;
1722
- color: ColorAttributes;
1723
- }>;
1724
- config: {
1725
- props?: TextMoleculeProps$1;
1726
- };
1727
- }
1728
- interface ButtonMolecule extends BaseMolecule {
1729
- type: 'button';
1730
- attributes: Partial<{
1731
- title: TextAttributes;
1732
- action: ActionAttributes;
1733
- }>;
1734
- config: {
1735
- props?: Partial<Omit<ButtonProps$1, 'disabled' | 'children' | 'link' | 'text' | 'onClick' | 'elementId'>>;
1736
- };
1737
- }
1738
- interface VideoMolecule extends BaseMolecule {
1739
- type: 'video';
1740
- attributes: Partial<{
1741
- video: VideoAttributes;
1742
- altText: Omit<TextAttributes, 'isRichText'>;
1743
- autoPlayVideo: BooleanAttributes;
1744
- enableCoverImage: BooleanAttributes;
1745
- coverImage: ImageAttributes;
1746
- }>;
1747
- config: {
1748
- props: Partial<{
1749
- width: number;
1750
- styles: StylesType;
1734
+ rules: ControllerProps$1['rules'];
1735
+ styles: StylesType;
1736
+ control: Control$1<any>;
1737
+ optional: boolean;
1738
+ required: boolean;
1739
+ labelsProps: FieldLabelsProps;
1740
+ defaultValue: string;
1741
+ radioButtonsProps: RadioButtonsProps$1<T>;
1742
+ internalConfig: RadioButtonInternalConfigProps$1;
1743
+ conditionConfig: ConditionConfig$1;
1744
+ state: FormStateType$1;
1745
+ formData: AnyObject$1;
1746
+ htmlElementId: string;
1747
+ }>;
1748
+ declare const RadioButtonField: <T extends string>({ name, rules, styles, control, optional, required, labelsProps, defaultValue, radioButtonsProps, conditionConfig, formData, htmlElementId, state, }: Partial<{
1749
+ name: string;
1750
+ rules: ControllerProps$1['rules'];
1751
+ styles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
1752
+ control: Control$1<any>;
1753
+ optional: boolean;
1754
+ required: boolean;
1755
+ labelsProps: FieldLabelsProps;
1756
+ defaultValue: string;
1757
+ radioButtonsProps: Partial<{
1758
+ ref: react_hook_form.RefCallBack;
1759
+ name: string;
1760
+ value: T;
1761
+ options: atoms.SelectOption[];
1762
+ onBlur: typescript.Callback;
1763
+ onChange: (value: T) => void;
1764
+ isRow: boolean;
1765
+ isError: boolean;
1766
+ disabled: boolean;
1767
+ isEditMode: boolean;
1768
+ isRichText: boolean;
1769
+ internalConfig: Partial<{
1770
+ selectedRadioOptionBackgroundColor: string;
1771
+ selectedRadioOptionIndicatorColor: string;
1772
+ buttonPadding: number;
1773
+ textPadding: number;
1774
+ styles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
1775
+ wrapperStyles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
1776
+ buttonOptionSpacing: SizesTypes;
1777
+ radioGroupWrapperStyles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
1751
1778
  }>;
1752
- };
1753
- }
1754
- interface TabGroupMolecule extends BaseMolecule {
1755
- type: 'header_tab_group';
1756
- config: {
1757
- props: TabGroupProps$1;
1758
- wide: AdditionalTabContainerProps$1;
1759
- compact: AdditionalTabContainerProps$1;
1760
- };
1761
- }
1762
- interface TextInputMolecule extends BaseMolecule {
1763
- type: 'input_field';
1764
- attributes: Partial<{
1765
- label: TextAttributes;
1766
- required: BooleanAttributes;
1767
- inputType: SelectAttributes;
1768
- dataModelField: DataConnectionAttributes;
1769
- conditionConfig: ConditionConfigAttributes;
1770
- }>;
1771
- config: {
1772
- props: InputFieldProps$1;
1773
- };
1774
- }
1775
- interface SelectFieldMolecule extends BaseMolecule {
1776
- type: 'select_field';
1777
- attributes: Partial<{
1778
- label: TextAttributes;
1779
- required: BooleanAttributes;
1780
- options: IterableAttributes;
1781
- dataModelField: DataConnectionAttributes;
1782
- conditionConfig: ConditionConfigAttributes;
1783
- }>;
1784
- config: {
1785
- props: SelectFieldProps$1;
1786
- };
1787
- }
1788
- interface RadioButtonFieldMolecule extends BaseMolecule {
1789
- type: 'radio_button_field';
1790
- attributes: Partial<{
1791
- label: TextAttributes;
1792
- required: BooleanAttributes;
1793
- options: IterableAttributes;
1794
- dataModelField: DataConnectionAttributes;
1795
- conditionConfig: ConditionConfigAttributes;
1796
- }>;
1797
- config: {
1798
- props: RadioButtonFieldProps$1<string>;
1799
- };
1800
- }
1801
- interface CheckboxFieldMolecule extends BaseMolecule {
1802
- type: 'checkbox_field';
1803
- attributes: Partial<{
1804
- label: TextAttributes;
1805
- required: BooleanAttributes;
1806
- options: IterableAttributes;
1807
- dataModelField: DataConnectionAttributes;
1808
- conditionConfig: ConditionConfigAttributes;
1809
1779
  }>;
1810
- config: {
1811
- props: CheckboxFieldProps$1;
1812
- };
1813
- }
1814
- interface ConsentFieldMolecule extends BaseMolecule {
1815
- type: 'consent';
1816
- attributes: Partial<{
1817
- consent: Partial<{
1818
- attributeType: 'consent';
1819
- consent: ConsentType$1;
1820
- required: BooleanAttributes;
1821
- }>;
1822
- conditionConfig: ConditionConfigAttributes;
1780
+ internalConfig: Partial<{
1781
+ selectedRadioOptionBackgroundColor: string;
1782
+ selectedRadioOptionIndicatorColor: string;
1783
+ buttonPadding: number;
1784
+ textPadding: number;
1785
+ styles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
1786
+ wrapperStyles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
1787
+ buttonOptionSpacing: SizesTypes;
1788
+ radioGroupWrapperStyles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
1823
1789
  }>;
1824
- config: {
1825
- props: Partial<{
1826
- state: 'field_error';
1827
- }>;
1828
- };
1829
- }
1830
- interface LinkMolecule extends BaseMolecule {
1831
- type: 'link';
1832
- attributes: {
1833
- text: TextAttributes;
1834
- link: LinkAttributes;
1835
- };
1836
- config: {
1837
- props: Omit<LinkProps$1, '$variant' | '$styles'> & Partial<{
1838
- variant: LinkVariant$1;
1839
- styles: StylesType;
1840
- }>;
1790
+ conditionConfig: ConditionConfig$1;
1791
+ state: FormStateType$1;
1792
+ formData: AnyObject$1;
1793
+ htmlElementId: string;
1794
+ }>) => JSX.Element | null;
1795
+
1796
+ declare type AlertProps = {
1797
+ style?: CSSProperties;
1798
+ title: string;
1799
+ description: string;
1800
+ color?: string;
1801
+ isMobile?: boolean;
1802
+ logo?: string;
1803
+ fullWidth?: boolean;
1804
+ withCloseIcon?: {
1805
+ onClose: Callback$1;
1841
1806
  };
1842
- }
1843
- interface PasswordSetupMolecule extends BaseMolecule {
1844
- type: 'password_setup_field';
1845
- attributes: Partial<{
1846
- passwordFieldLabel: TextAttributes;
1847
- reenteredPasswordFieldLabel: TextAttributes;
1848
- passwordFieldRequired: BooleanAttributes;
1849
- reenteredPasswordFieldRequired: BooleanAttributes;
1850
- dataModelField: DataConnectionAttributes;
1807
+ fontColor?: ThemeColors$1;
1808
+ destinationLink?: string;
1809
+ onDestinationHandler?: Callback$1;
1810
+ containerStyles?: CSSProperties;
1811
+ };
1812
+ declare const Alert: ({ logo, title, withCloseIcon, description, style, fontColor, containerStyles, isMobile, ...props }: AlertProps) => JSX.Element;
1813
+
1814
+ declare type OrientationType = 'horizontal' | 'vertical';
1815
+ declare type StepperProps = {
1816
+ steps: {
1817
+ title: string;
1818
+ description?: string;
1819
+ status?: ProcessTrackerStatus$1;
1820
+ }[];
1821
+ currentStep: number;
1822
+ orientation?: OrientationType;
1823
+ };
1824
+ declare const Stepper: ({ steps, orientation, currentStep }: StepperProps) => JSX.Element;
1825
+
1826
+ declare type PdfDocumentProps = {
1827
+ source: string;
1828
+ isMobile?: boolean;
1829
+ customDocumentStyles?: Partial<{
1830
+ wrapperBackgroundColor: ThemeColors$1 | string;
1831
+ pageNumberColor: ThemeColors$1 | string;
1832
+ pageWidth: number;
1833
+ pageHeight: number;
1834
+ paginationArrowColor: ThemeColors$1 | string;
1835
+ disabledPaginationArrowColor: ThemeColors$1 | string;
1851
1836
  }>;
1852
- config: {
1853
- props: {
1854
- validationLabel?: string;
1855
- state?: FormStateType;
1856
- passwordInputProps: InputFieldProps$1;
1857
- reenteredPasswordInputProps: InputFieldProps$1;
1858
- };
1859
- };
1860
- }
1861
- interface AccountButtonMolecule extends BaseMolecule {
1862
- type: 'account_button';
1863
- config: {
1864
- props: AvatarDropdownProps$1<AvatarDropdownMenuConfigType$1>;
1865
- };
1866
- }
1867
- declare type Molecule = StrictUnion<ImageMolecule | TextMoleculeType | ButtonMolecule | VideoMolecule | TabGroupMolecule | TextInputMolecule | SelectFieldMolecule | RadioButtonFieldMolecule | CheckboxFieldMolecule | ConsentFieldMolecule | LinkMolecule | PasswordSetupMolecule | AccountButtonMolecule> & Partial<{
1868
- form: UseFormReturn<any>;
1869
- formData: AnyObject$1;
1870
- setFormData: Dispatch<SetStateAction<AnyObject$1>>;
1837
+ };
1838
+ declare const PdfDocument: ({ source, isMobile, customDocumentStyles, }: PdfDocumentProps) => JSX.Element;
1839
+
1840
+ declare type FeedTemplateKeys = `feed_${'a' | 'b'}`;
1841
+ declare type FeedContentHeaderProps = {
1842
+ title: string;
1843
+ enableFavoriting?: boolean;
1844
+ templateType: FeedTemplateKeys;
1845
+ isMobile?: boolean;
1846
+ menuConfig: MenuItemsProps$1<FilteredFeedContentType$1>;
1847
+ } & Partial<Omit<InputFieldProps$1, 'labelsProps' | 'required' | 'optional'>>;
1848
+ declare const FeedContentHeader: ({ templateType, title, name, inputProps, isMobile, menuConfig, ...rest }: FeedContentHeaderProps) => JSX.Element;
1849
+
1850
+ declare type ToggleFieldProps = {
1851
+ name: string;
1852
+ title: string;
1853
+ control?: Control$1<any>;
1854
+ description?: string;
1855
+ horizontalButtonsProps: HorizontalButtonsProps$1;
1856
+ defaultValue?: string;
1857
+ };
1858
+ declare const HorizontalButtonsField: ({ name, title, control, description, horizontalButtonsProps, }: ToggleFieldProps) => JSX.Element;
1859
+
1860
+ declare type BottomNaVBarItemProps = {
1861
+ name: string;
1862
+ icon: ComponentType<Omit<IconProps$1, 'name'>>;
1863
+ active: boolean;
1864
+ activeColor: string;
1865
+ onNavigate: Callback;
1866
+ };
1867
+ declare const BottomNavBarItem: ({ name, icon, active, activeColor, onNavigate, }: BottomNaVBarItemProps) => JSX.Element;
1868
+
1869
+ declare type VideoProps = {
1870
+ src: string;
1871
+ } & Partial<{
1872
+ width: number;
1873
+ height: number;
1874
+ autoplay: boolean;
1875
+ enableCoverImage: boolean;
1876
+ coverImageSrc: string;
1877
+ style: CSSProperties;
1878
+ styles: StylesType;
1879
+ template: FeedContentTemplateTypes$1;
1880
+ htmlElementId: string;
1881
+ }>;
1882
+ declare const Video: ({ style, src, width, height, template, autoplay, enableCoverImage, coverImageSrc, styles, htmlElementId, }: VideoProps) => JSX.Element | null;
1883
+
1884
+ declare type ImageProps = {
1885
+ src: string;
1886
+ } & Partial<{
1887
+ id: string;
1888
+ altText: string;
1889
+ link: string;
1890
+ onClick: Callback$1;
1891
+ width: number;
1892
+ height: number;
1893
+ cornerRadius: number;
1894
+ behaveAs: 'background' | 'regular';
1895
+ styles: StylesType;
1896
+ stateConfig: MetadataStateConfig$1[];
1897
+ htmlElementId: string;
1871
1898
  }>;
1899
+ declare const Image: ({ src, onClick, link, altText, styles, width, height, id, behaveAs, cornerRadius, stateConfig, htmlElementId, }: ImageProps) => JSX.Element | null;
1872
1900
 
1873
- declare type ContainerType = 'row' | 'column' | 'slider' | 'form' | 'form_step' | 'dynamic';
1874
- declare type ContainerTemplateType = 'row_content_container';
1875
- declare type WrappedContainerType = Extract<ContainerType, 'slider' | 'form' | 'form_step'>;
1876
- declare type ContainerPositionType = 'fixed' | 'sticky' | 'static' | 'relative';
1877
- declare type ContainerScrollBehaviourType = 'vertical' | 'horizontal' | 'auto' | 'none';
1878
- declare type StateActionType = 'visible' | 'disabled';
1879
- declare type StateEventType = 'click' | 'view';
1880
- declare type StateListenerConfigType = {
1881
- role: 'stateListener';
1882
- stateKey: string;
1883
- stateValue: string | boolean;
1884
- defaultState: Partial<Record<StateActionType, boolean>>;
1885
- action: Partial<Record<StateActionType, boolean>>;
1886
- };
1887
- declare type StateModifierConfigType = {
1888
- role: 'stateModifier';
1889
- stateKey: string;
1890
- event: StateEventType;
1891
- };
1892
- declare type MetadataStateConfig = StateListenerConfigType | StateModifierConfigType;
1893
- declare type MetadataType = AnyObject$1 & {
1894
- stateConfig: MetadataStateConfig[];
1895
- notEditable?: boolean;
1896
- hasOwnButton?: boolean;
1897
- };
1898
- declare type SliderProps = {
1901
+ declare type CarouselProps = {
1902
+ children: JSX.Element[];
1899
1903
  autoplay?: boolean;
1900
1904
  autoplayDuration?: number;
1901
1905
  };
1902
- declare type FormStepContainerProps = {
1903
- formStepName: string;
1904
- order: number;
1905
- conditionConfig: ConditionConfig;
1906
- formStepStyles?: CSSProperties;
1907
- };
1908
- declare type FormContainerProps = {
1909
- mode: keyof ValidationMode;
1910
- };
1911
- declare type PaddingVariants = 'top' | 'right' | 'bottom' | 'left';
1912
- declare type Padding = Record<PaddingVariants, SizesTypes$1 | string> | SizesTypes$1 | string;
1913
- declare type ContainerPropsType = Partial<{
1914
- position: ContainerPositionType;
1915
- scrollBehaviour: ContainerScrollBehaviourType;
1906
+ declare const Carousel: ({ children, autoplay, autoplayDuration, }: PropsWithChildren<CarouselProps>) => JSX.Element;
1907
+ declare const Wrapper: styled_components.StyledComponent<"section", styled_components.DefaultTheme, {}, never>;
1908
+ declare const SlidesWrapper: styled_components.StyledComponent<"ul", styled_components.DefaultTheme, {
1909
+ translateX: number;
1910
+ }, never>;
1911
+ declare const Slide: styled_components.StyledComponent<"li", styled_components.DefaultTheme, {}, never>;
1912
+ declare const ButtonsWrapper: styled_components.StyledComponent<"div", styled_components.DefaultTheme, {}, never>;
1913
+ declare const ArrowIconWrapper: styled_components.StyledComponent<"div", styled_components.DefaultTheme, {
1914
+ arrowSide: 'left' | 'right';
1915
+ }, never>;
1916
+ declare const NavigationDotsWrapper: styled_components.StyledComponent<"div", styled_components.DefaultTheme, {}, never>;
1917
+
1918
+ declare type TextMoleculeProps = Partial<{
1919
+ text: string;
1920
+ variant: 'base' | 'custom';
1921
+ fontVariant: FontSizesTypes$2;
1922
+ textSize: number;
1923
+ textColor: ThemeColors$1 | string;
1924
+ letterSpacing: number;
1925
+ lineHeight: number;
1926
+ fontWeight: string | number;
1927
+ isRichText: boolean;
1928
+ styles: StylesType;
1929
+ textAlign: 'center' | 'right' | 'left';
1930
+ htmlElementId: string;
1931
+ }> & Pick<TextProps$1, 'seoTag' | 'numberOfLines'>;
1932
+ declare const TextMolecule: ({ isRichText, variant, text, seoTag, fontVariant, textColor, textSize, fontWeight, lineHeight, letterSpacing, styles, textAlign, htmlElementId, ...restOfTextProps }: TextMoleculeProps) => JSX.Element;
1933
+
1934
+ declare type ButtonVariant = 'primary' | 'secondary' | 'text' | 'custom';
1935
+ declare type ButtonType = 'button' | 'submit' | 'reset';
1936
+ declare type BaseButtonProps = PropsWithChildren<Partial<{
1937
+ onClick: Callback$1;
1938
+ variant: ButtonVariant;
1939
+ disabled: boolean;
1940
+ state: 'disabled' | 'enabled';
1941
+ fullWidth: boolean;
1942
+ size: 'medium' | 'small';
1943
+ buttonFont: FontSizesTypes$2;
1944
+ textColor: ThemeColors$1 | string;
1945
+ textSize: number;
1946
+ horizontalPadding: SizesTypes$1;
1947
+ verticalPadding: SizesTypes$1;
1948
+ buttonColor: ThemeColors$1 | string;
1949
+ buttonStroke: ThemeColors$1 | string;
1916
1950
  cornerRadius: SizesTypes$1 | number;
1917
- gap: SizesTypes$1;
1951
+ hoverButtonColor: ThemeColors$1 | string;
1952
+ hoverStrokeColor: ThemeColors$1 | string;
1953
+ inactiveButtonColor: ThemeColors$1 | string;
1954
+ inactiveStrokeColor: ThemeColors$1 | string;
1955
+ inactiveTextColor: ThemeColors$1 | string;
1918
1956
  styles: StylesType;
1919
- sliderProps: SliderProps;
1920
- formProps: FormContainerProps;
1921
- formStepProps: FormStepContainerProps;
1922
- padding: Padding;
1923
- border: string;
1924
- activeChildrenIds: string[];
1925
- activeOrganismIds: string[];
1926
- }>;
1927
- declare type AdditionalContainerProps = Partial<{
1928
- containerStyle: CSSProperties;
1929
- containerProps: ContainerPropsType;
1930
- }>;
1931
- declare type ContainerProps = PropsWithChildren<Partial<{
1932
- type: ContainerType;
1933
- containerTemplateType: ContainerTemplateType;
1934
- wide: AdditionalContainerProps;
1935
- compact: AdditionalContainerProps;
1936
- props: ContainerPropsType;
1937
- metadata: MetadataType;
1938
- isMobile: boolean;
1957
+ colorTheme: 'light' | 'dark';
1958
+ href: string;
1959
+ type: ButtonType;
1939
1960
  }>>;
1940
- declare type ContainerComponentProps = {
1941
- id: string;
1942
- instance: 'container';
1943
- type: ContainerType;
1944
- items: (ContainerComponentProps | Molecule)[];
1945
- config: Partial<{
1946
- wide: AdditionalContainerProps;
1947
- compact: AdditionalContainerProps;
1948
- props: ContainerPropsType;
1949
- }>;
1950
- tabsProps?: Pick<TabGroupProps$1, 'tabs' | 'activeTabKey' | 'onTabChange'>;
1951
- metadata?: MetadataType;
1952
- attributes?: AnyObject$1;
1953
- containerLibraryId?: string;
1954
- isMobile?: boolean;
1955
- };
1956
- declare type CriteriaType = 'operator' | 'condition';
1957
- declare type ConditionCriteria = {
1958
- id: string;
1959
- type: CriteriaType;
1960
- operator: string;
1961
- dataFieldId: Nullable<string>;
1962
- dataFieldName: Nullable<string>;
1963
- dataValue: Nullable<string>;
1964
- connectedTo: Nullable<string>;
1961
+ declare type ButtonProps = BaseButtonProps & {
1962
+ fullWidth?: boolean;
1963
+ text?: string;
1964
+ link?: string;
1965
+ elementId?: string;
1966
+ loading?: boolean;
1967
+ isRichText?: boolean;
1968
+ containerStyle?: StylesType;
1969
+ buttonStyle?: StylesType;
1970
+ stateConfig?: MetadataStateConfig$1[];
1971
+ htmlElementId?: string;
1965
1972
  };
1966
- declare type SegmentationType = 'simple' | 'advanced';
1967
- declare type ConditionConfig = Nullable<{
1968
- id: string;
1969
- segmentationType: SegmentationType;
1970
- criteriaList: ConditionCriteria[];
1971
- }>;
1972
- declare type FormDataStateConfig = {
1973
- value?: string | number;
1974
- } & Record<string, {
1975
- value?: string | number;
1976
- }>;
1977
- declare type StateConfigType = Record<string, Nullable<boolean | string | FormDataStateConfig>>;
1973
+ declare const Button: ({ text, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children, buttonStyle, size, textColor, inactiveTextColor, state, href, stateConfig, htmlElementId, ...props }: ButtonProps) => JSX.Element | null;
1978
1974
 
1979
- declare const ContainerWrapper: styled_components.StyledComponent<"div", styled_components.DefaultTheme, Pick<ContainerProps$1, "type"> & {
1980
- containerProps?: Partial<{
1981
- position: containers_types_types.ContainerPositionType;
1982
- scrollBehaviour: containers_types_types.ContainerScrollBehaviourType;
1983
- cornerRadius: number | SizesTypes$1;
1984
- gap: SizesTypes$1;
1985
- styles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
1986
- sliderProps: containers_types_types.SliderProps;
1987
- formProps: containers_types_types.FormContainerProps;
1988
- formStepProps: containers_types_types.FormStepContainerProps;
1989
- padding: containers_types_types.Padding;
1990
- border: string;
1991
- activeChildrenIds: string[];
1992
- activeOrganismIds: string[];
1993
- }> | undefined;
1994
- metadata?: AnyObject | undefined;
1975
+ declare type ZealUIModalProps = PropsWithChildren<Pick<ModalProps, 'open'>> & {
1976
+ padding?: number | string;
1977
+ wrapperStyles?: CSSProperties;
1978
+ onKeyDown?: <T extends HTMLElement>(event: KeyboardEvent<T>) => void;
1979
+ modalStyles?: CSSProperties;
1980
+ onClose?: Callback$1;
1981
+ };
1982
+ declare const ZealUIModal: ({ children, wrapperStyles, padding, onKeyDown, modalStyles, ...rest }: ZealUIModalProps) => JSX.Element;
1983
+ declare const ModalWrapper: styled_components.StyledComponent<"div", styled_components.DefaultTheme, OverrideStyles, never>;
1984
+ declare const IconWrapper: styled_components.StyledComponent<"div", styled_components.DefaultTheme, {
1985
+ activeOpacity?: number | undefined;
1986
+ withoutOpacityEffect?: boolean | undefined;
1987
+ disabled?: boolean | undefined;
1988
+ } & {
1989
+ children?: react__default.ReactNode;
1995
1990
  }, never>;
1996
1991
 
1997
- declare type OrganismItemProps = {
1998
- item: ContainerComponentProps$1 | Molecule$1;
1999
- tabsProps?: Pick<TabGroupProps$1, 'tabs' | 'activeTabKey' | 'onTabChange'>;
2000
- formData?: AnyObject$1;
2001
- setFormData?: Dispatch<SetStateAction<AnyObject$1>>;
2002
- isMobile?: boolean;
1992
+ declare type ConsentCaptureMethod = 'button' | 'radioButton' | 'checkbox';
1993
+ declare type DefaultSelectionType = 'confirmation' | 'rejection';
1994
+ declare type ConsentType = {
1995
+ id: string;
1996
+ name: string;
1997
+ acknowledgment: CustomDescendant[];
1998
+ methodOfCapture: ConsentCaptureMethod;
1999
+ description: string;
2000
+ language: CustomDescendant[];
2001
+ expiration: string;
2002
+ confirmationButtonText: string;
2003
+ rejectionButtonText: string;
2004
+ defaultSelection: DefaultSelectionType;
2005
+ value?: DefaultSelectionType | boolean;
2006
+ isRequired?: boolean;
2003
2007
  };
2004
- declare const OrganismItem: ({ item, tabsProps, formData, setFormData, isMobile, }: OrganismItemProps) => JSX.Element | null;
2005
-
2006
- declare type FormOrganismItemProps = {
2007
- item: ContainerComponentProps$2;
2008
- activeChildrenIds: string[];
2009
- formData?: AnyObject$1;
2010
- setFormData?: Dispatch<SetStateAction<AnyObject$1>>;
2011
- isMobile?: boolean;
2008
+ declare type ConsentProps<T extends string = string> = {
2009
+ text: string;
2010
+ isRequired?: boolean;
2011
+ consentCaptureProps: ConsentCaptureProps<T>;
2012
+ containerStyles?: CSSProperties;
2013
+ clearStyles?: boolean;
2012
2014
  };
2013
- declare const FormOrganismItem: ({ formData, setFormData, isMobile, ...props }: FormOrganismItemProps) => JSX.Element | null;
2015
+ declare const Consent: <T extends string>({ text, consentCaptureProps, containerStyles, clearStyles, }: ConsentProps<T>) => JSX.Element;
2016
+
2017
+ declare type LinkProps = Omit<TextButtonProps$1, 'children'> & Partial<{
2018
+ text: string;
2019
+ isRichText: boolean;
2020
+ href: string;
2021
+ htmlElementId: string;
2022
+ }>;
2023
+ declare const Link: ({ text, isRichText, htmlElementId, ...props }: LinkProps) => JSX.Element | null;
2014
2024
 
2015
- export { AccountButtonContext, AccountButtonContextType, AccountButtonMolecule, AccountButtonProvider, AccountButtonProviderProps, AcquisitionForm, AcquisitionFormProps, ActionAttributes, ActionTypes, AdditionalContainerProps, AdditionalTabContainerProps, Alert, AlertProps, AnnotationsList, ArrowIconWrapper, AuthMethod, Avatar, AvatarDropdown, AvatarDropdownMenuConfigType, 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, ColorAttributes, ColumnItem, Columns, ColumnsProps, ConditionConfig, ConditionConfigAttributes, ConditionCriteria, Consent, ConsentCaptureMethod, ConsentFieldMolecule, ConsentProps, ConsentType, Container, ContainerComponent, ContainerComponentProps, ContainerPositionType, ContainerProps, ContainerPropsType, ContainerScrollBehaviourType, ContainerTemplateType, 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, FormDataStateConfig, FormOrganismItem, FormStateType, FormStepContainerProps, FormStepContextProviderProps, GoogleMap, GoogleMapProps, 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, Link, LinkAttributes, LinkMolecule, LinkProps, LinkVariant, LoginForm, LoginFormProps, MATRIX_MESSAGE_DATA_ID, MATRIX_MESSAGE_ELEMENT_ID, MapPosition, MenuItem, MenuItems, MenuItemsProps, MenuNavigation, MenuNavigationProps, MetadataStateConfig, MetadataType, MlrRichTextViewerContext, MlrRichTextViewerContextType, MlrRichTextViewerProvider, MlrRichTextViewerProviderProps, ModalWrapper, Molecule, MoleculeTypes, NavigationDotsWrapper, OrganismContext, OrganismContextProvider, OrganismContextType, OrganismItem, OrganismItemProps, OrientationType, Padding, PaddingVariants, PasswordSetupMolecule, 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, SliderProps, SlidesWrapper, Spacer, SpacerProps, Spinner, StateActionType, StateConfigType, StateContext, StateContextProvider, StateContextProviderProps, StateContextType, StateEventType, StateListenerConfigType, StateModifierConfigType, 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, WrappedContainerType, Wrapper, ZealTheme, ZealThemeProvider, ZealUIModal, ZealUIModalProps, acquisitionFormMockFields, defaultTheme, defaultValue, getFieldPlaceholder, getFieldsFromFieldSections, getInitialValuesFromFields, isFormValid, loginMockFields, passwordMockFields, profileInformationMockForm, sectionMockFields, setPasswordMockFields, showAcceptToastMessage, toast, toastStyles, useButtonActionsContext, useMediaQuery, useMlrRichTextViewerContext, useRequiredConsentsAcceptedValues, useStep };
2025
+ export { AccountButtonContext, AccountButtonContextType, AccountButtonMolecule, AccountButtonProvider, AccountButtonProviderProps, AcquisitionForm, AcquisitionFormProps, ActionAttributes, ActionTypes, AdditionalContainerProps, AdditionalTabContainerProps, Alert, AlertProps, AnnotationsList, ArrowIconWrapper, AuthMethod, Avatar, AvatarDropdown, AvatarDropdownMenuConfigType, 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, ColorAttributes, ColumnItem, Columns, ColumnsProps, ConditionConfig, ConditionConfigAttributes, ConditionCriteria, Consent, ConsentCaptureMethod, ConsentFieldMolecule, ConsentProps, ConsentType, Container, ContainerComponent, ContainerComponentProps, ContainerPositionType, ContainerProps, ContainerPropsType, ContainerScrollBehaviourType, ContainerTemplateType, ContainerType, ContainerWrapper, CriteriaType, CustomValidation, CustomValidationProps, CustomValidationRule, DataConnectionAttributes, DataConnectionValues, DataModelFieldFormat, DataModelFieldFormatCodeTypes, DataModelFieldFormatValueTypes, 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, FormDataStateConfig, FormOrganismItem, FormStateType, FormStepContainerProps, FormStepContextProviderProps, GoogleMap, GoogleMapProps, 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, Link, LinkAttributes, LinkMolecule, LinkProps, LinkVariant, LoginForm, LoginFormProps, MATRIX_MESSAGE_DATA_ID, MATRIX_MESSAGE_ELEMENT_ID, MapPosition, MenuItem, MenuItems, MenuItemsProps, MenuNavigation, MenuNavigationProps, MetadataStateConfig, MetadataType, MlrRichTextViewerContext, MlrRichTextViewerContextType, MlrRichTextViewerProvider, MlrRichTextViewerProviderProps, ModalWrapper, Molecule, MoleculeTypes, NavigationDotsWrapper, OrganismContext, OrganismContextProvider, OrganismContextType, OrganismItem, OrganismItemProps, OrientationType, Padding, PaddingVariants, PasswordSetupMolecule, 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, SliderProps, SlidesWrapper, Spacer, SpacerProps, Spinner, StateActionType, StateConfigType, StateContext, StateContextProvider, StateContextProviderProps, StateContextType, StateEventType, StateListenerConfigType, StateModifierConfigType, 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, WrappedContainerType, Wrapper, ZealTheme, ZealThemeProvider, ZealUIModal, ZealUIModalProps, acquisitionFormMockFields, defaultTheme, defaultValue, getFieldPlaceholder, getFieldsFromFieldSections, getInitialValuesFromFields, isFormValid, loginMockFields, passwordMockFields, profileInformationMockForm, sectionMockFields, setPasswordMockFields, showAcceptToastMessage, toast, toastStyles, useButtonActionsContext, useMediaQuery, useMlrRichTextViewerContext, useRequiredConsentsAcceptedValues, useStep };