Adding the possibility to add multiple ui components in the live code editor in the docs (#2381)

* working

* forgot docs folder

* modify according to comments
This commit is contained in:
bosiraphael
2023-11-07 12:33:40 +01:00
committed by GitHub
parent 398a8d732d
commit 7aa6b20418
6 changed files with 72 additions and 31 deletions

View File

@ -9,6 +9,5 @@ export default defineConfig([
dts: true,
clean: true,
outDir: "../docs/src/ui/generated",
noExternal: ['@emotion/react', '@emotion/styled', '@tabler/icons-react', 'hex-rgb']
},
]);

View File

@ -1,12 +1,8 @@
import { ThemeProvider as EmotionThemProvider } from '@emotion/react';
import { ThemeType } from './src/modules/ui/theme/constants/theme';
import { lightTheme, ThemeType } from './src/modules/ui/theme/constants/theme';
export {ThemeProvider} from '@emotion/react';
export const ThemeProvider = ({ children }: { children: any }) => {
return (
<EmotionThemProvider theme={lightTheme}>{children}</EmotionThemProvider>
);
};
export {lightTheme, darkTheme} from './src/modules/ui/theme/constants/theme';
declare module '@emotion/react' {
// eslint-disable-next-line @typescript-eslint/no-empty-interface
@ -14,3 +10,4 @@ declare module '@emotion/react' {
}
export * from './src/modules/ui/display/checkmark/components/Checkmark';
export * from './src/modules/ui/input/button/components/Button';