UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

27 lines 2.6 kB
import * as tslib_1 from "tslib"; import * as React from 'react'; import { ExampleCard, ComponentPage, PageMarkdown, PropertiesTableSet } from '@uifabric/example-app-base'; import { RatingBasicExample } from './examples/Rating.Basic.Example'; import { RatingButtonControlledExample } from './examples/Rating.ButtonControlled.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 RatingButtonControlledExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/Rating/examples/Rating.ButtonControlled.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', componentUrl: 'https://github.com/OfficeDev/office-ui-fabric-react/tree/master/packages/office-ui-fabric-react/src/components/Rating', exampleCards: React.createElement("div", null, React.createElement(ExampleCard, { title: 'Rating', code: RatingBasicExampleCode }, React.createElement(RatingBasicExample, null)), React.createElement(ExampleCard, { title: 'Button Controlled Rating', code: RatingButtonControlledExampleCode }, React.createElement(RatingButtonControlledExample, null))), propertiesTables: React.createElement(PropertiesTableSet, { sources: [ require('!raw-loader!office-ui-fabric-react/src/components/Rating/Rating.types.ts') ] }), overview: React.createElement(PageMarkdown, null, require('!raw-loader!office-ui-fabric-react/src/components/Rating/docs/RatingOverview.md')), bestPractices: React.createElement("div", null), dos: React.createElement(PageMarkdown, null, require('!raw-loader!office-ui-fabric-react/src/components/Rating/docs/RatingDos.md')), donts: React.createElement(PageMarkdown, null, require('!raw-loader!office-ui-fabric-react/src/components/Rating/docs/RatingDonts.md')), isHeaderVisible: this.props.isHeaderVisible, componentStatus: React.createElement(ComponentStatus, tslib_1.__assign({}, RatingStatus)) })); }; return RatingPage; }(React.Component)); export { RatingPage }; //# sourceMappingURL=RatingPage.js.map