"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = require("react");
var Utilities_1 = require("office-ui-fabric-react/lib/Utilities");
var Rating_1 = require("office-ui-fabric-react/lib/Rating");
require("./Rating.Basic.Example.scss");
var RatingBasicExample = (function (_super) {
    tslib_1.__extends(RatingBasicExample, _super);
    function RatingBasicExample() {
        var _this = _super.call(this) || this;
        _this.state = {
            rating: null
        };
        return _this;
    }
    RatingBasicExample.prototype.render = function () {
        return (React.createElement("div", { className: 'ms-RatingBasicExample' },
            React.createElement(Rating_1.Rating, { min: 1, max: 5, rating: this.state.rating, onChanged: this._onChanged }),
            React.createElement(Rating_1.Rating, { min: 1, max: 5, size: Rating_1.RatingSize.Large, rating: this.state.rating, onChanged: this._onChanged }),
            React.createElement(Rating_1.Rating, { min: 1, max: 10, size: Rating_1.RatingSize.Large, rating: this.state.rating, onChanged: this._onChanged }),
            "Disabled:",
            React.createElement(Rating_1.Rating, { min: 1, max: 5, rating: this.state.rating, onChanged: this._onChanged, disabled: true })));
    };
    RatingBasicExample.prototype._onChanged = function (rating) {
        this.setState({
            rating: rating
        });
    };
    return RatingBasicExample;
}(React.Component));
tslib_1.__decorate([
    Utilities_1.autobind
], RatingBasicExample.prototype, "_onChanged", null);
exports.RatingBasicExample = RatingBasicExample;

//# sourceMappingURL=Rating.Basic.Example.js.map
