Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/packages / pages / Studio / presets / Button / Button.js
Size: Mime:
import React from 'react';
import { fromIshToString } from 'exotic';
import { StyledButton, InnerWrapper, ButtonText, StyledMaterialIcon } from './styled';
const customPaths = {
    gallery: (React.createElement("path", { d: "M0,0 L0,20 L20,20 L20,0 L0,0 Z M18.5714286,15.1413793 L1.42857143,15.1413793 L1.42857143,1.37931034 L18.5714286,1.37931034 L18.5714286,15.1413793 Z" })),
    upload: (React.createElement("path", { d: "M14.1268027,1.41904716 C16.4138731,1.40638871 18.6117859,2.37890196 20.2364152,4.12237517 C21.8610444,5.86584838 22.7791225,8.23726501 22.7884278,10.7142823 C22.7857813,15.8328173 18.9610179,19.9848092 14.2349872,19.9995147 C9.5089565,20.0142202 5.66222858,15.8860986 5.63242657,10.7676646 C5.60262456,5.64923061 9.40097661,1.46889532 14.1268027,1.41904716 Z M14.1268027,15.352376 C15.3368063,15.3599737 16.4999738,14.8463334 17.3601136,13.924586 C18.2202535,13.0028388 18.7068136,11.74859 18.7126275,10.4380919 C18.7149335,7.72698653 16.6914207,5.52496454 14.1882183,5.51455075 C11.6850159,5.50413696 9.64594338,7.68925784 9.62901887,10.4003024 C9.61209436,13.111347 11.6236991,15.3261299 14.1268027,15.352376 Z M18.9984172,1.26666626 L25,1.26666626 L25,19.9999936 L19.244636,19.9999936 C22.349158,18.0524739 24.2400552,14.44045 24.1889901,10.5552046 C24.1379249,6.66995923 22.1528648,3.11769106 18.9984172,1.26666626 Z M4.06260993,10.7142823 C4.07116602,14.5414365 5.95411918,18.0762704 9.00896941,19.9999936 L1.68396061,19.9999936 C0.758071665,20.0026324 0.00484439709,19.1932416 0,18.1904703 L0,3.06666569 C0.00232606116,2.58674821 0.180587859,2.12748842 0.495568517,1.78992161 C0.810549175,1.45235481 1.23644616,1.26413373 1.67956384,1.26666626 L2.38744285,1.26666626 L2.38744285,0 L6.71825537,0 L6.71825537,1.26666626 L9.25518819,1.26666626 C6.05822133,3.14921167 4.06644777,6.77313621 4.06260993,10.7142823 Z" })),
};
class Button extends React.PureComponent {
    render() {
        const buttonList = this.props.list.map((item, index) => (React.createElement(InnerWrapper, null,
            React.createElement(StyledMaterialIcon, { type: item.icon, customPaths: customPaths }),
            React.createElement(ButtonText, null, fromIshToString(item.text) || Text))));
        return React.createElement(StyledButton, null, buttonList);
    }
}
Button.defaultProps = {
    className: '',
};
export { Button };
export default Button;
//# sourceMappingURL=Button.js.map