magneto365.ui 2.58.1 → 2.59.0

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.
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { INotification } from './Notification.interface';
3
+ declare const Notification: React.FC<INotification>;
4
+ export default Notification;
@@ -0,0 +1,35 @@
1
+ /// <reference types="react" />
2
+ /**
3
+ * Defines the position of the Notification component
4
+ */
5
+ declare type NotificationPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
6
+ /**
7
+ * Interface for Notification component props
8
+ */
9
+ export interface INotification {
10
+ /**
11
+ * Callback function to close the notification
12
+ */
13
+ onClose: () => void;
14
+ /**
15
+ * Message to display in the notification
16
+ */
17
+ message?: React.ReactNode;
18
+ /**
19
+ * Position where the notification will appear
20
+ */
21
+ position?: NotificationPosition;
22
+ /**
23
+ * Custom class for styling the notification container
24
+ */
25
+ className?: string;
26
+ /**
27
+ * Duration in milliseconds before auto-closing the notification
28
+ */
29
+ autoCloseDuration?: number;
30
+ /**
31
+ * Extra content to display in the notification
32
+ */
33
+ extraContent?: React.ReactNode;
34
+ }
35
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from './Notification.interface';
2
+ export { default as Notification } from './Notification.component';
@@ -72,3 +72,4 @@ export * from './UserMenuWrapperAnalyst';
72
72
  export * from './AlertJobStatus';
73
73
  export * from './SimilarCard';
74
74
  export * from './MegaMenuDrawerItem';
75
+ export * from './Notification';
@@ -22,3 +22,4 @@ export * from './megaMenu.constants';
22
22
  export * from './alertJob.constants';
23
23
  export * from './similarCard.constants';
24
24
  export * from './jobSuggestedDrawer.constants';
25
+ export * from './notification.constants';
@@ -0,0 +1,2 @@
1
+ import { INotification } from '@components/UI/molecules/Notification';
2
+ export declare const notification: INotification;