@y14e/disclosure-css 1.3.7 → 1.3.8

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/disclosure-css
10
10
 
11
11
  ```ts
12
12
  // npm
13
- import Disclosure from '@y14e/disclosure-css@1.3.7';
13
+ import Disclosure from '@y14e/disclosure-css@1.3.8';
14
14
 
15
15
  // CDNs
16
- import Disclosure from 'https://esm.sh/@y14e/disclosure-css@1.3.7';
16
+ import Disclosure from 'https://esm.sh/@y14e/disclosure-css@1.3.8';
17
17
  // or
18
- import Disclosure from 'https://cdn.jsdelivr.net/npm/@y14e/disclosure-css@1.3.7/+esm';
18
+ import Disclosure from 'https://cdn.jsdelivr.net/npm/@y14e/disclosure-css@1.3.8/+esm';
19
19
  // or
20
- import Disclosure from 'https://esm.unpkg.com/@y14e/disclosure-css@1.3.7';
20
+ import Disclosure from 'https://esm.unpkg.com/@y14e/disclosure-css@1.3.8';
21
21
  ```
22
22
 
23
23
  ## Usage
package/dist/index.cjs CHANGED
@@ -494,11 +494,11 @@ var RovingTabIndex = class {
494
494
  if (!typeahead) {
495
495
  continue;
496
496
  }
497
+ const char = focusable.textContent?.trim()?.at(0)?.toUpperCase();
497
498
  const value = focusable.ariaKeyShortcuts?.trim();
498
499
  const keys = new Set(
499
500
  value ? value.split(/\s+/).filter((key) => /^\S$/i.test(key)).map((key) => key.toUpperCase()) : []
500
501
  );
501
- const char = focusable.textContent?.trim()?.at(0)?.toUpperCase();
502
502
  if (char) {
503
503
  keys.add(char);
504
504
  saveAttributes2([focusable], ["aria-keyshortcuts"]);
@@ -676,7 +676,7 @@ function isFocusable2(element) {
676
676
  * WAI-ARIA compliant disclosure pattern implementation in TypeScript.
677
677
  * Using the <details> and <summary> element.
678
678
  *
679
- * @version 1.3.7
679
+ * @version 1.3.8
680
680
  * @author Yusuke Kamiyamane
681
681
  * @license MIT
682
682
  * @copyright Copyright (c) Yusuke Kamiyamane
@@ -701,7 +701,7 @@ function isFocusable2(element) {
701
701
  * Lightweight roving tabindex utility with fully focus management.
702
702
  * Designed for accessible menus, tabs, toolbars, and composite widgets.
703
703
  *
704
- * @version 3.0.2
704
+ * @version 3.0.5
705
705
  * @author Yusuke Kamiyamane
706
706
  * @license MIT
707
707
  * @copyright Copyright (c) Yusuke Kamiyamane
package/dist/index.d.cts CHANGED
@@ -3,7 +3,7 @@
3
3
  * WAI-ARIA compliant disclosure pattern implementation in TypeScript.
4
4
  * Using the <details> and <summary> element.
5
5
  *
6
- * @version 1.3.7
6
+ * @version 1.3.8
7
7
  * @author Yusuke Kamiyamane
8
8
  * @license MIT
9
9
  * @copyright Copyright (c) Yusuke Kamiyamane
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  * WAI-ARIA compliant disclosure pattern implementation in TypeScript.
4
4
  * Using the <details> and <summary> element.
5
5
  *
6
- * @version 1.3.7
6
+ * @version 1.3.8
7
7
  * @author Yusuke Kamiyamane
8
8
  * @license MIT
9
9
  * @copyright Copyright (c) Yusuke Kamiyamane
package/dist/index.js CHANGED
@@ -492,11 +492,11 @@ var RovingTabIndex = class {
492
492
  if (!typeahead) {
493
493
  continue;
494
494
  }
495
+ const char = focusable.textContent?.trim()?.at(0)?.toUpperCase();
495
496
  const value = focusable.ariaKeyShortcuts?.trim();
496
497
  const keys = new Set(
497
498
  value ? value.split(/\s+/).filter((key) => /^\S$/i.test(key)).map((key) => key.toUpperCase()) : []
498
499
  );
499
- const char = focusable.textContent?.trim()?.at(0)?.toUpperCase();
500
500
  if (char) {
501
501
  keys.add(char);
502
502
  saveAttributes2([focusable], ["aria-keyshortcuts"]);
@@ -674,7 +674,7 @@ function isFocusable2(element) {
674
674
  * WAI-ARIA compliant disclosure pattern implementation in TypeScript.
675
675
  * Using the <details> and <summary> element.
676
676
  *
677
- * @version 1.3.7
677
+ * @version 1.3.8
678
678
  * @author Yusuke Kamiyamane
679
679
  * @license MIT
680
680
  * @copyright Copyright (c) Yusuke Kamiyamane
@@ -699,7 +699,7 @@ function isFocusable2(element) {
699
699
  * Lightweight roving tabindex utility with fully focus management.
700
700
  * Designed for accessible menus, tabs, toolbars, and composite widgets.
701
701
  *
702
- * @version 3.0.2
702
+ * @version 3.0.5
703
703
  * @author Yusuke Kamiyamane
704
704
  * @license MIT
705
705
  * @copyright Copyright (c) Yusuke Kamiyamane
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@y14e/disclosure-css",
3
- "version": "1.3.7",
3
+ "version": "1.3.8",
4
4
  "description": "WAI-ARIA compliant disclosure pattern implementation in TypeScript",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -44,7 +44,7 @@
44
44
  "homepage": "https://github.com/y14e/disclosure-css#readme",
45
45
  "devDependencies": {
46
46
  "@y14e/attributes-utils": "^1.1.2",
47
- "@y14e/roving-tabindex": "^3.0.2",
47
+ "@y14e/roving-tabindex": "^3.0.5",
48
48
  "bun-types": "latest",
49
49
  "tsup": "^8.0.0",
50
50
  "typescript": "^5.6.0"