@mateosuarezdev/react-ui 1.0.52 → 1.0.53
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.cjs +4 -4
- package/dist/index.d.ts +11 -11
- package/dist/index.js +996 -996
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -187,17 +187,6 @@ declare type ConfirmationDialogProps = {
|
|
|
187
187
|
trigger?: (open: () => void) => React.ReactNode;
|
|
188
188
|
};
|
|
189
189
|
|
|
190
|
-
export declare const createToastManager: (eventEmitter: EventEmitter_2) => {
|
|
191
|
-
simple: (message: string, data?: Partial<Toast>) => void;
|
|
192
|
-
info: (message: string, data?: Partial<Toast>) => void;
|
|
193
|
-
success: (message: string, data?: Partial<Toast>) => void;
|
|
194
|
-
warning: (message: string, data?: Partial<Toast>) => void;
|
|
195
|
-
error: (message: string, data?: Partial<Toast>) => void;
|
|
196
|
-
loading: (message: string, data?: Partial<Toast>) => string;
|
|
197
|
-
update: (id: string, newToast: Omit<Partial<Toast>, "id">) => void;
|
|
198
|
-
dismiss: (id: string) => void;
|
|
199
|
-
};
|
|
200
|
-
|
|
201
190
|
export declare const DatePickerDemo: default_2.FC;
|
|
202
191
|
|
|
203
192
|
export declare function DatePickerPopover({ customTrigger, scrollerId, }: {
|
|
@@ -844,6 +833,17 @@ declare type Toast = {
|
|
|
844
833
|
timeout?: number;
|
|
845
834
|
};
|
|
846
835
|
|
|
836
|
+
export declare const toast: {
|
|
837
|
+
simple: (message: string, data?: Partial<Toast>) => void;
|
|
838
|
+
info: (message: string, data?: Partial<Toast>) => void;
|
|
839
|
+
success: (message: string, data?: Partial<Toast>) => void;
|
|
840
|
+
warning: (message: string, data?: Partial<Toast>) => void;
|
|
841
|
+
error: (message: string, data?: Partial<Toast>) => void;
|
|
842
|
+
loading: (message: string, data?: Partial<Toast>) => string;
|
|
843
|
+
update: (id: string, newToast: Omit<Partial<Toast>, "id">) => void;
|
|
844
|
+
dismiss: (id: string) => void;
|
|
845
|
+
};
|
|
846
|
+
|
|
847
847
|
declare type ToastColors = {
|
|
848
848
|
success?: string;
|
|
849
849
|
simple?: string;
|