@opencxh/ui-kit 3.46.1 → 3.49.0

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.js CHANGED
@@ -4343,9 +4343,10 @@ const it = ({
4343
4343
  i.current && !i.current.contains(B.target) && t();
4344
4344
  };
4345
4345
  return n && document.addEventListener("mousedown", k), () => document.removeEventListener("mousedown", k);
4346
- }, [n, t]), n ? (G(() => {
4346
+ }, [n, t]), G(() => {
4347
+ if (!n) return;
4347
4348
  f.current?.querySelector(`[data-index="${u}"]`)?.scrollIntoView({ block: "nearest" });
4348
- }, [u]), /* @__PURE__ */ e("div", { className: "fixed inset-0 z-50 flex items-center justify-center shadow-lvl-0", children: /* @__PURE__ */ d(
4349
+ }, [u, n]), n ? /* @__PURE__ */ e("div", { className: "fixed inset-0 z-50 flex items-center justify-center shadow-lvl-0", children: /* @__PURE__ */ d(
4349
4350
  "div",
4350
4351
  {
4351
4352
  className: "flex flex-col w-full max-w-lg max-h-[80vh] p-2 mx-auto rounded-lg shadow-lg bg-white",
@@ -4407,7 +4408,7 @@ const it = ({
4407
4408
  ] })
4408
4409
  ]
4409
4410
  }
4410
- ) })) : null;
4411
+ ) }) : null;
4411
4412
  }, Br = {
4412
4413
  none: "p-0",
4413
4414
  xs: "p-1",