@y14e/path-bar 1.0.0
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/LICENSE +21 -0
- package/README.md +89 -0
- package/dist/index.cjs +4566 -0
- package/dist/index.d.cts +43 -0
- package/dist/index.d.ts +43 -0
- package/dist/index.js +4559 -0
- package/package.json +57 -0
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Middleware, Placement } from '@floating-ui/dom';
|
|
2
|
+
export { flip, offset, shift } from '@y14e/menu';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Path Bar
|
|
6
|
+
* Breadcrumb-style path bar implementation in TypeScript.
|
|
7
|
+
* Supports keyboard navigation, integrated menus, and seamless menu traversal.
|
|
8
|
+
*
|
|
9
|
+
* @version 1.0.0
|
|
10
|
+
* @author Yusuke Kamiyamane
|
|
11
|
+
* @license MIT
|
|
12
|
+
* @copyright Copyright (c) Yusuke Kamiyamane
|
|
13
|
+
* @see {@link https://github.com/y14e/path-bar}
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
interface PathBarOptions {
|
|
17
|
+
readonly animation?: {
|
|
18
|
+
readonly duration?: number;
|
|
19
|
+
};
|
|
20
|
+
readonly popover?: PathBarPopoverOptions;
|
|
21
|
+
readonly selector?: {
|
|
22
|
+
readonly item?: string;
|
|
23
|
+
readonly list?: string;
|
|
24
|
+
readonly menu?: {
|
|
25
|
+
readonly item?: string;
|
|
26
|
+
readonly list?: string;
|
|
27
|
+
readonly trigger?: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
interface PathBarPopoverOptions {
|
|
32
|
+
readonly arrow?: boolean;
|
|
33
|
+
readonly middleware?: Middleware[];
|
|
34
|
+
readonly placement?: Placement | string;
|
|
35
|
+
}
|
|
36
|
+
declare class PathBar {
|
|
37
|
+
#private;
|
|
38
|
+
static defaults: PathBarOptions;
|
|
39
|
+
constructor(root: HTMLElement, options?: PathBarOptions);
|
|
40
|
+
destroy(force?: boolean): Promise<void>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export { type PathBarOptions, type PathBarPopoverOptions, PathBar as default };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Middleware, Placement } from '@floating-ui/dom';
|
|
2
|
+
export { flip, offset, shift } from '@y14e/menu';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Path Bar
|
|
6
|
+
* Breadcrumb-style path bar implementation in TypeScript.
|
|
7
|
+
* Supports keyboard navigation, integrated menus, and seamless menu traversal.
|
|
8
|
+
*
|
|
9
|
+
* @version 1.0.0
|
|
10
|
+
* @author Yusuke Kamiyamane
|
|
11
|
+
* @license MIT
|
|
12
|
+
* @copyright Copyright (c) Yusuke Kamiyamane
|
|
13
|
+
* @see {@link https://github.com/y14e/path-bar}
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
interface PathBarOptions {
|
|
17
|
+
readonly animation?: {
|
|
18
|
+
readonly duration?: number;
|
|
19
|
+
};
|
|
20
|
+
readonly popover?: PathBarPopoverOptions;
|
|
21
|
+
readonly selector?: {
|
|
22
|
+
readonly item?: string;
|
|
23
|
+
readonly list?: string;
|
|
24
|
+
readonly menu?: {
|
|
25
|
+
readonly item?: string;
|
|
26
|
+
readonly list?: string;
|
|
27
|
+
readonly trigger?: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
interface PathBarPopoverOptions {
|
|
32
|
+
readonly arrow?: boolean;
|
|
33
|
+
readonly middleware?: Middleware[];
|
|
34
|
+
readonly placement?: Placement | string;
|
|
35
|
+
}
|
|
36
|
+
declare class PathBar {
|
|
37
|
+
#private;
|
|
38
|
+
static defaults: PathBarOptions;
|
|
39
|
+
constructor(root: HTMLElement, options?: PathBarOptions);
|
|
40
|
+
destroy(force?: boolean): Promise<void>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export { type PathBarOptions, type PathBarPopoverOptions, PathBar as default };
|