office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
39 lines (37 loc) • 3.27 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", "../../utilities/pageroute", "../../components/App/AppState", "./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, pageroute_1, AppState_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() {
var _this = _super.call(this) || this;
_this._url = pageroute_1.getPageRouteFromState(AppState_1.AppState, 'Basic components', 'Image');
return _this;
}
ImagePage.prototype.render = function () {
return (React.createElement(index_1.ComponentPage, { title: 'Image', componentName: 'ImageExample', exampleCards: React.createElement("div", null,
React.createElement(index_1.ExampleCard, { title: 'ImageFit: Not specified', 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))), propertiesTables: React.createElement(index_1.PropertiesTableSet, { componentName: 'Image' }), 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."), route: this._url, isHeaderVisible: this.props.isHeaderVisible }));
};
return ImagePage;
}(React.Component));
exports.ImagePage = ImagePage;
});
//# sourceMappingURL=ImagePage.js.map