@npm_leadtech/legal-lib-components 5.9.5 → 5.10.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/src/components/atoms/Disclaimer/Disclaimer.js +1 -1
- package/dist/src/components/atoms/Disclaimer/Disclaimer.styled.js +17 -14
- package/dist/src/components/atoms/Disclaimer/Disclaimer.styled.ts +17 -14
- package/dist/src/components/atoms/Disclaimer/Disclaimer.tsx +2 -2
- package/dist/src/components/atoms/WideInfoBar/WideInfoBar.js +1 -1
- package/dist/src/components/atoms/WideInfoBar/WideInfoBar.styled.js +5 -6
- package/dist/src/components/atoms/WideInfoBar/WideInfoBar.styled.ts +5 -6
- package/dist/src/components/atoms/WideInfoBar/WideInfoBar.tsx +1 -1
- package/dist/src/components/sections/WhyLawDistrictSection/WhyLawDistrictSection.js +1 -6
- package/dist/src/components/sections/WhyLawDistrictSection/WhyLawDistrictSection.tsx +2 -8
- package/package.json +1 -1
|
@@ -5,6 +5,6 @@ import { DisclaimerStyled } from './Disclaimer.styled';
|
|
|
5
5
|
const Disclaimer = ({ givenClass, text, disclaimerLinks = false, complexCopyRight, complexCopyRightMobile, simpleCopyRight }) => {
|
|
6
6
|
const showDisclaimerLinks = disclaimerLinks && _jsx(React.Fragment, { children: complexCopyRight });
|
|
7
7
|
const showDisclaimerLinkMobile = disclaimerLinks && (_jsx(React.Fragment, { children: _jsxs("div", { className: 'disclaimer__copy', children: [complexCopyRightMobile, _jsx("p", { children: simpleCopyRight })] }) }));
|
|
8
|
-
return (_jsx(DisclaimerStyled, { className: `
|
|
8
|
+
return (_jsx(DisclaimerStyled, { className: `disclaimer ${givenClass}`, children: _jsxs("div", { className: `wrapper sans-serif --extra-small`, children: [_jsx("div", { className: 'disclaimer__copy', children: text }), disclaimerLinks ? _jsx("p", { className: 'desktop_view', children: showDisclaimerLinks }) : _jsx("p", { children: simpleCopyRight }), disclaimerLinks && _jsx("div", { className: 'disclaimer__copy mobile_view', children: showDisclaimerLinkMobile })] }) }));
|
|
9
9
|
};
|
|
10
10
|
export default Disclaimer;
|
|
@@ -1,26 +1,28 @@
|
|
|
1
1
|
import { device, size } from '../../../globalStyles/breakpoints';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
export const DisclaimerStyled = styled.div `
|
|
4
|
-
padding: 1rem;
|
|
4
|
+
padding: 1rem 2rem;
|
|
5
5
|
@media ${device.laptop} {
|
|
6
6
|
padding: 1rem 0;
|
|
7
7
|
}
|
|
8
|
+
background-color: var(--neutral-main);
|
|
9
|
+
color: var(--neutral-neutral-4);
|
|
8
10
|
|
|
9
|
-
&.
|
|
10
|
-
&__wrapper {
|
|
11
|
-
background-color: var(--neutral-main);
|
|
12
|
-
color: var(--neutral-neutral-4);
|
|
13
|
-
|
|
14
|
-
.standard {
|
|
15
|
-
color: var(--neutral-neutral-4);
|
|
16
|
-
text-decoration: underline;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.grey-color {
|
|
11
|
+
&.white-color {
|
|
22
12
|
color: var(--neutral-neutral-1);
|
|
23
13
|
background-color: var(--neutral-neutral-4);
|
|
14
|
+
a {
|
|
15
|
+
color: var(--neutral-neutral-1);
|
|
16
|
+
text-decoration: underline;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
&.grey-color {
|
|
20
|
+
color: var(--neutral-neutral-4);
|
|
21
|
+
background-color: var(--neutral-main);
|
|
22
|
+
a {
|
|
23
|
+
color: var(--neutral-neutral-4);
|
|
24
|
+
text-decoration: underline;
|
|
25
|
+
}
|
|
24
26
|
}
|
|
25
27
|
|
|
26
28
|
.disclaimer__copy {
|
|
@@ -29,6 +31,7 @@ export const DisclaimerStyled = styled.div `
|
|
|
29
31
|
|
|
30
32
|
.desktop_view {
|
|
31
33
|
display: block;
|
|
34
|
+
margin-top: 1rem;
|
|
32
35
|
|
|
33
36
|
@media (min-width: ${size.xxs}) and (max-width: ${size.sm}) {
|
|
34
37
|
display: none;
|
|
@@ -2,26 +2,28 @@ import { device, size } from '../../../globalStyles/breakpoints'
|
|
|
2
2
|
import styled from 'styled-components'
|
|
3
3
|
|
|
4
4
|
export const DisclaimerStyled = styled.div`
|
|
5
|
-
padding: 1rem;
|
|
5
|
+
padding: 1rem 2rem;
|
|
6
6
|
@media ${device.laptop} {
|
|
7
7
|
padding: 1rem 0;
|
|
8
8
|
}
|
|
9
|
+
background-color: var(--neutral-main);
|
|
10
|
+
color: var(--neutral-neutral-4);
|
|
9
11
|
|
|
10
|
-
&.
|
|
11
|
-
&__wrapper {
|
|
12
|
-
background-color: var(--neutral-main);
|
|
13
|
-
color: var(--neutral-neutral-4);
|
|
14
|
-
|
|
15
|
-
.standard {
|
|
16
|
-
color: var(--neutral-neutral-4);
|
|
17
|
-
text-decoration: underline;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.grey-color {
|
|
12
|
+
&.white-color {
|
|
23
13
|
color: var(--neutral-neutral-1);
|
|
24
14
|
background-color: var(--neutral-neutral-4);
|
|
15
|
+
a {
|
|
16
|
+
color: var(--neutral-neutral-1);
|
|
17
|
+
text-decoration: underline;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
&.grey-color {
|
|
21
|
+
color: var(--neutral-neutral-4);
|
|
22
|
+
background-color: var(--neutral-main);
|
|
23
|
+
a {
|
|
24
|
+
color: var(--neutral-neutral-4);
|
|
25
|
+
text-decoration: underline;
|
|
26
|
+
}
|
|
25
27
|
}
|
|
26
28
|
|
|
27
29
|
.disclaimer__copy {
|
|
@@ -30,6 +32,7 @@ export const DisclaimerStyled = styled.div`
|
|
|
30
32
|
|
|
31
33
|
.desktop_view {
|
|
32
34
|
display: block;
|
|
35
|
+
margin-top: 1rem;
|
|
33
36
|
|
|
34
37
|
@media (min-width: ${size.xxs}) and (max-width: ${size.sm}) {
|
|
35
38
|
display: none;
|
|
@@ -24,8 +24,8 @@ const Disclaimer: FC<DisclaimerProps> = ({
|
|
|
24
24
|
)
|
|
25
25
|
|
|
26
26
|
return (
|
|
27
|
-
<DisclaimerStyled className={`
|
|
28
|
-
<div className={
|
|
27
|
+
<DisclaimerStyled className={`disclaimer ${givenClass}`}>
|
|
28
|
+
<div className={`wrapper sans-serif --extra-small`}>
|
|
29
29
|
<div className='disclaimer__copy'>{text}</div>
|
|
30
30
|
{disclaimerLinks ? <p className='desktop_view'>{showDisclaimerLinks}</p> : <p>{simpleCopyRight}</p>}
|
|
31
31
|
{disclaimerLinks && <div className='disclaimer__copy mobile_view'>{showDisclaimerLinkMobile}</div>}
|
|
@@ -3,6 +3,6 @@ import { WideInfoBarStyled } from './WideInfoBar.styled';
|
|
|
3
3
|
const WideInfoBar = ({ children, color }) => {
|
|
4
4
|
if (children === undefined)
|
|
5
5
|
return null;
|
|
6
|
-
return (_jsx(WideInfoBarStyled, { className: `wide-info-bar ${color ?? ''}`, children: _jsx("div", { className: 'wide-info-bar__wrapper', children: children }) }));
|
|
6
|
+
return (_jsx(WideInfoBarStyled, { className: `wide-info-bar ${color ?? ''}`, children: _jsx("div", { className: 'wide-info-bar__wrapper wrapper', children: children }) }));
|
|
7
7
|
};
|
|
8
8
|
export default WideInfoBar;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { device } from '../../../globalStyles/breakpoints';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
export const WideInfoBarStyled = styled.div `
|
|
4
|
-
background-color: var(--neutral-neutral-6);
|
|
5
4
|
font-family: var(--font-sans);
|
|
5
|
+
background-color: var(--neutral-neutral-5);
|
|
6
6
|
color: var(--neutral-neutral-1);
|
|
7
|
+
border-top: 1px solid var(--neutral-neutral-4);
|
|
7
8
|
|
|
8
9
|
&.green {
|
|
9
10
|
background-color: var(--primary-main-light-6);
|
|
@@ -15,18 +16,16 @@ export const WideInfoBarStyled = styled.div `
|
|
|
15
16
|
display: flex;
|
|
16
17
|
flex-flow: column nowrap;
|
|
17
18
|
justify-content: space-between;
|
|
18
|
-
|
|
19
|
-
margin: auto;
|
|
20
|
-
padding: 0.5rem 3.5rem 0.5rem 1.5rem;
|
|
19
|
+
padding: 1rem 2rem;
|
|
21
20
|
|
|
22
21
|
@media ${device['landscape-tablets']} {
|
|
23
22
|
flex-flow: row;
|
|
24
23
|
font-size: 0.9rem;
|
|
25
|
-
padding:
|
|
24
|
+
padding: 0;
|
|
26
25
|
}
|
|
27
26
|
|
|
28
27
|
@media ${device.desktop} {
|
|
29
|
-
padding: 0
|
|
28
|
+
padding: 0;
|
|
30
29
|
}
|
|
31
30
|
}
|
|
32
31
|
}
|
|
@@ -2,9 +2,10 @@ import { device } from '../../../globalStyles/breakpoints'
|
|
|
2
2
|
import styled from 'styled-components'
|
|
3
3
|
|
|
4
4
|
export const WideInfoBarStyled = styled.div`
|
|
5
|
-
background-color: var(--neutral-neutral-6);
|
|
6
5
|
font-family: var(--font-sans);
|
|
6
|
+
background-color: var(--neutral-neutral-5);
|
|
7
7
|
color: var(--neutral-neutral-1);
|
|
8
|
+
border-top: 1px solid var(--neutral-neutral-4);
|
|
8
9
|
|
|
9
10
|
&.green {
|
|
10
11
|
background-color: var(--primary-main-light-6);
|
|
@@ -16,18 +17,16 @@ export const WideInfoBarStyled = styled.div`
|
|
|
16
17
|
display: flex;
|
|
17
18
|
flex-flow: column nowrap;
|
|
18
19
|
justify-content: space-between;
|
|
19
|
-
|
|
20
|
-
margin: auto;
|
|
21
|
-
padding: 0.5rem 3.5rem 0.5rem 1.5rem;
|
|
20
|
+
padding: 1rem 2rem;
|
|
22
21
|
|
|
23
22
|
@media ${device['landscape-tablets']} {
|
|
24
23
|
flex-flow: row;
|
|
25
24
|
font-size: 0.9rem;
|
|
26
|
-
padding:
|
|
25
|
+
padding: 0;
|
|
27
26
|
}
|
|
28
27
|
|
|
29
28
|
@media ${device.desktop} {
|
|
30
|
-
padding: 0
|
|
29
|
+
padding: 0;
|
|
31
30
|
}
|
|
32
31
|
}
|
|
33
32
|
}
|
|
@@ -10,7 +10,7 @@ const WideInfoBar: FC<WideInfoBarProps> = ({ children, color }) => {
|
|
|
10
10
|
if (children === undefined) return null
|
|
11
11
|
return (
|
|
12
12
|
<WideInfoBarStyled className={`wide-info-bar ${color ?? ''}`}>
|
|
13
|
-
<div className='wide-info-bar__wrapper'>{children}</div>
|
|
13
|
+
<div className='wide-info-bar__wrapper wrapper'>{children}</div>
|
|
14
14
|
</WideInfoBarStyled>
|
|
15
15
|
)
|
|
16
16
|
}
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useEffect, useState } from 'react';
|
|
3
2
|
import { Button } from '../../atoms/Button';
|
|
4
3
|
import { WhyLawDistrictItems } from '../../atoms/WhyLawDistrictItems';
|
|
5
4
|
import { WhyLawDistrictSectionStyled } from './WhyLawDistrictSection.styled';
|
|
6
5
|
export const WhyLawDistrictSection = ({ title, items, userActive, link }) => {
|
|
7
6
|
if (items.length === 0)
|
|
8
7
|
return null;
|
|
9
|
-
|
|
10
|
-
useEffect(() => {
|
|
11
|
-
setIsUserActive(userActive);
|
|
12
|
-
}, [userActive]);
|
|
13
|
-
return (_jsxs(WhyLawDistrictSectionStyled, { className: 'whyLawDistrictSection', children: [_jsx("h2", { className: 'why-lawDistrict__title serif --hero', children: title }), _jsx(WhyLawDistrictItems, { items: items }), !isUserActive && (_jsx(Button, { givenClass: 'whyLawDistrictSection__button', label: link.cta, link: link.url, onClick: link.onClick, dataQa: link.dataQa, isExternal: true, hasNoFollow: true }))] }));
|
|
8
|
+
return (_jsxs(WhyLawDistrictSectionStyled, { className: 'whyLawDistrictSection', children: [_jsx("h2", { className: 'why-lawDistrict__title serif --hero', children: title }), _jsx(WhyLawDistrictItems, { items: items }), !userActive && (_jsx(Button, { givenClass: 'whyLawDistrictSection__button', label: link.cta, link: link.url, onClick: link.onClick, dataQa: link.dataQa, isExternal: true, hasNoFollow: true }))] }));
|
|
14
9
|
};
|
|
15
10
|
export default WhyLawDistrictSection;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react'
|
|
2
2
|
|
|
3
3
|
import { Button } from '../../atoms/Button'
|
|
4
4
|
import { WhyLawDistrictItems } from '../../atoms/WhyLawDistrictItems'
|
|
@@ -8,18 +8,12 @@ import { WhyLawDistrictSectionStyled } from './WhyLawDistrictSection.styled'
|
|
|
8
8
|
export const WhyLawDistrictSection: React.FC<WhyLawDistrictSectionProps> = ({ title, items, userActive, link }) => {
|
|
9
9
|
if (items.length === 0) return null
|
|
10
10
|
|
|
11
|
-
const [isUserActive, setIsUserActive] = useState(false)
|
|
12
|
-
|
|
13
|
-
useEffect(() => {
|
|
14
|
-
setIsUserActive(userActive)
|
|
15
|
-
}, [userActive])
|
|
16
|
-
|
|
17
11
|
return (
|
|
18
12
|
<WhyLawDistrictSectionStyled className={'whyLawDistrictSection'}>
|
|
19
13
|
<h2 className={'why-lawDistrict__title serif --hero'}>{title}</h2>
|
|
20
14
|
<WhyLawDistrictItems items={items} />
|
|
21
15
|
|
|
22
|
-
{!
|
|
16
|
+
{!userActive && (
|
|
23
17
|
<Button
|
|
24
18
|
givenClass='whyLawDistrictSection__button'
|
|
25
19
|
label={link.cta}
|