office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
40 lines • 3.67 kB
JavaScript
import * as tslib_1 from "tslib";
import { KeytipLayer } from 'office-ui-fabric-react/lib/KeytipLayer';
import * as React from 'react';
import { ComponentPage, ExampleCard, PageMarkdown, PropertiesTableSet } from '@uifabric/example-app-base';
import { ComponentStatus } from '../../demo/ComponentStatus/ComponentStatus';
import { KeytipStatus } from './Keytip.checklist';
import { KeytipsBasicExample } from './examples/Keytips.Basic.Example';
import { KeytipsButtonExample } from './examples/Keytips.Button.Example';
import { KeytipsCommandBarExample } from './examples/Keytips.CommandBar.Example';
import { KeytipsOverflowExample } from './examples/Keytips.Overflow.Example';
var KeytipsBasicCode = require('!raw-loader!office-ui-fabric-react/src/components/Keytip/examples/Keytips.Basic.Example.tsx');
var KeytipsButtonCode = require('!raw-loader!office-ui-fabric-react/src/components/Keytip/examples/Keytips.Button.Example.tsx');
var KeytipsCommandBarCode = require('!raw-loader!office-ui-fabric-react/src/components/Keytip/examples/Keytips.CommandBar.Example.tsx');
var KeytipsOverflowCode = require('!raw-loader!office-ui-fabric-react/src/components/Keytip/examples/Keytips.Overflow.Example.tsx');
var KeytipsPage = /** @class */ (function (_super) {
tslib_1.__extends(KeytipsPage, _super);
function KeytipsPage() {
return _super !== null && _super.apply(this, arguments) || this;
}
KeytipsPage.prototype.render = function () {
return (React.createElement("div", null,
React.createElement(ComponentPage, { title: 'Keytips', componentName: 'Keytips', exampleCards: React.createElement("div", null,
React.createElement("p", null, "Press Alt-Win to enable keytips, Esc to return up a level, and Alt-Win again to exit keytip mode"),
React.createElement(ExampleCard, { title: 'Keytips on Buttons', code: KeytipsButtonCode },
React.createElement(KeytipsButtonExample, null)),
React.createElement(ExampleCard, { title: 'Keytips in a CommandBar', code: KeytipsCommandBarCode },
React.createElement(KeytipsCommandBarExample, null)),
React.createElement(ExampleCard, { title: 'Keytips in an OverflowWell', code: KeytipsOverflowCode },
React.createElement(KeytipsOverflowExample, null)),
React.createElement(ExampleCard, { title: 'Keytips Example', code: KeytipsBasicCode },
React.createElement(KeytipsBasicExample, null))), propertiesTables: React.createElement(PropertiesTableSet, { sources: [
require('!raw-loader!office-ui-fabric-react/src/components/Keytip/Keytip.types.ts'),
require('!raw-loader!office-ui-fabric-react/src/components/KeytipLayer/KeytipLayer.types.ts'),
] }), overview: React.createElement(PageMarkdown, null, require('!raw-loader!office-ui-fabric-react/src/components/Keytip/docs/KeytipOverview.md')), dos: React.createElement(PageMarkdown, null, require('!raw-loader!office-ui-fabric-react/src/components/Keytip/docs/KeytipDos.md')), donts: React.createElement(PageMarkdown, null, require('!raw-loader!office-ui-fabric-react/src/components/Keytip/docs/KeytipDonts.md')), isHeaderVisible: this.props.isHeaderVisible, componentStatus: React.createElement(ComponentStatus, tslib_1.__assign({}, KeytipStatus)) }),
React.createElement(KeytipLayer, { content: 'Alt Windows' })));
};
return KeytipsPage;
}(React.Component));
export { KeytipsPage };
//# sourceMappingURL=KeytipsPage.js.map