@y14e/roving-tabindex 1.2.5 → 1.2.6
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.cjs +2 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -258,7 +258,7 @@ function isUngroupedRadio(element) {
|
|
|
258
258
|
// src/index.ts
|
|
259
259
|
function createRovingTabIndex(container, options = {}) {
|
|
260
260
|
if (!(container instanceof Element)) {
|
|
261
|
-
throw new
|
|
261
|
+
throw new TypeError("Invalid container element");
|
|
262
262
|
}
|
|
263
263
|
let { direction, selector, typeahead = false, wrap = false } = options;
|
|
264
264
|
if (typeof direction !== "undefined" && !["horizontal", "vertical"].includes(direction)) {
|
|
@@ -478,7 +478,7 @@ function getActiveElement() {
|
|
|
478
478
|
* Lightweight roving tabindex utility with fully focus management.
|
|
479
479
|
* Designed for accessible menus, tabs, toolbars, and composite widgets.
|
|
480
480
|
*
|
|
481
|
-
* @version 1.2.
|
|
481
|
+
* @version 1.2.6
|
|
482
482
|
* @author Yusuke Kamiyamane
|
|
483
483
|
* @license MIT
|
|
484
484
|
* @copyright Copyright (c) Yusuke Kamiyamane
|
package/dist/index.d.cts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Lightweight roving tabindex utility with fully focus management.
|
|
4
4
|
* Designed for accessible menus, tabs, toolbars, and composite widgets.
|
|
5
5
|
*
|
|
6
|
-
* @version 1.2.
|
|
6
|
+
* @version 1.2.6
|
|
7
7
|
* @author Yusuke Kamiyamane
|
|
8
8
|
* @license MIT
|
|
9
9
|
* @copyright Copyright (c) Yusuke Kamiyamane
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Lightweight roving tabindex utility with fully focus management.
|
|
4
4
|
* Designed for accessible menus, tabs, toolbars, and composite widgets.
|
|
5
5
|
*
|
|
6
|
-
* @version 1.2.
|
|
6
|
+
* @version 1.2.6
|
|
7
7
|
* @author Yusuke Kamiyamane
|
|
8
8
|
* @license MIT
|
|
9
9
|
* @copyright Copyright (c) Yusuke Kamiyamane
|
package/dist/index.js
CHANGED
|
@@ -256,7 +256,7 @@ function isUngroupedRadio(element) {
|
|
|
256
256
|
// src/index.ts
|
|
257
257
|
function createRovingTabIndex(container, options = {}) {
|
|
258
258
|
if (!(container instanceof Element)) {
|
|
259
|
-
throw new
|
|
259
|
+
throw new TypeError("Invalid container element");
|
|
260
260
|
}
|
|
261
261
|
let { direction, selector, typeahead = false, wrap = false } = options;
|
|
262
262
|
if (typeof direction !== "undefined" && !["horizontal", "vertical"].includes(direction)) {
|
|
@@ -476,7 +476,7 @@ function getActiveElement() {
|
|
|
476
476
|
* Lightweight roving tabindex utility with fully focus management.
|
|
477
477
|
* Designed for accessible menus, tabs, toolbars, and composite widgets.
|
|
478
478
|
*
|
|
479
|
-
* @version 1.2.
|
|
479
|
+
* @version 1.2.6
|
|
480
480
|
* @author Yusuke Kamiyamane
|
|
481
481
|
* @license MIT
|
|
482
482
|
* @copyright Copyright (c) Yusuke Kamiyamane
|