@zealicsolutions/web-ui 0.1.16 → 0.1.17
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/organisms/Header/Header.d.ts +1 -2
- package/dist/cjs/src/organisms/Header/HeaderA.d.ts +3 -3
- package/dist/cjs/src/organisms/Header/HeaderB.d.ts +3 -11
- package/dist/cjs/src/organisms/Header/HeaderC.d.ts +3 -8
- package/dist/cjs/src/organisms/Header/HeaderD.d.ts +5 -15
- package/dist/cjs/src/organisms/Header/mock.d.ts +2 -4
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/organisms/Header/Header.d.ts +1 -2
- package/dist/esm/src/organisms/Header/HeaderA.d.ts +3 -3
- package/dist/esm/src/organisms/Header/HeaderB.d.ts +3 -11
- package/dist/esm/src/organisms/Header/HeaderC.d.ts +3 -8
- package/dist/esm/src/organisms/Header/HeaderD.d.ts +5 -15
- package/dist/esm/src/organisms/Header/mock.d.ts +2 -4
- package/dist/index.d.ts +11 -33
- package/package.json +1 -1
@@ -3,8 +3,7 @@ import { HeaderAProps } from './HeaderA';
|
|
3
3
|
import { HeaderBProps } from './HeaderB';
|
4
4
|
import { HeaderCProps } from './HeaderC';
|
5
5
|
import { HeaderDProps } from './HeaderD';
|
6
|
-
export declare type
|
7
|
-
export declare type HeaderProps<T> = (HeaderAProps<T> & {
|
6
|
+
export declare type HeaderProps<T = string> = (HeaderAProps<T> & {
|
8
7
|
type: 'header_a';
|
9
8
|
}) | (HeaderBProps<T> & {
|
10
9
|
type: 'header_b';
|
@@ -5,14 +5,14 @@ declare type ImportantLink = {
|
|
5
5
|
text: string;
|
6
6
|
href: string;
|
7
7
|
};
|
8
|
-
export declare type HeaderAProps<T> = {
|
8
|
+
export declare type HeaderAProps<T = string> = {
|
9
9
|
links?: ImportantLink[];
|
10
10
|
logoUrl: string;
|
11
|
-
|
11
|
+
tabsProps: TabGroupProps;
|
12
12
|
onActionButtonClick?: Callback;
|
13
13
|
buttonText: string;
|
14
14
|
menuConfig: MenuItemsProps<T>;
|
15
15
|
isMobile?: boolean;
|
16
16
|
};
|
17
|
-
export declare const HeaderA: <T extends string | number>({ logoUrl, links, onActionButtonClick,
|
17
|
+
export declare const HeaderA: <T extends string | number>({ logoUrl, links, onActionButtonClick, menuConfig, tabsProps, buttonText, isMobile, }: HeaderAProps<T>) => JSX.Element;
|
18
18
|
export {};
|
@@ -1,12 +1,4 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import {
|
3
|
-
|
4
|
-
export declare
|
5
|
-
logoUrl: string;
|
6
|
-
tabs: TabGroupProps['tabs'];
|
7
|
-
onActionButtonClick?: Callback;
|
8
|
-
buttonText?: string;
|
9
|
-
menuConfig: MenuItemsProps<T>;
|
10
|
-
isMobile?: boolean;
|
11
|
-
};
|
12
|
-
export declare const HeaderB: <T extends string | number>({ logoUrl, onActionButtonClick, tabs, buttonText, menuConfig, isMobile, }: HeaderBProps<T>) => JSX.Element;
|
2
|
+
import { HeaderAProps } from 'organisms/Header/HeaderA';
|
3
|
+
export declare type HeaderBProps<T = string> = Pick<HeaderAProps<T>, 'isMobile' | 'logoUrl' | 'tabsProps' | 'menuConfig' | 'buttonText' | 'onActionButtonClick'>;
|
4
|
+
export declare const HeaderB: <T extends string | number>({ logoUrl, onActionButtonClick, buttonText, menuConfig, isMobile, tabsProps, }: HeaderBProps<T>) => JSX.Element;
|
@@ -1,9 +1,4 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import {
|
3
|
-
export declare type HeaderCProps<T> =
|
4
|
-
|
5
|
-
tabs: TabGroupProps['tabs'];
|
6
|
-
menuConfig: MenuItemsProps<T>;
|
7
|
-
isMobile?: boolean;
|
8
|
-
};
|
9
|
-
export declare const HeaderC: <T extends string | number>({ logoUrl, tabs, menuConfig, isMobile, }: HeaderCProps<T>) => JSX.Element;
|
2
|
+
import { HeaderAProps } from 'organisms/Header/HeaderA';
|
3
|
+
export declare type HeaderCProps<T> = Pick<HeaderAProps<T>, 'logoUrl' | 'tabsProps' | 'menuConfig' | 'isMobile'>;
|
4
|
+
export declare const HeaderC: <T extends string | number>({ logoUrl, menuConfig, tabsProps, isMobile, }: HeaderCProps<T>) => JSX.Element;
|
@@ -1,17 +1,7 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { AvatarDropdownProps
|
3
|
-
|
4
|
-
text: string;
|
5
|
-
href: string;
|
6
|
-
};
|
2
|
+
import { AvatarDropdownProps } from 'molecules';
|
3
|
+
import { HeaderAProps } from 'organisms/Header/HeaderA';
|
7
4
|
export declare type HeaderDProps = {
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
withAvatar: {
|
12
|
-
props: AvatarDropdownProps<string>;
|
13
|
-
};
|
14
|
-
isMobile?: boolean;
|
15
|
-
};
|
16
|
-
export declare const HeaderD: ({ logoUrl, links, tabs, withAvatar, isMobile }: HeaderDProps) => JSX.Element;
|
17
|
-
export {};
|
5
|
+
withAvatar: AvatarDropdownProps<string>;
|
6
|
+
} & Pick<HeaderAProps, 'isMobile' | 'logoUrl' | 'links' | 'tabsProps'>;
|
7
|
+
export declare const HeaderD: ({ tabsProps, logoUrl, links, withAvatar, isMobile }: HeaderDProps) => JSX.Element;
|
package/dist/index.d.ts
CHANGED
@@ -24,6 +24,7 @@ import { FooterBProps } from 'organisms/Footer/FooterB';
|
|
24
24
|
import { FooterCProps } from 'organisms/Footer/FooterC';
|
25
25
|
import { FieldSectionProps as FieldSectionProps$1, HeroImageProps as HeroImageProps$1, ColumnsProps as ColumnsProps$1, EmphasizedTextProps as EmphasizedTextProps$1, TabGroupProps as TabGroupProps$1, MenuItemsProps as MenuItemsProps$1, AvatarDropdownProps as AvatarDropdownProps$1 } from 'molecules';
|
26
26
|
import { ISIAProps } from 'organisms/ISI/ISIA';
|
27
|
+
import { HeaderAProps as HeaderAProps$1 } from 'organisms/Header/HeaderA';
|
27
28
|
import { LoginFields as LoginFields$1 } from 'organisms/LoginForm/types';
|
28
29
|
|
29
30
|
declare type BaseButtonProps = {
|
@@ -593,52 +594,29 @@ declare const Body: ({ elements, horizontalPaddings, containerStyles }: BodyProp
|
|
593
594
|
declare type ISIProps = ISIAProps;
|
594
595
|
declare const ISI: (props: ISIProps) => JSX.Element;
|
595
596
|
|
596
|
-
declare type ImportantLink
|
597
|
+
declare type ImportantLink = {
|
597
598
|
text: string;
|
598
599
|
href: string;
|
599
600
|
};
|
600
|
-
declare type HeaderAProps<T> = {
|
601
|
-
links?: ImportantLink
|
601
|
+
declare type HeaderAProps<T = string> = {
|
602
|
+
links?: ImportantLink[];
|
602
603
|
logoUrl: string;
|
603
|
-
|
604
|
+
tabsProps: TabGroupProps$1;
|
604
605
|
onActionButtonClick?: Callback;
|
605
606
|
buttonText: string;
|
606
607
|
menuConfig: MenuItemsProps$1<T>;
|
607
608
|
isMobile?: boolean;
|
608
609
|
};
|
609
610
|
|
610
|
-
declare type HeaderBProps<T> =
|
611
|
-
logoUrl: string;
|
612
|
-
tabs: TabGroupProps$1['tabs'];
|
613
|
-
onActionButtonClick?: Callback;
|
614
|
-
buttonText?: string;
|
615
|
-
menuConfig: MenuItemsProps$1<T>;
|
616
|
-
isMobile?: boolean;
|
617
|
-
};
|
611
|
+
declare type HeaderBProps<T = string> = Pick<HeaderAProps$1<T>, 'isMobile' | 'logoUrl' | 'tabsProps' | 'menuConfig' | 'buttonText' | 'onActionButtonClick'>;
|
618
612
|
|
619
|
-
declare type HeaderCProps<T> =
|
620
|
-
logoUrl: string;
|
621
|
-
tabs: TabGroupProps$1['tabs'];
|
622
|
-
menuConfig: MenuItemsProps$1<T>;
|
623
|
-
isMobile?: boolean;
|
624
|
-
};
|
613
|
+
declare type HeaderCProps<T> = Pick<HeaderAProps$1<T>, 'logoUrl' | 'tabsProps' | 'menuConfig' | 'isMobile'>;
|
625
614
|
|
626
|
-
declare type ImportantLink = {
|
627
|
-
text: string;
|
628
|
-
href: string;
|
629
|
-
};
|
630
615
|
declare type HeaderDProps = {
|
631
|
-
|
632
|
-
|
633
|
-
tabs: TabGroupProps$1['tabs'];
|
634
|
-
withAvatar: {
|
635
|
-
props: AvatarDropdownProps$1<string>;
|
636
|
-
};
|
637
|
-
isMobile?: boolean;
|
638
|
-
};
|
616
|
+
withAvatar: AvatarDropdownProps$1<string>;
|
617
|
+
} & Pick<HeaderAProps$1, 'isMobile' | 'logoUrl' | 'links' | 'tabsProps'>;
|
639
618
|
|
640
|
-
declare type
|
641
|
-
declare type HeaderProps<T> = (HeaderAProps<T> & {
|
619
|
+
declare type HeaderProps<T = string> = (HeaderAProps<T> & {
|
642
620
|
type: 'header_a';
|
643
621
|
}) | (HeaderBProps<T> & {
|
644
622
|
type: 'header_b';
|
@@ -666,4 +644,4 @@ interface Helpers {
|
|
666
644
|
}
|
667
645
|
declare const useStep: (maxStep: number) => [number, Helpers];
|
668
646
|
|
669
|
-
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,
|
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 };
|