@npm_leadtech/legal-lib-components 5.19.0 → 5.20.1
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/atoms/DisclaimerRatafia/DisclaimerRatafia.js +1 -1
- package/dist/src/components/atoms/DisclaimerRatafia/DisclaimerRatafia.tsx +0 -3
- package/dist/src/components/atoms/GoogleButton/GoogleButton.js +2 -2
- package/dist/src/components/atoms/GoogleButton/GoogleButton.tsx +2 -2
- package/dist/src/components/atoms/GoogleButton/GoogleButtonProps.types.d.ts +1 -0
- package/dist/src/components/atoms/GoogleButton/GoogleButtonProps.types.ts +1 -0
- package/dist/src/components/molecules/HeaderRatafia/HeaderRatafia.js +2 -2
- package/dist/src/components/molecules/HeaderRatafia/HeaderRatafia.tsx +5 -2
- package/dist/src/components/molecules/HeaderRatafia/HeaderRatafiaProps.types.d.ts +2 -0
- package/dist/src/components/molecules/HeaderRatafia/HeaderRatafiaProps.types.ts +2 -0
- 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/UploadRatafiaZone/UploadRatafiaZone.styled.js +2 -1
- package/dist/src/components/molecules/UploadRatafiaZone/UploadRatafiaZone.styled.ts +2 -1
- package/dist/src/components/organisms/FeaturesRatafiaContent/FeaturesRatafiaContent.styled.js +17 -14
- package/dist/src/components/organisms/FeaturesRatafiaContent/FeaturesRatafiaContent.styled.ts +17 -14
- package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafia.js +1 -1
- package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafia.tsx +3 -1
- package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafiaProps.types.d.ts +2 -0
- package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafiaProps.types.ts +2 -0
- package/dist/src/components/organisms/LoginRatafiaContent/LoginRatafiaContent.js +4 -3
- package/dist/src/components/organisms/LoginRatafiaContent/LoginRatafiaContent.styled.js +7 -0
- package/dist/src/components/organisms/LoginRatafiaContent/LoginRatafiaContent.styled.ts +7 -0
- package/dist/src/components/organisms/LoginRatafiaContent/LoginRatafiaContent.tsx +8 -2
- package/dist/src/components/pages/LoginRatafiaPage/LoginRatafiaPage.styled.js +11 -2
- package/dist/src/components/pages/LoginRatafiaPage/LoginRatafiaPage.styled.ts +11 -2
- package/dist/src/components/sections/FaqSection/FaqSection.styled.js +4 -1
- package/dist/src/components/sections/FaqSection/FaqSection.styled.ts +4 -1
- package/dist/src/components/sections/FeaturesRatafiaSection/FeaturesRatafiaSection.scss +0 -0
- package/dist/src/components/sections/FeaturesRatafiaSection/FeaturesRatafiaSection.styled.js +0 -1
- package/dist/src/components/sections/FeaturesRatafiaSection/FeaturesRatafiaSection.styled.ts +0 -1
- package/dist/src/components/sections/TryItRatafiaSection/TryItRatafiaSection.js +1 -2
- package/dist/src/components/sections/TryItRatafiaSection/TryItRatafiaSection.tsx +2 -3
- package/package.json +1 -2
|
@@ -16,6 +16,6 @@ export const DisclaimerRatafia = ({ icon, text, ctaTextShowDisclaimer, ctaTextCl
|
|
|
16
16
|
ctaTextCloseDisclaimer.onClick();
|
|
17
17
|
};
|
|
18
18
|
const existLegalAdviceText = Boolean(legalAdviceText);
|
|
19
|
-
return (_jsxs(DisclaimerRatafiaStyled, { className: 'disclaimer-ratafia', children: [_jsxs("div", { className: 'disclaimer-ratafia__text-desktop', children: [_jsxs("div", { className: 'disclaimer-ratafia__text', children: [_jsx("div", { className: 'disclaimer-ratafia__text__icon', children: icon }), _jsx("p", { className: 'sans-serif --small disclaimer-ratafia__text__text', children: text })] }), existLegalAdviceText && (_jsx("div", { className: 'disclaimer-ratafia__legal-advice', children: _jsx("span", { className: 'sans-serif --extra-small disclaimer-ratafia__copyright__text', children: legalAdviceText }) })), _jsx("div", { className: 'disclaimer-ratafia__copyright', children: _jsx("span", { className: 'sans-serif --extra-small disclaimer-ratafia__copyright__text', children: copyrightText }) })] }), _jsxs("div", { className: 'disclaimer-ratafia__text-mobile', children: [_jsx("div", { className: 'disclaimer-ratafia__text-mobile-text', children: _jsxs("button", { "data-qa": ctaTextShowDisclaimer.dataQa, className: 'sans-serif --small disclaimer-ratafia__text__text', onClick: handleShowDisclaimer, children: [_jsx("div", { className: 'disclaimer-ratafia__text__icon', children: icon }), ctaTextShowDisclaimer.text, _jsx("div", { className: 'disclaimer-ratafia__text__arrow', children: _jsx(ChevronRight, {}) })] }) }), disclaimer && (_jsxs(_Fragment, { children: [_jsx("div", { className: 'disclaimer-ratafia__disclaimer-background' }), _jsxs("div", { className: 'disclaimer-ratafia__disclaimer-fixed', children: [_jsx("p", { className: 'disclaimer-ratafia__disclaimer-fixed__title', children: ctaTextShowDisclaimer.text }), _jsx("p", { className: 'sans-serif --small disclaimer-ratafia__disclaimer-fixed__subTitle', children: text }),
|
|
19
|
+
return (_jsxs(DisclaimerRatafiaStyled, { className: 'disclaimer-ratafia', children: [_jsxs("div", { className: 'disclaimer-ratafia__text-desktop', children: [_jsxs("div", { className: 'disclaimer-ratafia__text', children: [_jsx("div", { className: 'disclaimer-ratafia__text__icon', children: icon }), _jsx("p", { className: 'sans-serif --small disclaimer-ratafia__text__text', children: text })] }), existLegalAdviceText && (_jsx("div", { className: 'disclaimer-ratafia__legal-advice', children: _jsx("span", { className: 'sans-serif --extra-small disclaimer-ratafia__copyright__text', children: legalAdviceText }) })), _jsx("div", { className: 'disclaimer-ratafia__copyright', children: _jsx("span", { className: 'sans-serif --extra-small disclaimer-ratafia__copyright__text', children: copyrightText }) })] }), _jsxs("div", { className: 'disclaimer-ratafia__text-mobile', children: [_jsx("div", { className: 'disclaimer-ratafia__text-mobile-text', children: _jsxs("button", { "data-qa": ctaTextShowDisclaimer.dataQa, className: 'sans-serif --small disclaimer-ratafia__text__text', onClick: handleShowDisclaimer, children: [_jsx("div", { className: 'disclaimer-ratafia__text__icon', children: icon }), ctaTextShowDisclaimer.text, _jsx("div", { className: 'disclaimer-ratafia__text__arrow', children: _jsx(ChevronRight, {}) })] }) }), disclaimer && (_jsxs(_Fragment, { children: [_jsx("div", { className: 'disclaimer-ratafia__disclaimer-background' }), _jsxs("div", { className: 'disclaimer-ratafia__disclaimer-fixed', children: [_jsx("p", { className: 'disclaimer-ratafia__disclaimer-fixed__title', children: ctaTextShowDisclaimer.text }), _jsx("p", { className: 'sans-serif --small disclaimer-ratafia__disclaimer-fixed__subTitle', children: text }), _jsx("div", { className: 'sans-serif --small disclaimer-ratafia__disclaimer-fixed__text', children: copyrightText }), _jsx(Button, { color: 'primary', label: ctaTextCloseDisclaimer.text, givenClass: 'disclaimer-ratafia__disclaimer-fixed__cta', onClick: handleCloseDisclaimer, noLink: true, dataQa: ctaTextCloseDisclaimer.dataQa })] })] }))] })] }));
|
|
20
20
|
};
|
|
21
21
|
export default DisclaimerRatafia;
|
|
@@ -65,9 +65,6 @@ export const DisclaimerRatafia: React.FC<DisclaimerRatafiaProps> = ({
|
|
|
65
65
|
<div className='disclaimer-ratafia__disclaimer-fixed'>
|
|
66
66
|
<p className='disclaimer-ratafia__disclaimer-fixed__title'>{ctaTextShowDisclaimer.text}</p>
|
|
67
67
|
<p className='sans-serif --small disclaimer-ratafia__disclaimer-fixed__subTitle'>{text}</p>
|
|
68
|
-
{existLegalAdviceText && (
|
|
69
|
-
<div className='sans-serif --small disclaimer-ratafia__disclaimer-fixed__text'>{legalAdviceText}</div>
|
|
70
|
-
)}
|
|
71
68
|
<div className='sans-serif --small disclaimer-ratafia__disclaimer-fixed__text'>{copyrightText}</div>
|
|
72
69
|
<Button
|
|
73
70
|
color='primary'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { GoogleButtonStyled } from './GoogleButton.styled';
|
|
3
3
|
import logoGoogle from '../../../../images/svg/logo-google.svg';
|
|
4
|
-
const GoogleButton = ({ onClick, label = 'Log In with Google' }) => {
|
|
5
|
-
return (_jsxs(GoogleButtonStyled, { type: 'button', className: 'google-button', onClick: onClick, children: [_jsx("img", { className: 'google-logo', src: logoGoogle, alt: '' }), _jsx("span", { children: label })] }));
|
|
4
|
+
const GoogleButton = ({ onClick, label = 'Log In with Google', dataQa = 'google_sign_in' }) => {
|
|
5
|
+
return (_jsxs(GoogleButtonStyled, { type: 'button', className: 'google-button', onClick: onClick, "data-qa": dataQa, children: [_jsx("img", { className: 'google-logo', src: logoGoogle, alt: '' }), _jsx("span", { children: label })] }));
|
|
6
6
|
};
|
|
7
7
|
export default GoogleButton;
|
|
@@ -4,9 +4,9 @@ import { type GoogleButtonProps } from './GoogleButtonProps.types'
|
|
|
4
4
|
import { GoogleButtonStyled } from './GoogleButton.styled'
|
|
5
5
|
import logoGoogle from '../../../../images/svg/logo-google.svg'
|
|
6
6
|
|
|
7
|
-
const GoogleButton: FC<GoogleButtonProps> = ({ onClick, label = 'Log In with Google' }) => {
|
|
7
|
+
const GoogleButton: FC<GoogleButtonProps> = ({ onClick, label = 'Log In with Google', dataQa = 'google_sign_in' }) => {
|
|
8
8
|
return (
|
|
9
|
-
<GoogleButtonStyled type='button' className='google-button' onClick={onClick}>
|
|
9
|
+
<GoogleButtonStyled type='button' className='google-button' onClick={onClick} data-qa={dataQa}>
|
|
10
10
|
<img className='google-logo' src={logoGoogle} alt=''></img>
|
|
11
11
|
<span>{label}</span>
|
|
12
12
|
</GoogleButtonStyled>
|
|
@@ -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", { className: 'sans-serif --bold-weight header-ratafia__title__text', children: title })] }), actionButtons !== undefined && !isHiddenActionButtons && (_jsx(ActionButtonHeaderRatafiaCardList, { actionButtons: actionButtons }))] }));
|
|
4
|
+
export const HeaderRatafia = ({ icon, title, actionButtons, isHiddenActionButtons = false, headerTitleRef }) => {
|
|
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", { ref: headerTitleRef, 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,13 +8,16 @@ export const HeaderRatafia: React.FC<HeaderRatafiaProps> = ({
|
|
|
8
8
|
icon,
|
|
9
9
|
title,
|
|
10
10
|
actionButtons,
|
|
11
|
-
isHiddenActionButtons = false
|
|
11
|
+
isHiddenActionButtons = false,
|
|
12
|
+
headerTitleRef
|
|
12
13
|
}) => {
|
|
13
14
|
return (
|
|
14
15
|
<HeaderRatafiaStyled className='header-ratafia'>
|
|
15
16
|
<div className='header-ratafia__title'>
|
|
16
17
|
<div className='header-ratafia__title__icon'>{icon}</div>
|
|
17
|
-
<h1 className='sans-serif --bold-weight header-ratafia__title__text'>
|
|
18
|
+
<h1 ref={headerTitleRef} className='sans-serif --bold-weight header-ratafia__title__text'>
|
|
19
|
+
{title}
|
|
20
|
+
</h1>
|
|
18
21
|
</div>
|
|
19
22
|
{actionButtons !== undefined && !isHiddenActionButtons && (
|
|
20
23
|
<ActionButtonHeaderRatafiaCardList actionButtons={actionButtons} />
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { ActionButtonHeaderRatafiaCardProps } from '../../atoms';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
export interface HeaderRatafiaProps {
|
|
3
4
|
icon?: React.ReactNode;
|
|
4
5
|
title: string;
|
|
5
6
|
actionButtons?: ActionButtonHeaderRatafiaCardProps[];
|
|
7
|
+
headerTitleRef?: React.RefObject<HTMLHeadingElement>;
|
|
6
8
|
isHiddenActionButtons: boolean;
|
|
7
9
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { ActionButtonHeaderRatafiaCardProps } from '../../atoms'
|
|
2
|
+
import React from 'react'
|
|
2
3
|
|
|
3
4
|
export interface HeaderRatafiaProps {
|
|
4
5
|
icon?: React.ReactNode
|
|
5
6
|
title: string
|
|
6
7
|
actionButtons?: ActionButtonHeaderRatafiaCardProps[]
|
|
8
|
+
headerTitleRef?: React.RefObject<HTMLHeadingElement>
|
|
7
9
|
isHiddenActionButtons: boolean
|
|
8
10
|
}
|
|
@@ -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("h3", { 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
|
+
<h3 className='sans-serif --super-large --bold-weight mid-banner-ratafia-content__header__title'>{title}</h3>
|
|
18
18
|
<div className='sans-serif --super-medium mid-banner-ratafia-content__header__description'>{paragraph}</div>
|
|
19
19
|
</div>
|
|
20
20
|
<Button
|
|
@@ -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: 350px;
|
|
12
12
|
}
|
|
13
13
|
@media ${device.laptop} {
|
|
14
14
|
max-width: 560px;
|
|
@@ -36,6 +36,7 @@ export const UploadRatafiaZoneStyled = styled.div `
|
|
|
36
36
|
|
|
37
37
|
&__title {
|
|
38
38
|
margin-bottom: 2.5rem;
|
|
39
|
+
transition: color 0.5s;
|
|
39
40
|
}
|
|
40
41
|
&__cta {
|
|
41
42
|
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: 350px;
|
|
13
13
|
}
|
|
14
14
|
@media ${device.laptop} {
|
|
15
15
|
max-width: 560px;
|
|
@@ -37,6 +37,7 @@ export const UploadRatafiaZoneStyled = styled.div`
|
|
|
37
37
|
|
|
38
38
|
&__title {
|
|
39
39
|
margin-bottom: 2.5rem;
|
|
40
|
+
transition: color 0.5s;
|
|
40
41
|
}
|
|
41
42
|
&__cta {
|
|
42
43
|
display: flex;
|
package/dist/src/components/organisms/FeaturesRatafiaContent/FeaturesRatafiaContent.styled.js
CHANGED
|
@@ -7,21 +7,24 @@ 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
|
-
gap: 1rem;
|
|
17
|
-
|
|
18
|
-
&__text {
|
|
19
|
-
align-self: stretch;
|
|
20
|
-
color: var(--neutral-neutral-1);
|
|
21
|
-
}
|
|
22
|
-
&__description {
|
|
10
|
+
.features-ratafia-content__wrapper {
|
|
11
|
+
&__title {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
align-items: center;
|
|
23
16
|
align-self: stretch;
|
|
24
|
-
|
|
17
|
+
gap: 1rem;
|
|
18
|
+
margin-bottom: 1rem;
|
|
19
|
+
|
|
20
|
+
&__text {
|
|
21
|
+
align-self: stretch;
|
|
22
|
+
color: var(--neutral-neutral-1);
|
|
23
|
+
}
|
|
24
|
+
&__description {
|
|
25
|
+
align-self: stretch;
|
|
26
|
+
color: var(--neutral-neutral-1);
|
|
27
|
+
}
|
|
25
28
|
}
|
|
26
29
|
}
|
|
27
30
|
`;
|
package/dist/src/components/organisms/FeaturesRatafiaContent/FeaturesRatafiaContent.styled.ts
CHANGED
|
@@ -8,21 +8,24 @@ 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
|
-
gap: 1rem;
|
|
18
|
-
|
|
19
|
-
&__text {
|
|
20
|
-
align-self: stretch;
|
|
21
|
-
color: var(--neutral-neutral-1);
|
|
22
|
-
}
|
|
23
|
-
&__description {
|
|
11
|
+
.features-ratafia-content__wrapper {
|
|
12
|
+
&__title {
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
justify-content: center;
|
|
16
|
+
align-items: center;
|
|
24
17
|
align-self: stretch;
|
|
25
|
-
|
|
18
|
+
gap: 1rem;
|
|
19
|
+
margin-bottom: 1rem;
|
|
20
|
+
|
|
21
|
+
&__text {
|
|
22
|
+
align-self: stretch;
|
|
23
|
+
color: var(--neutral-neutral-1);
|
|
24
|
+
}
|
|
25
|
+
&__description {
|
|
26
|
+
align-self: stretch;
|
|
27
|
+
color: var(--neutral-neutral-1);
|
|
28
|
+
}
|
|
26
29
|
}
|
|
27
30
|
}
|
|
28
31
|
`
|
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", { 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 })] })] }));
|
|
6
|
+
return (_jsxs(KeyFactsResultContentRatafiaStyled, { children: [_jsx("h2", { ref: result?.documentNameRef, 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,7 +8,9 @@ import { ReviewKeyFactsResultRatafia } from '../../atoms'
|
|
|
8
8
|
export const KeyFactsResultContentRatafia: React.FC<KeyFactsResultContentRatafiaProps> = ({ result, review }) => {
|
|
9
9
|
return (
|
|
10
10
|
<KeyFactsResultContentRatafiaStyled>
|
|
11
|
-
<h2 className='sans-serif --bold-weight key-facts-result-content__document-name'>
|
|
11
|
+
<h2 ref={result?.documentNameRef} className='sans-serif --bold-weight key-facts-result-content__document-name'>
|
|
12
|
+
{result?.documentName}
|
|
13
|
+
</h2>
|
|
12
14
|
<div className='key-facts-result-content__content'>
|
|
13
15
|
{result !== null && <KeyFactCardListRatafia keyFacts={result.keyFacts} />}
|
|
14
16
|
<ReviewKeyFactsResultRatafia {...review} />
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { KeyFactRatafiaCardProps, ReviewKeyFactsResultRatafiaProps } from '../../atoms';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
export interface KeyFactsResultContentRatafiaProps {
|
|
3
4
|
result: KeyFactsResultProps | null;
|
|
4
5
|
review: ReviewKeyFactsResultRatafiaProps;
|
|
@@ -6,4 +7,5 @@ export interface KeyFactsResultContentRatafiaProps {
|
|
|
6
7
|
export interface KeyFactsResultProps {
|
|
7
8
|
documentName: string;
|
|
8
9
|
keyFacts: KeyFactRatafiaCardProps[];
|
|
10
|
+
documentNameRef?: React.RefObject<HTMLHeadingElement>;
|
|
9
11
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { KeyFactRatafiaCardProps, ReviewKeyFactsResultRatafiaProps } from '../../atoms'
|
|
2
|
+
import React from 'react'
|
|
2
3
|
|
|
3
4
|
export interface KeyFactsResultContentRatafiaProps {
|
|
4
5
|
result: KeyFactsResultProps | null
|
|
@@ -8,4 +9,5 @@ export interface KeyFactsResultContentRatafiaProps {
|
|
|
8
9
|
export interface KeyFactsResultProps {
|
|
9
10
|
documentName: string
|
|
10
11
|
keyFacts: KeyFactRatafiaCardProps[]
|
|
12
|
+
documentNameRef?: React.RefObject<HTMLHeadingElement>
|
|
11
13
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Checkbox } from '../../atoms';
|
|
3
3
|
import { TextInput } from '../../molecules';
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
import { LoginRatafiaContentStyled } from './LoginRatafiaContent.styled';
|
|
5
|
+
const LoginRatafiaContent = ({ title, email, policy }) => {
|
|
6
|
+
return (_jsxs(LoginRatafiaContentStyled, { children: [_jsx("h2", { className: 'login-ratafia-content__title', children: title }), _jsx("div", { className: 'login-ratafia-content__email', children: _jsx(TextInput, { ...email }) }), _jsx("div", { className: 'login-ratafia-content__policy', children: _jsx(Checkbox, { ...policy }) })] }));
|
|
6
7
|
};
|
|
7
8
|
export default LoginRatafiaContent;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { device } from '../../../globalStyles/breakpoints';
|
|
1
2
|
import styled from 'styled-components';
|
|
2
3
|
export const LoginRatafiaContentStyled = styled.div `
|
|
3
4
|
width: 100%;
|
|
@@ -11,4 +12,10 @@ export const LoginRatafiaContentStyled = styled.div `
|
|
|
11
12
|
margin-bottom: 0.5rem;
|
|
12
13
|
}
|
|
13
14
|
}
|
|
15
|
+
.login-ratafia-content__policy {
|
|
16
|
+
margin-top: 1rem;
|
|
17
|
+
@media ${device['portrait-tablets']} {
|
|
18
|
+
display: none;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
14
21
|
`;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { device } from '../../../globalStyles/breakpoints'
|
|
1
2
|
import styled from 'styled-components'
|
|
2
3
|
|
|
3
4
|
export const LoginRatafiaContentStyled = styled.div`
|
|
@@ -12,4 +13,10 @@ export const LoginRatafiaContentStyled = styled.div`
|
|
|
12
13
|
margin-bottom: 0.5rem;
|
|
13
14
|
}
|
|
14
15
|
}
|
|
16
|
+
.login-ratafia-content__policy {
|
|
17
|
+
margin-top: 1rem;
|
|
18
|
+
@media ${device['portrait-tablets']} {
|
|
19
|
+
display: none;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
15
22
|
`
|
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
import React, { type FC } from 'react'
|
|
2
2
|
|
|
3
3
|
import { type LoginRatafiaContentProps } from './LoginRatafiaContentProps.types'
|
|
4
|
-
|
|
4
|
+
|
|
5
|
+
import { Checkbox } from '../../atoms'
|
|
5
6
|
import { TextInput } from '../../molecules'
|
|
6
7
|
|
|
7
|
-
|
|
8
|
+
import { LoginRatafiaContentStyled } from './LoginRatafiaContent.styled'
|
|
9
|
+
|
|
10
|
+
const LoginRatafiaContent: FC<LoginRatafiaContentProps> = ({ title, email, policy }) => {
|
|
8
11
|
return (
|
|
9
12
|
<LoginRatafiaContentStyled>
|
|
10
13
|
<h2 className='login-ratafia-content__title'>{title}</h2>
|
|
11
14
|
<div className='login-ratafia-content__email'>
|
|
12
15
|
<TextInput {...email} />
|
|
13
16
|
</div>
|
|
17
|
+
<div className='login-ratafia-content__policy'>
|
|
18
|
+
<Checkbox {...policy} />
|
|
19
|
+
</div>
|
|
14
20
|
</LoginRatafiaContentStyled>
|
|
15
21
|
)
|
|
16
22
|
}
|
|
@@ -1,15 +1,24 @@
|
|
|
1
|
+
import { device } from '../../../globalStyles/breakpoints';
|
|
1
2
|
import styled from 'styled-components';
|
|
2
3
|
export const LoginRatafiaPageStyled = styled.div `
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
align-items: flex-start;
|
|
7
|
+
flex: 1 0 0;
|
|
8
|
+
align-self: stretch;
|
|
9
|
+
gap: 1.5rem;
|
|
3
10
|
background-color: var(--neutral-neutral-6);
|
|
4
11
|
|
|
5
|
-
|
|
12
|
+
.login-ratafia-page__ctas {
|
|
6
13
|
text-align: center;
|
|
7
14
|
&__button {
|
|
8
15
|
display: block;
|
|
9
16
|
width: 100%;
|
|
17
|
+
@media ${device['portrait-tablets']} {
|
|
18
|
+
width: 12.5rem;
|
|
19
|
+
}
|
|
10
20
|
margin-bottom: 1rem;
|
|
11
21
|
}
|
|
12
|
-
|
|
13
22
|
&__signIn {
|
|
14
23
|
&__button {
|
|
15
24
|
background: none;
|
|
@@ -1,16 +1,25 @@
|
|
|
1
|
+
import { device } from '../../../globalStyles/breakpoints'
|
|
1
2
|
import styled from 'styled-components'
|
|
2
3
|
|
|
3
4
|
export const LoginRatafiaPageStyled = styled.div`
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
align-items: flex-start;
|
|
8
|
+
flex: 1 0 0;
|
|
9
|
+
align-self: stretch;
|
|
10
|
+
gap: 1.5rem;
|
|
4
11
|
background-color: var(--neutral-neutral-6);
|
|
5
12
|
|
|
6
|
-
|
|
13
|
+
.login-ratafia-page__ctas {
|
|
7
14
|
text-align: center;
|
|
8
15
|
&__button {
|
|
9
16
|
display: block;
|
|
10
17
|
width: 100%;
|
|
18
|
+
@media ${device['portrait-tablets']} {
|
|
19
|
+
width: 12.5rem;
|
|
20
|
+
}
|
|
11
21
|
margin-bottom: 1rem;
|
|
12
22
|
}
|
|
13
|
-
|
|
14
23
|
&__signIn {
|
|
15
24
|
&__button {
|
|
16
25
|
background: none;
|
|
@@ -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,5 +25,8 @@ 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
|
+
}
|
|
28
31
|
}
|
|
29
32
|
`;
|
|
@@ -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,5 +26,8 @@ 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
|
+
}
|
|
29
32
|
}
|
|
30
33
|
`
|
|
File without changes
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { TryItRatafiaSectionStyled } from './TryItRatafiaSection.styled';
|
|
3
|
-
// import './TryItRatafiaSection.scss'
|
|
4
3
|
const TryItRatafiaSection = ({ icon, paragraph, children }) => {
|
|
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("
|
|
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("h3", { 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 })] }) }));
|
|
6
5
|
};
|
|
7
6
|
export default TryItRatafiaSection;
|
|
@@ -2,7 +2,6 @@ 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'
|
|
6
5
|
|
|
7
6
|
const TryItRatafiaSection: FC<TryItRatafiaSectionProps> = ({ icon, paragraph, children }) => {
|
|
8
7
|
return (
|
|
@@ -10,9 +9,9 @@ const TryItRatafiaSection: FC<TryItRatafiaSectionProps> = ({ icon, paragraph, ch
|
|
|
10
9
|
<div className='try-it-ratafia-section__wrapper background-ratafia-animation'>
|
|
11
10
|
<div className='try-it-ratafia-section__wrapper__content'>
|
|
12
11
|
{icon !== null && <div className={'try-it-ratafia-section__wrapper__content__icon'}>{icon}</div>}
|
|
13
|
-
<
|
|
12
|
+
<h3 className='sans-serif --extra-large --bold-weight try-it-ratafia-section__wrapper__content__title'>
|
|
14
13
|
{paragraph}
|
|
15
|
-
</
|
|
14
|
+
</h3>
|
|
16
15
|
</div>
|
|
17
16
|
<span className='try-it-ratafia-section__wrapper__children'>{children}</span>
|
|
18
17
|
</div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@npm_leadtech/legal-lib-components",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.20.1",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -285,7 +285,6 @@
|
|
|
285
285
|
"./TryUsSection": "./dist/src/components/sections/TryUsSection/index.js",
|
|
286
286
|
"./UnsubscribeSection": "./dist/src/components/sections/UnsubscribeSection/index.js",
|
|
287
287
|
"./WhyLawDistrictSection": "./dist/src/components/sections/WhyLawDistrictSection/index.js",
|
|
288
|
-
"./LayoutRatafiaSection": "./dist/src/components/sections/LayoutRatafiaSection/index.js",
|
|
289
288
|
"./useIntersectionObserver": "./dist/src/hooks/useIntersectionObserver.js",
|
|
290
289
|
"./useIsMobileOrTable": "./dist/src/hooks/useIsMobileOrTable.js",
|
|
291
290
|
"./utils": "./dist/src/utils/index.js",
|