ados-rcm 1.0.149 → 1.0.151

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.es.js CHANGED
@@ -5117,19 +5117,22 @@ const xe = {
5117
5117
  DividerInner: o_,
5118
5118
  IsClicked: a_
5119
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) => {
5120
- let { tooltip: r, children: o, abaseRef: s, className: u, noOverflowTooltip: f, ...d } = n;
5121
- 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), []);
5122
5121
  Ae(() => {
5123
- setTimeout(() => m(!0), 0);
5124
- }, []);
5125
- const b = U(() => f || !g.current || !y ? r : g.current.scrollWidth > g.current.clientWidth ? o : r, [g, o, r, f, y]);
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 || !y || !g.current ? r : g.current.scrollWidth > g.current.clientWidth ? o : r, [g, o, r, f, y]);
5126
5129
  return /* @__PURE__ */ l.jsx(
5127
5130
  vt,
5128
5131
  {
5129
5132
  ...d,
5130
5133
  children: o,
5131
5134
  abaseRef: g,
5132
- tooltip: b,
5135
+ tooltip: k,
5133
5136
  className: oe.clsx(wn.AOverflowFrame, u)
5134
5137
  }
5135
5138
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ados-rcm",
3
- "version": "1.0.149",
3
+ "version": "1.0.151",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "type": "module",