From df68a178c69fb995be21172f59b31ce368d10415 Mon Sep 17 00:00:00 2001 From: serafim-san Date: Fri, 29 Nov 2024 17:45:15 +0400 Subject: [PATCH] feat(input-calendar): added base --- src/lib/ui/core/Calendar/DatePicker.svelte | 4 +- .../core/InputCalendar/InputCalendar.svelte | 263 ++++++++++++++++++ src/lib/ui/core/InputCalendar/index.ts | 1 + .../Calendar/index.svelte | 5 + 4 files changed, 272 insertions(+), 1 deletion(-) create mode 100644 src/lib/ui/core/InputCalendar/InputCalendar.svelte create mode 100644 src/lib/ui/core/InputCalendar/index.ts diff --git a/src/lib/ui/core/Calendar/DatePicker.svelte b/src/lib/ui/core/Calendar/DatePicker.svelte index dbca336d..acd64741 100644 --- a/src/lib/ui/core/Calendar/DatePicker.svelte +++ b/src/lib/ui/core/Calendar/DatePicker.svelte @@ -20,6 +20,7 @@ maxDate?: Date timeZone?: string children?: Snippet + popoverRootProps?: ComponentProps['rootProps'] } type TSingleProps = { @@ -75,13 +76,14 @@ {@render label()} {:else} - + {#snippet children({ ref })}