@livechat/design-system-react-components 1.14.0 → 1.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Button/Button.d.ts +3 -4
- package/dist/components/Button/Button.stories.d.ts +3 -2
- package/dist/components/Button/types.d.ts +1 -0
- package/dist/dsrc.cjs.js +1 -1
- package/dist/dsrc.es.js +134 -126
- package/dist/preview-stats.json +553 -553
- package/dist/stories/components/StoryDescriptor.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/themes/design-token.d.ts +1 -0
- package/package.json +3 -3
package/dist/dsrc.es.js
CHANGED
|
@@ -22,7 +22,7 @@ var I = (t, a) => {
|
|
|
22
22
|
var Yt = (t, a, r) => (Vt(t, typeof a != "symbol" ? a + "" : a, r), r);
|
|
23
23
|
import * as e from "react";
|
|
24
24
|
import { useReducer as $r, useRef as wr, useEffect as st, useCallback as Ct, useMemo as Nt } from "react";
|
|
25
|
-
import { Check as Gt, Close as
|
|
25
|
+
import { Check as Gt, Close as Se, ChevronLeft as Ua, ChevronDown as $t, Info as la, Warning as Wa, CheckCircle as Va, Block as Ya, Person as Cr, ChevronUp as Ut, DoubleArrowLeft as Nr, ChevronRight as ta, DoubleArrowRight as xr, VisibilityOn as Sr, VisibilityOff as Dr, Search as Tr, LockBlackFilled as Br, Refresh as Ar, Error as Ir } from "@livechat/design-system-icons";
|
|
26
26
|
import m from "clsx";
|
|
27
27
|
import { useFloating as na, offset as sa, flip as ia, autoUpdate as da, useClick as ua, useDismiss as ma, useRole as pa, useInteractions as ga, useTransitionStyles as qa, shift as Ka, arrow as Pr, useHover as Fr, safePolygon as Rr, useFocus as Mr, useTransitionStatus as Lr, FloatingArrow as Or, FloatingFocusManager as Hr } from "@floating-ui/react";
|
|
28
28
|
import Ja from "lodash.debounce";
|
|
@@ -45,6 +45,7 @@ const Rc = {
|
|
|
45
45
|
SurfaceSecondaryHover: "--surface-secondary-hover",
|
|
46
46
|
SurfaceSecondaryActive: "--surface-secondary-active",
|
|
47
47
|
SurfaceSecondaryDisabled: "--surface-secondary-disabled",
|
|
48
|
+
SurfacePrimaryHoverOpacity: "--surface-primary-hover-opacity",
|
|
48
49
|
SurfaceBasicHover: "--surface-basic-hover",
|
|
49
50
|
SurfacePrimaryHover: "--surface-primary-hover",
|
|
50
51
|
SurfaceBasicActive: "--surface-basic-active",
|
|
@@ -491,7 +492,7 @@ const Rc = {
|
|
|
491
492
|
]);
|
|
492
493
|
const b = s !== void 0, [k, v] = e.useState(c), $ = e.useRef(-1), w = e.useRef(null), T = b ? s : k, E = () => {
|
|
493
494
|
T ? (i == null || i(), !b && v(!1)) : (d == null || d(), !b && v(!0));
|
|
494
|
-
}, { x: B, y: N, strategy:
|
|
495
|
+
}, { x: B, y: N, strategy: pe, refs: F, context: W } = na({
|
|
495
496
|
middleware: [sa(4), ia(n)],
|
|
496
497
|
placement: o,
|
|
497
498
|
open: T,
|
|
@@ -500,7 +501,7 @@ const Rc = {
|
|
|
500
501
|
whileElementsMounted: da
|
|
501
502
|
}), re = ua(W), Ae = ma(W, {
|
|
502
503
|
enabled: T
|
|
503
|
-
}), Ie = pa(W), { getReferenceProps:
|
|
504
|
+
}), Ie = pa(W), { getReferenceProps: De, getFloatingProps: ze } = ga([
|
|
504
505
|
re,
|
|
505
506
|
Ae,
|
|
506
507
|
Ie
|
|
@@ -541,7 +542,7 @@ const Rc = {
|
|
|
541
542
|
}, [T, z]);
|
|
542
543
|
const K = (A, J) => {
|
|
543
544
|
$.current = A, J == null || J(), !b && !l && (v(!1), i == null || i());
|
|
544
|
-
},
|
|
545
|
+
}, ge = (A, J) => A.groupHeader ? /* @__PURE__ */ e.createElement(
|
|
545
546
|
"li",
|
|
546
547
|
{
|
|
547
548
|
key: A.key,
|
|
@@ -572,7 +573,7 @@ const Rc = {
|
|
|
572
573
|
D(y({
|
|
573
574
|
"data-testid": "action-menu-trigger-button",
|
|
574
575
|
ref: F.setReference
|
|
575
|
-
},
|
|
576
|
+
}, De()), {
|
|
576
577
|
className: a
|
|
577
578
|
}),
|
|
578
579
|
_
|
|
@@ -582,7 +583,7 @@ const Rc = {
|
|
|
582
583
|
ref: F.setFloating,
|
|
583
584
|
className: Ge[Ue],
|
|
584
585
|
style: y({
|
|
585
|
-
position:
|
|
586
|
+
position: pe,
|
|
586
587
|
top: N != null ? N : "",
|
|
587
588
|
left: B != null ? B : ""
|
|
588
589
|
}, Ye)
|
|
@@ -594,7 +595,7 @@ const Rc = {
|
|
|
594
595
|
role: "menu",
|
|
595
596
|
ref: w
|
|
596
597
|
}),
|
|
597
|
-
r.map(
|
|
598
|
+
r.map(ge)
|
|
598
599
|
)
|
|
599
600
|
));
|
|
600
601
|
}, qr = "lc-Typography-module__caps___c3eNJ", lt = {
|
|
@@ -749,11 +750,15 @@ const Rc = {
|
|
|
749
750
|
primaryColor: "var(--content-invert-primary)",
|
|
750
751
|
secondaryColor: "var(--surface-invert-secondary)"
|
|
751
752
|
};
|
|
752
|
-
}, t_ = "lc-Button-module__btn___aijZJ", a_ = "lc-Button-module__btn__loader___c8zZz", r_ = "lc-Button-module__btn__icon___GVExB",
|
|
753
|
+
}, t_ = "lc-Button-module__btn___aijZJ", a_ = "lc-Button-module__btn__loader___c8zZz", r_ = "lc-Button-module__btn__icon___GVExB", se = {
|
|
753
754
|
btn: t_,
|
|
754
755
|
"btn--disabled": "lc-Button-module__btn--disabled___lXBav",
|
|
755
756
|
"btn--full-width": "lc-Button-module__btn--full-width___kdbAr",
|
|
757
|
+
"btn--xcompact": "lc-Button-module__btn--xcompact___s-zG-",
|
|
758
|
+
"btn--with-left-icon": "lc-Button-module__btn--with-left-icon___MOLWC",
|
|
759
|
+
"btn--with-right-icon": "lc-Button-module__btn--with-right-icon___R0Xum",
|
|
756
760
|
"btn--compact": "lc-Button-module__btn--compact___4eptQ",
|
|
761
|
+
"btn--medium": "lc-Button-module__btn--medium___wfUJA",
|
|
757
762
|
"btn--large": "lc-Button-module__btn--large___lb-z6",
|
|
758
763
|
"btn--basic": "lc-Button-module__btn--basic___Jc2gD",
|
|
759
764
|
"btn--primary": "lc-Button-module__btn--primary___ajbjQ",
|
|
@@ -775,7 +780,7 @@ const Rc = {
|
|
|
775
780
|
"btn__icon--right": "lc-Button-module__btn__icon--right___fHr3D",
|
|
776
781
|
"btn--icon-only": "lc-Button-module__btn--icon-only___bF5pW",
|
|
777
782
|
"btn--icon-only--bg": "lc-Button-module__btn--icon-only--bg___X-4V2"
|
|
778
|
-
},
|
|
783
|
+
}, ie = "btn", U = e.forwardRef(
|
|
779
784
|
(g, f) => {
|
|
780
785
|
var b = g, {
|
|
781
786
|
loading: t = !1,
|
|
@@ -808,15 +813,16 @@ const Rc = {
|
|
|
808
813
|
]);
|
|
809
814
|
const k = t || a, v = !d && l, $ = ["text", "link", "link-light"].includes(o), w = p ? "a" : "button", T = m(
|
|
810
815
|
i,
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
816
|
+
se[ie],
|
|
817
|
+
se[`${ie}--${o}`],
|
|
818
|
+
se[`${ie}--${c}`],
|
|
814
819
|
{
|
|
815
|
-
[
|
|
816
|
-
[
|
|
817
|
-
[
|
|
818
|
-
[
|
|
819
|
-
[
|
|
820
|
+
[se[`${ie}--loading`]]: t,
|
|
821
|
+
[se[`${ie}--full-width`]]: _,
|
|
822
|
+
[se[`${ie}--with-${n}-icon`]]: l && !v && !$,
|
|
823
|
+
[se[`${ie}--icon-only`]]: v,
|
|
824
|
+
[se[`${ie}--icon-only--bg`]]: v && $,
|
|
825
|
+
[se[`${ie}--disabled`]]: k
|
|
820
826
|
}
|
|
821
827
|
);
|
|
822
828
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -833,18 +839,18 @@ const Rc = {
|
|
|
833
839
|
y({
|
|
834
840
|
size: "small",
|
|
835
841
|
label: s,
|
|
836
|
-
className:
|
|
842
|
+
className: se[`${ie}__loader`]
|
|
837
843
|
}, e_(o))
|
|
838
844
|
),
|
|
839
845
|
l && e.cloneElement(l, {
|
|
840
846
|
className: m(
|
|
841
847
|
l.props.className,
|
|
842
|
-
|
|
843
|
-
|
|
848
|
+
se[`${ie}__icon`],
|
|
849
|
+
se[`${ie}__icon--${n}`]
|
|
844
850
|
),
|
|
845
851
|
disabled: a
|
|
846
852
|
}),
|
|
847
|
-
/* @__PURE__ */ e.createElement("div", { className:
|
|
853
|
+
/* @__PURE__ */ e.createElement("div", { className: se[`${ie}__content`] }, d)
|
|
848
854
|
);
|
|
849
855
|
}
|
|
850
856
|
);
|
|
@@ -922,19 +928,19 @@ const o_ = "lc-Tooltip-module__tooltip___QOOAr", c_ = "lc-Tooltip-module__toolti
|
|
|
922
928
|
useDismissHookProps: E,
|
|
923
929
|
useClickHookProps: B,
|
|
924
930
|
hoverOutDelayTimeout: N = 100,
|
|
925
|
-
arrowOffsetY:
|
|
931
|
+
arrowOffsetY: pe,
|
|
926
932
|
arrowOffsetX: F,
|
|
927
933
|
closeOnTriggerBlur: W = !1,
|
|
928
934
|
floatingStrategy: re
|
|
929
935
|
}) => {
|
|
930
|
-
const Ae = n !== void 0, [Ie,
|
|
936
|
+
const Ae = n !== void 0, [Ie, De] = e.useState(!1), ze = e.useRef(null), Ye = Ae ? n : Ie, qe = c || o, R = m(
|
|
931
937
|
C[xt],
|
|
932
938
|
a,
|
|
933
939
|
qe && C[`${xt}--${qe}`],
|
|
934
940
|
s && C[`${xt}--full-space`]
|
|
935
941
|
), z = typeof _ == "function", K = (ve) => {
|
|
936
|
-
ve !== Ye && (ve ? d == null || d() : i == null || i(), !Ae &&
|
|
937
|
-
},
|
|
942
|
+
ve !== Ye && (ve ? d == null || d() : i == null || i(), !Ae && De(ve));
|
|
943
|
+
}, ge = (ve) => p ? ve != null ? ve : u : 0, A = (ve) => ve != null ? ve : g, {
|
|
938
944
|
floatingStyles: J,
|
|
939
945
|
refs: X,
|
|
940
946
|
context: _e,
|
|
@@ -962,8 +968,8 @@ const o_ = "lc-Tooltip-module__tooltip___QOOAr", c_ = "lc-Tooltip-module__toolti
|
|
|
962
968
|
handleClose: W ? null : Rr()
|
|
963
969
|
}), dr = Mr(_e), ur = ma(_e, E), mr = pa(_e, { role: "tooltip" }), pr = ua(_e, B), { isMounted: gr, styles: br } = qa(_e, {
|
|
964
970
|
duration: {
|
|
965
|
-
open:
|
|
966
|
-
close:
|
|
971
|
+
open: ge(h),
|
|
972
|
+
close: ge(f)
|
|
967
973
|
}
|
|
968
974
|
}), { status: fr } = Lr(_e), { getReferenceProps: vr, getFloatingProps: hr } = ga([
|
|
969
975
|
ir,
|
|
@@ -998,7 +1004,7 @@ const o_ = "lc-Tooltip-module__tooltip___QOOAr", c_ = "lc-Tooltip-module__toolti
|
|
|
998
1004
|
className: C[`${xt}__arrow`],
|
|
999
1005
|
ref: ze,
|
|
1000
1006
|
context: _e,
|
|
1001
|
-
style: __(
|
|
1007
|
+
style: __(pe, F, sr, Ke)
|
|
1002
1008
|
}
|
|
1003
1009
|
)
|
|
1004
1010
|
));
|
|
@@ -1008,7 +1014,7 @@ const o_ = "lc-Tooltip-module__tooltip___QOOAr", c_ = "lc-Tooltip-module__toolti
|
|
|
1008
1014
|
className: C[`${mt}-close`],
|
|
1009
1015
|
onClick: c
|
|
1010
1016
|
},
|
|
1011
|
-
/* @__PURE__ */ e.createElement(x, { source:
|
|
1017
|
+
/* @__PURE__ */ e.createElement(x, { source: Se, kind: o ? er(o) : "primary" })
|
|
1012
1018
|
), a && /* @__PURE__ */ e.createElement(
|
|
1013
1019
|
"div",
|
|
1014
1020
|
{
|
|
@@ -1027,7 +1033,7 @@ const o_ = "lc-Tooltip-module__tooltip___QOOAr", c_ = "lc-Tooltip-module__toolti
|
|
|
1027
1033
|
)
|
|
1028
1034
|
},
|
|
1029
1035
|
r
|
|
1030
|
-
)),
|
|
1036
|
+
)), Te = "tooltip", qc = ({
|
|
1031
1037
|
header: t,
|
|
1032
1038
|
text: a,
|
|
1033
1039
|
image: r,
|
|
@@ -1038,26 +1044,26 @@ const o_ = "lc-Tooltip-module__tooltip___QOOAr", c_ = "lc-Tooltip-module__toolti
|
|
|
1038
1044
|
secondaryButton: n
|
|
1039
1045
|
}) => {
|
|
1040
1046
|
const s = (i) => i === "invert" ? "secondary" : "high-contrast";
|
|
1041
|
-
return /* @__PURE__ */ e.createElement("div", { className: C[`${
|
|
1047
|
+
return /* @__PURE__ */ e.createElement("div", { className: C[`${Te}__interactive`] }, _ && /* @__PURE__ */ e.createElement(
|
|
1042
1048
|
"button",
|
|
1043
1049
|
{
|
|
1044
|
-
className: C[`${
|
|
1050
|
+
className: C[`${Te}-close`],
|
|
1045
1051
|
onClick: c
|
|
1046
1052
|
},
|
|
1047
|
-
/* @__PURE__ */ e.createElement(x, { source:
|
|
1048
|
-
), r && /* @__PURE__ */ e.createElement("div", { className: C[`${
|
|
1053
|
+
/* @__PURE__ */ e.createElement(x, { source: Se, kind: o ? er(o) : "primary" })
|
|
1054
|
+
), r && /* @__PURE__ */ e.createElement("div", { className: C[`${Te}-image-container`] }, /* @__PURE__ */ e.createElement(
|
|
1049
1055
|
"img",
|
|
1050
1056
|
{
|
|
1051
|
-
className: C[`${
|
|
1057
|
+
className: C[`${Te}-image`],
|
|
1052
1058
|
src: r.src,
|
|
1053
1059
|
alt: r.alt
|
|
1054
1060
|
}
|
|
1055
|
-
)), t && /* @__PURE__ */ e.createElement("div", { className: C[`${
|
|
1061
|
+
)), t && /* @__PURE__ */ e.createElement("div", { className: C[`${Te}-header`] }, t), /* @__PURE__ */ e.createElement("div", { className: C[`${Te}-text`] }, a), /* @__PURE__ */ e.createElement(
|
|
1056
1062
|
"div",
|
|
1057
1063
|
{
|
|
1058
1064
|
className: m(
|
|
1059
|
-
C[`${
|
|
1060
|
-
C[`${
|
|
1065
|
+
C[`${Te}-footer`],
|
|
1066
|
+
C[`${Te}-footer--interactive`]
|
|
1061
1067
|
)
|
|
1062
1068
|
},
|
|
1063
1069
|
/* @__PURE__ */ e.createElement(
|
|
@@ -1071,8 +1077,8 @@ const o_ = "lc-Tooltip-module__tooltip___QOOAr", c_ = "lc-Tooltip-module__toolti
|
|
|
1071
1077
|
/* @__PURE__ */ e.createElement(
|
|
1072
1078
|
U,
|
|
1073
1079
|
{
|
|
1074
|
-
className: m(C[`${
|
|
1075
|
-
[C[`${
|
|
1080
|
+
className: m(C[`${Te}-footer-secondary`], {
|
|
1081
|
+
[C[`${Te}-footer-secondary-invert`]]: o === "invert"
|
|
1076
1082
|
}),
|
|
1077
1083
|
kind: n.kind || "text",
|
|
1078
1084
|
onClick: n.handleClick
|
|
@@ -1518,7 +1524,7 @@ const xa = 8, Sa = "guide-tooltip", Da = (t, a) => new s_(t, a), Kc = (t) => {
|
|
|
1518
1524
|
className: he[`${ke}__close-icon`],
|
|
1519
1525
|
size: "compact",
|
|
1520
1526
|
kind: "plain",
|
|
1521
|
-
icon: /* @__PURE__ */ e.createElement(x, { source:
|
|
1527
|
+
icon: /* @__PURE__ */ e.createElement(x, { source: Se }),
|
|
1522
1528
|
onClick: c
|
|
1523
1529
|
}
|
|
1524
1530
|
));
|
|
@@ -1551,7 +1557,7 @@ function y_(t) {
|
|
|
1551
1557
|
}
|
|
1552
1558
|
return a && ba(a, "#FFFFFF") > 3 ? "var(--color-white)" : "var(--color-black)";
|
|
1553
1559
|
}
|
|
1554
|
-
const E_ = "lc-Avatar-module__avatar___1zTCE", $_ = "lc-Avatar-module__avatar__status___nX2Ls", w_ = "lc-Avatar-module__avatar__rim___RCQ8Q", C_ = "lc-Avatar-module__avatar__image___YqfqE",
|
|
1560
|
+
const E_ = "lc-Avatar-module__avatar___1zTCE", $_ = "lc-Avatar-module__avatar__status___nX2Ls", w_ = "lc-Avatar-module__avatar__rim___RCQ8Q", C_ = "lc-Avatar-module__avatar__image___YqfqE", de = {
|
|
1555
1561
|
avatar: E_,
|
|
1556
1562
|
avatar__status: $_,
|
|
1557
1563
|
"avatar__status--available": "lc-Avatar-module__avatar__status--available___tcpFg",
|
|
@@ -1612,21 +1618,21 @@ const E_ = "lc-Avatar-module__avatar___1zTCE", $_ = "lc-Avatar-module__avatar__s
|
|
|
1612
1618
|
withRim: i = !1
|
|
1613
1619
|
}) => {
|
|
1614
1620
|
const d = s === "image" && !c, [p, u] = e.useState(d), h = s === "image" && !!c && !p, f = s === "text", g = ["xxxsmall", "xxsmall", "xsmall"].includes(o) ? 1 : 2, b = k_(n, g), k = r || h_(n), v = k ? y_(k) : void 0, $ = f ? { backgroundColor: k } : {}, w = m(y({
|
|
1615
|
-
[
|
|
1616
|
-
[
|
|
1617
|
-
[
|
|
1618
|
-
[
|
|
1621
|
+
[de[Z]]: !0,
|
|
1622
|
+
[de[`${Z}--${_}`]]: !0,
|
|
1623
|
+
[de[`${Z}--${o}`]]: !0,
|
|
1624
|
+
[de[`${Z}--with-rim`]]: i
|
|
1619
1625
|
}, a ? { [`${a}`]: a } : {})), T = m(
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
...l ? [
|
|
1626
|
+
de[`${Z}__status`],
|
|
1627
|
+
de[`${Z}__status--${_}`],
|
|
1628
|
+
de[`${Z}__status--${o}`],
|
|
1629
|
+
...l ? [de[`${Z}__status--${l}`]] : []
|
|
1624
1630
|
), E = m(
|
|
1625
|
-
|
|
1626
|
-
|
|
1631
|
+
de[`${Z}__icon`],
|
|
1632
|
+
de[`${Z}__icon--${o}`]
|
|
1627
1633
|
), B = m(
|
|
1628
|
-
|
|
1629
|
-
|
|
1634
|
+
de[`${Z}__rim`],
|
|
1635
|
+
de[`${Z}__rim--${o}`]
|
|
1630
1636
|
), N = e.useCallback(() => u(!0), []);
|
|
1631
1637
|
return e.useEffect(() => {
|
|
1632
1638
|
u(d);
|
|
@@ -1645,7 +1651,7 @@ const E_ = "lc-Avatar-module__avatar___1zTCE", $_ = "lc-Avatar-module__avatar__s
|
|
|
1645
1651
|
), h && /* @__PURE__ */ e.createElement(
|
|
1646
1652
|
"img",
|
|
1647
1653
|
{
|
|
1648
|
-
className:
|
|
1654
|
+
className: de[`${Z}__image`],
|
|
1649
1655
|
src: c,
|
|
1650
1656
|
alt: t,
|
|
1651
1657
|
onError: N
|
|
@@ -1744,7 +1750,7 @@ const A_ = "lc-SegmentedControl-module__btn___tfsvL", Bt = {
|
|
|
1744
1750
|
);
|
|
1745
1751
|
});
|
|
1746
1752
|
return /* @__PURE__ */ e.createElement("div", { role: "group", className: n }, u);
|
|
1747
|
-
}, P_ = "lc-Card-module__card___GqMm2", F_ = "lc-Card-module__card__header___0ptfD", R_ = "lc-Card-module__card__header__image___QMwSu", M_ = "lc-Card-module__card__header__heading___Wkikx", L_ = "lc-Card-module__card__header__heading__title___Uxi8s", O_ = "lc-Card-module__card__header__heading__description___6LnOK", H_ = "lc-Card-module__card__content___KuDcc", z_ = "lc-Card-module__card__actions___q9sAo", G_ = "lc-Card-module__card__actions__line___TF1bt", U_ = "lc-Card-module__card__actions__buttons___PDMMR",
|
|
1753
|
+
}, P_ = "lc-Card-module__card___GqMm2", F_ = "lc-Card-module__card__header___0ptfD", R_ = "lc-Card-module__card__header__image___QMwSu", M_ = "lc-Card-module__card__header__heading___Wkikx", L_ = "lc-Card-module__card__header__heading__title___Uxi8s", O_ = "lc-Card-module__card__header__heading__description___6LnOK", H_ = "lc-Card-module__card__content___KuDcc", z_ = "lc-Card-module__card__actions___q9sAo", G_ = "lc-Card-module__card__actions__line___TF1bt", U_ = "lc-Card-module__card__actions__buttons___PDMMR", ue = {
|
|
1748
1754
|
card: P_,
|
|
1749
1755
|
card__header: F_,
|
|
1750
1756
|
card__header__image: R_,
|
|
@@ -1778,28 +1784,28 @@ const A_ = "lc-SegmentedControl-module__btn___tfsvL", Bt = {
|
|
|
1778
1784
|
"src",
|
|
1779
1785
|
"title"
|
|
1780
1786
|
]);
|
|
1781
|
-
const [p, u] = e.useState(!1), h = p ? Ut : $t, f = p ? "Hide" : "Show more", g = (a == null ? void 0 : a.length) > 0, b = !!c, k = g || b, v = n, $ = l, w = $ ? "" :
|
|
1782
|
-
return /* @__PURE__ */ e.createElement("div", y({ className: m(
|
|
1787
|
+
const [p, u] = e.useState(!1), h = p ? Ut : $t, f = p ? "Hide" : "Show more", g = (a == null ? void 0 : a.length) > 0, b = !!c, k = g || b, v = n, $ = l, w = $ ? "" : ue[W_];
|
|
1788
|
+
return /* @__PURE__ */ e.createElement("div", y({ className: m(ue[Et], _) }, s), v && /* @__PURE__ */ e.createElement("div", { className: m(ue[zt], w) }, $ && /* @__PURE__ */ e.createElement(
|
|
1783
1789
|
"img",
|
|
1784
1790
|
{
|
|
1785
1791
|
alt: t,
|
|
1786
|
-
className:
|
|
1792
|
+
className: ue[`${zt}__image`],
|
|
1787
1793
|
src: l
|
|
1788
1794
|
}
|
|
1789
|
-
), /* @__PURE__ */ e.createElement("div", { className:
|
|
1795
|
+
), /* @__PURE__ */ e.createElement("div", { className: ue[qt] }, /* @__PURE__ */ e.createElement(Ze, { size: "sm", className: ue[`${qt}__title`] }, n), /* @__PURE__ */ e.createElement(M, { size: "sm", className: ue[`${qt}__description`] }, o))), /* @__PURE__ */ e.createElement(M, { as: "div", size: "md", className: ue[`${Et}__content`] }, r), p && /* @__PURE__ */ e.createElement(
|
|
1790
1796
|
M,
|
|
1791
1797
|
{
|
|
1792
1798
|
as: "div",
|
|
1793
1799
|
size: "md",
|
|
1794
|
-
className:
|
|
1800
|
+
className: ue[`${Et}__expanded-content`]
|
|
1795
1801
|
},
|
|
1796
1802
|
c
|
|
1797
|
-
), k && /* @__PURE__ */ e.createElement("div", { className:
|
|
1803
|
+
), k && /* @__PURE__ */ e.createElement("div", { className: ue[At] }, /* @__PURE__ */ e.createElement("div", { className: ue[`${At}__line`] }), /* @__PURE__ */ e.createElement("div", { className: ue[`${At}__buttons`] }, g && a.map(
|
|
1798
1804
|
({ kind: T, onClick: E, children: B }) => /* @__PURE__ */ e.createElement(U, { size: "compact", kind: T, onClick: E }, B)
|
|
1799
1805
|
), b && /* @__PURE__ */ e.createElement(
|
|
1800
1806
|
U,
|
|
1801
1807
|
{
|
|
1802
|
-
className:
|
|
1808
|
+
className: ue[`${At}__buttons-expander`],
|
|
1803
1809
|
kind: "link",
|
|
1804
1810
|
iconPosition: "right",
|
|
1805
1811
|
icon: /* @__PURE__ */ e.createElement(x, { source: h }),
|
|
@@ -2678,11 +2684,12 @@ const tl = (t) => {
|
|
|
2678
2684
|
/* @__PURE__ */ e.createElement("div", { className: It[`${Pt}__header`] }, /* @__PURE__ */ e.createElement(Ze, { as: "div", size: "sm", className: It[`${Pt}__label`] }, r), _ && /* @__PURE__ */ e.createElement(M, { as: "div", size: "sm", className: It[`${Pt}__helper`] }, _)),
|
|
2679
2685
|
a
|
|
2680
2686
|
);
|
|
2681
|
-
}, go = "lc-Input-module__input___qeMAQ",
|
|
2687
|
+
}, go = "lc-Input-module__input___qeMAQ", Ne = {
|
|
2682
2688
|
input: go,
|
|
2683
2689
|
"input--focused": "lc-Input-module__input--focused___wQH5-",
|
|
2684
2690
|
"input--disabled": "lc-Input-module__input--disabled___HidXX",
|
|
2685
2691
|
"input--crop": "lc-Input-module__input--crop___uzJS8",
|
|
2692
|
+
"input--read-only": "lc-Input-module__input--read-only___4O-G3",
|
|
2686
2693
|
"input--error": "lc-Input-module__input--error___DlDbC",
|
|
2687
2694
|
"input--xsmall": "lc-Input-module__input--xsmall___9u99K",
|
|
2688
2695
|
"input--compact": "lc-Input-module__input--compact___iKSQZ",
|
|
@@ -2692,13 +2699,13 @@ const tl = (t) => {
|
|
|
2692
2699
|
"input__icon--left": "lc-Input-module__input__icon--left___BcySs",
|
|
2693
2700
|
"input__icon--right": "lc-Input-module__input__icon--right___VefSK",
|
|
2694
2701
|
"input__visibility-button": "lc-Input-module__input__visibility-button___eWrVe"
|
|
2695
|
-
},
|
|
2702
|
+
}, xe = "input", Ra = (t, a) => e.cloneElement(t.source, {
|
|
2696
2703
|
"data-testid": `input-icon-${t.place}`,
|
|
2697
2704
|
className: m(
|
|
2698
|
-
|
|
2699
|
-
|
|
2705
|
+
Ne[`${xe}__icon`],
|
|
2706
|
+
Ne[`${xe}__icon--${t.place}`],
|
|
2700
2707
|
{
|
|
2701
|
-
[
|
|
2708
|
+
[Ne[`${xe}__icon--disabled`]]: a
|
|
2702
2709
|
}
|
|
2703
2710
|
)
|
|
2704
2711
|
}), nl = e.forwardRef(
|
|
@@ -2720,13 +2727,14 @@ const tl = (t) => {
|
|
|
2720
2727
|
]);
|
|
2721
2728
|
const [d, p] = e.useState(!1), [u, h] = e.useState(!1), { type: f, onFocus: g, onBlur: b } = l, k = m(
|
|
2722
2729
|
o,
|
|
2723
|
-
|
|
2724
|
-
|
|
2730
|
+
Ne[xe],
|
|
2731
|
+
Ne[`${xe}--${t}`],
|
|
2725
2732
|
{
|
|
2726
|
-
[
|
|
2727
|
-
[
|
|
2728
|
-
[
|
|
2729
|
-
[
|
|
2733
|
+
[Ne[`${xe}--disabled`]]: r,
|
|
2734
|
+
[Ne[`${xe}--focused`]]: d,
|
|
2735
|
+
[Ne[`${xe}--error`]]: a,
|
|
2736
|
+
[Ne[`${xe}--crop`]]: c,
|
|
2737
|
+
[Ne[`${xe}--read-only`]]: l.readOnly
|
|
2730
2738
|
}
|
|
2731
2739
|
), v = r ? "var(--content-disabled)" : "var(--content-default)", $ = u ? Sr : Dr, w = _ && _.place === "left", T = _ && f !== "password" && _.place === "right";
|
|
2732
2740
|
return /* @__PURE__ */ e.createElement("div", { className: k, "aria-disabled": r, "tab-index": "0" }, w && Ra(_, r), /* @__PURE__ */ e.createElement(
|
|
@@ -2750,7 +2758,7 @@ const tl = (t) => {
|
|
|
2750
2758
|
size: "compact",
|
|
2751
2759
|
icon: /* @__PURE__ */ e.createElement(x, { customColor: v, source: $ }),
|
|
2752
2760
|
onClick: () => h((E) => !E),
|
|
2753
|
-
className:
|
|
2761
|
+
className: Ne[`${xe}__visibility-button`]
|
|
2754
2762
|
}
|
|
2755
2763
|
));
|
|
2756
2764
|
}
|
|
@@ -2775,7 +2783,7 @@ const tl = (t) => {
|
|
|
2775
2783
|
)
|
|
2776
2784
|
}, r)
|
|
2777
2785
|
);
|
|
2778
|
-
}, fo = "lc-Modal-module__modal__body___M-jmN", vo = "lc-Modal-module__modal__header___Fp5VE", ho = "lc-Modal-module__modal__heading___G9KVK", ko = "lc-Modal-module__modal__footer___2LYdc",
|
|
2786
|
+
}, fo = "lc-Modal-module__modal__body___M-jmN", vo = "lc-Modal-module__modal__header___Fp5VE", ho = "lc-Modal-module__modal__heading___G9KVK", ko = "lc-Modal-module__modal__footer___2LYdc", me = {
|
|
2779
2787
|
"modal-base": "lc-Modal-module__modal-base___hbL1U",
|
|
2780
2788
|
"modal-base--full-space": "lc-Modal-module__modal-base--full-space___KcGFL",
|
|
2781
2789
|
"modal-base__overlay": "lc-Modal-module__modal-base__overlay___kCQ8t",
|
|
@@ -2805,9 +2813,9 @@ const tl = (t) => {
|
|
|
2805
2813
|
"fullSpaceContent"
|
|
2806
2814
|
]);
|
|
2807
2815
|
const i = m(
|
|
2808
|
-
|
|
2816
|
+
me[Ft],
|
|
2809
2817
|
a,
|
|
2810
|
-
c &&
|
|
2818
|
+
c && me[`${Ft}--full-space`]
|
|
2811
2819
|
);
|
|
2812
2820
|
e.useEffect(() => {
|
|
2813
2821
|
if (!_)
|
|
@@ -2826,8 +2834,8 @@ const tl = (t) => {
|
|
|
2826
2834
|
"data-testid": "lc-modal-overlay",
|
|
2827
2835
|
onMouseDown: d,
|
|
2828
2836
|
className: m(
|
|
2829
|
-
|
|
2830
|
-
|
|
2837
|
+
me[`${Ft}__overlay`],
|
|
2838
|
+
me[`${Ft}__overlay--visible`]
|
|
2831
2839
|
)
|
|
2832
2840
|
},
|
|
2833
2841
|
/* @__PURE__ */ e.createElement(
|
|
@@ -2850,11 +2858,11 @@ const tl = (t) => {
|
|
|
2850
2858
|
kind: "plain",
|
|
2851
2859
|
title: "Close modal",
|
|
2852
2860
|
className: m(
|
|
2853
|
-
|
|
2854
|
-
t &&
|
|
2861
|
+
me["modal-base__close"],
|
|
2862
|
+
t && me["modal-base__close--label-type"]
|
|
2855
2863
|
),
|
|
2856
2864
|
onClick: r,
|
|
2857
|
-
icon: /* @__PURE__ */ e.createElement(x, { source:
|
|
2865
|
+
icon: /* @__PURE__ */ e.createElement(x, { source: Se, size: "medium", customColor: a })
|
|
2858
2866
|
}
|
|
2859
2867
|
), Qe = "modal", il = (i) => {
|
|
2860
2868
|
var d = i, {
|
|
@@ -2876,7 +2884,7 @@ const tl = (t) => {
|
|
|
2876
2884
|
"onClose",
|
|
2877
2885
|
"contentClassName"
|
|
2878
2886
|
]);
|
|
2879
|
-
const p = m(
|
|
2887
|
+
const p = m(me[Qe], a), u = typeof t == "string", h = (f) => {
|
|
2880
2888
|
f.preventDefault(), f.stopPropagation(), l();
|
|
2881
2889
|
};
|
|
2882
2890
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -2886,12 +2894,12 @@ const tl = (t) => {
|
|
|
2886
2894
|
fullSpaceContent: o,
|
|
2887
2895
|
onClose: l
|
|
2888
2896
|
}, s),
|
|
2889
|
-
_ && /* @__PURE__ */ e.createElement("div", { className:
|
|
2897
|
+
_ && /* @__PURE__ */ e.createElement("div", { className: me[`${Qe}__label-header`] }, /* @__PURE__ */ e.createElement(
|
|
2890
2898
|
Ze,
|
|
2891
2899
|
{
|
|
2892
2900
|
size: "md",
|
|
2893
2901
|
as: "div",
|
|
2894
|
-
className:
|
|
2902
|
+
className: me[`${Qe}__label-heading`]
|
|
2895
2903
|
},
|
|
2896
2904
|
_
|
|
2897
2905
|
), /* @__PURE__ */ e.createElement(
|
|
@@ -2902,12 +2910,12 @@ const tl = (t) => {
|
|
|
2902
2910
|
onClick: h
|
|
2903
2911
|
}
|
|
2904
2912
|
)),
|
|
2905
|
-
!_ && r && /* @__PURE__ */ e.createElement("div", { className:
|
|
2913
|
+
!_ && r && /* @__PURE__ */ e.createElement("div", { className: me[`${Qe}__header`] }, /* @__PURE__ */ e.createElement(
|
|
2906
2914
|
Ze,
|
|
2907
2915
|
{
|
|
2908
2916
|
size: "md",
|
|
2909
2917
|
as: "div",
|
|
2910
|
-
className:
|
|
2918
|
+
className: me[`${Qe}__heading`]
|
|
2911
2919
|
},
|
|
2912
2920
|
r
|
|
2913
2921
|
), /* @__PURE__ */ e.createElement(Oa, { onClick: h })),
|
|
@@ -2915,11 +2923,11 @@ const tl = (t) => {
|
|
|
2915
2923
|
"div",
|
|
2916
2924
|
{
|
|
2917
2925
|
"data-testid": "modal-body",
|
|
2918
|
-
className: m(
|
|
2926
|
+
className: m(me[`${Qe}__body`], n)
|
|
2919
2927
|
},
|
|
2920
2928
|
u ? /* @__PURE__ */ e.createElement(M, { as: "div" }, t) : t
|
|
2921
2929
|
),
|
|
2922
|
-
c && /* @__PURE__ */ e.createElement("div", { className:
|
|
2930
|
+
c && /* @__PURE__ */ e.createElement("div", { className: me[`${Qe}__footer`] }, c)
|
|
2923
2931
|
);
|
|
2924
2932
|
}, dl = ({
|
|
2925
2933
|
children: t,
|
|
@@ -3361,7 +3369,7 @@ const j = {
|
|
|
3361
3369
|
className: oe[`${te}__clear-icon`],
|
|
3362
3370
|
onClick: b
|
|
3363
3371
|
},
|
|
3364
|
-
/* @__PURE__ */ e.createElement(x, { kind: "primary", size: "small", source:
|
|
3372
|
+
/* @__PURE__ */ e.createElement(x, { kind: "primary", size: "small", source: Se })
|
|
3365
3373
|
),
|
|
3366
3374
|
/* @__PURE__ */ e.createElement(
|
|
3367
3375
|
x,
|
|
@@ -3476,7 +3484,7 @@ const j = {
|
|
|
3476
3484
|
x,
|
|
3477
3485
|
{
|
|
3478
3486
|
"data-dismiss-icon": !0,
|
|
3479
|
-
source:
|
|
3487
|
+
source: Se,
|
|
3480
3488
|
size: f,
|
|
3481
3489
|
customColor: b()
|
|
3482
3490
|
}
|
|
@@ -3608,8 +3616,8 @@ const j = {
|
|
|
3608
3616
|
e.useEffect(() => {
|
|
3609
3617
|
if ($) {
|
|
3610
3618
|
const R = (K) => {
|
|
3611
|
-
var
|
|
3612
|
-
(
|
|
3619
|
+
var ge;
|
|
3620
|
+
(ge = B.current) != null && ge.contains(K.target) || w(!1);
|
|
3613
3621
|
}, z = (K) => {
|
|
3614
3622
|
K.key === G.tab && w(!1);
|
|
3615
3623
|
};
|
|
@@ -3619,7 +3627,7 @@ const j = {
|
|
|
3619
3627
|
} else
|
|
3620
3628
|
E(null);
|
|
3621
3629
|
}, [$]);
|
|
3622
|
-
const
|
|
3630
|
+
const pe = (R) => {
|
|
3623
3631
|
const z = R.target;
|
|
3624
3632
|
a || z.getAttribute("data-dismiss-icon") || w((K) => !K);
|
|
3625
3633
|
}, F = () => {
|
|
@@ -3630,13 +3638,13 @@ const j = {
|
|
|
3630
3638
|
const z = R.key, K = qe;
|
|
3631
3639
|
if (!K)
|
|
3632
3640
|
return g([R]);
|
|
3633
|
-
const
|
|
3641
|
+
const ge = K.includes(
|
|
3634
3642
|
z
|
|
3635
3643
|
) ? K.filter((J) => J !== z) : K.concat(z);
|
|
3636
|
-
if ((
|
|
3644
|
+
if ((ge == null ? void 0 : ge.length) === 0)
|
|
3637
3645
|
return g(null);
|
|
3638
3646
|
const A = _.filter(
|
|
3639
|
-
(J) =>
|
|
3647
|
+
(J) => ge.includes(J.key)
|
|
3640
3648
|
);
|
|
3641
3649
|
g(A);
|
|
3642
3650
|
}, re = (R) => !R.disabled && !R.groupHeader && R.key !== ct, Ae = () => {
|
|
@@ -3645,7 +3653,7 @@ const j = {
|
|
|
3645
3653
|
g(R);
|
|
3646
3654
|
}, Ie = () => {
|
|
3647
3655
|
w(!1), g(null);
|
|
3648
|
-
},
|
|
3656
|
+
}, De = (R) => E(R), ze = (R) => {
|
|
3649
3657
|
const z = o ? o.filter((K) => K !== R) : null;
|
|
3650
3658
|
if ((z == null ? void 0 : z.length) === 0)
|
|
3651
3659
|
return g(null);
|
|
@@ -3669,7 +3677,7 @@ const j = {
|
|
|
3669
3677
|
isMultiSelect: d === "multi",
|
|
3670
3678
|
size: c,
|
|
3671
3679
|
hideClearButton: u,
|
|
3672
|
-
onTrigger:
|
|
3680
|
+
onTrigger: pe,
|
|
3673
3681
|
onClear: Ie
|
|
3674
3682
|
},
|
|
3675
3683
|
/* @__PURE__ */ e.createElement(
|
|
@@ -3684,7 +3692,7 @@ const j = {
|
|
|
3684
3692
|
size: c,
|
|
3685
3693
|
clearSearchAfterSelection: f,
|
|
3686
3694
|
onItemRemove: ze,
|
|
3687
|
-
onFilter:
|
|
3695
|
+
onFilter: De
|
|
3688
3696
|
}
|
|
3689
3697
|
)
|
|
3690
3698
|
), /* @__PURE__ */ e.createElement(
|
|
@@ -3720,8 +3728,8 @@ const j = {
|
|
|
3720
3728
|
useClickHookProps: h,
|
|
3721
3729
|
floatingStrategy: f
|
|
3722
3730
|
}) => {
|
|
3723
|
-
const [g, b] = e.useState(d), k = i !== void 0, v = k ? i : g, $ = typeof _ == "string", w = typeof t == "function", T = (
|
|
3724
|
-
|
|
3731
|
+
const [g, b] = e.useState(d), k = i !== void 0, v = k ? i : g, $ = typeof _ == "string", w = typeof t == "function", T = (De) => {
|
|
3732
|
+
De ? r == null || r() : a == null || a(), !k && b(De);
|
|
3725
3733
|
}, { refs: E, context: B, floatingStyles: N } = na({
|
|
3726
3734
|
open: v,
|
|
3727
3735
|
onOpenChange: T,
|
|
@@ -3729,10 +3737,10 @@ const j = {
|
|
|
3729
3737
|
placement: l,
|
|
3730
3738
|
strategy: f,
|
|
3731
3739
|
whileElementsMounted: da
|
|
3732
|
-
}),
|
|
3740
|
+
}), pe = ua(B, h), F = ma(B, y({
|
|
3733
3741
|
escapeKey: p
|
|
3734
3742
|
}, u)), W = pa(B), { getReferenceProps: re, getFloatingProps: Ae } = ga([
|
|
3735
|
-
|
|
3743
|
+
pe,
|
|
3736
3744
|
F,
|
|
3737
3745
|
W
|
|
3738
3746
|
]), Ie = m(Ro.popover, o);
|
|
@@ -3945,7 +3953,7 @@ const ft = {
|
|
|
3945
3953
|
className: Ee[`${$e}__close-icon`],
|
|
3946
3954
|
onClick: s
|
|
3947
3955
|
},
|
|
3948
|
-
/* @__PURE__ */ e.createElement(x, { source:
|
|
3956
|
+
/* @__PURE__ */ e.createElement(x, { source: Se, size: "large", kind: "primary" })
|
|
3949
3957
|
));
|
|
3950
3958
|
}, Re = {
|
|
3951
3959
|
"main-wrapper": "lc-PromoBannerV2-module__main-wrapper___U-dPS",
|
|
@@ -4008,7 +4016,7 @@ const ft = {
|
|
|
4008
4016
|
{
|
|
4009
4017
|
className: Re[`${We}__close__btn`],
|
|
4010
4018
|
onClick: s,
|
|
4011
|
-
icon: /* @__PURE__ */ e.createElement(x, { source:
|
|
4019
|
+
icon: /* @__PURE__ */ e.createElement(x, { source: Se, kind: "primary" }),
|
|
4012
4020
|
kind: "plain",
|
|
4013
4021
|
size: "compact"
|
|
4014
4022
|
}
|
|
@@ -4042,7 +4050,7 @@ const ft = {
|
|
|
4042
4050
|
})
|
|
4043
4051
|
)), t && /* @__PURE__ */ e.createElement(M, { as: "div", size: "md", className: Me[`${Le}__text`] }, t)), r && /* @__PURE__ */ e.createElement(Wt, { className: Me[`${Le}__helper`] }, r));
|
|
4044
4052
|
}
|
|
4045
|
-
),
|
|
4053
|
+
), Be = {
|
|
4046
4054
|
"search-input": "lc-Search-module__search-input___FsbCk",
|
|
4047
4055
|
"search-input--compact": "lc-Search-module__search-input--compact___498To",
|
|
4048
4056
|
"search-input--medium": "lc-Search-module__search-input--medium___Hwteg",
|
|
@@ -4067,12 +4075,12 @@ const ft = {
|
|
|
4067
4075
|
}) => {
|
|
4068
4076
|
const [s, i] = e.useState(!0), [d, p] = e.useState(!1), u = e.useRef(null), h = !!c && !a && !r, f = t && !s && "true", g = m(
|
|
4069
4077
|
l,
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
d &&
|
|
4073
|
-
a &&
|
|
4074
|
-
t &&
|
|
4075
|
-
!s &&
|
|
4078
|
+
Be[Ce],
|
|
4079
|
+
Be[`${Ce}--${o}`],
|
|
4080
|
+
d && Be[`${Ce}--focused`],
|
|
4081
|
+
a && Be[`${Ce}--disabled`],
|
|
4082
|
+
t && Be[`${Ce}--collapsable`],
|
|
4083
|
+
!s && Be[`${Ce}--collapsable--open`]
|
|
4076
4084
|
);
|
|
4077
4085
|
e.useEffect(() => {
|
|
4078
4086
|
t && c && i(!1);
|
|
@@ -4103,7 +4111,7 @@ const ft = {
|
|
|
4103
4111
|
/* @__PURE__ */ e.createElement(
|
|
4104
4112
|
x,
|
|
4105
4113
|
{
|
|
4106
|
-
className:
|
|
4114
|
+
className: Be[`${Ce}__search-icon`],
|
|
4107
4115
|
source: Tr,
|
|
4108
4116
|
disabled: a,
|
|
4109
4117
|
kind: "primary"
|
|
@@ -4114,7 +4122,7 @@ const ft = {
|
|
|
4114
4122
|
{
|
|
4115
4123
|
role: "searchbox",
|
|
4116
4124
|
ref: u,
|
|
4117
|
-
className:
|
|
4125
|
+
className: Be[Yo],
|
|
4118
4126
|
type: "text",
|
|
4119
4127
|
value: c,
|
|
4120
4128
|
placeholder: _,
|
|
@@ -4130,9 +4138,9 @@ const ft = {
|
|
|
4130
4138
|
{
|
|
4131
4139
|
"aria-label": "Clear search",
|
|
4132
4140
|
title: "Clear search",
|
|
4133
|
-
className:
|
|
4141
|
+
className: Be[`${Ce}__clear-icon`],
|
|
4134
4142
|
onClick: k,
|
|
4135
|
-
icon: /* @__PURE__ */ e.createElement(x, { source:
|
|
4143
|
+
icon: /* @__PURE__ */ e.createElement(x, { source: Se, kind: "primary" }),
|
|
4136
4144
|
kind: "text",
|
|
4137
4145
|
size: "compact"
|
|
4138
4146
|
}
|
|
@@ -4141,7 +4149,7 @@ const ft = {
|
|
|
4141
4149
|
"div",
|
|
4142
4150
|
{
|
|
4143
4151
|
"data-testid": `${Ce}-loader`,
|
|
4144
|
-
className:
|
|
4152
|
+
className: Be[`${Ce}__loader`]
|
|
4145
4153
|
},
|
|
4146
4154
|
/* @__PURE__ */ e.createElement(fa, { size: "small" })
|
|
4147
4155
|
)
|
|
@@ -4204,8 +4212,8 @@ const ft = {
|
|
|
4204
4212
|
ce[ae],
|
|
4205
4213
|
ce[`${ae}--${l}`],
|
|
4206
4214
|
t
|
|
4207
|
-
), N = (
|
|
4208
|
-
c == null || c(
|
|
4215
|
+
), N = (pe) => {
|
|
4216
|
+
c == null || c(pe, !b), h || (pe.stopPropagation(), g((F) => !F));
|
|
4209
4217
|
};
|
|
4210
4218
|
return /* @__PURE__ */ e.createElement("span", { className: B }, /* @__PURE__ */ e.createElement(
|
|
4211
4219
|
"input",
|
|
@@ -4466,10 +4474,10 @@ const ft = {
|
|
|
4466
4474
|
}, N = (F, W) => {
|
|
4467
4475
|
const re = [...a || []];
|
|
4468
4476
|
re.reduce(
|
|
4469
|
-
(Ie,
|
|
4477
|
+
(Ie, De, ze) => Ie + (De === W && ze !== F ? 1 : 0),
|
|
4470
4478
|
0
|
|
4471
4479
|
) > 0 ? re.splice(F, 1) : re[F] = W, r(re);
|
|
4472
|
-
},
|
|
4480
|
+
}, pe = (F) => {
|
|
4473
4481
|
F.preventDefault();
|
|
4474
4482
|
const re = F.clipboardData.getData("text/plain").split(/[\s,;\n]+/);
|
|
4475
4483
|
r([...a || [], ...re]);
|
|
@@ -4496,7 +4504,7 @@ const ft = {
|
|
|
4496
4504
|
value: b,
|
|
4497
4505
|
onChange: T,
|
|
4498
4506
|
onKeyDown: E,
|
|
4499
|
-
onPaste:
|
|
4507
|
+
onPaste: pe,
|
|
4500
4508
|
onBlur: B
|
|
4501
4509
|
})
|
|
4502
4510
|
)), o && /* @__PURE__ */ e.createElement(va, null, o));
|
|
@@ -4611,7 +4619,7 @@ const ft = {
|
|
|
4611
4619
|
"aria-label": "Close toast",
|
|
4612
4620
|
onClick: c
|
|
4613
4621
|
},
|
|
4614
|
-
/* @__PURE__ */ e.createElement(x, { source:
|
|
4622
|
+
/* @__PURE__ */ e.createElement(x, { source: Se, size: "medium" })
|
|
4615
4623
|
)));
|
|
4616
4624
|
}, hc = 200, ht = "toast-wrapper", Cl = ({
|
|
4617
4625
|
className: t,
|
|
@@ -4702,7 +4710,7 @@ const ft = {
|
|
|
4702
4710
|
"aria-label": "Close",
|
|
4703
4711
|
onClick: a
|
|
4704
4712
|
},
|
|
4705
|
-
/* @__PURE__ */ e.createElement(x, { size: "small", source:
|
|
4713
|
+
/* @__PURE__ */ e.createElement(x, { size: "small", source: Se })
|
|
4706
4714
|
)), we = {
|
|
4707
4715
|
"file-upload-progress": "lc-FileUploadProgress-module__file-upload-progress___xw8h8",
|
|
4708
4716
|
"file-upload-progress__icon": "lc-FileUploadProgress-module__file-upload-progress__icon___p8Rfz",
|