@vacano/ui 1.10.0 → 1.11.0

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.ts CHANGED
@@ -930,17 +930,17 @@ export declare type ToastAction = {
930
930
  export declare type ToastContainerProps = {
931
931
  toasts: Toast[];
932
932
  queueCount: number;
933
- removeToast: (id: string) => void;
933
+ onHide: (id: string) => void;
934
934
  };
935
935
 
936
936
  export declare type ToastContextValue = {
937
- addToast: (message: string, variant?: ToastVariant, duration?: number) => void;
938
- removeToast: (id: string) => void;
937
+ show: (message: string, variant?: ToastVariant, duration?: number) => void;
938
+ hide: (id: string) => void;
939
939
  };
940
940
 
941
941
  export declare type ToastItemProps = {
942
942
  toast: Toast;
943
- onRemove: (id: string) => void;
943
+ onHide: (id: string) => void;
944
944
  };
945
945
 
946
946
  export declare const ToastProvider: ({ children }: PropsWithChildren) => JSX.Element;
@@ -1000,7 +1000,7 @@ export declare const useNotification: () => NotificationContextValue;
1000
1000
 
1001
1001
  export declare const useSaveProgress: () => SaveProgressContextValue;
1002
1002
 
1003
- export declare const useToast: () => ToastContextValue;
1003
+ export declare const useToastr: () => ToastContextValue;
1004
1004
 
1005
1005
  export declare type VacanoComponentClassNames<T> = T;
1006
1006