diff --git a/docs/data/charts/composition/LimitOverflow.js b/docs/data/charts/composition/LimitOverflow.js index e9ca719282ba..9430f3b7c169 100644 --- a/docs/data/charts/composition/LimitOverflow.js +++ b/docs/data/charts/composition/LimitOverflow.js @@ -3,8 +3,7 @@ import Slider from '@mui/material/Slider'; import Box from '@mui/material/Box'; import FormControlLabel from '@mui/material/FormControlLabel'; import Checkbox from '@mui/material/Checkbox'; -import useId from '@mui/utils/useId'; - +import { useId } from '@mui/x-charts/utils'; import { ChartContainer } from '@mui/x-charts/ChartContainer'; import { ScatterPlot } from '@mui/x-charts/ScatterChart'; import { LinePlot, MarkPlot } from '@mui/x-charts/LineChart'; diff --git a/docs/data/charts/composition/LimitOverflow.tsx b/docs/data/charts/composition/LimitOverflow.tsx index 2b8cdda1ca8a..330566621af3 100644 --- a/docs/data/charts/composition/LimitOverflow.tsx +++ b/docs/data/charts/composition/LimitOverflow.tsx @@ -3,8 +3,7 @@ import Slider from '@mui/material/Slider'; import Box from '@mui/material/Box'; import FormControlLabel from '@mui/material/FormControlLabel'; import Checkbox from '@mui/material/Checkbox'; -import useId from '@mui/utils/useId'; - +import { useId } from '@mui/x-charts/utils'; import { ChartContainer } from '@mui/x-charts/ChartContainer'; import { ScatterPlot } from '@mui/x-charts/ScatterChart'; import { LinePlot, MarkPlot } from '@mui/x-charts/LineChart'; diff --git a/docs/data/data-grid/editing/CustomEditComponent.js b/docs/data/data-grid/editing/CustomEditComponent.js index bdacf3318440..03758c8fbe75 100644 --- a/docs/data/data-grid/editing/CustomEditComponent.js +++ b/docs/data/data-grid/editing/CustomEditComponent.js @@ -1,7 +1,7 @@ import * as React from 'react'; import Box from '@mui/material/Box'; import Rating from '@mui/material/Rating'; -import { unstable_useEnhancedEffect as useEnhancedEffect } from '@mui/utils'; +import { useEnhancedEffect } from '@mui/x-data-grid/utils'; import { DataGrid, useGridApiContext } from '@mui/x-data-grid'; function renderRating(params) { diff --git a/docs/data/data-grid/editing/CustomEditComponent.tsx b/docs/data/data-grid/editing/CustomEditComponent.tsx index d0fb1bde9c10..9dc6b28934cd 100644 --- a/docs/data/data-grid/editing/CustomEditComponent.tsx +++ b/docs/data/data-grid/editing/CustomEditComponent.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import Box from '@mui/material/Box'; import Rating from '@mui/material/Rating'; -import { unstable_useEnhancedEffect as useEnhancedEffect } from '@mui/utils'; +import { useEnhancedEffect } from '@mui/x-data-grid/utils'; import { DataGrid, GridRenderCellParams, diff --git a/docs/data/data-grid/filtering/MultiFilteringPanelSnap.js b/docs/data/data-grid/filtering/MultiFilteringPanelSnap.js index 03570cda09d1..f9a70c056a39 100644 --- a/docs/data/data-grid/filtering/MultiFilteringPanelSnap.js +++ b/docs/data/data-grid/filtering/MultiFilteringPanelSnap.js @@ -1,7 +1,7 @@ import * as React from 'react'; import { DataGridPro, GridLogicOperator, useGridApiRef } from '@mui/x-data-grid-pro'; import { useDemoData } from '@mui/x-data-grid-generator'; -import { unstable_useEnhancedEffect as useEnhancedEffect } from '@mui/utils'; +import { useEnhancedEffect } from '@mui/x-data-grid/utils'; const VISIBLE_FIELDS = ['name', 'rating', 'country', 'dateCreated', 'isAdmin']; diff --git a/docs/data/data-grid/filtering/MultiFilteringPanelSnap.tsx b/docs/data/data-grid/filtering/MultiFilteringPanelSnap.tsx index 03570cda09d1..f9a70c056a39 100644 --- a/docs/data/data-grid/filtering/MultiFilteringPanelSnap.tsx +++ b/docs/data/data-grid/filtering/MultiFilteringPanelSnap.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { DataGridPro, GridLogicOperator, useGridApiRef } from '@mui/x-data-grid-pro'; import { useDemoData } from '@mui/x-data-grid-generator'; -import { unstable_useEnhancedEffect as useEnhancedEffect } from '@mui/utils'; +import { useEnhancedEffect } from '@mui/x-data-grid/utils'; const VISIBLE_FIELDS = ['name', 'rating', 'country', 'dateCreated', 'isAdmin']; diff --git a/docs/data/data-grid/performance/GridVisualization.js b/docs/data/data-grid/performance/GridVisualization.js index 97862557cf5d..93572e5c7e25 100644 --- a/docs/data/data-grid/performance/GridVisualization.js +++ b/docs/data/data-grid/performance/GridVisualization.js @@ -1,6 +1,6 @@ import * as React from 'react'; import Box from '@mui/material/Box'; -import { unstable_useForkRef as useForkRef } from '@mui/utils'; +import { useForkRef } from '@mui/x-data-grid/utils'; import { DataGridPro, GridCell } from '@mui/x-data-grid-pro'; import { useDemoData } from '@mui/x-data-grid-generator'; diff --git a/docs/data/data-grid/performance/GridVisualization.tsx b/docs/data/data-grid/performance/GridVisualization.tsx index 746dfc3dc4f0..ce021f3bc71e 100644 --- a/docs/data/data-grid/performance/GridVisualization.tsx +++ b/docs/data/data-grid/performance/GridVisualization.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import Box from '@mui/material/Box'; -import { unstable_useForkRef as useForkRef } from '@mui/utils'; +import { useForkRef } from '@mui/x-data-grid/utils'; import { DataGridPro, GridCell } from '@mui/x-data-grid-pro'; import { useDemoData } from '@mui/x-data-grid-generator'; diff --git a/docs/data/data-grid/row-updates/LazyLoadingGrid.js b/docs/data/data-grid/row-updates/LazyLoadingGrid.js index 7acc1a654e54..7bd4b44df971 100644 --- a/docs/data/data-grid/row-updates/LazyLoadingGrid.js +++ b/docs/data/data-grid/row-updates/LazyLoadingGrid.js @@ -1,5 +1,5 @@ import * as React from 'react'; -import { unstable_debounce as debounce } from '@mui/utils'; +import { debounce } from '@mui/x-data-grid/utils'; import { DataGridPro, useGridApiRef } from '@mui/x-data-grid-pro'; import { createFakeServer, loadServerRows } from '@mui/x-data-grid-generator'; diff --git a/docs/data/data-grid/row-updates/LazyLoadingGrid.tsx b/docs/data/data-grid/row-updates/LazyLoadingGrid.tsx index 16d46719cb03..168f83095b32 100644 --- a/docs/data/data-grid/row-updates/LazyLoadingGrid.tsx +++ b/docs/data/data-grid/row-updates/LazyLoadingGrid.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { unstable_debounce as debounce } from '@mui/utils'; +import { debounce } from '@mui/x-data-grid/utils'; import { DataGridPro, GridFetchRowsParams, diff --git a/docs/data/date-pickers/custom-components/ActionBarComponent.js b/docs/data/date-pickers/custom-components/ActionBarComponent.js index 94e402db3cb9..4e8da9b6c47f 100644 --- a/docs/data/date-pickers/custom-components/ActionBarComponent.js +++ b/docs/data/date-pickers/custom-components/ActionBarComponent.js @@ -4,7 +4,7 @@ import Button from '@mui/material/Button'; import Menu from '@mui/material/Menu'; import MenuItem from '@mui/material/MenuItem'; import DialogActions from '@mui/material/DialogActions'; -import { unstable_useId as useId } from '@mui/utils'; +import { useId } from '@mui/x-date-pickers/utils'; import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider'; import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'; import { StaticDatePicker } from '@mui/x-date-pickers/StaticDatePicker'; diff --git a/docs/data/date-pickers/custom-components/ActionBarComponent.tsx b/docs/data/date-pickers/custom-components/ActionBarComponent.tsx index e28c354c962a..f9e152873ff9 100644 --- a/docs/data/date-pickers/custom-components/ActionBarComponent.tsx +++ b/docs/data/date-pickers/custom-components/ActionBarComponent.tsx @@ -4,7 +4,7 @@ import Button from '@mui/material/Button'; import Menu from '@mui/material/Menu'; import MenuItem from '@mui/material/MenuItem'; import DialogActions from '@mui/material/DialogActions'; -import { unstable_useId as useId } from '@mui/utils'; +import { useId } from '@mui/x-date-pickers/utils'; import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider'; import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'; import { StaticDatePicker } from '@mui/x-date-pickers/StaticDatePicker'; diff --git a/docs/data/date-pickers/custom-field/BrowserV7Field.js b/docs/data/date-pickers/custom-field/BrowserV7Field.js index 3e6be2ea7b36..d481725436f5 100644 --- a/docs/data/date-pickers/custom-field/BrowserV7Field.js +++ b/docs/data/date-pickers/custom-field/BrowserV7Field.js @@ -1,6 +1,6 @@ import * as React from 'react'; -import useForkRef from '@mui/utils/useForkRef'; import { styled } from '@mui/material/styles'; +import { useForkRef } from '@mui/x-date-pickers/utils'; import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider'; import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'; import { DatePicker } from '@mui/x-date-pickers/DatePicker'; diff --git a/docs/data/date-pickers/custom-field/BrowserV7Field.tsx b/docs/data/date-pickers/custom-field/BrowserV7Field.tsx index 00e3b3388d57..d8bf8b9f2801 100644 --- a/docs/data/date-pickers/custom-field/BrowserV7Field.tsx +++ b/docs/data/date-pickers/custom-field/BrowserV7Field.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; -import useForkRef from '@mui/utils/useForkRef'; import { styled } from '@mui/material/styles'; +import { useForkRef } from '@mui/x-date-pickers/utils'; import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider'; import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'; import { DatePicker, DatePickerProps } from '@mui/x-date-pickers/DatePicker'; diff --git a/docs/data/date-pickers/custom-field/BrowserV7MultiInputRangeField.js b/docs/data/date-pickers/custom-field/BrowserV7MultiInputRangeField.js index 0023e32e477f..fe0a2c591e31 100644 --- a/docs/data/date-pickers/custom-field/BrowserV7MultiInputRangeField.js +++ b/docs/data/date-pickers/custom-field/BrowserV7MultiInputRangeField.js @@ -1,8 +1,7 @@ import * as React from 'react'; -import useForkRef from '@mui/utils/useForkRef'; -import useSlotProps from '@mui/utils/useSlotProps'; import { styled } from '@mui/material/styles'; import Stack from '@mui/material/Stack'; +import { useSlotProps, useForkRef } from '@mui/x-date-pickers-pro/utils'; import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider'; import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'; diff --git a/docs/data/date-pickers/custom-field/BrowserV7MultiInputRangeField.tsx b/docs/data/date-pickers/custom-field/BrowserV7MultiInputRangeField.tsx index 725a629ce03f..c174ae8958cf 100644 --- a/docs/data/date-pickers/custom-field/BrowserV7MultiInputRangeField.tsx +++ b/docs/data/date-pickers/custom-field/BrowserV7MultiInputRangeField.tsx @@ -1,8 +1,7 @@ import * as React from 'react'; -import useForkRef from '@mui/utils/useForkRef'; -import useSlotProps from '@mui/utils/useSlotProps'; import { styled } from '@mui/material/styles'; import Stack from '@mui/material/Stack'; +import { useSlotProps, useForkRef } from '@mui/x-date-pickers-pro/utils'; import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider'; import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'; import { PickerValidDate } from '@mui/x-date-pickers/models'; diff --git a/docs/data/date-pickers/custom-field/BrowserV7SingleInputRangeField.js b/docs/data/date-pickers/custom-field/BrowserV7SingleInputRangeField.js index a04931569d64..9ff863298540 100644 --- a/docs/data/date-pickers/custom-field/BrowserV7SingleInputRangeField.js +++ b/docs/data/date-pickers/custom-field/BrowserV7SingleInputRangeField.js @@ -1,9 +1,8 @@ import * as React from 'react'; -import useForkRef from '@mui/utils/useForkRef'; -import useSlotProps from '@mui/utils/useSlotProps'; import { styled } from '@mui/material/styles'; import IconButton from '@mui/material/IconButton'; import InputAdornment from '@mui/material/InputAdornment'; +import { useSlotProps, useForkRef } from '@mui/x-date-pickers-pro/utils'; import { DateRangeIcon } from '@mui/x-date-pickers/icons'; import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider'; import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'; diff --git a/docs/data/date-pickers/custom-field/BrowserV7SingleInputRangeField.tsx b/docs/data/date-pickers/custom-field/BrowserV7SingleInputRangeField.tsx index adfe26146591..e7ca8d0973f4 100644 --- a/docs/data/date-pickers/custom-field/BrowserV7SingleInputRangeField.tsx +++ b/docs/data/date-pickers/custom-field/BrowserV7SingleInputRangeField.tsx @@ -1,9 +1,8 @@ import * as React from 'react'; -import useForkRef from '@mui/utils/useForkRef'; -import useSlotProps from '@mui/utils/useSlotProps'; import { styled } from '@mui/material/styles'; import IconButton from '@mui/material/IconButton'; import InputAdornment from '@mui/material/InputAdornment'; +import { useSlotProps, useForkRef } from '@mui/x-date-pickers-pro/utils'; import { DateRangeIcon } from '@mui/x-date-pickers/icons'; import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider'; import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'; diff --git a/docs/data/date-pickers/custom-field/JoyV6MultiInputRangeField.js b/docs/data/date-pickers/custom-field/JoyV6MultiInputRangeField.js index 74b17040c152..c77a83ed4d30 100644 --- a/docs/data/date-pickers/custom-field/JoyV6MultiInputRangeField.js +++ b/docs/data/date-pickers/custom-field/JoyV6MultiInputRangeField.js @@ -4,7 +4,6 @@ import { useColorScheme as useMaterialColorScheme, Experimental_CssVarsProvider as MaterialCssVarsProvider, } from '@mui/material/styles'; -import useSlotProps from '@mui/utils/useSlotProps'; import { extendTheme as extendJoyTheme, useColorScheme, @@ -17,6 +16,7 @@ import Stack from '@mui/joy/Stack'; import FormControl from '@mui/joy/FormControl'; import FormLabel from '@mui/joy/FormLabel'; import Typography from '@mui/joy/Typography'; +import { useSlotProps } from '@mui/x-date-pickers-pro/utils'; import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider'; import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'; diff --git a/docs/data/date-pickers/custom-field/JoyV6MultiInputRangeField.tsx b/docs/data/date-pickers/custom-field/JoyV6MultiInputRangeField.tsx index ce976dd69843..2114dbf72fdc 100644 --- a/docs/data/date-pickers/custom-field/JoyV6MultiInputRangeField.tsx +++ b/docs/data/date-pickers/custom-field/JoyV6MultiInputRangeField.tsx @@ -4,7 +4,6 @@ import { useColorScheme as useMaterialColorScheme, Experimental_CssVarsProvider as MaterialCssVarsProvider, } from '@mui/material/styles'; -import useSlotProps from '@mui/utils/useSlotProps'; import { extendTheme as extendJoyTheme, useColorScheme, @@ -17,6 +16,7 @@ import Stack, { StackProps } from '@mui/joy/Stack'; import FormControl from '@mui/joy/FormControl'; import FormLabel from '@mui/joy/FormLabel'; import Typography, { TypographyProps } from '@mui/joy/Typography'; +import { useSlotProps } from '@mui/x-date-pickers-pro/utils'; import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider'; import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'; import { PickerValidDate } from '@mui/x-date-pickers/models'; diff --git a/docs/data/date-pickers/custom-field/JoyV6SingleInputRangeField.js b/docs/data/date-pickers/custom-field/JoyV6SingleInputRangeField.js index 0ede431a9e5b..9cc61e63de35 100644 --- a/docs/data/date-pickers/custom-field/JoyV6SingleInputRangeField.js +++ b/docs/data/date-pickers/custom-field/JoyV6SingleInputRangeField.js @@ -4,7 +4,6 @@ import { useColorScheme as useMaterialColorScheme, Experimental_CssVarsProvider as MaterialCssVarsProvider, } from '@mui/material/styles'; -import useSlotProps from '@mui/utils/useSlotProps'; import { extendTheme as extendJoyTheme, useColorScheme, @@ -16,6 +15,7 @@ import FormControl from '@mui/joy/FormControl'; import FormLabel from '@mui/joy/FormLabel'; import IconButton from '@mui/joy/IconButton'; import { DateRangeIcon } from '@mui/x-date-pickers/icons'; +import { useSlotProps } from '@mui/x-date-pickers-pro/utils'; import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider'; import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'; import { DateRangePicker } from '@mui/x-date-pickers-pro/DateRangePicker'; diff --git a/docs/data/date-pickers/custom-field/JoyV6SingleInputRangeField.tsx b/docs/data/date-pickers/custom-field/JoyV6SingleInputRangeField.tsx index e2815f70d823..1a661f173fb9 100644 --- a/docs/data/date-pickers/custom-field/JoyV6SingleInputRangeField.tsx +++ b/docs/data/date-pickers/custom-field/JoyV6SingleInputRangeField.tsx @@ -4,7 +4,6 @@ import { useColorScheme as useMaterialColorScheme, Experimental_CssVarsProvider as MaterialCssVarsProvider, } from '@mui/material/styles'; -import useSlotProps from '@mui/utils/useSlotProps'; import { extendTheme as extendJoyTheme, useColorScheme, @@ -16,6 +15,7 @@ import FormControl from '@mui/joy/FormControl'; import FormLabel from '@mui/joy/FormLabel'; import IconButton from '@mui/joy/IconButton'; import { DateRangeIcon } from '@mui/x-date-pickers/icons'; +import { useSlotProps } from '@mui/x-date-pickers-pro/utils'; import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider'; import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'; import { diff --git a/docs/data/date-pickers/custom-field/behavior-masked-text-field/MaskedMaterialTextField.js b/docs/data/date-pickers/custom-field/behavior-masked-text-field/MaskedMaterialTextField.js index 0723d4565c51..ec0d57140aea 100644 --- a/docs/data/date-pickers/custom-field/behavior-masked-text-field/MaskedMaterialTextField.js +++ b/docs/data/date-pickers/custom-field/behavior-masked-text-field/MaskedMaterialTextField.js @@ -2,7 +2,7 @@ import * as React from 'react'; import dayjs from 'dayjs'; import { useRifm } from 'rifm'; import TextField from '@mui/material/TextField'; -import useControlled from '@mui/utils/useControlled'; +import { useControlled } from '@mui/x-date-pickers/utils'; import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'; import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider'; import { DatePicker } from '@mui/x-date-pickers/DatePicker'; diff --git a/docs/data/date-pickers/custom-field/behavior-masked-text-field/MaskedMaterialTextField.tsx b/docs/data/date-pickers/custom-field/behavior-masked-text-field/MaskedMaterialTextField.tsx index 13c0a71b5456..13dcfbad95c8 100644 --- a/docs/data/date-pickers/custom-field/behavior-masked-text-field/MaskedMaterialTextField.tsx +++ b/docs/data/date-pickers/custom-field/behavior-masked-text-field/MaskedMaterialTextField.tsx @@ -2,7 +2,7 @@ import * as React from 'react'; import dayjs, { Dayjs } from 'dayjs'; import { useRifm } from 'rifm'; import TextField from '@mui/material/TextField'; -import useControlled from '@mui/utils/useControlled'; +import { useControlled } from '@mui/x-date-pickers/utils'; import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'; import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider'; import { diff --git a/docs/data/date-pickers/lifecycle/ServerInteraction.js b/docs/data/date-pickers/lifecycle/ServerInteraction.js index e3ce3e846db6..8b07bcaedded 100644 --- a/docs/data/date-pickers/lifecycle/ServerInteraction.js +++ b/docs/data/date-pickers/lifecycle/ServerInteraction.js @@ -7,7 +7,7 @@ import Button from '@mui/material/Button'; import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'; import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider'; import { DateField } from '@mui/x-date-pickers/DateField'; -import useControlled from '@mui/utils/useControlled'; +import { useControlled } from '@mui/x-date-pickers/utils'; function DisplayEvents(props) { const { logs, title } = props; diff --git a/docs/data/date-pickers/lifecycle/ServerInteraction.tsx b/docs/data/date-pickers/lifecycle/ServerInteraction.tsx index 231e0dbeaa06..3daef34957bd 100644 --- a/docs/data/date-pickers/lifecycle/ServerInteraction.tsx +++ b/docs/data/date-pickers/lifecycle/ServerInteraction.tsx @@ -7,7 +7,7 @@ import Button from '@mui/material/Button'; import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'; import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider'; import { DateField, DateFieldProps } from '@mui/x-date-pickers/DateField'; -import useControlled from '@mui/utils/useControlled'; +import { useControlled } from '@mui/x-date-pickers/utils'; type DisplayEventsProps = { logs: (Dayjs | null)[]; diff --git a/packages/x-charts-pro/src/utils/index.ts b/packages/x-charts-pro/src/utils/index.ts new file mode 100644 index 000000000000..adeeec54e705 --- /dev/null +++ b/packages/x-charts-pro/src/utils/index.ts @@ -0,0 +1 @@ +export * from '@mui/x-charts/utils'; diff --git a/packages/x-charts/src/utils/index.ts b/packages/x-charts/src/utils/index.ts new file mode 100644 index 000000000000..01a8ab6a49bc --- /dev/null +++ b/packages/x-charts/src/utils/index.ts @@ -0,0 +1 @@ +export { default as useId } from '@mui/utils/useId'; diff --git a/packages/x-data-grid/src/utils/index.ts b/packages/x-data-grid/src/utils/index.ts index d9aac6750442..531c412f2f08 100644 --- a/packages/x-data-grid/src/utils/index.ts +++ b/packages/x-data-grid/src/utils/index.ts @@ -1 +1,4 @@ export type { OutputSelector } from './createSelector'; +export { default as useEnhancedEffect } from '@mui/utils/useEnhancedEffect'; +export { default as useForkRef } from '@mui/utils/useForkRef'; +export { default as debounce } from '@mui/utils/debounce'; diff --git a/packages/x-date-pickers-pro/src/utils/index.ts b/packages/x-date-pickers-pro/src/utils/index.ts new file mode 100644 index 000000000000..06db29386a96 --- /dev/null +++ b/packages/x-date-pickers-pro/src/utils/index.ts @@ -0,0 +1 @@ +export * from '@mui/x-date-pickers/utils'; diff --git a/packages/x-date-pickers/src/utils/index.ts b/packages/x-date-pickers/src/utils/index.ts new file mode 100644 index 000000000000..3ffdfdd83f34 --- /dev/null +++ b/packages/x-date-pickers/src/utils/index.ts @@ -0,0 +1,4 @@ +export { default as useSlotProps } from '@mui/utils/useSlotProps'; +export { default as useForkRef } from '@mui/utils/useForkRef'; +export { default as useId } from '@mui/utils/useId'; +export { default as useControlled } from '@mui/utils/useControlled';