@y14e/disclosure 2.1.1 → 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 +3 -3
- package/dist/index.bundle.cjs +1 -51
- package/dist/index.bundle.js +1 -51
- package/dist/index.cjs +0 -11
- package/dist/index.d.cts +0 -11
- package/dist/index.d.ts +0 -11
- package/dist/index.js +0 -11
- package/package.json +3 -3
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.
|
|
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.
|
|
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.
|
|
20
|
+
import { Disclosure } from 'https://esm.unpkg.com/@y14e/disclosure@2.1.3';
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
## Usage
|
package/dist/index.bundle.cjs
CHANGED
|
@@ -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 {
|
|
559
|
+
const { left, top, width, height } = cell.getBoundingClientRect();
|
|
560
560
|
return {
|
|
561
561
|
x: left + width / 2,
|
|
562
562
|
y: top + height / 2
|
|
@@ -979,55 +979,5 @@ function waitAnimationFinish(animation) {
|
|
|
979
979
|
(resolve) => animation.addEventListener("finish", () => resolve(), { once: true })
|
|
980
980
|
);
|
|
981
981
|
}
|
|
982
|
-
/**
|
|
983
|
-
* Disclosure
|
|
984
|
-
* WAI-ARIA compliant disclosure pattern implementation in TypeScript.
|
|
985
|
-
* Using the <details> and <summary> element.
|
|
986
|
-
*
|
|
987
|
-
* @version 2.1.1
|
|
988
|
-
* @author Yusuke Kamiyamane
|
|
989
|
-
* @license MIT
|
|
990
|
-
* @copyright Copyright (c) Yusuke Kamiyamane
|
|
991
|
-
* @see {@link https://github.com/y14e/disclosure}
|
|
992
|
-
*/
|
|
993
|
-
/*! Bundled license information:
|
|
994
|
-
|
|
995
|
-
@y14e/attribute-utils/dist/index.js:
|
|
996
|
-
(**
|
|
997
|
-
* Attribute Utils
|
|
998
|
-
*
|
|
999
|
-
* @version 2.0.12
|
|
1000
|
-
* @author Yusuke Kamiyamane
|
|
1001
|
-
* @license MIT
|
|
1002
|
-
* @copyright Copyright (c) Yusuke Kamiyamane
|
|
1003
|
-
* @see {@link https://github.com/y14e/attribute-utils}
|
|
1004
|
-
*)
|
|
1005
|
-
|
|
1006
|
-
power-focusable/dist/index.js:
|
|
1007
|
-
(**
|
|
1008
|
-
* Power Focusable
|
|
1009
|
-
* High-precision focus management utility with full composed tree support.
|
|
1010
|
-
* Handles complex focus rules including tabindex ordering, radio groups, inert.
|
|
1011
|
-
*
|
|
1012
|
-
* @version 4.4.3
|
|
1013
|
-
* @author Yusuke Kamiyamane
|
|
1014
|
-
* @license MIT
|
|
1015
|
-
* @copyright Copyright (c) Yusuke Kamiyamane
|
|
1016
|
-
* @see {@link https://github.com/y14e/power-focusable}
|
|
1017
|
-
*)
|
|
1018
|
-
|
|
1019
|
-
@y14e/roving-tabindex/dist/index.js:
|
|
1020
|
-
(**
|
|
1021
|
-
* Roving Tabindex
|
|
1022
|
-
* Lightweight roving tabindex utility with fully focus management.
|
|
1023
|
-
* Designed for accessible menus, tabs, toolbars, and composite widgets.
|
|
1024
|
-
*
|
|
1025
|
-
* @version 3.3.2
|
|
1026
|
-
* @author Yusuke Kamiyamane
|
|
1027
|
-
* @license MIT
|
|
1028
|
-
* @copyright Copyright (c) Yusuke Kamiyamane
|
|
1029
|
-
* @see {@link https://github.com/y14e/roving-tabindex}
|
|
1030
|
-
*)
|
|
1031
|
-
*/
|
|
1032
982
|
|
|
1033
983
|
exports.Disclosure = Disclosure;
|
package/dist/index.bundle.js
CHANGED
|
@@ -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 {
|
|
557
|
+
const { left, top, width, height } = cell.getBoundingClientRect();
|
|
558
558
|
return {
|
|
559
559
|
x: left + width / 2,
|
|
560
560
|
y: top + height / 2
|
|
@@ -977,55 +977,5 @@ function waitAnimationFinish(animation) {
|
|
|
977
977
|
(resolve) => animation.addEventListener("finish", () => resolve(), { once: true })
|
|
978
978
|
);
|
|
979
979
|
}
|
|
980
|
-
/**
|
|
981
|
-
* Disclosure
|
|
982
|
-
* WAI-ARIA compliant disclosure pattern implementation in TypeScript.
|
|
983
|
-
* Using the <details> and <summary> element.
|
|
984
|
-
*
|
|
985
|
-
* @version 2.1.1
|
|
986
|
-
* @author Yusuke Kamiyamane
|
|
987
|
-
* @license MIT
|
|
988
|
-
* @copyright Copyright (c) Yusuke Kamiyamane
|
|
989
|
-
* @see {@link https://github.com/y14e/disclosure}
|
|
990
|
-
*/
|
|
991
|
-
/*! Bundled license information:
|
|
992
|
-
|
|
993
|
-
@y14e/attribute-utils/dist/index.js:
|
|
994
|
-
(**
|
|
995
|
-
* Attribute Utils
|
|
996
|
-
*
|
|
997
|
-
* @version 2.0.12
|
|
998
|
-
* @author Yusuke Kamiyamane
|
|
999
|
-
* @license MIT
|
|
1000
|
-
* @copyright Copyright (c) Yusuke Kamiyamane
|
|
1001
|
-
* @see {@link https://github.com/y14e/attribute-utils}
|
|
1002
|
-
*)
|
|
1003
|
-
|
|
1004
|
-
power-focusable/dist/index.js:
|
|
1005
|
-
(**
|
|
1006
|
-
* Power Focusable
|
|
1007
|
-
* High-precision focus management utility with full composed tree support.
|
|
1008
|
-
* Handles complex focus rules including tabindex ordering, radio groups, inert.
|
|
1009
|
-
*
|
|
1010
|
-
* @version 4.4.3
|
|
1011
|
-
* @author Yusuke Kamiyamane
|
|
1012
|
-
* @license MIT
|
|
1013
|
-
* @copyright Copyright (c) Yusuke Kamiyamane
|
|
1014
|
-
* @see {@link https://github.com/y14e/power-focusable}
|
|
1015
|
-
*)
|
|
1016
|
-
|
|
1017
|
-
@y14e/roving-tabindex/dist/index.js:
|
|
1018
|
-
(**
|
|
1019
|
-
* Roving Tabindex
|
|
1020
|
-
* Lightweight roving tabindex utility with fully focus management.
|
|
1021
|
-
* Designed for accessible menus, tabs, toolbars, and composite widgets.
|
|
1022
|
-
*
|
|
1023
|
-
* @version 3.3.2
|
|
1024
|
-
* @author Yusuke Kamiyamane
|
|
1025
|
-
* @license MIT
|
|
1026
|
-
* @copyright Copyright (c) Yusuke Kamiyamane
|
|
1027
|
-
* @see {@link https://github.com/y14e/roving-tabindex}
|
|
1028
|
-
*)
|
|
1029
|
-
*/
|
|
1030
980
|
|
|
1031
981
|
export { Disclosure };
|
package/dist/index.cjs
CHANGED
|
@@ -302,16 +302,5 @@ function waitAnimationFinish(animation) {
|
|
|
302
302
|
(resolve) => animation.addEventListener("finish", () => resolve(), { once: true })
|
|
303
303
|
);
|
|
304
304
|
}
|
|
305
|
-
/**
|
|
306
|
-
* Disclosure
|
|
307
|
-
* WAI-ARIA compliant disclosure pattern implementation in TypeScript.
|
|
308
|
-
* Using the <details> and <summary> element.
|
|
309
|
-
*
|
|
310
|
-
* @version 2.1.1
|
|
311
|
-
* @author Yusuke Kamiyamane
|
|
312
|
-
* @license MIT
|
|
313
|
-
* @copyright Copyright (c) Yusuke Kamiyamane
|
|
314
|
-
* @see {@link https://github.com/y14e/disclosure}
|
|
315
|
-
*/
|
|
316
305
|
|
|
317
306
|
exports.Disclosure = Disclosure;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Disclosure
|
|
3
|
-
* WAI-ARIA compliant disclosure pattern implementation in TypeScript.
|
|
4
|
-
* Using the <details> and <summary> element.
|
|
5
|
-
*
|
|
6
|
-
* @version 2.1.1
|
|
7
|
-
* @author Yusuke Kamiyamane
|
|
8
|
-
* @license MIT
|
|
9
|
-
* @copyright Copyright (c) Yusuke Kamiyamane
|
|
10
|
-
* @see {@link https://github.com/y14e/disclosure}
|
|
11
|
-
*/
|
|
12
1
|
interface DisclosureOptions {
|
|
13
2
|
animation: {
|
|
14
3
|
duration: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Disclosure
|
|
3
|
-
* WAI-ARIA compliant disclosure pattern implementation in TypeScript.
|
|
4
|
-
* Using the <details> and <summary> element.
|
|
5
|
-
*
|
|
6
|
-
* @version 2.1.1
|
|
7
|
-
* @author Yusuke Kamiyamane
|
|
8
|
-
* @license MIT
|
|
9
|
-
* @copyright Copyright (c) Yusuke Kamiyamane
|
|
10
|
-
* @see {@link https://github.com/y14e/disclosure}
|
|
11
|
-
*/
|
|
12
1
|
interface DisclosureOptions {
|
|
13
2
|
animation: {
|
|
14
3
|
duration: number;
|
package/dist/index.js
CHANGED
|
@@ -300,16 +300,5 @@ function waitAnimationFinish(animation) {
|
|
|
300
300
|
(resolve) => animation.addEventListener("finish", () => resolve(), { once: true })
|
|
301
301
|
);
|
|
302
302
|
}
|
|
303
|
-
/**
|
|
304
|
-
* Disclosure
|
|
305
|
-
* WAI-ARIA compliant disclosure pattern implementation in TypeScript.
|
|
306
|
-
* Using the <details> and <summary> element.
|
|
307
|
-
*
|
|
308
|
-
* @version 2.1.1
|
|
309
|
-
* @author Yusuke Kamiyamane
|
|
310
|
-
* @license MIT
|
|
311
|
-
* @copyright Copyright (c) Yusuke Kamiyamane
|
|
312
|
-
* @see {@link https://github.com/y14e/disclosure}
|
|
313
|
-
*/
|
|
314
303
|
|
|
315
304
|
export { Disclosure };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@y14e/disclosure",
|
|
3
|
-
"version": "2.1.
|
|
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.
|
|
58
|
-
"@y14e/roving-tabindex": "^3.3.
|
|
57
|
+
"@y14e/attribute-utils": "^2.0.13",
|
|
58
|
+
"@y14e/roving-tabindex": "^3.3.4"
|
|
59
59
|
}
|
|
60
60
|
}
|