@mui/x-date-pickers-pro
Version:
The Pro plan edition of the MUI X Date and Time Picker components.
24 lines • 954 B
TypeScript
import { FieldRangeSection } from '@mui/x-date-pickers/internals';
export declare const splitDateRangeSections: (sections: FieldRangeSection[]) => {
startDate: FieldRangeSection[];
endDate: FieldRangeSection[];
};
export declare const removeLastSeparator: (dateSections: FieldRangeSection[]) => (FieldRangeSection | {
separator: null;
dateName: import("@mui/x-date-pickers/internals").RangePosition;
value: string;
format: string;
maxLength: number | null;
placeholder: string;
type: import("@mui/x-date-pickers").FieldSectionType;
contentType: import("@mui/x-date-pickers").FieldSectionContentType;
hasLeadingZerosInFormat: boolean;
hasLeadingZerosInInput: boolean;
modified: boolean;
startSeparator: string;
endSeparator: string;
isEndFormatSeparator?: boolean;
})[];
export declare function getRangeFieldType(field: React.ElementType & {
fieldType?: 'single-input' | 'multi-input';
}): "single-input" | "multi-input";