@livechat/design-system-react-components 1.0.0-refresh-ui.1 → 1.0.0-refresh-ui.2
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/dsrc.cjs.js +4 -4
- package/dist/dsrc.es.js +96 -86
- package/dist/dsrc.umd.js +2 -2
- package/dist/preview-stats.json +540 -540
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/dsrc.es.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var Wa = Object.defineProperty, Va = Object.defineProperties;
|
|
2
2
|
var Ya = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var mt = Object.getOwnPropertySymbols;
|
|
4
4
|
var jt = Object.prototype.hasOwnProperty, ea = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var Pt = (t, a, r) => a in t ? Wa(t, a, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[a] = r, $ = (t, a) => {
|
|
6
6
|
for (var r in a || (a = {}))
|
|
7
7
|
jt.call(a, r) && Pt(t, r, a[r]);
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
8
|
+
if (mt)
|
|
9
|
+
for (var r of mt(a))
|
|
10
10
|
ea.call(a, r) && Pt(t, r, a[r]);
|
|
11
11
|
return t;
|
|
12
12
|
}, I = (t, a) => Va(t, Ya(a));
|
|
@@ -14,14 +14,14 @@ var B = (t, a) => {
|
|
|
14
14
|
var r = {};
|
|
15
15
|
for (var _ in t)
|
|
16
16
|
jt.call(t, _) && a.indexOf(_) < 0 && (r[_] = t[_]);
|
|
17
|
-
if (t != null &&
|
|
18
|
-
for (var _ of
|
|
17
|
+
if (t != null && mt)
|
|
18
|
+
for (var _ of mt(t))
|
|
19
19
|
a.indexOf(_) < 0 && ea.call(t, _) && (r[_] = t[_]);
|
|
20
20
|
return r;
|
|
21
21
|
};
|
|
22
22
|
var At = (t, a, r) => (Pt(t, typeof a != "symbol" ? a + "" : a, r), r);
|
|
23
23
|
import * as e from "react";
|
|
24
|
-
import { useReducer as qa, useRef as Ja, useEffect as We, useCallback as
|
|
24
|
+
import { useReducer as qa, useRef as Ja, useEffect as We, useCallback as pt, useMemo as gt } from "react";
|
|
25
25
|
import f, { clsx as Fe } from "clsx";
|
|
26
26
|
import { useFloating as $a, offset as wa, flip as Ca, autoUpdate as Na, arrow as Ka } from "@floating-ui/react-dom";
|
|
27
27
|
import { Close as Se, Info as qt, Warning as xa, CheckCircle as Sa, Block as Da, Person as Za, ChevronUp as Dt, ChevronDown as Tt, VisibilityOn as Qa, VisibilityOff as Xa, Check as Jt, Search as ja, LockBlackFilled as er, Refresh as tr, Error as ar } from "@livechat/design-system-icons/react/tabler";
|
|
@@ -339,7 +339,7 @@ const Qo = {
|
|
|
339
339
|
comma: ",",
|
|
340
340
|
arrowUp: "ArrowUp",
|
|
341
341
|
arrowDown: "ArrowDown"
|
|
342
|
-
}, ir = "lc-Typography-module__caps___c3eNJ",
|
|
342
|
+
}, ir = "lc-Typography-module__caps___c3eNJ", lt = {
|
|
343
343
|
"heading-xl": "lc-Typography-module__heading-xl___nhr-6",
|
|
344
344
|
"heading-lg": "lc-Typography-module__heading-lg___XYF7l",
|
|
345
345
|
"heading-md": "lc-Typography-module__heading-md___wHOIs",
|
|
@@ -361,7 +361,7 @@ const Qo = {
|
|
|
361
361
|
md: "h3",
|
|
362
362
|
sm: "h4",
|
|
363
363
|
xs: "h5"
|
|
364
|
-
},
|
|
364
|
+
}, it = (l) => {
|
|
365
365
|
var c = l, {
|
|
366
366
|
as: t,
|
|
367
367
|
size: a = "md",
|
|
@@ -375,7 +375,7 @@ const Qo = {
|
|
|
375
375
|
]);
|
|
376
376
|
return e.createElement(
|
|
377
377
|
t || dr[a],
|
|
378
|
-
$({ className: f(
|
|
378
|
+
$({ className: f(lt[`heading-${a}`], _) }, o),
|
|
379
379
|
r
|
|
380
380
|
);
|
|
381
381
|
}, P = (d) => {
|
|
@@ -404,10 +404,10 @@ const Qo = {
|
|
|
404
404
|
$({
|
|
405
405
|
className: f(
|
|
406
406
|
{
|
|
407
|
-
[
|
|
408
|
-
[
|
|
409
|
-
[
|
|
410
|
-
[
|
|
407
|
+
[lt[`${s}`]]: !0,
|
|
408
|
+
[lt[`${s}--bold`]]: _,
|
|
409
|
+
[lt[`${s}--strike`]]: l,
|
|
410
|
+
[lt[`${s}--underline`]]: o
|
|
411
411
|
},
|
|
412
412
|
u
|
|
413
413
|
)
|
|
@@ -979,7 +979,7 @@ const Br = "lc-Avatar-module__avatar___1zTCE", Pr = "lc-Avatar-module__avatar__s
|
|
|
979
979
|
function Rr(t, a) {
|
|
980
980
|
return t > a ? `${a}+` : `${t}`;
|
|
981
981
|
}
|
|
982
|
-
const Mr = "lc-Badge-module__badge___GhLnu", Lr = "lc-Badge-module__badge__dot___z6RO6",
|
|
982
|
+
const Mr = "lc-Badge-module__badge___GhLnu", Lr = "lc-Badge-module__badge__dot___z6RO6", ft = {
|
|
983
983
|
badge: Mr,
|
|
984
984
|
badge__dot: Lr,
|
|
985
985
|
"badge--large": "lc-Badge-module__badge--large___B131q",
|
|
@@ -988,7 +988,7 @@ const Mr = "lc-Badge-module__badge___GhLnu", Lr = "lc-Badge-module__badge__dot__
|
|
|
988
988
|
"badge--primary": "lc-Badge-module__badge--primary___8LRpp",
|
|
989
989
|
"badge--secondary": "lc-Badge-module__badge--secondary___JjNIJ",
|
|
990
990
|
"badge--tertiary": "lc-Badge-module__badge--tertiary___e83wV"
|
|
991
|
-
},
|
|
991
|
+
}, bt = "badge", Or = (u) => {
|
|
992
992
|
var n = u, {
|
|
993
993
|
className: t,
|
|
994
994
|
count: a = 0,
|
|
@@ -1006,19 +1006,19 @@ const Mr = "lc-Badge-module__badge___GhLnu", Lr = "lc-Badge-module__badge__dot__
|
|
|
1006
1006
|
]);
|
|
1007
1007
|
const d = f(
|
|
1008
1008
|
t,
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1009
|
+
ft[bt],
|
|
1010
|
+
ft[`${bt}--${_}`],
|
|
1011
|
+
ft[`${bt}--${o}`]
|
|
1012
1012
|
), p = {
|
|
1013
1013
|
counter: Rr(a, r),
|
|
1014
1014
|
alert: "!",
|
|
1015
|
-
dot: /* @__PURE__ */ e.createElement("span", { className:
|
|
1015
|
+
dot: /* @__PURE__ */ e.createElement("span", { className: ft[`${bt}__dot`] })
|
|
1016
1016
|
}[l];
|
|
1017
1017
|
return /* @__PURE__ */ e.createElement("span", $({ className: d }, c), p);
|
|
1018
1018
|
};
|
|
1019
1019
|
function Wt() {
|
|
1020
1020
|
}
|
|
1021
|
-
const Hr = "lc-SegmentedControl-module__btn___tfsvL",
|
|
1021
|
+
const Hr = "lc-SegmentedControl-module__btn___tfsvL", vt = {
|
|
1022
1022
|
"segmented-control": "lc-SegmentedControl-module__segmented-control___LHWSk",
|
|
1023
1023
|
btn: Hr,
|
|
1024
1024
|
"btn--active": "lc-SegmentedControl-module__btn--active___Za-th",
|
|
@@ -1034,14 +1034,14 @@ const Hr = "lc-SegmentedControl-module__btn___tfsvL", bt = {
|
|
|
1034
1034
|
fullWidth: l = !1,
|
|
1035
1035
|
onButtonClick: c = Wt
|
|
1036
1036
|
}) => {
|
|
1037
|
-
const u = f(
|
|
1037
|
+
const u = f(vt[zr], r), [n, d] = e.useState(() => _), p = typeof o == "string";
|
|
1038
1038
|
e.useEffect(() => {
|
|
1039
1039
|
p && d(o);
|
|
1040
1040
|
}, [o]);
|
|
1041
1041
|
const s = (v, h) => {
|
|
1042
1042
|
p || d(v), c(v, h);
|
|
1043
1043
|
}, m = a.map(({ id: v, label: h, loading: b, disabled: i, icon: k }) => {
|
|
1044
|
-
const y = v === n, w = y ?
|
|
1044
|
+
const y = v === n, w = y ? vt["btn--active"] : "", N = y ? !1 : b;
|
|
1045
1045
|
return /* @__PURE__ */ e.createElement(
|
|
1046
1046
|
se,
|
|
1047
1047
|
{
|
|
@@ -1052,7 +1052,7 @@ const Hr = "lc-SegmentedControl-module__btn___tfsvL", bt = {
|
|
|
1052
1052
|
"aria-pressed": y,
|
|
1053
1053
|
kind: "secondary",
|
|
1054
1054
|
icon: k,
|
|
1055
|
-
className: f(
|
|
1055
|
+
className: f(vt.btn, vt[`btn--${t}`], w),
|
|
1056
1056
|
onClick: (E) => {
|
|
1057
1057
|
s(v, E);
|
|
1058
1058
|
}
|
|
@@ -1075,7 +1075,7 @@ const Hr = "lc-SegmentedControl-module__btn___tfsvL", bt = {
|
|
|
1075
1075
|
card__actions__line: Zr,
|
|
1076
1076
|
card__actions__buttons: Qr,
|
|
1077
1077
|
"card__actions__buttons-expander": "lc-Card-module__card__actions__buttons-expander___lz4h-"
|
|
1078
|
-
},
|
|
1078
|
+
}, st = "card", St = `${st}__header`, Ft = `${St}__heading`, ht = `${st}__actions`, Xr = `${St}__no-image`, ll = (d) => {
|
|
1079
1079
|
var p = d, {
|
|
1080
1080
|
alt: t,
|
|
1081
1081
|
buttonsOptions: a = [],
|
|
@@ -1096,27 +1096,27 @@ const Hr = "lc-SegmentedControl-module__btn___tfsvL", bt = {
|
|
|
1096
1096
|
"title"
|
|
1097
1097
|
]);
|
|
1098
1098
|
const [s, m] = e.useState(!1), v = s ? Dt : Tt, h = s ? "Hide" : "Show more", b = (a == null ? void 0 : a.length) > 0, i = !!l, k = b || i, y = u, w = c, N = w ? "" : ee[Xr];
|
|
1099
|
-
return /* @__PURE__ */ e.createElement("div", $({ className: f(ee[
|
|
1099
|
+
return /* @__PURE__ */ e.createElement("div", $({ className: f(ee[st], _) }, n), y && /* @__PURE__ */ e.createElement("div", { className: f(ee[St], N) }, w && /* @__PURE__ */ e.createElement(
|
|
1100
1100
|
"img",
|
|
1101
1101
|
{
|
|
1102
1102
|
alt: t,
|
|
1103
1103
|
className: ee[`${St}__image`],
|
|
1104
1104
|
src: c
|
|
1105
1105
|
}
|
|
1106
|
-
), /* @__PURE__ */ e.createElement("div", { className: ee[Ft] }, /* @__PURE__ */ e.createElement(
|
|
1106
|
+
), /* @__PURE__ */ e.createElement("div", { className: ee[Ft] }, /* @__PURE__ */ e.createElement(it, { size: "sm", className: ee[`${Ft}__title`] }, u), /* @__PURE__ */ e.createElement(P, { size: "sm", className: ee[`${Ft}__description`] }, o))), /* @__PURE__ */ e.createElement(P, { as: "div", size: "md", className: ee[`${st}__content`] }, r), s && /* @__PURE__ */ e.createElement(
|
|
1107
1107
|
P,
|
|
1108
1108
|
{
|
|
1109
1109
|
as: "div",
|
|
1110
1110
|
size: "md",
|
|
1111
|
-
className: ee[`${
|
|
1111
|
+
className: ee[`${st}__expanded-content`]
|
|
1112
1112
|
},
|
|
1113
1113
|
l
|
|
1114
|
-
), k && /* @__PURE__ */ e.createElement("div", { className: ee[
|
|
1114
|
+
), k && /* @__PURE__ */ e.createElement("div", { className: ee[ht] }, /* @__PURE__ */ e.createElement("div", { className: ee[`${ht}__line`] }), /* @__PURE__ */ e.createElement("div", { className: ee[`${ht}__buttons`] }, b && a.map(
|
|
1115
1115
|
({ kind: E, onClick: g, children: x }) => /* @__PURE__ */ e.createElement(se, { size: "compact", kind: E, onClick: g }, x)
|
|
1116
1116
|
), i && /* @__PURE__ */ e.createElement(
|
|
1117
1117
|
se,
|
|
1118
1118
|
{
|
|
1119
|
-
className: ee[`${
|
|
1119
|
+
className: ee[`${ht}__buttons-expander`],
|
|
1120
1120
|
kind: "plain",
|
|
1121
1121
|
iconPosition: "right",
|
|
1122
1122
|
icon: /* @__PURE__ */ e.createElement(T, { source: v }),
|
|
@@ -1306,14 +1306,14 @@ const Hr = "lc-SegmentedControl-module__btn___tfsvL", bt = {
|
|
|
1306
1306
|
}) : _ < 0 ? I($({}, r), {
|
|
1307
1307
|
[S[`${D}__day--start`]]: a
|
|
1308
1308
|
}) : r;
|
|
1309
|
-
},
|
|
1309
|
+
}, ct = (t, a) => {
|
|
1310
1310
|
const r = a.find((_) => _.id === t);
|
|
1311
1311
|
return r || void 0;
|
|
1312
1312
|
}, sa = (t, a) => !!(!t || t && a), i_ = (t) => {
|
|
1313
1313
|
const a = {};
|
|
1314
1314
|
if (!t.initialSelectedItemKey)
|
|
1315
1315
|
return a;
|
|
1316
|
-
const r =
|
|
1316
|
+
const r = ct(
|
|
1317
1317
|
t.initialSelectedItemKey,
|
|
1318
1318
|
t.options
|
|
1319
1319
|
);
|
|
@@ -1534,7 +1534,7 @@ const g_ = (t) => {
|
|
|
1534
1534
|
const { from: b, selectedItem: i, to: k } = n;
|
|
1535
1535
|
if (!(b && k))
|
|
1536
1536
|
return;
|
|
1537
|
-
const y =
|
|
1537
|
+
const y = ct(i, t);
|
|
1538
1538
|
y && (l == null || l(I($({}, y), {
|
|
1539
1539
|
value: {
|
|
1540
1540
|
from: b,
|
|
@@ -1549,7 +1549,7 @@ const g_ = (t) => {
|
|
|
1549
1549
|
l(null);
|
|
1550
1550
|
return;
|
|
1551
1551
|
}
|
|
1552
|
-
if (!
|
|
1552
|
+
if (!ct(b, t))
|
|
1553
1553
|
return;
|
|
1554
1554
|
const k = t.reduce(
|
|
1555
1555
|
(y, w) => I($({}, y), { [w.id]: w }),
|
|
@@ -1557,7 +1557,7 @@ const g_ = (t) => {
|
|
|
1557
1557
|
);
|
|
1558
1558
|
l(k[b]);
|
|
1559
1559
|
}, [l, n.selectedItem, t]);
|
|
1560
|
-
const p =
|
|
1560
|
+
const p = pt(
|
|
1561
1561
|
(b) => {
|
|
1562
1562
|
const i = o ? Ba(o, b) >= 0 : !0;
|
|
1563
1563
|
!sa(n.from, n.to) && i && d({
|
|
@@ -1566,7 +1566,7 @@ const g_ = (t) => {
|
|
|
1566
1566
|
});
|
|
1567
1567
|
},
|
|
1568
1568
|
[o, n.from, n.to]
|
|
1569
|
-
), s =
|
|
1569
|
+
), s = pt(
|
|
1570
1570
|
(b) => {
|
|
1571
1571
|
const { from: i, to: k } = n;
|
|
1572
1572
|
Fa(b, { to: o }) && (sa(i, k) ? d({
|
|
@@ -1581,7 +1581,7 @@ const g_ = (t) => {
|
|
|
1581
1581
|
}));
|
|
1582
1582
|
},
|
|
1583
1583
|
[o, n.from, n.to]
|
|
1584
|
-
), m =
|
|
1584
|
+
), m = pt(
|
|
1585
1585
|
(b) => {
|
|
1586
1586
|
if (b === null) {
|
|
1587
1587
|
d({
|
|
@@ -1590,23 +1590,23 @@ const g_ = (t) => {
|
|
|
1590
1590
|
});
|
|
1591
1591
|
return;
|
|
1592
1592
|
}
|
|
1593
|
-
|
|
1593
|
+
ct(b, t) && d({
|
|
1594
1594
|
type: M.NEW_SELECTED_ITEM,
|
|
1595
1595
|
payload: { selectedItem: b }
|
|
1596
1596
|
});
|
|
1597
1597
|
},
|
|
1598
1598
|
[t]
|
|
1599
|
-
), v =
|
|
1599
|
+
), v = pt((b) => {
|
|
1600
1600
|
d({
|
|
1601
1601
|
type: M.CURRENT_MONTH_CHANGE,
|
|
1602
1602
|
payload: { date: b }
|
|
1603
1603
|
});
|
|
1604
1604
|
}, []);
|
|
1605
1605
|
return c((() => {
|
|
1606
|
-
const { currentMonth: b, from: i, selectedItem: k, temporaryTo: y, to: w } = n, N =
|
|
1606
|
+
const { currentMonth: b, from: i, selectedItem: k, temporaryTo: y, to: w } = n, N = gt(
|
|
1607
1607
|
() => s_(i, y),
|
|
1608
1608
|
[i, y]
|
|
1609
|
-
), E =
|
|
1609
|
+
), E = gt(() => ct(k, t), [t, k]), g = gt(() => [i, { from: i, to: y }], [i, y]), x = gt(() => o ? { after: o } : void 0, [o]);
|
|
1610
1610
|
return {
|
|
1611
1611
|
select: {
|
|
1612
1612
|
onItemSelect: m,
|
|
@@ -1711,7 +1711,7 @@ const da = {
|
|
|
1711
1711
|
"helperText",
|
|
1712
1712
|
"formFooter"
|
|
1713
1713
|
]);
|
|
1714
|
-
return /* @__PURE__ */ e.createElement("form", $({ className: f(Qe[Xe], t) }, l), (r || _) && /* @__PURE__ */ e.createElement("div", { className: Qe[`${Xe}__header`] }, r && /* @__PURE__ */ e.createElement(
|
|
1714
|
+
return /* @__PURE__ */ e.createElement("form", $({ className: f(Qe[Xe], t) }, l), (r || _) && /* @__PURE__ */ e.createElement("div", { className: Qe[`${Xe}__header`] }, r && /* @__PURE__ */ e.createElement(it, { size: "sm", className: Qe[`${Xe}__label`] }, r), _ && /* @__PURE__ */ e.createElement(P, { as: "p", size: "sm", className: Qe[`${Xe}__helper`] }, _)), a, o && /* @__PURE__ */ e.createElement("div", { className: Qe[`${Xe}__footer`] }, o));
|
|
1715
1715
|
}, L = {
|
|
1716
1716
|
"form-field": "lc-FormField-module__form-field___JqnX6",
|
|
1717
1717
|
"form-field--inline": "lc-FormField-module__form-field--inline___4DgIq",
|
|
@@ -1816,12 +1816,12 @@ const da = {
|
|
|
1816
1816
|
r
|
|
1817
1817
|
))
|
|
1818
1818
|
));
|
|
1819
|
-
},
|
|
1819
|
+
}, yt = {
|
|
1820
1820
|
"form-group": "lc-FormGroup-module__form-group___e2JHa",
|
|
1821
1821
|
"form-group__header": "lc-FormGroup-module__form-group__header___DgGmR",
|
|
1822
1822
|
"form-group__label": "lc-FormGroup-module__form-group__label___NC-JW",
|
|
1823
1823
|
"form-group__helper": "lc-FormGroup-module__form-group__helper___SRuxe"
|
|
1824
|
-
},
|
|
1824
|
+
}, kt = "form-group", dl = (l) => {
|
|
1825
1825
|
var c = l, {
|
|
1826
1826
|
className: t = "",
|
|
1827
1827
|
children: a,
|
|
@@ -1833,7 +1833,7 @@ const da = {
|
|
|
1833
1833
|
"labelText",
|
|
1834
1834
|
"helperText"
|
|
1835
1835
|
]);
|
|
1836
|
-
const u = f(
|
|
1836
|
+
const u = f(yt[kt], t);
|
|
1837
1837
|
return /* @__PURE__ */ e.createElement(
|
|
1838
1838
|
"div",
|
|
1839
1839
|
I($(I($({}, o), {
|
|
@@ -1841,7 +1841,7 @@ const da = {
|
|
|
1841
1841
|
}), r && { "aria-label": r }), {
|
|
1842
1842
|
className: u
|
|
1843
1843
|
}),
|
|
1844
|
-
/* @__PURE__ */ e.createElement("div", { className:
|
|
1844
|
+
/* @__PURE__ */ e.createElement("div", { className: yt[`${kt}__header`] }, /* @__PURE__ */ e.createElement(it, { as: "div", size: "sm", className: yt[`${kt}__label`] }, r), _ && /* @__PURE__ */ e.createElement(P, { as: "div", size: "sm", className: yt[`${kt}__helper`] }, _)),
|
|
1845
1845
|
a
|
|
1846
1846
|
);
|
|
1847
1847
|
}, E_ = "lc-Input-module__input___qeMAQ", ye = {
|
|
@@ -1949,7 +1949,7 @@ const da = {
|
|
|
1949
1949
|
modal__heading: N_,
|
|
1950
1950
|
"modal__label-heading": "lc-Modal-module__modal__label-heading___WnYcF",
|
|
1951
1951
|
modal__footer: x_
|
|
1952
|
-
},
|
|
1952
|
+
}, Et = "modal-base", S_ = (u) => {
|
|
1953
1953
|
var n = u, {
|
|
1954
1954
|
children: t,
|
|
1955
1955
|
className: a = "",
|
|
@@ -1966,9 +1966,9 @@ const da = {
|
|
|
1966
1966
|
"fullSpaceContent"
|
|
1967
1967
|
]);
|
|
1968
1968
|
const d = f(
|
|
1969
|
-
H[
|
|
1969
|
+
H[Et],
|
|
1970
1970
|
a,
|
|
1971
|
-
l && H[`${
|
|
1971
|
+
l && H[`${Et}--full-space`]
|
|
1972
1972
|
);
|
|
1973
1973
|
e.useEffect(() => {
|
|
1974
1974
|
if (!_)
|
|
@@ -1987,8 +1987,8 @@ const da = {
|
|
|
1987
1987
|
"data-testid": "lc-modal-overlay",
|
|
1988
1988
|
onMouseDown: p,
|
|
1989
1989
|
className: f(
|
|
1990
|
-
H[`${
|
|
1991
|
-
H[`${
|
|
1990
|
+
H[`${Et}__overlay`],
|
|
1991
|
+
H[`${Et}__overlay--visible`]
|
|
1992
1992
|
)
|
|
1993
1993
|
},
|
|
1994
1994
|
/* @__PURE__ */ e.createElement(
|
|
@@ -2046,7 +2046,7 @@ const da = {
|
|
|
2046
2046
|
onClose: c
|
|
2047
2047
|
}, u),
|
|
2048
2048
|
_ && /* @__PURE__ */ e.createElement("div", { className: H[`${Ae}__label-header`] }, /* @__PURE__ */ e.createElement(
|
|
2049
|
-
|
|
2049
|
+
it,
|
|
2050
2050
|
{
|
|
2051
2051
|
size: "xs",
|
|
2052
2052
|
as: "div",
|
|
@@ -2062,7 +2062,7 @@ const da = {
|
|
|
2062
2062
|
}
|
|
2063
2063
|
)),
|
|
2064
2064
|
!_ && r && /* @__PURE__ */ e.createElement("div", { className: H[`${Ae}__header`] }, /* @__PURE__ */ e.createElement(
|
|
2065
|
-
|
|
2065
|
+
it,
|
|
2066
2066
|
{
|
|
2067
2067
|
size: "sm",
|
|
2068
2068
|
as: "div",
|
|
@@ -2588,7 +2588,7 @@ const da = {
|
|
|
2588
2588
|
e.useEffect(() => {
|
|
2589
2589
|
u && (p(""), m.current && (m.current.value = "", m.current.focus()));
|
|
2590
2590
|
}, [o, u]);
|
|
2591
|
-
const v = (i) => l === "single" && t && !a ? null : i != null && i.customElement ? /* @__PURE__ */ e.createElement("div", { className: we[`${Ce}
|
|
2591
|
+
const v = (i) => l === "single" && t && !a ? null : i != null && i.customElement ? /* @__PURE__ */ e.createElement("div", { className: we[`${Ce}__item`] }, i.customElement.selectedItemBody) : /* @__PURE__ */ e.createElement("div", { className: we[`${Ce}__item`] }, i.name), h = (i) => {
|
|
2592
2592
|
p(i.target.value);
|
|
2593
2593
|
}, b = () => /* @__PURE__ */ e.createElement(
|
|
2594
2594
|
"input",
|
|
@@ -2681,7 +2681,7 @@ const da = {
|
|
|
2681
2681
|
}, Re = (A) => {
|
|
2682
2682
|
if (s === "single")
|
|
2683
2683
|
return E(!1), i([A]);
|
|
2684
|
-
const z = A.key, X =
|
|
2684
|
+
const z = A.key, X = ut;
|
|
2685
2685
|
if (!X)
|
|
2686
2686
|
return i([A]);
|
|
2687
2687
|
const Ie = X.includes(
|
|
@@ -2695,7 +2695,7 @@ const da = {
|
|
|
2695
2695
|
i(Ua);
|
|
2696
2696
|
}, De = (A) => !A.disabled && !A.groupHeader && A.key !== ze, Te = () => {
|
|
2697
2697
|
E(!1);
|
|
2698
|
-
const A =
|
|
2698
|
+
const A = dt.filter(De);
|
|
2699
2699
|
i(A);
|
|
2700
2700
|
}, Ue = () => {
|
|
2701
2701
|
E(!1), i(null);
|
|
@@ -2704,12 +2704,12 @@ const da = {
|
|
|
2704
2704
|
if ((z == null ? void 0 : z.length) === 0)
|
|
2705
2705
|
return i(null);
|
|
2706
2706
|
i(z);
|
|
2707
|
-
},
|
|
2707
|
+
}, dt = e.useMemo(() => g ? _.filter((A) => {
|
|
2708
2708
|
if (A.groupHeader)
|
|
2709
2709
|
return !1;
|
|
2710
2710
|
const z = g.toLowerCase();
|
|
2711
2711
|
return A.name.toLowerCase().includes(z);
|
|
2712
|
-
}) : _, [g, _]),
|
|
2712
|
+
}) : _, [g, _]), ut = e.useMemo(() => o ? o.map((A) => A.key) : null, [o]);
|
|
2713
2713
|
return /* @__PURE__ */ e.createElement("div", { ref: Z, className: te, id: k.id }, /* @__PURE__ */ e.createElement("div", { className: va[`${ha}__container`] }, /* @__PURE__ */ e.createElement(
|
|
2714
2714
|
I_,
|
|
2715
2715
|
{
|
|
@@ -2745,8 +2745,8 @@ const da = {
|
|
|
2745
2745
|
), /* @__PURE__ */ e.createElement(
|
|
2746
2746
|
T_,
|
|
2747
2747
|
{
|
|
2748
|
-
selectedItemsKeys:
|
|
2749
|
-
items:
|
|
2748
|
+
selectedItemsKeys: ut,
|
|
2749
|
+
items: dt,
|
|
2750
2750
|
isOpen: N,
|
|
2751
2751
|
isMultiSelect: s === "multi",
|
|
2752
2752
|
emptyStateText: d,
|
|
@@ -2841,7 +2841,7 @@ const tt = {
|
|
|
2841
2841
|
))
|
|
2842
2842
|
);
|
|
2843
2843
|
}
|
|
2844
|
-
),
|
|
2844
|
+
), $t = {
|
|
2845
2845
|
"progress-bar": "lc-ProgressBar-module__progress-bar___3pa3d",
|
|
2846
2846
|
"progress-bar--small": "lc-ProgressBar-module__progress-bar--small___7nQKx",
|
|
2847
2847
|
"progress-bar--medium": "lc-ProgressBar-module__progress-bar--medium___cM44p",
|
|
@@ -2851,7 +2851,7 @@ const tt = {
|
|
|
2851
2851
|
"progress-bar--normal": "lc-ProgressBar-module__progress-bar--normal___ZwCb-",
|
|
2852
2852
|
"progress-bar__indicator--success": "lc-ProgressBar-module__progress-bar__indicator--success___wRjR3",
|
|
2853
2853
|
"progress-bar__indicator--normal": "lc-ProgressBar-module__progress-bar__indicator--normal___0Uhle"
|
|
2854
|
-
},
|
|
2854
|
+
}, wt = "progress-bar", Y_ = e.forwardRef(
|
|
2855
2855
|
(c, l) => {
|
|
2856
2856
|
var u = c, {
|
|
2857
2857
|
status: t = "normal",
|
|
@@ -2865,10 +2865,10 @@ const tt = {
|
|
|
2865
2865
|
"className"
|
|
2866
2866
|
]);
|
|
2867
2867
|
const n = Oa(t, a), d = La(n, a), p = f(
|
|
2868
|
-
|
|
2868
|
+
$t[wt],
|
|
2869
2869
|
{
|
|
2870
|
-
[
|
|
2871
|
-
[
|
|
2870
|
+
[$t[`${wt}--${r}`]]: r,
|
|
2871
|
+
[$t[`${wt}--${t}`]]: t
|
|
2872
2872
|
},
|
|
2873
2873
|
_
|
|
2874
2874
|
);
|
|
@@ -2882,7 +2882,7 @@ const tt = {
|
|
|
2882
2882
|
/* @__PURE__ */ e.createElement(
|
|
2883
2883
|
"div",
|
|
2884
2884
|
{
|
|
2885
|
-
className:
|
|
2885
|
+
className: $t[`${wt}__indicator--${t}`],
|
|
2886
2886
|
style: { width: `${d}%` }
|
|
2887
2887
|
}
|
|
2888
2888
|
)
|
|
@@ -3307,7 +3307,7 @@ const tt = {
|
|
|
3307
3307
|
dangerouslySetInnerHTML: { __html: ra(l) }
|
|
3308
3308
|
}
|
|
3309
3309
|
);
|
|
3310
|
-
},
|
|
3310
|
+
}, nt = {
|
|
3311
3311
|
"tag-input": "lc-TagInput-module__tag-input___CLVY-",
|
|
3312
3312
|
"tag-input--error": "lc-TagInput-module__tag-input--error___RP0SB",
|
|
3313
3313
|
"tag-input__input": "lc-TagInput-module__tag-input__input___dgEYB",
|
|
@@ -3338,14 +3338,14 @@ const tt = {
|
|
|
3338
3338
|
value: t,
|
|
3339
3339
|
inputRef: o,
|
|
3340
3340
|
innerEditableRef: n,
|
|
3341
|
-
className:
|
|
3341
|
+
className: nt[`${so}__content`],
|
|
3342
3342
|
change: (p) => l(a, p),
|
|
3343
3343
|
remove: d,
|
|
3344
3344
|
validator: _
|
|
3345
3345
|
}
|
|
3346
3346
|
)
|
|
3347
3347
|
);
|
|
3348
|
-
},
|
|
3348
|
+
}, Ct = "tag-input", uo = [
|
|
3349
3349
|
R.enter,
|
|
3350
3350
|
R.spacebar,
|
|
3351
3351
|
R.tab,
|
|
@@ -3369,11 +3369,11 @@ const tt = {
|
|
|
3369
3369
|
"placeholder",
|
|
3370
3370
|
"size"
|
|
3371
3371
|
]);
|
|
3372
|
-
const p = f(
|
|
3373
|
-
[
|
|
3372
|
+
const p = f(nt[Ct], {
|
|
3373
|
+
[nt[`${Ct}--error`]]: o
|
|
3374
3374
|
}), s = f(
|
|
3375
|
-
|
|
3376
|
-
|
|
3375
|
+
nt[`${Ct}__input`],
|
|
3376
|
+
nt[`${Ct}__input--${c}`]
|
|
3377
3377
|
), [m, v] = e.useState(""), h = e.useRef(null), b = (E) => {
|
|
3378
3378
|
r([...a || [], E]), v("");
|
|
3379
3379
|
}, i = (E) => {
|
|
@@ -3582,6 +3582,7 @@ const tt = {
|
|
|
3582
3582
|
"tooltip-image-container": "lc-Tooltip-module__tooltip-image-container___ySmcd",
|
|
3583
3583
|
"tooltip-image": "lc-Tooltip-module__tooltip-image___Aorwg",
|
|
3584
3584
|
"tooltip-text": "lc-Tooltip-module__tooltip-text___FB8OV",
|
|
3585
|
+
"tooltip-text--info": "lc-Tooltip-module__tooltip-text--info___3d2Ql",
|
|
3585
3586
|
"tooltip-close": "lc-Tooltip-module__tooltip-close___3r3h9",
|
|
3586
3587
|
"tooltip-close-button": "lc-Tooltip-module__tooltip-close-button___Zph2C",
|
|
3587
3588
|
"tooltip-step": "lc-Tooltip-module__tooltip-step___-j0n8",
|
|
@@ -3673,9 +3674,9 @@ const tt = {
|
|
|
3673
3674
|
transition-property: opacity;
|
|
3674
3675
|
transition-duration: ${d}ms;
|
|
3675
3676
|
transition-delay: ${p}ms;
|
|
3676
|
-
`, it = Ve`
|
|
3677
|
-
pointer-events: initial;
|
|
3678
3677
|
`, dt = Ve`
|
|
3678
|
+
pointer-events: initial;
|
|
3679
|
+
`, ut = Ve`
|
|
3679
3680
|
opacity: 1;
|
|
3680
3681
|
`, A = Ve`
|
|
3681
3682
|
opacity: 0;
|
|
@@ -3692,9 +3693,9 @@ const tt = {
|
|
|
3692
3693
|
timeout: z,
|
|
3693
3694
|
classNames: {
|
|
3694
3695
|
enter: pe,
|
|
3695
|
-
enterDone:
|
|
3696
|
+
enterDone: dt,
|
|
3696
3697
|
enterActive: ie,
|
|
3697
|
-
exit:
|
|
3698
|
+
exit: ut,
|
|
3698
3699
|
exitActive: A
|
|
3699
3700
|
}
|
|
3700
3701
|
},
|
|
@@ -3796,10 +3797,10 @@ const Do = (t) => new Promise((a) => setTimeout(a, t)), To = "tooltip", Io = (t)
|
|
|
3796
3797
|
};
|
|
3797
3798
|
};
|
|
3798
3799
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", $({ ref: te.reference }, pe()), a()), Te);
|
|
3799
|
-
}, Sl = ({ text: t }) => /* @__PURE__ */ e.createElement("div", null, t),
|
|
3800
|
+
}, Sl = ({ text: t }) => /* @__PURE__ */ e.createElement("div", null, t), _t = "tooltip", Dl = ({ header: t, text: a, closeWithX: r, theme: _, handleCloseAction: o }) => /* @__PURE__ */ e.createElement("div", null, r && /* @__PURE__ */ e.createElement(
|
|
3800
3801
|
"div",
|
|
3801
3802
|
{
|
|
3802
|
-
className: C[`${
|
|
3803
|
+
className: C[`${_t}-close`],
|
|
3803
3804
|
onClick: o
|
|
3804
3805
|
},
|
|
3805
3806
|
/* @__PURE__ */ e.createElement(
|
|
@@ -3813,12 +3814,21 @@ const Do = (t) => new Promise((a) => setTimeout(a, t)), To = "tooltip", Io = (t)
|
|
|
3813
3814
|
"div",
|
|
3814
3815
|
{
|
|
3815
3816
|
className: f(
|
|
3816
|
-
C[`${
|
|
3817
|
-
C[`${
|
|
3817
|
+
C[`${_t}-header`],
|
|
3818
|
+
C[`${_t}-header--info`]
|
|
3818
3819
|
)
|
|
3819
3820
|
},
|
|
3820
3821
|
t
|
|
3821
|
-
), /* @__PURE__ */ e.createElement(
|
|
3822
|
+
), /* @__PURE__ */ e.createElement(
|
|
3823
|
+
"div",
|
|
3824
|
+
{
|
|
3825
|
+
className: f(
|
|
3826
|
+
C[`${_t}-text`],
|
|
3827
|
+
C[`${_t}-text--info`]
|
|
3828
|
+
)
|
|
3829
|
+
},
|
|
3830
|
+
a
|
|
3831
|
+
)), xe = "tooltip", Tl = ({
|
|
3822
3832
|
header: t,
|
|
3823
3833
|
text: a,
|
|
3824
3834
|
image: r,
|
|
@@ -4028,19 +4038,19 @@ const ya = 8, ka = "guide-tooltip", Ea = (t, a) => new Po(t, a), Il = (t) => {
|
|
|
4028
4038
|
}),
|
|
4029
4039
|
t.children
|
|
4030
4040
|
)) : null;
|
|
4031
|
-
},
|
|
4041
|
+
}, ot = "reports-tooltip", Bl = ({
|
|
4032
4042
|
title: t,
|
|
4033
4043
|
description: a,
|
|
4034
4044
|
children: r
|
|
4035
|
-
}) => /* @__PURE__ */ e.createElement("div", { className: C[
|
|
4045
|
+
}) => /* @__PURE__ */ e.createElement("div", { className: C[ot] }, /* @__PURE__ */ e.createElement("div", { className: C[`${ot}__heading`] }, /* @__PURE__ */ e.createElement(P, { as: "div", className: C[`${ot}__heading__title`] }, t), /* @__PURE__ */ e.createElement(
|
|
4036
4046
|
P,
|
|
4037
4047
|
{
|
|
4038
4048
|
as: "div",
|
|
4039
4049
|
size: "xs",
|
|
4040
|
-
className: C[`${
|
|
4050
|
+
className: C[`${ot}__heading__description`]
|
|
4041
4051
|
},
|
|
4042
4052
|
a
|
|
4043
|
-
)), /* @__PURE__ */ e.createElement("div", { className: C[`${
|
|
4053
|
+
)), /* @__PURE__ */ e.createElement("div", { className: C[`${ot}__content`] }, /* @__PURE__ */ e.createElement(P, { as: "div" }, r))), Ao = "lc-Textarea-module__textarea___g6U8F", Nt = {
|
|
4044
4054
|
textarea: Ao,
|
|
4045
4055
|
"textarea--focused": "lc-Textarea-module__textarea--focused___1vtEx",
|
|
4046
4056
|
"textarea--disabled": "lc-Textarea-module__textarea--disabled___xXaGv",
|
|
@@ -4283,7 +4293,7 @@ export {
|
|
|
4283
4293
|
sl as Form,
|
|
4284
4294
|
il as FormField,
|
|
4285
4295
|
dl as FormGroup,
|
|
4286
|
-
|
|
4296
|
+
it as Heading,
|
|
4287
4297
|
T as Icon,
|
|
4288
4298
|
Dl as Info,
|
|
4289
4299
|
ul as Input,
|