@livechat/design-system-react-components 1.21.0 → 1.22.0

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.
package/dist/index.es.js CHANGED
@@ -1,15 +1,15 @@
1
- var Fr = Object.defineProperty, Rr = Object.defineProperties;
2
- var Mr = Object.getOwnPropertyDescriptors;
1
+ var Rr = Object.defineProperty, Mr = Object.defineProperties;
2
+ var Lr = Object.getOwnPropertyDescriptors;
3
3
  var Dt = Object.getOwnPropertySymbols;
4
4
  var Oa = Object.prototype.hasOwnProperty, Ha = Object.prototype.propertyIsEnumerable;
5
- var pa = (t, a, r) => a in t ? Fr(t, a, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[a] = r, v = (t, a) => {
5
+ var pa = (t, a, r) => a in t ? Rr(t, a, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[a] = r, v = (t, a) => {
6
6
  for (var r in a || (a = {}))
7
7
  Oa.call(a, r) && pa(t, r, a[r]);
8
8
  if (Dt)
9
9
  for (var r of Dt(a))
10
10
  Ha.call(a, r) && pa(t, r, a[r]);
11
11
  return t;
12
- }, x = (t, a) => Rr(t, Mr(a));
12
+ }, x = (t, a) => Mr(t, Lr(a));
13
13
  var I = (t, a) => {
14
14
  var r = {};
15
15
  for (var _ in t)
@@ -21,18 +21,18 @@ var I = (t, a) => {
21
21
  };
22
22
  var ga = (t, a, r) => (pa(t, typeof a != "symbol" ? a + "" : a, r), r);
23
23
  import * as e from "react";
24
- import { useReducer as Lr, useRef as Or, useEffect as nt, useCallback as Bt, useMemo as Pt } from "react";
25
- import { Check as qt, Close as Pe, ChevronDown as Tt, Info as Pa, Warning as ur, CheckCircle as mr, Block as pr, Person as Hr, ChevronUp as Yt, DoubleArrowLeft as zr, ChevronLeft as Gr, ChevronRight as gr, DoubleArrowRight as Ur, VisibilityOn as Wr, VisibilityOff as Vr, Search as qr, LockBlackFilled as Yr, Refresh as Kr, Error as Jr } from "@livechat/design-system-icons";
24
+ import { useReducer as Or, useRef as Hr, useEffect as nt, useCallback as Bt, useMemo as Pt } from "react";
25
+ import { Check as qt, Close as Pe, ChevronDown as Tt, Info as Pa, Warning as ur, CheckCircle as mr, Block as pr, Person as zr, ChevronUp as Yt, DoubleArrowLeft as Gr, ChevronLeft as Ur, ChevronRight as gr, DoubleArrowRight as Wr, VisibilityOn as Vr, VisibilityOff as qr, Search as Yr, LockBlackFilled as Kr, Refresh as Jr, Error as Xr } from "@livechat/design-system-icons";
26
26
  import u from "clsx";
27
- import { useFloating as Kt, offset as Jt, flip as Xt, autoUpdate as Qt, useClick as jt, useDismiss as Zt, useRole as ea, useInteractions as ta, useTransitionStyles as br, shift as Aa, arrow as Xr, useHover as Qr, safePolygon as jr, useFocus as Zr, useTransitionStatus as e_, FloatingOverlay as t_, FloatingFocusManager as Ca, useFloatingNodeId as fr, size as a_, useListNavigation as r_, FloatingNode as vr, FloatingPortal as __, useFloatingParentNodeId as o_, FloatingTree as l_ } from "@floating-ui/react";
28
- import hr from "lodash.debounce";
27
+ import { useFloating as Kt, offset as Jt, flip as Xt, autoUpdate as Qt, useClick as jt, useDismiss as Zt, useRole as ea, useInteractions as ta, useTransitionStyles as br, shift as Aa, arrow as Qr, useHover as jr, safePolygon as Zr, useFocus as e_, useTransitionStatus as t_, FloatingPortal as fr, FloatingOverlay as a_, FloatingFocusManager as Ca, useFloatingNodeId as vr, size as r_, useListNavigation as __, FloatingNode as hr, useFloatingParentNodeId as o_, FloatingTree as l_ } from "@floating-ui/react";
28
+ import kr from "lodash.debounce";
29
29
  import { getContrast as Ia } from "polished";
30
30
  import c_ from "react-day-picker";
31
- import { subMonths as st, differenceInCalendarMonths as za, addMonths as Ga, isSameMonth as Sa, isSameDay as xa, isAfter as Ta, differenceInCalendarDays as kr } from "date-fns";
32
- import * as yr from "react-dom";
31
+ import { subMonths as st, differenceInCalendarMonths as za, addMonths as Ga, isSameMonth as Sa, isSameDay as xa, isAfter as Ta, differenceInCalendarDays as yr } from "date-fns";
32
+ import * as Er from "react-dom";
33
33
  import { Virtuoso as n_ } from "react-virtuoso";
34
34
  import Ua from "lodash.escape";
35
- import { TransitionGroup as Er, CSSTransition as wr } from "react-transition-group";
35
+ import { TransitionGroup as wr, CSSTransition as $r } from "react-transition-group";
36
36
  const _c = {
37
37
  /** @deprecated */
38
38
  Background: "--background",
@@ -846,13 +846,13 @@ const _c = {
846
846
  "loader__spinner-circle": "lc-Loader-module__loader__spinner-circle___ApBUO",
847
847
  rotate: b_,
848
848
  loader__label: f_
849
- }, $r = "loader", qa = `${$r}__spinner`, Fa = ({
849
+ }, Nr = "loader", qa = `${Nr}__spinner`, Fa = ({
850
850
  primaryColor: t,
851
851
  secondaryColor: a,
852
852
  label: r,
853
853
  className: _,
854
854
  size: o = "medium"
855
- }) => /* @__PURE__ */ e.createElement("div", { className: u(ut[$r], _) }, /* @__PURE__ */ e.createElement(
855
+ }) => /* @__PURE__ */ e.createElement("div", { className: u(ut[Nr], _) }, /* @__PURE__ */ e.createElement(
856
856
  "div",
857
857
  {
858
858
  className: u(ut[qa], ut[`${qa}--${o}`])
@@ -983,7 +983,7 @@ const _c = {
983
983
  );
984
984
  }
985
985
  );
986
- function Nr(t) {
986
+ function Cr(t) {
987
987
  switch (t) {
988
988
  case "invert":
989
989
  return "inverted";
@@ -1021,6 +1021,7 @@ const w_ = "lc-Tooltip-module__tooltip___QOOAr", $_ = "lc-Tooltip-module__toolti
1021
1021
  "tooltip-footer-secondary-invert": "lc-Tooltip-module__tooltip-footer-secondary-invert___PuAQL",
1022
1022
  "tooltip-footer--interactive": "lc-Tooltip-module__tooltip-footer--interactive___hqMM5",
1023
1023
  "tooltip-footer--user-guide-step": "lc-Tooltip-module__tooltip-footer--user-guide-step___i7z3S",
1024
+ "guide-tooltip": "lc-Tooltip-module__guide-tooltip___2uuIp",
1024
1025
  "guide-tooltip--slide": "lc-Tooltip-module__guide-tooltip--slide___Uawm2",
1025
1026
  "guide-tooltip__overlay": "lc-Tooltip-module__guide-tooltip__overlay___IyrKK",
1026
1027
  "guide-tooltip__overlay--slide": "lc-Tooltip-module__guide-tooltip__overlay--slide___VW8oq",
@@ -1030,7 +1031,7 @@ const w_ = "lc-Tooltip-module__tooltip___QOOAr", $_ = "lc-Tooltip-module__toolti
1030
1031
  "reports-tooltip__heading__title": "lc-Tooltip-module__reports-tooltip__heading__title___6TlzE",
1031
1032
  "reports-tooltip__heading__description": "lc-Tooltip-module__reports-tooltip__heading__description___eOQnc",
1032
1033
  "reports-tooltip__content": "lc-Tooltip-module__reports-tooltip__content___jxis9"
1033
- }, At = "tooltip", Cr = ({
1034
+ }, At = "tooltip", Sr = ({
1034
1035
  children: t,
1035
1036
  className: a,
1036
1037
  triggerClassName: r,
@@ -1079,14 +1080,14 @@ const w_ = "lc-Tooltip-module__tooltip___QOOAr", $_ = "lc-Tooltip-module__toolti
1079
1080
  Jt({ mainAxis: E }),
1080
1081
  Aa(),
1081
1082
  Xt(),
1082
- Xr({ element: we })
1083
+ Qr({ element: we })
1083
1084
  ],
1084
1085
  placement: c,
1085
1086
  open: oe,
1086
1087
  strategy: L,
1087
1088
  onOpenChange: Xe,
1088
1089
  whileElementsMounted: Qt
1089
- }), _a = Qr(U, {
1090
+ }), _a = jr(U, {
1090
1091
  move: !1,
1091
1092
  restMs: N,
1092
1093
  delay: {
@@ -1094,13 +1095,13 @@ const w_ = "lc-Tooltip-module__tooltip___QOOAr", $_ = "lc-Tooltip-module__toolti
1094
1095
  close: at(k || C)
1095
1096
  },
1096
1097
  enabled: !y,
1097
- handleClose: D ? null : jr()
1098
- }), oa = Zr(U), la = Zt(U, w), ca = ea(U, { role: "tooltip" }), na = jt(U, S), { isMounted: sa, styles: ia } = br(U, {
1098
+ handleClose: D ? null : Zr()
1099
+ }), oa = e_(U), la = Zt(U, w), ca = ea(U, { role: "tooltip" }), na = jt(U, S), { isMounted: sa, styles: ia } = br(U, {
1099
1100
  duration: {
1100
1101
  open: Qe(g),
1101
1102
  close: Qe(b)
1102
1103
  }
1103
- }), { status: da } = e_(U), { getReferenceProps: ua, getFloatingProps: ma } = ta([
1104
+ }), { status: da } = t_(U), { getReferenceProps: ua, getFloatingProps: ma } = ta([
1104
1105
  _a,
1105
1106
  oa,
1106
1107
  la,
@@ -1150,7 +1151,7 @@ const w_ = "lc-Tooltip-module__tooltip___QOOAr", $_ = "lc-Tooltip-module__toolti
1150
1151
  className: T[`${mt}-close`],
1151
1152
  onClick: l
1152
1153
  },
1153
- /* @__PURE__ */ e.createElement(P, { source: Pe, kind: o ? Nr(o) : "primary" })
1154
+ /* @__PURE__ */ e.createElement(P, { source: Pe, kind: o ? Cr(o) : "primary" })
1154
1155
  ), a && /* @__PURE__ */ e.createElement(
1155
1156
  Be,
1156
1157
  {
@@ -1191,7 +1192,7 @@ const w_ = "lc-Tooltip-module__tooltip___QOOAr", $_ = "lc-Tooltip-module__toolti
1191
1192
  className: T[`${Re}-close`],
1192
1193
  onClick: l
1193
1194
  },
1194
- /* @__PURE__ */ e.createElement(P, { source: Pe, kind: o ? Nr(o) : "primary" })
1195
+ /* @__PURE__ */ e.createElement(P, { source: Pe, kind: o ? Cr(o) : "primary" })
1195
1196
  ), r && /* @__PURE__ */ e.createElement("div", { className: T[`${Re}-image-container`] }, /* @__PURE__ */ e.createElement(
1196
1197
  "img",
1197
1198
  {
@@ -1362,9 +1363,9 @@ const Ya = 8, Ka = "guide-tooltip", Ja = (t, a) => new S_(t, a), bc = (t) => {
1362
1363
  return e.useEffect(() => {
1363
1364
  if (l !== null)
1364
1365
  return window.addEventListener("resize", m), window.addEventListener("scroll", m), () => {
1365
- window.addEventListener("resize", m), window.addEventListener("resize", m);
1366
+ window.removeEventListener("resize", m), window.removeEventListener("scroll", m);
1366
1367
  };
1367
- }, [l, r]), e.useEffect(() => {
1368
+ }, [l]), e.useEffect(() => {
1368
1369
  if (r) {
1369
1370
  const p = document.querySelector(r);
1370
1371
  c(p);
@@ -1376,7 +1377,7 @@ const Ya = 8, Ka = "guide-tooltip", Ja = (t, a) => new S_(t, a), bc = (t) => {
1376
1377
  Ya
1377
1378
  ).getBoundingClientRect()
1378
1379
  ), s(!0);
1379
- }, [l]), l && _ ? /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(
1380
+ }, [l]), l && _ && n ? /* @__PURE__ */ e.createElement(fr, null, /* @__PURE__ */ e.createElement(
1380
1381
  C_,
1381
1382
  {
1382
1383
  gap: n,
@@ -1385,13 +1386,13 @@ const Ya = 8, Ka = "guide-tooltip", Ja = (t, a) => new S_(t, a), bc = (t) => {
1385
1386
  disablePointerEvents: !0
1386
1387
  }
1387
1388
  ), /* @__PURE__ */ e.createElement(
1388
- Cr,
1389
+ Sr,
1389
1390
  x(v({}, t), {
1391
+ triggerRenderer: /* @__PURE__ */ e.createElement(e.Fragment, null),
1390
1392
  referenceElement: {
1391
1393
  getBoundingClientRect: () => n,
1392
1394
  contextElement: l
1393
1395
  },
1394
- arrowOffsetY: 25,
1395
1396
  className: u({
1396
1397
  [T[Ka]]: !0,
1397
1398
  [T[`${Ka}--slide`]]: d,
@@ -1436,7 +1437,7 @@ const Ya = 8, Ka = "guide-tooltip", Ja = (t, a) => new S_(t, a), bc = (t) => {
1436
1437
  "action-bar--vertical": "lc-ActionBar-module__action-bar--vertical___tMzLJ",
1437
1438
  "action-bar__items__button": "lc-ActionBar-module__action-bar__items__button___Vdjl7",
1438
1439
  "action-bar__items__button--active": "lc-ActionBar-module__action-bar__items__button--active___PFLdm"
1439
- }, Sr = "action-bar__items", gt = `${Sr}__button-wrapper`, x_ = ({
1440
+ }, xr = "action-bar__items", gt = `${xr}__button-wrapper`, x_ = ({
1440
1441
  id: t,
1441
1442
  option: a,
1442
1443
  menuItemsKeys: r,
@@ -1465,11 +1466,11 @@ const Ya = 8, Ka = "guide-tooltip", Ja = (t, a) => new S_(t, a), bc = (t) => {
1465
1466
  isVisible: !1
1466
1467
  };
1467
1468
  return /* @__PURE__ */ e.createElement("div", { className: l }, /* @__PURE__ */ e.createElement(
1468
- Cr,
1469
+ Sr,
1469
1470
  v({
1470
1471
  kind: "invert",
1471
1472
  placement: o ? "left" : "bottom",
1472
- triggerClassName: W[`${Sr}__tooltip`],
1473
+ triggerClassName: W[`${xr}__tooltip`],
1473
1474
  triggerRenderer: () => c,
1474
1475
  floatingStrategy: "fixed",
1475
1476
  useClickHookProps: {
@@ -1674,7 +1675,7 @@ const Ya = 8, Ka = "guide-tooltip", Ja = (t, a) => new S_(t, a), bc = (t) => {
1674
1675
  a
1675
1676
  );
1676
1677
  return e.useEffect(() => {
1677
- const g = () => d.current && d.current.offsetWidth <= 400 ? m("small") : d.current && d.current.offsetWidth > 400 && d.current.offsetWidth <= 800 ? m("medium") : m("large"), b = hr(() => {
1678
+ const g = () => d.current && d.current.offsetWidth <= 400 ? m("small") : d.current && d.current.offsetWidth > 400 && d.current.offsetWidth <= 800 ? m("medium") : m("large"), b = kr(() => {
1678
1679
  g();
1679
1680
  }, 500);
1680
1681
  return window.addEventListener("resize", b), g(), () => window.removeEventListener("resize", b);
@@ -1866,7 +1867,7 @@ const H_ = "lc-Avatar-module__avatar___1zTCE", z_ = "lc-Avatar-module__avatar__s
1866
1867
  {
1867
1868
  "data-testid": `${j}__icon`,
1868
1869
  className: X,
1869
- source: Hr
1870
+ source: zr
1870
1871
  }
1871
1872
  ));
1872
1873
  };
@@ -2147,7 +2148,7 @@ const X_ = "lc-SegmentedControl-module__btn___tfsvL", Rt = {
2147
2148
  }),
2148
2149
  onClick: b
2149
2150
  },
2150
- /* @__PURE__ */ e.createElement(P, { source: zr, kind: "subtle" })
2151
+ /* @__PURE__ */ e.createElement(P, { source: Gr, kind: "subtle" })
2151
2152
  ), /* @__PURE__ */ e.createElement(
2152
2153
  "button",
2153
2154
  {
@@ -2158,7 +2159,7 @@ const X_ = "lc-SegmentedControl-module__btn___tfsvL", Rt = {
2158
2159
  }),
2159
2160
  onClick: p
2160
2161
  },
2161
- /* @__PURE__ */ e.createElement(P, { source: Gr, kind: "subtle" })
2162
+ /* @__PURE__ */ e.createElement(P, { source: Ur, kind: "subtle" })
2162
2163
  )), /* @__PURE__ */ e.createElement("div", { className: B[`${Qa}__navbar-buttons-wrapper`] }, /* @__PURE__ */ e.createElement(
2163
2164
  "button",
2164
2165
  {
@@ -2180,12 +2181,12 @@ const X_ = "lc-SegmentedControl-module__btn___tfsvL", Rt = {
2180
2181
  }),
2181
2182
  onClick: h
2182
2183
  },
2183
- /* @__PURE__ */ e.createElement(P, { source: Ur, kind: "subtle" })
2184
+ /* @__PURE__ */ e.createElement(P, { source: Wr, kind: "subtle" })
2184
2185
  )));
2185
- }, R = "date-picker", xr = (t, a) => {
2186
+ }, R = "date-picker", Tr = (t, a) => {
2186
2187
  const { from: r, to: _ } = a;
2187
2188
  return !(_ && !xa(t, _) && Ta(t, _) || r && !xa(t, r) && !Ta(t, r));
2188
- }, Tr = (t, a, r) => a ? t && !Sa(t, a) || r && Sa(a, r) ? st(a, 1) : a : st(r || /* @__PURE__ */ new Date(), 1), yo = (t, a) => {
2189
+ }, Dr = (t, a, r) => a ? t && !Sa(t, a) || r && Sa(a, r) ? st(a, 1) : a : st(r || /* @__PURE__ */ new Date(), 1), yo = (t, a) => {
2189
2190
  const r = {
2190
2191
  [B[`${R}__day--monday`]]: { daysOfWeek: [1] },
2191
2192
  [B[`${R}__day--sunday`]]: { daysOfWeek: [0] },
@@ -2194,7 +2195,7 @@ const X_ = "lc-SegmentedControl-module__btn___tfsvL", Rt = {
2194
2195
  };
2195
2196
  if (!a || !t)
2196
2197
  return r;
2197
- const _ = kr(a, t);
2198
+ const _ = yr(a, t);
2198
2199
  return _ > 0 ? x(v({}, r), {
2199
2200
  [B[`${R}__day--end`]]: a
2200
2201
  }) : _ < 0 ? x(v({}, r), {
@@ -2277,7 +2278,7 @@ const X_ = "lc-SegmentedControl-module__btn___tfsvL", Rt = {
2277
2278
  e.useEffect(() => {
2278
2279
  o && o !== p && g(o);
2279
2280
  }, [o, p]), e.useEffect(() => {
2280
- _ && (xr(p, { from: l, to: _ }) || g(_));
2281
+ _ && (Tr(p, { from: l, to: _ }) || g(_));
2281
2282
  }, [p, t.toMonth, t.fromMonth]);
2282
2283
  const b = e.useCallback(
2283
2284
  (y) => {
@@ -2325,7 +2326,7 @@ const X_ = "lc-SegmentedControl-module__btn___tfsvL", Rt = {
2325
2326
  Co.displayName = "DatePicker";
2326
2327
  var q = /* @__PURE__ */ ((t) => (t.NEW_SELECTED_ITEM = "NEW_SELECTED_ITEM", t.NEW_TEMPORARY_TO_VALUE = "NEW_TEMPORARY_TO_VALUE", t.CLEAR = "CLEAR", t.SET_FROM = "SET_FROM", t.SET_TO = "SET_TO", t.SELECT_FIRST_DAY = "SELECT_FIRST_DAY", t.SELECT_SECOND_DAY_AS_FROM = "SELECT_SECOND_DAY_AS_FROM", t.SELECT_SECOND_DAY_AS_TO = "SELECT_SECOND_DAY_AS_TO", t.CURRENT_MONTH_CHANGE = "CURRENT_MONTH_CHANGE", t))(q || {});
2327
2328
  const So = (t) => {
2328
- const a = Tr(
2329
+ const a = Dr(
2329
2330
  t.initialFromDate,
2330
2331
  t.initialToDate,
2331
2332
  t.toMonth
@@ -2383,7 +2384,7 @@ const So = (t) => {
2383
2384
  return l;
2384
2385
  }
2385
2386
  }
2386
- return Lr(o, _);
2387
+ return Or(o, _);
2387
2388
  }, xo = ({
2388
2389
  options: t,
2389
2390
  initialSelectedItemKey: a,
@@ -2393,7 +2394,7 @@ const So = (t) => {
2393
2394
  onChange: l,
2394
2395
  children: c
2395
2396
  }) => {
2396
- const n = Or(
2397
+ const n = Hr(
2397
2398
  a || null
2398
2399
  ), [i, d] = So({
2399
2400
  options: t,
@@ -2415,7 +2416,7 @@ const So = (t) => {
2415
2416
  payload: { date: _ }
2416
2417
  });
2417
2418
  }, [_]), nt(() => {
2418
- const h = Tr(
2419
+ const h = Dr(
2419
2420
  r,
2420
2421
  _,
2421
2422
  o
@@ -2453,7 +2454,7 @@ const So = (t) => {
2453
2454
  }, [l, i.selectedItem, t]);
2454
2455
  const s = Bt(
2455
2456
  (h) => {
2456
- const f = o ? kr(o, h) >= 0 : !0;
2457
+ const f = o ? yr(o, h) >= 0 : !0;
2457
2458
  !ja(i.from, i.to) && f && d({
2458
2459
  type: q.NEW_TEMPORARY_TO_VALUE,
2459
2460
  payload: { date: h }
@@ -2463,7 +2464,7 @@ const So = (t) => {
2463
2464
  ), m = Bt(
2464
2465
  (h) => {
2465
2466
  const { from: f, to: k } = i;
2466
- xr(h, { to: o }) && (ja(f, k) ? d({
2467
+ Tr(h, { to: o }) && (ja(f, k) ? d({
2467
2468
  type: q.SELECT_FIRST_DAY,
2468
2469
  payload: { date: h }
2469
2470
  }) : f && xa(h, f) || f && Ta(h, f) ? d({
@@ -2944,7 +2945,7 @@ const Ec = (t) => {
2944
2945
  [Te[`${De}--crop`]]: l,
2945
2946
  [Te[`${De}--read-only`]]: c.readOnly
2946
2947
  }
2947
- ), E = r ? "var(--content-disabled)" : "var(--content-default)", $ = g ? Wr : Vr, N = _ && _.place === "left", w = _ && h !== "password" && _.place === "right", S = () => {
2948
+ ), E = r ? "var(--content-disabled)" : "var(--content-default)", $ = g ? Vr : qr, N = _ && _.place === "left", w = _ && h !== "password" && _.place === "right", S = () => {
2948
2949
  var C;
2949
2950
  (C = s.current) == null || C.focus();
2950
2951
  };
@@ -3058,7 +3059,7 @@ const Ec = (t) => {
3058
3059
  o && p.target === p.currentTarget && r();
3059
3060
  };
3060
3061
  return /* @__PURE__ */ e.createElement(
3061
- t_,
3062
+ a_,
3062
3063
  {
3063
3064
  "data-testid": "lc-modal-overlay",
3064
3065
  onMouseDown: m,
@@ -3175,7 +3176,7 @@ const Ec = (t) => {
3175
3176
  var c;
3176
3177
  (c = document.querySelector(r)) == null || c.removeChild(o);
3177
3178
  };
3178
- }, [r]), /* @__PURE__ */ e.createElement(e.Fragment, null, yr.createPortal(t, o));
3179
+ }, [r]), /* @__PURE__ */ e.createElement(e.Fragment, null, Er.createPortal(t, o));
3179
3180
  }, kt = {
3180
3181
  "modal-header": "lc-ModalHeader-module__modal-header___xk3bd",
3181
3182
  "modal-header__heading-left-node": "lc-ModalHeader-module__modal-header__heading-left-node___1--G5",
@@ -3676,7 +3677,7 @@ const xt = "select-all", Uo = (t, a) => {
3676
3677
  "tag__remove--hover": "lc-Tag-module__tag__remove--hover___2ROEU",
3677
3678
  tag__node: Xo,
3678
3679
  tag__content: Qo
3679
- }, ve = "tag", jo = (t) => t ? Ia(t, "#FFFFFF") > 4.5 ? "text-white" : "text-black" : "", Dr = (h) => {
3680
+ }, ve = "tag", jo = (t) => t ? Ia(t, "#FFFFFF") > 4.5 ? "text-white" : "text-black" : "", Br = (h) => {
3680
3681
  var f = h, {
3681
3682
  className: t = "",
3682
3683
  children: a,
@@ -3862,7 +3863,7 @@ const xt = "select-all", Uo = (t, a) => {
3862
3863
  })
3863
3864
  },
3864
3865
  /* @__PURE__ */ e.createElement("div", { className: ce[`${ne}__item-container`] }, l === "single" ? h(o[0]) : o.map((E) => /* @__PURE__ */ e.createElement(
3865
- Dr,
3866
+ Br,
3866
3867
  {
3867
3868
  key: E.name,
3868
3869
  className: u(
@@ -3889,7 +3890,7 @@ const xt = "select-all", Uo = (t, a) => {
3889
3890
  isOpen: n,
3890
3891
  onVisibilityChange: i
3891
3892
  }) => {
3892
- const d = fr(), [s, m] = e.useState(!1), [p, g] = e.useState(null), [b, h] = e.useState(_), f = e.useRef([]), k = e.useRef(null), { refs: y, floatingStyles: E, context: $, isPositioned: N } = Kt({
3893
+ const d = vr(), [s, m] = e.useState(!1), [p, g] = e.useState(null), [b, h] = e.useState(_), f = e.useRef([]), k = e.useRef(null), { refs: y, floatingStyles: E, context: $, isPositioned: N } = Kt({
3893
3894
  nodeId: d,
3894
3895
  open: n,
3895
3896
  strategy: o,
@@ -3900,9 +3901,9 @@ const xt = "select-all", Uo = (t, a) => {
3900
3901
  Jt(4),
3901
3902
  Xt({ padding: 10 }),
3902
3903
  Aa(),
3903
- a_({
3904
+ r_({
3904
3905
  apply({ availableHeight: O, rects: _e, elements: Ee }) {
3905
- yr.flushSync(() => {
3906
+ Er.flushSync(() => {
3906
3907
  h(_ || O);
3907
3908
  }), Object.assign(Ee.floating.style, {
3908
3909
  width: `${_e.reference.width}px`
@@ -3915,7 +3916,7 @@ const xt = "select-all", Uo = (t, a) => {
3915
3916
  enabled: !t,
3916
3917
  keyboardHandlers: !1,
3917
3918
  toggle: !1
3918
- }, c)), S = ea($, { role: "listbox" }), C = Zt($, l), M = r_($, {
3919
+ }, c)), S = ea($, { role: "listbox" }), C = Zt($, l), M = __($, {
3919
3920
  enabled: a.length > 0 && !t,
3920
3921
  listRef: f,
3921
3922
  activeIndex: p,
@@ -4140,7 +4141,7 @@ const xt = "select-all", Uo = (t, a) => {
4140
4141
  virtualItemRef: ia
4141
4142
  }
4142
4143
  )
4143
- ), /* @__PURE__ */ e.createElement(vr, { id: Le }, oe && /* @__PURE__ */ e.createElement(__, null, /* @__PURE__ */ e.createElement(
4144
+ ), /* @__PURE__ */ e.createElement(hr, { id: Le }, oe && /* @__PURE__ */ e.createElement(fr, null, /* @__PURE__ */ e.createElement(
4144
4145
  qo,
4145
4146
  {
4146
4147
  pickerType: g,
@@ -4182,7 +4183,7 @@ const xt = "select-all", Uo = (t, a) => {
4182
4183
  useClickHookProps: g,
4183
4184
  floatingStrategy: b
4184
4185
  }) => {
4185
- const [h, f] = e.useState(s), k = o_(), y = fr(), E = d !== void 0, $ = E ? d : h, N = typeof _ == "string", w = typeof t == "function", S = (Ae, Me) => {
4186
+ const [h, f] = e.useState(s), k = o_(), y = vr(), E = d !== void 0, $ = E ? d : h, N = typeof _ == "string", w = typeof t == "function", S = (Ae, Me) => {
4186
4187
  Ae ? r == null || r(Me) : a == null || a(Me), !E && f(Ae);
4187
4188
  }, { refs: C, context: M, floatingStyles: X } = Kt({
4188
4189
  nodeId: y,
@@ -4207,7 +4208,7 @@ const xt = "select-all", Uo = (t, a) => {
4207
4208
  className: l
4208
4209
  }),
4209
4210
  w ? t() : t
4210
- ), /* @__PURE__ */ e.createElement(vr, { id: y }, $ && /* @__PURE__ */ e.createElement(Ca, { context: M, modal: !1 }, /* @__PURE__ */ e.createElement(
4211
+ ), /* @__PURE__ */ e.createElement(hr, { id: y }, $ && /* @__PURE__ */ e.createElement(Ca, { context: M, modal: !1 }, /* @__PURE__ */ e.createElement(
4211
4212
  "div",
4212
4213
  v({
4213
4214
  className: we,
@@ -4222,10 +4223,10 @@ const xt = "select-all", Uo = (t, a) => {
4222
4223
  "error",
4223
4224
  "success"
4224
4225
  ], cl = (t) => Math.min(Math.max(t, 0), 100);
4225
- function Br(t, a = 0) {
4226
+ function Pr(t, a = 0) {
4226
4227
  return t === "error" ? 0 : cl(parseInt(a.toString(), 10));
4227
4228
  }
4228
- function Pr(t, a) {
4229
+ function Ar(t, a) {
4229
4230
  return !ll.includes(t) && a >= 100 ? "normal" : t || "normal";
4230
4231
  }
4231
4232
  const Et = {
@@ -4260,7 +4261,7 @@ const Et = {
4260
4261
  "className",
4261
4262
  "size"
4262
4263
  ]);
4263
- const i = Pr(t, a), d = Br(i, a), s = nl[_], m = sl[_], p = u(
4264
+ const i = Ar(t, a), d = Pr(i, a), s = nl[_], m = sl[_], p = u(
4264
4265
  Et[wt],
4265
4266
  {
4266
4267
  [Et[`${wt}--${_}`]]: _,
@@ -4325,7 +4326,7 @@ const Et = {
4325
4326
  "size",
4326
4327
  "className"
4327
4328
  ]);
4328
- const i = Pr(t, a), d = Br(i, a), s = u(
4329
+ const i = Ar(t, a), d = Pr(i, a), s = u(
4329
4330
  Ht[zt],
4330
4331
  {
4331
4332
  [Ht[`${zt}--${r}`]]: r,
@@ -4383,7 +4384,7 @@ const Et = {
4383
4384
  t
4384
4385
  );
4385
4386
  e.useEffect(() => {
4386
- const h = () => s.current && s.current.offsetWidth <= ul ? p("small") : s.current && s.current.offsetWidth >= ml ? p("large") : p("medium"), f = hr(
4387
+ const h = () => s.current && s.current.offsetWidth <= ul ? p("small") : s.current && s.current.offsetWidth >= ml ? p("large") : p("medium"), f = kr(
4387
4388
  h,
4388
4389
  pl
4389
4390
  );
@@ -4569,7 +4570,7 @@ const Et = {
4569
4570
  P,
4570
4571
  {
4571
4572
  className: Ce[`${xe}__search-icon`],
4572
- source: qr,
4573
+ source: Yr,
4573
4574
  disabled: a,
4574
4575
  kind: "primary"
4575
4576
  }
@@ -4791,7 +4792,7 @@ const Et = {
4791
4792
  className: se[`${ae}__icon`],
4792
4793
  "data-testid": "lock-icon",
4793
4794
  size: E,
4794
- source: Yr,
4795
+ source: Kr,
4795
4796
  kind: "primary"
4796
4797
  }
4797
4798
  )
@@ -4848,16 +4849,16 @@ const Et = {
4848
4849
  }
4849
4850
  )
4850
4851
  );
4851
- }, Nl = "lc-TabsWrapper-module__tabs___Y2xyD", Cl = "lc-TabsWrapper-module__tabs__list___i6tVO", Ar = {
4852
+ }, Nl = "lc-TabsWrapper-module__tabs___Y2xyD", Cl = "lc-TabsWrapper-module__tabs__list___i6tVO", Ir = {
4852
4853
  tabs: Nl,
4853
4854
  tabs__list: Cl
4854
- }, Ir = "tabs", qc = ({
4855
+ }, Fr = "tabs", qc = ({
4855
4856
  className: t,
4856
4857
  children: a
4857
- }) => /* @__PURE__ */ e.createElement("div", { className: u(Ar[Ir], t) }, a), Yc = ({
4858
+ }) => /* @__PURE__ */ e.createElement("div", { className: u(Ir[Fr], t) }, a), Yc = ({
4858
4859
  className: t,
4859
4860
  children: a
4860
- }) => /* @__PURE__ */ e.createElement("div", { className: u(Ar[`${Ir}__list`], t) }, a), Ct = {
4861
+ }) => /* @__PURE__ */ e.createElement("div", { className: u(Ir[`${Fr}__list`], t) }, a), Ct = {
4861
4862
  "tag-input": "lc-TagInput-module__tag-input___CLVY-",
4862
4863
  "tag-input--error": "lc-TagInput-module__tag-input--error___RP0SB",
4863
4864
  "tag-input__input": "lc-TagInput-module__tag-input__input___dgEYB",
@@ -4920,7 +4921,7 @@ const Et = {
4920
4921
  tagProps: n
4921
4922
  }) => {
4922
4923
  const i = e.useMemo(() => _ !== void 0 ? _(t) : !0, [t, _]), d = e.useRef(null), s = () => r(a), m = () => i ? n ? n.kind : "default" : "error";
4923
- return /* @__PURE__ */ e.createElement(Dr, x(v({ size: c }, n), { kind: m(), onRemove: s }), /* @__PURE__ */ e.createElement(
4924
+ return /* @__PURE__ */ e.createElement(Br, x(v({ size: c }, n), { kind: m(), onRemove: s }), /* @__PURE__ */ e.createElement(
4924
4925
  Sl,
4925
4926
  {
4926
4927
  value: t,
@@ -5152,8 +5153,8 @@ const Et = {
5152
5153
  },
5153
5154
  t
5154
5155
  );
5155
- return /* @__PURE__ */ e.createElement("div", { className: n }, /* @__PURE__ */ e.createElement(Er, { component: null }, a.map(({ id: i, kind: d, content: s, removable: m, action: p, onClose: g }) => /* @__PURE__ */ e.createElement(
5156
- wr,
5156
+ return /* @__PURE__ */ e.createElement("div", { className: n }, /* @__PURE__ */ e.createElement(wr, { component: null }, a.map(({ id: i, kind: d, content: s, removable: m, action: p, onClose: g }) => /* @__PURE__ */ e.createElement(
5157
+ $r,
5157
5158
  {
5158
5159
  key: i,
5159
5160
  classNames: {
@@ -5213,7 +5214,7 @@ const Et = {
5213
5214
  "aria-label": "Retry",
5214
5215
  onClick: r
5215
5216
  },
5216
- /* @__PURE__ */ e.createElement(P, { size: "small", source: Kr })
5217
+ /* @__PURE__ */ e.createElement(P, { size: "small", source: Jr })
5217
5218
  ), a && t !== "success" && /* @__PURE__ */ e.createElement(
5218
5219
  "button",
5219
5220
  {
@@ -5319,7 +5320,7 @@ const Et = {
5319
5320
  "upload-bar__files--exit-done": "lc-UploadBar-module__upload-bar__files--exit-done___2I72G",
5320
5321
  "upload-bar__files-wrapper": "lc-UploadBar-module__upload-bar__files-wrapper___93bs8",
5321
5322
  "upload-bar__files__list": "lc-UploadBar-module__upload-bar__files__list___QJFEq"
5322
- }, ie = "upload-bar", Ve = `${ie}__wrapper__header`, Wl = 300, Vl = (t, a) => t === "success" ? /* @__PURE__ */ e.createElement("div", { className: G[`${Ve}__success-icon`] }, /* @__PURE__ */ e.createElement(P, { source: qt })) : t === "error" ? /* @__PURE__ */ e.createElement("div", { className: G[`${Ve}__error-icon`] }, /* @__PURE__ */ e.createElement(P, { source: Jr })) : /* @__PURE__ */ e.createElement(
5323
+ }, ie = "upload-bar", Ve = `${ie}__wrapper__header`, Wl = 300, Vl = (t, a) => t === "success" ? /* @__PURE__ */ e.createElement("div", { className: G[`${Ve}__success-icon`] }, /* @__PURE__ */ e.createElement(P, { source: qt })) : t === "error" ? /* @__PURE__ */ e.createElement("div", { className: G[`${Ve}__error-icon`] }, /* @__PURE__ */ e.createElement(P, { source: Xr })) : /* @__PURE__ */ e.createElement(
5323
5324
  il,
5324
5325
  {
5325
5326
  className: G[`${Ve}__loader`],
@@ -5382,8 +5383,8 @@ const Et = {
5382
5383
  onRetryButtonClick: m
5383
5384
  }
5384
5385
  )))
5385
- ), /* @__PURE__ */ e.createElement(Er, { component: null }, p && /* @__PURE__ */ e.createElement(
5386
- wr,
5386
+ ), /* @__PURE__ */ e.createElement(wr, { component: null }, p && /* @__PURE__ */ e.createElement(
5387
+ $r,
5387
5388
  {
5388
5389
  timeout: Wl,
5389
5390
  classNames: {
@@ -5459,13 +5460,13 @@ export {
5459
5460
  Vc as Tab,
5460
5461
  Yc as TabsList,
5461
5462
  qc as TabsWrapper,
5462
- Dr as Tag,
5463
+ Br as Tag,
5463
5464
  Bl as TagInput,
5464
5465
  A as Text,
5465
5466
  Xc as Textarea,
5466
5467
  Hl as Toast,
5467
5468
  Jc as ToastWrapper,
5468
- Cr as Tooltip,
5469
+ Sr as Tooltip,
5469
5470
  ic as TransitionDelayToken,
5470
5471
  nc as TransitionDurationToken,
5471
5472
  sc as TransitionTimingToken,