@npm_leadtech/legal-lib-components 7.15.0 → 7.16.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/dist/css/styles.css +30 -15
- package/dist/images/componentsSvg/SearchIcon.d.ts +4 -0
- package/dist/images/componentsSvg/SearchIcon.js +4 -0
- package/dist/images/componentsSvg/SearchIcon.tsx +26 -0
- package/dist/images/svg/arrow-down.svg +3 -0
- package/dist/images/svg/business-type.svg +3 -0
- package/dist/images/svg/clear-24-px.svg +14 -0
- package/dist/images/svg/men.svg +5 -0
- package/dist/src/components/atoms/DropdownInput/DropdownInput.d.ts +3 -0
- package/dist/src/components/atoms/DropdownInput/DropdownInput.js +24 -0
- package/dist/src/components/atoms/DropdownInput/DropdownInput.styled.d.ts +1 -0
- package/dist/src/components/atoms/DropdownInput/DropdownInput.styled.js +147 -0
- package/dist/src/components/atoms/DropdownInput/DropdownInput.styled.ts +149 -0
- package/dist/src/components/atoms/DropdownInput/DropdownInput.tsx +60 -0
- package/dist/src/components/atoms/DropdownInput/DropdownInputProps.types.d.ts +8 -0
- package/dist/src/components/atoms/DropdownInput/DropdownInputProps.types.js +2 -0
- package/dist/src/components/atoms/DropdownInput/DropdownInputProps.types.ts +10 -0
- package/dist/src/components/atoms/DropdownInput/index.d.ts +2 -0
- package/dist/src/components/atoms/DropdownInput/index.js +1 -0
- package/dist/src/components/atoms/DropdownInput/index.ts +2 -0
- package/dist/src/components/atoms/MenuItemsDeprecated/MenuItemsDeprecated.d.ts +4 -0
- package/dist/src/components/atoms/{MenuItems/MenuItems.js → MenuItemsDeprecated/MenuItemsDeprecated.js} +4 -4
- package/dist/src/components/atoms/MenuItemsDeprecated/MenuItemsDeprecated.styled.d.ts +1 -0
- package/dist/src/components/atoms/{MenuItems/MenuItems.styled.js → MenuItemsDeprecated/MenuItemsDeprecated.styled.js} +1 -1
- package/dist/src/components/atoms/{MenuItems/MenuItems.styled.ts → MenuItemsDeprecated/MenuItemsDeprecated.styled.ts} +1 -1
- package/dist/src/components/atoms/{MenuItems/MenuItems.tsx → MenuItemsDeprecated/MenuItemsDeprecated.tsx} +12 -6
- package/dist/src/components/atoms/{MenuItems/MenuItemProps.types.d.ts → MenuItemsDeprecated/MenuItemsDeprecatedProps.types.d.ts} +1 -1
- package/dist/src/components/atoms/{MenuItems/MenuItemProps.types.ts → MenuItemsDeprecated/MenuItemsDeprecatedProps.types.ts} +1 -1
- package/dist/src/components/atoms/MenuItemsDeprecated/index.d.ts +2 -0
- package/dist/src/components/atoms/MenuItemsDeprecated/index.js +1 -0
- package/dist/src/components/atoms/MenuItemsDeprecated/index.ts +2 -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.styled.js +48 -1
- package/dist/src/components/atoms/TopBar/TopBar.styled.ts +48 -1
- package/dist/src/components/atoms/TopBar/TopBar.tsx +1 -1
- 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/AllTypeDocumentsItemMenu/AllTypeDocumentsItemMenu.d.ts +3 -0
- package/dist/src/components/molecules/AllTypeDocumentsItemMenu/AllTypeDocumentsItemMenu.js +6 -0
- package/dist/src/components/molecules/AllTypeDocumentsItemMenu/AllTypeDocumentsItemMenu.styled.d.ts +1 -0
- package/dist/src/components/molecules/AllTypeDocumentsItemMenu/AllTypeDocumentsItemMenu.styled.js +18 -0
- package/dist/src/components/molecules/AllTypeDocumentsItemMenu/AllTypeDocumentsItemMenu.styled.ts +19 -0
- package/dist/src/components/molecules/AllTypeDocumentsItemMenu/AllTypeDocumentsItemMenu.tsx +22 -0
- package/dist/src/components/molecules/AllTypeDocumentsItemMenu/AllTypeDocumentsItemMenuProps.types.d.ts +8 -0
- package/dist/src/components/molecules/AllTypeDocumentsItemMenu/AllTypeDocumentsItemMenuProps.types.js +1 -0
- package/dist/src/components/molecules/AllTypeDocumentsItemMenu/AllTypeDocumentsItemMenuProps.types.ts +9 -0
- package/dist/src/components/molecules/AllTypeDocumentsItemMenu/index.d.ts +2 -0
- package/dist/src/components/molecules/AllTypeDocumentsItemMenu/index.js +1 -0
- package/dist/src/components/molecules/AllTypeDocumentsItemMenu/index.ts +2 -0
- package/dist/src/components/molecules/DocumentListMenuSection/DocumentListMenuSection.d.ts +3 -0
- package/dist/src/components/molecules/DocumentListMenuSection/DocumentListMenuSection.js +7 -0
- package/dist/src/components/molecules/DocumentListMenuSection/DocumentListMenuSection.styled.d.ts +1 -0
- package/dist/src/components/molecules/DocumentListMenuSection/DocumentListMenuSection.styled.js +20 -0
- package/dist/src/components/molecules/DocumentListMenuSection/DocumentListMenuSection.styled.ts +21 -0
- package/dist/src/components/molecules/DocumentListMenuSection/DocumentListMenuSection.tsx +35 -0
- package/dist/src/components/molecules/DocumentListMenuSection/DocumentListMenuSectionProps.types.d.ts +16 -0
- package/dist/src/components/molecules/DocumentListMenuSection/DocumentListMenuSectionProps.types.js +1 -0
- package/dist/src/components/molecules/DocumentListMenuSection/DocumentListMenuSectionProps.types.ts +18 -0
- package/dist/src/components/molecules/DocumentListMenuSection/index.d.ts +2 -0
- package/dist/src/components/molecules/DocumentListMenuSection/index.js +1 -0
- package/dist/src/components/molecules/DocumentListMenuSection/index.ts +2 -0
- 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/MenuSectionTitle/MenuSectionTitle.d.ts +3 -0
- package/dist/src/components/molecules/MenuSectionTitle/MenuSectionTitle.js +5 -0
- package/dist/src/components/molecules/MenuSectionTitle/MenuSectionTitle.styled.d.ts +1 -0
- package/dist/src/components/molecules/MenuSectionTitle/MenuSectionTitle.styled.js +26 -0
- package/dist/src/components/molecules/MenuSectionTitle/MenuSectionTitle.styled.ts +27 -0
- package/dist/src/components/molecules/MenuSectionTitle/MenuSectionTitle.tsx +17 -0
- package/dist/src/components/molecules/MenuSectionTitle/MenuSectionTitleProps.types.d.ts +4 -0
- package/dist/src/components/molecules/MenuSectionTitle/MenuSectionTitleProps.types.js +1 -0
- package/dist/src/components/molecules/MenuSectionTitle/MenuSectionTitleProps.types.ts +4 -0
- package/dist/src/components/molecules/MenuSectionTitle/index.d.ts +2 -0
- package/dist/src/components/molecules/MenuSectionTitle/index.js +1 -0
- package/dist/src/components/molecules/MenuSectionTitle/index.ts +2 -0
- 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/NavMobileContactBar/NavMobileContactBar.d.ts +4 -0
- package/dist/src/components/molecules/NavMobileContactBar/NavMobileContactBar.js +7 -0
- package/dist/src/components/molecules/NavMobileContactBar/NavMobileContactBar.styled.d.ts +1 -0
- package/dist/src/components/molecules/NavMobileContactBar/NavMobileContactBar.styled.js +34 -0
- package/dist/src/components/molecules/NavMobileContactBar/NavMobileContactBar.styled.ts +35 -0
- package/dist/src/components/molecules/NavMobileContactBar/NavMobileContactBar.tsx +23 -0
- package/dist/src/components/molecules/NavMobileContactBar/NavMobileContactBarProps.types.d.ts +4 -0
- package/dist/src/components/molecules/NavMobileContactBar/NavMobileContactBarProps.types.js +1 -0
- package/dist/src/components/molecules/NavMobileContactBar/NavMobileContactBarProps.types.ts +4 -0
- package/dist/src/components/molecules/NavMobileContactBar/index.d.ts +2 -0
- package/dist/src/components/molecules/NavMobileContactBar/index.js +1 -0
- package/dist/src/components/molecules/NavMobileContactBar/index.ts +2 -0
- package/dist/src/components/molecules/ProductListMenu/ProductListMenu.d.ts +3 -0
- package/dist/src/components/molecules/ProductListMenu/ProductListMenu.js +5 -0
- package/dist/src/components/molecules/ProductListMenu/ProductListMenu.styled.d.ts +1 -0
- package/dist/src/components/molecules/ProductListMenu/ProductListMenu.styled.js +18 -0
- package/dist/src/components/molecules/ProductListMenu/ProductListMenu.styled.ts +19 -0
- package/dist/src/components/molecules/ProductListMenu/ProductListMenu.tsx +25 -0
- package/dist/src/components/molecules/ProductListMenu/ProductListMenuProps.types.d.ts +8 -0
- package/dist/src/components/molecules/ProductListMenu/ProductListMenuProps.types.js +1 -0
- package/dist/src/components/molecules/ProductListMenu/ProductListMenuProps.types.ts +9 -0
- package/dist/src/components/molecules/ProductListMenu/index.d.ts +2 -0
- package/dist/src/components/molecules/ProductListMenu/index.js +1 -0
- package/dist/src/components/molecules/ProductListMenu/index.ts +2 -0
- package/dist/src/components/molecules/SearchBar/SearchBar.d.ts +3 -0
- package/dist/src/components/molecules/SearchBar/SearchBar.js +33 -0
- package/dist/src/components/molecules/SearchBar/SearchBar.styled.d.ts +1 -0
- package/dist/src/components/molecules/SearchBar/SearchBar.styled.js +62 -0
- package/dist/src/components/molecules/SearchBar/SearchBar.styled.ts +63 -0
- package/dist/src/components/molecules/SearchBar/SearchBar.tsx +72 -0
- package/dist/src/components/molecules/SearchBar/SearchBarProps.types.d.ts +37 -0
- package/dist/src/components/molecules/SearchBar/SearchBarProps.types.js +1 -0
- package/dist/src/components/molecules/SearchBar/SearchBarProps.types.ts +41 -0
- package/dist/src/components/molecules/SearchBar/index.d.ts +2 -0
- package/dist/src/components/molecules/SearchBar/index.js +1 -0
- package/dist/src/components/molecules/SearchBar/index.ts +2 -0
- package/dist/src/components/molecules/TextInput/TextInput.scss +31 -15
- package/dist/src/components/molecules/TextInput/stories/TextInput.stories.tsx +13 -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 +5 -0
- package/dist/src/components/molecules/index.js +5 -0
- package/dist/src/components/molecules/index.ts +5 -0
- package/dist/src/components/organisms/DocumentListMenu/DocumentListMenu.d.ts +3 -0
- package/dist/src/components/organisms/DocumentListMenu/DocumentListMenu.js +7 -0
- package/dist/src/components/organisms/DocumentListMenu/DocumentListMenu.styled.d.ts +1 -0
- package/dist/src/components/organisms/DocumentListMenu/DocumentListMenu.styled.js +67 -0
- package/dist/src/components/organisms/DocumentListMenu/DocumentListMenu.styled.ts +68 -0
- package/dist/src/components/organisms/DocumentListMenu/DocumentListMenu.tsx +47 -0
- package/dist/src/components/organisms/DocumentListMenu/DocumentListMenuProps.types.d.ts +21 -0
- package/dist/src/components/organisms/DocumentListMenu/DocumentListMenuProps.types.js +1 -0
- package/dist/src/components/organisms/DocumentListMenu/DocumentListMenuProps.types.ts +24 -0
- package/dist/src/components/organisms/DocumentListMenu/index.d.ts +2 -0
- package/dist/src/components/organisms/DocumentListMenu/index.js +1 -0
- package/dist/src/components/organisms/DocumentListMenu/index.ts +2 -0
- package/dist/src/components/organisms/DocumentMainMenu/DocumentMainMenu.d.ts +3 -0
- package/dist/src/components/organisms/DocumentMainMenu/DocumentMainMenu.js +11 -0
- package/dist/src/components/organisms/DocumentMainMenu/DocumentMainMenu.styled.d.ts +1 -0
- package/dist/src/components/organisms/DocumentMainMenu/DocumentMainMenu.styled.js +94 -0
- package/dist/src/components/organisms/DocumentMainMenu/DocumentMainMenu.styled.ts +95 -0
- package/dist/src/components/organisms/DocumentMainMenu/DocumentMainMenu.tsx +59 -0
- package/dist/src/components/organisms/DocumentMainMenu/DocumentMainMenuProps.types.d.ts +22 -0
- package/dist/src/components/organisms/DocumentMainMenu/DocumentMainMenuProps.types.js +1 -0
- package/dist/src/components/organisms/DocumentMainMenu/DocumentMainMenuProps.types.ts +25 -0
- package/dist/src/components/organisms/DocumentMainMenu/index.d.ts +2 -0
- package/dist/src/components/organisms/DocumentMainMenu/index.js +1 -0
- package/dist/src/components/organisms/DocumentMainMenu/index.ts +2 -0
- package/dist/src/components/organisms/DocumentSubMenu/DocumentSubMenu.d.ts +4 -0
- package/dist/src/components/organisms/DocumentSubMenu/DocumentSubMenu.js +7 -0
- package/dist/src/components/organisms/DocumentSubMenu/DocumentSubMenu.styled.d.ts +1 -0
- package/dist/src/components/organisms/DocumentSubMenu/DocumentSubMenu.styled.js +27 -0
- package/dist/src/components/organisms/DocumentSubMenu/DocumentSubMenu.styled.ts +28 -0
- package/dist/src/components/organisms/DocumentSubMenu/DocumentSubMenu.tsx +21 -0
- package/dist/src/components/organisms/DocumentSubMenu/DocumentSubMenuProps.types.d.ts +7 -0
- package/dist/src/components/organisms/DocumentSubMenu/DocumentSubMenuProps.types.js +1 -0
- package/dist/src/components/organisms/DocumentSubMenu/DocumentSubMenuProps.types.ts +8 -0
- package/dist/src/components/organisms/DocumentSubMenu/index.d.ts +2 -0
- package/dist/src/components/organisms/DocumentSubMenu/index.js +1 -0
- package/dist/src/components/organisms/DocumentSubMenu/index.ts +2 -0
- package/dist/src/components/organisms/MenuItems/MenuItems.d.ts +3 -0
- package/dist/src/components/organisms/MenuItems/MenuItems.js +10 -0
- package/dist/src/components/{atoms → organisms}/MenuItems/MenuItems.styled.d.ts +1 -1
- package/dist/src/components/organisms/MenuItems/MenuItems.styled.js +719 -0
- package/dist/src/components/organisms/MenuItems/MenuItems.styled.ts +723 -0
- package/dist/src/components/organisms/MenuItems/MenuItems.tsx +81 -0
- package/dist/src/components/organisms/MenuItems/MenuItemsProps.types.d.ts +45 -0
- package/dist/src/components/organisms/MenuItems/MenuItemsProps.types.js +1 -0
- package/dist/src/components/organisms/MenuItems/MenuItemsProps.types.ts +46 -0
- package/dist/src/components/organisms/MenuItems/index.d.ts +2 -0
- package/dist/src/components/organisms/MenuItems/index.js +1 -0
- package/dist/src/components/organisms/MenuItems/index.ts +2 -0
- package/dist/src/components/organisms/NavMenu/NavMenu.d.ts +3 -0
- package/dist/src/components/organisms/NavMenu/NavMenu.js +10 -0
- package/dist/src/components/organisms/NavMenu/NavMenu.styled.d.ts +1 -0
- package/dist/src/components/organisms/NavMenu/NavMenu.styled.js +644 -0
- package/dist/src/components/organisms/NavMenu/NavMenu.styled.ts +648 -0
- package/dist/src/components/organisms/NavMenu/NavMenu.tsx +121 -0
- package/dist/src/components/organisms/NavMenu/NavMenuProps.types.d.ts +80 -0
- package/dist/src/components/organisms/NavMenu/NavMenuProps.types.js +1 -0
- package/dist/src/components/organisms/NavMenu/NavMenuProps.types.ts +82 -0
- package/dist/src/components/organisms/NavMenu/index.d.ts +2 -0
- package/dist/src/components/organisms/NavMenu/index.js +1 -0
- package/dist/src/components/organisms/NavMenu/index.ts +2 -0
- package/dist/src/components/organisms/index.d.ts +4 -0
- package/dist/src/components/organisms/index.js +4 -0
- package/dist/src/components/organisms/index.ts +4 -0
- package/dist/src/components/sections/Header/Header.d.ts +4 -0
- package/dist/src/components/sections/Header/Header.js +11 -0
- package/dist/src/components/sections/Header/Header.styled.d.ts +1 -0
- package/dist/src/components/sections/Header/Header.styled.js +136 -0
- package/dist/src/components/sections/Header/Header.styled.ts +137 -0
- package/dist/src/components/sections/Header/Header.tsx +28 -0
- package/dist/src/components/sections/Header/HeaderProps.types.d.ts +97 -0
- package/dist/src/components/sections/Header/HeaderProps.types.js +1 -0
- package/dist/src/components/sections/Header/HeaderProps.types.ts +101 -0
- package/dist/src/components/sections/Header/index.d.ts +2 -0
- package/dist/src/components/sections/Header/index.js +1 -0
- package/dist/src/components/sections/Header/index.ts +2 -0
- package/dist/src/components/sections/index.d.ts +1 -0
- package/dist/src/components/sections/index.js +1 -0
- package/dist/src/components/sections/index.ts +1 -0
- package/dist/src/hooks/useWindowSize.d.ts +6 -0
- package/dist/src/hooks/useWindowSize.js +43 -0
- package/dist/src/hooks/useWindowSize.tsx +51 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/src/components/atoms/MenuItems/MenuItems.d.ts +0 -4
- package/dist/src/components/atoms/MenuItems/index.d.ts +0 -2
- package/dist/src/components/atoms/MenuItems/index.js +0 -1
- package/dist/src/components/atoms/MenuItems/index.ts +0 -2
- package/dist/src/components/atoms/TopBarMobile/TopBarMobile.d.ts +0 -7
- package/dist/src/components/atoms/TopBarMobile/TopBarMobile.js +0 -10
- package/dist/src/components/atoms/TopBarMobile/TopBarMobile.styled.d.ts +0 -1
- package/dist/src/components/atoms/TopBarMobile/TopBarMobile.styled.js +0 -49
- package/dist/src/components/atoms/TopBarMobile/TopBarMobile.styled.ts +0 -50
- package/dist/src/components/atoms/TopBarMobile/TopBarMobile.tsx +0 -22
- package/dist/src/components/atoms/TopBarMobile/index.d.ts +0 -1
- package/dist/src/components/atoms/TopBarMobile/index.js +0 -1
- package/dist/src/components/atoms/TopBarMobile/index.ts +0 -1
- /package/dist/src/components/atoms/{MenuItems/MenuItemProps.types.js → MenuItemsDeprecated/MenuItemsDeprecatedProps.types.js} +0 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
+
export interface Products {
|
|
3
|
+
categoryUrl?: string
|
|
4
|
+
isFeatured?: boolean
|
|
5
|
+
popularOrder: number
|
|
6
|
+
jumboTitle: string
|
|
7
|
+
linkText: string
|
|
8
|
+
slug: string
|
|
9
|
+
footerPopularDocument?: boolean
|
|
10
|
+
logoImgBig?: string
|
|
11
|
+
logoImgSmall?: string
|
|
12
|
+
categoryProduct?: {
|
|
13
|
+
name: string
|
|
14
|
+
icon: string
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface StrapiSearchBar {
|
|
19
|
+
title: string
|
|
20
|
+
placeholder: string
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface Routes {
|
|
24
|
+
CUSTOM_URL_FROM_APP_SUBDOMAIN: (url: string) => string
|
|
25
|
+
CUSTOM_URL_FROM_TARGET_ADDRESS: (url: string) => string
|
|
26
|
+
LEGAL_DOCUMENTS: string
|
|
27
|
+
LEGAL_DOCUMENTS_WITH_HASH: (category: string) => string
|
|
28
|
+
LEGAL_DOCUMENTS_WITH_CATEGORY: (category: string) => string
|
|
29
|
+
LOGIN: string
|
|
30
|
+
MY_DOCUMENTS: string
|
|
31
|
+
REGISTER: string
|
|
32
|
+
RATAFIA_LOGIN: string
|
|
33
|
+
SIGN_EDITOR: string
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface SearchBarProps {
|
|
37
|
+
products: Products[]
|
|
38
|
+
searchBarTexts: StrapiSearchBar
|
|
39
|
+
routes: Routes
|
|
40
|
+
handleResultClick: (product: string, link: string) => void
|
|
41
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SearchBar } from './SearchBar';
|
|
@@ -55,6 +55,10 @@
|
|
|
55
55
|
font-weight: bold;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
+
.e-text__inner {
|
|
59
|
+
grid-row: 1;
|
|
60
|
+
}
|
|
61
|
+
|
|
58
62
|
.form-group__label-icon {
|
|
59
63
|
color: var(--neutral-neutral-1);
|
|
60
64
|
font-weight: bold;
|
|
@@ -150,6 +154,8 @@
|
|
|
150
154
|
|
|
151
155
|
&--has-prefix {
|
|
152
156
|
width: 100%;
|
|
157
|
+
display: grid;
|
|
158
|
+
grid-template-columns: 1fr;
|
|
153
159
|
|
|
154
160
|
@include portrait-tablets {
|
|
155
161
|
width: 50%;
|
|
@@ -157,14 +163,23 @@
|
|
|
157
163
|
|
|
158
164
|
.has-currency-prefix {
|
|
159
165
|
padding-left: 2rem;
|
|
166
|
+
grid-column: 1;
|
|
167
|
+
grid-row: 2;
|
|
168
|
+
align-self: center;
|
|
160
169
|
}
|
|
161
170
|
|
|
162
171
|
.has-currency-suffix {
|
|
163
172
|
padding-right: 2rem;
|
|
173
|
+
grid-column: 1;
|
|
174
|
+
grid-row: 2;
|
|
175
|
+
align-self: center;
|
|
164
176
|
}
|
|
165
177
|
|
|
166
178
|
.has-percent-suffix {
|
|
167
179
|
padding-left: 0.75rem;
|
|
180
|
+
grid-column: 1;
|
|
181
|
+
grid-row: 2;
|
|
182
|
+
align-self: center;
|
|
168
183
|
}
|
|
169
184
|
}
|
|
170
185
|
|
|
@@ -185,27 +200,28 @@
|
|
|
185
200
|
}
|
|
186
201
|
|
|
187
202
|
.input-icon-currency-suffix {
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
203
|
+
grid-column: 1;
|
|
204
|
+
grid-row: 2;
|
|
205
|
+
align-self: center;
|
|
206
|
+
margin-left: calc(100% - 30px);
|
|
207
|
+
width: fit-content;
|
|
193
208
|
}
|
|
194
209
|
|
|
195
210
|
.input-icon-currency-prefix {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
211
|
+
grid-column: 1;
|
|
212
|
+
grid-row: 2;
|
|
213
|
+
align-self: center;
|
|
214
|
+
z-index: 1;
|
|
215
|
+
padding-left: 0.87rem;
|
|
216
|
+
width: fit-content;
|
|
201
217
|
}
|
|
202
218
|
|
|
203
219
|
.input-icon-percent-suffix {
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
220
|
+
grid-column: 1;
|
|
221
|
+
grid-row: 2;
|
|
222
|
+
align-self: center;
|
|
223
|
+
margin-left: calc(100% - 30px);
|
|
224
|
+
width: fit-content;
|
|
209
225
|
}
|
|
210
226
|
|
|
211
227
|
.formgroup--input__button {
|
|
@@ -124,7 +124,7 @@ export const MaskInput: Story = {
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
export const
|
|
127
|
+
export const WithSufixEuro: Story = {
|
|
128
128
|
args: {
|
|
129
129
|
name: 'prefix',
|
|
130
130
|
label: 'Price:',
|
|
@@ -146,7 +146,7 @@ export const WithPrefixNoEuro: Story = {
|
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
-
export const
|
|
149
|
+
export const WithSufixPercent: Story = {
|
|
150
150
|
args: {
|
|
151
151
|
name: 'prefix',
|
|
152
152
|
label: 'Price:',
|
|
@@ -156,3 +156,14 @@ export const WithPrefixPercent: Story = {
|
|
|
156
156
|
country: 'US'
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
+
|
|
160
|
+
export const WithPrefixPercent: Story = {
|
|
161
|
+
args: {
|
|
162
|
+
name: 'prefix',
|
|
163
|
+
label: 'Price:',
|
|
164
|
+
value: '20.30',
|
|
165
|
+
type: 'text',
|
|
166
|
+
prefix: 'currency',
|
|
167
|
+
country: 'CA'
|
|
168
|
+
}
|
|
169
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { MenuItemsDeprecated, Tooltip } from '../../atoms';
|
|
3
3
|
import { MenuCollapse24p } from '../../../../images/componentsSvg/MenuCollapse24p';
|
|
4
4
|
// import './TooltipMenu.scss'
|
|
5
5
|
const TooltipMenu = ({ options, onClick, label }) => {
|
|
6
|
-
const menu = _jsx(
|
|
6
|
+
const menu = _jsx(MenuItemsDeprecated, { list: options });
|
|
7
7
|
return (_jsx(Tooltip, { content: menu, allowHTML: true, interactive: true, position: 'bottom', trigger: 'click', children: _jsxs("div", { className: 'tooltip-menu__item', onClick: onClick, children: [_jsx(MenuCollapse24p, {}), _jsx("span", { className: 'actions-span sans-serif --extra-small', children: label })] }) }));
|
|
8
8
|
};
|
|
9
9
|
export default TooltipMenu;
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
/* eslint-disable jsx-a11y/click-events-have-key-events */
|
|
3
3
|
import React, { type FC } from 'react'
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { MenuItemsDeprecated, Tooltip } from '../../atoms'
|
|
6
6
|
import { MenuCollapse24p } from '../../../../images/componentsSvg/MenuCollapse24p'
|
|
7
7
|
import { type TooltipMenuProps } from './TooltipMenuProps.types'
|
|
8
8
|
// import './TooltipMenu.scss'
|
|
9
9
|
|
|
10
10
|
const TooltipMenu: FC<TooltipMenuProps> = ({ options, onClick, label }: TooltipMenuProps) => {
|
|
11
|
-
const menu = <
|
|
11
|
+
const menu = <MenuItemsDeprecated list={options}></MenuItemsDeprecated>
|
|
12
12
|
|
|
13
13
|
return (
|
|
14
14
|
<Tooltip content={menu} allowHTML={true} interactive={true} position='bottom' trigger='click'>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './AccordionItem';
|
|
2
2
|
export * from './ActionButtonHeaderRatafiaCardList';
|
|
3
3
|
export * from './AlsoKnownAs';
|
|
4
|
+
export * from './AllTypeDocumentsItemMenu';
|
|
4
5
|
export * from './Article';
|
|
5
6
|
export * from './BaseBoxList';
|
|
6
7
|
export * from './BenefitRatafiaCardList';
|
|
@@ -13,6 +14,7 @@ export * from './ContactCardList';
|
|
|
13
14
|
export * from './ContactInfo';
|
|
14
15
|
export * from './ContinueEditingBanner';
|
|
15
16
|
export * from './CountDownMessage';
|
|
17
|
+
export * from './DocumentListMenuSection';
|
|
16
18
|
export * from './EmailContactBox';
|
|
17
19
|
export * from './ExpertCardList';
|
|
18
20
|
export * from './FaqItem';
|
|
@@ -23,6 +25,7 @@ export * from './FreeDocModalContent';
|
|
|
23
25
|
export * from './HeaderRatafia';
|
|
24
26
|
export * from './KeyFactCardListRatafia';
|
|
25
27
|
export * from './MenuItemsSection';
|
|
28
|
+
export * from './MenuSectionTitle';
|
|
26
29
|
export * from './MidBannerRatafiaContent';
|
|
27
30
|
export * from './MidBannerRatafiaSample';
|
|
28
31
|
export * from './MoreDocsDesktop';
|
|
@@ -32,12 +35,14 @@ export * from './Pagination';
|
|
|
32
35
|
export * from './PhoneContactBoxDesktop';
|
|
33
36
|
export * from './PhoneContactBoxMobile';
|
|
34
37
|
export * from './PopularDocs';
|
|
38
|
+
export * from './ProductListMenu';
|
|
35
39
|
export * from './PricingCard';
|
|
36
40
|
export * from './RatafiaResultCardList';
|
|
37
41
|
export * from './RatafiaResultTabList';
|
|
38
42
|
export * from './SocialLinks';
|
|
39
43
|
export * from './SubscriptionCard';
|
|
40
44
|
export * from './Snackbar';
|
|
45
|
+
export * from './SearchBar';
|
|
41
46
|
export * from './StepGetForm';
|
|
42
47
|
export * from './StepRatafiaCardList';
|
|
43
48
|
export * from './SubtypeDocumentCard';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './AccordionItem';
|
|
2
2
|
export * from './ActionButtonHeaderRatafiaCardList';
|
|
3
3
|
export * from './AlsoKnownAs';
|
|
4
|
+
export * from './AllTypeDocumentsItemMenu';
|
|
4
5
|
export * from './Article';
|
|
5
6
|
export * from './BaseBoxList';
|
|
6
7
|
export * from './BenefitRatafiaCardList';
|
|
@@ -13,6 +14,7 @@ export * from './ContactCardList';
|
|
|
13
14
|
export * from './ContactInfo';
|
|
14
15
|
export * from './ContinueEditingBanner';
|
|
15
16
|
export * from './CountDownMessage';
|
|
17
|
+
export * from './DocumentListMenuSection';
|
|
16
18
|
export * from './EmailContactBox';
|
|
17
19
|
export * from './ExpertCardList';
|
|
18
20
|
export * from './FaqItem';
|
|
@@ -23,6 +25,7 @@ export * from './FreeDocModalContent';
|
|
|
23
25
|
export * from './HeaderRatafia';
|
|
24
26
|
export * from './KeyFactCardListRatafia';
|
|
25
27
|
export * from './MenuItemsSection';
|
|
28
|
+
export * from './MenuSectionTitle';
|
|
26
29
|
export * from './MidBannerRatafiaContent';
|
|
27
30
|
export * from './MidBannerRatafiaSample';
|
|
28
31
|
export * from './MoreDocsDesktop';
|
|
@@ -32,12 +35,14 @@ export * from './Pagination';
|
|
|
32
35
|
export * from './PhoneContactBoxDesktop';
|
|
33
36
|
export * from './PhoneContactBoxMobile';
|
|
34
37
|
export * from './PopularDocs';
|
|
38
|
+
export * from './ProductListMenu';
|
|
35
39
|
export * from './PricingCard';
|
|
36
40
|
export * from './RatafiaResultCardList';
|
|
37
41
|
export * from './RatafiaResultTabList';
|
|
38
42
|
export * from './SocialLinks';
|
|
39
43
|
export * from './SubscriptionCard';
|
|
40
44
|
export * from './Snackbar';
|
|
45
|
+
export * from './SearchBar';
|
|
41
46
|
export * from './StepGetForm';
|
|
42
47
|
export * from './StepRatafiaCardList';
|
|
43
48
|
export * from './SubtypeDocumentCard';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './AccordionItem'
|
|
2
2
|
export * from './ActionButtonHeaderRatafiaCardList'
|
|
3
3
|
export * from './AlsoKnownAs'
|
|
4
|
+
export * from './AllTypeDocumentsItemMenu'
|
|
4
5
|
export * from './Article'
|
|
5
6
|
export * from './BaseBoxList'
|
|
6
7
|
export * from './BenefitRatafiaCardList'
|
|
@@ -13,6 +14,7 @@ export * from './ContactCardList'
|
|
|
13
14
|
export * from './ContactInfo'
|
|
14
15
|
export * from './ContinueEditingBanner'
|
|
15
16
|
export * from './CountDownMessage'
|
|
17
|
+
export * from './DocumentListMenuSection'
|
|
16
18
|
export * from './EmailContactBox'
|
|
17
19
|
export * from './ExpertCardList'
|
|
18
20
|
export * from './FaqItem'
|
|
@@ -23,6 +25,7 @@ export * from './FreeDocModalContent'
|
|
|
23
25
|
export * from './HeaderRatafia'
|
|
24
26
|
export * from './KeyFactCardListRatafia'
|
|
25
27
|
export * from './MenuItemsSection'
|
|
28
|
+
export * from './MenuSectionTitle'
|
|
26
29
|
export * from './MidBannerRatafiaContent'
|
|
27
30
|
export * from './MidBannerRatafiaSample'
|
|
28
31
|
export * from './MoreDocsDesktop'
|
|
@@ -32,12 +35,14 @@ export * from './Pagination'
|
|
|
32
35
|
export * from './PhoneContactBoxDesktop'
|
|
33
36
|
export * from './PhoneContactBoxMobile'
|
|
34
37
|
export * from './PopularDocs'
|
|
38
|
+
export * from './ProductListMenu'
|
|
35
39
|
export * from './PricingCard'
|
|
36
40
|
export * from './RatafiaResultCardList'
|
|
37
41
|
export * from './RatafiaResultTabList'
|
|
38
42
|
export * from './SocialLinks'
|
|
39
43
|
export * from './SubscriptionCard'
|
|
40
44
|
export * from './Snackbar'
|
|
45
|
+
export * from './SearchBar'
|
|
41
46
|
export * from './StepGetForm'
|
|
42
47
|
export * from './StepRatafiaCardList'
|
|
43
48
|
export * from './SubtypeDocumentCard'
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Button } from '../../atoms/Button';
|
|
3
|
+
import { DocumentListMenuSection } from '../../molecules/DocumentListMenuSection';
|
|
4
|
+
import { DocumentListMenuStyled } from './DocumentListMenu.styled';
|
|
5
|
+
export const DocumentListMenu = ({ routes, seeAllLegalDocs, seeAllTypeDocs, finalMenu, hasSubCategoryPage, setCookiePolicyFunc }) => {
|
|
6
|
+
return (_jsxs(DocumentListMenuStyled, { className: 'document-list-menu', children: [_jsx("div", { className: 'documents-wrapper', children: finalMenu.map((item, index) => (_jsx("div", { className: 'products__list__section-container', children: _jsx(DocumentListMenuSection, { products: item.products, type: item.type, icon: item.icon, seeAllTypeDocs: seeAllTypeDocs, slug: finalMenu[0].slug, hasSubCategoryPage: hasSubCategoryPage, routes: routes, setCookiePolicyFunc: setCookiePolicyFunc }) }, index))) }), _jsx("div", { className: 'all-documents-button-wrapper', children: _jsx(Button, { color: 'transparent', centered: true, size: 'M', givenClass: 'all-documents-button', link: routes.LEGAL_DOCUMENTS, label: seeAllLegalDocs, dataQa: 'button-see-all-documents' }) })] }));
|
|
7
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DocumentListMenuStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { device } from '../../../globalStyles/breakpoints';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
export const DocumentListMenuStyled = styled.div `
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-flow: column nowrap;
|
|
6
|
+
background: var(--others-white);
|
|
7
|
+
width: 100%;
|
|
8
|
+
padding: 1rem 0;
|
|
9
|
+
|
|
10
|
+
@media ${device['landscape-tablets']} {
|
|
11
|
+
display: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.documents-wrapper {
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-flow: row wrap;
|
|
17
|
+
align-items: flex-start;
|
|
18
|
+
margin: auto;
|
|
19
|
+
|
|
20
|
+
@media ${device['landscape-tablets']} {
|
|
21
|
+
width: 696px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@media ${device['laptop']} {
|
|
25
|
+
width: 910px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@media ${device['desktop-xl']} {
|
|
29
|
+
width: 1128px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.products__list__section-container {
|
|
33
|
+
text-align: left;
|
|
34
|
+
width: 100%;
|
|
35
|
+
|
|
36
|
+
@media ${device['landscape-tablets']} {
|
|
37
|
+
width: 33%;
|
|
38
|
+
padding-right: 1rem;
|
|
39
|
+
&:nth-child(3) {
|
|
40
|
+
padding-right: 0;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@media ${device['laptop']} {
|
|
45
|
+
width: 20%;
|
|
46
|
+
&:nth-child(3) {
|
|
47
|
+
padding-right: 1rem;
|
|
48
|
+
}
|
|
49
|
+
&:last-child {
|
|
50
|
+
padding-right: 0;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.all-documents-button-wrapper {
|
|
57
|
+
display: flex;
|
|
58
|
+
justify-content: center;
|
|
59
|
+
width: 100%;
|
|
60
|
+
|
|
61
|
+
.all-documents-button {
|
|
62
|
+
margin: 1rem auto;
|
|
63
|
+
max-width: 330px;
|
|
64
|
+
width: 100%;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
`;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { device } from '../../../globalStyles/breakpoints'
|
|
2
|
+
import styled from 'styled-components'
|
|
3
|
+
|
|
4
|
+
export const DocumentListMenuStyled = styled.div`
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-flow: column nowrap;
|
|
7
|
+
background: var(--others-white);
|
|
8
|
+
width: 100%;
|
|
9
|
+
padding: 1rem 0;
|
|
10
|
+
|
|
11
|
+
@media ${device['landscape-tablets']} {
|
|
12
|
+
display: none;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.documents-wrapper {
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-flow: row wrap;
|
|
18
|
+
align-items: flex-start;
|
|
19
|
+
margin: auto;
|
|
20
|
+
|
|
21
|
+
@media ${device['landscape-tablets']} {
|
|
22
|
+
width: 696px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@media ${device['laptop']} {
|
|
26
|
+
width: 910px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@media ${device['desktop-xl']} {
|
|
30
|
+
width: 1128px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.products__list__section-container {
|
|
34
|
+
text-align: left;
|
|
35
|
+
width: 100%;
|
|
36
|
+
|
|
37
|
+
@media ${device['landscape-tablets']} {
|
|
38
|
+
width: 33%;
|
|
39
|
+
padding-right: 1rem;
|
|
40
|
+
&:nth-child(3) {
|
|
41
|
+
padding-right: 0;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@media ${device['laptop']} {
|
|
46
|
+
width: 20%;
|
|
47
|
+
&:nth-child(3) {
|
|
48
|
+
padding-right: 1rem;
|
|
49
|
+
}
|
|
50
|
+
&:last-child {
|
|
51
|
+
padding-right: 0;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.all-documents-button-wrapper {
|
|
58
|
+
display: flex;
|
|
59
|
+
justify-content: center;
|
|
60
|
+
width: 100%;
|
|
61
|
+
|
|
62
|
+
.all-documents-button {
|
|
63
|
+
margin: 1rem auto;
|
|
64
|
+
max-width: 330px;
|
|
65
|
+
width: 100%;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
`
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Button } from '../../atoms/Button'
|
|
2
|
+
import React from 'react'
|
|
3
|
+
|
|
4
|
+
import { type DocumentListMenuProps } from './DocumentListMenuProps.types'
|
|
5
|
+
import { DocumentListMenuSection } from '../../molecules/DocumentListMenuSection'
|
|
6
|
+
import { DocumentListMenuStyled } from './DocumentListMenu.styled'
|
|
7
|
+
|
|
8
|
+
export const DocumentListMenu: React.FC<DocumentListMenuProps> = ({
|
|
9
|
+
routes,
|
|
10
|
+
seeAllLegalDocs,
|
|
11
|
+
seeAllTypeDocs,
|
|
12
|
+
finalMenu,
|
|
13
|
+
hasSubCategoryPage,
|
|
14
|
+
setCookiePolicyFunc
|
|
15
|
+
}) => {
|
|
16
|
+
return (
|
|
17
|
+
<DocumentListMenuStyled className={'document-list-menu'}>
|
|
18
|
+
<div className={'documents-wrapper'}>
|
|
19
|
+
{finalMenu.map((item, index) => (
|
|
20
|
+
<div className='products__list__section-container' key={index}>
|
|
21
|
+
<DocumentListMenuSection
|
|
22
|
+
products={item.products}
|
|
23
|
+
type={item.type}
|
|
24
|
+
icon={item.icon}
|
|
25
|
+
seeAllTypeDocs={seeAllTypeDocs}
|
|
26
|
+
slug={finalMenu[0].slug}
|
|
27
|
+
hasSubCategoryPage={hasSubCategoryPage}
|
|
28
|
+
routes={routes}
|
|
29
|
+
setCookiePolicyFunc={setCookiePolicyFunc}
|
|
30
|
+
></DocumentListMenuSection>
|
|
31
|
+
</div>
|
|
32
|
+
))}
|
|
33
|
+
</div>
|
|
34
|
+
<div className={'all-documents-button-wrapper'}>
|
|
35
|
+
<Button
|
|
36
|
+
color='transparent'
|
|
37
|
+
centered
|
|
38
|
+
size='M'
|
|
39
|
+
givenClass='all-documents-button'
|
|
40
|
+
link={routes.LEGAL_DOCUMENTS}
|
|
41
|
+
label={seeAllLegalDocs}
|
|
42
|
+
dataQa='button-see-all-documents'
|
|
43
|
+
></Button>
|
|
44
|
+
</div>
|
|
45
|
+
</DocumentListMenuStyled>
|
|
46
|
+
)
|
|
47
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Routes } from '../../sections/Header/HeaderProps.types';
|
|
2
|
+
export interface ProductListMenuProps {
|
|
3
|
+
slug: string;
|
|
4
|
+
linkText: string;
|
|
5
|
+
categoryUrl?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface DocumentListMenuSectionProps {
|
|
8
|
+
icon: string;
|
|
9
|
+
type: string;
|
|
10
|
+
products: ProductListMenuProps[];
|
|
11
|
+
slug: string;
|
|
12
|
+
seeAllTypeDocs: string;
|
|
13
|
+
}
|
|
14
|
+
export interface DocumentListMenuProps {
|
|
15
|
+
seeAllLegalDocs: string;
|
|
16
|
+
seeAllTypeDocs: string;
|
|
17
|
+
routes: Routes;
|
|
18
|
+
finalMenu: DocumentListMenuSectionProps[];
|
|
19
|
+
hasSubCategoryPage: boolean;
|
|
20
|
+
setCookiePolicyFunc: (url?: string, setCookiePolicyAccepted?: boolean) => void;
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Routes } from '../../sections/Header/HeaderProps.types'
|
|
2
|
+
|
|
3
|
+
export interface ProductListMenuProps {
|
|
4
|
+
slug: string
|
|
5
|
+
linkText: string
|
|
6
|
+
categoryUrl?: string
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface DocumentListMenuSectionProps {
|
|
10
|
+
icon: string
|
|
11
|
+
type: string
|
|
12
|
+
products: ProductListMenuProps[]
|
|
13
|
+
slug: string
|
|
14
|
+
seeAllTypeDocs: string
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface DocumentListMenuProps {
|
|
18
|
+
seeAllLegalDocs: string
|
|
19
|
+
seeAllTypeDocs: string
|
|
20
|
+
routes: Routes
|
|
21
|
+
finalMenu: DocumentListMenuSectionProps[]
|
|
22
|
+
hasSubCategoryPage: boolean
|
|
23
|
+
setCookiePolicyFunc: (url?: string, setCookiePolicyAccepted?: boolean) => void
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DocumentListMenu } from './DocumentListMenu';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ArrowRight } from '../../../../images/componentsSvg/ArrowRight';
|
|
3
|
+
import { DocumentMainMenuStyled } from './DocumentMainMenu.styled';
|
|
4
|
+
import DocumentSubMenu from '../DocumentSubMenu/DocumentSubMenu';
|
|
5
|
+
export const DocumentMainMenu = ({ seeAllTypeDocs, allLegalDocs, allTypeDocs, setCookiePolicyFunc, routes, hasSubCategoryPage, finalMenu }) => {
|
|
6
|
+
return (_jsxs(DocumentMainMenuStyled, { children: [finalMenu.map((item, index) => (_jsxs("li", { className: 'menu-items-li', children: [item.type, _jsx("div", { className: 'icon-arrow', children: _jsx(ArrowRight, {}) }), _jsxs("ul", { className: 'submenu__list', children: [item.products.map((product, index) => (_jsx(DocumentSubMenu, { product: product, setCookiePolicyFunc: setCookiePolicyFunc, routes: routes }, index))), _jsx("li", { className: 'menu-items-li all-item', children: _jsx("a", { title: seeAllTypeDocs.replace(/{{type}}/g, item.type), "data-qa": `Header_Menu__${item.slug}_all-documents`, href: hasSubCategoryPage
|
|
7
|
+
? routes.LEGAL_DOCUMENTS_WITH_CATEGORY(item.slug)
|
|
8
|
+
: routes.LEGAL_DOCUMENTS_WITH_HASH(item.type), children: item.type.includes('Documents')
|
|
9
|
+
? allTypeDocs.replace(/{{type}}/g, item.type).replace('Documents', '')
|
|
10
|
+
: allTypeDocs.replace(/{{type}}/g, item.type) }) })] }, index)] }, index))), _jsx("li", { className: 'menu-items-li all-item', children: _jsx("a", { title: allLegalDocs, "data-qa": 'Header_Menu_Document_List_All_Documents', href: routes.LEGAL_DOCUMENTS, children: allLegalDocs }) })] }));
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DocumentMainMenuStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|