@zealicsolutions/web-ui 0.2.97 → 0.2.99
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 +5 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/atoms/Checkbox/Checkbox.d.ts +15 -9
- package/dist/cjs/src/atoms/Checkbox/Checkbox.stories.d.ts +1 -1
- package/dist/cjs/src/atoms/Checkbox/helpers.d.ts +2 -0
- package/dist/cjs/src/atoms/Checkbox/types.d.ts +18 -0
- package/dist/cjs/src/atoms/TextWrapper/TextWrapper.d.ts +4 -1
- package/dist/cjs/src/containers/types/moleculeTypes.d.ts +18 -5
- package/dist/cjs/src/molecules/CheckboxField/CheckboxField.d.ts +27 -8
- package/dist/cjs/src/molecules/CheckboxField/CheckboxField.stories.d.ts +37 -0
- package/dist/cjs/src/molecules/CheckboxField/CheckboxGroup.d.ts +7 -0
- package/dist/cjs/src/molecules/CheckboxField/styles.d.ts +6 -0
- package/dist/cjs/src/molecules/InputField/InputField.d.ts +1 -1
- package/dist/cjs/src/molecules/InputField/InputField.stories.d.ts +1 -18
- package/dist/cjs/src/molecules/RadioButtonField/RadioButtonField.stories.d.ts +1 -18
- package/dist/cjs/src/molecules/SelectField/SelectField.d.ts +2 -2
- package/dist/cjs/src/molecules/SelectField/SelectField.stories.d.ts +1 -18
- package/dist/cjs/src/molecules/index.d.ts +1 -0
- package/dist/esm/index.js +6 -6
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/atoms/Checkbox/Checkbox.d.ts +15 -9
- package/dist/esm/src/atoms/Checkbox/Checkbox.stories.d.ts +1 -1
- package/dist/esm/src/atoms/Checkbox/helpers.d.ts +2 -0
- package/dist/esm/src/atoms/Checkbox/types.d.ts +18 -0
- package/dist/esm/src/atoms/TextWrapper/TextWrapper.d.ts +4 -1
- package/dist/esm/src/containers/types/moleculeTypes.d.ts +18 -5
- package/dist/esm/src/molecules/CheckboxField/CheckboxField.d.ts +27 -8
- package/dist/esm/src/molecules/CheckboxField/CheckboxField.stories.d.ts +37 -0
- package/dist/esm/src/molecules/CheckboxField/CheckboxGroup.d.ts +7 -0
- package/dist/esm/src/molecules/CheckboxField/styles.d.ts +6 -0
- package/dist/esm/src/molecules/InputField/InputField.d.ts +1 -1
- package/dist/esm/src/molecules/InputField/InputField.stories.d.ts +1 -18
- package/dist/esm/src/molecules/RadioButtonField/RadioButtonField.stories.d.ts +1 -18
- package/dist/esm/src/molecules/SelectField/SelectField.d.ts +2 -2
- package/dist/esm/src/molecules/SelectField/SelectField.stories.d.ts +1 -18
- package/dist/esm/src/molecules/index.d.ts +1 -0
- package/dist/index.d.ts +75 -21
- package/package.json +1 -1
@@ -1,9 +1,15 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { CheckboxInternalConfigProps } from './types';
|
3
|
+
export declare type CheckboxProps = {
|
4
|
+
id: string;
|
5
|
+
onClick: (id: string) => void;
|
6
|
+
label: string;
|
7
|
+
} & Partial<{
|
8
|
+
isError: boolean;
|
9
|
+
disabled: boolean;
|
10
|
+
isEditMode: boolean;
|
11
|
+
isSelected: boolean;
|
12
|
+
isRichText: boolean;
|
13
|
+
internalConfig: CheckboxInternalConfigProps;
|
14
|
+
}>;
|
15
|
+
export declare const Checkbox: ({ id, onClick, label, isError, disabled, isEditMode, isSelected, isRichText, internalConfig, }: CheckboxProps) => JSX.Element;
|
@@ -3,7 +3,7 @@ import type { ComponentStory } from '@storybook/react';
|
|
3
3
|
import { Checkbox as CheckboxComponent } from './Checkbox';
|
4
4
|
declare const _default: {
|
5
5
|
title: string;
|
6
|
-
component: ({
|
6
|
+
component: ({ id, onClick, label, isError, disabled, isEditMode, isSelected, isRichText, internalConfig, }: import("./Checkbox").CheckboxProps) => JSX.Element;
|
7
7
|
};
|
8
8
|
export default _default;
|
9
9
|
export declare const Checkbox: ComponentStory<typeof CheckboxComponent>;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { SizesTypes, ThemeColors } from 'theme';
|
2
|
+
import type { StylesType } from 'typescript';
|
3
|
+
export declare type CheckboxInternalConfigProps = Partial<{
|
4
|
+
selectedCheckboxBackgroundColor: ThemeColors | string;
|
5
|
+
selectedCheckboxIconColor: ThemeColors | string;
|
6
|
+
buttonPadding: number;
|
7
|
+
textPadding: number;
|
8
|
+
styles: StylesType;
|
9
|
+
wrapperStyles: StylesType;
|
10
|
+
buttonOptionSpacing?: SizesTypes;
|
11
|
+
}>;
|
12
|
+
export declare type CheckboxStylesConfig = {
|
13
|
+
checkboxIconWrapperColor: StylesType;
|
14
|
+
checkboxIconColor: ThemeColors | string;
|
15
|
+
checkboxWrapperStyles: StylesType;
|
16
|
+
checkboxTextStyles: StylesType;
|
17
|
+
};
|
18
|
+
export declare type CheckBoxStates = 'selected' | 'disabled' | 'error' | 'default';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
2
2
|
import { FontSizesTypes, ThemeColors } from 'theme/types';
|
3
|
-
import { StylesType } from 'typescript';
|
3
|
+
import type { StylesType } from 'typescript';
|
4
4
|
export declare type TextTypes = 'primary' | 'secondary' | 'error' | 'success';
|
5
5
|
export declare type TextAlign = 'center' | 'right' | 'left';
|
6
6
|
export declare type SeoTags = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';
|
@@ -17,3 +17,6 @@ export declare type TextProps = {
|
|
17
17
|
};
|
18
18
|
export declare type TextWrapperProps = PropsWithChildren<TextProps>;
|
19
19
|
export declare const TextWrapper: ({ children, seoTag, ...textProps }: TextWrapperProps) => JSX.Element;
|
20
|
+
export declare const ErrorText: ({ text }: {
|
21
|
+
text: string;
|
22
|
+
}) => JSX.Element;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
import { ButtonProps, ImageProps, InputFieldProps, RadioButtonFieldProps, SelectFieldProps, TabGroupProps, TextMoleculeProps } from 'molecules';
|
1
|
+
import { SelectOption } from 'atoms';
|
2
|
+
import { ButtonProps, CheckboxFieldProps, ImageProps, InputFieldProps, RadioButtonFieldProps, SelectFieldProps, TabGroupProps, TextMoleculeProps } from 'molecules';
|
3
3
|
import { UseFormReturn } from 'react-hook-form';
|
4
4
|
import { CSSProperties } from 'styled-components';
|
5
5
|
import type { Nullable, StrictUnion } from 'typescript';
|
@@ -35,9 +35,9 @@ export interface BooleanAttributes {
|
|
35
35
|
}
|
36
36
|
export interface IterableAttributes {
|
37
37
|
attributeType: 'iterable';
|
38
|
-
options: SelectOption
|
38
|
+
options: SelectOption[];
|
39
39
|
}
|
40
|
-
export declare type MoleculeTypes = 'image' | 'text' | 'button' | 'video' | 'header_tab_group' | 'input_field' | 'select_field' | 'radio_button_field';
|
40
|
+
export declare type MoleculeTypes = 'image' | 'text' | 'button' | 'video' | 'header_tab_group' | 'input_field' | 'select_field' | 'radio_button_field' | 'checkbox_field';
|
41
41
|
export interface BaseMolecule {
|
42
42
|
id: string;
|
43
43
|
instance: 'molecule';
|
@@ -143,6 +143,19 @@ export interface RadioButtonFieldMolecule extends BaseMolecule {
|
|
143
143
|
} & RadioButtonFieldProps<string>>;
|
144
144
|
};
|
145
145
|
}
|
146
|
-
export
|
146
|
+
export interface CheckboxFieldMolecule extends BaseMolecule {
|
147
|
+
type: 'checkbox_field';
|
148
|
+
attributes: {
|
149
|
+
label: TextAttributes;
|
150
|
+
required: BooleanAttributes;
|
151
|
+
options: IterableAttributes;
|
152
|
+
};
|
153
|
+
config: {
|
154
|
+
props: Partial<{
|
155
|
+
state: 'default' | 'error';
|
156
|
+
} & CheckboxFieldProps>;
|
157
|
+
};
|
158
|
+
}
|
159
|
+
export declare type Molecule = StrictUnion<ImageMolecule | TextMoleculeType | ButtonMolecule | VideoMolecule | TabGroupMolecule | TextInputMolecule | SelectFieldMolecule | RadioButtonFieldMolecule | CheckboxFieldMolecule> & {
|
147
160
|
form?: UseFormReturn<any>;
|
148
161
|
};
|
@@ -1,10 +1,29 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { Control } from 'react-hook-form/dist/types';
|
3
|
-
import {
|
4
|
-
|
2
|
+
import { Control, ControllerProps } from 'react-hook-form/dist/types';
|
3
|
+
import { SelectOption } from 'atoms';
|
4
|
+
import type { StylesType } from 'typescript';
|
5
|
+
import { CheckboxInternalConfigProps } from 'atoms/Checkbox/types';
|
6
|
+
import { FieldLabelsProps } from '../FieldLabels/FieldLabels';
|
7
|
+
export declare type CheckboxesProps = Partial<{
|
8
|
+
checkboxGroupWrapperStyles: StylesType;
|
9
|
+
checkboxFieldWrapperStyles: StylesType;
|
10
|
+
onChange: (id: string) => void;
|
11
|
+
disabled: boolean;
|
12
|
+
options?: SelectOption[];
|
13
|
+
selectedIds?: string[];
|
14
|
+
isError?: boolean;
|
15
|
+
isEditMode?: boolean;
|
16
|
+
isRichText: boolean;
|
17
|
+
internalConfig: CheckboxInternalConfigProps;
|
18
|
+
}>;
|
19
|
+
export declare type CheckboxFieldProps = Partial<{
|
20
|
+
checkboxesProps: CheckboxesProps;
|
21
|
+
labelsProps: FieldLabelsProps;
|
5
22
|
name: string;
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
23
|
+
rules: ControllerProps['rules'];
|
24
|
+
control: Control<any>;
|
25
|
+
required: boolean;
|
26
|
+
optional: boolean;
|
27
|
+
wrapperStyles: StylesType;
|
28
|
+
}>;
|
29
|
+
export declare const CheckboxField: ({ checkboxesProps, name, rules, control, optional, required, labelsProps, wrapperStyles, }: CheckboxFieldProps) => JSX.Element;
|
@@ -0,0 +1,37 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { StoryFn } from '@storybook/react';
|
3
|
+
import { CheckboxField as CheckboxFieldComponent } from 'molecules';
|
4
|
+
declare const _default: {
|
5
|
+
title: string;
|
6
|
+
component: ({ checkboxesProps, name, rules, control, optional, required, labelsProps, wrapperStyles, }: Partial<{
|
7
|
+
checkboxesProps: Partial<{
|
8
|
+
checkboxGroupWrapperStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
9
|
+
checkboxFieldWrapperStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
10
|
+
onChange: (id: string) => void;
|
11
|
+
disabled: boolean;
|
12
|
+
options?: import("../..").SelectOption[] | undefined;
|
13
|
+
selectedIds?: string[] | undefined;
|
14
|
+
isError?: boolean | undefined;
|
15
|
+
isEditMode?: boolean | undefined;
|
16
|
+
isRichText: boolean;
|
17
|
+
internalConfig: Partial<{
|
18
|
+
selectedCheckboxBackgroundColor: string;
|
19
|
+
selectedCheckboxIconColor: string;
|
20
|
+
buttonPadding: number;
|
21
|
+
textPadding: number;
|
22
|
+
styles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
23
|
+
wrapperStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
24
|
+
buttonOptionSpacing?: import("theme").SizesTypes | undefined;
|
25
|
+
}>;
|
26
|
+
}>;
|
27
|
+
labelsProps: import("molecules").FieldLabelsProps;
|
28
|
+
name: string;
|
29
|
+
rules: Omit<import("react-hook-form").RegisterOptions<import("react-hook-form").FieldValues, string>, "disabled" | "valueAsNumber" | "valueAsDate" | "setValueAs"> | undefined;
|
30
|
+
control: import("react-hook-form").Control<any, any>;
|
31
|
+
required: boolean;
|
32
|
+
optional: boolean;
|
33
|
+
wrapperStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
34
|
+
}>) => JSX.Element;
|
35
|
+
};
|
36
|
+
export default _default;
|
37
|
+
export declare const CheckboxField: StoryFn<typeof CheckboxFieldComponent>;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { CheckboxesProps } from './CheckboxField';
|
3
|
+
export declare type CheckboxGroupProps = Partial<{
|
4
|
+
onChange: (checkedIds: string[]) => void;
|
5
|
+
checkboxesProps: CheckboxesProps;
|
6
|
+
}>;
|
7
|
+
export declare const CheckboxGroup: ({ onChange, checkboxesProps }: CheckboxGroupProps) => JSX.Element;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import type { OverrideStyles } from 'typescript';
|
2
|
+
import { SizesTypes } from 'theme';
|
3
|
+
export declare const CheckboxFieldWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, OverrideStyles, never>;
|
4
|
+
export declare const CheckboxGroupWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
5
|
+
$spacing?: SizesTypes | undefined;
|
6
|
+
} & OverrideStyles, never>;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { Control, ControllerProps } from 'react-hook-form/dist/types';
|
3
3
|
import { InputProps } from 'atoms';
|
4
|
-
import { StylesType } from 'typescript';
|
4
|
+
import type { StylesType } from 'typescript';
|
5
5
|
import { FieldLabelsProps } from '../FieldLabels/FieldLabels';
|
6
6
|
export declare type InputFieldProps = Partial<{
|
7
7
|
name: string;
|
@@ -6,24 +6,7 @@ declare const _default: {
|
|
6
6
|
component: ({ control, name, inputProps, styles, labelsProps, defaultValue, optional, required, rules, }: Partial<{
|
7
7
|
name: string;
|
8
8
|
control: import("react-hook-form").Control<any, any>;
|
9
|
-
rules: Omit<
|
10
|
-
required: string | import("react-hook-form").ValidationRule<boolean>;
|
11
|
-
min: import("react-hook-form").ValidationRule<string | number>;
|
12
|
-
max: import("react-hook-form").ValidationRule<string | number>;
|
13
|
-
maxLength: import("react-hook-form").ValidationRule<number>;
|
14
|
-
minLength: import("react-hook-form").ValidationRule<number>;
|
15
|
-
pattern: import("react-hook-form").ValidationRule<RegExp>;
|
16
|
-
validate: import("react-hook-form").Validate<any> | Record<string, import("react-hook-form").Validate<any>>;
|
17
|
-
valueAsNumber: boolean;
|
18
|
-
valueAsDate: boolean;
|
19
|
-
value: any;
|
20
|
-
setValueAs: (value: any) => any;
|
21
|
-
shouldUnregister?: boolean | undefined;
|
22
|
-
onChange?: ((event: any) => void) | undefined;
|
23
|
-
onBlur?: ((event: any) => void) | undefined;
|
24
|
-
disabled: boolean;
|
25
|
-
deps: string | string[];
|
26
|
-
}>, "disabled" | "valueAsNumber" | "valueAsDate" | "setValueAs"> | undefined;
|
9
|
+
rules: Omit<import("react-hook-form").RegisterOptions<import("react-hook-form").FieldValues, string>, "disabled" | "valueAsNumber" | "valueAsDate" | "setValueAs"> | undefined;
|
27
10
|
required: boolean;
|
28
11
|
optional: boolean;
|
29
12
|
defaultValue: string;
|
@@ -6,24 +6,7 @@ declare const _default: {
|
|
6
6
|
component: <T extends string>({ control, name, radioButtonsProps, styles, labelsProps, defaultValue, optional, required, rules, }: Partial<{
|
7
7
|
name: string;
|
8
8
|
control: import("react-hook-form").Control<any, any>;
|
9
|
-
rules: Omit<
|
10
|
-
required: string | import("react-hook-form").ValidationRule<boolean>;
|
11
|
-
min: import("react-hook-form").ValidationRule<string | number>;
|
12
|
-
max: import("react-hook-form").ValidationRule<string | number>;
|
13
|
-
maxLength: import("react-hook-form").ValidationRule<number>;
|
14
|
-
minLength: import("react-hook-form").ValidationRule<number>;
|
15
|
-
pattern: import("react-hook-form").ValidationRule<RegExp>;
|
16
|
-
validate: import("react-hook-form").Validate<any> | Record<string, import("react-hook-form").Validate<any>>;
|
17
|
-
valueAsNumber: boolean;
|
18
|
-
valueAsDate: boolean;
|
19
|
-
value: any;
|
20
|
-
setValueAs: (value: any) => any;
|
21
|
-
shouldUnregister?: boolean | undefined;
|
22
|
-
onChange?: ((event: any) => void) | undefined;
|
23
|
-
onBlur?: ((event: any) => void) | undefined;
|
24
|
-
disabled: boolean;
|
25
|
-
deps: string | string[];
|
26
|
-
}>, "disabled" | "valueAsNumber" | "valueAsDate" | "setValueAs"> | undefined;
|
9
|
+
rules: Omit<import("react-hook-form").RegisterOptions<import("react-hook-form").FieldValues, string>, "disabled" | "valueAsNumber" | "valueAsDate" | "setValueAs"> | undefined;
|
27
10
|
required: boolean;
|
28
11
|
optional: boolean;
|
29
12
|
defaultValue: string;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
+
import { SelectProps } from 'atoms';
|
2
3
|
import { Control, ControllerProps } from 'react-hook-form/dist/types';
|
3
|
-
import {
|
4
|
+
import type { StylesType } from 'typescript';
|
4
5
|
import { FieldLabelsProps } from '../FieldLabels/FieldLabels';
|
5
|
-
import { StylesType } from 'typescript';
|
6
6
|
export declare type SelectFieldProps = Partial<{
|
7
7
|
selectProps: SelectProps;
|
8
8
|
labelsProps: FieldLabelsProps;
|
@@ -7,24 +7,7 @@ declare const _default: {
|
|
7
7
|
selectProps: import("../..").SelectProps;
|
8
8
|
labelsProps: import("..").FieldLabelsProps;
|
9
9
|
name: string;
|
10
|
-
rules: Omit<
|
11
|
-
required: string | import("react-hook-form").ValidationRule<boolean>;
|
12
|
-
min: import("react-hook-form").ValidationRule<string | number>;
|
13
|
-
max: import("react-hook-form").ValidationRule<string | number>;
|
14
|
-
maxLength: import("react-hook-form").ValidationRule<number>;
|
15
|
-
minLength: import("react-hook-form").ValidationRule<number>;
|
16
|
-
pattern: import("react-hook-form").ValidationRule<RegExp>;
|
17
|
-
validate: import("react-hook-form").Validate<any> | Record<string, import("react-hook-form").Validate<any>>;
|
18
|
-
valueAsNumber: boolean;
|
19
|
-
valueAsDate: boolean;
|
20
|
-
value: any;
|
21
|
-
setValueAs: (value: any) => any;
|
22
|
-
shouldUnregister?: boolean | undefined;
|
23
|
-
onChange?: ((event: any) => void) | undefined;
|
24
|
-
onBlur?: ((event: any) => void) | undefined;
|
25
|
-
disabled: boolean;
|
26
|
-
deps: string | string[];
|
27
|
-
}>, "disabled" | "valueAsNumber" | "valueAsDate" | "setValueAs"> | undefined;
|
10
|
+
rules: Omit<import("react-hook-form").RegisterOptions<import("react-hook-form").FieldValues, string>, "disabled" | "valueAsNumber" | "valueAsDate" | "setValueAs"> | undefined;
|
28
11
|
control: import("react-hook-form").Control<any, any>;
|
29
12
|
required: boolean;
|
30
13
|
optional: boolean;
|
@@ -2,6 +2,7 @@ export * from './FieldLabels/FieldLabels';
|
|
2
2
|
export * from './InputField/InputField';
|
3
3
|
export * from './FieldMapper/FieldMapper';
|
4
4
|
export * from './CheckboxField/CheckboxField';
|
5
|
+
export * from './CheckboxField/CheckboxGroup';
|
5
6
|
export * from './SelectField/SelectField';
|
6
7
|
export * from './CustomValidation/CustomValidation';
|
7
8
|
export * from './SelectableInfoCard/SelectableCardGroup';
|
package/dist/index.d.ts
CHANGED
@@ -8,12 +8,12 @@ import { StylesType, Callback as Callback$1, OverrideStyles, Nullable, StrictUni
|
|
8
8
|
import { IconNames as IconNames$1 } from 'atoms/Icon/Icon';
|
9
9
|
import { InputFieldTypes as InputFieldTypes$1, FieldTypes as FieldTypes$1, UIFields as UIFields$2 } from 'fieldsConfiguration/types';
|
10
10
|
import { ThemeColors as ThemeColors$2, FontSizesTypes as FontSizesTypes$1, SizesTypes as SizesTypes$2, BreakpointSizesTypes as BreakpointSizesTypes$1 } from 'theme/types';
|
11
|
-
import { BaseButtonProps as BaseButtonProps$1, MenuItem as MenuItem$1, HeroImageProps as HeroImageProps$1, ColumnsProps as ColumnsProps$1, EmphasizedTextProps as EmphasizedTextProps$1, TabGroupProps as TabGroupProps$1, AvatarDropdownProps as AvatarDropdownProps$1, ButtonProps as ButtonProps$1, FeedContentHeaderProps as FeedContentHeaderProps$1, AlertProps as AlertProps$1, BottomNaVBarItemProps as BottomNaVBarItemProps$1, InputFieldProps as InputFieldProps$1, SelectFieldProps as SelectFieldProps$1, FieldSectionProps as FieldSectionProps$1, MenuItemsProps as MenuItemsProps$1, ImageProps as ImageProps$1, TextMoleculeProps as TextMoleculeProps$1, RadioButtonFieldProps as RadioButtonFieldProps$1 } from 'molecules';
|
11
|
+
import { BaseButtonProps as BaseButtonProps$1, MenuItem as MenuItem$1, HeroImageProps as HeroImageProps$1, ColumnsProps as ColumnsProps$1, EmphasizedTextProps as EmphasizedTextProps$1, TabGroupProps as TabGroupProps$1, AvatarDropdownProps as AvatarDropdownProps$1, ButtonProps as ButtonProps$1, FeedContentHeaderProps as FeedContentHeaderProps$1, AlertProps as AlertProps$1, BottomNaVBarItemProps as BottomNaVBarItemProps$1, InputFieldProps as InputFieldProps$1, SelectFieldProps as SelectFieldProps$1, FieldSectionProps as FieldSectionProps$1, MenuItemsProps as MenuItemsProps$1, ImageProps as ImageProps$1, TextMoleculeProps as TextMoleculeProps$1, RadioButtonFieldProps as RadioButtonFieldProps$1, CheckboxFieldProps as CheckboxFieldProps$1 } from 'molecules';
|
12
12
|
import { TooltipProps as TooltipProps$1 } from 'rc-tooltip/lib/Tooltip';
|
13
13
|
import { WithGoogleMapProps } from 'react-google-maps/lib/withGoogleMap';
|
14
14
|
import { WithScriptjsProps } from 'react-google-maps/lib/withScriptjs';
|
15
15
|
import * as atoms from 'atoms';
|
16
|
-
import { TextProps as TextProps$1, IconNames as IconNames$2, TouchableOpacityProps as TouchableOpacityProps$1, AvatarProps as AvatarProps$1, TabProps as TabProps$1, RadioButtonsProps as RadioButtonsProps$1, SelectOption as SelectOption$1, InputProps as InputProps$1,
|
16
|
+
import { TextProps as TextProps$1, IconNames as IconNames$2, TouchableOpacityProps as TouchableOpacityProps$1, AvatarProps as AvatarProps$1, TabProps as TabProps$1, RadioButtonsProps as RadioButtonsProps$1, SelectOption as SelectOption$1, InputProps as InputProps$1, SelectProps as SelectProps$1, RegularImageProps as RegularImageProps$1, TextButtonProps as TextButtonProps$1, TabTheme as TabTheme$1, HorizontalButtonsProps as HorizontalButtonsProps$1, IconProps as IconProps$1 } from 'atoms';
|
17
17
|
import { UIFields as UIFields$1, UIField as UIField$1 } from 'fieldsConfiguration';
|
18
18
|
import { MaxRuleValidation, MinRuleValidation, SetPasswordFields } from 'organisms/SetPasswordForm/types';
|
19
19
|
import { ConsentProps as ConsentProps$1, FilteredFeedContentType as FilteredFeedContentType$1, HeroSliderProps as HeroSliderProps$1, ProcessTrackerProps as ProcessTrackerProps$1, ProcessTrackerStatus as ProcessTrackerStatus$1 } from 'organisms';
|
@@ -35,6 +35,7 @@ import { AnnotationsList as AnnotationsList$1 } from 'contexts/MlrRichTextViewer
|
|
35
35
|
import * as contexts_MlrRichTextViewerContext_MlrRichTextViewerContext from 'contexts/MlrRichTextViewerContext/MlrRichTextViewerContext';
|
36
36
|
export * from 'helpers/constants';
|
37
37
|
import { Control as Control$1, ControllerProps as ControllerProps$1 } from 'react-hook-form/dist/types';
|
38
|
+
import { CheckboxInternalConfigProps as CheckboxInternalConfigProps$1 } from 'atoms/Checkbox/types';
|
38
39
|
import { DrawerProps as DrawerProps$1 } from '@mui/material';
|
39
40
|
import { ContainerProps as ContainerProps$1, ContainerComponentProps as ContainerComponentProps$1, Molecule as Molecule$1 } from 'containers';
|
40
41
|
import * as containers_types_types from 'containers/types/types';
|
@@ -53,14 +54,29 @@ declare const TouchableOpacity: styled_components.StyledComponent<"div", styled_
|
|
53
54
|
children?: React$1.ReactNode;
|
54
55
|
}, never>;
|
55
56
|
|
56
|
-
declare type
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
57
|
+
declare type CheckboxInternalConfigProps = Partial<{
|
58
|
+
selectedCheckboxBackgroundColor: ThemeColors$1 | string;
|
59
|
+
selectedCheckboxIconColor: ThemeColors$1 | string;
|
60
|
+
buttonPadding: number;
|
61
|
+
textPadding: number;
|
62
|
+
styles: StylesType;
|
63
|
+
wrapperStyles: StylesType;
|
64
|
+
buttonOptionSpacing?: SizesTypes$1;
|
65
|
+
}>;
|
66
|
+
|
67
|
+
declare type CheckboxProps = {
|
68
|
+
id: string;
|
69
|
+
onClick: (id: string) => void;
|
70
|
+
label: string;
|
71
|
+
} & Partial<{
|
72
|
+
isError: boolean;
|
73
|
+
disabled: boolean;
|
74
|
+
isEditMode: boolean;
|
75
|
+
isSelected: boolean;
|
76
|
+
isRichText: boolean;
|
77
|
+
internalConfig: CheckboxInternalConfigProps;
|
78
|
+
}>;
|
79
|
+
declare const Checkbox: ({ id, onClick, label, isError, disabled, isEditMode, isSelected, isRichText, internalConfig, }: CheckboxProps) => JSX.Element;
|
64
80
|
|
65
81
|
declare type SelectOption = {
|
66
82
|
id: string;
|
@@ -137,6 +153,9 @@ declare type TextProps = {
|
|
137
153
|
};
|
138
154
|
declare type TextWrapperProps = PropsWithChildren<TextProps>;
|
139
155
|
declare const TextWrapper: ({ children, seoTag, ...textProps }: TextWrapperProps) => JSX.Element;
|
156
|
+
declare const ErrorText: ({ text }: {
|
157
|
+
text: string;
|
158
|
+
}) => JSX.Element;
|
140
159
|
|
141
160
|
declare type IconProps = {
|
142
161
|
name: IconNames;
|
@@ -911,16 +930,38 @@ declare type FieldMapperProps<T extends object> = {
|
|
911
930
|
};
|
912
931
|
declare const FieldMapper: <T extends object>({ field, isEditMode, spacer, control, isTooltipVisible, optionsPresentation, styles, }: FieldMapperProps<T>) => JSX.Element | null;
|
913
932
|
|
914
|
-
declare type
|
933
|
+
declare type CheckboxesProps = Partial<{
|
934
|
+
checkboxGroupWrapperStyles: StylesType;
|
935
|
+
checkboxFieldWrapperStyles: StylesType;
|
936
|
+
onChange: (id: string) => void;
|
937
|
+
disabled: boolean;
|
938
|
+
options?: SelectOption$1[];
|
939
|
+
selectedIds?: string[];
|
940
|
+
isError?: boolean;
|
941
|
+
isEditMode?: boolean;
|
942
|
+
isRichText: boolean;
|
943
|
+
internalConfig: CheckboxInternalConfigProps$1;
|
944
|
+
}>;
|
945
|
+
declare type CheckboxFieldProps = Partial<{
|
946
|
+
checkboxesProps: CheckboxesProps;
|
947
|
+
labelsProps: FieldLabelsProps;
|
915
948
|
name: string;
|
916
|
-
|
917
|
-
|
918
|
-
|
919
|
-
|
920
|
-
|
949
|
+
rules: ControllerProps$1['rules'];
|
950
|
+
control: Control$1<any>;
|
951
|
+
required: boolean;
|
952
|
+
optional: boolean;
|
953
|
+
wrapperStyles: StylesType;
|
954
|
+
}>;
|
955
|
+
declare const CheckboxField: ({ checkboxesProps, name, rules, control, optional, required, labelsProps, wrapperStyles, }: CheckboxFieldProps) => JSX.Element;
|
956
|
+
|
957
|
+
declare type CheckboxGroupProps = Partial<{
|
958
|
+
onChange: (checkedIds: string[]) => void;
|
959
|
+
checkboxesProps: CheckboxesProps;
|
960
|
+
}>;
|
961
|
+
declare const CheckboxGroup: ({ onChange, checkboxesProps }: CheckboxGroupProps) => JSX.Element;
|
921
962
|
|
922
963
|
declare type SelectFieldProps = Partial<{
|
923
|
-
selectProps: SelectProps;
|
964
|
+
selectProps: SelectProps$1;
|
924
965
|
labelsProps: FieldLabelsProps;
|
925
966
|
name: string;
|
926
967
|
rules: ControllerProps$1['rules'];
|
@@ -1305,9 +1346,9 @@ interface BooleanAttributes {
|
|
1305
1346
|
}
|
1306
1347
|
interface IterableAttributes {
|
1307
1348
|
attributeType: 'iterable';
|
1308
|
-
options: SelectOption$1
|
1349
|
+
options: SelectOption$1[];
|
1309
1350
|
}
|
1310
|
-
declare type MoleculeTypes = 'image' | 'text' | 'button' | 'video' | 'header_tab_group' | 'input_field' | 'select_field' | 'radio_button_field';
|
1351
|
+
declare type MoleculeTypes = 'image' | 'text' | 'button' | 'video' | 'header_tab_group' | 'input_field' | 'select_field' | 'radio_button_field' | 'checkbox_field';
|
1311
1352
|
interface BaseMolecule {
|
1312
1353
|
id: string;
|
1313
1354
|
instance: 'molecule';
|
@@ -1413,7 +1454,20 @@ interface RadioButtonFieldMolecule extends BaseMolecule {
|
|
1413
1454
|
} & RadioButtonFieldProps$1<string>>;
|
1414
1455
|
};
|
1415
1456
|
}
|
1416
|
-
|
1457
|
+
interface CheckboxFieldMolecule extends BaseMolecule {
|
1458
|
+
type: 'checkbox_field';
|
1459
|
+
attributes: {
|
1460
|
+
label: TextAttributes;
|
1461
|
+
required: BooleanAttributes;
|
1462
|
+
options: IterableAttributes;
|
1463
|
+
};
|
1464
|
+
config: {
|
1465
|
+
props: Partial<{
|
1466
|
+
state: 'default' | 'error';
|
1467
|
+
} & CheckboxFieldProps$1>;
|
1468
|
+
};
|
1469
|
+
}
|
1470
|
+
declare type Molecule = StrictUnion<ImageMolecule | TextMoleculeType | ButtonMolecule | VideoMolecule | TabGroupMolecule | TextInputMolecule | SelectFieldMolecule | RadioButtonFieldMolecule | CheckboxFieldMolecule> & {
|
1417
1471
|
form?: UseFormReturn<any>;
|
1418
1472
|
};
|
1419
1473
|
|
@@ -1469,4 +1523,4 @@ declare const OrganismItem: ({ item, tabsProps, }: {
|
|
1469
1523
|
tabsProps?: Pick<TabGroupProps$1<string, string>, "tabs" | "activeTabKey" | "onTabChange"> | undefined;
|
1470
1524
|
}) => JSX.Element | null;
|
1471
1525
|
|
1472
|
-
export { AcquisitionForm, AcquisitionFormProps, AdditionalContainerProps, Alert, AlertProps, AnnotationsList, ArrowIconWrapper, AuthMethod, Avatar, AvatarDropdown, AvatarDropdownProps, AvatarProps, BackgroundImage, BaseButtonProps, BaseMolecule, Body, BodyProps, BooleanAttributes, BottomNaVBarItemProps, BottomNavBarItem, BottomNavBarNavigation, BottomNavBarNavigationProps, BreakpointSizesTypes, Button, ButtonMolecule, ButtonProps, ButtonType, ButtonVariant, ButtonsWrapper, COMMUNICATION_LINK_DATA_TEXT, COMMUNICATION_LINK_DATA_URL, COMMUNICATION_LINK_ELEMENT_ID, CaretIconWrapper, Carousel, CarouselProps,
|
1526
|
+
export { AcquisitionForm, AcquisitionFormProps, AdditionalContainerProps, Alert, AlertProps, AnnotationsList, ArrowIconWrapper, AuthMethod, Avatar, AvatarDropdown, AvatarDropdownProps, AvatarProps, BackgroundImage, BaseButtonProps, BaseMolecule, Body, BodyProps, BooleanAttributes, BottomNaVBarItemProps, BottomNavBarItem, BottomNavBarNavigation, BottomNavBarNavigationProps, BreakpointSizesTypes, Button, ButtonMolecule, ButtonProps, ButtonType, ButtonVariant, ButtonsWrapper, COMMUNICATION_LINK_DATA_TEXT, COMMUNICATION_LINK_DATA_URL, COMMUNICATION_LINK_ELEMENT_ID, CaretIconWrapper, Carousel, CarouselProps, Checkbox, CheckboxField, CheckboxFieldMolecule, CheckboxFieldProps, CheckboxGroup, CheckboxGroupProps, CheckboxProps, CheckboxesProps, Circle, CircleBoxProps, CircularIndicator, CircularIndicatorProps, CircularIndicatorStyledComponent, ColumnItem, Columns, ColumnsProps, Consent, ConsentProps, Container, ContainerComponent, ContainerComponentProps, ContainerPositionType, ContainerProps, ContainerPropsType, ContainerScrollBehaviourType, ContainerType, ContainerWrapper, CustomValidation, CustomValidationProps, CustomValidationRule, DefaultTemplate, DefaultTemplateProps, Divider, DividerProps, Drawer, DynamicContentZone, DynamicContentZoneProps, DynamicElementProps, EmphasizedText, EmphasizedTextProps, ErrorText, FeedContent, FeedContentContainer, FeedContentContainerProps, FeedContentHeader, FeedContentHeaderProps, FeedTemplateKeys, FieldLabels, FieldLabelsProps, FieldMapper, FieldMapperProps, FieldRuleLabelTypes, FieldSection, FieldSectionProps, FieldTypes, FilteredFeedContentType, FontSizesTypes, FontWeight, Footer, FooterContactInfo, FooterLink, FooterProps, ForgotPasswordForm, ForgotPasswordFormProps, GoogleMap, GoogleMapProps, Header, HeaderProps, HeroImage, HeroImageAlignment, HeroImageProps, HeroImageTemplate, HeroSlider, HeroSliderProps, HeroSliderWrapper, HorizontalButtons, HorizontalButtonsField, HorizontalButtonsProps, HorizontalPadding, HorizontalPaddingProps, ISI, ISIProps, Icon, IconButton, IconButtonProps, IconNames, IconProps, Image, ImageAttributes, ImageMolecule, ImageProps, Input, InputField, InputFieldInternalConfigProps, InputFieldProps, InputFieldTypes, InputIconProps, InputProps, IterableAttributes, LabelInternalConfig, LinkAttributes, LoginForm, LoginFormProps, MATRIX_MESSAGE_DATA_ID, MATRIX_MESSAGE_ELEMENT_ID, MapPosition, MenuItem, MenuItems, MenuItemsProps, MenuNavigation, MenuNavigationProps, MlrRichTextViewerContext, MlrRichTextViewerContextType, MlrRichTextViewerProvider, MlrRichTextViewerProviderProps, Molecule, MoleculeTypes, NavigationDotsWrapper, OrganismItem, OrientationType, PdfDocument, PdfDocumentProps, ProcessTracker, ProcessTrackerProps, ProcessTrackerStatus, ProfileInformation, ProfileInformationProps, RadioButtonField, RadioButtonFieldMolecule, RadioButtonFieldProps, RadioButtonInternalConfigProps, RadioButtonType, RadioButtons, RadioButtonsProps, RegularImage, RegularImageProps, RichTextEditorProps, RichTextViewer, RuleLabelInternalConfig, Select, SelectAttributes, SelectField, SelectFieldMolecule, SelectFieldProps, SelectInternalConfigurationOptions, SelectOption, SelectProps, SelectableCardGroup, SelectableCardGroupProps, SeoTags, SetPasswordForm, SetPasswordFormProps, SetPasswordRuleValidation, SizesTypes, Slide, SlidesWrapper, Spacer, SpacerProps, Spinner, Stepper, StepperProps, StyleWrapper, SubscribePanel, Tab, TabGroup, TabGroupMolecule, TabGroupProps, TabOption, TabProps, TabTheme, TabType, TextAlign, TextAttributes, TextButton, TextButtonProps, TextInputMolecule, TextMolecule, TextMoleculeProps, TextMoleculeType, TextProps, TextTypes, TextWrapper, TextWrapperProps, ThemeColors, ThemeColorsType, ThemeDevicesType, ThemeSizesType, ThemeTextType, Tooltip, TooltipInternalConfig, TooltipProps, TouchableOpacity, TouchableOpacityProps, TwoFactorAuth, TwoFactorAuthProps, UICheckboxField, UIField, UIFields, UIInputField, UISelectField, ValidationTag, ValidationTagProps, ValidationTagStatus, VerticalPadding, Video, VideoAttributes, VideoMolecule, VideoProps, Wrapper, ZealTheme, ZealThemeProvider, acquisitionFormMockFields, defaultTheme, getFieldPlaceholder, getFieldsFromFieldSections, getInitialValuesFromFields, isFormValid, loginMockFields, profileInformationMockForm, sectionMockFields, setPasswordMockFields, showAcceptToastMessage, toast, toastStyles, useMediaQuery, useMlrRichTextViewerContext, useRequiredConsentsAcceptedValues, useStep };
|