master-components-react-ts 1.0.5 → 1.0.6
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,9 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { NotificationToastProps } from './NotificationToast.types';
|
|
3
|
+
export declare const ToastContext: import('react').Context<{
|
|
4
|
+
showToast: (props: NotificationToastProps) => void;
|
|
5
|
+
} | null>;
|
|
6
|
+
declare const ToastProvider: ({ children }: {
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default ToastProvider;
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
1
|
import { NotificationToastProps } from './NotificationToast.types';
|
|
3
|
-
declare const ToastProvider: ({ children }: {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
2
|
declare const createNotificationToast: () => ((props: NotificationToastProps) => void);
|
|
7
|
-
export
|
|
3
|
+
export default createNotificationToast;
|
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export { default as Dropdown } from './components/Dropdown/Dropdown';
|
|
|
7
7
|
export { default as Radio } from './components/Radio/Radio';
|
|
8
8
|
export { default as Tooltip } from './components/Tooltip/Tooltip';
|
|
9
9
|
export { default as Popup } from './components/Popup/Popup';
|
|
10
|
-
export { createNotificationToast
|
|
10
|
+
export { default as createNotificationToast } from './components/NotificationToast/createNotificationToast';
|
|
11
|
+
export { default as ToastProvider } from './components/NotificationToast/NotificationContext';
|
|
11
12
|
export { default as TimePicker } from './components/TimePicker/TimePicker';
|
|
12
13
|
export { default as DatePicker } from './components/DatePicker/DatePicker';
|