@y14e/menu 1.5.1 → 1.5.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 CHANGED
@@ -10,16 +10,16 @@ npm i @y14e/menu
10
10
 
11
11
  ```ts
12
12
  // npm
13
- import Menu from '@y14e/menu@1.5.1';
13
+ import Menu from '@y14e/menu@1.5.2';
14
14
  // with middleware
15
- import Menu, { flip, offset, shift } from '@y14e/menu@1.5.1';
15
+ import Menu, { flip, offset, shift } from '@y14e/menu@1.5.2';
16
16
 
17
17
  // CDNs
18
- import Menu from 'https://esm.sh/@y14e/menu@1.5.1';
18
+ import Menu from 'https://esm.sh/@y14e/menu@1.5.2';
19
19
  // or
20
- import Menu from 'https://cdn.jsdelivr.net/npm/@y14e/menu@1.5.1/+esm';
20
+ import Menu from 'https://cdn.jsdelivr.net/npm/@y14e/menu@1.5.2/+esm';
21
21
  // or
22
- import Menu from 'https://esm.unpkg.com/@y14e/menu@1.5.1';
22
+ import Menu from 'https://esm.unpkg.com/@y14e/menu@1.5.2';
23
23
  ```
24
24
 
25
25
  ## Usage
package/dist/index.cjs CHANGED
@@ -2919,7 +2919,7 @@ var Menu = class _Menu {
2919
2919
  }
2920
2920
  event.preventDefault();
2921
2921
  event.stopPropagation();
2922
- this.open(key === "ArrowDown" ? "first" : "last");
2922
+ this.open(key === "ArrowUp" ? "last" : "first");
2923
2923
  };
2924
2924
  #onListKeyDown = (event) => {
2925
2925
  const { shiftKey, key } = event;
@@ -3265,7 +3265,7 @@ function isFocusable3(element) {
3265
3265
  * WAI-ARIA compliant menu (menu button) pattern implementation in TypeScript.
3266
3266
  * Supports checkbox item, radio item, and infinitely nested menus.
3267
3267
  *
3268
- * @version 1.5.1
3268
+ * @version 1.5.2
3269
3269
  * @author Yusuke Kamiyamane
3270
3270
  * @license MIT
3271
3271
  * @copyright Copyright (c) Yusuke Kamiyamane
package/dist/index.d.cts CHANGED
@@ -6,7 +6,7 @@ export { flip, offset, shift } from '@floating-ui/dom';
6
6
  * WAI-ARIA compliant menu (menu button) pattern implementation in TypeScript.
7
7
  * Supports checkbox item, radio item, and infinitely nested menus.
8
8
  *
9
- * @version 1.5.1
9
+ * @version 1.5.2
10
10
  * @author Yusuke Kamiyamane
11
11
  * @license MIT
12
12
  * @copyright Copyright (c) Yusuke Kamiyamane
package/dist/index.d.ts CHANGED
@@ -6,7 +6,7 @@ export { flip, offset, shift } from '@floating-ui/dom';
6
6
  * WAI-ARIA compliant menu (menu button) pattern implementation in TypeScript.
7
7
  * Supports checkbox item, radio item, and infinitely nested menus.
8
8
  *
9
- * @version 1.5.1
9
+ * @version 1.5.2
10
10
  * @author Yusuke Kamiyamane
11
11
  * @license MIT
12
12
  * @copyright Copyright (c) Yusuke Kamiyamane
package/dist/index.js CHANGED
@@ -2915,7 +2915,7 @@ var Menu = class _Menu {
2915
2915
  }
2916
2916
  event.preventDefault();
2917
2917
  event.stopPropagation();
2918
- this.open(key === "ArrowDown" ? "first" : "last");
2918
+ this.open(key === "ArrowUp" ? "last" : "first");
2919
2919
  };
2920
2920
  #onListKeyDown = (event) => {
2921
2921
  const { shiftKey, key } = event;
@@ -3261,7 +3261,7 @@ function isFocusable3(element) {
3261
3261
  * WAI-ARIA compliant menu (menu button) pattern implementation in TypeScript.
3262
3262
  * Supports checkbox item, radio item, and infinitely nested menus.
3263
3263
  *
3264
- * @version 1.5.1
3264
+ * @version 1.5.2
3265
3265
  * @author Yusuke Kamiyamane
3266
3266
  * @license MIT
3267
3267
  * @copyright Copyright (c) Yusuke Kamiyamane
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@y14e/menu",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "description": "WAI-ARIA compliant menu (menu button) pattern implementation in TypeScript",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",