import { DateType } from '@mezzanine-ui/core/calendar'; import { NativeElementPropsWithoutKeyAndRef } from '../utils/jsx-types'; import { CalendarDayOfWeekProps } from './CalendarDayOfWeek'; import type { CalendarYearsProps } from './CalendarYears'; import type { CalendarMonthsProps } from './CalendarMonths'; import { TypographyColor } from '../Typography'; export interface CalendarDaysProps extends Pick, Pick, Pick, Omit, 'onClick' | 'children'> { /** * Provide if you have a custom disabling logic. The method takes the date object as its parameter. */ isDateDisabled?: (date: DateType) => boolean; /** * Provide if you have a custom logic for checking if the date is in range. * The method takes the date object as its parameter. */ isDateInRange?: (date: DateType) => boolean; /** * Click handler for date button. */ onClick?: (date: DateType) => void; /** * Mouse enter handler for date button. */ onDateHover?: (date: DateType) => void; /** * The extra annotations for specific dates. */ renderAnnotations?: (date: DateType) => { value: string; color?: TypographyColor; }; /** * The reference date for getting the month of the calendar. */ referenceDate: DateType; /** * If provided, each date that matches the same dates in this array will be marked as active. */ value?: DateType[]; } /** * The react component for `mezzanine` calendar days.
* This component displays a monthly calendar whose month is the same as `referenceDate`. * You may use it to compose your own calendar. */ declare function CalendarDays(props: CalendarDaysProps): import("react/jsx-runtime").JSX.Element; export default CalendarDays;