"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ContextualMenuTest = void 0;
var tslib_1 = require("tslib");
/* eslint-disable @typescript-eslint/no-var-requires */
var React = tslib_1.__importStar(require("react"));
var react_native_1 = require("react-native");
var react_native_2 = require("@fluentui/react-native");
var E2EContextualMenuTest_1 = require("./E2EContextualMenuTest");
var consts_1 = require("../../../../E2E/src/ContextualMenu/consts");
var iconExamples_1 = require("../Common/iconExamples");
var Test_1 = require("../Test");
var ContextualMenuMainTest = function () {
    var stdBtnRef = React.useRef(null);
    var _a = React.useState(false), showContextualMenu = _a[0], setShowContextualMenu = _a[1];
    var _b = React.useState(false), isContextualMenuVisible = _b[0], setIsContextualMenuVisible = _b[1];
    var _c = React.useState(null), lastMenuItemClicked = _c[0], setLastMenuItemClicked = _c[1];
    var _d = React.useState(false), isBeakVisible = _d[0], setIsBeakVisible = _d[1];
    var onIsBeakVisibleChange = React.useCallback(function (value) { return setIsBeakVisible(value); }, []);
    var _e = React.useState(true), focusOnMount = _e[0], setShouldFocusOnMount = _e[1];
    var toggleFocusOnMount = React.useCallback(function (value) { return setShouldFocusOnMount(value); }, [setShouldFocusOnMount]);
    var _f = React.useState(false), focusOnContainer = _f[0], setShouldFocusOnContainer = _f[1];
    var toggleFocusOnContainer = React.useCallback(function (value) { return setShouldFocusOnContainer(value); }, [setShouldFocusOnContainer]);
    var toggleShowContextualMenu = React.useCallback(function () {
        setShowContextualMenu(!showContextualMenu);
        setIsContextualMenuVisible(false);
    }, [showContextualMenu, setShowContextualMenu, setIsContextualMenuVisible]);
    var onShowContextualMenu = React.useCallback(function () {
        setIsContextualMenuVisible(true);
    }, [setIsContextualMenuVisible]);
    var onDismissContextualMenu = React.useCallback(function () {
        setShowContextualMenu(false);
        setIsContextualMenuVisible(false);
    }, [setShowContextualMenu]);
    var onItemClick = React.useCallback(function (key) {
        setLastMenuItemClicked(key);
    }, [setLastMenuItemClicked]);
    return (React.createElement(react_native_1.View, null,
        React.createElement(react_native_1.View, { style: { flexDirection: 'row', paddingVertical: 5 } },
            React.createElement(react_native_1.View, { style: { flexDirection: 'column', paddingHorizontal: 5 } },
                React.createElement(react_native_1.View, { style: { flexDirection: 'row' } },
                    React.createElement(react_native_1.Text, null, "Should Focus on Mount"),
                    React.createElement(react_native_1.Switch, { value: focusOnMount, onValueChange: toggleFocusOnMount })),
                React.createElement(react_native_1.View, { style: { flexDirection: 'row' } },
                    React.createElement(react_native_1.Text, null, "Should Focus on Container"),
                    React.createElement(react_native_1.Switch, { value: focusOnContainer, onValueChange: toggleFocusOnContainer })),
                React.createElement(react_native_1.View, { style: { flexDirection: 'row' } },
                    React.createElement(react_native_1.Text, null, "Beak Visible"),
                    React.createElement(react_native_1.Switch, { value: isBeakVisible, onValueChange: onIsBeakVisibleChange }))),
            React.createElement(react_native_2.Separator, { vertical: true }),
            React.createElement(react_native_1.View, { style: { flexDirection: 'column', paddingHorizontal: 5 } },
                React.createElement(react_native_1.Text, null,
                    React.createElement(react_native_1.Text, null, "Menu Visibility: "),
                    isContextualMenuVisible ? React.createElement(react_native_1.Text, { style: { color: 'green' } }, "Visible") : React.createElement(react_native_1.Text, { style: { color: 'red' } }, "Not Visible")),
                React.createElement(react_native_1.Text, null,
                    React.createElement(react_native_1.Text, null, "Last Menu Item Clicked: "),
                    lastMenuItemClicked > 0 ? (React.createElement(react_native_1.Text, { style: { color: 'blue' } }, lastMenuItemClicked)) : (React.createElement(react_native_1.Text, { style: { color: 'blue' } }, "none"))),
                React.createElement(react_native_2.ButtonV1, { onClick: toggleShowContextualMenu, componentRef: stdBtnRef }, "Press for ContextualMenu"))),
        showContextualMenu && (React.createElement(react_native_2.ContextualMenu, { target: stdBtnRef, onDismiss: onDismissContextualMenu, onShow: onShowContextualMenu, accessibilityLabel: "Standard ContextualMenu", onItemClick: onItemClick, setShowMenu: toggleShowContextualMenu, shouldFocusOnMount: focusOnMount, shouldFocusOnContainer: focusOnContainer, isBeakVisible: isBeakVisible },
            React.createElement(react_native_2.ContextualMenuItem, { text: "MenuItem 1", itemKey: "1" }),
            React.createElement(react_native_2.ContextualMenuItem, { text: "MenuItem 2", itemKey: "2" }),
            React.createElement(react_native_2.ContextualMenuItem, { text: "Disabled Menu Item", itemKey: "3", disabled: true }),
            React.createElement(react_native_2.ContextualMenuItem, { text: "MenuItem 4", itemKey: "4" }),
            React.createElement(react_native_2.ContextualMenuItem, { text: "MenuItem 5", itemKey: "5" })))));
};
var NestedContextualMenu = function () {
    var stdBtnRef = React.useRef(null);
    var _a = React.useState(false), showContextualMenu = _a[0], setShowContextualMenu = _a[1];
    var _b = React.useState(false), isContextualMenuVisible = _b[0], setIsContextualMenuVisible = _b[1];
    var _c = React.useState(true), focusOnMount = _c[0], setShouldFocusOnMount = _c[1];
    var toggleFocusOnMount = React.useCallback(function (value) { return setShouldFocusOnMount(value); }, [setShouldFocusOnMount]);
    var _d = React.useState(false), focusOnContainer = _d[0], setShouldFocusOnContainer = _d[1];
    var toggleFocusOnContainer = React.useCallback(function (value) { return setShouldFocusOnContainer(value); }, [setShouldFocusOnContainer]);
    var toggleShowContextualMenu = React.useCallback(function () {
        setShowContextualMenu(!showContextualMenu);
        setIsContextualMenuVisible(!isContextualMenuVisible);
    }, [showContextualMenu, isContextualMenuVisible, setShowContextualMenu, setIsContextualMenuVisible]);
    var onShowContextualMenu = React.useCallback(function () {
        setIsContextualMenuVisible(true);
    }, [setIsContextualMenuVisible]);
    var onDismissContextualMenu = React.useCallback(function () {
        setShowContextualMenu(false);
        setIsContextualMenuVisible(false);
    }, [setShowContextualMenu]);
    var stdMenuItemRef = React.useRef(null);
    var _e = React.useState(false), showSubmenu = _e[0], setShowSubmenu = _e[1];
    var _f = React.useState(false), isSubmenuVisible = _f[0], setIsSubmenuVisible = _f[1];
    var toggleShowSubmenu = React.useCallback(function () {
        setShowSubmenu(!showSubmenu);
        setIsSubmenuVisible(!isSubmenuVisible);
    }, [showSubmenu, isSubmenuVisible, setShowSubmenu, setIsSubmenuVisible]);
    var onShowSubmenu = React.useCallback(function () {
        setIsSubmenuVisible(true);
    }, [setIsSubmenuVisible]);
    var onDismissSubmenu = React.useCallback(function () {
        setShowSubmenu(false);
    }, [setShowSubmenu]);
    var onClick = React.useCallback(function () {
        console.log('submenu item clicked');
    }, []);
    return (React.createElement(react_native_1.View, null,
        React.createElement(react_native_1.View, { style: { flexDirection: 'row', paddingVertical: 5 } },
            React.createElement(react_native_1.View, { style: { flexDirection: 'column', paddingHorizontal: 5 } },
                React.createElement(react_native_1.View, { style: { flexDirection: 'row' } },
                    React.createElement(react_native_1.Text, null, "Should Focus on Mount"),
                    React.createElement(react_native_1.Switch, { value: focusOnMount, onValueChange: toggleFocusOnMount })),
                React.createElement(react_native_1.View, { style: { flexDirection: 'row' } },
                    React.createElement(react_native_1.Text, null, "Should Focus on Container"),
                    React.createElement(react_native_1.Switch, { value: focusOnContainer, onValueChange: toggleFocusOnContainer }))),
            React.createElement(react_native_2.Separator, { vertical: true }),
            React.createElement(react_native_1.View, { style: { flexDirection: 'column', paddingHorizontal: 5 } },
                React.createElement(react_native_1.Text, null,
                    React.createElement(react_native_1.Text, null, "Menu Visibility: "),
                    isContextualMenuVisible ? React.createElement(react_native_1.Text, { style: { color: 'green' } }, "Visible") : React.createElement(react_native_1.Text, { style: { color: 'red' } }, "Not Visible")),
                React.createElement(react_native_1.Text, null,
                    React.createElement(react_native_1.Text, null, "Submenu Visibility: "),
                    isSubmenuVisible ? React.createElement(react_native_1.Text, { style: { color: 'green' } }, "Visible") : React.createElement(react_native_1.Text, { style: { color: 'red' } }, "Not Visible")),
                React.createElement(react_native_2.ButtonV1, { onClick: toggleShowContextualMenu, componentRef: stdBtnRef }, "Press for ContextualMenu"))),
        showContextualMenu && (React.createElement(react_native_2.ContextualMenu, { target: stdBtnRef, onDismiss: onDismissContextualMenu, onShow: onShowContextualMenu, accessibilityLabel: "Standard ContextualMenu", setShowMenu: toggleShowContextualMenu, shouldFocusOnMount: focusOnMount, shouldFocusOnContainer: focusOnContainer },
            React.createElement(react_native_2.ContextualMenuItem, { icon: iconExamples_1.testImage, text: "Menu item with png Icon", itemKey: "1" }),
            React.createElement(react_native_2.ContextualMenuItem, { icon: { fontSource: iconExamples_1.fontProps, color: 'blue' }, text: "Menu item with font icon", itemKey: "2" }),
            React.createElement(react_native_2.ContextualMenuItem, { text: "Disabled Menu Item", itemKey: "3", disabled: true }),
            React.createElement(react_native_2.SubmenuItem, { icon: { svgSource: iconExamples_1.svgProps, width: 12, height: 12 }, text: "Nested Menu", itemKey: "4", onHoverIn: toggleShowSubmenu, componentRef: stdMenuItemRef }),
            showSubmenu && (React.createElement(react_native_2.Submenu, { target: stdMenuItemRef, onDismiss: onDismissSubmenu, onShow: onShowSubmenu, setShowMenu: toggleShowSubmenu },
                React.createElement(react_native_2.ContextualMenuItem, { icon: { svgSource: iconExamples_1.svgProps, width: 12, height: 12 }, text: "SubmenuItem svg icon", itemKey: "4", onClick: onClick }),
                React.createElement(react_native_2.ContextualMenuItem, { text: "SubmenuItem 2", itemKey: "2" }),
                React.createElement(react_native_2.ContextualMenuItem, { text: "Disabled Menu Item", itemKey: "3", disabled: true }))),
            React.createElement(react_native_2.ContextualMenuItem, { text: "Menuitem 5", itemKey: "5" })))));
};
// custom text
var IndigoHeroBold = react_native_2.Text.customize({ tokens: { variant: 'heroStandard', fontWeight: '100', color: '#4b0082' } });
var IconContextualMenu = function () {
    var stdBtnRef = React.useRef(null);
    var _a = React.useState(false), showContextualMenu = _a[0], setShowContextualMenu = _a[1];
    var _b = React.useState(false), isContextualMenuVisible = _b[0], setIsContextualMenuVisible = _b[1];
    var _c = React.useState(true), focusOnMount = _c[0], setShouldFocusOnMount = _c[1];
    var toggleFocusOnMount = React.useCallback(function (value) { return setShouldFocusOnMount(value); }, [setShouldFocusOnMount]);
    var _d = React.useState(false), focusOnContainer = _d[0], setShouldFocusOnContainer = _d[1];
    var toggleFocusOnContainer = React.useCallback(function (value) { return setShouldFocusOnContainer(value); }, [setShouldFocusOnContainer]);
    var toggleShowContextualMenu = React.useCallback(function () {
        setShowContextualMenu(!showContextualMenu);
        setIsContextualMenuVisible(!isContextualMenuVisible);
    }, [showContextualMenu, isContextualMenuVisible, setShowContextualMenu, setIsContextualMenuVisible]);
    var onShowContextualMenu = React.useCallback(function () {
        setIsContextualMenuVisible(true);
    }, [setIsContextualMenuVisible]);
    var onDismissContextualMenu = React.useCallback(function () {
        setShowContextualMenu(false);
        setIsContextualMenuVisible(false);
    }, [setShowContextualMenu]);
    return (React.createElement(react_native_1.View, null,
        React.createElement(react_native_1.View, { style: { flexDirection: 'row', paddingVertical: 5 } },
            React.createElement(react_native_1.View, { style: { flexDirection: 'column', paddingHorizontal: 5 } },
                React.createElement(react_native_1.View, { style: { flexDirection: 'row' } },
                    React.createElement(react_native_1.Text, null, "Should Focus on Mount"),
                    React.createElement(react_native_1.Switch, { value: focusOnMount, onValueChange: toggleFocusOnMount })),
                React.createElement(react_native_1.View, { style: { flexDirection: 'row' } },
                    React.createElement(react_native_1.Text, null, "Should Focus on Container"),
                    React.createElement(react_native_1.Switch, { value: focusOnContainer, onValueChange: toggleFocusOnContainer }))),
            React.createElement(react_native_2.Separator, { vertical: true }),
            React.createElement(react_native_1.View, { style: { flexDirection: 'column', paddingHorizontal: 5 } },
                React.createElement(react_native_1.Text, null,
                    React.createElement(react_native_1.Text, null, "Menu Visibility: "),
                    isContextualMenuVisible ? React.createElement(react_native_1.Text, { style: { color: 'green' } }, "Visible") : React.createElement(react_native_1.Text, { style: { color: 'red' } }, "Not Visible")),
                React.createElement(react_native_2.ButtonV1, { componentRef: stdBtnRef, style: { borderWidth: 0 }, icon: { svgSource: iconExamples_1.svgProps, width: 12, height: 12 }, onClick: toggleShowContextualMenu }))),
        showContextualMenu && (React.createElement(react_native_2.ContextualMenu, { target: stdBtnRef, onDismiss: onDismissContextualMenu, onShow: onShowContextualMenu, accessibilityLabel: "Standard ContextualMenu", setShowMenu: toggleShowContextualMenu, shouldFocusOnMount: focusOnMount, shouldFocusOnContainer: focusOnContainer },
            React.createElement(react_native_2.ContextualMenuItem, { itemKey: "1" },
                React.createElement(react_native_2.Checkbox, { label: "Unchecked checkbox" })),
            React.createElement(react_native_2.ContextualMenuItem, { itemKey: "2" },
                React.createElement(IndigoHeroBold, null, "IndigoHeroBold text with checkbox")),
            React.createElement(react_native_2.ContextualMenuItem, { text: "Disabled Menu Item", itemKey: "3", disabled: true }),
            React.createElement(react_native_2.ContextualMenuItem, { text: "Menuitem 4", itemKey: "4" })))));
};
var ScrollViewContextualMenu = function () {
    var stdBtnRef = React.useRef(null);
    var _a = React.useState(false), showContextualMenu = _a[0], setShowContextualMenu = _a[1];
    var _b = React.useState(false), isContextualMenuVisible = _b[0], setIsContextualMenuVisible = _b[1];
    var _c = React.useState(null), lastMenuItemClicked = _c[0], setLastMenuItemClicked = _c[1];
    var _d = React.useState(false), isBeakVisible = _d[0], setIsBeakVisible = _d[1];
    var onIsBeakVisibleChange = React.useCallback(function (value) { return setIsBeakVisible(value); }, []);
    var _e = React.useState(true), focusOnMount = _e[0], setShouldFocusOnMount = _e[1];
    var toggleFocusOnMount = React.useCallback(function (value) { return setShouldFocusOnMount(value); }, [setShouldFocusOnMount]);
    var _f = React.useState(false), focusOnContainer = _f[0], setShouldFocusOnContainer = _f[1];
    var toggleFocusOnContainer = React.useCallback(function (value) { return setShouldFocusOnContainer(value); }, [setShouldFocusOnContainer]);
    var toggleShowContextualMenu = React.useCallback(function () {
        setShowContextualMenu(!showContextualMenu);
        setIsContextualMenuVisible(false);
    }, [showContextualMenu, setShowContextualMenu, setIsContextualMenuVisible]);
    var onShowContextualMenu = React.useCallback(function () {
        setIsContextualMenuVisible(true);
    }, [setIsContextualMenuVisible]);
    var onDismissContextualMenu = React.useCallback(function () {
        setShowContextualMenu(false);
        setIsContextualMenuVisible(false);
    }, [setShowContextualMenu]);
    var onItemClick = React.useCallback(function (key) {
        setLastMenuItemClicked(key);
    }, [setLastMenuItemClicked]);
    var stdMenuItemRef = React.useRef(null);
    var _g = React.useState(false), showSubmenu = _g[0], setShowSubmenu = _g[1];
    var _h = React.useState(false), isSubmenuVisible = _h[0], setIsSubmenuVisible = _h[1];
    var toggleShowSubmenu = React.useCallback(function () {
        setShowSubmenu(!showSubmenu);
        setIsSubmenuVisible(!isSubmenuVisible);
    }, [showSubmenu, isSubmenuVisible, setShowSubmenu, setIsSubmenuVisible]);
    var onShowSubmenu = React.useCallback(function () {
        setIsSubmenuVisible(true);
    }, [setIsSubmenuVisible]);
    var onDismissSubmenu = React.useCallback(function () {
        setShowSubmenu(false);
    }, [setShowSubmenu]);
    var onClick = React.useCallback(function () {
        console.log('submenu item clicked');
    }, []);
    return (React.createElement(react_native_1.View, null,
        React.createElement(react_native_1.View, { style: { flexDirection: 'row', paddingVertical: 5 } },
            React.createElement(react_native_1.View, { style: { flexDirection: 'column', paddingHorizontal: 5 } },
                React.createElement(react_native_1.View, { style: { flexDirection: 'row' } },
                    React.createElement(react_native_1.Text, null, "Should Focus on Mount"),
                    React.createElement(react_native_1.Switch, { value: focusOnMount, onValueChange: toggleFocusOnMount })),
                React.createElement(react_native_1.View, { style: { flexDirection: 'row' } },
                    React.createElement(react_native_1.Text, null, "Should Focus on Container"),
                    React.createElement(react_native_1.Switch, { value: focusOnContainer, onValueChange: toggleFocusOnContainer })),
                React.createElement(react_native_1.View, { style: { flexDirection: 'row' } },
                    React.createElement(react_native_1.Text, null, "Beak Visible"),
                    React.createElement(react_native_1.Switch, { value: isBeakVisible, onValueChange: onIsBeakVisibleChange }))),
            React.createElement(react_native_2.Separator, { vertical: true }),
            React.createElement(react_native_1.View, { style: { flexDirection: 'column', paddingHorizontal: 5 } },
                React.createElement(react_native_1.Text, null,
                    React.createElement(react_native_1.Text, null, "Menu Visibility: "),
                    isContextualMenuVisible ? React.createElement(react_native_1.Text, { style: { color: 'green' } }, "Visible") : React.createElement(react_native_1.Text, { style: { color: 'red' } }, "Not Visible")),
                React.createElement(react_native_1.Text, null,
                    React.createElement(react_native_1.Text, null, "Last Menu Item Clicked: "),
                    lastMenuItemClicked > 0 ? (React.createElement(react_native_1.Text, { style: { color: 'blue' } }, lastMenuItemClicked)) : (React.createElement(react_native_1.Text, { style: { color: 'blue' } }, "none"))),
                React.createElement(react_native_1.Text, null,
                    React.createElement(react_native_1.Text, null, "Menu and Submenu max height set to 200")),
                React.createElement(react_native_2.ButtonV1, { onClick: toggleShowContextualMenu, componentRef: stdBtnRef }, "Press for ContextualMenu"))),
        showContextualMenu && (React.createElement(react_native_2.ContextualMenu, { target: stdBtnRef, onDismiss: onDismissContextualMenu, onShow: onShowContextualMenu, accessibilityLabel: "Standard ContextualMenu", onItemClick: onItemClick, setShowMenu: toggleShowContextualMenu, shouldFocusOnMount: focusOnMount, shouldFocusOnContainer: focusOnContainer, isBeakVisible: isBeakVisible, maxHeight: 200 },
            React.createElement(react_native_2.ContextualMenuItem, { text: "MenuItem 1", itemKey: "1" }),
            React.createElement(react_native_2.ContextualMenuItem, { text: "MenuItem 2", itemKey: "2" }),
            React.createElement(react_native_2.SubmenuItem, { icon: { svgSource: iconExamples_1.svgProps, width: 12, height: 12 }, text: "Nested Menu", itemKey: "3", onHoverIn: toggleShowSubmenu, componentRef: stdMenuItemRef }),
            showSubmenu && (React.createElement(react_native_2.Submenu, { maxHeight: 200, target: stdMenuItemRef, onDismiss: onDismissSubmenu, onShow: onShowSubmenu, setShowMenu: toggleShowSubmenu },
                React.createElement(react_native_2.ContextualMenuItem, { text: "MenuItem 4", itemKey: "4" }),
                React.createElement(react_native_2.ContextualMenuItem, { text: "MenuItem 5", itemKey: "5" }),
                React.createElement(react_native_2.ContextualMenuItem, { text: "MenuItem 6", itemKey: "6" }),
                React.createElement(react_native_2.ContextualMenuItem, { text: "MenuItem 7", itemKey: "7" }),
                React.createElement(react_native_2.ContextualMenuItem, { icon: { svgSource: iconExamples_1.svgProps, width: 12, height: 12 }, text: "SubmenuItem svg icon", itemKey: "8", onClick: onClick }),
                React.createElement(react_native_2.ContextualMenuItem, { text: "SubmenuItem 2", itemKey: "9" }),
                React.createElement(react_native_2.ContextualMenuItem, { text: "Disabled Menu Item", itemKey: "10", disabled: true }))),
            React.createElement(react_native_2.ContextualMenuItem, { text: "Disabled Menu Item", itemKey: "11", disabled: true }),
            React.createElement(react_native_2.ContextualMenuItem, { text: "MenuItem 4", itemKey: "12" }),
            React.createElement(react_native_2.ContextualMenuItem, { text: "MenuItem 5", itemKey: "13" }),
            React.createElement(react_native_2.ContextualMenuItem, { text: "MenuItem 6", itemKey: "14" }),
            React.createElement(react_native_2.ContextualMenuItem, { text: "MenuItem 7", itemKey: "15" }),
            React.createElement(react_native_2.ContextualMenuItem, { text: "MenuItem 8", itemKey: "16" }),
            React.createElement(react_native_2.ContextualMenuItem, { text: "MenuItem 9", itemKey: "17" }),
            React.createElement(react_native_2.ContextualMenuItem, { text: "MenuItem 10", itemKey: "18" }),
            React.createElement(react_native_2.ContextualMenuItem, { text: "MenuItem 11", itemKey: "19" }),
            React.createElement(react_native_2.ContextualMenuItem, { text: "MenuItem 12", itemKey: "20" })))));
};
var contextualMenuSections = [
    {
        name: 'Standard ContextualMenu',
        testID: consts_1.CONTEXTUALMENU_TESTPAGE,
        component: ContextualMenuMainTest,
    },
    {
        name: 'Nested ContextualMenu',
        component: NestedContextualMenu,
    },
    {
        name: 'IconButton with Customized ContextualMenu',
        component: IconContextualMenu,
    },
    {
        name: 'ContextalMenu with ScrollView',
        component: ScrollViewContextualMenu,
    },
];
var e2eSections = [
    {
        name: 'ContextualMenu E2E Test',
        component: E2EContextualMenuTest_1.E2EContextualMenuTest,
    },
];
var ContextualMenuTest = function () {
    var status = {
        win32Status: 'Deprecated',
        uwpStatus: 'Backlog',
        iosStatus: 'Backlog',
        macosStatus: 'Beta',
        androidStatus: 'Backlog',
    };
    var description = '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.\n\nThere 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.\n\nOrganize 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’t mix icons with selection checks, as it makes parsing commands difficult. Avoid submenus of submenus as they can be difficult to invoke or remember.';
    return (React.createElement(Test_1.Test, { name: "ContextualMenu Test", description: description, sections: contextualMenuSections, status: status, e2eSections: e2eSections }));
};
exports.ContextualMenuTest = ContextualMenuTest;
//# sourceMappingURL=ContextualMenuTest.js.map