@npm_leadtech/legal-lib-components 7.5.2 → 7.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +127 -0
- package/dist/src/components/pages/PricingPage/PricingPage.styled.ts +128 -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
|
@@ -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'
|
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
interface InputProps {
|
|
3
3
|
name: string;
|
|
4
4
|
placeholder: string;
|
|
5
|
+
prefix: string;
|
|
5
6
|
maxLength: number;
|
|
6
7
|
value: string;
|
|
7
8
|
type: 'password' | 'text' | 'number' | 'tel';
|
|
@@ -12,6 +13,7 @@ interface InputProps {
|
|
|
12
13
|
onBlur: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
13
14
|
onKeyDown: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
14
15
|
onKeyUp: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
16
|
+
country: string;
|
|
15
17
|
}
|
|
16
18
|
export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
17
19
|
export {};
|
|
@@ -1,16 +1,36 @@
|
|
|
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';
|
|
3
5
|
import eyeCloseIcon from '../../../../images/svg/eye-close.svg';
|
|
4
6
|
import eyeIcon from '../../../../images/svg/eye-24-px.svg';
|
|
5
|
-
|
|
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) => {
|
|
6
9
|
const [hidden, setHidden] = useState(true);
|
|
7
10
|
const showPassword = () => {
|
|
8
11
|
if (value !== null)
|
|
9
12
|
setHidden(!hidden);
|
|
10
13
|
};
|
|
11
|
-
|
|
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) => {
|
|
12
29
|
if (e.key === 'Enter')
|
|
13
30
|
showPassword();
|
|
14
|
-
}, children: _jsx("img", { src: hidden ? eyeIcon : eyeCloseIcon, alt: '' }) }))
|
|
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' }) }))] }));
|
|
15
35
|
});
|
|
16
36
|
Input.displayName = 'Input';
|
|
@@ -1,11 +1,15 @@
|
|
|
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'
|
|
3
5
|
import eyeCloseIcon from '../../../../images/svg/eye-close.svg'
|
|
4
6
|
import eyeIcon from '../../../../images/svg/eye-24-px.svg'
|
|
7
|
+
import percent from '../../../../images/svg/percent.svg'
|
|
5
8
|
|
|
6
9
|
interface InputProps {
|
|
7
10
|
name: string
|
|
8
11
|
placeholder: string
|
|
12
|
+
prefix: string
|
|
9
13
|
maxLength: number
|
|
10
14
|
value: string
|
|
11
15
|
type: 'password' | 'text' | 'number' | 'tel'
|
|
@@ -16,6 +20,7 @@ interface InputProps {
|
|
|
16
20
|
onBlur: (e: React.FocusEvent<HTMLInputElement>) => void
|
|
17
21
|
onKeyDown: (e: React.KeyboardEvent<HTMLInputElement>) => void
|
|
18
22
|
onKeyUp: (e: React.KeyboardEvent<HTMLInputElement>) => void
|
|
23
|
+
country: string
|
|
19
24
|
}
|
|
20
25
|
|
|
21
26
|
export const Input = React.forwardRef<HTMLInputElement, InputProps>(
|
|
@@ -32,7 +37,9 @@ export const Input = React.forwardRef<HTMLInputElement, InputProps>(
|
|
|
32
37
|
onKeyUp,
|
|
33
38
|
disabled,
|
|
34
39
|
type = 'text',
|
|
35
|
-
maxLength
|
|
40
|
+
maxLength,
|
|
41
|
+
country,
|
|
42
|
+
prefix
|
|
36
43
|
}: InputProps,
|
|
37
44
|
ref
|
|
38
45
|
) => {
|
|
@@ -42,13 +49,33 @@ export const Input = React.forwardRef<HTMLInputElement, InputProps>(
|
|
|
42
49
|
if (value !== null) setHidden(!hidden)
|
|
43
50
|
}
|
|
44
51
|
|
|
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
|
+
|
|
45
67
|
return (
|
|
46
68
|
<>
|
|
69
|
+
{isCurrency && !!prefix && otherCurrency && (
|
|
70
|
+
<div className='input-icon-currency-prefix'>
|
|
71
|
+
<img src={currencyOthers} alt='currency' />
|
|
72
|
+
</div>
|
|
73
|
+
)}
|
|
47
74
|
<input
|
|
48
75
|
type={!hidden && type === 'password' ? 'text' : type}
|
|
49
76
|
name={name}
|
|
50
77
|
id={name}
|
|
51
|
-
className={
|
|
78
|
+
className={finalClassName}
|
|
52
79
|
maxLength={maxLength}
|
|
53
80
|
placeholder={placeholder}
|
|
54
81
|
onChange={onChange}
|
|
@@ -73,6 +100,18 @@ export const Input = React.forwardRef<HTMLInputElement, InputProps>(
|
|
|
73
100
|
<img src={hidden ? eyeIcon : eyeCloseIcon} alt='' />
|
|
74
101
|
</button>
|
|
75
102
|
)}
|
|
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
|
+
)}
|
|
76
115
|
</>
|
|
77
116
|
)
|
|
78
117
|
}
|
|
@@ -6,11 +6,12 @@ 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, disabled, type = 'text', maxLength, errorMessage = '', notes, dialogMenuTip, tooltip = '', givenClass = '', children }, ref) => {
|
|
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) => {
|
|
10
10
|
const classnames = classNames('e-text', {
|
|
11
11
|
[givenClass]: givenClass,
|
|
12
12
|
'e-text--is-invalid': !validate,
|
|
13
|
-
'e-text--group-invalid': !isValidGroup
|
|
13
|
+
'e-text--group-invalid': !isValidGroup,
|
|
14
|
+
'e-text--has-prefix': !!prefix
|
|
14
15
|
});
|
|
15
16
|
const handleChange = (event) => {
|
|
16
17
|
onChange(event);
|
|
@@ -23,14 +24,9 @@ const TextInput = React.forwardRef(({ label, value, validate = true, isValidGrou
|
|
|
23
24
|
};
|
|
24
25
|
const renderInput = () => {
|
|
25
26
|
if (Boolean(format) && type !== 'number' && type !== 'tel') {
|
|
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 }));
|
|
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 }));
|
|
32
28
|
}
|
|
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 }));
|
|
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 }));
|
|
34
30
|
};
|
|
35
31
|
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 })] }));
|
|
36
32
|
});
|
|
@@ -148,6 +148,26 @@
|
|
|
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
|
+
|
|
151
171
|
.input-icon {
|
|
152
172
|
position: absolute;
|
|
153
173
|
transform: translate(-15%, -65%);
|
|
@@ -164,6 +184,30 @@
|
|
|
164
184
|
border: none;
|
|
165
185
|
}
|
|
166
186
|
|
|
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
|
+
|
|
167
211
|
.formgroup--input__button {
|
|
168
212
|
align-self: flex-start;
|
|
169
213
|
font-size: 0.75rem;
|
|
@@ -23,6 +23,7 @@ const TextInput = React.forwardRef<HTMLInputElement, TextInputProps>(
|
|
|
23
23
|
onBlur,
|
|
24
24
|
onKeyDown,
|
|
25
25
|
onKeyUp,
|
|
26
|
+
prefix = '',
|
|
26
27
|
disabled,
|
|
27
28
|
type = 'text',
|
|
28
29
|
maxLength,
|
|
@@ -31,14 +32,16 @@ const TextInput = React.forwardRef<HTMLInputElement, TextInputProps>(
|
|
|
31
32
|
dialogMenuTip,
|
|
32
33
|
tooltip = '',
|
|
33
34
|
givenClass = '',
|
|
34
|
-
children
|
|
35
|
+
children,
|
|
36
|
+
country
|
|
35
37
|
}: TextInputProps,
|
|
36
38
|
ref
|
|
37
39
|
) => {
|
|
38
40
|
const classnames = classNames('e-text', {
|
|
39
41
|
[givenClass]: givenClass,
|
|
40
42
|
'e-text--is-invalid': !validate,
|
|
41
|
-
'e-text--group-invalid': !isValidGroup
|
|
43
|
+
'e-text--group-invalid': !isValidGroup,
|
|
44
|
+
'e-text--has-prefix': !!prefix
|
|
42
45
|
})
|
|
43
46
|
|
|
44
47
|
const handleChange = (event: React.ChangeEvent<HTMLInputElement>): void => {
|
|
@@ -61,11 +64,8 @@ const TextInput = React.forwardRef<HTMLInputElement, TextInputProps>(
|
|
|
61
64
|
id={name}
|
|
62
65
|
placeholder={placeholder}
|
|
63
66
|
className='e-text-input'
|
|
64
|
-
// mask={mask}
|
|
65
|
-
// format={format}
|
|
66
67
|
onChange={onChange}
|
|
67
68
|
onClick={onClick}
|
|
68
|
-
// maskchar={null}
|
|
69
69
|
value={value}
|
|
70
70
|
data-qa={name}
|
|
71
71
|
disabled={disabled}
|
|
@@ -79,6 +79,7 @@ const TextInput = React.forwardRef<HTMLInputElement, TextInputProps>(
|
|
|
79
79
|
<Input
|
|
80
80
|
name={name ?? ''}
|
|
81
81
|
type={type}
|
|
82
|
+
prefix={prefix}
|
|
82
83
|
placeholder={placeholder ?? ''}
|
|
83
84
|
className='e-text-input'
|
|
84
85
|
onChange={handleChange}
|
|
@@ -91,6 +92,7 @@ const TextInput = React.forwardRef<HTMLInputElement, TextInputProps>(
|
|
|
91
92
|
ref={ref}
|
|
92
93
|
onKeyDown={handleKeyDown}
|
|
93
94
|
onKeyUp={handleKeyUp}
|
|
95
|
+
country={country}
|
|
94
96
|
/>
|
|
95
97
|
)
|
|
96
98
|
}
|
|
@@ -20,5 +20,7 @@ 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;
|
|
23
24
|
children?: React.ReactNode;
|
|
25
|
+
country: string;
|
|
24
26
|
}
|
|
@@ -21,5 +21,7 @@ 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
|
|
24
25
|
children?: React.ReactNode
|
|
26
|
+
country: string
|
|
25
27
|
}
|
|
@@ -123,3 +123,36 @@ 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 './
|
|
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 './
|
|
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 './
|
|
36
|
+
export * from './SubscriptionCard'
|
|
37
37
|
export * from './Snackbar'
|
|
38
38
|
export * from './StepGetForm'
|
|
39
39
|
export * from './StepRatafiaCardList'
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Button } from '../../atoms';
|
|
3
|
+
import { HeroContentStyled } from './HeroContent.styled';
|
|
4
|
+
const HeroContent = ({ children, image, button }) => {
|
|
5
|
+
return (_jsxs(HeroContentStyled, { children: [_jsx("div", { className: 'hero-content__image', children: image }), _jsxs("div", { className: 'hero-content__body', children: [children, button != null && (_jsx("div", { className: 'hero-content__body__button', children: _jsx(Button, { ...button }) }))] })] }));
|
|
6
|
+
};
|
|
7
|
+
export default HeroContent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const HeroContentStyled: 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 HeroContentStyled = styled.div `
|
|
4
4
|
display: flex;
|
|
5
5
|
flex-flow: row wrap;
|
|
6
6
|
justify-content: center;
|
|
@@ -9,7 +9,7 @@ export const AboutUsContentStyled = styled.div `
|
|
|
9
9
|
flex-flow: row nowrap;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
.
|
|
12
|
+
.hero-content__body {
|
|
13
13
|
margin-top: 1rem;
|
|
14
14
|
font-family: var(--font-sans);
|
|
15
15
|
|
|
@@ -45,7 +45,7 @@ export const AboutUsContentStyled = styled.div `
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
.
|
|
48
|
+
.hero-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
|
|
4
|
+
export const HeroContentStyled = styled.div`
|
|
5
5
|
display: flex;
|
|
6
6
|
flex-flow: row wrap;
|
|
7
7
|
justify-content: center;
|
|
@@ -10,7 +10,7 @@ export const AboutUsContentStyled = styled.div`
|
|
|
10
10
|
flex-flow: row nowrap;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
.
|
|
13
|
+
.hero-content__body {
|
|
14
14
|
margin-top: 1rem;
|
|
15
15
|
font-family: var(--font-sans);
|
|
16
16
|
|
|
@@ -46,7 +46,7 @@ export const AboutUsContentStyled = styled.div`
|
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
.
|
|
49
|
+
.hero-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 { Button } from '../../atoms'
|
|
4
|
+
import { type HeroContentProps } from './HeroContentPropsProps.types'
|
|
5
|
+
import { HeroContentStyled } from './HeroContent.styled'
|
|
6
|
+
|
|
7
|
+
const HeroContent: FC<HeroContentProps> = ({ children, image, button }) => {
|
|
8
|
+
return (
|
|
9
|
+
<HeroContentStyled>
|
|
10
|
+
<div className={'hero-content__image'}>{image}</div>
|
|
11
|
+
<div className={'hero-content__body'}>
|
|
12
|
+
{children}
|
|
13
|
+
{button != null && (
|
|
14
|
+
<div className={'hero-content__body__button'}>
|
|
15
|
+
<Button {...button} />
|
|
16
|
+
</div>
|
|
17
|
+
)}
|
|
18
|
+
</div>
|
|
19
|
+
</HeroContentStyled>
|
|
20
|
+
)
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export default HeroContent
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as HeroContent } from './HeroContent';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { AsSeeInSection, CardStorySection, ExpertsSection, GuidelinesSection, HeroSection, MidBannerRatafiaSection, PeopleSayAboutUsSection, TryOurFreeLegalBlogsSection } from '../../sections';
|
|
3
3
|
import { ContactContent, HowWeHelp } from '../../organisms';
|
|
4
4
|
export const AboutUsPage = ({ aboutUsSectionProps, ourMissionBlogsSectionProps, ourCoreValuesBlogsSectionProps, cardStorySection, howWeHelp, peopleSayAboutUsSectionProps, guidelinesSectionProps, expertsSectionProps, asSeeInSectionProps, midBannerSectionProps, contactContentProps, isJonSnow = false }) => {
|
|
5
|
-
return (_jsxs(_Fragment, { children: [aboutUsSectionProps != null && _jsx(
|
|
5
|
+
return (_jsxs(_Fragment, { children: [aboutUsSectionProps != null && _jsx(HeroSection, { ...aboutUsSectionProps }), ourMissionBlogsSectionProps != null && _jsx(TryOurFreeLegalBlogsSection, { ...ourMissionBlogsSectionProps }), ourCoreValuesBlogsSectionProps != null && _jsx(TryOurFreeLegalBlogsSection, { ...ourCoreValuesBlogsSectionProps }), cardStorySection != null && _jsx(CardStorySection, { ...cardStorySection }), howWeHelp != null && _jsx(HowWeHelp, { ...howWeHelp }), guidelinesSectionProps != null && (_jsx(GuidelinesSection, { ...guidelinesSectionProps, children: guidelinesSectionProps.contentGuidelines?.children })), expertsSectionProps != null && _jsx(ExpertsSection, { ...expertsSectionProps }), !isJonSnow && peopleSayAboutUsSectionProps != null && (_jsx(PeopleSayAboutUsSection, { ...peopleSayAboutUsSectionProps })), !isJonSnow && asSeeInSectionProps != null && _jsx(AsSeeInSection, { ...asSeeInSectionProps }), !isJonSnow && midBannerSectionProps != null && _jsx(MidBannerRatafiaSection, { ...midBannerSectionProps }), !isJonSnow && contactContentProps != null && _jsx(ContactContent, { ...contactContentProps })] }));
|
|
6
6
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
|
-
AboutUsSection,
|
|
5
4
|
AsSeeInSection,
|
|
6
5
|
CardStorySection,
|
|
7
6
|
ExpertsSection,
|
|
8
7
|
GuidelinesSection,
|
|
8
|
+
HeroSection,
|
|
9
9
|
MidBannerRatafiaSection,
|
|
10
10
|
PeopleSayAboutUsSection,
|
|
11
11
|
TryOurFreeLegalBlogsSection
|
|
@@ -29,7 +29,7 @@ export const AboutUsPage: React.FC<AboutUsPageProps> = ({
|
|
|
29
29
|
}) => {
|
|
30
30
|
return (
|
|
31
31
|
<>
|
|
32
|
-
{aboutUsSectionProps != null && <
|
|
32
|
+
{aboutUsSectionProps != null && <HeroSection {...aboutUsSectionProps} />}
|
|
33
33
|
{ourMissionBlogsSectionProps != null && <TryOurFreeLegalBlogsSection {...ourMissionBlogsSectionProps} />}
|
|
34
34
|
{ourCoreValuesBlogsSectionProps != null && <TryOurFreeLegalBlogsSection {...ourCoreValuesBlogsSectionProps} />}
|
|
35
35
|
{cardStorySection != null && <CardStorySection {...cardStorySection} />}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AsSeeInSectionProps, CardStorySectionProps, ExpertsSectionProps, GuidelinesSectionProps, HeroSectionProps, MidBannerRatafiaSectionProps, PeopleSayAboutUsSectionProps, TryOurFreeLegalBlogsSectionProps, TryUsSectionProps } from '../../sections';
|
|
2
2
|
import { ContactContentProps, HowWeHelpProps } from '../../organisms';
|
|
3
3
|
export interface AboutUsPageProps {
|
|
4
|
-
aboutUsSectionProps?:
|
|
4
|
+
aboutUsSectionProps?: HeroSectionProps;
|
|
5
5
|
ourMissionBlogsSectionProps?: TryOurFreeLegalBlogsSectionProps;
|
|
6
6
|
ourCoreValuesBlogsSectionProps?: TryOurFreeLegalBlogsSectionProps;
|
|
7
7
|
cardStorySection?: CardStorySectionProps;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type {
|
|
2
|
-
AboutUsSectionProps,
|
|
3
2
|
AsSeeInSectionProps,
|
|
4
3
|
CardStorySectionProps,
|
|
5
4
|
ExpertsSectionProps,
|
|
6
5
|
GuidelinesSectionProps,
|
|
6
|
+
HeroSectionProps,
|
|
7
7
|
MidBannerRatafiaSectionProps,
|
|
8
8
|
PeopleSayAboutUsSectionProps,
|
|
9
9
|
TryOurFreeLegalBlogsSectionProps,
|
|
@@ -12,7 +12,7 @@ import type {
|
|
|
12
12
|
import { ContactContentProps, HowWeHelpProps } from '../../organisms'
|
|
13
13
|
|
|
14
14
|
export interface AboutUsPageProps {
|
|
15
|
-
aboutUsSectionProps?:
|
|
15
|
+
aboutUsSectionProps?: HeroSectionProps
|
|
16
16
|
ourMissionBlogsSectionProps?: TryOurFreeLegalBlogsSectionProps
|
|
17
17
|
ourCoreValuesBlogsSectionProps?: TryOurFreeLegalBlogsSectionProps
|
|
18
18
|
cardStorySection?: CardStorySectionProps
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { CardBoxFeaturedSection, CardBoxMinimalSection, FaqSection, HeroSection } from '../../sections';
|
|
3
|
+
import { BenefitCard } from '../../atoms';
|
|
4
|
+
import { PlanBoxPricingSubscriptionCard } from '../../molecules';
|
|
5
|
+
import { PricingPageStyled } from './PricingPage.styled';
|
|
6
|
+
export const PricingPage = ({ benefitsContent, faqsContent, helpResourcesCards, pricingPlanContent, pricingSection, supportContent }) => {
|
|
7
|
+
return (_jsxs(PricingPageStyled, { children: [pricingSection != null && _jsx(HeroSection, { ...pricingSection }), _jsxs("div", { className: 'pricing-plans wrapper wrapper--responsive', children: [pricingPlanContent?.title && _jsx("h2", { className: 'pricing-plans__title', children: pricingPlanContent.title }), _jsx("div", { className: 'pricing-plans__cards', children: pricingPlanContent?.plans?.length > 0 &&
|
|
8
|
+
pricingPlanContent?.plans?.map((plan) => _jsx(PlanBoxPricingSubscriptionCard, { ...plan }, plan?.id)) })] }), _jsx(CardBoxMinimalSection, { cards: helpResourcesCards }), _jsx("div", { className: 'wrapper wrapper--responsive', children: _jsxs("div", { className: 'benefits', children: [benefitsContent?.title && _jsx("h2", { className: 'benefits__title', children: benefitsContent.title }), _jsx("div", { className: 'benefits__cards', children: benefitsContent?.benefitsList?.length > 0 &&
|
|
9
|
+
benefitsContent?.benefitsList?.map((benefit) => (_jsx(BenefitCard, { hasShadow: false, ...benefit }, benefit?.id))) })] }) }), _jsxs("div", { className: 'support-section', children: [supportContent?.title && (_jsxs("div", { className: 'support-section__content', children: [_jsx("h2", { children: supportContent.title }), supportContent.description] })), _jsx(CardBoxFeaturedSection, { cards: supportContent?.benefitsList })] }), _jsx("div", { className: 'faqs-section', children: _jsx(FaqSection, { groups: faqsContent?.faqItems, givenClass: 'faqs-section__content wrapper wrapper--responsive' }) })] }));
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PricingPageStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|