@npm_leadtech/legal-lib-components 7.0.3 → 7.0.4

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.
Files changed (181) hide show
  1. package/dist/src/components/atoms/BenefitCard/BenefitCard.d.ts +3 -0
  2. package/dist/src/components/atoms/BenefitCard/BenefitCard.js +5 -0
  3. package/dist/src/components/atoms/BenefitCard/BenefitCard.tsx +24 -0
  4. package/dist/src/components/atoms/{BenefitRatafiaCard/BenefitRatafiaCardProps.types.d.ts → BenefitCard/BenefitCardProps.types.d.ts} +3 -1
  5. package/dist/src/components/atoms/BenefitCard/BenefitCardProps.types.ts +8 -0
  6. package/dist/src/components/atoms/BenefitCard/BenefitCardStyled.styled.d.ts +1 -0
  7. package/dist/src/components/atoms/{BenefitRatafiaCard/BenefitRatafiaCard.styled.js → BenefitCard/BenefitCardStyled.styled.js} +10 -4
  8. package/dist/src/components/atoms/{BenefitRatafiaCard/BenefitRatafiaCard.styled.ts → BenefitCard/BenefitCardStyled.styled.ts} +10 -4
  9. package/dist/src/components/atoms/BenefitCard/index.d.ts +2 -0
  10. package/dist/src/components/atoms/BenefitCard/index.js +1 -0
  11. package/dist/src/components/atoms/BenefitCard/index.ts +2 -0
  12. package/dist/src/components/atoms/Button/ButtonProps.types.d.ts +2 -1
  13. package/dist/src/components/atoms/Button/ButtonProps.types.js +1 -0
  14. package/dist/src/components/atoms/Button/ButtonProps.types.ts +18 -16
  15. package/dist/src/components/atoms/CardBox/CardBox.d.ts +3 -0
  16. package/dist/src/components/atoms/CardBox/CardBox.js +7 -0
  17. package/dist/src/components/atoms/CardBox/CardBox.styled.d.ts +1 -0
  18. package/dist/src/components/atoms/CardBox/CardBox.styled.js +22 -0
  19. package/dist/src/components/atoms/CardBox/CardBox.styled.ts +23 -0
  20. package/dist/src/components/atoms/CardBox/CardBox.tsx +23 -0
  21. package/dist/src/components/atoms/CardBox/CardBoxProps.types.d.ts +9 -0
  22. package/dist/src/components/atoms/CardBox/CardBoxProps.types.ts +9 -0
  23. package/dist/src/components/atoms/CardBox/index.d.ts +2 -0
  24. package/dist/src/components/atoms/CardBox/index.js +1 -0
  25. package/dist/src/components/atoms/CardBox/index.ts +2 -0
  26. package/dist/src/components/atoms/index.d.ts +2 -1
  27. package/dist/src/components/atoms/index.js +2 -1
  28. package/dist/src/components/atoms/index.ts +2 -1
  29. package/dist/src/components/molecules/BenefitRatafiaCardList/BenefitRatafiaCardList.js +2 -2
  30. package/dist/src/components/molecules/BenefitRatafiaCardList/BenefitRatafiaCardList.tsx +2 -2
  31. package/dist/src/components/molecules/BenefitRatafiaCardList/BenefitRatafiaCardListProps.types.d.ts +2 -2
  32. package/dist/src/components/molecules/BenefitRatafiaCardList/BenefitRatafiaCardListProps.types.ts +2 -2
  33. package/dist/src/components/molecules/MidBannerRatafiaSample/MidBannerRatafiaSample.js +2 -2
  34. package/dist/src/components/molecules/MidBannerRatafiaSample/MidBannerRatafiaSample.styled.js +0 -11
  35. package/dist/src/components/molecules/MidBannerRatafiaSample/MidBannerRatafiaSample.styled.ts +0 -11
  36. package/dist/src/components/molecules/MidBannerRatafiaSample/MidBannerRatafiaSample.tsx +1 -18
  37. package/dist/src/components/molecules/MidBannerRatafiaSample/MidBannerRatafiaSampleProps.types.d.ts +0 -1
  38. package/dist/src/components/molecules/MidBannerRatafiaSample/MidBannerRatafiaSampleProps.types.ts +0 -1
  39. package/dist/src/components/molecules/SubscriptionCard/CardBody.d.ts +6 -0
  40. package/dist/src/components/molecules/SubscriptionCard/CardBody.js +6 -0
  41. package/dist/src/components/molecules/SubscriptionCard/CardBody.tsx +29 -0
  42. package/dist/src/components/molecules/SubscriptionCard/CardFooter.d.ts +8 -0
  43. package/dist/src/components/molecules/SubscriptionCard/CardFooter.js +3 -0
  44. package/dist/src/components/molecules/SubscriptionCard/CardFooter.tsx +23 -0
  45. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingCardHeader.d.ts +6 -0
  46. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingCardHeader.js +3 -0
  47. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingCardHeader.styled.d.ts +1 -0
  48. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingCardHeader.styled.js +30 -0
  49. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingCardHeader.styled.ts +31 -0
  50. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingCardHeader.tsx +14 -0
  51. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingSubscriptionCard.d.ts +4 -0
  52. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingSubscriptionCard.js +15 -0
  53. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingSubscriptionCard.tsx +38 -0
  54. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingSubscriptionCardProps.types.d.ts +20 -0
  55. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingSubscriptionCardProps.types.ts +22 -0
  56. package/dist/src/components/{atoms/BenefitRatafiaCard/BenefitRatafiaCard.styled.d.ts → molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingText.styled.d.ts} +1 -1
  57. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingText.styled.js +10 -0
  58. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingText.styled.ts +11 -0
  59. package/dist/src/components/molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaCardHeader.d.ts +8 -0
  60. package/dist/src/components/molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaCardHeader.js +4 -0
  61. package/dist/src/components/molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaCardHeader.styled.d.ts +1 -0
  62. package/dist/src/components/molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaCardHeader.styled.js +29 -0
  63. package/dist/src/components/molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaCardHeader.styled.ts +30 -0
  64. package/dist/src/components/molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaCardHeader.tsx +20 -0
  65. package/dist/src/components/molecules/{RatafiaSubscriptionCard → SubscriptionCard/RatafiaSubscriptionCard}/RatafiaSubscriptionCard.d.ts +2 -2
  66. package/dist/src/components/molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaSubscriptionCard.js +14 -0
  67. package/dist/src/components/molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaSubscriptionCard.tsx +34 -0
  68. package/dist/src/components/molecules/{RatafiaSubscriptionCard → SubscriptionCard/RatafiaSubscriptionCard}/RatafiaSubscriptionCardProps.types.d.ts +3 -3
  69. package/dist/src/components/molecules/{RatafiaSubscriptionCard → SubscriptionCard/RatafiaSubscriptionCard}/RatafiaSubscriptionCardProps.types.ts +3 -3
  70. package/dist/src/components/molecules/SubscriptionCard/SubscriptionCard.styled.d.ts +1 -0
  71. package/dist/src/components/molecules/{RatafiaSubscriptionCard/RatafiaSubscriptionCard.styled.js → SubscriptionCard/SubscriptionCard.styled.js} +14 -32
  72. package/dist/src/components/molecules/{RatafiaSubscriptionCard/RatafiaSubscriptionCard.styled.ts → SubscriptionCard/SubscriptionCard.styled.ts} +14 -32
  73. package/dist/src/components/molecules/SubscriptionCard/index.d.ts +4 -0
  74. package/dist/src/components/molecules/SubscriptionCard/index.js +2 -0
  75. package/dist/src/components/molecules/SubscriptionCard/index.ts +4 -0
  76. package/dist/src/components/molecules/index.d.ts +1 -1
  77. package/dist/src/components/molecules/index.js +1 -1
  78. package/dist/src/components/molecules/index.ts +1 -1
  79. package/dist/src/components/organisms/HeroContent/HeroContent.d.ts +4 -0
  80. package/dist/src/components/organisms/HeroContent/HeroContent.js +7 -0
  81. package/dist/src/components/organisms/HeroContent/HeroContent.styled.d.ts +1 -0
  82. package/dist/src/components/organisms/{AboutUsContent/AboutUsContent.styled.js → HeroContent/HeroContent.styled.js} +3 -3
  83. package/dist/src/components/organisms/{AboutUsContent/AboutUsContent.styled.ts → HeroContent/HeroContent.styled.ts} +3 -3
  84. package/dist/src/components/organisms/HeroContent/HeroContent.tsx +23 -0
  85. package/dist/src/components/organisms/{AboutUsContent/AboutUsContentProps.types.d.ts → HeroContent/HeroContentPropsProps.types.d.ts} +1 -1
  86. package/dist/src/components/organisms/HeroContent/HeroContentPropsProps.types.js +1 -0
  87. package/dist/src/components/organisms/{AboutUsContent/AboutUsContentProps.types.ts → HeroContent/HeroContentPropsProps.types.ts} +1 -1
  88. package/dist/src/components/organisms/HeroContent/index.d.ts +2 -0
  89. package/dist/src/components/organisms/HeroContent/index.js +1 -0
  90. package/dist/src/components/organisms/HeroContent/index.ts +2 -0
  91. package/dist/src/components/organisms/index.d.ts +1 -1
  92. package/dist/src/components/organisms/index.js +1 -1
  93. package/dist/src/components/organisms/index.ts +1 -1
  94. package/dist/src/components/pages/AboutUsPage/AboutUsPage.js +3 -3
  95. package/dist/src/components/pages/AboutUsPage/AboutUsPage.tsx +2 -5
  96. package/dist/src/components/pages/AboutUsPage/AboutUsPageProps.d.ts +2 -3
  97. package/dist/src/components/pages/AboutUsPage/AboutUsPageProps.ts +2 -4
  98. package/dist/src/components/pages/PricingPage/PricingPage.d.ts +3 -0
  99. package/dist/src/components/pages/PricingPage/PricingPage.js +10 -0
  100. package/dist/src/components/pages/PricingPage/PricingPage.styled.d.ts +1 -0
  101. package/dist/src/components/pages/PricingPage/PricingPage.styled.js +88 -0
  102. package/dist/src/components/pages/PricingPage/PricingPage.styled.ts +89 -0
  103. package/dist/src/components/pages/PricingPage/PricingPage.tsx +49 -0
  104. package/dist/src/components/pages/PricingPage/PricingPageProps.d.ts +29 -0
  105. package/dist/src/components/pages/PricingPage/PricingPageProps.js +1 -0
  106. package/dist/src/components/pages/PricingPage/PricingPageProps.ts +33 -0
  107. package/dist/src/components/pages/PricingPage/index.d.ts +1 -0
  108. package/dist/src/components/pages/PricingPage/index.js +1 -0
  109. package/dist/src/components/pages/PricingPage/index.ts +1 -0
  110. package/dist/src/components/sections/BenefitsRatafiaSection/BenefitsRatafiaSectionProps.types.d.ts +2 -2
  111. package/dist/src/components/sections/BenefitsRatafiaSection/BenefitsRatafiaSectionProps.types.ts +2 -2
  112. package/dist/src/components/sections/CardBoxSection/CardBoxSection.d.ts +4 -0
  113. package/dist/src/components/sections/CardBoxSection/CardBoxSection.js +9 -0
  114. package/dist/src/components/sections/CardBoxSection/CardBoxSection.styled.d.ts +2 -0
  115. package/dist/src/components/sections/CardBoxSection/CardBoxSection.styled.js +33 -0
  116. package/dist/src/components/sections/CardBoxSection/CardBoxSection.styled.ts +35 -0
  117. package/dist/src/components/sections/CardBoxSection/CardBoxSection.tsx +23 -0
  118. package/dist/src/components/sections/CardBoxSection/CardBoxSectionProps.d.ts +4 -0
  119. package/dist/src/components/sections/CardBoxSection/CardBoxSectionProps.js +1 -0
  120. package/dist/src/components/sections/CardBoxSection/CardBoxSectionProps.ts +5 -0
  121. package/dist/src/components/sections/CardBoxSection/index.d.ts +2 -0
  122. package/dist/src/components/sections/CardBoxSection/index.js +1 -0
  123. package/dist/src/components/sections/CardBoxSection/index.ts +2 -0
  124. package/dist/src/components/sections/FaqSection/FaqSection.js +1 -1
  125. package/dist/src/components/sections/FaqSection/FaqSection.tsx +1 -3
  126. package/dist/src/components/sections/HeroSection/HeroSection.d.ts +4 -0
  127. package/dist/src/components/sections/HeroSection/HeroSection.js +7 -0
  128. package/dist/src/components/sections/HeroSection/HeroSection.tsx +24 -0
  129. package/dist/src/components/sections/HeroSection/HeroSectionProps.types.d.ts +6 -0
  130. package/dist/src/components/sections/HeroSection/HeroSectionProps.types.js +1 -0
  131. package/dist/src/components/sections/HeroSection/HeroSectionProps.types.ts +7 -0
  132. package/dist/src/components/sections/HeroSection/HeroSectionStyled.styled.d.ts +1 -0
  133. package/dist/src/components/sections/{AboutUsSection/AboutUsSection.styled.js → HeroSection/HeroSectionStyled.styled.js} +2 -2
  134. package/dist/src/components/sections/{AboutUsSection/AboutUsSection.styled.ts → HeroSection/HeroSectionStyled.styled.ts} +2 -2
  135. package/dist/src/components/sections/HeroSection/index.d.ts +2 -0
  136. package/dist/src/components/sections/HeroSection/index.js +1 -0
  137. package/dist/src/components/sections/HeroSection/index.ts +2 -0
  138. package/dist/src/components/sections/MidBannerRatafiaSection/MidBannerRatafiaSection.js +3 -5
  139. package/dist/src/components/sections/MidBannerRatafiaSection/MidBannerRatafiaSection.styled.js +0 -45
  140. package/dist/src/components/sections/MidBannerRatafiaSection/MidBannerRatafiaSection.styled.ts +0 -45
  141. package/dist/src/components/sections/MidBannerRatafiaSection/MidBannerRatafiaSection.tsx +2 -5
  142. package/dist/src/components/sections/MidBannerRatafiaSection/MidBannerRatafiaSectionProps.types.d.ts +1 -1
  143. package/dist/src/components/sections/MidBannerRatafiaSection/MidBannerRatafiaSectionProps.types.ts +1 -1
  144. package/dist/src/components/sections/index.d.ts +2 -1
  145. package/dist/src/components/sections/index.js +2 -1
  146. package/dist/src/components/sections/index.ts +2 -1
  147. package/dist/tsconfig.build.tsbuildinfo +1 -1
  148. package/package.json +6 -4
  149. package/dist/src/components/atoms/BenefitRatafiaCard/BenefitRatafiaCard.d.ts +0 -4
  150. package/dist/src/components/atoms/BenefitRatafiaCard/BenefitRatafiaCard.js +0 -6
  151. package/dist/src/components/atoms/BenefitRatafiaCard/BenefitRatafiaCard.tsx +0 -18
  152. package/dist/src/components/atoms/BenefitRatafiaCard/BenefitRatafiaCardProps.types.ts +0 -6
  153. package/dist/src/components/atoms/BenefitRatafiaCard/index.d.ts +0 -2
  154. package/dist/src/components/atoms/BenefitRatafiaCard/index.js +0 -1
  155. package/dist/src/components/atoms/BenefitRatafiaCard/index.ts +0 -2
  156. package/dist/src/components/molecules/RatafiaSubscriptionCard/RatafiaSubscriptionCard.js +0 -12
  157. package/dist/src/components/molecules/RatafiaSubscriptionCard/RatafiaSubscriptionCard.styled.d.ts +0 -1
  158. package/dist/src/components/molecules/RatafiaSubscriptionCard/RatafiaSubscriptionCard.tsx +0 -61
  159. package/dist/src/components/molecules/RatafiaSubscriptionCard/index.d.ts +0 -2
  160. package/dist/src/components/molecules/RatafiaSubscriptionCard/index.js +0 -1
  161. package/dist/src/components/molecules/RatafiaSubscriptionCard/index.ts +0 -2
  162. package/dist/src/components/organisms/AboutUsContent/AboutUsContent.d.ts +0 -4
  163. package/dist/src/components/organisms/AboutUsContent/AboutUsContent.js +0 -7
  164. package/dist/src/components/organisms/AboutUsContent/AboutUsContent.styled.d.ts +0 -1
  165. package/dist/src/components/organisms/AboutUsContent/AboutUsContent.tsx +0 -23
  166. package/dist/src/components/organisms/AboutUsContent/index.d.ts +0 -2
  167. package/dist/src/components/organisms/AboutUsContent/index.js +0 -1
  168. package/dist/src/components/organisms/AboutUsContent/index.ts +0 -2
  169. package/dist/src/components/sections/AboutUsSection/AboutUsSection.d.ts +0 -4
  170. package/dist/src/components/sections/AboutUsSection/AboutUsSection.js +0 -7
  171. package/dist/src/components/sections/AboutUsSection/AboutUsSection.styled.d.ts +0 -1
  172. package/dist/src/components/sections/AboutUsSection/AboutUsSection.tsx +0 -24
  173. package/dist/src/components/sections/AboutUsSection/AboutUsSectionProps.types.d.ts +0 -6
  174. package/dist/src/components/sections/AboutUsSection/AboutUsSectionProps.types.ts +0 -7
  175. package/dist/src/components/sections/AboutUsSection/index.d.ts +0 -2
  176. package/dist/src/components/sections/AboutUsSection/index.js +0 -1
  177. package/dist/src/components/sections/AboutUsSection/index.ts +0 -2
  178. /package/dist/src/components/atoms/{BenefitRatafiaCard/BenefitRatafiaCardProps.types.js → BenefitCard/BenefitCardProps.types.js} +0 -0
  179. /package/dist/src/components/{molecules/RatafiaSubscriptionCard/RatafiaSubscriptionCardProps.types.js → atoms/CardBox/CardBoxProps.types.js} +0 -0
  180. /package/dist/src/components/{organisms/AboutUsContent/AboutUsContentProps.types.js → molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingSubscriptionCardProps.types.js} +0 -0
  181. /package/dist/src/components/{sections/AboutUsSection/AboutUsSectionProps.types.js → molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaSubscriptionCardProps.types.js} +0 -0
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { type BenefitCardProps } from './BenefitCardProps.types';
3
+ export declare const BenefitCard: React.FC<BenefitCardProps>;
@@ -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("h4", { 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
+ <h4 className={`sans-serif ${hasBigFontSize && '--big'} --bold-weight benefit-card__content__title`}>
18
+ {title}
19
+ </h4>
20
+ <p className='sans-serif --medium benefit-ratafia-card__content__description'>{description}</p>
21
+ </div>
22
+ </BenefitCardStyled>
23
+ )
24
+ }
@@ -1,6 +1,8 @@
1
- export interface BenefitRatafiaCardProps {
1
+ export interface BenefitCardProps {
2
2
  id: string;
3
3
  title: string;
4
4
  image?: React.ReactNode;
5
5
  description: string;
6
+ hasShadow?: boolean;
7
+ hasBigFontSize?: boolean;
6
8
  }
@@ -0,0 +1,8 @@
1
+ export interface BenefitCardProps {
2
+ id: string
3
+ title: string
4
+ image?: React.ReactNode
5
+ description: string
6
+ hasShadow?: boolean
7
+ hasBigFontSize?: boolean
8
+ }
@@ -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 BenefitRatafiaCardStyled = styled.div `
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
- box-shadow: 0 2px 6px 0 rgba(2, 55, 74, 0.25);
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-ratafia-card {
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
- box-shadow: 0 2px 6px 0 rgba(2, 55, 74, 0.25);
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 BenefitRatafiaCardStyled = styled.div`
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
- box-shadow: 0 2px 6px 0 rgba(2, 55, 74, 0.25);
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-ratafia-card {
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
- box-shadow: 0 2px 6px 0 rgba(2, 55, 74, 0.25);
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,2 @@
1
+ export { BenefitCard } from './BenefitCard';
2
+ export { type BenefitCardProps } from './BenefitCardProps.types';
@@ -0,0 +1 @@
1
+ export { BenefitCard } from './BenefitCard';
@@ -0,0 +1,2 @@
1
+ export { BenefitCard } from './BenefitCard'
2
+ export { type BenefitCardProps } from './BenefitCardProps.types'
@@ -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?: 'primary' | 'primary2' | 'primary3' | 'primary4' | 'secondary' | 'secondary2' | 'secondary3' | 'secondary4' | 'secondaryIcon' | 'secondaryIconBold' | 'secondaryIconDark' | 'tertiary' | 'tertiary2' | 'styleless' | 'transparent';
12
+ color?: Colors;
12
13
  error?: boolean;
13
14
  disabled?: boolean;
14
15
  fluid?: boolean;
@@ -1 +1,2 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
1
2
  export {};
@@ -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,3 @@
1
+ import React from 'react';
2
+ import { type CardBoxProps } from './CardBoxProps.types';
3
+ export declare const CardBox: React.FC<CardBoxProps>;
@@ -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,9 @@
1
+ export interface CardBoxProps {
2
+ text: string;
3
+ icon: string;
4
+ borderRadius?: string;
5
+ padding?: string;
6
+ gap?: string;
7
+ height?: string;
8
+ width?: string;
9
+ }
@@ -0,0 +1,9 @@
1
+ export interface CardBoxProps {
2
+ text: string
3
+ icon: string
4
+ borderRadius?: string
5
+ padding?: string
6
+ gap?: string
7
+ height?: string
8
+ width?: string
9
+ }
@@ -0,0 +1,2 @@
1
+ export { CardBox } from './CardBox';
2
+ export { type CardBoxProps } from './CardBoxProps.types';
@@ -0,0 +1 @@
1
+ export { CardBox } from './CardBox';
@@ -0,0 +1,2 @@
1
+ export { CardBox } from './CardBox'
2
+ export { type CardBoxProps } from './CardBoxProps.types'
@@ -1,12 +1,13 @@
1
1
  export * from './ActionButtonHeaderRatafiaCard';
2
2
  export * from './AddButton';
3
3
  export * from './BaseBox';
4
- export * from './BenefitRatafiaCard';
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 './BenefitRatafiaCard';
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 './BenefitRatafiaCard'
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 { BenefitRatafiaCard } from '../../atoms';
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(BenefitRatafiaCard, { ...benefit }, benefit.id))) }));
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 { BenefitRatafiaCard } from '../../atoms'
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
- <BenefitRatafiaCard key={benefit.id} {...benefit} />
13
+ <BenefitCard key={benefit.id} {...benefit} />
14
14
  ))}
15
15
  </BenefitRatafiaCardListStyled>
16
16
  )
@@ -1,4 +1,4 @@
1
- import { type BenefitRatafiaCardProps } from '../../atoms';
1
+ import { type BenefitCardProps } from '../../atoms';
2
2
  export interface BenefitRatafiaCardListProps {
3
- benefits: BenefitRatafiaCardProps[];
3
+ benefits: BenefitCardProps[];
4
4
  }
@@ -1,5 +1,5 @@
1
- import { type BenefitRatafiaCardProps } from '../../atoms'
1
+ import { type BenefitCardProps } from '../../atoms'
2
2
 
3
3
  export interface BenefitRatafiaCardListProps {
4
- benefits: BenefitRatafiaCardProps[]
4
+ benefits: BenefitCardProps[]
5
5
  }
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { MidBannerRatafiaSampleStyled } from './MidBannerRatafiaSample.styled';
3
- const MidBannerRatafiaSample = ({ image, isEsignatureImage = false, isAbout = false, midBanner1Img, midBanner2Img, midBanner3Img }) => {
4
- return (_jsxs(MidBannerRatafiaSampleStyled, { className: 'mid-banner-ratafia-sample', children: [_jsx("div", { className: 'mid-banner-ratafia-sample__image', children: image }), !isEsignatureImage && !isAbout && (_jsxs(_Fragment, { children: [_jsxs("div", { className: 'mid-banner-ratafia-sample__sumarized-tag', children: [_jsx("img", { className: 'mid-banner-ratafia-sample__sumarized-tag__icon', src: midBanner1Img, alt: '', role: 'img' }), _jsx("p", { className: 'sans-serif --small --bold-weight mid-banner-ratafia-sample__sumarized-tag__text', children: "Summarized" })] }), _jsxs("div", { className: 'mid-banner-ratafia-sample__feature-tag mid-banner-ratafia-sample__feature-tag__key-facts', children: [_jsx("img", { className: 'mid-banner-ratafia-sample__feature-tag__icon', src: midBanner2Img, alt: '', role: 'img' }), _jsx("p", { className: 'sans-serif --small mid-banner-ratafia-sample__feature-tag__text', children: "Key facts" })] }), _jsxs("div", { className: 'mid-banner-ratafia-sample__feature-tag mid-banner-ratafia-sample__feature-tag__clauses', children: [_jsx("img", { className: 'mid-banner-ratafia-sample__feature-tag__icon', src: midBanner3Img, alt: '', role: 'img' }), _jsx("p", { className: 'sans-serif --small mid-banner-ratafia-sample__feature-tag__text', children: "Clauses" })] })] })), isAbout && (_jsxs("div", { className: 'about-page', children: [_jsxs("div", { className: 'mid-banner-ratafia-sample__feature-tag mid-banner-ratafia-sample__feature-tag__key-facts about-page__signed-tag', children: [_jsx("img", { className: 'mid-banner-ratafia-sample__feature-tag__icon', src: midBanner1Img, alt: '', role: 'img' }), _jsx("p", { className: 'sans-serif --small --bold-weight mid-banner-ratafia-sample__sumarized-tag__text about-page__signed-tag', children: "Signed" })] }), _jsxs("div", { className: 'mid-banner-ratafia-sample__feature-tag mid-banner-ratafia-sample__feature-tag__clauses about-page__ai-tag', children: [_jsx("img", { className: 'mid-banner-ratafia-sample__feature-tag__icon', src: midBanner3Img, alt: '', role: 'img' }), _jsx("p", { className: 'sans-serif --small --bold-weight mid-banner-ratafia-sample__sumarized-tag__text', children: "AI Reviewed" })] })] }))] }));
3
+ const MidBannerRatafiaSample = ({ image, isEsignatureImage = false, midBanner1Img, midBanner2Img, midBanner3Img }) => {
4
+ return (_jsxs(MidBannerRatafiaSampleStyled, { className: 'mid-banner-ratafia-sample', children: [_jsx("div", { className: 'mid-banner-ratafia-sample__image', children: image }), !isEsignatureImage && (_jsxs(_Fragment, { children: [_jsxs("div", { className: 'mid-banner-ratafia-sample__sumarized-tag', children: [_jsx("img", { className: 'mid-banner-ratafia-sample__sumarized-tag__icon', src: midBanner1Img, alt: '', role: 'img' }), _jsx("p", { className: 'sans-serif --small --bold-weight mid-banner-ratafia-sample__sumarized-tag__text', children: "Summarized" })] }), _jsxs("div", { className: 'mid-banner-ratafia-sample__feature-tag mid-banner-ratafia-sample__feature-tag__key-facts', children: [_jsx("img", { className: 'mid-banner-ratafia-sample__feature-tag__icon', src: midBanner2Img, alt: '', role: 'img' }), _jsx("p", { className: 'sans-serif --small mid-banner-ratafia-sample__feature-tag__text', children: "Key facts" })] }), _jsxs("div", { className: 'mid-banner-ratafia-sample__feature-tag mid-banner-ratafia-sample__feature-tag__clauses', children: [_jsx("img", { className: 'mid-banner-ratafia-sample__feature-tag__icon', src: midBanner3Img, alt: '', role: 'img' }), _jsx("p", { className: 'sans-serif --small mid-banner-ratafia-sample__feature-tag__text', children: "Clauses" })] })] }))] }));
5
5
  };
6
6
  export default MidBannerRatafiaSample;
@@ -66,15 +66,4 @@ export const MidBannerRatafiaSampleStyled = styled.div `
66
66
  top: 75px;
67
67
  }
68
68
  }
69
-
70
- .about-page {
71
- &__ai-tag {
72
- background: var(--primary-main-light-5);
73
- }
74
-
75
- &__signed-tag {
76
- background: var(--primary-main-dark-1);
77
- color: var(--others-white);
78
- }
79
- }
80
69
  `;
@@ -67,15 +67,4 @@ export const MidBannerRatafiaSampleStyled = styled.div`
67
67
  top: 75px;
68
68
  }
69
69
  }
70
-
71
- .about-page {
72
- &__ai-tag {
73
- background: var(--primary-main-light-5);
74
- }
75
-
76
- &__signed-tag {
77
- background: var(--primary-main-dark-1);
78
- color: var(--others-white);
79
- }
80
- }
81
70
  `
@@ -6,7 +6,6 @@ import { MidBannerRatafiaSampleStyled } from './MidBannerRatafiaSample.styled'
6
6
  const MidBannerRatafiaSample: FC<MidBannerRatafiaSampleProps> = ({
7
7
  image,
8
8
  isEsignatureImage = false,
9
- isAbout = false,
10
9
  midBanner1Img,
11
10
  midBanner2Img,
12
11
  midBanner3Img
@@ -14,7 +13,7 @@ const MidBannerRatafiaSample: FC<MidBannerRatafiaSampleProps> = ({
14
13
  return (
15
14
  <MidBannerRatafiaSampleStyled className='mid-banner-ratafia-sample'>
16
15
  <div className='mid-banner-ratafia-sample__image'>{image}</div>
17
- {!isEsignatureImage && !isAbout && (
16
+ {!isEsignatureImage && (
18
17
  <>
19
18
  <div className='mid-banner-ratafia-sample__sumarized-tag'>
20
19
  <img className='mid-banner-ratafia-sample__sumarized-tag__icon' src={midBanner1Img} alt='' role='img' />
@@ -32,22 +31,6 @@ const MidBannerRatafiaSample: FC<MidBannerRatafiaSampleProps> = ({
32
31
  </div>
33
32
  </>
34
33
  )}
35
- {isAbout && (
36
- <div className='about-page'>
37
- <div className='mid-banner-ratafia-sample__feature-tag mid-banner-ratafia-sample__feature-tag__key-facts about-page__signed-tag'>
38
- <img className='mid-banner-ratafia-sample__feature-tag__icon' src={midBanner1Img} alt='' role='img' />
39
- <p className='sans-serif --small --bold-weight mid-banner-ratafia-sample__sumarized-tag__text about-page__signed-tag'>
40
- Signed
41
- </p>
42
- </div>
43
- <div className='mid-banner-ratafia-sample__feature-tag mid-banner-ratafia-sample__feature-tag__clauses about-page__ai-tag'>
44
- <img className='mid-banner-ratafia-sample__feature-tag__icon' src={midBanner3Img} alt='' role='img' />
45
- <p className='sans-serif --small --bold-weight mid-banner-ratafia-sample__sumarized-tag__text'>
46
- AI Reviewed
47
- </p>
48
- </div>
49
- </div>
50
- )}
51
34
  </MidBannerRatafiaSampleStyled>
52
35
  )
53
36
  }
@@ -1,7 +1,6 @@
1
1
  export interface MidBannerRatafiaSampleProps {
2
2
  image: React.ReactNode;
3
3
  isEsignatureImage?: boolean;
4
- isAbout?: boolean;
5
4
  midBanner1Img: string;
6
5
  midBanner2Img: string;
7
6
  midBanner3Img: string;
@@ -1,7 +1,6 @@
1
1
  export interface MidBannerRatafiaSampleProps {
2
2
  image: React.ReactNode
3
3
  isEsignatureImage?: boolean
4
- isAbout?: boolean
5
4
  midBanner1Img: string
6
5
  midBanner2Img: string
7
6
  midBanner3Img: string
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { type FeatureProps } from './RatafiaSubscriptionCard/RatafiaSubscriptionCardProps.types';
3
+ export declare const CardBody: React.FC<{
4
+ hasPaddingMainFeature?: boolean;
5
+ features?: FeatureProps[];
6
+ }>;
@@ -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,8 @@
1
+ import React from 'react';
2
+ import { type Colors } from 'src/components/atoms/Button/ButtonProps.types';
3
+ export declare const CardFooter: React.FC<{
4
+ buttonText?: string;
5
+ dataQa?: string;
6
+ onClick?: () => void;
7
+ buttonStyle: Colors;
8
+ }>;
@@ -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