@npm_leadtech/legal-lib-components 5.33.15 → 5.34.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 (21) hide show
  1. package/dist/src/components/molecules/AccordionItem/AccordionItem.styled.js +2 -3
  2. package/dist/src/components/molecules/AccordionItem/AccordionItem.styled.ts +2 -3
  3. package/dist/src/components/molecules/Article/Article.js +2 -2
  4. package/dist/src/components/molecules/Article/Article.tsx +3 -3
  5. package/dist/src/components/molecules/Article/ArticleProps.types.d.ts +0 -1
  6. package/dist/src/components/molecules/Article/ArticleProps.types.ts +0 -1
  7. package/dist/src/components/molecules/ContinueEditingBanner/ContinueEditingBanner.js +2 -2
  8. package/dist/src/components/molecules/ContinueEditingBanner/ContinueEditingBanner.tsx +2 -3
  9. package/dist/src/components/molecules/ContinueEditingBanner/ContinueEditingBannerProps.types.d.ts +0 -1
  10. package/dist/src/components/molecules/ContinueEditingBanner/ContinueEditingBannerProps.types.ts +0 -1
  11. package/dist/src/components/molecules/CountDownMessage/CountDownMessage.js +4 -4
  12. package/dist/src/components/molecules/CountDownMessage/CountDownMessage.tsx +8 -6
  13. package/dist/src/components/organisms/ContactJumbotron/ContactJumbotron.js +2 -2
  14. package/dist/src/components/organisms/ContactJumbotron/ContactJumbotron.tsx +1 -2
  15. package/dist/src/components/organisms/ContactJumbotron/ContactJumbotronProps.types.d.ts +0 -1
  16. package/dist/src/components/organisms/ContactJumbotron/ContactJumbotronProps.types.ts +0 -1
  17. package/dist/src/components/organisms/CookiePolicyBar/CookiePolicyBar.js +2 -2
  18. package/dist/src/components/organisms/CookiePolicyBar/CookiePolicyBar.tsx +2 -2
  19. package/dist/src/components/organisms/CookiePolicyBar/CookiePolicyBarProps.d.ts +0 -1
  20. package/dist/src/components/organisms/CookiePolicyBar/CookiePolicyBarProps.ts +0 -1
  21. package/package.json +1 -1
@@ -29,7 +29,7 @@ export const AccordionItemStyled = styled.div `
29
29
  font-size: 16px;
30
30
  font-style: normal;
31
31
  font-weight: 400;
32
- line-height: 22px;
32
+ line-height: 20px;
33
33
  letter-spacing: -0.3px;
34
34
 
35
35
  &.--success {
@@ -48,10 +48,9 @@ export const AccordionItemStyled = styled.div `
48
48
  .accordion__title {
49
49
  color: var(--primary-main-dark-1);
50
50
  font-family: Inter;
51
- font-size: 18px;
51
+ font-size: 16px;
52
52
  font-style: normal;
53
53
  font-weight: 700;
54
- line-height: 24px;
55
54
  letter-spacing: -0.3px;
56
55
 
57
56
  &.--locked {
@@ -30,7 +30,7 @@ export const AccordionItemStyled = styled.div`
30
30
  font-size: 16px;
31
31
  font-style: normal;
32
32
  font-weight: 400;
33
- line-height: 22px;
33
+ line-height: 20px;
34
34
  letter-spacing: -0.3px;
35
35
 
36
36
  &.--success {
@@ -49,10 +49,9 @@ export const AccordionItemStyled = styled.div`
49
49
  .accordion__title {
50
50
  color: var(--primary-main-dark-1);
51
51
  font-family: Inter;
52
- font-size: 18px;
52
+ font-size: 16px;
53
53
  font-style: normal;
54
54
  font-weight: 700;
55
- line-height: 24px;
56
55
  letter-spacing: -0.3px;
57
56
 
58
57
  &.--locked {
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import ArrowRight from '../../../../images/svg/arrow-right-24px-outlined.svg';
3
3
  import { ArticleStyled } from './Article.styled';
4
4
  import { Button } from '../../atoms';
5
- const Article = ({ imageUrl, title, articleUrl, summary, isCategoryProductPage, readMoreText }) => {
6
- return (_jsxs(ArticleStyled, { className: 'article', children: [_jsx("img", { src: imageUrl, className: isCategoryProductPage ? 'image image-category' : 'image', loading: 'lazy', alt: title }), _jsxs("div", { className: isCategoryProductPage ? 'information information-category' : 'information', children: [_jsx("a", { href: articleUrl, target: '_blank', rel: 'noreferrer', children: _jsxs("p", { className: 'title sans-serif --big', children: [title, " "] }) }), _jsx("div", { className: 'summary', children: summary }), isCategoryProductPage ? (_jsxs("div", { className: 'button-image-container', children: [_jsx(Button, { givenClass: 'thinner-letter', color: 'tertiary', label: readMoreText, dataQa: 'article-read-more', link: articleUrl, isExternal: true }), _jsx("img", { className: 'article__arrow-right', src: ArrowRight, alt: '' })] })) : (_jsx(Button, { color: 'tertiary', label: readMoreText, dataQa: 'article-read-more', link: articleUrl, isExternal: true }))] })] }));
5
+ const Article = ({ imageUrl, title, articleUrl, summary, isCategoryProductPage }) => {
6
+ return (_jsxs(ArticleStyled, { className: 'article', children: [_jsx("img", { src: imageUrl, className: isCategoryProductPage ? 'image image-category' : 'image', loading: 'lazy', alt: title }), _jsxs("div", { className: isCategoryProductPage ? 'information information-category' : 'information', children: [_jsx("a", { href: articleUrl, target: '_blank', rel: 'noreferrer', children: _jsxs("p", { className: 'title sans-serif --big', children: [title, " "] }) }), _jsx("div", { className: 'summary', children: summary }), isCategoryProductPage ? (_jsxs("div", { className: 'button-image-container', children: [_jsx(Button, { givenClass: 'thinner-letter', color: 'tertiary', label: 'Read more', dataQa: 'article-read-more', link: articleUrl, isExternal: true }), _jsx("img", { className: 'article__arrow-right', src: ArrowRight, alt: '' })] })) : (_jsx(Button, { color: 'tertiary', label: 'Read more', dataQa: 'article-read-more', link: articleUrl, isExternal: true }))] })] }));
7
7
  };
8
8
  export default Article;
@@ -5,7 +5,7 @@ import { type ArticleProps } from './ArticleProps.types'
5
5
  import { ArticleStyled } from './Article.styled'
6
6
  import { Button } from '../../atoms'
7
7
 
8
- const Article: FC<ArticleProps> = ({ imageUrl, title, articleUrl, summary, isCategoryProductPage, readMoreText }) => {
8
+ const Article: FC<ArticleProps> = ({ imageUrl, title, articleUrl, summary, isCategoryProductPage }) => {
9
9
  return (
10
10
  <ArticleStyled className='article'>
11
11
  <img
@@ -24,7 +24,7 @@ const Article: FC<ArticleProps> = ({ imageUrl, title, articleUrl, summary, isCat
24
24
  <Button
25
25
  givenClass='thinner-letter'
26
26
  color='tertiary'
27
- label={readMoreText}
27
+ label={'Read more'}
28
28
  dataQa='article-read-more'
29
29
  link={articleUrl}
30
30
  isExternal
@@ -32,7 +32,7 @@ const Article: FC<ArticleProps> = ({ imageUrl, title, articleUrl, summary, isCat
32
32
  <img className='article__arrow-right' src={ArrowRight} alt=''></img>
33
33
  </div>
34
34
  ) : (
35
- <Button color='tertiary' label={readMoreText} dataQa='article-read-more' link={articleUrl} isExternal />
35
+ <Button color='tertiary' label={'Read more'} dataQa='article-read-more' link={articleUrl} isExternal />
36
36
  )}
37
37
  </div>
38
38
  </ArticleStyled>
@@ -5,5 +5,4 @@ export interface ArticleProps {
5
5
  summary: string;
6
6
  id: string;
7
7
  isCategoryProductPage: boolean;
8
- readMoreText: string;
9
8
  }
@@ -5,5 +5,4 @@ export interface ArticleProps {
5
5
  summary: string
6
6
  id: string
7
7
  isCategoryProductPage: boolean
8
- readMoreText: string
9
8
  }
@@ -2,11 +2,11 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Button } from '../../atoms/Button';
3
3
  import { ContinueEditingBannerStyled } from './ContinueEditingBanner.styled';
4
4
  // import './ContinueEditingBanner.scss'
5
- export const ContinueEditingBanner = ({ latestApplicationInProgress, editFormClicked, tagLine, title, token, buttonLabel }) => {
5
+ export const ContinueEditingBanner = ({ latestApplicationInProgress, editFormClicked, tagLine, title, token }) => {
6
6
  if (latestApplicationInProgress == null || token.length === 0) {
7
7
  return null;
8
8
  }
9
- return (_jsx(ContinueEditingBannerStyled, { className: 'continue-banner', children: _jsxs("div", { className: 'continue-banner__wrapper wrapper', children: [_jsx("span", { className: 'continue-banner__title', children: title }), _jsx("span", { className: 'continue-banner__tagline', children: tagLine }), _jsx(Button, { label: buttonLabel, dataQa: 'continue-editing-banner-button', noLink: true, onClick: () => {
9
+ return (_jsx(ContinueEditingBannerStyled, { className: 'continue-banner', children: _jsxs("div", { className: 'continue-banner__wrapper wrapper', children: [_jsx("span", { className: 'continue-banner__title', children: title }), _jsx("span", { className: 'continue-banner__tagline', children: tagLine }), _jsx(Button, { label: 'Complete It Today', dataQa: 'continue-editing-banner-button', noLink: true, onClick: () => {
10
10
  if (editFormClicked != null) {
11
11
  editFormClicked(latestApplicationInProgress);
12
12
  }
@@ -10,8 +10,7 @@ export const ContinueEditingBanner: React.FC<ContinueEditingBannerProps> = ({
10
10
  editFormClicked,
11
11
  tagLine,
12
12
  title,
13
- token,
14
- buttonLabel
13
+ token
15
14
  }) => {
16
15
  if (latestApplicationInProgress == null || token.length === 0) {
17
16
  return null
@@ -23,7 +22,7 @@ export const ContinueEditingBanner: React.FC<ContinueEditingBannerProps> = ({
23
22
  <span className='continue-banner__title'>{title}</span>
24
23
  <span className='continue-banner__tagline'>{tagLine}</span>
25
24
  <Button
26
- label={buttonLabel}
25
+ label='Complete It Today'
27
26
  dataQa='continue-editing-banner-button'
28
27
  noLink
29
28
  onClick={() => {
@@ -16,6 +16,5 @@ export interface ContinueEditingBannerProps {
16
16
  token: string;
17
17
  tagLine: string;
18
18
  title: string;
19
- buttonLabel: string;
20
19
  }
21
20
  export {};
@@ -18,5 +18,4 @@ export interface ContinueEditingBannerProps {
18
18
  token: string
19
19
  tagLine: string
20
20
  title: string
21
- buttonLabel: string
22
21
  }
@@ -18,18 +18,18 @@ const CountDownMessage = ({ noImg = false, text, time, centered = false }) => {
18
18
  };
19
19
  useEffect(() => {
20
20
  window.removeEventListener('scroll', handleScroll);
21
- if (isMobile || isTablet) {
21
+ if (isTablet) {
22
22
  window.addEventListener('scroll', handleScroll);
23
23
  }
24
24
  return () => {
25
25
  window.removeEventListener('scroll', handleScroll);
26
26
  };
27
- }, [isMobile, isTablet]);
27
+ }, [isTablet]);
28
28
  const messageInformationHtml = _jsx(MessageInformation, { noImg: noImg, text: text, time: time, centered: centered });
29
29
  const classCountDownMessageFixed = classNames({
30
30
  'count-down-message-fixed': true,
31
- 'count-down-message-fixed--show': scrollSuperateCountDown
31
+ 'count-down-message-fixed--show': scrollSuperateCountDown || isMobile
32
32
  });
33
- return (_jsxs(_Fragment, { children: [_jsx(CountDownMessageStyled, { className: `count-down-message ${noImg && 'extra-margin'}`, ref: countDownRef, children: messageInformationHtml }), _jsx(CountDownMessageStyled, { className: classCountDownMessageFixed, children: messageInformationHtml })] }));
33
+ return (_jsxs(_Fragment, { children: [!isMobile && (_jsx(CountDownMessageStyled, { className: `count-down-message ${noImg && 'extra-margin'}`, ref: countDownRef, children: messageInformationHtml })), _jsx(CountDownMessageStyled, { className: classCountDownMessageFixed, children: messageInformationHtml })] }));
34
34
  };
35
35
  export default CountDownMessage;
@@ -24,27 +24,29 @@ const CountDownMessage: FC<CountDownMessageProps> = ({ noImg = false, text, time
24
24
  useEffect(() => {
25
25
  window.removeEventListener('scroll', handleScroll)
26
26
 
27
- if (isMobile || isTablet) {
27
+ if (isTablet) {
28
28
  window.addEventListener('scroll', handleScroll)
29
29
  }
30
30
 
31
31
  return () => {
32
32
  window.removeEventListener('scroll', handleScroll)
33
33
  }
34
- }, [isMobile, isTablet])
34
+ }, [isTablet])
35
35
 
36
36
  const messageInformationHtml = <MessageInformation noImg={noImg} text={text} time={time} centered={centered} />
37
37
 
38
38
  const classCountDownMessageFixed = classNames({
39
39
  'count-down-message-fixed': true,
40
- 'count-down-message-fixed--show': scrollSuperateCountDown
40
+ 'count-down-message-fixed--show': scrollSuperateCountDown || isMobile
41
41
  })
42
42
 
43
43
  return (
44
44
  <>
45
- <CountDownMessageStyled className={`count-down-message ${noImg && 'extra-margin'}`} ref={countDownRef}>
46
- {messageInformationHtml}
47
- </CountDownMessageStyled>
45
+ {!isMobile && (
46
+ <CountDownMessageStyled className={`count-down-message ${noImg && 'extra-margin'}`} ref={countDownRef}>
47
+ {messageInformationHtml}
48
+ </CountDownMessageStyled>
49
+ )}
48
50
 
49
51
  <CountDownMessageStyled className={classCountDownMessageFixed}>{messageInformationHtml}</CountDownMessageStyled>
50
52
  </>
@@ -2,6 +2,6 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { EmailContactBox, PhoneContactBoxDesktop } from '../../molecules';
3
3
  import { Button } from '../../atoms';
4
4
  import { ContactJumbotronStyled } from './ContactJumbotron.styled';
5
- export const ContactJumbotron = ({ phoneBoxDesktopProps, emailContactBoxProps, faqsTitle, visitFaqPageLabel, children, isJonSnow = false }) => {
6
- return (_jsxs(ContactJumbotronStyled, { children: [!isJonSnow && _jsx(PhoneContactBoxDesktop, { ...phoneBoxDesktopProps }), _jsx("h2", { className: 'contact__text__title sans-serif', children: faqsTitle }), _jsx("div", { className: 'contact__text__subtitle sans-serif', children: children }), !isJonSnow && (_jsx(Button, { givenClass: 'faq-button', color: 'secondary', label: visitFaqPageLabel, link: '/faqs/', dataQa: 'visitFaq' })), _jsx(EmailContactBox, { ...emailContactBoxProps })] }));
5
+ export const ContactJumbotron = ({ phoneBoxDesktopProps, emailContactBoxProps, faqsTitle, children, isJonSnow = false }) => {
6
+ return (_jsxs(ContactJumbotronStyled, { children: [!isJonSnow && _jsx(PhoneContactBoxDesktop, { ...phoneBoxDesktopProps }), _jsx("h2", { className: 'contact__text__title sans-serif', children: faqsTitle }), _jsx("div", { className: 'contact__text__subtitle sans-serif', children: children }), !isJonSnow && (_jsx(Button, { givenClass: 'faq-button', color: 'secondary', label: 'Visit FAQ Page', link: '/faqs/', dataQa: 'visitFaq' })), _jsx(EmailContactBox, { ...emailContactBoxProps })] }));
7
7
  };
@@ -9,7 +9,6 @@ export const ContactJumbotron: React.FC<ContactJumbotronProps> = ({
9
9
  phoneBoxDesktopProps,
10
10
  emailContactBoxProps,
11
11
  faqsTitle,
12
- visitFaqPageLabel,
13
12
  children,
14
13
  isJonSnow = false
15
14
  }) => {
@@ -22,7 +21,7 @@ export const ContactJumbotron: React.FC<ContactJumbotronProps> = ({
22
21
  <Button
23
22
  givenClass='faq-button'
24
23
  color='secondary'
25
- label={visitFaqPageLabel}
24
+ label={'Visit FAQ Page'}
26
25
  link={'/faqs/'}
27
26
  dataQa={'visitFaq'}
28
27
  />
@@ -4,7 +4,6 @@ export interface ContactJumbotronProps {
4
4
  phoneBoxDesktopProps: PhoneContactBoxDesktopProps;
5
5
  emailContactBoxProps: EmailContactBoxProps;
6
6
  faqsTitle: string;
7
- visitFaqPageLabel: string;
8
7
  children: React.ReactNode;
9
8
  isJonSnow?: boolean;
10
9
  }
@@ -6,7 +6,6 @@ export interface ContactJumbotronProps {
6
6
  phoneBoxDesktopProps: PhoneContactBoxDesktopProps
7
7
  emailContactBoxProps: EmailContactBoxProps
8
8
  faqsTitle: string
9
- visitFaqPageLabel: string
10
9
  children: React.ReactNode
11
10
  isJonSnow?: boolean
12
11
  }
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Button, RichTextStrapi } from '../../atoms';
3
3
  import { CookiePolicyBarStyled } from './CookiePolicyBar.styled';
4
- export const CookiePolicyBar = ({ clickFunc, text, buttonText }) => {
5
- return (_jsxs(CookiePolicyBarStyled, { children: [_jsx(RichTextStrapi, { html: text, className: 'cookie-policy-bar__text sans-serif --extra-small' }), _jsx(Button, { dataQa: '', givenClass: 'accept-cookies-button', noLink: true, color: 'primary3', label: buttonText, onClick: clickFunc })] }));
4
+ export const CookiePolicyBar = ({ clickFunc, text }) => {
5
+ return (_jsxs(CookiePolicyBarStyled, { children: [_jsx(RichTextStrapi, { html: text, className: 'cookie-policy-bar__text sans-serif --extra-small' }), _jsx(Button, { dataQa: '', givenClass: 'accept-cookies-button', noLink: true, color: 'primary3', label: 'Accept Cookies', onClick: clickFunc })] }));
6
6
  };
@@ -4,7 +4,7 @@ import { Button, RichTextStrapi } from '../../atoms'
4
4
  import { type CookiePolicyBarProps } from './CookiePolicyBarProps'
5
5
  import { CookiePolicyBarStyled } from './CookiePolicyBar.styled'
6
6
 
7
- export const CookiePolicyBar: FC<CookiePolicyBarProps> = ({ clickFunc, text, buttonText }) => {
7
+ export const CookiePolicyBar: FC<CookiePolicyBarProps> = ({ clickFunc, text }) => {
8
8
  return (
9
9
  <CookiePolicyBarStyled>
10
10
  <RichTextStrapi html={text} className='cookie-policy-bar__text sans-serif --extra-small' />
@@ -13,7 +13,7 @@ export const CookiePolicyBar: FC<CookiePolicyBarProps> = ({ clickFunc, text, but
13
13
  givenClass='accept-cookies-button'
14
14
  noLink
15
15
  color='primary3'
16
- label={buttonText}
16
+ label={'Accept Cookies'}
17
17
  onClick={clickFunc}
18
18
  />
19
19
  </CookiePolicyBarStyled>
@@ -1,5 +1,4 @@
1
1
  export interface CookiePolicyBarProps {
2
2
  clickFunc: () => void;
3
3
  text: string;
4
- buttonText: string;
5
4
  }
@@ -1,5 +1,4 @@
1
1
  export interface CookiePolicyBarProps {
2
2
  clickFunc: () => void
3
3
  text: string
4
- buttonText: string
5
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "5.33.15",
3
+ "version": "5.34.0",
4
4
  "license": "ISC",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",