"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = require("react");
var experiments_1 = require("@uifabric/experiments");
var office_ui_fabric_react_1 = require("office-ui-fabric-react");
/* eslint-disable deprecation/deprecation */
var testTheme = office_ui_fabric_react_1.createTheme({
    semanticColors: {
        buttonText: '#E20000',
    },
    fonts: {
        medium: {
            color: 'purple',
        },
    },
});
var tokens = {
    sectionStack: {
        childrenGap: 32,
    },
    headingStack: {
        childrenGap: 16,
        padding: 8,
    },
    buttonStack: {
        childrenGap: 12,
    },
};
var menuProps = {
    items: [
        {
            key: 'a',
            name: 'Item a',
        },
        {
            key: 'b',
            name: 'Item b',
        },
    ],
};
var ButtonStack = function (props) { return (React.createElement(office_ui_fabric_react_1.Stack, { horizontal: true, disableShrink: true, tokens: tokens.buttonStack }, props.children)); };
/* eslint-disable react/jsx-no-bind */
var ButtonStylesExample = /** @class */ (function (_super) {
    tslib_1.__extends(ButtonStylesExample, _super);
    function ButtonStylesExample() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    ButtonStylesExample.prototype.render = function () {
        var testClassName = office_ui_fabric_react_1.mergeStyles({ color: 'blue' });
        return (React.createElement(office_ui_fabric_react_1.Stack, { tokens: tokens.sectionStack },
            React.createElement(office_ui_fabric_react_1.Stack, { tokens: tokens.headingStack },
                React.createElement("div", null,
                    React.createElement(office_ui_fabric_react_1.Stack, { tokens: tokens.buttonStack },
                        React.createElement(ButtonStack, null,
                            React.createElement(experiments_1.Button, { icon: "PeopleAdd", content: "Button Theme: Red Icon and Text", theme: testTheme }),
                            React.createElement(experiments_1.Button, { icon: "PeopleAdd", content: { children: 'Slot Theme: Purple Text', theme: testTheme } })),
                        React.createElement(ButtonStack, null,
                            React.createElement(experiments_1.Button, { icon: "PeopleAdd", content: "Button Styles Object: Red Text (root)", styles: { root: { color: '#E20000' } } }),
                            React.createElement(experiments_1.Button, { icon: "PeopleAdd", content: "Button Styles Object: Red Text (content)", styles: { content: { color: '#E20000' } } })),
                        React.createElement(ButtonStack, null,
                            React.createElement(experiments_1.Button, { icon: "PeopleAdd", content: "Button Styles Object: Pink Icon", styles: { icon: { color: 'pink ' } } }),
                            React.createElement(experiments_1.Button, { icon: { iconName: 'PeopleAdd', style: { color: 'pink ' } }, content: "Icon Style Object: Pink Icon" })),
                        React.createElement(ButtonStack, null,
                            React.createElement(experiments_1.Button, { icon: "PeopleAdd", content: "Button Styles Function: Golden Brown Content", styles: function (props, theme) { return ({ content: { color: '#8F6800' } }); } })),
                        React.createElement(ButtonStack, null,
                            React.createElement(experiments_1.Button, { icon: "PeopleAdd", content: "Button Styles Function: Purple Icon via Button Theme", styles: function (props, theme) { return ({ icon: { color: theme.fonts.medium.color } }); }, theme: testTheme })),
                        React.createElement(ButtonStack, null,
                            React.createElement(experiments_1.Button, { icon: "PeopleAdd", content: {
                                    children: 'Content Styles Function: Golden Brown Text',
                                    styles: function (props, theme) { return ({ root: { color: '#8F6800' } }); },
                                } })),
                        React.createElement(ButtonStack, null,
                            React.createElement(experiments_1.Button, { icon: "PeopleAdd", content: {
                                    children: 'Content Styles Function: Red Text via Content Theme',
                                    styles: function (props, theme) { return ({ root: { color: theme.semanticColors.buttonText } }); },
                                    theme: testTheme,
                                } })),
                        React.createElement(ButtonStack, null,
                            React.createElement(experiments_1.Button, { content: "Button Classname", className: "button-classname" }),
                            React.createElement(experiments_1.Button, { content: "Icon Classname", icon: {
                                    iconName: 'PeopleAdd',
                                    className: 'icon-classname',
                                } }),
                            React.createElement(experiments_1.Button, { content: {
                                    children: 'Content Classname',
                                    className: 'content-classname',
                                } }),
                            React.createElement(experiments_1.MenuButton, { content: "All Classnames", icon: "PeopleAdd", menu: menuProps, styles: {
                                    root: 'root-classname',
                                    content: 'content-classname',
                                    icon: 'icon-classname',
                                    menu: 'menu-classname',
                                    menuIcon: 'menuIcon-classname',
                                } })),
                        React.createElement(ButtonStack, null,
                            React.createElement(experiments_1.Button, { content: "Icon ClassName Overrides Button Styles: Blue Icon", styles: {
                                    icon: {
                                        color: '#E20000',
                                    },
                                }, icon: {
                                    iconName: 'PeopleAdd',
                                    className: testClassName,
                                } })),
                        React.createElement(ButtonStack, null,
                            React.createElement(experiments_1.Button, { icon: "PeopleAdd", content: {
                                    children: 'Text ClassName: Blue Text',
                                    className: testClassName,
                                } }),
                            React.createElement(experiments_1.Button, { icon: "PeopleAdd", content: {
                                    children: 'Text Styles Overrides ClassName: Red Text',
                                    styles: { root: { color: '#E20000' } },
                                    className: testClassName,
                                } })),
                        React.createElement(ButtonStack, null,
                            React.createElement(experiments_1.Button, { content: "Icon ClassName: Blue Icon", icon: {
                                    iconName: 'PeopleAdd',
                                    className: testClassName,
                                } }),
                            React.createElement(experiments_1.Button, { content: "Icon Style Overrides ClassName: Red Icon", icon: {
                                    iconName: 'PeopleAdd',
                                    style: { color: '#E20000' },
                                    className: testClassName,
                                } })))))));
    };
    return ButtonStylesExample;
}(React.Component));
exports.ButtonStylesExample = ButtonStylesExample;
//# sourceMappingURL=Button.Styles.Example.js.map