@y14e/menu 1.4.6 → 1.4.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 +6 -4
- package/dist/index.cjs +7 -2
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,14 +10,16 @@ npm i @y14e/menu
|
|
|
10
10
|
|
|
11
11
|
```ts
|
|
12
12
|
// npm
|
|
13
|
-
import Menu from '@y14e/menu@1.4.
|
|
13
|
+
import Menu from '@y14e/menu@1.4.7';
|
|
14
|
+
// with middleware
|
|
15
|
+
import Menu, { flip, offset, shift } from '@y14e/menu@1.4.7';
|
|
14
16
|
|
|
15
17
|
// CDNs
|
|
16
|
-
import Menu from 'https://esm.sh/@y14e/menu@1.4.
|
|
18
|
+
import Menu from 'https://esm.sh/@y14e/menu@1.4.7';
|
|
17
19
|
// or
|
|
18
|
-
import Menu from 'https://cdn.jsdelivr.net/npm/@y14e/menu@1.4.
|
|
20
|
+
import Menu from 'https://cdn.jsdelivr.net/npm/@y14e/menu@1.4.7/+esm';
|
|
19
21
|
// or
|
|
20
|
-
import Menu from 'https://esm.unpkg.com/@y14e/menu@1.4.
|
|
22
|
+
import Menu from 'https://esm.unpkg.com/@y14e/menu@1.4.7';
|
|
21
23
|
```
|
|
22
24
|
|
|
23
25
|
## Usage
|
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
3
5
|
// node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
4
6
|
var min = Math.min;
|
|
5
7
|
var max = Math.max;
|
|
@@ -3240,7 +3242,7 @@ function isFocusable3(element) {
|
|
|
3240
3242
|
* WAI-ARIA compliant menu (menu button) pattern implementation in TypeScript.
|
|
3241
3243
|
* Supports checkbox item, radio item, and infinitely nested menus.
|
|
3242
3244
|
*
|
|
3243
|
-
* @version 1.4.
|
|
3245
|
+
* @version 1.4.7
|
|
3244
3246
|
* @author Yusuke Kamiyamane
|
|
3245
3247
|
* @license MIT
|
|
3246
3248
|
* @copyright Copyright (c) Yusuke Kamiyamane
|
|
@@ -3349,4 +3351,7 @@ function isFocusable3(element) {
|
|
|
3349
3351
|
*)
|
|
3350
3352
|
*/
|
|
3351
3353
|
|
|
3352
|
-
|
|
3354
|
+
exports.default = Menu;
|
|
3355
|
+
exports.flip = flip2;
|
|
3356
|
+
exports.offset = offset2;
|
|
3357
|
+
exports.shift = shift2;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { Middleware, Placement } from '@floating-ui/dom';
|
|
2
|
+
export { flip, offset, shift } from '@floating-ui/dom';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* Menu
|
|
5
6
|
* WAI-ARIA compliant menu (menu button) pattern implementation in TypeScript.
|
|
6
7
|
* Supports checkbox item, radio item, and infinitely nested menus.
|
|
7
8
|
*
|
|
8
|
-
* @version 1.4.
|
|
9
|
+
* @version 1.4.7
|
|
9
10
|
* @author Yusuke Kamiyamane
|
|
10
11
|
* @license MIT
|
|
11
12
|
* @copyright Copyright (c) Yusuke Kamiyamane
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { Middleware, Placement } from '@floating-ui/dom';
|
|
2
|
+
export { flip, offset, shift } from '@floating-ui/dom';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* Menu
|
|
5
6
|
* WAI-ARIA compliant menu (menu button) pattern implementation in TypeScript.
|
|
6
7
|
* Supports checkbox item, radio item, and infinitely nested menus.
|
|
7
8
|
*
|
|
8
|
-
* @version 1.4.
|
|
9
|
+
* @version 1.4.7
|
|
9
10
|
* @author Yusuke Kamiyamane
|
|
10
11
|
* @license MIT
|
|
11
12
|
* @copyright Copyright (c) Yusuke Kamiyamane
|
package/dist/index.js
CHANGED
|
@@ -3238,7 +3238,7 @@ function isFocusable3(element) {
|
|
|
3238
3238
|
* WAI-ARIA compliant menu (menu button) pattern implementation in TypeScript.
|
|
3239
3239
|
* Supports checkbox item, radio item, and infinitely nested menus.
|
|
3240
3240
|
*
|
|
3241
|
-
* @version 1.4.
|
|
3241
|
+
* @version 1.4.7
|
|
3242
3242
|
* @author Yusuke Kamiyamane
|
|
3243
3243
|
* @license MIT
|
|
3244
3244
|
* @copyright Copyright (c) Yusuke Kamiyamane
|
|
@@ -3347,4 +3347,4 @@ function isFocusable3(element) {
|
|
|
3347
3347
|
*)
|
|
3348
3348
|
*/
|
|
3349
3349
|
|
|
3350
|
-
export { Menu as default };
|
|
3350
|
+
export { Menu as default, flip2 as flip, offset2 as offset, shift2 as shift };
|