1 | 'use client';
|
2 |
|
3 | import { unstable_ClassNameGenerator as ClassNameGenerator } from '@mui/utils';
|
4 | export { default as capitalize } from "./capitalize.js";
|
5 | export { default as createChainedFunction } from "./createChainedFunction.js";
|
6 | export { default as createSvgIcon } from "./createSvgIcon.js";
|
7 | export { default as debounce } from "./debounce.js";
|
8 | export { default as deprecatedPropType } from "./deprecatedPropType.js";
|
9 | export { default as isMuiElement } from "./isMuiElement.js";
|
10 | export { default as unstable_memoTheme } from "./memoTheme.js";
|
11 | export { default as ownerDocument } from "./ownerDocument.js";
|
12 | export { default as ownerWindow } from "./ownerWindow.js";
|
13 | export { default as requirePropFactory } from "./requirePropFactory.js";
|
14 | export { default as setRef } from "./setRef.js";
|
15 | export { default as unstable_useEnhancedEffect } from "./useEnhancedEffect.js";
|
16 | export { default as unstable_useId } from "./useId.js";
|
17 | export { default as unsupportedProp } from "./unsupportedProp.js";
|
18 | export { default as useControlled } from "./useControlled.js";
|
19 | export { default as useEventCallback } from "./useEventCallback.js";
|
20 | export { default as useForkRef } from "./useForkRef.js";
|
21 |
|
22 |
|
23 | export const unstable_ClassNameGenerator = {
|
24 | configure: generator => {
|
25 | if (process.env.NODE_ENV !== 'production') {
|
26 | console.warn(['MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.', '', "You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead", '', 'The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401', '', 'The updated documentation: https://mui.com/guides/classname-generator/'].join('\n'));
|
27 | }
|
28 | ClassNameGenerator.configure(generator);
|
29 | }
|
30 | }; |
\ | No newline at end of file |