Skip to content

Commit

Permalink
[pickers] Avoid too deep imports (#11794)
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasTy authored Jan 23, 2024
1 parent b733c3c commit 4e9553d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import {
ExportedBaseToolbarProps,
BaseFieldProps,
DateOrTimeViewWithMeridiem,
UsePickerValueFieldResponse,
} from '@mui/x-date-pickers/internals';
import { UsePickerValueFieldResponse } from '@mui/x-date-pickers/internals/hooks/usePicker';
import {
DesktopRangePickerAdditionalViewProps,
UseDesktopRangePickerParams,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import {
ExportedBaseToolbarProps,
useLocaleText,
DateOrTimeViewWithMeridiem,
UsePickerValueFieldResponse,
} from '@mui/x-date-pickers/internals';
import useId from '@mui/utils/useId';
import { UsePickerValueFieldResponse } from '@mui/x-date-pickers/internals/hooks/usePicker';
import {
MobileRangePickerAdditionalViewProps,
UseMobileRangePickerParams,
Expand Down
7 changes: 6 additions & 1 deletion packages/x-date-pickers/src/internals/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,12 @@ export type {
} from './hooks/useField';
export type { MobileOnlyPickerProps } from './hooks/useMobilePicker';
export { usePicker } from './hooks/usePicker';
export type { UsePickerResponse, UsePickerParams, UsePickerProps } from './hooks/usePicker';
export type {
UsePickerResponse,
UsePickerParams,
UsePickerProps,
UsePickerValueFieldResponse,
} from './hooks/usePicker';
export type {
UsePickerValueNonStaticProps,
PickerValueManager,
Expand Down

0 comments on commit 4e9553d

Please sign in to comment.