UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

37 lines 3.72 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var React = require("react"); var Link_1 = require("office-ui-fabric-react/lib/Link"); var example_app_base_1 = require("@uifabric/example-app-base"); var PeoplePicker_Types_Example_1 = require("./examples/PeoplePicker.Types.Example"); var ComponentStatus_1 = require("../../../demo/ComponentStatus/ComponentStatus"); var PeoplePicker_checklist_1 = require("./PeoplePicker.checklist"); var PeoplePickerTypesExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/pickers/PeoplePicker/examples/PeoplePicker.Types.Example.tsx'); var PeoplePickerPage = /** @class */ (function (_super) { tslib_1.__extends(PeoplePickerPage, _super); function PeoplePickerPage() { return _super !== null && _super.apply(this, arguments) || this; } PeoplePickerPage.prototype.render = function () { return (React.createElement(example_app_base_1.ComponentPage, { title: 'PeoplePicker', componentName: 'PeoplePickerExample', exampleCards: React.createElement("div", null, React.createElement(example_app_base_1.ExampleCard, { title: 'People Pickers', code: PeoplePickerTypesExampleCode }, React.createElement(PeoplePicker_Types_Example_1.PeoplePickerTypesExample, null))), propertiesTables: React.createElement(example_app_base_1.PropertiesTableSet, { sources: [ require('!raw-loader!office-ui-fabric-react/src/components/pickers/BasePicker.types.ts') ] }), overview: React.createElement("div", null, React.createElement(Link_1.Link, { target: '_blank', href: 'http://dev.office.com/fabric/components/PeoplePicker' }, " PeoplePicker "), React.createElement("span", null, " are used to pick recipients.")), isHeaderVisible: this.props.isHeaderVisible, bestPractices: React.createElement("div", null, "The PeoplePicker is used to select one or more entities, such as people or groups. Entry points for PeoplePickers are typically specialized TextField-like input fields known as a \"well\", which are used to search for recipients from a list. When a recipient is selected from the list, it is added to the well as a specialized Persona that can be interacted with or removed. Clicking on a Persona from the well should invoke a PersonaCard or open a profile pane for that recipient."), dos: React.createElement("div", null, React.createElement("ul", null, React.createElement("li", null, "Use the PeoplePicker to quickly search for a few people"), React.createElement("li", null, "Use the PeoplePicker to manage a group of people"), React.createElement("li", null, "Use the MemberList PeoplePicker to display selections below the input box"), React.createElement("li", null, "Use defaultSelectedItems when some people have already been selected"))), donts: React.createElement("div", null, React.createElement("ul", null, React.createElement("li", null, "Use the PeoplePicker to select something other than people"), React.createElement("li", null, "Use the PeoplePicker to only display people"), React.createElement("li", null, "Use the PeoplePicker without sufficient space"))), componentStatus: React.createElement(ComponentStatus_1.ComponentStatus, tslib_1.__assign({}, PeoplePicker_checklist_1.PeoplePickerStatus)) })); }; return PeoplePickerPage; }(React.Component)); exports.PeoplePickerPage = PeoplePickerPage; //# sourceMappingURL=PeoplePickerPage.js.map