UNPKG

1.91 kBJavaScriptView Raw
1'use client';
2
3import { unstable_ClassNameGenerator as ClassNameGenerator } from '@mui/utils';
4export { default as capitalize } from "./capitalize.js";
5export { default as createChainedFunction } from "./createChainedFunction.js";
6export { default as createSvgIcon } from "./createSvgIcon.js";
7export { default as debounce } from "./debounce.js";
8export { default as deprecatedPropType } from "./deprecatedPropType.js";
9export { default as isMuiElement } from "./isMuiElement.js";
10export { default as unstable_memoTheme } from "./memoTheme.js";
11export { default as ownerDocument } from "./ownerDocument.js";
12export { default as ownerWindow } from "./ownerWindow.js";
13export { default as requirePropFactory } from "./requirePropFactory.js";
14export { default as setRef } from "./setRef.js";
15export { default as unstable_useEnhancedEffect } from "./useEnhancedEffect.js";
16export { default as unstable_useId } from "./useId.js";
17export { default as unsupportedProp } from "./unsupportedProp.js";
18export { default as useControlled } from "./useControlled.js";
19export { default as useEventCallback } from "./useEventCallback.js";
20export { default as useForkRef } from "./useForkRef.js";
21// TODO: remove this export once ClassNameGenerator is stable
22// eslint-disable-next-line @typescript-eslint/naming-convention
23export 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