npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@xosen/vuetify-dialog

v0.0.1

Published

Vuetify 3 dialog system with form integration, wizards, and async component support

Readme

@xosen/vuetify-dialog

Vuetify 3 dialog system with form integration, wizards, and async component support.

Features

  • Dialog System - Base dialog with async/await support
  • Form Integration - SchemaDialog with XFormBuilder integration
  • Alert & Snackbar - Built-in notifications
  • Async Actions - Handle async operations with loading states
  • Future: Wizards - Multi-step forms with navigation (coming soon)

Installation

npm install @xosen/vuetify-dialog @xosen/vuetify-form
# or
pnpm add @xosen/vuetify-dialog @xosen/vuetify-form

Usage

1. Install the Plugin

// main.ts
import { createApp } from 'vue'
import { createVuetifyDialogPlugin } from '@xosen/vuetify-dialog'

const app = createApp(App)

// Install dialog plugin
app.use(createVuetifyDialogPlugin())

2. Use SchemaDialog (Form Integration)

import { defineFormSchema, vine } from '@xosen/vuetify-form'
import type { DialogSchema } from '@xosen/vuetify-dialog'

const schema: DialogSchema = {
  title: 'Create Product',

  formSchema: defineFormSchema({
    name: {
      type: 'text',
      label: 'Product Name',
      required: true,
    },
    price: {
      type: 'number',
      label: 'Price',
      required: true,
    },
  }),

  vineSchema: vine.object({
    name: vine.string().minLength(2),
    price: vine.number().min(0),
  }),

  onSave: async (data) => {
    await api.createProduct(data)
    return data
  },
}

// Open the dialog
const result = await $dialog.schema(schema)
console.log('Created:', result)

3. Use Basic Dialogs

// Confirm dialog
const confirmed = await $dialog.confirm({
  title: 'Delete Item?',
  text: 'This action cannot be undone.',
})

// Alert dialog
await $dialog.alert('Operation successful!')

// Error dialog
await $dialog.error('Something went wrong')

Architecture

This package is part of the Xosen monorepo ecosystem:

@xosen/vuetify-form          ← Pure form building
@xosen/vuetify-dialog        ← Dialog + form integration (this package)

Separation of Concerns:

  • @xosen/vuetify-form - No dialog dependencies
  • @xosen/vuetify-dialog - Integrates form with dialogs
  • Clean composition through peerDependencies

Components

SchemaDialog

Form dialog with auto-validation and loading states.

Features:

  • Automatic form validation before save
  • Loading states during async operations
  • Error handling with user notifications
  • Supports all XFormBuilder field types
  • VineJS validation integration

Dialog

Base dialog component for custom dialogs.

Alert & Snackbar

Built-in notification components.

Future Features

Wizard Component (Coming Soon)

Multi-step form wizard with navigation:

const wizardSchema = {
  title: 'Setup Wizard',
  steps: [
    {
      title: 'Step 1: Basic Info',
      formSchema: { /* fields */ },
    },
    {
      title: 'Step 2: Details',
      formSchema: { /* fields */ },
    },
  ],
  onComplete: async (data) => {
    // Handle all steps data
  },
}

await $dialog.wizard(wizardSchema)

Features:

  • Next/Previous buttons
  • Step validation
  • Progress indicator
  • Conditional steps
  • Summary step

API Reference

Dialog Methods

$dialog.schema(schema: DialogSchema): Promise<any>
$dialog.confirm(options): Promise<boolean>
$dialog.alert(message): Promise<void>
$dialog.error(message): Promise<void>
$dialog.snackbar(message, options): void

DialogSchema Type

interface DialogSchema {
  title: string | ((props: any) => string)
  formSchema: FormFieldsObject | FormField[] | FormSchema
  vineSchema?: VineSchema
  dialogOptions?: DialogOptions
  buttonTexts?: {
    cancel?: string
    save?: string
  }
  onLoad?: (props: any) => Promise<any>
  onSave: (data: any, props: any) => Promise<any>
  actions?: Record<string, DialogAction>
}

License

MIT

Contributing

Contributions are welcome! Please open an issue or pull request.