@npm_leadtech/legal-lib-components 5.14.5 → 5.14.7
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 +25 -2
- package/dist/images/png/preview-doc.png +0 -0
- package/dist/src/components/atoms/Button/Button.js +2 -1
- package/dist/src/components/atoms/Button/Button.scss +31 -1
- package/dist/src/components/atoms/Button/Button.tsx +2 -1
- package/dist/src/components/atoms/Button/ButtonProps.types.d.ts +1 -1
- package/dist/src/components/atoms/Button/ButtonProps.types.ts +1 -0
- package/dist/src/components/atoms/TagRatafiaItem/TagRatafiaItem.styled.js +1 -0
- package/dist/src/components/atoms/TagRatafiaItem/TagRatafiaItem.styled.ts +1 -0
- package/dist/src/components/molecules/HeaderRatafia/HeaderRatafia.js +2 -2
- package/dist/src/components/molecules/HeaderRatafia/HeaderRatafia.tsx +2 -5
- package/dist/src/components/molecules/HeaderRatafia/HeaderRatafiaProps.types.d.ts +0 -2
- package/dist/src/components/molecules/HeaderRatafia/HeaderRatafiaProps.types.ts +0 -2
- package/dist/src/components/molecules/MidBannerRatafiaContent/MidBannerRatafiaContent.js +1 -1
- package/dist/src/components/molecules/MidBannerRatafiaContent/MidBannerRatafiaContent.tsx +1 -1
- package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.d.ts +4 -0
- package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.js +7 -0
- package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.styled.d.ts +1 -0
- package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.styled.js +161 -0
- package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.styled.ts +162 -0
- package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCard.tsx +37 -0
- package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCardProps.types.d.ts +10 -0
- package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCardProps.types.js +1 -0
- package/dist/src/components/molecules/SubtypeDocumentCard/SubtypeDocumentCardProps.types.ts +11 -0
- package/dist/src/components/molecules/SubtypeDocumentCard/index.d.ts +2 -0
- package/dist/src/components/molecules/SubtypeDocumentCard/index.js +1 -0
- package/dist/src/components/molecules/SubtypeDocumentCard/index.ts +2 -0
- package/dist/src/components/molecules/TagsRatafiaList/TagsRatafiaList.styled.js +2 -1
- package/dist/src/components/molecules/TagsRatafiaList/TagsRatafiaList.styled.ts +2 -1
- package/dist/src/components/molecules/index.d.ts +1 -0
- package/dist/src/components/molecules/index.js +1 -0
- package/dist/src/components/molecules/index.ts +1 -0
- package/dist/src/components/organisms/FeaturesRatafiaContent/FeaturesRatafiaContent.styled.js +14 -17
- package/dist/src/components/organisms/FeaturesRatafiaContent/FeaturesRatafiaContent.styled.ts +14 -17
- package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafia.js +1 -1
- package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafia.tsx +1 -3
- package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafiaProps.types.d.ts +0 -2
- package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafiaProps.types.ts +0 -2
- package/dist/src/components/sections/FaqSection/FaqSection.styled.js +1 -4
- package/dist/src/components/sections/FaqSection/FaqSection.styled.ts +1 -4
- package/dist/src/components/sections/FeaturesRatafiaSection/FeaturesRatafiaSection.styled.js +1 -0
- package/dist/src/components/sections/FeaturesRatafiaSection/FeaturesRatafiaSection.styled.ts +1 -0
- package/dist/src/components/sections/LayoutRatafiaSection/LayoutRatafiaSection.d.ts +4 -0
- package/dist/src/components/sections/LayoutRatafiaSection/LayoutRatafiaSection.js +11 -0
- package/dist/src/components/sections/LayoutRatafiaSection/LayoutRatafiaSection.styled.d.ts +1 -0
- package/dist/src/components/sections/LayoutRatafiaSection/LayoutRatafiaSection.styled.js +71 -0
- package/dist/src/components/sections/LayoutRatafiaSection/LayoutRatafiaSection.styled.ts +72 -0
- package/dist/src/components/sections/LayoutRatafiaSection/LayoutRatafiaSection.tsx +56 -0
- package/dist/src/components/sections/LayoutRatafiaSection/LayoutRatafiaSectionProps.types.d.ts +10 -0
- package/dist/src/components/sections/LayoutRatafiaSection/LayoutRatafiaSectionProps.types.js +1 -0
- package/dist/src/components/sections/LayoutRatafiaSection/LayoutRatafiaSectionProps.types.ts +11 -0
- package/dist/src/components/sections/LayoutRatafiaSection/index.d.ts +2 -0
- package/dist/src/components/sections/LayoutRatafiaSection/index.js +1 -0
- package/dist/src/components/sections/LayoutRatafiaSection/index.ts +2 -0
- package/dist/src/components/sections/TryItRatafiaSection/TryItRatafiaSection.js +1 -1
- package/dist/src/components/sections/TryItRatafiaSection/TryItRatafiaSection.tsx +2 -2
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +3 -1
- package/dist/src/components/sections/FeaturesRatafiaSection/FeaturesRatafiaSection.scss +0 -0
|
@@ -35,6 +35,7 @@ export * from './RatafiaSubscriptionCard';
|
|
|
35
35
|
export * from './Snackbar';
|
|
36
36
|
export * from './StepGetForm';
|
|
37
37
|
export * from './StepRatafiaCardList';
|
|
38
|
+
export * from './SubtypeDocumentCard';
|
|
38
39
|
export * from './TagsRatafiaList';
|
|
39
40
|
export * from './TextInput';
|
|
40
41
|
export * from './TooltipMenu';
|
|
@@ -35,6 +35,7 @@ export * from './RatafiaSubscriptionCard';
|
|
|
35
35
|
export * from './Snackbar';
|
|
36
36
|
export * from './StepGetForm';
|
|
37
37
|
export * from './StepRatafiaCardList';
|
|
38
|
+
export * from './SubtypeDocumentCard';
|
|
38
39
|
export * from './TagsRatafiaList';
|
|
39
40
|
export * from './TextInput';
|
|
40
41
|
export * from './TooltipMenu';
|
|
@@ -35,6 +35,7 @@ export * from './RatafiaSubscriptionCard'
|
|
|
35
35
|
export * from './Snackbar'
|
|
36
36
|
export * from './StepGetForm'
|
|
37
37
|
export * from './StepRatafiaCardList'
|
|
38
|
+
export * from './SubtypeDocumentCard'
|
|
38
39
|
export * from './TagsRatafiaList'
|
|
39
40
|
export * from './TextInput'
|
|
40
41
|
export * from './TooltipMenu'
|
package/dist/src/components/organisms/FeaturesRatafiaContent/FeaturesRatafiaContent.styled.js
CHANGED
|
@@ -7,24 +7,21 @@ export const FeaturesRatafiaContentStyled = styled.div `
|
|
|
7
7
|
flex: 1 0 0;
|
|
8
8
|
gap: 1.5rem;
|
|
9
9
|
|
|
10
|
-
.features-ratafia-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
gap: 1rem;
|
|
18
|
-
margin-bottom: 1rem;
|
|
10
|
+
.features-ratafia-content__wrapper__title {
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
align-items: center;
|
|
15
|
+
align-self: stretch;
|
|
16
|
+
gap: 1rem;
|
|
19
17
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
18
|
+
&__text {
|
|
19
|
+
align-self: stretch;
|
|
20
|
+
color: var(--neutral-neutral-1);
|
|
21
|
+
}
|
|
22
|
+
&__description {
|
|
23
|
+
align-self: stretch;
|
|
24
|
+
color: var(--neutral-neutral-1);
|
|
28
25
|
}
|
|
29
26
|
}
|
|
30
27
|
`;
|
package/dist/src/components/organisms/FeaturesRatafiaContent/FeaturesRatafiaContent.styled.ts
CHANGED
|
@@ -8,24 +8,21 @@ export const FeaturesRatafiaContentStyled = styled.div`
|
|
|
8
8
|
flex: 1 0 0;
|
|
9
9
|
gap: 1.5rem;
|
|
10
10
|
|
|
11
|
-
.features-ratafia-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
gap: 1rem;
|
|
19
|
-
margin-bottom: 1rem;
|
|
11
|
+
.features-ratafia-content__wrapper__title {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
align-items: center;
|
|
16
|
+
align-self: stretch;
|
|
17
|
+
gap: 1rem;
|
|
20
18
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
19
|
+
&__text {
|
|
20
|
+
align-self: stretch;
|
|
21
|
+
color: var(--neutral-neutral-1);
|
|
22
|
+
}
|
|
23
|
+
&__description {
|
|
24
|
+
align-self: stretch;
|
|
25
|
+
color: var(--neutral-neutral-1);
|
|
29
26
|
}
|
|
30
27
|
}
|
|
31
28
|
`
|
package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafia.js
CHANGED
|
@@ -3,6 +3,6 @@ import { KeyFactCardListRatafia } from '../../molecules';
|
|
|
3
3
|
import { KeyFactsResultContentRatafiaStyled } from './KeyFactsResultContentRatafia.styled';
|
|
4
4
|
import { ReviewKeyFactsResultRatafia } from '../../atoms';
|
|
5
5
|
export const KeyFactsResultContentRatafia = ({ result, review }) => {
|
|
6
|
-
return (_jsxs(KeyFactsResultContentRatafiaStyled, { children: [_jsx("h2", {
|
|
6
|
+
return (_jsxs(KeyFactsResultContentRatafiaStyled, { children: [_jsx("h2", { className: 'sans-serif --bold-weight key-facts-result-content__document-name', children: result?.documentName }), _jsxs("div", { className: 'key-facts-result-content__content', children: [result !== null && _jsx(KeyFactCardListRatafia, { keyFacts: result.keyFacts }), _jsx(ReviewKeyFactsResultRatafia, { ...review })] })] }));
|
|
7
7
|
};
|
|
8
8
|
export default KeyFactsResultContentRatafia;
|
package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafia.tsx
CHANGED
|
@@ -8,9 +8,7 @@ import { ReviewKeyFactsResultRatafia } from '../../atoms'
|
|
|
8
8
|
export const KeyFactsResultContentRatafia: React.FC<KeyFactsResultContentRatafiaProps> = ({ result, review }) => {
|
|
9
9
|
return (
|
|
10
10
|
<KeyFactsResultContentRatafiaStyled>
|
|
11
|
-
<h2
|
|
12
|
-
{result?.documentName}
|
|
13
|
-
</h2>
|
|
11
|
+
<h2 className='sans-serif --bold-weight key-facts-result-content__document-name'>{result?.documentName}</h2>
|
|
14
12
|
<div className='key-facts-result-content__content'>
|
|
15
13
|
{result !== null && <KeyFactCardListRatafia keyFacts={result.keyFacts} />}
|
|
16
14
|
<ReviewKeyFactsResultRatafia {...review} />
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { KeyFactRatafiaCardProps, ReviewKeyFactsResultRatafiaProps } from '../../atoms';
|
|
2
|
-
import React from 'react';
|
|
3
2
|
export interface KeyFactsResultContentRatafiaProps {
|
|
4
3
|
result: KeyFactsResultProps | null;
|
|
5
4
|
review: ReviewKeyFactsResultRatafiaProps;
|
|
@@ -7,5 +6,4 @@ export interface KeyFactsResultContentRatafiaProps {
|
|
|
7
6
|
export interface KeyFactsResultProps {
|
|
8
7
|
documentName: string;
|
|
9
8
|
keyFacts: KeyFactRatafiaCardProps[];
|
|
10
|
-
documentNameRef?: React.RefObject<HTMLHeadingElement>;
|
|
11
9
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { KeyFactRatafiaCardProps, ReviewKeyFactsResultRatafiaProps } from '../../atoms'
|
|
2
|
-
import React from 'react'
|
|
3
2
|
|
|
4
3
|
export interface KeyFactsResultContentRatafiaProps {
|
|
5
4
|
result: KeyFactsResultProps | null
|
|
@@ -9,5 +8,4 @@ export interface KeyFactsResultContentRatafiaProps {
|
|
|
9
8
|
export interface KeyFactsResultProps {
|
|
10
9
|
documentName: string
|
|
11
10
|
keyFacts: KeyFactRatafiaCardProps[]
|
|
12
|
-
documentNameRef?: React.RefObject<HTMLHeadingElement>
|
|
13
11
|
}
|
|
@@ -8,7 +8,7 @@ export const FaqSectionStyled = styled.section `
|
|
|
8
8
|
max-width: 700px;
|
|
9
9
|
width: 100%;
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
.faq-ratafia-section {
|
|
12
12
|
display: flex;
|
|
13
13
|
align-items: center;
|
|
14
14
|
justify-content: center;
|
|
@@ -25,8 +25,5 @@ export const FaqSectionStyled = styled.section `
|
|
|
25
25
|
@media ${device['desktop-xl']} {
|
|
26
26
|
padding: 3rem 28rem 5rem 28rem;
|
|
27
27
|
}
|
|
28
|
-
.faqs {
|
|
29
|
-
max-width: 56.75rem;
|
|
30
|
-
}
|
|
31
28
|
}
|
|
32
29
|
`;
|
|
@@ -9,7 +9,7 @@ export const FaqSectionStyled = styled.section`
|
|
|
9
9
|
max-width: 700px;
|
|
10
10
|
width: 100%;
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
.faq-ratafia-section {
|
|
13
13
|
display: flex;
|
|
14
14
|
align-items: center;
|
|
15
15
|
justify-content: center;
|
|
@@ -26,8 +26,5 @@ export const FaqSectionStyled = styled.section`
|
|
|
26
26
|
@media ${device['desktop-xl']} {
|
|
27
27
|
padding: 3rem 28rem 5rem 28rem;
|
|
28
28
|
}
|
|
29
|
-
.faqs {
|
|
30
|
-
max-width: 56.75rem;
|
|
31
|
-
}
|
|
32
29
|
}
|
|
33
30
|
`
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Button } from '../../atoms';
|
|
3
|
+
import { LayoutRatafiaSectionStyled } from './LayoutRatafiaSection.styled';
|
|
4
|
+
import { TagsRatafiaList } from '../../molecules';
|
|
5
|
+
const LayoutRatafiaSection = ({ title, children, tags, ctaLabel, ctaLink, ctaDataQa, media }) => {
|
|
6
|
+
if (children == undefined)
|
|
7
|
+
return null;
|
|
8
|
+
const existMediaNode = media !== undefined;
|
|
9
|
+
return (_jsx(LayoutRatafiaSectionStyled, { className: 'layout-ratafia-section', children: _jsxs("div", { className: 'layout-ratafia-section__wrapper background-ratafia-animation', children: [_jsxs("div", { className: 'layout-ratafia-section__wrapper__info', children: [_jsxs("div", { className: 'layout-ratafia-section__wrapper__info__paragraph', children: [title && (_jsx("h2", { className: 'layout-ratafia-section__wrapper__info__paragraph__title sans-serif --super-large --bold-weight', children: title })), _jsx("div", { className: 'layout-ratafia-section__wrapper__info__paragraph__content sans-serif --super-medium', children: children })] }), tags?.length && (_jsx("div", { className: 'layout-ratafia-section__wrapper__info__tags', children: _jsx(TagsRatafiaList, { tags: tags }) })), ctaLabel && (_jsx("div", { className: 'layout-ratafia-section__wrapper__info__button', children: _jsx(Button, { givenClass: 'mid-banner-ratafia-content__cta', dataQa: ctaDataQa ?? 'layout-ratafia-cta', link: ctaLink ?? '#', color: 'primary', label: ctaLabel }) }))] }), existMediaNode && _jsx("div", { className: 'layout-ratafia-section__wrapper__media', children: media })] }) }));
|
|
10
|
+
};
|
|
11
|
+
export default LayoutRatafiaSection;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const LayoutRatafiaSectionStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { device } from '../../../globalStyles/breakpoints';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
export const LayoutRatafiaSectionStyled = styled.section `
|
|
4
|
+
display: flex;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
align-content: center;
|
|
7
|
+
width: 100%;
|
|
8
|
+
padding: 2rem 1.5rem;
|
|
9
|
+
|
|
10
|
+
@media ${device.laptop} {
|
|
11
|
+
padding: 3rem 2rem;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@media ${device['desktop-xl']} {
|
|
15
|
+
padding: 3rem 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.layout-ratafia-section {
|
|
19
|
+
&__wrapper {
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
justify-content: center;
|
|
23
|
+
align-items: center;
|
|
24
|
+
align-self: stretch;
|
|
25
|
+
padding: 1.5rem;
|
|
26
|
+
gap: 2.5rem;
|
|
27
|
+
border-radius: 16px;
|
|
28
|
+
max-width: 1200px;
|
|
29
|
+
|
|
30
|
+
@media ${device['landscape-tablets']} {
|
|
31
|
+
flex-direction: row;
|
|
32
|
+
padding: 2rem;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@media ${device.laptop} {
|
|
36
|
+
gap: 4rem;
|
|
37
|
+
padding: 3rem;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&__info {
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-direction: column;
|
|
43
|
+
justify-content: center;
|
|
44
|
+
align-items: flex-start;
|
|
45
|
+
align-self: stretch;
|
|
46
|
+
gap: 2rem;
|
|
47
|
+
|
|
48
|
+
&__paragraph {
|
|
49
|
+
display: flex;
|
|
50
|
+
flex-direction: column;
|
|
51
|
+
gap: 1rem;
|
|
52
|
+
color: var(--others-white);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&__tags {
|
|
56
|
+
flex: 1;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&__button {
|
|
60
|
+
display: flex;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&__media {
|
|
65
|
+
display: flex;
|
|
66
|
+
flex: 300px 0 0;
|
|
67
|
+
padding: 2rem 0;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
`;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { device } from '../../../globalStyles/breakpoints'
|
|
2
|
+
import styled from 'styled-components'
|
|
3
|
+
|
|
4
|
+
export const LayoutRatafiaSectionStyled = styled.section`
|
|
5
|
+
display: flex;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
align-content: center;
|
|
8
|
+
width: 100%;
|
|
9
|
+
padding: 2rem 1.5rem;
|
|
10
|
+
|
|
11
|
+
@media ${device.laptop} {
|
|
12
|
+
padding: 3rem 2rem;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@media ${device['desktop-xl']} {
|
|
16
|
+
padding: 3rem 0;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.layout-ratafia-section {
|
|
20
|
+
&__wrapper {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
justify-content: center;
|
|
24
|
+
align-items: center;
|
|
25
|
+
align-self: stretch;
|
|
26
|
+
padding: 1.5rem;
|
|
27
|
+
gap: 2.5rem;
|
|
28
|
+
border-radius: 16px;
|
|
29
|
+
max-width: 1200px;
|
|
30
|
+
|
|
31
|
+
@media ${device['landscape-tablets']} {
|
|
32
|
+
flex-direction: row;
|
|
33
|
+
padding: 2rem;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@media ${device.laptop} {
|
|
37
|
+
gap: 4rem;
|
|
38
|
+
padding: 3rem;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&__info {
|
|
42
|
+
display: flex;
|
|
43
|
+
flex-direction: column;
|
|
44
|
+
justify-content: center;
|
|
45
|
+
align-items: flex-start;
|
|
46
|
+
align-self: stretch;
|
|
47
|
+
gap: 2rem;
|
|
48
|
+
|
|
49
|
+
&__paragraph {
|
|
50
|
+
display: flex;
|
|
51
|
+
flex-direction: column;
|
|
52
|
+
gap: 1rem;
|
|
53
|
+
color: var(--others-white);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&__tags {
|
|
57
|
+
flex: 1;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&__button {
|
|
61
|
+
display: flex;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&__media {
|
|
66
|
+
display: flex;
|
|
67
|
+
flex: 300px 0 0;
|
|
68
|
+
padding: 2rem 0;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
`
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import React, { type FC } from 'react'
|
|
2
|
+
|
|
3
|
+
import { Button } from '../../atoms'
|
|
4
|
+
import { type LayoutRatafiaSectionProps } from './LayoutRatafiaSectionProps.types'
|
|
5
|
+
import { LayoutRatafiaSectionStyled } from './LayoutRatafiaSection.styled'
|
|
6
|
+
import { TagsRatafiaList } from '../../molecules'
|
|
7
|
+
|
|
8
|
+
const LayoutRatafiaSection: FC<LayoutRatafiaSectionProps> = ({
|
|
9
|
+
title,
|
|
10
|
+
children,
|
|
11
|
+
tags,
|
|
12
|
+
ctaLabel,
|
|
13
|
+
ctaLink,
|
|
14
|
+
ctaDataQa,
|
|
15
|
+
media
|
|
16
|
+
}) => {
|
|
17
|
+
if (children == undefined) return null
|
|
18
|
+
const existMediaNode = media !== undefined
|
|
19
|
+
return (
|
|
20
|
+
<LayoutRatafiaSectionStyled className='layout-ratafia-section'>
|
|
21
|
+
<div className='layout-ratafia-section__wrapper background-ratafia-animation'>
|
|
22
|
+
<div className='layout-ratafia-section__wrapper__info'>
|
|
23
|
+
<div className='layout-ratafia-section__wrapper__info__paragraph'>
|
|
24
|
+
{title && (
|
|
25
|
+
<h2 className='layout-ratafia-section__wrapper__info__paragraph__title sans-serif --super-large --bold-weight'>
|
|
26
|
+
{title}
|
|
27
|
+
</h2>
|
|
28
|
+
)}
|
|
29
|
+
<div className='layout-ratafia-section__wrapper__info__paragraph__content sans-serif --super-medium'>
|
|
30
|
+
{children}
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
{tags?.length && (
|
|
34
|
+
<div className='layout-ratafia-section__wrapper__info__tags'>
|
|
35
|
+
<TagsRatafiaList tags={tags} />
|
|
36
|
+
</div>
|
|
37
|
+
)}
|
|
38
|
+
{ctaLabel && (
|
|
39
|
+
<div className='layout-ratafia-section__wrapper__info__button'>
|
|
40
|
+
<Button
|
|
41
|
+
givenClass='mid-banner-ratafia-content__cta'
|
|
42
|
+
dataQa={ctaDataQa ?? 'layout-ratafia-cta'}
|
|
43
|
+
link={ctaLink ?? '#'}
|
|
44
|
+
color='primary'
|
|
45
|
+
label={ctaLabel}
|
|
46
|
+
/>
|
|
47
|
+
</div>
|
|
48
|
+
)}
|
|
49
|
+
</div>
|
|
50
|
+
{existMediaNode && <div className='layout-ratafia-section__wrapper__media'>{media}</div>}
|
|
51
|
+
</div>
|
|
52
|
+
</LayoutRatafiaSectionStyled>
|
|
53
|
+
)
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export default LayoutRatafiaSection
|
package/dist/src/components/sections/LayoutRatafiaSection/LayoutRatafiaSectionProps.types.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TagRatafiaItemProps } from 'src/components/atoms';
|
|
2
|
+
export interface LayoutRatafiaSectionProps {
|
|
3
|
+
title?: string;
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
tags?: TagRatafiaItemProps[];
|
|
6
|
+
ctaLabel?: string;
|
|
7
|
+
ctaLink?: string;
|
|
8
|
+
ctaDataQa?: string;
|
|
9
|
+
media?: React.ReactNode;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TagRatafiaItemProps } from 'src/components/atoms'
|
|
2
|
+
|
|
3
|
+
export interface LayoutRatafiaSectionProps {
|
|
4
|
+
title?: string
|
|
5
|
+
children: React.ReactNode
|
|
6
|
+
tags?: TagRatafiaItemProps[]
|
|
7
|
+
ctaLabel?: string
|
|
8
|
+
ctaLink?: string
|
|
9
|
+
ctaDataQa?: string
|
|
10
|
+
media?: React.ReactNode
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as LayoutRatafiaSection } from './LayoutRatafiaSection';
|
|
@@ -2,6 +2,6 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { TryItRatafiaSectionStyled } from './TryItRatafiaSection.styled';
|
|
3
3
|
// import './TryItRatafiaSection.scss'
|
|
4
4
|
const TryItRatafiaSection = ({ icon, paragraph, children }) => {
|
|
5
|
-
return (_jsx(TryItRatafiaSectionStyled, { className: 'try-it-ratafia-section', children: _jsxs("div", { className: 'try-it-ratafia-section__wrapper background-ratafia-animation', children: [_jsxs("div", { className: 'try-it-ratafia-section__wrapper__content', children: [icon !== null && _jsx("div", { className: 'try-it-ratafia-section__wrapper__content__icon', children: icon }), _jsx("
|
|
5
|
+
return (_jsx(TryItRatafiaSectionStyled, { className: 'try-it-ratafia-section', children: _jsxs("div", { className: 'try-it-ratafia-section__wrapper background-ratafia-animation', children: [_jsxs("div", { className: 'try-it-ratafia-section__wrapper__content', children: [icon !== null && _jsx("div", { className: 'try-it-ratafia-section__wrapper__content__icon', children: icon }), _jsx("h2", { className: 'sans-serif --extra-large --bold-weight try-it-ratafia-section__wrapper__content__title', children: paragraph })] }), _jsx("span", { className: 'try-it-ratafia-section__wrapper__children', children: children })] }) }));
|
|
6
6
|
};
|
|
7
7
|
export default TryItRatafiaSection;
|
|
@@ -10,9 +10,9 @@ const TryItRatafiaSection: FC<TryItRatafiaSectionProps> = ({ icon, paragraph, ch
|
|
|
10
10
|
<div className='try-it-ratafia-section__wrapper background-ratafia-animation'>
|
|
11
11
|
<div className='try-it-ratafia-section__wrapper__content'>
|
|
12
12
|
{icon !== null && <div className={'try-it-ratafia-section__wrapper__content__icon'}>{icon}</div>}
|
|
13
|
-
<
|
|
13
|
+
<h2 className='sans-serif --extra-large --bold-weight try-it-ratafia-section__wrapper__content__title'>
|
|
14
14
|
{paragraph}
|
|
15
|
-
</
|
|
15
|
+
</h2>
|
|
16
16
|
</div>
|
|
17
17
|
<span className='try-it-ratafia-section__wrapper__children'>{children}</span>
|
|
18
18
|
</div>
|