UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

36 lines 2.82 kB
import * as tslib_1 from "tslib"; import * as React from 'react'; import { Link } from 'office-ui-fabric-react/lib/Link'; import { LayerHost } from 'office-ui-fabric-react/lib/Layer'; import { ExampleCard, ComponentPage, PropertiesTableSet } from '@uifabric/example-app-base'; import { TooltipCustomExample } from './examples/Tooltip.Custom.Example'; import { TooltipBasicExample } from './examples/Tooltip.Basic.Example'; import { TooltipOverflowExample } from './examples/Tooltip.Overflow.Example'; import { ComponentStatus } from '../../demo/ComponentStatus/ComponentStatus'; import { TooltipStatus } from './Tooltip.checklist'; import './TooltipPage.scss'; var TooltipBasicExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/Tooltip/examples/Tooltip.Basic.Example.tsx'); var TooltipCustomExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/Tooltip/examples/Tooltip.Custom.Example.tsx'); var TooltipOverflowExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/Tooltip/examples/Tooltip.Overflow.Example.tsx'); var TooltipPage = /** @class */ (function (_super) { tslib_1.__extends(TooltipPage, _super); function TooltipPage() { return _super !== null && _super.apply(this, arguments) || this; } TooltipPage.prototype.render = function () { return (React.createElement(ComponentPage, { title: 'Tooltip', componentName: 'TooltipExample', exampleCards: React.createElement(LayerHost, null, React.createElement(ExampleCard, { title: 'Default Tooltip', code: TooltipBasicExampleCode }, React.createElement(TooltipBasicExample, null)), React.createElement(ExampleCard, { title: 'Tooltip with list', code: TooltipCustomExampleCode }, React.createElement(TooltipCustomExample, null)), React.createElement(ExampleCard, { title: 'Tooltip only on overflow', code: TooltipOverflowExampleCode }, React.createElement(TooltipOverflowExample, null))), propertiesTables: React.createElement(PropertiesTableSet, { sources: [ require('!raw-loader!office-ui-fabric-react/src/components/Tooltip/Tooltip.types.ts') ] }), overview: React.createElement("div", null, React.createElement(Link, { target: '_blank', href: 'http://dev.office.com/fabric/components/Tooltip' }, "Tooltips"), React.createElement("span", null, " supplement content associated with a specific UI component.")), isHeaderVisible: this.props.isHeaderVisible, componentStatus: React.createElement(ComponentStatus, tslib_1.__assign({}, TooltipStatus)) })); }; return TooltipPage; }(React.Component)); export { TooltipPage }; //# sourceMappingURL=TooltipPage.js.map