@ctlyst.id/internal-ui 3.1.13 → 3.1.14

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/index.d.mts CHANGED
@@ -17,7 +17,7 @@ import { AsyncCreatableProps } from 'react-select/async-creatable';
17
17
  import { CreatableProps } from 'react-select/creatable';
18
18
  import { ToastOptions } from 'react-toastify';
19
19
  export { ToastContainer } from 'react-toastify';
20
- import { ToastIcon } from 'react-toastify/dist/types';
20
+ import { Id, ToastIcon } from 'react-toastify/dist/types';
21
21
  import * as axios from 'axios';
22
22
  import { AxiosRequestConfig, AxiosInstance, AxiosResponse } from 'axios';
23
23
  export { ThemeTypings } from '@chakra-ui/styled-system';
@@ -722,6 +722,7 @@ declare const useToast: () => {
722
722
  warning: (message: string, options?: CustomToastOptions) => void;
723
723
  info: (message: string, options?: CustomToastOptions) => void;
724
724
  custom: (message: string, options?: CustomToastOptions) => void;
725
+ dismiss: (id?: Id) => void;
725
726
  };
726
727
 
727
728
  interface BaseTooltipProps extends Omit<TooltipProps$1, 'color'> {
package/dist/index.d.ts CHANGED
@@ -17,7 +17,7 @@ import { AsyncCreatableProps } from 'react-select/async-creatable';
17
17
  import { CreatableProps } from 'react-select/creatable';
18
18
  import { ToastOptions } from 'react-toastify';
19
19
  export { ToastContainer } from 'react-toastify';
20
- import { ToastIcon } from 'react-toastify/dist/types';
20
+ import { Id, ToastIcon } from 'react-toastify/dist/types';
21
21
  import * as axios from 'axios';
22
22
  import { AxiosRequestConfig, AxiosInstance, AxiosResponse } from 'axios';
23
23
  export { ThemeTypings } from '@chakra-ui/styled-system';
@@ -722,6 +722,7 @@ declare const useToast: () => {
722
722
  warning: (message: string, options?: CustomToastOptions) => void;
723
723
  info: (message: string, options?: CustomToastOptions) => void;
724
724
  custom: (message: string, options?: CustomToastOptions) => void;
725
+ dismiss: (id?: Id) => void;
725
726
  };
726
727
 
727
728
  interface BaseTooltipProps extends Omit<TooltipProps$1, 'color'> {
package/dist/index.js CHANGED
@@ -4873,7 +4873,8 @@ var useToast = () => {
4873
4873
  ...restOptions,
4874
4874
  style: { backgroundColor: style == null ? void 0 : style.backgroundColor, color: style == null ? void 0 : style.color }
4875
4875
  });
4876
- }
4876
+ },
4877
+ dismiss: (id) => import_react_toastify.toast.dismiss(id)
4877
4878
  };
4878
4879
  };
4879
4880