UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

32 lines (31 loc) 2.81 kB
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', '../../utilities/pageroute', '../../components/App/AppState'], function (require, exports, React, index_1, index_2, Dialog_Basic_Example_1, Dialog_LargeHeader_Example_1, Dialog_Close_Example_1, Dialog_Blocking_Example_1, pageroute_1, AppState_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.call(this); this._url = pageroute_1.getPageRouteFromState(AppState_1.AppState, 'Basic components', 'Dialog'); } DialogPage.prototype.render = function () { return (React.createElement(index_2.ComponentPage, {title: 'Dialog', componentName: 'DialogExample', exampleCards: [ 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)) ], propertiesTables: [ React.createElement(index_2.PropertiesTableSet, {componentName: 'Dialog'}) ], overview: 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.")), route: this._url})); }; return DialogPage; }(React.Component)); exports.DialogPage = DialogPage; });