Bump the full dependency tree (Vite 8, Vitest 4, ESLint 10, Svelte 5.56, mode-watcher 1.x, etc.) and adapt code for breaking API changes. Upgrade Playwright CI image to v1.60 for Node 24 compatibility. Co-authored-by: Cursor <cursoragent@cursor.com>
21 lines
705 B
Svelte
21 lines
705 B
Svelte
<script lang="ts">
|
|
import { Toaster as Sonner, type ToasterProps as SonnerProps } from 'svelte-sonner';
|
|
import { mode } from 'mode-watcher';
|
|
|
|
let restProps: SonnerProps = $props();
|
|
</script>
|
|
|
|
<Sonner
|
|
theme={mode.current}
|
|
class="toaster group"
|
|
toastOptions={{
|
|
classes: {
|
|
toast:
|
|
'group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg',
|
|
description: 'group-[.toast]:text-muted-foreground',
|
|
actionButton: 'group-[.toast]:bg-primary group-[.toast]:text-primary-foreground',
|
|
cancelButton: 'group-[.toast]:bg-muted group-[.toast]:text-muted-foreground'
|
|
}
|
|
}}
|
|
{...restProps} />
|