@npm_leadtech/legal-lib-components 7.19.0 → 7.19.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (190) hide show
  1. package/dist/css/styles.css +15 -30
  2. package/dist/src/components/atoms/ContactInformationHeader/ContactInformationHeader.d.ts +3 -0
  3. package/dist/src/components/atoms/ContactInformationHeader/ContactInformationHeader.js +5 -0
  4. package/dist/src/components/atoms/ContactInformationHeader/ContactInformationHeader.styled.d.ts +1 -0
  5. package/dist/src/components/atoms/ContactInformationHeader/ContactInformationHeader.styled.js +21 -0
  6. package/dist/src/components/atoms/ContactInformationHeader/ContactInformationHeader.styled.ts +22 -0
  7. package/dist/src/components/atoms/ContactInformationHeader/ContactInformationHeader.tsx +14 -0
  8. package/dist/src/components/atoms/ContactInformationHeader/ContactInformationHeaderProps.d.ts +4 -0
  9. package/dist/src/components/atoms/ContactInformationHeader/ContactInformationHeaderProps.ts +4 -0
  10. package/dist/src/components/atoms/ContactInformationHeader/index.d.ts +2 -0
  11. package/dist/src/components/atoms/ContactInformationHeader/index.js +2 -0
  12. package/dist/src/components/atoms/ContactInformationHeader/index.ts +2 -0
  13. package/dist/src/components/atoms/MobileTrigger/MobileTrigger.d.ts +3 -0
  14. package/dist/src/components/atoms/MobileTrigger/MobileTrigger.js +5 -0
  15. package/dist/src/components/atoms/MobileTrigger/MobileTrigger.styled.d.ts +5 -0
  16. package/dist/src/components/atoms/MobileTrigger/MobileTrigger.styled.js +8 -0
  17. package/dist/src/components/atoms/MobileTrigger/MobileTrigger.styled.ts +13 -0
  18. package/dist/src/components/atoms/MobileTrigger/MobileTrigger.tsx +11 -0
  19. package/dist/src/components/atoms/MobileTrigger/MobileTriggerProps.d.ts +6 -0
  20. package/dist/src/components/atoms/MobileTrigger/MobileTriggerProps.ts +6 -0
  21. package/dist/src/components/atoms/MobileTrigger/index.d.ts +2 -0
  22. package/dist/src/components/atoms/MobileTrigger/index.js +2 -0
  23. package/dist/src/components/atoms/MobileTrigger/index.ts +2 -0
  24. package/dist/src/components/atoms/PhoneNumberDisplay/PhoneNumberDisplay.d.ts +3 -0
  25. package/dist/src/components/atoms/PhoneNumberDisplay/PhoneNumberDisplay.js +6 -0
  26. package/dist/src/components/atoms/PhoneNumberDisplay/PhoneNumberDisplay.styled.d.ts +1 -0
  27. package/dist/src/components/atoms/PhoneNumberDisplay/PhoneNumberDisplay.styled.js +17 -0
  28. package/dist/src/components/atoms/PhoneNumberDisplay/PhoneNumberDisplay.styled.ts +18 -0
  29. package/dist/src/components/atoms/PhoneNumberDisplay/PhoneNumberDisplay.tsx +15 -0
  30. package/dist/src/components/atoms/PhoneNumberDisplay/PhoneNumberDisplayProps.d.ts +3 -0
  31. package/dist/src/components/atoms/PhoneNumberDisplay/PhoneNumberDisplayProps.ts +3 -0
  32. package/dist/src/components/atoms/PhoneNumberDisplay/index.d.ts +2 -0
  33. package/dist/src/components/atoms/PhoneNumberDisplay/index.js +2 -0
  34. package/dist/src/components/atoms/PhoneNumberDisplay/index.ts +2 -0
  35. package/dist/src/components/atoms/SearchSelect/SearchSelect.styled.js +1 -1
  36. package/dist/src/components/atoms/SearchSelect/SearchSelect.styled.ts +1 -1
  37. package/dist/src/components/atoms/index.d.ts +3 -0
  38. package/dist/src/components/atoms/index.js +3 -0
  39. package/dist/src/components/atoms/index.ts +3 -0
  40. package/dist/src/components/molecules/ContactInfo/ContactInfo.styled.js +1 -1
  41. package/dist/src/components/molecules/ContactInfo/ContactInfo.styled.ts +1 -1
  42. package/dist/src/components/molecules/HelpPanelList/HelpPanelList.d.ts +3 -0
  43. package/dist/src/components/molecules/HelpPanelList/HelpPanelList.js +5 -0
  44. package/dist/src/components/molecules/HelpPanelList/HelpPanelList.styled.d.ts +4 -0
  45. package/dist/src/components/molecules/HelpPanelList/HelpPanelList.styled.js +34 -0
  46. package/dist/src/components/molecules/HelpPanelList/HelpPanelList.styled.ts +38 -0
  47. package/dist/src/components/molecules/HelpPanelList/HelpPanelList.tsx +18 -0
  48. package/dist/src/components/molecules/HelpPanelList/HelpPanelListProps.d.ts +9 -0
  49. package/dist/src/components/molecules/HelpPanelList/HelpPanelListProps.js +1 -0
  50. package/dist/src/components/molecules/HelpPanelList/HelpPanelListProps.ts +10 -0
  51. package/dist/src/components/molecules/HelpPanelList/index.d.ts +2 -0
  52. package/dist/src/components/molecules/HelpPanelList/index.js +2 -0
  53. package/dist/src/components/molecules/HelpPanelList/index.ts +2 -0
  54. package/dist/src/components/molecules/HelpSection/HelpSection.d.ts +3 -0
  55. package/dist/src/components/molecules/HelpSection/HelpSection.js +5 -0
  56. package/dist/src/components/molecules/HelpSection/HelpSection.styled.d.ts +3 -0
  57. package/dist/src/components/molecules/HelpSection/HelpSection.styled.js +64 -0
  58. package/dist/src/components/molecules/HelpSection/HelpSection.styled.ts +66 -0
  59. package/dist/src/components/molecules/HelpSection/HelpSection.tsx +18 -0
  60. package/dist/src/components/molecules/HelpSection/HelpSectionProps.d.ts +6 -0
  61. package/dist/src/components/molecules/HelpSection/HelpSectionProps.js +1 -0
  62. package/dist/src/components/molecules/HelpSection/HelpSectionProps.ts +7 -0
  63. package/dist/src/components/molecules/HelpSection/index.d.ts +2 -0
  64. package/dist/src/components/molecules/HelpSection/index.js +2 -0
  65. package/dist/src/components/molecules/HelpSection/index.ts +2 -0
  66. package/dist/src/components/molecules/NavBarDropDown/NavBarDropDown.tsx +1 -1
  67. package/dist/src/components/molecules/SocialLinks/SocialLinks.js +1 -5
  68. package/dist/src/components/molecules/SocialLinks/SocialLinks.tsx +7 -11
  69. package/dist/src/components/molecules/TextInput/TextInput.scss +15 -31
  70. package/dist/src/components/molecules/TextInput/stories/TextInput.stories.tsx +2 -13
  71. package/dist/src/components/molecules/index.d.ts +2 -2
  72. package/dist/src/components/molecules/index.js +2 -2
  73. package/dist/src/components/molecules/index.ts +2 -2
  74. package/dist/src/components/organisms/ContactJumbotron/ContactJumbotron.js +3 -3
  75. package/dist/src/components/organisms/ContactJumbotron/ContactJumbotron.styled.js +1 -0
  76. package/dist/src/components/organisms/ContactJumbotron/ContactJumbotron.styled.ts +1 -0
  77. package/dist/src/components/organisms/ContactJumbotron/ContactJumbotron.tsx +6 -4
  78. package/dist/src/components/organisms/ContactJumbotron/ContactJumbotronProps.types.d.ts +3 -2
  79. package/dist/src/components/organisms/ContactJumbotron/ContactJumbotronProps.types.ts +4 -2
  80. package/dist/src/components/organisms/DesktopMenu/DesktopMenu.d.ts +3 -0
  81. package/dist/src/components/organisms/DesktopMenu/DesktopMenu.js +7 -0
  82. package/dist/src/components/organisms/DesktopMenu/DesktopMenu.styled.d.ts +1 -0
  83. package/dist/src/components/organisms/DesktopMenu/DesktopMenu.styled.js +16 -0
  84. package/dist/src/components/organisms/DesktopMenu/DesktopMenu.styled.ts +17 -0
  85. package/dist/src/components/organisms/DesktopMenu/DesktopMenu.tsx +15 -0
  86. package/dist/src/components/organisms/DesktopMenu/DesktopMenuProps.d.ts +7 -0
  87. package/dist/src/components/organisms/DesktopMenu/DesktopMenuProps.js +1 -0
  88. package/dist/src/components/organisms/DesktopMenu/DesktopMenuProps.ts +8 -0
  89. package/dist/src/components/organisms/DesktopMenu/index.d.ts +2 -0
  90. package/dist/src/components/organisms/DesktopMenu/index.js +2 -0
  91. package/dist/src/components/organisms/DesktopMenu/index.ts +2 -0
  92. package/dist/src/components/organisms/MobileMenu/MobileMenu.d.ts +3 -0
  93. package/dist/src/components/organisms/MobileMenu/MobileMenu.js +9 -0
  94. package/dist/src/components/organisms/MobileMenu/MobileMenu.styled.d.ts +7 -0
  95. package/dist/src/components/organisms/MobileMenu/MobileMenu.styled.js +23 -0
  96. package/dist/src/components/organisms/MobileMenu/MobileMenu.styled.ts +30 -0
  97. package/dist/src/components/organisms/MobileMenu/MobileMenu.tsx +54 -0
  98. package/dist/src/components/organisms/MobileMenu/MobileMenuProps.d.ts +16 -0
  99. package/dist/src/components/organisms/MobileMenu/MobileMenuProps.js +1 -0
  100. package/dist/src/components/organisms/MobileMenu/MobileMenuProps.ts +18 -0
  101. package/dist/src/components/organisms/MobileMenu/index.d.ts +2 -0
  102. package/dist/src/components/organisms/MobileMenu/index.js +2 -0
  103. package/dist/src/components/organisms/MobileMenu/index.ts +2 -0
  104. package/dist/src/components/organisms/MobilePanel/MobilePanel.d.ts +3 -0
  105. package/dist/src/components/organisms/MobilePanel/MobilePanel.js +4 -0
  106. package/dist/src/components/organisms/MobilePanel/MobilePanel.styled.d.ts +8 -0
  107. package/dist/src/components/organisms/MobilePanel/MobilePanel.styled.js +27 -0
  108. package/dist/src/components/organisms/MobilePanel/MobilePanel.styled.ts +35 -0
  109. package/dist/src/components/organisms/MobilePanel/MobilePanel.tsx +13 -0
  110. package/dist/src/components/organisms/MobilePanel/MobilePanelProps.d.ts +7 -0
  111. package/dist/src/components/organisms/MobilePanel/MobilePanelProps.js +1 -0
  112. package/dist/src/components/organisms/MobilePanel/MobilePanelProps.ts +7 -0
  113. package/dist/src/components/organisms/MobilePanel/index.d.ts +2 -0
  114. package/dist/src/components/organisms/MobilePanel/index.js +2 -0
  115. package/dist/src/components/organisms/MobilePanel/index.ts +2 -0
  116. package/dist/src/components/organisms/index.d.ts +3 -0
  117. package/dist/src/components/organisms/index.js +3 -0
  118. package/dist/src/components/organisms/index.ts +3 -0
  119. package/dist/src/components/pages/ContactUsPage/ContactUsPage.js +3 -3
  120. package/dist/src/components/pages/ContactUsPage/ContactUsPage.tsx +3 -3
  121. package/dist/src/components/pages/ContactUsPage/ContactUsPageProps.d.ts +2 -2
  122. package/dist/src/components/pages/ContactUsPage/ContactUsPageProps.ts +2 -2
  123. package/dist/src/components/sections/AppHeader/AppHeader.d.ts +4 -0
  124. package/dist/src/components/sections/AppHeader/AppHeader.js +8 -0
  125. package/dist/src/components/sections/AppHeader/AppHeader.scss +32 -0
  126. package/dist/src/components/sections/AppHeader/AppHeader.styled.d.ts +2 -0
  127. package/dist/src/components/sections/AppHeader/AppHeader.styled.js +35 -0
  128. package/dist/src/components/sections/AppHeader/AppHeader.styled.ts +36 -0
  129. package/dist/src/components/sections/AppHeader/AppHeader.tsx +58 -0
  130. package/dist/src/components/sections/AppHeader/AppHeaderProps.d.ts +26 -0
  131. package/dist/src/components/sections/AppHeader/AppHeaderProps.js +1 -0
  132. package/dist/src/components/sections/AppHeader/AppHeaderProps.ts +27 -0
  133. package/dist/src/components/sections/AppHeader/index.d.ts +2 -0
  134. package/dist/src/components/sections/AppHeader/index.js +2 -0
  135. package/dist/src/components/sections/AppHeader/index.ts +2 -0
  136. package/dist/src/components/sections/ContactSection/ContactSection.styled.js +0 -2
  137. package/dist/src/components/sections/ContactSection/ContactSection.styled.ts +0 -2
  138. package/dist/src/components/sections/index.d.ts +1 -0
  139. package/dist/src/components/sections/index.js +1 -0
  140. package/dist/src/components/sections/index.ts +1 -0
  141. package/dist/src/hooks/useIntersectionObserver.d.ts +5 -7
  142. package/dist/src/hooks/useIntersectionObserver.js +7 -5
  143. package/dist/src/hooks/useIntersectionObserver.tsx +10 -12
  144. package/dist/tsconfig.build.tsbuildinfo +1 -1
  145. package/package.json +2 -1
  146. package/dist/images/componentsSvg/InfoLocationSvg.d.ts +0 -2
  147. package/dist/images/componentsSvg/InfoLocationSvg.js +0 -4
  148. package/dist/images/componentsSvg/InfoLocationSvg.tsx +0 -14
  149. package/dist/images/componentsSvg/InfoMailSvg.d.ts +0 -2
  150. package/dist/images/componentsSvg/InfoMailSvg.js +0 -4
  151. package/dist/images/componentsSvg/InfoMailSvg.tsx +0 -12
  152. package/dist/images/componentsSvg/InfoPhoneSvg.d.ts +0 -2
  153. package/dist/images/componentsSvg/InfoPhoneSvg.js +0 -4
  154. package/dist/images/componentsSvg/InfoPhoneSvg.tsx +0 -12
  155. package/dist/src/components/molecules/ContactInfoBox/ContactInfoBox.d.ts +0 -3
  156. package/dist/src/components/molecules/ContactInfoBox/ContactInfoBox.js +0 -6
  157. package/dist/src/components/molecules/ContactInfoBox/ContactInfoBox.styled.d.ts +0 -1
  158. package/dist/src/components/molecules/ContactInfoBox/ContactInfoBox.styled.js +0 -23
  159. package/dist/src/components/molecules/ContactInfoBox/ContactInfoBox.styled.ts +0 -24
  160. package/dist/src/components/molecules/ContactInfoBox/ContactInfoBox.tsx +0 -15
  161. package/dist/src/components/molecules/ContactInfoBox/ContactInfoBoxProps.types.d.ts +0 -4
  162. package/dist/src/components/molecules/ContactInfoBox/ContactInfoBoxProps.types.ts +0 -4
  163. package/dist/src/components/molecules/ContactInfoBox/index.d.ts +0 -2
  164. package/dist/src/components/molecules/ContactInfoBox/index.js +0 -1
  165. package/dist/src/components/molecules/ContactInfoBox/index.ts +0 -2
  166. package/dist/src/components/molecules/ContactInfoBoxMobile/ContactInfoBoxMobile.d.ts +0 -3
  167. package/dist/src/components/molecules/ContactInfoBoxMobile/ContactInfoBoxMobile.js +0 -6
  168. package/dist/src/components/molecules/ContactInfoBoxMobile/ContactInfoBoxMobile.styled.d.ts +0 -1
  169. package/dist/src/components/molecules/ContactInfoBoxMobile/ContactInfoBoxMobile.styled.js +0 -23
  170. package/dist/src/components/molecules/ContactInfoBoxMobile/ContactInfoBoxMobile.styled.ts +0 -24
  171. package/dist/src/components/molecules/ContactInfoBoxMobile/ContactInfoBoxMobile.tsx +0 -15
  172. package/dist/src/components/molecules/ContactInfoBoxMobile/ContactInfoBoxMobileProps.types.d.ts +0 -4
  173. package/dist/src/components/molecules/ContactInfoBoxMobile/ContactInfoBoxMobileProps.types.ts +0 -4
  174. package/dist/src/components/molecules/ContactInfoBoxMobile/index.d.ts +0 -2
  175. package/dist/src/components/molecules/ContactInfoBoxMobile/index.js +0 -1
  176. package/dist/src/components/molecules/ContactInfoBoxMobile/index.ts +0 -2
  177. package/dist/src/components/molecules/ContactInfoCard/ContactInfoCard.d.ts +0 -3
  178. package/dist/src/components/molecules/ContactInfoCard/ContactInfoCard.js +0 -19
  179. package/dist/src/components/molecules/ContactInfoCard/ContactInfoCard.styled.d.ts +0 -1
  180. package/dist/src/components/molecules/ContactInfoCard/ContactInfoCard.styled.js +0 -77
  181. package/dist/src/components/molecules/ContactInfoCard/ContactInfoCard.styled.ts +0 -78
  182. package/dist/src/components/molecules/ContactInfoCard/ContactInfoCard.tsx +0 -58
  183. package/dist/src/components/molecules/ContactInfoCard/ContactInfoCardProps.d.ts +0 -7
  184. package/dist/src/components/molecules/ContactInfoCard/ContactInfoCardProps.ts +0 -8
  185. package/dist/src/components/molecules/ContactInfoCard/index.d.ts +0 -2
  186. package/dist/src/components/molecules/ContactInfoCard/index.js +0 -2
  187. package/dist/src/components/molecules/ContactInfoCard/index.ts +0 -2
  188. /package/dist/src/components/{molecules/ContactInfoBox/ContactInfoBoxProps.types.js → atoms/ContactInformationHeader/ContactInformationHeaderProps.js} +0 -0
  189. /package/dist/src/components/{molecules/ContactInfoBoxMobile/ContactInfoBoxMobileProps.types.js → atoms/MobileTrigger/MobileTriggerProps.js} +0 -0
  190. /package/dist/src/components/{molecules/ContactInfoCard/ContactInfoCardProps.js → atoms/PhoneNumberDisplay/PhoneNumberDisplayProps.js} +0 -0
@@ -0,0 +1,64 @@
1
+ import arrowDown from '../../../../images/svg/arrow-down.svg';
2
+ import styled from 'styled-components';
3
+ export const HelpSectionStyled = styled.div `
4
+ position: relative;
5
+ display: inline-block;
6
+ cursor: pointer;
7
+ display: flex;
8
+ justify-content: center;
9
+ align-items: center;
10
+ margin-right: 1rem;
11
+
12
+ p::before {
13
+ position: absolute;
14
+ content: '';
15
+ background-image: url(${arrowDown});
16
+ width: 1.5rem;
17
+ height: 1.5rem;
18
+ left: 100%;
19
+ top: 0.2rem;
20
+ font-weight: 700;
21
+ }
22
+
23
+ p {
24
+ font-weight: 700;
25
+ }
26
+
27
+ &:hover > ul {
28
+ display: block;
29
+ }
30
+ `;
31
+ export const HelpSectionList = styled.ul `
32
+ display: none;
33
+ width: 150px;
34
+ position: absolute;
35
+ border-radius: 4px;
36
+ padding: 0.5rem;
37
+ top: 100%;
38
+ background: var(--others-white);
39
+ box-shadow: 0 0.25rem 0.5rem 0.25rem rgba(2, 55, 74, 0.2);
40
+ flex-flow: column wrap;
41
+ z-index: 1000;
42
+ right: -1rem;
43
+ gap: 0.5rem;
44
+ `;
45
+ export const HelpSectionLink = styled.li `
46
+ width: 100%;
47
+ margin-bottom: 0.5rem;
48
+ border-radius: 4px;
49
+ list-style: none;
50
+
51
+ &:hover {
52
+ background-color: var(--primary-main-light-5);
53
+ }
54
+
55
+ a {
56
+ display: block;
57
+ padding: 0.25rem;
58
+
59
+ background-color: transparent;
60
+
61
+ text-decoration: none;
62
+ color: inherit;
63
+ }
64
+ `;
@@ -0,0 +1,66 @@
1
+ import arrowDown from '../../../../images/svg/arrow-down.svg'
2
+ import styled from 'styled-components'
3
+
4
+ export const HelpSectionStyled = styled.div`
5
+ position: relative;
6
+ display: inline-block;
7
+ cursor: pointer;
8
+ display: flex;
9
+ justify-content: center;
10
+ align-items: center;
11
+ margin-right: 1rem;
12
+
13
+ p::before {
14
+ position: absolute;
15
+ content: '';
16
+ background-image: url(${arrowDown});
17
+ width: 1.5rem;
18
+ height: 1.5rem;
19
+ left: 100%;
20
+ top: 0.2rem;
21
+ font-weight: 700;
22
+ }
23
+
24
+ p {
25
+ font-weight: 700;
26
+ }
27
+
28
+ &:hover > ul {
29
+ display: block;
30
+ }
31
+ `
32
+ export const HelpSectionList = styled.ul`
33
+ display: none;
34
+ width: 150px;
35
+ position: absolute;
36
+ border-radius: 4px;
37
+ padding: 0.5rem;
38
+ top: 100%;
39
+ background: var(--others-white);
40
+ box-shadow: 0 0.25rem 0.5rem 0.25rem rgba(2, 55, 74, 0.2);
41
+ flex-flow: column wrap;
42
+ z-index: 1000;
43
+ right: -1rem;
44
+ gap: 0.5rem;
45
+ `
46
+
47
+ export const HelpSectionLink = styled.li`
48
+ width: 100%;
49
+ margin-bottom: 0.5rem;
50
+ border-radius: 4px;
51
+ list-style: none;
52
+
53
+ &:hover {
54
+ background-color: var(--primary-main-light-5);
55
+ }
56
+
57
+ a {
58
+ display: block;
59
+ padding: 0.25rem;
60
+
61
+ background-color: transparent;
62
+
63
+ text-decoration: none;
64
+ color: inherit;
65
+ }
66
+ `
@@ -0,0 +1,18 @@
1
+ import { HelpSectionLink, HelpSectionList, HelpSectionStyled } from './HelpSection.styled'
2
+ import { HelpSectionProps } from './HelpSectionProps'
3
+ import React from 'react'
4
+
5
+ export const HelpSection: React.FC<HelpSectionProps> = ({ title, items, homeUrl = '/' }) => {
6
+ return (
7
+ <HelpSectionStyled>
8
+ <p>{title}</p>
9
+ <HelpSectionList>
10
+ {items.map((item) => (
11
+ <HelpSectionLink key={item.title} title={item.title}>
12
+ <a href={`${homeUrl}${item.url}`}>{item.title}</a>
13
+ </HelpSectionLink>
14
+ ))}
15
+ </HelpSectionList>
16
+ </HelpSectionStyled>
17
+ )
18
+ }
@@ -0,0 +1,6 @@
1
+ import { MenuItem } from '../HelpPanelList/HelpPanelListProps';
2
+ export interface HelpSectionProps {
3
+ title: string;
4
+ items: MenuItem[];
5
+ homeUrl?: string;
6
+ }
@@ -0,0 +1,7 @@
1
+ import { MenuItem } from '../HelpPanelList/HelpPanelListProps'
2
+
3
+ export interface HelpSectionProps {
4
+ title: string
5
+ items: MenuItem[]
6
+ homeUrl?: string
7
+ }
@@ -0,0 +1,2 @@
1
+ export * from './HelpSection';
2
+ export * from './HelpSectionProps';
@@ -0,0 +1,2 @@
1
+ export * from './HelpSection';
2
+ export * from './HelpSectionProps';
@@ -0,0 +1,2 @@
1
+ export * from './HelpSection'
2
+ export * from './HelpSectionProps'
@@ -18,7 +18,7 @@ export const NavBarDropDown: FC<NavBarDropDownProps> = ({
18
18
  setEnableScrollbarOnClose,
19
19
  setIsOpen
20
20
  }): React.ReactElement | null => {
21
- const [ref, isIntersectingWithElement] = useIntersectionObserver<HTMLDivElement>({
21
+ const [ref, isIntersectingWithElement] = useIntersectionObserver({
22
22
  options: { threshold: 0.15 }
23
23
  })
24
24
 
@@ -1,9 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { SocialList } from './SocialLinks.styled';
3
- import { useIntersectionObserver } from '../../../hooks';
4
3
  export const SocialLinks = ({ links }) => {
5
- return (_jsx(SocialList, { children: links.map((social) => {
6
- const [ref, isIntersecting] = useIntersectionObserver({});
7
- return (_jsx("li", { children: _jsx("a", { href: social.url, rel: 'noopener noreferrer', target: '_blank', children: _jsx("img", { ref: ref, src: isIntersecting ? social.iconSrc : '', alt: social.alt, width: '20', height: '20' }) }) }, social.url));
8
- }) }));
4
+ return (_jsx(SocialList, { children: links.map((social) => (_jsx("li", { children: _jsx("a", { href: social.url, rel: 'noopener noreferrer', target: '_blank', children: _jsx("img", { src: social.iconSrc, alt: social.alt, width: '20', height: '20' }) }) }, social.url))) }));
9
5
  };
@@ -1,21 +1,17 @@
1
1
  import React from 'react'
2
2
  import { SocialLinksProps } from './SocialLinksProps.types'
3
3
  import { SocialList } from './SocialLinks.styled'
4
- import { useIntersectionObserver } from '../../../hooks'
5
4
 
6
5
  export const SocialLinks: React.FC<SocialLinksProps> = ({ links }) => {
7
6
  return (
8
7
  <SocialList>
9
- {links.map((social) => {
10
- const [ref, isIntersecting] = useIntersectionObserver<HTMLImageElement>({})
11
- return (
12
- <li key={social.url}>
13
- <a href={social.url} rel='noopener noreferrer' target='_blank'>
14
- <img ref={ref} src={isIntersecting ? social.iconSrc : ''} alt={social.alt} width='20' height='20' />
15
- </a>
16
- </li>
17
- )
18
- })}
8
+ {links.map((social) => (
9
+ <li key={social.url}>
10
+ <a href={social.url} rel='noopener noreferrer' target='_blank'>
11
+ <img src={social.iconSrc} alt={social.alt} width='20' height='20' />
12
+ </a>
13
+ </li>
14
+ ))}
19
15
  </SocialList>
20
16
  )
21
17
  }
@@ -55,10 +55,6 @@
55
55
  font-weight: bold;
56
56
  }
57
57
 
58
- .e-text__inner {
59
- grid-row: 1;
60
- }
61
-
62
58
  .form-group__label-icon {
63
59
  color: var(--neutral-neutral-1);
64
60
  font-weight: bold;
@@ -154,8 +150,6 @@
154
150
 
155
151
  &--has-prefix {
156
152
  width: 100%;
157
- display: grid;
158
- grid-template-columns: 1fr;
159
153
 
160
154
  @include portrait-tablets {
161
155
  width: 50%;
@@ -163,23 +157,14 @@
163
157
 
164
158
  .has-currency-prefix {
165
159
  padding-left: 2rem;
166
- grid-column: 1;
167
- grid-row: 2;
168
- align-self: center;
169
160
  }
170
161
 
171
162
  .has-currency-suffix {
172
163
  padding-right: 2rem;
173
- grid-column: 1;
174
- grid-row: 2;
175
- align-self: center;
176
164
  }
177
165
 
178
166
  .has-percent-suffix {
179
167
  padding-left: 0.75rem;
180
- grid-column: 1;
181
- grid-row: 2;
182
- align-self: center;
183
168
  }
184
169
  }
185
170
 
@@ -200,28 +185,27 @@
200
185
  }
201
186
 
202
187
  .input-icon-currency-suffix {
203
- grid-column: 1;
204
- grid-row: 2;
205
- align-self: center;
206
- margin-left: calc(100% - 30px);
207
- width: fit-content;
188
+ position: absolute;
189
+ right: 10px;
190
+ bottom: 10px;
191
+ background: none;
192
+ border: none;
208
193
  }
209
194
 
210
195
  .input-icon-currency-prefix {
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;
196
+ position: absolute;
197
+ left: 10px;
198
+ bottom: 10px;
199
+ background: none;
200
+ border: none;
217
201
  }
218
202
 
219
203
  .input-icon-percent-suffix {
220
- grid-column: 1;
221
- grid-row: 2;
222
- align-self: center;
223
- margin-left: calc(100% - 30px);
224
- width: fit-content;
204
+ position: absolute;
205
+ right: 10px;
206
+ bottom: 10px;
207
+ background: none;
208
+ border: none;
225
209
  }
226
210
 
227
211
  .formgroup--input__button {
@@ -124,7 +124,7 @@ export const MaskInput: Story = {
124
124
  }
125
125
  }
126
126
 
127
- export const WithSufixEuro: Story = {
127
+ export const WithPrefixEuro: 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 WithSufixPercent: Story = {
149
+ export const WithPrefixPercent: Story = {
150
150
  args: {
151
151
  name: 'prefix',
152
152
  label: 'Price:',
@@ -156,14 +156,3 @@ export const WithSufixPercent: 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
- }
@@ -12,8 +12,6 @@ export * from './Breadcrumb';
12
12
  export * from './ContactBox';
13
13
  export * from './ContactCardList';
14
14
  export * from './ContactInfo';
15
- export * from './ContactInfoBox';
16
- export * from './ContactInfoBoxMobile';
17
15
  export * from './ContinueEditingBanner';
18
16
  export * from './CountDownMessage';
19
17
  export * from './DocumentListMenuSection';
@@ -56,3 +54,5 @@ export * from './TypeModulesList';
56
54
  export * from './UploadRatafiaZone';
57
55
  export * from './WarningBox';
58
56
  export * from './InfoBarFooter';
57
+ export * from './HelpSection';
58
+ export * from './HelpPanelList';
@@ -12,8 +12,6 @@ export * from './Breadcrumb';
12
12
  export * from './ContactBox';
13
13
  export * from './ContactCardList';
14
14
  export * from './ContactInfo';
15
- export * from './ContactInfoBox';
16
- export * from './ContactInfoBoxMobile';
17
15
  export * from './ContinueEditingBanner';
18
16
  export * from './CountDownMessage';
19
17
  export * from './DocumentListMenuSection';
@@ -56,3 +54,5 @@ export * from './TypeModulesList';
56
54
  export * from './UploadRatafiaZone';
57
55
  export * from './WarningBox';
58
56
  export * from './InfoBarFooter';
57
+ export * from './HelpSection';
58
+ export * from './HelpPanelList';
@@ -12,8 +12,6 @@ export * from './Breadcrumb'
12
12
  export * from './ContactBox'
13
13
  export * from './ContactCardList'
14
14
  export * from './ContactInfo'
15
- export * from './ContactInfoBox'
16
- export * from './ContactInfoBoxMobile'
17
15
  export * from './ContinueEditingBanner'
18
16
  export * from './CountDownMessage'
19
17
  export * from './DocumentListMenuSection'
@@ -56,3 +54,5 @@ export * from './TypeModulesList'
56
54
  export * from './UploadRatafiaZone'
57
55
  export * from './WarningBox'
58
56
  export * from './InfoBarFooter'
57
+ export * from './HelpSection'
58
+ export * from './HelpPanelList'
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { EmailContactBox, PhoneContactBoxDesktop } from '../../molecules';
2
3
  import { Button } from '../../atoms';
3
- import { ContactInfoBox } from '../../molecules/ContactInfoBox';
4
4
  import { ContactJumbotronStyled } from './ContactJumbotron.styled';
5
- export const ContactJumbotron = ({ faqsTitle, visitFaqPageLabel, children, isJonSnow = false, items }) => {
6
- return (_jsxs(ContactJumbotronStyled, { children: [_jsx(ContactInfoBox, { items: items }), _jsx("h2", { className: 'contact__text__title sans-serif', children: faqsTitle }), _jsx("div", { className: 'contact__text__subtitle sans-serif', children: children }), !isJonSnow && (_jsx(Button, { givenClass: 'faq-button', color: 'secondary', label: visitFaqPageLabel, link: '/faqs/', dataQa: 'visitFaq' }))] }));
5
+ export const ContactJumbotron = ({ phoneBoxDesktopProps, emailContactBoxProps, faqsTitle, visitFaqPageLabel, children, isJonSnow = false }) => {
6
+ return (_jsxs(ContactJumbotronStyled, { children: [!isJonSnow && _jsx(PhoneContactBoxDesktop, { ...phoneBoxDesktopProps }), _jsx("h2", { className: 'contact__text__title sans-serif', children: faqsTitle }), _jsx("div", { className: 'contact__text__subtitle sans-serif', children: children }), !isJonSnow && (_jsx(Button, { givenClass: 'faq-button', color: 'secondary', label: visitFaqPageLabel, link: '/faqs/', dataQa: 'visitFaq' })), _jsx(EmailContactBox, { ...emailContactBoxProps })] }));
7
7
  };
@@ -35,6 +35,7 @@ export const ContactJumbotronStyled = styled.article `
35
35
  .faq-button {
36
36
  display: inline-block;
37
37
  margin-top: 1rem;
38
+ width: 100%;
38
39
  @media ${device['portrait-tablets']} {
39
40
  width: 10rem;
40
41
  }
@@ -36,6 +36,7 @@ export const ContactJumbotronStyled = styled.article`
36
36
  .faq-button {
37
37
  display: inline-block;
38
38
  margin-top: 1rem;
39
+ width: 100%;
39
40
  @media ${device['portrait-tablets']} {
40
41
  width: 10rem;
41
42
  }
@@ -1,20 +1,21 @@
1
1
  import React from 'react'
2
2
 
3
+ import { EmailContactBox, PhoneContactBoxDesktop } from '../../molecules'
3
4
  import { Button } from '../../atoms'
4
- import { ContactInfoBox } from '../../molecules/ContactInfoBox'
5
5
  import { type ContactJumbotronProps } from './ContactJumbotronProps.types'
6
6
  import { ContactJumbotronStyled } from './ContactJumbotron.styled'
7
7
 
8
8
  export const ContactJumbotron: React.FC<ContactJumbotronProps> = ({
9
+ phoneBoxDesktopProps,
10
+ emailContactBoxProps,
9
11
  faqsTitle,
10
12
  visitFaqPageLabel,
11
13
  children,
12
- isJonSnow = false,
13
- items
14
+ isJonSnow = false
14
15
  }) => {
15
16
  return (
16
17
  <ContactJumbotronStyled>
17
- <ContactInfoBox items={items} />
18
+ {!isJonSnow && <PhoneContactBoxDesktop {...phoneBoxDesktopProps} />}
18
19
  <h2 className='contact__text__title sans-serif'>{faqsTitle}</h2>
19
20
  <div className='contact__text__subtitle sans-serif'>{children}</div>
20
21
  {!isJonSnow && (
@@ -26,6 +27,7 @@ export const ContactJumbotron: React.FC<ContactJumbotronProps> = ({
26
27
  dataQa={'visitFaq'}
27
28
  />
28
29
  )}
30
+ <EmailContactBox {...emailContactBoxProps} />
29
31
  </ContactJumbotronStyled>
30
32
  )
31
33
  }
@@ -1,9 +1,10 @@
1
- import { ContactInfoCardProps } from 'src/components/molecules/ContactInfoCard';
2
1
  import type React from 'react';
2
+ import { type EmailContactBoxProps, type PhoneContactBoxDesktopProps } from '../../molecules';
3
3
  export interface ContactJumbotronProps {
4
+ phoneBoxDesktopProps: PhoneContactBoxDesktopProps;
5
+ emailContactBoxProps: EmailContactBoxProps;
4
6
  faqsTitle: string;
5
7
  visitFaqPageLabel: string;
6
8
  children: React.ReactNode;
7
9
  isJonSnow?: boolean;
8
- items: ContactInfoCardProps[];
9
10
  }
@@ -1,10 +1,12 @@
1
- import { ContactInfoCardProps } from 'src/components/molecules/ContactInfoCard'
2
1
  import type React from 'react'
3
2
 
3
+ import { type EmailContactBoxProps, type PhoneContactBoxDesktopProps } from '../../molecules'
4
+
4
5
  export interface ContactJumbotronProps {
6
+ phoneBoxDesktopProps: PhoneContactBoxDesktopProps
7
+ emailContactBoxProps: EmailContactBoxProps
5
8
  faqsTitle: string
6
9
  visitFaqPageLabel: string
7
10
  children: React.ReactNode
8
11
  isJonSnow?: boolean
9
- items: ContactInfoCardProps[]
10
12
  }
@@ -0,0 +1,3 @@
1
+ import { DesktopMenuProps } from './DesktopMenuProps';
2
+ import React from 'react';
3
+ export declare const DesktopMenu: React.FC<DesktopMenuProps>;
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { DesktopMenuStyled } from './DesktopMenu.styled';
3
+ import { HelpSection } from '../../molecules';
4
+ import { PhoneNumberDisplay } from '../../atoms';
5
+ export const DesktopMenu = ({ phoneNumber, menuList, userActions, homeUrl }) => {
6
+ return (_jsxs(DesktopMenuStyled, { children: [phoneNumber && _jsx(PhoneNumberDisplay, { phoneNumber: phoneNumber }), menuList?.items?.length && _jsx(HelpSection, { ...menuList, homeUrl: homeUrl }), userActions] }));
7
+ };
@@ -0,0 +1 @@
1
+ export declare const DesktopMenuStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
@@ -0,0 +1,16 @@
1
+ import styled from 'styled-components';
2
+ export const DesktopMenuStyled = styled.nav `
3
+ display: flex;
4
+ gap: 2rem;
5
+ height: 100%;
6
+ justify-content: center;
7
+ align-items: center;
8
+ @media (max-width: 720px) {
9
+ display: none;
10
+ }
11
+ @media (min-width: 721px) and (max-width: 849px) {
12
+ gap: 1rem;
13
+ flex-direction: column;
14
+ align-items: end;
15
+ }
16
+ `;
@@ -0,0 +1,17 @@
1
+ import styled from 'styled-components'
2
+
3
+ export const DesktopMenuStyled = styled.nav`
4
+ display: flex;
5
+ gap: 2rem;
6
+ height: 100%;
7
+ justify-content: center;
8
+ align-items: center;
9
+ @media (max-width: 720px) {
10
+ display: none;
11
+ }
12
+ @media (min-width: 721px) and (max-width: 849px) {
13
+ gap: 1rem;
14
+ flex-direction: column;
15
+ align-items: end;
16
+ }
17
+ `
@@ -0,0 +1,15 @@
1
+ import { DesktopMenuProps } from './DesktopMenuProps'
2
+ import { DesktopMenuStyled } from './DesktopMenu.styled'
3
+ import { HelpSection } from '../../molecules'
4
+ import { PhoneNumberDisplay } from '../../atoms'
5
+ import React from 'react'
6
+
7
+ export const DesktopMenu: React.FC<DesktopMenuProps> = ({ phoneNumber, menuList, userActions, homeUrl }) => {
8
+ return (
9
+ <DesktopMenuStyled>
10
+ {phoneNumber && <PhoneNumberDisplay phoneNumber={phoneNumber} />}
11
+ {menuList?.items?.length && <HelpSection {...menuList} homeUrl={homeUrl} />}
12
+ {userActions}
13
+ </DesktopMenuStyled>
14
+ )
15
+ }
@@ -0,0 +1,7 @@
1
+ import { HelpSectionProps } from 'src/components/molecules/HelpSection';
2
+ export interface DesktopMenuProps {
3
+ phoneNumber: string;
4
+ menuList?: HelpSectionProps;
5
+ userActions: React.ReactNode;
6
+ homeUrl: string;
7
+ }
@@ -0,0 +1,8 @@
1
+ import { HelpSectionProps } from 'src/components/molecules/HelpSection'
2
+
3
+ export interface DesktopMenuProps {
4
+ phoneNumber: string
5
+ menuList?: HelpSectionProps
6
+ userActions: React.ReactNode
7
+ homeUrl: string
8
+ }
@@ -0,0 +1,2 @@
1
+ export * from './DesktopMenu';
2
+ export * from './DesktopMenuProps';
@@ -0,0 +1,2 @@
1
+ export * from './DesktopMenu';
2
+ export * from './DesktopMenuProps';
@@ -0,0 +1,2 @@
1
+ export * from './DesktopMenu'
2
+ export * from './DesktopMenuProps'
@@ -0,0 +1,3 @@
1
+ import { MobileMenuProps } from './MobileMenuProps';
2
+ import React from 'react';
3
+ export declare const MobileMenu: React.FC<MobileMenuProps>;
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ // src/components/organisms/MobileMenu/MobileMenu.tsx
3
+ import { ContactInformation, MobileTrigger } from '../../atoms';
4
+ import { MobileMenuWrapper, UserActionsPanel } from './MobileMenu.styled';
5
+ import { HelpPanelList } from '../../molecules';
6
+ import { MobilePanel } from '../MobilePanel';
7
+ export const MobileMenu = ({ isHelpActive, isPersonalActive, toggleMenuHelpOpen, toggleMenuPersonalOpen, menuList, sitePhone, scheduleText, homeUrl, userActions, helpTriggerImage, userTriggerImage, closeText, showTopBar }) => {
8
+ return (_jsxs(MobileMenuWrapper, { children: [_jsx(MobileTrigger, { onClick: toggleMenuHelpOpen, isActive: isHelpActive, imageUrl: helpTriggerImage, altText: 'Help and contact menu' }), _jsx(MobileTrigger, { onClick: toggleMenuPersonalOpen, isActive: isPersonalActive, imageUrl: userTriggerImage, altText: 'User actions menu' }), _jsxs(MobilePanel, { showTopBar: showTopBar, closeText: closeText, isActive: isHelpActive, onClose: toggleMenuHelpOpen, children: [menuList?.items?.length && _jsx(HelpPanelList, { ...menuList, homeUrl: homeUrl }), sitePhone && _jsx(ContactInformation, { phoneNumber: sitePhone, scheduleText: scheduleText })] }), _jsx(MobilePanel, { showTopBar: showTopBar, closeText: closeText, isActive: isPersonalActive, onClose: toggleMenuPersonalOpen, children: _jsx(UserActionsPanel, { children: userActions }) })] }));
9
+ };
@@ -0,0 +1,7 @@
1
+ type MobileMenuTriggerProps = {
2
+ isActive: boolean;
3
+ };
4
+ export declare const MobileMenuWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
5
+ export declare const MobilePersonalTrigger: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, MobileMenuTriggerProps>> & string;
6
+ export declare const UserActionsPanel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
7
+ export {};
@@ -0,0 +1,23 @@
1
+ import styled from 'styled-components';
2
+ export const MobileMenuWrapper = styled.nav `
3
+ display: flex;
4
+ justify-content: flex-end;
5
+ align-items: center;
6
+ gap: 1rem;
7
+ @media (min-width: 720px) {
8
+ display: none;
9
+ }
10
+ `;
11
+ export const MobilePersonalTrigger = styled.div `
12
+ border: 1px solid var(--neutral-neutral-3);
13
+ border-radius: 4px;
14
+ padding: 4px 8px;
15
+ cursor: pointer;
16
+ background-color: ${(props) => (props.isActive ? 'var(--primary-main)' : 'var(--others-white)')};
17
+ `;
18
+ export const UserActionsPanel = styled.div `
19
+ padding: 1.5rem 0;
20
+ display: flex;
21
+ align-items: center;
22
+ justify-content: center;
23
+ `;