@npm_leadtech/legal-lib-components 5.26.6 → 5.26.10
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/images/componentsSvg/PhoneIcon24px.tsx +2 -4
- package/dist/src/components/atoms/index.d.ts +0 -2
- package/dist/src/components/atoms/index.js +0 -2
- package/dist/src/components/atoms/index.ts +0 -2
- package/dist/src/components/pages/ErrorRatafiaPage/ErrorRatafiaPage.styled.js +1 -1
- package/dist/src/components/pages/ErrorRatafiaPage/ErrorRatafiaPage.styled.ts +1 -1
- package/dist/src/components/pages/KeyFactsResultRatafiaPage/KeyFactsResultRatafiaPage.styled.js +1 -1
- package/dist/src/components/pages/KeyFactsResultRatafiaPage/KeyFactsResultRatafiaPage.styled.ts +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/images/componentsSvg/IconWeb.d.ts +0 -2
- package/dist/images/componentsSvg/IconWeb.js +0 -4
- package/dist/images/componentsSvg/IconWeb.tsx +0 -31
- package/dist/images/componentsSvg/PhoneIcon.d.ts +0 -6
- package/dist/images/componentsSvg/PhoneIcon.js +0 -4
- package/dist/images/componentsSvg/PhoneIcon.tsx +0 -18
- package/dist/images/svg/facebook.svg +0 -4
- package/dist/images/svg/icon-24-px-satisfaction-grey.svg +0 -3
- package/dist/images/svg/icon-24-px-security_black.svg +0 -3
- package/dist/images/svg/linkedin.svg +0 -4
- package/dist/images/svg/pinterest.svg +0 -4
- package/dist/images/svg/x.svg +0 -4
- package/dist/src/components/atoms/FixedFooter/FixedFooter.d.ts +0 -3
- package/dist/src/components/atoms/FixedFooter/FixedFooter.js +0 -73
- package/dist/src/components/atoms/FixedFooter/FixedFooter.styled.d.ts +0 -1
- package/dist/src/components/atoms/FixedFooter/FixedFooter.styled.js +0 -891
- package/dist/src/components/atoms/FixedFooter/FixedFooter.styled.ts +0 -892
- package/dist/src/components/atoms/FixedFooter/FixedFooter.tsx +0 -304
- package/dist/src/components/atoms/FixedFooter/FixedFooterProps.d.ts +0 -68
- package/dist/src/components/atoms/FixedFooter/FixedFooterProps.js +0 -1
- package/dist/src/components/atoms/FixedFooter/FixedFooterProps.ts +0 -70
- package/dist/src/components/atoms/FixedFooter/index.d.ts +0 -2
- package/dist/src/components/atoms/FixedFooter/index.js +0 -2
- package/dist/src/components/atoms/FixedFooter/index.ts +0 -2
- package/dist/src/components/atoms/PreFooter/PreFooter.d.ts +0 -3
- package/dist/src/components/atoms/PreFooter/PreFooter.js +0 -8
- package/dist/src/components/atoms/PreFooter/PreFooter.styled.d.ts +0 -1
- package/dist/src/components/atoms/PreFooter/PreFooter.styled.js +0 -43
- package/dist/src/components/atoms/PreFooter/PreFooter.styled.ts +0 -43
- package/dist/src/components/atoms/PreFooter/PreFooter.tsx +0 -34
- package/dist/src/components/atoms/PreFooter/PreFooterProps.d.ts +0 -8
- package/dist/src/components/atoms/PreFooter/PreFooterProps.js +0 -1
- package/dist/src/components/atoms/PreFooter/PreFooterProps.ts +0 -8
- package/dist/src/components/atoms/PreFooter/index.d.ts +0 -2
- package/dist/src/components/atoms/PreFooter/index.js +0 -2
- package/dist/src/components/atoms/PreFooter/index.ts +0 -2
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Button } from '../Button';
|
|
3
|
-
import { ContactBox } from '../../molecules/ContactBox';
|
|
4
|
-
import { Disclaimer } from '../Disclaimer';
|
|
5
|
-
import { FixedFooterStyled } from './FixedFooter.styled';
|
|
6
|
-
import { IconWeb } from '../../../../images/componentsSvg/IconWeb';
|
|
7
|
-
import { Logo } from '../Logo';
|
|
8
|
-
import { PhoneIcon } from '../../../../images/componentsSvg/PhoneIcon';
|
|
9
|
-
import { WideInfoBar } from '../WideInfoBar';
|
|
10
|
-
import facebook from '../../../../images/svg/facebook.svg';
|
|
11
|
-
import guaranteeIconGrey from '../../../../images/svg/icon-24-px-satisfaction-grey.svg';
|
|
12
|
-
import linkedin from '../../../../images/svg/linkedin.svg';
|
|
13
|
-
import pinterest from '../../../../images/svg/pinterest.svg';
|
|
14
|
-
import securityIconBlack from '../../../../images/svg/icon-24-px-security_black.svg';
|
|
15
|
-
import x from '../../../../images/svg/x.svg';
|
|
16
|
-
export const FixedFooter = ({ config = {
|
|
17
|
-
siteName: 'LawDistrict',
|
|
18
|
-
sitePhone: '123-456-7890',
|
|
19
|
-
siteSchedule: 'Monday - Friday, 9am - 5pm',
|
|
20
|
-
siteUrl: 'https://www.lawdistrict.com',
|
|
21
|
-
hasGrav: true,
|
|
22
|
-
hasCookieMessage: true,
|
|
23
|
-
hasContactBar: false,
|
|
24
|
-
hasTrustPilot: true,
|
|
25
|
-
isJonSnow: false,
|
|
26
|
-
isSEMPage: false,
|
|
27
|
-
isMobile: false,
|
|
28
|
-
isTablet: false,
|
|
29
|
-
isDesktop: true,
|
|
30
|
-
isAnonymousPayment: false,
|
|
31
|
-
hide: false,
|
|
32
|
-
noFooter: false
|
|
33
|
-
}, footer = {
|
|
34
|
-
disclaimerText: '',
|
|
35
|
-
guaranteeText: '',
|
|
36
|
-
securityText: '',
|
|
37
|
-
bottomFixedBlock: _jsx(_Fragment, {}),
|
|
38
|
-
createDocumentBlock: _jsx(_Fragment, {}),
|
|
39
|
-
trustPilotWidget: _jsx(_Fragment, {})
|
|
40
|
-
}, preFooter = {
|
|
41
|
-
show: true,
|
|
42
|
-
title: 'Try LawDistrict Now',
|
|
43
|
-
columns: [
|
|
44
|
-
'Instant and complete access to our entire library of legal forms',
|
|
45
|
-
'Edit, download and print in PDF and Word format from any device',
|
|
46
|
-
'Save time and money on legal document creation'
|
|
47
|
-
],
|
|
48
|
-
hasButton: true,
|
|
49
|
-
buttonLabel: 'Get Unlimited Access Now',
|
|
50
|
-
buttonLink: './',
|
|
51
|
-
buttonClick: () => { }
|
|
52
|
-
}, productsBlock = {
|
|
53
|
-
title: 'Products',
|
|
54
|
-
productsCategories: _jsx(_Fragment, {}),
|
|
55
|
-
allProductsLink: _jsx(_Fragment, {})
|
|
56
|
-
}, popularDocumentsBlock = {
|
|
57
|
-
title: 'Popular Documents',
|
|
58
|
-
popularDocuments: _jsx(_Fragment, {})
|
|
59
|
-
}, companyBlock = {
|
|
60
|
-
title: 'Company',
|
|
61
|
-
links: _jsx(_Fragment, {})
|
|
62
|
-
}, helpBlock = {
|
|
63
|
-
title: 'Help',
|
|
64
|
-
links: _jsx(_Fragment, {})
|
|
65
|
-
}, resourcesBlock = {
|
|
66
|
-
title: 'Resources',
|
|
67
|
-
links: _jsx(_Fragment, {})
|
|
68
|
-
}, languageSelector = {
|
|
69
|
-
show: false,
|
|
70
|
-
content: _jsx(_Fragment, {})
|
|
71
|
-
} }) => {
|
|
72
|
-
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: "Find us" }), _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 && (_jsx("div", { className: 'footer-mobile-contact-box', children: _jsx(ContactBox, { mobile: true, phone: config.sitePhone, schedule: config.siteSchedule, mobileGtmTag: 'clicked_phone_footer', dataQa: 'footer_contact_box', darkMode: true }) }))] })] })) : 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] }));
|
|
73
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const FixedFooterStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|