@zealicsolutions/web-ui 0.3.193 → 0.3.195
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 +20 -20
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/atoms/Checkbox/Checkbox.d.ts +9 -9
- package/dist/cjs/src/atoms/Checkbox/Checkbox.stories.d.ts +1 -1
- package/dist/cjs/src/atoms/RichTextViewer/RichTextViewer.d.ts +1 -1
- package/dist/cjs/src/containers/Container.d.ts +3 -2
- package/dist/cjs/src/containers/MoleculeItem.d.ts +1 -1
- package/dist/cjs/src/containers/mock-data.d.ts +1500 -256
- package/dist/cjs/src/containers/types/moleculeTypes.d.ts +34 -6
- package/dist/cjs/src/containers/types/types.d.ts +3 -2
- package/dist/cjs/src/contexts/OrganismContext/OrganismContext.d.ts +2 -4
- package/dist/cjs/src/contexts/OrganismContext/OrganismContextProvider.d.ts +2 -1
- package/dist/cjs/src/molecules/CheckboxField/CheckboxGroup.stories.d.ts +32 -0
- package/dist/cjs/src/molecules/Checklist/Checklist.d.ts +23 -0
- package/dist/cjs/src/molecules/Checklist/Checklist.stories.d.ts +8 -0
- package/dist/cjs/src/molecules/Image/Image.d.ts +2 -1
- package/dist/cjs/src/molecules/Image/Image.stories.d.ts +1 -1
- package/dist/cjs/src/molecules/Stepper/Stepper.d.ts +2 -1
- package/dist/cjs/src/molecules/Stepper/Stepper.stories.d.ts +1 -1
- package/dist/cjs/src/molecules/Video/Video.d.ts +2 -1
- package/dist/cjs/src/molecules/Video/Video.stories.d.ts +1 -1
- package/dist/cjs/src/molecules/index.d.ts +1 -0
- package/dist/esm/index.js +5 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/atoms/Checkbox/Checkbox.d.ts +9 -9
- package/dist/esm/src/atoms/Checkbox/Checkbox.stories.d.ts +1 -1
- package/dist/esm/src/atoms/RichTextViewer/RichTextViewer.d.ts +1 -1
- package/dist/esm/src/containers/Container.d.ts +3 -2
- package/dist/esm/src/containers/MoleculeItem.d.ts +1 -1
- package/dist/esm/src/containers/mock-data.d.ts +1500 -256
- package/dist/esm/src/containers/types/moleculeTypes.d.ts +34 -6
- package/dist/esm/src/containers/types/types.d.ts +3 -2
- package/dist/esm/src/contexts/OrganismContext/OrganismContext.d.ts +2 -4
- package/dist/esm/src/contexts/OrganismContext/OrganismContextProvider.d.ts +2 -1
- package/dist/esm/src/molecules/CheckboxField/CheckboxGroup.stories.d.ts +32 -0
- package/dist/esm/src/molecules/Checklist/Checklist.d.ts +23 -0
- package/dist/esm/src/molecules/Checklist/Checklist.stories.d.ts +8 -0
- package/dist/esm/src/molecules/Image/Image.d.ts +2 -1
- package/dist/esm/src/molecules/Image/Image.stories.d.ts +1 -1
- package/dist/esm/src/molecules/Stepper/Stepper.d.ts +2 -1
- package/dist/esm/src/molecules/Stepper/Stepper.stories.d.ts +1 -1
- package/dist/esm/src/molecules/Video/Video.d.ts +2 -1
- package/dist/esm/src/molecules/Video/Video.stories.d.ts +1 -1
- package/dist/esm/src/molecules/index.d.ts +1 -0
- package/dist/index.d.ts +79 -28
- package/package.json +2 -2
@@ -1,10 +1,12 @@
|
|
1
1
|
import { LinkVariant, SelectOption } from 'atoms';
|
2
|
-
import { AdditionalTabContainerProps, AvatarDropdownMenuConfigType, AvatarDropdownProps, ButtonProps, CheckboxFieldProps, ConsentType, ImageProps, InputFieldProps, LinkProps, RadioButtonFieldProps, SelectFieldProps, TabGroupProps, TextMoleculeProps } from 'molecules';
|
2
|
+
import { AdditionalTabContainerProps, AvatarDropdownMenuConfigType, AvatarDropdownProps, ButtonProps, CheckboxFieldProps, ChecklistItem, ConsentType, ImageProps, InputFieldProps, LinkProps, RadioButtonFieldProps, SelectFieldProps, TabGroupProps, TextMoleculeProps } from 'molecules';
|
3
3
|
import { Dispatch, SetStateAction } from 'react';
|
4
4
|
import { UseFormReturn } from 'react-hook-form';
|
5
5
|
import type { AnyObject, Nullable, StrictUnion, StylesType } from 'typescript';
|
6
|
+
import { SizesTypes } from 'theme';
|
6
7
|
import { ConditionConfig, ContainerComponentProps, MetadataType } from './types';
|
7
8
|
import { MaskConfig } from '../../atoms/Input/helpers';
|
9
|
+
import { CheckboxInternalConfigProps } from '../../atoms/Checkbox/types';
|
8
10
|
export declare type ActionTypes = 'link' | 'popup' | 'drawer' | 'download' | 'submit' | 'reset' | 'destroy';
|
9
11
|
export declare type DataModelFieldFormatCodeTypes = 'date' | 'email' | 'string' | 'integer' | 'boolean' | 'numeric' | 'zip_code' | 'phone_number';
|
10
12
|
export declare type DataModelFieldFormatValueTypes = 'any' | 'text' | 'email' | 'integer' | 'numerical' | 'us_zip_code' | 'phone_number' | 'month_year_date' | 'day_month_year_date' | 'month_day_year_date' | 'year_month_day_date';
|
@@ -126,13 +128,20 @@ export interface ProcessStepsAttributes {
|
|
126
128
|
steps: ProcessStep[];
|
127
129
|
};
|
128
130
|
}
|
129
|
-
export
|
131
|
+
export interface ChecklistAttributes {
|
132
|
+
checklist: {
|
133
|
+
attributeType: 'checklist';
|
134
|
+
items: ChecklistItem[];
|
135
|
+
};
|
136
|
+
}
|
137
|
+
export declare type MoleculeTypes = 'image' | 'text' | 'button' | 'video' | 'header_tab_group' | 'input_field' | 'select_field' | 'radio_button_field' | 'checkbox_field' | 'consent' | 'link' | 'password_setup_field' | 'account_button' | 'process_steps' | 'checklist';
|
130
138
|
export interface BaseMolecule {
|
131
139
|
id: string;
|
132
|
-
moleculeLibraryId: string;
|
133
|
-
instance: 'molecule';
|
134
140
|
type: MoleculeTypes;
|
135
|
-
|
141
|
+
instance: 'molecule';
|
142
|
+
metadata: MetadataType;
|
143
|
+
moleculeLibraryId: string;
|
144
|
+
organismLibraryMoleculeId: string;
|
136
145
|
}
|
137
146
|
export interface ImageMolecule extends BaseMolecule {
|
138
147
|
type: 'image';
|
@@ -185,6 +194,16 @@ export interface VideoMolecule extends BaseMolecule {
|
|
185
194
|
}
|
186
195
|
export interface TabGroupMolecule extends BaseMolecule {
|
187
196
|
type: 'header_tab_group';
|
197
|
+
attributes: Partial<{
|
198
|
+
tabs: {
|
199
|
+
tabKey: string;
|
200
|
+
text: string;
|
201
|
+
disabled: boolean;
|
202
|
+
divider: boolean;
|
203
|
+
}[];
|
204
|
+
activeTabKey: string;
|
205
|
+
attributeType: 'tab_group';
|
206
|
+
}>;
|
188
207
|
config: {
|
189
208
|
props: TabGroupProps;
|
190
209
|
wide: AdditionalTabContainerProps;
|
@@ -300,7 +319,16 @@ export interface ProcessStepsMoleculeType extends BaseMolecule {
|
|
300
319
|
organismMoleculeLibraryId: string;
|
301
320
|
attributes: ProcessStepsAttributes;
|
302
321
|
}
|
303
|
-
export
|
322
|
+
export interface ChecklistsMolecule extends BaseMolecule {
|
323
|
+
type: 'checklist';
|
324
|
+
config: {
|
325
|
+
props: {
|
326
|
+
gap: SizesTypes;
|
327
|
+
} & CheckboxInternalConfigProps;
|
328
|
+
};
|
329
|
+
attributes: ChecklistAttributes;
|
330
|
+
}
|
331
|
+
export declare type Molecule = StrictUnion<ImageMolecule | TextMoleculeType | ButtonMolecule | VideoMolecule | TabGroupMolecule | TextInputMolecule | SelectFieldMolecule | RadioButtonFieldMolecule | CheckboxFieldMolecule | ConsentFieldMolecule | LinkMolecule | PasswordSetupMolecule | AccountButtonMolecule | ProcessStepsMoleculeType | ChecklistsMolecule> & Partial<{
|
304
332
|
form: UseFormReturn<any>;
|
305
333
|
formData: AnyObject;
|
306
334
|
setFormData: Dispatch<SetStateAction<AnyObject>>;
|
@@ -75,13 +75,14 @@ export declare type AdditionalContainerProps = Partial<{
|
|
75
75
|
containerStyle: CSSProperties;
|
76
76
|
containerProps: ContainerPropsType;
|
77
77
|
}>;
|
78
|
-
export declare type ContainerProps = PropsWithChildren<
|
78
|
+
export declare type ContainerProps = PropsWithChildren<{
|
79
79
|
type: ContainerType;
|
80
|
+
metadata: MetadataType;
|
81
|
+
} & Partial<{
|
80
82
|
containerTemplateType: ContainerTemplateType;
|
81
83
|
wide: AdditionalContainerProps;
|
82
84
|
compact: AdditionalContainerProps;
|
83
85
|
props: ContainerPropsType;
|
84
|
-
metadata: MetadataType;
|
85
86
|
isMobile: boolean;
|
86
87
|
}>>;
|
87
88
|
export declare type ContainerComponentProps = {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ContainerComponentProps, Molecule } from 'containers';
|
1
|
+
import { ContainerComponentProps, MetadataType, Molecule } from 'containers';
|
2
2
|
import { InputFieldTypes } from 'fieldsConfiguration';
|
3
3
|
import { PasswordRuleValidation } from 'molecules/PasswordSetup/PasswordSetup';
|
4
4
|
import { Dispatch, SetStateAction } from 'react';
|
@@ -25,9 +25,7 @@ export declare type OrganismContextType = {
|
|
25
25
|
editable?: boolean;
|
26
26
|
isFormInEditMode?: boolean;
|
27
27
|
isConfigurationMode?: boolean;
|
28
|
-
organismMetadata?:
|
29
|
-
stateListenerId?: string;
|
30
|
-
} & AnyObject;
|
28
|
+
organismMetadata?: MetadataType;
|
31
29
|
onConfigurationItemClicked: (itemInfo?: Omit<ConfigurationItem, 'organismId'>) => void;
|
32
30
|
selectedConfigurationItemId?: string;
|
33
31
|
};
|
@@ -7,7 +7,8 @@ export declare type ConfigurationItem = {
|
|
7
7
|
entityId: string;
|
8
8
|
organismId: string;
|
9
9
|
entityType: MoleculeTypes | ContainerType;
|
10
|
-
entityMetadata
|
10
|
+
entityMetadata: MetadataType;
|
11
|
+
organismLibraryMoleculeId?: string;
|
11
12
|
};
|
12
13
|
export declare type OrganismContextProviderProps = PropsWithChildren<{
|
13
14
|
organismId: string;
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import type { StoryFn } from '@storybook/react';
|
2
|
+
import { CheckboxGroup as CheckboxGroupComponent } from 'molecules';
|
3
|
+
declare const _default: {
|
4
|
+
title: string;
|
5
|
+
component: ({ ref, onBlur, onChange, checkboxesProps }: Partial<{
|
6
|
+
ref: import("react-hook-form").RefCallBack;
|
7
|
+
onBlur: import("../../typescript").Callback;
|
8
|
+
onChange: (checkedIds: string[]) => void;
|
9
|
+
checkboxesProps: Partial<{
|
10
|
+
checkboxGroupWrapperStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
11
|
+
checkboxFieldWrapperStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
12
|
+
onChange: (id: string) => void;
|
13
|
+
disabled: boolean;
|
14
|
+
options?: import("../..").SelectOption[] | undefined;
|
15
|
+
selectedIds?: string[] | undefined;
|
16
|
+
isError?: boolean | undefined;
|
17
|
+
isEditMode?: boolean | undefined;
|
18
|
+
isRichText: boolean;
|
19
|
+
internalConfig: Partial<{
|
20
|
+
selectedCheckboxBackgroundColor: string;
|
21
|
+
selectedCheckboxIconColor: string;
|
22
|
+
buttonPadding: number;
|
23
|
+
textPadding: number;
|
24
|
+
styles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
25
|
+
wrapperStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
26
|
+
buttonOptionSpacing?: import("theme").SizesTypes | undefined;
|
27
|
+
}>;
|
28
|
+
}>;
|
29
|
+
}>) => JSX.Element;
|
30
|
+
};
|
31
|
+
export default _default;
|
32
|
+
export declare const CheckboxGroup: StoryFn<typeof CheckboxGroupComponent>;
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { SizesTypes } from 'theme';
|
2
|
+
import { CheckboxInternalConfigProps } from 'atoms/Checkbox/types';
|
3
|
+
import type { Nullable } from 'typescript';
|
4
|
+
export declare type ChecklistItem = {
|
5
|
+
id: string;
|
6
|
+
isChecked: boolean;
|
7
|
+
eventId: Nullable<string>;
|
8
|
+
type: 'user_interactive' | 'system_controlled';
|
9
|
+
label: {
|
10
|
+
text: string;
|
11
|
+
isRichText: boolean;
|
12
|
+
};
|
13
|
+
};
|
14
|
+
export declare type ChecklistProps = {
|
15
|
+
items: ChecklistItem[];
|
16
|
+
props: {
|
17
|
+
gap: SizesTypes;
|
18
|
+
} & CheckboxInternalConfigProps;
|
19
|
+
};
|
20
|
+
export declare const Checklist: ({ items, props: { gap, ...checkboxProps }, }: ChecklistProps) => JSX.Element;
|
21
|
+
export declare const ChecklistWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
22
|
+
$gap: SizesTypes;
|
23
|
+
}, never>;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import type { StoryFn } from '@storybook/react';
|
2
|
+
import { Checklist as ChecklistComponent } from 'molecules';
|
3
|
+
declare const _default: {
|
4
|
+
title: string;
|
5
|
+
component: ({ items, props: { gap, ...checkboxProps }, }: import("molecules").ChecklistProps) => JSX.Element;
|
6
|
+
};
|
7
|
+
export default _default;
|
8
|
+
export declare const Checklist: StoryFn<typeof ChecklistComponent>;
|
@@ -15,5 +15,6 @@ export declare type ImageProps = {
|
|
15
15
|
styles: StylesType;
|
16
16
|
metadata: MetadataType;
|
17
17
|
htmlElementId: string;
|
18
|
+
isOnClickDisabled: boolean;
|
18
19
|
}>;
|
19
|
-
export declare const Image: ({ src, onClick, link, altText, styles, width, height, id, behaveAs, cornerRadius, htmlElementId, metadata, }: ImageProps) => JSX.Element | null;
|
20
|
+
export declare const Image: ({ src, onClick, link, altText, styles, width, height, id, behaveAs, cornerRadius, htmlElementId, metadata, isOnClickDisabled, }: ImageProps) => JSX.Element | null;
|
@@ -2,7 +2,7 @@ import type { StoryFn } from '@storybook/react';
|
|
2
2
|
import { Image as ImageComponent } from './Image';
|
3
3
|
declare const _default: {
|
4
4
|
title: string;
|
5
|
-
component: ({ src, onClick, link, altText, styles, width, height, id, behaveAs, cornerRadius, htmlElementId, metadata, }: import("./Image").ImageProps) => JSX.Element | null;
|
5
|
+
component: ({ src, onClick, link, altText, styles, width, height, id, behaveAs, cornerRadius, htmlElementId, metadata, isOnClickDisabled, }: import("./Image").ImageProps) => JSX.Element | null;
|
6
6
|
};
|
7
7
|
export default _default;
|
8
8
|
export declare const Image: StoryFn<typeof ImageComponent>;
|
@@ -6,5 +6,6 @@ export declare type StepperProps = {
|
|
6
6
|
htmlElementId?: string;
|
7
7
|
metadata: MetadataType;
|
8
8
|
isMobile?: boolean;
|
9
|
+
isOnClickDisabled?: boolean;
|
9
10
|
};
|
10
|
-
export declare const Stepper: ({ steps, orientation, htmlElementId, metadata, isMobile, }: StepperProps) => JSX.Element | null;
|
11
|
+
export declare const Stepper: ({ steps, orientation, htmlElementId, metadata, isMobile, isOnClickDisabled, }: StepperProps) => JSX.Element | null;
|
@@ -2,7 +2,7 @@ import { StoryFn } from '@storybook/react';
|
|
2
2
|
import { StepperProps } from './Stepper';
|
3
3
|
declare const _default: {
|
4
4
|
title: string;
|
5
|
-
component: ({ steps, orientation, htmlElementId, metadata, isMobile, }: StepperProps) => JSX.Element | null;
|
5
|
+
component: ({ steps, orientation, htmlElementId, metadata, isMobile, isOnClickDisabled, }: StepperProps) => JSX.Element | null;
|
6
6
|
};
|
7
7
|
export default _default;
|
8
8
|
export declare const Stepper: StoryFn<StepperProps>;
|
@@ -15,5 +15,6 @@ export declare type VideoProps = {
|
|
15
15
|
htmlElementId: string;
|
16
16
|
moleculeId: string;
|
17
17
|
isTrigger: boolean;
|
18
|
+
isOnClickDisabled: boolean;
|
18
19
|
}>;
|
19
|
-
export declare const Video: ({ style, src, width, height, template, autoplay, enableCoverImage, coverImageSrc, styles, htmlElementId, isTrigger, moleculeId, }: VideoProps) => JSX.Element | null;
|
20
|
+
export declare const Video: ({ style, src, width, height, template, autoplay, enableCoverImage, coverImageSrc, styles, htmlElementId, isTrigger, moleculeId, isOnClickDisabled, }: VideoProps) => JSX.Element | null;
|
@@ -2,7 +2,7 @@ import type { StoryFn } from '@storybook/react';
|
|
2
2
|
import { Video as VideoComponent } from './Video';
|
3
3
|
declare const _default: {
|
4
4
|
title: string;
|
5
|
-
component: ({ style, src, width, height, template, autoplay, enableCoverImage, coverImageSrc, styles, htmlElementId, isTrigger, moleculeId, }: import("./Video").VideoProps) => JSX.Element | null;
|
5
|
+
component: ({ style, src, width, height, template, autoplay, enableCoverImage, coverImageSrc, styles, htmlElementId, isTrigger, moleculeId, isOnClickDisabled, }: import("./Video").VideoProps) => JSX.Element | null;
|
6
6
|
};
|
7
7
|
export default _default;
|
8
8
|
export declare const Video: StoryFn<typeof VideoComponent>;
|
package/dist/index.d.ts
CHANGED
@@ -15,7 +15,7 @@ import { FieldTypes as FieldTypes$1, UIFields as UIFields$1, InputFieldTypes as
|
|
15
15
|
import { ThemeColors as ThemeColors$2, FontSizesTypes as FontSizesTypes$1, SizesTypes as SizesTypes$2, BreakpointSizesTypes as BreakpointSizesTypes$1 } from 'theme/types';
|
16
16
|
import * as atoms from 'atoms';
|
17
17
|
import { SelectOption as SelectOption$1, LinkVariant as LinkVariant$1, TextProps as TextProps$1, IconNames as IconNames$2, TouchableOpacityProps as TouchableOpacityProps$1, AvatarProps as AvatarProps$1, TabProps as TabProps$1, InputProps as InputProps$1, SelectProps as SelectProps$1, RegularImageProps as RegularImageProps$1, TextButtonProps as TextButtonProps$1, TabTheme as TabTheme$1, RadioButtonsProps as RadioButtonsProps$1, RadioButtonInternalConfigProps as RadioButtonInternalConfigProps$1, HorizontalButtonsProps as HorizontalButtonsProps$1, IconProps as IconProps$1 } from 'atoms';
|
18
|
-
import { ImageProps as ImageProps$1, TextMoleculeProps as TextMoleculeProps$1, ButtonProps as ButtonProps$1, TabGroupProps as TabGroupProps$1, AdditionalTabContainerProps as AdditionalTabContainerProps$1, InputFieldProps as InputFieldProps$1, SelectFieldProps as SelectFieldProps$1, RadioButtonFieldProps as RadioButtonFieldProps$1, CheckboxFieldProps as CheckboxFieldProps$1, ConsentType as ConsentType$1, LinkProps as LinkProps$1, AvatarDropdownProps as AvatarDropdownProps$1, AvatarDropdownMenuConfigType as AvatarDropdownMenuConfigType$1, FieldSectionProps as FieldSectionProps$1, BaseButtonProps as BaseButtonProps$1, MenuItem, ConsentProps as ConsentProps$1, HeroImageProps as HeroImageProps$1, ColumnsProps as ColumnsProps$1, EmphasizedTextProps as EmphasizedTextProps$1, FeedContentHeaderProps as FeedContentHeaderProps$1, AlertProps as AlertProps$1, BottomNaVBarItemProps as BottomNaVBarItemProps$1, MenuItemsProps as MenuItemsProps$1 } from 'molecules';
|
18
|
+
import { ChecklistItem as ChecklistItem$1, ImageProps as ImageProps$1, TextMoleculeProps as TextMoleculeProps$1, ButtonProps as ButtonProps$1, TabGroupProps as TabGroupProps$1, AdditionalTabContainerProps as AdditionalTabContainerProps$1, InputFieldProps as InputFieldProps$1, SelectFieldProps as SelectFieldProps$1, RadioButtonFieldProps as RadioButtonFieldProps$1, CheckboxFieldProps as CheckboxFieldProps$1, ConsentType as ConsentType$1, LinkProps as LinkProps$1, AvatarDropdownProps as AvatarDropdownProps$1, AvatarDropdownMenuConfigType as AvatarDropdownMenuConfigType$1, FieldSectionProps as FieldSectionProps$1, BaseButtonProps as BaseButtonProps$1, MenuItem, ConsentProps as ConsentProps$1, HeroImageProps as HeroImageProps$1, ColumnsProps as ColumnsProps$1, EmphasizedTextProps as EmphasizedTextProps$1, FeedContentHeaderProps as FeedContentHeaderProps$1, AlertProps as AlertProps$1, BottomNaVBarItemProps as BottomNaVBarItemProps$1, MenuItemsProps as MenuItemsProps$1 } from 'molecules';
|
19
19
|
import * as react_hook_form from 'react-hook-form';
|
20
20
|
import { UseFormReturn, ValidationMode, ControllerProps, DeepPartial, FieldValues, FormState, Control } from 'react-hook-form';
|
21
21
|
import { TooltipProps as TooltipProps$1 } from 'rc-tooltip/lib/Tooltip';
|
@@ -76,15 +76,15 @@ declare type CheckboxProps = {
|
|
76
76
|
id: string;
|
77
77
|
onClick: (id: string) => void;
|
78
78
|
label: string;
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
internalConfig
|
86
|
-
}
|
87
|
-
declare const Checkbox: ({ id, onClick, label, isError, disabled, isEditMode, isSelected, isRichText, internalConfig, }: CheckboxProps) => JSX.Element;
|
79
|
+
isError?: boolean;
|
80
|
+
disabled?: boolean;
|
81
|
+
isEditMode?: boolean;
|
82
|
+
isSelected?: boolean;
|
83
|
+
isRichText?: boolean;
|
84
|
+
notInteractable?: boolean;
|
85
|
+
internalConfig?: CheckboxInternalConfigProps;
|
86
|
+
};
|
87
|
+
declare const Checkbox: ({ id, onClick, label, isError, disabled, isEditMode, isSelected, isRichText, notInteractable, internalConfig, }: CheckboxProps) => JSX.Element;
|
88
88
|
|
89
89
|
declare type SelectOption = {
|
90
90
|
id: string;
|
@@ -118,8 +118,10 @@ declare type SelectProps = Partial<{
|
|
118
118
|
}>;
|
119
119
|
declare const Select: ({ ref, onBlur, onChange, value, placeholder, options, disabled, optionsPresentation, isError, isEditMode, selectInternalConfig, isRichText, }: SelectProps) => JSX.Element;
|
120
120
|
|
121
|
-
declare const Container: ({ id, type, wide, props, compact, children, metadata, isMobile, }:
|
121
|
+
declare const Container: ({ id, type, wide, props, compact, children, metadata, isMobile, }: {
|
122
122
|
type: containers.ContainerType;
|
123
|
+
metadata: containers.MetadataType;
|
124
|
+
} & Partial<{
|
123
125
|
containerTemplateType: "row_content_container";
|
124
126
|
wide: Partial<{
|
125
127
|
containerStyle: styled_components.CSSProperties;
|
@@ -187,7 +189,6 @@ declare const Container: ({ id, type, wide, props, compact, children, metadata,
|
|
187
189
|
activeOrganismIds: string[];
|
188
190
|
padding: containers.Padding;
|
189
191
|
}>;
|
190
|
-
metadata: containers.MetadataType;
|
191
192
|
isMobile: boolean;
|
192
193
|
}> & {
|
193
194
|
children?: ReactNode;
|
@@ -320,13 +321,20 @@ interface ProcessStepsAttributes {
|
|
320
321
|
steps: ProcessStep[];
|
321
322
|
};
|
322
323
|
}
|
323
|
-
|
324
|
+
interface ChecklistAttributes {
|
325
|
+
checklist: {
|
326
|
+
attributeType: 'checklist';
|
327
|
+
items: ChecklistItem$1[];
|
328
|
+
};
|
329
|
+
}
|
330
|
+
declare type MoleculeTypes = 'image' | 'text' | 'button' | 'video' | 'header_tab_group' | 'input_field' | 'select_field' | 'radio_button_field' | 'checkbox_field' | 'consent' | 'link' | 'password_setup_field' | 'account_button' | 'process_steps' | 'checklist';
|
324
331
|
interface BaseMolecule {
|
325
332
|
id: string;
|
326
|
-
moleculeLibraryId: string;
|
327
|
-
instance: 'molecule';
|
328
333
|
type: MoleculeTypes;
|
329
|
-
|
334
|
+
instance: 'molecule';
|
335
|
+
metadata: MetadataType;
|
336
|
+
moleculeLibraryId: string;
|
337
|
+
organismLibraryMoleculeId: string;
|
330
338
|
}
|
331
339
|
interface ImageMolecule extends BaseMolecule {
|
332
340
|
type: 'image';
|
@@ -379,6 +387,16 @@ interface VideoMolecule extends BaseMolecule {
|
|
379
387
|
}
|
380
388
|
interface TabGroupMolecule extends BaseMolecule {
|
381
389
|
type: 'header_tab_group';
|
390
|
+
attributes: Partial<{
|
391
|
+
tabs: {
|
392
|
+
tabKey: string;
|
393
|
+
text: string;
|
394
|
+
disabled: boolean;
|
395
|
+
divider: boolean;
|
396
|
+
}[];
|
397
|
+
activeTabKey: string;
|
398
|
+
attributeType: 'tab_group';
|
399
|
+
}>;
|
382
400
|
config: {
|
383
401
|
props: TabGroupProps$1;
|
384
402
|
wide: AdditionalTabContainerProps$1;
|
@@ -494,7 +512,16 @@ interface ProcessStepsMoleculeType extends BaseMolecule {
|
|
494
512
|
organismMoleculeLibraryId: string;
|
495
513
|
attributes: ProcessStepsAttributes;
|
496
514
|
}
|
497
|
-
|
515
|
+
interface ChecklistsMolecule extends BaseMolecule {
|
516
|
+
type: 'checklist';
|
517
|
+
config: {
|
518
|
+
props: {
|
519
|
+
gap: SizesTypes$1;
|
520
|
+
} & CheckboxInternalConfigProps;
|
521
|
+
};
|
522
|
+
attributes: ChecklistAttributes;
|
523
|
+
}
|
524
|
+
declare type Molecule = StrictUnion<ImageMolecule | TextMoleculeType | ButtonMolecule | VideoMolecule | TabGroupMolecule | TextInputMolecule | SelectFieldMolecule | RadioButtonFieldMolecule | CheckboxFieldMolecule | ConsentFieldMolecule | LinkMolecule | PasswordSetupMolecule | AccountButtonMolecule | ProcessStepsMoleculeType | ChecklistsMolecule> & Partial<{
|
498
525
|
form: UseFormReturn<any>;
|
499
526
|
formData: AnyObject$1;
|
500
527
|
setFormData: Dispatch<SetStateAction<AnyObject$1>>;
|
@@ -579,13 +606,14 @@ declare type AdditionalContainerProps = Partial<{
|
|
579
606
|
containerStyle: CSSProperties;
|
580
607
|
containerProps: ContainerPropsType;
|
581
608
|
}>;
|
582
|
-
declare type ContainerProps = PropsWithChildren<
|
609
|
+
declare type ContainerProps = PropsWithChildren<{
|
583
610
|
type: ContainerType;
|
611
|
+
metadata: MetadataType;
|
612
|
+
} & Partial<{
|
584
613
|
containerTemplateType: ContainerTemplateType;
|
585
614
|
wide: AdditionalContainerProps;
|
586
615
|
compact: AdditionalContainerProps;
|
587
616
|
props: ContainerPropsType;
|
588
|
-
metadata: MetadataType;
|
589
617
|
isMobile: boolean;
|
590
618
|
}>>;
|
591
619
|
declare type ContainerComponentProps = {
|
@@ -974,7 +1002,7 @@ declare type RichTextEditorProps = Partial<{
|
|
974
1002
|
moleculeId: string;
|
975
1003
|
isTrigger: boolean;
|
976
1004
|
}>;
|
977
|
-
declare const RichTextViewer: ({ value, color, textStyles, font, numberOfLines, extraTextProps, renderElementWrapperComponent, renderElementWrapperProps, htmlElementId, moleculeId, isTrigger, }: RichTextEditorProps) => JSX.Element
|
1005
|
+
declare const RichTextViewer: ({ value, color, textStyles, font, numberOfLines, extraTextProps, renderElementWrapperComponent, renderElementWrapperProps, htmlElementId, moleculeId, isTrigger, }: RichTextEditorProps) => JSX.Element;
|
978
1006
|
|
979
1007
|
declare type RadioButtonInternalConfigProps = Partial<{
|
980
1008
|
selectedRadioOptionBackgroundColor: ThemeColors$1 | string;
|
@@ -1503,7 +1531,8 @@ declare type ConfigurationItem = {
|
|
1503
1531
|
entityId: string;
|
1504
1532
|
organismId: string;
|
1505
1533
|
entityType: MoleculeTypes$1 | ContainerType$1;
|
1506
|
-
entityMetadata
|
1534
|
+
entityMetadata: MetadataType$1;
|
1535
|
+
organismLibraryMoleculeId?: string;
|
1507
1536
|
};
|
1508
1537
|
declare type OrganismContextProviderProps = PropsWithChildren<{
|
1509
1538
|
organismId: string;
|
@@ -1544,9 +1573,7 @@ declare type OrganismContextType = {
|
|
1544
1573
|
editable?: boolean;
|
1545
1574
|
isFormInEditMode?: boolean;
|
1546
1575
|
isConfigurationMode?: boolean;
|
1547
|
-
organismMetadata?:
|
1548
|
-
stateListenerId?: string;
|
1549
|
-
} & AnyObject$1;
|
1576
|
+
organismMetadata?: MetadataType$1;
|
1550
1577
|
onConfigurationItemClicked: (itemInfo?: Omit<ConfigurationItem, 'organismId'>) => void;
|
1551
1578
|
selectedConfigurationItemId?: string;
|
1552
1579
|
};
|
@@ -1958,8 +1985,9 @@ declare type StepperProps = {
|
|
1958
1985
|
htmlElementId?: string;
|
1959
1986
|
metadata: MetadataType$1;
|
1960
1987
|
isMobile?: boolean;
|
1988
|
+
isOnClickDisabled?: boolean;
|
1961
1989
|
};
|
1962
|
-
declare const Stepper: ({ steps, orientation, htmlElementId, metadata, isMobile, }: StepperProps) => JSX.Element | null;
|
1990
|
+
declare const Stepper: ({ steps, orientation, htmlElementId, metadata, isMobile, isOnClickDisabled, }: StepperProps) => JSX.Element | null;
|
1963
1991
|
|
1964
1992
|
declare type PdfDocumentProps = {
|
1965
1993
|
source: string;
|
@@ -2018,8 +2046,9 @@ declare type VideoProps = {
|
|
2018
2046
|
htmlElementId: string;
|
2019
2047
|
moleculeId: string;
|
2020
2048
|
isTrigger: boolean;
|
2049
|
+
isOnClickDisabled: boolean;
|
2021
2050
|
}>;
|
2022
|
-
declare const Video: ({ style, src, width, height, template, autoplay, enableCoverImage, coverImageSrc, styles, htmlElementId, isTrigger, moleculeId, }: VideoProps) => JSX.Element | null;
|
2051
|
+
declare const Video: ({ style, src, width, height, template, autoplay, enableCoverImage, coverImageSrc, styles, htmlElementId, isTrigger, moleculeId, isOnClickDisabled, }: VideoProps) => JSX.Element | null;
|
2023
2052
|
|
2024
2053
|
declare type ImageProps = {
|
2025
2054
|
src: string;
|
@@ -2035,8 +2064,9 @@ declare type ImageProps = {
|
|
2035
2064
|
styles: StylesType;
|
2036
2065
|
metadata: MetadataType$1;
|
2037
2066
|
htmlElementId: string;
|
2067
|
+
isOnClickDisabled: boolean;
|
2038
2068
|
}>;
|
2039
|
-
declare const Image: ({ src, onClick, link, altText, styles, width, height, id, behaveAs, cornerRadius, htmlElementId, metadata, }: ImageProps) => JSX.Element | null;
|
2069
|
+
declare const Image: ({ src, onClick, link, altText, styles, width, height, id, behaveAs, cornerRadius, htmlElementId, metadata, isOnClickDisabled, }: ImageProps) => JSX.Element | null;
|
2040
2070
|
|
2041
2071
|
declare type CarouselProps = {
|
2042
2072
|
children: JSX.Element[];
|
@@ -2170,4 +2200,25 @@ declare type LinkProps = Omit<TextButtonProps$1, 'children'> & Partial<{
|
|
2170
2200
|
}>;
|
2171
2201
|
declare const Link: ({ text, isRichText, htmlElementId, isTrigger, moleculeId, ...props }: LinkProps) => JSX.Element | null;
|
2172
2202
|
|
2173
|
-
|
2203
|
+
declare type ChecklistItem = {
|
2204
|
+
id: string;
|
2205
|
+
isChecked: boolean;
|
2206
|
+
eventId: Nullable<string>;
|
2207
|
+
type: 'user_interactive' | 'system_controlled';
|
2208
|
+
label: {
|
2209
|
+
text: string;
|
2210
|
+
isRichText: boolean;
|
2211
|
+
};
|
2212
|
+
};
|
2213
|
+
declare type ChecklistProps = {
|
2214
|
+
items: ChecklistItem[];
|
2215
|
+
props: {
|
2216
|
+
gap: SizesTypes$1;
|
2217
|
+
} & CheckboxInternalConfigProps$1;
|
2218
|
+
};
|
2219
|
+
declare const Checklist: ({ items, props: { gap, ...checkboxProps }, }: ChecklistProps) => JSX.Element;
|
2220
|
+
declare const ChecklistWrapper: styled_components.StyledComponent<"div", styled_components.DefaultTheme, {
|
2221
|
+
$gap: SizesTypes$1;
|
2222
|
+
}, never>;
|
2223
|
+
|
2224
|
+
export { AccountButtonContext, AccountButtonContextType, AccountButtonMolecule, AccountButtonProvider, AccountButtonProviderProps, AcquisitionForm, AcquisitionFormProps, ActionAttributes, ActionEventType, ActionTypes, AdditionalContainerProps, AdditionalTabContainerProps, Alert, AlertProps, AnnotationsList, ArrowIconWrapper, AuthMethod, Avatar, AvatarDropdown, AvatarDropdownMenuConfigType, AvatarDropdownProps, AvatarProps, BackgroundImage, BaseButtonProps, BaseMolecule, Body, BodyProps, BooleanAttributes, BottomNaVBarItemProps, BottomNavBarItem, BottomNavBarNavigation, BottomNavBarNavigationProps, BreakpointSizesTypes, Button, ButtonActionsContext, ButtonActionsContextType, ButtonActionsProvider, ButtonActionsProviderProps, 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, Checklist, ChecklistAttributes, ChecklistItem, ChecklistProps, ChecklistWrapper, ChecklistsMolecule, Circle, CircleBoxProps, CirclesWrapper, CircularIndicator, CircularIndicatorProps, CircularIndicatorStyledComponent, ColorAttributes, ColumnItem, Columns, ColumnsProps, ConditionConfig, ConditionConfigAttributes, ConditionCriteria, ConfigurationItem, Consent, ConsentCaptureMethod, ConsentFieldMolecule, ConsentProps, ConsentType, Container, ContainerAlignItemsType, ContainerComponent, ContainerComponentProps, ContainerPositionType, ContainerProps, ContainerPropsType, ContainerScrollBehaviourType, ContainerTemplateType, ContainerType, ContainerWrapper, CriteriaType, CustomValidation, CustomValidationProps, CustomValidationRule, DataConnectionAttributes, DataConnectionValues, DataModelFieldFormat, DataModelFieldFormatCodeTypes, DataModelFieldFormatValueTypes, DefaultSelectionType, DefaultTemplate, DefaultTemplateProps, Divider, DividerProps, DownloadFile, 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, FormContainerProps, FormDataStateConfig, FormOrganismItem, FormStateType, FormStepContainerProps, GoogleMap, GoogleMapProps, Header, HeaderProps, HeroImage, HeroImageAlignment, HeroImageProps, HeroImageTemplate, HeroSlider, HeroSliderProps, HeroSliderWrapper, HorizontalButtons, HorizontalButtonsField, HorizontalButtonsProps, HorizontalPadding, ISI, ISIProps, Icon, IconButton, IconButtonProps, IconNames, IconProps, IconWrapper, Image, ImageAttributes, ImageMolecule, ImageProps, Input, InputField, InputFieldInternalConfigProps, InputFieldProps, InputFieldTypes, InputIconProps, InputProps, IterableAttributes, LabelInternalConfig, Link, LinkAttributes, LinkMolecule, LinkProps, LinkVariant, LoginForm, LoginFormProps, MATRIX_MESSAGE_DATA_ID, MATRIX_MESSAGE_ELEMENT_ID, MapPosition, MenuItems, MenuItemsProps, MenuNavigation, MenuNavigationProps, MetadataStateConfig, MetadataType, MlrRichTextViewerContext, MlrRichTextViewerContextType, MlrRichTextViewerProvider, MlrRichTextViewerProviderProps, ModalWrapper, Molecule, MoleculeTypes, NavigationDotsWrapper, OrganismContext, OrganismContextProvider, OrganismContextProviderProps, OrganismContextType, OrganismItem, OrganismItemProps, OrientationType, OrientationTypeLabel, Padding, PaddingProps, PaddingVariants, PasswordSetupMolecule, PdfDocument, PdfDocumentProps, PopupPropsType, ProcessStep, ProcessStepsAttributes, ProcessStepsMoleculeType, ProcessTracker, ProcessTrackerOrientation, ProcessTrackerProps, ProcessTrackerStateValue, ProcessTrackerStatus, ProfileInformation, ProfileInformationProps, RadioButtonField, RadioButtonFieldMolecule, RadioButtonFieldProps, RadioButtonInternalConfigProps, RadioButtons, RadioButtonsProps, RadioGroupWrapper, RegularImage, RegularImageProps, RichTextEditorProps, RichTextViewer, RuleLabelInternalConfig, SegmentationType, Select, SelectAttributes, SelectField, SelectFieldMolecule, SelectFieldProps, SelectInternalConfigurationOptions, SelectOption, SelectProps, SelectableCardGroup, SelectableCardGroupProps, SeoTags, SetPasswordForm, SetPasswordFormProps, SetPasswordRuleValidation, SizesTypes, SlateValueChildType, Slide, SliderProps, SlidesWrapper, Spacer, SpacerProps, Spinner, StateActionType, StateConfigType, StateContext, StateContextProvider, StateContextProviderProps, StateContextType, StateEventType, StateListenerConfigType, StateModifierConfigType, 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, WrappedContainerType, Wrapper, ZealTheme, ZealThemeProvider, ZealUIModal, ZealUIModalProps, acquisitionFormMockFields, baseButtonAllowedConfigurations, defaultTheme, defaultValue, getFieldPlaceholder, getFieldsFromFieldSections, getInitialValuesFromFields, isFormValid, loginMockFields, passwordMockFields, profileInformationMockForm, sectionMockFields, setPasswordMockFields, showAcceptToastMessage, toast, toastStyles, useButtonActionsContext, useMediaQuery, useMlrRichTextViewerContext, useRequiredConsentsAcceptedValues, useStep };
|
package/package.json
CHANGED