import { DateType } from '@mezzanine-ui/core/calendar'; import type { CalendarYearsProps } from './CalendarYears'; import { NativeElementPropsWithoutKeyAndRef } from '../utils/jsx-types'; export interface CalendarMonthsProps extends Omit, 'onClick' | 'children'>, Pick { /** * The locale you want to use when rendering the names of month. * If none provided, it will use the `displayMonthLocale` from calendar context. */ displayMonthLocale?: string; /** * Provide if you have a custom disabling logic. The method takes the date object as its parameter. */ isMonthDisabled?: (date: DateType) => boolean; /** * Provide if you have a custom logic for checking if the month is in range. * The method takes the date object as its parameter. */ isMonthInRange?: (date: DateType) => boolean; /** * Click handler for each month button. */ onClick?: (target: DateType) => void; /** * Mouse enter handler for each month button. */ onMonthHover?: (target: DateType) => void; /** * The refernce date for computing the date object. */ referenceDate: DateType; /** * If provided, each month that matches the same months in this array will be marked as active. */ value?: DateType[]; } /** * The react component for `mezzanine` calendar months.
* This component displays a 12 months grid. * You may use it to compose your own calendar. */ declare function CalendarMonths(props: CalendarMonthsProps): import("react/jsx-runtime").JSX.Element; export default CalendarMonths;