@dinofront/design_system 1.19.3-alpha.0 → 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,16 +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(), () => {
1909
- let e = document.activeElement;
1910
- e instanceof HTMLElement && _.current?.contains(e) && e.blur(), t?.focus?.();
1911
- };
1908
+ return v.current?.focus({ preventScroll: !0 }), () => t?.focus?.();
1912
1909
  }, [e]), !y) return null;
1913
1910
  let S = n === "left" || n === "right", C = S ? nr[r] : rr[r];
1914
1911
  return _e(/* @__PURE__ */ J("dialog", {
@@ -1916,10 +1913,10 @@ var nr = {
1916
1913
  onCancel: (e) => {
1917
1914
  e.preventDefault(), t();
1918
1915
  },
1919
- inert: b === "exiting",
1916
+ "aria-hidden": b === "exiting" || void 0,
1920
1917
  "aria-labelledby": i ? "drawer-title" : void 0,
1921
1918
  "aria-describedby": a ? "drawer-desc" : void 0,
1922
- 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",
1923
1920
  "data-test-id": h,
1924
1921
  children: [/* @__PURE__ */ q("div", {
1925
1922
  className: Q("absolute inset-0 bg-black/50", d && "transition-opacity duration-200 motion-reduce:transition-none", x ? "opacity-100" : "opacity-0"),