import * as tslib_1 from "tslib";
import * as React from 'react';
import { ExampleCard, ComponentPage, PropertiesTableSet } from '@uifabric/example-app-base';
import { PivotBasicExample } from './examples/Pivot.Basic.Example';
import { PivotIconCountExample } from './examples/Pivot.IconCount.Example';
import { PivotLargeExample } from './examples/Pivot.Large.Example';
import { PivotTabsExample } from './examples/Pivot.Tabs.Example';
import { PivotTabsLargeExample } from './examples/Pivot.TabsLarge.Example';
import { PivotFabricExample } from './examples/Pivot.Fabric.Example';
import { PivotOnChangeExample } from './examples/Pivot.OnChange.Example';
import { PivotRemoveExample } from './examples/Pivot.Remove.Example';
import { PivotOverrideExample } from './examples/Pivot.Override.Example';
import { PivotSeparateExample } from './examples/Pivot.Separate.Example';
import { ComponentStatus } from '../../demo/ComponentStatus/ComponentStatus';
import { PivotStatus } from './Pivot.checklist';
var PivotRemoveExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/Pivot/examples/Pivot.Remove.Example.tsx');
var PivotBasicExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/Pivot/examples/Pivot.Basic.Example.tsx');
var PivotLargeExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/Pivot/examples/Pivot.Large.Example.tsx');
var PivotTabsExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/Pivot/examples/Pivot.Tabs.Example.tsx');
var PivotTabsLargesExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/Pivot/examples/Pivot.TabsLarge.Example.tsx');
var PivotFabricExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/Pivot/examples/Pivot.Fabric.Example.tsx');
var PivotOnChangeExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/Pivot/examples/Pivot.OnChange.Example.tsx');
var PivotIconCountExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/Pivot/examples/Pivot.IconCount.Example.tsx');
var PivotOverrideExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/Pivot/examples/Pivot.Override.Example.tsx');
var PivotSeparateExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/Pivot/examples/Pivot.Separate.Example.tsx');
var PivotPage = /** @class */ (function (_super) {
    tslib_1.__extends(PivotPage, _super);
    function PivotPage() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    PivotPage.prototype.render = function () {
        return (React.createElement(ComponentPage, { title: 'Pivot', componentName: 'PivotExample', exampleCards: React.createElement("div", null,
                React.createElement(ExampleCard, { title: 'Default Pivot', code: PivotBasicExampleCode },
                    React.createElement(PivotBasicExample, null)),
                React.createElement(ExampleCard, { title: 'Count and Icon', code: PivotIconCountExampleCode },
                    React.createElement(PivotIconCountExample, null)),
                React.createElement(ExampleCard, { title: 'Large link size', code: PivotLargeExampleCode },
                    React.createElement(PivotLargeExample, null)),
                React.createElement(ExampleCard, { title: 'Links of tab style', code: PivotTabsExampleCode },
                    React.createElement(PivotTabsExample, null)),
                React.createElement(ExampleCard, { title: 'Links of large tab style', code: PivotTabsLargesExampleCode },
                    React.createElement(PivotTabsLargeExample, null)),
                React.createElement(ExampleCard, { title: 'Trigger onchange event', code: PivotOnChangeExampleCode },
                    React.createElement(PivotOnChangeExample, null)),
                React.createElement(ExampleCard, { title: 'Rendering nested components within the Pivot', code: PivotFabricExampleCode },
                    React.createElement(PivotFabricExample, null)),
                React.createElement(ExampleCard, { title: 'Show/Hide pivot item', code: PivotRemoveExampleCode },
                    React.createElement(PivotRemoveExample, null)),
                React.createElement(ExampleCard, { title: 'Override selected item', code: PivotOverrideExampleCode },
                    React.createElement(PivotOverrideExample, null)),
                React.createElement(ExampleCard, { title: 'Render content separately', code: PivotSeparateExampleCode },
                    React.createElement(PivotSeparateExample, null))), allowNativeProps: 'PivotItem', propertiesTables: React.createElement(PropertiesTableSet, { sources: [
                    require('!raw-loader!office-ui-fabric-react/src/components/Pivot/Pivot.types.ts'),
                    require('!raw-loader!office-ui-fabric-react/src/components/Pivot/PivotItem.types.ts')
                ] }), overview: React.createElement("div", null,
                React.createElement("p", null, "The Pivot control and related tabs pattern are used for navigating frequently accessed, distinct content categories. Pivots allow for navigation between two or more content views and relies on text headers to articulate the different sections of content."),
                React.createElement("ul", null,
                    React.createElement("li", null, "Tapping on a pivot item header navigates to that header's section content."),
                    React.createElement("li", null, "Swiping left or right on a pivot item header navigates to the adjacent section."),
                    React.createElement("li", null, "Swiping left or right on section content navigates to the adjacent section. "),
                    React.createElement("li", null, "Pivots are stationary when all pivot headers fit within the allowed space."),
                    React.createElement("li", null, "Pivots carousel when all pivot headers don't fit within the allowed space.")),
                React.createElement("p", null, "Tabs are a visual variant of Pivot that use a combination of icons and text or just icons to articulate section content.")), bestPractices: React.createElement("div", null), dos: React.createElement("div", null,
                React.createElement("ul", null,
                    React.createElement("li", null, "Use on content-heavy pages that require a significant amount of scrolling to access the various sections."),
                    React.createElement("li", null, "Be concise on the navigation labels, ideally one or two words rather than a phrase."))), donts: React.createElement("div", null,
                React.createElement("ul", null,
                    React.createElement("li", null, "Don\u2019t use on pages which doesn\u2019t scroll."),
                    React.createElement("li", null, "Don\u2019t use the Pivot to link to a new page."),
                    React.createElement("li", null, "Don\u2019t use the Pivot to link to hidden content."))), isHeaderVisible: this.props.isHeaderVisible, componentStatus: React.createElement(ComponentStatus, tslib_1.__assign({}, PivotStatus)) }));
    };
    return PivotPage;
}(React.Component));
export { PivotPage };
//# sourceMappingURL=PivotPage.js.map