update to svelte 5 and tw 4 etc

This commit is contained in:
David Senoner 2025-05-19 16:25:20 +02:00
parent 2ea45109d1
commit e3b9a83e73
327 changed files with 5275 additions and 3363 deletions

View file

@ -1,9 +1,23 @@
<script>
import { cn } from "$lib/utils.js";
<script lang="ts">
import type { HTMLAttributes } from "svelte/elements";
import { cn, type WithElementRef } from "$lib/utils.js";
let { ref = $bindable(null), class: className, children, ...restProps } = $props();
let {
ref = $bindable(null),
class: className,
children,
...restProps
}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
</script>
<div bind:this={ref} class={cn("text-sm [&_p]:leading-relaxed", className)} {...restProps}>
<div
bind:this={ref}
data-slot="alert-description"
class={cn(
"text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",
className,
)}
{...restProps}
>
{@render children?.()}
</div>