"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.KeytipsBasicExample = void 0;
var React = require("react");
var KeytipSetup_1 = require("@fluentui/react-examples/lib-commonjs/react/Keytip/KeytipSetup");
var Checkbox_1 = require("@fluentui/react/lib-commonjs/Checkbox");
var ComboBox_1 = require("@fluentui/react/lib-commonjs/ComboBox");
var Dropdown_1 = require("@fluentui/react/lib-commonjs/Dropdown");
var Link_1 = require("@fluentui/react/lib-commonjs/Link");
var SpinButton_1 = require("@fluentui/react/lib-commonjs/SpinButton");
var Toggle_1 = require("@fluentui/react/lib-commonjs/Toggle");
var Pivot_1 = require("@fluentui/react/lib-commonjs/Pivot");
var Stack_1 = require("@fluentui/react/lib-commonjs/Stack");
var Keytips_1 = require("@fluentui/react/lib-commonjs/Keytips");
var pivotItemStyle = { width: 500, paddingTop: 20 };
var stackTokens = { childrenGap: 20 };
var spinButtonStyles = { root: { maxWidth: 200 } };
var sampleOptions = [
    { key: 'A', text: 'Option 1' },
    { key: 'B', text: 'Option 2' },
    { key: 'C', text: 'Option 3' },
];
var KeytipsBasicExample = function () {
    var checkboxRef = Keytips_1.useKeytipRef({ keytipProps: KeytipSetup_1.keytipMap.CheckboxKeytip });
    var linkRef = Keytips_1.useKeytipRef({ keytipProps: KeytipSetup_1.keytipMap.LinkKeytip });
    var toggleRef = Keytips_1.useKeytipRef({ keytipProps: KeytipSetup_1.keytipMap.ToggleKeytip });
    var spinButtonRef = Keytips_1.useKeytipRef({ keytipProps: KeytipSetup_1.keytipMap.SpinButtonKeytip });
    var dropdownRef = Keytips_1.useKeytipRef({ keytipProps: KeytipSetup_1.keytipMap.DropdownKeytip });
    var comboboxRef = Keytips_1.useKeytipRef({ keytipProps: KeytipSetup_1.keytipMap.ComboBoxKeytip });
    return (React.createElement("div", null,
        React.createElement("p", null, "For Pivots, keytips will first show for each of the pivots. After selecting a pivot, the Keytips for its content are shown."),
        React.createElement(Pivot_1.Pivot, null,
            React.createElement(Pivot_1.PivotItem, { headerText: "Pivot 1", keytipProps: KeytipSetup_1.keytipMap.Pivot1Keytip, style: pivotItemStyle },
                React.createElement(Stack_1.Stack, { tokens: stackTokens },
                    React.createElement(SpinButton_1.SpinButton, { ref: spinButtonRef, label: "Spin Button", min: 0, max: 100, styles: spinButtonStyles }),
                    React.createElement(Toggle_1.Toggle, { ref: toggleRef, onText: "Yes", offText: "No" }),
                    React.createElement("span", null,
                        "Go to",
                        ' ',
                        React.createElement(Link_1.Link, { ref: linkRef, href: "http://www.bing.com", target: "_blank", underline: true }, "Bing")))),
            React.createElement(Pivot_1.PivotItem, { headerText: "Pivot 2", keytipProps: KeytipSetup_1.keytipMap.Pivot2Keytip, style: pivotItemStyle },
                React.createElement(Stack_1.Stack, { tokens: stackTokens },
                    React.createElement(Checkbox_1.Checkbox, { label: "Checkbox", ref: checkboxRef }),
                    React.createElement(Dropdown_1.Dropdown, { ref: dropdownRef, label: "Dropdown", options: sampleOptions }))),
            React.createElement(Pivot_1.PivotItem, { headerText: "Pivot 3", keytipProps: KeytipSetup_1.keytipMap.Pivot3Keytip, style: pivotItemStyle },
                React.createElement(ComboBox_1.ComboBox, { ref: comboboxRef, label: "Combo Box", options: sampleOptions })))));
};
exports.KeytipsBasicExample = KeytipsBasicExample;
//# sourceMappingURL=Keytips.Basic.Example.js.map