@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 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.2';
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.2';
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.2/+esm';
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.2';
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
- const { style } = content;
866
- style.removeProperty("block-size");
867
- style.removeProperty("overflow");
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.2
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
@@ -2,7 +2,7 @@
2
2
  * Accordion
3
3
  * WAI-ARIA compliant accordion pattern implementation in TypeScript.
4
4
  *
5
- * @version 1.4.2
5
+ * @version 1.4.3
6
6
  * @author Yusuke Kamiyamane
7
7
  * @license MIT
8
8
  * @copyright Copyright (c) Yusuke Kamiyamane
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Accordion
3
3
  * WAI-ARIA compliant accordion pattern implementation in TypeScript.
4
4
  *
5
- * @version 1.4.2
5
+ * @version 1.4.3
6
6
  * @author Yusuke Kamiyamane
7
7
  * @license MIT
8
8
  * @copyright Copyright (c) Yusuke Kamiyamane
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
- const { style } = content;
864
- style.removeProperty("block-size");
865
- style.removeProperty("overflow");
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.2
895
+ * @version 1.4.3
896
896
  * @author Yusuke Kamiyamane
897
897
  * @license MIT
898
898
  * @copyright Copyright (c) Yusuke Kamiyamane
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@y14e/accordion",
3
- "version": "1.4.2",
3
+ "version": "1.4.3",
4
4
  "description": "WAI-ARIA compliant accordion pattern implementation in TypeScript",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",