@mateosuarezdev/react-ui 1.0.51 → 1.0.52
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 +32 -0
- package/dist/index.js +1243 -1077
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -187,6 +187,17 @@ 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
|
+
|
|
190
201
|
export declare const DatePickerDemo: default_2.FC;
|
|
191
202
|
|
|
192
203
|
export declare function DatePickerPopover({ customTrigger, scrollerId, }: {
|
|
@@ -825,6 +836,27 @@ declare const titleSizes: {
|
|
|
825
836
|
"6": string;
|
|
826
837
|
};
|
|
827
838
|
|
|
839
|
+
declare type Toast = {
|
|
840
|
+
id: string;
|
|
841
|
+
type: "simple" | "info" | "success" | "warning" | "error" | "loading";
|
|
842
|
+
message: string;
|
|
843
|
+
duration?: number;
|
|
844
|
+
timeout?: number;
|
|
845
|
+
};
|
|
846
|
+
|
|
847
|
+
declare type ToastColors = {
|
|
848
|
+
success?: string;
|
|
849
|
+
simple?: string;
|
|
850
|
+
info?: string;
|
|
851
|
+
warning?: string;
|
|
852
|
+
error?: string;
|
|
853
|
+
loading?: string;
|
|
854
|
+
};
|
|
855
|
+
|
|
856
|
+
export declare const Toaster: ({ colors }: {
|
|
857
|
+
colors?: ToastColors;
|
|
858
|
+
}) => JSX.Element;
|
|
859
|
+
|
|
828
860
|
export declare function toTitleCase(str: string): string;
|
|
829
861
|
|
|
830
862
|
export declare function useClickAway<T extends HTMLElement = HTMLElement>(callback: () => void): RefObject<T | null>;
|