import { __assign } from "tslib";
import * as React from 'react';
import { ToggleButton } from '@fluentui/react-button';
import { Stack, Text } from 'office-ui-fabric-react';
import * as classes from '../utils/Button.stories.scss';
var ToggleButtonVariants = function (props) { return (React.createElement("div", { className: classes.hStack },
    React.createElement(ToggleButton, __assign({}, props, { icon: "X" }), "Hello, world"),
    React.createElement(ToggleButton, __assign({}, props, { primary: true, icon: "X" }), "Hello, world"),
    React.createElement(ToggleButton, __assign({}, props, { disabled: true, icon: "X" }), "Hello, world"),
    React.createElement(ToggleButton, __assign({}, props, { primary: true, disabled: true, icon: "X" }), "Hello, world"),
    React.createElement(ToggleButton, __assign({}, props, { ghost: true, icon: "X" }), "Hello, world"),
    React.createElement(ToggleButton, __assign({}, props, { ghost: true, disabled: true, icon: "X" }), "Hello, world"))); };
export var ToggleButtonCss = function () { return (React.createElement(Stack, { gap: 20 },
    React.createElement(Text, { variant: "xLarge" }, "A button comes in default and `primary` flavors."),
    React.createElement(ToggleButtonVariants, null),
    React.createElement(Text, { variant: "xLarge" }, "A button can appear round using the `circular` prop."),
    React.createElement(ToggleButtonVariants, { 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(ToggleButton, { fluid: true, icon: "X" }, "Hello, world"),
        React.createElement(ToggleButton, { fluid: true, primary: true, icon: "X" }, "Hello, world"),
        React.createElement(ToggleButton, { fluid: true, disabled: true, icon: "X" }, "Hello, world"),
        React.createElement(ToggleButton, { fluid: true, primary: true, disabled: true, icon: "X" }, "Hello, world"),
        React.createElement(ToggleButton, { fluid: true, ghost: true, icon: "X" }, "Hello, world"),
        React.createElement(ToggleButton, { fluid: true, ghost: true, disabled: true, icon: "X" }, "Hello, world")),
    React.createElement(Text, { variant: "xLarge" }, "A button can contain only an icon using the `iconOnly` prop."),
    React.createElement(ToggleButtonVariants, { iconOnly: true }),
    React.createElement(Text, null, "A button can be both `circular` and `iconOnly`."),
    React.createElement(ToggleButtonVariants, { circular: true, iconOnly: true }),
    React.createElement(Text, { variant: "xLarge" }, "An icon button can format its Icon to appear before or after its content."),
    React.createElement("div", { className: classes.vStack },
        React.createElement(ToggleButtonVariants, { iconPosition: "before" }),
        React.createElement(ToggleButtonVariants, { iconPosition: "after" })),
    React.createElement(Text, { variant: "xLarge" }, "A button can show a loading indicator using the `loading` prop."),
    React.createElement(ToggleButtonVariants, { loading: true }),
    React.createElement(Text, { variant: "xLarge" }, "A button can be sized."),
    React.createElement("div", { className: classes.vStack },
        React.createElement(ToggleButtonVariants, { size: "smallest" }),
        React.createElement(ToggleButtonVariants, { size: "smaller" }),
        React.createElement(ToggleButtonVariants, { size: "small" }),
        React.createElement(ToggleButtonVariants, { size: "large" }),
        React.createElement(ToggleButtonVariants, { size: "larger" }),
        React.createElement(ToggleButtonVariants, { size: "largest" })))); };
//# sourceMappingURL=ToggleButton.stories.js.map