import * as React from 'react';
import { keytipMap } from '@fluentui/examples/lib/office-ui-fabric-react/Keytip/KeytipSetup';
import { Checkbox } from '@fluentui/react-next/lib/Checkbox';
import { ComboBox } from '@fluentui/react-next/lib/ComboBox';
import { Dropdown } from '@fluentui/react-next/lib/Dropdown';
import { Link } from '@fluentui/react-next/lib/Link';
import { SpinButton } from '@fluentui/react-next/lib/SpinButton';
import { Toggle } from '@fluentui/react-next/lib/Toggle';
import { Pivot, PivotItem } from '@fluentui/react-next/lib/Pivot';
import { Stack } from '@fluentui/react-next/lib/Stack';
import { useKeytipRef } from '@fluentui/react-next/lib/KeytipData';
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' },
];
export var KeytipsBasicExample = function () {
    var checkboxRef = useKeytipRef({ keytipProps: keytipMap.CheckboxKeytip });
    var linkRef = useKeytipRef({ keytipProps: keytipMap.LinkKeytip });
    var toggleRef = useKeytipRef({ keytipProps: keytipMap.ToggleKeytip });
    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, null,
            React.createElement(PivotItem, { headerText: "Pivot 1", keytipProps: keytipMap.Pivot1Keytip, style: pivotItemStyle },
                React.createElement(Stack, { tokens: stackTokens },
                    React.createElement(SpinButton, { label: "Spin Button", keytipProps: keytipMap.SpinButtonKeytip, styles: spinButtonStyles }),
                    React.createElement(Toggle, { ref: toggleRef, onText: "Yes", offText: "No" }),
                    React.createElement("span", null,
                        "Go to",
                        ' ',
                        React.createElement(Link, { ref: linkRef, href: "http://www.bing.com", target: "_blank" }, "Bing")))),
            React.createElement(PivotItem, { headerText: "Pivot 2", keytipProps: keytipMap.Pivot2Keytip, style: pivotItemStyle },
                React.createElement(Stack, { tokens: stackTokens },
                    React.createElement(Checkbox, { label: "Checkbox", ref: checkboxRef }),
                    React.createElement(Dropdown, { label: "Dropdown", keytipProps: keytipMap.DropdownKeytip, options: sampleOptions }))),
            React.createElement(PivotItem, { headerText: "Pivot 3", keytipProps: keytipMap.Pivot3Keytip, style: pivotItemStyle },
                React.createElement(ComboBox, { label: "Combo Box", keytipProps: keytipMap.ComboBoxKeytip, options: sampleOptions })))));
};
//# sourceMappingURL=Keytips.Basic.Example.js.map