@npm_leadtech/legal-lib-components 5.58.2 → 5.58.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.
- package/dist/src/components/atoms/RatafiaResultTab/RatafiaResultTab.styled.js +1 -1
- package/dist/src/components/atoms/RatafiaResultTab/RatafiaResultTab.styled.ts +1 -1
- package/dist/src/components/organisms/RatafiaResultContent/RatafiaResultContent.js +2 -1
- package/dist/src/components/organisms/RatafiaResultContent/RatafiaResultContent.styled.js +5 -1
- package/dist/src/components/organisms/RatafiaResultContent/RatafiaResultContent.styled.ts +5 -1
- package/dist/src/components/organisms/RatafiaResultContent/RatafiaResultContent.tsx +6 -0
- package/dist/src/components/organisms/RatafiaResultContent/RatafiaResultContentProps.types.d.ts +3 -1
- package/dist/src/components/organisms/RatafiaResultContent/RatafiaResultContentProps.types.ts +4 -1
- package/dist/src/components/pages/RatafiaResultPage/RatafiaResultPageProps.types.d.ts +4 -4
- package/dist/src/components/pages/RatafiaResultPage/RatafiaResultPageProps.types.ts +4 -4
- package/package.json +6 -2
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { RatafiaResultCardList } from '../../molecules';
|
|
3
3
|
import { RatafiaResultContentStyled } from './RatafiaResultContent.styled';
|
|
4
|
+
import RatafiaResultTabList from '../../molecules/RatafiaResultTabList/RatafiaResultTabList';
|
|
4
5
|
import { RatafiaReviewResult } from '../../atoms';
|
|
5
6
|
export const RatafiaResultContent = ({ result, review }) => {
|
|
6
|
-
return (_jsxs(RatafiaResultContentStyled, { children: [_jsx("h2", { ref: result?.documentNameRef, className: 'sans-serif --bold-weight ratafia-result-content__document-name', children: result?.documentName }), _jsxs("div", { className: 'ratafia-result-content__content', children: [result !== null && _jsx(RatafiaResultCardList, { keyFacts: result.keyFacts }), _jsx(RatafiaReviewResult, { ...review })] })] }));
|
|
7
|
+
return (_jsxs(RatafiaResultContentStyled, { children: [_jsx("h2", { ref: result?.documentNameRef, className: 'sans-serif --bold-weight ratafia-result-content__document-name', children: result?.documentName }), result?.tabs && (_jsx("div", { className: 'ratafia-result-content__tabs', children: _jsx(RatafiaResultTabList, { tabs: result.tabs }) })), _jsxs("div", { className: 'ratafia-result-content__content', children: [result !== null && _jsx(RatafiaResultCardList, { keyFacts: result.keyFacts }), _jsx(RatafiaReviewResult, { ...review })] })] }));
|
|
7
8
|
};
|
|
8
9
|
export default RatafiaResultContent;
|
|
@@ -6,15 +6,19 @@ export const RatafiaResultContentStyled = styled.div `
|
|
|
6
6
|
align-items: flex-start;
|
|
7
7
|
flex: 1 0 0;
|
|
8
8
|
align-self: stretch;
|
|
9
|
-
gap: var(--global-gap);
|
|
10
9
|
|
|
11
10
|
.ratafia-result-content__document-name {
|
|
12
11
|
color: var(--neutral-neutral-2);
|
|
13
12
|
font-size: 1rem;
|
|
13
|
+
margin-bottom: 1rem;
|
|
14
14
|
@media ${device['portrait-tablets']} {
|
|
15
15
|
font-size: 1.125rem;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
+
.ratafia-result-content__tabs {
|
|
19
|
+
width: 100%;
|
|
20
|
+
margin-bottom: 0.5rem;
|
|
21
|
+
}
|
|
18
22
|
.ratafia-result-content__content {
|
|
19
23
|
overflow: hidden;
|
|
20
24
|
width: 100%;
|
|
@@ -7,15 +7,19 @@ export const RatafiaResultContentStyled = styled.div`
|
|
|
7
7
|
align-items: flex-start;
|
|
8
8
|
flex: 1 0 0;
|
|
9
9
|
align-self: stretch;
|
|
10
|
-
gap: var(--global-gap);
|
|
11
10
|
|
|
12
11
|
.ratafia-result-content__document-name {
|
|
13
12
|
color: var(--neutral-neutral-2);
|
|
14
13
|
font-size: 1rem;
|
|
14
|
+
margin-bottom: 1rem;
|
|
15
15
|
@media ${device['portrait-tablets']} {
|
|
16
16
|
font-size: 1.125rem;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
+
.ratafia-result-content__tabs {
|
|
20
|
+
width: 100%;
|
|
21
|
+
margin-bottom: 0.5rem;
|
|
22
|
+
}
|
|
19
23
|
.ratafia-result-content__content {
|
|
20
24
|
overflow: hidden;
|
|
21
25
|
width: 100%;
|
|
@@ -3,6 +3,7 @@ import React from 'react'
|
|
|
3
3
|
import { RatafiaResultCardList } from '../../molecules'
|
|
4
4
|
import { type RatafiaResultContentProps } from './RatafiaResultContentProps.types'
|
|
5
5
|
import { RatafiaResultContentStyled } from './RatafiaResultContent.styled'
|
|
6
|
+
import RatafiaResultTabList from '../../molecules/RatafiaResultTabList/RatafiaResultTabList'
|
|
6
7
|
import { RatafiaReviewResult } from '../../atoms'
|
|
7
8
|
|
|
8
9
|
export const RatafiaResultContent: React.FC<RatafiaResultContentProps> = ({ result, review }) => {
|
|
@@ -11,6 +12,11 @@ export const RatafiaResultContent: React.FC<RatafiaResultContentProps> = ({ resu
|
|
|
11
12
|
<h2 ref={result?.documentNameRef} className='sans-serif --bold-weight ratafia-result-content__document-name'>
|
|
12
13
|
{result?.documentName}
|
|
13
14
|
</h2>
|
|
15
|
+
{result?.tabs && (
|
|
16
|
+
<div className='ratafia-result-content__tabs'>
|
|
17
|
+
<RatafiaResultTabList tabs={result.tabs} />
|
|
18
|
+
</div>
|
|
19
|
+
)}
|
|
14
20
|
<div className='ratafia-result-content__content'>
|
|
15
21
|
{result !== null && <RatafiaResultCardList keyFacts={result.keyFacts} />}
|
|
16
22
|
<RatafiaReviewResult {...review} />
|
package/dist/src/components/organisms/RatafiaResultContent/RatafiaResultContentProps.types.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import type { RatafiaResultCardProps, RatafiaReviewResultProps } from '../../atoms';
|
|
2
1
|
import React from 'react';
|
|
2
|
+
import type { RatafiaResultCardProps, RatafiaReviewResultProps } from '../../atoms';
|
|
3
|
+
import { type RatafiaResultTabProps } from '../../atoms';
|
|
3
4
|
export interface RatafiaResultContentProps {
|
|
4
5
|
result: RatafiaResultProps | null;
|
|
5
6
|
review: RatafiaReviewResultProps;
|
|
6
7
|
}
|
|
7
8
|
export interface RatafiaResultProps {
|
|
8
9
|
documentName: string;
|
|
10
|
+
tabs: RatafiaResultTabProps[];
|
|
9
11
|
keyFacts: RatafiaResultCardProps[];
|
|
10
12
|
documentNameRef?: React.RefObject<HTMLHeadingElement>;
|
|
11
13
|
}
|
package/dist/src/components/organisms/RatafiaResultContent/RatafiaResultContentProps.types.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import type { RatafiaResultCardProps, RatafiaReviewResultProps } from '../../atoms'
|
|
2
1
|
import React from 'react'
|
|
3
2
|
|
|
3
|
+
import type { RatafiaResultCardProps, RatafiaReviewResultProps } from '../../atoms'
|
|
4
|
+
import { type RatafiaResultTabProps } from '../../atoms'
|
|
5
|
+
|
|
4
6
|
export interface RatafiaResultContentProps {
|
|
5
7
|
result: RatafiaResultProps | null
|
|
6
8
|
review: RatafiaReviewResultProps
|
|
@@ -8,6 +10,7 @@ export interface RatafiaResultContentProps {
|
|
|
8
10
|
|
|
9
11
|
export interface RatafiaResultProps {
|
|
10
12
|
documentName: string
|
|
13
|
+
tabs: RatafiaResultTabProps[]
|
|
11
14
|
keyFacts: RatafiaResultCardProps[]
|
|
12
15
|
documentNameRef?: React.RefObject<HTMLHeadingElement>
|
|
13
16
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { DisclaimerRatafiaProps,
|
|
1
|
+
import type { DisclaimerRatafiaProps, RatafiaReviewResultProps } from '../../atoms';
|
|
2
2
|
import { type HeaderRatafiaProps } from '../../molecules';
|
|
3
|
-
import { type
|
|
3
|
+
import { type RatafiaResultProps } from '../../organisms';
|
|
4
4
|
export interface RatafiaResultPageProps {
|
|
5
5
|
header: HeaderRatafiaProps;
|
|
6
|
-
resultContent:
|
|
7
|
-
reviewContent:
|
|
6
|
+
resultContent: RatafiaResultProps;
|
|
7
|
+
reviewContent: RatafiaReviewResultProps;
|
|
8
8
|
disclaimer: DisclaimerRatafiaProps;
|
|
9
9
|
cta: RatafiaResultCta;
|
|
10
10
|
loadingIcon?: React.ReactNode;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
-
import type { DisclaimerRatafiaProps,
|
|
2
|
+
import type { DisclaimerRatafiaProps, RatafiaReviewResultProps } from '../../atoms'
|
|
3
3
|
import { type HeaderRatafiaProps } from '../../molecules'
|
|
4
|
-
import { type
|
|
4
|
+
import { type RatafiaResultProps } from '../../organisms'
|
|
5
5
|
|
|
6
6
|
export interface RatafiaResultPageProps {
|
|
7
7
|
header: HeaderRatafiaProps
|
|
8
|
-
resultContent:
|
|
9
|
-
reviewContent:
|
|
8
|
+
resultContent: RatafiaResultProps
|
|
9
|
+
reviewContent: RatafiaReviewResultProps
|
|
10
10
|
disclaimer: DisclaimerRatafiaProps
|
|
11
11
|
cta: RatafiaResultCta
|
|
12
12
|
loadingIcon?: React.ReactNode
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@npm_leadtech/legal-lib-components",
|
|
3
|
-
"version": "5.58.
|
|
3
|
+
"version": "5.58.4",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -166,7 +166,12 @@
|
|
|
166
166
|
"./PopularDocsItem": "./dist/src/components/atoms/PopularDocsItem/index.js",
|
|
167
167
|
"./ProgressBar": "./dist/src/components/atoms/ProgressBar/index.js",
|
|
168
168
|
"./Radio": "./dist/src/components/atoms/Radio/index.js",
|
|
169
|
+
"./RatafiaSubscriptionCard": "./dist/src/components/molecules/RatafiaSubscriptionCard/index.js",
|
|
169
170
|
"./RatafiaLandingIcon": "./dist/src/components/atoms/RatafiaLandingIcon/index.js",
|
|
171
|
+
"./RatafiaLoadingResultContent": "./dist/src/components/organisms/RatafiaLoadingResultContent/index.js",
|
|
172
|
+
"./RatafiaResultCard": "./dist/src/components/atoms/RatafiaResultCard/index.js",
|
|
173
|
+
"./RatafiaResultContent": "./dist/src/components/organisms/RatafiaResultContent/index.js",
|
|
174
|
+
"./RatafiaResultPage": "./dist/src/components/pages/RatafiaResultPage/index.js",
|
|
170
175
|
"./RemoveButton": "./dist/src/components/atoms/RemoveButton/index.js",
|
|
171
176
|
"./ReviewKeyFactsResultRatafia": "./dist/src/components/atoms/ReviewKeyFactsResultRatafia/index.js",
|
|
172
177
|
"./RichTextInner": "./dist/src/components/atoms/RichTextInner/index.js",
|
|
@@ -224,7 +229,6 @@
|
|
|
224
229
|
"./PhoneContactBoxMobile": "./dist/src/components/molecules/PhoneContactBoxMobile/index.js",
|
|
225
230
|
"./PopularDocs": "./dist/src/components/molecules/PopularDocs/index.js",
|
|
226
231
|
"./PricingCard": "./dist/src/components/molecules/PricingCard/index.js",
|
|
227
|
-
"./RatafiaSubscriptionCard": "./dist/src/components/molecules/RatafiaSubscriptionCard/index.js",
|
|
228
232
|
"./Snackbar": "./dist/src/components/molecules/Snackbar/index.js",
|
|
229
233
|
"./StepGetForm": "./dist/src/components/molecules/StepGetForm/index.js",
|
|
230
234
|
"./StepRatafiaCardList": "./dist/src/components/molecules/StepRatafiaCardList/index.js",
|