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/ui / dist / components / presets / Buttons / ButtonWithIcon / ButtonWithIcon.js
Size: Mime:
"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});

const tslib_1 = require("tslib");

const react_1 = tslib_1.__importDefault(require("react"));

const styled_1 = require("./styled");

class ButtonWithIcon extends react_1.default.PureComponent {
  render() {
    const _a = this.props,
          {
      breedType,
      text,
      iconType
    } = _a,
          remainingProps = tslib_1.__rest(_a, ["breedType", "text", "iconType"]);

    return react_1.default.createElement(styled_1.StyledButtonWithIcon, Object.assign({
      breedType: breedType,
      text: text,
      iconType: iconType
    }, remainingProps));
  }

}

ButtonWithIcon.defaultProps = {
  breedType: 'icon-with-text',
  text: 'Cancel Order',
  role: 'button',
  'aria-label': 'button',
  'aria-pressed': false,
  iconType: 'cart'
};
exports.ButtonWithIcon = ButtonWithIcon;
exports.default = ButtonWithIcon; //# sourceMappingURL=ButtonWithIcon.js.map