magneto365.ui 2.59.3 → 2.59.5

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.
Files changed (50) hide show
  1. package/dist/cjs/css/magneto.ui.lib.min.css +1 -1
  2. package/dist/cjs/index.js +590 -469
  3. package/dist/cjs/index.js.map +1 -1
  4. package/dist/cjs/types/components/UI/molecules/AlertJobModal/AlertJobModal.component.d.ts +10 -0
  5. package/dist/cjs/types/components/UI/molecules/AlertJobModal/AlertJobModal.interface.d.ts +105 -0
  6. package/dist/cjs/types/components/UI/molecules/AlertJobModal/children/AlertJobModalBody/AlertJobModalBody.component.d.ts +3 -0
  7. package/dist/cjs/types/components/UI/molecules/AlertJobModal/children/AlertJobModalButton/AlertJobModalButton.component.d.ts +3 -0
  8. package/dist/cjs/types/components/UI/molecules/AlertJobModal/children/AlertJobModalFooter/AlertJobModalFooter.component.d.ts +3 -0
  9. package/dist/cjs/types/components/UI/molecules/AlertJobModal/children/AlertJobModalHeader/AlertJobModalHeader.component.d.ts +3 -0
  10. package/dist/cjs/types/components/UI/molecules/AlertJobModal/children/AlertJobModalIcon/AlertJobModalIcon.component.d.ts +3 -0
  11. package/dist/cjs/types/components/UI/molecules/AlertJobModal/children/AlertJobModalTitle/AlertJobModalTitle.component.d.ts +3 -0
  12. package/dist/cjs/types/components/UI/molecules/AlertJobModal/index.d.ts +1 -0
  13. package/dist/cjs/types/components/UI/molecules/AlertJobStatus/AlertJobStatus.component.d.ts +1 -0
  14. package/dist/cjs/types/components/UI/molecules/AlertJobStatus/AlertJobStatus.interface.d.ts +18 -0
  15. package/dist/cjs/types/components/UI/molecules/AlertJobStatus/children/AlertJobStatusButton/AlertJobStatusButton.component.d.ts +3 -0
  16. package/dist/cjs/types/components/UI/molecules/AlertJobStatus/children/AlertJobStatusButton/index.d.ts +1 -0
  17. package/dist/cjs/types/components/UI/molecules/ListMenuIcons/ListMenuIcons.interface.d.ts +3 -0
  18. package/dist/cjs/types/components/UI/molecules/index.d.ts +1 -0
  19. package/dist/cjs/types/components/UI/organism/JobSuggestedDrawer/JobSuggestedDrawer.component.d.ts +1 -0
  20. package/dist/cjs/types/components/UI/organism/LoginHeader/LoginHeader.interface.d.ts +2 -0
  21. package/dist/cjs/types/components/UI/template/MegaMenu/MegaMenu.context.d.ts +2 -0
  22. package/dist/cjs/types/components/UI/template/MegaMenu/MegaMenuContext.interface.d.ts +2 -0
  23. package/dist/cjs/types/constants/stories/megaMenu.constants.d.ts +9 -0
  24. package/dist/cjs/types/utils/icons/getIcons.util.d.ts +1 -0
  25. package/dist/esm/css/magneto.ui.lib.min.css +1 -1
  26. package/dist/esm/index.js +590 -470
  27. package/dist/esm/index.js.map +1 -1
  28. package/dist/esm/types/components/UI/molecules/AlertJobModal/AlertJobModal.component.d.ts +10 -0
  29. package/dist/esm/types/components/UI/molecules/AlertJobModal/AlertJobModal.interface.d.ts +105 -0
  30. package/dist/esm/types/components/UI/molecules/AlertJobModal/children/AlertJobModalBody/AlertJobModalBody.component.d.ts +3 -0
  31. package/dist/esm/types/components/UI/molecules/AlertJobModal/children/AlertJobModalButton/AlertJobModalButton.component.d.ts +3 -0
  32. package/dist/esm/types/components/UI/molecules/AlertJobModal/children/AlertJobModalFooter/AlertJobModalFooter.component.d.ts +3 -0
  33. package/dist/esm/types/components/UI/molecules/AlertJobModal/children/AlertJobModalHeader/AlertJobModalHeader.component.d.ts +3 -0
  34. package/dist/esm/types/components/UI/molecules/AlertJobModal/children/AlertJobModalIcon/AlertJobModalIcon.component.d.ts +3 -0
  35. package/dist/esm/types/components/UI/molecules/AlertJobModal/children/AlertJobModalTitle/AlertJobModalTitle.component.d.ts +3 -0
  36. package/dist/esm/types/components/UI/molecules/AlertJobModal/index.d.ts +1 -0
  37. package/dist/esm/types/components/UI/molecules/AlertJobStatus/AlertJobStatus.component.d.ts +1 -0
  38. package/dist/esm/types/components/UI/molecules/AlertJobStatus/AlertJobStatus.interface.d.ts +18 -0
  39. package/dist/esm/types/components/UI/molecules/AlertJobStatus/children/AlertJobStatusButton/AlertJobStatusButton.component.d.ts +3 -0
  40. package/dist/esm/types/components/UI/molecules/AlertJobStatus/children/AlertJobStatusButton/index.d.ts +1 -0
  41. package/dist/esm/types/components/UI/molecules/ListMenuIcons/ListMenuIcons.interface.d.ts +3 -0
  42. package/dist/esm/types/components/UI/molecules/index.d.ts +1 -0
  43. package/dist/esm/types/components/UI/organism/JobSuggestedDrawer/JobSuggestedDrawer.component.d.ts +1 -0
  44. package/dist/esm/types/components/UI/organism/LoginHeader/LoginHeader.interface.d.ts +2 -0
  45. package/dist/esm/types/components/UI/template/MegaMenu/MegaMenu.context.d.ts +2 -0
  46. package/dist/esm/types/components/UI/template/MegaMenu/MegaMenuContext.interface.d.ts +2 -0
  47. package/dist/esm/types/constants/stories/megaMenu.constants.d.ts +9 -0
  48. package/dist/esm/types/utils/icons/getIcons.util.d.ts +1 -0
  49. package/dist/index.d.ts +142 -3
  50. package/package.json +1 -1
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { IAlertJobModal } from './AlertJobModal.interface';
3
+ export declare const AlertJobModal: React.FC<IAlertJobModal> & {
4
+ Header: React.FC<IAlertJobModal.Header>;
5
+ Body: React.FC<IAlertJobModal.Body>;
6
+ Footer: React.FC<IAlertJobModal.Footer>;
7
+ Title: React.FC<IAlertJobModal.Title>;
8
+ Icon: React.FC<IAlertJobModal.Icon>;
9
+ Button: React.FC<IAlertJobModal.Button>;
10
+ };
@@ -0,0 +1,105 @@
1
+ /// <reference types="react" />
2
+ export interface IAlertJobModal {
3
+ /**
4
+ * React children to be rendered inside the component.
5
+ */
6
+ children: JSX.Element | JSX.Element[];
7
+ /**
8
+ * Additional class names for custom styling.
9
+ */
10
+ className?: string;
11
+ /**
12
+ * Represents whether the modal is open or closed.
13
+ */
14
+ open: boolean;
15
+ /**
16
+ * Callback function to be executed when the modal is closed.
17
+ */
18
+ onClose: () => void;
19
+ }
20
+ export declare namespace IAlertJobModal {
21
+ interface Header {
22
+ /**
23
+ * React children to be rendered inside the container.
24
+ */
25
+ children?: React.ReactNode;
26
+ /**
27
+ * Additional class names for custom styling.
28
+ */
29
+ className?: string;
30
+ }
31
+ interface Body {
32
+ /**
33
+ * React children to be rendered inside the container.
34
+ */
35
+ children?: React.ReactNode;
36
+ /**
37
+ * Additional class names for custom styling.
38
+ */
39
+ className?: string;
40
+ }
41
+ interface Footer {
42
+ /**
43
+ * React children to be rendered inside the container.
44
+ */
45
+ children?: React.ReactNode;
46
+ /**
47
+ * Additional class names for custom styling.
48
+ */
49
+ className?: string;
50
+ }
51
+ interface Icon {
52
+ /**
53
+ * Additional class names for custom styling.
54
+ */
55
+ className?: string;
56
+ /**
57
+ * Here is the icon component
58
+ */
59
+ src?: string | null;
60
+ /**
61
+ * You can change the size of the icon by adding a numeric value here
62
+ */
63
+ size?: number;
64
+ /**
65
+ * Text alt in the img element
66
+ */
67
+ alt?: string | null;
68
+ }
69
+ interface Title {
70
+ /**
71
+ * Set title text on modal header
72
+ */
73
+ title: string;
74
+ /**
75
+ * Set subtitle text on modal header
76
+ */
77
+ subtitle?: string | null;
78
+ /**
79
+ * React children to be rendered inside the container.
80
+ */
81
+ children?: React.ReactNode;
82
+ /**
83
+ * Additional class names for custom styling.
84
+ */
85
+ className?: string;
86
+ }
87
+ interface Button extends React.ButtonHTMLAttributes<HTMLButtonElement> {
88
+ /**
89
+ * React children to be rendered inside the container.
90
+ */
91
+ children?: React.ReactNode;
92
+ /**
93
+ * Additional class names for custom styling.
94
+ */
95
+ className?: string;
96
+ /**
97
+ * Here is the icon button component
98
+ */
99
+ icon?: string | null;
100
+ /**
101
+ * You can change the size of the icon by adding a numeric value here
102
+ */
103
+ sizeIcon?: number;
104
+ }
105
+ }
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { IAlertJobModal } from '../../AlertJobModal.interface';
3
+ export declare const AlertJobModalBody: React.FC<IAlertJobModal.Body>;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { IAlertJobModal } from '../../AlertJobModal.interface';
3
+ export declare const AlertJobModalButton: React.FC<IAlertJobModal.Button>;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { IAlertJobModal } from '../../AlertJobModal.interface';
3
+ export declare const AlertJobModalFooter: React.FC<IAlertJobModal.Footer>;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { IAlertJobModal } from '../../AlertJobModal.interface';
3
+ export declare const AlertJobModalHeader: React.FC<IAlertJobModal.Header>;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { IAlertJobModal } from '../../AlertJobModal.interface';
3
+ export declare const AlertJobModalIcon: React.FC<IAlertJobModal.Icon>;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { IAlertJobModal } from '../../AlertJobModal.interface';
3
+ export declare const AlertJobModalTitle: React.FC<IAlertJobModal.Title>;
@@ -0,0 +1 @@
1
+ export * from './AlertJobModal.component';
@@ -3,5 +3,6 @@ import { IAlertJobStatus } from './AlertJobStatus.interface';
3
3
  export declare const AlertJobStatus: React.FC<IAlertJobStatus> & {
4
4
  Container: React.FC<IAlertJobStatus.Container>;
5
5
  Icon: React.FC<IAlertJobStatus.Icon>;
6
+ Button: React.FC<IAlertJobStatus.Button>;
6
7
  Text: React.FC<import("../../atoms/Text/Text.interface").IText>;
7
8
  };
@@ -47,6 +47,24 @@ export declare namespace IAlertJobStatus {
47
47
  */
48
48
  type?: EAlertJobStatusIcon;
49
49
  }
50
+ interface Button extends React.ButtonHTMLAttributes<HTMLButtonElement> {
51
+ /**
52
+ * React children to be rendered inside the container.
53
+ */
54
+ children?: React.ReactNode;
55
+ /**
56
+ * Additional class names for custom styling.
57
+ */
58
+ className?: string;
59
+ /**
60
+ * Here is the icon button component
61
+ */
62
+ icon?: string | null;
63
+ /**
64
+ * You can change the size of the icon by adding a numeric value here
65
+ */
66
+ sizeIcon?: number;
67
+ }
50
68
  }
51
69
  export declare type EAlertJobStatusType = 'warning' | 'normal';
52
70
  export declare type EAlertJobStatusIcon = 'success' | 'warning';
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { IAlertJobStatus } from '../../AlertJobStatus.interface';
3
+ export declare const AlertJobStatusButton: React.FC<IAlertJobStatus.Button>;
@@ -0,0 +1 @@
1
+ export * from './AlertJobStatusButton.component';
@@ -1,3 +1,4 @@
1
+ import { IAvatar } from '@components/UI/atoms';
1
2
  import { IMenuIcon } from '../MenuIcon/MenuIcon.interface';
2
3
  export interface IListMenuIcons {
3
4
  urlParam: string;
@@ -6,6 +7,8 @@ export interface IListMenuIcons {
6
7
  logout: ILogout;
7
8
  settings: ISettings;
8
9
  haveGif?: boolean;
10
+ profileImage: IAvatar;
11
+ isAuthenticated: boolean;
9
12
  }
10
13
  export interface IMenuItems {
11
14
  title?: string;
@@ -74,3 +74,4 @@ export * from './SimilarCard';
74
74
  export * from './MegaMenuDrawerItem';
75
75
  export * from './MegaMenuEmpty';
76
76
  export * from './Notification';
77
+ export * from './AlertJobModal';
@@ -5,6 +5,7 @@ export declare const JobSuggestedDrawer: React.FC<IJobSuggestedDrawer> & {
5
5
  Alert: React.FC<import("@components/UI/molecules/AlertJobStatus").IAlertJobStatus> & {
6
6
  Container: React.FC<import("@components/UI/molecules/AlertJobStatus").IAlertJobStatus.Container>;
7
7
  Icon: React.FC<import("@components/UI/molecules/AlertJobStatus").IAlertJobStatus.Icon>;
8
+ Button: React.FC<import("@components/UI/molecules/AlertJobStatus").IAlertJobStatus.Button>;
8
9
  Text: React.FC<import("../../atoms/Text/Text.interface").IText>;
9
10
  };
10
11
  SimilarJobs: React.FC<IJobSuggestedDrawer.SimilarJobCards>;
@@ -21,4 +21,6 @@ export interface IlistMenuUserProps {
21
21
  menuItems1440?: IMenuItems[];
22
22
  logout: ILogout;
23
23
  settings: ISettings;
24
+ profileImage: IAvatar;
25
+ isAuthenticated: boolean;
24
26
  }
@@ -1,7 +1,9 @@
1
1
  import React from 'react';
2
2
  import { IMegaMenuContext, IMegaMenuJobs, IMegaMenuSocialHeader, IMegaMenuMainHeader } from './MegaMenuContext.interface';
3
+ import { IlistMenuUserProps } from '@components/UI/organism';
3
4
  export declare const MegaMenuProvider: React.FC<IMegaMenuContext>;
4
5
  export declare const useMegaMenu: () => IMegaMenuContext;
5
6
  export declare const useMegaMenuSocialHeader: () => IMegaMenuSocialHeader;
6
7
  export declare const useMegaMenuJobs: () => IMegaMenuJobs;
7
8
  export declare const useMegaMenuMain: () => IMegaMenuMainHeader;
9
+ export declare const useLoggedInUser: () => IlistMenuUserProps;
@@ -1,5 +1,6 @@
1
1
  import { IMegaMenuTab } from '@components/UI/atoms/MegaMenuTab/MegaMenuTab.interface';
2
2
  import { ISearchbar } from '@components/UI/molecules';
3
+ import { IlistMenuUserProps } from '@components/UI/organism';
3
4
  import { ReactNode } from 'react';
4
5
  export interface IMegaMenuLink {
5
6
  label: string;
@@ -43,4 +44,5 @@ export interface IMegaMenuContext {
43
44
  socialHeaderProps: IMegaMenuSocialHeader;
44
45
  jobsProps: IMegaMenuJobs;
45
46
  mainHeaderProps: IMegaMenuMainHeader;
47
+ listMenuUserProps: IlistMenuUserProps;
46
48
  }
@@ -18,6 +18,15 @@ export declare const filterProps: {
18
18
  };
19
19
  export declare const megaMenuCards: IMegaMenuCards;
20
20
  export declare const megaMenuJobsIcons: any[];
21
+ export declare const megaMenuUserLoggedIcons: {
22
+ allJobs: any;
23
+ suggestedJobs: any;
24
+ savedJobs: any;
25
+ inProcess: any;
26
+ resume: any;
27
+ settings: any;
28
+ help: any;
29
+ };
21
30
  export declare const mobileSocialIcons: any[];
22
31
  export declare const megaMenuJobs: IMegaMenuJobs;
23
32
  export declare const megaMenuBreadcrumbs: {
@@ -0,0 +1 @@
1
+ export declare const getIcons: (iconName?: string | undefined) => any;