@npm_leadtech/legal-lib-components 5.18.7 → 5.20.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/README.md +0 -16
- 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/RatafiaSubscriptionCard/RatafiaSubscriptionCard.styled.js +5 -20
- package/dist/src/components/molecules/RatafiaSubscriptionCard/RatafiaSubscriptionCard.styled.ts +5 -20
- 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/organisms/LayoutRatafia/LayoutRatafia.styled.js +13 -9
- package/dist/src/components/organisms/LayoutRatafia/LayoutRatafia.styled.ts +13 -9
- package/dist/src/components/organisms/index.d.ts +0 -1
- package/dist/src/components/organisms/index.js +0 -1
- package/dist/src/components/organisms/index.ts +0 -1
- package/dist/src/components/pages/index.d.ts +0 -2
- package/dist/src/components/pages/index.js +0 -2
- package/dist/src/components/pages/index.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/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -7
- package/dist/src/components/organisms/LimitReachedContentRatafia/LimitReachedContentRatafia.d.ts +0 -3
- package/dist/src/components/organisms/LimitReachedContentRatafia/LimitReachedContentRatafia.js +0 -5
- package/dist/src/components/organisms/LimitReachedContentRatafia/LimitReachedContentRatafia.styled.d.ts +0 -1
- package/dist/src/components/organisms/LimitReachedContentRatafia/LimitReachedContentRatafia.styled.js +0 -41
- package/dist/src/components/organisms/LimitReachedContentRatafia/LimitReachedContentRatafia.styled.ts +0 -42
- package/dist/src/components/organisms/LimitReachedContentRatafia/LimitReachedContentRatafia.tsx +0 -16
- package/dist/src/components/organisms/LimitReachedContentRatafia/LimitReachedContentRatafiaProps.types.d.ts +0 -5
- package/dist/src/components/organisms/LimitReachedContentRatafia/LimitReachedContentRatafiaProps.types.js +0 -1
- package/dist/src/components/organisms/LimitReachedContentRatafia/LimitReachedContentRatafiaProps.types.ts +0 -5
- package/dist/src/components/organisms/LimitReachedContentRatafia/index.d.ts +0 -2
- package/dist/src/components/organisms/LimitReachedContentRatafia/index.js +0 -1
- package/dist/src/components/organisms/LimitReachedContentRatafia/index.ts +0 -2
- package/dist/src/components/pages/LimitReachedRatafiaPage/LimitReachedRatafiaPage.d.ts +0 -3
- package/dist/src/components/pages/LimitReachedRatafiaPage/LimitReachedRatafiaPage.js +0 -13
- package/dist/src/components/pages/LimitReachedRatafiaPage/LimitReachedRatafiaPage.styled.d.ts +0 -1
- package/dist/src/components/pages/LimitReachedRatafiaPage/LimitReachedRatafiaPage.styled.js +0 -22
- package/dist/src/components/pages/LimitReachedRatafiaPage/LimitReachedRatafiaPage.styled.ts +0 -23
- package/dist/src/components/pages/LimitReachedRatafiaPage/LimitReachedRatafiaPage.tsx +0 -56
- package/dist/src/components/pages/LimitReachedRatafiaPage/LimitReachedRatafiaPageProps.types.d.ts +0 -15
- package/dist/src/components/pages/LimitReachedRatafiaPage/LimitReachedRatafiaPageProps.types.js +0 -1
- package/dist/src/components/pages/LimitReachedRatafiaPage/LimitReachedRatafiaPageProps.types.ts +0 -16
- package/dist/src/components/pages/LimitReachedRatafiaPage/index.d.ts +0 -2
- package/dist/src/components/pages/LimitReachedRatafiaPage/index.js +0 -1
- package/dist/src/components/pages/LimitReachedRatafiaPage/index.ts +0 -2
- package/dist/src/components/pages/PricingRatafiaPage/PricingRatafiaPage.d.ts +0 -3
- package/dist/src/components/pages/PricingRatafiaPage/PricingRatafiaPage.js +0 -12
- package/dist/src/components/pages/PricingRatafiaPage/PricingRatafiaPage.styled.d.ts +0 -1
- package/dist/src/components/pages/PricingRatafiaPage/PricingRatafiaPage.styled.js +0 -28
- package/dist/src/components/pages/PricingRatafiaPage/PricingRatafiaPage.styled.ts +0 -29
- package/dist/src/components/pages/PricingRatafiaPage/PricingRatafiaPage.tsx +0 -38
- package/dist/src/components/pages/PricingRatafiaPage/PricingRatafiaPageProps.d.ts +0 -33
- package/dist/src/components/pages/PricingRatafiaPage/PricingRatafiaPageProps.js +0 -1
- package/dist/src/components/pages/PricingRatafiaPage/PricingRatafiaPageProps.ts +0 -38
- package/dist/src/components/pages/PricingRatafiaPage/index.d.ts +0 -2
- package/dist/src/components/pages/PricingRatafiaPage/index.js +0 -2
- package/dist/src/components/pages/PricingRatafiaPage/index.ts +0 -2
- package/dist/src/components/sections/FeaturesRatafiaSection/FeaturesRatafiaSection.scss +0 -0
package/README.md
CHANGED
|
@@ -35,19 +35,3 @@ Para ejecutar: `yarn chromatic`
|
|
|
35
35
|
- Tenemos que importar el componente en package.json para luego poderlo importar en el otro proyecto ejemplode AddButton --> "./AddButton": "./dist/src/components/atoms/AddButton/index.js",
|
|
36
36
|
- Los archivos de scss están importados en globalStyles/styles.scss para tener una importación de todo hasta que lo pasemos a styled-components, no se debe importar en css en los archivos de js
|
|
37
37
|
- Para la importación en www o app utilizaremos la ruta completa import { FaqsPage } from '@npm_leadtech/legal-lib-components/FaqsPage'
|
|
38
|
-
|
|
39
|
-
## Sonar localmente
|
|
40
|
-
|
|
41
|
-
Para ejecutar sonar localmente será necesiario:
|
|
42
|
-
|
|
43
|
-
- Tener instalado y configurado el servidor de sonar del repo de devops
|
|
44
|
-
- desde devops ejecutar el comando `make sonar-build`
|
|
45
|
-
- Crear carpeta y fichero `scripts/sonar.sh`
|
|
46
|
-
- Agregar este contenido al fichero:
|
|
47
|
-
|
|
48
|
-
```
|
|
49
|
-
#!/bin/bash
|
|
50
|
-
npx sonarqube-scanner -Dsonar.host.url=http://sonar.legal-contracts.com:9000 -Dsonar.token=TOKEN GENERADO EN SONAR
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
- Ejecutar en consola `yarn sonar`
|
|
@@ -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
|
package/dist/src/components/molecules/RatafiaSubscriptionCard/RatafiaSubscriptionCard.styled.js
CHANGED
|
@@ -9,12 +9,6 @@ export const RatafiaSubscriptionCardStyled = styled.div `
|
|
|
9
9
|
padding: 1rem;
|
|
10
10
|
border-radius: var(--global-border-radius);
|
|
11
11
|
|
|
12
|
-
hr {
|
|
13
|
-
border: none;
|
|
14
|
-
border-top: 1px solid var(--neutral-neutral-4);
|
|
15
|
-
width: 100%;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
12
|
&.primary {
|
|
19
13
|
background-color: var(--neutral-neutral-6);
|
|
20
14
|
|
|
@@ -41,10 +35,6 @@ export const RatafiaSubscriptionCardStyled = styled.div `
|
|
|
41
35
|
background-color: var(--secondary-main-light-3);
|
|
42
36
|
}
|
|
43
37
|
}
|
|
44
|
-
|
|
45
|
-
.ratafia-card__button {
|
|
46
|
-
color: var(--others-black);
|
|
47
|
-
}
|
|
48
38
|
}
|
|
49
39
|
|
|
50
40
|
.ratafia-card {
|
|
@@ -54,24 +44,20 @@ export const RatafiaSubscriptionCardStyled = styled.div `
|
|
|
54
44
|
align-items: center;
|
|
55
45
|
justify-content: space-between;
|
|
56
46
|
gap: 0.5rem 1rem;
|
|
57
|
-
|
|
58
|
-
@media ${device.mobile} {
|
|
59
|
-
flex-direction: column;
|
|
60
|
-
align-items: start;
|
|
61
|
-
}
|
|
62
47
|
}
|
|
63
48
|
|
|
64
49
|
&__title {
|
|
65
50
|
display: flex;
|
|
66
51
|
flex-flow: row nowrap;
|
|
67
52
|
align-items: center;
|
|
68
|
-
gap: 0.
|
|
69
|
-
color: var(--neutral-neutral-1);
|
|
53
|
+
gap: 0.8rem;
|
|
70
54
|
font-weight: bold;
|
|
71
55
|
}
|
|
72
56
|
|
|
73
|
-
|
|
74
|
-
|
|
57
|
+
hr {
|
|
58
|
+
border: none;
|
|
59
|
+
border-top: 1px solid var(--neutral-neutral-4);
|
|
60
|
+
width: 100%;
|
|
75
61
|
}
|
|
76
62
|
|
|
77
63
|
&__body {
|
|
@@ -86,7 +72,6 @@ export const RatafiaSubscriptionCardStyled = styled.div `
|
|
|
86
72
|
justify-content: flex-start;
|
|
87
73
|
gap: 0.5rem;
|
|
88
74
|
color: var(--neutral-neutral-1);
|
|
89
|
-
font-size: 0.875rem;
|
|
90
75
|
text-align: left;
|
|
91
76
|
padding: 0.25rem 0;
|
|
92
77
|
|
package/dist/src/components/molecules/RatafiaSubscriptionCard/RatafiaSubscriptionCard.styled.ts
CHANGED
|
@@ -10,12 +10,6 @@ export const RatafiaSubscriptionCardStyled = styled.div`
|
|
|
10
10
|
padding: 1rem;
|
|
11
11
|
border-radius: var(--global-border-radius);
|
|
12
12
|
|
|
13
|
-
hr {
|
|
14
|
-
border: none;
|
|
15
|
-
border-top: 1px solid var(--neutral-neutral-4);
|
|
16
|
-
width: 100%;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
13
|
&.primary {
|
|
20
14
|
background-color: var(--neutral-neutral-6);
|
|
21
15
|
|
|
@@ -42,10 +36,6 @@ export const RatafiaSubscriptionCardStyled = styled.div`
|
|
|
42
36
|
background-color: var(--secondary-main-light-3);
|
|
43
37
|
}
|
|
44
38
|
}
|
|
45
|
-
|
|
46
|
-
.ratafia-card__button {
|
|
47
|
-
color: var(--others-black);
|
|
48
|
-
}
|
|
49
39
|
}
|
|
50
40
|
|
|
51
41
|
.ratafia-card {
|
|
@@ -55,24 +45,20 @@ export const RatafiaSubscriptionCardStyled = styled.div`
|
|
|
55
45
|
align-items: center;
|
|
56
46
|
justify-content: space-between;
|
|
57
47
|
gap: 0.5rem 1rem;
|
|
58
|
-
|
|
59
|
-
@media ${device.mobile} {
|
|
60
|
-
flex-direction: column;
|
|
61
|
-
align-items: start;
|
|
62
|
-
}
|
|
63
48
|
}
|
|
64
49
|
|
|
65
50
|
&__title {
|
|
66
51
|
display: flex;
|
|
67
52
|
flex-flow: row nowrap;
|
|
68
53
|
align-items: center;
|
|
69
|
-
gap: 0.
|
|
70
|
-
color: var(--neutral-neutral-1);
|
|
54
|
+
gap: 0.8rem;
|
|
71
55
|
font-weight: bold;
|
|
72
56
|
}
|
|
73
57
|
|
|
74
|
-
|
|
75
|
-
|
|
58
|
+
hr {
|
|
59
|
+
border: none;
|
|
60
|
+
border-top: 1px solid var(--neutral-neutral-4);
|
|
61
|
+
width: 100%;
|
|
76
62
|
}
|
|
77
63
|
|
|
78
64
|
&__body {
|
|
@@ -87,7 +73,6 @@ export const RatafiaSubscriptionCardStyled = styled.div`
|
|
|
87
73
|
justify-content: flex-start;
|
|
88
74
|
gap: 0.5rem;
|
|
89
75
|
color: var(--neutral-neutral-1);
|
|
90
|
-
font-size: 0.875rem;
|
|
91
76
|
text-align: left;
|
|
92
77
|
padding: 0.25rem 0;
|
|
93
78
|
|
|
@@ -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
|
}
|
|
@@ -15,9 +15,12 @@ export const LayoutRatafiaStyled = styled.div `
|
|
|
15
15
|
flex-direction: column;
|
|
16
16
|
align-items: center;
|
|
17
17
|
justify-content: space-between;
|
|
18
|
+
|
|
18
19
|
padding: 1.5rem 1.5rem 0 1.5rem;
|
|
20
|
+
|
|
19
21
|
width: 100%;
|
|
20
|
-
height: calc(100vh -
|
|
22
|
+
height: calc(100vh - 5.125rem);
|
|
23
|
+
|
|
21
24
|
border-radius: 16px 16px 0 0;
|
|
22
25
|
background: var(--others-white);
|
|
23
26
|
box-shadow: var(--box-shadow-small);
|
|
@@ -25,9 +28,9 @@ export const LayoutRatafiaStyled = styled.div `
|
|
|
25
28
|
@media ${device['portrait-tablets']} {
|
|
26
29
|
padding: 2.5rem 2.5rem 1.5rem 2.5rem;
|
|
27
30
|
}
|
|
28
|
-
|
|
29
31
|
@media ${device['portrait-tablets']} {
|
|
30
32
|
width: 800px;
|
|
33
|
+
height: 890px;
|
|
31
34
|
}
|
|
32
35
|
|
|
33
36
|
&__header {
|
|
@@ -42,31 +45,26 @@ export const LayoutRatafiaStyled = styled.div `
|
|
|
42
45
|
align-items: flex-start;
|
|
43
46
|
flex: 1 0 0;
|
|
44
47
|
align-self: stretch;
|
|
48
|
+
|
|
45
49
|
gap: 1.5rem;
|
|
46
50
|
margin-bottom: 1rem;
|
|
47
|
-
|
|
48
51
|
@media ${device['portrait-tablets']} {
|
|
49
52
|
margin-bottom: 2.5rem;
|
|
50
53
|
}
|
|
51
54
|
}
|
|
52
|
-
|
|
53
55
|
&__cta {
|
|
54
56
|
display: none;
|
|
55
|
-
|
|
56
57
|
@media ${device['portrait-tablets']} {
|
|
57
58
|
display: block;
|
|
58
59
|
}
|
|
59
60
|
}
|
|
60
|
-
|
|
61
61
|
&__footer-desktop {
|
|
62
62
|
width: 100%;
|
|
63
63
|
display: none;
|
|
64
|
-
|
|
65
64
|
@media ${device['portrait-tablets']} {
|
|
66
65
|
display: block;
|
|
67
66
|
}
|
|
68
67
|
}
|
|
69
|
-
|
|
70
68
|
&__footer-mobile {
|
|
71
69
|
display: flex;
|
|
72
70
|
flex-direction: column;
|
|
@@ -74,14 +72,20 @@ export const LayoutRatafiaStyled = styled.div `
|
|
|
74
72
|
bottom: 0;
|
|
75
73
|
left: 0;
|
|
76
74
|
right: 0;
|
|
75
|
+
|
|
77
76
|
gap: 1rem;
|
|
78
77
|
padding: 1.5rem;
|
|
78
|
+
|
|
79
79
|
width: 100vw;
|
|
80
80
|
background: var(--others-white);
|
|
81
|
-
|
|
82
81
|
@media ${device['portrait-tablets']} {
|
|
83
82
|
display: none;
|
|
84
83
|
}
|
|
85
84
|
}
|
|
85
|
+
.e-button.--primary-1 {
|
|
86
|
+
height: auto;
|
|
87
|
+
padding: 0.6875rem 1rem;
|
|
88
|
+
line-height: 22px;
|
|
89
|
+
}
|
|
86
90
|
}
|
|
87
91
|
`;
|
|
@@ -16,9 +16,12 @@ export const LayoutRatafiaStyled = styled.div`
|
|
|
16
16
|
flex-direction: column;
|
|
17
17
|
align-items: center;
|
|
18
18
|
justify-content: space-between;
|
|
19
|
+
|
|
19
20
|
padding: 1.5rem 1.5rem 0 1.5rem;
|
|
21
|
+
|
|
20
22
|
width: 100%;
|
|
21
|
-
height: calc(100vh -
|
|
23
|
+
height: calc(100vh - 5.125rem);
|
|
24
|
+
|
|
22
25
|
border-radius: 16px 16px 0 0;
|
|
23
26
|
background: var(--others-white);
|
|
24
27
|
box-shadow: var(--box-shadow-small);
|
|
@@ -26,9 +29,9 @@ export const LayoutRatafiaStyled = styled.div`
|
|
|
26
29
|
@media ${device['portrait-tablets']} {
|
|
27
30
|
padding: 2.5rem 2.5rem 1.5rem 2.5rem;
|
|
28
31
|
}
|
|
29
|
-
|
|
30
32
|
@media ${device['portrait-tablets']} {
|
|
31
33
|
width: 800px;
|
|
34
|
+
height: 890px;
|
|
32
35
|
}
|
|
33
36
|
|
|
34
37
|
&__header {
|
|
@@ -43,31 +46,26 @@ export const LayoutRatafiaStyled = styled.div`
|
|
|
43
46
|
align-items: flex-start;
|
|
44
47
|
flex: 1 0 0;
|
|
45
48
|
align-self: stretch;
|
|
49
|
+
|
|
46
50
|
gap: 1.5rem;
|
|
47
51
|
margin-bottom: 1rem;
|
|
48
|
-
|
|
49
52
|
@media ${device['portrait-tablets']} {
|
|
50
53
|
margin-bottom: 2.5rem;
|
|
51
54
|
}
|
|
52
55
|
}
|
|
53
|
-
|
|
54
56
|
&__cta {
|
|
55
57
|
display: none;
|
|
56
|
-
|
|
57
58
|
@media ${device['portrait-tablets']} {
|
|
58
59
|
display: block;
|
|
59
60
|
}
|
|
60
61
|
}
|
|
61
|
-
|
|
62
62
|
&__footer-desktop {
|
|
63
63
|
width: 100%;
|
|
64
64
|
display: none;
|
|
65
|
-
|
|
66
65
|
@media ${device['portrait-tablets']} {
|
|
67
66
|
display: block;
|
|
68
67
|
}
|
|
69
68
|
}
|
|
70
|
-
|
|
71
69
|
&__footer-mobile {
|
|
72
70
|
display: flex;
|
|
73
71
|
flex-direction: column;
|
|
@@ -75,14 +73,20 @@ export const LayoutRatafiaStyled = styled.div`
|
|
|
75
73
|
bottom: 0;
|
|
76
74
|
left: 0;
|
|
77
75
|
right: 0;
|
|
76
|
+
|
|
78
77
|
gap: 1rem;
|
|
79
78
|
padding: 1.5rem;
|
|
79
|
+
|
|
80
80
|
width: 100vw;
|
|
81
81
|
background: var(--others-white);
|
|
82
|
-
|
|
83
82
|
@media ${device['portrait-tablets']} {
|
|
84
83
|
display: none;
|
|
85
84
|
}
|
|
86
85
|
}
|
|
86
|
+
.e-button.--primary-1 {
|
|
87
|
+
height: auto;
|
|
88
|
+
padding: 0.6875rem 1rem;
|
|
89
|
+
line-height: 22px;
|
|
90
|
+
}
|
|
87
91
|
}
|
|
88
92
|
`
|
|
@@ -16,7 +16,6 @@ export * from './KeyFactsResultContentRatafia';
|
|
|
16
16
|
export * from './LanguageSelector';
|
|
17
17
|
export * from './LanguageSelectorMobile';
|
|
18
18
|
export * from './LayoutRatafia';
|
|
19
|
-
export * from './LimitReachedContentRatafia';
|
|
20
19
|
export * from './ListStepsGetForm';
|
|
21
20
|
export * from './LoginRatafiaContent';
|
|
22
21
|
export * from './MobileBottomBar';
|
|
@@ -16,7 +16,6 @@ export * from './KeyFactsResultContentRatafia';
|
|
|
16
16
|
export * from './LanguageSelector';
|
|
17
17
|
export * from './LanguageSelectorMobile';
|
|
18
18
|
export * from './LayoutRatafia';
|
|
19
|
-
export * from './LimitReachedContentRatafia';
|
|
20
19
|
export * from './ListStepsGetForm';
|
|
21
20
|
export * from './LoginRatafiaContent';
|
|
22
21
|
export * from './MobileBottomBar';
|
|
@@ -16,7 +16,6 @@ export * from './KeyFactsResultContentRatafia'
|
|
|
16
16
|
export * from './LanguageSelector'
|
|
17
17
|
export * from './LanguageSelectorMobile'
|
|
18
18
|
export * from './LayoutRatafia'
|
|
19
|
-
export * from './LimitReachedContentRatafia'
|
|
20
19
|
export * from './ListStepsGetForm'
|
|
21
20
|
export * from './LoginRatafiaContent'
|
|
22
21
|
export * from './MobileBottomBar'
|
|
@@ -4,8 +4,6 @@ export * from './ErrorRatafiaPage';
|
|
|
4
4
|
export * from './FaqsPage';
|
|
5
5
|
export * from './KeyFactsResultRatafiaPage';
|
|
6
6
|
export * from './LegalPage';
|
|
7
|
-
export * from './LimitReachedRatafiaPage';
|
|
8
7
|
export * from './RatafiaLandingPage';
|
|
9
8
|
export * from './UnsubscribePage';
|
|
10
9
|
export * from './LoginRatafiaPage';
|
|
11
|
-
export * from './PricingRatafiaPage';
|
|
@@ -4,8 +4,6 @@ export * from './ErrorRatafiaPage';
|
|
|
4
4
|
export * from './FaqsPage';
|
|
5
5
|
export * from './KeyFactsResultRatafiaPage';
|
|
6
6
|
export * from './LegalPage';
|
|
7
|
-
export * from './LimitReachedRatafiaPage';
|
|
8
7
|
export * from './RatafiaLandingPage';
|
|
9
8
|
export * from './UnsubscribePage';
|
|
10
9
|
export * from './LoginRatafiaPage';
|
|
11
|
-
export * from './PricingRatafiaPage';
|
|
@@ -4,8 +4,6 @@ export * from './ErrorRatafiaPage'
|
|
|
4
4
|
export * from './FaqsPage'
|
|
5
5
|
export * from './KeyFactsResultRatafiaPage'
|
|
6
6
|
export * from './LegalPage'
|
|
7
|
-
export * from './LimitReachedRatafiaPage'
|
|
8
7
|
export * from './RatafiaLandingPage'
|
|
9
8
|
export * from './UnsubscribePage'
|
|
10
9
|
export * from './LoginRatafiaPage'
|
|
11
|
-
export * from './PricingRatafiaPage'
|
|
@@ -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
|
`
|