@zealicsolutions/web-ui 0.3.32 → 0.3.34
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/Input/Input.d.ts +17 -15
- package/dist/cjs/src/atoms/Input/Input.stories.d.ts +30 -1
- package/dist/cjs/src/atoms/Input/helpers.d.ts +30 -1
- 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 +27 -16
- package/dist/cjs/src/molecules/Button/Button.d.ts +25 -25
- package/dist/cjs/src/molecules/CheckboxField/CheckboxField.d.ts +5 -3
- package/dist/cjs/src/molecules/CheckboxField/CheckboxField.stories.d.ts +4 -2
- package/dist/cjs/src/molecules/Columns/styles.d.ts +8 -4
- package/dist/cjs/src/molecules/InputField/InputField.d.ts +9 -4
- package/dist/cjs/src/molecules/InputField/InputField.stories.d.ts +33 -3
- 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/RadioButtonField/RadioButtonField.d.ts +5 -3
- package/dist/cjs/src/molecules/RadioButtonField/RadioButtonField.stories.d.ts +2 -1
- package/dist/cjs/src/molecules/SelectField/SelectField.d.ts +3 -2
- package/dist/cjs/src/molecules/SelectField/SelectField.stories.d.ts +2 -1
- package/dist/cjs/src/molecules/index.d.ts +1 -0
- package/dist/cjs/src/organisms/FeedContent/styles.d.ts +1 -1
- 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/Input/Input.d.ts +17 -15
- package/dist/esm/src/atoms/Input/Input.stories.d.ts +30 -1
- package/dist/esm/src/atoms/Input/helpers.d.ts +30 -1
- 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 +27 -16
- package/dist/esm/src/molecules/Button/Button.d.ts +25 -25
- package/dist/esm/src/molecules/CheckboxField/CheckboxField.d.ts +5 -3
- package/dist/esm/src/molecules/CheckboxField/CheckboxField.stories.d.ts +4 -2
- package/dist/esm/src/molecules/Columns/styles.d.ts +8 -4
- package/dist/esm/src/molecules/InputField/InputField.d.ts +9 -4
- package/dist/esm/src/molecules/InputField/InputField.stories.d.ts +33 -3
- 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/RadioButtonField/RadioButtonField.d.ts +5 -3
- package/dist/esm/src/molecules/RadioButtonField/RadioButtonField.stories.d.ts +2 -1
- package/dist/esm/src/molecules/SelectField/SelectField.d.ts +3 -2
- package/dist/esm/src/molecules/SelectField/SelectField.stories.d.ts +2 -1
- package/dist/esm/src/molecules/index.d.ts +1 -0
- package/dist/esm/src/organisms/FeedContent/styles.d.ts +1 -1
- package/dist/index.d.ts +116 -80
- 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,4 +1,5 @@
|
|
1
1
|
import type { IconNames } from 'atoms/Icon/Icon';
|
2
|
+
import { FormStateType } from 'containers';
|
2
3
|
import { InputFieldTypes } from 'fieldsConfiguration/types';
|
3
4
|
import React from 'react';
|
4
5
|
import { ThemeColors } from 'theme/types';
|
@@ -18,20 +19,21 @@ export declare type InputIconProps = {
|
|
18
19
|
name: IconNames;
|
19
20
|
onClick?: Callback;
|
20
21
|
};
|
21
|
-
export declare type InputProps = {
|
22
|
-
value
|
23
|
-
leftIcon
|
24
|
-
rightIcon
|
25
|
-
onBlur
|
26
|
-
type
|
27
|
-
placeholder
|
28
|
-
disabled
|
29
|
-
isEditMode
|
30
|
-
isError
|
31
|
-
maxLength
|
32
|
-
onChange
|
33
|
-
onKeyDown
|
34
|
-
internalConfig
|
22
|
+
export declare type InputProps = Partial<{
|
23
|
+
value: string;
|
24
|
+
leftIcon: InputIconProps;
|
25
|
+
rightIcon: InputIconProps;
|
26
|
+
onBlur: Callback;
|
27
|
+
type: InputFieldTypes;
|
28
|
+
placeholder: string;
|
29
|
+
disabled: boolean;
|
30
|
+
isEditMode: boolean;
|
31
|
+
isError: boolean;
|
32
|
+
maxLength: number;
|
33
|
+
onChange: (value: string) => void;
|
34
|
+
onKeyDown: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
35
|
+
internalConfig: InputFieldInternalConfigProps;
|
35
36
|
config?: MaskConfig;
|
36
|
-
|
37
|
+
state: FormStateType;
|
38
|
+
}>;
|
37
39
|
export declare const Input: ({ value, leftIcon, rightIcon, onChange, onBlur, disabled, isError, placeholder, isEditMode, type, internalConfig, config, ...rest }: InputProps) => JSX.Element;
|
@@ -3,7 +3,36 @@ import type { StoryFn } from '@storybook/react';
|
|
3
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, internalConfig, config, ...rest }:
|
6
|
+
component: ({ value, leftIcon, rightIcon, onChange, onBlur, disabled, isError, placeholder, isEditMode, type, internalConfig, config, ...rest }: Partial<{
|
7
|
+
value: string;
|
8
|
+
leftIcon: import("./Input").InputIconProps;
|
9
|
+
rightIcon: import("./Input").InputIconProps;
|
10
|
+
onBlur: import("../../typescript").Callback;
|
11
|
+
type: import("../..").InputFieldTypes;
|
12
|
+
placeholder: string;
|
13
|
+
disabled: boolean;
|
14
|
+
isEditMode: boolean;
|
15
|
+
isError: boolean;
|
16
|
+
maxLength: number;
|
17
|
+
onChange: (value: string) => void;
|
18
|
+
onKeyDown: (event: import("react").KeyboardEvent<HTMLInputElement>) => void;
|
19
|
+
internalConfig: Partial<{
|
20
|
+
textColor: string;
|
21
|
+
textFontSize: number;
|
22
|
+
placeholderTextColor: string;
|
23
|
+
placeholderTextFontSize: number;
|
24
|
+
verticalPadding: number;
|
25
|
+
horizontalPadding: number;
|
26
|
+
styles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
27
|
+
wrapperStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
28
|
+
}>;
|
29
|
+
config?: Partial<{
|
30
|
+
maskPlaceholder: string;
|
31
|
+
dataModelFieldType: import("../..").InputFieldTypes;
|
32
|
+
maskPattern: (string | RegExp)[];
|
33
|
+
}> | undefined;
|
34
|
+
state: import("../..").FormStateType;
|
35
|
+
}>) => JSX.Element;
|
7
36
|
};
|
8
37
|
export default _default;
|
9
38
|
export declare const Input: StoryFn<InputProps>;
|
@@ -13,6 +13,35 @@ export declare const getSpecificInputProps: (type: InputFieldTypes) => {
|
|
13
13
|
inputMode?: "text" | "none" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
14
14
|
};
|
15
15
|
export declare const getMaskInputProps: (type?: InputFieldTypes, config?: MaskConfig) => Pick<MaskedInputProps, 'pipe' | 'mask' | 'placeholder' | 'keepCharPositions'>;
|
16
|
-
export declare const getInputIconColor: ({ isEditMode, isFocused, isError, disabled, }: Pick<
|
16
|
+
export declare const getInputIconColor: ({ isEditMode, isFocused, isError, disabled, }: Pick<Partial<{
|
17
|
+
value: string;
|
18
|
+
leftIcon: import("atoms").InputIconProps;
|
19
|
+
rightIcon: import("atoms").InputIconProps;
|
20
|
+
onBlur: import("../../typescript").Callback;
|
21
|
+
type: InputFieldTypes;
|
22
|
+
placeholder: string;
|
23
|
+
disabled: boolean;
|
24
|
+
isEditMode: boolean;
|
25
|
+
isError: boolean;
|
26
|
+
maxLength: number;
|
27
|
+
onChange: (value: string) => void;
|
28
|
+
onKeyDown: (event: import("react").KeyboardEvent<HTMLInputElement>) => void;
|
29
|
+
internalConfig: Partial<{
|
30
|
+
textColor: string;
|
31
|
+
textFontSize: number;
|
32
|
+
placeholderTextColor: string;
|
33
|
+
placeholderTextFontSize: number;
|
34
|
+
verticalPadding: number;
|
35
|
+
horizontalPadding: number;
|
36
|
+
styles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
37
|
+
wrapperStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
38
|
+
}>;
|
39
|
+
config?: Partial<{
|
40
|
+
maskPlaceholder: string;
|
41
|
+
dataModelFieldType: InputFieldTypes;
|
42
|
+
maskPattern: Array<string | RegExp>;
|
43
|
+
}> | undefined;
|
44
|
+
state: import("../..").FormStateType;
|
45
|
+
}>, "disabled" | "isError" | "isEditMode"> & {
|
17
46
|
isFocused: boolean;
|
18
47
|
}) => ThemeColors;
|
@@ -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';
|
@@ -27,6 +27,7 @@ declare type Action = {
|
|
27
27
|
reset: ResetAction;
|
28
28
|
destroy: DestroyAction;
|
29
29
|
}>;
|
30
|
+
export declare type FormStateType = 'default' | 'success' | 'format_error' | 'field_error' | 'open_dropdown';
|
30
31
|
export declare type ImageAttributes = {
|
31
32
|
attributeType: 'image';
|
32
33
|
imageSource: string;
|
@@ -81,7 +82,11 @@ export interface ConditionConfigAttributes {
|
|
81
82
|
attributeType: 'condition_config';
|
82
83
|
conditionConfig: ConditionConfig;
|
83
84
|
}
|
84
|
-
export
|
85
|
+
export interface ColorAttributes {
|
86
|
+
attributeType: 'color';
|
87
|
+
color: string;
|
88
|
+
}
|
89
|
+
export declare type MoleculeTypes = 'image' | 'text' | 'button' | 'video' | 'header_tab_group' | 'input_field' | 'select_field' | 'radio_button_field' | 'checkbox_field' | 'consent' | 'link';
|
85
90
|
export interface BaseMolecule {
|
86
91
|
id: string;
|
87
92
|
instance: 'molecule';
|
@@ -105,6 +110,7 @@ export interface TextMoleculeType extends BaseMolecule {
|
|
105
110
|
text: TextAttributes;
|
106
111
|
seoStyle: SelectAttributes;
|
107
112
|
fontVariant: SelectAttributes;
|
113
|
+
textColor: ColorAttributes;
|
108
114
|
}>;
|
109
115
|
config: {
|
110
116
|
props?: TextMoleculeProps;
|
@@ -154,9 +160,7 @@ export interface TextInputMolecule extends BaseMolecule {
|
|
154
160
|
conditionConfig: ConditionConfigAttributes;
|
155
161
|
}>;
|
156
162
|
config: {
|
157
|
-
props
|
158
|
-
state: 'default' | 'error';
|
159
|
-
} & InputFieldProps>;
|
163
|
+
props: InputFieldProps;
|
160
164
|
};
|
161
165
|
}
|
162
166
|
export interface SelectFieldMolecule extends BaseMolecule {
|
@@ -169,9 +173,7 @@ export interface SelectFieldMolecule extends BaseMolecule {
|
|
169
173
|
conditionConfig: ConditionConfigAttributes;
|
170
174
|
}>;
|
171
175
|
config: {
|
172
|
-
props
|
173
|
-
state: 'default' | 'error';
|
174
|
-
} & SelectFieldProps>;
|
176
|
+
props: SelectFieldProps;
|
175
177
|
};
|
176
178
|
}
|
177
179
|
export interface RadioButtonFieldMolecule extends BaseMolecule {
|
@@ -184,9 +186,7 @@ export interface RadioButtonFieldMolecule extends BaseMolecule {
|
|
184
186
|
conditionConfig: ConditionConfigAttributes;
|
185
187
|
}>;
|
186
188
|
config: {
|
187
|
-
props
|
188
|
-
state: 'default' | 'error';
|
189
|
-
} & RadioButtonFieldProps<string>>;
|
189
|
+
props: RadioButtonFieldProps<string>;
|
190
190
|
};
|
191
191
|
}
|
192
192
|
export interface CheckboxFieldMolecule extends BaseMolecule {
|
@@ -199,9 +199,7 @@ export interface CheckboxFieldMolecule extends BaseMolecule {
|
|
199
199
|
conditionConfig: ConditionConfigAttributes;
|
200
200
|
}>;
|
201
201
|
config: {
|
202
|
-
props
|
203
|
-
state: 'default' | 'error';
|
204
|
-
} & CheckboxFieldProps>;
|
202
|
+
props: CheckboxFieldProps;
|
205
203
|
};
|
206
204
|
}
|
207
205
|
export interface ConsentFieldMolecule extends BaseMolecule {
|
@@ -214,7 +212,20 @@ export interface ConsentFieldMolecule extends BaseMolecule {
|
|
214
212
|
}>;
|
215
213
|
}>;
|
216
214
|
}
|
217
|
-
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> & {
|
218
229
|
form?: UseFormReturn<any>;
|
219
230
|
};
|
220
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;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { SelectOption } from 'atoms';
|
3
3
|
import { CheckboxInternalConfigProps } from 'atoms/Checkbox/types';
|
4
|
-
import { ConditionConfig } from 'containers';
|
4
|
+
import { ConditionConfig, FormStateType } from 'containers';
|
5
5
|
import { Control, ControllerProps } from 'react-hook-form/dist/types';
|
6
6
|
import type { StylesType } from 'typescript';
|
7
7
|
import { FieldLabelsProps } from '../FieldLabels/FieldLabels';
|
@@ -26,6 +26,8 @@ export declare type CheckboxFieldProps = Partial<{
|
|
26
26
|
required: boolean;
|
27
27
|
optional: boolean;
|
28
28
|
wrapperStyles: StylesType;
|
29
|
-
conditionConfig
|
29
|
+
conditionConfig: ConditionConfig;
|
30
|
+
state: FormStateType;
|
31
|
+
defaultValue: string;
|
30
32
|
}>;
|
31
|
-
export declare const CheckboxField: ({ checkboxesProps, name, rules, control, optional, required, labelsProps, wrapperStyles, conditionConfig, }: CheckboxFieldProps) => JSX.Element | null;
|
33
|
+
export declare const CheckboxField: ({ checkboxesProps, name, rules, control, optional, required, labelsProps, wrapperStyles, conditionConfig, defaultValue, }: CheckboxFieldProps) => JSX.Element | null;
|
@@ -3,7 +3,7 @@ import type { StoryFn } from '@storybook/react';
|
|
3
3
|
import { CheckboxField as CheckboxFieldComponent } from 'molecules';
|
4
4
|
declare const _default: {
|
5
5
|
title: string;
|
6
|
-
component: ({ checkboxesProps, name, rules, control, optional, required, labelsProps, wrapperStyles, conditionConfig, }: Partial<{
|
6
|
+
component: ({ checkboxesProps, name, rules, control, optional, required, labelsProps, wrapperStyles, conditionConfig, defaultValue, }: Partial<{
|
7
7
|
checkboxesProps: Partial<{
|
8
8
|
checkboxGroupWrapperStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
9
9
|
checkboxFieldWrapperStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
@@ -48,7 +48,9 @@ declare const _default: {
|
|
48
48
|
required: boolean;
|
49
49
|
optional: boolean;
|
50
50
|
wrapperStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
51
|
-
conditionConfig
|
51
|
+
conditionConfig: import("../..").ConditionConfig;
|
52
|
+
state: import("../..").FormStateType;
|
53
|
+
defaultValue: string;
|
52
54
|
}>) => JSX.Element | null;
|
53
55
|
};
|
54
56
|
export default _default;
|
@@ -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>;
|
@@ -1,9 +1,10 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { Control, ControllerProps } from 'react-hook-form/dist/types';
|
3
2
|
import { InputProps } from 'atoms';
|
3
|
+
import { ConditionConfig, FormStateType } from 'containers';
|
4
|
+
import { InputFieldTypes } from 'fieldsConfiguration';
|
5
|
+
import { Control, ControllerProps } from 'react-hook-form/dist/types';
|
4
6
|
import type { StylesType } from 'typescript';
|
5
7
|
import { FieldLabelsProps } from '../FieldLabels/FieldLabels';
|
6
|
-
import { ConditionConfig } from 'containers';
|
7
8
|
export declare type InputFieldProps = Partial<{
|
8
9
|
name: string;
|
9
10
|
control: Control<any>;
|
@@ -14,6 +15,10 @@ export declare type InputFieldProps = Partial<{
|
|
14
15
|
inputProps: InputProps;
|
15
16
|
styles: StylesType;
|
16
17
|
labelsProps: FieldLabelsProps;
|
17
|
-
conditionConfig
|
18
|
+
conditionConfig: ConditionConfig;
|
19
|
+
state: FormStateType;
|
18
20
|
}>;
|
19
|
-
|
21
|
+
declare type ReturnValueType = Record<FormStateType, string>;
|
22
|
+
export declare const getMockValueForSuccessAndFormatError: (type: InputFieldTypes) => ReturnValueType;
|
23
|
+
export declare const InputField: ({ control, name, inputProps, styles, labelsProps, defaultValue, optional, required, rules, conditionConfig, state, }: InputFieldProps) => JSX.Element | null;
|
24
|
+
export {};
|
@@ -3,7 +3,7 @@ import { StoryFn } from '@storybook/react';
|
|
3
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, conditionConfig, }: Partial<{
|
6
|
+
component: ({ control, name, inputProps, styles, labelsProps, defaultValue, optional, required, rules, conditionConfig, state, }: Partial<{
|
7
7
|
name: string;
|
8
8
|
control: import("react-hook-form").Control<any, any>;
|
9
9
|
rules: Omit<Partial<{
|
@@ -27,10 +27,40 @@ declare const _default: {
|
|
27
27
|
required: boolean;
|
28
28
|
optional: boolean;
|
29
29
|
defaultValue: string;
|
30
|
-
inputProps:
|
30
|
+
inputProps: Partial<{
|
31
|
+
value: string;
|
32
|
+
leftIcon: import("../..").InputIconProps;
|
33
|
+
rightIcon: import("../..").InputIconProps;
|
34
|
+
onBlur: import("typescript").Callback;
|
35
|
+
type: import("fieldsConfiguration").InputFieldTypes;
|
36
|
+
placeholder: string;
|
37
|
+
disabled: boolean;
|
38
|
+
isEditMode: boolean;
|
39
|
+
isError: boolean;
|
40
|
+
maxLength: number;
|
41
|
+
onChange: (value: string) => void;
|
42
|
+
onKeyDown: (event: import("react").KeyboardEvent<HTMLInputElement>) => void;
|
43
|
+
internalConfig: Partial<{
|
44
|
+
textColor: string;
|
45
|
+
textFontSize: number;
|
46
|
+
placeholderTextColor: string;
|
47
|
+
placeholderTextFontSize: number;
|
48
|
+
verticalPadding: number;
|
49
|
+
horizontalPadding: number;
|
50
|
+
styles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
51
|
+
wrapperStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
52
|
+
}>;
|
53
|
+
config?: Partial<{
|
54
|
+
maskPlaceholder: string;
|
55
|
+
dataModelFieldType: import("fieldsConfiguration").InputFieldTypes;
|
56
|
+
maskPattern: (string | RegExp)[];
|
57
|
+
}> | undefined;
|
58
|
+
state: import("../..").FormStateType;
|
59
|
+
}>;
|
31
60
|
styles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
32
61
|
labelsProps: import("..").FieldLabelsProps;
|
33
|
-
conditionConfig
|
62
|
+
conditionConfig: import("../..").ConditionConfig;
|
63
|
+
state: import("../..").FormStateType;
|
34
64
|
}>) => JSX.Element | null;
|
35
65
|
};
|
36
66
|
export default _default;
|
@@ -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>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { RadioButtonInternalConfigProps, RadioButtonsProps } from 'atoms';
|
3
|
-
import { ConditionConfig } from 'containers';
|
3
|
+
import { ConditionConfig, FormStateType } from 'containers';
|
4
4
|
import { Control, ControllerProps } from 'react-hook-form/dist/types';
|
5
5
|
import type { StylesType } from 'typescript';
|
6
6
|
import { FieldLabelsProps } from '../FieldLabels/FieldLabels';
|
@@ -15,7 +15,8 @@ export declare type RadioButtonFieldProps<T extends string> = Partial<{
|
|
15
15
|
defaultValue: string;
|
16
16
|
radioButtonsProps: RadioButtonsProps<T>;
|
17
17
|
internalConfig: RadioButtonInternalConfigProps;
|
18
|
-
conditionConfig
|
18
|
+
conditionConfig: ConditionConfig;
|
19
|
+
state: FormStateType;
|
19
20
|
}>;
|
20
21
|
export declare const RadioButtonField: <T extends string>({ name, rules, styles, control, optional, required, labelsProps, defaultValue, radioButtonsProps, conditionConfig, }: Partial<{
|
21
22
|
name: string;
|
@@ -59,5 +60,6 @@ export declare const RadioButtonField: <T extends string>({ name, rules, styles,
|
|
59
60
|
buttonOptionSpacing: import("../..").SizesTypes;
|
60
61
|
radioGroupWrapperStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
61
62
|
}>;
|
62
|
-
conditionConfig
|
63
|
+
conditionConfig: ConditionConfig;
|
64
|
+
state: FormStateType;
|
63
65
|
}>) => JSX.Element | null;
|
@@ -62,7 +62,8 @@ declare const _default: {
|
|
62
62
|
buttonOptionSpacing: import("theme").SizesTypes;
|
63
63
|
radioGroupWrapperStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
64
64
|
}>;
|
65
|
-
conditionConfig
|
65
|
+
conditionConfig: import("../..").ConditionConfig;
|
66
|
+
state: import("../..").FormStateType;
|
66
67
|
}>) => JSX.Element | null;
|
67
68
|
};
|
68
69
|
export default _default;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { SelectProps } from 'atoms';
|
3
|
-
import { ConditionConfig } from 'containers';
|
3
|
+
import { ConditionConfig, FormStateType } from 'containers';
|
4
4
|
import { Control, ControllerProps } from 'react-hook-form/dist/types';
|
5
5
|
import type { StylesType } from 'typescript';
|
6
6
|
import { FieldLabelsProps } from '../FieldLabels/FieldLabels';
|
@@ -14,6 +14,7 @@ export declare type SelectFieldProps = Partial<{
|
|
14
14
|
optional: boolean;
|
15
15
|
defaultValue: string;
|
16
16
|
styles: StylesType;
|
17
|
-
conditionConfig
|
17
|
+
conditionConfig: ConditionConfig;
|
18
|
+
state: FormStateType;
|
18
19
|
}>;
|
19
20
|
export declare const SelectField: ({ selectProps, name, defaultValue, optional, required, control, styles, labelsProps, rules, conditionConfig, }: SelectFieldProps) => JSX.Element | null;
|
@@ -43,7 +43,8 @@ declare const _default: {
|
|
43
43
|
optional: boolean;
|
44
44
|
defaultValue: string;
|
45
45
|
styles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
46
|
-
conditionConfig
|
46
|
+
conditionConfig: import("../..").ConditionConfig;
|
47
|
+
state: import("../..").FormStateType;
|
47
48
|
}>) => JSX.Element | null;
|
48
49
|
};
|
49
50
|
export default _default;
|
@@ -15,5 +15,5 @@ export declare const CloseButton: import("styled-components").StyledComponent<"d
|
|
15
15
|
disabled?: boolean | undefined;
|
16
16
|
} & {
|
17
17
|
children?: import("react").ReactNode;
|
18
|
-
} & Pick<FeedContentProps, "
|
18
|
+
} & Pick<FeedContentProps, "withCloseIcon" | "feedContentTemplate">, never>;
|
19
19
|
export declare const PdfWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, Pick<FeedContentProps, "showDefaultDocumentStyles">, never>;
|