@zealicsolutions/web-ui 0.1.9 → 0.1.10

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.
@@ -2,10 +2,10 @@ export * from './SetPasswordForm/SetPasswordForm';
2
2
  export * from './AcquisitionForm/AcquisitionForm';
3
3
  export * from './LoginForm/LoginForm';
4
4
  export * from './TwoFactorAuth/TwoFactorAuth';
5
- export * from 'organisms/Header/Header/Header';
6
5
  export * from './Footer/Footer';
7
6
  export * from './Footer/types';
8
7
  export * from './ProfileInformation/ProfileInformation';
9
8
  export * from './ForgotPasswordForm/ForgotPasswordForm';
10
9
  export * from './Body/Body';
11
10
  export * from './ISI/ISI';
11
+ export * from './Header/Header/Header';
package/dist/index.d.ts CHANGED
@@ -19,11 +19,10 @@ import { InputProps as InputProps$1 } from 'atoms';
19
19
  import { SelectOption as SelectOption$1 } from 'atoms/Select/types';
20
20
  import { ControllerProps as ControllerProps$1, DeepPartial, FieldValues, FormState } from 'react-hook-form';
21
21
  import { SetPasswordFields, MaxRuleValidation, MinRuleValidation } from 'organisms/SetPasswordForm/types';
22
- export * from 'organisms/Header/Header/Header';
23
22
  import { FooterAProps } from 'organisms/Footer/FooterA';
24
23
  import { FooterBProps } from 'organisms/Footer/FooterB';
25
24
  import { FooterCProps } from 'organisms/Footer/FooterC';
26
- import { FieldSectionProps as FieldSectionProps$1, HeroImageProps as HeroImageProps$1, ColumnsProps as ColumnsProps$1, EmphasizedTextProps as EmphasizedTextProps$1 } from 'molecules';
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';
27
26
  import { ISIAProps } from 'organisms/ISI/ISIA';
28
27
  import { LoginFields as LoginFields$1 } from 'organisms/LoginForm/types';
29
28
 
@@ -592,6 +591,61 @@ declare const Body: ({ elements, containerStyles }: BodyProps) => JSX.Element;
592
591
  declare type ISIProps = ISIAProps;
593
592
  declare const ISI: (props: ISIProps) => JSX.Element;
594
593
 
594
+ declare type ImportantLink$1 = {
595
+ text: string;
596
+ href: string;
597
+ };
598
+ declare type HeaderAProps<T> = {
599
+ links?: ImportantLink$1[];
600
+ logoUrl: string;
601
+ tabs: TabGroupProps$1['tabs'];
602
+ onActionButtonClick?: Callback;
603
+ buttonText: string;
604
+ menuConfig: MenuItemsProps$1<T>;
605
+ isMobile?: boolean;
606
+ };
607
+
608
+ declare type HeaderBProps<T> = {
609
+ logoUrl: string;
610
+ tabs: TabGroupProps$1['tabs'];
611
+ onActionButtonClick?: Callback;
612
+ buttonText?: string;
613
+ menuConfig: MenuItemsProps$1<T>;
614
+ isMobile?: boolean;
615
+ };
616
+
617
+ declare type HeaderCProps<T> = {
618
+ logoUrl: string;
619
+ tabs: TabGroupProps$1['tabs'];
620
+ menuConfig: MenuItemsProps$1<T>;
621
+ isMobile?: boolean;
622
+ };
623
+
624
+ declare type ImportantLink = {
625
+ text: string;
626
+ href: string;
627
+ };
628
+ declare type HeaderDProps = {
629
+ links?: ImportantLink[];
630
+ logoUrl: string;
631
+ tabs: TabGroupProps$1['tabs'];
632
+ withAvatar: {
633
+ props: AvatarDropdownProps$1<string>;
634
+ };
635
+ isMobile?: boolean;
636
+ };
637
+
638
+ declare type HeaderProps<T> = (HeaderAProps<T> & {
639
+ type: 'header_a';
640
+ }) | (HeaderBProps<T> & {
641
+ type: 'header_b';
642
+ }) | (HeaderCProps<T> & {
643
+ type: 'header_c';
644
+ }) | (HeaderDProps & {
645
+ type: 'header_d';
646
+ });
647
+ declare const Header: <T extends string | number>(props: HeaderProps<T>) => JSX.Element;
648
+
595
649
  declare type DefaultTemplateProps = {
596
650
  header: React.ReactNode;
597
651
  banner?: React.ReactNode;
@@ -609,4 +663,4 @@ interface Helpers {
609
663
  }
610
664
  declare const useStep: (maxStep: number) => [number, Helpers];
611
665
 
612
- 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, 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 };
666
+ 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, 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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zealicsolutions/web-ui",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/Zealic_Solutions/zeal-ui-web.git"