@npm_leadtech/legal-lib-components 7.55.0 → 7.56.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.
@@ -18,6 +18,10 @@ const LOGOS = {
18
18
  default: lawdistrict,
19
19
  white: lawdistrictWhite
20
20
  },
21
+ legalfinity: {
22
+ default: lawdistrict,
23
+ white: lawdistrictWhite
24
+ },
21
25
  districtlaws: {
22
26
  default: districtlaws,
23
27
  white: districtlawsWhite
@@ -24,6 +24,10 @@ const LOGOS: Record<string, any> = {
24
24
  default: lawdistrict,
25
25
  white: lawdistrictWhite
26
26
  },
27
+ legalfinity: {
28
+ default: lawdistrict,
29
+ white: lawdistrictWhite
30
+ },
27
31
  districtlaws: {
28
32
  default: districtlaws,
29
33
  white: districtlawsWhite
@@ -1,8 +1,8 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { ContactBarWrapperStyled, ContactBarWrapperText, ScheduleWrapper } from './InfoBarFooter.styled';
3
3
  import { IconWeb } from '../../../../images/componentsSvg/IconWeb';
4
4
  import { WideInfoBar } from '../../atoms/WideInfoBar';
5
5
  export const InfoBarFooter = ({ sitePhone, siteSchedule, securityText, guaranteeText, securityIconBlack, guaranteeIconGrey, isJonSnow = false, isAnonymousPayment = false }) => {
6
- return (_jsx(WideInfoBar, { children: _jsxs(_Fragment, { children: [_jsxs(ContactBarWrapperStyled, { className: `${(isJonSnow || isAnonymousPayment) && 'hidden'}`, children: [sitePhone && _jsx(IconWeb, {}), _jsxs(ScheduleWrapper, { children: [_jsxs("div", { className: 'is-mobile', children: [_jsx("a", { className: 'phone', href: `tel:${sitePhone}`, children: _jsx("strong", { children: sitePhone }) }), sitePhone ? `${sitePhone} - ${siteSchedule}` : siteSchedule] }), _jsx("div", { className: 'no-mobile', children: sitePhone ? (_jsxs(_Fragment, { children: [_jsx("strong", { children: sitePhone }), " - ", siteSchedule] })) : (siteSchedule) })] })] }), _jsxs(ContactBarWrapperStyled, { children: [_jsx("img", { src: securityIconBlack, alt: 'security-icon' }), _jsx(ContactBarWrapperText, { children: securityText })] }), _jsxs(ContactBarWrapperStyled, { children: [_jsx("img", { src: guaranteeIconGrey, alt: 'guarantee-icon' }), _jsx(ContactBarWrapperText, { children: guaranteeText })] })] }) }));
6
+ return (_jsx(WideInfoBar, { children: _jsxs(_Fragment, { children: [_jsxs(ContactBarWrapperStyled, { className: `${(isJonSnow || isAnonymousPayment) && 'hidden'}`, children: [sitePhone && _jsx(IconWeb, {}), _jsxs(ScheduleWrapper, { children: [_jsxs("div", { className: 'is-mobile', children: [sitePhone && (_jsxs(_Fragment, { children: [_jsx("a", { className: 'phone', href: `tel:${sitePhone}`, children: _jsx("strong", { children: sitePhone }) }), ' - '] })), siteSchedule] }), _jsx("div", { className: 'no-mobile', children: sitePhone ? (_jsxs(_Fragment, { children: [_jsx("strong", { children: sitePhone }), " - ", siteSchedule] })) : (siteSchedule) })] })] }), _jsxs(ContactBarWrapperStyled, { children: [_jsx("img", { src: securityIconBlack, alt: 'security-icon' }), _jsx(ContactBarWrapperText, { children: securityText })] }), _jsxs(ContactBarWrapperStyled, { children: [_jsx("img", { src: guaranteeIconGrey, alt: 'guarantee-icon' }), _jsx(ContactBarWrapperText, { children: guaranteeText })] })] }) }));
7
7
  };
8
8
  export default InfoBarFooter;
@@ -21,10 +21,15 @@ export const InfoBarFooter: React.FC<InfoBarFooterProps> = ({
21
21
  {sitePhone && <IconWeb />}
22
22
  <ScheduleWrapper>
23
23
  <div className='is-mobile'>
24
- <a className='phone' href={`tel:${sitePhone}`}>
25
- <strong>{sitePhone}</strong>
26
- </a>
27
- {sitePhone ? `${sitePhone} - ${siteSchedule}` : siteSchedule}
24
+ {sitePhone && (
25
+ <>
26
+ <a className='phone' href={`tel:${sitePhone}`}>
27
+ <strong>{sitePhone}</strong>
28
+ </a>
29
+ {' - '}
30
+ </>
31
+ )}
32
+ {siteSchedule}
28
33
  </div>
29
34
  <div className='no-mobile'>
30
35
  {sitePhone ? (
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "7.55.0",
3
+ "version": "7.56.1",
4
4
  "license": "ISC",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",