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 / src / playground / Button / breed / GreyButton.js
Size: Mime:
"use strict";

var __importDefault = this && this.__importDefault || function (mod) {
  return mod && mod.__esModule ? mod : {
    "default": mod
  };
};

Object.defineProperty(exports, "__esModule", {
  value: true
});
/**
 * @fileoverview @alias GreyButton
 */

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

const BlueButton_1 = __importDefault(require("./BlueButton"));

const GreyButtonAdapter = props => react_1.default.createElement(BlueButton_1.default, Object.assign({}, props, {
  className: 'button grey-button ' + props.className
}));

const GreyButton = styled.withComponent(GreyButtonAdapter)`
  @font(13, regular);
  font-weight: 900;
  background-color: $colors-lightgrey;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  align-self: flex-end;

  ${props => (props.isDisabled || props.state === 'disabled') && styled.css`
      opacity: 0.5;
      background-color: $colors-primary-darkgreen;
    `}

  /* when the button has a link inside of it... */
  a {
    color: $colors-main-background;
  }
`;
exports.GreyButton = GreyButton;
exports.default = GreyButton; //# sourceMappingURL=GreyButton.js.map