@npm_leadtech/legal-lib-components 5.26.2-f → 5.26.2

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.
@@ -13,7 +13,7 @@ import linkedin from '../../../../images/svg/linkedin.svg';
13
13
  import pinterest from '../../../../images/svg/pinterest.svg';
14
14
  import securityIconBlack from '../../../../images/svg/icon-24-px-security_black.svg';
15
15
  import x from '../../../../images/svg/x.svg';
16
- export const FixedFooter = ({ footerData = {}, config = {
16
+ export const FixedFooter = ({ config = {
17
17
  siteName: 'LawDistrict',
18
18
  sitePhone: '123-456-7890',
19
19
  siteSchedule: 'Monday - Friday, 9am - 5pm',
@@ -69,5 +69,5 @@ export const FixedFooter = ({ footerData = {}, config = {
69
69
  show: false,
70
70
  content: _jsx(_Fragment, {})
71
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: 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 && (_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] }));
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
73
  };
@@ -810,82 +810,4 @@ export const FixedFooterStyled = styled.div `
810
810
  }
811
811
  }
812
812
  }
813
- @media (min-width: 720px) {
814
- .footer-contact-box-button,
815
- .footer-mobile-contact-box-button {
816
- display: none !important;
817
- }
818
- }
819
- .footer-contact-box_phone,
820
- .footer-mobile-contact-box_phone {
821
- display: none;
822
- font-size: 0.9rem;
823
- font-weight: bold;
824
- }
825
- @media (min-width: 720px) {
826
- .footer-contact-box_phone,
827
- .footer-mobile-contact-box_phone {
828
- display: flex;
829
- }
830
- }
831
- footer .footer-contact-box_schedule {
832
- color: var(--others-white);
833
- padding-bottom: 1rem;
834
- }
835
- .footer-contact-box_schedule,
836
- .footer-mobile-contact-box_schedule {
837
- color: var(--neutral-neutral-3);
838
- font-size: 1rem;
839
- text-align: center;
840
- margin: 0.5rem 0;
841
- }
842
- @media (min-width: 720px) {
843
- .footer-contact-box_schedule,
844
- .footer-mobile-contact-box_schedule {
845
- font-size: 0.8rem;
846
- text-align: left;
847
- margin: 0;
848
- max-width: 12rem;
849
- }
850
- }
851
- .footer-mobile-contact-box {
852
- display: flex;
853
- }
854
- @media (min-width: 720px) {
855
- .footer-mobile-contact-box {
856
- display: none;
857
- }
858
- }
859
- footer .expand-icon:before,
860
- footer .expand-icon:after {
861
- width: 2px;
862
- background-color: var(--others-white);
863
- left: 50%;
864
- height: 64%;
865
- }
866
- .icon-arrow:before {
867
- top: 0;
868
- transform: rotate(-45deg);
869
- }
870
- .icon-arrow:after {
871
- bottom: 0;
872
- transform: rotate(45deg);
873
- }
874
- .icon-arrow:before,
875
- .icon-arrow:after {
876
- left: 50%;
877
- height: 64%;
878
- }
879
- .icon:before,
880
- .icon-cross:before,
881
- .icon-arrow:before,
882
- .icon:after,
883
- .icon-cross:after,
884
- .icon-arrow:after {
885
- content: '';
886
- position: absolute;
887
- background-color: black;
888
- width: 3px;
889
- height: 100%;
890
- }
891
813
  `;
@@ -811,82 +811,4 @@ export const FixedFooterStyled = styled.div`
811
811
  }
812
812
  }
813
813
  }
814
- @media (min-width: 720px) {
815
- .footer-contact-box-button,
816
- .footer-mobile-contact-box-button {
817
- display: none !important;
818
- }
819
- }
820
- .footer-contact-box_phone,
821
- .footer-mobile-contact-box_phone {
822
- display: none;
823
- font-size: 0.9rem;
824
- font-weight: bold;
825
- }
826
- @media (min-width: 720px) {
827
- .footer-contact-box_phone,
828
- .footer-mobile-contact-box_phone {
829
- display: flex;
830
- }
831
- }
832
- footer .footer-contact-box_schedule {
833
- color: var(--others-white);
834
- padding-bottom: 1rem;
835
- }
836
- .footer-contact-box_schedule,
837
- .footer-mobile-contact-box_schedule {
838
- color: var(--neutral-neutral-3);
839
- font-size: 1rem;
840
- text-align: center;
841
- margin: 0.5rem 0;
842
- }
843
- @media (min-width: 720px) {
844
- .footer-contact-box_schedule,
845
- .footer-mobile-contact-box_schedule {
846
- font-size: 0.8rem;
847
- text-align: left;
848
- margin: 0;
849
- max-width: 12rem;
850
- }
851
- }
852
- .footer-mobile-contact-box {
853
- display: flex;
854
- }
855
- @media (min-width: 720px) {
856
- .footer-mobile-contact-box {
857
- display: none;
858
- }
859
- }
860
- footer .expand-icon:before,
861
- footer .expand-icon:after {
862
- width: 2px;
863
- background-color: var(--others-white);
864
- left: 50%;
865
- height: 64%;
866
- }
867
- .icon-arrow:before {
868
- top: 0;
869
- transform: rotate(-45deg);
870
- }
871
- .icon-arrow:after {
872
- bottom: 0;
873
- transform: rotate(45deg);
874
- }
875
- .icon-arrow:before,
876
- .icon-arrow:after {
877
- left: 50%;
878
- height: 64%;
879
- }
880
- .icon:before,
881
- .icon-cross:before,
882
- .icon-arrow:before,
883
- .icon:after,
884
- .icon-cross:after,
885
- .icon-arrow:after {
886
- content: '';
887
- position: absolute;
888
- background-color: black;
889
- width: 3px;
890
- height: 100%;
891
- }
892
814
  `
@@ -16,7 +16,6 @@ import securityIconBlack from '../../../../images/svg/icon-24-px-security_black.
16
16
  import x from '../../../../images/svg/x.svg'
17
17
 
18
18
  export const FixedFooter: React.FC<FixedFooterProps> = ({
19
- footerData = {},
20
19
  config = {
21
20
  siteName: 'LawDistrict',
22
21
  sitePhone: '123-456-7890',
@@ -190,7 +189,7 @@ export const FixedFooter: React.FC<FixedFooterProps> = ({
190
189
  {!config.isJonSnow && (
191
190
  <>
192
191
  <div className='find-us-content'>
193
- <p className={'sans-serif --small footer-links__title'}>{footerData?.findUs}</p>
192
+ <p className={'sans-serif --small footer-links__title'}>Find us</p>
194
193
  <ul>
195
194
  <li>
196
195
  <a
@@ -5,9 +5,6 @@ export interface Link {
5
5
  onClick: () => void;
6
6
  }
7
7
  export interface FixedFooterProps {
8
- footerData: {
9
- findUs: string;
10
- };
11
8
  config: {
12
9
  siteName: string;
13
10
  sitePhone: string;
@@ -7,9 +7,6 @@ export interface Link {
7
7
  }
8
8
 
9
9
  export interface FixedFooterProps {
10
- footerData: {
11
- findUs: string
12
- }
13
10
  config: {
14
11
  siteName: string
15
12
  sitePhone: string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "5.26.2f",
3
+ "version": "5.26.2",
4
4
  "license": "ISC",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",