@npm_leadtech/legal-lib-components 5.11.11 → 5.11.13
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 +1 -848
- package/dist/src/components/atoms/MenuItems/MenuItemProps.types.d.ts +1 -0
- package/dist/src/components/atoms/MenuItems/MenuItemProps.types.ts +1 -0
- package/dist/src/components/atoms/SearchSelect/SearchSelect.styled.js +1 -1
- package/dist/src/components/atoms/SearchSelect/SearchSelect.styled.ts +1 -1
- package/dist/src/components/molecules/BottomOverlay/BottomOverlay.js +12 -0
- package/dist/src/components/molecules/BottomOverlay/BottomOverlay.tsx +12 -0
- package/dist/src/components/molecules/MoreDocsDesktop/MoreDocsDesktop.styled.js +0 -5
- package/dist/src/components/molecules/MoreDocsDesktop/MoreDocsDesktop.styled.ts +0 -5
- package/dist/src/components/molecules/MoreDocsMobile/MoreDocsMobile.styled.js +12 -5
- package/dist/src/components/molecules/MoreDocsMobile/MoreDocsMobile.styled.ts +12 -5
- package/dist/src/components/molecules/RatafiaSubscriptionCard/RatafiaSubscriptionCard.styled.js +7 -0
- package/dist/src/components/molecules/RatafiaSubscriptionCard/RatafiaSubscriptionCard.styled.ts +7 -0
- package/dist/src/components/molecules/TextInput/TextInput.scss +1 -1
- package/dist/src/components/organisms/AboutUsContent/AboutUsContent.js +2 -2
- package/dist/src/components/organisms/AboutUsContent/AboutUsContent.styled.d.ts +1 -0
- package/dist/src/components/organisms/AboutUsContent/AboutUsContent.styled.js +59 -0
- package/dist/src/components/organisms/AboutUsContent/{AboutUsContent.scss → AboutUsContent.styled.ts} +13 -11
- package/dist/src/components/organisms/AboutUsContent/AboutUsContent.tsx +3 -3
- package/dist/src/components/organisms/Accordion/Accordion.js +2 -2
- package/dist/src/components/organisms/Accordion/Accordion.styled.d.ts +1 -0
- package/dist/src/components/organisms/Accordion/Accordion.styled.js +5 -0
- package/dist/src/components/organisms/Accordion/Accordion.styled.ts +6 -0
- package/dist/src/components/organisms/Accordion/Accordion.tsx +3 -4
- package/dist/src/components/organisms/ArticlesList/ArticlesList.js +2 -2
- package/dist/src/components/organisms/ArticlesList/ArticlesList.styled.d.ts +1 -0
- package/dist/src/components/organisms/ArticlesList/ArticlesList.styled.js +11 -0
- package/dist/src/components/organisms/ArticlesList/ArticlesList.styled.ts +12 -0
- package/dist/src/components/organisms/ArticlesList/ArticlesList.tsx +3 -3
- package/dist/src/components/organisms/AsSeeInContent/AsSeeInContent.js +3 -3
- package/dist/src/components/organisms/AsSeeInContent/AsSeeInContent.styled.d.ts +1 -0
- package/dist/src/components/organisms/AsSeeInContent/AsSeeInContent.styled.js +22 -0
- package/dist/src/components/organisms/AsSeeInContent/AsSeeInContent.styled.ts +23 -0
- package/dist/src/components/organisms/AsSeeInContent/AsSeeInContent.tsx +3 -3
- package/dist/src/components/organisms/CardFunctionality/CardFunctionality.js +2 -2
- package/dist/src/components/organisms/CardFunctionality/CardFunctionality.styled.d.ts +1 -0
- package/dist/src/components/organisms/CardFunctionality/CardFunctionality.styled.js +60 -0
- package/dist/src/components/organisms/CardFunctionality/{CardFunctionality.scss → CardFunctionality.styled.ts} +3 -3
- package/dist/src/components/organisms/CardFunctionality/CardFunctionality.tsx +3 -3
- package/dist/src/components/organisms/ContactJumbotron/ContactJumbotron.js +2 -2
- package/dist/src/components/organisms/ContactJumbotron/ContactJumbotron.styled.d.ts +1 -0
- package/dist/src/components/organisms/ContactJumbotron/ContactJumbotron.styled.js +43 -0
- package/dist/src/components/organisms/ContactJumbotron/{ContactJumbotron.scss → ContactJumbotron.styled.ts} +6 -7
- package/dist/src/components/organisms/ContactJumbotron/ContactJumbotron.tsx +3 -3
- package/dist/src/components/organisms/CookiePolicyBar/CookiePolicyBar.js +2 -2
- package/dist/src/components/organisms/CookiePolicyBar/CookiePolicyBar.styled.d.ts +1 -0
- package/dist/src/components/organisms/CookiePolicyBar/CookiePolicyBar.styled.js +48 -0
- package/dist/src/components/organisms/CookiePolicyBar/CookiePolicyBar.styled.ts +49 -0
- package/dist/src/components/organisms/CookiePolicyBar/CookiePolicyBar.tsx +11 -13
- package/dist/src/components/organisms/ErrorContentRatafia/ErrorContentRatafia.js +2 -2
- package/dist/src/components/organisms/ErrorContentRatafia/ErrorContentRatafia.styled.d.ts +1 -0
- package/dist/src/components/organisms/ErrorContentRatafia/ErrorContentRatafia.styled.js +18 -0
- package/dist/src/components/organisms/ErrorContentRatafia/{ErrorContentRatafia.scss → ErrorContentRatafia.styled.ts} +7 -6
- package/dist/src/components/organisms/ErrorContentRatafia/ErrorContentRatafia.tsx +3 -3
- package/dist/src/components/organisms/FaqGroup/FaqGroup.js +2 -2
- package/dist/src/components/organisms/FaqGroup/FaqGroup.styled.d.ts +1 -0
- package/dist/src/components/organisms/FaqGroup/FaqGroup.styled.js +21 -0
- package/dist/src/components/organisms/FaqGroup/{FaqGroup.scss → FaqGroup.styled.ts} +3 -3
- package/dist/src/components/organisms/FaqGroup/FaqGroup.tsx +3 -3
- package/dist/src/components/organisms/FeaturesRatafiaContent/FeaturesRatafiaContent.js +2 -2
- package/dist/src/components/organisms/FeaturesRatafiaContent/FeaturesRatafiaContent.styled.d.ts +1 -0
- package/dist/src/components/organisms/FeaturesRatafiaContent/FeaturesRatafiaContent.styled.js +27 -0
- package/dist/src/components/organisms/FeaturesRatafiaContent/{FeaturesRatafiaContent.scss → FeaturesRatafiaContent.styled.ts} +4 -4
- package/dist/src/components/organisms/FeaturesRatafiaContent/FeaturesRatafiaContent.tsx +3 -3
- package/dist/src/components/organisms/GuidelinesContent/GuidelinesContent.js +3 -3
- package/dist/src/components/organisms/GuidelinesContent/GuidelinesContent.styled.d.ts +1 -0
- package/dist/src/components/organisms/GuidelinesContent/GuidelinesContent.styled.js +138 -0
- package/dist/src/components/organisms/GuidelinesContent/{GuidelinesContent.scss → GuidelinesContent.styled.ts} +17 -17
- package/dist/src/components/organisms/GuidelinesContent/GuidelinesContent.tsx +3 -3
- package/dist/src/components/organisms/JumbotronRatafiaContent/JumbotronRatafiaContent.js +2 -2
- package/dist/src/components/organisms/JumbotronRatafiaContent/JumbotronRatafiaContent.styled.d.ts +1 -0
- package/dist/src/components/organisms/JumbotronRatafiaContent/JumbotronRatafiaContent.styled.js +26 -0
- package/dist/src/components/organisms/JumbotronRatafiaContent/{JumbotronRatafiaContent.scss → JumbotronRatafiaContent.styled.ts} +6 -7
- package/dist/src/components/organisms/JumbotronRatafiaContent/JumbotronRatafiaContent.tsx +3 -3
- package/dist/src/components/organisms/KeyFactsLoadingContentRatafia/KeyFactsLoadingContentRatafia.js +2 -2
- package/dist/src/components/organisms/KeyFactsLoadingContentRatafia/KeyFactsLoadingContentRatafia.styled.d.ts +1 -0
- package/dist/src/components/organisms/KeyFactsLoadingContentRatafia/KeyFactsLoadingContentRatafia.styled.js +144 -0
- package/dist/src/components/organisms/KeyFactsLoadingContentRatafia/{KeyFactsLoadingContentRatafia.scss → KeyFactsLoadingContentRatafia.styled.ts} +24 -25
- package/dist/src/components/organisms/KeyFactsLoadingContentRatafia/KeyFactsLoadingContentRatafia.tsx +3 -3
- package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafia.js +2 -2
- package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafia.styled.d.ts +1 -0
- package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafia.styled.js +21 -0
- package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafia.styled.ts +22 -0
- package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafia.tsx +3 -3
- package/dist/src/components/organisms/LanguageSelectorMobile/LanguageSelectorMobile.js +2 -2
- package/dist/src/components/organisms/LanguageSelectorMobile/LanguageSelectorMobile.styled.d.ts +5 -0
- package/dist/src/components/organisms/LanguageSelectorMobile/{LanguageSelectorMobile.scss → LanguageSelectorMobile.styled.js} +6 -6
- package/dist/src/components/organisms/LanguageSelectorMobile/LanguageSelectorMobile.styled.ts +70 -0
- package/dist/src/components/organisms/LanguageSelectorMobile/LanguageSelectorMobile.tsx +3 -3
- package/dist/src/components/organisms/LayoutRatafia/LayoutRatafia.js +2 -2
- package/dist/src/components/organisms/LayoutRatafia/LayoutRatafia.styled.d.ts +1 -0
- package/dist/src/components/organisms/LayoutRatafia/LayoutRatafia.styled.js +91 -0
- package/dist/src/components/organisms/LayoutRatafia/{LayoutRatafia.scss → LayoutRatafia.styled.ts} +12 -13
- package/dist/src/components/organisms/LayoutRatafia/LayoutRatafia.tsx +3 -3
- package/dist/src/components/organisms/ListStepsGetForm/ListStepsGetForm.js +2 -2
- package/dist/src/components/organisms/ListStepsGetForm/ListStepsGetForm.styled.d.ts +1 -0
- package/dist/src/components/organisms/ListStepsGetForm/ListStepsGetForm.styled.js +34 -0
- package/dist/src/components/organisms/ListStepsGetForm/{ListStepsGetForm.scss → ListStepsGetForm.styled.ts} +7 -7
- package/dist/src/components/organisms/ListStepsGetForm/ListStepsGetForm.tsx +3 -3
- package/dist/src/components/organisms/LoginRatafiaContent/LoginRatafiaContent.js +2 -2
- package/dist/src/components/organisms/LoginRatafiaContent/LoginRatafiaContent.styled.d.ts +1 -0
- package/dist/src/components/organisms/LoginRatafiaContent/LoginRatafiaContent.styled.js +14 -0
- package/dist/src/components/organisms/LoginRatafiaContent/LoginRatafiaContent.styled.ts +15 -0
- package/dist/src/components/organisms/LoginRatafiaContent/LoginRatafiaContent.tsx +3 -3
- package/dist/src/components/organisms/MobileBottomBar/MobileBottomBar.js +4 -8
- package/dist/src/components/organisms/MobileBottomBar/MobileBottomBar.styled.d.ts +1 -0
- package/dist/src/components/organisms/MobileBottomBar/MobileBottomBar.styled.js +45 -0
- package/dist/src/components/organisms/MobileBottomBar/{MobileBottomBar.scss → MobileBottomBar.styled.ts} +6 -6
- package/dist/src/components/organisms/MobileBottomBar/MobileBottomBar.tsx +5 -10
- package/dist/src/components/organisms/MobileBottomBar/MobileBottomBarProps.types.d.ts +0 -1
- package/dist/src/components/organisms/MobileBottomBar/MobileBottomBarProps.types.ts +0 -1
- package/dist/src/components/organisms/StepsRatafiaContent/StepsRatafiaContent.js +2 -2
- package/dist/src/components/organisms/StepsRatafiaContent/StepsRatafiaContent.styled.d.ts +1 -0
- package/dist/src/components/organisms/StepsRatafiaContent/StepsRatafiaContent.styled.js +11 -0
- package/dist/src/components/organisms/StepsRatafiaContent/StepsRatafiaContent.styled.ts +12 -0
- package/dist/src/components/organisms/StepsRatafiaContent/StepsRatafiaContent.tsx +3 -3
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.js +3 -3
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.styled.d.ts +1 -0
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.styled.js +54 -0
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.styled.ts +55 -0
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.tsx +3 -3
- package/dist/src/components/pages/ErrorRatafiaPage/ErrorRatafiaPage.styled.js +2 -1
- package/dist/src/components/pages/ErrorRatafiaPage/ErrorRatafiaPage.styled.ts +2 -1
- package/dist/src/components/pages/FaqsPage/FaqsPage.styled.js +5 -4
- package/dist/src/components/pages/FaqsPage/FaqsPage.styled.ts +5 -4
- package/dist/src/components/pages/KeyFactsResultRatafiaPage/KeyFactsResultRatafiaPage.styled.js +2 -1
- package/dist/src/components/pages/KeyFactsResultRatafiaPage/KeyFactsResultRatafiaPage.styled.ts +2 -1
- package/dist/src/globalStyles/styles.scss +0 -22
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/src/components/organisms/Accordion/Accordion.scss +0 -4
- package/dist/src/components/organisms/ArticlesList/ArticlesList.scss +0 -12
- package/dist/src/components/organisms/AsSeeInContent/AsSeeInContent.scss +0 -22
- package/dist/src/components/organisms/CookiePolicyBar/CookiePolicyBar.scss +0 -54
- package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafia.scss +0 -23
- package/dist/src/components/organisms/LoginRatafiaContent/LoginRatafiaContent.scss +0 -16
- package/dist/src/components/organisms/StepsRatafiaContent/StepsRatafiaContent.scss +0 -12
|
@@ -9,6 +9,7 @@ const BottomOverlay = ({ givenClass, header, body, open = false, onClose, footer
|
|
|
9
9
|
const overlayBackground = useRef(null);
|
|
10
10
|
const overlayMessage = useRef(null);
|
|
11
11
|
useEffect(() => {
|
|
12
|
+
handleBodyScroll(open);
|
|
12
13
|
if (open) {
|
|
13
14
|
const backgroundElement = overlayBackground.current;
|
|
14
15
|
backgroundElement.addEventListener('mousedown', handleCloseModal);
|
|
@@ -17,6 +18,17 @@ const BottomOverlay = ({ givenClass, header, body, open = false, onClose, footer
|
|
|
17
18
|
};
|
|
18
19
|
}
|
|
19
20
|
}, [open]);
|
|
21
|
+
const handleBodyScroll = (disableScroll) => {
|
|
22
|
+
if (disableScroll) {
|
|
23
|
+
document.body.style.overflow = 'hidden';
|
|
24
|
+
document.body.style.position = 'fixed';
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
document.body.style.overflow = 'unset';
|
|
28
|
+
document.body.style.position = 'relative';
|
|
29
|
+
document.body.style.width = '100%';
|
|
30
|
+
}
|
|
31
|
+
};
|
|
20
32
|
const handleCloseModal = (event) => {
|
|
21
33
|
if (onClose != null)
|
|
22
34
|
onClose();
|
|
@@ -12,6 +12,7 @@ const BottomOverlay: FC<BottomOverlayProps> = ({ givenClass, header, body, open
|
|
|
12
12
|
const overlayMessage = useRef<HTMLDivElement | null>(null)
|
|
13
13
|
|
|
14
14
|
useEffect(() => {
|
|
15
|
+
handleBodyScroll(open)
|
|
15
16
|
if (open) {
|
|
16
17
|
const backgroundElement = overlayBackground.current as HTMLElement
|
|
17
18
|
backgroundElement.addEventListener('mousedown', handleCloseModal)
|
|
@@ -21,6 +22,17 @@ const BottomOverlay: FC<BottomOverlayProps> = ({ givenClass, header, body, open
|
|
|
21
22
|
}
|
|
22
23
|
}, [open])
|
|
23
24
|
|
|
25
|
+
const handleBodyScroll = (disableScroll: boolean): void => {
|
|
26
|
+
if (disableScroll) {
|
|
27
|
+
document.body.style.overflow = 'hidden'
|
|
28
|
+
document.body.style.position = 'fixed'
|
|
29
|
+
} else {
|
|
30
|
+
document.body.style.overflow = 'unset'
|
|
31
|
+
document.body.style.position = 'relative'
|
|
32
|
+
document.body.style.width = '100%'
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
24
36
|
const handleCloseModal = (event: MouseEvent): void => {
|
|
25
37
|
if (onClose != null) onClose()
|
|
26
38
|
}
|
|
@@ -29,11 +29,6 @@ export const MoreDocsDesktopStyled = styled.div `
|
|
|
29
29
|
letter-spacing: -0.3px;
|
|
30
30
|
padding: 0 0 1.5rem 0;
|
|
31
31
|
width: 100%;
|
|
32
|
-
|
|
33
|
-
@media only screen and (max-width: ${size.md}) {
|
|
34
|
-
display: flex;
|
|
35
|
-
justify-content: center;
|
|
36
|
-
}
|
|
37
32
|
}
|
|
38
33
|
|
|
39
34
|
.docs-container {
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
import { device } from '../../../globalStyles/breakpoints';
|
|
1
2
|
import styled from 'styled-components';
|
|
2
3
|
export const MoreDocsMobileStyled = styled.div `
|
|
3
4
|
.more-docs-mobile {
|
|
4
5
|
margin: 0 1.5rem 2.5rem 1.5rem;
|
|
5
|
-
|
|
6
|
+
@media ${device['portrait-tablets']} {
|
|
7
|
+
margin: 0 4.5rem 2.5rem 4.5rem;
|
|
8
|
+
}
|
|
9
|
+
padding: 0.3125rem 0;
|
|
6
10
|
border-radius: 4px;
|
|
7
11
|
border: solid 2px #dfe5e8;
|
|
8
12
|
display: flex;
|
|
@@ -42,8 +46,11 @@ export const MoreDocsMobileStyled = styled.div `
|
|
|
42
46
|
}
|
|
43
47
|
|
|
44
48
|
.more-docs-list {
|
|
45
|
-
margin: -
|
|
46
|
-
|
|
49
|
+
margin: -2.5rem 1.5rem 2.5rem 1.5rem;
|
|
50
|
+
@media ${device['portrait-tablets']} {
|
|
51
|
+
margin: -2.5rem 4.5rem 2.5rem 4.5rem;
|
|
52
|
+
}
|
|
53
|
+
padding: 1rem 0.5rem 1rem 0.5rem;
|
|
47
54
|
border-radius: 4px;
|
|
48
55
|
border: solid 2px #dfe5e8;
|
|
49
56
|
display: flex;
|
|
@@ -56,8 +63,8 @@ export const MoreDocsMobileStyled = styled.div `
|
|
|
56
63
|
|
|
57
64
|
.separation-line {
|
|
58
65
|
width: calc(100% - 20px);
|
|
59
|
-
height:
|
|
60
|
-
margin:
|
|
66
|
+
height: 0.0625rem;
|
|
67
|
+
margin: 1rem 0.625rem;
|
|
61
68
|
background-color: var(--neutral-neutral-3);
|
|
62
69
|
}
|
|
63
70
|
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
import { device } from '../../../globalStyles/breakpoints'
|
|
1
2
|
import styled from 'styled-components'
|
|
2
3
|
|
|
3
4
|
export const MoreDocsMobileStyled = styled.div`
|
|
4
5
|
.more-docs-mobile {
|
|
5
6
|
margin: 0 1.5rem 2.5rem 1.5rem;
|
|
6
|
-
|
|
7
|
+
@media ${device['portrait-tablets']} {
|
|
8
|
+
margin: 0 4.5rem 2.5rem 4.5rem;
|
|
9
|
+
}
|
|
10
|
+
padding: 0.3125rem 0;
|
|
7
11
|
border-radius: 4px;
|
|
8
12
|
border: solid 2px #dfe5e8;
|
|
9
13
|
display: flex;
|
|
@@ -43,8 +47,11 @@ export const MoreDocsMobileStyled = styled.div`
|
|
|
43
47
|
}
|
|
44
48
|
|
|
45
49
|
.more-docs-list {
|
|
46
|
-
margin: -
|
|
47
|
-
|
|
50
|
+
margin: -2.5rem 1.5rem 2.5rem 1.5rem;
|
|
51
|
+
@media ${device['portrait-tablets']} {
|
|
52
|
+
margin: -2.5rem 4.5rem 2.5rem 4.5rem;
|
|
53
|
+
}
|
|
54
|
+
padding: 1rem 0.5rem 1rem 0.5rem;
|
|
48
55
|
border-radius: 4px;
|
|
49
56
|
border: solid 2px #dfe5e8;
|
|
50
57
|
display: flex;
|
|
@@ -57,8 +64,8 @@ export const MoreDocsMobileStyled = styled.div`
|
|
|
57
64
|
|
|
58
65
|
.separation-line {
|
|
59
66
|
width: calc(100% - 20px);
|
|
60
|
-
height:
|
|
61
|
-
margin:
|
|
67
|
+
height: 0.0625rem;
|
|
68
|
+
margin: 1rem 0.625rem;
|
|
62
69
|
background-color: var(--neutral-neutral-3);
|
|
63
70
|
}
|
|
64
71
|
|
package/dist/src/components/molecules/RatafiaSubscriptionCard/RatafiaSubscriptionCard.styled.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { device } from '../../../globalStyles/breakpoints';
|
|
1
2
|
import styled from 'styled-components';
|
|
2
3
|
export const RatafiaSubscriptionCardStyled = styled.div `
|
|
3
4
|
display: flex;
|
|
@@ -90,5 +91,11 @@ export const RatafiaSubscriptionCardStyled = styled.div `
|
|
|
90
91
|
display: flex;
|
|
91
92
|
margin-top: 1.5rem;
|
|
92
93
|
}
|
|
94
|
+
|
|
95
|
+
@media ${device.mobile} {
|
|
96
|
+
&__button {
|
|
97
|
+
flex: 1;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
93
100
|
}
|
|
94
101
|
`;
|
package/dist/src/components/molecules/RatafiaSubscriptionCard/RatafiaSubscriptionCard.styled.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { device } from '../../../globalStyles/breakpoints'
|
|
1
2
|
import styled from 'styled-components'
|
|
2
3
|
|
|
3
4
|
export const RatafiaSubscriptionCardStyled = styled.div`
|
|
@@ -91,5 +92,11 @@ export const RatafiaSubscriptionCardStyled = styled.div`
|
|
|
91
92
|
display: flex;
|
|
92
93
|
margin-top: 1.5rem;
|
|
93
94
|
}
|
|
95
|
+
|
|
96
|
+
@media ${device.mobile} {
|
|
97
|
+
&__button {
|
|
98
|
+
flex: 1;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
94
101
|
}
|
|
95
102
|
`
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { AboutUsContentStyled } from './AboutUsContent.styled';
|
|
2
3
|
import { Button } from '../../atoms';
|
|
3
|
-
// import './AboutUsContent.scss'
|
|
4
4
|
const AboutUsContent = ({ children, image, button }) => {
|
|
5
|
-
return (_jsxs(
|
|
5
|
+
return (_jsxs(AboutUsContentStyled, { children: [_jsx("div", { className: 'about-us-content__image', children: image }), _jsxs("div", { className: 'about-us-content__body', children: [children, button != null && (_jsx("div", { className: 'about-us-content__body__button', children: _jsx(Button, { ...button }) }))] })] }));
|
|
6
6
|
};
|
|
7
7
|
export default AboutUsContent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AboutUsContentStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { device } from '../../../globalStyles/breakpoints';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
export const AboutUsContentStyled = styled.div `
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-flow: row wrap;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
|
|
8
|
+
@media ${device['landscape-tablets']} {
|
|
9
|
+
flex-flow: row nowrap;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.about-us-content__body {
|
|
13
|
+
margin-top: 1rem;
|
|
14
|
+
margin-bottom: 2rem;
|
|
15
|
+
font-family: var(--font-sans);
|
|
16
|
+
|
|
17
|
+
@media ${device['landscape-tablets']} {
|
|
18
|
+
flex-basis: 50%;
|
|
19
|
+
margin-top: 0;
|
|
20
|
+
margin-bottom: 3rem;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.m-richText {
|
|
24
|
+
a {
|
|
25
|
+
color: var(--primary-main);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&__button {
|
|
30
|
+
margin-top: 2rem;
|
|
31
|
+
font-family: var(--font-sans);
|
|
32
|
+
.e-button {
|
|
33
|
+
display: block;
|
|
34
|
+
|
|
35
|
+
@media ${device['landscape-tablets']} {
|
|
36
|
+
display: inline-block;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.about-us-content__image {
|
|
43
|
+
margin-bottom: 1rem;
|
|
44
|
+
|
|
45
|
+
@media ${device['landscape-tablets']} {
|
|
46
|
+
margin-bottom: 0;
|
|
47
|
+
margin-right: 1rem;
|
|
48
|
+
flex-basis: 50%;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@media ${device.laptop} {
|
|
52
|
+
margin-bottom: -3rem;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
img {
|
|
56
|
+
width: 100%;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
`;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { device } from '../../../globalStyles/breakpoints'
|
|
2
|
+
import styled from 'styled-components'
|
|
3
3
|
|
|
4
|
-
.
|
|
4
|
+
export const AboutUsContentStyled = styled.div`
|
|
5
5
|
display: flex;
|
|
6
6
|
flex-flow: row wrap;
|
|
7
7
|
justify-content: center;
|
|
8
8
|
|
|
9
|
-
@
|
|
9
|
+
@media ${device['landscape-tablets']} {
|
|
10
10
|
flex-flow: row nowrap;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
.about-us-content__body {
|
|
14
14
|
margin-top: 1rem;
|
|
15
15
|
margin-bottom: 2rem;
|
|
16
16
|
font-family: var(--font-sans);
|
|
17
17
|
|
|
18
|
-
@
|
|
18
|
+
@media ${device['landscape-tablets']} {
|
|
19
19
|
flex-basis: 50%;
|
|
20
20
|
margin-top: 0;
|
|
21
21
|
margin-bottom: 3rem;
|
|
@@ -32,22 +32,24 @@
|
|
|
32
32
|
font-family: var(--font-sans);
|
|
33
33
|
.e-button {
|
|
34
34
|
display: block;
|
|
35
|
-
|
|
35
|
+
|
|
36
|
+
@media ${device['landscape-tablets']} {
|
|
36
37
|
display: inline-block;
|
|
37
38
|
}
|
|
38
39
|
}
|
|
39
40
|
}
|
|
40
41
|
}
|
|
41
|
-
|
|
42
|
+
|
|
43
|
+
.about-us-content__image {
|
|
42
44
|
margin-bottom: 1rem;
|
|
43
45
|
|
|
44
|
-
@
|
|
46
|
+
@media ${device['landscape-tablets']} {
|
|
45
47
|
margin-bottom: 0;
|
|
46
48
|
margin-right: 1rem;
|
|
47
49
|
flex-basis: 50%;
|
|
48
50
|
}
|
|
49
51
|
|
|
50
|
-
@
|
|
52
|
+
@media ${device.laptop} {
|
|
51
53
|
margin-bottom: -3rem;
|
|
52
54
|
}
|
|
53
55
|
|
|
@@ -55,4 +57,4 @@
|
|
|
55
57
|
width: 100%;
|
|
56
58
|
}
|
|
57
59
|
}
|
|
58
|
-
|
|
60
|
+
`
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React, { type FC } from 'react'
|
|
2
2
|
|
|
3
3
|
import { type AboutUsContentProps } from './AboutUsContentProps.types'
|
|
4
|
+
import { AboutUsContentStyled } from './AboutUsContent.styled'
|
|
4
5
|
import { Button } from '../../atoms'
|
|
5
|
-
// import './AboutUsContent.scss'
|
|
6
6
|
|
|
7
7
|
const AboutUsContent: FC<AboutUsContentProps> = ({ children, image, button }) => {
|
|
8
8
|
return (
|
|
9
|
-
<
|
|
9
|
+
<AboutUsContentStyled>
|
|
10
10
|
<div className={'about-us-content__image'}>{image}</div>
|
|
11
11
|
<div className={'about-us-content__body'}>
|
|
12
12
|
{children}
|
|
@@ -16,7 +16,7 @@ const AboutUsContent: FC<AboutUsContentProps> = ({ children, image, button }) =>
|
|
|
16
16
|
</div>
|
|
17
17
|
)}
|
|
18
18
|
</div>
|
|
19
|
-
</
|
|
19
|
+
</AboutUsContentStyled>
|
|
20
20
|
)
|
|
21
21
|
}
|
|
22
22
|
|
|
@@ -3,13 +3,13 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import { useState } from 'react';
|
|
4
4
|
import { AccordionItem } from '../../molecules';
|
|
5
5
|
import { AccordionProvider } from './Accordion.context';
|
|
6
|
-
|
|
6
|
+
import { AccordionStyled } from './Accordion.styled';
|
|
7
7
|
export const Accordion = ({ data, defaultActiveIndex = 0, defaultHeightItem }) => {
|
|
8
8
|
const [activeIndex, setActiveIndex] = useState(defaultActiveIndex);
|
|
9
9
|
const handleItemClick = (index) => {
|
|
10
10
|
setActiveIndex((prevIndex) => (prevIndex === index ? -1 : index));
|
|
11
11
|
};
|
|
12
|
-
return (_jsx(AccordionProvider, { elements: data.length, children: _jsx(
|
|
12
|
+
return (_jsx(AccordionProvider, { elements: data.length, children: _jsx(AccordionStyled, { children: data.map((item, index) => (_jsx(AccordionItem, { accordionRightContent: item?.accordionRightContent, defaultHeightItem: defaultHeightItem, index: index, isOpen: activeIndex === index, onClick: () => {
|
|
13
13
|
handleItemClick(index);
|
|
14
14
|
}, title: item.title, children: item.children }, index))) }) }));
|
|
15
15
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AccordionStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -3,8 +3,7 @@ import React, { useState } from 'react'
|
|
|
3
3
|
import { AccordionItem } from '../../molecules'
|
|
4
4
|
import { type AccordionProps } from './AccordionProps.types'
|
|
5
5
|
import { AccordionProvider } from './Accordion.context'
|
|
6
|
-
|
|
7
|
-
// import './Accordion.scss'
|
|
6
|
+
import { AccordionStyled } from './Accordion.styled'
|
|
8
7
|
|
|
9
8
|
export const Accordion = ({ data, defaultActiveIndex = 0, defaultHeightItem }: AccordionProps): React.JSX.Element => {
|
|
10
9
|
const [activeIndex, setActiveIndex] = useState(defaultActiveIndex)
|
|
@@ -15,7 +14,7 @@ export const Accordion = ({ data, defaultActiveIndex = 0, defaultHeightItem }: A
|
|
|
15
14
|
|
|
16
15
|
return (
|
|
17
16
|
<AccordionProvider elements={data.length}>
|
|
18
|
-
<
|
|
17
|
+
<AccordionStyled>
|
|
19
18
|
{data.map((item, index) => (
|
|
20
19
|
<AccordionItem
|
|
21
20
|
accordionRightContent={item?.accordionRightContent}
|
|
@@ -31,7 +30,7 @@ export const Accordion = ({ data, defaultActiveIndex = 0, defaultHeightItem }: A
|
|
|
31
30
|
{item.children}
|
|
32
31
|
</AccordionItem>
|
|
33
32
|
))}
|
|
34
|
-
</
|
|
33
|
+
</AccordionStyled>
|
|
35
34
|
</AccordionProvider>
|
|
36
35
|
)
|
|
37
36
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Article } from '../../molecules';
|
|
3
|
-
|
|
3
|
+
import { ArticlesListStyled } from './ArticlesList.styled';
|
|
4
4
|
const ArticlesList = ({ articles = [], isCategoryProductPage = false }) => {
|
|
5
5
|
if (articles?.length === 0)
|
|
6
6
|
return null;
|
|
7
|
-
return (_jsx(
|
|
7
|
+
return (_jsx(ArticlesListStyled, { children: articles.map((article) => (_jsx(Article, { ...article, isCategoryProductPage: isCategoryProductPage }, `article_${article?.id}`))) }));
|
|
8
8
|
};
|
|
9
9
|
export default ArticlesList;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ArticlesListStyled: 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 { device } from '../../../globalStyles/breakpoints';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
export const ArticlesListStyled = styled.div `
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
align-items: stretch;
|
|
7
|
+
|
|
8
|
+
@media ${device.laptop} {
|
|
9
|
+
flex-direction: row;
|
|
10
|
+
}
|
|
11
|
+
`;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { device } from '../../../globalStyles/breakpoints'
|
|
2
|
+
import styled from 'styled-components'
|
|
3
|
+
|
|
4
|
+
export const ArticlesListStyled = styled.div`
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
align-items: stretch;
|
|
8
|
+
|
|
9
|
+
@media ${device.laptop} {
|
|
10
|
+
flex-direction: row;
|
|
11
|
+
}
|
|
12
|
+
`
|
|
@@ -3,17 +3,17 @@ import React, { type FC } from 'react'
|
|
|
3
3
|
|
|
4
4
|
import { Article, type ArticleProps } from '../../molecules'
|
|
5
5
|
import { type ArticlesListProps } from './ArticlesListProps.types'
|
|
6
|
-
|
|
6
|
+
import { ArticlesListStyled } from './ArticlesList.styled'
|
|
7
7
|
|
|
8
8
|
const ArticlesList: FC<ArticlesListProps> = ({ articles = [], isCategoryProductPage = false }) => {
|
|
9
9
|
if (articles?.length === 0) return null
|
|
10
10
|
|
|
11
11
|
return (
|
|
12
|
-
<
|
|
12
|
+
<ArticlesListStyled>
|
|
13
13
|
{articles.map((article: ArticleProps) => (
|
|
14
14
|
<Article key={`article_${article?.id}`} {...article} isCategoryProductPage={isCategoryProductPage} />
|
|
15
15
|
))}
|
|
16
|
-
</
|
|
16
|
+
</ArticlesListStyled>
|
|
17
17
|
)
|
|
18
18
|
}
|
|
19
19
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx as _jsx,
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { AsSeenInContentStyled } from './AsSeeInContent.styled';
|
|
2
3
|
import { RichTextInner } from '../../atoms';
|
|
3
4
|
import { TrustworthyWebsites } from '../../molecules/TrustworthyWebsites';
|
|
4
|
-
// import './AsSeeInContent.scss'
|
|
5
5
|
const AsSeeInContent = ({ children, trustWorthyImages }) => {
|
|
6
6
|
if (trustWorthyImages.images.length === 0) {
|
|
7
7
|
return null;
|
|
8
8
|
}
|
|
9
|
-
return (_jsxs(
|
|
9
|
+
return (_jsxs(AsSeenInContentStyled, { children: [_jsx(RichTextInner, { customClass: 'as-see-in-content__text', children: children }), _jsx(TrustworthyWebsites, { images: trustWorthyImages.images })] }));
|
|
10
10
|
};
|
|
11
11
|
export default AsSeeInContent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AsSeenInContentStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
export const AsSeenInContentStyled = styled.div `
|
|
3
|
+
.as-see-in-content {
|
|
4
|
+
display: flex;
|
|
5
|
+
|
|
6
|
+
&__text {
|
|
7
|
+
justify-content: center;
|
|
8
|
+
text-align: center;
|
|
9
|
+
|
|
10
|
+
#articles,
|
|
11
|
+
#legal-documents {
|
|
12
|
+
color: var(--primary-main-light-1);
|
|
13
|
+
font-weight: 400;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
a {
|
|
17
|
+
color: var(--primary-main-light-1);
|
|
18
|
+
font-weight: 400 !important;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
`;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import styled from 'styled-components'
|
|
2
|
+
|
|
3
|
+
export const AsSeenInContentStyled = styled.div`
|
|
4
|
+
.as-see-in-content {
|
|
5
|
+
display: flex;
|
|
6
|
+
|
|
7
|
+
&__text {
|
|
8
|
+
justify-content: center;
|
|
9
|
+
text-align: center;
|
|
10
|
+
|
|
11
|
+
#articles,
|
|
12
|
+
#legal-documents {
|
|
13
|
+
color: var(--primary-main-light-1);
|
|
14
|
+
font-weight: 400;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
a {
|
|
18
|
+
color: var(--primary-main-light-1);
|
|
19
|
+
font-weight: 400 !important;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
`
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { type FC } from 'react'
|
|
2
2
|
|
|
3
3
|
import { type AsSeeInContentProps } from './AsSeeInContentProps.types'
|
|
4
|
+
import { AsSeenInContentStyled } from './AsSeeInContent.styled'
|
|
4
5
|
import { RichTextInner } from '../../atoms'
|
|
5
6
|
import { TrustworthyWebsites } from '../../molecules/TrustworthyWebsites'
|
|
6
|
-
// import './AsSeeInContent.scss'
|
|
7
7
|
|
|
8
8
|
const AsSeeInContent: FC<AsSeeInContentProps> = ({ children, trustWorthyImages }) => {
|
|
9
9
|
if (trustWorthyImages.images.length === 0) {
|
|
@@ -11,10 +11,10 @@ const AsSeeInContent: FC<AsSeeInContentProps> = ({ children, trustWorthyImages }
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
return (
|
|
14
|
-
|
|
14
|
+
<AsSeenInContentStyled>
|
|
15
15
|
<RichTextInner customClass='as-see-in-content__text'>{children}</RichTextInner>
|
|
16
16
|
<TrustworthyWebsites images={trustWorthyImages.images} />
|
|
17
|
-
|
|
17
|
+
</AsSeenInContentStyled>
|
|
18
18
|
)
|
|
19
19
|
}
|
|
20
20
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Button, Tag } from '../../atoms';
|
|
3
|
-
|
|
3
|
+
import { CardFunctionalityStyled } from './CardFunctionality.styled';
|
|
4
4
|
export const CardFunctionality = ({ icon, title, text, tags, cta }) => {
|
|
5
|
-
return (_jsxs(
|
|
5
|
+
return (_jsxs(CardFunctionalityStyled, { children: [_jsxs("div", { className: 'content-tags', children: [_jsxs("div", { className: 'content', children: [_jsxs("div", { className: 'header', children: [_jsx("div", { className: 'icon', children: icon }), _jsx("p", { className: 'title', children: title })] }), _jsx("div", { title: text, className: 'text', children: text })] }), _jsx("div", { className: 'tags', children: tags.map((tag) => (_jsx(Tag, { ...tag }, tag.id))) })] }), _jsx(Button, { ...cta, givenClass: 'cta-card' })] }));
|
|
6
6
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CardFunctionalityStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
|