Skip to content

Commit

Permalink
remove base related
Browse files Browse the repository at this point in the history
  • Loading branch information
siriwatknp committed Jun 15, 2022
1 parent e95338b commit 9404b2d
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions packages/mui-joy/src/className/index.ts
@@ -1,14 +1,6 @@
import { unstable_generateUtilityClass, unstable_generateUtilityClasses } from '@mui/utils';

/**
* Caution! this module must not include unstyled components import from `@mui/base`, otherwise, it will break the ClassNameGenerator.
* ❌ import { ... } from '@mui/base';
* ✅ import { ... } from '@mui/base/utils'; // must be specific base module
*
* Issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401
*/

export { unstable_ClassNameGenerator } from '@mui/base/className';
export { unstable_ClassNameGenerator } from '@mui/utils';

export const generateUtilityClass = (componentName: string, slot: string) =>
unstable_generateUtilityClass(componentName, slot, 'Joy');
Expand Down

0 comments on commit 9404b2d

Please sign in to comment.