@npm_leadtech/legal-lib-components 7.14.0 → 7.15.0

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.
Files changed (224) hide show
  1. package/dist/src/components/atoms/DocumentStatus/DocumentStatus.js +1 -5
  2. package/dist/src/components/atoms/DocumentStatus/DocumentStatus.styled.js +0 -14
  3. package/dist/src/components/atoms/DocumentStatus/DocumentStatus.styled.ts +0 -14
  4. package/dist/src/components/atoms/DocumentStatus/DocumentStatus.tsx +0 -9
  5. package/dist/src/components/atoms/{MenuItemsDeprecated/MenuItemsDeprecatedProps.types.d.ts → MenuItems/MenuItemProps.types.d.ts} +1 -1
  6. package/dist/src/components/atoms/{MenuItemsDeprecated/MenuItemsDeprecatedProps.types.ts → MenuItems/MenuItemProps.types.ts} +1 -1
  7. package/dist/src/components/atoms/MenuItems/MenuItems.d.ts +4 -0
  8. package/dist/src/components/atoms/{MenuItemsDeprecated/MenuItemsDeprecated.js → MenuItems/MenuItems.js} +4 -4
  9. package/dist/src/components/{organisms → atoms}/MenuItems/MenuItems.styled.d.ts +1 -1
  10. package/dist/src/components/atoms/{MenuItemsDeprecated/MenuItemsDeprecated.styled.js → MenuItems/MenuItems.styled.js} +1 -1
  11. package/dist/src/components/atoms/{MenuItemsDeprecated/MenuItemsDeprecated.styled.ts → MenuItems/MenuItems.styled.ts} +1 -1
  12. package/dist/src/components/atoms/{MenuItemsDeprecated/MenuItemsDeprecated.tsx → MenuItems/MenuItems.tsx} +6 -12
  13. package/dist/src/components/atoms/MenuItems/index.d.ts +2 -0
  14. package/dist/src/components/atoms/MenuItems/index.js +1 -0
  15. package/dist/src/components/atoms/MenuItems/index.ts +2 -0
  16. package/dist/src/components/atoms/SidemenuTab/SidemenuTab.js +2 -2
  17. package/dist/src/components/atoms/SidemenuTab/SidemenuTab.tsx +2 -2
  18. package/dist/src/components/atoms/TopBar/TopBar.styled.js +1 -48
  19. package/dist/src/components/atoms/TopBar/TopBar.styled.ts +1 -48
  20. package/dist/src/components/atoms/TopBar/TopBar.tsx +1 -1
  21. package/dist/src/components/atoms/TopBarMobile/TopBarMobile.d.ts +7 -0
  22. package/dist/src/components/atoms/TopBarMobile/TopBarMobile.js +10 -0
  23. package/dist/src/components/atoms/TopBarMobile/TopBarMobile.styled.d.ts +1 -0
  24. package/dist/src/components/atoms/TopBarMobile/TopBarMobile.styled.js +49 -0
  25. package/dist/src/components/atoms/TopBarMobile/TopBarMobile.styled.ts +50 -0
  26. package/dist/src/components/atoms/TopBarMobile/TopBarMobile.tsx +22 -0
  27. package/dist/src/components/atoms/TopBarMobile/index.d.ts +1 -0
  28. package/dist/src/components/atoms/TopBarMobile/index.js +1 -0
  29. package/dist/src/components/atoms/TopBarMobile/index.ts +1 -0
  30. package/dist/src/components/atoms/index.d.ts +2 -2
  31. package/dist/src/components/atoms/index.js +2 -2
  32. package/dist/src/components/atoms/index.ts +2 -2
  33. package/dist/src/components/molecules/MenuItemsSection/MenuItemsSection.js +2 -2
  34. package/dist/src/components/molecules/MenuItemsSection/MenuItemsSection.tsx +2 -2
  35. package/dist/src/components/molecules/MenuItemsSection/MenuItemsSectionProps.types.d.ts +1 -1
  36. package/dist/src/components/molecules/MenuItemsSection/MenuItemsSectionProps.types.ts +1 -1
  37. package/dist/src/components/molecules/NavBarDropDown/NavBarDropDown.js +2 -2
  38. package/dist/src/components/molecules/NavBarDropDown/NavBarDropDown.tsx +2 -2
  39. package/dist/src/components/molecules/TooltipMenu/TooltipMenu.js +2 -2
  40. package/dist/src/components/molecules/TooltipMenu/TooltipMenu.tsx +2 -2
  41. package/dist/src/components/molecules/index.d.ts +0 -5
  42. package/dist/src/components/molecules/index.js +0 -5
  43. package/dist/src/components/molecules/index.ts +0 -5
  44. package/dist/src/components/organisms/index.d.ts +0 -4
  45. package/dist/src/components/organisms/index.js +0 -4
  46. package/dist/src/components/organisms/index.ts +0 -4
  47. package/dist/src/components/sections/index.d.ts +0 -1
  48. package/dist/src/components/sections/index.js +0 -1
  49. package/dist/src/components/sections/index.ts +0 -1
  50. package/dist/tsconfig.build.tsbuildinfo +1 -1
  51. package/package.json +1 -1
  52. package/dist/images/componentsSvg/RatafiaIcon24px.d.ts +0 -6
  53. package/dist/images/componentsSvg/RatafiaIcon24px.js +0 -2
  54. package/dist/images/componentsSvg/SearchIcon.d.ts +0 -4
  55. package/dist/images/componentsSvg/SearchIcon.js +0 -4
  56. package/dist/images/componentsSvg/SearchIcon.tsx +0 -26
  57. package/dist/images/svg/arrow-down.svg +0 -3
  58. package/dist/images/svg/business-type.svg +0 -3
  59. package/dist/images/svg/clear-24-px.svg +0 -14
  60. package/dist/images/svg/men.svg +0 -5
  61. package/dist/src/components/atoms/DropdownInput/DropdownInput.d.ts +0 -3
  62. package/dist/src/components/atoms/DropdownInput/DropdownInput.js +0 -24
  63. package/dist/src/components/atoms/DropdownInput/DropdownInput.styled.d.ts +0 -1
  64. package/dist/src/components/atoms/DropdownInput/DropdownInput.styled.js +0 -147
  65. package/dist/src/components/atoms/DropdownInput/DropdownInput.styled.ts +0 -149
  66. package/dist/src/components/atoms/DropdownInput/DropdownInput.tsx +0 -60
  67. package/dist/src/components/atoms/DropdownInput/DropdownInputProps.types.d.ts +0 -8
  68. package/dist/src/components/atoms/DropdownInput/DropdownInputProps.types.js +0 -2
  69. package/dist/src/components/atoms/DropdownInput/DropdownInputProps.types.ts +0 -10
  70. package/dist/src/components/atoms/DropdownInput/index.d.ts +0 -2
  71. package/dist/src/components/atoms/DropdownInput/index.js +0 -1
  72. package/dist/src/components/atoms/DropdownInput/index.ts +0 -2
  73. package/dist/src/components/atoms/MenuItemsDeprecated/MenuItemsDeprecated.d.ts +0 -4
  74. package/dist/src/components/atoms/MenuItemsDeprecated/MenuItemsDeprecated.styled.d.ts +0 -1
  75. package/dist/src/components/atoms/MenuItemsDeprecated/index.d.ts +0 -2
  76. package/dist/src/components/atoms/MenuItemsDeprecated/index.js +0 -1
  77. package/dist/src/components/atoms/MenuItemsDeprecated/index.ts +0 -2
  78. package/dist/src/components/molecules/AllTypeDocumentsItemMenu/AllTypeDocumentsItemMenu.d.ts +0 -3
  79. package/dist/src/components/molecules/AllTypeDocumentsItemMenu/AllTypeDocumentsItemMenu.js +0 -6
  80. package/dist/src/components/molecules/AllTypeDocumentsItemMenu/AllTypeDocumentsItemMenu.styled.d.ts +0 -1
  81. package/dist/src/components/molecules/AllTypeDocumentsItemMenu/AllTypeDocumentsItemMenu.styled.js +0 -18
  82. package/dist/src/components/molecules/AllTypeDocumentsItemMenu/AllTypeDocumentsItemMenu.styled.ts +0 -19
  83. package/dist/src/components/molecules/AllTypeDocumentsItemMenu/AllTypeDocumentsItemMenu.tsx +0 -22
  84. package/dist/src/components/molecules/AllTypeDocumentsItemMenu/AllTypeDocumentsItemMenuProps.types.d.ts +0 -8
  85. package/dist/src/components/molecules/AllTypeDocumentsItemMenu/AllTypeDocumentsItemMenuProps.types.js +0 -1
  86. package/dist/src/components/molecules/AllTypeDocumentsItemMenu/AllTypeDocumentsItemMenuProps.types.ts +0 -9
  87. package/dist/src/components/molecules/AllTypeDocumentsItemMenu/index.d.ts +0 -2
  88. package/dist/src/components/molecules/AllTypeDocumentsItemMenu/index.js +0 -1
  89. package/dist/src/components/molecules/AllTypeDocumentsItemMenu/index.ts +0 -2
  90. package/dist/src/components/molecules/DocumentListMenuSection/DocumentListMenuSection.d.ts +0 -3
  91. package/dist/src/components/molecules/DocumentListMenuSection/DocumentListMenuSection.js +0 -7
  92. package/dist/src/components/molecules/DocumentListMenuSection/DocumentListMenuSection.styled.d.ts +0 -1
  93. package/dist/src/components/molecules/DocumentListMenuSection/DocumentListMenuSection.styled.js +0 -20
  94. package/dist/src/components/molecules/DocumentListMenuSection/DocumentListMenuSection.styled.ts +0 -21
  95. package/dist/src/components/molecules/DocumentListMenuSection/DocumentListMenuSection.tsx +0 -35
  96. package/dist/src/components/molecules/DocumentListMenuSection/DocumentListMenuSectionProps.types.d.ts +0 -16
  97. package/dist/src/components/molecules/DocumentListMenuSection/DocumentListMenuSectionProps.types.js +0 -1
  98. package/dist/src/components/molecules/DocumentListMenuSection/DocumentListMenuSectionProps.types.ts +0 -18
  99. package/dist/src/components/molecules/DocumentListMenuSection/index.d.ts +0 -2
  100. package/dist/src/components/molecules/DocumentListMenuSection/index.js +0 -1
  101. package/dist/src/components/molecules/DocumentListMenuSection/index.ts +0 -2
  102. package/dist/src/components/molecules/MenuSectionTitle/MenuSectionTitle.d.ts +0 -3
  103. package/dist/src/components/molecules/MenuSectionTitle/MenuSectionTitle.js +0 -5
  104. package/dist/src/components/molecules/MenuSectionTitle/MenuSectionTitle.styled.d.ts +0 -1
  105. package/dist/src/components/molecules/MenuSectionTitle/MenuSectionTitle.styled.js +0 -26
  106. package/dist/src/components/molecules/MenuSectionTitle/MenuSectionTitle.styled.ts +0 -27
  107. package/dist/src/components/molecules/MenuSectionTitle/MenuSectionTitle.tsx +0 -17
  108. package/dist/src/components/molecules/MenuSectionTitle/MenuSectionTitleProps.types.d.ts +0 -4
  109. package/dist/src/components/molecules/MenuSectionTitle/MenuSectionTitleProps.types.js +0 -1
  110. package/dist/src/components/molecules/MenuSectionTitle/MenuSectionTitleProps.types.ts +0 -4
  111. package/dist/src/components/molecules/MenuSectionTitle/index.d.ts +0 -2
  112. package/dist/src/components/molecules/MenuSectionTitle/index.js +0 -1
  113. package/dist/src/components/molecules/MenuSectionTitle/index.ts +0 -2
  114. package/dist/src/components/molecules/NavMobileContactBar/NavMobileContactBar.d.ts +0 -4
  115. package/dist/src/components/molecules/NavMobileContactBar/NavMobileContactBar.js +0 -7
  116. package/dist/src/components/molecules/NavMobileContactBar/NavMobileContactBar.styled.d.ts +0 -1
  117. package/dist/src/components/molecules/NavMobileContactBar/NavMobileContactBar.styled.js +0 -34
  118. package/dist/src/components/molecules/NavMobileContactBar/NavMobileContactBar.styled.ts +0 -35
  119. package/dist/src/components/molecules/NavMobileContactBar/NavMobileContactBar.tsx +0 -23
  120. package/dist/src/components/molecules/NavMobileContactBar/NavMobileContactBarProps.types.d.ts +0 -4
  121. package/dist/src/components/molecules/NavMobileContactBar/NavMobileContactBarProps.types.js +0 -1
  122. package/dist/src/components/molecules/NavMobileContactBar/NavMobileContactBarProps.types.ts +0 -4
  123. package/dist/src/components/molecules/NavMobileContactBar/index.d.ts +0 -2
  124. package/dist/src/components/molecules/NavMobileContactBar/index.js +0 -1
  125. package/dist/src/components/molecules/NavMobileContactBar/index.ts +0 -2
  126. package/dist/src/components/molecules/ProductListMenu/ProductListMenu.d.ts +0 -3
  127. package/dist/src/components/molecules/ProductListMenu/ProductListMenu.js +0 -5
  128. package/dist/src/components/molecules/ProductListMenu/ProductListMenu.styled.d.ts +0 -1
  129. package/dist/src/components/molecules/ProductListMenu/ProductListMenu.styled.js +0 -18
  130. package/dist/src/components/molecules/ProductListMenu/ProductListMenu.styled.ts +0 -19
  131. package/dist/src/components/molecules/ProductListMenu/ProductListMenu.tsx +0 -25
  132. package/dist/src/components/molecules/ProductListMenu/ProductListMenuProps.types.d.ts +0 -8
  133. package/dist/src/components/molecules/ProductListMenu/ProductListMenuProps.types.js +0 -1
  134. package/dist/src/components/molecules/ProductListMenu/ProductListMenuProps.types.ts +0 -9
  135. package/dist/src/components/molecules/ProductListMenu/index.d.ts +0 -2
  136. package/dist/src/components/molecules/ProductListMenu/index.js +0 -1
  137. package/dist/src/components/molecules/ProductListMenu/index.ts +0 -2
  138. package/dist/src/components/molecules/SearchBar/SearchBar.d.ts +0 -3
  139. package/dist/src/components/molecules/SearchBar/SearchBar.js +0 -33
  140. package/dist/src/components/molecules/SearchBar/SearchBar.styled.d.ts +0 -1
  141. package/dist/src/components/molecules/SearchBar/SearchBar.styled.js +0 -62
  142. package/dist/src/components/molecules/SearchBar/SearchBar.styled.ts +0 -63
  143. package/dist/src/components/molecules/SearchBar/SearchBar.tsx +0 -72
  144. package/dist/src/components/molecules/SearchBar/SearchBarProps.types.d.ts +0 -37
  145. package/dist/src/components/molecules/SearchBar/SearchBarProps.types.js +0 -1
  146. package/dist/src/components/molecules/SearchBar/SearchBarProps.types.ts +0 -41
  147. package/dist/src/components/molecules/SearchBar/index.d.ts +0 -2
  148. package/dist/src/components/molecules/SearchBar/index.js +0 -1
  149. package/dist/src/components/molecules/SearchBar/index.ts +0 -2
  150. package/dist/src/components/organisms/DocumentListMenu/DocumentListMenu.d.ts +0 -3
  151. package/dist/src/components/organisms/DocumentListMenu/DocumentListMenu.js +0 -7
  152. package/dist/src/components/organisms/DocumentListMenu/DocumentListMenu.styled.d.ts +0 -1
  153. package/dist/src/components/organisms/DocumentListMenu/DocumentListMenu.styled.js +0 -67
  154. package/dist/src/components/organisms/DocumentListMenu/DocumentListMenu.styled.ts +0 -68
  155. package/dist/src/components/organisms/DocumentListMenu/DocumentListMenu.tsx +0 -47
  156. package/dist/src/components/organisms/DocumentListMenu/DocumentListMenuProps.types.d.ts +0 -21
  157. package/dist/src/components/organisms/DocumentListMenu/DocumentListMenuProps.types.js +0 -1
  158. package/dist/src/components/organisms/DocumentListMenu/DocumentListMenuProps.types.ts +0 -24
  159. package/dist/src/components/organisms/DocumentListMenu/index.d.ts +0 -2
  160. package/dist/src/components/organisms/DocumentListMenu/index.js +0 -1
  161. package/dist/src/components/organisms/DocumentListMenu/index.ts +0 -2
  162. package/dist/src/components/organisms/DocumentMainMenu/DocumentMainMenu.d.ts +0 -3
  163. package/dist/src/components/organisms/DocumentMainMenu/DocumentMainMenu.js +0 -11
  164. package/dist/src/components/organisms/DocumentMainMenu/DocumentMainMenu.styled.d.ts +0 -1
  165. package/dist/src/components/organisms/DocumentMainMenu/DocumentMainMenu.styled.js +0 -94
  166. package/dist/src/components/organisms/DocumentMainMenu/DocumentMainMenu.styled.ts +0 -95
  167. package/dist/src/components/organisms/DocumentMainMenu/DocumentMainMenu.tsx +0 -59
  168. package/dist/src/components/organisms/DocumentMainMenu/DocumentMainMenuProps.types.d.ts +0 -22
  169. package/dist/src/components/organisms/DocumentMainMenu/DocumentMainMenuProps.types.js +0 -1
  170. package/dist/src/components/organisms/DocumentMainMenu/DocumentMainMenuProps.types.ts +0 -25
  171. package/dist/src/components/organisms/DocumentMainMenu/index.d.ts +0 -2
  172. package/dist/src/components/organisms/DocumentMainMenu/index.js +0 -1
  173. package/dist/src/components/organisms/DocumentMainMenu/index.ts +0 -2
  174. package/dist/src/components/organisms/DocumentSubMenu/DocumentSubMenu.d.ts +0 -4
  175. package/dist/src/components/organisms/DocumentSubMenu/DocumentSubMenu.js +0 -7
  176. package/dist/src/components/organisms/DocumentSubMenu/DocumentSubMenu.styled.d.ts +0 -1
  177. package/dist/src/components/organisms/DocumentSubMenu/DocumentSubMenu.styled.js +0 -27
  178. package/dist/src/components/organisms/DocumentSubMenu/DocumentSubMenu.styled.ts +0 -28
  179. package/dist/src/components/organisms/DocumentSubMenu/DocumentSubMenu.tsx +0 -21
  180. package/dist/src/components/organisms/DocumentSubMenu/DocumentSubMenuProps.types.d.ts +0 -7
  181. package/dist/src/components/organisms/DocumentSubMenu/DocumentSubMenuProps.types.js +0 -1
  182. package/dist/src/components/organisms/DocumentSubMenu/DocumentSubMenuProps.types.ts +0 -8
  183. package/dist/src/components/organisms/DocumentSubMenu/index.d.ts +0 -2
  184. package/dist/src/components/organisms/DocumentSubMenu/index.js +0 -1
  185. package/dist/src/components/organisms/DocumentSubMenu/index.ts +0 -2
  186. package/dist/src/components/organisms/MenuItems/MenuItems.d.ts +0 -3
  187. package/dist/src/components/organisms/MenuItems/MenuItems.js +0 -10
  188. package/dist/src/components/organisms/MenuItems/MenuItems.styled.js +0 -719
  189. package/dist/src/components/organisms/MenuItems/MenuItems.styled.ts +0 -723
  190. package/dist/src/components/organisms/MenuItems/MenuItems.tsx +0 -81
  191. package/dist/src/components/organisms/MenuItems/MenuItemsProps.types.d.ts +0 -45
  192. package/dist/src/components/organisms/MenuItems/MenuItemsProps.types.js +0 -1
  193. package/dist/src/components/organisms/MenuItems/MenuItemsProps.types.ts +0 -46
  194. package/dist/src/components/organisms/MenuItems/index.d.ts +0 -2
  195. package/dist/src/components/organisms/MenuItems/index.js +0 -1
  196. package/dist/src/components/organisms/MenuItems/index.ts +0 -2
  197. package/dist/src/components/organisms/NavMenu/NavMenu.d.ts +0 -3
  198. package/dist/src/components/organisms/NavMenu/NavMenu.js +0 -10
  199. package/dist/src/components/organisms/NavMenu/NavMenu.styled.d.ts +0 -1
  200. package/dist/src/components/organisms/NavMenu/NavMenu.styled.js +0 -644
  201. package/dist/src/components/organisms/NavMenu/NavMenu.styled.ts +0 -648
  202. package/dist/src/components/organisms/NavMenu/NavMenu.tsx +0 -121
  203. package/dist/src/components/organisms/NavMenu/NavMenuProps.types.d.ts +0 -80
  204. package/dist/src/components/organisms/NavMenu/NavMenuProps.types.js +0 -1
  205. package/dist/src/components/organisms/NavMenu/NavMenuProps.types.ts +0 -82
  206. package/dist/src/components/organisms/NavMenu/index.d.ts +0 -2
  207. package/dist/src/components/organisms/NavMenu/index.js +0 -1
  208. package/dist/src/components/organisms/NavMenu/index.ts +0 -2
  209. package/dist/src/components/sections/Header/Header.d.ts +0 -4
  210. package/dist/src/components/sections/Header/Header.js +0 -11
  211. package/dist/src/components/sections/Header/Header.styled.d.ts +0 -1
  212. package/dist/src/components/sections/Header/Header.styled.js +0 -136
  213. package/dist/src/components/sections/Header/Header.styled.ts +0 -137
  214. package/dist/src/components/sections/Header/Header.tsx +0 -28
  215. package/dist/src/components/sections/Header/HeaderProps.types.d.ts +0 -97
  216. package/dist/src/components/sections/Header/HeaderProps.types.js +0 -1
  217. package/dist/src/components/sections/Header/HeaderProps.types.ts +0 -101
  218. package/dist/src/components/sections/Header/index.d.ts +0 -2
  219. package/dist/src/components/sections/Header/index.js +0 -1
  220. package/dist/src/components/sections/Header/index.ts +0 -2
  221. package/dist/src/hooks/useWindowSize.d.ts +0 -6
  222. package/dist/src/hooks/useWindowSize.js +0 -43
  223. package/dist/src/hooks/useWindowSize.tsx +0 -51
  224. /package/dist/src/components/atoms/{MenuItemsDeprecated/MenuItemsDeprecatedProps.types.js → MenuItems/MenuItemProps.types.js} +0 -0
@@ -1,37 +0,0 @@
1
- export interface Products {
2
- categoryUrl?: string;
3
- isFeatured?: boolean;
4
- popularOrder: number;
5
- jumboTitle: string;
6
- linkText: string;
7
- slug: string;
8
- footerPopularDocument?: boolean;
9
- logoImgBig?: string;
10
- logoImgSmall?: string;
11
- categoryProduct?: {
12
- name: string;
13
- icon: string;
14
- };
15
- }
16
- export interface StrapiSearchBar {
17
- title: string;
18
- placeholder: string;
19
- }
20
- export interface Routes {
21
- CUSTOM_URL_FROM_APP_SUBDOMAIN: (url: string) => string;
22
- CUSTOM_URL_FROM_TARGET_ADDRESS: (url: string) => string;
23
- LEGAL_DOCUMENTS: string;
24
- LEGAL_DOCUMENTS_WITH_HASH: (category: string) => string;
25
- LEGAL_DOCUMENTS_WITH_CATEGORY: (category: string) => string;
26
- LOGIN: string;
27
- MY_DOCUMENTS: string;
28
- REGISTER: string;
29
- RATAFIA_LOGIN: string;
30
- SIGN_EDITOR: string;
31
- }
32
- export interface SearchBarProps {
33
- products: Products[];
34
- searchBarTexts: StrapiSearchBar;
35
- routes: Routes;
36
- handleResultClick: (product: string, link: string) => void;
37
- }
@@ -1,41 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- export { SearchBar } from './SearchBar';
2
- export { type SearchBarProps } from './SearchBarProps.types';
@@ -1 +0,0 @@
1
- export { SearchBar } from './SearchBar';
@@ -1,2 +0,0 @@
1
- export { SearchBar } from './SearchBar'
2
- export { type SearchBarProps } from './SearchBarProps.types'
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import { type DocumentListMenuProps } from './DocumentListMenuProps.types';
3
- export declare const DocumentListMenu: React.FC<DocumentListMenuProps>;
@@ -1,7 +0,0 @@
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
- };
@@ -1 +0,0 @@
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;
@@ -1,67 +0,0 @@
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
- `;
@@ -1,68 +0,0 @@
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
- `
@@ -1,47 +0,0 @@
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
- }
@@ -1,21 +0,0 @@
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
- }
@@ -1,24 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- export { DocumentListMenu } from './DocumentListMenu';
2
- export { type DocumentListMenuProps } from './DocumentListMenuProps.types';
@@ -1 +0,0 @@
1
- export { DocumentListMenu } from './DocumentListMenu';
@@ -1,2 +0,0 @@
1
- export { DocumentListMenu } from './DocumentListMenu'
2
- export { type DocumentListMenuProps } from './DocumentListMenuProps.types'
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import { type DocumentMainMenuProps } from '../DocumentMainMenu/DocumentMainMenuProps.types';
3
- export declare const DocumentMainMenu: React.FC<DocumentMainMenuProps>;
@@ -1,11 +0,0 @@
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
- };
@@ -1 +0,0 @@
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;
@@ -1,94 +0,0 @@
1
- import styled from 'styled-components';
2
- export const DocumentMainMenuStyled = styled.div `
3
- border-radius: var(--s-border-radius);
4
- padding: 0.75rem 1rem;
5
- display: flex;
6
- background: var(--others-white);
7
- transition: all 0.1s ease;
8
- box-shadow: var(--box-shadow-medium);
9
- min-width: max-content;
10
- flex-flow: column wrap;
11
- position: absolute;
12
- left: 0;
13
-
14
- & > .menu-items-li {
15
- display: flex;
16
- justify-content: space-between;
17
- padding-right: 0.5rem;
18
- width: 100%;
19
- margin: 0.25rem 2.5rem 0.25rem 0;
20
- border-radius: 4px;
21
- transition: all 0.3s ease;
22
- padding: 0.25rem;
23
- position: relative;
24
- cursor: pointer;
25
- align-items: baseline;
26
-
27
- &.all-item {
28
- font-weight: bold;
29
- &:before {
30
- content: none;
31
- }
32
- }
33
-
34
- .icon-arrow {
35
- width: 0.625rem;
36
- height: 0.813rem;
37
- &:before,
38
- &:after {
39
- width: 0.125rem;
40
- background-color: var(--neutral-neutral-1);
41
- }
42
- }
43
-
44
- &::marker {
45
- content: none;
46
- }
47
-
48
- &:hover {
49
- background-color: var(--primary-main-light-5);
50
-
51
- .submenu__list {
52
- opacity: 1;
53
- visibility: visible;
54
- margin-left: 1.5rem;
55
- transition: all 0.4s ease;
56
- }
57
- .icon-arrow {
58
- &:before,
59
- &:after {
60
- background-color: var(--primary-main);
61
- }
62
- }
63
- }
64
-
65
- .submenu__list {
66
- border-radius: var(--s-border-radius);
67
- padding: 0.75rem 1rem;
68
- display: flex;
69
- visibility: hidden;
70
- opacity: 0;
71
- margin-left: 1rem;
72
- background: var(--others-white);
73
- box-shadow: 0 0.125rem 0.5rem 0 #02374a40;
74
- transition: all 0.1s ease;
75
- min-width: max-content;
76
- flex-flow: column wrap;
77
- position: absolute;
78
- left: 100%;
79
- top: -1rem;
80
- }
81
-
82
- .submenu__list {
83
- .all-item {
84
- font-weight: bold;
85
- margin: 0.25rem 3rem 0.25rem 0;
86
- padding: 0.25rem;
87
-
88
- &:hover {
89
- background-color: var(--primary-main-light-5);
90
- }
91
- }
92
- }
93
- }
94
- `;
@@ -1,95 +0,0 @@
1
- import styled from 'styled-components'
2
-
3
- export const DocumentMainMenuStyled = styled.div`
4
- border-radius: var(--s-border-radius);
5
- padding: 0.75rem 1rem;
6
- display: flex;
7
- background: var(--others-white);
8
- transition: all 0.1s ease;
9
- box-shadow: var(--box-shadow-medium);
10
- min-width: max-content;
11
- flex-flow: column wrap;
12
- position: absolute;
13
- left: 0;
14
-
15
- & > .menu-items-li {
16
- display: flex;
17
- justify-content: space-between;
18
- padding-right: 0.5rem;
19
- width: 100%;
20
- margin: 0.25rem 2.5rem 0.25rem 0;
21
- border-radius: 4px;
22
- transition: all 0.3s ease;
23
- padding: 0.25rem;
24
- position: relative;
25
- cursor: pointer;
26
- align-items: baseline;
27
-
28
- &.all-item {
29
- font-weight: bold;
30
- &:before {
31
- content: none;
32
- }
33
- }
34
-
35
- .icon-arrow {
36
- width: 0.625rem;
37
- height: 0.813rem;
38
- &:before,
39
- &:after {
40
- width: 0.125rem;
41
- background-color: var(--neutral-neutral-1);
42
- }
43
- }
44
-
45
- &::marker {
46
- content: none;
47
- }
48
-
49
- &:hover {
50
- background-color: var(--primary-main-light-5);
51
-
52
- .submenu__list {
53
- opacity: 1;
54
- visibility: visible;
55
- margin-left: 1.5rem;
56
- transition: all 0.4s ease;
57
- }
58
- .icon-arrow {
59
- &:before,
60
- &:after {
61
- background-color: var(--primary-main);
62
- }
63
- }
64
- }
65
-
66
- .submenu__list {
67
- border-radius: var(--s-border-radius);
68
- padding: 0.75rem 1rem;
69
- display: flex;
70
- visibility: hidden;
71
- opacity: 0;
72
- margin-left: 1rem;
73
- background: var(--others-white);
74
- box-shadow: 0 0.125rem 0.5rem 0 #02374a40;
75
- transition: all 0.1s ease;
76
- min-width: max-content;
77
- flex-flow: column wrap;
78
- position: absolute;
79
- left: 100%;
80
- top: -1rem;
81
- }
82
-
83
- .submenu__list {
84
- .all-item {
85
- font-weight: bold;
86
- margin: 0.25rem 3rem 0.25rem 0;
87
- padding: 0.25rem;
88
-
89
- &:hover {
90
- background-color: var(--primary-main-light-5);
91
- }
92
- }
93
- }
94
- }
95
- `
@@ -1,59 +0,0 @@
1
- import React from 'react'
2
-
3
- import { ArrowRight } from '../../../../images/componentsSvg/ArrowRight'
4
- import { type DocumentMainMenuProps } from '../DocumentMainMenu/DocumentMainMenuProps.types'
5
- import { DocumentMainMenuStyled } from './DocumentMainMenu.styled'
6
- import DocumentSubMenu from '../DocumentSubMenu/DocumentSubMenu'
7
-
8
- export const DocumentMainMenu: React.FC<DocumentMainMenuProps> = ({
9
- seeAllTypeDocs,
10
- allLegalDocs,
11
- allTypeDocs,
12
- setCookiePolicyFunc,
13
- routes,
14
- hasSubCategoryPage,
15
- finalMenu
16
- }) => {
17
- return (
18
- <DocumentMainMenuStyled>
19
- {finalMenu.map((item, index) => (
20
- <li className='menu-items-li' key={index}>
21
- {item.type}
22
- <div className='icon-arrow'>
23
- <ArrowRight />
24
- </div>
25
- <ul className={'submenu__list'} key={index}>
26
- {item.products.map((product, index) => (
27
- <DocumentSubMenu
28
- product={product}
29
- key={index}
30
- setCookiePolicyFunc={setCookiePolicyFunc}
31
- routes={routes}
32
- />
33
- ))}
34
- <li className='menu-items-li all-item'>
35
- <a
36
- title={seeAllTypeDocs.replace(/{{type}}/g, item.type)}
37
- data-qa={`Header_Menu__${item.slug}_all-documents`}
38
- href={
39
- hasSubCategoryPage
40
- ? routes.LEGAL_DOCUMENTS_WITH_CATEGORY(item.slug)
41
- : routes.LEGAL_DOCUMENTS_WITH_HASH(item.type)
42
- }
43
- >
44
- {item.type.includes('Documents')
45
- ? allTypeDocs.replace(/{{type}}/g, item.type).replace('Documents', '')
46
- : allTypeDocs.replace(/{{type}}/g, item.type)}
47
- </a>
48
- </li>
49
- </ul>
50
- </li>
51
- ))}
52
- <li className='menu-items-li all-item'>
53
- <a title={allLegalDocs} data-qa='Header_Menu_Document_List_All_Documents' href={routes.LEGAL_DOCUMENTS}>
54
- {allLegalDocs}
55
- </a>
56
- </li>
57
- </DocumentMainMenuStyled>
58
- )
59
- }
@@ -1,22 +0,0 @@
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: React.ReactNode;
9
- type: string;
10
- products: ProductListMenuProps[];
11
- slug: string;
12
- seeAllTypeDocs: string;
13
- }
14
- export interface DocumentMainMenuProps {
15
- seeAllTypeDocs: string;
16
- allLegalDocs: string;
17
- allTypeDocs: string;
18
- setCookiePolicyFunc: (url?: string, setCookiePolicyAccepted?: boolean) => void;
19
- routes: Routes;
20
- hasSubCategoryPage: boolean;
21
- finalMenu: DocumentListMenuSectionProps[];
22
- }
@@ -1,25 +0,0 @@
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: React.ReactNode
11
- type: string
12
- products: ProductListMenuProps[]
13
- slug: string
14
- seeAllTypeDocs: string
15
- }
16
-
17
- export interface DocumentMainMenuProps {
18
- seeAllTypeDocs: string
19
- allLegalDocs: string
20
- allTypeDocs: string
21
- setCookiePolicyFunc: (url?: string, setCookiePolicyAccepted?: boolean) => void
22
- routes: Routes
23
- hasSubCategoryPage: boolean
24
- finalMenu: DocumentListMenuSectionProps[]
25
- }