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 / atoms / Cell / Cell.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 Cell extends react_1.default.PureComponent {
  render() {
    const {
      children,
      colSpan,
      totalColumns,
      className,
      nowrap
    } = this.props;
    const attributes = {
      className,
      colSpan,
      totalColumns
    }; // @todo render prop

    const Box = nowrap ? react_1.default.Fragment : styled_1.StyledInnerCell;
    return react_1.default.createElement(styled_1.StyledCell, Object.assign({}, attributes), react_1.default.createElement(Box, null, children));
  }

}

Cell.defaultProps = {
  className: ''
};
exports.Cell = Cell;
exports.default = Cell; //# sourceMappingURL=Cell.js.map