From 25a4e1a1d0e3400fa4203a0fe81f2e744a5b3fe6 Mon Sep 17 00:00:00 2001 From: Pontus Abrahamsson Date: Sun, 17 Dec 2023 18:19:27 +0100 Subject: [PATCH] Modal --- .../components/tables/vault/data-table.tsx | 5 +-- packages/ui/src/components/dialog.tsx | 6 +-- packages/ui/src/globals.css | 40 +++++++++++++++++++ 3 files changed, 44 insertions(+), 7 deletions(-) diff --git a/apps/dashboard/src/components/tables/vault/data-table.tsx b/apps/dashboard/src/components/tables/vault/data-table.tsx index 46a5b8ad22..db8ac9ec81 100644 --- a/apps/dashboard/src/components/tables/vault/data-table.tsx +++ b/apps/dashboard/src/components/tables/vault/data-table.tsx @@ -15,10 +15,7 @@ export function DataTable({ teamId }) { return ( - + Name Created at diff --git a/packages/ui/src/components/dialog.tsx b/packages/ui/src/components/dialog.tsx index 8217bb2d15..bd8eae5a72 100644 --- a/packages/ui/src/components/dialog.tsx +++ b/packages/ui/src/components/dialog.tsx @@ -18,7 +18,7 @@ const DialogOverlay = React.forwardRef< -
+
{children}
diff --git a/packages/ui/src/globals.css b/packages/ui/src/globals.css index f23e9a6e63..6298056825 100644 --- a/packages/ui/src/globals.css +++ b/packages/ui/src/globals.css @@ -74,4 +74,44 @@ [type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; +} + +@keyframes dialog-overlay-show { + from { + opacity: 0; + } + to { + opacity: 1; + } +} + +@keyframes dialog-overlay-hide { + from { + opacity: 1; + } + to { + opacity: 0; + } +} + +@keyframes dialog-content-show { + from { + opacity: 0; + transform: translate(-50%, -50%) scale(0.97); + } + to { + opacity: 1; + transform: translate(-50%, -50%) scale(1); + } +} + +@keyframes dialog-content-hide { + from { + opacity: 1; + transform: translate(-50%, -50%) scale(1); + } + to { + opacity: 0; + transform: translate(-50%, -50%) scale(0.97); + } } \ No newline at end of file