@livechat/design-system-react-components 1.0.0-beta.7 → 1.0.0-beta.8
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 +1 -1
- package/dist/dsrc.es.js +190 -184
- package/dist/dsrc.umd.js +2 -2
- package/dist/preview-stats.json +637 -637
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/dsrc.es.js
CHANGED
|
@@ -23,7 +23,7 @@ var Ot = (t, a, r) => (Lt(t, typeof a != "symbol" ? a + "" : a, r), r);
|
|
|
23
23
|
import * as e from "react";
|
|
24
24
|
import { useReducer as ar, useRef as rr, useEffect as Qe, useCallback as kt, useMemo as yt } from "react";
|
|
25
25
|
import { ChevronDown as ft, Close as xe, Info as ea, Warning as Ia, CheckCircle as Aa, Block as Ba, Person as _r, ChevronUp as Ft, VisibilityOn as or, VisibilityOff as lr, Check as ta, Search as cr, LockBlackFilled as nr, Refresh as sr, Error as ir } from "@livechat/design-system-icons/react/tabler";
|
|
26
|
-
import
|
|
26
|
+
import g, { clsx as He } from "clsx";
|
|
27
27
|
import { useFloating as Pa, offset as Fa, flip as Ra, autoUpdate as Ma, arrow as dr } from "@floating-ui/react-dom";
|
|
28
28
|
import { css as Xe, cx as ur } from "@emotion/css";
|
|
29
29
|
import { CSSTransition as aa, TransitionGroup as La } from "react-transition-group";
|
|
@@ -377,7 +377,7 @@ const dl = {
|
|
|
377
377
|
]);
|
|
378
378
|
return e.createElement(
|
|
379
379
|
t || kr[a],
|
|
380
|
-
w({ className:
|
|
380
|
+
w({ className: g(Je[`heading-${a}`], o) }, _),
|
|
381
381
|
r
|
|
382
382
|
);
|
|
383
383
|
}, P = (d) => {
|
|
@@ -404,7 +404,7 @@ const dl = {
|
|
|
404
404
|
return e.createElement(
|
|
405
405
|
t,
|
|
406
406
|
w({
|
|
407
|
-
className:
|
|
407
|
+
className: g(
|
|
408
408
|
{
|
|
409
409
|
[Je[`${m}`]]: !0,
|
|
410
410
|
[Je[`${m}--bold`]]: o,
|
|
@@ -430,7 +430,7 @@ const dl = {
|
|
|
430
430
|
]);
|
|
431
431
|
return e.createElement(
|
|
432
432
|
t,
|
|
433
|
-
w({ className:
|
|
433
|
+
w({ className: g(Je[`display-${a}`], o) }, _),
|
|
434
434
|
r
|
|
435
435
|
);
|
|
436
436
|
}, yr = "lc-Popover-module__popover___8X1b2", zt = {
|
|
@@ -449,7 +449,7 @@ const dl = {
|
|
|
449
449
|
closeOnEsc: s = !0
|
|
450
450
|
}) => {
|
|
451
451
|
const [d, i] = e.useState(!1), m = e.useRef(!1), u = typeof r == "string", {
|
|
452
|
-
x:
|
|
452
|
+
x: f,
|
|
453
453
|
y: v,
|
|
454
454
|
reference: b,
|
|
455
455
|
floating: p,
|
|
@@ -482,9 +482,9 @@ const dl = {
|
|
|
482
482
|
e.useEffect(() => (document.addEventListener("mousedown", $), () => {
|
|
483
483
|
document.removeEventListener("mousedown", $);
|
|
484
484
|
}), []);
|
|
485
|
-
const k =
|
|
485
|
+
const k = g(zt.popover, o, {
|
|
486
486
|
[zt["popover--visible"]]: d
|
|
487
|
-
}), C =
|
|
487
|
+
}), C = g(
|
|
488
488
|
zt["popover-trigger"],
|
|
489
489
|
_
|
|
490
490
|
);
|
|
@@ -496,7 +496,7 @@ const dl = {
|
|
|
496
496
|
style: {
|
|
497
497
|
position: y,
|
|
498
498
|
top: v != null ? v : "",
|
|
499
|
-
left:
|
|
499
|
+
left: f != null ? f : ""
|
|
500
500
|
}
|
|
501
501
|
},
|
|
502
502
|
u ? /* @__PURE__ */ e.createElement(P, { as: "div" }, r) : r
|
|
@@ -529,18 +529,24 @@ const dl = {
|
|
|
529
529
|
"keepOpenOnClick",
|
|
530
530
|
"activeOptionKeys"
|
|
531
531
|
]);
|
|
532
|
-
const [m, u] = e.useState(l),
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
532
|
+
const [m, u] = e.useState(l), f = e.useRef(-1), v = (E) => {
|
|
533
|
+
var k, C;
|
|
534
|
+
const N = f.current;
|
|
535
|
+
let $ = N + E;
|
|
536
|
+
for (; (k = r[$]) != null && k.disabled || (C = r[$]) != null && C.groupHeader; )
|
|
537
|
+
if ($ += E, $ === -1) {
|
|
538
|
+
$ = N;
|
|
539
|
+
break;
|
|
540
|
+
}
|
|
541
|
+
return $;
|
|
536
542
|
}, b = (E) => {
|
|
537
543
|
var N, $;
|
|
538
|
-
E.key === L.arrowUp &&
|
|
544
|
+
E.key === L.arrowUp && f.current > 0 && (E.preventDefault(), f.current = v(-1), (N = document.getElementById(`list-item-${f.current}`)) == null || N.focus()), E.key === L.arrowDown && f.current + 1 < r.length && (E.preventDefault(), f.current = v(1), ($ = document.getElementById(`list-item-${f.current}`)) == null || $.focus());
|
|
539
545
|
};
|
|
540
546
|
e.useEffect(() => {
|
|
541
547
|
if (m)
|
|
542
548
|
return document.addEventListener("keydown", b), () => document.removeEventListener("keydown", b);
|
|
543
|
-
|
|
549
|
+
f.current = -1;
|
|
544
550
|
}, [m, b]);
|
|
545
551
|
const p = () => {
|
|
546
552
|
u(!0);
|
|
@@ -564,7 +570,7 @@ const dl = {
|
|
|
564
570
|
disabled: E.disabled,
|
|
565
571
|
onClick: () => y(E.onClick),
|
|
566
572
|
role: "menuitem",
|
|
567
|
-
className:
|
|
573
|
+
className: g(Re[`${Me}__list__item`], {
|
|
568
574
|
[Re[`${Me}__list__item--disabled`]]: E.disabled,
|
|
569
575
|
[Re[`${Me}__list__item--with-divider`]]: E.withDivider,
|
|
570
576
|
[Re[`${Me}__list__item--active`]]: n == null ? void 0 : n.includes(E.key)
|
|
@@ -582,7 +588,7 @@ const dl = {
|
|
|
582
588
|
"button",
|
|
583
589
|
{
|
|
584
590
|
"data-testid": "action-menu-trigger-button",
|
|
585
|
-
className:
|
|
591
|
+
className: g(
|
|
586
592
|
Re[`${Me}__trigger-button`],
|
|
587
593
|
a
|
|
588
594
|
),
|
|
@@ -594,7 +600,7 @@ const dl = {
|
|
|
594
600
|
/* @__PURE__ */ e.createElement(
|
|
595
601
|
"ul",
|
|
596
602
|
A(w({}, s), {
|
|
597
|
-
className:
|
|
603
|
+
className: g(Re[`${Me}__list`], t),
|
|
598
604
|
role: "menu",
|
|
599
605
|
"aria-hidden": !m
|
|
600
606
|
}),
|
|
@@ -610,7 +616,7 @@ const dl = {
|
|
|
610
616
|
}, tt = "action-menu-item", wr = ({ leftNode: t, rightNode: a, children: r, kind: o }) => /* @__PURE__ */ e.createElement(
|
|
611
617
|
"div",
|
|
612
618
|
{
|
|
613
|
-
className:
|
|
619
|
+
className: g(et[tt], {
|
|
614
620
|
[et[`${tt}--warning`]]: o === "warning"
|
|
615
621
|
})
|
|
616
622
|
},
|
|
@@ -689,7 +695,7 @@ const dl = {
|
|
|
689
695
|
"customColor"
|
|
690
696
|
]), s = e.createElement(a, A(w({}, Nr[r]), {
|
|
691
697
|
color: c
|
|
692
|
-
})), d =
|
|
698
|
+
})), d = g(
|
|
693
699
|
l,
|
|
694
700
|
da[ua],
|
|
695
701
|
o && da[`${ua}--${_ ? "disabled--" : ""}${o}`]
|
|
@@ -710,10 +716,10 @@ const dl = {
|
|
|
710
716
|
label: r,
|
|
711
717
|
className: o,
|
|
712
718
|
size: _ = "medium"
|
|
713
|
-
}) => /* @__PURE__ */ e.createElement("div", { className:
|
|
719
|
+
}) => /* @__PURE__ */ e.createElement("div", { className: g(at[Ga], o) }, /* @__PURE__ */ e.createElement(
|
|
714
720
|
"div",
|
|
715
721
|
{
|
|
716
|
-
className:
|
|
722
|
+
className: g(at[ma], at[`${ma}--${_}`])
|
|
717
723
|
},
|
|
718
724
|
/* @__PURE__ */ e.createElement(
|
|
719
725
|
"div",
|
|
@@ -768,7 +774,7 @@ const dl = {
|
|
|
768
774
|
children: i,
|
|
769
775
|
href: m,
|
|
770
776
|
onClick: u
|
|
771
|
-
} = p,
|
|
777
|
+
} = p, f = B(p, [
|
|
772
778
|
"loading",
|
|
773
779
|
"disabled",
|
|
774
780
|
"type",
|
|
@@ -789,7 +795,7 @@ const dl = {
|
|
|
789
795
|
primaryColor: "var(--action-primary-default)",
|
|
790
796
|
secondaryColor: "var(--border-invert-primary)"
|
|
791
797
|
};
|
|
792
|
-
}, k =
|
|
798
|
+
}, k = g(
|
|
793
799
|
d,
|
|
794
800
|
_e[oe],
|
|
795
801
|
_e[`${oe}--${_}`],
|
|
@@ -812,7 +818,7 @@ const dl = {
|
|
|
812
818
|
href: y ? void 0 : m,
|
|
813
819
|
onClick: y ? void 0 : u,
|
|
814
820
|
disabled: y
|
|
815
|
-
},
|
|
821
|
+
}, f),
|
|
816
822
|
t && /* @__PURE__ */ e.createElement(
|
|
817
823
|
_a,
|
|
818
824
|
w({
|
|
@@ -822,7 +828,7 @@ const dl = {
|
|
|
822
828
|
}, $())
|
|
823
829
|
),
|
|
824
830
|
c && e.cloneElement(c, {
|
|
825
|
-
className:
|
|
831
|
+
className: g(
|
|
826
832
|
_e[`${oe}__icon`],
|
|
827
833
|
_e[`${oe}__icon--${n}`]
|
|
828
834
|
),
|
|
@@ -876,7 +882,7 @@ const dl = {
|
|
|
876
882
|
transitionDelay: i,
|
|
877
883
|
handleMouseEnter: m,
|
|
878
884
|
handleMouseLeave: u,
|
|
879
|
-
handleCloseAction:
|
|
885
|
+
handleCloseAction: f,
|
|
880
886
|
arrowRef: v,
|
|
881
887
|
childrenElements: b,
|
|
882
888
|
fullSpaceContent: p
|
|
@@ -898,7 +904,7 @@ const dl = {
|
|
|
898
904
|
}, [C.reference, C.floating, k, S, t]), e.useEffect(() => {
|
|
899
905
|
r && E(r);
|
|
900
906
|
}, [E, r]);
|
|
901
|
-
const Se = _ && ee ? ee + _ : ee, Ge = o && V ? V + o : V, Be =
|
|
907
|
+
const Se = _ && ee ? ee + _ : ee, Ge = o && V ? V + o : V, Be = g(x[l], c, {
|
|
902
908
|
[x[`${l}--invert`]]: n === "invert",
|
|
903
909
|
[x[`${l}--important`]]: n === "important",
|
|
904
910
|
[x[`${l}--full-space`]]: p
|
|
@@ -916,14 +922,14 @@ const dl = {
|
|
|
916
922
|
onMouseLeave: u
|
|
917
923
|
},
|
|
918
924
|
e.Children.map(b, (Ee) => e.isValidElement(Ee) ? e.cloneElement(Ee, w({
|
|
919
|
-
handleCloseAction:
|
|
925
|
+
handleCloseAction: f,
|
|
920
926
|
theme: n
|
|
921
927
|
}, Ee.props)) : null),
|
|
922
928
|
/* @__PURE__ */ e.createElement(
|
|
923
929
|
"div",
|
|
924
930
|
{
|
|
925
931
|
ref: v,
|
|
926
|
-
className:
|
|
932
|
+
className: g([x[`${l}__arrow`]]),
|
|
927
933
|
"data-arrow-placement": S,
|
|
928
934
|
style: { top: Se, left: Ge }
|
|
929
935
|
}
|
|
@@ -993,7 +999,7 @@ const zr = (t) => new Promise((a) => setTimeout(a, t)), pa = "tooltip", Wa = (t)
|
|
|
993
999
|
transitionDelay: i = 0,
|
|
994
1000
|
hoverOutDelayTimeout: m = 100,
|
|
995
1001
|
offsetMainAxis: u = 8,
|
|
996
|
-
triggerOnClick:
|
|
1002
|
+
triggerOnClick: f = !1,
|
|
997
1003
|
arrowOffsetY: v,
|
|
998
1004
|
arrowOffsetX: b,
|
|
999
1005
|
fullSpaceContent: p,
|
|
@@ -1019,9 +1025,9 @@ const zr = (t) => new Promise((a) => setTimeout(a, t)), pa = "tooltip", Wa = (t)
|
|
|
1019
1025
|
document.removeEventListener("keydown", Be);
|
|
1020
1026
|
}), []);
|
|
1021
1027
|
const Se = () => {
|
|
1022
|
-
|
|
1028
|
+
f || N || (S.current = !0, ee(!0));
|
|
1023
1029
|
}, Ge = () => {
|
|
1024
|
-
|
|
1030
|
+
f || N || (S.current = !1, zr(m).then(() => {
|
|
1025
1031
|
S.current || ee(!1);
|
|
1026
1032
|
}));
|
|
1027
1033
|
}, Be = (ge) => {
|
|
@@ -1054,7 +1060,7 @@ const zr = (t) => new Promise((a) => setTimeout(a, t)), pa = "tooltip", Wa = (t)
|
|
|
1054
1060
|
ee(!k);
|
|
1055
1061
|
}, Ee = () => {
|
|
1056
1062
|
if (!N)
|
|
1057
|
-
return
|
|
1063
|
+
return f ? {
|
|
1058
1064
|
onClick: Ze
|
|
1059
1065
|
} : {
|
|
1060
1066
|
onMouseEnter: Se,
|
|
@@ -1087,7 +1093,7 @@ const zr = (t) => new Promise((a) => setTimeout(a, t)), pa = "tooltip", Wa = (t)
|
|
|
1087
1093
|
), t && /* @__PURE__ */ e.createElement(
|
|
1088
1094
|
"div",
|
|
1089
1095
|
{
|
|
1090
|
-
className:
|
|
1096
|
+
className: g(
|
|
1091
1097
|
x[`${rt}-header`],
|
|
1092
1098
|
x[`${rt}-header--info`]
|
|
1093
1099
|
)
|
|
@@ -1096,7 +1102,7 @@ const zr = (t) => new Promise((a) => setTimeout(a, t)), pa = "tooltip", Wa = (t)
|
|
|
1096
1102
|
), /* @__PURE__ */ e.createElement(
|
|
1097
1103
|
"div",
|
|
1098
1104
|
{
|
|
1099
|
-
className:
|
|
1105
|
+
className: g(
|
|
1100
1106
|
x[`${rt}-text`],
|
|
1101
1107
|
x[`${rt}-text--info`]
|
|
1102
1108
|
)
|
|
@@ -1138,7 +1144,7 @@ const zr = (t) => new Promise((a) => setTimeout(a, t)), pa = "tooltip", Wa = (t)
|
|
|
1138
1144
|
)), t && /* @__PURE__ */ e.createElement("div", { className: x[`${fe}-header`] }, t), /* @__PURE__ */ e.createElement("div", { className: x[`${fe}-text`] }, a), /* @__PURE__ */ e.createElement(
|
|
1139
1145
|
"div",
|
|
1140
1146
|
{
|
|
1141
|
-
className:
|
|
1147
|
+
className: g(
|
|
1142
1148
|
x[`${fe}-footer`],
|
|
1143
1149
|
x[`${fe}-footer--interactive`]
|
|
1144
1150
|
)
|
|
@@ -1154,7 +1160,7 @@ const zr = (t) => new Promise((a) => setTimeout(a, t)), pa = "tooltip", Wa = (t)
|
|
|
1154
1160
|
/* @__PURE__ */ e.createElement(
|
|
1155
1161
|
M,
|
|
1156
1162
|
{
|
|
1157
|
-
className:
|
|
1163
|
+
className: g(x[`${fe}-footer-secondary`], {
|
|
1158
1164
|
[x[`${fe}-footer-secondary-invert`]]: _ === "invert"
|
|
1159
1165
|
}),
|
|
1160
1166
|
kind: n.kind || "text",
|
|
@@ -1201,7 +1207,7 @@ const zr = (t) => new Promise((a) => setTimeout(a, t)), pa = "tooltip", Wa = (t)
|
|
|
1201
1207
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
1202
1208
|
"div",
|
|
1203
1209
|
{
|
|
1204
|
-
className:
|
|
1210
|
+
className: g({
|
|
1205
1211
|
[x[`${q}__overlay`]]: !0,
|
|
1206
1212
|
[x[`${q}__overlay--visible`]]: a,
|
|
1207
1213
|
[x[`${q}__overlay--slide`]]: r
|
|
@@ -1211,7 +1217,7 @@ const zr = (t) => new Promise((a) => setTimeout(a, t)), pa = "tooltip", Wa = (t)
|
|
|
1211
1217
|
), /* @__PURE__ */ e.createElement(
|
|
1212
1218
|
"div",
|
|
1213
1219
|
{
|
|
1214
|
-
className:
|
|
1220
|
+
className: g({
|
|
1215
1221
|
[x[`${q}__overlay`]]: !0,
|
|
1216
1222
|
[x[`${q}__overlay--visible`]]: a,
|
|
1217
1223
|
[x[`${q}__overlay--slide`]]: r
|
|
@@ -1221,7 +1227,7 @@ const zr = (t) => new Promise((a) => setTimeout(a, t)), pa = "tooltip", Wa = (t)
|
|
|
1221
1227
|
), /* @__PURE__ */ e.createElement(
|
|
1222
1228
|
"div",
|
|
1223
1229
|
{
|
|
1224
|
-
className:
|
|
1230
|
+
className: g({
|
|
1225
1231
|
[x[`${q}__overlay`]]: !0,
|
|
1226
1232
|
[x[`${q}__overlay--visible`]]: a,
|
|
1227
1233
|
[x[`${q}__overlay--slide`]]: r
|
|
@@ -1231,7 +1237,7 @@ const zr = (t) => new Promise((a) => setTimeout(a, t)), pa = "tooltip", Wa = (t)
|
|
|
1231
1237
|
), /* @__PURE__ */ e.createElement(
|
|
1232
1238
|
"div",
|
|
1233
1239
|
{
|
|
1234
|
-
className:
|
|
1240
|
+
className: g({
|
|
1235
1241
|
[x[`${q}__overlay`]]: !0,
|
|
1236
1242
|
[x[`${q}__overlay--visible`]]: a,
|
|
1237
1243
|
[x[`${q}__overlay--slide`]]: r
|
|
@@ -1241,7 +1247,7 @@ const zr = (t) => new Promise((a) => setTimeout(a, t)), pa = "tooltip", Wa = (t)
|
|
|
1241
1247
|
), o && /* @__PURE__ */ e.createElement(
|
|
1242
1248
|
"div",
|
|
1243
1249
|
{
|
|
1244
|
-
className:
|
|
1250
|
+
className: g({
|
|
1245
1251
|
[x[`${q}__overlay`]]: !0,
|
|
1246
1252
|
[x[`${q}__overlay--visible`]]: a,
|
|
1247
1253
|
[x[`${q}__overlay--slide`]]: r
|
|
@@ -1328,7 +1334,7 @@ const ga = 8, fa = "guide-tooltip", ba = (t, a) => new Gr(t, a), hl = (t) => {
|
|
|
1328
1334
|
contextElement: l
|
|
1329
1335
|
},
|
|
1330
1336
|
arrowOffsetY: 25,
|
|
1331
|
-
className:
|
|
1337
|
+
className: g({
|
|
1332
1338
|
[x[fa]]: !0,
|
|
1333
1339
|
[x[`${fa}--slide`]]: d,
|
|
1334
1340
|
className: a
|
|
@@ -1361,7 +1367,7 @@ const ga = 8, fa = "guide-tooltip", ba = (t, a) => new Gr(t, a), hl = (t) => {
|
|
|
1361
1367
|
menuItemsKeys: a,
|
|
1362
1368
|
activeOptionKey: r
|
|
1363
1369
|
}) => {
|
|
1364
|
-
const o =
|
|
1370
|
+
const o = g(Ae[`${Ht}__button`], {
|
|
1365
1371
|
[Ae[`${Ht}__button--hidden`]]: a.includes(
|
|
1366
1372
|
t.key
|
|
1367
1373
|
),
|
|
@@ -1412,11 +1418,11 @@ const ga = 8, fa = "guide-tooltip", ba = (t, a) => new Gr(t, a), hl = (t) => {
|
|
|
1412
1418
|
options: o,
|
|
1413
1419
|
activeOptionKey: _
|
|
1414
1420
|
}) => {
|
|
1415
|
-
const [l, c] = e.useState([]), n = r === "scroll", s =
|
|
1421
|
+
const [l, c] = e.useState([]), n = r === "scroll", s = g(Ae[ot], t), d = {
|
|
1416
1422
|
root: document.querySelector(`${a}`),
|
|
1417
1423
|
threshold: 1
|
|
1418
|
-
}, i = !n && l.length !== 0, m = (
|
|
1419
|
-
|
|
1424
|
+
}, i = !n && l.length !== 0, m = (f) => {
|
|
1425
|
+
f.map((v) => {
|
|
1420
1426
|
const b = l.includes(v.target.id);
|
|
1421
1427
|
if (!v.isIntersecting) {
|
|
1422
1428
|
v.target.setAttribute("tabindex", "-1"), b || c((p) => [
|
|
@@ -1429,8 +1435,8 @@ const ga = 8, fa = "guide-tooltip", ba = (t, a) => new Gr(t, a), hl = (t) => {
|
|
|
1429
1435
|
});
|
|
1430
1436
|
};
|
|
1431
1437
|
e.useEffect(() => {
|
|
1432
|
-
const
|
|
1433
|
-
if (!n &&
|
|
1438
|
+
const f = !!window.IntersectionObserver;
|
|
1439
|
+
if (!n && f) {
|
|
1434
1440
|
const v = document.querySelectorAll(
|
|
1435
1441
|
`.${Ae[`${ot}__items__button`]}`
|
|
1436
1442
|
), b = new IntersectionObserver(
|
|
@@ -1440,8 +1446,8 @@ const ga = 8, fa = "guide-tooltip", ba = (t, a) => new Gr(t, a), hl = (t) => {
|
|
|
1440
1446
|
return v.forEach((p) => b.observe(p)), () => b.disconnect();
|
|
1441
1447
|
}
|
|
1442
1448
|
}, [l, n]);
|
|
1443
|
-
const u = (
|
|
1444
|
-
(b) =>
|
|
1449
|
+
const u = (f) => o.filter(
|
|
1450
|
+
(b) => f.find((p) => p === b.key)
|
|
1445
1451
|
).map((b) => ({
|
|
1446
1452
|
key: b.key,
|
|
1447
1453
|
element: /* @__PURE__ */ e.createElement(wr, { leftNode: b.element }, b.label),
|
|
@@ -1450,14 +1456,14 @@ const ga = 8, fa = "guide-tooltip", ba = (t, a) => new Gr(t, a), hl = (t) => {
|
|
|
1450
1456
|
return /* @__PURE__ */ e.createElement("div", { id: a, className: s }, /* @__PURE__ */ e.createElement(
|
|
1451
1457
|
"div",
|
|
1452
1458
|
{
|
|
1453
|
-
className:
|
|
1459
|
+
className: g(Ae[`${ot}__items`], {
|
|
1454
1460
|
[Ae[`${ot}__items--scroll`]]: n
|
|
1455
1461
|
})
|
|
1456
1462
|
},
|
|
1457
|
-
o.map((
|
|
1463
|
+
o.map((f) => /* @__PURE__ */ e.createElement(
|
|
1458
1464
|
Ur,
|
|
1459
1465
|
{
|
|
1460
|
-
option:
|
|
1466
|
+
option: f,
|
|
1461
1467
|
menuItemsKeys: l,
|
|
1462
1468
|
activeOptionKey: _
|
|
1463
1469
|
}
|
|
@@ -1516,7 +1522,7 @@ const ga = 8, fa = "guide-tooltip", ba = (t, a) => new Gr(t, a), hl = (t) => {
|
|
|
1516
1522
|
"kind",
|
|
1517
1523
|
"onClose"
|
|
1518
1524
|
]);
|
|
1519
|
-
const d = e.useRef(null), [i, m] = e.useState(null), u =
|
|
1525
|
+
const d = e.useRef(null), [i, m] = e.useState(null), u = g(
|
|
1520
1526
|
be[ve],
|
|
1521
1527
|
be[`${ve}--${_}`],
|
|
1522
1528
|
i === "medium" && be[`${ve}--medium`],
|
|
@@ -1524,10 +1530,10 @@ const ga = 8, fa = "guide-tooltip", ba = (t, a) => new Gr(t, a), hl = (t) => {
|
|
|
1524
1530
|
a
|
|
1525
1531
|
);
|
|
1526
1532
|
return e.useEffect(() => {
|
|
1527
|
-
const
|
|
1528
|
-
|
|
1533
|
+
const f = () => d.current && d.current.offsetWidth <= 400 ? m("small") : d.current && d.current.offsetWidth > 400 && d.current.offsetWidth <= 800 ? m("medium") : m(null), v = za(() => {
|
|
1534
|
+
f();
|
|
1529
1535
|
}, 500);
|
|
1530
|
-
return window.addEventListener("resize", v),
|
|
1536
|
+
return window.addEventListener("resize", v), f(), () => window.removeEventListener("resize", v);
|
|
1531
1537
|
}), /* @__PURE__ */ e.createElement("div", w({ ref: d, className: u }, c), /* @__PURE__ */ e.createElement(
|
|
1532
1538
|
D,
|
|
1533
1539
|
A(w({}, Kr[_]), {
|
|
@@ -1643,20 +1649,20 @@ const e_ = "lc-Avatar-module__avatar___1zTCE", t_ = "lc-Avatar-module__avatar__s
|
|
|
1643
1649
|
type: s,
|
|
1644
1650
|
withRim: d = !1
|
|
1645
1651
|
}) => {
|
|
1646
|
-
const i = s === "image" && !l, [m, u] = e.useState(i),
|
|
1652
|
+
const i = s === "image" && !l, [m, u] = e.useState(i), f = s === "image" && !!l && !m, v = s === "text", b = ["xxxsmall", "xxsmall", "xsmall"].includes(_) ? 1 : 2, p = Qr(n, b), y = r || Zr(p), h = y && Xr(y), E = g(w({
|
|
1647
1653
|
[ae[Y]]: !0,
|
|
1648
1654
|
[ae[`${Y}--${o}`]]: !0,
|
|
1649
1655
|
[ae[`${Y}--${_}`]]: !0,
|
|
1650
1656
|
[ae[`${Y}--with-rim`]]: d
|
|
1651
|
-
}, a ? { [`${a}`]: a } : {})), N =
|
|
1657
|
+
}, a ? { [`${a}`]: a } : {})), N = g(
|
|
1652
1658
|
ae[`${Y}__status`],
|
|
1653
1659
|
ae[`${Y}__status--${o}`],
|
|
1654
1660
|
ae[`${Y}__status--${_}`],
|
|
1655
1661
|
...c ? [ae[`${Y}__status--${c}`]] : []
|
|
1656
|
-
), $ =
|
|
1662
|
+
), $ = g(
|
|
1657
1663
|
ae[`${Y}__icon`],
|
|
1658
1664
|
ae[`${Y}__icon--${_}`]
|
|
1659
|
-
), k =
|
|
1665
|
+
), k = g(
|
|
1660
1666
|
ae[`${Y}__rim`],
|
|
1661
1667
|
ae[`${Y}__rim--${_}`]
|
|
1662
1668
|
), C = e.useCallback(() => u(!0), []);
|
|
@@ -1674,7 +1680,7 @@ const e_ = "lc-Avatar-module__avatar___1zTCE", t_ = "lc-Avatar-module__avatar__s
|
|
|
1674
1680
|
"data-testid": `${Y}__status`,
|
|
1675
1681
|
className: N
|
|
1676
1682
|
}
|
|
1677
|
-
),
|
|
1683
|
+
), f && /* @__PURE__ */ e.createElement(
|
|
1678
1684
|
"img",
|
|
1679
1685
|
{
|
|
1680
1686
|
className: ae[`${Y}__image`],
|
|
@@ -1719,7 +1725,7 @@ const o_ = "lc-Badge-module__badge___GhLnu", l_ = "lc-Badge-module__badge__dot__
|
|
|
1719
1725
|
"size",
|
|
1720
1726
|
"type"
|
|
1721
1727
|
]);
|
|
1722
|
-
const d =
|
|
1728
|
+
const d = g(
|
|
1723
1729
|
t,
|
|
1724
1730
|
Et[$t],
|
|
1725
1731
|
Et[`${$t}--${o}`],
|
|
@@ -1749,27 +1755,27 @@ const n_ = "lc-SegmentedControl-module__btn___tfsvL", wt = {
|
|
|
1749
1755
|
fullWidth: l = !1,
|
|
1750
1756
|
onButtonClick: c = Zt
|
|
1751
1757
|
}) => {
|
|
1752
|
-
const n =
|
|
1758
|
+
const n = g(wt[s_], r), [s, d] = e.useState(() => o), i = typeof _ == "string";
|
|
1753
1759
|
e.useEffect(() => {
|
|
1754
1760
|
i && d(_);
|
|
1755
1761
|
}, [_]);
|
|
1756
|
-
const m = (
|
|
1757
|
-
i || d(
|
|
1758
|
-
}, u = a.map(({ id:
|
|
1759
|
-
const h =
|
|
1762
|
+
const m = (f, v) => {
|
|
1763
|
+
i || d(f), c(f, v);
|
|
1764
|
+
}, u = a.map(({ id: f, label: v, loading: b, disabled: p, icon: y }) => {
|
|
1765
|
+
const h = f === s, E = h ? wt["btn--active"] : "", N = h ? !1 : b;
|
|
1760
1766
|
return /* @__PURE__ */ e.createElement(
|
|
1761
1767
|
M,
|
|
1762
1768
|
{
|
|
1763
|
-
key:
|
|
1769
|
+
key: f,
|
|
1764
1770
|
fullWidth: l,
|
|
1765
1771
|
loading: N,
|
|
1766
1772
|
disabled: p,
|
|
1767
1773
|
"aria-pressed": h,
|
|
1768
1774
|
kind: "secondary",
|
|
1769
1775
|
icon: y,
|
|
1770
|
-
className:
|
|
1776
|
+
className: g(wt.btn, wt[`btn--${t}`], E),
|
|
1771
1777
|
onClick: ($) => {
|
|
1772
|
-
m(
|
|
1778
|
+
m(f, $);
|
|
1773
1779
|
}
|
|
1774
1780
|
},
|
|
1775
1781
|
v
|
|
@@ -1810,8 +1816,8 @@ const n_ = "lc-SegmentedControl-module__btn___tfsvL", wt = {
|
|
|
1810
1816
|
"src",
|
|
1811
1817
|
"title"
|
|
1812
1818
|
]);
|
|
1813
|
-
const [m, u] = e.useState(!1),
|
|
1814
|
-
return /* @__PURE__ */ e.createElement("div", w({ className:
|
|
1819
|
+
const [m, u] = e.useState(!1), f = m ? Ft : ft, v = m ? "Hide" : "Show more", b = (a == null ? void 0 : a.length) > 0, p = !!l, y = b || p, h = n, E = c, N = E ? "" : re[k_];
|
|
1820
|
+
return /* @__PURE__ */ e.createElement("div", w({ className: g(re[gt], o) }, s), h && /* @__PURE__ */ e.createElement("div", { className: g(re[Pt], N) }, E && /* @__PURE__ */ e.createElement(
|
|
1815
1821
|
"img",
|
|
1816
1822
|
{
|
|
1817
1823
|
alt: t,
|
|
@@ -1834,7 +1840,7 @@ const n_ = "lc-SegmentedControl-module__btn___tfsvL", wt = {
|
|
|
1834
1840
|
className: re[`${Ct}__buttons-expander`],
|
|
1835
1841
|
kind: "link",
|
|
1836
1842
|
iconPosition: "right",
|
|
1837
|
-
icon: /* @__PURE__ */ e.createElement(D, { source:
|
|
1843
|
+
icon: /* @__PURE__ */ e.createElement(D, { source: f }),
|
|
1838
1844
|
onClick: () => u(!m)
|
|
1839
1845
|
},
|
|
1840
1846
|
v
|
|
@@ -1849,7 +1855,7 @@ const n_ = "lc-SegmentedControl-module__btn___tfsvL", wt = {
|
|
|
1849
1855
|
"children",
|
|
1850
1856
|
"className"
|
|
1851
1857
|
]);
|
|
1852
|
-
const l =
|
|
1858
|
+
const l = g(y_[E_], a);
|
|
1853
1859
|
return /* @__PURE__ */ e.createElement(P, A(w({ as: "span", size: "sm" }, r), { className: l }), t);
|
|
1854
1860
|
}, $_ = "lc-Checkbox-module__checkbox___G7nTf", w_ = "lc-Checkbox-module__checkbox__label___-o01x", C_ = "lc-Checkbox-module__checkbox__text___P2SIq", N_ = "lc-Checkbox-module__checkbox__input___YLbVF", x_ = "lc-Checkbox-module__checkbox__checkmark___16pfY", S_ = "lc-Checkbox-module__checkbox__square___MHUyd", T_ = "lc-Checkbox-module__checkbox__helper___YSJ-n", Le = {
|
|
1855
1861
|
checkbox: $_,
|
|
@@ -1867,7 +1873,7 @@ const n_ = "lc-SegmentedControl-module__btn___tfsvL", wt = {
|
|
|
1867
1873
|
return /* @__PURE__ */ e.createElement(
|
|
1868
1874
|
"div",
|
|
1869
1875
|
{
|
|
1870
|
-
className:
|
|
1876
|
+
className: g(Le[Oe], _, {
|
|
1871
1877
|
[Le[`${Oe}--selected`]]: t,
|
|
1872
1878
|
[Le[`${Oe}--disabled`]]: a
|
|
1873
1879
|
})
|
|
@@ -1935,7 +1941,7 @@ const n_ = "lc-SegmentedControl-module__btn___tfsvL", wt = {
|
|
|
1935
1941
|
toMonth: m
|
|
1936
1942
|
} = t, u = () => {
|
|
1937
1943
|
typeof a == "function" && a();
|
|
1938
|
-
},
|
|
1944
|
+
}, f = () => {
|
|
1939
1945
|
typeof o == "function" && o();
|
|
1940
1946
|
}, v = () => {
|
|
1941
1947
|
if (!i) {
|
|
@@ -1988,7 +1994,7 @@ const n_ = "lc-SegmentedControl-module__btn___tfsvL", wt = {
|
|
|
1988
1994
|
[n.navButtonNext]: !0,
|
|
1989
1995
|
[n.navButtonInteractionDisabled]: !_
|
|
1990
1996
|
}),
|
|
1991
|
-
onClick:
|
|
1997
|
+
onClick: f
|
|
1992
1998
|
},
|
|
1993
1999
|
/* @__PURE__ */ e.createElement(D, { source: gr, kind: "subtle" })
|
|
1994
2000
|
), /* @__PURE__ */ e.createElement(
|
|
@@ -2094,11 +2100,11 @@ const n_ = "lc-SegmentedControl-module__btn___tfsvL", wt = {
|
|
|
2094
2100
|
"navbarElement",
|
|
2095
2101
|
"renderDay",
|
|
2096
2102
|
"innerRef"
|
|
2097
|
-
]), [u,
|
|
2103
|
+
]), [u, f] = e.useState(_ || /* @__PURE__ */ new Date());
|
|
2098
2104
|
e.useEffect(() => {
|
|
2099
|
-
_ && _ !== u &&
|
|
2105
|
+
_ && _ !== u && f(_);
|
|
2100
2106
|
}, [_, u]), e.useEffect(() => {
|
|
2101
|
-
o && (Va(u, { from: l, to: o }) ||
|
|
2107
|
+
o && (Va(u, { from: l, to: o }) || f(o));
|
|
2102
2108
|
}, [u, t.toMonth, t.fromMonth]);
|
|
2103
2109
|
const v = e.useCallback(
|
|
2104
2110
|
(h) => {
|
|
@@ -2106,7 +2112,7 @@ const n_ = "lc-SegmentedControl-module__btn___tfsvL", wt = {
|
|
|
2106
2112
|
t.onMonthChange(h);
|
|
2107
2113
|
return;
|
|
2108
2114
|
}
|
|
2109
|
-
|
|
2115
|
+
f(h);
|
|
2110
2116
|
},
|
|
2111
2117
|
[_, t.onMonthChange]
|
|
2112
2118
|
);
|
|
@@ -2311,7 +2317,7 @@ const M_ = (t) => {
|
|
|
2311
2317
|
});
|
|
2312
2318
|
},
|
|
2313
2319
|
[t]
|
|
2314
|
-
),
|
|
2320
|
+
), f = kt((b) => {
|
|
2315
2321
|
d({
|
|
2316
2322
|
type: O.CURRENT_MONTH_CHANGE,
|
|
2317
2323
|
payload: { date: b }
|
|
@@ -2342,7 +2348,7 @@ const M_ = (t) => {
|
|
|
2342
2348
|
toMonth: _,
|
|
2343
2349
|
disabledDays: C,
|
|
2344
2350
|
onDayMouseEnter: i,
|
|
2345
|
-
onMonthChange:
|
|
2351
|
+
onMonthChange: f
|
|
2346
2352
|
},
|
|
2347
2353
|
selectedOption: $
|
|
2348
2354
|
};
|
|
@@ -2372,7 +2378,7 @@ const Ea = {
|
|
|
2372
2378
|
"children",
|
|
2373
2379
|
"className"
|
|
2374
2380
|
]);
|
|
2375
|
-
const l =
|
|
2381
|
+
const l = g(Ea[$a], a);
|
|
2376
2382
|
return /* @__PURE__ */ e.createElement(P, A(w({ as: "span", size: "sm" }, r), { className: l }), /* @__PURE__ */ e.createElement(
|
|
2377
2383
|
D,
|
|
2378
2384
|
{
|
|
@@ -2401,7 +2407,7 @@ const Ea = {
|
|
|
2401
2407
|
"inline",
|
|
2402
2408
|
"stretch"
|
|
2403
2409
|
]);
|
|
2404
|
-
const d =
|
|
2410
|
+
const d = g(Ut[Wt], t, {
|
|
2405
2411
|
[Ut[`${Wt}--inline`]]: _,
|
|
2406
2412
|
[Ut[`${Wt}--stretched`]]: l
|
|
2407
2413
|
});
|
|
@@ -2426,7 +2432,7 @@ const Ea = {
|
|
|
2426
2432
|
"helperText",
|
|
2427
2433
|
"formFooter"
|
|
2428
2434
|
]);
|
|
2429
|
-
return /* @__PURE__ */ e.createElement("form", w({ className:
|
|
2435
|
+
return /* @__PURE__ */ e.createElement("form", w({ className: g(lt[ct], t) }, l), (r || o) && /* @__PURE__ */ e.createElement("div", { className: lt[`${ct}__header`] }, r && /* @__PURE__ */ e.createElement(Ke, { size: "sm", className: lt[`${ct}__label`] }, r), o && /* @__PURE__ */ e.createElement(P, { as: "p", size: "sm", className: lt[`${ct}__helper`] }, o)), a, _ && /* @__PURE__ */ e.createElement("div", { className: lt[`${ct}__footer`] }, _));
|
|
2430
2436
|
}, z = {
|
|
2431
2437
|
"form-field": "lc-FormField-module__form-field___JqnX6",
|
|
2432
2438
|
"form-field--inline": "lc-FormField-module__form-field--inline___4DgIq",
|
|
@@ -2455,7 +2461,7 @@ const Ea = {
|
|
|
2455
2461
|
children: n,
|
|
2456
2462
|
labelRightNode: s
|
|
2457
2463
|
}) => {
|
|
2458
|
-
const d = e.useRef(null), [i, m] = e.useState("auto"), u =
|
|
2464
|
+
const d = e.useRef(null), [i, m] = e.useState("auto"), u = g(
|
|
2459
2465
|
z[H],
|
|
2460
2466
|
{
|
|
2461
2467
|
[z[`${H}--inline`]]: t
|
|
@@ -2463,12 +2469,12 @@ const Ea = {
|
|
|
2463
2469
|
l
|
|
2464
2470
|
);
|
|
2465
2471
|
return e.useEffect(() => {
|
|
2466
|
-
const
|
|
2467
|
-
return t &&
|
|
2472
|
+
const f = d;
|
|
2473
|
+
return t && f.current ? m(`${f.current.clientHeight}px`) : m("auto");
|
|
2468
2474
|
}), /* @__PURE__ */ e.createElement("div", { className: u }, s && t && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
2469
2475
|
"div",
|
|
2470
2476
|
{
|
|
2471
|
-
className:
|
|
2477
|
+
className: g(
|
|
2472
2478
|
z[`${H}__label-right-node`],
|
|
2473
2479
|
z[`${H}__label-right-node--inline`]
|
|
2474
2480
|
)
|
|
@@ -2477,7 +2483,7 @@ const Ea = {
|
|
|
2477
2483
|
), /* @__PURE__ */ e.createElement("div", { className: z[`${H}__row-break`] })), /* @__PURE__ */ e.createElement(
|
|
2478
2484
|
"div",
|
|
2479
2485
|
{
|
|
2480
|
-
className:
|
|
2486
|
+
className: g(
|
|
2481
2487
|
z[`${H}__wrapper`],
|
|
2482
2488
|
t && z[`${H}__wrapper--inline`]
|
|
2483
2489
|
)
|
|
@@ -2485,7 +2491,7 @@ const Ea = {
|
|
|
2485
2491
|
(o || s) && /* @__PURE__ */ e.createElement(
|
|
2486
2492
|
"div",
|
|
2487
2493
|
{
|
|
2488
|
-
className:
|
|
2494
|
+
className: g(
|
|
2489
2495
|
z[`${H}__label`],
|
|
2490
2496
|
t && z[`${H}__label--inline`],
|
|
2491
2497
|
!o && z[`${H}__label--no-text`]
|
|
@@ -2494,7 +2500,7 @@ const Ea = {
|
|
|
2494
2500
|
o && /* @__PURE__ */ e.createElement(
|
|
2495
2501
|
"div",
|
|
2496
2502
|
{
|
|
2497
|
-
className:
|
|
2503
|
+
className: g(
|
|
2498
2504
|
z[`${H}__label-wrapper`],
|
|
2499
2505
|
t && z[`${H}__label-wrapper--inline`]
|
|
2500
2506
|
),
|
|
@@ -2513,7 +2519,7 @@ const Ea = {
|
|
|
2513
2519
|
_ && /* @__PURE__ */ e.createElement(
|
|
2514
2520
|
"div",
|
|
2515
2521
|
{
|
|
2516
|
-
className:
|
|
2522
|
+
className: g(
|
|
2517
2523
|
z[`${H}__label-adornment`],
|
|
2518
2524
|
t && z[`${H}__label-adornment--inline`]
|
|
2519
2525
|
)
|
|
@@ -2521,12 +2527,12 @@ const Ea = {
|
|
|
2521
2527
|
_
|
|
2522
2528
|
)
|
|
2523
2529
|
),
|
|
2524
|
-
s && !t && /* @__PURE__ */ e.createElement("div", { className:
|
|
2530
|
+
s && !t && /* @__PURE__ */ e.createElement("div", { className: g(z[`${H}__label-right-node`]) }, s)
|
|
2525
2531
|
),
|
|
2526
|
-
/* @__PURE__ */ e.createElement("div", { className:
|
|
2532
|
+
/* @__PURE__ */ e.createElement("div", { className: g(z[`${H}__content`]) }, /* @__PURE__ */ e.createElement("div", { ref: d }, n), a && /* @__PURE__ */ e.createElement(oa, null, a), !a && r && /* @__PURE__ */ e.createElement(
|
|
2527
2533
|
Rt,
|
|
2528
2534
|
{
|
|
2529
|
-
className:
|
|
2535
|
+
className: g(z[`${H}__content__description`])
|
|
2530
2536
|
},
|
|
2531
2537
|
r
|
|
2532
2538
|
))
|
|
@@ -2548,7 +2554,7 @@ const Ea = {
|
|
|
2548
2554
|
"labelText",
|
|
2549
2555
|
"helperText"
|
|
2550
2556
|
]);
|
|
2551
|
-
const n =
|
|
2557
|
+
const n = g(Nt[xt], t);
|
|
2552
2558
|
return /* @__PURE__ */ e.createElement(
|
|
2553
2559
|
"div",
|
|
2554
2560
|
A(w(A(w({}, _), {
|
|
@@ -2575,7 +2581,7 @@ const Ea = {
|
|
|
2575
2581
|
"input__visibility-button": "lc-Input-module__input__visibility-button___eWrVe"
|
|
2576
2582
|
}, ye = "input", wa = (t, a) => e.cloneElement(t.source, {
|
|
2577
2583
|
"data-testid": `input-icon-${t.place}`,
|
|
2578
|
-
className:
|
|
2584
|
+
className: g(
|
|
2579
2585
|
ke[`${ye}__icon`],
|
|
2580
2586
|
ke[`${ye}__icon--${t.place}`],
|
|
2581
2587
|
{
|
|
@@ -2599,7 +2605,7 @@ const Ea = {
|
|
|
2599
2605
|
"className",
|
|
2600
2606
|
"cropOnBlur"
|
|
2601
2607
|
]);
|
|
2602
|
-
const [i, m] = e.useState(!1), [u,
|
|
2608
|
+
const [i, m] = e.useState(!1), [u, f] = e.useState(!1), { type: v, onFocus: b, onBlur: p } = c, y = g(
|
|
2603
2609
|
_,
|
|
2604
2610
|
ke[ye],
|
|
2605
2611
|
ke[`${ye}--${t}`],
|
|
@@ -2630,7 +2636,7 @@ const Ea = {
|
|
|
2630
2636
|
kind: "text",
|
|
2631
2637
|
size: "compact",
|
|
2632
2638
|
icon: /* @__PURE__ */ e.createElement(D, { customColor: h, source: E }),
|
|
2633
|
-
onClick: () =>
|
|
2639
|
+
onClick: () => f((k) => !k),
|
|
2634
2640
|
className: ke[`${ye}__visibility-button`]
|
|
2635
2641
|
}
|
|
2636
2642
|
));
|
|
@@ -2649,7 +2655,7 @@ const Ea = {
|
|
|
2649
2655
|
return /* @__PURE__ */ e.createElement(
|
|
2650
2656
|
"a",
|
|
2651
2657
|
w({
|
|
2652
|
-
className:
|
|
2658
|
+
className: g(
|
|
2653
2659
|
Ca[Na],
|
|
2654
2660
|
t && Ca[`${Na}--bold`],
|
|
2655
2661
|
a
|
|
@@ -2685,7 +2691,7 @@ const Ea = {
|
|
|
2685
2691
|
"closeOnOverlayPress",
|
|
2686
2692
|
"fullSpaceContent"
|
|
2687
2693
|
]);
|
|
2688
|
-
const d =
|
|
2694
|
+
const d = g(
|
|
2689
2695
|
X[St],
|
|
2690
2696
|
a,
|
|
2691
2697
|
l && X[`${St}--full-space`]
|
|
@@ -2706,7 +2712,7 @@ const Ea = {
|
|
|
2706
2712
|
{
|
|
2707
2713
|
"data-testid": "lc-modal-overlay",
|
|
2708
2714
|
onMouseDown: i,
|
|
2709
|
-
className:
|
|
2715
|
+
className: g(
|
|
2710
2716
|
X[`${St}__overlay`],
|
|
2711
2717
|
X[`${St}__overlay--visible`]
|
|
2712
2718
|
)
|
|
@@ -2730,7 +2736,7 @@ const Ea = {
|
|
|
2730
2736
|
{
|
|
2731
2737
|
kind: "plain",
|
|
2732
2738
|
title: "Close modal",
|
|
2733
|
-
className:
|
|
2739
|
+
className: g(
|
|
2734
2740
|
X["modal-base__close"],
|
|
2735
2741
|
t && X["modal-base__close--label-type"]
|
|
2736
2742
|
),
|
|
@@ -2757,7 +2763,7 @@ const Ea = {
|
|
|
2757
2763
|
"onClose",
|
|
2758
2764
|
"contentClassName"
|
|
2759
2765
|
]);
|
|
2760
|
-
const m =
|
|
2766
|
+
const m = g(X[Te], a), u = typeof t == "string", f = (v) => {
|
|
2761
2767
|
v.preventDefault(), v.stopPropagation(), c();
|
|
2762
2768
|
};
|
|
2763
2769
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -2780,7 +2786,7 @@ const Ea = {
|
|
|
2780
2786
|
{
|
|
2781
2787
|
labelType: !!o,
|
|
2782
2788
|
customColor: "var(--color-white)",
|
|
2783
|
-
onClick:
|
|
2789
|
+
onClick: f
|
|
2784
2790
|
}
|
|
2785
2791
|
)),
|
|
2786
2792
|
!o && r && /* @__PURE__ */ e.createElement("div", { className: X[`${Te}__header`] }, /* @__PURE__ */ e.createElement(
|
|
@@ -2791,12 +2797,12 @@ const Ea = {
|
|
|
2791
2797
|
className: X[`${Te}__heading`]
|
|
2792
2798
|
},
|
|
2793
2799
|
r
|
|
2794
|
-
), /* @__PURE__ */ e.createElement(xa, { onClick:
|
|
2800
|
+
), /* @__PURE__ */ e.createElement(xa, { onClick: f })),
|
|
2795
2801
|
/* @__PURE__ */ e.createElement(
|
|
2796
2802
|
"div",
|
|
2797
2803
|
{
|
|
2798
2804
|
"data-testid": "modal-body",
|
|
2799
|
-
className:
|
|
2805
|
+
className: g(
|
|
2800
2806
|
X[`${Te}__body`],
|
|
2801
2807
|
_ && X[`${Te}__body--full-space`],
|
|
2802
2808
|
n
|
|
@@ -2878,7 +2884,7 @@ const Ea = {
|
|
|
2878
2884
|
"style",
|
|
2879
2885
|
"onChange"
|
|
2880
2886
|
]);
|
|
2881
|
-
const u = e.useRef(null),
|
|
2887
|
+
const u = e.useRef(null), f = g(
|
|
2882
2888
|
Ue[We],
|
|
2883
2889
|
{
|
|
2884
2890
|
[Ue[`${We}--error`]]: a,
|
|
@@ -2908,7 +2914,7 @@ const Ea = {
|
|
|
2908
2914
|
var k;
|
|
2909
2915
|
return (k = u.current) == null || k.focus(), p(-1);
|
|
2910
2916
|
};
|
|
2911
|
-
return /* @__PURE__ */ e.createElement("div", { className:
|
|
2917
|
+
return /* @__PURE__ */ e.createElement("div", { className: f, style: n }, /* @__PURE__ */ e.createElement(
|
|
2912
2918
|
"input",
|
|
2913
2919
|
A(w({
|
|
2914
2920
|
type: "text",
|
|
@@ -3013,14 +3019,14 @@ const U = {
|
|
|
3013
3019
|
), n.avatarSrc && /* @__PURE__ */ e.createElement(
|
|
3014
3020
|
"img",
|
|
3015
3021
|
{
|
|
3016
|
-
className:
|
|
3022
|
+
className: g(U[`${le}__avatar`]),
|
|
3017
3023
|
src: n.avatarSrc,
|
|
3018
3024
|
alt: n.name
|
|
3019
3025
|
}
|
|
3020
3026
|
), /* @__PURE__ */ e.createElement("div", { className: U[`${le}__label-container`] }, /* @__PURE__ */ e.createElement(
|
|
3021
3027
|
"span",
|
|
3022
3028
|
{
|
|
3023
|
-
className:
|
|
3029
|
+
className: g({
|
|
3024
3030
|
[U[`${le}__main-label`]]: n.secondaryText
|
|
3025
3031
|
})
|
|
3026
3032
|
},
|
|
@@ -3050,7 +3056,7 @@ const U = {
|
|
|
3050
3056
|
id: t.key,
|
|
3051
3057
|
key: t.key,
|
|
3052
3058
|
"data-adjacent": o,
|
|
3053
|
-
className:
|
|
3059
|
+
className: g(U[le], {
|
|
3054
3060
|
[U[`${le}__custom`]]: t == null ? void 0 : t.customElement
|
|
3055
3061
|
}),
|
|
3056
3062
|
onClick: () => c(t)
|
|
@@ -3076,11 +3082,11 @@ const U = {
|
|
|
3076
3082
|
onSelect: n,
|
|
3077
3083
|
onSelectAll: s
|
|
3078
3084
|
}) => {
|
|
3079
|
-
const d =
|
|
3085
|
+
const d = g(U[Qt], {
|
|
3080
3086
|
[U[`${Qt}__no-results`]]: a.length === 0
|
|
3081
3087
|
}), [i, m] = e.useState(
|
|
3082
3088
|
null
|
|
3083
|
-
), u = e.useRef(-1),
|
|
3089
|
+
), u = e.useRef(-1), f = e.useRef(0), v = e.useRef(null), [b, p] = e.useState({}), y = (S) => {
|
|
3084
3090
|
if (S.key === L.esc && (S.preventDefault(), c()), S.key === L.arrowUp && u.current > 0 && (S.preventDefault(), u.current = E(), m(a[u.current].key)), S.key === L.arrowDown && u.current + 1 < a.length && (S.preventDefault(), u.current = N(), m(a[u.current].key)), S.key === L.enter && !a[u.current].disabled) {
|
|
3085
3091
|
if (S.preventDefault(), a[u.current].key === qe)
|
|
3086
3092
|
return s();
|
|
@@ -3090,24 +3096,24 @@ const U = {
|
|
|
3090
3096
|
e.useEffect(() => {
|
|
3091
3097
|
if (u.current > -1 && a.length > 0 && a[u.current] && m(a[u.current].key), t)
|
|
3092
3098
|
return document.addEventListener("keydown", y), () => document.removeEventListener("keydown", y);
|
|
3093
|
-
u.current = -1,
|
|
3099
|
+
u.current = -1, f.current = 0, m(null);
|
|
3094
3100
|
}, [a, t, y]), e.useEffect(() => {
|
|
3095
3101
|
p(Z_(a, r));
|
|
3096
3102
|
}, [r, a]);
|
|
3097
3103
|
const h = (S) => !!a[S] && (a[S].disabled || a[S].groupHeader), E = () => {
|
|
3098
3104
|
for (u.current = u.current - 1; h(u.current) && (u.current = u.current - 1, !!h(u.current)); )
|
|
3099
3105
|
;
|
|
3100
|
-
return
|
|
3106
|
+
return f.current = u.current, u.current;
|
|
3101
3107
|
}, N = () => {
|
|
3102
3108
|
if (u.current = u.current + 1, !h(u.current))
|
|
3103
|
-
return
|
|
3109
|
+
return f.current = u.current, u.current;
|
|
3104
3110
|
for (; h(u.current); ) {
|
|
3105
3111
|
if (u.current = u.current + 1, u.current === a.length && !h(u.current))
|
|
3106
|
-
return
|
|
3112
|
+
return f.current;
|
|
3107
3113
|
if (!h(u.current))
|
|
3108
3114
|
break;
|
|
3109
3115
|
}
|
|
3110
|
-
return
|
|
3116
|
+
return f.current = u.current, u.current;
|
|
3111
3117
|
}, $ = () => s(), k = (S) => r ? r.includes(S) : !1, C = () => !l || l && !_ ? null : /* @__PURE__ */ e.createElement(
|
|
3112
3118
|
"li",
|
|
3113
3119
|
{
|
|
@@ -3118,7 +3124,7 @@ const U = {
|
|
|
3118
3124
|
"aria-current": i === qe,
|
|
3119
3125
|
id: qe,
|
|
3120
3126
|
key: qe,
|
|
3121
|
-
className:
|
|
3127
|
+
className: g(
|
|
3122
3128
|
U[Sa],
|
|
3123
3129
|
U[`${Sa}--select-all`]
|
|
3124
3130
|
),
|
|
@@ -3178,7 +3184,7 @@ const U = {
|
|
|
3178
3184
|
onClear: m,
|
|
3179
3185
|
testId: u
|
|
3180
3186
|
}) => {
|
|
3181
|
-
const
|
|
3187
|
+
const f = e.useRef(null), v = g(
|
|
3182
3188
|
K[J],
|
|
3183
3189
|
K[`${J}--${s}`],
|
|
3184
3190
|
n && K[`${J}--multi-select`],
|
|
@@ -3189,7 +3195,7 @@ const U = {
|
|
|
3189
3195
|
);
|
|
3190
3196
|
e.useEffect(() => {
|
|
3191
3197
|
const h = (E) => {
|
|
3192
|
-
document.activeElement ===
|
|
3198
|
+
document.activeElement === f.current && E.key !== L.tab && i(E);
|
|
3193
3199
|
};
|
|
3194
3200
|
return a || document.addEventListener("keydown", h), () => {
|
|
3195
3201
|
a || document.removeEventListener("keydown", h);
|
|
@@ -3203,7 +3209,7 @@ const U = {
|
|
|
3203
3209
|
return /* @__PURE__ */ e.createElement(
|
|
3204
3210
|
"div",
|
|
3205
3211
|
{
|
|
3206
|
-
ref:
|
|
3212
|
+
ref: f,
|
|
3207
3213
|
className: v,
|
|
3208
3214
|
onClick: b,
|
|
3209
3215
|
tabIndex: 0,
|
|
@@ -3212,7 +3218,7 @@ const U = {
|
|
|
3212
3218
|
/* @__PURE__ */ e.createElement(
|
|
3213
3219
|
"div",
|
|
3214
3220
|
{
|
|
3215
|
-
className:
|
|
3221
|
+
className: g(
|
|
3216
3222
|
K[`${J}__content`],
|
|
3217
3223
|
K[`${J}__content--${s}`],
|
|
3218
3224
|
n && _ && K[`${J}__content--with-items`]
|
|
@@ -3223,7 +3229,7 @@ const U = {
|
|
|
3223
3229
|
/* @__PURE__ */ e.createElement(
|
|
3224
3230
|
"div",
|
|
3225
3231
|
{
|
|
3226
|
-
className:
|
|
3232
|
+
className: g(
|
|
3227
3233
|
K[`${J}__controls`],
|
|
3228
3234
|
K[`${J}__controls--${s}`]
|
|
3229
3235
|
)
|
|
@@ -3270,7 +3276,7 @@ const U = {
|
|
|
3270
3276
|
"tag__node--right": "lc-Tag-module__tag__node--right___pGYuU",
|
|
3271
3277
|
tag__content: oo
|
|
3272
3278
|
}, ne = "tag", lo = (t) => t ? ra(t, "#FFFFFF") > 4.5 ? "text-white" : "text-black" : "", qa = (u) => {
|
|
3273
|
-
var
|
|
3279
|
+
var f = u, {
|
|
3274
3280
|
className: t = "",
|
|
3275
3281
|
children: a,
|
|
3276
3282
|
dismissible: r = !1,
|
|
@@ -3282,7 +3288,7 @@ const U = {
|
|
|
3282
3288
|
leftNode: s,
|
|
3283
3289
|
rightNode: d,
|
|
3284
3290
|
customColor: i
|
|
3285
|
-
} =
|
|
3291
|
+
} = f, m = B(f, [
|
|
3286
3292
|
"className",
|
|
3287
3293
|
"children",
|
|
3288
3294
|
"dismissible",
|
|
@@ -3295,7 +3301,7 @@ const U = {
|
|
|
3295
3301
|
"rightNode",
|
|
3296
3302
|
"customColor"
|
|
3297
3303
|
]);
|
|
3298
|
-
const v =
|
|
3304
|
+
const v = g(
|
|
3299
3305
|
ce[ne],
|
|
3300
3306
|
t,
|
|
3301
3307
|
ce[`${ne}--${o}`],
|
|
@@ -3338,7 +3344,7 @@ const U = {
|
|
|
3338
3344
|
"div",
|
|
3339
3345
|
{
|
|
3340
3346
|
"data-testid": "lc-tag-right-node",
|
|
3341
|
-
className:
|
|
3347
|
+
className: g(ce[`${ne}__node--right`]),
|
|
3342
3348
|
style: { color: p() }
|
|
3343
3349
|
},
|
|
3344
3350
|
d
|
|
@@ -3394,7 +3400,7 @@ const U = {
|
|
|
3394
3400
|
e.useEffect(() => {
|
|
3395
3401
|
n && (i(""), u.current && (u.current.value = "", u.current.focus()));
|
|
3396
3402
|
}, [_, n]);
|
|
3397
|
-
const
|
|
3403
|
+
const f = (p) => l === "single" && t && !a ? null : p != null && p.customElement ? /* @__PURE__ */ e.createElement("div", { className: se[`${ie}__item`] }, p.customElement.selectedItemBody) : /* @__PURE__ */ e.createElement("div", { className: se[`${ie}__item`] }, p.icon && /* @__PURE__ */ e.createElement(
|
|
3398
3404
|
D,
|
|
3399
3405
|
{
|
|
3400
3406
|
source: p.icon,
|
|
@@ -3413,7 +3419,7 @@ const U = {
|
|
|
3413
3419
|
"input",
|
|
3414
3420
|
{
|
|
3415
3421
|
ref: u,
|
|
3416
|
-
className:
|
|
3422
|
+
className: g(
|
|
3417
3423
|
se[`${ie}__input`],
|
|
3418
3424
|
se[`${ie}__input--${s}`]
|
|
3419
3425
|
),
|
|
@@ -3422,11 +3428,11 @@ const U = {
|
|
|
3422
3428
|
autoFocus: !0
|
|
3423
3429
|
}
|
|
3424
3430
|
);
|
|
3425
|
-
return !_ || _.length === 0 ? m ? b() : /* @__PURE__ */ e.createElement("div", null, o) : /* @__PURE__ */ e.createElement("div", { className: se[ie] }, /* @__PURE__ */ e.createElement("div", { className: se[`${ie}__item-container`] }, l === "single" ?
|
|
3431
|
+
return !_ || _.length === 0 ? m ? b() : /* @__PURE__ */ e.createElement("div", null, o) : /* @__PURE__ */ e.createElement("div", { className: se[ie] }, /* @__PURE__ */ e.createElement("div", { className: se[`${ie}__item-container`] }, l === "single" ? f(_[0]) : _.map((p) => /* @__PURE__ */ e.createElement(
|
|
3426
3432
|
qa,
|
|
3427
3433
|
{
|
|
3428
3434
|
key: p.name,
|
|
3429
|
-
className:
|
|
3435
|
+
className: g(
|
|
3430
3436
|
se[`${ie}__tag`],
|
|
3431
3437
|
se[`${ie}__tag--${s}`]
|
|
3432
3438
|
),
|
|
@@ -3434,7 +3440,7 @@ const U = {
|
|
|
3434
3440
|
dismissible: !r,
|
|
3435
3441
|
onRemove: () => d(p)
|
|
3436
3442
|
},
|
|
3437
|
-
|
|
3443
|
+
f(p)
|
|
3438
3444
|
))), m && b());
|
|
3439
3445
|
}, no = "lc-Picker-module__picker___GRj9W", so = "lc-Picker-module__picker__container___s0PUc", Ta = {
|
|
3440
3446
|
picker: no,
|
|
@@ -3454,7 +3460,7 @@ const U = {
|
|
|
3454
3460
|
selectAllOptionText: i,
|
|
3455
3461
|
type: m = "single",
|
|
3456
3462
|
searchDisabled: u = !1,
|
|
3457
|
-
hideClearButton:
|
|
3463
|
+
hideClearButton: f,
|
|
3458
3464
|
openedOnInit: v = !1,
|
|
3459
3465
|
clearSearchAfterSelection: b,
|
|
3460
3466
|
onSelect: p
|
|
@@ -3477,7 +3483,7 @@ const U = {
|
|
|
3477
3483
|
"clearSearchAfterSelection",
|
|
3478
3484
|
"onSelect"
|
|
3479
3485
|
]);
|
|
3480
|
-
const [N, $] = e.useState(v), [k, C] = e.useState(null), S = e.useRef(null), V =
|
|
3486
|
+
const [N, $] = e.useState(v), [k, C] = e.useState(null), S = e.useRef(null), V = g(Ta[Da], t);
|
|
3481
3487
|
e.useEffect(() => {
|
|
3482
3488
|
if (N) {
|
|
3483
3489
|
const F = (te) => {
|
|
@@ -3541,7 +3547,7 @@ const U = {
|
|
|
3541
3547
|
isRequired: s,
|
|
3542
3548
|
isMultiSelect: m === "multi",
|
|
3543
3549
|
size: l,
|
|
3544
|
-
hideClearButton:
|
|
3550
|
+
hideClearButton: f,
|
|
3545
3551
|
onTrigger: ee,
|
|
3546
3552
|
onClear: Ze
|
|
3547
3553
|
},
|
|
@@ -3618,16 +3624,16 @@ const it = {
|
|
|
3618
3624
|
"className",
|
|
3619
3625
|
"size"
|
|
3620
3626
|
]);
|
|
3621
|
-
const s = ja(t, a), d = Ja(s, a), i = mo[o], m = po[o], u =
|
|
3627
|
+
const s = ja(t, a), d = Ja(s, a), i = mo[o], m = po[o], u = g(
|
|
3622
3628
|
it[dt],
|
|
3623
3629
|
{
|
|
3624
3630
|
[it[`${dt}--${o}`]]: o,
|
|
3625
3631
|
[it[`${dt}--${t}`]]: t
|
|
3626
3632
|
},
|
|
3627
3633
|
r
|
|
3628
|
-
),
|
|
3629
|
-
strokeDasharray:
|
|
3630
|
-
strokeDashoffset: `${((100 - d) / 100 *
|
|
3634
|
+
), f = 2 * Math.PI * ((m - i) / 2), v = {
|
|
3635
|
+
strokeDasharray: f.toFixed(3),
|
|
3636
|
+
strokeDashoffset: `${((100 - d) / 100 * f).toFixed(3)}px`
|
|
3631
3637
|
}, b = `${m / 2} ${m / 2} ${m} ${m}`;
|
|
3632
3638
|
return /* @__PURE__ */ e.createElement(
|
|
3633
3639
|
"div",
|
|
@@ -3683,7 +3689,7 @@ const it = {
|
|
|
3683
3689
|
"size",
|
|
3684
3690
|
"className"
|
|
3685
3691
|
]);
|
|
3686
|
-
const s = ja(t, a), d = Ja(s, a), i =
|
|
3692
|
+
const s = ja(t, a), d = Ja(s, a), i = g(
|
|
3687
3693
|
Tt[Dt],
|
|
3688
3694
|
{
|
|
3689
3695
|
[Tt[`${Dt}--${r}`]]: r,
|
|
@@ -3731,7 +3737,7 @@ const it = {
|
|
|
3731
3737
|
onClose: s,
|
|
3732
3738
|
onLinkClick: d
|
|
3733
3739
|
}) => {
|
|
3734
|
-
const i = e.useRef(null), [m, u] = e.useState("medium"),
|
|
3740
|
+
const i = e.useRef(null), [m, u] = e.useState("medium"), f = g(
|
|
3735
3741
|
de[ue],
|
|
3736
3742
|
{
|
|
3737
3743
|
[de[`${ue}--light`]]: l,
|
|
@@ -3759,7 +3765,7 @@ const it = {
|
|
|
3759
3765
|
},
|
|
3760
3766
|
a
|
|
3761
3767
|
), c && /* @__PURE__ */ e.createElement(M, { size: "compact", kind: "text", onClick: d }, c));
|
|
3762
|
-
return /* @__PURE__ */ e.createElement("div", { ref: i, className:
|
|
3768
|
+
return /* @__PURE__ */ e.createElement("div", { ref: i, className: f }, /* @__PURE__ */ e.createElement("div", { className: de[`${ue}__content`] }, _ && /* @__PURE__ */ e.createElement("img", { src: _, className: de[`${ue}__img`] }), /* @__PURE__ */ e.createElement("div", { className: de[`${ue}__wrapper`] }, /* @__PURE__ */ e.createElement("div", { className: de[`${ue}__header`] }, o), /* @__PURE__ */ e.createElement(P, { as: "div" }, r), m !== "large" && v), m === "large" && v), s && /* @__PURE__ */ e.createElement(
|
|
3763
3769
|
"button",
|
|
3764
3770
|
{
|
|
3765
3771
|
type: "button",
|
|
@@ -3785,7 +3791,7 @@ const it = {
|
|
|
3785
3791
|
secondaryButton: _,
|
|
3786
3792
|
onClose: l
|
|
3787
3793
|
}) => {
|
|
3788
|
-
const c =
|
|
3794
|
+
const c = g(De[ze], a);
|
|
3789
3795
|
return /* @__PURE__ */ e.createElement("div", { className: De["main-wrapper"] }, /* @__PURE__ */ e.createElement("div", { role: "banner", className: c }, /* @__PURE__ */ e.createElement("div", { className: De[`${ze}__content`] }, t, (o || _) && /* @__PURE__ */ e.createElement("div", { className: De[`${ze}__content__cta`] }, o && /* @__PURE__ */ e.createElement(
|
|
3790
3796
|
M,
|
|
3791
3797
|
{
|
|
@@ -3824,7 +3830,7 @@ const it = {
|
|
|
3824
3830
|
}, we = "radio-button", zl = e.forwardRef(
|
|
3825
3831
|
(n, c) => {
|
|
3826
3832
|
var s = n, { children: t, className: a = "", description: r, checked: o, disabled: _ } = s, l = B(s, ["children", "className", "description", "checked", "disabled"]);
|
|
3827
|
-
const d =
|
|
3833
|
+
const d = g($e[we], a, {
|
|
3828
3834
|
[$e[`${we}--selected`]]: o,
|
|
3829
3835
|
[$e[`${we}--disabled`]]: _
|
|
3830
3836
|
});
|
|
@@ -3862,7 +3868,7 @@ const it = {
|
|
|
3862
3868
|
className: c,
|
|
3863
3869
|
onChange: n
|
|
3864
3870
|
}) => {
|
|
3865
|
-
const [s, d] = e.useState(!0), [i, m] = e.useState(!1), u = e.useRef(null),
|
|
3871
|
+
const [s, d] = e.useState(!0), [i, m] = e.useState(!1), u = e.useRef(null), f = !!l && !a && !r, v = t && !s && "true", b = g(
|
|
3866
3872
|
c,
|
|
3867
3873
|
he[pe],
|
|
3868
3874
|
he[`${pe}--${_}`],
|
|
@@ -3922,7 +3928,7 @@ const it = {
|
|
|
3922
3928
|
disabled: a
|
|
3923
3929
|
}
|
|
3924
3930
|
),
|
|
3925
|
-
|
|
3931
|
+
f && /* @__PURE__ */ e.createElement(
|
|
3926
3932
|
M,
|
|
3927
3933
|
{
|
|
3928
3934
|
"aria-label": "Clear search",
|
|
@@ -3995,19 +4001,19 @@ const it = {
|
|
|
3995
4001
|
"innerRef",
|
|
3996
4002
|
"ariaLabel"
|
|
3997
4003
|
]);
|
|
3998
|
-
const [
|
|
4004
|
+
const [f, v] = e.useState(
|
|
3999
4005
|
() => _ !== void 0 ? _ : a
|
|
4000
4006
|
);
|
|
4001
4007
|
e.useEffect(() => {
|
|
4002
4008
|
_ !== void 0 && v(_);
|
|
4003
4009
|
}, [_]);
|
|
4004
|
-
const b = n === "loading", p = n === "locked", y = c === "large" ? "small" : "xsmall", h =
|
|
4010
|
+
const b = n === "loading", p = n === "locked", y = c === "large" ? "small" : "xsmall", h = f ? "on" : "off", E = r || b || p, N = E ? "disabled" : "enabled", $ = g(
|
|
4005
4011
|
Z[j],
|
|
4006
4012
|
Z[`${j}--${c}`],
|
|
4007
4013
|
t
|
|
4008
4014
|
), k = (C) => {
|
|
4009
4015
|
if (l !== Zt) {
|
|
4010
|
-
l(C,
|
|
4016
|
+
l(C, f);
|
|
4011
4017
|
return;
|
|
4012
4018
|
}
|
|
4013
4019
|
C.stopPropagation(), v((V) => !V);
|
|
@@ -4016,12 +4022,12 @@ const it = {
|
|
|
4016
4022
|
"input",
|
|
4017
4023
|
w({
|
|
4018
4024
|
type: "checkbox",
|
|
4019
|
-
className:
|
|
4025
|
+
className: g(
|
|
4020
4026
|
Z[`${j}__input`],
|
|
4021
4027
|
Z[`${j}__input--${N}`]
|
|
4022
4028
|
),
|
|
4023
4029
|
onChange: k,
|
|
4024
|
-
checked:
|
|
4030
|
+
checked: f,
|
|
4025
4031
|
name: o,
|
|
4026
4032
|
ref: s,
|
|
4027
4033
|
disabled: E,
|
|
@@ -4030,7 +4036,7 @@ const it = {
|
|
|
4030
4036
|
), /* @__PURE__ */ e.createElement("span", { className: Z[`${j}__container`] }, /* @__PURE__ */ e.createElement(
|
|
4031
4037
|
"span",
|
|
4032
4038
|
{
|
|
4033
|
-
className:
|
|
4039
|
+
className: g(
|
|
4034
4040
|
Z[`${j}__track`],
|
|
4035
4041
|
Z[`${j}__track--${h}`],
|
|
4036
4042
|
Z[`${j}__track--${N}`]
|
|
@@ -4039,7 +4045,7 @@ const it = {
|
|
|
4039
4045
|
), /* @__PURE__ */ e.createElement(
|
|
4040
4046
|
"span",
|
|
4041
4047
|
{
|
|
4042
|
-
className:
|
|
4048
|
+
className: g(
|
|
4043
4049
|
Z[`${j}__slider`],
|
|
4044
4050
|
Z[`${j}__slider--${c}`],
|
|
4045
4051
|
Z[`${j}__slider--${c}--${h}`]
|
|
@@ -4048,7 +4054,7 @@ const it = {
|
|
|
4048
4054
|
b && /* @__PURE__ */ e.createElement(
|
|
4049
4055
|
_a,
|
|
4050
4056
|
{
|
|
4051
|
-
className:
|
|
4057
|
+
className: g(
|
|
4052
4058
|
Z[`${j}__loader`],
|
|
4053
4059
|
Z[`${j}__loader--${c}`]
|
|
4054
4060
|
)
|
|
@@ -4097,7 +4103,7 @@ const it = {
|
|
|
4097
4103
|
as: c.href ? "a" : "button",
|
|
4098
4104
|
size: "md",
|
|
4099
4105
|
bold: o,
|
|
4100
|
-
className:
|
|
4106
|
+
className: g(
|
|
4101
4107
|
a,
|
|
4102
4108
|
Ve[Ye],
|
|
4103
4109
|
Ve[`${Ye}--${l}`],
|
|
@@ -4123,10 +4129,10 @@ const it = {
|
|
|
4123
4129
|
}, Za = "tabs", Wl = ({
|
|
4124
4130
|
className: t,
|
|
4125
4131
|
children: a
|
|
4126
|
-
}) => /* @__PURE__ */ e.createElement("div", { className:
|
|
4132
|
+
}) => /* @__PURE__ */ e.createElement("div", { className: g(Ka[Za], t) }, a), Vl = ({
|
|
4127
4133
|
className: t,
|
|
4128
4134
|
children: a
|
|
4129
|
-
}) => /* @__PURE__ */ e.createElement("div", { className:
|
|
4135
|
+
}) => /* @__PURE__ */ e.createElement("div", { className: g(Ka[`${Za}__list`], t) }, a), Ao = ({
|
|
4130
4136
|
className: t = "",
|
|
4131
4137
|
innerEditableRef: a,
|
|
4132
4138
|
inputRef: r,
|
|
@@ -4154,7 +4160,7 @@ const it = {
|
|
|
4154
4160
|
}
|
|
4155
4161
|
o(v.innerText);
|
|
4156
4162
|
}
|
|
4157
|
-
},
|
|
4163
|
+
}, f = (v) => {
|
|
4158
4164
|
v.preventDefault();
|
|
4159
4165
|
const b = v.clipboardData.getData("text/plain");
|
|
4160
4166
|
document.execCommand("insertHTML", !1, ia(b));
|
|
@@ -4165,7 +4171,7 @@ const it = {
|
|
|
4165
4171
|
ref: a,
|
|
4166
4172
|
className: t,
|
|
4167
4173
|
contentEditable: !0,
|
|
4168
|
-
onPaste:
|
|
4174
|
+
onPaste: f,
|
|
4169
4175
|
onBlur: u,
|
|
4170
4176
|
onKeyDown: m,
|
|
4171
4177
|
dangerouslySetInnerHTML: { __html: ia(l) }
|
|
@@ -4233,17 +4239,17 @@ const it = {
|
|
|
4233
4239
|
"placeholder",
|
|
4234
4240
|
"size"
|
|
4235
4241
|
]);
|
|
4236
|
-
const i =
|
|
4242
|
+
const i = g(pt[It], {
|
|
4237
4243
|
[pt[`${It}--error`]]: _
|
|
4238
|
-
}), m =
|
|
4244
|
+
}), m = g(
|
|
4239
4245
|
pt[`${It}__input`],
|
|
4240
4246
|
pt[`${It}__input--${c}`]
|
|
4241
|
-
), [u,
|
|
4242
|
-
r([...a || [], $]),
|
|
4247
|
+
), [u, f] = e.useState(""), v = e.useRef(null), b = ($) => {
|
|
4248
|
+
r([...a || [], $]), f("");
|
|
4243
4249
|
}, p = ($) => {
|
|
4244
4250
|
const k = [...a || []];
|
|
4245
4251
|
k.splice($, 1), r(k);
|
|
4246
|
-
}, y = ($) =>
|
|
4252
|
+
}, y = ($) => f($.target.value), h = ($) => {
|
|
4247
4253
|
if (Fo.includes($.key)) {
|
|
4248
4254
|
if ($.preventDefault(), u === "")
|
|
4249
4255
|
return;
|
|
@@ -4366,7 +4372,7 @@ const it = {
|
|
|
4366
4372
|
"kind",
|
|
4367
4373
|
"onClose"
|
|
4368
4374
|
]);
|
|
4369
|
-
const d =
|
|
4375
|
+
const d = g(
|
|
4370
4376
|
W[Ie],
|
|
4371
4377
|
W[`${Ie}--${_}`],
|
|
4372
4378
|
a
|
|
@@ -4383,7 +4389,7 @@ const it = {
|
|
|
4383
4389
|
), o && /* @__PURE__ */ e.createElement(
|
|
4384
4390
|
M,
|
|
4385
4391
|
{
|
|
4386
|
-
className:
|
|
4392
|
+
className: g(
|
|
4387
4393
|
W[`${Ie}__actions__button`],
|
|
4388
4394
|
W[`${Ie}__actions__button--${_}`]
|
|
4389
4395
|
),
|
|
@@ -4403,7 +4409,7 @@ const it = {
|
|
|
4403
4409
|
verticalPosition: l = "top",
|
|
4404
4410
|
horizontalPosition: c = "center"
|
|
4405
4411
|
}) => {
|
|
4406
|
-
const n =
|
|
4412
|
+
const n = g(
|
|
4407
4413
|
W[ut],
|
|
4408
4414
|
{
|
|
4409
4415
|
[W[`${ut}--fixed`]]: r,
|
|
@@ -4413,7 +4419,7 @@ const it = {
|
|
|
4413
4419
|
},
|
|
4414
4420
|
t
|
|
4415
4421
|
);
|
|
4416
|
-
return /* @__PURE__ */ e.createElement("div", { className: n }, /* @__PURE__ */ e.createElement(La, { component: null }, a.map(({ id: s, kind: d, content: i, removable: m, action: u, onClose:
|
|
4422
|
+
return /* @__PURE__ */ e.createElement("div", { className: n }, /* @__PURE__ */ e.createElement(La, { component: null }, a.map(({ id: s, kind: d, content: i, removable: m, action: u, onClose: f }) => /* @__PURE__ */ e.createElement(
|
|
4417
4423
|
aa,
|
|
4418
4424
|
{
|
|
4419
4425
|
key: s,
|
|
@@ -4429,7 +4435,7 @@ const it = {
|
|
|
4429
4435
|
Yo,
|
|
4430
4436
|
{
|
|
4431
4437
|
kind: d,
|
|
4432
|
-
onClose:
|
|
4438
|
+
onClose: f,
|
|
4433
4439
|
removable: m,
|
|
4434
4440
|
action: u
|
|
4435
4441
|
},
|
|
@@ -4444,20 +4450,20 @@ const it = {
|
|
|
4444
4450
|
}, Bt = "textarea", Jl = e.forwardRef(
|
|
4445
4451
|
(_, o) => {
|
|
4446
4452
|
var l = _, { className: t, error: a } = l, r = B(l, ["className", "error"]);
|
|
4447
|
-
const { disabled: c, onBlur: n, onFocus: s } = r, [d, i] = e.useState(!1), m =
|
|
4453
|
+
const { disabled: c, onBlur: n, onFocus: s } = r, [d, i] = e.useState(!1), m = g(t, At[Bt], {
|
|
4448
4454
|
[At[`${Bt}--disabled`]]: c,
|
|
4449
4455
|
[At[`${Bt}--focused`]]: d,
|
|
4450
4456
|
[At[`${Bt}--error`]]: a
|
|
4451
4457
|
}), u = (v) => {
|
|
4452
4458
|
i(!1), n == null || n(v);
|
|
4453
|
-
},
|
|
4459
|
+
}, f = (v) => {
|
|
4454
4460
|
i(!0), s == null || s(v);
|
|
4455
4461
|
};
|
|
4456
4462
|
return /* @__PURE__ */ e.createElement("div", { className: m }, /* @__PURE__ */ e.createElement(
|
|
4457
4463
|
"textarea",
|
|
4458
4464
|
A(w({}, r), {
|
|
4459
4465
|
ref: o,
|
|
4460
|
-
onFocus:
|
|
4466
|
+
onFocus: f,
|
|
4461
4467
|
onBlur: u
|
|
4462
4468
|
})
|
|
4463
4469
|
));
|
|
@@ -4509,7 +4515,7 @@ const it = {
|
|
|
4509
4515
|
}, d) => /* @__PURE__ */ e.createElement("div", { className: me[Ce], ref: d }, r && c !== "success" && /* @__PURE__ */ e.createElement("div", { className: me[`${Ce}__icon`] }, r), c === "success" && /* @__PURE__ */ e.createElement(
|
|
4510
4516
|
"div",
|
|
4511
4517
|
{
|
|
4512
|
-
className:
|
|
4518
|
+
className: g(
|
|
4513
4519
|
me[`${Ce}__icon`],
|
|
4514
4520
|
me[`${Ce}__icon--success`]
|
|
4515
4521
|
)
|
|
@@ -4518,14 +4524,14 @@ const it = {
|
|
|
4518
4524
|
), /* @__PURE__ */ e.createElement(
|
|
4519
4525
|
"div",
|
|
4520
4526
|
{
|
|
4521
|
-
className:
|
|
4527
|
+
className: g(me[`${Ce}__wrapper`], {
|
|
4522
4528
|
[me[`${Ce}__wrapper--with-icon`]]: r
|
|
4523
4529
|
})
|
|
4524
4530
|
},
|
|
4525
4531
|
/* @__PURE__ */ e.createElement("div", { className: me[`${Ce}__wrapper__header`] }, o && /* @__PURE__ */ e.createElement(
|
|
4526
4532
|
"div",
|
|
4527
4533
|
{
|
|
4528
|
-
className:
|
|
4534
|
+
className: g(me[qt], {
|
|
4529
4535
|
[me[`${qt}--success`]]: c === "success",
|
|
4530
4536
|
[me[`${qt}--error`]]: c === "error"
|
|
4531
4537
|
})
|
|
@@ -4536,7 +4542,7 @@ const it = {
|
|
|
4536
4542
|
), t !== "hidden" && /* @__PURE__ */ e.createElement(
|
|
4537
4543
|
"div",
|
|
4538
4544
|
{
|
|
4539
|
-
className:
|
|
4545
|
+
className: g({
|
|
4540
4546
|
[me[`${Ce}__wrapper__header__actions`]]: t === "hover"
|
|
4541
4547
|
})
|
|
4542
4548
|
},
|
|
@@ -4601,10 +4607,10 @@ const it = {
|
|
|
4601
4607
|
onCloseButtonClick: i,
|
|
4602
4608
|
onRetryButtonClick: m
|
|
4603
4609
|
}) => {
|
|
4604
|
-
const [u,
|
|
4610
|
+
const [u, f] = e.useState(_ || !1), v = c === "error", b = c === "success", p = g(R[Q], a, {
|
|
4605
4611
|
[R[`${Q}--error`]]: v,
|
|
4606
4612
|
[R[`${Q}--success`]]: b
|
|
4607
|
-
}), y = !(v && (m || i)), h = () =>
|
|
4613
|
+
}), y = !(v && (m || i)), h = () => f(!u);
|
|
4608
4614
|
return d === "single" ? /* @__PURE__ */ e.createElement("div", { className: p }, /* @__PURE__ */ e.createElement("div", { className: R[`${Q}__wrapper`] }, /* @__PURE__ */ e.createElement("div", { className: R[`${Ne}`] }, /* @__PURE__ */ e.createElement(
|
|
4609
4615
|
jo,
|
|
4610
4616
|
{
|