@npm_leadtech/legal-lib-components 5.79.0 → 5.79.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.
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { ExpertCardStyled } from './ExpertCard.styled';
3
3
  const ExpertCard = ({ title, url, description, image }) => {
4
- return (_jsx(ExpertCardStyled, { className: 'expert-card', children: _jsxs("div", { className: 'expert-card__box', children: [_jsx("div", { className: 'expert-card__image', children: image }), url != null && (_jsx("a", { className: 'expert-card__title', href: url, children: title })), url == null && _jsx("p", { className: 'expert-card__title', children: title }), _jsx("p", { className: 'expert-card__description', children: description })] }) }));
4
+ return (_jsx(ExpertCardStyled, { className: 'expert-card', children: _jsxs("div", { className: 'expert-card__box', children: [_jsx("div", { className: 'expert-card__image', children: image }), _jsxs("div", { className: 'expert-card__texts', children: [url != null && (_jsx("a", { className: 'expert-card__title', href: url, children: title })), url == null && _jsx("p", { className: 'expert-card__title', children: title }), _jsx("p", { className: 'expert-card__description', children: description })] })] }) }));
5
5
  };
6
6
  export default ExpertCard;
@@ -1,66 +1,61 @@
1
- import { device } from '../../../globalStyles/breakpoints';
2
1
  import styled from 'styled-components';
3
2
  export const ExpertCardStyled = styled.div `
4
3
  display: flex;
5
4
  align-items: center;
6
5
  justify-content: center;
7
- margin-top: 10rem;
8
-
9
- &:first-child {
10
- margin-top: 5rem;
11
- }
12
-
13
- @media ${device['landscape-tablets']} {
14
- margin-top: 5rem;
15
- }
16
6
 
17
7
  .expert-card {
18
8
  &__box {
19
9
  background-color: white;
20
- border-radius: 0.3rem;
10
+ border-radius: 1rem;
21
11
  box-shadow: var(--box-shadow-container);
22
- padding: 7rem 2rem 0 2rem;
23
- min-height: 13rem;
24
12
  display: flex;
25
- flex-direction: column;
13
+ flex-direction: row;
26
14
  align-items: center;
27
15
  justify-content: flex-start;
28
- width: 17.625rem;
29
- margin-left: 0;
30
16
 
31
- @media ${device['landscape-tablets']} {
32
- margin-left: 2rem;
33
- }
17
+ width: 383px;
18
+ padding: 16px;
19
+ align-items: center;
20
+ gap: 24px;
34
21
  }
35
22
 
36
23
  &__image {
37
- position: absolute;
38
- transform: translateY(-115%);
39
-
24
+ min-width: 117px;
40
25
  img {
41
- border-radius: 100%;
26
+ width: 117px;
27
+ height: auto;
28
+ border-radius: 8px;
42
29
  }
43
30
  }
44
31
 
32
+ &__texts {
33
+ display: flex;
34
+ flex-direction: column;
35
+ align-items: start;
36
+ justify-content: left;
37
+ }
38
+
45
39
  &__title {
46
40
  font-family: var(--font-sans);
47
41
  font-size: 18px;
48
42
  font-weight: 700;
49
43
  line-height: 1.5rem;
50
44
  letter-spacing: -0.3px;
51
- text-align: center;
52
45
  width: 75%;
53
46
  text-decoration: none;
47
+ margin-bottom: 0.6rem;
48
+ min-width: fit-content;
54
49
  }
55
50
 
56
51
  &__description {
57
52
  font-family: var(--font-sans);
53
+ color: var(--neutral-neutral-1);
58
54
  font-size: 16px;
55
+ font-style: normal;
59
56
  font-weight: 400;
60
57
  line-height: 22px;
61
58
  letter-spacing: -0.3px;
62
- text-align: center;
63
- width: 75%;
64
59
  }
65
60
  }
66
61
  `;
@@ -1,67 +1,62 @@
1
- import { device } from '../../../globalStyles/breakpoints'
2
1
  import styled from 'styled-components'
3
2
 
4
3
  export const ExpertCardStyled = styled.div`
5
4
  display: flex;
6
5
  align-items: center;
7
6
  justify-content: center;
8
- margin-top: 10rem;
9
-
10
- &:first-child {
11
- margin-top: 5rem;
12
- }
13
-
14
- @media ${device['landscape-tablets']} {
15
- margin-top: 5rem;
16
- }
17
7
 
18
8
  .expert-card {
19
9
  &__box {
20
10
  background-color: white;
21
- border-radius: 0.3rem;
11
+ border-radius: 1rem;
22
12
  box-shadow: var(--box-shadow-container);
23
- padding: 7rem 2rem 0 2rem;
24
- min-height: 13rem;
25
13
  display: flex;
26
- flex-direction: column;
14
+ flex-direction: row;
27
15
  align-items: center;
28
16
  justify-content: flex-start;
29
- width: 17.625rem;
30
- margin-left: 0;
31
17
 
32
- @media ${device['landscape-tablets']} {
33
- margin-left: 2rem;
34
- }
18
+ width: 383px;
19
+ padding: 16px;
20
+ align-items: center;
21
+ gap: 24px;
35
22
  }
36
23
 
37
24
  &__image {
38
- position: absolute;
39
- transform: translateY(-115%);
40
-
25
+ min-width: 117px;
41
26
  img {
42
- border-radius: 100%;
27
+ width: 117px;
28
+ height: auto;
29
+ border-radius: 8px;
43
30
  }
44
31
  }
45
32
 
33
+ &__texts {
34
+ display: flex;
35
+ flex-direction: column;
36
+ align-items: start;
37
+ justify-content: left;
38
+ }
39
+
46
40
  &__title {
47
41
  font-family: var(--font-sans);
48
42
  font-size: 18px;
49
43
  font-weight: 700;
50
44
  line-height: 1.5rem;
51
45
  letter-spacing: -0.3px;
52
- text-align: center;
53
46
  width: 75%;
54
47
  text-decoration: none;
48
+ margin-bottom: 0.6rem;
49
+ min-width: fit-content;
55
50
  }
56
51
 
57
52
  &__description {
58
53
  font-family: var(--font-sans);
54
+ color: var(--neutral-neutral-1);
59
55
  font-size: 16px;
56
+ font-style: normal;
60
57
  font-weight: 400;
61
58
  line-height: 22px;
62
59
  letter-spacing: -0.3px;
63
- text-align: center;
64
- width: 75%;
65
60
  }
66
61
  }
67
62
  `
@@ -8,14 +8,15 @@ const ExpertCard: FC<ExpertCardProps> = ({ title, url, description, image }) =>
8
8
  <ExpertCardStyled className='expert-card'>
9
9
  <div className='expert-card__box'>
10
10
  <div className='expert-card__image'>{image}</div>
11
- {url != null && (
12
- <a className='expert-card__title' href={url}>
13
- {title}
14
- </a>
15
- )}
16
- {url == null && <p className='expert-card__title'>{title}</p>}
17
-
18
- <p className='expert-card__description'>{description}</p>
11
+ <div className='expert-card__texts'>
12
+ {url != null && (
13
+ <a className='expert-card__title' href={url}>
14
+ {title}
15
+ </a>
16
+ )}
17
+ {url == null && <p className='expert-card__title'>{title}</p>}
18
+ <p className='expert-card__description'>{description}</p>
19
+ </div>
19
20
  </div>
20
21
  </ExpertCardStyled>
21
22
  )
@@ -9,6 +9,6 @@ export const ExpertCardListStyled = styled.div `
9
9
 
10
10
  @media ${device['landscape-tablets']} {
11
11
  flex-flow: row wrap;
12
- gap: 5rem 2rem;
12
+ gap: 2rem;
13
13
  }
14
14
  `;
@@ -10,6 +10,6 @@ export const ExpertCardListStyled = styled.div`
10
10
 
11
11
  @media ${device['landscape-tablets']} {
12
12
  flex-flow: row wrap;
13
- gap: 5rem 2rem;
13
+ gap: 2rem;
14
14
  }
15
15
  `
@@ -1,10 +1,10 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { ExpertCardList } from '../../molecules';
3
3
  import { ExpertsSectionStyled } from './ExpertsSection.styled';
4
- const ExpertsSection = ({ title, contentExpertCardList }) => {
4
+ const ExpertsSection = ({ title, description, contentExpertCardList }) => {
5
5
  if (contentExpertCardList.contentExpertCard.length === 0) {
6
6
  return null;
7
7
  }
8
- return (_jsxs(ExpertsSectionStyled, { className: 'experts-section', children: [_jsx("h2", { className: 'experts-section__title', children: title }), _jsx(ExpertCardList, { contentExpertCard: contentExpertCardList.contentExpertCard })] }));
8
+ return (_jsxs(ExpertsSectionStyled, { className: 'experts-section', children: [_jsx("h2", { className: 'experts-section__title', children: title }), _jsx("div", { className: 'experts-section__description', children: description }), _jsx(ExpertCardList, { contentExpertCard: contentExpertCardList.contentExpertCard })] }));
9
9
  };
10
10
  export default ExpertsSection;
@@ -22,5 +22,9 @@ export const ExpertsSectionStyled = styled.div `
22
22
  width: 100%;
23
23
  }
24
24
  }
25
+
26
+ &__description {
27
+ text-align: center;
28
+ }
25
29
  }
26
30
  `;
@@ -23,5 +23,9 @@ export const ExpertsSectionStyled = styled.div`
23
23
  width: 100%;
24
24
  }
25
25
  }
26
+
27
+ &__description {
28
+ text-align: center;
29
+ }
26
30
  }
27
31
  `
@@ -4,7 +4,7 @@ import { ExpertCardList } from '../../molecules'
4
4
  import { type ExpertsSectionProps } from './ExpertsSectionProps.types'
5
5
  import { ExpertsSectionStyled } from './ExpertsSection.styled'
6
6
 
7
- const ExpertsSection: FC<ExpertsSectionProps> = ({ title, contentExpertCardList }) => {
7
+ const ExpertsSection: FC<ExpertsSectionProps> = ({ title, description, contentExpertCardList }) => {
8
8
  if (contentExpertCardList.contentExpertCard.length === 0) {
9
9
  return null
10
10
  }
@@ -12,6 +12,7 @@ const ExpertsSection: FC<ExpertsSectionProps> = ({ title, contentExpertCardList
12
12
  return (
13
13
  <ExpertsSectionStyled className='experts-section'>
14
14
  <h2 className='experts-section__title'>{title}</h2>
15
+ <div className='experts-section__description'>{description}</div>
15
16
  <ExpertCardList contentExpertCard={contentExpertCardList.contentExpertCard} />
16
17
  </ExpertsSectionStyled>
17
18
  )
@@ -1,5 +1,7 @@
1
1
  import { type ExpertCardListProps } from '../../molecules/ExpertCardList';
2
+ import React from 'react';
2
3
  export interface ExpertsSectionProps {
3
4
  title: string;
5
+ description: React.ReactNode;
4
6
  contentExpertCardList: ExpertCardListProps;
5
7
  }
@@ -1,6 +1,8 @@
1
1
  import { type ExpertCardListProps } from '../../molecules/ExpertCardList'
2
+ import React from 'react'
2
3
 
3
4
  export interface ExpertsSectionProps {
4
5
  title: string
6
+ description: React.ReactNode
5
7
  contentExpertCardList: ExpertCardListProps
6
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "5.79.0",
3
+ "version": "5.79.1",
4
4
  "license": "ISC",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",