@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/README.md +1 -1
- package/dist/index.cjs +26 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +152 -144
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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
|
-
|
|
933
|
+
onHide: (id: string) => void;
|
|
934
934
|
};
|
|
935
935
|
|
|
936
936
|
export declare type ToastContextValue = {
|
|
937
|
-
|
|
938
|
-
|
|
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
|
-
|
|
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
|
|
1003
|
+
export declare const useToastr: () => ToastContextValue;
|
|
1004
1004
|
|
|
1005
1005
|
export declare type VacanoComponentClassNames<T> = T;
|
|
1006
1006
|
|