From 64e2f9c1997fcaad589674615544f0e9ea1658e4 Mon Sep 17 00:00:00 2001 From: Saeid Zareie <65568529+Saeid-Za@users.noreply.github.com> Date: Mon, 4 Mar 2024 10:04:28 +0330 Subject: [PATCH] feat: `vaul-vue` integration (#374) --- apps/www/.vitepress/theme/config/docs.ts | 6 + .../.vitepress/theme/layout/MainLayout.vue | 2 +- apps/www/__registry__/index.ts | 28 +++++ apps/www/package.json | 1 + .../www/src/content/docs/components/drawer.md | 63 ++++++++++ .../registry/default/example/DrawerDemo.vue | 111 ++++++++++++++++++ .../registry/default/example/DrawerDialog.vue | 90 ++++++++++++++ .../lib/registry/default/ui/drawer/Drawer.vue | 19 +++ .../default/ui/drawer/DrawerContent.vue | 28 +++++ .../default/ui/drawer/DrawerDescription.vue | 20 ++++ .../default/ui/drawer/DrawerFooter.vue | 14 +++ .../default/ui/drawer/DrawerHeader.vue | 14 +++ .../default/ui/drawer/DrawerOverlay.vue | 18 +++ .../default/ui/drawer/DrawerTitle.vue | 20 ++++ .../lib/registry/default/ui/drawer/index.ts | 8 ++ .../registry/new-york/example/DrawerDemo.vue | 111 ++++++++++++++++++ .../new-york/example/DrawerDialog.vue | 90 ++++++++++++++ .../registry/new-york/ui/drawer/Drawer.vue | 19 +++ .../new-york/ui/drawer/DrawerContent.vue | 28 +++++ .../new-york/ui/drawer/DrawerDescription.vue | 20 ++++ .../new-york/ui/drawer/DrawerFooter.vue | 14 +++ .../new-york/ui/drawer/DrawerHeader.vue | 14 +++ .../new-york/ui/drawer/DrawerOverlay.vue | 18 +++ .../new-york/ui/drawer/DrawerTitle.vue | 20 ++++ .../lib/registry/new-york/ui/drawer/index.ts | 8 ++ apps/www/src/public/registry/index.json | 20 +++- .../registry/styles/default/drawer.json | 42 +++++++ .../registry/styles/new-york/drawer.json | 42 +++++++ pnpm-lock.yaml | 14 +++ 29 files changed, 900 insertions(+), 2 deletions(-) create mode 100644 apps/www/src/content/docs/components/drawer.md create mode 100644 apps/www/src/lib/registry/default/example/DrawerDemo.vue create mode 100644 apps/www/src/lib/registry/default/example/DrawerDialog.vue create mode 100644 apps/www/src/lib/registry/default/ui/drawer/Drawer.vue create mode 100644 apps/www/src/lib/registry/default/ui/drawer/DrawerContent.vue create mode 100644 apps/www/src/lib/registry/default/ui/drawer/DrawerDescription.vue create mode 100644 apps/www/src/lib/registry/default/ui/drawer/DrawerFooter.vue create mode 100644 apps/www/src/lib/registry/default/ui/drawer/DrawerHeader.vue create mode 100644 apps/www/src/lib/registry/default/ui/drawer/DrawerOverlay.vue create mode 100644 apps/www/src/lib/registry/default/ui/drawer/DrawerTitle.vue create mode 100644 apps/www/src/lib/registry/default/ui/drawer/index.ts create mode 100644 apps/www/src/lib/registry/new-york/example/DrawerDemo.vue create mode 100644 apps/www/src/lib/registry/new-york/example/DrawerDialog.vue create mode 100644 apps/www/src/lib/registry/new-york/ui/drawer/Drawer.vue create mode 100644 apps/www/src/lib/registry/new-york/ui/drawer/DrawerContent.vue create mode 100644 apps/www/src/lib/registry/new-york/ui/drawer/DrawerDescription.vue create mode 100644 apps/www/src/lib/registry/new-york/ui/drawer/DrawerFooter.vue create mode 100644 apps/www/src/lib/registry/new-york/ui/drawer/DrawerHeader.vue create mode 100644 apps/www/src/lib/registry/new-york/ui/drawer/DrawerOverlay.vue create mode 100644 apps/www/src/lib/registry/new-york/ui/drawer/DrawerTitle.vue create mode 100644 apps/www/src/lib/registry/new-york/ui/drawer/index.ts create mode 100644 apps/www/src/public/registry/styles/default/drawer.json create mode 100644 apps/www/src/public/registry/styles/new-york/drawer.json diff --git a/apps/www/.vitepress/theme/config/docs.ts b/apps/www/.vitepress/theme/config/docs.ts index 34d2cd206..3a78338e2 100644 --- a/apps/www/.vitepress/theme/config/docs.ts +++ b/apps/www/.vitepress/theme/config/docs.ts @@ -214,6 +214,12 @@ export const docsConfig: DocsConfig = { href: '/docs/components/dialog', items: [], }, + { + title: 'Drawer', + href: '/docs/components/drawer', + items: [], + label: 'New', + }, { title: 'Dropdown Menu', href: '/docs/components/dropdown-menu', diff --git a/apps/www/.vitepress/theme/layout/MainLayout.vue b/apps/www/.vitepress/theme/layout/MainLayout.vue index 3cf802545..a8838c810 100644 --- a/apps/www/.vitepress/theme/layout/MainLayout.vue +++ b/apps/www/.vitepress/theme/layout/MainLayout.vue @@ -84,7 +84,7 @@ watch(() => $route.path, (n) => {