-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
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
[core] Remove more dependencies on @material-ui/styles
#26100
Conversation
@material-ui/core: parsed: -0.29% 😍, gzip: -0.32% 😍 |
+import { StylesProvider } from '@material-ui/styles'; | ||
``` | ||
|
||
# useThemeVariants |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Has this ever been public?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I saw that it was exported. We can even remove it, with the new styles engine is not required anymore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would leave it in the end when we cleanup the @material-ui/styled
package, I'd just remove it from @material-ui/core/styles
right now.
@@ -112,7 +112,8 @@ We will see how this is passed along in the `renderFullPage` function. | |||
import express from 'express'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this page is outdated now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, should we drop it? We should maybe just change to content to reflect the new styled engine
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could do this, maybe in a follow-up?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leaving this comment open for visibility then
@@ -2,7 +2,8 @@ import express from 'express'; | |||
import * as React from 'react'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At some point, we can kill @ServerStyleSheets` from this example
BREAKING CHANGES
createGenerateClassName
The
createGenerateClassName
module is no longer exported from@material-ui/core/styles
. You should import it directly from@material-ui/styles
.jssPreset
The
jssPreset
variable is no longer exported from@material-ui/core/styles
. You should import it directly from@material-ui/styles
.ServerStyleSheets
The
ServerStyleSheets
class is no longer exported from@material-ui/core/styles
. You should import it directly from@material-ui/styles
.StylesProvider
The
StylesProvider
component is no longer exported from@material-ui/core/styles
. You should import it directly from@material-ui/styles
.useThemeVariants
The
useThemeVariants
hook is no longer exported from@material-ui/core/styles
. You should import it directly from@material-ui/styles
.This PR removes the re-exported utliities from
@material-ui/styles
in@material-ui/core
, as a requirement for removing the dependency to@material-ui/styles
in core.