@y14e/accordion 2.0.6 → 2.0.7
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 +5 -5
- package/dist/index.bundle.cjs +4 -4
- package/dist/index.bundle.js +4 -4
- package/dist/index.cjs +4 -7
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/package.json +6 -3
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";
|
|
13
|
+
import { Accordion } from "@y14e/accordion";
|
|
14
14
|
|
|
15
15
|
// CDNs
|
|
16
|
-
import Accordion from "https://esm.sh/@y14e/accordion@2.0.
|
|
16
|
+
import { Accordion } from "https://esm.sh/@y14e/accordion@2.0.7";
|
|
17
17
|
// or
|
|
18
|
-
import Accordion from "https://cdn.jsdelivr.net/npm/@y14e/accordion@2.0.
|
|
18
|
+
import { Accordion } from "https://cdn.jsdelivr.net/npm/@y14e/accordion@2.0.7/+esm";
|
|
19
19
|
// or
|
|
20
|
-
import Accordion from "https://esm.unpkg.com/@y14e/accordion@2.0.
|
|
20
|
+
import { Accordion } from "https://esm.unpkg.com/@y14e/accordion@2.0.7";
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
## Usage
|
|
@@ -51,7 +51,7 @@ interface AccordionOptions {
|
|
|
51
51
|
Override the global default settings applied to all accordion instances.
|
|
52
52
|
|
|
53
53
|
```ts
|
|
54
|
-
import Accordion from "@y14e/accordion";
|
|
54
|
+
import { Accordion } from "@y14e/accordion";
|
|
55
55
|
|
|
56
56
|
Accordion.defaults = {
|
|
57
57
|
animation: {
|
package/dist/index.bundle.cjs
CHANGED
|
@@ -917,7 +917,7 @@ function waitAnimationFinish(animation) {
|
|
|
917
917
|
* Accordion
|
|
918
918
|
* WAI-ARIA compliant accordion pattern implementation in TypeScript.
|
|
919
919
|
*
|
|
920
|
-
* @version 2.0.
|
|
920
|
+
* @version 2.0.7
|
|
921
921
|
* @author Yusuke Kamiyamane
|
|
922
922
|
* @license MIT
|
|
923
923
|
* @copyright Copyright (c) Yusuke Kamiyamane
|
|
@@ -929,7 +929,7 @@ function waitAnimationFinish(animation) {
|
|
|
929
929
|
(**
|
|
930
930
|
* Attribute Util
|
|
931
931
|
*
|
|
932
|
-
* @version 2.0.
|
|
932
|
+
* @version 2.0.2
|
|
933
933
|
* @author Yusuke Kamiyamane
|
|
934
934
|
* @license MIT
|
|
935
935
|
* @copyright Copyright (c) Yusuke Kamiyamane
|
|
@@ -953,7 +953,7 @@ power-focusable/dist/index.js:
|
|
|
953
953
|
(**
|
|
954
954
|
* Button
|
|
955
955
|
*
|
|
956
|
-
* @version 1.0.
|
|
956
|
+
* @version 1.0.8
|
|
957
957
|
* @author Yusuke Kamiyamane
|
|
958
958
|
* @license MIT
|
|
959
959
|
* @copyright Copyright (c) Yusuke Kamiyamane
|
|
@@ -974,4 +974,4 @@ power-focusable/dist/index.js:
|
|
|
974
974
|
*)
|
|
975
975
|
*/
|
|
976
976
|
|
|
977
|
-
|
|
977
|
+
exports.Accordion = Accordion;
|
package/dist/index.bundle.js
CHANGED
|
@@ -915,7 +915,7 @@ function waitAnimationFinish(animation) {
|
|
|
915
915
|
* Accordion
|
|
916
916
|
* WAI-ARIA compliant accordion pattern implementation in TypeScript.
|
|
917
917
|
*
|
|
918
|
-
* @version 2.0.
|
|
918
|
+
* @version 2.0.7
|
|
919
919
|
* @author Yusuke Kamiyamane
|
|
920
920
|
* @license MIT
|
|
921
921
|
* @copyright Copyright (c) Yusuke Kamiyamane
|
|
@@ -927,7 +927,7 @@ function waitAnimationFinish(animation) {
|
|
|
927
927
|
(**
|
|
928
928
|
* Attribute Util
|
|
929
929
|
*
|
|
930
|
-
* @version 2.0.
|
|
930
|
+
* @version 2.0.2
|
|
931
931
|
* @author Yusuke Kamiyamane
|
|
932
932
|
* @license MIT
|
|
933
933
|
* @copyright Copyright (c) Yusuke Kamiyamane
|
|
@@ -951,7 +951,7 @@ power-focusable/dist/index.js:
|
|
|
951
951
|
(**
|
|
952
952
|
* Button
|
|
953
953
|
*
|
|
954
|
-
* @version 1.0.
|
|
954
|
+
* @version 1.0.8
|
|
955
955
|
* @author Yusuke Kamiyamane
|
|
956
956
|
* @license MIT
|
|
957
957
|
* @copyright Copyright (c) Yusuke Kamiyamane
|
|
@@ -972,4 +972,4 @@ power-focusable/dist/index.js:
|
|
|
972
972
|
*)
|
|
973
973
|
*/
|
|
974
974
|
|
|
975
|
-
export { Accordion
|
|
975
|
+
export { Accordion };
|
package/dist/index.cjs
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var util = require('@y14e/attribute-util');
|
|
4
|
-
var
|
|
4
|
+
var button = require('@y14e/button');
|
|
5
5
|
var rovingTabindex = require('@y14e/roving-tabindex');
|
|
6
6
|
|
|
7
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
8
|
-
|
|
9
7
|
function _interopNamespace(e) {
|
|
10
8
|
if (e && e.__esModule) return e;
|
|
11
9
|
var n = Object.create(null);
|
|
@@ -25,7 +23,6 @@ function _interopNamespace(e) {
|
|
|
25
23
|
}
|
|
26
24
|
|
|
27
25
|
var util__namespace = /*#__PURE__*/_interopNamespace(util);
|
|
28
|
-
var Button__default = /*#__PURE__*/_interopDefault(Button);
|
|
29
26
|
|
|
30
27
|
// src/index.ts
|
|
31
28
|
var Accordion = class _Accordion {
|
|
@@ -178,7 +175,7 @@ var Accordion = class _Accordion {
|
|
|
178
175
|
content2.addEventListener("beforematch", this.#onContentBeforeMatch, {
|
|
179
176
|
signal
|
|
180
177
|
});
|
|
181
|
-
this.#buttons.push(new
|
|
178
|
+
this.#buttons.push(new button.Button(trigger2));
|
|
182
179
|
});
|
|
183
180
|
const { trigger, content } = this.#settings.selector;
|
|
184
181
|
this.#cleanupRovingTabIndex = rovingTabindex.createRovingTabIndex(this.#rootElement, {
|
|
@@ -308,11 +305,11 @@ function waitAnimationFinish(animation) {
|
|
|
308
305
|
* Accordion
|
|
309
306
|
* WAI-ARIA compliant accordion pattern implementation in TypeScript.
|
|
310
307
|
*
|
|
311
|
-
* @version 2.0.
|
|
308
|
+
* @version 2.0.7
|
|
312
309
|
* @author Yusuke Kamiyamane
|
|
313
310
|
* @license MIT
|
|
314
311
|
* @copyright Copyright (c) Yusuke Kamiyamane
|
|
315
312
|
* @see {@link https://github.com/y14e/accordion}
|
|
316
313
|
*/
|
|
317
314
|
|
|
318
|
-
|
|
315
|
+
exports.Accordion = Accordion;
|
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 2.0.
|
|
5
|
+
* @version 2.0.7
|
|
6
6
|
* @author Yusuke Kamiyamane
|
|
7
7
|
* @license MIT
|
|
8
8
|
* @copyright Copyright (c) Yusuke Kamiyamane
|
|
@@ -28,4 +28,4 @@ declare class Accordion {
|
|
|
28
28
|
expand(trigger: HTMLElement): void;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
export { type AccordionOptions
|
|
31
|
+
export { Accordion, type AccordionOptions };
|
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 2.0.
|
|
5
|
+
* @version 2.0.7
|
|
6
6
|
* @author Yusuke Kamiyamane
|
|
7
7
|
* @license MIT
|
|
8
8
|
* @copyright Copyright (c) Yusuke Kamiyamane
|
|
@@ -28,4 +28,4 @@ declare class Accordion {
|
|
|
28
28
|
expand(trigger: HTMLElement): void;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
export { type AccordionOptions
|
|
31
|
+
export { Accordion, type AccordionOptions };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as util from '@y14e/attribute-util';
|
|
2
|
-
import Button from '@y14e/button';
|
|
2
|
+
import { Button } from '@y14e/button';
|
|
3
3
|
import { createRovingTabIndex } from '@y14e/roving-tabindex';
|
|
4
4
|
|
|
5
5
|
// src/index.ts
|
|
@@ -283,11 +283,11 @@ function waitAnimationFinish(animation) {
|
|
|
283
283
|
* Accordion
|
|
284
284
|
* WAI-ARIA compliant accordion pattern implementation in TypeScript.
|
|
285
285
|
*
|
|
286
|
-
* @version 2.0.
|
|
286
|
+
* @version 2.0.7
|
|
287
287
|
* @author Yusuke Kamiyamane
|
|
288
288
|
* @license MIT
|
|
289
289
|
* @copyright Copyright (c) Yusuke Kamiyamane
|
|
290
290
|
* @see {@link https://github.com/y14e/accordion}
|
|
291
291
|
*/
|
|
292
292
|
|
|
293
|
-
export { Accordion
|
|
293
|
+
export { Accordion };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@y14e/accordion",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.7",
|
|
4
4
|
"description": "WAI-ARIA compliant accordion pattern implementation in TypeScript",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -50,9 +50,12 @@
|
|
|
50
50
|
"engines": {
|
|
51
51
|
"node": ">=18"
|
|
52
52
|
},
|
|
53
|
+
"allowScripts": {
|
|
54
|
+
"esbuild": true
|
|
55
|
+
},
|
|
53
56
|
"dependencies": {
|
|
54
|
-
"@y14e/attribute-util": "^2.0.
|
|
55
|
-
"@y14e/button": "^1.0.
|
|
57
|
+
"@y14e/attribute-util": "^2.0.2",
|
|
58
|
+
"@y14e/button": "^1.0.8",
|
|
56
59
|
"@y14e/roving-tabindex": "^3.1.22"
|
|
57
60
|
}
|
|
58
61
|
}
|