UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

31 lines 4.52 kB
define(["require", "exports", "tslib", "react", "@uifabric/example-app-base", "./examples/DocumentCard.Basic.Example", "./examples/DocumentCard.Complete.Example", "./examples/DocumentCard.Compact.Example", "../../demo/ComponentStatus/ComponentStatus", "./DocumentCard.checklist"], function (require, exports, tslib_1, React, example_app_base_1, DocumentCard_Basic_Example_1, DocumentCard_Complete_Example_1, DocumentCard_Compact_Example_1, ComponentStatus_1, DocumentCard_checklist_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var DocumentCardBasicExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/DocumentCard/examples/DocumentCard.Basic.Example.tsx'); var DocumentCardCompleteExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/DocumentCard/examples/DocumentCard.Complete.Example.tsx'); var DocumentCardCompactExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/DocumentCard/examples/DocumentCard.Compact.Example.tsx'); var DocumentCardPage = /** @class */ (function (_super) { tslib_1.__extends(DocumentCardPage, _super); function DocumentCardPage() { return _super !== null && _super.apply(this, arguments) || this; } DocumentCardPage.prototype.render = function () { return (React.createElement(example_app_base_1.ComponentPage, { title: 'DocumentCard', componentName: 'DocumentCardExample', componentUrl: 'https://github.com/OfficeDev/office-ui-fabric-react/tree/master/packages/office-ui-fabric-react/src/components/', exampleCards: React.createElement("div", null, React.createElement(example_app_base_1.ExampleCard, { title: 'Default DocumentCard', code: DocumentCardBasicExampleCode }, React.createElement("p", null, "The default configuration for a card represents a single file, with space to denote the last significant event and the person involved."), React.createElement(DocumentCard_Basic_Example_1.DocumentCardBasicExample, null)), React.createElement(example_app_base_1.ExampleCard, { title: 'DocumentCard with multiple items, commands, and views', code: DocumentCardCompleteExampleCode }, React.createElement("p", null, "This example shows a couple of optional abilities, including being able to have a card represent multiple items, being able to expose up to three relevant commands, and showing the number of views in the bottom right corner."), React.createElement("p", null, "Also show a card with Logo, text preview and status that is used for Conversation card."), React.createElement(DocumentCard_Complete_Example_1.DocumentCardCompleteExample, null)), React.createElement(example_app_base_1.ExampleCard, { title: 'DocumentCard with compact layout ', code: DocumentCardCompactExampleCode }, React.createElement("p", null, "When showing a card on a mobile device or a similarly narrow layout, you may choose this Compact layout which helps the filename remain scannable while giving roomy space for a preview thumbnail."), React.createElement(DocumentCard_Compact_Example_1.DocumentCardCompactExample, null))), propertiesTables: React.createElement(example_app_base_1.PropertiesTableSet, { sources: [ require('!raw-loader!office-ui-fabric-react/src/components/DocumentCard/DocumentCard.types.ts') ] }), overview: React.createElement(example_app_base_1.PageMarkdown, null, require('!raw-loader!office-ui-fabric-react/src/components/DocumentCard/docs/DocumentCardOverview.md')), bestPractices: React.createElement("div", null), dos: React.createElement(example_app_base_1.PageMarkdown, null, require('!raw-loader!office-ui-fabric-react/src/components/DocumentCard/docs/DocumentCardDos.md')), donts: React.createElement(example_app_base_1.PageMarkdown, null, require('!raw-loader!office-ui-fabric-react/src/components/DocumentCard/docs/DocumentCardDonts.md')), isHeaderVisible: this.props.isHeaderVisible, componentStatus: React.createElement(ComponentStatus_1.ComponentStatus, tslib_1.__assign({}, DocumentCard_checklist_1.DocumentCardStatus)) })); }; return DocumentCardPage; }(React.Component)); exports.DocumentCardPage = DocumentCardPage; }); //# sourceMappingURL=DocumentCardPage.js.map