@npm_leadtech/legal-lib-components 5.31.42 → 5.32.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.
- package/dist/src/components/molecules/AccordionItem/AccordionItem.styled.js +3 -2
- package/dist/src/components/molecules/AccordionItem/AccordionItem.styled.ts +3 -2
- package/dist/src/components/molecules/CountDownMessage/CountDownMessage.js +4 -4
- package/dist/src/components/molecules/CountDownMessage/CountDownMessage.tsx +6 -8
- package/dist/src/components/organisms/CardFunctionality/CardFunctionality.js +3 -1
- package/dist/src/components/organisms/CardFunctionality/CardFunctionality.styled.js +5 -0
- package/dist/src/components/organisms/CardFunctionality/CardFunctionality.styled.ts +5 -0
- package/dist/src/components/organisms/CardFunctionality/CardFunctionality.tsx +9 -1
- package/dist/src/components/organisms/CardFunctionality/CardFunctionalityProps.d.ts +1 -0
- package/dist/src/components/organisms/CardFunctionality/CardFunctionalityProps.ts +1 -0
- package/dist/src/components/sections/FunctionalityCardsSection/FunctionalityCardsSection.js +0 -1
- package/dist/src/components/sections/FunctionalityCardsSection/FunctionalityCardsSection.styled.js +1 -3
- package/dist/src/components/sections/FunctionalityCardsSection/FunctionalityCardsSection.styled.ts +1 -3
- package/dist/src/components/sections/FunctionalityCardsSection/FunctionalityCardsSection.tsx +0 -1
- package/package.json +2 -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:
|
|
32
|
+
line-height: 22px;
|
|
33
33
|
letter-spacing: -0.3px;
|
|
34
34
|
|
|
35
35
|
&.--success {
|
|
@@ -48,9 +48,10 @@ 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:
|
|
51
|
+
font-size: 18px;
|
|
52
52
|
font-style: normal;
|
|
53
53
|
font-weight: 700;
|
|
54
|
+
line-height: 24px;
|
|
54
55
|
letter-spacing: -0.3px;
|
|
55
56
|
|
|
56
57
|
&.--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:
|
|
33
|
+
line-height: 22px;
|
|
34
34
|
letter-spacing: -0.3px;
|
|
35
35
|
|
|
36
36
|
&.--success {
|
|
@@ -49,9 +49,10 @@ 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:
|
|
52
|
+
font-size: 18px;
|
|
53
53
|
font-style: normal;
|
|
54
54
|
font-weight: 700;
|
|
55
|
+
line-height: 24px;
|
|
55
56
|
letter-spacing: -0.3px;
|
|
56
57
|
|
|
57
58
|
&.--locked {
|
|
@@ -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 (isTablet) {
|
|
21
|
+
if (isMobile || isTablet) {
|
|
22
22
|
window.addEventListener('scroll', handleScroll);
|
|
23
23
|
}
|
|
24
24
|
return () => {
|
|
25
25
|
window.removeEventListener('scroll', handleScroll);
|
|
26
26
|
};
|
|
27
|
-
}, [isTablet]);
|
|
27
|
+
}, [isMobile, 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
|
|
32
32
|
});
|
|
33
|
-
return (_jsxs(_Fragment, { children: [
|
|
33
|
+
return (_jsxs(_Fragment, { children: [_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,29 +24,27 @@ const CountDownMessage: FC<CountDownMessageProps> = ({ noImg = false, text, time
|
|
|
24
24
|
useEffect(() => {
|
|
25
25
|
window.removeEventListener('scroll', handleScroll)
|
|
26
26
|
|
|
27
|
-
if (isTablet) {
|
|
27
|
+
if (isMobile || isTablet) {
|
|
28
28
|
window.addEventListener('scroll', handleScroll)
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
return () => {
|
|
32
32
|
window.removeEventListener('scroll', handleScroll)
|
|
33
33
|
}
|
|
34
|
-
}, [isTablet])
|
|
34
|
+
}, [isMobile, 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
|
|
41
41
|
})
|
|
42
42
|
|
|
43
43
|
return (
|
|
44
44
|
<>
|
|
45
|
-
{
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
</CountDownMessageStyled>
|
|
49
|
-
)}
|
|
45
|
+
<CountDownMessageStyled className={`count-down-message ${noImg && 'extra-margin'}`} ref={countDownRef}>
|
|
46
|
+
{messageInformationHtml}
|
|
47
|
+
</CountDownMessageStyled>
|
|
50
48
|
|
|
51
49
|
<CountDownMessageStyled className={classCountDownMessageFixed}>{messageInformationHtml}</CountDownMessageStyled>
|
|
52
50
|
</>
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Button, Tag } from '../../atoms';
|
|
3
3
|
import { CardFunctionalityStyled } from './CardFunctionality.styled';
|
|
4
|
-
export const CardFunctionality = ({ icon, title, text, tags, cta }) => {
|
|
4
|
+
export const CardFunctionality = ({ icon, title, text, tags, cta, isHidden = false }) => {
|
|
5
|
+
if (isHidden)
|
|
6
|
+
return null;
|
|
5
7
|
return (_jsxs(CardFunctionalityStyled, { children: [_jsxs("div", { className: 'content-tags', children: [_jsxs("div", { className: 'content', children: [_jsxs("div", { className: 'header', children: [_jsx("div", { className: 'icon', children: icon }), _jsx("p", { className: 'title', children: title })] }), _jsx("div", { title: text, className: 'text', children: text })] }), _jsx("div", { className: 'tags', children: tags.map((tag) => (_jsx(Tag, { ...tag }, tag.id))) })] }), _jsx(Button, { ...cta, givenClass: 'cta-card' })] }));
|
|
6
8
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { device } from '../../../globalStyles/breakpoints';
|
|
1
2
|
import styled from 'styled-components';
|
|
2
3
|
export const CardFunctionalityStyled = styled.article `
|
|
3
4
|
border-radius: var(--global-border-radius);
|
|
@@ -6,6 +7,10 @@ export const CardFunctionalityStyled = styled.article `
|
|
|
6
7
|
flex-direction: column;
|
|
7
8
|
gap: var(--global-gap);
|
|
8
9
|
padding: 1em;
|
|
10
|
+
width: 100%;
|
|
11
|
+
@media ${device.laptop} {
|
|
12
|
+
width: 50%;
|
|
13
|
+
}
|
|
9
14
|
|
|
10
15
|
.content-tags {
|
|
11
16
|
display: flex;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { device } from '../../../globalStyles/breakpoints'
|
|
1
2
|
import styled from 'styled-components'
|
|
2
3
|
|
|
3
4
|
export const CardFunctionalityStyled = styled.article`
|
|
@@ -7,6 +8,10 @@ export const CardFunctionalityStyled = styled.article`
|
|
|
7
8
|
flex-direction: column;
|
|
8
9
|
gap: var(--global-gap);
|
|
9
10
|
padding: 1em;
|
|
11
|
+
width: 100%;
|
|
12
|
+
@media ${device.laptop} {
|
|
13
|
+
width: 50%;
|
|
14
|
+
}
|
|
10
15
|
|
|
11
16
|
.content-tags {
|
|
12
17
|
display: flex;
|
|
@@ -4,7 +4,15 @@ import { Button, Tag } from '../../atoms'
|
|
|
4
4
|
import { type CardFunctionalityProps } from './CardFunctionalityProps'
|
|
5
5
|
import { CardFunctionalityStyled } from './CardFunctionality.styled'
|
|
6
6
|
|
|
7
|
-
export const CardFunctionality: React.FC<CardFunctionalityProps> = ({
|
|
7
|
+
export const CardFunctionality: React.FC<CardFunctionalityProps> = ({
|
|
8
|
+
icon,
|
|
9
|
+
title,
|
|
10
|
+
text,
|
|
11
|
+
tags,
|
|
12
|
+
cta,
|
|
13
|
+
isHidden = false
|
|
14
|
+
}) => {
|
|
15
|
+
if (isHidden) return null
|
|
8
16
|
return (
|
|
9
17
|
<CardFunctionalityStyled>
|
|
10
18
|
<div className='content-tags'>
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { CardFunctionality } from '../../organisms';
|
|
3
3
|
import { FunctionalityCardsSectionStyled } from './FunctionalityCardsSection.styled';
|
|
4
|
-
// import './FunctionalityCardsSection.scss'
|
|
5
4
|
export const FunctionalityCardsSection = ({ cards = [] }) => {
|
|
6
5
|
if (cards.length === 0)
|
|
7
6
|
return null;
|
package/dist/src/components/sections/FunctionalityCardsSection/FunctionalityCardsSection.styled.js
CHANGED
|
@@ -3,12 +3,10 @@ import styled from 'styled-components';
|
|
|
3
3
|
export const FunctionalityCardsSectionStyled = styled.section `
|
|
4
4
|
display: flex;
|
|
5
5
|
flex-direction: column;
|
|
6
|
-
gap:
|
|
7
|
-
margin-bottom: 2rem;
|
|
6
|
+
gap: var(--global-gap);
|
|
8
7
|
width: 100%;
|
|
9
8
|
|
|
10
9
|
@media ${device.laptop} {
|
|
11
10
|
flex-direction: row;
|
|
12
|
-
width: 50%;
|
|
13
11
|
}
|
|
14
12
|
`;
|
package/dist/src/components/sections/FunctionalityCardsSection/FunctionalityCardsSection.styled.ts
CHANGED
|
@@ -4,12 +4,10 @@ import styled from 'styled-components'
|
|
|
4
4
|
export const FunctionalityCardsSectionStyled = styled.section`
|
|
5
5
|
display: flex;
|
|
6
6
|
flex-direction: column;
|
|
7
|
-
gap:
|
|
8
|
-
margin-bottom: 2rem;
|
|
7
|
+
gap: var(--global-gap);
|
|
9
8
|
width: 100%;
|
|
10
9
|
|
|
11
10
|
@media ${device.laptop} {
|
|
12
11
|
flex-direction: row;
|
|
13
|
-
width: 50%;
|
|
14
12
|
}
|
|
15
13
|
`
|
package/dist/src/components/sections/FunctionalityCardsSection/FunctionalityCardsSection.tsx
CHANGED
|
@@ -3,7 +3,6 @@ import React from 'react'
|
|
|
3
3
|
import { CardFunctionality } from '../../organisms'
|
|
4
4
|
import { type FunctionalityCardsSectionProps } from './FunctionalityCardsSectionProps'
|
|
5
5
|
import { FunctionalityCardsSectionStyled } from './FunctionalityCardsSection.styled'
|
|
6
|
-
// import './FunctionalityCardsSection.scss'
|
|
7
6
|
|
|
8
7
|
export const FunctionalityCardsSection: React.FC<FunctionalityCardsSectionProps> = ({ cards = [] }) => {
|
|
9
8
|
if (cards.length === 0) return null
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@npm_leadtech/legal-lib-components",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.32.0",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -166,6 +166,7 @@
|
|
|
166
166
|
"./PopularDocsItem": "./dist/src/components/atoms/PopularDocsItem/index.js",
|
|
167
167
|
"./ProgressBar": "./dist/src/components/atoms/ProgressBar/index.js",
|
|
168
168
|
"./Radio": "./dist/src/components/atoms/Radio/index.js",
|
|
169
|
+
"./RatafiaLandingIcon": "./dist/src/components/atoms/RatafiaLandingIcon/index.js",
|
|
169
170
|
"./RemoveButton": "./dist/src/components/atoms/RemoveButton/index.js",
|
|
170
171
|
"./ReviewKeyFactsResultRatafia": "./dist/src/components/atoms/ReviewKeyFactsResultRatafia/index.js",
|
|
171
172
|
"./RichTextInner": "./dist/src/components/atoms/RichTextInner/index.js",
|