@y14e/tabs 1.3.4 → 1.3.5
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 +5 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -405,6 +405,10 @@ var Tabs = class _Tabs {
|
|
|
405
405
|
this.activate(tab);
|
|
406
406
|
};
|
|
407
407
|
#onTabKeyDown = (event) => {
|
|
408
|
+
const { key, altKey, ctrlKey, metaKey, shiftKey } = event;
|
|
409
|
+
if (altKey || ctrlKey || metaKey || shiftKey) {
|
|
410
|
+
return;
|
|
411
|
+
}
|
|
408
412
|
const currentTab = event.currentTarget;
|
|
409
413
|
if (!(currentTab instanceof HTMLElement)) {
|
|
410
414
|
return;
|
|
@@ -415,7 +419,6 @@ var Tabs = class _Tabs {
|
|
|
415
419
|
}
|
|
416
420
|
const isBoth = list.ariaOrientation === "undefined";
|
|
417
421
|
const isHorizontal = list.ariaOrientation !== "vertical";
|
|
418
|
-
const { key } = event;
|
|
419
422
|
if (![
|
|
420
423
|
"Enter",
|
|
421
424
|
" ",
|
|
@@ -614,7 +617,7 @@ function isFocusable(element) {
|
|
|
614
617
|
* Tabs
|
|
615
618
|
* WAI-ARIA compliant tabs pattern implementation in TypeScript.
|
|
616
619
|
*
|
|
617
|
-
* @version 1.3.
|
|
620
|
+
* @version 1.3.5
|
|
618
621
|
* @author Yusuke Kamiyamane
|
|
619
622
|
* @license MIT
|
|
620
623
|
* @copyright Copyright (c) Yusuke Kamiyamane
|
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -403,6 +403,10 @@ var Tabs = class _Tabs {
|
|
|
403
403
|
this.activate(tab);
|
|
404
404
|
};
|
|
405
405
|
#onTabKeyDown = (event) => {
|
|
406
|
+
const { key, altKey, ctrlKey, metaKey, shiftKey } = event;
|
|
407
|
+
if (altKey || ctrlKey || metaKey || shiftKey) {
|
|
408
|
+
return;
|
|
409
|
+
}
|
|
406
410
|
const currentTab = event.currentTarget;
|
|
407
411
|
if (!(currentTab instanceof HTMLElement)) {
|
|
408
412
|
return;
|
|
@@ -413,7 +417,6 @@ var Tabs = class _Tabs {
|
|
|
413
417
|
}
|
|
414
418
|
const isBoth = list.ariaOrientation === "undefined";
|
|
415
419
|
const isHorizontal = list.ariaOrientation !== "vertical";
|
|
416
|
-
const { key } = event;
|
|
417
420
|
if (![
|
|
418
421
|
"Enter",
|
|
419
422
|
" ",
|
|
@@ -612,7 +615,7 @@ function isFocusable(element) {
|
|
|
612
615
|
* Tabs
|
|
613
616
|
* WAI-ARIA compliant tabs pattern implementation in TypeScript.
|
|
614
617
|
*
|
|
615
|
-
* @version 1.3.
|
|
618
|
+
* @version 1.3.5
|
|
616
619
|
* @author Yusuke Kamiyamane
|
|
617
620
|
* @license MIT
|
|
618
621
|
* @copyright Copyright (c) Yusuke Kamiyamane
|