@zealicsolutions/web-ui 0.1.16 → 0.1.18

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.
@@ -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 HeaderTypes = 'header_a' | 'header_b' | 'header_c' | 'header_d';
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
- tabs: TabGroupProps['tabs'];
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, tabs, menuConfig, buttonText, isMobile, }: HeaderAProps<T>) => JSX.Element;
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 { MenuItemsProps, TabGroupProps } from 'molecules';
3
- import type { Callback } from 'typescript';
4
- export declare type HeaderBProps<T> = {
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 { MenuItemsProps, TabGroupProps } from 'molecules';
3
- export declare type HeaderCProps<T> = {
4
- logoUrl: string;
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, TabGroupProps } from 'molecules';
3
- declare type ImportantLink = {
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
- links?: ImportantLink[];
9
- logoUrl: string;
10
- tabs: TabGroupProps['tabs'];
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;
@@ -1,4 +1,2 @@
1
- export declare const mockTabs: {
2
- tabKey: string;
3
- text: string;
4
- }[];
1
+ import { TabGroupProps } from 'molecules';
2
+ export declare const mockTabs: TabGroupProps['tabs'];
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$1 = {
597
+ declare type ImportantLink = {
597
598
  text: string;
598
599
  href: string;
599
600
  };
600
- declare type HeaderAProps<T> = {
601
- links?: ImportantLink$1[];
601
+ declare type HeaderAProps<T = string> = {
602
+ links?: ImportantLink[];
602
603
  logoUrl: string;
603
- tabs: TabGroupProps$1['tabs'];
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
- links?: ImportantLink[];
632
- logoUrl: string;
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 HeaderTypes = 'header_a' | 'header_b' | 'header_c' | 'header_d';
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, HeaderTypes, 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 };
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 };
package/package.json CHANGED
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "name": "@zealicsolutions/web-ui",
3
- "version": "0.1.16",
3
+ "version": "0.1.18",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/Zealic_Solutions/zeal-ui-web.git"
7
7
  },
8
8
  "author": "Ferhat Sahin <ferhat.sahin@zealicsolutions.com>",
9
9
  "license": "UNLICENSED",
10
- "main": "dist/cjs/index.js",
11
- "module": "dist/esm/index.js",
10
+ "main": "./dist/cjs/index.js",
11
+ "module": "./dist/esm/index.js",
12
12
  "publishConfig": {
13
13
  "directory": "dist"
14
14
  },
15
15
  "files": [
16
16
  "dist"
17
17
  ],
18
- "types": "dist/index.d.ts",
18
+ "types": "./dist/index.d.ts",
19
19
  "moduleNameMapper": {
20
20
  "^@zealicsolutions/web-ui/(.*)$": "<rootDir>/dist/$1",
21
21
  "^@zealicsolutions/web-ui$": "<rootDir>/dist/index.ts"