updates, fix upgraded shadcn components

This commit is contained in:
Yuri Tatishchev 2024-12-25 20:11:33 -08:00
parent 1c2c1336f1
commit ee4ea04da8
Signed by: CaZzzer
GPG Key ID: E0EBF441EA424369
10 changed files with 51 additions and 32 deletions

BIN
bun.lockb

Binary file not shown.

View File

@ -19,43 +19,43 @@
"devDependencies": {
"@oslojs/crypto": "^1.0.1",
"@oslojs/encoding": "^1.1.0",
"@sveltejs/adapter-auto": "^3.0.0",
"@sveltejs/adapter-auto": "^3.3.1",
"@sveltejs/adapter-node": "^5.2.11",
"@sveltejs/kit": "^2.15.0",
"@sveltejs/vite-plugin-svelte": "^4.0.0",
"@sveltejs/vite-plugin-svelte": "^5.0.3",
"@tailwindcss/container-queries": "^0.1.1",
"@tailwindcss/forms": "^0.5.9",
"@tailwindcss/typography": "^0.5.15",
"@types/better-sqlite3": "^7.6.11",
"@types/eslint": "^9.6.0",
"@types/better-sqlite3": "^7.6.12",
"@types/eslint": "^9.6.1",
"@types/qrcode-svg": "^1.1.5",
"arctic": "^2.2.1",
"arctic": "^2.3.3",
"autoprefixer": "^10.4.20",
"bits-ui": "^1.0.0-next.74",
"bits-ui": "^0.22.0",
"clsx": "^2.1.1",
"eslint": "^9.7.0",
"eslint": "^9.17.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-svelte": "^2.36.0",
"globals": "^15.0.0",
"eslint-plugin-svelte": "^2.46.1",
"globals": "^15.14.0",
"ip-address": "^10.0.1",
"lucide-svelte": "^0.469.0",
"prettier": "^3.3.2",
"prettier-plugin-svelte": "^3.2.6",
"prettier-plugin-tailwindcss": "^0.6.5",
"prettier": "^3.4.2",
"prettier-plugin-svelte": "^3.3.2",
"prettier-plugin-tailwindcss": "^0.6.9",
"qrcode-svg": "^1.1.0",
"svelte": "^5.0.0",
"svelte-check": "^4.0.0",
"svelte": "^5.16.0",
"svelte-check": "^4.1.1",
"tailwind-merge": "^2.6.0",
"tailwind-variants": "^0.3.0",
"tailwindcss": "^3.4.9",
"tailwindcss": "^3.4.17",
"tailwindcss-animate": "^1.0.7",
"typescript": "^5.0.0",
"typescript-eslint": "^8.0.0",
"vite": "^5.0.3"
"typescript": "^5.7.2",
"typescript-eslint": "^8.18.2",
"vite": "^6.0.6"
},
"dependencies": {
"@libsql/client": "^0.14.0",
"drizzle-kit": "^0.30.1",
"drizzle-orm": "^0.38.2"
"drizzle-orm": "^0.38.3"
}
}

View File

@ -5,6 +5,7 @@
let {
ref = $bindable(null),
class: className,
children,
...restProps
}: DialogPrimitive.DescriptionProps = $props();
</script>
@ -13,4 +14,6 @@
bind:ref
class={cn("text-muted-foreground text-sm", className)}
{...restProps}
/>
>
{@render children?.()}
</DialogPrimitive.Description>

View File

@ -5,6 +5,7 @@
let {
ref = $bindable(null),
class: className,
children,
...restProps
}: DialogPrimitive.OverlayProps = $props();
</script>
@ -16,4 +17,6 @@
className
)}
{...restProps}
/>
>
{@render children?.()}
</DialogPrimitive.Overlay>

View File

@ -5,6 +5,7 @@
let {
ref = $bindable(null),
class: className,
children,
...restProps
}: DialogPrimitive.TitleProps = $props();
</script>
@ -13,4 +14,6 @@
bind:ref
class={cn("text-lg font-semibold leading-none tracking-tight", className)}
{...restProps}
/>
>
{@render children?.()}
</DialogPrimitive.Title>

View File

@ -5,6 +5,7 @@
let {
ref = $bindable(null),
class: className,
children,
...restProps
}: LabelPrimitive.RootProps = $props();
</script>
@ -16,4 +17,6 @@
className
)}
{...restProps}
/>
>
{@render children?.()}
</LabelPrimitive.Root>

View File

@ -5,6 +5,7 @@
let {
ref = $bindable(null),
class: className,
children,
...restProps
}: TabsPrimitive.ContentProps = $props();
</script>
@ -16,4 +17,6 @@
className
)}
{...restProps}
/>
>
{@render children?.()}
</TabsPrimitive.Content>

View File

@ -5,6 +5,7 @@
let {
ref = $bindable(null),
class: className,
children,
...restProps
}: TabsPrimitive.ListProps = $props();
</script>
@ -16,4 +17,6 @@
className
)}
{...restProps}
/>
>
{@render children?.()}
</TabsPrimitive.List>

View File

@ -5,6 +5,7 @@
let {
ref = $bindable(null),
class: className,
children,
...restProps
}: TabsPrimitive.TriggerProps = $props();
</script>
@ -16,4 +17,6 @@
className
)}
{...restProps}
/>
>
{@render children?.()}
</TabsPrimitive.Trigger>

View File

@ -2,7 +2,7 @@
import * as Table from '$lib/components/ui/table';
import * as Dialog from '$lib/components/ui/dialog';
import { Badge } from '$lib/components/ui/badge';
import { Button } from '$lib/components/ui/button';
import { Button, buttonVariants } from '$lib/components/ui/button';
import { Input } from '$lib/components/ui/input';
import { LucidePlus } from 'lucide-svelte';
import type { PageData } from './$types';
@ -64,11 +64,9 @@
<!--Not sure if this is the best place for the input field, will think about it later-->
<div class="mt-auto flex self-end pt-4">
<Dialog.Root bind:open={dialogOpen}>
<Dialog.Trigger asChild let:builder>
<Button builders={[builder]}>
<LucidePlus class="mr-2 h-4 w-4" />
Add Client
</Button>
<Dialog.Trigger class={buttonVariants({ variant: "default" }) + "flex gap-4"}>
<LucidePlus />
Add Client
</Dialog.Trigger>
<Dialog.Content class="max-w-xs">
<form class="contents" method="post" action="?/create">