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'; export interface CalendarWeeksProps extends Pick, Pick, Pick, Omit, 'onClick' | 'children'> { /** * Provide if you have a custom disabling logic. * The method takes the date object of first date in week as its parameter. */ isWeekDisabled?: (date: DateType) => boolean; /** * Provide if you have a custom logic for checking if the week is in range. * The method takes the date object of first date in week as its parameter. */ isWeekInRange?: (firstDateOfWeek: DateType) => boolean; /** * Click handler for the button of week row. * The method takes the date object of first date in week as its parameter. */ onClick?: (date: DateType) => void; /** * Mouse enter handler for the button of week row. * The method takes the date object of first date in week as its parameter. */ onWeekHover?: (firstDateOfWeek: DateType) => void; /** * The reference date for getting the dates of calendar. */ referenceDate: DateType; /** * The week will be marked as active if the first date of week matches the same date of any value in the array. */ value?: DateType[]; } /** * The react component for `mezzanine` calendar weeks.
* This component displays a monthly calendar whose month is the same as `referenceDate`. * You may use it to compose your own calendar. */ declare function CalendarWeeks(props: CalendarWeeksProps): import("react/jsx-runtime").JSX.Element; export default CalendarWeeks;