Skip to content

Commit a707f3a

Browse files
committed
fix: export useTablekitTheme hook
1 parent ae3b2a0 commit a707f3a

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

system/react/src/index.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -154,4 +154,7 @@ export { TableButtonCell } from './structuredComponents/TableButtonCell';
154154
export type { Props as TableButtonCellProps } from './structuredComponents/TableButtonCell';
155155
export { TextArea } from './structuredComponents/TextArea';
156156
export type { Props as TextAreaProps } from './structuredComponents/TextArea';
157-
export { ThemeProvider } from './structuredComponents/ThemeProvider';
157+
export {
158+
useTablekitTheme,
159+
ThemeProvider
160+
} from './structuredComponents/ThemeProvider';

system/react/src/structuredComponents/ThemeProvider.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import {
22
ThemeProvider as EmotionThemeProvider,
33
Global,
4-
css
4+
css,
5+
useTheme
56
} from '@emotion/react';
67
import {
78
constants,
@@ -54,6 +55,8 @@ function useIsDark(theme: 'light' | 'dark' | 'system') {
5455
return isDark;
5556
}
5657

58+
export const useTablekitTheme = useTheme;
59+
5760
export function ThemeProvider({
5861
isRtl = false,
5962
lang,

0 commit comments

Comments
 (0)