office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
44 lines • 4.17 kB
JavaScript
import * as tslib_1 from "tslib";
import * as React from 'react';
import { ExampleCard, ComponentPage, PageMarkdown, PropertiesTableSet } from '@uifabric/example-app-base';
import './ImagePage.scss';
import { ImageDefaultExample } from './examples/Image.Default.Example';
import { ImageCenterExample } from './examples/Image.Center.Example';
import { ImageContainExample } from './examples/Image.Contain.Example';
import { ImageCoverExample } from './examples/Image.Cover.Example';
import { ImageNoneExample } from './examples/Image.None.Example';
import { ImageMaximizeFrameExample } from './examples/Image.MaximizeFrame.Example';
import { ComponentStatus } from '../../demo/ComponentStatus/ComponentStatus';
import { ImageStatus } from './Image.checklist';
var ImageDefaultExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/Image/examples/Image.Default.Example.tsx');
var ImageCenterExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/Image/examples/Image.Center.Example.tsx');
var ImageContainExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/Image/examples/Image.Contain.Example.tsx');
var ImageCoverExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/Image/examples/Image.Cover.Example.tsx');
var ImageNoneExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/Image/examples/Image.None.Example.tsx');
var ImageMaximizeFrameExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/Image/examples/Image.MaximizeFrame.Example.tsx');
var ImagePage = /** @class */ (function (_super) {
tslib_1.__extends(ImagePage, _super);
function ImagePage() {
return _super !== null && _super.apply(this, arguments) || this;
}
ImagePage.prototype.render = function () {
return (React.createElement(ComponentPage, { title: 'Image', componentName: 'ImageExample', componentUrl: 'https://github.com/OfficeDev/office-ui-fabric-react/tree/master/packages/office-ui-fabric-react/src/components/Image', exampleCards: React.createElement("div", null,
React.createElement(ExampleCard, { title: 'ImageFit: Not specified', code: ImageDefaultExampleCode },
React.createElement(ImageDefaultExample, null)),
React.createElement(ExampleCard, { title: 'ImageFit: None', code: ImageNoneExampleCode },
React.createElement(ImageNoneExample, null)),
React.createElement(ExampleCard, { title: 'ImageFit: Center', code: ImageCenterExampleCode },
React.createElement(ImageCenterExample, null)),
React.createElement(ExampleCard, { title: 'ImageFit: Contain', code: ImageContainExampleCode },
React.createElement(ImageContainExample, null)),
React.createElement(ExampleCard, { title: 'ImageFit: Cover', code: ImageCoverExampleCode },
React.createElement(ImageCoverExample, null)),
React.createElement(ExampleCard, { title: 'Maximizing the image frame', code: ImageMaximizeFrameExampleCode },
React.createElement(ImageMaximizeFrameExample, null))), allowNativeProps: true, nativePropsElement: 'img', propertiesTables: React.createElement(PropertiesTableSet, { sources: [
require('!raw-loader!office-ui-fabric-react/src/components/Image/Image.types.ts')
] }), overview: React.createElement(PageMarkdown, null, require('!raw-loader!office-ui-fabric-react/src/components/Image/docs/ImageOverview.md')), bestPractices: React.createElement("div", null), dos: React.createElement(PageMarkdown, null, require('!raw-loader!office-ui-fabric-react/src/components/Image/docs/ImageDos.md')), donts: React.createElement(PageMarkdown, null, require('!raw-loader!office-ui-fabric-react/src/components/Image/docs/ImageDonts.md')), isHeaderVisible: this.props.isHeaderVisible, componentStatus: React.createElement(ComponentStatus, tslib_1.__assign({}, ImageStatus)) }));
};
return ImagePage;
}(React.Component));
export { ImagePage };
//# sourceMappingURL=ImagePage.js.map