@y14e/disclosure-css 2.1.1 → 2.1.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/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/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
|
|
@@ -842,55 +842,5 @@ var Disclosure = class _Disclosure {
|
|
|
842
842
|
return merged;
|
|
843
843
|
}
|
|
844
844
|
};
|
|
845
|
-
/**
|
|
846
|
-
* Disclosure (CSS Animation)
|
|
847
|
-
* WAI-ARIA compliant disclosure pattern implementation in TypeScript.
|
|
848
|
-
* Using the <details> and <summary> element.
|
|
849
|
-
*
|
|
850
|
-
* @version 2.1.1
|
|
851
|
-
* @author Yusuke Kamiyamane
|
|
852
|
-
* @license MIT
|
|
853
|
-
* @copyright Copyright (c) Yusuke Kamiyamane
|
|
854
|
-
* @see {@link https://github.com/y14e/disclosure-css}
|
|
855
|
-
*/
|
|
856
|
-
/*! Bundled license information:
|
|
857
|
-
|
|
858
|
-
@y14e/attribute-utils/dist/index.js:
|
|
859
|
-
(**
|
|
860
|
-
* Attribute Utils
|
|
861
|
-
*
|
|
862
|
-
* @version 2.0.12
|
|
863
|
-
* @author Yusuke Kamiyamane
|
|
864
|
-
* @license MIT
|
|
865
|
-
* @copyright Copyright (c) Yusuke Kamiyamane
|
|
866
|
-
* @see {@link https://github.com/y14e/attribute-utils}
|
|
867
|
-
*)
|
|
868
|
-
|
|
869
|
-
power-focusable/dist/index.js:
|
|
870
|
-
(**
|
|
871
|
-
* Power Focusable
|
|
872
|
-
* High-precision focus management utility with full composed tree support.
|
|
873
|
-
* Handles complex focus rules including tabindex ordering, radio groups, inert.
|
|
874
|
-
*
|
|
875
|
-
* @version 4.4.3
|
|
876
|
-
* @author Yusuke Kamiyamane
|
|
877
|
-
* @license MIT
|
|
878
|
-
* @copyright Copyright (c) Yusuke Kamiyamane
|
|
879
|
-
* @see {@link https://github.com/y14e/power-focusable}
|
|
880
|
-
*)
|
|
881
|
-
|
|
882
|
-
@y14e/roving-tabindex/dist/index.js:
|
|
883
|
-
(**
|
|
884
|
-
* Roving Tabindex
|
|
885
|
-
* Lightweight roving tabindex utility with fully focus management.
|
|
886
|
-
* Designed for accessible menus, tabs, toolbars, and composite widgets.
|
|
887
|
-
*
|
|
888
|
-
* @version 3.3.2
|
|
889
|
-
* @author Yusuke Kamiyamane
|
|
890
|
-
* @license MIT
|
|
891
|
-
* @copyright Copyright (c) Yusuke Kamiyamane
|
|
892
|
-
* @see {@link https://github.com/y14e/roving-tabindex}
|
|
893
|
-
*)
|
|
894
|
-
*/
|
|
895
845
|
|
|
896
846
|
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
|
|
@@ -840,55 +840,5 @@ var Disclosure = class _Disclosure {
|
|
|
840
840
|
return merged;
|
|
841
841
|
}
|
|
842
842
|
};
|
|
843
|
-
/**
|
|
844
|
-
* Disclosure (CSS Animation)
|
|
845
|
-
* WAI-ARIA compliant disclosure pattern implementation in TypeScript.
|
|
846
|
-
* Using the <details> and <summary> element.
|
|
847
|
-
*
|
|
848
|
-
* @version 2.1.1
|
|
849
|
-
* @author Yusuke Kamiyamane
|
|
850
|
-
* @license MIT
|
|
851
|
-
* @copyright Copyright (c) Yusuke Kamiyamane
|
|
852
|
-
* @see {@link https://github.com/y14e/disclosure-css}
|
|
853
|
-
*/
|
|
854
|
-
/*! Bundled license information:
|
|
855
|
-
|
|
856
|
-
@y14e/attribute-utils/dist/index.js:
|
|
857
|
-
(**
|
|
858
|
-
* Attribute Utils
|
|
859
|
-
*
|
|
860
|
-
* @version 2.0.12
|
|
861
|
-
* @author Yusuke Kamiyamane
|
|
862
|
-
* @license MIT
|
|
863
|
-
* @copyright Copyright (c) Yusuke Kamiyamane
|
|
864
|
-
* @see {@link https://github.com/y14e/attribute-utils}
|
|
865
|
-
*)
|
|
866
|
-
|
|
867
|
-
power-focusable/dist/index.js:
|
|
868
|
-
(**
|
|
869
|
-
* Power Focusable
|
|
870
|
-
* High-precision focus management utility with full composed tree support.
|
|
871
|
-
* Handles complex focus rules including tabindex ordering, radio groups, inert.
|
|
872
|
-
*
|
|
873
|
-
* @version 4.4.3
|
|
874
|
-
* @author Yusuke Kamiyamane
|
|
875
|
-
* @license MIT
|
|
876
|
-
* @copyright Copyright (c) Yusuke Kamiyamane
|
|
877
|
-
* @see {@link https://github.com/y14e/power-focusable}
|
|
878
|
-
*)
|
|
879
|
-
|
|
880
|
-
@y14e/roving-tabindex/dist/index.js:
|
|
881
|
-
(**
|
|
882
|
-
* Roving Tabindex
|
|
883
|
-
* Lightweight roving tabindex utility with fully focus management.
|
|
884
|
-
* Designed for accessible menus, tabs, toolbars, and composite widgets.
|
|
885
|
-
*
|
|
886
|
-
* @version 3.3.2
|
|
887
|
-
* @author Yusuke Kamiyamane
|
|
888
|
-
* @license MIT
|
|
889
|
-
* @copyright Copyright (c) Yusuke Kamiyamane
|
|
890
|
-
* @see {@link https://github.com/y14e/roving-tabindex}
|
|
891
|
-
*)
|
|
892
|
-
*/
|
|
893
843
|
|
|
894
844
|
export { Disclosure };
|
package/dist/index.cjs
CHANGED
|
@@ -165,16 +165,5 @@ var Disclosure = class _Disclosure {
|
|
|
165
165
|
return merged;
|
|
166
166
|
}
|
|
167
167
|
};
|
|
168
|
-
/**
|
|
169
|
-
* Disclosure (CSS Animation)
|
|
170
|
-
* WAI-ARIA compliant disclosure pattern implementation in TypeScript.
|
|
171
|
-
* Using the <details> and <summary> element.
|
|
172
|
-
*
|
|
173
|
-
* @version 2.1.1
|
|
174
|
-
* @author Yusuke Kamiyamane
|
|
175
|
-
* @license MIT
|
|
176
|
-
* @copyright Copyright (c) Yusuke Kamiyamane
|
|
177
|
-
* @see {@link https://github.com/y14e/disclosure-css}
|
|
178
|
-
*/
|
|
179
168
|
|
|
180
169
|
exports.Disclosure = Disclosure;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Disclosure (CSS Animation)
|
|
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-css}
|
|
11
|
-
*/
|
|
12
1
|
interface DisclosureOptions {
|
|
13
2
|
collapsible: boolean;
|
|
14
3
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Disclosure (CSS Animation)
|
|
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-css}
|
|
11
|
-
*/
|
|
12
1
|
interface DisclosureOptions {
|
|
13
2
|
collapsible: boolean;
|
|
14
3
|
}
|
package/dist/index.js
CHANGED
|
@@ -163,16 +163,5 @@ var Disclosure = class _Disclosure {
|
|
|
163
163
|
return merged;
|
|
164
164
|
}
|
|
165
165
|
};
|
|
166
|
-
/**
|
|
167
|
-
* Disclosure (CSS Animation)
|
|
168
|
-
* WAI-ARIA compliant disclosure pattern implementation in TypeScript.
|
|
169
|
-
* Using the <details> and <summary> element.
|
|
170
|
-
*
|
|
171
|
-
* @version 2.1.1
|
|
172
|
-
* @author Yusuke Kamiyamane
|
|
173
|
-
* @license MIT
|
|
174
|
-
* @copyright Copyright (c) Yusuke Kamiyamane
|
|
175
|
-
* @see {@link https://github.com/y14e/disclosure-css}
|
|
176
|
-
*/
|
|
177
166
|
|
|
178
167
|
export { Disclosure };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@y14e/disclosure-css",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
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
|
}
|