@y14e/portal 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 -6
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -6
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -436,11 +436,7 @@ var Portal = class {
|
|
|
436
436
|
}
|
|
437
437
|
event.preventDefault();
|
|
438
438
|
const focusable = focusables[index + (shiftKey ? -1 : 1)];
|
|
439
|
-
|
|
440
|
-
focusElement(focusable);
|
|
441
|
-
} else {
|
|
442
|
-
this.#focusSentinel(shiftKey);
|
|
443
|
-
}
|
|
439
|
+
focusable ? focusElement(focusable) : this.#focusSentinel(shiftKey);
|
|
444
440
|
};
|
|
445
441
|
#update() {
|
|
446
442
|
const current = /* @__PURE__ */ new Set([
|
|
@@ -518,7 +514,7 @@ function getActiveElement2() {
|
|
|
518
514
|
* Lightweight DOM portal (teleport) utility with fully focus management.
|
|
519
515
|
* Designed for accessible dialogs, menus, overlays, popovers.
|
|
520
516
|
*
|
|
521
|
-
* @version 1.2.
|
|
517
|
+
* @version 1.2.6
|
|
522
518
|
* @author Yusuke Kamiyamane
|
|
523
519
|
* @license MIT
|
|
524
520
|
* @copyright Copyright (c) Yusuke Kamiyamane
|
package/dist/index.d.cts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Lightweight DOM portal (teleport) utility with fully focus management.
|
|
4
4
|
* Designed for accessible dialogs, menus, overlays, popovers.
|
|
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 DOM portal (teleport) utility with fully focus management.
|
|
4
4
|
* Designed for accessible dialogs, menus, overlays, popovers.
|
|
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
|
@@ -434,11 +434,7 @@ var Portal = class {
|
|
|
434
434
|
}
|
|
435
435
|
event.preventDefault();
|
|
436
436
|
const focusable = focusables[index + (shiftKey ? -1 : 1)];
|
|
437
|
-
|
|
438
|
-
focusElement(focusable);
|
|
439
|
-
} else {
|
|
440
|
-
this.#focusSentinel(shiftKey);
|
|
441
|
-
}
|
|
437
|
+
focusable ? focusElement(focusable) : this.#focusSentinel(shiftKey);
|
|
442
438
|
};
|
|
443
439
|
#update() {
|
|
444
440
|
const current = /* @__PURE__ */ new Set([
|
|
@@ -516,7 +512,7 @@ function getActiveElement2() {
|
|
|
516
512
|
* Lightweight DOM portal (teleport) utility with fully focus management.
|
|
517
513
|
* Designed for accessible dialogs, menus, overlays, popovers.
|
|
518
514
|
*
|
|
519
|
-
* @version 1.2.
|
|
515
|
+
* @version 1.2.6
|
|
520
516
|
* @author Yusuke Kamiyamane
|
|
521
517
|
* @license MIT
|
|
522
518
|
* @copyright Copyright (c) Yusuke Kamiyamane
|