UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

25 lines 2.63 kB
define(["require", "exports", "tslib", "react", "@uifabric/example-app-base", "./examples/Rating.Basic.Example", "../../demo/ComponentStatus/ComponentStatus", "./Rating.checklist"], function (require, exports, tslib_1, React, example_app_base_1, Rating_Basic_Example_1, ComponentStatus_1, Rating_checklist_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var RatingBasicExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/Rating/examples/Rating.Basic.Example.tsx'); var RatingPage = /** @class */ (function (_super) { tslib_1.__extends(RatingPage, _super); function RatingPage() { return _super !== null && _super.apply(this, arguments) || this; } RatingPage.prototype.render = function () { return (React.createElement(example_app_base_1.ComponentPage, { title: 'Rating', componentName: 'RatingExample', exampleCards: React.createElement(example_app_base_1.ExampleCard, { title: 'Rating', code: RatingBasicExampleCode }, React.createElement(Rating_Basic_Example_1.RatingBasicExample, null)), propertiesTables: React.createElement(example_app_base_1.PropertiesTableSet, { sources: [ require('!raw-loader!office-ui-fabric-react/src/components/Rating/Rating.types.ts') ] }), overview: React.createElement("div", null, React.createElement("p", null, "Ratings provide insight regarding others\u2019 opinions and experiences with a product, helping users make more-informed purchasing decisions. Users can also rate products they\u2019ve purchased.")), bestPractices: React.createElement("div", null), dos: React.createElement("div", null, React.createElement("ul", null, React.createElement("li", null, "Make it clear which product the rating pertains to by making sure the layout and grouping are clear when several products are on the page."))), donts: React.createElement("div", null, React.createElement("ul", null, React.createElement("li", null, "Don\u2019t use the rating component for data that has a continuous range, such as the brightness of a photo. Instead, use a slider."))), isHeaderVisible: this.props.isHeaderVisible, componentStatus: React.createElement(ComponentStatus_1.ComponentStatus, tslib_1.__assign({}, Rating_checklist_1.RatingStatus)) })); }; return RatingPage; }(React.Component)); exports.RatingPage = RatingPage; }); //# sourceMappingURL=RatingPage.js.map