@npm_leadtech/legal-lib-components 7.12.1 → 7.12.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/dist/src/components/atoms/{MenuItemsDeprecated/MenuItemsDeprecatedProps.types.d.ts → MenuItems/MenuItemProps.types.d.ts} +1 -1
- package/dist/src/components/atoms/{MenuItemsDeprecated/MenuItemsDeprecatedProps.types.ts → MenuItems/MenuItemProps.types.ts} +1 -1
- package/dist/src/components/atoms/MenuItems/MenuItems.d.ts +4 -0
- package/dist/src/components/atoms/{MenuItemsDeprecated/MenuItemsDeprecated.js → MenuItems/MenuItems.js} +4 -4
- package/dist/src/components/{organisms → atoms}/MenuItems/MenuItems.styled.d.ts +1 -1
- package/dist/src/components/atoms/{MenuItemsDeprecated/MenuItemsDeprecated.styled.js → MenuItems/MenuItems.styled.js} +1 -1
- package/dist/src/components/atoms/{MenuItemsDeprecated/MenuItemsDeprecated.styled.ts → MenuItems/MenuItems.styled.ts} +1 -1
- package/dist/src/components/atoms/{MenuItemsDeprecated/MenuItemsDeprecated.tsx → MenuItems/MenuItems.tsx} +6 -12
- package/dist/src/components/atoms/MenuItems/index.d.ts +2 -0
- package/dist/src/components/atoms/MenuItems/index.js +1 -0
- package/dist/src/components/atoms/MenuItems/index.ts +2 -0
- package/dist/src/components/atoms/SearchSelect/SearchSelect.js +1 -1
- package/dist/src/components/atoms/SearchSelect/SearchSelect.tsx +1 -0
- package/dist/src/components/atoms/SidemenuTab/SidemenuTab.js +2 -2
- package/dist/src/components/atoms/SidemenuTab/SidemenuTab.tsx +2 -2
- package/dist/src/components/atoms/TopBar/TopBar.js +2 -8
- package/dist/src/components/atoms/TopBar/TopBar.styled.js +0 -47
- package/dist/src/components/atoms/TopBar/TopBar.styled.ts +0 -47
- package/dist/src/components/atoms/TopBar/TopBar.tsx +2 -9
- package/dist/src/components/atoms/TopBar/TopBarProps.types.d.ts +0 -2
- package/dist/src/components/atoms/TopBar/TopBarProps.types.ts +0 -2
- package/dist/src/components/atoms/TopBarMobile/TopBarMobile.d.ts +7 -0
- package/dist/src/components/atoms/TopBarMobile/TopBarMobile.js +10 -0
- package/dist/src/components/atoms/TopBarMobile/TopBarMobile.styled.d.ts +1 -0
- package/dist/src/components/atoms/TopBarMobile/TopBarMobile.styled.js +49 -0
- package/dist/src/components/atoms/TopBarMobile/TopBarMobile.styled.ts +50 -0
- package/dist/src/components/atoms/TopBarMobile/TopBarMobile.tsx +22 -0
- package/dist/src/components/atoms/TopBarMobile/index.d.ts +1 -0
- package/dist/src/components/atoms/TopBarMobile/index.js +1 -0
- package/dist/src/components/atoms/TopBarMobile/index.ts +1 -0
- package/dist/src/components/atoms/index.d.ts +2 -2
- package/dist/src/components/atoms/index.js +2 -2
- package/dist/src/components/atoms/index.ts +2 -2
- package/dist/src/components/molecules/MenuItemsSection/MenuItemsSection.js +2 -2
- package/dist/src/components/molecules/MenuItemsSection/MenuItemsSection.tsx +2 -2
- package/dist/src/components/molecules/MenuItemsSection/MenuItemsSectionProps.types.d.ts +1 -1
- package/dist/src/components/molecules/MenuItemsSection/MenuItemsSectionProps.types.ts +1 -1
- package/dist/src/components/molecules/NavBarDropDown/NavBarDropDown.js +2 -2
- package/dist/src/components/molecules/NavBarDropDown/NavBarDropDown.tsx +2 -2
- package/dist/src/components/molecules/TooltipMenu/TooltipMenu.js +2 -2
- package/dist/src/components/molecules/TooltipMenu/TooltipMenu.tsx +2 -2
- package/dist/src/components/molecules/index.d.ts +0 -5
- package/dist/src/components/molecules/index.js +0 -5
- package/dist/src/components/molecules/index.ts +0 -5
- package/dist/src/components/organisms/index.d.ts +0 -4
- package/dist/src/components/organisms/index.js +0 -4
- package/dist/src/components/organisms/index.ts +0 -4
- package/dist/src/components/sections/index.d.ts +0 -1
- package/dist/src/components/sections/index.js +0 -1
- package/dist/src/components/sections/index.ts +0 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -2
- package/dist/images/componentsSvg/SearchIcon.d.ts +0 -4
- package/dist/images/componentsSvg/SearchIcon.js +0 -4
- package/dist/images/componentsSvg/SearchIcon.tsx +0 -26
- package/dist/images/svg/clear-24-px.svg +0 -14
- package/dist/images/svg/men.svg +0 -5
- package/dist/src/components/atoms/DropdownInput/DropdownInput.d.ts +0 -3
- package/dist/src/components/atoms/DropdownInput/DropdownInput.js +0 -24
- package/dist/src/components/atoms/DropdownInput/DropdownInput.styled.d.ts +0 -1
- package/dist/src/components/atoms/DropdownInput/DropdownInput.styled.js +0 -144
- package/dist/src/components/atoms/DropdownInput/DropdownInput.styled.ts +0 -146
- package/dist/src/components/atoms/DropdownInput/DropdownInput.tsx +0 -60
- package/dist/src/components/atoms/DropdownInput/DropdownInputProps.types.d.ts +0 -8
- package/dist/src/components/atoms/DropdownInput/DropdownInputProps.types.js +0 -2
- package/dist/src/components/atoms/DropdownInput/DropdownInputProps.types.ts +0 -10
- package/dist/src/components/atoms/DropdownInput/index.d.ts +0 -2
- package/dist/src/components/atoms/DropdownInput/index.js +0 -1
- package/dist/src/components/atoms/DropdownInput/index.ts +0 -2
- package/dist/src/components/atoms/MenuItemsDeprecated/MenuItemsDeprecated.d.ts +0 -4
- package/dist/src/components/atoms/MenuItemsDeprecated/MenuItemsDeprecated.styled.d.ts +0 -1
- package/dist/src/components/atoms/MenuItemsDeprecated/index.d.ts +0 -2
- package/dist/src/components/atoms/MenuItemsDeprecated/index.js +0 -1
- package/dist/src/components/atoms/MenuItemsDeprecated/index.ts +0 -2
- package/dist/src/components/molecules/AllTypeDocumentsItemMenu/AllTypeDocumentsItemMenu.d.ts +0 -3
- package/dist/src/components/molecules/AllTypeDocumentsItemMenu/AllTypeDocumentsItemMenu.js +0 -6
- package/dist/src/components/molecules/AllTypeDocumentsItemMenu/AllTypeDocumentsItemMenu.styled.d.ts +0 -1
- package/dist/src/components/molecules/AllTypeDocumentsItemMenu/AllTypeDocumentsItemMenu.styled.js +0 -18
- package/dist/src/components/molecules/AllTypeDocumentsItemMenu/AllTypeDocumentsItemMenu.styled.ts +0 -19
- package/dist/src/components/molecules/AllTypeDocumentsItemMenu/AllTypeDocumentsItemMenu.tsx +0 -22
- package/dist/src/components/molecules/AllTypeDocumentsItemMenu/AllTypeDocumentsItemMenuProps.types.d.ts +0 -8
- package/dist/src/components/molecules/AllTypeDocumentsItemMenu/AllTypeDocumentsItemMenuProps.types.js +0 -1
- package/dist/src/components/molecules/AllTypeDocumentsItemMenu/AllTypeDocumentsItemMenuProps.types.ts +0 -9
- package/dist/src/components/molecules/AllTypeDocumentsItemMenu/index.d.ts +0 -2
- package/dist/src/components/molecules/AllTypeDocumentsItemMenu/index.js +0 -1
- package/dist/src/components/molecules/AllTypeDocumentsItemMenu/index.ts +0 -2
- package/dist/src/components/molecules/DocumentListMenuSection/DocumentListMenuSection.d.ts +0 -3
- package/dist/src/components/molecules/DocumentListMenuSection/DocumentListMenuSection.js +0 -7
- package/dist/src/components/molecules/DocumentListMenuSection/DocumentListMenuSection.styled.d.ts +0 -1
- package/dist/src/components/molecules/DocumentListMenuSection/DocumentListMenuSection.styled.js +0 -20
- package/dist/src/components/molecules/DocumentListMenuSection/DocumentListMenuSection.styled.ts +0 -21
- package/dist/src/components/molecules/DocumentListMenuSection/DocumentListMenuSection.tsx +0 -35
- package/dist/src/components/molecules/DocumentListMenuSection/DocumentListMenuSectionProps.types.d.ts +0 -16
- package/dist/src/components/molecules/DocumentListMenuSection/DocumentListMenuSectionProps.types.js +0 -1
- package/dist/src/components/molecules/DocumentListMenuSection/DocumentListMenuSectionProps.types.ts +0 -18
- package/dist/src/components/molecules/DocumentListMenuSection/index.d.ts +0 -2
- package/dist/src/components/molecules/DocumentListMenuSection/index.js +0 -1
- package/dist/src/components/molecules/DocumentListMenuSection/index.ts +0 -2
- package/dist/src/components/molecules/MenuSectionTitle/MenuSectionTitle.d.ts +0 -3
- package/dist/src/components/molecules/MenuSectionTitle/MenuSectionTitle.js +0 -5
- package/dist/src/components/molecules/MenuSectionTitle/MenuSectionTitle.styled.d.ts +0 -1
- package/dist/src/components/molecules/MenuSectionTitle/MenuSectionTitle.styled.js +0 -26
- package/dist/src/components/molecules/MenuSectionTitle/MenuSectionTitle.styled.ts +0 -27
- package/dist/src/components/molecules/MenuSectionTitle/MenuSectionTitle.tsx +0 -15
- package/dist/src/components/molecules/MenuSectionTitle/MenuSectionTitleProps.types.d.ts +0 -4
- package/dist/src/components/molecules/MenuSectionTitle/MenuSectionTitleProps.types.js +0 -1
- package/dist/src/components/molecules/MenuSectionTitle/MenuSectionTitleProps.types.ts +0 -4
- package/dist/src/components/molecules/MenuSectionTitle/index.d.ts +0 -2
- package/dist/src/components/molecules/MenuSectionTitle/index.js +0 -1
- package/dist/src/components/molecules/MenuSectionTitle/index.ts +0 -2
- package/dist/src/components/molecules/NavMobileContactBar/NavMobileContactBar.d.ts +0 -4
- package/dist/src/components/molecules/NavMobileContactBar/NavMobileContactBar.js +0 -7
- package/dist/src/components/molecules/NavMobileContactBar/NavMobileContactBar.styled.d.ts +0 -1
- package/dist/src/components/molecules/NavMobileContactBar/NavMobileContactBar.styled.js +0 -34
- package/dist/src/components/molecules/NavMobileContactBar/NavMobileContactBar.styled.ts +0 -35
- package/dist/src/components/molecules/NavMobileContactBar/NavMobileContactBar.tsx +0 -23
- package/dist/src/components/molecules/NavMobileContactBar/NavMobileContactBarProps.types.d.ts +0 -4
- package/dist/src/components/molecules/NavMobileContactBar/NavMobileContactBarProps.types.js +0 -1
- package/dist/src/components/molecules/NavMobileContactBar/NavMobileContactBarProps.types.ts +0 -4
- package/dist/src/components/molecules/NavMobileContactBar/index.d.ts +0 -2
- package/dist/src/components/molecules/NavMobileContactBar/index.js +0 -1
- package/dist/src/components/molecules/NavMobileContactBar/index.ts +0 -2
- package/dist/src/components/molecules/ProductListMenu/ProductListMenu.d.ts +0 -3
- package/dist/src/components/molecules/ProductListMenu/ProductListMenu.js +0 -5
- package/dist/src/components/molecules/ProductListMenu/ProductListMenu.styled.d.ts +0 -1
- package/dist/src/components/molecules/ProductListMenu/ProductListMenu.styled.js +0 -18
- package/dist/src/components/molecules/ProductListMenu/ProductListMenu.styled.ts +0 -19
- package/dist/src/components/molecules/ProductListMenu/ProductListMenu.tsx +0 -25
- package/dist/src/components/molecules/ProductListMenu/ProductListMenuProps.types.d.ts +0 -8
- package/dist/src/components/molecules/ProductListMenu/ProductListMenuProps.types.js +0 -1
- package/dist/src/components/molecules/ProductListMenu/ProductListMenuProps.types.ts +0 -9
- package/dist/src/components/molecules/ProductListMenu/index.d.ts +0 -2
- package/dist/src/components/molecules/ProductListMenu/index.js +0 -1
- package/dist/src/components/molecules/ProductListMenu/index.ts +0 -2
- package/dist/src/components/molecules/SearchBar/SearchBar.d.ts +0 -3
- package/dist/src/components/molecules/SearchBar/SearchBar.js +0 -33
- package/dist/src/components/molecules/SearchBar/SearchBar.styled.d.ts +0 -1
- package/dist/src/components/molecules/SearchBar/SearchBar.styled.js +0 -62
- package/dist/src/components/molecules/SearchBar/SearchBar.styled.ts +0 -63
- package/dist/src/components/molecules/SearchBar/SearchBar.tsx +0 -72
- package/dist/src/components/molecules/SearchBar/SearchBarProps.types.d.ts +0 -36
- package/dist/src/components/molecules/SearchBar/SearchBarProps.types.js +0 -1
- package/dist/src/components/molecules/SearchBar/SearchBarProps.types.ts +0 -40
- package/dist/src/components/molecules/SearchBar/index.d.ts +0 -2
- package/dist/src/components/molecules/SearchBar/index.js +0 -1
- package/dist/src/components/molecules/SearchBar/index.ts +0 -2
- package/dist/src/components/organisms/DocumentListMenu/DocumentListMenu.d.ts +0 -3
- package/dist/src/components/organisms/DocumentListMenu/DocumentListMenu.js +0 -7
- package/dist/src/components/organisms/DocumentListMenu/DocumentListMenu.styled.d.ts +0 -1
- package/dist/src/components/organisms/DocumentListMenu/DocumentListMenu.styled.js +0 -64
- package/dist/src/components/organisms/DocumentListMenu/DocumentListMenu.styled.ts +0 -65
- package/dist/src/components/organisms/DocumentListMenu/DocumentListMenu.tsx +0 -47
- package/dist/src/components/organisms/DocumentListMenu/DocumentListMenuProps.types.d.ts +0 -22
- package/dist/src/components/organisms/DocumentListMenu/DocumentListMenuProps.types.js +0 -1
- package/dist/src/components/organisms/DocumentListMenu/DocumentListMenuProps.types.ts +0 -25
- package/dist/src/components/organisms/DocumentListMenu/index.d.ts +0 -2
- package/dist/src/components/organisms/DocumentListMenu/index.js +0 -1
- package/dist/src/components/organisms/DocumentListMenu/index.ts +0 -2
- package/dist/src/components/organisms/DocumentMainMenu/DocumentMainMenu.d.ts +0 -3
- package/dist/src/components/organisms/DocumentMainMenu/DocumentMainMenu.js +0 -11
- package/dist/src/components/organisms/DocumentMainMenu/DocumentMainMenu.styled.d.ts +0 -1
- package/dist/src/components/organisms/DocumentMainMenu/DocumentMainMenu.styled.js +0 -97
- package/dist/src/components/organisms/DocumentMainMenu/DocumentMainMenu.styled.ts +0 -98
- package/dist/src/components/organisms/DocumentMainMenu/DocumentMainMenu.tsx +0 -59
- package/dist/src/components/organisms/DocumentMainMenu/DocumentMainMenuProps.types.d.ts +0 -22
- package/dist/src/components/organisms/DocumentMainMenu/DocumentMainMenuProps.types.js +0 -1
- package/dist/src/components/organisms/DocumentMainMenu/DocumentMainMenuProps.types.ts +0 -25
- package/dist/src/components/organisms/DocumentMainMenu/index.d.ts +0 -2
- package/dist/src/components/organisms/DocumentMainMenu/index.js +0 -1
- package/dist/src/components/organisms/DocumentMainMenu/index.ts +0 -2
- package/dist/src/components/organisms/DocumentSubMenu/DocumentSubMenu.d.ts +0 -4
- package/dist/src/components/organisms/DocumentSubMenu/DocumentSubMenu.js +0 -7
- package/dist/src/components/organisms/DocumentSubMenu/DocumentSubMenu.styled.d.ts +0 -1
- package/dist/src/components/organisms/DocumentSubMenu/DocumentSubMenu.styled.js +0 -27
- package/dist/src/components/organisms/DocumentSubMenu/DocumentSubMenu.styled.ts +0 -28
- package/dist/src/components/organisms/DocumentSubMenu/DocumentSubMenu.tsx +0 -21
- package/dist/src/components/organisms/DocumentSubMenu/DocumentSubMenuProps.types.d.ts +0 -7
- package/dist/src/components/organisms/DocumentSubMenu/DocumentSubMenuProps.types.js +0 -1
- package/dist/src/components/organisms/DocumentSubMenu/DocumentSubMenuProps.types.ts +0 -8
- package/dist/src/components/organisms/DocumentSubMenu/index.d.ts +0 -2
- package/dist/src/components/organisms/DocumentSubMenu/index.js +0 -1
- package/dist/src/components/organisms/DocumentSubMenu/index.ts +0 -2
- package/dist/src/components/organisms/MenuItems/MenuItems.d.ts +0 -3
- package/dist/src/components/organisms/MenuItems/MenuItems.js +0 -9
- package/dist/src/components/organisms/MenuItems/MenuItems.styled.js +0 -594
- package/dist/src/components/organisms/MenuItems/MenuItems.styled.ts +0 -598
- package/dist/src/components/organisms/MenuItems/MenuItems.tsx +0 -74
- package/dist/src/components/organisms/MenuItems/MenuItemsProps.types.d.ts +0 -45
- package/dist/src/components/organisms/MenuItems/MenuItemsProps.types.js +0 -1
- package/dist/src/components/organisms/MenuItems/MenuItemsProps.types.ts +0 -46
- package/dist/src/components/organisms/MenuItems/index.d.ts +0 -2
- package/dist/src/components/organisms/MenuItems/index.js +0 -1
- package/dist/src/components/organisms/MenuItems/index.ts +0 -2
- package/dist/src/components/organisms/NavMenu/NavMenu.d.ts +0 -3
- package/dist/src/components/organisms/NavMenu/NavMenu.js +0 -10
- package/dist/src/components/organisms/NavMenu/NavMenu.styled.d.ts +0 -1
- package/dist/src/components/organisms/NavMenu/NavMenu.styled.js +0 -550
- package/dist/src/components/organisms/NavMenu/NavMenu.styled.ts +0 -554
- package/dist/src/components/organisms/NavMenu/NavMenu.tsx +0 -121
- package/dist/src/components/organisms/NavMenu/NavMenuProps.types.d.ts +0 -80
- package/dist/src/components/organisms/NavMenu/NavMenuProps.types.js +0 -1
- package/dist/src/components/organisms/NavMenu/NavMenuProps.types.ts +0 -82
- package/dist/src/components/organisms/NavMenu/index.d.ts +0 -2
- package/dist/src/components/organisms/NavMenu/index.js +0 -1
- package/dist/src/components/organisms/NavMenu/index.ts +0 -2
- package/dist/src/components/sections/Header/Header.d.ts +0 -4
- package/dist/src/components/sections/Header/Header.js +0 -11
- package/dist/src/components/sections/Header/Header.styled.d.ts +0 -1
- package/dist/src/components/sections/Header/Header.styled.js +0 -117
- package/dist/src/components/sections/Header/Header.styled.ts +0 -118
- package/dist/src/components/sections/Header/Header.tsx +0 -28
- package/dist/src/components/sections/Header/HeaderProps.types.d.ts +0 -96
- package/dist/src/components/sections/Header/HeaderProps.types.js +0 -1
- package/dist/src/components/sections/Header/HeaderProps.types.ts +0 -100
- package/dist/src/components/sections/Header/index.d.ts +0 -2
- package/dist/src/components/sections/Header/index.js +0 -1
- package/dist/src/components/sections/Header/index.ts +0 -2
- package/dist/src/hooks/useWindowSize.d.ts +0 -6
- package/dist/src/hooks/useWindowSize.js +0 -43
- package/dist/src/hooks/useWindowSize.tsx +0 -51
- /package/dist/src/components/atoms/{MenuItemsDeprecated/MenuItemsDeprecatedProps.types.js → MenuItems/MenuItemProps.types.js} +0 -0
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { DocumentListMenuSectionProps } from '../../molecules/DocumentListMenuSection';
|
|
2
|
-
import { type LanguageSelectorProps } from '../LanguageSelector/LanguageSelectorProps';
|
|
3
|
-
import { Routes } from '../../sections/Header/HeaderProps.types';
|
|
4
|
-
export interface Products {
|
|
5
|
-
categoryUrl?: string;
|
|
6
|
-
isFeatured?: boolean;
|
|
7
|
-
popularOrder: number;
|
|
8
|
-
jumboTitle: string;
|
|
9
|
-
linkText: string;
|
|
10
|
-
slug: string;
|
|
11
|
-
footerPopularDocument?: boolean;
|
|
12
|
-
logoImgBig?: string;
|
|
13
|
-
logoImgSmall?: string;
|
|
14
|
-
categoryProduct?: {
|
|
15
|
-
name: string;
|
|
16
|
-
icon: string;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
export interface StrapiSearchBar {
|
|
20
|
-
title: string;
|
|
21
|
-
placeholder: string;
|
|
22
|
-
}
|
|
23
|
-
export interface NavMenuProps {
|
|
24
|
-
isLeftNavHidden?: boolean;
|
|
25
|
-
isHeaderProductsHidden?: boolean;
|
|
26
|
-
isSearchBarHidden?: boolean;
|
|
27
|
-
isResourcesHidden?: boolean;
|
|
28
|
-
showHeaderPhone?: boolean;
|
|
29
|
-
languageSelectorProps?: LanguageSelectorProps;
|
|
30
|
-
userActions: React.ReactNode;
|
|
31
|
-
menuStrings: {
|
|
32
|
-
seeAllLegalDocs: string;
|
|
33
|
-
seeAllTypeDocs: string;
|
|
34
|
-
allLegalDocs: string;
|
|
35
|
-
allTypeDocs: string;
|
|
36
|
-
};
|
|
37
|
-
routes: Routes;
|
|
38
|
-
searchBarTexts: StrapiSearchBar;
|
|
39
|
-
sitePhone: string;
|
|
40
|
-
handleResultClick: (product: string, link: string) => void;
|
|
41
|
-
searchableProducts: Products[];
|
|
42
|
-
isMenuOpen: boolean;
|
|
43
|
-
languageSelectorConfigEnabled: boolean;
|
|
44
|
-
isJonSnow: boolean;
|
|
45
|
-
isMobile: boolean;
|
|
46
|
-
triggerMenuOpen: React.ReactNode;
|
|
47
|
-
triggerMenuClose: React.ReactNode;
|
|
48
|
-
toggleMenuOpen: () => void;
|
|
49
|
-
setCookiePolicyFunc: (url?: string, setCookiePolicyAccepted?: boolean) => void;
|
|
50
|
-
finalMenu: DocumentListMenuSectionProps[];
|
|
51
|
-
configVars: {
|
|
52
|
-
TARGET_ADDRESS: string;
|
|
53
|
-
ESIGNATURE_CONFIG: {
|
|
54
|
-
ENABLED: boolean;
|
|
55
|
-
SIGN_SUBDOMAIN: string;
|
|
56
|
-
};
|
|
57
|
-
IS_JONSNOW: boolean;
|
|
58
|
-
HAS_GRAV_SITEMAP: boolean;
|
|
59
|
-
RATAFIA_CONFIG: {
|
|
60
|
-
ENABLED: boolean;
|
|
61
|
-
CLAUSES_ENABLED: boolean;
|
|
62
|
-
};
|
|
63
|
-
HAS_SUBCATEGORY_PAGE: boolean;
|
|
64
|
-
};
|
|
65
|
-
navMenuItems: {
|
|
66
|
-
title: string;
|
|
67
|
-
dataQa: string;
|
|
68
|
-
href: string;
|
|
69
|
-
label: string;
|
|
70
|
-
}[];
|
|
71
|
-
extraMenu?: {
|
|
72
|
-
title: string;
|
|
73
|
-
items: {
|
|
74
|
-
title: string;
|
|
75
|
-
dataQa: string;
|
|
76
|
-
href: string;
|
|
77
|
-
label: string;
|
|
78
|
-
}[];
|
|
79
|
-
};
|
|
80
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { DocumentListMenuSectionProps } from '../../molecules/DocumentListMenuSection'
|
|
2
|
-
import { type LanguageSelectorProps } from '../LanguageSelector/LanguageSelectorProps'
|
|
3
|
-
import { Routes } from '../../sections/Header/HeaderProps.types'
|
|
4
|
-
|
|
5
|
-
export interface Products {
|
|
6
|
-
categoryUrl?: string
|
|
7
|
-
isFeatured?: boolean
|
|
8
|
-
popularOrder: number
|
|
9
|
-
jumboTitle: string
|
|
10
|
-
linkText: string
|
|
11
|
-
slug: string
|
|
12
|
-
footerPopularDocument?: boolean
|
|
13
|
-
logoImgBig?: string
|
|
14
|
-
logoImgSmall?: string
|
|
15
|
-
categoryProduct?: {
|
|
16
|
-
name: string
|
|
17
|
-
icon: string
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
export interface StrapiSearchBar {
|
|
21
|
-
title: string
|
|
22
|
-
placeholder: string
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export interface NavMenuProps {
|
|
26
|
-
isLeftNavHidden?: boolean
|
|
27
|
-
isHeaderProductsHidden?: boolean
|
|
28
|
-
isSearchBarHidden?: boolean
|
|
29
|
-
isResourcesHidden?: boolean
|
|
30
|
-
showHeaderPhone?: boolean
|
|
31
|
-
languageSelectorProps?: LanguageSelectorProps
|
|
32
|
-
userActions: React.ReactNode
|
|
33
|
-
menuStrings: {
|
|
34
|
-
seeAllLegalDocs: string
|
|
35
|
-
seeAllTypeDocs: string
|
|
36
|
-
allLegalDocs: string
|
|
37
|
-
allTypeDocs: string
|
|
38
|
-
}
|
|
39
|
-
routes: Routes
|
|
40
|
-
searchBarTexts: StrapiSearchBar
|
|
41
|
-
sitePhone: string
|
|
42
|
-
handleResultClick: (product: string, link: string) => void
|
|
43
|
-
searchableProducts: Products[]
|
|
44
|
-
isMenuOpen: boolean
|
|
45
|
-
languageSelectorConfigEnabled: boolean
|
|
46
|
-
isJonSnow: boolean
|
|
47
|
-
isMobile: boolean
|
|
48
|
-
triggerMenuOpen: React.ReactNode
|
|
49
|
-
triggerMenuClose: React.ReactNode
|
|
50
|
-
toggleMenuOpen: () => void
|
|
51
|
-
setCookiePolicyFunc: (url?: string, setCookiePolicyAccepted?: boolean) => void
|
|
52
|
-
finalMenu: DocumentListMenuSectionProps[]
|
|
53
|
-
configVars: {
|
|
54
|
-
TARGET_ADDRESS: string
|
|
55
|
-
ESIGNATURE_CONFIG: {
|
|
56
|
-
ENABLED: boolean
|
|
57
|
-
SIGN_SUBDOMAIN: string
|
|
58
|
-
}
|
|
59
|
-
IS_JONSNOW: boolean
|
|
60
|
-
HAS_GRAV_SITEMAP: boolean
|
|
61
|
-
RATAFIA_CONFIG: {
|
|
62
|
-
ENABLED: boolean
|
|
63
|
-
CLAUSES_ENABLED: boolean
|
|
64
|
-
}
|
|
65
|
-
HAS_SUBCATEGORY_PAGE: boolean
|
|
66
|
-
}
|
|
67
|
-
navMenuItems: {
|
|
68
|
-
title: string
|
|
69
|
-
dataQa: string
|
|
70
|
-
href: string
|
|
71
|
-
label: string
|
|
72
|
-
}[]
|
|
73
|
-
extraMenu?: {
|
|
74
|
-
title: string
|
|
75
|
-
items: {
|
|
76
|
-
title: string
|
|
77
|
-
dataQa: string
|
|
78
|
-
href: string
|
|
79
|
-
label: string
|
|
80
|
-
}[]
|
|
81
|
-
}
|
|
82
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { NavMenu } from './NavMenu';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef } from 'react';
|
|
3
|
-
import { Logo, TopBar } from '../../atoms';
|
|
4
|
-
import { HeaderStyled } from './Header.styled';
|
|
5
|
-
import { NavMenu } from '../../organisms/NavMenu';
|
|
6
|
-
const Header = forwardRef(({ mainHeaderProps, topBarProps, navMenuProps }, ref) => {
|
|
7
|
-
const { classnames, hide, siteName } = mainHeaderProps;
|
|
8
|
-
return (_jsxs(HeaderStyled, { className: `header ${classnames}`, ref: ref, id: 'header', children: [_jsx(TopBar, { ...topBarProps }), _jsxs("span", { itemScope: true, itemType: 'https://www.schema.org/Brand', className: 'wrapper flex header__inner', children: [_jsx("a", { "data-qa": 'Header_Logo', className: 'header__logo', href: '/', children: _jsx(Logo, { siteName: siteName, width: '188', height: '32' }) }), !hide && _jsx(NavMenu, { ...navMenuProps })] })] }));
|
|
9
|
-
});
|
|
10
|
-
Header.displayName = 'Header';
|
|
11
|
-
export default Header;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const HeaderStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import { device, size } from '../../../globalStyles/breakpoints';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
export const HeaderStyled = styled.header `
|
|
4
|
-
html[data-theme='lawdistrict'] {
|
|
5
|
-
.header {
|
|
6
|
-
&.product-header-background {
|
|
7
|
-
background-color: var(--secondary-main-light-4);
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.scrollDown {
|
|
13
|
-
header:not(.hide-header-in-mobile) {
|
|
14
|
-
background-color: var(--others-white) !important;
|
|
15
|
-
box-shadow: var(--box-shadow-small);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.header {
|
|
20
|
-
background-color: var(--primary-main-light-6);
|
|
21
|
-
position: sticky;
|
|
22
|
-
top: 0;
|
|
23
|
-
transition: all 0.3s ease;
|
|
24
|
-
z-index: 1000;
|
|
25
|
-
|
|
26
|
-
.top-bar-wrapper {
|
|
27
|
-
.top-bar {
|
|
28
|
-
font-size: 0.78rem;
|
|
29
|
-
letter-spacing: -0.5px;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.top-bar-content {
|
|
33
|
-
width: 100%;
|
|
34
|
-
display: flex;
|
|
35
|
-
justify-content: space-around;
|
|
36
|
-
@media ${device['landscape-tablets']} {
|
|
37
|
-
justify-content: center;
|
|
38
|
-
width: auto;
|
|
39
|
-
}
|
|
40
|
-
span {
|
|
41
|
-
display: none;
|
|
42
|
-
|
|
43
|
-
@media ${device['laptop']} {
|
|
44
|
-
display: inline;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.top-bar-mobile {
|
|
51
|
-
font-size: 14px;
|
|
52
|
-
padding: 8px 10px;
|
|
53
|
-
letter-spacing: normal;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&.hide-header-in-mobile {
|
|
57
|
-
position: relative;
|
|
58
|
-
|
|
59
|
-
@media ${device['landscape-tablets']} {
|
|
60
|
-
position: sticky;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&__inner {
|
|
65
|
-
max-width: 1200px;
|
|
66
|
-
padding: 1rem 1.5rem;
|
|
67
|
-
align-items: center;
|
|
68
|
-
justify-content: space-between;
|
|
69
|
-
|
|
70
|
-
@media (min-width: ${size.sm}) {
|
|
71
|
-
padding: 1rem;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
&__logo {
|
|
76
|
-
z-index: 200;
|
|
77
|
-
min-width: max-content;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
&.transparent-header-background {
|
|
81
|
-
background-color: transparent;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
&.form-header-background {
|
|
85
|
-
background-color: var(--others-white);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
&.esignature-header-background {
|
|
89
|
-
background-color: var(--neutral-neutral-5);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.--no-grid {
|
|
93
|
-
padding: 0 2rem;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
&.--is-open {
|
|
97
|
-
background: var(--others-white);
|
|
98
|
-
position: fixed;
|
|
99
|
-
width: 100%;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
a {
|
|
103
|
-
text-decoration: none;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.refresh-container {
|
|
107
|
-
height: 70px;
|
|
108
|
-
padding-top: 10px;
|
|
109
|
-
|
|
110
|
-
.e-button {
|
|
111
|
-
width: 140px;
|
|
112
|
-
margin-left: auto;
|
|
113
|
-
margin-right: auto;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
`;
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import { device, size } from '../../../globalStyles/breakpoints'
|
|
2
|
-
import styled from 'styled-components'
|
|
3
|
-
|
|
4
|
-
export const HeaderStyled = styled.header`
|
|
5
|
-
html[data-theme='lawdistrict'] {
|
|
6
|
-
.header {
|
|
7
|
-
&.product-header-background {
|
|
8
|
-
background-color: var(--secondary-main-light-4);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.scrollDown {
|
|
14
|
-
header:not(.hide-header-in-mobile) {
|
|
15
|
-
background-color: var(--others-white) !important;
|
|
16
|
-
box-shadow: var(--box-shadow-small);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.header {
|
|
21
|
-
background-color: var(--primary-main-light-6);
|
|
22
|
-
position: sticky;
|
|
23
|
-
top: 0;
|
|
24
|
-
transition: all 0.3s ease;
|
|
25
|
-
z-index: 1000;
|
|
26
|
-
|
|
27
|
-
.top-bar-wrapper {
|
|
28
|
-
.top-bar {
|
|
29
|
-
font-size: 0.78rem;
|
|
30
|
-
letter-spacing: -0.5px;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.top-bar-content {
|
|
34
|
-
width: 100%;
|
|
35
|
-
display: flex;
|
|
36
|
-
justify-content: space-around;
|
|
37
|
-
@media ${device['landscape-tablets']} {
|
|
38
|
-
justify-content: center;
|
|
39
|
-
width: auto;
|
|
40
|
-
}
|
|
41
|
-
span {
|
|
42
|
-
display: none;
|
|
43
|
-
|
|
44
|
-
@media ${device['laptop']} {
|
|
45
|
-
display: inline;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.top-bar-mobile {
|
|
52
|
-
font-size: 14px;
|
|
53
|
-
padding: 8px 10px;
|
|
54
|
-
letter-spacing: normal;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
&.hide-header-in-mobile {
|
|
58
|
-
position: relative;
|
|
59
|
-
|
|
60
|
-
@media ${device['landscape-tablets']} {
|
|
61
|
-
position: sticky;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
&__inner {
|
|
66
|
-
max-width: 1200px;
|
|
67
|
-
padding: 1rem 1.5rem;
|
|
68
|
-
align-items: center;
|
|
69
|
-
justify-content: space-between;
|
|
70
|
-
|
|
71
|
-
@media (min-width: ${size.sm}) {
|
|
72
|
-
padding: 1rem;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
&__logo {
|
|
77
|
-
z-index: 200;
|
|
78
|
-
min-width: max-content;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
&.transparent-header-background {
|
|
82
|
-
background-color: transparent;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
&.form-header-background {
|
|
86
|
-
background-color: var(--others-white);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
&.esignature-header-background {
|
|
90
|
-
background-color: var(--neutral-neutral-5);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.--no-grid {
|
|
94
|
-
padding: 0 2rem;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
&.--is-open {
|
|
98
|
-
background: var(--others-white);
|
|
99
|
-
position: fixed;
|
|
100
|
-
width: 100%;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
a {
|
|
104
|
-
text-decoration: none;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.refresh-container {
|
|
108
|
-
height: 70px;
|
|
109
|
-
padding-top: 10px;
|
|
110
|
-
|
|
111
|
-
.e-button {
|
|
112
|
-
width: 140px;
|
|
113
|
-
margin-left: auto;
|
|
114
|
-
margin-right: auto;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
`
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import React, { ReactElement, forwardRef } from 'react'
|
|
2
|
-
|
|
3
|
-
import { Logo, TopBar } from '../../atoms'
|
|
4
|
-
import { type HeaderProps } from './HeaderProps.types'
|
|
5
|
-
import { HeaderStyled } from './Header.styled'
|
|
6
|
-
import { NavMenu } from '../../organisms/NavMenu'
|
|
7
|
-
|
|
8
|
-
const Header = forwardRef<HTMLDivElement, HeaderProps>(
|
|
9
|
-
({ mainHeaderProps, topBarProps, navMenuProps }, ref): ReactElement => {
|
|
10
|
-
const { classnames, hide, siteName } = mainHeaderProps
|
|
11
|
-
|
|
12
|
-
return (
|
|
13
|
-
<HeaderStyled className={`header ${classnames}`} ref={ref} id='header'>
|
|
14
|
-
<TopBar {...topBarProps} />
|
|
15
|
-
<span itemScope itemType='https://www.schema.org/Brand' className={'wrapper flex header__inner'}>
|
|
16
|
-
<a data-qa={'Header_Logo'} className='header__logo' href='/'>
|
|
17
|
-
<Logo siteName={siteName} width='188' height='32' />
|
|
18
|
-
</a>
|
|
19
|
-
{!hide && <NavMenu {...navMenuProps} />}
|
|
20
|
-
</span>
|
|
21
|
-
</HeaderStyled>
|
|
22
|
-
)
|
|
23
|
-
}
|
|
24
|
-
)
|
|
25
|
-
|
|
26
|
-
Header.displayName = 'Header'
|
|
27
|
-
|
|
28
|
-
export default Header
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { DocumentListMenuSectionProps } from '../../molecules/DocumentListMenuSection';
|
|
2
|
-
import { type LanguageSelectorProps } from '../../organisms/LanguageSelector/LanguageSelectorProps';
|
|
3
|
-
import { Products } from '../../organisms/NavMenu/NavMenuProps.types';
|
|
4
|
-
interface StaticRoutes {
|
|
5
|
-
LOGIN: string;
|
|
6
|
-
MY_DOCUMENTS: string;
|
|
7
|
-
REGISTER: string;
|
|
8
|
-
SIGN_EDITOR: string;
|
|
9
|
-
RATAFIA_LOGIN: string;
|
|
10
|
-
LEGAL_DOCUMENTS: string;
|
|
11
|
-
}
|
|
12
|
-
interface DynamicRoutes {
|
|
13
|
-
CUSTOM_URL_FROM_APP_SUBDOMAIN: (url: string) => string;
|
|
14
|
-
CUSTOM_URL_FROM_TARGET_ADDRESS: (url: string) => string;
|
|
15
|
-
LEGAL_DOCUMENTS_WITH_HASH: (category: string) => string;
|
|
16
|
-
LEGAL_DOCUMENTS_WITH_CATEGORY: (category: string) => string;
|
|
17
|
-
}
|
|
18
|
-
export type Routes = StaticRoutes & DynamicRoutes;
|
|
19
|
-
export interface StrapiSearchBar {
|
|
20
|
-
title: string;
|
|
21
|
-
placeholder: string;
|
|
22
|
-
}
|
|
23
|
-
export interface HeaderProps {
|
|
24
|
-
mainHeaderProps: {
|
|
25
|
-
classnames?: string;
|
|
26
|
-
hide?: boolean;
|
|
27
|
-
siteName: string;
|
|
28
|
-
};
|
|
29
|
-
topBarProps: {
|
|
30
|
-
isMobile?: boolean;
|
|
31
|
-
hide?: boolean;
|
|
32
|
-
isVisible?: boolean;
|
|
33
|
-
children?: React.ReactNode;
|
|
34
|
-
};
|
|
35
|
-
navMenuProps: {
|
|
36
|
-
isLeftNavHidden?: boolean;
|
|
37
|
-
isHeaderProductsHidden?: boolean;
|
|
38
|
-
isSearchBarHidden?: boolean;
|
|
39
|
-
isResourcesHidden?: boolean;
|
|
40
|
-
showHeaderPhone?: boolean;
|
|
41
|
-
showContactBar?: boolean;
|
|
42
|
-
showContactBarMobile?: boolean;
|
|
43
|
-
languageSelectorProps?: LanguageSelectorProps;
|
|
44
|
-
userActions: React.ReactNode;
|
|
45
|
-
menuStrings: {
|
|
46
|
-
seeAllLegalDocs: string;
|
|
47
|
-
seeAllTypeDocs: string;
|
|
48
|
-
allLegalDocs: string;
|
|
49
|
-
allTypeDocs: string;
|
|
50
|
-
};
|
|
51
|
-
routes: Routes;
|
|
52
|
-
searchBarTexts: StrapiSearchBar;
|
|
53
|
-
sitePhone: string;
|
|
54
|
-
handleResultClick: (product: string, link: string) => void;
|
|
55
|
-
searchableProducts: Products[];
|
|
56
|
-
isMenuOpen: boolean;
|
|
57
|
-
languageSelectorConfigEnabled: boolean;
|
|
58
|
-
isJonSnow: boolean;
|
|
59
|
-
isMobile: boolean;
|
|
60
|
-
triggerMenuOpen: React.ReactNode;
|
|
61
|
-
triggerMenuClose: React.ReactNode;
|
|
62
|
-
toggleMenuOpen: () => void;
|
|
63
|
-
setCookiePolicyFunc: (url?: string, setCookiePolicyAccepted?: boolean) => void;
|
|
64
|
-
finalMenu: DocumentListMenuSectionProps[];
|
|
65
|
-
configVars: {
|
|
66
|
-
TARGET_ADDRESS: string;
|
|
67
|
-
ESIGNATURE_CONFIG: {
|
|
68
|
-
ENABLED: boolean;
|
|
69
|
-
SIGN_SUBDOMAIN: string;
|
|
70
|
-
};
|
|
71
|
-
IS_JONSNOW: boolean;
|
|
72
|
-
HAS_GRAV_SITEMAP: boolean;
|
|
73
|
-
RATAFIA_CONFIG: {
|
|
74
|
-
ENABLED: boolean;
|
|
75
|
-
CLAUSES_ENABLED: boolean;
|
|
76
|
-
};
|
|
77
|
-
HAS_SUBCATEGORY_PAGE: boolean;
|
|
78
|
-
};
|
|
79
|
-
navMenuItems: {
|
|
80
|
-
title: string;
|
|
81
|
-
dataQa: string;
|
|
82
|
-
href: string;
|
|
83
|
-
label: string;
|
|
84
|
-
}[];
|
|
85
|
-
extraMenu?: {
|
|
86
|
-
title: string;
|
|
87
|
-
items: {
|
|
88
|
-
title: string;
|
|
89
|
-
dataQa: string;
|
|
90
|
-
href: string;
|
|
91
|
-
label: string;
|
|
92
|
-
}[];
|
|
93
|
-
};
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { DocumentListMenuSectionProps } from '../../molecules/DocumentListMenuSection'
|
|
2
|
-
import { type LanguageSelectorProps } from '../../organisms/LanguageSelector/LanguageSelectorProps'
|
|
3
|
-
import { Products } from '../../organisms/NavMenu/NavMenuProps.types'
|
|
4
|
-
|
|
5
|
-
interface StaticRoutes {
|
|
6
|
-
LOGIN: string
|
|
7
|
-
MY_DOCUMENTS: string
|
|
8
|
-
REGISTER: string
|
|
9
|
-
SIGN_EDITOR: string
|
|
10
|
-
RATAFIA_LOGIN: string
|
|
11
|
-
LEGAL_DOCUMENTS: string
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
interface DynamicRoutes {
|
|
15
|
-
CUSTOM_URL_FROM_APP_SUBDOMAIN: (url: string) => string
|
|
16
|
-
CUSTOM_URL_FROM_TARGET_ADDRESS: (url: string) => string
|
|
17
|
-
LEGAL_DOCUMENTS_WITH_HASH: (category: string) => string
|
|
18
|
-
LEGAL_DOCUMENTS_WITH_CATEGORY: (category: string) => string
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export type Routes = StaticRoutes & DynamicRoutes
|
|
22
|
-
|
|
23
|
-
export interface StrapiSearchBar {
|
|
24
|
-
title: string
|
|
25
|
-
placeholder: string
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export interface HeaderProps {
|
|
29
|
-
mainHeaderProps: {
|
|
30
|
-
classnames?: string
|
|
31
|
-
hide?: boolean
|
|
32
|
-
siteName: string
|
|
33
|
-
}
|
|
34
|
-
topBarProps: {
|
|
35
|
-
isMobile?: boolean
|
|
36
|
-
hide?: boolean
|
|
37
|
-
isVisible?: boolean
|
|
38
|
-
children?: React.ReactNode
|
|
39
|
-
}
|
|
40
|
-
navMenuProps: {
|
|
41
|
-
isLeftNavHidden?: boolean
|
|
42
|
-
isHeaderProductsHidden?: boolean
|
|
43
|
-
isSearchBarHidden?: boolean
|
|
44
|
-
isResourcesHidden?: boolean
|
|
45
|
-
showHeaderPhone?: boolean
|
|
46
|
-
showContactBar?: boolean
|
|
47
|
-
showContactBarMobile?: boolean
|
|
48
|
-
languageSelectorProps?: LanguageSelectorProps
|
|
49
|
-
userActions: React.ReactNode
|
|
50
|
-
menuStrings: {
|
|
51
|
-
seeAllLegalDocs: string
|
|
52
|
-
seeAllTypeDocs: string
|
|
53
|
-
allLegalDocs: string
|
|
54
|
-
allTypeDocs: string
|
|
55
|
-
}
|
|
56
|
-
routes: Routes
|
|
57
|
-
searchBarTexts: StrapiSearchBar
|
|
58
|
-
sitePhone: string
|
|
59
|
-
handleResultClick: (product: string, link: string) => void
|
|
60
|
-
searchableProducts: Products[]
|
|
61
|
-
isMenuOpen: boolean
|
|
62
|
-
languageSelectorConfigEnabled: boolean
|
|
63
|
-
isJonSnow: boolean
|
|
64
|
-
isMobile: boolean
|
|
65
|
-
triggerMenuOpen: React.ReactNode
|
|
66
|
-
triggerMenuClose: React.ReactNode
|
|
67
|
-
toggleMenuOpen: () => void
|
|
68
|
-
setCookiePolicyFunc: (url?: string, setCookiePolicyAccepted?: boolean) => void
|
|
69
|
-
finalMenu: DocumentListMenuSectionProps[]
|
|
70
|
-
configVars: {
|
|
71
|
-
TARGET_ADDRESS: string
|
|
72
|
-
ESIGNATURE_CONFIG: {
|
|
73
|
-
ENABLED: boolean
|
|
74
|
-
SIGN_SUBDOMAIN: string
|
|
75
|
-
}
|
|
76
|
-
IS_JONSNOW: boolean
|
|
77
|
-
HAS_GRAV_SITEMAP: boolean
|
|
78
|
-
RATAFIA_CONFIG: {
|
|
79
|
-
ENABLED: boolean
|
|
80
|
-
CLAUSES_ENABLED: boolean
|
|
81
|
-
}
|
|
82
|
-
HAS_SUBCATEGORY_PAGE: boolean
|
|
83
|
-
}
|
|
84
|
-
navMenuItems: {
|
|
85
|
-
title: string
|
|
86
|
-
dataQa: string
|
|
87
|
-
href: string
|
|
88
|
-
label: string
|
|
89
|
-
}[]
|
|
90
|
-
extraMenu?: {
|
|
91
|
-
title: string
|
|
92
|
-
items: {
|
|
93
|
-
title: string
|
|
94
|
-
dataQa: string
|
|
95
|
-
href: string
|
|
96
|
-
label: string
|
|
97
|
-
}[]
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Header } from './Header';
|