mantine-datepicker-jalali
Version:
jalali datepicker of mantine library
21 lines • 1.12 kB
TypeScript
import React from 'react';
import { DefaultProps, Selectors } from '@mantine/core';
import { PickerControlStylesNames, PickerControlProps } from '../PickerControl';
import { ControlsGroupSettings } from '../../types';
import useStyles from './YearsList.styles';
export declare type YearsListStylesNames = PickerControlStylesNames | Selectors<typeof useStyles>;
export interface YearsListSettings extends ControlsGroupSettings {
/** Prevents focus shift when buttons are clicked */
__preventFocus?: boolean;
/** dayjs format for years list */
yearsListFormat?: string;
/** Adds props to year picker control based on date */
getYearControlProps?(date: Date): Partial<PickerControlProps>;
}
export interface YearsListProps extends DefaultProps<YearsListStylesNames>, YearsListSettings, React.ComponentPropsWithoutRef<'table'> {
__staticSelector?: string;
/** Decade for which years list should be displayed */
decade: Date;
}
export declare const YearsList: React.ForwardRefExoticComponent<YearsListProps & React.RefAttributes<HTMLTableElement>>;
//# sourceMappingURL=YearsList.d.ts.map