bits-ui
Version:
The headless components for Svelte.
52 lines (51 loc) • 2.14 kB
TypeScript
import { SvelteComponent } from "svelte";
declare const __propDef: {
props: {
disabled?: boolean | undefined;
isDateUnavailable?: import("@melt-ui/svelte/index.js").Matcher | undefined;
minValue?: import("@internationalized/date").DateValue | undefined;
maxValue?: import("@internationalized/date").DateValue | undefined;
readonly?: boolean | undefined;
locale?: string | undefined;
readonlySegments?: import("@melt-ui/svelte/index.js").EditableSegmentPart[] | undefined;
hourCycle?: (12 | 24) | undefined;
granularity?: import("@melt-ui/svelte/index.js").Granularity | undefined;
hideTimeZone?: boolean | undefined;
value?: import("@internationalized/date").DateValue | undefined;
onValueChange?: import("../../../internal/types.js").OnChangeFn<import("@internationalized/date").DateValue | undefined> | undefined;
placeholder?: import("@internationalized/date").DateValue | undefined;
onPlaceholderChange?: import("../../../internal/types.js").OnChangeFn<import("@internationalized/date").DateValue> | undefined;
validationId?: string | undefined;
descriptionId?: string | undefined;
};
events: {
[evt: string]: CustomEvent<any>;
};
slots: {
default: {
isInvalid: boolean;
ids: {
day: string;
description: string;
dayPeriod: string;
field: string;
hour: string;
minute: string;
month: string;
second: string;
year: string;
validation: string;
label: string;
timeZoneName: string;
};
};
};
exports?: {} | undefined;
bindings?: string | undefined;
};
export type DateFieldProps = typeof __propDef.props;
export type DateFieldEvents = typeof __propDef.events;
export type DateFieldSlots = typeof __propDef.slots;
export default class DateField extends SvelteComponent<DateFieldProps, DateFieldEvents, DateFieldSlots> {
}
export {};