mirror of
https://github.com/apache/superset.git
synced 2024-09-17 11:09:47 -04:00
chore: adds Emotion's CacheProvider and createCache as exports from Core package (#1073)
* chore: adds CacheProvider and createCache to Core * chore: re-exporting even more stuff!
This commit is contained in:
parent
20381251d3
commit
3a1aee7807
@ -32,6 +32,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.1.2",
|
||||
"@emotion/cache": "^11.1.3",
|
||||
"@emotion/core": "^10.0.28",
|
||||
"@emotion/react": "^11.1.5",
|
||||
"@emotion/styled": "^10.0.27",
|
||||
|
@ -20,7 +20,15 @@ import emotionStyled, { CreateStyled } from '@emotion/styled';
|
||||
import { useTheme as useThemeBasic } from 'emotion-theming';
|
||||
|
||||
export { ThemeProvider, withTheme } from 'emotion-theming';
|
||||
export { css, InterpolationWithTheme } from '@emotion/core';
|
||||
export {
|
||||
CacheProvider,
|
||||
ClassNames,
|
||||
css,
|
||||
Global,
|
||||
InterpolationWithTheme,
|
||||
SerializedStyles,
|
||||
} from '@emotion/core';
|
||||
export { default as createCache } from '@emotion/cache';
|
||||
|
||||
export function useTheme() {
|
||||
const theme = useThemeBasic<SupersetTheme>();
|
||||
|
Loading…
Reference in New Issue
Block a user