@npm_leadtech/legal-lib-components 7.5.8 → 7.6.0
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/src/components/atoms/BenefitCard/BenefitCard.d.ts +3 -0
- package/dist/src/components/atoms/BenefitCard/BenefitCard.js +5 -0
- package/dist/src/components/atoms/BenefitCard/BenefitCard.tsx +24 -0
- package/dist/src/components/atoms/{BenefitRatafiaCard/BenefitRatafiaCardProps.types.d.ts → BenefitCard/BenefitCardProps.types.d.ts} +3 -1
- package/dist/src/components/atoms/BenefitCard/BenefitCardProps.types.ts +8 -0
- package/dist/src/components/atoms/BenefitCard/BenefitCardStyled.styled.d.ts +1 -0
- package/dist/src/components/atoms/{BenefitRatafiaCard/BenefitRatafiaCard.styled.js → BenefitCard/BenefitCardStyled.styled.js} +10 -4
- package/dist/src/components/atoms/{BenefitRatafiaCard/BenefitRatafiaCard.styled.ts → BenefitCard/BenefitCardStyled.styled.ts} +10 -4
- package/dist/src/components/atoms/BenefitCard/index.d.ts +2 -0
- package/dist/src/components/atoms/BenefitCard/index.js +1 -0
- package/dist/src/components/atoms/BenefitCard/index.ts +2 -0
- package/dist/src/components/atoms/Button/ButtonProps.types.d.ts +2 -1
- package/dist/src/components/atoms/Button/ButtonProps.types.js +1 -0
- package/dist/src/components/atoms/Button/ButtonProps.types.ts +18 -16
- package/dist/src/components/atoms/CardBox/CardBox.d.ts +3 -0
- package/dist/src/components/atoms/CardBox/CardBox.js +7 -0
- package/dist/src/components/atoms/CardBox/CardBox.styled.d.ts +1 -0
- package/dist/src/components/atoms/CardBox/CardBox.styled.js +22 -0
- package/dist/src/components/atoms/CardBox/CardBox.styled.ts +23 -0
- package/dist/src/components/atoms/CardBox/CardBox.tsx +23 -0
- package/dist/src/components/atoms/CardBox/CardBoxProps.types.d.ts +10 -0
- package/dist/src/components/atoms/CardBox/CardBoxProps.types.ts +10 -0
- package/dist/src/components/atoms/CardBox/index.d.ts +2 -0
- package/dist/src/components/atoms/CardBox/index.js +1 -0
- package/dist/src/components/atoms/CardBox/index.ts +2 -0
- package/dist/src/components/atoms/index.d.ts +2 -1
- package/dist/src/components/atoms/index.js +2 -1
- package/dist/src/components/atoms/index.ts +2 -1
- package/dist/src/components/molecules/BenefitRatafiaCardList/BenefitRatafiaCardList.js +2 -2
- package/dist/src/components/molecules/BenefitRatafiaCardList/BenefitRatafiaCardList.tsx +2 -2
- package/dist/src/components/molecules/BenefitRatafiaCardList/BenefitRatafiaCardListProps.types.d.ts +2 -2
- package/dist/src/components/molecules/BenefitRatafiaCardList/BenefitRatafiaCardListProps.types.ts +2 -2
- package/dist/src/components/molecules/SubscriptionCard/CardBody.d.ts +6 -0
- package/dist/src/components/molecules/SubscriptionCard/CardBody.js +6 -0
- package/dist/src/components/molecules/SubscriptionCard/CardBody.tsx +29 -0
- package/dist/src/components/molecules/SubscriptionCard/CardFooter.d.ts +8 -0
- package/dist/src/components/molecules/SubscriptionCard/CardFooter.js +3 -0
- package/dist/src/components/molecules/SubscriptionCard/CardFooter.tsx +23 -0
- package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingCardHeader.d.ts +6 -0
- package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingCardHeader.js +3 -0
- package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingCardHeader.styled.d.ts +1 -0
- package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingCardHeader.styled.js +30 -0
- package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingCardHeader.styled.ts +31 -0
- package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingCardHeader.tsx +14 -0
- package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingSubscriptionCard.d.ts +4 -0
- package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingSubscriptionCard.js +15 -0
- package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingSubscriptionCard.tsx +38 -0
- package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingSubscriptionCardProps.types.d.ts +20 -0
- package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingSubscriptionCardProps.types.ts +22 -0
- package/dist/src/components/{atoms/BenefitRatafiaCard/BenefitRatafiaCard.styled.d.ts → molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingText.styled.d.ts} +1 -1
- package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingText.styled.js +10 -0
- package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingText.styled.ts +11 -0
- package/dist/src/components/molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaCardHeader.d.ts +8 -0
- package/dist/src/components/molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaCardHeader.js +4 -0
- package/dist/src/components/molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaCardHeader.styled.d.ts +1 -0
- package/dist/src/components/molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaCardHeader.styled.js +29 -0
- package/dist/src/components/molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaCardHeader.styled.ts +30 -0
- package/dist/src/components/molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaCardHeader.tsx +20 -0
- package/dist/src/components/molecules/{RatafiaSubscriptionCard → SubscriptionCard/RatafiaSubscriptionCard}/RatafiaSubscriptionCard.d.ts +2 -2
- package/dist/src/components/molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaSubscriptionCard.js +14 -0
- package/dist/src/components/molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaSubscriptionCard.tsx +34 -0
- package/dist/src/components/molecules/{RatafiaSubscriptionCard → SubscriptionCard/RatafiaSubscriptionCard}/RatafiaSubscriptionCardProps.types.d.ts +3 -3
- package/dist/src/components/molecules/{RatafiaSubscriptionCard → SubscriptionCard/RatafiaSubscriptionCard}/RatafiaSubscriptionCardProps.types.ts +3 -3
- package/dist/src/components/molecules/SubscriptionCard/SubscriptionCard.styled.d.ts +1 -0
- package/dist/src/components/molecules/{RatafiaSubscriptionCard/RatafiaSubscriptionCard.styled.js → SubscriptionCard/SubscriptionCard.styled.js} +14 -32
- package/dist/src/components/molecules/{RatafiaSubscriptionCard/RatafiaSubscriptionCard.styled.ts → SubscriptionCard/SubscriptionCard.styled.ts} +14 -32
- package/dist/src/components/molecules/SubscriptionCard/index.d.ts +4 -0
- package/dist/src/components/molecules/SubscriptionCard/index.js +2 -0
- package/dist/src/components/molecules/SubscriptionCard/index.ts +4 -0
- package/dist/src/components/molecules/index.d.ts +1 -1
- package/dist/src/components/molecules/index.js +1 -1
- package/dist/src/components/molecules/index.ts +1 -1
- package/dist/src/components/organisms/GuidelinesContent/GuidelinesContent.js +3 -3
- package/dist/src/components/organisms/GuidelinesContent/GuidelinesContent.styled.js +35 -83
- package/dist/src/components/organisms/GuidelinesContent/GuidelinesContent.styled.ts +35 -83
- package/dist/src/components/organisms/GuidelinesContent/GuidelinesContent.tsx +5 -28
- package/dist/src/components/organisms/GuidelinesContent/GuidelinesContentProps.types.d.ts +1 -7
- package/dist/src/components/organisms/GuidelinesContent/GuidelinesContentProps.types.ts +1 -8
- package/dist/src/components/organisms/HeroContent/HeroContent.d.ts +4 -0
- package/dist/src/components/organisms/HeroContent/HeroContent.js +7 -0
- package/dist/src/components/organisms/HeroContent/HeroContent.styled.d.ts +1 -0
- package/dist/src/components/organisms/{AboutUsContent/AboutUsContent.styled.js → HeroContent/HeroContent.styled.js} +3 -3
- package/dist/src/components/organisms/{AboutUsContent/AboutUsContent.styled.ts → HeroContent/HeroContent.styled.ts} +3 -3
- package/dist/src/components/organisms/HeroContent/HeroContent.tsx +23 -0
- package/dist/src/components/organisms/{AboutUsContent/AboutUsContentProps.types.d.ts → HeroContent/HeroContentPropsProps.types.d.ts} +1 -1
- package/dist/src/components/organisms/HeroContent/HeroContentPropsProps.types.js +1 -0
- package/dist/src/components/organisms/{AboutUsContent/AboutUsContentProps.types.ts → HeroContent/HeroContentPropsProps.types.ts} +1 -1
- package/dist/src/components/organisms/HeroContent/index.d.ts +2 -0
- package/dist/src/components/organisms/HeroContent/index.js +1 -0
- package/dist/src/components/organisms/HeroContent/index.ts +2 -0
- package/dist/src/components/organisms/index.d.ts +1 -1
- package/dist/src/components/organisms/index.js +1 -1
- package/dist/src/components/organisms/index.ts +1 -1
- package/dist/src/components/pages/AboutUsPage/AboutUsPage.js +2 -2
- package/dist/src/components/pages/AboutUsPage/AboutUsPage.tsx +2 -2
- package/dist/src/components/pages/AboutUsPage/AboutUsPageProps.d.ts +2 -2
- package/dist/src/components/pages/AboutUsPage/AboutUsPageProps.ts +2 -2
- package/dist/src/components/pages/PricingPage/PricingPage.d.ts +3 -0
- package/dist/src/components/pages/PricingPage/PricingPage.js +10 -0
- package/dist/src/components/pages/PricingPage/PricingPage.styled.d.ts +1 -0
- package/dist/src/components/pages/PricingPage/PricingPage.styled.js +126 -0
- package/dist/src/components/pages/PricingPage/PricingPage.styled.ts +127 -0
- package/dist/src/components/pages/PricingPage/PricingPage.tsx +53 -0
- package/dist/src/components/pages/PricingPage/PricingPageProps.d.ts +28 -0
- package/dist/src/components/pages/PricingPage/PricingPageProps.js +1 -0
- package/dist/src/components/pages/PricingPage/PricingPageProps.ts +33 -0
- package/dist/src/components/pages/PricingPage/index.d.ts +2 -0
- package/dist/src/components/pages/PricingPage/index.js +2 -0
- package/dist/src/components/pages/PricingPage/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/BenefitsRatafiaSection/BenefitsRatafiaSectionProps.types.d.ts +2 -2
- package/dist/src/components/sections/BenefitsRatafiaSection/BenefitsRatafiaSectionProps.types.ts +2 -2
- package/dist/src/components/sections/CardBoxSection/CardBoxSection.d.ts +4 -0
- package/dist/src/components/sections/CardBoxSection/CardBoxSection.js +9 -0
- package/dist/src/components/sections/CardBoxSection/CardBoxSection.styled.d.ts +2 -0
- package/dist/src/components/sections/CardBoxSection/CardBoxSection.styled.js +33 -0
- package/dist/src/components/sections/CardBoxSection/CardBoxSection.styled.ts +35 -0
- package/dist/src/components/sections/CardBoxSection/CardBoxSection.tsx +23 -0
- package/dist/src/components/sections/CardBoxSection/CardBoxSectionProps.d.ts +4 -0
- package/dist/src/components/sections/CardBoxSection/CardBoxSectionProps.js +1 -0
- package/dist/src/components/sections/CardBoxSection/CardBoxSectionProps.ts +5 -0
- package/dist/src/components/sections/CardBoxSection/index.d.ts +2 -0
- package/dist/src/components/sections/CardBoxSection/index.js +1 -0
- package/dist/src/components/sections/CardBoxSection/index.ts +2 -0
- package/dist/src/components/sections/FaqSection/FaqSection.js +1 -1
- package/dist/src/components/sections/FaqSection/FaqSection.tsx +1 -3
- package/dist/src/components/sections/GuidelinesSection/GuidelinesSection.js +1 -1
- package/dist/src/components/sections/GuidelinesSection/GuidelinesSection.tsx +0 -5
- package/dist/src/components/sections/HeroSection/HeroSection.d.ts +4 -0
- package/dist/src/components/sections/HeroSection/HeroSection.js +7 -0
- package/dist/src/components/sections/HeroSection/HeroSection.tsx +24 -0
- package/dist/src/components/sections/HeroSection/HeroSectionProps.types.d.ts +6 -0
- package/dist/src/components/sections/HeroSection/HeroSectionProps.types.js +1 -0
- package/dist/src/components/sections/HeroSection/HeroSectionProps.types.ts +7 -0
- package/dist/src/components/sections/HeroSection/HeroSectionStyled.styled.d.ts +1 -0
- package/dist/src/components/sections/{AboutUsSection/AboutUsSection.styled.js → HeroSection/HeroSectionStyled.styled.js} +2 -2
- package/dist/src/components/sections/{AboutUsSection/AboutUsSection.styled.ts → HeroSection/HeroSectionStyled.styled.ts} +2 -2
- package/dist/src/components/sections/HeroSection/index.d.ts +2 -0
- package/dist/src/components/sections/HeroSection/index.js +1 -0
- package/dist/src/components/sections/HeroSection/index.ts +2 -0
- package/dist/src/components/sections/index.d.ts +2 -1
- package/dist/src/components/sections/index.js +2 -1
- package/dist/src/components/sections/index.ts +2 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +8 -5
- package/dist/src/components/atoms/BenefitRatafiaCard/BenefitRatafiaCard.d.ts +0 -4
- package/dist/src/components/atoms/BenefitRatafiaCard/BenefitRatafiaCard.js +0 -6
- package/dist/src/components/atoms/BenefitRatafiaCard/BenefitRatafiaCard.tsx +0 -18
- package/dist/src/components/atoms/BenefitRatafiaCard/BenefitRatafiaCardProps.types.ts +0 -6
- package/dist/src/components/atoms/BenefitRatafiaCard/index.d.ts +0 -2
- package/dist/src/components/atoms/BenefitRatafiaCard/index.js +0 -1
- package/dist/src/components/atoms/BenefitRatafiaCard/index.ts +0 -2
- package/dist/src/components/molecules/RatafiaSubscriptionCard/RatafiaSubscriptionCard.js +0 -12
- package/dist/src/components/molecules/RatafiaSubscriptionCard/RatafiaSubscriptionCard.styled.d.ts +0 -1
- package/dist/src/components/molecules/RatafiaSubscriptionCard/RatafiaSubscriptionCard.tsx +0 -61
- package/dist/src/components/molecules/RatafiaSubscriptionCard/index.d.ts +0 -2
- package/dist/src/components/molecules/RatafiaSubscriptionCard/index.js +0 -1
- package/dist/src/components/molecules/RatafiaSubscriptionCard/index.ts +0 -2
- package/dist/src/components/organisms/AboutUsContent/AboutUsContent.d.ts +0 -4
- package/dist/src/components/organisms/AboutUsContent/AboutUsContent.js +0 -7
- package/dist/src/components/organisms/AboutUsContent/AboutUsContent.styled.d.ts +0 -1
- package/dist/src/components/organisms/AboutUsContent/AboutUsContent.tsx +0 -23
- package/dist/src/components/organisms/AboutUsContent/index.d.ts +0 -2
- package/dist/src/components/organisms/AboutUsContent/index.js +0 -1
- package/dist/src/components/organisms/AboutUsContent/index.ts +0 -2
- package/dist/src/components/sections/AboutUsSection/AboutUsSection.d.ts +0 -4
- package/dist/src/components/sections/AboutUsSection/AboutUsSection.js +0 -7
- package/dist/src/components/sections/AboutUsSection/AboutUsSection.styled.d.ts +0 -1
- package/dist/src/components/sections/AboutUsSection/AboutUsSection.tsx +0 -24
- package/dist/src/components/sections/AboutUsSection/AboutUsSectionProps.types.d.ts +0 -6
- package/dist/src/components/sections/AboutUsSection/AboutUsSectionProps.types.ts +0 -7
- package/dist/src/components/sections/AboutUsSection/index.d.ts +0 -2
- package/dist/src/components/sections/AboutUsSection/index.js +0 -1
- package/dist/src/components/sections/AboutUsSection/index.ts +0 -2
- /package/dist/src/components/atoms/{BenefitRatafiaCard/BenefitRatafiaCardProps.types.js → BenefitCard/BenefitCardProps.types.js} +0 -0
- /package/dist/src/components/{molecules/RatafiaSubscriptionCard/RatafiaSubscriptionCardProps.types.js → atoms/CardBox/CardBoxProps.types.js} +0 -0
- /package/dist/src/components/{organisms/AboutUsContent/AboutUsContentProps.types.js → molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingSubscriptionCardProps.types.js} +0 -0
- /package/dist/src/components/{sections/AboutUsSection/AboutUsSectionProps.types.js → molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaSubscriptionCardProps.types.js} +0 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { BenefitCardStyled } from './BenefitCardStyled.styled';
|
|
3
|
+
export const BenefitCard = ({ description, hasShadow = true, hasBigFontSize = true, title, image }) => {
|
|
4
|
+
return (_jsxs(BenefitCardStyled, { className: `benefit-card ${hasShadow && 'has-shadow'}`, children: [image !== null && _jsx("div", { className: `benefit-card__icon ${hasShadow && 'has-shadow'}`, children: image }), _jsxs("div", { className: 'benefit-card__content', children: [_jsx("div", { className: `sans-serif ${hasBigFontSize && '--big'} --bold-weight benefit-card__content__title`, children: title }), _jsx("p", { className: 'sans-serif --medium benefit-ratafia-card__content__description', children: description })] })] }));
|
|
5
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
|
|
3
|
+
import { type BenefitCardProps } from './BenefitCardProps.types'
|
|
4
|
+
import { BenefitCardStyled } from './BenefitCardStyled.styled'
|
|
5
|
+
|
|
6
|
+
export const BenefitCard: React.FC<BenefitCardProps> = ({
|
|
7
|
+
description,
|
|
8
|
+
hasShadow = true,
|
|
9
|
+
hasBigFontSize = true,
|
|
10
|
+
title,
|
|
11
|
+
image
|
|
12
|
+
}) => {
|
|
13
|
+
return (
|
|
14
|
+
<BenefitCardStyled className={`benefit-card ${hasShadow && 'has-shadow'}`}>
|
|
15
|
+
{image !== null && <div className={`benefit-card__icon ${hasShadow && 'has-shadow'}`}>{image}</div>}
|
|
16
|
+
<div className='benefit-card__content'>
|
|
17
|
+
<div className={`sans-serif ${hasBigFontSize && '--big'} --bold-weight benefit-card__content__title`}>
|
|
18
|
+
{title}
|
|
19
|
+
</div>
|
|
20
|
+
<p className='sans-serif --medium benefit-ratafia-card__content__description'>{description}</p>
|
|
21
|
+
</div>
|
|
22
|
+
</BenefitCardStyled>
|
|
23
|
+
)
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const BenefitCardStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { device } from '../../../globalStyles/breakpoints';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
export const
|
|
3
|
+
export const BenefitCardStyled = styled.div `
|
|
4
4
|
display: flex;
|
|
5
5
|
flex-direction: column;
|
|
6
6
|
align-items: flex-start;
|
|
@@ -12,7 +12,10 @@ export const BenefitRatafiaCardStyled = styled.div `
|
|
|
12
12
|
|
|
13
13
|
border-radius: var(--s-border-radius);
|
|
14
14
|
background: rgba(255, 255, 255, 0.8);
|
|
15
|
-
|
|
15
|
+
|
|
16
|
+
&.has-shadow {
|
|
17
|
+
box-shadow: 0 2px 6px 0 rgba(2, 55, 74, 0.25);
|
|
18
|
+
}
|
|
16
19
|
|
|
17
20
|
@media ${device['landscape-tablets']} {
|
|
18
21
|
flex-direction: row;
|
|
@@ -21,7 +24,7 @@ export const BenefitRatafiaCardStyled = styled.div `
|
|
|
21
24
|
flex-direction: column;
|
|
22
25
|
}
|
|
23
26
|
|
|
24
|
-
.benefit-
|
|
27
|
+
.benefit-card {
|
|
25
28
|
&__icon {
|
|
26
29
|
display: flex;
|
|
27
30
|
align-items: flex-start;
|
|
@@ -30,7 +33,10 @@ export const BenefitRatafiaCardStyled = styled.div `
|
|
|
30
33
|
|
|
31
34
|
border-radius: var(--s-border-radius);
|
|
32
35
|
background: rgba(255, 255, 255, 0.8);
|
|
33
|
-
|
|
36
|
+
|
|
37
|
+
&.has-shadow {
|
|
38
|
+
box-shadow: 0 2px 6px 0 rgba(2, 55, 74, 0.25);
|
|
39
|
+
}
|
|
34
40
|
|
|
35
41
|
img {
|
|
36
42
|
min-width: 32px;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { device } from '../../../globalStyles/breakpoints'
|
|
2
2
|
import styled from 'styled-components'
|
|
3
3
|
|
|
4
|
-
export const
|
|
4
|
+
export const BenefitCardStyled = styled.div`
|
|
5
5
|
display: flex;
|
|
6
6
|
flex-direction: column;
|
|
7
7
|
align-items: flex-start;
|
|
@@ -13,7 +13,10 @@ export const BenefitRatafiaCardStyled = styled.div`
|
|
|
13
13
|
|
|
14
14
|
border-radius: var(--s-border-radius);
|
|
15
15
|
background: rgba(255, 255, 255, 0.8);
|
|
16
|
-
|
|
16
|
+
|
|
17
|
+
&.has-shadow {
|
|
18
|
+
box-shadow: 0 2px 6px 0 rgba(2, 55, 74, 0.25);
|
|
19
|
+
}
|
|
17
20
|
|
|
18
21
|
@media ${device['landscape-tablets']} {
|
|
19
22
|
flex-direction: row;
|
|
@@ -22,7 +25,7 @@ export const BenefitRatafiaCardStyled = styled.div`
|
|
|
22
25
|
flex-direction: column;
|
|
23
26
|
}
|
|
24
27
|
|
|
25
|
-
.benefit-
|
|
28
|
+
.benefit-card {
|
|
26
29
|
&__icon {
|
|
27
30
|
display: flex;
|
|
28
31
|
align-items: flex-start;
|
|
@@ -31,7 +34,10 @@ export const BenefitRatafiaCardStyled = styled.div`
|
|
|
31
34
|
|
|
32
35
|
border-radius: var(--s-border-radius);
|
|
33
36
|
background: rgba(255, 255, 255, 0.8);
|
|
34
|
-
|
|
37
|
+
|
|
38
|
+
&.has-shadow {
|
|
39
|
+
box-shadow: 0 2px 6px 0 rgba(2, 55, 74, 0.25);
|
|
40
|
+
}
|
|
35
41
|
|
|
36
42
|
img {
|
|
37
43
|
min-width: 32px;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BenefitCard } from './BenefitCard';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export type Colors = 'primary' | 'primary2' | 'primary3' | 'primary4' | 'secondary' | 'secondary2' | 'secondary3' | 'secondary4' | 'secondaryIcon' | 'secondaryIconBold' | 'secondaryIconDark' | 'tertiary' | 'tertiary2' | 'styleless' | 'transparent';
|
|
1
2
|
export interface ButtonProps {
|
|
2
3
|
label: string;
|
|
3
4
|
dataQa: string;
|
|
@@ -8,7 +9,7 @@ export interface ButtonProps {
|
|
|
8
9
|
noLinkNoFunc?: boolean;
|
|
9
10
|
onClick?: (functionParameters?: any) => void;
|
|
10
11
|
functionParameters?: any;
|
|
11
|
-
color?:
|
|
12
|
+
color?: Colors;
|
|
12
13
|
error?: boolean;
|
|
13
14
|
disabled?: boolean;
|
|
14
15
|
fluid?: boolean;
|
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
+
|
|
3
|
+
export type Colors =
|
|
4
|
+
| 'primary'
|
|
5
|
+
| 'primary2'
|
|
6
|
+
| 'primary3'
|
|
7
|
+
| 'primary4'
|
|
8
|
+
| 'secondary'
|
|
9
|
+
| 'secondary2'
|
|
10
|
+
| 'secondary3'
|
|
11
|
+
| 'secondary4'
|
|
12
|
+
| 'secondaryIcon'
|
|
13
|
+
| 'secondaryIconBold'
|
|
14
|
+
| 'secondaryIconDark'
|
|
15
|
+
| 'tertiary'
|
|
16
|
+
| 'tertiary2'
|
|
17
|
+
| 'styleless'
|
|
18
|
+
| 'transparent'
|
|
2
19
|
export interface ButtonProps {
|
|
3
20
|
label: string
|
|
4
21
|
dataQa: string
|
|
@@ -9,22 +26,7 @@ export interface ButtonProps {
|
|
|
9
26
|
noLinkNoFunc?: boolean
|
|
10
27
|
onClick?: (functionParameters?: any) => void
|
|
11
28
|
functionParameters?: any
|
|
12
|
-
color?:
|
|
13
|
-
| 'primary'
|
|
14
|
-
| 'primary2'
|
|
15
|
-
| 'primary3'
|
|
16
|
-
| 'primary4'
|
|
17
|
-
| 'secondary'
|
|
18
|
-
| 'secondary2'
|
|
19
|
-
| 'secondary3'
|
|
20
|
-
| 'secondary4'
|
|
21
|
-
| 'secondaryIcon'
|
|
22
|
-
| 'secondaryIconBold'
|
|
23
|
-
| 'secondaryIconDark'
|
|
24
|
-
| 'tertiary'
|
|
25
|
-
| 'tertiary2'
|
|
26
|
-
| 'styleless'
|
|
27
|
-
| 'transparent'
|
|
29
|
+
color?: Colors
|
|
28
30
|
error?: boolean
|
|
29
31
|
disabled?: boolean
|
|
30
32
|
fluid?: boolean
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { CardBoxStyled } from './CardBox.styled';
|
|
3
|
+
import { IconSvgURLWithThemeColor } from '../IconSvgURLWithThemeColor';
|
|
4
|
+
import { RichTextStrapi } from '../RichTextStrapi';
|
|
5
|
+
export const CardBox = ({ icon, text, borderRadius = '16px', gap = '1rem', padding = '16px 24px', height = '24', width = '24' }) => {
|
|
6
|
+
return (_jsxs(CardBoxStyled, { style: { gap, padding, borderRadius }, children: [_jsx(IconSvgURLWithThemeColor, { url: icon, height: height, width: width }), _jsx(RichTextStrapi, { html: text })] }));
|
|
7
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CardBoxStyled: 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 CardBoxStyled = styled.div `
|
|
3
|
+
display: flex;
|
|
4
|
+
font-size: 16px;
|
|
5
|
+
font-style: normal;
|
|
6
|
+
font-weight: 400;
|
|
7
|
+
line-height: 22px;
|
|
8
|
+
letter-spacing: -0.3px;
|
|
9
|
+
background-color: var(--others-white);
|
|
10
|
+
align-items: center;
|
|
11
|
+
flex: 1;
|
|
12
|
+
max-width: 592px;
|
|
13
|
+
a {
|
|
14
|
+
color: var(--primary-main);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
i {
|
|
18
|
+
display: inline-block;
|
|
19
|
+
object-fit: contain;
|
|
20
|
+
flex-shrink: 0;
|
|
21
|
+
}
|
|
22
|
+
`;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import styled from 'styled-components'
|
|
2
|
+
|
|
3
|
+
export const CardBoxStyled = styled.div`
|
|
4
|
+
display: flex;
|
|
5
|
+
font-size: 16px;
|
|
6
|
+
font-style: normal;
|
|
7
|
+
font-weight: 400;
|
|
8
|
+
line-height: 22px;
|
|
9
|
+
letter-spacing: -0.3px;
|
|
10
|
+
background-color: var(--others-white);
|
|
11
|
+
align-items: center;
|
|
12
|
+
flex: 1;
|
|
13
|
+
max-width: 592px;
|
|
14
|
+
a {
|
|
15
|
+
color: var(--primary-main);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
i {
|
|
19
|
+
display: inline-block;
|
|
20
|
+
object-fit: contain;
|
|
21
|
+
flex-shrink: 0;
|
|
22
|
+
}
|
|
23
|
+
`
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
|
|
3
|
+
import { type CardBoxProps } from './CardBoxProps.types'
|
|
4
|
+
import { CardBoxStyled } from './CardBox.styled'
|
|
5
|
+
import { IconSvgURLWithThemeColor } from '../IconSvgURLWithThemeColor'
|
|
6
|
+
import { RichTextStrapi } from '../RichTextStrapi'
|
|
7
|
+
|
|
8
|
+
export const CardBox: React.FC<CardBoxProps> = ({
|
|
9
|
+
icon,
|
|
10
|
+
text,
|
|
11
|
+
borderRadius = '16px',
|
|
12
|
+
gap = '1rem',
|
|
13
|
+
padding = '16px 24px',
|
|
14
|
+
height = '24',
|
|
15
|
+
width = '24'
|
|
16
|
+
}) => {
|
|
17
|
+
return (
|
|
18
|
+
<CardBoxStyled style={{ gap, padding, borderRadius }}>
|
|
19
|
+
<IconSvgURLWithThemeColor url={icon} height={height} width={width} />
|
|
20
|
+
<RichTextStrapi html={text} />
|
|
21
|
+
</CardBoxStyled>
|
|
22
|
+
)
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CardBox } from './CardBox';
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
export * from './ActionButtonHeaderRatafiaCard';
|
|
2
2
|
export * from './AddButton';
|
|
3
3
|
export * from './BaseBox';
|
|
4
|
-
export * from './
|
|
4
|
+
export * from './BenefitCard';
|
|
5
5
|
export * from './BillCard';
|
|
6
6
|
export * from './BottomOverlayMenu';
|
|
7
7
|
export * from './BreadcrumItem';
|
|
8
8
|
export * from './Button';
|
|
9
9
|
export * from './ButtonIcon';
|
|
10
|
+
export * from './CardBox';
|
|
10
11
|
export * from './CardPane';
|
|
11
12
|
export * from './Checkbox';
|
|
12
13
|
export * from './ContactCard';
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
export * from './ActionButtonHeaderRatafiaCard';
|
|
2
2
|
export * from './AddButton';
|
|
3
3
|
export * from './BaseBox';
|
|
4
|
-
export * from './
|
|
4
|
+
export * from './BenefitCard';
|
|
5
5
|
export * from './BillCard';
|
|
6
6
|
export * from './BottomOverlayMenu';
|
|
7
7
|
export * from './BreadcrumItem';
|
|
8
8
|
export * from './Button';
|
|
9
9
|
export * from './ButtonIcon';
|
|
10
|
+
export * from './CardBox';
|
|
10
11
|
export * from './CardPane';
|
|
11
12
|
export * from './Checkbox';
|
|
12
13
|
export * from './ContactCard';
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
export * from './ActionButtonHeaderRatafiaCard'
|
|
2
2
|
export * from './AddButton'
|
|
3
3
|
export * from './BaseBox'
|
|
4
|
-
export * from './
|
|
4
|
+
export * from './BenefitCard'
|
|
5
5
|
export * from './BillCard'
|
|
6
6
|
export * from './BottomOverlayMenu'
|
|
7
7
|
export * from './BreadcrumItem'
|
|
8
8
|
export * from './Button'
|
|
9
9
|
export * from './ButtonIcon'
|
|
10
|
+
export * from './CardBox'
|
|
10
11
|
export * from './CardPane'
|
|
11
12
|
export * from './Checkbox'
|
|
12
13
|
export * from './ContactCard'
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { BenefitCard } from '../../atoms';
|
|
3
3
|
import { BenefitRatafiaCardListStyled } from './BenefitRatafiaCardList.styled';
|
|
4
4
|
const BenefitRatafiaCardList = ({ benefits = [] }) => {
|
|
5
5
|
if (benefits.length === 0)
|
|
6
6
|
return null;
|
|
7
|
-
return (_jsx(BenefitRatafiaCardListStyled, { className: 'benefit-ratafia-card-list', children: benefits.map((benefit) => (_jsx(
|
|
7
|
+
return (_jsx(BenefitRatafiaCardListStyled, { className: 'benefit-ratafia-card-list', children: benefits.map((benefit) => (_jsx(BenefitCard, { ...benefit }, benefit.id))) }));
|
|
8
8
|
};
|
|
9
9
|
export default BenefitRatafiaCardList;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { type FC } from 'react'
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { BenefitCard } from '../../atoms'
|
|
4
4
|
import { type BenefitRatafiaCardListProps } from './BenefitRatafiaCardListProps.types'
|
|
5
5
|
import { BenefitRatafiaCardListStyled } from './BenefitRatafiaCardList.styled'
|
|
6
6
|
|
|
@@ -10,7 +10,7 @@ const BenefitRatafiaCardList: FC<BenefitRatafiaCardListProps> = ({ benefits = []
|
|
|
10
10
|
return (
|
|
11
11
|
<BenefitRatafiaCardListStyled className='benefit-ratafia-card-list'>
|
|
12
12
|
{benefits.map((benefit) => (
|
|
13
|
-
<
|
|
13
|
+
<BenefitCard key={benefit.id} {...benefit} />
|
|
14
14
|
))}
|
|
15
15
|
</BenefitRatafiaCardListStyled>
|
|
16
16
|
)
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { IconSvgURLWithThemeColor, RichTextStrapi } from '../../atoms';
|
|
3
|
+
const FeaturesList = ({ features, className }) => (_jsx(_Fragment, { children: features.map((feature) => (_jsxs("div", { className: `subscription-card__feature ${feature.isHighlighted ? 'ratafia-feature' : 'main-feature'} ${className}`, children: [feature.image?.url && _jsx(IconSvgURLWithThemeColor, { url: feature.image.url, height: '16', width: '16' }), _jsx(RichTextStrapi, { html: feature.title })] }, feature.title))) }));
|
|
4
|
+
export const CardBody = ({ hasPaddingMainFeature = false, features }) => {
|
|
5
|
+
return (_jsx("div", { className: 'subscription-card__body', children: features && _jsx(FeaturesList, { features: features, className: `${hasPaddingMainFeature && 'has-padding'}` }) }));
|
|
6
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
|
|
3
|
+
import { IconSvgURLWithThemeColor, RichTextStrapi } from '../../atoms'
|
|
4
|
+
import { type FeatureProps } from './RatafiaSubscriptionCard/RatafiaSubscriptionCardProps.types'
|
|
5
|
+
|
|
6
|
+
const FeaturesList: React.FC<{ features: FeatureProps[]; className: string }> = ({ features, className }) => (
|
|
7
|
+
<>
|
|
8
|
+
{features.map((feature) => (
|
|
9
|
+
<div
|
|
10
|
+
key={feature.title}
|
|
11
|
+
className={`subscription-card__feature ${feature.isHighlighted ? 'ratafia-feature' : 'main-feature'} ${className}`}
|
|
12
|
+
>
|
|
13
|
+
{feature.image?.url && <IconSvgURLWithThemeColor url={feature.image.url} height='16' width='16' />}
|
|
14
|
+
<RichTextStrapi html={feature.title} />
|
|
15
|
+
</div>
|
|
16
|
+
))}
|
|
17
|
+
</>
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
export const CardBody: React.FC<{
|
|
21
|
+
hasPaddingMainFeature?: boolean
|
|
22
|
+
features?: FeatureProps[]
|
|
23
|
+
}> = ({ hasPaddingMainFeature = false, features }) => {
|
|
24
|
+
return (
|
|
25
|
+
<div className='subscription-card__body'>
|
|
26
|
+
{features && <FeaturesList features={features} className={`${hasPaddingMainFeature && 'has-padding'}`} />}
|
|
27
|
+
</div>
|
|
28
|
+
)
|
|
29
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Button } from '../../atoms';
|
|
3
|
+
export const CardFooter = ({ buttonStyle, buttonText, dataQa, onClick }) => buttonText ? (_jsx("div", { className: 'subscription-card__footer', children: _jsx(Button, { dataQa: dataQa ?? 'subscription-card-button', givenClass: 'subscription-card__button', color: buttonStyle, label: buttonText, noLink: true, onClick: onClick }) })) : null;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
|
|
3
|
+
import { Button } from '../../atoms'
|
|
4
|
+
import { type Colors } from 'src/components/atoms/Button/ButtonProps.types'
|
|
5
|
+
|
|
6
|
+
export const CardFooter: React.FC<{
|
|
7
|
+
buttonText?: string
|
|
8
|
+
dataQa?: string
|
|
9
|
+
onClick?: () => void
|
|
10
|
+
buttonStyle: Colors
|
|
11
|
+
}> = ({ buttonStyle, buttonText, dataQa, onClick }) =>
|
|
12
|
+
buttonText ? (
|
|
13
|
+
<div className='subscription-card__footer'>
|
|
14
|
+
<Button
|
|
15
|
+
dataQa={dataQa ?? 'subscription-card-button'}
|
|
16
|
+
givenClass='subscription-card__button'
|
|
17
|
+
color={buttonStyle}
|
|
18
|
+
label={buttonText}
|
|
19
|
+
noLink
|
|
20
|
+
onClick={onClick}
|
|
21
|
+
/>
|
|
22
|
+
</div>
|
|
23
|
+
) : null
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { PlanBoxPricingCardHeaderStyled } from './PlanBoxPricingCardHeader.styled';
|
|
3
|
+
export const PlanBoxPricingCardHeader = ({ className, description, title }) => (_jsxs(PlanBoxPricingCardHeaderStyled, { children: [_jsx("h3", { className: `title-plan-box ${className}`, children: title }), _jsx("div", { className: 'description-plan-box', children: description })] }));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PlanBoxPricingCardHeaderStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
export const PlanBoxPricingCardHeaderStyled = styled.div `
|
|
3
|
+
.title-plan-box {
|
|
4
|
+
display: inline-block;
|
|
5
|
+
margin-bottom: 1.5rem;
|
|
6
|
+
padding: 8px 16px;
|
|
7
|
+
border-radius: 8px;
|
|
8
|
+
background: var(--neutral-neutral-4);
|
|
9
|
+
color: var(--Neutral-800, var(--neutral-neutral-1));
|
|
10
|
+
font-size: 18px;
|
|
11
|
+
font-style: normal;
|
|
12
|
+
font-weight: 700;
|
|
13
|
+
line-height: 24px;
|
|
14
|
+
letter-spacing: -0.3px;
|
|
15
|
+
|
|
16
|
+
&.secondary {
|
|
17
|
+
background: var(--secondary-main-light-2, #f5dab0);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
.description-plan-box {
|
|
21
|
+
display: block;
|
|
22
|
+
margin-bottom: 1rem;
|
|
23
|
+
color: var(--Neutral-800, var(--neutral-neutral-1));
|
|
24
|
+
font-size: var(--properties-inter-medium-font-size, 16px);
|
|
25
|
+
font-style: normal;
|
|
26
|
+
font-weight: 700;
|
|
27
|
+
line-height: var(--properties-inter-medium-line-height, 22px); /* 137.5% */
|
|
28
|
+
letter-spacing: var(--properties-inter-medium-letter-spacing, -0.3px);
|
|
29
|
+
}
|
|
30
|
+
`;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import styled from 'styled-components'
|
|
2
|
+
|
|
3
|
+
export const PlanBoxPricingCardHeaderStyled = styled.div`
|
|
4
|
+
.title-plan-box {
|
|
5
|
+
display: inline-block;
|
|
6
|
+
margin-bottom: 1.5rem;
|
|
7
|
+
padding: 8px 16px;
|
|
8
|
+
border-radius: 8px;
|
|
9
|
+
background: var(--neutral-neutral-4);
|
|
10
|
+
color: var(--Neutral-800, var(--neutral-neutral-1));
|
|
11
|
+
font-size: 18px;
|
|
12
|
+
font-style: normal;
|
|
13
|
+
font-weight: 700;
|
|
14
|
+
line-height: 24px;
|
|
15
|
+
letter-spacing: -0.3px;
|
|
16
|
+
|
|
17
|
+
&.secondary {
|
|
18
|
+
background: var(--secondary-main-light-2, #f5dab0);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
.description-plan-box {
|
|
22
|
+
display: block;
|
|
23
|
+
margin-bottom: 1rem;
|
|
24
|
+
color: var(--Neutral-800, var(--neutral-neutral-1));
|
|
25
|
+
font-size: var(--properties-inter-medium-font-size, 16px);
|
|
26
|
+
font-style: normal;
|
|
27
|
+
font-weight: 700;
|
|
28
|
+
line-height: var(--properties-inter-medium-line-height, 22px); /* 137.5% */
|
|
29
|
+
letter-spacing: var(--properties-inter-medium-letter-spacing, -0.3px);
|
|
30
|
+
}
|
|
31
|
+
`
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
|
|
3
|
+
import { PlanBoxPricingCardHeaderStyled } from './PlanBoxPricingCardHeader.styled'
|
|
4
|
+
|
|
5
|
+
export const PlanBoxPricingCardHeader: React.FC<{ title: string; description?: string; className?: string }> = ({
|
|
6
|
+
className,
|
|
7
|
+
description,
|
|
8
|
+
title
|
|
9
|
+
}) => (
|
|
10
|
+
<PlanBoxPricingCardHeaderStyled>
|
|
11
|
+
<h3 className={`title-plan-box ${className}`}>{title}</h3>
|
|
12
|
+
<div className='description-plan-box'>{description}</div>
|
|
13
|
+
</PlanBoxPricingCardHeaderStyled>
|
|
14
|
+
)
|