office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
28 lines (26 loc) • 2.78 kB
JavaScript
define(["require", "exports", "tslib", "react", "@uifabric/example-app-base", "./examples/SwatchColorPicker.Basic.Example"], function (require, exports, tslib_1, React, example_app_base_1, SwatchColorPicker_Basic_Example_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 = (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.Props.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."))), related: React.createElement("a", { href: 'https://dev.office.com/fabric-js/Components/SwatchColorPicker/SwatchColorPicker.html' }, "Fabric JS"), isHeaderVisible: this.props.isHeaderVisible }));
};
return SwatchColorPickerPage;
}(React.Component));
exports.SwatchColorPickerPage = SwatchColorPickerPage;
});
//# sourceMappingURL=SwatchColorPickerPage.js.map