import { __extends } from "tslib";
import * as React from 'react';
import { MenuButton } from '@uifabric/experiments';
import { Stack, Text } from 'office-ui-fabric-react';
var menuProps = {
    items: [
        {
            key: 'a',
            name: 'Item a',
        },
        {
            key: 'b',
            name: 'Item b',
        },
    ],
};
var tokens = {
    sectionStack: {
        childrenGap: 32,
    },
    headingStack: {
        childrenGap: 16,
        padding: 8,
    },
    buttonStack: {
        childrenGap: 12,
    },
    multilineButtonStack: {
        padding: '8px 0px',
    },
};
var ButtonStack = function (props) { return (React.createElement(Stack, { horizontal: true, disableShrink: true, tokens: tokens.buttonStack }, props.children)); };
var MenuButtonExample = /** @class */ (function (_super) {
    __extends(MenuButtonExample, _super);
    function MenuButtonExample() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    MenuButtonExample.prototype.render = function () {
        return (React.createElement(Stack, { tokens: tokens.sectionStack },
            React.createElement(Stack, { tokens: tokens.headingStack },
                React.createElement("div", null,
                    React.createElement(Stack, { tokens: tokens.buttonStack },
                        React.createElement(ButtonStack, null,
                            React.createElement(MenuButton, { content: "Menu button", menu: menuProps }),
                            React.createElement(MenuButton, { primary: true, content: "Menu primary button", menu: menuProps }),
                            React.createElement(MenuButton, { disabled: true, content: "Menu disabled button", menu: menuProps })),
                        React.createElement(ButtonStack, null,
                            React.createElement(MenuButton, { icon: "Share", menu: menuProps },
                                React.createElement(Stack, { as: "span", horizontalAlign: "start", tokens: tokens.multilineButtonStack },
                                    React.createElement(Text, null, "I am a compound multiline button."),
                                    React.createElement(Text, { variant: "small" }, "I can have a caption.")))))))));
    };
    return MenuButtonExample;
}(React.Component));
export { MenuButtonExample };
//# sourceMappingURL=MenuButton.Example.js.map