UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

27 lines 2.38 kB
import * as tslib_1 from "tslib"; import * as React from 'react'; import { ExampleCard, ComponentPage, PropertiesTableSet } from '@uifabric/example-app-base'; import { RatingBasicExample } from './examples/Rating.Basic.Example'; import { ComponentStatus } from '../../demo/ComponentStatus/ComponentStatus'; import { RatingStatus } from './Rating.checklist'; 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(ComponentPage, { title: 'Rating', componentName: 'RatingExample', exampleCards: React.createElement(ExampleCard, { title: 'Rating', code: RatingBasicExampleCode }, React.createElement(RatingBasicExample, null)), propertiesTables: React.createElement(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, tslib_1.__assign({}, RatingStatus)) })); }; return RatingPage; }(React.Component)); export { RatingPage }; //# sourceMappingURL=RatingPage.js.map