@npm_leadtech/legal-lib-components 7.19.2 → 7.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/styles.css +30 -15
- package/dist/images/componentsSvg/InfoLocationSvg.d.ts +2 -0
- package/dist/images/componentsSvg/InfoLocationSvg.js +4 -0
- package/dist/images/componentsSvg/InfoLocationSvg.tsx +14 -0
- package/dist/images/componentsSvg/InfoMailSvg.d.ts +2 -0
- package/dist/images/componentsSvg/InfoMailSvg.js +4 -0
- package/dist/images/componentsSvg/InfoMailSvg.tsx +12 -0
- package/dist/images/componentsSvg/InfoPhoneSvg.d.ts +2 -0
- package/dist/images/componentsSvg/InfoPhoneSvg.js +4 -0
- package/dist/images/componentsSvg/InfoPhoneSvg.tsx +12 -0
- 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/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 +0 -3
- package/dist/src/components/atoms/index.js +0 -3
- package/dist/src/components/atoms/index.ts +0 -3
- 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/ContactInfoBox/ContactInfoBox.d.ts +3 -0
- package/dist/src/components/molecules/ContactInfoBox/ContactInfoBox.js +6 -0
- package/dist/src/components/molecules/ContactInfoBox/ContactInfoBox.styled.d.ts +1 -0
- package/dist/src/components/molecules/ContactInfoBox/ContactInfoBox.styled.js +23 -0
- package/dist/src/components/molecules/ContactInfoBox/ContactInfoBox.styled.ts +24 -0
- package/dist/src/components/molecules/ContactInfoBox/ContactInfoBox.tsx +15 -0
- package/dist/src/components/molecules/ContactInfoBox/ContactInfoBoxProps.types.d.ts +4 -0
- package/dist/src/components/molecules/ContactInfoBox/ContactInfoBoxProps.types.ts +4 -0
- package/dist/src/components/molecules/ContactInfoBox/index.d.ts +2 -0
- package/dist/src/components/molecules/ContactInfoBox/index.js +1 -0
- package/dist/src/components/molecules/ContactInfoBox/index.ts +2 -0
- package/dist/src/components/molecules/ContactInfoBoxMobile/ContactInfoBoxMobile.d.ts +3 -0
- package/dist/src/components/molecules/ContactInfoBoxMobile/ContactInfoBoxMobile.js +6 -0
- package/dist/src/components/molecules/ContactInfoBoxMobile/ContactInfoBoxMobile.styled.d.ts +1 -0
- package/dist/src/components/molecules/ContactInfoBoxMobile/ContactInfoBoxMobile.styled.js +23 -0
- package/dist/src/components/molecules/ContactInfoBoxMobile/ContactInfoBoxMobile.styled.ts +24 -0
- package/dist/src/components/molecules/ContactInfoBoxMobile/ContactInfoBoxMobile.tsx +15 -0
- package/dist/src/components/molecules/ContactInfoBoxMobile/ContactInfoBoxMobileProps.types.d.ts +4 -0
- package/dist/src/components/molecules/ContactInfoBoxMobile/ContactInfoBoxMobileProps.types.ts +4 -0
- package/dist/src/components/molecules/ContactInfoBoxMobile/index.d.ts +2 -0
- package/dist/src/components/molecules/ContactInfoBoxMobile/index.js +1 -0
- package/dist/src/components/molecules/ContactInfoBoxMobile/index.ts +2 -0
- package/dist/src/components/molecules/ContactInfoCard/ContactInfoCard.d.ts +3 -0
- package/dist/src/components/molecules/ContactInfoCard/ContactInfoCard.js +19 -0
- package/dist/src/components/molecules/ContactInfoCard/ContactInfoCard.styled.d.ts +1 -0
- package/dist/src/components/molecules/ContactInfoCard/ContactInfoCard.styled.js +77 -0
- package/dist/src/components/molecules/ContactInfoCard/ContactInfoCard.styled.ts +78 -0
- package/dist/src/components/molecules/ContactInfoCard/ContactInfoCard.tsx +58 -0
- package/dist/src/components/molecules/ContactInfoCard/ContactInfoCardProps.d.ts +7 -0
- package/dist/src/components/molecules/ContactInfoCard/ContactInfoCardProps.ts +8 -0
- package/dist/src/components/molecules/ContactInfoCard/index.d.ts +2 -0
- package/dist/src/components/molecules/ContactInfoCard/index.js +2 -0
- package/dist/src/components/molecules/ContactInfoCard/index.ts +2 -0
- package/dist/src/components/molecules/NavBarDropDown/NavBarDropDown.tsx +1 -1
- package/dist/src/components/molecules/SocialLinks/SocialLinks.js +5 -1
- package/dist/src/components/molecules/SocialLinks/SocialLinks.tsx +11 -7
- package/dist/src/components/molecules/TextInput/TextInput.scss +31 -15
- package/dist/src/components/molecules/TextInput/stories/TextInput.stories.tsx +13 -2
- package/dist/src/components/molecules/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 +0 -1
- package/dist/src/components/organisms/ContactJumbotron/ContactJumbotron.styled.ts +0 -1
- package/dist/src/components/organisms/ContactJumbotron/ContactJumbotron.tsx +4 -6
- package/dist/src/components/organisms/ContactJumbotron/ContactJumbotronProps.types.d.ts +2 -3
- package/dist/src/components/organisms/ContactJumbotron/ContactJumbotronProps.types.ts +2 -4
- package/dist/src/components/organisms/index.d.ts +0 -3
- package/dist/src/components/organisms/index.js +0 -3
- package/dist/src/components/organisms/index.ts +0 -3
- 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/ContactSection/ContactSection.styled.js +2 -0
- package/dist/src/components/sections/ContactSection/ContactSection.styled.ts +2 -0
- package/dist/src/components/sections/index.d.ts +0 -1
- package/dist/src/components/sections/index.js +0 -1
- package/dist/src/components/sections/index.ts +0 -1
- package/dist/src/hooks/useIntersectionObserver.d.ts +7 -5
- package/dist/src/hooks/useIntersectionObserver.js +5 -7
- package/dist/src/hooks/useIntersectionObserver.tsx +12 -10
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -2
- package/dist/src/components/atoms/ContactInformationHeader/ContactInformationHeader.d.ts +0 -3
- package/dist/src/components/atoms/ContactInformationHeader/ContactInformationHeader.js +0 -5
- package/dist/src/components/atoms/ContactInformationHeader/ContactInformationHeader.styled.d.ts +0 -1
- package/dist/src/components/atoms/ContactInformationHeader/ContactInformationHeader.styled.js +0 -21
- package/dist/src/components/atoms/ContactInformationHeader/ContactInformationHeader.styled.ts +0 -22
- package/dist/src/components/atoms/ContactInformationHeader/ContactInformationHeader.tsx +0 -14
- package/dist/src/components/atoms/ContactInformationHeader/ContactInformationHeaderProps.d.ts +0 -4
- package/dist/src/components/atoms/ContactInformationHeader/ContactInformationHeaderProps.ts +0 -4
- package/dist/src/components/atoms/ContactInformationHeader/index.d.ts +0 -2
- package/dist/src/components/atoms/ContactInformationHeader/index.js +0 -2
- package/dist/src/components/atoms/ContactInformationHeader/index.ts +0 -2
- package/dist/src/components/atoms/MobileTrigger/MobileTrigger.d.ts +0 -3
- package/dist/src/components/atoms/MobileTrigger/MobileTrigger.js +0 -5
- package/dist/src/components/atoms/MobileTrigger/MobileTrigger.styled.d.ts +0 -5
- package/dist/src/components/atoms/MobileTrigger/MobileTrigger.styled.js +0 -8
- package/dist/src/components/atoms/MobileTrigger/MobileTrigger.styled.ts +0 -13
- package/dist/src/components/atoms/MobileTrigger/MobileTrigger.tsx +0 -11
- package/dist/src/components/atoms/MobileTrigger/MobileTriggerProps.d.ts +0 -6
- package/dist/src/components/atoms/MobileTrigger/MobileTriggerProps.ts +0 -6
- package/dist/src/components/atoms/MobileTrigger/index.d.ts +0 -2
- package/dist/src/components/atoms/MobileTrigger/index.js +0 -2
- package/dist/src/components/atoms/MobileTrigger/index.ts +0 -2
- package/dist/src/components/atoms/PhoneNumberDisplay/PhoneNumberDisplay.d.ts +0 -3
- package/dist/src/components/atoms/PhoneNumberDisplay/PhoneNumberDisplay.js +0 -6
- package/dist/src/components/atoms/PhoneNumberDisplay/PhoneNumberDisplay.styled.d.ts +0 -1
- package/dist/src/components/atoms/PhoneNumberDisplay/PhoneNumberDisplay.styled.js +0 -17
- package/dist/src/components/atoms/PhoneNumberDisplay/PhoneNumberDisplay.styled.ts +0 -18
- package/dist/src/components/atoms/PhoneNumberDisplay/PhoneNumberDisplay.tsx +0 -15
- package/dist/src/components/atoms/PhoneNumberDisplay/PhoneNumberDisplayProps.d.ts +0 -3
- package/dist/src/components/atoms/PhoneNumberDisplay/PhoneNumberDisplayProps.ts +0 -3
- package/dist/src/components/atoms/PhoneNumberDisplay/index.d.ts +0 -2
- package/dist/src/components/atoms/PhoneNumberDisplay/index.js +0 -2
- package/dist/src/components/atoms/PhoneNumberDisplay/index.ts +0 -2
- package/dist/src/components/molecules/HelpPanelList/HelpPanelList.d.ts +0 -3
- package/dist/src/components/molecules/HelpPanelList/HelpPanelList.js +0 -5
- package/dist/src/components/molecules/HelpPanelList/HelpPanelList.styled.d.ts +0 -4
- package/dist/src/components/molecules/HelpPanelList/HelpPanelList.styled.js +0 -34
- package/dist/src/components/molecules/HelpPanelList/HelpPanelList.styled.ts +0 -38
- package/dist/src/components/molecules/HelpPanelList/HelpPanelList.tsx +0 -18
- package/dist/src/components/molecules/HelpPanelList/HelpPanelListProps.d.ts +0 -9
- package/dist/src/components/molecules/HelpPanelList/HelpPanelListProps.js +0 -1
- package/dist/src/components/molecules/HelpPanelList/HelpPanelListProps.ts +0 -10
- package/dist/src/components/molecules/HelpPanelList/index.d.ts +0 -2
- package/dist/src/components/molecules/HelpPanelList/index.js +0 -2
- package/dist/src/components/molecules/HelpPanelList/index.ts +0 -2
- package/dist/src/components/molecules/HelpSection/HelpSection.d.ts +0 -3
- package/dist/src/components/molecules/HelpSection/HelpSection.js +0 -5
- package/dist/src/components/molecules/HelpSection/HelpSection.styled.d.ts +0 -3
- package/dist/src/components/molecules/HelpSection/HelpSection.styled.js +0 -64
- package/dist/src/components/molecules/HelpSection/HelpSection.styled.ts +0 -66
- package/dist/src/components/molecules/HelpSection/HelpSection.tsx +0 -18
- package/dist/src/components/molecules/HelpSection/HelpSectionProps.d.ts +0 -6
- package/dist/src/components/molecules/HelpSection/HelpSectionProps.js +0 -1
- package/dist/src/components/molecules/HelpSection/HelpSectionProps.ts +0 -7
- package/dist/src/components/molecules/HelpSection/index.d.ts +0 -2
- package/dist/src/components/molecules/HelpSection/index.js +0 -2
- package/dist/src/components/molecules/HelpSection/index.ts +0 -2
- package/dist/src/components/organisms/DesktopMenu/DesktopMenu.d.ts +0 -3
- package/dist/src/components/organisms/DesktopMenu/DesktopMenu.js +0 -7
- package/dist/src/components/organisms/DesktopMenu/DesktopMenu.styled.d.ts +0 -1
- package/dist/src/components/organisms/DesktopMenu/DesktopMenu.styled.js +0 -16
- package/dist/src/components/organisms/DesktopMenu/DesktopMenu.styled.ts +0 -17
- package/dist/src/components/organisms/DesktopMenu/DesktopMenu.tsx +0 -15
- package/dist/src/components/organisms/DesktopMenu/DesktopMenuProps.d.ts +0 -7
- package/dist/src/components/organisms/DesktopMenu/DesktopMenuProps.js +0 -1
- package/dist/src/components/organisms/DesktopMenu/DesktopMenuProps.ts +0 -8
- package/dist/src/components/organisms/DesktopMenu/index.d.ts +0 -2
- package/dist/src/components/organisms/DesktopMenu/index.js +0 -2
- package/dist/src/components/organisms/DesktopMenu/index.ts +0 -2
- package/dist/src/components/organisms/MobileMenu/MobileMenu.d.ts +0 -3
- package/dist/src/components/organisms/MobileMenu/MobileMenu.js +0 -9
- package/dist/src/components/organisms/MobileMenu/MobileMenu.styled.d.ts +0 -7
- package/dist/src/components/organisms/MobileMenu/MobileMenu.styled.js +0 -23
- package/dist/src/components/organisms/MobileMenu/MobileMenu.styled.ts +0 -30
- package/dist/src/components/organisms/MobileMenu/MobileMenu.tsx +0 -54
- package/dist/src/components/organisms/MobileMenu/MobileMenuProps.d.ts +0 -16
- package/dist/src/components/organisms/MobileMenu/MobileMenuProps.js +0 -1
- package/dist/src/components/organisms/MobileMenu/MobileMenuProps.ts +0 -18
- package/dist/src/components/organisms/MobileMenu/index.d.ts +0 -2
- package/dist/src/components/organisms/MobileMenu/index.js +0 -2
- package/dist/src/components/organisms/MobileMenu/index.ts +0 -2
- package/dist/src/components/organisms/MobilePanel/MobilePanel.d.ts +0 -3
- package/dist/src/components/organisms/MobilePanel/MobilePanel.js +0 -4
- package/dist/src/components/organisms/MobilePanel/MobilePanel.styled.d.ts +0 -8
- package/dist/src/components/organisms/MobilePanel/MobilePanel.styled.js +0 -27
- package/dist/src/components/organisms/MobilePanel/MobilePanel.styled.ts +0 -35
- package/dist/src/components/organisms/MobilePanel/MobilePanel.tsx +0 -13
- package/dist/src/components/organisms/MobilePanel/MobilePanelProps.d.ts +0 -7
- package/dist/src/components/organisms/MobilePanel/MobilePanelProps.js +0 -1
- package/dist/src/components/organisms/MobilePanel/MobilePanelProps.ts +0 -7
- package/dist/src/components/organisms/MobilePanel/index.d.ts +0 -2
- package/dist/src/components/organisms/MobilePanel/index.js +0 -2
- package/dist/src/components/organisms/MobilePanel/index.ts +0 -2
- package/dist/src/components/sections/AppHeader/AppHeader.d.ts +0 -4
- package/dist/src/components/sections/AppHeader/AppHeader.js +0 -8
- package/dist/src/components/sections/AppHeader/AppHeader.scss +0 -32
- package/dist/src/components/sections/AppHeader/AppHeader.styled.d.ts +0 -2
- package/dist/src/components/sections/AppHeader/AppHeader.styled.js +0 -35
- package/dist/src/components/sections/AppHeader/AppHeader.styled.ts +0 -36
- package/dist/src/components/sections/AppHeader/AppHeader.tsx +0 -58
- package/dist/src/components/sections/AppHeader/AppHeaderProps.d.ts +0 -26
- package/dist/src/components/sections/AppHeader/AppHeaderProps.js +0 -1
- package/dist/src/components/sections/AppHeader/AppHeaderProps.ts +0 -27
- package/dist/src/components/sections/AppHeader/index.d.ts +0 -2
- package/dist/src/components/sections/AppHeader/index.js +0 -2
- package/dist/src/components/sections/AppHeader/index.ts +0 -2
- /package/dist/src/components/{atoms/ContactInformationHeader/ContactInformationHeaderProps.js → molecules/ContactInfoBox/ContactInfoBoxProps.types.js} +0 -0
- /package/dist/src/components/{atoms/MobileTrigger/MobileTriggerProps.js → molecules/ContactInfoBoxMobile/ContactInfoBoxMobileProps.types.js} +0 -0
- /package/dist/src/components/{atoms/PhoneNumberDisplay/PhoneNumberDisplayProps.js → molecules/ContactInfoCard/ContactInfoCardProps.js} +0 -0
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
type MobileMenuTriggerProps = {
|
|
2
|
-
isActive: boolean;
|
|
3
|
-
};
|
|
4
|
-
export declare const MobileTriggerStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, MobileMenuTriggerProps>> & string;
|
|
5
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
export const MobileTriggerStyled = styled.div `
|
|
3
|
-
border: 1px solid var(--neutral-neutral-3);
|
|
4
|
-
border-radius: 4px;
|
|
5
|
-
padding: 4px 8px;
|
|
6
|
-
cursor: pointer;
|
|
7
|
-
background-color: ${(props) => (props.isActive ? 'var(--primary-main)' : 'var(--others-white)')};
|
|
8
|
-
`;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components'
|
|
2
|
-
|
|
3
|
-
type MobileMenuTriggerProps = {
|
|
4
|
-
isActive: boolean
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export const MobileTriggerStyled = styled.div<MobileMenuTriggerProps>`
|
|
8
|
-
border: 1px solid var(--neutral-neutral-3);
|
|
9
|
-
border-radius: 4px;
|
|
10
|
-
padding: 4px 8px;
|
|
11
|
-
cursor: pointer;
|
|
12
|
-
background-color: ${(props) => (props.isActive ? 'var(--primary-main)' : 'var(--others-white)')};
|
|
13
|
-
`
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { MobileTriggerProps } from './MobileTriggerProps'
|
|
2
|
-
import { MobileTriggerStyled } from './MobileTrigger.styled'
|
|
3
|
-
import React from 'react'
|
|
4
|
-
|
|
5
|
-
export const MobileTrigger: React.FC<MobileTriggerProps> = ({ onClick, isActive, imageUrl, altText }) => {
|
|
6
|
-
return (
|
|
7
|
-
<MobileTriggerStyled onClick={onClick} isActive={isActive}>
|
|
8
|
-
<img src={imageUrl} alt={altText} />
|
|
9
|
-
</MobileTriggerStyled>
|
|
10
|
-
)
|
|
11
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { PhoneIcon } from './../../../../images/componentsSvg/PhoneIcon';
|
|
3
|
-
import { PhoneNumberDisplayStyled } from './PhoneNumberDisplay.styled';
|
|
4
|
-
export const PhoneNumberDisplay = ({ phoneNumber }) => {
|
|
5
|
-
return (_jsxs(PhoneNumberDisplayStyled, { children: [_jsx(PhoneIcon, { width: 16, height: 16, fill: '#6d7275' }), _jsx("p", { children: _jsx("strong", { children: phoneNumber }) })] }));
|
|
6
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const PhoneNumberDisplayStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
export const PhoneNumberDisplayStyled = styled.nav `
|
|
3
|
-
display: flex;
|
|
4
|
-
align-items: center;
|
|
5
|
-
gap: 0.5rem;
|
|
6
|
-
color: var(--neutral-neutral-2);
|
|
7
|
-
p {
|
|
8
|
-
margin: 0;
|
|
9
|
-
}
|
|
10
|
-
border-right: 1px solid var(--neutral-neutral-3);
|
|
11
|
-
padding-right: 2rem;
|
|
12
|
-
|
|
13
|
-
@media (min-width: 721px) and (max-width: 849px) {
|
|
14
|
-
padding-right: 0;
|
|
15
|
-
border-right: none;
|
|
16
|
-
}
|
|
17
|
-
`;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components'
|
|
2
|
-
|
|
3
|
-
export const PhoneNumberDisplayStyled = styled.nav`
|
|
4
|
-
display: flex;
|
|
5
|
-
align-items: center;
|
|
6
|
-
gap: 0.5rem;
|
|
7
|
-
color: var(--neutral-neutral-2);
|
|
8
|
-
p {
|
|
9
|
-
margin: 0;
|
|
10
|
-
}
|
|
11
|
-
border-right: 1px solid var(--neutral-neutral-3);
|
|
12
|
-
padding-right: 2rem;
|
|
13
|
-
|
|
14
|
-
@media (min-width: 721px) and (max-width: 849px) {
|
|
15
|
-
padding-right: 0;
|
|
16
|
-
border-right: none;
|
|
17
|
-
}
|
|
18
|
-
`
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { PhoneIcon } from './../../../../images/componentsSvg/PhoneIcon'
|
|
2
|
-
import { PhoneNumberDisplayProps } from './PhoneNumberDisplayProps'
|
|
3
|
-
import { PhoneNumberDisplayStyled } from './PhoneNumberDisplay.styled'
|
|
4
|
-
import React from 'react'
|
|
5
|
-
|
|
6
|
-
export const PhoneNumberDisplay: React.FC<PhoneNumberDisplayProps> = ({ phoneNumber }) => {
|
|
7
|
-
return (
|
|
8
|
-
<PhoneNumberDisplayStyled>
|
|
9
|
-
<PhoneIcon width={16} height={16} fill='#6d7275' />
|
|
10
|
-
<p>
|
|
11
|
-
<strong>{phoneNumber}</strong>
|
|
12
|
-
</p>
|
|
13
|
-
</PhoneNumberDisplayStyled>
|
|
14
|
-
)
|
|
15
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { HelpPanelLink, HelpPanelListStyled, HelpPanelListTitle, HelpPanelListWrapper } from './HelpPanelList.styled';
|
|
3
|
-
export const HelpPanelList = ({ title, items, homeUrl = '/' }) => {
|
|
4
|
-
return (_jsxs(HelpPanelListWrapper, { children: [_jsx(HelpPanelListTitle, { children: title }), _jsx(HelpPanelListStyled, { children: items.map((item) => (_jsx(HelpPanelLink, { title: item.title, children: _jsx("a", { href: `${homeUrl}${item.url}`, children: item.title }) }, item.title))) })] }));
|
|
5
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const HelpPanelListStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, never>> & string;
|
|
2
|
-
export declare const HelpPanelListWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
-
export declare const HelpPanelListTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>> & string;
|
|
4
|
-
export declare const HelpPanelLink: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, never>> & string;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
export const HelpPanelListStyled = styled.ul `
|
|
3
|
-
display: flex;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
`;
|
|
6
|
-
export const HelpPanelListWrapper = styled.div `
|
|
7
|
-
padding: 1.5rem 0;
|
|
8
|
-
border-top: 1px solid var(--neutral-neutral-4);
|
|
9
|
-
`;
|
|
10
|
-
export const HelpPanelListTitle = styled.p `
|
|
11
|
-
font-weight: 600;
|
|
12
|
-
margin-bottom: 1rem;
|
|
13
|
-
padding-left: 0.25rem;
|
|
14
|
-
`;
|
|
15
|
-
export const HelpPanelLink = styled.li `
|
|
16
|
-
width: 100%;
|
|
17
|
-
margin-bottom: 0.5rem;
|
|
18
|
-
border-radius: 4px;
|
|
19
|
-
list-style: none;
|
|
20
|
-
|
|
21
|
-
&:hover {
|
|
22
|
-
background-color: var(--primary-main-light-5);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
a {
|
|
26
|
-
display: block;
|
|
27
|
-
padding: 0.25rem;
|
|
28
|
-
|
|
29
|
-
background-color: transparent;
|
|
30
|
-
|
|
31
|
-
text-decoration: none;
|
|
32
|
-
color: inherit;
|
|
33
|
-
}
|
|
34
|
-
`;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components'
|
|
2
|
-
|
|
3
|
-
export const HelpPanelListStyled = styled.ul`
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
`
|
|
7
|
-
|
|
8
|
-
export const HelpPanelListWrapper = styled.div`
|
|
9
|
-
padding: 1.5rem 0;
|
|
10
|
-
border-top: 1px solid var(--neutral-neutral-4);
|
|
11
|
-
`
|
|
12
|
-
|
|
13
|
-
export const HelpPanelListTitle = styled.p`
|
|
14
|
-
font-weight: 600;
|
|
15
|
-
margin-bottom: 1rem;
|
|
16
|
-
padding-left: 0.25rem;
|
|
17
|
-
`
|
|
18
|
-
|
|
19
|
-
export const HelpPanelLink = styled.li`
|
|
20
|
-
width: 100%;
|
|
21
|
-
margin-bottom: 0.5rem;
|
|
22
|
-
border-radius: 4px;
|
|
23
|
-
list-style: none;
|
|
24
|
-
|
|
25
|
-
&:hover {
|
|
26
|
-
background-color: var(--primary-main-light-5);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
a {
|
|
30
|
-
display: block;
|
|
31
|
-
padding: 0.25rem;
|
|
32
|
-
|
|
33
|
-
background-color: transparent;
|
|
34
|
-
|
|
35
|
-
text-decoration: none;
|
|
36
|
-
color: inherit;
|
|
37
|
-
}
|
|
38
|
-
`
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { HelpPanelLink, HelpPanelListStyled, HelpPanelListTitle, HelpPanelListWrapper } from './HelpPanelList.styled'
|
|
2
|
-
import { HelpPanelListProps } from './HelpPanelListProps'
|
|
3
|
-
import React from 'react'
|
|
4
|
-
|
|
5
|
-
export const HelpPanelList: React.FC<HelpPanelListProps> = ({ title, items, homeUrl = '/' }) => {
|
|
6
|
-
return (
|
|
7
|
-
<HelpPanelListWrapper>
|
|
8
|
-
<HelpPanelListTitle>{title}</HelpPanelListTitle>
|
|
9
|
-
<HelpPanelListStyled>
|
|
10
|
-
{items.map((item) => (
|
|
11
|
-
<HelpPanelLink key={item.title} title={item.title}>
|
|
12
|
-
<a href={`${homeUrl}${item.url}`}>{item.title}</a>
|
|
13
|
-
</HelpPanelLink>
|
|
14
|
-
))}
|
|
15
|
-
</HelpPanelListStyled>
|
|
16
|
-
</HelpPanelListWrapper>
|
|
17
|
-
)
|
|
18
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { HelpSectionLink, HelpSectionList, HelpSectionStyled } from './HelpSection.styled';
|
|
3
|
-
export const HelpSection = ({ title, items, homeUrl = '/' }) => {
|
|
4
|
-
return (_jsxs(HelpSectionStyled, { children: [_jsx("p", { children: title }), _jsx(HelpSectionList, { children: items.map((item) => (_jsx(HelpSectionLink, { title: item.title, children: _jsx("a", { href: `${homeUrl}${item.url}`, children: item.title }) }, item.title))) })] }));
|
|
5
|
-
};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export declare const HelpSectionStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
|
-
export declare const HelpSectionList: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, never>> & string;
|
|
3
|
-
export declare const HelpSectionLink: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, never>> & string;
|
|
@@ -1,64 +0,0 @@
|
|
|
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
|
-
`;
|
|
@@ -1,66 +0,0 @@
|
|
|
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
|
-
`
|
|
@@ -1,18 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
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;
|
|
@@ -1,16 +0,0 @@
|
|
|
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
|
-
`;
|
|
@@ -1,17 +0,0 @@
|
|
|
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
|
-
`
|
|
@@ -1,15 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|