@scbt-ecom/ui 0.61.0 → 0.61.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/ui.js +13 -13
- package/dist/ui.js.map +1 -1
- package/package.json +1 -1
package/dist/ui.js
CHANGED
|
@@ -322,20 +322,20 @@ const Ft = ({ classes: e, contents: o }) => /* @__PURE__ */ p.jsx("div", { class
|
|
|
322
322
|
var l;
|
|
323
323
|
const n = ht(null), [r, i] = ne(!1);
|
|
324
324
|
return ye(() => {
|
|
325
|
-
if (n.current)
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
325
|
+
if (!n.current) return;
|
|
326
|
+
const u = new AbortController(), s = n.current;
|
|
327
|
+
return s.addEventListener(
|
|
328
|
+
"load",
|
|
329
|
+
() => {
|
|
330
|
+
document.querySelectorAll('head > link[rel="stylesheet"], head > style').forEach((g) => {
|
|
330
331
|
var d;
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
}
|
|
332
|
+
(d = s.contentDocument) == null || d.head.appendChild(g.cloneNode(!0));
|
|
333
|
+
}), i(!0);
|
|
334
|
+
},
|
|
335
|
+
{ signal: u.signal }
|
|
336
|
+
), () => {
|
|
337
|
+
u.abort();
|
|
338
|
+
};
|
|
339
339
|
}, []), /* @__PURE__ */ p.jsx("iframe", { ...t, ref: n, className: w("w-full", o), children: r && ((l = n.current) == null ? void 0 : l.contentDocument) && Ve(e, n.current.contentDocument.body) });
|
|
340
340
|
}, Mt = ({ title: e, closeModal: o, classes: t }) => /* @__PURE__ */ p.jsxs("div", { className: w("flex items-start justify-between gap-4", t == null ? void 0 : t.header), children: [
|
|
341
341
|
e && /* @__PURE__ */ p.jsx(dt, { as: "h3", className: w("flex-1 text-color-dark", t == null ? void 0 : t.title), children: e }),
|