@y14e/disclosure 2.1.2 → 2.1.3

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/disclosure
13
13
  import { Disclosure } from '@y14e/disclosure';
14
14
 
15
15
  // CDNs
16
- import { Disclosure } from 'https://esm.sh/@y14e/disclosure@2.1.2';
16
+ import { Disclosure } from 'https://esm.sh/@y14e/disclosure@2.1.3';
17
17
  // or
18
- import { Disclosure } from 'https://cdn.jsdelivr.net/npm/@y14e/disclosure@2.1.2/+esm';
18
+ import { Disclosure } from 'https://cdn.jsdelivr.net/npm/@y14e/disclosure@2.1.3/+esm';
19
19
  // or
20
- import { Disclosure } from 'https://esm.unpkg.com/@y14e/disclosure@2.1.2';
20
+ import { Disclosure } from 'https://esm.unpkg.com/@y14e/disclosure@2.1.3';
21
21
  ```
22
22
 
23
23
  ## Usage
@@ -556,7 +556,7 @@ var RovingTabIndex = class _RovingTabIndex {
556
556
  return (element) => !selector || [...this.#container.querySelectorAll(selector)].includes(element);
557
557
  }
558
558
  #getCellCoords(cell) {
559
- const { height, left, top, width } = cell.getBoundingClientRect();
559
+ const { left, top, width, height } = cell.getBoundingClientRect();
560
560
  return {
561
561
  x: left + width / 2,
562
562
  y: top + height / 2
@@ -979,44 +979,5 @@ function waitAnimationFinish(animation) {
979
979
  (resolve) => animation.addEventListener("finish", () => resolve(), { once: true })
980
980
  );
981
981
  }
982
- /*! Bundled license information:
983
-
984
- @y14e/attribute-utils/dist/index.js:
985
- (**
986
- * Attribute Utils
987
- *
988
- * @version 2.0.12
989
- * @author Yusuke Kamiyamane
990
- * @license MIT
991
- * @copyright Copyright (c) Yusuke Kamiyamane
992
- * @see {@link https://github.com/y14e/attribute-utils}
993
- *)
994
-
995
- power-focusable/dist/index.js:
996
- (**
997
- * Power Focusable
998
- * High-precision focus management utility with full composed tree support.
999
- * Handles complex focus rules including tabindex ordering, radio groups, inert.
1000
- *
1001
- * @version 4.4.3
1002
- * @author Yusuke Kamiyamane
1003
- * @license MIT
1004
- * @copyright Copyright (c) Yusuke Kamiyamane
1005
- * @see {@link https://github.com/y14e/power-focusable}
1006
- *)
1007
-
1008
- @y14e/roving-tabindex/dist/index.js:
1009
- (**
1010
- * Roving Tabindex
1011
- * Lightweight roving tabindex utility with fully focus management.
1012
- * Designed for accessible menus, tabs, toolbars, and composite widgets.
1013
- *
1014
- * @version 3.3.2
1015
- * @author Yusuke Kamiyamane
1016
- * @license MIT
1017
- * @copyright Copyright (c) Yusuke Kamiyamane
1018
- * @see {@link https://github.com/y14e/roving-tabindex}
1019
- *)
1020
- */
1021
982
 
1022
983
  exports.Disclosure = Disclosure;
@@ -554,7 +554,7 @@ var RovingTabIndex = class _RovingTabIndex {
554
554
  return (element) => !selector || [...this.#container.querySelectorAll(selector)].includes(element);
555
555
  }
556
556
  #getCellCoords(cell) {
557
- const { height, left, top, width } = cell.getBoundingClientRect();
557
+ const { left, top, width, height } = cell.getBoundingClientRect();
558
558
  return {
559
559
  x: left + width / 2,
560
560
  y: top + height / 2
@@ -977,44 +977,5 @@ function waitAnimationFinish(animation) {
977
977
  (resolve) => animation.addEventListener("finish", () => resolve(), { once: true })
978
978
  );
979
979
  }
980
- /*! Bundled license information:
981
-
982
- @y14e/attribute-utils/dist/index.js:
983
- (**
984
- * Attribute Utils
985
- *
986
- * @version 2.0.12
987
- * @author Yusuke Kamiyamane
988
- * @license MIT
989
- * @copyright Copyright (c) Yusuke Kamiyamane
990
- * @see {@link https://github.com/y14e/attribute-utils}
991
- *)
992
-
993
- power-focusable/dist/index.js:
994
- (**
995
- * Power Focusable
996
- * High-precision focus management utility with full composed tree support.
997
- * Handles complex focus rules including tabindex ordering, radio groups, inert.
998
- *
999
- * @version 4.4.3
1000
- * @author Yusuke Kamiyamane
1001
- * @license MIT
1002
- * @copyright Copyright (c) Yusuke Kamiyamane
1003
- * @see {@link https://github.com/y14e/power-focusable}
1004
- *)
1005
-
1006
- @y14e/roving-tabindex/dist/index.js:
1007
- (**
1008
- * Roving Tabindex
1009
- * Lightweight roving tabindex utility with fully focus management.
1010
- * Designed for accessible menus, tabs, toolbars, and composite widgets.
1011
- *
1012
- * @version 3.3.2
1013
- * @author Yusuke Kamiyamane
1014
- * @license MIT
1015
- * @copyright Copyright (c) Yusuke Kamiyamane
1016
- * @see {@link https://github.com/y14e/roving-tabindex}
1017
- *)
1018
- */
1019
980
 
1020
981
  export { Disclosure };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@y14e/disclosure",
3
- "version": "2.1.2",
3
+ "version": "2.1.3",
4
4
  "description": "WAI-ARIA compliant disclosure pattern implementation in TypeScript",
5
5
  "keywords": [
6
6
  "a11y",
@@ -54,7 +54,7 @@
54
54
  "esbuild": true
55
55
  },
56
56
  "dependencies": {
57
- "@y14e/attribute-utils": "^2.0.12",
58
- "@y14e/roving-tabindex": "^3.3.2"
57
+ "@y14e/attribute-utils": "^2.0.13",
58
+ "@y14e/roving-tabindex": "^3.3.4"
59
59
  }
60
60
  }