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 / Ratings / Ratings.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 renderProps_1 = require("./renderProps");

class Ratings extends react_1.default.PureComponent {
  render() {
    const {
      renderWrapper,
      renderContainer
    } = this.props;
    const children = renderContainer(this.props);
    const renderItems = renderWrapper(Object.assign({}, this.props, {
      children
    }));
    return renderItems;
  }

}

Ratings.defaultProps = {
  className: '',
  starCount: 5,
  starRating: 0,
  width: 24,
  starGap: 5,
  isUserCount: true,
  userRating: 4,
  defaultColor: '#cccccc',
  fillColor: '#000000',
  shouldShowCount: false,
  countPosition: 'suffix',
  renderWrapper: renderProps_1.renderWrapper,
  renderContainer: renderProps_1.renderContainer,
  renderStars: renderProps_1.renderStars,
  renderCount: renderProps_1.renderCount
};
exports.Ratings = Ratings;
exports.default = Ratings; //# sourceMappingURL=Ratings.js.map