nuxt-ui-elements 0.1.22 → 0.1.24

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.22",
4
+ "version": "0.1.24",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -1,15 +1,15 @@
1
1
  import type { AppConfig } from "@nuxt/schema";
2
2
  import theme from "#build/ui-elements/dialog-alert";
3
- import type { ComponentConfig } from "../types/tv.js";
3
+ import type { ComponentConfig } from "../types/index.js";
4
4
  type DialogAlert = ComponentConfig<typeof theme, AppConfig, "dialogAlert">;
5
- interface DialogAlertProps {
5
+ export interface DialogAlertProps {
6
6
  title?: string;
7
7
  description?: string;
8
8
  icon?: string;
9
9
  label?: string;
10
10
  color?: DialogAlert["variants"]["color"];
11
11
  variant?: DialogAlert["variants"]["variant"];
12
- onDismiss?: (() => void) | (() => Promise<void>);
12
+ onDismiss?: () => void | Promise<void>;
13
13
  ui?: DialogAlert["slots"];
14
14
  }
15
15
  declare const _default: typeof __VLS_export;
@@ -1,15 +1,15 @@
1
1
  import type { AppConfig } from "@nuxt/schema";
2
2
  import theme from "#build/ui-elements/dialog-alert";
3
- import type { ComponentConfig } from "../types/tv.js";
3
+ import type { ComponentConfig } from "../types/index.js";
4
4
  type DialogAlert = ComponentConfig<typeof theme, AppConfig, "dialogAlert">;
5
- interface DialogAlertProps {
5
+ export interface DialogAlertProps {
6
6
  title?: string;
7
7
  description?: string;
8
8
  icon?: string;
9
9
  label?: string;
10
10
  color?: DialogAlert["variants"]["color"];
11
11
  variant?: DialogAlert["variants"]["variant"];
12
- onDismiss?: (() => void) | (() => Promise<void>);
12
+ onDismiss?: () => void | Promise<void>;
13
13
  ui?: DialogAlert["slots"];
14
14
  }
15
15
  declare const _default: typeof __VLS_export;
@@ -1,18 +1,18 @@
1
1
  import type { AppConfig } from "@nuxt/schema";
2
2
  import theme from "#build/ui-elements/dialog-confirm";
3
- import type { ComponentConfig } from "../types/tv.js";
3
+ import type { ComponentConfig } from "../types/index.js";
4
4
  type DialogConfirm = ComponentConfig<typeof theme, AppConfig, "dialogConfirm">;
5
- interface DialogConfirmProps {
5
+ export interface DialogConfirmProps {
6
6
  title?: string;
7
7
  description?: string;
8
8
  icon?: boolean;
9
9
  confirmLabel?: string;
10
10
  dismissLabel?: string;
11
- close?: boolean;
12
11
  color?: DialogConfirm["variants"]["color"];
13
12
  variant?: DialogConfirm["variants"]["variant"];
14
- onConfirm?: (() => void) | (() => Promise<void>);
15
- onDismiss?: () => void;
13
+ close?: boolean;
14
+ onConfirm?: () => void | Promise<void>;
15
+ onDismiss?: () => void | Promise<void>;
16
16
  ui?: DialogConfirm["slots"];
17
17
  }
18
18
  declare const _default: typeof __VLS_export;
@@ -26,9 +26,9 @@ const {
26
26
  icon: { type: Boolean, required: false },
27
27
  confirmLabel: { type: String, required: false },
28
28
  dismissLabel: { type: String, required: false },
29
- close: { type: Boolean, required: false },
30
29
  color: { type: null, required: false },
31
30
  variant: { type: null, required: false },
31
+ close: { type: Boolean, required: false },
32
32
  onConfirm: { type: Function, required: false },
33
33
  onDismiss: { type: Function, required: false },
34
34
  ui: { type: null, required: false }
@@ -1,18 +1,18 @@
1
1
  import type { AppConfig } from "@nuxt/schema";
2
2
  import theme from "#build/ui-elements/dialog-confirm";
3
- import type { ComponentConfig } from "../types/tv.js";
3
+ import type { ComponentConfig } from "../types/index.js";
4
4
  type DialogConfirm = ComponentConfig<typeof theme, AppConfig, "dialogConfirm">;
5
- interface DialogConfirmProps {
5
+ export interface DialogConfirmProps {
6
6
  title?: string;
7
7
  description?: string;
8
8
  icon?: boolean;
9
9
  confirmLabel?: string;
10
10
  dismissLabel?: string;
11
- close?: boolean;
12
11
  color?: DialogConfirm["variants"]["color"];
13
12
  variant?: DialogConfirm["variants"]["variant"];
14
- onConfirm?: (() => void) | (() => Promise<void>);
15
- onDismiss?: () => void;
13
+ close?: boolean;
14
+ onConfirm?: () => void | Promise<void>;
15
+ onDismiss?: () => void | Promise<void>;
16
16
  ui?: DialogConfirm["slots"];
17
17
  }
18
18
  declare const _default: typeof __VLS_export;
@@ -1,31 +1,5 @@
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 interface DialogAlertOptions {
18
- title: string;
19
- description?: string;
20
- icon?: string;
21
- label?: string;
22
- color?: Color;
23
- variant?: Variant;
24
- onDismiss?: CallbackFn;
25
- ui?: any;
26
- }
1
+ import type { DialogConfirmProps, DialogAlertProps } from "../types/index.js";
27
2
  export declare const useDialog: () => {
28
- confirm: (options: DialogConfirmOptions) => void;
29
- alert: (options: DialogAlertOptions) => void;
3
+ confirm: (options: DialogConfirmProps) => void;
4
+ alert: (options: DialogAlertProps) => void;
30
5
  };
31
- export {};
@@ -1,6 +1,6 @@
1
+ import { useOverlay } from "#imports";
1
2
  import DialogConfirm from "../components/DialogConfirm.vue";
2
3
  import DialogAlert from "../components/DialogAlert.vue";
3
- import { useOverlay } from "#imports";
4
4
  export const useDialog = () => {
5
5
  const overlay = useOverlay();
6
6
  const confirm = (options) => {
@@ -0,0 +1,3 @@
1
+ export * from "../components/DialogConfirm.vue.js";
2
+ export * from "../components/DialogAlert.vue.js";
3
+ export * from "./tv.js";
@@ -0,0 +1,3 @@
1
+ export * from "../components/DialogConfirm.vue";
2
+ export * from "../components/DialogAlert.vue";
3
+ export * from "./tv.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-ui-elements",
3
- "version": "0.1.22",
3
+ "version": "0.1.24",
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",