@npm_leadtech/legal-lib-components 7.20.0 → 7.20.1
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/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.js +1 -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.js +1 -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.js +1 -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/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/index.d.ts +2 -0
- package/dist/src/components/molecules/index.js +2 -0
- package/dist/src/components/molecules/index.ts +2 -0
- 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 +8 -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 +53 -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 +3 -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 +12 -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/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 +35 -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/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/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ContactInformationStyled } from './ContactInformationHeader.styled';
|
|
3
|
+
export const ContactInformation = ({ phoneNumber, scheduleText }) => {
|
|
4
|
+
return (_jsxs(ContactInformationStyled, { children: [_jsx("a", { href: `tel:${phoneNumber}`, title: 'Call us', children: _jsx("strong", { children: phoneNumber }) }), _jsx("p", { children: scheduleText })] }));
|
|
5
|
+
};
|
package/dist/src/components/atoms/ContactInformationHeader/ContactInformationHeader.styled.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ContactInformationStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
export const ContactInformationStyled = styled.div `
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
align-items: center;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
padding: 1.5rem 0;
|
|
8
|
+
border-top: 1px solid var(--neutral-neutral-4);
|
|
9
|
+
a {
|
|
10
|
+
background-color: var(--button);
|
|
11
|
+
border: 2px solid var(--button);
|
|
12
|
+
color: var(--others-white);
|
|
13
|
+
font-weight: bold;
|
|
14
|
+
height: 100%;
|
|
15
|
+
border-radius: var(--s-border-radius);
|
|
16
|
+
padding: 0.5rem 1rem;
|
|
17
|
+
display: block;
|
|
18
|
+
text-align: center;
|
|
19
|
+
width: 80%;
|
|
20
|
+
}
|
|
21
|
+
`;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import styled from 'styled-components'
|
|
2
|
+
|
|
3
|
+
export const ContactInformationStyled = styled.div`
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
padding: 1.5rem 0;
|
|
9
|
+
border-top: 1px solid var(--neutral-neutral-4);
|
|
10
|
+
a {
|
|
11
|
+
background-color: var(--button);
|
|
12
|
+
border: 2px solid var(--button);
|
|
13
|
+
color: var(--others-white);
|
|
14
|
+
font-weight: bold;
|
|
15
|
+
height: 100%;
|
|
16
|
+
border-radius: var(--s-border-radius);
|
|
17
|
+
padding: 0.5rem 1rem;
|
|
18
|
+
display: block;
|
|
19
|
+
text-align: center;
|
|
20
|
+
width: 80%;
|
|
21
|
+
}
|
|
22
|
+
`
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ContactInformationProps } from './ContactInformationHeaderProps'
|
|
2
|
+
import { ContactInformationStyled } from './ContactInformationHeader.styled'
|
|
3
|
+
import React from 'react'
|
|
4
|
+
|
|
5
|
+
export const ContactInformation: React.FC<ContactInformationProps> = ({ phoneNumber, scheduleText }) => {
|
|
6
|
+
return (
|
|
7
|
+
<ContactInformationStyled>
|
|
8
|
+
<a href={`tel:${phoneNumber}`} title='Call us'>
|
|
9
|
+
<strong>{phoneNumber}</strong>
|
|
10
|
+
</a>
|
|
11
|
+
<p>{scheduleText}</p>
|
|
12
|
+
</ContactInformationStyled>
|
|
13
|
+
)
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { MobileTriggerStyled } from './MobileTrigger.styled';
|
|
3
|
+
export const MobileTrigger = ({ onClick, isActive, imageUrl, altText }) => {
|
|
4
|
+
return (_jsx(MobileTriggerStyled, { onClick: onClick, isActive: isActive, children: _jsx("img", { src: imageUrl, alt: altText }) }));
|
|
5
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
`;
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
`
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
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;
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
height: 2.5rem;
|
|
13
|
+
@media (min-width: 721px) and (max-width: 849px) {
|
|
14
|
+
padding-right: 0;
|
|
15
|
+
border-right: none;
|
|
16
|
+
}
|
|
17
|
+
`;
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
height: 2.5rem;
|
|
14
|
+
@media (min-width: 721px) and (max-width: 849px) {
|
|
15
|
+
padding-right: 0;
|
|
16
|
+
border-right: none;
|
|
17
|
+
}
|
|
18
|
+
`
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
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;
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
`;
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
`
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
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;
|
|
@@ -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
|
+
`
|