@npm_leadtech/legal-lib-components 5.27.2 → 5.27.4
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/FixedFooter/FixedFooter.js +1 -2
- package/dist/src/components/atoms/FixedFooter/FixedFooter.styled.js +5 -1
- package/dist/src/components/atoms/FixedFooter/FixedFooter.styled.ts +5 -1
- package/dist/src/components/atoms/FixedFooter/FixedFooter.tsx +14 -8
- package/package.json +1 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Button } from '../Button';
|
|
3
|
-
import { ContactBox } from '../../molecules/ContactBox';
|
|
4
3
|
import { Disclaimer } from '../Disclaimer';
|
|
5
4
|
import { FixedFooterStyled } from './FixedFooter.styled';
|
|
6
5
|
import { IconWeb } from '../../../../images/componentsSvg/IconWeb';
|
|
@@ -71,5 +70,5 @@ export const FixedFooter = ({ footerData = {
|
|
|
71
70
|
show: false,
|
|
72
71
|
content: _jsx(_Fragment, {})
|
|
73
72
|
} }) => {
|
|
74
|
-
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 })] })] })), _jsx("div", { className: 'footer__logo', children: _jsx(Logo, { className: 'footer__lawdistrict', siteName: config.siteName, width: '138', height: '24', type: 'white' }) })] }), config.hasTrustPilot && footer.trustPilotWidget] }), !config.isJonSnow && (
|
|
73
|
+
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__lawdistrict', 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] }));
|
|
75
74
|
};
|
|
@@ -740,6 +740,7 @@ export const FixedFooterStyled = styled.div `
|
|
|
740
740
|
footer .footer-contact-box_schedule {
|
|
741
741
|
color: var(--others-white);
|
|
742
742
|
padding-bottom: 1rem;
|
|
743
|
+
white-space: pre-line;
|
|
743
744
|
}
|
|
744
745
|
.contact-bar-wrapper {
|
|
745
746
|
display: flex;
|
|
@@ -942,7 +943,7 @@ export const FixedFooterStyled = styled.div `
|
|
|
942
943
|
content: '';
|
|
943
944
|
width: 20px;
|
|
944
945
|
height: 20px;
|
|
945
|
-
background: url(
|
|
946
|
+
background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCI+PGRlZnM+PHBhdGggaWQ9InJldXNlLTAiIGQ9Ik0wIDBoMjB2MjBIMHoiLz48L2RlZnM+PGRlZnM+PHBhdGggaWQ9InByZWZpeF9fYSIgZD0iTTE2LjY3NSAxMi44MTdhOS41MzggOS41MzggMCAwIDEtMi45NDItLjQ2Ny44MTQuODE0IDAgMCAwLS44NDEuMmwtMS4zMDkgMS42NDJjLTIuMzU4LTEuMTI1LTQuNTY2LTMuMjUtNS43NDEtNS42OTJsMS42MjUtMS4zODNhLjg1My44NTMgMCAwIDAgLjItLjg1QTkuMjc3IDkuMjc3IDAgMCAxIDcuMiAzLjMyNWEuODMyLjgzMiAwIDAgMC0uODI1LS44MjVIMy40OTJjLS40NSAwLS45OTIuMi0uOTkyLjgyNUMyLjUgMTEuMDY3IDguOTQyIDE3LjUgMTYuNjc1IDE3LjVjLjU5MiAwIC44MjUtLjUyNS44MjUtLjk4M3YtMi44NzVhLjgzMi44MzIgMCAwIDAtLjgyNS0uODI1eiIvPjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjx1c2UgeGxpbms6aHJlZj0iI3JldXNlLTAiLz48bWFzayBpZD0icHJlZml4X19iIiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNwcmVmaXhfX2EiLz48L21hc2s+PGcgZmlsbD0iI0ZGRiIgbWFzaz0idXJsKCNwcmVmaXhfX2IpIj48dXNlIHhsaW5rOmhyZWY9IiNyZXVzZS0wIi8+PC9nPjwvZz48L3N2Zz4=);
|
|
946
947
|
margin-right: 0.5rem;
|
|
947
948
|
}
|
|
948
949
|
@media (min-width: 720px) {
|
|
@@ -967,4 +968,7 @@ export const FixedFooterStyled = styled.div `
|
|
|
967
968
|
max-width: 12rem;
|
|
968
969
|
}
|
|
969
970
|
}
|
|
971
|
+
footer .footer__products > p {
|
|
972
|
+
margin-bottom: 0.5rem;
|
|
973
|
+
}
|
|
970
974
|
`;
|
|
@@ -741,6 +741,7 @@ export const FixedFooterStyled = styled.div`
|
|
|
741
741
|
footer .footer-contact-box_schedule {
|
|
742
742
|
color: var(--others-white);
|
|
743
743
|
padding-bottom: 1rem;
|
|
744
|
+
white-space: pre-line;
|
|
744
745
|
}
|
|
745
746
|
.contact-bar-wrapper {
|
|
746
747
|
display: flex;
|
|
@@ -943,7 +944,7 @@ export const FixedFooterStyled = styled.div`
|
|
|
943
944
|
content: '';
|
|
944
945
|
width: 20px;
|
|
945
946
|
height: 20px;
|
|
946
|
-
background: url(
|
|
947
|
+
background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCI+PGRlZnM+PHBhdGggaWQ9InJldXNlLTAiIGQ9Ik0wIDBoMjB2MjBIMHoiLz48L2RlZnM+PGRlZnM+PHBhdGggaWQ9InByZWZpeF9fYSIgZD0iTTE2LjY3NSAxMi44MTdhOS41MzggOS41MzggMCAwIDEtMi45NDItLjQ2Ny44MTQuODE0IDAgMCAwLS44NDEuMmwtMS4zMDkgMS42NDJjLTIuMzU4LTEuMTI1LTQuNTY2LTMuMjUtNS43NDEtNS42OTJsMS42MjUtMS4zODNhLjg1My44NTMgMCAwIDAgLjItLjg1QTkuMjc3IDkuMjc3IDAgMCAxIDcuMiAzLjMyNWEuODMyLjgzMiAwIDAgMC0uODI1LS44MjVIMy40OTJjLS40NSAwLS45OTIuMi0uOTkyLjgyNUMyLjUgMTEuMDY3IDguOTQyIDE3LjUgMTYuNjc1IDE3LjVjLjU5MiAwIC44MjUtLjUyNS44MjUtLjk4M3YtMi44NzVhLjgzMi44MzIgMCAwIDAtLjgyNS0uODI1eiIvPjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjx1c2UgeGxpbms6aHJlZj0iI3JldXNlLTAiLz48bWFzayBpZD0icHJlZml4X19iIiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNwcmVmaXhfX2EiLz48L21hc2s+PGcgZmlsbD0iI0ZGRiIgbWFzaz0idXJsKCNwcmVmaXhfX2IpIj48dXNlIHhsaW5rOmhyZWY9IiNyZXVzZS0wIi8+PC9nPjwvZz48L3N2Zz4=);
|
|
947
948
|
margin-right: 0.5rem;
|
|
948
949
|
}
|
|
949
950
|
@media (min-width: 720px) {
|
|
@@ -968,4 +969,7 @@ export const FixedFooterStyled = styled.div`
|
|
|
968
969
|
max-width: 12rem;
|
|
969
970
|
}
|
|
970
971
|
}
|
|
972
|
+
footer .footer__products > p {
|
|
973
|
+
margin-bottom: 0.5rem;
|
|
974
|
+
}
|
|
971
975
|
`
|
|
@@ -238,7 +238,9 @@ export const FixedFooter: React.FC<FixedFooterProps> = ({
|
|
|
238
238
|
label={config.sitePhone}
|
|
239
239
|
dataQa={'footer_contact_box'}
|
|
240
240
|
/>
|
|
241
|
-
<span className='footer-contact-box_schedule'>
|
|
241
|
+
<span className='footer-contact-box_schedule'>
|
|
242
|
+
{config.siteSchedule.replace(/(\d)/, '\n$1')}
|
|
243
|
+
</span>
|
|
242
244
|
</div>
|
|
243
245
|
</>
|
|
244
246
|
)}
|
|
@@ -256,14 +258,18 @@ export const FixedFooter: React.FC<FixedFooterProps> = ({
|
|
|
256
258
|
</div>
|
|
257
259
|
{!config.isJonSnow && (
|
|
258
260
|
<div className={'footer-mobile-contact-box'}>
|
|
259
|
-
<
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
261
|
+
<span className={'footer-mobile-contact-box_phone'}>{config.sitePhone}</span>
|
|
262
|
+
<Button
|
|
263
|
+
centered
|
|
264
|
+
isExternal
|
|
265
|
+
link={`tel:${config.sitePhone}`}
|
|
266
|
+
givenClass={'footer-mobile-contact-box-button'}
|
|
267
|
+
label={config.sitePhone}
|
|
268
|
+
dataQa={'footer_contact_box'}
|
|
266
269
|
/>
|
|
270
|
+
{config.siteSchedule && (
|
|
271
|
+
<p className={'footer-mobile-contact-box_schedule'}>{config.siteSchedule}</p>
|
|
272
|
+
)}
|
|
267
273
|
</div>
|
|
268
274
|
)}
|
|
269
275
|
</section>
|