"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ButtonSplitExample = void 0;
var React = require("react");
var react_1 = require("@fluentui/react"); // IStackTokens
var Button_1 = require("@fluentui/react/lib-commonjs/Button");
var menuProps = {
    items: [
        {
            key: 'emailMessage',
            text: 'Email message',
            iconProps: { iconName: 'Mail' },
        },
        {
            key: 'calendarEvent',
            text: 'Calendar event',
            iconProps: { iconName: 'Calendar' },
        },
    ],
};
// Example formatting
// const stackTokens: IStackTokens = { childrenGap: 40 };
var ButtonSplitExample = function (props) {
    var disabled = props.disabled, checked = props.checked;
    return (React.createElement(react_1.Stack, { tokens: { childrenGap: 8 }, horizontalAlign: "center" },
        React.createElement(Button_1.DefaultButton, { text: "Standard split", split: true, splitButtonAriaLabel: "See 2 options", "aria-roledescription": "split button", menuProps: menuProps, onClick: _alertClicked, disabled: disabled, checked: false }),
        React.createElement(Button_1.DefaultButton, { text: "Standard checked split", split: true, splitButtonAriaLabel: "See 2 options", "aria-roledescription": "split button", menuProps: menuProps, onClick: _alertClicked, disabled: disabled, checked: true }),
        React.createElement(Button_1.DefaultButton, { text: "Primary checked split", primary: true, split: true, splitButtonAriaLabel: "See 2 options", "aria-roledescription": "split button", menuProps: menuProps, onClick: _alertClicked, disabled: disabled, checked: true }),
        React.createElement(Button_1.DefaultButton, { text: "Primary split", primary: true, split: true, splitButtonAriaLabel: "See 2 options", "aria-roledescription": "split button", menuProps: menuProps, onClick: _alertClicked, disabled: disabled, checked: false }),
        React.createElement(Button_1.DefaultButton, { text: "(default) Main action disabled split", primaryDisabled: true, split: true, splitButtonAriaLabel: "See 2 options", "aria-roledescription": "split button", menuProps: menuProps, onClick: _alertClicked, disabled: disabled, checked: checked }),
        React.createElement(Button_1.DefaultButton, { text: "(primary) Main action disabled split", primaryDisabled: true, split: true, primary: true, splitButtonAriaLabel: "See 2 options", "aria-roledescription": "split button", menuProps: menuProps, onClick: _alertClicked, disabled: disabled, checked: checked }),
        React.createElement(Button_1.DefaultButton, { text: "Disabled split", disabled: true, allowDisabledFocus: true, split: true, splitButtonAriaLabel: "See 2 options", "aria-roledescription": "split button", menuProps: menuProps, onClick: _alertClicked, checked: checked })));
};
exports.ButtonSplitExample = ButtonSplitExample;
function _alertClicked() {
    alert('Clicked');
}
//# sourceMappingURL=splitButton.stories.js.map