office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
24 lines (23 loc) • 2.55 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', '../../../index', '../../components/index', './examples/Dialog.Basic.Example', './examples/Dialog.LargeHeader.Example', './examples/Dialog.Close.Example', './examples/Dialog.Blocking.Example'], function (require, exports, React, index_1, index_2, Dialog_Basic_Example_1, Dialog_LargeHeader_Example_1, Dialog_Close_Example_1, Dialog_Blocking_Example_1) {
"use strict";
var DialogBasicExampleCode = require('./examples/Dialog.Basic.Example.tsx');
var DialogLargeHeaderExampleCode = require('./examples/Dialog.LargeHeader.Example.tsx');
var DialogCloseExampleCode = require('./examples/Dialog.Close.Example.tsx');
var DialogBlockingExampleCode = require('./examples/Dialog.Blocking.Example.tsx');
var DialogPage = (function (_super) {
__extends(DialogPage, _super);
function DialogPage() {
_super.apply(this, arguments);
}
DialogPage.prototype.render = function () {
return (React.createElement("div", {className: 'ms-DialogPage'}, React.createElement("h1", {className: 'ms-font-xxl'}, "Dialog"), React.createElement("div", null, React.createElement(index_1.Link, {target: '_blank', href: 'http://dev.office.com/fabric/components/dialog'}, "Dialogs"), React.createElement("span", null, " are used to render a modal window.")), React.createElement("h2", {className: 'ms-font-xl'}, "Examples"), React.createElement(index_2.ExampleCard, {title: 'Dialog', code: DialogBasicExampleCode}, React.createElement(Dialog_Basic_Example_1.DialogBasicExample, null)), React.createElement(index_2.ExampleCard, {title: 'Dialog Large Header', code: DialogLargeHeaderExampleCode}, React.createElement(Dialog_LargeHeader_Example_1.DialogLargeHeaderExample, null)), React.createElement(index_2.ExampleCard, {title: 'Dialog Close', code: DialogCloseExampleCode}, React.createElement(Dialog_Close_Example_1.DialogCloseExample, null)), React.createElement(index_2.ExampleCard, {title: 'Dialog Blocking', code: DialogBlockingExampleCode}, React.createElement(Dialog_Blocking_Example_1.DialogBlockingExample, null)), React.createElement(index_2.PropertiesTableSet, {componentName: 'Dialog'})));
};
return DialogPage;
}(React.Component));
exports.DialogPage = DialogPage;
});