@npm_leadtech/legal-lib-components 5.18.5 → 5.18.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/README.md +16 -0
- package/dist/src/components/atoms/DisclaimerRatafia/DisclaimerRatafia.js +1 -1
- package/dist/src/components/atoms/DisclaimerRatafia/DisclaimerRatafia.tsx +0 -3
- package/dist/src/components/atoms/GoogleButton/GoogleButton.js +2 -2
- package/dist/src/components/atoms/GoogleButton/GoogleButton.tsx +2 -2
- package/dist/src/components/atoms/GoogleButton/GoogleButtonProps.types.d.ts +1 -0
- package/dist/src/components/atoms/GoogleButton/GoogleButtonProps.types.ts +1 -0
- package/dist/src/components/atoms/TagRatafiaItem/TagRatafiaItem.styled.js +2 -0
- package/dist/src/components/atoms/TagRatafiaItem/TagRatafiaItem.styled.ts +2 -0
- package/dist/src/components/molecules/HeaderRatafia/HeaderRatafia.js +2 -2
- package/dist/src/components/molecules/HeaderRatafia/HeaderRatafia.tsx +5 -2
- package/dist/src/components/molecules/HeaderRatafia/HeaderRatafiaProps.types.d.ts +2 -0
- package/dist/src/components/molecules/HeaderRatafia/HeaderRatafiaProps.types.ts +2 -0
- 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/RatafiaSubscriptionCard/RatafiaSubscriptionCard.styled.js +20 -5
- package/dist/src/components/molecules/RatafiaSubscriptionCard/RatafiaSubscriptionCard.styled.ts +20 -5
- 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/UploadRatafiaZone/UploadRatafiaZone.styled.js +2 -1
- package/dist/src/components/molecules/UploadRatafiaZone/UploadRatafiaZone.styled.ts +2 -1
- package/dist/src/components/organisms/FeaturesRatafiaContent/FeaturesRatafiaContent.styled.js +17 -14
- package/dist/src/components/organisms/FeaturesRatafiaContent/FeaturesRatafiaContent.styled.ts +17 -14
- package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafia.js +1 -1
- package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafia.tsx +3 -1
- package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafiaProps.types.d.ts +2 -0
- package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafiaProps.types.ts +2 -0
- package/dist/src/components/organisms/LayoutRatafia/LayoutRatafia.styled.js +9 -13
- package/dist/src/components/organisms/LayoutRatafia/LayoutRatafia.styled.ts +9 -13
- package/dist/src/components/organisms/LoginRatafiaContent/LoginRatafiaContent.js +4 -3
- package/dist/src/components/organisms/LoginRatafiaContent/LoginRatafiaContent.styled.js +7 -0
- package/dist/src/components/organisms/LoginRatafiaContent/LoginRatafiaContent.styled.ts +7 -0
- package/dist/src/components/organisms/LoginRatafiaContent/LoginRatafiaContent.tsx +8 -2
- package/dist/src/components/pages/LoginRatafiaPage/LoginRatafiaPage.styled.js +11 -2
- package/dist/src/components/pages/LoginRatafiaPage/LoginRatafiaPage.styled.ts +11 -2
- package/dist/src/components/pages/PricingRatafiaPage/PricingRatafiaPage.d.ts +3 -0
- package/dist/src/components/pages/PricingRatafiaPage/PricingRatafiaPage.js +12 -0
- package/dist/src/components/pages/PricingRatafiaPage/PricingRatafiaPage.styled.d.ts +1 -0
- package/dist/src/components/pages/PricingRatafiaPage/PricingRatafiaPage.styled.js +28 -0
- package/dist/src/components/pages/PricingRatafiaPage/PricingRatafiaPage.styled.ts +29 -0
- package/dist/src/components/pages/PricingRatafiaPage/PricingRatafiaPage.tsx +38 -0
- package/dist/src/components/pages/PricingRatafiaPage/PricingRatafiaPageProps.d.ts +33 -0
- package/dist/src/components/pages/PricingRatafiaPage/PricingRatafiaPageProps.js +1 -0
- package/dist/src/components/pages/PricingRatafiaPage/PricingRatafiaPageProps.ts +38 -0
- package/dist/src/components/pages/PricingRatafiaPage/index.d.ts +2 -0
- package/dist/src/components/pages/PricingRatafiaPage/index.js +2 -0
- package/dist/src/components/pages/PricingRatafiaPage/index.ts +2 -0
- package/dist/src/components/pages/index.d.ts +1 -0
- package/dist/src/components/pages/index.js +1 -0
- package/dist/src/components/pages/index.ts +1 -0
- package/dist/src/components/sections/FaqSection/FaqSection.styled.js +4 -1
- package/dist/src/components/sections/FaqSection/FaqSection.styled.ts +4 -1
- package/dist/src/components/sections/FeaturesRatafiaSection/FeaturesRatafiaSection.scss +0 -0
- package/dist/src/components/sections/FeaturesRatafiaSection/FeaturesRatafiaSection.styled.js +0 -1
- package/dist/src/components/sections/FeaturesRatafiaSection/FeaturesRatafiaSection.styled.ts +0 -1
- package/dist/src/components/sections/LayoutRatafiaSection/LayoutRatafiaSection.d.ts +4 -0
- package/dist/src/components/sections/LayoutRatafiaSection/LayoutRatafiaSection.js +12 -0
- package/dist/src/components/sections/LayoutRatafiaSection/LayoutRatafiaSection.styled.d.ts +1 -0
- package/dist/src/components/sections/LayoutRatafiaSection/LayoutRatafiaSection.styled.js +75 -0
- package/dist/src/components/sections/LayoutRatafiaSection/LayoutRatafiaSection.styled.ts +76 -0
- package/dist/src/components/sections/LayoutRatafiaSection/LayoutRatafiaSection.tsx +61 -0
- package/dist/src/components/sections/LayoutRatafiaSection/LayoutRatafiaSectionProps.types.d.ts +12 -0
- package/dist/src/components/sections/LayoutRatafiaSection/LayoutRatafiaSectionProps.types.js +1 -0
- package/dist/src/components/sections/LayoutRatafiaSection/LayoutRatafiaSectionProps.types.ts +13 -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 -2
- package/dist/src/components/sections/TryItRatafiaSection/TryItRatafiaSection.tsx +2 -3
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +6 -3
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Checkbox } from '../../atoms';
|
|
3
3
|
import { TextInput } from '../../molecules';
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
import { LoginRatafiaContentStyled } from './LoginRatafiaContent.styled';
|
|
5
|
+
const LoginRatafiaContent = ({ title, email, policy }) => {
|
|
6
|
+
return (_jsxs(LoginRatafiaContentStyled, { children: [_jsx("h2", { className: 'login-ratafia-content__title', children: title }), _jsx("div", { className: 'login-ratafia-content__email', children: _jsx(TextInput, { ...email }) }), _jsx("div", { className: 'login-ratafia-content__policy', children: _jsx(Checkbox, { ...policy }) })] }));
|
|
6
7
|
};
|
|
7
8
|
export default LoginRatafiaContent;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { device } from '../../../globalStyles/breakpoints';
|
|
1
2
|
import styled from 'styled-components';
|
|
2
3
|
export const LoginRatafiaContentStyled = styled.div `
|
|
3
4
|
width: 100%;
|
|
@@ -11,4 +12,10 @@ export const LoginRatafiaContentStyled = styled.div `
|
|
|
11
12
|
margin-bottom: 0.5rem;
|
|
12
13
|
}
|
|
13
14
|
}
|
|
15
|
+
.login-ratafia-content__policy {
|
|
16
|
+
margin-top: 1rem;
|
|
17
|
+
@media ${device['portrait-tablets']} {
|
|
18
|
+
display: none;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
14
21
|
`;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { device } from '../../../globalStyles/breakpoints'
|
|
1
2
|
import styled from 'styled-components'
|
|
2
3
|
|
|
3
4
|
export const LoginRatafiaContentStyled = styled.div`
|
|
@@ -12,4 +13,10 @@ export const LoginRatafiaContentStyled = styled.div`
|
|
|
12
13
|
margin-bottom: 0.5rem;
|
|
13
14
|
}
|
|
14
15
|
}
|
|
16
|
+
.login-ratafia-content__policy {
|
|
17
|
+
margin-top: 1rem;
|
|
18
|
+
@media ${device['portrait-tablets']} {
|
|
19
|
+
display: none;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
15
22
|
`
|
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
import React, { type FC } from 'react'
|
|
2
2
|
|
|
3
3
|
import { type LoginRatafiaContentProps } from './LoginRatafiaContentProps.types'
|
|
4
|
-
|
|
4
|
+
|
|
5
|
+
import { Checkbox } from '../../atoms'
|
|
5
6
|
import { TextInput } from '../../molecules'
|
|
6
7
|
|
|
7
|
-
|
|
8
|
+
import { LoginRatafiaContentStyled } from './LoginRatafiaContent.styled'
|
|
9
|
+
|
|
10
|
+
const LoginRatafiaContent: FC<LoginRatafiaContentProps> = ({ title, email, policy }) => {
|
|
8
11
|
return (
|
|
9
12
|
<LoginRatafiaContentStyled>
|
|
10
13
|
<h2 className='login-ratafia-content__title'>{title}</h2>
|
|
11
14
|
<div className='login-ratafia-content__email'>
|
|
12
15
|
<TextInput {...email} />
|
|
13
16
|
</div>
|
|
17
|
+
<div className='login-ratafia-content__policy'>
|
|
18
|
+
<Checkbox {...policy} />
|
|
19
|
+
</div>
|
|
14
20
|
</LoginRatafiaContentStyled>
|
|
15
21
|
)
|
|
16
22
|
}
|
|
@@ -1,15 +1,24 @@
|
|
|
1
|
+
import { device } from '../../../globalStyles/breakpoints';
|
|
1
2
|
import styled from 'styled-components';
|
|
2
3
|
export const LoginRatafiaPageStyled = styled.div `
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
align-items: flex-start;
|
|
7
|
+
flex: 1 0 0;
|
|
8
|
+
align-self: stretch;
|
|
9
|
+
gap: 1.5rem;
|
|
3
10
|
background-color: var(--neutral-neutral-6);
|
|
4
11
|
|
|
5
|
-
|
|
12
|
+
.login-ratafia-page__ctas {
|
|
6
13
|
text-align: center;
|
|
7
14
|
&__button {
|
|
8
15
|
display: block;
|
|
9
16
|
width: 100%;
|
|
17
|
+
@media ${device['portrait-tablets']} {
|
|
18
|
+
width: 12.5rem;
|
|
19
|
+
}
|
|
10
20
|
margin-bottom: 1rem;
|
|
11
21
|
}
|
|
12
|
-
|
|
13
22
|
&__signIn {
|
|
14
23
|
&__button {
|
|
15
24
|
background: none;
|
|
@@ -1,16 +1,25 @@
|
|
|
1
|
+
import { device } from '../../../globalStyles/breakpoints'
|
|
1
2
|
import styled from 'styled-components'
|
|
2
3
|
|
|
3
4
|
export const LoginRatafiaPageStyled = styled.div`
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
align-items: flex-start;
|
|
8
|
+
flex: 1 0 0;
|
|
9
|
+
align-self: stretch;
|
|
10
|
+
gap: 1.5rem;
|
|
4
11
|
background-color: var(--neutral-neutral-6);
|
|
5
12
|
|
|
6
|
-
|
|
13
|
+
.login-ratafia-page__ctas {
|
|
7
14
|
text-align: center;
|
|
8
15
|
&__button {
|
|
9
16
|
display: block;
|
|
10
17
|
width: 100%;
|
|
18
|
+
@media ${device['portrait-tablets']} {
|
|
19
|
+
width: 12.5rem;
|
|
20
|
+
}
|
|
11
21
|
margin-bottom: 1rem;
|
|
12
22
|
}
|
|
13
|
-
|
|
14
23
|
&__signIn {
|
|
15
24
|
&__button {
|
|
16
25
|
background: none;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import DisclaimerRatafia from '../../atoms/DisclaimerRatafia/DisclaimerRatafia';
|
|
3
|
+
import { LayoutRatafia } from '../../organisms';
|
|
4
|
+
import { RatafiaSubscriptionCard } from '../../molecules';
|
|
5
|
+
import { PricingRatafiaPageStyled } from './PricingRatafiaPage.styled';
|
|
6
|
+
export const PricingRatafiaPage = ({ header, disclaimer, pricingPage }) => {
|
|
7
|
+
const footerDesktop = (_jsx(DisclaimerRatafia, { icon: disclaimer.icon, text: disclaimer.text, copyrightText: disclaimer.copyrightText, ctaTextShowDisclaimer: disclaimer.ctaTextShowDisclaimer, ctaTextCloseDisclaimer: disclaimer.ctaTextCloseDisclaimer }));
|
|
8
|
+
const footerMobile = _jsx(_Fragment, { children: footerDesktop });
|
|
9
|
+
const content = (_jsxs("div", { className: 'pricing-ratafia-page__content', children: [_jsx("div", { className: 'pricing-ratafia-page__content__title', children: pricingPage.title }), _jsx("div", { className: 'pricing-ratafia-page__content__cards', children: pricingPage.cardSubscription?.length > 0 &&
|
|
10
|
+
pricingPage.cardSubscription.map((card) => _jsx(RatafiaSubscriptionCard, { ...card }, card.id)) })] }));
|
|
11
|
+
return (_jsx(PricingRatafiaPageStyled, { className: 'pricing-ratafia-page', children: _jsx(LayoutRatafia, { header: header, content: content, footerDesktop: footerDesktop, footerMobile: footerMobile }) }));
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PricingRatafiaPageStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { device } from '../../../globalStyles/breakpoints';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
export const PricingRatafiaPageStyled = styled.div `
|
|
4
|
+
background-color: var(--neutral-neutral-6);
|
|
5
|
+
|
|
6
|
+
.pricing-ratafia-page__content {
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-flow: column nowrap;
|
|
9
|
+
gap: 2rem;
|
|
10
|
+
width: 100%;
|
|
11
|
+
|
|
12
|
+
&__title {
|
|
13
|
+
font-size: 18px;
|
|
14
|
+
font-weight: bold;
|
|
15
|
+
color: var(--neutral-neutral-2);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&__cards {
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: row;
|
|
21
|
+
gap: 1rem;
|
|
22
|
+
|
|
23
|
+
@media ${device.mobile} {
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
`;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { device } from '../../../globalStyles/breakpoints'
|
|
2
|
+
import styled from 'styled-components'
|
|
3
|
+
|
|
4
|
+
export const PricingRatafiaPageStyled = styled.div`
|
|
5
|
+
background-color: var(--neutral-neutral-6);
|
|
6
|
+
|
|
7
|
+
.pricing-ratafia-page__content {
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-flow: column nowrap;
|
|
10
|
+
gap: 2rem;
|
|
11
|
+
width: 100%;
|
|
12
|
+
|
|
13
|
+
&__title {
|
|
14
|
+
font-size: 18px;
|
|
15
|
+
font-weight: bold;
|
|
16
|
+
color: var(--neutral-neutral-2);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&__cards {
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: row;
|
|
22
|
+
gap: 1rem;
|
|
23
|
+
|
|
24
|
+
@media ${device.mobile} {
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
`
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
|
|
3
|
+
import DisclaimerRatafia from '../../atoms/DisclaimerRatafia/DisclaimerRatafia'
|
|
4
|
+
import { LayoutRatafia } from '../../organisms'
|
|
5
|
+
import { type PricingRatafiaPageProps } from './PricingRatafiaPageProps'
|
|
6
|
+
import { RatafiaSubscriptionCard } from '../../molecules'
|
|
7
|
+
|
|
8
|
+
import { PricingRatafiaPageStyled } from './PricingRatafiaPage.styled'
|
|
9
|
+
|
|
10
|
+
export const PricingRatafiaPage: React.FC<PricingRatafiaPageProps> = ({ header, disclaimer, pricingPage }) => {
|
|
11
|
+
const footerDesktop = (
|
|
12
|
+
<DisclaimerRatafia
|
|
13
|
+
icon={disclaimer.icon}
|
|
14
|
+
text={disclaimer.text}
|
|
15
|
+
copyrightText={disclaimer.copyrightText}
|
|
16
|
+
ctaTextShowDisclaimer={disclaimer.ctaTextShowDisclaimer}
|
|
17
|
+
ctaTextCloseDisclaimer={disclaimer.ctaTextCloseDisclaimer}
|
|
18
|
+
/>
|
|
19
|
+
)
|
|
20
|
+
|
|
21
|
+
const footerMobile = <>{footerDesktop}</>
|
|
22
|
+
|
|
23
|
+
const content = (
|
|
24
|
+
<div className='pricing-ratafia-page__content'>
|
|
25
|
+
<div className='pricing-ratafia-page__content__title'>{pricingPage.title}</div>
|
|
26
|
+
<div className='pricing-ratafia-page__content__cards'>
|
|
27
|
+
{pricingPage.cardSubscription?.length > 0 &&
|
|
28
|
+
pricingPage.cardSubscription.map((card) => <RatafiaSubscriptionCard key={card.id} {...card} />)}
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
)
|
|
32
|
+
|
|
33
|
+
return (
|
|
34
|
+
<PricingRatafiaPageStyled className='pricing-ratafia-page'>
|
|
35
|
+
<LayoutRatafia header={header} content={content} footerDesktop={footerDesktop} footerMobile={footerMobile} />
|
|
36
|
+
</PricingRatafiaPageStyled>
|
|
37
|
+
)
|
|
38
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type DisclaimerRatafiaProps } from '../../atoms';
|
|
2
|
+
import { type HeaderRatafiaProps } from '../../molecules';
|
|
3
|
+
export interface PricingRatafiaPageProps {
|
|
4
|
+
header: HeaderRatafiaProps;
|
|
5
|
+
disclaimer: DisclaimerRatafiaProps;
|
|
6
|
+
pricingPage: PricingPageProps;
|
|
7
|
+
}
|
|
8
|
+
export interface PricingPageProps {
|
|
9
|
+
title: string;
|
|
10
|
+
cardSubscription: SubscriptionCardProps[] | [];
|
|
11
|
+
}
|
|
12
|
+
export interface SubscriptionCardProps {
|
|
13
|
+
id: string;
|
|
14
|
+
cardStyle: CardStyleType;
|
|
15
|
+
iconTitle: FeatureImageProps;
|
|
16
|
+
title: string;
|
|
17
|
+
priceText: string;
|
|
18
|
+
mainFeatures: FeatureProps[] | [];
|
|
19
|
+
AIFeatures: FeatureProps[] | [];
|
|
20
|
+
buttonText: string;
|
|
21
|
+
linkText: string;
|
|
22
|
+
}
|
|
23
|
+
export type CardStyleType = 'Primary' | 'Secondary';
|
|
24
|
+
interface FeatureProps {
|
|
25
|
+
description: string;
|
|
26
|
+
image: FeatureImageProps;
|
|
27
|
+
title: string;
|
|
28
|
+
}
|
|
29
|
+
interface FeatureImageProps {
|
|
30
|
+
name: string;
|
|
31
|
+
url: string;
|
|
32
|
+
}
|
|
33
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { type DisclaimerRatafiaProps } from '../../atoms'
|
|
2
|
+
import { type HeaderRatafiaProps } from '../../molecules'
|
|
3
|
+
|
|
4
|
+
export interface PricingRatafiaPageProps {
|
|
5
|
+
header: HeaderRatafiaProps
|
|
6
|
+
disclaimer: DisclaimerRatafiaProps
|
|
7
|
+
pricingPage: PricingPageProps
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface PricingPageProps {
|
|
11
|
+
title: string
|
|
12
|
+
cardSubscription: SubscriptionCardProps[] | []
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface SubscriptionCardProps {
|
|
16
|
+
id: string
|
|
17
|
+
cardStyle: CardStyleType
|
|
18
|
+
iconTitle: FeatureImageProps
|
|
19
|
+
title: string
|
|
20
|
+
priceText: string
|
|
21
|
+
mainFeatures: FeatureProps[] | []
|
|
22
|
+
AIFeatures: FeatureProps[] | []
|
|
23
|
+
buttonText: string
|
|
24
|
+
linkText: string
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type CardStyleType = 'Primary' | 'Secondary'
|
|
28
|
+
|
|
29
|
+
interface FeatureProps {
|
|
30
|
+
description: string
|
|
31
|
+
image: FeatureImageProps
|
|
32
|
+
title: string
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
interface FeatureImageProps {
|
|
36
|
+
name: string
|
|
37
|
+
url: string
|
|
38
|
+
}
|
|
@@ -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,5 +25,8 @@ 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
|
+
}
|
|
28
31
|
}
|
|
29
32
|
`;
|
|
@@ -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,5 +26,8 @@ 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
|
+
}
|
|
29
32
|
}
|
|
30
33
|
`
|
|
File without changes
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
import { useIsMobileOrTable } from '../../../hooks';
|
|
6
|
+
const LayoutRatafiaSection = ({ title, children, tags = [], ctaLabel, ctaLink = '#', handleOnClick, ctaDataQa = 'ai-section-cta', image }) => {
|
|
7
|
+
const { isMobile } = useIsMobileOrTable();
|
|
8
|
+
if (children == undefined)
|
|
9
|
+
return null;
|
|
10
|
+
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 > 0 && (_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, link: ctaLink, onClick: handleOnClick, color: 'primary', label: ctaLabel, fluid: isMobile }) }))] }), image !== null && _jsx("div", { className: 'layout-ratafia-section__wrapper__image', children: image })] }) }));
|
|
11
|
+
};
|
|
12
|
+
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,75 @@
|
|
|
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: 2.5rem;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@media ${device.laptop} {
|
|
36
|
+
gap: 4rem;
|
|
37
|
+
padding: 4rem;
|
|
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
|
+
p:not(:last-child) {
|
|
55
|
+
margin-bottom: 1.5rem;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&__tags {
|
|
60
|
+
flex: 1;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&__button {
|
|
64
|
+
display: flex;
|
|
65
|
+
width: 100%;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&__image {
|
|
70
|
+
display: flex;
|
|
71
|
+
flex: 300px 0 0;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
`;
|
|
@@ -0,0 +1,76 @@
|
|
|
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: 2.5rem;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@media ${device.laptop} {
|
|
37
|
+
gap: 4rem;
|
|
38
|
+
padding: 4rem;
|
|
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
|
+
p:not(:last-child) {
|
|
56
|
+
margin-bottom: 1.5rem;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&__tags {
|
|
61
|
+
flex: 1;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&__button {
|
|
65
|
+
display: flex;
|
|
66
|
+
width: 100%;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&__image {
|
|
71
|
+
display: flex;
|
|
72
|
+
flex: 300px 0 0;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
`
|
|
@@ -0,0 +1,61 @@
|
|
|
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
|
+
import { useIsMobileOrTable } from '../../../hooks'
|
|
8
|
+
|
|
9
|
+
const LayoutRatafiaSection: FC<LayoutRatafiaSectionProps> = ({
|
|
10
|
+
title,
|
|
11
|
+
children,
|
|
12
|
+
tags = [],
|
|
13
|
+
ctaLabel,
|
|
14
|
+
ctaLink = '#',
|
|
15
|
+
handleOnClick,
|
|
16
|
+
ctaDataQa = 'ai-section-cta',
|
|
17
|
+
image
|
|
18
|
+
}) => {
|
|
19
|
+
const { isMobile } = useIsMobileOrTable()
|
|
20
|
+
if (children == undefined) return null
|
|
21
|
+
|
|
22
|
+
return (
|
|
23
|
+
<LayoutRatafiaSectionStyled className='layout-ratafia-section'>
|
|
24
|
+
<div className='layout-ratafia-section__wrapper background-ratafia-animation'>
|
|
25
|
+
<div className='layout-ratafia-section__wrapper__info'>
|
|
26
|
+
<div className='layout-ratafia-section__wrapper__info__paragraph'>
|
|
27
|
+
{title && (
|
|
28
|
+
<h2 className='layout-ratafia-section__wrapper__info__paragraph__title sans-serif --super-large --bold-weight'>
|
|
29
|
+
{title}
|
|
30
|
+
</h2>
|
|
31
|
+
)}
|
|
32
|
+
<div className='layout-ratafia-section__wrapper__info__paragraph__content sans-serif --super-medium'>
|
|
33
|
+
{children}
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
{tags?.length > 0 && (
|
|
37
|
+
<div className='layout-ratafia-section__wrapper__info__tags'>
|
|
38
|
+
<TagsRatafiaList tags={tags} />
|
|
39
|
+
</div>
|
|
40
|
+
)}
|
|
41
|
+
{ctaLabel && (
|
|
42
|
+
<div className='layout-ratafia-section__wrapper__info__button'>
|
|
43
|
+
<Button
|
|
44
|
+
givenClass='mid-banner-ratafia-content__cta'
|
|
45
|
+
dataQa={ctaDataQa}
|
|
46
|
+
link={ctaLink}
|
|
47
|
+
onClick={handleOnClick}
|
|
48
|
+
color='primary'
|
|
49
|
+
label={ctaLabel}
|
|
50
|
+
fluid={isMobile}
|
|
51
|
+
/>
|
|
52
|
+
</div>
|
|
53
|
+
)}
|
|
54
|
+
</div>
|
|
55
|
+
{image !== null && <div className='layout-ratafia-section__wrapper__image'>{image}</div>}
|
|
56
|
+
</div>
|
|
57
|
+
</LayoutRatafiaSectionStyled>
|
|
58
|
+
)
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export default LayoutRatafiaSection
|
package/dist/src/components/sections/LayoutRatafiaSection/LayoutRatafiaSectionProps.types.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { MouseEventHandler } from 'react';
|
|
2
|
+
import { TagRatafiaItemProps } from 'src/components/atoms';
|
|
3
|
+
export interface LayoutRatafiaSectionProps {
|
|
4
|
+
title?: string;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
tags?: TagRatafiaItemProps[];
|
|
7
|
+
ctaLabel?: string;
|
|
8
|
+
ctaLink?: string;
|
|
9
|
+
handleOnClick?: MouseEventHandler;
|
|
10
|
+
ctaDataQa?: string;
|
|
11
|
+
image?: React.ReactNode;
|
|
12
|
+
}
|