@zealicsolutions/web-ui 0.2.66 → 0.2.68
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 +25 -25
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/atoms/Buttons/Button.d.ts +15 -3
- package/dist/cjs/src/atoms/Buttons/Button.stories.d.ts +1 -1
- package/dist/cjs/src/atoms/Buttons/TextButton.d.ts +5 -3
- package/dist/cjs/src/atoms/RegularImage/RegularImage.d.ts +12 -0
- package/dist/cjs/src/atoms/RegularImage/RegularImage.stories.d.ts +8 -0
- package/dist/cjs/src/atoms/RichTextViewer/RichTextViewer.d.ts +5 -3
- package/dist/{esm/src/molecules → cjs/src/atoms}/Tab/Tab.d.ts +2 -2
- package/dist/cjs/src/atoms/Tab/Tab.stories.d.ts +12 -0
- package/dist/{esm/src/molecules → cjs/src/atoms}/Tab/styles.d.ts +3 -2
- package/dist/cjs/src/{molecules → atoms}/Tab/utils.d.ts +1 -1
- package/dist/cjs/src/atoms/TextWrapper/TextWrapper.d.ts +6 -4
- package/dist/cjs/src/atoms/TextWrapper/TextWrapper.stories.d.ts +4 -4
- package/dist/cjs/src/atoms/index.d.ts +2 -1
- package/dist/cjs/src/helpers/constants.d.ts +1 -0
- package/dist/cjs/src/helpers/utils.d.ts +1 -0
- package/dist/cjs/src/helpers/validations.d.ts +1 -0
- package/dist/cjs/src/molecules/AvatarDropdown/AvatarDropdown.d.ts +1 -1
- package/dist/cjs/src/molecules/CheckboxField/CheckboxField.d.ts +1 -1
- package/dist/cjs/src/molecules/Columns/Column.d.ts +1 -1
- package/dist/cjs/src/molecules/Columns/styles.d.ts +5 -3
- package/dist/cjs/src/molecules/HeroImage/HeroImage.d.ts +2 -2
- package/dist/cjs/src/molecules/Image/Image.d.ts +14 -0
- package/dist/cjs/src/molecules/Image/Image.stories.d.ts +9 -0
- package/dist/cjs/src/molecules/SelectableInfoCard/BaseSelectable.d.ts +1 -1
- package/dist/cjs/src/molecules/SelectableInfoCard/styles.d.ts +4 -3
- package/dist/cjs/src/molecules/TabGroup/TabGroup.d.ts +2 -2
- package/dist/cjs/src/molecules/TabGroup/TabGroup.stories.d.ts +4 -4
- package/dist/cjs/src/molecules/TabGroup/styles.d.ts +1 -1
- package/dist/cjs/src/molecules/TextMolecule/TextMolecule.d.ts +16 -0
- package/dist/cjs/src/molecules/TextMolecule/TextMolecule.stories.d.ts +9 -0
- package/dist/cjs/src/molecules/index.d.ts +0 -1
- package/dist/cjs/src/organisms/AccountInformation/AccountInformation.d.ts +2 -2
- package/dist/cjs/src/organisms/Footer/styles.d.ts +1 -1
- package/dist/cjs/src/organisms/Header/styles.d.ts +3 -2
- package/dist/cjs/src/organisms/ProcessTracker/mocks.d.ts +1 -1
- package/dist/cjs/src/organisms/SetPasswordForm/utils.d.ts +2 -2
- package/dist/cjs/src/organisms/TwoFactorAuth/constants.d.ts +1 -1
- package/dist/esm/index.js +26 -26
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/atoms/Buttons/Button.d.ts +15 -3
- package/dist/esm/src/atoms/Buttons/Button.stories.d.ts +1 -1
- package/dist/esm/src/atoms/Buttons/TextButton.d.ts +5 -3
- package/dist/esm/src/atoms/RegularImage/RegularImage.d.ts +12 -0
- package/dist/esm/src/atoms/RegularImage/RegularImage.stories.d.ts +8 -0
- package/dist/esm/src/atoms/RichTextViewer/RichTextViewer.d.ts +5 -3
- package/dist/{cjs/src/molecules → esm/src/atoms}/Tab/Tab.d.ts +2 -2
- package/dist/esm/src/atoms/Tab/Tab.stories.d.ts +12 -0
- package/dist/{cjs/src/molecules → esm/src/atoms}/Tab/styles.d.ts +3 -2
- package/dist/esm/src/{molecules → atoms}/Tab/utils.d.ts +1 -1
- package/dist/esm/src/atoms/TextWrapper/TextWrapper.d.ts +6 -4
- package/dist/esm/src/atoms/TextWrapper/TextWrapper.stories.d.ts +4 -4
- package/dist/esm/src/atoms/index.d.ts +2 -1
- package/dist/esm/src/helpers/constants.d.ts +1 -0
- package/dist/esm/src/helpers/utils.d.ts +1 -0
- package/dist/esm/src/helpers/validations.d.ts +1 -0
- package/dist/esm/src/molecules/AvatarDropdown/AvatarDropdown.d.ts +1 -1
- package/dist/esm/src/molecules/CheckboxField/CheckboxField.d.ts +1 -1
- package/dist/esm/src/molecules/Columns/Column.d.ts +1 -1
- package/dist/esm/src/molecules/Columns/styles.d.ts +5 -3
- package/dist/esm/src/molecules/HeroImage/HeroImage.d.ts +2 -2
- package/dist/esm/src/molecules/Image/Image.d.ts +14 -0
- package/dist/esm/src/molecules/Image/Image.stories.d.ts +9 -0
- package/dist/esm/src/molecules/SelectableInfoCard/BaseSelectable.d.ts +1 -1
- package/dist/esm/src/molecules/SelectableInfoCard/styles.d.ts +4 -3
- package/dist/esm/src/molecules/TabGroup/TabGroup.d.ts +2 -2
- package/dist/esm/src/molecules/TabGroup/TabGroup.stories.d.ts +4 -4
- package/dist/esm/src/molecules/TabGroup/styles.d.ts +1 -1
- package/dist/esm/src/molecules/TextMolecule/TextMolecule.d.ts +16 -0
- package/dist/esm/src/molecules/TextMolecule/TextMolecule.stories.d.ts +9 -0
- package/dist/esm/src/molecules/index.d.ts +0 -1
- package/dist/esm/src/organisms/AccountInformation/AccountInformation.d.ts +2 -2
- package/dist/esm/src/organisms/Footer/styles.d.ts +1 -1
- package/dist/esm/src/organisms/Header/styles.d.ts +3 -2
- package/dist/esm/src/organisms/ProcessTracker/mocks.d.ts +1 -1
- package/dist/esm/src/organisms/SetPasswordForm/utils.d.ts +2 -2
- package/dist/esm/src/organisms/TwoFactorAuth/constants.d.ts +1 -1
- package/dist/index.d.ts +104 -87
- package/package.json +3 -2
- package/dist/cjs/src/atoms/Image/Image.d.ts +0 -8
- package/dist/cjs/src/atoms/Image/Image.stories.d.ts +0 -8
- package/dist/esm/src/atoms/Image/Image.d.ts +0 -8
- package/dist/esm/src/atoms/Image/Image.stories.d.ts +0 -8
package/dist/index.d.ts
CHANGED
@@ -3,24 +3,22 @@ import * as React$1 from 'react';
|
|
3
3
|
import React__default, { PropsWithChildren, ReactNode, CSSProperties as CSSProperties$1, ComponentType, Dispatch, SetStateAction } from 'react';
|
4
4
|
import * as styled_components from 'styled-components';
|
5
5
|
import { CSSProperties, DefaultTheme } from 'styled-components';
|
6
|
+
import { FontSizesTypes as FontSizesTypes$1, ThemeColors as ThemeColors$1, SizesTypes as SizesTypes$1 } from 'theme';
|
6
7
|
import { Callback as Callback$1, StylesType, Nullable } from 'typescript';
|
7
8
|
import { IconNames as IconNames$1 } from 'atoms/Icon/Icon';
|
8
9
|
import { InputFieldTypes as InputFieldTypes$1, FieldTypes as FieldTypes$1, UIFields as UIFields$1 } from 'fieldsConfiguration/types';
|
9
|
-
import
|
10
|
-
import * as _mui_material from '@mui/material';
|
11
|
-
import { DrawerProps as DrawerProps$1 } from '@mui/material';
|
12
|
-
import { FontSizesTypes as FontSizesTypes$1, ThemeColors as ThemeColors$1, SizesTypes as SizesTypes$2, BreakpointSizesTypes as BreakpointSizesTypes$1 } from 'theme/types';
|
13
|
-
import { ThemeColors as ThemeColors$2, SizesTypes as SizesTypes$1, FontSizesTypes as FontSizesTypes$2 } from 'theme';
|
10
|
+
import { FontSizesTypes as FontSizesTypes$2, ThemeColors as ThemeColors$2, SizesTypes as SizesTypes$2, BreakpointSizesTypes as BreakpointSizesTypes$1 } from 'theme/types';
|
14
11
|
import { FeedContentTemplateTypes as FeedContentTemplateTypes$1, FeedContentProps as FeedContentProps$1 } from 'organisms/FeedContent/types';
|
15
12
|
import { TooltipProps as TooltipProps$1 } from 'rc-tooltip/lib/Tooltip';
|
16
13
|
import { WithGoogleMapProps } from 'react-google-maps/lib/withGoogleMap';
|
17
14
|
import { WithScriptjsProps } from 'react-google-maps/lib/withScriptjs';
|
18
|
-
import { IconNames as IconNames$2, TouchableOpacityProps as TouchableOpacityProps$1, InputProps as InputProps$1,
|
15
|
+
import { TextProps as TextProps$1, IconNames as IconNames$2, TouchableOpacityProps as TouchableOpacityProps$1, InputProps as InputProps$1, CheckBoxProps as CheckBoxProps$1, RegularImageProps as RegularImageProps$1, ButtonProps as ButtonProps$1, TextButtonProps as TextButtonProps$1, AvatarProps as AvatarProps$1, TabProps as TabProps$1, TabTheme as TabTheme$1, RadioButtonsProps as RadioButtonsProps$1, HorizontalButtonsProps as HorizontalButtonsProps$1, IconProps as IconProps$1 } from 'atoms';
|
16
|
+
import { MenuItem as MenuItem$1, FieldSectionProps as FieldSectionProps$1, MenuItemsProps as MenuItemsProps$1, InputFieldProps as InputFieldProps$1, TabProps as TabProps$2, HeroImageProps as HeroImageProps$1, ColumnsProps as ColumnsProps$1, EmphasizedTextProps as EmphasizedTextProps$1, TabGroupProps as TabGroupProps$1, AvatarDropdownProps as AvatarDropdownProps$1, FeedContentHeaderProps as FeedContentHeaderProps$1, AlertProps as AlertProps$1, BottomNaVBarItemProps as BottomNaVBarItemProps$1 } from 'molecules';
|
19
17
|
import { Control, ControllerProps } from 'react-hook-form/dist/types';
|
20
18
|
import { SelectOption as SelectOption$1 } from 'atoms/Select/types';
|
21
19
|
import { ControllerProps as ControllerProps$1, DeepPartial, FieldValues, FormState, Control as Control$1 } from 'react-hook-form';
|
20
|
+
import { DrawerProps as DrawerProps$1 } from '@mui/material';
|
22
21
|
import { ProcessTrackerStatus as ProcessTrackerStatus$1, FilteredFeedContentType as FilteredFeedContentType$1, ConsentProps as ConsentProps$1, HeroSliderProps as HeroSliderProps$1, ProcessTrackerProps as ProcessTrackerProps$1 } from 'organisms';
|
23
|
-
import { FieldSectionProps as FieldSectionProps$1, MenuItemsProps as MenuItemsProps$1, InputFieldProps as InputFieldProps$1, TabProps as TabProps$1, HeroImageProps as HeroImageProps$1, ColumnsProps as ColumnsProps$1, EmphasizedTextProps as EmphasizedTextProps$1, TabGroupProps as TabGroupProps$1, AvatarDropdownProps as AvatarDropdownProps$1, FeedContentHeaderProps as FeedContentHeaderProps$1, AlertProps as AlertProps$1, BottomNaVBarItemProps as BottomNaVBarItemProps$1 } from 'molecules';
|
24
22
|
import { SetPasswordFields, MaxRuleValidation, MinRuleValidation } from 'organisms/SetPasswordForm/types';
|
25
23
|
import { UIFields as UIFields$2 } from 'fieldsConfiguration';
|
26
24
|
import { ConsentProps as ConsentProps$2 } from 'organisms/Consent/Consent';
|
@@ -45,8 +43,18 @@ declare type BaseButtonProps = PropsWithChildren<{
|
|
45
43
|
disabled?: boolean;
|
46
44
|
fullWidth?: boolean;
|
47
45
|
size?: 'medium' | 'small';
|
48
|
-
|
49
|
-
|
46
|
+
buttonFont?: FontSizesTypes$1;
|
47
|
+
textColor?: ThemeColors$1 | string;
|
48
|
+
textSize?: number;
|
49
|
+
buttonPadding?: SizesTypes$1;
|
50
|
+
buttonColor?: ThemeColors$1 | string;
|
51
|
+
buttonStroke?: ThemeColors$1 | string;
|
52
|
+
cornerRadius?: SizesTypes$1 | number;
|
53
|
+
hoverButtonColor?: ThemeColors$1 | string;
|
54
|
+
hoverStrokeColor?: ThemeColors$1 | string;
|
55
|
+
inactiveButtonColor?: ThemeColors$1 | string;
|
56
|
+
inactiveStrokeColor?: ThemeColors$1 | string;
|
57
|
+
styles?: StylesType;
|
50
58
|
}>;
|
51
59
|
declare type ButtonProps = BaseButtonProps & {
|
52
60
|
fullWidth?: boolean;
|
@@ -58,7 +66,7 @@ declare type ButtonProps = BaseButtonProps & {
|
|
58
66
|
containerStyle?: CSSProperties;
|
59
67
|
buttonStyle?: CSSProperties;
|
60
68
|
};
|
61
|
-
declare const Button: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children,
|
69
|
+
declare const Button: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children, buttonStyle, size, ...props }: ButtonProps) => JSX.Element | null;
|
62
70
|
|
63
71
|
declare type TouchableOpacityProps = PropsWithChildren<{
|
64
72
|
activeOpacity?: number;
|
@@ -121,24 +129,26 @@ declare const Input: ({ value, leftIcon, rightIcon, onChange, onBlur, disabled,
|
|
121
129
|
|
122
130
|
declare type TextTypes = 'primary' | 'secondary' | 'error' | 'success';
|
123
131
|
declare type TextAlign = 'center' | 'right' | 'left';
|
124
|
-
declare type
|
125
|
-
|
126
|
-
variant: FontSizesTypes$
|
132
|
+
declare type SeoTags = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';
|
133
|
+
declare type TextProps = {
|
134
|
+
variant: FontSizesTypes$2;
|
127
135
|
layout?: 'div' | 'span';
|
128
136
|
type?: TextTypes;
|
129
137
|
styles?: StylesType;
|
130
|
-
color?: ThemeColors$
|
138
|
+
color?: ThemeColors$2 | string;
|
131
139
|
numberOfLines?: number;
|
132
140
|
textAlign?: TextAlign;
|
133
141
|
behaveAs?: 'text' | 'button';
|
142
|
+
seoTag?: SeoTags;
|
134
143
|
};
|
135
|
-
declare
|
144
|
+
declare type TextWrapperProps = PropsWithChildren<TextProps>;
|
145
|
+
declare const TextWrapper: ({ children, seoTag, ...textProps }: TextWrapperProps) => JSX.Element;
|
136
146
|
|
137
147
|
declare type IconProps = {
|
138
148
|
name: IconNames;
|
139
149
|
size?: number;
|
140
|
-
color?: ThemeColors$
|
141
|
-
fill?: ThemeColors$
|
150
|
+
color?: ThemeColors$1 | string;
|
151
|
+
fill?: ThemeColors$1 | string;
|
142
152
|
pointerEvents?: 'auto' | 'none';
|
143
153
|
style?: React.CSSProperties;
|
144
154
|
};
|
@@ -176,19 +186,23 @@ declare type SpacerProps = {
|
|
176
186
|
declare const Spacer: styled_components.StyledComponent<"div", styled_components.DefaultTheme, SpacerProps, never>;
|
177
187
|
|
178
188
|
declare const Spinner: styled_components.StyledComponent<"div", styled_components.DefaultTheme, {
|
179
|
-
color?: ThemeColors$
|
189
|
+
color?: ThemeColors$2 | undefined;
|
180
190
|
size?: SizesTypes$2 | undefined;
|
181
191
|
}, never>;
|
182
192
|
|
183
|
-
declare type
|
193
|
+
declare type RegularImageProps = {
|
184
194
|
src: string;
|
185
195
|
alt?: string;
|
186
|
-
|
196
|
+
width?: number | string;
|
197
|
+
height?: number | string;
|
198
|
+
styles?: StylesType;
|
199
|
+
onClick?: Callback$1;
|
200
|
+
cornerRadius?: number;
|
187
201
|
};
|
188
|
-
declare const
|
189
|
-
declare const BackgroundImage: styled_components.StyledComponent<"img", styled_components.DefaultTheme,
|
202
|
+
declare const RegularImage: styled_components.StyledComponent<"img", styled_components.DefaultTheme, RegularImageProps, never>;
|
203
|
+
declare const BackgroundImage: styled_components.StyledComponent<"img", styled_components.DefaultTheme, RegularImageProps, never>;
|
190
204
|
|
191
|
-
declare type TextButtonProps = Pick<BaseButtonProps, 'disabled' | '
|
205
|
+
declare type TextButtonProps = Pick<BaseButtonProps, 'disabled' | 'onClick' | 'children' | 'styles' | 'buttonPadding' | 'textColor' | 'textSize' | 'buttonFont'> & {
|
192
206
|
buttonLink?: string;
|
193
207
|
elementId?: string;
|
194
208
|
};
|
@@ -198,10 +212,12 @@ declare const TextButton: styled_components.StyledComponent<"div", styled_compon
|
|
198
212
|
disabled?: boolean | undefined;
|
199
213
|
} & {
|
200
214
|
children?: React$1.ReactNode;
|
201
|
-
} &
|
215
|
+
} & {
|
216
|
+
withoutOpacityEffect: boolean;
|
217
|
+
} & Pick<BaseButtonProps, "children" | "onClick" | "disabled" | "styles" | "buttonPadding" | "textColor" | "textSize" | "buttonFont"> & {
|
202
218
|
buttonLink?: string | undefined;
|
203
219
|
elementId?: string | undefined;
|
204
|
-
},
|
220
|
+
}, "withoutOpacityEffect">;
|
205
221
|
|
206
222
|
declare type ValidationTagStatus = 'DEFAULT' | 'ERROR' | 'SUCCESS';
|
207
223
|
declare type ValidationTagProps = {
|
@@ -248,9 +264,9 @@ declare type AvatarProps = {
|
|
248
264
|
size?: SizesTypes$1 | number;
|
249
265
|
withShadow?: boolean;
|
250
266
|
label?: string;
|
251
|
-
backgroundColor?: ThemeColors$
|
267
|
+
backgroundColor?: ThemeColors$1;
|
252
268
|
textConfig?: {
|
253
|
-
color?: ThemeColors$
|
269
|
+
color?: ThemeColors$1;
|
254
270
|
font?: SizesTypes$1;
|
255
271
|
};
|
256
272
|
content: {
|
@@ -270,7 +286,7 @@ declare const VerticalPadding: styled_components.StyledComponent<"div", styled_c
|
|
270
286
|
|
271
287
|
declare type DividerProps = {
|
272
288
|
type?: 'horizontal' | 'vertical';
|
273
|
-
color?: ThemeColors$
|
289
|
+
color?: ThemeColors$1 | string;
|
274
290
|
marginVertical?: SizesTypes$1 | number;
|
275
291
|
marginHorizontal?: SizesTypes$1 | number;
|
276
292
|
weight?: number;
|
@@ -295,12 +311,13 @@ declare const COMMUNICATION_LINK_DATA_URL = "communication-link-url";
|
|
295
311
|
declare const COMMUNICATION_LINK_DATA_TEXT = "communication-link-text";
|
296
312
|
declare type RichTextEditorProps = Partial<{
|
297
313
|
value: string;
|
298
|
-
font: FontSizesTypes$
|
299
|
-
color: ThemeColors$
|
300
|
-
textStyles:
|
314
|
+
font: FontSizesTypes$1;
|
315
|
+
color: ThemeColors$1;
|
316
|
+
textStyles: StylesType;
|
301
317
|
numberOfLines?: number;
|
318
|
+
extraTextProps?: TextProps$1;
|
302
319
|
}>;
|
303
|
-
declare const RichTextViewer: ({ value, color, textStyles, font, numberOfLines, }: RichTextEditorProps) => JSX.Element | null;
|
320
|
+
declare const RichTextViewer: ({ value, color, textStyles, font, numberOfLines, extraTextProps, }: RichTextEditorProps) => JSX.Element | null;
|
304
321
|
|
305
322
|
declare type RadioButtonType<T extends string = string> = {
|
306
323
|
id: T;
|
@@ -328,8 +345,8 @@ declare const Circle: ({ index, type }: CircleBoxProps) => JSX.Element;
|
|
328
345
|
|
329
346
|
declare type CircularIndicatorProps = {
|
330
347
|
active: boolean;
|
331
|
-
activeColor?: ThemeColors$
|
332
|
-
inactiveColor?: ThemeColors$
|
348
|
+
activeColor?: ThemeColors$1 | string;
|
349
|
+
inactiveColor?: ThemeColors$1 | string;
|
333
350
|
};
|
334
351
|
declare const CircularIndicator: ({ activeColor, inactiveColor, ...props }: CircularIndicatorProps) => JSX.Element;
|
335
352
|
declare const CircularIndicatorStyledComponent: styled_components.StyledComponent<"span", styled_components.DefaultTheme, CircularIndicatorProps, never>;
|
@@ -338,12 +355,44 @@ declare type IconButtonProps = {
|
|
338
355
|
name: IconNames$2;
|
339
356
|
size?: number;
|
340
357
|
onClick: Callback$1;
|
341
|
-
color?: ThemeColors$
|
342
|
-
fill?: ThemeColors$
|
358
|
+
color?: ThemeColors$1 | string;
|
359
|
+
fill?: ThemeColors$1 | string;
|
343
360
|
pointerEvents?: 'auto' | 'none';
|
344
361
|
};
|
345
362
|
declare const IconButton: ({ name, color, onClick, disabled, activeOpacity, withoutOpacityEffect, ...props }: IconButtonProps & TouchableOpacityProps$1) => JSX.Element;
|
346
363
|
|
364
|
+
declare type TabOption<T = string> = {
|
365
|
+
menuText: string;
|
366
|
+
menuKey: T;
|
367
|
+
onMenuClick?: (key: T) => void;
|
368
|
+
isSelected?: boolean;
|
369
|
+
};
|
370
|
+
declare type TabElement = HTMLDivElement | null;
|
371
|
+
declare type TabTheme = 'light' | 'dark';
|
372
|
+
declare type TabProps<T = string, K = string> = {
|
373
|
+
tabKey: T;
|
374
|
+
text: string;
|
375
|
+
disabled?: boolean;
|
376
|
+
vertical?: boolean;
|
377
|
+
isActive?: boolean;
|
378
|
+
onClick?: (key: T) => void;
|
379
|
+
options?: MenuItem$1<K>[];
|
380
|
+
onOptionClick?: (optionKey: K) => void;
|
381
|
+
tabTheme?: TabTheme;
|
382
|
+
divider?: boolean;
|
383
|
+
tabFont?: FontSizesTypes$1;
|
384
|
+
textSize?: number;
|
385
|
+
tabPadding?: SizesTypes$1 | number;
|
386
|
+
textColor?: ThemeColors$1 | string;
|
387
|
+
selectedTabTextColor?: ThemeColors$1 | string;
|
388
|
+
selectedTabIndicatorColor?: ThemeColors$1 | string;
|
389
|
+
styles?: StylesType;
|
390
|
+
};
|
391
|
+
declare const ZealTab: <T extends string, K extends string>({ options, onClick, text, tabKey, vertical, onOptionClick, tabTheme, tabFont, tabPadding, selectedTabIndicatorColor, textSize, textColor, ...tabProps }: TabProps<T, K>, ref: React__default.ForwardedRef<TabElement>) => JSX.Element;
|
392
|
+
declare const Tab: <T, K>(props: TabProps<T, K> & {
|
393
|
+
ref?: React__default.ForwardedRef<TabElement> | undefined;
|
394
|
+
}) => ReturnType<typeof ZealTab>;
|
395
|
+
|
347
396
|
declare type FieldRuleLabelTypes = 'OPTIONAL' | 'REQUIRED';
|
348
397
|
declare type FieldLabelsProps = {
|
349
398
|
label: string;
|
@@ -424,7 +473,7 @@ declare type CheckboxFieldProps = {
|
|
424
473
|
name: string;
|
425
474
|
control?: Control<any>;
|
426
475
|
defaultValue?: boolean;
|
427
|
-
checkboxProps: Omit<CheckBoxProps, 'error' | 'onClick' | 'value'>;
|
476
|
+
checkboxProps: Omit<CheckBoxProps$1, 'error' | 'onClick' | 'value'>;
|
428
477
|
};
|
429
478
|
declare const CheckboxField: ({ control, name, checkboxProps, defaultValue, }: CheckboxFieldProps) => JSX.Element;
|
430
479
|
|
@@ -454,7 +503,7 @@ declare type CustomValidationProps<T = string> = {
|
|
454
503
|
declare const CustomValidation: <T extends string = string>({ rules, value, isSubmitted, label, }: CustomValidationProps<T>) => JSX.Element;
|
455
504
|
|
456
505
|
declare type BaseSelectableProps<T> = {
|
457
|
-
iconName: IconNames;
|
506
|
+
iconName: IconNames$2;
|
458
507
|
infoText: string;
|
459
508
|
isActive?: boolean;
|
460
509
|
onClick?: (value: T) => void;
|
@@ -473,7 +522,7 @@ declare type HeroImageAlignment = 'left_aligned' | 'center_aligned';
|
|
473
522
|
declare type HeroImageTemplate = 'card' | 'full_width';
|
474
523
|
declare type HeroImageProps = {
|
475
524
|
type: 'hero_image';
|
476
|
-
backgroundImage:
|
525
|
+
backgroundImage: RegularImageProps$1;
|
477
526
|
mainHeading: string;
|
478
527
|
subHeading?: string;
|
479
528
|
button?: ButtonProps$1;
|
@@ -491,7 +540,7 @@ declare type DrawerProps = DrawerProps$1 & {
|
|
491
540
|
padding?: SizesTypes$2 | number;
|
492
541
|
height?: number | string;
|
493
542
|
width?: number | string;
|
494
|
-
closeIconColor?: ThemeColors$
|
543
|
+
closeIconColor?: ThemeColors$2 | string;
|
495
544
|
};
|
496
545
|
|
497
546
|
declare const Drawer: ({ children, closeIconColor, ...props }: PropsWithChildren<DrawerProps>) => JSX.Element;
|
@@ -525,58 +574,26 @@ declare type MenuItemsProps<T> = {
|
|
525
574
|
declare const MenuItems: <T extends string | number>({ title, onItemPress, options, }: MenuItemsProps<T>) => JSX.Element;
|
526
575
|
|
527
576
|
declare type AvatarDropdownProps<T> = {
|
528
|
-
avatarProps: AvatarProps;
|
577
|
+
avatarProps: AvatarProps$1;
|
529
578
|
menuConfig: MenuItemsProps<T>;
|
530
579
|
};
|
531
580
|
declare const AvatarDropdown: <T extends string | number>({ avatarProps, menuConfig, }: AvatarDropdownProps<T>) => JSX.Element;
|
532
581
|
|
533
|
-
declare type TabOption<T = string> = {
|
534
|
-
menuText: string;
|
535
|
-
menuKey: T;
|
536
|
-
onMenuClick?: (key: T) => void;
|
537
|
-
isSelected?: boolean;
|
538
|
-
};
|
539
|
-
declare type TabElement = HTMLDivElement | null;
|
540
|
-
declare type TabTheme = 'light' | 'dark';
|
541
|
-
declare type TabProps<T = string, K = string> = {
|
542
|
-
tabKey: T;
|
543
|
-
text: string;
|
544
|
-
disabled?: boolean;
|
545
|
-
vertical?: boolean;
|
546
|
-
isActive?: boolean;
|
547
|
-
onClick?: (key: T) => void;
|
548
|
-
options?: MenuItem<K>[];
|
549
|
-
onOptionClick?: (optionKey: K) => void;
|
550
|
-
tabTheme?: TabTheme;
|
551
|
-
divider?: boolean;
|
552
|
-
tabFont?: FontSizesTypes$2;
|
553
|
-
textSize?: SizesTypes$1 | number;
|
554
|
-
tabPadding?: SizesTypes$1 | number;
|
555
|
-
textColor?: ThemeColors$2 | string;
|
556
|
-
selectedTabTextColor?: ThemeColors$2 | string;
|
557
|
-
selectedTabIndicatorColor?: ThemeColors$2 | string;
|
558
|
-
styles?: StylesType;
|
559
|
-
};
|
560
|
-
declare const ZealTab: <T extends string, K extends string>({ options, onClick, text, tabKey, vertical, onOptionClick, tabTheme, tabFont, tabPadding, selectedTabIndicatorColor, textSize, textColor, ...tabProps }: TabProps<T, K>, ref: React__default.ForwardedRef<TabElement>) => JSX.Element;
|
561
|
-
declare const Tab: <T, K>(props: TabProps<T, K> & {
|
562
|
-
ref?: React__default.ForwardedRef<TabElement> | undefined;
|
563
|
-
}) => ReturnType<typeof ZealTab>;
|
564
|
-
|
565
582
|
declare type TabGroupProps<T = string, K = string> = {
|
566
|
-
tabs: Pick<TabProps<T, K>, 'text' | 'tabKey' | 'disabled' | 'options' | 'divider'>[];
|
583
|
+
tabs: Pick<TabProps$1<T, K>, 'text' | 'tabKey' | 'disabled' | 'options' | 'divider'>[];
|
567
584
|
activeTabKey: T;
|
568
585
|
onTabChange?: (tabKey: T) => void;
|
569
586
|
onOptionClick?: (optionKey: K) => void;
|
570
587
|
styles?: StylesType;
|
571
588
|
vertical?: boolean;
|
572
|
-
tabTheme?: TabTheme;
|
573
|
-
tabFont?: FontSizesTypes$
|
574
|
-
textSize?:
|
589
|
+
tabTheme?: TabTheme$1;
|
590
|
+
tabFont?: FontSizesTypes$2;
|
591
|
+
textSize?: number;
|
575
592
|
tabPadding?: SizesTypes$2 | number;
|
576
593
|
tabSpacing?: SizesTypes$2;
|
577
|
-
textColor?: ThemeColors$
|
578
|
-
selectedTabTextColor?: ThemeColors$
|
579
|
-
selectedTabIndicatorColor?: ThemeColors$
|
594
|
+
textColor?: ThemeColors$2 | string;
|
595
|
+
selectedTabTextColor?: ThemeColors$2 | string;
|
596
|
+
selectedTabIndicatorColor?: ThemeColors$2 | string;
|
580
597
|
containerStyle?: CSSProperties;
|
581
598
|
containerProps?: Record<string, unknown>;
|
582
599
|
};
|
@@ -629,7 +646,7 @@ declare type AlertProps = {
|
|
629
646
|
withCloseIcon?: {
|
630
647
|
onClose: Callback$1;
|
631
648
|
};
|
632
|
-
fontColor?: ThemeColors$
|
649
|
+
fontColor?: ThemeColors$1;
|
633
650
|
destinationLink?: string;
|
634
651
|
onDestinationHandler?: Callback$1;
|
635
652
|
containerStyles?: CSSProperties;
|
@@ -652,12 +669,12 @@ declare type PdfDocumentProps = {
|
|
652
669
|
source: string;
|
653
670
|
isMobile?: boolean;
|
654
671
|
customDocumentStyles?: Partial<{
|
655
|
-
wrapperBackgroundColor: ThemeColors$
|
656
|
-
pageNumberColor: ThemeColors$
|
672
|
+
wrapperBackgroundColor: ThemeColors$1 | string;
|
673
|
+
pageNumberColor: ThemeColors$1 | string;
|
657
674
|
pageWidth: number;
|
658
675
|
pageHeight: number;
|
659
|
-
paginationArrowColor: ThemeColors$
|
660
|
-
disabledPaginationArrowColor: ThemeColors$
|
676
|
+
paginationArrowColor: ThemeColors$1 | string;
|
677
|
+
disabledPaginationArrowColor: ThemeColors$1 | string;
|
661
678
|
}>;
|
662
679
|
};
|
663
680
|
declare const PdfDocument: ({ source, isMobile, customDocumentStyles, }: PdfDocumentProps) => JSX.Element;
|
@@ -813,7 +830,7 @@ declare type FooterLink = {
|
|
813
830
|
declare type ProfileInformationProps<TabKeys extends string> = {
|
814
831
|
backgroundImageUrl: string;
|
815
832
|
avatarProps: AvatarProps$1;
|
816
|
-
tabs: TabProps$
|
833
|
+
tabs: TabProps$2<string, TabKeys>[];
|
817
834
|
tabContents: Record<TabKeys, () => ReactNode>;
|
818
835
|
initialTabKey: TabKeys;
|
819
836
|
title: string;
|
@@ -1068,4 +1085,4 @@ declare type AnnotationsList = {
|
|
1068
1085
|
|
1069
1086
|
declare const useMlrRichTextViewerContext: () => contexts_MlrRichTextViewerContext_MlrRichTextViewerContext.MlrRichTextViewerContextType;
|
1070
1087
|
|
1071
|
-
export { AcquisitionForm, AcquisitionFormProps, Alert, AlertProps, AnnotationsList, AuthMethod, Avatar, AvatarDropdown, AvatarDropdownProps, AvatarProps, BackgroundImage, BaseButtonProps, Body, BodyProps, BottomNaVBarItemProps, BottomNavBarItem, BottomNavBarNavigation, BottomNavBarNavigationProps, BreakpointSizesTypes, Button, ButtonProps, ButtonVariant, COMMUNICATION_LINK_DATA_TEXT, COMMUNICATION_LINK_DATA_URL, COMMUNICATION_LINK_ELEMENT_ID, CaretIconWrapper, CheckBoxProps, Checkbox, CheckboxField, CheckboxFieldProps, Circle, CircleBoxProps, CircularIndicator, CircularIndicatorProps, CircularIndicatorStyledComponent, ColumnItem, Columns, ColumnsProps, Consent, ConsentProps, CustomValidation, CustomValidationProps, CustomValidationRule, DefaultTemplate, DefaultTemplateProps, Divider, DividerProps, Drawer, DynamicContentZone, DynamicContentZoneProps, DynamicElementProps, EmphasizedText, EmphasizedTextProps, FeedContent, FeedContentContainer, FeedContentContainerProps, FeedContentHeader, FeedContentHeaderProps, FeedTemplateKeys, FieldLabels, FieldLabelsProps, FieldMapper, FieldMapperProps, FieldRuleLabelTypes, FieldSection, FieldSectionProps, FieldTypes, FilteredFeedContentType, FontSizesTypes, 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,
|
1088
|
+
export { AcquisitionForm, AcquisitionFormProps, Alert, AlertProps, AnnotationsList, AuthMethod, Avatar, AvatarDropdown, AvatarDropdownProps, AvatarProps, BackgroundImage, BaseButtonProps, Body, BodyProps, BottomNaVBarItemProps, BottomNavBarItem, BottomNavBarNavigation, BottomNavBarNavigationProps, BreakpointSizesTypes, Button, ButtonProps, ButtonVariant, COMMUNICATION_LINK_DATA_TEXT, COMMUNICATION_LINK_DATA_URL, COMMUNICATION_LINK_ELEMENT_ID, CaretIconWrapper, CheckBoxProps, Checkbox, CheckboxField, CheckboxFieldProps, Circle, CircleBoxProps, CircularIndicator, CircularIndicatorProps, CircularIndicatorStyledComponent, ColumnItem, Columns, ColumnsProps, Consent, ConsentProps, CustomValidation, CustomValidationProps, CustomValidationRule, DefaultTemplate, DefaultTemplateProps, Divider, DividerProps, Drawer, DynamicContentZone, DynamicContentZoneProps, DynamicElementProps, EmphasizedText, EmphasizedTextProps, FeedContent, FeedContentContainer, FeedContentContainerProps, FeedContentHeader, FeedContentHeaderProps, FeedTemplateKeys, FieldLabels, FieldLabelsProps, FieldMapper, FieldMapperProps, FieldRuleLabelTypes, FieldSection, FieldSectionProps, FieldTypes, FilteredFeedContentType, FontSizesTypes, 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, Input, InputField, InputFieldProps, InputFieldTypes, InputIconProps, InputProps, LoginForm, LoginFormProps, MATRIX_MESSAGE_DATA_ID, MATRIX_MESSAGE_ELEMENT_ID, MapPosition, MenuItem, MenuItems, MenuItemsProps, MenuNavigation, MenuNavigationProps, MlrRichTextViewerContext, MlrRichTextViewerContextType, MlrRichTextViewerProvider, MlrRichTextViewerProviderProps, OrientationType, PdfDocument, PdfDocumentProps, ProcessTracker, ProcessTrackerProps, ProcessTrackerStatus, ProfileInformation, ProfileInformationProps, RadioButtonField, RadioButtonFieldProps, RadioButtonType, RadioButtons, RadioButtonsProps, RegularImage, RegularImageProps, RichTextEditorProps, RichTextViewer, Select, SelectField, SelectFieldProps, SelectableCardGroup, SelectableCardGroupProps, SeoTags, SetPasswordForm, SetPasswordFormProps, SetPasswordRuleValidation, SizesTypes, Spacer, SpacerProps, Spinner, Stepper, StepperProps, StyleWrapper, SubscribePanel, Tab, TabGroup, TabGroupProps, TabOption, TabProps, TabTheme, TextAlign, TextButton, TextButtonProps, TextProps, TextTypes, TextWrapper, TextWrapperProps, ThemeColors, ThemeColorsType, ThemeDevicesType, ThemeSizesType, ThemeTextType, Tooltip, TooltipProps, TouchableOpacity, TouchableOpacityProps, TwoFactorAuth, TwoFactorAuthProps, UICheckboxField, UIField, UIFields, UIInputField, UISelectField, ValidationTag, ValidationTagProps, ValidationTagStatus, VerticalPadding, Video, VideoProps, ZealTheme, ZealThemeProvider, acquisitionFormMockFields, defaultTheme, getFieldPlaceholder, getFieldsFromFieldSections, getInitialValuesFromFields, isFormValid, loginMockFields, profileInformationMockForm, sectionMockFields, setPasswordMockFields, showAcceptToastMessage, toast, toastStyles, useMediaQuery, useMlrRichTextViewerContext, useRequiredConsentsAcceptedValues, useStep };
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@zealicsolutions/web-ui",
|
3
|
-
"version": "0.2.
|
3
|
+
"version": "0.2.68",
|
4
4
|
"repository": {
|
5
5
|
"type": "git",
|
6
6
|
"url": "git+ssh://git@bitbucket.org/Zealic_Solutions/zeal-ui-web.git"
|
@@ -23,6 +23,7 @@
|
|
23
23
|
"scripts": {
|
24
24
|
"build": "npm run clean && rollup -c",
|
25
25
|
"test": "jest",
|
26
|
+
"start": "npm run storybook",
|
26
27
|
"storybook": "storybook dev -p 6006",
|
27
28
|
"build-storybook": "storybook build",
|
28
29
|
"clean": "rimraf dist",
|
@@ -118,4 +119,4 @@
|
|
118
119
|
"homepage": "https://bitbucket.org/Zealic_Solutions/zeal-ui-web#readme",
|
119
120
|
"keywords": [],
|
120
121
|
"description": ""
|
121
|
-
}
|
122
|
+
}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import { CSSProperties } from 'styled-components';
|
2
|
-
export declare type ImageProps = {
|
3
|
-
src: string;
|
4
|
-
alt?: string;
|
5
|
-
style?: CSSProperties;
|
6
|
-
};
|
7
|
-
export declare const Image: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, ImageProps, never>;
|
8
|
-
export declare const BackgroundImage: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, ImageProps, never>;
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import type { ComponentStory } from '@storybook/react';
|
2
|
-
import { Image as ImageComponent } from './Image';
|
3
|
-
declare const _default: {
|
4
|
-
title: string;
|
5
|
-
component: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, import("./Image").ImageProps, never>;
|
6
|
-
};
|
7
|
-
export default _default;
|
8
|
-
export declare const Image: ComponentStory<typeof ImageComponent>;
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import { CSSProperties } from 'styled-components';
|
2
|
-
export declare type ImageProps = {
|
3
|
-
src: string;
|
4
|
-
alt?: string;
|
5
|
-
style?: CSSProperties;
|
6
|
-
};
|
7
|
-
export declare const Image: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, ImageProps, never>;
|
8
|
-
export declare const BackgroundImage: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, ImageProps, never>;
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import type { ComponentStory } from '@storybook/react';
|
2
|
-
import { Image as ImageComponent } from './Image';
|
3
|
-
declare const _default: {
|
4
|
-
title: string;
|
5
|
-
component: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, import("./Image").ImageProps, never>;
|
6
|
-
};
|
7
|
-
export default _default;
|
8
|
-
export declare const Image: ComponentStory<typeof ImageComponent>;
|