@zealicsolutions/web-ui 0.2.85 → 0.2.87
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 +32 -33
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/atoms/Buttons/{Button.stories.d.ts → Buttons.stories.d.ts} +4 -3
- package/dist/cjs/src/atoms/Buttons/TextButton.d.ts +1 -1
- package/dist/cjs/src/atoms/Input/Input.d.ts +14 -2
- package/dist/cjs/src/atoms/Input/Input.stories.d.ts +4 -4
- package/dist/cjs/src/atoms/RegularImage/RegularImage.d.ts +4 -7
- package/dist/cjs/src/atoms/RegularImage/RegularImage.stories.d.ts +1 -2
- package/dist/cjs/src/atoms/RichTextViewer/RichTextViewer.d.ts +1 -1
- package/dist/cjs/src/atoms/Tooltip/Tooltip.d.ts +6 -3
- package/dist/cjs/src/atoms/Tooltip/Tooltip.stories.d.ts +1 -1
- package/dist/cjs/src/atoms/index.d.ts +0 -1
- package/dist/cjs/src/containers/MoleculeItem.d.ts +1 -1
- package/dist/cjs/src/containers/types/moleculeTypes.d.ts +4 -5
- package/dist/cjs/src/fieldsConfiguration/types.d.ts +5 -2
- package/dist/cjs/src/helpers/validations.d.ts +2 -0
- package/dist/cjs/src/index.d.ts +2 -2
- package/dist/cjs/src/{atoms/Buttons → molecules/Button}/Button.d.ts +2 -1
- package/dist/cjs/src/molecules/Button/Button.stories.d.ts +9 -0
- package/dist/cjs/src/molecules/Columns/Column.d.ts +1 -2
- package/dist/cjs/src/molecules/Columns/styles.d.ts +2 -3
- package/dist/cjs/src/molecules/FieldLabels/FieldLabels.d.ts +33 -1
- package/dist/cjs/src/molecules/FieldLabels/FieldLabels.stories.d.ts +4 -4
- package/dist/cjs/src/molecules/FieldMapper/FieldMapper.d.ts +3 -2
- package/dist/cjs/src/molecules/HeroImage/HeroImage.d.ts +2 -1
- package/dist/cjs/src/molecules/Image/Image.d.ts +3 -2
- package/dist/cjs/src/molecules/InputField/InputField.d.ts +2 -2
- package/dist/cjs/src/molecules/InputField/InputField.stories.d.ts +4 -5
- package/dist/cjs/src/molecules/SelectField/SelectField.d.ts +2 -2
- package/dist/cjs/src/molecules/TextMolecule/TextMolecule.d.ts +1 -1
- package/dist/cjs/src/molecules/index.d.ts +1 -0
- package/dist/cjs/src/organisms/Consent/ConsentCapture.d.ts +2 -1
- package/dist/cjs/src/organisms/FeedContent/types.d.ts +2 -2
- package/dist/cjs/src/organisms/Footer/Footer.stories.d.ts +2 -2
- package/dist/cjs/src/organisms/Footer/styles.d.ts +1 -2
- package/dist/cjs/src/organisms/Header/Header.stories.d.ts +2 -2
- package/dist/cjs/src/organisms/LoginForm/LoginForm.d.ts +1 -1
- package/dist/cjs/src/organisms/ProfileInformation/ProfileInformation.d.ts +1 -2
- package/dist/cjs/src/organisms/SetPasswordForm/SetPasswordForm.d.ts +1 -1
- package/dist/cjs/src/typescript.d.ts +3 -0
- package/dist/esm/index.js +32 -33
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/atoms/Buttons/{Button.stories.d.ts → Buttons.stories.d.ts} +4 -3
- package/dist/esm/src/atoms/Buttons/TextButton.d.ts +1 -1
- package/dist/esm/src/atoms/Input/Input.d.ts +14 -2
- package/dist/esm/src/atoms/Input/Input.stories.d.ts +4 -4
- package/dist/esm/src/atoms/RegularImage/RegularImage.d.ts +4 -7
- package/dist/esm/src/atoms/RegularImage/RegularImage.stories.d.ts +1 -2
- package/dist/esm/src/atoms/RichTextViewer/RichTextViewer.d.ts +1 -1
- package/dist/esm/src/atoms/Tooltip/Tooltip.d.ts +6 -3
- package/dist/esm/src/atoms/Tooltip/Tooltip.stories.d.ts +1 -1
- package/dist/esm/src/atoms/index.d.ts +0 -1
- package/dist/esm/src/containers/MoleculeItem.d.ts +1 -1
- package/dist/esm/src/containers/types/moleculeTypes.d.ts +4 -5
- package/dist/esm/src/fieldsConfiguration/types.d.ts +5 -2
- package/dist/esm/src/helpers/validations.d.ts +2 -0
- package/dist/esm/src/index.d.ts +2 -2
- package/dist/esm/src/{atoms/Buttons → molecules/Button}/Button.d.ts +2 -1
- package/dist/esm/src/molecules/Button/Button.stories.d.ts +9 -0
- package/dist/esm/src/molecules/Columns/Column.d.ts +1 -2
- package/dist/esm/src/molecules/Columns/styles.d.ts +2 -3
- package/dist/esm/src/molecules/FieldLabels/FieldLabels.d.ts +33 -1
- package/dist/esm/src/molecules/FieldLabels/FieldLabels.stories.d.ts +4 -4
- package/dist/esm/src/molecules/FieldMapper/FieldMapper.d.ts +3 -2
- package/dist/esm/src/molecules/HeroImage/HeroImage.d.ts +2 -1
- package/dist/esm/src/molecules/Image/Image.d.ts +3 -2
- package/dist/esm/src/molecules/InputField/InputField.d.ts +2 -2
- package/dist/esm/src/molecules/InputField/InputField.stories.d.ts +4 -5
- package/dist/esm/src/molecules/SelectField/SelectField.d.ts +2 -2
- package/dist/esm/src/molecules/TextMolecule/TextMolecule.d.ts +1 -1
- package/dist/esm/src/molecules/index.d.ts +1 -0
- package/dist/esm/src/organisms/Consent/ConsentCapture.d.ts +2 -1
- package/dist/esm/src/organisms/FeedContent/types.d.ts +2 -2
- package/dist/esm/src/organisms/Footer/Footer.stories.d.ts +2 -2
- package/dist/esm/src/organisms/Footer/styles.d.ts +1 -2
- package/dist/esm/src/organisms/Header/Header.stories.d.ts +2 -2
- package/dist/esm/src/organisms/LoginForm/LoginForm.d.ts +1 -1
- package/dist/esm/src/organisms/ProfileInformation/ProfileInformation.d.ts +1 -2
- package/dist/esm/src/organisms/SetPasswordForm/SetPasswordForm.d.ts +1 -1
- package/dist/esm/src/typescript.d.ts +3 -0
- package/dist/index.d.ts +761 -718
- package/package.json +1 -1
@@ -1,15 +1,16 @@
|
|
1
1
|
import type { ComponentStory } from '@storybook/react';
|
2
2
|
import { TextButtonProps } from 'atoms/Buttons/TextButton';
|
3
3
|
import { FC } from 'react';
|
4
|
-
import { Button as ButtonComponent } from './Button';
|
5
4
|
import { IconButton as IconButtonComponent } from './IconButton';
|
6
5
|
import { TouchableOpacityProps } from './TouchableOpacity';
|
7
6
|
declare const _default: {
|
8
7
|
title: string;
|
9
|
-
component: (
|
8
|
+
component: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, Pick<import("../..").BaseButtonProps, "children" | "onClick" | "disabled" | "size" | "colorTheme"> & {
|
9
|
+
buttonLink?: string | undefined;
|
10
|
+
elementId?: string | undefined;
|
11
|
+
}, never>;
|
10
12
|
};
|
11
13
|
export default _default;
|
12
|
-
export declare const Button: ComponentStory<typeof ButtonComponent>;
|
13
14
|
export declare const TouchableOpacity: ComponentStory<FC<TouchableOpacityProps>>;
|
14
15
|
export declare const TextButton: ComponentStory<FC<TextButtonProps>>;
|
15
16
|
export declare const IconButton: ComponentStory<typeof IconButtonComponent>;
|
@@ -1,7 +1,18 @@
|
|
1
1
|
import type { IconNames } from 'atoms/Icon/Icon';
|
2
2
|
import { InputFieldTypes } from 'fieldsConfiguration/types';
|
3
3
|
import React from 'react';
|
4
|
-
import
|
4
|
+
import { ThemeColors } from 'theme/types';
|
5
|
+
import type { Callback, StylesType } from 'typescript';
|
6
|
+
export declare type InputFieldInternalConfigProps = {
|
7
|
+
textColor: ThemeColors | string;
|
8
|
+
textFontSize: number;
|
9
|
+
placeholderTextColor: ThemeColors | string;
|
10
|
+
placeholderTextFontSize: number;
|
11
|
+
verticalPadding: number;
|
12
|
+
horizontalPadding: number;
|
13
|
+
styles: StylesType;
|
14
|
+
wrapperStyles: StylesType;
|
15
|
+
};
|
5
16
|
export declare type InputIconProps = {
|
6
17
|
name: IconNames;
|
7
18
|
onClick?: Callback;
|
@@ -19,5 +30,6 @@ export declare type InputProps = {
|
|
19
30
|
maxLength?: number;
|
20
31
|
onChange?: (value: string) => void;
|
21
32
|
onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
33
|
+
internalConfig?: InputFieldInternalConfigProps;
|
22
34
|
};
|
23
|
-
export declare const Input: ({ value, leftIcon, rightIcon, onChange, onBlur, disabled, isError, placeholder, isEditMode, type, ...rest }: InputProps) => JSX.Element;
|
35
|
+
export declare const Input: ({ value, leftIcon, rightIcon, onChange, onBlur, disabled, isError, placeholder, isEditMode, type, internalConfig, ...rest }: InputProps) => JSX.Element;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import type {
|
3
|
-
import {
|
2
|
+
import type { StoryFn } from '@storybook/react';
|
3
|
+
import { InputProps } from './Input';
|
4
4
|
declare const _default: {
|
5
5
|
title: string;
|
6
|
-
component: ({ value, leftIcon, rightIcon, onChange, onBlur, disabled, isError, placeholder, isEditMode, type, ...rest }:
|
6
|
+
component: ({ value, leftIcon, rightIcon, onChange, onBlur, disabled, isError, placeholder, isEditMode, type, internalConfig, ...rest }: InputProps) => JSX.Element;
|
7
7
|
};
|
8
8
|
export default _default;
|
9
|
-
export declare const Input:
|
9
|
+
export declare const Input: StoryFn<InputProps>;
|
@@ -1,32 +1,29 @@
|
|
1
|
-
import { CSSProperties } from 'styled-components';
|
2
1
|
import type { Callback } from 'typescript';
|
2
|
+
import { OverrideStyles } from 'typescript';
|
3
3
|
export declare type RegularImageProps = {
|
4
4
|
src: string;
|
5
5
|
} & Partial<{
|
6
6
|
alt: string;
|
7
|
-
style: CSSProperties;
|
8
7
|
width: number | string;
|
9
8
|
height: number | string;
|
10
9
|
onClick: Callback;
|
11
10
|
cornerRadius: number;
|
12
|
-
}
|
11
|
+
}> & OverrideStyles;
|
13
12
|
export declare const RegularImage: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, {
|
14
13
|
src: string;
|
15
14
|
} & Partial<{
|
16
15
|
alt: string;
|
17
|
-
style: CSSProperties;
|
18
16
|
width: number | string;
|
19
17
|
height: number | string;
|
20
18
|
onClick: Callback;
|
21
19
|
cornerRadius: number;
|
22
|
-
}
|
20
|
+
}> & OverrideStyles, never>;
|
23
21
|
export declare const BackgroundImage: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, {
|
24
22
|
src: string;
|
25
23
|
} & Partial<{
|
26
24
|
alt: string;
|
27
|
-
style: CSSProperties;
|
28
25
|
width: number | string;
|
29
26
|
height: number | string;
|
30
27
|
onClick: Callback;
|
31
28
|
cornerRadius: number;
|
32
|
-
}
|
29
|
+
}> & OverrideStyles, never>;
|
@@ -6,12 +6,11 @@ declare const _default: {
|
|
6
6
|
src: string;
|
7
7
|
} & Partial<{
|
8
8
|
alt: string;
|
9
|
-
style: import("styled-components").CSSProperties;
|
10
9
|
width: string | number;
|
11
10
|
height: string | number;
|
12
11
|
onClick: import("../../typescript").Callback;
|
13
12
|
cornerRadius: number;
|
14
|
-
}
|
13
|
+
}> & import("../../typescript").OverrideStyles, never>;
|
15
14
|
};
|
16
15
|
export default _default;
|
17
16
|
export declare const RegularImage: ComponentStory<typeof RegularImageComponent>;
|
@@ -10,7 +10,7 @@ export declare const COMMUNICATION_LINK_DATA_TEXT = "communication-link-text";
|
|
10
10
|
export declare type RichTextEditorProps = Partial<{
|
11
11
|
value: string;
|
12
12
|
font: FontSizesTypes;
|
13
|
-
color: ThemeColors;
|
13
|
+
color: ThemeColors | string;
|
14
14
|
textStyles: StylesType;
|
15
15
|
numberOfLines?: number;
|
16
16
|
extraTextProps?: TextProps;
|
@@ -1,6 +1,9 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { TooltipProps as TooltipComponentProps } from 'rc-tooltip/lib/Tooltip';
|
3
|
+
import { OverrideStyles, StylesType } from 'typescript';
|
3
4
|
import 'rc-tooltip/assets/bootstrap.css';
|
4
|
-
export declare type TooltipProps = Pick<TooltipComponentProps, 'overlay' | 'placement' | 'trigger' | 'visible' | 'children'
|
5
|
-
|
6
|
-
|
5
|
+
export declare type TooltipProps = Pick<TooltipComponentProps, 'overlay' | 'placement' | 'trigger' | 'visible' | 'children'> & {
|
6
|
+
styles?: StylesType;
|
7
|
+
};
|
8
|
+
export declare const StyleWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, OverrideStyles, never>;
|
9
|
+
export declare const Tooltip: ({ trigger, placement, styles, ...props }: TooltipProps) => JSX.Element;
|
@@ -3,7 +3,7 @@ import { FC } from 'react';
|
|
3
3
|
import { TooltipProps } from './Tooltip';
|
4
4
|
declare const _default: {
|
5
5
|
title: string;
|
6
|
-
component: ({ trigger, placement, ...props }: TooltipProps) => JSX.Element;
|
6
|
+
component: ({ trigger, placement, styles, ...props }: TooltipProps) => JSX.Element;
|
7
7
|
};
|
8
8
|
export default _default;
|
9
9
|
export declare const Tooltip: ComponentStory<FC<TooltipProps>>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { Molecule } from 'containers
|
2
|
+
import { Molecule } from 'containers';
|
3
3
|
import { TabGroupProps } from 'molecules';
|
4
4
|
export declare const getFullLink: (url: string) => string;
|
5
5
|
export declare const navigateToPage: (url: string) => void;
|
@@ -1,9 +1,8 @@
|
|
1
|
-
import type { Nullable, StrictUnion } from 'typescript';
|
2
|
-
import { ButtonProps } from 'atoms';
|
3
1
|
import { SelectOption } from 'atoms/Select/types';
|
4
|
-
import { ImageProps, TabGroupProps } from 'molecules';
|
2
|
+
import { ButtonProps, ImageProps, TabGroupProps } from 'molecules';
|
5
3
|
import { CSSProperties } from 'styled-components';
|
6
4
|
import { FontSizesTypes, ThemeColors } from 'theme';
|
5
|
+
import type { Nullable, StrictUnion } from 'typescript';
|
7
6
|
export declare type ImageAttributes = {
|
8
7
|
attributeType: 'image';
|
9
8
|
imageSource: string;
|
@@ -51,7 +50,7 @@ export interface ImageMolecule extends BaseMolecule {
|
|
51
50
|
props: Omit<ImageProps, 'src' | 'link' | 'altText'>;
|
52
51
|
};
|
53
52
|
}
|
54
|
-
export interface
|
53
|
+
export interface TextMoleculeType extends BaseMolecule {
|
55
54
|
type: 'text';
|
56
55
|
attributes: {
|
57
56
|
text: TextAttributes;
|
@@ -109,4 +108,4 @@ export interface TabGroupMolecule extends BaseMolecule {
|
|
109
108
|
};
|
110
109
|
};
|
111
110
|
}
|
112
|
-
export declare type Molecule = StrictUnion<ImageMolecule |
|
111
|
+
export declare type Molecule = StrictUnion<ImageMolecule | TextMoleculeType | ButtonMolecule | VideoMolecule | TabGroupMolecule>;
|
@@ -1,7 +1,9 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
+
import { InputProps } from 'atoms';
|
2
3
|
import { SelectOption } from 'atoms/Select/types';
|
4
|
+
import { FieldLabelsProps } from 'molecules';
|
3
5
|
import { ControllerProps } from 'react-hook-form';
|
4
|
-
export declare type InputFieldTypes = '
|
6
|
+
export declare type InputFieldTypes = 'phoneNumber' | 'text' | 'email' | 'password' | 'number' | 'any';
|
5
7
|
export declare type FieldTypes = 'input' | 'select' | 'checkbox';
|
6
8
|
export declare type UIField<T = string> = (UIInputField & UISelectField & UICheckboxField) & {
|
7
9
|
name: T;
|
@@ -10,7 +12,6 @@ export declare type UIField<T = string> = (UIInputField & UISelectField & UIChec
|
|
10
12
|
label?: string;
|
11
13
|
placeholder?: string;
|
12
14
|
required?: boolean;
|
13
|
-
optional?: boolean;
|
14
15
|
tooltip?: string;
|
15
16
|
rules?: ControllerProps['rules'];
|
16
17
|
order?: number;
|
@@ -19,6 +20,8 @@ export declare type UIInputField = {
|
|
19
20
|
inputType?: InputFieldTypes;
|
20
21
|
maxLength?: number;
|
21
22
|
onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
23
|
+
inputProps?: InputProps;
|
24
|
+
labelsProps?: FieldLabelsProps;
|
22
25
|
};
|
23
26
|
export declare type UISelectField = {
|
24
27
|
options?: SelectOption[];
|
@@ -2,5 +2,7 @@ import { InputFieldTypes } from 'fieldsConfiguration';
|
|
2
2
|
import { ValidationRule } from 'react-hook-form';
|
3
3
|
export declare const urlPattern: RegExp;
|
4
4
|
export declare const phoneNumberValidation: RegExp;
|
5
|
+
export declare const numberValidation: RegExp;
|
5
6
|
export declare const emailValidation: RegExp;
|
7
|
+
export declare const textValidation: RegExp;
|
6
8
|
export declare const getInputValidation: (type?: InputFieldTypes) => ValidationRule<RegExp> | undefined;
|
package/dist/esm/src/index.d.ts
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
export * from './atoms';
|
2
|
-
export * from './molecules';
|
3
2
|
export * from './organisms';
|
4
3
|
export * from './templates';
|
5
4
|
export * from './hooks';
|
6
5
|
export * from './theme';
|
7
6
|
export * from './fieldsConfiguration';
|
8
7
|
export * from './contexts';
|
9
|
-
export * from './containers';
|
10
8
|
export * from 'helpers/constants';
|
9
|
+
export * from './molecules';
|
10
|
+
export * from './containers';
|
@@ -22,6 +22,7 @@ export declare type BaseButtonProps = PropsWithChildren<{
|
|
22
22
|
hoverStrokeColor?: ThemeColors | string;
|
23
23
|
inactiveButtonColor?: ThemeColors | string;
|
24
24
|
inactiveStrokeColor?: ThemeColors | string;
|
25
|
+
inactiveTextColor?: ThemeColors | string;
|
25
26
|
styles?: StylesType;
|
26
27
|
colorTheme?: 'light' | 'dark';
|
27
28
|
href?: string;
|
@@ -36,4 +37,4 @@ export declare type ButtonProps = BaseButtonProps & {
|
|
36
37
|
containerStyle?: CSSProperties;
|
37
38
|
buttonStyle?: CSSProperties;
|
38
39
|
};
|
39
|
-
export declare const Button: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children, buttonStyle, size, ...props }: ButtonProps) => JSX.Element | null;
|
40
|
+
export declare const Button: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children, buttonStyle, size, textColor, inactiveTextColor, ...props }: ButtonProps) => JSX.Element | null;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { StoryFn } from '@storybook/react';
|
3
|
+
import { Button as ButtonComponent } from 'molecules/Button/Button';
|
4
|
+
declare const _default: {
|
5
|
+
title: string;
|
6
|
+
component: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children, buttonStyle, size, textColor, inactiveTextColor, ...props }: import("molecules/Button/Button").ButtonProps) => JSX.Element | null;
|
7
|
+
};
|
8
|
+
export default _default;
|
9
|
+
export declare const Button: StoryFn<typeof ButtonComponent>;
|
@@ -6,9 +6,8 @@ export declare const ColumnImage: import("styled-components").StyledComponent<"i
|
|
6
6
|
src: string;
|
7
7
|
} & Partial<{
|
8
8
|
alt: string;
|
9
|
-
style: import("styled-components").CSSProperties;
|
10
9
|
width: string | number;
|
11
10
|
height: string | number;
|
12
11
|
onClick: import("../../typescript").Callback;
|
13
12
|
cornerRadius: number;
|
14
|
-
}
|
13
|
+
}> & import("../../typescript").OverrideStyles, never>;
|
@@ -2,7 +2,7 @@ export declare const ColumnWrapper: import("styled-components").StyledComponent<
|
|
2
2
|
isMobile: boolean;
|
3
3
|
}, never>;
|
4
4
|
export declare const InfoWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
5
|
-
export declare const Link: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, Pick<import("
|
5
|
+
export declare const Link: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, Pick<import("..").BaseButtonProps, "children" | "onClick" | "disabled" | "size" | "colorTheme"> & {
|
6
6
|
buttonLink?: string | undefined;
|
7
7
|
elementId?: string | undefined;
|
8
8
|
}, never>;
|
@@ -16,10 +16,9 @@ export declare const ColumnBackgroundImage: import("styled-components").StyledCo
|
|
16
16
|
src: string;
|
17
17
|
} & Partial<{
|
18
18
|
alt: string;
|
19
|
-
style: import("styled-components").CSSProperties;
|
20
19
|
width: string | number;
|
21
20
|
height: string | number;
|
22
21
|
onClick: import("../../typescript").Callback;
|
23
22
|
cornerRadius: number;
|
24
|
-
}
|
23
|
+
}> & import("../../typescript").OverrideStyles, never>;
|
25
24
|
export declare const ColumnBackgroundImageOverlay: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
@@ -1,10 +1,42 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
+
import { StylesType } from 'typescript';
|
3
|
+
import { ThemeColors, FontSizesTypes } from 'theme';
|
2
4
|
export declare type FieldRuleLabelTypes = 'OPTIONAL' | 'REQUIRED';
|
5
|
+
export declare type LabelInternalConfig = {
|
6
|
+
fontVariant: FontSizesTypes;
|
7
|
+
fontSize: number;
|
8
|
+
fontWeight: string | number;
|
9
|
+
color: ThemeColors | string;
|
10
|
+
padding: string;
|
11
|
+
styles: StylesType;
|
12
|
+
wrapperStyles: StylesType;
|
13
|
+
};
|
14
|
+
export declare type RuleLabelInternalConfig = {
|
15
|
+
requiredTextColor: ThemeColors | string;
|
16
|
+
optionalTextColor: ThemeColors | string;
|
17
|
+
padding: string;
|
18
|
+
fontSize: number;
|
19
|
+
styles: StylesType;
|
20
|
+
};
|
21
|
+
export declare type TooltipInternalConfig = {
|
22
|
+
fontVariant: FontSizesTypes;
|
23
|
+
fontSize: number;
|
24
|
+
fontWeight: string | number;
|
25
|
+
color: ThemeColors | string;
|
26
|
+
padding: string;
|
27
|
+
backgroundColor: ThemeColors | string;
|
28
|
+
iconColor: ThemeColors | string;
|
29
|
+
styles: StylesType;
|
30
|
+
wrapperStyles: StylesType;
|
31
|
+
};
|
3
32
|
export declare type FieldLabelsProps = {
|
4
33
|
label: string;
|
5
34
|
tooltipText?: string;
|
6
35
|
isError?: boolean;
|
7
36
|
isTooltipVisible?: boolean;
|
8
37
|
ruleLabel?: FieldRuleLabelTypes;
|
38
|
+
labelInternalConfig?: LabelInternalConfig;
|
39
|
+
ruleLabelInternalConfig?: RuleLabelInternalConfig;
|
40
|
+
tooltipInternalConfig?: TooltipInternalConfig;
|
9
41
|
};
|
10
|
-
export declare const FieldLabels: ({ label, isTooltipVisible, isError, ruleLabel, tooltipText, }: FieldLabelsProps) => JSX.Element;
|
42
|
+
export declare const FieldLabels: ({ label, isTooltipVisible, isError, ruleLabel, tooltipText, labelInternalConfig, ruleLabelInternalConfig, tooltipInternalConfig, }: FieldLabelsProps) => JSX.Element;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import
|
3
|
-
import {
|
2
|
+
import { StoryFn } from '@storybook/react';
|
3
|
+
import { FieldLabelsProps } from './FieldLabels';
|
4
4
|
declare const _default: {
|
5
5
|
title: string;
|
6
|
-
component: ({ label, isTooltipVisible, isError, ruleLabel, tooltipText, }:
|
6
|
+
component: ({ label, isTooltipVisible, isError, ruleLabel, tooltipText, labelInternalConfig, ruleLabelInternalConfig, tooltipInternalConfig, }: FieldLabelsProps) => JSX.Element;
|
7
7
|
};
|
8
8
|
export default _default;
|
9
|
-
export declare const FieldLabels:
|
9
|
+
export declare const FieldLabels: StoryFn<FieldLabelsProps>;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
+
import { UIField } from 'fieldsConfiguration';
|
2
3
|
import { Control } from 'react-hook-form/dist/types';
|
3
|
-
import {
|
4
|
+
import { StylesType } from 'typescript';
|
4
5
|
export declare type FieldMapperProps<T extends object> = {
|
5
6
|
field: UIField<keyof T>;
|
6
7
|
isEditMode?: boolean;
|
@@ -8,6 +9,6 @@ export declare type FieldMapperProps<T extends object> = {
|
|
8
9
|
spacer?: number;
|
9
10
|
isTooltipVisible?: boolean;
|
10
11
|
optionsPresentation?: boolean;
|
11
|
-
styles?:
|
12
|
+
styles?: StylesType;
|
12
13
|
};
|
13
14
|
export declare const FieldMapper: <T extends object>({ field, isEditMode, spacer, control, isTooltipVisible, optionsPresentation, styles, }: FieldMapperProps<T>) => JSX.Element | null;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import {
|
2
|
+
import { RegularImageProps } from 'atoms';
|
3
|
+
import { ButtonProps } from 'molecules';
|
3
4
|
export declare type HeroImageAlignment = 'left_aligned' | 'center_aligned';
|
4
5
|
export declare type HeroImageTemplate = 'card' | 'full_width';
|
5
6
|
export declare type HeroImageProps = {
|
@@ -1,4 +1,5 @@
|
|
1
|
-
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { StylesType } from 'typescript';
|
2
3
|
export declare type ImageProps = {
|
3
4
|
src: string;
|
4
5
|
} & Partial<{
|
@@ -8,6 +9,6 @@ export declare type ImageProps = {
|
|
8
9
|
height: number;
|
9
10
|
cornerRadius: number;
|
10
11
|
behaveAs: 'background' | 'regular';
|
11
|
-
styles:
|
12
|
+
styles: StylesType;
|
12
13
|
}>;
|
13
14
|
export declare const Image: ({ src, link, altText, styles, width, height, behaveAs, cornerRadius, }: ImageProps) => JSX.Element;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { InputProps } from 'atoms';
|
3
3
|
import { Control, ControllerProps } from 'react-hook-form/dist/types';
|
4
|
-
import {
|
4
|
+
import { StylesType } from 'typescript';
|
5
5
|
import { FieldLabelsProps } from '../FieldLabels/FieldLabels';
|
6
6
|
export declare type InputFieldProps = {
|
7
7
|
name: string;
|
@@ -11,7 +11,7 @@ export declare type InputFieldProps = {
|
|
11
11
|
optional?: boolean;
|
12
12
|
defaultValue?: string;
|
13
13
|
inputProps: InputProps;
|
14
|
-
styles?:
|
14
|
+
styles?: StylesType;
|
15
15
|
labelsProps?: FieldLabelsProps;
|
16
16
|
};
|
17
17
|
export declare const InputField: ({ control, name, inputProps, styles, labelsProps, defaultValue, optional, required, rules, }: InputFieldProps) => JSX.Element;
|
@@ -1,10 +1,9 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import
|
3
|
-
import {
|
2
|
+
import { StoryFn } from '@storybook/react';
|
3
|
+
import { InputFieldProps } from './InputField';
|
4
4
|
declare const _default: {
|
5
5
|
title: string;
|
6
|
-
component: ({ control, name, inputProps, styles, labelsProps, defaultValue, optional, required, rules, }:
|
6
|
+
component: ({ control, name, inputProps, styles, labelsProps, defaultValue, optional, required, rules, }: InputFieldProps) => JSX.Element;
|
7
7
|
};
|
8
8
|
export default _default;
|
9
|
-
export declare const InputField:
|
10
|
-
export declare const InputPasswordField: ComponentStory<typeof InputFieldComponent>;
|
9
|
+
export declare const InputField: StoryFn<InputFieldProps>;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { Control, ControllerProps } from 'react-hook-form/dist/types';
|
3
|
-
import { CSSProperties } from 'styled-components';
|
4
3
|
import { SelectProps } from '../../atoms/Select/types';
|
5
4
|
import { FieldLabelsProps } from '../FieldLabels/FieldLabels';
|
5
|
+
import { StylesType } from 'typescript';
|
6
6
|
export declare type SelectFieldProps = {
|
7
7
|
selectProps: SelectProps;
|
8
8
|
labelsProps?: FieldLabelsProps;
|
@@ -12,6 +12,6 @@ export declare type SelectFieldProps = {
|
|
12
12
|
required?: boolean;
|
13
13
|
optional?: boolean;
|
14
14
|
defaultValue?: string;
|
15
|
-
styles?:
|
15
|
+
styles?: StylesType;
|
16
16
|
};
|
17
17
|
export declare const SelectField: ({ selectProps, name, defaultValue, optional, required, control, styles, labelsProps, rules, }: SelectFieldProps) => JSX.Element;
|
@@ -10,7 +10,7 @@ export declare type TextMoleculeProps = Partial<{
|
|
10
10
|
textColor: ThemeColors | string;
|
11
11
|
letterSpacing: number;
|
12
12
|
lineHeight: number;
|
13
|
-
fontWeight: number;
|
13
|
+
fontWeight: string | number;
|
14
14
|
isRichText: boolean;
|
15
15
|
styles: StylesType;
|
16
16
|
textAlign: 'center' | 'right' | 'left';
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import {
|
2
|
+
import { RadioButtonsProps } from 'atoms';
|
3
|
+
import { ButtonProps } from 'molecules';
|
3
4
|
export declare type ButtonCaptureProps = {
|
4
5
|
type: 'button';
|
5
6
|
acceptButton: ButtonProps;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { FilteredFeedContentType } from 'organisms';
|
2
2
|
import { CSSProperties } from 'styled-components';
|
3
|
-
import { Callback, Nullable } from 'typescript';
|
3
|
+
import { Callback, Nullable, StylesType } from 'typescript';
|
4
4
|
export declare type FeedContentTemplateTypes = 'full_width_content' | 'standard_content' | 'auto_play' | '';
|
5
5
|
export declare type FeedContentProps = {
|
6
6
|
feedContentType: Omit<FilteredFeedContentType, 'all'>;
|
@@ -26,7 +26,7 @@ export declare type FeedContentProps = {
|
|
26
26
|
showDefaultDocumentStyles?: boolean;
|
27
27
|
destinationLink?: string;
|
28
28
|
onDestinationHandler?: Callback;
|
29
|
-
imageStyles?:
|
29
|
+
imageStyles?: StylesType;
|
30
30
|
videoStyles?: CSSProperties;
|
31
31
|
isEnabledFavoriting?: boolean;
|
32
32
|
isFavorite?: boolean;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import {
|
2
|
+
import { StoryFn } from '@storybook/react';
|
3
3
|
import { Footer as FooterComponent } from './Footer';
|
4
4
|
declare const _default: {
|
5
5
|
title: string;
|
6
6
|
component: (props: import("./Footer").FooterProps) => JSX.Element;
|
7
7
|
};
|
8
8
|
export default _default;
|
9
|
-
export declare const Footer:
|
9
|
+
export declare const Footer: StoryFn<typeof FooterComponent>;
|
@@ -5,12 +5,11 @@ export declare const FooterImage: import("styled-components").StyledComponent<"i
|
|
5
5
|
src: string;
|
6
6
|
} & Partial<{
|
7
7
|
alt: string;
|
8
|
-
style: import("styled-components").CSSProperties;
|
9
8
|
width: string | number;
|
10
9
|
height: string | number;
|
11
10
|
onClick: import("../../typescript").Callback;
|
12
11
|
cornerRadius: number;
|
13
|
-
}
|
12
|
+
}> & import("../../typescript").OverrideStyles, never>;
|
14
13
|
export declare const ContactInfoWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
15
14
|
export declare const FooterContentWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
16
15
|
isMobile?: boolean | undefined;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import {
|
2
|
+
import { StoryFn } from '@storybook/react';
|
3
3
|
import { Header as HeaderComponent } from 'organisms/Header/Header';
|
4
4
|
declare const _default: {
|
5
5
|
title: string;
|
6
6
|
component: <T extends string | number>(props: import("organisms/Header/Header").HeaderProps<T>) => JSX.Element;
|
7
7
|
};
|
8
8
|
export default _default;
|
9
|
-
export declare const Header:
|
9
|
+
export declare const Header: StoryFn<typeof HeaderComponent>;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
+
import { UIFields } from 'fieldsConfiguration';
|
2
3
|
import { ConsentProps } from 'organisms/Consent/Consent';
|
3
4
|
import type { Callback } from 'typescript';
|
4
|
-
import { UIFields } from 'fieldsConfiguration';
|
5
5
|
import { TwoFactorAuthProps } from '../TwoFactorAuth/TwoFactorAuth';
|
6
6
|
import { LoginFields } from './types';
|
7
7
|
export declare type LoginFormProps = {
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import { AvatarProps } from 'atoms';
|
2
|
-
import { TabProps } from 'molecules';
|
1
|
+
import { AvatarProps, TabProps } from 'atoms';
|
3
2
|
import { ReactNode } from 'react';
|
4
3
|
import type { Callback } from 'typescript';
|
5
4
|
export declare type ProfileInformationProps<TabKeys extends string> = {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
+
import { UIFields } from 'fieldsConfiguration';
|
2
3
|
import { MaxRuleValidation, MinRuleValidation, SetPasswordFields } from 'organisms/SetPasswordForm/types';
|
3
|
-
import { UIFields } from '../../fieldsConfiguration';
|
4
4
|
export declare type SetPasswordRuleValidation = {
|
5
5
|
label: string;
|
6
6
|
rule: MaxRuleValidation | MinRuleValidation;
|
@@ -1,5 +1,8 @@
|
|
1
1
|
import { DefaultTheme, ThemedCssFunction } from 'styled-components';
|
2
2
|
export declare type StylesType = ReturnType<ThemedCssFunction<DefaultTheme>>;
|
3
|
+
export declare type OverrideStyles = {
|
4
|
+
$styles?: StylesType;
|
5
|
+
};
|
3
6
|
export declare type Callback = () => void;
|
4
7
|
export declare type Nullable<T> = T | null;
|
5
8
|
declare type UnionKeys<T> = T extends any ? keyof T : never;
|