UNPKG

bits-ui

Version:

The headless components for Svelte.

15 lines (14 loc) 672 B
import type { DateValue } from "@internationalized/date"; import type { EditableSegmentPart, Ellipsis, Month, Page, PageItem } from "@melt-ui/svelte"; export type Selected<Value> = { value: Value; label?: string; }; export type DateRange = { start: DateValue | undefined; end: DateValue | undefined; }; export type SegmentPart = "month" | "day" | "year" | "hour" | "minute" | "second" | "dayPeriod" | "timeZoneName" | "literal"; export type FocusTarget = string | HTMLElement | SVGElement | null; export type FocusProp = FocusTarget | ((defaultEl?: HTMLElement | null) => FocusTarget); export type { Month, Page, PageItem, Ellipsis, EditableSegmentPart };