UNPKG

@cimpress/react-components

Version:
61 lines 2.98 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const react_1 = __importDefault(require("react")); const react_components_1 = require("@cimpress/react-components"); const selectwrapper_jsx_1 = __importDefault(require("!raw-loader!./selectwrapper.jsx")); const selectwrapper_jsx_2 = __importDefault(require("./selectwrapper.jsx")); const TabbedComponentDoc_1 = __importDefault(require("../../shared/TabbedComponentDoc")); const SelectWrapperDocs = () => { const propInfos = [ { name: 'containerClassName', type: 'string', default: '', description: 'A class name to append to the div that wraps the select component.', }, { name: 'selectedSelect', type: 'function', default: '', description: 'The Select you wish to use to render the component.', }, { name: 'helpText', type: 'node', default: '', description: 'Additional help text to display under the select field.', }, { name: 'status', type: 'string', default: '', description: (react_1.default.createElement("div", null, "One of ", react_1.default.createElement("code", null, "success"), ", ", react_1.default.createElement("code", null, "warning"), ", or ", react_1.default.createElement("code", null, "error"), ", provides a validation state.")), }, ]; const remarks = (react_1.default.createElement("div", null, react_1.default.createElement("p", null, "Currently,", ' ', react_1.default.createElement("a", { href: "https://github.com/bvaughn/react-virtualized-select", target: "_blank", rel: "noopener noreferrer" }, "react-virtualized-select"), ' ', "and", ' ', react_1.default.createElement("a", { href: "https://github.com/HubSpot/react-select-plus", target: "_blank", rel: "noopener noreferrer" }, "react-select-plus"), ' ', "are also supported by the stylesheet. If using react-select v. 2.x.x and above as the selectedSelect, you will need to import the custom styles from @cimpress/react-components/lib/Select/styles and pass them to the SelectWrapper."))); return (react_1.default.createElement(TabbedComponentDoc_1.default, { name: "SelectWrapper", propInfos: propInfos, remarks: remarks }, react_1.default.createElement(selectwrapper_jsx_2.default, null), react_1.default.createElement(react_components_1.CodeExample, { code: selectwrapper_jsx_1.default }))); }; exports.default = SelectWrapperDocs; //# sourceMappingURL=index.js.map