import { DateType } from '@mezzanine-ui/core/calendar'; import { NativeElementPropsWithoutKeyAndRef } from '../utils/jsx-types'; export interface CalendarYearsProps extends Omit, 'onClick' | 'children'> { /** * Provide if you have a custom disabling logic. * The method takes the date object as its parameter. */ isYearDisabled?: (date: DateType) => boolean; /** * Provide if you have a custom logic for checking if the year is in range. * The method takes the date object as its parameter. */ isYearInRange?: (date: DateType) => boolean; /** * Click handler for the button of each year. * The method takes the date object as its parameter. */ onClick?: (target: DateType) => void; /** * Mouse enter handler for the button of each year. * The method takes the date object as its parameter. */ onYearHover?: (target: DateType) => void; /** * The refernce date for getting the years range and computing the date object. */ referenceDate: DateType; /** * The year will be marked as active if it matches the same year of any value in the array. */ value?: DateType[]; } /** * The react component for `mezzanine` calendar years.
* This component displays a 12 year grid. * You may use it to compose your own calendar. */ declare function CalendarYears(props: CalendarYearsProps): import("react/jsx-runtime").JSX.Element; export default CalendarYears;