@y14e/accordion 1.4.13 → 1.4.14

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/accordion
10
10
 
11
11
  ```ts
12
12
  // npm
13
- import Accordion from '@y14e/accordion@1.4.13';
13
+ import Accordion from '@y14e/accordion@1.4.14';
14
14
 
15
15
  // CDNs
16
- import Accordion from 'https://esm.sh/@y14e/accordion@1.4.13';
16
+ import Accordion from 'https://esm.sh/@y14e/accordion@1.4.14';
17
17
  // or
18
- import Accordion from 'https://cdn.jsdelivr.net/npm/@y14e/accordion@1.4.13/+esm';
18
+ import Accordion from 'https://cdn.jsdelivr.net/npm/@y14e/accordion@1.4.14/+esm';
19
19
  // or
20
- import Accordion from 'https://esm.unpkg.com/@y14e/accordion@1.4.13';
20
+ import Accordion from 'https://esm.unpkg.com/@y14e/accordion@1.4.14';
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 Accordion = class _Accordion {
@@ -850,7 +850,7 @@ function waitAnimationFinish(animation) {
850
850
  * Accordion
851
851
  * WAI-ARIA compliant accordion pattern implementation in TypeScript.
852
852
  *
853
- * @version 1.4.12
853
+ * @version 1.4.14
854
854
  * @author Yusuke Kamiyamane
855
855
  * @license MIT
856
856
  * @copyright Copyright (c) Yusuke Kamiyamane
@@ -862,12 +862,27 @@ function waitAnimationFinish(animation) {
862
862
  (**
863
863
  * Button
864
864
  *
865
- * @version 1.0.2
865
+ * @version 1.0.3
866
866
  * @author Yusuke Kamiyamane
867
867
  * @license MIT
868
868
  * @copyright Copyright (c) Yusuke Kamiyamane
869
869
  * @see {@link https://github.com/y14e/button}
870
870
  *)
871
+ (*! Bundled license information:
872
+
873
+ power-focusable/dist/index.js:
874
+ (**
875
+ * Power Focusable
876
+ * High-precision focus management utility with full composed tree support.
877
+ * Handles complex focus rules including tabindex ordering, radio groups, inert.
878
+ *
879
+ * @version 4.3.3
880
+ * @author Yusuke Kamiyamane
881
+ * @license MIT
882
+ * @copyright Copyright (c) Yusuke Kamiyamane
883
+ * @see {@link https://github.com/y14e/power-focusable}
884
+ *)
885
+ *)
871
886
 
872
887
  @y14e/roving-tabindex/dist/index.js:
873
888
  (**
@@ -875,7 +890,7 @@ function waitAnimationFinish(animation) {
875
890
  * Lightweight roving tabindex utility with fully focus management.
876
891
  * Designed for accessible menus, tabs, toolbars, and composite widgets.
877
892
  *
878
- * @version 3.0.7
893
+ * @version 3.0.8
879
894
  * @author Yusuke Kamiyamane
880
895
  * @license MIT
881
896
  * @copyright Copyright (c) Yusuke Kamiyamane
package/dist/index.d.cts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Accordion
3
3
  * WAI-ARIA compliant accordion pattern implementation in TypeScript.
4
4
  *
5
- * @version 1.4.12
5
+ * @version 1.4.14
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
  * Accordion
3
3
  * WAI-ARIA compliant accordion pattern implementation in TypeScript.
4
4
  *
5
- * @version 1.4.12
5
+ * @version 1.4.14
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 Accordion = class _Accordion {
@@ -848,7 +848,7 @@ function waitAnimationFinish(animation) {
848
848
  * Accordion
849
849
  * WAI-ARIA compliant accordion pattern implementation in TypeScript.
850
850
  *
851
- * @version 1.4.12
851
+ * @version 1.4.14
852
852
  * @author Yusuke Kamiyamane
853
853
  * @license MIT
854
854
  * @copyright Copyright (c) Yusuke Kamiyamane
@@ -860,12 +860,27 @@ function waitAnimationFinish(animation) {
860
860
  (**
861
861
  * Button
862
862
  *
863
- * @version 1.0.2
863
+ * @version 1.0.3
864
864
  * @author Yusuke Kamiyamane
865
865
  * @license MIT
866
866
  * @copyright Copyright (c) Yusuke Kamiyamane
867
867
  * @see {@link https://github.com/y14e/button}
868
868
  *)
869
+ (*! Bundled license information:
870
+
871
+ power-focusable/dist/index.js:
872
+ (**
873
+ * Power Focusable
874
+ * High-precision focus management utility with full composed tree support.
875
+ * Handles complex focus rules including tabindex ordering, radio groups, inert.
876
+ *
877
+ * @version 4.3.3
878
+ * @author Yusuke Kamiyamane
879
+ * @license MIT
880
+ * @copyright Copyright (c) Yusuke Kamiyamane
881
+ * @see {@link https://github.com/y14e/power-focusable}
882
+ *)
883
+ *)
869
884
 
870
885
  @y14e/roving-tabindex/dist/index.js:
871
886
  (**
@@ -873,7 +888,7 @@ function waitAnimationFinish(animation) {
873
888
  * Lightweight roving tabindex utility with fully focus management.
874
889
  * Designed for accessible menus, tabs, toolbars, and composite widgets.
875
890
  *
876
- * @version 3.0.7
891
+ * @version 3.0.8
877
892
  * @author Yusuke Kamiyamane
878
893
  * @license MIT
879
894
  * @copyright Copyright (c) Yusuke Kamiyamane
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@y14e/accordion",
3
- "version": "1.4.13",
3
+ "version": "1.4.14",
4
4
  "description": "WAI-ARIA compliant accordion pattern implementation in TypeScript",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -43,8 +43,8 @@
43
43
  },
44
44
  "homepage": "https://github.com/y14e/accordion#readme",
45
45
  "devDependencies": {
46
- "@y14e/button": "^1.0.2",
47
- "@y14e/roving-tabindex": "^3.0.7",
46
+ "@y14e/button": "^1.0.3",
47
+ "@y14e/roving-tabindex": "^3.0.8",
48
48
  "bun-types": "latest",
49
49
  "tsup": "^8.0.0",
50
50
  "typescript": "^5.6.0",