define(["require", "exports", "tslib", "react", "@uifabric/example-app-base", "./examples/ContextualMenu.Basic.Example", "./examples/ContextualMenu.Icon.Example", "./examples/ContextualMenu.Section.Example", "./examples/ContextualMenu.Submenu.Example", "./examples/ContextualMenu.Checkmarks.Example", "./examples/ContextualMenu.Directional.Example", "./examples/ContextualMenu.Customization.Example", "../../demo/ComponentStatus/ComponentStatus", "./ContextualMenu.checklist"], function (require, exports, tslib_1, React, example_app_base_1, ContextualMenu_Basic_Example_1, ContextualMenu_Icon_Example_1, ContextualMenu_Section_Example_1, ContextualMenu_Submenu_Example_1, ContextualMenu_Checkmarks_Example_1, ContextualMenu_Directional_Example_1, ContextualMenu_Customization_Example_1, ComponentStatus_1, ContextualMenu_checklist_1) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var ContextualMenuBasicExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/ContextualMenu/examples/ContextualMenu.Basic.Example.tsx');
    var ContextualMenuIconExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/ContextualMenu/examples/ContextualMenu.Icon.Example.tsx');
    var ContextualMenuSectionExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/ContextualMenu/examples/ContextualMenu.Section.Example.tsx');
    var ContextualMenuSubmenuExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/ContextualMenu/examples/ContextualMenu.Submenu.Example.tsx');
    var ContextualMenuCheckmarksExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/ContextualMenu/examples/ContextualMenu.Checkmarks.Example.tsx');
    var ContextualMenuDirectionalExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/ContextualMenu/examples/ContextualMenu.Directional.Example.tsx');
    var ContextualMenuCustomizationExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/ContextualMenu/examples/ContextualMenu.Customization.Example.tsx');
    var ContextualMenuPage = (function (_super) {
        tslib_1.__extends(ContextualMenuPage, _super);
        function ContextualMenuPage() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        ContextualMenuPage.prototype.render = function () {
            return (React.createElement(example_app_base_1.ComponentPage, { title: 'ContextualMenu', componentName: 'ContextualMenuExample', exampleCards: React.createElement("div", null,
                    React.createElement(example_app_base_1.ExampleCard, { title: 'Default ContextualMenu', code: ContextualMenuBasicExampleCode },
                        React.createElement(ContextualMenu_Basic_Example_1.ContextualMenuBasicExample, null)),
                    React.createElement(example_app_base_1.ExampleCard, { title: 'ContextualMenu with icons', code: ContextualMenuIconExampleCode },
                        React.createElement(ContextualMenu_Icon_Example_1.ContextualMenuIconExample, null)),
                    React.createElement(example_app_base_1.ExampleCard, { title: 'ContextualMenu with submenus', code: ContextualMenuSubmenuExampleCode },
                        React.createElement(ContextualMenu_Submenu_Example_1.ContextualMenuSubmenuExample, null)),
                    React.createElement(example_app_base_1.ExampleCard, { title: 'ContextualMenu with section headers', code: ContextualMenuSectionExampleCode },
                        React.createElement(ContextualMenu_Section_Example_1.ContextualMenuSectionExample, null)),
                    React.createElement(example_app_base_1.ExampleCard, { title: 'ContextualMenu with checkable menu items', code: ContextualMenuCheckmarksExampleCode },
                        React.createElement(ContextualMenu_Checkmarks_Example_1.ContextualMenuCheckmarksExample, null)),
                    React.createElement(example_app_base_1.ExampleCard, { title: 'ContextualMenu with beak and directional settings', code: ContextualMenuDirectionalExampleCode },
                        React.createElement(ContextualMenu_Directional_Example_1.ContextualMenuDirectionalExample, null)),
                    React.createElement(example_app_base_1.ExampleCard, { title: 'ContextualMenu with customized submenus', code: ContextualMenuCustomizationExampleCode },
                        React.createElement(ContextualMenu_Customization_Example_1.ContextualMenuCustomizationExample, null))), propertiesTables: React.createElement(example_app_base_1.PropertiesTableSet, { sources: [
                        require('!raw-loader!office-ui-fabric-react/src/components/ContextualMenu/ContextualMenu.Props.ts'),
                        require('!raw-loader!office-ui-fabric-react/src/components/Callout/Callout.Props.ts'),
                    ] }), overview: React.createElement("div", null,
                    React.createElement("p", null, "ContextualMenus are lists of commands that are based on the context of selection, mouse hover or keyboard focus. They are one of the most effective and highly used command surfaces, and can be used in a variety of places."),
                    React.createElement("p", null, "There are variants that originate from a command bar, or from cursor or focus. Those that come from CommandBars use a beak that is horizontally centered on the button. Ones that come from right click and menu button do not have a beak, but appear to the right and below the cursor. ContextualMenus can have submenus from commands, show selection checks, and icons."),
                    React.createElement("p", null, "Organize commands in groups divided by rules. This helps users remember command locations, or find less used commands based on proximity to others. One should also group sets of mutually exclusive or multiple selectable options. Use icons sparingly, for high value commands, and don\u2019t mix icons with selection checks, as it makes parsing commands difficult. Avoid submenus of submenus as they can be difficult to invoke or remember.")), bestPractices: React.createElement("div", null), dos: React.createElement("div", null,
                    React.createElement("ul", null,
                        React.createElement("li", null, "Use to display commands."),
                        React.createElement("li", null, "Divide groups of commands with rules."),
                        React.createElement("li", null, "Use selection checks without icons."),
                        React.createElement("li", null, "Provide submenus for sets of related commands that aren\u2019t as critical as others."))), donts: React.createElement("div", null,
                    React.createElement("ul", null,
                        React.createElement("li", null, "Use them to display content."),
                        React.createElement("li", null, "Show commands as one large group."),
                        React.createElement("li", null, "Mix checks and icons."),
                        React.createElement("li", null, "Create submenus of submenus."))), isHeaderVisible: this.props.isHeaderVisible, componentStatus: React.createElement(ComponentStatus_1.ComponentStatus, tslib_1.__assign({}, ContextualMenu_checklist_1.ContextualMenuStatus)) }));
        };
        return ContextualMenuPage;
    }(React.Component));
    exports.ContextualMenuPage = ContextualMenuPage;
});
//# sourceMappingURL=ContextualMenuPage.js.map