UNPKG

@stihl-design-system/components

Version:

Welcome to the STIHL Design System react component library.

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