nuxt-ui-elements 0.1.11 → 0.1.12
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/module.json
CHANGED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
type CallbackFn = () => void | Promise<void>;
|
|
2
|
+
type Color = "primary" | "secondary" | "success" | "info" | "warning" | "error" | (string & {});
|
|
3
|
+
type Variant = "solid" | "outline";
|
|
4
|
+
export interface DialogConfirmOptions {
|
|
5
|
+
title: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
icon?: boolean;
|
|
8
|
+
confirmLabel?: string;
|
|
9
|
+
dismissLabel?: string;
|
|
10
|
+
color?: Color;
|
|
11
|
+
variant?: Variant;
|
|
12
|
+
close?: boolean;
|
|
13
|
+
onConfirm?: CallbackFn;
|
|
14
|
+
onDismiss?: CallbackFn;
|
|
15
|
+
ui?: any;
|
|
16
|
+
}
|
|
17
|
+
export declare const useDialog: () => {
|
|
18
|
+
confirm: (options: DialogConfirmOptions) => void;
|
|
19
|
+
confirmNavigate: (path: string, options?: Omit<DialogConfirmOptions, "title" | "description" | "onConfirm">) => void;
|
|
20
|
+
};
|
|
21
|
+
export {};
|
package/package.json
CHANGED