@npm_leadtech/legal-lib-components 5.18.3 → 5.18.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/README.md +16 -0
  2. package/dist/src/components/atoms/DisclaimerRatafia/DisclaimerRatafia.js +1 -1
  3. package/dist/src/components/atoms/DisclaimerRatafia/DisclaimerRatafia.tsx +0 -3
  4. package/dist/src/components/atoms/GoogleButton/GoogleButton.js +2 -2
  5. package/dist/src/components/atoms/GoogleButton/GoogleButton.tsx +2 -2
  6. package/dist/src/components/atoms/GoogleButton/GoogleButtonProps.types.d.ts +1 -0
  7. package/dist/src/components/atoms/GoogleButton/GoogleButtonProps.types.ts +1 -0
  8. package/dist/src/components/atoms/TagRatafiaItem/TagRatafiaItem.styled.js +2 -0
  9. package/dist/src/components/atoms/TagRatafiaItem/TagRatafiaItem.styled.ts +2 -0
  10. package/dist/src/components/molecules/HeaderRatafia/HeaderRatafia.js +2 -2
  11. package/dist/src/components/molecules/HeaderRatafia/HeaderRatafia.tsx +5 -2
  12. package/dist/src/components/molecules/HeaderRatafia/HeaderRatafiaProps.types.d.ts +2 -0
  13. package/dist/src/components/molecules/HeaderRatafia/HeaderRatafiaProps.types.ts +2 -0
  14. package/dist/src/components/molecules/MidBannerRatafiaContent/MidBannerRatafiaContent.js +1 -1
  15. package/dist/src/components/molecules/MidBannerRatafiaContent/MidBannerRatafiaContent.tsx +1 -1
  16. package/dist/src/components/molecules/TagsRatafiaList/TagsRatafiaList.styled.js +2 -1
  17. package/dist/src/components/molecules/TagsRatafiaList/TagsRatafiaList.styled.ts +2 -1
  18. package/dist/src/components/molecules/UploadRatafiaZone/UploadRatafiaZone.styled.js +2 -1
  19. package/dist/src/components/molecules/UploadRatafiaZone/UploadRatafiaZone.styled.ts +2 -1
  20. package/dist/src/components/organisms/FeaturesRatafiaContent/FeaturesRatafiaContent.styled.js +17 -14
  21. package/dist/src/components/organisms/FeaturesRatafiaContent/FeaturesRatafiaContent.styled.ts +17 -14
  22. package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafia.js +1 -1
  23. package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafia.tsx +3 -1
  24. package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafiaProps.types.d.ts +2 -0
  25. package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafiaProps.types.ts +2 -0
  26. package/dist/src/components/organisms/LimitReachedContentRatafia/LimitReachedContentRatafia.d.ts +3 -0
  27. package/dist/src/components/organisms/LimitReachedContentRatafia/LimitReachedContentRatafia.js +5 -0
  28. package/dist/src/components/organisms/LimitReachedContentRatafia/LimitReachedContentRatafia.styled.d.ts +1 -0
  29. package/dist/src/components/organisms/LimitReachedContentRatafia/LimitReachedContentRatafia.styled.js +41 -0
  30. package/dist/src/components/organisms/LimitReachedContentRatafia/LimitReachedContentRatafia.styled.ts +42 -0
  31. package/dist/src/components/organisms/LimitReachedContentRatafia/LimitReachedContentRatafia.tsx +16 -0
  32. package/dist/src/components/organisms/LimitReachedContentRatafia/LimitReachedContentRatafiaProps.types.d.ts +5 -0
  33. package/dist/src/components/organisms/LimitReachedContentRatafia/LimitReachedContentRatafiaProps.types.js +1 -0
  34. package/dist/src/components/organisms/LimitReachedContentRatafia/LimitReachedContentRatafiaProps.types.ts +5 -0
  35. package/dist/src/components/organisms/LimitReachedContentRatafia/index.d.ts +2 -0
  36. package/dist/src/components/organisms/LimitReachedContentRatafia/index.js +1 -0
  37. package/dist/src/components/organisms/LimitReachedContentRatafia/index.ts +2 -0
  38. package/dist/src/components/organisms/LoginRatafiaContent/LoginRatafiaContent.js +4 -3
  39. package/dist/src/components/organisms/LoginRatafiaContent/LoginRatafiaContent.styled.js +7 -0
  40. package/dist/src/components/organisms/LoginRatafiaContent/LoginRatafiaContent.styled.ts +7 -0
  41. package/dist/src/components/organisms/LoginRatafiaContent/LoginRatafiaContent.tsx +8 -2
  42. package/dist/src/components/organisms/index.d.ts +1 -0
  43. package/dist/src/components/organisms/index.js +1 -0
  44. package/dist/src/components/organisms/index.ts +1 -0
  45. package/dist/src/components/pages/LimitReachedRatafiaPage/LimitReachedRatafiaPage.d.ts +3 -0
  46. package/dist/src/components/pages/LimitReachedRatafiaPage/LimitReachedRatafiaPage.js +13 -0
  47. package/dist/src/components/pages/LimitReachedRatafiaPage/LimitReachedRatafiaPage.styled.d.ts +1 -0
  48. package/dist/src/components/pages/LimitReachedRatafiaPage/LimitReachedRatafiaPage.styled.js +22 -0
  49. package/dist/src/components/pages/LimitReachedRatafiaPage/LimitReachedRatafiaPage.styled.ts +23 -0
  50. package/dist/src/components/pages/LimitReachedRatafiaPage/LimitReachedRatafiaPage.tsx +56 -0
  51. package/dist/src/components/pages/LimitReachedRatafiaPage/LimitReachedRatafiaPageProps.types.d.ts +15 -0
  52. package/dist/src/components/pages/LimitReachedRatafiaPage/LimitReachedRatafiaPageProps.types.js +1 -0
  53. package/dist/src/components/pages/LimitReachedRatafiaPage/LimitReachedRatafiaPageProps.types.ts +16 -0
  54. package/dist/src/components/pages/LimitReachedRatafiaPage/index.d.ts +2 -0
  55. package/dist/src/components/pages/LimitReachedRatafiaPage/index.js +1 -0
  56. package/dist/src/components/pages/LimitReachedRatafiaPage/index.ts +2 -0
  57. package/dist/src/components/pages/LoginRatafiaPage/LoginRatafiaPage.styled.js +11 -2
  58. package/dist/src/components/pages/LoginRatafiaPage/LoginRatafiaPage.styled.ts +11 -2
  59. package/dist/src/components/pages/index.d.ts +1 -0
  60. package/dist/src/components/pages/index.js +1 -0
  61. package/dist/src/components/pages/index.ts +1 -0
  62. package/dist/src/components/sections/FaqSection/FaqSection.styled.js +4 -1
  63. package/dist/src/components/sections/FaqSection/FaqSection.styled.ts +4 -1
  64. package/dist/src/components/sections/FeaturesRatafiaSection/FeaturesRatafiaSection.scss +0 -0
  65. package/dist/src/components/sections/FeaturesRatafiaSection/FeaturesRatafiaSection.styled.js +0 -1
  66. package/dist/src/components/sections/FeaturesRatafiaSection/FeaturesRatafiaSection.styled.ts +0 -1
  67. package/dist/src/components/sections/LayoutRatafiaSection/LayoutRatafiaSection.d.ts +4 -0
  68. package/dist/src/components/sections/LayoutRatafiaSection/LayoutRatafiaSection.js +12 -0
  69. package/dist/src/components/sections/LayoutRatafiaSection/LayoutRatafiaSection.styled.d.ts +1 -0
  70. package/dist/src/components/sections/LayoutRatafiaSection/LayoutRatafiaSection.styled.js +75 -0
  71. package/dist/src/components/sections/LayoutRatafiaSection/LayoutRatafiaSection.styled.ts +76 -0
  72. package/dist/src/components/sections/LayoutRatafiaSection/LayoutRatafiaSection.tsx +61 -0
  73. package/dist/src/components/sections/LayoutRatafiaSection/LayoutRatafiaSectionProps.types.d.ts +12 -0
  74. package/dist/src/components/sections/LayoutRatafiaSection/LayoutRatafiaSectionProps.types.js +1 -0
  75. package/dist/src/components/sections/LayoutRatafiaSection/LayoutRatafiaSectionProps.types.ts +13 -0
  76. package/dist/src/components/sections/LayoutRatafiaSection/index.d.ts +2 -0
  77. package/dist/src/components/sections/LayoutRatafiaSection/index.js +1 -0
  78. package/dist/src/components/sections/LayoutRatafiaSection/index.ts +2 -0
  79. package/dist/src/components/sections/TryItRatafiaSection/TryItRatafiaSection.js +1 -2
  80. package/dist/src/components/sections/TryItRatafiaSection/TryItRatafiaSection.tsx +2 -3
  81. package/dist/tsconfig.build.tsbuildinfo +1 -1
  82. package/package.json +6 -2
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { LimitReachedRatafiaPageProps } from './LimitReachedRatafiaPageProps.types';
3
+ export declare const LimitReachedRatafiaPage: React.FC<LimitReachedRatafiaPageProps>;
@@ -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
+ }
@@ -0,0 +1,15 @@
1
+ import type { DisclaimerRatafiaProps } from '../../atoms';
2
+ import { type HeaderRatafiaProps } from '../../molecules';
3
+ import { LimitReachedContentRatafiaProps } from '../../organisms';
4
+ export interface LimitReachedRatafiaPageProps {
5
+ header: HeaderRatafiaProps;
6
+ limitReachedContent: LimitReachedContentRatafiaProps;
7
+ disclaimer: DisclaimerRatafiaProps;
8
+ goToDashboardCta: cta;
9
+ }
10
+ interface cta {
11
+ label: string;
12
+ link?: string;
13
+ dataQa: string;
14
+ }
15
+ export {};
@@ -0,0 +1,16 @@
1
+ import type { DisclaimerRatafiaProps } from '../../atoms'
2
+ import { type HeaderRatafiaProps } from '../../molecules'
3
+ import { LimitReachedContentRatafiaProps } from '../../organisms'
4
+
5
+ export interface LimitReachedRatafiaPageProps {
6
+ header: HeaderRatafiaProps
7
+ limitReachedContent: LimitReachedContentRatafiaProps
8
+ disclaimer: DisclaimerRatafiaProps
9
+ goToDashboardCta: cta
10
+ }
11
+
12
+ interface cta {
13
+ label: string
14
+ link?: string
15
+ dataQa: string
16
+ }
@@ -0,0 +1,2 @@
1
+ export { LimitReachedRatafiaPage } from './LimitReachedRatafiaPage';
2
+ export { type LimitReachedRatafiaPageProps } from './LimitReachedRatafiaPageProps.types';
@@ -0,0 +1 @@
1
+ export { LimitReachedRatafiaPage } from './LimitReachedRatafiaPage';
@@ -0,0 +1,2 @@
1
+ export { LimitReachedRatafiaPage } from './LimitReachedRatafiaPage'
2
+ export { type LimitReachedRatafiaPageProps } from './LimitReachedRatafiaPageProps.types'
@@ -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
- &__ctas {
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
- &__ctas {
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;
@@ -4,6 +4,7 @@ export * from './ErrorRatafiaPage';
4
4
  export * from './FaqsPage';
5
5
  export * from './KeyFactsResultRatafiaPage';
6
6
  export * from './LegalPage';
7
+ export * from './LimitReachedRatafiaPage';
7
8
  export * from './RatafiaLandingPage';
8
9
  export * from './UnsubscribePage';
9
10
  export * from './LoginRatafiaPage';
@@ -4,6 +4,7 @@ export * from './ErrorRatafiaPage';
4
4
  export * from './FaqsPage';
5
5
  export * from './KeyFactsResultRatafiaPage';
6
6
  export * from './LegalPage';
7
+ export * from './LimitReachedRatafiaPage';
7
8
  export * from './RatafiaLandingPage';
8
9
  export * from './UnsubscribePage';
9
10
  export * from './LoginRatafiaPage';
@@ -4,6 +4,7 @@ export * from './ErrorRatafiaPage'
4
4
  export * from './FaqsPage'
5
5
  export * from './KeyFactsResultRatafiaPage'
6
6
  export * from './LegalPage'
7
+ export * from './LimitReachedRatafiaPage'
7
8
  export * from './RatafiaLandingPage'
8
9
  export * from './UnsubscribePage'
9
10
  export * from './LoginRatafiaPage'
@@ -8,7 +8,7 @@ export const FaqSectionStyled = styled.section `
8
8
  max-width: 700px;
9
9
  width: 100%;
10
10
 
11
- .faq-ratafia-section {
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
- .faq-ratafia-section {
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
  `
@@ -39,7 +39,6 @@ export const FeaturesRatafiaSectionStyled = styled.section `
39
39
 
40
40
  &__children {
41
41
  display: none;
42
- //TODO: Check again with the real container;
43
42
  min-width: 50%;
44
43
 
45
44
  @media ${device.desktop} {
@@ -40,7 +40,6 @@ export const FeaturesRatafiaSectionStyled = styled.section`
40
40
 
41
41
  &__children {
42
42
  display: none;
43
- //TODO: Check again with the real container;
44
43
  min-width: 50%;
45
44
 
46
45
  @media ${device.desktop} {
@@ -0,0 +1,4 @@
1
+ import { type FC } from 'react';
2
+ import { type LayoutRatafiaSectionProps } from './LayoutRatafiaSectionProps.types';
3
+ declare const LayoutRatafiaSection: FC<LayoutRatafiaSectionProps>;
4
+ export default LayoutRatafiaSection;
@@ -0,0 +1,12 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Button } from '../../atoms';
3
+ import { LayoutRatafiaSectionStyled } from './LayoutRatafiaSection.styled';
4
+ import { TagsRatafiaList } from '../../molecules';
5
+ import { useIsMobileOrTable } from '../../../hooks';
6
+ const LayoutRatafiaSection = ({ title, children, tags = [], ctaLabel, ctaLink = '#', handleOnClick, ctaDataQa = 'ai-section-cta', image }) => {
7
+ const { isMobile } = useIsMobileOrTable();
8
+ if (children == undefined)
9
+ return null;
10
+ return (_jsx(LayoutRatafiaSectionStyled, { className: 'layout-ratafia-section', children: _jsxs("div", { className: 'layout-ratafia-section__wrapper background-ratafia-animation', children: [_jsxs("div", { className: 'layout-ratafia-section__wrapper__info', children: [_jsxs("div", { className: 'layout-ratafia-section__wrapper__info__paragraph', children: [title && (_jsx("h2", { className: 'layout-ratafia-section__wrapper__info__paragraph__title sans-serif --super-large --bold-weight', children: title })), _jsx("div", { className: 'layout-ratafia-section__wrapper__info__paragraph__content sans-serif --super-medium', children: children })] }), tags?.length > 0 && (_jsx("div", { className: 'layout-ratafia-section__wrapper__info__tags', children: _jsx(TagsRatafiaList, { tags: tags }) })), ctaLabel && (_jsx("div", { className: 'layout-ratafia-section__wrapper__info__button', children: _jsx(Button, { givenClass: 'mid-banner-ratafia-content__cta', dataQa: ctaDataQa, link: ctaLink, onClick: handleOnClick, color: 'primary', label: ctaLabel, fluid: isMobile }) }))] }), image !== null && _jsx("div", { className: 'layout-ratafia-section__wrapper__image', children: image })] }) }));
11
+ };
12
+ export default LayoutRatafiaSection;
@@ -0,0 +1 @@
1
+ export declare const LayoutRatafiaSectionStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
@@ -0,0 +1,75 @@
1
+ import { device } from '../../../globalStyles/breakpoints';
2
+ import styled from 'styled-components';
3
+ export const LayoutRatafiaSectionStyled = styled.section `
4
+ display: flex;
5
+ justify-content: center;
6
+ align-content: center;
7
+ width: 100%;
8
+ padding: 2rem 1.5rem;
9
+
10
+ @media ${device.laptop} {
11
+ padding: 3rem 2rem;
12
+ }
13
+
14
+ @media ${device['desktop-xl']} {
15
+ padding: 3rem 0;
16
+ }
17
+
18
+ .layout-ratafia-section {
19
+ &__wrapper {
20
+ display: flex;
21
+ flex-direction: column;
22
+ justify-content: center;
23
+ align-items: center;
24
+ align-self: stretch;
25
+ padding: 1.5rem;
26
+ gap: 2.5rem;
27
+ border-radius: 16px;
28
+ max-width: 1200px;
29
+
30
+ @media ${device['landscape-tablets']} {
31
+ flex-direction: row;
32
+ padding: 2.5rem;
33
+ }
34
+
35
+ @media ${device.laptop} {
36
+ gap: 4rem;
37
+ padding: 4rem;
38
+ }
39
+
40
+ &__info {
41
+ display: flex;
42
+ flex-direction: column;
43
+ justify-content: center;
44
+ align-items: flex-start;
45
+ align-self: stretch;
46
+ gap: 2rem;
47
+
48
+ &__paragraph {
49
+ display: flex;
50
+ flex-direction: column;
51
+ gap: 1rem;
52
+ color: var(--others-white);
53
+
54
+ p:not(:last-child) {
55
+ margin-bottom: 1.5rem;
56
+ }
57
+ }
58
+
59
+ &__tags {
60
+ flex: 1;
61
+ }
62
+
63
+ &__button {
64
+ display: flex;
65
+ width: 100%;
66
+ }
67
+ }
68
+
69
+ &__image {
70
+ display: flex;
71
+ flex: 300px 0 0;
72
+ }
73
+ }
74
+ }
75
+ `;
@@ -0,0 +1,76 @@
1
+ import { device } from '../../../globalStyles/breakpoints'
2
+ import styled from 'styled-components'
3
+
4
+ export const LayoutRatafiaSectionStyled = styled.section`
5
+ display: flex;
6
+ justify-content: center;
7
+ align-content: center;
8
+ width: 100%;
9
+ padding: 2rem 1.5rem;
10
+
11
+ @media ${device.laptop} {
12
+ padding: 3rem 2rem;
13
+ }
14
+
15
+ @media ${device['desktop-xl']} {
16
+ padding: 3rem 0;
17
+ }
18
+
19
+ .layout-ratafia-section {
20
+ &__wrapper {
21
+ display: flex;
22
+ flex-direction: column;
23
+ justify-content: center;
24
+ align-items: center;
25
+ align-self: stretch;
26
+ padding: 1.5rem;
27
+ gap: 2.5rem;
28
+ border-radius: 16px;
29
+ max-width: 1200px;
30
+
31
+ @media ${device['landscape-tablets']} {
32
+ flex-direction: row;
33
+ padding: 2.5rem;
34
+ }
35
+
36
+ @media ${device.laptop} {
37
+ gap: 4rem;
38
+ padding: 4rem;
39
+ }
40
+
41
+ &__info {
42
+ display: flex;
43
+ flex-direction: column;
44
+ justify-content: center;
45
+ align-items: flex-start;
46
+ align-self: stretch;
47
+ gap: 2rem;
48
+
49
+ &__paragraph {
50
+ display: flex;
51
+ flex-direction: column;
52
+ gap: 1rem;
53
+ color: var(--others-white);
54
+
55
+ p:not(:last-child) {
56
+ margin-bottom: 1.5rem;
57
+ }
58
+ }
59
+
60
+ &__tags {
61
+ flex: 1;
62
+ }
63
+
64
+ &__button {
65
+ display: flex;
66
+ width: 100%;
67
+ }
68
+ }
69
+
70
+ &__image {
71
+ display: flex;
72
+ flex: 300px 0 0;
73
+ }
74
+ }
75
+ }
76
+ `
@@ -0,0 +1,61 @@
1
+ import React, { type FC } from 'react'
2
+
3
+ import { Button } from '../../atoms'
4
+ import { type LayoutRatafiaSectionProps } from './LayoutRatafiaSectionProps.types'
5
+ import { LayoutRatafiaSectionStyled } from './LayoutRatafiaSection.styled'
6
+ import { TagsRatafiaList } from '../../molecules'
7
+ import { useIsMobileOrTable } from '../../../hooks'
8
+
9
+ const LayoutRatafiaSection: FC<LayoutRatafiaSectionProps> = ({
10
+ title,
11
+ children,
12
+ tags = [],
13
+ ctaLabel,
14
+ ctaLink = '#',
15
+ handleOnClick,
16
+ ctaDataQa = 'ai-section-cta',
17
+ image
18
+ }) => {
19
+ const { isMobile } = useIsMobileOrTable()
20
+ if (children == undefined) return null
21
+
22
+ return (
23
+ <LayoutRatafiaSectionStyled className='layout-ratafia-section'>
24
+ <div className='layout-ratafia-section__wrapper background-ratafia-animation'>
25
+ <div className='layout-ratafia-section__wrapper__info'>
26
+ <div className='layout-ratafia-section__wrapper__info__paragraph'>
27
+ {title && (
28
+ <h2 className='layout-ratafia-section__wrapper__info__paragraph__title sans-serif --super-large --bold-weight'>
29
+ {title}
30
+ </h2>
31
+ )}
32
+ <div className='layout-ratafia-section__wrapper__info__paragraph__content sans-serif --super-medium'>
33
+ {children}
34
+ </div>
35
+ </div>
36
+ {tags?.length > 0 && (
37
+ <div className='layout-ratafia-section__wrapper__info__tags'>
38
+ <TagsRatafiaList tags={tags} />
39
+ </div>
40
+ )}
41
+ {ctaLabel && (
42
+ <div className='layout-ratafia-section__wrapper__info__button'>
43
+ <Button
44
+ givenClass='mid-banner-ratafia-content__cta'
45
+ dataQa={ctaDataQa}
46
+ link={ctaLink}
47
+ onClick={handleOnClick}
48
+ color='primary'
49
+ label={ctaLabel}
50
+ fluid={isMobile}
51
+ />
52
+ </div>
53
+ )}
54
+ </div>
55
+ {image !== null && <div className='layout-ratafia-section__wrapper__image'>{image}</div>}
56
+ </div>
57
+ </LayoutRatafiaSectionStyled>
58
+ )
59
+ }
60
+
61
+ export default LayoutRatafiaSection
@@ -0,0 +1,12 @@
1
+ import { MouseEventHandler } from 'react';
2
+ import { TagRatafiaItemProps } from 'src/components/atoms';
3
+ export interface LayoutRatafiaSectionProps {
4
+ title?: string;
5
+ children: React.ReactNode;
6
+ tags?: TagRatafiaItemProps[];
7
+ ctaLabel?: string;
8
+ ctaLink?: string;
9
+ handleOnClick?: MouseEventHandler;
10
+ ctaDataQa?: string;
11
+ image?: React.ReactNode;
12
+ }
@@ -0,0 +1,13 @@
1
+ import { MouseEventHandler } from 'react'
2
+ import { TagRatafiaItemProps } from 'src/components/atoms'
3
+
4
+ export interface LayoutRatafiaSectionProps {
5
+ title?: string
6
+ children: React.ReactNode
7
+ tags?: TagRatafiaItemProps[]
8
+ ctaLabel?: string
9
+ ctaLink?: string
10
+ handleOnClick?: MouseEventHandler
11
+ ctaDataQa?: string
12
+ image?: React.ReactNode
13
+ }
@@ -0,0 +1,2 @@
1
+ export { default as LayoutRatafiaSection } from './LayoutRatafiaSection';
2
+ export { type LayoutRatafiaSectionProps } from './LayoutRatafiaSectionProps.types';
@@ -0,0 +1 @@
1
+ export { default as LayoutRatafiaSection } from './LayoutRatafiaSection';
@@ -0,0 +1,2 @@
1
+ export { default as LayoutRatafiaSection } from './LayoutRatafiaSection'
2
+ export { type LayoutRatafiaSectionProps } from './LayoutRatafiaSectionProps.types'
@@ -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("h2", { className: 'sans-serif --extra-large --bold-weight try-it-ratafia-section__wrapper__content__title', children: paragraph })] }), _jsx("span", { className: 'try-it-ratafia-section__wrapper__children', children: children })] }) }));
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
- <h2 className='sans-serif --extra-large --bold-weight try-it-ratafia-section__wrapper__content__title'>
12
+ <h3 className='sans-serif --extra-large --bold-weight try-it-ratafia-section__wrapper__content__title'>
14
13
  {paragraph}
15
- </h2>
14
+ </h3>
16
15
  </div>
17
16
  <span className='try-it-ratafia-section__wrapper__children'>{children}</span>
18
17
  </div>