@y14e/accordion 2.1.7 → 2.1.8

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
@@ -13,11 +13,11 @@ npm i @y14e/accordion
13
13
  import { Accordion } from '@y14e/accordion';
14
14
 
15
15
  // CDNs
16
- import { Accordion } from 'https://esm.sh/@y14e/accordion@2.1.7';
16
+ import { Accordion } from 'https://esm.sh/@y14e/accordion@2.1.8';
17
17
  // or
18
- import { Accordion } from 'https://cdn.jsdelivr.net/npm/@y14e/accordion@2.1.7/+esm';
18
+ import { Accordion } from 'https://cdn.jsdelivr.net/npm/@y14e/accordion@2.1.8/+esm';
19
19
  // or
20
- import { Accordion } from 'https://esm.unpkg.com/@y14e/accordion@2.1.7';
20
+ import { Accordion } from 'https://esm.unpkg.com/@y14e/accordion@2.1.8';
21
21
  ```
22
22
 
23
23
  ## Usage
@@ -605,7 +605,7 @@ var RovingTabIndex = class _RovingTabIndex {
605
605
  return (element) => !selector || [...this.#container.querySelectorAll(selector)].includes(element);
606
606
  }
607
607
  #getCellCoords(cell) {
608
- const { height, left, top, width } = cell.getBoundingClientRect();
608
+ const { left, top, width, height } = cell.getBoundingClientRect();
609
609
  return {
610
610
  x: left + width / 2,
611
611
  y: top + height / 2
@@ -1038,65 +1038,5 @@ function waitAnimationFinish(animation) {
1038
1038
  (resolve) => animation.addEventListener("finish", () => resolve(), { once: true })
1039
1039
  );
1040
1040
  }
1041
- /**
1042
- * Accordion
1043
- * WAI-ARIA compliant accordion pattern implementation in TypeScript.
1044
- *
1045
- * @version 2.1.7
1046
- * @author Yusuke Kamiyamane
1047
- * @license MIT
1048
- * @copyright Copyright (c) Yusuke Kamiyamane
1049
- * @see {@link https://github.com/y14e/accordion}
1050
- */
1051
- /*! Bundled license information:
1052
-
1053
- @y14e/attribute-utils/dist/index.js:
1054
- (**
1055
- * Attribute Utils
1056
- *
1057
- * @version 2.0.12
1058
- * @author Yusuke Kamiyamane
1059
- * @license MIT
1060
- * @copyright Copyright (c) Yusuke Kamiyamane
1061
- * @see {@link https://github.com/y14e/attribute-utils}
1062
- *)
1063
-
1064
- power-focusable/dist/index.js:
1065
- (**
1066
- * Power Focusable
1067
- * High-precision focus management utility with full composed tree support.
1068
- * Handles complex focus rules including tabindex ordering, radio groups, inert.
1069
- *
1070
- * @version 4.4.3
1071
- * @author Yusuke Kamiyamane
1072
- * @license MIT
1073
- * @copyright Copyright (c) Yusuke Kamiyamane
1074
- * @see {@link https://github.com/y14e/power-focusable}
1075
- *)
1076
-
1077
- @y14e/button/dist/index.js:
1078
- (**
1079
- * Button
1080
- *
1081
- * @version 1.0.8
1082
- * @author Yusuke Kamiyamane
1083
- * @license MIT
1084
- * @copyright Copyright (c) Yusuke Kamiyamane
1085
- * @see {@link https://github.com/y14e/button}
1086
- *)
1087
-
1088
- @y14e/roving-tabindex/dist/index.js:
1089
- (**
1090
- * Roving Tabindex
1091
- * Lightweight roving tabindex utility with fully focus management.
1092
- * Designed for accessible menus, tabs, toolbars, and composite widgets.
1093
- *
1094
- * @version 3.3.2
1095
- * @author Yusuke Kamiyamane
1096
- * @license MIT
1097
- * @copyright Copyright (c) Yusuke Kamiyamane
1098
- * @see {@link https://github.com/y14e/roving-tabindex}
1099
- *)
1100
- */
1101
1041
 
1102
1042
  exports.Accordion = Accordion;
@@ -603,7 +603,7 @@ var RovingTabIndex = class _RovingTabIndex {
603
603
  return (element) => !selector || [...this.#container.querySelectorAll(selector)].includes(element);
604
604
  }
605
605
  #getCellCoords(cell) {
606
- const { height, left, top, width } = cell.getBoundingClientRect();
606
+ const { left, top, width, height } = cell.getBoundingClientRect();
607
607
  return {
608
608
  x: left + width / 2,
609
609
  y: top + height / 2
@@ -1036,65 +1036,5 @@ function waitAnimationFinish(animation) {
1036
1036
  (resolve) => animation.addEventListener("finish", () => resolve(), { once: true })
1037
1037
  );
1038
1038
  }
1039
- /**
1040
- * Accordion
1041
- * WAI-ARIA compliant accordion pattern implementation in TypeScript.
1042
- *
1043
- * @version 2.1.7
1044
- * @author Yusuke Kamiyamane
1045
- * @license MIT
1046
- * @copyright Copyright (c) Yusuke Kamiyamane
1047
- * @see {@link https://github.com/y14e/accordion}
1048
- */
1049
- /*! Bundled license information:
1050
-
1051
- @y14e/attribute-utils/dist/index.js:
1052
- (**
1053
- * Attribute Utils
1054
- *
1055
- * @version 2.0.12
1056
- * @author Yusuke Kamiyamane
1057
- * @license MIT
1058
- * @copyright Copyright (c) Yusuke Kamiyamane
1059
- * @see {@link https://github.com/y14e/attribute-utils}
1060
- *)
1061
-
1062
- power-focusable/dist/index.js:
1063
- (**
1064
- * Power Focusable
1065
- * High-precision focus management utility with full composed tree support.
1066
- * Handles complex focus rules including tabindex ordering, radio groups, inert.
1067
- *
1068
- * @version 4.4.3
1069
- * @author Yusuke Kamiyamane
1070
- * @license MIT
1071
- * @copyright Copyright (c) Yusuke Kamiyamane
1072
- * @see {@link https://github.com/y14e/power-focusable}
1073
- *)
1074
-
1075
- @y14e/button/dist/index.js:
1076
- (**
1077
- * Button
1078
- *
1079
- * @version 1.0.8
1080
- * @author Yusuke Kamiyamane
1081
- * @license MIT
1082
- * @copyright Copyright (c) Yusuke Kamiyamane
1083
- * @see {@link https://github.com/y14e/button}
1084
- *)
1085
-
1086
- @y14e/roving-tabindex/dist/index.js:
1087
- (**
1088
- * Roving Tabindex
1089
- * Lightweight roving tabindex utility with fully focus management.
1090
- * Designed for accessible menus, tabs, toolbars, and composite widgets.
1091
- *
1092
- * @version 3.3.2
1093
- * @author Yusuke Kamiyamane
1094
- * @license MIT
1095
- * @copyright Copyright (c) Yusuke Kamiyamane
1096
- * @see {@link https://github.com/y14e/roving-tabindex}
1097
- *)
1098
- */
1099
1039
 
1100
1040
  export { Accordion };
package/dist/index.cjs CHANGED
@@ -313,15 +313,5 @@ function waitAnimationFinish(animation) {
313
313
  (resolve) => animation.addEventListener("finish", () => resolve(), { once: true })
314
314
  );
315
315
  }
316
- /**
317
- * Accordion
318
- * WAI-ARIA compliant accordion pattern implementation in TypeScript.
319
- *
320
- * @version 2.1.7
321
- * @author Yusuke Kamiyamane
322
- * @license MIT
323
- * @copyright Copyright (c) Yusuke Kamiyamane
324
- * @see {@link https://github.com/y14e/accordion}
325
- */
326
316
 
327
317
  exports.Accordion = Accordion;
package/dist/index.d.cts CHANGED
@@ -1,13 +1,3 @@
1
- /**
2
- * Accordion
3
- * WAI-ARIA compliant accordion pattern implementation in TypeScript.
4
- *
5
- * @version 2.1.7
6
- * @author Yusuke Kamiyamane
7
- * @license MIT
8
- * @copyright Copyright (c) Yusuke Kamiyamane
9
- * @see {@link https://github.com/y14e/accordion}
10
- */
11
1
  interface AccordionOptions {
12
2
  animation: {
13
3
  duration: number;
package/dist/index.d.ts CHANGED
@@ -1,13 +1,3 @@
1
- /**
2
- * Accordion
3
- * WAI-ARIA compliant accordion pattern implementation in TypeScript.
4
- *
5
- * @version 2.1.7
6
- * @author Yusuke Kamiyamane
7
- * @license MIT
8
- * @copyright Copyright (c) Yusuke Kamiyamane
9
- * @see {@link https://github.com/y14e/accordion}
10
- */
11
1
  interface AccordionOptions {
12
2
  animation: {
13
3
  duration: number;
package/dist/index.js CHANGED
@@ -311,15 +311,5 @@ function waitAnimationFinish(animation) {
311
311
  (resolve) => animation.addEventListener("finish", () => resolve(), { once: true })
312
312
  );
313
313
  }
314
- /**
315
- * Accordion
316
- * WAI-ARIA compliant accordion pattern implementation in TypeScript.
317
- *
318
- * @version 2.1.7
319
- * @author Yusuke Kamiyamane
320
- * @license MIT
321
- * @copyright Copyright (c) Yusuke Kamiyamane
322
- * @see {@link https://github.com/y14e/accordion}
323
- */
324
314
 
325
315
  export { Accordion };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@y14e/accordion",
3
- "version": "2.1.7",
3
+ "version": "2.1.8",
4
4
  "description": "WAI-ARIA compliant accordion pattern implementation in TypeScript",
5
5
  "keywords": [
6
6
  "a11y",
@@ -54,8 +54,8 @@
54
54
  "esbuild": true
55
55
  },
56
56
  "dependencies": {
57
- "@y14e/attribute-utils": "^2.0.12",
58
- "@y14e/button": "^1.0.8",
59
- "@y14e/roving-tabindex": "^3.3.2"
57
+ "@y14e/attribute-utils": "^2.0.13",
58
+ "@y14e/button": "^1.0.9",
59
+ "@y14e/roving-tabindex": "^3.3.4"
60
60
  }
61
61
  }