buildgrid-ui 1.11.0 → 1.11.2
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/buildgrid-ui.es.js +2885 -2856
- package/dist/buildgrid-ui.umd.js +58 -58
- package/dist/components/toaster/index.d.ts +1 -1
- package/dist/components/toaster/toast.d.ts +46 -0
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './toast';
|
|
2
2
|
export * from './toaster';
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ExternalToast } from 'sonner';
|
|
3
|
+
export declare const toast: {
|
|
4
|
+
success: (message: string | React.ReactNode, data?: ExternalToast) => string | number;
|
|
5
|
+
error: (message: string | React.ReactNode, data?: ExternalToast) => string | number;
|
|
6
|
+
warning: (message: string | React.ReactNode, data?: ExternalToast) => string | number;
|
|
7
|
+
info: (message: string | React.ReactNode, data?: ExternalToast) => string | number;
|
|
8
|
+
custom: (jsx: (id: number | string) => React.ReactElement, data?: ExternalToast) => string | number;
|
|
9
|
+
message: (message: (React.ReactNode | (() => React.ReactNode)) | React.ReactNode, data?: ExternalToast) => string | number;
|
|
10
|
+
promise: <ToastData>(promise: Promise<ToastData> | (() => Promise<ToastData>), data?: {
|
|
11
|
+
style?: React.CSSProperties | undefined;
|
|
12
|
+
className?: string | undefined;
|
|
13
|
+
id?: number | string | undefined;
|
|
14
|
+
icon?: React.ReactNode;
|
|
15
|
+
onDismiss?: ((toast: import("sonner").ToastT) => void) | undefined;
|
|
16
|
+
cancel?: React.ReactNode | import("sonner").Action;
|
|
17
|
+
position?: ("top-left" | "top-right" | "bottom-left" | "bottom-right" | "top-center" | "bottom-center") | undefined;
|
|
18
|
+
richColors?: boolean | undefined;
|
|
19
|
+
invert?: boolean | undefined;
|
|
20
|
+
closeButton?: boolean | undefined;
|
|
21
|
+
dismissible?: boolean | undefined;
|
|
22
|
+
duration?: number | undefined;
|
|
23
|
+
action?: React.ReactNode | import("sonner").Action;
|
|
24
|
+
onAutoClose?: ((toast: import("sonner").ToastT) => void) | undefined;
|
|
25
|
+
cancelButtonStyle?: React.CSSProperties | undefined;
|
|
26
|
+
actionButtonStyle?: React.CSSProperties | undefined;
|
|
27
|
+
unstyled?: boolean | undefined;
|
|
28
|
+
classNames?: import("sonner").ToastClassnames | undefined;
|
|
29
|
+
descriptionClassName?: string | undefined;
|
|
30
|
+
} & {
|
|
31
|
+
loading?: string | React.ReactNode;
|
|
32
|
+
success?: React.ReactNode | ((data: ToastData) => React.ReactNode | string | Promise<React.ReactNode | string>);
|
|
33
|
+
error?: React.ReactNode | ((data: any) => React.ReactNode | string | Promise<React.ReactNode | string>);
|
|
34
|
+
description?: React.ReactNode | ((data: any) => React.ReactNode | string | Promise<React.ReactNode | string>);
|
|
35
|
+
finally?: () => void | Promise<void>;
|
|
36
|
+
}) => (string & {
|
|
37
|
+
unwrap: () => Promise<ToastData>;
|
|
38
|
+
}) | (number & {
|
|
39
|
+
unwrap: () => Promise<ToastData>;
|
|
40
|
+
}) | {
|
|
41
|
+
unwrap: () => Promise<ToastData>;
|
|
42
|
+
};
|
|
43
|
+
dismiss: (id?: number | string) => string | number;
|
|
44
|
+
loading: (message: (React.ReactNode | (() => React.ReactNode)) | React.ReactNode, data?: ExternalToast) => string | number;
|
|
45
|
+
getHistory: () => (import("sonner").ToastT | import("sonner").ToastToDismiss)[];
|
|
46
|
+
};
|