"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 index_1 = require('../../../../index');
require('./Button.Basic.Example.scss');
var ButtonBasicExample = (function (_super) {
    __extends(ButtonBasicExample, _super);
    function ButtonBasicExample() {
        _super.call(this);
        this._onDisabledChanged = this._onDisabledChanged.bind(this);
        this.state = {
            disabled: false
        };
    }
    ButtonBasicExample.prototype.render = function () {
        var disabled = this.state.disabled;
        return (React.createElement("div", {className: 'ms-BasicButtonsExample'}, React.createElement(index_1.Label, null, "Normal button"), React.createElement(index_1.Button, {disabled: disabled}, "Create account"), React.createElement(index_1.Label, null, "Primary button"), React.createElement(index_1.Button, {disabled: disabled, buttonType: index_1.ButtonType.primary}, "Create account"), React.createElement(index_1.Label, null, "Hero button"), React.createElement(index_1.Button, {disabled: disabled, buttonType: index_1.ButtonType.hero}, "Create account"), React.createElement(index_1.Label, null, "Compound button"), React.createElement(index_1.Button, {disabled: disabled, buttonType: index_1.ButtonType.compound, description: 'You can create a new account here.'}, "Create account"), React.createElement(index_1.Label, null, "Command button"), React.createElement(index_1.Button, {disabled: disabled, buttonType: index_1.ButtonType.command, icon: 'personAdd', description: 'Description of the action this button takes'}, "Create account"), React.createElement(index_1.Label, null, "Icon button"), React.createElement(index_1.Button, {disabled: disabled, buttonType: index_1.ButtonType.icon, icon: 'star', title: 'Star', ariaLabel: 'Take a star'}), React.createElement(index_1.Label, null, "Button like anchor"), React.createElement(index_1.Button, {disabled: disabled, elementType: index_1.ElementType.anchor, buttonType: index_1.ButtonType.primary, href: 'http://bing.com', target: '_blank', title: 'Let us bing!', description: 'Navigate to Bing home page.'}, "Bing"), React.createElement(index_1.Label, null, "Button with aria description for screen reader"), React.createElement(index_1.Button, {disabled: disabled, buttonType: index_1.ButtonType.primary, ariaDescription: 'This is aria description used for screen reader.'}, "Aria Description"), React.createElement(index_1.Checkbox, {text: 'Disable buttons', isChecked: disabled, onChanged: this._onDisabledChanged})));
    };
    ButtonBasicExample.prototype._onDisabledChanged = function (isDisabled) {
        this.setState({
            disabled: isDisabled
        });
    };
    return ButtonBasicExample;
}(React.Component));
exports.ButtonBasicExample = ButtonBasicExample;

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