UNPKG

@lanaco/lnc-react-ui

Version:

React component library

93 lines (92 loc) 1.96 kB
import { jsx as y } from "react/jsx-runtime"; import { forwardRef as h, useCallback as k } from "react"; import { a as w } from "./CustomStyles-YyM49BGx.js"; import { d as S } from "./index-Dt62UGku.js"; import x from "./DropdownLookup.js"; import { u as C } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js"; const I = h((r, t) => { const { // defaultOptions, // cacheOptions, // loadOptions, styles: o, debounceTime: s = 0, // name, // hideSelectedOptions, // id, // inputId, // value, // readOnly, // tabIndex, isSearchable: m = !0, isClearable: a = !0, // isLoading, // isRtl, // isDisabled, // closeMenuOnSelect, // closeMenuOnScroll, // escapeClearsValue, // filterOption, // formatGroupLabel, // formatOptionLabel, // getOptionLabel, // getOptionValue, // isOptionDisabled, // isOptionSelected, // loadingMessage, // minMenuHeight, // maxMenuHeight, // menuPlacement, // menuPosition, // menuShouldBlockScroll, // menuShouldScrollIntoView, // openMenuOnFocus, // openMenuOnClick, // autoFocus, // placeholder, // noOptionsMessage, // menuIsOpen, // components, // defaultValue, // defaultInputValue, // defaultMenuIsOpen, // delimiter, // onChange, onInputChange: e, // onMenuOpen, // onMenuClose, // onBlur, // onFocus, // onKeyDown, size: l = "small", color: u = "primary", className: i = "", style: p = {}, // children, ...c } = r, n = C(), f = k( S((d, b) => { e == null || e(d, b); }, s) ); return /* @__PURE__ */ y( x, { isMulti: !0, ref: t, styles: o || w, size: l, color: u, theme: n, isSearchable: m, isClearable: a, onInputChange: f, className: i, style: p, ...c } ); }); export { I as default };