@npm_leadtech/legal-lib-components 5.11.11 → 5.11.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/styles.css +1 -848
- package/dist/src/components/atoms/MenuItems/MenuItemProps.types.d.ts +1 -0
- package/dist/src/components/atoms/MenuItems/MenuItemProps.types.ts +1 -0
- package/dist/src/components/atoms/SearchSelect/SearchSelect.styled.js +1 -1
- package/dist/src/components/atoms/SearchSelect/SearchSelect.styled.ts +1 -1
- package/dist/src/components/molecules/BottomOverlay/BottomOverlay.js +12 -0
- package/dist/src/components/molecules/BottomOverlay/BottomOverlay.tsx +12 -0
- package/dist/src/components/molecules/MoreDocsDesktop/MoreDocsDesktop.styled.js +0 -5
- package/dist/src/components/molecules/MoreDocsDesktop/MoreDocsDesktop.styled.ts +0 -5
- package/dist/src/components/molecules/MoreDocsMobile/MoreDocsMobile.styled.js +12 -5
- package/dist/src/components/molecules/MoreDocsMobile/MoreDocsMobile.styled.ts +12 -5
- package/dist/src/components/molecules/RatafiaSubscriptionCard/RatafiaSubscriptionCard.styled.js +7 -0
- package/dist/src/components/molecules/RatafiaSubscriptionCard/RatafiaSubscriptionCard.styled.ts +7 -0
- package/dist/src/components/molecules/TextInput/TextInput.scss +1 -1
- package/dist/src/components/organisms/AboutUsContent/AboutUsContent.js +2 -2
- package/dist/src/components/organisms/AboutUsContent/AboutUsContent.styled.d.ts +1 -0
- package/dist/src/components/organisms/AboutUsContent/AboutUsContent.styled.js +59 -0
- package/dist/src/components/organisms/AboutUsContent/{AboutUsContent.scss → AboutUsContent.styled.ts} +13 -11
- package/dist/src/components/organisms/AboutUsContent/AboutUsContent.tsx +3 -3
- package/dist/src/components/organisms/Accordion/Accordion.js +2 -2
- package/dist/src/components/organisms/Accordion/Accordion.styled.d.ts +1 -0
- package/dist/src/components/organisms/Accordion/Accordion.styled.js +5 -0
- package/dist/src/components/organisms/Accordion/Accordion.styled.ts +6 -0
- package/dist/src/components/organisms/Accordion/Accordion.tsx +3 -4
- package/dist/src/components/organisms/ArticlesList/ArticlesList.js +2 -2
- package/dist/src/components/organisms/ArticlesList/ArticlesList.styled.d.ts +1 -0
- package/dist/src/components/organisms/ArticlesList/ArticlesList.styled.js +11 -0
- package/dist/src/components/organisms/ArticlesList/ArticlesList.styled.ts +12 -0
- package/dist/src/components/organisms/ArticlesList/ArticlesList.tsx +3 -3
- package/dist/src/components/organisms/AsSeeInContent/AsSeeInContent.js +3 -3
- package/dist/src/components/organisms/AsSeeInContent/AsSeeInContent.styled.d.ts +1 -0
- package/dist/src/components/organisms/AsSeeInContent/AsSeeInContent.styled.js +22 -0
- package/dist/src/components/organisms/AsSeeInContent/AsSeeInContent.styled.ts +23 -0
- package/dist/src/components/organisms/AsSeeInContent/AsSeeInContent.tsx +3 -3
- package/dist/src/components/organisms/CardFunctionality/CardFunctionality.js +2 -2
- package/dist/src/components/organisms/CardFunctionality/CardFunctionality.styled.d.ts +1 -0
- package/dist/src/components/organisms/CardFunctionality/CardFunctionality.styled.js +60 -0
- package/dist/src/components/organisms/CardFunctionality/{CardFunctionality.scss → CardFunctionality.styled.ts} +3 -3
- package/dist/src/components/organisms/CardFunctionality/CardFunctionality.tsx +3 -3
- package/dist/src/components/organisms/ContactJumbotron/ContactJumbotron.js +2 -2
- package/dist/src/components/organisms/ContactJumbotron/ContactJumbotron.styled.d.ts +1 -0
- package/dist/src/components/organisms/ContactJumbotron/ContactJumbotron.styled.js +43 -0
- package/dist/src/components/organisms/ContactJumbotron/{ContactJumbotron.scss → ContactJumbotron.styled.ts} +6 -7
- package/dist/src/components/organisms/ContactJumbotron/ContactJumbotron.tsx +3 -3
- package/dist/src/components/organisms/CookiePolicyBar/CookiePolicyBar.js +2 -2
- package/dist/src/components/organisms/CookiePolicyBar/CookiePolicyBar.styled.d.ts +1 -0
- package/dist/src/components/organisms/CookiePolicyBar/CookiePolicyBar.styled.js +48 -0
- package/dist/src/components/organisms/CookiePolicyBar/CookiePolicyBar.styled.ts +49 -0
- package/dist/src/components/organisms/CookiePolicyBar/CookiePolicyBar.tsx +11 -13
- package/dist/src/components/organisms/ErrorContentRatafia/ErrorContentRatafia.js +2 -2
- package/dist/src/components/organisms/ErrorContentRatafia/ErrorContentRatafia.styled.d.ts +1 -0
- package/dist/src/components/organisms/ErrorContentRatafia/ErrorContentRatafia.styled.js +18 -0
- package/dist/src/components/organisms/ErrorContentRatafia/{ErrorContentRatafia.scss → ErrorContentRatafia.styled.ts} +7 -6
- package/dist/src/components/organisms/ErrorContentRatafia/ErrorContentRatafia.tsx +3 -3
- package/dist/src/components/organisms/FaqGroup/FaqGroup.js +2 -2
- package/dist/src/components/organisms/FaqGroup/FaqGroup.styled.d.ts +1 -0
- package/dist/src/components/organisms/FaqGroup/FaqGroup.styled.js +21 -0
- package/dist/src/components/organisms/FaqGroup/{FaqGroup.scss → FaqGroup.styled.ts} +3 -3
- package/dist/src/components/organisms/FaqGroup/FaqGroup.tsx +3 -3
- package/dist/src/components/organisms/FeaturesRatafiaContent/FeaturesRatafiaContent.js +2 -2
- package/dist/src/components/organisms/FeaturesRatafiaContent/FeaturesRatafiaContent.styled.d.ts +1 -0
- package/dist/src/components/organisms/FeaturesRatafiaContent/FeaturesRatafiaContent.styled.js +27 -0
- package/dist/src/components/organisms/FeaturesRatafiaContent/{FeaturesRatafiaContent.scss → FeaturesRatafiaContent.styled.ts} +4 -4
- package/dist/src/components/organisms/FeaturesRatafiaContent/FeaturesRatafiaContent.tsx +3 -3
- package/dist/src/components/organisms/GuidelinesContent/GuidelinesContent.js +3 -3
- package/dist/src/components/organisms/GuidelinesContent/GuidelinesContent.styled.d.ts +1 -0
- package/dist/src/components/organisms/GuidelinesContent/GuidelinesContent.styled.js +138 -0
- package/dist/src/components/organisms/GuidelinesContent/{GuidelinesContent.scss → GuidelinesContent.styled.ts} +17 -17
- package/dist/src/components/organisms/GuidelinesContent/GuidelinesContent.tsx +3 -3
- package/dist/src/components/organisms/JumbotronRatafiaContent/JumbotronRatafiaContent.js +2 -2
- package/dist/src/components/organisms/JumbotronRatafiaContent/JumbotronRatafiaContent.styled.d.ts +1 -0
- package/dist/src/components/organisms/JumbotronRatafiaContent/JumbotronRatafiaContent.styled.js +26 -0
- package/dist/src/components/organisms/JumbotronRatafiaContent/{JumbotronRatafiaContent.scss → JumbotronRatafiaContent.styled.ts} +6 -7
- package/dist/src/components/organisms/JumbotronRatafiaContent/JumbotronRatafiaContent.tsx +3 -3
- package/dist/src/components/organisms/KeyFactsLoadingContentRatafia/KeyFactsLoadingContentRatafia.js +2 -2
- package/dist/src/components/organisms/KeyFactsLoadingContentRatafia/KeyFactsLoadingContentRatafia.styled.d.ts +1 -0
- package/dist/src/components/organisms/KeyFactsLoadingContentRatafia/KeyFactsLoadingContentRatafia.styled.js +144 -0
- package/dist/src/components/organisms/KeyFactsLoadingContentRatafia/{KeyFactsLoadingContentRatafia.scss → KeyFactsLoadingContentRatafia.styled.ts} +24 -25
- package/dist/src/components/organisms/KeyFactsLoadingContentRatafia/KeyFactsLoadingContentRatafia.tsx +3 -3
- package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafia.js +2 -2
- package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafia.styled.d.ts +1 -0
- package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafia.styled.js +21 -0
- package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafia.styled.ts +22 -0
- package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafia.tsx +3 -3
- package/dist/src/components/organisms/LanguageSelectorMobile/LanguageSelectorMobile.js +2 -2
- package/dist/src/components/organisms/LanguageSelectorMobile/LanguageSelectorMobile.styled.d.ts +5 -0
- package/dist/src/components/organisms/LanguageSelectorMobile/{LanguageSelectorMobile.scss → LanguageSelectorMobile.styled.js} +6 -6
- package/dist/src/components/organisms/LanguageSelectorMobile/LanguageSelectorMobile.styled.ts +70 -0
- package/dist/src/components/organisms/LanguageSelectorMobile/LanguageSelectorMobile.tsx +3 -3
- package/dist/src/components/organisms/LayoutRatafia/LayoutRatafia.js +2 -2
- package/dist/src/components/organisms/LayoutRatafia/LayoutRatafia.styled.d.ts +1 -0
- package/dist/src/components/organisms/LayoutRatafia/LayoutRatafia.styled.js +91 -0
- package/dist/src/components/organisms/LayoutRatafia/{LayoutRatafia.scss → LayoutRatafia.styled.ts} +12 -13
- package/dist/src/components/organisms/LayoutRatafia/LayoutRatafia.tsx +3 -3
- package/dist/src/components/organisms/ListStepsGetForm/ListStepsGetForm.js +2 -2
- package/dist/src/components/organisms/ListStepsGetForm/ListStepsGetForm.styled.d.ts +1 -0
- package/dist/src/components/organisms/ListStepsGetForm/ListStepsGetForm.styled.js +34 -0
- package/dist/src/components/organisms/ListStepsGetForm/{ListStepsGetForm.scss → ListStepsGetForm.styled.ts} +7 -7
- package/dist/src/components/organisms/ListStepsGetForm/ListStepsGetForm.tsx +3 -3
- package/dist/src/components/organisms/LoginRatafiaContent/LoginRatafiaContent.js +2 -2
- package/dist/src/components/organisms/LoginRatafiaContent/LoginRatafiaContent.styled.d.ts +1 -0
- package/dist/src/components/organisms/LoginRatafiaContent/LoginRatafiaContent.styled.js +14 -0
- package/dist/src/components/organisms/LoginRatafiaContent/LoginRatafiaContent.styled.ts +15 -0
- package/dist/src/components/organisms/LoginRatafiaContent/LoginRatafiaContent.tsx +3 -3
- package/dist/src/components/organisms/MobileBottomBar/MobileBottomBar.js +4 -8
- package/dist/src/components/organisms/MobileBottomBar/MobileBottomBar.styled.d.ts +1 -0
- package/dist/src/components/organisms/MobileBottomBar/MobileBottomBar.styled.js +45 -0
- package/dist/src/components/organisms/MobileBottomBar/{MobileBottomBar.scss → MobileBottomBar.styled.ts} +6 -6
- package/dist/src/components/organisms/MobileBottomBar/MobileBottomBar.tsx +5 -10
- package/dist/src/components/organisms/MobileBottomBar/MobileBottomBarProps.types.d.ts +0 -1
- package/dist/src/components/organisms/MobileBottomBar/MobileBottomBarProps.types.ts +0 -1
- package/dist/src/components/organisms/StepsRatafiaContent/StepsRatafiaContent.js +2 -2
- package/dist/src/components/organisms/StepsRatafiaContent/StepsRatafiaContent.styled.d.ts +1 -0
- package/dist/src/components/organisms/StepsRatafiaContent/StepsRatafiaContent.styled.js +11 -0
- package/dist/src/components/organisms/StepsRatafiaContent/StepsRatafiaContent.styled.ts +12 -0
- package/dist/src/components/organisms/StepsRatafiaContent/StepsRatafiaContent.tsx +3 -3
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.js +3 -3
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.styled.d.ts +1 -0
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.styled.js +54 -0
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.styled.ts +55 -0
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.tsx +3 -3
- package/dist/src/components/pages/ErrorRatafiaPage/ErrorRatafiaPage.styled.js +2 -1
- package/dist/src/components/pages/ErrorRatafiaPage/ErrorRatafiaPage.styled.ts +2 -1
- package/dist/src/components/pages/FaqsPage/FaqsPage.styled.js +5 -4
- package/dist/src/components/pages/FaqsPage/FaqsPage.styled.ts +5 -4
- package/dist/src/components/pages/KeyFactsResultRatafiaPage/KeyFactsResultRatafiaPage.styled.js +2 -1
- package/dist/src/components/pages/KeyFactsResultRatafiaPage/KeyFactsResultRatafiaPage.styled.ts +2 -1
- package/dist/src/globalStyles/styles.scss +0 -22
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/src/components/organisms/Accordion/Accordion.scss +0 -4
- package/dist/src/components/organisms/ArticlesList/ArticlesList.scss +0 -12
- package/dist/src/components/organisms/AsSeeInContent/AsSeeInContent.scss +0 -22
- package/dist/src/components/organisms/CookiePolicyBar/CookiePolicyBar.scss +0 -54
- package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafia.scss +0 -23
- package/dist/src/components/organisms/LoginRatafiaContent/LoginRatafiaContent.scss +0 -16
- package/dist/src/components/organisms/StepsRatafiaContent/StepsRatafiaContent.scss +0 -12
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { device } from '../../../globalStyles/breakpoints';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
export const KeyFactsResultContentRatafiaStyled = 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: 1rem;
|
|
10
|
+
|
|
11
|
+
.key-facts-result-content__document-name {
|
|
12
|
+
color: var(--neutral-neutral-2);
|
|
13
|
+
font-size: 1rem;
|
|
14
|
+
@media ${device['portrait-tablets']} {
|
|
15
|
+
font-size: 1.125rem;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
.key-facts-result-content__content {
|
|
19
|
+
overflow: hidden;
|
|
20
|
+
}
|
|
21
|
+
`;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { device } from '../../../globalStyles/breakpoints'
|
|
2
|
+
import styled from 'styled-components'
|
|
3
|
+
|
|
4
|
+
export const KeyFactsResultContentRatafiaStyled = 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: 1rem;
|
|
11
|
+
|
|
12
|
+
.key-facts-result-content__document-name {
|
|
13
|
+
color: var(--neutral-neutral-2);
|
|
14
|
+
font-size: 1rem;
|
|
15
|
+
@media ${device['portrait-tablets']} {
|
|
16
|
+
font-size: 1.125rem;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
.key-facts-result-content__content {
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
}
|
|
22
|
+
`
|
package/dist/src/components/organisms/KeyFactsResultContentRatafia/KeyFactsResultContentRatafia.tsx
CHANGED
|
@@ -2,18 +2,18 @@ import React from 'react'
|
|
|
2
2
|
|
|
3
3
|
import { KeyFactCardListRatafia } from '../../molecules'
|
|
4
4
|
import { type KeyFactsResultContentRatafiaProps } from './KeyFactsResultContentRatafiaProps.types'
|
|
5
|
+
import { KeyFactsResultContentRatafiaStyled } from './KeyFactsResultContentRatafia.styled'
|
|
5
6
|
import { ReviewKeyFactsResultRatafia } from '../../atoms'
|
|
6
|
-
// import './KeyFactsResultContentRatafia.scss'
|
|
7
7
|
|
|
8
8
|
export const KeyFactsResultContentRatafia: React.FC<KeyFactsResultContentRatafiaProps> = ({ result, review }) => {
|
|
9
9
|
return (
|
|
10
|
-
<
|
|
10
|
+
<KeyFactsResultContentRatafiaStyled>
|
|
11
11
|
<h2 className='sans-serif --bold-weight key-facts-result-content__document-name'>{result?.documentName}</h2>
|
|
12
12
|
<div className='key-facts-result-content__content'>
|
|
13
13
|
{result !== null && <KeyFactCardListRatafia keyFacts={result.keyFacts} />}
|
|
14
14
|
<ReviewKeyFactsResultRatafia {...review} />
|
|
15
15
|
</div>
|
|
16
|
-
</
|
|
16
|
+
</KeyFactsResultContentRatafiaStyled>
|
|
17
17
|
)
|
|
18
18
|
}
|
|
19
19
|
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import { useLanguageOptions, useLanguageSelected, useLanguagesSelector } from '../LanguageSelector';
|
|
4
4
|
import { Button } from '../../atoms';
|
|
5
5
|
import { ChevronExpandMore } from '../../../../images/componentsSvg/ChevronExpandMore';
|
|
6
|
-
|
|
6
|
+
import { LanguageSelectorMobileStyled } from './LanguageSelectorMobile.styled';
|
|
7
7
|
export const LanguageSelectorMobile = ({ languages = [
|
|
8
8
|
{
|
|
9
9
|
code: 'US',
|
|
@@ -16,7 +16,7 @@ export const LanguageSelectorMobile = ({ languages = [
|
|
|
16
16
|
const [isOpen, setIsOpen] = React.useState(false);
|
|
17
17
|
if (languages.length <= 1)
|
|
18
18
|
return null;
|
|
19
|
-
return (_jsxs(
|
|
19
|
+
return (_jsxs(LanguageSelectorMobileStyled, { isOpen: isOpen, children: [_jsxs(Button, { color: 'transparent', noLink: true, givenClass: 'selected-option', label: '', dataQa: 'language-selector-mobile', fluid: true, onClick: () => {
|
|
20
20
|
setIsOpen(!isOpen);
|
|
21
21
|
}, children: [_jsxs("div", { className: 'language', children: [languageSelected.flag, " ", languageSelected.name] }), _jsx(ChevronExpandMore, { fill: '#DBE1E5' })] }), _jsx("div", { className: 'options', children: languageOptions.map((language) => (_jsx(Button, { color: 'transparent', isExternal: true, givenClass: 'option', label: '', dataQa: `language-selector-mobile-option-${language.code}`, link: language.url, fluid: true, children: _jsxs("div", { className: 'language', children: [language.flag, " ", language.name] }) }, language.code))) })] }));
|
|
22
22
|
};
|
package/dist/src/components/organisms/LanguageSelectorMobile/LanguageSelectorMobile.styled.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
isOpen: boolean;
|
|
3
|
+
}
|
|
4
|
+
export declare const LanguageSelectorMobileStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Props>> & string;
|
|
5
|
+
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
.language-selector-mobile {
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
export const LanguageSelectorMobileStyled = styled.div `
|
|
4
3
|
position: relative;
|
|
5
4
|
|
|
6
5
|
.selected-option {
|
|
@@ -48,7 +47,8 @@
|
|
|
48
47
|
}
|
|
49
48
|
}
|
|
50
49
|
|
|
51
|
-
|
|
50
|
+
${({ isOpen }) => isOpen &&
|
|
51
|
+
`
|
|
52
52
|
.selected-option {
|
|
53
53
|
.chevron-expand-more {
|
|
54
54
|
transition: all 0.4s ease;
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
visibility: visible;
|
|
62
62
|
transition: all 0.4s ease;
|
|
63
63
|
}
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
`}
|
|
65
|
+
`;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import styled from 'styled-components'
|
|
2
|
+
interface Props {
|
|
3
|
+
isOpen: boolean
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export const LanguageSelectorMobileStyled = styled.div<Props>`
|
|
7
|
+
position: relative;
|
|
8
|
+
|
|
9
|
+
.selected-option {
|
|
10
|
+
display: flex;
|
|
11
|
+
justify-content: space-between;
|
|
12
|
+
align-items: center;
|
|
13
|
+
background-color: var(--primary-main-dark-1);
|
|
14
|
+
border: 0;
|
|
15
|
+
|
|
16
|
+
.language {
|
|
17
|
+
color: var(--others-white);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.chevron-expand-more {
|
|
21
|
+
transition: all 0.1s ease;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.language {
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
padding: 0 0.5rem;
|
|
29
|
+
gap: 0.1rem;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.options {
|
|
33
|
+
position: absolute;
|
|
34
|
+
visibility: hidden;
|
|
35
|
+
opacity: 0;
|
|
36
|
+
width: 100%;
|
|
37
|
+
padding-top: 0.5rem;
|
|
38
|
+
display: flex;
|
|
39
|
+
flex-direction: column;
|
|
40
|
+
gap: 0.5rem;
|
|
41
|
+
transition: all 0.1s ease;
|
|
42
|
+
|
|
43
|
+
.option {
|
|
44
|
+
display: flex;
|
|
45
|
+
padding: 0.5rem 1rem;
|
|
46
|
+
background-color: var(--neutral-neutral-6);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.language {
|
|
50
|
+
color: var(--neutral-neutral-1);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
${({ isOpen }) =>
|
|
55
|
+
isOpen &&
|
|
56
|
+
`
|
|
57
|
+
.selected-option {
|
|
58
|
+
.chevron-expand-more {
|
|
59
|
+
transition: all 0.4s ease;
|
|
60
|
+
transform: rotate(180deg);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.options {
|
|
65
|
+
opacity: 1;
|
|
66
|
+
visibility: visible;
|
|
67
|
+
transition: all 0.4s ease;
|
|
68
|
+
}
|
|
69
|
+
`}
|
|
70
|
+
`
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from '../LanguageSelector'
|
|
9
9
|
import { Button } from '../../atoms'
|
|
10
10
|
import { ChevronExpandMore } from '../../../../images/componentsSvg/ChevronExpandMore'
|
|
11
|
-
|
|
11
|
+
import { LanguageSelectorMobileStyled } from './LanguageSelectorMobile.styled'
|
|
12
12
|
|
|
13
13
|
export const LanguageSelectorMobile: React.FC<LanguageSelectorProps> = ({
|
|
14
14
|
languages = [
|
|
@@ -27,7 +27,7 @@ export const LanguageSelectorMobile: React.FC<LanguageSelectorProps> = ({
|
|
|
27
27
|
if (languages.length <= 1) return null
|
|
28
28
|
|
|
29
29
|
return (
|
|
30
|
-
<
|
|
30
|
+
<LanguageSelectorMobileStyled isOpen={isOpen}>
|
|
31
31
|
<Button
|
|
32
32
|
color='transparent'
|
|
33
33
|
noLink
|
|
@@ -62,6 +62,6 @@ export const LanguageSelectorMobile: React.FC<LanguageSelectorProps> = ({
|
|
|
62
62
|
</Button>
|
|
63
63
|
))}
|
|
64
64
|
</div>
|
|
65
|
-
</
|
|
65
|
+
</LanguageSelectorMobileStyled>
|
|
66
66
|
)
|
|
67
67
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { HeaderRatafia } from '../../molecules';
|
|
3
|
-
|
|
3
|
+
import { LayoutRatafiaStyled } from './LayoutRatafia.styled';
|
|
4
4
|
export const LayoutRatafia = ({ header, content, cta, footerDesktop, footerMobile }) => {
|
|
5
|
-
return (_jsx(
|
|
5
|
+
return (_jsx(LayoutRatafiaStyled, { children: _jsxs("div", { className: 'layout-ratafia__wrapper', children: [_jsx("div", { className: 'layout-ratafia__wrapper__header', children: _jsx(HeaderRatafia, { ...header }) }), _jsxs("div", { className: 'layout-ratafia__wrapper__content', children: [content, _jsx("div", { className: 'layout-ratafia__wrapper__cta', children: cta })] }), _jsx("div", { className: 'layout-ratafia__wrapper__footer-desktop', children: footerDesktop }), _jsx("div", { className: 'layout-ratafia__wrapper__footer-mobile', children: footerMobile })] }) }));
|
|
6
6
|
};
|
|
7
7
|
export default LayoutRatafia;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const LayoutRatafiaStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { device } from '../../../globalStyles/breakpoints';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
export const LayoutRatafiaStyled = styled.div `
|
|
4
|
+
width: 100%;
|
|
5
|
+
display: flex;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
padding-top: 1rem;
|
|
8
|
+
|
|
9
|
+
@media ${device['portrait-tablets']} {
|
|
10
|
+
padding-top: 3.5rem;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.layout-ratafia__wrapper {
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
align-items: center;
|
|
17
|
+
justify-content: space-between;
|
|
18
|
+
|
|
19
|
+
padding: 1.5rem 1.5rem 0 1.5rem;
|
|
20
|
+
|
|
21
|
+
width: 100%;
|
|
22
|
+
height: calc(100vh - 5.125rem);
|
|
23
|
+
|
|
24
|
+
border-radius: 16px 16px 0 0;
|
|
25
|
+
background: var(--others-white);
|
|
26
|
+
box-shadow: var(--box-shadow-small);
|
|
27
|
+
|
|
28
|
+
@media ${device['portrait-tablets']} {
|
|
29
|
+
padding: 2.5rem 2.5rem 1.5rem 2.5rem;
|
|
30
|
+
}
|
|
31
|
+
@media ${device['portrait-tablets']} {
|
|
32
|
+
width: 800px;
|
|
33
|
+
height: 890px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&__header {
|
|
37
|
+
width: 100%;
|
|
38
|
+
margin-bottom: 1.5rem;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&__content {
|
|
42
|
+
width: 100%;
|
|
43
|
+
display: flex;
|
|
44
|
+
flex-direction: column;
|
|
45
|
+
align-items: flex-start;
|
|
46
|
+
flex: 1 0 0;
|
|
47
|
+
align-self: stretch;
|
|
48
|
+
|
|
49
|
+
gap: 1.5rem;
|
|
50
|
+
margin-bottom: 1rem;
|
|
51
|
+
@media ${device['portrait-tablets']} {
|
|
52
|
+
margin-bottom: 2.5rem;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
&__cta {
|
|
56
|
+
display: none;
|
|
57
|
+
@media ${device['portrait-tablets']} {
|
|
58
|
+
display: block;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
&__footer-desktop {
|
|
62
|
+
width: 100%;
|
|
63
|
+
display: none;
|
|
64
|
+
@media ${device['portrait-tablets']} {
|
|
65
|
+
display: block;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
&__footer-mobile {
|
|
69
|
+
display: flex;
|
|
70
|
+
flex-direction: column;
|
|
71
|
+
position: sticky;
|
|
72
|
+
bottom: 0;
|
|
73
|
+
left: 0;
|
|
74
|
+
right: 0;
|
|
75
|
+
|
|
76
|
+
gap: 1rem;
|
|
77
|
+
padding: 1.5rem;
|
|
78
|
+
|
|
79
|
+
width: 100vw;
|
|
80
|
+
background: var(--others-white);
|
|
81
|
+
@media ${device['portrait-tablets']} {
|
|
82
|
+
display: none;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
.e-button.--primary-1 {
|
|
86
|
+
height: auto;
|
|
87
|
+
padding: 0.6875rem 1rem;
|
|
88
|
+
line-height: 22px;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
`;
|
package/dist/src/components/organisms/LayoutRatafia/{LayoutRatafia.scss → LayoutRatafia.styled.ts}
RENAMED
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { device } from '../../../globalStyles/breakpoints'
|
|
2
|
+
import styled from 'styled-components'
|
|
3
3
|
|
|
4
|
-
.
|
|
4
|
+
export const LayoutRatafiaStyled = styled.div`
|
|
5
5
|
width: 100%;
|
|
6
6
|
display: flex;
|
|
7
7
|
justify-content: center;
|
|
8
|
-
|
|
9
8
|
padding-top: 1rem;
|
|
10
9
|
|
|
11
|
-
@
|
|
10
|
+
@media ${device['portrait-tablets']} {
|
|
12
11
|
padding-top: 3.5rem;
|
|
13
12
|
}
|
|
14
13
|
|
|
15
|
-
|
|
14
|
+
.layout-ratafia__wrapper {
|
|
16
15
|
display: flex;
|
|
17
16
|
flex-direction: column;
|
|
18
17
|
align-items: center;
|
|
@@ -27,10 +26,10 @@
|
|
|
27
26
|
background: var(--others-white);
|
|
28
27
|
box-shadow: var(--box-shadow-small);
|
|
29
28
|
|
|
30
|
-
@
|
|
29
|
+
@media ${device['portrait-tablets']} {
|
|
31
30
|
padding: 2.5rem 2.5rem 1.5rem 2.5rem;
|
|
32
31
|
}
|
|
33
|
-
@
|
|
32
|
+
@media ${device['portrait-tablets']} {
|
|
34
33
|
width: 800px;
|
|
35
34
|
height: 890px;
|
|
36
35
|
}
|
|
@@ -50,20 +49,20 @@
|
|
|
50
49
|
|
|
51
50
|
gap: 1.5rem;
|
|
52
51
|
margin-bottom: 1rem;
|
|
53
|
-
@
|
|
52
|
+
@media ${device['portrait-tablets']} {
|
|
54
53
|
margin-bottom: 2.5rem;
|
|
55
54
|
}
|
|
56
55
|
}
|
|
57
56
|
&__cta {
|
|
58
57
|
display: none;
|
|
59
|
-
@
|
|
58
|
+
@media ${device['portrait-tablets']} {
|
|
60
59
|
display: block;
|
|
61
60
|
}
|
|
62
61
|
}
|
|
63
62
|
&__footer-desktop {
|
|
64
63
|
width: 100%;
|
|
65
64
|
display: none;
|
|
66
|
-
@
|
|
65
|
+
@media ${device['portrait-tablets']} {
|
|
67
66
|
display: block;
|
|
68
67
|
}
|
|
69
68
|
}
|
|
@@ -80,7 +79,7 @@
|
|
|
80
79
|
|
|
81
80
|
width: 100vw;
|
|
82
81
|
background: var(--others-white);
|
|
83
|
-
@
|
|
82
|
+
@media ${device['portrait-tablets']} {
|
|
84
83
|
display: none;
|
|
85
84
|
}
|
|
86
85
|
}
|
|
@@ -90,4 +89,4 @@
|
|
|
90
89
|
line-height: 22px;
|
|
91
90
|
}
|
|
92
91
|
}
|
|
93
|
-
|
|
92
|
+
`
|
|
@@ -2,11 +2,11 @@ import React from 'react'
|
|
|
2
2
|
|
|
3
3
|
import { HeaderRatafia } from '../../molecules'
|
|
4
4
|
import { type LayoutRatafiaProps } from './LayoutRatafiaProps.types'
|
|
5
|
-
|
|
5
|
+
import { LayoutRatafiaStyled } from './LayoutRatafia.styled'
|
|
6
6
|
|
|
7
7
|
export const LayoutRatafia: React.FC<LayoutRatafiaProps> = ({ header, content, cta, footerDesktop, footerMobile }) => {
|
|
8
8
|
return (
|
|
9
|
-
<
|
|
9
|
+
<LayoutRatafiaStyled>
|
|
10
10
|
<div className='layout-ratafia__wrapper'>
|
|
11
11
|
<div className='layout-ratafia__wrapper__header'>
|
|
12
12
|
<HeaderRatafia {...header} />
|
|
@@ -18,7 +18,7 @@ export const LayoutRatafia: React.FC<LayoutRatafiaProps> = ({ header, content, c
|
|
|
18
18
|
<div className='layout-ratafia__wrapper__footer-desktop'>{footerDesktop}</div>
|
|
19
19
|
<div className='layout-ratafia__wrapper__footer-mobile'>{footerMobile}</div>
|
|
20
20
|
</div>
|
|
21
|
-
</
|
|
21
|
+
</LayoutRatafiaStyled>
|
|
22
22
|
)
|
|
23
23
|
}
|
|
24
24
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { ListStepsGetFormStyled } from './ListStepsGetForm.styled';
|
|
2
3
|
import { StepGetForm } from '../../molecules';
|
|
3
|
-
// import './ListStepsGetForm.scss'
|
|
4
4
|
const ListStepsGetForm = ({ steps = [] }) => {
|
|
5
5
|
if (steps.length === 0)
|
|
6
6
|
return null;
|
|
7
|
-
return (_jsx(
|
|
7
|
+
return (_jsx(ListStepsGetFormStyled, { children: _jsx("div", { className: 'homeSteps wrapper', children: _jsx("div", { className: 'homeStepsItemsContainer', children: steps.map((step) => (_jsx(StepGetForm, { ...step }, step.id))) }) }) }));
|
|
8
8
|
};
|
|
9
9
|
export default ListStepsGetForm;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ListStepsGetFormStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { device } from '../../../globalStyles/breakpoints';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
export const ListStepsGetFormStyled = styled.div `
|
|
4
|
+
transform: translateY(0%);
|
|
5
|
+
@media ${device['portrait-tablets']} {
|
|
6
|
+
transform: translateY(0%);
|
|
7
|
+
}
|
|
8
|
+
@media ${device['landscape-tablets']} {
|
|
9
|
+
transform: translateY(0%);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.homeSteps {
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
align-items: center;
|
|
16
|
+
padding-top: 2rem;
|
|
17
|
+
padding-bottom: 2rem;
|
|
18
|
+
position: relative;
|
|
19
|
+
|
|
20
|
+
.homeStepsItemsContainer {
|
|
21
|
+
display: flex;
|
|
22
|
+
justify-content: space-between;
|
|
23
|
+
width: 100%;
|
|
24
|
+
max-width: 888px;
|
|
25
|
+
flex-flow: row wrap;
|
|
26
|
+
padding: 0 1rem;
|
|
27
|
+
|
|
28
|
+
@media ${device.laptop} {
|
|
29
|
+
flex-flow: row nowrap;
|
|
30
|
+
padding: 0;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
`;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { device } from '../../../globalStyles/breakpoints'
|
|
2
|
+
import styled from 'styled-components'
|
|
3
3
|
|
|
4
|
-
.
|
|
4
|
+
export const ListStepsGetFormStyled = styled.div`
|
|
5
5
|
transform: translateY(0%);
|
|
6
|
-
@
|
|
6
|
+
@media ${device['portrait-tablets']} {
|
|
7
7
|
transform: translateY(0%);
|
|
8
8
|
}
|
|
9
|
-
@
|
|
9
|
+
@media ${device['landscape-tablets']} {
|
|
10
10
|
transform: translateY(0%);
|
|
11
11
|
}
|
|
12
12
|
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
flex-flow: row wrap;
|
|
27
27
|
padding: 0 1rem;
|
|
28
28
|
|
|
29
|
-
@
|
|
29
|
+
@media ${device.laptop} {
|
|
30
30
|
flex-flow: row nowrap;
|
|
31
31
|
padding: 0;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
|
|
35
|
+
`
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React, { type FC } from 'react'
|
|
2
2
|
|
|
3
3
|
import { type ListStepsGetFormProps } from './ListStepsGetFormProps.types'
|
|
4
|
+
import { ListStepsGetFormStyled } from './ListStepsGetForm.styled'
|
|
4
5
|
import { StepGetForm } from '../../molecules'
|
|
5
|
-
// import './ListStepsGetForm.scss'
|
|
6
6
|
|
|
7
7
|
const ListStepsGetForm: FC<ListStepsGetFormProps> = ({ steps = [] }) => {
|
|
8
8
|
if (steps.length === 0) return null
|
|
9
9
|
|
|
10
10
|
return (
|
|
11
|
-
<
|
|
11
|
+
<ListStepsGetFormStyled>
|
|
12
12
|
<div className='homeSteps wrapper'>
|
|
13
13
|
<div className='homeStepsItemsContainer'>
|
|
14
14
|
{steps.map((step) => (
|
|
@@ -16,7 +16,7 @@ const ListStepsGetForm: FC<ListStepsGetFormProps> = ({ steps = [] }) => {
|
|
|
16
16
|
))}
|
|
17
17
|
</div>
|
|
18
18
|
</div>
|
|
19
|
-
</
|
|
19
|
+
</ListStepsGetFormStyled>
|
|
20
20
|
)
|
|
21
21
|
}
|
|
22
22
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { LoginRatafiaContentStyled } from './LoginRatafiaContent.styled';
|
|
2
3
|
import { TextInput } from '../../molecules';
|
|
3
|
-
// import './LoginRatafiaContent.scss'
|
|
4
4
|
const LoginRatafiaContent = ({ title, email }) => {
|
|
5
|
-
return (_jsxs(
|
|
5
|
+
return (_jsxs(LoginRatafiaContentStyled, { children: [_jsx("h2", { className: 'login-ratafia-content__title', children: title }), _jsx("div", { className: 'login-ratafia-content__email', children: _jsx(TextInput, { ...email }) })] }));
|
|
6
6
|
};
|
|
7
7
|
export default LoginRatafiaContent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const LoginRatafiaContentStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
export const LoginRatafiaContentStyled = styled.div `
|
|
3
|
+
width: 100%;
|
|
4
|
+
.login-ratafia-content__title {
|
|
5
|
+
font-size: 1rem;
|
|
6
|
+
color: var(--neutral-neutral-2);
|
|
7
|
+
padding-bottom: 1rem;
|
|
8
|
+
}
|
|
9
|
+
.login-ratafia-content__email {
|
|
10
|
+
.e-text {
|
|
11
|
+
margin-bottom: 0.5rem;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
`;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import styled from 'styled-components'
|
|
2
|
+
|
|
3
|
+
export const LoginRatafiaContentStyled = styled.div`
|
|
4
|
+
width: 100%;
|
|
5
|
+
.login-ratafia-content__title {
|
|
6
|
+
font-size: 1rem;
|
|
7
|
+
color: var(--neutral-neutral-2);
|
|
8
|
+
padding-bottom: 1rem;
|
|
9
|
+
}
|
|
10
|
+
.login-ratafia-content__email {
|
|
11
|
+
.e-text {
|
|
12
|
+
margin-bottom: 0.5rem;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
`
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import React, { type FC } from 'react'
|
|
2
2
|
|
|
3
3
|
import { type LoginRatafiaContentProps } from './LoginRatafiaContentProps.types'
|
|
4
|
+
import { LoginRatafiaContentStyled } from './LoginRatafiaContent.styled'
|
|
4
5
|
import { TextInput } from '../../molecules'
|
|
5
|
-
// import './LoginRatafiaContent.scss'
|
|
6
6
|
|
|
7
7
|
const LoginRatafiaContent: FC<LoginRatafiaContentProps> = ({ title, email }) => {
|
|
8
8
|
return (
|
|
9
|
-
<
|
|
9
|
+
<LoginRatafiaContentStyled>
|
|
10
10
|
<h2 className='login-ratafia-content__title'>{title}</h2>
|
|
11
11
|
<div className='login-ratafia-content__email'>
|
|
12
12
|
<TextInput {...email} />
|
|
13
13
|
</div>
|
|
14
|
-
</
|
|
14
|
+
</LoginRatafiaContentStyled>
|
|
15
15
|
)
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import classNames from 'classnames';
|
|
3
2
|
import { Button, SidemenuTab } from '../../atoms';
|
|
4
|
-
|
|
5
|
-
const MobileBottomBar = ({ children, list
|
|
3
|
+
import { MobileBottomBarStyled } from './MobileBottomBar.styled';
|
|
4
|
+
const MobileBottomBar = ({ children, list }) => {
|
|
6
5
|
if (children === undefined && list?.length === 0)
|
|
7
6
|
return null;
|
|
8
|
-
const classnames = classNames('mobile-bottom-bar', {
|
|
9
|
-
'mobile-bottom-bar--active': active
|
|
10
|
-
});
|
|
11
7
|
if (children !== undefined)
|
|
12
|
-
return _jsx(
|
|
8
|
+
return _jsx(MobileBottomBarStyled, { children: children });
|
|
13
9
|
if (list === undefined)
|
|
14
10
|
return null;
|
|
15
|
-
return (_jsx(
|
|
11
|
+
return (_jsx(MobileBottomBarStyled, { children: list.map((tab, index) => {
|
|
16
12
|
if (tab.type === 'button') {
|
|
17
13
|
return (_jsx(Button, { noLink: true, color: 'primary', ...tab, children: tab.image }, index));
|
|
18
14
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MobileBottomBarStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|