Skip to content

Commit

Permalink
next: Date Range Field (#586)
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte authored Jun 30, 2024
1 parent 1b608dd commit a6a2864
Show file tree
Hide file tree
Showing 18 changed files with 6,255 additions and 7,535 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<script lang="ts">
import VisuallyHidden from "$lib/bits/utilities/visually-hidden/visually-hidden.svelte";
import { useDateFieldHiddenInput } from "../date-field.svelte.js";
const hiddenInputState = useDateFieldHiddenInput();
</script>

{#if hiddenInputState.shouldRender}
<VisuallyHidden asChild>
{#snippet child({ props })}
<input {...props} {...hiddenInputState.props} />
{/snippet}
</VisuallyHidden>
{/if}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import { useDateFieldInput } from "../date-field.svelte.js";
import type { InputProps } from "../index.js";
import { mergeProps } from "$lib/internal/mergeProps.js";
import DateFieldHiddenInput from "./date-field-hidden-input.svelte";
let {
id = useId(),
Expand Down Expand Up @@ -32,3 +33,5 @@
{@render children?.({ segments: inputState.root.segmentContents })}
</div>
{/if}

<DateFieldHiddenInput />
Loading

0 comments on commit a6a2864

Please sign in to comment.