@zealicsolutions/web-ui 0.3.33 → 0.3.35
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +4 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/atoms/Buttons/Buttons.stories.d.ts +8 -4
- package/dist/cjs/src/atoms/Buttons/TextButton.d.ts +16 -8
- package/dist/cjs/src/atoms/RichTextViewer/RichTextViewer.d.ts +6 -4
- package/dist/cjs/src/containers/FormStepContainer.d.ts +1 -1
- package/dist/cjs/src/containers/types/moleculeTypes.d.ts +18 -5
- package/dist/cjs/src/molecules/Button/Button.d.ts +25 -25
- package/dist/cjs/src/molecules/Columns/styles.d.ts +8 -4
- package/dist/cjs/src/molecules/Link/Link.d.ts +8 -0
- package/dist/cjs/src/molecules/Link/Link.stories.d.ts +9 -0
- package/dist/cjs/src/molecules/index.d.ts +1 -0
- package/dist/esm/index.js +4 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/atoms/Buttons/Buttons.stories.d.ts +8 -4
- package/dist/esm/src/atoms/Buttons/TextButton.d.ts +16 -8
- package/dist/esm/src/atoms/RichTextViewer/RichTextViewer.d.ts +6 -4
- package/dist/esm/src/containers/FormStepContainer.d.ts +1 -1
- package/dist/esm/src/containers/types/moleculeTypes.d.ts +18 -5
- package/dist/esm/src/molecules/Button/Button.d.ts +25 -25
- package/dist/esm/src/molecules/Columns/styles.d.ts +8 -4
- package/dist/esm/src/molecules/Link/Link.d.ts +8 -0
- package/dist/esm/src/molecules/Link/Link.stories.d.ts +9 -0
- package/dist/esm/src/molecules/index.d.ts +1 -0
- package/dist/index.d.ts +71 -42
- package/package.json +1 -1
@@ -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,
|
9
|
-
|
10
|
-
|
11
|
-
|
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
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
}
|
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
|
16
|
-
extraTextProps
|
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 { 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
|
-
|
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
|
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
|
8
|
-
variant
|
9
|
-
disabled
|
10
|
-
state
|
11
|
-
fullWidth
|
12
|
-
size
|
13
|
-
buttonFont
|
14
|
-
textColor
|
15
|
-
textSize
|
16
|
-
horizontalPadding
|
17
|
-
verticalPadding
|
18
|
-
buttonColor
|
19
|
-
buttonStroke
|
20
|
-
cornerRadius
|
21
|
-
hoverButtonColor
|
22
|
-
hoverStrokeColor
|
23
|
-
inactiveButtonColor
|
24
|
-
inactiveStrokeColor
|
25
|
-
inactiveTextColor
|
26
|
-
styles
|
27
|
-
colorTheme
|
28
|
-
href
|
29
|
-
type
|
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,
|
6
|
-
|
7
|
-
|
8
|
-
|
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>;
|