ados-rcm 1.0.148 → 1.0.150
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.cjs.js +7 -7
- package/dist/index.es.js +11 -11
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -4799,21 +4799,18 @@ const Sy = "_Tooltip_b1fcx_1", Ay = "_Arrow_b1fcx_17", Tu = {
|
|
|
4799
4799
|
Tooltip: Sy,
|
|
4800
4800
|
Arrow: Ay
|
|
4801
4801
|
}, Cy = (n) => {
|
|
4802
|
-
|
|
4803
|
-
const [f, d] = Ee(!1), p = rt(null), g = rt(null), y = rt(), m = E(() => {
|
|
4802
|
+
const { tooltip: r, targetRef: o, delay: s = 0, distance: u = 10 } = n, [f, d] = Ee(!1), p = rt(null), g = rt(null), y = rt(), m = E(() => {
|
|
4804
4803
|
d(!0), y.current && (clearTimeout(y.current), y.current = void 0);
|
|
4805
4804
|
const k = setTimeout(() => Eu(o, p, g, u), s);
|
|
4806
4805
|
y.current = k;
|
|
4807
4806
|
}, [o, s, u]), b = E(() => d(!1), []);
|
|
4808
4807
|
Ae(() => {
|
|
4809
|
-
if (!r)
|
|
4810
|
-
return;
|
|
4811
4808
|
const k = o.current;
|
|
4812
4809
|
if (k)
|
|
4813
4810
|
return k.addEventListener("mouseenter", m), k.addEventListener("mouseleave", b), () => {
|
|
4814
4811
|
k.removeEventListener("mouseenter", m), k.removeEventListener("mouseleave", b);
|
|
4815
4812
|
};
|
|
4816
|
-
}, [o,
|
|
4813
|
+
}, [o, b, m]);
|
|
4817
4814
|
const C = E(() => {
|
|
4818
4815
|
Eu(o, p, g, u);
|
|
4819
4816
|
}, [o, u]);
|
|
@@ -5120,19 +5117,22 @@ const xe = {
|
|
|
5120
5117
|
DividerInner: o_,
|
|
5121
5118
|
IsClicked: a_
|
|
5122
5119
|
}, mi = (n) => /* @__PURE__ */ l.jsx(vt, { ...n, className: oe.clsx(wn.ARowFrame, n.className), children: n.children }), s_ = (n) => /* @__PURE__ */ l.jsx("div", { ...n, className: oe.clsx(wn.AColFrame, n.className), children: n.children }), Ns = (n) => {
|
|
5123
|
-
|
|
5124
|
-
const p = rt(null), g = U(() => s ?? p, [s]), [y, m] = Ee(!1);
|
|
5120
|
+
const { tooltip: r, children: o, abaseRef: s, className: u, noOverflowTooltip: f, ...d } = n, p = rt(null), g = U(() => s ?? p, [s]), [y, m] = Ee(!1), b = E(() => m(!0), []), C = E(() => m(!1), []);
|
|
5125
5121
|
Ae(() => {
|
|
5126
|
-
|
|
5127
|
-
|
|
5128
|
-
|
|
5122
|
+
const T = g.current;
|
|
5123
|
+
if (T)
|
|
5124
|
+
return T.addEventListener("mouseenter", b), T.addEventListener("mouseleave", C), () => {
|
|
5125
|
+
T.removeEventListener("mouseenter", b), T.removeEventListener("mouseleave", C);
|
|
5126
|
+
};
|
|
5127
|
+
}, [g, b, C]);
|
|
5128
|
+
const k = U(() => f || !g.current || !y ? r : g.current.scrollWidth > g.current.clientWidth ? o : r, [g, o, r, f, y]);
|
|
5129
5129
|
return /* @__PURE__ */ l.jsx(
|
|
5130
5130
|
vt,
|
|
5131
5131
|
{
|
|
5132
5132
|
...d,
|
|
5133
5133
|
children: o,
|
|
5134
5134
|
abaseRef: g,
|
|
5135
|
-
tooltip:
|
|
5135
|
+
tooltip: k,
|
|
5136
5136
|
className: oe.clsx(wn.AOverflowFrame, u)
|
|
5137
5137
|
}
|
|
5138
5138
|
);
|