pillardash-ui-react 0.1.116 → 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 +10 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ interface ButtonProps {
|
|
|
11
11
|
/** Size of the button */
|
|
12
12
|
size?: "small" | "medium" | "large" | "sm" | "md" | "lg";
|
|
13
13
|
/** Visual style variant */
|
|
14
|
-
variant?: "primary" | "secondary" | "dark" | "neutral";
|
|
14
|
+
variant?: "primary" | "secondary" | "dark" | "neutral" | "danger" | "default";
|
|
15
15
|
/** Disabled state of the button */
|
|
16
16
|
disabled?: boolean;
|
|
17
17
|
/** Additional CSS classes */
|
|
@@ -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";
|