@livechat/design-system-react-components 1.0.0-beta.7 → 1.0.0-beta.9
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/components/Avatar/Avatar.helpers.d.ts +1 -1
- package/dist/dsrc.cjs.js +2 -2
- package/dist/dsrc.es.js +370 -354
- package/dist/dsrc.umd.js +2 -2
- package/dist/preview-stats.json +580 -580
- package/dist/stories/components/Radius.d.ts +2 -0
- package/dist/stories/components/RadiusExamples.d.ts +2 -0
- 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";
|
|
@@ -31,7 +31,7 @@ import { Close as Oa, DoubleArrowLeft as mr, ChevronLeft as pr, ChevronRight as
|
|
|
31
31
|
import za from "lodash.debounce";
|
|
32
32
|
import { getContrast as ra } from "polished";
|
|
33
33
|
import br from "react-day-picker";
|
|
34
|
-
import { subMonths as
|
|
34
|
+
import { subMonths as Ke, differenceInCalendarMonths as na, addMonths as sa, isSameMonth as Jt, isSameDay as Kt, isAfter as jt, differenceInCalendarDays as Ha } from "date-fns";
|
|
35
35
|
import * as vr from "react-dom";
|
|
36
36
|
import ia from "lodash.escape";
|
|
37
37
|
const dl = {
|
|
@@ -363,7 +363,7 @@ const dl = {
|
|
|
363
363
|
md: "h3",
|
|
364
364
|
sm: "h4",
|
|
365
365
|
xs: "h5"
|
|
366
|
-
},
|
|
366
|
+
}, je = (l) => {
|
|
367
367
|
var c = l, {
|
|
368
368
|
as: t,
|
|
369
369
|
size: a = "md",
|
|
@@ -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,
|
|
@@ -466,25 +466,25 @@ const dl = {
|
|
|
466
466
|
}, [n]), e.useEffect(() => {
|
|
467
467
|
a && m.current !== d && !d && a(), m.current = d;
|
|
468
468
|
}, [d]), e.useEffect(() => {
|
|
469
|
-
const
|
|
469
|
+
const x = (V) => {
|
|
470
470
|
s && V.key === "Escape" && i(!1);
|
|
471
471
|
};
|
|
472
|
-
return document.addEventListener("keydown",
|
|
473
|
-
document.removeEventListener("keydown",
|
|
472
|
+
return document.addEventListener("keydown", x), () => {
|
|
473
|
+
document.removeEventListener("keydown", x);
|
|
474
474
|
};
|
|
475
475
|
}, [s]), e.useEffect(() => {
|
|
476
476
|
if (!(!h.reference.current || !h.floating.current))
|
|
477
477
|
return Ma(h.reference.current, h.floating.current, E);
|
|
478
478
|
}, [h.reference, h.floating, E, N, d]);
|
|
479
|
-
function $(
|
|
480
|
-
h.floating.current && h.floating.current.contains(
|
|
479
|
+
function $(x) {
|
|
480
|
+
h.floating.current && h.floating.current.contains(x.target) || (h.reference.current && h.reference.current.contains(x.target) ? i((V) => !V) : i(!1));
|
|
481
481
|
}
|
|
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
|
),
|
|
@@ -831,7 +837,7 @@ const dl = {
|
|
|
831
837
|
/* @__PURE__ */ e.createElement("div", { className: _e[`${oe}__content`] }, i)
|
|
832
838
|
);
|
|
833
839
|
}
|
|
834
|
-
), Fr = "lc-Tooltip-module__tooltip___QOOAr", Rr = "lc-Tooltip-module__tooltip__wrapper___dmjmW", Mr = "lc-Tooltip-module__tooltip__interactive___0JawB", Lr = "lc-Tooltip-module__tooltip__arrow___Ov1YW",
|
|
840
|
+
), Fr = "lc-Tooltip-module__tooltip___QOOAr", Rr = "lc-Tooltip-module__tooltip__wrapper___dmjmW", Mr = "lc-Tooltip-module__tooltip__interactive___0JawB", Lr = "lc-Tooltip-module__tooltip__arrow___Ov1YW", S = {
|
|
835
841
|
tooltip: Fr,
|
|
836
842
|
tooltip__wrapper: Rr,
|
|
837
843
|
tooltip__interactive: Mr,
|
|
@@ -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
|
|
@@ -889,19 +895,19 @@ const dl = {
|
|
|
889
895
|
strategy: $,
|
|
890
896
|
update: k,
|
|
891
897
|
refs: C,
|
|
892
|
-
placement:
|
|
898
|
+
placement: x,
|
|
893
899
|
middlewareData: { arrow: { x: V, y: ee } = {} }
|
|
894
900
|
} = a;
|
|
895
901
|
e.useEffect(() => {
|
|
896
902
|
if (!(!C.reference.current || !C.floating.current))
|
|
897
903
|
return Ma(C.reference.current, C.floating.current, k);
|
|
898
|
-
}, [C.reference, C.floating, k,
|
|
904
|
+
}, [C.reference, C.floating, k, x, 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 =
|
|
902
|
-
[
|
|
903
|
-
[
|
|
904
|
-
[
|
|
907
|
+
const Se = _ && ee ? ee + _ : ee, Ge = o && V ? V + o : V, Be = g(S[l], c, {
|
|
908
|
+
[S[`${l}--invert`]]: n === "invert",
|
|
909
|
+
[S[`${l}--important`]]: n === "important",
|
|
910
|
+
[S[`${l}--full-space`]]: p
|
|
905
911
|
}), Pe = /* @__PURE__ */ e.createElement(
|
|
906
912
|
"div",
|
|
907
913
|
{
|
|
@@ -916,15 +922,15 @@ 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:
|
|
927
|
-
"data-arrow-placement":
|
|
932
|
+
className: g([S[`${l}__arrow`]]),
|
|
933
|
+
"data-arrow-placement": x,
|
|
928
934
|
style: { top: Se, left: Ge }
|
|
929
935
|
}
|
|
930
936
|
)
|
|
@@ -993,13 +999,13 @@ 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,
|
|
1000
1006
|
onOpen: y,
|
|
1001
1007
|
onClose: h
|
|
1002
|
-
} = t, E = e.useRef(!0), N = n !== void 0, $ = e.useRef(null), [k, C] = e.useState(n),
|
|
1008
|
+
} = t, E = e.useRef(!0), N = n !== void 0, $ = e.useRef(null), [k, C] = e.useState(n), x = e.useRef(!1), V = Pa({
|
|
1003
1009
|
middleware: [
|
|
1004
1010
|
Fa({ mainAxis: u }),
|
|
1005
1011
|
dr({ element: $ }),
|
|
@@ -1019,10 +1025,10 @@ 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 || (x.current = !0, ee(!0));
|
|
1023
1029
|
}, Ge = () => {
|
|
1024
|
-
|
|
1025
|
-
|
|
1030
|
+
f || N || (x.current = !1, zr(m).then(() => {
|
|
1031
|
+
x.current || ee(!1);
|
|
1026
1032
|
}));
|
|
1027
1033
|
}, Be = (ge) => {
|
|
1028
1034
|
(ge instanceof KeyboardEvent && ge.key === "Escape" || ge.type === "click") && ee(!1);
|
|
@@ -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,
|
|
@@ -1064,7 +1070,7 @@ const zr = (t) => new Promise((a) => setTimeout(a, t)), pa = "tooltip", Wa = (t)
|
|
|
1064
1070
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
1065
1071
|
"div",
|
|
1066
1072
|
w({
|
|
1067
|
-
className:
|
|
1073
|
+
className: S[`${pa}__wrapper`],
|
|
1068
1074
|
ref: V.reference
|
|
1069
1075
|
}, Ee()),
|
|
1070
1076
|
a()
|
|
@@ -1074,7 +1080,7 @@ const zr = (t) => new Promise((a) => setTimeout(a, t)), pa = "tooltip", Wa = (t)
|
|
|
1074
1080
|
{
|
|
1075
1081
|
size: "compact",
|
|
1076
1082
|
kind: "plain",
|
|
1077
|
-
className:
|
|
1083
|
+
className: S[`${rt}-close`],
|
|
1078
1084
|
onClick: _,
|
|
1079
1085
|
icon: /* @__PURE__ */ e.createElement(
|
|
1080
1086
|
D,
|
|
@@ -1087,18 +1093,18 @@ 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:
|
|
1091
|
-
|
|
1092
|
-
|
|
1096
|
+
className: g(
|
|
1097
|
+
S[`${rt}-header`],
|
|
1098
|
+
S[`${rt}-header--info`]
|
|
1093
1099
|
)
|
|
1094
1100
|
},
|
|
1095
1101
|
t
|
|
1096
1102
|
), /* @__PURE__ */ e.createElement(
|
|
1097
1103
|
"div",
|
|
1098
1104
|
{
|
|
1099
|
-
className:
|
|
1100
|
-
|
|
1101
|
-
|
|
1105
|
+
className: g(
|
|
1106
|
+
S[`${rt}-text`],
|
|
1107
|
+
S[`${rt}-text--info`]
|
|
1102
1108
|
)
|
|
1103
1109
|
},
|
|
1104
1110
|
a
|
|
@@ -1113,10 +1119,10 @@ const zr = (t) => new Promise((a) => setTimeout(a, t)), pa = "tooltip", Wa = (t)
|
|
|
1113
1119
|
secondaryButton: n
|
|
1114
1120
|
}) => {
|
|
1115
1121
|
const s = (d) => d === "invert" ? "secondary" : "high-contrast";
|
|
1116
|
-
return /* @__PURE__ */ e.createElement("div", { className:
|
|
1122
|
+
return /* @__PURE__ */ e.createElement("div", { className: S[`${fe}__interactive`] }, o && /* @__PURE__ */ e.createElement(
|
|
1117
1123
|
M,
|
|
1118
1124
|
{
|
|
1119
|
-
className:
|
|
1125
|
+
className: S[`${fe}-close`],
|
|
1120
1126
|
size: "compact",
|
|
1121
1127
|
kind: "plain",
|
|
1122
1128
|
onClick: l,
|
|
@@ -1128,19 +1134,19 @@ const zr = (t) => new Promise((a) => setTimeout(a, t)), pa = "tooltip", Wa = (t)
|
|
|
1128
1134
|
}
|
|
1129
1135
|
)
|
|
1130
1136
|
}
|
|
1131
|
-
), r && /* @__PURE__ */ e.createElement("div", { className:
|
|
1137
|
+
), r && /* @__PURE__ */ e.createElement("div", { className: S[`${fe}-image-container`] }, /* @__PURE__ */ e.createElement(
|
|
1132
1138
|
"img",
|
|
1133
1139
|
{
|
|
1134
|
-
className:
|
|
1140
|
+
className: S[`${fe}-image`],
|
|
1135
1141
|
src: r.src,
|
|
1136
1142
|
alt: r.alt
|
|
1137
1143
|
}
|
|
1138
|
-
)), t && /* @__PURE__ */ e.createElement("div", { className:
|
|
1144
|
+
)), t && /* @__PURE__ */ e.createElement("div", { className: S[`${fe}-header`] }, t), /* @__PURE__ */ e.createElement("div", { className: S[`${fe}-text`] }, a), /* @__PURE__ */ e.createElement(
|
|
1139
1145
|
"div",
|
|
1140
1146
|
{
|
|
1141
|
-
className:
|
|
1142
|
-
|
|
1143
|
-
|
|
1147
|
+
className: g(
|
|
1148
|
+
S[`${fe}-footer`],
|
|
1149
|
+
S[`${fe}-footer--interactive`]
|
|
1144
1150
|
)
|
|
1145
1151
|
},
|
|
1146
1152
|
/* @__PURE__ */ e.createElement(
|
|
@@ -1154,8 +1160,8 @@ 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:
|
|
1158
|
-
[
|
|
1163
|
+
className: g(S[`${fe}-footer-secondary`], {
|
|
1164
|
+
[S[`${fe}-footer-secondary-invert`]]: _ === "invert"
|
|
1159
1165
|
}),
|
|
1160
1166
|
kind: n.kind || "text",
|
|
1161
1167
|
onClick: n.handleClick
|
|
@@ -1201,50 +1207,50 @@ 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:
|
|
1205
|
-
[
|
|
1206
|
-
[
|
|
1207
|
-
[
|
|
1210
|
+
className: g({
|
|
1211
|
+
[S[`${q}__overlay`]]: !0,
|
|
1212
|
+
[S[`${q}__overlay--visible`]]: a,
|
|
1213
|
+
[S[`${q}__overlay--slide`]]: r
|
|
1208
1214
|
}),
|
|
1209
1215
|
style: _
|
|
1210
1216
|
}
|
|
1211
1217
|
), /* @__PURE__ */ e.createElement(
|
|
1212
1218
|
"div",
|
|
1213
1219
|
{
|
|
1214
|
-
className:
|
|
1215
|
-
[
|
|
1216
|
-
[
|
|
1217
|
-
[
|
|
1220
|
+
className: g({
|
|
1221
|
+
[S[`${q}__overlay`]]: !0,
|
|
1222
|
+
[S[`${q}__overlay--visible`]]: a,
|
|
1223
|
+
[S[`${q}__overlay--slide`]]: r
|
|
1218
1224
|
}),
|
|
1219
1225
|
style: c
|
|
1220
1226
|
}
|
|
1221
1227
|
), /* @__PURE__ */ e.createElement(
|
|
1222
1228
|
"div",
|
|
1223
1229
|
{
|
|
1224
|
-
className:
|
|
1225
|
-
[
|
|
1226
|
-
[
|
|
1227
|
-
[
|
|
1230
|
+
className: g({
|
|
1231
|
+
[S[`${q}__overlay`]]: !0,
|
|
1232
|
+
[S[`${q}__overlay--visible`]]: a,
|
|
1233
|
+
[S[`${q}__overlay--slide`]]: r
|
|
1228
1234
|
}),
|
|
1229
1235
|
style: l
|
|
1230
1236
|
}
|
|
1231
1237
|
), /* @__PURE__ */ e.createElement(
|
|
1232
1238
|
"div",
|
|
1233
1239
|
{
|
|
1234
|
-
className:
|
|
1235
|
-
[
|
|
1236
|
-
[
|
|
1237
|
-
[
|
|
1240
|
+
className: g({
|
|
1241
|
+
[S[`${q}__overlay`]]: !0,
|
|
1242
|
+
[S[`${q}__overlay--visible`]]: a,
|
|
1243
|
+
[S[`${q}__overlay--slide`]]: r
|
|
1238
1244
|
}),
|
|
1239
1245
|
style: n
|
|
1240
1246
|
}
|
|
1241
1247
|
), o && /* @__PURE__ */ e.createElement(
|
|
1242
1248
|
"div",
|
|
1243
1249
|
{
|
|
1244
|
-
className:
|
|
1245
|
-
[
|
|
1246
|
-
[
|
|
1247
|
-
[
|
|
1250
|
+
className: g({
|
|
1251
|
+
[S[`${q}__overlay`]]: !0,
|
|
1252
|
+
[S[`${q}__overlay--visible`]]: a,
|
|
1253
|
+
[S[`${q}__overlay--slide`]]: r
|
|
1248
1254
|
}),
|
|
1249
1255
|
style: s
|
|
1250
1256
|
}
|
|
@@ -1328,9 +1334,9 @@ 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:
|
|
1332
|
-
[
|
|
1333
|
-
[
|
|
1337
|
+
className: g({
|
|
1338
|
+
[S[fa]]: !0,
|
|
1339
|
+
[S[`${fa}--slide`]]: d,
|
|
1334
1340
|
className: a
|
|
1335
1341
|
})
|
|
1336
1342
|
}),
|
|
@@ -1340,15 +1346,15 @@ const ga = 8, fa = "guide-tooltip", ba = (t, a) => new Gr(t, a), hl = (t) => {
|
|
|
1340
1346
|
title: t,
|
|
1341
1347
|
description: a,
|
|
1342
1348
|
children: r
|
|
1343
|
-
}) => /* @__PURE__ */ e.createElement("div", { className:
|
|
1349
|
+
}) => /* @__PURE__ */ e.createElement("div", { className: S[_t] }, /* @__PURE__ */ e.createElement("div", { className: S[`${_t}__heading`] }, /* @__PURE__ */ e.createElement(P, { as: "div", className: S[`${_t}__heading__title`] }, t), /* @__PURE__ */ e.createElement(
|
|
1344
1350
|
P,
|
|
1345
1351
|
{
|
|
1346
1352
|
as: "div",
|
|
1347
1353
|
size: "xs",
|
|
1348
|
-
className:
|
|
1354
|
+
className: S[`${_t}__heading__description`]
|
|
1349
1355
|
},
|
|
1350
1356
|
a
|
|
1351
|
-
)), /* @__PURE__ */ e.createElement("div", { className:
|
|
1357
|
+
)), /* @__PURE__ */ e.createElement("div", { className: S[`${_t}__content`] }, /* @__PURE__ */ e.createElement(P, { as: "div" }, r))), Ae = {
|
|
1352
1358
|
"action-bar": "lc-ActionBar-module__action-bar___TJitF",
|
|
1353
1359
|
"action-bar__items": "lc-ActionBar-module__action-bar__items___uhoQA",
|
|
1354
1360
|
"action-bar__items--scroll": "lc-ActionBar-module__action-bar__items--scroll___f--dN",
|
|
@@ -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
|
}
|
|
@@ -1469,13 +1475,13 @@ const ga = 8, fa = "guide-tooltip", ba = (t, a) => new Gr(t, a), hl = (t) => {
|
|
|
1469
1475
|
triggerRenderer: /* @__PURE__ */ e.createElement(D, { source: ft, kind: "primary" })
|
|
1470
1476
|
}
|
|
1471
1477
|
)));
|
|
1472
|
-
}, Wr = "lc-Alert-module__alert___HBTns", Vr = "lc-Alert-module__alert__icon___8TaAH", Yr = "lc-Alert-module__alert__content___9nZdf", qr = "lc-Alert-module__alert__content__text___7nx1p", Jr = "lc-Alert-module__alert__content__cta___gTWPt",
|
|
1478
|
+
}, Wr = "lc-Alert-module__alert___HBTns", Vr = "lc-Alert-module__alert__icon___8TaAH", Yr = "lc-Alert-module__alert__content___9nZdf", qr = "lc-Alert-module__alert__content__text___7nx1p", Jr = "lc-Alert-module__alert__content__cta___gTWPt", Kr = "lc-Alert-module__alert__content__cta__link___D976B", be = {
|
|
1473
1479
|
alert: Wr,
|
|
1474
1480
|
alert__icon: Vr,
|
|
1475
1481
|
alert__content: Yr,
|
|
1476
1482
|
alert__content__text: qr,
|
|
1477
1483
|
alert__content__cta: Jr,
|
|
1478
|
-
alert__content__cta__link:
|
|
1484
|
+
alert__content__cta__link: Kr,
|
|
1479
1485
|
"alert__close-icon": "lc-Alert-module__alert__close-icon___rYxVy",
|
|
1480
1486
|
"alert--small": "lc-Alert-module__alert--small___Fyk-v",
|
|
1481
1487
|
"alert--medium": "lc-Alert-module__alert--medium___ItZWT",
|
|
@@ -1483,7 +1489,7 @@ const ga = 8, fa = "guide-tooltip", ba = (t, a) => new Gr(t, a), hl = (t) => {
|
|
|
1483
1489
|
"alert--warning": "lc-Alert-module__alert--warning___MubhD",
|
|
1484
1490
|
"alert--success": "lc-Alert-module__alert--success___fPtlZ",
|
|
1485
1491
|
"alert--error": "lc-Alert-module__alert--error___DKPo0"
|
|
1486
|
-
},
|
|
1492
|
+
}, jr = {
|
|
1487
1493
|
info: {
|
|
1488
1494
|
source: ea,
|
|
1489
1495
|
kind: "link"
|
|
@@ -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,13 +1530,13 @@ 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
|
-
A(w({},
|
|
1539
|
+
A(w({}, jr[_]), {
|
|
1534
1540
|
size: "large",
|
|
1535
1541
|
className: be[`${ve}__icon`]
|
|
1536
1542
|
})
|
|
@@ -1643,50 +1649,50 @@ 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(n), h = y ? Xr(y) : void 0, E = v ? { backgroundColor: y } : {}, N = 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 } : {})),
|
|
1657
|
+
}, a ? { [`${a}`]: a } : {})), $ = 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
|
+
), k = g(
|
|
1657
1663
|
ae[`${Y}__icon`],
|
|
1658
1664
|
ae[`${Y}__icon--${_}`]
|
|
1659
|
-
),
|
|
1665
|
+
), C = g(
|
|
1660
1666
|
ae[`${Y}__rim`],
|
|
1661
1667
|
ae[`${Y}__rim--${_}`]
|
|
1662
|
-
),
|
|
1668
|
+
), x = e.useCallback(() => u(!0), []);
|
|
1663
1669
|
return e.useEffect(() => {
|
|
1664
1670
|
u(i);
|
|
1665
|
-
}, [i]), /* @__PURE__ */ e.createElement("div", { className:
|
|
1671
|
+
}, [i]), /* @__PURE__ */ e.createElement("div", { className: N, style: E }, d && /* @__PURE__ */ e.createElement(
|
|
1666
1672
|
"div",
|
|
1667
1673
|
{
|
|
1668
1674
|
"data-testid": `${Y}__rim`,
|
|
1669
|
-
className:
|
|
1675
|
+
className: C
|
|
1670
1676
|
}
|
|
1671
1677
|
), c && /* @__PURE__ */ e.createElement(
|
|
1672
1678
|
"div",
|
|
1673
1679
|
{
|
|
1674
1680
|
"data-testid": `${Y}__status`,
|
|
1675
|
-
className:
|
|
1681
|
+
className: $
|
|
1676
1682
|
}
|
|
1677
|
-
),
|
|
1683
|
+
), f && /* @__PURE__ */ e.createElement(
|
|
1678
1684
|
"img",
|
|
1679
1685
|
{
|
|
1680
1686
|
className: ae[`${Y}__image`],
|
|
1681
1687
|
src: l,
|
|
1682
1688
|
alt: t,
|
|
1683
|
-
onError:
|
|
1689
|
+
onError: x
|
|
1684
1690
|
}
|
|
1685
1691
|
), v && /* @__PURE__ */ e.createElement("span", { style: { color: h } }, p), m && /* @__PURE__ */ e.createElement(
|
|
1686
1692
|
D,
|
|
1687
1693
|
{
|
|
1688
1694
|
"data-testid": `${Y}__icon`,
|
|
1689
|
-
className:
|
|
1695
|
+
className: k,
|
|
1690
1696
|
source: _r
|
|
1691
1697
|
}
|
|
1692
1698
|
));
|
|
@@ -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,15 +1816,15 @@ 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,
|
|
1818
1824
|
className: re[`${Pt}__image`],
|
|
1819
1825
|
src: c
|
|
1820
1826
|
}
|
|
1821
|
-
), /* @__PURE__ */ e.createElement("div", { className: re[Gt] }, /* @__PURE__ */ e.createElement(
|
|
1827
|
+
), /* @__PURE__ */ e.createElement("div", { className: re[Gt] }, /* @__PURE__ */ e.createElement(je, { size: "sm", className: re[`${Gt}__title`] }, n), /* @__PURE__ */ e.createElement(P, { size: "sm", className: re[`${Gt}__description`] }, _))), /* @__PURE__ */ e.createElement(P, { as: "div", size: "md", className: re[`${gt}__content`] }, r), m && /* @__PURE__ */ e.createElement(
|
|
1822
1828
|
P,
|
|
1823
1829
|
{
|
|
1824
1830
|
as: "div",
|
|
@@ -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,14 +1941,14 @@ 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) {
|
|
1942
|
-
const h =
|
|
1948
|
+
const h = Ke(d, 12);
|
|
1943
1949
|
return r(h);
|
|
1944
1950
|
}
|
|
1945
|
-
const p = Math.abs(na(d, i)), y =
|
|
1951
|
+
const p = Math.abs(na(d, i)), y = Ke(
|
|
1946
1952
|
d,
|
|
1947
1953
|
!Number.isNaN(p) && p > 12 ? 12 : p
|
|
1948
1954
|
);
|
|
@@ -1956,7 +1962,7 @@ const n_ = "lc-SegmentedControl-module__btn___tfsvL", wt = {
|
|
|
1956
1962
|
d,
|
|
1957
1963
|
!Number.isNaN(p) && p > 12 ? 12 : p
|
|
1958
1964
|
);
|
|
1959
|
-
return s === 2 && Jt(y, m) ? r(
|
|
1965
|
+
return s === 2 && Jt(y, m) ? r(Ke(y, 1)) : r(y);
|
|
1960
1966
|
};
|
|
1961
1967
|
return /* @__PURE__ */ e.createElement("div", { className: c }, /* @__PURE__ */ e.createElement("div", { className: T[`${ha}__navbar-buttons-wrapper`] }, /* @__PURE__ */ e.createElement(
|
|
1962
1968
|
"button",
|
|
@@ -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(
|
|
@@ -2005,8 +2011,8 @@ const n_ = "lc-SegmentedControl-module__btn___tfsvL", wt = {
|
|
|
2005
2011
|
)));
|
|
2006
2012
|
}, I = "date-picker", Va = (t, a) => {
|
|
2007
2013
|
const { from: r, to: o } = a;
|
|
2008
|
-
return !(o && !
|
|
2009
|
-
}, Ya = (t, a, r) => a ? t && !Jt(t, a) || r && Jt(a, r) ?
|
|
2014
|
+
return !(o && !Kt(t, o) && jt(t, o) || r && !Kt(t, r) && !jt(t, r));
|
|
2015
|
+
}, Ya = (t, a, r) => a ? t && !Jt(t, a) || r && Jt(a, r) ? Ke(a, 1) : a : Ke(r || /* @__PURE__ */ new Date(), 1), I_ = (t, a) => {
|
|
2010
2016
|
const r = {
|
|
2011
2017
|
[T[`${I}__day--monday`]]: { daysOfWeek: [1] },
|
|
2012
2018
|
[T[`${I}__day--sunday`]]: { daysOfWeek: [0] },
|
|
@@ -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
|
);
|
|
@@ -2287,7 +2293,7 @@ const M_ = (t) => {
|
|
|
2287
2293
|
Va(b, { to: _ }) && (ka(p, y) ? d({
|
|
2288
2294
|
type: O.SELECT_FIRST_DAY,
|
|
2289
2295
|
payload: { date: b }
|
|
2290
|
-
}) : p &&
|
|
2296
|
+
}) : p && Kt(b, p) || p && jt(b, p) ? d({
|
|
2291
2297
|
type: O.SELECT_SECOND_DAY_AS_TO,
|
|
2292
2298
|
payload: { date: b }
|
|
2293
2299
|
}) : d({
|
|
@@ -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 }
|
|
@@ -2338,11 +2344,11 @@ const M_ = (t) => {
|
|
|
2338
2344
|
onDayClick: m,
|
|
2339
2345
|
selectedDays: k,
|
|
2340
2346
|
modifiers: N,
|
|
2341
|
-
initialMonth: _ &&
|
|
2347
|
+
initialMonth: _ && Ke(_, 1),
|
|
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(je, { 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({}, _), {
|
|
@@ -2556,7 +2562,7 @@ const Ea = {
|
|
|
2556
2562
|
}), r && { "aria-label": r }), {
|
|
2557
2563
|
className: n
|
|
2558
2564
|
}),
|
|
2559
|
-
/* @__PURE__ */ e.createElement("div", { className: Nt[`${xt}__header`] }, /* @__PURE__ */ e.createElement(
|
|
2565
|
+
/* @__PURE__ */ e.createElement("div", { className: Nt[`${xt}__header`] }, /* @__PURE__ */ e.createElement(je, { as: "div", size: "sm", className: Nt[`${xt}__label`] }, r), o && /* @__PURE__ */ e.createElement(P, { as: "div", size: "sm", className: Nt[`${xt}__helper`] }, o)),
|
|
2560
2566
|
a
|
|
2561
2567
|
);
|
|
2562
2568
|
}, W_ = "lc-Input-module__input___qeMAQ", ke = {
|
|
@@ -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,14 +2655,14 @@ 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
|
|
2656
2662
|
)
|
|
2657
2663
|
}, r)
|
|
2658
2664
|
);
|
|
2659
|
-
}, Y_ = "lc-Modal-module__modal__body___M-jmN", q_ = "lc-Modal-module__modal__header___Fp5VE", J_ = "lc-Modal-module__modal__heading___G9KVK",
|
|
2665
|
+
}, Y_ = "lc-Modal-module__modal__body___M-jmN", q_ = "lc-Modal-module__modal__header___Fp5VE", J_ = "lc-Modal-module__modal__heading___G9KVK", K_ = "lc-Modal-module__modal__footer___2LYdc", X = {
|
|
2660
2666
|
"modal-base": "lc-Modal-module__modal-base___hbL1U",
|
|
2661
2667
|
"modal-base--full-space": "lc-Modal-module__modal-base--full-space___KcGFL",
|
|
2662
2668
|
"modal-base__overlay": "lc-Modal-module__modal-base__overlay___kCQ8t",
|
|
@@ -2668,8 +2674,8 @@ const Ea = {
|
|
|
2668
2674
|
"modal__label-header": "lc-Modal-module__modal__label-header___ZPtEy",
|
|
2669
2675
|
modal__heading: J_,
|
|
2670
2676
|
"modal__label-heading": "lc-Modal-module__modal__label-heading___WnYcF",
|
|
2671
|
-
modal__footer:
|
|
2672
|
-
}, St = "modal-base",
|
|
2677
|
+
modal__footer: K_
|
|
2678
|
+
}, St = "modal-base", j_ = (n) => {
|
|
2673
2679
|
var s = n, {
|
|
2674
2680
|
children: t,
|
|
2675
2681
|
className: 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,18 +2763,18 @@ 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(
|
|
2764
|
-
|
|
2770
|
+
j_,
|
|
2765
2771
|
w({
|
|
2766
2772
|
className: m,
|
|
2767
2773
|
fullSpaceContent: _,
|
|
2768
2774
|
onClose: c
|
|
2769
2775
|
}, s),
|
|
2770
2776
|
o && /* @__PURE__ */ e.createElement("div", { className: X[`${Te}__label-header`] }, /* @__PURE__ */ e.createElement(
|
|
2771
|
-
|
|
2777
|
+
je,
|
|
2772
2778
|
{
|
|
2773
2779
|
size: "md",
|
|
2774
2780
|
as: "div",
|
|
@@ -2780,23 +2786,23 @@ 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(
|
|
2787
|
-
|
|
2793
|
+
je,
|
|
2788
2794
|
{
|
|
2789
2795
|
size: "md",
|
|
2790
2796
|
as: "div",
|
|
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
|
|
@@ -2834,7 +2840,7 @@ const Ea = {
|
|
|
2834
2840
|
}) => {
|
|
2835
2841
|
const _ = ur(nt[st], o);
|
|
2836
2842
|
return /* @__PURE__ */ e.createElement("div", { className: _ }, a && /* @__PURE__ */ e.createElement(D, w({ className: nt[`${st}__heading-icon`] }, a)), /* @__PURE__ */ e.createElement("div", { className: nt[`${st}__heading-body`] }, /* @__PURE__ */ e.createElement(
|
|
2837
|
-
|
|
2843
|
+
je,
|
|
2838
2844
|
{
|
|
2839
2845
|
as: "div",
|
|
2840
2846
|
size: "md",
|
|
@@ -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,
|
|
@@ -2899,8 +2905,8 @@ const Ea = {
|
|
|
2899
2905
|
);
|
|
2900
2906
|
if (C === "" || C === "-")
|
|
2901
2907
|
return v(C);
|
|
2902
|
-
const
|
|
2903
|
-
return v(b(
|
|
2908
|
+
const x = parseInt(C, 10);
|
|
2909
|
+
return v(b(x));
|
|
2904
2910
|
}, N = () => {
|
|
2905
2911
|
var k;
|
|
2906
2912
|
return (k = u.current) == null || k.focus(), p(1);
|
|
@@ -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",
|
|
@@ -2989,43 +2995,43 @@ const U = {
|
|
|
2989
2995
|
"picker-list__item__label-container": "lc-PickerList-module__picker-list__item__label-container___yZXW5",
|
|
2990
2996
|
"picker-list__item__main-label": "lc-PickerList-module__picker-list__item__main-label___uRgQw",
|
|
2991
2997
|
"picker-list__item__secondary-label": "lc-PickerList-module__picker-list__item__secondary-label___lpkFW"
|
|
2992
|
-
},
|
|
2998
|
+
}, ne = "picker-list__item", Q_ = ({
|
|
2993
2999
|
item: t,
|
|
2994
3000
|
isItemSelected: a,
|
|
2995
3001
|
currentItemKey: r,
|
|
2996
3002
|
isAdjacentStyleApplied: o,
|
|
2997
3003
|
onSelect: _
|
|
2998
3004
|
}) => {
|
|
2999
|
-
const l = (n) => n != null && n.customElement ? /* @__PURE__ */ e.createElement("div", { className: U[`${
|
|
3005
|
+
const l = (n) => n != null && n.customElement ? /* @__PURE__ */ e.createElement("div", { className: U[`${ne}__custom`] }, n.customElement.listItemBody) : /* @__PURE__ */ e.createElement(e.Fragment, null, n.showCheckbox && /* @__PURE__ */ e.createElement(
|
|
3000
3006
|
"input",
|
|
3001
3007
|
{
|
|
3002
3008
|
type: "checkbox",
|
|
3003
|
-
className: U[`${
|
|
3009
|
+
className: U[`${ne}__checkbox`],
|
|
3004
3010
|
checked: a
|
|
3005
3011
|
}
|
|
3006
3012
|
), n.icon && /* @__PURE__ */ e.createElement(
|
|
3007
3013
|
D,
|
|
3008
3014
|
{
|
|
3009
|
-
className: U[`${
|
|
3015
|
+
className: U[`${ne}__icon`],
|
|
3010
3016
|
kind: "link",
|
|
3011
3017
|
source: n.icon
|
|
3012
3018
|
}
|
|
3013
3019
|
), n.avatarSrc && /* @__PURE__ */ e.createElement(
|
|
3014
3020
|
"img",
|
|
3015
3021
|
{
|
|
3016
|
-
className:
|
|
3022
|
+
className: g(U[`${ne}__avatar`]),
|
|
3017
3023
|
src: n.avatarSrc,
|
|
3018
3024
|
alt: n.name
|
|
3019
3025
|
}
|
|
3020
|
-
), /* @__PURE__ */ e.createElement("div", { className: U[`${
|
|
3026
|
+
), /* @__PURE__ */ e.createElement("div", { className: U[`${ne}__label-container`] }, /* @__PURE__ */ e.createElement(
|
|
3021
3027
|
"span",
|
|
3022
3028
|
{
|
|
3023
|
-
className:
|
|
3024
|
-
[U[`${
|
|
3029
|
+
className: g({
|
|
3030
|
+
[U[`${ne}__main-label`]]: n.secondaryText
|
|
3025
3031
|
})
|
|
3026
3032
|
},
|
|
3027
3033
|
n.name
|
|
3028
|
-
), n.secondaryText && /* @__PURE__ */ e.createElement("span", { className: U[`${
|
|
3034
|
+
), n.secondaryText && /* @__PURE__ */ e.createElement("span", { className: U[`${ne}__secondary-label`] }, n.secondaryText))), c = (n) => {
|
|
3029
3035
|
!n.disabled && _(n);
|
|
3030
3036
|
};
|
|
3031
3037
|
return t.groupHeader ? /* @__PURE__ */ e.createElement(
|
|
@@ -3033,7 +3039,7 @@ const U = {
|
|
|
3033
3039
|
{
|
|
3034
3040
|
role: "option",
|
|
3035
3041
|
key: t.key,
|
|
3036
|
-
className: U[`${
|
|
3042
|
+
className: U[`${ne}__header`]
|
|
3037
3043
|
},
|
|
3038
3044
|
t.name
|
|
3039
3045
|
) : /* @__PURE__ */ e.createElement(
|
|
@@ -3050,12 +3056,12 @@ const U = {
|
|
|
3050
3056
|
id: t.key,
|
|
3051
3057
|
key: t.key,
|
|
3052
3058
|
"data-adjacent": o,
|
|
3053
|
-
className:
|
|
3054
|
-
[U[`${
|
|
3059
|
+
className: g(U[ne], {
|
|
3060
|
+
[U[`${ne}__custom`]]: t == null ? void 0 : t.customElement
|
|
3055
3061
|
}),
|
|
3056
3062
|
onClick: () => c(t)
|
|
3057
3063
|
},
|
|
3058
|
-
/* @__PURE__ */ e.createElement("div", { className: U[`${
|
|
3064
|
+
/* @__PURE__ */ e.createElement("div", { className: U[`${ne}__content`] }, l(t)),
|
|
3059
3065
|
a && !t.showCheckbox && /* @__PURE__ */ e.createElement(
|
|
3060
3066
|
D,
|
|
3061
3067
|
{
|
|
@@ -3076,13 +3082,13 @@ 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),
|
|
3084
|
-
if (
|
|
3085
|
-
if (
|
|
3089
|
+
), u = e.useRef(-1), f = e.useRef(0), v = e.useRef(null), [b, p] = e.useState({}), y = (x) => {
|
|
3090
|
+
if (x.key === L.esc && (x.preventDefault(), c()), x.key === L.arrowUp && u.current > 0 && (x.preventDefault(), u.current = E(), m(a[u.current].key)), x.key === L.arrowDown && u.current + 1 < a.length && (x.preventDefault(), u.current = N(), m(a[u.current].key)), x.key === L.enter && !a[u.current].disabled) {
|
|
3091
|
+
if (x.preventDefault(), a[u.current].key === qe)
|
|
3086
3092
|
return s();
|
|
3087
3093
|
n(a[u.current]);
|
|
3088
3094
|
}
|
|
@@ -3090,35 +3096,35 @@ 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
|
-
const h = (
|
|
3103
|
+
const h = (x) => !!a[x] && (a[x].disabled || a[x].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
|
|
3111
|
-
}, $ = () => s(), k = (
|
|
3116
|
+
return f.current = u.current, u.current;
|
|
3117
|
+
}, $ = () => s(), k = (x) => r ? r.includes(x) : !1, C = () => !l || l && !_ ? null : /* @__PURE__ */ e.createElement(
|
|
3112
3118
|
"li",
|
|
3113
3119
|
{
|
|
3114
|
-
ref: (
|
|
3115
|
-
i === qe && (
|
|
3120
|
+
ref: (x) => {
|
|
3121
|
+
i === qe && (x == null || x.scrollIntoView({ block: "nearest" }));
|
|
3116
3122
|
},
|
|
3117
3123
|
role: "option",
|
|
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
|
),
|
|
@@ -3135,18 +3141,18 @@ const U = {
|
|
|
3135
3141
|
tabIndex: -1
|
|
3136
3142
|
},
|
|
3137
3143
|
C(),
|
|
3138
|
-
a.map((
|
|
3144
|
+
a.map((x) => /* @__PURE__ */ e.createElement(
|
|
3139
3145
|
Q_,
|
|
3140
3146
|
{
|
|
3141
|
-
item:
|
|
3142
|
-
isItemSelected: k(
|
|
3143
|
-
isAdjacentStyleApplied: b[
|
|
3147
|
+
item: x,
|
|
3148
|
+
isItemSelected: k(x.key),
|
|
3149
|
+
isAdjacentStyleApplied: b[x.key],
|
|
3144
3150
|
currentItemKey: i,
|
|
3145
3151
|
onSelect: n
|
|
3146
3152
|
}
|
|
3147
3153
|
))
|
|
3148
3154
|
)) : null;
|
|
3149
|
-
},
|
|
3155
|
+
}, j = {
|
|
3150
3156
|
"picker-trigger": "lc-Trigger-module__picker-trigger___BIvTx",
|
|
3151
3157
|
"picker-trigger--multi-select": "lc-Trigger-module__picker-trigger--multi-select___rLpTy",
|
|
3152
3158
|
"picker-trigger--multi-select--with-items": "lc-Trigger-module__picker-trigger--multi-select--with-items___QFhY2",
|
|
@@ -3178,18 +3184,18 @@ const U = {
|
|
|
3178
3184
|
onClear: m,
|
|
3179
3185
|
testId: u
|
|
3180
3186
|
}) => {
|
|
3181
|
-
const
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
n &&
|
|
3185
|
-
n && _ &&
|
|
3186
|
-
r &&
|
|
3187
|
-
l &&
|
|
3188
|
-
o &&
|
|
3187
|
+
const f = e.useRef(null), v = g(
|
|
3188
|
+
j[J],
|
|
3189
|
+
j[`${J}--${s}`],
|
|
3190
|
+
n && j[`${J}--multi-select`],
|
|
3191
|
+
n && _ && j[`${J}--multi-select--with-items`],
|
|
3192
|
+
r && j[`${J}--disabled`],
|
|
3193
|
+
l && j[`${J}--focused`],
|
|
3194
|
+
o && j[`${J}--error`]
|
|
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,10 +3218,10 @@ const U = {
|
|
|
3212
3218
|
/* @__PURE__ */ e.createElement(
|
|
3213
3219
|
"div",
|
|
3214
3220
|
{
|
|
3215
|
-
className:
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
n && _ &&
|
|
3221
|
+
className: g(
|
|
3222
|
+
j[`${J}__content`],
|
|
3223
|
+
j[`${J}__content--${s}`],
|
|
3224
|
+
n && _ && j[`${J}__content--with-items`]
|
|
3219
3225
|
)
|
|
3220
3226
|
},
|
|
3221
3227
|
t
|
|
@@ -3223,16 +3229,16 @@ const U = {
|
|
|
3223
3229
|
/* @__PURE__ */ e.createElement(
|
|
3224
3230
|
"div",
|
|
3225
3231
|
{
|
|
3226
|
-
className:
|
|
3227
|
-
|
|
3228
|
-
|
|
3232
|
+
className: g(
|
|
3233
|
+
j[`${J}__controls`],
|
|
3234
|
+
j[`${J}__controls--${s}`]
|
|
3229
3235
|
)
|
|
3230
3236
|
},
|
|
3231
3237
|
y && /* @__PURE__ */ e.createElement(
|
|
3232
3238
|
"div",
|
|
3233
3239
|
{
|
|
3234
3240
|
"data-testid": `${J}__clear-icon`,
|
|
3235
|
-
className:
|
|
3241
|
+
className: j[`${J}__clear-icon`],
|
|
3236
3242
|
onClick: p
|
|
3237
3243
|
},
|
|
3238
3244
|
/* @__PURE__ */ e.createElement(D, { kind: "primary", size: "small", source: xe })
|
|
@@ -3240,7 +3246,7 @@ const U = {
|
|
|
3240
3246
|
/* @__PURE__ */ e.createElement(
|
|
3241
3247
|
D,
|
|
3242
3248
|
{
|
|
3243
|
-
className:
|
|
3249
|
+
className: j[`${J}__chevron-icon`],
|
|
3244
3250
|
source: l ? Ft : ft,
|
|
3245
3251
|
size: "medium",
|
|
3246
3252
|
disabled: r
|
|
@@ -3248,7 +3254,7 @@ const U = {
|
|
|
3248
3254
|
)
|
|
3249
3255
|
)
|
|
3250
3256
|
);
|
|
3251
|
-
}, to = "lc-Tag-module__tag___1QRVY", ao = "lc-Tag-module__tag__remove___UmtrW", ro = "lc-Tag-module__icon___2Z-35", _o = "lc-Tag-module__tag__node___rZTzB", oo = "lc-Tag-module__tag__content___q6vKK",
|
|
3257
|
+
}, to = "lc-Tag-module__tag___1QRVY", ao = "lc-Tag-module__tag__remove___UmtrW", ro = "lc-Tag-module__icon___2Z-35", _o = "lc-Tag-module__tag__node___rZTzB", oo = "lc-Tag-module__tag__content___q6vKK", se = {
|
|
3252
3258
|
tag: to,
|
|
3253
3259
|
"tag--success": "lc-Tag-module__tag--success___P2hXQ",
|
|
3254
3260
|
tag__remove: ao,
|
|
@@ -3269,8 +3275,8 @@ const U = {
|
|
|
3269
3275
|
tag__node: _o,
|
|
3270
3276
|
"tag__node--right": "lc-Tag-module__tag__node--right___pGYuU",
|
|
3271
3277
|
tag__content: oo
|
|
3272
|
-
},
|
|
3273
|
-
var
|
|
3278
|
+
}, ie = "tag", lo = (t) => t ? ra(t, "#FFFFFF") > 4.5 ? "text-white" : "text-black" : "", qa = (u) => {
|
|
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,16 +3301,16 @@ const U = {
|
|
|
3295
3301
|
"rightNode",
|
|
3296
3302
|
"customColor"
|
|
3297
3303
|
]);
|
|
3298
|
-
const v =
|
|
3299
|
-
|
|
3304
|
+
const v = g(
|
|
3305
|
+
se[ie],
|
|
3300
3306
|
t,
|
|
3301
|
-
|
|
3302
|
-
|
|
3307
|
+
se[`${ie}--${o}`],
|
|
3308
|
+
se[`${ie}--${l}`],
|
|
3303
3309
|
{
|
|
3304
|
-
[
|
|
3305
|
-
[
|
|
3306
|
-
[
|
|
3307
|
-
[
|
|
3310
|
+
[se[`${ie}--dismissible`]]: r,
|
|
3311
|
+
[se[`${ie}--outline`]]: n,
|
|
3312
|
+
[se[`${ie}--with-node`]]: !!s || !!d,
|
|
3313
|
+
[se[`${ie}--${lo(i)}`]]: !!i
|
|
3308
3314
|
}
|
|
3309
3315
|
), b = () => i ? n ? {
|
|
3310
3316
|
style: {
|
|
@@ -3328,17 +3334,17 @@ const U = {
|
|
|
3328
3334
|
"div",
|
|
3329
3335
|
{
|
|
3330
3336
|
"data-testid": "lc-tag-left-node",
|
|
3331
|
-
className:
|
|
3337
|
+
className: se[`${ie}__node`],
|
|
3332
3338
|
style: { color: p() }
|
|
3333
3339
|
},
|
|
3334
3340
|
s
|
|
3335
3341
|
),
|
|
3336
|
-
/* @__PURE__ */ e.createElement("div", { className:
|
|
3342
|
+
/* @__PURE__ */ e.createElement("div", { className: se[`${ie}__content`] }, a),
|
|
3337
3343
|
d && /* @__PURE__ */ e.createElement(
|
|
3338
3344
|
"div",
|
|
3339
3345
|
{
|
|
3340
3346
|
"data-testid": "lc-tag-right-node",
|
|
3341
|
-
className:
|
|
3347
|
+
className: g(se[`${ie}__node--right`]),
|
|
3342
3348
|
style: { color: p() }
|
|
3343
3349
|
},
|
|
3344
3350
|
d
|
|
@@ -3349,7 +3355,7 @@ const U = {
|
|
|
3349
3355
|
title: "Remove",
|
|
3350
3356
|
onClick: c,
|
|
3351
3357
|
type: "button",
|
|
3352
|
-
className:
|
|
3358
|
+
className: se[`${ie}__remove`]
|
|
3353
3359
|
},
|
|
3354
3360
|
/* @__PURE__ */ e.createElement(
|
|
3355
3361
|
D,
|
|
@@ -3362,8 +3368,9 @@ const U = {
|
|
|
3362
3368
|
)
|
|
3363
3369
|
)
|
|
3364
3370
|
);
|
|
3365
|
-
},
|
|
3371
|
+
}, le = {
|
|
3366
3372
|
"picker-trigger-body": "lc-TriggerBody-module__picker-trigger-body___ZWjX9",
|
|
3373
|
+
"picker-trigger-body--single": "lc-TriggerBody-module__picker-trigger-body--single___KNWtO",
|
|
3367
3374
|
"picker-trigger-body__item-container": "lc-TriggerBody-module__picker-trigger-body__item-container___l2NTQ",
|
|
3368
3375
|
"picker-trigger-body__item": "lc-TriggerBody-module__picker-trigger-body__item___0DBg1",
|
|
3369
3376
|
"picker-trigger-body__item__content": "lc-TriggerBody-module__picker-trigger-body__item__content___VhhV-",
|
|
@@ -3377,7 +3384,7 @@ const U = {
|
|
|
3377
3384
|
"picker-trigger-body__tag--compact": "lc-TriggerBody-module__picker-trigger-body__tag--compact___X-oAF",
|
|
3378
3385
|
"picker-trigger-body__tag--medium": "lc-TriggerBody-module__picker-trigger-body__tag--medium___Ptkd5",
|
|
3379
3386
|
"picker-trigger-body__tag--large": "lc-TriggerBody-module__picker-trigger-body__tag--large___Saoy1"
|
|
3380
|
-
},
|
|
3387
|
+
}, ce = "picker-trigger-body", co = ({
|
|
3381
3388
|
isOpen: t,
|
|
3382
3389
|
isSearchDisabled: a,
|
|
3383
3390
|
isDisabled: r,
|
|
@@ -3394,48 +3401,57 @@ const U = {
|
|
|
3394
3401
|
e.useEffect(() => {
|
|
3395
3402
|
n && (i(""), u.current && (u.current.value = "", u.current.focus()));
|
|
3396
3403
|
}, [_, n]);
|
|
3397
|
-
const
|
|
3404
|
+
const f = (p) => l === "single" && t && !a ? null : p != null && p.customElement ? /* @__PURE__ */ e.createElement("div", { className: le[`${ce}__item`] }, p.customElement.selectedItemBody) : /* @__PURE__ */ e.createElement("div", { className: le[`${ce}__item`] }, p.icon && /* @__PURE__ */ e.createElement(
|
|
3398
3405
|
D,
|
|
3399
3406
|
{
|
|
3400
3407
|
source: p.icon,
|
|
3401
|
-
className:
|
|
3408
|
+
className: le[`${ce}__item__icon`]
|
|
3402
3409
|
}
|
|
3403
3410
|
), p.avatarSrc && /* @__PURE__ */ e.createElement(
|
|
3404
3411
|
"img",
|
|
3405
3412
|
{
|
|
3406
3413
|
src: p.avatarSrc,
|
|
3407
3414
|
alt: "",
|
|
3408
|
-
className:
|
|
3415
|
+
className: le[`${ce}__item__avatar`]
|
|
3409
3416
|
}
|
|
3410
|
-
), /* @__PURE__ */ e.createElement("div", { className:
|
|
3417
|
+
), /* @__PURE__ */ e.createElement("div", { className: le[`${ce}__item__content`] }, p.name)), v = (p) => {
|
|
3411
3418
|
i(p.target.value);
|
|
3412
3419
|
}, b = () => /* @__PURE__ */ e.createElement(
|
|
3413
3420
|
"input",
|
|
3414
3421
|
{
|
|
3415
3422
|
ref: u,
|
|
3416
|
-
className:
|
|
3417
|
-
|
|
3418
|
-
|
|
3423
|
+
className: g(
|
|
3424
|
+
le[`${ce}__input`],
|
|
3425
|
+
le[`${ce}__input--${s}`]
|
|
3419
3426
|
),
|
|
3420
3427
|
placeholder: "Select option",
|
|
3421
3428
|
onChange: v,
|
|
3422
3429
|
autoFocus: !0
|
|
3423
3430
|
}
|
|
3424
3431
|
);
|
|
3425
|
-
return !_ || _.length === 0 ? m ? b() : /* @__PURE__ */ e.createElement("div", null, o) : /* @__PURE__ */ e.createElement(
|
|
3426
|
-
|
|
3432
|
+
return !_ || _.length === 0 ? m ? b() : /* @__PURE__ */ e.createElement("div", null, o) : /* @__PURE__ */ e.createElement(
|
|
3433
|
+
"div",
|
|
3427
3434
|
{
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
se[`${ie}__tag--${s}`]
|
|
3432
|
-
),
|
|
3433
|
-
iconSize: c,
|
|
3434
|
-
dismissible: !r,
|
|
3435
|
-
onRemove: () => d(p)
|
|
3435
|
+
className: g(le[ce], {
|
|
3436
|
+
[le[`${ce}--single`]]: l === "single"
|
|
3437
|
+
})
|
|
3436
3438
|
},
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
+
/* @__PURE__ */ e.createElement("div", { className: le[`${ce}__item-container`] }, l === "single" ? f(_[0]) : _.map((p) => /* @__PURE__ */ e.createElement(
|
|
3440
|
+
qa,
|
|
3441
|
+
{
|
|
3442
|
+
key: p.name,
|
|
3443
|
+
className: g(
|
|
3444
|
+
le[`${ce}__tag`],
|
|
3445
|
+
le[`${ce}__tag--${s}`]
|
|
3446
|
+
),
|
|
3447
|
+
iconSize: c,
|
|
3448
|
+
dismissible: !r,
|
|
3449
|
+
onRemove: () => d(p)
|
|
3450
|
+
},
|
|
3451
|
+
f(p)
|
|
3452
|
+
))),
|
|
3453
|
+
m && b()
|
|
3454
|
+
);
|
|
3439
3455
|
}, no = "lc-Picker-module__picker___GRj9W", so = "lc-Picker-module__picker__container___s0PUc", Ta = {
|
|
3440
3456
|
picker: no,
|
|
3441
3457
|
picker__container: so
|
|
@@ -3454,7 +3470,7 @@ const U = {
|
|
|
3454
3470
|
selectAllOptionText: i,
|
|
3455
3471
|
type: m = "single",
|
|
3456
3472
|
searchDisabled: u = !1,
|
|
3457
|
-
hideClearButton:
|
|
3473
|
+
hideClearButton: f,
|
|
3458
3474
|
openedOnInit: v = !1,
|
|
3459
3475
|
clearSearchAfterSelection: b,
|
|
3460
3476
|
onSelect: p
|
|
@@ -3477,12 +3493,12 @@ const U = {
|
|
|
3477
3493
|
"clearSearchAfterSelection",
|
|
3478
3494
|
"onSelect"
|
|
3479
3495
|
]);
|
|
3480
|
-
const [N, $] = e.useState(v), [k, C] = e.useState(null),
|
|
3496
|
+
const [N, $] = e.useState(v), [k, C] = e.useState(null), x = e.useRef(null), V = g(Ta[Da], t);
|
|
3481
3497
|
e.useEffect(() => {
|
|
3482
3498
|
if (N) {
|
|
3483
3499
|
const F = (te) => {
|
|
3484
3500
|
var Fe;
|
|
3485
|
-
(Fe =
|
|
3501
|
+
(Fe = x.current) != null && Fe.contains(te.target) || $(!1);
|
|
3486
3502
|
}, G = (te) => {
|
|
3487
3503
|
te.key === L.tab && $(!1);
|
|
3488
3504
|
};
|
|
@@ -3529,7 +3545,7 @@ const U = {
|
|
|
3529
3545
|
const G = k.toLowerCase();
|
|
3530
3546
|
return F.name.toLowerCase().includes(G);
|
|
3531
3547
|
}) : o, [k, o]), vt = e.useMemo(() => _ ? _.map((F) => F.key) : null, [_]);
|
|
3532
|
-
return /* @__PURE__ */ e.createElement("div", { ref:
|
|
3548
|
+
return /* @__PURE__ */ e.createElement("div", { ref: x, className: V, id: y.id }, /* @__PURE__ */ e.createElement("div", { className: Ta[`${Da}__container`] }, /* @__PURE__ */ e.createElement(
|
|
3533
3549
|
eo,
|
|
3534
3550
|
{
|
|
3535
3551
|
testId: y["data-testid"],
|
|
@@ -3541,7 +3557,7 @@ const U = {
|
|
|
3541
3557
|
isRequired: s,
|
|
3542
3558
|
isMultiSelect: m === "multi",
|
|
3543
3559
|
size: l,
|
|
3544
|
-
hideClearButton:
|
|
3560
|
+
hideClearButton: f,
|
|
3545
3561
|
onTrigger: ee,
|
|
3546
3562
|
onClear: Ze
|
|
3547
3563
|
},
|
|
@@ -3583,7 +3599,7 @@ const U = {
|
|
|
3583
3599
|
function Ja(t, a = 0) {
|
|
3584
3600
|
return t === "error" ? 0 : uo(parseInt(a.toString(), 10));
|
|
3585
3601
|
}
|
|
3586
|
-
function
|
|
3602
|
+
function Ka(t, a) {
|
|
3587
3603
|
return !io.includes(t) && a >= 100 ? "normal" : t || "normal";
|
|
3588
3604
|
}
|
|
3589
3605
|
const it = {
|
|
@@ -3618,16 +3634,16 @@ const it = {
|
|
|
3618
3634
|
"className",
|
|
3619
3635
|
"size"
|
|
3620
3636
|
]);
|
|
3621
|
-
const s =
|
|
3637
|
+
const s = Ka(t, a), d = Ja(s, a), i = mo[o], m = po[o], u = g(
|
|
3622
3638
|
it[dt],
|
|
3623
3639
|
{
|
|
3624
3640
|
[it[`${dt}--${o}`]]: o,
|
|
3625
3641
|
[it[`${dt}--${t}`]]: t
|
|
3626
3642
|
},
|
|
3627
3643
|
r
|
|
3628
|
-
),
|
|
3629
|
-
strokeDasharray:
|
|
3630
|
-
strokeDashoffset: `${((100 - d) / 100 *
|
|
3644
|
+
), f = 2 * Math.PI * ((m - i) / 2), v = {
|
|
3645
|
+
strokeDasharray: f.toFixed(3),
|
|
3646
|
+
strokeDashoffset: `${((100 - d) / 100 * f).toFixed(3)}px`
|
|
3631
3647
|
}, b = `${m / 2} ${m / 2} ${m} ${m}`;
|
|
3632
3648
|
return /* @__PURE__ */ e.createElement(
|
|
3633
3649
|
"div",
|
|
@@ -3683,7 +3699,7 @@ const it = {
|
|
|
3683
3699
|
"size",
|
|
3684
3700
|
"className"
|
|
3685
3701
|
]);
|
|
3686
|
-
const s =
|
|
3702
|
+
const s = Ka(t, a), d = Ja(s, a), i = g(
|
|
3687
3703
|
Tt[Dt],
|
|
3688
3704
|
{
|
|
3689
3705
|
[Tt[`${Dt}--${r}`]]: r,
|
|
@@ -3731,7 +3747,7 @@ const it = {
|
|
|
3731
3747
|
onClose: s,
|
|
3732
3748
|
onLinkClick: d
|
|
3733
3749
|
}) => {
|
|
3734
|
-
const i = e.useRef(null), [m, u] = e.useState("medium"),
|
|
3750
|
+
const i = e.useRef(null), [m, u] = e.useState("medium"), f = g(
|
|
3735
3751
|
de[ue],
|
|
3736
3752
|
{
|
|
3737
3753
|
[de[`${ue}--light`]]: l,
|
|
@@ -3759,7 +3775,7 @@ const it = {
|
|
|
3759
3775
|
},
|
|
3760
3776
|
a
|
|
3761
3777
|
), c && /* @__PURE__ */ e.createElement(M, { size: "compact", kind: "text", onClick: d }, c));
|
|
3762
|
-
return /* @__PURE__ */ e.createElement("div", { ref: i, className:
|
|
3778
|
+
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
3779
|
"button",
|
|
3764
3780
|
{
|
|
3765
3781
|
type: "button",
|
|
@@ -3785,7 +3801,7 @@ const it = {
|
|
|
3785
3801
|
secondaryButton: _,
|
|
3786
3802
|
onClose: l
|
|
3787
3803
|
}) => {
|
|
3788
|
-
const c =
|
|
3804
|
+
const c = g(De[ze], a);
|
|
3789
3805
|
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
3806
|
M,
|
|
3791
3807
|
{
|
|
@@ -3824,7 +3840,7 @@ const it = {
|
|
|
3824
3840
|
}, we = "radio-button", zl = e.forwardRef(
|
|
3825
3841
|
(n, c) => {
|
|
3826
3842
|
var s = n, { children: t, className: a = "", description: r, checked: o, disabled: _ } = s, l = B(s, ["children", "className", "description", "checked", "disabled"]);
|
|
3827
|
-
const d =
|
|
3843
|
+
const d = g($e[we], a, {
|
|
3828
3844
|
[$e[`${we}--selected`]]: o,
|
|
3829
3845
|
[$e[`${we}--disabled`]]: _
|
|
3830
3846
|
});
|
|
@@ -3862,7 +3878,7 @@ const it = {
|
|
|
3862
3878
|
className: c,
|
|
3863
3879
|
onChange: n
|
|
3864
3880
|
}) => {
|
|
3865
|
-
const [s, d] = e.useState(!0), [i, m] = e.useState(!1), u = e.useRef(null),
|
|
3881
|
+
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
3882
|
c,
|
|
3867
3883
|
he[pe],
|
|
3868
3884
|
he[`${pe}--${_}`],
|
|
@@ -3922,7 +3938,7 @@ const it = {
|
|
|
3922
3938
|
disabled: a
|
|
3923
3939
|
}
|
|
3924
3940
|
),
|
|
3925
|
-
|
|
3941
|
+
f && /* @__PURE__ */ e.createElement(
|
|
3926
3942
|
M,
|
|
3927
3943
|
{
|
|
3928
3944
|
"aria-label": "Clear search",
|
|
@@ -3971,12 +3987,12 @@ const it = {
|
|
|
3971
3987
|
"switch__loader--medium": "lc-Switch-module__switch__loader--medium___2zi05",
|
|
3972
3988
|
"switch__loader--large": "lc-Switch-module__switch__loader--large___vLRFa",
|
|
3973
3989
|
switch__icon: No
|
|
3974
|
-
},
|
|
3990
|
+
}, K = "switch", Gl = (m) => {
|
|
3975
3991
|
var u = m, {
|
|
3976
3992
|
className: t = "",
|
|
3977
3993
|
defaultOn: a = !1,
|
|
3978
3994
|
disabled: r = !1,
|
|
3979
|
-
name: o =
|
|
3995
|
+
name: o = K,
|
|
3980
3996
|
on: _,
|
|
3981
3997
|
onChange: l = Zt,
|
|
3982
3998
|
size: c = "large",
|
|
@@ -3995,19 +4011,19 @@ const it = {
|
|
|
3995
4011
|
"innerRef",
|
|
3996
4012
|
"ariaLabel"
|
|
3997
4013
|
]);
|
|
3998
|
-
const [
|
|
4014
|
+
const [f, v] = e.useState(
|
|
3999
4015
|
() => _ !== void 0 ? _ : a
|
|
4000
4016
|
);
|
|
4001
4017
|
e.useEffect(() => {
|
|
4002
4018
|
_ !== void 0 && v(_);
|
|
4003
4019
|
}, [_]);
|
|
4004
|
-
const b = n === "loading", p = n === "locked", y = c === "large" ? "small" : "xsmall", h =
|
|
4005
|
-
Z[
|
|
4006
|
-
Z[`${
|
|
4020
|
+
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(
|
|
4021
|
+
Z[K],
|
|
4022
|
+
Z[`${K}--${c}`],
|
|
4007
4023
|
t
|
|
4008
4024
|
), k = (C) => {
|
|
4009
4025
|
if (l !== Zt) {
|
|
4010
|
-
l(C,
|
|
4026
|
+
l(C, f);
|
|
4011
4027
|
return;
|
|
4012
4028
|
}
|
|
4013
4029
|
C.stopPropagation(), v((V) => !V);
|
|
@@ -4016,48 +4032,48 @@ const it = {
|
|
|
4016
4032
|
"input",
|
|
4017
4033
|
w({
|
|
4018
4034
|
type: "checkbox",
|
|
4019
|
-
className:
|
|
4020
|
-
Z[`${
|
|
4021
|
-
Z[`${
|
|
4035
|
+
className: g(
|
|
4036
|
+
Z[`${K}__input`],
|
|
4037
|
+
Z[`${K}__input--${N}`]
|
|
4022
4038
|
),
|
|
4023
4039
|
onChange: k,
|
|
4024
|
-
checked:
|
|
4040
|
+
checked: f,
|
|
4025
4041
|
name: o,
|
|
4026
4042
|
ref: s,
|
|
4027
4043
|
disabled: E,
|
|
4028
4044
|
"aria-label": d
|
|
4029
4045
|
}, i)
|
|
4030
|
-
), /* @__PURE__ */ e.createElement("span", { className: Z[`${
|
|
4046
|
+
), /* @__PURE__ */ e.createElement("span", { className: Z[`${K}__container`] }, /* @__PURE__ */ e.createElement(
|
|
4031
4047
|
"span",
|
|
4032
4048
|
{
|
|
4033
|
-
className:
|
|
4034
|
-
Z[`${
|
|
4035
|
-
Z[`${
|
|
4036
|
-
Z[`${
|
|
4049
|
+
className: g(
|
|
4050
|
+
Z[`${K}__track`],
|
|
4051
|
+
Z[`${K}__track--${h}`],
|
|
4052
|
+
Z[`${K}__track--${N}`]
|
|
4037
4053
|
)
|
|
4038
4054
|
}
|
|
4039
4055
|
), /* @__PURE__ */ e.createElement(
|
|
4040
4056
|
"span",
|
|
4041
4057
|
{
|
|
4042
|
-
className:
|
|
4043
|
-
Z[`${
|
|
4044
|
-
Z[`${
|
|
4045
|
-
Z[`${
|
|
4058
|
+
className: g(
|
|
4059
|
+
Z[`${K}__slider`],
|
|
4060
|
+
Z[`${K}__slider--${c}`],
|
|
4061
|
+
Z[`${K}__slider--${c}--${h}`]
|
|
4046
4062
|
)
|
|
4047
4063
|
},
|
|
4048
4064
|
b && /* @__PURE__ */ e.createElement(
|
|
4049
4065
|
_a,
|
|
4050
4066
|
{
|
|
4051
|
-
className:
|
|
4052
|
-
Z[`${
|
|
4053
|
-
Z[`${
|
|
4067
|
+
className: g(
|
|
4068
|
+
Z[`${K}__loader`],
|
|
4069
|
+
Z[`${K}__loader--${c}`]
|
|
4054
4070
|
)
|
|
4055
4071
|
}
|
|
4056
4072
|
),
|
|
4057
4073
|
p && /* @__PURE__ */ e.createElement(
|
|
4058
4074
|
D,
|
|
4059
4075
|
{
|
|
4060
|
-
className: Z[`${
|
|
4076
|
+
className: Z[`${K}__icon`],
|
|
4061
4077
|
"data-testid": "lock-icon",
|
|
4062
4078
|
size: y,
|
|
4063
4079
|
source: nr,
|
|
@@ -4097,7 +4113,7 @@ const it = {
|
|
|
4097
4113
|
as: c.href ? "a" : "button",
|
|
4098
4114
|
size: "md",
|
|
4099
4115
|
bold: o,
|
|
4100
|
-
className:
|
|
4116
|
+
className: g(
|
|
4101
4117
|
a,
|
|
4102
4118
|
Ve[Ye],
|
|
4103
4119
|
Ve[`${Ye}--${l}`],
|
|
@@ -4117,16 +4133,16 @@ const it = {
|
|
|
4117
4133
|
}
|
|
4118
4134
|
)
|
|
4119
4135
|
);
|
|
4120
|
-
}, Do = "lc-TabsWrapper-module__tabs___Y2xyD", Io = "lc-TabsWrapper-module__tabs__list___i6tVO",
|
|
4136
|
+
}, Do = "lc-TabsWrapper-module__tabs___Y2xyD", Io = "lc-TabsWrapper-module__tabs__list___i6tVO", ja = {
|
|
4121
4137
|
tabs: Do,
|
|
4122
4138
|
tabs__list: Io
|
|
4123
4139
|
}, Za = "tabs", Wl = ({
|
|
4124
4140
|
className: t,
|
|
4125
4141
|
children: a
|
|
4126
|
-
}) => /* @__PURE__ */ e.createElement("div", { className:
|
|
4142
|
+
}) => /* @__PURE__ */ e.createElement("div", { className: g(ja[Za], t) }, a), Vl = ({
|
|
4127
4143
|
className: t,
|
|
4128
4144
|
children: a
|
|
4129
|
-
}) => /* @__PURE__ */ e.createElement("div", { className:
|
|
4145
|
+
}) => /* @__PURE__ */ e.createElement("div", { className: g(ja[`${Za}__list`], t) }, a), Ao = ({
|
|
4130
4146
|
className: t = "",
|
|
4131
4147
|
innerEditableRef: a,
|
|
4132
4148
|
inputRef: r,
|
|
@@ -4154,7 +4170,7 @@ const it = {
|
|
|
4154
4170
|
}
|
|
4155
4171
|
o(v.innerText);
|
|
4156
4172
|
}
|
|
4157
|
-
},
|
|
4173
|
+
}, f = (v) => {
|
|
4158
4174
|
v.preventDefault();
|
|
4159
4175
|
const b = v.clipboardData.getData("text/plain");
|
|
4160
4176
|
document.execCommand("insertHTML", !1, ia(b));
|
|
@@ -4165,7 +4181,7 @@ const it = {
|
|
|
4165
4181
|
ref: a,
|
|
4166
4182
|
className: t,
|
|
4167
4183
|
contentEditable: !0,
|
|
4168
|
-
onPaste:
|
|
4184
|
+
onPaste: f,
|
|
4169
4185
|
onBlur: u,
|
|
4170
4186
|
onKeyDown: m,
|
|
4171
4187
|
dangerouslySetInnerHTML: { __html: ia(l) }
|
|
@@ -4233,17 +4249,17 @@ const it = {
|
|
|
4233
4249
|
"placeholder",
|
|
4234
4250
|
"size"
|
|
4235
4251
|
]);
|
|
4236
|
-
const i =
|
|
4252
|
+
const i = g(pt[It], {
|
|
4237
4253
|
[pt[`${It}--error`]]: _
|
|
4238
|
-
}), m =
|
|
4254
|
+
}), m = g(
|
|
4239
4255
|
pt[`${It}__input`],
|
|
4240
4256
|
pt[`${It}__input--${c}`]
|
|
4241
|
-
), [u,
|
|
4242
|
-
r([...a || [], $]),
|
|
4257
|
+
), [u, f] = e.useState(""), v = e.useRef(null), b = ($) => {
|
|
4258
|
+
r([...a || [], $]), f("");
|
|
4243
4259
|
}, p = ($) => {
|
|
4244
4260
|
const k = [...a || []];
|
|
4245
4261
|
k.splice($, 1), r(k);
|
|
4246
|
-
}, y = ($) =>
|
|
4262
|
+
}, y = ($) => f($.target.value), h = ($) => {
|
|
4247
4263
|
if (Fo.includes($.key)) {
|
|
4248
4264
|
if ($.preventDefault(), u === "")
|
|
4249
4265
|
return;
|
|
@@ -4366,7 +4382,7 @@ const it = {
|
|
|
4366
4382
|
"kind",
|
|
4367
4383
|
"onClose"
|
|
4368
4384
|
]);
|
|
4369
|
-
const d =
|
|
4385
|
+
const d = g(
|
|
4370
4386
|
W[Ie],
|
|
4371
4387
|
W[`${Ie}--${_}`],
|
|
4372
4388
|
a
|
|
@@ -4383,7 +4399,7 @@ const it = {
|
|
|
4383
4399
|
), o && /* @__PURE__ */ e.createElement(
|
|
4384
4400
|
M,
|
|
4385
4401
|
{
|
|
4386
|
-
className:
|
|
4402
|
+
className: g(
|
|
4387
4403
|
W[`${Ie}__actions__button`],
|
|
4388
4404
|
W[`${Ie}__actions__button--${_}`]
|
|
4389
4405
|
),
|
|
@@ -4403,7 +4419,7 @@ const it = {
|
|
|
4403
4419
|
verticalPosition: l = "top",
|
|
4404
4420
|
horizontalPosition: c = "center"
|
|
4405
4421
|
}) => {
|
|
4406
|
-
const n =
|
|
4422
|
+
const n = g(
|
|
4407
4423
|
W[ut],
|
|
4408
4424
|
{
|
|
4409
4425
|
[W[`${ut}--fixed`]]: r,
|
|
@@ -4413,7 +4429,7 @@ const it = {
|
|
|
4413
4429
|
},
|
|
4414
4430
|
t
|
|
4415
4431
|
);
|
|
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:
|
|
4432
|
+
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
4433
|
aa,
|
|
4418
4434
|
{
|
|
4419
4435
|
key: s,
|
|
@@ -4429,7 +4445,7 @@ const it = {
|
|
|
4429
4445
|
Yo,
|
|
4430
4446
|
{
|
|
4431
4447
|
kind: d,
|
|
4432
|
-
onClose:
|
|
4448
|
+
onClose: f,
|
|
4433
4449
|
removable: m,
|
|
4434
4450
|
action: u
|
|
4435
4451
|
},
|
|
@@ -4444,20 +4460,20 @@ const it = {
|
|
|
4444
4460
|
}, Bt = "textarea", Jl = e.forwardRef(
|
|
4445
4461
|
(_, o) => {
|
|
4446
4462
|
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 =
|
|
4463
|
+
const { disabled: c, onBlur: n, onFocus: s } = r, [d, i] = e.useState(!1), m = g(t, At[Bt], {
|
|
4448
4464
|
[At[`${Bt}--disabled`]]: c,
|
|
4449
4465
|
[At[`${Bt}--focused`]]: d,
|
|
4450
4466
|
[At[`${Bt}--error`]]: a
|
|
4451
4467
|
}), u = (v) => {
|
|
4452
4468
|
i(!1), n == null || n(v);
|
|
4453
|
-
},
|
|
4469
|
+
}, f = (v) => {
|
|
4454
4470
|
i(!0), s == null || s(v);
|
|
4455
4471
|
};
|
|
4456
4472
|
return /* @__PURE__ */ e.createElement("div", { className: m }, /* @__PURE__ */ e.createElement(
|
|
4457
4473
|
"textarea",
|
|
4458
4474
|
A(w({}, r), {
|
|
4459
4475
|
ref: o,
|
|
4460
|
-
onFocus:
|
|
4476
|
+
onFocus: f,
|
|
4461
4477
|
onBlur: u
|
|
4462
4478
|
})
|
|
4463
4479
|
));
|
|
@@ -4495,7 +4511,7 @@ const it = {
|
|
|
4495
4511
|
"file-upload-progress__wrapper__header__title": "lc-FileUploadProgress-module__file-upload-progress__wrapper__header__title___2IVuv",
|
|
4496
4512
|
"file-upload-progress__wrapper__header__title--success": "lc-FileUploadProgress-module__file-upload-progress__wrapper__header__title--success___E6DQl",
|
|
4497
4513
|
"file-upload-progress__wrapper__header__title--error": "lc-FileUploadProgress-module__file-upload-progress__wrapper__header__title--error___5BPpI"
|
|
4498
|
-
}, Ce = "file-upload-progress", qt = `${Ce}__wrapper__header__title`,
|
|
4514
|
+
}, Ce = "file-upload-progress", qt = `${Ce}__wrapper__header__title`, Ko = e.forwardRef(
|
|
4499
4515
|
({
|
|
4500
4516
|
actionsVisibility: t = "hidden",
|
|
4501
4517
|
className: a,
|
|
@@ -4509,7 +4525,7 @@ const it = {
|
|
|
4509
4525
|
}, 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
4526
|
"div",
|
|
4511
4527
|
{
|
|
4512
|
-
className:
|
|
4528
|
+
className: g(
|
|
4513
4529
|
me[`${Ce}__icon`],
|
|
4514
4530
|
me[`${Ce}__icon--success`]
|
|
4515
4531
|
)
|
|
@@ -4518,14 +4534,14 @@ const it = {
|
|
|
4518
4534
|
), /* @__PURE__ */ e.createElement(
|
|
4519
4535
|
"div",
|
|
4520
4536
|
{
|
|
4521
|
-
className:
|
|
4537
|
+
className: g(me[`${Ce}__wrapper`], {
|
|
4522
4538
|
[me[`${Ce}__wrapper--with-icon`]]: r
|
|
4523
4539
|
})
|
|
4524
4540
|
},
|
|
4525
4541
|
/* @__PURE__ */ e.createElement("div", { className: me[`${Ce}__wrapper__header`] }, o && /* @__PURE__ */ e.createElement(
|
|
4526
4542
|
"div",
|
|
4527
4543
|
{
|
|
4528
|
-
className:
|
|
4544
|
+
className: g(me[qt], {
|
|
4529
4545
|
[me[`${qt}--success`]]: c === "success",
|
|
4530
4546
|
[me[`${qt}--error`]]: c === "error"
|
|
4531
4547
|
})
|
|
@@ -4536,7 +4552,7 @@ const it = {
|
|
|
4536
4552
|
), t !== "hidden" && /* @__PURE__ */ e.createElement(
|
|
4537
4553
|
"div",
|
|
4538
4554
|
{
|
|
4539
|
-
className:
|
|
4555
|
+
className: g({
|
|
4540
4556
|
[me[`${Ce}__wrapper__header__actions`]]: t === "hover"
|
|
4541
4557
|
})
|
|
4542
4558
|
},
|
|
@@ -4580,14 +4596,14 @@ const it = {
|
|
|
4580
4596
|
"upload-bar__files--exit-done": "lc-UploadBar-module__upload-bar__files--exit-done___2I72G",
|
|
4581
4597
|
"upload-bar__files-wrapper": "lc-UploadBar-module__upload-bar__files-wrapper___93bs8",
|
|
4582
4598
|
"upload-bar__files__list": "lc-UploadBar-module__upload-bar__files__list___QJFEq"
|
|
4583
|
-
}, Q = "upload-bar", Ne = `${Q}__wrapper__header`,
|
|
4599
|
+
}, Q = "upload-bar", Ne = `${Q}__wrapper__header`, jo = 300, Zo = (t, a) => t === "success" ? /* @__PURE__ */ e.createElement("div", { className: R[`${Ne}__success-icon`] }, /* @__PURE__ */ e.createElement(D, { source: ta })) : t === "error" ? /* @__PURE__ */ e.createElement("div", { className: R[`${Ne}__error-icon`] }, /* @__PURE__ */ e.createElement(D, { source: ir })) : /* @__PURE__ */ e.createElement(
|
|
4584
4600
|
go,
|
|
4585
4601
|
{
|
|
4586
4602
|
className: R[`${Ne}__loader`],
|
|
4587
4603
|
status: t,
|
|
4588
4604
|
progressValue: a
|
|
4589
4605
|
}
|
|
4590
|
-
),
|
|
4606
|
+
), Kl = ({
|
|
4591
4607
|
children: t,
|
|
4592
4608
|
className: a,
|
|
4593
4609
|
progressValue: r,
|
|
@@ -4601,12 +4617,12 @@ const it = {
|
|
|
4601
4617
|
onCloseButtonClick: i,
|
|
4602
4618
|
onRetryButtonClick: m
|
|
4603
4619
|
}) => {
|
|
4604
|
-
const [u,
|
|
4620
|
+
const [u, f] = e.useState(_ || !1), v = c === "error", b = c === "success", p = g(R[Q], a, {
|
|
4605
4621
|
[R[`${Q}--error`]]: v,
|
|
4606
4622
|
[R[`${Q}--success`]]: b
|
|
4607
|
-
}), y = !(v && (m || i)), h = () =>
|
|
4623
|
+
}), y = !(v && (m || i)), h = () => f(!u);
|
|
4608
4624
|
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
|
-
|
|
4625
|
+
Ko,
|
|
4610
4626
|
{
|
|
4611
4627
|
title: v && l || o,
|
|
4612
4628
|
progressValue: r,
|
|
@@ -4646,7 +4662,7 @@ const it = {
|
|
|
4646
4662
|
), /* @__PURE__ */ e.createElement(La, { component: null }, u && /* @__PURE__ */ e.createElement(
|
|
4647
4663
|
aa,
|
|
4648
4664
|
{
|
|
4649
|
-
timeout:
|
|
4665
|
+
timeout: jo,
|
|
4650
4666
|
classNames: {
|
|
4651
4667
|
enter: R[`${Q}__files--enter`],
|
|
4652
4668
|
enterActive: R[`${Q}__files--enter-active`],
|
|
@@ -4676,12 +4692,12 @@ export {
|
|
|
4676
4692
|
Rt as FieldDescription,
|
|
4677
4693
|
oa as FieldError,
|
|
4678
4694
|
xl as FieldGroup,
|
|
4679
|
-
|
|
4695
|
+
Ko as FileUploadProgress,
|
|
4680
4696
|
Xt as FileUploadProgressActions,
|
|
4681
4697
|
Sl as Form,
|
|
4682
4698
|
Tl as FormField,
|
|
4683
4699
|
Dl as FormGroup,
|
|
4684
|
-
|
|
4700
|
+
je as Heading,
|
|
4685
4701
|
D as Icon,
|
|
4686
4702
|
bl as Info,
|
|
4687
4703
|
Il as Input,
|
|
@@ -4689,7 +4705,7 @@ export {
|
|
|
4689
4705
|
Al as Link,
|
|
4690
4706
|
_a as Loader,
|
|
4691
4707
|
Bl as Modal,
|
|
4692
|
-
|
|
4708
|
+
j_ as ModalBase,
|
|
4693
4709
|
xa as ModalCloseButton,
|
|
4694
4710
|
Fl as ModalHeader,
|
|
4695
4711
|
Pl as ModalPortal,
|
|
@@ -4721,6 +4737,6 @@ export {
|
|
|
4721
4737
|
Yo as Toast,
|
|
4722
4738
|
ql as ToastWrapper,
|
|
4723
4739
|
Wa as Tooltip,
|
|
4724
|
-
|
|
4740
|
+
Kl as UploadBar,
|
|
4725
4741
|
hl as UserGuide
|
|
4726
4742
|
};
|