1 | import Enhancer from './enhancer';
|
2 | import Plugins from './plugins';
|
3 | import Style from './components/style';
|
4 | import StyleRoot from './components/style-root';
|
5 | import getState from './get-state';
|
6 | import keyframes from './keyframes';
|
7 | import {__clearStateForTests, __setTestMode} from './resolve-styles';
|
8 |
|
9 | function Radium(ComposedComponent: constructor) {
|
10 | return Enhancer(ComposedComponent);
|
11 | }
|
12 |
|
13 | Radium.Plugins = Plugins;
|
14 | Radium.Style = Style;
|
15 | Radium.StyleRoot = StyleRoot;
|
16 | Radium.getState = getState;
|
17 | Radium.keyframes = keyframes;
|
18 |
|
19 | if (process.env.NODE_ENV !== 'production') {
|
20 | Radium.TestMode = {
|
21 | clearState: __clearStateForTests,
|
22 | disable: __setTestMode.bind(null, false),
|
23 | enable: __setTestMode.bind(null, true),
|
24 | };
|
25 | }
|
26 |
|
27 | export default Radium;
|