@stihl-design-system/components 1.0.0-RC.37 → 1.0.0-RC.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,7 +15,7 @@ import { D as ge } from "./Icon.CDLyB7Pv.js";
15
15
  import { D as Qt } from "./Popover.C9tT8xkE.js";
16
16
  import { D as _t } from "./SystemFeedback.CjlARKki.js";
17
17
  import { OptionCheckbox as $t } from "../optioncheckbox.nBVwGv6c.js";
18
- import '../assets/CustomReactSelect.BihX36Uo.css';const Ko = ({
18
+ import '../assets/CustomReactSelect.BihX36Uo.css';const qo = ({
19
19
  id: n,
20
20
  label: e,
21
21
  options: i,
@@ -31,7 +31,7 @@ import '../assets/CustomReactSelect.BihX36Uo.css';const Ko = ({
31
31
  throw new Error(ce("DSCombobox", "The options array must not be empty."));
32
32
  } else throw new Error(ce("DSCombobox", kt("options", "DSCombobox")));
33
33
  u && t && console.warn(ce("DSCombobox", "Using a popover when hideLabel is set to true is not supported."));
34
- }, qo = ["medium", "small"], Kt = {
34
+ }, ea = ["medium", "small"], Kt = {
35
35
  placeholder: "",
36
36
  navigationGuidance: "Use Up and Down to choose options",
37
37
  selectGuidance: "press Enter to select the currently focused option",
@@ -211,17 +211,17 @@ function ne(n, e) {
211
211
  }
212
212
  var an = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
213
213
  function ln(n) {
214
- var e = n.defaultInputValue, i = e === void 0 ? "" : e, u = n.defaultMenuIsOpen, t = u === void 0 ? !1 : u, a = n.defaultValue, l = a === void 0 ? null : a, s = n.inputValue, o = n.menuIsOpen, r = n.onChange, c = n.onInputChange, d = n.onMenuClose, g = n.onMenuOpen, p = n.value, v = ne(n, an), I = ue(s !== void 0 ? s : i), b = ee(I, 2), m = b[0], B = b[1], y = ue(o !== void 0 ? o : t), x = ee(y, 2), V = x[0], F = x[1], S = ue(p !== void 0 ? p : l), A = ee(S, 2), R = A[0], H = A[1], O = T(function(J, U) {
214
+ var e = n.defaultInputValue, i = e === void 0 ? "" : e, u = n.defaultMenuIsOpen, t = u === void 0 ? !1 : u, a = n.defaultValue, l = a === void 0 ? null : a, s = n.inputValue, o = n.menuIsOpen, r = n.onChange, c = n.onInputChange, d = n.onMenuClose, g = n.onMenuOpen, p = n.value, I = ne(n, an), m = ue(s !== void 0 ? s : i), b = ee(m, 2), v = b[0], E = b[1], y = ue(o !== void 0 ? o : t), x = ee(y, 2), B = x[0], F = x[1], V = ue(p !== void 0 ? p : l), A = ee(V, 2), R = A[0], H = A[1], O = T(function(J, U) {
215
215
  typeof r == "function" && r(J, U), H(J);
216
216
  }, [r]), D = T(function(J, U) {
217
217
  var Q;
218
- typeof c == "function" && (Q = c(J, U)), B(Q !== void 0 ? Q : J);
218
+ typeof c == "function" && (Q = c(J, U)), E(Q !== void 0 ? Q : J);
219
219
  }, [c]), Y = T(function() {
220
220
  typeof g == "function" && g(), F(!0);
221
221
  }, [g]), z = T(function() {
222
222
  typeof d == "function" && d(), F(!1);
223
- }, [d]), W = s !== void 0 ? s : m, P = o !== void 0 ? o : V, k = p !== void 0 ? p : R;
224
- return C(C({}, v), {}, {
223
+ }, [d]), W = s !== void 0 ? s : v, P = o !== void 0 ? o : B, k = p !== void 0 ? p : R;
224
+ return C(C({}, I), {}, {
225
225
  inputValue: W,
226
226
  menuIsOpen: P,
227
227
  onChange: O,
@@ -456,23 +456,23 @@ function Pn(n) {
456
456
  maxHeight: e
457
457
  };
458
458
  if (!i || !i.offsetParent) return r;
459
- var c = o.getBoundingClientRect(), d = c.height, g = i.getBoundingClientRect(), p = g.bottom, v = g.height, I = g.top, b = i.offsetParent.getBoundingClientRect(), m = b.top, B = l ? window.innerHeight : An(o), y = pt(o), x = parseInt(getComputedStyle(i).marginBottom, 10), V = parseInt(getComputedStyle(i).marginTop, 10), F = m - V, S = B - I, A = F + y, R = d - y - I, H = p - B + y + x, O = y + I - V, D = 160;
459
+ var c = o.getBoundingClientRect(), d = c.height, g = i.getBoundingClientRect(), p = g.bottom, I = g.height, m = g.top, b = i.offsetParent.getBoundingClientRect(), v = b.top, E = l ? window.innerHeight : An(o), y = pt(o), x = parseInt(getComputedStyle(i).marginBottom, 10), B = parseInt(getComputedStyle(i).marginTop, 10), F = v - B, V = E - m, A = F + y, R = d - y - m, H = p - E + y + x, O = y + m - B, D = 160;
460
460
  switch (t) {
461
461
  case "auto":
462
462
  case "bottom":
463
- if (S >= v)
463
+ if (V >= I)
464
464
  return {
465
465
  placement: "bottom",
466
466
  maxHeight: e
467
467
  };
468
- if (R >= v && !l)
468
+ if (R >= I && !l)
469
469
  return a && me(o, H, D), {
470
470
  placement: "bottom",
471
471
  maxHeight: e
472
472
  };
473
- if (!l && R >= u || l && S >= u) {
473
+ if (!l && R >= u || l && V >= u) {
474
474
  a && me(o, H, D);
475
- var Y = l ? S - x : R - x;
475
+ var Y = l ? V - x : R - x;
476
476
  return {
477
477
  placement: "bottom",
478
478
  maxHeight: Y
@@ -492,19 +492,19 @@ function Pn(n) {
492
492
  };
493
493
  break;
494
494
  case "top":
495
- if (F >= v)
495
+ if (F >= I)
496
496
  return {
497
497
  placement: "top",
498
498
  maxHeight: e
499
499
  };
500
- if (A >= v && !l)
500
+ if (A >= I && !l)
501
501
  return a && me(o, O, D), {
502
502
  placement: "top",
503
503
  maxHeight: e
504
504
  };
505
505
  if (!l && A >= u || l && F >= u) {
506
506
  var P = e;
507
- return (!l && A >= u || l && F >= u) && (P = l ? F - V : A - V), a && me(o, O, D), {
507
+ return (!l && A >= u || l && F >= u) && (P = l ? F - B : A - B), a && me(o, O, D), {
508
508
  placement: "top",
509
509
  maxHeight: P
510
510
  };
@@ -539,26 +539,26 @@ var mt = function(e) {
539
539
  marginTop: s.menuGutter
540
540
  });
541
541
  }, vt = /* @__PURE__ */ Ot(null), Mn = function(e) {
542
- var i = e.children, u = e.minMenuHeight, t = e.maxMenuHeight, a = e.menuPlacement, l = e.menuPosition, s = e.menuShouldScrollIntoView, o = e.theme, r = wt(vt) || {}, c = r.setPortalPlacement, d = $(null), g = ue(t), p = ee(g, 2), v = p[0], I = p[1], b = ue(null), m = ee(b, 2), B = m[0], y = m[1], x = o.spacing.controlHeight;
542
+ var i = e.children, u = e.minMenuHeight, t = e.maxMenuHeight, a = e.menuPlacement, l = e.menuPosition, s = e.menuShouldScrollIntoView, o = e.theme, r = wt(vt) || {}, c = r.setPortalPlacement, d = $(null), g = ue(t), p = ee(g, 2), I = p[0], m = p[1], b = ue(null), v = ee(b, 2), E = v[0], y = v[1], x = o.spacing.controlHeight;
543
543
  return Ze(function() {
544
- var V = d.current;
545
- if (V) {
546
- var F = l === "fixed", S = s && !F, A = Pn({
544
+ var B = d.current;
545
+ if (B) {
546
+ var F = l === "fixed", V = s && !F, A = Pn({
547
547
  maxHeight: t,
548
- menuEl: V,
548
+ menuEl: B,
549
549
  minHeight: u,
550
550
  placement: a,
551
- shouldScroll: S,
551
+ shouldScroll: V,
552
552
  isFixedPosition: F,
553
553
  controlHeight: x
554
554
  });
555
- I(A.maxHeight), y(A.placement), c?.(A.placement);
555
+ m(A.maxHeight), y(A.placement), c?.(A.placement);
556
556
  }
557
557
  }, [t, a, l, s, u, c, x]), i({
558
558
  ref: d,
559
559
  placerProps: C(C({}, e), {}, {
560
- placement: B || mt(a),
561
- maxHeight: v
560
+ placement: E || mt(a),
561
+ maxHeight: I
562
562
  })
563
563
  });
564
564
  }, Hn = function(e) {
@@ -624,19 +624,19 @@ var mt = function(e) {
624
624
  zIndex: 1
625
625
  };
626
626
  }, kn = function(e) {
627
- var i = e.appendTo, u = e.children, t = e.controlElement, a = e.innerProps, l = e.menuPlacement, s = e.menuPosition, o = $(null), r = $(null), c = ue(mt(l)), d = ee(c, 2), g = d[0], p = d[1], v = oe(function() {
627
+ var i = e.appendTo, u = e.children, t = e.controlElement, a = e.innerProps, l = e.menuPlacement, s = e.menuPosition, o = $(null), r = $(null), c = ue(mt(l)), d = ee(c, 2), g = d[0], p = d[1], I = oe(function() {
628
628
  return {
629
629
  setPortalPlacement: p
630
630
  };
631
- }, []), I = ue(null), b = ee(I, 2), m = b[0], B = b[1], y = T(function() {
631
+ }, []), m = ue(null), b = ee(m, 2), v = b[0], E = b[1], y = T(function() {
632
632
  if (t) {
633
- var S = yn(t), A = s === "fixed" ? 0 : window.pageYOffset, R = S[g] + A;
634
- (R !== m?.offset || S.left !== m?.rect.left || S.width !== m?.rect.width) && B({
633
+ var V = yn(t), A = s === "fixed" ? 0 : window.pageYOffset, R = V[g] + A;
634
+ (R !== v?.offset || V.left !== v?.rect.left || V.width !== v?.rect.width) && E({
635
635
  offset: R,
636
- rect: S
636
+ rect: V
637
637
  });
638
638
  }
639
- }, [t, s, g, m?.offset, m?.rect.left, m?.rect.width]);
639
+ }, [t, s, g, v?.offset, v?.rect.left, v?.rect.width]);
640
640
  Ze(function() {
641
641
  y();
642
642
  }, [y]);
@@ -648,21 +648,21 @@ var mt = function(e) {
648
648
  Ze(function() {
649
649
  x();
650
650
  }, [x]);
651
- var V = T(function(S) {
652
- o.current = S, x();
651
+ var B = T(function(V) {
652
+ o.current = V, x();
653
653
  }, [x]);
654
- if (!i && s !== "fixed" || !m) return null;
654
+ if (!i && s !== "fixed" || !v) return null;
655
655
  var F = f("div", h({
656
- ref: V
656
+ ref: B
657
657
  }, Z(C(C({}, e), {}, {
658
- offset: m.offset,
658
+ offset: v.offset,
659
659
  position: s,
660
- rect: m.rect
660
+ rect: v.rect
661
661
  }), "menuPortal", {
662
662
  "menu-portal": !0
663
663
  }), a), u);
664
664
  return f(vt.Provider, {
665
- value: v
665
+ value: I
666
666
  }, i ? /* @__PURE__ */ Lt(F, i) : F);
667
667
  }, jn = function(e) {
668
668
  var i = e.isDisabled, u = e.isRtl;
@@ -1214,8 +1214,8 @@ var Qi = process.env.NODE_ENV === "production" ? {
1214
1214
  }
1215
1215
  },
1216
1216
  onFocus: function(e) {
1217
- var i = e.context, u = e.focused, t = e.options, a = e.label, l = a === void 0 ? "" : a, s = e.selectValue, o = e.isDisabled, r = e.isSelected, c = e.isAppleDevice, d = function(I, b) {
1218
- return I && I.length ? "".concat(I.indexOf(b) + 1, " of ").concat(I.length) : "";
1217
+ var i = e.context, u = e.focused, t = e.options, a = e.label, l = a === void 0 ? "" : a, s = e.selectValue, o = e.isDisabled, r = e.isSelected, c = e.isAppleDevice, d = function(m, b) {
1218
+ return m && m.length ? "".concat(m.indexOf(b) + 1, " of ").concat(m.length) : "";
1219
1219
  };
1220
1220
  if (i === "value" && s)
1221
1221
  return "value ".concat(l, " focused, ").concat(d(s, u), ".");
@@ -1230,30 +1230,30 @@ var Qi = process.env.NODE_ENV === "production" ? {
1230
1230
  return "".concat(u).concat(i ? " for search term " + i : "", ".");
1231
1231
  }
1232
1232
  }, Ki = function(e) {
1233
- var i = e.ariaSelection, u = e.focusedOption, t = e.focusedValue, a = e.focusableOptions, l = e.isFocused, s = e.selectValue, o = e.selectProps, r = e.id, c = e.isAppleDevice, d = o.ariaLiveMessages, g = o.getOptionLabel, p = o.inputValue, v = o.isMulti, I = o.isOptionDisabled, b = o.isSearchable, m = o.menuIsOpen, B = o.options, y = o.screenReaderStatus, x = o.tabSelectsValue, V = o.isLoading, F = o["aria-label"], S = o["aria-live"], A = oe(function() {
1233
+ var i = e.ariaSelection, u = e.focusedOption, t = e.focusedValue, a = e.focusableOptions, l = e.isFocused, s = e.selectValue, o = e.selectProps, r = e.id, c = e.isAppleDevice, d = o.ariaLiveMessages, g = o.getOptionLabel, p = o.inputValue, I = o.isMulti, m = o.isOptionDisabled, b = o.isSearchable, v = o.menuIsOpen, E = o.options, y = o.screenReaderStatus, x = o.tabSelectsValue, B = o.isLoading, F = o["aria-label"], V = o["aria-live"], A = oe(function() {
1234
1234
  return C(C({}, $i), d || {});
1235
1235
  }, [d]), R = oe(function() {
1236
1236
  var W = "";
1237
1237
  if (i && A.onChange) {
1238
1238
  var P = i.option, k = i.options, J = i.removedValue, U = i.removedValues, Q = i.value, le = function(q) {
1239
1239
  return Array.isArray(q) ? null : q;
1240
- }, N = J || P || le(Q), w = N ? g(N) : "", E = k || U || void 0, _ = E ? E.map(g) : [], j = C({
1240
+ }, N = J || P || le(Q), w = N ? g(N) : "", S = k || U || void 0, _ = S ? S.map(g) : [], j = C({
1241
1241
  // multiSelected items are usually items that have already been selected
1242
1242
  // or set by the user as a default value so we assume they are not disabled
1243
- isDisabled: N && I(N, s),
1243
+ isDisabled: N && m(N, s),
1244
1244
  label: w,
1245
1245
  labels: _
1246
1246
  }, i);
1247
1247
  W = A.onChange(j);
1248
1248
  }
1249
1249
  return W;
1250
- }, [i, A, I, s, g]), H = oe(function() {
1250
+ }, [i, A, m, s, g]), H = oe(function() {
1251
1251
  var W = "", P = u || t, k = !!(u && s && s.includes(u));
1252
1252
  if (P && A.onFocus) {
1253
1253
  var J = {
1254
1254
  focused: P,
1255
1255
  label: g(P),
1256
- isDisabled: I(P, s),
1256
+ isDisabled: m(P, s),
1257
1257
  isSelected: k,
1258
1258
  options: a,
1259
1259
  context: P === u ? "menu" : "value",
@@ -1263,9 +1263,9 @@ var Qi = process.env.NODE_ENV === "production" ? {
1263
1263
  W = A.onFocus(J);
1264
1264
  }
1265
1265
  return W;
1266
- }, [u, t, g, I, A, a, s, c]), O = oe(function() {
1266
+ }, [u, t, g, m, A, a, s, c]), O = oe(function() {
1267
1267
  var W = "";
1268
- if (m && B.length && !V && A.onFilter) {
1268
+ if (v && E.length && !B && A.onFilter) {
1269
1269
  var P = y({
1270
1270
  count: a.length
1271
1271
  });
@@ -1275,22 +1275,22 @@ var Qi = process.env.NODE_ENV === "production" ? {
1275
1275
  });
1276
1276
  }
1277
1277
  return W;
1278
- }, [a, p, m, A, B, y, V]), D = i?.action === "initial-input-focus", Y = oe(function() {
1278
+ }, [a, p, v, A, E, y, B]), D = i?.action === "initial-input-focus", Y = oe(function() {
1279
1279
  var W = "";
1280
1280
  if (A.guidance) {
1281
- var P = t ? "value" : m ? "menu" : "input";
1281
+ var P = t ? "value" : v ? "menu" : "input";
1282
1282
  W = A.guidance({
1283
1283
  "aria-label": F,
1284
1284
  context: P,
1285
- isDisabled: u && I(u, s),
1286
- isMulti: v,
1285
+ isDisabled: u && m(u, s),
1286
+ isMulti: I,
1287
1287
  isSearchable: b,
1288
1288
  tabSelectsValue: x,
1289
1289
  isInitialFocus: D
1290
1290
  });
1291
1291
  }
1292
1292
  return W;
1293
- }, [F, u, t, v, I, b, m, A, s, x, D]), z = f(Re, null, f("span", {
1293
+ }, [F, u, t, I, m, b, v, A, s, x, D]), z = f(Re, null, f("span", {
1294
1294
  id: "aria-selection"
1295
1295
  }, R), f("span", {
1296
1296
  id: "aria-focused"
@@ -1302,7 +1302,7 @@ var Qi = process.env.NODE_ENV === "production" ? {
1302
1302
  return f(Re, null, f(Qe, {
1303
1303
  id: r
1304
1304
  }, D && z), f(Qe, {
1305
- "aria-live": S,
1305
+ "aria-live": V,
1306
1306
  "aria-atomic": "false",
1307
1307
  "aria-relevant": "additions text",
1308
1308
  role: "log"
@@ -1618,36 +1618,36 @@ var au = function(e) {
1618
1618
  e.cancelable && e.preventDefault(), e.stopPropagation();
1619
1619
  };
1620
1620
  function lu(n) {
1621
- var e = n.isEnabled, i = n.onBottomArrive, u = n.onBottomLeave, t = n.onTopArrive, a = n.onTopLeave, l = $(!1), s = $(!1), o = $(0), r = $(null), c = T(function(b, m) {
1621
+ var e = n.isEnabled, i = n.onBottomArrive, u = n.onBottomLeave, t = n.onTopArrive, a = n.onTopLeave, l = $(!1), s = $(!1), o = $(0), r = $(null), c = T(function(b, v) {
1622
1622
  if (r.current !== null) {
1623
- var B = r.current, y = B.scrollTop, x = B.scrollHeight, V = B.clientHeight, F = r.current, S = m > 0, A = x - V - y, R = !1;
1624
- A > m && l.current && (u && u(b), l.current = !1), S && s.current && (a && a(b), s.current = !1), S && m > A ? (i && !l.current && i(b), F.scrollTop = x, R = !0, l.current = !0) : !S && -m > y && (t && !s.current && t(b), F.scrollTop = 0, R = !0, s.current = !0), R && au(b);
1623
+ var E = r.current, y = E.scrollTop, x = E.scrollHeight, B = E.clientHeight, F = r.current, V = v > 0, A = x - B - y, R = !1;
1624
+ A > v && l.current && (u && u(b), l.current = !1), V && s.current && (a && a(b), s.current = !1), V && v > A ? (i && !l.current && i(b), F.scrollTop = x, R = !0, l.current = !0) : !V && -v > y && (t && !s.current && t(b), F.scrollTop = 0, R = !0, s.current = !0), R && au(b);
1625
1625
  }
1626
1626
  }, [i, u, t, a]), d = T(function(b) {
1627
1627
  c(b, b.deltaY);
1628
1628
  }, [c]), g = T(function(b) {
1629
1629
  o.current = b.changedTouches[0].clientY;
1630
1630
  }, []), p = T(function(b) {
1631
- var m = o.current - b.changedTouches[0].clientY;
1632
- c(b, m);
1633
- }, [c]), v = T(function(b) {
1631
+ var v = o.current - b.changedTouches[0].clientY;
1632
+ c(b, v);
1633
+ }, [c]), I = T(function(b) {
1634
1634
  if (b) {
1635
- var m = En ? {
1635
+ var v = En ? {
1636
1636
  passive: !1
1637
1637
  } : !1;
1638
- b.addEventListener("wheel", d, m), b.addEventListener("touchstart", g, m), b.addEventListener("touchmove", p, m);
1638
+ b.addEventListener("wheel", d, v), b.addEventListener("touchstart", g, v), b.addEventListener("touchmove", p, v);
1639
1639
  }
1640
- }, [p, g, d]), I = T(function(b) {
1640
+ }, [p, g, d]), m = T(function(b) {
1641
1641
  b && (b.removeEventListener("wheel", d, !1), b.removeEventListener("touchstart", g, !1), b.removeEventListener("touchmove", p, !1));
1642
1642
  }, [p, g, d]);
1643
1643
  return lt(function() {
1644
1644
  if (e) {
1645
1645
  var b = r.current;
1646
- return v(b), function() {
1647
- I(b);
1646
+ return I(b), function() {
1647
+ m(b);
1648
1648
  };
1649
1649
  }
1650
- }, [e, v, I]), function(b) {
1650
+ }, [e, I, m]), function(b) {
1651
1651
  r.current = b;
1652
1652
  };
1653
1653
  }
@@ -1679,14 +1679,14 @@ function ru(n) {
1679
1679
  var e = n.isEnabled, i = n.accountForScrollbars, u = i === void 0 ? !0 : i, t = $({}), a = $(null), l = T(function(o) {
1680
1680
  if (it) {
1681
1681
  var r = document.body, c = r && r.style;
1682
- if (u && $e.forEach(function(v) {
1683
- var I = c && c[v];
1684
- t.current[v] = I;
1682
+ if (u && $e.forEach(function(I) {
1683
+ var m = c && c[I];
1684
+ t.current[I] = m;
1685
1685
  }), u && de < 1) {
1686
1686
  var d = parseInt(t.current.paddingRight, 10) || 0, g = document.body ? document.body.clientWidth : 0, p = window.innerWidth - g + d || 0;
1687
- Object.keys(Ke).forEach(function(v) {
1688
- var I = Ke[v];
1689
- c && (c[v] = I);
1687
+ Object.keys(Ke).forEach(function(I) {
1688
+ var m = Ke[I];
1689
+ c && (c[I] = m);
1690
1690
  }), c && (c.paddingRight = "".concat(p, "px"));
1691
1691
  }
1692
1692
  r && nt() && (r.addEventListener("touchmove", qe, re), o && (o.addEventListener("touchstart", tt, re), o.addEventListener("touchmove", et, re))), de += 1;
@@ -2030,10 +2030,10 @@ var Pt = function(e) {
2030
2030
  var c = t.props, d = c.onChange, g = c.name;
2031
2031
  r.name = g, t.ariaOnChange(o, r), d(o, r);
2032
2032
  }, t.setValue = function(o, r, c) {
2033
- var d = t.props, g = d.closeMenuOnSelect, p = d.isMulti, v = d.inputValue;
2033
+ var d = t.props, g = d.closeMenuOnSelect, p = d.isMulti, I = d.inputValue;
2034
2034
  t.onInputChange("", {
2035
2035
  action: "set-value",
2036
- prevInputValue: v
2036
+ prevInputValue: I
2037
2037
  }), g && (t.setState({
2038
2038
  inputIsHiddenAfterUpdate: !p
2039
2039
  }), t.onMenuClose()), t.setState({
@@ -2043,13 +2043,13 @@ var Pt = function(e) {
2043
2043
  option: c
2044
2044
  });
2045
2045
  }, t.selectOption = function(o) {
2046
- var r = t.props, c = r.blurInputOnSelect, d = r.isMulti, g = r.name, p = t.state.selectValue, v = d && t.isOptionSelected(o, p), I = t.isOptionDisabled(o, p);
2047
- if (v) {
2046
+ var r = t.props, c = r.blurInputOnSelect, d = r.isMulti, g = r.name, p = t.state.selectValue, I = d && t.isOptionSelected(o, p), m = t.isOptionDisabled(o, p);
2047
+ if (I) {
2048
2048
  var b = t.getOptionValue(o);
2049
- t.setValue(p.filter(function(m) {
2050
- return t.getOptionValue(m) !== b;
2049
+ t.setValue(p.filter(function(v) {
2050
+ return t.getOptionValue(v) !== b;
2051
2051
  }), "deselect-option", o);
2052
- } else if (!I)
2052
+ } else if (!m)
2053
2053
  d ? t.setValue([].concat(Me(p), [o]), "select-option", o) : t.setValue(o, "select-option");
2054
2054
  else {
2055
2055
  t.ariaOnChange(o, {
@@ -2061,8 +2061,8 @@ var Pt = function(e) {
2061
2061
  }
2062
2062
  c && t.blurInput();
2063
2063
  }, t.removeValue = function(o) {
2064
- var r = t.props.isMulti, c = t.state.selectValue, d = t.getOptionValue(o), g = c.filter(function(v) {
2065
- return t.getOptionValue(v) !== d;
2064
+ var r = t.props.isMulti, c = t.state.selectValue, d = t.getOptionValue(o), g = c.filter(function(I) {
2065
+ return t.getOptionValue(I) !== d;
2066
2066
  }), p = fe(r, g, g[0] || null);
2067
2067
  t.onChange(p, {
2068
2068
  action: "remove-value",
@@ -2202,8 +2202,8 @@ var Pt = function(e) {
2202
2202
  }, t.onValueInputFocus = function(o) {
2203
2203
  o.preventDefault(), o.stopPropagation(), t.focus();
2204
2204
  }, t.onKeyDown = function(o) {
2205
- var r = t.props, c = r.isMulti, d = r.backspaceRemovesValue, g = r.escapeClearsValue, p = r.inputValue, v = r.isClearable, I = r.isDisabled, b = r.menuIsOpen, m = r.onKeyDown, B = r.tabSelectsValue, y = r.openMenuOnFocus, x = t.state, V = x.focusedOption, F = x.focusedValue, S = x.selectValue;
2206
- if (!I && !(typeof m == "function" && (m(o), o.defaultPrevented))) {
2205
+ var r = t.props, c = r.isMulti, d = r.backspaceRemovesValue, g = r.escapeClearsValue, p = r.inputValue, I = r.isClearable, m = r.isDisabled, b = r.menuIsOpen, v = r.onKeyDown, E = r.tabSelectsValue, y = r.openMenuOnFocus, x = t.state, B = x.focusedOption, F = x.focusedValue, V = x.selectValue;
2206
+ if (!m && !(typeof v == "function" && (v(o), o.defaultPrevented))) {
2207
2207
  switch (t.blockOptionHover = !0, o.key) {
2208
2208
  case "ArrowLeft":
2209
2209
  if (!c || p) return;
@@ -2220,22 +2220,22 @@ var Pt = function(e) {
2220
2220
  t.removeValue(F);
2221
2221
  else {
2222
2222
  if (!d) return;
2223
- c ? t.popValue() : v && t.clearValue();
2223
+ c ? t.popValue() : I && t.clearValue();
2224
2224
  }
2225
2225
  break;
2226
2226
  case "Tab":
2227
- if (t.isComposing || o.shiftKey || !b || !B || !V || // don't capture the event if the menu opens on focus and the focused
2227
+ if (t.isComposing || o.shiftKey || !b || !E || !B || // don't capture the event if the menu opens on focus and the focused
2228
2228
  // option is already selected; it breaks the flow of navigation
2229
- y && t.isOptionSelected(V, S))
2229
+ y && t.isOptionSelected(B, V))
2230
2230
  return;
2231
- t.selectOption(V);
2231
+ t.selectOption(B);
2232
2232
  break;
2233
2233
  case "Enter":
2234
2234
  if (o.keyCode === 229)
2235
2235
  break;
2236
2236
  if (b) {
2237
- if (!V || t.isComposing) return;
2238
- t.selectOption(V);
2237
+ if (!B || t.isComposing) return;
2238
+ t.selectOption(B);
2239
2239
  break;
2240
2240
  }
2241
2241
  return;
@@ -2245,7 +2245,7 @@ var Pt = function(e) {
2245
2245
  }), t.onInputChange("", {
2246
2246
  action: "menu-close",
2247
2247
  prevInputValue: p
2248
- }), t.onMenuClose()) : v && g && t.clearValue();
2248
+ }), t.onMenuClose()) : I && g && t.clearValue();
2249
2249
  break;
2250
2250
  case " ":
2251
2251
  if (p)
@@ -2254,8 +2254,8 @@ var Pt = function(e) {
2254
2254
  t.openMenu("first");
2255
2255
  break;
2256
2256
  }
2257
- if (!V) return;
2258
- t.selectOption(V);
2257
+ if (!B) return;
2258
+ t.selectOption(B);
2259
2259
  break;
2260
2260
  case "ArrowUp":
2261
2261
  b ? t.focusOption("up") : t.openMenu("last");
@@ -2419,17 +2419,17 @@ var Pt = function(e) {
2419
2419
  }, {
2420
2420
  key: "getCommonProps",
2421
2421
  value: function() {
2422
- var t = this.clearValue, a = this.cx, l = this.getStyles, s = this.getClassNames, o = this.getValue, r = this.selectOption, c = this.setValue, d = this.props, g = d.isMulti, p = d.isRtl, v = d.options, I = this.hasValue();
2422
+ var t = this.clearValue, a = this.cx, l = this.getStyles, s = this.getClassNames, o = this.getValue, r = this.selectOption, c = this.setValue, d = this.props, g = d.isMulti, p = d.isRtl, I = d.options, m = this.hasValue();
2423
2423
  return {
2424
2424
  clearValue: t,
2425
2425
  cx: a,
2426
2426
  getStyles: l,
2427
2427
  getClassNames: s,
2428
2428
  getValue: o,
2429
- hasValue: I,
2429
+ hasValue: m,
2430
2430
  isMulti: g,
2431
2431
  isRtl: p,
2432
- options: v,
2432
+ options: I,
2433
2433
  selectOption: r,
2434
2434
  selectProps: d,
2435
2435
  setValue: c,
@@ -2526,7 +2526,7 @@ var Pt = function(e) {
2526
2526
  // Renderers
2527
2527
  // ==============================
2528
2528
  function() {
2529
- var t = this.props, a = t.isDisabled, l = t.isSearchable, s = t.inputId, o = t.inputValue, r = t.tabIndex, c = t.form, d = t.menuIsOpen, g = t.required, p = this.getComponents(), v = p.Input, I = this.state, b = I.inputIsHidden, m = I.ariaSelection, B = this.commonProps, y = s || this.getElementId("input"), x = C(C(C({
2529
+ var t = this.props, a = t.isDisabled, l = t.isSearchable, s = t.inputId, o = t.inputValue, r = t.tabIndex, c = t.form, d = t.menuIsOpen, g = t.required, p = this.getComponents(), I = p.Input, m = this.state, b = m.inputIsHidden, v = m.ariaSelection, E = this.commonProps, y = s || this.getElementId("input"), x = C(C(C({
2530
2530
  "aria-autocomplete": "list",
2531
2531
  "aria-expanded": d,
2532
2532
  "aria-haspopup": !0,
@@ -2541,12 +2541,12 @@ var Pt = function(e) {
2541
2541
  "aria-controls": this.getElementId("listbox")
2542
2542
  }), !l && {
2543
2543
  "aria-readonly": !0
2544
- }), this.hasValue() ? m?.action === "initial-input-focus" && {
2544
+ }), this.hasValue() ? v?.action === "initial-input-focus" && {
2545
2545
  "aria-describedby": this.getElementId("live-region")
2546
2546
  } : {
2547
2547
  "aria-describedby": this.getElementId("placeholder")
2548
2548
  });
2549
- return l ? /* @__PURE__ */ X.createElement(v, h({}, B, {
2549
+ return l ? /* @__PURE__ */ X.createElement(I, h({}, E, {
2550
2550
  autoCapitalize: "none",
2551
2551
  autoComplete: "off",
2552
2552
  autoCorrect: "off",
@@ -2579,19 +2579,19 @@ var Pt = function(e) {
2579
2579
  }, {
2580
2580
  key: "renderPlaceholderOrValue",
2581
2581
  value: function() {
2582
- var t = this, a = this.getComponents(), l = a.MultiValue, s = a.MultiValueContainer, o = a.MultiValueLabel, r = a.MultiValueRemove, c = a.SingleValue, d = a.Placeholder, g = this.commonProps, p = this.props, v = p.controlShouldRenderValue, I = p.isDisabled, b = p.isMulti, m = p.inputValue, B = p.placeholder, y = this.state, x = y.selectValue, V = y.focusedValue, F = y.isFocused;
2583
- if (!this.hasValue() || !v)
2584
- return m ? null : /* @__PURE__ */ X.createElement(d, h({}, g, {
2582
+ var t = this, a = this.getComponents(), l = a.MultiValue, s = a.MultiValueContainer, o = a.MultiValueLabel, r = a.MultiValueRemove, c = a.SingleValue, d = a.Placeholder, g = this.commonProps, p = this.props, I = p.controlShouldRenderValue, m = p.isDisabled, b = p.isMulti, v = p.inputValue, E = p.placeholder, y = this.state, x = y.selectValue, B = y.focusedValue, F = y.isFocused;
2583
+ if (!this.hasValue() || !I)
2584
+ return v ? null : /* @__PURE__ */ X.createElement(d, h({}, g, {
2585
2585
  key: "placeholder",
2586
- isDisabled: I,
2586
+ isDisabled: m,
2587
2587
  isFocused: F,
2588
2588
  innerProps: {
2589
2589
  id: this.getElementId("placeholder")
2590
2590
  }
2591
- }), B);
2591
+ }), E);
2592
2592
  if (b)
2593
2593
  return x.map(function(A, R) {
2594
- var H = A === V, O = "".concat(t.getOptionLabel(A), "-").concat(t.getOptionValue(A));
2594
+ var H = A === B, O = "".concat(t.getOptionLabel(A), "-").concat(t.getOptionValue(A));
2595
2595
  return /* @__PURE__ */ X.createElement(l, h({}, g, {
2596
2596
  components: {
2597
2597
  Container: s,
@@ -2599,7 +2599,7 @@ var Pt = function(e) {
2599
2599
  Remove: r
2600
2600
  },
2601
2601
  isFocused: H,
2602
- isDisabled: I,
2602
+ isDisabled: m,
2603
2603
  key: O,
2604
2604
  index: R,
2605
2605
  removeProps: {
@@ -2616,13 +2616,13 @@ var Pt = function(e) {
2616
2616
  data: A
2617
2617
  }), t.formatOptionLabel(A, "value"));
2618
2618
  });
2619
- if (m)
2619
+ if (v)
2620
2620
  return null;
2621
- var S = x[0];
2621
+ var V = x[0];
2622
2622
  return /* @__PURE__ */ X.createElement(c, h({}, g, {
2623
- data: S,
2624
- isDisabled: I
2625
- }), this.formatOptionLabel(S, "value"));
2623
+ data: V,
2624
+ isDisabled: m
2625
+ }), this.formatOptionLabel(V, "value"));
2626
2626
  }
2627
2627
  }, {
2628
2628
  key: "renderClearIndicator",
@@ -2684,14 +2684,14 @@ var Pt = function(e) {
2684
2684
  }, {
2685
2685
  key: "renderMenu",
2686
2686
  value: function() {
2687
- var t = this, a = this.getComponents(), l = a.Group, s = a.GroupHeading, o = a.Menu, r = a.MenuList, c = a.MenuPortal, d = a.LoadingMessage, g = a.NoOptionsMessage, p = a.Option, v = this.commonProps, I = this.state.focusedOption, b = this.props, m = b.captureMenuScroll, B = b.inputValue, y = b.isLoading, x = b.loadingMessage, V = b.minMenuHeight, F = b.maxMenuHeight, S = b.menuIsOpen, A = b.menuPlacement, R = b.menuPosition, H = b.menuPortalTarget, O = b.menuShouldBlockScroll, D = b.menuShouldScrollIntoView, Y = b.noOptionsMessage, z = b.onMenuScrollToTop, W = b.onMenuScrollToBottom;
2688
- if (!S) return null;
2689
- var P = function(w, E) {
2690
- var _ = w.type, j = w.data, ie = w.isDisabled, q = w.isSelected, pe = w.label, Nt = w.value, Oe = I === j, we = ie ? void 0 : function() {
2687
+ var t = this, a = this.getComponents(), l = a.Group, s = a.GroupHeading, o = a.Menu, r = a.MenuList, c = a.MenuPortal, d = a.LoadingMessage, g = a.NoOptionsMessage, p = a.Option, I = this.commonProps, m = this.state.focusedOption, b = this.props, v = b.captureMenuScroll, E = b.inputValue, y = b.isLoading, x = b.loadingMessage, B = b.minMenuHeight, F = b.maxMenuHeight, V = b.menuIsOpen, A = b.menuPlacement, R = b.menuPosition, H = b.menuPortalTarget, O = b.menuShouldBlockScroll, D = b.menuShouldScrollIntoView, Y = b.noOptionsMessage, z = b.onMenuScrollToTop, W = b.onMenuScrollToBottom;
2688
+ if (!V) return null;
2689
+ var P = function(w, S) {
2690
+ var _ = w.type, j = w.data, ie = w.isDisabled, q = w.isSelected, pe = w.label, Nt = w.value, Oe = m === j, we = ie ? void 0 : function() {
2691
2691
  return t.onOptionHover(j);
2692
2692
  }, Mt = ie ? void 0 : function() {
2693
2693
  return t.selectOption(j);
2694
- }, Te = "".concat(t.getElementId("option"), "-").concat(E), Ht = {
2694
+ }, Te = "".concat(t.getElementId("option"), "-").concat(S), Ht = {
2695
2695
  id: Te,
2696
2696
  onClick: Mt,
2697
2697
  onMouseMove: we,
@@ -2701,7 +2701,7 @@ var Pt = function(e) {
2701
2701
  "aria-selected": t.state.isAppleDevice ? void 0 : q
2702
2702
  // is not supported on Apple devices
2703
2703
  };
2704
- return /* @__PURE__ */ X.createElement(p, h({}, v, {
2704
+ return /* @__PURE__ */ X.createElement(p, h({}, I, {
2705
2705
  innerProps: Ht,
2706
2706
  data: j,
2707
2707
  isDisabled: ie,
@@ -2717,11 +2717,11 @@ var Pt = function(e) {
2717
2717
  if (this.hasOptions())
2718
2718
  k = this.getCategorizedOptions().map(function(N) {
2719
2719
  if (N.type === "group") {
2720
- var w = N.data, E = N.options, _ = N.index, j = "".concat(t.getElementId("group"), "-").concat(_), ie = "".concat(j, "-heading");
2721
- return /* @__PURE__ */ X.createElement(l, h({}, v, {
2720
+ var w = N.data, S = N.options, _ = N.index, j = "".concat(t.getElementId("group"), "-").concat(_), ie = "".concat(j, "-heading");
2721
+ return /* @__PURE__ */ X.createElement(l, h({}, I, {
2722
2722
  key: j,
2723
2723
  data: w,
2724
- options: E,
2724
+ options: S,
2725
2725
  Heading: s,
2726
2726
  headingProps: {
2727
2727
  id: ie,
@@ -2736,26 +2736,26 @@ var Pt = function(e) {
2736
2736
  });
2737
2737
  else if (y) {
2738
2738
  var J = x({
2739
- inputValue: B
2739
+ inputValue: E
2740
2740
  });
2741
2741
  if (J === null) return null;
2742
- k = /* @__PURE__ */ X.createElement(d, v, J);
2742
+ k = /* @__PURE__ */ X.createElement(d, I, J);
2743
2743
  } else {
2744
2744
  var U = Y({
2745
- inputValue: B
2745
+ inputValue: E
2746
2746
  });
2747
2747
  if (U === null) return null;
2748
- k = /* @__PURE__ */ X.createElement(g, v, U);
2748
+ k = /* @__PURE__ */ X.createElement(g, I, U);
2749
2749
  }
2750
2750
  var Q = {
2751
- minMenuHeight: V,
2751
+ minMenuHeight: B,
2752
2752
  maxMenuHeight: F,
2753
2753
  menuPlacement: A,
2754
2754
  menuPosition: R,
2755
2755
  menuShouldScrollIntoView: D
2756
- }, le = /* @__PURE__ */ X.createElement(Mn, h({}, v, Q), function(N) {
2757
- var w = N.ref, E = N.placerProps, _ = E.placement, j = E.maxHeight;
2758
- return /* @__PURE__ */ X.createElement(o, h({}, v, Q, {
2756
+ }, le = /* @__PURE__ */ X.createElement(Mn, h({}, I, Q), function(N) {
2757
+ var w = N.ref, S = N.placerProps, _ = S.placement, j = S.maxHeight;
2758
+ return /* @__PURE__ */ X.createElement(o, h({}, I, Q, {
2759
2759
  innerRef: w,
2760
2760
  innerProps: {
2761
2761
  onMouseDown: t.onMenuMouseDown,
@@ -2764,27 +2764,27 @@ var Pt = function(e) {
2764
2764
  isLoading: y,
2765
2765
  placement: _
2766
2766
  }), /* @__PURE__ */ X.createElement(bu, {
2767
- captureEnabled: m,
2767
+ captureEnabled: v,
2768
2768
  onTopArrive: z,
2769
2769
  onBottomArrive: W,
2770
2770
  lockEnabled: O
2771
2771
  }, function(ie) {
2772
- return /* @__PURE__ */ X.createElement(r, h({}, v, {
2772
+ return /* @__PURE__ */ X.createElement(r, h({}, I, {
2773
2773
  innerRef: function(pe) {
2774
2774
  t.getMenuListRef(pe), ie(pe);
2775
2775
  },
2776
2776
  innerProps: {
2777
2777
  role: "listbox",
2778
- "aria-multiselectable": v.isMulti,
2778
+ "aria-multiselectable": I.isMulti,
2779
2779
  id: t.getElementId("listbox")
2780
2780
  },
2781
2781
  isLoading: y,
2782
2782
  maxHeight: j,
2783
- focusedOption: I
2783
+ focusedOption: m
2784
2784
  }), k);
2785
2785
  }));
2786
2786
  });
2787
- return H || R === "fixed" ? /* @__PURE__ */ X.createElement(c, h({}, v, {
2787
+ return H || R === "fixed" ? /* @__PURE__ */ X.createElement(c, h({}, I, {
2788
2788
  appendTo: H,
2789
2789
  controlElement: this.controlRef,
2790
2790
  menuPlacement: A,
@@ -2803,8 +2803,8 @@ var Pt = function(e) {
2803
2803
  if (!(!r || s))
2804
2804
  if (o)
2805
2805
  if (l) {
2806
- var g = d.map(function(I) {
2807
- return t.getOptionValue(I);
2806
+ var g = d.map(function(m) {
2807
+ return t.getOptionValue(m);
2808
2808
  }).join(l);
2809
2809
  return /* @__PURE__ */ X.createElement("input", {
2810
2810
  name: r,
@@ -2812,12 +2812,12 @@ var Pt = function(e) {
2812
2812
  value: g
2813
2813
  });
2814
2814
  } else {
2815
- var p = d.length > 0 ? d.map(function(I, b) {
2815
+ var p = d.length > 0 ? d.map(function(m, b) {
2816
2816
  return /* @__PURE__ */ X.createElement("input", {
2817
2817
  key: "i-".concat(b),
2818
2818
  name: r,
2819
2819
  type: "hidden",
2820
- value: t.getOptionValue(I)
2820
+ value: t.getOptionValue(m)
2821
2821
  });
2822
2822
  }) : /* @__PURE__ */ X.createElement("input", {
2823
2823
  name: r,
@@ -2827,11 +2827,11 @@ var Pt = function(e) {
2827
2827
  return /* @__PURE__ */ X.createElement("div", null, p);
2828
2828
  }
2829
2829
  else {
2830
- var v = d[0] ? this.getOptionValue(d[0]) : "";
2830
+ var I = d[0] ? this.getOptionValue(d[0]) : "";
2831
2831
  return /* @__PURE__ */ X.createElement("input", {
2832
2832
  name: r,
2833
2833
  type: "hidden",
2834
- value: v
2834
+ value: I
2835
2835
  });
2836
2836
  }
2837
2837
  }
@@ -2853,41 +2853,41 @@ var Pt = function(e) {
2853
2853
  }, {
2854
2854
  key: "render",
2855
2855
  value: function() {
2856
- var t = this.getComponents(), a = t.Control, l = t.IndicatorsContainer, s = t.SelectContainer, o = t.ValueContainer, r = this.props, c = r.className, d = r.id, g = r.isDisabled, p = r.menuIsOpen, v = this.state.isFocused, I = this.commonProps = this.getCommonProps();
2857
- return /* @__PURE__ */ X.createElement(s, h({}, I, {
2856
+ var t = this.getComponents(), a = t.Control, l = t.IndicatorsContainer, s = t.SelectContainer, o = t.ValueContainer, r = this.props, c = r.className, d = r.id, g = r.isDisabled, p = r.menuIsOpen, I = this.state.isFocused, m = this.commonProps = this.getCommonProps();
2857
+ return /* @__PURE__ */ X.createElement(s, h({}, m, {
2858
2858
  className: c,
2859
2859
  innerProps: {
2860
2860
  id: d,
2861
2861
  onKeyDown: this.onKeyDown
2862
2862
  },
2863
2863
  isDisabled: g,
2864
- isFocused: v
2865
- }), this.renderLiveRegion(), /* @__PURE__ */ X.createElement(a, h({}, I, {
2864
+ isFocused: I
2865
+ }), this.renderLiveRegion(), /* @__PURE__ */ X.createElement(a, h({}, m, {
2866
2866
  innerRef: this.getControlRef,
2867
2867
  innerProps: {
2868
2868
  onMouseDown: this.onControlMouseDown,
2869
2869
  onTouchEnd: this.onControlTouchEnd
2870
2870
  },
2871
2871
  isDisabled: g,
2872
- isFocused: v,
2872
+ isFocused: I,
2873
2873
  menuIsOpen: p
2874
- }), /* @__PURE__ */ X.createElement(o, h({}, I, {
2874
+ }), /* @__PURE__ */ X.createElement(o, h({}, m, {
2875
2875
  isDisabled: g
2876
- }), this.renderPlaceholderOrValue(), this.renderInput()), /* @__PURE__ */ X.createElement(l, h({}, I, {
2876
+ }), this.renderPlaceholderOrValue(), this.renderInput()), /* @__PURE__ */ X.createElement(l, h({}, m, {
2877
2877
  isDisabled: g
2878
2878
  }), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
2879
2879
  }
2880
2880
  }], [{
2881
2881
  key: "getDerivedStateFromProps",
2882
2882
  value: function(t, a) {
2883
- var l = a.prevProps, s = a.clearFocusValueOnUpdate, o = a.inputIsHiddenAfterUpdate, r = a.ariaSelection, c = a.isFocused, d = a.prevWasFocused, g = a.instancePrefix, p = t.options, v = t.value, I = t.menuIsOpen, b = t.inputValue, m = t.isMulti, B = Ye(v), y = {};
2884
- if (l && (v !== l.value || p !== l.options || I !== l.menuIsOpen || b !== l.inputValue)) {
2885
- var x = I ? Wu(t, B) : [], V = I ? ot(Ce(t, B), "".concat(g, "-option")) : [], F = s ? Pu(a, B) : null, S = Zu(a, x), A = Xe(V, S);
2883
+ var l = a.prevProps, s = a.clearFocusValueOnUpdate, o = a.inputIsHiddenAfterUpdate, r = a.ariaSelection, c = a.isFocused, d = a.prevWasFocused, g = a.instancePrefix, p = t.options, I = t.value, m = t.menuIsOpen, b = t.inputValue, v = t.isMulti, E = Ye(I), y = {};
2884
+ if (l && (I !== l.value || p !== l.options || m !== l.menuIsOpen || b !== l.inputValue)) {
2885
+ var x = m ? Wu(t, E) : [], B = m ? ot(Ce(t, E), "".concat(g, "-option")) : [], F = s ? Pu(a, E) : null, V = Zu(a, x), A = Xe(B, V);
2886
2886
  y = {
2887
- selectValue: B,
2888
- focusedOption: S,
2887
+ selectValue: E,
2888
+ focusedOption: V,
2889
2889
  focusedOptionId: A,
2890
- focusableOptionsWithIds: V,
2890
+ focusableOptionsWithIds: B,
2891
2891
  focusedValue: F,
2892
2892
  clearFocusValueOnUpdate: !1
2893
2893
  };
@@ -2897,8 +2897,8 @@ var Pt = function(e) {
2897
2897
  inputIsHiddenAfterUpdate: void 0
2898
2898
  } : {}, H = r, O = c && d;
2899
2899
  return c && !O && (H = {
2900
- value: fe(m, B, B[0] || null),
2901
- options: B,
2900
+ value: fe(v, E, E[0] || null),
2901
+ options: E,
2902
2902
  action: "initial-input-focus"
2903
2903
  }, O = !d), r?.action === "initial-input-focus" && (H = null), C(C(C({}, y), R), {}, {
2904
2904
  prevProps: t,
@@ -3046,16 +3046,16 @@ const Du = (n) => {
3046
3046
  popoverContent: d,
3047
3047
  popoverInfoButtonProps: g,
3048
3048
  required: p = !1,
3049
- size: v = "medium",
3050
- systemFeedback: I,
3049
+ size: I = "medium",
3050
+ systemFeedback: m,
3051
3051
  translations: b,
3052
- value: m,
3053
- onValueChange: B,
3052
+ value: v,
3053
+ onValueChange: E,
3054
3054
  onInputChange: y,
3055
3055
  ...x
3056
- }, V) => {
3057
- const [F, S] = ue(!1), A = oe(() => i, [JSON.stringify(i)]), R = $(null), H = (E) => {
3058
- E && (R.current = E, typeof V == "function" ? V(E.inputRef) : V && (V.current = E.inputRef));
3056
+ }, B) => {
3057
+ const [F, V] = ue(!1), A = oe(() => i, [JSON.stringify(i)]), R = $(null), H = (S) => {
3058
+ S && (R.current = S, typeof B == "function" ? B(S.inputRef) : B && (B.current = S.inputRef));
3059
3059
  }, O = {
3060
3060
  ...g,
3061
3061
  label: b && b.togglePopover || g?.label || Ie[c].togglePopover
@@ -3064,18 +3064,18 @@ const Du = (n) => {
3064
3064
  }), le = L(G.labelWrapper, {
3065
3065
  // hide label only visually to keep them available for assistive technologies
3066
3066
  [G.labelWrapperHidden]: Y
3067
- }), N = (E) => L(G.select, {
3068
- [G.selectSmall]: v === "small",
3069
- [G.selectFocused]: E.isFocused,
3067
+ }), N = (S) => L(G.select, {
3068
+ [G.selectSmall]: I === "small",
3069
+ [G.selectFocused]: S.isFocused,
3070
3070
  [G.selectHovered]: F,
3071
3071
  [G.selectDisabled]: t,
3072
3072
  [G.selectInvalid]: o
3073
- }), w = (E) => L({
3074
- [G.placeholder]: !E.isDisabled
3073
+ }), w = (S) => L({
3074
+ [G.placeholder]: !S.isDisabled
3075
3075
  });
3076
3076
  return /* @__PURE__ */ se("div", { className: U, children: [
3077
3077
  /* @__PURE__ */ se("div", { className: le, children: [
3078
- /* @__PURE__ */ se("label", { className: Q, id: z, htmlFor: n, onMouseEnter: () => !t && S(!0), onMouseLeave: () => !t && S(!1), children: [
3078
+ /* @__PURE__ */ se("label", { className: Q, id: z, htmlFor: n, onMouseEnter: () => !t && V(!0), onMouseLeave: () => !t && V(!1), children: [
3079
3079
  e,
3080
3080
  p && /* @__PURE__ */ M(Ut, {})
3081
3081
  ] }),
@@ -3086,7 +3086,7 @@ const Du = (n) => {
3086
3086
  Hu,
3087
3087
  {
3088
3088
  ...x,
3089
- "aria-errormessage": o && I ? W : void 0,
3089
+ "aria-errormessage": o && m ? W : void 0,
3090
3090
  "aria-label": e,
3091
3091
  "aria-labelledby": `${z}${k}`,
3092
3092
  "aria-invalid": o,
@@ -3110,13 +3110,13 @@ const Du = (n) => {
3110
3110
  unstyled: !0,
3111
3111
  ref: H,
3112
3112
  styles: {
3113
- container: (E) => ({
3114
- ...E,
3113
+ container: (S) => ({
3114
+ ...S,
3115
3115
  // needed for cursor: not-allowed to work on disabled DSCombobox
3116
3116
  pointerEvents: "initial"
3117
3117
  }),
3118
- control: (E) => ({
3119
- ...E,
3118
+ control: (S) => ({
3119
+ ...S,
3120
3120
  outline: "initial",
3121
3121
  // we do not want to have paddingInlineEnd on the control, but rather on the valueContainer, so we remove it here
3122
3122
  paddingInlineEnd: 0,
@@ -3127,30 +3127,30 @@ const Du = (n) => {
3127
3127
  cursor: "text"
3128
3128
  }),
3129
3129
  // increase the z-index
3130
- menu: (E) => ({
3131
- ...E,
3130
+ menu: (S) => ({
3131
+ ...S,
3132
3132
  zIndex: 99
3133
3133
  }),
3134
3134
  // needed for Values to not be squished like "A.., B..." but rather cut off "Apple, Bana"
3135
- multiValue: (E) => ({
3136
- ...E,
3135
+ multiValue: (S) => ({
3136
+ ...S,
3137
3137
  minWidth: "max-content"
3138
3138
  }),
3139
- noOptionsMessage: (E) => ({
3140
- ...E,
3139
+ noOptionsMessage: (S) => ({
3140
+ ...S,
3141
3141
  // remove default text align center
3142
3142
  textAlign: void 0
3143
3143
  }),
3144
- option: (E) => ({
3145
- ...E,
3144
+ option: (S) => ({
3145
+ ...S,
3146
3146
  display: "flex",
3147
3147
  // remove fontSize, so that we can change if based on size
3148
3148
  fontSize: void 0
3149
3149
  }),
3150
- valueContainer: (E) => ({
3151
- ...E,
3150
+ valueContainer: (S) => ({
3151
+ ...S,
3152
3152
  flexWrap: "nowrap",
3153
- paddingInlineEnd: v === "small" ? "7px" : "15px"
3153
+ paddingInlineEnd: I === "small" ? "7px" : "15px"
3154
3154
  // reduced by one pixel to counteract Figma inner border
3155
3155
  })
3156
3156
  },
@@ -3170,21 +3170,21 @@ const Du = (n) => {
3170
3170
  SingleValue: Mo
3171
3171
  },
3172
3172
  invalid: o,
3173
- systemFeedback: I,
3173
+ systemFeedback: m,
3174
3174
  systemFeedbackId: W,
3175
- isSmall: v === "small",
3176
- value: m,
3177
- onChange: (E, {
3175
+ isSmall: I === "small",
3176
+ value: v,
3177
+ onChange: (S, {
3178
3178
  action: _
3179
3179
  }) => {
3180
- _ === "clear" && !x.openMenuOnClick && !x.openMenuOnFocus && !r && (R.current?.blur(), R.current?.focus()), B && B(E);
3180
+ _ === "clear" && !x.openMenuOnClick && !x.openMenuOnFocus && !r && (R.current?.blur(), R.current?.focus()), E && E(S);
3181
3181
  },
3182
- onInputChange: (E) => {
3183
- y && y(E);
3182
+ onInputChange: (S) => {
3183
+ y && y(S);
3184
3184
  }
3185
3185
  }
3186
3186
  ),
3187
- o && I && /* @__PURE__ */ M(_t, { className: G.feedback, message: I, variant: "error", id: W })
3187
+ o && m && /* @__PURE__ */ M(_t, { className: G.feedback, message: m, variant: "error", id: W })
3188
3188
  ] });
3189
3189
  });
3190
3190
  Eo.displayName = "CustomReactSelect";
@@ -3295,50 +3295,55 @@ const So = (n) => {
3295
3295
  let l;
3296
3296
  return e[5] !== t || e[6] !== i || e[7] !== a ? (l = /* @__PURE__ */ M(K.NoOptionsMessage, { ...i, className: t, children: a }), e[5] = t, e[6] = i, e[7] = a, e[8] = l) : l = e[8], l;
3297
3297
  }, No = (n) => {
3298
- const e = te.c(22);
3299
- let i, u, t, a, l, s, o, r, c;
3298
+ const e = te.c(27);
3299
+ let i, u, t, a, l, s, o, r, c, d;
3300
3300
  if (e[0] !== n) {
3301
3301
  ({
3302
- ...r
3302
+ ...c
3303
3303
  } = n);
3304
3304
  const {
3305
- isMulti: v,
3306
- isSmall: I
3307
- } = r.selectProps;
3308
- t = v, {
3309
- leadingIconName: s
3310
- } = r.data;
3305
+ isMulti: b,
3306
+ isSmall: v
3307
+ } = c.selectProps;
3308
+ a = b, {
3309
+ leadingIconName: o
3310
+ } = c.data;
3311
3311
  const {
3312
- children: b,
3313
- isDisabled: m,
3314
- isFocused: B,
3315
- isSelected: y
3316
- } = r;
3317
- i = b, u = m, a = y;
3318
- const x = r.selectProps.options.some((V) => "options" in V && V.options.includes(r.data));
3319
- o = L(G.option, {
3320
- [G.optionSmall]: I,
3321
- [G.optionSingle]: !t && a,
3322
- [G.optionDisabled]: u,
3323
- [G.optionFocusHover]: B,
3324
- [G.optionGrouped]: x
3325
- }), l = L(G.leadingIcon, {
3326
- [G.leadingIconSmall]: I,
3327
- [G.leadingIconDisabled]: u
3328
- }), c = L(G.optionCheckIcon, {
3329
- [G.optionCheckIconDisabled]: u
3330
- }), e[0] = n, e[1] = i, e[2] = u, e[3] = t, e[4] = a, e[5] = l, e[6] = s, e[7] = o, e[8] = r, e[9] = c;
3312
+ children: E,
3313
+ isDisabled: y,
3314
+ isFocused: x,
3315
+ isSelected: B
3316
+ } = c;
3317
+ u = E, t = y, l = B;
3318
+ const F = c.selectProps.options.some((V) => "options" in V && V.options.includes(c.data));
3319
+ r = L(G.option, {
3320
+ [G.optionSmall]: v,
3321
+ [G.optionSingle]: !a && l,
3322
+ [G.optionDisabled]: t,
3323
+ [G.optionFocusHover]: x,
3324
+ [G.optionGrouped]: F
3325
+ }), s = L(G.leadingIcon, {
3326
+ [G.leadingIconSmall]: v,
3327
+ [G.leadingIconDisabled]: t
3328
+ }), i = L(G.optionCheckIcon, {
3329
+ [G.optionCheckIconDisabled]: t
3330
+ }), d = Object.keys(c.data).filter(Ho).reduce((V, A) => (V[A] = c.data[A], V), {}), e[0] = n, e[1] = i, e[2] = u, e[3] = t, e[4] = a, e[5] = l, e[6] = s, e[7] = o, e[8] = r, e[9] = c, e[10] = d;
3331
3331
  } else
3332
- i = e[1], u = e[2], t = e[3], a = e[4], l = e[5], s = e[6], o = e[7], r = e[8], c = e[9];
3333
- const d = c;
3334
- let g;
3335
- e[10] !== d || e[11] !== i || e[12] !== u || e[13] !== t || e[14] !== a || e[15] !== l || e[16] !== s ? (g = t ? /* @__PURE__ */ M($t, { label: i, checked: a, disabled: u, className: G.multiOption }) : /* @__PURE__ */ se("div", { className: G.singleOption, children: [
3336
- s && /* @__PURE__ */ M(ge, { name: s, className: l, "aria-hidden": "true" }),
3337
- /* @__PURE__ */ M("span", { className: G.optionText, children: i }),
3338
- a && /* @__PURE__ */ M(ge, { name: "check", className: d, "aria-hidden": "true" })
3339
- ] }), e[10] = d, e[11] = i, e[12] = u, e[13] = t, e[14] = a, e[15] = l, e[16] = s, e[17] = g) : g = e[17];
3332
+ i = e[1], u = e[2], t = e[3], a = e[4], l = e[5], s = e[6], o = e[7], r = e[8], c = e[9], d = e[10];
3333
+ const g = d;
3340
3334
  let p;
3341
- return e[18] !== o || e[19] !== r || e[20] !== g ? (p = /* @__PURE__ */ M(K.Option, { ...r, className: o, children: g }), e[18] = o, e[19] = r, e[20] = g, e[21] = p) : p = e[21], p;
3335
+ e[11] !== g || e[12] !== c.innerProps ? (p = {
3336
+ ...c.innerProps,
3337
+ ...g
3338
+ }, e[11] = g, e[12] = c.innerProps, e[13] = p) : p = e[13];
3339
+ let I;
3340
+ e[14] !== i || e[15] !== u || e[16] !== t || e[17] !== a || e[18] !== l || e[19] !== s || e[20] !== o ? (I = a ? /* @__PURE__ */ M($t, { label: u, checked: l, disabled: t, className: G.multiOption }) : /* @__PURE__ */ se("div", { className: G.singleOption, children: [
3341
+ o && /* @__PURE__ */ M(ge, { name: o, className: s, "aria-hidden": "true" }),
3342
+ /* @__PURE__ */ M("span", { className: G.optionText, children: u }),
3343
+ l && /* @__PURE__ */ M(ge, { name: "check", className: i, "aria-hidden": "true" })
3344
+ ] }), e[14] = i, e[15] = u, e[16] = t, e[17] = a, e[18] = l, e[19] = s, e[20] = o, e[21] = I) : I = e[21];
3345
+ let m;
3346
+ return e[22] !== r || e[23] !== c || e[24] !== p || e[25] !== I ? (m = /* @__PURE__ */ M(K.Option, { ...c, className: r, innerProps: p, children: I }), e[22] = r, e[23] = c, e[24] = p, e[25] = I, e[26] = m) : m = e[26], m;
3342
3347
  }, Mo = (n) => {
3343
3348
  const e = te.c(11), {
3344
3349
  children: i,
@@ -3361,11 +3366,14 @@ const So = (n) => {
3361
3366
  o
3362
3367
  ] }), e[7] = n, e[8] = s, e[9] = o, e[10] = r) : r = e[10], r;
3363
3368
  };
3369
+ function Ho(n) {
3370
+ return n.startsWith("data-");
3371
+ }
3364
3372
  export {
3365
- qo as C,
3373
+ ea as C,
3366
3374
  Kt as D,
3367
3375
  qt as a,
3368
3376
  Ie as b,
3369
3377
  Eo as c,
3370
- Ko as v
3378
+ qo as v
3371
3379
  };
@@ -0,0 +1,69 @@
1
+ "use client";
2
+ import { jsx as z } from "react/jsx-runtime";
3
+ import { d as G } from "./chunks/index.D-sRdssb.js";
4
+ import { v as H, c as J } from "./chunks/CustomReactSelect.DS9Ey-jr.js";
5
+ import { forwardRef as K } from "react";
6
+ const Q = K((N, S) => {
7
+ const t = G.c(38);
8
+ let a, r, e, d, l, s, p, i, c, u, n, v, f, o, m, b;
9
+ if (t[0] !== N) {
10
+ const h = N ?? {}, {
11
+ id: q,
12
+ label: A,
13
+ className: B,
14
+ disabled: g,
15
+ dropdownOnFocus: w,
16
+ filterOption: L,
17
+ hideLabel: y,
18
+ invalid: D,
19
+ lang: E,
20
+ menuIsOpen: R,
21
+ popoverContent: j,
22
+ popoverInfoButtonProps: k,
23
+ required: F,
24
+ tabSelectsValue: M,
25
+ variant: V,
26
+ ..._
27
+ } = h;
28
+ 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;
29
+ const $ = Array.isArray(o.options) ? o.options : [];
30
+ process.env.NODE_ENV !== "production" && H({
31
+ id: s,
32
+ label: i,
33
+ options: $,
34
+ hideLabel: l,
35
+ popoverContent: n
36
+ }), 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;
37
+ } else
38
+ 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];
39
+ const O = b === "multi", I = !e || O;
40
+ let C;
41
+ 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 = {
42
+ id: s,
43
+ label: i,
44
+ className: a,
45
+ disabled: r,
46
+ filterOption: d,
47
+ hideLabel: l,
48
+ isMulti: O,
49
+ invalid: p,
50
+ lang: c,
51
+ menuIsOpen: u,
52
+ openMenuOnClick: e,
53
+ openMenuOnFocus: e,
54
+ isClearable: I,
55
+ required: f,
56
+ ref: S,
57
+ tabSelectsValue: m,
58
+ popoverContent: n,
59
+ popoverInfoButtonProps: v,
60
+ ...o
61
+ }, 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];
62
+ const P = C;
63
+ let x;
64
+ return t[36] !== P ? (x = /* @__PURE__ */ z(J, { ...P }), t[36] = P, t[37] = x) : x = t[37], x;
65
+ });
66
+ Q.displayName = "DSCombobox";
67
+ export {
68
+ Q as DSCombobox
69
+ };
@@ -26,6 +26,8 @@ export interface ComboboxOption {
26
26
  * @default false
27
27
  */
28
28
  isDisabled?: boolean;
29
+ /** Custom data attributes. */
30
+ [key: `data-${string}`]: string | undefined;
29
31
  }
30
32
  export type ComboboxOptionsGroup = GroupBase<ComboboxOption>;
31
33
  export type ComboboxOptionsOrOptGroups = OptionsOrGroups<ComboboxOption, ComboboxOptionsGroup>;
@@ -47,6 +47,10 @@ export interface CustomReactSelectProps<IsMulti extends boolean> extends PickedR
47
47
  * @default 'en'
48
48
  */
49
49
  lang?: ComboboxLanguage;
50
+ /** Keeps the menu open or always closed, useful for specific testing scenarios.
51
+ * @default undefined
52
+ */
53
+ menuIsOpen?: boolean | undefined;
50
54
  /** Shows an info button next to the label that triggers a popover with the passed content. */
51
55
  popoverContent?: React.ReactNode;
52
56
  /** Popover info button props:
@@ -3,7 +3,7 @@ import "react/jsx-runtime";
3
3
  import "./chunks/index.D-sRdssb.js";
4
4
  import "./chunks/index.DL9mof6u.js";
5
5
  import "react";
6
- import { c as f } from "./chunks/CustomReactSelect.D4kopDzX.js";
6
+ import { c as f } from "./chunks/CustomReactSelect.DS9Ey-jr.js";
7
7
  import "./chunks/useBreakpoint.1txsny17.js";
8
8
  import "./asterisk.B2ih8VwF.js";
9
9
  import "./chunks/Icon.CDLyB7Pv.js";
package/index.es.js CHANGED
@@ -11,8 +11,8 @@ import { D as Y, v as j } from "./chunks/Checkbox.D5X5T6Yg.js";
11
11
  import { D as z, v as J } from "./chunks/CheckboxGroup.BIspWqeW.js";
12
12
  import { DSChipGroup as $ } from "./chipgroup.CY3pWyLO.js";
13
13
  import { C as ea, c as sa, b as oa, D as ra, g as ta, d as Ta, v as Sa, a as Ia } from "./chunks/Chip.DIp5hdRH.js";
14
- import { DSCombobox as pa } from "./combobox.C2XUM4fM.js";
15
- import { C as _a, b as Da, a as Aa, D as la, v as na } from "./chunks/CustomReactSelect.D4kopDzX.js";
14
+ import { DSCombobox as pa } from "./combobox.Ds2prR5y.js";
15
+ import { C as _a, b as Da, a as Aa, D as la, v as na } from "./chunks/CustomReactSelect.DS9Ey-jr.js";
16
16
  import { D as Oa, v as da } from "./chunks/Dialog.DMxHRrxo.js";
17
17
  import { a as va, D as Pa, v as Ca } from "./chunks/Drawer.CatmvDHJ.js";
18
18
  import { D as ua, v as La } from "./chunks/Fieldset.Bk8W5h13.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stihl-design-system/components",
3
3
  "private": false,
4
- "version": "1.0.0-RC.37",
4
+ "version": "1.0.0-RC.38",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "homepage": "https://designsystem.stihl.de/",
7
7
  "keywords": [
@@ -96,10 +96,10 @@
96
96
  "@floating-ui/react": "^0.27.16",
97
97
  "@juggle/resize-observer": "^3.4.0",
98
98
  "@playwright/test": "^1.56.0",
99
- "@storybook/addon-a11y": "^9.1.8",
100
- "@storybook/addon-docs": "9.1.8",
101
- "@storybook/addon-links": "^9.1.8",
102
- "@storybook/react-vite": "^9.1.8",
99
+ "@storybook/addon-a11y": "^9.1.17",
100
+ "@storybook/addon-docs": "9.1.17",
101
+ "@storybook/addon-links": "^9.1.17",
102
+ "@storybook/react-vite": "^9.1.17",
103
103
  "@storybook/test-runner": "^0.23.0",
104
104
  "@testing-library/jest-dom": "^6.8.0",
105
105
  "@testing-library/react": "^16.3.0",
@@ -119,7 +119,7 @@
119
119
  "concurrently": "^9.2.1",
120
120
  "eslint": "^9.36.0",
121
121
  "eslint-plugin-react": "^7.37.5",
122
- "eslint-plugin-storybook": "^9.1.8",
122
+ "eslint-plugin-storybook": "^9.1.17",
123
123
  "globals": "^16.4.0",
124
124
  "globby": "^14.1.0",
125
125
  "http-server": "^14.1.1",
@@ -133,7 +133,7 @@
133
133
  "react-intersection-observer": "^9.16.0",
134
134
  "react-syntax-highlighter": "^15.6.6",
135
135
  "sass": "^1.93.2",
136
- "storybook": "^9.1.8",
136
+ "storybook": "^9.1.17",
137
137
  "typescript": "^5.9.2",
138
138
  "vite": "^7.1.7",
139
139
  "vite-plugin-dts": "^4.5.4",
@@ -1,67 +0,0 @@
1
- "use client";
2
- import { jsx as _ } from "react/jsx-runtime";
3
- import { d as $ } from "./chunks/index.D-sRdssb.js";
4
- import { v as z, c as G } from "./chunks/CustomReactSelect.D4kopDzX.js";
5
- import { forwardRef as H } from "react";
6
- const J = H((x, N) => {
7
- const t = $.c(36);
8
- let a, r, e, d, l, i, p, s, c, n, v, f, o, u, m;
9
- if (t[0] !== x) {
10
- const h = x ?? {}, {
11
- id: q,
12
- label: A,
13
- className: B,
14
- disabled: g,
15
- dropdownOnFocus: w,
16
- filterOption: I,
17
- hideLabel: y,
18
- invalid: D,
19
- lang: E,
20
- popoverContent: L,
21
- popoverInfoButtonProps: R,
22
- required: F,
23
- tabSelectsValue: M,
24
- variant: V,
25
- ...j
26
- } = h;
27
- i = q, s = A, a = B, d = I, n = L, v = R, o = j, 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, u = M === void 0 ? !0 : M, m = V === void 0 ? "single" : V;
28
- const k = Array.isArray(o.options) ? o.options : [];
29
- process.env.NODE_ENV !== "production" && z({
30
- id: i,
31
- label: s,
32
- options: k,
33
- hideLabel: l,
34
- popoverContent: n
35
- }), t[0] = x, t[1] = a, t[2] = r, t[3] = e, t[4] = d, t[5] = l, t[6] = i, t[7] = p, t[8] = s, t[9] = c, t[10] = n, t[11] = v, t[12] = f, t[13] = o, t[14] = u, t[15] = m;
36
- } else
37
- a = t[1], r = t[2], e = t[3], d = t[4], l = t[5], i = t[6], p = t[7], s = t[8], c = t[9], n = t[10], v = t[11], f = t[12], o = t[13], u = t[14], m = t[15];
38
- const b = m === "multi", S = !e || b;
39
- let C;
40
- t[16] !== a || t[17] !== r || t[18] !== e || t[19] !== d || t[20] !== l || t[21] !== i || t[22] !== p || t[23] !== b || t[24] !== s || t[25] !== c || t[26] !== n || t[27] !== v || t[28] !== N || t[29] !== f || t[30] !== o || t[31] !== S || t[32] !== u ? (C = {
41
- id: i,
42
- label: s,
43
- className: a,
44
- disabled: r,
45
- filterOption: d,
46
- hideLabel: l,
47
- isMulti: b,
48
- invalid: p,
49
- lang: c,
50
- openMenuOnClick: e,
51
- openMenuOnFocus: e,
52
- isClearable: S,
53
- required: f,
54
- ref: N,
55
- tabSelectsValue: u,
56
- popoverContent: n,
57
- popoverInfoButtonProps: v,
58
- ...o
59
- }, t[16] = a, t[17] = r, t[18] = e, t[19] = d, t[20] = l, t[21] = i, t[22] = p, t[23] = b, t[24] = s, t[25] = c, t[26] = n, t[27] = v, t[28] = N, t[29] = f, t[30] = o, t[31] = S, t[32] = u, t[33] = C) : C = t[33];
60
- const P = C;
61
- let O;
62
- return t[34] !== P ? (O = /* @__PURE__ */ _(G, { ...P }), t[34] = P, t[35] = O) : O = t[35], O;
63
- });
64
- J.displayName = "DSCombobox";
65
- export {
66
- J as DSCombobox
67
- };