This PR removes the ThemeProvider from every component in order for external theming to be applied.
Removes the use of classes as it's not stable in production environments where the library is used.
Seems like the @material-ui library was getting bundled with the library and the regex expression was not doing the job. Added them manually.
The main issues with styling were happening because the library was bundling materialUI and generating classes that were overwritten by the external apps in production as the classname generator was generating the same class twice where in the library .jss1 had some styling and in external apps .jss1 had another styling.
This PR removes the ThemeProvider from every component in order for external theming to be applied. Removes the use of classes as it's not stable in production environments where the library is used.
Seems like the
@material-ui
library was getting bundled with the library and the regex expression was not doing the job. Added them manually.The main issues with styling were happening because the library was bundling
materialUI
and generating classes that were overwritten by the external apps in production as theclassname generator
was generating the same class twice where in the library.jss1
had some styling and in external apps.jss1
had another styling.You can read more about it here https://material-ui.com/getting-started/faq/