@livechat/design-system-react-components 1.23.0 → 1.24.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/ActionCard/ActionCard.d.ts +3 -0
- package/dist/components/ActionCard/types.d.ts +23 -0
- package/dist/components/ActionMenu/ActionMenuItem.d.ts +1 -14
- package/dist/components/ActionMenu/types.d.ts +14 -0
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +1 -1
- package/dist/foundations/design-token.d.ts +4 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +188 -165
- package/dist/style.css +1 -1
- package/package.json +3 -3
- /package/dist/components/Button/{helpers.d.ts → Button.helpers.d.ts} +0 -0
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";
|
|
@@ -138,6 +138,7 @@ const sc = {
|
|
|
138
138
|
SurfaceGradient11: "--surface-gradient-11",
|
|
139
139
|
SurfaceGradient12: "--surface-gradient-12",
|
|
140
140
|
SurfaceGradient13: "--surface-gradient-13",
|
|
141
|
+
SurfaceGradient14: "--surface-gradient-14",
|
|
141
142
|
SurfaceOtherOverlay: "--surface-other-overlay",
|
|
142
143
|
SurfaceOtherAgent: "--surface-other-agent",
|
|
143
144
|
SurfaceOtherAgentHover: "--surface-other-agent-hover",
|
|
@@ -393,7 +394,10 @@ const sc = {
|
|
|
393
394
|
SurfaceOtherInternalNoteMessageArea: "--surface-other-internal-note-message-area",
|
|
394
395
|
SurfaceOtherInternalNoteDefault: "--surface-other-internal-note-default",
|
|
395
396
|
ContentBasicInternalNoteMessagePlaceholder: "--content-basic-internal-note-message-placeholder",
|
|
396
|
-
ContentBasicInternalNoteMessageActive: "--content-basic-internal-note-message-active"
|
|
397
|
+
ContentBasicInternalNoteMessageActive: "--content-basic-internal-note-message-active",
|
|
398
|
+
OnePopoverMessageBackgroundDefault: "--one-popover-message-background-default",
|
|
399
|
+
OnePopoverBorderDefault: "--one-popover-border-default",
|
|
400
|
+
OnePopoverBorderActive: "--one-popover-border-active"
|
|
397
401
|
}, ic = {
|
|
398
402
|
Spacing0: "--spacing-0",
|
|
399
403
|
Spacing05: "--spacing-05",
|
|
@@ -579,7 +583,7 @@ const sc = {
|
|
|
579
583
|
sm: "h4",
|
|
580
584
|
xs: "h5",
|
|
581
585
|
"2xs": "h6"
|
|
582
|
-
},
|
|
586
|
+
}, De = (d) => {
|
|
583
587
|
var n = d, {
|
|
584
588
|
as: t,
|
|
585
589
|
size: a = "md",
|
|
@@ -614,7 +618,7 @@ const sc = {
|
|
|
614
618
|
}, i),
|
|
615
619
|
r
|
|
616
620
|
);
|
|
617
|
-
},
|
|
621
|
+
}, I = (p) => {
|
|
618
622
|
var f = p, {
|
|
619
623
|
as: t = "p",
|
|
620
624
|
size: a = "md",
|
|
@@ -690,7 +694,7 @@ const sc = {
|
|
|
690
694
|
}, s),
|
|
691
695
|
r
|
|
692
696
|
);
|
|
693
|
-
},
|
|
697
|
+
}, Pe = {
|
|
694
698
|
"action-menu": "lc-ActionMenu-module__action-menu___K2UwW",
|
|
695
699
|
"action-menu__trigger-button": "lc-ActionMenu-module__action-menu__trigger-button___tBrz5",
|
|
696
700
|
"action-menu__list": "lc-ActionMenu-module__action-menu__list___9pNUX",
|
|
@@ -702,7 +706,7 @@ const sc = {
|
|
|
702
706
|
"action-menu__list__item__icon": "lc-ActionMenu-module__action-menu__list__item__icon___o3ePo",
|
|
703
707
|
"action-menu__list--with-footer": "lc-ActionMenu-module__action-menu__list--with-footer___ghTxL",
|
|
704
708
|
"action-menu__footer": "lc-ActionMenu-module__action-menu__footer___HxoOe"
|
|
705
|
-
},
|
|
709
|
+
}, Ie = "action-menu", p_ = (E) => {
|
|
706
710
|
var v = E, {
|
|
707
711
|
className: t,
|
|
708
712
|
triggerClassName: a,
|
|
@@ -746,79 +750,86 @@ const sc = {
|
|
|
746
750
|
whileElementsMounted: aa
|
|
747
751
|
}), Ee = ra(G), ve = _a(G, {
|
|
748
752
|
enabled: S
|
|
749
|
-
}), we = oa(G), { getReferenceProps:
|
|
753
|
+
}), we = oa(G), { getReferenceProps: Ae, getFloatingProps: Re } = la([
|
|
750
754
|
Ee,
|
|
751
755
|
ve,
|
|
752
756
|
we
|
|
753
757
|
]), { styles: Le } = yr(G, {
|
|
754
|
-
initial: ({ side:
|
|
758
|
+
initial: ({ side: P }) => k({
|
|
755
759
|
opacity: 0
|
|
756
|
-
},
|
|
760
|
+
}, P === "bottom" && {
|
|
757
761
|
marginTop: -10
|
|
758
|
-
} ||
|
|
762
|
+
} || P === "top" && {
|
|
759
763
|
marginTop: 10
|
|
760
|
-
} ||
|
|
764
|
+
} || P === "left" && {
|
|
761
765
|
marginLeft: 10
|
|
762
|
-
} ||
|
|
766
|
+
} || P === "right" && {
|
|
763
767
|
marginLeft: -10
|
|
764
768
|
})
|
|
765
|
-
}), rt = (
|
|
769
|
+
}), rt = (P) => {
|
|
766
770
|
var Oe, He;
|
|
767
771
|
const L = C.current;
|
|
768
|
-
let oe = L +
|
|
772
|
+
let oe = L + P;
|
|
769
773
|
for (; (Oe = r[oe]) != null && Oe.disabled || (He = r[oe]) != null && He.groupHeader; )
|
|
770
|
-
if (oe +=
|
|
774
|
+
if (oe += P, oe === -1) {
|
|
771
775
|
oe = L;
|
|
772
776
|
break;
|
|
773
777
|
}
|
|
774
778
|
return oe;
|
|
775
|
-
}, Qe = (
|
|
779
|
+
}, Qe = (P) => {
|
|
776
780
|
var Oe, He;
|
|
777
|
-
C.current = rt(
|
|
781
|
+
C.current = rt(P);
|
|
778
782
|
const L = (Oe = N.current) == null ? void 0 : Oe.children, oe = L && ((He = L[C.current]) == null ? void 0 : He.children[0]);
|
|
779
783
|
return oe == null ? void 0 : oe.focus();
|
|
780
|
-
}, Ke = (
|
|
781
|
-
|
|
784
|
+
}, Ke = (P) => {
|
|
785
|
+
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
786
|
};
|
|
783
787
|
e.useEffect(() => {
|
|
784
788
|
if (S)
|
|
785
789
|
return document.addEventListener("keydown", Ke), () => document.removeEventListener("keydown", Ke);
|
|
786
790
|
C.current = -1;
|
|
787
791
|
}, [S, Ke]);
|
|
788
|
-
const _t = (
|
|
789
|
-
C.current =
|
|
790
|
-
}, je = (
|
|
792
|
+
const _t = (P, L) => {
|
|
793
|
+
C.current = P, L == null || L(), !h && !c && ($(!1), d == null || d());
|
|
794
|
+
}, je = (P, L) => P.groupHeader ? /* @__PURE__ */ e.createElement(
|
|
791
795
|
"li",
|
|
792
796
|
{
|
|
793
|
-
key:
|
|
797
|
+
key: P.key,
|
|
794
798
|
role: "none",
|
|
795
|
-
className:
|
|
799
|
+
className: Pe[`${Ie}__list__group-header`]
|
|
796
800
|
},
|
|
797
|
-
|
|
798
|
-
) : /* @__PURE__ */ e.createElement("li", { key:
|
|
801
|
+
P.element
|
|
802
|
+
) : /* @__PURE__ */ e.createElement("li", { key: P.key, role: "none" }, /* @__PURE__ */ e.createElement(
|
|
799
803
|
"button",
|
|
800
804
|
{
|
|
801
|
-
"data-testid":
|
|
805
|
+
"data-testid": P.key,
|
|
802
806
|
tabIndex: -1,
|
|
803
|
-
key:
|
|
804
|
-
disabled:
|
|
805
|
-
onClick: () => _t(L,
|
|
807
|
+
key: P.key,
|
|
808
|
+
disabled: P.disabled,
|
|
809
|
+
onClick: () => _t(L, P.onClick),
|
|
806
810
|
role: "menuitem",
|
|
807
|
-
className: u(
|
|
808
|
-
[
|
|
809
|
-
[
|
|
810
|
-
[
|
|
811
|
+
className: u(Pe[`${Ie}__list__item`], {
|
|
812
|
+
[Pe[`${Ie}__list__item--disabled`]]: P.disabled,
|
|
813
|
+
[Pe[`${Ie}__list__item--with-divider`]]: P.withDivider,
|
|
814
|
+
[Pe[`${Ie}__list__item--selected`]]: p == null ? void 0 : p.includes(P.key)
|
|
811
815
|
})
|
|
812
816
|
},
|
|
813
|
-
|
|
814
|
-
(p == null ? void 0 : p.includes(
|
|
817
|
+
P.element,
|
|
818
|
+
(p == null ? void 0 : p.includes(P.key)) && /* @__PURE__ */ e.createElement(
|
|
819
|
+
"div",
|
|
820
|
+
{
|
|
821
|
+
"data-testid": `${P.key}-selected-icon`,
|
|
822
|
+
className: Pe[`${Ie}__list__item__icon`]
|
|
823
|
+
},
|
|
824
|
+
/* @__PURE__ */ e.createElement(A, { source: Xt, kind: "action-primary" })
|
|
825
|
+
)
|
|
815
826
|
)), ot = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
816
827
|
"div",
|
|
817
828
|
T(k({
|
|
818
829
|
"aria-label": "Toggle menu",
|
|
819
830
|
"data-testid": "action-menu-trigger-button",
|
|
820
831
|
ref: Y.setReference
|
|
821
|
-
},
|
|
832
|
+
}, Ae()), {
|
|
822
833
|
className: a
|
|
823
834
|
}),
|
|
824
835
|
_
|
|
@@ -826,7 +837,7 @@ const sc = {
|
|
|
826
837
|
"div",
|
|
827
838
|
k({
|
|
828
839
|
ref: Y.setFloating,
|
|
829
|
-
className: Ie
|
|
840
|
+
className: Pe[Ie],
|
|
830
841
|
style: k({
|
|
831
842
|
position: R,
|
|
832
843
|
top: x != null ? x : "",
|
|
@@ -837,9 +848,9 @@ const sc = {
|
|
|
837
848
|
"ul",
|
|
838
849
|
T(k({}, b), {
|
|
839
850
|
className: u(
|
|
840
|
-
|
|
851
|
+
Pe[`${Ie}__list`],
|
|
841
852
|
{
|
|
842
|
-
[
|
|
853
|
+
[Pe[`${Ie}__list--with-footer`]]: f
|
|
843
854
|
},
|
|
844
855
|
t
|
|
845
856
|
),
|
|
@@ -849,11 +860,11 @@ const sc = {
|
|
|
849
860
|
r.map(je)
|
|
850
861
|
),
|
|
851
862
|
f && /* @__PURE__ */ e.createElement(
|
|
852
|
-
|
|
863
|
+
I,
|
|
853
864
|
{
|
|
854
865
|
size: "sm",
|
|
855
866
|
as: "div",
|
|
856
|
-
className:
|
|
867
|
+
className: Pe[`${Ie}__footer`]
|
|
857
868
|
},
|
|
858
869
|
f
|
|
859
870
|
)
|
|
@@ -873,7 +884,7 @@ const sc = {
|
|
|
873
884
|
})
|
|
874
885
|
},
|
|
875
886
|
t && /* @__PURE__ */ e.createElement("div", { className: pt[`${gt}__left-node`] }, t),
|
|
876
|
-
/* @__PURE__ */ e.createElement(
|
|
887
|
+
/* @__PURE__ */ e.createElement(I, { as: "div", className: pt[`${gt}__label`] }, r),
|
|
877
888
|
a && /* @__PURE__ */ e.createElement("div", { className: pt[`${gt}__right-node`] }, a)
|
|
878
889
|
), 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
890
|
loader: b_,
|
|
@@ -884,29 +895,39 @@ const sc = {
|
|
|
884
895
|
"loader__spinner-circle": "lc-Loader-module__loader__spinner-circle___ApBUO",
|
|
885
896
|
rotate: v_,
|
|
886
897
|
loader__label: h_
|
|
887
|
-
}, xr = "loader", Qa = `${xr}__spinner`, za = ({
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
898
|
+
}, xr = "loader", Qa = `${xr}__spinner`, za = (c) => {
|
|
899
|
+
var s = c, {
|
|
900
|
+
primaryColor: t,
|
|
901
|
+
secondaryColor: a,
|
|
902
|
+
label: r,
|
|
903
|
+
className: _,
|
|
904
|
+
size: o = "medium"
|
|
905
|
+
} = s, l = F(s, [
|
|
906
|
+
"primaryColor",
|
|
907
|
+
"secondaryColor",
|
|
908
|
+
"label",
|
|
909
|
+
"className",
|
|
910
|
+
"size"
|
|
911
|
+
]);
|
|
912
|
+
return /* @__PURE__ */ e.createElement("div", k({ className: u(bt[xr], _) }, l), /* @__PURE__ */ e.createElement(
|
|
899
913
|
"div",
|
|
900
914
|
{
|
|
901
|
-
className: bt[
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
915
|
+
className: u(bt[Qa], bt[`${Qa}--${o}`])
|
|
916
|
+
},
|
|
917
|
+
/* @__PURE__ */ e.createElement(
|
|
918
|
+
"div",
|
|
919
|
+
{
|
|
920
|
+
role: "status",
|
|
921
|
+
className: bt["loader__spinner-circle"],
|
|
922
|
+
style: {
|
|
923
|
+
/* stylelint-disable */
|
|
924
|
+
borderColor: a,
|
|
925
|
+
borderTopColor: t
|
|
926
|
+
}
|
|
906
927
|
}
|
|
907
|
-
|
|
908
|
-
)
|
|
909
|
-
|
|
928
|
+
)
|
|
929
|
+
), r && /* @__PURE__ */ e.createElement(I, { as: "div", size: "md", className: bt.loader__label }, r));
|
|
930
|
+
}, k_ = (t) => {
|
|
910
931
|
if (t === "primary" || t === "destructive")
|
|
911
932
|
return {
|
|
912
933
|
primaryColor: "var(--action-primary-default)",
|
|
@@ -1007,6 +1028,7 @@ const sc = {
|
|
|
1007
1028
|
t && /* @__PURE__ */ e.createElement(
|
|
1008
1029
|
za,
|
|
1009
1030
|
k({
|
|
1031
|
+
"data-testid": "button-loader",
|
|
1010
1032
|
size: "small",
|
|
1011
1033
|
label: i,
|
|
1012
1034
|
className: ce[`${ne}__loader`]
|
|
@@ -1022,7 +1044,8 @@ const sc = {
|
|
|
1022
1044
|
}
|
|
1023
1045
|
),
|
|
1024
1046
|
disabled: a,
|
|
1025
|
-
size: l === "xcompact" ? "small" : "medium"
|
|
1047
|
+
size: l === "xcompact" ? "small" : "medium",
|
|
1048
|
+
"data-testid": "button-icon"
|
|
1026
1049
|
}),
|
|
1027
1050
|
/* @__PURE__ */ e.createElement("div", { className: ce[`${ne}__content`] }, n)
|
|
1028
1051
|
);
|
|
@@ -1127,16 +1150,16 @@ const C_ = (t) => {
|
|
|
1127
1150
|
closeOnTriggerBlur: x = !1,
|
|
1128
1151
|
floatingStrategy: R
|
|
1129
1152
|
}) => {
|
|
1130
|
-
const Y = s !== void 0, [G, Ee] = e.useState(!1), ve = e.useRef(null), we = Y ? s : G,
|
|
1153
|
+
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
1154
|
D[Rt],
|
|
1132
1155
|
a,
|
|
1133
|
-
|
|
1156
|
+
Ae && D[`${Rt}--${Ae}`],
|
|
1134
1157
|
i && D[`${Rt}--full-space`]
|
|
1135
1158
|
), Qe = typeof _ == "function", Ke = (le) => {
|
|
1136
1159
|
le !== we && (le ? n == null || n() : d == null || d(), !Y && Ee(le));
|
|
1137
1160
|
}, _t = (le) => m ? le != null ? le : p : 0, je = (le) => le != null ? le : E, {
|
|
1138
1161
|
floatingStyles: ot,
|
|
1139
|
-
refs:
|
|
1162
|
+
refs: P,
|
|
1140
1163
|
context: L,
|
|
1141
1164
|
middlewareData: { arrow: { x: oe, y: Oe } = {} }
|
|
1142
1165
|
} = Zt({
|
|
@@ -1176,12 +1199,12 @@ const C_ = (t) => {
|
|
|
1176
1199
|
ua
|
|
1177
1200
|
]);
|
|
1178
1201
|
e.useEffect(() => {
|
|
1179
|
-
C &&
|
|
1180
|
-
}, [
|
|
1202
|
+
C && P.setReference(C);
|
|
1203
|
+
}, [P.setReference, C]);
|
|
1181
1204
|
const Pt = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
1182
1205
|
"div",
|
|
1183
1206
|
T(k({
|
|
1184
|
-
ref:
|
|
1207
|
+
ref: P.setReference
|
|
1185
1208
|
}, ba()), {
|
|
1186
1209
|
className: r
|
|
1187
1210
|
}),
|
|
@@ -1189,13 +1212,13 @@ const C_ = (t) => {
|
|
|
1189
1212
|
), /* @__PURE__ */ e.createElement(ca, { id: Le }, ma && /* @__PURE__ */ e.createElement(
|
|
1190
1213
|
"div",
|
|
1191
1214
|
T(k({
|
|
1192
|
-
ref:
|
|
1215
|
+
ref: P.setFloating,
|
|
1193
1216
|
style: k(k({}, ot), pa),
|
|
1194
1217
|
className: rt
|
|
1195
1218
|
}, fa()), {
|
|
1196
1219
|
"data-status": ga
|
|
1197
1220
|
}),
|
|
1198
|
-
/* @__PURE__ */ e.createElement(
|
|
1221
|
+
/* @__PURE__ */ e.createElement(I, { as: "div", className: D[`${Rt}__content`] }, t),
|
|
1199
1222
|
/* @__PURE__ */ e.createElement(
|
|
1200
1223
|
o_,
|
|
1201
1224
|
k({
|
|
@@ -1210,7 +1233,7 @@ const C_ = (t) => {
|
|
|
1210
1233
|
Oe,
|
|
1211
1234
|
oe
|
|
1212
1235
|
))
|
|
1213
|
-
}, C_(
|
|
1236
|
+
}, C_(Ae))
|
|
1214
1237
|
)
|
|
1215
1238
|
)));
|
|
1216
1239
|
return Re === null ? /* @__PURE__ */ e.createElement(La, null, Pt) : Pt;
|
|
@@ -1222,9 +1245,9 @@ const C_ = (t) => {
|
|
|
1222
1245
|
className: D[`${ft}-close`],
|
|
1223
1246
|
onClick: l
|
|
1224
1247
|
},
|
|
1225
|
-
/* @__PURE__ */ e.createElement(A, { source:
|
|
1248
|
+
/* @__PURE__ */ e.createElement(A, { source: Be, kind: o ? Tr(o) : "primary" })
|
|
1226
1249
|
), a && /* @__PURE__ */ e.createElement(
|
|
1227
|
-
|
|
1250
|
+
De,
|
|
1228
1251
|
{
|
|
1229
1252
|
as: "div",
|
|
1230
1253
|
size: "xs",
|
|
@@ -1234,7 +1257,7 @@ const C_ = (t) => {
|
|
|
1234
1257
|
},
|
|
1235
1258
|
a
|
|
1236
1259
|
), /* @__PURE__ */ e.createElement(
|
|
1237
|
-
|
|
1260
|
+
I,
|
|
1238
1261
|
{
|
|
1239
1262
|
as: "div",
|
|
1240
1263
|
className: u({
|
|
@@ -1262,7 +1285,7 @@ const C_ = (t) => {
|
|
|
1262
1285
|
className: D[`${ze}-close`],
|
|
1263
1286
|
onClick: l
|
|
1264
1287
|
},
|
|
1265
|
-
/* @__PURE__ */ e.createElement(A, { source:
|
|
1288
|
+
/* @__PURE__ */ e.createElement(A, { source: Be, kind: o ? Tr(o) : "primary" })
|
|
1266
1289
|
), r && /* @__PURE__ */ e.createElement("div", { className: D[`${ze}-image-container`] }, /* @__PURE__ */ e.createElement(
|
|
1267
1290
|
"img",
|
|
1268
1291
|
{
|
|
@@ -1270,7 +1293,7 @@ const C_ = (t) => {
|
|
|
1270
1293
|
src: r.src,
|
|
1271
1294
|
alt: r.alt
|
|
1272
1295
|
}
|
|
1273
|
-
)), t && /* @__PURE__ */ e.createElement(
|
|
1296
|
+
)), 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
1297
|
"div",
|
|
1275
1298
|
{
|
|
1276
1299
|
className: u(
|
|
@@ -1473,15 +1496,15 @@ const ja = 8, Za = "guide-tooltip", er = (t, a) => new B_(t, a), yc = (t) => {
|
|
|
1473
1496
|
title: t,
|
|
1474
1497
|
description: a,
|
|
1475
1498
|
children: r
|
|
1476
|
-
}) => /* @__PURE__ */ e.createElement("div", { className: D[vt] }, /* @__PURE__ */ e.createElement("div", { className: D[`${vt}__heading`] }, /* @__PURE__ */ e.createElement(
|
|
1477
|
-
|
|
1499
|
+
}) => /* @__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(
|
|
1500
|
+
I,
|
|
1478
1501
|
{
|
|
1479
1502
|
as: "div",
|
|
1480
1503
|
size: "xs",
|
|
1481
1504
|
className: D[`${vt}__heading__description`]
|
|
1482
1505
|
},
|
|
1483
1506
|
a
|
|
1484
|
-
)), /* @__PURE__ */ e.createElement("div", { className: D[`${vt}__content`] }, /* @__PURE__ */ e.createElement(
|
|
1507
|
+
)), /* @__PURE__ */ e.createElement("div", { className: D[`${vt}__content`] }, /* @__PURE__ */ e.createElement(I, { as: "div" }, r))), U = {
|
|
1485
1508
|
"action-bar": "lc-ActionBar-module__action-bar___TJitF",
|
|
1486
1509
|
"action-bar__items": "lc-ActionBar-module__action-bar__items___uhoQA",
|
|
1487
1510
|
"action-bar__items--scroll": "lc-ActionBar-module__action-bar__items--scroll___f--dN",
|
|
@@ -1757,7 +1780,7 @@ const ja = 8, Za = "guide-tooltip", er = (t, a) => new B_(t, a), yc = (t) => {
|
|
|
1757
1780
|
className: he[`${ke}__icon`]
|
|
1758
1781
|
})
|
|
1759
1782
|
), /* @__PURE__ */ e.createElement(
|
|
1760
|
-
|
|
1783
|
+
I,
|
|
1761
1784
|
{
|
|
1762
1785
|
as: "div",
|
|
1763
1786
|
className: he[`${ke}__content__wrapper__text`]
|
|
@@ -1775,11 +1798,10 @@ const ja = 8, Za = "guide-tooltip", er = (t, a) => new B_(t, a), yc = (t) => {
|
|
|
1775
1798
|
W,
|
|
1776
1799
|
{
|
|
1777
1800
|
"aria-label": "Close alert",
|
|
1778
|
-
type: "button",
|
|
1779
1801
|
className: he[`${ke}__close-icon`],
|
|
1780
1802
|
size: "compact",
|
|
1781
1803
|
kind: "plain",
|
|
1782
|
-
icon: /* @__PURE__ */ e.createElement(A, { source:
|
|
1804
|
+
icon: /* @__PURE__ */ e.createElement(A, { source: Be }),
|
|
1783
1805
|
onClick: l
|
|
1784
1806
|
}
|
|
1785
1807
|
));
|
|
@@ -1924,7 +1946,7 @@ const W_ = "lc-Avatar-module__avatar___1zTCE", V_ = "lc-Avatar-module__avatar__s
|
|
|
1924
1946
|
onError: Y
|
|
1925
1947
|
}
|
|
1926
1948
|
), h && /* @__PURE__ */ e.createElement(
|
|
1927
|
-
|
|
1949
|
+
De,
|
|
1928
1950
|
{
|
|
1929
1951
|
as: "span",
|
|
1930
1952
|
size: R(o),
|
|
@@ -1978,7 +2000,7 @@ const X_ = "lc-Badge-module__badge___GhLnu", Q_ = "lc-Badge-module__badge__dot__
|
|
|
1978
2000
|
), n = {
|
|
1979
2001
|
counter: J_(a, r),
|
|
1980
2002
|
alert: "!",
|
|
1981
|
-
dot: /* @__PURE__ */ e.createElement("span", { className: Lt[`${Ot}__dot`] })
|
|
2003
|
+
dot: /* @__PURE__ */ e.createElement("span", { "data-testid": "badge-dot", className: Lt[`${Ot}__dot`] })
|
|
1982
2004
|
}[l];
|
|
1983
2005
|
return /* @__PURE__ */ e.createElement("span", k({ className: d }, c), n);
|
|
1984
2006
|
};
|
|
@@ -2069,8 +2091,15 @@ const eo = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
2069
2091
|
className: ge[`${Jt}__image`],
|
|
2070
2092
|
src: c
|
|
2071
2093
|
}
|
|
2072
|
-
), /* @__PURE__ */ e.createElement("div", { className: ge[ka] }, /* @__PURE__ */ e.createElement(
|
|
2073
|
-
|
|
2094
|
+
), /* @__PURE__ */ e.createElement("div", { className: ge[ka] }, /* @__PURE__ */ e.createElement(De, { size: "xs", className: ge[`${ka}__title`] }, s), o && /* @__PURE__ */ e.createElement(
|
|
2095
|
+
I,
|
|
2096
|
+
{
|
|
2097
|
+
size: "sm",
|
|
2098
|
+
className: ge[`${ka}__description`]
|
|
2099
|
+
},
|
|
2100
|
+
o
|
|
2101
|
+
))), /* @__PURE__ */ e.createElement(I, { as: "div", size: "md", className: ge[`${Bt}__content`] }, r), m && /* @__PURE__ */ e.createElement(
|
|
2102
|
+
I,
|
|
2074
2103
|
{
|
|
2075
2104
|
as: "div",
|
|
2076
2105
|
size: "md",
|
|
@@ -2101,7 +2130,7 @@ const eo = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
2101
2130
|
"className"
|
|
2102
2131
|
]);
|
|
2103
2132
|
const l = u(po[go], a);
|
|
2104
|
-
return /* @__PURE__ */ e.createElement(
|
|
2133
|
+
return /* @__PURE__ */ e.createElement(I, T(k({ as: "span", size: "sm" }, r), { className: l }), t);
|
|
2105
2134
|
}, 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
2135
|
checkbox: bo,
|
|
2107
2136
|
checkbox__label: fo,
|
|
@@ -2132,7 +2161,7 @@ const eo = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
2132
2161
|
className: Ze[`${et}__input`],
|
|
2133
2162
|
type: "checkbox"
|
|
2134
2163
|
})
|
|
2135
|
-
), r && /* @__PURE__ */ e.createElement(
|
|
2164
|
+
), r && /* @__PURE__ */ e.createElement(I, { as: "div", size: "md", className: Ze[`${et}__text`] }, r)),
|
|
2136
2165
|
_ && /* @__PURE__ */ e.createElement(na, { className: Ze[`${et}__helper`] }, _)
|
|
2137
2166
|
);
|
|
2138
2167
|
}
|
|
@@ -2689,7 +2718,7 @@ const Sc = (t) => {
|
|
|
2689
2718
|
},
|
|
2690
2719
|
r && /* @__PURE__ */ e.createElement("div", { className: O[`${H}__label__left-node`] }, r),
|
|
2691
2720
|
h ? /* @__PURE__ */ e.createElement(
|
|
2692
|
-
|
|
2721
|
+
De,
|
|
2693
2722
|
{
|
|
2694
2723
|
size: "xs",
|
|
2695
2724
|
className: O[`${H}__label__content`]
|
|
@@ -2764,7 +2793,7 @@ const Sc = (t) => {
|
|
|
2764
2793
|
"className"
|
|
2765
2794
|
]);
|
|
2766
2795
|
const l = u(or[lr], a);
|
|
2767
|
-
return /* @__PURE__ */ e.createElement(
|
|
2796
|
+
return /* @__PURE__ */ e.createElement(I, T(k({ as: "span", size: "sm" }, r), { className: l }), /* @__PURE__ */ e.createElement(
|
|
2768
2797
|
A,
|
|
2769
2798
|
{
|
|
2770
2799
|
source: Ma,
|
|
@@ -2817,7 +2846,7 @@ const Sc = (t) => {
|
|
|
2817
2846
|
"helperText",
|
|
2818
2847
|
"formFooter"
|
|
2819
2848
|
]);
|
|
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(
|
|
2849
|
+
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
2850
|
}, J = {
|
|
2822
2851
|
"form-field": "lc-FormField-module__form-field___JqnX6",
|
|
2823
2852
|
"form-field--inline": "lc-FormField-module__form-field--inline___4DgIq",
|
|
@@ -2857,7 +2886,7 @@ const Sc = (t) => {
|
|
|
2857
2886
|
const f = d;
|
|
2858
2887
|
return t && f.current ? m(`${f.current.clientHeight}px`) : m("auto");
|
|
2859
2888
|
}), /* @__PURE__ */ e.createElement("div", { className: p }, i && t && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
2860
|
-
|
|
2889
|
+
I,
|
|
2861
2890
|
{
|
|
2862
2891
|
as: "div",
|
|
2863
2892
|
size: "sm",
|
|
@@ -2901,10 +2930,10 @@ const Sc = (t) => {
|
|
|
2901
2930
|
className: J[`${X}__label-left-node`],
|
|
2902
2931
|
htmlFor: c
|
|
2903
2932
|
},
|
|
2904
|
-
/* @__PURE__ */ e.createElement(
|
|
2933
|
+
/* @__PURE__ */ e.createElement(I, { as: "span", size: "sm" }, _)
|
|
2905
2934
|
),
|
|
2906
2935
|
o && /* @__PURE__ */ e.createElement(
|
|
2907
|
-
|
|
2936
|
+
I,
|
|
2908
2937
|
{
|
|
2909
2938
|
as: "div",
|
|
2910
2939
|
size: "sm",
|
|
@@ -2917,7 +2946,7 @@ const Sc = (t) => {
|
|
|
2917
2946
|
)
|
|
2918
2947
|
),
|
|
2919
2948
|
i && !t && /* @__PURE__ */ e.createElement(
|
|
2920
|
-
|
|
2949
|
+
I,
|
|
2921
2950
|
{
|
|
2922
2951
|
as: "div",
|
|
2923
2952
|
size: "sm",
|
|
@@ -2959,10 +2988,10 @@ const Sc = (t) => {
|
|
|
2959
2988
|
}), r && { "aria-label": r }), {
|
|
2960
2989
|
className: s
|
|
2961
2990
|
}),
|
|
2962
|
-
/* @__PURE__ */ e.createElement("div", { className: Gt[`${Ut}__header`] }, /* @__PURE__ */ e.createElement(
|
|
2991
|
+
/* @__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
2992
|
a
|
|
2964
2993
|
);
|
|
2965
|
-
}, Lo = "lc-Input-module__input___qeMAQ",
|
|
2994
|
+
}, Lo = "lc-Input-module__input___qeMAQ", xe = {
|
|
2966
2995
|
input: Lo,
|
|
2967
2996
|
"input--focused": "lc-Input-module__input--focused___wQH5-",
|
|
2968
2997
|
"input--disabled": "lc-Input-module__input--disabled___HidXX",
|
|
@@ -2977,13 +3006,13 @@ const Sc = (t) => {
|
|
|
2977
3006
|
"input__icon--left": "lc-Input-module__input__icon--left___BcySs",
|
|
2978
3007
|
"input__icon--right": "lc-Input-module__input__icon--right___VefSK",
|
|
2979
3008
|
"input__visibility-button": "lc-Input-module__input__visibility-button___eWrVe"
|
|
2980
|
-
},
|
|
3009
|
+
}, Te = "input", cr = (t, a) => e.cloneElement(t.source, {
|
|
2981
3010
|
"data-testid": `input-icon-${t.place}`,
|
|
2982
3011
|
className: u(
|
|
2983
|
-
|
|
2984
|
-
|
|
3012
|
+
xe[`${Te}__icon`],
|
|
3013
|
+
xe[`${Te}__icon--${t.place}`],
|
|
2985
3014
|
{
|
|
2986
|
-
[
|
|
3015
|
+
[xe[`${Te}__icon--disabled`]]: a
|
|
2987
3016
|
}
|
|
2988
3017
|
)
|
|
2989
3018
|
}), Ic = e.forwardRef(
|
|
@@ -3007,21 +3036,21 @@ const Sc = (t) => {
|
|
|
3007
3036
|
e.useImperativeHandle(s, () => n.current, []);
|
|
3008
3037
|
const [m, p] = e.useState(!1), [f, b] = e.useState(!1), { type: E, onFocus: v, onBlur: h } = c, y = u(
|
|
3009
3038
|
o,
|
|
3010
|
-
Te
|
|
3011
|
-
|
|
3039
|
+
xe[Te],
|
|
3040
|
+
xe[`${Te}--${t}`],
|
|
3012
3041
|
{
|
|
3013
|
-
[
|
|
3014
|
-
[
|
|
3015
|
-
[
|
|
3016
|
-
[
|
|
3017
|
-
[
|
|
3042
|
+
[xe[`${Te}--disabled`]]: r,
|
|
3043
|
+
[xe[`${Te}--focused`]]: m,
|
|
3044
|
+
[xe[`${Te}--error`]]: a,
|
|
3045
|
+
[xe[`${Te}--crop`]]: l,
|
|
3046
|
+
[xe[`${Te}--read-only`]]: c.readOnly
|
|
3018
3047
|
}
|
|
3019
3048
|
), $ = r ? "var(--content-disabled)" : "var(--content-default)", C = f ? Kr : Jr, w = _ && _.place === "left", g = _ && E !== "password" && _.place === "right", N = () => {
|
|
3020
3049
|
var S;
|
|
3021
3050
|
(S = n.current) == null || S.focus();
|
|
3022
3051
|
};
|
|
3023
3052
|
return /* @__PURE__ */ e.createElement(
|
|
3024
|
-
|
|
3053
|
+
I,
|
|
3025
3054
|
{
|
|
3026
3055
|
as: "div",
|
|
3027
3056
|
className: y,
|
|
@@ -3053,7 +3082,7 @@ const Sc = (t) => {
|
|
|
3053
3082
|
size: "compact",
|
|
3054
3083
|
icon: /* @__PURE__ */ e.createElement(A, { customColor: $, source: C }),
|
|
3055
3084
|
onClick: () => b((S) => !S),
|
|
3056
|
-
className:
|
|
3085
|
+
className: xe[`${Te}__visibility-button`]
|
|
3057
3086
|
}
|
|
3058
3087
|
)
|
|
3059
3088
|
);
|
|
@@ -3166,7 +3195,7 @@ const Sc = (t) => {
|
|
|
3166
3195
|
t && me["modal-base__close--label-type"]
|
|
3167
3196
|
),
|
|
3168
3197
|
onClick: r,
|
|
3169
|
-
icon: /* @__PURE__ */ e.createElement(A, { source:
|
|
3198
|
+
icon: /* @__PURE__ */ e.createElement(A, { source: Be, size: "medium", customColor: a })
|
|
3170
3199
|
}
|
|
3171
3200
|
), tt = "modal", Mc = (d) => {
|
|
3172
3201
|
var n = d, {
|
|
@@ -3200,7 +3229,7 @@ const Sc = (t) => {
|
|
|
3200
3229
|
isLabelled: !!_
|
|
3201
3230
|
}, i),
|
|
3202
3231
|
_ && /* @__PURE__ */ e.createElement("div", { className: me[`${tt}__label-header`] }, /* @__PURE__ */ e.createElement(
|
|
3203
|
-
|
|
3232
|
+
De,
|
|
3204
3233
|
{
|
|
3205
3234
|
size: "sm",
|
|
3206
3235
|
as: "div",
|
|
@@ -3216,7 +3245,7 @@ const Sc = (t) => {
|
|
|
3216
3245
|
}
|
|
3217
3246
|
)),
|
|
3218
3247
|
!_ && r && /* @__PURE__ */ e.createElement("div", { className: me[`${tt}__header`] }, /* @__PURE__ */ e.createElement(
|
|
3219
|
-
|
|
3248
|
+
De,
|
|
3220
3249
|
{
|
|
3221
3250
|
size: "sm",
|
|
3222
3251
|
as: "div",
|
|
@@ -3230,7 +3259,7 @@ const Sc = (t) => {
|
|
|
3230
3259
|
"data-testid": "modal-body",
|
|
3231
3260
|
className: u(me[`${tt}__body`], s)
|
|
3232
3261
|
},
|
|
3233
|
-
p ? /* @__PURE__ */ e.createElement(
|
|
3262
|
+
p ? /* @__PURE__ */ e.createElement(I, { as: "div" }, t) : t
|
|
3234
3263
|
),
|
|
3235
3264
|
l && /* @__PURE__ */ e.createElement("div", { className: me[`${tt}__footer`] }, l)
|
|
3236
3265
|
);
|
|
@@ -3271,8 +3300,8 @@ const Sc = (t) => {
|
|
|
3271
3300
|
k({
|
|
3272
3301
|
className: $t[`${Ct}__heading-left-node`]
|
|
3273
3302
|
}, r)
|
|
3274
|
-
), /* @__PURE__ */ e.createElement("div", { className: $t[`${Ct}__heading-body`] }, /* @__PURE__ */ e.createElement(
|
|
3275
|
-
|
|
3303
|
+
), /* @__PURE__ */ e.createElement("div", { className: $t[`${Ct}__heading-body`] }, /* @__PURE__ */ e.createElement(De, { as: "div", size: "sm" }, t), _ && /* @__PURE__ */ e.createElement(
|
|
3304
|
+
I,
|
|
3276
3305
|
{
|
|
3277
3306
|
as: "div",
|
|
3278
3307
|
className: $t[`${Ct}__heading-description`]
|
|
@@ -3449,7 +3478,7 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
3449
3478
|
alt: n.name
|
|
3450
3479
|
}
|
|
3451
3480
|
), /* @__PURE__ */ e.createElement("div", { className: ae[`${ye}__label-container`] }, /* @__PURE__ */ e.createElement(
|
|
3452
|
-
|
|
3481
|
+
I,
|
|
3453
3482
|
{
|
|
3454
3483
|
as: "span",
|
|
3455
3484
|
className: u([ae[`${ye}__label`]], {
|
|
@@ -3468,7 +3497,7 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
3468
3497
|
role: "group",
|
|
3469
3498
|
className: ae[`${ye}__header`]
|
|
3470
3499
|
}, l()),
|
|
3471
|
-
/* @__PURE__ */ e.createElement(
|
|
3500
|
+
/* @__PURE__ */ e.createElement(De, { size: "2xs", uppercase: !0, bold: !0, as: "div" }, c.name)
|
|
3472
3501
|
);
|
|
3473
3502
|
const d = (n) => {
|
|
3474
3503
|
!c.disabled && o(n);
|
|
@@ -3673,7 +3702,7 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
3673
3702
|
onBlur: () => f(!1)
|
|
3674
3703
|
}),
|
|
3675
3704
|
/* @__PURE__ */ e.createElement(
|
|
3676
|
-
|
|
3705
|
+
I,
|
|
3677
3706
|
{
|
|
3678
3707
|
as: "div",
|
|
3679
3708
|
className: u(
|
|
@@ -3699,7 +3728,7 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
3699
3728
|
className: se[`${re}__clear-icon`],
|
|
3700
3729
|
onClick: v
|
|
3701
3730
|
},
|
|
3702
|
-
/* @__PURE__ */ e.createElement(A, { kind: "primary", size: "small", source:
|
|
3731
|
+
/* @__PURE__ */ e.createElement(A, { kind: "primary", size: "small", source: Be })
|
|
3703
3732
|
),
|
|
3704
3733
|
/* @__PURE__ */ e.createElement(
|
|
3705
3734
|
A,
|
|
@@ -3800,7 +3829,7 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
3800
3829
|
return i ? m : Ha(m, "#FFFFFF") > 4.5 ? "#FFFFFF" : "#000000";
|
|
3801
3830
|
};
|
|
3802
3831
|
return /* @__PURE__ */ e.createElement(
|
|
3803
|
-
|
|
3832
|
+
I,
|
|
3804
3833
|
T(k(k({
|
|
3805
3834
|
className: y
|
|
3806
3835
|
}, b), w()), {
|
|
@@ -3840,7 +3869,7 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
3840
3869
|
A,
|
|
3841
3870
|
{
|
|
3842
3871
|
"data-dismiss-icon": !0,
|
|
3843
|
-
source:
|
|
3872
|
+
source: Be,
|
|
3844
3873
|
size: $,
|
|
3845
3874
|
customColor: g()
|
|
3846
3875
|
}
|
|
@@ -4146,7 +4175,7 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
4146
4175
|
"useClickHookProps",
|
|
4147
4176
|
"virtuosoProps"
|
|
4148
4177
|
]);
|
|
4149
|
-
const [Ee, ve] = e.useState(C), [we,
|
|
4178
|
+
const [Ee, ve] = e.useState(C), [we, Ae] = e.useState(!1), Re = h !== void 0, Le = Re ? h : Ee, rt = (le, Ua) => {
|
|
4150
4179
|
le ? y == null || y(Ua) : $ == null || $(Ua), !Re && ve(le);
|
|
4151
4180
|
}, {
|
|
4152
4181
|
selectedKeys: Qe,
|
|
@@ -4154,7 +4183,7 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
4154
4183
|
searchPhrase: _t,
|
|
4155
4184
|
handleSelect: je,
|
|
4156
4185
|
handleOnFilter: ot,
|
|
4157
|
-
handleItemRemove:
|
|
4186
|
+
handleItemRemove: P,
|
|
4158
4187
|
handleClear: L
|
|
4159
4188
|
} = cl({
|
|
4160
4189
|
selected: i,
|
|
@@ -4205,7 +4234,7 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
4205
4234
|
isRequired: m,
|
|
4206
4235
|
isMultiSelect: b === "multi",
|
|
4207
4236
|
size: d,
|
|
4208
|
-
setTriggerFocus:
|
|
4237
|
+
setTriggerFocus: Ae
|
|
4209
4238
|
},
|
|
4210
4239
|
/* @__PURE__ */ e.createElement(
|
|
4211
4240
|
_l,
|
|
@@ -4218,7 +4247,7 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
4218
4247
|
type: b,
|
|
4219
4248
|
size: d,
|
|
4220
4249
|
clearSearchAfterSelection: w,
|
|
4221
|
-
onItemRemove:
|
|
4250
|
+
onItemRemove: P,
|
|
4222
4251
|
onSelect: je,
|
|
4223
4252
|
onFilter: ot,
|
|
4224
4253
|
onClear: L,
|
|
@@ -4267,8 +4296,8 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
4267
4296
|
useClickHookProps: f,
|
|
4268
4297
|
floatingStrategy: b
|
|
4269
4298
|
}) => {
|
|
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
|
-
|
|
4299
|
+
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) => {
|
|
4300
|
+
Ae ? r == null || r(Re) : a == null || a(Re), !$ && v(Ae);
|
|
4272
4301
|
}, { refs: S, context: V, floatingStyles: q } = Zt({
|
|
4273
4302
|
nodeId: y,
|
|
4274
4303
|
open: C,
|
|
@@ -4299,7 +4328,7 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
4299
4328
|
ref: S.setFloating,
|
|
4300
4329
|
style: q
|
|
4301
4330
|
}, Ee()),
|
|
4302
|
-
w ? /* @__PURE__ */ e.createElement(
|
|
4331
|
+
w ? /* @__PURE__ */ e.createElement(I, { as: "div" }, _) : _
|
|
4303
4332
|
))));
|
|
4304
4333
|
return h === null ? /* @__PURE__ */ e.createElement(La, null, we) : we;
|
|
4305
4334
|
}, dl = [
|
|
@@ -4486,14 +4515,14 @@ const Nt = {
|
|
|
4486
4515
|
},
|
|
4487
4516
|
a
|
|
4488
4517
|
), 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(
|
|
4518
|
+
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
4519
|
"button",
|
|
4491
4520
|
{
|
|
4492
4521
|
type: "button",
|
|
4493
4522
|
className: $e[`${Ce}__close-icon`],
|
|
4494
4523
|
onClick: i
|
|
4495
4524
|
},
|
|
4496
|
-
/* @__PURE__ */ e.createElement(A, { source:
|
|
4525
|
+
/* @__PURE__ */ e.createElement(A, { source: Be, size: "large", kind: "primary" })
|
|
4497
4526
|
));
|
|
4498
4527
|
}, Ue = {
|
|
4499
4528
|
"main-wrapper": "lc-PromoBannerV2-module__main-wrapper___U-dPS",
|
|
@@ -4556,7 +4585,7 @@ const Nt = {
|
|
|
4556
4585
|
{
|
|
4557
4586
|
className: Ue[`${Je}__close__btn`],
|
|
4558
4587
|
onClick: i,
|
|
4559
|
-
icon: /* @__PURE__ */ e.createElement(A, { source:
|
|
4588
|
+
icon: /* @__PURE__ */ e.createElement(A, { source: Be, kind: "primary" }),
|
|
4560
4589
|
kind: "plain",
|
|
4561
4590
|
size: "compact"
|
|
4562
4591
|
}
|
|
@@ -4588,7 +4617,7 @@ const Nt = {
|
|
|
4588
4617
|
checked: _,
|
|
4589
4618
|
disabled: o
|
|
4590
4619
|
})
|
|
4591
|
-
)), t && /* @__PURE__ */ e.createElement(
|
|
4620
|
+
)), 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
4621
|
}
|
|
4593
4622
|
), Ne = {
|
|
4594
4623
|
"search-input": "lc-Search-module__search-input___FsbCk",
|
|
@@ -4604,7 +4633,7 @@ const Nt = {
|
|
|
4604
4633
|
"search-input__loader": "lc-Search-module__search-input__loader___pkpIG",
|
|
4605
4634
|
"search-input__input-wrapper": "lc-Search-module__search-input__input-wrapper___k8bvn",
|
|
4606
4635
|
"search-input__input-wrapper--crop": "lc-Search-module__search-input__input-wrapper--crop___nBPKY"
|
|
4607
|
-
},
|
|
4636
|
+
}, Fe = "search-input", mr = `${Fe}__input-wrapper`, Vc = ({
|
|
4608
4637
|
isCollapsable: t,
|
|
4609
4638
|
isDisabled: a,
|
|
4610
4639
|
isLoading: r,
|
|
@@ -4617,12 +4646,12 @@ const Nt = {
|
|
|
4617
4646
|
}) => {
|
|
4618
4647
|
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
4648
|
c,
|
|
4620
|
-
Ne[
|
|
4621
|
-
Ne[`${
|
|
4622
|
-
m && Ne[`${
|
|
4623
|
-
a && Ne[`${
|
|
4624
|
-
t && Ne[`${
|
|
4625
|
-
!d && Ne[`${
|
|
4649
|
+
Ne[Fe],
|
|
4650
|
+
Ne[`${Fe}--${o}`],
|
|
4651
|
+
m && Ne[`${Fe}--focused`],
|
|
4652
|
+
a && Ne[`${Fe}--disabled`],
|
|
4653
|
+
t && Ne[`${Fe}--collapsable`],
|
|
4654
|
+
!d && Ne[`${Fe}--collapsable--open`]
|
|
4626
4655
|
);
|
|
4627
4656
|
e.useEffect(() => {
|
|
4628
4657
|
t && l && n(!1);
|
|
@@ -4653,14 +4682,14 @@ const Nt = {
|
|
|
4653
4682
|
/* @__PURE__ */ e.createElement(
|
|
4654
4683
|
A,
|
|
4655
4684
|
{
|
|
4656
|
-
className: Ne[`${
|
|
4685
|
+
className: Ne[`${Fe}__search-icon`],
|
|
4657
4686
|
source: Xr,
|
|
4658
4687
|
disabled: a,
|
|
4659
4688
|
kind: "primary"
|
|
4660
4689
|
}
|
|
4661
4690
|
),
|
|
4662
4691
|
/* @__PURE__ */ e.createElement(
|
|
4663
|
-
|
|
4692
|
+
I,
|
|
4664
4693
|
{
|
|
4665
4694
|
as: "div",
|
|
4666
4695
|
className: u(
|
|
@@ -4689,21 +4718,14 @@ const Nt = {
|
|
|
4689
4718
|
{
|
|
4690
4719
|
"aria-label": "Clear search",
|
|
4691
4720
|
title: "Clear search",
|
|
4692
|
-
className: Ne[`${
|
|
4721
|
+
className: Ne[`${Fe}__clear-icon`],
|
|
4693
4722
|
onClick: y,
|
|
4694
|
-
icon: /* @__PURE__ */ e.createElement(A, { source:
|
|
4723
|
+
icon: /* @__PURE__ */ e.createElement(A, { source: Be, kind: "primary" }),
|
|
4695
4724
|
kind: "text",
|
|
4696
4725
|
size: "compact"
|
|
4697
4726
|
}
|
|
4698
4727
|
),
|
|
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
|
-
)
|
|
4728
|
+
r && /* @__PURE__ */ e.createElement("div", { className: Ne[`${Fe}__loader`] }, /* @__PURE__ */ e.createElement(za, { size: "small" }))
|
|
4707
4729
|
);
|
|
4708
4730
|
}, kl = "lc-Skeleton-module__loading___MHvGo", at = {
|
|
4709
4731
|
"skeleton-wrapper": "lc-Skeleton-module__skeleton-wrapper___MXuR8",
|
|
@@ -4882,6 +4904,7 @@ const Nt = {
|
|
|
4882
4904
|
$ && /* @__PURE__ */ e.createElement(
|
|
4883
4905
|
za,
|
|
4884
4906
|
{
|
|
4907
|
+
"data-testid": "switch-loader",
|
|
4885
4908
|
className: u(
|
|
4886
4909
|
j[`${Q}__loader`],
|
|
4887
4910
|
j[`${Q}__loader--${c}`]
|
|
@@ -4927,7 +4950,7 @@ const Nt = {
|
|
|
4927
4950
|
]);
|
|
4928
4951
|
const { disabled: d } = c, n = r !== void 0 && !o, m = r !== void 0 && o;
|
|
4929
4952
|
return /* @__PURE__ */ e.createElement(
|
|
4930
|
-
|
|
4953
|
+
I,
|
|
4931
4954
|
T(k({}, c), {
|
|
4932
4955
|
as: c.href ? "a" : "button",
|
|
4933
4956
|
size: "md",
|
|
@@ -4941,7 +4964,7 @@ const Nt = {
|
|
|
4941
4964
|
)
|
|
4942
4965
|
}),
|
|
4943
4966
|
t,
|
|
4944
|
-
n && /* @__PURE__ */ e.createElement(
|
|
4967
|
+
n && /* @__PURE__ */ e.createElement(I, { as: "span", size: "md", className: st[`${it}__count`] }, "(", r, ")"),
|
|
4945
4968
|
m && /* @__PURE__ */ e.createElement(
|
|
4946
4969
|
j_,
|
|
4947
4970
|
{
|
|
@@ -5131,7 +5154,7 @@ const Nt = {
|
|
|
5131
5154
|
},
|
|
5132
5155
|
x.value || x.children
|
|
5133
5156
|
);
|
|
5134
|
-
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
5157
|
+
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
5158
|
"input",
|
|
5136
5159
|
T(k({}, m), {
|
|
5137
5160
|
id: t,
|
|
@@ -5216,7 +5239,7 @@ const Nt = {
|
|
|
5216
5239
|
Z[`${Xe}--${o}`],
|
|
5217
5240
|
a
|
|
5218
5241
|
), 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(
|
|
5242
|
+
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
5243
|
W,
|
|
5221
5244
|
{
|
|
5222
5245
|
className: Z[`${Xe}__actions--custom`],
|
|
@@ -5235,7 +5258,7 @@ const Nt = {
|
|
|
5235
5258
|
"aria-label": "Close toast",
|
|
5236
5259
|
onClick: l
|
|
5237
5260
|
},
|
|
5238
|
-
/* @__PURE__ */ e.createElement(A, { source:
|
|
5261
|
+
/* @__PURE__ */ e.createElement(A, { source: Be, size: "medium" })
|
|
5239
5262
|
)));
|
|
5240
5263
|
}, ql = 200, xt = "toast-wrapper", en = ({
|
|
5241
5264
|
className: t,
|
|
@@ -5296,7 +5319,7 @@ const Nt = {
|
|
|
5296
5319
|
}, f = (b) => {
|
|
5297
5320
|
n(!0), i == null || i(b);
|
|
5298
5321
|
};
|
|
5299
|
-
return /* @__PURE__ */ e.createElement(
|
|
5322
|
+
return /* @__PURE__ */ e.createElement(I, { as: "div", className: m }, /* @__PURE__ */ e.createElement(
|
|
5300
5323
|
"textarea",
|
|
5301
5324
|
T(k({}, r), {
|
|
5302
5325
|
ref: _,
|
|
@@ -5326,7 +5349,7 @@ const Nt = {
|
|
|
5326
5349
|
"aria-label": "Close",
|
|
5327
5350
|
onClick: a
|
|
5328
5351
|
},
|
|
5329
|
-
/* @__PURE__ */ e.createElement(A, { size: "small", source:
|
|
5352
|
+
/* @__PURE__ */ e.createElement(A, { size: "small", source: Be })
|
|
5330
5353
|
)), Se = {
|
|
5331
5354
|
"file-upload-progress": "lc-FileUploadProgress-module__file-upload-progress___xw8h8",
|
|
5332
5355
|
"file-upload-progress__icon": "lc-FileUploadProgress-module__file-upload-progress__icon___p8Rfz",
|
|
@@ -5373,7 +5396,7 @@ const Nt = {
|
|
|
5373
5396
|
[Se[`${Ta}--error`]]: c === "error"
|
|
5374
5397
|
})
|
|
5375
5398
|
},
|
|
5376
|
-
/* @__PURE__ */ e.createElement(
|
|
5399
|
+
/* @__PURE__ */ e.createElement(I, { size: "sm", as: "div" }, _),
|
|
5377
5400
|
"=",
|
|
5378
5401
|
" "
|
|
5379
5402
|
), t !== "hidden" && /* @__PURE__ */ e.createElement(
|
|
@@ -5470,7 +5493,7 @@ const Nt = {
|
|
|
5470
5493
|
className: z[`${ue}__wrapper`],
|
|
5471
5494
|
onClick: y
|
|
5472
5495
|
},
|
|
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(
|
|
5496
|
+
/* @__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
5497
|
"button",
|
|
5475
5498
|
{
|
|
5476
5499
|
className: z[`${Ye}__collapse-button`],
|
|
@@ -5527,7 +5550,7 @@ export {
|
|
|
5527
5550
|
Bc as Form,
|
|
5528
5551
|
Ac as FormField,
|
|
5529
5552
|
Pc as FormGroup,
|
|
5530
|
-
|
|
5553
|
+
De as Heading,
|
|
5531
5554
|
A as Icon,
|
|
5532
5555
|
hc as Info,
|
|
5533
5556
|
Ic as Input,
|
|
@@ -5565,7 +5588,7 @@ export {
|
|
|
5565
5588
|
Qc as TabsWrapper,
|
|
5566
5589
|
Ir as Tag,
|
|
5567
5590
|
Ml as TagInput,
|
|
5568
|
-
|
|
5591
|
+
I as Text,
|
|
5569
5592
|
tn as Textarea,
|
|
5570
5593
|
Vl as Toast,
|
|
5571
5594
|
en as ToastWrapper,
|