From 309c87a293ef68faa07bfaa53cfee41240b0e6e9 Mon Sep 17 00:00:00 2001 From: Ahmed Mayara <99325011+ahmedmayara@users.noreply.github.com> Date: Sat, 2 Sep 2023 15:36:45 +0100 Subject: [PATCH] [Feature]: Sheet (#23) * fix: fix alert dialog missing emits * feat: add sheet component --- apps/www/package.json | 1 + .../default/ui/alert-dialog/AlertDialog.vue | 9 +- .../ui/alert-dialog/AlertDialogContent.vue | 11 ++- .../lib/registry/default/ui/sheet/Sheet.vue | 9 ++ .../registry/default/ui/sheet/SheetClose.vue | 11 +++ .../default/ui/sheet/SheetContent.vue | 63 +++++++++++++ .../default/ui/sheet/SheetDescription.vue | 15 ++++ .../registry/default/ui/sheet/SheetFooter.vue | 18 ++++ .../registry/default/ui/sheet/SheetHeader.vue | 15 ++++ .../registry/default/ui/sheet/SheetTitle.vue | 15 ++++ .../default/ui/sheet/SheetTrigger.vue | 11 +++ .../lib/registry/default/ui/sheet/index.ts | 8 ++ apps/www/tsconfig.json | 2 +- pnpm-lock.yaml | 88 +++++++++++++++++-- 14 files changed, 264 insertions(+), 12 deletions(-) create mode 100644 apps/www/src/lib/registry/default/ui/sheet/Sheet.vue create mode 100644 apps/www/src/lib/registry/default/ui/sheet/SheetClose.vue create mode 100644 apps/www/src/lib/registry/default/ui/sheet/SheetContent.vue create mode 100644 apps/www/src/lib/registry/default/ui/sheet/SheetDescription.vue create mode 100644 apps/www/src/lib/registry/default/ui/sheet/SheetFooter.vue create mode 100644 apps/www/src/lib/registry/default/ui/sheet/SheetHeader.vue create mode 100644 apps/www/src/lib/registry/default/ui/sheet/SheetTitle.vue create mode 100644 apps/www/src/lib/registry/default/ui/sheet/SheetTrigger.vue create mode 100644 apps/www/src/lib/registry/default/ui/sheet/index.ts diff --git a/apps/www/package.json b/apps/www/package.json index 6fe7e130..c5a35ea4 100644 --- a/apps/www/package.json +++ b/apps/www/package.json @@ -26,6 +26,7 @@ "@iconify-json/tabler": "^1.1.89", "@iconify/json": "^2.2.108", "@iconify/vue": "^4.1.1", + "@types/node": "^20.5.7", "@vitejs/plugin-vue": "^4.1.0", "autoprefixer": "^10.4.14", "postcss": "^8.4.24", diff --git a/apps/www/src/lib/registry/default/ui/alert-dialog/AlertDialog.vue b/apps/www/src/lib/registry/default/ui/alert-dialog/AlertDialog.vue index aa77199c..b7eda12b 100644 --- a/apps/www/src/lib/registry/default/ui/alert-dialog/AlertDialog.vue +++ b/apps/www/src/lib/registry/default/ui/alert-dialog/AlertDialog.vue @@ -1,11 +1,16 @@ diff --git a/apps/www/src/lib/registry/default/ui/alert-dialog/AlertDialogContent.vue b/apps/www/src/lib/registry/default/ui/alert-dialog/AlertDialogContent.vue index 41badddc..fde4167f 100644 --- a/apps/www/src/lib/registry/default/ui/alert-dialog/AlertDialogContent.vue +++ b/apps/www/src/lib/registry/default/ui/alert-dialog/AlertDialogContent.vue @@ -1,22 +1,27 @@