"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 Button_1 = require("office-ui-fabric-react/lib/Button");
var Overlay_1 = require("office-ui-fabric-react/lib/Overlay");
require("./Overlay.Example.scss");
var OverlayDarkExample = (function (_super) {
    tslib_1.__extends(OverlayDarkExample, _super);
    function OverlayDarkExample() {
        var _this = _super.call(this) || this;
        _this.state = { isOverlayVisible: false };
        return _this;
    }
    OverlayDarkExample.prototype.render = function () {
        var isOverlayVisible = this.state.isOverlayVisible;
        return (React.createElement("div", null,
            React.createElement(Button_1.DefaultButton, { onClick: this._toggleOverlay, text: 'Show the overlay' }),
            isOverlayVisible && (React.createElement(Overlay_1.Overlay, { isDarkThemed: true, onClick: this._setVisibilityFalse },
                React.createElement("div", { className: 'OverlayExample-content' },
                    React.createElement("p", null, "I am content within the overlay."))))));
    };
    OverlayDarkExample.prototype._setVisibilityFalse = function () {
        this.setState({ isOverlayVisible: false });
    };
    OverlayDarkExample.prototype._toggleOverlay = function () {
        this.setState({ isOverlayVisible: !this.state.isOverlayVisible });
    };
    tslib_1.__decorate([
        Utilities_1.autobind
    ], OverlayDarkExample.prototype, "_setVisibilityFalse", null);
    tslib_1.__decorate([
        Utilities_1.autobind
    ], OverlayDarkExample.prototype, "_toggleOverlay", null);
    return OverlayDarkExample;
}(React.Component));
exports.OverlayDarkExample = OverlayDarkExample;
//# sourceMappingURL=Overlay.Dark.Example.js.map