Skip to content

[system] Export the compose and useThemeProps types from the package root - #49957

Merged
Janpot merged 2 commits into
mui:masterfrom
maksimgm:fix/exports-system-root-types
Dec 4, 2026
Merged

Janpot merged 2 commits into
mui:masterfrom
maksimgm:fix/exports-system-root-types

Conversation

@maksimgm

@maksimgm maksimgm commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

part of #49921, found by the export check in #49883.

compose and useThemeProps are exported from the root of @mui/system, but their types (ComposedStyleFunction, ThemeWithProps, ThemedProps) were only importable from the subpaths. this exports them from the root and adds them to index.spec.tsx.

@code-infra-dashboard

code-infra-dashboard Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Deploy preview

https://deploy-preview-49957--material-ui.netlify.app/
QR code for https://deploy-preview-49957--material-ui.netlify.app/

Bundle size

Bundle Parsed size Gzip size
@mui/material 0B(0.00%) 0B(0.00%)
@mui/lab 0B(0.00%) 0B(0.00%)
@mui/private-theming 0B(0.00%) 0B(0.00%)
@mui/system 0B(0.00%) 0B(0.00%)
@mui/utils 0B(0.00%) 0B(0.00%)

Details of bundle changes

Performance

No regressions in 32 benchmarks · precise to ±6.5% (±11.6% at worst) · ran 2m 13s · details


Check out the code infra dashboard for more information about this PR.

@silviuaavram silviuaavram left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be useful.

@silviuaavram silviuaavram added the scope: code-infra Involves the code-infra product (https://www.notion.so/mui-org/5562c14178aa42af97bc1fa5114000cd). label Dec 4, 2026
@Janpot
Janpot merged commit 5b2db66 into mui:master Dec 4, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: code-infra Involves the code-infra product (https://www.notion.so/mui-org/5562c14178aa42af97bc1fa5114000cd).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants