@lanaco/lnc-react-ui 4.0.162 → 4.0.164

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.
@@ -71,7 +71,7 @@ function Q(n, e) {
71
71
  }
72
72
  var Ot = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
73
73
  function Bu(n) {
74
- var e = n.defaultInputValue, i = e === void 0 ? "" : e, u = n.defaultMenuIsOpen, t = u === void 0 ? !1 : u, a = n.defaultValue, r = a === void 0 ? null : a, s = n.inputValue, o = n.menuIsOpen, l = n.onChange, c = n.onInputChange, d = n.onMenuClose, b = n.onMenuOpen, p = n.value, v = Q(n, Ot), m = ee(s !== void 0 ? s : i), g = U(m, 2), I = g[0], V = g[1], G = ee(o !== void 0 ? o : t), x = U(G, 2), B = x[0], y = x[1], E = ee(p !== void 0 ? p : r), A = U(E, 2), X = A[0], H = A[1], D = M(function(J, K) {
74
+ var e = n.defaultInputValue, i = e === void 0 ? "" : e, u = n.defaultMenuIsOpen, t = u === void 0 ? !1 : u, a = n.defaultValue, r = a === void 0 ? null : a, s = n.inputValue, o = n.menuIsOpen, l = n.onChange, c = n.onInputChange, d = n.onMenuClose, b = n.onMenuOpen, I = n.value, v = Q(n, Ot), m = ee(s !== void 0 ? s : i), g = U(m, 2), p = g[0], V = g[1], G = ee(o !== void 0 ? o : t), x = U(G, 2), B = x[0], y = x[1], E = ee(I !== void 0 ? I : r), A = U(E, 2), X = A[0], H = A[1], D = M(function(J, K) {
75
75
  typeof l == "function" && l(J, K), H(J);
76
76
  }, [l]), N = M(function(J, K) {
77
77
  var $;
@@ -80,7 +80,7 @@ function Bu(n) {
80
80
  typeof b == "function" && b(), y(!0);
81
81
  }, [b]), L = M(function() {
82
82
  typeof d == "function" && d(), y(!1);
83
- }, [d]), P = s !== void 0 ? s : I, S = o !== void 0 ? o : B, Y = p !== void 0 ? p : X;
83
+ }, [d]), P = s !== void 0 ? s : p, S = o !== void 0 ? o : B, Y = I !== void 0 ? I : X;
84
84
  return f(f({}, v), {}, {
85
85
  inputValue: P,
86
86
  menuIsOpen: S,
@@ -158,7 +158,7 @@ function Qt(n) {
158
158
  function et(n) {
159
159
  return me(n) ? window.pageYOffset : n.scrollTop;
160
160
  }
161
- function pe(n, e) {
161
+ function Ie(n, e) {
162
162
  if (me(n)) {
163
163
  window.scrollTo(0, e);
164
164
  return;
@@ -181,13 +181,13 @@ function se(n, e) {
181
181
  function o() {
182
182
  s += r;
183
183
  var l = $t(s, t, a, i);
184
- pe(n, l), s < i ? window.requestAnimationFrame(o) : u(n);
184
+ Ie(n, l), s < i ? window.requestAnimationFrame(o) : u(n);
185
185
  }
186
186
  o();
187
187
  }
188
188
  function Pe(n, e) {
189
189
  var i = n.getBoundingClientRect(), u = e.getBoundingClientRect(), t = e.offsetHeight / 3;
190
- u.bottom + t > i.bottom ? pe(n, Math.min(e.offsetTop + e.clientHeight - n.offsetHeight + t, n.scrollHeight)) : u.top - t < i.top && pe(n, Math.max(e.offsetTop - t, 0));
190
+ u.bottom + t > i.bottom ? Ie(n, Math.min(e.offsetTop + e.clientHeight - n.offsetHeight + t, n.scrollHeight)) : u.top - t < i.top && Ie(n, Math.max(e.offsetTop - t, 0));
191
191
  }
192
192
  function _t(n) {
193
193
  var e = n.getBoundingClientRect();
@@ -248,7 +248,7 @@ function ln(n) {
248
248
  maxHeight: e
249
249
  };
250
250
  if (!i || !i.offsetParent) return l;
251
- var c = o.getBoundingClientRect(), d = c.height, b = i.getBoundingClientRect(), p = b.bottom, v = b.height, m = b.top, g = i.offsetParent.getBoundingClientRect(), I = g.top, V = r ? window.innerHeight : Qt(o), G = et(o), x = parseInt(getComputedStyle(i).marginBottom, 10), B = parseInt(getComputedStyle(i).marginTop, 10), y = I - B, E = V - m, A = y + G, X = d - G - m, H = p - V + G + x, D = G + m - B, N = 160;
251
+ var c = o.getBoundingClientRect(), d = c.height, b = i.getBoundingClientRect(), I = b.bottom, v = b.height, m = b.top, g = i.offsetParent.getBoundingClientRect(), p = g.top, V = r ? window.innerHeight : Qt(o), G = et(o), x = parseInt(getComputedStyle(i).marginBottom, 10), B = parseInt(getComputedStyle(i).marginTop, 10), y = p - B, E = V - m, A = y + G, X = d - G - m, H = I - V + G + x, D = G + m - B, N = 160;
252
252
  switch (t) {
253
253
  case "auto":
254
254
  case "bottom":
@@ -278,7 +278,7 @@ function ln(n) {
278
278
  };
279
279
  }
280
280
  if (t === "bottom")
281
- return a && pe(o, H), {
281
+ return a && Ie(o, H), {
282
282
  placement: "bottom",
283
283
  maxHeight: e
284
284
  };
@@ -331,7 +331,7 @@ var nt = function(e) {
331
331
  marginTop: s.menuGutter
332
332
  });
333
333
  }, it = /* @__PURE__ */ xt(null), dn = function(e) {
334
- var i = e.children, u = e.minMenuHeight, t = e.maxMenuHeight, a = e.menuPlacement, r = e.menuPosition, s = e.menuShouldScrollIntoView, o = e.theme, l = Vt(it) || {}, c = l.setPortalPlacement, d = j(null), b = ee(t), p = U(b, 2), v = p[0], m = p[1], g = ee(null), I = U(g, 2), V = I[0], G = I[1], x = o.spacing.controlHeight;
334
+ var i = e.children, u = e.minMenuHeight, t = e.maxMenuHeight, a = e.menuPlacement, r = e.menuPosition, s = e.menuShouldScrollIntoView, o = e.theme, l = Vt(it) || {}, c = l.setPortalPlacement, d = j(null), b = ee(t), I = U(b, 2), v = I[0], m = I[1], g = ee(null), p = U(g, 2), V = p[0], G = p[1], x = o.spacing.controlHeight;
335
335
  return Ve(function() {
336
336
  var B = d.current;
337
337
  if (B) {
@@ -360,7 +360,7 @@ var nt = function(e) {
360
360
  }), {
361
361
  ref: u
362
362
  }, t), i);
363
- }, bn = gn, pn = function(e, i) {
363
+ }, bn = gn, In = function(e, i) {
364
364
  var u = e.maxHeight, t = e.theme.spacing.baseUnit;
365
365
  return f({
366
366
  maxHeight: u,
@@ -372,7 +372,7 @@ var nt = function(e) {
372
372
  paddingBottom: t,
373
373
  paddingTop: t
374
374
  });
375
- }, In = function(e) {
375
+ }, pn = function(e) {
376
376
  var i = e.children, u = e.innerProps, t = e.innerRef, a = e.isMulti;
377
377
  return C("div", h({}, R(e, "menuList", {
378
378
  "menu-list": !0,
@@ -416,19 +416,19 @@ var nt = function(e) {
416
416
  zIndex: 1
417
417
  };
418
418
  }, An = function(e) {
419
- var i = e.appendTo, u = e.children, t = e.controlElement, a = e.innerProps, r = e.menuPlacement, s = e.menuPosition, o = j(null), l = j(null), c = ee(nt(r)), d = U(c, 2), b = d[0], p = d[1], v = ie(function() {
419
+ var i = e.appendTo, u = e.children, t = e.controlElement, a = e.innerProps, r = e.menuPlacement, s = e.menuPosition, o = j(null), l = j(null), c = ee(nt(r)), d = U(c, 2), b = d[0], I = d[1], v = ie(function() {
420
420
  return {
421
- setPortalPlacement: p
421
+ setPortalPlacement: I
422
422
  };
423
- }, []), m = ee(null), g = U(m, 2), I = g[0], V = g[1], G = M(function() {
423
+ }, []), m = ee(null), g = U(m, 2), p = g[0], V = g[1], G = M(function() {
424
424
  if (t) {
425
425
  var E = _t(t), A = s === "fixed" ? 0 : window.pageYOffset, X = E[b] + A;
426
- (X !== (I == null ? void 0 : I.offset) || E.left !== (I == null ? void 0 : I.rect.left) || E.width !== (I == null ? void 0 : I.rect.width)) && V({
426
+ (X !== (p == null ? void 0 : p.offset) || E.left !== (p == null ? void 0 : p.rect.left) || E.width !== (p == null ? void 0 : p.rect.width)) && V({
427
427
  offset: X,
428
428
  rect: E
429
429
  });
430
430
  }
431
- }, [t, s, b, I == null ? void 0 : I.offset, I == null ? void 0 : I.rect.left, I == null ? void 0 : I.rect.width]);
431
+ }, [t, s, b, p == null ? void 0 : p.offset, p == null ? void 0 : p.rect.left, p == null ? void 0 : p.rect.width]);
432
432
  Ve(function() {
433
433
  G();
434
434
  }, [G]);
@@ -443,13 +443,13 @@ var nt = function(e) {
443
443
  var B = M(function(E) {
444
444
  o.current = E, x();
445
445
  }, [x]);
446
- if (!i && s !== "fixed" || !I) return null;
446
+ if (!i && s !== "fixed" || !p) return null;
447
447
  var y = C("div", h({
448
448
  ref: B
449
449
  }, R(f(f({}, e), {}, {
450
- offset: I.offset,
450
+ offset: p.offset,
451
451
  position: s,
452
- rect: I.rect
452
+ rect: p.rect
453
453
  }), "menuPortal", {
454
454
  "menu-portal": !0
455
455
  }), a), u);
@@ -873,12 +873,12 @@ var li = function(e) {
873
873
  marginLeft: t.baseUnit / 2,
874
874
  marginRight: t.baseUnit / 2
875
875
  });
876
- }, pi = function(e) {
876
+ }, Ii = function(e) {
877
877
  var i = e.children, u = e.innerProps;
878
878
  return C("div", h({}, R(e, "placeholder", {
879
879
  placeholder: !0
880
880
  }), u), i);
881
- }, Ii = pi, mi = function(e, i) {
881
+ }, pi = Ii, mi = function(e, i) {
882
882
  var u = e.isDisabled, t = e.theme, a = t.spacing, r = t.colors;
883
883
  return f({
884
884
  label: "singleValue",
@@ -911,7 +911,7 @@ var li = function(e) {
911
911
  Input: ti,
912
912
  LoadingIndicator: Jn,
913
913
  Menu: bn,
914
- MenuList: In,
914
+ MenuList: pn,
915
915
  MenuPortal: An,
916
916
  LoadingMessage: fn,
917
917
  NoOptionsMessage: Cn,
@@ -920,7 +920,7 @@ var li = function(e) {
920
920
  MultiValueLabel: ai,
921
921
  MultiValueRemove: ri,
922
922
  Option: gi,
923
- Placeholder: Ii,
923
+ Placeholder: pi,
924
924
  SelectContainer: xn,
925
925
  SingleValue: Ci,
926
926
  ValueContainer: Bn
@@ -1012,8 +1012,8 @@ var Bi = process.env.NODE_ENV === "production" ? {
1012
1012
  if (i === "value" && s)
1013
1013
  return "value ".concat(r, " focused, ").concat(d(s, u), ".");
1014
1014
  if (i === "menu" && c) {
1015
- var b = o ? " disabled" : "", p = "".concat(l ? " selected" : "").concat(b);
1016
- return "".concat(r).concat(p, ", ").concat(d(t, u), ".");
1015
+ var b = o ? " disabled" : "", I = "".concat(l ? " selected" : "").concat(b);
1016
+ return "".concat(r).concat(I, ", ").concat(d(t, u), ".");
1017
1017
  }
1018
1018
  return "";
1019
1019
  },
@@ -1022,7 +1022,7 @@ var Bi = process.env.NODE_ENV === "production" ? {
1022
1022
  return "".concat(u).concat(i ? " for search term " + i : "", ".");
1023
1023
  }
1024
1024
  }, Fi = function(e) {
1025
- var i = e.ariaSelection, u = e.focusedOption, t = e.focusedValue, a = e.focusableOptions, r = e.isFocused, s = e.selectValue, o = e.selectProps, l = e.id, c = e.isAppleDevice, d = o.ariaLiveMessages, b = o.getOptionLabel, p = o.inputValue, v = o.isMulti, m = o.isOptionDisabled, g = o.isSearchable, I = o.menuIsOpen, V = o.options, G = o.screenReaderStatus, x = o.tabSelectsValue, B = o.isLoading, y = o["aria-label"], E = o["aria-live"], A = ie(function() {
1025
+ var i = e.ariaSelection, u = e.focusedOption, t = e.focusedValue, a = e.focusableOptions, r = e.isFocused, s = e.selectValue, o = e.selectProps, l = e.id, c = e.isAppleDevice, d = o.ariaLiveMessages, b = o.getOptionLabel, I = o.inputValue, v = o.isMulti, m = o.isOptionDisabled, g = o.isSearchable, p = o.menuIsOpen, V = o.options, G = o.screenReaderStatus, x = o.tabSelectsValue, B = o.isLoading, y = o["aria-label"], E = o["aria-live"], A = ie(function() {
1026
1026
  return f(f({}, Ei), d || {});
1027
1027
  }, [d]), X = ie(function() {
1028
1028
  var P = "";
@@ -1057,20 +1057,20 @@ var Bi = process.env.NODE_ENV === "production" ? {
1057
1057
  return P;
1058
1058
  }, [u, t, b, m, A, a, s, c]), D = ie(function() {
1059
1059
  var P = "";
1060
- if (I && V.length && !B && A.onFilter) {
1060
+ if (p && V.length && !B && A.onFilter) {
1061
1061
  var S = G({
1062
1062
  count: a.length
1063
1063
  });
1064
1064
  P = A.onFilter({
1065
- inputValue: p,
1065
+ inputValue: I,
1066
1066
  resultsMessage: S
1067
1067
  });
1068
1068
  }
1069
1069
  return P;
1070
- }, [a, p, I, A, V, G, B]), N = (i == null ? void 0 : i.action) === "initial-input-focus", w = ie(function() {
1070
+ }, [a, I, p, A, V, G, B]), N = (i == null ? void 0 : i.action) === "initial-input-focus", w = ie(function() {
1071
1071
  var P = "";
1072
1072
  if (A.guidance) {
1073
- var S = t ? "value" : I ? "menu" : "input";
1073
+ var S = t ? "value" : p ? "menu" : "input";
1074
1074
  P = A.guidance({
1075
1075
  "aria-label": y,
1076
1076
  context: S,
@@ -1082,7 +1082,7 @@ var Bi = process.env.NODE_ENV === "production" ? {
1082
1082
  });
1083
1083
  }
1084
1084
  return P;
1085
- }, [y, u, t, v, m, g, I, A, s, x, N]), L = C(xe, null, C("span", {
1085
+ }, [y, u, t, v, m, g, p, A, s, x, N]), L = C(xe, null, C("span", {
1086
1086
  id: "aria-selection"
1087
1087
  }, X), C("span", {
1088
1088
  id: "aria-focused"
@@ -1410,28 +1410,28 @@ var Ni = function(e) {
1410
1410
  e.cancelable && e.preventDefault(), e.stopPropagation();
1411
1411
  };
1412
1412
  function Mi(n) {
1413
- var e = n.isEnabled, i = n.onBottomArrive, u = n.onBottomLeave, t = n.onTopArrive, a = n.onTopLeave, r = j(!1), s = j(!1), o = j(0), l = j(null), c = M(function(g, I) {
1413
+ var e = n.isEnabled, i = n.onBottomArrive, u = n.onBottomLeave, t = n.onTopArrive, a = n.onTopLeave, r = j(!1), s = j(!1), o = j(0), l = j(null), c = M(function(g, p) {
1414
1414
  if (l.current !== null) {
1415
- var V = l.current, G = V.scrollTop, x = V.scrollHeight, B = V.clientHeight, y = l.current, E = I > 0, A = x - B - G, X = !1;
1416
- A > I && r.current && (u && u(g), r.current = !1), E && s.current && (a && a(g), s.current = !1), E && I > A ? (i && !r.current && i(g), y.scrollTop = x, X = !0, r.current = !0) : !E && -I > G && (t && !s.current && t(g), y.scrollTop = 0, X = !0, s.current = !0), X && Ni(g);
1415
+ var V = l.current, G = V.scrollTop, x = V.scrollHeight, B = V.clientHeight, y = l.current, E = p > 0, A = x - B - G, X = !1;
1416
+ A > p && r.current && (u && u(g), r.current = !1), E && s.current && (a && a(g), s.current = !1), E && p > A ? (i && !r.current && i(g), y.scrollTop = x, X = !0, r.current = !0) : !E && -p > G && (t && !s.current && t(g), y.scrollTop = 0, X = !0, s.current = !0), X && Ni(g);
1417
1417
  }
1418
1418
  }, [i, u, t, a]), d = M(function(g) {
1419
1419
  c(g, g.deltaY);
1420
1420
  }, [c]), b = M(function(g) {
1421
1421
  o.current = g.changedTouches[0].clientY;
1422
- }, []), p = M(function(g) {
1423
- var I = o.current - g.changedTouches[0].clientY;
1424
- c(g, I);
1422
+ }, []), I = M(function(g) {
1423
+ var p = o.current - g.changedTouches[0].clientY;
1424
+ c(g, p);
1425
1425
  }, [c]), v = M(function(g) {
1426
1426
  if (g) {
1427
- var I = tn ? {
1427
+ var p = tn ? {
1428
1428
  passive: !1
1429
1429
  } : !1;
1430
- g.addEventListener("wheel", d, I), g.addEventListener("touchstart", b, I), g.addEventListener("touchmove", p, I);
1430
+ g.addEventListener("wheel", d, p), g.addEventListener("touchstart", b, p), g.addEventListener("touchmove", I, p);
1431
1431
  }
1432
- }, [p, b, d]), m = M(function(g) {
1433
- g && (g.removeEventListener("wheel", d, !1), g.removeEventListener("touchstart", b, !1), g.removeEventListener("touchmove", p, !1));
1434
- }, [p, b, d]);
1432
+ }, [I, b, d]), m = M(function(g) {
1433
+ g && (g.removeEventListener("wheel", d, !1), g.removeEventListener("touchstart", b, !1), g.removeEventListener("touchmove", I, !1));
1434
+ }, [I, b, d]);
1435
1435
  return Ke(function() {
1436
1436
  if (e) {
1437
1437
  var g = l.current;
@@ -1475,11 +1475,11 @@ function Di(n) {
1475
1475
  var m = c && c[v];
1476
1476
  t.current[v] = m;
1477
1477
  }), u && oe < 1) {
1478
- var d = parseInt(t.current.paddingRight, 10) || 0, b = document.body ? document.body.clientWidth : 0, p = window.innerWidth - b + d || 0;
1478
+ var d = parseInt(t.current.paddingRight, 10) || 0, b = document.body ? document.body.clientWidth : 0, I = window.innerWidth - b + d || 0;
1479
1479
  Object.keys(Oe).forEach(function(v) {
1480
1480
  var m = Oe[v];
1481
1481
  c && (c[v] = m);
1482
- }), c && (c.paddingRight = "".concat(p, "px"));
1482
+ }), c && (c.paddingRight = "".concat(I, "px"));
1483
1483
  }
1484
1484
  l && ze() && (l.addEventListener("touchmove", Ye, ne), o && (o.addEventListener("touchstart", Le, ne), o.addEventListener("touchmove", we, ne))), oe += 1;
1485
1485
  }
@@ -1527,8 +1527,8 @@ function Yi(n) {
1527
1527
  onTopLeave: o
1528
1528
  }), c = Di({
1529
1529
  isEnabled: i
1530
- }), d = function(p) {
1531
- l(p), c(p);
1530
+ }), d = function(I) {
1531
+ l(I), c(I);
1532
1532
  };
1533
1533
  return C(xe, null, i && C("div", {
1534
1534
  onClick: Ji,
@@ -1601,7 +1601,7 @@ var $i = function(e) {
1601
1601
  loadingIndicator: Tn,
1602
1602
  loadingMessage: vn,
1603
1603
  menu: cn,
1604
- menuList: pn,
1604
+ menuList: In,
1605
1605
  menuPortal: hn,
1606
1606
  multiValue: ni,
1607
1607
  multiValueLabel: ii,
@@ -1686,7 +1686,7 @@ var $i = function(e) {
1686
1686
  unstyled: !1
1687
1687
  };
1688
1688
  function je(n, e, i, u) {
1689
- var t = mt(n, e, i), a = vt(n, e, i), r = It(n, e), s = Ie(n, e);
1689
+ var t = mt(n, e, i), a = vt(n, e, i), r = pt(n, e), s = pe(n, e);
1690
1690
  return {
1691
1691
  type: "option",
1692
1692
  data: e,
@@ -1716,7 +1716,7 @@ function ge(n, e) {
1716
1716
  return Qe(n, a) ? a : void 0;
1717
1717
  }).filter(nn);
1718
1718
  }
1719
- function pt(n) {
1719
+ function It(n) {
1720
1720
  return n.reduce(function(e, i) {
1721
1721
  return i.type === "group" ? e.push.apply(e, ye(i.options.map(function(u) {
1722
1722
  return u.data;
@@ -1737,7 +1737,7 @@ function Ue(n, e) {
1737
1737
  }, []);
1738
1738
  }
1739
1739
  function lu(n, e) {
1740
- return pt(ge(n, e));
1740
+ return It(ge(n, e));
1741
1741
  }
1742
1742
  function Qe(n, e) {
1743
1743
  var i = n.inputValue, u = i === void 0 ? "" : i, t = e.data, a = e.isSelected, r = e.label, s = e.value;
@@ -1767,9 +1767,9 @@ var Ge = function(e, i) {
1767
1767
  return a.data === i;
1768
1768
  })) === null || u === void 0 ? void 0 : u.id;
1769
1769
  return t || null;
1770
- }, It = function(e, i) {
1770
+ }, pt = function(e, i) {
1771
1771
  return e.getOptionLabel(i);
1772
- }, Ie = function(e, i) {
1772
+ }, pe = function(e, i) {
1773
1773
  return e.getOptionValue(i);
1774
1774
  };
1775
1775
  function mt(n, e, i) {
@@ -1779,9 +1779,9 @@ function vt(n, e, i) {
1779
1779
  if (i.indexOf(e) > -1) return !0;
1780
1780
  if (typeof n.isOptionSelected == "function")
1781
1781
  return n.isOptionSelected(e, i);
1782
- var u = Ie(n, e);
1782
+ var u = pe(n, e);
1783
1783
  return i.some(function(t) {
1784
- return Ie(n, t) === u;
1784
+ return pe(n, t) === u;
1785
1785
  });
1786
1786
  }
1787
1787
  function Ct(n, e, i) {
@@ -1821,12 +1821,12 @@ var ft = function(e) {
1821
1821
  var c = t.props, d = c.onChange, b = c.name;
1822
1822
  l.name = b, t.ariaOnChange(o, l), d(o, l);
1823
1823
  }, t.setValue = function(o, l, c) {
1824
- var d = t.props, b = d.closeMenuOnSelect, p = d.isMulti, v = d.inputValue;
1824
+ var d = t.props, b = d.closeMenuOnSelect, I = d.isMulti, v = d.inputValue;
1825
1825
  t.onInputChange("", {
1826
1826
  action: "set-value",
1827
1827
  prevInputValue: v
1828
1828
  }), b && (t.setState({
1829
- inputIsHiddenAfterUpdate: !p
1829
+ inputIsHiddenAfterUpdate: !I
1830
1830
  }), t.onMenuClose()), t.setState({
1831
1831
  clearFocusValueOnUpdate: !0
1832
1832
  }), t.onChange(o, {
@@ -1834,14 +1834,14 @@ var ft = function(e) {
1834
1834
  option: c
1835
1835
  });
1836
1836
  }, t.selectOption = function(o) {
1837
- var l = t.props, c = l.blurInputOnSelect, d = l.isMulti, b = l.name, p = t.state.selectValue, v = d && t.isOptionSelected(o, p), m = t.isOptionDisabled(o, p);
1837
+ var l = t.props, c = l.blurInputOnSelect, d = l.isMulti, b = l.name, I = t.state.selectValue, v = d && t.isOptionSelected(o, I), m = t.isOptionDisabled(o, I);
1838
1838
  if (v) {
1839
1839
  var g = t.getOptionValue(o);
1840
- t.setValue(p.filter(function(I) {
1841
- return t.getOptionValue(I) !== g;
1840
+ t.setValue(I.filter(function(p) {
1841
+ return t.getOptionValue(p) !== g;
1842
1842
  }), "deselect-option", o);
1843
1843
  } else if (!m)
1844
- d ? t.setValue([].concat(ye(p), [o]), "select-option", o) : t.setValue(o, "select-option");
1844
+ d ? t.setValue([].concat(ye(I), [o]), "select-option", o) : t.setValue(o, "select-option");
1845
1845
  else {
1846
1846
  t.ariaOnChange(o, {
1847
1847
  action: "select-option",
@@ -1854,8 +1854,8 @@ var ft = function(e) {
1854
1854
  }, t.removeValue = function(o) {
1855
1855
  var l = t.props.isMulti, c = t.state.selectValue, d = t.getOptionValue(o), b = c.filter(function(v) {
1856
1856
  return t.getOptionValue(v) !== d;
1857
- }), p = de(l, b, b[0] || null);
1858
- t.onChange(p, {
1857
+ }), I = de(l, b, b[0] || null);
1858
+ t.onChange(I, {
1859
1859
  action: "remove-value",
1860
1860
  removedValue: o
1861
1861
  }), t.focusInput();
@@ -1882,9 +1882,9 @@ var ft = function(e) {
1882
1882
  l[c] = arguments[c];
1883
1883
  return Ut.apply(void 0, [t.props.classNamePrefix].concat(l));
1884
1884
  }, t.getOptionLabel = function(o) {
1885
- return It(t.props, o);
1885
+ return pt(t.props, o);
1886
1886
  }, t.getOptionValue = function(o) {
1887
- return Ie(t.props, o);
1887
+ return pe(t.props, o);
1888
1888
  }, t.getStyles = function(o, l) {
1889
1889
  var c = t.props.unstyled, d = tu[o](l, c);
1890
1890
  d.boxSizing = "border-box";
@@ -1902,7 +1902,7 @@ var ft = function(e) {
1902
1902
  }, t.getCategorizedOptions = function() {
1903
1903
  return t.props.menuIsOpen ? t.buildCategorizedOptions() : [];
1904
1904
  }, t.buildFocusableOptions = function() {
1905
- return pt(t.buildCategorizedOptions());
1905
+ return It(t.buildCategorizedOptions());
1906
1906
  }, t.getFocusableOptions = function() {
1907
1907
  return t.props.menuIsOpen ? t.buildFocusableOptions() : [];
1908
1908
  }, t.ariaOnChange = function(o, l) {
@@ -1943,8 +1943,8 @@ var ft = function(e) {
1943
1943
  }, t.onTouchMove = function(o) {
1944
1944
  var l = o.touches, c = l && l.item(0);
1945
1945
  if (c) {
1946
- var d = Math.abs(c.clientX - t.initialTouchX), b = Math.abs(c.clientY - t.initialTouchY), p = 5;
1947
- t.userIsDragging = d > p || b > p;
1946
+ var d = Math.abs(c.clientX - t.initialTouchX), b = Math.abs(c.clientY - t.initialTouchY), I = 5;
1947
+ t.userIsDragging = d > I || b > I;
1948
1948
  }
1949
1949
  }, t.onTouchEnd = function(o) {
1950
1950
  t.userIsDragging || (t.controlRef && !t.controlRef.contains(o.target) && t.menuListRef && !t.menuListRef.contains(o.target) && t.blurInput(), t.initialTouchX = 0, t.initialTouchY = 0);
@@ -1993,20 +1993,20 @@ var ft = function(e) {
1993
1993
  }, t.onValueInputFocus = function(o) {
1994
1994
  o.preventDefault(), o.stopPropagation(), t.focus();
1995
1995
  }, t.onKeyDown = function(o) {
1996
- var l = t.props, c = l.isMulti, d = l.backspaceRemovesValue, b = l.escapeClearsValue, p = l.inputValue, v = l.isClearable, m = l.isDisabled, g = l.menuIsOpen, I = l.onKeyDown, V = l.tabSelectsValue, G = l.openMenuOnFocus, x = t.state, B = x.focusedOption, y = x.focusedValue, E = x.selectValue;
1997
- if (!m && !(typeof I == "function" && (I(o), o.defaultPrevented))) {
1996
+ var l = t.props, c = l.isMulti, d = l.backspaceRemovesValue, b = l.escapeClearsValue, I = l.inputValue, v = l.isClearable, m = l.isDisabled, g = l.menuIsOpen, p = l.onKeyDown, V = l.tabSelectsValue, G = l.openMenuOnFocus, x = t.state, B = x.focusedOption, y = x.focusedValue, E = x.selectValue;
1997
+ if (!m && !(typeof p == "function" && (p(o), o.defaultPrevented))) {
1998
1998
  switch (t.blockOptionHover = !0, o.key) {
1999
1999
  case "ArrowLeft":
2000
- if (!c || p) return;
2000
+ if (!c || I) return;
2001
2001
  t.focusValue("previous");
2002
2002
  break;
2003
2003
  case "ArrowRight":
2004
- if (!c || p) return;
2004
+ if (!c || I) return;
2005
2005
  t.focusValue("next");
2006
2006
  break;
2007
2007
  case "Delete":
2008
2008
  case "Backspace":
2009
- if (p) return;
2009
+ if (I) return;
2010
2010
  if (y)
2011
2011
  t.removeValue(y);
2012
2012
  else {
@@ -2035,11 +2035,11 @@ var ft = function(e) {
2035
2035
  inputIsHiddenAfterUpdate: !1
2036
2036
  }), t.onInputChange("", {
2037
2037
  action: "menu-close",
2038
- prevInputValue: p
2038
+ prevInputValue: I
2039
2039
  }), t.onMenuClose()) : v && b && t.clearValue();
2040
2040
  break;
2041
2041
  case " ":
2042
- if (p)
2042
+ if (I)
2043
2043
  return;
2044
2044
  if (!g) {
2045
2045
  t.openMenu("first");
@@ -2208,7 +2208,7 @@ var ft = function(e) {
2208
2208
  }, {
2209
2209
  key: "getCommonProps",
2210
2210
  value: function() {
2211
- var t = this.clearValue, a = this.cx, r = this.getStyles, s = this.getClassNames, o = this.getValue, l = this.selectOption, c = this.setValue, d = this.props, b = d.isMulti, p = d.isRtl, v = d.options, m = this.hasValue();
2211
+ var t = this.clearValue, a = this.cx, r = this.getStyles, s = this.getClassNames, o = this.getValue, l = this.selectOption, c = this.setValue, d = this.props, b = d.isMulti, I = d.isRtl, v = d.options, m = this.hasValue();
2212
2212
  return {
2213
2213
  clearValue: t,
2214
2214
  cx: a,
@@ -2217,7 +2217,7 @@ var ft = function(e) {
2217
2217
  getValue: o,
2218
2218
  hasValue: m,
2219
2219
  isMulti: b,
2220
- isRtl: p,
2220
+ isRtl: I,
2221
2221
  options: v,
2222
2222
  selectOption: l,
2223
2223
  selectProps: d,
@@ -2315,7 +2315,7 @@ var ft = function(e) {
2315
2315
  // Renderers
2316
2316
  // ==============================
2317
2317
  function() {
2318
- var t = this.props, a = t.isDisabled, r = t.isSearchable, s = t.inputId, o = t.inputValue, l = t.tabIndex, c = t.form, d = t.menuIsOpen, b = t.required, p = this.getComponents(), v = p.Input, m = this.state, g = m.inputIsHidden, I = m.ariaSelection, V = this.commonProps, G = s || this.getElementId("input"), x = f(f(f({
2318
+ var t = this.props, a = t.isDisabled, r = t.isSearchable, s = t.inputId, o = t.inputValue, l = t.tabIndex, c = t.form, d = t.menuIsOpen, b = t.required, I = this.getComponents(), v = I.Input, m = this.state, g = m.inputIsHidden, p = m.ariaSelection, V = this.commonProps, G = s || this.getElementId("input"), x = f(f(f({
2319
2319
  "aria-autocomplete": "list",
2320
2320
  "aria-expanded": d,
2321
2321
  "aria-haspopup": !0,
@@ -2330,7 +2330,7 @@ var ft = function(e) {
2330
2330
  "aria-controls": this.getElementId("listbox")
2331
2331
  }), !r && {
2332
2332
  "aria-readonly": !0
2333
- }), this.hasValue() ? (I == null ? void 0 : I.action) === "initial-input-focus" && {
2333
+ }), this.hasValue() ? (p == null ? void 0 : p.action) === "initial-input-focus" && {
2334
2334
  "aria-describedby": this.getElementId("live-region")
2335
2335
  } : {
2336
2336
  "aria-describedby": this.getElementId("placeholder")
@@ -2368,9 +2368,9 @@ var ft = function(e) {
2368
2368
  }, {
2369
2369
  key: "renderPlaceholderOrValue",
2370
2370
  value: function() {
2371
- var t = this, a = this.getComponents(), r = a.MultiValue, s = a.MultiValueContainer, o = a.MultiValueLabel, l = a.MultiValueRemove, c = a.SingleValue, d = a.Placeholder, b = this.commonProps, p = this.props, v = p.controlShouldRenderValue, m = p.isDisabled, g = p.isMulti, I = p.inputValue, V = p.placeholder, G = this.state, x = G.selectValue, B = G.focusedValue, y = G.isFocused;
2371
+ var t = this, a = this.getComponents(), r = a.MultiValue, s = a.MultiValueContainer, o = a.MultiValueLabel, l = a.MultiValueRemove, c = a.SingleValue, d = a.Placeholder, b = this.commonProps, I = this.props, v = I.controlShouldRenderValue, m = I.isDisabled, g = I.isMulti, p = I.inputValue, V = I.placeholder, G = this.state, x = G.selectValue, B = G.focusedValue, y = G.isFocused;
2372
2372
  if (!this.hasValue() || !v)
2373
- return I ? null : /* @__PURE__ */ F.createElement(d, h({}, b, {
2373
+ return p ? null : /* @__PURE__ */ F.createElement(d, h({}, b, {
2374
2374
  key: "placeholder",
2375
2375
  isDisabled: m,
2376
2376
  isFocused: y,
@@ -2405,7 +2405,7 @@ var ft = function(e) {
2405
2405
  data: A
2406
2406
  }), t.formatOptionLabel(A, "value"));
2407
2407
  });
2408
- if (I)
2408
+ if (p)
2409
2409
  return null;
2410
2410
  var E = x[0];
2411
2411
  return /* @__PURE__ */ F.createElement(c, h({}, b, {
@@ -2473,7 +2473,7 @@ var ft = function(e) {
2473
2473
  }, {
2474
2474
  key: "renderMenu",
2475
2475
  value: function() {
2476
- var t = this, a = this.getComponents(), r = a.Group, s = a.GroupHeading, o = a.Menu, l = a.MenuList, c = a.MenuPortal, d = a.LoadingMessage, b = a.NoOptionsMessage, p = a.Option, v = this.commonProps, m = this.state.focusedOption, g = this.props, I = g.captureMenuScroll, V = g.inputValue, G = g.isLoading, x = g.loadingMessage, B = g.minMenuHeight, y = g.maxMenuHeight, E = g.menuIsOpen, A = g.menuPlacement, X = g.menuPosition, H = g.menuPortalTarget, D = g.menuShouldBlockScroll, N = g.menuShouldScrollIntoView, w = g.noOptionsMessage, L = g.onMenuScrollToTop, P = g.onMenuScrollToBottom;
2476
+ var t = this, a = this.getComponents(), r = a.Group, s = a.GroupHeading, o = a.Menu, l = a.MenuList, c = a.MenuPortal, d = a.LoadingMessage, b = a.NoOptionsMessage, I = a.Option, v = this.commonProps, m = this.state.focusedOption, g = this.props, p = g.captureMenuScroll, V = g.inputValue, G = g.isLoading, x = g.loadingMessage, B = g.minMenuHeight, y = g.maxMenuHeight, E = g.menuIsOpen, A = g.menuPlacement, X = g.menuPosition, H = g.menuPortalTarget, D = g.menuShouldBlockScroll, N = g.menuShouldScrollIntoView, w = g.noOptionsMessage, L = g.onMenuScrollToTop, P = g.onMenuScrollToBottom;
2477
2477
  if (!E) return null;
2478
2478
  var S = function(T, z) {
2479
2479
  var _ = T.type, O = T.data, q = T.isDisabled, k = T.isSelected, le = T.label, ht = T.value, Xe = m === O, Re = q ? void 0 : function() {
@@ -2490,7 +2490,7 @@ var ft = function(e) {
2490
2490
  "aria-selected": t.isAppleDevice ? void 0 : k
2491
2491
  // is not supported on Apple devices
2492
2492
  };
2493
- return /* @__PURE__ */ F.createElement(p, h({}, v, {
2493
+ return /* @__PURE__ */ F.createElement(I, h({}, v, {
2494
2494
  innerProps: Gt,
2495
2495
  data: O,
2496
2496
  isDisabled: q,
@@ -2553,7 +2553,7 @@ var ft = function(e) {
2553
2553
  isLoading: G,
2554
2554
  placement: _
2555
2555
  }), /* @__PURE__ */ F.createElement(Yi, {
2556
- captureEnabled: I,
2556
+ captureEnabled: p,
2557
2557
  onTopArrive: L,
2558
2558
  onBottomArrive: P,
2559
2559
  lockEnabled: D
@@ -2601,7 +2601,7 @@ var ft = function(e) {
2601
2601
  value: b
2602
2602
  });
2603
2603
  } else {
2604
- var p = d.length > 0 ? d.map(function(m, g) {
2604
+ var I = d.length > 0 ? d.map(function(m, g) {
2605
2605
  return /* @__PURE__ */ F.createElement("input", {
2606
2606
  key: "i-".concat(g),
2607
2607
  name: l,
@@ -2613,7 +2613,7 @@ var ft = function(e) {
2613
2613
  type: "hidden",
2614
2614
  value: ""
2615
2615
  });
2616
- return /* @__PURE__ */ F.createElement("div", null, p);
2616
+ return /* @__PURE__ */ F.createElement("div", null, I);
2617
2617
  }
2618
2618
  else {
2619
2619
  var v = d[0] ? this.getOptionValue(d[0]) : "";
@@ -2642,7 +2642,7 @@ var ft = function(e) {
2642
2642
  }, {
2643
2643
  key: "render",
2644
2644
  value: function() {
2645
- var t = this.getComponents(), a = t.Control, r = t.IndicatorsContainer, s = t.SelectContainer, o = t.ValueContainer, l = this.props, c = l.className, d = l.id, b = l.isDisabled, p = l.menuIsOpen, v = this.state.isFocused, m = this.commonProps = this.getCommonProps();
2645
+ var t = this.getComponents(), a = t.Control, r = t.IndicatorsContainer, s = t.SelectContainer, o = t.ValueContainer, l = this.props, c = l.className, d = l.id, b = l.isDisabled, I = l.menuIsOpen, v = this.state.isFocused, m = this.commonProps = this.getCommonProps();
2646
2646
  return /* @__PURE__ */ F.createElement(s, h({}, m, {
2647
2647
  className: c,
2648
2648
  innerProps: {
@@ -2659,7 +2659,7 @@ var ft = function(e) {
2659
2659
  },
2660
2660
  isDisabled: b,
2661
2661
  isFocused: v,
2662
- menuIsOpen: p
2662
+ menuIsOpen: I
2663
2663
  }), /* @__PURE__ */ F.createElement(o, h({}, m, {
2664
2664
  isDisabled: b
2665
2665
  }), this.renderPlaceholderOrValue(), this.renderInput()), /* @__PURE__ */ F.createElement(r, h({}, m, {
@@ -2669,8 +2669,8 @@ var ft = function(e) {
2669
2669
  }], [{
2670
2670
  key: "getDerivedStateFromProps",
2671
2671
  value: function(t, a) {
2672
- var r = a.prevProps, s = a.clearFocusValueOnUpdate, o = a.inputIsHiddenAfterUpdate, l = a.ariaSelection, c = a.isFocused, d = a.prevWasFocused, b = a.instancePrefix, p = t.options, v = t.value, m = t.menuIsOpen, g = t.inputValue, I = t.isMulti, V = Ze(v), G = {};
2673
- if (r && (v !== r.value || p !== r.options || m !== r.menuIsOpen || g !== r.inputValue)) {
2672
+ var r = a.prevProps, s = a.clearFocusValueOnUpdate, o = a.inputIsHiddenAfterUpdate, l = a.ariaSelection, c = a.isFocused, d = a.prevWasFocused, b = a.instancePrefix, I = t.options, v = t.value, m = t.menuIsOpen, g = t.inputValue, p = t.isMulti, V = Ze(v), G = {};
2673
+ if (r && (v !== r.value || I !== r.options || m !== r.menuIsOpen || g !== r.inputValue)) {
2674
2674
  var x = m ? lu(t, V) : [], B = m ? Ue(ge(t, V), "".concat(b, "-option")) : [], y = s ? su(a, V) : null, E = cu(a, x), A = Ge(B, E);
2675
2675
  G = {
2676
2676
  selectValue: V,
@@ -2686,7 +2686,7 @@ var ft = function(e) {
2686
2686
  inputIsHiddenAfterUpdate: void 0
2687
2687
  } : {}, H = l, D = c && d;
2688
2688
  return c && !D && (H = {
2689
- value: de(I, V, V[0] || null),
2689
+ value: de(p, V, V[0] || null),
2690
2690
  options: V,
2691
2691
  action: "initial-input-focus"
2692
2692
  }, D = !d), (l == null ? void 0 : l.action) === "initial-input-focus" && (H = null), f(f(f({}, G), X), {}, {
@@ -2701,10 +2701,10 @@ gu.defaultProps = ru;
2701
2701
  const bu = (n) => {
2702
2702
  const e = n.colorContext[n.palette.outline.context], i = n.palette[e][n.palette.outline.weight];
2703
2703
  return `${n.palette.outline.width} ${n.palette.outline.style} ${i}`;
2704
- }, pu = (n) => {
2704
+ }, Iu = (n) => {
2705
2705
  const e = n.palette.disabled.color, i = n.palette[e][n.palette.disabled.background], u = n.palette.opacity[n.palette.disabled.opacity];
2706
2706
  return Mt(i, u ?? "100%");
2707
- }, Iu = (n) => {
2707
+ }, pu = (n) => {
2708
2708
  const e = n.palette.disabled.color;
2709
2709
  return n.palette[e][n.palette.disabled.text];
2710
2710
  }, Eu = {
@@ -2730,7 +2730,7 @@ const bu = (n) => {
2730
2730
  fontWeight: e.theme.components.Input.default.enabled.fontWeight,
2731
2731
  fontSize: e.theme.typography.component[e.selectProps.size].fontSize,
2732
2732
  lineHeight: e.theme.typography.component[e.selectProps.size].lineHeight,
2733
- boxShadow: "0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.06)",
2733
+ boxShadow: "none",
2734
2734
  outline: e.isFocused ? bu(e.theme) : "none",
2735
2735
  outlineOffset: e.isFocused ? e.theme.palette.outline.offset : "0",
2736
2736
  "&:hover": {
@@ -2747,7 +2747,7 @@ const bu = (n) => {
2747
2747
  maxHeight: te(e.theme, e.selectProps.size)
2748
2748
  },
2749
2749
  // This line disable the blue border
2750
- backgroundColor: e.isDisabled ? pu(e.theme) : Z(e.theme, "Input", e.color, "enabled", "background"),
2750
+ backgroundColor: e.isDisabled ? Iu(e.theme) : Z(e.theme, "Input", e.color, "enabled", "background"),
2751
2751
  border: `1px solid
2752
2752
  ${Z(
2753
2753
  e.theme,
@@ -2757,7 +2757,7 @@ const bu = (n) => {
2757
2757
  "border"
2758
2758
  )}`,
2759
2759
  borderRadius: ue(e.theme, "regular"),
2760
- color: e.isDisabled ? Iu(e.theme) : e.isFocused ? Z(e.theme, "Input", "primary", "enabled", "text") : Z(e.theme, "Input", e.color, "enabled", "text")
2760
+ color: e.isDisabled ? pu(e.theme) : e.isFocused ? Z(e.theme, "Input", "primary", "enabled", "text") : Z(e.theme, "Input", e.color, "enabled", "text")
2761
2761
  }),
2762
2762
  menu: (n, e) => ({
2763
2763
  ...n,
package/dist/Dropdown.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const g=require("react/jsx-runtime"),e=require("./index-BpbMKBf_.cjs"),s=require("react"),t=require("./CustomStyles-BwHfr4iM.cjs"),l=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs");require("./index-41nUb2kP.cjs");const O=require("./index-Cp66dWMi.cjs");function S(o){const p=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const r in o)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(o,r);Object.defineProperty(p,r,n.get?n:{enumerable:!0,get:()=>o[r]})}}return p.default=o,Object.freeze(p)}const M=S(s);var h=s.forwardRef(function(o,p){var r=t.useStateManager(o);return M.createElement(t.Select,l._extends({ref:p},r))}),j=h;const a=s.forwardRef((o,p)=>{const{styles:r,debounceTime:n=0,name:C,isSearchable:u=!0,isClearable:c=!0,size:y="small",color:i="primary",className:T="",style:P={},...b}=o,m=l.useTheme();return s.useCallback(O.debounce((f,d)=>{onInputChange==null||onInputChange(f,d)},n)),g.jsx(j,{ref:p,styles:r||t.customStyles,size:y,color:i,theme:m,isSearchable:u,isClearable:c,className:T,style:P,...b})});a.propTypes={options:e.PropTypes.array,styles:e.PropTypes.object,debounceTime:e.PropTypes.number,name:e.PropTypes.string,value:e.PropTypes.any,tabIndex:e.PropTypes.number,isSearchable:e.PropTypes.bool,isClearable:e.PropTypes.bool,isLoading:e.PropTypes.bool,isRtl:e.PropTypes.bool,isDisabled:e.PropTypes.bool,readOnly:e.PropTypes.bool,closeMenuOnSelect:e.PropTypes.bool,closeMenuOnScroll:e.PropTypes.oneOfType([e.PropTypes.bool,e.PropTypes.func]),escapeClearsValue:e.PropTypes.bool,filterOption:e.PropTypes.func,formatGroupLabel:e.PropTypes.func,formatOptionLabel:e.PropTypes.func,getOptionLabel:e.PropTypes.func,getOptionValue:e.PropTypes.func,hideSelectedOptions:e.PropTypes.bool,id:e.PropTypes.any,inputid:e.PropTypes.any,isOptionDisabled:e.PropTypes.func,isOptionSelected:e.PropTypes.func,loadingMessage:e.PropTypes.func,minMenuHeight:e.PropTypes.number,maxMenuHeight:e.PropTypes.number,menuPlacement:e.PropTypes.oneOf(["bottom","auto","top"]),menuPosition:e.PropTypes.oneOf(["absolute","fixed"]),menuShouldBlockScroll:e.PropTypes.bool,menuShouldScrollIntoView:e.PropTypes.bool,openMenuOnFocus:e.PropTypes.bool,openMenuOnClick:e.PropTypes.bool,autoFocus:e.PropTypes.bool,placeholder:e.PropTypes.any,noOptionsMessage:e.PropTypes.string,menuIsOpen:e.PropTypes.bool,components:e.PropTypes.object,defaultValue:e.PropTypes.any,defaultInputValue:e.PropTypes.string,defaultMenuIsOpen:e.PropTypes.bool,delimiter:e.PropTypes.string,onChange:e.PropTypes.func,onInputChange:e.PropTypes.func,onMenuOpen:e.PropTypes.func,onMenuClose:e.PropTypes.func,onFocus:e.PropTypes.func,onBlur:e.PropTypes.func,className:e.PropTypes.string,style:e.PropTypes.object,color:e.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral","gray"]),size:e.PropTypes.oneOf(["small","medium","large"])};exports.components=t.components;exports.default=a;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const g=require("react/jsx-runtime"),e=require("./index-BpbMKBf_.cjs"),s=require("react"),t=require("./CustomStyles-Q6et9atl.cjs"),l=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs");require("./index-41nUb2kP.cjs");const O=require("./index-Cp66dWMi.cjs");function S(o){const p=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const r in o)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(o,r);Object.defineProperty(p,r,n.get?n:{enumerable:!0,get:()=>o[r]})}}return p.default=o,Object.freeze(p)}const M=S(s);var h=s.forwardRef(function(o,p){var r=t.useStateManager(o);return M.createElement(t.Select,l._extends({ref:p},r))}),j=h;const a=s.forwardRef((o,p)=>{const{styles:r,debounceTime:n=0,name:C,isSearchable:u=!0,isClearable:c=!0,size:y="small",color:i="primary",className:T="",style:P={},...b}=o,m=l.useTheme();return s.useCallback(O.debounce((f,d)=>{onInputChange==null||onInputChange(f,d)},n)),g.jsx(j,{ref:p,styles:r||t.customStyles,size:y,color:i,theme:m,isSearchable:u,isClearable:c,className:T,style:P,...b})});a.propTypes={options:e.PropTypes.array,styles:e.PropTypes.object,debounceTime:e.PropTypes.number,name:e.PropTypes.string,value:e.PropTypes.any,tabIndex:e.PropTypes.number,isSearchable:e.PropTypes.bool,isClearable:e.PropTypes.bool,isLoading:e.PropTypes.bool,isRtl:e.PropTypes.bool,isDisabled:e.PropTypes.bool,readOnly:e.PropTypes.bool,closeMenuOnSelect:e.PropTypes.bool,closeMenuOnScroll:e.PropTypes.oneOfType([e.PropTypes.bool,e.PropTypes.func]),escapeClearsValue:e.PropTypes.bool,filterOption:e.PropTypes.func,formatGroupLabel:e.PropTypes.func,formatOptionLabel:e.PropTypes.func,getOptionLabel:e.PropTypes.func,getOptionValue:e.PropTypes.func,hideSelectedOptions:e.PropTypes.bool,id:e.PropTypes.any,inputid:e.PropTypes.any,isOptionDisabled:e.PropTypes.func,isOptionSelected:e.PropTypes.func,loadingMessage:e.PropTypes.func,minMenuHeight:e.PropTypes.number,maxMenuHeight:e.PropTypes.number,menuPlacement:e.PropTypes.oneOf(["bottom","auto","top"]),menuPosition:e.PropTypes.oneOf(["absolute","fixed"]),menuShouldBlockScroll:e.PropTypes.bool,menuShouldScrollIntoView:e.PropTypes.bool,openMenuOnFocus:e.PropTypes.bool,openMenuOnClick:e.PropTypes.bool,autoFocus:e.PropTypes.bool,placeholder:e.PropTypes.any,noOptionsMessage:e.PropTypes.string,menuIsOpen:e.PropTypes.bool,components:e.PropTypes.object,defaultValue:e.PropTypes.any,defaultInputValue:e.PropTypes.string,defaultMenuIsOpen:e.PropTypes.bool,delimiter:e.PropTypes.string,onChange:e.PropTypes.func,onInputChange:e.PropTypes.func,onMenuOpen:e.PropTypes.func,onMenuClose:e.PropTypes.func,onFocus:e.PropTypes.func,onBlur:e.PropTypes.func,className:e.PropTypes.string,style:e.PropTypes.object,color:e.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral","gray"]),size:e.PropTypes.oneOf(["small","medium","large"])};exports.components=t.components;exports.default=a;
package/dist/Dropdown.js CHANGED
@@ -2,8 +2,8 @@ import { jsx as g } from "react/jsx-runtime";
2
2
  import { P as e } from "./index-CblbdqjE.js";
3
3
  import * as O from "react";
4
4
  import { forwardRef as t, useCallback as y } from "react";
5
- import { u as S, S as M, a as h } from "./CustomStyles-iconSXFL.js";
6
- import { c as H } from "./CustomStyles-iconSXFL.js";
5
+ import { u as S, S as M, a as h } from "./CustomStyles-SyQRnjuy.js";
6
+ import { c as H } from "./CustomStyles-SyQRnjuy.js";
7
7
  import { _ as C, u as x } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
8
8
  import "./index-B1vKwsDE.js";
9
9
  import { d as I } from "./index-Dt62UGku.js";