"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;
};
Object.defineProperty(exports, "__esModule", { value: true });
var React = require("react");
var react_1 = require("@storybook/react");
var with_readme_1 = require("storybook-readme/with-readme");
var styled_components_1 = require("styled-components");
var FaExpand = require("react-icons/lib/fa/expand");
var FaRecycle = require("react-icons/lib/fa/recycle");
var FaSpinner = require("react-icons/lib/fa/spinner");
var _1 = require("../");
var Readme = require("./README/Button.md");
var Container = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n  margin: 30px;\n"], ["\n  margin: 30px;\n"])));
react_1.storiesOf('Core/Button', module)
    .addDecorator(with_readme_1.default(Readme))
    .add('Standard', function () {
    return (React.createElement(Container, null,
        React.createElement(_1.Button, { m: 2, primary: true, onPress: react_1.action('case-1') }, "Primary"),
        React.createElement(_1.Button, { m: 2, secondary: true, onPress: react_1.action('case-2') }, "Secondary"),
        React.createElement(_1.Button, { m: 2, tertiary: true, onPress: react_1.action('case-3') }, "Tertiary"),
        React.createElement(_1.Button, { m: 2, success: true, onPress: react_1.action('case-4') }, "Success"),
        React.createElement(_1.Button, { m: 2, danger: true, onPress: react_1.action('case-5') }, "Danger"),
        React.createElement(_1.Button, { m: 2, onPress: react_1.action('case-6') }, "Default")));
})
    .add('Emphasized', function () {
    return (React.createElement(Container, null,
        React.createElement(_1.Button, { m: 2, emphasized: true, primary: true, onPress: react_1.action('case-1') }, "Primary"),
        React.createElement(_1.Button, { m: 2, emphasized: true, secondary: true, onPress: react_1.action('case-2') }, "Secondary"),
        React.createElement(_1.Button, { m: 2, emphasized: true, tertiary: true, onPress: react_1.action('case-3') }, "Tertiary"),
        React.createElement(_1.Button, { m: 2, emphasized: true, success: true, onPress: react_1.action('case-4') }, "Success"),
        React.createElement(_1.Button, { m: 2, emphasized: true, danger: true, onPress: react_1.action('case-5') }, "Danger"),
        React.createElement(_1.Button, { m: 2, emphasized: true, onPress: react_1.action('case-6') }, "Default")));
})
    .add('Disabled', function () {
    return (React.createElement(Container, null,
        React.createElement(_1.Button, { m: 2, disabled: true, primary: true, onPress: react_1.action('case-1') }, "Primary"),
        React.createElement(_1.Button, { m: 2, disabled: true, secondary: true, onPress: react_1.action('case-2') }, "Secondary"),
        React.createElement(_1.Button, { m: 2, disabled: true, tertiary: true, onPress: react_1.action('case-3') }, "Tertiary"),
        React.createElement(_1.Button, { m: 2, disabled: true, success: true, onPress: react_1.action('case-4') }, "Success"),
        React.createElement(_1.Button, { m: 2, disabled: true, danger: true, onPress: react_1.action('case-5') }, "Danger"),
        React.createElement(_1.Button, { m: 2, disabled: true, onPress: react_1.action('case-6') }, "Default")));
})
    .add('Outline', function () {
    return (React.createElement(Container, null,
        React.createElement(_1.Button, { m: 2, outline: true, primary: true, onPress: react_1.action('case-1') }, "Primary"),
        React.createElement(_1.Button, { m: 2, outline: true, secondary: true, onPress: react_1.action('case-2') }, "Secondary"),
        React.createElement(_1.Button, { m: 2, outline: true, tertiary: true, onPress: react_1.action('case-3') }, "Tertiary"),
        React.createElement(_1.Button, { m: 2, outline: true, success: true, onPress: react_1.action('case-4') }, "Success"),
        React.createElement(_1.Button, { m: 2, outline: true, danger: true, onPress: react_1.action('case-5') }, "Danger"),
        React.createElement(_1.Button, { m: 2, outline: true, onPress: react_1.action('case-6') }, "Default")));
})
    .add('Underline', function () {
    return (React.createElement(Container, null,
        React.createElement(_1.Button, { m: 2, primary: true, underline: true, onPress: react_1.action('case-1') }, "Button"),
        React.createElement(_1.Button, { m: 2, underline: true, onPress: react_1.action('case-1') }, "Button")));
})
    .add('Plaintext', function () {
    return (React.createElement(Container, null,
        React.createElement(_1.Button, { m: 2, plaintext: true, primary: true, onPress: react_1.action('case-1') }, "Button"),
        React.createElement(_1.Button, { m: 2, plaintext: true, primary: true, iconElement: React.createElement(FaSpinner, null), onPress: react_1.action('case-2') }, "Button")));
})
    .add('Width', function () {
    return (React.createElement(Container, null,
        React.createElement(_1.Button, { w: 95, m: 2, primary: true, onPress: react_1.action('case-1') }, "Button"),
        React.createElement(_1.Button, { w: 60, m: 2, secondary: true, onPress: react_1.action('case-2') }, "Button"),
        React.createElement(_1.Button, { w: 120, m: 2, tertiary: true, onPress: react_1.action('case-3') }, "Button"),
        React.createElement("div", { style: { width: 300 } },
            React.createElement(_1.Button, { w: '100%', m: 2, onPress: react_1.action('case-4') }, "Button"))));
})
    .add('Square', function () {
    return (React.createElement(Container, null,
        React.createElement(_1.Button, { m: 2, tertiary: true, square: true, onPress: react_1.action('case-3') },
            React.createElement(FaExpand, null)),
        React.createElement(_1.Button, { m: 2, square: true, onPress: react_1.action('case-4') },
            React.createElement(FaRecycle, null))));
})
    .add('Square Emphasized', function () {
    return (React.createElement(Container, null,
        React.createElement(_1.Button, { m: 2, emphasized: true, tertiary: true, square: true, onPress: react_1.action('case-3') },
            React.createElement(FaExpand, null)),
        React.createElement(_1.Button, { m: 2, emphasized: true, square: true, onPress: react_1.action('case-4') },
            React.createElement(FaRecycle, null))));
});
var templateObject_1;
