first commit
linter / quality (push) Canceled after 0s
tests / ci (8.3) (push) Canceled after 0s
tests / ci (8.4) (push) Canceled after 0s
tests / ci (8.5) (push) Canceled after 0s

This commit is contained in:
salam committed 2026-10-06 18:53:03 +02:00
commit e687b4437b
418 files changed
+33577

No files matched your search

@@ -0,0 +1,16 @@
<script lang="ts">
import type { Snippet } from 'svelte';
import { cn } from '@/lib/utils';
let {
class: className = '',
children,
}: {
class?: string;
children?: Snippet;
} = $props();
</script>
<div data-slot="card" class={cn('bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm', className)}>
{@render children?.()}
</div>
@@ -0,0 +1,16 @@
<script lang="ts">
import type { Snippet } from 'svelte';
import { cn } from '@/lib/utils';
let {
class: className = '',
children,
}: {
class?: string;
children?: Snippet;
} = $props();
</script>
<div data-slot="card-action" class={cn('col-start-2 row-span-2 row-start-1 self-start justify-self-end', className)}>
{@render children?.()}
</div>
@@ -0,0 +1,16 @@
<script lang="ts">
import type { Snippet } from 'svelte';
import { cn } from '@/lib/utils';
let {
class: className = '',
children,
}: {
class?: string;
children?: Snippet;
} = $props();
</script>
<div data-slot="card-content" class={cn('px-6', className)}>
{@render children?.()}
</div>
@@ -0,0 +1,16 @@
<script lang="ts">
import type { Snippet } from 'svelte';
import { cn } from '@/lib/utils';
let {
class: className = '',
children,
}: {
class?: string;
children?: Snippet;
} = $props();
</script>
<p data-slot="card-description" class={cn('text-muted-foreground text-sm', className)}>
{@render children?.()}
</p>
@@ -0,0 +1,16 @@
<script lang="ts">
import type { Snippet } from 'svelte';
import { cn } from '@/lib/utils';
let {
class: className = '',
children,
}: {
class?: string;
children?: Snippet;
} = $props();
</script>
<div data-slot="card-footer" class={cn('flex items-center px-6 [.border-t]:pt-6', className)}>
{@render children?.()}
</div>
@@ -0,0 +1,22 @@
<script lang="ts">
import type { Snippet } from 'svelte';
import { cn } from '@/lib/utils';
let {
class: className = '',
children,
}: {
class?: string;
children?: Snippet;
} = $props();
</script>
<div
data-slot="card-header"
class={cn(
'@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6',
className,
)}
>
{@render children?.()}
</div>
@@ -0,0 +1,16 @@
<script lang="ts">
import type { Snippet } from 'svelte';
import { cn } from '@/lib/utils';
let {
class: className = '',
children,
}: {
class?: string;
children?: Snippet;
} = $props();
</script>
<h3 data-slot="card-title" class={cn('leading-none font-semibold', className)}>
{@render children?.()}
</h3>
+7
View File
@@ -0,0 +1,7 @@
export { default as Card } from './Card.svelte';
export { default as CardAction } from './CardAction.svelte';
export { default as CardContent } from './CardContent.svelte';
export { default as CardDescription } from './CardDescription.svelte';
export { default as CardFooter } from './CardFooter.svelte';
export { default as CardHeader } from './CardHeader.svelte';
export { default as CardTitle } from './CardTitle.svelte';