@y14e/tabs 2.0.1 → 2.0.2

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/README.md CHANGED
@@ -10,14 +10,14 @@ npm i @y14e/tabs
10
10
 
11
11
  ```ts
12
12
  // npm
13
- import Tabs from '@y14e/tabs@2.0.1';
13
+ import Tabs from '@y14e/tabs@2.0.2';
14
14
 
15
15
  // CDNs
16
- import Tabs from 'https://esm.sh/@y14e/tabs@2.0.1';
16
+ import Tabs from 'https://esm.sh/@y14e/tabs@2.0.2';
17
17
  // or
18
- import Tabs from 'https://cdn.jsdelivr.net/npm/@y14e/tabs@2.0.1/+esm';
18
+ import Tabs from 'https://cdn.jsdelivr.net/npm/@y14e/tabs@2.0.2/+esm';
19
19
  // or
20
- import Tabs from 'https://esm.unpkg.com/@y14e/tabs@2.0.1';
20
+ import Tabs from 'https://esm.unpkg.com/@y14e/tabs@2.0.2';
21
21
  ```
22
22
 
23
23
  ## Usage
package/dist/index.cjs CHANGED
@@ -1,6 +1,13 @@
1
1
  'use strict';
2
2
 
3
3
  // node_modules/@y14e/button/dist/index.js
4
+ function getActiveElement() {
5
+ let current = document.activeElement;
6
+ while (current?.shadowRoot?.activeElement) {
7
+ current = current.shadowRoot.activeElement;
8
+ }
9
+ return current;
10
+ }
4
11
  var Button = class {
5
12
  #element;
6
13
  #controller = null;
@@ -48,13 +55,6 @@ var Button = class {
48
55
  active.click();
49
56
  };
50
57
  };
51
- function getActiveElement() {
52
- let current = document.activeElement;
53
- while (current?.shadowRoot?.activeElement) {
54
- current = current.shadowRoot.activeElement;
55
- }
56
- return current;
57
- }
58
58
 
59
59
  // node_modules/@y14e/roving-tabindex/dist/index.js
60
60
  var DEFAULT_PARSER = (value) => value.split(/\s+/);
@@ -307,6 +307,16 @@ function getComposedChildren(node) {
307
307
  }
308
308
  return getChildren(node);
309
309
  }
310
+ function focusElement(element) {
311
+ "focus" in element && typeof element.focus === "function" && element.focus();
312
+ }
313
+ function getActiveElement2() {
314
+ let current = document.activeElement;
315
+ while (current?.shadowRoot?.activeElement) {
316
+ current = current.shadowRoot.activeElement;
317
+ }
318
+ return current;
319
+ }
310
320
  function getChildren(node) {
311
321
  const elements = [];
312
322
  for (let child = node.firstElementChild; child; child = child.nextElementSibling) {
@@ -565,16 +575,6 @@ var RovingTabIndex = class {
565
575
  });
566
576
  }
567
577
  };
568
- function focusElement(element) {
569
- "focus" in element && typeof element.focus === "function" && element.focus();
570
- }
571
- function getActiveElement2() {
572
- let current = document.activeElement;
573
- while (current?.shadowRoot?.activeElement) {
574
- current = current.shadowRoot.activeElement;
575
- }
576
- return current;
577
- }
578
578
 
579
579
  // src/index.ts
580
580
  var Tabs = class _Tabs {
@@ -1095,7 +1095,7 @@ function isFocusable2(element) {
1095
1095
  * Tabs
1096
1096
  * WAI-ARIA compliant tabs pattern implementation in TypeScript.
1097
1097
  *
1098
- * @version 2.0.1
1098
+ * @version 2.0.2
1099
1099
  * @author Yusuke Kamiyamane
1100
1100
  * @license MIT
1101
1101
  * @copyright Copyright (c) Yusuke Kamiyamane
@@ -1107,12 +1107,27 @@ function isFocusable2(element) {
1107
1107
  (**
1108
1108
  * Button
1109
1109
  *
1110
- * @version 1.0.2
1110
+ * @version 1.0.3
1111
1111
  * @author Yusuke Kamiyamane
1112
1112
  * @license MIT
1113
1113
  * @copyright Copyright (c) Yusuke Kamiyamane
1114
1114
  * @see {@link https://github.com/y14e/button}
1115
1115
  *)
1116
+ (*! Bundled license information:
1117
+
1118
+ power-focusable/dist/index.js:
1119
+ (**
1120
+ * Power Focusable
1121
+ * High-precision focus management utility with full composed tree support.
1122
+ * Handles complex focus rules including tabindex ordering, radio groups, inert.
1123
+ *
1124
+ * @version 4.3.3
1125
+ * @author Yusuke Kamiyamane
1126
+ * @license MIT
1127
+ * @copyright Copyright (c) Yusuke Kamiyamane
1128
+ * @see {@link https://github.com/y14e/power-focusable}
1129
+ *)
1130
+ *)
1116
1131
 
1117
1132
  @y14e/roving-tabindex/dist/index.js:
1118
1133
  (**
@@ -1120,7 +1135,7 @@ function isFocusable2(element) {
1120
1135
  * Lightweight roving tabindex utility with fully focus management.
1121
1136
  * Designed for accessible menus, tabs, toolbars, and composite widgets.
1122
1137
  *
1123
- * @version 3.0.7
1138
+ * @version 3.0.8
1124
1139
  * @author Yusuke Kamiyamane
1125
1140
  * @license MIT
1126
1141
  * @copyright Copyright (c) Yusuke Kamiyamane
package/dist/index.d.cts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Tabs
3
3
  * WAI-ARIA compliant tabs pattern implementation in TypeScript.
4
4
  *
5
- * @version 2.0.1
5
+ * @version 2.0.2
6
6
  * @author Yusuke Kamiyamane
7
7
  * @license MIT
8
8
  * @copyright Copyright (c) Yusuke Kamiyamane
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Tabs
3
3
  * WAI-ARIA compliant tabs pattern implementation in TypeScript.
4
4
  *
5
- * @version 2.0.1
5
+ * @version 2.0.2
6
6
  * @author Yusuke Kamiyamane
7
7
  * @license MIT
8
8
  * @copyright Copyright (c) Yusuke Kamiyamane
package/dist/index.js CHANGED
@@ -1,4 +1,11 @@
1
1
  // node_modules/@y14e/button/dist/index.js
2
+ function getActiveElement() {
3
+ let current = document.activeElement;
4
+ while (current?.shadowRoot?.activeElement) {
5
+ current = current.shadowRoot.activeElement;
6
+ }
7
+ return current;
8
+ }
2
9
  var Button = class {
3
10
  #element;
4
11
  #controller = null;
@@ -46,13 +53,6 @@ var Button = class {
46
53
  active.click();
47
54
  };
48
55
  };
49
- function getActiveElement() {
50
- let current = document.activeElement;
51
- while (current?.shadowRoot?.activeElement) {
52
- current = current.shadowRoot.activeElement;
53
- }
54
- return current;
55
- }
56
56
 
57
57
  // node_modules/@y14e/roving-tabindex/dist/index.js
58
58
  var DEFAULT_PARSER = (value) => value.split(/\s+/);
@@ -305,6 +305,16 @@ function getComposedChildren(node) {
305
305
  }
306
306
  return getChildren(node);
307
307
  }
308
+ function focusElement(element) {
309
+ "focus" in element && typeof element.focus === "function" && element.focus();
310
+ }
311
+ function getActiveElement2() {
312
+ let current = document.activeElement;
313
+ while (current?.shadowRoot?.activeElement) {
314
+ current = current.shadowRoot.activeElement;
315
+ }
316
+ return current;
317
+ }
308
318
  function getChildren(node) {
309
319
  const elements = [];
310
320
  for (let child = node.firstElementChild; child; child = child.nextElementSibling) {
@@ -563,16 +573,6 @@ var RovingTabIndex = class {
563
573
  });
564
574
  }
565
575
  };
566
- function focusElement(element) {
567
- "focus" in element && typeof element.focus === "function" && element.focus();
568
- }
569
- function getActiveElement2() {
570
- let current = document.activeElement;
571
- while (current?.shadowRoot?.activeElement) {
572
- current = current.shadowRoot.activeElement;
573
- }
574
- return current;
575
- }
576
576
 
577
577
  // src/index.ts
578
578
  var Tabs = class _Tabs {
@@ -1093,7 +1093,7 @@ function isFocusable2(element) {
1093
1093
  * Tabs
1094
1094
  * WAI-ARIA compliant tabs pattern implementation in TypeScript.
1095
1095
  *
1096
- * @version 2.0.1
1096
+ * @version 2.0.2
1097
1097
  * @author Yusuke Kamiyamane
1098
1098
  * @license MIT
1099
1099
  * @copyright Copyright (c) Yusuke Kamiyamane
@@ -1105,12 +1105,27 @@ function isFocusable2(element) {
1105
1105
  (**
1106
1106
  * Button
1107
1107
  *
1108
- * @version 1.0.2
1108
+ * @version 1.0.3
1109
1109
  * @author Yusuke Kamiyamane
1110
1110
  * @license MIT
1111
1111
  * @copyright Copyright (c) Yusuke Kamiyamane
1112
1112
  * @see {@link https://github.com/y14e/button}
1113
1113
  *)
1114
+ (*! Bundled license information:
1115
+
1116
+ power-focusable/dist/index.js:
1117
+ (**
1118
+ * Power Focusable
1119
+ * High-precision focus management utility with full composed tree support.
1120
+ * Handles complex focus rules including tabindex ordering, radio groups, inert.
1121
+ *
1122
+ * @version 4.3.3
1123
+ * @author Yusuke Kamiyamane
1124
+ * @license MIT
1125
+ * @copyright Copyright (c) Yusuke Kamiyamane
1126
+ * @see {@link https://github.com/y14e/power-focusable}
1127
+ *)
1128
+ *)
1114
1129
 
1115
1130
  @y14e/roving-tabindex/dist/index.js:
1116
1131
  (**
@@ -1118,7 +1133,7 @@ function isFocusable2(element) {
1118
1133
  * Lightweight roving tabindex utility with fully focus management.
1119
1134
  * Designed for accessible menus, tabs, toolbars, and composite widgets.
1120
1135
  *
1121
- * @version 3.0.7
1136
+ * @version 3.0.8
1122
1137
  * @author Yusuke Kamiyamane
1123
1138
  * @license MIT
1124
1139
  * @copyright Copyright (c) Yusuke Kamiyamane
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@y14e/tabs",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "WAI-ARIA compliant tabs pattern implementation in TypeScript",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -42,8 +42,8 @@
42
42
  },
43
43
  "homepage": "https://github.com/y14e/tabs#readme",
44
44
  "devDependencies": {
45
- "@y14e/button": "^1.0.2",
46
- "@y14e/roving-tabindex": "^3.0.7",
45
+ "@y14e/button": "^1.0.3",
46
+ "@y14e/roving-tabindex": "^3.0.8",
47
47
  "bun-types": "latest",
48
48
  "tsup": "^8.0.0",
49
49
  "typescript": "^5.6.0",