@zealicsolutions/web-ui 1.0.0 → 1.0.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.css +246 -0
- package/dist/cjs/index.js +34 -32
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/atoms/Avatar/Avatar.d.ts +21 -0
- package/dist/cjs/src/atoms/Buttons/Button.d.ts +2 -2
- package/dist/cjs/src/atoms/Buttons/LinkButton.d.ts +3 -3
- package/dist/cjs/src/atoms/Divider/Divider.d.ts +9 -0
- package/dist/cjs/src/atoms/Icon/Icon.d.ts +4 -3
- package/dist/cjs/src/atoms/Input/Input.d.ts +3 -3
- package/dist/cjs/src/atoms/Paddings/Paddings.d.ts +6 -0
- package/dist/cjs/src/atoms/TextWrapper/TextWrapper.d.ts +2 -2
- package/dist/cjs/src/atoms/index.d.ts +3 -0
- package/dist/cjs/src/fieldsConfiguration/index.d.ts +1 -0
- package/dist/cjs/src/icons/CaretDown.d.ts +1 -1
- package/dist/cjs/src/index.d.ts +8 -2
- package/dist/cjs/src/molecules/AvatarDropdown/AvatarDropdown.d.ts +9 -0
- package/dist/cjs/src/molecules/MenuItems/MenuItems.d.ts +12 -0
- package/dist/cjs/src/molecules/Tab/Tab.d.ts +6 -4
- package/dist/cjs/src/molecules/TabGroup/TabGroup.d.ts +3 -2
- package/dist/cjs/src/molecules/index.d.ts +3 -0
- package/dist/cjs/src/organisms/AcquisitionForm/AcquisitionForm.d.ts +2 -2
- package/dist/cjs/src/organisms/ForgotPasswordForm/ForgotPasswordForm.d.ts +13 -0
- package/dist/cjs/src/organisms/ForgotPasswordForm/constants.d.ts +2 -0
- package/dist/cjs/src/organisms/Header/Header.d.ts +7 -2
- package/dist/cjs/src/organisms/LoginForm/LoginForm.d.ts +10 -5
- package/dist/cjs/src/organisms/index.d.ts +1 -0
- package/dist/cjs/src/pages/AuthPage/AuthDrawerContent.d.ts +11 -0
- package/dist/cjs/src/pages/AuthPage/AuthPage.d.ts +10 -0
- package/dist/cjs/src/pages/index.d.ts +1 -1
- package/dist/cjs/src/templates/DefaultTemplate/DefaultTemplate.d.ts +5 -4
- package/dist/cjs/src/theme/index.d.ts +1 -0
- package/dist/cjs/src/theme/types.d.ts +1 -1
- package/dist/cjs/src/typescript.d.ts +1 -0
- package/dist/esm/index.css +246 -0
- package/dist/esm/index.js +34 -32
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/atoms/Avatar/Avatar.d.ts +21 -0
- package/dist/esm/src/atoms/Buttons/Button.d.ts +2 -2
- package/dist/esm/src/atoms/Buttons/LinkButton.d.ts +3 -3
- package/dist/esm/src/atoms/Divider/Divider.d.ts +9 -0
- package/dist/esm/src/atoms/Icon/Icon.d.ts +4 -3
- package/dist/esm/src/atoms/Input/Input.d.ts +3 -3
- package/dist/esm/src/atoms/Paddings/Paddings.d.ts +6 -0
- package/dist/esm/src/atoms/TextWrapper/TextWrapper.d.ts +2 -2
- package/dist/esm/src/atoms/index.d.ts +3 -0
- package/dist/esm/src/fieldsConfiguration/index.d.ts +1 -0
- package/dist/esm/src/icons/CaretDown.d.ts +1 -1
- package/dist/esm/src/index.d.ts +8 -2
- package/dist/esm/src/molecules/AvatarDropdown/AvatarDropdown.d.ts +9 -0
- package/dist/esm/src/molecules/MenuItems/MenuItems.d.ts +12 -0
- package/dist/esm/src/molecules/Tab/Tab.d.ts +6 -4
- package/dist/esm/src/molecules/TabGroup/TabGroup.d.ts +3 -2
- package/dist/esm/src/molecules/index.d.ts +3 -0
- package/dist/esm/src/organisms/AcquisitionForm/AcquisitionForm.d.ts +2 -2
- package/dist/esm/src/organisms/ForgotPasswordForm/ForgotPasswordForm.d.ts +13 -0
- package/dist/esm/src/organisms/ForgotPasswordForm/constants.d.ts +2 -0
- package/dist/esm/src/organisms/Header/Header.d.ts +7 -2
- package/dist/esm/src/organisms/LoginForm/LoginForm.d.ts +10 -5
- package/dist/esm/src/organisms/index.d.ts +1 -0
- package/dist/esm/src/pages/AuthPage/AuthDrawerContent.d.ts +11 -0
- package/dist/esm/src/pages/AuthPage/AuthPage.d.ts +10 -0
- package/dist/esm/src/pages/index.d.ts +1 -1
- package/dist/esm/src/templates/DefaultTemplate/DefaultTemplate.d.ts +5 -4
- package/dist/esm/src/theme/index.d.ts +1 -0
- package/dist/esm/src/theme/types.d.ts +1 -1
- package/dist/esm/src/typescript.d.ts +1 -0
- package/dist/index.d.ts +504 -1
- package/package.json +1 -1
- package/dist/cjs/src/pages/Registiration/index.d.ts +0 -1
- package/dist/cjs/src/pages/RegistrationPage/RegistrationPage.d.ts +0 -10
- package/dist/esm/src/pages/Registiration/index.d.ts +0 -1
- package/dist/esm/src/pages/RegistrationPage/RegistrationPage.d.ts +0 -10
    
        package/dist/index.d.ts
    CHANGED
    
    | @@ -1 +1,504 @@ | |
| 1 | 
            -
             | 
| 1 | 
            +
            /// <reference types="react" />
         | 
| 2 | 
            +
            import { Callback, StylesType } from 'typescript';
         | 
| 3 | 
            +
            import * as react from 'react';
         | 
| 4 | 
            +
            import { PropsWithChildren, ReactNode, Dispatch, SetStateAction } from 'react';
         | 
| 5 | 
            +
            import * as styled_components from 'styled-components';
         | 
| 6 | 
            +
            import { DefaultTheme, CSSProperties } from 'styled-components';
         | 
| 7 | 
            +
            import { IconNames as IconNames$1 } from 'atoms/Icon/Icon';
         | 
| 8 | 
            +
            import { InputFieldTypes as InputFieldTypes$1 } from 'fieldsConfiguration/types';
         | 
| 9 | 
            +
            import { SizesTypes as SizesTypes$1, ThemeColors as ThemeColors$1 } from 'theme/types';
         | 
| 10 | 
            +
            import { SizesTypes as SizesTypes$2, ThemeColors as ThemeColors$2 } from 'theme';
         | 
| 11 | 
            +
            import { TooltipProps as TooltipProps$1 } from 'rc-tooltip/lib/Tooltip';
         | 
| 12 | 
            +
            import { Control } from 'react-hook-form/dist/types';
         | 
| 13 | 
            +
            import { SelectOption as SelectOption$1 } from 'atoms/Select/types';
         | 
| 14 | 
            +
            import { DrawerProps as DrawerProps$1 } from '@mui/material';
         | 
| 15 | 
            +
            import { SetPasswordFields, SetPasswordRuleValidation } from 'organisms/SetPasswordForm/types';
         | 
| 16 | 
            +
             | 
| 17 | 
            +
            declare type BaseButtonProps = {
         | 
| 18 | 
            +
                onClick?: Callback;
         | 
| 19 | 
            +
                variant?: 'primary' | 'secondary';
         | 
| 20 | 
            +
                disabled?: boolean;
         | 
| 21 | 
            +
                fullWidth?: boolean;
         | 
| 22 | 
            +
            };
         | 
| 23 | 
            +
            declare type ButtonProps = BaseButtonProps & {
         | 
| 24 | 
            +
                fullWidth?: boolean;
         | 
| 25 | 
            +
                text?: string;
         | 
| 26 | 
            +
                loading?: boolean;
         | 
| 27 | 
            +
            };
         | 
| 28 | 
            +
            declare const Button: ({ text, onClick, loading, disabled, variant, fullWidth, }: ButtonProps) => JSX.Element;
         | 
| 29 | 
            +
             | 
| 30 | 
            +
            declare type TouchableOpacityProps = PropsWithChildren<{
         | 
| 31 | 
            +
                activeOpacity?: number;
         | 
| 32 | 
            +
                withoutOpacityEffect?: boolean;
         | 
| 33 | 
            +
                disabled?: boolean;
         | 
| 34 | 
            +
            }>;
         | 
| 35 | 
            +
            declare const TouchableOpacity: styled_components.StyledComponent<"div", styled_components.DefaultTheme, {
         | 
| 36 | 
            +
                activeOpacity?: number | undefined;
         | 
| 37 | 
            +
                withoutOpacityEffect?: boolean | undefined;
         | 
| 38 | 
            +
                disabled?: boolean | undefined;
         | 
| 39 | 
            +
            } & {
         | 
| 40 | 
            +
                children?: react.ReactNode;
         | 
| 41 | 
            +
            }, never>;
         | 
| 42 | 
            +
             | 
| 43 | 
            +
            declare type CheckBoxProps = {
         | 
| 44 | 
            +
                value: boolean;
         | 
| 45 | 
            +
                onClick: (value: boolean) => void;
         | 
| 46 | 
            +
                disabled?: boolean;
         | 
| 47 | 
            +
                error?: boolean;
         | 
| 48 | 
            +
                label?: string;
         | 
| 49 | 
            +
            };
         | 
| 50 | 
            +
            declare const Checkbox: ({ label, onClick, value, disabled, error }: CheckBoxProps) => JSX.Element;
         | 
| 51 | 
            +
             | 
| 52 | 
            +
            declare type SelectOption = {
         | 
| 53 | 
            +
                id: string;
         | 
| 54 | 
            +
                label: string;
         | 
| 55 | 
            +
            };
         | 
| 56 | 
            +
            declare type SelectProps = {
         | 
| 57 | 
            +
                value?: string;
         | 
| 58 | 
            +
                onChange?: (value: string) => void;
         | 
| 59 | 
            +
                placeholder?: string;
         | 
| 60 | 
            +
                disabled?: boolean;
         | 
| 61 | 
            +
                options: SelectOption[];
         | 
| 62 | 
            +
                isError?: boolean;
         | 
| 63 | 
            +
                isEditMode?: boolean;
         | 
| 64 | 
            +
            };
         | 
| 65 | 
            +
             | 
| 66 | 
            +
            declare const Select: ({ onChange, value, placeholder, options, disabled, isError, }: SelectProps) => JSX.Element;
         | 
| 67 | 
            +
             | 
| 68 | 
            +
            declare type InputIconProps = {
         | 
| 69 | 
            +
                name: IconNames$1;
         | 
| 70 | 
            +
                onClick?: Callback;
         | 
| 71 | 
            +
            };
         | 
| 72 | 
            +
            declare type InputProps = {
         | 
| 73 | 
            +
                value?: string;
         | 
| 74 | 
            +
                leftIcon?: InputIconProps;
         | 
| 75 | 
            +
                rightIcon?: InputIconProps;
         | 
| 76 | 
            +
                onBlur?: Callback;
         | 
| 77 | 
            +
                type?: InputFieldTypes$1;
         | 
| 78 | 
            +
                placeholder?: string;
         | 
| 79 | 
            +
                disabled?: boolean;
         | 
| 80 | 
            +
                isEditMode?: boolean;
         | 
| 81 | 
            +
                isError?: boolean;
         | 
| 82 | 
            +
                maxLength?: number;
         | 
| 83 | 
            +
                onChange?: (value: string) => void;
         | 
| 84 | 
            +
            };
         | 
| 85 | 
            +
            declare const Input: ({ value, leftIcon, rightIcon, onChange, onBlur, disabled, isError, placeholder, isEditMode, type, ...rest }: InputProps) => JSX.Element;
         | 
| 86 | 
            +
             | 
| 87 | 
            +
            declare type TextTypes = 'primary' | 'secondary' | 'error' | 'success';
         | 
| 88 | 
            +
            declare type TextWrapperProps = {
         | 
| 89 | 
            +
                children: ReactNode;
         | 
| 90 | 
            +
                variant: SizesTypes$1;
         | 
| 91 | 
            +
                layout?: 'div' | 'span';
         | 
| 92 | 
            +
                type?: TextTypes;
         | 
| 93 | 
            +
                styles?: StylesType;
         | 
| 94 | 
            +
                color?: ThemeColors$1 | string;
         | 
| 95 | 
            +
            };
         | 
| 96 | 
            +
            declare const TextWrapper: styled_components.StyledComponent<"div", styled_components.DefaultTheme, TextWrapperProps, never>;
         | 
| 97 | 
            +
             | 
| 98 | 
            +
            declare const defaultTheme: DefaultTheme;
         | 
| 99 | 
            +
             | 
| 100 | 
            +
            declare const ZealThemeProvider: (props: PropsWithChildren<{}>) => JSX.Element;
         | 
| 101 | 
            +
             | 
| 102 | 
            +
            declare type ThemeColors = 'primary' | 'secondary' | 'background' | 'gray1' | 'gray2' | 'gray3' | 'gray4' | 'gray5' | 'indigo' | 'blue' | 'white' | 'black' | 'indigoTint' | 'indigoTint2' | 'success' | 'error' | 'warning';
         | 
| 103 | 
            +
            declare type SizesTypes = '2XL' | 'XL' | 'L' | 'M' | 'S' | 'XS';
         | 
| 104 | 
            +
            declare type ThemeColorsType = Record<ThemeColors, string>;
         | 
| 105 | 
            +
            declare type ThemeTextType = Record<SizesTypes, {
         | 
| 106 | 
            +
                'font-weight': string;
         | 
| 107 | 
            +
                'font-size': number;
         | 
| 108 | 
            +
                'line-height': number;
         | 
| 109 | 
            +
            }>;
         | 
| 110 | 
            +
            declare type ThemeSizesType = Record<SizesTypes, number>;
         | 
| 111 | 
            +
             | 
| 112 | 
            +
            declare const toastStyles: styled_components.FlattenSimpleInterpolation;
         | 
| 113 | 
            +
             | 
| 114 | 
            +
            declare type IconProps = {
         | 
| 115 | 
            +
                name: IconNames;
         | 
| 116 | 
            +
                size?: number;
         | 
| 117 | 
            +
                color?: ThemeColors | string;
         | 
| 118 | 
            +
                pointerEvents?: 'auto' | 'none';
         | 
| 119 | 
            +
            };
         | 
| 120 | 
            +
            declare const availableIcons: {
         | 
| 121 | 
            +
                CaretDown: ({ color, size }: Omit<IconProps, "name">) => JSX.Element;
         | 
| 122 | 
            +
                CaretUp: ({ color, ...props }: Omit<IconProps, "name">) => JSX.Element;
         | 
| 123 | 
            +
                Filter: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
         | 
| 124 | 
            +
                Check: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
         | 
| 125 | 
            +
                Info: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
         | 
| 126 | 
            +
                View: ({ color, size }: Omit<IconProps, "name">) => JSX.Element;
         | 
| 127 | 
            +
                Hide: ({ color, size }: Omit<IconProps, "name">) => JSX.Element;
         | 
| 128 | 
            +
                Close: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
         | 
| 129 | 
            +
                Minus: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
         | 
| 130 | 
            +
                InfoBoxIcon: ({ color, size }: Omit<IconProps, "name">) => JSX.Element;
         | 
| 131 | 
            +
                Warning: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
         | 
| 132 | 
            +
                Bell: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
         | 
| 133 | 
            +
                Mobile: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
         | 
| 134 | 
            +
                Mail: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
         | 
| 135 | 
            +
            };
         | 
| 136 | 
            +
            declare type IconNames = keyof typeof availableIcons;
         | 
| 137 | 
            +
            declare const Icon: ({ name, color, ...props }: IconProps) => JSX.Element;
         | 
| 138 | 
            +
             | 
| 139 | 
            +
            declare type SpacerProps = {
         | 
| 140 | 
            +
                width?: SizesTypes$2 | number;
         | 
| 141 | 
            +
                height?: SizesTypes$2 | number;
         | 
| 142 | 
            +
                layout?: 'div' | 'span';
         | 
| 143 | 
            +
            };
         | 
| 144 | 
            +
            declare const Spacer: styled_components.StyledComponent<"div", styled_components.DefaultTheme, SpacerProps, never>;
         | 
| 145 | 
            +
             | 
| 146 | 
            +
            declare const Spinner: styled_components.StyledComponent<"div", styled_components.DefaultTheme, {
         | 
| 147 | 
            +
                color?: ThemeColors$1 | undefined;
         | 
| 148 | 
            +
                size?: SizesTypes$1 | undefined;
         | 
| 149 | 
            +
            }, never>;
         | 
| 150 | 
            +
             | 
| 151 | 
            +
            declare type ImageProps = {
         | 
| 152 | 
            +
                src: string;
         | 
| 153 | 
            +
                alt?: string;
         | 
| 154 | 
            +
                styles?: CSSProperties;
         | 
| 155 | 
            +
            };
         | 
| 156 | 
            +
            declare const Image: (props: ImageProps) => JSX.Element;
         | 
| 157 | 
            +
             | 
| 158 | 
            +
            declare type LinkButtonProps = PropsWithChildren<{
         | 
| 159 | 
            +
                activeOpacity?: number;
         | 
| 160 | 
            +
                withoutOpacityEffect?: boolean;
         | 
| 161 | 
            +
                disabled?: boolean;
         | 
| 162 | 
            +
                onClick?: Callback;
         | 
| 163 | 
            +
            }>;
         | 
| 164 | 
            +
            declare const LinkButton: styled_components.StyledComponent<"div", styled_components.DefaultTheme, {
         | 
| 165 | 
            +
                activeOpacity?: number | undefined;
         | 
| 166 | 
            +
                withoutOpacityEffect?: boolean | undefined;
         | 
| 167 | 
            +
                disabled?: boolean | undefined;
         | 
| 168 | 
            +
            } & {
         | 
| 169 | 
            +
                children?: react.ReactNode;
         | 
| 170 | 
            +
            } & {
         | 
| 171 | 
            +
                activeOpacity?: number | undefined;
         | 
| 172 | 
            +
                withoutOpacityEffect?: boolean | undefined;
         | 
| 173 | 
            +
                disabled?: boolean | undefined;
         | 
| 174 | 
            +
                onClick?: Callback | undefined;
         | 
| 175 | 
            +
            }, never>;
         | 
| 176 | 
            +
             | 
| 177 | 
            +
            declare type ValidationTagStatus = 'DEFAULT' | 'ERROR' | 'SUCCESS';
         | 
| 178 | 
            +
            declare type ValidationTagProps = {
         | 
| 179 | 
            +
                status: ValidationTagStatus;
         | 
| 180 | 
            +
                text: string;
         | 
| 181 | 
            +
            };
         | 
| 182 | 
            +
            declare const ValidationTag: ({ text, status }: ValidationTagProps) => JSX.Element;
         | 
| 183 | 
            +
             | 
| 184 | 
            +
            declare type TooltipProps = Pick<TooltipProps$1, 'overlay' | 'placement' | 'trigger' | 'visible' | 'children'>;
         | 
| 185 | 
            +
            declare const StyleWrapper: styled_components.StyledComponent<"div", styled_components.DefaultTheme, {}, never>;
         | 
| 186 | 
            +
            declare const Tooltip: ({ trigger, placement, ...props }: TooltipProps) => JSX.Element;
         | 
| 187 | 
            +
             | 
| 188 | 
            +
            declare type ToastType = 'success' | 'infoTierOne' | 'infoTierTwo' | 'warning' | 'error';
         | 
| 189 | 
            +
            declare type ToastParams = {
         | 
| 190 | 
            +
                message: string;
         | 
| 191 | 
            +
                type?: ToastType;
         | 
| 192 | 
            +
                duration?: number;
         | 
| 193 | 
            +
            };
         | 
| 194 | 
            +
             | 
| 195 | 
            +
            declare const toast: ({ message, type, duration }: ToastParams) => void | undefined;
         | 
| 196 | 
            +
             | 
| 197 | 
            +
            declare type AvatarProps = {
         | 
| 198 | 
            +
                size?: SizesTypes | number;
         | 
| 199 | 
            +
                withShadow?: boolean;
         | 
| 200 | 
            +
                label?: string;
         | 
| 201 | 
            +
                backgroundColor?: ThemeColors;
         | 
| 202 | 
            +
                textConfig?: {
         | 
| 203 | 
            +
                    color?: ThemeColors;
         | 
| 204 | 
            +
                    font?: SizesTypes;
         | 
| 205 | 
            +
                };
         | 
| 206 | 
            +
                content: {
         | 
| 207 | 
            +
                    initials?: string;
         | 
| 208 | 
            +
                    iconName?: IconNames;
         | 
| 209 | 
            +
                    imageUrl?: string;
         | 
| 210 | 
            +
                };
         | 
| 211 | 
            +
                onPress?: Callback;
         | 
| 212 | 
            +
            };
         | 
| 213 | 
            +
            declare const Avatar: ({ size, withShadow, label, backgroundColor, onPress, content: { initials, iconName, imageUrl }, textConfig: { color, font }, }: AvatarProps) => JSX.Element;
         | 
| 214 | 
            +
             | 
| 215 | 
            +
            declare type HorizontalPaddingProps = {
         | 
| 216 | 
            +
                padding: SizesTypes$2 | number;
         | 
| 217 | 
            +
            };
         | 
| 218 | 
            +
            declare const HorizontalPadding: styled_components.StyledComponent<"div", styled_components.DefaultTheme, HorizontalPaddingProps, never>;
         | 
| 219 | 
            +
            declare const VerticalPadding: styled_components.StyledComponent<"div", styled_components.DefaultTheme, HorizontalPaddingProps, never>;
         | 
| 220 | 
            +
             | 
| 221 | 
            +
            declare type DividerProps = {
         | 
| 222 | 
            +
                type?: 'horizontal' | 'vertical';
         | 
| 223 | 
            +
                color?: ThemeColors$2 | string;
         | 
| 224 | 
            +
                marginVertical?: SizesTypes$2 | number;
         | 
| 225 | 
            +
                marginHorizontal?: SizesTypes$2 | number;
         | 
| 226 | 
            +
                weight?: number;
         | 
| 227 | 
            +
            };
         | 
| 228 | 
            +
            declare const Divider: styled_components.StyledComponent<"div", styled_components.DefaultTheme, DividerProps, never>;
         | 
| 229 | 
            +
             | 
| 230 | 
            +
            declare type FieldRuleLabelTypes = 'OPTIONAL' | 'REQUIRED';
         | 
| 231 | 
            +
            declare type FieldLabelsProps = {
         | 
| 232 | 
            +
                label: string;
         | 
| 233 | 
            +
                tooltipText?: string;
         | 
| 234 | 
            +
                isError?: boolean;
         | 
| 235 | 
            +
                ruleLabel?: FieldRuleLabelTypes;
         | 
| 236 | 
            +
            };
         | 
| 237 | 
            +
            declare const FieldLabels: ({ label, isError, ruleLabel, tooltipText }: FieldLabelsProps) => JSX.Element;
         | 
| 238 | 
            +
             | 
| 239 | 
            +
            declare type InputFieldProps = {
         | 
| 240 | 
            +
                name: string;
         | 
| 241 | 
            +
                control?: Control<any>;
         | 
| 242 | 
            +
                required?: boolean;
         | 
| 243 | 
            +
                optional?: boolean;
         | 
| 244 | 
            +
                defaultValue?: string;
         | 
| 245 | 
            +
                inputProps: InputProps;
         | 
| 246 | 
            +
                styles?: CSSProperties;
         | 
| 247 | 
            +
                labelsProps?: FieldLabelsProps;
         | 
| 248 | 
            +
            };
         | 
| 249 | 
            +
            declare const InputField: ({ control, name, inputProps, styles, labelsProps, defaultValue, optional, required, }: InputFieldProps) => JSX.Element;
         | 
| 250 | 
            +
             | 
| 251 | 
            +
            declare type InputFieldTypes = 'number' | 'text' | 'email' | 'password';
         | 
| 252 | 
            +
            declare type UIField<T = string> = (UIInputField | UISelectField | UICheckboxField) & {
         | 
| 253 | 
            +
                name: T;
         | 
| 254 | 
            +
                value?: string;
         | 
| 255 | 
            +
                label?: string;
         | 
| 256 | 
            +
                placeholder?: string;
         | 
| 257 | 
            +
                required?: boolean;
         | 
| 258 | 
            +
                optional?: boolean;
         | 
| 259 | 
            +
                tooltip?: string;
         | 
| 260 | 
            +
            };
         | 
| 261 | 
            +
            declare type UIInputField = {
         | 
| 262 | 
            +
                type: 'input';
         | 
| 263 | 
            +
                inputType?: InputFieldTypes;
         | 
| 264 | 
            +
                maxLength?: number;
         | 
| 265 | 
            +
            };
         | 
| 266 | 
            +
            declare type UISelectField = {
         | 
| 267 | 
            +
                type: 'select';
         | 
| 268 | 
            +
                options: SelectOption$1[];
         | 
| 269 | 
            +
            };
         | 
| 270 | 
            +
            declare type UICheckboxField = {
         | 
| 271 | 
            +
                type: 'checkbox';
         | 
| 272 | 
            +
                checkboxLabel?: string;
         | 
| 273 | 
            +
            };
         | 
| 274 | 
            +
            declare type UIFields<T extends object> = UIField<keyof T>[];
         | 
| 275 | 
            +
             | 
| 276 | 
            +
            declare type FieldMapperProps<T extends object> = {
         | 
| 277 | 
            +
                field: UIField<keyof T>;
         | 
| 278 | 
            +
                control: Control<T>;
         | 
| 279 | 
            +
                spacer?: number;
         | 
| 280 | 
            +
            };
         | 
| 281 | 
            +
            declare const FieldMapper: <T extends object>({ field, spacer, control, }: FieldMapperProps<T>) => JSX.Element;
         | 
| 282 | 
            +
             | 
| 283 | 
            +
            declare type CheckboxFieldProps = {
         | 
| 284 | 
            +
                name: string;
         | 
| 285 | 
            +
                control: Control<any>;
         | 
| 286 | 
            +
                defaultValue?: boolean;
         | 
| 287 | 
            +
                checkboxProps: Omit<CheckBoxProps, 'error' | 'onClick' | 'value'>;
         | 
| 288 | 
            +
            };
         | 
| 289 | 
            +
            declare const CheckboxField: ({ control, name, checkboxProps, defaultValue, }: CheckboxFieldProps) => JSX.Element;
         | 
| 290 | 
            +
             | 
| 291 | 
            +
            declare type SelectFieldProps = {
         | 
| 292 | 
            +
                selectProps: SelectProps;
         | 
| 293 | 
            +
                labelsProps?: FieldLabelsProps;
         | 
| 294 | 
            +
                name: string;
         | 
| 295 | 
            +
                control: Control<any>;
         | 
| 296 | 
            +
                required?: boolean;
         | 
| 297 | 
            +
                optional?: boolean;
         | 
| 298 | 
            +
                defaultValue?: string;
         | 
| 299 | 
            +
                styles?: CSSProperties;
         | 
| 300 | 
            +
            };
         | 
| 301 | 
            +
            declare const SelectField: ({ selectProps, name, defaultValue, optional, required, control, styles, labelsProps, }: SelectFieldProps) => JSX.Element;
         | 
| 302 | 
            +
             | 
| 303 | 
            +
            declare type CustomValidationRule<T = string> = {
         | 
| 304 | 
            +
                text: string;
         | 
| 305 | 
            +
                validate: (value?: T) => boolean;
         | 
| 306 | 
            +
            };
         | 
| 307 | 
            +
            declare type CustomValidationProps<T = string> = {
         | 
| 308 | 
            +
                label?: string;
         | 
| 309 | 
            +
                value: T;
         | 
| 310 | 
            +
                isSubmitted?: boolean;
         | 
| 311 | 
            +
                rules: CustomValidationRule<T>[];
         | 
| 312 | 
            +
            };
         | 
| 313 | 
            +
            declare const CustomValidation: <T extends string = string>({ rules, value, isSubmitted, label, }: CustomValidationProps<T>) => JSX.Element;
         | 
| 314 | 
            +
             | 
| 315 | 
            +
            declare type BaseSelectableProps<T> = {
         | 
| 316 | 
            +
                iconName: IconNames;
         | 
| 317 | 
            +
                infoText: string;
         | 
| 318 | 
            +
                isActive?: boolean;
         | 
| 319 | 
            +
                onClick?: (value: T) => void;
         | 
| 320 | 
            +
                value: T;
         | 
| 321 | 
            +
            };
         | 
| 322 | 
            +
             | 
| 323 | 
            +
            declare type SelectableCardGroupProps<T> = {
         | 
| 324 | 
            +
                cards: BaseSelectableProps<T>[];
         | 
| 325 | 
            +
                handleChange?: (value: T | undefined) => void;
         | 
| 326 | 
            +
                spacing?: SizesTypes;
         | 
| 327 | 
            +
                initialValue?: T;
         | 
| 328 | 
            +
            };
         | 
| 329 | 
            +
            declare const SelectableCardGroup: <T extends string>({ cards, handleChange, spacing, initialValue, }: SelectableCardGroupProps<T>) => JSX.Element;
         | 
| 330 | 
            +
             | 
| 331 | 
            +
            declare type BannerProps = {
         | 
| 332 | 
            +
                backgroundImage: ImageProps;
         | 
| 333 | 
            +
                title: string;
         | 
| 334 | 
            +
                description?: string;
         | 
| 335 | 
            +
                button?: ButtonProps;
         | 
| 336 | 
            +
            };
         | 
| 337 | 
            +
            declare const Banner: ({ backgroundImage, button, title, description }: BannerProps) => JSX.Element;
         | 
| 338 | 
            +
             | 
| 339 | 
            +
            declare type Anchor = 'top' | 'left' | 'bottom' | 'right';
         | 
| 340 | 
            +
            declare type DrawerProps = DrawerProps$1 & {
         | 
| 341 | 
            +
                anchor: Anchor;
         | 
| 342 | 
            +
            };
         | 
| 343 | 
            +
             | 
| 344 | 
            +
            declare const Drawer: ({ children, ...props }: PropsWithChildren<DrawerProps>) => JSX.Element;
         | 
| 345 | 
            +
             | 
| 346 | 
            +
            declare type InfoBoxProps = {
         | 
| 347 | 
            +
                title: string;
         | 
| 348 | 
            +
                description?: string;
         | 
| 349 | 
            +
                linkButton?: LinkButtonProps;
         | 
| 350 | 
            +
                icon?: IconNames;
         | 
| 351 | 
            +
            };
         | 
| 352 | 
            +
            declare const InfoBox: ({ title, icon, description, linkButton }: InfoBoxProps) => JSX.Element;
         | 
| 353 | 
            +
             | 
| 354 | 
            +
            declare type MenuItem<T> = {
         | 
| 355 | 
            +
                id: T;
         | 
| 356 | 
            +
                title: string;
         | 
| 357 | 
            +
                onClick?: (id: T) => void;
         | 
| 358 | 
            +
            };
         | 
| 359 | 
            +
            declare type MenuItemsProps<T> = {
         | 
| 360 | 
            +
                title?: string;
         | 
| 361 | 
            +
                onItemPress?: (id: T) => void;
         | 
| 362 | 
            +
                options: MenuItem<T>[];
         | 
| 363 | 
            +
            };
         | 
| 364 | 
            +
            declare const MenuItems: <T extends string | number>({ title, onItemPress, options, }: MenuItemsProps<T>) => JSX.Element;
         | 
| 365 | 
            +
             | 
| 366 | 
            +
            declare type AvatarDropdownProps<T> = {
         | 
| 367 | 
            +
                avatarProps: AvatarProps;
         | 
| 368 | 
            +
                menuConfig: MenuItemsProps<T>;
         | 
| 369 | 
            +
            };
         | 
| 370 | 
            +
            declare const AvatarDropdown: <T extends string | number>({ avatarProps, menuConfig, }: AvatarDropdownProps<T>) => JSX.Element;
         | 
| 371 | 
            +
             | 
| 372 | 
            +
            declare type TabProps<T = string, K = string> = {
         | 
| 373 | 
            +
                tabKey: T;
         | 
| 374 | 
            +
                text: string;
         | 
| 375 | 
            +
                disabled?: boolean;
         | 
| 376 | 
            +
                isActive?: boolean;
         | 
| 377 | 
            +
                onClick?: (key: T) => void;
         | 
| 378 | 
            +
                options?: MenuItemsProps<T>[];
         | 
| 379 | 
            +
                onOptionClick?: (optionKey: K) => void;
         | 
| 380 | 
            +
            };
         | 
| 381 | 
            +
             | 
| 382 | 
            +
            declare type TabGroupProps<T = string, K = string> = {
         | 
| 383 | 
            +
                tabs: Pick<TabProps<T>, 'text' | 'tabKey' | 'disabled' | 'options'>[];
         | 
| 384 | 
            +
                activeTabKey: T;
         | 
| 385 | 
            +
                spacing?: SizesTypes$1;
         | 
| 386 | 
            +
                onTabChange?: (tabKey: T) => void;
         | 
| 387 | 
            +
                onOptionClick?: (optionKey: K) => void;
         | 
| 388 | 
            +
            };
         | 
| 389 | 
            +
            declare const TabGroup: <T extends string, K extends string>({ tabs, spacing, activeTabKey, onTabChange, }: TabGroupProps<T, K>) => JSX.Element;
         | 
| 390 | 
            +
             | 
| 391 | 
            +
            declare type SetPasswordFormProps = {
         | 
| 392 | 
            +
                fields: UIFields<SetPasswordFields>;
         | 
| 393 | 
            +
                logoUrl: string;
         | 
| 394 | 
            +
                isLoading?: boolean;
         | 
| 395 | 
            +
                validations: SetPasswordRuleValidation[];
         | 
| 396 | 
            +
                onSubmit: (values: SetPasswordFields) => void;
         | 
| 397 | 
            +
                onBack: () => void;
         | 
| 398 | 
            +
            };
         | 
| 399 | 
            +
            declare const SetPasswordForm: ({ logoUrl, fields, validations, onBack, onSubmit, isLoading, }: SetPasswordFormProps) => JSX.Element;
         | 
| 400 | 
            +
             | 
| 401 | 
            +
            declare type AcquisitionFormProps<T extends object> = {
         | 
| 402 | 
            +
                fields: UIFields<T>;
         | 
| 403 | 
            +
                logoUrl: string;
         | 
| 404 | 
            +
                isLoading?: boolean;
         | 
| 405 | 
            +
                onSubmit: (values: T) => void;
         | 
| 406 | 
            +
                onLinkButtonClick?: Callback;
         | 
| 407 | 
            +
            };
         | 
| 408 | 
            +
            declare const AcquisitionForm: <T extends object>({ logoUrl, fields, onSubmit, onLinkButtonClick, isLoading, }: AcquisitionFormProps<T>) => JSX.Element;
         | 
| 409 | 
            +
             | 
| 410 | 
            +
            declare type LoginFields = {
         | 
| 411 | 
            +
                email: string;
         | 
| 412 | 
            +
                password: string;
         | 
| 413 | 
            +
                rememberMe: boolean;
         | 
| 414 | 
            +
            };
         | 
| 415 | 
            +
             | 
| 416 | 
            +
            declare type VerificationCodeForm = {
         | 
| 417 | 
            +
                code: string;
         | 
| 418 | 
            +
            };
         | 
| 419 | 
            +
            declare type AuthMethod = 'email' | 'sms';
         | 
| 420 | 
            +
            declare type TwoFactorAuthProps = {
         | 
| 421 | 
            +
                logoUrl: string;
         | 
| 422 | 
            +
                onNext?: (authMethod: AuthMethod) => Promise<void>;
         | 
| 423 | 
            +
                onSubmit?: (values: VerificationCodeForm) => void;
         | 
| 424 | 
            +
                onBack?: () => void;
         | 
| 425 | 
            +
            };
         | 
| 426 | 
            +
            declare const TwoFactorAuth: ({ logoUrl, onSubmit, onBack, onNext }: TwoFactorAuthProps) => JSX.Element;
         | 
| 427 | 
            +
             | 
| 428 | 
            +
            declare type LoginFormProps = {
         | 
| 429 | 
            +
                fields: UIFields<LoginFields>;
         | 
| 430 | 
            +
                logoUrl: string;
         | 
| 431 | 
            +
                isLoading?: boolean;
         | 
| 432 | 
            +
                twoFactorAuthConfig?: {
         | 
| 433 | 
            +
                    twoFactorShow: boolean;
         | 
| 434 | 
            +
                    twoFactorAuthProps: TwoFactorAuthProps;
         | 
| 435 | 
            +
                };
         | 
| 436 | 
            +
                onSubmit: (values: LoginFields) => void;
         | 
| 437 | 
            +
                onSignUpButtonClick?: Callback;
         | 
| 438 | 
            +
                onForgotPasswordButtonClick?: Callback;
         | 
| 439 | 
            +
            };
         | 
| 440 | 
            +
            declare const LoginForm: ({ logoUrl, fields, onSubmit, onSignUpButtonClick, isLoading, twoFactorAuthConfig, onForgotPasswordButtonClick, }: LoginFormProps) => JSX.Element;
         | 
| 441 | 
            +
             | 
| 442 | 
            +
            declare type ImportantLink = {
         | 
| 443 | 
            +
                text: string;
         | 
| 444 | 
            +
                href: string;
         | 
| 445 | 
            +
            };
         | 
| 446 | 
            +
            declare type HeaderProps = {
         | 
| 447 | 
            +
                links?: ImportantLink[];
         | 
| 448 | 
            +
                logoUrl: string;
         | 
| 449 | 
            +
                tabs: TabGroupProps['tabs'];
         | 
| 450 | 
            +
                withAvatar?: {
         | 
| 451 | 
            +
                    props: AvatarDropdownProps<string>;
         | 
| 452 | 
            +
                };
         | 
| 453 | 
            +
                onActionButtonClick?: Callback;
         | 
| 454 | 
            +
            };
         | 
| 455 | 
            +
            declare const Header: ({ logoUrl, links, onActionButtonClick, tabs, withAvatar }: HeaderProps) => JSX.Element;
         | 
| 456 | 
            +
             | 
| 457 | 
            +
            declare type EmailAddressFields = {
         | 
| 458 | 
            +
                email: string;
         | 
| 459 | 
            +
            };
         | 
| 460 | 
            +
            declare type ForgotPasswordFormProps = {
         | 
| 461 | 
            +
                logoUrl: string;
         | 
| 462 | 
            +
                isLoading?: boolean;
         | 
| 463 | 
            +
                onSubmit?: (values: EmailAddressFields) => void;
         | 
| 464 | 
            +
                onBack?: Callback;
         | 
| 465 | 
            +
            };
         | 
| 466 | 
            +
            declare const ForgotPasswordForm: ({ logoUrl, onBack, onSubmit, isLoading, }: ForgotPasswordFormProps) => JSX.Element;
         | 
| 467 | 
            +
             | 
| 468 | 
            +
            declare type DefaultTemplateProps = {
         | 
| 469 | 
            +
                header: HeaderProps;
         | 
| 470 | 
            +
                banner?: BannerProps;
         | 
| 471 | 
            +
                renderContent: () => JSX.Element;
         | 
| 472 | 
            +
            };
         | 
| 473 | 
            +
            declare const DefaultTemplate: ({ banner, header, renderContent }: DefaultTemplateProps) => JSX.Element;
         | 
| 474 | 
            +
             | 
| 475 | 
            +
            declare type AuthDrawerContentType = 'sign-up' | 'sign-in' | 'set-password' | 'forgot-password';
         | 
| 476 | 
            +
            declare type AuthDrawerContentProps = {
         | 
| 477 | 
            +
                type: AuthDrawerContentType;
         | 
| 478 | 
            +
                acquisitionFormConfig: AcquisitionFormProps<any>;
         | 
| 479 | 
            +
                loginFormConfig: LoginFormProps;
         | 
| 480 | 
            +
                forgotPasswordConfig: ForgotPasswordFormProps;
         | 
| 481 | 
            +
                setPasswordConfig: SetPasswordFormProps;
         | 
| 482 | 
            +
            };
         | 
| 483 | 
            +
             | 
| 484 | 
            +
            declare type RegistrationPageProps = {
         | 
| 485 | 
            +
                templateConfig: DefaultTemplateProps;
         | 
| 486 | 
            +
                drawerConfig: Pick<DrawerProps, 'open' | 'onClose'>;
         | 
| 487 | 
            +
                drawerContentConfig: AuthDrawerContentProps;
         | 
| 488 | 
            +
            };
         | 
| 489 | 
            +
            declare const AuthPage: ({ templateConfig, drawerContentConfig, drawerConfig, }: RegistrationPageProps) => JSX.Element;
         | 
| 490 | 
            +
             | 
| 491 | 
            +
            interface Helpers {
         | 
| 492 | 
            +
                goToNextStep: () => void;
         | 
| 493 | 
            +
                goToPrevStep: () => void;
         | 
| 494 | 
            +
                reset: () => void;
         | 
| 495 | 
            +
                canGoToNextStep: boolean;
         | 
| 496 | 
            +
                canGoToPrevStep: boolean;
         | 
| 497 | 
            +
                setStep: Dispatch<SetStateAction<number>>;
         | 
| 498 | 
            +
            }
         | 
| 499 | 
            +
            declare const useStep: (maxStep: number) => [number, Helpers];
         | 
| 500 | 
            +
             | 
| 501 | 
            +
            declare const AppLogo: string;
         | 
| 502 | 
            +
            declare const HomeBannerImage: string;
         | 
| 503 | 
            +
             | 
| 504 | 
            +
            export { AcquisitionForm, AcquisitionFormProps, AppLogo, AuthMethod, AuthPage, Avatar, AvatarDropdown, AvatarDropdownProps, AvatarProps, Banner, BannerProps, BaseButtonProps, Button, ButtonProps, CheckBoxProps, Checkbox, CheckboxField, CheckboxFieldProps, CustomValidation, CustomValidationProps, CustomValidationRule, DefaultTemplate, DefaultTemplateProps, Divider, DividerProps, Drawer, FieldLabels, FieldLabelsProps, FieldMapper, FieldMapperProps, FieldRuleLabelTypes, ForgotPasswordForm, ForgotPasswordFormProps, Header, HeaderProps, HomeBannerImage, HorizontalPadding, HorizontalPaddingProps, Icon, IconNames, IconProps, Image, ImageProps, InfoBox, InfoBoxProps, Input, InputField, InputFieldProps, InputIconProps, InputProps, LinkButton, LinkButtonProps, LoginForm, LoginFormProps, MenuItem, MenuItems, MenuItemsProps, RegistrationPageProps, Select, SelectField, SelectFieldProps, SelectableCardGroup, SelectableCardGroupProps, SetPasswordForm, SetPasswordFormProps, SizesTypes, Spacer, SpacerProps, Spinner, StyleWrapper, TabGroup, TabGroupProps, TextTypes, TextWrapper, TextWrapperProps, ThemeColors, ThemeColorsType, ThemeSizesType, ThemeTextType, Tooltip, TooltipProps, TouchableOpacity, TouchableOpacityProps, TwoFactorAuth, TwoFactorAuthProps, ValidationTag, ValidationTagProps, ValidationTagStatus, VerticalPadding, ZealThemeProvider, defaultTheme, toast, toastStyles, useStep };
         | 
    
        package/package.json
    CHANGED
    
    
| @@ -1 +0,0 @@ | |
| 1 | 
            -
            export declare const page = "page";
         | 
| @@ -1,10 +0,0 @@ | |
| 1 | 
            -
            /// <reference types="react" />
         | 
| 2 | 
            -
            import { DrawerProps } from '../../molecules/Drawer/styles';
         | 
| 3 | 
            -
            import { AcquisitionFormProps } from '../../organisms';
         | 
| 4 | 
            -
            import { DefaultTemplateProps } from '../../templates';
         | 
| 5 | 
            -
            export declare type RegistrationPageProps<T extends object> = {
         | 
| 6 | 
            -
                templateConfig: DefaultTemplateProps;
         | 
| 7 | 
            -
                acquisitionFormConfig: AcquisitionFormProps<T>;
         | 
| 8 | 
            -
                drawerConfig: Pick<DrawerProps, 'open' | 'onClose'>;
         | 
| 9 | 
            -
            };
         | 
| 10 | 
            -
            export declare const RegistrationPage: <T extends object>({ templateConfig, acquisitionFormConfig, drawerConfig, }: RegistrationPageProps<T>) => JSX.Element;
         | 
| @@ -1 +0,0 @@ | |
| 1 | 
            -
            export declare const page = "page";
         | 
| @@ -1,10 +0,0 @@ | |
| 1 | 
            -
            /// <reference types="react" />
         | 
| 2 | 
            -
            import { DrawerProps } from '../../molecules/Drawer/styles';
         | 
| 3 | 
            -
            import { AcquisitionFormProps } from '../../organisms';
         | 
| 4 | 
            -
            import { DefaultTemplateProps } from '../../templates';
         | 
| 5 | 
            -
            export declare type RegistrationPageProps<T extends object> = {
         | 
| 6 | 
            -
                templateConfig: DefaultTemplateProps;
         | 
| 7 | 
            -
                acquisitionFormConfig: AcquisitionFormProps<T>;
         | 
| 8 | 
            -
                drawerConfig: Pick<DrawerProps, 'open' | 'onClose'>;
         | 
| 9 | 
            -
            };
         | 
| 10 | 
            -
            export declare const RegistrationPage: <T extends object>({ templateConfig, acquisitionFormConfig, drawerConfig, }: RegistrationPageProps<T>) => JSX.Element;
         |