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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxt-ui-elements",
3
3
  "configKey": "uiElements",
4
- "version": "0.1.11",
4
+ "version": "0.1.12",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -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 {};
@@ -9,7 +9,6 @@ export const useDialog = () => {
9
9
  props: options
10
10
  });
11
11
  modal.open();
12
- return modal;
13
12
  };
14
13
  const confirmNavigate = (path, options) => {
15
14
  confirm({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-ui-elements",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "A collection of beautiful, animated UI components for Nuxt applications",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/genu/nuxt-ui-elements.git",