@npm_leadtech/legal-lib-components 7.42.1 → 7.42.2

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 (70) hide show
  1. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.js +2 -2
  2. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.styled.d.ts +6 -1
  3. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.styled.js +231 -121
  4. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.styled.ts +238 -119
  5. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.tsx +5 -5
  6. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCardProps.types.d.ts +2 -0
  7. package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCardProps.types.ts +3 -0
  8. package/dist/src/components/molecules/SubtypeDocumentCard/index.d.ts +1 -1
  9. package/dist/src/components/molecules/SubtypeDocumentCard/index.ts +1 -1
  10. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.js +2 -5
  11. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.styled.js +2 -35
  12. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.styled.ts +2 -35
  13. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.tsx +2 -7
  14. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContentProps.types.d.ts +1 -4
  15. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContentProps.types.js +0 -2
  16. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContentProps.types.ts +1 -4
  17. package/dist/src/components/sections/TryOurFreeLegalBlogsSection/TryOurFreeLegalBlogsSection.js +1 -9
  18. package/dist/src/components/sections/TryOurFreeLegalBlogsSection/TryOurFreeLegalBlogsSection.styled.js +0 -30
  19. package/dist/src/components/sections/TryOurFreeLegalBlogsSection/TryOurFreeLegalBlogsSection.styled.ts +0 -30
  20. package/dist/src/components/sections/TryOurFreeLegalBlogsSection/TryOurFreeLegalBlogsSection.tsx +1 -11
  21. package/dist/src/components/sections/index.d.ts +0 -3
  22. package/dist/src/components/sections/index.js +0 -3
  23. package/dist/src/components/sections/index.ts +0 -3
  24. package/dist/tsconfig.build.tsbuildinfo +1 -1
  25. package/package.json +1 -2
  26. package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCard.d.ts +0 -3
  27. package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCard.js +0 -5
  28. package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCard.styled.d.ts +0 -1
  29. package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCard.styled.js +0 -46
  30. package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCard.styled.ts +0 -47
  31. package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCard.tsx +0 -20
  32. package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCardProps.d.ts +0 -5
  33. package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCardProps.js +0 -1
  34. package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCardProps.ts +0 -5
  35. package/dist/src/components/molecules/LawGeniusInfoCard/index.d.ts +0 -2
  36. package/dist/src/components/molecules/LawGeniusInfoCard/index.js +0 -2
  37. package/dist/src/components/molecules/LawGeniusInfoCard/index.ts +0 -2
  38. package/dist/src/components/pages/HowItWorksPage/HowItWorksPage.d.ts +0 -3
  39. package/dist/src/components/pages/HowItWorksPage/HowItWorksPage.js +0 -5
  40. package/dist/src/components/pages/HowItWorksPage/HowItWorksPage.tsx +0 -26
  41. package/dist/src/components/pages/HowItWorksPage/HowItWorksPageProps.d.ts +0 -10
  42. package/dist/src/components/pages/HowItWorksPage/HowItWorksPageProps.js +0 -1
  43. package/dist/src/components/pages/HowItWorksPage/HowItWorksPageProps.ts +0 -16
  44. package/dist/src/components/pages/HowItWorksPage/index.d.ts +0 -2
  45. package/dist/src/components/pages/HowItWorksPage/index.js +0 -2
  46. package/dist/src/components/pages/HowItWorksPage/index.ts +0 -2
  47. package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSection.d.ts +0 -4
  48. package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSection.js +0 -12
  49. package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSection.styled.d.ts +0 -1
  50. package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSection.styled.js +0 -118
  51. package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSection.styled.ts +0 -119
  52. package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSection.tsx +0 -70
  53. package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSectionProps.types.d.ts +0 -15
  54. package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSectionProps.types.js +0 -1
  55. package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSectionProps.types.ts +0 -16
  56. package/dist/src/components/sections/LawGeniusCardsSection/index.d.ts +0 -2
  57. package/dist/src/components/sections/LawGeniusCardsSection/index.js +0 -1
  58. package/dist/src/components/sections/LawGeniusCardsSection/index.ts +0 -2
  59. package/dist/src/components/sections/TryNowSection/TryNowSection.d.ts +0 -3
  60. package/dist/src/components/sections/TryNowSection/TryNowSection.js +0 -6
  61. package/dist/src/components/sections/TryNowSection/TryNowSection.styled.d.ts +0 -1
  62. package/dist/src/components/sections/TryNowSection/TryNowSection.styled.js +0 -190
  63. package/dist/src/components/sections/TryNowSection/TryNowSection.styled.ts +0 -191
  64. package/dist/src/components/sections/TryNowSection/TryNowSection.tsx +0 -27
  65. package/dist/src/components/sections/TryNowSection/TryNowSectionProps.d.ts +0 -8
  66. package/dist/src/components/sections/TryNowSection/TryNowSectionProps.js +0 -1
  67. package/dist/src/components/sections/TryNowSection/TryNowSectionProps.ts +0 -9
  68. package/dist/src/components/sections/TryNowSection/index.d.ts +0 -2
  69. package/dist/src/components/sections/TryNowSection/index.js +0 -1
  70. package/dist/src/components/sections/TryNowSection/index.ts +0 -2
@@ -1,162 +1,281 @@
1
- import { device, size } from '../../../globalStyles/breakpoints'
2
1
  import styled from 'styled-components'
3
2
 
4
- export const SubtypeDocumentCardStyled = styled.div`
5
- display: flex;
6
- flex-direction: column;
7
- width: 100%;
8
- align-items: center;
9
- justify-content: center;
10
- width: 100%;
11
- max-width: 376px;
12
- min-height: 600px;
13
- padding: 2rem 1.5rem 2rem 1.5rem;
14
- gap: 24px;
15
- border-radius: var(--s-border-radius) 0 0 0;
16
- opacity: 0px;
17
- box-shadow: 0px 2px 6px 0px var(--neutral-neutral-3);
18
- background-color: var(--secondary-main-light-5);
19
- margin-bottom: 1.5rem;
20
-
21
- .image-container {
22
- width: 70%;
23
- }
24
-
25
- @media (min-width: ${size.xs}) {
26
- width: 400px;
27
- max-width: inherit;
28
- }
29
-
30
- @media (min-width: ${size.md}) {
31
- width: 543px;
32
- height: 364px;
33
- min-height: 380px;
34
- align-items: flex-start;
35
- flex-direction: row;
36
-
37
- .image-container {
38
- width: 40%;
3
+ import { device, size } from '../../../globalStyles/breakpoints'
39
4
 
40
- @media (min-width: ${size.lg}) {
41
- width: 30%;
42
- }
43
- }
44
- }
5
+ import { SubtypeDocumentCardFormat } from './SubtypeDocumentCardProps.types'
45
6
 
46
- @media (min-width: ${size.lg}) {
47
- width: 715px;
48
- height: 307px;
49
- min-height: 335px;
50
- }
7
+ interface SubtypeDocumentCardStyledProps {
8
+ $format: SubtypeDocumentCardFormat
9
+ }
51
10
 
52
- .content {
11
+ export const SubtypeDocumentCardStyled = styled.div<SubtypeDocumentCardStyledProps>`
12
+ /* Default format styles (original styles) */
13
+ ${({ $format }) =>
14
+ $format === 'Default' &&
15
+ `
53
16
  display: flex;
54
17
  flex-direction: column;
55
- height: 100%;
56
18
  width: 100%;
57
- justify-content: flex-start;
19
+ align-items: center;
20
+ justify-content: center;
21
+ width: 100%;
22
+ max-width: 376px;
23
+ min-height: 600px;
24
+ padding: 2rem 1.5rem 2rem 1.5rem;
25
+ gap: 24px;
26
+ border-radius: var(--s-border-radius) 0 0 0;
27
+ opacity: 0px;
28
+ box-shadow: 0px 2px 6px 0px var(--neutral-neutral-3);
29
+ background-color: var(--secondary-main-light-5);
30
+ margin-bottom: 1.5rem;
58
31
 
59
- @media ${device['landscape-tablets']} {
60
- margin-left: 1rem;
32
+ .image-container {
33
+ width: 70%;
61
34
  }
62
35
 
63
- @media (min-width: ${size.md}) {
64
- width: 65%;
36
+ @media (min-width: ${size.xs}) {
37
+ width: 400px;
38
+ max-width: inherit;
65
39
  }
66
- }
67
-
68
- .title {
69
- font-family: Inter;
70
- font-size: 18px;
71
- font-weight: 700;
72
- line-height: 24px;
73
- letter-spacing: -0.3px;
74
- text-align: left;
75
- text-decoration-line: underline;
76
- text-decoration-style: solid;
77
- text-underline-position: from-font;
78
- text-decoration-skip-ink: none;
79
- }
80
-
81
- .description {
82
- margin: 1rem 0;
83
- }
84
-
85
- .buttons-container {
86
- display: flex;
87
- justify-content: space-between;
88
- align-items: center;
89
- flex-direction: column;
90
40
 
91
- @media ${device.desktop} {
41
+ @media (min-width: ${size.md}) {
42
+ width: 543px;
43
+ height: 364px;
44
+ min-height: 380px;
45
+ align-items: flex-start;
92
46
  flex-direction: row;
93
- align-self: flex-start;
94
- gap: var(--global-gap);
95
- align-items: center;
47
+
48
+ .image-container {
49
+ width: 40%;
50
+
51
+ @media (min-width: ${size.lg}) {
52
+ width: 30%;
53
+ }
54
+ }
55
+ }
56
+
57
+ @media (min-width: ${size.lg}) {
58
+ width: 715px;
59
+ height: 307px;
60
+ min-height: 335px;
96
61
  }
97
62
 
98
- .create-doc-button {
63
+ .content {
64
+ display: flex;
65
+ flex-direction: column;
66
+ height: 100%;
99
67
  width: 100%;
68
+ justify-content: flex-start;
100
69
 
101
- @media ${device.laptop} {
102
- align-self: flex-start;
103
- width: auto;
104
- margin-top: 0.5rem;
70
+ @media ${device['landscape-tablets']} {
71
+ margin-left: 1rem;
105
72
  }
106
73
 
107
- @media ${device.desktop} {
108
- width: 100%;
109
- height: auto;
74
+ @media (min-width: ${size.md}) {
75
+ width: 65%;
110
76
  }
111
77
  }
112
78
 
113
- .downloadable-buttons {
79
+ .title {
80
+ font-family: Inter;
81
+ font-size: 18px;
82
+ font-weight: 700;
83
+ line-height: 24px;
84
+ letter-spacing: -0.3px;
85
+ text-align: left;
86
+ text-decoration-line: underline;
87
+ text-decoration-style: solid;
88
+ text-underline-position: from-font;
89
+ text-decoration-skip-ink: none;
90
+ }
91
+
92
+ .description {
93
+ margin: 1rem 0;
94
+ }
95
+
96
+ .buttons-container {
114
97
  display: flex;
115
- flex-wrap: wrap;
116
- gap: var(--global-gap);
117
- width: 100%;
118
98
  justify-content: space-between;
99
+ align-items: center;
100
+ flex-direction: column;
119
101
 
120
- a {
121
- min-width: 46.5%;
122
- max-width: 46.5%;
123
- margin-top: 0.75rem;
102
+ @media ${device.desktop} {
103
+ flex-direction: row;
104
+ align-self: flex-start;
105
+ gap: var(--global-gap);
106
+ align-items: center;
124
107
  }
125
108
 
126
- @media ${device.laptop} {
127
- justify-content: flex-start;
109
+ .create-doc-button {
128
110
  width: 100%;
129
111
 
130
- a {
131
- min-width: 46.5%;
132
- max-width: fit-content;
112
+ @media ${device.laptop} {
113
+ align-self: flex-start;
114
+ width: auto;
133
115
  margin-top: 0.5rem;
134
116
  }
117
+
118
+ @media ${device.desktop} {
119
+ width: 100%;
120
+ height: auto;
121
+ }
135
122
  }
136
123
 
137
- @media (min-width: ${size.lg}) {
124
+ .downloadable-buttons {
125
+ display: flex;
126
+ flex-wrap: wrap;
127
+ gap: var(--global-gap);
128
+ width: 100%;
129
+ justify-content: space-between;
130
+
138
131
  a {
139
- min-width: auto;
140
- max-width: fit-content;
132
+ min-width: 46.5%;
133
+ max-width: 46.5%;
134
+ margin-top: 0.75rem;
135
+ }
136
+
137
+ @media ${device.laptop} {
138
+ justify-content: flex-start;
139
+ width: 100%;
140
+
141
+ a {
142
+ min-width: 46.5%;
143
+ max-width: fit-content;
144
+ margin-top: 0.5rem;
145
+ }
141
146
  }
147
+
148
+ @media (min-width: ${size.lg}) {
149
+ a {
150
+ min-width: auto;
151
+ max-width: fit-content;
152
+ }
153
+ }
154
+
155
+ @media ${device.desktop} {
156
+ display: flex;
157
+ gap: var(--global-gap);
158
+ flex-wrap: nowrap;
159
+ margin-top: 0;
160
+ }
161
+ }
162
+ }
163
+
164
+ &.download-icon {
165
+ &::before {
166
+ content: '';
167
+ width: 1rem;
168
+ height: 1rem;
169
+ background-image: url('../../../assets/images/svg/icon-save-24-px.svg');
170
+ margin-right: 0.5rem;
142
171
  }
172
+ }
173
+ `}
174
+
175
+ /* Alternative format styles */
176
+ ${({ $format }) =>
177
+ $format === 'Alternative' &&
178
+ `
179
+ display: flex;
180
+ flex-direction: row;
181
+ width: 100%;
182
+ align-items: center;
183
+ justify-content: center;
184
+ padding: 2rem 1.5rem 2rem 1.5rem;
185
+ gap: 1rem;
186
+ border-radius: 1rem;
187
+ background-color: var(--neutral-neutral-6);
188
+ margin-bottom: 1.5rem;
189
+
190
+ .image-container {
191
+ width: 70%;
192
+ }
193
+
194
+ @media (min-width: ${size.xs}) {
195
+ width: 400px;
196
+ max-width: inherit;
197
+ }
198
+
199
+ @media (min-width: ${size.md}) {
200
+ align-items: center;
201
+ flex-direction: column;
202
+ width: 100%;
203
+ max-width: 300px;
204
+ .image-container {
205
+ width: 40%;
206
+
207
+ @media (min-width: ${size.lg}) {
208
+ width: 30%;
209
+ }
210
+ }
211
+ }
212
+
213
+ @media (min-width: ${size.lg}) {
214
+ height: 310px;
215
+ }
216
+
217
+ .title {
218
+ font-family: Inter;
219
+ font-size: 18px;
220
+ font-weight: 700;
221
+ line-height: 24px;
222
+ margin-bottom: 24px;
223
+ letter-spacing: -0.3px;
224
+ text-align: left;
225
+ text-decoration-line: underline;
226
+ text-decoration-style: solid;
227
+ text-underline-position: from-font;
228
+ text-decoration-skip-ink: none;
229
+ }
230
+
231
+ .buttons-container {
232
+ display: flex;
233
+ justify-content: space-between;
234
+ align-items: center;
235
+ flex-direction: column;
143
236
 
144
237
  @media ${device.desktop} {
145
- display: flex;
238
+ flex-direction: row;
239
+ align-self: flex-start;
146
240
  gap: var(--global-gap);
147
- flex-wrap: nowrap;
148
- margin-top: 0;
241
+ align-items: center;
242
+ }
243
+
244
+ .downloadable-buttons {
245
+ display: flex;
246
+ flex-wrap: wrap;
247
+ width: 100%;
248
+ justify-content: space-between;
249
+
250
+ a {
251
+ margin-top: 0.75rem;
252
+ width: 100%;
253
+ }
254
+
255
+ @media ${device.laptop} {
256
+ justify-content: space-between;
257
+ width: 95%;
258
+ a {
259
+ min-width: 46.5%;
260
+ max-width: fit-content;
261
+ margin-top: 0.5rem;
262
+ }
263
+ }
264
+
265
+ @media (min-width: ${size.lg}) {
266
+ a {
267
+ min-width: auto;
268
+ max-width: fit-content;
269
+ }
270
+ }
271
+
272
+ @media ${device.desktop} {
273
+ display: flex;
274
+ gap: var(--global-gap);
275
+ flex-wrap: nowrap;
276
+ margin-top: 0;
277
+ }
149
278
  }
150
279
  }
151
- }
152
-
153
- &.download-icon {
154
- &::before {
155
- content: '';
156
- width: 1rem;
157
- height: 1rem;
158
- background-image: url('../../../assets/images/svg/icon-save-24-px.svg');
159
- margin-right: 0.5rem;
160
- }
161
- }
280
+ `}
162
281
  `
@@ -1,4 +1,3 @@
1
- /* eslint-disable @typescript-eslint/no-unsafe-assignment */
2
1
  import React, { type FC } from 'react'
3
2
 
4
3
  import { Button } from '../../atoms'
@@ -12,18 +11,19 @@ const SubtypeDocumentCard: FC<SubtypeDocumentCardProps> = ({
12
11
  children,
13
12
  pdfButton,
14
13
  wordButton,
15
- createDocButton
14
+ createDocButton,
15
+ format = 'Default'
16
16
  }) => {
17
17
  return (
18
- <SubtypeDocumentCardStyled className='subtype-document-card'>
18
+ <SubtypeDocumentCardStyled className='subtype-document-card' $format={format}>
19
19
  <div className='image-container'>{children}</div>
20
20
  <div className='content'>
21
21
  <a href={productUrl}>
22
22
  <h3 className='title'>{title}</h3>
23
23
  </a>
24
- <p className='description'>{description}</p>
24
+ {format === 'Default' && <p className='description'>{description}</p>}
25
25
  <div className='buttons-container'>
26
- <Button {...createDocButton} />
26
+ {format === 'Default' && <Button {...createDocButton} />}
27
27
  <div className='downloadable-buttons'>
28
28
  <Button {...pdfButton} />
29
29
  <Button {...wordButton} />
@@ -1,4 +1,5 @@
1
1
  import { ButtonProps } from 'src/components/atoms';
2
+ export type SubtypeDocumentCardFormat = 'Default' | 'Alternative';
2
3
  export interface SubtypeDocumentCardProps {
3
4
  title: string;
4
5
  productUrl: string;
@@ -7,4 +8,5 @@ export interface SubtypeDocumentCardProps {
7
8
  pdfButton: ButtonProps;
8
9
  wordButton: ButtonProps;
9
10
  createDocButton: ButtonProps;
11
+ format?: SubtypeDocumentCardFormat;
10
12
  }
@@ -1,5 +1,7 @@
1
1
  import { ButtonProps } from 'src/components/atoms'
2
2
 
3
+ export type SubtypeDocumentCardFormat = 'Default' | 'Alternative'
4
+
3
5
  export interface SubtypeDocumentCardProps {
4
6
  title: string
5
7
  productUrl: string
@@ -8,4 +10,5 @@ export interface SubtypeDocumentCardProps {
8
10
  pdfButton: ButtonProps
9
11
  wordButton: ButtonProps
10
12
  createDocButton: ButtonProps
13
+ format?: SubtypeDocumentCardFormat
11
14
  }
@@ -1,2 +1,2 @@
1
1
  export { default as SubtypeDocumentCard } from './SubtypeDocumentCard';
2
- export { type SubtypeDocumentCardProps } from './SubtypeDocumentCardProps.types';
2
+ export { type SubtypeDocumentCardProps, type SubtypeDocumentCardFormat } from './SubtypeDocumentCardProps.types';
@@ -1,2 +1,2 @@
1
1
  export { default as SubtypeDocumentCard } from './SubtypeDocumentCard'
2
- export { type SubtypeDocumentCardProps } from './SubtypeDocumentCardProps.types'
2
+ export { type SubtypeDocumentCardProps, type SubtypeDocumentCardFormat } from './SubtypeDocumentCardProps.types'
@@ -3,14 +3,11 @@ import { TryOurFreeLegalBlogsContentType } from './TryOurFreeLegalBlogsContentPr
3
3
  import { RichTextInner } from '../../atoms';
4
4
  import { TryOurFreeLegalBlogsContentStyled } from './TryOurFreeLegalBlogsContent.styled';
5
5
  import classNames from 'classnames';
6
- const TryOurFreeLegalBlogsContent = ({ title, image, children, type = TryOurFreeLegalBlogsContentType.default, imageFirstOnMobile = false }) => {
6
+ const TryOurFreeLegalBlogsContent = ({ title, image, children, type = TryOurFreeLegalBlogsContentType.default }) => {
7
7
  const classTry = classNames({
8
8
  'try-our-free-legal-blogs-section-content': true,
9
9
  'try-our-free-legal-blogs-section-content--our-mission': TryOurFreeLegalBlogsContentType.ourMission === type,
10
- 'try-our-free-legal-blogs-section-content--our-mission-first-image': TryOurFreeLegalBlogsContentType.ourMissionFirstImage === type,
11
- 'try-our-free-legal-blogs-section-content--how-it-works': TryOurFreeLegalBlogsContentType.howItWorks === type,
12
- 'try-our-free-legal-blogs-section-content--how-it-works-first-image': TryOurFreeLegalBlogsContentType.howItWorksFirstImage === type,
13
- 'try-our-free-legal-blogs-section-content--image-first-mobile': imageFirstOnMobile
10
+ 'try-our-free-legal-blogs-section-content--our-mission-first-image': TryOurFreeLegalBlogsContentType.ourMissionFirstImage === type
14
11
  });
15
12
  return (_jsxs(TryOurFreeLegalBlogsContentStyled, { className: classTry, children: [_jsxs("div", { className: 'try-our-free-legal-blogs-section__texts', children: [_jsx("h2", { className: 'try-our-free-legal-blogs-section__texts__title', children: title }), _jsx(RichTextInner, { customClass: 'try-our-free-legal-blogs-section__texts__body', children: children })] }), _jsx("div", { className: 'try-our-free-legal-blogs-section__image', children: image })] }));
16
13
  };
@@ -7,8 +7,7 @@ export const TryOurFreeLegalBlogsContentStyled = styled.div `
7
7
  flex-direction: row;
8
8
  }
9
9
 
10
- &.try-our-free-legal-blogs-section-content--our-mission,
11
- &.try-our-free-legal-blogs-section-content--how-it-works {
10
+ &.try-our-free-legal-blogs-section-content--our-mission {
12
11
  margin-top: 1.5rem;
13
12
  margin-bottom: 1.5rem;
14
13
  align-items: center;
@@ -31,8 +30,7 @@ export const TryOurFreeLegalBlogsContentStyled = styled.div `
31
30
  }
32
31
  }
33
32
 
34
- &.try-our-free-legal-blogs-section-content--our-mission-first-image,
35
- &.try-our-free-legal-blogs-section-content--how-it-works-first-image {
33
+ &.try-our-free-legal-blogs-section-content--our-mission-first-image {
36
34
  margin-top: 1.5rem;
37
35
  margin-bottom: 1.5rem;
38
36
  align-items: center;
@@ -103,35 +101,4 @@ export const TryOurFreeLegalBlogsContentStyled = styled.div `
103
101
  .try-our-free-legal-blogs-section__image {
104
102
  flex-basis: 50%;
105
103
  }
106
-
107
- &.try-our-free-legal-blogs-section-content--image-first-mobile {
108
- .try-our-free-legal-blogs-section__texts {
109
- order: 2;
110
- @media ${device['landscape-tablets']} {
111
- order: 1;
112
- }
113
- }
114
-
115
- .try-our-free-legal-blogs-section__image {
116
- order: 1;
117
- margin-bottom: 2rem;
118
- @media ${device['landscape-tablets']} {
119
- order: 2;
120
- margin-bottom: 0;
121
- }
122
- }
123
- }
124
-
125
- &.try-our-free-legal-blogs-section-content--how-it-works {
126
- ul {
127
- list-style-type: disc;
128
- padding-left: 1.2rem;
129
- li {
130
- margin-bottom: 0;
131
- a {
132
- text-decoration: underline;
133
- }
134
- }
135
- }
136
- }
137
104
  `;
@@ -8,8 +8,7 @@ export const TryOurFreeLegalBlogsContentStyled = styled.div`
8
8
  flex-direction: row;
9
9
  }
10
10
 
11
- &.try-our-free-legal-blogs-section-content--our-mission,
12
- &.try-our-free-legal-blogs-section-content--how-it-works {
11
+ &.try-our-free-legal-blogs-section-content--our-mission {
13
12
  margin-top: 1.5rem;
14
13
  margin-bottom: 1.5rem;
15
14
  align-items: center;
@@ -32,8 +31,7 @@ export const TryOurFreeLegalBlogsContentStyled = styled.div`
32
31
  }
33
32
  }
34
33
 
35
- &.try-our-free-legal-blogs-section-content--our-mission-first-image,
36
- &.try-our-free-legal-blogs-section-content--how-it-works-first-image {
34
+ &.try-our-free-legal-blogs-section-content--our-mission-first-image {
37
35
  margin-top: 1.5rem;
38
36
  margin-bottom: 1.5rem;
39
37
  align-items: center;
@@ -104,35 +102,4 @@ export const TryOurFreeLegalBlogsContentStyled = styled.div`
104
102
  .try-our-free-legal-blogs-section__image {
105
103
  flex-basis: 50%;
106
104
  }
107
-
108
- &.try-our-free-legal-blogs-section-content--image-first-mobile {
109
- .try-our-free-legal-blogs-section__texts {
110
- order: 2;
111
- @media ${device['landscape-tablets']} {
112
- order: 1;
113
- }
114
- }
115
-
116
- .try-our-free-legal-blogs-section__image {
117
- order: 1;
118
- margin-bottom: 2rem;
119
- @media ${device['landscape-tablets']} {
120
- order: 2;
121
- margin-bottom: 0;
122
- }
123
- }
124
- }
125
-
126
- &.try-our-free-legal-blogs-section-content--how-it-works {
127
- ul {
128
- list-style-type: disc;
129
- padding-left: 1.2rem;
130
- li {
131
- margin-bottom: 0;
132
- a {
133
- text-decoration: underline;
134
- }
135
- }
136
- }
137
- }
138
105
  `
@@ -12,18 +12,13 @@ const TryOurFreeLegalBlogsContent: FC<TryOurFreeLegalBlogsContentProps> = ({
12
12
  title,
13
13
  image,
14
14
  children,
15
- type = TryOurFreeLegalBlogsContentType.default,
16
- imageFirstOnMobile = false
15
+ type = TryOurFreeLegalBlogsContentType.default
17
16
  }) => {
18
17
  const classTry = classNames({
19
18
  'try-our-free-legal-blogs-section-content': true,
20
19
  'try-our-free-legal-blogs-section-content--our-mission': TryOurFreeLegalBlogsContentType.ourMission === type,
21
20
  'try-our-free-legal-blogs-section-content--our-mission-first-image':
22
- TryOurFreeLegalBlogsContentType.ourMissionFirstImage === type,
23
- 'try-our-free-legal-blogs-section-content--how-it-works': TryOurFreeLegalBlogsContentType.howItWorks === type,
24
- 'try-our-free-legal-blogs-section-content--how-it-works-first-image':
25
- TryOurFreeLegalBlogsContentType.howItWorksFirstImage === type,
26
- 'try-our-free-legal-blogs-section-content--image-first-mobile': imageFirstOnMobile
21
+ TryOurFreeLegalBlogsContentType.ourMissionFirstImage === type
27
22
  })
28
23
  return (
29
24
  <TryOurFreeLegalBlogsContentStyled className={classTry}>
@@ -1,14 +1,11 @@
1
1
  export declare enum TryOurFreeLegalBlogsContentType {
2
2
  default = "Default",
3
3
  ourMission = "Our Mission",
4
- ourMissionFirstImage = "Our Mission First Image",
5
- howItWorks = "How It Works",
6
- howItWorksFirstImage = "How It Works First Image"
4
+ ourMissionFirstImage = "Our Mission First Image"
7
5
  }
8
6
  export interface TryOurFreeLegalBlogsContentProps {
9
7
  title: string;
10
8
  image: React.ReactNode;
11
9
  children: React.ReactNode;
12
10
  type?: TryOurFreeLegalBlogsContentType;
13
- imageFirstOnMobile?: boolean;
14
11
  }
@@ -3,6 +3,4 @@ export var TryOurFreeLegalBlogsContentType;
3
3
  TryOurFreeLegalBlogsContentType["default"] = "Default";
4
4
  TryOurFreeLegalBlogsContentType["ourMission"] = "Our Mission";
5
5
  TryOurFreeLegalBlogsContentType["ourMissionFirstImage"] = "Our Mission First Image";
6
- TryOurFreeLegalBlogsContentType["howItWorks"] = "How It Works";
7
- TryOurFreeLegalBlogsContentType["howItWorksFirstImage"] = "How It Works First Image";
8
6
  })(TryOurFreeLegalBlogsContentType || (TryOurFreeLegalBlogsContentType = {}));
@@ -1,9 +1,7 @@
1
1
  export enum TryOurFreeLegalBlogsContentType {
2
2
  default = 'Default',
3
3
  ourMission = 'Our Mission',
4
- ourMissionFirstImage = 'Our Mission First Image',
5
- howItWorks = 'How It Works',
6
- howItWorksFirstImage = 'How It Works First Image'
4
+ ourMissionFirstImage = 'Our Mission First Image'
7
5
  }
8
6
 
9
7
  export interface TryOurFreeLegalBlogsContentProps {
@@ -11,5 +9,4 @@ export interface TryOurFreeLegalBlogsContentProps {
11
9
  image: React.ReactNode
12
10
  children: React.ReactNode
13
11
  type?: TryOurFreeLegalBlogsContentType
14
- imageFirstOnMobile?: boolean
15
12
  }
@@ -1,15 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { TryOurFreeLegalBlogsContent } from '../../organisms/TryOurFreeLegalBlogsContent';
3
3
  import { TryOurFreeLegalBlogsSectionStyled } from './TryOurFreeLegalBlogsSection.styled';
4
- import classNames from 'classnames';
5
4
  const TryOurFreeLegalBlogsSection = ({ contentTryOurFreeLegalBlogs }) => {
6
- const classTry = classNames({
7
- default: contentTryOurFreeLegalBlogs.type === 'Default',
8
- 'wrapper wrapper--responsive our-mission': contentTryOurFreeLegalBlogs.type === 'Our Mission',
9
- 'wrapper wrapper--responsive our-mission-first-image': contentTryOurFreeLegalBlogs.type === 'Our Mission First Image',
10
- 'wrapper wrapper--responsive how-it-works': contentTryOurFreeLegalBlogs.type === 'How It Works',
11
- 'how-it-works-first-image': contentTryOurFreeLegalBlogs.type === 'How It Works First Image'
12
- });
13
- return (_jsx(TryOurFreeLegalBlogsSectionStyled, { className: `try-our-free-legal-blogs-section ${classTry}`, children: _jsx(TryOurFreeLegalBlogsContent, { title: contentTryOurFreeLegalBlogs.title, image: contentTryOurFreeLegalBlogs.image, type: contentTryOurFreeLegalBlogs.type, imageFirstOnMobile: contentTryOurFreeLegalBlogs.imageFirstOnMobile ?? false, children: contentTryOurFreeLegalBlogs.children }) }));
5
+ return (_jsx(TryOurFreeLegalBlogsSectionStyled, { className: 'try-our-free-legal-blogs-section wrapper wrapper--responsive', children: _jsx(TryOurFreeLegalBlogsContent, { title: contentTryOurFreeLegalBlogs.title, image: contentTryOurFreeLegalBlogs.image, type: contentTryOurFreeLegalBlogs.type, children: contentTryOurFreeLegalBlogs.children }) }));
14
6
  };
15
7
  export default TryOurFreeLegalBlogsSection;