@eintrek/erp-shell 0.1.49 → 0.1.50
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.
|
@@ -29,6 +29,8 @@ export interface AppSidebarProps {
|
|
|
29
29
|
bottom?: React.ReactNode;
|
|
30
30
|
/** Which look — match the `chrome` given to AppLayoutShell. */
|
|
31
31
|
chrome?: ShellChrome;
|
|
32
|
+
/** See NavMain: light a one-line item while its module is active. */
|
|
33
|
+
highlightActiveModule?: boolean;
|
|
32
34
|
className?: string;
|
|
33
35
|
}
|
|
34
|
-
export declare function AppSidebar({ modules, tools, activeModule, orgCode, approvalCounts, closeOnNavigation, header, footer, bottom, chrome, className, }: AppSidebarProps): import("react/jsx-runtime").JSX.Element | null;
|
|
36
|
+
export declare function AppSidebar({ modules, tools, activeModule, orgCode, approvalCounts, closeOnNavigation, highlightActiveModule, header, footer, bottom, chrome, className, }: AppSidebarProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -17,5 +17,11 @@ export interface NavMainProps {
|
|
|
17
17
|
approvalCounts?: Record<string, number>;
|
|
18
18
|
/** Workspace chrome draws icons, group headings and badges. */
|
|
19
19
|
chrome?: ShellChrome;
|
|
20
|
+
/**
|
|
21
|
+
* Light a one-line item (no sub-items) whenever it is the active module —
|
|
22
|
+
* `item.isActive` — not only on its own URL. For an app whose module pages
|
|
23
|
+
* are tabs on the page rather than sub-items here.
|
|
24
|
+
*/
|
|
25
|
+
highlightActiveModule?: boolean;
|
|
20
26
|
}
|
|
21
|
-
export declare function NavMain({ items, orgCode, closeOnNavigation, approvalCounts, chrome, }: NavMainProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export declare function NavMain({ items, orgCode, closeOnNavigation, approvalCounts, chrome, highlightActiveModule, }: NavMainProps): import("react/jsx-runtime").JSX.Element;
|