UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

28 lines 2.92 kB
import * as tslib_1 from "tslib"; import * as React from 'react'; import { LayerHost } from 'office-ui-fabric-react/lib/Layer'; import { ExampleCard, ComponentPage, PageMarkdown, PropertiesTableSet } from '@uifabric/example-app-base'; import { ResizeGroupOverflowSetExample } from './examples/ResizeGroup.OverflowSet.Example'; import { FlexBoxResizeGroupExample } from './examples/ResizeGroup.FlexBox.Example'; import { ComponentStatus } from '../../demo/ComponentStatus/ComponentStatus'; import { ResizeGroupStatus } from './ResizeGroup.checklist'; var ResizeGroupBasicExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/ResizeGroup/examples/ResizeGroup.OverflowSet.Example.tsx'); var ResizeGroupFlexBoxExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/ResizeGroup/examples/ResizeGroup.FlexBox.Example.tsx'); var ResizeGroupPage = /** @class */ (function (_super) { tslib_1.__extends(ResizeGroupPage, _super); function ResizeGroupPage() { return _super !== null && _super.apply(this, arguments) || this; } ResizeGroupPage.prototype.render = function () { return (React.createElement(ComponentPage, { title: 'ResizeGroup', componentName: 'ResizeGroupExample', componentUrl: 'https://github.com/OfficeDev/office-ui-fabric-react/tree/master/packages/office-ui-fabric-react/src/components/ResizeGroup', exampleCards: React.createElement(LayerHost, null, React.createElement(ExampleCard, { title: 'Use ResizeGroup to move commands into an overflow menu', code: ResizeGroupBasicExampleCode }, React.createElement(ResizeGroupOverflowSetExample, null)), React.createElement(ExampleCard, { title: 'Use ResizeGroup to prevent two groups of items from overlapping', code: ResizeGroupFlexBoxExampleCode }, React.createElement(FlexBoxResizeGroupExample, null))), allowNativeProps: true, propertiesTables: React.createElement(PropertiesTableSet, { sources: [ require('!raw-loader!office-ui-fabric-react/src/components/ResizeGroup/ResizeGroup.types.ts') ] }), overview: React.createElement(PageMarkdown, null, require('!raw-loader!office-ui-fabric-react/src/components/ResizeGroup/docs/ResizeGroupOverview.md')), bestPractices: React.createElement("div", null), dos: React.createElement(PageMarkdown, null, require('!raw-loader!office-ui-fabric-react/src/components/ResizeGroup/docs/ResizeGroupDos.md')), donts: React.createElement(PageMarkdown, null, require('!raw-loader!office-ui-fabric-react/src/components/ResizeGroup/docs/ResizeGroupDonts.md')), isHeaderVisible: this.props.isHeaderVisible, componentStatus: React.createElement(ComponentStatus, tslib_1.__assign({}, ResizeGroupStatus)) })); }; return ResizeGroupPage; }(React.Component)); export { ResizeGroupPage }; //# sourceMappingURL=ResizeGroupPage.js.map