@npm_leadtech/legal-lib-components 7.68.1 → 7.69.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.
Files changed (25) hide show
  1. package/dist/src/components/atoms/BenefitCard/BenefitCard.js +1 -2
  2. package/dist/src/components/atoms/BenefitCard/BenefitCard.tsx +1 -7
  3. package/dist/src/components/atoms/BenefitCard/BenefitCardProps.types.d.ts +1 -1
  4. package/dist/src/components/atoms/BenefitCard/BenefitCardProps.types.ts +1 -1
  5. package/dist/src/components/atoms/BenefitCard/BenefitCardStyled.styled.js +5 -0
  6. package/dist/src/components/atoms/BenefitCard/BenefitCardStyled.styled.ts +5 -0
  7. package/dist/src/components/atoms/FixedFooter/FixedFooter.js +1 -1
  8. package/dist/src/components/atoms/FixedFooter/FixedFooter.tsx +1 -1
  9. package/dist/src/components/atoms/StepRatafiaCard/StepRatafiaCard.js +1 -2
  10. package/dist/src/components/atoms/StepRatafiaCard/StepRatafiaCard.styled.js +5 -0
  11. package/dist/src/components/atoms/StepRatafiaCard/StepRatafiaCard.styled.ts +5 -0
  12. package/dist/src/components/atoms/StepRatafiaCard/StepRatafiaCard.tsx +1 -2
  13. package/dist/src/components/atoms/StepRatafiaCard/StepRatafiaCardProps.types.d.ts +1 -1
  14. package/dist/src/components/atoms/StepRatafiaCard/StepRatafiaCardProps.types.ts +1 -1
  15. package/dist/src/components/atoms/WhyLawDistrictItems/WhyLawDistrictItems.js +1 -1
  16. package/dist/src/components/atoms/WhyLawDistrictItems/WhyLawDistrictItems.styled.js +1 -1
  17. package/dist/src/components/atoms/WhyLawDistrictItems/WhyLawDistrictItems.styled.ts +1 -1
  18. package/dist/src/components/atoms/WhyLawDistrictItems/WhyLawDistrictItems.tsx +2 -2
  19. package/dist/src/components/organisms/BottomFooter/BottomFooter.js +1 -1
  20. package/dist/src/components/organisms/BottomFooter/BottomFooter.tsx +1 -8
  21. package/dist/src/components/sections/WhyLawDistrictSection/WhyLawDistrictSection.js +1 -1
  22. package/dist/src/components/sections/WhyLawDistrictSection/WhyLawDistrictSection.styled.js +1 -1
  23. package/dist/src/components/sections/WhyLawDistrictSection/WhyLawDistrictSection.styled.ts +1 -1
  24. package/dist/src/components/sections/WhyLawDistrictSection/WhyLawDistrictSection.tsx +3 -3
  25. 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 && (_jsx("div", { className: `benefit-card__icon ${hasShadow && 'has-shadow'}`, children: _jsx(IconSvgURLWithThemeColor, { url: image, height: '32', width: '32' }) })), _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 })] })] }));
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}
@@ -1,7 +1,7 @@
1
1
  export interface BenefitCardProps {
2
2
  id: string;
3
3
  title: string;
4
- image?: string;
4
+ image?: React.ReactNode;
5
5
  description: string;
6
6
  hasShadow?: boolean;
7
7
  hasBigFontSize?: boolean;
@@ -1,7 +1,7 @@
1
1
  export interface BenefitCardProps {
2
2
  id: string
3
3
  title: string
4
- image?: string
4
+ image?: React.ReactNode
5
5
  description: string
6
6
  hasShadow?: boolean
7
7
  hasBigFontSize?: boolean
@@ -37,6 +37,11 @@ export const BenefitCardStyled = styled.div `
37
37
  &.has-shadow {
38
38
  box-shadow: 0 2px 6px 0 rgba(2, 55, 74, 0.25);
39
39
  }
40
+
41
+ img {
42
+ min-width: 32px;
43
+ min-height: 32px;
44
+ }
40
45
  }
41
46
  &__content {
42
47
  display: flex;
@@ -38,6 +38,11 @@ export const BenefitCardStyled = styled.div`
38
38
  &.has-shadow {
39
39
  box-shadow: 0 2px 6px 0 rgba(2, 55, 74, 0.25);
40
40
  }
41
+
42
+ img {
43
+ min-width: 32px;
44
+ min-height: 32px;
45
+ }
41
46
  }
42
47
  &__content {
43
48
  display: flex;
@@ -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: '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] }));
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
  };
@@ -249,7 +249,7 @@ export const FixedFooter: React.FC<FixedFooterProps> = ({
249
249
  )}
250
250
  <div className={'footer__logo'}>
251
251
  <Logo
252
- className='footer__lawdistrict'
252
+ className='footer__logo-image'
253
253
  siteName={config.siteName}
254
254
  width='138'
255
255
  height='24'
@@ -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(IconSvgURLWithThemeColor, { url: icon, height: '20', width: '20' }), _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 })] }));
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;
@@ -18,6 +18,11 @@ export const StepRatafiaCardStyled = styled.div `
18
18
  align-self: stretch;
19
19
 
20
20
  color: var(--neutral-neutral-1);
21
+
22
+ &__icon {
23
+ width: 20px;
24
+ height: 20px;
25
+ }
21
26
  }
22
27
  }
23
28
  `;
@@ -19,6 +19,11 @@ export const StepRatafiaCardStyled = styled.div`
19
19
  align-self: stretch;
20
20
 
21
21
  color: var(--neutral-neutral-1);
22
+
23
+ &__icon {
24
+ width: 20px;
25
+ height: 20px;
26
+ }
22
27
  }
23
28
  }
24
29
  `
@@ -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 && <IconSvgURLWithThemeColor url={icon} height='20' width='20' />}
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>
@@ -1,6 +1,6 @@
1
1
  export interface StepRatafiaCardProps {
2
2
  id: string;
3
3
  title: string;
4
- icon?: string;
4
+ icon?: React.ReactNode;
5
5
  description: string;
6
6
  }
@@ -1,6 +1,6 @@
1
1
  export interface StepRatafiaCardProps {
2
2
  id: string
3
3
  title: string
4
- icon?: string
4
+ icon?: React.ReactNode
5
5
  description: string
6
6
  }
@@ -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: 'whyLawDistrictItems', children: items.map((item) => (_jsx("li", { className: 'whyLawDistrictItems__item', children: item.reasons }, item.id))) }));
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;
@@ -13,7 +13,7 @@ export const WhyLawDistrictItemsStyled = styled.ul `
13
13
  padding: 0 1rem;
14
14
  }
15
15
 
16
- .whyLawDistrictItems {
16
+ .whyItems {
17
17
  &__item {
18
18
  max-width: 100%;
19
19
  color: var(--neutral-neutral-2);
@@ -14,7 +14,7 @@ export const WhyLawDistrictItemsStyled = styled.ul`
14
14
  padding: 0 1rem;
15
15
  }
16
16
 
17
- .whyLawDistrictItems {
17
+ .whyItems {
18
18
  &__item {
19
19
  max-width: 100%;
20
20
  color: var(--neutral-neutral-2);
@@ -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={'whyLawDistrictItems'}>
10
+ <WhyLawDistrictItemsStyled className={'whyItems'}>
11
11
  {items.map((item) => (
12
- <li className={'whyLawDistrictItems__item'} key={item.id}>
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: 'footer__lawdistrict', 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 })] }) }));
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>
@@ -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: '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 }))] }));
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;
@@ -18,7 +18,7 @@ export const WhyLawDistrictSectionStyled = styled.section `
18
18
  display: block;
19
19
  }
20
20
 
21
- .whyLawDistrictSection {
21
+ .whySection {
22
22
  &__title {
23
23
  padding: 0 1.5rem;
24
24
  @media ${device.laptop} {
@@ -19,7 +19,7 @@ export const WhyLawDistrictSectionStyled = styled.section`
19
19
  display: block;
20
20
  }
21
21
 
22
- .whyLawDistrictSection {
22
+ .whySection {
23
23
  &__title {
24
24
  padding: 0 1.5rem;
25
25
  @media ${device.laptop} {
@@ -15,13 +15,13 @@ export const WhyLawDistrictSection: React.FC<WhyLawDistrictSectionProps> = ({ ti
15
15
  }, [userActive])
16
16
 
17
17
  return (
18
- <WhyLawDistrictSectionStyled className={'whyLawDistrictSection'}>
19
- <h2 className={'why-lawDistrict__title serif --hero'}>{title}</h2>
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='whyLawDistrictSection__button'
24
+ givenClass='whySection__button'
25
25
  label={link.cta}
26
26
  link={link.url}
27
27
  onClick={link.onClick}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "7.68.1",
3
+ "version": "7.69.0",
4
4
  "license": "ISC",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",