@zealicsolutions/web-ui 0.2.66 → 0.2.68
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 +25 -25
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/atoms/Buttons/Button.d.ts +15 -3
- package/dist/cjs/src/atoms/Buttons/Button.stories.d.ts +1 -1
- package/dist/cjs/src/atoms/Buttons/TextButton.d.ts +5 -3
- package/dist/cjs/src/atoms/RegularImage/RegularImage.d.ts +12 -0
- package/dist/cjs/src/atoms/RegularImage/RegularImage.stories.d.ts +8 -0
- package/dist/cjs/src/atoms/RichTextViewer/RichTextViewer.d.ts +5 -3
- package/dist/{esm/src/molecules → cjs/src/atoms}/Tab/Tab.d.ts +2 -2
- package/dist/cjs/src/atoms/Tab/Tab.stories.d.ts +12 -0
- package/dist/{esm/src/molecules → cjs/src/atoms}/Tab/styles.d.ts +3 -2
- package/dist/cjs/src/{molecules → atoms}/Tab/utils.d.ts +1 -1
- package/dist/cjs/src/atoms/TextWrapper/TextWrapper.d.ts +6 -4
- package/dist/cjs/src/atoms/TextWrapper/TextWrapper.stories.d.ts +4 -4
- package/dist/cjs/src/atoms/index.d.ts +2 -1
- package/dist/cjs/src/helpers/constants.d.ts +1 -0
- package/dist/cjs/src/helpers/utils.d.ts +1 -0
- package/dist/cjs/src/helpers/validations.d.ts +1 -0
- package/dist/cjs/src/molecules/AvatarDropdown/AvatarDropdown.d.ts +1 -1
- package/dist/cjs/src/molecules/CheckboxField/CheckboxField.d.ts +1 -1
- package/dist/cjs/src/molecules/Columns/Column.d.ts +1 -1
- package/dist/cjs/src/molecules/Columns/styles.d.ts +5 -3
- package/dist/cjs/src/molecules/HeroImage/HeroImage.d.ts +2 -2
- package/dist/cjs/src/molecules/Image/Image.d.ts +14 -0
- package/dist/cjs/src/molecules/Image/Image.stories.d.ts +9 -0
- package/dist/cjs/src/molecules/SelectableInfoCard/BaseSelectable.d.ts +1 -1
- package/dist/cjs/src/molecules/SelectableInfoCard/styles.d.ts +4 -3
- package/dist/cjs/src/molecules/TabGroup/TabGroup.d.ts +2 -2
- package/dist/cjs/src/molecules/TabGroup/TabGroup.stories.d.ts +4 -4
- package/dist/cjs/src/molecules/TabGroup/styles.d.ts +1 -1
- package/dist/cjs/src/molecules/TextMolecule/TextMolecule.d.ts +16 -0
- package/dist/cjs/src/molecules/TextMolecule/TextMolecule.stories.d.ts +9 -0
- package/dist/cjs/src/molecules/index.d.ts +0 -1
- package/dist/cjs/src/organisms/AccountInformation/AccountInformation.d.ts +2 -2
- package/dist/cjs/src/organisms/Footer/styles.d.ts +1 -1
- package/dist/cjs/src/organisms/Header/styles.d.ts +3 -2
- package/dist/cjs/src/organisms/ProcessTracker/mocks.d.ts +1 -1
- package/dist/cjs/src/organisms/SetPasswordForm/utils.d.ts +2 -2
- package/dist/cjs/src/organisms/TwoFactorAuth/constants.d.ts +1 -1
- package/dist/esm/index.js +26 -26
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/atoms/Buttons/Button.d.ts +15 -3
- package/dist/esm/src/atoms/Buttons/Button.stories.d.ts +1 -1
- package/dist/esm/src/atoms/Buttons/TextButton.d.ts +5 -3
- package/dist/esm/src/atoms/RegularImage/RegularImage.d.ts +12 -0
- package/dist/esm/src/atoms/RegularImage/RegularImage.stories.d.ts +8 -0
- package/dist/esm/src/atoms/RichTextViewer/RichTextViewer.d.ts +5 -3
- package/dist/{cjs/src/molecules → esm/src/atoms}/Tab/Tab.d.ts +2 -2
- package/dist/esm/src/atoms/Tab/Tab.stories.d.ts +12 -0
- package/dist/{cjs/src/molecules → esm/src/atoms}/Tab/styles.d.ts +3 -2
- package/dist/esm/src/{molecules → atoms}/Tab/utils.d.ts +1 -1
- package/dist/esm/src/atoms/TextWrapper/TextWrapper.d.ts +6 -4
- package/dist/esm/src/atoms/TextWrapper/TextWrapper.stories.d.ts +4 -4
- package/dist/esm/src/atoms/index.d.ts +2 -1
- package/dist/esm/src/helpers/constants.d.ts +1 -0
- package/dist/esm/src/helpers/utils.d.ts +1 -0
- package/dist/esm/src/helpers/validations.d.ts +1 -0
- package/dist/esm/src/molecules/AvatarDropdown/AvatarDropdown.d.ts +1 -1
- package/dist/esm/src/molecules/CheckboxField/CheckboxField.d.ts +1 -1
- package/dist/esm/src/molecules/Columns/Column.d.ts +1 -1
- package/dist/esm/src/molecules/Columns/styles.d.ts +5 -3
- package/dist/esm/src/molecules/HeroImage/HeroImage.d.ts +2 -2
- package/dist/esm/src/molecules/Image/Image.d.ts +14 -0
- package/dist/esm/src/molecules/Image/Image.stories.d.ts +9 -0
- package/dist/esm/src/molecules/SelectableInfoCard/BaseSelectable.d.ts +1 -1
- package/dist/esm/src/molecules/SelectableInfoCard/styles.d.ts +4 -3
- package/dist/esm/src/molecules/TabGroup/TabGroup.d.ts +2 -2
- package/dist/esm/src/molecules/TabGroup/TabGroup.stories.d.ts +4 -4
- package/dist/esm/src/molecules/TabGroup/styles.d.ts +1 -1
- package/dist/esm/src/molecules/TextMolecule/TextMolecule.d.ts +16 -0
- package/dist/esm/src/molecules/TextMolecule/TextMolecule.stories.d.ts +9 -0
- package/dist/esm/src/molecules/index.d.ts +0 -1
- package/dist/esm/src/organisms/AccountInformation/AccountInformation.d.ts +2 -2
- package/dist/esm/src/organisms/Footer/styles.d.ts +1 -1
- package/dist/esm/src/organisms/Header/styles.d.ts +3 -2
- package/dist/esm/src/organisms/ProcessTracker/mocks.d.ts +1 -1
- package/dist/esm/src/organisms/SetPasswordForm/utils.d.ts +2 -2
- package/dist/esm/src/organisms/TwoFactorAuth/constants.d.ts +1 -1
- package/dist/index.d.ts +104 -87
- package/package.json +3 -2
- 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/esm/src/atoms/Image/Image.d.ts +0 -8
- package/dist/esm/src/atoms/Image/Image.stories.d.ts +0 -8
@@ -1,6 +1,8 @@
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
2
2
|
import { CSSProperties } from 'styled-components';
|
3
|
+
import { FontSizesTypes, SizesTypes, ThemeColors } from 'theme';
|
3
4
|
import type { Callback } from 'typescript';
|
5
|
+
import { StylesType } from 'typescript';
|
4
6
|
export declare type ButtonVariant = 'primary' | 'secondary' | 'text';
|
5
7
|
export declare type BaseButtonProps = PropsWithChildren<{
|
6
8
|
onClick?: Callback;
|
@@ -8,8 +10,18 @@ export declare type BaseButtonProps = PropsWithChildren<{
|
|
8
10
|
disabled?: boolean;
|
9
11
|
fullWidth?: boolean;
|
10
12
|
size?: 'medium' | 'small';
|
11
|
-
|
12
|
-
|
13
|
+
buttonFont?: FontSizesTypes;
|
14
|
+
textColor?: ThemeColors | string;
|
15
|
+
textSize?: number;
|
16
|
+
buttonPadding?: SizesTypes;
|
17
|
+
buttonColor?: ThemeColors | string;
|
18
|
+
buttonStroke?: ThemeColors | string;
|
19
|
+
cornerRadius?: SizesTypes | number;
|
20
|
+
hoverButtonColor?: ThemeColors | string;
|
21
|
+
hoverStrokeColor?: ThemeColors | string;
|
22
|
+
inactiveButtonColor?: ThemeColors | string;
|
23
|
+
inactiveStrokeColor?: ThemeColors | string;
|
24
|
+
styles?: StylesType;
|
13
25
|
}>;
|
14
26
|
export declare type ButtonProps = BaseButtonProps & {
|
15
27
|
fullWidth?: boolean;
|
@@ -21,4 +33,4 @@ export declare type ButtonProps = BaseButtonProps & {
|
|
21
33
|
containerStyle?: CSSProperties;
|
22
34
|
buttonStyle?: CSSProperties;
|
23
35
|
};
|
24
|
-
export declare const Button: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children,
|
36
|
+
export declare const Button: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children, buttonStyle, size, ...props }: ButtonProps) => JSX.Element | null;
|
@@ -6,7 +6,7 @@ import { IconButton as IconButtonComponent } from './IconButton';
|
|
6
6
|
import { TouchableOpacityProps } from './TouchableOpacity';
|
7
7
|
declare const _default: {
|
8
8
|
title: string;
|
9
|
-
component: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children,
|
9
|
+
component: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children, buttonStyle, size, ...props }: import("./Button").ButtonProps) => JSX.Element | null;
|
10
10
|
};
|
11
11
|
export default _default;
|
12
12
|
export declare const Button: ComponentStory<typeof ButtonComponent>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { BaseButtonProps } from './Button';
|
3
|
-
export declare type TextButtonProps = Pick<BaseButtonProps, 'disabled' | '
|
3
|
+
export declare type TextButtonProps = Pick<BaseButtonProps, 'disabled' | 'onClick' | 'children' | 'styles' | 'buttonPadding' | 'textColor' | 'textSize' | 'buttonFont'> & {
|
4
4
|
buttonLink?: string;
|
5
5
|
elementId?: string;
|
6
6
|
};
|
@@ -10,7 +10,9 @@ export declare const TextButton: import("styled-components").StyledComponent<"di
|
|
10
10
|
disabled?: boolean | undefined;
|
11
11
|
} & {
|
12
12
|
children?: import("react").ReactNode;
|
13
|
-
} &
|
13
|
+
} & {
|
14
|
+
withoutOpacityEffect: boolean;
|
15
|
+
} & Pick<BaseButtonProps, "children" | "onClick" | "disabled" | "styles" | "buttonPadding" | "textColor" | "textSize" | "buttonFont"> & {
|
14
16
|
buttonLink?: string | undefined;
|
15
17
|
elementId?: string | undefined;
|
16
|
-
},
|
18
|
+
}, "withoutOpacityEffect">;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { Callback, StylesType } from 'typescript';
|
2
|
+
export declare type RegularImageProps = {
|
3
|
+
src: string;
|
4
|
+
alt?: string;
|
5
|
+
width?: number | string;
|
6
|
+
height?: number | string;
|
7
|
+
styles?: StylesType;
|
8
|
+
onClick?: Callback;
|
9
|
+
cornerRadius?: number;
|
10
|
+
};
|
11
|
+
export declare const RegularImage: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, RegularImageProps, never>;
|
12
|
+
export declare const BackgroundImage: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, RegularImageProps, never>;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import type { ComponentStory } from '@storybook/react';
|
2
|
+
import { RegularImage as RegularImageComponent } from './RegularImage';
|
3
|
+
declare const _default: {
|
4
|
+
title: string;
|
5
|
+
component: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, import("./RegularImage").RegularImageProps, never>;
|
6
|
+
};
|
7
|
+
export default _default;
|
8
|
+
export declare const RegularImage: ComponentStory<typeof RegularImageComponent>;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import {
|
2
|
+
import { TextProps } from 'atoms';
|
3
3
|
import { FontSizesTypes, ThemeColors } from 'theme';
|
4
|
+
import { StylesType } from 'typescript';
|
4
5
|
export declare const MATRIX_MESSAGE_ELEMENT_ID = "matrix-message";
|
5
6
|
export declare const COMMUNICATION_LINK_ELEMENT_ID = "communication-link";
|
6
7
|
export declare const MATRIX_MESSAGE_DATA_ID = "matrix-message-id";
|
@@ -10,7 +11,8 @@ export declare type RichTextEditorProps = Partial<{
|
|
10
11
|
value: string;
|
11
12
|
font: FontSizesTypes;
|
12
13
|
color: ThemeColors;
|
13
|
-
textStyles:
|
14
|
+
textStyles: StylesType;
|
14
15
|
numberOfLines?: number;
|
16
|
+
extraTextProps?: TextProps;
|
15
17
|
}>;
|
16
|
-
export declare const RichTextViewer: ({ value, color, textStyles, font, numberOfLines, }: RichTextEditorProps) => JSX.Element | null;
|
18
|
+
export declare const RichTextViewer: ({ value, color, textStyles, font, numberOfLines, extraTextProps, }: RichTextEditorProps) => JSX.Element | null;
|
@@ -1,7 +1,7 @@
|
|
1
|
+
import { MenuItem } from 'molecules';
|
1
2
|
import React from 'react';
|
2
3
|
import { FontSizesTypes, SizesTypes, ThemeColors } from 'theme';
|
3
4
|
import { StylesType } from 'typescript';
|
4
|
-
import { MenuItem } from '..';
|
5
5
|
export declare type TabOption<T = string> = {
|
6
6
|
menuText: string;
|
7
7
|
menuKey: T;
|
@@ -22,7 +22,7 @@ export declare type TabProps<T = string, K = string> = {
|
|
22
22
|
tabTheme?: TabTheme;
|
23
23
|
divider?: boolean;
|
24
24
|
tabFont?: FontSizesTypes;
|
25
|
-
textSize?:
|
25
|
+
textSize?: number;
|
26
26
|
tabPadding?: SizesTypes | number;
|
27
27
|
textColor?: ThemeColors | string;
|
28
28
|
selectedTabTextColor?: ThemeColors | string;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
2
|
+
import React from 'react';
|
3
|
+
import { Tab as TabComponent } from './Tab';
|
4
|
+
declare const _default: {
|
5
|
+
title: string;
|
6
|
+
component: <T, K>(props: import("atoms").TabProps<T, K> & {
|
7
|
+
ref?: React.ForwardedRef<HTMLDivElement | null> | undefined;
|
8
|
+
}) => JSX.Element;
|
9
|
+
};
|
10
|
+
export default _default;
|
11
|
+
declare type Story = StoryObj<typeof TabComponent>;
|
12
|
+
export declare const Tab: Story;
|
@@ -1,7 +1,8 @@
|
|
1
|
-
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { TabProps } from 'atoms/Tab/Tab';
|
2
3
|
declare type TabContainerProps = Pick<TabProps, 'isActive' | 'disabled' | 'tabTheme' | 'selectedTabTextColor' | 'styles' | 'textColor'>;
|
3
4
|
declare type TabTextProps = Pick<TabProps, 'tabTheme' | 'textSize' | 'textColor' | 'tabPadding'>;
|
4
|
-
export declare const TabText: import("styled-components").StyledComponent<import("
|
5
|
+
export declare const TabText: import("styled-components").StyledComponent<({ children, seoTag, ...textProps }: import("atoms").TextWrapperProps) => JSX.Element, import("styled-components").DefaultTheme, TabTextProps, never>;
|
5
6
|
export declare const TabContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, TabContainerProps, never>;
|
6
7
|
export declare const CaretIconWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, TabContainerProps, never>;
|
7
8
|
export {};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { TabTheme } from '
|
1
|
+
import { TabTheme } from 'atoms/Tab/Tab';
|
2
2
|
import { ThemeColors } from 'theme';
|
3
3
|
export declare const getColorForCaretDownIcon: (color?: ThemeColors | string, tabTheme?: TabTheme, disabled?: boolean) => string;
|
4
4
|
export declare const getSelectionIndicatorColor: (selectedTabIndicatorColor?: ThemeColors | string, isActiveTab?: boolean, tabTheme?: TabTheme) => string;
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import {
|
1
|
+
import { PropsWithChildren } from 'react';
|
2
2
|
import { FontSizesTypes, ThemeColors } from 'theme/types';
|
3
3
|
import { StylesType } from 'typescript';
|
4
4
|
export declare type TextTypes = 'primary' | 'secondary' | 'error' | 'success';
|
5
5
|
export declare type TextAlign = 'center' | 'right' | 'left';
|
6
|
-
export declare type
|
7
|
-
|
6
|
+
export declare type SeoTags = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';
|
7
|
+
export declare type TextProps = {
|
8
8
|
variant: FontSizesTypes;
|
9
9
|
layout?: 'div' | 'span';
|
10
10
|
type?: TextTypes;
|
@@ -13,5 +13,7 @@ export declare type TextWrapperProps = {
|
|
13
13
|
numberOfLines?: number;
|
14
14
|
textAlign?: TextAlign;
|
15
15
|
behaveAs?: 'text' | 'button';
|
16
|
+
seoTag?: SeoTags;
|
16
17
|
};
|
17
|
-
export declare
|
18
|
+
export declare type TextWrapperProps = PropsWithChildren<TextProps>;
|
19
|
+
export declare const TextWrapper: ({ children, seoTag, ...textProps }: TextWrapperProps) => JSX.Element;
|
@@ -1,9 +1,9 @@
|
|
1
|
-
|
2
|
-
import {
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { StoryFn } from '@storybook/react';
|
3
3
|
import { TextWrapperProps } from './TextWrapper';
|
4
4
|
declare const _default: {
|
5
5
|
title: string;
|
6
|
-
component:
|
6
|
+
component: ({ children, seoTag, ...textProps }: TextWrapperProps) => JSX.Element;
|
7
7
|
};
|
8
8
|
export default _default;
|
9
|
-
export declare const Text:
|
9
|
+
export declare const Text: StoryFn<TextWrapperProps>;
|
@@ -7,7 +7,7 @@ export * from './TextWrapper/TextWrapper';
|
|
7
7
|
export * from './Icon/Icon';
|
8
8
|
export * from './Spacer/Spacer';
|
9
9
|
export * from './Spinner/Spinner';
|
10
|
-
export * from './
|
10
|
+
export * from './RegularImage/RegularImage';
|
11
11
|
export * from './Buttons/TextButton';
|
12
12
|
export * from './ValidationTag/ValidationTag';
|
13
13
|
export * from './Video/Video';
|
@@ -23,3 +23,4 @@ export * from './RadioButtons/RadioButtons';
|
|
23
23
|
export * from './Circle/Circle';
|
24
24
|
export * from './CircularIndicator/CircularIndicator';
|
25
25
|
export * from './Buttons/IconButton';
|
26
|
+
export * from './Tab/Tab';
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const validateAndOpenUrl: (url: string) => void;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { InputFieldTypes } from 'fieldsConfiguration';
|
2
2
|
import { ValidationRule } from 'react-hook-form';
|
3
|
+
export declare const urlPattern: RegExp;
|
3
4
|
export declare const phoneNumberValidation: RegExp;
|
4
5
|
export declare const emailValidation: RegExp;
|
5
6
|
export declare const getInputValidation: (type?: InputFieldTypes) => ValidationRule<RegExp> | undefined;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
+
import { AvatarProps } from 'atoms';
|
2
3
|
import { MenuItemsProps } from '../MenuItems/MenuItems';
|
3
|
-
import { AvatarProps } from '../../atoms';
|
4
4
|
import 'rc-dropdown/assets/index.css';
|
5
5
|
export declare type AvatarDropdownProps<T> = {
|
6
6
|
avatarProps: AvatarProps;
|
@@ -2,4 +2,4 @@
|
|
2
2
|
import { BaseColumnProps } from './types';
|
3
3
|
export declare const Column: ({ item }: BaseColumnProps) => JSX.Element;
|
4
4
|
export declare const ImageContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
5
|
-
export declare const ColumnImage: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, import("atoms").
|
5
|
+
export declare const ColumnImage: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, import("atoms").RegularImageProps, never>;
|
@@ -9,15 +9,17 @@ export declare const Link: import("styled-components").StyledComponent<"div", im
|
|
9
9
|
disabled?: boolean | undefined;
|
10
10
|
} & {
|
11
11
|
children?: import("react").ReactNode;
|
12
|
-
} &
|
12
|
+
} & {
|
13
|
+
withoutOpacityEffect: boolean;
|
14
|
+
} & Pick<import("atoms").BaseButtonProps, "children" | "onClick" | "disabled" | "styles" | "buttonPadding" | "textColor" | "textSize" | "buttonFont"> & {
|
13
15
|
buttonLink?: string | undefined;
|
14
16
|
elementId?: string | undefined;
|
15
|
-
},
|
17
|
+
}, "withoutOpacityEffect">;
|
16
18
|
export declare const ColumnCardWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
17
19
|
isMobile: boolean;
|
18
20
|
}, never>;
|
19
21
|
export declare const ColumnImageWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
20
22
|
isMobile: boolean;
|
21
23
|
}, never>;
|
22
|
-
export declare const ColumnBackgroundImage: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, import("atoms").
|
24
|
+
export declare const ColumnBackgroundImage: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, import("atoms").RegularImageProps, never>;
|
23
25
|
export declare const ColumnBackgroundImageOverlay: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
@@ -1,10 +1,10 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { ButtonProps,
|
2
|
+
import { ButtonProps, RegularImageProps } from 'atoms';
|
3
3
|
export declare type HeroImageAlignment = 'left_aligned' | 'center_aligned';
|
4
4
|
export declare type HeroImageTemplate = 'card' | 'full_width';
|
5
5
|
export declare type HeroImageProps = {
|
6
6
|
type: 'hero_image';
|
7
|
-
backgroundImage:
|
7
|
+
backgroundImage: RegularImageProps;
|
8
8
|
mainHeading: string;
|
9
9
|
subHeading?: string;
|
10
10
|
button?: ButtonProps;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { StylesType } from '../../typescript';
|
3
|
+
export declare type ImageProps = {
|
4
|
+
src: string;
|
5
|
+
} & Partial<{
|
6
|
+
altText: string;
|
7
|
+
link: string;
|
8
|
+
width: number;
|
9
|
+
height: number;
|
10
|
+
cornerRadius: number;
|
11
|
+
behaveAs: 'background' | 'regular';
|
12
|
+
styles: StylesType;
|
13
|
+
}>;
|
14
|
+
export declare const Image: ({ src, link, altText, styles, width, height, behaveAs, cornerRadius, }: ImageProps) => JSX.Element;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { StoryFn } from '@storybook/react';
|
3
|
+
import { Image as ImageComponent } from './Image';
|
4
|
+
declare const _default: {
|
5
|
+
title: string;
|
6
|
+
component: ({ src, link, altText, styles, width, height, behaveAs, cornerRadius, }: import("./Image").ImageProps) => JSX.Element;
|
7
|
+
};
|
8
|
+
export default _default;
|
9
|
+
export declare const Image: StoryFn<typeof ImageComponent>;
|
@@ -1,6 +1,7 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { SizesTypes } from 'theme';
|
3
|
+
export declare const InfoText: import("styled-components").StyledComponent<({ children, seoTag, ...textProps }: import("atoms").TextWrapperProps) => JSX.Element, import("styled-components").DefaultTheme, {
|
4
|
+
variant: "M";
|
4
5
|
}, "variant">;
|
5
6
|
export declare const SelectableInfoCardStyled: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
6
7
|
isActive?: boolean | undefined;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
+
import { TabProps, TabTheme } from 'atoms';
|
2
3
|
import { CSSProperties } from 'styled-components';
|
3
4
|
import { FontSizesTypes, SizesTypes, ThemeColors } from 'theme/types';
|
4
5
|
import { StylesType } from 'typescript';
|
5
|
-
import { TabProps, TabTheme } from '../Tab/Tab';
|
6
6
|
export declare type TabGroupProps<T = string, K = string> = {
|
7
7
|
tabs: Pick<TabProps<T, K>, 'text' | 'tabKey' | 'disabled' | 'options' | 'divider'>[];
|
8
8
|
activeTabKey: T;
|
@@ -12,7 +12,7 @@ export declare type TabGroupProps<T = string, K = string> = {
|
|
12
12
|
vertical?: boolean;
|
13
13
|
tabTheme?: TabTheme;
|
14
14
|
tabFont?: FontSizesTypes;
|
15
|
-
textSize?:
|
15
|
+
textSize?: number;
|
16
16
|
tabPadding?: SizesTypes | number;
|
17
17
|
tabSpacing?: SizesTypes;
|
18
18
|
textColor?: ThemeColors | string;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import type {
|
3
|
-
import {
|
2
|
+
import type { StoryFn } from '@storybook/react';
|
3
|
+
import { TabGroupProps } from './TabGroup';
|
4
4
|
declare const _default: {
|
5
5
|
title: string;
|
6
|
-
component: <T extends string, K extends string>({ tabs, vertical, activeTabKey, onTabChange, tabTheme, containerStyle, containerProps, tabSpacing, ...props }:
|
6
|
+
component: <T extends string, K extends string>({ tabs, vertical, activeTabKey, onTabChange, tabTheme, containerStyle, containerProps, tabSpacing, ...props }: TabGroupProps<T, K>) => JSX.Element;
|
7
7
|
};
|
8
8
|
export default _default;
|
9
|
-
export declare const TabGroup:
|
9
|
+
export declare const TabGroup: StoryFn<TabGroupProps>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { TabTheme } from '
|
2
|
+
import { TabTheme } from 'atoms/Tab/Tab';
|
3
3
|
import { SizesTypes, ThemeColors } from 'theme/types';
|
4
4
|
export declare const TabsWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
5
5
|
spacing: SizesTypes;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { TextProps } from 'atoms';
|
3
|
+
import { FontSizesTypes, ThemeColors } from 'theme';
|
4
|
+
import { StylesType } from 'typescript';
|
5
|
+
export declare type TextMoleculeProps = Partial<{
|
6
|
+
text: string;
|
7
|
+
fontVariant: FontSizesTypes;
|
8
|
+
textSize: number;
|
9
|
+
textColor: ThemeColors | string;
|
10
|
+
letterSpacing: number;
|
11
|
+
lineHeight: number;
|
12
|
+
isRichText: boolean;
|
13
|
+
styles: StylesType;
|
14
|
+
textAlign: 'center' | 'right' | 'left';
|
15
|
+
}> & Pick<TextProps, 'seoTag'>;
|
16
|
+
export declare const TextMolecule: ({ isRichText, text, seoTag, fontVariant, textColor, letterSpacing, lineHeight, textSize, styles, }: TextMoleculeProps) => JSX.Element;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { StoryFn } from '@storybook/react';
|
3
|
+
import { TextMoleculeProps } from './TextMolecule';
|
4
|
+
declare const _default: {
|
5
|
+
title: string;
|
6
|
+
component: ({ isRichText, text, seoTag, fontVariant, textColor, letterSpacing, lineHeight, textSize, styles, }: TextMoleculeProps) => JSX.Element;
|
7
|
+
};
|
8
|
+
export default _default;
|
9
|
+
export declare const TextMolecule: StoryFn<TextMoleculeProps>;
|
@@ -10,7 +10,6 @@ export * from './Drawer/Drawer';
|
|
10
10
|
export * from './Columns/Columns';
|
11
11
|
export * from './MenuItems/MenuItems';
|
12
12
|
export * from './AvatarDropdown/AvatarDropdown';
|
13
|
-
export * from './Tab/Tab';
|
14
13
|
export * from './TabGroup/TabGroup';
|
15
14
|
export * from './FieldSection/FieldSection';
|
16
15
|
export * from './MenuNavigation/MenuNavigation';
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { Control } from 'react-hook-form';
|
3
|
-
import { GoogleMapProps } from '
|
4
|
-
import { FieldSectionProps } from '
|
3
|
+
import { GoogleMapProps } from 'atoms';
|
4
|
+
import { FieldSectionProps } from 'molecules';
|
5
5
|
export declare type AccountInformationProps<T extends object> = {
|
6
6
|
fieldSections: Pick<FieldSectionProps<T>, 'fields' | 'label'>[];
|
7
7
|
control: Control<any>;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
export declare const Wrapper: import("styled-components").StyledComponent<"footer", import("styled-components").DefaultTheme, {
|
2
2
|
isMobile?: boolean | undefined;
|
3
3
|
}, never>;
|
4
|
-
export declare const FooterImage: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, import("atoms").
|
4
|
+
export declare const FooterImage: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, import("atoms").RegularImageProps, never>;
|
5
5
|
export declare const ContactInfoWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
6
6
|
export declare const FooterContentWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
7
7
|
isMobile?: boolean | undefined;
|
@@ -1,6 +1,7 @@
|
|
1
|
+
/// <reference types="react" />
|
1
2
|
export declare const HeaderContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
2
|
-
export declare const ImportantLinkText: import("styled-components").StyledComponent<import("
|
3
|
-
variant:
|
3
|
+
export declare const ImportantLinkText: import("styled-components").StyledComponent<({ children, seoTag, ...textProps }: import("atoms").TextWrapperProps) => JSX.Element, import("styled-components").DefaultTheme, {
|
4
|
+
variant: "XS";
|
4
5
|
}, "variant">;
|
5
6
|
export declare const ScrollWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
6
7
|
export declare const ImportantLinksWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { ProcessTrackerProps } from '
|
1
|
+
import { ProcessTrackerProps } from 'organisms';
|
2
2
|
export declare const processTrackerMockProps: ProcessTrackerProps;
|
@@ -1,3 +1,3 @@
|
|
1
|
-
import { CustomValidationRule } from '
|
2
|
-
import { SetPasswordRuleValidation } from '
|
1
|
+
import { CustomValidationRule } from 'molecules';
|
2
|
+
import { SetPasswordRuleValidation } from 'organisms';
|
3
3
|
export declare const passwordValidationMapper: (validation: SetPasswordRuleValidation) => CustomValidationRule;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { UIField } from 'fieldsConfiguration';
|
2
2
|
import { BaseSelectableProps } from 'molecules/SelectableInfoCard/BaseSelectable';
|
3
|
-
import { AuthMethod } from '
|
3
|
+
import { AuthMethod } from 'organisms';
|
4
4
|
export declare const cards: BaseSelectableProps<AuthMethod>[];
|
5
5
|
export declare const steps: {
|
6
6
|
title: string;
|