UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

40 lines (39 loc) 4.38 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/Panel.SmallRight.Example', './examples/Panel.SmallLeft.Example', './examples/Panel.SmallFluid.Example', './examples/Panel.Medium.Example', './examples/Panel.Large.Example', './examples/Panel.LargeFixed.Example', './examples/Panel.ExtraLarge.Example', './examples/Panel.LightDismiss.Example', '../../utilities/pageroute', '../../components/App/AppState'], function (require, exports, React, index_1, index_2, Panel_SmallRight_Example_1, Panel_SmallLeft_Example_1, Panel_SmallFluid_Example_1, Panel_Medium_Example_1, Panel_Large_Example_1, Panel_LargeFixed_Example_1, Panel_ExtraLarge_Example_1, Panel_LightDismiss_Example_1, pageroute_1, AppState_1) { "use strict"; var PanelSmallRightExampleCode = require('./examples/Panel.SmallRight.Example.tsx'); var PanelSmallLeftExampleCode = require('./examples/Panel.SmallLeft.Example.tsx'); var PanelSmallFluidExampleCode = require('./examples/Panel.SmallFluid.Example.tsx'); var PanelMediumExampleCode = require('./examples/Panel.Medium.Example.tsx'); var PanelLargeExampleCode = require('./examples/Panel.Large.Example.tsx'); var PanelLargeFixedExampleCode = require('./examples/Panel.LargeFixed.Example.tsx'); var PanelExtraLargeExampleCode = require('./examples/Panel.ExtraLarge.Example.tsx'); var PanelLightDismissExampleCode = require('./examples/Panel.LightDismiss.Example.tsx'); var PanelPage = (function (_super) { __extends(PanelPage, _super); function PanelPage() { _super.call(this); this._url = pageroute_1.getPageRouteFromState(AppState_1.AppState, 'Basic components', 'Panel'); } PanelPage.prototype.render = function () { return (React.createElement(index_2.ComponentPage, {title: 'Panel', componentName: 'PanelExample', exampleCards: [ React.createElement(index_2.ExampleCard, {title: 'Panel - Small Panel, Anchored Right, Fixed Width', code: PanelSmallRightExampleCode}, React.createElement(Panel_SmallRight_Example_1.PanelSmallRightExample, null)), React.createElement(index_2.ExampleCard, {title: 'Panel - Small Panel, Anchored Left, Fixed Width', code: PanelSmallLeftExampleCode}, React.createElement(Panel_SmallLeft_Example_1.PanelSmallLeftExample, null)), React.createElement(index_2.ExampleCard, {title: 'Panel - Small Panel, Full Screen, Fluid Width', code: PanelSmallFluidExampleCode}, React.createElement(Panel_SmallFluid_Example_1.PanelSmallFluidExample, null)), React.createElement(index_2.ExampleCard, {title: 'Panel - Medium', code: PanelMediumExampleCode}, React.createElement(Panel_Medium_Example_1.PanelMediumExample, null)), React.createElement(index_2.ExampleCard, {title: 'Panel - Large', code: PanelLargeExampleCode}, React.createElement(Panel_Large_Example_1.PanelLargeExample, null)), React.createElement(index_2.ExampleCard, {title: 'Panel - LargeFixed', code: PanelLargeFixedExampleCode}, React.createElement(Panel_LargeFixed_Example_1.PanelLargeFixedExample, null)), React.createElement(index_2.ExampleCard, {title: 'Panel - Extra Large', code: PanelExtraLargeExampleCode}, React.createElement(Panel_ExtraLarge_Example_1.PanelExtraLargeExample, null)), React.createElement(index_2.ExampleCard, {title: 'Panel - Light Dismiss', code: PanelLightDismissExampleCode}, React.createElement(Panel_LightDismiss_Example_1.PanelLightDismissExample, null)) ], propertiesTables: [ React.createElement(index_2.PropertiesTableSet, {componentName: 'Panel'}) ], overview: React.createElement("div", null, React.createElement(index_1.Link, {target: '_blank', href: 'http://dev.office.com/fabric/components/panel'}, "Panels"), React.createElement("span", null, " are used to render an org chart, and other components.")), route: this._url, isHeaderVisible: this.props.isHeaderVisible})); }; return PanelPage; }(React.Component)); exports.PanelPage = PanelPage; });