all files / lib/components/Label/ Label.js

89.47% Statements 17/19
57.14% Branches 4/7
100% Functions 5/5
100% Lines 16/16
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28      15× 15×                  
"use strict";
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 __());
};
var React = require('react');
var css_1 = require('../../utilities/css');
require('./Label.scss');
var Label = (function (_super) {
    __extends(Label, _super);
    function Label() {
        _super.apply(this, arguments);
    }
    Label.prototype.render = function () {
        var _a = this.props, isDisabled = _a.isDisabled, isRequired = _a.isRequired, children = _a.children, htmlFor = _a.htmlFor;
        return (React.createElement("label", React.__spread({}, this.props, {htmlFor: htmlFor, className: css_1.css('ms-Label', {
            'is-disabled': isDisabled,
            'is-required': isRequired
        })}), children));
    };
    return Label;
}(React.Component));
exports.Label = Label;
 
//# sourceMappingURL=Label.js.map