magneto365.ui 2.59.6 → 2.60.1

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 (34) hide show
  1. package/dist/cjs/css/magneto.ui.lib.min.css +1 -1
  2. package/dist/cjs/index.js +1036 -1002
  3. package/dist/cjs/index.js.map +1 -1
  4. package/dist/cjs/types/components/UI/molecules/AlertJobModal/AlertJobModal.interface.d.ts +4 -0
  5. package/dist/cjs/types/components/UI/molecules/ListMenuIcons/ListMenuIcons.interface.d.ts +2 -2
  6. package/dist/cjs/types/components/UI/molecules/MegaMenuPopover/MegaMenuPopover.component.d.ts +2 -1
  7. package/dist/cjs/types/components/UI/molecules/MegaMenuPopover/MegaMenuPopover.interface.d.ts +8 -0
  8. package/dist/cjs/types/components/UI/organism/AlertsPanel/AlertsPanel.component.d.ts +6 -0
  9. package/dist/cjs/types/components/UI/organism/AlertsPanel/AlertsPanel.interface.d.ts +41 -0
  10. package/dist/cjs/types/components/UI/organism/AlertsPanel/children/AlertsPanelItem/AlertsPanelItem.component.d.ts +3 -0
  11. package/dist/cjs/types/components/UI/organism/AlertsPanel/children/AlertsPanelList/AlertsPanelList.component.d.ts +3 -0
  12. package/dist/cjs/types/components/UI/organism/AlertsPanel/index.d.ts +2 -0
  13. package/dist/cjs/types/components/UI/organism/index.d.ts +1 -0
  14. package/dist/cjs/types/components/UI/template/MegaMenu/MegaMenuContext.interface.d.ts +4 -1
  15. package/dist/cjs/types/constants/stories/alertsPanel.constants.d.ts +4 -0
  16. package/dist/cjs/types/constants/stories/index.d.ts +1 -0
  17. package/dist/esm/css/magneto.ui.lib.min.css +1 -1
  18. package/dist/esm/index.js +1036 -1003
  19. package/dist/esm/index.js.map +1 -1
  20. package/dist/esm/types/components/UI/molecules/AlertJobModal/AlertJobModal.interface.d.ts +4 -0
  21. package/dist/esm/types/components/UI/molecules/ListMenuIcons/ListMenuIcons.interface.d.ts +2 -2
  22. package/dist/esm/types/components/UI/molecules/MegaMenuPopover/MegaMenuPopover.component.d.ts +2 -1
  23. package/dist/esm/types/components/UI/molecules/MegaMenuPopover/MegaMenuPopover.interface.d.ts +8 -0
  24. package/dist/esm/types/components/UI/organism/AlertsPanel/AlertsPanel.component.d.ts +6 -0
  25. package/dist/esm/types/components/UI/organism/AlertsPanel/AlertsPanel.interface.d.ts +41 -0
  26. package/dist/esm/types/components/UI/organism/AlertsPanel/children/AlertsPanelItem/AlertsPanelItem.component.d.ts +3 -0
  27. package/dist/esm/types/components/UI/organism/AlertsPanel/children/AlertsPanelList/AlertsPanelList.component.d.ts +3 -0
  28. package/dist/esm/types/components/UI/organism/AlertsPanel/index.d.ts +2 -0
  29. package/dist/esm/types/components/UI/organism/index.d.ts +1 -0
  30. package/dist/esm/types/components/UI/template/MegaMenu/MegaMenuContext.interface.d.ts +4 -1
  31. package/dist/esm/types/constants/stories/alertsPanel.constants.d.ts +4 -0
  32. package/dist/esm/types/constants/stories/index.d.ts +1 -0
  33. package/dist/index.d.ts +65 -4
  34. package/package.json +1 -1
@@ -8,6 +8,10 @@ export interface IAlertJobModal {
8
8
  * Additional class names for custom styling.
9
9
  */
10
10
  className?: string;
11
+ /**
12
+ * Additional class names for custom styling.
13
+ */
14
+ mobileClassName?: string;
11
15
  /**
12
16
  * Represents whether the modal is open or closed.
13
17
  */
@@ -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
+ }
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { IAlertsPanel } from './AlertsPanel.interface';
3
+ export declare const AlertsPanel: React.FC<IAlertsPanel> & {
4
+ List: React.FC<IAlertsPanel.List>;
5
+ Item: React.FC<IAlertsPanel.Item>;
6
+ };
@@ -0,0 +1,41 @@
1
+ /// <reference types="react" />
2
+ export interface IAlertsPanel {
3
+ /**
4
+ * This is the title on the top
5
+ */
6
+ title: string;
7
+ /**
8
+ * React children to be rendered inside the component.
9
+ */
10
+ children?: React.ReactNode;
11
+ /**
12
+ * Additional class names for custom styling.
13
+ */
14
+ className?: string;
15
+ }
16
+ export declare namespace IAlertsPanel {
17
+ interface List {
18
+ /**
19
+ * React children to be rendered inside the component.
20
+ */
21
+ children?: React.ReactNode;
22
+ /**
23
+ * Additional class names for custom styling.
24
+ */
25
+ className?: string;
26
+ }
27
+ interface Item {
28
+ /**
29
+ * Additional class names for custom styling.
30
+ */
31
+ className?: string;
32
+ /**
33
+ * This is the custom text
34
+ */
35
+ text: string;
36
+ /**
37
+ * React children to be rendered inside the component.
38
+ */
39
+ onDelete: () => void;
40
+ }
41
+ }
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { IAlertsPanel } from '../../AlertsPanel.interface';
3
+ export declare const AlertsPanelItem: React.FC<IAlertsPanel.Item>;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { IAlertsPanel } from '../../AlertsPanel.interface';
3
+ export declare const AlertsPanelList: React.FC<IAlertsPanel.List>;
@@ -0,0 +1,2 @@
1
+ export * from './AlertsPanel.interface';
2
+ export { AlertsPanel } from './AlertsPanel.component';
@@ -32,3 +32,4 @@ export * from './Timeline';
32
32
  export * from './UserTerms';
33
33
  export * from './MegaMenuDrawer';
34
34
  export * from './JobSuggestedDrawer';
35
+ export * from './AlertsPanel';
@@ -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;
@@ -0,0 +1,4 @@
1
+ export declare const alerts: {
2
+ id: number;
3
+ text: string;
4
+ }[];
@@ -23,3 +23,4 @@ export * from './alertJob.constants';
23
23
  export * from './similarCard.constants';
24
24
  export * from './jobSuggestedDrawer.constants';
25
25
  export * from './notification.constants';
26
+ export * from './alertsPanel.constants';