From 395942d8b603eb38f8785742418e56b6ce1a5f8e Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Sat, 24 Feb 2024 13:26:34 +0000 Subject: [PATCH] Add modal drawer support with transitions --- packages/bbui/src/Drawer/Drawer.svelte | 144 ++++++++++++++---- packages/bbui/src/Drawer/DrawerContent.svelte | 2 +- .../common/bindings/BindingPanel.svelte | 16 +- .../[screenId]/_components/AppPanel.svelte | 1 + 4 files changed, 134 insertions(+), 29 deletions(-) diff --git a/packages/bbui/src/Drawer/Drawer.svelte b/packages/bbui/src/Drawer/Drawer.svelte index aa35cd4c59..6a0d02e02e 100644 --- a/packages/bbui/src/Drawer/Drawer.svelte +++ b/packages/bbui/src/Drawer/Drawer.svelte @@ -1,7 +1,52 @@ {#if visible} - + + {#if $modal} +
+ {/if}
0} + {style} > {#if !headless}
@@ -93,41 +173,55 @@
{/if} + {#if !$modal && depth > 0} +
+ {/if}
{/if}