@npm_leadtech/legal-lib-components 5.7.1 → 5.7.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.
- package/dist/css/styles.css +18 -1167
- package/dist/images/svg/arrow-right-24px-outlined.svg +3 -0
- package/dist/src/components/atoms/CardPane/CardPane.styled.js +19 -1
- package/dist/src/components/atoms/CardPane/CardPane.styled.ts +19 -1
- package/dist/src/components/atoms/CardPane/CardPaneInfo.js +5 -4
- package/dist/src/components/atoms/CardPane/CardPaneInfo.tsx +14 -3
- package/dist/src/components/atoms/CardPane/CardPaneProps.types.d.ts +1 -0
- package/dist/src/components/atoms/CardPane/CardPaneProps.types.ts +1 -0
- package/dist/src/components/atoms/ContactCard/ContactCard.js +3 -2
- package/dist/src/components/atoms/ContactCard/ContactCard.styled.js +28 -26
- package/dist/src/components/atoms/ContactCard/ContactCard.styled.ts +28 -26
- package/dist/src/components/atoms/ContactCard/ContactCard.tsx +22 -16
- package/dist/src/components/atoms/DocumentStatus/DocumentStatus.js +1 -5
- package/dist/src/components/atoms/DocumentStatus/DocumentStatus.styled.js +0 -14
- package/dist/src/components/atoms/DocumentStatus/DocumentStatus.styled.ts +0 -14
- package/dist/src/components/atoms/DocumentStatus/DocumentStatus.tsx +1 -10
- package/dist/src/components/atoms/DocumentStatus/DocumentStatusProps.types.d.ts +0 -1
- package/dist/src/components/atoms/DocumentStatus/DocumentStatusProps.types.ts +0 -1
- package/dist/src/components/atoms/RichTextStrapi/RichTextStrapi.styled.js +3 -5
- package/dist/src/components/atoms/RichTextStrapi/RichTextStrapi.styled.ts +3 -5
- package/dist/src/components/molecules/Article/Article.js +3 -2
- package/dist/src/components/molecules/Article/Article.scss +17 -0
- package/dist/src/components/molecules/Article/Article.tsx +17 -2
- package/dist/src/components/molecules/Article/ArticleProps.types.d.ts +1 -0
- package/dist/src/components/molecules/Article/ArticleProps.types.ts +1 -0
- package/dist/src/components/molecules/ExpertCardList/ExpertCardList.scss +3 -2
- package/dist/src/components/molecules/RatafiaSubscriptionCard/RatafiaSubscriptionCard.scss +1 -1
- package/dist/src/components/organisms/ArticlesList/ArticlesList.js +2 -2
- package/dist/src/components/organisms/ArticlesList/ArticlesList.tsx +2 -2
- package/dist/src/components/organisms/ArticlesList/ArticlesListProps.types.d.ts +1 -0
- package/dist/src/components/organisms/ArticlesList/ArticlesListProps.types.ts +1 -0
- package/dist/src/components/pages/ErrorRatafiaPage/ErrorRatafiaPage.js +2 -2
- package/dist/src/components/pages/ErrorRatafiaPage/ErrorRatafiaPage.styled.d.ts +1 -0
- package/dist/src/components/pages/ErrorRatafiaPage/ErrorRatafiaPage.styled.js +30 -0
- package/dist/src/components/pages/ErrorRatafiaPage/{ErrorRatafiaPage.scss → ErrorRatafiaPage.styled.ts} +3 -4
- package/dist/src/components/pages/ErrorRatafiaPage/ErrorRatafiaPage.tsx +4 -3
- package/dist/src/components/pages/FaqsPage/FaqsPage.js +2 -2
- package/dist/src/components/pages/FaqsPage/FaqsPage.styled.d.ts +1 -0
- package/dist/src/components/pages/FaqsPage/FaqsPage.styled.js +59 -0
- package/dist/src/components/pages/FaqsPage/{FaqsPage.scss → FaqsPage.styled.ts} +3 -4
- package/dist/src/components/pages/FaqsPage/FaqsPage.tsx +4 -3
- package/dist/src/components/pages/KeyFactsResultRatafiaPage/KeyFactsResultRatafiaPage.js +2 -2
- package/dist/src/components/pages/KeyFactsResultRatafiaPage/KeyFactsResultRatafiaPage.styled.d.ts +1 -0
- package/dist/src/components/pages/KeyFactsResultRatafiaPage/{KeyFactsResultRatafiaPage.scss → KeyFactsResultRatafiaPage.styled.js} +4 -5
- package/dist/src/components/pages/KeyFactsResultRatafiaPage/KeyFactsResultRatafiaPage.styled.ts +23 -0
- package/dist/src/components/pages/KeyFactsResultRatafiaPage/KeyFactsResultRatafiaPage.tsx +4 -3
- package/dist/src/components/pages/LoginRatafiaPage/LoginRatafiaPage.js +2 -2
- package/dist/src/components/pages/LoginRatafiaPage/LoginRatafiaPage.styled.d.ts +1 -0
- package/dist/src/components/pages/LoginRatafiaPage/{LoginPageRatafia.scss → LoginRatafiaPage.styled.js} +5 -5
- package/dist/src/components/pages/LoginRatafiaPage/LoginRatafiaPage.styled.ts +24 -0
- package/dist/src/components/pages/LoginRatafiaPage/LoginRatafiaPage.tsx +3 -3
- package/dist/src/components/sections/AboutUsSection/AboutUsSection.js +2 -2
- package/dist/src/components/sections/AboutUsSection/AboutUsSection.styled.d.ts +1 -0
- package/dist/src/components/sections/AboutUsSection/AboutUsSection.styled.js +53 -0
- package/dist/src/components/sections/AboutUsSection/AboutUsSection.styled.ts +54 -0
- package/dist/src/components/sections/AboutUsSection/AboutUsSection.tsx +3 -3
- package/dist/src/components/sections/AsSeeInSection/AsSeeInSection.js +2 -2
- package/dist/src/components/sections/AsSeeInSection/AsSeeInSection.scss +1 -0
- package/dist/src/components/sections/AsSeeInSection/AsSeeInSection.styled.d.ts +1 -0
- package/dist/src/components/sections/AsSeeInSection/AsSeeInSection.styled.js +36 -0
- package/dist/src/components/sections/AsSeeInSection/AsSeeInSection.styled.ts +37 -0
- package/dist/src/components/sections/AsSeeInSection/AsSeeInSection.tsx +3 -3
- package/dist/src/components/sections/AsideMenuSection/AsideMenuSection.js +2 -2
- package/dist/src/components/sections/AsideMenuSection/AsideMenuSection.styled.d.ts +1 -0
- package/dist/src/components/sections/AsideMenuSection/AsideMenuSection.styled.js +51 -0
- package/dist/src/components/sections/AsideMenuSection/AsideMenuSection.styled.ts +52 -0
- package/dist/src/components/sections/AsideMenuSection/AsideMenuSection.tsx +3 -3
- package/dist/src/components/sections/BenefitsRatafiaSection/BenefitsRatafiaSection.js +2 -2
- package/dist/src/components/sections/BenefitsRatafiaSection/BenefitsRatafiaSection.styled.d.ts +1 -0
- package/dist/src/components/sections/BenefitsRatafiaSection/BenefitsRatafiaSection.styled.js +54 -0
- package/dist/src/components/sections/BenefitsRatafiaSection/BenefitsRatafiaSection.styled.ts +55 -0
- package/dist/src/components/sections/BenefitsRatafiaSection/BenefitsRatafiaSection.tsx +3 -3
- package/dist/src/components/sections/BlogSection/BlogSection.js +6 -4
- package/dist/src/components/sections/BlogSection/BlogSection.scss +21 -0
- package/dist/src/components/sections/BlogSection/BlogSection.styled.d.ts +1 -0
- package/dist/src/components/sections/BlogSection/BlogSection.styled.js +53 -0
- package/dist/src/components/sections/BlogSection/BlogSection.styled.ts +54 -0
- package/dist/src/components/sections/BlogSection/BlogSection.tsx +13 -8
- package/dist/src/components/sections/BlogSection/BlogSectionProps.types.d.ts +2 -1
- package/dist/src/components/sections/BlogSection/BlogSectionProps.types.ts +2 -1
- package/dist/src/components/sections/ContactSection/ContactSection.js +2 -2
- package/dist/src/components/sections/ContactSection/ContactSection.styled.d.ts +1 -0
- package/dist/src/components/sections/ContactSection/ContactSection.styled.js +89 -0
- package/dist/src/components/sections/ContactSection/{ContactSection.scss → ContactSection.styled.ts} +9 -9
- package/dist/src/components/sections/ContactSection/ContactSection.tsx +3 -3
- package/dist/src/components/sections/ExpertsSection/ExpertsSection.js +2 -2
- package/dist/src/components/sections/ExpertsSection/ExpertsSection.scss +0 -1
- package/dist/src/components/sections/ExpertsSection/ExpertsSection.styled.d.ts +1 -0
- package/dist/src/components/sections/ExpertsSection/ExpertsSection.styled.js +27 -0
- package/dist/src/components/sections/ExpertsSection/ExpertsSection.styled.ts +28 -0
- package/dist/src/components/sections/ExpertsSection/ExpertsSection.tsx +3 -3
- package/dist/src/components/sections/FaqSection/FaqSection.js +2 -2
- package/dist/src/components/sections/FaqSection/FaqSection.styled.d.ts +1 -0
- package/dist/src/components/sections/FaqSection/FaqSection.styled.js +29 -0
- package/dist/src/components/sections/FaqSection/FaqSection.styled.ts +30 -0
- package/dist/src/components/sections/FaqSection/FaqSection.tsx +3 -3
- package/dist/src/components/sections/FeaturesRatafiaSection/FeaturesRatafiaSection.js +2 -2
- package/dist/src/components/sections/FeaturesRatafiaSection/FeaturesRatafiaSection.styled.d.ts +1 -0
- package/dist/src/components/sections/FeaturesRatafiaSection/FeaturesRatafiaSection.styled.js +56 -0
- package/dist/src/components/sections/FeaturesRatafiaSection/FeaturesRatafiaSection.styled.ts +57 -0
- package/dist/src/components/sections/FeaturesRatafiaSection/FeaturesRatafiaSection.tsx +3 -3
- package/dist/src/components/sections/FunctionalityCardsSection/FunctionalityCardsSection.js +2 -1
- package/dist/src/components/sections/FunctionalityCardsSection/FunctionalityCardsSection.styled.d.ts +1 -0
- package/dist/src/components/sections/FunctionalityCardsSection/FunctionalityCardsSection.styled.js +14 -0
- package/dist/src/components/sections/FunctionalityCardsSection/FunctionalityCardsSection.styled.ts +15 -0
- package/dist/src/components/sections/FunctionalityCardsSection/FunctionalityCardsSection.tsx +3 -2
- package/dist/src/components/sections/GuidelinesSection/GuidelinesSection.js +2 -2
- package/dist/src/components/sections/GuidelinesSection/GuidelinesSection.styled.d.ts +1 -0
- package/dist/src/components/sections/GuidelinesSection/GuidelinesSection.styled.js +10 -0
- package/dist/src/components/sections/GuidelinesSection/GuidelinesSection.styled.ts +11 -0
- package/dist/src/components/sections/GuidelinesSection/GuidelinesSection.tsx +3 -3
- package/dist/src/components/sections/HowGetYourFormsSection/HowGetYourFormsSection.js +2 -2
- package/dist/src/components/sections/HowGetYourFormsSection/HowGetYourFormsSection.styled.d.ts +1 -0
- package/dist/src/components/sections/HowGetYourFormsSection/HowGetYourFormsSection.styled.js +24 -0
- package/dist/src/components/sections/HowGetYourFormsSection/{HowGetYourFormsSection.scss → HowGetYourFormsSection.styled.ts} +7 -8
- package/dist/src/components/sections/HowGetYourFormsSection/HowGetYourFormsSection.tsx +3 -3
- package/dist/src/components/sections/JumbotronRatafiaSection/JumbotronRatafiaSection.js +2 -2
- package/dist/src/components/sections/JumbotronRatafiaSection/JumbotronRatafiaSection.styled.d.ts +1 -0
- package/dist/src/components/sections/JumbotronRatafiaSection/JumbotronRatafiaSection.styled.js +39 -0
- package/dist/src/components/sections/JumbotronRatafiaSection/JumbotronRatafiaSection.styled.ts +40 -0
- package/dist/src/components/sections/JumbotronRatafiaSection/JumbotronRatafiaSection.tsx +6 -3
- package/dist/src/components/sections/JumbotronSimplifiedSection/JumbotronSimplifiedSection.js +2 -2
- package/dist/src/components/sections/JumbotronSimplifiedSection/JumbotronSimplifiedSection.styled.d.ts +1 -0
- package/dist/src/components/sections/JumbotronSimplifiedSection/JumbotronSimplifiedSection.styled.js +40 -0
- package/dist/src/components/sections/JumbotronSimplifiedSection/JumbotronSimplifiedSection.styled.ts +41 -0
- package/dist/src/components/sections/JumbotronSimplifiedSection/JumbotronSimplifiedSection.tsx +3 -3
- package/dist/src/components/sections/LearnMoreSection/LearnMoreSection.js +2 -2
- package/dist/src/components/sections/LearnMoreSection/LearnMoreSection.styled.d.ts +1 -0
- package/dist/src/components/sections/LearnMoreSection/LearnMoreSection.styled.js +106 -0
- package/dist/src/components/sections/LearnMoreSection/{LearnMoreSection.scss → LearnMoreSection.styled.ts} +12 -12
- package/dist/src/components/sections/LearnMoreSection/LearnMoreSection.tsx +3 -3
- package/dist/src/components/sections/LegalSection/LegalSection.js +2 -2
- package/dist/src/components/sections/LegalSection/LegalSection.styled.d.ts +1 -0
- package/dist/src/components/sections/LegalSection/LegalSection.styled.js +121 -0
- package/dist/src/components/sections/LegalSection/LegalSection.styled.ts +122 -0
- package/dist/src/components/sections/LegalSection/LegalSection.tsx +3 -3
- package/dist/src/components/sections/MidBannerRatafiaSection/MidBannerRatafiaSection.js +2 -2
- package/dist/src/components/sections/MidBannerRatafiaSection/MidBannerRatafiaSection.styled.d.ts +1 -0
- package/dist/src/components/sections/MidBannerRatafiaSection/MidBannerRatafiaSection.styled.js +46 -0
- package/dist/src/components/sections/MidBannerRatafiaSection/MidBannerRatafiaSection.styled.ts +47 -0
- package/dist/src/components/sections/MidBannerRatafiaSection/MidBannerRatafiaSection.tsx +3 -3
- package/dist/src/components/sections/PeopleSayAboutUsSection/PeopleSayAboutUsSection.js +2 -2
- package/dist/src/components/sections/PeopleSayAboutUsSection/PeopleSayAboutUsSection.styled.d.ts +1 -0
- package/dist/src/components/sections/PeopleSayAboutUsSection/PeopleSayAboutUsSection.styled.js +43 -0
- package/dist/src/components/sections/PeopleSayAboutUsSection/PeopleSayAboutUsSection.styled.ts +44 -0
- package/dist/src/components/sections/PeopleSayAboutUsSection/PeopleSayAboutUsSection.tsx +3 -3
- package/dist/src/components/sections/StepsRatafiaSection/StepsRatafiaSection.js +2 -2
- package/dist/src/components/sections/StepsRatafiaSection/StepsRatafiaSection.styled.d.ts +1 -0
- package/dist/src/components/sections/StepsRatafiaSection/StepsRatafiaSection.styled.js +55 -0
- package/dist/src/components/sections/StepsRatafiaSection/StepsRatafiaSection.styled.ts +56 -0
- package/dist/src/components/sections/StepsRatafiaSection/StepsRatafiaSection.tsx +3 -4
- package/dist/src/components/sections/TryItRatafiaSection/TryItRatafiaSection.js +2 -1
- package/dist/src/components/sections/TryItRatafiaSection/TryItRatafiaSection.styled.d.ts +1 -0
- package/dist/src/components/sections/TryItRatafiaSection/TryItRatafiaSection.styled.js +70 -0
- package/dist/src/components/sections/TryItRatafiaSection/TryItRatafiaSection.styled.ts +71 -0
- package/dist/src/components/sections/TryItRatafiaSection/TryItRatafiaSection.tsx +3 -2
- package/dist/src/components/sections/TryOurFreeLegalBlogsSection/TryOurFreeLegalBlogsSection.js +2 -2
- package/dist/src/components/sections/TryOurFreeLegalBlogsSection/TryOurFreeLegalBlogsSection.styled.d.ts +1 -0
- package/dist/src/components/sections/TryOurFreeLegalBlogsSection/TryOurFreeLegalBlogsSection.styled.js +10 -0
- package/dist/src/components/sections/TryOurFreeLegalBlogsSection/TryOurFreeLegalBlogsSection.styled.ts +11 -0
- package/dist/src/components/sections/TryOurFreeLegalBlogsSection/TryOurFreeLegalBlogsSection.tsx +3 -3
- package/dist/src/components/sections/TryUsSection/TryUsSection.js +2 -2
- package/dist/src/components/sections/TryUsSection/TryUsSection.styled.d.ts +1 -0
- package/dist/src/components/sections/TryUsSection/TryUsSection.styled.js +23 -0
- package/dist/src/components/sections/TryUsSection/{TryUsSection.scss → TryUsSection.styled.ts} +5 -5
- package/dist/src/components/sections/TryUsSection/TryUsSection.tsx +3 -3
- package/dist/src/components/sections/UnsubscribeSection/UnsubscribeSection.js +2 -2
- package/dist/src/components/sections/UnsubscribeSection/UnsubscribeSection.styled.d.ts +1 -0
- package/dist/src/components/sections/UnsubscribeSection/UnsubscribeSection.styled.js +63 -0
- package/dist/src/components/sections/UnsubscribeSection/UnsubscribeSection.styled.ts +64 -0
- package/dist/src/components/sections/UnsubscribeSection/UnsubscribeSection.tsx +3 -3
- package/dist/src/components/sections/WhyLawDistrictSection/WhyLawDistrictSection.js +2 -2
- package/dist/src/components/sections/WhyLawDistrictSection/WhyLawDistrictSection.styled.d.ts +1 -0
- package/dist/src/components/sections/WhyLawDistrictSection/WhyLawDistrictSection.styled.js +36 -0
- package/dist/src/components/sections/WhyLawDistrictSection/WhyLawDistrictSection.styled.ts +37 -0
- package/dist/src/components/sections/WhyLawDistrictSection/WhyLawDistrictSection.tsx +3 -4
- package/dist/src/custom.d.ts +1 -1
- package/dist/src/globalStyles/styles.scss +0 -30
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/images/componentsSvg/RatafiaIcon24px.d.ts +0 -6
- package/dist/images/componentsSvg/RatafiaIcon24px.js +0 -2
- package/dist/images/componentsSvg/RatafiaIcon24px.tsx +0 -18
- package/dist/src/components/sections/AboutUsSection/AboutUsSection.scss +0 -52
- package/dist/src/components/sections/AsideMenuSection/AsideMenuSection.scss +0 -50
- package/dist/src/components/sections/BenefitsRatafiaSection/BenefitsRatafiaSection.scss +0 -57
- package/dist/src/components/sections/FaqSection/FaqSection.scss +0 -31
- package/dist/src/components/sections/FeaturesRatafiaSection/FeaturesRatafiaSection.scss +0 -57
- package/dist/src/components/sections/FunctionalityCardsSection/FunctionalityCardsSection.scss +0 -15
- package/dist/src/components/sections/GuidelinesSection/GuidelinesSection.scss +0 -12
- package/dist/src/components/sections/JumbotronRatafiaSection/JumbotronRatafiaSection.scss +0 -41
- package/dist/src/components/sections/JumbotronSimplifiedSection/JumbotronSimplifiedSection.scss +0 -41
- package/dist/src/components/sections/LegalSection/LegalSection.scss +0 -120
- package/dist/src/components/sections/MidBannerRatafiaSection/MidBannerRatafiaSection.scss +0 -47
- package/dist/src/components/sections/PeopleSayAboutUsSection/PeopleSayAboutUsSection.scss +0 -42
- package/dist/src/components/sections/StepsRatafiaSection/StepsRatafiaSection.scss +0 -53
- package/dist/src/components/sections/TryItRatafiaSection/TryItRatafiaSection.scss +0 -69
- package/dist/src/components/sections/TryOurFreeLegalBlogsSection/TryOurFreeLegalBlogsSection.scss +0 -11
- package/dist/src/components/sections/UnsubscribeSection/UnsubscribeSection.scss +0 -62
- package/dist/src/components/sections/WhyLawDistrictSection/WhyLawDistrictSection.scss +0 -35
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M8.70531 0.705315C8.31578 0.31578 7.68422 0.31578 7.29468 0.705316C6.9054 1.0946 6.90511 1.72568 7.29405 2.11531L12.17 7H0.999999C0.447714 7 0 7.44772 0 8C0 8.55229 0.447715 9 1 9H12.17L7.29405 13.8847C6.90511 14.2743 6.9054 14.9054 7.29468 15.2947C7.68422 15.6842 8.31578 15.6842 8.70532 15.2947L15.2929 8.70711C15.6834 8.31658 15.6834 7.68342 15.2929 7.29289L8.70531 0.705315Z" fill="#078080"/>
|
|
3
|
+
</svg>
|
|
@@ -32,15 +32,28 @@ export const CardPaneStyled = styled.div `
|
|
|
32
32
|
}
|
|
33
33
|
&:nth-child(2) {
|
|
34
34
|
text-align: right;
|
|
35
|
+
padding-right: 0;
|
|
35
36
|
@media (min-width: ${size.xxs}) and (max-width: ${size.sm}) {
|
|
36
37
|
text-align: left;
|
|
37
38
|
}
|
|
38
39
|
}
|
|
39
40
|
&:nth-child(3) {
|
|
40
41
|
margin-top: 30px;
|
|
42
|
+
padding-right: 0;
|
|
41
43
|
}
|
|
42
|
-
|
|
44
|
+
|
|
45
|
+
&:nth-child(4) {
|
|
46
|
+
margin-top: 45px;
|
|
47
|
+
text-align: right;
|
|
43
48
|
padding-right: 0;
|
|
49
|
+
@media (min-width: #{$xxs}) and (max-width: #{$sm}) {
|
|
50
|
+
text-align: left;
|
|
51
|
+
margin-top: 16px;
|
|
52
|
+
}
|
|
53
|
+
.pane--title {
|
|
54
|
+
font-size: 0.75rem;
|
|
55
|
+
padding: 0;
|
|
56
|
+
}
|
|
44
57
|
}
|
|
45
58
|
span {
|
|
46
59
|
display: block;
|
|
@@ -51,6 +64,8 @@ export const CardPaneStyled = styled.div `
|
|
|
51
64
|
}
|
|
52
65
|
}
|
|
53
66
|
&--title {
|
|
67
|
+
border: none;
|
|
68
|
+
background: none;
|
|
54
69
|
color: var(--neutral-neutral-2);
|
|
55
70
|
font-size: 0.875rem;
|
|
56
71
|
line-height: 1.29;
|
|
@@ -63,6 +78,9 @@ export const CardPaneStyled = styled.div `
|
|
|
63
78
|
@media ${device.laptop} {
|
|
64
79
|
font-size: 0.875rem;
|
|
65
80
|
}
|
|
81
|
+
&.pane--title--button {
|
|
82
|
+
cursor: pointer;
|
|
83
|
+
}
|
|
66
84
|
}
|
|
67
85
|
&--description {
|
|
68
86
|
color: var(--neutral-main);
|
|
@@ -33,15 +33,28 @@ export const CardPaneStyled = styled.div`
|
|
|
33
33
|
}
|
|
34
34
|
&:nth-child(2) {
|
|
35
35
|
text-align: right;
|
|
36
|
+
padding-right: 0;
|
|
36
37
|
@media (min-width: ${size.xxs}) and (max-width: ${size.sm}) {
|
|
37
38
|
text-align: left;
|
|
38
39
|
}
|
|
39
40
|
}
|
|
40
41
|
&:nth-child(3) {
|
|
41
42
|
margin-top: 30px;
|
|
43
|
+
padding-right: 0;
|
|
42
44
|
}
|
|
43
|
-
|
|
45
|
+
|
|
46
|
+
&:nth-child(4) {
|
|
47
|
+
margin-top: 45px;
|
|
48
|
+
text-align: right;
|
|
44
49
|
padding-right: 0;
|
|
50
|
+
@media (min-width: #{$xxs}) and (max-width: #{$sm}) {
|
|
51
|
+
text-align: left;
|
|
52
|
+
margin-top: 16px;
|
|
53
|
+
}
|
|
54
|
+
.pane--title {
|
|
55
|
+
font-size: 0.75rem;
|
|
56
|
+
padding: 0;
|
|
57
|
+
}
|
|
45
58
|
}
|
|
46
59
|
span {
|
|
47
60
|
display: block;
|
|
@@ -52,6 +65,8 @@ export const CardPaneStyled = styled.div`
|
|
|
52
65
|
}
|
|
53
66
|
}
|
|
54
67
|
&--title {
|
|
68
|
+
border: none;
|
|
69
|
+
background: none;
|
|
55
70
|
color: var(--neutral-neutral-2);
|
|
56
71
|
font-size: 0.875rem;
|
|
57
72
|
line-height: 1.29;
|
|
@@ -64,6 +79,9 @@ export const CardPaneStyled = styled.div`
|
|
|
64
79
|
@media ${device.laptop} {
|
|
65
80
|
font-size: 0.875rem;
|
|
66
81
|
}
|
|
82
|
+
&.pane--title--button {
|
|
83
|
+
cursor: pointer;
|
|
84
|
+
}
|
|
67
85
|
}
|
|
68
86
|
&--description {
|
|
69
87
|
color: var(--neutral-main);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
const CardPaneInfo = ({ description, subdescription, id, title }) => {
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
const CardPaneInfo = ({ description, subdescription, id, title, handleClick }) => {
|
|
3
|
+
const paneTitle = (_jsx(_Fragment, { children: handleClick ? (_jsx("button", { onClick: handleClick, className: 'pane--title pane--title--button', children: title })) : (_jsx("div", { className: 'pane--title', children: title })) }));
|
|
3
4
|
if (description === 'Active' || description === 'Inactive') {
|
|
4
5
|
let descriptionClass;
|
|
5
6
|
if (description === 'Active') {
|
|
@@ -8,8 +9,8 @@ const CardPaneInfo = ({ description, subdescription, id, title }) => {
|
|
|
8
9
|
else if (description === 'Inactive') {
|
|
9
10
|
descriptionClass = 'pane--description--inactive';
|
|
10
11
|
}
|
|
11
|
-
return (_jsxs("div", { className: 'pane-wrapper', children: [
|
|
12
|
+
return (_jsxs("div", { className: 'pane-wrapper', children: [paneTitle, _jsx("div", { "data-testid": 'description-div', className: descriptionClass, children: _jsx("li", { className: 'position', children: _jsx("div", { className: 'marker', children: description }) }) })] }, id));
|
|
12
13
|
}
|
|
13
|
-
return (_jsxs("div", { className: 'pane-wrapper', children: [
|
|
14
|
+
return (_jsxs("div", { className: 'pane-wrapper', children: [paneTitle, _jsxs("div", { className: 'pane--description', children: [description, subdescription !== undefined && _jsx("span", { className: 'pane--description--subdescription', children: subdescription })] })] }, id));
|
|
14
15
|
};
|
|
15
16
|
export default CardPaneInfo;
|
|
@@ -4,7 +4,18 @@ import React, { type FC } from 'react'
|
|
|
4
4
|
|
|
5
5
|
import { type CardPaneInfoProps } from './CardPaneProps.types'
|
|
6
6
|
|
|
7
|
-
const CardPaneInfo: FC<CardPaneInfoProps> = ({ description, subdescription, id, title }) => {
|
|
7
|
+
const CardPaneInfo: FC<CardPaneInfoProps> = ({ description, subdescription, id, title, handleClick }) => {
|
|
8
|
+
const paneTitle = (
|
|
9
|
+
<>
|
|
10
|
+
{handleClick ? (
|
|
11
|
+
<button onClick={handleClick} className='pane--title pane--title--button'>
|
|
12
|
+
{title}
|
|
13
|
+
</button>
|
|
14
|
+
) : (
|
|
15
|
+
<div className='pane--title'>{title}</div>
|
|
16
|
+
)}
|
|
17
|
+
</>
|
|
18
|
+
)
|
|
8
19
|
if (description === 'Active' || description === 'Inactive') {
|
|
9
20
|
let descriptionClass
|
|
10
21
|
if (description === 'Active') {
|
|
@@ -14,7 +25,7 @@ const CardPaneInfo: FC<CardPaneInfoProps> = ({ description, subdescription, id,
|
|
|
14
25
|
}
|
|
15
26
|
return (
|
|
16
27
|
<div key={id} className='pane-wrapper'>
|
|
17
|
-
|
|
28
|
+
{paneTitle}
|
|
18
29
|
<div data-testid='description-div' className={descriptionClass}>
|
|
19
30
|
<li className='position'>
|
|
20
31
|
<div className='marker'>{description}</div>
|
|
@@ -26,7 +37,7 @@ const CardPaneInfo: FC<CardPaneInfoProps> = ({ description, subdescription, id,
|
|
|
26
37
|
|
|
27
38
|
return (
|
|
28
39
|
<div key={id} className='pane-wrapper'>
|
|
29
|
-
|
|
40
|
+
{paneTitle}
|
|
30
41
|
<div className='pane--description'>
|
|
31
42
|
{description}
|
|
32
43
|
{subdescription !== undefined && <span className='pane--description--subdescription'>{subdescription}</span>}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { ContactCardStyled } from './ContactCard.styled';
|
|
3
3
|
const ContactCard = ({ id, title, image, body = '', url, isClickableOnDesktop = true, dataQa }) => {
|
|
4
|
-
|
|
4
|
+
const contactCardContent = (_jsxs(_Fragment, { children: [_jsx("div", { className: 'contact-card__image', children: image }), _jsx("div", { className: 'contact-card__title', children: title }), _jsx("p", { className: 'contact-card__text', children: body })] }));
|
|
5
|
+
return (_jsx(ContactCardStyled, { children: isClickableOnDesktop ? (_jsx("a", { className: 'contact-card', "data-qa": dataQa, href: url, target: '_self', children: contactCardContent })) : (_jsxs("div", { children: [_jsx("div", { className: 'contact-card contact-card-desktop', "data-qa": dataQa, children: contactCardContent }), _jsx("a", { className: 'contact-card contact-card-mobile', "data-qa": dataQa, href: url, target: '_self', children: contactCardContent })] })) }, id));
|
|
5
6
|
};
|
|
6
7
|
export default ContactCard;
|
|
@@ -1,38 +1,40 @@
|
|
|
1
1
|
import { device } from '../../../globalStyles/breakpoints';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
export const ContactCardStyled = styled.div `
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
align-items: center;
|
|
7
|
-
background-color: white;
|
|
8
|
-
box-shadow: 0 2px 6px 0 rgba(2, 55, 74, 0.25);
|
|
9
|
-
border-radius: 0.25rem;
|
|
10
|
-
min-width: 200px;
|
|
11
|
-
padding: 1rem;
|
|
12
|
-
|
|
13
4
|
.contact-card {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
align-items: center;
|
|
8
|
+
background-color: white;
|
|
9
|
+
box-shadow: 0 2px 6px 0 rgba(2, 55, 74, 0.25);
|
|
10
|
+
border-radius: 0.25rem;
|
|
11
|
+
min-width: 12.5rem;
|
|
12
|
+
height: 7.875rem;
|
|
13
|
+
flex-shrink: 0;
|
|
14
|
+
padding: 1rem;
|
|
15
|
+
text-decoration: none;
|
|
16
|
+
color: var(--neutral-neutral-1);
|
|
17
|
+
&__image {
|
|
18
|
+
width: 2rem;
|
|
29
19
|
}
|
|
30
20
|
&__title {
|
|
31
21
|
margin-top: 1rem;
|
|
32
|
-
|
|
22
|
+
font-size: 1rem;
|
|
23
|
+
line-height: 1.375rem;
|
|
33
24
|
}
|
|
34
25
|
&__text {
|
|
35
|
-
font-size:
|
|
26
|
+
font-size: 0.75rem;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
.contact-card-desktop {
|
|
30
|
+
display: none;
|
|
31
|
+
@media ${device.desktop} {
|
|
32
|
+
display: flex;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
.contact-card-mobile {
|
|
36
|
+
@media ${device.desktop} {
|
|
37
|
+
display: none;
|
|
36
38
|
}
|
|
37
39
|
}
|
|
38
40
|
`;
|
|
@@ -2,38 +2,40 @@ import { device } from '../../../globalStyles/breakpoints'
|
|
|
2
2
|
import styled from 'styled-components'
|
|
3
3
|
|
|
4
4
|
export const ContactCardStyled = styled.div`
|
|
5
|
-
display: flex;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: white;
|
|
9
|
-
box-shadow: 0 2px 6px 0 rgba(2, 55, 74, 0.25);
|
|
10
|
-
border-radius: 0.25rem;
|
|
11
|
-
min-width: 200px;
|
|
12
|
-
padding: 1rem;
|
|
13
|
-
|
|
14
5
|
.contact-card {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
align-items: center;
|
|
9
|
+
background-color: white;
|
|
10
|
+
box-shadow: 0 2px 6px 0 rgba(2, 55, 74, 0.25);
|
|
11
|
+
border-radius: 0.25rem;
|
|
12
|
+
min-width: 12.5rem;
|
|
13
|
+
height: 7.875rem;
|
|
14
|
+
flex-shrink: 0;
|
|
15
|
+
padding: 1rem;
|
|
16
|
+
text-decoration: none;
|
|
17
|
+
color: var(--neutral-neutral-1);
|
|
18
|
+
&__image {
|
|
19
|
+
width: 2rem;
|
|
30
20
|
}
|
|
31
21
|
&__title {
|
|
32
22
|
margin-top: 1rem;
|
|
33
|
-
|
|
23
|
+
font-size: 1rem;
|
|
24
|
+
line-height: 1.375rem;
|
|
34
25
|
}
|
|
35
26
|
&__text {
|
|
36
|
-
font-size:
|
|
27
|
+
font-size: 0.75rem;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
.contact-card-desktop {
|
|
31
|
+
display: none;
|
|
32
|
+
@media ${device.desktop} {
|
|
33
|
+
display: flex;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
.contact-card-mobile {
|
|
37
|
+
@media ${device.desktop} {
|
|
38
|
+
display: none;
|
|
37
39
|
}
|
|
38
40
|
}
|
|
39
41
|
`
|
|
@@ -13,24 +13,30 @@ const ContactCard: FC<ContactCardProps> = ({
|
|
|
13
13
|
isClickableOnDesktop = true,
|
|
14
14
|
dataQa
|
|
15
15
|
}) => {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
<div className='contact-
|
|
19
|
-
{isClickableOnDesktop ? (
|
|
20
|
-
<a className='contact-card__icon__image' data-qa={dataQa} href={url} target='_self'>
|
|
21
|
-
{image}
|
|
22
|
-
</a>
|
|
23
|
-
) : (
|
|
24
|
-
<div>
|
|
25
|
-
<div className='contact-card__icon__image contact-card__icon__image-desktop'>{image}</div>
|
|
26
|
-
<a className='contact-card__icon__image contact-card__icon__image-mobile' data-qa={dataQa} href={url}>
|
|
27
|
-
{image}
|
|
28
|
-
</a>
|
|
29
|
-
</div>
|
|
30
|
-
)}
|
|
31
|
-
</div>
|
|
16
|
+
const contactCardContent = (
|
|
17
|
+
<>
|
|
18
|
+
<div className='contact-card__image'>{image}</div>
|
|
32
19
|
<div className='contact-card__title'>{title}</div>
|
|
33
20
|
<p className='contact-card__text'>{body}</p>
|
|
21
|
+
</>
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
return (
|
|
25
|
+
<ContactCardStyled key={id}>
|
|
26
|
+
{isClickableOnDesktop ? (
|
|
27
|
+
<a className='contact-card' data-qa={dataQa} href={url} target='_self'>
|
|
28
|
+
{contactCardContent}
|
|
29
|
+
</a>
|
|
30
|
+
) : (
|
|
31
|
+
<div>
|
|
32
|
+
<div className='contact-card contact-card-desktop' data-qa={dataQa}>
|
|
33
|
+
{contactCardContent}
|
|
34
|
+
</div>
|
|
35
|
+
<a className='contact-card contact-card-mobile' data-qa={dataQa} href={url} target='_self'>
|
|
36
|
+
{contactCardContent}
|
|
37
|
+
</a>
|
|
38
|
+
</div>
|
|
39
|
+
)}
|
|
34
40
|
</ContactCardStyled>
|
|
35
41
|
)
|
|
36
42
|
}
|
|
@@ -2,18 +2,14 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { DocumentStatusStyled } from './DocumentStatus.styled';
|
|
3
3
|
import { Done24px } from '../../../../images/componentsSvg/Done24px';
|
|
4
4
|
import { NewRelease24p } from '../../../../images/componentsSvg/NewRelease24p';
|
|
5
|
-
import { RatafiaIcon24px } from '../../../../images/componentsSvg/RatafiaIcon24px';
|
|
6
5
|
import { Time24px } from '../../../../images/componentsSvg/Time24px';
|
|
7
|
-
const DocumentStatus = ({ type, statusCompletedText, statusNewText, statusInProgressText
|
|
6
|
+
const DocumentStatus = ({ type, statusCompletedText, statusNewText, statusInProgressText }) => {
|
|
8
7
|
if (type === 'complete' || type === 'downloaded' || type === 'pdf_processing' || type === 'pdf_generated') {
|
|
9
8
|
return (_jsxs(DocumentStatusStyled, { "data-testid": 'document-status', className: 'document-status --is-completed', children: [_jsx(Done24px, { className: 'icon' }), " ", _jsx("span", { className: 'sans-serif --small', children: statusCompletedText })] }));
|
|
10
9
|
}
|
|
11
10
|
if (type === 'new') {
|
|
12
11
|
return (_jsxs(DocumentStatusStyled, { "data-testid": 'document-status', className: 'document-status --is-new', children: [_jsx(NewRelease24p, { className: 'icon' }), " ", _jsx("span", { className: 'sans-serif --small', children: statusNewText })] }));
|
|
13
12
|
}
|
|
14
|
-
if (type === 'ai_reviewed') {
|
|
15
|
-
return (_jsxs(DocumentStatusStyled, { "data-testid": 'document-status', className: 'document-status --is-ai-reviewed', children: [_jsx(RatafiaIcon24px, { className: 'icon' }), " ", _jsx("span", { className: 'sans-serif --small', children: statusAIReviewedText })] }));
|
|
16
|
-
}
|
|
17
13
|
return (_jsxs(DocumentStatusStyled, { "data-testid": 'document-status', className: 'document-status --in-progress', children: [_jsx(Time24px, { className: 'icon' }), _jsx("span", { className: 'sans-serif --small', children: statusInProgressText })] }));
|
|
18
14
|
};
|
|
19
15
|
export default DocumentStatus;
|
|
@@ -61,19 +61,5 @@ export const DocumentStatusStyled = styled.div `
|
|
|
61
61
|
margin-right: 1.4rem;
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
|
|
65
|
-
&.--is-ai-reviewed {
|
|
66
|
-
padding: 0.25rem;
|
|
67
|
-
gap: 0.25rem;
|
|
68
|
-
background-color: var(--primary-main-light-5);
|
|
69
|
-
border-color: var(--primary-main-light-3);
|
|
70
|
-
color: var(--primary-main);
|
|
71
|
-
|
|
72
|
-
svg {
|
|
73
|
-
path {
|
|
74
|
-
fill: var(--primary-main);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
64
|
}
|
|
79
65
|
`;
|
|
@@ -62,19 +62,5 @@ export const DocumentStatusStyled = styled.div`
|
|
|
62
62
|
margin-right: 1.4rem;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
|
|
66
|
-
&.--is-ai-reviewed {
|
|
67
|
-
padding: 0.25rem;
|
|
68
|
-
gap: 0.25rem;
|
|
69
|
-
background-color: var(--primary-main-light-5);
|
|
70
|
-
border-color: var(--primary-main-light-3);
|
|
71
|
-
color: var(--primary-main);
|
|
72
|
-
|
|
73
|
-
svg {
|
|
74
|
-
path {
|
|
75
|
-
fill: var(--primary-main);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
65
|
}
|
|
80
66
|
`
|
|
@@ -4,15 +4,13 @@ import { type DocumentStatusProps } from './DocumentStatusProps.types'
|
|
|
4
4
|
import { DocumentStatusStyled } from './DocumentStatus.styled'
|
|
5
5
|
import { Done24px } from '../../../../images/componentsSvg/Done24px'
|
|
6
6
|
import { NewRelease24p } from '../../../../images/componentsSvg/NewRelease24p'
|
|
7
|
-
import { RatafiaIcon24px } from '../../../../images/componentsSvg/RatafiaIcon24px'
|
|
8
7
|
import { Time24px } from '../../../../images/componentsSvg/Time24px'
|
|
9
8
|
|
|
10
9
|
const DocumentStatus: FC<DocumentStatusProps> = ({
|
|
11
10
|
type,
|
|
12
11
|
statusCompletedText,
|
|
13
12
|
statusNewText,
|
|
14
|
-
statusInProgressText
|
|
15
|
-
statusAIReviewedText
|
|
13
|
+
statusInProgressText
|
|
16
14
|
}) => {
|
|
17
15
|
if (type === 'complete' || type === 'downloaded' || type === 'pdf_processing' || type === 'pdf_generated') {
|
|
18
16
|
return (
|
|
@@ -28,13 +26,6 @@ const DocumentStatus: FC<DocumentStatusProps> = ({
|
|
|
28
26
|
</DocumentStatusStyled>
|
|
29
27
|
)
|
|
30
28
|
}
|
|
31
|
-
if (type === 'ai_reviewed') {
|
|
32
|
-
return (
|
|
33
|
-
<DocumentStatusStyled data-testid='document-status' className={'document-status --is-ai-reviewed'}>
|
|
34
|
-
<RatafiaIcon24px className='icon' /> <span className={'sans-serif --small'}>{statusAIReviewedText}</span>
|
|
35
|
-
</DocumentStatusStyled>
|
|
36
|
-
)
|
|
37
|
-
}
|
|
38
29
|
return (
|
|
39
30
|
<DocumentStatusStyled data-testid='document-status' className={'document-status --in-progress'}>
|
|
40
31
|
<Time24px className='icon' />
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import ArrowRight from '../../../../images/svg/arrow-right-24px-outlined.svg';
|
|
2
3
|
import { Button } from '../../atoms';
|
|
3
4
|
// import './Article.scss'
|
|
4
|
-
const Article = ({ imageUrl, title, articleUrl, summary }) => {
|
|
5
|
-
return (_jsxs("div", { className: 'article', children: [_jsx("img", { src: imageUrl, className: 'image', loading: 'lazy', alt: title }), _jsxs("div", { className: 'information', children: [_jsx("a", { href: articleUrl, target: '_blank', rel: 'noreferrer', children: _jsxs("p", { className: 'title sans-serif --big', children: [title, " "] }) }), _jsx("div", { className: 'summary', children: summary }), _jsx(Button, { color: 'tertiary', label: 'Read more', dataQa: 'article-read-more', link: articleUrl, isExternal: true })] })] }));
|
|
5
|
+
const Article = ({ imageUrl, title, articleUrl, summary, isCategoryProductPage }) => {
|
|
6
|
+
return (_jsxs("div", { className: 'article', children: [_jsx("img", { src: imageUrl, className: 'image', loading: 'lazy', alt: title }), _jsxs("div", { className: 'information', children: [_jsx("a", { href: articleUrl, target: '_blank', rel: 'noreferrer', children: _jsxs("p", { className: 'title sans-serif --big', children: [title, " "] }) }), _jsx("div", { className: 'summary', children: summary }), isCategoryProductPage ? (_jsxs("div", { className: 'button-image-container', children: [_jsx(Button, { givenClass: 'thinner-letter', color: 'tertiary', label: 'Read more', dataQa: 'article-read-more', link: articleUrl, isExternal: true }), _jsx("img", { className: 'article__arrow-right', src: ArrowRight, alt: '' })] })) : (_jsx(Button, { color: 'tertiary', label: 'Read more', dataQa: 'article-read-more', link: articleUrl, isExternal: true }))] })] }));
|
|
6
7
|
};
|
|
7
8
|
export default Article;
|
|
@@ -62,5 +62,22 @@
|
|
|
62
62
|
margin-top: 0;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
+
|
|
66
|
+
.button-image-container {
|
|
67
|
+
align-items: center;
|
|
68
|
+
margin: 1rem 0 2rem 0;
|
|
69
|
+
display: flex;
|
|
70
|
+
|
|
71
|
+
.thinner-letter {
|
|
72
|
+
font-family: $font-sans;
|
|
73
|
+
font-size: 16px;
|
|
74
|
+
font-weight: 400;
|
|
75
|
+
line-height: 22px;
|
|
76
|
+
letter-spacing: -0.3px;
|
|
77
|
+
text-align: left;
|
|
78
|
+
margin: 0;
|
|
79
|
+
padding: 0 1rem 0 0;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
65
82
|
}
|
|
66
83
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React, { type FC } from 'react'
|
|
2
2
|
|
|
3
|
+
import ArrowRight from '../../../../images/svg/arrow-right-24px-outlined.svg'
|
|
3
4
|
import { type ArticleProps } from './ArticleProps.types'
|
|
4
5
|
import { Button } from '../../atoms'
|
|
5
6
|
// import './Article.scss'
|
|
6
7
|
|
|
7
|
-
const Article: FC<ArticleProps> = ({ imageUrl, title, articleUrl, summary }) => {
|
|
8
|
+
const Article: FC<ArticleProps> = ({ imageUrl, title, articleUrl, summary, isCategoryProductPage }) => {
|
|
8
9
|
return (
|
|
9
10
|
<div className='article'>
|
|
10
11
|
<img src={imageUrl} className='image' loading='lazy' alt={title} />
|
|
@@ -13,7 +14,21 @@ const Article: FC<ArticleProps> = ({ imageUrl, title, articleUrl, summary }) =>
|
|
|
13
14
|
<p className='title sans-serif --big'>{title} </p>
|
|
14
15
|
</a>
|
|
15
16
|
<div className='summary'>{summary}</div>
|
|
16
|
-
|
|
17
|
+
{isCategoryProductPage ? (
|
|
18
|
+
<div className='button-image-container'>
|
|
19
|
+
<Button
|
|
20
|
+
givenClass='thinner-letter'
|
|
21
|
+
color='tertiary'
|
|
22
|
+
label={'Read more'}
|
|
23
|
+
dataQa='article-read-more'
|
|
24
|
+
link={articleUrl}
|
|
25
|
+
isExternal
|
|
26
|
+
/>
|
|
27
|
+
<img className='article__arrow-right' src={ArrowRight} alt=''></img>
|
|
28
|
+
</div>
|
|
29
|
+
) : (
|
|
30
|
+
<Button color='tertiary' label={'Read more'} dataQa='article-read-more' link={articleUrl} isExternal />
|
|
31
|
+
)}
|
|
17
32
|
</div>
|
|
18
33
|
</div>
|
|
19
34
|
)
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Article } from '../../molecules';
|
|
3
3
|
// import './ArticlesList.scss'
|
|
4
|
-
const ArticlesList = ({ articles = [] }) => {
|
|
4
|
+
const ArticlesList = ({ articles = [], isCategoryProductPage = false }) => {
|
|
5
5
|
if (articles?.length === 0)
|
|
6
6
|
return null;
|
|
7
|
-
return (_jsx("div", { className: 'articles_wrapper', children: articles.map((article) => (_jsx(Article, { ...article }, `article_${article?.id}`))) }));
|
|
7
|
+
return (_jsx("div", { className: 'articles_wrapper', children: articles.map((article) => (_jsx(Article, { ...article, isCategoryProductPage: isCategoryProductPage }, `article_${article?.id}`))) }));
|
|
8
8
|
};
|
|
9
9
|
export default ArticlesList;
|
|
@@ -5,13 +5,13 @@ import { Article, type ArticleProps } from '../../molecules'
|
|
|
5
5
|
import { type ArticlesListProps } from './ArticlesListProps.types'
|
|
6
6
|
// import './ArticlesList.scss'
|
|
7
7
|
|
|
8
|
-
const ArticlesList: FC<ArticlesListProps> = ({ articles = [] }) => {
|
|
8
|
+
const ArticlesList: FC<ArticlesListProps> = ({ articles = [], isCategoryProductPage = false }) => {
|
|
9
9
|
if (articles?.length === 0) return null
|
|
10
10
|
|
|
11
11
|
return (
|
|
12
12
|
<div className='articles_wrapper'>
|
|
13
13
|
{articles.map((article: ArticleProps) => (
|
|
14
|
-
<Article key={`article_${article?.id}`} {...article} />
|
|
14
|
+
<Article key={`article_${article?.id}`} {...article} isCategoryProductPage={isCategoryProductPage} />
|
|
15
15
|
))}
|
|
16
16
|
</div>
|
|
17
17
|
)
|