@npm_leadtech/legal-lib-components 7.19.1 → 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.
- package/dist/css/styles.css +15 -30
- package/dist/src/components/atoms/CardPane/CardPane.styled.js +1 -1
- package/dist/src/components/atoms/CardPane/CardPane.styled.ts +1 -1
- package/dist/src/components/atoms/ContactInformationHeader/ContactInformationHeader.d.ts +3 -0
- package/dist/src/components/atoms/ContactInformationHeader/ContactInformationHeader.js +5 -0
- package/dist/src/components/atoms/ContactInformationHeader/ContactInformationHeader.styled.d.ts +1 -0
- package/dist/src/components/atoms/ContactInformationHeader/ContactInformationHeader.styled.js +21 -0
- package/dist/src/components/atoms/ContactInformationHeader/ContactInformationHeader.styled.ts +22 -0
- package/dist/src/components/atoms/ContactInformationHeader/ContactInformationHeader.tsx +14 -0
- package/dist/src/components/atoms/ContactInformationHeader/ContactInformationHeaderProps.d.ts +4 -0
- package/dist/src/components/atoms/ContactInformationHeader/ContactInformationHeaderProps.ts +4 -0
- package/dist/src/components/atoms/ContactInformationHeader/index.d.ts +2 -0
- package/dist/src/components/atoms/ContactInformationHeader/index.js +2 -0
- package/dist/src/components/atoms/ContactInformationHeader/index.ts +2 -0
- package/dist/src/components/atoms/MobileTrigger/MobileTrigger.d.ts +3 -0
- package/dist/src/components/atoms/MobileTrigger/MobileTrigger.js +5 -0
- package/dist/src/components/atoms/MobileTrigger/MobileTrigger.styled.d.ts +5 -0
- package/dist/src/components/atoms/MobileTrigger/MobileTrigger.styled.js +8 -0
- package/dist/src/components/atoms/MobileTrigger/MobileTrigger.styled.ts +13 -0
- package/dist/src/components/atoms/MobileTrigger/MobileTrigger.tsx +11 -0
- package/dist/src/components/atoms/MobileTrigger/MobileTriggerProps.d.ts +6 -0
- package/dist/src/components/atoms/MobileTrigger/MobileTriggerProps.ts +6 -0
- package/dist/src/components/atoms/MobileTrigger/index.d.ts +2 -0
- package/dist/src/components/atoms/MobileTrigger/index.js +2 -0
- package/dist/src/components/atoms/MobileTrigger/index.ts +2 -0
- package/dist/src/components/atoms/PhoneNumberDisplay/PhoneNumberDisplay.d.ts +3 -0
- package/dist/src/components/atoms/PhoneNumberDisplay/PhoneNumberDisplay.js +6 -0
- package/dist/src/components/atoms/PhoneNumberDisplay/PhoneNumberDisplay.styled.d.ts +1 -0
- package/dist/src/components/atoms/PhoneNumberDisplay/PhoneNumberDisplay.styled.js +17 -0
- package/dist/src/components/atoms/PhoneNumberDisplay/PhoneNumberDisplay.styled.ts +18 -0
- package/dist/src/components/atoms/PhoneNumberDisplay/PhoneNumberDisplay.tsx +15 -0
- package/dist/src/components/atoms/PhoneNumberDisplay/PhoneNumberDisplayProps.d.ts +3 -0
- package/dist/src/components/atoms/PhoneNumberDisplay/PhoneNumberDisplayProps.ts +3 -0
- package/dist/src/components/atoms/PhoneNumberDisplay/index.d.ts +2 -0
- package/dist/src/components/atoms/PhoneNumberDisplay/index.js +2 -0
- package/dist/src/components/atoms/PhoneNumberDisplay/index.ts +2 -0
- package/dist/src/components/atoms/SearchSelect/SearchSelect.styled.js +1 -1
- package/dist/src/components/atoms/SearchSelect/SearchSelect.styled.ts +1 -1
- package/dist/src/components/atoms/index.d.ts +3 -0
- package/dist/src/components/atoms/index.js +3 -0
- package/dist/src/components/atoms/index.ts +3 -0
- package/dist/src/components/molecules/ContactInfo/ContactInfo.styled.js +1 -1
- package/dist/src/components/molecules/ContactInfo/ContactInfo.styled.ts +1 -1
- package/dist/src/components/molecules/HelpPanelList/HelpPanelList.d.ts +3 -0
- package/dist/src/components/molecules/HelpPanelList/HelpPanelList.js +5 -0
- package/dist/src/components/molecules/HelpPanelList/HelpPanelList.styled.d.ts +4 -0
- package/dist/src/components/molecules/HelpPanelList/HelpPanelList.styled.js +34 -0
- package/dist/src/components/molecules/HelpPanelList/HelpPanelList.styled.ts +38 -0
- package/dist/src/components/molecules/HelpPanelList/HelpPanelList.tsx +18 -0
- package/dist/src/components/molecules/HelpPanelList/HelpPanelListProps.d.ts +9 -0
- package/dist/src/components/molecules/HelpPanelList/HelpPanelListProps.js +1 -0
- package/dist/src/components/molecules/HelpPanelList/HelpPanelListProps.ts +10 -0
- package/dist/src/components/molecules/HelpPanelList/index.d.ts +2 -0
- package/dist/src/components/molecules/HelpPanelList/index.js +2 -0
- package/dist/src/components/molecules/HelpPanelList/index.ts +2 -0
- package/dist/src/components/molecules/HelpSection/HelpSection.d.ts +3 -0
- package/dist/src/components/molecules/HelpSection/HelpSection.js +5 -0
- package/dist/src/components/molecules/HelpSection/HelpSection.styled.d.ts +3 -0
- package/dist/src/components/molecules/HelpSection/HelpSection.styled.js +64 -0
- package/dist/src/components/molecules/HelpSection/HelpSection.styled.ts +66 -0
- package/dist/src/components/molecules/HelpSection/HelpSection.tsx +18 -0
- package/dist/src/components/molecules/HelpSection/HelpSectionProps.d.ts +6 -0
- package/dist/src/components/molecules/HelpSection/HelpSectionProps.js +1 -0
- package/dist/src/components/molecules/HelpSection/HelpSectionProps.ts +7 -0
- package/dist/src/components/molecules/HelpSection/index.d.ts +2 -0
- package/dist/src/components/molecules/HelpSection/index.js +2 -0
- package/dist/src/components/molecules/HelpSection/index.ts +2 -0
- package/dist/src/components/molecules/NavBarDropDown/NavBarDropDown.tsx +1 -1
- package/dist/src/components/molecules/SocialLinks/SocialLinks.js +1 -5
- package/dist/src/components/molecules/SocialLinks/SocialLinks.tsx +7 -11
- package/dist/src/components/molecules/TextInput/TextInput.scss +15 -31
- package/dist/src/components/molecules/TextInput/stories/TextInput.stories.tsx +2 -13
- package/dist/src/components/molecules/index.d.ts +2 -2
- package/dist/src/components/molecules/index.js +2 -2
- package/dist/src/components/molecules/index.ts +2 -2
- package/dist/src/components/organisms/ContactJumbotron/ContactJumbotron.js +3 -3
- package/dist/src/components/organisms/ContactJumbotron/ContactJumbotron.styled.js +1 -0
- package/dist/src/components/organisms/ContactJumbotron/ContactJumbotron.styled.ts +1 -0
- package/dist/src/components/organisms/ContactJumbotron/ContactJumbotron.tsx +6 -4
- package/dist/src/components/organisms/ContactJumbotron/ContactJumbotronProps.types.d.ts +3 -2
- package/dist/src/components/organisms/ContactJumbotron/ContactJumbotronProps.types.ts +4 -2
- package/dist/src/components/organisms/DesktopMenu/DesktopMenu.d.ts +3 -0
- package/dist/src/components/organisms/DesktopMenu/DesktopMenu.js +7 -0
- package/dist/src/components/organisms/DesktopMenu/DesktopMenu.styled.d.ts +1 -0
- package/dist/src/components/organisms/DesktopMenu/DesktopMenu.styled.js +16 -0
- package/dist/src/components/organisms/DesktopMenu/DesktopMenu.styled.ts +17 -0
- package/dist/src/components/organisms/DesktopMenu/DesktopMenu.tsx +15 -0
- package/dist/src/components/organisms/DesktopMenu/DesktopMenuProps.d.ts +7 -0
- package/dist/src/components/organisms/DesktopMenu/DesktopMenuProps.js +1 -0
- package/dist/src/components/organisms/DesktopMenu/DesktopMenuProps.ts +8 -0
- package/dist/src/components/organisms/DesktopMenu/index.d.ts +2 -0
- package/dist/src/components/organisms/DesktopMenu/index.js +2 -0
- package/dist/src/components/organisms/DesktopMenu/index.ts +2 -0
- package/dist/src/components/organisms/MobileMenu/MobileMenu.d.ts +3 -0
- package/dist/src/components/organisms/MobileMenu/MobileMenu.js +9 -0
- package/dist/src/components/organisms/MobileMenu/MobileMenu.styled.d.ts +7 -0
- package/dist/src/components/organisms/MobileMenu/MobileMenu.styled.js +23 -0
- package/dist/src/components/organisms/MobileMenu/MobileMenu.styled.ts +30 -0
- package/dist/src/components/organisms/MobileMenu/MobileMenu.tsx +54 -0
- package/dist/src/components/organisms/MobileMenu/MobileMenuProps.d.ts +16 -0
- package/dist/src/components/organisms/MobileMenu/MobileMenuProps.js +1 -0
- package/dist/src/components/organisms/MobileMenu/MobileMenuProps.ts +18 -0
- package/dist/src/components/organisms/MobileMenu/index.d.ts +2 -0
- package/dist/src/components/organisms/MobileMenu/index.js +2 -0
- package/dist/src/components/organisms/MobileMenu/index.ts +2 -0
- package/dist/src/components/organisms/MobilePanel/MobilePanel.d.ts +3 -0
- package/dist/src/components/organisms/MobilePanel/MobilePanel.js +4 -0
- package/dist/src/components/organisms/MobilePanel/MobilePanel.styled.d.ts +8 -0
- package/dist/src/components/organisms/MobilePanel/MobilePanel.styled.js +27 -0
- package/dist/src/components/organisms/MobilePanel/MobilePanel.styled.ts +35 -0
- package/dist/src/components/organisms/MobilePanel/MobilePanel.tsx +13 -0
- package/dist/src/components/organisms/MobilePanel/MobilePanelProps.d.ts +7 -0
- package/dist/src/components/organisms/MobilePanel/MobilePanelProps.js +1 -0
- package/dist/src/components/organisms/MobilePanel/MobilePanelProps.ts +7 -0
- package/dist/src/components/organisms/MobilePanel/index.d.ts +2 -0
- package/dist/src/components/organisms/MobilePanel/index.js +2 -0
- package/dist/src/components/organisms/MobilePanel/index.ts +2 -0
- package/dist/src/components/organisms/index.d.ts +3 -0
- package/dist/src/components/organisms/index.js +3 -0
- package/dist/src/components/organisms/index.ts +3 -0
- package/dist/src/components/pages/ContactUsPage/ContactUsPage.js +3 -3
- package/dist/src/components/pages/ContactUsPage/ContactUsPage.tsx +3 -3
- package/dist/src/components/pages/ContactUsPage/ContactUsPageProps.d.ts +2 -2
- package/dist/src/components/pages/ContactUsPage/ContactUsPageProps.ts +2 -2
- package/dist/src/components/sections/AppHeader/AppHeader.d.ts +4 -0
- package/dist/src/components/sections/AppHeader/AppHeader.js +8 -0
- package/dist/src/components/sections/AppHeader/AppHeader.scss +32 -0
- package/dist/src/components/sections/AppHeader/AppHeader.styled.d.ts +2 -0
- package/dist/src/components/sections/AppHeader/AppHeader.styled.js +35 -0
- package/dist/src/components/sections/AppHeader/AppHeader.styled.ts +36 -0
- package/dist/src/components/sections/AppHeader/AppHeader.tsx +58 -0
- package/dist/src/components/sections/AppHeader/AppHeaderProps.d.ts +26 -0
- package/dist/src/components/sections/AppHeader/AppHeaderProps.js +1 -0
- package/dist/src/components/sections/AppHeader/AppHeaderProps.ts +27 -0
- package/dist/src/components/sections/AppHeader/index.d.ts +2 -0
- package/dist/src/components/sections/AppHeader/index.js +2 -0
- package/dist/src/components/sections/AppHeader/index.ts +2 -0
- package/dist/src/components/sections/ContactSection/ContactSection.styled.js +0 -2
- package/dist/src/components/sections/ContactSection/ContactSection.styled.ts +0 -2
- package/dist/src/components/sections/index.d.ts +1 -0
- package/dist/src/components/sections/index.js +1 -0
- package/dist/src/components/sections/index.ts +1 -0
- package/dist/src/hooks/useIntersectionObserver.d.ts +5 -7
- package/dist/src/hooks/useIntersectionObserver.js +7 -5
- package/dist/src/hooks/useIntersectionObserver.tsx +10 -12
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -1
- package/dist/images/componentsSvg/InfoLocationSvg.d.ts +0 -2
- package/dist/images/componentsSvg/InfoLocationSvg.js +0 -4
- package/dist/images/componentsSvg/InfoLocationSvg.tsx +0 -14
- package/dist/images/componentsSvg/InfoMailSvg.d.ts +0 -2
- package/dist/images/componentsSvg/InfoMailSvg.js +0 -4
- package/dist/images/componentsSvg/InfoMailSvg.tsx +0 -12
- package/dist/images/componentsSvg/InfoPhoneSvg.d.ts +0 -2
- package/dist/images/componentsSvg/InfoPhoneSvg.js +0 -4
- package/dist/images/componentsSvg/InfoPhoneSvg.tsx +0 -12
- package/dist/src/components/molecules/ContactInfoBox/ContactInfoBox.d.ts +0 -3
- package/dist/src/components/molecules/ContactInfoBox/ContactInfoBox.js +0 -6
- package/dist/src/components/molecules/ContactInfoBox/ContactInfoBox.styled.d.ts +0 -1
- package/dist/src/components/molecules/ContactInfoBox/ContactInfoBox.styled.js +0 -23
- package/dist/src/components/molecules/ContactInfoBox/ContactInfoBox.styled.ts +0 -24
- package/dist/src/components/molecules/ContactInfoBox/ContactInfoBox.tsx +0 -15
- package/dist/src/components/molecules/ContactInfoBox/ContactInfoBoxProps.types.d.ts +0 -4
- package/dist/src/components/molecules/ContactInfoBox/ContactInfoBoxProps.types.ts +0 -4
- package/dist/src/components/molecules/ContactInfoBox/index.d.ts +0 -2
- package/dist/src/components/molecules/ContactInfoBox/index.js +0 -1
- package/dist/src/components/molecules/ContactInfoBox/index.ts +0 -2
- package/dist/src/components/molecules/ContactInfoBoxMobile/ContactInfoBoxMobile.d.ts +0 -3
- package/dist/src/components/molecules/ContactInfoBoxMobile/ContactInfoBoxMobile.js +0 -6
- package/dist/src/components/molecules/ContactInfoBoxMobile/ContactInfoBoxMobile.styled.d.ts +0 -1
- package/dist/src/components/molecules/ContactInfoBoxMobile/ContactInfoBoxMobile.styled.js +0 -23
- package/dist/src/components/molecules/ContactInfoBoxMobile/ContactInfoBoxMobile.styled.ts +0 -24
- package/dist/src/components/molecules/ContactInfoBoxMobile/ContactInfoBoxMobile.tsx +0 -15
- package/dist/src/components/molecules/ContactInfoBoxMobile/ContactInfoBoxMobileProps.types.d.ts +0 -4
- package/dist/src/components/molecules/ContactInfoBoxMobile/ContactInfoBoxMobileProps.types.ts +0 -4
- package/dist/src/components/molecules/ContactInfoBoxMobile/index.d.ts +0 -2
- package/dist/src/components/molecules/ContactInfoBoxMobile/index.js +0 -1
- package/dist/src/components/molecules/ContactInfoBoxMobile/index.ts +0 -2
- package/dist/src/components/molecules/ContactInfoCard/ContactInfoCard.d.ts +0 -3
- package/dist/src/components/molecules/ContactInfoCard/ContactInfoCard.js +0 -19
- package/dist/src/components/molecules/ContactInfoCard/ContactInfoCard.styled.d.ts +0 -1
- package/dist/src/components/molecules/ContactInfoCard/ContactInfoCard.styled.js +0 -77
- package/dist/src/components/molecules/ContactInfoCard/ContactInfoCard.styled.ts +0 -78
- package/dist/src/components/molecules/ContactInfoCard/ContactInfoCard.tsx +0 -58
- package/dist/src/components/molecules/ContactInfoCard/ContactInfoCardProps.d.ts +0 -7
- package/dist/src/components/molecules/ContactInfoCard/ContactInfoCardProps.ts +0 -8
- package/dist/src/components/molecules/ContactInfoCard/index.d.ts +0 -2
- package/dist/src/components/molecules/ContactInfoCard/index.js +0 -2
- package/dist/src/components/molecules/ContactInfoCard/index.ts +0 -2
- /package/dist/src/components/{molecules/ContactInfoBox/ContactInfoBoxProps.types.js → atoms/ContactInformationHeader/ContactInformationHeaderProps.js} +0 -0
- /package/dist/src/components/{molecules/ContactInfoBoxMobile/ContactInfoBoxMobileProps.types.js → atoms/MobileTrigger/MobileTriggerProps.js} +0 -0
- /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 @@
|
|
|
1
|
+
export {};
|
|
@@ -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
|
|
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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
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
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
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
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
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
|
|
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
|
|
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
|
|
6
|
-
return (_jsxs(ContactJumbotronStyled, { children: [_jsx(
|
|
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
|
};
|
|
@@ -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
|
-
<
|
|
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,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 @@
|
|
|
1
|
+
export {};
|
|
@@ -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
|
+
`;
|