From f59d7727b25201cdf5a63b14a056d58940af5123 Mon Sep 17 00:00:00 2001 From: rev4324 Date: Tue, 29 Aug 2023 22:18:28 +0200 Subject: [PATCH] feat: add Alert component --- apps/www/src/App.vue | 3 ++ .../registry/default/examples/AlertDemo.vue | 14 ++++++ .../lib/registry/default/ui/alert/Alert.vue | 49 +++++++++++++++++++ .../default/ui/alert/AlertDescription.vue | 24 +++++++++ .../registry/default/ui/alert/AlertTitle.vue | 24 +++++++++ .../lib/registry/default/ui/alert/index.ts | 9 ++++ 6 files changed, 123 insertions(+) create mode 100644 apps/www/src/lib/registry/default/examples/AlertDemo.vue create mode 100644 apps/www/src/lib/registry/default/ui/alert/Alert.vue create mode 100644 apps/www/src/lib/registry/default/ui/alert/AlertDescription.vue create mode 100644 apps/www/src/lib/registry/default/ui/alert/AlertTitle.vue create mode 100644 apps/www/src/lib/registry/default/ui/alert/index.ts diff --git a/apps/www/src/App.vue b/apps/www/src/App.vue index 2702efd5..d985d856 100644 --- a/apps/www/src/App.vue +++ b/apps/www/src/App.vue @@ -5,6 +5,7 @@ import DialogDemo from '@/registry/default/examples/DialogDemo.vue' import AlertDialogDemo from '@/registry/default/examples/AlertDialogDemo.vue' import SelectDemo from '@/registry/default/examples/SelectDemo.vue' import AvatarDemo from '@/registry/default/examples/AvatarDemo.vue' +import AlertDemo from '@/registry/default/examples/AlertDemo.vue' diff --git a/apps/www/src/lib/registry/default/examples/AlertDemo.vue b/apps/www/src/lib/registry/default/examples/AlertDemo.vue new file mode 100644 index 00000000..62976f1f --- /dev/null +++ b/apps/www/src/lib/registry/default/examples/AlertDemo.vue @@ -0,0 +1,14 @@ + + + diff --git a/apps/www/src/lib/registry/default/ui/alert/Alert.vue b/apps/www/src/lib/registry/default/ui/alert/Alert.vue new file mode 100644 index 00000000..747ff8af --- /dev/null +++ b/apps/www/src/lib/registry/default/ui/alert/Alert.vue @@ -0,0 +1,49 @@ + + + diff --git a/apps/www/src/lib/registry/default/ui/alert/AlertDescription.vue b/apps/www/src/lib/registry/default/ui/alert/AlertDescription.vue new file mode 100644 index 00000000..88836726 --- /dev/null +++ b/apps/www/src/lib/registry/default/ui/alert/AlertDescription.vue @@ -0,0 +1,24 @@ + + + diff --git a/apps/www/src/lib/registry/default/ui/alert/AlertTitle.vue b/apps/www/src/lib/registry/default/ui/alert/AlertTitle.vue new file mode 100644 index 00000000..5b0b01a2 --- /dev/null +++ b/apps/www/src/lib/registry/default/ui/alert/AlertTitle.vue @@ -0,0 +1,24 @@ + + + diff --git a/apps/www/src/lib/registry/default/ui/alert/index.ts b/apps/www/src/lib/registry/default/ui/alert/index.ts new file mode 100644 index 00000000..8e37b41b --- /dev/null +++ b/apps/www/src/lib/registry/default/ui/alert/index.ts @@ -0,0 +1,9 @@ +import Alert from './Alert.vue'; +import AlertTitle from './AlertTitle.vue'; +import AlertDescription from './AlertDescription.vue'; + +export { + Alert, + AlertTitle, + AlertDescription +}