@streamscloud/kit 0.9.15 → 0.9.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4,6 +4,7 @@ import { untrack } from 'svelte';
|
|
|
4
4
|
let { dialog } = $props();
|
|
5
5
|
let dialogElement = $state();
|
|
6
6
|
const isActive = $derived(Dialogs.active(dialog.containerId)?.id === dialog.id);
|
|
7
|
+
const isStacked = $derived(Dialogs.dialogs(dialog.containerId).findIndex((d) => d.id === dialog.id) > 0);
|
|
7
8
|
const canDismiss = $derived(!dialog.controller.settings.nonCancelable && dialog.controller.settings.closeOnEsc);
|
|
8
9
|
const DialogView = $derived(dialog.view);
|
|
9
10
|
// TEMP: Workaround for Chromium bug where preventDefault() on cancel event
|
|
@@ -65,6 +66,7 @@ const isStretchContent = $derived(position === 'full-screen' || position === 'fu
|
|
|
65
66
|
bind:this={dialogElement}
|
|
66
67
|
class="dialog-container"
|
|
67
68
|
class:dialog-container--inactive={!isActive}
|
|
69
|
+
class:dialog-container--stacked={isStacked}
|
|
68
70
|
class:dialog-container--size-small={size === 'small'}
|
|
69
71
|
class:dialog-container--size-medium={size === 'medium'}
|
|
70
72
|
class:dialog-container--size-default={size === 'default'}
|
|
@@ -150,6 +152,9 @@ DialogContainer — wraps the native `<dialog>` element with sizing, positioning
|
|
|
150
152
|
background: var(--_dialog-container--backdrop);
|
|
151
153
|
animation: dialog-container-backdrop-fade-in var(--sc-kit--duration--slow) var(--sc-kit--ease--out) both;
|
|
152
154
|
}
|
|
155
|
+
.dialog-container--stacked::backdrop {
|
|
156
|
+
animation: none;
|
|
157
|
+
}
|
|
153
158
|
.dialog-container--inactive::backdrop {
|
|
154
159
|
background: transparent;
|
|
155
160
|
}
|