@ama-pt/agora-design-system 1.2.2 → 1.2.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/artifacts/dist/index.mjs
CHANGED
|
@@ -2710,12 +2710,10 @@ const Ye = (t, a = 10) => {
|
|
|
2710
2710
|
R.current.querySelectorAll(
|
|
2711
2711
|
'a:not([tabindex="-1"]), button:not([tabindex="-1"]), input:not([tabindex="-1"]), textarea:not([tabindex="-1"]), select:not([tabindex="-1"]), details:not([tabindex="-1"]), [tabindex]:not([tabindex="-1"])'
|
|
2712
2712
|
)
|
|
2713
|
-
)
|
|
2714
|
-
h.
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
const I = p[0], G = p[p.length - 1];
|
|
2718
|
-
w.shiftKey && document.activeElement === I && (w.preventDefault(), G.focus()), !w.shiftKey && document.activeElement === G && (w.preventDefault(), I.focus());
|
|
2713
|
+
);
|
|
2714
|
+
h.sort((G, D) => D.tabIndex - G.tabIndex);
|
|
2715
|
+
const p = h[0], I = h[h.length - 1];
|
|
2716
|
+
w.shiftKey && document.activeElement === p && (w.preventDefault(), I.focus()), !w.shiftKey && document.activeElement === I && (w.preventDefault(), p.focus());
|
|
2719
2717
|
}
|
|
2720
2718
|
}
|
|
2721
2719
|
}, Y = (w) => {
|
|
@@ -2730,15 +2728,13 @@ const Ye = (t, a = 10) => {
|
|
|
2730
2728
|
R.current.querySelectorAll(
|
|
2731
2729
|
'a:not([tabindex="-1"]), button:not([tabindex="-1"]), input:not([tabindex="-1"]), textarea:not([tabindex="-1"]), select:not([tabindex="-1"]), details:not([tabindex="-1"]), [tabindex]:not([tabindex="-1"])'
|
|
2732
2730
|
)
|
|
2733
|
-
)
|
|
2734
|
-
w.
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
}), I = p >= 0 ? h[p] : h[0];
|
|
2741
|
-
I && I.focus();
|
|
2731
|
+
);
|
|
2732
|
+
w.sort((I, G) => G.tabIndex - I.tabIndex);
|
|
2733
|
+
const h = w.findIndex((I) => {
|
|
2734
|
+
var G;
|
|
2735
|
+
return s((G = I.getAttribute("data-autofocus")) == null ? void 0 : G.toString());
|
|
2736
|
+
}), p = h >= 0 ? w[h] : w[0];
|
|
2737
|
+
p && p.focus();
|
|
2742
2738
|
}
|
|
2743
2739
|
} else
|
|
2744
2740
|
document.body.classList.remove("overflow-hidden");
|