@zealicsolutions/web-ui 0.1.20 → 0.1.22
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 +3 -3
- package/dist/cjs/index.js.map +1 -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/cjs/src/organisms/LoginForm/LoginForm.d.ts +1 -1
- package/dist/cjs/src/organisms/SetPasswordForm/SetPasswordForm.d.ts +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -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/esm/src/organisms/LoginForm/LoginForm.d.ts +1 -1
- package/dist/esm/src/organisms/SetPasswordForm/SetPasswordForm.d.ts +1 -1
- package/dist/index.d.ts +16 -12
- package/package.json +1 -1
@@ -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;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import type { Callback } from 'typescript';
|
3
3
|
import { UIFields } from '../../fieldsConfiguration';
|
4
|
-
import { LoginFields } from './types';
|
5
4
|
import { TwoFactorAuthProps } from '../TwoFactorAuth/TwoFactorAuth';
|
5
|
+
import { LoginFields } from './types';
|
6
6
|
export declare type LoginFormProps = {
|
7
7
|
fields: UIFields<LoginFields>;
|
8
8
|
logoUrl: string;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import {
|
2
|
+
import { MaxRuleValidation, MinRuleValidation, SetPasswordFields } from 'organisms/SetPasswordForm/types';
|
3
3
|
import { UIFields } from '../../fieldsConfiguration';
|
4
4
|
export declare type SetPasswordRuleValidation = {
|
5
5
|
label: string;
|
package/dist/index.d.ts
CHANGED
@@ -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';
|
@@ -446,6 +446,7 @@ declare type TabProps<T = string, K = string> = {
|
|
446
446
|
tabKey: T;
|
447
447
|
text: string;
|
448
448
|
disabled?: boolean;
|
449
|
+
vertical?: boolean;
|
449
450
|
isActive?: boolean;
|
450
451
|
onClick?: (key: T) => void;
|
451
452
|
options?: MenuItem<K>[];
|
@@ -459,8 +460,9 @@ declare type TabGroupProps<T = string, K = string> = {
|
|
459
460
|
onTabChange?: (tabKey: T) => void;
|
460
461
|
onOptionClick?: (optionKey: K) => void;
|
461
462
|
style?: CSSProperties;
|
463
|
+
vertical?: boolean;
|
462
464
|
};
|
463
|
-
declare const TabGroup: <T extends string, K extends string>({ tabs, spacing, activeTabKey, onTabChange, style, }: TabGroupProps<T, K>) => JSX.Element;
|
465
|
+
declare const TabGroup: <T extends string, K extends string>({ tabs, spacing, vertical, activeTabKey, onTabChange, style, }: TabGroupProps<T, K>) => JSX.Element;
|
464
466
|
|
465
467
|
declare type FieldSectionProps<T extends object> = {
|
466
468
|
label: string;
|
@@ -474,6 +476,9 @@ declare type MenuNavigationProps<T> = {
|
|
474
476
|
menuConfig: MenuItemsProps<T>;
|
475
477
|
};
|
476
478
|
declare const MenuNavigation: <T extends string | number>({ menuConfig, }: MenuNavigationProps<T>) => JSX.Element;
|
479
|
+
declare const CaretIconWrapper: styled_components.StyledComponent<"div", styled_components.DefaultTheme, {
|
480
|
+
isOpen: boolean;
|
481
|
+
}, never>;
|
477
482
|
|
478
483
|
declare type EmphasizedTextProps = {
|
479
484
|
type: 'emphasized_text';
|
@@ -508,12 +513,6 @@ declare type AcquisitionFormProps<T extends object> = {
|
|
508
513
|
};
|
509
514
|
declare const AcquisitionForm: <T extends object>({ logoUrl, title, description, buttonText, fields, onSubmit, onLinkButtonClick, isLoading, }: AcquisitionFormProps<T>) => JSX.Element;
|
510
515
|
|
511
|
-
declare type LoginFields = {
|
512
|
-
email: string;
|
513
|
-
password: string;
|
514
|
-
rememberMe: boolean;
|
515
|
-
};
|
516
|
-
|
517
516
|
declare type VerificationCodeForm = {
|
518
517
|
code: string;
|
519
518
|
};
|
@@ -526,6 +525,12 @@ declare type TwoFactorAuthProps = {
|
|
526
525
|
};
|
527
526
|
declare const TwoFactorAuth: ({ logoUrl, onSubmit, onBack, onNext }: TwoFactorAuthProps) => JSX.Element;
|
528
527
|
|
528
|
+
declare type LoginFields = {
|
529
|
+
email: string;
|
530
|
+
password: string;
|
531
|
+
rememberMe: boolean;
|
532
|
+
};
|
533
|
+
|
529
534
|
declare type LoginFormProps = {
|
530
535
|
fields: UIFields<LoginFields>;
|
531
536
|
logoUrl: string;
|
@@ -604,13 +609,12 @@ declare type HeaderAProps<T = string> = {
|
|
604
609
|
tabsProps: TabGroupProps$1;
|
605
610
|
onActionButtonClick?: Callback;
|
606
611
|
buttonText: string;
|
607
|
-
menuConfig: MenuItemsProps$1<T>;
|
608
612
|
isMobile?: boolean;
|
609
613
|
};
|
610
614
|
|
611
|
-
declare type HeaderBProps<T = string> = Pick<HeaderAProps$1<T>, 'isMobile' | 'logoUrl' | 'tabsProps' | '
|
615
|
+
declare type HeaderBProps<T = string> = Pick<HeaderAProps$1<T>, 'isMobile' | 'logoUrl' | 'tabsProps' | 'buttonText' | 'onActionButtonClick'>;
|
612
616
|
|
613
|
-
declare type HeaderCProps<T> = Pick<HeaderAProps$1<T>, 'logoUrl' | 'tabsProps' | '
|
617
|
+
declare type HeaderCProps<T> = Pick<HeaderAProps$1<T>, 'logoUrl' | 'tabsProps' | 'isMobile'>;
|
614
618
|
|
615
619
|
declare type HeaderDProps = {
|
616
620
|
withAvatar: AvatarDropdownProps$1<string>;
|
@@ -644,4 +648,4 @@ interface Helpers {
|
|
644
648
|
}
|
645
649
|
declare const useStep: (maxStep: number) => [number, Helpers];
|
646
650
|
|
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 };
|
651
|
+
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 };
|