Skip to content

Commit

Permalink
fix: make ThemeProviderWithoutGlobals working since esm build (#5342)
Browse files Browse the repository at this point in the history
  • Loading branch information
romainseb authored Jun 17, 2024
1 parent 0785bf4 commit 11c75a1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/eleven-ghosts-wait.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@talend/design-system": patch
---

fix: make ThemeProviderWithoutGlobals working since esm build
2 changes: 0 additions & 2 deletions packages/design-system/src/components/ThemeProvider/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { ThemeProvider as BaseThemeProvider, ThemeProviderProps } from './ThemeProvider';
import ThemeSwitcher from './ThemeSwitcher';

export { ThemeProviderWithoutGlobals } from './ThemeProviderWithoutGlobals';

export const ThemeProvider = BaseThemeProvider as typeof BaseThemeProvider & {
ThemeSwitcher: typeof ThemeSwitcher;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import 'typeface-source-sans-pro/index.css';
// eslint-disable-next-line @talend/import-depth
import '@talend/design-tokens/dist/TalendDesignTokens.css';

import ThemeContext from './ThemeContext';
import ThemeContext from '../ThemeProvider/ThemeContext';

export type ThemeProviderProps = PropsWithChildren<{
theme?: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { ThemeProviderWithoutGlobals } from './ThemeProviderWithoutGlobals';

0 comments on commit 11c75a1

Please sign in to comment.