feat: add season request dialog and enhance season request management

This commit is contained in:
maxDorninger
2025-05-24 19:30:53 +02:00
parent d2f0b8f22d
commit 84abc3e81d
16 changed files with 349 additions and 41 deletions

View File

@@ -0,0 +1 @@
export {default as Toaster} from "./sonner.svelte";

View File

@@ -0,0 +1,20 @@
<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
{...restProps}
class="toaster group"
theme={mode.current}
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",
},
}}
/>