Switching ui lib & refactoring (#80)

switch to shadcn ui
bump runtime versions (node, pnpm, etc)
refactor gui
This commit is contained in:
Vilian Gerdzhikov
2024-01-24 06:05:07 +00:00
committed by GitHub
parent 12365282a3
commit 353ec976d5
262 changed files with 8688 additions and 2048 deletions

View File

@@ -0,0 +1,21 @@
<script lang="ts">
import { cn } from '$lib/utils'
import type { HTMLAttributes } from 'svelte/elements'
import { alertVariants, type Variant } from '.'
type $$Props = HTMLAttributes<HTMLDivElement> & {
variant?: Variant
}
let className: $$Props['class'] = undefined
export let variant: $$Props['variant'] = 'default'
export { className as class }
</script>
<div
class={cn(alertVariants({ variant }), className)}
{...$$restProps}
role="alert"
>
<slot />
</div>