UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

69 lines 6.09 kB
define(["require", "exports", "react", "./examples/DocumentCard.Basic.Example", "./examples/DocumentCard.Compact.Example", "./examples/DocumentCard.Complete.Example", "./examples/DocumentCard.Image.Example", "./examples/DocumentCard.Conversation.Example"], function (require, exports, React, DocumentCard_Basic_Example_1, DocumentCard_Compact_Example_1, DocumentCard_Complete_Example_1, DocumentCard_Image_Example_1, DocumentCard_Conversation_Example_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 DocumentCardBasicExampleCodepen = require('!@uifabric/codepen-loader!office-ui-fabric-react/src/components/DocumentCard/examples/DocumentCard.Basic.Example.tsx'); var DocumentCardCompactExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/DocumentCard/examples/DocumentCard.Compact.Example.tsx'); var DocumentCardCompactExampleCodepen = require('!@uifabric/codepen-loader!office-ui-fabric-react/src/components/DocumentCard/examples/DocumentCard.Compact.Example.tsx'); var DocumentCardCompleteExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/DocumentCard/examples/DocumentCard.Complete.Example.tsx'); var DocumentCardCompleteExampleCodepen = require('!@uifabric/codepen-loader!office-ui-fabric-react/src/components/DocumentCard/examples/DocumentCard.Complete.Example.tsx'); var DocumentCardImageExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/DocumentCard/examples/DocumentCard.Image.Example.tsx'); var DocumentCardImageExampleCodepen = require('!@uifabric/codepen-loader!office-ui-fabric-react/src/components/DocumentCard/examples/DocumentCard.Image.Example.tsx'); var DocumentCardConversationExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/DocumentCard/examples/DocumentCard.Conversation.Example.tsx'); var DocumentCardConversationExampleCodepen = require('!@uifabric/codepen-loader!office-ui-fabric-react/src/components/DocumentCard/examples/DocumentCard.Conversation.Example.tsx'); exports.DocumentCardPageProps = { title: 'DocumentCard', componentName: 'DocumentCard', componentUrl: 'https://github.com/OfficeDev/office-ui-fabric-react/tree/master/packages/office-ui-fabric-react/src/components/DocumentCard', examples: [ { title: 'Default DocumentCard', code: DocumentCardBasicExampleCode, codepenJS: DocumentCardBasicExampleCodepen, view: (React.createElement(React.Fragment, null, 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))) }, { title: 'DocumentCard with compact layout ', code: DocumentCardCompactExampleCode, codepenJS: DocumentCardCompactExampleCodepen, view: (React.createElement(React.Fragment, null, React.createElement("p", null, "When showing a card on a mobile device or in a narrow layout, you may choose this compact card, which helps the filename remain scannable while giving space for a preview thumbnail."), React.createElement("p", null, "This example also shows some features which are usable with either compact or regular cards, such as showing an icon instead of a document preview image."), React.createElement(DocumentCard_Compact_Example_1.DocumentCardCompactExample, null))) }, { title: 'DocumentCard with multiple items, commands, and views', code: DocumentCardCompleteExampleCode, codepenJS: DocumentCardCompleteExampleCodepen, view: (React.createElement(React.Fragment, null, React.createElement("p", null, "This example shows a couple of optional capabilities, including having a card represent multiple items, exposing up to three relevant commands, and showing the number of views in the bottom right corner."), React.createElement(DocumentCard_Complete_Example_1.DocumentCardCompleteExample, null))) }, { title: 'DocumentCard with image or icon', code: DocumentCardImageExampleCode, codepenJS: DocumentCardImageExampleCodepen, view: (React.createElement(React.Fragment, null, React.createElement("p", null, "This example shows a simplified method of displaying an image or icon on the DocumentCard."), React.createElement(DocumentCard_Image_Example_1.DocumentCardImageExample, null))) }, { title: 'Conversation cards with logo, text preview, and status', code: DocumentCardConversationExampleCode, codepenJS: DocumentCardConversationExampleCodepen, view: (React.createElement(React.Fragment, null, React.createElement("p", null, "This example shows the logo, text preview, and status used for conversation cards."), React.createElement(DocumentCard_Conversation_Example_1.DocumentCardConversationExample, null))) } ], overview: require('!raw-loader!office-ui-fabric-react/src/components/DocumentCard/docs/DocumentCardOverview.md'), bestPractices: '', dos: require('!raw-loader!office-ui-fabric-react/src/components/DocumentCard/docs/DocumentCardDos.md'), donts: require('!raw-loader!office-ui-fabric-react/src/components/DocumentCard/docs/DocumentCardDonts.md'), isHeaderVisible: true, isFeedbackVisible: true }; }); //# sourceMappingURL=DocumentCard.doc.js.map