@zealicsolutions/web-ui 0.2.84 → 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.
Files changed (82) hide show
  1. package/dist/cjs/index.js +32 -33
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/src/atoms/Buttons/{Button.stories.d.ts → Buttons.stories.d.ts} +4 -3
  4. package/dist/cjs/src/atoms/Buttons/TextButton.d.ts +1 -1
  5. package/dist/cjs/src/atoms/Input/Input.d.ts +14 -2
  6. package/dist/cjs/src/atoms/Input/Input.stories.d.ts +4 -4
  7. package/dist/cjs/src/atoms/RegularImage/RegularImage.d.ts +26 -8
  8. package/dist/cjs/src/atoms/RegularImage/RegularImage.stories.d.ts +9 -1
  9. package/dist/cjs/src/atoms/RichTextViewer/RichTextViewer.d.ts +1 -1
  10. package/dist/cjs/src/atoms/Tooltip/Tooltip.d.ts +6 -3
  11. package/dist/cjs/src/atoms/Tooltip/Tooltip.stories.d.ts +1 -1
  12. package/dist/cjs/src/atoms/index.d.ts +0 -1
  13. package/dist/cjs/src/containers/MoleculeItem.d.ts +1 -1
  14. package/dist/cjs/src/containers/types/moleculeTypes.d.ts +4 -5
  15. package/dist/cjs/src/fieldsConfiguration/types.d.ts +5 -2
  16. package/dist/cjs/src/helpers/validations.d.ts +2 -0
  17. package/dist/cjs/src/index.d.ts +2 -2
  18. package/dist/cjs/src/{atoms/Buttons → molecules/Button}/Button.d.ts +2 -1
  19. package/dist/cjs/src/molecules/Button/Button.stories.d.ts +9 -0
  20. package/dist/cjs/src/molecules/Columns/Column.d.ts +9 -1
  21. package/dist/cjs/src/molecules/Columns/styles.d.ts +10 -2
  22. package/dist/cjs/src/molecules/FieldLabels/FieldLabels.d.ts +33 -1
  23. package/dist/cjs/src/molecules/FieldLabels/FieldLabels.stories.d.ts +4 -4
  24. package/dist/cjs/src/molecules/FieldMapper/FieldMapper.d.ts +3 -2
  25. package/dist/cjs/src/molecules/HeroImage/HeroImage.d.ts +2 -1
  26. package/dist/cjs/src/molecules/Image/Image.d.ts +3 -2
  27. package/dist/cjs/src/molecules/InputField/InputField.d.ts +2 -2
  28. package/dist/cjs/src/molecules/InputField/InputField.stories.d.ts +4 -5
  29. package/dist/cjs/src/molecules/SelectField/SelectField.d.ts +2 -2
  30. package/dist/cjs/src/molecules/TextMolecule/TextMolecule.d.ts +1 -1
  31. package/dist/cjs/src/molecules/index.d.ts +1 -0
  32. package/dist/cjs/src/organisms/Consent/ConsentCapture.d.ts +2 -1
  33. package/dist/cjs/src/organisms/FeedContent/types.d.ts +2 -2
  34. package/dist/cjs/src/organisms/Footer/Footer.stories.d.ts +2 -2
  35. package/dist/cjs/src/organisms/Footer/styles.d.ts +9 -1
  36. package/dist/cjs/src/organisms/Header/Header.stories.d.ts +2 -2
  37. package/dist/cjs/src/organisms/LoginForm/LoginForm.d.ts +1 -1
  38. package/dist/cjs/src/organisms/ProfileInformation/ProfileInformation.d.ts +1 -2
  39. package/dist/cjs/src/organisms/SetPasswordForm/SetPasswordForm.d.ts +1 -1
  40. package/dist/cjs/src/typescript.d.ts +3 -0
  41. package/dist/esm/index.js +32 -33
  42. package/dist/esm/index.js.map +1 -1
  43. package/dist/esm/src/atoms/Buttons/{Button.stories.d.ts → Buttons.stories.d.ts} +4 -3
  44. package/dist/esm/src/atoms/Buttons/TextButton.d.ts +1 -1
  45. package/dist/esm/src/atoms/Input/Input.d.ts +14 -2
  46. package/dist/esm/src/atoms/Input/Input.stories.d.ts +4 -4
  47. package/dist/esm/src/atoms/RegularImage/RegularImage.d.ts +26 -8
  48. package/dist/esm/src/atoms/RegularImage/RegularImage.stories.d.ts +9 -1
  49. package/dist/esm/src/atoms/RichTextViewer/RichTextViewer.d.ts +1 -1
  50. package/dist/esm/src/atoms/Tooltip/Tooltip.d.ts +6 -3
  51. package/dist/esm/src/atoms/Tooltip/Tooltip.stories.d.ts +1 -1
  52. package/dist/esm/src/atoms/index.d.ts +0 -1
  53. package/dist/esm/src/containers/MoleculeItem.d.ts +1 -1
  54. package/dist/esm/src/containers/types/moleculeTypes.d.ts +4 -5
  55. package/dist/esm/src/fieldsConfiguration/types.d.ts +5 -2
  56. package/dist/esm/src/helpers/validations.d.ts +2 -0
  57. package/dist/esm/src/index.d.ts +2 -2
  58. package/dist/esm/src/{atoms/Buttons → molecules/Button}/Button.d.ts +2 -1
  59. package/dist/esm/src/molecules/Button/Button.stories.d.ts +9 -0
  60. package/dist/esm/src/molecules/Columns/Column.d.ts +9 -1
  61. package/dist/esm/src/molecules/Columns/styles.d.ts +10 -2
  62. package/dist/esm/src/molecules/FieldLabels/FieldLabels.d.ts +33 -1
  63. package/dist/esm/src/molecules/FieldLabels/FieldLabels.stories.d.ts +4 -4
  64. package/dist/esm/src/molecules/FieldMapper/FieldMapper.d.ts +3 -2
  65. package/dist/esm/src/molecules/HeroImage/HeroImage.d.ts +2 -1
  66. package/dist/esm/src/molecules/Image/Image.d.ts +3 -2
  67. package/dist/esm/src/molecules/InputField/InputField.d.ts +2 -2
  68. package/dist/esm/src/molecules/InputField/InputField.stories.d.ts +4 -5
  69. package/dist/esm/src/molecules/SelectField/SelectField.d.ts +2 -2
  70. package/dist/esm/src/molecules/TextMolecule/TextMolecule.d.ts +1 -1
  71. package/dist/esm/src/molecules/index.d.ts +1 -0
  72. package/dist/esm/src/organisms/Consent/ConsentCapture.d.ts +2 -1
  73. package/dist/esm/src/organisms/FeedContent/types.d.ts +2 -2
  74. package/dist/esm/src/organisms/Footer/Footer.stories.d.ts +2 -2
  75. package/dist/esm/src/organisms/Footer/styles.d.ts +9 -1
  76. package/dist/esm/src/organisms/Header/Header.stories.d.ts +2 -2
  77. package/dist/esm/src/organisms/LoginForm/LoginForm.d.ts +1 -1
  78. package/dist/esm/src/organisms/ProfileInformation/ProfileInformation.d.ts +1 -2
  79. package/dist/esm/src/organisms/SetPasswordForm/SetPasswordForm.d.ts +1 -1
  80. package/dist/esm/src/typescript.d.ts +3 -0
  81. package/dist/index.d.ts +782 -719
  82. 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: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children, buttonStyle, size, ...props }: import("./Button").ButtonProps) => JSX.Element | null;
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,4 +1,4 @@
1
- import { BaseButtonProps } from './Button';
1
+ import { BaseButtonProps } from 'molecules';
2
2
  export declare type TextButtonProps = Pick<BaseButtonProps, 'disabled' | 'onClick' | 'children' | 'colorTheme' | 'size'> & {
3
3
  buttonLink?: string;
4
4
  elementId?: string;
@@ -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 type { Callback } from 'typescript';
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 { ComponentStory } from '@storybook/react';
3
- import { Input as InputComponent } from './Input';
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 }: import("./Input").InputProps) => JSX.Element;
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: ComponentStory<typeof InputComponent>;
9
+ export declare const Input: StoryFn<InputProps>;
@@ -1,11 +1,29 @@
1
1
  import type { Callback } from 'typescript';
2
+ import { OverrideStyles } from 'typescript';
2
3
  export declare type RegularImageProps = {
3
4
  src: string;
4
- alt?: string;
5
- width?: number | string;
6
- height?: number | string;
7
- onClick?: Callback;
8
- cornerRadius?: number;
9
- };
10
- export declare const RegularImage: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, RegularImageProps, never>;
11
- export declare const BackgroundImage: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, RegularImageProps, never>;
5
+ } & Partial<{
6
+ alt: string;
7
+ width: number | string;
8
+ height: number | string;
9
+ onClick: Callback;
10
+ cornerRadius: number;
11
+ }> & OverrideStyles;
12
+ export declare const RegularImage: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, {
13
+ src: string;
14
+ } & Partial<{
15
+ alt: string;
16
+ width: number | string;
17
+ height: number | string;
18
+ onClick: Callback;
19
+ cornerRadius: number;
20
+ }> & OverrideStyles, never>;
21
+ export declare const BackgroundImage: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, {
22
+ src: string;
23
+ } & Partial<{
24
+ alt: string;
25
+ width: number | string;
26
+ height: number | string;
27
+ onClick: Callback;
28
+ cornerRadius: number;
29
+ }> & OverrideStyles, never>;
@@ -2,7 +2,15 @@ import type { ComponentStory } from '@storybook/react';
2
2
  import { RegularImage as RegularImageComponent } from './RegularImage';
3
3
  declare const _default: {
4
4
  title: string;
5
- component: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, import("./RegularImage").RegularImageProps, never>;
5
+ component: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, {
6
+ src: string;
7
+ } & Partial<{
8
+ alt: string;
9
+ width: string | number;
10
+ height: string | number;
11
+ onClick: import("../../typescript").Callback;
12
+ cornerRadius: number;
13
+ }> & import("../../typescript").OverrideStyles, never>;
6
14
  };
7
15
  export default _default;
8
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
- export declare const StyleWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
6
- export declare const Tooltip: ({ trigger, placement, ...props }: TooltipProps) => JSX.Element;
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,4 +1,3 @@
1
- export * from './Buttons/Button';
2
1
  export * from './Buttons/TouchableOpacity';
3
2
  export * from './Checkbox/Checkbox';
4
3
  export * from './Select/Select';
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { Molecule } from 'containers/types/moleculeTypes';
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 TextMolecule extends BaseMolecule {
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 | TextMolecule | ButtonMolecule | VideoMolecule | TabGroupMolecule>;
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 = 'number' | 'text' | 'email' | 'password';
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;
@@ -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>;
@@ -2,4 +2,12 @@
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").RegularImageProps, never>;
5
+ export declare const ColumnImage: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, {
6
+ src: string;
7
+ } & Partial<{
8
+ alt: string;
9
+ width: string | number;
10
+ height: string | number;
11
+ onClick: import("../../typescript").Callback;
12
+ cornerRadius: number;
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("atoms").BaseButtonProps, "children" | "onClick" | "disabled" | "size" | "colorTheme"> & {
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>;
@@ -12,5 +12,13 @@ export declare const ColumnCardWrapper: import("styled-components").StyledCompon
12
12
  export declare const ColumnImageWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
13
13
  isMobile: boolean;
14
14
  }, never>;
15
- export declare const ColumnBackgroundImage: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, import("atoms").RegularImageProps, never>;
15
+ export declare const ColumnBackgroundImage: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, {
16
+ src: string;
17
+ } & Partial<{
18
+ alt: string;
19
+ width: string | number;
20
+ height: string | number;
21
+ onClick: import("../../typescript").Callback;
22
+ cornerRadius: number;
23
+ }> & import("../../typescript").OverrideStyles, never>;
16
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 type { ComponentStory } from '@storybook/react';
3
- import { FieldLabels as FieldLabelsComponent } from './FieldLabels';
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, }: import("./FieldLabels").FieldLabelsProps) => JSX.Element;
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: ComponentStory<typeof FieldLabelsComponent>;
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 { UIField } from '../../fieldsConfiguration';
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?: React.CSSProperties;
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 { ButtonProps, RegularImageProps } from 'atoms';
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
- import { CSSProperties } from 'react';
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: CSSProperties;
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 { CSSProperties } from 'styled-components';
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?: CSSProperties;
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 type { ComponentStory } from '@storybook/react';
3
- import { InputField as InputFieldComponent } from './InputField';
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, }: import("./InputField").InputFieldProps) => JSX.Element;
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: ComponentStory<typeof InputFieldComponent>;
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?: CSSProperties;
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';
@@ -25,3 +25,4 @@ export * from './Video/Video';
25
25
  export * from './Image/Image';
26
26
  export * from './Caruser/Carousel';
27
27
  export * from './TextMolecule/TextMolecule';
28
+ export * from './Button/Button';
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { ButtonProps, RadioButtonsProps } from 'atoms';
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?: CSSProperties;
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 { ComponentStory } from '@storybook/react';
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: ComponentStory<typeof FooterComponent>;
9
+ export declare const Footer: StoryFn<typeof FooterComponent>;
@@ -1,7 +1,15 @@
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").RegularImageProps, never>;
4
+ export declare const FooterImage: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, {
5
+ src: string;
6
+ } & Partial<{
7
+ alt: string;
8
+ width: string | number;
9
+ height: string | number;
10
+ onClick: import("../../typescript").Callback;
11
+ cornerRadius: number;
12
+ }> & import("../../typescript").OverrideStyles, never>;
5
13
  export declare const ContactInfoWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
6
14
  export declare const FooterContentWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
7
15
  isMobile?: boolean | undefined;
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
- import { ComponentStory } from '@storybook/react';
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: ComponentStory<typeof HeaderComponent>;
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;