UNPKG

react-toolbox-legacy

Version:

Unofficial fork of the react-toolbox package, compatible with React v16

21 lines (18 loc) 967 B
import { BUTTON } from '../identifiers.js'; import { themr } from 'react-css-themr-legacy'; import { buttonFactory } from './Button.js'; import { browseButtonFactory } from './BrowseButton.js'; import { iconButtonFactory } from './IconButton.js'; import FontIcon from '../font_icon/FontIcon.js'; import themedRippleFactory from '../ripple'; import theme from './theme.scss'; const Button = buttonFactory(themedRippleFactory({ centered: false }), FontIcon); const IconButton = iconButtonFactory(themedRippleFactory({centered: true}), FontIcon); const BrowseButton = browseButtonFactory(themedRippleFactory({ centered: false }), FontIcon); const ThemedButton = themr(BUTTON, theme)(Button); const ThemedIconButton = themr(BUTTON, theme)(IconButton); const ThemedBrowseButton = themr(BUTTON, theme)(BrowseButton); export default ThemedButton; export { ThemedButton as Button }; export { ThemedIconButton as IconButton }; export { ThemedBrowseButton as BrowseButton };