pillardash-ui-react 0.1.117 → 0.1.118

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
@@ -307,6 +307,14 @@ interface AlertContextProps {
307
307
  error: (message: string, description?: string) => void;
308
308
  info: (message: string, description?: string) => void;
309
309
  warning: (message: string, description?: string) => void;
310
+ confirm: (message: string, options?: ConfirmOptions) => Promise<boolean>;
311
+ }
312
+ interface ConfirmOptions {
313
+ title?: string;
314
+ description?: string;
315
+ confirmText?: string;
316
+ cancelText?: string;
317
+ type?: AlertType;
310
318
  }
311
319
  declare const AlertContext: React$1.Context<AlertContextProps | undefined>;
312
320
  interface AlertItem extends AlertProps {
@@ -322,6 +330,7 @@ declare const alert: {
322
330
  info: (message: string, description?: string) => void;
323
331
  warning: (message: string, description?: string) => void;
324
332
  show: (props: Omit<AlertProps, "onClose">) => void;
333
+ confirm: (message: string, options?: ConfirmOptions) => Promise<boolean>;
325
334
  };
326
335
 
327
336
  type ConfirmationType = "default" | "danger" | "warning" | "success" | "info";