@zealicsolutions/web-ui 0.3.33 → 0.3.35

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.
@@ -5,10 +5,14 @@ import { IconButton as IconButtonComponent } from './IconButton';
5
5
  import { TouchableOpacityProps } from './TouchableOpacity';
6
6
  declare const _default: {
7
7
  title: string;
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>;
8
+ component: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, {
9
+ target: "_blank";
10
+ } & Pick<import("../..").BaseButtonProps, "children" | "onClick" | "disabled" | "size" | "colorTheme"> & Partial<{
11
+ buttonLink: string;
12
+ elementId: string;
13
+ $styles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
14
+ $variant: import("atoms/Buttons/TextButton").LinkVariant;
15
+ }>, "target">;
12
16
  };
13
17
  export default _default;
14
18
  export declare const TouchableOpacity: StoryFn<FC<TouchableOpacityProps>>;
@@ -1,9 +1,17 @@
1
1
  import { BaseButtonProps } from 'molecules';
2
- export declare type TextButtonProps = Pick<BaseButtonProps, 'disabled' | 'onClick' | 'children' | 'colorTheme' | 'size'> & {
3
- buttonLink?: string;
4
- elementId?: string;
5
- };
6
- export declare const TextButton: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, Pick<BaseButtonProps, "children" | "onClick" | "disabled" | "size" | "colorTheme"> & {
7
- buttonLink?: string | undefined;
8
- elementId?: string | undefined;
9
- }, never>;
2
+ import { StylesType } from 'typescript';
3
+ export declare type LinkVariant = 'link' | 'custom';
4
+ export declare type TextButtonProps = Pick<BaseButtonProps, 'disabled' | 'onClick' | 'children' | 'colorTheme' | 'size'> & Partial<{
5
+ buttonLink: string;
6
+ elementId: string;
7
+ $styles: StylesType;
8
+ $variant: LinkVariant;
9
+ }>;
10
+ export declare const TextButton: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, {
11
+ target: "_blank";
12
+ } & Pick<BaseButtonProps, "children" | "onClick" | "disabled" | "size" | "colorTheme"> & Partial<{
13
+ buttonLink: string;
14
+ elementId: string;
15
+ $styles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
16
+ $variant: LinkVariant;
17
+ }>, "target">;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { TextProps } from 'atoms';
3
3
  import { FontSizesTypes, ThemeColors } from 'theme';
4
- import { StylesType } from 'typescript';
4
+ import { AnyObject, StylesType } from 'typescript';
5
5
  export declare const MATRIX_MESSAGE_ELEMENT_ID = "matrix-message";
6
6
  export declare const COMMUNICATION_LINK_ELEMENT_ID = "communication-link";
7
7
  export declare const MATRIX_MESSAGE_DATA_ID = "matrix-message-id";
@@ -12,7 +12,9 @@ export declare type RichTextEditorProps = Partial<{
12
12
  font: FontSizesTypes;
13
13
  color: ThemeColors | string;
14
14
  textStyles: StylesType;
15
- numberOfLines?: number;
16
- extraTextProps?: TextProps;
15
+ numberOfLines: number;
16
+ extraTextProps: TextProps;
17
+ renderElementWrapperComponent: (props: AnyObject) => JSX.Element;
18
+ renderElementWrapperProps: AnyObject;
17
19
  }>;
18
- export declare const RichTextViewer: ({ value, color, textStyles, font, numberOfLines, extraTextProps, }: RichTextEditorProps) => JSX.Element | null;
20
+ export declare const RichTextViewer: ({ value, color, textStyles, font, numberOfLines, extraTextProps, renderElementWrapperComponent: RenderElementWrapperComponent, renderElementWrapperProps, }: RichTextEditorProps) => JSX.Element | null;
@@ -1,5 +1,5 @@
1
- import { PropsWithChildren } from 'react';
2
1
  import { FormStepContainerProps } from 'containers';
2
+ import { PropsWithChildren } from 'react';
3
3
  export declare type StepContainerProps = PropsWithChildren<Partial<FormStepContainerProps>> & {
4
4
  id: string;
5
5
  };
@@ -1,5 +1,5 @@
1
- import { SelectOption } from 'atoms';
2
- import { AdditionalTabContainerProps, ButtonProps, CheckboxFieldProps, Consent, ImageProps, InputFieldProps, RadioButtonFieldProps, SelectFieldProps, TabGroupProps, TextMoleculeProps } from 'molecules';
1
+ import { LinkVariant, SelectOption } from 'atoms';
2
+ import { AdditionalTabContainerProps, ButtonProps, CheckboxFieldProps, Consent, ImageProps, InputFieldProps, LinkProps, RadioButtonFieldProps, SelectFieldProps, TabGroupProps, TextMoleculeProps } from 'molecules';
3
3
  import { UseFormReturn } from 'react-hook-form';
4
4
  import type { AnyObject, Nullable, StrictUnion, StylesType } from 'typescript';
5
5
  import { ConditionConfig, ContainerComponentProps } from './types';
@@ -86,7 +86,7 @@ export interface ColorAttributes {
86
86
  attributeType: 'color';
87
87
  color: string;
88
88
  }
89
- export declare type MoleculeTypes = 'image' | 'text' | 'button' | 'video' | 'header_tab_group' | 'input_field' | 'select_field' | 'radio_button_field' | 'checkbox_field' | 'consent';
89
+ export declare type MoleculeTypes = 'image' | 'text' | 'button' | 'video' | 'header_tab_group' | 'input_field' | 'select_field' | 'radio_button_field' | 'checkbox_field' | 'consent' | 'link';
90
90
  export interface BaseMolecule {
91
91
  id: string;
92
92
  instance: 'molecule';
@@ -110,7 +110,7 @@ export interface TextMoleculeType extends BaseMolecule {
110
110
  text: TextAttributes;
111
111
  seoStyle: SelectAttributes;
112
112
  fontVariant: SelectAttributes;
113
- textColor: ColorAttributes;
113
+ color: ColorAttributes;
114
114
  }>;
115
115
  config: {
116
116
  props?: TextMoleculeProps;
@@ -212,7 +212,20 @@ export interface ConsentFieldMolecule extends BaseMolecule {
212
212
  }>;
213
213
  }>;
214
214
  }
215
- export declare type Molecule = StrictUnion<ImageMolecule | TextMoleculeType | ButtonMolecule | VideoMolecule | TabGroupMolecule | TextInputMolecule | SelectFieldMolecule | RadioButtonFieldMolecule | CheckboxFieldMolecule | ConsentFieldMolecule> & {
215
+ export interface LinkMolecule extends BaseMolecule {
216
+ type: 'link';
217
+ attributes: {
218
+ text: TextAttributes;
219
+ link: LinkAttributes;
220
+ };
221
+ config: {
222
+ props: Omit<LinkProps, '$variant' | '$styles'> & Partial<{
223
+ variant: LinkVariant;
224
+ styles: StylesType;
225
+ }>;
226
+ };
227
+ }
228
+ export declare type Molecule = StrictUnion<ImageMolecule | TextMoleculeType | ButtonMolecule | VideoMolecule | TabGroupMolecule | TextInputMolecule | SelectFieldMolecule | RadioButtonFieldMolecule | CheckboxFieldMolecule | ConsentFieldMolecule | LinkMolecule> & {
216
229
  form?: UseFormReturn<any>;
217
230
  };
218
231
  export {};
@@ -3,31 +3,31 @@ import { FontSizesTypes, SizesTypes, ThemeColors } from 'theme';
3
3
  import type { Callback, StylesType } from 'typescript';
4
4
  export declare type ButtonVariant = 'primary' | 'secondary' | 'text' | 'custom';
5
5
  export declare type ButtonType = 'button' | 'submit' | 'reset';
6
- export declare type BaseButtonProps = PropsWithChildren<{
7
- onClick?: Callback;
8
- variant?: ButtonVariant;
9
- disabled?: boolean;
10
- state?: 'disabled' | 'enabled';
11
- fullWidth?: boolean;
12
- size?: 'medium' | 'small';
13
- buttonFont?: FontSizesTypes;
14
- textColor?: ThemeColors | string;
15
- textSize?: number;
16
- horizontalPadding?: SizesTypes;
17
- verticalPadding?: SizesTypes;
18
- buttonColor?: ThemeColors | string;
19
- buttonStroke?: ThemeColors | string;
20
- cornerRadius?: SizesTypes | number;
21
- hoverButtonColor?: ThemeColors | string;
22
- hoverStrokeColor?: ThemeColors | string;
23
- inactiveButtonColor?: ThemeColors | string;
24
- inactiveStrokeColor?: ThemeColors | string;
25
- inactiveTextColor?: ThemeColors | string;
26
- styles?: StylesType;
27
- colorTheme?: 'light' | 'dark';
28
- href?: string;
29
- type?: ButtonType;
30
- }>;
6
+ export declare type BaseButtonProps = PropsWithChildren<Partial<{
7
+ onClick: Callback;
8
+ variant: ButtonVariant;
9
+ disabled: boolean;
10
+ state: 'disabled' | 'enabled';
11
+ fullWidth: boolean;
12
+ size: 'medium' | 'small';
13
+ buttonFont: FontSizesTypes;
14
+ textColor: ThemeColors | string;
15
+ textSize: number;
16
+ horizontalPadding: SizesTypes;
17
+ verticalPadding: SizesTypes;
18
+ buttonColor: ThemeColors | string;
19
+ buttonStroke: ThemeColors | string;
20
+ cornerRadius: SizesTypes | number;
21
+ hoverButtonColor: ThemeColors | string;
22
+ hoverStrokeColor: ThemeColors | string;
23
+ inactiveButtonColor: ThemeColors | string;
24
+ inactiveStrokeColor: ThemeColors | string;
25
+ inactiveTextColor: ThemeColors | string;
26
+ styles: StylesType;
27
+ colorTheme: 'light' | 'dark';
28
+ href: string;
29
+ type: ButtonType;
30
+ }>>;
31
31
  export declare type ButtonProps = BaseButtonProps & {
32
32
  fullWidth?: boolean;
33
33
  text?: string;
@@ -2,10 +2,14 @@ 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("..").BaseButtonProps, "children" | "onClick" | "disabled" | "size" | "colorTheme"> & {
6
- buttonLink?: string | undefined;
7
- elementId?: string | undefined;
8
- }, never>;
5
+ export declare const Link: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, {
6
+ target: "_blank";
7
+ } & Pick<import("..").BaseButtonProps, "children" | "onClick" | "disabled" | "size" | "colorTheme"> & Partial<{
8
+ buttonLink: string;
9
+ elementId: string;
10
+ $styles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
11
+ $variant: import("atoms").LinkVariant;
12
+ }>, "target">;
9
13
  export declare const ColumnCardWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
10
14
  isMobile: boolean;
11
15
  }, never>;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { TextButtonProps } from 'atoms';
3
+ export declare type LinkProps = Omit<TextButtonProps, 'children'> & Partial<{
4
+ text: string;
5
+ isRichText: boolean;
6
+ href: string;
7
+ }>;
8
+ export declare const Link: ({ text: textProp, isRichText, ...props }: LinkProps) => JSX.Element | null;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import type { StoryFn } from '@storybook/react';
3
+ import { Link as LinkComponent } from 'molecules';
4
+ declare const _default: {
5
+ title: string;
6
+ component: ({ text: textProp, isRichText, ...props }: import("molecules").LinkProps) => JSX.Element | null;
7
+ };
8
+ export default _default;
9
+ export declare const Link: StoryFn<typeof LinkComponent>;
@@ -29,3 +29,4 @@ export * from './TextMolecule/TextMolecule';
29
29
  export * from './Button/Button';
30
30
  export * from './ZealUIModal/ZealUIModal';
31
31
  export * from './Consent/Consent';
32
+ export * from './Link/Link';