@npm_leadtech/legal-lib-components 5.64.14 → 5.64.15
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/images/componentsSvg/flags/CAFlag.d.ts +2 -0
- package/dist/images/componentsSvg/flags/CAFlag.js +4 -0
- package/dist/images/componentsSvg/flags/CAFlag.tsx +34 -0
- package/dist/images/componentsSvg/flags/DEFlag.d.ts +2 -0
- package/dist/images/componentsSvg/flags/DEFlag.js +4 -0
- package/dist/images/componentsSvg/flags/DEFlag.tsx +20 -0
- package/dist/src/components/atoms/RatafiaResultCard/RatafiaResultCard.d.ts +4 -0
- package/dist/src/components/atoms/RatafiaResultCard/RatafiaResultCard.js +6 -0
- package/dist/src/components/atoms/RatafiaResultCard/RatafiaResultCard.styled.d.ts +1 -0
- package/dist/src/components/atoms/RatafiaResultCard/RatafiaResultCard.styled.js +39 -0
- package/dist/src/components/atoms/RatafiaResultCard/RatafiaResultCard.styled.ts +40 -0
- package/dist/src/components/atoms/RatafiaResultCard/RatafiaResultCard.tsx +18 -0
- package/dist/src/components/atoms/RatafiaResultCard/RatafiaResultCardProps.types.d.ts +5 -0
- package/dist/src/components/atoms/RatafiaResultCard/RatafiaResultCardProps.types.js +1 -0
- package/dist/src/components/atoms/RatafiaResultCard/RatafiaResultCardProps.types.ts +5 -0
- package/dist/src/components/atoms/RatafiaResultCard/index.d.ts +2 -0
- package/dist/src/components/atoms/RatafiaResultCard/index.js +1 -0
- package/dist/src/components/atoms/RatafiaResultCard/index.ts +2 -0
- package/dist/src/components/atoms/RatafiaResultTab/RatafiaResultTab.d.ts +4 -0
- package/dist/src/components/atoms/RatafiaResultTab/RatafiaResultTab.js +6 -0
- package/dist/src/components/atoms/RatafiaResultTab/RatafiaResultTab.styled.d.ts +1 -0
- package/dist/src/components/atoms/RatafiaResultTab/RatafiaResultTab.styled.js +38 -0
- package/dist/src/components/atoms/RatafiaResultTab/RatafiaResultTab.styled.ts +39 -0
- package/dist/src/components/atoms/RatafiaResultTab/RatafiaResultTab.tsx +23 -0
- package/dist/src/components/atoms/RatafiaResultTab/RatafiaResultTabProps.types.d.ts +9 -0
- package/dist/src/components/atoms/RatafiaResultTab/RatafiaResultTabProps.types.js +1 -0
- package/dist/src/components/atoms/RatafiaResultTab/RatafiaResultTabProps.types.ts +9 -0
- package/dist/src/components/atoms/RatafiaResultTab/index.d.ts +2 -0
- package/dist/src/components/atoms/RatafiaResultTab/index.js +1 -0
- package/dist/src/components/atoms/RatafiaResultTab/index.ts +2 -0
- package/dist/src/components/atoms/RatafiaReviewResult/RatafiaReviewResult.d.ts +4 -0
- package/dist/src/components/atoms/RatafiaReviewResult/RatafiaReviewResult.js +6 -0
- package/dist/src/components/atoms/RatafiaReviewResult/RatafiaReviewResult.styled.d.ts +1 -0
- package/dist/src/components/atoms/RatafiaReviewResult/RatafiaReviewResult.styled.js +55 -0
- package/dist/src/components/atoms/RatafiaReviewResult/RatafiaReviewResult.styled.ts +56 -0
- package/dist/src/components/atoms/RatafiaReviewResult/RatafiaReviewResult.tsx +56 -0
- package/dist/src/components/atoms/RatafiaReviewResult/RatafiaReviewResultProps.types.d.ts +14 -0
- package/dist/src/components/atoms/RatafiaReviewResult/RatafiaReviewResultProps.types.js +1 -0
- package/dist/src/components/atoms/RatafiaReviewResult/RatafiaReviewResultProps.types.ts +15 -0
- package/dist/src/components/atoms/RatafiaReviewResult/index.d.ts +2 -0
- package/dist/src/components/atoms/RatafiaReviewResult/index.js +1 -0
- package/dist/src/components/atoms/RatafiaReviewResult/index.ts +2 -0
- package/dist/src/components/atoms/index.d.ts +3 -0
- package/dist/src/components/atoms/index.js +3 -0
- package/dist/src/components/atoms/index.ts +3 -0
- package/dist/src/components/molecules/KeyFactCardListRatafia/KeyFactCardListRatafia.styled.js +2 -4
- package/dist/src/components/molecules/KeyFactCardListRatafia/KeyFactCardListRatafia.styled.ts +2 -4
- package/dist/src/components/molecules/RatafiaResultCardList/RatafiaResultCardList.d.ts +4 -0
- package/dist/src/components/molecules/RatafiaResultCardList/RatafiaResultCardList.js +9 -0
- package/dist/src/components/molecules/RatafiaResultCardList/RatafiaResultCardList.styled.d.ts +1 -0
- package/dist/src/components/molecules/RatafiaResultCardList/RatafiaResultCardList.styled.js +24 -0
- package/dist/src/components/molecules/RatafiaResultCardList/RatafiaResultCardList.styled.ts +25 -0
- package/dist/src/components/molecules/RatafiaResultCardList/RatafiaResultCardList.tsx +19 -0
- package/dist/src/components/molecules/RatafiaResultCardList/RatafiaResultCardListProps.types.d.ts +4 -0
- package/dist/src/components/molecules/RatafiaResultCardList/RatafiaResultCardListProps.types.js +1 -0
- package/dist/src/components/molecules/RatafiaResultCardList/RatafiaResultCardListProps.types.ts +5 -0
- package/dist/src/components/molecules/RatafiaResultCardList/index.d.ts +2 -0
- package/dist/src/components/molecules/RatafiaResultCardList/index.js +1 -0
- package/dist/src/components/molecules/RatafiaResultCardList/index.ts +2 -0
- package/dist/src/components/molecules/RatafiaResultTabList/RatafiaResultTabList.d.ts +4 -0
- package/dist/src/components/molecules/RatafiaResultTabList/RatafiaResultTabList.js +9 -0
- package/dist/src/components/molecules/RatafiaResultTabList/RatafiaResultTabList.styled.d.ts +1 -0
- package/dist/src/components/molecules/RatafiaResultTabList/RatafiaResultTabList.styled.js +7 -0
- package/dist/src/components/molecules/RatafiaResultTabList/RatafiaResultTabList.styled.ts +8 -0
- package/dist/src/components/molecules/RatafiaResultTabList/RatafiaResultTabList.tsx +18 -0
- package/dist/src/components/molecules/RatafiaResultTabList/RatafiaResultTabListProps.types.d.ts +4 -0
- package/dist/src/components/molecules/RatafiaResultTabList/RatafiaResultTabListProps.types.js +1 -0
- package/dist/src/components/molecules/RatafiaResultTabList/RatafiaResultTabListProps.types.ts +5 -0
- package/dist/src/components/molecules/RatafiaResultTabList/index.d.ts +2 -0
- package/dist/src/components/molecules/RatafiaResultTabList/index.js +1 -0
- package/dist/src/components/molecules/RatafiaResultTabList/index.ts +2 -0
- package/dist/src/components/molecules/index.d.ts +2 -0
- package/dist/src/components/molecules/index.js +2 -0
- package/dist/src/components/molecules/index.ts +2 -0
- package/dist/src/components/organisms/LanguageSelector/useLanguagesSelector.js +5 -1
- package/dist/src/components/organisms/LanguageSelector/useLanguagesSelector.tsx +5 -1
- package/dist/src/components/organisms/LayoutRatafia/LayoutRatafia.styled.js +1 -2
- package/dist/src/components/organisms/LayoutRatafia/LayoutRatafia.styled.ts +1 -2
- package/dist/src/components/organisms/RatafiaLoadingResultContent/RatafiaLoadingResultContent.d.ts +4 -0
- package/dist/src/components/organisms/RatafiaLoadingResultContent/RatafiaLoadingResultContent.js +6 -0
- package/dist/src/components/organisms/RatafiaLoadingResultContent/RatafiaLoadingResultContent.styled.d.ts +1 -0
- package/dist/src/components/organisms/RatafiaLoadingResultContent/RatafiaLoadingResultContent.styled.js +143 -0
- package/dist/src/components/organisms/RatafiaLoadingResultContent/RatafiaLoadingResultContent.styled.ts +144 -0
- package/dist/src/components/organisms/RatafiaLoadingResultContent/RatafiaLoadingResultContent.tsx +46 -0
- package/dist/src/components/organisms/RatafiaLoadingResultContent/RatafiaLoadingResultContentProps.types.d.ts +5 -0
- package/dist/src/components/organisms/RatafiaLoadingResultContent/RatafiaLoadingResultContentProps.types.js +1 -0
- package/dist/src/components/organisms/RatafiaLoadingResultContent/RatafiaLoadingResultContentProps.types.ts +5 -0
- package/dist/src/components/organisms/RatafiaLoadingResultContent/index.d.ts +2 -0
- package/dist/src/components/organisms/RatafiaLoadingResultContent/index.js +1 -0
- package/dist/src/components/organisms/RatafiaLoadingResultContent/index.ts +2 -0
- package/dist/src/components/organisms/RatafiaResultContent/RatafiaResultContent.d.ts +4 -0
- package/dist/src/components/organisms/RatafiaResultContent/RatafiaResultContent.js +9 -0
- package/dist/src/components/organisms/RatafiaResultContent/RatafiaResultContent.styled.d.ts +1 -0
- package/dist/src/components/organisms/RatafiaResultContent/RatafiaResultContent.styled.js +26 -0
- package/dist/src/components/organisms/RatafiaResultContent/RatafiaResultContent.styled.ts +27 -0
- package/dist/src/components/organisms/RatafiaResultContent/RatafiaResultContent.tsx +26 -0
- package/dist/src/components/organisms/RatafiaResultContent/RatafiaResultContentProps.types.d.ts +13 -0
- package/dist/src/components/organisms/RatafiaResultContent/RatafiaResultContentProps.types.js +1 -0
- package/dist/src/components/organisms/RatafiaResultContent/RatafiaResultContentProps.types.ts +16 -0
- package/dist/src/components/organisms/RatafiaResultContent/index.d.ts +3 -0
- package/dist/src/components/organisms/RatafiaResultContent/index.js +1 -0
- package/dist/src/components/organisms/RatafiaResultContent/index.ts +3 -0
- package/dist/src/components/organisms/index.d.ts +2 -0
- package/dist/src/components/organisms/index.js +2 -0
- package/dist/src/components/organisms/index.ts +2 -0
- package/dist/src/components/pages/RatafiaResultPage/RatafiaResultPage.d.ts +4 -0
- package/dist/src/components/pages/RatafiaResultPage/RatafiaResultPage.js +15 -0
- package/dist/src/components/pages/RatafiaResultPage/RatafiaResultPage.styled.d.ts +1 -0
- package/dist/src/components/pages/RatafiaResultPage/RatafiaResultPage.styled.js +23 -0
- package/dist/src/components/pages/RatafiaResultPage/RatafiaResultPage.styled.ts +24 -0
- package/dist/src/components/pages/RatafiaResultPage/RatafiaResultPage.tsx +76 -0
- package/dist/src/components/pages/RatafiaResultPage/RatafiaResultPageProps.types.d.ts +20 -0
- package/dist/src/components/pages/RatafiaResultPage/RatafiaResultPageProps.types.js +1 -0
- package/dist/src/components/pages/RatafiaResultPage/RatafiaResultPageProps.types.ts +22 -0
- package/dist/src/components/pages/RatafiaResultPage/index.d.ts +2 -0
- package/dist/src/components/pages/RatafiaResultPage/index.js +1 -0
- package/dist/src/components/pages/RatafiaResultPage/index.ts +2 -0
- package/dist/src/components/pages/index.d.ts +2 -1
- package/dist/src/components/pages/index.js +2 -1
- package/dist/src/components/pages/index.ts +2 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +6 -2
|
@@ -41,6 +41,9 @@ export * from './PreFooter'
|
|
|
41
41
|
export * from './ProgressBar'
|
|
42
42
|
export * from './Radio'
|
|
43
43
|
export * from './RatafiaLandingIcon'
|
|
44
|
+
export * from './RatafiaResultCard'
|
|
45
|
+
export * from './RatafiaResultTab'
|
|
46
|
+
export * from './RatafiaReviewResult'
|
|
44
47
|
export * from './RemoveButton'
|
|
45
48
|
export * from './ReviewKeyFactsResultRatafia'
|
|
46
49
|
export * from './RichTextInner'
|
package/dist/src/components/molecules/KeyFactCardListRatafia/KeyFactCardListRatafia.styled.js
CHANGED
|
@@ -16,11 +16,9 @@ export const KeyFactCardListRatafiaStyled = styled.div `
|
|
|
16
16
|
border-bottom: 8px solid var(--neutral-neutral-6);
|
|
17
17
|
background: var(--neutral-neutral-6);
|
|
18
18
|
|
|
19
|
-
height:
|
|
20
|
-
|
|
19
|
+
height: calc(100vh - 24.5rem);
|
|
21
20
|
@media ${device['portrait-tablets']} {
|
|
22
|
-
height:
|
|
21
|
+
height: calc(100vh - 33.5rem);
|
|
23
22
|
}
|
|
24
|
-
|
|
25
23
|
overflow-y: auto;
|
|
26
24
|
`;
|
package/dist/src/components/molecules/KeyFactCardListRatafia/KeyFactCardListRatafia.styled.ts
CHANGED
|
@@ -17,11 +17,9 @@ export const KeyFactCardListRatafiaStyled = styled.div`
|
|
|
17
17
|
border-bottom: 8px solid var(--neutral-neutral-6);
|
|
18
18
|
background: var(--neutral-neutral-6);
|
|
19
19
|
|
|
20
|
-
height:
|
|
21
|
-
|
|
20
|
+
height: calc(100vh - 24.5rem);
|
|
22
21
|
@media ${device['portrait-tablets']} {
|
|
23
|
-
height:
|
|
22
|
+
height: calc(100vh - 33.5rem);
|
|
24
23
|
}
|
|
25
|
-
|
|
26
24
|
overflow-y: auto;
|
|
27
25
|
`
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { RatafiaResultCard } from '../../atoms';
|
|
3
|
+
import { RatafiaResultCardListStyled } from './RatafiaResultCardList.styled';
|
|
4
|
+
export const RatafiaResultCardList = ({ keyFacts }) => {
|
|
5
|
+
if (keyFacts.length === 0)
|
|
6
|
+
return null;
|
|
7
|
+
return (_jsx(RatafiaResultCardListStyled, { className: 'ratafia-result-card-list', children: keyFacts.map((keyFact) => (_jsx(RatafiaResultCard, { ...keyFact }, keyFact.id))) }));
|
|
8
|
+
};
|
|
9
|
+
export default RatafiaResultCardList;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const RatafiaResultCardListStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { device } from '../../../globalStyles/breakpoints';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
export const RatafiaResultCardListStyled = styled.div `
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
align-items: flex-start;
|
|
7
|
+
flex: 1 0 0;
|
|
8
|
+
align-self: stretch;
|
|
9
|
+
|
|
10
|
+
margin-bottom: 1rem;
|
|
11
|
+
padding: 0 2rem 1.5rem 1.5rem;
|
|
12
|
+
gap: 0.5rem;
|
|
13
|
+
|
|
14
|
+
border-radius: var(--s-border-radius);
|
|
15
|
+
border-top: 4px solid var(--neutral-neutral-6);
|
|
16
|
+
border-bottom: 8px solid var(--neutral-neutral-6);
|
|
17
|
+
background: var(--neutral-neutral-6);
|
|
18
|
+
|
|
19
|
+
height: calc(100vh - 27.5rem);
|
|
20
|
+
@media ${device['portrait-tablets']} {
|
|
21
|
+
height: calc(100vh - 35.5rem);
|
|
22
|
+
}
|
|
23
|
+
overflow-y: auto;
|
|
24
|
+
`;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { device } from '../../../globalStyles/breakpoints'
|
|
2
|
+
import styled from 'styled-components'
|
|
3
|
+
|
|
4
|
+
export const RatafiaResultCardListStyled = styled.div`
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
align-items: flex-start;
|
|
8
|
+
flex: 1 0 0;
|
|
9
|
+
align-self: stretch;
|
|
10
|
+
|
|
11
|
+
margin-bottom: 1rem;
|
|
12
|
+
padding: 0 2rem 1.5rem 1.5rem;
|
|
13
|
+
gap: 0.5rem;
|
|
14
|
+
|
|
15
|
+
border-radius: var(--s-border-radius);
|
|
16
|
+
border-top: 4px solid var(--neutral-neutral-6);
|
|
17
|
+
border-bottom: 8px solid var(--neutral-neutral-6);
|
|
18
|
+
background: var(--neutral-neutral-6);
|
|
19
|
+
|
|
20
|
+
height: calc(100vh - 27.5rem);
|
|
21
|
+
@media ${device['portrait-tablets']} {
|
|
22
|
+
height: calc(100vh - 35.5rem);
|
|
23
|
+
}
|
|
24
|
+
overflow-y: auto;
|
|
25
|
+
`
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
|
|
3
|
+
import { RatafiaResultCard } from '../../atoms'
|
|
4
|
+
import { type RatafiaResultCardListProps } from './RatafiaResultCardListProps.types'
|
|
5
|
+
import { RatafiaResultCardListStyled } from './RatafiaResultCardList.styled'
|
|
6
|
+
|
|
7
|
+
export const RatafiaResultCardList: React.FC<RatafiaResultCardListProps> = ({ keyFacts }) => {
|
|
8
|
+
if (keyFacts.length === 0) return null
|
|
9
|
+
|
|
10
|
+
return (
|
|
11
|
+
<RatafiaResultCardListStyled className='ratafia-result-card-list'>
|
|
12
|
+
{keyFacts.map((keyFact) => (
|
|
13
|
+
<RatafiaResultCard key={keyFact.id} {...keyFact} />
|
|
14
|
+
))}
|
|
15
|
+
</RatafiaResultCardListStyled>
|
|
16
|
+
)
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export default RatafiaResultCardList
|
package/dist/src/components/molecules/RatafiaResultCardList/RatafiaResultCardListProps.types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as RatafiaResultCardList } from './RatafiaResultCardList';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { RatafiaResultTab } from '../../atoms';
|
|
3
|
+
import { RatafiaResultTabListStyled } from './RatafiaResultTabList.styled';
|
|
4
|
+
const RatafiaResultTabList = ({ tabs = [] }) => {
|
|
5
|
+
if (tabs.length === 0)
|
|
6
|
+
return null;
|
|
7
|
+
return (_jsx(RatafiaResultTabListStyled, { className: 'ratafia-result-tab-list', children: tabs.map((tab) => (_jsx(RatafiaResultTab, { ...tab }, tab.id))) }));
|
|
8
|
+
};
|
|
9
|
+
export default RatafiaResultTabList;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const RatafiaResultTabListStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React, { type FC } from 'react'
|
|
2
|
+
|
|
3
|
+
import { RatafiaResultTab } from '../../atoms'
|
|
4
|
+
import { RatafiaResultTabListProps } from './RatafiaResultTabListProps.types'
|
|
5
|
+
import { RatafiaResultTabListStyled } from './RatafiaResultTabList.styled'
|
|
6
|
+
|
|
7
|
+
const RatafiaResultTabList: FC<RatafiaResultTabListProps> = ({ tabs = [] }) => {
|
|
8
|
+
if (tabs.length === 0) return null
|
|
9
|
+
|
|
10
|
+
return (
|
|
11
|
+
<RatafiaResultTabListStyled className='ratafia-result-tab-list'>
|
|
12
|
+
{tabs.map((tab) => (
|
|
13
|
+
<RatafiaResultTab key={tab.id} {...tab} />
|
|
14
|
+
))}
|
|
15
|
+
</RatafiaResultTabListStyled>
|
|
16
|
+
)
|
|
17
|
+
}
|
|
18
|
+
export default RatafiaResultTabList
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as RatafiaResultTabList } from './RatafiaResultTabList';
|
|
@@ -31,6 +31,8 @@ export * from './PhoneContactBoxDesktop';
|
|
|
31
31
|
export * from './PhoneContactBoxMobile';
|
|
32
32
|
export * from './PopularDocs';
|
|
33
33
|
export * from './PricingCard';
|
|
34
|
+
export * from './RatafiaResultCardList';
|
|
35
|
+
export * from './RatafiaResultTabList';
|
|
34
36
|
export * from './RatafiaSubscriptionCard';
|
|
35
37
|
export * from './Snackbar';
|
|
36
38
|
export * from './StepGetForm';
|
|
@@ -31,6 +31,8 @@ export * from './PhoneContactBoxDesktop';
|
|
|
31
31
|
export * from './PhoneContactBoxMobile';
|
|
32
32
|
export * from './PopularDocs';
|
|
33
33
|
export * from './PricingCard';
|
|
34
|
+
export * from './RatafiaResultCardList';
|
|
35
|
+
export * from './RatafiaResultTabList';
|
|
34
36
|
export * from './RatafiaSubscriptionCard';
|
|
35
37
|
export * from './Snackbar';
|
|
36
38
|
export * from './StepGetForm';
|
|
@@ -31,6 +31,8 @@ export * from './PhoneContactBoxDesktop'
|
|
|
31
31
|
export * from './PhoneContactBoxMobile'
|
|
32
32
|
export * from './PopularDocs'
|
|
33
33
|
export * from './PricingCard'
|
|
34
|
+
export * from './RatafiaResultCardList'
|
|
35
|
+
export * from './RatafiaResultTabList'
|
|
34
36
|
export * from './RatafiaSubscriptionCard'
|
|
35
37
|
export * from './Snackbar'
|
|
36
38
|
export * from './StepGetForm'
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { CAFlag } from '../../../../images/componentsSvg/flags/CAFlag';
|
|
4
|
+
import { DEFlag } from '../../../../images/componentsSvg/flags/DEFlag';
|
|
3
5
|
import { GBFlag } from '../../../../images/componentsSvg/flags/GBFlag';
|
|
4
6
|
import { USFlag } from '../../../../images/componentsSvg/flags/USFlag';
|
|
5
7
|
export const useLanguagesSelector = (languages) => {
|
|
6
8
|
const flags = new Map([
|
|
7
9
|
['en-US', _jsx(USFlag, {}, 'us-flag')],
|
|
8
|
-
['en-GB', _jsx(GBFlag, {}, 'gb-flag')]
|
|
10
|
+
['en-GB', _jsx(GBFlag, {}, 'gb-flag')],
|
|
11
|
+
['en-CA', _jsx(CAFlag, {}, 'ca-flag')],
|
|
12
|
+
['de-DE', _jsx(DEFlag, {}, 'de-flag')]
|
|
9
13
|
]);
|
|
10
14
|
const initSelector = () => {
|
|
11
15
|
if (languages.length === 0)
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
|
|
3
|
+
import { CAFlag } from '../../../../images/componentsSvg/flags/CAFlag'
|
|
4
|
+
import { DEFlag } from '../../../../images/componentsSvg/flags/DEFlag'
|
|
3
5
|
import { GBFlag } from '../../../../images/componentsSvg/flags/GBFlag'
|
|
4
6
|
import { type LenguageSelectorItem } from './LenguageSelectorItem'
|
|
5
7
|
import { USFlag } from '../../../../images/componentsSvg/flags/USFlag'
|
|
@@ -9,7 +11,9 @@ export const useLanguagesSelector = (
|
|
|
9
11
|
): { languagesSelector: LenguageSelectorItem[] } => {
|
|
10
12
|
const flags = new Map<string, React.ReactNode>([
|
|
11
13
|
['en-US', <USFlag key='us-flag' />],
|
|
12
|
-
['en-GB', <GBFlag key='gb-flag' />]
|
|
14
|
+
['en-GB', <GBFlag key='gb-flag' />],
|
|
15
|
+
['en-CA', <CAFlag key='ca-flag' />],
|
|
16
|
+
['de-DE', <DEFlag key='de-flag' />]
|
|
13
17
|
])
|
|
14
18
|
|
|
15
19
|
const initSelector = (): LenguageSelectorItem[] => {
|
|
@@ -17,8 +17,7 @@ export const LayoutRatafiaStyled = styled.div `
|
|
|
17
17
|
justify-content: space-between;
|
|
18
18
|
padding: 1.5rem 1.5rem 0 1.5rem;
|
|
19
19
|
width: 100%;
|
|
20
|
-
height:
|
|
21
|
-
min-height: calc(100vh - 8.375rem);
|
|
20
|
+
height: calc(100vh - 8.375rem);
|
|
22
21
|
border-radius: var(--l-border-radius) var(--l-border-radius) 0 0;
|
|
23
22
|
background: var(--others-white);
|
|
24
23
|
box-shadow: var(--box-shadow-small);
|
|
@@ -18,8 +18,7 @@ export const LayoutRatafiaStyled = styled.div`
|
|
|
18
18
|
justify-content: space-between;
|
|
19
19
|
padding: 1.5rem 1.5rem 0 1.5rem;
|
|
20
20
|
width: 100%;
|
|
21
|
-
height:
|
|
22
|
-
min-height: calc(100vh - 8.375rem);
|
|
21
|
+
height: calc(100vh - 8.375rem);
|
|
23
22
|
border-radius: var(--l-border-radius) var(--l-border-radius) 0 0;
|
|
24
23
|
background: var(--others-white);
|
|
25
24
|
box-shadow: var(--box-shadow-small);
|
package/dist/src/components/organisms/RatafiaLoadingResultContent/RatafiaLoadingResultContent.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { RatafiaLoadingResultContentStyled } from './RatafiaLoadingResultContent.styled';
|
|
3
|
+
export const RatafiaLoadingResultContent = ({ documentName, icon, text }) => {
|
|
4
|
+
return (_jsxs(RatafiaLoadingResultContentStyled, { children: [_jsx("h2", { className: 'sans-serif --bold-weight ratafia-result-loading-content__document-name', children: documentName }), _jsxs("div", { className: 'ratafia-result-loading-content__animation-wrapper', children: [_jsxs("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation animation-1', children: [_jsx("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation__loader item-1' }), _jsx("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation__loader item-6' }), _jsx("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation__loader item-2' })] }), _jsxs("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation animation-2', children: [_jsx("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation__loader item-3' }), _jsx("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation__loader item-4' }), _jsx("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation__loader item-5' }), _jsx("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation__loader item-6' })] }), _jsxs("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation animation-3', children: [_jsx("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation__loader item-1' }), _jsx("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation__loader item-7' }), _jsx("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation__loader item-4' })] }), _jsxs("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation animation-4', children: [_jsx("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation__loader item-3' }), _jsx("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation__loader item-8' }), _jsx("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation__loader item-2' }), _jsx("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation__loader item-6' })] })] }), _jsxs("div", { className: 'ratafia-result-loading-content__message', children: [_jsx("div", { className: 'ratafia-result-loading-content__message__icon', children: icon }), _jsx("span", { className: 'sans-serif --medium ratafia-result-loading-content__message__text', children: text })] })] }));
|
|
5
|
+
};
|
|
6
|
+
export default RatafiaLoadingResultContent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const RatafiaLoadingResultContentStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { device } from '../../../globalStyles/breakpoints';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
export const RatafiaLoadingResultContentStyled = styled.div `
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
align-items: flex-start;
|
|
7
|
+
align-self: stretch;
|
|
8
|
+
gap: var(--global-gap);
|
|
9
|
+
|
|
10
|
+
.ratafia-result-loading-content__document-name {
|
|
11
|
+
color: var(--neutral-neutral-2);
|
|
12
|
+
font-size: 1rem;
|
|
13
|
+
@media ${device['portrait-tablets']} {
|
|
14
|
+
font-size: 1.125rem;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.ratafia-result-loading-content__animation-wrapper {
|
|
19
|
+
align-self: stretch;
|
|
20
|
+
|
|
21
|
+
padding: 0 2rem 1.5rem 1.5rem;
|
|
22
|
+
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
|
|
25
|
+
border-radius: var(--s-border-radius);
|
|
26
|
+
border-top: 4px solid var(--neutral-neutral-6);
|
|
27
|
+
border-bottom: 4px solid var(--neutral-neutral-6);
|
|
28
|
+
background: var(--neutral-neutral-6);
|
|
29
|
+
|
|
30
|
+
height: calc(100vh - 23.5rem);
|
|
31
|
+
@media ${device['portrait-tablets']} {
|
|
32
|
+
height: calc(100vh - 33.5rem);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&__animation {
|
|
36
|
+
display: flex;
|
|
37
|
+
flex-direction: column;
|
|
38
|
+
align-items: flex-start;
|
|
39
|
+
justify-content: center;
|
|
40
|
+
|
|
41
|
+
gap: 0.8rem;
|
|
42
|
+
|
|
43
|
+
padding: 2rem 0;
|
|
44
|
+
|
|
45
|
+
border-bottom: 1px solid var(--neutral-neutral-4);
|
|
46
|
+
&__loader {
|
|
47
|
+
background: var(--neutral-neutral-4);
|
|
48
|
+
border-radius: var(--l-border-radius);
|
|
49
|
+
}
|
|
50
|
+
.item-1 {
|
|
51
|
+
height: 10px;
|
|
52
|
+
width: 45%;
|
|
53
|
+
}
|
|
54
|
+
.item-2 {
|
|
55
|
+
height: 7px;
|
|
56
|
+
width: 30%;
|
|
57
|
+
}
|
|
58
|
+
.item-3 {
|
|
59
|
+
height: 10px;
|
|
60
|
+
width: 25%;
|
|
61
|
+
}
|
|
62
|
+
.item-4 {
|
|
63
|
+
height: 7px;
|
|
64
|
+
width: 70%;
|
|
65
|
+
}
|
|
66
|
+
.item-5 {
|
|
67
|
+
height: 7px;
|
|
68
|
+
width: 55%;
|
|
69
|
+
}
|
|
70
|
+
.item-6 {
|
|
71
|
+
height: 7px;
|
|
72
|
+
width: 65%;
|
|
73
|
+
}
|
|
74
|
+
.item-7 {
|
|
75
|
+
height: 7px;
|
|
76
|
+
width: 90%;
|
|
77
|
+
}
|
|
78
|
+
.item-8 {
|
|
79
|
+
height: 7px;
|
|
80
|
+
width: 90%;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
.animation-1 {
|
|
84
|
+
animation:
|
|
85
|
+
appear 4s ease-in-out 1,
|
|
86
|
+
fadeInOut 4s ease-in-out infinite 4s;
|
|
87
|
+
}
|
|
88
|
+
.animation-2 {
|
|
89
|
+
animation:
|
|
90
|
+
appear 5s ease-in-out 1,
|
|
91
|
+
fadeInOut 4s ease-in-out infinite 4s;
|
|
92
|
+
}
|
|
93
|
+
.animation-3 {
|
|
94
|
+
animation:
|
|
95
|
+
appear 6s ease-in-out 1,
|
|
96
|
+
fadeInOut 4s ease-in-out infinite 4s;
|
|
97
|
+
}
|
|
98
|
+
.animation-4 {
|
|
99
|
+
animation:
|
|
100
|
+
appear 6s ease-in-out 1,
|
|
101
|
+
fadeInOut 4s ease-in-out infinite 4s;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.ratafia-result-loading-content__message {
|
|
106
|
+
display: flex;
|
|
107
|
+
justify-content: start;
|
|
108
|
+
align-items: flex-start;
|
|
109
|
+
align-self: stretch;
|
|
110
|
+
|
|
111
|
+
padding: 1rem;
|
|
112
|
+
gap: 0.5rem;
|
|
113
|
+
|
|
114
|
+
border-radius: var(--s-border-radius);
|
|
115
|
+
background: var(--secondary-main-light-4);
|
|
116
|
+
|
|
117
|
+
&__icon img {
|
|
118
|
+
width: 24px;
|
|
119
|
+
}
|
|
120
|
+
&__text {
|
|
121
|
+
color: var(--neutral-neutral-1);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
@keyframes fadeInOut {
|
|
126
|
+
0%,
|
|
127
|
+
100% {
|
|
128
|
+
opacity: 1;
|
|
129
|
+
}
|
|
130
|
+
50% {
|
|
131
|
+
opacity: 0.2;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
@keyframes appear {
|
|
136
|
+
0% {
|
|
137
|
+
opacity: 0;
|
|
138
|
+
}
|
|
139
|
+
100% {
|
|
140
|
+
opacity: 1;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
`;
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { device } from '../../../globalStyles/breakpoints'
|
|
2
|
+
import styled from 'styled-components'
|
|
3
|
+
|
|
4
|
+
export const RatafiaLoadingResultContentStyled = styled.div`
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
align-items: flex-start;
|
|
8
|
+
align-self: stretch;
|
|
9
|
+
gap: var(--global-gap);
|
|
10
|
+
|
|
11
|
+
.ratafia-result-loading-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
|
+
|
|
19
|
+
.ratafia-result-loading-content__animation-wrapper {
|
|
20
|
+
align-self: stretch;
|
|
21
|
+
|
|
22
|
+
padding: 0 2rem 1.5rem 1.5rem;
|
|
23
|
+
|
|
24
|
+
overflow: hidden;
|
|
25
|
+
|
|
26
|
+
border-radius: var(--s-border-radius);
|
|
27
|
+
border-top: 4px solid var(--neutral-neutral-6);
|
|
28
|
+
border-bottom: 4px solid var(--neutral-neutral-6);
|
|
29
|
+
background: var(--neutral-neutral-6);
|
|
30
|
+
|
|
31
|
+
height: calc(100vh - 23.5rem);
|
|
32
|
+
@media ${device['portrait-tablets']} {
|
|
33
|
+
height: calc(100vh - 33.5rem);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&__animation {
|
|
37
|
+
display: flex;
|
|
38
|
+
flex-direction: column;
|
|
39
|
+
align-items: flex-start;
|
|
40
|
+
justify-content: center;
|
|
41
|
+
|
|
42
|
+
gap: 0.8rem;
|
|
43
|
+
|
|
44
|
+
padding: 2rem 0;
|
|
45
|
+
|
|
46
|
+
border-bottom: 1px solid var(--neutral-neutral-4);
|
|
47
|
+
&__loader {
|
|
48
|
+
background: var(--neutral-neutral-4);
|
|
49
|
+
border-radius: var(--l-border-radius);
|
|
50
|
+
}
|
|
51
|
+
.item-1 {
|
|
52
|
+
height: 10px;
|
|
53
|
+
width: 45%;
|
|
54
|
+
}
|
|
55
|
+
.item-2 {
|
|
56
|
+
height: 7px;
|
|
57
|
+
width: 30%;
|
|
58
|
+
}
|
|
59
|
+
.item-3 {
|
|
60
|
+
height: 10px;
|
|
61
|
+
width: 25%;
|
|
62
|
+
}
|
|
63
|
+
.item-4 {
|
|
64
|
+
height: 7px;
|
|
65
|
+
width: 70%;
|
|
66
|
+
}
|
|
67
|
+
.item-5 {
|
|
68
|
+
height: 7px;
|
|
69
|
+
width: 55%;
|
|
70
|
+
}
|
|
71
|
+
.item-6 {
|
|
72
|
+
height: 7px;
|
|
73
|
+
width: 65%;
|
|
74
|
+
}
|
|
75
|
+
.item-7 {
|
|
76
|
+
height: 7px;
|
|
77
|
+
width: 90%;
|
|
78
|
+
}
|
|
79
|
+
.item-8 {
|
|
80
|
+
height: 7px;
|
|
81
|
+
width: 90%;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
.animation-1 {
|
|
85
|
+
animation:
|
|
86
|
+
appear 4s ease-in-out 1,
|
|
87
|
+
fadeInOut 4s ease-in-out infinite 4s;
|
|
88
|
+
}
|
|
89
|
+
.animation-2 {
|
|
90
|
+
animation:
|
|
91
|
+
appear 5s ease-in-out 1,
|
|
92
|
+
fadeInOut 4s ease-in-out infinite 4s;
|
|
93
|
+
}
|
|
94
|
+
.animation-3 {
|
|
95
|
+
animation:
|
|
96
|
+
appear 6s ease-in-out 1,
|
|
97
|
+
fadeInOut 4s ease-in-out infinite 4s;
|
|
98
|
+
}
|
|
99
|
+
.animation-4 {
|
|
100
|
+
animation:
|
|
101
|
+
appear 6s ease-in-out 1,
|
|
102
|
+
fadeInOut 4s ease-in-out infinite 4s;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.ratafia-result-loading-content__message {
|
|
107
|
+
display: flex;
|
|
108
|
+
justify-content: start;
|
|
109
|
+
align-items: flex-start;
|
|
110
|
+
align-self: stretch;
|
|
111
|
+
|
|
112
|
+
padding: 1rem;
|
|
113
|
+
gap: 0.5rem;
|
|
114
|
+
|
|
115
|
+
border-radius: var(--s-border-radius);
|
|
116
|
+
background: var(--secondary-main-light-4);
|
|
117
|
+
|
|
118
|
+
&__icon img {
|
|
119
|
+
width: 24px;
|
|
120
|
+
}
|
|
121
|
+
&__text {
|
|
122
|
+
color: var(--neutral-neutral-1);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
@keyframes fadeInOut {
|
|
127
|
+
0%,
|
|
128
|
+
100% {
|
|
129
|
+
opacity: 1;
|
|
130
|
+
}
|
|
131
|
+
50% {
|
|
132
|
+
opacity: 0.2;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
@keyframes appear {
|
|
137
|
+
0% {
|
|
138
|
+
opacity: 0;
|
|
139
|
+
}
|
|
140
|
+
100% {
|
|
141
|
+
opacity: 1;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
`
|