2024-06-13 17:36:43 +02:00
|
|
|
<script lang="ts">
|
|
|
|
|
import { Calendar as CalendarPrimitive } from "bits-ui";
|
|
|
|
|
import { cn } from "$lib/utils.js";
|
|
|
|
|
|
2025-06-08 16:32:41 +02:00
|
|
|
let {
|
|
|
|
|
ref = $bindable(null),
|
|
|
|
|
class: className,
|
|
|
|
|
...restProps
|
|
|
|
|
}: CalendarPrimitive.CellProps = $props();
|
2024-06-13 17:36:43 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<CalendarPrimitive.Cell
|
2025-06-08 16:32:41 +02:00
|
|
|
bind:ref
|
2024-06-13 17:36:43 +02:00
|
|
|
class={cn(
|
2025-06-08 16:32:41 +02:00
|
|
|
"[&:has([data-selected])]:bg-accent [&:has([data-selected][data-outside-month])]:bg-accent/50 relative size-9 p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([data-selected])]:rounded-md",
|
2024-06-13 17:36:43 +02:00
|
|
|
className
|
|
|
|
|
)}
|
2025-06-08 16:32:41 +02:00
|
|
|
{...restProps}
|
|
|
|
|
/>
|