@npm_leadtech/legal-lib-components 5.22.12 → 5.24.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 +16 -0
- package/dist/images/componentsSvg/PhoneIcon24px.tsx +2 -4
- package/dist/src/components/atoms/index.d.ts +0 -2
- package/dist/src/components/atoms/index.js +0 -2
- package/dist/src/components/atoms/index.ts +0 -2
- 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/LimitReachedContentRatafia/LimitReachedContentRatafia.d.ts +3 -0
- package/dist/src/components/organisms/LimitReachedContentRatafia/LimitReachedContentRatafia.js +5 -0
- package/dist/src/components/organisms/LimitReachedContentRatafia/LimitReachedContentRatafia.styled.d.ts +1 -0
- package/dist/src/components/organisms/LimitReachedContentRatafia/LimitReachedContentRatafia.styled.js +41 -0
- package/dist/src/components/organisms/LimitReachedContentRatafia/LimitReachedContentRatafia.styled.ts +42 -0
- package/dist/src/components/organisms/LimitReachedContentRatafia/LimitReachedContentRatafia.tsx +16 -0
- package/dist/src/components/organisms/LimitReachedContentRatafia/LimitReachedContentRatafiaProps.types.d.ts +5 -0
- package/dist/src/components/organisms/LimitReachedContentRatafia/LimitReachedContentRatafiaProps.types.ts +5 -0
- package/dist/src/components/organisms/LimitReachedContentRatafia/index.d.ts +2 -0
- package/dist/src/components/organisms/LimitReachedContentRatafia/index.js +1 -0
- package/dist/src/components/organisms/LimitReachedContentRatafia/index.ts +2 -0
- package/dist/src/components/organisms/index.d.ts +1 -0
- package/dist/src/components/organisms/index.js +1 -0
- package/dist/src/components/organisms/index.ts +1 -0
- package/dist/src/components/pages/LimitReachedRatafiaPage/LimitReachedRatafiaPage.d.ts +3 -0
- package/dist/src/components/pages/LimitReachedRatafiaPage/LimitReachedRatafiaPage.js +13 -0
- package/dist/src/components/pages/LimitReachedRatafiaPage/LimitReachedRatafiaPage.styled.d.ts +1 -0
- package/dist/src/components/pages/LimitReachedRatafiaPage/LimitReachedRatafiaPage.styled.js +22 -0
- package/dist/src/components/pages/LimitReachedRatafiaPage/LimitReachedRatafiaPage.styled.ts +23 -0
- package/dist/src/components/pages/LimitReachedRatafiaPage/LimitReachedRatafiaPage.tsx +56 -0
- package/dist/src/components/pages/LimitReachedRatafiaPage/LimitReachedRatafiaPageProps.types.d.ts +15 -0
- package/dist/src/components/pages/LimitReachedRatafiaPage/LimitReachedRatafiaPageProps.types.ts +16 -0
- package/dist/src/components/pages/LimitReachedRatafiaPage/index.d.ts +2 -0
- package/dist/src/components/pages/LimitReachedRatafiaPage/index.js +1 -0
- package/dist/src/components/pages/LimitReachedRatafiaPage/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/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/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +5 -2
- package/dist/images/componentsSvg/IconWeb.d.ts +0 -2
- package/dist/images/componentsSvg/IconWeb.js +0 -4
- package/dist/images/componentsSvg/IconWeb.tsx +0 -31
- package/dist/images/componentsSvg/PhoneIcon.d.ts +0 -6
- package/dist/images/componentsSvg/PhoneIcon.js +0 -4
- package/dist/images/componentsSvg/PhoneIcon.tsx +0 -18
- package/dist/images/svg/facebook.svg +0 -4
- package/dist/images/svg/icon-24-px-satisfaction-grey.svg +0 -3
- package/dist/images/svg/icon-24-px-security_black.svg +0 -3
- package/dist/images/svg/linkedin.svg +0 -4
- package/dist/images/svg/pinterest.svg +0 -4
- package/dist/images/svg/x.svg +0 -4
- package/dist/src/components/atoms/FixedFooter/FixedFooter.d.ts +0 -3
- package/dist/src/components/atoms/FixedFooter/FixedFooter.js +0 -73
- package/dist/src/components/atoms/FixedFooter/FixedFooter.styled.d.ts +0 -1
- package/dist/src/components/atoms/FixedFooter/FixedFooter.styled.js +0 -813
- package/dist/src/components/atoms/FixedFooter/FixedFooter.styled.ts +0 -814
- package/dist/src/components/atoms/FixedFooter/FixedFooter.tsx +0 -304
- package/dist/src/components/atoms/FixedFooter/FixedFooterProps.d.ts +0 -68
- package/dist/src/components/atoms/FixedFooter/FixedFooterProps.ts +0 -70
- package/dist/src/components/atoms/FixedFooter/index.d.ts +0 -2
- package/dist/src/components/atoms/FixedFooter/index.js +0 -2
- package/dist/src/components/atoms/FixedFooter/index.ts +0 -2
- package/dist/src/components/atoms/PreFooter/PreFooter.d.ts +0 -3
- package/dist/src/components/atoms/PreFooter/PreFooter.js +0 -8
- package/dist/src/components/atoms/PreFooter/PreFooter.styled.d.ts +0 -1
- package/dist/src/components/atoms/PreFooter/PreFooter.styled.js +0 -43
- package/dist/src/components/atoms/PreFooter/PreFooter.styled.ts +0 -43
- package/dist/src/components/atoms/PreFooter/PreFooter.tsx +0 -34
- package/dist/src/components/atoms/PreFooter/PreFooterProps.d.ts +0 -8
- package/dist/src/components/atoms/PreFooter/PreFooterProps.ts +0 -8
- package/dist/src/components/atoms/PreFooter/index.d.ts +0 -2
- package/dist/src/components/atoms/PreFooter/index.js +0 -2
- package/dist/src/components/atoms/PreFooter/index.ts +0 -2
- /package/dist/src/components/{atoms/FixedFooter/FixedFooterProps.js → organisms/LimitReachedContentRatafia/LimitReachedContentRatafiaProps.types.js} +0 -0
- /package/dist/src/components/{atoms/PreFooter/PreFooterProps.js → pages/LimitReachedRatafiaPage/LimitReachedRatafiaPageProps.types.js} +0 -0
package/README.md
CHANGED
|
@@ -35,3 +35,19 @@ 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`
|
|
@@ -5,14 +5,12 @@ interface PhoneIcon24pxProps {
|
|
|
5
5
|
className?: string
|
|
6
6
|
width?: string
|
|
7
7
|
height?: string
|
|
8
|
-
fill?: string
|
|
9
8
|
}
|
|
10
9
|
|
|
11
10
|
export const PhoneIcon24px: FC<PhoneIcon24pxProps> = ({
|
|
12
11
|
className = '',
|
|
13
12
|
width = '24',
|
|
14
|
-
height = '24'
|
|
15
|
-
fill = '#000'
|
|
13
|
+
height = '24'
|
|
16
14
|
}): React.ReactElement => (
|
|
17
15
|
<svg
|
|
18
16
|
className={className}
|
|
@@ -37,7 +35,7 @@ export const PhoneIcon24px: FC<PhoneIcon24pxProps> = ({
|
|
|
37
35
|
<mask id='7tvbvoimzb' fill='#fff'>
|
|
38
36
|
<use xlinkHref='#phone-icon-24p' />
|
|
39
37
|
</mask>
|
|
40
|
-
<g className='icon-web-24-p' fill=
|
|
38
|
+
<g className='icon-web-24-p' fill='#000' mask='url(#7tvbvoimzb)'>
|
|
41
39
|
<path d='M0 0H24V24H0z' />
|
|
42
40
|
</g>
|
|
43
41
|
</g>
|
|
@@ -19,7 +19,6 @@ export * from './DocumentStatus';
|
|
|
19
19
|
export * from './DocumentTag';
|
|
20
20
|
export * from './ExpertCard';
|
|
21
21
|
export * from './FeatureRatafiaCard';
|
|
22
|
-
export * from './FixedFooter';
|
|
23
22
|
export * from './FormFaq';
|
|
24
23
|
export * from './GoogleButton';
|
|
25
24
|
export * from './IconImage';
|
|
@@ -37,7 +36,6 @@ export * from './MoreDocsItem';
|
|
|
37
36
|
export * from './NavMenuItem';
|
|
38
37
|
export * from './PaypalButton';
|
|
39
38
|
export * from './PopularDocsItem';
|
|
40
|
-
export * from './PreFooter';
|
|
41
39
|
export * from './ProgressBar';
|
|
42
40
|
export * from './Radio';
|
|
43
41
|
export * from './RemoveButton';
|
|
@@ -19,7 +19,6 @@ export * from './DocumentStatus';
|
|
|
19
19
|
export * from './DocumentTag';
|
|
20
20
|
export * from './ExpertCard';
|
|
21
21
|
export * from './FeatureRatafiaCard';
|
|
22
|
-
export * from './FixedFooter';
|
|
23
22
|
export * from './FormFaq';
|
|
24
23
|
export * from './GoogleButton';
|
|
25
24
|
export * from './IconImage';
|
|
@@ -37,7 +36,6 @@ export * from './MoreDocsItem';
|
|
|
37
36
|
export * from './NavMenuItem';
|
|
38
37
|
export * from './PaypalButton';
|
|
39
38
|
export * from './PopularDocsItem';
|
|
40
|
-
export * from './PreFooter';
|
|
41
39
|
export * from './ProgressBar';
|
|
42
40
|
export * from './Radio';
|
|
43
41
|
export * from './RemoveButton';
|
|
@@ -19,7 +19,6 @@ export * from './DocumentStatus'
|
|
|
19
19
|
export * from './DocumentTag'
|
|
20
20
|
export * from './ExpertCard'
|
|
21
21
|
export * from './FeatureRatafiaCard'
|
|
22
|
-
export * from './FixedFooter'
|
|
23
22
|
export * from './FormFaq'
|
|
24
23
|
export * from './GoogleButton'
|
|
25
24
|
export * from './IconImage'
|
|
@@ -37,7 +36,6 @@ export * from './MoreDocsItem'
|
|
|
37
36
|
export * from './NavMenuItem'
|
|
38
37
|
export * from './PaypalButton'
|
|
39
38
|
export * from './PopularDocsItem'
|
|
40
|
-
export * from './PreFooter'
|
|
41
39
|
export * from './ProgressBar'
|
|
42
40
|
export * from './Radio'
|
|
43
41
|
export * from './RemoveButton'
|
|
@@ -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
|
}
|
package/dist/src/components/organisms/LimitReachedContentRatafia/LimitReachedContentRatafia.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { LimitReachedContentRatafiaStyled } from './LimitReachedContentRatafia.styled';
|
|
3
|
+
export const LimitReachedContentRatafia = ({ title, message, icon }) => {
|
|
4
|
+
return (_jsxs(LimitReachedContentRatafiaStyled, { className: 'limit-reached-content-ratafia', children: [_jsx("h2", { className: 'limit-reached-content-ratafia__title sans-serif --bold-weight', children: title }), _jsxs("div", { className: 'limit-reached-content-ratafia__message', children: [_jsx("div", { className: 'limit-reached-content-ratafia__message__icon', children: icon }), _jsx("div", { className: 'limit-reached-content-ratafia__message__text sans-serif --small', children: message })] })] }));
|
|
5
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const LimitReachedContentRatafiaStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { device } from '../../../globalStyles/breakpoints';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
export const LimitReachedContentRatafiaStyled = styled.div `
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
align-items: flex-start;
|
|
7
|
+
gap: 1rem;
|
|
8
|
+
align-self: stretch;
|
|
9
|
+
@media ${device['portrait-tablets']} {
|
|
10
|
+
gap: 2rem;
|
|
11
|
+
}
|
|
12
|
+
.limit-reached-content-ratafia {
|
|
13
|
+
&__title {
|
|
14
|
+
color: var(--neutral-neutral-2);
|
|
15
|
+
font-size: 1rem;
|
|
16
|
+
@media ${device['portrait-tablets']} {
|
|
17
|
+
font-size: 1.125rem;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
&__message {
|
|
21
|
+
display: flex;
|
|
22
|
+
padding: 0.5rem;
|
|
23
|
+
align-items: flex-start;
|
|
24
|
+
gap: 0.5rem;
|
|
25
|
+
@media ${device['portrait-tablets']} {
|
|
26
|
+
align-items: center;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
border-radius: 0.25rem;
|
|
30
|
+
background: var(--neutral-neutral-6);
|
|
31
|
+
&__icon {
|
|
32
|
+
width: 0.875rem;
|
|
33
|
+
height: 0.875rem;
|
|
34
|
+
flex-shrink: 0;
|
|
35
|
+
}
|
|
36
|
+
&__text {
|
|
37
|
+
color: var(--neutral-neutral-2);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
`;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { device } from '../../../globalStyles/breakpoints'
|
|
2
|
+
import styled from 'styled-components'
|
|
3
|
+
|
|
4
|
+
export const LimitReachedContentRatafiaStyled = styled.div`
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
align-items: flex-start;
|
|
8
|
+
gap: 1rem;
|
|
9
|
+
align-self: stretch;
|
|
10
|
+
@media ${device['portrait-tablets']} {
|
|
11
|
+
gap: 2rem;
|
|
12
|
+
}
|
|
13
|
+
.limit-reached-content-ratafia {
|
|
14
|
+
&__title {
|
|
15
|
+
color: var(--neutral-neutral-2);
|
|
16
|
+
font-size: 1rem;
|
|
17
|
+
@media ${device['portrait-tablets']} {
|
|
18
|
+
font-size: 1.125rem;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
&__message {
|
|
22
|
+
display: flex;
|
|
23
|
+
padding: 0.5rem;
|
|
24
|
+
align-items: flex-start;
|
|
25
|
+
gap: 0.5rem;
|
|
26
|
+
@media ${device['portrait-tablets']} {
|
|
27
|
+
align-items: center;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
border-radius: 0.25rem;
|
|
31
|
+
background: var(--neutral-neutral-6);
|
|
32
|
+
&__icon {
|
|
33
|
+
width: 0.875rem;
|
|
34
|
+
height: 0.875rem;
|
|
35
|
+
flex-shrink: 0;
|
|
36
|
+
}
|
|
37
|
+
&__text {
|
|
38
|
+
color: var(--neutral-neutral-2);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
`
|
package/dist/src/components/organisms/LimitReachedContentRatafia/LimitReachedContentRatafia.tsx
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React, { type FC } from 'react'
|
|
2
|
+
|
|
3
|
+
import { LimitReachedContentRatafiaProps } from '../LimitReachedContentRatafia'
|
|
4
|
+
import { LimitReachedContentRatafiaStyled } from './LimitReachedContentRatafia.styled'
|
|
5
|
+
|
|
6
|
+
export const LimitReachedContentRatafia: FC<LimitReachedContentRatafiaProps> = ({ title, message, icon }) => {
|
|
7
|
+
return (
|
|
8
|
+
<LimitReachedContentRatafiaStyled className='limit-reached-content-ratafia'>
|
|
9
|
+
<h2 className='limit-reached-content-ratafia__title sans-serif --bold-weight'>{title}</h2>
|
|
10
|
+
<div className='limit-reached-content-ratafia__message'>
|
|
11
|
+
<div className='limit-reached-content-ratafia__message__icon'>{icon}</div>
|
|
12
|
+
<div className='limit-reached-content-ratafia__message__text sans-serif --small'>{message}</div>
|
|
13
|
+
</div>
|
|
14
|
+
</LimitReachedContentRatafiaStyled>
|
|
15
|
+
)
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { LimitReachedContentRatafia } from './LimitReachedContentRatafia';
|
|
@@ -16,6 +16,7 @@ export * from './KeyFactsResultContentRatafia';
|
|
|
16
16
|
export * from './LanguageSelector';
|
|
17
17
|
export * from './LanguageSelectorMobile';
|
|
18
18
|
export * from './LayoutRatafia';
|
|
19
|
+
export * from './LimitReachedContentRatafia';
|
|
19
20
|
export * from './ListStepsGetForm';
|
|
20
21
|
export * from './LoginRatafiaContent';
|
|
21
22
|
export * from './MobileBottomBar';
|
|
@@ -16,6 +16,7 @@ export * from './KeyFactsResultContentRatafia';
|
|
|
16
16
|
export * from './LanguageSelector';
|
|
17
17
|
export * from './LanguageSelectorMobile';
|
|
18
18
|
export * from './LayoutRatafia';
|
|
19
|
+
export * from './LimitReachedContentRatafia';
|
|
19
20
|
export * from './ListStepsGetForm';
|
|
20
21
|
export * from './LoginRatafiaContent';
|
|
21
22
|
export * from './MobileBottomBar';
|
|
@@ -16,6 +16,7 @@ export * from './KeyFactsResultContentRatafia'
|
|
|
16
16
|
export * from './LanguageSelector'
|
|
17
17
|
export * from './LanguageSelectorMobile'
|
|
18
18
|
export * from './LayoutRatafia'
|
|
19
|
+
export * from './LimitReachedContentRatafia'
|
|
19
20
|
export * from './ListStepsGetForm'
|
|
20
21
|
export * from './LoginRatafiaContent'
|
|
21
22
|
export * from './MobileBottomBar'
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Button } from '../../atoms';
|
|
3
|
+
import DisclaimerRatafia from '../../atoms/DisclaimerRatafia/DisclaimerRatafia';
|
|
4
|
+
import { LayoutRatafia } from '../../organisms/LayoutRatafia';
|
|
5
|
+
import { LimitReachedContentRatafia } from '../../organisms';
|
|
6
|
+
import { LimitReachedRatafiaPageStyled } from './LimitReachedRatafiaPage.styled';
|
|
7
|
+
export const LimitReachedRatafiaPage = ({ header, limitReachedContent, disclaimer, goToDashboardCta }) => {
|
|
8
|
+
const ctaButton = (_jsx(Button, { givenClass: 'limit-reached-ratafia-page__cta', dataQa: goToDashboardCta.dataQa, color: 'primary', label: goToDashboardCta.label, link: goToDashboardCta.link }));
|
|
9
|
+
const content = _jsx(LimitReachedContentRatafia, { ...limitReachedContent });
|
|
10
|
+
const footerDesktop = (_jsx(DisclaimerRatafia, { icon: disclaimer.icon, text: disclaimer.text, copyrightText: disclaimer.copyrightText, ctaTextShowDisclaimer: disclaimer.ctaTextShowDisclaimer, ctaTextCloseDisclaimer: disclaimer.ctaTextCloseDisclaimer }));
|
|
11
|
+
const footerMobile = (_jsxs(_Fragment, { children: [footerDesktop, ctaButton] }));
|
|
12
|
+
return (_jsx(LimitReachedRatafiaPageStyled, { className: 'limit-reached-ratafia-page', children: _jsx(LayoutRatafia, { header: header, content: content, cta: ctaButton, footerDesktop: footerDesktop, footerMobile: footerMobile }) }));
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const LimitReachedRatafiaPageStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { device } from '../../../globalStyles/breakpoints';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
export const LimitReachedRatafiaPageStyled = styled.div `
|
|
4
|
+
background-color: var(--neutral-neutral-6);
|
|
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;
|
|
11
|
+
.limit-reached-ratafia-page {
|
|
12
|
+
&__cta {
|
|
13
|
+
align-self: start;
|
|
14
|
+
display: block;
|
|
15
|
+
width: 100%;
|
|
16
|
+
margin-top: 0.5rem;
|
|
17
|
+
@media ${device['portrait-tablets']} {
|
|
18
|
+
display: inline-block;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
`;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { device } from '../../../globalStyles/breakpoints'
|
|
2
|
+
import styled from 'styled-components'
|
|
3
|
+
|
|
4
|
+
export const LimitReachedRatafiaPageStyled = styled.div`
|
|
5
|
+
background-color: var(--neutral-neutral-6);
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
align-items: flex-start;
|
|
9
|
+
flex: 1 0 0;
|
|
10
|
+
align-self: stretch;
|
|
11
|
+
gap: 1.5rem;
|
|
12
|
+
.limit-reached-ratafia-page {
|
|
13
|
+
&__cta {
|
|
14
|
+
align-self: start;
|
|
15
|
+
display: block;
|
|
16
|
+
width: 100%;
|
|
17
|
+
margin-top: 0.5rem;
|
|
18
|
+
@media ${device['portrait-tablets']} {
|
|
19
|
+
display: inline-block;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
`
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
|
|
3
|
+
import { Button } from '../../atoms'
|
|
4
|
+
import DisclaimerRatafia from '../../atoms/DisclaimerRatafia/DisclaimerRatafia'
|
|
5
|
+
import { LayoutRatafia } from '../../organisms/LayoutRatafia'
|
|
6
|
+
import { LimitReachedContentRatafia } from '../../organisms'
|
|
7
|
+
import { LimitReachedRatafiaPageProps } from './LimitReachedRatafiaPageProps.types'
|
|
8
|
+
import { LimitReachedRatafiaPageStyled } from './LimitReachedRatafiaPage.styled'
|
|
9
|
+
|
|
10
|
+
export const LimitReachedRatafiaPage: React.FC<LimitReachedRatafiaPageProps> = ({
|
|
11
|
+
header,
|
|
12
|
+
limitReachedContent,
|
|
13
|
+
disclaimer,
|
|
14
|
+
goToDashboardCta
|
|
15
|
+
}) => {
|
|
16
|
+
const ctaButton = (
|
|
17
|
+
<Button
|
|
18
|
+
givenClass='limit-reached-ratafia-page__cta'
|
|
19
|
+
dataQa={goToDashboardCta.dataQa}
|
|
20
|
+
color='primary'
|
|
21
|
+
label={goToDashboardCta.label}
|
|
22
|
+
link={goToDashboardCta.link}
|
|
23
|
+
/>
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
const content = <LimitReachedContentRatafia {...limitReachedContent} />
|
|
27
|
+
|
|
28
|
+
const footerDesktop = (
|
|
29
|
+
<DisclaimerRatafia
|
|
30
|
+
icon={disclaimer.icon}
|
|
31
|
+
text={disclaimer.text}
|
|
32
|
+
copyrightText={disclaimer.copyrightText}
|
|
33
|
+
ctaTextShowDisclaimer={disclaimer.ctaTextShowDisclaimer}
|
|
34
|
+
ctaTextCloseDisclaimer={disclaimer.ctaTextCloseDisclaimer}
|
|
35
|
+
/>
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
const footerMobile = (
|
|
39
|
+
<>
|
|
40
|
+
{footerDesktop}
|
|
41
|
+
{ctaButton}
|
|
42
|
+
</>
|
|
43
|
+
)
|
|
44
|
+
|
|
45
|
+
return (
|
|
46
|
+
<LimitReachedRatafiaPageStyled className='limit-reached-ratafia-page'>
|
|
47
|
+
<LayoutRatafia
|
|
48
|
+
header={header}
|
|
49
|
+
content={content}
|
|
50
|
+
cta={ctaButton}
|
|
51
|
+
footerDesktop={footerDesktop}
|
|
52
|
+
footerMobile={footerMobile}
|
|
53
|
+
/>
|
|
54
|
+
</LimitReachedRatafiaPageStyled>
|
|
55
|
+
)
|
|
56
|
+
}
|