@zealicsolutions/web-ui 0.1.21 → 0.1.23
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 +34 -33
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/atoms/Buttons/Button.d.ts +2 -1
- package/dist/cjs/src/atoms/Buttons/Button.stories.d.ts +1 -1
- package/dist/cjs/src/atoms/RichTextViewer/RichTextViewer.d.ts +6 -1
- package/dist/cjs/src/molecules/MenuNavigation/MenuNavigation.d.ts +3 -0
- package/dist/cjs/src/molecules/Tab/Tab.d.ts +2 -1
- package/dist/cjs/src/molecules/TabGroup/TabGroup.d.ts +2 -1
- package/dist/cjs/src/molecules/TabGroup/TabGroup.stories.d.ts +1 -1
- package/dist/cjs/src/molecules/TabGroup/styles.d.ts +1 -0
- package/dist/cjs/src/organisms/Header/HeaderA.d.ts +2 -3
- package/dist/cjs/src/organisms/Header/HeaderB.d.ts +2 -2
- package/dist/cjs/src/organisms/Header/HeaderC.d.ts +2 -2
- package/dist/cjs/src/organisms/Header/HeaderMobileNavigation.d.ts +4 -0
- package/dist/esm/index.js +34 -33
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/atoms/Buttons/Button.d.ts +2 -1
- package/dist/esm/src/atoms/Buttons/Button.stories.d.ts +1 -1
- package/dist/esm/src/atoms/RichTextViewer/RichTextViewer.d.ts +6 -1
- package/dist/esm/src/molecules/MenuNavigation/MenuNavigation.d.ts +3 -0
- package/dist/esm/src/molecules/Tab/Tab.d.ts +2 -1
- package/dist/esm/src/molecules/TabGroup/TabGroup.d.ts +2 -1
- package/dist/esm/src/molecules/TabGroup/TabGroup.stories.d.ts +1 -1
- package/dist/esm/src/molecules/TabGroup/styles.d.ts +1 -0
- package/dist/esm/src/organisms/Header/HeaderA.d.ts +2 -3
- package/dist/esm/src/organisms/Header/HeaderB.d.ts +2 -2
- package/dist/esm/src/organisms/Header/HeaderC.d.ts +2 -2
- package/dist/esm/src/organisms/Header/HeaderMobileNavigation.d.ts +4 -0
- package/dist/index.d.ts +17 -9
- package/package.json +1 -1
@@ -10,5 +10,6 @@ export declare type ButtonProps = BaseButtonProps & {
|
|
10
10
|
fullWidth?: boolean;
|
11
11
|
text?: string;
|
12
12
|
loading?: boolean;
|
13
|
+
isRichText?: boolean;
|
13
14
|
};
|
14
|
-
export declare const Button: ({ text, onClick, loading, disabled, variant, fullWidth, }: ButtonProps) => JSX.Element;
|
15
|
+
export declare const Button: ({ text, onClick, loading, disabled, variant, isRichText, fullWidth, }: ButtonProps) => JSX.Element;
|
@@ -5,7 +5,7 @@ import { LinkButtonProps } from './LinkButton';
|
|
5
5
|
import { TouchableOpacityProps } from './TouchableOpacity';
|
6
6
|
declare const _default: {
|
7
7
|
title: string;
|
8
|
-
component: ({ text, onClick, loading, disabled, variant, fullWidth, }: import("./Button").ButtonProps) => JSX.Element;
|
8
|
+
component: ({ text, onClick, loading, disabled, variant, isRichText, fullWidth, }: import("./Button").ButtonProps) => JSX.Element;
|
9
9
|
};
|
10
10
|
export default _default;
|
11
11
|
export declare const Button: ComponentStory<typeof ButtonComponent>;
|
@@ -1,5 +1,10 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
+
import { CSSProperties } from 'styled-components';
|
3
|
+
import { FontSizesTypes, ThemeColors } from 'theme';
|
2
4
|
export declare type RichTextEditorProps = Partial<{
|
3
5
|
value: string;
|
6
|
+
font: FontSizesTypes;
|
7
|
+
color: ThemeColors;
|
8
|
+
textStyles: CSSProperties;
|
4
9
|
}>;
|
5
|
-
export declare const RichTextViewer: ({ value }: RichTextEditorProps) => JSX.Element | null;
|
10
|
+
export declare const RichTextViewer: ({ value, color, textStyles, font, }: RichTextEditorProps) => JSX.Element | null;
|
@@ -4,3 +4,6 @@ export declare type MenuNavigationProps<T> = {
|
|
4
4
|
menuConfig: MenuItemsProps<T>;
|
5
5
|
};
|
6
6
|
export declare const MenuNavigation: <T extends string | number>({ menuConfig, }: MenuNavigationProps<T>) => JSX.Element;
|
7
|
+
export declare const CaretIconWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
8
|
+
isOpen: boolean;
|
9
|
+
}, never>;
|
@@ -11,12 +11,13 @@ export declare type TabProps<T = string, K = string> = {
|
|
11
11
|
tabKey: T;
|
12
12
|
text: string;
|
13
13
|
disabled?: boolean;
|
14
|
+
vertical?: boolean;
|
14
15
|
isActive?: boolean;
|
15
16
|
onClick?: (key: T) => void;
|
16
17
|
options?: MenuItem<K>[];
|
17
18
|
onOptionClick?: (optionKey: K) => void;
|
18
19
|
};
|
19
|
-
declare const ZealTab: <T extends string, K extends string>({ options, onClick, text, tabKey, onOptionClick, ...tabProps }: TabProps<T, K>, ref: React.ForwardedRef<TabElement>) => JSX.Element;
|
20
|
+
declare const ZealTab: <T extends string, K extends string>({ options, onClick, text, tabKey, vertical, onOptionClick, ...tabProps }: TabProps<T, K>, ref: React.ForwardedRef<TabElement>) => JSX.Element;
|
20
21
|
export declare const Tab: <T, K>(props: TabProps<T, K> & {
|
21
22
|
ref?: React.ForwardedRef<TabElement> | undefined;
|
22
23
|
}) => ReturnType<typeof ZealTab>;
|
@@ -9,5 +9,6 @@ export declare type TabGroupProps<T = string, K = string> = {
|
|
9
9
|
onTabChange?: (tabKey: T) => void;
|
10
10
|
onOptionClick?: (optionKey: K) => void;
|
11
11
|
style?: CSSProperties;
|
12
|
+
vertical?: boolean;
|
12
13
|
};
|
13
|
-
export declare const TabGroup: <T extends string, K extends string>({ tabs, spacing, activeTabKey, onTabChange, style, }: TabGroupProps<T, K>) => JSX.Element;
|
14
|
+
export declare const TabGroup: <T extends string, K extends string>({ tabs, spacing, vertical, activeTabKey, onTabChange, style, }: TabGroupProps<T, K>) => JSX.Element;
|
@@ -3,7 +3,7 @@ import type { ComponentStory } from '@storybook/react';
|
|
3
3
|
import { TabGroup as TabGroupComponent } from './TabGroup';
|
4
4
|
declare const _default: {
|
5
5
|
title: string;
|
6
|
-
component: <T extends string, K extends string>({ tabs, spacing, activeTabKey, onTabChange, style, }: import("./TabGroup").TabGroupProps<T, K>) => JSX.Element;
|
6
|
+
component: <T extends string, K extends string>({ tabs, spacing, vertical, activeTabKey, onTabChange, style, }: import("./TabGroup").TabGroupProps<T, K>) => JSX.Element;
|
7
7
|
};
|
8
8
|
export default _default;
|
9
9
|
export declare const TabGroup: ComponentStory<typeof TabGroupComponent>;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { SizesTypes } from 'theme/types';
|
2
2
|
export declare const TabsWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
3
3
|
spacing: SizesTypes;
|
4
|
+
vertical: boolean;
|
4
5
|
}, never>;
|
5
6
|
export declare const TabGroupContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
6
7
|
declare type TabSliderProps = {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import {
|
2
|
+
import { TabGroupProps } from 'molecules';
|
3
3
|
import type { Callback } from 'typescript';
|
4
4
|
declare type ImportantLink = {
|
5
5
|
text: string;
|
@@ -11,8 +11,7 @@ export declare type HeaderAProps<T = string> = {
|
|
11
11
|
tabsProps: TabGroupProps;
|
12
12
|
onActionButtonClick?: Callback;
|
13
13
|
buttonText: string;
|
14
|
-
menuConfig: MenuItemsProps<T>;
|
15
14
|
isMobile?: boolean;
|
16
15
|
};
|
17
|
-
export declare const HeaderA: <T extends string | number>({ logoUrl, links, onActionButtonClick,
|
16
|
+
export declare const HeaderA: <T extends string | number>({ logoUrl, links, onActionButtonClick, tabsProps, buttonText, isMobile, }: HeaderAProps<T>) => JSX.Element;
|
18
17
|
export {};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { HeaderAProps } from 'organisms/Header/HeaderA';
|
3
|
-
export declare type HeaderBProps<T = string> = Pick<HeaderAProps<T>, 'isMobile' | 'logoUrl' | 'tabsProps' | '
|
4
|
-
export declare const HeaderB: <T extends string | number>({ logoUrl, onActionButtonClick, buttonText,
|
3
|
+
export declare type HeaderBProps<T = string> = Pick<HeaderAProps<T>, 'isMobile' | 'logoUrl' | 'tabsProps' | 'buttonText' | 'onActionButtonClick'>;
|
4
|
+
export declare const HeaderB: <T extends string | number>({ logoUrl, onActionButtonClick, buttonText, isMobile, tabsProps, }: HeaderBProps<T>) => JSX.Element;
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { HeaderAProps } from 'organisms/Header/HeaderA';
|
3
|
-
export declare type HeaderCProps<T> = Pick<HeaderAProps<T>, 'logoUrl' | 'tabsProps' | '
|
4
|
-
export declare const HeaderC: <T extends string | number>({ logoUrl,
|
3
|
+
export declare type HeaderCProps<T> = Pick<HeaderAProps<T>, 'logoUrl' | 'tabsProps' | 'isMobile'>;
|
4
|
+
export declare const HeaderC: <T extends string | number>({ logoUrl, tabsProps, isMobile, }: HeaderCProps<T>) => JSX.Element;
|
@@ -0,0 +1,4 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { HeaderAProps } from './HeaderA';
|
3
|
+
export declare type HeaderMobileNavigationProps = Pick<HeaderAProps, 'logoUrl' | 'tabsProps'>;
|
4
|
+
export declare const HeaderMobileNavigation: ({ tabsProps, logoUrl }: HeaderMobileNavigationProps) => JSX.Element;
|
package/dist/index.d.ts
CHANGED
@@ -10,7 +10,7 @@ import * as _mui_material_OverridableComponent from '@mui/material/OverridableCo
|
|
10
10
|
import * as _mui_material from '@mui/material';
|
11
11
|
import { DrawerProps as DrawerProps$1 } from '@mui/material';
|
12
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 } from 'theme';
|
13
|
+
import { ThemeColors as ThemeColors$2, SizesTypes as SizesTypes$1, FontSizesTypes as FontSizesTypes$2 } from 'theme';
|
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';
|
@@ -22,7 +22,7 @@ import { SetPasswordFields, MaxRuleValidation, MinRuleValidation } from 'organis
|
|
22
22
|
import { FooterAProps } from 'organisms/Footer/FooterA';
|
23
23
|
import { FooterBProps } from 'organisms/Footer/FooterB';
|
24
24
|
import { FooterCProps } from 'organisms/Footer/FooterC';
|
25
|
-
import { FieldSectionProps as FieldSectionProps$1, HeroImageProps as HeroImageProps$1, ColumnsProps as ColumnsProps$1, EmphasizedTextProps as EmphasizedTextProps$1, TabGroupProps as TabGroupProps$1,
|
25
|
+
import { FieldSectionProps as FieldSectionProps$1, HeroImageProps as HeroImageProps$1, ColumnsProps as ColumnsProps$1, EmphasizedTextProps as EmphasizedTextProps$1, TabGroupProps as TabGroupProps$1, AvatarDropdownProps as AvatarDropdownProps$1 } from 'molecules';
|
26
26
|
import { ISIAProps } from 'organisms/ISI/ISIA';
|
27
27
|
import { HeaderAProps as HeaderAProps$1 } from 'organisms/Header/HeaderA';
|
28
28
|
import { LoginFields as LoginFields$1 } from 'organisms/LoginForm/types';
|
@@ -37,8 +37,9 @@ declare type ButtonProps = BaseButtonProps & {
|
|
37
37
|
fullWidth?: boolean;
|
38
38
|
text?: string;
|
39
39
|
loading?: boolean;
|
40
|
+
isRichText?: boolean;
|
40
41
|
};
|
41
|
-
declare const Button: ({ text, onClick, loading, disabled, variant, fullWidth, }: ButtonProps) => JSX.Element;
|
42
|
+
declare const Button: ({ text, onClick, loading, disabled, variant, isRichText, fullWidth, }: ButtonProps) => JSX.Element;
|
42
43
|
|
43
44
|
declare type TouchableOpacityProps = PropsWithChildren<{
|
44
45
|
activeOpacity?: number;
|
@@ -238,8 +239,11 @@ declare const GoogleMap: react__default.ComponentClass<{
|
|
238
239
|
|
239
240
|
declare type RichTextEditorProps = Partial<{
|
240
241
|
value: string;
|
242
|
+
font: FontSizesTypes$2;
|
243
|
+
color: ThemeColors$2;
|
244
|
+
textStyles: CSSProperties;
|
241
245
|
}>;
|
242
|
-
declare const RichTextViewer: ({ value }: RichTextEditorProps) => JSX.Element | null;
|
246
|
+
declare const RichTextViewer: ({ value, color, textStyles, font, }: RichTextEditorProps) => JSX.Element | null;
|
243
247
|
|
244
248
|
declare type FieldRuleLabelTypes = 'OPTIONAL' | 'REQUIRED';
|
245
249
|
declare type FieldLabelsProps = {
|
@@ -446,6 +450,7 @@ declare type TabProps<T = string, K = string> = {
|
|
446
450
|
tabKey: T;
|
447
451
|
text: string;
|
448
452
|
disabled?: boolean;
|
453
|
+
vertical?: boolean;
|
449
454
|
isActive?: boolean;
|
450
455
|
onClick?: (key: T) => void;
|
451
456
|
options?: MenuItem<K>[];
|
@@ -459,8 +464,9 @@ declare type TabGroupProps<T = string, K = string> = {
|
|
459
464
|
onTabChange?: (tabKey: T) => void;
|
460
465
|
onOptionClick?: (optionKey: K) => void;
|
461
466
|
style?: CSSProperties;
|
467
|
+
vertical?: boolean;
|
462
468
|
};
|
463
|
-
declare const TabGroup: <T extends string, K extends string>({ tabs, spacing, activeTabKey, onTabChange, style, }: TabGroupProps<T, K>) => JSX.Element;
|
469
|
+
declare const TabGroup: <T extends string, K extends string>({ tabs, spacing, vertical, activeTabKey, onTabChange, style, }: TabGroupProps<T, K>) => JSX.Element;
|
464
470
|
|
465
471
|
declare type FieldSectionProps<T extends object> = {
|
466
472
|
label: string;
|
@@ -474,6 +480,9 @@ declare type MenuNavigationProps<T> = {
|
|
474
480
|
menuConfig: MenuItemsProps<T>;
|
475
481
|
};
|
476
482
|
declare const MenuNavigation: <T extends string | number>({ menuConfig, }: MenuNavigationProps<T>) => JSX.Element;
|
483
|
+
declare const CaretIconWrapper: styled_components.StyledComponent<"div", styled_components.DefaultTheme, {
|
484
|
+
isOpen: boolean;
|
485
|
+
}, never>;
|
477
486
|
|
478
487
|
declare type EmphasizedTextProps = {
|
479
488
|
type: 'emphasized_text';
|
@@ -604,13 +613,12 @@ declare type HeaderAProps<T = string> = {
|
|
604
613
|
tabsProps: TabGroupProps$1;
|
605
614
|
onActionButtonClick?: Callback;
|
606
615
|
buttonText: string;
|
607
|
-
menuConfig: MenuItemsProps$1<T>;
|
608
616
|
isMobile?: boolean;
|
609
617
|
};
|
610
618
|
|
611
|
-
declare type HeaderBProps<T = string> = Pick<HeaderAProps$1<T>, 'isMobile' | 'logoUrl' | 'tabsProps' | '
|
619
|
+
declare type HeaderBProps<T = string> = Pick<HeaderAProps$1<T>, 'isMobile' | 'logoUrl' | 'tabsProps' | 'buttonText' | 'onActionButtonClick'>;
|
612
620
|
|
613
|
-
declare type HeaderCProps<T> = Pick<HeaderAProps$1<T>, 'logoUrl' | 'tabsProps' | '
|
621
|
+
declare type HeaderCProps<T> = Pick<HeaderAProps$1<T>, 'logoUrl' | 'tabsProps' | 'isMobile'>;
|
614
622
|
|
615
623
|
declare type HeaderDProps = {
|
616
624
|
withAvatar: AvatarDropdownProps$1<string>;
|
@@ -644,4 +652,4 @@ interface Helpers {
|
|
644
652
|
}
|
645
653
|
declare const useStep: (maxStep: number) => [number, Helpers];
|
646
654
|
|
647
|
-
export { AcquisitionForm, AcquisitionFormProps, AuthMethod, Avatar, AvatarDropdown, AvatarDropdownProps, AvatarProps, BaseButtonProps, Body, BodyProps, BreakpointSizesTypes, Button, ButtonProps, CheckBoxProps, Checkbox, CheckboxField, CheckboxFieldProps, ColumnItem, Columns, ColumnsProps, CustomValidation, CustomValidationProps, CustomValidationRule, DefaultTemplate, DefaultTemplateProps, Divider, DividerProps, Drawer, EmphasizedText, EmphasizedTextProps, FieldLabels, FieldLabelsProps, FieldMapper, FieldMapperProps, FieldRuleLabelTypes, FieldSection, FieldSectionProps, FieldTypes, FontSizesTypes, Footer, FooterContentInfo, FooterLink, FooterProps, ForgotPasswordForm, ForgotPasswordFormProps, GoogleMap, GoogleMapProps, Header, HeaderProps, HeroImage, HeroImageAlignment, HeroImageProps, HorizontalPadding, HorizontalPaddingProps, ISI, ISIProps, Icon, IconNames, IconProps, Image, ImageProps, Input, InputField, InputFieldProps, InputFieldTypes, InputIconProps, InputProps, LinkButton, LinkButtonProps, LoginForm, LoginFormProps, MapPosition, MenuItem, MenuItems, MenuItemsProps, MenuNavigation, MenuNavigationProps, ProfileInformation, ProfileInformationProps, RichTextEditorProps, RichTextViewer, Select, SelectField, SelectFieldProps, SelectableCardGroup, SelectableCardGroupProps, SetPasswordForm, SetPasswordFormProps, SetPasswordRuleValidation, SizesTypes, Spacer, SpacerProps, Spinner, StyleWrapper, TabGroup, TabGroupProps, TextTypes, TextWrapper, TextWrapperProps, ThemeColors, ThemeColorsType, ThemeDevicesType, ThemeSizesType, ThemeTextType, Tooltip, TooltipProps, TouchableOpacity, TouchableOpacityProps, TwoFactorAuth, TwoFactorAuthProps, UICheckboxField, UIField, UIFields, UIInputField, UISelectField, ValidationTag, ValidationTagProps, ValidationTagStatus, VerticalPadding, ZealTheme, ZealThemeProvider, acquisitionFormMockFields, defaultTheme, getFieldPlaceholder, getFieldsFromFieldSections, getInitialValuesFromFields, isFormValid, loginMockFields, profileInformationMockForm, sectionMockFields, setPasswordMockFields, toast, toastStyles, useMediaQuery, useStep };
|
655
|
+
export { AcquisitionForm, AcquisitionFormProps, AuthMethod, Avatar, AvatarDropdown, AvatarDropdownProps, AvatarProps, BaseButtonProps, Body, BodyProps, BreakpointSizesTypes, Button, ButtonProps, CaretIconWrapper, CheckBoxProps, Checkbox, CheckboxField, CheckboxFieldProps, ColumnItem, Columns, ColumnsProps, CustomValidation, CustomValidationProps, CustomValidationRule, DefaultTemplate, DefaultTemplateProps, Divider, DividerProps, Drawer, EmphasizedText, EmphasizedTextProps, FieldLabels, FieldLabelsProps, FieldMapper, FieldMapperProps, FieldRuleLabelTypes, FieldSection, FieldSectionProps, FieldTypes, FontSizesTypes, Footer, FooterContentInfo, FooterLink, FooterProps, ForgotPasswordForm, ForgotPasswordFormProps, GoogleMap, GoogleMapProps, Header, HeaderProps, HeroImage, HeroImageAlignment, HeroImageProps, HorizontalPadding, HorizontalPaddingProps, ISI, ISIProps, Icon, IconNames, IconProps, Image, ImageProps, Input, InputField, InputFieldProps, InputFieldTypes, InputIconProps, InputProps, LinkButton, LinkButtonProps, LoginForm, LoginFormProps, MapPosition, MenuItem, MenuItems, MenuItemsProps, MenuNavigation, MenuNavigationProps, ProfileInformation, ProfileInformationProps, RichTextEditorProps, RichTextViewer, Select, SelectField, SelectFieldProps, SelectableCardGroup, SelectableCardGroupProps, SetPasswordForm, SetPasswordFormProps, SetPasswordRuleValidation, SizesTypes, Spacer, SpacerProps, Spinner, StyleWrapper, TabGroup, TabGroupProps, TextTypes, TextWrapper, TextWrapperProps, ThemeColors, ThemeColorsType, ThemeDevicesType, ThemeSizesType, ThemeTextType, Tooltip, TooltipProps, TouchableOpacity, TouchableOpacityProps, TwoFactorAuth, TwoFactorAuthProps, UICheckboxField, UIField, UIFields, UIInputField, UISelectField, ValidationTag, ValidationTagProps, ValidationTagStatus, VerticalPadding, ZealTheme, ZealThemeProvider, acquisitionFormMockFields, defaultTheme, getFieldPlaceholder, getFieldsFromFieldSections, getInitialValuesFromFields, isFormValid, loginMockFields, profileInformationMockForm, sectionMockFields, setPasswordMockFields, toast, toastStyles, useMediaQuery, useStep };
|