@delightui/components 0.1.128 → 0.1.130
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/library.js +2 -2
- package/dist/cjs/library.js.map +1 -1
- package/dist/cjs/modules/notification/index.d.ts +2 -2
- package/dist/cjs/modules/notification/types.d.ts +2 -1
- package/dist/esm/library.js +2 -2
- package/dist/esm/library.js.map +1 -1
- package/dist/esm/modules/notification/index.d.ts +2 -2
- package/dist/esm/modules/notification/types.d.ts +2 -1
- package/dist/index.d.ts +3 -2
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import NotificationContainer from './NotificationContainer';
|
|
2
|
-
import { NotificationContainerProps } from './types';
|
|
2
|
+
import { NotificationContainerProps, TriggerNotificationPayload, Notification, NotificationTrigger } from './types';
|
|
3
3
|
export * from './NotificationContext';
|
|
4
|
-
export type { NotificationContainerProps };
|
|
4
|
+
export type { NotificationContainerProps, TriggerNotificationPayload, Notification, NotificationTrigger };
|
|
5
5
|
export default NotificationContainer;
|
|
@@ -20,6 +20,7 @@ export type TriggerNotificationPayload = Notification & {
|
|
|
20
20
|
export type NotificationContainerProps = {
|
|
21
21
|
className?: string;
|
|
22
22
|
};
|
|
23
|
+
export type NotificationTrigger = (payload: TriggerNotificationPayload) => void;
|
|
23
24
|
/**
|
|
24
25
|
* Context value for notifications.
|
|
25
26
|
*/
|
|
@@ -27,7 +28,7 @@ export type NotificationContextValue = {
|
|
|
27
28
|
notifications: Notification[];
|
|
28
29
|
clear: VoidFunction;
|
|
29
30
|
removeNotification: (id: number) => void;
|
|
30
|
-
trigger:
|
|
31
|
+
trigger: NotificationTrigger;
|
|
31
32
|
};
|
|
32
33
|
/**
|
|
33
34
|
* Props for the NotificationProvider component.
|