@zealicsolutions/web-ui 0.3.0 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +27 -27
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/atoms/Avatar/Avatar.d.ts +2 -2
- package/dist/{esm/src/atoms/Buttons/Button.stories.d.ts → cjs/src/atoms/Buttons/Buttons.stories.d.ts} +6 -5
- package/dist/cjs/src/atoms/Buttons/TextButton.d.ts +4 -19
- package/dist/cjs/src/atoms/Checkbox/Checkbox.d.ts +15 -9
- package/dist/cjs/src/atoms/Checkbox/Checkbox.stories.d.ts +1 -1
- package/dist/cjs/src/atoms/Checkbox/helpers.d.ts +2 -0
- package/dist/cjs/src/atoms/Checkbox/types.d.ts +18 -0
- package/dist/cjs/src/atoms/CircularIndicator/CircularIndicator.stories.d.ts +2 -2
- package/dist/cjs/src/atoms/Icon/Icon.d.ts +18 -15
- package/dist/cjs/src/atoms/Input/Input.d.ts +14 -2
- package/dist/cjs/src/atoms/Input/Input.stories.d.ts +4 -4
- package/dist/cjs/src/atoms/RadioButtons/RadioButtons.d.ts +53 -14
- package/dist/cjs/src/atoms/RadioButtons/RadioButtons.stories.d.ts +25 -3
- package/dist/cjs/src/atoms/RadioButtons/RadioOption.d.ts +12 -0
- package/dist/cjs/src/atoms/RadioButtons/helpers.d.ts +15 -0
- package/dist/cjs/src/atoms/RadioButtons/styles.d.ts +9 -0
- package/dist/cjs/src/atoms/RegularImage/RegularImage.d.ts +29 -0
- package/dist/cjs/src/atoms/RegularImage/RegularImage.stories.d.ts +16 -0
- package/dist/cjs/src/atoms/RichTextViewer/RichTextViewer.d.ts +6 -4
- package/dist/cjs/src/atoms/Select/Select.d.ts +32 -2
- package/dist/cjs/src/atoms/Select/Select.stories.d.ts +17 -4
- package/dist/cjs/src/atoms/Select/styles.d.ts +5 -1
- package/dist/cjs/src/atoms/Tab/Tab.d.ts +56 -0
- package/dist/cjs/src/atoms/Tab/Tab.stories.d.ts +31 -0
- package/dist/cjs/src/{molecules → atoms}/Tab/styles.d.ts +5 -5
- package/dist/cjs/src/atoms/Tab/utils.d.ts +4 -0
- package/dist/cjs/src/atoms/TextWrapper/TextWrapper.d.ts +10 -5
- package/dist/cjs/src/atoms/TextWrapper/TextWrapper.stories.d.ts +5 -5
- package/dist/cjs/src/atoms/Tooltip/Tooltip.d.ts +6 -3
- package/dist/cjs/src/atoms/Tooltip/Tooltip.stories.d.ts +1 -1
- package/dist/cjs/src/atoms/index.d.ts +2 -3
- package/dist/cjs/src/containers/Container.d.ts +4 -0
- package/dist/cjs/src/containers/Container.stories.d.ts +6 -0
- package/dist/cjs/src/containers/FormContainer.d.ts +6 -0
- package/dist/cjs/src/containers/MoleculeItem.d.ts +8 -0
- package/dist/cjs/src/containers/OrganismItem.d.ts +7 -0
- package/dist/cjs/src/containers/helpers.d.ts +2 -0
- package/dist/cjs/src/containers/index.d.ts +5 -0
- package/dist/cjs/src/containers/mock-data.d.ts +3 -0
- package/dist/cjs/src/containers/styles.d.ts +12 -0
- package/dist/cjs/src/containers/types/moleculeTypes.d.ts +161 -0
- package/dist/cjs/src/containers/types/types.d.ts +40 -0
- package/dist/cjs/src/contexts/MlrRichTextViewerContext/types.d.ts +2 -1
- package/dist/cjs/src/fieldsConfiguration/types.d.ts +5 -5
- package/dist/cjs/src/helpers/constants.d.ts +6 -0
- package/dist/cjs/src/helpers/utils.d.ts +1 -0
- package/dist/cjs/src/helpers/validations.d.ts +3 -0
- package/dist/cjs/src/icons/CaretDown.d.ts +1 -1
- package/dist/cjs/src/icons/Check.d.ts +2 -2
- package/dist/cjs/src/icons/Close.d.ts +1 -1
- package/dist/cjs/src/icons/Filter.d.ts +2 -2
- package/dist/cjs/src/icons/Hide.d.ts +1 -1
- package/dist/cjs/src/icons/Info.d.ts +1 -1
- package/dist/cjs/src/icons/Mail.d.ts +1 -1
- package/dist/cjs/src/icons/Minus.d.ts +2 -2
- package/dist/cjs/src/icons/Mobile.d.ts +2 -2
- package/dist/cjs/src/icons/Play.d.ts +1 -1
- package/dist/cjs/src/icons/Search.d.ts +1 -1
- package/dist/cjs/src/icons/View.d.ts +2 -2
- package/dist/cjs/src/icons/Warning.d.ts +1 -1
- package/dist/cjs/src/index.d.ts +3 -1
- package/dist/cjs/src/molecules/AvatarDropdown/AvatarDropdown.d.ts +1 -1
- package/dist/cjs/src/molecules/Button/Button.d.ts +42 -0
- package/dist/cjs/src/molecules/Button/Button.stories.d.ts +9 -0
- package/dist/cjs/src/molecules/CheckboxField/CheckboxField.d.ts +27 -8
- package/dist/cjs/src/molecules/CheckboxField/CheckboxField.stories.d.ts +37 -0
- package/dist/cjs/src/molecules/CheckboxField/CheckboxGroup.d.ts +11 -0
- package/dist/cjs/src/molecules/CheckboxField/styles.d.ts +6 -0
- package/dist/cjs/src/molecules/Columns/Column.d.ts +9 -1
- package/dist/cjs/src/molecules/Columns/styles.d.ts +10 -13
- package/dist/cjs/src/molecules/FieldLabels/FieldLabels.d.ts +35 -2
- package/dist/cjs/src/molecules/FieldLabels/FieldLabels.stories.d.ts +4 -4
- package/dist/cjs/src/molecules/FieldLabels/helpers.d.ts +8 -0
- package/dist/cjs/src/molecules/FieldMapper/FieldMapper.d.ts +3 -2
- package/dist/cjs/src/molecules/HeroImage/HeroImage.d.ts +3 -2
- package/dist/cjs/src/molecules/Image/Image.d.ts +15 -0
- package/dist/cjs/src/molecules/Image/Image.stories.d.ts +9 -0
- package/dist/cjs/src/molecules/InputField/InputField.d.ts +11 -11
- package/dist/cjs/src/molecules/InputField/InputField.stories.d.ts +14 -5
- package/dist/cjs/src/molecules/RadioButtonField/RadioButtonField.d.ts +55 -12
- package/dist/cjs/src/molecules/RadioButtonField/RadioButtonField.stories.d.ts +43 -1
- package/dist/cjs/src/molecules/SelectField/SelectField.d.ts +11 -11
- package/dist/cjs/src/molecules/SelectField/SelectField.stories.d.ts +27 -4
- package/dist/cjs/src/molecules/SelectableInfoCard/BaseSelectable.d.ts +1 -1
- package/dist/cjs/src/molecules/SelectableInfoCard/SelectableCardGroup.d.ts +1 -1
- package/dist/cjs/src/molecules/SelectableInfoCard/styles.d.ts +4 -3
- package/dist/cjs/src/molecules/TabGroup/TabGroup.d.ts +22 -6
- package/dist/cjs/src/molecules/TabGroup/TabGroup.stories.d.ts +4 -4
- package/dist/cjs/src/molecules/TabGroup/styles.d.ts +23 -1
- package/dist/cjs/src/molecules/TabGroup/useTabAnimation.d.ts +2 -3
- package/dist/cjs/src/molecules/TextMolecule/TextMolecule.d.ts +18 -0
- package/dist/cjs/src/molecules/TextMolecule/TextMolecule.stories.d.ts +9 -0
- package/dist/cjs/src/molecules/Video/Video.d.ts +14 -0
- package/dist/cjs/src/molecules/Video/Video.stories.d.ts +9 -0
- package/dist/cjs/src/molecules/index.d.ts +6 -0
- package/dist/cjs/src/organisms/AccountInformation/AccountInformation.d.ts +2 -2
- package/dist/cjs/src/organisms/Body/Body.d.ts +1 -1
- package/dist/cjs/src/organisms/Body/Body.stories.d.ts +1 -1
- package/dist/cjs/src/organisms/Consent/ConsentCapture.d.ts +2 -1
- package/dist/cjs/src/organisms/FeedContent/types.d.ts +2 -2
- package/dist/cjs/src/organisms/Footer/Footer.stories.d.ts +2 -2
- package/dist/cjs/src/organisms/Footer/styles.d.ts +9 -1
- package/dist/cjs/src/organisms/Header/Header.stories.d.ts +2 -2
- package/dist/cjs/src/organisms/Header/styles.d.ts +3 -2
- package/dist/cjs/src/organisms/LoginForm/LoginForm.d.ts +1 -1
- package/dist/cjs/src/organisms/ProcessTracker/mocks.d.ts +1 -1
- package/dist/cjs/src/organisms/ProfileInformation/ProfileInformation.d.ts +1 -2
- package/dist/cjs/src/organisms/SetPasswordForm/SetPasswordForm.d.ts +1 -1
- package/dist/cjs/src/organisms/SetPasswordForm/utils.d.ts +2 -2
- package/dist/cjs/src/organisms/SubscribePanel/SubscribePanel.stories.d.ts +6 -4
- package/dist/cjs/src/organisms/SubscribePanel/organism-data.d.ts +2 -0
- package/dist/cjs/src/organisms/TwoFactorAuth/constants.d.ts +1 -1
- package/dist/cjs/src/theme/types.d.ts +4 -3
- package/dist/cjs/src/typescript.d.ts +10 -0
- package/dist/esm/index.js +27 -27
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/atoms/Avatar/Avatar.d.ts +2 -2
- package/dist/{cjs/src/atoms/Buttons/Button.stories.d.ts → esm/src/atoms/Buttons/Buttons.stories.d.ts} +6 -5
- package/dist/esm/src/atoms/Buttons/TextButton.d.ts +4 -19
- package/dist/esm/src/atoms/Checkbox/Checkbox.d.ts +15 -9
- package/dist/esm/src/atoms/Checkbox/Checkbox.stories.d.ts +1 -1
- package/dist/esm/src/atoms/Checkbox/helpers.d.ts +2 -0
- package/dist/esm/src/atoms/Checkbox/types.d.ts +18 -0
- package/dist/esm/src/atoms/CircularIndicator/CircularIndicator.stories.d.ts +2 -2
- package/dist/esm/src/atoms/Icon/Icon.d.ts +18 -15
- package/dist/esm/src/atoms/Input/Input.d.ts +14 -2
- package/dist/esm/src/atoms/Input/Input.stories.d.ts +4 -4
- package/dist/esm/src/atoms/RadioButtons/RadioButtons.d.ts +53 -14
- package/dist/esm/src/atoms/RadioButtons/RadioButtons.stories.d.ts +25 -3
- package/dist/esm/src/atoms/RadioButtons/RadioOption.d.ts +12 -0
- package/dist/esm/src/atoms/RadioButtons/helpers.d.ts +15 -0
- package/dist/esm/src/atoms/RadioButtons/styles.d.ts +9 -0
- package/dist/esm/src/atoms/RegularImage/RegularImage.d.ts +29 -0
- package/dist/esm/src/atoms/RegularImage/RegularImage.stories.d.ts +16 -0
- package/dist/esm/src/atoms/RichTextViewer/RichTextViewer.d.ts +6 -4
- package/dist/esm/src/atoms/Select/Select.d.ts +32 -2
- package/dist/esm/src/atoms/Select/Select.stories.d.ts +17 -4
- package/dist/esm/src/atoms/Select/styles.d.ts +5 -1
- package/dist/esm/src/atoms/Tab/Tab.d.ts +56 -0
- package/dist/esm/src/atoms/Tab/Tab.stories.d.ts +31 -0
- package/dist/esm/src/{molecules → atoms}/Tab/styles.d.ts +5 -5
- package/dist/esm/src/atoms/Tab/utils.d.ts +4 -0
- package/dist/esm/src/atoms/TextWrapper/TextWrapper.d.ts +10 -5
- package/dist/esm/src/atoms/TextWrapper/TextWrapper.stories.d.ts +5 -5
- package/dist/esm/src/atoms/Tooltip/Tooltip.d.ts +6 -3
- package/dist/esm/src/atoms/Tooltip/Tooltip.stories.d.ts +1 -1
- package/dist/esm/src/atoms/index.d.ts +2 -3
- package/dist/esm/src/containers/Container.d.ts +4 -0
- package/dist/esm/src/containers/Container.stories.d.ts +6 -0
- package/dist/esm/src/containers/FormContainer.d.ts +6 -0
- package/dist/esm/src/containers/MoleculeItem.d.ts +8 -0
- package/dist/esm/src/containers/OrganismItem.d.ts +7 -0
- package/dist/esm/src/containers/helpers.d.ts +2 -0
- package/dist/esm/src/containers/index.d.ts +5 -0
- package/dist/esm/src/containers/mock-data.d.ts +3 -0
- package/dist/esm/src/containers/styles.d.ts +12 -0
- package/dist/esm/src/containers/types/moleculeTypes.d.ts +161 -0
- package/dist/esm/src/containers/types/types.d.ts +40 -0
- package/dist/esm/src/contexts/MlrRichTextViewerContext/types.d.ts +2 -1
- package/dist/esm/src/fieldsConfiguration/types.d.ts +5 -5
- package/dist/esm/src/helpers/constants.d.ts +6 -0
- package/dist/esm/src/helpers/utils.d.ts +1 -0
- package/dist/esm/src/helpers/validations.d.ts +3 -0
- package/dist/esm/src/icons/CaretDown.d.ts +1 -1
- package/dist/esm/src/icons/Check.d.ts +2 -2
- package/dist/esm/src/icons/Close.d.ts +1 -1
- package/dist/esm/src/icons/Filter.d.ts +2 -2
- package/dist/esm/src/icons/Hide.d.ts +1 -1
- package/dist/esm/src/icons/Info.d.ts +1 -1
- package/dist/esm/src/icons/Mail.d.ts +1 -1
- package/dist/esm/src/icons/Minus.d.ts +2 -2
- package/dist/esm/src/icons/Mobile.d.ts +2 -2
- package/dist/esm/src/icons/Play.d.ts +1 -1
- package/dist/esm/src/icons/Search.d.ts +1 -1
- package/dist/esm/src/icons/View.d.ts +2 -2
- package/dist/esm/src/icons/Warning.d.ts +1 -1
- package/dist/esm/src/index.d.ts +3 -1
- package/dist/esm/src/molecules/AvatarDropdown/AvatarDropdown.d.ts +1 -1
- package/dist/esm/src/molecules/Button/Button.d.ts +42 -0
- package/dist/esm/src/molecules/Button/Button.stories.d.ts +9 -0
- package/dist/esm/src/molecules/CheckboxField/CheckboxField.d.ts +27 -8
- package/dist/esm/src/molecules/CheckboxField/CheckboxField.stories.d.ts +37 -0
- package/dist/esm/src/molecules/CheckboxField/CheckboxGroup.d.ts +11 -0
- package/dist/esm/src/molecules/CheckboxField/styles.d.ts +6 -0
- package/dist/esm/src/molecules/Columns/Column.d.ts +9 -1
- package/dist/esm/src/molecules/Columns/styles.d.ts +10 -13
- package/dist/esm/src/molecules/FieldLabels/FieldLabels.d.ts +35 -2
- package/dist/esm/src/molecules/FieldLabels/FieldLabels.stories.d.ts +4 -4
- package/dist/esm/src/molecules/FieldLabels/helpers.d.ts +8 -0
- package/dist/esm/src/molecules/FieldMapper/FieldMapper.d.ts +3 -2
- package/dist/esm/src/molecules/HeroImage/HeroImage.d.ts +3 -2
- package/dist/esm/src/molecules/Image/Image.d.ts +15 -0
- package/dist/esm/src/molecules/Image/Image.stories.d.ts +9 -0
- package/dist/esm/src/molecules/InputField/InputField.d.ts +11 -11
- package/dist/esm/src/molecules/InputField/InputField.stories.d.ts +14 -5
- package/dist/esm/src/molecules/RadioButtonField/RadioButtonField.d.ts +55 -12
- package/dist/esm/src/molecules/RadioButtonField/RadioButtonField.stories.d.ts +43 -1
- package/dist/esm/src/molecules/SelectField/SelectField.d.ts +11 -11
- package/dist/esm/src/molecules/SelectField/SelectField.stories.d.ts +27 -4
- package/dist/esm/src/molecules/SelectableInfoCard/BaseSelectable.d.ts +1 -1
- package/dist/esm/src/molecules/SelectableInfoCard/SelectableCardGroup.d.ts +1 -1
- package/dist/esm/src/molecules/SelectableInfoCard/styles.d.ts +4 -3
- package/dist/esm/src/molecules/TabGroup/TabGroup.d.ts +22 -6
- package/dist/esm/src/molecules/TabGroup/TabGroup.stories.d.ts +4 -4
- package/dist/esm/src/molecules/TabGroup/styles.d.ts +23 -1
- package/dist/esm/src/molecules/TabGroup/useTabAnimation.d.ts +2 -3
- package/dist/esm/src/molecules/TextMolecule/TextMolecule.d.ts +18 -0
- package/dist/esm/src/molecules/TextMolecule/TextMolecule.stories.d.ts +9 -0
- package/dist/esm/src/molecules/Video/Video.d.ts +14 -0
- package/dist/esm/src/molecules/Video/Video.stories.d.ts +9 -0
- package/dist/esm/src/molecules/index.d.ts +6 -0
- package/dist/esm/src/organisms/AccountInformation/AccountInformation.d.ts +2 -2
- package/dist/esm/src/organisms/Body/Body.d.ts +1 -1
- package/dist/esm/src/organisms/Body/Body.stories.d.ts +1 -1
- package/dist/esm/src/organisms/Consent/ConsentCapture.d.ts +2 -1
- package/dist/esm/src/organisms/FeedContent/types.d.ts +2 -2
- package/dist/esm/src/organisms/Footer/Footer.stories.d.ts +2 -2
- package/dist/esm/src/organisms/Footer/styles.d.ts +9 -1
- package/dist/esm/src/organisms/Header/Header.stories.d.ts +2 -2
- package/dist/esm/src/organisms/Header/styles.d.ts +3 -2
- package/dist/esm/src/organisms/LoginForm/LoginForm.d.ts +1 -1
- package/dist/esm/src/organisms/ProcessTracker/mocks.d.ts +1 -1
- package/dist/esm/src/organisms/ProfileInformation/ProfileInformation.d.ts +1 -2
- package/dist/esm/src/organisms/SetPasswordForm/SetPasswordForm.d.ts +1 -1
- package/dist/esm/src/organisms/SetPasswordForm/utils.d.ts +2 -2
- package/dist/esm/src/organisms/SubscribePanel/SubscribePanel.stories.d.ts +6 -4
- package/dist/esm/src/organisms/SubscribePanel/organism-data.d.ts +2 -0
- package/dist/esm/src/organisms/TwoFactorAuth/constants.d.ts +1 -1
- package/dist/esm/src/theme/types.d.ts +4 -3
- package/dist/esm/src/typescript.d.ts +10 -0
- package/dist/index.d.ts +1080 -552
- package/package.json +3 -2
- package/dist/cjs/src/atoms/Buttons/Button.d.ts +0 -20
- package/dist/cjs/src/atoms/Image/Image.d.ts +0 -8
- package/dist/cjs/src/atoms/Image/Image.stories.d.ts +0 -8
- package/dist/cjs/src/atoms/Select/types.d.ts +0 -14
- package/dist/cjs/src/atoms/Video/Video.d.ts +0 -11
- package/dist/cjs/src/atoms/Video/Video.stories.d.ts +0 -9
- package/dist/cjs/src/molecules/Tab/Tab.d.ts +0 -24
- package/dist/esm/src/atoms/Buttons/Button.d.ts +0 -20
- package/dist/esm/src/atoms/Image/Image.d.ts +0 -8
- package/dist/esm/src/atoms/Image/Image.stories.d.ts +0 -8
- package/dist/esm/src/atoms/Select/types.d.ts +0 -14
- package/dist/esm/src/atoms/Video/Video.d.ts +0 -11
- package/dist/esm/src/atoms/Video/Video.stories.d.ts +0 -9
- package/dist/esm/src/molecules/Tab/Tab.d.ts +0 -24
package/dist/index.d.ts
CHANGED
|
@@ -1,28 +1,25 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
|
-
import React__default, { PropsWithChildren, ReactNode, CSSProperties as CSSProperties$1, ComponentType
|
|
3
|
+
import React__default, { PropsWithChildren, ReactNode, Dispatch, SetStateAction, CSSProperties as CSSProperties$1, ComponentType } from 'react';
|
|
4
4
|
import * as styled_components from 'styled-components';
|
|
5
5
|
import { CSSProperties, DefaultTheme } from 'styled-components';
|
|
6
|
-
import {
|
|
6
|
+
import { ThemeColors as ThemeColors$1, SizesTypes as SizesTypes$1, FontSizesTypes as FontSizesTypes$2 } from 'theme';
|
|
7
|
+
import * as typescript from 'typescript';
|
|
8
|
+
import { StylesType, Callback as Callback$1, OverrideStyles, StyledTransientProps, Nullable, StrictUnion } from 'typescript';
|
|
9
|
+
import { RefCallBack, Control as Control$1, ControllerProps as ControllerProps$1 } from 'react-hook-form/dist/types';
|
|
7
10
|
import { IconNames as IconNames$1 } from 'atoms/Icon/Icon';
|
|
8
|
-
import { InputFieldTypes as InputFieldTypes$1, FieldTypes as FieldTypes$1, UIFields as UIFields$
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { DrawerProps as DrawerProps$1 } from '@mui/material';
|
|
12
|
-
import { FontSizesTypes as FontSizesTypes$1, ThemeColors as ThemeColors$1, SizesTypes as SizesTypes$2, BreakpointSizesTypes as BreakpointSizesTypes$1 } from 'theme/types';
|
|
13
|
-
import { ThemeColors as ThemeColors$2, SizesTypes as SizesTypes$1, FontSizesTypes as FontSizesTypes$2 } from 'theme';
|
|
14
|
-
import { FeedContentTemplateTypes as FeedContentTemplateTypes$1, FeedContentProps as FeedContentProps$1 } from 'organisms/FeedContent/types';
|
|
11
|
+
import { InputFieldTypes as InputFieldTypes$1, FieldTypes as FieldTypes$1, UIFields as UIFields$2 } from 'fieldsConfiguration/types';
|
|
12
|
+
import { ThemeColors as ThemeColors$2, FontSizesTypes as FontSizesTypes$1, SizesTypes as SizesTypes$2, BreakpointSizesTypes as BreakpointSizesTypes$1 } from 'theme/types';
|
|
13
|
+
import { BaseButtonProps as BaseButtonProps$1, MenuItem as MenuItem$1, HeroImageProps as HeroImageProps$1, ColumnsProps as ColumnsProps$1, EmphasizedTextProps as EmphasizedTextProps$1, TabGroupProps as TabGroupProps$1, AvatarDropdownProps as AvatarDropdownProps$1, ButtonProps as ButtonProps$1, FeedContentHeaderProps as FeedContentHeaderProps$1, AlertProps as AlertProps$1, BottomNaVBarItemProps as BottomNaVBarItemProps$1, InputFieldProps as InputFieldProps$1, SelectFieldProps as SelectFieldProps$1, FieldSectionProps as FieldSectionProps$1, MenuItemsProps as MenuItemsProps$1, ImageProps as ImageProps$1, TextMoleculeProps as TextMoleculeProps$1, RadioButtonFieldProps as RadioButtonFieldProps$1, CheckboxFieldProps as CheckboxFieldProps$1 } from 'molecules';
|
|
15
14
|
import { TooltipProps as TooltipProps$1 } from 'rc-tooltip/lib/Tooltip';
|
|
16
15
|
import { WithGoogleMapProps } from 'react-google-maps/lib/withGoogleMap';
|
|
17
16
|
import { WithScriptjsProps } from 'react-google-maps/lib/withScriptjs';
|
|
18
|
-
import
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import { SetPasswordFields, MaxRuleValidation, MinRuleValidation } from 'organisms/SetPasswordForm/types';
|
|
25
|
-
import { UIFields as UIFields$2 } from 'fieldsConfiguration';
|
|
17
|
+
import * as atoms from 'atoms';
|
|
18
|
+
import { TextProps as TextProps$1, IconNames as IconNames$2, TouchableOpacityProps as TouchableOpacityProps$1, AvatarProps as AvatarProps$1, TabProps as TabProps$1, RadioButtonsProps as RadioButtonsProps$1, SelectOption as SelectOption$1, InputProps as InputProps$1, SelectProps as SelectProps$1, RegularImageProps as RegularImageProps$1, TextButtonProps as TextButtonProps$1, TabTheme as TabTheme$1, RadioButtonInternalConfigProps as RadioButtonInternalConfigProps$1, HorizontalButtonsProps as HorizontalButtonsProps$1, IconProps as IconProps$1 } from 'atoms';
|
|
19
|
+
import { RadioGroup, DrawerProps as DrawerProps$1 } from '@mui/material';
|
|
20
|
+
import { UIFields as UIFields$1, UIField as UIField$1 } from 'fieldsConfiguration';
|
|
21
|
+
import { MaxRuleValidation, MinRuleValidation, SetPasswordFields } from 'organisms/SetPasswordForm/types';
|
|
22
|
+
import { ConsentProps as ConsentProps$1, FilteredFeedContentType as FilteredFeedContentType$1, HeroSliderProps as HeroSliderProps$1, ProcessTrackerProps as ProcessTrackerProps$1, ProcessTrackerStatus as ProcessTrackerStatus$1 } from 'organisms';
|
|
26
23
|
import { ConsentProps as ConsentProps$2 } from 'organisms/Consent/Consent';
|
|
27
24
|
import { FooterAProps } from 'organisms/Footer/FooterA';
|
|
28
25
|
import { FooterBProps } from 'organisms/Footer/FooterB';
|
|
@@ -32,28 +29,18 @@ import { FeedContentContainerProps as FeedContentContainerProps$1 } from 'organi
|
|
|
32
29
|
import { SubscribePanelProps as SubscribePanelProps$1 } from 'organisms/SubscribePanel/type';
|
|
33
30
|
import { ISIAProps } from 'organisms/ISI/ISIA';
|
|
34
31
|
import { HeaderAProps as HeaderAProps$1 } from 'organisms/Header/HeaderA';
|
|
32
|
+
import { FeedContentProps as FeedContentProps$1, FeedContentTemplateTypes as FeedContentTemplateTypes$1 } from 'organisms/FeedContent/types';
|
|
33
|
+
import * as react_hook_form from 'react-hook-form';
|
|
34
|
+
import { Control, ControllerProps, DeepPartial, FieldValues, FormState, UseFormReturn, ValidationMode } from 'react-hook-form';
|
|
35
35
|
import { AlertProps as AlertProps$2 } from 'molecules/Alert/Alert';
|
|
36
36
|
import { LoginFields as LoginFields$1 } from 'organisms/LoginForm/types';
|
|
37
37
|
import { AnnotationsList as AnnotationsList$1 } from 'contexts/MlrRichTextViewerContext/types';
|
|
38
38
|
import * as contexts_MlrRichTextViewerContext_MlrRichTextViewerContext from 'contexts/MlrRichTextViewerContext/MlrRichTextViewerContext';
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
fullWidth?: boolean;
|
|
45
|
-
size?: 'medium' | 'small';
|
|
46
|
-
}>;
|
|
47
|
-
declare type ButtonProps = BaseButtonProps & {
|
|
48
|
-
fullWidth?: boolean;
|
|
49
|
-
text?: string;
|
|
50
|
-
link?: string;
|
|
51
|
-
elementId?: string;
|
|
52
|
-
loading?: boolean;
|
|
53
|
-
isRichText?: boolean;
|
|
54
|
-
containerStyle?: CSSProperties;
|
|
55
|
-
};
|
|
56
|
-
declare const Button: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children, size, }: ButtonProps) => JSX.Element | null;
|
|
39
|
+
export * from 'helpers/constants';
|
|
40
|
+
import { CheckboxInternalConfigProps as CheckboxInternalConfigProps$1 } from 'atoms/Checkbox/types';
|
|
41
|
+
import { ContainerProps as ContainerProps$1, ContainerComponentProps as ContainerComponentProps$1, Molecule as Molecule$1 } from 'containers';
|
|
42
|
+
import * as containers_types_types from 'containers/types/types';
|
|
43
|
+
import { ContainerProps as ContainerProps$2 } from 'containers/types/types';
|
|
57
44
|
|
|
58
45
|
declare type TouchableOpacityProps = PropsWithChildren<{
|
|
59
46
|
activeOpacity?: number;
|
|
@@ -68,32 +55,70 @@ declare const TouchableOpacity: styled_components.StyledComponent<"div", styled_
|
|
|
68
55
|
children?: React$1.ReactNode;
|
|
69
56
|
}, never>;
|
|
70
57
|
|
|
71
|
-
declare type
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
58
|
+
declare type CheckboxInternalConfigProps = Partial<{
|
|
59
|
+
selectedCheckboxBackgroundColor: ThemeColors$1 | string;
|
|
60
|
+
selectedCheckboxIconColor: ThemeColors$1 | string;
|
|
61
|
+
buttonPadding: number;
|
|
62
|
+
textPadding: number;
|
|
63
|
+
styles: StylesType;
|
|
64
|
+
wrapperStyles: StylesType;
|
|
65
|
+
buttonOptionSpacing?: SizesTypes$1;
|
|
66
|
+
}>;
|
|
67
|
+
|
|
68
|
+
declare type CheckboxProps = {
|
|
69
|
+
id: string;
|
|
70
|
+
onClick: (id: string) => void;
|
|
71
|
+
label: string;
|
|
72
|
+
} & Partial<{
|
|
73
|
+
isError: boolean;
|
|
74
|
+
disabled: boolean;
|
|
75
|
+
isEditMode: boolean;
|
|
76
|
+
isSelected: boolean;
|
|
77
|
+
isRichText: boolean;
|
|
78
|
+
internalConfig: CheckboxInternalConfigProps;
|
|
79
|
+
}>;
|
|
80
|
+
declare const Checkbox: ({ id, onClick, label, isError, disabled, isEditMode, isSelected, isRichText, internalConfig, }: CheckboxProps) => JSX.Element;
|
|
79
81
|
|
|
80
82
|
declare type SelectOption = {
|
|
81
83
|
id: string;
|
|
82
84
|
label: string;
|
|
83
85
|
};
|
|
84
|
-
declare type
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
86
|
+
declare type SelectInternalConfigurationOptions = {
|
|
87
|
+
placeholderTextColor: ThemeColors$1 | string;
|
|
88
|
+
placeholderTextFontSize: number;
|
|
89
|
+
selectedTextColor: ThemeColors$1 | string;
|
|
90
|
+
selectedTextFontSize: number;
|
|
91
|
+
verticalPadding: number;
|
|
92
|
+
horizontalPadding: number;
|
|
93
|
+
wrapperStyles: StylesType;
|
|
94
|
+
styles: StylesType;
|
|
95
|
+
};
|
|
96
|
+
declare type SelectProps = Partial<{
|
|
97
|
+
ref: RefCallBack;
|
|
98
|
+
onBlur: Callback$1;
|
|
99
|
+
value: string;
|
|
100
|
+
optionsPresentation: boolean;
|
|
101
|
+
onChange: (value: string) => void;
|
|
102
|
+
placeholder: string;
|
|
103
|
+
disabled: boolean;
|
|
104
|
+
options: SelectOption[];
|
|
105
|
+
isError: boolean;
|
|
106
|
+
isEditMode: boolean;
|
|
107
|
+
selectInternalConfig: SelectInternalConfigurationOptions;
|
|
108
|
+
isRichText: boolean;
|
|
109
|
+
}>;
|
|
110
|
+
declare const Select: ({ ref, onBlur, onChange, value, placeholder, options, disabled, optionsPresentation, isError, selectInternalConfig, isRichText, }: SelectProps) => JSX.Element;
|
|
111
|
+
|
|
112
|
+
declare type InputFieldInternalConfigProps = Partial<{
|
|
113
|
+
textColor: ThemeColors$2 | string;
|
|
114
|
+
textFontSize: number;
|
|
115
|
+
placeholderTextColor: ThemeColors$2 | string;
|
|
116
|
+
placeholderTextFontSize: number;
|
|
117
|
+
verticalPadding: number;
|
|
118
|
+
horizontalPadding: number;
|
|
119
|
+
styles: StylesType;
|
|
120
|
+
wrapperStyles: StylesType;
|
|
121
|
+
}>;
|
|
97
122
|
declare type InputIconProps = {
|
|
98
123
|
name: IconNames$1;
|
|
99
124
|
onClick?: Callback$1;
|
|
@@ -111,54 +136,62 @@ declare type InputProps = {
|
|
|
111
136
|
maxLength?: number;
|
|
112
137
|
onChange?: (value: string) => void;
|
|
113
138
|
onKeyDown?: (event: React__default.KeyboardEvent<HTMLInputElement>) => void;
|
|
139
|
+
internalConfig?: InputFieldInternalConfigProps;
|
|
114
140
|
};
|
|
115
|
-
declare const Input: ({ value, leftIcon, rightIcon, onChange, onBlur, disabled, isError, placeholder, isEditMode, type, ...rest }: InputProps) => JSX.Element;
|
|
141
|
+
declare const Input: ({ value, leftIcon, rightIcon, onChange, onBlur, disabled, isError, placeholder, isEditMode, type, internalConfig, ...rest }: InputProps) => JSX.Element;
|
|
116
142
|
|
|
117
143
|
declare type TextTypes = 'primary' | 'secondary' | 'error' | 'success';
|
|
118
144
|
declare type TextAlign = 'center' | 'right' | 'left';
|
|
119
|
-
declare type
|
|
120
|
-
|
|
145
|
+
declare type SeoTags = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';
|
|
146
|
+
declare type TextProps = {
|
|
121
147
|
variant: FontSizesTypes$1;
|
|
122
148
|
layout?: 'div' | 'span';
|
|
123
149
|
type?: TextTypes;
|
|
124
150
|
styles?: StylesType;
|
|
125
|
-
color?: ThemeColors$
|
|
151
|
+
color?: ThemeColors$2 | string;
|
|
126
152
|
numberOfLines?: number;
|
|
127
153
|
textAlign?: TextAlign;
|
|
128
154
|
behaveAs?: 'text' | 'button';
|
|
155
|
+
seoTag?: SeoTags;
|
|
129
156
|
};
|
|
130
|
-
declare
|
|
157
|
+
declare type TextWrapperProps = PropsWithChildren<TextProps>;
|
|
158
|
+
declare const TextWrapper: ({ children, seoTag, ...textProps }: TextWrapperProps) => JSX.Element;
|
|
159
|
+
declare const ErrorText: ({ text }: {
|
|
160
|
+
text: string;
|
|
161
|
+
}) => JSX.Element;
|
|
131
162
|
|
|
132
163
|
declare type IconProps = {
|
|
133
164
|
name: IconNames;
|
|
134
165
|
size?: number;
|
|
135
|
-
color?: ThemeColors$
|
|
136
|
-
fill?: ThemeColors$
|
|
166
|
+
color?: ThemeColors$1 | string;
|
|
167
|
+
fill?: ThemeColors$1 | string;
|
|
137
168
|
pointerEvents?: 'auto' | 'none';
|
|
138
|
-
style?:
|
|
169
|
+
style?: CSSProperties;
|
|
139
170
|
};
|
|
140
171
|
declare const availableIcons: {
|
|
141
|
-
|
|
142
|
-
|
|
172
|
+
ArrowRight: ({ color, ...props }: Omit<IconProps, "name">) => JSX.Element;
|
|
173
|
+
Bell: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
|
|
174
|
+
Bookmark: ({ fill, color, size, ...props }: Omit<IconProps, "name">) => JSX.Element;
|
|
175
|
+
CaretDown: ({ color, size, }: Omit<IconProps, "name">) => JSX.Element;
|
|
143
176
|
CaretLeft: ({ color, size, ...props }: Omit<IconProps, "name">) => JSX.Element;
|
|
144
177
|
CaretRight: ({ color, size, ...props }: Omit<IconProps, "name">) => JSX.Element;
|
|
145
|
-
|
|
146
|
-
Check: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
|
|
147
|
-
|
|
148
|
-
|
|
178
|
+
CaretUp: ({ color, ...props }: Omit<IconProps, "name">) => JSX.Element;
|
|
179
|
+
Check: ({ size, color, }: Omit<IconProps, "name">) => JSX.Element;
|
|
180
|
+
Close: ({ size, color, }: Omit<IconProps, "name">) => JSX.Element;
|
|
181
|
+
Edit: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
|
|
182
|
+
Filter: ({ size, color, }: Omit<IconProps, "name">) => JSX.Element;
|
|
149
183
|
Hide: ({ color, size }: Omit<IconProps, "name">) => JSX.Element;
|
|
150
|
-
|
|
151
|
-
Play: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
|
|
152
|
-
Minus: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
|
|
184
|
+
Info: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
|
|
153
185
|
InfoBoxIcon: ({ color, size }: Omit<IconProps, "name">) => JSX.Element;
|
|
154
|
-
Warning: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
|
|
155
|
-
Bell: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
|
|
156
|
-
Mobile: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
|
|
157
186
|
Mail: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
|
|
158
187
|
Menu: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
|
|
188
|
+
Minus: ({ size, color, }: Omit<IconProps, "name">) => JSX.Element;
|
|
189
|
+
Mobile: ({ size, color, }: Omit<IconProps, "name">) => JSX.Element;
|
|
190
|
+
Play: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
|
|
191
|
+
Save: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
|
|
159
192
|
Search: ({ size, color, ...props }: Omit<IconProps, "name">) => JSX.Element;
|
|
160
|
-
|
|
161
|
-
|
|
193
|
+
View: ({ color, size, }: Omit<IconProps, "name">) => JSX.Element;
|
|
194
|
+
Warning: ({ size, color, }: Omit<IconProps, "name">) => JSX.Element;
|
|
162
195
|
};
|
|
163
196
|
declare type IconNames = keyof typeof availableIcons;
|
|
164
197
|
declare const Icon: ({ name, color, ...props }: IconProps) => JSX.Element;
|
|
@@ -171,37 +204,43 @@ declare type SpacerProps = {
|
|
|
171
204
|
declare const Spacer: styled_components.StyledComponent<"div", styled_components.DefaultTheme, SpacerProps, never>;
|
|
172
205
|
|
|
173
206
|
declare const Spinner: styled_components.StyledComponent<"div", styled_components.DefaultTheme, {
|
|
174
|
-
color?: ThemeColors$
|
|
207
|
+
color?: ThemeColors$2 | undefined;
|
|
175
208
|
size?: SizesTypes$2 | undefined;
|
|
176
209
|
}, never>;
|
|
177
210
|
|
|
178
|
-
declare type
|
|
211
|
+
declare type RegularImageProps = {
|
|
179
212
|
src: string;
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
213
|
+
} & Partial<{
|
|
214
|
+
alt: string;
|
|
215
|
+
width: number | string;
|
|
216
|
+
height: number | string;
|
|
217
|
+
onClick: Callback$1;
|
|
218
|
+
cornerRadius: number;
|
|
219
|
+
}> & OverrideStyles;
|
|
220
|
+
declare const RegularImage: styled_components.StyledComponent<"img", styled_components.DefaultTheme, {
|
|
221
|
+
src: string;
|
|
222
|
+
} & Partial<{
|
|
223
|
+
alt: string;
|
|
224
|
+
width: number | string;
|
|
225
|
+
height: number | string;
|
|
226
|
+
onClick: Callback$1;
|
|
227
|
+
cornerRadius: number;
|
|
228
|
+
}> & OverrideStyles, never>;
|
|
229
|
+
declare const BackgroundImage: styled_components.StyledComponent<"img", styled_components.DefaultTheme, {
|
|
230
|
+
src: string;
|
|
231
|
+
} & Partial<{
|
|
232
|
+
alt: string;
|
|
233
|
+
width: number | string;
|
|
234
|
+
height: number | string;
|
|
235
|
+
onClick: Callback$1;
|
|
236
|
+
cornerRadius: number;
|
|
237
|
+
}> & OverrideStyles, never>;
|
|
185
238
|
|
|
186
|
-
declare type TextButtonProps =
|
|
187
|
-
activeOpacity?: number;
|
|
188
|
-
withoutOpacityEffect?: boolean;
|
|
189
|
-
disabled?: boolean;
|
|
190
|
-
onClick?: Callback$1;
|
|
239
|
+
declare type TextButtonProps = Pick<BaseButtonProps$1, 'disabled' | 'onClick' | 'children' | 'colorTheme' | 'size'> & {
|
|
191
240
|
buttonLink?: string;
|
|
192
241
|
elementId?: string;
|
|
193
|
-
}
|
|
194
|
-
declare const TextButton: styled_components.StyledComponent<"
|
|
195
|
-
activeOpacity?: number | undefined;
|
|
196
|
-
withoutOpacityEffect?: boolean | undefined;
|
|
197
|
-
disabled?: boolean | undefined;
|
|
198
|
-
} & {
|
|
199
|
-
children?: React$1.ReactNode;
|
|
200
|
-
} & {
|
|
201
|
-
activeOpacity?: number | undefined;
|
|
202
|
-
withoutOpacityEffect?: boolean | undefined;
|
|
203
|
-
disabled?: boolean | undefined;
|
|
204
|
-
onClick?: Callback$1 | undefined;
|
|
242
|
+
};
|
|
243
|
+
declare const TextButton: styled_components.StyledComponent<"a", styled_components.DefaultTheme, Pick<BaseButtonProps$1, "children" | "onClick" | "disabled" | "size" | "colorTheme"> & {
|
|
205
244
|
buttonLink?: string | undefined;
|
|
206
245
|
elementId?: string | undefined;
|
|
207
246
|
}, never>;
|
|
@@ -213,18 +252,11 @@ declare type ValidationTagProps = {
|
|
|
213
252
|
};
|
|
214
253
|
declare const ValidationTag: ({ text, status }: ValidationTagProps) => JSX.Element;
|
|
215
254
|
|
|
216
|
-
declare type
|
|
217
|
-
|
|
218
|
-
style?: CSSProperties;
|
|
219
|
-
template?: FeedContentTemplateTypes$1;
|
|
220
|
-
autoplay?: boolean;
|
|
221
|
-
coverImage?: string;
|
|
255
|
+
declare type TooltipProps = Pick<TooltipProps$1, 'overlay' | 'placement' | 'trigger' | 'visible' | 'children'> & {
|
|
256
|
+
styles?: StylesType;
|
|
222
257
|
};
|
|
223
|
-
declare const
|
|
224
|
-
|
|
225
|
-
declare type TooltipProps = Pick<TooltipProps$1, 'overlay' | 'placement' | 'trigger' | 'visible' | 'children'>;
|
|
226
|
-
declare const StyleWrapper: styled_components.StyledComponent<"div", styled_components.DefaultTheme, {}, never>;
|
|
227
|
-
declare const Tooltip: ({ trigger, placement, ...props }: TooltipProps) => JSX.Element;
|
|
258
|
+
declare const StyleWrapper: styled_components.StyledComponent<"div", styled_components.DefaultTheme, OverrideStyles, never>;
|
|
259
|
+
declare const Tooltip: ({ trigger, placement, styles, ...props }: TooltipProps) => JSX.Element;
|
|
228
260
|
|
|
229
261
|
declare type ToastType = 'success' | 'infoTierOne' | 'infoTierTwo' | 'warning' | 'error';
|
|
230
262
|
declare type ToastParams = {
|
|
@@ -251,10 +283,10 @@ declare type AvatarProps = {
|
|
|
251
283
|
size?: SizesTypes$1 | number;
|
|
252
284
|
withShadow?: boolean;
|
|
253
285
|
label?: string;
|
|
254
|
-
backgroundColor?: ThemeColors$
|
|
286
|
+
backgroundColor?: ThemeColors$1;
|
|
255
287
|
textConfig?: {
|
|
256
|
-
color?: ThemeColors$
|
|
257
|
-
font?:
|
|
288
|
+
color?: ThemeColors$1;
|
|
289
|
+
font?: FontSizesTypes$2;
|
|
258
290
|
};
|
|
259
291
|
content: {
|
|
260
292
|
initials?: string;
|
|
@@ -273,7 +305,7 @@ declare const VerticalPadding: styled_components.StyledComponent<"div", styled_c
|
|
|
273
305
|
|
|
274
306
|
declare type DividerProps = {
|
|
275
307
|
type?: 'horizontal' | 'vertical';
|
|
276
|
-
color?: ThemeColors$
|
|
308
|
+
color?: ThemeColors$1 | string;
|
|
277
309
|
marginVertical?: SizesTypes$1 | number;
|
|
278
310
|
marginHorizontal?: SizesTypes$1 | number;
|
|
279
311
|
weight?: number;
|
|
@@ -299,28 +331,63 @@ declare const COMMUNICATION_LINK_DATA_TEXT = "communication-link-text";
|
|
|
299
331
|
declare type RichTextEditorProps = Partial<{
|
|
300
332
|
value: string;
|
|
301
333
|
font: FontSizesTypes$2;
|
|
302
|
-
color: ThemeColors$
|
|
303
|
-
textStyles:
|
|
334
|
+
color: ThemeColors$1 | string;
|
|
335
|
+
textStyles: StylesType;
|
|
304
336
|
numberOfLines?: number;
|
|
337
|
+
extraTextProps?: TextProps$1;
|
|
305
338
|
}>;
|
|
306
|
-
declare const RichTextViewer: ({ value, color, textStyles, font, numberOfLines, }: RichTextEditorProps) => JSX.Element | null;
|
|
307
|
-
|
|
308
|
-
declare type
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
339
|
+
declare const RichTextViewer: ({ value, color, textStyles, font, numberOfLines, extraTextProps, }: RichTextEditorProps) => JSX.Element | null;
|
|
340
|
+
|
|
341
|
+
declare type RadioButtonInternalConfigProps = Partial<{
|
|
342
|
+
selectedRadioOptionBackgroundColor: ThemeColors$1 | string;
|
|
343
|
+
selectedRadioOptionIndicatorColor: ThemeColors$1 | string;
|
|
344
|
+
buttonPadding: number;
|
|
345
|
+
textPadding: number;
|
|
346
|
+
styles: StylesType;
|
|
347
|
+
wrapperStyles: StylesType;
|
|
348
|
+
buttonOptionSpacing: SizesTypes$1;
|
|
349
|
+
radioGroupWrapperStyles: StylesType;
|
|
350
|
+
}>;
|
|
351
|
+
declare type RadioButtonsProps<T extends string> = Partial<{
|
|
352
|
+
ref: RefCallBack;
|
|
353
|
+
name: string;
|
|
318
354
|
value: T;
|
|
319
|
-
|
|
320
|
-
|
|
355
|
+
options: SelectOption[];
|
|
356
|
+
onBlur: Callback$1;
|
|
357
|
+
onChange: (value: T) => void;
|
|
358
|
+
isRow: boolean;
|
|
359
|
+
isError: boolean;
|
|
360
|
+
disabled: boolean;
|
|
361
|
+
isEditMode: boolean;
|
|
362
|
+
isRichText: boolean;
|
|
363
|
+
internalConfig: RadioButtonInternalConfigProps;
|
|
364
|
+
}>;
|
|
365
|
+
declare const RadioButtons: <T extends string>({ ref, name, value, options, onBlur, onChange, isRow, isError, disabled, isEditMode, isRichText, internalConfig, }: Partial<{
|
|
366
|
+
ref: RefCallBack;
|
|
321
367
|
name: string;
|
|
322
|
-
|
|
323
|
-
|
|
368
|
+
value: T;
|
|
369
|
+
options: SelectOption[];
|
|
370
|
+
onBlur: Callback$1;
|
|
371
|
+
onChange: (value: T) => void;
|
|
372
|
+
isRow: boolean;
|
|
373
|
+
isError: boolean;
|
|
374
|
+
disabled: boolean;
|
|
375
|
+
isEditMode: boolean;
|
|
376
|
+
isRichText: boolean;
|
|
377
|
+
internalConfig: Partial<{
|
|
378
|
+
selectedRadioOptionBackgroundColor: ThemeColors$1 | string;
|
|
379
|
+
selectedRadioOptionIndicatorColor: ThemeColors$1 | string;
|
|
380
|
+
buttonPadding: number;
|
|
381
|
+
textPadding: number;
|
|
382
|
+
styles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
|
|
383
|
+
wrapperStyles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
|
|
384
|
+
buttonOptionSpacing: SizesTypes$1;
|
|
385
|
+
radioGroupWrapperStyles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
|
|
386
|
+
}>;
|
|
387
|
+
}>) => JSX.Element;
|
|
388
|
+
declare const RadioGroupWrapper: styled_components.StyledComponent<typeof RadioGroup, styled_components.DefaultTheme, StyledTransientProps<{
|
|
389
|
+
isRow: boolean;
|
|
390
|
+
}> & OverrideStyles, never>;
|
|
324
391
|
|
|
325
392
|
declare type CircleType = 'link' | 'message';
|
|
326
393
|
declare type CircleBoxProps = {
|
|
@@ -331,8 +398,8 @@ declare const Circle: ({ index, type }: CircleBoxProps) => JSX.Element;
|
|
|
331
398
|
|
|
332
399
|
declare type CircularIndicatorProps = {
|
|
333
400
|
active: boolean;
|
|
334
|
-
activeColor?: ThemeColors$
|
|
335
|
-
inactiveColor?: ThemeColors$
|
|
401
|
+
activeColor?: ThemeColors$1 | string;
|
|
402
|
+
inactiveColor?: ThemeColors$1 | string;
|
|
336
403
|
};
|
|
337
404
|
declare const CircularIndicator: ({ activeColor, inactiveColor, ...props }: CircularIndicatorProps) => JSX.Element;
|
|
338
405
|
declare const CircularIndicatorStyledComponent: styled_components.StyledComponent<"span", styled_components.DefaultTheme, CircularIndicatorProps, never>;
|
|
@@ -341,430 +408,134 @@ declare type IconButtonProps = {
|
|
|
341
408
|
name: IconNames$2;
|
|
342
409
|
size?: number;
|
|
343
410
|
onClick: Callback$1;
|
|
344
|
-
color?: ThemeColors$
|
|
345
|
-
fill?: ThemeColors$
|
|
411
|
+
color?: ThemeColors$1 | string;
|
|
412
|
+
fill?: ThemeColors$1 | string;
|
|
346
413
|
pointerEvents?: 'auto' | 'none';
|
|
347
414
|
};
|
|
348
415
|
declare const IconButton: ({ name, color, onClick, disabled, activeOpacity, withoutOpacityEffect, ...props }: IconButtonProps & TouchableOpacityProps$1) => JSX.Element;
|
|
349
416
|
|
|
350
|
-
declare type
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
isTooltipVisible?: boolean;
|
|
356
|
-
ruleLabel?: FieldRuleLabelTypes;
|
|
357
|
-
};
|
|
358
|
-
declare const FieldLabels: ({ label, isTooltipVisible, isError, ruleLabel, tooltipText, }: FieldLabelsProps) => JSX.Element;
|
|
359
|
-
|
|
360
|
-
declare type InputFieldProps = {
|
|
361
|
-
name: string;
|
|
362
|
-
control?: Control<any>;
|
|
363
|
-
rules?: ControllerProps['rules'];
|
|
364
|
-
required?: boolean;
|
|
365
|
-
optional?: boolean;
|
|
366
|
-
defaultValue?: string;
|
|
367
|
-
inputProps: InputProps$1;
|
|
368
|
-
styles?: CSSProperties;
|
|
369
|
-
labelsProps?: FieldLabelsProps;
|
|
417
|
+
declare type TabOption<T = string> = {
|
|
418
|
+
menuText: string;
|
|
419
|
+
menuKey: T;
|
|
420
|
+
onMenuClick?: (key: T) => void;
|
|
421
|
+
isSelected?: boolean;
|
|
370
422
|
};
|
|
371
|
-
declare
|
|
372
|
-
|
|
373
|
-
declare
|
|
423
|
+
declare type TabElement = HTMLDivElement | null;
|
|
424
|
+
declare type TabTheme = 'light' | 'dark';
|
|
425
|
+
declare type TabProps<T = string, K = string> = {
|
|
426
|
+
tabKey: T;
|
|
427
|
+
text: string;
|
|
428
|
+
} & Partial<{
|
|
429
|
+
disabled: boolean;
|
|
430
|
+
vertical: boolean;
|
|
431
|
+
isActive: boolean;
|
|
432
|
+
onClick: (key: T) => void;
|
|
433
|
+
options: MenuItem$1<K>[];
|
|
434
|
+
onOptionClick: (optionKey: K) => void;
|
|
435
|
+
tabTheme: TabTheme;
|
|
436
|
+
divider: boolean;
|
|
437
|
+
tabFont: FontSizesTypes$2;
|
|
438
|
+
textSize: number;
|
|
439
|
+
tabPadding: SizesTypes$1 | number;
|
|
440
|
+
defaultTabTextColor: ThemeColors$1 | string;
|
|
441
|
+
selectedTabTextColor: ThemeColors$1 | string;
|
|
442
|
+
selectedTabIndicatorColor: ThemeColors$1 | string;
|
|
443
|
+
styles: StylesType;
|
|
444
|
+
}>;
|
|
445
|
+
declare const ZealTab: <T extends string, K extends string>({ options, onClick, text, tabKey, vertical, onOptionClick, tabTheme, tabFont, tabPadding, selectedTabIndicatorColor, textSize, defaultTabTextColor, ...tabProps }: TabProps<T, K>, ref: React__default.ForwardedRef<TabElement>) => JSX.Element;
|
|
446
|
+
declare const Tab: <T, K>(props: {
|
|
447
|
+
tabKey: T;
|
|
448
|
+
text: string;
|
|
449
|
+
} & Partial<{
|
|
450
|
+
disabled: boolean;
|
|
451
|
+
vertical: boolean;
|
|
452
|
+
isActive: boolean;
|
|
453
|
+
onClick: (key: T) => void;
|
|
454
|
+
options: MenuItem$1<K>[];
|
|
455
|
+
onOptionClick: (optionKey: K) => void;
|
|
456
|
+
tabTheme: TabTheme;
|
|
457
|
+
divider: boolean;
|
|
458
|
+
tabFont: FontSizesTypes$2;
|
|
459
|
+
textSize: number;
|
|
460
|
+
tabPadding: SizesTypes$1 | number;
|
|
461
|
+
defaultTabTextColor: ThemeColors$1 | string;
|
|
462
|
+
selectedTabTextColor: ThemeColors$1 | string;
|
|
463
|
+
selectedTabIndicatorColor: ThemeColors$1 | string;
|
|
464
|
+
styles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
|
|
465
|
+
}> & {
|
|
466
|
+
ref?: React__default.ForwardedRef<TabElement> | undefined;
|
|
467
|
+
}) => ReturnType<typeof ZealTab>;
|
|
374
468
|
|
|
375
|
-
declare type
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
name: T;
|
|
379
|
-
type: FieldTypes;
|
|
380
|
-
value?: string;
|
|
381
|
-
label?: string;
|
|
382
|
-
placeholder?: string;
|
|
383
|
-
required?: boolean;
|
|
384
|
-
optional?: boolean;
|
|
385
|
-
tooltip?: string;
|
|
386
|
-
rules?: ControllerProps$1['rules'];
|
|
387
|
-
order?: number;
|
|
388
|
-
};
|
|
389
|
-
declare type UIInputField = {
|
|
390
|
-
inputType?: InputFieldTypes;
|
|
391
|
-
maxLength?: number;
|
|
392
|
-
onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
393
|
-
};
|
|
394
|
-
declare type UISelectField = {
|
|
395
|
-
options?: SelectOption$1[];
|
|
469
|
+
declare type SetPasswordRuleValidation = {
|
|
470
|
+
label: string;
|
|
471
|
+
rule: MaxRuleValidation | MinRuleValidation;
|
|
396
472
|
};
|
|
397
|
-
declare type
|
|
398
|
-
|
|
473
|
+
declare type SetPasswordFormProps = {
|
|
474
|
+
fields: UIFields$1<SetPasswordFields>;
|
|
475
|
+
logoUrl: string;
|
|
476
|
+
isLoading?: boolean;
|
|
477
|
+
validations: SetPasswordRuleValidation[];
|
|
478
|
+
onSubmit: (values: SetPasswordFields) => void;
|
|
479
|
+
onBack: () => void;
|
|
399
480
|
};
|
|
400
|
-
declare
|
|
401
|
-
|
|
402
|
-
declare const getInitialValuesFromFields: <T extends object>(fields: UIFields$1<T>) => DeepPartial<T>;
|
|
403
|
-
declare const isFormValid: <T extends FieldValues>(formState: FormState<T>) => boolean;
|
|
404
|
-
declare const getFieldsFromFieldSections: <T extends object>(sections: Pick<FieldSectionProps$1<T>, "fields">[]) => UIFields$1<T>;
|
|
405
|
-
|
|
406
|
-
declare const acquisitionFormMockFields: UIFields$1<Record<string, string>>;
|
|
407
|
-
declare const setPasswordMockFields: UIFields$1<SetPasswordFields>;
|
|
408
|
-
declare const loginMockFields: UIFields$1<LoginFields$1>;
|
|
409
|
-
declare const sectionMockFields: UIFields$1<Record<string, string>>;
|
|
410
|
-
declare const profileInformationMockForm: {
|
|
411
|
-
label: string;
|
|
412
|
-
fields: UIFields$1<Record<string, string>>;
|
|
413
|
-
}[];
|
|
481
|
+
declare const SetPasswordForm: ({ logoUrl, fields, validations, onBack, onSubmit, isLoading, }: SetPasswordFormProps) => JSX.Element;
|
|
414
482
|
|
|
415
|
-
declare
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
483
|
+
declare const showAcceptToastMessage: () => void | undefined;
|
|
484
|
+
declare type AcquisitionFormProps<T extends object> = {
|
|
485
|
+
fields: UIFields$1<T>;
|
|
486
|
+
consents: ConsentProps$1[];
|
|
487
|
+
logoUrl: string;
|
|
488
|
+
isLoading?: boolean;
|
|
489
|
+
isSubmitDisabled?: boolean;
|
|
490
|
+
title: string;
|
|
491
|
+
description?: string;
|
|
492
|
+
buttonText?: string;
|
|
493
|
+
onSubmit: (values: T) => void;
|
|
494
|
+
onLinkButtonClick?: Callback$1;
|
|
495
|
+
showConsentLabel?: boolean;
|
|
496
|
+
triggerFormInitially?: boolean;
|
|
420
497
|
isTooltipVisible?: boolean;
|
|
421
498
|
optionsPresentation?: boolean;
|
|
422
|
-
styles?: React.CSSProperties;
|
|
423
499
|
};
|
|
424
|
-
declare const
|
|
500
|
+
declare const AcquisitionForm: <T extends object>({ logoUrl, title, description, buttonText, fields, optionsPresentation, onSubmit, showConsentLabel, onLinkButtonClick, isSubmitDisabled, consents, isLoading, triggerFormInitially, isTooltipVisible, }: AcquisitionFormProps<T>) => JSX.Element;
|
|
425
501
|
|
|
426
|
-
declare type
|
|
427
|
-
|
|
428
|
-
control?: Control<any>;
|
|
429
|
-
defaultValue?: boolean;
|
|
430
|
-
checkboxProps: Omit<CheckBoxProps, 'error' | 'onClick' | 'value'>;
|
|
502
|
+
declare type VerificationCodeForm = {
|
|
503
|
+
code: string;
|
|
431
504
|
};
|
|
432
|
-
declare
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
rules?: ControllerProps['rules'];
|
|
439
|
-
control?: Control<any>;
|
|
440
|
-
required?: boolean;
|
|
441
|
-
optional?: boolean;
|
|
442
|
-
defaultValue?: string;
|
|
443
|
-
styles?: CSSProperties;
|
|
505
|
+
declare type AuthMethod = 'email' | 'sms';
|
|
506
|
+
declare type TwoFactorAuthProps = {
|
|
507
|
+
logoUrl: string;
|
|
508
|
+
onNext?: (authMethod: AuthMethod) => Promise<void>;
|
|
509
|
+
onSubmit?: (values: VerificationCodeForm) => void;
|
|
510
|
+
onBack?: () => void;
|
|
444
511
|
};
|
|
445
|
-
declare const
|
|
512
|
+
declare const TwoFactorAuth: ({ logoUrl, onSubmit, onBack, onNext }: TwoFactorAuthProps) => JSX.Element;
|
|
446
513
|
|
|
447
|
-
declare type
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
declare type CustomValidationProps<T = string> = {
|
|
452
|
-
label?: string;
|
|
453
|
-
value: T;
|
|
454
|
-
isSubmitted?: boolean;
|
|
455
|
-
rules: CustomValidationRule<T>[];
|
|
514
|
+
declare type LoginFields = {
|
|
515
|
+
email: string;
|
|
516
|
+
password: string;
|
|
517
|
+
rememberMe: boolean;
|
|
456
518
|
};
|
|
457
|
-
declare const CustomValidation: <T extends string = string>({ rules, value, isSubmitted, label, }: CustomValidationProps<T>) => JSX.Element;
|
|
458
|
-
|
|
459
|
-
declare const defaultTheme: DefaultTheme;
|
|
460
519
|
|
|
461
|
-
declare
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
declare type ThemeSizesType = Record<SizesTypes, number>;
|
|
476
|
-
declare type ThemeDevicesType = Record<BreakpointSizesTypes, string>;
|
|
477
|
-
declare type ZealTheme = {
|
|
478
|
-
colors: ThemeColorsType;
|
|
479
|
-
fonts: Record<FontSizesTypes, number>;
|
|
480
|
-
sizes: ThemeSizesType;
|
|
481
|
-
devices: ThemeDevicesType;
|
|
520
|
+
declare type LoginFormProps = {
|
|
521
|
+
fields: UIFields$1<LoginFields>;
|
|
522
|
+
logoUrl: string;
|
|
523
|
+
isLoading?: boolean;
|
|
524
|
+
twoFactorAuthConfig?: {
|
|
525
|
+
twoFactorShow: boolean;
|
|
526
|
+
twoFactorAuthProps: TwoFactorAuthProps;
|
|
527
|
+
};
|
|
528
|
+
optionsPresentation?: boolean;
|
|
529
|
+
onSubmit: (values: LoginFields) => void;
|
|
530
|
+
onSignUpButtonClick?: Callback$1;
|
|
531
|
+
onForgotPasswordButtonClick?: Callback$1;
|
|
532
|
+
isTooltipVisible?: boolean;
|
|
533
|
+
consents: ConsentProps$2[];
|
|
482
534
|
};
|
|
535
|
+
declare const LoginForm: ({ logoUrl, fields, isTooltipVisible, onSubmit, optionsPresentation, onSignUpButtonClick, isLoading, twoFactorAuthConfig, consents, onForgotPasswordButtonClick, }: LoginFormProps) => JSX.Element;
|
|
483
536
|
|
|
484
|
-
declare
|
|
485
|
-
|
|
486
|
-
declare const useMediaQuery: (breakpointSize: BreakpointSizesTypes$1) => boolean;
|
|
487
|
-
|
|
488
|
-
declare type BaseSelectableProps<T> = {
|
|
489
|
-
iconName: IconNames;
|
|
490
|
-
infoText: string;
|
|
491
|
-
isActive?: boolean;
|
|
492
|
-
onClick?: (value: T) => void;
|
|
493
|
-
value: T;
|
|
494
|
-
};
|
|
495
|
-
|
|
496
|
-
declare type SelectableCardGroupProps<T> = {
|
|
497
|
-
cards: BaseSelectableProps<T>[];
|
|
498
|
-
handleChange?: (value: T | undefined) => void;
|
|
499
|
-
spacing?: SizesTypes;
|
|
500
|
-
initialValue?: T;
|
|
501
|
-
};
|
|
502
|
-
declare const SelectableCardGroup: <T extends string>({ cards, handleChange, spacing, initialValue, }: SelectableCardGroupProps<T>) => JSX.Element;
|
|
503
|
-
|
|
504
|
-
declare type HeroImageAlignment = 'left_aligned' | 'center_aligned';
|
|
505
|
-
declare type HeroImageTemplate = 'card' | 'full_width';
|
|
506
|
-
declare type HeroImageProps = {
|
|
507
|
-
type: 'hero_image';
|
|
508
|
-
backgroundImage: ImageProps$1;
|
|
509
|
-
mainHeading: string;
|
|
510
|
-
subHeading?: string;
|
|
511
|
-
button?: ButtonProps$1;
|
|
512
|
-
contentAlignment?: HeroImageAlignment;
|
|
513
|
-
horizontalPaddings?: number;
|
|
514
|
-
template?: HeroImageTemplate;
|
|
515
|
-
isMobile?: boolean;
|
|
516
|
-
height?: number;
|
|
517
|
-
};
|
|
518
|
-
declare const HeroImage: ({ backgroundImage, button, contentAlignment, mainHeading, horizontalPaddings, subHeading, template, isMobile, height, }: HeroImageProps) => JSX.Element;
|
|
519
|
-
|
|
520
|
-
declare type Anchor = 'top' | 'left' | 'bottom' | 'right';
|
|
521
|
-
declare type DrawerProps = DrawerProps$1 & {
|
|
522
|
-
anchor: Anchor;
|
|
523
|
-
padding?: SizesTypes$2 | number;
|
|
524
|
-
height?: number | string;
|
|
525
|
-
width?: number | string;
|
|
526
|
-
closeIconColor?: ThemeColors$1 | string;
|
|
527
|
-
};
|
|
528
|
-
|
|
529
|
-
declare const Drawer: ({ children, closeIconColor, ...props }: PropsWithChildren<DrawerProps>) => JSX.Element;
|
|
530
|
-
|
|
531
|
-
declare type ColumnsTemplateKeys = 'horizontal' | 'card' | 'with_image';
|
|
532
|
-
|
|
533
|
-
declare type ColumnsProps = {
|
|
534
|
-
type: 'columns';
|
|
535
|
-
columns: ColumnItem[];
|
|
536
|
-
containerStyles?: CSSProperties$1;
|
|
537
|
-
template?: ColumnsTemplateKeys;
|
|
538
|
-
};
|
|
539
|
-
declare type ColumnItem = {
|
|
540
|
-
title?: string;
|
|
541
|
-
mainContent?: string;
|
|
542
|
-
button?: TextButtonProps$1;
|
|
543
|
-
icon: string;
|
|
544
|
-
};
|
|
545
|
-
declare const Columns: ({ columns, containerStyles, template }: ColumnsProps) => JSX.Element;
|
|
546
|
-
|
|
547
|
-
declare type MenuItem<T> = {
|
|
548
|
-
id: T;
|
|
549
|
-
title: string;
|
|
550
|
-
onClick?: (id: T) => void;
|
|
551
|
-
};
|
|
552
|
-
declare type MenuItemsProps<T> = {
|
|
553
|
-
title?: string;
|
|
554
|
-
onItemPress?: (id: T) => void;
|
|
555
|
-
options?: MenuItem<T>[];
|
|
556
|
-
};
|
|
557
|
-
declare const MenuItems: <T extends string | number>({ title, onItemPress, options, }: MenuItemsProps<T>) => JSX.Element;
|
|
558
|
-
|
|
559
|
-
declare type AvatarDropdownProps<T> = {
|
|
560
|
-
avatarProps: AvatarProps;
|
|
561
|
-
menuConfig: MenuItemsProps<T>;
|
|
562
|
-
};
|
|
563
|
-
declare const AvatarDropdown: <T extends string | number>({ avatarProps, menuConfig, }: AvatarDropdownProps<T>) => JSX.Element;
|
|
564
|
-
|
|
565
|
-
declare type TabProps<T = string, K = string> = {
|
|
566
|
-
tabKey: T;
|
|
567
|
-
text: string;
|
|
568
|
-
disabled?: boolean;
|
|
569
|
-
vertical?: boolean;
|
|
570
|
-
isActive?: boolean;
|
|
571
|
-
onClick?: (key: T) => void;
|
|
572
|
-
options?: MenuItem<K>[];
|
|
573
|
-
onOptionClick?: (optionKey: K) => void;
|
|
574
|
-
};
|
|
575
|
-
|
|
576
|
-
declare type TabGroupProps<T = string, K = string> = {
|
|
577
|
-
tabs: Pick<TabProps<T, K>, 'text' | 'tabKey' | 'disabled' | 'options'>[];
|
|
578
|
-
activeTabKey: T;
|
|
579
|
-
spacing?: SizesTypes$2;
|
|
580
|
-
onTabChange?: (tabKey: T) => void;
|
|
581
|
-
onOptionClick?: (optionKey: K) => void;
|
|
582
|
-
style?: CSSProperties;
|
|
583
|
-
vertical?: boolean;
|
|
584
|
-
};
|
|
585
|
-
declare const TabGroup: <T extends string, K extends string>({ tabs, spacing, vertical, activeTabKey, onTabChange, style, }: TabGroupProps<T, K>) => JSX.Element;
|
|
586
|
-
|
|
587
|
-
declare type FieldSectionProps<T extends object> = {
|
|
588
|
-
label: string;
|
|
589
|
-
control?: Control<T>;
|
|
590
|
-
isEditMode?: boolean;
|
|
591
|
-
fields: UIFields<T>;
|
|
592
|
-
};
|
|
593
|
-
declare const FieldSection: <T extends object>({ fields, label, isEditMode, control, }: FieldSectionProps<T>) => JSX.Element;
|
|
594
|
-
|
|
595
|
-
declare type MenuNavigationProps<T> = {
|
|
596
|
-
menuConfig: MenuItemsProps<T>;
|
|
597
|
-
};
|
|
598
|
-
declare const MenuNavigation: <T extends string | number>({ menuConfig, }: MenuNavigationProps<T>) => JSX.Element;
|
|
599
|
-
declare const CaretIconWrapper: styled_components.StyledComponent<"div", styled_components.DefaultTheme, {
|
|
600
|
-
isOpen: boolean;
|
|
601
|
-
}, never>;
|
|
602
|
-
|
|
603
|
-
declare type EmphasizedTextProps = {
|
|
604
|
-
type: 'emphasized_text';
|
|
605
|
-
invertColors: boolean;
|
|
606
|
-
textContent: string;
|
|
607
|
-
};
|
|
608
|
-
declare const EmphasizedText: ({ textContent, invertColors }: EmphasizedTextProps) => JSX.Element;
|
|
609
|
-
|
|
610
|
-
declare type RadioButtonFieldProps<T extends string> = {
|
|
611
|
-
name: string;
|
|
612
|
-
control?: Control<any>;
|
|
613
|
-
rules?: ControllerProps['rules'];
|
|
614
|
-
required?: boolean;
|
|
615
|
-
optional?: boolean;
|
|
616
|
-
defaultValue?: string;
|
|
617
|
-
styles?: CSSProperties;
|
|
618
|
-
radioButtonsProps: RadioButtonsProps$1<T>;
|
|
619
|
-
labelsProps?: FieldLabelsProps;
|
|
620
|
-
};
|
|
621
|
-
declare const RadioButtonField: <T extends string>({ control, name, radioButtonsProps, styles, labelsProps, defaultValue, optional, required, rules, }: RadioButtonFieldProps<T>) => JSX.Element;
|
|
622
|
-
|
|
623
|
-
declare type AlertProps = {
|
|
624
|
-
style?: CSSProperties;
|
|
625
|
-
title: string;
|
|
626
|
-
description: string;
|
|
627
|
-
color?: string;
|
|
628
|
-
isMobile?: boolean;
|
|
629
|
-
logo?: string;
|
|
630
|
-
fullWidth?: boolean;
|
|
631
|
-
withCloseIcon?: {
|
|
632
|
-
onClose: Callback$1;
|
|
633
|
-
};
|
|
634
|
-
fontColor?: ThemeColors$2;
|
|
635
|
-
destinationLink?: string;
|
|
636
|
-
onDestinationHandler?: Callback$1;
|
|
637
|
-
containerStyles?: CSSProperties;
|
|
638
|
-
};
|
|
639
|
-
declare const Alert: ({ logo, title, withCloseIcon, description, style, fontColor, containerStyles, isMobile, ...props }: AlertProps) => JSX.Element;
|
|
640
|
-
|
|
641
|
-
declare type OrientationType = 'horizontal' | 'vertical';
|
|
642
|
-
declare type StepperProps = {
|
|
643
|
-
steps: {
|
|
644
|
-
title: string;
|
|
645
|
-
description?: string;
|
|
646
|
-
status?: ProcessTrackerStatus$1;
|
|
647
|
-
}[];
|
|
648
|
-
currentStep: number;
|
|
649
|
-
orientation?: OrientationType;
|
|
650
|
-
};
|
|
651
|
-
declare const Stepper: ({ steps, orientation, currentStep }: StepperProps) => JSX.Element;
|
|
652
|
-
|
|
653
|
-
declare type PdfDocumentProps = {
|
|
654
|
-
source: string;
|
|
655
|
-
isMobile?: boolean;
|
|
656
|
-
customDocumentStyles?: Partial<{
|
|
657
|
-
wrapperBackgroundColor: ThemeColors$2 | string;
|
|
658
|
-
pageNumberColor: ThemeColors$2 | string;
|
|
659
|
-
pageWidth: number;
|
|
660
|
-
pageHeight: number;
|
|
661
|
-
paginationArrowColor: ThemeColors$2 | string;
|
|
662
|
-
disabledPaginationArrowColor: ThemeColors$2 | string;
|
|
663
|
-
}>;
|
|
664
|
-
};
|
|
665
|
-
declare const PdfDocument: ({ source, isMobile, customDocumentStyles, }: PdfDocumentProps) => JSX.Element;
|
|
666
|
-
|
|
667
|
-
declare type FeedTemplateKeys = `feed_${'a' | 'b'}`;
|
|
668
|
-
declare type FeedContentHeaderProps = {
|
|
669
|
-
title: string;
|
|
670
|
-
enableFavoriting?: boolean;
|
|
671
|
-
templateType: FeedTemplateKeys;
|
|
672
|
-
isMobile?: boolean;
|
|
673
|
-
menuConfig: MenuItemsProps$1<FilteredFeedContentType$1>;
|
|
674
|
-
} & Partial<Omit<InputFieldProps$1, 'labelsProps' | 'required' | 'optional'>>;
|
|
675
|
-
declare const FeedContentHeader: ({ templateType, title, name, inputProps, isMobile, menuConfig, ...rest }: FeedContentHeaderProps) => JSX.Element;
|
|
676
|
-
|
|
677
|
-
declare type ToggleFieldProps = {
|
|
678
|
-
name: string;
|
|
679
|
-
title: string;
|
|
680
|
-
control?: Control<any>;
|
|
681
|
-
description?: string;
|
|
682
|
-
horizontalButtonsProps: HorizontalButtonsProps$1;
|
|
683
|
-
defaultValue?: string;
|
|
684
|
-
};
|
|
685
|
-
declare const HorizontalButtonsField: ({ name, title, control, description, horizontalButtonsProps, }: ToggleFieldProps) => JSX.Element;
|
|
686
|
-
|
|
687
|
-
declare type Callback = () => void;
|
|
688
|
-
|
|
689
|
-
declare type BottomNaVBarItemProps = {
|
|
690
|
-
name: string;
|
|
691
|
-
icon: ComponentType<Omit<IconProps$1, 'name'>>;
|
|
692
|
-
active: boolean;
|
|
693
|
-
activeColor: string;
|
|
694
|
-
onNavigate: Callback;
|
|
695
|
-
};
|
|
696
|
-
declare const BottomNavBarItem: ({ name, icon: IconComponent, active, activeColor, onNavigate, }: BottomNaVBarItemProps) => JSX.Element;
|
|
697
|
-
|
|
698
|
-
declare type SetPasswordRuleValidation = {
|
|
699
|
-
label: string;
|
|
700
|
-
rule: MaxRuleValidation | MinRuleValidation;
|
|
701
|
-
};
|
|
702
|
-
declare type SetPasswordFormProps = {
|
|
703
|
-
fields: UIFields<SetPasswordFields>;
|
|
704
|
-
logoUrl: string;
|
|
705
|
-
isLoading?: boolean;
|
|
706
|
-
validations: SetPasswordRuleValidation[];
|
|
707
|
-
onSubmit: (values: SetPasswordFields) => void;
|
|
708
|
-
onBack: () => void;
|
|
709
|
-
};
|
|
710
|
-
declare const SetPasswordForm: ({ logoUrl, fields, validations, onBack, onSubmit, isLoading, }: SetPasswordFormProps) => JSX.Element;
|
|
711
|
-
|
|
712
|
-
declare const showAcceptToastMessage: () => void | undefined;
|
|
713
|
-
declare type AcquisitionFormProps<T extends object> = {
|
|
714
|
-
fields: UIFields$2<T>;
|
|
715
|
-
consents: ConsentProps$1[];
|
|
716
|
-
logoUrl: string;
|
|
717
|
-
isLoading?: boolean;
|
|
718
|
-
isSubmitDisabled?: boolean;
|
|
719
|
-
title: string;
|
|
720
|
-
description?: string;
|
|
721
|
-
buttonText?: string;
|
|
722
|
-
onSubmit: (values: T) => void;
|
|
723
|
-
onLinkButtonClick?: Callback$1;
|
|
724
|
-
showConsentLabel?: boolean;
|
|
725
|
-
triggerFormInitially?: boolean;
|
|
726
|
-
isTooltipVisible?: boolean;
|
|
727
|
-
optionsPresentation?: boolean;
|
|
728
|
-
};
|
|
729
|
-
declare const AcquisitionForm: <T extends object>({ logoUrl, title, description, buttonText, fields, optionsPresentation, onSubmit, showConsentLabel, onLinkButtonClick, isSubmitDisabled, consents, isLoading, triggerFormInitially, isTooltipVisible, }: AcquisitionFormProps<T>) => JSX.Element;
|
|
730
|
-
|
|
731
|
-
declare type VerificationCodeForm = {
|
|
732
|
-
code: string;
|
|
733
|
-
};
|
|
734
|
-
declare type AuthMethod = 'email' | 'sms';
|
|
735
|
-
declare type TwoFactorAuthProps = {
|
|
736
|
-
logoUrl: string;
|
|
737
|
-
onNext?: (authMethod: AuthMethod) => Promise<void>;
|
|
738
|
-
onSubmit?: (values: VerificationCodeForm) => void;
|
|
739
|
-
onBack?: () => void;
|
|
740
|
-
};
|
|
741
|
-
declare const TwoFactorAuth: ({ logoUrl, onSubmit, onBack, onNext }: TwoFactorAuthProps) => JSX.Element;
|
|
742
|
-
|
|
743
|
-
declare type LoginFields = {
|
|
744
|
-
email: string;
|
|
745
|
-
password: string;
|
|
746
|
-
rememberMe: boolean;
|
|
747
|
-
};
|
|
748
|
-
|
|
749
|
-
declare type LoginFormProps = {
|
|
750
|
-
fields: UIFields$2<LoginFields>;
|
|
751
|
-
logoUrl: string;
|
|
752
|
-
isLoading?: boolean;
|
|
753
|
-
twoFactorAuthConfig?: {
|
|
754
|
-
twoFactorShow: boolean;
|
|
755
|
-
twoFactorAuthProps: TwoFactorAuthProps;
|
|
756
|
-
};
|
|
757
|
-
optionsPresentation?: boolean;
|
|
758
|
-
onSubmit: (values: LoginFields) => void;
|
|
759
|
-
onSignUpButtonClick?: Callback$1;
|
|
760
|
-
onForgotPasswordButtonClick?: Callback$1;
|
|
761
|
-
isTooltipVisible?: boolean;
|
|
762
|
-
consents: ConsentProps$2[];
|
|
763
|
-
};
|
|
764
|
-
declare const LoginForm: ({ logoUrl, fields, isTooltipVisible, onSubmit, optionsPresentation, onSignUpButtonClick, isLoading, twoFactorAuthConfig, consents, onForgotPasswordButtonClick, }: LoginFormProps) => JSX.Element;
|
|
765
|
-
|
|
766
|
-
declare type FooterProps = FooterAProps | FooterBProps | FooterCProps | FooterDProps;
|
|
767
|
-
declare const Footer: (props: FooterProps) => JSX.Element;
|
|
537
|
+
declare type FooterProps = FooterAProps | FooterBProps | FooterCProps | FooterDProps;
|
|
538
|
+
declare const Footer: (props: FooterProps) => JSX.Element;
|
|
768
539
|
|
|
769
540
|
declare type FeedContentTemplateTypes = 'full_width_content' | 'standard_content' | 'auto_play' | '';
|
|
770
541
|
declare type FeedContentProps = {
|
|
@@ -791,7 +562,7 @@ declare type FeedContentProps = {
|
|
|
791
562
|
showDefaultDocumentStyles?: boolean;
|
|
792
563
|
destinationLink?: string;
|
|
793
564
|
onDestinationHandler?: Callback$1;
|
|
794
|
-
imageStyles?:
|
|
565
|
+
imageStyles?: StylesType;
|
|
795
566
|
videoStyles?: CSSProperties;
|
|
796
567
|
isEnabledFavoriting?: boolean;
|
|
797
568
|
isFavorite?: boolean;
|
|
@@ -814,8 +585,8 @@ declare type FooterLink = {
|
|
|
814
585
|
|
|
815
586
|
declare type ProfileInformationProps<TabKeys extends string> = {
|
|
816
587
|
backgroundImageUrl: string;
|
|
817
|
-
avatarProps: AvatarProps;
|
|
818
|
-
tabs: TabProps<string, TabKeys>[];
|
|
588
|
+
avatarProps: AvatarProps$1;
|
|
589
|
+
tabs: TabProps$1<string, TabKeys>[];
|
|
819
590
|
tabContents: Record<TabKeys, () => ReactNode>;
|
|
820
591
|
initialTabKey: TabKeys;
|
|
821
592
|
title: string;
|
|
@@ -847,7 +618,7 @@ declare type BodyProps = {
|
|
|
847
618
|
horizontalPaddings?: number;
|
|
848
619
|
containerStyles?: CSSProperties;
|
|
849
620
|
};
|
|
850
|
-
declare const Body: ({ elements, horizontalPaddings, containerStyles }: BodyProps) => JSX.Element;
|
|
621
|
+
declare const Body: ({ elements, horizontalPaddings, containerStyles, }: BodyProps) => JSX.Element;
|
|
851
622
|
|
|
852
623
|
declare type ISIProps = ISIAProps;
|
|
853
624
|
declare const ISI: (props: ISIProps) => JSX.Element;
|
|
@@ -978,7 +749,7 @@ declare type SubscribePanelTemplateProps = {
|
|
|
978
749
|
isSubscribing?: boolean;
|
|
979
750
|
subscribeHandler: Callback$1;
|
|
980
751
|
isMobile: boolean;
|
|
981
|
-
control: Control
|
|
752
|
+
control: Control<SubscribePanelForm>;
|
|
982
753
|
};
|
|
983
754
|
declare type SubscribePanelProps = Omit<SubscribePanelTemplateProps, 'isMobile' | 'control' | 'subscribeHandler'> & {
|
|
984
755
|
type: 'subscribe_panel';
|
|
@@ -1013,10 +784,81 @@ declare const useStep: (maxStep: number) => [number, Helpers];
|
|
|
1013
784
|
|
|
1014
785
|
declare const useRequiredConsentsAcceptedValues: (consents: ConsentProps$1[]) => boolean;
|
|
1015
786
|
|
|
1016
|
-
declare
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
787
|
+
declare const defaultTheme: DefaultTheme;
|
|
788
|
+
|
|
789
|
+
declare const ZealThemeProvider: (props: PropsWithChildren<{
|
|
790
|
+
theme?: DefaultTheme;
|
|
791
|
+
}>) => JSX.Element;
|
|
792
|
+
|
|
793
|
+
declare type ThemeColors = 'primary' | 'primaryTint' | 'primaryShade' | 'secondary' | 'secondaryTint' | 'secondaryShade' | 'pink' | 'pinkTint' | 'pinkShade' | 'orange' | 'orangeTint' | 'orangeShade' | 'purple' | 'purpleTint' | 'purpleShade' | 'indigo' | 'indigoTint1' | 'indigoTint2' | 'gray1' | 'gray2' | 'gray3' | 'gray4' | 'gray5' | 'green' | 'greenTint' | 'greenShade' | 'yellow' | 'yellowTint' | 'yellowShade' | 'red' | 'redTint' | 'redShade' | 'black' | 'white' | 'blue' | 'blueTint' | 'blueShade' | 'background';
|
|
794
|
+
declare type SizesTypes = '5XL' | '4XL' | '3XL' | '2XL' | 'XL' | 'L' | 'M' | 'S' | 'XS';
|
|
795
|
+
declare type FontSizesTypes = Exclude<SizesTypes, '5XL' | '4XL'>;
|
|
796
|
+
declare type BreakpointSizesTypes = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
797
|
+
declare type FontWeight = 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900;
|
|
798
|
+
declare type ThemeColorsType = Record<ThemeColors, string>;
|
|
799
|
+
declare type ThemeTextType = Record<FontSizesTypes, {
|
|
800
|
+
'font-weight': string;
|
|
801
|
+
'font-size': number;
|
|
802
|
+
'line-height': number;
|
|
803
|
+
}>;
|
|
804
|
+
declare type ThemeSizesType = Record<SizesTypes, number>;
|
|
805
|
+
declare type ThemeDevicesType = Record<BreakpointSizesTypes, string>;
|
|
806
|
+
declare type ZealTheme = {
|
|
807
|
+
colors: ThemeColorsType;
|
|
808
|
+
fonts: Record<FontSizesTypes, number>;
|
|
809
|
+
sizes: ThemeSizesType;
|
|
810
|
+
devices: ThemeDevicesType;
|
|
811
|
+
};
|
|
812
|
+
|
|
813
|
+
declare const toastStyles: styled_components.FlattenSimpleInterpolation;
|
|
814
|
+
|
|
815
|
+
declare const useMediaQuery: (breakpointSize: BreakpointSizesTypes$1) => boolean;
|
|
816
|
+
|
|
817
|
+
declare const getFieldPlaceholder: (type: FieldTypes$1, title?: string) => string;
|
|
818
|
+
|
|
819
|
+
declare type InputFieldTypes = 'phone-number' | 'text' | 'email' | 'password' | 'numerical' | 'any';
|
|
820
|
+
declare type FieldTypes = 'input' | 'select' | 'checkbox';
|
|
821
|
+
declare type UIField<T = string> = (UIInputField & UISelectField & UICheckboxField) & {
|
|
822
|
+
name: T;
|
|
823
|
+
type: FieldTypes;
|
|
824
|
+
value?: string;
|
|
825
|
+
label?: string;
|
|
826
|
+
placeholder?: string;
|
|
827
|
+
required?: boolean;
|
|
828
|
+
tooltip?: string;
|
|
829
|
+
rules?: ControllerProps['rules'];
|
|
830
|
+
order?: number;
|
|
831
|
+
};
|
|
832
|
+
declare type UIInputField = {
|
|
833
|
+
inputType?: InputFieldTypes;
|
|
834
|
+
maxLength?: number;
|
|
835
|
+
onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
836
|
+
} & InputFieldProps$1;
|
|
837
|
+
declare type UISelectField = {
|
|
838
|
+
options?: SelectOption$1[];
|
|
839
|
+
} & SelectFieldProps$1;
|
|
840
|
+
declare type UICheckboxField = {
|
|
841
|
+
checkboxLabel?: string;
|
|
842
|
+
};
|
|
843
|
+
declare type UIFields<T extends object> = UIField<keyof T>[];
|
|
844
|
+
|
|
845
|
+
declare const getInitialValuesFromFields: <T extends object>(fields: UIFields$2<T>) => DeepPartial<T>;
|
|
846
|
+
declare const isFormValid: <T extends FieldValues>(formState: FormState<T>) => boolean;
|
|
847
|
+
declare const getFieldsFromFieldSections: <T extends object>(sections: Pick<FieldSectionProps$1<T>, "fields">[]) => UIFields$2<T>;
|
|
848
|
+
|
|
849
|
+
declare const acquisitionFormMockFields: UIFields$2<Record<string, string>>;
|
|
850
|
+
declare const setPasswordMockFields: UIFields$2<SetPasswordFields>;
|
|
851
|
+
declare const loginMockFields: UIFields$2<LoginFields$1>;
|
|
852
|
+
declare const sectionMockFields: UIFields$2<Record<string, string>>;
|
|
853
|
+
declare const profileInformationMockForm: {
|
|
854
|
+
label: string;
|
|
855
|
+
fields: UIFields$2<Record<string, string>>;
|
|
856
|
+
}[];
|
|
857
|
+
|
|
858
|
+
declare type MlrRichTextViewerProviderProps = PropsWithChildren<{
|
|
859
|
+
annotationsList: AnnotationsList$1;
|
|
860
|
+
isMLRReview: boolean;
|
|
861
|
+
showAnnotations: boolean;
|
|
1020
862
|
}>;
|
|
1021
863
|
declare const MlrRichTextViewerProvider: ({ children, isMLRReview, showAnnotations, annotationsList, }: MlrRichTextViewerProviderProps) => JSX.Element;
|
|
1022
864
|
|
|
@@ -1033,7 +875,8 @@ declare type AnnotationsList = {
|
|
|
1033
875
|
label: string;
|
|
1034
876
|
}[];
|
|
1035
877
|
links: {
|
|
1036
|
-
|
|
878
|
+
referencedById: string;
|
|
879
|
+
moleculeId: string;
|
|
1037
880
|
text: string;
|
|
1038
881
|
url: string;
|
|
1039
882
|
}[];
|
|
@@ -1041,4 +884,689 @@ declare type AnnotationsList = {
|
|
|
1041
884
|
|
|
1042
885
|
declare const useMlrRichTextViewerContext: () => contexts_MlrRichTextViewerContext_MlrRichTextViewerContext.MlrRichTextViewerContextType;
|
|
1043
886
|
|
|
1044
|
-
|
|
887
|
+
declare type FieldRuleLabelTypes = 'OPTIONAL' | 'REQUIRED';
|
|
888
|
+
declare type LabelInternalConfig = {
|
|
889
|
+
fontVariant: FontSizesTypes$2;
|
|
890
|
+
fontSize: number;
|
|
891
|
+
fontWeight: string | number;
|
|
892
|
+
color: ThemeColors$1 | string;
|
|
893
|
+
padding: string;
|
|
894
|
+
styles: StylesType;
|
|
895
|
+
wrapperStyles: StylesType;
|
|
896
|
+
};
|
|
897
|
+
declare type RuleLabelInternalConfig = {
|
|
898
|
+
requiredTextColor: ThemeColors$1 | string;
|
|
899
|
+
optionalTextColor: ThemeColors$1 | string;
|
|
900
|
+
padding: string;
|
|
901
|
+
fontSize: number;
|
|
902
|
+
styles: StylesType;
|
|
903
|
+
};
|
|
904
|
+
declare type TooltipInternalConfig = {
|
|
905
|
+
fontVariant: FontSizesTypes$2;
|
|
906
|
+
fontSize: number;
|
|
907
|
+
fontWeight: string | number;
|
|
908
|
+
color: ThemeColors$1 | string;
|
|
909
|
+
padding: string;
|
|
910
|
+
backgroundColor: ThemeColors$1 | string;
|
|
911
|
+
iconColor: ThemeColors$1 | string;
|
|
912
|
+
styles: StylesType;
|
|
913
|
+
wrapperStyles: StylesType;
|
|
914
|
+
};
|
|
915
|
+
declare type FieldLabelsProps = {
|
|
916
|
+
label?: string;
|
|
917
|
+
tooltipText?: string;
|
|
918
|
+
isError?: boolean;
|
|
919
|
+
isTooltipVisible?: boolean;
|
|
920
|
+
ruleLabel?: FieldRuleLabelTypes;
|
|
921
|
+
labelInternalConfig?: LabelInternalConfig;
|
|
922
|
+
ruleLabelInternalConfig?: RuleLabelInternalConfig;
|
|
923
|
+
tooltipInternalConfig?: TooltipInternalConfig;
|
|
924
|
+
isRichText?: boolean;
|
|
925
|
+
};
|
|
926
|
+
declare const FieldLabels: ({ label, isTooltipVisible, isError, ruleLabel, tooltipText, labelInternalConfig, ruleLabelInternalConfig, tooltipInternalConfig, isRichText, }: FieldLabelsProps) => JSX.Element;
|
|
927
|
+
|
|
928
|
+
declare type InputFieldProps = Partial<{
|
|
929
|
+
name: string;
|
|
930
|
+
control: Control$1<any>;
|
|
931
|
+
rules: ControllerProps$1['rules'];
|
|
932
|
+
required: boolean;
|
|
933
|
+
optional: boolean;
|
|
934
|
+
defaultValue: string;
|
|
935
|
+
inputProps: InputProps$1;
|
|
936
|
+
styles: StylesType;
|
|
937
|
+
labelsProps: FieldLabelsProps;
|
|
938
|
+
}>;
|
|
939
|
+
declare const InputField: ({ control, name, inputProps, styles, labelsProps, defaultValue, optional, required, rules, }: InputFieldProps) => JSX.Element;
|
|
940
|
+
|
|
941
|
+
declare type FieldMapperProps<T extends object> = {
|
|
942
|
+
field: UIField$1<keyof T>;
|
|
943
|
+
isEditMode?: boolean;
|
|
944
|
+
control?: Control$1<T>;
|
|
945
|
+
spacer?: number;
|
|
946
|
+
isTooltipVisible?: boolean;
|
|
947
|
+
optionsPresentation?: boolean;
|
|
948
|
+
styles?: StylesType;
|
|
949
|
+
};
|
|
950
|
+
declare const FieldMapper: <T extends object>({ field, isEditMode, spacer, control, isTooltipVisible, optionsPresentation, styles, }: FieldMapperProps<T>) => JSX.Element | null;
|
|
951
|
+
|
|
952
|
+
declare type CheckboxesProps = Partial<{
|
|
953
|
+
checkboxGroupWrapperStyles: StylesType;
|
|
954
|
+
checkboxFieldWrapperStyles: StylesType;
|
|
955
|
+
onChange: (id: string) => void;
|
|
956
|
+
disabled: boolean;
|
|
957
|
+
options?: SelectOption$1[];
|
|
958
|
+
selectedIds?: string[];
|
|
959
|
+
isError?: boolean;
|
|
960
|
+
isEditMode?: boolean;
|
|
961
|
+
isRichText: boolean;
|
|
962
|
+
internalConfig: CheckboxInternalConfigProps$1;
|
|
963
|
+
}>;
|
|
964
|
+
declare type CheckboxFieldProps = Partial<{
|
|
965
|
+
checkboxesProps: CheckboxesProps;
|
|
966
|
+
labelsProps: FieldLabelsProps;
|
|
967
|
+
name: string;
|
|
968
|
+
rules: ControllerProps$1['rules'];
|
|
969
|
+
control: Control$1<any>;
|
|
970
|
+
required: boolean;
|
|
971
|
+
optional: boolean;
|
|
972
|
+
wrapperStyles: StylesType;
|
|
973
|
+
}>;
|
|
974
|
+
declare const CheckboxField: ({ checkboxesProps, name, rules, control, optional, required, labelsProps, wrapperStyles, }: CheckboxFieldProps) => JSX.Element;
|
|
975
|
+
|
|
976
|
+
declare type CheckboxGroupProps = Partial<{
|
|
977
|
+
ref: RefCallBack;
|
|
978
|
+
onBlur: Callback$1;
|
|
979
|
+
onChange: (checkedIds: string[]) => void;
|
|
980
|
+
checkboxesProps: CheckboxesProps;
|
|
981
|
+
}>;
|
|
982
|
+
declare const CheckboxGroup: ({ ref, onBlur, onChange, checkboxesProps }: CheckboxGroupProps) => JSX.Element;
|
|
983
|
+
|
|
984
|
+
declare type SelectFieldProps = Partial<{
|
|
985
|
+
selectProps: SelectProps$1;
|
|
986
|
+
labelsProps: FieldLabelsProps;
|
|
987
|
+
name: string;
|
|
988
|
+
rules: ControllerProps$1['rules'];
|
|
989
|
+
control: Control$1<any>;
|
|
990
|
+
required: boolean;
|
|
991
|
+
optional: boolean;
|
|
992
|
+
defaultValue: string;
|
|
993
|
+
styles: StylesType;
|
|
994
|
+
}>;
|
|
995
|
+
declare const SelectField: ({ selectProps, name, defaultValue, optional, required, control, styles, labelsProps, rules, }: SelectFieldProps) => JSX.Element;
|
|
996
|
+
|
|
997
|
+
declare type CustomValidationRule<T = string> = {
|
|
998
|
+
text: string;
|
|
999
|
+
validate: (value?: T) => boolean;
|
|
1000
|
+
};
|
|
1001
|
+
declare type CustomValidationProps<T = string> = {
|
|
1002
|
+
label?: string;
|
|
1003
|
+
value: T;
|
|
1004
|
+
isSubmitted?: boolean;
|
|
1005
|
+
rules: CustomValidationRule<T>[];
|
|
1006
|
+
};
|
|
1007
|
+
declare const CustomValidation: <T extends string = string>({ rules, value, isSubmitted, label, }: CustomValidationProps<T>) => JSX.Element;
|
|
1008
|
+
|
|
1009
|
+
declare type BaseSelectableProps<T> = {
|
|
1010
|
+
iconName: IconNames$2;
|
|
1011
|
+
infoText: string;
|
|
1012
|
+
isActive?: boolean;
|
|
1013
|
+
onClick?: (value: T) => void;
|
|
1014
|
+
value: T;
|
|
1015
|
+
};
|
|
1016
|
+
|
|
1017
|
+
declare type SelectableCardGroupProps<T> = {
|
|
1018
|
+
cards: BaseSelectableProps<T>[];
|
|
1019
|
+
handleChange?: (value: T | undefined) => void;
|
|
1020
|
+
spacing?: SizesTypes$1;
|
|
1021
|
+
initialValue?: T;
|
|
1022
|
+
};
|
|
1023
|
+
declare const SelectableCardGroup: <T extends string>({ cards, handleChange, spacing, initialValue, }: SelectableCardGroupProps<T>) => JSX.Element;
|
|
1024
|
+
|
|
1025
|
+
declare type HeroImageAlignment = 'left_aligned' | 'center_aligned';
|
|
1026
|
+
declare type HeroImageTemplate = 'card' | 'full_width';
|
|
1027
|
+
declare type HeroImageProps = {
|
|
1028
|
+
type: 'hero_image';
|
|
1029
|
+
backgroundImage: RegularImageProps$1;
|
|
1030
|
+
mainHeading: string;
|
|
1031
|
+
subHeading?: string;
|
|
1032
|
+
button?: ButtonProps$1;
|
|
1033
|
+
contentAlignment?: HeroImageAlignment;
|
|
1034
|
+
horizontalPaddings?: number;
|
|
1035
|
+
template?: HeroImageTemplate;
|
|
1036
|
+
isMobile?: boolean;
|
|
1037
|
+
height?: number;
|
|
1038
|
+
};
|
|
1039
|
+
declare const HeroImage: ({ backgroundImage, button, contentAlignment, mainHeading, horizontalPaddings, subHeading, template, isMobile, height, }: HeroImageProps) => JSX.Element;
|
|
1040
|
+
|
|
1041
|
+
declare type Anchor = 'top' | 'left' | 'bottom' | 'right';
|
|
1042
|
+
declare type DrawerProps = DrawerProps$1 & {
|
|
1043
|
+
anchor: Anchor;
|
|
1044
|
+
padding?: SizesTypes$2 | number;
|
|
1045
|
+
height?: number | string;
|
|
1046
|
+
width?: number | string;
|
|
1047
|
+
closeIconColor?: ThemeColors$2 | string;
|
|
1048
|
+
};
|
|
1049
|
+
|
|
1050
|
+
declare const Drawer: ({ children, closeIconColor, ...props }: PropsWithChildren<DrawerProps>) => JSX.Element;
|
|
1051
|
+
|
|
1052
|
+
declare type ColumnsTemplateKeys = 'horizontal' | 'card' | 'with_image';
|
|
1053
|
+
|
|
1054
|
+
declare type ColumnsProps = {
|
|
1055
|
+
type: 'columns';
|
|
1056
|
+
columns: ColumnItem[];
|
|
1057
|
+
containerStyles?: CSSProperties$1;
|
|
1058
|
+
template?: ColumnsTemplateKeys;
|
|
1059
|
+
};
|
|
1060
|
+
declare type ColumnItem = {
|
|
1061
|
+
title?: string;
|
|
1062
|
+
mainContent?: string;
|
|
1063
|
+
button?: TextButtonProps$1;
|
|
1064
|
+
icon: string;
|
|
1065
|
+
};
|
|
1066
|
+
declare const Columns: ({ columns, containerStyles, template }: ColumnsProps) => JSX.Element;
|
|
1067
|
+
|
|
1068
|
+
declare type MenuItem<T> = {
|
|
1069
|
+
id: T;
|
|
1070
|
+
title: string;
|
|
1071
|
+
onClick?: (id: T) => void;
|
|
1072
|
+
};
|
|
1073
|
+
declare type MenuItemsProps<T> = {
|
|
1074
|
+
title?: string;
|
|
1075
|
+
onItemPress?: (id: T) => void;
|
|
1076
|
+
options?: MenuItem<T>[];
|
|
1077
|
+
};
|
|
1078
|
+
declare const MenuItems: <T extends string | number>({ title, onItemPress, options, }: MenuItemsProps<T>) => JSX.Element;
|
|
1079
|
+
|
|
1080
|
+
declare type AvatarDropdownProps<T> = {
|
|
1081
|
+
avatarProps: AvatarProps$1;
|
|
1082
|
+
menuConfig: MenuItemsProps<T>;
|
|
1083
|
+
};
|
|
1084
|
+
declare const AvatarDropdown: <T extends string | number>({ avatarProps, menuConfig, }: AvatarDropdownProps<T>) => JSX.Element;
|
|
1085
|
+
|
|
1086
|
+
declare type TabType<T = string, K = string> = Pick<TabProps$1<T, K>, 'text' | 'tabKey' | 'disabled' | 'options' | 'divider'>;
|
|
1087
|
+
declare type AdditionalTabContainerProps = {
|
|
1088
|
+
containerStyle?: CSSProperties;
|
|
1089
|
+
containerProps?: Record<string, unknown>;
|
|
1090
|
+
};
|
|
1091
|
+
declare type TabGroupProps<T = string, K = string> = {
|
|
1092
|
+
tabs: TabType<T, K>[];
|
|
1093
|
+
activeTabKey: T;
|
|
1094
|
+
onTabChange?: (tabKey: T) => void;
|
|
1095
|
+
onOptionClick?: (optionKey: K) => void;
|
|
1096
|
+
styles?: StylesType;
|
|
1097
|
+
vertical?: boolean;
|
|
1098
|
+
tabTheme?: TabTheme$1;
|
|
1099
|
+
tabFont?: FontSizesTypes$1;
|
|
1100
|
+
textSize?: number;
|
|
1101
|
+
tabPadding?: SizesTypes$2 | number;
|
|
1102
|
+
tabSpacing?: SizesTypes$2;
|
|
1103
|
+
defaultTabTextColor?: ThemeColors$2 | string;
|
|
1104
|
+
selectedTabTextColor?: ThemeColors$2 | string;
|
|
1105
|
+
selectedTabIndicatorColor?: ThemeColors$2 | string;
|
|
1106
|
+
wide?: AdditionalTabContainerProps;
|
|
1107
|
+
compact?: AdditionalTabContainerProps;
|
|
1108
|
+
};
|
|
1109
|
+
declare const TabGroup: <T extends string, K extends string>({ tabs, vertical, activeTabKey, onTabChange, tabTheme, wide, compact, tabSpacing, ...props }: TabGroupProps<T, K>) => JSX.Element;
|
|
1110
|
+
|
|
1111
|
+
declare type FieldSectionProps<T extends object> = {
|
|
1112
|
+
label: string;
|
|
1113
|
+
control?: Control$1<T>;
|
|
1114
|
+
isEditMode?: boolean;
|
|
1115
|
+
fields: UIFields<T>;
|
|
1116
|
+
};
|
|
1117
|
+
declare const FieldSection: <T extends object>({ fields, label, isEditMode, control, }: FieldSectionProps<T>) => JSX.Element;
|
|
1118
|
+
|
|
1119
|
+
declare type MenuNavigationProps<T> = {
|
|
1120
|
+
menuConfig: MenuItemsProps<T>;
|
|
1121
|
+
};
|
|
1122
|
+
declare const MenuNavigation: <T extends string | number>({ menuConfig, }: MenuNavigationProps<T>) => JSX.Element;
|
|
1123
|
+
declare const CaretIconWrapper: styled_components.StyledComponent<"div", styled_components.DefaultTheme, {
|
|
1124
|
+
isOpen: boolean;
|
|
1125
|
+
}, never>;
|
|
1126
|
+
|
|
1127
|
+
declare type EmphasizedTextProps = {
|
|
1128
|
+
type: 'emphasized_text';
|
|
1129
|
+
invertColors: boolean;
|
|
1130
|
+
textContent: string;
|
|
1131
|
+
};
|
|
1132
|
+
declare const EmphasizedText: ({ textContent, invertColors }: EmphasizedTextProps) => JSX.Element;
|
|
1133
|
+
|
|
1134
|
+
declare type RadioButtonFieldProps<T extends string> = Partial<{
|
|
1135
|
+
name: string;
|
|
1136
|
+
rules: ControllerProps$1['rules'];
|
|
1137
|
+
styles: StylesType;
|
|
1138
|
+
control: Control$1<any>;
|
|
1139
|
+
optional: boolean;
|
|
1140
|
+
required: boolean;
|
|
1141
|
+
labelsProps: FieldLabelsProps;
|
|
1142
|
+
defaultValue: string;
|
|
1143
|
+
radioButtonsProps: RadioButtonsProps$1<T>;
|
|
1144
|
+
internalConfig: RadioButtonInternalConfigProps$1;
|
|
1145
|
+
}>;
|
|
1146
|
+
declare const RadioButtonField: <T extends string>({ name, rules, styles, control, optional, required, labelsProps, defaultValue, radioButtonsProps, }: Partial<{
|
|
1147
|
+
name: string;
|
|
1148
|
+
rules: ControllerProps$1['rules'];
|
|
1149
|
+
styles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
|
|
1150
|
+
control: Control$1<any>;
|
|
1151
|
+
optional: boolean;
|
|
1152
|
+
required: boolean;
|
|
1153
|
+
labelsProps: FieldLabelsProps;
|
|
1154
|
+
defaultValue: string;
|
|
1155
|
+
radioButtonsProps: Partial<{
|
|
1156
|
+
ref: react_hook_form.RefCallBack;
|
|
1157
|
+
name: string;
|
|
1158
|
+
value: T;
|
|
1159
|
+
options: atoms.SelectOption[];
|
|
1160
|
+
onBlur: typescript.Callback;
|
|
1161
|
+
onChange: (value: T) => void;
|
|
1162
|
+
isRow: boolean;
|
|
1163
|
+
isError: boolean;
|
|
1164
|
+
disabled: boolean;
|
|
1165
|
+
isEditMode: boolean;
|
|
1166
|
+
isRichText: boolean;
|
|
1167
|
+
internalConfig: Partial<{
|
|
1168
|
+
selectedRadioOptionBackgroundColor: string;
|
|
1169
|
+
selectedRadioOptionIndicatorColor: string;
|
|
1170
|
+
buttonPadding: number;
|
|
1171
|
+
textPadding: number;
|
|
1172
|
+
styles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
|
|
1173
|
+
wrapperStyles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
|
|
1174
|
+
buttonOptionSpacing: SizesTypes;
|
|
1175
|
+
radioGroupWrapperStyles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
|
|
1176
|
+
}>;
|
|
1177
|
+
}>;
|
|
1178
|
+
internalConfig: Partial<{
|
|
1179
|
+
selectedRadioOptionBackgroundColor: string;
|
|
1180
|
+
selectedRadioOptionIndicatorColor: string;
|
|
1181
|
+
buttonPadding: number;
|
|
1182
|
+
textPadding: number;
|
|
1183
|
+
styles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
|
|
1184
|
+
wrapperStyles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
|
|
1185
|
+
buttonOptionSpacing: SizesTypes;
|
|
1186
|
+
radioGroupWrapperStyles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
|
|
1187
|
+
}>;
|
|
1188
|
+
}>) => JSX.Element;
|
|
1189
|
+
|
|
1190
|
+
declare type AlertProps = {
|
|
1191
|
+
style?: CSSProperties;
|
|
1192
|
+
title: string;
|
|
1193
|
+
description: string;
|
|
1194
|
+
color?: string;
|
|
1195
|
+
isMobile?: boolean;
|
|
1196
|
+
logo?: string;
|
|
1197
|
+
fullWidth?: boolean;
|
|
1198
|
+
withCloseIcon?: {
|
|
1199
|
+
onClose: Callback$1;
|
|
1200
|
+
};
|
|
1201
|
+
fontColor?: ThemeColors$1;
|
|
1202
|
+
destinationLink?: string;
|
|
1203
|
+
onDestinationHandler?: Callback$1;
|
|
1204
|
+
containerStyles?: CSSProperties;
|
|
1205
|
+
};
|
|
1206
|
+
declare const Alert: ({ logo, title, withCloseIcon, description, style, fontColor, containerStyles, isMobile, ...props }: AlertProps) => JSX.Element;
|
|
1207
|
+
|
|
1208
|
+
declare type OrientationType = 'horizontal' | 'vertical';
|
|
1209
|
+
declare type StepperProps = {
|
|
1210
|
+
steps: {
|
|
1211
|
+
title: string;
|
|
1212
|
+
description?: string;
|
|
1213
|
+
status?: ProcessTrackerStatus$1;
|
|
1214
|
+
}[];
|
|
1215
|
+
currentStep: number;
|
|
1216
|
+
orientation?: OrientationType;
|
|
1217
|
+
};
|
|
1218
|
+
declare const Stepper: ({ steps, orientation, currentStep }: StepperProps) => JSX.Element;
|
|
1219
|
+
|
|
1220
|
+
declare type PdfDocumentProps = {
|
|
1221
|
+
source: string;
|
|
1222
|
+
isMobile?: boolean;
|
|
1223
|
+
customDocumentStyles?: Partial<{
|
|
1224
|
+
wrapperBackgroundColor: ThemeColors$1 | string;
|
|
1225
|
+
pageNumberColor: ThemeColors$1 | string;
|
|
1226
|
+
pageWidth: number;
|
|
1227
|
+
pageHeight: number;
|
|
1228
|
+
paginationArrowColor: ThemeColors$1 | string;
|
|
1229
|
+
disabledPaginationArrowColor: ThemeColors$1 | string;
|
|
1230
|
+
}>;
|
|
1231
|
+
};
|
|
1232
|
+
declare const PdfDocument: ({ source, isMobile, customDocumentStyles, }: PdfDocumentProps) => JSX.Element;
|
|
1233
|
+
|
|
1234
|
+
declare type FeedTemplateKeys = `feed_${'a' | 'b'}`;
|
|
1235
|
+
declare type FeedContentHeaderProps = {
|
|
1236
|
+
title: string;
|
|
1237
|
+
enableFavoriting?: boolean;
|
|
1238
|
+
templateType: FeedTemplateKeys;
|
|
1239
|
+
isMobile?: boolean;
|
|
1240
|
+
menuConfig: MenuItemsProps$1<FilteredFeedContentType$1>;
|
|
1241
|
+
} & Partial<Omit<InputFieldProps$1, 'labelsProps' | 'required' | 'optional'>>;
|
|
1242
|
+
declare const FeedContentHeader: ({ templateType, title, name, inputProps, isMobile, menuConfig, ...rest }: FeedContentHeaderProps) => JSX.Element;
|
|
1243
|
+
|
|
1244
|
+
declare type ToggleFieldProps = {
|
|
1245
|
+
name: string;
|
|
1246
|
+
title: string;
|
|
1247
|
+
control?: Control$1<any>;
|
|
1248
|
+
description?: string;
|
|
1249
|
+
horizontalButtonsProps: HorizontalButtonsProps$1;
|
|
1250
|
+
defaultValue?: string;
|
|
1251
|
+
};
|
|
1252
|
+
declare const HorizontalButtonsField: ({ name, title, control, description, horizontalButtonsProps, }: ToggleFieldProps) => JSX.Element;
|
|
1253
|
+
|
|
1254
|
+
declare type Callback = () => void;
|
|
1255
|
+
|
|
1256
|
+
declare type BottomNaVBarItemProps = {
|
|
1257
|
+
name: string;
|
|
1258
|
+
icon: ComponentType<Omit<IconProps$1, 'name'>>;
|
|
1259
|
+
active: boolean;
|
|
1260
|
+
activeColor: string;
|
|
1261
|
+
onNavigate: Callback;
|
|
1262
|
+
};
|
|
1263
|
+
declare const BottomNavBarItem: ({ name, icon: IconComponent, active, activeColor, onNavigate, }: BottomNaVBarItemProps) => JSX.Element;
|
|
1264
|
+
|
|
1265
|
+
declare type VideoProps = {
|
|
1266
|
+
src: string;
|
|
1267
|
+
} & Partial<{
|
|
1268
|
+
width: number;
|
|
1269
|
+
autoplay: boolean;
|
|
1270
|
+
enableCoverImage: boolean;
|
|
1271
|
+
coverImageSrc: string;
|
|
1272
|
+
style: CSSProperties;
|
|
1273
|
+
template: FeedContentTemplateTypes$1;
|
|
1274
|
+
}>;
|
|
1275
|
+
declare const Video: ({ style, src, width, template, autoplay, enableCoverImage, coverImageSrc, }: VideoProps) => JSX.Element;
|
|
1276
|
+
|
|
1277
|
+
declare type ImageProps = {
|
|
1278
|
+
src: string;
|
|
1279
|
+
} & Partial<{
|
|
1280
|
+
id: string;
|
|
1281
|
+
altText: string;
|
|
1282
|
+
link: string;
|
|
1283
|
+
width: number;
|
|
1284
|
+
height: number;
|
|
1285
|
+
cornerRadius: number;
|
|
1286
|
+
behaveAs: 'background' | 'regular';
|
|
1287
|
+
styles: StylesType;
|
|
1288
|
+
}>;
|
|
1289
|
+
declare const Image: ({ src, link, altText, styles, width, height, id, behaveAs, cornerRadius, }: ImageProps) => JSX.Element;
|
|
1290
|
+
|
|
1291
|
+
declare type CarouselProps = {
|
|
1292
|
+
children: JSX.Element[];
|
|
1293
|
+
};
|
|
1294
|
+
declare const Carousel: ({ children }: PropsWithChildren<CarouselProps>) => JSX.Element;
|
|
1295
|
+
declare const Wrapper: styled_components.StyledComponent<"section", styled_components.DefaultTheme, {}, never>;
|
|
1296
|
+
declare const SlidesWrapper: styled_components.StyledComponent<"ul", styled_components.DefaultTheme, {
|
|
1297
|
+
translateX: number;
|
|
1298
|
+
}, never>;
|
|
1299
|
+
declare const Slide: styled_components.StyledComponent<"li", styled_components.DefaultTheme, {}, never>;
|
|
1300
|
+
declare const ButtonsWrapper: styled_components.StyledComponent<"div", styled_components.DefaultTheme, {}, never>;
|
|
1301
|
+
declare const ArrowIconWrapper: styled_components.StyledComponent<"div", styled_components.DefaultTheme, {
|
|
1302
|
+
arrowSide: 'left' | 'right';
|
|
1303
|
+
}, never>;
|
|
1304
|
+
declare const NavigationDotsWrapper: styled_components.StyledComponent<"div", styled_components.DefaultTheme, {}, never>;
|
|
1305
|
+
|
|
1306
|
+
declare type TextMoleculeProps = Partial<{
|
|
1307
|
+
text: string;
|
|
1308
|
+
variant: 'base' | 'custom';
|
|
1309
|
+
fontVariant: FontSizesTypes$2;
|
|
1310
|
+
textSize: number;
|
|
1311
|
+
textColor: ThemeColors$1 | string;
|
|
1312
|
+
letterSpacing: number;
|
|
1313
|
+
lineHeight: number;
|
|
1314
|
+
fontWeight: string | number;
|
|
1315
|
+
isRichText: boolean;
|
|
1316
|
+
styles: StylesType;
|
|
1317
|
+
textAlign: 'center' | 'right' | 'left';
|
|
1318
|
+
}> & Pick<TextProps$1, 'seoTag' | 'numberOfLines'>;
|
|
1319
|
+
declare const TextMolecule: ({ isRichText, variant, text, seoTag, fontVariant, textColor, textSize, fontWeight, lineHeight, letterSpacing, styles, textAlign, ...restOfTextProps }: TextMoleculeProps) => JSX.Element;
|
|
1320
|
+
|
|
1321
|
+
declare type ButtonVariant = 'primary' | 'secondary' | 'text' | 'custom';
|
|
1322
|
+
declare type ButtonType = 'button' | 'submit' | 'reset';
|
|
1323
|
+
declare type BaseButtonProps = PropsWithChildren<{
|
|
1324
|
+
onClick?: Callback$1;
|
|
1325
|
+
variant?: ButtonVariant;
|
|
1326
|
+
disabled?: boolean;
|
|
1327
|
+
state?: 'disabled' | 'enabled';
|
|
1328
|
+
fullWidth?: boolean;
|
|
1329
|
+
size?: 'medium' | 'small';
|
|
1330
|
+
buttonFont?: FontSizesTypes$2;
|
|
1331
|
+
textColor?: ThemeColors$1 | string;
|
|
1332
|
+
textSize?: number;
|
|
1333
|
+
horizontalPadding?: SizesTypes$1;
|
|
1334
|
+
verticalPadding?: SizesTypes$1;
|
|
1335
|
+
buttonColor?: ThemeColors$1 | string;
|
|
1336
|
+
buttonStroke?: ThemeColors$1 | string;
|
|
1337
|
+
cornerRadius?: SizesTypes$1 | number;
|
|
1338
|
+
hoverButtonColor?: ThemeColors$1 | string;
|
|
1339
|
+
hoverStrokeColor?: ThemeColors$1 | string;
|
|
1340
|
+
inactiveButtonColor?: ThemeColors$1 | string;
|
|
1341
|
+
inactiveStrokeColor?: ThemeColors$1 | string;
|
|
1342
|
+
inactiveTextColor?: ThemeColors$1 | string;
|
|
1343
|
+
styles?: StylesType;
|
|
1344
|
+
colorTheme?: 'light' | 'dark';
|
|
1345
|
+
href?: string;
|
|
1346
|
+
type?: ButtonType;
|
|
1347
|
+
}>;
|
|
1348
|
+
declare type ButtonProps = BaseButtonProps & {
|
|
1349
|
+
fullWidth?: boolean;
|
|
1350
|
+
text?: string;
|
|
1351
|
+
link?: string;
|
|
1352
|
+
elementId?: string;
|
|
1353
|
+
loading?: boolean;
|
|
1354
|
+
isRichText?: boolean;
|
|
1355
|
+
containerStyle?: StylesType;
|
|
1356
|
+
buttonStyle?: StylesType;
|
|
1357
|
+
};
|
|
1358
|
+
declare const Button: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children, buttonStyle, size, textColor, inactiveTextColor, state, href, ...props }: ButtonProps) => JSX.Element | null;
|
|
1359
|
+
|
|
1360
|
+
declare const Container: ({ children, wide, compact, type, props }: ContainerProps$1) => JSX.Element;
|
|
1361
|
+
declare const ContainerComponent: ({ type, items, config, tabsProps }: ContainerComponentProps$1) => JSX.Element | null;
|
|
1362
|
+
|
|
1363
|
+
declare type ImageAttributes = {
|
|
1364
|
+
attributeType: 'image';
|
|
1365
|
+
imageSource: string;
|
|
1366
|
+
};
|
|
1367
|
+
interface TextAttributes {
|
|
1368
|
+
attributeType: 'text';
|
|
1369
|
+
isRichText: boolean;
|
|
1370
|
+
text: string;
|
|
1371
|
+
}
|
|
1372
|
+
interface VideoAttributes {
|
|
1373
|
+
attributeType: 'video';
|
|
1374
|
+
videoSource: string;
|
|
1375
|
+
}
|
|
1376
|
+
interface LinkAttributes {
|
|
1377
|
+
id: string;
|
|
1378
|
+
attributeType: 'link';
|
|
1379
|
+
type: 'internalLink' | 'externalLink';
|
|
1380
|
+
internalLink: Nullable<string>;
|
|
1381
|
+
externalLink: Nullable<string>;
|
|
1382
|
+
name: string;
|
|
1383
|
+
}
|
|
1384
|
+
interface SelectAttributes {
|
|
1385
|
+
attributeType: 'select';
|
|
1386
|
+
value: string;
|
|
1387
|
+
options: SelectOption$1[];
|
|
1388
|
+
}
|
|
1389
|
+
interface BooleanAttributes {
|
|
1390
|
+
attributeType: 'boolean';
|
|
1391
|
+
value: boolean;
|
|
1392
|
+
}
|
|
1393
|
+
interface IterableAttributes {
|
|
1394
|
+
attributeType: 'iterable';
|
|
1395
|
+
options: SelectOption$1[];
|
|
1396
|
+
}
|
|
1397
|
+
declare type MoleculeTypes = 'image' | 'text' | 'button' | 'video' | 'header_tab_group' | 'input_field' | 'select_field' | 'radio_button_field' | 'checkbox_field';
|
|
1398
|
+
interface BaseMolecule {
|
|
1399
|
+
id: string;
|
|
1400
|
+
instance: 'molecule';
|
|
1401
|
+
type: MoleculeTypes;
|
|
1402
|
+
}
|
|
1403
|
+
interface ImageMolecule extends BaseMolecule {
|
|
1404
|
+
type: 'image';
|
|
1405
|
+
attributes: {
|
|
1406
|
+
image: ImageAttributes;
|
|
1407
|
+
altText: Omit<TextAttributes, 'isRichText'>;
|
|
1408
|
+
link: LinkAttributes;
|
|
1409
|
+
};
|
|
1410
|
+
config: {
|
|
1411
|
+
props: Omit<ImageProps$1, 'src' | 'link' | 'altText'>;
|
|
1412
|
+
};
|
|
1413
|
+
}
|
|
1414
|
+
interface TextMoleculeType extends BaseMolecule {
|
|
1415
|
+
type: 'text';
|
|
1416
|
+
attributes: {
|
|
1417
|
+
text: TextAttributes;
|
|
1418
|
+
seoStyle: SelectAttributes;
|
|
1419
|
+
};
|
|
1420
|
+
config: {
|
|
1421
|
+
props: TextMoleculeProps$1;
|
|
1422
|
+
};
|
|
1423
|
+
}
|
|
1424
|
+
interface ButtonMolecule extends BaseMolecule {
|
|
1425
|
+
type: 'button';
|
|
1426
|
+
attributes: {
|
|
1427
|
+
title: TextAttributes;
|
|
1428
|
+
buttonLink: LinkAttributes;
|
|
1429
|
+
};
|
|
1430
|
+
config: {
|
|
1431
|
+
props: Partial<Omit<ButtonProps$1, 'disabled' | 'children' | 'link' | 'text' | 'onClick' | 'elementId'>>;
|
|
1432
|
+
};
|
|
1433
|
+
}
|
|
1434
|
+
interface VideoMolecule extends BaseMolecule {
|
|
1435
|
+
type: 'video';
|
|
1436
|
+
attributes: {
|
|
1437
|
+
video: VideoAttributes;
|
|
1438
|
+
altText: Omit<TextAttributes, 'isRichText'>;
|
|
1439
|
+
autoPlayVideo: BooleanAttributes;
|
|
1440
|
+
enableCoverImage: BooleanAttributes;
|
|
1441
|
+
coverImage: ImageAttributes;
|
|
1442
|
+
};
|
|
1443
|
+
config: {
|
|
1444
|
+
props: Partial<{
|
|
1445
|
+
width: number;
|
|
1446
|
+
styles: CSSProperties;
|
|
1447
|
+
}>;
|
|
1448
|
+
};
|
|
1449
|
+
}
|
|
1450
|
+
interface TabGroupMolecule extends BaseMolecule {
|
|
1451
|
+
type: 'header_tab_group';
|
|
1452
|
+
config: {
|
|
1453
|
+
props: TabGroupProps$1;
|
|
1454
|
+
wide: {
|
|
1455
|
+
containerStyle?: CSSProperties;
|
|
1456
|
+
containerProps?: Record<string, unknown>;
|
|
1457
|
+
};
|
|
1458
|
+
compact: {
|
|
1459
|
+
containerStyle?: CSSProperties;
|
|
1460
|
+
containerProps?: Record<string, unknown>;
|
|
1461
|
+
};
|
|
1462
|
+
};
|
|
1463
|
+
}
|
|
1464
|
+
interface TextInputMolecule extends BaseMolecule {
|
|
1465
|
+
type: 'input_field';
|
|
1466
|
+
attributes: {
|
|
1467
|
+
label: TextAttributes;
|
|
1468
|
+
required: BooleanAttributes;
|
|
1469
|
+
inputType: SelectAttributes;
|
|
1470
|
+
};
|
|
1471
|
+
config: {
|
|
1472
|
+
props: Partial<{
|
|
1473
|
+
state: 'default' | 'error';
|
|
1474
|
+
} & InputFieldProps$1>;
|
|
1475
|
+
};
|
|
1476
|
+
}
|
|
1477
|
+
interface SelectFieldMolecule extends BaseMolecule {
|
|
1478
|
+
type: 'select_field';
|
|
1479
|
+
attributes: {
|
|
1480
|
+
label: TextAttributes;
|
|
1481
|
+
required: BooleanAttributes;
|
|
1482
|
+
options: IterableAttributes;
|
|
1483
|
+
};
|
|
1484
|
+
config: {
|
|
1485
|
+
props: Partial<{
|
|
1486
|
+
state: 'default' | 'error';
|
|
1487
|
+
} & SelectFieldProps$1>;
|
|
1488
|
+
};
|
|
1489
|
+
}
|
|
1490
|
+
interface RadioButtonFieldMolecule extends BaseMolecule {
|
|
1491
|
+
type: 'radio_button_field';
|
|
1492
|
+
attributes: {
|
|
1493
|
+
label: TextAttributes;
|
|
1494
|
+
required: BooleanAttributes;
|
|
1495
|
+
options: IterableAttributes;
|
|
1496
|
+
};
|
|
1497
|
+
config: {
|
|
1498
|
+
props: Partial<{
|
|
1499
|
+
state: 'default' | 'error';
|
|
1500
|
+
} & RadioButtonFieldProps$1<string>>;
|
|
1501
|
+
};
|
|
1502
|
+
}
|
|
1503
|
+
interface CheckboxFieldMolecule extends BaseMolecule {
|
|
1504
|
+
type: 'checkbox_field';
|
|
1505
|
+
attributes: {
|
|
1506
|
+
label: TextAttributes;
|
|
1507
|
+
required: BooleanAttributes;
|
|
1508
|
+
options: IterableAttributes;
|
|
1509
|
+
};
|
|
1510
|
+
config: {
|
|
1511
|
+
props: Partial<{
|
|
1512
|
+
state: 'default' | 'error';
|
|
1513
|
+
} & CheckboxFieldProps$1>;
|
|
1514
|
+
};
|
|
1515
|
+
}
|
|
1516
|
+
declare type Molecule = StrictUnion<ImageMolecule | TextMoleculeType | ButtonMolecule | VideoMolecule | TabGroupMolecule | TextInputMolecule | SelectFieldMolecule | RadioButtonFieldMolecule | CheckboxFieldMolecule> & {
|
|
1517
|
+
form?: UseFormReturn<any>;
|
|
1518
|
+
};
|
|
1519
|
+
|
|
1520
|
+
declare type ContainerType = 'row' | 'column' | 'slider' | 'form';
|
|
1521
|
+
declare type ContainerPositionType = 'fixed' | 'sticky' | 'static';
|
|
1522
|
+
declare type ContainerScrollBehaviourType = 'vertical' | 'horizontal' | 'auto' | 'none';
|
|
1523
|
+
declare type ContainerPropsType = Partial<{
|
|
1524
|
+
position: ContainerPositionType;
|
|
1525
|
+
scrollBehaviour: ContainerScrollBehaviourType;
|
|
1526
|
+
cornerRadius: number;
|
|
1527
|
+
styles: StylesType;
|
|
1528
|
+
formProps: {
|
|
1529
|
+
mode: keyof ValidationMode;
|
|
1530
|
+
};
|
|
1531
|
+
}>;
|
|
1532
|
+
declare type AdditionalContainerProps = Partial<{
|
|
1533
|
+
containerStyle: CSSProperties;
|
|
1534
|
+
containerProps: ContainerPropsType;
|
|
1535
|
+
}>;
|
|
1536
|
+
declare type ContainerProps = PropsWithChildren<Partial<{
|
|
1537
|
+
type: ContainerType;
|
|
1538
|
+
wide: AdditionalContainerProps;
|
|
1539
|
+
compact: AdditionalContainerProps;
|
|
1540
|
+
props: ContainerPropsType;
|
|
1541
|
+
}>>;
|
|
1542
|
+
declare type ContainerComponentProps = {
|
|
1543
|
+
id: string;
|
|
1544
|
+
instance: 'container';
|
|
1545
|
+
type: ContainerType;
|
|
1546
|
+
config: {
|
|
1547
|
+
wide?: AdditionalContainerProps;
|
|
1548
|
+
compact?: AdditionalContainerProps;
|
|
1549
|
+
props?: ContainerPropsType;
|
|
1550
|
+
};
|
|
1551
|
+
items: (ContainerComponentProps | Molecule)[];
|
|
1552
|
+
tabsProps?: Pick<TabGroupProps$1, 'tabs' | 'activeTabKey' | 'onTabChange'>;
|
|
1553
|
+
};
|
|
1554
|
+
|
|
1555
|
+
declare const ContainerWrapper: styled_components.StyledComponent<"div", styled_components.DefaultTheme, Pick<ContainerProps$2, "type"> & {
|
|
1556
|
+
containerProps?: Partial<{
|
|
1557
|
+
position: containers_types_types.ContainerPositionType;
|
|
1558
|
+
scrollBehaviour: containers_types_types.ContainerScrollBehaviourType;
|
|
1559
|
+
cornerRadius: number;
|
|
1560
|
+
styles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
|
|
1561
|
+
formProps: {
|
|
1562
|
+
mode: keyof react_hook_form.ValidationMode;
|
|
1563
|
+
};
|
|
1564
|
+
}> | undefined;
|
|
1565
|
+
}, never>;
|
|
1566
|
+
|
|
1567
|
+
declare const OrganismItem: ({ item, tabsProps, }: {
|
|
1568
|
+
item: ContainerComponentProps$1 | Molecule$1;
|
|
1569
|
+
tabsProps?: Pick<TabGroupProps$1<string, string>, "tabs" | "activeTabKey" | "onTabChange"> | undefined;
|
|
1570
|
+
}) => JSX.Element | null;
|
|
1571
|
+
|
|
1572
|
+
export { AcquisitionForm, AcquisitionFormProps, AdditionalContainerProps, Alert, AlertProps, AnnotationsList, ArrowIconWrapper, AuthMethod, Avatar, AvatarDropdown, AvatarDropdownProps, AvatarProps, BackgroundImage, BaseButtonProps, BaseMolecule, Body, BodyProps, BooleanAttributes, BottomNaVBarItemProps, BottomNavBarItem, BottomNavBarNavigation, BottomNavBarNavigationProps, BreakpointSizesTypes, Button, ButtonMolecule, ButtonProps, ButtonType, ButtonVariant, ButtonsWrapper, COMMUNICATION_LINK_DATA_TEXT, COMMUNICATION_LINK_DATA_URL, COMMUNICATION_LINK_ELEMENT_ID, CaretIconWrapper, Carousel, CarouselProps, Checkbox, CheckboxField, CheckboxFieldMolecule, CheckboxFieldProps, CheckboxGroup, CheckboxGroupProps, CheckboxProps, CheckboxesProps, Circle, CircleBoxProps, CircularIndicator, CircularIndicatorProps, CircularIndicatorStyledComponent, ColumnItem, Columns, ColumnsProps, Consent, ConsentProps, Container, ContainerComponent, ContainerComponentProps, ContainerPositionType, ContainerProps, ContainerPropsType, ContainerScrollBehaviourType, ContainerType, ContainerWrapper, CustomValidation, CustomValidationProps, CustomValidationRule, DefaultTemplate, DefaultTemplateProps, Divider, DividerProps, Drawer, DynamicContentZone, DynamicContentZoneProps, DynamicElementProps, EmphasizedText, EmphasizedTextProps, ErrorText, FeedContent, FeedContentContainer, FeedContentContainerProps, FeedContentHeader, FeedContentHeaderProps, FeedTemplateKeys, FieldLabels, FieldLabelsProps, FieldMapper, FieldMapperProps, FieldRuleLabelTypes, FieldSection, FieldSectionProps, FieldTypes, FilteredFeedContentType, FontSizesTypes, FontWeight, Footer, FooterContactInfo, FooterLink, FooterProps, ForgotPasswordForm, ForgotPasswordFormProps, GoogleMap, GoogleMapProps, Header, HeaderProps, HeroImage, HeroImageAlignment, HeroImageProps, HeroImageTemplate, HeroSlider, HeroSliderProps, HeroSliderWrapper, HorizontalButtons, HorizontalButtonsField, HorizontalButtonsProps, HorizontalPadding, HorizontalPaddingProps, ISI, ISIProps, Icon, IconButton, IconButtonProps, IconNames, IconProps, Image, ImageAttributes, ImageMolecule, ImageProps, Input, InputField, InputFieldInternalConfigProps, InputFieldProps, InputFieldTypes, InputIconProps, InputProps, IterableAttributes, LabelInternalConfig, LinkAttributes, LoginForm, LoginFormProps, MATRIX_MESSAGE_DATA_ID, MATRIX_MESSAGE_ELEMENT_ID, MapPosition, MenuItem, MenuItems, MenuItemsProps, MenuNavigation, MenuNavigationProps, MlrRichTextViewerContext, MlrRichTextViewerContextType, MlrRichTextViewerProvider, MlrRichTextViewerProviderProps, Molecule, MoleculeTypes, NavigationDotsWrapper, OrganismItem, OrientationType, PdfDocument, PdfDocumentProps, ProcessTracker, ProcessTrackerProps, ProcessTrackerStatus, ProfileInformation, ProfileInformationProps, RadioButtonField, RadioButtonFieldMolecule, RadioButtonFieldProps, RadioButtonInternalConfigProps, RadioButtons, RadioButtonsProps, RadioGroupWrapper, RegularImage, RegularImageProps, RichTextEditorProps, RichTextViewer, RuleLabelInternalConfig, Select, SelectAttributes, SelectField, SelectFieldMolecule, SelectFieldProps, SelectInternalConfigurationOptions, SelectOption, SelectProps, SelectableCardGroup, SelectableCardGroupProps, SeoTags, SetPasswordForm, SetPasswordFormProps, SetPasswordRuleValidation, SizesTypes, Slide, SlidesWrapper, Spacer, SpacerProps, Spinner, Stepper, StepperProps, StyleWrapper, SubscribePanel, Tab, TabGroup, TabGroupMolecule, TabGroupProps, TabOption, TabProps, TabTheme, TabType, TextAlign, TextAttributes, TextButton, TextButtonProps, TextInputMolecule, TextMolecule, TextMoleculeProps, TextMoleculeType, TextProps, TextTypes, TextWrapper, TextWrapperProps, ThemeColors, ThemeColorsType, ThemeDevicesType, ThemeSizesType, ThemeTextType, Tooltip, TooltipInternalConfig, TooltipProps, TouchableOpacity, TouchableOpacityProps, TwoFactorAuth, TwoFactorAuthProps, UICheckboxField, UIField, UIFields, UIInputField, UISelectField, ValidationTag, ValidationTagProps, ValidationTagStatus, VerticalPadding, Video, VideoAttributes, VideoMolecule, VideoProps, Wrapper, ZealTheme, ZealThemeProvider, acquisitionFormMockFields, defaultTheme, getFieldPlaceholder, getFieldsFromFieldSections, getInitialValuesFromFields, isFormValid, loginMockFields, profileInformationMockForm, sectionMockFields, setPasswordMockFields, showAcceptToastMessage, toast, toastStyles, useMediaQuery, useMlrRichTextViewerContext, useRequiredConsentsAcceptedValues, useStep };
|