@zealicsolutions/web-ui 0.2.103 → 0.2.105
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 +4 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/atoms/Circle/Circle.d.ts +1 -0
- package/dist/cjs/src/atoms/RichTextViewer/types.d.ts +1 -0
- package/dist/cjs/src/containers/MoleculeItem.d.ts +2 -2
- package/dist/cjs/src/containers/types/moleculeTypes.d.ts +3 -9
- package/dist/cjs/src/contexts/MlrRichTextViewerContext/types.d.ts +3 -0
- package/dist/cjs/src/molecules/Button/Button.stories.d.ts +2 -2
- package/dist/cjs/src/molecules/TabGroup/TabGroup.d.ts +2 -4
- package/dist/cjs/src/molecules/TabGroup/styles.d.ts +3 -3
- package/dist/cjs/src/molecules/ZealUIModal/ZealUIModal.d.ts +5 -2
- package/dist/esm/index.js +4 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/atoms/Circle/Circle.d.ts +1 -0
- package/dist/esm/src/atoms/RichTextViewer/types.d.ts +1 -0
- package/dist/esm/src/containers/MoleculeItem.d.ts +2 -2
- package/dist/esm/src/containers/types/moleculeTypes.d.ts +3 -9
- package/dist/esm/src/contexts/MlrRichTextViewerContext/types.d.ts +3 -0
- package/dist/esm/src/molecules/Button/Button.stories.d.ts +2 -2
- package/dist/esm/src/molecules/TabGroup/TabGroup.d.ts +2 -4
- package/dist/esm/src/molecules/TabGroup/styles.d.ts +3 -3
- package/dist/esm/src/molecules/ZealUIModal/ZealUIModal.d.ts +5 -2
- package/dist/index.d.ts +57 -53
- package/package.json +1 -1
- package/dist/cjs/src/molecules/ZealUIModal/styles.d.ts +0 -2
- package/dist/esm/src/molecules/ZealUIModal/styles.d.ts +0 -2
@@ -5,4 +5,5 @@ export declare type CircleBoxProps = {
|
|
5
5
|
type: CircleType;
|
6
6
|
};
|
7
7
|
export declare const Circle: ({ index, type }: CircleBoxProps) => JSX.Element;
|
8
|
+
export declare const CirclesWrapper: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
8
9
|
export {};
|
@@ -1,9 +1,9 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import {
|
2
|
+
import { Molecule } from 'containers';
|
3
3
|
import { TabGroupProps } from 'molecules';
|
4
4
|
export declare const getFullLink: (url: string) => string;
|
5
5
|
export declare const navigateToPage: (url: string) => void;
|
6
|
-
export declare const downloadFile: (
|
6
|
+
export declare const downloadFile: (url?: string, name?: string) => Promise<void>;
|
7
7
|
export declare const MoleculeItem: ({ type, config, attributes, tabsProps, form, id: moleculeId, }: Molecule & {
|
8
8
|
tabsProps?: Pick<TabGroupProps<string, string>, "tabs" | "activeTabKey" | "onTabChange"> | undefined;
|
9
9
|
}) => JSX.Element;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { SelectOption } from 'atoms';
|
2
|
-
import { ButtonProps, CheckboxFieldProps, ImageProps, InputFieldProps, RadioButtonFieldProps, SelectFieldProps, TabGroupProps, TextMoleculeProps } from 'molecules';
|
2
|
+
import { AdditionalTabContainerProps, 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 { AnyObject, Nullable, StrictUnion } from 'typescript';
|
@@ -147,14 +147,8 @@ export interface TabGroupMolecule extends BaseMolecule {
|
|
147
147
|
type: 'header_tab_group';
|
148
148
|
config: {
|
149
149
|
props: TabGroupProps;
|
150
|
-
wide:
|
151
|
-
|
152
|
-
containerProps?: Record<string, unknown>;
|
153
|
-
};
|
154
|
-
compact: {
|
155
|
-
containerStyle?: CSSProperties;
|
156
|
-
containerProps?: Record<string, unknown>;
|
157
|
-
};
|
150
|
+
wide: AdditionalTabContainerProps;
|
151
|
+
compact: AdditionalTabContainerProps;
|
158
152
|
};
|
159
153
|
}
|
160
154
|
export interface TextInputMolecule extends BaseMolecule {
|
@@ -1,9 +1,9 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import type { StoryFn } from '@storybook/react';
|
3
|
-
import { Button as ButtonComponent } from 'molecules
|
3
|
+
import { Button as ButtonComponent } from 'molecules';
|
4
4
|
declare const _default: {
|
5
5
|
title: string;
|
6
|
-
component: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children, buttonStyle, size, textColor, inactiveTextColor, state, href, ...props }: import("molecules
|
6
|
+
component: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children, buttonStyle, size, textColor, inactiveTextColor, state, href, ...props }: import("molecules").ButtonProps) => JSX.Element | null;
|
7
7
|
};
|
8
8
|
export default _default;
|
9
9
|
export declare const Button: StoryFn<typeof ButtonComponent>;
|
@@ -1,11 +1,10 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { TabProps, TabTheme } from 'atoms';
|
3
|
-
import { CSSProperties } from 'styled-components';
|
4
3
|
import { FontSizesTypes, SizesTypes, ThemeColors } from 'theme/types';
|
5
4
|
import { StylesType } from 'typescript';
|
6
5
|
export declare type TabType<T = string, K = string> = Pick<TabProps<T, K>, 'text' | 'tabKey' | 'disabled' | 'options' | 'divider'>;
|
7
|
-
declare type AdditionalTabContainerProps = {
|
8
|
-
containerStyle?:
|
6
|
+
export declare type AdditionalTabContainerProps = {
|
7
|
+
containerStyle?: StylesType;
|
9
8
|
containerProps?: Record<string, unknown>;
|
10
9
|
};
|
11
10
|
export declare type TabGroupProps<T = string, K = string> = {
|
@@ -27,4 +26,3 @@ export declare type TabGroupProps<T = string, K = string> = {
|
|
27
26
|
compact?: AdditionalTabContainerProps;
|
28
27
|
};
|
29
28
|
export declare const TabGroup: <T extends string, K extends string>({ tabs, vertical, activeTabKey, onTabChange, tabTheme, wide, compact, tabSpacing, ...props }: TabGroupProps<T, K>) => JSX.Element;
|
30
|
-
export {};
|
@@ -1,11 +1,11 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { TabTheme } from 'atoms/Tab/Tab';
|
3
3
|
import { SizesTypes, ThemeColors } from 'theme/types';
|
4
|
-
|
4
|
+
import { OverrideStyles, StyledTransientProps } from 'typescript';
|
5
|
+
export declare const TabsWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, StyledTransientProps<{
|
5
6
|
spacing: SizesTypes;
|
6
7
|
vertical: boolean;
|
7
|
-
}, never>;
|
8
|
-
export declare const TabGroupContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
8
|
+
}> & OverrideStyles, never>;
|
9
9
|
declare type TabSliderProps = {
|
10
10
|
width: number;
|
11
11
|
left: number;
|
@@ -1,10 +1,13 @@
|
|
1
1
|
import { ModalProps as MUIModalProps } from '@mui/material';
|
2
2
|
import { KeyboardEvent, PropsWithChildren } from 'react';
|
3
3
|
import { CSSProperties } from 'styled-components';
|
4
|
-
|
4
|
+
import { Callback, OverrideStyles } from '../../typescript';
|
5
|
+
export declare type ZealUIModalProps = PropsWithChildren<Pick<MUIModalProps, 'open'>> & {
|
5
6
|
padding?: number | string;
|
6
7
|
wrapperStyles?: CSSProperties;
|
7
8
|
onKeyDown?: <T extends HTMLElement>(event: KeyboardEvent<T>) => void;
|
8
9
|
modalStyles?: CSSProperties;
|
10
|
+
onClose?: Callback;
|
9
11
|
};
|
10
|
-
export declare const ZealUIModal: ({ children, wrapperStyles, padding, onKeyDown, modalStyles, ...rest }: ZealUIModalProps) => JSX.Element;
|
12
|
+
export declare const ZealUIModal: ({ children, wrapperStyles, padding, onKeyDown, modalStyles, onClose, ...rest }: ZealUIModalProps) => JSX.Element;
|
13
|
+
export declare const ModalWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, OverrideStyles, never>;
|
package/dist/index.d.ts
CHANGED
@@ -2,15 +2,15 @@
|
|
2
2
|
import * as React$1 from 'react';
|
3
3
|
import React__default, { PropsWithChildren, ReactNode, Dispatch, SetStateAction, CSSProperties as CSSProperties$1, ComponentType, KeyboardEvent } from 'react';
|
4
4
|
import * as styled_components from 'styled-components';
|
5
|
-
import { CSSProperties, DefaultTheme } from 'styled-components';
|
5
|
+
import { CSSProperties, DefaultTheme, ThemedCssFunction } from 'styled-components';
|
6
6
|
import { ThemeColors as ThemeColors$1, SizesTypes as SizesTypes$1, FontSizesTypes as FontSizesTypes$2 } from 'theme';
|
7
7
|
import * as typescript from 'typescript';
|
8
|
-
import { StylesType, Callback as Callback$1, OverrideStyles, StyledTransientProps, Nullable, AnyObject, StrictUnion } from 'typescript';
|
8
|
+
import { StylesType as StylesType$1, Callback as Callback$1, OverrideStyles as OverrideStyles$1, StyledTransientProps, Nullable, AnyObject, StrictUnion } from 'typescript';
|
9
9
|
import { RefCallBack, Control as Control$1, ControllerProps as ControllerProps$1 } from 'react-hook-form/dist/types';
|
10
10
|
import { IconNames as IconNames$1 } from 'atoms/Icon/Icon';
|
11
11
|
import { InputFieldTypes as InputFieldTypes$1, FieldTypes as FieldTypes$1, UIFields as UIFields$2 } from 'fieldsConfiguration/types';
|
12
12
|
import { ThemeColors as ThemeColors$2, FontSizesTypes as FontSizesTypes$1, SizesTypes as SizesTypes$2, BreakpointSizesTypes as BreakpointSizesTypes$1 } from 'theme/types';
|
13
|
-
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';
|
13
|
+
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, AdditionalTabContainerProps as AdditionalTabContainerProps$1, RadioButtonFieldProps as RadioButtonFieldProps$1, CheckboxFieldProps as CheckboxFieldProps$1 } from 'molecules';
|
14
14
|
import { TooltipProps as TooltipProps$1 } from 'rc-tooltip/lib/Tooltip';
|
15
15
|
import { WithGoogleMapProps } from 'react-google-maps/lib/withGoogleMap';
|
16
16
|
import { WithScriptjsProps } from 'react-google-maps/lib/withScriptjs';
|
@@ -61,8 +61,8 @@ declare type CheckboxInternalConfigProps = Partial<{
|
|
61
61
|
selectedCheckboxIconColor: ThemeColors$1 | string;
|
62
62
|
buttonPadding: number;
|
63
63
|
textPadding: number;
|
64
|
-
styles: StylesType;
|
65
|
-
wrapperStyles: StylesType;
|
64
|
+
styles: StylesType$1;
|
65
|
+
wrapperStyles: StylesType$1;
|
66
66
|
buttonOptionSpacing?: SizesTypes$1;
|
67
67
|
}>;
|
68
68
|
|
@@ -91,8 +91,8 @@ declare type SelectInternalConfigurationOptions = {
|
|
91
91
|
selectedTextFontSize: number;
|
92
92
|
verticalPadding: number;
|
93
93
|
horizontalPadding: number;
|
94
|
-
wrapperStyles: StylesType;
|
95
|
-
styles: StylesType;
|
94
|
+
wrapperStyles: StylesType$1;
|
95
|
+
styles: StylesType$1;
|
96
96
|
};
|
97
97
|
declare type SelectProps = Partial<{
|
98
98
|
ref: RefCallBack;
|
@@ -117,8 +117,8 @@ declare type InputFieldInternalConfigProps = Partial<{
|
|
117
117
|
placeholderTextFontSize: number;
|
118
118
|
verticalPadding: number;
|
119
119
|
horizontalPadding: number;
|
120
|
-
styles: StylesType;
|
121
|
-
wrapperStyles: StylesType;
|
120
|
+
styles: StylesType$1;
|
121
|
+
wrapperStyles: StylesType$1;
|
122
122
|
}>;
|
123
123
|
declare type InputIconProps = {
|
124
124
|
name: IconNames$1;
|
@@ -148,7 +148,7 @@ declare type TextProps = {
|
|
148
148
|
variant: FontSizesTypes$1;
|
149
149
|
layout?: 'div' | 'span';
|
150
150
|
type?: TextTypes;
|
151
|
-
styles?: StylesType;
|
151
|
+
styles?: StylesType$1;
|
152
152
|
color?: ThemeColors$2 | string;
|
153
153
|
numberOfLines?: number;
|
154
154
|
textAlign?: TextAlign;
|
@@ -217,7 +217,7 @@ declare type RegularImageProps = {
|
|
217
217
|
height: number | string;
|
218
218
|
onClick: Callback$1;
|
219
219
|
cornerRadius: number;
|
220
|
-
}> & OverrideStyles;
|
220
|
+
}> & OverrideStyles$1;
|
221
221
|
declare const RegularImage: styled_components.StyledComponent<"img", styled_components.DefaultTheme, {
|
222
222
|
src: string;
|
223
223
|
} & Partial<{
|
@@ -226,7 +226,7 @@ declare const RegularImage: styled_components.StyledComponent<"img", styled_comp
|
|
226
226
|
height: number | string;
|
227
227
|
onClick: Callback$1;
|
228
228
|
cornerRadius: number;
|
229
|
-
}> & OverrideStyles, never>;
|
229
|
+
}> & OverrideStyles$1, never>;
|
230
230
|
declare const BackgroundImage: styled_components.StyledComponent<"img", styled_components.DefaultTheme, {
|
231
231
|
src: string;
|
232
232
|
} & Partial<{
|
@@ -235,7 +235,7 @@ declare const BackgroundImage: styled_components.StyledComponent<"img", styled_c
|
|
235
235
|
height: number | string;
|
236
236
|
onClick: Callback$1;
|
237
237
|
cornerRadius: number;
|
238
|
-
}> & OverrideStyles, never>;
|
238
|
+
}> & OverrideStyles$1, never>;
|
239
239
|
|
240
240
|
declare type TextButtonProps = Pick<BaseButtonProps$1, 'disabled' | 'onClick' | 'children' | 'colorTheme' | 'size'> & {
|
241
241
|
buttonLink?: string;
|
@@ -254,9 +254,9 @@ declare type ValidationTagProps = {
|
|
254
254
|
declare const ValidationTag: ({ text, status }: ValidationTagProps) => JSX.Element;
|
255
255
|
|
256
256
|
declare type TooltipProps = Pick<TooltipProps$1, 'overlay' | 'placement' | 'trigger' | 'visible' | 'children'> & {
|
257
|
-
styles?: StylesType;
|
257
|
+
styles?: StylesType$1;
|
258
258
|
};
|
259
|
-
declare const StyleWrapper: styled_components.StyledComponent<"div", styled_components.DefaultTheme, OverrideStyles, never>;
|
259
|
+
declare const StyleWrapper: styled_components.StyledComponent<"div", styled_components.DefaultTheme, OverrideStyles$1, never>;
|
260
260
|
declare const Tooltip: ({ trigger, placement, styles, ...props }: TooltipProps) => JSX.Element;
|
261
261
|
|
262
262
|
declare type ToastType = 'success' | 'infoTierOne' | 'infoTierTwo' | 'warning' | 'error';
|
@@ -333,7 +333,7 @@ declare type RichTextEditorProps = Partial<{
|
|
333
333
|
value: string;
|
334
334
|
font: FontSizesTypes$2;
|
335
335
|
color: ThemeColors$1 | string;
|
336
|
-
textStyles: StylesType;
|
336
|
+
textStyles: StylesType$1;
|
337
337
|
numberOfLines?: number;
|
338
338
|
extraTextProps?: TextProps$1;
|
339
339
|
}>;
|
@@ -344,10 +344,10 @@ declare type RadioButtonInternalConfigProps = Partial<{
|
|
344
344
|
selectedRadioOptionIndicatorColor: ThemeColors$1 | string;
|
345
345
|
buttonPadding: number;
|
346
346
|
textPadding: number;
|
347
|
-
styles: StylesType;
|
348
|
-
wrapperStyles: StylesType;
|
347
|
+
styles: StylesType$1;
|
348
|
+
wrapperStyles: StylesType$1;
|
349
349
|
buttonOptionSpacing: SizesTypes$1;
|
350
|
-
radioGroupWrapperStyles: StylesType;
|
350
|
+
radioGroupWrapperStyles: StylesType$1;
|
351
351
|
}>;
|
352
352
|
declare type RadioButtonsProps<T extends string> = Partial<{
|
353
353
|
ref: RefCallBack;
|
@@ -388,7 +388,7 @@ declare const RadioButtons: <T extends string>({ ref, name, value, options, onBl
|
|
388
388
|
}>) => JSX.Element;
|
389
389
|
declare const RadioGroupWrapper: styled_components.StyledComponent<typeof RadioGroup, styled_components.DefaultTheme, StyledTransientProps<{
|
390
390
|
isRow: boolean;
|
391
|
-
}> & OverrideStyles, never>;
|
391
|
+
}> & OverrideStyles$1, never>;
|
392
392
|
|
393
393
|
declare type CircleType = 'link' | 'message';
|
394
394
|
declare type CircleBoxProps = {
|
@@ -396,6 +396,7 @@ declare type CircleBoxProps = {
|
|
396
396
|
type: CircleType;
|
397
397
|
};
|
398
398
|
declare const Circle: ({ index, type }: CircleBoxProps) => JSX.Element;
|
399
|
+
declare const CirclesWrapper: styled_components.StyledComponent<"span", styled_components.DefaultTheme, {}, never>;
|
399
400
|
|
400
401
|
declare type CircularIndicatorProps = {
|
401
402
|
active: boolean;
|
@@ -441,7 +442,7 @@ declare type TabProps<T = string, K = string> = {
|
|
441
442
|
defaultTabTextColor: ThemeColors$1 | string;
|
442
443
|
selectedTabTextColor: ThemeColors$1 | string;
|
443
444
|
selectedTabIndicatorColor: ThemeColors$1 | string;
|
444
|
-
styles: StylesType;
|
445
|
+
styles: StylesType$1;
|
445
446
|
}>;
|
446
447
|
declare const ZealTab: <T extends string, K extends string>({ options, onClick, text, tabKey, vertical, onOptionClick, tabTheme, tabFont, tabPadding, selectedTabIndicatorColor, textSize, defaultTabTextColor, ...tabProps }: TabProps<T, K>, ref: React__default.ForwardedRef<TabElement>) => JSX.Element;
|
447
448
|
declare const Tab: <T, K>(props: {
|
@@ -563,7 +564,7 @@ declare type FeedContentProps = {
|
|
563
564
|
showDefaultDocumentStyles?: boolean;
|
564
565
|
destinationLink?: string;
|
565
566
|
onDestinationHandler?: Callback$1;
|
566
|
-
imageStyles?: StylesType;
|
567
|
+
imageStyles?: StylesType$1;
|
567
568
|
videoStyles?: CSSProperties;
|
568
569
|
isEnabledFavoriting?: boolean;
|
569
570
|
isFavorite?: boolean;
|
@@ -874,6 +875,9 @@ declare type AnnotationsList = {
|
|
874
875
|
tags: {
|
875
876
|
id: string;
|
876
877
|
label: string;
|
878
|
+
entityIds: string[];
|
879
|
+
moleculeIds: string[];
|
880
|
+
referencedByIds: string[];
|
877
881
|
}[];
|
878
882
|
links: {
|
879
883
|
referencedById: string;
|
@@ -914,15 +918,15 @@ declare type LabelInternalConfig = {
|
|
914
918
|
fontWeight: string | number;
|
915
919
|
color: ThemeColors$1 | string;
|
916
920
|
padding: string;
|
917
|
-
styles: StylesType;
|
918
|
-
wrapperStyles: StylesType;
|
921
|
+
styles: StylesType$1;
|
922
|
+
wrapperStyles: StylesType$1;
|
919
923
|
};
|
920
924
|
declare type RuleLabelInternalConfig = {
|
921
925
|
requiredTextColor: ThemeColors$1 | string;
|
922
926
|
optionalTextColor: ThemeColors$1 | string;
|
923
927
|
padding: string;
|
924
928
|
fontSize: number;
|
925
|
-
styles: StylesType;
|
929
|
+
styles: StylesType$1;
|
926
930
|
};
|
927
931
|
declare type TooltipInternalConfig = {
|
928
932
|
fontVariant: FontSizesTypes$2;
|
@@ -932,8 +936,8 @@ declare type TooltipInternalConfig = {
|
|
932
936
|
padding: string;
|
933
937
|
backgroundColor: ThemeColors$1 | string;
|
934
938
|
iconColor: ThemeColors$1 | string;
|
935
|
-
styles: StylesType;
|
936
|
-
wrapperStyles: StylesType;
|
939
|
+
styles: StylesType$1;
|
940
|
+
wrapperStyles: StylesType$1;
|
937
941
|
};
|
938
942
|
declare type FieldLabelsProps = {
|
939
943
|
label?: string;
|
@@ -956,7 +960,7 @@ declare type InputFieldProps = Partial<{
|
|
956
960
|
optional: boolean;
|
957
961
|
defaultValue: string;
|
958
962
|
inputProps: InputProps$1;
|
959
|
-
styles: StylesType;
|
963
|
+
styles: StylesType$1;
|
960
964
|
labelsProps: FieldLabelsProps;
|
961
965
|
}>;
|
962
966
|
declare const InputField: ({ control, name, inputProps, styles, labelsProps, defaultValue, optional, required, rules, }: InputFieldProps) => JSX.Element;
|
@@ -968,13 +972,13 @@ declare type FieldMapperProps<T extends object> = {
|
|
968
972
|
spacer?: number;
|
969
973
|
isTooltipVisible?: boolean;
|
970
974
|
optionsPresentation?: boolean;
|
971
|
-
styles?: StylesType;
|
975
|
+
styles?: StylesType$1;
|
972
976
|
};
|
973
977
|
declare const FieldMapper: <T extends object>({ field, isEditMode, spacer, control, isTooltipVisible, optionsPresentation, styles, }: FieldMapperProps<T>) => JSX.Element | null;
|
974
978
|
|
975
979
|
declare type CheckboxesProps = Partial<{
|
976
|
-
checkboxGroupWrapperStyles: StylesType;
|
977
|
-
checkboxFieldWrapperStyles: StylesType;
|
980
|
+
checkboxGroupWrapperStyles: StylesType$1;
|
981
|
+
checkboxFieldWrapperStyles: StylesType$1;
|
978
982
|
onChange: (id: string) => void;
|
979
983
|
disabled: boolean;
|
980
984
|
options?: SelectOption$1[];
|
@@ -992,7 +996,7 @@ declare type CheckboxFieldProps = Partial<{
|
|
992
996
|
control: Control$1<any>;
|
993
997
|
required: boolean;
|
994
998
|
optional: boolean;
|
995
|
-
wrapperStyles: StylesType;
|
999
|
+
wrapperStyles: StylesType$1;
|
996
1000
|
}>;
|
997
1001
|
declare const CheckboxField: ({ checkboxesProps, name, rules, control, optional, required, labelsProps, wrapperStyles, }: CheckboxFieldProps) => JSX.Element;
|
998
1002
|
|
@@ -1013,7 +1017,7 @@ declare type SelectFieldProps = Partial<{
|
|
1013
1017
|
required: boolean;
|
1014
1018
|
optional: boolean;
|
1015
1019
|
defaultValue: string;
|
1016
|
-
styles: StylesType;
|
1020
|
+
styles: StylesType$1;
|
1017
1021
|
}>;
|
1018
1022
|
declare const SelectField: ({ selectProps, name, defaultValue, optional, required, control, styles, labelsProps, rules, }: SelectFieldProps) => JSX.Element;
|
1019
1023
|
|
@@ -1108,7 +1112,7 @@ declare const AvatarDropdown: <T extends string | number>({ avatarProps, menuCon
|
|
1108
1112
|
|
1109
1113
|
declare type TabType<T = string, K = string> = Pick<TabProps$1<T, K>, 'text' | 'tabKey' | 'disabled' | 'options' | 'divider'>;
|
1110
1114
|
declare type AdditionalTabContainerProps = {
|
1111
|
-
containerStyle?:
|
1115
|
+
containerStyle?: StylesType$1;
|
1112
1116
|
containerProps?: Record<string, unknown>;
|
1113
1117
|
};
|
1114
1118
|
declare type TabGroupProps<T = string, K = string> = {
|
@@ -1116,7 +1120,7 @@ declare type TabGroupProps<T = string, K = string> = {
|
|
1116
1120
|
activeTabKey: T;
|
1117
1121
|
onTabChange?: (tabKey: T) => void;
|
1118
1122
|
onOptionClick?: (optionKey: K) => void;
|
1119
|
-
styles?: StylesType;
|
1123
|
+
styles?: StylesType$1;
|
1120
1124
|
vertical?: boolean;
|
1121
1125
|
tabTheme?: TabTheme$1;
|
1122
1126
|
tabFont?: FontSizesTypes$1;
|
@@ -1157,7 +1161,7 @@ declare const EmphasizedText: ({ textContent, invertColors }: EmphasizedTextProp
|
|
1157
1161
|
declare type RadioButtonFieldProps<T extends string> = Partial<{
|
1158
1162
|
name: string;
|
1159
1163
|
rules: ControllerProps$1['rules'];
|
1160
|
-
styles: StylesType;
|
1164
|
+
styles: StylesType$1;
|
1161
1165
|
control: Control$1<any>;
|
1162
1166
|
optional: boolean;
|
1163
1167
|
required: boolean;
|
@@ -1274,6 +1278,10 @@ declare type ToggleFieldProps = {
|
|
1274
1278
|
};
|
1275
1279
|
declare const HorizontalButtonsField: ({ name, title, control, description, horizontalButtonsProps, }: ToggleFieldProps) => JSX.Element;
|
1276
1280
|
|
1281
|
+
declare type StylesType = ReturnType<ThemedCssFunction<DefaultTheme>>;
|
1282
|
+
declare type OverrideStyles = {
|
1283
|
+
$styles?: StylesType;
|
1284
|
+
};
|
1277
1285
|
declare type Callback = () => void;
|
1278
1286
|
|
1279
1287
|
declare type BottomNaVBarItemProps = {
|
@@ -1307,7 +1315,7 @@ declare type ImageProps = {
|
|
1307
1315
|
height: number;
|
1308
1316
|
cornerRadius: number;
|
1309
1317
|
behaveAs: 'background' | 'regular';
|
1310
|
-
styles: StylesType;
|
1318
|
+
styles: StylesType$1;
|
1311
1319
|
}>;
|
1312
1320
|
declare const Image: ({ src, link, altText, styles, width, height, id, behaveAs, cornerRadius, }: ImageProps) => JSX.Element;
|
1313
1321
|
|
@@ -1336,7 +1344,7 @@ declare type TextMoleculeProps = Partial<{
|
|
1336
1344
|
lineHeight: number;
|
1337
1345
|
fontWeight: string | number;
|
1338
1346
|
isRichText: boolean;
|
1339
|
-
styles: StylesType;
|
1347
|
+
styles: StylesType$1;
|
1340
1348
|
textAlign: 'center' | 'right' | 'left';
|
1341
1349
|
}> & Pick<TextProps$1, 'seoTag' | 'numberOfLines'>;
|
1342
1350
|
declare const TextMolecule: ({ isRichText, variant, text, seoTag, fontVariant, textColor, textSize, fontWeight, lineHeight, letterSpacing, styles, textAlign, ...restOfTextProps }: TextMoleculeProps) => JSX.Element;
|
@@ -1363,7 +1371,7 @@ declare type BaseButtonProps = PropsWithChildren<{
|
|
1363
1371
|
inactiveButtonColor?: ThemeColors$1 | string;
|
1364
1372
|
inactiveStrokeColor?: ThemeColors$1 | string;
|
1365
1373
|
inactiveTextColor?: ThemeColors$1 | string;
|
1366
|
-
styles?: StylesType;
|
1374
|
+
styles?: StylesType$1;
|
1367
1375
|
colorTheme?: 'light' | 'dark';
|
1368
1376
|
href?: string;
|
1369
1377
|
type?: ButtonType;
|
@@ -1375,18 +1383,20 @@ declare type ButtonProps = BaseButtonProps & {
|
|
1375
1383
|
elementId?: string;
|
1376
1384
|
loading?: boolean;
|
1377
1385
|
isRichText?: boolean;
|
1378
|
-
containerStyle?: StylesType;
|
1379
|
-
buttonStyle?: StylesType;
|
1386
|
+
containerStyle?: StylesType$1;
|
1387
|
+
buttonStyle?: StylesType$1;
|
1380
1388
|
};
|
1381
1389
|
declare const Button: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children, buttonStyle, size, textColor, inactiveTextColor, state, href, ...props }: ButtonProps) => JSX.Element | null;
|
1382
1390
|
|
1383
|
-
declare type ZealUIModalProps = PropsWithChildren<Pick<ModalProps, 'open'
|
1391
|
+
declare type ZealUIModalProps = PropsWithChildren<Pick<ModalProps, 'open'>> & {
|
1384
1392
|
padding?: number | string;
|
1385
1393
|
wrapperStyles?: CSSProperties;
|
1386
1394
|
onKeyDown?: <T extends HTMLElement>(event: KeyboardEvent<T>) => void;
|
1387
1395
|
modalStyles?: CSSProperties;
|
1396
|
+
onClose?: Callback;
|
1388
1397
|
};
|
1389
|
-
declare const ZealUIModal: ({ children, wrapperStyles, padding, onKeyDown, modalStyles, ...rest }: ZealUIModalProps) => JSX.Element;
|
1398
|
+
declare const ZealUIModal: ({ children, wrapperStyles, padding, onKeyDown, modalStyles, onClose, ...rest }: ZealUIModalProps) => JSX.Element;
|
1399
|
+
declare const ModalWrapper: styled_components.StyledComponent<"div", styled_components.DefaultTheme, OverrideStyles, never>;
|
1390
1400
|
|
1391
1401
|
declare const Container: ({ children, wide, compact, type, props }: ContainerProps$1) => JSX.Element;
|
1392
1402
|
declare const ContainerComponent: ({ type, items, config, tabsProps }: ContainerComponentProps$1) => JSX.Element | null;
|
@@ -1534,14 +1544,8 @@ interface TabGroupMolecule extends BaseMolecule {
|
|
1534
1544
|
type: 'header_tab_group';
|
1535
1545
|
config: {
|
1536
1546
|
props: TabGroupProps$1;
|
1537
|
-
wide:
|
1538
|
-
|
1539
|
-
containerProps?: Record<string, unknown>;
|
1540
|
-
};
|
1541
|
-
compact: {
|
1542
|
-
containerStyle?: CSSProperties;
|
1543
|
-
containerProps?: Record<string, unknown>;
|
1544
|
-
};
|
1547
|
+
wide: AdditionalTabContainerProps$1;
|
1548
|
+
compact: AdditionalTabContainerProps$1;
|
1545
1549
|
};
|
1546
1550
|
}
|
1547
1551
|
interface TextInputMolecule extends BaseMolecule {
|
@@ -1607,7 +1611,7 @@ declare type ContainerPropsType = Partial<{
|
|
1607
1611
|
position: ContainerPositionType;
|
1608
1612
|
scrollBehaviour: ContainerScrollBehaviourType;
|
1609
1613
|
cornerRadius: number;
|
1610
|
-
styles: StylesType;
|
1614
|
+
styles: StylesType$1;
|
1611
1615
|
formProps: {
|
1612
1616
|
mode: keyof ValidationMode;
|
1613
1617
|
};
|
@@ -1655,4 +1659,4 @@ declare const OrganismItem: ({ item, tabsProps, }: {
|
|
1655
1659
|
tabsProps?: Pick<TabGroupProps$1<string, string>, "tabs" | "activeTabKey" | "onTabChange"> | undefined;
|
1656
1660
|
}) => JSX.Element | null;
|
1657
1661
|
|
1658
|
-
export { AcquisitionForm, AcquisitionFormProps, ActionAttributes, ActionTypes, AdditionalContainerProps, Alert, AlertProps, AnnotationsList, ArrowIconWrapper, AuthMethod, Avatar, AvatarDropdown, 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, Circle, CircleBoxProps, CircularIndicator, CircularIndicatorProps, CircularIndicatorStyledComponent, ColumnItem, Columns, ColumnsProps, Consent, ConsentProps, Container, ContainerComponent, ContainerComponentProps, ContainerPositionType, ContainerProps, ContainerPropsType, ContainerScrollBehaviourType, ContainerType, ContainerWrapper, ContentStatus, 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, FileMatrixMessageDTO, FileObjectDTO, FileType, 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, RadioButtons, RadioButtonsProps, RadioGroupWrapper, 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, ZealUIModal, ZealUIModalProps, acquisitionFormMockFields, defaultTheme, getFieldPlaceholder, getFieldsFromFieldSections, getInitialValuesFromFields, isFormValid, loginMockFields, profileInformationMockForm, sectionMockFields, setPasswordMockFields, showAcceptToastMessage, toast, toastStyles, useButtonActionsContext, useMediaQuery, useMlrRichTextViewerContext, useRequiredConsentsAcceptedValues, useStep };
|
1662
|
+
export { AcquisitionForm, AcquisitionFormProps, ActionAttributes, ActionTypes, AdditionalContainerProps, AdditionalTabContainerProps, Alert, AlertProps, AnnotationsList, ArrowIconWrapper, AuthMethod, Avatar, AvatarDropdown, 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, Circle, CircleBoxProps, CirclesWrapper, CircularIndicator, CircularIndicatorProps, CircularIndicatorStyledComponent, ColumnItem, Columns, ColumnsProps, Consent, ConsentProps, Container, ContainerComponent, ContainerComponentProps, ContainerPositionType, ContainerProps, ContainerPropsType, ContainerScrollBehaviourType, ContainerType, ContainerWrapper, ContentStatus, 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, FileMatrixMessageDTO, FileObjectDTO, FileType, 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, ModalWrapper, Molecule, MoleculeTypes, NavigationDotsWrapper, OrganismItem, OrientationType, PdfDocument, PdfDocumentProps, ProcessTracker, ProcessTrackerProps, ProcessTrackerStatus, ProfileInformation, ProfileInformationProps, RadioButtonField, RadioButtonFieldMolecule, RadioButtonFieldProps, RadioButtonInternalConfigProps, RadioButtons, RadioButtonsProps, RadioGroupWrapper, 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, ZealUIModal, ZealUIModalProps, acquisitionFormMockFields, defaultTheme, getFieldPlaceholder, getFieldsFromFieldSections, getInitialValuesFromFields, isFormValid, loginMockFields, profileInformationMockForm, sectionMockFields, setPasswordMockFields, showAcceptToastMessage, toast, toastStyles, useButtonActionsContext, useMediaQuery, useMlrRichTextViewerContext, useRequiredConsentsAcceptedValues, useStep };
|
package/package.json
CHANGED