Live code editor for UI docs (#2351)

* Docausaurus code live editor test

* Docusaurus sandpack test

* Fix setup

* Delete files

* Fixes

* Complete work

* Fix config

* Fix config

---------

Co-authored-by: bosiraphael <raphael.bosi@gmail.com>
This commit is contained in:
Charles Bochet
2023-11-03 23:09:20 +01:00
committed by GitHub
parent 1ed4965a95
commit e70ef58f97
18 changed files with 4311 additions and 1670 deletions

16
front/tsup.ui.index.tsx Normal file
View File

@ -0,0 +1,16 @@
import { ThemeProvider as EmotionThemProvider } from '@emotion/react';
import { lightTheme, ThemeType } from './src/modules/ui/theme/constants/theme';
export const ThemeProvider = ({ children }: { children: any }) => {
return (
<EmotionThemProvider theme={lightTheme}>{children}</EmotionThemProvider>
);
};
declare module '@emotion/react' {
// eslint-disable-next-line @typescript-eslint/no-empty-interface
export interface Theme extends ThemeType {}
}
export * from './src/modules/ui/display/checkmark/components/Checkmark';