@livechat/design-system-react-components 1.23.0 → 1.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js
CHANGED
|
@@ -22,7 +22,7 @@ var F = (t, a) => {
|
|
|
22
22
|
var ha = (t, a, r) => (va(t, typeof a != "symbol" ? a + "" : a, r), r);
|
|
23
23
|
import * as e from "react";
|
|
24
24
|
import { useReducer as Gr, useRef as Ur, useEffect as dt, useCallback as Ft, useMemo as Mt } from "react";
|
|
25
|
-
import { Check as Xt, Close as
|
|
25
|
+
import { Check as Xt, Close as Be, ChevronDown as At, Info as Ma, Warning as fr, CheckCircle as vr, Block as hr, Person as Wr, ChevronUp as Qt, DoubleArrowLeft as Vr, ChevronLeft as qr, ChevronRight as kr, DoubleArrowRight as Yr, VisibilityOn as Kr, VisibilityOff as Jr, Search as Xr, LockBlack as Qr, Refresh as jr, Error as Zr } from "@livechat/design-system-icons";
|
|
26
26
|
import u from "clsx";
|
|
27
27
|
import { useFloatingParentNodeId as Ra, useFloatingNodeId as jt, useFloating as Zt, offset as ea, flip as ta, autoUpdate as aa, useClick as ra, useDismiss as _a, useRole as oa, useInteractions as la, useTransitionStyles as yr, FloatingNode as ca, FloatingTree as La, shift as Oa, arrow as e_, useHover as t_, safePolygon as a_, useFocus as r_, useTransitionStatus as __, FloatingArrow as o_, FloatingPortal as Er, FloatingOverlay as l_, FloatingFocusManager as Da, size as c_, useListNavigation as n_ } from "@floating-ui/react";
|
|
28
28
|
import wr from "lodash.debounce";
|
|
@@ -579,7 +579,7 @@ const sc = {
|
|
|
579
579
|
sm: "h4",
|
|
580
580
|
xs: "h5",
|
|
581
581
|
"2xs": "h6"
|
|
582
|
-
},
|
|
582
|
+
}, De = (d) => {
|
|
583
583
|
var n = d, {
|
|
584
584
|
as: t,
|
|
585
585
|
size: a = "md",
|
|
@@ -614,7 +614,7 @@ const sc = {
|
|
|
614
614
|
}, i),
|
|
615
615
|
r
|
|
616
616
|
);
|
|
617
|
-
},
|
|
617
|
+
}, I = (p) => {
|
|
618
618
|
var f = p, {
|
|
619
619
|
as: t = "p",
|
|
620
620
|
size: a = "md",
|
|
@@ -690,7 +690,7 @@ const sc = {
|
|
|
690
690
|
}, s),
|
|
691
691
|
r
|
|
692
692
|
);
|
|
693
|
-
},
|
|
693
|
+
}, Pe = {
|
|
694
694
|
"action-menu": "lc-ActionMenu-module__action-menu___K2UwW",
|
|
695
695
|
"action-menu__trigger-button": "lc-ActionMenu-module__action-menu__trigger-button___tBrz5",
|
|
696
696
|
"action-menu__list": "lc-ActionMenu-module__action-menu__list___9pNUX",
|
|
@@ -702,7 +702,7 @@ const sc = {
|
|
|
702
702
|
"action-menu__list__item__icon": "lc-ActionMenu-module__action-menu__list__item__icon___o3ePo",
|
|
703
703
|
"action-menu__list--with-footer": "lc-ActionMenu-module__action-menu__list--with-footer___ghTxL",
|
|
704
704
|
"action-menu__footer": "lc-ActionMenu-module__action-menu__footer___HxoOe"
|
|
705
|
-
},
|
|
705
|
+
}, Ie = "action-menu", p_ = (E) => {
|
|
706
706
|
var v = E, {
|
|
707
707
|
className: t,
|
|
708
708
|
triggerClassName: a,
|
|
@@ -746,79 +746,86 @@ const sc = {
|
|
|
746
746
|
whileElementsMounted: aa
|
|
747
747
|
}), Ee = ra(G), ve = _a(G, {
|
|
748
748
|
enabled: S
|
|
749
|
-
}), we = oa(G), { getReferenceProps:
|
|
749
|
+
}), we = oa(G), { getReferenceProps: Ae, getFloatingProps: Re } = la([
|
|
750
750
|
Ee,
|
|
751
751
|
ve,
|
|
752
752
|
we
|
|
753
753
|
]), { styles: Le } = yr(G, {
|
|
754
|
-
initial: ({ side:
|
|
754
|
+
initial: ({ side: P }) => k({
|
|
755
755
|
opacity: 0
|
|
756
|
-
},
|
|
756
|
+
}, P === "bottom" && {
|
|
757
757
|
marginTop: -10
|
|
758
|
-
} ||
|
|
758
|
+
} || P === "top" && {
|
|
759
759
|
marginTop: 10
|
|
760
|
-
} ||
|
|
760
|
+
} || P === "left" && {
|
|
761
761
|
marginLeft: 10
|
|
762
|
-
} ||
|
|
762
|
+
} || P === "right" && {
|
|
763
763
|
marginLeft: -10
|
|
764
764
|
})
|
|
765
|
-
}), rt = (
|
|
765
|
+
}), rt = (P) => {
|
|
766
766
|
var Oe, He;
|
|
767
767
|
const L = C.current;
|
|
768
|
-
let oe = L +
|
|
768
|
+
let oe = L + P;
|
|
769
769
|
for (; (Oe = r[oe]) != null && Oe.disabled || (He = r[oe]) != null && He.groupHeader; )
|
|
770
|
-
if (oe +=
|
|
770
|
+
if (oe += P, oe === -1) {
|
|
771
771
|
oe = L;
|
|
772
772
|
break;
|
|
773
773
|
}
|
|
774
774
|
return oe;
|
|
775
|
-
}, Qe = (
|
|
775
|
+
}, Qe = (P) => {
|
|
776
776
|
var Oe, He;
|
|
777
|
-
C.current = rt(
|
|
777
|
+
C.current = rt(P);
|
|
778
778
|
const L = (Oe = N.current) == null ? void 0 : Oe.children, oe = L && ((He = L[C.current]) == null ? void 0 : He.children[0]);
|
|
779
779
|
return oe == null ? void 0 : oe.focus();
|
|
780
|
-
}, Ke = (
|
|
781
|
-
|
|
780
|
+
}, Ke = (P) => {
|
|
781
|
+
P.key === _e.arrowUp && C.current > 0 && (P.preventDefault(), Qe(-1)), P.key === _e.arrowDown && C.current + 1 < r.length && (P.preventDefault(), Qe(1));
|
|
782
782
|
};
|
|
783
783
|
e.useEffect(() => {
|
|
784
784
|
if (S)
|
|
785
785
|
return document.addEventListener("keydown", Ke), () => document.removeEventListener("keydown", Ke);
|
|
786
786
|
C.current = -1;
|
|
787
787
|
}, [S, Ke]);
|
|
788
|
-
const _t = (
|
|
789
|
-
C.current =
|
|
790
|
-
}, je = (
|
|
788
|
+
const _t = (P, L) => {
|
|
789
|
+
C.current = P, L == null || L(), !h && !c && ($(!1), d == null || d());
|
|
790
|
+
}, je = (P, L) => P.groupHeader ? /* @__PURE__ */ e.createElement(
|
|
791
791
|
"li",
|
|
792
792
|
{
|
|
793
|
-
key:
|
|
793
|
+
key: P.key,
|
|
794
794
|
role: "none",
|
|
795
|
-
className:
|
|
795
|
+
className: Pe[`${Ie}__list__group-header`]
|
|
796
796
|
},
|
|
797
|
-
|
|
798
|
-
) : /* @__PURE__ */ e.createElement("li", { key:
|
|
797
|
+
P.element
|
|
798
|
+
) : /* @__PURE__ */ e.createElement("li", { key: P.key, role: "none" }, /* @__PURE__ */ e.createElement(
|
|
799
799
|
"button",
|
|
800
800
|
{
|
|
801
|
-
"data-testid":
|
|
801
|
+
"data-testid": P.key,
|
|
802
802
|
tabIndex: -1,
|
|
803
|
-
key:
|
|
804
|
-
disabled:
|
|
805
|
-
onClick: () => _t(L,
|
|
803
|
+
key: P.key,
|
|
804
|
+
disabled: P.disabled,
|
|
805
|
+
onClick: () => _t(L, P.onClick),
|
|
806
806
|
role: "menuitem",
|
|
807
|
-
className: u(
|
|
808
|
-
[
|
|
809
|
-
[
|
|
810
|
-
[
|
|
807
|
+
className: u(Pe[`${Ie}__list__item`], {
|
|
808
|
+
[Pe[`${Ie}__list__item--disabled`]]: P.disabled,
|
|
809
|
+
[Pe[`${Ie}__list__item--with-divider`]]: P.withDivider,
|
|
810
|
+
[Pe[`${Ie}__list__item--selected`]]: p == null ? void 0 : p.includes(P.key)
|
|
811
811
|
})
|
|
812
812
|
},
|
|
813
|
-
|
|
814
|
-
(p == null ? void 0 : p.includes(
|
|
813
|
+
P.element,
|
|
814
|
+
(p == null ? void 0 : p.includes(P.key)) && /* @__PURE__ */ e.createElement(
|
|
815
|
+
"div",
|
|
816
|
+
{
|
|
817
|
+
"data-testid": `${P.key}-selected-icon`,
|
|
818
|
+
className: Pe[`${Ie}__list__item__icon`]
|
|
819
|
+
},
|
|
820
|
+
/* @__PURE__ */ e.createElement(A, { source: Xt, kind: "action-primary" })
|
|
821
|
+
)
|
|
815
822
|
)), ot = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
816
823
|
"div",
|
|
817
824
|
T(k({
|
|
818
825
|
"aria-label": "Toggle menu",
|
|
819
826
|
"data-testid": "action-menu-trigger-button",
|
|
820
827
|
ref: Y.setReference
|
|
821
|
-
},
|
|
828
|
+
}, Ae()), {
|
|
822
829
|
className: a
|
|
823
830
|
}),
|
|
824
831
|
_
|
|
@@ -826,7 +833,7 @@ const sc = {
|
|
|
826
833
|
"div",
|
|
827
834
|
k({
|
|
828
835
|
ref: Y.setFloating,
|
|
829
|
-
className: Ie
|
|
836
|
+
className: Pe[Ie],
|
|
830
837
|
style: k({
|
|
831
838
|
position: R,
|
|
832
839
|
top: x != null ? x : "",
|
|
@@ -837,9 +844,9 @@ const sc = {
|
|
|
837
844
|
"ul",
|
|
838
845
|
T(k({}, b), {
|
|
839
846
|
className: u(
|
|
840
|
-
|
|
847
|
+
Pe[`${Ie}__list`],
|
|
841
848
|
{
|
|
842
|
-
[
|
|
849
|
+
[Pe[`${Ie}__list--with-footer`]]: f
|
|
843
850
|
},
|
|
844
851
|
t
|
|
845
852
|
),
|
|
@@ -849,11 +856,11 @@ const sc = {
|
|
|
849
856
|
r.map(je)
|
|
850
857
|
),
|
|
851
858
|
f && /* @__PURE__ */ e.createElement(
|
|
852
|
-
|
|
859
|
+
I,
|
|
853
860
|
{
|
|
854
861
|
size: "sm",
|
|
855
862
|
as: "div",
|
|
856
|
-
className:
|
|
863
|
+
className: Pe[`${Ie}__footer`]
|
|
857
864
|
},
|
|
858
865
|
f
|
|
859
866
|
)
|
|
@@ -873,7 +880,7 @@ const sc = {
|
|
|
873
880
|
})
|
|
874
881
|
},
|
|
875
882
|
t && /* @__PURE__ */ e.createElement("div", { className: pt[`${gt}__left-node`] }, t),
|
|
876
|
-
/* @__PURE__ */ e.createElement(
|
|
883
|
+
/* @__PURE__ */ e.createElement(I, { as: "div", className: pt[`${gt}__label`] }, r),
|
|
877
884
|
a && /* @__PURE__ */ e.createElement("div", { className: pt[`${gt}__right-node`] }, a)
|
|
878
885
|
), b_ = "lc-Loader-module__loader___LRflD", f_ = "lc-Loader-module__loader__spinner___l3C1g", v_ = "lc-Loader-module__rotate___Tlni-", h_ = "lc-Loader-module__loader__label___R74f6", bt = {
|
|
879
886
|
loader: b_,
|
|
@@ -884,29 +891,39 @@ const sc = {
|
|
|
884
891
|
"loader__spinner-circle": "lc-Loader-module__loader__spinner-circle___ApBUO",
|
|
885
892
|
rotate: v_,
|
|
886
893
|
loader__label: h_
|
|
887
|
-
}, xr = "loader", Qa = `${xr}__spinner`, za = ({
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
894
|
+
}, xr = "loader", Qa = `${xr}__spinner`, za = (c) => {
|
|
895
|
+
var s = c, {
|
|
896
|
+
primaryColor: t,
|
|
897
|
+
secondaryColor: a,
|
|
898
|
+
label: r,
|
|
899
|
+
className: _,
|
|
900
|
+
size: o = "medium"
|
|
901
|
+
} = s, l = F(s, [
|
|
902
|
+
"primaryColor",
|
|
903
|
+
"secondaryColor",
|
|
904
|
+
"label",
|
|
905
|
+
"className",
|
|
906
|
+
"size"
|
|
907
|
+
]);
|
|
908
|
+
return /* @__PURE__ */ e.createElement("div", k({ className: u(bt[xr], _) }, l), /* @__PURE__ */ e.createElement(
|
|
899
909
|
"div",
|
|
900
910
|
{
|
|
901
|
-
className: bt[
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
911
|
+
className: u(bt[Qa], bt[`${Qa}--${o}`])
|
|
912
|
+
},
|
|
913
|
+
/* @__PURE__ */ e.createElement(
|
|
914
|
+
"div",
|
|
915
|
+
{
|
|
916
|
+
role: "status",
|
|
917
|
+
className: bt["loader__spinner-circle"],
|
|
918
|
+
style: {
|
|
919
|
+
/* stylelint-disable */
|
|
920
|
+
borderColor: a,
|
|
921
|
+
borderTopColor: t
|
|
922
|
+
}
|
|
906
923
|
}
|
|
907
|
-
|
|
908
|
-
)
|
|
909
|
-
|
|
924
|
+
)
|
|
925
|
+
), r && /* @__PURE__ */ e.createElement(I, { as: "div", size: "md", className: bt.loader__label }, r));
|
|
926
|
+
}, k_ = (t) => {
|
|
910
927
|
if (t === "primary" || t === "destructive")
|
|
911
928
|
return {
|
|
912
929
|
primaryColor: "var(--action-primary-default)",
|
|
@@ -1007,6 +1024,7 @@ const sc = {
|
|
|
1007
1024
|
t && /* @__PURE__ */ e.createElement(
|
|
1008
1025
|
za,
|
|
1009
1026
|
k({
|
|
1027
|
+
"data-testid": "button-loader",
|
|
1010
1028
|
size: "small",
|
|
1011
1029
|
label: i,
|
|
1012
1030
|
className: ce[`${ne}__loader`]
|
|
@@ -1022,7 +1040,8 @@ const sc = {
|
|
|
1022
1040
|
}
|
|
1023
1041
|
),
|
|
1024
1042
|
disabled: a,
|
|
1025
|
-
size: l === "xcompact" ? "small" : "medium"
|
|
1043
|
+
size: l === "xcompact" ? "small" : "medium",
|
|
1044
|
+
"data-testid": "button-icon"
|
|
1026
1045
|
}),
|
|
1027
1046
|
/* @__PURE__ */ e.createElement("div", { className: ce[`${ne}__content`] }, n)
|
|
1028
1047
|
);
|
|
@@ -1127,16 +1146,16 @@ const C_ = (t) => {
|
|
|
1127
1146
|
closeOnTriggerBlur: x = !1,
|
|
1128
1147
|
floatingStrategy: R
|
|
1129
1148
|
}) => {
|
|
1130
|
-
const Y = s !== void 0, [G, Ee] = e.useState(!1), ve = e.useRef(null), we = Y ? s : G,
|
|
1149
|
+
const Y = s !== void 0, [G, Ee] = e.useState(!1), ve = e.useRef(null), we = Y ? s : G, Ae = l || o, Re = Ra(), Le = jt(), rt = u(
|
|
1131
1150
|
D[Rt],
|
|
1132
1151
|
a,
|
|
1133
|
-
|
|
1152
|
+
Ae && D[`${Rt}--${Ae}`],
|
|
1134
1153
|
i && D[`${Rt}--full-space`]
|
|
1135
1154
|
), Qe = typeof _ == "function", Ke = (le) => {
|
|
1136
1155
|
le !== we && (le ? n == null || n() : d == null || d(), !Y && Ee(le));
|
|
1137
1156
|
}, _t = (le) => m ? le != null ? le : p : 0, je = (le) => le != null ? le : E, {
|
|
1138
1157
|
floatingStyles: ot,
|
|
1139
|
-
refs:
|
|
1158
|
+
refs: P,
|
|
1140
1159
|
context: L,
|
|
1141
1160
|
middlewareData: { arrow: { x: oe, y: Oe } = {} }
|
|
1142
1161
|
} = Zt({
|
|
@@ -1176,12 +1195,12 @@ const C_ = (t) => {
|
|
|
1176
1195
|
ua
|
|
1177
1196
|
]);
|
|
1178
1197
|
e.useEffect(() => {
|
|
1179
|
-
C &&
|
|
1180
|
-
}, [
|
|
1198
|
+
C && P.setReference(C);
|
|
1199
|
+
}, [P.setReference, C]);
|
|
1181
1200
|
const Pt = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
1182
1201
|
"div",
|
|
1183
1202
|
T(k({
|
|
1184
|
-
ref:
|
|
1203
|
+
ref: P.setReference
|
|
1185
1204
|
}, ba()), {
|
|
1186
1205
|
className: r
|
|
1187
1206
|
}),
|
|
@@ -1189,13 +1208,13 @@ const C_ = (t) => {
|
|
|
1189
1208
|
), /* @__PURE__ */ e.createElement(ca, { id: Le }, ma && /* @__PURE__ */ e.createElement(
|
|
1190
1209
|
"div",
|
|
1191
1210
|
T(k({
|
|
1192
|
-
ref:
|
|
1211
|
+
ref: P.setFloating,
|
|
1193
1212
|
style: k(k({}, ot), pa),
|
|
1194
1213
|
className: rt
|
|
1195
1214
|
}, fa()), {
|
|
1196
1215
|
"data-status": ga
|
|
1197
1216
|
}),
|
|
1198
|
-
/* @__PURE__ */ e.createElement(
|
|
1217
|
+
/* @__PURE__ */ e.createElement(I, { as: "div", className: D[`${Rt}__content`] }, t),
|
|
1199
1218
|
/* @__PURE__ */ e.createElement(
|
|
1200
1219
|
o_,
|
|
1201
1220
|
k({
|
|
@@ -1210,7 +1229,7 @@ const C_ = (t) => {
|
|
|
1210
1229
|
Oe,
|
|
1211
1230
|
oe
|
|
1212
1231
|
))
|
|
1213
|
-
}, C_(
|
|
1232
|
+
}, C_(Ae))
|
|
1214
1233
|
)
|
|
1215
1234
|
)));
|
|
1216
1235
|
return Re === null ? /* @__PURE__ */ e.createElement(La, null, Pt) : Pt;
|
|
@@ -1222,9 +1241,9 @@ const C_ = (t) => {
|
|
|
1222
1241
|
className: D[`${ft}-close`],
|
|
1223
1242
|
onClick: l
|
|
1224
1243
|
},
|
|
1225
|
-
/* @__PURE__ */ e.createElement(A, { source:
|
|
1244
|
+
/* @__PURE__ */ e.createElement(A, { source: Be, kind: o ? Tr(o) : "primary" })
|
|
1226
1245
|
), a && /* @__PURE__ */ e.createElement(
|
|
1227
|
-
|
|
1246
|
+
De,
|
|
1228
1247
|
{
|
|
1229
1248
|
as: "div",
|
|
1230
1249
|
size: "xs",
|
|
@@ -1234,7 +1253,7 @@ const C_ = (t) => {
|
|
|
1234
1253
|
},
|
|
1235
1254
|
a
|
|
1236
1255
|
), /* @__PURE__ */ e.createElement(
|
|
1237
|
-
|
|
1256
|
+
I,
|
|
1238
1257
|
{
|
|
1239
1258
|
as: "div",
|
|
1240
1259
|
className: u({
|
|
@@ -1262,7 +1281,7 @@ const C_ = (t) => {
|
|
|
1262
1281
|
className: D[`${ze}-close`],
|
|
1263
1282
|
onClick: l
|
|
1264
1283
|
},
|
|
1265
|
-
/* @__PURE__ */ e.createElement(A, { source:
|
|
1284
|
+
/* @__PURE__ */ e.createElement(A, { source: Be, kind: o ? Tr(o) : "primary" })
|
|
1266
1285
|
), r && /* @__PURE__ */ e.createElement("div", { className: D[`${ze}-image-container`] }, /* @__PURE__ */ e.createElement(
|
|
1267
1286
|
"img",
|
|
1268
1287
|
{
|
|
@@ -1270,7 +1289,7 @@ const C_ = (t) => {
|
|
|
1270
1289
|
src: r.src,
|
|
1271
1290
|
alt: r.alt
|
|
1272
1291
|
}
|
|
1273
|
-
)), t && /* @__PURE__ */ e.createElement(
|
|
1292
|
+
)), t && /* @__PURE__ */ e.createElement(De, { as: "div", size: "xs", className: D[`${ze}-header`] }, t), /* @__PURE__ */ e.createElement("div", { className: D[`${ze}-text`] }, a), /* @__PURE__ */ e.createElement(
|
|
1274
1293
|
"div",
|
|
1275
1294
|
{
|
|
1276
1295
|
className: u(
|
|
@@ -1473,15 +1492,15 @@ const ja = 8, Za = "guide-tooltip", er = (t, a) => new B_(t, a), yc = (t) => {
|
|
|
1473
1492
|
title: t,
|
|
1474
1493
|
description: a,
|
|
1475
1494
|
children: r
|
|
1476
|
-
}) => /* @__PURE__ */ e.createElement("div", { className: D[vt] }, /* @__PURE__ */ e.createElement("div", { className: D[`${vt}__heading`] }, /* @__PURE__ */ e.createElement(
|
|
1477
|
-
|
|
1495
|
+
}) => /* @__PURE__ */ e.createElement("div", { className: D[vt] }, /* @__PURE__ */ e.createElement("div", { className: D[`${vt}__heading`] }, /* @__PURE__ */ e.createElement(I, { as: "div", className: D[`${vt}__heading__title`] }, t), /* @__PURE__ */ e.createElement(
|
|
1496
|
+
I,
|
|
1478
1497
|
{
|
|
1479
1498
|
as: "div",
|
|
1480
1499
|
size: "xs",
|
|
1481
1500
|
className: D[`${vt}__heading__description`]
|
|
1482
1501
|
},
|
|
1483
1502
|
a
|
|
1484
|
-
)), /* @__PURE__ */ e.createElement("div", { className: D[`${vt}__content`] }, /* @__PURE__ */ e.createElement(
|
|
1503
|
+
)), /* @__PURE__ */ e.createElement("div", { className: D[`${vt}__content`] }, /* @__PURE__ */ e.createElement(I, { as: "div" }, r))), U = {
|
|
1485
1504
|
"action-bar": "lc-ActionBar-module__action-bar___TJitF",
|
|
1486
1505
|
"action-bar__items": "lc-ActionBar-module__action-bar__items___uhoQA",
|
|
1487
1506
|
"action-bar__items--scroll": "lc-ActionBar-module__action-bar__items--scroll___f--dN",
|
|
@@ -1757,7 +1776,7 @@ const ja = 8, Za = "guide-tooltip", er = (t, a) => new B_(t, a), yc = (t) => {
|
|
|
1757
1776
|
className: he[`${ke}__icon`]
|
|
1758
1777
|
})
|
|
1759
1778
|
), /* @__PURE__ */ e.createElement(
|
|
1760
|
-
|
|
1779
|
+
I,
|
|
1761
1780
|
{
|
|
1762
1781
|
as: "div",
|
|
1763
1782
|
className: he[`${ke}__content__wrapper__text`]
|
|
@@ -1775,11 +1794,10 @@ const ja = 8, Za = "guide-tooltip", er = (t, a) => new B_(t, a), yc = (t) => {
|
|
|
1775
1794
|
W,
|
|
1776
1795
|
{
|
|
1777
1796
|
"aria-label": "Close alert",
|
|
1778
|
-
type: "button",
|
|
1779
1797
|
className: he[`${ke}__close-icon`],
|
|
1780
1798
|
size: "compact",
|
|
1781
1799
|
kind: "plain",
|
|
1782
|
-
icon: /* @__PURE__ */ e.createElement(A, { source:
|
|
1800
|
+
icon: /* @__PURE__ */ e.createElement(A, { source: Be }),
|
|
1783
1801
|
onClick: l
|
|
1784
1802
|
}
|
|
1785
1803
|
));
|
|
@@ -1924,7 +1942,7 @@ const W_ = "lc-Avatar-module__avatar___1zTCE", V_ = "lc-Avatar-module__avatar__s
|
|
|
1924
1942
|
onError: Y
|
|
1925
1943
|
}
|
|
1926
1944
|
), h && /* @__PURE__ */ e.createElement(
|
|
1927
|
-
|
|
1945
|
+
De,
|
|
1928
1946
|
{
|
|
1929
1947
|
as: "span",
|
|
1930
1948
|
size: R(o),
|
|
@@ -1978,7 +1996,7 @@ const X_ = "lc-Badge-module__badge___GhLnu", Q_ = "lc-Badge-module__badge__dot__
|
|
|
1978
1996
|
), n = {
|
|
1979
1997
|
counter: J_(a, r),
|
|
1980
1998
|
alert: "!",
|
|
1981
|
-
dot: /* @__PURE__ */ e.createElement("span", { className: Lt[`${Ot}__dot`] })
|
|
1999
|
+
dot: /* @__PURE__ */ e.createElement("span", { "data-testid": "badge-dot", className: Lt[`${Ot}__dot`] })
|
|
1982
2000
|
}[l];
|
|
1983
2001
|
return /* @__PURE__ */ e.createElement("span", k({ className: d }, c), n);
|
|
1984
2002
|
};
|
|
@@ -2069,8 +2087,15 @@ const eo = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
2069
2087
|
className: ge[`${Jt}__image`],
|
|
2070
2088
|
src: c
|
|
2071
2089
|
}
|
|
2072
|
-
), /* @__PURE__ */ e.createElement("div", { className: ge[ka] }, /* @__PURE__ */ e.createElement(
|
|
2073
|
-
|
|
2090
|
+
), /* @__PURE__ */ e.createElement("div", { className: ge[ka] }, /* @__PURE__ */ e.createElement(De, { size: "xs", className: ge[`${ka}__title`] }, s), o && /* @__PURE__ */ e.createElement(
|
|
2091
|
+
I,
|
|
2092
|
+
{
|
|
2093
|
+
size: "sm",
|
|
2094
|
+
className: ge[`${ka}__description`]
|
|
2095
|
+
},
|
|
2096
|
+
o
|
|
2097
|
+
))), /* @__PURE__ */ e.createElement(I, { as: "div", size: "md", className: ge[`${Bt}__content`] }, r), m && /* @__PURE__ */ e.createElement(
|
|
2098
|
+
I,
|
|
2074
2099
|
{
|
|
2075
2100
|
as: "div",
|
|
2076
2101
|
size: "md",
|
|
@@ -2101,7 +2126,7 @@ const eo = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
2101
2126
|
"className"
|
|
2102
2127
|
]);
|
|
2103
2128
|
const l = u(po[go], a);
|
|
2104
|
-
return /* @__PURE__ */ e.createElement(
|
|
2129
|
+
return /* @__PURE__ */ e.createElement(I, T(k({ as: "span", size: "sm" }, r), { className: l }), t);
|
|
2105
2130
|
}, bo = "lc-Checkbox-module__checkbox___G7nTf", fo = "lc-Checkbox-module__checkbox__label___-o01x", vo = "lc-Checkbox-module__checkbox__text___P2SIq", ho = "lc-Checkbox-module__checkbox__input___YLbVF", ko = "lc-Checkbox-module__checkbox__checkmark___16pfY", yo = "lc-Checkbox-module__checkbox__square___MHUyd", Eo = "lc-Checkbox-module__checkbox__helper___YSJ-n", Ze = {
|
|
2106
2131
|
checkbox: bo,
|
|
2107
2132
|
checkbox__label: fo,
|
|
@@ -2132,7 +2157,7 @@ const eo = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
2132
2157
|
className: Ze[`${et}__input`],
|
|
2133
2158
|
type: "checkbox"
|
|
2134
2159
|
})
|
|
2135
|
-
), r && /* @__PURE__ */ e.createElement(
|
|
2160
|
+
), r && /* @__PURE__ */ e.createElement(I, { as: "div", size: "md", className: Ze[`${et}__text`] }, r)),
|
|
2136
2161
|
_ && /* @__PURE__ */ e.createElement(na, { className: Ze[`${et}__helper`] }, _)
|
|
2137
2162
|
);
|
|
2138
2163
|
}
|
|
@@ -2689,7 +2714,7 @@ const Sc = (t) => {
|
|
|
2689
2714
|
},
|
|
2690
2715
|
r && /* @__PURE__ */ e.createElement("div", { className: O[`${H}__label__left-node`] }, r),
|
|
2691
2716
|
h ? /* @__PURE__ */ e.createElement(
|
|
2692
|
-
|
|
2717
|
+
De,
|
|
2693
2718
|
{
|
|
2694
2719
|
size: "xs",
|
|
2695
2720
|
className: O[`${H}__label__content`]
|
|
@@ -2764,7 +2789,7 @@ const Sc = (t) => {
|
|
|
2764
2789
|
"className"
|
|
2765
2790
|
]);
|
|
2766
2791
|
const l = u(or[lr], a);
|
|
2767
|
-
return /* @__PURE__ */ e.createElement(
|
|
2792
|
+
return /* @__PURE__ */ e.createElement(I, T(k({ as: "span", size: "sm" }, r), { className: l }), /* @__PURE__ */ e.createElement(
|
|
2768
2793
|
A,
|
|
2769
2794
|
{
|
|
2770
2795
|
source: Ma,
|
|
@@ -2817,7 +2842,7 @@ const Sc = (t) => {
|
|
|
2817
2842
|
"helperText",
|
|
2818
2843
|
"formFooter"
|
|
2819
2844
|
]);
|
|
2820
|
-
return /* @__PURE__ */ e.createElement("form", k({ className: u(yt[Et], t) }, l), (r || _) && /* @__PURE__ */ e.createElement("div", { className: yt[`${Et}__header`] }, r && /* @__PURE__ */ e.createElement(
|
|
2845
|
+
return /* @__PURE__ */ e.createElement("form", k({ className: u(yt[Et], t) }, l), (r || _) && /* @__PURE__ */ e.createElement("div", { className: yt[`${Et}__header`] }, r && /* @__PURE__ */ e.createElement(De, { size: "sm", className: yt[`${Et}__label`] }, r), _ && /* @__PURE__ */ e.createElement(I, { as: "p", size: "sm", className: yt[`${Et}__helper`] }, _)), a, o && /* @__PURE__ */ e.createElement("div", { className: yt[`${Et}__footer`] }, o));
|
|
2821
2846
|
}, J = {
|
|
2822
2847
|
"form-field": "lc-FormField-module__form-field___JqnX6",
|
|
2823
2848
|
"form-field--inline": "lc-FormField-module__form-field--inline___4DgIq",
|
|
@@ -2857,7 +2882,7 @@ const Sc = (t) => {
|
|
|
2857
2882
|
const f = d;
|
|
2858
2883
|
return t && f.current ? m(`${f.current.clientHeight}px`) : m("auto");
|
|
2859
2884
|
}), /* @__PURE__ */ e.createElement("div", { className: p }, i && t && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
2860
|
-
|
|
2885
|
+
I,
|
|
2861
2886
|
{
|
|
2862
2887
|
as: "div",
|
|
2863
2888
|
size: "sm",
|
|
@@ -2901,10 +2926,10 @@ const Sc = (t) => {
|
|
|
2901
2926
|
className: J[`${X}__label-left-node`],
|
|
2902
2927
|
htmlFor: c
|
|
2903
2928
|
},
|
|
2904
|
-
/* @__PURE__ */ e.createElement(
|
|
2929
|
+
/* @__PURE__ */ e.createElement(I, { as: "span", size: "sm" }, _)
|
|
2905
2930
|
),
|
|
2906
2931
|
o && /* @__PURE__ */ e.createElement(
|
|
2907
|
-
|
|
2932
|
+
I,
|
|
2908
2933
|
{
|
|
2909
2934
|
as: "div",
|
|
2910
2935
|
size: "sm",
|
|
@@ -2917,7 +2942,7 @@ const Sc = (t) => {
|
|
|
2917
2942
|
)
|
|
2918
2943
|
),
|
|
2919
2944
|
i && !t && /* @__PURE__ */ e.createElement(
|
|
2920
|
-
|
|
2945
|
+
I,
|
|
2921
2946
|
{
|
|
2922
2947
|
as: "div",
|
|
2923
2948
|
size: "sm",
|
|
@@ -2959,10 +2984,10 @@ const Sc = (t) => {
|
|
|
2959
2984
|
}), r && { "aria-label": r }), {
|
|
2960
2985
|
className: s
|
|
2961
2986
|
}),
|
|
2962
|
-
/* @__PURE__ */ e.createElement("div", { className: Gt[`${Ut}__header`] }, /* @__PURE__ */ e.createElement(
|
|
2987
|
+
/* @__PURE__ */ e.createElement("div", { className: Gt[`${Ut}__header`] }, /* @__PURE__ */ e.createElement(De, { as: "div", size: "sm", className: Gt[`${Ut}__label`] }, r), _ && /* @__PURE__ */ e.createElement(I, { as: "div", size: "sm", className: Gt[`${Ut}__helper`] }, _)),
|
|
2963
2988
|
a
|
|
2964
2989
|
);
|
|
2965
|
-
}, Lo = "lc-Input-module__input___qeMAQ",
|
|
2990
|
+
}, Lo = "lc-Input-module__input___qeMAQ", xe = {
|
|
2966
2991
|
input: Lo,
|
|
2967
2992
|
"input--focused": "lc-Input-module__input--focused___wQH5-",
|
|
2968
2993
|
"input--disabled": "lc-Input-module__input--disabled___HidXX",
|
|
@@ -2977,13 +3002,13 @@ const Sc = (t) => {
|
|
|
2977
3002
|
"input__icon--left": "lc-Input-module__input__icon--left___BcySs",
|
|
2978
3003
|
"input__icon--right": "lc-Input-module__input__icon--right___VefSK",
|
|
2979
3004
|
"input__visibility-button": "lc-Input-module__input__visibility-button___eWrVe"
|
|
2980
|
-
},
|
|
3005
|
+
}, Te = "input", cr = (t, a) => e.cloneElement(t.source, {
|
|
2981
3006
|
"data-testid": `input-icon-${t.place}`,
|
|
2982
3007
|
className: u(
|
|
2983
|
-
|
|
2984
|
-
|
|
3008
|
+
xe[`${Te}__icon`],
|
|
3009
|
+
xe[`${Te}__icon--${t.place}`],
|
|
2985
3010
|
{
|
|
2986
|
-
[
|
|
3011
|
+
[xe[`${Te}__icon--disabled`]]: a
|
|
2987
3012
|
}
|
|
2988
3013
|
)
|
|
2989
3014
|
}), Ic = e.forwardRef(
|
|
@@ -3007,21 +3032,21 @@ const Sc = (t) => {
|
|
|
3007
3032
|
e.useImperativeHandle(s, () => n.current, []);
|
|
3008
3033
|
const [m, p] = e.useState(!1), [f, b] = e.useState(!1), { type: E, onFocus: v, onBlur: h } = c, y = u(
|
|
3009
3034
|
o,
|
|
3010
|
-
Te
|
|
3011
|
-
|
|
3035
|
+
xe[Te],
|
|
3036
|
+
xe[`${Te}--${t}`],
|
|
3012
3037
|
{
|
|
3013
|
-
[
|
|
3014
|
-
[
|
|
3015
|
-
[
|
|
3016
|
-
[
|
|
3017
|
-
[
|
|
3038
|
+
[xe[`${Te}--disabled`]]: r,
|
|
3039
|
+
[xe[`${Te}--focused`]]: m,
|
|
3040
|
+
[xe[`${Te}--error`]]: a,
|
|
3041
|
+
[xe[`${Te}--crop`]]: l,
|
|
3042
|
+
[xe[`${Te}--read-only`]]: c.readOnly
|
|
3018
3043
|
}
|
|
3019
3044
|
), $ = r ? "var(--content-disabled)" : "var(--content-default)", C = f ? Kr : Jr, w = _ && _.place === "left", g = _ && E !== "password" && _.place === "right", N = () => {
|
|
3020
3045
|
var S;
|
|
3021
3046
|
(S = n.current) == null || S.focus();
|
|
3022
3047
|
};
|
|
3023
3048
|
return /* @__PURE__ */ e.createElement(
|
|
3024
|
-
|
|
3049
|
+
I,
|
|
3025
3050
|
{
|
|
3026
3051
|
as: "div",
|
|
3027
3052
|
className: y,
|
|
@@ -3053,7 +3078,7 @@ const Sc = (t) => {
|
|
|
3053
3078
|
size: "compact",
|
|
3054
3079
|
icon: /* @__PURE__ */ e.createElement(A, { customColor: $, source: C }),
|
|
3055
3080
|
onClick: () => b((S) => !S),
|
|
3056
|
-
className:
|
|
3081
|
+
className: xe[`${Te}__visibility-button`]
|
|
3057
3082
|
}
|
|
3058
3083
|
)
|
|
3059
3084
|
);
|
|
@@ -3166,7 +3191,7 @@ const Sc = (t) => {
|
|
|
3166
3191
|
t && me["modal-base__close--label-type"]
|
|
3167
3192
|
),
|
|
3168
3193
|
onClick: r,
|
|
3169
|
-
icon: /* @__PURE__ */ e.createElement(A, { source:
|
|
3194
|
+
icon: /* @__PURE__ */ e.createElement(A, { source: Be, size: "medium", customColor: a })
|
|
3170
3195
|
}
|
|
3171
3196
|
), tt = "modal", Mc = (d) => {
|
|
3172
3197
|
var n = d, {
|
|
@@ -3200,7 +3225,7 @@ const Sc = (t) => {
|
|
|
3200
3225
|
isLabelled: !!_
|
|
3201
3226
|
}, i),
|
|
3202
3227
|
_ && /* @__PURE__ */ e.createElement("div", { className: me[`${tt}__label-header`] }, /* @__PURE__ */ e.createElement(
|
|
3203
|
-
|
|
3228
|
+
De,
|
|
3204
3229
|
{
|
|
3205
3230
|
size: "sm",
|
|
3206
3231
|
as: "div",
|
|
@@ -3216,7 +3241,7 @@ const Sc = (t) => {
|
|
|
3216
3241
|
}
|
|
3217
3242
|
)),
|
|
3218
3243
|
!_ && r && /* @__PURE__ */ e.createElement("div", { className: me[`${tt}__header`] }, /* @__PURE__ */ e.createElement(
|
|
3219
|
-
|
|
3244
|
+
De,
|
|
3220
3245
|
{
|
|
3221
3246
|
size: "sm",
|
|
3222
3247
|
as: "div",
|
|
@@ -3230,7 +3255,7 @@ const Sc = (t) => {
|
|
|
3230
3255
|
"data-testid": "modal-body",
|
|
3231
3256
|
className: u(me[`${tt}__body`], s)
|
|
3232
3257
|
},
|
|
3233
|
-
p ? /* @__PURE__ */ e.createElement(
|
|
3258
|
+
p ? /* @__PURE__ */ e.createElement(I, { as: "div" }, t) : t
|
|
3234
3259
|
),
|
|
3235
3260
|
l && /* @__PURE__ */ e.createElement("div", { className: me[`${tt}__footer`] }, l)
|
|
3236
3261
|
);
|
|
@@ -3271,8 +3296,8 @@ const Sc = (t) => {
|
|
|
3271
3296
|
k({
|
|
3272
3297
|
className: $t[`${Ct}__heading-left-node`]
|
|
3273
3298
|
}, r)
|
|
3274
|
-
), /* @__PURE__ */ e.createElement("div", { className: $t[`${Ct}__heading-body`] }, /* @__PURE__ */ e.createElement(
|
|
3275
|
-
|
|
3299
|
+
), /* @__PURE__ */ e.createElement("div", { className: $t[`${Ct}__heading-body`] }, /* @__PURE__ */ e.createElement(De, { as: "div", size: "sm" }, t), _ && /* @__PURE__ */ e.createElement(
|
|
3300
|
+
I,
|
|
3276
3301
|
{
|
|
3277
3302
|
as: "div",
|
|
3278
3303
|
className: $t[`${Ct}__heading-description`]
|
|
@@ -3449,7 +3474,7 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
3449
3474
|
alt: n.name
|
|
3450
3475
|
}
|
|
3451
3476
|
), /* @__PURE__ */ e.createElement("div", { className: ae[`${ye}__label-container`] }, /* @__PURE__ */ e.createElement(
|
|
3452
|
-
|
|
3477
|
+
I,
|
|
3453
3478
|
{
|
|
3454
3479
|
as: "span",
|
|
3455
3480
|
className: u([ae[`${ye}__label`]], {
|
|
@@ -3468,7 +3493,7 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
3468
3493
|
role: "group",
|
|
3469
3494
|
className: ae[`${ye}__header`]
|
|
3470
3495
|
}, l()),
|
|
3471
|
-
/* @__PURE__ */ e.createElement(
|
|
3496
|
+
/* @__PURE__ */ e.createElement(De, { size: "2xs", uppercase: !0, bold: !0, as: "div" }, c.name)
|
|
3472
3497
|
);
|
|
3473
3498
|
const d = (n) => {
|
|
3474
3499
|
!c.disabled && o(n);
|
|
@@ -3673,7 +3698,7 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
3673
3698
|
onBlur: () => f(!1)
|
|
3674
3699
|
}),
|
|
3675
3700
|
/* @__PURE__ */ e.createElement(
|
|
3676
|
-
|
|
3701
|
+
I,
|
|
3677
3702
|
{
|
|
3678
3703
|
as: "div",
|
|
3679
3704
|
className: u(
|
|
@@ -3699,7 +3724,7 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
3699
3724
|
className: se[`${re}__clear-icon`],
|
|
3700
3725
|
onClick: v
|
|
3701
3726
|
},
|
|
3702
|
-
/* @__PURE__ */ e.createElement(A, { kind: "primary", size: "small", source:
|
|
3727
|
+
/* @__PURE__ */ e.createElement(A, { kind: "primary", size: "small", source: Be })
|
|
3703
3728
|
),
|
|
3704
3729
|
/* @__PURE__ */ e.createElement(
|
|
3705
3730
|
A,
|
|
@@ -3800,7 +3825,7 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
3800
3825
|
return i ? m : Ha(m, "#FFFFFF") > 4.5 ? "#FFFFFF" : "#000000";
|
|
3801
3826
|
};
|
|
3802
3827
|
return /* @__PURE__ */ e.createElement(
|
|
3803
|
-
|
|
3828
|
+
I,
|
|
3804
3829
|
T(k(k({
|
|
3805
3830
|
className: y
|
|
3806
3831
|
}, b), w()), {
|
|
@@ -3840,7 +3865,7 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
3840
3865
|
A,
|
|
3841
3866
|
{
|
|
3842
3867
|
"data-dismiss-icon": !0,
|
|
3843
|
-
source:
|
|
3868
|
+
source: Be,
|
|
3844
3869
|
size: $,
|
|
3845
3870
|
customColor: g()
|
|
3846
3871
|
}
|
|
@@ -4146,7 +4171,7 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
4146
4171
|
"useClickHookProps",
|
|
4147
4172
|
"virtuosoProps"
|
|
4148
4173
|
]);
|
|
4149
|
-
const [Ee, ve] = e.useState(C), [we,
|
|
4174
|
+
const [Ee, ve] = e.useState(C), [we, Ae] = e.useState(!1), Re = h !== void 0, Le = Re ? h : Ee, rt = (le, Ua) => {
|
|
4150
4175
|
le ? y == null || y(Ua) : $ == null || $(Ua), !Re && ve(le);
|
|
4151
4176
|
}, {
|
|
4152
4177
|
selectedKeys: Qe,
|
|
@@ -4154,7 +4179,7 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
4154
4179
|
searchPhrase: _t,
|
|
4155
4180
|
handleSelect: je,
|
|
4156
4181
|
handleOnFilter: ot,
|
|
4157
|
-
handleItemRemove:
|
|
4182
|
+
handleItemRemove: P,
|
|
4158
4183
|
handleClear: L
|
|
4159
4184
|
} = cl({
|
|
4160
4185
|
selected: i,
|
|
@@ -4205,7 +4230,7 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
4205
4230
|
isRequired: m,
|
|
4206
4231
|
isMultiSelect: b === "multi",
|
|
4207
4232
|
size: d,
|
|
4208
|
-
setTriggerFocus:
|
|
4233
|
+
setTriggerFocus: Ae
|
|
4209
4234
|
},
|
|
4210
4235
|
/* @__PURE__ */ e.createElement(
|
|
4211
4236
|
_l,
|
|
@@ -4218,7 +4243,7 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
4218
4243
|
type: b,
|
|
4219
4244
|
size: d,
|
|
4220
4245
|
clearSearchAfterSelection: w,
|
|
4221
|
-
onItemRemove:
|
|
4246
|
+
onItemRemove: P,
|
|
4222
4247
|
onSelect: je,
|
|
4223
4248
|
onFilter: ot,
|
|
4224
4249
|
onClear: L,
|
|
@@ -4267,8 +4292,8 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
4267
4292
|
useClickHookProps: f,
|
|
4268
4293
|
floatingStrategy: b
|
|
4269
4294
|
}) => {
|
|
4270
|
-
const [E, v] = e.useState(n), h = Ra(), y = jt(), $ = d !== void 0, C = $ ? d : E, w = typeof _ == "string", g = typeof t == "function", N = (
|
|
4271
|
-
|
|
4295
|
+
const [E, v] = e.useState(n), h = Ra(), y = jt(), $ = d !== void 0, C = $ ? d : E, w = typeof _ == "string", g = typeof t == "function", N = (Ae, Re) => {
|
|
4296
|
+
Ae ? r == null || r(Re) : a == null || a(Re), !$ && v(Ae);
|
|
4272
4297
|
}, { refs: S, context: V, floatingStyles: q } = Zt({
|
|
4273
4298
|
nodeId: y,
|
|
4274
4299
|
open: C,
|
|
@@ -4299,7 +4324,7 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
4299
4324
|
ref: S.setFloating,
|
|
4300
4325
|
style: q
|
|
4301
4326
|
}, Ee()),
|
|
4302
|
-
w ? /* @__PURE__ */ e.createElement(
|
|
4327
|
+
w ? /* @__PURE__ */ e.createElement(I, { as: "div" }, _) : _
|
|
4303
4328
|
))));
|
|
4304
4329
|
return h === null ? /* @__PURE__ */ e.createElement(La, null, we) : we;
|
|
4305
4330
|
}, dl = [
|
|
@@ -4486,14 +4511,14 @@ const Nt = {
|
|
|
4486
4511
|
},
|
|
4487
4512
|
a
|
|
4488
4513
|
), c && /* @__PURE__ */ e.createElement(W, { size: "compact", kind: "text", onClick: d }, c));
|
|
4489
|
-
return /* @__PURE__ */ e.createElement("div", { ref: n, className: f }, /* @__PURE__ */ e.createElement("div", { className: $e[`${Ce}__content`] }, o && /* @__PURE__ */ e.createElement("img", { src: o, className: $e[`${Ce}__img`] }), /* @__PURE__ */ e.createElement("div", { className: $e[`${Ce}__wrapper`] }, /* @__PURE__ */ e.createElement("div", { className: $e[`${Ce}__header`] }, _), /* @__PURE__ */ e.createElement(
|
|
4514
|
+
return /* @__PURE__ */ e.createElement("div", { ref: n, className: f }, /* @__PURE__ */ e.createElement("div", { className: $e[`${Ce}__content`] }, o && /* @__PURE__ */ e.createElement("img", { src: o, className: $e[`${Ce}__img`] }), /* @__PURE__ */ e.createElement("div", { className: $e[`${Ce}__wrapper`] }, /* @__PURE__ */ e.createElement("div", { className: $e[`${Ce}__header`] }, _), /* @__PURE__ */ e.createElement(I, { as: "div" }, r), m !== "large" && b), m === "large" && b), i && /* @__PURE__ */ e.createElement(
|
|
4490
4515
|
"button",
|
|
4491
4516
|
{
|
|
4492
4517
|
type: "button",
|
|
4493
4518
|
className: $e[`${Ce}__close-icon`],
|
|
4494
4519
|
onClick: i
|
|
4495
4520
|
},
|
|
4496
|
-
/* @__PURE__ */ e.createElement(A, { source:
|
|
4521
|
+
/* @__PURE__ */ e.createElement(A, { source: Be, size: "large", kind: "primary" })
|
|
4497
4522
|
));
|
|
4498
4523
|
}, Ue = {
|
|
4499
4524
|
"main-wrapper": "lc-PromoBannerV2-module__main-wrapper___U-dPS",
|
|
@@ -4556,7 +4581,7 @@ const Nt = {
|
|
|
4556
4581
|
{
|
|
4557
4582
|
className: Ue[`${Je}__close__btn`],
|
|
4558
4583
|
onClick: i,
|
|
4559
|
-
icon: /* @__PURE__ */ e.createElement(A, { source:
|
|
4584
|
+
icon: /* @__PURE__ */ e.createElement(A, { source: Be, kind: "primary" }),
|
|
4560
4585
|
kind: "plain",
|
|
4561
4586
|
size: "compact"
|
|
4562
4587
|
}
|
|
@@ -4588,7 +4613,7 @@ const Nt = {
|
|
|
4588
4613
|
checked: _,
|
|
4589
4614
|
disabled: o
|
|
4590
4615
|
})
|
|
4591
|
-
)), t && /* @__PURE__ */ e.createElement(
|
|
4616
|
+
)), t && /* @__PURE__ */ e.createElement(I, { as: "div", size: "md", className: We[`${Ve}__text`] }, t)), r && /* @__PURE__ */ e.createElement(na, { className: We[`${Ve}__helper`] }, r));
|
|
4592
4617
|
}
|
|
4593
4618
|
), Ne = {
|
|
4594
4619
|
"search-input": "lc-Search-module__search-input___FsbCk",
|
|
@@ -4604,7 +4629,7 @@ const Nt = {
|
|
|
4604
4629
|
"search-input__loader": "lc-Search-module__search-input__loader___pkpIG",
|
|
4605
4630
|
"search-input__input-wrapper": "lc-Search-module__search-input__input-wrapper___k8bvn",
|
|
4606
4631
|
"search-input__input-wrapper--crop": "lc-Search-module__search-input__input-wrapper--crop___nBPKY"
|
|
4607
|
-
},
|
|
4632
|
+
}, Fe = "search-input", mr = `${Fe}__input-wrapper`, Vc = ({
|
|
4608
4633
|
isCollapsable: t,
|
|
4609
4634
|
isDisabled: a,
|
|
4610
4635
|
isLoading: r,
|
|
@@ -4617,12 +4642,12 @@ const Nt = {
|
|
|
4617
4642
|
}) => {
|
|
4618
4643
|
const [d, n] = e.useState(!0), [m, p] = e.useState(!1), f = e.useRef(null), b = !!l && !a && !r, E = t && !d && "true", v = u(
|
|
4619
4644
|
c,
|
|
4620
|
-
Ne[
|
|
4621
|
-
Ne[`${
|
|
4622
|
-
m && Ne[`${
|
|
4623
|
-
a && Ne[`${
|
|
4624
|
-
t && Ne[`${
|
|
4625
|
-
!d && Ne[`${
|
|
4645
|
+
Ne[Fe],
|
|
4646
|
+
Ne[`${Fe}--${o}`],
|
|
4647
|
+
m && Ne[`${Fe}--focused`],
|
|
4648
|
+
a && Ne[`${Fe}--disabled`],
|
|
4649
|
+
t && Ne[`${Fe}--collapsable`],
|
|
4650
|
+
!d && Ne[`${Fe}--collapsable--open`]
|
|
4626
4651
|
);
|
|
4627
4652
|
e.useEffect(() => {
|
|
4628
4653
|
t && l && n(!1);
|
|
@@ -4653,14 +4678,14 @@ const Nt = {
|
|
|
4653
4678
|
/* @__PURE__ */ e.createElement(
|
|
4654
4679
|
A,
|
|
4655
4680
|
{
|
|
4656
|
-
className: Ne[`${
|
|
4681
|
+
className: Ne[`${Fe}__search-icon`],
|
|
4657
4682
|
source: Xr,
|
|
4658
4683
|
disabled: a,
|
|
4659
4684
|
kind: "primary"
|
|
4660
4685
|
}
|
|
4661
4686
|
),
|
|
4662
4687
|
/* @__PURE__ */ e.createElement(
|
|
4663
|
-
|
|
4688
|
+
I,
|
|
4664
4689
|
{
|
|
4665
4690
|
as: "div",
|
|
4666
4691
|
className: u(
|
|
@@ -4689,21 +4714,14 @@ const Nt = {
|
|
|
4689
4714
|
{
|
|
4690
4715
|
"aria-label": "Clear search",
|
|
4691
4716
|
title: "Clear search",
|
|
4692
|
-
className: Ne[`${
|
|
4717
|
+
className: Ne[`${Fe}__clear-icon`],
|
|
4693
4718
|
onClick: y,
|
|
4694
|
-
icon: /* @__PURE__ */ e.createElement(A, { source:
|
|
4719
|
+
icon: /* @__PURE__ */ e.createElement(A, { source: Be, kind: "primary" }),
|
|
4695
4720
|
kind: "text",
|
|
4696
4721
|
size: "compact"
|
|
4697
4722
|
}
|
|
4698
4723
|
),
|
|
4699
|
-
r && /* @__PURE__ */ e.createElement(
|
|
4700
|
-
"div",
|
|
4701
|
-
{
|
|
4702
|
-
"data-testid": `${xe}-loader`,
|
|
4703
|
-
className: Ne[`${xe}__loader`]
|
|
4704
|
-
},
|
|
4705
|
-
/* @__PURE__ */ e.createElement(za, { size: "small" })
|
|
4706
|
-
)
|
|
4724
|
+
r && /* @__PURE__ */ e.createElement("div", { className: Ne[`${Fe}__loader`] }, /* @__PURE__ */ e.createElement(za, { size: "small" }))
|
|
4707
4725
|
);
|
|
4708
4726
|
}, kl = "lc-Skeleton-module__loading___MHvGo", at = {
|
|
4709
4727
|
"skeleton-wrapper": "lc-Skeleton-module__skeleton-wrapper___MXuR8",
|
|
@@ -4882,6 +4900,7 @@ const Nt = {
|
|
|
4882
4900
|
$ && /* @__PURE__ */ e.createElement(
|
|
4883
4901
|
za,
|
|
4884
4902
|
{
|
|
4903
|
+
"data-testid": "switch-loader",
|
|
4885
4904
|
className: u(
|
|
4886
4905
|
j[`${Q}__loader`],
|
|
4887
4906
|
j[`${Q}__loader--${c}`]
|
|
@@ -4927,7 +4946,7 @@ const Nt = {
|
|
|
4927
4946
|
]);
|
|
4928
4947
|
const { disabled: d } = c, n = r !== void 0 && !o, m = r !== void 0 && o;
|
|
4929
4948
|
return /* @__PURE__ */ e.createElement(
|
|
4930
|
-
|
|
4949
|
+
I,
|
|
4931
4950
|
T(k({}, c), {
|
|
4932
4951
|
as: c.href ? "a" : "button",
|
|
4933
4952
|
size: "md",
|
|
@@ -4941,7 +4960,7 @@ const Nt = {
|
|
|
4941
4960
|
)
|
|
4942
4961
|
}),
|
|
4943
4962
|
t,
|
|
4944
|
-
n && /* @__PURE__ */ e.createElement(
|
|
4963
|
+
n && /* @__PURE__ */ e.createElement(I, { as: "span", size: "md", className: st[`${it}__count`] }, "(", r, ")"),
|
|
4945
4964
|
m && /* @__PURE__ */ e.createElement(
|
|
4946
4965
|
j_,
|
|
4947
4966
|
{
|
|
@@ -5131,7 +5150,7 @@ const Nt = {
|
|
|
5131
5150
|
},
|
|
5132
5151
|
x.value || x.children
|
|
5133
5152
|
);
|
|
5134
|
-
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
5153
|
+
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(I, { as: "div", className: b }, a == null ? void 0 : a.map(q), /* @__PURE__ */ e.createElement(
|
|
5135
5154
|
"input",
|
|
5136
5155
|
T(k({}, m), {
|
|
5137
5156
|
id: t,
|
|
@@ -5216,7 +5235,7 @@ const Nt = {
|
|
|
5216
5235
|
Z[`${Xe}--${o}`],
|
|
5217
5236
|
a
|
|
5218
5237
|
), n = typeof r == "string", m = (p) => p && p.closesOnClick && l ? (p.onClick(), l()) : p.onClick();
|
|
5219
|
-
return /* @__PURE__ */ e.createElement("div", k({ className: d }, c), /* @__PURE__ */ e.createElement("div", { className: Z[`${Xe}__icon`] }, /* @__PURE__ */ e.createElement(A, T(k({}, Wl[o]), { size: "medium" }))), /* @__PURE__ */ e.createElement("div", { className: Z[`${Xe}__content`] }, n ? /* @__PURE__ */ e.createElement(
|
|
5238
|
+
return /* @__PURE__ */ e.createElement("div", k({ className: d }, c), /* @__PURE__ */ e.createElement("div", { className: Z[`${Xe}__icon`] }, /* @__PURE__ */ e.createElement(A, T(k({}, Wl[o]), { size: "medium" }))), /* @__PURE__ */ e.createElement("div", { className: Z[`${Xe}__content`] }, n ? /* @__PURE__ */ e.createElement(I, { as: "div" }, r) : r), (t || _) && /* @__PURE__ */ e.createElement("div", { className: Z[`${Xe}__actions`] }, t && /* @__PURE__ */ e.createElement(
|
|
5220
5239
|
W,
|
|
5221
5240
|
{
|
|
5222
5241
|
className: Z[`${Xe}__actions--custom`],
|
|
@@ -5235,7 +5254,7 @@ const Nt = {
|
|
|
5235
5254
|
"aria-label": "Close toast",
|
|
5236
5255
|
onClick: l
|
|
5237
5256
|
},
|
|
5238
|
-
/* @__PURE__ */ e.createElement(A, { source:
|
|
5257
|
+
/* @__PURE__ */ e.createElement(A, { source: Be, size: "medium" })
|
|
5239
5258
|
)));
|
|
5240
5259
|
}, ql = 200, xt = "toast-wrapper", en = ({
|
|
5241
5260
|
className: t,
|
|
@@ -5296,7 +5315,7 @@ const Nt = {
|
|
|
5296
5315
|
}, f = (b) => {
|
|
5297
5316
|
n(!0), i == null || i(b);
|
|
5298
5317
|
};
|
|
5299
|
-
return /* @__PURE__ */ e.createElement(
|
|
5318
|
+
return /* @__PURE__ */ e.createElement(I, { as: "div", className: m }, /* @__PURE__ */ e.createElement(
|
|
5300
5319
|
"textarea",
|
|
5301
5320
|
T(k({}, r), {
|
|
5302
5321
|
ref: _,
|
|
@@ -5326,7 +5345,7 @@ const Nt = {
|
|
|
5326
5345
|
"aria-label": "Close",
|
|
5327
5346
|
onClick: a
|
|
5328
5347
|
},
|
|
5329
|
-
/* @__PURE__ */ e.createElement(A, { size: "small", source:
|
|
5348
|
+
/* @__PURE__ */ e.createElement(A, { size: "small", source: Be })
|
|
5330
5349
|
)), Se = {
|
|
5331
5350
|
"file-upload-progress": "lc-FileUploadProgress-module__file-upload-progress___xw8h8",
|
|
5332
5351
|
"file-upload-progress__icon": "lc-FileUploadProgress-module__file-upload-progress__icon___p8Rfz",
|
|
@@ -5373,7 +5392,7 @@ const Nt = {
|
|
|
5373
5392
|
[Se[`${Ta}--error`]]: c === "error"
|
|
5374
5393
|
})
|
|
5375
5394
|
},
|
|
5376
|
-
/* @__PURE__ */ e.createElement(
|
|
5395
|
+
/* @__PURE__ */ e.createElement(I, { size: "sm", as: "div" }, _),
|
|
5377
5396
|
"=",
|
|
5378
5397
|
" "
|
|
5379
5398
|
), t !== "hidden" && /* @__PURE__ */ e.createElement(
|
|
@@ -5470,7 +5489,7 @@ const Nt = {
|
|
|
5470
5489
|
className: z[`${ue}__wrapper`],
|
|
5471
5490
|
onClick: y
|
|
5472
5491
|
},
|
|
5473
|
-
/* @__PURE__ */ e.createElement("div", { className: z[`${Ye}`] }, /* @__PURE__ */ e.createElement("div", { className: z[`${Ye}__icon`] }, Xl(c, r)), /* @__PURE__ */ e.createElement("div", { className: z[`${Ye}__title`] }, /* @__PURE__ */ e.createElement(
|
|
5492
|
+
/* @__PURE__ */ e.createElement("div", { className: z[`${Ye}`] }, /* @__PURE__ */ e.createElement("div", { className: z[`${Ye}__icon`] }, Xl(c, r)), /* @__PURE__ */ e.createElement("div", { className: z[`${Ye}__title`] }, /* @__PURE__ */ e.createElement(I, { size: "sm", as: "div" }, b ? l : _)), h && /* @__PURE__ */ e.createElement(
|
|
5474
5493
|
"button",
|
|
5475
5494
|
{
|
|
5476
5495
|
className: z[`${Ye}__collapse-button`],
|
|
@@ -5527,7 +5546,7 @@ export {
|
|
|
5527
5546
|
Bc as Form,
|
|
5528
5547
|
Ac as FormField,
|
|
5529
5548
|
Pc as FormGroup,
|
|
5530
|
-
|
|
5549
|
+
De as Heading,
|
|
5531
5550
|
A as Icon,
|
|
5532
5551
|
hc as Info,
|
|
5533
5552
|
Ic as Input,
|
|
@@ -5565,7 +5584,7 @@ export {
|
|
|
5565
5584
|
Qc as TabsWrapper,
|
|
5566
5585
|
Ir as Tag,
|
|
5567
5586
|
Ml as TagInput,
|
|
5568
|
-
|
|
5587
|
+
I as Text,
|
|
5569
5588
|
tn as Textarea,
|
|
5570
5589
|
Vl as Toast,
|
|
5571
5590
|
en as ToastWrapper,
|