@y14e/accordion 2.0.2 → 2.0.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/accordion
13
13
  import Accordion from '@y14e/accordion';
14
14
 
15
15
  // CDNs
16
- import Accordion from 'https://esm.sh/@y14e/accordion@2.0.2';
16
+ import Accordion from 'https://esm.sh/@y14e/accordion@2.0.3';
17
17
  // or
18
- import Accordion from 'https://cdn.jsdelivr.net/npm/@y14e/accordion@2.0.2/+esm';
18
+ import Accordion from 'https://cdn.jsdelivr.net/npm/@y14e/accordion@2.0.3/+esm';
19
19
  // or
20
- import Accordion from 'https://esm.unpkg.com/@y14e/accordion@2.0.2';
20
+ import Accordion from 'https://esm.unpkg.com/@y14e/accordion@2.0.3';
21
21
  ```
22
22
 
23
23
  ## Usage
@@ -35,14 +35,14 @@ new Accordion(root, options);
35
35
 
36
36
  ```ts
37
37
  interface AccordionOptions {
38
- animation?: {
39
- duration?: number; // ms (default: 300)
40
- easing?: string; // <easing-function> (default: 'ease')
38
+ animation: {
39
+ duration: number; // ms (default: 300)
40
+ easing: string; // <easing-function> (default: 'ease')
41
41
  };
42
- collapsible?: boolean; // default: true
43
- selector?: {
44
- content?: string; // default: '[data-accordion-content]'
45
- trigger?: string; // default: '[data-accordion-trigger]'
42
+ collapsible: boolean; // default: true
43
+ selector: {
44
+ content: string; // default: '[data-accordion-content]'
45
+ trigger: string; // default: '[data-accordion-trigger]'
46
46
  };
47
47
  }
48
48
  ```
@@ -853,7 +853,7 @@ function waitAnimationFinish(animation) {
853
853
  * Accordion
854
854
  * WAI-ARIA compliant accordion pattern implementation in TypeScript.
855
855
  *
856
- * @version 2.0.2
856
+ * @version 2.0.3
857
857
  * @author Yusuke Kamiyamane
858
858
  * @license MIT
859
859
  * @copyright Copyright (c) Yusuke Kamiyamane
@@ -878,7 +878,7 @@ power-focusable/dist/index.js:
878
878
  * High-precision focus management utility with full composed tree support.
879
879
  * Handles complex focus rules including tabindex ordering, radio groups, inert.
880
880
  *
881
- * @version 4.3.8
881
+ * @version 4.3.10
882
882
  * @author Yusuke Kamiyamane
883
883
  * @license MIT
884
884
  * @copyright Copyright (c) Yusuke Kamiyamane
@@ -902,7 +902,7 @@ power-focusable/dist/index.js:
902
902
  * Lightweight roving tabindex utility with fully focus management.
903
903
  * Designed for accessible menus, tabs, toolbars, and composite widgets.
904
904
  *
905
- * @version 3.1.6
905
+ * @version 3.1.9
906
906
  * @author Yusuke Kamiyamane
907
907
  * @license MIT
908
908
  * @copyright Copyright (c) Yusuke Kamiyamane
@@ -851,7 +851,7 @@ function waitAnimationFinish(animation) {
851
851
  * Accordion
852
852
  * WAI-ARIA compliant accordion pattern implementation in TypeScript.
853
853
  *
854
- * @version 2.0.2
854
+ * @version 2.0.3
855
855
  * @author Yusuke Kamiyamane
856
856
  * @license MIT
857
857
  * @copyright Copyright (c) Yusuke Kamiyamane
@@ -876,7 +876,7 @@ power-focusable/dist/index.js:
876
876
  * High-precision focus management utility with full composed tree support.
877
877
  * Handles complex focus rules including tabindex ordering, radio groups, inert.
878
878
  *
879
- * @version 4.3.8
879
+ * @version 4.3.10
880
880
  * @author Yusuke Kamiyamane
881
881
  * @license MIT
882
882
  * @copyright Copyright (c) Yusuke Kamiyamane
@@ -900,7 +900,7 @@ power-focusable/dist/index.js:
900
900
  * Lightweight roving tabindex utility with fully focus management.
901
901
  * Designed for accessible menus, tabs, toolbars, and composite widgets.
902
902
  *
903
- * @version 3.1.6
903
+ * @version 3.1.9
904
904
  * @author Yusuke Kamiyamane
905
905
  * @license MIT
906
906
  * @copyright Copyright (c) Yusuke Kamiyamane
package/dist/index.cjs CHANGED
@@ -282,7 +282,7 @@ function waitAnimationFinish(animation) {
282
282
  * Accordion
283
283
  * WAI-ARIA compliant accordion pattern implementation in TypeScript.
284
284
  *
285
- * @version 2.0.2
285
+ * @version 2.0.3
286
286
  * @author Yusuke Kamiyamane
287
287
  * @license MIT
288
288
  * @copyright Copyright (c) Yusuke Kamiyamane
package/dist/index.d.cts CHANGED
@@ -2,27 +2,27 @@
2
2
  * Accordion
3
3
  * WAI-ARIA compliant accordion pattern implementation in TypeScript.
4
4
  *
5
- * @version 2.0.2
5
+ * @version 2.0.3
6
6
  * @author Yusuke Kamiyamane
7
7
  * @license MIT
8
8
  * @copyright Copyright (c) Yusuke Kamiyamane
9
9
  * @see {@link https://github.com/y14e/accordion}
10
10
  */
11
11
  interface AccordionOptions {
12
- readonly animation?: {
13
- readonly duration?: number;
14
- readonly easing?: string;
12
+ animation: {
13
+ duration: number;
14
+ easing: string;
15
15
  };
16
- readonly collapsible?: boolean;
17
- readonly selector?: {
18
- readonly content?: string;
19
- readonly trigger?: string;
16
+ collapsible: boolean;
17
+ selector: {
18
+ content: string;
19
+ trigger: string;
20
20
  };
21
21
  }
22
22
  declare class Accordion {
23
23
  #private;
24
- static defaults: AccordionOptions;
25
- constructor(root: HTMLElement, options?: AccordionOptions);
24
+ static defaults: Partial<AccordionOptions>;
25
+ constructor(root: HTMLElement, options?: Partial<AccordionOptions>);
26
26
  collapse(trigger: HTMLElement): void;
27
27
  destroy(force?: boolean): Promise<void>;
28
28
  expand(trigger: HTMLElement): void;
package/dist/index.d.ts CHANGED
@@ -2,27 +2,27 @@
2
2
  * Accordion
3
3
  * WAI-ARIA compliant accordion pattern implementation in TypeScript.
4
4
  *
5
- * @version 2.0.2
5
+ * @version 2.0.3
6
6
  * @author Yusuke Kamiyamane
7
7
  * @license MIT
8
8
  * @copyright Copyright (c) Yusuke Kamiyamane
9
9
  * @see {@link https://github.com/y14e/accordion}
10
10
  */
11
11
  interface AccordionOptions {
12
- readonly animation?: {
13
- readonly duration?: number;
14
- readonly easing?: string;
12
+ animation: {
13
+ duration: number;
14
+ easing: string;
15
15
  };
16
- readonly collapsible?: boolean;
17
- readonly selector?: {
18
- readonly content?: string;
19
- readonly trigger?: string;
16
+ collapsible: boolean;
17
+ selector: {
18
+ content: string;
19
+ trigger: string;
20
20
  };
21
21
  }
22
22
  declare class Accordion {
23
23
  #private;
24
- static defaults: AccordionOptions;
25
- constructor(root: HTMLElement, options?: AccordionOptions);
24
+ static defaults: Partial<AccordionOptions>;
25
+ constructor(root: HTMLElement, options?: Partial<AccordionOptions>);
26
26
  collapse(trigger: HTMLElement): void;
27
27
  destroy(force?: boolean): Promise<void>;
28
28
  expand(trigger: HTMLElement): void;
package/dist/index.js CHANGED
@@ -276,7 +276,7 @@ function waitAnimationFinish(animation) {
276
276
  * Accordion
277
277
  * WAI-ARIA compliant accordion pattern implementation in TypeScript.
278
278
  *
279
- * @version 2.0.2
279
+ * @version 2.0.3
280
280
  * @author Yusuke Kamiyamane
281
281
  * @license MIT
282
282
  * @copyright Copyright (c) Yusuke Kamiyamane
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@y14e/accordion",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "WAI-ARIA compliant accordion pattern implementation in TypeScript",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -45,8 +45,7 @@
45
45
  "devDependencies": {
46
46
  "bun-types": "latest",
47
47
  "tsup": "^8.0.0",
48
- "typescript": "^5.6.0",
49
- "utility-types": "^3.11.0"
48
+ "typescript": "^5.6.0"
50
49
  },
51
50
  "engines": {
52
51
  "node": ">=18"
@@ -54,6 +53,6 @@
54
53
  "dependencies": {
55
54
  "@y14e/attributes-utils": "^1.1.3",
56
55
  "@y14e/button": "^1.0.6",
57
- "@y14e/roving-tabindex": "^3.1.6"
56
+ "@y14e/roving-tabindex": "^3.1.9"
58
57
  }
59
58
  }