Commit a707f3a 1 parent ae3b2a0 commit a707f3a Copy full SHA for a707f3a
File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -154,4 +154,7 @@ export { TableButtonCell } from './structuredComponents/TableButtonCell';
154
154
export type { Props as TableButtonCellProps } from './structuredComponents/TableButtonCell' ;
155
155
export { TextArea } from './structuredComponents/TextArea' ;
156
156
export type { Props as TextAreaProps } from './structuredComponents/TextArea' ;
157
- export { ThemeProvider } from './structuredComponents/ThemeProvider' ;
157
+ export {
158
+ useTablekitTheme ,
159
+ ThemeProvider
160
+ } from './structuredComponents/ThemeProvider' ;
Original file line number Diff line number Diff line change 1
1
import {
2
2
ThemeProvider as EmotionThemeProvider ,
3
3
Global ,
4
- css
4
+ css ,
5
+ useTheme
5
6
} from '@emotion/react' ;
6
7
import {
7
8
constants ,
@@ -54,6 +55,8 @@ function useIsDark(theme: 'light' | 'dark' | 'system') {
54
55
return isDark ;
55
56
}
56
57
58
+ export const useTablekitTheme = useTheme ;
59
+
57
60
export function ThemeProvider ( {
58
61
isRtl = false ,
59
62
lang,
You can’t perform that action at this time.
0 commit comments