fix ui package, use sv to create

recreated package using sv, marking correctly as a library. seems I was
missing some sveltekit tooling somewhere along the way otherwise.
This commit is contained in:
Elijah Duffy
2025-04-13 18:09:32 -06:00
parent bf2ef338e9
commit aecfb0ddaa
35 changed files with 310 additions and 55 deletions

23
src/lib/Label.svelte Normal file
View File

@@ -0,0 +1,23 @@
<script lang="ts">
import type { Snippet } from 'svelte';
let {
for: target,
error,
bigError,
children
}: { for: string; error?: boolean; bigError?: boolean; children: Snippet } = $props();
</script>
<label
for={target}
class={[
'transition-fontColor block',
error && !bigError
? 'mt-1 text-sm font-normal text-red-500'
: 'text-text dark:text-background mb-3 text-base font-medium',
bigError && 'text-red-500!'
]}
>
{@render children()}
</label>