@dinofront/design_system 1.19.2 → 1.19.3

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
@@ -1899,13 +1899,13 @@ var nr = {
1899
1899
  let _ = p(null), v = p(null), { mounted: y, state: b } = zn(e, d ? Ln.slow : 0), x = b === "entered";
1900
1900
  if (Jn(y), l(() => {
1901
1901
  let e = _.current;
1902
- if (!(!y || !e || e.open)) return e.showModal(), v.current?.focus(), () => {
1902
+ if (!(!y || !e || e.open)) return e.showModal(), v.current?.focus({ preventScroll: !0 }), () => {
1903
1903
  e.open && e.close();
1904
1904
  };
1905
1905
  }, [y]), l(() => {
1906
1906
  if (!e) return;
1907
1907
  let t = document.activeElement;
1908
- return v.current?.focus(), () => t?.focus?.();
1908
+ return v.current?.focus({ preventScroll: !0 }), () => t?.focus?.();
1909
1909
  }, [e]), !y) return null;
1910
1910
  let S = n === "left" || n === "right", C = S ? nr[r] : rr[r];
1911
1911
  return _e(/* @__PURE__ */ J("dialog", {
@@ -1916,7 +1916,7 @@ var nr = {
1916
1916
  "aria-hidden": b === "exiting" || void 0,
1917
1917
  "aria-labelledby": i ? "drawer-title" : void 0,
1918
1918
  "aria-describedby": a ? "drawer-desc" : void 0,
1919
- className: "fixed inset-0 z-50 m-0 h-full max-h-none w-full max-w-none overflow-hidden border-0 bg-transparent p-0 text-inherit backdrop:bg-transparent",
1919
+ className: "fixed inset-0 z-50 m-0 h-full max-h-none w-full max-w-none overflow-clip border-0 bg-transparent p-0 text-inherit backdrop:bg-transparent",
1920
1920
  "data-test-id": h,
1921
1921
  children: [/* @__PURE__ */ q("div", {
1922
1922
  className: Q("absolute inset-0 bg-black/50", d && "transition-opacity duration-200 motion-reduce:transition-none", x ? "opacity-100" : "opacity-0"),