@npm_leadtech/legal-lib-components 5.21.2 → 5.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/components/molecules/FreeDocModalContent/FreeDocModalContent.js +2 -2
- package/dist/src/components/molecules/FreeDocModalContent/FreeDocModalContent.tsx +2 -1
- package/dist/src/components/molecules/FreeDocModalContent/FreeDocModalContent.types.d.ts +1 -0
- package/dist/src/components/molecules/FreeDocModalContent/FreeDocModalContent.types.ts +1 -0
- package/dist/src/components/molecules/HeaderRatafia/HeaderRatafia.js +2 -2
- package/dist/src/components/molecules/HeaderRatafia/HeaderRatafia.tsx +2 -5
- package/dist/src/components/molecules/HeaderRatafia/HeaderRatafiaProps.types.d.ts +0 -2
- package/dist/src/components/molecules/HeaderRatafia/HeaderRatafiaProps.types.ts +0 -2
- package/dist/src/components/molecules/MidBannerRatafiaContent/MidBannerRatafiaContent.js +1 -1
- package/dist/src/components/molecules/MidBannerRatafiaContent/MidBannerRatafiaContent.tsx +1 -1
- package/dist/src/components/molecules/PricingCard/PricingCard.js +2 -2
- package/dist/src/components/molecules/PricingCard/PricingCard.tsx +4 -2
- package/dist/src/components/molecules/PricingCard/PricingCardProps.types.d.ts +2 -0
- package/dist/src/components/molecules/PricingCard/PricingCardProps.types.ts +2 -0
- package/dist/src/components/molecules/UploadRatafiaZone/UploadRatafiaZone.styled.js +1 -2
- package/dist/src/components/molecules/UploadRatafiaZone/UploadRatafiaZone.styled.ts +1 -2
- package/dist/src/components/organisms/FeaturesRatafiaContent/FeaturesRatafiaContent.styled.js +14 -17
- package/dist/src/components/organisms/FeaturesRatafiaContent/FeaturesRatafiaContent.styled.ts +14 -17
- package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafia.js +1 -1
- package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafia.tsx +1 -3
- package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafiaProps.types.d.ts +0 -2
- package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafiaProps.types.ts +0 -2
- package/dist/src/components/sections/FaqSection/FaqSection.styled.js +1 -4
- package/dist/src/components/sections/FaqSection/FaqSection.styled.ts +1 -4
- package/dist/src/components/sections/FeaturesRatafiaSection/FeaturesRatafiaSection.styled.js +1 -0
- package/dist/src/components/sections/FeaturesRatafiaSection/FeaturesRatafiaSection.styled.ts +1 -0
- package/dist/src/components/sections/TryItRatafiaSection/TryItRatafiaSection.js +2 -1
- package/dist/src/components/sections/TryItRatafiaSection/TryItRatafiaSection.tsx +3 -2
- package/package.json +1 -1
- package/dist/src/components/sections/FeaturesRatafiaSection/FeaturesRatafiaSection.scss +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Button } from '../../atoms';
|
|
3
3
|
import { FreeDocModalContentStyled } from './FreeDocModalContent.styled';
|
|
4
|
-
const FreeDocModalContent = ({ bodyTitle, bodyText, closeModal, clickGoToFormInApp, isActiveDocument }) => {
|
|
4
|
+
const FreeDocModalContent = ({ buttonLabel, bodyTitle, bodyText, closeModal, clickGoToFormInApp, isActiveDocument }) => {
|
|
5
5
|
const onGoToApp = () => {
|
|
6
6
|
if (clickGoToFormInApp !== undefined)
|
|
7
7
|
clickGoToFormInApp(null, '', true);
|
|
@@ -12,7 +12,7 @@ const FreeDocModalContent = ({ bodyTitle, bodyText, closeModal, clickGoToFormInA
|
|
|
12
12
|
const buttonProps = {
|
|
13
13
|
color: 'primary',
|
|
14
14
|
size: 'S',
|
|
15
|
-
label:
|
|
15
|
+
label: buttonLabel,
|
|
16
16
|
dataQa: 'free-modal-doc-button',
|
|
17
17
|
...(isActiveDocument ? { noLink: true } : { link: '#' }),
|
|
18
18
|
onClick: isActiveDocument ? onGoToApp : onNavigateToTop
|
|
@@ -7,6 +7,7 @@ import { type FreeDocModalContentProps } from './FreeDocModalContent.types'
|
|
|
7
7
|
import { FreeDocModalContentStyled } from './FreeDocModalContent.styled'
|
|
8
8
|
|
|
9
9
|
const FreeDocModalContent: FC<FreeDocModalContentProps> = ({
|
|
10
|
+
buttonLabel,
|
|
10
11
|
bodyTitle,
|
|
11
12
|
bodyText,
|
|
12
13
|
closeModal,
|
|
@@ -24,7 +25,7 @@ const FreeDocModalContent: FC<FreeDocModalContentProps> = ({
|
|
|
24
25
|
const buttonProps: ButtonProps = {
|
|
25
26
|
color: 'primary',
|
|
26
27
|
size: 'S',
|
|
27
|
-
label:
|
|
28
|
+
label: buttonLabel,
|
|
28
29
|
dataQa: 'free-modal-doc-button',
|
|
29
30
|
...(isActiveDocument ? { noLink: true } : { link: '#' }),
|
|
30
31
|
onClick: isActiveDocument ? onGoToApp : onNavigateToTop
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { ActionButtonHeaderRatafiaCardList } from '../ActionButtonHeaderRatafiaCardList';
|
|
3
3
|
import { HeaderRatafiaStyled } from './HeaderRatafia.styled';
|
|
4
|
-
export const HeaderRatafia = ({ icon, title, actionButtons, isHiddenActionButtons = false
|
|
5
|
-
return (_jsxs(HeaderRatafiaStyled, { className: 'header-ratafia', children: [_jsxs("div", { className: 'header-ratafia__title', children: [_jsx("div", { className: 'header-ratafia__title__icon', children: icon }), _jsx("h1", {
|
|
4
|
+
export const HeaderRatafia = ({ icon, title, actionButtons, isHiddenActionButtons = false }) => {
|
|
5
|
+
return (_jsxs(HeaderRatafiaStyled, { className: 'header-ratafia', children: [_jsxs("div", { className: 'header-ratafia__title', children: [_jsx("div", { className: 'header-ratafia__title__icon', children: icon }), _jsx("h1", { className: 'sans-serif --bold-weight header-ratafia__title__text', children: title })] }), actionButtons !== undefined && !isHiddenActionButtons && (_jsx(ActionButtonHeaderRatafiaCardList, { actionButtons: actionButtons }))] }));
|
|
6
6
|
};
|
|
7
7
|
export default HeaderRatafia;
|
|
@@ -8,16 +8,13 @@ export const HeaderRatafia: React.FC<HeaderRatafiaProps> = ({
|
|
|
8
8
|
icon,
|
|
9
9
|
title,
|
|
10
10
|
actionButtons,
|
|
11
|
-
isHiddenActionButtons = false
|
|
12
|
-
headerTitleRef
|
|
11
|
+
isHiddenActionButtons = false
|
|
13
12
|
}) => {
|
|
14
13
|
return (
|
|
15
14
|
<HeaderRatafiaStyled className='header-ratafia'>
|
|
16
15
|
<div className='header-ratafia__title'>
|
|
17
16
|
<div className='header-ratafia__title__icon'>{icon}</div>
|
|
18
|
-
<h1
|
|
19
|
-
{title}
|
|
20
|
-
</h1>
|
|
17
|
+
<h1 className='sans-serif --bold-weight header-ratafia__title__text'>{title}</h1>
|
|
21
18
|
</div>
|
|
22
19
|
{actionButtons !== undefined && !isHiddenActionButtons && (
|
|
23
20
|
<ActionButtonHeaderRatafiaCardList actionButtons={actionButtons} />
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import type { ActionButtonHeaderRatafiaCardProps } from '../../atoms';
|
|
2
|
-
import React from 'react';
|
|
3
2
|
export interface HeaderRatafiaProps {
|
|
4
3
|
icon?: React.ReactNode;
|
|
5
4
|
title: string;
|
|
6
5
|
actionButtons?: ActionButtonHeaderRatafiaCardProps[];
|
|
7
|
-
headerTitleRef?: React.RefObject<HTMLHeadingElement>;
|
|
8
6
|
isHiddenActionButtons: boolean;
|
|
9
7
|
}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import type { ActionButtonHeaderRatafiaCardProps } from '../../atoms'
|
|
2
|
-
import React from 'react'
|
|
3
2
|
|
|
4
3
|
export interface HeaderRatafiaProps {
|
|
5
4
|
icon?: React.ReactNode
|
|
6
5
|
title: string
|
|
7
6
|
actionButtons?: ActionButtonHeaderRatafiaCardProps[]
|
|
8
|
-
headerTitleRef?: React.RefObject<HTMLHeadingElement>
|
|
9
7
|
isHiddenActionButtons: boolean
|
|
10
8
|
}
|
|
@@ -2,6 +2,6 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { Button } from '../../atoms';
|
|
3
3
|
import { MidBannerRatafiaContentStyled } from './MidBannerRatafiaContent.styled';
|
|
4
4
|
const MidBannerRatafiaContent = ({ title, paragraph, ctaLabel, ctaLink, ctaDataQa }) => {
|
|
5
|
-
return (_jsxs(MidBannerRatafiaContentStyled, { className: 'mid-banner-ratafia-content', children: [_jsxs("div", { className: 'mid-banner-ratafia-content__header', children: [_jsx("
|
|
5
|
+
return (_jsxs(MidBannerRatafiaContentStyled, { className: 'mid-banner-ratafia-content', children: [_jsxs("div", { className: 'mid-banner-ratafia-content__header', children: [_jsx("h2", { className: 'sans-serif --super-large --bold-weight mid-banner-ratafia-content__header__title', children: title }), _jsx("div", { className: 'sans-serif --super-medium mid-banner-ratafia-content__header__description', children: paragraph })] }), _jsx(Button, { givenClass: 'mid-banner-ratafia-content__cta', dataQa: ctaDataQa, link: ctaLink, color: 'primary', label: ctaLabel })] }));
|
|
6
6
|
};
|
|
7
7
|
export default MidBannerRatafiaContent;
|
|
@@ -14,7 +14,7 @@ const MidBannerRatafiaContent: FC<MidBannerRatafiaContentProps> = ({
|
|
|
14
14
|
return (
|
|
15
15
|
<MidBannerRatafiaContentStyled className='mid-banner-ratafia-content'>
|
|
16
16
|
<div className='mid-banner-ratafia-content__header'>
|
|
17
|
-
<
|
|
17
|
+
<h2 className='sans-serif --super-large --bold-weight mid-banner-ratafia-content__header__title'>{title}</h2>
|
|
18
18
|
<div className='sans-serif --super-medium mid-banner-ratafia-content__header__description'>{paragraph}</div>
|
|
19
19
|
</div>
|
|
20
20
|
<Button
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
2
2
|
import { useState } from 'react';
|
|
3
3
|
import { Button, Message } from '../../atoms';
|
|
4
4
|
import { PricingCardStyled } from './PricingCard.styled';
|
|
5
|
-
const PricingCard = ({ order, subscriptionId, onChangeRadio, isChecked = false, planName, price, currency, underPricingText, featuresList = [], children, disclaimer, message, cardButton }) => {
|
|
5
|
+
const PricingCard = ({ order, subscriptionId, onChangeRadio, isChecked = false, planName, price, currency, underPricingText, featuresList = [], children, disclaimer, message, cardButton, seeLessLabel, seeMoreLabel }) => {
|
|
6
6
|
const [cardState, setCardState] = useState({ expanded: false });
|
|
7
7
|
if (planName === undefined ||
|
|
8
8
|
(onChangeRadio != null && subscriptionId === undefined) ||
|
|
@@ -22,7 +22,7 @@ const PricingCard = ({ order, subscriptionId, onChangeRadio, isChecked = false,
|
|
|
22
22
|
return { ...prevState };
|
|
23
23
|
});
|
|
24
24
|
};
|
|
25
|
-
const renderMoreMobileButton = (_jsx(Button, { dataQa: '', givenClass: 'see-more-button', color: 'tertiary', label: cardState.expanded ? 'See less' : 'See more', noLink: true, onClick: toggleCardContent }));
|
|
25
|
+
const renderMoreMobileButton = (_jsx(Button, { dataQa: '', givenClass: 'see-more-button', color: 'tertiary', label: cardState.expanded ? (seeLessLabel ?? 'See less') : (seeMoreLabel ?? 'See more'), noLink: true, onClick: toggleCardContent }));
|
|
26
26
|
const renderHeaderContent = (_jsx("div", { className: 'pricing-card__header', children: _jsx("h5", { className: 'sans-serif --big pricing-card__header__text', children: _jsx("strong", { children: planName }) }) }));
|
|
27
27
|
const renderBodyContent = (_jsxs("div", { className: 'pricing-card__body', children: [Boolean(price) && (_jsxs("div", { className: 'sans-serif pricing-card__body__price', children: [_jsx("strong", { children: price }), _jsx("span", { children: currency }), Boolean(underPricingText) && _jsx("div", { className: 'pricing-card__body__text', children: underPricingText })] })), Boolean(featuresList.length) && (_jsxs("div", { className: `pricing-card__body__features-list ${expandedContentClass}`, children: [_jsx("hr", {}), _jsx("ul", { children: featuresList.map((feature) => (_jsx("li", { className: 'pricing-card__body__features-list__item', children: feature }, 'feature-item-' + feature))) })] })), children, featuresList != null && renderMoreMobileButton, cardButton, message != null && _jsx(Message, { ...message })] }));
|
|
28
28
|
return (_jsxs(PricingCardStyled, { style: style, className: `pricing-card grid__column ${selectableCardClass} ${selectedCardClass}`, children: [_jsx("div", { className: 'pricing-card__wrapper', children: isSelectableCard ? (_jsxs("label", { className: 'pricing-card__radio-label', "data-qa": planName, children: [_jsx("input", { className: 'radio-input', type: 'radio', value: subscriptionId, onChange: onChangeRadio, name: 'pricing', checked: isChecked }), _jsx("span", { className: 'radio-checkbox' }), renderHeaderContent, renderBodyContent] })) : (_jsxs(_Fragment, { children: [renderHeaderContent, renderBodyContent] })) }), Boolean(disclaimer) && (_jsx("div", { className: 'pricing-card__disclaimer', children: _jsx("small", { children: disclaimer }) }))] }));
|
|
@@ -17,7 +17,9 @@ const PricingCard: FC<PricingCardProps> = ({
|
|
|
17
17
|
children,
|
|
18
18
|
disclaimer,
|
|
19
19
|
message,
|
|
20
|
-
cardButton
|
|
20
|
+
cardButton,
|
|
21
|
+
seeLessLabel,
|
|
22
|
+
seeMoreLabel
|
|
21
23
|
}) => {
|
|
22
24
|
const [cardState, setCardState] = useState({ expanded: false })
|
|
23
25
|
if (
|
|
@@ -48,7 +50,7 @@ const PricingCard: FC<PricingCardProps> = ({
|
|
|
48
50
|
dataQa=''
|
|
49
51
|
givenClass='see-more-button'
|
|
50
52
|
color='tertiary'
|
|
51
|
-
label={cardState.expanded ? 'See less' : 'See more'}
|
|
53
|
+
label={cardState.expanded ? (seeLessLabel ?? 'See less') : (seeMoreLabel ?? 'See more')}
|
|
52
54
|
noLink
|
|
53
55
|
onClick={toggleCardContent}
|
|
54
56
|
/>
|
|
@@ -8,7 +8,7 @@ export const UploadRatafiaZoneStyled = styled.div `
|
|
|
8
8
|
box-shadow: 0 2px 6px 0 rgba(2, 55, 74, 0.25);
|
|
9
9
|
|
|
10
10
|
@media ${device['landscape-tablets']} {
|
|
11
|
-
max-width:
|
|
11
|
+
max-width: 340px;
|
|
12
12
|
}
|
|
13
13
|
@media ${device.laptop} {
|
|
14
14
|
max-width: 560px;
|
|
@@ -36,7 +36,6 @@ export const UploadRatafiaZoneStyled = styled.div `
|
|
|
36
36
|
|
|
37
37
|
&__title {
|
|
38
38
|
margin-bottom: 2.5rem;
|
|
39
|
-
transition: color 0.5s;
|
|
40
39
|
}
|
|
41
40
|
&__cta {
|
|
42
41
|
display: flex;
|
|
@@ -9,7 +9,7 @@ export const UploadRatafiaZoneStyled = styled.div`
|
|
|
9
9
|
box-shadow: 0 2px 6px 0 rgba(2, 55, 74, 0.25);
|
|
10
10
|
|
|
11
11
|
@media ${device['landscape-tablets']} {
|
|
12
|
-
max-width:
|
|
12
|
+
max-width: 340px;
|
|
13
13
|
}
|
|
14
14
|
@media ${device.laptop} {
|
|
15
15
|
max-width: 560px;
|
|
@@ -37,7 +37,6 @@ export const UploadRatafiaZoneStyled = styled.div`
|
|
|
37
37
|
|
|
38
38
|
&__title {
|
|
39
39
|
margin-bottom: 2.5rem;
|
|
40
|
-
transition: color 0.5s;
|
|
41
40
|
}
|
|
42
41
|
&__cta {
|
|
43
42
|
display: flex;
|
package/dist/src/components/organisms/FeaturesRatafiaContent/FeaturesRatafiaContent.styled.js
CHANGED
|
@@ -7,24 +7,21 @@ export const FeaturesRatafiaContentStyled = styled.div `
|
|
|
7
7
|
flex: 1 0 0;
|
|
8
8
|
gap: 1.5rem;
|
|
9
9
|
|
|
10
|
-
.features-ratafia-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
gap: 1rem;
|
|
18
|
-
margin-bottom: 1rem;
|
|
10
|
+
.features-ratafia-content__wrapper__title {
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
align-items: center;
|
|
15
|
+
align-self: stretch;
|
|
16
|
+
gap: 1rem;
|
|
19
17
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
18
|
+
&__text {
|
|
19
|
+
align-self: stretch;
|
|
20
|
+
color: var(--neutral-neutral-1);
|
|
21
|
+
}
|
|
22
|
+
&__description {
|
|
23
|
+
align-self: stretch;
|
|
24
|
+
color: var(--neutral-neutral-1);
|
|
28
25
|
}
|
|
29
26
|
}
|
|
30
27
|
`;
|
package/dist/src/components/organisms/FeaturesRatafiaContent/FeaturesRatafiaContent.styled.ts
CHANGED
|
@@ -8,24 +8,21 @@ export const FeaturesRatafiaContentStyled = styled.div`
|
|
|
8
8
|
flex: 1 0 0;
|
|
9
9
|
gap: 1.5rem;
|
|
10
10
|
|
|
11
|
-
.features-ratafia-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
gap: 1rem;
|
|
19
|
-
margin-bottom: 1rem;
|
|
11
|
+
.features-ratafia-content__wrapper__title {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
align-items: center;
|
|
16
|
+
align-self: stretch;
|
|
17
|
+
gap: 1rem;
|
|
20
18
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
19
|
+
&__text {
|
|
20
|
+
align-self: stretch;
|
|
21
|
+
color: var(--neutral-neutral-1);
|
|
22
|
+
}
|
|
23
|
+
&__description {
|
|
24
|
+
align-self: stretch;
|
|
25
|
+
color: var(--neutral-neutral-1);
|
|
29
26
|
}
|
|
30
27
|
}
|
|
31
28
|
`
|
package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafia.js
CHANGED
|
@@ -3,6 +3,6 @@ import { KeyFactCardListRatafia } from '../../molecules';
|
|
|
3
3
|
import { KeyFactsResultContentRatafiaStyled } from './KeyFactsResultContentRatafia.styled';
|
|
4
4
|
import { ReviewKeyFactsResultRatafia } from '../../atoms';
|
|
5
5
|
export const KeyFactsResultContentRatafia = ({ result, review }) => {
|
|
6
|
-
return (_jsxs(KeyFactsResultContentRatafiaStyled, { children: [_jsx("h2", {
|
|
6
|
+
return (_jsxs(KeyFactsResultContentRatafiaStyled, { children: [_jsx("h2", { className: 'sans-serif --bold-weight key-facts-result-content__document-name', children: result?.documentName }), _jsxs("div", { className: 'key-facts-result-content__content', children: [result !== null && _jsx(KeyFactCardListRatafia, { keyFacts: result.keyFacts }), _jsx(ReviewKeyFactsResultRatafia, { ...review })] })] }));
|
|
7
7
|
};
|
|
8
8
|
export default KeyFactsResultContentRatafia;
|
package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafia.tsx
CHANGED
|
@@ -8,9 +8,7 @@ import { ReviewKeyFactsResultRatafia } from '../../atoms'
|
|
|
8
8
|
export const KeyFactsResultContentRatafia: React.FC<KeyFactsResultContentRatafiaProps> = ({ result, review }) => {
|
|
9
9
|
return (
|
|
10
10
|
<KeyFactsResultContentRatafiaStyled>
|
|
11
|
-
<h2
|
|
12
|
-
{result?.documentName}
|
|
13
|
-
</h2>
|
|
11
|
+
<h2 className='sans-serif --bold-weight key-facts-result-content__document-name'>{result?.documentName}</h2>
|
|
14
12
|
<div className='key-facts-result-content__content'>
|
|
15
13
|
{result !== null && <KeyFactCardListRatafia keyFacts={result.keyFacts} />}
|
|
16
14
|
<ReviewKeyFactsResultRatafia {...review} />
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { KeyFactRatafiaCardProps, ReviewKeyFactsResultRatafiaProps } from '../../atoms';
|
|
2
|
-
import React from 'react';
|
|
3
2
|
export interface KeyFactsResultContentRatafiaProps {
|
|
4
3
|
result: KeyFactsResultProps | null;
|
|
5
4
|
review: ReviewKeyFactsResultRatafiaProps;
|
|
@@ -7,5 +6,4 @@ export interface KeyFactsResultContentRatafiaProps {
|
|
|
7
6
|
export interface KeyFactsResultProps {
|
|
8
7
|
documentName: string;
|
|
9
8
|
keyFacts: KeyFactRatafiaCardProps[];
|
|
10
|
-
documentNameRef?: React.RefObject<HTMLHeadingElement>;
|
|
11
9
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { KeyFactRatafiaCardProps, ReviewKeyFactsResultRatafiaProps } from '../../atoms'
|
|
2
|
-
import React from 'react'
|
|
3
2
|
|
|
4
3
|
export interface KeyFactsResultContentRatafiaProps {
|
|
5
4
|
result: KeyFactsResultProps | null
|
|
@@ -9,5 +8,4 @@ export interface KeyFactsResultContentRatafiaProps {
|
|
|
9
8
|
export interface KeyFactsResultProps {
|
|
10
9
|
documentName: string
|
|
11
10
|
keyFacts: KeyFactRatafiaCardProps[]
|
|
12
|
-
documentNameRef?: React.RefObject<HTMLHeadingElement>
|
|
13
11
|
}
|
|
@@ -8,7 +8,7 @@ export const FaqSectionStyled = styled.section `
|
|
|
8
8
|
max-width: 700px;
|
|
9
9
|
width: 100%;
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
.faq-ratafia-section {
|
|
12
12
|
display: flex;
|
|
13
13
|
align-items: center;
|
|
14
14
|
justify-content: center;
|
|
@@ -25,8 +25,5 @@ export const FaqSectionStyled = styled.section `
|
|
|
25
25
|
@media ${device['desktop-xl']} {
|
|
26
26
|
padding: 3rem 28rem 5rem 28rem;
|
|
27
27
|
}
|
|
28
|
-
.faqs {
|
|
29
|
-
max-width: 56.75rem;
|
|
30
|
-
}
|
|
31
28
|
}
|
|
32
29
|
`;
|
|
@@ -9,7 +9,7 @@ export const FaqSectionStyled = styled.section`
|
|
|
9
9
|
max-width: 700px;
|
|
10
10
|
width: 100%;
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
.faq-ratafia-section {
|
|
13
13
|
display: flex;
|
|
14
14
|
align-items: center;
|
|
15
15
|
justify-content: center;
|
|
@@ -26,8 +26,5 @@ export const FaqSectionStyled = styled.section`
|
|
|
26
26
|
@media ${device['desktop-xl']} {
|
|
27
27
|
padding: 3rem 28rem 5rem 28rem;
|
|
28
28
|
}
|
|
29
|
-
.faqs {
|
|
30
|
-
max-width: 56.75rem;
|
|
31
|
-
}
|
|
32
29
|
}
|
|
33
30
|
`
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { TryItRatafiaSectionStyled } from './TryItRatafiaSection.styled';
|
|
3
|
+
// import './TryItRatafiaSection.scss'
|
|
3
4
|
const TryItRatafiaSection = ({ icon, paragraph, children }) => {
|
|
4
|
-
return (_jsx(TryItRatafiaSectionStyled, { className: 'try-it-ratafia-section', children: _jsxs("div", { className: 'try-it-ratafia-section__wrapper background-ratafia-animation', children: [_jsxs("div", { className: 'try-it-ratafia-section__wrapper__content', children: [icon !== null && _jsx("div", { className: 'try-it-ratafia-section__wrapper__content__icon', children: icon }), _jsx("
|
|
5
|
+
return (_jsx(TryItRatafiaSectionStyled, { className: 'try-it-ratafia-section', children: _jsxs("div", { className: 'try-it-ratafia-section__wrapper background-ratafia-animation', children: [_jsxs("div", { className: 'try-it-ratafia-section__wrapper__content', children: [icon !== null && _jsx("div", { className: 'try-it-ratafia-section__wrapper__content__icon', children: icon }), _jsx("h2", { className: 'sans-serif --extra-large --bold-weight try-it-ratafia-section__wrapper__content__title', children: paragraph })] }), _jsx("span", { className: 'try-it-ratafia-section__wrapper__children', children: children })] }) }));
|
|
5
6
|
};
|
|
6
7
|
export default TryItRatafiaSection;
|
|
@@ -2,6 +2,7 @@ import React, { type FC } from 'react'
|
|
|
2
2
|
|
|
3
3
|
import { type TryItRatafiaSectionProps } from './TryItRatafiaSectionProps.types'
|
|
4
4
|
import { TryItRatafiaSectionStyled } from './TryItRatafiaSection.styled'
|
|
5
|
+
// import './TryItRatafiaSection.scss'
|
|
5
6
|
|
|
6
7
|
const TryItRatafiaSection: FC<TryItRatafiaSectionProps> = ({ icon, paragraph, children }) => {
|
|
7
8
|
return (
|
|
@@ -9,9 +10,9 @@ const TryItRatafiaSection: FC<TryItRatafiaSectionProps> = ({ icon, paragraph, ch
|
|
|
9
10
|
<div className='try-it-ratafia-section__wrapper background-ratafia-animation'>
|
|
10
11
|
<div className='try-it-ratafia-section__wrapper__content'>
|
|
11
12
|
{icon !== null && <div className={'try-it-ratafia-section__wrapper__content__icon'}>{icon}</div>}
|
|
12
|
-
<
|
|
13
|
+
<h2 className='sans-serif --extra-large --bold-weight try-it-ratafia-section__wrapper__content__title'>
|
|
13
14
|
{paragraph}
|
|
14
|
-
</
|
|
15
|
+
</h2>
|
|
15
16
|
</div>
|
|
16
17
|
<span className='try-it-ratafia-section__wrapper__children'>{children}</span>
|
|
17
18
|
</div>
|
package/package.json
CHANGED
|
File without changes
|