@npm_leadtech/legal-lib-components 7.68.1 → 7.69.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/BenefitCard/BenefitCard.js +1 -2
- package/dist/src/components/atoms/BenefitCard/BenefitCard.tsx +1 -7
- package/dist/src/components/atoms/BenefitCard/BenefitCardProps.types.d.ts +1 -1
- package/dist/src/components/atoms/BenefitCard/BenefitCardProps.types.ts +1 -1
- package/dist/src/components/atoms/BenefitCard/BenefitCardStyled.styled.js +5 -0
- package/dist/src/components/atoms/BenefitCard/BenefitCardStyled.styled.ts +5 -0
- package/dist/src/components/atoms/FixedFooter/FixedFooter.js +1 -1
- package/dist/src/components/atoms/FixedFooter/FixedFooter.tsx +1 -1
- package/dist/src/components/atoms/StepRatafiaCard/StepRatafiaCard.js +1 -2
- package/dist/src/components/atoms/StepRatafiaCard/StepRatafiaCard.styled.js +5 -0
- package/dist/src/components/atoms/StepRatafiaCard/StepRatafiaCard.styled.ts +5 -0
- package/dist/src/components/atoms/StepRatafiaCard/StepRatafiaCard.tsx +1 -2
- package/dist/src/components/atoms/StepRatafiaCard/StepRatafiaCardProps.types.d.ts +1 -1
- package/dist/src/components/atoms/StepRatafiaCard/StepRatafiaCardProps.types.ts +1 -1
- package/dist/src/components/atoms/WhyLawDistrictItems/WhyLawDistrictItems.js +1 -1
- package/dist/src/components/atoms/WhyLawDistrictItems/WhyLawDistrictItems.styled.js +1 -1
- package/dist/src/components/atoms/WhyLawDistrictItems/WhyLawDistrictItems.styled.ts +1 -1
- package/dist/src/components/atoms/WhyLawDistrictItems/WhyLawDistrictItems.tsx +2 -2
- package/dist/src/components/organisms/BottomFooter/BottomFooter.js +1 -1
- package/dist/src/components/organisms/BottomFooter/BottomFooter.tsx +1 -8
- package/dist/src/components/organisms/MenuItems/MenuItems.js +4 -1
- package/dist/src/components/organisms/MenuItems/MenuItems.tsx +11 -8
- package/dist/src/components/sections/WhyLawDistrictSection/WhyLawDistrictSection.js +1 -1
- package/dist/src/components/sections/WhyLawDistrictSection/WhyLawDistrictSection.styled.js +1 -1
- package/dist/src/components/sections/WhyLawDistrictSection/WhyLawDistrictSection.styled.ts +1 -1
- package/dist/src/components/sections/WhyLawDistrictSection/WhyLawDistrictSection.tsx +3 -3
- package/package.json +1 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { BenefitCardStyled } from './BenefitCardStyled.styled';
|
|
3
|
-
import { IconSvgURLWithThemeColor } from '../IconSvgURLWithThemeColor';
|
|
4
3
|
export const BenefitCard = ({ description, hasShadow = true, hasBigFontSize = true, title, image }) => {
|
|
5
|
-
return (_jsxs(BenefitCardStyled, { className: `benefit-card ${hasShadow && 'has-shadow'}`, children: [image &&
|
|
4
|
+
return (_jsxs(BenefitCardStyled, { className: `benefit-card ${hasShadow && 'has-shadow'}`, children: [image !== null && _jsx("div", { className: `benefit-card__icon ${hasShadow && 'has-shadow'}`, children: image }), _jsxs("div", { className: 'benefit-card__content', children: [_jsx("div", { className: `sans-serif ${hasBigFontSize && '--big'} --bold-weight benefit-card__content__title`, children: title }), _jsx("p", { className: 'sans-serif --medium benefit-ratafia-card__content__description', children: description })] })] }));
|
|
6
5
|
};
|
|
@@ -2,7 +2,6 @@ import React from 'react'
|
|
|
2
2
|
|
|
3
3
|
import { type BenefitCardProps } from './BenefitCardProps.types'
|
|
4
4
|
import { BenefitCardStyled } from './BenefitCardStyled.styled'
|
|
5
|
-
import { IconSvgURLWithThemeColor } from '../IconSvgURLWithThemeColor'
|
|
6
5
|
|
|
7
6
|
export const BenefitCard: React.FC<BenefitCardProps> = ({
|
|
8
7
|
description,
|
|
@@ -13,12 +12,7 @@ export const BenefitCard: React.FC<BenefitCardProps> = ({
|
|
|
13
12
|
}) => {
|
|
14
13
|
return (
|
|
15
14
|
<BenefitCardStyled className={`benefit-card ${hasShadow && 'has-shadow'}`}>
|
|
16
|
-
{image &&
|
|
17
|
-
<div className={`benefit-card__icon ${hasShadow && 'has-shadow'}`}>
|
|
18
|
-
<IconSvgURLWithThemeColor url={image} height='32' width='32' />
|
|
19
|
-
</div>
|
|
20
|
-
)}
|
|
21
|
-
|
|
15
|
+
{image !== null && <div className={`benefit-card__icon ${hasShadow && 'has-shadow'}`}>{image}</div>}
|
|
22
16
|
<div className='benefit-card__content'>
|
|
23
17
|
<div className={`sans-serif ${hasBigFontSize && '--big'} --bold-weight benefit-card__content__title`}>
|
|
24
18
|
{title}
|
|
@@ -74,5 +74,5 @@ export const FixedFooter = ({ footerData = {
|
|
|
74
74
|
show: false,
|
|
75
75
|
content: _jsx(_Fragment, {})
|
|
76
76
|
} }) => {
|
|
77
|
-
return (_jsxs(FixedFooterStyled, { children: [preFooter.show && (_jsx("section", { className: 'prefooter', children: _jsx("div", { className: 'wrapper', children: _jsxs("div", { className: 'prefooter-container', children: [_jsx("div", { className: 'serif --hero prefooter__title', children: preFooter.title }), _jsx("div", { className: 'prefooter--columns', children: preFooter.columns.map((column, index) => (_jsx("p", { className: 'prefooter--columns__text', children: column }, index))) }), preFooter.hasButton && (_jsx(Button, { label: preFooter.buttonLabel, onClick: preFooter.buttonClick, link: preFooter.buttonLink, dataQa: 'cta-footer', isExternal: true, hasNoFollow: true }))] }) }) })), config.isSEMPage && config.isMobile && (_jsx("footer", { className: 'sem-footer', children: _jsxs("section", { className: 'sem-footer__wrapper', children: [_jsx("ul", { className: 'sem-footer__legal-links', children: companyBlock.links }), _jsxs("div", { className: 'sem-footer__contact-info', children: [_jsxs("div", { className: 'sem-footer__contact-info__phone', children: [_jsx(PhoneIcon, { width: 20, height: 20, fill: 'white' }), _jsxs("b", { children: [config.sitePhone, " "] })] }), _jsx("div", { className: 'sem-footer__contact-info__schedule', children: config.siteSchedule })] }), _jsx("div", { className: 'fixed-container', children: footer.createDocumentBlock })] }) })), !config.isSEMPage && (_jsxs("footer", { children: [!config.hide && !config.noFooter ? (_jsxs(_Fragment, { children: [_jsx("div", { className: 'language-selector-mobile-container', children: languageSelector.show === true && languageSelector.content }), _jsxs("section", { className: 'footer__wrapper', children: [_jsxs("div", { className: 'footer__products', children: [_jsx("p", { className: 'sans-serif --small footer-links__title', children: productsBlock.title }), productsBlock.productsCategories, _jsx("div", { className: 'sans-serif --extra-small product-categories', children: productsBlock.allProductsLink })] }), _jsxs("div", { className: 'footer__popular-documents', children: [_jsx("p", { className: 'sans-serif --small footer-links__title', children: popularDocumentsBlock.title }), _jsx("ul", { children: popularDocumentsBlock.popularDocuments }), config.isTablet && (_jsxs("div", { className: 'footer__help__tablet', children: [_jsx("p", { className: 'sans-serif --small footer-links__title', children: helpBlock.title }), _jsx("ul", { children: helpBlock.links })] }))] }), (config.isMobile || config.isDesktop) && (_jsxs("div", { className: 'footer__company', children: [_jsx("p", { className: 'sans-serif --small footer-links__title', children: companyBlock.title }), _jsx("ul", { children: companyBlock.links })] })), _jsx("div", { className: 'footer__company__resources__findUs', children: config.isTablet && (_jsxs(_Fragment, { children: [_jsx("p", { className: 'sans-serif --small footer-links__title', children: companyBlock.title }), _jsx("ul", { children: companyBlock.links }), !config.isJonSnow && config.hasGrav && config.isTablet && (_jsxs("div", { className: 'footer__resources', children: [_jsx("p", { className: 'sans-serif --small footer-links__title', children: resourcesBlock.title }), _jsx("ul", { children: resourcesBlock.links })] }))] })) }), !config.isTablet && (_jsx("div", { className: 'footer__help__resources', children: _jsxs("div", { children: [_jsxs("div", { className: 'footer__help', children: [_jsx("p", { className: 'sans-serif --small footer-links__title', children: helpBlock.title }), _jsx("ul", { children: helpBlock.links })] }), !config.isJonSnow && config.hasGrav && (_jsxs("div", { className: 'footer__resources', children: [_jsx("p", { className: 'sans-serif --small footer-links__title', children: resourcesBlock.title }), _jsx("ul", { children: resourcesBlock.links })] }))] }) })), _jsxs("div", { className: 'footer__findUs', children: [_jsxs("div", { className: 'find-us-container', children: [!config.isJonSnow && (_jsxs(_Fragment, { children: [_jsxs("div", { className: 'find-us-content', children: [_jsx("p", { className: 'sans-serif --small footer-links__title', children: footerData?.findUs }), _jsxs("ul", { children: [_jsx("li", { children: _jsx("a", { href: 'https://www.facebook.com/lawdistrictlegal', rel: 'noopener noreferrer', target: '_blank', children: _jsx("img", { src: facebook, alt: 'Facebook logo', width: '32', height: '32' }) }) }), _jsx("li", { children: _jsx("a", { href: 'https://twitter.com/district_law', rel: 'noopener noreferrer', target: '_blank', children: _jsx("img", { src: x, alt: 'Twitter logo', width: '32', height: '32' }) }) }), _jsx("li", { children: _jsx("a", { href: 'https://www.linkedin.com/company/law-district/', rel: 'noopener noreferrer', target: '_blank', children: _jsx("img", { src: linkedin, alt: 'Linkedin logo', width: '32', height: '32' }) }) }), _jsx("li", { children: _jsx("a", { href: 'https://www.pinterest.com/lawdistrict/', rel: 'noopener noreferrer', target: '_blank', children: _jsx("img", { src: pinterest, alt: 'Pinterest logo', width: '32', height: '32' }) }) })] })] }), _jsxs("div", { className: 'footer-contact-box', children: [_jsx("span", { className: 'footer-contact-box_phone', children: config.sitePhone }), _jsx(Button, { centered: true, isExternal: true, link: `tel:${config.sitePhone}`, givenClass: 'footer-contact-box-button', label: config.sitePhone, dataQa: 'footer_contact_box' }), _jsx("span", { className: 'footer-contact-box_schedule', children: config.siteSchedule.replace(/(\d)/, '\n$1') })] })] })), _jsx("div", { className: 'footer__logo', children: _jsx(Logo, { className: '
|
|
77
|
+
return (_jsxs(FixedFooterStyled, { children: [preFooter.show && (_jsx("section", { className: 'prefooter', children: _jsx("div", { className: 'wrapper', children: _jsxs("div", { className: 'prefooter-container', children: [_jsx("div", { className: 'serif --hero prefooter__title', children: preFooter.title }), _jsx("div", { className: 'prefooter--columns', children: preFooter.columns.map((column, index) => (_jsx("p", { className: 'prefooter--columns__text', children: column }, index))) }), preFooter.hasButton && (_jsx(Button, { label: preFooter.buttonLabel, onClick: preFooter.buttonClick, link: preFooter.buttonLink, dataQa: 'cta-footer', isExternal: true, hasNoFollow: true }))] }) }) })), config.isSEMPage && config.isMobile && (_jsx("footer", { className: 'sem-footer', children: _jsxs("section", { className: 'sem-footer__wrapper', children: [_jsx("ul", { className: 'sem-footer__legal-links', children: companyBlock.links }), _jsxs("div", { className: 'sem-footer__contact-info', children: [_jsxs("div", { className: 'sem-footer__contact-info__phone', children: [_jsx(PhoneIcon, { width: 20, height: 20, fill: 'white' }), _jsxs("b", { children: [config.sitePhone, " "] })] }), _jsx("div", { className: 'sem-footer__contact-info__schedule', children: config.siteSchedule })] }), _jsx("div", { className: 'fixed-container', children: footer.createDocumentBlock })] }) })), !config.isSEMPage && (_jsxs("footer", { children: [!config.hide && !config.noFooter ? (_jsxs(_Fragment, { children: [_jsx("div", { className: 'language-selector-mobile-container', children: languageSelector.show === true && languageSelector.content }), _jsxs("section", { className: 'footer__wrapper', children: [_jsxs("div", { className: 'footer__products', children: [_jsx("p", { className: 'sans-serif --small footer-links__title', children: productsBlock.title }), productsBlock.productsCategories, _jsx("div", { className: 'sans-serif --extra-small product-categories', children: productsBlock.allProductsLink })] }), _jsxs("div", { className: 'footer__popular-documents', children: [_jsx("p", { className: 'sans-serif --small footer-links__title', children: popularDocumentsBlock.title }), _jsx("ul", { children: popularDocumentsBlock.popularDocuments }), config.isTablet && (_jsxs("div", { className: 'footer__help__tablet', children: [_jsx("p", { className: 'sans-serif --small footer-links__title', children: helpBlock.title }), _jsx("ul", { children: helpBlock.links })] }))] }), (config.isMobile || config.isDesktop) && (_jsxs("div", { className: 'footer__company', children: [_jsx("p", { className: 'sans-serif --small footer-links__title', children: companyBlock.title }), _jsx("ul", { children: companyBlock.links })] })), _jsx("div", { className: 'footer__company__resources__findUs', children: config.isTablet && (_jsxs(_Fragment, { children: [_jsx("p", { className: 'sans-serif --small footer-links__title', children: companyBlock.title }), _jsx("ul", { children: companyBlock.links }), !config.isJonSnow && config.hasGrav && config.isTablet && (_jsxs("div", { className: 'footer__resources', children: [_jsx("p", { className: 'sans-serif --small footer-links__title', children: resourcesBlock.title }), _jsx("ul", { children: resourcesBlock.links })] }))] })) }), !config.isTablet && (_jsx("div", { className: 'footer__help__resources', children: _jsxs("div", { children: [_jsxs("div", { className: 'footer__help', children: [_jsx("p", { className: 'sans-serif --small footer-links__title', children: helpBlock.title }), _jsx("ul", { children: helpBlock.links })] }), !config.isJonSnow && config.hasGrav && (_jsxs("div", { className: 'footer__resources', children: [_jsx("p", { className: 'sans-serif --small footer-links__title', children: resourcesBlock.title }), _jsx("ul", { children: resourcesBlock.links })] }))] }) })), _jsxs("div", { className: 'footer__findUs', children: [_jsxs("div", { className: 'find-us-container', children: [!config.isJonSnow && (_jsxs(_Fragment, { children: [_jsxs("div", { className: 'find-us-content', children: [_jsx("p", { className: 'sans-serif --small footer-links__title', children: footerData?.findUs }), _jsxs("ul", { children: [_jsx("li", { children: _jsx("a", { href: 'https://www.facebook.com/lawdistrictlegal', rel: 'noopener noreferrer', target: '_blank', children: _jsx("img", { src: facebook, alt: 'Facebook logo', width: '32', height: '32' }) }) }), _jsx("li", { children: _jsx("a", { href: 'https://twitter.com/district_law', rel: 'noopener noreferrer', target: '_blank', children: _jsx("img", { src: x, alt: 'Twitter logo', width: '32', height: '32' }) }) }), _jsx("li", { children: _jsx("a", { href: 'https://www.linkedin.com/company/law-district/', rel: 'noopener noreferrer', target: '_blank', children: _jsx("img", { src: linkedin, alt: 'Linkedin logo', width: '32', height: '32' }) }) }), _jsx("li", { children: _jsx("a", { href: 'https://www.pinterest.com/lawdistrict/', rel: 'noopener noreferrer', target: '_blank', children: _jsx("img", { src: pinterest, alt: 'Pinterest logo', width: '32', height: '32' }) }) })] })] }), _jsxs("div", { className: 'footer-contact-box', children: [_jsx("span", { className: 'footer-contact-box_phone', children: config.sitePhone }), _jsx(Button, { centered: true, isExternal: true, link: `tel:${config.sitePhone}`, givenClass: 'footer-contact-box-button', label: config.sitePhone, dataQa: 'footer_contact_box' }), _jsx("span", { className: 'footer-contact-box_schedule', children: config.siteSchedule.replace(/(\d)/, '\n$1') })] })] })), _jsx("div", { className: 'footer__logo', children: _jsx(Logo, { className: 'footer__logo-image', siteName: config.siteName, width: '138', height: '24', type: 'white' }) })] }), config.hasTrustPilot && footer.trustPilotWidget] }), !config.isJonSnow && (_jsxs("div", { className: 'footer-mobile-contact-box', children: [_jsx("span", { className: 'footer-mobile-contact-box_phone', children: config.sitePhone }), _jsx(Button, { centered: true, isExternal: true, link: `tel:${config.sitePhone}`, givenClass: 'footer-mobile-contact-box-button', label: config.sitePhone, dataQa: 'footer_contact_box' }), config.siteSchedule && (_jsx("p", { className: 'footer-mobile-contact-box_schedule', children: config.siteSchedule }))] }))] })] })) : null, config.hasContactBar && (_jsx(WideInfoBar, { children: _jsxs(_Fragment, { children: [_jsxs("div", { className: `contact-bar-wrapper ${(config.isJonSnow || config.isAnonymousPayment) && 'hidden'}`, children: [_jsx(IconWeb, {}), _jsxs("div", { className: 'contact-bar-wrapper__text', children: [_jsxs("div", { className: 'is-mobile', children: [_jsx("a", { className: 'phone', href: `tel:${config.sitePhone}`, children: _jsx("strong", { children: config.sitePhone }) }), ` - ${config.siteSchedule}`] }), _jsxs("div", { className: 'no-mobile', children: [_jsx("strong", { children: config.sitePhone }), " - ", config.siteSchedule] })] })] }), _jsxs("div", { className: 'contact-bar-wrapper', children: [_jsx("img", { src: securityIconBlack, alt: '' }), _jsx("p", { className: 'contact-bar-wrapper__text', children: footer.securityText })] }), _jsxs("div", { className: 'contact-bar-wrapper', children: [_jsx("img", { src: guaranteeIconGrey, alt: '' }), _jsx("p", { className: 'contact-bar-wrapper__text', children: footer.guaranteeText })] })] }) })), footer.disclaimerText && _jsx(Disclaimer, { text: footer.disclaimerText, siteUrl: config.siteUrl }), _jsx("div", { className: 'fixed-container', children: footer.createDocumentBlock })] })), footer.bottomFixedBlock] }));
|
|
78
78
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { IconSvgURLWithThemeColor } from '../IconSvgURLWithThemeColor';
|
|
3
2
|
import { StepRatafiaCardStyled } from './StepRatafiaCard.styled';
|
|
4
3
|
export const StepRatafiaCard = ({ title, icon, description }) => {
|
|
5
|
-
return (_jsxs(StepRatafiaCardStyled, { className: 'step-ratafia-card', children: [_jsxs("div", { className: 'step-ratafia-card__title', children: [icon && _jsx(
|
|
4
|
+
return (_jsxs(StepRatafiaCardStyled, { className: 'step-ratafia-card', children: [_jsxs("div", { className: 'step-ratafia-card__title', children: [icon !== null && _jsx("div", { className: 'step-ratafia-card__title__icon', children: icon }), _jsx("h3", { className: 'sans-serif --medium --bold-weight step-ratafia-card__title__text', children: title })] }), _jsx("p", { className: 'sans-serif --small step-ratafia-card__description', children: description })] }));
|
|
6
5
|
};
|
|
7
6
|
export default StepRatafiaCard;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
|
|
3
|
-
import { IconSvgURLWithThemeColor } from '../IconSvgURLWithThemeColor'
|
|
4
3
|
import { type StepRatafiaCardProps } from './StepRatafiaCardProps.types'
|
|
5
4
|
import { StepRatafiaCardStyled } from './StepRatafiaCard.styled'
|
|
6
5
|
|
|
@@ -8,7 +7,7 @@ export const StepRatafiaCard: React.FC<StepRatafiaCardProps> = ({ title, icon, d
|
|
|
8
7
|
return (
|
|
9
8
|
<StepRatafiaCardStyled className='step-ratafia-card'>
|
|
10
9
|
<div className='step-ratafia-card__title'>
|
|
11
|
-
{icon && <
|
|
10
|
+
{icon !== null && <div className='step-ratafia-card__title__icon'>{icon}</div>}
|
|
12
11
|
<h3 className='sans-serif --medium --bold-weight step-ratafia-card__title__text'>{title}</h3>
|
|
13
12
|
</div>
|
|
14
13
|
<p className='sans-serif --small step-ratafia-card__description'>{description}</p>
|
|
@@ -3,6 +3,6 @@ import { WhyLawDistrictItemsStyled } from './WhyLawDistrictItems.styled';
|
|
|
3
3
|
export const WhyLawDistrictItems = ({ items }) => {
|
|
4
4
|
if (items.length === 0)
|
|
5
5
|
return null;
|
|
6
|
-
return (_jsx(WhyLawDistrictItemsStyled, { className: '
|
|
6
|
+
return (_jsx(WhyLawDistrictItemsStyled, { className: 'whyItems', children: items.map((item) => (_jsx("li", { className: 'whyItems__item', children: item.reasons }, item.id))) }));
|
|
7
7
|
};
|
|
8
8
|
export default WhyLawDistrictItems;
|
|
@@ -7,9 +7,9 @@ export const WhyLawDistrictItems: React.FC<WhyLawDistrictItemsProps> = ({ items
|
|
|
7
7
|
if (items.length === 0) return null
|
|
8
8
|
|
|
9
9
|
return (
|
|
10
|
-
<WhyLawDistrictItemsStyled className={'
|
|
10
|
+
<WhyLawDistrictItemsStyled className={'whyItems'}>
|
|
11
11
|
{items.map((item) => (
|
|
12
|
-
<li className={'
|
|
12
|
+
<li className={'whyItems__item'} key={item.id}>
|
|
13
13
|
{item.reasons}
|
|
14
14
|
</li>
|
|
15
15
|
))}
|
|
@@ -3,5 +3,5 @@ import { BottomFooterStyled, BottomFooterText, BottomFooterWrapper, CompanyLink,
|
|
|
3
3
|
import { Logo } from '../../atoms/Logo/Logo';
|
|
4
4
|
import { SocialLinks } from '../../molecules/SocialLinks';
|
|
5
5
|
export const BottomFooter = ({ siteName, companyLinks, socialLinks, disclaimerText, copyrightText }) => {
|
|
6
|
-
return (_jsx(BottomFooterWrapper, { children: _jsxs(BottomFooterStyled, { children: [_jsxs(LogoSocialsWrapper, { className: 'footer__logo', children: [_jsx(Logo, { className: '
|
|
6
|
+
return (_jsx(BottomFooterWrapper, { children: _jsxs(BottomFooterStyled, { children: [_jsxs(LogoSocialsWrapper, { className: 'footer__logo', children: [_jsx(Logo, { className: 'footer__logo-image', siteName: siteName, width: '138', height: '24', type: 'white', isLoadingLazy: true }), socialLinks && _jsx(SocialLinks, { links: socialLinks })] }), _jsx("div", { children: _jsx(CompanyList, { children: companyLinks?.map((link) => (_jsx("li", { children: _jsx(CompanyLink, { href: link.url, className: 'sans-serif --extra-small', "data-qa": link.dataQa, rel: link.rel, children: link.name }) }, link.url))) }) }), _jsx(BottomFooterText, { className: 'sans-serif --extra-small', children: disclaimerText }), _jsx(BottomFooterText, { className: 'sans-serif --extra-small', children: copyrightText })] }) }));
|
|
7
7
|
};
|
|
@@ -22,14 +22,7 @@ export const BottomFooter: React.FC<BottomFooterProps> = ({
|
|
|
22
22
|
<BottomFooterWrapper>
|
|
23
23
|
<BottomFooterStyled>
|
|
24
24
|
<LogoSocialsWrapper className={'footer__logo'}>
|
|
25
|
-
<Logo
|
|
26
|
-
className='footer__lawdistrict'
|
|
27
|
-
siteName={siteName}
|
|
28
|
-
width='138'
|
|
29
|
-
height='24'
|
|
30
|
-
type='white'
|
|
31
|
-
isLoadingLazy
|
|
32
|
-
/>
|
|
25
|
+
<Logo className='footer__logo-image' siteName={siteName} width='138' height='24' type='white' isLoadingLazy />
|
|
33
26
|
{socialLinks && <SocialLinks links={socialLinks} />}
|
|
34
27
|
</LogoSocialsWrapper>
|
|
35
28
|
<div>
|
|
@@ -6,5 +6,8 @@ import { RatafiaLandingIcon } from '../../atoms/RatafiaLandingIcon';
|
|
|
6
6
|
import arrowDown from '../../../../images/svg/arrow-down.svg';
|
|
7
7
|
export const MenuItems = ({ hasProducts, seeAllDocumentsText, setCookiePolicyFunc, routes, finalMenu, configVars, documentsMenuItems, navMenuItems, extraMenu }) => {
|
|
8
8
|
return (_jsxs(MenuItemsStyled, { children: [hasProducts && (_jsxs("div", { className: 'navigation-pane__products', children: [_jsxs("div", { className: 'navigation-pane__products__container', children: [_jsx("p", { className: 'navigation-pane__products__title', children: documentsMenuItems?.title }), _jsx("img", { src: arrowDown, alt: 'arrow-down' })] }), _jsxs("div", { className: 'products__list', children: [_jsx("div", { className: 'menu-mobile-wrapper', children: _jsx(DocumentListMenu, { routes: routes, seeAllLegalDocs: seeAllDocumentsText?.seeAllLegalDocs ?? '', seeAllTypeDocs: seeAllDocumentsText?.seeAllTypeDocs ?? '', finalMenu: finalMenu, hasSubCategoryPage: configVars.HAS_SUBCATEGORY_PAGE, setCookiePolicyFunc: setCookiePolicyFunc }) }), _jsx("div", { className: 'menu-desktop-wrapper', children: _jsx(DocumentMainMenu, { seeAllTypeDocs: seeAllDocumentsText?.seeAllTypeDocs ?? '', allLegalDocs: seeAllDocumentsText?.allLegalDocs ?? '', allTypeDocs: seeAllDocumentsText?.allTypeDocs ?? '', setCookiePolicyFunc: setCookiePolicyFunc, routes: routes, hasSubCategoryPage: configVars.HAS_SUBCATEGORY_PAGE, finalMenu: finalMenu }) })] })] })), !!navMenuItems &&
|
|
9
|
-
navMenuItems.map((item) =>
|
|
9
|
+
navMenuItems.map((item) => {
|
|
10
|
+
const showIcon = ['lawgenius', 'copilot'].includes(item.label.toLowerCase());
|
|
11
|
+
return (_jsx("div", { className: `navigation-pane__link`, children: _jsxs("a", { className: `navigation-pane__link__title`, title: item.title, "data-qa": item.dataQa, href: item.href, children: [_jsx("p", { children: item.label }), showIcon && _jsx(RatafiaLandingIcon, {})] }) }, item.title));
|
|
12
|
+
}), !!extraMenu && extraMenu?.items?.length > 0 && (_jsxs("div", { className: 'navigation-pane__resources', children: [_jsxs("div", { className: 'navigation-pane__resources__container', children: [_jsx("p", { className: 'navigation-pane__resources__title', children: extraMenu.title }), _jsx("img", { src: arrowDown, alt: 'arrow-down' })] }), _jsx("ul", { className: 'resources__list', children: extraMenu.items.map((item) => (_jsx("li", { className: 'menu-items-li', children: _jsx("a", { title: item.title, "data-qa": item.dataQa, href: item.href, children: item.label }) }, item.title))) })] }))] }));
|
|
10
13
|
};
|
|
@@ -52,14 +52,17 @@ export const MenuItems: React.FC<MenuItemsProps> = ({
|
|
|
52
52
|
</div>
|
|
53
53
|
)}
|
|
54
54
|
{!!navMenuItems &&
|
|
55
|
-
navMenuItems.map((item) =>
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
{item.
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
55
|
+
navMenuItems.map((item) => {
|
|
56
|
+
const showIcon = ['lawgenius', 'copilot'].includes(item.label.toLowerCase())
|
|
57
|
+
return (
|
|
58
|
+
<div className={`navigation-pane__link`} key={item.title}>
|
|
59
|
+
<a className={`navigation-pane__link__title`} title={item.title} data-qa={item.dataQa} href={item.href}>
|
|
60
|
+
<p>{item.label}</p>
|
|
61
|
+
{showIcon && <RatafiaLandingIcon />}
|
|
62
|
+
</a>
|
|
63
|
+
</div>
|
|
64
|
+
)
|
|
65
|
+
})}
|
|
63
66
|
{!!extraMenu && extraMenu?.items?.length > 0 && (
|
|
64
67
|
<div className={'navigation-pane__resources'}>
|
|
65
68
|
<div className={'navigation-pane__resources__container'}>
|
|
@@ -10,6 +10,6 @@ export const WhyLawDistrictSection = ({ title, items, userActive, link }) => {
|
|
|
10
10
|
useEffect(() => {
|
|
11
11
|
setIsUserActive(userActive);
|
|
12
12
|
}, [userActive]);
|
|
13
|
-
return (_jsxs(WhyLawDistrictSectionStyled, { className: '
|
|
13
|
+
return (_jsxs(WhyLawDistrictSectionStyled, { className: 'whySection', children: [_jsx("h2", { className: 'whySection__title serif --hero', children: title }), _jsx(WhyLawDistrictItems, { items: items }), !isUserActive && (_jsx(Button, { givenClass: 'whySection__button', label: link.cta, link: link.url, onClick: link.onClick, dataQa: link.dataQa, isExternal: true, hasNoFollow: true }))] }));
|
|
14
14
|
};
|
|
15
15
|
export default WhyLawDistrictSection;
|
|
@@ -15,13 +15,13 @@ export const WhyLawDistrictSection: React.FC<WhyLawDistrictSectionProps> = ({ ti
|
|
|
15
15
|
}, [userActive])
|
|
16
16
|
|
|
17
17
|
return (
|
|
18
|
-
<WhyLawDistrictSectionStyled className={'
|
|
19
|
-
<h2 className={'
|
|
18
|
+
<WhyLawDistrictSectionStyled className={'whySection'}>
|
|
19
|
+
<h2 className={'whySection__title serif --hero'}>{title}</h2>
|
|
20
20
|
<WhyLawDistrictItems items={items} />
|
|
21
21
|
|
|
22
22
|
{!isUserActive && (
|
|
23
23
|
<Button
|
|
24
|
-
givenClass='
|
|
24
|
+
givenClass='whySection__button'
|
|
25
25
|
label={link.cta}
|
|
26
26
|
link={link.url}
|
|
27
27
|
onClick={link.onClick}
|