UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

28 lines (26 loc) 1.42 kB
var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; define(["require", "exports", "react", "./Spinner.Props", "../../utilities/css", "./Spinner.scss"], function (require, exports, React, Spinner_Props_1, css_1) { "use strict"; var Spinner = (function (_super) { __extends(Spinner, _super); function Spinner() { return _super !== null && _super.apply(this, arguments) || this; } Spinner.prototype.render = function () { var _a = this.props, type = _a.type, label = _a.label, className = _a.className; return (React.createElement("div", { className: css_1.css('ms-Spinner', className) }, React.createElement("div", { className: css_1.css('ms-Spinner-circle', { 'ms-Spinner--normal': type === Spinner_Props_1.SpinnerType.normal }, { 'ms-Spinner--large': type === Spinner_Props_1.SpinnerType.large }) }), label && (React.createElement("div", { className: 'ms-Spinner-label' }, label)))); }; return Spinner; }(React.Component)); Spinner.defaultProps = { type: Spinner_Props_1.SpinnerType.normal }; exports.Spinner = Spinner; }); //# sourceMappingURL=Spinner.js.map