@npm_leadtech/legal-lib-components 5.3.14 → 5.4.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.
@@ -2354,21 +2354,6 @@ h2.react-datepicker__current-month {
2354
2354
  margin-top: 0;
2355
2355
  }
2356
2356
  }
2357
- .article .information .button-image-container {
2358
- align-items: center;
2359
- margin: 1rem 0 2rem 0;
2360
- display: flex;
2361
- }
2362
- .article .information .button-image-container .thinner-letter {
2363
- font-family: "Inter", sans-serif;
2364
- font-size: 16px;
2365
- font-weight: 400;
2366
- line-height: 22px;
2367
- letter-spacing: -0.3px;
2368
- text-align: left;
2369
- margin: 0;
2370
- padding: 0 1rem 0 0;
2371
- }
2372
2357
  .base-box-group {
2373
2358
  display: block;
2374
2359
  }
@@ -2800,13 +2785,14 @@ h2.react-datepicker__current-month {
2800
2785
  }
2801
2786
  .expert-card-list {
2802
2787
  display: flex;
2803
- flex-direction: column;
2788
+ flex-flow: column;
2789
+ gap: 0 2rem;
2804
2790
  justify-content: center;
2805
2791
  margin: 2rem 0 3rem 0;
2806
2792
  }
2807
2793
  @media (min-width: 720px) {
2808
2794
  .expert-card-list {
2809
- flex-direction: row;
2795
+ flex-flow: row wrap;
2810
2796
  }
2811
2797
  }
2812
2798
  .faqItem {
@@ -5407,16 +5393,6 @@ h2.react-datepicker__current-month {
5407
5393
  max-width: 1200px;
5408
5394
  }
5409
5395
  }
5410
- .blog .blog__description {
5411
- font-family: "Inter", sans-serif;
5412
- font-size: 16px;
5413
- font-weight: 400;
5414
- line-height: 22px;
5415
- letter-spacing: -0.3px;
5416
- text-align: left;
5417
- color: #6d7275;
5418
- margin: 1rem 0 1.5rem 0;
5419
- }
5420
5396
  .blog .blog__title {
5421
5397
  color: var(--primary-main-dark-1);
5422
5398
  }
@@ -5425,15 +5401,6 @@ h2.react-datepicker__current-month {
5425
5401
  margin-bottom: 3rem;
5426
5402
  }
5427
5403
  }
5428
- .blog .blog__title.category-product-title {
5429
- margin-bottom: 0;
5430
- font-family: "Inter", sans-serif;
5431
- font-size: 28px;
5432
- font-weight: 700;
5433
- line-height: 32px;
5434
- letter-spacing: -0.3px;
5435
- text-align: left;
5436
- }
5437
5404
  .blog .cta-button {
5438
5405
  width: 100%;
5439
5406
  margin-top: 3rem;
@@ -5539,7 +5506,6 @@ h2.react-datepicker__current-month {
5539
5506
  line-height: 42px;
5540
5507
  letter-spacing: -0.3px;
5541
5508
  text-align: center;
5542
- margin: 0 auto 5rem;
5543
5509
  width: 90%;
5544
5510
  transform: translateY(50px);
5545
5511
  }
@@ -1,8 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import ArrowRight from '../../../../images/svg/arrow-right-24px-outlined.svg';
3
2
  import { Button } from '../../atoms';
4
3
  // import './Article.scss'
5
- const Article = ({ imageUrl, title, articleUrl, summary, isCategoryProductPage }) => {
6
- return (_jsxs("div", { className: 'article', children: [_jsx("img", { src: imageUrl, className: 'image', loading: 'lazy', alt: title }), _jsxs("div", { className: '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 }))] })] }));
4
+ const Article = ({ imageUrl, title, articleUrl, summary }) => {
5
+ return (_jsxs("div", { className: 'article', children: [_jsx("img", { src: imageUrl, className: 'image', loading: 'lazy', alt: title }), _jsxs("div", { className: '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 }), _jsx(Button, { color: 'tertiary', label: 'Read more', dataQa: 'article-read-more', link: articleUrl, isExternal: true })] })] }));
7
6
  };
8
7
  export default Article;
@@ -62,22 +62,5 @@
62
62
  margin-top: 0;
63
63
  }
64
64
  }
65
-
66
- .button-image-container {
67
- align-items: center;
68
- margin: 1rem 0 2rem 0;
69
- display: flex;
70
-
71
- .thinner-letter {
72
- font-family: $font-sans;
73
- font-size: 16px;
74
- font-weight: 400;
75
- line-height: 22px;
76
- letter-spacing: -0.3px;
77
- text-align: left;
78
- margin: 0;
79
- padding: 0 1rem 0 0;
80
- }
81
- }
82
65
  }
83
66
  }
@@ -1,11 +1,10 @@
1
1
  import React, { type FC } from 'react'
2
2
 
3
- import ArrowRight from '../../../../images/svg/arrow-right-24px-outlined.svg'
4
3
  import { type ArticleProps } from './ArticleProps.types'
5
4
  import { Button } from '../../atoms'
6
5
  // import './Article.scss'
7
6
 
8
- const Article: FC<ArticleProps> = ({ imageUrl, title, articleUrl, summary, isCategoryProductPage }) => {
7
+ const Article: FC<ArticleProps> = ({ imageUrl, title, articleUrl, summary }) => {
9
8
  return (
10
9
  <div className='article'>
11
10
  <img src={imageUrl} className='image' loading='lazy' alt={title} />
@@ -14,21 +13,7 @@ const Article: FC<ArticleProps> = ({ imageUrl, title, articleUrl, summary, isCat
14
13
  <p className='title sans-serif --big'>{title} </p>
15
14
  </a>
16
15
  <div className='summary'>{summary}</div>
17
- {isCategoryProductPage ? (
18
- <div className='button-image-container'>
19
- <Button
20
- givenClass='thinner-letter'
21
- color='tertiary'
22
- label={'Read more'}
23
- dataQa='article-read-more'
24
- link={articleUrl}
25
- isExternal
26
- />
27
- <img className='article__arrow-right' src={ArrowRight} alt=''></img>
28
- </div>
29
- ) : (
30
- <Button color='tertiary' label={'Read more'} dataQa='article-read-more' link={articleUrl} isExternal />
31
- )}
16
+ <Button color='tertiary' label={'Read more'} dataQa='article-read-more' link={articleUrl} isExternal />
32
17
  </div>
33
18
  </div>
34
19
  )
@@ -4,5 +4,4 @@ export interface ArticleProps {
4
4
  articleUrl: string;
5
5
  summary: string;
6
6
  id: string;
7
- isCategoryProductPage: boolean;
8
7
  }
@@ -4,5 +4,4 @@ export interface ArticleProps {
4
4
  articleUrl: string
5
5
  summary: string
6
6
  id: string
7
- isCategoryProductPage: boolean
8
7
  }
@@ -3,11 +3,12 @@
3
3
 
4
4
  .expert-card-list {
5
5
  display: flex;
6
- flex-direction: column;
6
+ flex-flow: column;
7
+ gap: 0 2rem;
7
8
  justify-content: center;
8
9
  margin: 2rem 0 3rem 0;
9
10
 
10
11
  @include landscape-tablets {
11
- flex-direction: row;
12
+ flex-flow: row wrap;
12
13
  }
13
14
  }
@@ -1,9 +1,9 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Article } from '../../molecules';
3
3
  // import './ArticlesList.scss'
4
- const ArticlesList = ({ articles = [], isCategoryProductPage = false }) => {
4
+ const ArticlesList = ({ articles = [] }) => {
5
5
  if (articles?.length === 0)
6
6
  return null;
7
- return (_jsx("div", { className: 'articles_wrapper', children: articles.map((article) => (_jsx(Article, { ...article, isCategoryProductPage: isCategoryProductPage }, `article_${article?.id}`))) }));
7
+ return (_jsx("div", { className: 'articles_wrapper', children: articles.map((article) => (_jsx(Article, { ...article }, `article_${article?.id}`))) }));
8
8
  };
9
9
  export default ArticlesList;
@@ -5,13 +5,13 @@ import { Article, type ArticleProps } from '../../molecules'
5
5
  import { type ArticlesListProps } from './ArticlesListProps.types'
6
6
  // import './ArticlesList.scss'
7
7
 
8
- const ArticlesList: FC<ArticlesListProps> = ({ articles = [], isCategoryProductPage = false }) => {
8
+ const ArticlesList: FC<ArticlesListProps> = ({ articles = [] }) => {
9
9
  if (articles?.length === 0) return null
10
10
 
11
11
  return (
12
12
  <div className='articles_wrapper'>
13
13
  {articles.map((article: ArticleProps) => (
14
- <Article key={`article_${article?.id}`} {...article} isCategoryProductPage={isCategoryProductPage} />
14
+ <Article key={`article_${article?.id}`} {...article} />
15
15
  ))}
16
16
  </div>
17
17
  )
@@ -1,5 +1,4 @@
1
1
  import { type ArticleProps } from '../../molecules';
2
2
  export interface ArticlesListProps {
3
3
  articles: ArticleProps[];
4
- isCategoryProductPage?: boolean;
5
4
  }
@@ -2,5 +2,4 @@ import { type ArticleProps } from '../../molecules'
2
2
 
3
3
  export interface ArticlesListProps {
4
4
  articles: ArticleProps[]
5
- isCategoryProductPage?: boolean
6
5
  }
@@ -2,10 +2,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { ArticlesList } from '../../organisms';
3
3
  import { Button } from '../../atoms';
4
4
  // import './BlogSection.scss'
5
- const BlogSection = ({ blogTitle, blogCta = null, blogDescription = null, articles }) => {
5
+ const BlogSection = ({ blogTitle, blogCta, articles }) => {
6
6
  if (articles.articles?.length === 0)
7
- return;
8
- const categoryProductTitle = !!blogDescription;
9
- return (_jsxs("div", { className: 'blog', children: [_jsx("h2", { className: `serif --super-large blog__title ${categoryProductTitle ? 'category-product-title' : ''}`, children: blogTitle }), blogDescription && _jsx("p", { className: 'blog__description', children: blogDescription }), _jsx(ArticlesList, { articles: articles.articles, isCategoryProductPage: categoryProductTitle }), blogCta && _jsx(Button, { dataQa: '', color: 'secondary', label: blogCta, givenClass: 'cta-button', link: '/articles' })] }));
7
+ return null;
8
+ return (_jsxs("div", { className: 'blog', children: [_jsx("h2", { className: 'serif --super-large blog__title', children: blogTitle }), _jsx(ArticlesList, { articles: articles.articles }), _jsx(Button, { dataQa: '', color: 'secondary', label: blogCta, givenClass: 'cta-button', link: '/articles' })] }));
10
9
  };
11
10
  export default BlogSection;
@@ -14,33 +14,12 @@
14
14
  max-width: $lg;
15
15
  }
16
16
 
17
- .blog__description {
18
- font-family: $font-sans;
19
- font-size: 16px;
20
- font-weight: 400;
21
- line-height: 22px;
22
- letter-spacing: -0.3px;
23
- text-align: left;
24
- color: #6d7275;
25
- margin: 1rem 0 1.5rem 0;
26
- }
27
-
28
17
  .blog__title {
29
18
  color: var(--primary-main-dark-1);
30
19
 
31
20
  @include laptop {
32
21
  margin-bottom: 3rem;
33
22
  }
34
-
35
- &.category-product-title {
36
- margin-bottom: 0;
37
- font-family: $font-sans;
38
- font-size: 28px;
39
- font-weight: 700;
40
- line-height: 32px;
41
- letter-spacing: -0.3px;
42
- text-align: left;
43
- }
44
23
  }
45
24
 
46
25
  .cta-button {
@@ -6,18 +6,14 @@ import { type BlogSectionProps } from './BlogSectionProps.types'
6
6
  import { Button } from '../../atoms'
7
7
  // import './BlogSection.scss'
8
8
 
9
- const BlogSection: FC<BlogSectionProps> = ({ blogTitle, blogCta = null, blogDescription = null, articles }) => {
10
- if (articles.articles?.length === 0) return
11
- const categoryProductTitle = !!blogDescription
9
+ const BlogSection: FC<BlogSectionProps> = ({ blogTitle, blogCta, articles }) => {
10
+ if (articles.articles?.length === 0) return null
12
11
 
13
12
  return (
14
13
  <div className={'blog'}>
15
- <h2 className={`serif --super-large blog__title ${categoryProductTitle ? 'category-product-title' : ''}`}>
16
- {blogTitle}
17
- </h2>
18
- {blogDescription && <p className='blog__description'>{blogDescription}</p>}
19
- <ArticlesList articles={articles.articles} isCategoryProductPage={categoryProductTitle} />
20
- {blogCta && <Button dataQa='' color='secondary' label={blogCta} givenClass='cta-button' link={'/articles'} />}
14
+ <h2 className={'serif --super-large blog__title'}>{blogTitle}</h2>
15
+ <ArticlesList articles={articles.articles} />
16
+ <Button dataQa='' color='secondary' label={blogCta} givenClass='cta-button' link={'/articles'} />
21
17
  </div>
22
18
  )
23
19
  }
@@ -1,7 +1,6 @@
1
1
  import { type ArticlesListProps } from '../../organisms';
2
2
  export interface BlogSectionProps {
3
3
  blogTitle: string;
4
- blogCta?: string | null;
5
- blogDescription?: string | null;
4
+ blogCta: string;
6
5
  articles: ArticlesListProps;
7
6
  }
@@ -2,7 +2,6 @@ import { type ArticlesListProps } from '../../organisms'
2
2
 
3
3
  export interface BlogSectionProps {
4
4
  blogTitle: string
5
- blogCta?: string | null
6
- blogDescription?: string | null
5
+ blogCta: string
7
6
  articles: ArticlesListProps
8
7
  }
@@ -15,7 +15,6 @@
15
15
  line-height: 42px;
16
16
  letter-spacing: -0.3px;
17
17
  text-align: center;
18
- margin: 0 auto 5rem;
19
18
  width: 90%;
20
19
  transform: translateY(50px);
21
20
 
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable @typescript-eslint/no-explicit-any */
2
2
  declare module '*.svg' {
3
- const content: string
3
+ const content: any
4
4
  export default content
5
5
  }
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "5.3.14",
3
+ "version": "5.4.0",
4
4
  "license": "ISC",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,3 +0,0 @@
1
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M8.70531 0.705315C8.31578 0.31578 7.68422 0.31578 7.29468 0.705316C6.9054 1.0946 6.90511 1.72568 7.29405 2.11531L12.17 7H0.999999C0.447714 7 0 7.44772 0 8C0 8.55229 0.447715 9 1 9H12.17L7.29405 13.8847C6.90511 14.2743 6.9054 14.9054 7.29468 15.2947C7.68422 15.6842 8.31578 15.6842 8.70532 15.2947L15.2929 8.70711C15.6834 8.31658 15.6834 7.68342 15.2929 7.29289L8.70531 0.705315Z" fill="#078080"/>
3
- </svg>