office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
25 lines (24 loc) • 2.76 kB
JavaScript
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
define(["require", "exports", 'react', '../../components/index', './examples/Image.Default.Example', './examples/Image.Center.Example', './examples/Image.Contain.Example', './examples/Image.Cover.Example', './examples/Image.None.Example', './ImagePage.scss'], function (require, exports, React, index_1, Image_Default_Example_1, Image_Center_Example_1, Image_Contain_Example_1, Image_Cover_Example_1, Image_None_Example_1) {
"use strict";
var ImageDefaultExampleCode = require('./examples/Image.Default.Example.tsx');
var ImageCenterExampleCode = require('./examples/Image.Center.Example.tsx');
var ImageContainExampleCode = require('./examples/Image.Contain.Example.tsx');
var ImageCoverExampleCode = require('./examples/Image.Cover.Example.tsx');
var ImageNoneExampleCode = require('./examples/Image.None.Example.tsx');
var ImagePage = (function (_super) {
__extends(ImagePage, _super);
function ImagePage() {
_super.apply(this, arguments);
}
ImagePage.prototype.render = function () {
return (React.createElement("div", {className: 'ImageExample'}, React.createElement("h1", {className: 'ms-font-xxl'}, "Image"), React.createElement("div", null, React.createElement("span", null, "Images render an image." + ' ' + "The borders have been added to these examples in order to help visualize empty space in the image frame.")), React.createElement("h2", {className: 'ms-font-xl'}, "Examples"), React.createElement(index_1.ExampleCard, {title: 'Default Behavior', code: ImageDefaultExampleCode}, React.createElement(Image_Default_Example_1.ImageDefaultExample, null)), React.createElement(index_1.ExampleCard, {title: 'ImageFit: None', code: ImageNoneExampleCode}, React.createElement(Image_None_Example_1.ImageNoneExample, null)), React.createElement(index_1.ExampleCard, {title: 'ImageFit: Center', code: ImageCenterExampleCode}, React.createElement(Image_Center_Example_1.ImageCenterExample, null)), React.createElement(index_1.ExampleCard, {title: 'ImageFit: Contain', code: ImageContainExampleCode}, React.createElement(Image_Contain_Example_1.ImageContainExample, null)), React.createElement(index_1.ExampleCard, {title: 'ImageFit: Cover', code: ImageCoverExampleCode}, React.createElement(Image_Cover_Example_1.ImageCoverExample, null)), React.createElement(index_1.PropertiesTableSet, {componentName: 'Image'})));
};
return ImagePage;
}(React.Component));
exports.ImagePage = ImagePage;
});