gov-ui-core 1.0.24 → 1.0.26

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,7 @@
1
+ import React from 'react';
2
+ import { ToastOptions } from './';
3
+ export interface ICustomToastProps extends ToastOptions {
4
+ toastId: string;
5
+ }
6
+ declare const CustomToast: React.FC<ICustomToastProps>;
7
+ export default CustomToast;
@@ -1,12 +1,14 @@
1
1
  import React from 'react';
2
- export interface IToastProps {
3
- toastPosition?: string;
2
+ import { ToastOptions as ToastifyToastOptions, ToastPosition } from 'react-toastify';
3
+ export interface ToastOptions<TData = unknown> extends Omit<ToastifyToastOptions<TData>, 'type'> {
4
4
  type?: 'default' | 'error' | 'success' | 'warning' | 'primary';
5
5
  title?: string | React.ReactNode;
6
- description?: string | React.ReactNode;
6
+ toastPosition?: ToastPosition;
7
+ description?: React.ReactNode;
8
+ message?: React.ReactNode;
7
9
  isIcon?: boolean;
8
10
  isCloseBtn?: boolean;
9
11
  buttonList?: any;
10
12
  }
11
- declare const Toast: React.FC<IToastProps>;
13
+ declare const Toast: (props: ToastOptions) => import("react-toastify").Id;
12
14
  export default Toast;
@@ -1,6 +1,7 @@
1
1
  export declare const ToastBox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
2
- type?: string | undefined;
3
- title?: string | undefined;
4
- isIcon?: boolean | undefined;
5
- buttonList?: boolean | undefined;
2
+ $type?: string | undefined;
3
+ $hasTitle?: boolean | undefined;
4
+ $isIcon?: boolean | undefined;
5
+ $buttonList?: boolean | undefined;
6
+ $colors: Record<string, string | undefined>;
6
7
  }, never>;