magneto365.ui 2.59.5 → 2.59.6-alpha

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.
@@ -7,8 +7,8 @@ export interface IListMenuIcons {
7
7
  logout: ILogout;
8
8
  settings: ISettings;
9
9
  haveGif?: boolean;
10
- profileImage: IAvatar;
11
- isAuthenticated: boolean;
10
+ profileImage?: IAvatar;
11
+ isAuthenticated?: boolean;
12
12
  }
13
13
  export interface IMenuItems {
14
14
  title?: string;
@@ -1,3 +1,4 @@
1
1
  import React from 'react';
2
- declare const MegaMenuPopover: React.FC;
2
+ import { IMegaMenuPopover } from './MegaMenuPopover.interface';
3
+ declare const MegaMenuPopover: React.FC<IMegaMenuPopover>;
3
4
  export default MegaMenuPopover;
@@ -0,0 +1,8 @@
1
+ import { ReactNode } from 'react';
2
+ export interface IMegaMenuPopover {
3
+ children: ReactNode;
4
+ popoverRef?: React.Ref<IPopoverRef>;
5
+ }
6
+ export interface IPopoverRef {
7
+ setShow: (show: boolean) => void;
8
+ }
@@ -21,6 +21,6 @@ export interface IlistMenuUserProps {
21
21
  menuItems1440?: IMenuItems[];
22
22
  logout: ILogout;
23
23
  settings: ISettings;
24
- profileImage: IAvatar;
25
- isAuthenticated: boolean;
24
+ profileImage?: IAvatar;
25
+ isAuthenticated?: boolean;
26
26
  }
@@ -1,10 +1,12 @@
1
1
  import { IMegaMenuTab } from '@components/UI/atoms/MegaMenuTab/MegaMenuTab.interface';
2
2
  import { ISearchbar } from '@components/UI/molecules';
3
+ import { IPopoverRef } from '@components/UI/molecules/MegaMenuPopover/MegaMenuPopover.interface';
3
4
  import { IlistMenuUserProps } from '@components/UI/organism';
4
- import { ReactNode } from 'react';
5
+ import React, { ReactNode } from 'react';
5
6
  export interface IMegaMenuLink {
6
7
  label: string;
7
8
  url: string;
9
+ onClick?: () => void;
8
10
  target?: string;
9
11
  icon?: string | undefined;
10
12
  }
@@ -39,6 +41,7 @@ export interface IMegaMenuJobs {
39
41
  onChangeTab?: (index: number) => void;
40
42
  jobAction?: IMegaMenuAction;
41
43
  allJobsAction?: IMegaMenuLink;
44
+ popoverRef?: React.Ref<IPopoverRef>;
42
45
  }
43
46
  export interface IMegaMenuContext {
44
47
  socialHeaderProps: IMegaMenuSocialHeader;
package/dist/index.d.ts CHANGED
@@ -33,6 +33,7 @@ import { IRightsReservedText as IRightsReservedText$1 } from '@components/UI/mol
33
33
  import { IFooterMenuLinks as IFooterMenuLinks$1 } from '@components/UI/organism/FooterMenuLinks/FooterMenuLinks.interface';
34
34
  import { ERenderType } from '@constants/stories';
35
35
  import { IMegaMenuTab as IMegaMenuTab$1 } from '@components/UI/atoms/MegaMenuTab/MegaMenuTab.interface';
36
+ import { IPopoverRef as IPopoverRef$1 } from '@components/UI/molecules/MegaMenuPopover/MegaMenuPopover.interface';
36
37
 
37
38
  interface IContextAppProvider {
38
39
  children: React.ReactNode;
@@ -2420,8 +2421,8 @@ interface IListMenuIcons {
2420
2421
  logout: ILogout;
2421
2422
  settings: ISettings;
2422
2423
  haveGif?: boolean;
2423
- profileImage: IAvatar$1;
2424
- isAuthenticated: boolean;
2424
+ profileImage?: IAvatar$1;
2425
+ isAuthenticated?: boolean;
2425
2426
  }
2426
2427
  interface IMenuItems {
2427
2428
  title?: string;
@@ -2571,7 +2572,15 @@ declare const MegaMenuCard: React$1.FC<IMegaMenuCard>;
2571
2572
 
2572
2573
  declare const MegaMenuJobsTabs: React$1.FC;
2573
2574
 
2574
- declare const MegaMenuPopover: React$1.FC;
2575
+ interface IMegaMenuPopover {
2576
+ children: ReactNode;
2577
+ popoverRef?: React.Ref<IPopoverRef>;
2578
+ }
2579
+ interface IPopoverRef {
2580
+ setShow: (show: boolean) => void;
2581
+ }
2582
+
2583
+ declare const MegaMenuPopover: React$1.FC<IMegaMenuPopover>;
2575
2584
 
2576
2585
  interface IMegaMenuSideCards {
2577
2586
  /**
@@ -3642,8 +3651,8 @@ interface IlistMenuUserProps {
3642
3651
  menuItems1440?: IMenuItems[];
3643
3652
  logout: ILogout;
3644
3653
  settings: ISettings;
3645
- profileImage: IAvatar;
3646
- isAuthenticated: boolean;
3654
+ profileImage?: IAvatar;
3655
+ isAuthenticated?: boolean;
3647
3656
  }
3648
3657
 
3649
3658
  /**
@@ -5794,6 +5803,7 @@ interface IMegaMenu {
5794
5803
  interface IMegaMenuLink {
5795
5804
  label: string;
5796
5805
  url: string;
5806
+ onClick?: () => void;
5797
5807
  target?: string;
5798
5808
  icon?: string | undefined;
5799
5809
  }
@@ -5828,6 +5838,7 @@ interface IMegaMenuJobs {
5828
5838
  onChangeTab?: (index: number) => void;
5829
5839
  jobAction?: IMegaMenuAction;
5830
5840
  allJobsAction?: IMegaMenuLink;
5841
+ popoverRef?: React$1.Ref<IPopoverRef$1>;
5831
5842
  }
5832
5843
  interface IMegaMenuContext {
5833
5844
  socialHeaderProps: IMegaMenuSocialHeader;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/W170/talenta.magneto365.ui.git"
6
6
  },
7
- "version": "2.59.5",
7
+ "version": "2.59.6-alpha",
8
8
  "description": "Magneto365 UI common components",
9
9
  "scripts": {
10
10
  "lint": "eslint ./src --ext .js,.ts,.jsx,.tsx",