Skip to content

Commit

Permalink
[Grid] Remove deeply nested imports (#43605)
Browse files Browse the repository at this point in the history
  • Loading branch information
Janpot authored Dec 6, 2024
1 parent 6389642 commit 73bc043
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/mui-material/src/PigmentGrid/PigmentGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import Grid from '@mui/material-pigment-css/Grid';
import composeClasses from '@mui/utils/composeClasses';
import generateUtilityClass from '@mui/utils/generateUtilityClass';
import {
generateDirectionClasses,
generateSizeClassNames,
generateSpacingClassNames,
} from '@mui/system/Grid/gridGenerator';
unstable_generateDirectionClasses as generateDirectionClasses,
unstable_generateSizeClassNames as generateSizeClassNames,
unstable_generateSpacingClassNames as generateSpacingClassNames,
} from '@mui/system/Grid';
import { Breakpoint, Theme } from '../styles';

type ResponsiveStyleValue<T> = T | Array<T | null> | { [key in Breakpoint]?: T | null };
Expand Down
5 changes: 5 additions & 0 deletions packages/mui-system/src/Grid/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ export * from './GridProps';
export { default as gridClasses } from './gridClasses';
export * from './gridClasses';
export { traverseBreakpoints as unstable_traverseBreakpoints } from './traverseBreakpoints';
export {
generateDirectionClasses as unstable_generateDirectionClasses,
generateSizeClassNames as unstable_generateSizeClassNames,
generateSpacingClassNames as unstable_generateSpacingClassNames,
} from './gridGenerator';

0 comments on commit 73bc043

Please sign in to comment.