import { __assign, __rest } from "tslib";
import * as React from 'react';
import { CompoundButton } from '@fluentui/react-button';
import * as classes from '../utils/Button.stories.scss';
/**
 * Temporary Stack until there's one in its own package.
 */
var Stack = function (props) {
    var horizontal = props.horizontal, rest = __rest(props, ["horizontal"]);
    return React.createElement("div", __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", __assign({}, props, { className: classes.text })); };
var CompoundButtonVariants = function (props) { return (React.createElement(Stack, { horizontal: true },
    React.createElement(CompoundButton, __assign({}, props, { icon: "O", secondaryContent: "This is some secondary text" }), "Hello, world"),
    React.createElement(CompoundButton, __assign({}, props, { primary: true, icon: "X", secondaryContent: "This is some secondary text" }), "Hello, world"),
    React.createElement(CompoundButton, __assign({}, props, { disabled: true, icon: "X", secondaryContent: "This is some secondary text" }), "Hello, world"),
    React.createElement(CompoundButton, __assign({}, props, { primary: true, disabled: true, icon: "X", secondaryContent: "This is some secondary text" }), "Hello, world"),
    React.createElement(CompoundButton, __assign({}, props, { ghost: true, icon: "X", secondaryContent: "This is some secondary text" }), "Hello, world"),
    React.createElement(CompoundButton, __assign({}, props, { ghost: true, disabled: true, icon: "X", secondaryContent: "This is some secondary text" }), "Hello, world"))); };
export var 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(CompoundButton, { fluid: true, icon: "X", secondaryContent: "This is some secondary text" }, "Hello, world"),
        React.createElement(CompoundButton, { fluid: true, primary: true, icon: "X", secondaryContent: "This is some secondary text" }, "Hello, world"),
        React.createElement(CompoundButton, { fluid: true, disabled: true, icon: "X", secondaryContent: "This is some secondary text" }, "Hello, world"),
        React.createElement(CompoundButton, { fluid: true, primary: true, disabled: true, icon: "X", secondaryContent: "This is some secondary text" }, "Hello, world"),
        React.createElement(CompoundButton, { fluid: true, ghost: true, icon: "X", secondaryContent: "This is some secondary text" }, "Hello, world"),
        React.createElement(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