2016-05-28 16:37:10 +03:00
|
|
|
import { themr } from 'react-css-themr';
|
2017-01-26 20:05:32 +03:00
|
|
|
import { BUTTON } from '../identifiers';
|
|
|
|
import { buttonFactory } from './Button';
|
|
|
|
import { browseButtonFactory } from './BrowseButton';
|
|
|
|
import { iconButtonFactory } from './IconButton';
|
|
|
|
import { FontIcon } from '../font_icon/FontIcon';
|
2016-05-28 16:37:10 +03:00
|
|
|
import themedRippleFactory from '../ripple';
|
2017-01-05 04:42:18 +03:00
|
|
|
import theme from './theme.css';
|
2016-05-28 16:37:10 +03:00
|
|
|
|
|
|
|
const Button = buttonFactory(themedRippleFactory({ centered: false }), FontIcon);
|
2017-01-26 20:05:32 +03:00
|
|
|
const IconButton = iconButtonFactory(themedRippleFactory({ centered: true }), FontIcon);
|
2016-10-08 01:16:51 +03:00
|
|
|
const BrowseButton = browseButtonFactory(themedRippleFactory({ centered: false }), FontIcon);
|
2016-05-28 16:37:10 +03:00
|
|
|
const ThemedButton = themr(BUTTON, theme)(Button);
|
|
|
|
const ThemedIconButton = themr(BUTTON, theme)(IconButton);
|
2016-10-08 01:16:51 +03:00
|
|
|
const ThemedBrowseButton = themr(BUTTON, theme)(BrowseButton);
|
2016-05-28 16:37:10 +03:00
|
|
|
|
|
|
|
export default ThemedButton;
|
|
|
|
export { ThemedButton as Button };
|
|
|
|
export { ThemedIconButton as IconButton };
|
2016-10-08 01:16:51 +03:00
|
|
|
export { ThemedBrowseButton as BrowseButton };
|