From c3b5825a710d30c8fab8db9bde603699ec7fb5c1 Mon Sep 17 00:00:00 2001 From: Raman Marozau Date: Wed, 11 Sep 2024 02:17:09 +0200 Subject: [PATCH] [bugfix] Refactor default exports to named exports Replaced all default exports with named exports to improve module consistency and tree-shaking capabilities. This change ensures uniform export style across the codebase and aids in better maintainability and IDE auto-completion. Bug Report: https://github.com/mui/material-ui/issues/43685 --- packages/mui-system/src/borders/index.ts | 1 - packages/mui-system/src/cssGrid/index.ts | 1 - packages/mui-system/src/display/index.ts | 1 - packages/mui-system/src/flexbox/index.ts | 1 - packages/mui-system/src/palette/index.ts | 1 - packages/mui-system/src/positions/index.ts | 1 - packages/mui-system/src/shadows/index.ts | 2 +- packages/mui-system/src/sizing/index.ts | 1 - packages/mui-system/src/spacing/index.ts | 1 - packages/mui-system/src/style/index.ts | 1 - packages/mui-system/src/typography/index.ts | 1 - 11 files changed, 1 insertion(+), 11 deletions(-) diff --git a/packages/mui-system/src/borders/index.ts b/packages/mui-system/src/borders/index.ts index 027f427edbf17b..c181a706a67214 100644 --- a/packages/mui-system/src/borders/index.ts +++ b/packages/mui-system/src/borders/index.ts @@ -1,2 +1 @@ -export { default } from './borders'; export * from './borders'; diff --git a/packages/mui-system/src/cssGrid/index.ts b/packages/mui-system/src/cssGrid/index.ts index 7f8c35a00e5391..54e06f0da5e8b4 100644 --- a/packages/mui-system/src/cssGrid/index.ts +++ b/packages/mui-system/src/cssGrid/index.ts @@ -1,2 +1 @@ -export { default } from './cssGrid'; export * from './cssGrid'; diff --git a/packages/mui-system/src/display/index.ts b/packages/mui-system/src/display/index.ts index e1e226bd9d09b2..e8856caba02637 100644 --- a/packages/mui-system/src/display/index.ts +++ b/packages/mui-system/src/display/index.ts @@ -1,2 +1 @@ -export { default } from './display'; export * from './display'; diff --git a/packages/mui-system/src/flexbox/index.ts b/packages/mui-system/src/flexbox/index.ts index f9de3d77b47aa8..8f70e6ff4f0c84 100644 --- a/packages/mui-system/src/flexbox/index.ts +++ b/packages/mui-system/src/flexbox/index.ts @@ -1,2 +1 @@ -export { default } from './flexbox'; export * from './flexbox'; diff --git a/packages/mui-system/src/palette/index.ts b/packages/mui-system/src/palette/index.ts index b1ddfcfb088c68..839c21672f7b41 100644 --- a/packages/mui-system/src/palette/index.ts +++ b/packages/mui-system/src/palette/index.ts @@ -1,2 +1 @@ -export { default } from './palette'; export * from './palette'; diff --git a/packages/mui-system/src/positions/index.ts b/packages/mui-system/src/positions/index.ts index a319f1ab59e1c7..773918672f6b1b 100644 --- a/packages/mui-system/src/positions/index.ts +++ b/packages/mui-system/src/positions/index.ts @@ -1,2 +1 @@ -export { default } from './positions'; export * from './positions'; diff --git a/packages/mui-system/src/shadows/index.ts b/packages/mui-system/src/shadows/index.ts index 9eaa3ad25e7782..8e29cecbedec95 100644 --- a/packages/mui-system/src/shadows/index.ts +++ b/packages/mui-system/src/shadows/index.ts @@ -1 +1 @@ -export { default } from './shadows'; +export * from './shadows'; diff --git a/packages/mui-system/src/sizing/index.ts b/packages/mui-system/src/sizing/index.ts index 1aa949fb9b6f2b..cd3e60655887da 100644 --- a/packages/mui-system/src/sizing/index.ts +++ b/packages/mui-system/src/sizing/index.ts @@ -1,2 +1 @@ -export { default } from './sizing'; export * from './sizing'; diff --git a/packages/mui-system/src/spacing/index.ts b/packages/mui-system/src/spacing/index.ts index af6e8064da1e40..c4c85bb3b892cc 100644 --- a/packages/mui-system/src/spacing/index.ts +++ b/packages/mui-system/src/spacing/index.ts @@ -1,2 +1 @@ -export { default } from './spacing'; export * from './spacing'; diff --git a/packages/mui-system/src/style/index.ts b/packages/mui-system/src/style/index.ts index d668cfe132f72d..54fcd8052f3204 100644 --- a/packages/mui-system/src/style/index.ts +++ b/packages/mui-system/src/style/index.ts @@ -1,2 +1 @@ -export { default } from './style'; export * from './style'; diff --git a/packages/mui-system/src/typography/index.ts b/packages/mui-system/src/typography/index.ts index dbc116be65439c..7a63a589fa6372 100644 --- a/packages/mui-system/src/typography/index.ts +++ b/packages/mui-system/src/typography/index.ts @@ -1,2 +1 @@ -export { default } from './typography'; export * from './typography';