@blateral/b.kit 2.0.0-beta.7.1 → 2.0.0-beta.7.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/lib/components/sections/navigation/menu/Menu.d.ts +0 -5
- package/lib/components/sections/navigation/menu/Menu.d.ts.map +1 -1
- package/lib/components/sections/navigation/menu/variations/MenuFlyout.d.ts.map +1 -1
- package/lib/components/sections/navigation/skeletons/BarBreadCrumbs.d.ts +0 -1
- package/lib/components/sections/navigation/skeletons/BarBreadCrumbs.d.ts.map +1 -1
- package/lib/components/sections/navigation/skeletons/Skeletons.d.ts +0 -3
- package/lib/components/sections/navigation/skeletons/Skeletons.d.ts.map +1 -1
- package/lib/index.d.ts +3 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.es.js +1 -1
- package/lib/index.es.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/utils/navigation.d.ts +20 -0
- package/lib/utils/navigation.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { NavItem } from "../components/sections/navigation/menu/Menu";
|
|
2
|
+
/**
|
|
3
|
+
* Get current navigation item
|
|
4
|
+
* @param items Array of navItems
|
|
5
|
+
* @param includeHidden Include items that are hidden for menu
|
|
6
|
+
* @returns The current navItem
|
|
7
|
+
*/
|
|
8
|
+
export declare const getCurrentNavItem: (items?: NavItem[] | undefined, includeHidden?: boolean | undefined) => {
|
|
9
|
+
current: NavItem;
|
|
10
|
+
root: NavItem;
|
|
11
|
+
rootIndex: number;
|
|
12
|
+
} | null;
|
|
13
|
+
/**
|
|
14
|
+
* Get naviation item path to current navItem
|
|
15
|
+
* @param items Navigation array with navItems
|
|
16
|
+
* @param exludeHrefs navItems with specific hrefs that should be excluded
|
|
17
|
+
* @returns Array of NavItems
|
|
18
|
+
*/
|
|
19
|
+
export declare const getCurrentNavPath: (items?: NavItem[] | undefined, exludeHrefs?: string[] | undefined) => NavItem[];
|
|
20
|
+
//# sourceMappingURL=navigation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../src/utils/navigation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,oDAAiD;AAEnE;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB;;;;QA+B7B,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,kFA6B7B,CAAC"}
|