@apolitical/component-library 4.3.2 → 4.4.0-SW.1
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/index.js +42 -42
- package/index.mjs +6104 -6007
- package/layout/page-layout/components/header/components/header-link/header-link.d.ts +4 -2
- package/layout/page-layout/components/header/header.d.ts +6 -0
- package/layout/page-layout/components/header/header.data.d.ts +1 -0
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import { NAVIGATION_MENUS } from './../../header';
|
|
1
2
|
interface Props {
|
|
2
3
|
id: string;
|
|
3
4
|
isLoggedIn?: boolean;
|
|
4
5
|
isDesktopVersion?: boolean;
|
|
5
6
|
menus?: {
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
[NAVIGATION_MENUS.NAVIGATION]?: boolean;
|
|
8
|
+
[NAVIGATION_MENUS.SITE]?: boolean;
|
|
9
|
+
[NAVIGATION_MENUS.ACCOUNT]?: boolean;
|
|
8
10
|
};
|
|
9
11
|
callback?: (id: string, value: boolean) => void;
|
|
10
12
|
doTrack?: boolean | null;
|
|
@@ -2,5 +2,11 @@ interface Props {
|
|
|
2
2
|
/** If the navigation should be hidden, for pages where we need the user to focus on the content, like onboarding */
|
|
3
3
|
showNavigation?: boolean;
|
|
4
4
|
}
|
|
5
|
+
export declare enum NAVIGATION_MENUS {
|
|
6
|
+
NAVIGATION = "navigation",
|
|
7
|
+
SEARCH = "search",
|
|
8
|
+
ACCOUNT = "account-navigation",
|
|
9
|
+
SITE = "site-navigation"
|
|
10
|
+
}
|
|
5
11
|
declare const Header: ({ showNavigation }: Props) => import("react/jsx-runtime").JSX.Element | null;
|
|
6
12
|
export default Header;
|