import { BoxProps, ElementProps, Factory, MantineSize, StylesApiProps } from '@mantine/core'; import { DateStringValue } from '../../types'; export type CalendarHeaderStylesNames = 'calendarHeader' | 'calendarHeaderControl' | 'calendarHeaderLevel' | 'calendarHeaderControlIcon' | 'calendarHeaderSelect'; export type CalendarHeaderCssVariables = { calendarHeader: '--dch-control-size' | '--dch-fz'; }; export interface CalendarHeaderSettings { __preventFocus?: boolean; /** Determines whether propagation for `Escape` key should be stopped */ __stopPropagation?: boolean; /** Change next icon */ nextIcon?: React.ReactNode; /** Change previous icon */ previousIcon?: React.ReactNode; /** Next button `aria-label` */ nextLabel?: string; /** Previous button `aria-label` */ previousLabel?: string; /** Called when the next button is clicked */ onNext?: () => void; /** Called when the previous button is clicked */ onPrevious?: () => void; /** Called when the level button is clicked */ onLevelClick?: () => void; /** Disables next control */ nextDisabled?: boolean; /** Disables previous control */ previousDisabled?: boolean; /** Determines whether next level button should be enabled @default true */ hasNextLevel?: boolean; /** Determines whether next control should be rendered @default true */ withNext?: boolean; /** Determines whether previous control should be rendered @default true */ withPrevious?: boolean; /** Component size */ size?: MantineSize; /** Controls order @default ['previous', 'level', 'next'] */ headerControlsOrder?: ('previous' | 'next' | 'level')[]; /** Determines whether the header should take the full width of its container @default false */ fullWidth?: boolean; /** Determines whether level select controls should be rendered as native `