UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

26 lines 2.95 kB
define(["require", "exports", "tslib", "react", "@uifabric/example-app-base", "./examples/SwatchColorPicker.Basic.Example", "../../demo/ComponentStatus/ComponentStatus", "./SwatchColorPicker.checklist"], function (require, exports, tslib_1, React, example_app_base_1, SwatchColorPicker_Basic_Example_1, ComponentStatus_1, SwatchColorPicker_checklist_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var SwatchColorPickerBasicExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/SwatchColorPicker/examples/SwatchColorPicker.Basic.Example.tsx'); var SwatchColorPickerPage = /** @class */ (function (_super) { tslib_1.__extends(SwatchColorPickerPage, _super); function SwatchColorPickerPage() { return _super !== null && _super.apply(this, arguments) || this; } SwatchColorPickerPage.prototype.render = function () { return (React.createElement(example_app_base_1.ComponentPage, { title: 'SwatchColorPicker', componentName: 'SwatchColorPickerExample', exampleCards: React.createElement(example_app_base_1.ExampleCard, { title: 'SwatchColorPicker', code: SwatchColorPickerBasicExampleCode }, React.createElement(SwatchColorPicker_Basic_Example_1.SwatchColorPickerBasicExample, null)), propertiesTables: React.createElement(example_app_base_1.PropertiesTableSet, { sources: [ require('!raw-loader!office-ui-fabric-react/src/components/SwatchColorPicker/SwatchColorPicker.types.ts') ] }), overview: React.createElement("div", null, React.createElement("p", null, "A SwatchColorPicker is a list of colors displayed as a grid as options for the user. It can be displayed by itself, with header and/or dividers, or as a button which expands to show the swatch color picker")), dos: React.createElement("div", null, React.createElement("ul", null, React.createElement("li", null, "Use a SwatchColorPicker when there are multiple finite choices that can be grouped and/or collapsed under one title."), React.createElement("li", null, "SwatchColorPickers contain a grid of colors."))), donts: React.createElement("div", null, React.createElement("ul", null, React.createElement("li", null, "Do not use a SwatchColorPicker when there are a a very large number of color choices. The best component for to that is a ColorPicker."))), isHeaderVisible: this.props.isHeaderVisible, componentStatus: React.createElement(ComponentStatus_1.ComponentStatus, tslib_1.__assign({}, SwatchColorPicker_checklist_1.SwatchColorPickerStatus)) })); }; return SwatchColorPickerPage; }(React.Component)); exports.SwatchColorPickerPage = SwatchColorPickerPage; }); //# sourceMappingURL=SwatchColorPickerPage.js.map