@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.
@@ -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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blateral/b.kit",
3
- "version": "2.0.0-beta.7.1",
3
+ "version": "2.0.0-beta.7.2",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.es.js",