import { __assign } from "tslib";
import * as React from 'react';
import { SplitButton } 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 SplitButtonVariants = function (props) { return (React.createElement("div", { className: classes.hStack },
    React.createElement(SplitButton, __assign({}, props, { menu: menuProps }), "Hello, world"),
    React.createElement(SplitButton, __assign({}, props, { primary: true, menu: menuProps }), "Hello, world"),
    React.createElement(SplitButton, __assign({}, props, { disabled: true, menu: menuProps }), "Hello, world"),
    React.createElement(SplitButton, __assign({}, props, { primary: true, disabled: true, menu: menuProps }), "Hello, world"),
    React.createElement(SplitButton, __assign({}, props, { ghost: true, menu: menuProps }), "Hello, world"),
    React.createElement(SplitButton, __assign({}, props, { ghost: true, disabled: true, menu: menuProps }), "Hello, world"))); };
export var SplitButtonCss = function () { return (React.createElement(Stack, { gap: 20 },
    React.createElement(Text, { variant: "xLarge" }, "A split button comes in default and `primary` variant."),
    React.createElement(SplitButtonVariants, null),
    React.createElement(Text, { variant: "xLarge" }, "A split button can appear round using the `circular` prop."),
    React.createElement(SplitButtonVariants, { circular: true }),
    React.createElement(Text, { variant: "xLarge" }, "A split button can fill the width of its container using the `fluid` prop."),
    React.createElement("div", { className: classes.vStack },
        React.createElement(SplitButton, { fluid: true, menu: menuProps }, "Hello, world"),
        React.createElement(SplitButton, { fluid: true, primary: true, menu: menuProps }, "Hello, world"),
        React.createElement(SplitButton, { fluid: true, disabled: true, menu: menuProps }, "Hello, world"),
        React.createElement(SplitButton, { fluid: true, primary: true, disabled: true, menu: menuProps }, "Hello, world"),
        React.createElement(SplitButton, { fluid: true, ghost: true, menu: menuProps }, "Hello, world"),
        React.createElement(SplitButton, { fluid: true, ghost: true, disabled: true, menu: menuProps }, "Hello, world")),
    React.createElement(Text, { variant: "xLarge" }, "A split button can contain only an icon using the `iconOnly` prop."),
    React.createElement(SplitButtonVariants, { iconOnly: true, icon: "X" }),
    React.createElement(Text, { variant: "xLarge" }, "A split button can be both `circular` and `iconOnly`."),
    React.createElement(SplitButtonVariants, { circular: true, iconOnly: true, icon: "X" }),
    React.createElement(Text, { variant: "xLarge" }, "A split button can show a loading indicator using the `loading` prop."),
    React.createElement(SplitButtonVariants, { loading: true }),
    React.createElement(Text, { variant: "xLarge" }, "A split button can be sized."),
    React.createElement("div", { className: classes.vStack },
        React.createElement(SplitButtonVariants, { size: "smallest" }),
        React.createElement(SplitButtonVariants, { size: "smaller" }),
        React.createElement(SplitButtonVariants, { size: "small" }),
        React.createElement(SplitButtonVariants, { size: "large" }),
        React.createElement(SplitButtonVariants, { size: "larger" }),
        React.createElement(SplitButtonVariants, { size: "largest" })))); };
//# sourceMappingURL=SplitButton.stories.js.map