UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

45 lines (43 loc) 3.36 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', '../../components/index', './examples/Icon.Basic.Example', './examples/Icon.Color.Example', './examples/Icon.ImageSheet.Example', '../../utilities/pageroute', '../../components/App/AppState'], function (require, exports, React, index_1, Icon_Basic_Example_1, Icon_Color_Example_1, Icon_ImageSheet_Example_1, pageroute_1, AppState_1) { "use strict"; var IconBasicExampleCode = require('./examples/Icon.Basic.Example.tsx'); var IconColorExampleCode = require('./examples/Icon.Color.Example.tsx'); var IconImageSheetExampleCode = require('./examples/Icon.ImageSheet.Example.tsx'); var IconPage = (function (_super) { __extends(IconPage, _super); function IconPage() { _super.call(this); this._url = pageroute_1.getPageRouteFromState(AppState_1.AppState, 'Basic components', 'Icon'); } IconPage.prototype.render = function () { return (React.createElement(index_1.ComponentPage, {title: 'Icon', componentName: 'IconExample', exampleCards: React.createElement("div", null, React.createElement(index_1.ExampleCard, {title: 'Icon', code: IconBasicExampleCode}, React.createElement(Icon_Basic_Example_1.IconBasicExample, null) ), React.createElement(index_1.ExampleCard, {title: 'Icon with custom color', code: IconColorExampleCode}, React.createElement(Icon_Color_Example_1.IconColorExample, null) ), React.createElement(index_1.ExampleCard, {title: 'Icon using image sheet', code: IconImageSheetExampleCode}, React.createElement(Icon_ImageSheet_Example_1.IconImageSheetExample, null) )), propertiesTables: React.createElement(index_1.PropertiesTableSet, {componentName: 'Icon'}), overview: React.createElement("div", null, React.createElement("p", null, "In a computer's graphical user interface ( GUI ), an icon is an image that represents an application, a capability, or some other concept or specific entity with meaning for the user. An icon is usually selectable but can also be a nonselectable image such as a company's logo.") ), bestPractices: React.createElement("div", null), dos: React.createElement("div", null, React.createElement("ul", null, React.createElement("li", null, "Adjust to proper size to highlight importance but not occupying too much space."), React.createElement("li", null, "Be simple and concise.")) ), donts: React.createElement("div", null, React.createElement("ul", null, React.createElement("li", null, "Use Icons to show pictures."), React.createElement("li", null, "Use photos or long sentences as icons.")) ), route: this._url, isHeaderVisible: this.props.isHeaderVisible})); }; return IconPage; }(React.Component)); exports.IconPage = IconPage; }); //# sourceMappingURL=IconPage.js.map