Files
Iliyan Angelov 306b20e24a Frontend start
2025-09-14 00:54:48 +03:00

28 lines
1.1 KiB
TypeScript

/// <reference types="react" />
import { NonNullablePickerChangeHandler } from '../internals/hooks/useViews';
import { YearPickerClasses } from './yearPickerClasses';
import { BaseDateValidationProps, YearValidationProps } from '../internals/hooks/validation/models';
export interface YearPickerProps<TDate> extends YearValidationProps<TDate>, BaseDateValidationProps<TDate> {
autoFocus?: boolean;
className?: string;
classes?: Partial<YearPickerClasses>;
date: TDate | null;
disabled?: boolean;
onChange: NonNullablePickerChangeHandler<TDate>;
onFocusedDayChange?: (day: TDate) => void;
readOnly?: boolean;
/**
* If `true`, today's date is rendering without highlighting with circle.
* @default false
*/
disableHighlightToday?: boolean;
onYearFocus?: (year: number) => void;
hasFocus?: boolean;
onFocusedViewChange?: (newHasFocus: boolean) => void;
}
declare type YearPickerComponent = (<TDate>(props: YearPickerProps<TDate>) => JSX.Element) & {
propTypes?: any;
};
export declare const YearPicker: YearPickerComponent;
export {};