File tree Expand file tree Collapse file tree 9 files changed +5
-193
lines changed Expand file tree Collapse file tree 9 files changed +5
-193
lines changed Original file line number Diff line number Diff line change 44
55### Breaking Changes
66
7+ #### @zendeskgarden/react-theming
8+
9+ - Utility function ` isRtl ` has been removed. Use ` props.theme.rtl ` instead.
10+ - Utility function ` getDocument ` has been removed. Use ` useDocument ` instead.
11+
712#### @zendeskgarden/react-utilities
813
914- This package has been removed.
Original file line number Diff line number Diff line change @@ -52,20 +52,3 @@ import { Notification } from '@zendeskgarden/react-notifications';
5252 < Notification > This notification content will render with RTL layout.< / Notification >
5353< / ThemeProvider> ;
5454```
55-
56- The ` withTheme ` [ HOC] ( https://reactjs.org/docs/higher-order-components.html )
57- utility allows any component to interact with its ` ThemeProvider ` .
58-
59- ``` jsx
60- import { withTheme } from ' @zendeskgarden/react-theming' ;
61-
62- const Div = ({ theme, children }) => (
63- < div style= {{ direction: theme .rtl ? ' rtl' : ' ltr' }}> {children}< / div>
64- );
65-
66- const LocalizedComponent = withTheme (Div);
67-
68- < ThemeProvider theme= {{ ... DEFAULT_THEME, rtl: true }}>
69- < LocalizedComponent> RTL localizable< / LocalizedComponent>
70- < / ThemeProvider> ;
71- ```
Original file line number Diff line number Diff line change 88export { ThemeProvider } from './elements/ThemeProvider' ;
99export { default as DEFAULT_THEME } from './elements/theme' ;
1010export { default as PALETTE } from './elements/palette' ;
11- export { default as isRtl } from './utils/isRtl' ;
1211export {
1312 default as retrieveComponentStyles ,
1413 /** `retrieveTheme` is a deprecated usage for v7 compatability */
1514 default as retrieveTheme
1615} from './utils/retrieveComponentStyles' ;
17- export { default as withTheme } from './utils/withTheme' ;
18- export { default as getDocument } from './utils/getDocument' ;
1916export { getColor } from './utils/getColor' ;
2017export { getFocusBoxShadow } from './utils/getFocusBoxShadow' ;
2118export { default as getLineHeight } from './utils/getLineHeight' ;
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments