@mui/x-date-pickers-pro
Version:
The Pro plan edition of the Date and Time Picker components (MUI X).
22 lines (21 loc) • 1.29 kB
TypeScript
import * as React from 'react';
import { UseFieldInternalProps } from '@mui/x-date-pickers/internals';
import { FieldRef, FieldSelectedSections } from '@mui/x-date-pickers/models';
import { RangeFieldSection } from '../../models';
interface UseMultiInputFieldSelectedSectionsParams extends Pick<UseFieldInternalProps<any, any, RangeFieldSection, any, any>, 'selectedSections' | 'onSelectedSectionsChange'> {
unstableStartFieldRef?: React.Ref<FieldRef<RangeFieldSection>>;
unstableEndFieldRef?: React.Ref<FieldRef<RangeFieldSection>>;
}
export declare const useMultiInputFieldSelectedSections: (params: UseMultiInputFieldSelectedSectionsParams) => {
start: {
unstableFieldRef: React.Ref<FieldRef<RangeFieldSection>> | undefined;
selectedSections: FieldSelectedSections;
onSelectedSectionsChange: (newSelectedSections: FieldSelectedSections) => void;
};
end: {
unstableFieldRef: ((instance: FieldRef<RangeFieldSection> | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | null;
selectedSections: FieldSelectedSections;
onSelectedSectionsChange: (newSelectedSections: FieldSelectedSections) => void;
};
};
export {};