define(["require", "exports", "tslib", "react", "office-ui-fabric-react/lib/Utilities", "office-ui-fabric-react/lib/Styling", "office-ui-fabric-react/lib/FocusZone", "@uifabric/experiments/lib/CollapsibleSection"], function (require, exports, tslib_1, React, Utilities_1, Styling_1, FocusZone_1, CollapsibleSection_1) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var getPropStyles = function (props, theme) { return ({
        root: [
            {
                background: theme.semanticColors.inputBackground,
            },
        ],
        body: [
            theme.fonts.small,
            {
                background: theme.semanticColors.disabledBackground,
            },
        ],
    }); };
    var getCustomizerStyles = function (props, theme) { return ({
        body: [
            {
                color: theme.semanticColors.link,
            },
        ],
    }); };
    var getPropTitleStyles = function (props, theme) { return ({
        text: [theme.fonts.large],
    }); };
    var getCustomizerTitleStyles = function (props, theme) { return ({
        chevron: { color: theme.semanticColors.link },
        text: { color: theme.semanticColors.link },
    }); };
    var csCustomizerTheme = Styling_1.createTheme({
        semanticColors: {
            disabledBackground: Styling_1.DefaultPalette.themeLight,
            inputBackground: Styling_1.DefaultPalette.themeLighter,
        },
    });
    var csPropTheme = Styling_1.createTheme({
        semanticColors: {
            disabledBackground: Styling_1.DefaultPalette.themeDarker,
            inputBackground: Styling_1.DefaultPalette.themeDark,
        },
    });
    var CollapsibleSectionStyledExample = /** @class */ (function (_super) {
        tslib_1.__extends(CollapsibleSectionStyledExample, _super);
        function CollapsibleSectionStyledExample() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        CollapsibleSectionStyledExample.prototype.render = function () {
            return (React.createElement("div", null,
                React.createElement("p", null, "This is a demonstration of the various levels of theming and styling that have effect on created components, with and without state. Themes and styles should have priority based on how locally they are defined: individual props as highest priority followed by contextual (Customizer) and finally global."),
                React.createElement("p", null, "If everything is working correctly color gradients should gradually get darker within each type of component with any variant having Theme prop looking identical."),
                React.createElement("p", null,
                    React.createElement("b", null, "Stateful Components")),
                React.createElement(FocusZone_1.FocusZone, null,
                    React.createElement(CollapsibleSection_1.CollapsibleSection, { key: 1, defaultCollapsed: false, title: "No Styling" }, "Body"),
                    React.createElement("br", null),
                    React.createElement(CollapsibleSection_1.CollapsibleSection, { key: 2, defaultCollapsed: false, title: {
                            text: 'Prop Styles',
                            styles: getPropTitleStyles,
                        }, styles: getPropStyles }, "Body"),
                    React.createElement("br", null),
                    React.createElement(Utilities_1.Customizer, { scopedSettings: {
                            CollapsibleSection: { styles: getCustomizerStyles },
                            CollapsibleSectionTitle: { styles: getCustomizerTitleStyles },
                        } },
                        React.createElement(CollapsibleSection_1.CollapsibleSection, { key: 3, defaultCollapsed: false, title: {
                                text: 'Prop Styles + Customizer Styles',
                                styles: getPropTitleStyles,
                            }, styles: getPropStyles }, "Body")),
                    React.createElement("br", null),
                    React.createElement(Utilities_1.Customizer, { settings: { theme: csCustomizerTheme } },
                        React.createElement(CollapsibleSection_1.CollapsibleSection, { key: 4, defaultCollapsed: false, title: {
                                text: 'Prop Styles + Customizer Theme',
                                styles: getPropTitleStyles,
                            }, styles: getPropStyles }, "Body")),
                    React.createElement("br", null),
                    React.createElement(CollapsibleSection_1.CollapsibleSection, { key: 5, defaultCollapsed: false, title: {
                            text: 'Prop Styles + Prop Theme',
                            styles: getPropTitleStyles,
                        }, styles: getPropStyles, theme: csPropTheme }, "Body"),
                    React.createElement("br", null),
                    React.createElement(Utilities_1.Customizer, { settings: { theme: csCustomizerTheme } },
                        React.createElement(CollapsibleSection_1.CollapsibleSection, { key: 6, defaultCollapsed: false, title: {
                                text: 'Prop Styles + Customizer Theme + Prop Theme',
                                styles: getPropTitleStyles,
                            }, styles: getPropStyles, theme: csPropTheme }, "Body")),
                    React.createElement("p", null,
                        React.createElement("b", null, "Stateless Components")),
                    React.createElement(CollapsibleSection_1.CollapsibleSectionStateless, { key: 7, collapsed: false, title: "No Styling" }, "Body"),
                    React.createElement("br", null),
                    React.createElement(CollapsibleSection_1.CollapsibleSectionStateless, { key: 8, collapsed: false, title: {
                            text: 'Prop Styles',
                            styles: getPropTitleStyles,
                        }, styles: getPropStyles }, "Body"),
                    React.createElement("br", null),
                    React.createElement(Utilities_1.Customizer, { scopedSettings: {
                            CollapsibleSection: { styles: getCustomizerStyles },
                            CollapsibleSectionTitle: { styles: getCustomizerTitleStyles },
                        } },
                        React.createElement(CollapsibleSection_1.CollapsibleSectionStateless, { key: 9, collapsed: false, title: {
                                text: 'Prop Styles + Customizer Styles',
                                styles: getPropTitleStyles,
                            }, styles: getPropStyles }, "Body")),
                    React.createElement("br", null),
                    React.createElement(Utilities_1.Customizer, { settings: { theme: csCustomizerTheme } },
                        React.createElement(CollapsibleSection_1.CollapsibleSectionStateless, { key: 10, collapsed: false, title: {
                                text: 'Prop Styles + Customizer Theme',
                                styles: getPropTitleStyles,
                            }, styles: getPropStyles }, "Body")),
                    React.createElement("br", null),
                    React.createElement(CollapsibleSection_1.CollapsibleSectionStateless, { key: 11, collapsed: false, title: {
                            text: 'Prop Styles + Prop Theme',
                            styles: getPropTitleStyles,
                        }, styles: getPropStyles, theme: csPropTheme }, "Body"),
                    React.createElement("br", null),
                    React.createElement(Utilities_1.Customizer, { settings: { theme: csCustomizerTheme } },
                        React.createElement(CollapsibleSection_1.CollapsibleSectionStateless, { key: 12, collapsed: false, title: {
                                text: 'Prop Styles + Customizer Theme + Prop Theme',
                                styles: getPropTitleStyles,
                            }, styles: getPropStyles, theme: csPropTheme }, "Body")))));
        };
        return CollapsibleSectionStyledExample;
    }(React.Component));
    exports.CollapsibleSectionStyledExample = CollapsibleSectionStyledExample;
});
//# sourceMappingURL=CollapsibleSection.Styled.Example.js.map