solrkit
Version:
 
29 lines • 1.48 kB
JavaScript
;
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var React = require("react");
var semantic_ui_react_1 = require("semantic-ui-react");
var SingleNumber = (function (_super) {
__extends(SingleNumber, _super);
function SingleNumber() {
return _super !== null && _super.apply(this, arguments) || this;
}
SingleNumber.prototype.render = function () {
var props = this.props;
return (React.createElement(semantic_ui_react_1.Statistic, { horizontal: props.horizontal || false, color: props.color, size: props.size || 'tiny' },
React.createElement(semantic_ui_react_1.Statistic.Value, null, props.value.toLocaleString(undefined, { minimumFractionDigits: 0 })),
React.createElement(semantic_ui_react_1.Statistic.Label, null, props.label)));
};
return SingleNumber;
}(React.Component));
exports.SingleNumber = SingleNumber;
//# sourceMappingURL=SingleNumber.js.map