@hiver/connector-agent 1.3.4-beta.14 → 1.3.4-beta.15
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/components/ui/layover/index.d.ts +2 -1
- package/components/ui/layover/index.d.ts.map +1 -1
- package/index.es.js +17 -17
- package/index.umd.js +4 -4
- package/package.json +1 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
interface LayoverProps {
|
|
2
3
|
children: React.ReactNode;
|
|
3
4
|
isOpen: boolean;
|
|
4
5
|
onClose: () => void;
|
|
5
6
|
containerRef: React.RefObject<HTMLDivElement>;
|
|
6
7
|
}
|
|
7
|
-
declare const Layover: ({ children, isOpen, onClose, containerRef }: LayoverProps) => false |
|
|
8
|
+
declare const Layover: ({ children, isOpen, onClose, containerRef }: LayoverProps) => false | React.ReactPortal | null;
|
|
8
9
|
export default Layover;
|
|
9
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/layover/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/layover/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuD,MAAM,OAAO,CAAC;AAO5E,UAAU,YAAY;IACpB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,YAAY,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;CAC/C;AAED,QAAA,MAAM,OAAO,gDAAiD,YAAY,qCAwDzE,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
package/index.es.js
CHANGED
|
@@ -36597,7 +36597,7 @@ const Wi = "success", as = "error", lh = "Some error occured. Please contact sup
|
|
|
36597
36597
|
/* @__PURE__ */ v.jsx(_e, { flexDirection: "row", gap: "8px", marginBottom: "11.5px", children: c.map(({ text: E, link: m, isAdminPanelLink: h }) => /* @__PURE__ */ v.jsx(cD, { variant: h ? "contained" : "text", children: /* @__PURE__ */ v.jsx(uD, { variant: "caption", onClick: (b) => p(b, m, h, !0), children: E }) }, E)) })
|
|
36598
36598
|
] }) })
|
|
36599
36599
|
] });
|
|
36600
|
-
}, Jj =
|
|
36600
|
+
}, Jj = V(Uo)`
|
|
36601
36601
|
width: 100%;
|
|
36602
36602
|
height: 100%;
|
|
36603
36603
|
position: absolute;
|
|
@@ -36607,49 +36607,49 @@ const Wi = "success", as = "error", lh = "Some error occured. Please contact sup
|
|
|
36607
36607
|
padding-right: 2px;
|
|
36608
36608
|
padding-left: 12px;
|
|
36609
36609
|
overflow: hidden;
|
|
36610
|
-
`,
|
|
36610
|
+
`, qj = V("button")`
|
|
36611
36611
|
border: none;
|
|
36612
36612
|
background: none;
|
|
36613
36613
|
cursor: pointer;
|
|
36614
36614
|
display: flex;
|
|
36615
36615
|
align-items: center;
|
|
36616
36616
|
gap: 5px;
|
|
36617
|
-
`,
|
|
36617
|
+
`, _j = V(Qt)`
|
|
36618
36618
|
margin-top: 14px;
|
|
36619
36619
|
height: 100%;
|
|
36620
|
-
`, dp = ({ children: e, isOpen: t, onClose: n, containerRef: o }) => {
|
|
36621
|
-
const r = bt(null), i = o.current;
|
|
36620
|
+
`, $j = "data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.00016%2011.333L6.94016%2010.393L3.22016%206.66634L11.3335%206.66634V5.33301L3.22016%205.33301L6.94016%201.60634L6.00016%200.666342L0.66683%205.99967L6.00016%2011.333Z'%20fill='%234D596C'/%3e%3c/svg%3e", dp = ({ children: e, isOpen: t, onClose: n, containerRef: o }) => {
|
|
36621
|
+
const r = bt(null), [i, s] = Oe(!1), A = o.current;
|
|
36622
36622
|
return zr(() => {
|
|
36623
|
-
if (
|
|
36623
|
+
if (A) {
|
|
36624
36624
|
r.current = document.createElement("div"), r.current.id = "modal-root";
|
|
36625
|
-
const
|
|
36625
|
+
const l = {
|
|
36626
36626
|
visibility: "hidden",
|
|
36627
36627
|
height: "0px",
|
|
36628
36628
|
width: "0px",
|
|
36629
36629
|
position: "absolute",
|
|
36630
36630
|
top: "0px"
|
|
36631
36631
|
};
|
|
36632
|
-
Object.assign(r.current.style,
|
|
36632
|
+
Object.assign(r.current.style, l), A.appendChild(r.current), s(!0);
|
|
36633
36633
|
}
|
|
36634
36634
|
return () => {
|
|
36635
|
-
|
|
36635
|
+
A && r.current && A.removeChild(r.current);
|
|
36636
36636
|
};
|
|
36637
|
-
}, [
|
|
36637
|
+
}, [A]), ht(() => {
|
|
36638
36638
|
if (r.current) {
|
|
36639
|
-
const
|
|
36639
|
+
const l = {
|
|
36640
36640
|
visibility: t ? "visible" : "hidden",
|
|
36641
36641
|
height: t ? "inherit" : "0px",
|
|
36642
36642
|
width: t ? "100%" : "0px"
|
|
36643
36643
|
};
|
|
36644
|
-
Object.assign(r.current.style,
|
|
36644
|
+
Object.assign(r.current.style, l);
|
|
36645
36645
|
}
|
|
36646
|
-
}, [t]), t && r.current && gd(
|
|
36647
|
-
/* @__PURE__ */ v.jsxs(
|
|
36648
|
-
/* @__PURE__ */ v.jsxs(
|
|
36649
|
-
/* @__PURE__ */ v.jsx("img", { src:
|
|
36646
|
+
}, [t]), t && i && r.current && gd(
|
|
36647
|
+
/* @__PURE__ */ v.jsxs(Jj, { className: "layover-paper", elevation: 0, children: [
|
|
36648
|
+
/* @__PURE__ */ v.jsxs(qj, { onClick: n, children: [
|
|
36649
|
+
/* @__PURE__ */ v.jsx("img", { src: $j }),
|
|
36650
36650
|
/* @__PURE__ */ v.jsx(qe, { children: "Back" })
|
|
36651
36651
|
] }),
|
|
36652
|
-
/* @__PURE__ */ v.jsx(
|
|
36652
|
+
/* @__PURE__ */ v.jsx(_j, { children: e })
|
|
36653
36653
|
] }),
|
|
36654
36654
|
r.current
|
|
36655
36655
|
);
|