@y14e/accordion 1.4.2 → 1.4.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 +4 -4
- package/dist/index.cjs +4 -4
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -4
- package/package.json +1 -1
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
|
+
import Accordion from '@y14e/accordion@1.4.3';
|
|
14
14
|
|
|
15
15
|
// CDNs
|
|
16
|
-
import Accordion from 'https://esm.sh/@y14e/accordion@1.4.
|
|
16
|
+
import Accordion from 'https://esm.sh/@y14e/accordion@1.4.3';
|
|
17
17
|
// or
|
|
18
|
-
import Accordion from 'https://cdn.jsdelivr.net/npm/@y14e/accordion@1.4.
|
|
18
|
+
import Accordion from 'https://cdn.jsdelivr.net/npm/@y14e/accordion@1.4.3/+esm';
|
|
19
19
|
// or
|
|
20
|
-
import Accordion from 'https://esm.unpkg.com/@y14e/accordion@1.4.
|
|
20
|
+
import Accordion from 'https://esm.unpkg.com/@y14e/accordion@1.4.3';
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
## Usage
|
package/dist/index.cjs
CHANGED
|
@@ -862,9 +862,9 @@ var Accordion = class _Accordion {
|
|
|
862
862
|
if (trigger.ariaExpanded === "false") {
|
|
863
863
|
content.setAttribute("hidden", "until-found");
|
|
864
864
|
}
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
865
|
+
["block-size", "overflow"].forEach((name) => {
|
|
866
|
+
content.style.removeProperty(name);
|
|
867
|
+
});
|
|
868
868
|
}
|
|
869
869
|
async #waitAnimationsFinish() {
|
|
870
870
|
const promises = [];
|
|
@@ -894,7 +894,7 @@ function waitAnimationFinish(animation) {
|
|
|
894
894
|
* Accordion
|
|
895
895
|
* WAI-ARIA compliant accordion pattern implementation in TypeScript.
|
|
896
896
|
*
|
|
897
|
-
* @version 1.4.
|
|
897
|
+
* @version 1.4.3
|
|
898
898
|
* @author Yusuke Kamiyamane
|
|
899
899
|
* @license MIT
|
|
900
900
|
* @copyright Copyright (c) Yusuke Kamiyamane
|
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -860,9 +860,9 @@ var Accordion = class _Accordion {
|
|
|
860
860
|
if (trigger.ariaExpanded === "false") {
|
|
861
861
|
content.setAttribute("hidden", "until-found");
|
|
862
862
|
}
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
863
|
+
["block-size", "overflow"].forEach((name) => {
|
|
864
|
+
content.style.removeProperty(name);
|
|
865
|
+
});
|
|
866
866
|
}
|
|
867
867
|
async #waitAnimationsFinish() {
|
|
868
868
|
const promises = [];
|
|
@@ -892,7 +892,7 @@ function waitAnimationFinish(animation) {
|
|
|
892
892
|
* Accordion
|
|
893
893
|
* WAI-ARIA compliant accordion pattern implementation in TypeScript.
|
|
894
894
|
*
|
|
895
|
-
* @version 1.4.
|
|
895
|
+
* @version 1.4.3
|
|
896
896
|
* @author Yusuke Kamiyamane
|
|
897
897
|
* @license MIT
|
|
898
898
|
* @copyright Copyright (c) Yusuke Kamiyamane
|