@npm_leadtech/legal-lib-components 7.5.1 → 7.5.2

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 (189) hide show
  1. package/dist/css/styles.css +0 -38
  2. package/dist/src/components/atoms/BenefitRatafiaCard/BenefitRatafiaCard.d.ts +4 -0
  3. package/dist/src/components/atoms/BenefitRatafiaCard/BenefitRatafiaCard.js +6 -0
  4. package/dist/src/components/{molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingText.styled.d.ts → atoms/BenefitRatafiaCard/BenefitRatafiaCard.styled.d.ts} +1 -1
  5. package/dist/src/components/atoms/{BenefitCard/BenefitCardStyled.styled.js → BenefitRatafiaCard/BenefitRatafiaCard.styled.js} +4 -10
  6. package/dist/src/components/atoms/{BenefitCard/BenefitCardStyled.styled.ts → BenefitRatafiaCard/BenefitRatafiaCard.styled.ts} +4 -10
  7. package/dist/src/components/atoms/BenefitRatafiaCard/BenefitRatafiaCard.tsx +18 -0
  8. package/dist/src/components/atoms/{BenefitCard/BenefitCardProps.types.d.ts → BenefitRatafiaCard/BenefitRatafiaCardProps.types.d.ts} +1 -3
  9. package/dist/src/components/atoms/BenefitRatafiaCard/BenefitRatafiaCardProps.types.ts +6 -0
  10. package/dist/src/components/atoms/BenefitRatafiaCard/index.d.ts +2 -0
  11. package/dist/src/components/atoms/BenefitRatafiaCard/index.js +1 -0
  12. package/dist/src/components/atoms/BenefitRatafiaCard/index.ts +2 -0
  13. package/dist/src/components/atoms/Button/ButtonProps.types.d.ts +1 -2
  14. package/dist/src/components/atoms/Button/ButtonProps.types.js +0 -1
  15. package/dist/src/components/atoms/Button/ButtonProps.types.ts +16 -18
  16. package/dist/src/components/atoms/CardPane/CardPaneInfo.js +2 -2
  17. package/dist/src/components/atoms/CardPane/CardPaneInfo.tsx +2 -2
  18. package/dist/src/components/atoms/CardPane/CardPaneProps.types.d.ts +1 -0
  19. package/dist/src/components/atoms/CardPane/CardPaneProps.types.ts +1 -0
  20. package/dist/src/components/atoms/index.d.ts +1 -2
  21. package/dist/src/components/atoms/index.js +1 -2
  22. package/dist/src/components/atoms/index.ts +1 -2
  23. package/dist/src/components/molecules/BenefitRatafiaCardList/BenefitRatafiaCardList.js +2 -2
  24. package/dist/src/components/molecules/BenefitRatafiaCardList/BenefitRatafiaCardList.tsx +2 -2
  25. package/dist/src/components/molecules/BenefitRatafiaCardList/BenefitRatafiaCardListProps.types.d.ts +2 -2
  26. package/dist/src/components/molecules/BenefitRatafiaCardList/BenefitRatafiaCardListProps.types.ts +2 -2
  27. package/dist/src/components/molecules/{SubscriptionCard/RatafiaSubscriptionCard → RatafiaSubscriptionCard}/RatafiaSubscriptionCard.d.ts +2 -2
  28. package/dist/src/components/molecules/RatafiaSubscriptionCard/RatafiaSubscriptionCard.js +12 -0
  29. package/dist/src/components/molecules/RatafiaSubscriptionCard/RatafiaSubscriptionCard.styled.d.ts +1 -0
  30. package/dist/src/components/molecules/{SubscriptionCard/SubscriptionCard.styled.js → RatafiaSubscriptionCard/RatafiaSubscriptionCard.styled.js} +32 -14
  31. package/dist/src/components/molecules/{SubscriptionCard/SubscriptionCard.styled.ts → RatafiaSubscriptionCard/RatafiaSubscriptionCard.styled.ts} +32 -14
  32. package/dist/src/components/molecules/RatafiaSubscriptionCard/RatafiaSubscriptionCard.tsx +61 -0
  33. package/dist/src/components/molecules/{SubscriptionCard/RatafiaSubscriptionCard → RatafiaSubscriptionCard}/RatafiaSubscriptionCardProps.types.d.ts +3 -3
  34. package/dist/src/components/molecules/{SubscriptionCard/RatafiaSubscriptionCard → RatafiaSubscriptionCard}/RatafiaSubscriptionCardProps.types.ts +3 -3
  35. package/dist/src/components/molecules/RatafiaSubscriptionCard/index.d.ts +2 -0
  36. package/dist/src/components/molecules/RatafiaSubscriptionCard/index.js +1 -0
  37. package/dist/src/components/molecules/RatafiaSubscriptionCard/index.ts +2 -0
  38. package/dist/src/components/molecules/TextInput/Input.d.ts +0 -2
  39. package/dist/src/components/molecules/TextInput/Input.js +3 -23
  40. package/dist/src/components/molecules/TextInput/Input.tsx +2 -41
  41. package/dist/src/components/molecules/TextInput/TextInput.js +9 -5
  42. package/dist/src/components/molecules/TextInput/TextInput.scss +0 -44
  43. package/dist/src/components/molecules/TextInput/TextInput.tsx +5 -7
  44. package/dist/src/components/molecules/TextInput/TextInputProps.types.d.ts +0 -2
  45. package/dist/src/components/molecules/TextInput/TextInputProps.types.ts +0 -2
  46. package/dist/src/components/molecules/TextInput/stories/TextInput.stories.tsx +0 -33
  47. package/dist/src/components/molecules/index.d.ts +1 -1
  48. package/dist/src/components/molecules/index.js +1 -1
  49. package/dist/src/components/molecules/index.ts +1 -1
  50. package/dist/src/components/organisms/AboutUsContent/AboutUsContent.d.ts +4 -0
  51. package/dist/src/components/organisms/AboutUsContent/AboutUsContent.js +7 -0
  52. package/dist/src/components/organisms/AboutUsContent/AboutUsContent.styled.d.ts +1 -0
  53. package/dist/src/components/organisms/{HeroContent/HeroContent.styled.js → AboutUsContent/AboutUsContent.styled.js} +3 -3
  54. package/dist/src/components/organisms/{HeroContent/HeroContent.styled.ts → AboutUsContent/AboutUsContent.styled.ts} +3 -3
  55. package/dist/src/components/organisms/AboutUsContent/AboutUsContent.tsx +23 -0
  56. package/dist/src/components/organisms/{HeroContent/HeroContentPropsProps.types.d.ts → AboutUsContent/AboutUsContentProps.types.d.ts} +1 -1
  57. package/dist/src/components/organisms/{HeroContent/HeroContentPropsProps.types.ts → AboutUsContent/AboutUsContentProps.types.ts} +1 -1
  58. package/dist/src/components/organisms/AboutUsContent/index.d.ts +2 -0
  59. package/dist/src/components/organisms/AboutUsContent/index.js +1 -0
  60. package/dist/src/components/organisms/AboutUsContent/index.ts +2 -0
  61. package/dist/src/components/organisms/index.d.ts +1 -1
  62. package/dist/src/components/organisms/index.js +1 -1
  63. package/dist/src/components/organisms/index.ts +1 -1
  64. package/dist/src/components/pages/AboutUsPage/AboutUsPage.js +2 -2
  65. package/dist/src/components/pages/AboutUsPage/AboutUsPage.tsx +2 -2
  66. package/dist/src/components/pages/AboutUsPage/AboutUsPageProps.d.ts +2 -2
  67. package/dist/src/components/pages/AboutUsPage/AboutUsPageProps.ts +2 -2
  68. package/dist/src/components/pages/index.d.ts +0 -1
  69. package/dist/src/components/pages/index.js +0 -1
  70. package/dist/src/components/pages/index.ts +0 -1
  71. package/dist/src/components/sections/AboutUsSection/AboutUsSection.d.ts +4 -0
  72. package/dist/src/components/sections/AboutUsSection/AboutUsSection.js +7 -0
  73. package/dist/src/components/sections/AboutUsSection/AboutUsSection.styled.d.ts +1 -0
  74. package/dist/src/components/sections/{HeroSection/HeroSectionStyled.styled.js → AboutUsSection/AboutUsSection.styled.js} +2 -2
  75. package/dist/src/components/sections/{HeroSection/HeroSectionStyled.styled.ts → AboutUsSection/AboutUsSection.styled.ts} +2 -2
  76. package/dist/src/components/sections/AboutUsSection/AboutUsSection.tsx +24 -0
  77. package/dist/src/components/sections/AboutUsSection/AboutUsSectionProps.types.d.ts +6 -0
  78. package/dist/src/components/sections/AboutUsSection/AboutUsSectionProps.types.ts +7 -0
  79. package/dist/src/components/sections/AboutUsSection/index.d.ts +2 -0
  80. package/dist/src/components/sections/AboutUsSection/index.js +1 -0
  81. package/dist/src/components/sections/AboutUsSection/index.ts +2 -0
  82. package/dist/src/components/sections/BenefitsRatafiaSection/BenefitsRatafiaSectionProps.types.d.ts +2 -2
  83. package/dist/src/components/sections/BenefitsRatafiaSection/BenefitsRatafiaSectionProps.types.ts +2 -2
  84. package/dist/src/components/sections/FaqSection/FaqSection.js +1 -1
  85. package/dist/src/components/sections/FaqSection/FaqSection.tsx +3 -1
  86. package/dist/src/components/sections/index.d.ts +1 -2
  87. package/dist/src/components/sections/index.js +1 -2
  88. package/dist/src/components/sections/index.ts +1 -2
  89. package/dist/tsconfig.build.tsbuildinfo +1 -1
  90. package/package.json +5 -8
  91. package/dist/images/svg/currencyDE.svg +0 -3
  92. package/dist/images/svg/currencyUS.svg +0 -3
  93. package/dist/images/svg/percent.svg +0 -3
  94. package/dist/src/components/atoms/BenefitCard/BenefitCard.d.ts +0 -3
  95. package/dist/src/components/atoms/BenefitCard/BenefitCard.js +0 -5
  96. package/dist/src/components/atoms/BenefitCard/BenefitCard.tsx +0 -24
  97. package/dist/src/components/atoms/BenefitCard/BenefitCardProps.types.ts +0 -8
  98. package/dist/src/components/atoms/BenefitCard/BenefitCardStyled.styled.d.ts +0 -1
  99. package/dist/src/components/atoms/BenefitCard/index.d.ts +0 -2
  100. package/dist/src/components/atoms/BenefitCard/index.js +0 -1
  101. package/dist/src/components/atoms/BenefitCard/index.ts +0 -2
  102. package/dist/src/components/atoms/CardBox/CardBox.d.ts +0 -3
  103. package/dist/src/components/atoms/CardBox/CardBox.js +0 -7
  104. package/dist/src/components/atoms/CardBox/CardBox.styled.d.ts +0 -1
  105. package/dist/src/components/atoms/CardBox/CardBox.styled.js +0 -22
  106. package/dist/src/components/atoms/CardBox/CardBox.styled.ts +0 -23
  107. package/dist/src/components/atoms/CardBox/CardBox.tsx +0 -23
  108. package/dist/src/components/atoms/CardBox/CardBoxProps.types.d.ts +0 -10
  109. package/dist/src/components/atoms/CardBox/CardBoxProps.types.ts +0 -10
  110. package/dist/src/components/atoms/CardBox/index.d.ts +0 -2
  111. package/dist/src/components/atoms/CardBox/index.js +0 -1
  112. package/dist/src/components/atoms/CardBox/index.ts +0 -2
  113. package/dist/src/components/molecules/SubscriptionCard/CardBody.d.ts +0 -6
  114. package/dist/src/components/molecules/SubscriptionCard/CardBody.js +0 -6
  115. package/dist/src/components/molecules/SubscriptionCard/CardBody.tsx +0 -29
  116. package/dist/src/components/molecules/SubscriptionCard/CardFooter.d.ts +0 -8
  117. package/dist/src/components/molecules/SubscriptionCard/CardFooter.js +0 -3
  118. package/dist/src/components/molecules/SubscriptionCard/CardFooter.tsx +0 -23
  119. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingCardHeader.d.ts +0 -6
  120. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingCardHeader.js +0 -3
  121. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingCardHeader.styled.d.ts +0 -1
  122. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingCardHeader.styled.js +0 -30
  123. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingCardHeader.styled.ts +0 -31
  124. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingCardHeader.tsx +0 -14
  125. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingSubscriptionCard.d.ts +0 -4
  126. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingSubscriptionCard.js +0 -15
  127. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingSubscriptionCard.tsx +0 -38
  128. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingSubscriptionCardProps.types.d.ts +0 -20
  129. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingSubscriptionCardProps.types.ts +0 -22
  130. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingText.styled.js +0 -10
  131. package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingText.styled.ts +0 -11
  132. package/dist/src/components/molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaCardHeader.d.ts +0 -8
  133. package/dist/src/components/molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaCardHeader.js +0 -4
  134. package/dist/src/components/molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaCardHeader.styled.d.ts +0 -1
  135. package/dist/src/components/molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaCardHeader.styled.js +0 -29
  136. package/dist/src/components/molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaCardHeader.styled.ts +0 -30
  137. package/dist/src/components/molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaCardHeader.tsx +0 -20
  138. package/dist/src/components/molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaSubscriptionCard.js +0 -14
  139. package/dist/src/components/molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaSubscriptionCard.tsx +0 -34
  140. package/dist/src/components/molecules/SubscriptionCard/SubscriptionCard.styled.d.ts +0 -1
  141. package/dist/src/components/molecules/SubscriptionCard/index.d.ts +0 -4
  142. package/dist/src/components/molecules/SubscriptionCard/index.js +0 -2
  143. package/dist/src/components/molecules/SubscriptionCard/index.ts +0 -4
  144. package/dist/src/components/organisms/HeroContent/HeroContent.d.ts +0 -4
  145. package/dist/src/components/organisms/HeroContent/HeroContent.js +0 -7
  146. package/dist/src/components/organisms/HeroContent/HeroContent.styled.d.ts +0 -1
  147. package/dist/src/components/organisms/HeroContent/HeroContent.tsx +0 -23
  148. package/dist/src/components/organisms/HeroContent/HeroContentPropsProps.types.js +0 -1
  149. package/dist/src/components/organisms/HeroContent/index.d.ts +0 -2
  150. package/dist/src/components/organisms/HeroContent/index.js +0 -1
  151. package/dist/src/components/organisms/HeroContent/index.ts +0 -2
  152. package/dist/src/components/pages/PricingPage/PricingPage.d.ts +0 -3
  153. package/dist/src/components/pages/PricingPage/PricingPage.js +0 -10
  154. package/dist/src/components/pages/PricingPage/PricingPage.styled.d.ts +0 -1
  155. package/dist/src/components/pages/PricingPage/PricingPage.styled.js +0 -115
  156. package/dist/src/components/pages/PricingPage/PricingPage.styled.ts +0 -116
  157. package/dist/src/components/pages/PricingPage/PricingPage.tsx +0 -53
  158. package/dist/src/components/pages/PricingPage/PricingPageProps.d.ts +0 -28
  159. package/dist/src/components/pages/PricingPage/PricingPageProps.js +0 -1
  160. package/dist/src/components/pages/PricingPage/PricingPageProps.ts +0 -33
  161. package/dist/src/components/pages/PricingPage/index.d.ts +0 -2
  162. package/dist/src/components/pages/PricingPage/index.js +0 -2
  163. package/dist/src/components/pages/PricingPage/index.ts +0 -2
  164. package/dist/src/components/sections/CardBoxSection/CardBoxSection.d.ts +0 -4
  165. package/dist/src/components/sections/CardBoxSection/CardBoxSection.js +0 -9
  166. package/dist/src/components/sections/CardBoxSection/CardBoxSection.styled.d.ts +0 -2
  167. package/dist/src/components/sections/CardBoxSection/CardBoxSection.styled.js +0 -33
  168. package/dist/src/components/sections/CardBoxSection/CardBoxSection.styled.ts +0 -35
  169. package/dist/src/components/sections/CardBoxSection/CardBoxSection.tsx +0 -23
  170. package/dist/src/components/sections/CardBoxSection/CardBoxSectionProps.d.ts +0 -4
  171. package/dist/src/components/sections/CardBoxSection/CardBoxSectionProps.js +0 -1
  172. package/dist/src/components/sections/CardBoxSection/CardBoxSectionProps.ts +0 -5
  173. package/dist/src/components/sections/CardBoxSection/index.d.ts +0 -2
  174. package/dist/src/components/sections/CardBoxSection/index.js +0 -1
  175. package/dist/src/components/sections/CardBoxSection/index.ts +0 -2
  176. package/dist/src/components/sections/HeroSection/HeroSection.d.ts +0 -4
  177. package/dist/src/components/sections/HeroSection/HeroSection.js +0 -7
  178. package/dist/src/components/sections/HeroSection/HeroSection.tsx +0 -24
  179. package/dist/src/components/sections/HeroSection/HeroSectionProps.types.d.ts +0 -6
  180. package/dist/src/components/sections/HeroSection/HeroSectionProps.types.js +0 -1
  181. package/dist/src/components/sections/HeroSection/HeroSectionProps.types.ts +0 -7
  182. package/dist/src/components/sections/HeroSection/HeroSectionStyled.styled.d.ts +0 -1
  183. package/dist/src/components/sections/HeroSection/index.d.ts +0 -2
  184. package/dist/src/components/sections/HeroSection/index.js +0 -1
  185. package/dist/src/components/sections/HeroSection/index.ts +0 -2
  186. /package/dist/src/components/atoms/{BenefitCard/BenefitCardProps.types.js → BenefitRatafiaCard/BenefitRatafiaCardProps.types.js} +0 -0
  187. /package/dist/src/components/molecules/{SubscriptionCard/RatafiaSubscriptionCard → RatafiaSubscriptionCard}/RatafiaSubscriptionCardProps.types.js +0 -0
  188. /package/dist/src/components/{atoms/CardBox/CardBoxProps.types.js → organisms/AboutUsContent/AboutUsContentProps.types.js} +0 -0
  189. /package/dist/src/components/{molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingSubscriptionCardProps.types.js → sections/AboutUsSection/AboutUsSectionProps.types.js} +0 -0
@@ -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'
@@ -2,7 +2,6 @@ import React from 'react';
2
2
  interface InputProps {
3
3
  name: string;
4
4
  placeholder: string;
5
- prefix: string;
6
5
  maxLength: number;
7
6
  value: string;
8
7
  type: 'password' | 'text' | 'number' | 'tel';
@@ -13,7 +12,6 @@ interface InputProps {
13
12
  onBlur: (e: React.FocusEvent<HTMLInputElement>) => void;
14
13
  onKeyDown: (e: React.KeyboardEvent<HTMLInputElement>) => void;
15
14
  onKeyUp: (e: React.KeyboardEvent<HTMLInputElement>) => void;
16
- country: string;
17
15
  }
18
16
  export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
19
17
  export {};
@@ -1,36 +1,16 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import React, { useState } from 'react';
3
- import currencyEuro from '../../../../images/svg/currencyDE.svg';
4
- import currencyOthers from '../../../../images/svg/currencyUS.svg';
5
3
  import eyeCloseIcon from '../../../../images/svg/eye-close.svg';
6
4
  import eyeIcon from '../../../../images/svg/eye-24-px.svg';
7
- import percent from '../../../../images/svg/percent.svg';
8
- export const Input = React.forwardRef(({ value, name, placeholder, className, onChange, onClick, onBlur, onKeyDown, onKeyUp, disabled, type = 'text', maxLength, country, prefix }, ref) => {
5
+ export const Input = React.forwardRef(({ value, name, placeholder, className, onChange, onClick, onBlur, onKeyDown, onKeyUp, disabled, type = 'text', maxLength }, ref) => {
9
6
  const [hidden, setHidden] = useState(true);
10
7
  const showPassword = () => {
11
8
  if (value !== null)
12
9
  setHidden(!hidden);
13
10
  };
14
- const isCurrency = prefix === 'currency';
15
- const isPercent = prefix === 'percent';
16
- const euro = country === 'DE';
17
- const otherCurrency = country !== 'DE';
18
- let finalClassName = className;
19
- if (isCurrency && otherCurrency) {
20
- finalClassName += ' has-currency-prefix';
21
- }
22
- else if (isCurrency && euro) {
23
- finalClassName += ' has-currency-suffix';
24
- }
25
- else if (isPercent) {
26
- finalClassName += ' has-percent-suffix';
27
- }
28
- return (_jsxs(_Fragment, { children: [isCurrency && !!prefix && otherCurrency && (_jsx("div", { className: 'input-icon-currency-prefix', children: _jsx("img", { src: currencyOthers, alt: 'currency' }) })), _jsx("input", { type: !hidden && type === 'password' ? 'text' : type, name: name, id: name, className: finalClassName, maxLength: maxLength, placeholder: placeholder, onChange: onChange, onClick: onClick, onKeyDown: onKeyDown, onKeyUp: onKeyUp, onBlur: onBlur, value: value, "data-qa": name, disabled: disabled, ref: ref }), type === 'password' && (_jsx("button", { type: 'button', className: 'input-icon-password-button', onClick: showPassword, onKeyDown: (e) => {
11
+ return (_jsxs(_Fragment, { children: [_jsx("input", { type: !hidden && type === 'password' ? 'text' : type, name: name, id: name, className: className, maxLength: maxLength, placeholder: placeholder, onChange: onChange, onClick: onClick, onKeyDown: onKeyDown, onKeyUp: onKeyUp, onBlur: onBlur, value: value, "data-qa": name, disabled: disabled, ref: ref }), type === 'password' && (_jsx("button", { type: 'button', className: 'input-icon-password-button', onClick: showPassword, onKeyDown: (e) => {
29
12
  if (e.key === 'Enter')
30
13
  showPassword();
31
- }, children: _jsx("img", { src: hidden ? eyeIcon : eyeCloseIcon, alt: '' }) })), isCurrency
32
- ? !!prefix &&
33
- euro && (_jsx("div", { className: 'input-icon-currency-suffix', children: _jsx("img", { src: currencyEuro, alt: 'currency' }) }))
34
- : isPercent && (_jsx("div", { className: 'input-icon-percent-suffix', children: _jsx("img", { src: percent, alt: 'percent' }) }))] }));
14
+ }, children: _jsx("img", { src: hidden ? eyeIcon : eyeCloseIcon, alt: '' }) }))] }));
35
15
  });
36
16
  Input.displayName = 'Input';
@@ -1,15 +1,11 @@
1
1
  import React, { useState } from 'react'
2
2
 
3
- import currencyEuro from '../../../../images/svg/currencyDE.svg'
4
- import currencyOthers from '../../../../images/svg/currencyUS.svg'
5
3
  import eyeCloseIcon from '../../../../images/svg/eye-close.svg'
6
4
  import eyeIcon from '../../../../images/svg/eye-24-px.svg'
7
- import percent from '../../../../images/svg/percent.svg'
8
5
 
9
6
  interface InputProps {
10
7
  name: string
11
8
  placeholder: string
12
- prefix: string
13
9
  maxLength: number
14
10
  value: string
15
11
  type: 'password' | 'text' | 'number' | 'tel'
@@ -20,7 +16,6 @@ interface InputProps {
20
16
  onBlur: (e: React.FocusEvent<HTMLInputElement>) => void
21
17
  onKeyDown: (e: React.KeyboardEvent<HTMLInputElement>) => void
22
18
  onKeyUp: (e: React.KeyboardEvent<HTMLInputElement>) => void
23
- country: string
24
19
  }
25
20
 
26
21
  export const Input = React.forwardRef<HTMLInputElement, InputProps>(
@@ -37,9 +32,7 @@ export const Input = React.forwardRef<HTMLInputElement, InputProps>(
37
32
  onKeyUp,
38
33
  disabled,
39
34
  type = 'text',
40
- maxLength,
41
- country,
42
- prefix
35
+ maxLength
43
36
  }: InputProps,
44
37
  ref
45
38
  ) => {
@@ -49,33 +42,13 @@ export const Input = React.forwardRef<HTMLInputElement, InputProps>(
49
42
  if (value !== null) setHidden(!hidden)
50
43
  }
51
44
 
52
- const isCurrency = prefix === 'currency'
53
- const isPercent = prefix === 'percent'
54
- const euro = country === 'DE'
55
- const otherCurrency = country !== 'DE'
56
-
57
- let finalClassName = className
58
-
59
- if (isCurrency && otherCurrency) {
60
- finalClassName += ' has-currency-prefix'
61
- } else if (isCurrency && euro) {
62
- finalClassName += ' has-currency-suffix'
63
- } else if (isPercent) {
64
- finalClassName += ' has-percent-suffix'
65
- }
66
-
67
45
  return (
68
46
  <>
69
- {isCurrency && !!prefix && otherCurrency && (
70
- <div className='input-icon-currency-prefix'>
71
- <img src={currencyOthers} alt='currency' />
72
- </div>
73
- )}
74
47
  <input
75
48
  type={!hidden && type === 'password' ? 'text' : type}
76
49
  name={name}
77
50
  id={name}
78
- className={finalClassName}
51
+ className={className}
79
52
  maxLength={maxLength}
80
53
  placeholder={placeholder}
81
54
  onChange={onChange}
@@ -100,18 +73,6 @@ export const Input = React.forwardRef<HTMLInputElement, InputProps>(
100
73
  <img src={hidden ? eyeIcon : eyeCloseIcon} alt='' />
101
74
  </button>
102
75
  )}
103
- {isCurrency
104
- ? !!prefix &&
105
- euro && (
106
- <div className='input-icon-currency-suffix'>
107
- <img src={currencyEuro} alt='currency' />
108
- </div>
109
- )
110
- : isPercent && (
111
- <div className='input-icon-percent-suffix'>
112
- <img src={percent} alt='percent' />
113
- </div>
114
- )}
115
76
  </>
116
77
  )
117
78
  }
@@ -6,12 +6,11 @@ import { Input } from './Input';
6
6
  import { TextInputLabel } from './TextInputLabel';
7
7
  import { TextInputMessage } from './TextInputMessage';
8
8
  import { TextInputTooltip } from './TextInputTooltip';
9
- const TextInput = React.forwardRef(({ label, value, validate = true, isValidGroup = true, format = undefined, name, placeholder, onChange, onClick, onBlur, onKeyDown, onKeyUp, prefix = '', disabled, type = 'text', maxLength, errorMessage = '', notes, dialogMenuTip, tooltip = '', givenClass = '', children, country }, ref) => {
9
+ const TextInput = React.forwardRef(({ label, value, validate = true, isValidGroup = true, format = undefined, name, placeholder, onChange, onClick, onBlur, onKeyDown, onKeyUp, disabled, type = 'text', maxLength, errorMessage = '', notes, dialogMenuTip, tooltip = '', givenClass = '', children }, ref) => {
10
10
  const classnames = classNames('e-text', {
11
11
  [givenClass]: givenClass,
12
12
  'e-text--is-invalid': !validate,
13
- 'e-text--group-invalid': !isValidGroup,
14
- 'e-text--has-prefix': !!prefix
13
+ 'e-text--group-invalid': !isValidGroup
15
14
  });
16
15
  const handleChange = (event) => {
17
16
  onChange(event);
@@ -24,9 +23,14 @@ const TextInput = React.forwardRef(({ label, value, validate = true, isValidGrou
24
23
  };
25
24
  const renderInput = () => {
26
25
  if (Boolean(format) && type !== 'number' && type !== 'tel') {
27
- return (_jsx(NumericFormat, { name: name, id: name, placeholder: placeholder, className: 'e-text-input', onChange: onChange, onClick: onClick, value: value, "data-qa": name, disabled: disabled, maxLength: maxLength, onBlur: onBlur }));
26
+ return (_jsx(NumericFormat, { name: name, id: name, placeholder: placeholder, className: 'e-text-input',
27
+ // mask={mask}
28
+ // format={format}
29
+ onChange: onChange, onClick: onClick,
30
+ // maskchar={null}
31
+ value: value, "data-qa": name, disabled: disabled, maxLength: maxLength, onBlur: onBlur }));
28
32
  }
29
- return (_jsx(Input, { name: name ?? '', type: type, prefix: prefix, placeholder: placeholder ?? '', className: 'e-text-input', onChange: handleChange, onClick: onClick ?? (() => { }), value: value, "data-qa": name, disabled: disabled ?? false, maxLength: maxLength, onBlur: onBlur ?? (() => { }), ref: ref, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, country: country }));
33
+ return (_jsx(Input, { name: name ?? '', type: type, placeholder: placeholder ?? '', className: 'e-text-input', onChange: handleChange, onClick: onClick ?? (() => { }), value: value, "data-qa": name, disabled: disabled ?? false, maxLength: maxLength, onBlur: onBlur ?? (() => { }), ref: ref, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp }));
30
34
  };
31
35
  return (_jsxs("div", { className: classnames, children: [Boolean(children) && _jsx("div", { className: 'e-text__children', children: children }), _jsx(TextInputTooltip, { tooltip: tooltip }), _jsx(TextInputMessage, { errorMessage: errorMessage, validate: validate }), renderInput(), _jsx(TextInputLabel, { label: label, htmlFor: name, notes: notes, dialogMenuTip: dialogMenuTip })] }));
32
36
  });
@@ -148,26 +148,6 @@
148
148
  }
149
149
  }
150
150
 
151
- &--has-prefix {
152
- width: 100%;
153
-
154
- @include portrait-tablets {
155
- width: 50%;
156
- }
157
-
158
- .has-currency-prefix {
159
- padding-left: 2rem;
160
- }
161
-
162
- .has-currency-suffix {
163
- padding-right: 2rem;
164
- }
165
-
166
- .has-percent-suffix {
167
- padding-left: 0.75rem;
168
- }
169
- }
170
-
171
151
  .input-icon {
172
152
  position: absolute;
173
153
  transform: translate(-15%, -65%);
@@ -184,30 +164,6 @@
184
164
  border: none;
185
165
  }
186
166
 
187
- .input-icon-currency-suffix {
188
- position: absolute;
189
- right: 10px;
190
- bottom: 10px;
191
- background: none;
192
- border: none;
193
- }
194
-
195
- .input-icon-currency-prefix {
196
- position: absolute;
197
- left: 10px;
198
- bottom: 10px;
199
- background: none;
200
- border: none;
201
- }
202
-
203
- .input-icon-percent-suffix {
204
- position: absolute;
205
- right: 10px;
206
- bottom: 10px;
207
- background: none;
208
- border: none;
209
- }
210
-
211
167
  .formgroup--input__button {
212
168
  align-self: flex-start;
213
169
  font-size: 0.75rem;
@@ -23,7 +23,6 @@ const TextInput = React.forwardRef<HTMLInputElement, TextInputProps>(
23
23
  onBlur,
24
24
  onKeyDown,
25
25
  onKeyUp,
26
- prefix = '',
27
26
  disabled,
28
27
  type = 'text',
29
28
  maxLength,
@@ -32,16 +31,14 @@ const TextInput = React.forwardRef<HTMLInputElement, TextInputProps>(
32
31
  dialogMenuTip,
33
32
  tooltip = '',
34
33
  givenClass = '',
35
- children,
36
- country
34
+ children
37
35
  }: TextInputProps,
38
36
  ref
39
37
  ) => {
40
38
  const classnames = classNames('e-text', {
41
39
  [givenClass]: givenClass,
42
40
  'e-text--is-invalid': !validate,
43
- 'e-text--group-invalid': !isValidGroup,
44
- 'e-text--has-prefix': !!prefix
41
+ 'e-text--group-invalid': !isValidGroup
45
42
  })
46
43
 
47
44
  const handleChange = (event: React.ChangeEvent<HTMLInputElement>): void => {
@@ -64,8 +61,11 @@ const TextInput = React.forwardRef<HTMLInputElement, TextInputProps>(
64
61
  id={name}
65
62
  placeholder={placeholder}
66
63
  className='e-text-input'
64
+ // mask={mask}
65
+ // format={format}
67
66
  onChange={onChange}
68
67
  onClick={onClick}
68
+ // maskchar={null}
69
69
  value={value}
70
70
  data-qa={name}
71
71
  disabled={disabled}
@@ -79,7 +79,6 @@ const TextInput = React.forwardRef<HTMLInputElement, TextInputProps>(
79
79
  <Input
80
80
  name={name ?? ''}
81
81
  type={type}
82
- prefix={prefix}
83
82
  placeholder={placeholder ?? ''}
84
83
  className='e-text-input'
85
84
  onChange={handleChange}
@@ -92,7 +91,6 @@ const TextInput = React.forwardRef<HTMLInputElement, TextInputProps>(
92
91
  ref={ref}
93
92
  onKeyDown={handleKeyDown}
94
93
  onKeyUp={handleKeyUp}
95
- country={country}
96
94
  />
97
95
  )
98
96
  }
@@ -20,7 +20,5 @@ export interface TextInputProps {
20
20
  onBlur?: (e: React.FocusEvent<HTMLInputElement>) => void;
21
21
  onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
22
22
  onKeyUp?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
23
- prefix?: string;
24
23
  children?: React.ReactNode;
25
- country: string;
26
24
  }
@@ -21,7 +21,5 @@ export interface TextInputProps {
21
21
  onBlur?: (e: React.FocusEvent<HTMLInputElement>) => void
22
22
  onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>) => void
23
23
  onKeyUp?: (e: React.KeyboardEvent<HTMLInputElement>) => void
24
- prefix?: string
25
24
  children?: React.ReactNode
26
- country: string
27
25
  }
@@ -123,36 +123,3 @@ export const MaskInput: Story = {
123
123
  placeholder: 'eg. 2111 1111 1111 1111'
124
124
  }
125
125
  }
126
-
127
- export const WithPrefixEuro: Story = {
128
- args: {
129
- name: 'prefix',
130
- label: 'Price:',
131
- value: '20.30',
132
- type: 'text',
133
- prefix: 'currency',
134
- country: 'DE'
135
- }
136
- }
137
-
138
- export const WithPrefixNoEuro: Story = {
139
- args: {
140
- name: 'prefix',
141
- label: 'Price:',
142
- value: '20.30',
143
- type: 'text',
144
- prefix: 'currency',
145
- country: 'US'
146
- }
147
- }
148
-
149
- export const WithPrefixPercent: Story = {
150
- args: {
151
- name: 'prefix',
152
- label: 'Price:',
153
- value: '20.30',
154
- type: 'text',
155
- prefix: 'percent',
156
- country: 'US'
157
- }
158
- }
@@ -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';
@@ -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';
@@ -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'
@@ -0,0 +1,4 @@
1
+ import { type FC } from 'react';
2
+ import { type AboutUsContentProps } from './AboutUsContentProps.types';
3
+ declare const AboutUsContent: FC<AboutUsContentProps>;
4
+ export default AboutUsContent;
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { AboutUsContentStyled } from './AboutUsContent.styled';
3
+ import { Button } from '../../atoms';
4
+ const AboutUsContent = ({ children, image, button }) => {
5
+ return (_jsxs(AboutUsContentStyled, { children: [_jsx("div", { className: 'about-us-content__image', children: image }), _jsxs("div", { className: 'about-us-content__body', children: [children, button != null && (_jsx("div", { className: 'about-us-content__body__button', children: _jsx(Button, { ...button }) }))] })] }));
6
+ };
7
+ export default AboutUsContent;
@@ -0,0 +1 @@
1
+ export declare const AboutUsContentStyled: 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 HeroContentStyled = styled.div `
3
+ export const AboutUsContentStyled = styled.div `
4
4
  display: flex;
5
5
  flex-flow: row wrap;
6
6
  justify-content: center;
@@ -9,7 +9,7 @@ export const HeroContentStyled = styled.div `
9
9
  flex-flow: row nowrap;
10
10
  }
11
11
 
12
- .hero-content__body {
12
+ .about-us-content__body {
13
13
  margin-top: 1rem;
14
14
  font-family: var(--font-sans);
15
15
 
@@ -45,7 +45,7 @@ export const HeroContentStyled = styled.div `
45
45
  }
46
46
  }
47
47
 
48
- .hero-content__image {
48
+ .about-us-content__image {
49
49
  margin-bottom: 1rem;
50
50
 
51
51
  @media ${device['landscape-tablets']} {
@@ -1,7 +1,7 @@
1
1
  import { device } from '../../../globalStyles/breakpoints'
2
2
  import styled from 'styled-components'
3
3
 
4
- export const HeroContentStyled = styled.div`
4
+ export const AboutUsContentStyled = styled.div`
5
5
  display: flex;
6
6
  flex-flow: row wrap;
7
7
  justify-content: center;
@@ -10,7 +10,7 @@ export const HeroContentStyled = styled.div`
10
10
  flex-flow: row nowrap;
11
11
  }
12
12
 
13
- .hero-content__body {
13
+ .about-us-content__body {
14
14
  margin-top: 1rem;
15
15
  font-family: var(--font-sans);
16
16
 
@@ -46,7 +46,7 @@ export const HeroContentStyled = styled.div`
46
46
  }
47
47
  }
48
48
 
49
- .hero-content__image {
49
+ .about-us-content__image {
50
50
  margin-bottom: 1rem;
51
51
 
52
52
  @media ${device['landscape-tablets']} {
@@ -0,0 +1,23 @@
1
+ import React, { type FC } from 'react'
2
+
3
+ import { type AboutUsContentProps } from './AboutUsContentProps.types'
4
+ import { AboutUsContentStyled } from './AboutUsContent.styled'
5
+ import { Button } from '../../atoms'
6
+
7
+ const AboutUsContent: FC<AboutUsContentProps> = ({ children, image, button }) => {
8
+ return (
9
+ <AboutUsContentStyled>
10
+ <div className={'about-us-content__image'}>{image}</div>
11
+ <div className={'about-us-content__body'}>
12
+ {children}
13
+ {button != null && (
14
+ <div className={'about-us-content__body__button'}>
15
+ <Button {...button} />
16
+ </div>
17
+ )}
18
+ </div>
19
+ </AboutUsContentStyled>
20
+ )
21
+ }
22
+
23
+ export default AboutUsContent
@@ -1,5 +1,5 @@
1
1
  import { type ButtonProps } from '../../atoms';
2
- export interface HeroContentProps {
2
+ export interface AboutUsContentProps {
3
3
  children: React.ReactNode;
4
4
  image: React.ReactNode;
5
5
  button?: ButtonProps;
@@ -1,6 +1,6 @@
1
1
  import { type ButtonProps } from '../../atoms'
2
2
 
3
- export interface HeroContentProps {
3
+ export interface AboutUsContentProps {
4
4
  children: React.ReactNode
5
5
  image: React.ReactNode
6
6
  button?: ButtonProps
@@ -0,0 +1,2 @@
1
+ export { default as AboutUsContent } from './AboutUsContent';
2
+ export { type AboutUsContentProps } from './AboutUsContentProps.types';
@@ -0,0 +1 @@
1
+ export { default as AboutUsContent } from './AboutUsContent';
@@ -0,0 +1,2 @@
1
+ export { default as AboutUsContent } from './AboutUsContent'
2
+ export { type AboutUsContentProps } from './AboutUsContentProps.types'
@@ -1,4 +1,4 @@
1
- export * from './HeroContent';
1
+ export * from './AboutUsContent';
2
2
  export * from './Accordion';
3
3
  export * from './ArticlesList';
4
4
  export * from './AsSeeInContent';
@@ -1,4 +1,4 @@
1
- export * from './HeroContent';
1
+ export * from './AboutUsContent';
2
2
  export * from './Accordion';
3
3
  export * from './ArticlesList';
4
4
  export * from './AsSeeInContent';
@@ -1,4 +1,4 @@
1
- export * from './HeroContent'
1
+ export * from './AboutUsContent'
2
2
  export * from './Accordion'
3
3
  export * from './ArticlesList'
4
4
  export * from './AsSeeInContent'