magneto365.ui 2.58.0 → 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.
- package/dist/cjs/css/magneto.ui.lib.min.css +1 -1
- package/dist/cjs/index.js +334 -299
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/UI/molecules/Notification/Notification.component.d.ts +4 -0
- package/dist/cjs/types/components/UI/molecules/Notification/Notification.interface.d.ts +35 -0
- package/dist/cjs/types/components/UI/molecules/Notification/index.d.ts +2 -0
- package/dist/cjs/types/components/UI/molecules/index.d.ts +1 -0
- package/dist/cjs/types/components/UI/organism/JobDetailsDrawer/JobDetailsDrawer.interface.d.ts +1 -1
- package/dist/cjs/types/components/UI/organism/MobileJobDetailsDrawer/MobileJobDetailsDrawer.interface.d.ts +1 -1
- package/dist/cjs/types/constants/stories/index.d.ts +1 -0
- package/dist/cjs/types/constants/stories/notification.constants.d.ts +2 -0
- package/dist/esm/css/magneto.ui.lib.min.css +1 -1
- package/dist/esm/index.js +334 -300
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/UI/molecules/Notification/Notification.component.d.ts +4 -0
- package/dist/esm/types/components/UI/molecules/Notification/Notification.interface.d.ts +35 -0
- package/dist/esm/types/components/UI/molecules/Notification/index.d.ts +2 -0
- package/dist/esm/types/components/UI/molecules/index.d.ts +1 -0
- package/dist/esm/types/components/UI/organism/JobDetailsDrawer/JobDetailsDrawer.interface.d.ts +1 -1
- package/dist/esm/types/components/UI/organism/MobileJobDetailsDrawer/MobileJobDetailsDrawer.interface.d.ts +1 -1
- package/dist/esm/types/constants/stories/index.d.ts +1 -0
- package/dist/esm/types/constants/stories/notification.constants.d.ts +2 -0
- package/dist/index.d.ts +39 -3
- package/package.json +1 -1
|
@@ -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 {};
|