From e2e5918ee254cd58e33dd89504e84689d2dbb8d0 Mon Sep 17 00:00:00 2001 From: Mary Hipp Date: Mon, 31 Jul 2023 13:24:20 -0400 Subject: [PATCH] export theme nad move chakra to peer dep --- invokeai/frontend/web/config/vite.package.config.ts | 2 +- invokeai/frontend/web/src/index.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/invokeai/frontend/web/config/vite.package.config.ts b/invokeai/frontend/web/config/vite.package.config.ts index 0dcccab086..d605b51c67 100644 --- a/invokeai/frontend/web/config/vite.package.config.ts +++ b/invokeai/frontend/web/config/vite.package.config.ts @@ -21,7 +21,7 @@ export const packageConfig: UserConfig = { fileName: (format) => `invoke-ai-ui.${format}.js`, }, rollupOptions: { - external: ['react', 'react-dom', '@emotion/react'], + external: ['react', 'react-dom', '@emotion/react', '@chakra-ui/react'], output: { globals: { react: 'React', diff --git a/invokeai/frontend/web/src/index.ts b/invokeai/frontend/web/src/index.ts index 57dbeab0e5..5a017c82b3 100644 --- a/invokeai/frontend/web/src/index.ts +++ b/invokeai/frontend/web/src/index.ts @@ -6,3 +6,4 @@ export { default as ParamMainModelSelect } from './features/parameters/component export { default as InvokeAiLogoComponent } from './features/system/components/InvokeAILogoComponent'; export { default as SettingsModal } from './features/system/components/SettingsModal/SettingsModal'; export { default as StatusIndicator } from './features/system/components/StatusIndicator'; +export { theme } from './theme/theme';