@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,15 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { CardBody } from '../CardBody';
|
|
3
|
+
import { CardFooter } from '../CardFooter';
|
|
4
|
+
import { PlanBoxPricingCardHeader } from './PlanBoxPricingCardHeader';
|
|
5
|
+
import { PlanBoxPricingTextStyled } from './PlanBoxPricingText.styled';
|
|
6
|
+
import { SubscriptionCardStyled } from '../SubscriptionCard.styled';
|
|
7
|
+
import { stringSlugify } from '../../../../utils/stringSlugify';
|
|
8
|
+
const PlanBoxPricingSubscriptionCard = ({ buttonText, cardStyle = 'primary', description, dataQa, handleClick, features, title, priceText }) => {
|
|
9
|
+
if (!title)
|
|
10
|
+
return null;
|
|
11
|
+
const finalCardClass = cardStyle ? stringSlugify(cardStyle) : 'primary';
|
|
12
|
+
const finalButtonStyle = cardStyle === 'Secondary' ? 'primary3' : 'primary';
|
|
13
|
+
return (_jsxs("div", { children: [_jsxs(SubscriptionCardStyled, { className: `subscription-card ${finalCardClass}`, children: [_jsx(PlanBoxPricingCardHeader, { title: title, description: description, className: finalCardClass }), _jsx("hr", {}), _jsx(CardBody, { features: features, hasPaddingMainFeature: true }), _jsx(CardFooter, { buttonText: buttonText, dataQa: dataQa, onClick: handleClick, buttonStyle: finalButtonStyle })] }), priceText && _jsx(PlanBoxPricingTextStyled, { children: priceText })] }));
|
|
14
|
+
};
|
|
15
|
+
export default PlanBoxPricingSubscriptionCard;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
|
|
3
|
+
import { CardBody } from '../CardBody'
|
|
4
|
+
import { CardFooter } from '../CardFooter'
|
|
5
|
+
import { PlanBoxPricingCardHeader } from './PlanBoxPricingCardHeader'
|
|
6
|
+
import { PlanBoxPricingSubscriptionCardProps } from './PlanBoxPricingSubscriptionCardProps.types'
|
|
7
|
+
import { PlanBoxPricingTextStyled } from './PlanBoxPricingText.styled'
|
|
8
|
+
import { SubscriptionCardStyled } from '../SubscriptionCard.styled'
|
|
9
|
+
import { stringSlugify } from '../../../../utils/stringSlugify'
|
|
10
|
+
|
|
11
|
+
const PlanBoxPricingSubscriptionCard: React.FC<PlanBoxPricingSubscriptionCardProps> = ({
|
|
12
|
+
buttonText,
|
|
13
|
+
cardStyle = 'primary',
|
|
14
|
+
description,
|
|
15
|
+
dataQa,
|
|
16
|
+
handleClick,
|
|
17
|
+
features,
|
|
18
|
+
title,
|
|
19
|
+
priceText
|
|
20
|
+
}) => {
|
|
21
|
+
if (!title) return null
|
|
22
|
+
|
|
23
|
+
const finalCardClass = cardStyle ? stringSlugify(cardStyle) : 'primary'
|
|
24
|
+
const finalButtonStyle = cardStyle === 'Secondary' ? 'primary3' : 'primary'
|
|
25
|
+
return (
|
|
26
|
+
<div>
|
|
27
|
+
<SubscriptionCardStyled className={`subscription-card ${finalCardClass}`}>
|
|
28
|
+
<PlanBoxPricingCardHeader title={title} description={description} className={finalCardClass} />
|
|
29
|
+
<hr />
|
|
30
|
+
<CardBody features={features} hasPaddingMainFeature />
|
|
31
|
+
<CardFooter buttonText={buttonText} dataQa={dataQa} onClick={handleClick} buttonStyle={finalButtonStyle} />
|
|
32
|
+
</SubscriptionCardStyled>
|
|
33
|
+
{priceText && <PlanBoxPricingTextStyled>{priceText}</PlanBoxPricingTextStyled>}
|
|
34
|
+
</div>
|
|
35
|
+
)
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export default PlanBoxPricingSubscriptionCard
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type FeatureProps } from '../RatafiaSubscriptionCard/RatafiaSubscriptionCardProps.types';
|
|
2
|
+
export interface PlanBoxPricingSubscriptionCardProps {
|
|
3
|
+
subscriptionTypeName?: string;
|
|
4
|
+
id: string;
|
|
5
|
+
description: string;
|
|
6
|
+
cardStyle?: CardStyleType;
|
|
7
|
+
iconTitle?: IconTitleProps;
|
|
8
|
+
title?: string;
|
|
9
|
+
priceText?: string;
|
|
10
|
+
features?: FeatureProps[];
|
|
11
|
+
buttonText?: string;
|
|
12
|
+
dataQa?: string;
|
|
13
|
+
handleClick?: () => void;
|
|
14
|
+
}
|
|
15
|
+
interface IconTitleProps {
|
|
16
|
+
name?: string;
|
|
17
|
+
url: string;
|
|
18
|
+
}
|
|
19
|
+
export type CardStyleType = 'Primary' | 'Secondary';
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type FeatureProps } from '../RatafiaSubscriptionCard/RatafiaSubscriptionCardProps.types'
|
|
2
|
+
|
|
3
|
+
export interface PlanBoxPricingSubscriptionCardProps {
|
|
4
|
+
subscriptionTypeName?: string
|
|
5
|
+
id: string
|
|
6
|
+
description: string
|
|
7
|
+
cardStyle?: CardStyleType
|
|
8
|
+
iconTitle?: IconTitleProps
|
|
9
|
+
title?: string
|
|
10
|
+
priceText?: string
|
|
11
|
+
features?: FeatureProps[]
|
|
12
|
+
buttonText?: string
|
|
13
|
+
dataQa?: string
|
|
14
|
+
handleClick?: () => void
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
interface IconTitleProps {
|
|
18
|
+
name?: string
|
|
19
|
+
url: string
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export type CardStyleType = 'Primary' | 'Secondary'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const PlanBoxPricingTextStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
export const PlanBoxPricingTextStyled = styled.div `
|
|
3
|
+
padding: 0.5rem 1.5rem;
|
|
4
|
+
color: var(--Neutral-600, var(--neutral-neutral-2));
|
|
5
|
+
font-size: 12px;
|
|
6
|
+
font-style: normal;
|
|
7
|
+
font-weight: 400;
|
|
8
|
+
line-height: 16px;
|
|
9
|
+
letter-spacing: -0.3px;
|
|
10
|
+
`;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import styled from 'styled-components'
|
|
2
|
+
|
|
3
|
+
export const PlanBoxPricingTextStyled = styled.div`
|
|
4
|
+
padding: 0.5rem 1.5rem;
|
|
5
|
+
color: var(--Neutral-600, var(--neutral-neutral-2));
|
|
6
|
+
font-size: 12px;
|
|
7
|
+
font-style: normal;
|
|
8
|
+
font-weight: 400;
|
|
9
|
+
line-height: 16px;
|
|
10
|
+
letter-spacing: -0.3px;
|
|
11
|
+
`
|
package/dist/src/components/molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaCardHeader.js
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { IconSvgURLWithThemeColor, RichTextStrapi } from '../../../atoms';
|
|
3
|
+
import { RatafiaCardHeaderStyled } from './RatafiaCardHeader.styled';
|
|
4
|
+
export const RatafiaCardHeader = ({ title, iconTitle, priceText }) => (_jsxs(RatafiaCardHeaderStyled, { children: [title ?? (_jsxs("div", { className: 'subscription-card__title', children: [iconTitle?.url && _jsx(IconSvgURLWithThemeColor, { url: iconTitle.url, height: '26', width: '26' }), _jsx(RichTextStrapi, { html: title })] })), priceText && _jsx("div", { className: 'subscription-card__price-text', children: priceText })] }));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const RatafiaCardHeaderStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { device } from '../../../../globalStyles/breakpoints';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
export const RatafiaCardHeaderStyled = styled.div `
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-flow: row wrap;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: space-between;
|
|
8
|
+
gap: 0.5rem var(--global-gap);
|
|
9
|
+
|
|
10
|
+
@media ${device.mobile} {
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
align-items: start;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.subscription-card {
|
|
16
|
+
&__title {
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-flow: row nowrap;
|
|
19
|
+
align-items: center;
|
|
20
|
+
gap: 0.5rem;
|
|
21
|
+
color: var(--neutral-neutral-1);
|
|
22
|
+
font-weight: bold;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&__price-text {
|
|
26
|
+
font-size: 0.875rem;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
`;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { device } from '../../../../globalStyles/breakpoints'
|
|
2
|
+
import styled from 'styled-components'
|
|
3
|
+
|
|
4
|
+
export const RatafiaCardHeaderStyled = styled.div`
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-flow: row wrap;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: space-between;
|
|
9
|
+
gap: 0.5rem var(--global-gap);
|
|
10
|
+
|
|
11
|
+
@media ${device.mobile} {
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
align-items: start;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.subscription-card {
|
|
17
|
+
&__title {
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-flow: row nowrap;
|
|
20
|
+
align-items: center;
|
|
21
|
+
gap: 0.5rem;
|
|
22
|
+
color: var(--neutral-neutral-1);
|
|
23
|
+
font-weight: bold;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&__price-text {
|
|
27
|
+
font-size: 0.875rem;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
`
|
package/dist/src/components/molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaCardHeader.tsx
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
|
|
3
|
+
import { IconSvgURLWithThemeColor, RichTextStrapi } from '../../../atoms'
|
|
4
|
+
import { RatafiaCardHeaderStyled } from './RatafiaCardHeader.styled'
|
|
5
|
+
|
|
6
|
+
export const RatafiaCardHeader: React.FC<{ title: string; iconTitle?: { url: string }; priceText?: string }> = ({
|
|
7
|
+
title,
|
|
8
|
+
iconTitle,
|
|
9
|
+
priceText
|
|
10
|
+
}) => (
|
|
11
|
+
<RatafiaCardHeaderStyled>
|
|
12
|
+
{title ?? (
|
|
13
|
+
<div className='subscription-card__title'>
|
|
14
|
+
{iconTitle?.url && <IconSvgURLWithThemeColor url={iconTitle.url} height='26' width='26' />}
|
|
15
|
+
<RichTextStrapi html={title} />
|
|
16
|
+
</div>
|
|
17
|
+
)}
|
|
18
|
+
{priceText && <div className='subscription-card__price-text'>{priceText}</div>}
|
|
19
|
+
</RatafiaCardHeaderStyled>
|
|
20
|
+
)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { RatafiaSubscriptionCardProps } from './RatafiaSubscriptionCardProps.types';
|
|
3
|
-
declare const RatafiaSubscriptionCard: FC<RatafiaSubscriptionCardProps>;
|
|
3
|
+
declare const RatafiaSubscriptionCard: React.FC<RatafiaSubscriptionCardProps>;
|
|
4
4
|
export default RatafiaSubscriptionCard;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { CardBody } from '../CardBody';
|
|
3
|
+
import { CardFooter } from '../CardFooter';
|
|
4
|
+
import { RatafiaCardHeader } from './RatafiaCardHeader';
|
|
5
|
+
import { SubscriptionCardStyled } from '../SubscriptionCard.styled';
|
|
6
|
+
import { stringSlugify } from '../../../../utils/stringSlugify';
|
|
7
|
+
const RatafiaSubscriptionCard = ({ buttonText, cardStyle = 'primary', features, dataQa, handleClick, iconTitle, priceText, title }) => {
|
|
8
|
+
if (!title)
|
|
9
|
+
return null;
|
|
10
|
+
const finalCardClass = cardStyle ? stringSlugify(cardStyle) : 'primary';
|
|
11
|
+
const finalButtonStyle = cardStyle === 'Secondary' ? 'primary3' : 'primary';
|
|
12
|
+
return (_jsxs(SubscriptionCardStyled, { className: `subscription-card ${finalCardClass}`, children: [_jsx(RatafiaCardHeader, { title: title, iconTitle: iconTitle, priceText: priceText }), _jsx("hr", {}), _jsx(CardBody, { features: features }), _jsx(CardFooter, { buttonText: buttonText, dataQa: dataQa, onClick: handleClick, buttonStyle: finalButtonStyle })] }));
|
|
13
|
+
};
|
|
14
|
+
export default RatafiaSubscriptionCard;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
|
|
3
|
+
import { CardBody } from '../CardBody'
|
|
4
|
+
import { CardFooter } from '../CardFooter'
|
|
5
|
+
import { RatafiaCardHeader } from './RatafiaCardHeader'
|
|
6
|
+
import { RatafiaSubscriptionCardProps } from './RatafiaSubscriptionCardProps.types'
|
|
7
|
+
import { SubscriptionCardStyled } from '../SubscriptionCard.styled'
|
|
8
|
+
import { stringSlugify } from '../../../../utils/stringSlugify'
|
|
9
|
+
|
|
10
|
+
const RatafiaSubscriptionCard: React.FC<RatafiaSubscriptionCardProps> = ({
|
|
11
|
+
buttonText,
|
|
12
|
+
cardStyle = 'primary',
|
|
13
|
+
features,
|
|
14
|
+
dataQa,
|
|
15
|
+
handleClick,
|
|
16
|
+
iconTitle,
|
|
17
|
+
priceText,
|
|
18
|
+
title
|
|
19
|
+
}) => {
|
|
20
|
+
if (!title) return null
|
|
21
|
+
|
|
22
|
+
const finalCardClass = cardStyle ? stringSlugify(cardStyle) : 'primary'
|
|
23
|
+
const finalButtonStyle = cardStyle === 'Secondary' ? 'primary3' : 'primary'
|
|
24
|
+
return (
|
|
25
|
+
<SubscriptionCardStyled className={`subscription-card ${finalCardClass}`}>
|
|
26
|
+
<RatafiaCardHeader title={title} iconTitle={iconTitle} priceText={priceText} />
|
|
27
|
+
<hr />
|
|
28
|
+
<CardBody features={features} />
|
|
29
|
+
<CardFooter buttonText={buttonText} dataQa={dataQa} onClick={handleClick} buttonStyle={finalButtonStyle} />
|
|
30
|
+
</SubscriptionCardStyled>
|
|
31
|
+
)
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export default RatafiaSubscriptionCard
|
|
@@ -4,8 +4,7 @@ export interface RatafiaSubscriptionCardProps {
|
|
|
4
4
|
iconTitle?: IconTitleProps;
|
|
5
5
|
title?: string;
|
|
6
6
|
priceText?: string;
|
|
7
|
-
|
|
8
|
-
AIFeatures?: BenefitProps[];
|
|
7
|
+
features?: FeatureProps[];
|
|
9
8
|
buttonText?: string;
|
|
10
9
|
dataQa?: string;
|
|
11
10
|
handleClick?: () => void;
|
|
@@ -14,9 +13,10 @@ interface IconTitleProps {
|
|
|
14
13
|
name?: string;
|
|
15
14
|
url: string;
|
|
16
15
|
}
|
|
17
|
-
export interface
|
|
16
|
+
export interface FeatureProps {
|
|
18
17
|
title?: string;
|
|
19
18
|
description: string;
|
|
19
|
+
isHighlighted: boolean;
|
|
20
20
|
image?: {
|
|
21
21
|
name: string;
|
|
22
22
|
url: string;
|
|
@@ -4,8 +4,7 @@ export interface RatafiaSubscriptionCardProps {
|
|
|
4
4
|
iconTitle?: IconTitleProps
|
|
5
5
|
title?: string
|
|
6
6
|
priceText?: string
|
|
7
|
-
|
|
8
|
-
AIFeatures?: BenefitProps[]
|
|
7
|
+
features?: FeatureProps[]
|
|
9
8
|
buttonText?: string
|
|
10
9
|
dataQa?: string
|
|
11
10
|
handleClick?: () => void
|
|
@@ -16,9 +15,10 @@ interface IconTitleProps {
|
|
|
16
15
|
url: string
|
|
17
16
|
}
|
|
18
17
|
|
|
19
|
-
export interface
|
|
18
|
+
export interface FeatureProps {
|
|
20
19
|
title?: string
|
|
21
20
|
description: string
|
|
21
|
+
isHighlighted: boolean
|
|
22
22
|
image?: {
|
|
23
23
|
name: string
|
|
24
24
|
url: string
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SubscriptionCardStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { device } from '../../../globalStyles/breakpoints';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
export const
|
|
3
|
+
export const SubscriptionCardStyled = styled.div `
|
|
4
4
|
display: flex;
|
|
5
5
|
flex-flow: column nowrap;
|
|
6
6
|
flex: 1;
|
|
7
7
|
gap: 0.5rem;
|
|
8
|
-
min-width:
|
|
8
|
+
min-width: 379px;
|
|
9
9
|
padding: 1rem;
|
|
10
10
|
border-radius: var(--s-border-radius);
|
|
11
11
|
|
|
@@ -26,7 +26,7 @@ export const RatafiaSubscriptionCardStyled = styled.div `
|
|
|
26
26
|
background-color: var(--primary-main-light-1);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
.
|
|
29
|
+
.subscription-card__feature {
|
|
30
30
|
&.ratafia-feature {
|
|
31
31
|
background-color: var(--primary-main-light-6);
|
|
32
32
|
}
|
|
@@ -40,44 +40,18 @@ export const RatafiaSubscriptionCardStyled = styled.div `
|
|
|
40
40
|
background-color: var(--secondary-main-dark-2);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
.
|
|
43
|
+
.subscription-card__feature {
|
|
44
44
|
&.ratafia-feature {
|
|
45
45
|
background-color: var(--secondary-main-light-3);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
.
|
|
49
|
+
.subscription-card__button {
|
|
50
50
|
color: var(--others-black);
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
.
|
|
55
|
-
&__header {
|
|
56
|
-
display: flex;
|
|
57
|
-
flex-flow: row wrap;
|
|
58
|
-
align-items: center;
|
|
59
|
-
justify-content: space-between;
|
|
60
|
-
gap: 0.5rem var(--global-gap);
|
|
61
|
-
|
|
62
|
-
@media ${device.mobile} {
|
|
63
|
-
flex-direction: column;
|
|
64
|
-
align-items: start;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
&__title {
|
|
69
|
-
display: flex;
|
|
70
|
-
flex-flow: row nowrap;
|
|
71
|
-
align-items: center;
|
|
72
|
-
gap: 0.5rem;
|
|
73
|
-
color: var(--neutral-neutral-1);
|
|
74
|
-
font-weight: bold;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
&__price-text {
|
|
78
|
-
font-size: 0.875rem;
|
|
79
|
-
}
|
|
80
|
-
|
|
54
|
+
.subscription-card {
|
|
81
55
|
&__body {
|
|
82
56
|
display: flex;
|
|
83
57
|
flex-flow: column;
|
|
@@ -93,10 +67,18 @@ export const RatafiaSubscriptionCardStyled = styled.div `
|
|
|
93
67
|
font-size: 0.875rem;
|
|
94
68
|
text-align: left;
|
|
95
69
|
padding: 0.25rem 0;
|
|
70
|
+
border-radius: 4px;
|
|
71
|
+
|
|
72
|
+
&.has-padding {
|
|
73
|
+
padding-left: 0.5rem;
|
|
74
|
+
}
|
|
96
75
|
|
|
97
76
|
.icon-svg-with-theme-color {
|
|
98
77
|
flex-basis: 1rem;
|
|
99
78
|
margin-top: 0.2rem;
|
|
79
|
+
display: inline-block;
|
|
80
|
+
object-fit: contain;
|
|
81
|
+
flex-shrink: 0;
|
|
100
82
|
}
|
|
101
83
|
|
|
102
84
|
&.ratafia-feature {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { device } from '../../../globalStyles/breakpoints'
|
|
2
2
|
import styled from 'styled-components'
|
|
3
3
|
|
|
4
|
-
export const
|
|
4
|
+
export const SubscriptionCardStyled = styled.div`
|
|
5
5
|
display: flex;
|
|
6
6
|
flex-flow: column nowrap;
|
|
7
7
|
flex: 1;
|
|
8
8
|
gap: 0.5rem;
|
|
9
|
-
min-width:
|
|
9
|
+
min-width: 379px;
|
|
10
10
|
padding: 1rem;
|
|
11
11
|
border-radius: var(--s-border-radius);
|
|
12
12
|
|
|
@@ -27,7 +27,7 @@ export const RatafiaSubscriptionCardStyled = styled.div`
|
|
|
27
27
|
background-color: var(--primary-main-light-1);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
.
|
|
30
|
+
.subscription-card__feature {
|
|
31
31
|
&.ratafia-feature {
|
|
32
32
|
background-color: var(--primary-main-light-6);
|
|
33
33
|
}
|
|
@@ -41,44 +41,18 @@ export const RatafiaSubscriptionCardStyled = styled.div`
|
|
|
41
41
|
background-color: var(--secondary-main-dark-2);
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
.
|
|
44
|
+
.subscription-card__feature {
|
|
45
45
|
&.ratafia-feature {
|
|
46
46
|
background-color: var(--secondary-main-light-3);
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
.
|
|
50
|
+
.subscription-card__button {
|
|
51
51
|
color: var(--others-black);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
.
|
|
56
|
-
&__header {
|
|
57
|
-
display: flex;
|
|
58
|
-
flex-flow: row wrap;
|
|
59
|
-
align-items: center;
|
|
60
|
-
justify-content: space-between;
|
|
61
|
-
gap: 0.5rem var(--global-gap);
|
|
62
|
-
|
|
63
|
-
@media ${device.mobile} {
|
|
64
|
-
flex-direction: column;
|
|
65
|
-
align-items: start;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
&__title {
|
|
70
|
-
display: flex;
|
|
71
|
-
flex-flow: row nowrap;
|
|
72
|
-
align-items: center;
|
|
73
|
-
gap: 0.5rem;
|
|
74
|
-
color: var(--neutral-neutral-1);
|
|
75
|
-
font-weight: bold;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
&__price-text {
|
|
79
|
-
font-size: 0.875rem;
|
|
80
|
-
}
|
|
81
|
-
|
|
55
|
+
.subscription-card {
|
|
82
56
|
&__body {
|
|
83
57
|
display: flex;
|
|
84
58
|
flex-flow: column;
|
|
@@ -94,10 +68,18 @@ export const RatafiaSubscriptionCardStyled = styled.div`
|
|
|
94
68
|
font-size: 0.875rem;
|
|
95
69
|
text-align: left;
|
|
96
70
|
padding: 0.25rem 0;
|
|
71
|
+
border-radius: 4px;
|
|
72
|
+
|
|
73
|
+
&.has-padding {
|
|
74
|
+
padding-left: 0.5rem;
|
|
75
|
+
}
|
|
97
76
|
|
|
98
77
|
.icon-svg-with-theme-color {
|
|
99
78
|
flex-basis: 1rem;
|
|
100
79
|
margin-top: 0.2rem;
|
|
80
|
+
display: inline-block;
|
|
81
|
+
object-fit: contain;
|
|
82
|
+
flex-shrink: 0;
|
|
101
83
|
}
|
|
102
84
|
|
|
103
85
|
&.ratafia-feature {
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { default as RatafiaSubscriptionCard } from './RatafiaSubscriptionCard/RatafiaSubscriptionCard';
|
|
2
|
+
export { type RatafiaSubscriptionCardProps } from './RatafiaSubscriptionCard/RatafiaSubscriptionCardProps.types';
|
|
3
|
+
export { default as PlanBoxPricingSubscriptionCard } from './PlanBoxPricingSubscriptionCard/PlanBoxPricingSubscriptionCard';
|
|
4
|
+
export { type PlanBoxPricingSubscriptionCardProps } from './PlanBoxPricingSubscriptionCard/PlanBoxPricingSubscriptionCardProps.types';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { default as RatafiaSubscriptionCard } from './RatafiaSubscriptionCard/RatafiaSubscriptionCard'
|
|
2
|
+
export { type RatafiaSubscriptionCardProps } from './RatafiaSubscriptionCard/RatafiaSubscriptionCardProps.types'
|
|
3
|
+
export { default as PlanBoxPricingSubscriptionCard } from './PlanBoxPricingSubscriptionCard/PlanBoxPricingSubscriptionCard'
|
|
4
|
+
export { type PlanBoxPricingSubscriptionCardProps } from './PlanBoxPricingSubscriptionCard/PlanBoxPricingSubscriptionCardProps.types'
|
|
@@ -33,7 +33,7 @@ export * from './PopularDocs';
|
|
|
33
33
|
export * from './PricingCard';
|
|
34
34
|
export * from './RatafiaResultCardList';
|
|
35
35
|
export * from './RatafiaResultTabList';
|
|
36
|
-
export * from './
|
|
36
|
+
export * from './SubscriptionCard';
|
|
37
37
|
export * from './Snackbar';
|
|
38
38
|
export * from './StepGetForm';
|
|
39
39
|
export * from './StepRatafiaCardList';
|
|
@@ -33,7 +33,7 @@ export * from './PopularDocs';
|
|
|
33
33
|
export * from './PricingCard';
|
|
34
34
|
export * from './RatafiaResultCardList';
|
|
35
35
|
export * from './RatafiaResultTabList';
|
|
36
|
-
export * from './
|
|
36
|
+
export * from './SubscriptionCard';
|
|
37
37
|
export * from './Snackbar';
|
|
38
38
|
export * from './StepGetForm';
|
|
39
39
|
export * from './StepRatafiaCardList';
|
|
@@ -33,7 +33,7 @@ export * from './PopularDocs'
|
|
|
33
33
|
export * from './PricingCard'
|
|
34
34
|
export * from './RatafiaResultCardList'
|
|
35
35
|
export * from './RatafiaResultTabList'
|
|
36
|
-
export * from './
|
|
36
|
+
export * from './SubscriptionCard'
|
|
37
37
|
export * from './Snackbar'
|
|
38
38
|
export * from './StepGetForm'
|
|
39
39
|
export * from './StepRatafiaCardList'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { RichTextInner, RichTextStrapi } from '../../atoms';
|
|
3
3
|
import { GuideslinesContentStyled } from './GuidelinesContent.styled';
|
|
4
|
-
const GuidelinesContent = ({ title, detail, children
|
|
5
|
-
return (_jsxs(GuideslinesContentStyled, { children: [
|
|
4
|
+
const GuidelinesContent = ({ title, image, detail, children }) => {
|
|
5
|
+
return (_jsxs(GuideslinesContentStyled, { children: [_jsxs("div", { className: 'guidelines-section-main wrapper', children: [_jsx("div", { className: 'guidelines-section__image big-devices', children: image }), _jsxs("div", { className: 'guidelines-section__texts', children: [_jsx("h2", { className: 'guidelines-section__texts__title', children: title }), _jsx(RichTextInner, { customClass: 'guidelines-section__texts__body', children: children })] }), _jsx("div", { className: 'guidelines-section__image is-mobile', children: image })] }), Array.isArray(detail) && (_jsx("div", { className: 'guidelines-section-detail wrapper', children: detail.map((item, index) => (_jsxs("div", { className: 'guidelines-section-detail__item', children: [_jsx("div", { className: 'guidelines-section-detail__item__image', children: item.image }), _jsx("div", { className: 'guidelines-section-detail__item__title', children: item.title }), _jsx(RichTextStrapi, { html: item.body?.data?.childMarkdownRemark?.html })] }, index))) }))] }));
|
|
6
6
|
};
|
|
7
7
|
export default GuidelinesContent;
|