@scbt-ecom/ui 0.0.56 → 0.0.57
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/client.js +9 -8
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
package/dist/client.js
CHANGED
|
@@ -3454,9 +3454,10 @@ const lu = (t = !1) => {
|
|
|
3454
3454
|
t.current && !t.current.contains(r.target) && e();
|
|
3455
3455
|
};
|
|
3456
3456
|
S.useEffect(() => {
|
|
3457
|
+
var r;
|
|
3457
3458
|
if (HA)
|
|
3458
|
-
return document.addEventListener("mousedown", n), () => {
|
|
3459
|
-
document.removeEventListener("mousedown", n);
|
|
3459
|
+
return (r = globalThis == null ? void 0 : globalThis.document) == null || r.addEventListener("mousedown", n), () => {
|
|
3460
|
+
globalThis == null || globalThis.document.removeEventListener("mousedown", n);
|
|
3460
3461
|
};
|
|
3461
3462
|
}, [t, e]);
|
|
3462
3463
|
};
|
|
@@ -10693,11 +10694,11 @@ const o1 = ({ children: t, exitBeforeEnter: e, custom: n, initial: r = !0, onExi
|
|
|
10693
10694
|
children: e,
|
|
10694
10695
|
isModalOpen: n,
|
|
10695
10696
|
isPortal: r = !0,
|
|
10696
|
-
portalContainer: i = document == null ? void 0 :
|
|
10697
|
+
portalContainer: i = ((a) => (a = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : a.body)(),
|
|
10697
10698
|
closeModal: o,
|
|
10698
10699
|
classes: s
|
|
10699
10700
|
}) => {
|
|
10700
|
-
const
|
|
10701
|
+
const l = /* @__PURE__ */ C.jsx(o1, { children: n && /* @__PURE__ */ C.jsx(
|
|
10701
10702
|
Ml.div,
|
|
10702
10703
|
{
|
|
10703
10704
|
tabIndex: -1,
|
|
@@ -10706,14 +10707,14 @@ const o1 = ({ children: t, exitBeforeEnter: e, custom: n, initial: r = !0, onExi
|
|
|
10706
10707
|
"fixed inset-0 z-1000 flex h-screen w-screen items-center justify-center bg-color-overlay",
|
|
10707
10708
|
s == null ? void 0 : s.overlay
|
|
10708
10709
|
),
|
|
10709
|
-
onKeyDown: (
|
|
10710
|
-
|
|
10710
|
+
onKeyDown: (c) => {
|
|
10711
|
+
c.key === "Escape" && o();
|
|
10711
10712
|
},
|
|
10712
10713
|
...aV,
|
|
10713
10714
|
children: /* @__PURE__ */ C.jsxs(
|
|
10714
10715
|
Ml.div,
|
|
10715
10716
|
{
|
|
10716
|
-
onClick: (
|
|
10717
|
+
onClick: (c) => c.stopPropagation(),
|
|
10717
10718
|
className: P(
|
|
10718
10719
|
"w-full max-w-[600px] rounded-md bg-color-white px-4 py-6 shadow-sm desktop:px-6 desktop:py-8",
|
|
10719
10720
|
s == null ? void 0 : s.modal
|
|
@@ -10727,7 +10728,7 @@ const o1 = ({ children: t, exitBeforeEnter: e, custom: n, initial: r = !0, onExi
|
|
|
10727
10728
|
)
|
|
10728
10729
|
}
|
|
10729
10730
|
) });
|
|
10730
|
-
return /* @__PURE__ */ C.jsx(C.Fragment, { children: r ? sc(
|
|
10731
|
+
return /* @__PURE__ */ C.jsx(C.Fragment, { children: r ? sc(l, i) : l });
|
|
10731
10732
|
}, LU = ({ maxToastViewLimit: t = 2, toastDuration: e = 5e3 }) => {
|
|
10732
10733
|
const { toasts: n } = ZA();
|
|
10733
10734
|
return Ve(() => {
|