office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
63 lines • 4.7 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var React = require("react");
var DocumentCard_Basic_Example_1 = require("./examples/DocumentCard.Basic.Example");
var DocumentCard_Compact_Example_1 = require("./examples/DocumentCard.Compact.Example");
var DocumentCard_Complete_Example_1 = require("./examples/DocumentCard.Complete.Example");
var DocumentCard_Image_Example_1 = require("./examples/DocumentCard.Image.Example");
var DocumentCard_Conversation_Example_1 = require("./examples/DocumentCard.Conversation.Example");
var DocumentCardBasicExampleCode = require('!raw-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 DocumentCardCompleteExampleCode = require('!raw-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 DocumentCardConversationExampleCode = require('!raw-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,
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,
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,
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,
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,
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