-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: get rid of legacy package (#852)
- Loading branch information
Showing
9 changed files
with
19 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { ClassNameGenerator } from '@nebula.js/ui/theme'; | ||
|
||
const NEBULA_VERSION_HASH = process.env.NEBULA_VERSION_HASH || ''; | ||
let counter = 0; | ||
|
||
ClassNameGenerator.configure((componentName) => { | ||
if (process.env.NODE_ENV !== 'production') { | ||
return `njs-${counter++}-${componentName.replace('Mui', '')}`; | ||
} | ||
return `njs-${NEBULA_VERSION_HASH}-${componentName.replace('Mui', '')}`; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
import { useTheme, createGenerateClassName } from '@mui/styles'; | ||
import { ThemeProvider, StyledEngineProvider } from '@mui/material/styles'; | ||
|
||
import { ThemeProvider, StyledEngineProvider, useTheme } from '@mui/material/styles'; | ||
import { unstable_ClassNameGenerator as ClassNameGenerator } from '@mui/material/className'; | ||
import createTheme from './create'; | ||
|
||
export { createTheme, createGenerateClassName, useTheme, ThemeProvider, StyledEngineProvider }; | ||
export { createTheme, useTheme, ThemeProvider, ClassNameGenerator, StyledEngineProvider }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters