From 82fcd20a06714a8267df4943cf4ef5e3ef0288c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Burzy=C5=84ski?= Date: Mon, 11 Apr 2022 09:58:58 +0200 Subject: [PATCH] Export `createCache` from `@storybook/theming` --- lib/theming/package.json | 1 + lib/theming/src/index.ts | 1 + yarn.lock | 1 + 3 files changed, 3 insertions(+) diff --git a/lib/theming/package.json b/lib/theming/package.json index 1a402bc2e8ec..501d38025315 100644 --- a/lib/theming/package.json +++ b/lib/theming/package.json @@ -45,6 +45,7 @@ "regenerator-runtime": "^0.13.7" }, "devDependencies": { + "@emotion/cache": "^11.7.1", "@emotion/is-prop-valid": "^1.1.2", "@emotion/react": "^11.8.1", "@emotion/styled": "^11.8.1", diff --git a/lib/theming/src/index.ts b/lib/theming/src/index.ts index bc3ad78cb04b..ccb338d0cc27 100644 --- a/lib/theming/src/index.ts +++ b/lib/theming/src/index.ts @@ -27,6 +27,7 @@ export const styled = emotionStyled as CreateStyled; export * from './base'; export * from './types'; +export { default as createCache } from '@emotion/cache'; export { default as isPropValid } from '@emotion/is-prop-valid'; export { createGlobal, createReset } from './global'; diff --git a/yarn.lock b/yarn.lock index 84766586f9a7..f9ccf84d4fe7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8773,6 +8773,7 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/theming@workspace:lib/theming" dependencies: + "@emotion/cache": ^11.7.1 "@emotion/is-prop-valid": ^1.1.2 "@emotion/react": ^11.8.1 "@emotion/styled": ^11.8.1