@npm_leadtech/legal-lib-components 5.9.3 → 5.9.4

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 (137) hide show
  1. package/dist/css/styles.css +0 -847
  2. package/dist/src/components/molecules/Article/Article.js +2 -3
  3. package/dist/src/components/molecules/Article/Article.styled.js +0 -31
  4. package/dist/src/components/molecules/Article/Article.styled.ts +0 -31
  5. package/dist/src/components/molecules/Article/Article.tsx +4 -24
  6. package/dist/src/components/molecules/Article/ArticleProps.types.d.ts +0 -1
  7. package/dist/src/components/molecules/Article/ArticleProps.types.ts +0 -1
  8. package/dist/src/components/molecules/FaqItem/FaqItem.js +4 -5
  9. package/dist/src/components/molecules/FaqItem/FaqItem.tsx +6 -7
  10. package/dist/src/components/organisms/AboutUsContent/AboutUsContent.js +2 -2
  11. package/dist/src/components/organisms/AboutUsContent/AboutUsContent.styled.d.ts +1 -0
  12. package/dist/src/components/organisms/AboutUsContent/AboutUsContent.styled.js +59 -0
  13. package/dist/src/components/organisms/AboutUsContent/{AboutUsContent.scss → AboutUsContent.styled.ts} +13 -11
  14. package/dist/src/components/organisms/AboutUsContent/AboutUsContent.tsx +3 -3
  15. package/dist/src/components/organisms/Accordion/Accordion.js +2 -2
  16. package/dist/src/components/organisms/Accordion/Accordion.styled.d.ts +1 -0
  17. package/dist/src/components/organisms/Accordion/Accordion.styled.js +5 -0
  18. package/dist/src/components/organisms/Accordion/Accordion.styled.ts +6 -0
  19. package/dist/src/components/organisms/Accordion/Accordion.tsx +3 -4
  20. package/dist/src/components/organisms/ArticlesList/ArticlesList.js +3 -3
  21. package/dist/src/components/organisms/ArticlesList/ArticlesList.styled.d.ts +1 -0
  22. package/dist/src/components/organisms/ArticlesList/ArticlesList.styled.js +11 -0
  23. package/dist/src/components/organisms/ArticlesList/ArticlesList.styled.ts +12 -0
  24. package/dist/src/components/organisms/ArticlesList/ArticlesList.tsx +5 -5
  25. package/dist/src/components/organisms/ArticlesList/ArticlesListProps.types.d.ts +0 -1
  26. package/dist/src/components/organisms/ArticlesList/ArticlesListProps.types.ts +0 -1
  27. package/dist/src/components/organisms/AsSeeInContent/AsSeeInContent.js +3 -3
  28. package/dist/src/components/organisms/AsSeeInContent/AsSeeInContent.styled.d.ts +1 -0
  29. package/dist/src/components/organisms/AsSeeInContent/AsSeeInContent.styled.js +22 -0
  30. package/dist/src/components/organisms/AsSeeInContent/AsSeeInContent.styled.ts +23 -0
  31. package/dist/src/components/organisms/AsSeeInContent/AsSeeInContent.tsx +3 -3
  32. package/dist/src/components/organisms/CardFunctionality/CardFunctionality.js +2 -2
  33. package/dist/src/components/organisms/CardFunctionality/CardFunctionality.styled.d.ts +1 -0
  34. package/dist/src/components/organisms/CardFunctionality/CardFunctionality.styled.js +60 -0
  35. package/dist/src/components/organisms/CardFunctionality/{CardFunctionality.scss → CardFunctionality.styled.ts} +3 -3
  36. package/dist/src/components/organisms/CardFunctionality/CardFunctionality.tsx +3 -3
  37. package/dist/src/components/organisms/ContactJumbotron/ContactJumbotron.js +2 -2
  38. package/dist/src/components/organisms/ContactJumbotron/ContactJumbotron.styled.d.ts +1 -0
  39. package/dist/src/components/organisms/ContactJumbotron/ContactJumbotron.styled.js +43 -0
  40. package/dist/src/components/organisms/ContactJumbotron/{ContactJumbotron.scss → ContactJumbotron.styled.ts} +6 -7
  41. package/dist/src/components/organisms/ContactJumbotron/ContactJumbotron.tsx +3 -3
  42. package/dist/src/components/organisms/CookiePolicyBar/CookiePolicyBar.js +2 -2
  43. package/dist/src/components/organisms/CookiePolicyBar/CookiePolicyBar.styled.d.ts +1 -0
  44. package/dist/src/components/organisms/CookiePolicyBar/CookiePolicyBar.styled.js +54 -0
  45. package/dist/src/components/organisms/CookiePolicyBar/CookiePolicyBar.styled.ts +55 -0
  46. package/dist/src/components/organisms/CookiePolicyBar/CookiePolicyBar.tsx +11 -13
  47. package/dist/src/components/organisms/ErrorContentRatafia/ErrorContentRatafia.js +2 -2
  48. package/dist/src/components/organisms/ErrorContentRatafia/ErrorContentRatafia.styled.d.ts +1 -0
  49. package/dist/src/components/organisms/ErrorContentRatafia/ErrorContentRatafia.styled.js +18 -0
  50. package/dist/src/components/organisms/ErrorContentRatafia/{ErrorContentRatafia.scss → ErrorContentRatafia.styled.ts} +7 -6
  51. package/dist/src/components/organisms/ErrorContentRatafia/ErrorContentRatafia.tsx +3 -3
  52. package/dist/src/components/organisms/FaqGroup/FaqGroup.js +2 -2
  53. package/dist/src/components/organisms/FaqGroup/FaqGroup.styled.d.ts +1 -0
  54. package/dist/src/components/organisms/FaqGroup/FaqGroup.styled.js +21 -0
  55. package/dist/src/components/organisms/FaqGroup/{FaqGroup.scss → FaqGroup.styled.ts} +3 -3
  56. package/dist/src/components/organisms/FaqGroup/FaqGroup.tsx +3 -3
  57. package/dist/src/components/organisms/FeaturesRatafiaContent/FeaturesRatafiaContent.js +2 -2
  58. package/dist/src/components/organisms/FeaturesRatafiaContent/FeaturesRatafiaContent.styled.d.ts +1 -0
  59. package/dist/src/components/organisms/FeaturesRatafiaContent/FeaturesRatafiaContent.styled.js +27 -0
  60. package/dist/src/components/organisms/FeaturesRatafiaContent/{FeaturesRatafiaContent.scss → FeaturesRatafiaContent.styled.ts} +4 -4
  61. package/dist/src/components/organisms/FeaturesRatafiaContent/FeaturesRatafiaContent.tsx +3 -3
  62. package/dist/src/components/organisms/GuidelinesContent/GuidelinesContent.js +3 -3
  63. package/dist/src/components/organisms/GuidelinesContent/GuidelinesContent.styled.d.ts +1 -0
  64. package/dist/src/components/organisms/GuidelinesContent/GuidelinesContent.styled.js +138 -0
  65. package/dist/src/components/organisms/GuidelinesContent/{GuidelinesContent.scss → GuidelinesContent.styled.ts} +17 -17
  66. package/dist/src/components/organisms/GuidelinesContent/GuidelinesContent.tsx +3 -3
  67. package/dist/src/components/organisms/JumbotronRatafiaContent/JumbotronRatafiaContent.js +2 -2
  68. package/dist/src/components/organisms/JumbotronRatafiaContent/JumbotronRatafiaContent.styled.d.ts +1 -0
  69. package/dist/src/components/organisms/JumbotronRatafiaContent/JumbotronRatafiaContent.styled.js +26 -0
  70. package/dist/src/components/organisms/JumbotronRatafiaContent/{JumbotronRatafiaContent.scss → JumbotronRatafiaContent.styled.ts} +6 -7
  71. package/dist/src/components/organisms/JumbotronRatafiaContent/JumbotronRatafiaContent.tsx +3 -3
  72. package/dist/src/components/organisms/KeyFactsLoadingContentRatafia/KeyFactsLoadingContentRatafia.js +2 -2
  73. package/dist/src/components/organisms/KeyFactsLoadingContentRatafia/KeyFactsLoadingContentRatafia.styled.d.ts +1 -0
  74. package/dist/src/components/organisms/KeyFactsLoadingContentRatafia/KeyFactsLoadingContentRatafia.styled.js +144 -0
  75. package/dist/src/components/organisms/KeyFactsLoadingContentRatafia/{KeyFactsLoadingContentRatafia.scss → KeyFactsLoadingContentRatafia.styled.ts} +24 -25
  76. package/dist/src/components/organisms/KeyFactsLoadingContentRatafia/KeyFactsLoadingContentRatafia.tsx +3 -3
  77. package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafia.js +2 -2
  78. package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafia.styled.d.ts +1 -0
  79. package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafia.styled.js +21 -0
  80. package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafia.styled.ts +22 -0
  81. package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafia.tsx +3 -3
  82. package/dist/src/components/organisms/LanguageSelectorMobile/LanguageSelectorMobile.js +2 -2
  83. package/dist/src/components/organisms/LanguageSelectorMobile/LanguageSelectorMobile.styled.d.ts +5 -0
  84. package/dist/src/components/organisms/LanguageSelectorMobile/{LanguageSelectorMobile.scss → LanguageSelectorMobile.styled.js} +6 -6
  85. package/dist/src/components/organisms/LanguageSelectorMobile/LanguageSelectorMobile.styled.ts +70 -0
  86. package/dist/src/components/organisms/LanguageSelectorMobile/LanguageSelectorMobile.tsx +3 -3
  87. package/dist/src/components/organisms/LayoutRatafia/LayoutRatafia.js +2 -2
  88. package/dist/src/components/organisms/LayoutRatafia/LayoutRatafia.styled.d.ts +1 -0
  89. package/dist/src/components/organisms/LayoutRatafia/LayoutRatafia.styled.js +91 -0
  90. package/dist/src/components/organisms/LayoutRatafia/{LayoutRatafia.scss → LayoutRatafia.styled.ts} +12 -13
  91. package/dist/src/components/organisms/LayoutRatafia/LayoutRatafia.tsx +3 -3
  92. package/dist/src/components/organisms/ListStepsGetForm/ListStepsGetForm.js +2 -2
  93. package/dist/src/components/organisms/ListStepsGetForm/ListStepsGetForm.styled.d.ts +1 -0
  94. package/dist/src/components/organisms/ListStepsGetForm/ListStepsGetForm.styled.js +34 -0
  95. package/dist/src/components/organisms/ListStepsGetForm/{ListStepsGetForm.scss → ListStepsGetForm.styled.ts} +7 -7
  96. package/dist/src/components/organisms/ListStepsGetForm/ListStepsGetForm.tsx +3 -3
  97. package/dist/src/components/organisms/LoginRatafiaContent/LoginRatafiaContent.js +2 -2
  98. package/dist/src/components/organisms/LoginRatafiaContent/LoginRatafiaContent.styled.d.ts +1 -0
  99. package/dist/src/components/organisms/LoginRatafiaContent/LoginRatafiaContent.styled.js +14 -0
  100. package/dist/src/components/organisms/LoginRatafiaContent/LoginRatafiaContent.styled.ts +15 -0
  101. package/dist/src/components/organisms/LoginRatafiaContent/LoginRatafiaContent.tsx +3 -3
  102. package/dist/src/components/organisms/MobileBottomBar/MobileBottomBar.js +4 -8
  103. package/dist/src/components/organisms/MobileBottomBar/MobileBottomBar.styled.d.ts +1 -0
  104. package/dist/src/components/organisms/MobileBottomBar/MobileBottomBar.styled.js +45 -0
  105. package/dist/src/components/organisms/MobileBottomBar/{MobileBottomBar.scss → MobileBottomBar.styled.ts} +6 -6
  106. package/dist/src/components/organisms/MobileBottomBar/MobileBottomBar.tsx +5 -10
  107. package/dist/src/components/organisms/MobileBottomBar/MobileBottomBarProps.types.d.ts +0 -1
  108. package/dist/src/components/organisms/MobileBottomBar/MobileBottomBarProps.types.ts +0 -1
  109. package/dist/src/components/organisms/StepsRatafiaContent/StepsRatafiaContent.js +2 -2
  110. package/dist/src/components/organisms/StepsRatafiaContent/StepsRatafiaContent.styled.d.ts +1 -0
  111. package/dist/src/components/organisms/StepsRatafiaContent/StepsRatafiaContent.styled.js +11 -0
  112. package/dist/src/components/organisms/StepsRatafiaContent/StepsRatafiaContent.styled.ts +12 -0
  113. package/dist/src/components/organisms/StepsRatafiaContent/StepsRatafiaContent.tsx +3 -3
  114. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.js +3 -3
  115. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.styled.d.ts +1 -0
  116. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.styled.js +49 -0
  117. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.styled.ts +50 -0
  118. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.tsx +3 -3
  119. package/dist/src/components/sections/BlogSection/BlogSection.js +4 -5
  120. package/dist/src/components/sections/BlogSection/BlogSection.styled.js +0 -21
  121. package/dist/src/components/sections/BlogSection/BlogSection.styled.ts +0 -21
  122. package/dist/src/components/sections/BlogSection/BlogSection.tsx +6 -10
  123. package/dist/src/components/sections/BlogSection/BlogSectionProps.types.d.ts +1 -2
  124. package/dist/src/components/sections/BlogSection/BlogSectionProps.types.ts +1 -2
  125. package/dist/src/custom.d.ts +1 -1
  126. package/dist/src/globalStyles/styles.scss +0 -22
  127. package/dist/tsconfig.build.tsbuildinfo +1 -1
  128. package/package.json +1 -1
  129. package/dist/images/svg/arrow-right-24px-outlined.svg +0 -3
  130. package/dist/src/components/organisms/Accordion/Accordion.scss +0 -4
  131. package/dist/src/components/organisms/ArticlesList/ArticlesList.scss +0 -12
  132. package/dist/src/components/organisms/AsSeeInContent/AsSeeInContent.scss +0 -22
  133. package/dist/src/components/organisms/CookiePolicyBar/CookiePolicyBar.scss +0 -54
  134. package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafia.scss +0 -23
  135. package/dist/src/components/organisms/LoginRatafiaContent/LoginRatafiaContent.scss +0 -16
  136. package/dist/src/components/organisms/StepsRatafiaContent/StepsRatafiaContent.scss +0 -12
  137. package/dist/src/components/sections/BlogSection/BlogSection.scss +0 -54
@@ -0,0 +1,45 @@
1
+ import { device } from '../../../globalStyles/breakpoints';
2
+ import styled from 'styled-components';
3
+ export const MobileBottomBarStyled = styled.div `
4
+ background: var(--others-white);
5
+ position: fixed;
6
+ display: flex;
7
+ flex-direction: row;
8
+ justify-content: space-between;
9
+ bottom: 0;
10
+ height: 3.25rem;
11
+ width: 100%;
12
+ box-shadow: var(--box-shadow-container);
13
+ z-index: 1;
14
+
15
+ @media ${device['portrait-tablets']} {
16
+ display: none;
17
+ }
18
+
19
+ .mobile-bottom-bar--active {
20
+ display: flex;
21
+ }
22
+
23
+ .e-button {
24
+ max-height: 2.8rem;
25
+ margin: 0 0.5rem;
26
+ width: 2.75rem;
27
+ min-width: 2.75rem;
28
+ padding: 0;
29
+ outline: none;
30
+ display: flex;
31
+ align-items: center;
32
+ justify-content: center;
33
+ background-color: var(--primary-main);
34
+ border-color: var(--primary-main);
35
+
36
+ &:hover {
37
+ cursor: pointer;
38
+ }
39
+
40
+ svg {
41
+ width: 24px;
42
+ margin: 0;
43
+ }
44
+ }
45
+ `;
@@ -1,7 +1,7 @@
1
- @import '../../../globalStyles/variables.scss';
2
- @import '../../../globalStyles/mediaqueries.scss';
1
+ import { device } from '../../../globalStyles/breakpoints'
2
+ import styled from 'styled-components'
3
3
 
4
- .mobile-bottom-bar {
4
+ export const MobileBottomBarStyled = styled.div`
5
5
  background: var(--others-white);
6
6
  position: fixed;
7
7
  display: flex;
@@ -13,11 +13,11 @@
13
13
  box-shadow: var(--box-shadow-container);
14
14
  z-index: 1;
15
15
 
16
- @include portrait-tablets {
16
+ @media ${device['portrait-tablets']} {
17
17
  display: none;
18
18
  }
19
19
 
20
- &--active {
20
+ .mobile-bottom-bar--active {
21
21
  display: flex;
22
22
  }
23
23
 
@@ -43,4 +43,4 @@
43
43
  margin: 0;
44
44
  }
45
45
  }
46
- }
46
+ `
@@ -1,23 +1,18 @@
1
1
  /* eslint-disable @typescript-eslint/no-unsafe-member-access */
2
2
  import React, { type FC } from 'react'
3
- import classNames from 'classnames'
4
3
 
5
4
  import { Button, SidemenuTab } from '../../atoms'
6
5
  import { type MobileBottomBarProps } from './MobileBottomBarProps.types'
7
- // import './MobileBottomBar.scss'
6
+ import { MobileBottomBarStyled } from './MobileBottomBar.styled'
8
7
 
9
- const MobileBottomBar: FC<MobileBottomBarProps> = ({ children, list, active }) => {
8
+ const MobileBottomBar: FC<MobileBottomBarProps> = ({ children, list }) => {
10
9
  if (children === undefined && list?.length === 0) return null
11
10
 
12
- const classnames = classNames('mobile-bottom-bar', {
13
- 'mobile-bottom-bar--active': active
14
- })
15
-
16
- if (children !== undefined) return <div className={classnames}>{children}</div>
11
+ if (children !== undefined) return <MobileBottomBarStyled>{children}</MobileBottomBarStyled>
17
12
  if (list === undefined) return null
18
13
 
19
14
  return (
20
- <div className={classnames}>
15
+ <MobileBottomBarStyled>
21
16
  {list.map((tab, index) => {
22
17
  if (tab.type === 'button') {
23
18
  return (
@@ -28,7 +23,7 @@ const MobileBottomBar: FC<MobileBottomBarProps> = ({ children, list, active }) =
28
23
  }
29
24
  return <SidemenuTab key={index} mobile={true} {...tab} />
30
25
  })}
31
- </div>
26
+ </MobileBottomBarStyled>
32
27
  )
33
28
  }
34
29
 
@@ -1,5 +1,4 @@
1
1
  export interface MobileBottomBarProps {
2
- active?: boolean;
3
2
  list?: any[];
4
3
  children?: React.ReactNode;
5
4
  }
@@ -1,6 +1,5 @@
1
1
  /* eslint-disable @typescript-eslint/no-explicit-any */
2
2
  export interface MobileBottomBarProps {
3
- active?: boolean
4
3
  list?: any[]
5
4
  children?: React.ReactNode
6
5
  }
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { StepRatafiaCardList } from '../../molecules';
3
- // import './StepsRatafiaContent.scss'
3
+ import { StepsRatafiaContentStyled } from './StepsRatafiaContent.styled';
4
4
  const StepsRatafiaContent = ({ title, steps }) => {
5
- return (_jsxs("div", { className: 'steps-ratafia-content', children: [_jsx("h2", { className: 'sans-serif --super-large --bold-weight steps-ratafia-content__title', children: title }), _jsx(StepRatafiaCardList, { steps: 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 })] }));
6
6
  };
7
7
  export default StepsRatafiaContent;
@@ -0,0 +1 @@
1
+ export declare const StepsRatafiaContentStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -0,0 +1,11 @@
1
+ import styled from 'styled-components';
2
+ export const StepsRatafiaContentStyled = styled.div `
3
+ width: 100%;
4
+ display: flex;
5
+ flex-direction: column;
6
+ gap: 1.5rem;
7
+
8
+ .steps-ratafia-content__title {
9
+ color: var(--neutral-neutral-1);
10
+ }
11
+ `;
@@ -0,0 +1,12 @@
1
+ import styled from 'styled-components'
2
+
3
+ export const StepsRatafiaContentStyled = styled.div`
4
+ width: 100%;
5
+ display: flex;
6
+ flex-direction: column;
7
+ gap: 1.5rem;
8
+
9
+ .steps-ratafia-content__title {
10
+ color: var(--neutral-neutral-1);
11
+ }
12
+ `
@@ -2,14 +2,14 @@ import React, { type FC } from 'react'
2
2
 
3
3
  import { StepRatafiaCardList } from '../../molecules'
4
4
  import { type StepsRatafiaContentProps } from './StepsRatafiaContentProps.types'
5
- // import './StepsRatafiaContent.scss'
5
+ import { StepsRatafiaContentStyled } from './StepsRatafiaContent.styled'
6
6
 
7
7
  const StepsRatafiaContent: FC<StepsRatafiaContentProps> = ({ title, steps }) => {
8
8
  return (
9
- <div className='steps-ratafia-content'>
9
+ <StepsRatafiaContentStyled>
10
10
  <h2 className='sans-serif --super-large --bold-weight steps-ratafia-content__title'>{title}</h2>
11
11
  <StepRatafiaCardList steps={steps} />
12
- </div>
12
+ </StepsRatafiaContentStyled>
13
13
  )
14
14
  }
15
15
 
@@ -1,7 +1,7 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { RichTextInner } from '../../atoms';
3
- // import './TryOurFreeLegalBlogsContent.scss'
3
+ import { TryOurFreeLegalBlogsContentStyled } from './TryOurFreeLegalBlogsContent.styled';
4
4
  const TryOurFreeLegalBlogsContent = ({ title, image, children }) => {
5
- return (_jsxs(_Fragment, { 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 })] }));
5
+ return (_jsxs(TryOurFreeLegalBlogsContentStyled, { 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 })] }));
6
6
  };
7
7
  export default TryOurFreeLegalBlogsContent;
@@ -0,0 +1 @@
1
+ export declare const TryOurFreeLegalBlogsContentStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -0,0 +1,49 @@
1
+ import { device } from '../../../globalStyles/breakpoints';
2
+ import styled from 'styled-components';
3
+ export const TryOurFreeLegalBlogsContentStyled = styled.div `
4
+ .try-our-free-legal-blogs-section__texts {
5
+ flex-basis: 50%;
6
+ display: flex;
7
+ flex-direction: column;
8
+ justify-content: center;
9
+ margin-bottom: 1rem;
10
+ margin-right: 0;
11
+ color: var(--neutral-neutral-1);
12
+ font-style: normal;
13
+ font-weight: 400;
14
+ letter-spacing: -0.3px;
15
+
16
+ @media ${device['landscape-tablets']} {
17
+ margin-right: 3rem;
18
+ margin-bottom: 0;
19
+ }
20
+
21
+ &__title {
22
+ font-family: var(--font-serif);
23
+ font-size: 32px;
24
+ line-height: 42px;
25
+ margin-bottom: 2rem;
26
+ text-align: center;
27
+ font-weight: 400;
28
+
29
+ @media ${device['landscape-tablets']} {
30
+ text-align: left;
31
+ }
32
+ }
33
+
34
+ &__body {
35
+ font-family: var(--font-sans);
36
+ font-size: 16px;
37
+ line-height: 22px;
38
+
39
+ a {
40
+ color: var(--primary-main-light-1);
41
+ font-weight: 400 !important;
42
+ }
43
+ }
44
+ }
45
+
46
+ .try-our-free-legal-blogs-section__image {
47
+ flex-basis: 50%;
48
+ }
49
+ `;
@@ -0,0 +1,50 @@
1
+ import { device } from '../../../globalStyles/breakpoints'
2
+ import styled from 'styled-components'
3
+
4
+ export const TryOurFreeLegalBlogsContentStyled = styled.div`
5
+ .try-our-free-legal-blogs-section__texts {
6
+ flex-basis: 50%;
7
+ display: flex;
8
+ flex-direction: column;
9
+ justify-content: center;
10
+ margin-bottom: 1rem;
11
+ margin-right: 0;
12
+ color: var(--neutral-neutral-1);
13
+ font-style: normal;
14
+ font-weight: 400;
15
+ letter-spacing: -0.3px;
16
+
17
+ @media ${device['landscape-tablets']} {
18
+ margin-right: 3rem;
19
+ margin-bottom: 0;
20
+ }
21
+
22
+ &__title {
23
+ font-family: var(--font-serif);
24
+ font-size: 32px;
25
+ line-height: 42px;
26
+ margin-bottom: 2rem;
27
+ text-align: center;
28
+ font-weight: 400;
29
+
30
+ @media ${device['landscape-tablets']} {
31
+ text-align: left;
32
+ }
33
+ }
34
+
35
+ &__body {
36
+ font-family: var(--font-sans);
37
+ font-size: 16px;
38
+ line-height: 22px;
39
+
40
+ a {
41
+ color: var(--primary-main-light-1);
42
+ font-weight: 400 !important;
43
+ }
44
+ }
45
+ }
46
+
47
+ .try-our-free-legal-blogs-section__image {
48
+ flex-basis: 50%;
49
+ }
50
+ `
@@ -2,17 +2,17 @@ import React, { type FC } from 'react'
2
2
 
3
3
  import { RichTextInner } from '../../atoms'
4
4
  import { type TryOurFreeLegalBlogsContentProps } from './TryOurFreeLegalBlogsContentProps.types'
5
- // import './TryOurFreeLegalBlogsContent.scss'
5
+ import { TryOurFreeLegalBlogsContentStyled } from './TryOurFreeLegalBlogsContent.styled'
6
6
 
7
7
  const TryOurFreeLegalBlogsContent: FC<TryOurFreeLegalBlogsContentProps> = ({ title, image, children }) => {
8
8
  return (
9
- <>
9
+ <TryOurFreeLegalBlogsContentStyled>
10
10
  <div className='try-our-free-legal-blogs-section__texts'>
11
11
  <h2 className='try-our-free-legal-blogs-section__texts__title'>{title}</h2>
12
12
  <RichTextInner customClass='try-our-free-legal-blogs-section__texts__body'>{children}</RichTextInner>
13
13
  </div>
14
14
  <div className='try-our-free-legal-blogs-section__image'>{image}</div>
15
- </>
15
+ </TryOurFreeLegalBlogsContentStyled>
16
16
  )
17
17
  }
18
18
 
@@ -1,12 +1,11 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Button, RichTextStrapi } from '../../atoms';
3
2
  import { ArticlesList } from '../../organisms';
4
3
  import { BlogSectionStyled } from './BlogSection.styled';
4
+ import { Button } from '../../atoms';
5
5
  // import './BlogSection.scss'
6
- const BlogSection = ({ blogTitle, blogCta = null, blogDescription = null, articles }) => {
6
+ const BlogSection = ({ blogTitle, blogCta, articles }) => {
7
7
  if (articles.articles?.length === 0)
8
- return;
9
- const categoryProductTitle = !!blogDescription;
10
- return (_jsxs(BlogSectionStyled, { className: 'blog', children: [_jsx("h2", { className: `serif --super-large blog__title ${categoryProductTitle ? 'category-product-title' : ''}`, children: blogTitle }), blogDescription && _jsx(RichTextStrapi, { className: 'blog__description', html: blogDescription }), _jsx(ArticlesList, { articles: articles.articles, isCategoryProductPage: categoryProductTitle }), blogCta && _jsx(Button, { dataQa: '', color: 'secondary', label: blogCta, givenClass: 'cta-button', link: '/articles' })] }));
8
+ return null;
9
+ return (_jsxs(BlogSectionStyled, { className: 'blog', children: [_jsx("h2", { className: 'serif --super-large blog__title', children: blogTitle }), _jsx(ArticlesList, { articles: articles.articles }), _jsx(Button, { dataQa: '', color: 'secondary', label: blogCta, givenClass: 'cta-button', link: '/articles' })] }));
11
10
  };
12
11
  export default BlogSection;
@@ -19,27 +19,6 @@ export const BlogSectionStyled = styled.div `
19
19
  @media ${device.laptop} {
20
20
  margin-bottom: 3rem;
21
21
  }
22
-
23
- &.category-product-title {
24
- margin-bottom: 0;
25
- font-family: var(--font-sans);
26
- font-size: 28px;
27
- font-weight: 700;
28
- line-height: 32px;
29
- letter-spacing: -0.3px;
30
- text-align: left;
31
- }
32
- }
33
-
34
- .blog__description {
35
- font-family: var(--font-sans);
36
- font-size: 16px;
37
- font-weight: 400;
38
- line-height: 22px;
39
- letter-spacing: -0.3px;
40
- text-align: left;
41
- color: #3d4042;
42
- margin: 1rem 0 1.5rem 0;
43
22
  }
44
23
 
45
24
  .cta-button {
@@ -20,27 +20,6 @@ export const BlogSectionStyled = styled.div`
20
20
  @media ${device.laptop} {
21
21
  margin-bottom: 3rem;
22
22
  }
23
-
24
- &.category-product-title {
25
- margin-bottom: 0;
26
- font-family: var(--font-sans);
27
- font-size: 28px;
28
- font-weight: 700;
29
- line-height: 32px;
30
- letter-spacing: -0.3px;
31
- text-align: left;
32
- }
33
- }
34
-
35
- .blog__description {
36
- font-family: var(--font-sans);
37
- font-size: 16px;
38
- font-weight: 400;
39
- line-height: 22px;
40
- letter-spacing: -0.3px;
41
- text-align: left;
42
- color: #3d4042;
43
- margin: 1rem 0 1.5rem 0;
44
23
  }
45
24
 
46
25
  .cta-button {
@@ -1,24 +1,20 @@
1
1
  /* eslint-disable @typescript-eslint/no-unnecessary-condition */
2
2
  import React, { type FC } from 'react'
3
3
 
4
- import { Button, RichTextStrapi } from '../../atoms'
5
4
  import { ArticlesList } from '../../organisms'
6
5
  import { type BlogSectionProps } from './BlogSectionProps.types'
7
6
  import { BlogSectionStyled } from './BlogSection.styled'
7
+ import { Button } from '../../atoms'
8
8
  // import './BlogSection.scss'
9
9
 
10
- const BlogSection: FC<BlogSectionProps> = ({ blogTitle, blogCta = null, blogDescription = null, articles }) => {
11
- if (articles.articles?.length === 0) return
12
- const categoryProductTitle = !!blogDescription
10
+ const BlogSection: FC<BlogSectionProps> = ({ blogTitle, blogCta, articles }) => {
11
+ if (articles.articles?.length === 0) return null
13
12
 
14
13
  return (
15
14
  <BlogSectionStyled className={'blog'}>
16
- <h2 className={`serif --super-large blog__title ${categoryProductTitle ? 'category-product-title' : ''}`}>
17
- {blogTitle}
18
- </h2>
19
- {blogDescription && <RichTextStrapi className='blog__description' html={blogDescription} />}
20
- <ArticlesList articles={articles.articles} isCategoryProductPage={categoryProductTitle} />
21
- {blogCta && <Button dataQa='' color='secondary' label={blogCta} givenClass='cta-button' link={'/articles'} />}
15
+ <h2 className={'serif --super-large blog__title'}>{blogTitle}</h2>
16
+ <ArticlesList articles={articles.articles} />
17
+ <Button dataQa='' color='secondary' label={blogCta} givenClass='cta-button' link={'/articles'} />
22
18
  </BlogSectionStyled>
23
19
  )
24
20
  }
@@ -1,7 +1,6 @@
1
1
  import { type ArticlesListProps } from '../../organisms';
2
2
  export interface BlogSectionProps {
3
3
  blogTitle: string;
4
- blogCta?: string | null;
5
- blogDescription?: string | null;
4
+ blogCta: string;
6
5
  articles: ArticlesListProps;
7
6
  }
@@ -2,7 +2,6 @@ import { type ArticlesListProps } from '../../organisms'
2
2
 
3
3
  export interface BlogSectionProps {
4
4
  blogTitle: string
5
- blogCta?: string | null
6
- blogDescription?: string | null
5
+ blogCta: string
7
6
  articles: ArticlesListProps
8
7
  }
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable @typescript-eslint/no-explicit-any */
2
2
  declare module '*.svg' {
3
- const content: string
3
+ const content: any
4
4
  export default content
5
5
  }
6
6
 
@@ -18,27 +18,5 @@
18
18
  @import 'tippy.js/dist/tippy.css';
19
19
  @import '../components/atoms/Tooltip/Tooltip.scss';
20
20
 
21
- @import '../components/organisms/AboutUsContent/AboutUsContent.scss';
22
- @import '../components/organisms/Accordion/Accordion.scss';
23
- @import '../components/organisms/ArticlesList/ArticlesList.scss';
24
- @import '../components/organisms/AsSeeInContent/AsSeeInContent.scss';
25
- @import '../components/organisms/CardFunctionality/CardFunctionality.scss';
26
- @import '../components/organisms/ContactJumbotron/ContactJumbotron.scss';
27
- @import '../components/organisms/CookiePolicyBar/CookiePolicyBar.scss';
28
- @import '../components/organisms/ErrorContentRatafia/ErrorContentRatafia.scss';
29
- @import '../components/organisms/FaqGroup/FaqGroup.scss';
30
- @import '../components/organisms/FeaturesRatafiaContent/FeaturesRatafiaContent.scss';
31
- @import '../components/organisms/GuidelinesContent/GuidelinesContent.scss';
32
- @import '../components/organisms/JumbotronRatafiaContent/JumbotronRatafiaContent.scss';
33
- @import '../components/organisms/KeyFactsLoadingContentRatafia/KeyFactsLoadingContentRatafia.scss';
34
- @import '../components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafia.scss';
35
- @import '../components/organisms/LanguageSelectorMobile/LanguageSelectorMobile.scss';
36
- @import '../components/organisms/LayoutRatafia/LayoutRatafia.scss';
37
- @import '../components/organisms/ListStepsGetForm/ListStepsGetForm.scss';
38
- @import '../components/organisms/LoginRatafiaContent/LoginRatafiaContent.scss';
39
- @import '../components/organisms/MobileBottomBar/MobileBottomBar.scss';
40
- @import '../components/organisms/StepsRatafiaContent/StepsRatafiaContent.scss';
41
- @import '../components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.scss';
42
-
43
21
  @import '../components/molecules/TextInput/TextInput.scss';
44
22
  @import '../components/molecules/TooltipMenu/TooltipMenu.scss';