define(["require", "exports", "react", "office-ui-fabric-react/lib/Breadcrumb", "office-ui-fabric-react/lib/Label", "office-ui-fabric-react/lib/Tooltip"], function (require, exports, React, Breadcrumb_1, Label_1, Tooltip_1) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var labelStyles = {
        root: {
            margin: '10px 0',
            selectors: {
                '&:not(:first-child)': { marginTop: 24 }
            }
        }
    };
    exports.BreadcrumbBasicExample = function () {
        return (React.createElement("div", null,
            React.createElement(Label_1.Label, { styles: labelStyles }, "With no maxDisplayedItems"),
            React.createElement(Breadcrumb_1.Breadcrumb, { items: [
                    { text: 'Files', key: 'Files', onClick: _onBreadcrumbItemClicked },
                    { text: 'This is folder 1', key: 'f1', onClick: _onBreadcrumbItemClicked },
                    { text: 'This is folder 2 with a long name', key: 'f2', onClick: _onBreadcrumbItemClicked },
                    { text: 'This is folder 3 long', key: 'f3', onClick: _onBreadcrumbItemClicked },
                    { text: 'This is folder 4', key: 'f4', onClick: _onBreadcrumbItemClicked },
                    { text: 'This is folder 5 another', key: 'f5', onClick: _onBreadcrumbItemClicked, isCurrentItem: true }
                ], ariaLabel: "Breadcrumb with no maxDisplayedItems", overflowAriaLabel: "More links" }),
            React.createElement(Label_1.Label, { styles: labelStyles }, "With Custom Divider Icon"),
            React.createElement(Breadcrumb_1.Breadcrumb, { items: [
                    { text: 'Files', key: 'Files', onClick: _onBreadcrumbItemClicked },
                    { text: 'This is folder 1', key: 'f1', onClick: _onBreadcrumbItemClicked },
                    { text: 'This is folder 2', key: 'f2', onClick: _onBreadcrumbItemClicked },
                    { text: 'This is folder 3', key: 'f3', onClick: _onBreadcrumbItemClicked },
                    { text: 'This is folder 4', key: 'f4', onClick: _onBreadcrumbItemClicked },
                    { text: 'This is folder 5', key: 'f5', onClick: _onBreadcrumbItemClicked, isCurrentItem: true }
                ], dividerAs: _getCustomDivider, ariaLabel: "Breadcrumb with custom divider icon", overflowAriaLabel: "More links" }),
            React.createElement(Label_1.Label, { styles: labelStyles }, "With maxDisplayedItems set to three"),
            React.createElement(Breadcrumb_1.Breadcrumb, { items: [
                    { text: 'Files', key: 'Files', href: '#/examples/breadcrumb', onClick: _onBreadcrumbItemClicked },
                    {
                        text: 'This is link 1',
                        key: 'l1',
                        href: '#/examples/breadcrumb',
                        onClick: _onBreadcrumbItemClicked
                    },
                    {
                        text: 'This is link 2',
                        key: 'l2',
                        href: '#/examples/breadcrumb',
                        onClick: _onBreadcrumbItemClicked
                    },
                    {
                        text: 'This is link 3 with a long name',
                        key: 'l3',
                        href: '#/examples/breadcrumb',
                        onClick: _onBreadcrumbItemClicked
                    },
                    {
                        text: 'This is link 4',
                        key: 'l4',
                        href: '#/examples/breadcrumb',
                        onClick: _onBreadcrumbItemClicked
                    },
                    {
                        text: 'This is link 5',
                        key: 'l5',
                        href: '#/examples/breadcrumb',
                        onClick: _onBreadcrumbItemClicked,
                        isCurrentItem: true
                    }
                ], maxDisplayedItems: 3, ariaLabel: "Breadcrumb with maxDisplayedItems set to three", overflowAriaLabel: "More links" }),
            React.createElement(Label_1.Label, { styles: labelStyles }, "With maxDisplayedItems set to two and overflowIndex set to 1 (second element)"),
            React.createElement(Breadcrumb_1.Breadcrumb, { items: [
                    { text: 'TestText1', key: 'TestKey1' },
                    { text: 'TestText2', key: 'TestKey2' },
                    { text: 'TestText3', key: 'TestKey3' },
                    { text: 'TestText4', key: 'TestKey4' }
                ], maxDisplayedItems: 2, overflowIndex: 1, ariaLabel: "Breadcrumb with maxDisplayedItems set to 2 and overflowIndex set to 1", overflowAriaLabel: "More links" }),
            React.createElement(Label_1.Label, { styles: labelStyles }, "With items rendered as a headings"),
            React.createElement(Breadcrumb_1.Breadcrumb, { items: [
                    { text: 'Files', key: 'Files', onClick: _onBreadcrumbItemClicked, as: 'h4' },
                    { text: 'This is folder 1', key: 'd1', onClick: _onBreadcrumbItemClicked, as: 'h3' },
                    { text: 'This is folder 2', key: 'd2', isCurrentItem: true, as: 'h2' }
                ], ariaLabel: "Current item rendered as a heading", overflowAriaLabel: "More links" })));
    };
    function _onBreadcrumbItemClicked(ev, item) {
        console.log("Breadcrumb item with key \"" + item.key + "\" has been clicked.");
    }
    function _getCustomDivider(dividerProps) {
        var tooltipText = dividerProps.item ? dividerProps.item.text : '';
        return (React.createElement(Tooltip_1.TooltipHost, { content: "Show " + tooltipText + " contents", calloutProps: { gapSpace: 0 } },
            React.createElement("span", { "aria-hidden": "true", style: { cursor: 'pointer' } }, "/")));
    }
});
//# sourceMappingURL=Breadcrumb.Basic.Example.js.map