@npm_leadtech/legal-lib-components 7.14.0 → 7.14.7

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 +0,0 @@
1
- export { DocumentListMenuSection } from './DocumentListMenuSection';
@@ -1,2 +0,0 @@
1
- export { DocumentListMenuSection } from './DocumentListMenuSection'
2
- export { type DocumentListMenuSectionProps } from './DocumentListMenuSectionProps.types'
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import { MenuSectionTitleProps } from './MenuSectionTitleProps.types';
3
- export declare const MenuSectionTitle: React.FC<MenuSectionTitleProps>;
@@ -1,5 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { MenuSectionTitleStyled } from './MenuSectionTitle.styled';
3
- export const MenuSectionTitle = ({ icon, title }) => {
4
- return (_jsxs(MenuSectionTitleStyled, { className: 'menu-section-title-container', children: [_jsx("div", { className: 'menu-section-title__icon', children: _jsx("img", { src: icon, alt: title }) }), _jsx("div", { className: '', children: _jsx("div", { className: 'jumbotron__title', children: title }) })] }));
5
- };
@@ -1 +0,0 @@
1
- export declare const MenuSectionTitleStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -1,26 +0,0 @@
1
- import { device } from '../../../globalStyles/breakpoints';
2
- import styled from 'styled-components';
3
- export const MenuSectionTitleStyled = styled.div `
4
- &.menu-section-title-container {
5
- background-color: var(--neutral-neutral-5);
6
- width: 100%;
7
- display: flex;
8
- flex-direction: row;
9
- align-items: center;
10
- padding: 1rem;
11
-
12
- @media ${device.laptop} {
13
- justify-content: left;
14
- }
15
-
16
- .menu-section-title__icon {
17
- margin-right: 0.5rem;
18
- width: 1rem;
19
- }
20
-
21
- .jumbotron__title {
22
- font-weight: bold;
23
- margin-left: 1rem;
24
- }
25
- }
26
- `;
@@ -1,27 +0,0 @@
1
- import { device } from '../../../globalStyles/breakpoints'
2
- import styled from 'styled-components'
3
-
4
- export const MenuSectionTitleStyled = styled.div`
5
- &.menu-section-title-container {
6
- background-color: var(--neutral-neutral-5);
7
- width: 100%;
8
- display: flex;
9
- flex-direction: row;
10
- align-items: center;
11
- padding: 1rem;
12
-
13
- @media ${device.laptop} {
14
- justify-content: left;
15
- }
16
-
17
- .menu-section-title__icon {
18
- margin-right: 0.5rem;
19
- width: 1rem;
20
- }
21
-
22
- .jumbotron__title {
23
- font-weight: bold;
24
- margin-left: 1rem;
25
- }
26
- }
27
- `
@@ -1,17 +0,0 @@
1
- import React from 'react'
2
-
3
- import { MenuSectionTitleProps } from './MenuSectionTitleProps.types'
4
- import { MenuSectionTitleStyled } from './MenuSectionTitle.styled'
5
-
6
- export const MenuSectionTitle: React.FC<MenuSectionTitleProps> = ({ icon, title }) => {
7
- return (
8
- <MenuSectionTitleStyled className='menu-section-title-container'>
9
- <div className='menu-section-title__icon'>
10
- <img src={icon} alt={title} />
11
- </div>
12
- <div className=''>
13
- <div className='jumbotron__title'>{title}</div>
14
- </div>
15
- </MenuSectionTitleStyled>
16
- )
17
- }
@@ -1,4 +0,0 @@
1
- export interface MenuSectionTitleProps {
2
- icon: string;
3
- title: string;
4
- }
@@ -1,4 +0,0 @@
1
- export interface MenuSectionTitleProps {
2
- icon: string
3
- title: string
4
- }
@@ -1,2 +0,0 @@
1
- export { MenuSectionTitle } from './MenuSectionTitle';
2
- export { type MenuSectionTitleProps } from './MenuSectionTitleProps.types';
@@ -1 +0,0 @@
1
- export { MenuSectionTitle } from './MenuSectionTitle';
@@ -1,2 +0,0 @@
1
- export { MenuSectionTitle } from './MenuSectionTitle'
2
- export { type MenuSectionTitleProps } from './MenuSectionTitleProps.types'
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { type NavMobileContactBarProps } from './NavMobileContactBarProps.types';
3
- declare const NavMobileContactBar: React.FC<NavMobileContactBarProps>;
4
- export default NavMobileContactBar;
@@ -1,7 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Button } from '../../atoms/Button';
3
- import { NavMobileContactBarStyled } from './NavMobileContactBar.styled';
4
- const NavMobileContactBar = ({ phone, schedule }) => {
5
- return (_jsxs(NavMobileContactBarStyled, { className: 'nav-mobile-contact-bar', children: [_jsx(Button, { centered: true, isExternal: true, link: `tel:${phone}`, gtmTag: 'clicked_phone_menu', givenClass: 'nav-mobile-contact-bar_phone e-button e-button--link e-button--primary-1 e-button--center', label: phone, dataQa: 'nav_mobile_contact_phone' }), schedule && _jsx("p", { className: 'nav-mobile-contact-bar_schedule', children: schedule })] }));
6
- };
7
- export default NavMobileContactBar;
@@ -1 +0,0 @@
1
- export declare const NavMobileContactBarStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -1,34 +0,0 @@
1
- import phoneIconSvg from '../../../../images/svg/icon-web-24px.svg';
2
- import styled from 'styled-components';
3
- export const NavMobileContactBarStyled = styled.div `
4
- display: flex;
5
- flex-flow: column;
6
- border-top: 1px solid get-color(neutral, neutral-4);
7
- padding: 1.5rem 0;
8
- margin: 0 1.5rem;
9
-
10
- &:last-child {
11
- border-top: none;
12
- padding-top: 0px;
13
- }
14
-
15
- .nav-mobile-contact-bar_phone {
16
- display: flex;
17
- justify-content: center;
18
- width: 100%;
19
-
20
- &:before {
21
- content: '';
22
- width: 20px;
23
- height: 20px;
24
- background: url(${phoneIconSvg}) no-repeat center center / contain;
25
- margin-right: 0.5rem;
26
- }
27
- }
28
-
29
- .nav-mobile-contact-bar_schedule {
30
- color: get-color(neutral, neutral-2);
31
- text-align: center;
32
- margin: 0.5rem auto;
33
- }
34
- `;
@@ -1,35 +0,0 @@
1
- import phoneIconSvg from '../../../../images/svg/icon-web-24px.svg'
2
- import styled from 'styled-components'
3
-
4
- export const NavMobileContactBarStyled = styled.div`
5
- display: flex;
6
- flex-flow: column;
7
- border-top: 1px solid get-color(neutral, neutral-4);
8
- padding: 1.5rem 0;
9
- margin: 0 1.5rem;
10
-
11
- &:last-child {
12
- border-top: none;
13
- padding-top: 0px;
14
- }
15
-
16
- .nav-mobile-contact-bar_phone {
17
- display: flex;
18
- justify-content: center;
19
- width: 100%;
20
-
21
- &:before {
22
- content: '';
23
- width: 20px;
24
- height: 20px;
25
- background: url(${phoneIconSvg}) no-repeat center center / contain;
26
- margin-right: 0.5rem;
27
- }
28
- }
29
-
30
- .nav-mobile-contact-bar_schedule {
31
- color: get-color(neutral, neutral-2);
32
- text-align: center;
33
- margin: 0.5rem auto;
34
- }
35
- `
@@ -1,23 +0,0 @@
1
- import { Button } from '../../atoms/Button'
2
- import React from 'react'
3
-
4
- import { type NavMobileContactBarProps } from './NavMobileContactBarProps.types'
5
- import { NavMobileContactBarStyled } from './NavMobileContactBar.styled'
6
- const NavMobileContactBar: React.FC<NavMobileContactBarProps> = ({ phone, schedule }) => {
7
- return (
8
- <NavMobileContactBarStyled className='nav-mobile-contact-bar'>
9
- <Button
10
- centered
11
- isExternal
12
- link={`tel:${phone}`}
13
- gtmTag='clicked_phone_menu'
14
- givenClass='nav-mobile-contact-bar_phone e-button e-button--link e-button--primary-1 e-button--center'
15
- label={phone}
16
- dataQa={'nav_mobile_contact_phone'}
17
- />
18
- {schedule && <p className='nav-mobile-contact-bar_schedule'>{schedule}</p>}
19
- </NavMobileContactBarStyled>
20
- )
21
- }
22
-
23
- export default NavMobileContactBar
@@ -1,4 +0,0 @@
1
- export interface NavMobileContactBarProps {
2
- phone: string;
3
- schedule?: string;
4
- }
@@ -1,4 +0,0 @@
1
- export interface NavMobileContactBarProps {
2
- phone: string
3
- schedule?: string
4
- }
@@ -1,2 +0,0 @@
1
- export { default as NavMobileContactBar } from './NavMobileContactBar';
2
- export { type NavMobileContactBarProps } from './NavMobileContactBarProps.types';
@@ -1 +0,0 @@
1
- export { default as NavMobileContactBar } from './NavMobileContactBar';
@@ -1,2 +0,0 @@
1
- export { default as NavMobileContactBar } from './NavMobileContactBar'
2
- export { type NavMobileContactBarProps } from './NavMobileContactBarProps.types'
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import { type ProductListMenuProps } from './ProductListMenuProps.types';
3
- export declare const ProductListMenu: React.FC<ProductListMenuProps>;
@@ -1,5 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { ProductListMenuStyled } from './ProductListMenu.styled';
3
- export const ProductListMenu = ({ slug, linkText, categoryUrl, routes, setCookiePolicyFunc }) => {
4
- return (_jsx(ProductListMenuStyled, { className: 'products__list__section__li', children: _jsx("a", { title: linkText, "data-qa": `${slug}_Document_List`, onClick: () => setCookiePolicyFunc, href: routes.CUSTOM_URL_FROM_TARGET_ADDRESS(categoryUrl ? `${categoryUrl}/${slug}` : slug), children: linkText }) }));
5
- };
@@ -1 +0,0 @@
1
- export declare const ProductListMenuStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, never>> & string;
@@ -1,18 +0,0 @@
1
- import styled from 'styled-components';
2
- export const ProductListMenuStyled = styled.li `
3
- list-style: none;
4
- margin-top: 1rem;
5
- padding: 0.25rem 1.5rem 0.25rem 1.5rem;
6
-
7
- &.all-item {
8
- font-weight: bold;
9
- }
10
-
11
- &:last-child {
12
- margin-bottom: 1.5rem;
13
- }
14
-
15
- &:hover {
16
- background-color: var(--primary-main-light-5);
17
- }
18
- `;
@@ -1,19 +0,0 @@
1
- import styled from 'styled-components'
2
-
3
- export const ProductListMenuStyled = styled.li`
4
- list-style: none;
5
- margin-top: 1rem;
6
- padding: 0.25rem 1.5rem 0.25rem 1.5rem;
7
-
8
- &.all-item {
9
- font-weight: bold;
10
- }
11
-
12
- &:last-child {
13
- margin-bottom: 1.5rem;
14
- }
15
-
16
- &:hover {
17
- background-color: var(--primary-main-light-5);
18
- }
19
- `
@@ -1,25 +0,0 @@
1
- import React from 'react'
2
-
3
- import { type ProductListMenuProps } from './ProductListMenuProps.types'
4
- import { ProductListMenuStyled } from './ProductListMenu.styled'
5
-
6
- export const ProductListMenu: React.FC<ProductListMenuProps> = ({
7
- slug,
8
- linkText,
9
- categoryUrl,
10
- routes,
11
- setCookiePolicyFunc
12
- }) => {
13
- return (
14
- <ProductListMenuStyled className='products__list__section__li'>
15
- <a
16
- title={linkText}
17
- data-qa={`${slug}_Document_List`}
18
- onClick={() => setCookiePolicyFunc}
19
- href={routes.CUSTOM_URL_FROM_TARGET_ADDRESS(categoryUrl ? `${categoryUrl}/${slug}` : slug)}
20
- >
21
- {linkText}
22
- </a>
23
- </ProductListMenuStyled>
24
- )
25
- }
@@ -1,8 +0,0 @@
1
- import { Routes } from '../../sections/Header/HeaderProps.types';
2
- export interface ProductListMenuProps {
3
- slug: string;
4
- linkText: string;
5
- categoryUrl?: string;
6
- routes: Routes;
7
- setCookiePolicyFunc: (url?: string, setCookiePolicyAccepted?: boolean) => void;
8
- }
@@ -1,9 +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
- routes: Routes
8
- setCookiePolicyFunc: (url?: string, setCookiePolicyAccepted?: boolean) => void
9
- }
@@ -1,2 +0,0 @@
1
- export { ProductListMenu } from './ProductListMenu';
2
- export { type ProductListMenuProps } from './ProductListMenuProps.types';
@@ -1 +0,0 @@
1
- export { ProductListMenu } from './ProductListMenu';
@@ -1,2 +0,0 @@
1
- export { ProductListMenu } from './ProductListMenu'
2
- export { type ProductListMenuProps } from './ProductListMenuProps.types'
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import { type SearchBarProps } from './SearchBarProps.types';
3
- export declare const SearchBar: React.FC<SearchBarProps>;
@@ -1,33 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useState } from 'react';
3
- import { DropdownInput } from '../../atoms/DropdownInput/DropdownInput';
4
- import { SearchIcon } from '../../../../images/componentsSvg/SearchIcon';
5
- import { useWindowSize } from '../../../hooks/useWindowSize';
6
- import { SearchBarStyled } from './SearchBar.styled';
7
- export const SearchBar = ({ products, searchBarTexts, routes, handleResultClick }) => {
8
- const [results, setResults] = useState([]);
9
- const windowSize = useWindowSize();
10
- const _placeholder = windowSize.width === null || windowSize.width >= 720 ? '' : searchBarTexts.placeholder;
11
- const searchFunction = (text) => {
12
- const searchTerm = text.toLowerCase();
13
- const productsFiltered = products.filter((item) => item.linkText.toLowerCase().includes(searchTerm));
14
- const results = productsFiltered
15
- .map((item) => {
16
- const product = item.linkText;
17
- const preMatch = product.slice(0, product.toLowerCase().indexOf(searchTerm));
18
- const match = product.slice(product.toLowerCase().indexOf(searchTerm), preMatch.length + searchTerm.length);
19
- const postMatch = product.slice(product.toLowerCase().indexOf(searchTerm) + searchTerm.length, product.length);
20
- const link = item.categoryUrl ? `${item.categoryUrl}/${item.slug}` : item.slug;
21
- return (_jsx("li", { className: 'dropdown_input__item', children: _jsxs("a", { href: routes.CUSTOM_URL_FROM_TARGET_ADDRESS(link), className: 'dropdown_input__link', onClick: (e) => {
22
- e.preventDefault();
23
- handleResultClick(product, routes.CUSTOM_URL_FROM_TARGET_ADDRESS(link));
24
- }, title: product, children: [preMatch, _jsx("strong", { className: 'dropdown_input__link__emphasis', children: match }), postMatch] }, item.linkText) }, searchBarTexts.title));
25
- })
26
- .slice(0, 9);
27
- results.push(_jsx("li", { className: 'dropdown_input__item', children: _jsx("a", { className: 'dropdown_input__link--all', title: searchBarTexts.title, href: routes.LEGAL_DOCUMENTS, children: searchBarTexts.title }) }, searchBarTexts.title));
28
- setResults(results);
29
- };
30
- return (_jsx(SearchBarStyled, { children: _jsx(DropdownInput, { name: 'search', className: 'search', placeholder: _placeholder, icon: _jsx(SearchIcon, {}), onChange: (text) => {
31
- searchFunction(text);
32
- }, results: results }) }));
33
- };
@@ -1 +0,0 @@
1
- export declare const SearchBarStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -1,62 +0,0 @@
1
- import { device } from '../../../globalStyles/breakpoints';
2
- import styled from 'styled-components';
3
- export const SearchBarStyled = styled.div `
4
- .dropdown_input {
5
- .search {
6
- width: calc(100% - 3rem);
7
- margin: 0 1.5rem;
8
-
9
- @media ${device['landscape-tablets']} {
10
- display: none;
11
- }
12
-
13
- @media ${device['landscape-tablets']} {
14
- display: block;
15
- width: 10rem;
16
- margin: 0 1.5rem 0 0;
17
- }
18
-
19
- @media ${device['desktop']} {
20
- width: 14rem;
21
- }
22
-
23
- .dropdown_input__results {
24
- transition: all 0.25s;
25
- min-width: 100%;
26
- width: max-content;
27
- }
28
-
29
- .dropdown_input__link {
30
- color: var(--neutral-neutral-3);
31
- animation: newLine 0.5s;
32
-
33
- &:hover {
34
- color: var(--others-black);
35
- }
36
-
37
- &__emphasis {
38
- font-style: normal;
39
- font-weight: normal;
40
- color: var(--others-black);
41
- }
42
-
43
- &--all {
44
- font-weight: bold;
45
- animation: none;
46
- }
47
- }
48
- }
49
- }
50
-
51
- @keyframes newLine {
52
- 0% {
53
- opacity: 0;
54
- line-height: 0rem;
55
- }
56
-
57
- 100% {
58
- opacity: 1;
59
- line-height: 1.5rem;
60
- }
61
- }
62
- `;
@@ -1,63 +0,0 @@
1
- import { device } from '../../../globalStyles/breakpoints'
2
- import styled from 'styled-components'
3
-
4
- export const SearchBarStyled = styled.div`
5
- .dropdown_input {
6
- .search {
7
- width: calc(100% - 3rem);
8
- margin: 0 1.5rem;
9
-
10
- @media ${device['landscape-tablets']} {
11
- display: none;
12
- }
13
-
14
- @media ${device['landscape-tablets']} {
15
- display: block;
16
- width: 10rem;
17
- margin: 0 1.5rem 0 0;
18
- }
19
-
20
- @media ${device['desktop']} {
21
- width: 14rem;
22
- }
23
-
24
- .dropdown_input__results {
25
- transition: all 0.25s;
26
- min-width: 100%;
27
- width: max-content;
28
- }
29
-
30
- .dropdown_input__link {
31
- color: var(--neutral-neutral-3);
32
- animation: newLine 0.5s;
33
-
34
- &:hover {
35
- color: var(--others-black);
36
- }
37
-
38
- &__emphasis {
39
- font-style: normal;
40
- font-weight: normal;
41
- color: var(--others-black);
42
- }
43
-
44
- &--all {
45
- font-weight: bold;
46
- animation: none;
47
- }
48
- }
49
- }
50
- }
51
-
52
- @keyframes newLine {
53
- 0% {
54
- opacity: 0;
55
- line-height: 0rem;
56
- }
57
-
58
- 100% {
59
- opacity: 1;
60
- line-height: 1.5rem;
61
- }
62
- }
63
- `
@@ -1,72 +0,0 @@
1
- import React, { useState } from 'react'
2
-
3
- import { DropdownInput } from '../../atoms/DropdownInput/DropdownInput'
4
- import { SearchIcon } from '../../../../images/componentsSvg/SearchIcon'
5
- import { useWindowSize } from '../../../hooks/useWindowSize'
6
-
7
- import { type SearchBarProps } from './SearchBarProps.types'
8
- import { SearchBarStyled } from './SearchBar.styled'
9
-
10
- export const SearchBar: React.FC<SearchBarProps> = ({ products, searchBarTexts, routes, handleResultClick }) => {
11
- const [results, setResults] = useState<React.JSX.Element[]>([])
12
-
13
- const windowSize = useWindowSize()
14
- const _placeholder = windowSize.width === null || windowSize.width >= 720 ? '' : searchBarTexts.placeholder
15
- const searchFunction = (text: string): void => {
16
- const searchTerm = text.toLowerCase()
17
-
18
- const productsFiltered = products.filter((item) => item.linkText.toLowerCase().includes(searchTerm))
19
- const results = productsFiltered
20
- .map((item) => {
21
- const product = item.linkText
22
- const preMatch = product.slice(0, product.toLowerCase().indexOf(searchTerm))
23
- const match = product.slice(product.toLowerCase().indexOf(searchTerm), preMatch.length + searchTerm.length)
24
- const postMatch = product.slice(product.toLowerCase().indexOf(searchTerm) + searchTerm.length, product.length)
25
- const link = item.categoryUrl ? `${item.categoryUrl}/${item.slug}` : item.slug
26
- return (
27
- <li key={searchBarTexts.title} className='dropdown_input__item'>
28
- <a
29
- href={routes.CUSTOM_URL_FROM_TARGET_ADDRESS(link)}
30
- className='dropdown_input__link'
31
- key={item.linkText}
32
- onClick={(e) => {
33
- e.preventDefault()
34
- handleResultClick(product, routes.CUSTOM_URL_FROM_TARGET_ADDRESS(link))
35
- }}
36
- title={product}
37
- >
38
- {preMatch}
39
- <strong className='dropdown_input__link__emphasis'>{match}</strong>
40
- {postMatch}
41
- </a>
42
- </li>
43
- )
44
- })
45
- .slice(0, 9)
46
-
47
- results.push(
48
- <li key={searchBarTexts.title} className='dropdown_input__item'>
49
- <a className='dropdown_input__link--all' title={searchBarTexts.title} href={routes.LEGAL_DOCUMENTS}>
50
- {searchBarTexts.title}
51
- </a>
52
- </li>
53
- )
54
-
55
- setResults(results)
56
- }
57
-
58
- return (
59
- <SearchBarStyled>
60
- <DropdownInput
61
- name='search'
62
- className='search'
63
- placeholder={_placeholder}
64
- icon={<SearchIcon />}
65
- onChange={(text: string) => {
66
- searchFunction(text)
67
- }}
68
- results={results}
69
- />
70
- </SearchBarStyled>
71
- )
72
- }