office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
35 lines • 3.63 kB
JavaScript
import * as tslib_1 from "tslib";
import * as React from 'react';
import { ExampleCard, ComponentPage, PropertiesTableSet, PageMarkdown, } from '@uifabric/example-app-base';
import { ChoiceGroupBasicExample } from './examples/ChoiceGroup.Basic.Example';
import { ChoiceGroupCustomExample } from './examples/ChoiceGroup.Custom.Example';
import { ChoiceGroupImageExample } from './examples/ChoiceGroup.Image.Example';
import { ChoiceGroupIconExample } from './examples/ChoiceGroup.Icon.Example';
import { ComponentStatus } from '../../demo/ComponentStatus/ComponentStatus';
import { ChoiceGroupStatus } from './ChoiceGroup.checklist';
var ChoiceGroupBasicExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/ChoiceGroup/examples/ChoiceGroup.Basic.Example.tsx');
var ChoiceGroupCustomExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/ChoiceGroup/examples/ChoiceGroup.Custom.Example.tsx');
var ChoiceGroupImageExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/ChoiceGroup/examples/ChoiceGroup.Image.Example.tsx');
var ChoiceGroupIconExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/ChoiceGroup/examples/ChoiceGroup.Icon.Example.tsx');
var ChoiceGroupPage = /** @class */ (function (_super) {
tslib_1.__extends(ChoiceGroupPage, _super);
function ChoiceGroupPage() {
return _super !== null && _super.apply(this, arguments) || this;
}
ChoiceGroupPage.prototype.render = function () {
return (React.createElement(ComponentPage, { title: 'ChoiceGroup', componentName: 'ChoiceGroupExample', componentUrl: 'https://github.com/OfficeDev/office-ui-fabric-react/tree/master/packages/office-ui-fabric-react/src/components/ChoiceGroup', exampleCards: React.createElement("div", null,
React.createElement(ExampleCard, { title: 'Default ChoiceGroup', code: ChoiceGroupBasicExampleCode },
React.createElement(ChoiceGroupBasicExample, null)),
React.createElement(ExampleCard, { title: 'ChoiceGroup with dropdown', code: ChoiceGroupCustomExampleCode },
React.createElement(ChoiceGroupCustomExample, null)),
React.createElement(ExampleCard, { title: 'ChoiceGroups with images', code: ChoiceGroupImageExampleCode },
React.createElement(ChoiceGroupImageExample, null)),
React.createElement(ExampleCard, { title: 'ChoiceGroup with icons', code: ChoiceGroupIconExampleCode },
React.createElement(ChoiceGroupIconExample, null))), allowNativeProps: true, nativePropsElement: 'input', propertiesTables: React.createElement(PropertiesTableSet, { sources: [
require('!raw-loader!office-ui-fabric-react/src/components/ChoiceGroup/ChoiceGroup.types.ts')
] }), overview: React.createElement(PageMarkdown, null, require('!raw-loader!office-ui-fabric-react/src/components/ChoiceGroup/docs/ChoiceGroupOverview.md')), bestPractices: React.createElement("div", null), dos: React.createElement(PageMarkdown, null, require('!raw-loader!office-ui-fabric-react/src/components/ChoiceGroup/docs/ChoiceGroupDos.md')), donts: React.createElement(PageMarkdown, null, require('!raw-loader!office-ui-fabric-react/src/components/ChoiceGroup/docs/ChoiceGroupDonts.md')), isHeaderVisible: this.props.isHeaderVisible, componentStatus: React.createElement(ComponentStatus, tslib_1.__assign({}, ChoiceGroupStatus)) }));
};
return ChoiceGroupPage;
}(React.Component));
export { ChoiceGroupPage };
//# sourceMappingURL=ChoiceGroupPage.js.map