Skip to content

Commit

Permalink
chore: adds Emotion's CacheProvider and createCache as exports from C…
Browse files Browse the repository at this point in the history
…ore package (apache#1073)

* chore: adds CacheProvider and createCache to Core

* chore: re-exporting even more stuff!
  • Loading branch information
rusackas authored and zhaoyongjie committed Nov 26, 2021
1 parent 2038125 commit 3a1aee7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>();
Expand Down

0 comments on commit 3a1aee7

Please sign in to comment.