@veracity/vui
Version:
Veracity UI is a React component library crafted for use within Veracity applications and pages. Based on Styled Components and @xstyled.
34 lines (33 loc) • 1.4 kB
TypeScript
import { ThemingProps } from "../theme/types.js";
import "../theme/index.js";
import { BoxProps } from "../box/box.types.js";
import "../box/index.js";
import { DateRange } from "../calendar/calendar.types.js";
import "../calendar/index.js";
import { ReactNode } from "react";
import { Placement } from "@floating-ui/react";
//#region src/datePicker/datePicker.types.d.ts
type DatePickerPopupPosition = 'left' | 'right';
type DatePickerProps = Omit<BoxProps, 'size' | 'variant'> & ThemingProps<'DatePicker'> & {
/** Auto opened without value, used with dynamic adding of the filter (user clicks on "+ Add filter" button) */
autoOpened?: boolean;
/** Available date range for the Calendar */
boundaries?: DateRange;
/** @deprecated Please use placement ↓ */
popupPosition?: DatePickerPopupPosition;
/** Preferred placement of the content. Might be flipped if needs more space. */
placement?: Placement;
/** Selected date */
selectedDate?: Date;
/** Should the clear button be visible */
showClearButton?: boolean;
/** Custom content displayed at the bottom of the panel */
slotBottom?: ReactNode;
/** Custom content displayed at the top of the panel */
slotTop?: ReactNode;
/** Date selected callback */
onSelected?: (date?: Date) => void;
};
//#endregion
export { DatePickerPopupPosition, DatePickerProps };
//# sourceMappingURL=datePicker.types.d.ts.map