UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

32 lines 3.17 kB
import * as tslib_1 from "tslib"; import * as React from 'react'; import { ExampleCard, ComponentPage, PageMarkdown, PropertiesTableSet } from '@uifabric/example-app-base'; import { DropdownBasicExample } from './examples/Dropdown.Basic.Example'; import { DropdownCustomExample } from './examples/Dropdown.Custom.Example'; import { DropdownErrorExample } from './examples/Dropdown.Error.Example'; import { ComponentStatus } from '../../demo/ComponentStatus/ComponentStatus'; import { DropdownStatus } from './Dropdown.checklist'; var DropdownBasicExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/Dropdown/examples/Dropdown.Basic.Example.tsx'); var DropdownCustomExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/Dropdown/examples/Dropdown.Custom.Example.tsx'); var DropdownErrorExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/Dropdown/examples/Dropdown.Error.Example.tsx'); var DropdownPage = /** @class */ (function (_super) { tslib_1.__extends(DropdownPage, _super); function DropdownPage() { return _super !== null && _super.apply(this, arguments) || this; } DropdownPage.prototype.render = function () { return (React.createElement(ComponentPage, { title: 'Dropdown', componentName: 'DropdownExample', componentUrl: 'https://github.com/OfficeDev/office-ui-fabric-react/tree/master/packages/office-ui-fabric-react/src/components/Dropdown', exampleCards: React.createElement("div", null, React.createElement(ExampleCard, { title: 'Dropdown', code: DropdownBasicExampleCode }, React.createElement(DropdownBasicExample, null)), React.createElement(ExampleCard, { title: 'Customized Dropdown', code: DropdownCustomExampleCode }, React.createElement(DropdownCustomExample, null)), React.createElement(ExampleCard, { title: 'Dropdown with Error Message', code: DropdownErrorExampleCode }, React.createElement(DropdownErrorExample, null))), allowNativeProps: true, propertiesTables: React.createElement(PropertiesTableSet, { sources: [ require('!raw-loader!office-ui-fabric-react/src/components/Dropdown/Dropdown.types.ts'), require('!raw-loader!office-ui-fabric-react/src/utilities/selectableOption/SelectableDroppableText.types.ts') ] }), overview: React.createElement(PageMarkdown, null, require('!raw-loader!office-ui-fabric-react/src/components/Dropdown/docs/DropdownOverview.md')), bestPractices: React.createElement("div", null), dos: React.createElement(PageMarkdown, null, require('!raw-loader!office-ui-fabric-react/src/components/Dropdown/docs/DropdownDos.md')), donts: React.createElement(PageMarkdown, null, require('!raw-loader!office-ui-fabric-react/src/components/Dropdown/docs/DropdownDonts.md')), isHeaderVisible: this.props.isHeaderVisible, componentStatus: React.createElement(ComponentStatus, tslib_1.__assign({}, DropdownStatus)) })); }; return DropdownPage; }(React.Component)); export { DropdownPage }; //# sourceMappingURL=DropdownPage.js.map