UNPKG

@stihl-design-system/components

Version:

Welcome to the STIHL Design System react component library.

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