@y14e/disclosure-css 2.0.1 → 2.0.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/README.md +4 -4
- package/dist/index.bundle.cjs +3 -3
- package/dist/index.bundle.js +3 -3
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1 -1
- package/package.json +3 -4
package/README.md
CHANGED
|
@@ -13,11 +13,11 @@ npm i @y14e/disclosure-css
|
|
|
13
13
|
import Disclosure from '@y14e/disclosure-css';
|
|
14
14
|
|
|
15
15
|
// CDNs
|
|
16
|
-
import Disclosure from 'https://esm.sh/@y14e/disclosure-css@2.0.
|
|
16
|
+
import Disclosure from 'https://esm.sh/@y14e/disclosure-css@2.0.2';
|
|
17
17
|
// or
|
|
18
|
-
import Disclosure from 'https://cdn.jsdelivr.net/npm/@y14e/disclosure-css@2.0.
|
|
18
|
+
import Disclosure from 'https://cdn.jsdelivr.net/npm/@y14e/disclosure-css@2.0.2/+esm';
|
|
19
19
|
// or
|
|
20
|
-
import Disclosure from 'https://esm.unpkg.com/@y14e/disclosure-css@2.0.
|
|
20
|
+
import Disclosure from 'https://esm.unpkg.com/@y14e/disclosure-css@2.0.2';
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
## Usage
|
|
@@ -34,7 +34,7 @@ new Disclosure(root, options);
|
|
|
34
34
|
|
|
35
35
|
```ts
|
|
36
36
|
interface DisclosureOptions {
|
|
37
|
-
collapsible
|
|
37
|
+
collapsible: boolean; // default: true
|
|
38
38
|
}
|
|
39
39
|
```
|
|
40
40
|
|
package/dist/index.bundle.cjs
CHANGED
|
@@ -691,7 +691,7 @@ var Disclosure = class _Disclosure {
|
|
|
691
691
|
* WAI-ARIA compliant disclosure pattern implementation in TypeScript.
|
|
692
692
|
* Using the <details> and <summary> element.
|
|
693
693
|
*
|
|
694
|
-
* @version 2.0.
|
|
694
|
+
* @version 2.0.2
|
|
695
695
|
* @author Yusuke Kamiyamane
|
|
696
696
|
* @license MIT
|
|
697
697
|
* @copyright Copyright (c) Yusuke Kamiyamane
|
|
@@ -716,7 +716,7 @@ power-focusable/dist/index.js:
|
|
|
716
716
|
* High-precision focus management utility with full composed tree support.
|
|
717
717
|
* Handles complex focus rules including tabindex ordering, radio groups, inert.
|
|
718
718
|
*
|
|
719
|
-
* @version 4.3.
|
|
719
|
+
* @version 4.3.10
|
|
720
720
|
* @author Yusuke Kamiyamane
|
|
721
721
|
* @license MIT
|
|
722
722
|
* @copyright Copyright (c) Yusuke Kamiyamane
|
|
@@ -729,7 +729,7 @@ power-focusable/dist/index.js:
|
|
|
729
729
|
* Lightweight roving tabindex utility with fully focus management.
|
|
730
730
|
* Designed for accessible menus, tabs, toolbars, and composite widgets.
|
|
731
731
|
*
|
|
732
|
-
* @version 3.1.
|
|
732
|
+
* @version 3.1.9
|
|
733
733
|
* @author Yusuke Kamiyamane
|
|
734
734
|
* @license MIT
|
|
735
735
|
* @copyright Copyright (c) Yusuke Kamiyamane
|
package/dist/index.bundle.js
CHANGED
|
@@ -689,7 +689,7 @@ var Disclosure = class _Disclosure {
|
|
|
689
689
|
* WAI-ARIA compliant disclosure pattern implementation in TypeScript.
|
|
690
690
|
* Using the <details> and <summary> element.
|
|
691
691
|
*
|
|
692
|
-
* @version 2.0.
|
|
692
|
+
* @version 2.0.2
|
|
693
693
|
* @author Yusuke Kamiyamane
|
|
694
694
|
* @license MIT
|
|
695
695
|
* @copyright Copyright (c) Yusuke Kamiyamane
|
|
@@ -714,7 +714,7 @@ power-focusable/dist/index.js:
|
|
|
714
714
|
* High-precision focus management utility with full composed tree support.
|
|
715
715
|
* Handles complex focus rules including tabindex ordering, radio groups, inert.
|
|
716
716
|
*
|
|
717
|
-
* @version 4.3.
|
|
717
|
+
* @version 4.3.10
|
|
718
718
|
* @author Yusuke Kamiyamane
|
|
719
719
|
* @license MIT
|
|
720
720
|
* @copyright Copyright (c) Yusuke Kamiyamane
|
|
@@ -727,7 +727,7 @@ power-focusable/dist/index.js:
|
|
|
727
727
|
* Lightweight roving tabindex utility with fully focus management.
|
|
728
728
|
* Designed for accessible menus, tabs, toolbars, and composite widgets.
|
|
729
729
|
*
|
|
730
|
-
* @version 3.1.
|
|
730
|
+
* @version 3.1.9
|
|
731
731
|
* @author Yusuke Kamiyamane
|
|
732
732
|
* @license MIT
|
|
733
733
|
* @copyright Copyright (c) Yusuke Kamiyamane
|
package/dist/index.cjs
CHANGED
|
@@ -164,7 +164,7 @@ var Disclosure = class _Disclosure {
|
|
|
164
164
|
* WAI-ARIA compliant disclosure pattern implementation in TypeScript.
|
|
165
165
|
* Using the <details> and <summary> element.
|
|
166
166
|
*
|
|
167
|
-
* @version 2.0.
|
|
167
|
+
* @version 2.0.2
|
|
168
168
|
* @author Yusuke Kamiyamane
|
|
169
169
|
* @license MIT
|
|
170
170
|
* @copyright Copyright (c) Yusuke Kamiyamane
|
package/dist/index.d.cts
CHANGED
|
@@ -3,19 +3,19 @@
|
|
|
3
3
|
* WAI-ARIA compliant disclosure pattern implementation in TypeScript.
|
|
4
4
|
* Using the <details> and <summary> element.
|
|
5
5
|
*
|
|
6
|
-
* @version 2.0.
|
|
6
|
+
* @version 2.0.2
|
|
7
7
|
* @author Yusuke Kamiyamane
|
|
8
8
|
* @license MIT
|
|
9
9
|
* @copyright Copyright (c) Yusuke Kamiyamane
|
|
10
10
|
* @see {@link https://github.com/y14e/disclosure-css}
|
|
11
11
|
*/
|
|
12
12
|
interface DisclosureOptions {
|
|
13
|
-
|
|
13
|
+
collapsible: boolean;
|
|
14
14
|
}
|
|
15
15
|
declare class Disclosure {
|
|
16
16
|
#private;
|
|
17
|
-
static defaults: DisclosureOptions
|
|
18
|
-
constructor(root: HTMLElement, options?: DisclosureOptions);
|
|
17
|
+
static defaults: Partial<DisclosureOptions>;
|
|
18
|
+
constructor(root: HTMLElement, options?: Partial<DisclosureOptions>);
|
|
19
19
|
collapse(details: HTMLDetailsElement): void;
|
|
20
20
|
destroy(): void;
|
|
21
21
|
expand(details: HTMLDetailsElement): void;
|
package/dist/index.d.ts
CHANGED
|
@@ -3,19 +3,19 @@
|
|
|
3
3
|
* WAI-ARIA compliant disclosure pattern implementation in TypeScript.
|
|
4
4
|
* Using the <details> and <summary> element.
|
|
5
5
|
*
|
|
6
|
-
* @version 2.0.
|
|
6
|
+
* @version 2.0.2
|
|
7
7
|
* @author Yusuke Kamiyamane
|
|
8
8
|
* @license MIT
|
|
9
9
|
* @copyright Copyright (c) Yusuke Kamiyamane
|
|
10
10
|
* @see {@link https://github.com/y14e/disclosure-css}
|
|
11
11
|
*/
|
|
12
12
|
interface DisclosureOptions {
|
|
13
|
-
|
|
13
|
+
collapsible: boolean;
|
|
14
14
|
}
|
|
15
15
|
declare class Disclosure {
|
|
16
16
|
#private;
|
|
17
|
-
static defaults: DisclosureOptions
|
|
18
|
-
constructor(root: HTMLElement, options?: DisclosureOptions);
|
|
17
|
+
static defaults: Partial<DisclosureOptions>;
|
|
18
|
+
constructor(root: HTMLElement, options?: Partial<DisclosureOptions>);
|
|
19
19
|
collapse(details: HTMLDetailsElement): void;
|
|
20
20
|
destroy(): void;
|
|
21
21
|
expand(details: HTMLDetailsElement): void;
|
package/dist/index.js
CHANGED
|
@@ -162,7 +162,7 @@ var Disclosure = class _Disclosure {
|
|
|
162
162
|
* WAI-ARIA compliant disclosure pattern implementation in TypeScript.
|
|
163
163
|
* Using the <details> and <summary> element.
|
|
164
164
|
*
|
|
165
|
-
* @version 2.0.
|
|
165
|
+
* @version 2.0.2
|
|
166
166
|
* @author Yusuke Kamiyamane
|
|
167
167
|
* @license MIT
|
|
168
168
|
* @copyright Copyright (c) Yusuke Kamiyamane
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@y14e/disclosure-css",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "WAI-ARIA compliant disclosure pattern implementation in TypeScript",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -45,14 +45,13 @@
|
|
|
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"
|
|
53
52
|
},
|
|
54
53
|
"dependencies": {
|
|
55
54
|
"@y14e/attributes-utils": "^1.1.3",
|
|
56
|
-
"@y14e/roving-tabindex": "^3.1.
|
|
55
|
+
"@y14e/roving-tabindex": "^3.1.9"
|
|
57
56
|
}
|
|
58
57
|
}
|