"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = require("react");
var react_button_1 = require("@fluentui/react-button");
var classes = require("../utils/Button.stories.scss");
/**
 * Temporary Stack until there's one in its own package.
 */
var Stack = function (props) {
    var horizontal = props.horizontal, rest = tslib_1.__rest(props, ["horizontal"]);
    return React.createElement("div", tslib_1.__assign({}, rest, { className: horizontal ? classes.hStack : classes.vStack }));
};
/**
 * Temporary Text until there's one in its own package.
 */
// eslint-disable-next-line jsx-a11y/heading-has-content -- content passed via children
var Text = function (props) { return React.createElement("h2", tslib_1.__assign({}, props, { className: classes.text })); };
var CompoundButtonVariants = function (props) { return (React.createElement(Stack, { horizontal: true },
    React.createElement(react_button_1.CompoundButton, tslib_1.__assign({}, props, { icon: "O", secondaryContent: "This is some secondary text" }), "Hello, world"),
    React.createElement(react_button_1.CompoundButton, tslib_1.__assign({}, props, { primary: true, icon: "X", secondaryContent: "This is some secondary text" }), "Hello, world"),
    React.createElement(react_button_1.CompoundButton, tslib_1.__assign({}, props, { disabled: true, icon: "X", secondaryContent: "This is some secondary text" }), "Hello, world"),
    React.createElement(react_button_1.CompoundButton, tslib_1.__assign({}, props, { primary: true, disabled: true, icon: "X", secondaryContent: "This is some secondary text" }), "Hello, world"),
    React.createElement(react_button_1.CompoundButton, tslib_1.__assign({}, props, { ghost: true, icon: "X", secondaryContent: "This is some secondary text" }), "Hello, world"),
    React.createElement(react_button_1.CompoundButton, tslib_1.__assign({}, props, { ghost: true, disabled: true, icon: "X", secondaryContent: "This is some secondary text" }), "Hello, world"))); };
exports.CompoundButtonCss = function () { return (React.createElement(Stack, null,
    React.createElement(Text, null, "A CompoundButton comes in default and `primary` flavors."),
    React.createElement(CompoundButtonVariants, null),
    React.createElement(Text, null, "A CompoundButton can appear round using the `circular` prop."),
    React.createElement(CompoundButtonVariants, { circular: true }),
    React.createElement(Text, null, "A CompoundButton can fill the width of its container using the `fluid` prop."),
    React.createElement(Stack, { horizontal: true },
        React.createElement(react_button_1.CompoundButton, { fluid: true, icon: "X", secondaryContent: "This is some secondary text" }, "Hello, world"),
        React.createElement(react_button_1.CompoundButton, { fluid: true, primary: true, icon: "X", secondaryContent: "This is some secondary text" }, "Hello, world"),
        React.createElement(react_button_1.CompoundButton, { fluid: true, disabled: true, icon: "X", secondaryContent: "This is some secondary text" }, "Hello, world"),
        React.createElement(react_button_1.CompoundButton, { fluid: true, primary: true, disabled: true, icon: "X", secondaryContent: "This is some secondary text" }, "Hello, world"),
        React.createElement(react_button_1.CompoundButton, { fluid: true, ghost: true, icon: "X", secondaryContent: "This is some secondary text" }, "Hello, world"),
        React.createElement(react_button_1.CompoundButton, { fluid: true, ghost: true, disabled: true, icon: "X", secondaryContent: "This is some secondary text" }, "Hello, world")),
    React.createElement(Text, null, "A CompoundButton can contain only an icon using the `iconOnly` prop."),
    React.createElement(CompoundButtonVariants, { iconOnly: true }),
    React.createElement(Text, null, "A CompoundButton can be both `circular` and `iconOnly`."),
    React.createElement(CompoundButtonVariants, { circular: true, iconOnly: true }),
    React.createElement(Text, null, "An icon CompoundButton can format its Icon to appear before or after its content."),
    React.createElement(Stack, null,
        React.createElement(CompoundButtonVariants, { iconPosition: "before" }),
        React.createElement(CompoundButtonVariants, { iconPosition: "after" })),
    React.createElement(Text, null, "A CompoundButton can show a loading indicator using the `loading` prop."),
    React.createElement(CompoundButtonVariants, { loading: true }),
    React.createElement(Text, null, "A CompoundButton can be sized."),
    React.createElement(Stack, null,
        React.createElement(CompoundButtonVariants, { size: "smallest" }),
        React.createElement(CompoundButtonVariants, { size: "smaller" }),
        React.createElement(CompoundButtonVariants, { size: "small" }),
        React.createElement(CompoundButtonVariants, { size: "large" }),
        React.createElement(CompoundButtonVariants, { size: "larger" }),
        React.createElement(CompoundButtonVariants, { size: "largest" })))); };
//# sourceMappingURL=CompoundButton.stories.js.map