@npm_leadtech/legal-lib-components 7.5.5 → 7.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (180) hide show
  1. package/dist/src/components/atoms/BenefitRatafiaCard/BenefitRatafiaCard.d.ts +4 -0
  2. package/dist/src/components/atoms/BenefitRatafiaCard/BenefitRatafiaCard.js +6 -0
  3. package/dist/src/components/{molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingText.styled.d.ts → atoms/BenefitRatafiaCard/BenefitRatafiaCard.styled.d.ts} +1 -1
  4. package/dist/src/components/atoms/{BenefitCard/BenefitCardStyled.styled.js → BenefitRatafiaCard/BenefitRatafiaCard.styled.js} +4 -10
  5. package/dist/src/components/atoms/{BenefitCard/BenefitCardStyled.styled.ts → BenefitRatafiaCard/BenefitRatafiaCard.styled.ts} +4 -10
  6. package/dist/src/components/atoms/BenefitRatafiaCard/BenefitRatafiaCard.tsx +18 -0
  7. package/dist/src/components/atoms/{BenefitCard/BenefitCardProps.types.d.ts → BenefitRatafiaCard/BenefitRatafiaCardProps.types.d.ts} +1 -3
  8. package/dist/src/components/atoms/BenefitRatafiaCard/BenefitRatafiaCardProps.types.ts +6 -0
  9. package/dist/src/components/atoms/BenefitRatafiaCard/index.d.ts +2 -0
  10. package/dist/src/components/atoms/BenefitRatafiaCard/index.js +1 -0
  11. package/dist/src/components/atoms/BenefitRatafiaCard/index.ts +2 -0
  12. package/dist/src/components/atoms/Button/ButtonProps.types.d.ts +1 -2
  13. package/dist/src/components/atoms/Button/ButtonProps.types.js +0 -1
  14. package/dist/src/components/atoms/Button/ButtonProps.types.ts +16 -18
  15. package/dist/src/components/atoms/index.d.ts +1 -2
  16. package/dist/src/components/atoms/index.js +1 -2
  17. package/dist/src/components/atoms/index.ts +1 -2
  18. package/dist/src/components/molecules/BenefitRatafiaCardList/BenefitRatafiaCardList.js +2 -2
  19. package/dist/src/components/molecules/BenefitRatafiaCardList/BenefitRatafiaCardList.tsx +2 -2
  20. package/dist/src/components/molecules/BenefitRatafiaCardList/BenefitRatafiaCardListProps.types.d.ts +2 -2
  21. package/dist/src/components/molecules/BenefitRatafiaCardList/BenefitRatafiaCardListProps.types.ts +2 -2
  22. package/dist/src/components/molecules/{SubscriptionCard/RatafiaSubscriptionCard → RatafiaSubscriptionCard}/RatafiaSubscriptionCard.d.ts +2 -2
  23. package/dist/src/components/molecules/RatafiaSubscriptionCard/RatafiaSubscriptionCard.js +12 -0
  24. package/dist/src/components/molecules/RatafiaSubscriptionCard/RatafiaSubscriptionCard.styled.d.ts +1 -0
  25. package/dist/src/components/molecules/{SubscriptionCard/SubscriptionCard.styled.js → RatafiaSubscriptionCard/RatafiaSubscriptionCard.styled.js} +32 -14
  26. package/dist/src/components/molecules/{SubscriptionCard/SubscriptionCard.styled.ts → RatafiaSubscriptionCard/RatafiaSubscriptionCard.styled.ts} +32 -14
  27. package/dist/src/components/molecules/RatafiaSubscriptionCard/RatafiaSubscriptionCard.tsx +61 -0
  28. package/dist/src/components/molecules/{SubscriptionCard/RatafiaSubscriptionCard → RatafiaSubscriptionCard}/RatafiaSubscriptionCardProps.types.d.ts +3 -3
  29. package/dist/src/components/molecules/{SubscriptionCard/RatafiaSubscriptionCard → RatafiaSubscriptionCard}/RatafiaSubscriptionCardProps.types.ts +3 -3
  30. package/dist/src/components/molecules/RatafiaSubscriptionCard/index.d.ts +2 -0
  31. package/dist/src/components/molecules/RatafiaSubscriptionCard/index.js +1 -0
  32. package/dist/src/components/molecules/RatafiaSubscriptionCard/index.ts +2 -0
  33. package/dist/src/components/molecules/index.d.ts +1 -1
  34. package/dist/src/components/molecules/index.js +1 -1
  35. package/dist/src/components/molecules/index.ts +1 -1
  36. package/dist/src/components/organisms/AboutUsContent/AboutUsContent.d.ts +4 -0
  37. package/dist/src/components/organisms/AboutUsContent/AboutUsContent.js +7 -0
  38. package/dist/src/components/organisms/AboutUsContent/AboutUsContent.styled.d.ts +1 -0
  39. package/dist/src/components/organisms/{HeroContent/HeroContent.styled.js → AboutUsContent/AboutUsContent.styled.js} +3 -3
  40. package/dist/src/components/organisms/{HeroContent/HeroContent.styled.ts → AboutUsContent/AboutUsContent.styled.ts} +3 -3
  41. package/dist/src/components/organisms/AboutUsContent/AboutUsContent.tsx +23 -0
  42. package/dist/src/components/organisms/{HeroContent/HeroContentPropsProps.types.d.ts → AboutUsContent/AboutUsContentProps.types.d.ts} +1 -1
  43. package/dist/src/components/organisms/{HeroContent/HeroContentPropsProps.types.ts → AboutUsContent/AboutUsContentProps.types.ts} +1 -1
  44. package/dist/src/components/organisms/AboutUsContent/index.d.ts +2 -0
  45. package/dist/src/components/organisms/AboutUsContent/index.js +1 -0
  46. package/dist/src/components/organisms/AboutUsContent/index.ts +2 -0
  47. package/dist/src/components/organisms/GuidelinesContent/GuidelinesContent.js +3 -3
  48. package/dist/src/components/organisms/GuidelinesContent/GuidelinesContent.styled.js +82 -34
  49. package/dist/src/components/organisms/GuidelinesContent/GuidelinesContent.styled.ts +82 -34
  50. package/dist/src/components/organisms/GuidelinesContent/GuidelinesContent.tsx +28 -5
  51. package/dist/src/components/organisms/GuidelinesContent/GuidelinesContentProps.types.d.ts +7 -1
  52. package/dist/src/components/organisms/GuidelinesContent/GuidelinesContentProps.types.ts +8 -1
  53. package/dist/src/components/organisms/index.d.ts +1 -1
  54. package/dist/src/components/organisms/index.js +1 -1
  55. package/dist/src/components/organisms/index.ts +1 -1
  56. package/dist/src/components/pages/AboutUsPage/AboutUsPage.js +2 -2
  57. package/dist/src/components/pages/AboutUsPage/AboutUsPage.tsx +2 -2
  58. package/dist/src/components/pages/AboutUsPage/AboutUsPageProps.d.ts +2 -2
  59. package/dist/src/components/pages/AboutUsPage/AboutUsPageProps.ts +2 -2
  60. package/dist/src/components/pages/index.d.ts +0 -1
  61. package/dist/src/components/pages/index.js +0 -1
  62. package/dist/src/components/pages/index.ts +0 -1
  63. package/dist/src/components/sections/AboutUsSection/AboutUsSection.d.ts +4 -0
  64. package/dist/src/components/sections/AboutUsSection/AboutUsSection.js +7 -0
  65. package/dist/src/components/sections/AboutUsSection/AboutUsSection.styled.d.ts +1 -0
  66. package/dist/src/components/sections/{HeroSection/HeroSectionStyled.styled.js → AboutUsSection/AboutUsSection.styled.js} +2 -2
  67. package/dist/src/components/sections/{HeroSection/HeroSectionStyled.styled.ts → AboutUsSection/AboutUsSection.styled.ts} +2 -2
  68. package/dist/src/components/sections/AboutUsSection/AboutUsSection.tsx +24 -0
  69. package/dist/src/components/sections/AboutUsSection/AboutUsSectionProps.types.d.ts +6 -0
  70. package/dist/src/components/sections/AboutUsSection/AboutUsSectionProps.types.ts +7 -0
  71. package/dist/src/components/sections/AboutUsSection/index.d.ts +2 -0
  72. package/dist/src/components/sections/AboutUsSection/index.js +1 -0
  73. package/dist/src/components/sections/AboutUsSection/index.ts +2 -0
  74. package/dist/src/components/sections/BenefitsRatafiaSection/BenefitsRatafiaSectionProps.types.d.ts +2 -2
  75. package/dist/src/components/sections/BenefitsRatafiaSection/BenefitsRatafiaSectionProps.types.ts +2 -2
  76. package/dist/src/components/sections/FaqSection/FaqSection.js +1 -1
  77. package/dist/src/components/sections/FaqSection/FaqSection.tsx +3 -1
  78. package/dist/src/components/sections/GuidelinesSection/GuidelinesSection.js +1 -1
  79. package/dist/src/components/sections/GuidelinesSection/GuidelinesSection.tsx +5 -0
  80. package/dist/src/components/sections/index.d.ts +1 -2
  81. package/dist/src/components/sections/index.js +1 -2
  82. package/dist/src/components/sections/index.ts +1 -2
  83. package/dist/tsconfig.build.tsbuildinfo +1 -1
  84. package/package.json +5 -8
  85. package/dist/src/components/atoms/BenefitCard/BenefitCard.d.ts +0 -3
  86. package/dist/src/components/atoms/BenefitCard/BenefitCard.js +0 -5
  87. package/dist/src/components/atoms/BenefitCard/BenefitCard.tsx +0 -24
  88. package/dist/src/components/atoms/BenefitCard/BenefitCardProps.types.ts +0 -8
  89. package/dist/src/components/atoms/BenefitCard/BenefitCardStyled.styled.d.ts +0 -1
  90. package/dist/src/components/atoms/BenefitCard/index.d.ts +0 -2
  91. package/dist/src/components/atoms/BenefitCard/index.js +0 -1
  92. package/dist/src/components/atoms/BenefitCard/index.ts +0 -2
  93. package/dist/src/components/atoms/CardBox/CardBox.d.ts +0 -3
  94. package/dist/src/components/atoms/CardBox/CardBox.js +0 -7
  95. package/dist/src/components/atoms/CardBox/CardBox.styled.d.ts +0 -1
  96. package/dist/src/components/atoms/CardBox/CardBox.styled.js +0 -22
  97. package/dist/src/components/atoms/CardBox/CardBox.styled.ts +0 -23
  98. package/dist/src/components/atoms/CardBox/CardBox.tsx +0 -23
  99. package/dist/src/components/atoms/CardBox/CardBoxProps.types.d.ts +0 -10
  100. package/dist/src/components/atoms/CardBox/CardBoxProps.types.ts +0 -10
  101. package/dist/src/components/atoms/CardBox/index.d.ts +0 -2
  102. package/dist/src/components/atoms/CardBox/index.js +0 -1
  103. package/dist/src/components/atoms/CardBox/index.ts +0 -2
  104. package/dist/src/components/molecules/SubscriptionCard/CardBody.d.ts +0 -6
  105. package/dist/src/components/molecules/SubscriptionCard/CardBody.js +0 -6
  106. package/dist/src/components/molecules/SubscriptionCard/CardBody.tsx +0 -29
  107. package/dist/src/components/molecules/SubscriptionCard/CardFooter.d.ts +0 -8
  108. package/dist/src/components/molecules/SubscriptionCard/CardFooter.js +0 -3
  109. package/dist/src/components/molecules/SubscriptionCard/CardFooter.tsx +0 -23
  110. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingCardHeader.d.ts +0 -6
  111. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingCardHeader.js +0 -3
  112. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingCardHeader.styled.d.ts +0 -1
  113. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingCardHeader.styled.js +0 -30
  114. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingCardHeader.styled.ts +0 -31
  115. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingCardHeader.tsx +0 -14
  116. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingSubscriptionCard.d.ts +0 -4
  117. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingSubscriptionCard.js +0 -15
  118. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingSubscriptionCard.tsx +0 -38
  119. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingSubscriptionCardProps.types.d.ts +0 -20
  120. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingSubscriptionCardProps.types.ts +0 -22
  121. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingText.styled.js +0 -10
  122. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingText.styled.ts +0 -11
  123. package/dist/src/components/molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaCardHeader.d.ts +0 -8
  124. package/dist/src/components/molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaCardHeader.js +0 -4
  125. package/dist/src/components/molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaCardHeader.styled.d.ts +0 -1
  126. package/dist/src/components/molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaCardHeader.styled.js +0 -29
  127. package/dist/src/components/molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaCardHeader.styled.ts +0 -30
  128. package/dist/src/components/molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaCardHeader.tsx +0 -20
  129. package/dist/src/components/molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaSubscriptionCard.js +0 -14
  130. package/dist/src/components/molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaSubscriptionCard.tsx +0 -34
  131. package/dist/src/components/molecules/SubscriptionCard/SubscriptionCard.styled.d.ts +0 -1
  132. package/dist/src/components/molecules/SubscriptionCard/index.d.ts +0 -4
  133. package/dist/src/components/molecules/SubscriptionCard/index.js +0 -2
  134. package/dist/src/components/molecules/SubscriptionCard/index.ts +0 -4
  135. package/dist/src/components/organisms/HeroContent/HeroContent.d.ts +0 -4
  136. package/dist/src/components/organisms/HeroContent/HeroContent.js +0 -7
  137. package/dist/src/components/organisms/HeroContent/HeroContent.styled.d.ts +0 -1
  138. package/dist/src/components/organisms/HeroContent/HeroContent.tsx +0 -23
  139. package/dist/src/components/organisms/HeroContent/HeroContentPropsProps.types.js +0 -1
  140. package/dist/src/components/organisms/HeroContent/index.d.ts +0 -2
  141. package/dist/src/components/organisms/HeroContent/index.js +0 -1
  142. package/dist/src/components/organisms/HeroContent/index.ts +0 -2
  143. package/dist/src/components/pages/PricingPage/PricingPage.d.ts +0 -3
  144. package/dist/src/components/pages/PricingPage/PricingPage.js +0 -10
  145. package/dist/src/components/pages/PricingPage/PricingPage.styled.d.ts +0 -1
  146. package/dist/src/components/pages/PricingPage/PricingPage.styled.js +0 -126
  147. package/dist/src/components/pages/PricingPage/PricingPage.styled.ts +0 -127
  148. package/dist/src/components/pages/PricingPage/PricingPage.tsx +0 -53
  149. package/dist/src/components/pages/PricingPage/PricingPageProps.d.ts +0 -28
  150. package/dist/src/components/pages/PricingPage/PricingPageProps.js +0 -1
  151. package/dist/src/components/pages/PricingPage/PricingPageProps.ts +0 -33
  152. package/dist/src/components/pages/PricingPage/index.d.ts +0 -2
  153. package/dist/src/components/pages/PricingPage/index.js +0 -2
  154. package/dist/src/components/pages/PricingPage/index.ts +0 -2
  155. package/dist/src/components/sections/CardBoxSection/CardBoxSection.d.ts +0 -4
  156. package/dist/src/components/sections/CardBoxSection/CardBoxSection.js +0 -9
  157. package/dist/src/components/sections/CardBoxSection/CardBoxSection.styled.d.ts +0 -2
  158. package/dist/src/components/sections/CardBoxSection/CardBoxSection.styled.js +0 -33
  159. package/dist/src/components/sections/CardBoxSection/CardBoxSection.styled.ts +0 -35
  160. package/dist/src/components/sections/CardBoxSection/CardBoxSection.tsx +0 -23
  161. package/dist/src/components/sections/CardBoxSection/CardBoxSectionProps.d.ts +0 -4
  162. package/dist/src/components/sections/CardBoxSection/CardBoxSectionProps.js +0 -1
  163. package/dist/src/components/sections/CardBoxSection/CardBoxSectionProps.ts +0 -5
  164. package/dist/src/components/sections/CardBoxSection/index.d.ts +0 -2
  165. package/dist/src/components/sections/CardBoxSection/index.js +0 -1
  166. package/dist/src/components/sections/CardBoxSection/index.ts +0 -2
  167. package/dist/src/components/sections/HeroSection/HeroSection.d.ts +0 -4
  168. package/dist/src/components/sections/HeroSection/HeroSection.js +0 -7
  169. package/dist/src/components/sections/HeroSection/HeroSection.tsx +0 -24
  170. package/dist/src/components/sections/HeroSection/HeroSectionProps.types.d.ts +0 -6
  171. package/dist/src/components/sections/HeroSection/HeroSectionProps.types.js +0 -1
  172. package/dist/src/components/sections/HeroSection/HeroSectionProps.types.ts +0 -7
  173. package/dist/src/components/sections/HeroSection/HeroSectionStyled.styled.d.ts +0 -1
  174. package/dist/src/components/sections/HeroSection/index.d.ts +0 -2
  175. package/dist/src/components/sections/HeroSection/index.js +0 -1
  176. package/dist/src/components/sections/HeroSection/index.ts +0 -2
  177. /package/dist/src/components/atoms/{BenefitCard/BenefitCardProps.types.js → BenefitRatafiaCard/BenefitRatafiaCardProps.types.js} +0 -0
  178. /package/dist/src/components/molecules/{SubscriptionCard/RatafiaSubscriptionCard → RatafiaSubscriptionCard}/RatafiaSubscriptionCardProps.types.js +0 -0
  179. /package/dist/src/components/{atoms/CardBox/CardBoxProps.types.js → organisms/AboutUsContent/AboutUsContentProps.types.js} +0 -0
  180. /package/dist/src/components/{molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingSubscriptionCardProps.types.js → sections/AboutUsSection/AboutUsSectionProps.types.js} +0 -0
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { type BenefitRatafiaCardProps } from './BenefitRatafiaCardProps.types';
3
+ export declare const BenefitRatafiaCard: React.FC<BenefitRatafiaCardProps>;
4
+ export default BenefitRatafiaCard;
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { BenefitRatafiaCardStyled } from './BenefitRatafiaCard.styled';
3
+ export const BenefitRatafiaCard = ({ title, image, description }) => {
4
+ return (_jsxs(BenefitRatafiaCardStyled, { className: 'benefit-ratafia-card', children: [image !== null && _jsx("div", { className: 'benefit-ratafia-card__icon', children: image }), _jsxs("div", { className: 'benefit-ratafia-card__content', children: [_jsx("p", { className: 'sans-serif --big --bold-weight benefit-ratafia-card__content__title', children: title }), _jsx("p", { className: 'sans-serif --medium benefit-ratafia-card__content__description', children: description })] })] }));
5
+ };
6
+ export default BenefitRatafiaCard;
@@ -1 +1 @@
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;
1
+ export declare const BenefitRatafiaCardStyled: 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 BenefitCardStyled = styled.div `
3
+ export const BenefitRatafiaCardStyled = styled.div `
4
4
  display: flex;
5
5
  flex-direction: column;
6
6
  align-items: flex-start;
@@ -12,10 +12,7 @@ export const BenefitCardStyled = styled.div `
12
12
 
13
13
  border-radius: var(--s-border-radius);
14
14
  background: rgba(255, 255, 255, 0.8);
15
-
16
- &.has-shadow {
17
- box-shadow: 0 2px 6px 0 rgba(2, 55, 74, 0.25);
18
- }
15
+ box-shadow: 0 2px 6px 0 rgba(2, 55, 74, 0.25);
19
16
 
20
17
  @media ${device['landscape-tablets']} {
21
18
  flex-direction: row;
@@ -24,7 +21,7 @@ export const BenefitCardStyled = styled.div `
24
21
  flex-direction: column;
25
22
  }
26
23
 
27
- .benefit-card {
24
+ .benefit-ratafia-card {
28
25
  &__icon {
29
26
  display: flex;
30
27
  align-items: flex-start;
@@ -33,10 +30,7 @@ export const BenefitCardStyled = styled.div `
33
30
 
34
31
  border-radius: var(--s-border-radius);
35
32
  background: rgba(255, 255, 255, 0.8);
36
-
37
- &.has-shadow {
38
- box-shadow: 0 2px 6px 0 rgba(2, 55, 74, 0.25);
39
- }
33
+ box-shadow: 0 2px 6px 0 rgba(2, 55, 74, 0.25);
40
34
 
41
35
  img {
42
36
  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 BenefitCardStyled = styled.div`
4
+ export const BenefitRatafiaCardStyled = styled.div`
5
5
  display: flex;
6
6
  flex-direction: column;
7
7
  align-items: flex-start;
@@ -13,10 +13,7 @@ export const BenefitCardStyled = styled.div`
13
13
 
14
14
  border-radius: var(--s-border-radius);
15
15
  background: rgba(255, 255, 255, 0.8);
16
-
17
- &.has-shadow {
18
- box-shadow: 0 2px 6px 0 rgba(2, 55, 74, 0.25);
19
- }
16
+ box-shadow: 0 2px 6px 0 rgba(2, 55, 74, 0.25);
20
17
 
21
18
  @media ${device['landscape-tablets']} {
22
19
  flex-direction: row;
@@ -25,7 +22,7 @@ export const BenefitCardStyled = styled.div`
25
22
  flex-direction: column;
26
23
  }
27
24
 
28
- .benefit-card {
25
+ .benefit-ratafia-card {
29
26
  &__icon {
30
27
  display: flex;
31
28
  align-items: flex-start;
@@ -34,10 +31,7 @@ export const BenefitCardStyled = styled.div`
34
31
 
35
32
  border-radius: var(--s-border-radius);
36
33
  background: rgba(255, 255, 255, 0.8);
37
-
38
- &.has-shadow {
39
- box-shadow: 0 2px 6px 0 rgba(2, 55, 74, 0.25);
40
- }
34
+ box-shadow: 0 2px 6px 0 rgba(2, 55, 74, 0.25);
41
35
 
42
36
  img {
43
37
  min-width: 32px;
@@ -0,0 +1,18 @@
1
+ import React from 'react'
2
+
3
+ import { type BenefitRatafiaCardProps } from './BenefitRatafiaCardProps.types'
4
+ import { BenefitRatafiaCardStyled } from './BenefitRatafiaCard.styled'
5
+
6
+ export const BenefitRatafiaCard: React.FC<BenefitRatafiaCardProps> = ({ title, image, description }) => {
7
+ return (
8
+ <BenefitRatafiaCardStyled className='benefit-ratafia-card'>
9
+ {image !== null && <div className='benefit-ratafia-card__icon'>{image}</div>}
10
+ <div className='benefit-ratafia-card__content'>
11
+ <p className='sans-serif --big --bold-weight benefit-ratafia-card__content__title'>{title}</p>
12
+ <p className='sans-serif --medium benefit-ratafia-card__content__description'>{description}</p>
13
+ </div>
14
+ </BenefitRatafiaCardStyled>
15
+ )
16
+ }
17
+
18
+ export default BenefitRatafiaCard
@@ -1,8 +1,6 @@
1
- export interface BenefitCardProps {
1
+ export interface BenefitRatafiaCardProps {
2
2
  id: string;
3
3
  title: string;
4
4
  image?: React.ReactNode;
5
5
  description: string;
6
- hasShadow?: boolean;
7
- hasBigFontSize?: boolean;
8
6
  }
@@ -0,0 +1,6 @@
1
+ export interface BenefitRatafiaCardProps {
2
+ id: string
3
+ title: string
4
+ image?: React.ReactNode
5
+ description: string
6
+ }
@@ -0,0 +1,2 @@
1
+ export { default as BenefitRatafiaCard } from './BenefitRatafiaCard';
2
+ export { type BenefitRatafiaCardProps } from './BenefitRatafiaCardProps.types';
@@ -0,0 +1 @@
1
+ export { default as BenefitRatafiaCard } from './BenefitRatafiaCard';
@@ -0,0 +1,2 @@
1
+ export { default as BenefitRatafiaCard } from './BenefitRatafiaCard'
2
+ export { type BenefitRatafiaCardProps } from './BenefitRatafiaCardProps.types'
@@ -1,4 +1,3 @@
1
- export type Colors = 'primary' | 'primary2' | 'primary3' | 'primary4' | 'secondary' | 'secondary2' | 'secondary3' | 'secondary4' | 'secondaryIcon' | 'secondaryIconBold' | 'secondaryIconDark' | 'tertiary' | 'tertiary2' | 'styleless' | 'transparent';
2
1
  export interface ButtonProps {
3
2
  label: string;
4
3
  dataQa: string;
@@ -9,7 +8,7 @@ export interface ButtonProps {
9
8
  noLinkNoFunc?: boolean;
10
9
  onClick?: (functionParameters?: any) => void;
11
10
  functionParameters?: any;
12
- color?: Colors;
11
+ color?: 'primary' | 'primary2' | 'primary3' | 'primary4' | 'secondary' | 'secondary2' | 'secondary3' | 'secondary4' | 'secondaryIcon' | 'secondaryIconBold' | 'secondaryIconDark' | 'tertiary' | 'tertiary2' | 'styleless' | 'transparent';
13
12
  error?: boolean;
14
13
  disabled?: boolean;
15
14
  fluid?: boolean;
@@ -1,2 +1 @@
1
- /* eslint-disable @typescript-eslint/no-explicit-any */
2
1
  export {};
@@ -1,21 +1,4 @@
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'
19
2
  export interface ButtonProps {
20
3
  label: string
21
4
  dataQa: string
@@ -26,7 +9,22 @@ export interface ButtonProps {
26
9
  noLinkNoFunc?: boolean
27
10
  onClick?: (functionParameters?: any) => void
28
11
  functionParameters?: any
29
- color?: Colors
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'
30
28
  error?: boolean
31
29
  disabled?: boolean
32
30
  fluid?: boolean
@@ -1,13 +1,12 @@
1
1
  export * from './ActionButtonHeaderRatafiaCard';
2
2
  export * from './AddButton';
3
3
  export * from './BaseBox';
4
- export * from './BenefitCard';
4
+ export * from './BenefitRatafiaCard';
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';
11
10
  export * from './CardPane';
12
11
  export * from './Checkbox';
13
12
  export * from './ContactCard';
@@ -1,13 +1,12 @@
1
1
  export * from './ActionButtonHeaderRatafiaCard';
2
2
  export * from './AddButton';
3
3
  export * from './BaseBox';
4
- export * from './BenefitCard';
4
+ export * from './BenefitRatafiaCard';
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';
11
10
  export * from './CardPane';
12
11
  export * from './Checkbox';
13
12
  export * from './ContactCard';
@@ -1,13 +1,12 @@
1
1
  export * from './ActionButtonHeaderRatafiaCard'
2
2
  export * from './AddButton'
3
3
  export * from './BaseBox'
4
- export * from './BenefitCard'
4
+ export * from './BenefitRatafiaCard'
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'
11
10
  export * from './CardPane'
12
11
  export * from './Checkbox'
13
12
  export * from './ContactCard'
@@ -1,9 +1,9 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { BenefitCard } from '../../atoms';
2
+ import { BenefitRatafiaCard } 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(BenefitCard, { ...benefit }, benefit.id))) }));
7
+ return (_jsx(BenefitRatafiaCardListStyled, { className: 'benefit-ratafia-card-list', children: benefits.map((benefit) => (_jsx(BenefitRatafiaCard, { ...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 { BenefitCard } from '../../atoms'
3
+ import { BenefitRatafiaCard } 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
- <BenefitCard key={benefit.id} {...benefit} />
13
+ <BenefitRatafiaCard key={benefit.id} {...benefit} />
14
14
  ))}
15
15
  </BenefitRatafiaCardListStyled>
16
16
  )
@@ -1,4 +1,4 @@
1
- import { type BenefitCardProps } from '../../atoms';
1
+ import { type BenefitRatafiaCardProps } from '../../atoms';
2
2
  export interface BenefitRatafiaCardListProps {
3
- benefits: BenefitCardProps[];
3
+ benefits: BenefitRatafiaCardProps[];
4
4
  }
@@ -1,5 +1,5 @@
1
- import { type BenefitCardProps } from '../../atoms'
1
+ import { type BenefitRatafiaCardProps } from '../../atoms'
2
2
 
3
3
  export interface BenefitRatafiaCardListProps {
4
- benefits: BenefitCardProps[]
4
+ benefits: BenefitRatafiaCardProps[]
5
5
  }
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { FC } from 'react';
2
2
  import { RatafiaSubscriptionCardProps } from './RatafiaSubscriptionCardProps.types';
3
- declare const RatafiaSubscriptionCard: React.FC<RatafiaSubscriptionCardProps>;
3
+ declare const RatafiaSubscriptionCard: FC<RatafiaSubscriptionCardProps>;
4
4
  export default RatafiaSubscriptionCard;
@@ -0,0 +1,12 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Button, IconSvgURLWithThemeColor, RichTextStrapi } from '../../atoms';
3
+ import { RatafiaSubscriptionCardStyled } from './RatafiaSubscriptionCard.styled';
4
+ import { stringSlugify } from '../../../utils/stringSlugify';
5
+ const RatafiaSubscriptionCard = ({ cardStyle = 'primary', iconTitle, title, priceText, mainFeatures, AIFeatures, buttonText, dataQa, handleClick }) => {
6
+ if (!title)
7
+ return null;
8
+ const buttonStyle = cardStyle === 'Secondary' ? 'primary3' : 'primary';
9
+ const renderFeatures = (features, className) => features.map((feature) => (_jsxs("div", { className: `ratafia-card__feature ${className ?? ''}`, children: [feature.image?.url && _jsx(IconSvgURLWithThemeColor, { url: feature.image.url, height: '16', width: '16' }), _jsx(RichTextStrapi, { html: feature.title })] }, feature.title)));
10
+ return (_jsxs(RatafiaSubscriptionCardStyled, { className: `ratafia-card ${cardStyle ? stringSlugify(cardStyle) : 'primary'}`, children: [_jsxs("div", { className: 'ratafia-card__header', children: [title && (_jsxs("div", { className: 'ratafia-card__title', children: [iconTitle?.url && _jsx(IconSvgURLWithThemeColor, { url: iconTitle.url, height: '26', width: '26' }), _jsx(RichTextStrapi, { html: title })] })), priceText && _jsx("div", { className: 'ratafia-card__price-text', children: priceText })] }), _jsx("hr", {}), _jsxs("div", { className: 'ratafia-card__body', children: [mainFeatures && renderFeatures(mainFeatures, 'main-feature'), AIFeatures && renderFeatures(AIFeatures, 'ratafia-feature')] }), buttonText && (_jsx("div", { className: 'ratafia-card__footer', children: _jsx(Button, { dataQa: `${dataQa ?? 'ratafia-card-button'}`, givenClass: 'ratafia-card__button', color: buttonStyle, label: buttonText, noLink: true, onClick: handleClick }) }))] }));
11
+ };
12
+ export default RatafiaSubscriptionCard;
@@ -0,0 +1 @@
1
+ export declare const RatafiaSubscriptionCardStyled: 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 SubscriptionCardStyled = styled.div `
3
+ export const RatafiaSubscriptionCardStyled = styled.div `
4
4
  display: flex;
5
5
  flex-flow: column nowrap;
6
6
  flex: 1;
7
7
  gap: 0.5rem;
8
- min-width: 379px;
8
+ min-width: 350px;
9
9
  padding: 1rem;
10
10
  border-radius: var(--s-border-radius);
11
11
 
@@ -26,7 +26,7 @@ export const SubscriptionCardStyled = styled.div `
26
26
  background-color: var(--primary-main-light-1);
27
27
  }
28
28
 
29
- .subscription-card__feature {
29
+ .ratafia-card__feature {
30
30
  &.ratafia-feature {
31
31
  background-color: var(--primary-main-light-6);
32
32
  }
@@ -40,18 +40,44 @@ export const SubscriptionCardStyled = styled.div `
40
40
  background-color: var(--secondary-main-dark-2);
41
41
  }
42
42
 
43
- .subscription-card__feature {
43
+ .ratafia-card__feature {
44
44
  &.ratafia-feature {
45
45
  background-color: var(--secondary-main-light-3);
46
46
  }
47
47
  }
48
48
 
49
- .subscription-card__button {
49
+ .ratafia-card__button {
50
50
  color: var(--others-black);
51
51
  }
52
52
  }
53
53
 
54
- .subscription-card {
54
+ .ratafia-card {
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
+
55
81
  &__body {
56
82
  display: flex;
57
83
  flex-flow: column;
@@ -67,18 +93,10 @@ export const SubscriptionCardStyled = styled.div `
67
93
  font-size: 0.875rem;
68
94
  text-align: left;
69
95
  padding: 0.25rem 0;
70
- border-radius: 4px;
71
-
72
- &.has-padding {
73
- padding-left: 0.5rem;
74
- }
75
96
 
76
97
  .icon-svg-with-theme-color {
77
98
  flex-basis: 1rem;
78
99
  margin-top: 0.2rem;
79
- display: inline-block;
80
- object-fit: contain;
81
- flex-shrink: 0;
82
100
  }
83
101
 
84
102
  &.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 SubscriptionCardStyled = styled.div`
4
+ export const RatafiaSubscriptionCardStyled = styled.div`
5
5
  display: flex;
6
6
  flex-flow: column nowrap;
7
7
  flex: 1;
8
8
  gap: 0.5rem;
9
- min-width: 379px;
9
+ min-width: 350px;
10
10
  padding: 1rem;
11
11
  border-radius: var(--s-border-radius);
12
12
 
@@ -27,7 +27,7 @@ export const SubscriptionCardStyled = styled.div`
27
27
  background-color: var(--primary-main-light-1);
28
28
  }
29
29
 
30
- .subscription-card__feature {
30
+ .ratafia-card__feature {
31
31
  &.ratafia-feature {
32
32
  background-color: var(--primary-main-light-6);
33
33
  }
@@ -41,18 +41,44 @@ export const SubscriptionCardStyled = styled.div`
41
41
  background-color: var(--secondary-main-dark-2);
42
42
  }
43
43
 
44
- .subscription-card__feature {
44
+ .ratafia-card__feature {
45
45
  &.ratafia-feature {
46
46
  background-color: var(--secondary-main-light-3);
47
47
  }
48
48
  }
49
49
 
50
- .subscription-card__button {
50
+ .ratafia-card__button {
51
51
  color: var(--others-black);
52
52
  }
53
53
  }
54
54
 
55
- .subscription-card {
55
+ .ratafia-card {
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
+
56
82
  &__body {
57
83
  display: flex;
58
84
  flex-flow: column;
@@ -68,18 +94,10 @@ export const SubscriptionCardStyled = styled.div`
68
94
  font-size: 0.875rem;
69
95
  text-align: left;
70
96
  padding: 0.25rem 0;
71
- border-radius: 4px;
72
-
73
- &.has-padding {
74
- padding-left: 0.5rem;
75
- }
76
97
 
77
98
  .icon-svg-with-theme-color {
78
99
  flex-basis: 1rem;
79
100
  margin-top: 0.2rem;
80
- display: inline-block;
81
- object-fit: contain;
82
- flex-shrink: 0;
83
101
  }
84
102
 
85
103
  &.ratafia-feature {
@@ -0,0 +1,61 @@
1
+ import React, { FC, ReactNode } from 'react'
2
+
3
+ import { BenefitProps, RatafiaSubscriptionCardProps } from './RatafiaSubscriptionCardProps.types'
4
+ import { Button, IconSvgURLWithThemeColor, RichTextStrapi } from '../../atoms'
5
+ import { RatafiaSubscriptionCardStyled } from './RatafiaSubscriptionCard.styled'
6
+ import { stringSlugify } from '../../../utils/stringSlugify'
7
+
8
+ const RatafiaSubscriptionCard: FC<RatafiaSubscriptionCardProps> = ({
9
+ cardStyle = 'primary',
10
+ iconTitle,
11
+ title,
12
+ priceText,
13
+ mainFeatures,
14
+ AIFeatures,
15
+ buttonText,
16
+ dataQa,
17
+ handleClick
18
+ }) => {
19
+ if (!title) return null
20
+ const buttonStyle = cardStyle === 'Secondary' ? 'primary3' : 'primary'
21
+ const renderFeatures = (features: BenefitProps[], className?: string): ReactNode =>
22
+ features.map((feature) => (
23
+ <div key={feature.title} className={`ratafia-card__feature ${className ?? ''}`}>
24
+ {feature.image?.url && <IconSvgURLWithThemeColor url={feature.image.url} height='16' width='16' />}
25
+ <RichTextStrapi html={feature.title} />
26
+ </div>
27
+ ))
28
+
29
+ return (
30
+ <RatafiaSubscriptionCardStyled className={`ratafia-card ${cardStyle ? stringSlugify(cardStyle) : 'primary'}`}>
31
+ <div className='ratafia-card__header'>
32
+ {title && (
33
+ <div className='ratafia-card__title'>
34
+ {iconTitle?.url && <IconSvgURLWithThemeColor url={iconTitle.url} height='26' width='26' />}
35
+ <RichTextStrapi html={title} />
36
+ </div>
37
+ )}
38
+ {priceText && <div className='ratafia-card__price-text'>{priceText}</div>}
39
+ </div>
40
+ <hr />
41
+ <div className='ratafia-card__body'>
42
+ {mainFeatures && renderFeatures(mainFeatures as unknown as BenefitProps[], 'main-feature')}
43
+ {AIFeatures && renderFeatures(AIFeatures as unknown as BenefitProps[], 'ratafia-feature')}
44
+ </div>
45
+ {buttonText && (
46
+ <div className='ratafia-card__footer'>
47
+ <Button
48
+ dataQa={`${dataQa ?? 'ratafia-card-button'}`}
49
+ givenClass='ratafia-card__button'
50
+ color={buttonStyle}
51
+ label={buttonText}
52
+ noLink
53
+ onClick={handleClick}
54
+ />
55
+ </div>
56
+ )}
57
+ </RatafiaSubscriptionCardStyled>
58
+ )
59
+ }
60
+
61
+ export default RatafiaSubscriptionCard
@@ -4,7 +4,8 @@ export interface RatafiaSubscriptionCardProps {
4
4
  iconTitle?: IconTitleProps;
5
5
  title?: string;
6
6
  priceText?: string;
7
- features?: FeatureProps[];
7
+ mainFeatures?: BenefitProps[];
8
+ AIFeatures?: BenefitProps[];
8
9
  buttonText?: string;
9
10
  dataQa?: string;
10
11
  handleClick?: () => void;
@@ -13,10 +14,9 @@ interface IconTitleProps {
13
14
  name?: string;
14
15
  url: string;
15
16
  }
16
- export interface FeatureProps {
17
+ export interface BenefitProps {
17
18
  title?: string;
18
19
  description: string;
19
- isHighlighted: boolean;
20
20
  image?: {
21
21
  name: string;
22
22
  url: string;
@@ -4,7 +4,8 @@ export interface RatafiaSubscriptionCardProps {
4
4
  iconTitle?: IconTitleProps
5
5
  title?: string
6
6
  priceText?: string
7
- features?: FeatureProps[]
7
+ mainFeatures?: BenefitProps[]
8
+ AIFeatures?: BenefitProps[]
8
9
  buttonText?: string
9
10
  dataQa?: string
10
11
  handleClick?: () => void
@@ -15,10 +16,9 @@ interface IconTitleProps {
15
16
  url: string
16
17
  }
17
18
 
18
- export interface FeatureProps {
19
+ export interface BenefitProps {
19
20
  title?: string
20
21
  description: string
21
- isHighlighted: boolean
22
22
  image?: {
23
23
  name: string
24
24
  url: string
@@ -0,0 +1,2 @@
1
+ export { default as RatafiaSubscriptionCard } from './RatafiaSubscriptionCard';
2
+ export { type RatafiaSubscriptionCardProps } from './RatafiaSubscriptionCardProps.types';
@@ -0,0 +1 @@
1
+ export { default as RatafiaSubscriptionCard } from './RatafiaSubscriptionCard';
@@ -0,0 +1,2 @@
1
+ export { default as RatafiaSubscriptionCard } from './RatafiaSubscriptionCard'
2
+ export { type RatafiaSubscriptionCardProps } from './RatafiaSubscriptionCardProps.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 './SubscriptionCard';
36
+ export * from './RatafiaSubscriptionCard';
37
37
  export * from './Snackbar';
38
38
  export * from './StepGetForm';
39
39
  export * from './StepRatafiaCardList';