import { __assign } from "tslib";
import * as React from 'react';
import { MenuButton } from '@fluentui/react-button';
import { Stack, Text } from 'office-ui-fabric-react';
import * as classes from '../utils/Button.stories.scss';
var menuProps = {
    items: [
        {
            key: 'a',
            name: 'Item a',
        },
        {
            key: 'b',
            name: 'Item b',
        },
    ],
};
var MenuButtonVariants = function (props) { return (React.createElement("div", { className: classes.hStack },
    React.createElement(MenuButton, __assign({}, props, { icon: "O", menu: menuProps }), "Hello, world"),
    React.createElement(MenuButton, __assign({}, props, { icon: "O", primary: true, menu: menuProps }), "Hello, world"),
    React.createElement(MenuButton, __assign({}, props, { icon: "O", disabled: true, menu: menuProps }), "Hello, world"),
    React.createElement(MenuButton, __assign({}, props, { icon: "O", primary: true, disabled: true, menu: menuProps }), "Hello, world"),
    React.createElement(MenuButton, __assign({}, props, { icon: "O", ghost: true, menu: menuProps }), "Hello, world"),
    React.createElement(MenuButton, __assign({}, props, { icon: "O", ghost: true, disabled: true, menu: menuProps }), "Hello, world"))); };
export var MenuButtonCss = function () { return (React.createElement(Stack, { gap: 20 },
    React.createElement(Text, { variant: "xLarge" }, "A button comes in default and `primary` flavors."),
    React.createElement(MenuButtonVariants, null),
    React.createElement(Text, { variant: "xLarge" }, "A button can appear round using the `circular` prop."),
    React.createElement(MenuButtonVariants, { circular: true }),
    React.createElement(Text, { variant: "xLarge" }, "A button can fill the width of its container using the `fluid` prop."),
    React.createElement("div", { className: classes.vStack },
        React.createElement(MenuButton, { fluid: true, menu: menuProps }, "Hello, world"),
        React.createElement(MenuButton, { fluid: true, primary: true, menu: menuProps }, "Hello, world"),
        React.createElement(MenuButton, { fluid: true, disabled: true, menu: menuProps }, "Hello, world"),
        React.createElement(MenuButton, { fluid: true, primary: true, disabled: true, menu: menuProps }, "Hello, world"),
        React.createElement(MenuButton, { fluid: true, ghost: true, menu: menuProps }, "Hello, world"),
        React.createElement(MenuButton, { fluid: true, ghost: true, disabled: true, menu: menuProps }, "Hello, world")),
    React.createElement(Text, { variant: "xLarge" }, "A button can contain only an icon using the `iconOnly` prop."),
    React.createElement(MenuButtonVariants, { iconOnly: true }),
    React.createElement(Text, null, "A button can be both `circular` and `iconOnly`."),
    React.createElement(MenuButtonVariants, { circular: true, iconOnly: true }),
    React.createElement(Text, { variant: "xLarge" }, "A button can show a loading indicator using the `loading` prop."),
    React.createElement(MenuButtonVariants, { loading: true }),
    React.createElement(Text, { variant: "xLarge" }, "A button can be sized."),
    React.createElement("div", { className: classes.vStack },
        React.createElement(MenuButtonVariants, { size: "smallest" }),
        React.createElement(MenuButtonVariants, { size: "smaller" }),
        React.createElement(MenuButtonVariants, { size: "small" }),
        React.createElement(MenuButtonVariants, { size: "large" }),
        React.createElement(MenuButtonVariants, { size: "larger" }),
        React.createElement(MenuButtonVariants, { size: "largest" })))); };
//# sourceMappingURL=MenuButton.stories.js.map