pillardash-ui-react 0.1.117 → 0.1.119
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 +13 -4
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -65,7 +65,7 @@ type CheckBoxProps = {
|
|
|
65
65
|
id?: string;
|
|
66
66
|
className?: string;
|
|
67
67
|
error?: string;
|
|
68
|
-
|
|
68
|
+
helpText?: string;
|
|
69
69
|
required?: boolean;
|
|
70
70
|
indeterminate?: boolean;
|
|
71
71
|
};
|
|
@@ -81,13 +81,13 @@ type RadioGroupProps = {
|
|
|
81
81
|
size?: "sm" | "md" | "lg";
|
|
82
82
|
className?: string;
|
|
83
83
|
error?: string;
|
|
84
|
-
|
|
84
|
+
helpText?: string;
|
|
85
85
|
required?: boolean;
|
|
86
86
|
label?: string;
|
|
87
87
|
direction?: "horizontal" | "vertical";
|
|
88
88
|
};
|
|
89
|
-
declare const CheckBox: ({ variant, size, checked, disabled, onChange, label, labelPosition, name, value, id, className, error,
|
|
90
|
-
declare const RadioGroup: ({ name, value, onChange, options, size, className, error,
|
|
89
|
+
declare const CheckBox: ({ variant, size, checked, disabled, onChange, label, labelPosition, name, value, id, className, error, helpText, required, indeterminate, }: CheckBoxProps) => react_jsx_runtime.JSX.Element;
|
|
90
|
+
declare const RadioGroup: ({ name, value, onChange, options, size, className, error, helpText, required, label, direction, }: RadioGroupProps) => react_jsx_runtime.JSX.Element;
|
|
91
91
|
declare function CheckBoxDemo(): react_jsx_runtime.JSX.Element;
|
|
92
92
|
|
|
93
93
|
interface FileItem {
|
|
@@ -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";
|