"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 __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
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 storybook_react_router_1 = __importDefault(require("storybook-react-router"));
var React = __importStar(require("react"));
var styled_components_1 = __importDefault(require("styled-components"));
var Button_1 = require("./Button");
var MetaMaskLogoButton_1 = require("./MetaMaskLogoButton");
var CardTransactionButton_1 = require("./CardTransactionButton");
var StyledDiv = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  width: 400px;\n"], ["\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  width: 400px;\n"])));
var Container = function (_a) {
    var children = _a.children;
    return React.createElement(StyledDiv, null, children);
};
react_1.storiesOf("Pattern Library / Buttons", module)
    .addDecorator(storybook_react_router_1.default())
    .add("Button", function () {
    return (React.createElement(Container, null,
        React.createElement(Button_1.Button, null, "Standard Button"),
        React.createElement("br", null),
        React.createElement(Button_1.Button, { disabled: true }, "Disabled"),
        React.createElement("br", null),
        React.createElement(Button_1.Button, { to: "/home" }, "Link Button"),
        React.createElement("br", null)));
})
    .add("sizes", function () {
    return (React.createElement(Container, null,
        React.createElement(Button_1.Button, { size: Button_1.buttonSizes.LARGE }, "large"),
        React.createElement("br", null),
        React.createElement(Button_1.Button, { size: Button_1.buttonSizes.MEDIUM }, "medium"),
        React.createElement("br", null),
        React.createElement(Button_1.Button, { size: Button_1.buttonSizes.MEDIUM_WIDE }, "medium wide"),
        React.createElement("br", null),
        React.createElement(Button_1.Button, { size: Button_1.buttonSizes.SMALL }, "small"),
        React.createElement("br", null),
        React.createElement(Button_1.Button, { size: Button_1.buttonSizes.SMALL_WIDE }, "small wide"),
        React.createElement("br", null)));
})
    .add("SecondaryButton", function () {
    return (React.createElement(Container, null,
        React.createElement(Button_1.SecondaryButton, null, "Secondary Button")));
})
    .add("InvertedButton", function () {
    return (React.createElement(Container, null,
        React.createElement(Button_1.InvertedButton, null, "Inverted Button")));
})
    .add("DarkButton", function () {
    return (React.createElement(Container, null,
        React.createElement(Button_1.DarkButton, null, "Dark Button")));
})
    .add("MetaMaskLogoButton", function () {
    return (React.createElement(Container, null,
        React.createElement(MetaMaskLogoButton_1.MetaMaskLogoButton, { onClick: function (ev) { return console.log("You clicked me!"); } }, "MetaMaskLogo Transaction Button")));
})
    .add("CardTransactionButton", function () {
    return (React.createElement(Container, null,
        React.createElement("p", null, "This is a Transaction Button styled as a Card, and can contain any markup"),
        React.createElement(CardTransactionButton_1.CardTransactionButton, { onClick: function (ev) { return console.log("You clicked me!"); } }, "Transaction")));
});
var templateObject_1;
//# sourceMappingURL=Button.stories.js.map