@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.
Files changed (180) 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 +10 -0
  22. package/dist/src/components/atoms/CardBox/CardBoxProps.types.ts +10 -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/SubscriptionCard/CardBody.d.ts +6 -0
  34. package/dist/src/components/molecules/SubscriptionCard/CardBody.js +6 -0
  35. package/dist/src/components/molecules/SubscriptionCard/CardBody.tsx +29 -0
  36. package/dist/src/components/molecules/SubscriptionCard/CardFooter.d.ts +8 -0
  37. package/dist/src/components/molecules/SubscriptionCard/CardFooter.js +3 -0
  38. package/dist/src/components/molecules/SubscriptionCard/CardFooter.tsx +23 -0
  39. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingCardHeader.d.ts +6 -0
  40. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingCardHeader.js +3 -0
  41. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingCardHeader.styled.d.ts +1 -0
  42. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingCardHeader.styled.js +30 -0
  43. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingCardHeader.styled.ts +31 -0
  44. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingCardHeader.tsx +14 -0
  45. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingSubscriptionCard.d.ts +4 -0
  46. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingSubscriptionCard.js +15 -0
  47. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingSubscriptionCard.tsx +38 -0
  48. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingSubscriptionCardProps.types.d.ts +20 -0
  49. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingSubscriptionCardProps.types.ts +22 -0
  50. package/dist/src/components/{atoms/BenefitRatafiaCard/BenefitRatafiaCard.styled.d.ts → molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingText.styled.d.ts} +1 -1
  51. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingText.styled.js +10 -0
  52. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingText.styled.ts +11 -0
  53. package/dist/src/components/molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaCardHeader.d.ts +8 -0
  54. package/dist/src/components/molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaCardHeader.js +4 -0
  55. package/dist/src/components/molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaCardHeader.styled.d.ts +1 -0
  56. package/dist/src/components/molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaCardHeader.styled.js +29 -0
  57. package/dist/src/components/molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaCardHeader.styled.ts +30 -0
  58. package/dist/src/components/molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaCardHeader.tsx +20 -0
  59. package/dist/src/components/molecules/{RatafiaSubscriptionCard → SubscriptionCard/RatafiaSubscriptionCard}/RatafiaSubscriptionCard.d.ts +2 -2
  60. package/dist/src/components/molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaSubscriptionCard.js +14 -0
  61. package/dist/src/components/molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaSubscriptionCard.tsx +34 -0
  62. package/dist/src/components/molecules/{RatafiaSubscriptionCard → SubscriptionCard/RatafiaSubscriptionCard}/RatafiaSubscriptionCardProps.types.d.ts +3 -3
  63. package/dist/src/components/molecules/{RatafiaSubscriptionCard → SubscriptionCard/RatafiaSubscriptionCard}/RatafiaSubscriptionCardProps.types.ts +3 -3
  64. package/dist/src/components/molecules/SubscriptionCard/SubscriptionCard.styled.d.ts +1 -0
  65. package/dist/src/components/molecules/{RatafiaSubscriptionCard/RatafiaSubscriptionCard.styled.js → SubscriptionCard/SubscriptionCard.styled.js} +14 -32
  66. package/dist/src/components/molecules/{RatafiaSubscriptionCard/RatafiaSubscriptionCard.styled.ts → SubscriptionCard/SubscriptionCard.styled.ts} +14 -32
  67. package/dist/src/components/molecules/SubscriptionCard/index.d.ts +4 -0
  68. package/dist/src/components/molecules/SubscriptionCard/index.js +2 -0
  69. package/dist/src/components/molecules/SubscriptionCard/index.ts +4 -0
  70. package/dist/src/components/molecules/index.d.ts +1 -1
  71. package/dist/src/components/molecules/index.js +1 -1
  72. package/dist/src/components/molecules/index.ts +1 -1
  73. package/dist/src/components/organisms/GuidelinesContent/GuidelinesContent.js +3 -3
  74. package/dist/src/components/organisms/GuidelinesContent/GuidelinesContent.styled.js +35 -83
  75. package/dist/src/components/organisms/GuidelinesContent/GuidelinesContent.styled.ts +35 -83
  76. package/dist/src/components/organisms/GuidelinesContent/GuidelinesContent.tsx +5 -28
  77. package/dist/src/components/organisms/GuidelinesContent/GuidelinesContentProps.types.d.ts +1 -7
  78. package/dist/src/components/organisms/GuidelinesContent/GuidelinesContentProps.types.ts +1 -8
  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 +2 -2
  95. package/dist/src/components/pages/AboutUsPage/AboutUsPage.tsx +2 -2
  96. package/dist/src/components/pages/AboutUsPage/AboutUsPageProps.d.ts +2 -2
  97. package/dist/src/components/pages/AboutUsPage/AboutUsPageProps.ts +2 -2
  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 +126 -0
  102. package/dist/src/components/pages/PricingPage/PricingPage.styled.ts +127 -0
  103. package/dist/src/components/pages/PricingPage/PricingPage.tsx +53 -0
  104. package/dist/src/components/pages/PricingPage/PricingPageProps.d.ts +28 -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 +2 -0
  108. package/dist/src/components/pages/PricingPage/index.js +2 -0
  109. package/dist/src/components/pages/PricingPage/index.ts +2 -0
  110. package/dist/src/components/pages/index.d.ts +1 -0
  111. package/dist/src/components/pages/index.js +1 -0
  112. package/dist/src/components/pages/index.ts +1 -0
  113. package/dist/src/components/sections/BenefitsRatafiaSection/BenefitsRatafiaSectionProps.types.d.ts +2 -2
  114. package/dist/src/components/sections/BenefitsRatafiaSection/BenefitsRatafiaSectionProps.types.ts +2 -2
  115. package/dist/src/components/sections/CardBoxSection/CardBoxSection.d.ts +4 -0
  116. package/dist/src/components/sections/CardBoxSection/CardBoxSection.js +9 -0
  117. package/dist/src/components/sections/CardBoxSection/CardBoxSection.styled.d.ts +2 -0
  118. package/dist/src/components/sections/CardBoxSection/CardBoxSection.styled.js +33 -0
  119. package/dist/src/components/sections/CardBoxSection/CardBoxSection.styled.ts +35 -0
  120. package/dist/src/components/sections/CardBoxSection/CardBoxSection.tsx +23 -0
  121. package/dist/src/components/sections/CardBoxSection/CardBoxSectionProps.d.ts +4 -0
  122. package/dist/src/components/sections/CardBoxSection/CardBoxSectionProps.js +1 -0
  123. package/dist/src/components/sections/CardBoxSection/CardBoxSectionProps.ts +5 -0
  124. package/dist/src/components/sections/CardBoxSection/index.d.ts +2 -0
  125. package/dist/src/components/sections/CardBoxSection/index.js +1 -0
  126. package/dist/src/components/sections/CardBoxSection/index.ts +2 -0
  127. package/dist/src/components/sections/FaqSection/FaqSection.js +1 -1
  128. package/dist/src/components/sections/FaqSection/FaqSection.tsx +1 -3
  129. package/dist/src/components/sections/GuidelinesSection/GuidelinesSection.js +1 -1
  130. package/dist/src/components/sections/GuidelinesSection/GuidelinesSection.tsx +0 -5
  131. package/dist/src/components/sections/HeroSection/HeroSection.d.ts +4 -0
  132. package/dist/src/components/sections/HeroSection/HeroSection.js +7 -0
  133. package/dist/src/components/sections/HeroSection/HeroSection.tsx +24 -0
  134. package/dist/src/components/sections/HeroSection/HeroSectionProps.types.d.ts +6 -0
  135. package/dist/src/components/sections/HeroSection/HeroSectionProps.types.js +1 -0
  136. package/dist/src/components/sections/HeroSection/HeroSectionProps.types.ts +7 -0
  137. package/dist/src/components/sections/HeroSection/HeroSectionStyled.styled.d.ts +1 -0
  138. package/dist/src/components/sections/{AboutUsSection/AboutUsSection.styled.js → HeroSection/HeroSectionStyled.styled.js} +2 -2
  139. package/dist/src/components/sections/{AboutUsSection/AboutUsSection.styled.ts → HeroSection/HeroSectionStyled.styled.ts} +2 -2
  140. package/dist/src/components/sections/HeroSection/index.d.ts +2 -0
  141. package/dist/src/components/sections/HeroSection/index.js +1 -0
  142. package/dist/src/components/sections/HeroSection/index.ts +2 -0
  143. package/dist/src/components/sections/index.d.ts +2 -1
  144. package/dist/src/components/sections/index.js +2 -1
  145. package/dist/src/components/sections/index.ts +2 -1
  146. package/dist/tsconfig.build.tsbuildinfo +1 -1
  147. package/package.json +8 -5
  148. package/dist/src/components/atoms/BenefitRatafiaCard/BenefitRatafiaCard.d.ts +0 -4
  149. package/dist/src/components/atoms/BenefitRatafiaCard/BenefitRatafiaCard.js +0 -6
  150. package/dist/src/components/atoms/BenefitRatafiaCard/BenefitRatafiaCard.tsx +0 -18
  151. package/dist/src/components/atoms/BenefitRatafiaCard/BenefitRatafiaCardProps.types.ts +0 -6
  152. package/dist/src/components/atoms/BenefitRatafiaCard/index.d.ts +0 -2
  153. package/dist/src/components/atoms/BenefitRatafiaCard/index.js +0 -1
  154. package/dist/src/components/atoms/BenefitRatafiaCard/index.ts +0 -2
  155. package/dist/src/components/molecules/RatafiaSubscriptionCard/RatafiaSubscriptionCard.js +0 -12
  156. package/dist/src/components/molecules/RatafiaSubscriptionCard/RatafiaSubscriptionCard.styled.d.ts +0 -1
  157. package/dist/src/components/molecules/RatafiaSubscriptionCard/RatafiaSubscriptionCard.tsx +0 -61
  158. package/dist/src/components/molecules/RatafiaSubscriptionCard/index.d.ts +0 -2
  159. package/dist/src/components/molecules/RatafiaSubscriptionCard/index.js +0 -1
  160. package/dist/src/components/molecules/RatafiaSubscriptionCard/index.ts +0 -2
  161. package/dist/src/components/organisms/AboutUsContent/AboutUsContent.d.ts +0 -4
  162. package/dist/src/components/organisms/AboutUsContent/AboutUsContent.js +0 -7
  163. package/dist/src/components/organisms/AboutUsContent/AboutUsContent.styled.d.ts +0 -1
  164. package/dist/src/components/organisms/AboutUsContent/AboutUsContent.tsx +0 -23
  165. package/dist/src/components/organisms/AboutUsContent/index.d.ts +0 -2
  166. package/dist/src/components/organisms/AboutUsContent/index.js +0 -1
  167. package/dist/src/components/organisms/AboutUsContent/index.ts +0 -2
  168. package/dist/src/components/sections/AboutUsSection/AboutUsSection.d.ts +0 -4
  169. package/dist/src/components/sections/AboutUsSection/AboutUsSection.js +0 -7
  170. package/dist/src/components/sections/AboutUsSection/AboutUsSection.styled.d.ts +0 -1
  171. package/dist/src/components/sections/AboutUsSection/AboutUsSection.tsx +0 -24
  172. package/dist/src/components/sections/AboutUsSection/AboutUsSectionProps.types.d.ts +0 -6
  173. package/dist/src/components/sections/AboutUsSection/AboutUsSectionProps.types.ts +0 -7
  174. package/dist/src/components/sections/AboutUsSection/index.d.ts +0 -2
  175. package/dist/src/components/sections/AboutUsSection/index.js +0 -1
  176. package/dist/src/components/sections/AboutUsSection/index.ts +0 -2
  177. /package/dist/src/components/atoms/{BenefitRatafiaCard/BenefitRatafiaCardProps.types.js → BenefitCard/BenefitCardProps.types.js} +0 -0
  178. /package/dist/src/components/{molecules/RatafiaSubscriptionCard/RatafiaSubscriptionCardProps.types.js → atoms/CardBox/CardBoxProps.types.js} +0 -0
  179. /package/dist/src/components/{organisms/AboutUsContent/AboutUsContentProps.types.js → molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingSubscriptionCardProps.types.js} +0 -0
  180. /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 BenefitRatafiaCardStyled: 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 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
+ `
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ export declare const RatafiaCardHeader: React.FC<{
3
+ title: string;
4
+ iconTitle?: {
5
+ url: string;
6
+ };
7
+ priceText?: string;
8
+ }>;
@@ -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
+ `
@@ -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 { FC } from 'react';
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
- mainFeatures?: BenefitProps[];
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 BenefitProps {
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
- mainFeatures?: BenefitProps[]
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 BenefitProps {
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 RatafiaSubscriptionCardStyled = styled.div `
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: 350px;
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
- .ratafia-card__feature {
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
- .ratafia-card__feature {
43
+ .subscription-card__feature {
44
44
  &.ratafia-feature {
45
45
  background-color: var(--secondary-main-light-3);
46
46
  }
47
47
  }
48
48
 
49
- .ratafia-card__button {
49
+ .subscription-card__button {
50
50
  color: var(--others-black);
51
51
  }
52
52
  }
53
53
 
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
-
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 RatafiaSubscriptionCardStyled = styled.div`
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: 350px;
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
- .ratafia-card__feature {
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
- .ratafia-card__feature {
44
+ .subscription-card__feature {
45
45
  &.ratafia-feature {
46
46
  background-color: var(--secondary-main-light-3);
47
47
  }
48
48
  }
49
49
 
50
- .ratafia-card__button {
50
+ .subscription-card__button {
51
51
  color: var(--others-black);
52
52
  }
53
53
  }
54
54
 
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
-
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,2 @@
1
+ export { default as RatafiaSubscriptionCard } from './RatafiaSubscriptionCard/RatafiaSubscriptionCard';
2
+ export { default as PlanBoxPricingSubscriptionCard } from './PlanBoxPricingSubscriptionCard/PlanBoxPricingSubscriptionCard';
@@ -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 './RatafiaSubscriptionCard';
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 './RatafiaSubscriptionCard';
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 './RatafiaSubscriptionCard'
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 { Button, RichTextInner, RichTextStrapi } from '../../atoms';
2
+ import { RichTextInner, RichTextStrapi } from '../../atoms';
3
3
  import { GuideslinesContentStyled } from './GuidelinesContent.styled';
4
- const GuidelinesContent = ({ title, detail, children, tryNowText, tryNowButtonText, tryNowButtonLink, tryNowButtonDataQa, tryNowImage }) => {
5
- return (_jsxs(GuideslinesContentStyled, { children: [_jsx("div", { className: 'guidelines-section-main wrapper', children: _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 })] }) }), 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("h3", { className: 'guidelines-section-detail__item__title', children: item.title }), _jsx(RichTextStrapi, { html: item.body?.data?.childMarkdownRemark?.html })] }, index))) })), _jsx("div", { className: 'guidelines-section-trial wrapper', children: _jsxs("div", { className: 'guidelines-section-trial__item', children: [_jsx("div", { className: 'guidelines-section__image is-mobile', children: tryNowImage }), _jsxs("div", { className: 'guidelines-section-trial__texts', children: [_jsx(RichTextInner, { customClass: 'guidelines-section__texts__body', children: tryNowText }), _jsx(Button, { givenClass: 'mid-banner-ratafia-content__cta', dataQa: tryNowButtonDataQa, link: tryNowButtonLink, color: 'primary', label: tryNowButtonText })] }), _jsx("div", { className: 'guidelines-section__image big-devices', children: tryNowImage })] }) })] }));
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;