@npm_leadtech/legal-lib-components 7.5.2 → 7.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/styles.css +38 -0
- package/dist/images/svg/currencyDE.svg +3 -0
- package/dist/images/svg/currencyUS.svg +3 -0
- package/dist/images/svg/percent.svg +3 -0
- package/dist/src/components/atoms/BenefitCard/BenefitCard.d.ts +3 -0
- package/dist/src/components/atoms/BenefitCard/BenefitCard.js +5 -0
- package/dist/src/components/atoms/BenefitCard/BenefitCard.tsx +24 -0
- package/dist/src/components/atoms/{BenefitRatafiaCard/BenefitRatafiaCardProps.types.d.ts → BenefitCard/BenefitCardProps.types.d.ts} +3 -1
- package/dist/src/components/atoms/BenefitCard/BenefitCardProps.types.ts +8 -0
- package/dist/src/components/atoms/BenefitCard/BenefitCardStyled.styled.d.ts +1 -0
- package/dist/src/components/atoms/{BenefitRatafiaCard/BenefitRatafiaCard.styled.js → BenefitCard/BenefitCardStyled.styled.js} +10 -4
- package/dist/src/components/atoms/{BenefitRatafiaCard/BenefitRatafiaCard.styled.ts → BenefitCard/BenefitCardStyled.styled.ts} +10 -4
- package/dist/src/components/atoms/BenefitCard/index.d.ts +2 -0
- package/dist/src/components/atoms/BenefitCard/index.js +1 -0
- package/dist/src/components/atoms/BenefitCard/index.ts +2 -0
- package/dist/src/components/atoms/Button/ButtonProps.types.d.ts +2 -1
- package/dist/src/components/atoms/Button/ButtonProps.types.js +1 -0
- package/dist/src/components/atoms/Button/ButtonProps.types.ts +18 -16
- package/dist/src/components/atoms/CardBox/CardBox.d.ts +3 -0
- package/dist/src/components/atoms/CardBox/CardBox.js +7 -0
- package/dist/src/components/atoms/CardBox/CardBox.styled.d.ts +1 -0
- package/dist/src/components/atoms/CardBox/CardBox.styled.js +22 -0
- package/dist/src/components/atoms/CardBox/CardBox.styled.ts +23 -0
- package/dist/src/components/atoms/CardBox/CardBox.tsx +23 -0
- package/dist/src/components/atoms/CardBox/CardBoxProps.types.d.ts +10 -0
- package/dist/src/components/atoms/CardBox/CardBoxProps.types.ts +10 -0
- package/dist/src/components/atoms/CardBox/index.d.ts +2 -0
- package/dist/src/components/atoms/CardBox/index.js +1 -0
- package/dist/src/components/atoms/CardBox/index.ts +2 -0
- package/dist/src/components/atoms/CardPane/CardPaneInfo.js +2 -2
- package/dist/src/components/atoms/CardPane/CardPaneInfo.tsx +2 -2
- package/dist/src/components/atoms/CardPane/CardPaneProps.types.d.ts +0 -1
- package/dist/src/components/atoms/CardPane/CardPaneProps.types.ts +0 -1
- package/dist/src/components/atoms/index.d.ts +2 -1
- package/dist/src/components/atoms/index.js +2 -1
- package/dist/src/components/atoms/index.ts +2 -1
- package/dist/src/components/molecules/BenefitRatafiaCardList/BenefitRatafiaCardList.js +2 -2
- package/dist/src/components/molecules/BenefitRatafiaCardList/BenefitRatafiaCardList.tsx +2 -2
- package/dist/src/components/molecules/BenefitRatafiaCardList/BenefitRatafiaCardListProps.types.d.ts +2 -2
- package/dist/src/components/molecules/BenefitRatafiaCardList/BenefitRatafiaCardListProps.types.ts +2 -2
- package/dist/src/components/molecules/SubscriptionCard/CardBody.d.ts +6 -0
- package/dist/src/components/molecules/SubscriptionCard/CardBody.js +6 -0
- package/dist/src/components/molecules/SubscriptionCard/CardBody.tsx +29 -0
- package/dist/src/components/molecules/SubscriptionCard/CardFooter.d.ts +8 -0
- package/dist/src/components/molecules/SubscriptionCard/CardFooter.js +3 -0
- package/dist/src/components/molecules/SubscriptionCard/CardFooter.tsx +23 -0
- package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingCardHeader.d.ts +6 -0
- package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingCardHeader.js +3 -0
- package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingCardHeader.styled.d.ts +1 -0
- package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingCardHeader.styled.js +30 -0
- package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingCardHeader.styled.ts +31 -0
- package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingCardHeader.tsx +14 -0
- package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingSubscriptionCard.d.ts +4 -0
- package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingSubscriptionCard.js +15 -0
- package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingSubscriptionCard.tsx +38 -0
- package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingSubscriptionCardProps.types.d.ts +20 -0
- package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingSubscriptionCardProps.types.ts +22 -0
- package/dist/src/components/{atoms/BenefitRatafiaCard/BenefitRatafiaCard.styled.d.ts → molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingText.styled.d.ts} +1 -1
- package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingText.styled.js +10 -0
- package/dist/src/components/molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingText.styled.ts +11 -0
- package/dist/src/components/molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaCardHeader.d.ts +8 -0
- package/dist/src/components/molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaCardHeader.js +4 -0
- package/dist/src/components/molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaCardHeader.styled.d.ts +1 -0
- package/dist/src/components/molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaCardHeader.styled.js +29 -0
- package/dist/src/components/molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaCardHeader.styled.ts +30 -0
- package/dist/src/components/molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaCardHeader.tsx +20 -0
- package/dist/src/components/molecules/{RatafiaSubscriptionCard → SubscriptionCard/RatafiaSubscriptionCard}/RatafiaSubscriptionCard.d.ts +2 -2
- package/dist/src/components/molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaSubscriptionCard.js +14 -0
- package/dist/src/components/molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaSubscriptionCard.tsx +34 -0
- package/dist/src/components/molecules/{RatafiaSubscriptionCard → SubscriptionCard/RatafiaSubscriptionCard}/RatafiaSubscriptionCardProps.types.d.ts +3 -3
- package/dist/src/components/molecules/{RatafiaSubscriptionCard → SubscriptionCard/RatafiaSubscriptionCard}/RatafiaSubscriptionCardProps.types.ts +3 -3
- package/dist/src/components/molecules/SubscriptionCard/SubscriptionCard.styled.d.ts +1 -0
- package/dist/src/components/molecules/{RatafiaSubscriptionCard/RatafiaSubscriptionCard.styled.js → SubscriptionCard/SubscriptionCard.styled.js} +14 -32
- package/dist/src/components/molecules/{RatafiaSubscriptionCard/RatafiaSubscriptionCard.styled.ts → SubscriptionCard/SubscriptionCard.styled.ts} +14 -32
- package/dist/src/components/molecules/SubscriptionCard/index.d.ts +4 -0
- package/dist/src/components/molecules/SubscriptionCard/index.js +2 -0
- package/dist/src/components/molecules/SubscriptionCard/index.ts +4 -0
- package/dist/src/components/molecules/TextInput/Input.d.ts +2 -0
- package/dist/src/components/molecules/TextInput/Input.js +23 -3
- package/dist/src/components/molecules/TextInput/Input.tsx +41 -2
- package/dist/src/components/molecules/TextInput/TextInput.js +5 -9
- package/dist/src/components/molecules/TextInput/TextInput.scss +44 -0
- package/dist/src/components/molecules/TextInput/TextInput.tsx +7 -5
- package/dist/src/components/molecules/TextInput/TextInputProps.types.d.ts +2 -0
- package/dist/src/components/molecules/TextInput/TextInputProps.types.ts +2 -0
- package/dist/src/components/molecules/TextInput/stories/TextInput.stories.tsx +33 -0
- package/dist/src/components/molecules/index.d.ts +1 -1
- package/dist/src/components/molecules/index.js +1 -1
- package/dist/src/components/molecules/index.ts +1 -1
- package/dist/src/components/organisms/HeroContent/HeroContent.d.ts +4 -0
- package/dist/src/components/organisms/HeroContent/HeroContent.js +7 -0
- package/dist/src/components/organisms/HeroContent/HeroContent.styled.d.ts +1 -0
- package/dist/src/components/organisms/{AboutUsContent/AboutUsContent.styled.js → HeroContent/HeroContent.styled.js} +3 -3
- package/dist/src/components/organisms/{AboutUsContent/AboutUsContent.styled.ts → HeroContent/HeroContent.styled.ts} +3 -3
- package/dist/src/components/organisms/HeroContent/HeroContent.tsx +23 -0
- package/dist/src/components/organisms/{AboutUsContent/AboutUsContentProps.types.d.ts → HeroContent/HeroContentPropsProps.types.d.ts} +1 -1
- package/dist/src/components/organisms/HeroContent/HeroContentPropsProps.types.js +1 -0
- package/dist/src/components/organisms/{AboutUsContent/AboutUsContentProps.types.ts → HeroContent/HeroContentPropsProps.types.ts} +1 -1
- package/dist/src/components/organisms/HeroContent/index.d.ts +2 -0
- package/dist/src/components/organisms/HeroContent/index.js +1 -0
- package/dist/src/components/organisms/HeroContent/index.ts +2 -0
- package/dist/src/components/organisms/index.d.ts +1 -1
- package/dist/src/components/organisms/index.js +1 -1
- package/dist/src/components/organisms/index.ts +1 -1
- package/dist/src/components/pages/AboutUsPage/AboutUsPage.js +2 -2
- package/dist/src/components/pages/AboutUsPage/AboutUsPage.tsx +2 -2
- package/dist/src/components/pages/AboutUsPage/AboutUsPageProps.d.ts +2 -2
- package/dist/src/components/pages/AboutUsPage/AboutUsPageProps.ts +2 -2
- package/dist/src/components/pages/PricingPage/PricingPage.d.ts +3 -0
- package/dist/src/components/pages/PricingPage/PricingPage.js +10 -0
- package/dist/src/components/pages/PricingPage/PricingPage.styled.d.ts +1 -0
- package/dist/src/components/pages/PricingPage/PricingPage.styled.js +126 -0
- package/dist/src/components/pages/PricingPage/PricingPage.styled.ts +127 -0
- package/dist/src/components/pages/PricingPage/PricingPage.tsx +53 -0
- package/dist/src/components/pages/PricingPage/PricingPageProps.d.ts +28 -0
- package/dist/src/components/pages/PricingPage/PricingPageProps.js +1 -0
- package/dist/src/components/pages/PricingPage/PricingPageProps.ts +33 -0
- package/dist/src/components/pages/PricingPage/index.d.ts +2 -0
- package/dist/src/components/pages/PricingPage/index.js +2 -0
- package/dist/src/components/pages/PricingPage/index.ts +2 -0
- package/dist/src/components/pages/index.d.ts +1 -0
- package/dist/src/components/pages/index.js +1 -0
- package/dist/src/components/pages/index.ts +1 -0
- package/dist/src/components/sections/BenefitsRatafiaSection/BenefitsRatafiaSectionProps.types.d.ts +2 -2
- package/dist/src/components/sections/BenefitsRatafiaSection/BenefitsRatafiaSectionProps.types.ts +2 -2
- package/dist/src/components/sections/CardBoxSection/CardBoxSection.d.ts +4 -0
- package/dist/src/components/sections/CardBoxSection/CardBoxSection.js +9 -0
- package/dist/src/components/sections/CardBoxSection/CardBoxSection.styled.d.ts +2 -0
- package/dist/src/components/sections/CardBoxSection/CardBoxSection.styled.js +33 -0
- package/dist/src/components/sections/CardBoxSection/CardBoxSection.styled.ts +35 -0
- package/dist/src/components/sections/CardBoxSection/CardBoxSection.tsx +23 -0
- package/dist/src/components/sections/CardBoxSection/CardBoxSectionProps.d.ts +4 -0
- package/dist/src/components/sections/CardBoxSection/CardBoxSectionProps.js +1 -0
- package/dist/src/components/sections/CardBoxSection/CardBoxSectionProps.ts +5 -0
- package/dist/src/components/sections/CardBoxSection/index.d.ts +2 -0
- package/dist/src/components/sections/CardBoxSection/index.js +1 -0
- package/dist/src/components/sections/CardBoxSection/index.ts +2 -0
- package/dist/src/components/sections/FaqSection/FaqSection.js +1 -1
- package/dist/src/components/sections/FaqSection/FaqSection.tsx +1 -3
- package/dist/src/components/sections/HeroSection/HeroSection.d.ts +4 -0
- package/dist/src/components/sections/HeroSection/HeroSection.js +7 -0
- package/dist/src/components/sections/HeroSection/HeroSection.tsx +24 -0
- package/dist/src/components/sections/HeroSection/HeroSectionProps.types.d.ts +6 -0
- package/dist/src/components/sections/HeroSection/HeroSectionProps.types.js +1 -0
- package/dist/src/components/sections/HeroSection/HeroSectionProps.types.ts +7 -0
- package/dist/src/components/sections/HeroSection/HeroSectionStyled.styled.d.ts +1 -0
- package/dist/src/components/sections/{AboutUsSection/AboutUsSection.styled.js → HeroSection/HeroSectionStyled.styled.js} +2 -2
- package/dist/src/components/sections/{AboutUsSection/AboutUsSection.styled.ts → HeroSection/HeroSectionStyled.styled.ts} +2 -2
- package/dist/src/components/sections/HeroSection/index.d.ts +2 -0
- package/dist/src/components/sections/HeroSection/index.js +1 -0
- package/dist/src/components/sections/HeroSection/index.ts +2 -0
- package/dist/src/components/sections/index.d.ts +2 -1
- package/dist/src/components/sections/index.js +2 -1
- package/dist/src/components/sections/index.ts +2 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +8 -5
- package/dist/src/components/atoms/BenefitRatafiaCard/BenefitRatafiaCard.d.ts +0 -4
- package/dist/src/components/atoms/BenefitRatafiaCard/BenefitRatafiaCard.js +0 -6
- package/dist/src/components/atoms/BenefitRatafiaCard/BenefitRatafiaCard.tsx +0 -18
- package/dist/src/components/atoms/BenefitRatafiaCard/BenefitRatafiaCardProps.types.ts +0 -6
- package/dist/src/components/atoms/BenefitRatafiaCard/index.d.ts +0 -2
- package/dist/src/components/atoms/BenefitRatafiaCard/index.js +0 -1
- package/dist/src/components/atoms/BenefitRatafiaCard/index.ts +0 -2
- package/dist/src/components/molecules/RatafiaSubscriptionCard/RatafiaSubscriptionCard.js +0 -12
- package/dist/src/components/molecules/RatafiaSubscriptionCard/RatafiaSubscriptionCard.styled.d.ts +0 -1
- package/dist/src/components/molecules/RatafiaSubscriptionCard/RatafiaSubscriptionCard.tsx +0 -61
- package/dist/src/components/molecules/RatafiaSubscriptionCard/index.d.ts +0 -2
- package/dist/src/components/molecules/RatafiaSubscriptionCard/index.js +0 -1
- package/dist/src/components/molecules/RatafiaSubscriptionCard/index.ts +0 -2
- package/dist/src/components/organisms/AboutUsContent/AboutUsContent.d.ts +0 -4
- package/dist/src/components/organisms/AboutUsContent/AboutUsContent.js +0 -7
- package/dist/src/components/organisms/AboutUsContent/AboutUsContent.styled.d.ts +0 -1
- package/dist/src/components/organisms/AboutUsContent/AboutUsContent.tsx +0 -23
- package/dist/src/components/organisms/AboutUsContent/index.d.ts +0 -2
- package/dist/src/components/organisms/AboutUsContent/index.js +0 -1
- package/dist/src/components/organisms/AboutUsContent/index.ts +0 -2
- package/dist/src/components/sections/AboutUsSection/AboutUsSection.d.ts +0 -4
- package/dist/src/components/sections/AboutUsSection/AboutUsSection.js +0 -7
- package/dist/src/components/sections/AboutUsSection/AboutUsSection.styled.d.ts +0 -1
- package/dist/src/components/sections/AboutUsSection/AboutUsSection.tsx +0 -24
- package/dist/src/components/sections/AboutUsSection/AboutUsSectionProps.types.d.ts +0 -6
- package/dist/src/components/sections/AboutUsSection/AboutUsSectionProps.types.ts +0 -7
- package/dist/src/components/sections/AboutUsSection/index.d.ts +0 -2
- package/dist/src/components/sections/AboutUsSection/index.js +0 -1
- package/dist/src/components/sections/AboutUsSection/index.ts +0 -2
- /package/dist/src/components/atoms/{BenefitRatafiaCard/BenefitRatafiaCardProps.types.js → BenefitCard/BenefitCardProps.types.js} +0 -0
- /package/dist/src/components/{molecules/RatafiaSubscriptionCard/RatafiaSubscriptionCardProps.types.js → atoms/CardBox/CardBoxProps.types.js} +0 -0
- /package/dist/src/components/{organisms/AboutUsContent/AboutUsContentProps.types.js → molecules/SubscriptionCard/PlanBoxPricingSubscriptionCard/PlanBoxPricingSubscriptionCardProps.types.js} +0 -0
- /package/dist/src/components/{sections/AboutUsSection/AboutUsSectionProps.types.js → molecules/SubscriptionCard/RatafiaSubscriptionCard/RatafiaSubscriptionCardProps.types.js} +0 -0
package/dist/css/styles.css
CHANGED
|
@@ -2154,6 +2154,23 @@ h2.react-datepicker__current-month {
|
|
|
2154
2154
|
outline: none;
|
|
2155
2155
|
background-color: var(--neutral-neutral-6);
|
|
2156
2156
|
}
|
|
2157
|
+
.e-text--has-prefix {
|
|
2158
|
+
width: 100%;
|
|
2159
|
+
}
|
|
2160
|
+
@media (min-width: 575px) {
|
|
2161
|
+
.e-text--has-prefix {
|
|
2162
|
+
width: 50%;
|
|
2163
|
+
}
|
|
2164
|
+
}
|
|
2165
|
+
.e-text--has-prefix .has-currency-prefix {
|
|
2166
|
+
padding-left: 2rem;
|
|
2167
|
+
}
|
|
2168
|
+
.e-text--has-prefix .has-currency-suffix {
|
|
2169
|
+
padding-right: 2rem;
|
|
2170
|
+
}
|
|
2171
|
+
.e-text--has-prefix .has-percent-suffix {
|
|
2172
|
+
padding-left: 0.75rem;
|
|
2173
|
+
}
|
|
2157
2174
|
.e-text .input-icon {
|
|
2158
2175
|
position: absolute;
|
|
2159
2176
|
transform: translate(-15%, -65%);
|
|
@@ -2168,6 +2185,27 @@ h2.react-datepicker__current-month {
|
|
|
2168
2185
|
background: none;
|
|
2169
2186
|
border: none;
|
|
2170
2187
|
}
|
|
2188
|
+
.e-text .input-icon-currency-suffix {
|
|
2189
|
+
position: absolute;
|
|
2190
|
+
right: 10px;
|
|
2191
|
+
bottom: 10px;
|
|
2192
|
+
background: none;
|
|
2193
|
+
border: none;
|
|
2194
|
+
}
|
|
2195
|
+
.e-text .input-icon-currency-prefix {
|
|
2196
|
+
position: absolute;
|
|
2197
|
+
left: 10px;
|
|
2198
|
+
bottom: 10px;
|
|
2199
|
+
background: none;
|
|
2200
|
+
border: none;
|
|
2201
|
+
}
|
|
2202
|
+
.e-text .input-icon-percent-suffix {
|
|
2203
|
+
position: absolute;
|
|
2204
|
+
right: 10px;
|
|
2205
|
+
bottom: 10px;
|
|
2206
|
+
background: none;
|
|
2207
|
+
border: none;
|
|
2208
|
+
}
|
|
2171
2209
|
.e-text .formgroup--input__button {
|
|
2172
2210
|
align-self: flex-start;
|
|
2173
2211
|
font-size: 0.75rem;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M12.5 17.5C10.8611 17.5 9.40278 17.0347 8.125 16.1042C6.84722 15.1736 5.94444 13.9722 5.41667 12.5H3.33333C3.09722 12.5 2.89931 12.4201 2.73958 12.2604C2.57986 12.1007 2.5 11.9028 2.5 11.6667C2.5 11.4306 2.57986 11.2326 2.73958 11.0729C2.89931 10.9132 3.09722 10.8333 3.33333 10.8333H5.04167C5.01389 10.6806 5 10.5417 5 10.4167V9.58333C5 9.45833 5.01389 9.31944 5.04167 9.16667H3.33333C3.09722 9.16667 2.89931 9.08681 2.73958 8.92708C2.57986 8.76736 2.5 8.56944 2.5 8.33333C2.5 8.09722 2.57986 7.89931 2.73958 7.73958C2.89931 7.57986 3.09722 7.5 3.33333 7.5H5.41667C5.94444 6.02778 6.84722 4.82639 8.125 3.89583C9.40278 2.96528 10.8611 2.5 12.5 2.5C13.2917 2.5 14.0347 2.61458 14.7292 2.84375C15.4236 3.07292 16.0764 3.38889 16.6875 3.79167C16.9236 3.94444 17.0451 4.15972 17.0521 4.4375C17.059 4.71528 16.9653 4.95139 16.7708 5.14583C16.5764 5.34028 16.3333 5.45486 16.0417 5.48958C15.75 5.52431 15.4792 5.46528 15.2292 5.3125C14.8264 5.07639 14.3924 4.89583 13.9271 4.77083C13.4618 4.64583 12.9861 4.58333 12.5 4.58333C11.4583 4.58333 10.5104 4.85069 9.65625 5.38542C8.80208 5.92014 8.15278 6.625 7.70833 7.5H11.6667C11.9028 7.5 12.1007 7.57986 12.2604 7.73958C12.4201 7.89931 12.5 8.09722 12.5 8.33333C12.5 8.56944 12.4201 8.76736 12.2604 8.92708C12.1007 9.08681 11.9028 9.16667 11.6667 9.16667H7.16667C7.13889 9.31944 7.11806 9.45833 7.10417 9.58333C7.09028 9.70833 7.08333 9.84722 7.08333 10C7.08333 10.1528 7.09028 10.2917 7.10417 10.4167C7.11806 10.5417 7.13889 10.6806 7.16667 10.8333H11.6667C11.9028 10.8333 12.1007 10.9132 12.2604 11.0729C12.4201 11.2326 12.5 11.4306 12.5 11.6667C12.5 11.9028 12.4201 12.1007 12.2604 12.2604C12.1007 12.4201 11.9028 12.5 11.6667 12.5H7.70833C8.15278 13.375 8.80208 14.0799 9.65625 14.6146C10.5104 15.1493 11.4583 15.4167 12.5 15.4167C12.9861 15.4167 13.4618 15.3576 13.9271 15.2396C14.3924 15.1215 14.8264 14.9444 15.2292 14.7083C15.4792 14.5556 15.75 14.4931 16.0417 14.5208C16.3333 14.5486 16.5764 14.6597 16.7708 14.8542C16.9653 15.0486 17.059 15.2847 17.0521 15.5625C17.0451 15.8403 16.9236 16.0556 16.6875 16.2083C16.0764 16.6111 15.4236 16.9271 14.7292 17.1562C14.0347 17.3854 13.2917 17.5 12.5 17.5Z" fill="#6D7275"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="10" height="18" viewBox="0 0 10 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M4.94505 17.3333C4.6827 17.3333 4.4628 17.2446 4.28533 17.0671C4.10786 16.8896 4.01912 16.6697 4.01912 16.4074V15.3426C3.32468 15.1882 2.71511 14.9182 2.19042 14.5324C1.66573 14.1466 1.24135 13.6064 0.917271 12.912C0.809246 12.6959 0.805388 12.4683 0.905697 12.2291C1.00601 11.9899 1.18733 11.8163 1.44968 11.7083C1.66573 11.6157 1.88949 11.6196 2.12097 11.7199C2.35246 11.8202 2.52993 11.9861 2.65338 12.2176C2.91573 12.6805 3.24752 13.0316 3.64875 13.2708C4.04999 13.51 4.54381 13.6296 5.13023 13.6296C5.76295 13.6296 6.29922 13.4868 6.73903 13.2013C7.17884 12.9159 7.39875 12.4722 7.39875 11.8703C7.39875 11.3302 7.229 10.902 6.88949 10.5856C6.54999 10.2692 5.76295 9.91045 4.52838 9.50922C3.20122 9.09255 2.29073 8.59487 1.7969 8.01616C1.30307 7.43746 1.05616 6.73144 1.05616 5.89811C1.05616 4.89502 1.38023 4.1157 2.02838 3.56014C2.67653 3.00459 3.34011 2.68823 4.01912 2.61107V1.59255C4.01912 1.33021 4.10786 1.1103 4.28533 0.93283C4.4628 0.755361 4.6827 0.666626 4.94505 0.666626C5.20739 0.666626 5.4273 0.755361 5.60477 0.93283C5.78224 1.1103 5.87097 1.33021 5.87097 1.59255V2.61107C6.45739 2.70366 6.96665 2.89271 7.39875 3.1782C7.83085 3.46369 8.18579 3.81477 8.46357 4.23144C8.60246 4.43206 8.62946 4.65582 8.54459 4.90274C8.45971 5.14965 8.2861 5.32712 8.02375 5.43514C7.8077 5.52774 7.58394 5.5316 7.35246 5.44672C7.12098 5.36184 6.90493 5.21138 6.70431 4.99533C6.50369 4.77928 6.26835 4.61339 5.99829 4.49764C5.72823 4.3819 5.39258 4.32403 4.99134 4.32403C4.31233 4.32403 3.79536 4.4745 3.44042 4.77542C3.08548 5.07635 2.90801 5.45058 2.90801 5.89811C2.90801 6.40737 3.13949 6.8086 3.60246 7.10181C4.06542 7.39502 4.86789 7.70366 6.00986 8.02774C7.07468 8.33638 7.88101 8.82635 8.42885 9.49765C8.97668 10.1689 9.2506 10.9444 9.2506 11.824C9.2506 12.9197 8.92653 13.753 8.27838 14.324C7.63023 14.895 6.82776 15.25 5.87097 15.3888V16.4074C5.87097 16.6697 5.78224 16.8896 5.60477 17.0671C5.4273 17.2446 5.20739 17.3333 4.94505 17.3333Z" fill="#6D7275"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M6.25004 9.16671C5.44448 9.16671 4.75699 8.88198 4.18754 8.31254C3.6181 7.7431 3.33337 7.0556 3.33337 6.25004C3.33337 5.44448 3.6181 4.75699 4.18754 4.18754C4.75699 3.6181 5.44448 3.33337 6.25004 3.33337C7.0556 3.33337 7.7431 3.6181 8.31254 4.18754C8.88198 4.75699 9.16671 5.44448 9.16671 6.25004C9.16671 7.0556 8.88198 7.7431 8.31254 8.31254C7.7431 8.88198 7.0556 9.16671 6.25004 9.16671ZM6.25004 7.50004C6.59726 7.50004 6.8924 7.37851 7.13546 7.13546C7.37851 6.8924 7.50004 6.59726 7.50004 6.25004C7.50004 5.90282 7.37851 5.60768 7.13546 5.36462C6.8924 5.12157 6.59726 5.00004 6.25004 5.00004C5.90282 5.00004 5.60768 5.12157 5.36462 5.36462C5.12157 5.60768 5.00004 5.90282 5.00004 6.25004C5.00004 6.59726 5.12157 6.8924 5.36462 7.13546C5.60768 7.37851 5.90282 7.50004 6.25004 7.50004ZM13.75 16.6667C12.9445 16.6667 12.257 16.382 11.6875 15.8125C11.1181 15.2431 10.8334 14.5556 10.8334 13.75C10.8334 12.9445 11.1181 12.257 11.6875 11.6875C12.257 11.1181 12.9445 10.8334 13.75 10.8334C14.5556 10.8334 15.2431 11.1181 15.8125 11.6875C16.382 12.257 16.6667 12.9445 16.6667 13.75C16.6667 14.5556 16.382 15.2431 15.8125 15.8125C15.2431 16.382 14.5556 16.6667 13.75 16.6667ZM13.75 15C14.0973 15 14.3924 14.8785 14.6355 14.6355C14.8785 14.3924 15 14.0973 15 13.75C15 13.4028 14.8785 13.1077 14.6355 12.8646C14.3924 12.6216 14.0973 12.5 13.75 12.5C13.4028 12.5 13.1077 12.6216 12.8646 12.8646C12.6216 13.1077 12.5 13.4028 12.5 13.75C12.5 14.0973 12.6216 14.3924 12.8646 14.6355C13.1077 14.8785 13.4028 15 13.75 15ZM3.91671 16.0834C3.76393 15.9306 3.68754 15.7362 3.68754 15.5C3.68754 15.2639 3.76393 15.0695 3.91671 14.9167L14.9167 3.91671C15.0695 3.76393 15.2639 3.68754 15.5 3.68754C15.7362 3.68754 15.9306 3.76393 16.0834 3.91671C16.2362 4.06949 16.3125 4.26393 16.3125 4.50004C16.3125 4.73615 16.2362 4.9306 16.0834 5.08337L5.08337 16.0834C4.9306 16.2362 4.73615 16.3125 4.50004 16.3125C4.26393 16.3125 4.06949 16.2362 3.91671 16.0834Z" fill="#6D7275"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { BenefitCardStyled } from './BenefitCardStyled.styled';
|
|
3
|
+
export const BenefitCard = ({ description, hasShadow = true, hasBigFontSize = true, title, image }) => {
|
|
4
|
+
return (_jsxs(BenefitCardStyled, { className: `benefit-card ${hasShadow && 'has-shadow'}`, children: [image !== null && _jsx("div", { className: `benefit-card__icon ${hasShadow && 'has-shadow'}`, children: image }), _jsxs("div", { className: 'benefit-card__content', children: [_jsx("div", { className: `sans-serif ${hasBigFontSize && '--big'} --bold-weight benefit-card__content__title`, children: title }), _jsx("p", { className: 'sans-serif --medium benefit-ratafia-card__content__description', children: description })] })] }));
|
|
5
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
|
|
3
|
+
import { type BenefitCardProps } from './BenefitCardProps.types'
|
|
4
|
+
import { BenefitCardStyled } from './BenefitCardStyled.styled'
|
|
5
|
+
|
|
6
|
+
export const BenefitCard: React.FC<BenefitCardProps> = ({
|
|
7
|
+
description,
|
|
8
|
+
hasShadow = true,
|
|
9
|
+
hasBigFontSize = true,
|
|
10
|
+
title,
|
|
11
|
+
image
|
|
12
|
+
}) => {
|
|
13
|
+
return (
|
|
14
|
+
<BenefitCardStyled className={`benefit-card ${hasShadow && 'has-shadow'}`}>
|
|
15
|
+
{image !== null && <div className={`benefit-card__icon ${hasShadow && 'has-shadow'}`}>{image}</div>}
|
|
16
|
+
<div className='benefit-card__content'>
|
|
17
|
+
<div className={`sans-serif ${hasBigFontSize && '--big'} --bold-weight benefit-card__content__title`}>
|
|
18
|
+
{title}
|
|
19
|
+
</div>
|
|
20
|
+
<p className='sans-serif --medium benefit-ratafia-card__content__description'>{description}</p>
|
|
21
|
+
</div>
|
|
22
|
+
</BenefitCardStyled>
|
|
23
|
+
)
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const BenefitCardStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { device } from '../../../globalStyles/breakpoints';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
export const
|
|
3
|
+
export const BenefitCardStyled = styled.div `
|
|
4
4
|
display: flex;
|
|
5
5
|
flex-direction: column;
|
|
6
6
|
align-items: flex-start;
|
|
@@ -12,7 +12,10 @@ export const BenefitRatafiaCardStyled = styled.div `
|
|
|
12
12
|
|
|
13
13
|
border-radius: var(--s-border-radius);
|
|
14
14
|
background: rgba(255, 255, 255, 0.8);
|
|
15
|
-
|
|
15
|
+
|
|
16
|
+
&.has-shadow {
|
|
17
|
+
box-shadow: 0 2px 6px 0 rgba(2, 55, 74, 0.25);
|
|
18
|
+
}
|
|
16
19
|
|
|
17
20
|
@media ${device['landscape-tablets']} {
|
|
18
21
|
flex-direction: row;
|
|
@@ -21,7 +24,7 @@ export const BenefitRatafiaCardStyled = styled.div `
|
|
|
21
24
|
flex-direction: column;
|
|
22
25
|
}
|
|
23
26
|
|
|
24
|
-
.benefit-
|
|
27
|
+
.benefit-card {
|
|
25
28
|
&__icon {
|
|
26
29
|
display: flex;
|
|
27
30
|
align-items: flex-start;
|
|
@@ -30,7 +33,10 @@ export const BenefitRatafiaCardStyled = styled.div `
|
|
|
30
33
|
|
|
31
34
|
border-radius: var(--s-border-radius);
|
|
32
35
|
background: rgba(255, 255, 255, 0.8);
|
|
33
|
-
|
|
36
|
+
|
|
37
|
+
&.has-shadow {
|
|
38
|
+
box-shadow: 0 2px 6px 0 rgba(2, 55, 74, 0.25);
|
|
39
|
+
}
|
|
34
40
|
|
|
35
41
|
img {
|
|
36
42
|
min-width: 32px;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { device } from '../../../globalStyles/breakpoints'
|
|
2
2
|
import styled from 'styled-components'
|
|
3
3
|
|
|
4
|
-
export const
|
|
4
|
+
export const BenefitCardStyled = styled.div`
|
|
5
5
|
display: flex;
|
|
6
6
|
flex-direction: column;
|
|
7
7
|
align-items: flex-start;
|
|
@@ -13,7 +13,10 @@ export const BenefitRatafiaCardStyled = styled.div`
|
|
|
13
13
|
|
|
14
14
|
border-radius: var(--s-border-radius);
|
|
15
15
|
background: rgba(255, 255, 255, 0.8);
|
|
16
|
-
|
|
16
|
+
|
|
17
|
+
&.has-shadow {
|
|
18
|
+
box-shadow: 0 2px 6px 0 rgba(2, 55, 74, 0.25);
|
|
19
|
+
}
|
|
17
20
|
|
|
18
21
|
@media ${device['landscape-tablets']} {
|
|
19
22
|
flex-direction: row;
|
|
@@ -22,7 +25,7 @@ export const BenefitRatafiaCardStyled = styled.div`
|
|
|
22
25
|
flex-direction: column;
|
|
23
26
|
}
|
|
24
27
|
|
|
25
|
-
.benefit-
|
|
28
|
+
.benefit-card {
|
|
26
29
|
&__icon {
|
|
27
30
|
display: flex;
|
|
28
31
|
align-items: flex-start;
|
|
@@ -31,7 +34,10 @@ export const BenefitRatafiaCardStyled = styled.div`
|
|
|
31
34
|
|
|
32
35
|
border-radius: var(--s-border-radius);
|
|
33
36
|
background: rgba(255, 255, 255, 0.8);
|
|
34
|
-
|
|
37
|
+
|
|
38
|
+
&.has-shadow {
|
|
39
|
+
box-shadow: 0 2px 6px 0 rgba(2, 55, 74, 0.25);
|
|
40
|
+
}
|
|
35
41
|
|
|
36
42
|
img {
|
|
37
43
|
min-width: 32px;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BenefitCard } from './BenefitCard';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export type Colors = 'primary' | 'primary2' | 'primary3' | 'primary4' | 'secondary' | 'secondary2' | 'secondary3' | 'secondary4' | 'secondaryIcon' | 'secondaryIconBold' | 'secondaryIconDark' | 'tertiary' | 'tertiary2' | 'styleless' | 'transparent';
|
|
1
2
|
export interface ButtonProps {
|
|
2
3
|
label: string;
|
|
3
4
|
dataQa: string;
|
|
@@ -8,7 +9,7 @@ export interface ButtonProps {
|
|
|
8
9
|
noLinkNoFunc?: boolean;
|
|
9
10
|
onClick?: (functionParameters?: any) => void;
|
|
10
11
|
functionParameters?: any;
|
|
11
|
-
color?:
|
|
12
|
+
color?: Colors;
|
|
12
13
|
error?: boolean;
|
|
13
14
|
disabled?: boolean;
|
|
14
15
|
fluid?: boolean;
|
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
+
|
|
3
|
+
export type Colors =
|
|
4
|
+
| 'primary'
|
|
5
|
+
| 'primary2'
|
|
6
|
+
| 'primary3'
|
|
7
|
+
| 'primary4'
|
|
8
|
+
| 'secondary'
|
|
9
|
+
| 'secondary2'
|
|
10
|
+
| 'secondary3'
|
|
11
|
+
| 'secondary4'
|
|
12
|
+
| 'secondaryIcon'
|
|
13
|
+
| 'secondaryIconBold'
|
|
14
|
+
| 'secondaryIconDark'
|
|
15
|
+
| 'tertiary'
|
|
16
|
+
| 'tertiary2'
|
|
17
|
+
| 'styleless'
|
|
18
|
+
| 'transparent'
|
|
2
19
|
export interface ButtonProps {
|
|
3
20
|
label: string
|
|
4
21
|
dataQa: string
|
|
@@ -9,22 +26,7 @@ export interface ButtonProps {
|
|
|
9
26
|
noLinkNoFunc?: boolean
|
|
10
27
|
onClick?: (functionParameters?: any) => void
|
|
11
28
|
functionParameters?: any
|
|
12
|
-
color?:
|
|
13
|
-
| 'primary'
|
|
14
|
-
| 'primary2'
|
|
15
|
-
| 'primary3'
|
|
16
|
-
| 'primary4'
|
|
17
|
-
| 'secondary'
|
|
18
|
-
| 'secondary2'
|
|
19
|
-
| 'secondary3'
|
|
20
|
-
| 'secondary4'
|
|
21
|
-
| 'secondaryIcon'
|
|
22
|
-
| 'secondaryIconBold'
|
|
23
|
-
| 'secondaryIconDark'
|
|
24
|
-
| 'tertiary'
|
|
25
|
-
| 'tertiary2'
|
|
26
|
-
| 'styleless'
|
|
27
|
-
| 'transparent'
|
|
29
|
+
color?: Colors
|
|
28
30
|
error?: boolean
|
|
29
31
|
disabled?: boolean
|
|
30
32
|
fluid?: boolean
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { CardBoxStyled } from './CardBox.styled';
|
|
3
|
+
import { IconSvgURLWithThemeColor } from '../IconSvgURLWithThemeColor';
|
|
4
|
+
import { RichTextStrapi } from '../RichTextStrapi';
|
|
5
|
+
export const CardBox = ({ icon, text, borderRadius = '16px', gap = '1rem', padding = '16px 24px', height = '24', width = '24' }) => {
|
|
6
|
+
return (_jsxs(CardBoxStyled, { style: { gap, padding, borderRadius }, children: [_jsx(IconSvgURLWithThemeColor, { url: icon, height: height, width: width }), _jsx(RichTextStrapi, { html: text })] }));
|
|
7
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CardBoxStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
export const CardBoxStyled = styled.div `
|
|
3
|
+
display: flex;
|
|
4
|
+
font-size: 16px;
|
|
5
|
+
font-style: normal;
|
|
6
|
+
font-weight: 400;
|
|
7
|
+
line-height: 22px;
|
|
8
|
+
letter-spacing: -0.3px;
|
|
9
|
+
background-color: var(--others-white);
|
|
10
|
+
align-items: center;
|
|
11
|
+
flex: 1;
|
|
12
|
+
max-width: 592px;
|
|
13
|
+
a {
|
|
14
|
+
color: var(--primary-main);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
i {
|
|
18
|
+
display: inline-block;
|
|
19
|
+
object-fit: contain;
|
|
20
|
+
flex-shrink: 0;
|
|
21
|
+
}
|
|
22
|
+
`;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import styled from 'styled-components'
|
|
2
|
+
|
|
3
|
+
export const CardBoxStyled = styled.div`
|
|
4
|
+
display: flex;
|
|
5
|
+
font-size: 16px;
|
|
6
|
+
font-style: normal;
|
|
7
|
+
font-weight: 400;
|
|
8
|
+
line-height: 22px;
|
|
9
|
+
letter-spacing: -0.3px;
|
|
10
|
+
background-color: var(--others-white);
|
|
11
|
+
align-items: center;
|
|
12
|
+
flex: 1;
|
|
13
|
+
max-width: 592px;
|
|
14
|
+
a {
|
|
15
|
+
color: var(--primary-main);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
i {
|
|
19
|
+
display: inline-block;
|
|
20
|
+
object-fit: contain;
|
|
21
|
+
flex-shrink: 0;
|
|
22
|
+
}
|
|
23
|
+
`
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
|
|
3
|
+
import { type CardBoxProps } from './CardBoxProps.types'
|
|
4
|
+
import { CardBoxStyled } from './CardBox.styled'
|
|
5
|
+
import { IconSvgURLWithThemeColor } from '../IconSvgURLWithThemeColor'
|
|
6
|
+
import { RichTextStrapi } from '../RichTextStrapi'
|
|
7
|
+
|
|
8
|
+
export const CardBox: React.FC<CardBoxProps> = ({
|
|
9
|
+
icon,
|
|
10
|
+
text,
|
|
11
|
+
borderRadius = '16px',
|
|
12
|
+
gap = '1rem',
|
|
13
|
+
padding = '16px 24px',
|
|
14
|
+
height = '24',
|
|
15
|
+
width = '24'
|
|
16
|
+
}) => {
|
|
17
|
+
return (
|
|
18
|
+
<CardBoxStyled style={{ gap, padding, borderRadius }}>
|
|
19
|
+
<IconSvgURLWithThemeColor url={icon} height={height} width={width} />
|
|
20
|
+
<RichTextStrapi html={text} />
|
|
21
|
+
</CardBoxStyled>
|
|
22
|
+
)
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CardBox } from './CardBox';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
const CardPaneInfo = ({
|
|
3
|
-
const paneTitle = (_jsx(_Fragment, { children: handleClick ? (_jsx("button", { onClick: handleClick,
|
|
2
|
+
const CardPaneInfo = ({ description, subdescription, id, title, handleClick }) => {
|
|
3
|
+
const paneTitle = (_jsx(_Fragment, { children: handleClick ? (_jsx("button", { onClick: handleClick, className: 'pane--title pane--title--button', children: title })) : (_jsx("div", { className: 'pane--title', children: title })) }));
|
|
4
4
|
if (description === 'Active' || description === 'Inactive') {
|
|
5
5
|
let descriptionClass;
|
|
6
6
|
if (description === 'Active') {
|
|
@@ -2,11 +2,11 @@ import React, { type FC } from 'react'
|
|
|
2
2
|
|
|
3
3
|
import { type CardPaneInfoProps } from './CardPaneProps.types'
|
|
4
4
|
|
|
5
|
-
const CardPaneInfo: FC<CardPaneInfoProps> = ({
|
|
5
|
+
const CardPaneInfo: FC<CardPaneInfoProps> = ({ description, subdescription, id, title, handleClick }) => {
|
|
6
6
|
const paneTitle = (
|
|
7
7
|
<>
|
|
8
8
|
{handleClick ? (
|
|
9
|
-
<button onClick={handleClick}
|
|
9
|
+
<button onClick={handleClick} className='pane--title pane--title--button'>
|
|
10
10
|
{title}
|
|
11
11
|
</button>
|
|
12
12
|
) : (
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
export * from './ActionButtonHeaderRatafiaCard';
|
|
2
2
|
export * from './AddButton';
|
|
3
3
|
export * from './BaseBox';
|
|
4
|
-
export * from './
|
|
4
|
+
export * from './BenefitCard';
|
|
5
5
|
export * from './BillCard';
|
|
6
6
|
export * from './BottomOverlayMenu';
|
|
7
7
|
export * from './BreadcrumItem';
|
|
8
8
|
export * from './Button';
|
|
9
9
|
export * from './ButtonIcon';
|
|
10
|
+
export * from './CardBox';
|
|
10
11
|
export * from './CardPane';
|
|
11
12
|
export * from './Checkbox';
|
|
12
13
|
export * from './ContactCard';
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
export * from './ActionButtonHeaderRatafiaCard';
|
|
2
2
|
export * from './AddButton';
|
|
3
3
|
export * from './BaseBox';
|
|
4
|
-
export * from './
|
|
4
|
+
export * from './BenefitCard';
|
|
5
5
|
export * from './BillCard';
|
|
6
6
|
export * from './BottomOverlayMenu';
|
|
7
7
|
export * from './BreadcrumItem';
|
|
8
8
|
export * from './Button';
|
|
9
9
|
export * from './ButtonIcon';
|
|
10
|
+
export * from './CardBox';
|
|
10
11
|
export * from './CardPane';
|
|
11
12
|
export * from './Checkbox';
|
|
12
13
|
export * from './ContactCard';
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
export * from './ActionButtonHeaderRatafiaCard'
|
|
2
2
|
export * from './AddButton'
|
|
3
3
|
export * from './BaseBox'
|
|
4
|
-
export * from './
|
|
4
|
+
export * from './BenefitCard'
|
|
5
5
|
export * from './BillCard'
|
|
6
6
|
export * from './BottomOverlayMenu'
|
|
7
7
|
export * from './BreadcrumItem'
|
|
8
8
|
export * from './Button'
|
|
9
9
|
export * from './ButtonIcon'
|
|
10
|
+
export * from './CardBox'
|
|
10
11
|
export * from './CardPane'
|
|
11
12
|
export * from './Checkbox'
|
|
12
13
|
export * from './ContactCard'
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { BenefitCard } from '../../atoms';
|
|
3
3
|
import { BenefitRatafiaCardListStyled } from './BenefitRatafiaCardList.styled';
|
|
4
4
|
const BenefitRatafiaCardList = ({ benefits = [] }) => {
|
|
5
5
|
if (benefits.length === 0)
|
|
6
6
|
return null;
|
|
7
|
-
return (_jsx(BenefitRatafiaCardListStyled, { className: 'benefit-ratafia-card-list', children: benefits.map((benefit) => (_jsx(
|
|
7
|
+
return (_jsx(BenefitRatafiaCardListStyled, { className: 'benefit-ratafia-card-list', children: benefits.map((benefit) => (_jsx(BenefitCard, { ...benefit }, benefit.id))) }));
|
|
8
8
|
};
|
|
9
9
|
export default BenefitRatafiaCardList;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { type FC } from 'react'
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { BenefitCard } from '../../atoms'
|
|
4
4
|
import { type BenefitRatafiaCardListProps } from './BenefitRatafiaCardListProps.types'
|
|
5
5
|
import { BenefitRatafiaCardListStyled } from './BenefitRatafiaCardList.styled'
|
|
6
6
|
|
|
@@ -10,7 +10,7 @@ const BenefitRatafiaCardList: FC<BenefitRatafiaCardListProps> = ({ benefits = []
|
|
|
10
10
|
return (
|
|
11
11
|
<BenefitRatafiaCardListStyled className='benefit-ratafia-card-list'>
|
|
12
12
|
{benefits.map((benefit) => (
|
|
13
|
-
<
|
|
13
|
+
<BenefitCard key={benefit.id} {...benefit} />
|
|
14
14
|
))}
|
|
15
15
|
</BenefitRatafiaCardListStyled>
|
|
16
16
|
)
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { IconSvgURLWithThemeColor, RichTextStrapi } from '../../atoms';
|
|
3
|
+
const FeaturesList = ({ features, className }) => (_jsx(_Fragment, { children: features.map((feature) => (_jsxs("div", { className: `subscription-card__feature ${feature.isHighlighted ? 'ratafia-feature' : 'main-feature'} ${className}`, children: [feature.image?.url && _jsx(IconSvgURLWithThemeColor, { url: feature.image.url, height: '16', width: '16' }), _jsx(RichTextStrapi, { html: feature.title })] }, feature.title))) }));
|
|
4
|
+
export const CardBody = ({ hasPaddingMainFeature = false, features }) => {
|
|
5
|
+
return (_jsx("div", { className: 'subscription-card__body', children: features && _jsx(FeaturesList, { features: features, className: `${hasPaddingMainFeature && 'has-padding'}` }) }));
|
|
6
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
|
|
3
|
+
import { IconSvgURLWithThemeColor, RichTextStrapi } from '../../atoms'
|
|
4
|
+
import { type FeatureProps } from './RatafiaSubscriptionCard/RatafiaSubscriptionCardProps.types'
|
|
5
|
+
|
|
6
|
+
const FeaturesList: React.FC<{ features: FeatureProps[]; className: string }> = ({ features, className }) => (
|
|
7
|
+
<>
|
|
8
|
+
{features.map((feature) => (
|
|
9
|
+
<div
|
|
10
|
+
key={feature.title}
|
|
11
|
+
className={`subscription-card__feature ${feature.isHighlighted ? 'ratafia-feature' : 'main-feature'} ${className}`}
|
|
12
|
+
>
|
|
13
|
+
{feature.image?.url && <IconSvgURLWithThemeColor url={feature.image.url} height='16' width='16' />}
|
|
14
|
+
<RichTextStrapi html={feature.title} />
|
|
15
|
+
</div>
|
|
16
|
+
))}
|
|
17
|
+
</>
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
export const CardBody: React.FC<{
|
|
21
|
+
hasPaddingMainFeature?: boolean
|
|
22
|
+
features?: FeatureProps[]
|
|
23
|
+
}> = ({ hasPaddingMainFeature = false, features }) => {
|
|
24
|
+
return (
|
|
25
|
+
<div className='subscription-card__body'>
|
|
26
|
+
{features && <FeaturesList features={features} className={`${hasPaddingMainFeature && 'has-padding'}`} />}
|
|
27
|
+
</div>
|
|
28
|
+
)
|
|
29
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Button } from '../../atoms';
|
|
3
|
+
export const CardFooter = ({ buttonStyle, buttonText, dataQa, onClick }) => buttonText ? (_jsx("div", { className: 'subscription-card__footer', children: _jsx(Button, { dataQa: dataQa ?? 'subscription-card-button', givenClass: 'subscription-card__button', color: buttonStyle, label: buttonText, noLink: true, onClick: onClick }) })) : null;
|