@npm_leadtech/legal-lib-components 5.42.6 → 5.42.7
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/atoms/CardPane/CardPane.styled.js +0 -1
- package/dist/src/components/atoms/CardPane/CardPane.styled.ts +0 -1
- package/dist/src/components/organisms/StepsRatafiaContent/StepsRatafiaContent.js +2 -2
- package/dist/src/components/organisms/StepsRatafiaContent/StepsRatafiaContent.tsx +2 -1
- package/dist/src/components/organisms/StepsRatafiaContent/StepsRatafiaContentProps.types.d.ts +2 -0
- package/dist/src/components/organisms/StepsRatafiaContent/StepsRatafiaContentProps.types.ts +2 -0
- package/dist/src/components/pages/EsignatureLandingPage/EsignatureLandingPage.js +3 -3
- package/dist/src/components/pages/EsignatureLandingPage/EsignatureLandingPage.tsx +7 -5
- package/dist/src/components/pages/EsignatureLandingPage/EsignatureLandingPageProps.types.d.ts +3 -2
- package/dist/src/components/pages/EsignatureLandingPage/EsignatureLandingPageProps.types.ts +3 -2
- package/dist/src/components/sections/StepsRatafiaSection/StepsRatafiaSection.js +7 -2
- package/dist/src/components/sections/StepsRatafiaSection/StepsRatafiaSection.styled.js +73 -2
- package/dist/src/components/sections/StepsRatafiaSection/StepsRatafiaSection.styled.ts +73 -2
- package/dist/src/components/sections/StepsRatafiaSection/StepsRatafiaSection.tsx +16 -6
- package/dist/src/components/sections/StepsRatafiaSection/StepsRatafiaSectionProps.types.d.ts +3 -0
- package/dist/src/components/sections/StepsRatafiaSection/StepsRatafiaSectionProps.types.ts +3 -0
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { StepRatafiaCardList } from '../../molecules';
|
|
3
3
|
import { StepsRatafiaContentStyled } from './StepsRatafiaContent.styled';
|
|
4
|
-
const StepsRatafiaContent = ({ title, steps }) => {
|
|
5
|
-
return (_jsxs(StepsRatafiaContentStyled, { children: [_jsx("h2", { className: 'sans-serif --super-large --bold-weight steps-ratafia-content__title', children: title }), _jsx(StepRatafiaCardList, { steps: steps })] }));
|
|
4
|
+
const StepsRatafiaContent = ({ title, steps, description }) => {
|
|
5
|
+
return (_jsxs(StepsRatafiaContentStyled, { children: [_jsx("h2", { className: 'sans-serif --super-large --bold-weight steps-ratafia-content__title', children: title }), _jsx("div", { children: description }), _jsx(StepRatafiaCardList, { steps: steps })] }));
|
|
6
6
|
};
|
|
7
7
|
export default StepsRatafiaContent;
|
|
@@ -4,10 +4,11 @@ import { StepRatafiaCardList } from '../../molecules'
|
|
|
4
4
|
import { type StepsRatafiaContentProps } from './StepsRatafiaContentProps.types'
|
|
5
5
|
import { StepsRatafiaContentStyled } from './StepsRatafiaContent.styled'
|
|
6
6
|
|
|
7
|
-
const StepsRatafiaContent: FC<StepsRatafiaContentProps> = ({ title, steps }) => {
|
|
7
|
+
const StepsRatafiaContent: FC<StepsRatafiaContentProps> = ({ title, steps, description }) => {
|
|
8
8
|
return (
|
|
9
9
|
<StepsRatafiaContentStyled>
|
|
10
10
|
<h2 className='sans-serif --super-large --bold-weight steps-ratafia-content__title'>{title}</h2>
|
|
11
|
+
<div>{description}</div>
|
|
11
12
|
<StepRatafiaCardList steps={steps} />
|
|
12
13
|
</StepsRatafiaContentStyled>
|
|
13
14
|
)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { FaqSection, JumbotronRatafiaSection } from '../../sections';
|
|
3
|
-
export const EsignatureLandingPage = ({
|
|
4
|
-
return (_jsxs(_Fragment, { children: [_jsx(JumbotronRatafiaSection, { content:
|
|
2
|
+
import { FaqSection, JumbotronRatafiaSection, StepsRatafiaSection } from '../../sections';
|
|
3
|
+
export const EsignatureLandingPage = ({ jumbotronSectionProps, stepsSectionProps, trustPilotBox, faqGroupProps }) => {
|
|
4
|
+
return (_jsxs(_Fragment, { children: [_jsx(JumbotronRatafiaSection, { content: jumbotronSectionProps.content, alternativeStyles: jumbotronSectionProps.alternativeStyles, children: jumbotronSectionProps.children }), _jsx(StepsRatafiaSection, { ...stepsSectionProps }), trustPilotBox ?? trustPilotBox, _jsx(FaqSection, { groups: faqGroupProps, givenClass: 'faq-ratafia-section' })] }));
|
|
5
5
|
};
|
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
|
|
3
|
-
import { FaqSection, JumbotronRatafiaSection } from '../../sections'
|
|
3
|
+
import { FaqSection, JumbotronRatafiaSection, StepsRatafiaSection } from '../../sections'
|
|
4
4
|
import { type EsignatureLandingPageProps } from './EsignatureLandingPageProps.types'
|
|
5
5
|
|
|
6
6
|
export const EsignatureLandingPage: React.FC<EsignatureLandingPageProps> = ({
|
|
7
|
-
|
|
7
|
+
jumbotronSectionProps,
|
|
8
|
+
stepsSectionProps,
|
|
8
9
|
trustPilotBox,
|
|
9
10
|
faqGroupProps
|
|
10
11
|
}) => {
|
|
11
12
|
return (
|
|
12
13
|
<>
|
|
13
14
|
<JumbotronRatafiaSection
|
|
14
|
-
content={
|
|
15
|
-
alternativeStyles={
|
|
15
|
+
content={jumbotronSectionProps.content}
|
|
16
|
+
alternativeStyles={jumbotronSectionProps.alternativeStyles}
|
|
16
17
|
>
|
|
17
|
-
{
|
|
18
|
+
{jumbotronSectionProps.children}
|
|
18
19
|
</JumbotronRatafiaSection>
|
|
20
|
+
<StepsRatafiaSection {...stepsSectionProps} />
|
|
19
21
|
{trustPilotBox ?? trustPilotBox}
|
|
20
22
|
<FaqSection groups={faqGroupProps} givenClass='faq-ratafia-section' />
|
|
21
23
|
</>
|
package/dist/src/components/pages/EsignatureLandingPage/EsignatureLandingPageProps.types.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { JumbotronRatafiaSectionProps, StepsRatafiaSectionProps } from '../../sections';
|
|
1
2
|
import type { FaqGroupProps } from '../../organisms';
|
|
2
|
-
import { JumbotronRatafiaSectionProps } from '../../sections';
|
|
3
3
|
export interface EsignatureLandingPageProps {
|
|
4
|
-
|
|
4
|
+
jumbotronSectionProps: JumbotronRatafiaSectionProps;
|
|
5
|
+
stepsSectionProps: StepsRatafiaSectionProps;
|
|
5
6
|
faqGroupProps: FaqGroupProps[];
|
|
6
7
|
trustPilotBox?: React.ReactNode;
|
|
7
8
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { JumbotronRatafiaSectionProps, StepsRatafiaSectionProps } from '../../sections'
|
|
1
2
|
import type { FaqGroupProps } from '../../organisms'
|
|
2
|
-
import { JumbotronRatafiaSectionProps } from '../../sections'
|
|
3
3
|
|
|
4
4
|
export interface EsignatureLandingPageProps {
|
|
5
|
-
|
|
5
|
+
jumbotronSectionProps: JumbotronRatafiaSectionProps
|
|
6
|
+
stepsSectionProps: StepsRatafiaSectionProps
|
|
6
7
|
faqGroupProps: FaqGroupProps[]
|
|
7
8
|
trustPilotBox?: React.ReactNode
|
|
8
9
|
}
|
|
@@ -2,7 +2,12 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { StepsRatafiaContent } from '../../organisms';
|
|
3
3
|
import { StepsRatafiaSectionStyled } from './StepsRatafiaSection.styled';
|
|
4
4
|
import { Video } from '../../atoms';
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
import classNames from 'classnames';
|
|
6
|
+
const StepsRatafiaSection = ({ title, steps, videoUrl, mainImage, description }) => {
|
|
7
|
+
const isEsignatureLanding = !videoUrl;
|
|
8
|
+
const classnames = classNames({
|
|
9
|
+
'--is-esignature': isEsignatureLanding
|
|
10
|
+
});
|
|
11
|
+
return (_jsx(StepsRatafiaSectionStyled, { className: 'steps-ratafia-section', children: _jsxs("div", { className: `steps-ratafia-section__wrapper ${classnames}`, children: [!isEsignatureLanding ? (_jsx("div", { className: 'steps-ratafia-section__wrapper__video', children: _jsx(Video, { videoSrcURL: videoUrl, autoPlay: true, loop: true }) })) : (_jsx("div", { className: 'steps-ratafia-section__wrapper__image', children: mainImage })), _jsx("div", { className: 'steps-ratafia-section__wrapper__content', children: _jsx(StepsRatafiaContent, { title: title, steps: steps, description: description }) })] }) }));
|
|
7
12
|
};
|
|
8
13
|
export default StepsRatafiaSection;
|
|
@@ -18,10 +18,8 @@ export const StepsRatafiaSectionStyled = styled.section `
|
|
|
18
18
|
justify-content: center;
|
|
19
19
|
align-items: center;
|
|
20
20
|
align-self: stretch;
|
|
21
|
-
|
|
22
21
|
gap: 3rem;
|
|
23
22
|
padding: 2rem 1.5rem 3rem 1.5rem;
|
|
24
|
-
|
|
25
23
|
max-width: 1200px;
|
|
26
24
|
|
|
27
25
|
@media ${device.desktop} {
|
|
@@ -33,6 +31,21 @@ export const StepsRatafiaSectionStyled = styled.section `
|
|
|
33
31
|
align-items: center;
|
|
34
32
|
}
|
|
35
33
|
|
|
34
|
+
&__image {
|
|
35
|
+
display: flex;
|
|
36
|
+
justify-content: center;
|
|
37
|
+
align-items: center;
|
|
38
|
+
max-width: 1024px;
|
|
39
|
+
@media ${device['desktop-xl']} {
|
|
40
|
+
max-width: 720px;
|
|
41
|
+
}
|
|
42
|
+
img {
|
|
43
|
+
border-radius: 8px;
|
|
44
|
+
box-shadow: 0 0.125rem 0.375rem 0 rgba(2, 55, 74, 0.25);
|
|
45
|
+
width: 100%;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
36
49
|
&__video {
|
|
37
50
|
display: flex;
|
|
38
51
|
justify-content: center;
|
|
@@ -50,6 +63,64 @@ export const StepsRatafiaSectionStyled = styled.section `
|
|
|
50
63
|
&__content {
|
|
51
64
|
flex: 1;
|
|
52
65
|
}
|
|
66
|
+
|
|
67
|
+
&.--is-esignature {
|
|
68
|
+
flex-direction: column;
|
|
69
|
+
|
|
70
|
+
@media ${device.desktop} {
|
|
71
|
+
padding: 3rem 0 3rem 0;
|
|
72
|
+
}
|
|
73
|
+
@media ${device['desktop-xl']} {
|
|
74
|
+
flex-direction: row;
|
|
75
|
+
justify-content: center;
|
|
76
|
+
align-items: center;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.--is-esignature {
|
|
83
|
+
.steps-ratafia-section {
|
|
84
|
+
&__wrapper {
|
|
85
|
+
&__content {
|
|
86
|
+
width: 100%;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.step-ratafia-card-list {
|
|
92
|
+
flex-direction: column;
|
|
93
|
+
@media ${device['laptop']} {
|
|
94
|
+
flex-direction: row;
|
|
95
|
+
}
|
|
96
|
+
@media ${device['desktop-xl']} {
|
|
97
|
+
flex-direction: column;
|
|
98
|
+
justify-content: center;
|
|
99
|
+
align-items: center;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.step-ratafia-card {
|
|
104
|
+
width: 100%;
|
|
105
|
+
@media ${device['laptop']} {
|
|
106
|
+
width: 33%;
|
|
107
|
+
}
|
|
108
|
+
@media ${device['desktop-xl']} {
|
|
109
|
+
width: 100%;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.steps-esignature-section {
|
|
114
|
+
&__wrapper {
|
|
115
|
+
&__content {
|
|
116
|
+
width: 100%;
|
|
117
|
+
&.step-ratafia-card {
|
|
118
|
+
@media ${device['laptop']} {
|
|
119
|
+
width: 100%;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
53
124
|
}
|
|
54
125
|
}
|
|
55
126
|
`;
|
|
@@ -19,10 +19,8 @@ export const StepsRatafiaSectionStyled = styled.section`
|
|
|
19
19
|
justify-content: center;
|
|
20
20
|
align-items: center;
|
|
21
21
|
align-self: stretch;
|
|
22
|
-
|
|
23
22
|
gap: 3rem;
|
|
24
23
|
padding: 2rem 1.5rem 3rem 1.5rem;
|
|
25
|
-
|
|
26
24
|
max-width: 1200px;
|
|
27
25
|
|
|
28
26
|
@media ${device.desktop} {
|
|
@@ -34,6 +32,21 @@ export const StepsRatafiaSectionStyled = styled.section`
|
|
|
34
32
|
align-items: center;
|
|
35
33
|
}
|
|
36
34
|
|
|
35
|
+
&__image {
|
|
36
|
+
display: flex;
|
|
37
|
+
justify-content: center;
|
|
38
|
+
align-items: center;
|
|
39
|
+
max-width: 1024px;
|
|
40
|
+
@media ${device['desktop-xl']} {
|
|
41
|
+
max-width: 720px;
|
|
42
|
+
}
|
|
43
|
+
img {
|
|
44
|
+
border-radius: 8px;
|
|
45
|
+
box-shadow: 0 0.125rem 0.375rem 0 rgba(2, 55, 74, 0.25);
|
|
46
|
+
width: 100%;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
37
50
|
&__video {
|
|
38
51
|
display: flex;
|
|
39
52
|
justify-content: center;
|
|
@@ -51,6 +64,64 @@ export const StepsRatafiaSectionStyled = styled.section`
|
|
|
51
64
|
&__content {
|
|
52
65
|
flex: 1;
|
|
53
66
|
}
|
|
67
|
+
|
|
68
|
+
&.--is-esignature {
|
|
69
|
+
flex-direction: column;
|
|
70
|
+
|
|
71
|
+
@media ${device.desktop} {
|
|
72
|
+
padding: 3rem 0 3rem 0;
|
|
73
|
+
}
|
|
74
|
+
@media ${device['desktop-xl']} {
|
|
75
|
+
flex-direction: row;
|
|
76
|
+
justify-content: center;
|
|
77
|
+
align-items: center;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.--is-esignature {
|
|
84
|
+
.steps-ratafia-section {
|
|
85
|
+
&__wrapper {
|
|
86
|
+
&__content {
|
|
87
|
+
width: 100%;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.step-ratafia-card-list {
|
|
93
|
+
flex-direction: column;
|
|
94
|
+
@media ${device['laptop']} {
|
|
95
|
+
flex-direction: row;
|
|
96
|
+
}
|
|
97
|
+
@media ${device['desktop-xl']} {
|
|
98
|
+
flex-direction: column;
|
|
99
|
+
justify-content: center;
|
|
100
|
+
align-items: center;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.step-ratafia-card {
|
|
105
|
+
width: 100%;
|
|
106
|
+
@media ${device['laptop']} {
|
|
107
|
+
width: 33%;
|
|
108
|
+
}
|
|
109
|
+
@media ${device['desktop-xl']} {
|
|
110
|
+
width: 100%;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.steps-esignature-section {
|
|
115
|
+
&__wrapper {
|
|
116
|
+
&__content {
|
|
117
|
+
width: 100%;
|
|
118
|
+
&.step-ratafia-card {
|
|
119
|
+
@media ${device['laptop']} {
|
|
120
|
+
width: 100%;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
54
125
|
}
|
|
55
126
|
}
|
|
56
127
|
`
|
|
@@ -4,16 +4,26 @@ import { StepsRatafiaContent } from '../../organisms'
|
|
|
4
4
|
import { type StepsRatafiaSectionProps } from './StepsRatafiaSectionProps.types'
|
|
5
5
|
import { StepsRatafiaSectionStyled } from './StepsRatafiaSection.styled'
|
|
6
6
|
import { Video } from '../../atoms'
|
|
7
|
+
import classNames from 'classnames'
|
|
8
|
+
|
|
9
|
+
const StepsRatafiaSection: FC<StepsRatafiaSectionProps> = ({ title, steps, videoUrl, mainImage, description }) => {
|
|
10
|
+
const isEsignatureLanding = !videoUrl
|
|
11
|
+
const classnames = classNames({
|
|
12
|
+
'--is-esignature': isEsignatureLanding
|
|
13
|
+
})
|
|
7
14
|
|
|
8
|
-
const StepsRatafiaSection: FC<StepsRatafiaSectionProps> = ({ title, steps, videoUrl }) => {
|
|
9
15
|
return (
|
|
10
16
|
<StepsRatafiaSectionStyled className='steps-ratafia-section'>
|
|
11
|
-
<div className=
|
|
12
|
-
|
|
13
|
-
<
|
|
14
|
-
|
|
17
|
+
<div className={`steps-ratafia-section__wrapper ${classnames}`}>
|
|
18
|
+
{!isEsignatureLanding ? (
|
|
19
|
+
<div className='steps-ratafia-section__wrapper__video'>
|
|
20
|
+
<Video videoSrcURL={videoUrl} autoPlay loop />
|
|
21
|
+
</div>
|
|
22
|
+
) : (
|
|
23
|
+
<div className='steps-ratafia-section__wrapper__image'>{mainImage}</div>
|
|
24
|
+
)}
|
|
15
25
|
<div className='steps-ratafia-section__wrapper__content'>
|
|
16
|
-
<StepsRatafiaContent title={title} steps={steps} />
|
|
26
|
+
<StepsRatafiaContent title={title} steps={steps} description={description} />
|
|
17
27
|
</div>
|
|
18
28
|
</div>
|
|
19
29
|
</StepsRatafiaSectionStyled>
|
package/dist/src/components/sections/StepsRatafiaSection/StepsRatafiaSectionProps.types.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { StepRatafiaCardProps } from '../../atoms';
|
|
2
3
|
export interface StepsRatafiaSectionProps {
|
|
3
4
|
title: string;
|
|
4
5
|
steps: StepRatafiaCardProps[];
|
|
5
6
|
videoUrl: string;
|
|
7
|
+
mainImage?: React.ReactNode;
|
|
8
|
+
description?: React.ReactNode;
|
|
6
9
|
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import React from 'react'
|
|
1
2
|
import type { StepRatafiaCardProps } from '../../atoms'
|
|
2
3
|
|
|
3
4
|
export interface StepsRatafiaSectionProps {
|
|
4
5
|
title: string
|
|
5
6
|
steps: StepRatafiaCardProps[]
|
|
6
7
|
videoUrl: string
|
|
8
|
+
mainImage?: React.ReactNode
|
|
9
|
+
description?: React.ReactNode
|
|
7
10
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@npm_leadtech/legal-lib-components",
|
|
3
|
-
"version": "5.42.
|
|
3
|
+
"version": "5.42.7",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@types/eslint__js": "^8.42.3",
|
|
57
57
|
"@types/jest": "^29.5.13",
|
|
58
58
|
"@types/node": "^22.7.5",
|
|
59
|
-
"@types/react": "
|
|
59
|
+
"@types/react": "^19.0.12",
|
|
60
60
|
"@types/react-datepicker": "^7.0.0",
|
|
61
61
|
"@types/react-dom": "18.3.0",
|
|
62
62
|
"@types/react-router-dom": "5.3.3",
|