@dinofront/design_system 1.19.7 → 1.19.8
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 +9 -3
- package/dist/index.js.map +1 -1
- package/dist/styles.css +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -994,12 +994,18 @@ function $t({ content: e, children: t, side: r = "top", align: i = "center", off
|
|
|
994
994
|
};
|
|
995
995
|
}, [w, E]), l(() => {
|
|
996
996
|
if (!w || !g) return;
|
|
997
|
-
let e = () =>
|
|
997
|
+
let e = (e) => {
|
|
998
|
+
E?.contains(e.target) || k(!1);
|
|
999
|
+
};
|
|
998
1000
|
return document.addEventListener("scroll", e, {
|
|
999
1001
|
capture: !0,
|
|
1000
1002
|
passive: !0
|
|
1001
1003
|
}), () => document.removeEventListener("scroll", e, { capture: !0 });
|
|
1002
|
-
}, [
|
|
1004
|
+
}, [
|
|
1005
|
+
w,
|
|
1006
|
+
g,
|
|
1007
|
+
E
|
|
1008
|
+
]), l(() => {
|
|
1003
1009
|
if (!w || !_ || !E) return;
|
|
1004
1010
|
let e = document.activeElement;
|
|
1005
1011
|
return (E.querySelector("a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])") ?? E).focus(), () => e?.focus?.();
|
|
@@ -1025,7 +1031,7 @@ function $t({ content: e, children: t, side: r = "top", align: i = "center", off
|
|
|
1025
1031
|
"data-side": M,
|
|
1026
1032
|
"data-test-id": b,
|
|
1027
1033
|
style: A,
|
|
1028
|
-
className: Z("fixed z-50 rounded-lg border border-border-default bg-bg-default p-3 text-fg-default shadow-z4", y),
|
|
1034
|
+
className: Z("fixed z-50 max-w-60 max-h-54 overflow-auto rounded-lg border border-border-default bg-bg-default p-3 text-fg-default shadow-z4", y),
|
|
1029
1035
|
children: [e, h && /* @__PURE__ */ q("span", {
|
|
1030
1036
|
"aria-hidden": !0,
|
|
1031
1037
|
style: j,
|