UNPKG

@stihl-design-system/components

Version:

Welcome to the STIHL Design System react component library.

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