master-components-react-ts 2.8.7 → 2.8.8
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.
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { NotificationToastProps } from './NotificationToast.types';
|
|
2
|
-
declare const
|
|
2
|
+
declare const useNotificationToast: {
|
|
3
3
|
(): ((props: NotificationToastProps) => void);
|
|
4
4
|
propKeys: readonly ["title", "colorType", "filled", "withClose", "withUndo", "withInfoIcon", "description", "customAction", "timeout", "children", "onUndo", "onClose"];
|
|
5
5
|
displayName: string;
|
|
6
6
|
description: string;
|
|
7
7
|
};
|
|
8
|
-
export default
|
|
8
|
+
export default useNotificationToast;
|
package/dist/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export { default as Radio } from './components/Radio/Radio';
|
|
|
9
9
|
export { default as Tooltip } from './components/Tooltip/Tooltip';
|
|
10
10
|
export { default as Popup } from './components/Popup/Popup';
|
|
11
11
|
export { default as ToastProvider } from './components/NotificationToast/NotificationContext';
|
|
12
|
-
export { default as
|
|
12
|
+
export { default as useNotificationToast } from './components/NotificationToast/createNotificationToast';
|
|
13
13
|
export { default as TimePicker } from './components/TimePicker/TimePicker';
|
|
14
14
|
export { default as DatePicker } from './components/DatePicker/DatePicker';
|
|
15
15
|
export type { PickerValue } from './components/DatePicker/DatePicker.types';
|
package/dist/index.js
CHANGED
|
@@ -1656,7 +1656,8 @@ const c1 = ({
|
|
|
1656
1656
|
c1.propKeys = ["children"];
|
|
1657
1657
|
const Nt = () => {
|
|
1658
1658
|
const c = jt(Jt);
|
|
1659
|
-
if (!c)
|
|
1659
|
+
if (!c)
|
|
1660
|
+
throw new Error("useNotificationToast must be used within ToastProvider");
|
|
1660
1661
|
return c.showToast;
|
|
1661
1662
|
};
|
|
1662
1663
|
Nt.propKeys = ["title", "colorType", "filled", "withClose", "withUndo", "withInfoIcon", "description", "customAction", "timeout", "children", "onUndo", "onClose"];
|
|
@@ -3528,5 +3529,5 @@ export {
|
|
|
3528
3529
|
Lt as Toggle,
|
|
3529
3530
|
Ct as Tooltip,
|
|
3530
3531
|
wl as TreeNode,
|
|
3531
|
-
Nt as
|
|
3532
|
+
Nt as useNotificationToast
|
|
3532
3533
|
};
|