UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

38 lines (36 loc) 3.85 kB
define(["require", "exports", "tslib", "react", "@uifabric/example-app-base", "./examples/Image.Default.Example", "./examples/Image.Center.Example", "./examples/Image.Contain.Example", "./examples/Image.Cover.Example", "./examples/Image.None.Example", "./examples/Image.MaximizeFrame.Example", "./ImagePage.scss"], function (require, exports, tslib_1, React, example_app_base_1, Image_Default_Example_1, Image_Center_Example_1, Image_Contain_Example_1, Image_Cover_Example_1, Image_None_Example_1, Image_MaximizeFrame_Example_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); 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 = (function (_super) { tslib_1.__extends(ImagePage, _super); function ImagePage() { return _super !== null && _super.apply(this, arguments) || this; } ImagePage.prototype.render = function () { return (React.createElement(example_app_base_1.ComponentPage, { title: 'Image', componentName: 'ImageExample', exampleCards: React.createElement("div", null, React.createElement(example_app_base_1.ExampleCard, { title: 'ImageFit: Not specified', code: ImageDefaultExampleCode }, React.createElement(Image_Default_Example_1.ImageDefaultExample, null)), React.createElement(example_app_base_1.ExampleCard, { title: 'ImageFit: None', code: ImageNoneExampleCode }, React.createElement(Image_None_Example_1.ImageNoneExample, null)), React.createElement(example_app_base_1.ExampleCard, { title: 'ImageFit: Center', code: ImageCenterExampleCode }, React.createElement(Image_Center_Example_1.ImageCenterExample, null)), React.createElement(example_app_base_1.ExampleCard, { title: 'ImageFit: Contain', code: ImageContainExampleCode }, React.createElement(Image_Contain_Example_1.ImageContainExample, null)), React.createElement(example_app_base_1.ExampleCard, { title: 'ImageFit: Cover', code: ImageCoverExampleCode }, React.createElement(Image_Cover_Example_1.ImageCoverExample, null)), React.createElement(example_app_base_1.ExampleCard, { title: 'Maximizing the image frame', code: ImageMaximizeFrameExampleCode }, React.createElement(Image_MaximizeFrame_Example_1.ImageMaximizeFrameExample, null))), propertiesTables: React.createElement(example_app_base_1.PropertiesTableSet, { sources: [ require('!raw-loader!office-ui-fabric-react/src/components/Image/Image.Props.ts') ] }), overview: React.createElement("div", null, "Images render an image. The borders have been added to these examples in order to help visualize empty space in the image frame."), isHeaderVisible: this.props.isHeaderVisible })); }; return ImagePage; }(React.Component)); exports.ImagePage = ImagePage; }); //# sourceMappingURL=ImagePage.js.map