import { BoxProps, ElementProps, Factory, MantineComponentStaticProperties, StylesApiProps } from '@mantine/core'; import { DatePickerType, DateStringValue, PickerBaseProps } from '../../types'; import { CalendarBaseProps } from '../Calendar'; import { DecadeLevelBaseSettings } from '../DecadeLevel'; import { DecadeLevelGroupStylesNames } from '../DecadeLevelGroup'; export interface YearPickerPreset { value: Type extends 'range' ? [DateStringValue | null, DateStringValue | null] : Type extends 'multiple' ? DateStringValue[] : DateStringValue | null; label: React.ReactNode; } export type YearPickerCssVariables = { yearPickerRoot: '--preset-font-size'; }; export type YearPickerStylesNames = DecadeLevelGroupStylesNames | 'presetsList' | 'presetButton' | 'yearPickerRoot'; export interface YearPickerBaseProps extends PickerBaseProps, DecadeLevelBaseSettings, Omit { /** Determines whether level select controls should be rendered as native `