UNPKG

@stihl-design-system/components

Version:

Welcome to the STIHL Design System react component library.

70 lines (69 loc) 2.64 kB
"use client"; import { jsx as z } from "react/jsx-runtime"; import { d as G } from "./chunks/index.D-sRdssb.js"; import { v as H, c as J } from "./chunks/CustomReactSelect.DS9Ey-jr.js"; import { forwardRef as K } from "react"; const Q = K((N, S) => { const t = G.c(38); let a, r, e, d, l, s, p, i, c, u, n, v, f, o, m, b; if (t[0] !== N) { const h = N ?? {}, { id: q, label: A, className: B, disabled: g, dropdownOnFocus: w, filterOption: L, hideLabel: y, invalid: D, lang: E, menuIsOpen: R, popoverContent: j, popoverInfoButtonProps: k, required: F, tabSelectsValue: M, variant: V, ..._ } = h; s = q, i = A, a = B, d = L, u = R, n = j, v = k, o = _, r = g === void 0 ? !1 : g, e = w === void 0 ? !1 : w, l = y === void 0 ? !1 : y, p = D === void 0 ? !1 : D, c = E === void 0 ? "en" : E, f = F === void 0 ? !1 : F, m = M === void 0 ? !0 : M, b = V === void 0 ? "single" : V; const $ = Array.isArray(o.options) ? o.options : []; process.env.NODE_ENV !== "production" && H({ id: s, label: i, options: $, hideLabel: l, popoverContent: n }), t[0] = N, t[1] = a, t[2] = r, t[3] = e, t[4] = d, t[5] = l, t[6] = s, t[7] = p, t[8] = i, t[9] = c, t[10] = u, t[11] = n, t[12] = v, t[13] = f, t[14] = o, t[15] = m, t[16] = b; } else a = t[1], r = t[2], e = t[3], d = t[4], l = t[5], s = t[6], p = t[7], i = t[8], c = t[9], u = t[10], n = t[11], v = t[12], f = t[13], o = t[14], m = t[15], b = t[16]; const O = b === "multi", I = !e || O; let C; t[17] !== a || t[18] !== r || t[19] !== e || t[20] !== d || t[21] !== l || t[22] !== s || t[23] !== p || t[24] !== O || t[25] !== i || t[26] !== c || t[27] !== u || t[28] !== n || t[29] !== v || t[30] !== S || t[31] !== f || t[32] !== o || t[33] !== I || t[34] !== m ? (C = { id: s, label: i, className: a, disabled: r, filterOption: d, hideLabel: l, isMulti: O, invalid: p, lang: c, menuIsOpen: u, openMenuOnClick: e, openMenuOnFocus: e, isClearable: I, required: f, ref: S, tabSelectsValue: m, popoverContent: n, popoverInfoButtonProps: v, ...o }, t[17] = a, t[18] = r, t[19] = e, t[20] = d, t[21] = l, t[22] = s, t[23] = p, t[24] = O, t[25] = i, t[26] = c, t[27] = u, t[28] = n, t[29] = v, t[30] = S, t[31] = f, t[32] = o, t[33] = I, t[34] = m, t[35] = C) : C = t[35]; const P = C; let x; return t[36] !== P ? (x = /* @__PURE__ */ z(J, { ...P }), t[36] = P, t[37] = x) : x = t[37], x; }); Q.displayName = "DSCombobox"; export { Q as DSCombobox };