Skip to content

[system] Fix @mui/system types organization #45860

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 10, 2025
Merged

Conversation

Janpot
Copy link
Member

@Janpot Janpot commented Apr 9, 2025

I noticed that the declarations of @mui/system/Box exported a bunch of constants (borders, display, sizing,...) that are not exported by the corresponding js file. This PR reorganizes those types to their respective files and moves utility types to ./style. That way the Box types correspond to the underlying js and we're not everywhere importing consts from ./Box that don't really exist.

It's important that declaration files describe javascript files correctly.

@Janpot Janpot added the package: system Specific to @mui/system label Apr 9, 2025
@mui-bot
Copy link

mui-bot commented Apr 9, 2025

Netlify deploy preview

https://deploy-preview-45860--material-ui.netlify.app/

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against a27475c

@Janpot Janpot changed the title [system] Fix system types [system] Fix system types organization Apr 9, 2025
@Janpot Janpot changed the title [system] Fix system types organization [system] Fix @mui/system types organization Apr 9, 2025
@Janpot Janpot marked this pull request as ready for review April 9, 2025 17:11
@Janpot Janpot requested a review from Copilot April 9, 2025 17:11
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 17 out of 17 changed files in this pull request and generated no comments.

@Janpot Janpot requested a review from a team April 9, 2025 17:11
Copy link
Member

@siriwatknp siriwatknp left a comment

Choose a reason for hiding this comment

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

Make a lot of sense.

@Janpot Janpot merged commit 0f46d19 into mui:master Apr 10, 2025
19 checks passed
@Janpot Janpot deleted the fix-system-types branch April 10, 2025 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: system Specific to @mui/system typescript
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants