@zealicsolutions/web-ui 0.0.7 → 0.0.9
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 +46 -37
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/assets/index.d.ts +1 -0
- package/dist/cjs/src/atoms/Avatar/Avatar.d.ts +1 -1
- package/dist/cjs/src/atoms/Avatar/Avatar.stories.d.ts +9 -0
- package/dist/cjs/src/atoms/Buttons/Button.stories.d.ts +13 -0
- package/dist/cjs/src/atoms/Checkbox/Checkbox.stories.d.ts +9 -0
- package/dist/cjs/src/atoms/GoogleMap/GoogleMap.d.ts +13 -0
- package/dist/cjs/src/atoms/GoogleMap/GoogleMap.stories.d.ts +12 -0
- package/dist/cjs/src/atoms/Icon/Icon.stories.d.ts +9 -0
- package/dist/cjs/src/atoms/Image/Image.stories.d.ts +9 -0
- package/dist/cjs/src/atoms/Input/Input.stories.d.ts +9 -0
- package/dist/cjs/src/atoms/Select/Select.stories.d.ts +9 -0
- package/dist/cjs/src/atoms/TextWrapper/TextWrapper.stories.d.ts +9 -0
- package/dist/cjs/src/atoms/Toast/Toast.stories.d.ts +9 -0
- package/dist/cjs/src/atoms/Tooltip/Tooltip.stories.d.ts +9 -0
- package/dist/cjs/src/atoms/ValidationTag/ValidationTag.stories.d.ts +9 -0
- package/dist/cjs/src/atoms/index.d.ts +1 -0
- package/dist/cjs/src/fieldsConfiguration/mock.d.ts +5 -0
- package/dist/cjs/src/fieldsConfiguration/utils.d.ts +2 -0
- package/dist/cjs/src/icons/Edit.d.ts +3 -0
- package/dist/cjs/src/icons/Save.d.ts +3 -0
- package/dist/cjs/src/icons/index.d.ts +2 -0
- package/dist/cjs/src/index.d.ts +0 -1
- package/dist/cjs/src/molecules/AvatarDropdown/AvatarDropdown.stories.d.ts +9 -0
- package/dist/cjs/src/molecules/Banner/Banner.stories.d.ts +9 -0
- package/dist/cjs/src/molecules/CheckboxField/CheckboxField.d.ts +1 -1
- package/dist/cjs/src/molecules/CustomValidation/CustomValidation.stories.d.ts +9 -0
- package/dist/cjs/src/molecules/Drawer/Drawer.d.ts +1 -1
- package/dist/cjs/src/molecules/Drawer/Drawer.stories.d.ts +9 -0
- package/dist/cjs/src/molecules/Drawer/styles.d.ts +13 -1
- package/dist/cjs/src/molecules/FieldLabels/FieldLabels.stories.d.ts +9 -0
- package/dist/cjs/src/molecules/FieldMapper/FieldMapper.d.ts +3 -2
- package/dist/cjs/src/molecules/FieldSection/FieldSection.d.ts +10 -0
- package/dist/cjs/src/molecules/FieldSection/FieldSection.stories.d.ts +9 -0
- package/dist/cjs/src/molecules/InfoBox/InfoBox.stories.d.ts +9 -0
- package/dist/cjs/src/molecules/InputField/InputField.stories.d.ts +10 -0
- package/dist/cjs/src/molecules/MenuItems/MenuItems.stories.d.ts +9 -0
- package/dist/cjs/src/molecules/SelectField/SelectField.d.ts +1 -1
- package/dist/cjs/src/molecules/SelectField/SelectField.stories.d.ts +9 -0
- package/dist/cjs/src/molecules/SelectableInfoCard/SelectableInfoCard.stories.d.ts +9 -0
- package/dist/cjs/src/molecules/TabGroup/TabGroup.stories.d.ts +9 -0
- package/dist/cjs/src/molecules/index.d.ts +1 -0
- package/dist/cjs/src/organisms/AccountInformation/AccountInformation.d.ts +11 -0
- package/dist/cjs/src/organisms/AcquisitionForm/AcquisitionForm.stories.d.ts +9 -0
- package/dist/cjs/src/organisms/ForgotPasswordForm/ForgotPasswordForm.stories.d.ts +9 -0
- package/dist/cjs/src/organisms/Header/Header.stories.d.ts +9 -0
- package/dist/cjs/src/organisms/LoginForm/LoginForm.stories.d.ts +9 -0
- package/dist/cjs/src/organisms/ProfileInformation/ProfileInformation.d.ts +19 -0
- package/dist/cjs/src/organisms/ProfileInformation/ProfileInformation.stories.d.ts +9 -0
- package/dist/cjs/src/organisms/SetPasswordForm/SetPasswordForm.stories.d.ts +9 -0
- package/dist/cjs/src/organisms/TwoFactorAuth/TwoFactorAuth.stories.d.ts +9 -0
- package/dist/cjs/src/organisms/index.d.ts +1 -0
- package/dist/cjs/src/templates/DefaultTemplate/DefaultTemplate.d.ts +4 -6
- package/dist/cjs/src/templates/DefaultTemplate/DefaultTemplate.stories.d.ts +9 -0
- package/dist/cjs/src/templates/DefaultTemplate/mockProps.d.ts +6 -0
- package/dist/cjs/src/theme/provider.d.ts +4 -1
- package/dist/esm/index.js +46 -37
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/assets/index.d.ts +1 -0
- package/dist/esm/src/atoms/Avatar/Avatar.d.ts +1 -1
- package/dist/esm/src/atoms/Avatar/Avatar.stories.d.ts +9 -0
- package/dist/esm/src/atoms/Buttons/Button.stories.d.ts +13 -0
- package/dist/esm/src/atoms/Checkbox/Checkbox.stories.d.ts +9 -0
- package/dist/esm/src/atoms/GoogleMap/GoogleMap.d.ts +13 -0
- package/dist/esm/src/atoms/GoogleMap/GoogleMap.stories.d.ts +12 -0
- package/dist/esm/src/atoms/Icon/Icon.stories.d.ts +9 -0
- package/dist/esm/src/atoms/Image/Image.stories.d.ts +9 -0
- package/dist/esm/src/atoms/Input/Input.stories.d.ts +9 -0
- package/dist/esm/src/atoms/Select/Select.stories.d.ts +9 -0
- package/dist/esm/src/atoms/TextWrapper/TextWrapper.stories.d.ts +9 -0
- package/dist/esm/src/atoms/Toast/Toast.stories.d.ts +9 -0
- package/dist/esm/src/atoms/Tooltip/Tooltip.stories.d.ts +9 -0
- package/dist/esm/src/atoms/ValidationTag/ValidationTag.stories.d.ts +9 -0
- package/dist/esm/src/atoms/index.d.ts +1 -0
- package/dist/esm/src/fieldsConfiguration/mock.d.ts +5 -0
- package/dist/esm/src/fieldsConfiguration/utils.d.ts +2 -0
- package/dist/esm/src/icons/Edit.d.ts +3 -0
- package/dist/esm/src/icons/Save.d.ts +3 -0
- package/dist/esm/src/icons/index.d.ts +2 -0
- package/dist/esm/src/index.d.ts +0 -1
- package/dist/esm/src/molecules/AvatarDropdown/AvatarDropdown.stories.d.ts +9 -0
- package/dist/esm/src/molecules/Banner/Banner.stories.d.ts +9 -0
- package/dist/esm/src/molecules/CheckboxField/CheckboxField.d.ts +1 -1
- package/dist/esm/src/molecules/CustomValidation/CustomValidation.stories.d.ts +9 -0
- package/dist/esm/src/molecules/Drawer/Drawer.d.ts +1 -1
- package/dist/esm/src/molecules/Drawer/Drawer.stories.d.ts +9 -0
- package/dist/esm/src/molecules/Drawer/styles.d.ts +13 -1
- package/dist/esm/src/molecules/FieldLabels/FieldLabels.stories.d.ts +9 -0
- package/dist/esm/src/molecules/FieldMapper/FieldMapper.d.ts +3 -2
- package/dist/esm/src/molecules/FieldSection/FieldSection.d.ts +10 -0
- package/dist/esm/src/molecules/FieldSection/FieldSection.stories.d.ts +9 -0
- package/dist/esm/src/molecules/InfoBox/InfoBox.stories.d.ts +9 -0
- package/dist/esm/src/molecules/InputField/InputField.stories.d.ts +10 -0
- package/dist/esm/src/molecules/MenuItems/MenuItems.stories.d.ts +9 -0
- package/dist/esm/src/molecules/SelectField/SelectField.d.ts +1 -1
- package/dist/esm/src/molecules/SelectField/SelectField.stories.d.ts +9 -0
- package/dist/esm/src/molecules/SelectableInfoCard/SelectableInfoCard.stories.d.ts +9 -0
- package/dist/esm/src/molecules/TabGroup/TabGroup.stories.d.ts +9 -0
- package/dist/esm/src/molecules/index.d.ts +1 -0
- package/dist/esm/src/organisms/AccountInformation/AccountInformation.d.ts +11 -0
- package/dist/esm/src/organisms/AcquisitionForm/AcquisitionForm.stories.d.ts +9 -0
- package/dist/esm/src/organisms/ForgotPasswordForm/ForgotPasswordForm.stories.d.ts +9 -0
- package/dist/esm/src/organisms/Header/Header.stories.d.ts +9 -0
- package/dist/esm/src/organisms/LoginForm/LoginForm.stories.d.ts +9 -0
- package/dist/esm/src/organisms/ProfileInformation/ProfileInformation.d.ts +19 -0
- package/dist/esm/src/organisms/ProfileInformation/ProfileInformation.stories.d.ts +9 -0
- package/dist/esm/src/organisms/SetPasswordForm/SetPasswordForm.stories.d.ts +9 -0
- package/dist/esm/src/organisms/TwoFactorAuth/TwoFactorAuth.stories.d.ts +9 -0
- package/dist/esm/src/organisms/index.d.ts +1 -0
- package/dist/esm/src/templates/DefaultTemplate/DefaultTemplate.d.ts +4 -6
- package/dist/esm/src/templates/DefaultTemplate/DefaultTemplate.stories.d.ts +9 -0
- package/dist/esm/src/templates/DefaultTemplate/mockProps.d.ts +6 -0
- package/dist/esm/src/theme/provider.d.ts +4 -1
- package/dist/index.d.ts +65 -32
- package/package.json +4 -3
- package/dist/cjs/src/pages/AuthPage/AuthDrawerContent.d.ts +0 -11
- package/dist/cjs/src/pages/AuthPage/AuthPage.d.ts +0 -10
- package/dist/cjs/src/pages/index.d.ts +0 -1
- package/dist/cjs/src/templates/MainTemplate/index.d.ts +0 -1
- package/dist/esm/src/pages/AuthPage/AuthDrawerContent.d.ts +0 -11
- package/dist/esm/src/pages/AuthPage/AuthPage.d.ts +0 -10
- package/dist/esm/src/pages/index.d.ts +0 -1
- package/dist/esm/src/templates/MainTemplate/index.d.ts +0 -1
@@ -1,7 +1,7 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import type { Callback } from 'typescript';
|
3
|
+
import { SizesTypes, ThemeColors } from 'theme';
|
3
4
|
import { IconNames } from '..';
|
4
|
-
import { SizesTypes, ThemeColors } from '../../theme';
|
5
5
|
export declare type AvatarProps = {
|
6
6
|
size?: SizesTypes | number;
|
7
7
|
withShadow?: boolean;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { ComponentStory } from '@storybook/react';
|
3
|
+
import { Avatar as AvatarComponent } from './Avatar';
|
4
|
+
declare const _default: {
|
5
|
+
title: string;
|
6
|
+
component: ({ size, withShadow, label, backgroundColor, onPress, content: { initials, iconName, imageUrl }, textConfig: { color, font }, }: import("./Avatar").AvatarProps) => JSX.Element;
|
7
|
+
};
|
8
|
+
export default _default;
|
9
|
+
export declare const Avatar: ComponentStory<typeof AvatarComponent>;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import type { ComponentStory } from '@storybook/react';
|
2
|
+
import { FC } from 'react';
|
3
|
+
import { Button as ButtonComponent } from './Button';
|
4
|
+
import { LinkButtonProps } from './LinkButton';
|
5
|
+
import { TouchableOpacityProps } from './TouchableOpacity';
|
6
|
+
declare const _default: {
|
7
|
+
title: string;
|
8
|
+
component: ({ text, onClick, loading, disabled, variant, fullWidth, }: import("./Button").ButtonProps) => JSX.Element;
|
9
|
+
};
|
10
|
+
export default _default;
|
11
|
+
export declare const Button: ComponentStory<typeof ButtonComponent>;
|
12
|
+
export declare const TouchableOpacity: ComponentStory<FC<TouchableOpacityProps>>;
|
13
|
+
export declare const LinkButton: ComponentStory<FC<LinkButtonProps>>;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { ComponentStory } from '@storybook/react';
|
3
|
+
import { Checkbox as CheckboxComponent } from './Checkbox';
|
4
|
+
declare const _default: {
|
5
|
+
title: string;
|
6
|
+
component: ({ label, onClick, value, disabled, error }: import("./Checkbox").CheckBoxProps) => JSX.Element;
|
7
|
+
};
|
8
|
+
export default _default;
|
9
|
+
export declare const Checkbox: ComponentStory<typeof CheckboxComponent>;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { WithGoogleMapProps } from 'react-google-maps/lib/withGoogleMap';
|
3
|
+
import { WithScriptjsProps } from 'react-google-maps/lib/withScriptjs';
|
4
|
+
export declare type MapPosition = {
|
5
|
+
lat: number;
|
6
|
+
lng: number;
|
7
|
+
};
|
8
|
+
export declare type GoogleMapProps = {
|
9
|
+
position: MapPosition;
|
10
|
+
} & WithScriptjsProps & WithGoogleMapProps;
|
11
|
+
export declare const GoogleMap: React.ComponentClass<{
|
12
|
+
position: MapPosition;
|
13
|
+
} & WithScriptjsProps & WithGoogleMapProps, any>;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
/// <reference types="react-google-maps/types" />
|
3
|
+
import type { ComponentStory } from '@storybook/react';
|
4
|
+
import { GoogleMap as GoogleMapComponent } from './GoogleMap';
|
5
|
+
declare const _default: {
|
6
|
+
title: string;
|
7
|
+
component: import("react").ComponentClass<{
|
8
|
+
position: import("./GoogleMap").MapPosition;
|
9
|
+
} & import("react-google-maps/lib/withScriptjs").WithScriptjsProps & import("react-google-maps/lib/withGoogleMap").WithGoogleMapProps, any>;
|
10
|
+
};
|
11
|
+
export default _default;
|
12
|
+
export declare const GoogleMap: ComponentStory<typeof GoogleMapComponent>;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { ComponentStory } from '@storybook/react';
|
3
|
+
import { Icon as IconComponent } from './Icon';
|
4
|
+
declare const _default: {
|
5
|
+
title: string;
|
6
|
+
component: ({ name, color, ...props }: import("./Icon").IconProps) => JSX.Element;
|
7
|
+
};
|
8
|
+
export default _default;
|
9
|
+
export declare const Icon: ComponentStory<typeof IconComponent>;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { ComponentStory } from '@storybook/react';
|
3
|
+
import { Image as ImageComponent } from './Image';
|
4
|
+
declare const _default: {
|
5
|
+
title: string;
|
6
|
+
component: (props: import("./Image").ImageProps) => JSX.Element;
|
7
|
+
};
|
8
|
+
export default _default;
|
9
|
+
export declare const Image: ComponentStory<typeof ImageComponent>;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { ComponentStory } from '@storybook/react';
|
3
|
+
import { Input as InputComponent } from './Input';
|
4
|
+
declare const _default: {
|
5
|
+
title: string;
|
6
|
+
component: ({ value, leftIcon, rightIcon, onChange, onBlur, disabled, isError, placeholder, isEditMode, type, ...rest }: import("./Input").InputProps) => JSX.Element;
|
7
|
+
};
|
8
|
+
export default _default;
|
9
|
+
export declare const Input: ComponentStory<typeof InputComponent>;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { ComponentStory } from '@storybook/react';
|
3
|
+
import { Select as SelectComponent } from './Select';
|
4
|
+
declare const _default: {
|
5
|
+
title: string;
|
6
|
+
component: ({ onChange, value, placeholder, options, disabled, isError, }: import("./types").SelectProps) => JSX.Element;
|
7
|
+
};
|
8
|
+
export default _default;
|
9
|
+
export declare const Select: ComponentStory<typeof SelectComponent>;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import type { ComponentStory } from '@storybook/react';
|
2
|
+
import { FC } from 'react';
|
3
|
+
import { TextWrapperProps } from './TextWrapper';
|
4
|
+
declare const _default: {
|
5
|
+
title: string;
|
6
|
+
component: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, TextWrapperProps, never>;
|
7
|
+
};
|
8
|
+
export default _default;
|
9
|
+
export declare const Text: ComponentStory<FC<TextWrapperProps>>;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import type { ComponentStory } from '@storybook/react';
|
2
|
+
import { FC } from 'react';
|
3
|
+
import { ToastParams } from './types';
|
4
|
+
declare const _default: {
|
5
|
+
title: string;
|
6
|
+
component: ({ message, type, duration }: ToastParams) => void | undefined;
|
7
|
+
};
|
8
|
+
export default _default;
|
9
|
+
export declare const Toast: ComponentStory<FC<ToastParams>>;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import type { ComponentStory } from '@storybook/react';
|
2
|
+
import { FC } from 'react';
|
3
|
+
import { TooltipProps } from './Tooltip';
|
4
|
+
declare const _default: {
|
5
|
+
title: string;
|
6
|
+
component: ({ trigger, placement, ...props }: TooltipProps) => JSX.Element;
|
7
|
+
};
|
8
|
+
export default _default;
|
9
|
+
export declare const Tooltip: ComponentStory<FC<TooltipProps>>;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { ComponentStory } from '@storybook/react';
|
3
|
+
import { ValidationTag as ValidationTagComponent } from './ValidationTag';
|
4
|
+
declare const _default: {
|
5
|
+
title: string;
|
6
|
+
component: ({ text, status }: import("./ValidationTag").ValidationTagProps) => JSX.Element;
|
7
|
+
};
|
8
|
+
export default _default;
|
9
|
+
export declare const ValidationTag: ComponentStory<typeof ValidationTagComponent>;
|
@@ -4,3 +4,8 @@ import { SetPasswordFields } from 'organisms/SetPasswordForm/types';
|
|
4
4
|
export declare const acquisitionFormMockFields: UIFields<any>;
|
5
5
|
export declare const setPasswordMockFields: UIFields<SetPasswordFields>;
|
6
6
|
export declare const loginMockFields: UIFields<LoginFields>;
|
7
|
+
export declare const sectionMockFields: UIFields<any>;
|
8
|
+
export declare const profileInformationMockForm: {
|
9
|
+
label: string;
|
10
|
+
fields: UIFields<any>;
|
11
|
+
}[];
|
@@ -1,4 +1,6 @@
|
|
1
1
|
import { UIFields } from 'fieldsConfiguration/types';
|
2
|
+
import { FieldSectionProps } from 'molecules';
|
2
3
|
import { DeepPartial, FieldValues, FormState } from 'react-hook-form';
|
3
4
|
export declare const getInitialValuesFromFields: <T extends object>(fields: UIFields<T>) => DeepPartial<T>;
|
4
5
|
export declare const isFormValid: <T extends FieldValues>(formState: FormState<T>) => boolean;
|
6
|
+
export declare const getFieldsFromFieldSections: <T extends object>(sections: Pick<FieldSectionProps<T>, "fields">[]) => UIFields<T>;
|
package/dist/cjs/src/index.d.ts
CHANGED
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { ComponentStory } from '@storybook/react';
|
3
|
+
import { AvatarDropdown as AvatarDropdownComponent } from './AvatarDropdown';
|
4
|
+
declare const _default: {
|
5
|
+
title: string;
|
6
|
+
component: <T extends string | number>({ avatarProps, menuConfig, }: import("./AvatarDropdown").AvatarDropdownProps<T>) => JSX.Element;
|
7
|
+
};
|
8
|
+
export default _default;
|
9
|
+
export declare const AvatarDropdown: ComponentStory<typeof AvatarDropdownComponent>;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { ComponentStory } from '@storybook/react';
|
3
|
+
import { Banner as BannerComponent } from './Banner';
|
4
|
+
declare const _default: {
|
5
|
+
title: string;
|
6
|
+
component: ({ backgroundImage, button, title, description }: import("./Banner").BannerProps) => JSX.Element;
|
7
|
+
};
|
8
|
+
export default _default;
|
9
|
+
export declare const Banner: ComponentStory<typeof BannerComponent>;
|
@@ -3,7 +3,7 @@ import { Control } from 'react-hook-form/dist/types';
|
|
3
3
|
import { CheckBoxProps } from '../../atoms';
|
4
4
|
export declare type CheckboxFieldProps = {
|
5
5
|
name: string;
|
6
|
-
control
|
6
|
+
control?: Control<any>;
|
7
7
|
defaultValue?: boolean;
|
8
8
|
checkboxProps: Omit<CheckBoxProps, 'error' | 'onClick' | 'value'>;
|
9
9
|
};
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { ComponentStory } from '@storybook/react';
|
3
|
+
import { CustomValidation as CustomValidationComponent } from './CustomValidation';
|
4
|
+
declare const _default: {
|
5
|
+
title: string;
|
6
|
+
component: <T extends string = string>({ rules, value, isSubmitted, label, }: import("./CustomValidation").CustomValidationProps<T>) => JSX.Element;
|
7
|
+
};
|
8
|
+
export default _default;
|
9
|
+
export declare const CustomValidation: ComponentStory<typeof CustomValidationComponent>;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
2
2
|
import { DrawerProps } from './styles';
|
3
|
-
export declare const Drawer: ({ children, ...props }: PropsWithChildren<DrawerProps>) => JSX.Element;
|
3
|
+
export declare const Drawer: ({ children, closeIconColor, ...props }: PropsWithChildren<DrawerProps>) => JSX.Element;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import type { ComponentStory } from '@storybook/react';
|
2
|
+
import React from 'react';
|
3
|
+
import { Drawer as DrawerComponent } from './Drawer';
|
4
|
+
declare const _default: {
|
5
|
+
title: string;
|
6
|
+
component: ({ children, closeIconColor, ...props }: React.PropsWithChildren<import("./styles").DrawerProps>) => JSX.Element;
|
7
|
+
};
|
8
|
+
export default _default;
|
9
|
+
export declare const Drawer: ComponentStory<typeof DrawerComponent>;
|
@@ -1,9 +1,21 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { SizesTypes, ThemeColors } from 'theme/types';
|
1
3
|
import { Drawer as DrawerComponent, DrawerProps as DrawerComponentProps } from '@mui/material';
|
2
4
|
export declare type Anchor = 'top' | 'left' | 'bottom' | 'right';
|
3
5
|
export declare type DrawerProps = DrawerComponentProps & {
|
4
6
|
anchor: Anchor;
|
7
|
+
padding?: SizesTypes | number;
|
8
|
+
closeIconColor?: ThemeColors | string;
|
5
9
|
};
|
6
10
|
export declare const BaseDrawer: import("styled-components").StyledComponent<typeof DrawerComponent, import("styled-components").DefaultTheme, DrawerComponentProps & {
|
7
11
|
anchor: Anchor;
|
12
|
+
padding?: number | SizesTypes | undefined;
|
13
|
+
closeIconColor?: string | undefined;
|
14
|
+
}, never>;
|
15
|
+
export declare const IconWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
16
|
+
activeOpacity?: number | undefined;
|
17
|
+
withoutOpacityEffect?: boolean | undefined;
|
18
|
+
disabled?: boolean | undefined;
|
19
|
+
} & {
|
20
|
+
children?: import("react").ReactNode;
|
8
21
|
}, never>;
|
9
|
-
export declare const IconWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { ComponentStory } from '@storybook/react';
|
3
|
+
import { FieldLabels as FieldLabelsComponent } from './FieldLabels';
|
4
|
+
declare const _default: {
|
5
|
+
title: string;
|
6
|
+
component: ({ label, isError, ruleLabel, tooltipText }: import("./FieldLabels").FieldLabelsProps) => JSX.Element;
|
7
|
+
};
|
8
|
+
export default _default;
|
9
|
+
export declare const FieldLabels: ComponentStory<typeof FieldLabelsComponent>;
|
@@ -3,7 +3,8 @@ import { Control } from 'react-hook-form/dist/types';
|
|
3
3
|
import { UIField } from '../../fieldsConfiguration';
|
4
4
|
export declare type FieldMapperProps<T extends object> = {
|
5
5
|
field: UIField<keyof T>;
|
6
|
-
|
6
|
+
isEditMode?: boolean;
|
7
|
+
control?: Control<T>;
|
7
8
|
spacer?: number;
|
8
9
|
};
|
9
|
-
export declare const FieldMapper: <T extends object>({ field, spacer, control, }: FieldMapperProps<T>) => JSX.Element;
|
10
|
+
export declare const FieldMapper: <T extends object>({ field, isEditMode, spacer, control, }: FieldMapperProps<T>) => JSX.Element;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { Control } from 'react-hook-form/dist/types';
|
3
|
+
import { UIFields } from '../../fieldsConfiguration';
|
4
|
+
export declare type FieldSectionProps<T extends object> = {
|
5
|
+
label: string;
|
6
|
+
control?: Control<T>;
|
7
|
+
isEditMode?: boolean;
|
8
|
+
fields: UIFields<T>;
|
9
|
+
};
|
10
|
+
export declare const FieldSection: <T extends object>({ fields, label, isEditMode, control, }: FieldSectionProps<T>) => JSX.Element;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { ComponentStory } from '@storybook/react';
|
3
|
+
import { FieldSection as FieldSectionComponent } from './FieldSection';
|
4
|
+
declare const _default: {
|
5
|
+
title: string;
|
6
|
+
component: <T extends object>({ fields, label, isEditMode, control, }: import("./FieldSection").FieldSectionProps<T>) => JSX.Element;
|
7
|
+
};
|
8
|
+
export default _default;
|
9
|
+
export declare const FieldSection: ComponentStory<typeof FieldSectionComponent>;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { ComponentStory } from '@storybook/react';
|
3
|
+
import { InfoBox as InfoBoxComponent } from './InfoBox';
|
4
|
+
declare const _default: {
|
5
|
+
title: string;
|
6
|
+
component: ({ title, icon, description, linkButton }: import("./InfoBox").InfoBoxProps) => JSX.Element;
|
7
|
+
};
|
8
|
+
export default _default;
|
9
|
+
export declare const InfoBox: ComponentStory<typeof InfoBoxComponent>;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { ComponentStory } from '@storybook/react';
|
3
|
+
import { InputField as InputFieldComponent } from './InputField';
|
4
|
+
declare const _default: {
|
5
|
+
title: string;
|
6
|
+
component: ({ control, name, inputProps, styles, labelsProps, defaultValue, optional, required, }: import("./InputField").InputFieldProps) => JSX.Element;
|
7
|
+
};
|
8
|
+
export default _default;
|
9
|
+
export declare const InputField: ComponentStory<typeof InputFieldComponent>;
|
10
|
+
export declare const InputPasswordField: ComponentStory<typeof InputFieldComponent>;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { ComponentStory } from '@storybook/react';
|
3
|
+
import { MenuItems as MenuItemsComponent } from './MenuItems';
|
4
|
+
declare const _default: {
|
5
|
+
title: string;
|
6
|
+
component: <T extends string | number>({ title, onItemPress, options, }: import("./MenuItems").MenuItemsProps<T>) => JSX.Element;
|
7
|
+
};
|
8
|
+
export default _default;
|
9
|
+
export declare const MenuItems: ComponentStory<typeof MenuItemsComponent>;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { ComponentStory } from '@storybook/react';
|
3
|
+
import { SelectField as SelectFieldComponent } from './SelectField';
|
4
|
+
declare const _default: {
|
5
|
+
title: string;
|
6
|
+
component: ({ selectProps, name, defaultValue, optional, required, control, styles, labelsProps, }: import("./SelectField").SelectFieldProps) => JSX.Element;
|
7
|
+
};
|
8
|
+
export default _default;
|
9
|
+
export declare const SelectField: ComponentStory<typeof SelectFieldComponent>;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { ComponentStory } from '@storybook/react';
|
3
|
+
import { SelectableCardGroup as SelectableCardGroupComponent } from './SelectableCardGroup';
|
4
|
+
declare const _default: {
|
5
|
+
title: string;
|
6
|
+
component: <T extends string>({ cards, handleChange, spacing, initialValue, }: import("./SelectableCardGroup").SelectableCardGroupProps<T>) => JSX.Element;
|
7
|
+
};
|
8
|
+
export default _default;
|
9
|
+
export declare const SelectableCardGroup: ComponentStory<typeof SelectableCardGroupComponent>;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { ComponentStory } from '@storybook/react';
|
3
|
+
import { TabGroup as TabGroupComponent } from './TabGroup';
|
4
|
+
declare const _default: {
|
5
|
+
title: string;
|
6
|
+
component: <T extends string, K extends string>({ tabs, spacing, activeTabKey, onTabChange, }: import("./TabGroup").TabGroupProps<T, K>) => JSX.Element;
|
7
|
+
};
|
8
|
+
export default _default;
|
9
|
+
export declare const TabGroup: ComponentStory<typeof TabGroupComponent>;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { Control } from 'react-hook-form';
|
3
|
+
import { GoogleMapProps } from '../../atoms';
|
4
|
+
import { FieldSectionProps } from '../../molecules';
|
5
|
+
export declare type AccountInformationProps<T extends object> = {
|
6
|
+
fieldSections: Pick<FieldSectionProps<T>, 'fields' | 'label'>[];
|
7
|
+
control: Control<any>;
|
8
|
+
isEditMode?: boolean;
|
9
|
+
mapConfig: GoogleMapProps;
|
10
|
+
};
|
11
|
+
export declare const AccountInformation: <T extends object>({ fieldSections, control, isEditMode, mapConfig, }: AccountInformationProps<T>) => JSX.Element;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { ComponentStory } from '@storybook/react';
|
3
|
+
import { AcquisitionForm as AcquisitionFormComponent } from './AcquisitionForm';
|
4
|
+
declare const _default: {
|
5
|
+
title: string;
|
6
|
+
component: <T extends object>({ logoUrl, fields, onSubmit, onLinkButtonClick, isLoading, }: import("./AcquisitionForm").AcquisitionFormProps<T>) => JSX.Element;
|
7
|
+
};
|
8
|
+
export default _default;
|
9
|
+
export declare const AcquisitionForm: ComponentStory<typeof AcquisitionFormComponent>;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { ComponentStory } from '@storybook/react';
|
3
|
+
import { ForgotPasswordForm as ForgotPasswordFormComponent } from './ForgotPasswordForm';
|
4
|
+
declare const _default: {
|
5
|
+
title: string;
|
6
|
+
component: ({ logoUrl, onBack, onSubmit, isLoading, }: import("./ForgotPasswordForm").ForgotPasswordFormProps) => JSX.Element;
|
7
|
+
};
|
8
|
+
export default _default;
|
9
|
+
export declare const ForgotPasswordForm: ComponentStory<typeof ForgotPasswordFormComponent>;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { ComponentStory } from '@storybook/react';
|
3
|
+
import { Header as HeaderComponent } from './Header';
|
4
|
+
declare const _default: {
|
5
|
+
title: string;
|
6
|
+
component: ({ logoUrl, links, onActionButtonClick, tabs, withAvatar }: import("./Header").HeaderProps) => JSX.Element;
|
7
|
+
};
|
8
|
+
export default _default;
|
9
|
+
export declare const Header: ComponentStory<typeof HeaderComponent>;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { ComponentStory } from '@storybook/react';
|
3
|
+
import { LoginForm as LoginFormComponent } from './LoginForm';
|
4
|
+
declare const _default: {
|
5
|
+
title: string;
|
6
|
+
component: ({ logoUrl, fields, onSubmit, onSignUpButtonClick, isLoading, twoFactorAuthConfig, onForgotPasswordButtonClick, }: import("./LoginForm").LoginFormProps) => JSX.Element;
|
7
|
+
};
|
8
|
+
export default _default;
|
9
|
+
export declare const LoginForm: ComponentStory<typeof LoginFormComponent>;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { ReactNode } from 'react';
|
2
|
+
import type { Callback } from 'typescript';
|
3
|
+
import { AvatarProps } from '../../atoms';
|
4
|
+
import { TabProps } from '../../molecules/Tab/Tab';
|
5
|
+
export declare type ProfileInformationProps<TabKeys extends string> = {
|
6
|
+
backgroundImageUrl: string;
|
7
|
+
avatarProps: AvatarProps;
|
8
|
+
tabs: TabProps<string, TabKeys>[];
|
9
|
+
tabContents: Record<TabKeys, () => ReactNode>;
|
10
|
+
initialTabKey: TabKeys;
|
11
|
+
title: string;
|
12
|
+
editIcons?: {
|
13
|
+
isEditMode: boolean;
|
14
|
+
onSave: Callback;
|
15
|
+
onEdit: Callback;
|
16
|
+
onClose: Callback;
|
17
|
+
};
|
18
|
+
};
|
19
|
+
export declare const ProfileInformation: <TabKeys extends string>({ avatarProps, backgroundImageUrl, initialTabKey, tabs, title, editIcons, tabContents, }: ProfileInformationProps<TabKeys>) => JSX.Element;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { ComponentStory } from '@storybook/react';
|
3
|
+
import { ProfileInformation as ProfileInformationComponent } from './ProfileInformation';
|
4
|
+
declare const _default: {
|
5
|
+
title: string;
|
6
|
+
component: <TabKeys extends string>({ avatarProps, backgroundImageUrl, initialTabKey, tabs, title, editIcons, tabContents, }: import("./ProfileInformation").ProfileInformationProps<TabKeys>) => JSX.Element;
|
7
|
+
};
|
8
|
+
export default _default;
|
9
|
+
export declare const ProfileInformation: ComponentStory<typeof ProfileInformationComponent>;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { ComponentStory } from '@storybook/react';
|
3
|
+
import { SetPasswordForm as SetPasswordFormComponent } from './SetPasswordForm';
|
4
|
+
declare const _default: {
|
5
|
+
title: string;
|
6
|
+
component: ({ logoUrl, fields, validations, onBack, onSubmit, isLoading, }: import("./SetPasswordForm").SetPasswordFormProps) => JSX.Element;
|
7
|
+
};
|
8
|
+
export default _default;
|
9
|
+
export declare const SetPasswordForm: ComponentStory<typeof SetPasswordFormComponent>;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { ComponentStory } from '@storybook/react';
|
3
|
+
import { TwoFactorAuth as TwoFactorAuthComponent } from './TwoFactorAuth';
|
4
|
+
declare const _default: {
|
5
|
+
title: string;
|
6
|
+
component: ({ logoUrl, onSubmit, onBack, onNext }: import("./TwoFactorAuth").TwoFactorAuthProps) => JSX.Element;
|
7
|
+
};
|
8
|
+
export default _default;
|
9
|
+
export declare const TwoFactorAuth: ComponentStory<typeof TwoFactorAuthComponent>;
|
@@ -3,4 +3,5 @@ export * from './AcquisitionForm/AcquisitionForm';
|
|
3
3
|
export * from './LoginForm/LoginForm';
|
4
4
|
export * from './TwoFactorAuth/TwoFactorAuth';
|
5
5
|
export * from './Header/Header';
|
6
|
+
export * from './ProfileInformation/ProfileInformation';
|
6
7
|
export * from './ForgotPasswordForm/ForgotPasswordForm';
|
@@ -1,9 +1,7 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { BannerProps } from '../../molecules';
|
3
|
-
import { HeaderProps } from '../../organisms';
|
4
2
|
export declare type DefaultTemplateProps = {
|
5
|
-
header:
|
6
|
-
banner?:
|
7
|
-
|
3
|
+
header: React.ReactNode;
|
4
|
+
banner?: React.ReactNode;
|
5
|
+
content?: React.ReactNode;
|
8
6
|
};
|
9
|
-
export declare const DefaultTemplate: ({
|
7
|
+
export declare const DefaultTemplate: ({ header, banner, content }: DefaultTemplateProps) => JSX.Element;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { ComponentStory } from '@storybook/react';
|
3
|
+
import { DefaultTemplate as DefaultTemplateComponent } from './DefaultTemplate';
|
4
|
+
declare const _default: {
|
5
|
+
title: string;
|
6
|
+
component: ({ header, banner, content }: import("./DefaultTemplate").DefaultTemplateProps) => JSX.Element;
|
7
|
+
};
|
8
|
+
export default _default;
|
9
|
+
export declare const DefaultTemplate: ComponentStory<typeof DefaultTemplateComponent>;
|
@@ -1,2 +1,5 @@
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
2
|
-
|
2
|
+
import { DefaultTheme } from 'styled-components';
|
3
|
+
export declare const ZealThemeProvider: (props: PropsWithChildren<{
|
4
|
+
theme?: DefaultTheme;
|
5
|
+
}>) => JSX.Element;
|