"use strict";
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 });
const index_1 = require("./index");
const addon_centered_1 = __importDefault(require("@storybook/addon-centered"));
const addon_info_1 = require("@storybook/addon-info");
const addon_knobs_1 = require("@storybook/addon-knobs");
const addon_notes_1 = require("@storybook/addon-notes");
const react_1 = require("@storybook/react");
const React = __importStar(require("react"));
react_1.storiesOf('Atoms|Button', module)
    .addDecorator(addon_knobs_1.withKnobs)
    .addDecorator(addon_centered_1.default)
    .add('All buttons', addon_info_1.withInfo({ text: 'All buttons' })(addon_notes_1.withNotes('All buttons  ')(() => {
    const primaryContent = addon_knobs_1.text('primary button content', 'Primary Button');
    const secondaryContent = addon_knobs_1.text('secondary button content', 'Secondary Button');
    const tertiaryContent = addon_knobs_1.text('tertiary button content', 'Tertiary Button');
    const linkContent = addon_knobs_1.text('link button content', 'Link Button');
    const dangerContent = addon_knobs_1.text('danger button content', 'Danger Button');
    const style = { marginLeft: '10px' };
    const isLoading = addon_knobs_1.boolean('isLoading', false);
    return (React.createElement("div", null,
        React.createElement("h4", null, "XXSMALL Button"),
        React.createElement("div", null,
            React.createElement(index_1.Button, { style: style, btnSize: index_1.Size.XXSMALL, btnStyle: index_1.Style.PRIMARY, isLoading: isLoading }, primaryContent),
            React.createElement(index_1.Button, { style: style, btnSize: index_1.Size.XXSMALL, btnStyle: index_1.Style.SECONDARY, isLoading: isLoading }, secondaryContent),
            React.createElement(index_1.Button, { style: style, btnSize: index_1.Size.XXSMALL, btnStyle: index_1.Style.TERTIARY, isLoading: isLoading }, tertiaryContent),
            React.createElement(index_1.Button, { style: style, btnSize: index_1.Size.XXSMALL, btnStyle: index_1.Style.LINK, isLoading: isLoading }, linkContent),
            React.createElement(index_1.Button, { style: style, btnSize: index_1.Size.XXSMALL, btnStyle: index_1.Style.DANGER, isLoading: isLoading }, dangerContent)),
        React.createElement("h4", null, "XSMALL Button"),
        React.createElement("div", null,
            React.createElement(index_1.Button, { style: style, btnSize: index_1.Size.XSMALL, btnStyle: index_1.Style.PRIMARY, isLoading: isLoading }, primaryContent),
            React.createElement(index_1.Button, { style: style, btnSize: index_1.Size.XSMALL, btnStyle: index_1.Style.SECONDARY, isLoading: isLoading }, secondaryContent),
            React.createElement(index_1.Button, { style: style, btnSize: index_1.Size.XSMALL, btnStyle: index_1.Style.TERTIARY, isLoading: isLoading }, tertiaryContent),
            React.createElement(index_1.Button, { style: style, btnSize: index_1.Size.XSMALL, btnStyle: index_1.Style.LINK, isLoading: isLoading }, linkContent),
            React.createElement(index_1.Button, { style: style, btnSize: index_1.Size.XSMALL, btnStyle: index_1.Style.DANGER, isLoading: isLoading }, dangerContent)),
        React.createElement("h4", null, "SMALL Button"),
        React.createElement("div", null,
            React.createElement(index_1.Button, { style: style, btnSize: index_1.Size.SMALL, btnStyle: index_1.Style.PRIMARY, isLoading: isLoading }, primaryContent),
            React.createElement(index_1.Button, { style: style, btnSize: index_1.Size.SMALL, btnStyle: index_1.Style.SECONDARY, isLoading: isLoading }, secondaryContent),
            React.createElement(index_1.Button, { style: style, btnSize: index_1.Size.SMALL, btnStyle: index_1.Style.TERTIARY, isLoading: isLoading }, tertiaryContent),
            React.createElement(index_1.Button, { style: style, btnSize: index_1.Size.SMALL, btnStyle: index_1.Style.LINK, isLoading: isLoading }, linkContent),
            React.createElement(index_1.Button, { style: style, btnSize: index_1.Size.SMALL, btnStyle: index_1.Style.DANGER, isLoading: isLoading }, dangerContent)),
        React.createElement("h4", null, "NORMAL Button"),
        React.createElement("div", null,
            React.createElement(index_1.Button, { style: style, btnSize: index_1.Size.NORMAL, btnStyle: index_1.Style.PRIMARY, isLoading: isLoading }, primaryContent),
            React.createElement(index_1.Button, { style: style, btnSize: index_1.Size.NORMAL, btnStyle: index_1.Style.SECONDARY, isLoading: isLoading }, secondaryContent),
            React.createElement(index_1.Button, { style: style, btnSize: index_1.Size.NORMAL, btnStyle: index_1.Style.TERTIARY, isLoading: isLoading }, tertiaryContent),
            React.createElement(index_1.Button, { style: style, btnSize: index_1.Size.NORMAL, btnStyle: index_1.Style.LINK, isLoading: isLoading }, linkContent),
            React.createElement(index_1.Button, { style: style, btnSize: index_1.Size.NORMAL, btnStyle: index_1.Style.DANGER, isLoading: isLoading }, dangerContent)),
        React.createElement("h4", null, "BIG Button"),
        React.createElement("div", null,
            React.createElement(index_1.Button, { style: style, btnSize: index_1.Size.BIG, btnStyle: index_1.Style.PRIMARY, isLoading: isLoading }, primaryContent),
            React.createElement(index_1.Button, { style: style, btnSize: index_1.Size.BIG, btnStyle: index_1.Style.SECONDARY, isLoading: isLoading }, secondaryContent),
            React.createElement(index_1.Button, { style: style, btnSize: index_1.Size.BIG, btnStyle: index_1.Style.TERTIARY, isLoading: isLoading }, tertiaryContent),
            React.createElement(index_1.Button, { style: style, btnSize: index_1.Size.BIG, btnStyle: index_1.Style.LINK, isLoading: isLoading }, linkContent),
            React.createElement(index_1.Button, { style: style, btnSize: index_1.Size.BIG, btnStyle: index_1.Style.DANGER, isLoading: isLoading }, dangerContent))));
})));
//# sourceMappingURL=stories.js.map