"use strict";
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
    if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
    return cooked;
};
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;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var react_1 = require("@storybook/react");
var React = __importStar(require("react"));
var styled_components_1 = __importDefault(require("styled-components"));
var Collapsable_1 = require("./Collapsable");
var Wrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n  margin: 50px;\n  max-width: 500px;\n"], ["\n  margin: 50px;\n  max-width: 500px;\n"])));
react_1.storiesOf("Pattern Library / Collapsable", module)
    .add("open", function () {
    return (React.createElement(Wrapper, null,
        React.createElement(Collapsable_1.Collapsable, { header: React.createElement("h3", null, "Hello"), open: true },
            React.createElement("p", null, " Some Content "))));
})
    .add("closed", function () {
    return (React.createElement(Wrapper, null,
        React.createElement(Collapsable_1.Collapsable, { header: React.createElement("h3", null, "Hello"), open: false },
            React.createElement("p", null, " Some Content "))));
})
    .add("disabled", function () {
    return (React.createElement(Wrapper, null,
        React.createElement(Collapsable_1.Collapsable, { disabled: true, header: React.createElement("h3", null, "Hello"), open: false },
            React.createElement("p", null, " Some Content "))));
})
    .add("with custom arrow", function () {
    var Arrow = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n      width: 8px;\n      height: 8px;\n      border-left: 3px solid blue;\n      border-bottom: 3px solid blue;\n      transform: ", ";\n      transition: transform 1s;\n      display: inline-block;\n      veritical-align: middle;\n    "], ["\n      width: 8px;\n      height: 8px;\n      border-left: 3px solid blue;\n      border-bottom: 3px solid blue;\n      transform: ", ";\n      transition: transform 1s;\n      display: inline-block;\n      veritical-align: middle;\n    "])), function (props) { return (props.open ? "rotate(135deg)" : "rotate(-45deg)"); });
    return (React.createElement(Wrapper, null,
        React.createElement(Collapsable_1.Collapsable, { header: "Hello", ArrowComponent: Arrow, open: false },
            React.createElement("p", null, " Some Content "))));
})
    .add("with open text", function () {
    return (React.createElement(Wrapper, null,
        React.createElement(Collapsable_1.Collapsable, { header: "Hello", headerOpen: "goodbye", open: false },
            React.createElement("p", null, " Some Content "))));
});
var templateObject_1, templateObject_2;
//# sourceMappingURL=Collapsable.stories.js.map