UNPKG

@coveord/plasma-mantine

Version:

A Plasma flavoured Mantine theme

29 lines 1.5 kB
import { CalendarBaseProps, type DateStringValue, type DatesRangeValue } from '@mantine/dates'; import { DateRangePickerPreset } from './DateRangePickerPresetSelect.js'; import { EditableDateRangePickerProps } from './EditableDateRangePicker.js'; interface DateRangePickerPopoverCalendarProps extends Pick<EditableDateRangePickerProps, 'startProps' | 'endProps'> { /** Default value for uncontrolled input */ defaultValue?: DatesRangeValue<DateStringValue | null>; /** Value for controlled input */ value?: DatesRangeValue<DateStringValue | null>; /** onChange value for controlled input */ onChange?(value: DatesRangeValue<DateStringValue | null>): void; /** * The presets to display * * @default {} * @example * { * january: {label: 'January', range: [new Date(2022, 0, 1), new Date(2022, 0, 31)]}, * february: {label: 'February', range: [new Date(2022, 1, 1), new Date(2022, 1, 28)]} * } */ presets?: Record<string, DateRangePickerPreset>; /** * Props for RangeCalendar */ rangeCalendarProps?: Omit<CalendarBaseProps, 'value' | 'onChange' | 'isDateInRange' | 'isDateFirstInRange' | 'isDateLastInRange'>; } export declare const DateRangePickerPopoverCalendar: ({ presets, value, defaultValue, onChange, startProps, endProps, rangeCalendarProps, }: DateRangePickerPopoverCalendarProps) => import("react/jsx-runtime").JSX.Element; export {}; //# sourceMappingURL=DateRangePickerPopoverCalendar.d.ts.map