office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
30 lines • 2.88 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = require("react");
var example_app_base_1 = require("@uifabric/example-app-base");
var SwatchColorPicker_Basic_Example_1 = require("./examples/SwatchColorPicker.Basic.Example");
var ComponentStatus_1 = require("../../demo/ComponentStatus/ComponentStatus");
var SwatchColorPicker_checklist_1 = require("./SwatchColorPicker.checklist");
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
;