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 resolveStyles from './resolve-styles';
|
8 |
|
9 | function Radium(ComposedComponent: constructor) {
|
10 | return Enhancer(ComposedComponent);
|
11 | }
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 | Radium.Plugins = Plugins;
|
20 | Radium.Style = Style;
|
21 | Radium.StyleRoot = StyleRoot;
|
22 | Radium.getState = getState;
|
23 | Radium.keyframes = keyframes;
|
24 |
|
25 | if (process.env.NODE_ENV !== 'production') {
|
26 | Radium.TestMode = {
|
27 | clearState: resolveStyles.__clearStateForTests,
|
28 | disable: resolveStyles.__setTestMode.bind(null, false),
|
29 | enable: resolveStyles.__setTestMode.bind(null, true)
|
30 | };
|
31 | }
|
32 |
|
33 | export default Radium;
|
34 |
|
35 |
|
36 | export {Plugins, Style, StyleRoot, getState, keyframes};
|