@npm_leadtech/legal-lib-components 5.42.11 → 5.43.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 (24) hide show
  1. package/dist/css/styles.css +245 -154
  2. package/dist/src/components/atoms/IconImage/IconImage.d.ts +2 -2
  3. package/dist/src/components/atoms/IconImage/IconImage.js +5 -1
  4. package/dist/src/components/atoms/IconImage/IconImage.tsx +8 -10
  5. package/dist/src/components/atoms/Radio/Radio.scss +158 -184
  6. package/dist/src/components/atoms/Radio/Radio.tsx +1 -1
  7. package/dist/src/components/atoms/Radio/RadioProps.types.d.ts +2 -3
  8. package/dist/src/components/atoms/Radio/RadioProps.types.js +2 -3
  9. package/dist/src/components/atoms/Radio/RadioProps.types.ts +2 -3
  10. package/dist/src/components/organisms/StepsRatafiaContent/StepsRatafiaContent.js +2 -2
  11. package/dist/src/components/organisms/StepsRatafiaContent/StepsRatafiaContent.tsx +2 -1
  12. package/dist/src/components/organisms/StepsRatafiaContent/StepsRatafiaContentProps.types.d.ts +2 -0
  13. package/dist/src/components/organisms/StepsRatafiaContent/StepsRatafiaContentProps.types.ts +2 -0
  14. package/dist/src/components/pages/EsignatureLandingPage/EsignatureLandingPage.js +3 -3
  15. package/dist/src/components/pages/EsignatureLandingPage/EsignatureLandingPage.tsx +7 -5
  16. package/dist/src/components/pages/EsignatureLandingPage/EsignatureLandingPageProps.types.d.ts +3 -2
  17. package/dist/src/components/pages/EsignatureLandingPage/EsignatureLandingPageProps.types.ts +3 -2
  18. package/dist/src/components/sections/StepsRatafiaSection/StepsRatafiaSection.js +7 -2
  19. package/dist/src/components/sections/StepsRatafiaSection/StepsRatafiaSection.styled.js +73 -2
  20. package/dist/src/components/sections/StepsRatafiaSection/StepsRatafiaSection.styled.ts +73 -2
  21. package/dist/src/components/sections/StepsRatafiaSection/StepsRatafiaSection.tsx +16 -6
  22. package/dist/src/components/sections/StepsRatafiaSection/StepsRatafiaSectionProps.types.d.ts +3 -0
  23. package/dist/src/components/sections/StepsRatafiaSection/StepsRatafiaSectionProps.types.ts +3 -0
  24. package/package.json +2 -2
@@ -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='steps-ratafia-section__wrapper'>
12
- <div className='steps-ratafia-section__wrapper__video'>
13
- <Video videoSrcURL={videoUrl} autoPlay loop />
14
- </div>
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>
@@ -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.11",
3
+ "version": "5.43.0",
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": "18.3.11",
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",