UNPKG

@lanaco/lnc-react-ui

Version:

React component library

98 lines (97 loc) 2.13 kB
import { jsx as y } from "react/jsx-runtime"; import * as g from "react"; import { forwardRef as m, useCallback as x } from "react"; import { u as h, S as v, a as C } from "./CustomStyles-YyM49BGx.js"; import { c as A } from "./CustomStyles-YyM49BGx.js"; import { _ as M, u as w } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js"; import "./index-B2yaYXE2.js"; import { d as R } from "./index-Dt62UGku.js"; var T = /* @__PURE__ */ m(function(t, r) { var e = h(t); return /* @__PURE__ */ g.createElement(v, M({ ref: r }, e)); }), _ = T; const P = m((t, r) => { const { // options, styles: e, debounceTime: c = 0, // hideSelectedOptions, // id, // inputId, // value, // readOnly, // tabIndex, isSearchable: l = !0, isClearable: n = !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, // onMenuOpen, // onMenuClose, // onBlur, // onFocus, size: i = "small", color: u = "primary", className: p = "", style: f = {}, // children, ...S } = t, d = w(), b = x( R((s, o) => { a == null || a(s, o); }, c) ), a = (s, o) => { b(s, o); }; return /* @__PURE__ */ y( _, { ref: r, styles: e || C, size: i, color: u, theme: d, isSearchable: l, isClearable: n, className: p, style: f, ...S } ); }); export { A as components, P as default };