UNPKG

mantine-datepicker-jalali

Version:
21 lines 1.13 kB
import React from 'react'; import { DefaultProps, Selectors } from '@mantine/core'; import { PickerControlStylesNames, PickerControlProps } from '../PickerControl'; import { ControlsGroupSettings } from '../../types'; import useStyles from './MonthsList.styles'; export declare type MonthsListStylesNames = PickerControlStylesNames | Selectors<typeof useStyles>; export interface MonthsListSettings extends ControlsGroupSettings { /** dayjs format for months list */ monthsListFormat?: string; /** Adds props to month picker control based on date */ getMonthControlProps?(date: Date): Partial<PickerControlProps>; } export interface MonthsListProps extends DefaultProps<MonthsListStylesNames>, MonthsListSettings, React.ComponentPropsWithoutRef<'table'> { __staticSelector?: string; /** Prevents focus shift when buttons are clicked */ __preventFocus?: boolean; /** Year for which months list should be displayed */ year: Date; } export declare const MonthsList: React.ForwardRefExoticComponent<MonthsListProps & React.RefAttributes<HTMLTableElement>>; //# sourceMappingURL=MonthsList.d.ts.map