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:
Evan Rusackas 2021-04-27 15:01:54 -07:00 committed by Yongjie Zhao
parent 20381251d3
commit 3a1aee7807
2 changed files with 10 additions and 1 deletions

View File

@ -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",

View File

@ -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>();