"use strict";
var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
    result["default"] = mod;
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
var react_1 = require("@storybook/react");
var React = __importStar(require("react"));
var SlideCheckbox_1 = require("./SlideCheckbox");
var Checkbox_1 = require("./Checkbox");
var TestSlideComponent = /** @class */ (function (_super) {
    __extends(TestSlideComponent, _super);
    function TestSlideComponent(props) {
        var _this = _super.call(this, props) || this;
        _this.onClick = function () {
            _this.setState({ checked: !_this.state.checked });
        };
        _this.state = {
            checked: false,
        };
        return _this;
    }
    TestSlideComponent.prototype.render = function () {
        return React.createElement(SlideCheckbox_1.SlideCheckbox, { onClick: this.onClick, checked: this.state.checked });
    };
    return TestSlideComponent;
}(React.Component));
var TestComponent = /** @class */ (function (_super) {
    __extends(TestComponent, _super);
    function TestComponent(props) {
        var _this = _super.call(this, props) || this;
        _this.onClick = function () {
            _this.setState({ checked: !_this.state.checked });
        };
        _this.state = {
            checked: _this.props.checked || false,
        };
        return _this;
    }
    TestComponent.prototype.render = function () {
        return React.createElement(Checkbox_1.Checkbox, { onClick: this.onClick, checked: this.state.checked, size: this.props.size, id: this.props.id });
    };
    return TestComponent;
}(React.Component));
react_1.storiesOf("Pattern Library / inputs / check box", module)
    .add("slide check box", function () {
    return React.createElement(TestSlideComponent, null);
})
    .add("checkboxes", function () { return (React.createElement("ul", null,
    React.createElement("li", null,
        React.createElement("label", { htmlFor: "check1" }, "Default:"),
        React.createElement(TestComponent, { id: "check1" })),
    React.createElement("li", null,
        React.createElement("label", { htmlFor: "check2" }, "Default checked:"),
        React.createElement(TestComponent, { checked: true, id: "check2" })),
    React.createElement("li", null,
        React.createElement("label", { htmlFor: "check3" }, "Small:"),
        React.createElement(TestComponent, { size: Checkbox_1.CheckboxSizes.SMALL, id: "check3" })),
    React.createElement("li", null,
        React.createElement("label", { htmlFor: "check4" }, "Small checked:"),
        React.createElement(TestComponent, { size: Checkbox_1.CheckboxSizes.SMALL, checked: true, id: "check4" })))); });
//# sourceMappingURL=checkbox.stories.js.map