@npm_leadtech/legal-lib-components 5.67.3 → 5.68.1

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 (135) hide show
  1. package/dist/images/componentsSvg/Sign24px.d.ts +6 -0
  2. package/dist/images/componentsSvg/Sign24px.js +2 -0
  3. package/dist/images/componentsSvg/Sign24px.tsx +16 -0
  4. package/dist/src/components/atoms/DocumentStatus/DocumentStatus.js +5 -1
  5. package/dist/src/components/atoms/DocumentStatus/DocumentStatus.styled.js +15 -0
  6. package/dist/src/components/atoms/DocumentStatus/DocumentStatus.styled.ts +15 -0
  7. package/dist/src/components/atoms/DocumentStatus/DocumentStatus.tsx +10 -1
  8. package/dist/src/components/atoms/DocumentStatus/DocumentStatusProps.types.d.ts +1 -0
  9. package/dist/src/components/atoms/DocumentStatus/DocumentStatusProps.types.ts +1 -0
  10. package/dist/src/components/atoms/RatafiaResultCard/RatafiaResultCard.d.ts +4 -0
  11. package/dist/src/components/atoms/RatafiaResultCard/RatafiaResultCard.js +6 -0
  12. package/dist/src/components/atoms/RatafiaResultCard/RatafiaResultCard.styled.d.ts +1 -0
  13. package/dist/src/components/atoms/RatafiaResultCard/RatafiaResultCard.styled.js +39 -0
  14. package/dist/src/components/atoms/RatafiaResultCard/RatafiaResultCard.styled.ts +40 -0
  15. package/dist/src/components/atoms/RatafiaResultCard/RatafiaResultCard.tsx +18 -0
  16. package/dist/src/components/atoms/RatafiaResultCard/RatafiaResultCardProps.types.d.ts +5 -0
  17. package/dist/src/components/atoms/RatafiaResultCard/RatafiaResultCardProps.types.ts +5 -0
  18. package/dist/src/components/atoms/RatafiaResultCard/index.d.ts +2 -0
  19. package/dist/src/components/atoms/RatafiaResultCard/index.js +1 -0
  20. package/dist/src/components/atoms/RatafiaResultCard/index.ts +2 -0
  21. package/dist/src/components/atoms/RatafiaResultTab/RatafiaResultTab.d.ts +4 -0
  22. package/dist/src/components/atoms/RatafiaResultTab/RatafiaResultTab.js +6 -0
  23. package/dist/src/components/atoms/RatafiaResultTab/RatafiaResultTab.styled.d.ts +1 -0
  24. package/dist/src/components/atoms/RatafiaResultTab/RatafiaResultTab.styled.js +38 -0
  25. package/dist/src/components/atoms/RatafiaResultTab/RatafiaResultTab.styled.ts +39 -0
  26. package/dist/src/components/atoms/RatafiaResultTab/RatafiaResultTab.tsx +23 -0
  27. package/dist/src/components/atoms/RatafiaResultTab/RatafiaResultTabProps.types.d.ts +9 -0
  28. package/dist/src/components/atoms/RatafiaResultTab/RatafiaResultTabProps.types.js +1 -0
  29. package/dist/src/components/atoms/RatafiaResultTab/RatafiaResultTabProps.types.ts +9 -0
  30. package/dist/src/components/atoms/RatafiaResultTab/index.d.ts +2 -0
  31. package/dist/src/components/atoms/RatafiaResultTab/index.js +1 -0
  32. package/dist/src/components/atoms/RatafiaResultTab/index.ts +2 -0
  33. package/dist/src/components/atoms/RatafiaReviewResult/RatafiaReviewResult.d.ts +4 -0
  34. package/dist/src/components/atoms/RatafiaReviewResult/RatafiaReviewResult.js +6 -0
  35. package/dist/src/components/atoms/RatafiaReviewResult/RatafiaReviewResult.styled.d.ts +1 -0
  36. package/dist/src/components/atoms/RatafiaReviewResult/RatafiaReviewResult.styled.js +55 -0
  37. package/dist/src/components/atoms/RatafiaReviewResult/RatafiaReviewResult.styled.ts +56 -0
  38. package/dist/src/components/atoms/RatafiaReviewResult/RatafiaReviewResult.tsx +56 -0
  39. package/dist/src/components/atoms/RatafiaReviewResult/RatafiaReviewResultProps.types.d.ts +14 -0
  40. package/dist/src/components/atoms/RatafiaReviewResult/RatafiaReviewResultProps.types.js +1 -0
  41. package/dist/src/components/atoms/RatafiaReviewResult/RatafiaReviewResultProps.types.ts +15 -0
  42. package/dist/src/components/atoms/RatafiaReviewResult/index.d.ts +2 -0
  43. package/dist/src/components/atoms/RatafiaReviewResult/index.js +1 -0
  44. package/dist/src/components/atoms/RatafiaReviewResult/index.ts +2 -0
  45. package/dist/src/components/atoms/index.d.ts +3 -0
  46. package/dist/src/components/atoms/index.js +3 -0
  47. package/dist/src/components/atoms/index.ts +3 -0
  48. package/dist/src/components/molecules/RatafiaResultCardList/RatafiaResultCardList.d.ts +4 -0
  49. package/dist/src/components/molecules/RatafiaResultCardList/RatafiaResultCardList.js +9 -0
  50. package/dist/src/components/molecules/RatafiaResultCardList/RatafiaResultCardList.styled.d.ts +1 -0
  51. package/dist/src/components/molecules/RatafiaResultCardList/RatafiaResultCardList.styled.js +24 -0
  52. package/dist/src/components/molecules/RatafiaResultCardList/RatafiaResultCardList.styled.ts +25 -0
  53. package/dist/src/components/molecules/RatafiaResultCardList/RatafiaResultCardList.tsx +19 -0
  54. package/dist/src/components/molecules/RatafiaResultCardList/RatafiaResultCardListProps.types.d.ts +4 -0
  55. package/dist/src/components/molecules/RatafiaResultCardList/RatafiaResultCardListProps.types.js +1 -0
  56. package/dist/src/components/molecules/RatafiaResultCardList/RatafiaResultCardListProps.types.ts +5 -0
  57. package/dist/src/components/molecules/RatafiaResultCardList/index.d.ts +2 -0
  58. package/dist/src/components/molecules/RatafiaResultCardList/index.js +1 -0
  59. package/dist/src/components/molecules/RatafiaResultCardList/index.ts +2 -0
  60. package/dist/src/components/molecules/RatafiaResultTabList/RatafiaResultTabList.d.ts +4 -0
  61. package/dist/src/components/molecules/RatafiaResultTabList/RatafiaResultTabList.js +9 -0
  62. package/dist/src/components/molecules/RatafiaResultTabList/RatafiaResultTabList.styled.d.ts +1 -0
  63. package/dist/src/components/molecules/RatafiaResultTabList/RatafiaResultTabList.styled.js +7 -0
  64. package/dist/src/components/molecules/RatafiaResultTabList/RatafiaResultTabList.styled.ts +8 -0
  65. package/dist/src/components/molecules/RatafiaResultTabList/RatafiaResultTabList.tsx +18 -0
  66. package/dist/src/components/molecules/RatafiaResultTabList/RatafiaResultTabListProps.types.d.ts +4 -0
  67. package/dist/src/components/molecules/RatafiaResultTabList/RatafiaResultTabListProps.types.js +1 -0
  68. package/dist/src/components/molecules/RatafiaResultTabList/RatafiaResultTabListProps.types.ts +5 -0
  69. package/dist/src/components/molecules/RatafiaResultTabList/index.d.ts +2 -0
  70. package/dist/src/components/molecules/RatafiaResultTabList/index.js +1 -0
  71. package/dist/src/components/molecules/RatafiaResultTabList/index.ts +2 -0
  72. package/dist/src/components/molecules/index.d.ts +2 -0
  73. package/dist/src/components/molecules/index.js +2 -0
  74. package/dist/src/components/molecules/index.ts +2 -0
  75. package/dist/src/components/organisms/RatafiaLoadingResultContent/RatafiaLoadingResultContent.d.ts +4 -0
  76. package/dist/src/components/organisms/RatafiaLoadingResultContent/RatafiaLoadingResultContent.js +6 -0
  77. package/dist/src/components/organisms/RatafiaLoadingResultContent/RatafiaLoadingResultContent.styled.d.ts +1 -0
  78. package/dist/src/components/organisms/RatafiaLoadingResultContent/RatafiaLoadingResultContent.styled.js +143 -0
  79. package/dist/src/components/organisms/RatafiaLoadingResultContent/RatafiaLoadingResultContent.styled.ts +144 -0
  80. package/dist/src/components/organisms/RatafiaLoadingResultContent/RatafiaLoadingResultContent.tsx +46 -0
  81. package/dist/src/components/organisms/RatafiaLoadingResultContent/RatafiaLoadingResultContentProps.types.d.ts +5 -0
  82. package/dist/src/components/organisms/RatafiaLoadingResultContent/RatafiaLoadingResultContentProps.types.js +1 -0
  83. package/dist/src/components/organisms/RatafiaLoadingResultContent/RatafiaLoadingResultContentProps.types.ts +5 -0
  84. package/dist/src/components/organisms/RatafiaLoadingResultContent/index.d.ts +2 -0
  85. package/dist/src/components/organisms/RatafiaLoadingResultContent/index.js +1 -0
  86. package/dist/src/components/organisms/RatafiaLoadingResultContent/index.ts +2 -0
  87. package/dist/src/components/organisms/RatafiaResultContent/RatafiaResultContent.d.ts +4 -0
  88. package/dist/src/components/organisms/RatafiaResultContent/RatafiaResultContent.js +9 -0
  89. package/dist/src/components/organisms/RatafiaResultContent/RatafiaResultContent.styled.d.ts +1 -0
  90. package/dist/src/components/organisms/RatafiaResultContent/RatafiaResultContent.styled.js +26 -0
  91. package/dist/src/components/organisms/RatafiaResultContent/RatafiaResultContent.styled.ts +27 -0
  92. package/dist/src/components/organisms/RatafiaResultContent/RatafiaResultContent.tsx +26 -0
  93. package/dist/src/components/organisms/RatafiaResultContent/RatafiaResultContentProps.types.d.ts +13 -0
  94. package/dist/src/components/organisms/RatafiaResultContent/RatafiaResultContentProps.types.js +1 -0
  95. package/dist/src/components/organisms/RatafiaResultContent/RatafiaResultContentProps.types.ts +16 -0
  96. package/dist/src/components/organisms/RatafiaResultContent/index.d.ts +3 -0
  97. package/dist/src/components/organisms/RatafiaResultContent/index.js +1 -0
  98. package/dist/src/components/organisms/RatafiaResultContent/index.ts +3 -0
  99. package/dist/src/components/organisms/index.d.ts +2 -1
  100. package/dist/src/components/organisms/index.js +2 -1
  101. package/dist/src/components/organisms/index.ts +2 -1
  102. package/dist/src/components/pages/AboutUsPage/AboutUsPage.js +2 -3
  103. package/dist/src/components/pages/AboutUsPage/AboutUsPage.tsx +0 -3
  104. package/dist/src/components/pages/AboutUsPage/AboutUsPageProps.d.ts +0 -2
  105. package/dist/src/components/pages/AboutUsPage/AboutUsPageProps.ts +0 -2
  106. package/dist/src/components/pages/RatafiaResultPage/RatafiaResultPage.d.ts +4 -0
  107. package/dist/src/components/pages/RatafiaResultPage/RatafiaResultPage.js +15 -0
  108. package/dist/src/components/pages/RatafiaResultPage/RatafiaResultPage.styled.d.ts +1 -0
  109. package/dist/src/components/pages/RatafiaResultPage/RatafiaResultPage.styled.js +23 -0
  110. package/dist/src/components/pages/RatafiaResultPage/RatafiaResultPage.styled.ts +24 -0
  111. package/dist/src/components/pages/RatafiaResultPage/RatafiaResultPage.tsx +76 -0
  112. package/dist/src/components/pages/RatafiaResultPage/RatafiaResultPageProps.types.d.ts +20 -0
  113. package/dist/src/components/pages/RatafiaResultPage/RatafiaResultPageProps.types.js +1 -0
  114. package/dist/src/components/pages/RatafiaResultPage/RatafiaResultPageProps.types.ts +22 -0
  115. package/dist/src/components/pages/RatafiaResultPage/index.d.ts +2 -0
  116. package/dist/src/components/pages/RatafiaResultPage/index.js +1 -0
  117. package/dist/src/components/pages/RatafiaResultPage/index.ts +2 -0
  118. package/dist/src/components/pages/index.d.ts +2 -1
  119. package/dist/src/components/pages/index.js +2 -1
  120. package/dist/src/components/pages/index.ts +2 -1
  121. package/dist/tsconfig.build.tsbuildinfo +1 -1
  122. package/package.json +7 -4
  123. package/dist/images/png/img-customized-doc.png +0 -0
  124. package/dist/src/components/organisms/HowWeHelp/HowWeHelp.d.ts +0 -4
  125. package/dist/src/components/organisms/HowWeHelp/HowWeHelp.js +0 -7
  126. package/dist/src/components/organisms/HowWeHelp/HowWeHelp.styled.d.ts +0 -1
  127. package/dist/src/components/organisms/HowWeHelp/HowWeHelp.styled.js +0 -95
  128. package/dist/src/components/organisms/HowWeHelp/HowWeHelp.styled.ts +0 -96
  129. package/dist/src/components/organisms/HowWeHelp/HowWeHelp.tsx +0 -28
  130. package/dist/src/components/organisms/HowWeHelp/HowWeHelpProps.types.d.ts +0 -7
  131. package/dist/src/components/organisms/HowWeHelp/HowWeHelpProps.types.ts +0 -8
  132. package/dist/src/components/organisms/HowWeHelp/index.d.ts +0 -2
  133. package/dist/src/components/organisms/HowWeHelp/index.js +0 -1
  134. package/dist/src/components/organisms/HowWeHelp/index.ts +0 -2
  135. /package/dist/src/components/{organisms/HowWeHelp/HowWeHelpProps.types.js → atoms/RatafiaResultCard/RatafiaResultCardProps.types.js} +0 -0
@@ -0,0 +1,6 @@
1
+ import { type FC } from 'react';
2
+ interface Sign24pxProps {
3
+ className: string;
4
+ }
5
+ export declare const Sign24px: FC<Sign24pxProps>;
6
+ export {};
@@ -0,0 +1,2 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ export const Sign24px = ({ className }) => (_jsx("svg", { xmlns: 'http://www.w3.org/2000/svg', width: '17', height: '16', viewBox: '0 0 24 24', fill: 'none', children: _jsx("path", { id: 'path', "fill-rule": 'evenodd', "clip-rule": 'evenodd', d: 'M3 11C3 12.06 3.61 12.79 4.58 13.35L6.07 11.86C5.43 11.6 5 11.31 5 11C5 10.5 6.42 9.88 7.36 9.47C9.07 8.72 11 7.87 11 6C11 4.32 9.24 3 7 3C4.76 3 3.73 4.24 3.62 4.38C3.28 4.81 3.36 5.42 3.77 5.76C4.19 6.1 4.82 6.05 5.17 5.64C5.17096 5.63904 5.17245 5.63748 5.17447 5.63536C5.23542 5.57145 5.78046 5 7 5C8.22 5 9 5.59 9 6C9 6.55067 7.63659 7.15936 6.61179 7.61687C6.59443 7.62463 6.57716 7.63234 6.56 7.64C4.89 8.37 3 9.2 3 11ZM19.9101 9.33L18.8501 10.39L14.6101 6.15L15.6701 5.09C16.4501 4.31 17.7201 4.31 18.5001 5.09L19.9101 6.5C20.6901 7.28 20.6901 8.55 19.9101 9.33ZM4.14 16.61L13.19 7.56L17.44 11.8L8.39 20.85C8.3 20.95 8.17 21 8.04 21H4.5C4.22 21 4 20.78 4 20.5V16.96C4 16.83 4.05 16.7 4.14 16.61ZM19 17.5C19 19.69 16.46 21 14 21C13.45 21 13 20.55 13 20C13 19.45 13.45 19 14 19C15.54 19 17 18.27 17 17.5C17 17.03 16.52 16.63 15.77 16.3L17.25 14.82C18.32 15.45 19 16.29 19 17.5Z', fill: '#6D7275' }) }));
@@ -0,0 +1,16 @@
1
+ import React, { type FC } from 'react'
2
+ interface Sign24pxProps {
3
+ className: string
4
+ }
5
+
6
+ export const Sign24px: FC<Sign24pxProps> = ({ className }: Sign24pxProps) => (
7
+ <svg xmlns='http://www.w3.org/2000/svg' width='17' height='16' viewBox='0 0 24 24' fill='none'>
8
+ <path
9
+ id='path'
10
+ fill-rule='evenodd'
11
+ clip-rule='evenodd'
12
+ d='M3 11C3 12.06 3.61 12.79 4.58 13.35L6.07 11.86C5.43 11.6 5 11.31 5 11C5 10.5 6.42 9.88 7.36 9.47C9.07 8.72 11 7.87 11 6C11 4.32 9.24 3 7 3C4.76 3 3.73 4.24 3.62 4.38C3.28 4.81 3.36 5.42 3.77 5.76C4.19 6.1 4.82 6.05 5.17 5.64C5.17096 5.63904 5.17245 5.63748 5.17447 5.63536C5.23542 5.57145 5.78046 5 7 5C8.22 5 9 5.59 9 6C9 6.55067 7.63659 7.15936 6.61179 7.61687C6.59443 7.62463 6.57716 7.63234 6.56 7.64C4.89 8.37 3 9.2 3 11ZM19.9101 9.33L18.8501 10.39L14.6101 6.15L15.6701 5.09C16.4501 4.31 17.7201 4.31 18.5001 5.09L19.9101 6.5C20.6901 7.28 20.6901 8.55 19.9101 9.33ZM4.14 16.61L13.19 7.56L17.44 11.8L8.39 20.85C8.3 20.95 8.17 21 8.04 21H4.5C4.22 21 4 20.78 4 20.5V16.96C4 16.83 4.05 16.7 4.14 16.61ZM19 17.5C19 19.69 16.46 21 14 21C13.45 21 13 20.55 13 20C13 19.45 13.45 19 14 19C15.54 19 17 18.27 17 17.5C17 17.03 16.52 16.63 15.77 16.3L17.25 14.82C18.32 15.45 19 16.29 19 17.5Z'
13
+ fill='#6D7275'
14
+ />
15
+ </svg>
16
+ )
@@ -3,8 +3,9 @@ import { DocumentStatusStyled } from './DocumentStatus.styled';
3
3
  import { Done24px } from '../../../../images/componentsSvg/Done24px';
4
4
  import { NewRelease24p } from '../../../../images/componentsSvg/NewRelease24p';
5
5
  import { RatafiaIcon24px } from '../../../../images/componentsSvg/RatafiaIcon24px';
6
+ import { Sign24px } from '../../../../images/componentsSvg/Sign24px';
6
7
  import { Time24px } from '../../../../images/componentsSvg/Time24px';
7
- const DocumentStatus = ({ type, statusCompletedText, statusNewText, statusInProgressText, statusAIReviewedText }) => {
8
+ const DocumentStatus = ({ type, statusCompletedText, statusNewText, statusInProgressText, statusAIReviewedText, statusSignedText }) => {
8
9
  if (type === 'complete' || type === 'downloaded' || type === 'pdf_processing' || type === 'pdf_generated') {
9
10
  return (_jsxs(DocumentStatusStyled, { "data-testid": 'document-status', className: 'document-status --is-completed', children: [_jsx(Done24px, { className: 'icon' }), " ", _jsx("span", { className: 'sans-serif --small', children: statusCompletedText })] }));
10
11
  }
@@ -14,6 +15,9 @@ const DocumentStatus = ({ type, statusCompletedText, statusNewText, statusInProg
14
15
  if (type === 'ai_reviewed') {
15
16
  return (_jsxs(DocumentStatusStyled, { "data-testid": 'document-status', className: 'document-status --is-ai-reviewed', children: [_jsx(RatafiaIcon24px, { className: 'icon' }), " ", _jsx("span", { className: 'sans-serif --small', children: statusAIReviewedText })] }));
16
17
  }
18
+ if (type === 'signed') {
19
+ return (_jsxs(DocumentStatusStyled, { "data-testid": 'document-status', className: 'document-status --is-signed', children: [_jsx(Sign24px, { className: 'icon' }), " ", _jsx("span", { className: 'sans-serif --small', children: statusSignedText })] }));
20
+ }
17
21
  return (_jsxs(DocumentStatusStyled, { "data-testid": 'document-status', className: 'document-status --in-progress', children: [_jsx(Time24px, { className: 'icon' }), _jsx("span", { className: 'sans-serif --small', children: statusInProgressText })] }));
18
22
  };
19
23
  export default DocumentStatus;
@@ -75,5 +75,20 @@ export const DocumentStatusStyled = styled.div `
75
75
  }
76
76
  }
77
77
  }
78
+
79
+ &.--is-signed {
80
+ width: fit-content;
81
+ background-color: var(--primary-main-dark-2);
82
+ border-color: var(--primary-main-dark-2);
83
+ color: var(--others-white);
84
+
85
+ svg {
86
+ margin-right: 0.25rem;
87
+
88
+ path {
89
+ fill: var(--others-white);
90
+ }
91
+ }
92
+ }
78
93
  }
79
94
  `;
@@ -76,5 +76,20 @@ export const DocumentStatusStyled = styled.div`
76
76
  }
77
77
  }
78
78
  }
79
+
80
+ &.--is-signed {
81
+ width: fit-content;
82
+ background-color: var(--primary-main-dark-2);
83
+ border-color: var(--primary-main-dark-2);
84
+ color: var(--others-white);
85
+
86
+ svg {
87
+ margin-right: 0.25rem;
88
+
89
+ path {
90
+ fill: var(--others-white);
91
+ }
92
+ }
93
+ }
79
94
  }
80
95
  `
@@ -5,6 +5,7 @@ import { DocumentStatusStyled } from './DocumentStatus.styled'
5
5
  import { Done24px } from '../../../../images/componentsSvg/Done24px'
6
6
  import { NewRelease24p } from '../../../../images/componentsSvg/NewRelease24p'
7
7
  import { RatafiaIcon24px } from '../../../../images/componentsSvg/RatafiaIcon24px'
8
+ import { Sign24px } from '../../../../images/componentsSvg/Sign24px'
8
9
  import { Time24px } from '../../../../images/componentsSvg/Time24px'
9
10
 
10
11
  const DocumentStatus: FC<DocumentStatusProps> = ({
@@ -12,7 +13,8 @@ const DocumentStatus: FC<DocumentStatusProps> = ({
12
13
  statusCompletedText,
13
14
  statusNewText,
14
15
  statusInProgressText,
15
- statusAIReviewedText
16
+ statusAIReviewedText,
17
+ statusSignedText
16
18
  }) => {
17
19
  if (type === 'complete' || type === 'downloaded' || type === 'pdf_processing' || type === 'pdf_generated') {
18
20
  return (
@@ -35,6 +37,13 @@ const DocumentStatus: FC<DocumentStatusProps> = ({
35
37
  </DocumentStatusStyled>
36
38
  )
37
39
  }
40
+ if (type === 'signed') {
41
+ return (
42
+ <DocumentStatusStyled data-testid='document-status' className={'document-status --is-signed'}>
43
+ <Sign24px className='icon' /> <span className={'sans-serif --small'}>{statusSignedText}</span>
44
+ </DocumentStatusStyled>
45
+ )
46
+ }
38
47
  return (
39
48
  <DocumentStatusStyled data-testid='document-status' className={'document-status --in-progress'}>
40
49
  <Time24px className='icon' />
@@ -4,4 +4,5 @@ export interface DocumentStatusProps {
4
4
  statusNewText: string;
5
5
  statusInProgressText: string;
6
6
  statusAIReviewedText: string;
7
+ statusSignedText: string;
7
8
  }
@@ -4,4 +4,5 @@ export interface DocumentStatusProps {
4
4
  statusNewText: string
5
5
  statusInProgressText: string
6
6
  statusAIReviewedText: string
7
+ statusSignedText: string
7
8
  }
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { type RatafiaResultCardProps } from './RatafiaResultCardProps.types';
3
+ export declare const RatafiaResultCard: React.FC<RatafiaResultCardProps>;
4
+ export default RatafiaResultCard;
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { RatafiaResultCardStyled } from './RatafiaResultCard.styled';
3
+ export const RatafiaResultCard = ({ title, content }) => {
4
+ return (_jsxs(RatafiaResultCardStyled, { className: 'ratafia-result-item', children: [_jsxs("div", { className: 'ratafia-result-item__wrapper', children: [_jsx("p", { className: 'sans-serif --medium --bold-weight ratafia-result-item__wrapper__title', children: title }), _jsx("p", { className: 'sans-serif --medium ratafia-result-item__wrapper__content', children: content })] }), _jsx("span", { className: 'ratafia-result-item__divider' })] }));
5
+ };
6
+ export default RatafiaResultCard;
@@ -0,0 +1 @@
1
+ export declare const RatafiaResultCardStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -0,0 +1,39 @@
1
+ import styled from 'styled-components';
2
+ export const RatafiaResultCardStyled = styled.div `
3
+ display: flex;
4
+ flex-direction: column;
5
+ justify-content: center;
6
+ align-items: flex-start;
7
+ align-self: stretch;
8
+
9
+ background: var(--neutral-neutral-6);
10
+
11
+ .ratafia-result-item {
12
+ &__wrapper {
13
+ display: flex;
14
+ flex-direction: column;
15
+
16
+ margin-bottom: 1rem;
17
+ gap: var(--global-gap);
18
+
19
+ &__title {
20
+ color: var(--neutral-neutral-1);
21
+ background: var(--neutral-neutral-6);
22
+ position: sticky;
23
+ top: 0;
24
+
25
+ margin-top: 1rem;
26
+ }
27
+
28
+ &__content {
29
+ color: var(--neutral-neutral-1);
30
+ overflow-y: auto;
31
+ }
32
+ }
33
+ &__divider {
34
+ height: 1px;
35
+ align-self: stretch;
36
+ background: var(--neutral-neutral-4);
37
+ }
38
+ }
39
+ `;
@@ -0,0 +1,40 @@
1
+ import styled from 'styled-components'
2
+
3
+ export const RatafiaResultCardStyled = styled.div`
4
+ display: flex;
5
+ flex-direction: column;
6
+ justify-content: center;
7
+ align-items: flex-start;
8
+ align-self: stretch;
9
+
10
+ background: var(--neutral-neutral-6);
11
+
12
+ .ratafia-result-item {
13
+ &__wrapper {
14
+ display: flex;
15
+ flex-direction: column;
16
+
17
+ margin-bottom: 1rem;
18
+ gap: var(--global-gap);
19
+
20
+ &__title {
21
+ color: var(--neutral-neutral-1);
22
+ background: var(--neutral-neutral-6);
23
+ position: sticky;
24
+ top: 0;
25
+
26
+ margin-top: 1rem;
27
+ }
28
+
29
+ &__content {
30
+ color: var(--neutral-neutral-1);
31
+ overflow-y: auto;
32
+ }
33
+ }
34
+ &__divider {
35
+ height: 1px;
36
+ align-self: stretch;
37
+ background: var(--neutral-neutral-4);
38
+ }
39
+ }
40
+ `
@@ -0,0 +1,18 @@
1
+ import React from 'react'
2
+
3
+ import { type RatafiaResultCardProps } from './RatafiaResultCardProps.types'
4
+ import { RatafiaResultCardStyled } from './RatafiaResultCard.styled'
5
+
6
+ export const RatafiaResultCard: React.FC<RatafiaResultCardProps> = ({ title, content }) => {
7
+ return (
8
+ <RatafiaResultCardStyled className='ratafia-result-item'>
9
+ <div className='ratafia-result-item__wrapper'>
10
+ <p className='sans-serif --medium --bold-weight ratafia-result-item__wrapper__title'>{title}</p>
11
+ <p className='sans-serif --medium ratafia-result-item__wrapper__content'>{content}</p>
12
+ </div>
13
+ <span className='ratafia-result-item__divider'></span>
14
+ </RatafiaResultCardStyled>
15
+ )
16
+ }
17
+
18
+ export default RatafiaResultCard
@@ -0,0 +1,5 @@
1
+ export interface RatafiaResultCardProps {
2
+ id: string;
3
+ title: string;
4
+ content: string;
5
+ }
@@ -0,0 +1,5 @@
1
+ export interface RatafiaResultCardProps {
2
+ id: string
3
+ title: string
4
+ content: string
5
+ }
@@ -0,0 +1,2 @@
1
+ export { default as RatafiaResultCard } from './RatafiaResultCard';
2
+ export { type RatafiaResultCardProps } from './RatafiaResultCardProps.types';
@@ -0,0 +1 @@
1
+ export { default as RatafiaResultCard } from './RatafiaResultCard';
@@ -0,0 +1,2 @@
1
+ export { default as RatafiaResultCard } from './RatafiaResultCard'
2
+ export { type RatafiaResultCardProps } from './RatafiaResultCardProps.types'
@@ -0,0 +1,4 @@
1
+ import { type FC } from 'react';
2
+ import { RatafiaResultTabProps } from './RatafiaResultTabProps.types';
3
+ declare const RatafiaResultTab: FC<RatafiaResultTabProps>;
4
+ export default RatafiaResultTab;
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { RatafiaResultTabStyled } from './RatafiaResultTab.styled';
3
+ const RatafiaResultTab = ({ title, icon, activeIcon, isActive, handleOnClick, dataQa }) => {
4
+ return (_jsxs(RatafiaResultTabStyled, { className: `ratafia-result-tab${isActive ? ' --is-active' : ''}`, onClick: handleOnClick, "data-qa": dataQa, children: [isActive ? (_jsx(_Fragment, { children: icon !== null && _jsx("div", { className: 'ratafia-result-tab__icon', children: activeIcon }) })) : (_jsx(_Fragment, { children: icon !== null && _jsx("div", { className: 'ratafia-result-tab__icon', children: icon }) })), _jsx("p", { className: 'sans-serif --medium ratafia-result-tab__title', children: title })] }));
5
+ };
6
+ export default RatafiaResultTab;
@@ -0,0 +1 @@
1
+ export declare const RatafiaResultTabStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -0,0 +1,38 @@
1
+ import styled from 'styled-components';
2
+ export const RatafiaResultTabStyled = styled.div `
3
+ display: flex;
4
+ padding: 8px;
5
+ justify-content: center;
6
+ align-items: center;
7
+ gap: 0.25rem;
8
+ flex: 1 0 0;
9
+
10
+ border-radius: var(--s-border-radius);
11
+ background: var(--neutral-neutral-6);
12
+
13
+ cursor: default;
14
+ .ratafia-result-tab {
15
+ &__icon {
16
+ width: 20px;
17
+ height: 20px;
18
+ }
19
+ &__title {
20
+ color: var(--neutral-neutral-2);
21
+ font-feature-settings:
22
+ 'liga' off,
23
+ 'clig' off;
24
+ }
25
+ }
26
+ &:hover {
27
+ background: var(--neutral-neutral-4);
28
+ }
29
+ &.--is-active {
30
+ background: var(--primary-main-light-4);
31
+ .ratafia-result-tab {
32
+ &__title {
33
+ color: var(--primary-main-dark-1);
34
+ font-weight: bold;
35
+ }
36
+ }
37
+ }
38
+ `;
@@ -0,0 +1,39 @@
1
+ import styled from 'styled-components'
2
+
3
+ export const RatafiaResultTabStyled = styled.div`
4
+ display: flex;
5
+ padding: 8px;
6
+ justify-content: center;
7
+ align-items: center;
8
+ gap: 0.25rem;
9
+ flex: 1 0 0;
10
+
11
+ border-radius: var(--s-border-radius);
12
+ background: var(--neutral-neutral-6);
13
+
14
+ cursor: default;
15
+ .ratafia-result-tab {
16
+ &__icon {
17
+ width: 20px;
18
+ height: 20px;
19
+ }
20
+ &__title {
21
+ color: var(--neutral-neutral-2);
22
+ font-feature-settings:
23
+ 'liga' off,
24
+ 'clig' off;
25
+ }
26
+ }
27
+ &:hover {
28
+ background: var(--neutral-neutral-4);
29
+ }
30
+ &.--is-active {
31
+ background: var(--primary-main-light-4);
32
+ .ratafia-result-tab {
33
+ &__title {
34
+ color: var(--primary-main-dark-1);
35
+ font-weight: bold;
36
+ }
37
+ }
38
+ }
39
+ `
@@ -0,0 +1,23 @@
1
+ import React, { type FC } from 'react'
2
+
3
+ import { RatafiaResultTabProps } from './RatafiaResultTabProps.types'
4
+ import { RatafiaResultTabStyled } from './RatafiaResultTab.styled'
5
+
6
+ const RatafiaResultTab: FC<RatafiaResultTabProps> = ({ title, icon, activeIcon, isActive, handleOnClick, dataQa }) => {
7
+ return (
8
+ <RatafiaResultTabStyled
9
+ className={`ratafia-result-tab${isActive ? ' --is-active' : ''}`}
10
+ onClick={handleOnClick}
11
+ data-qa={dataQa}
12
+ >
13
+ {isActive ? (
14
+ <>{icon !== null && <div className='ratafia-result-tab__icon'>{activeIcon}</div>}</>
15
+ ) : (
16
+ <>{icon !== null && <div className='ratafia-result-tab__icon'>{icon}</div>}</>
17
+ )}
18
+ <p className='sans-serif --medium ratafia-result-tab__title'>{title}</p>
19
+ </RatafiaResultTabStyled>
20
+ )
21
+ }
22
+
23
+ export default RatafiaResultTab
@@ -0,0 +1,9 @@
1
+ export interface RatafiaResultTabProps {
2
+ id: string;
3
+ title: string;
4
+ icon?: React.ReactNode;
5
+ activeIcon?: React.ReactNode;
6
+ isActive: boolean;
7
+ handleOnClick?: () => void;
8
+ dataQa: string;
9
+ }
@@ -0,0 +1,9 @@
1
+ export interface RatafiaResultTabProps {
2
+ id: string
3
+ title: string
4
+ icon?: React.ReactNode
5
+ activeIcon?: React.ReactNode
6
+ isActive: boolean
7
+ handleOnClick?: () => void
8
+ dataQa: string
9
+ }
@@ -0,0 +1,2 @@
1
+ export { default as RatafiaResultTab } from './RatafiaResultTab';
2
+ export { type RatafiaResultTabProps } from './RatafiaResultTabProps.types';
@@ -0,0 +1 @@
1
+ export { default as RatafiaResultTab } from './RatafiaResultTab';
@@ -0,0 +1,2 @@
1
+ export { default as RatafiaResultTab } from './RatafiaResultTab'
2
+ export { type RatafiaResultTabProps } from './RatafiaResultTabProps.types'
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { type RatafiaReviewResultProps } from './RatafiaReviewResultProps.types';
3
+ export declare const RatafiaReviewResult: React.FC<RatafiaReviewResultProps>;
4
+ export default RatafiaReviewResult;
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { RatafiaReviewResultStyled } from './RatafiaReviewResult.styled';
3
+ export const RatafiaReviewResult = ({ reviewQuestion, reviewPositiveIcon, reviewPositiveText, handleOnClickReviewPositive, reviewPositiveDataQa = true, reviewNegativeIcon, reviewNegativeText, handleOnClickReviewNegative, reviewNegativeDataQa, reviewFeedbackText, review }) => {
4
+ return (_jsx(RatafiaReviewResultStyled, { className: 'ratafia-review-result', children: review === null ? (_jsxs("div", { className: 'ratafia-review-result__review', children: [_jsx("p", { className: 'sans-serif ratafia-review-result__review__question', children: reviewQuestion }), _jsxs("div", { className: 'ratafia-review-result__review__buttons', children: [_jsxs("button", { className: 'ratafia-review-result__review__buttons__item', onClick: handleOnClickReviewPositive, "data-qa": reviewPositiveDataQa, children: [_jsx("div", { className: 'ratafia-review-result__review__buttons__item__icon', children: reviewPositiveIcon }), _jsx("p", { className: 'sans-serif --small ratafia-review-result__review__buttons__item__text positive', children: reviewPositiveText })] }), _jsxs("button", { className: 'ratafia-review-result__review__buttons__item', onClick: handleOnClickReviewNegative, "data-qa": reviewNegativeDataQa, children: [_jsx("div", { className: 'ratafia-review-result__review__buttons__item__icon', children: reviewNegativeIcon }), _jsx("p", { className: 'sans-serif --small ratafia-review-result__review__buttons__item__text negative', children: reviewNegativeText })] })] })] })) : (_jsx("div", { className: 'ratafia-review-result__review', children: _jsx("p", { className: 'sans-serif --small ratafia-review-result__review__question', children: reviewFeedbackText }) })) }));
5
+ };
6
+ export default RatafiaReviewResult;
@@ -0,0 +1 @@
1
+ export declare const RatafiaReviewResultStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
@@ -0,0 +1,55 @@
1
+ import { device } from '../../../globalStyles/breakpoints';
2
+ import styled from 'styled-components';
3
+ export const RatafiaReviewResultStyled = styled.section `
4
+ .ratafia-review-result {
5
+ &__review {
6
+ display: flex;
7
+ justify-content: start;
8
+ align-items: center;
9
+ gap: var(--global-gap);
10
+
11
+ border-radius: var(--s-border-radius);
12
+ background: var(--others-white);
13
+
14
+ &__question {
15
+ color: var(--neutral-neutral-1);
16
+ font-size: 0.75rem;
17
+ @media ${device['portrait-tablets']} {
18
+ font-size: 0.875rem;
19
+ }
20
+ }
21
+
22
+ &__buttons {
23
+ display: flex;
24
+ justify-content: center;
25
+ align-items: center;
26
+ gap: 0.5rem;
27
+
28
+ &__item {
29
+ display: flex;
30
+ padding: 0.25rem 0.5rem;
31
+ justify-content: center;
32
+ align-items: center;
33
+ gap: 0.25rem;
34
+ flex: 1 0 0;
35
+
36
+ border: none;
37
+ border-radius: var(--s-border-radius);
38
+ background: var(--neutral-neutral-6);
39
+
40
+ cursor: pointer;
41
+
42
+ &__icon {
43
+ width: 14px;
44
+ }
45
+ .positive {
46
+ color: var(--primary-main);
47
+ }
48
+ .negative {
49
+ color: var(--error-main);
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
55
+ `;
@@ -0,0 +1,56 @@
1
+ import { device } from '../../../globalStyles/breakpoints'
2
+ import styled from 'styled-components'
3
+
4
+ export const RatafiaReviewResultStyled = styled.section`
5
+ .ratafia-review-result {
6
+ &__review {
7
+ display: flex;
8
+ justify-content: start;
9
+ align-items: center;
10
+ gap: var(--global-gap);
11
+
12
+ border-radius: var(--s-border-radius);
13
+ background: var(--others-white);
14
+
15
+ &__question {
16
+ color: var(--neutral-neutral-1);
17
+ font-size: 0.75rem;
18
+ @media ${device['portrait-tablets']} {
19
+ font-size: 0.875rem;
20
+ }
21
+ }
22
+
23
+ &__buttons {
24
+ display: flex;
25
+ justify-content: center;
26
+ align-items: center;
27
+ gap: 0.5rem;
28
+
29
+ &__item {
30
+ display: flex;
31
+ padding: 0.25rem 0.5rem;
32
+ justify-content: center;
33
+ align-items: center;
34
+ gap: 0.25rem;
35
+ flex: 1 0 0;
36
+
37
+ border: none;
38
+ border-radius: var(--s-border-radius);
39
+ background: var(--neutral-neutral-6);
40
+
41
+ cursor: pointer;
42
+
43
+ &__icon {
44
+ width: 14px;
45
+ }
46
+ .positive {
47
+ color: var(--primary-main);
48
+ }
49
+ .negative {
50
+ color: var(--error-main);
51
+ }
52
+ }
53
+ }
54
+ }
55
+ }
56
+ `
@@ -0,0 +1,56 @@
1
+ import React from 'react'
2
+
3
+ import { type RatafiaReviewResultProps } from './RatafiaReviewResultProps.types'
4
+ import { RatafiaReviewResultStyled } from './RatafiaReviewResult.styled'
5
+
6
+ export const RatafiaReviewResult: React.FC<RatafiaReviewResultProps> = ({
7
+ reviewQuestion,
8
+ reviewPositiveIcon,
9
+ reviewPositiveText,
10
+ handleOnClickReviewPositive,
11
+ reviewPositiveDataQa = true,
12
+ reviewNegativeIcon,
13
+ reviewNegativeText,
14
+ handleOnClickReviewNegative,
15
+ reviewNegativeDataQa,
16
+ reviewFeedbackText,
17
+ review
18
+ }) => {
19
+ return (
20
+ <RatafiaReviewResultStyled className='ratafia-review-result'>
21
+ {review === null ? (
22
+ <div className='ratafia-review-result__review'>
23
+ <p className='sans-serif ratafia-review-result__review__question'>{reviewQuestion}</p>
24
+ <div className='ratafia-review-result__review__buttons'>
25
+ <button
26
+ className='ratafia-review-result__review__buttons__item'
27
+ onClick={handleOnClickReviewPositive}
28
+ data-qa={reviewPositiveDataQa}
29
+ >
30
+ <div className='ratafia-review-result__review__buttons__item__icon'>{reviewPositiveIcon}</div>
31
+ <p className='sans-serif --small ratafia-review-result__review__buttons__item__text positive'>
32
+ {reviewPositiveText}
33
+ </p>
34
+ </button>
35
+ <button
36
+ className='ratafia-review-result__review__buttons__item'
37
+ onClick={handleOnClickReviewNegative}
38
+ data-qa={reviewNegativeDataQa}
39
+ >
40
+ <div className='ratafia-review-result__review__buttons__item__icon'>{reviewNegativeIcon}</div>
41
+ <p className='sans-serif --small ratafia-review-result__review__buttons__item__text negative'>
42
+ {reviewNegativeText}
43
+ </p>
44
+ </button>
45
+ </div>
46
+ </div>
47
+ ) : (
48
+ <div className='ratafia-review-result__review'>
49
+ <p className='sans-serif --small ratafia-review-result__review__question'>{reviewFeedbackText}</p>
50
+ </div>
51
+ )}
52
+ </RatafiaReviewResultStyled>
53
+ )
54
+ }
55
+
56
+ export default RatafiaReviewResult
@@ -0,0 +1,14 @@
1
+ import type { MouseEventHandler } from 'react';
2
+ export interface RatafiaReviewResultProps {
3
+ reviewQuestion: string;
4
+ reviewPositiveIcon?: React.ReactNode;
5
+ reviewPositiveText: string;
6
+ reviewPositiveDataQa: string;
7
+ handleOnClickReviewPositive?: MouseEventHandler;
8
+ reviewNegativeIcon?: React.ReactNode;
9
+ reviewNegativeText: string;
10
+ reviewNegativeDataQa: string;
11
+ handleOnClickReviewNegative?: MouseEventHandler;
12
+ reviewFeedbackText: string;
13
+ review: boolean | null;
14
+ }