@marianmeres/stuic 1.74.0 → 1.76.0
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 { twMerge } from "tailwind-merge";
|
|
|
4
4
|
import Thc from "../Thc/Thc.svelte";
|
|
5
5
|
import X from "../X/X.svelte";
|
|
6
6
|
import { notificationsDefaultIcons } from "./notifications-icons.js";
|
|
7
|
+
import { disableScrollHandling } from "$app/navigation";
|
|
7
8
|
const X_POSITIONS = ["left", "center", "right"];
|
|
8
9
|
const Y_POSITIONS = ["top", "center", "bottom"];
|
|
9
10
|
const DEFAULT = {
|
|
@@ -129,9 +130,9 @@ const _iconFn = (o) => o.iconFn ?? defaultIcons?.[o.type];
|
|
|
129
130
|
const _isFn = (v) => typeof v === "function";
|
|
130
131
|
</script>
|
|
131
132
|
|
|
132
|
-
|
|
133
|
-
<div class={
|
|
134
|
-
{
|
|
133
|
+
{#if $notifications.length}
|
|
134
|
+
<div class={_wrapClass} aria-live="assertive">
|
|
135
|
+
<div class={_wrapInnerClass}>
|
|
135
136
|
{#each $notifications as n}
|
|
136
137
|
{@const iconFn = _iconFn(n)}
|
|
137
138
|
<!-- use your own component -->
|
|
@@ -187,6 +188,6 @@ const _isFn = (v) => typeof v === "function";
|
|
|
187
188
|
</div>
|
|
188
189
|
{/if}
|
|
189
190
|
{/each}
|
|
190
|
-
|
|
191
|
+
</div>
|
|
191
192
|
</div>
|
|
192
|
-
|
|
193
|
+
{/if}
|