@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.
Files changed (122) hide show
  1. package/dist/images/componentsSvg/flags/CAFlag.d.ts +2 -0
  2. package/dist/images/componentsSvg/flags/CAFlag.js +4 -0
  3. package/dist/images/componentsSvg/flags/CAFlag.tsx +34 -0
  4. package/dist/images/componentsSvg/flags/DEFlag.d.ts +2 -0
  5. package/dist/images/componentsSvg/flags/DEFlag.js +4 -0
  6. package/dist/images/componentsSvg/flags/DEFlag.tsx +20 -0
  7. package/dist/src/components/atoms/RatafiaResultCard/RatafiaResultCard.d.ts +4 -0
  8. package/dist/src/components/atoms/RatafiaResultCard/RatafiaResultCard.js +6 -0
  9. package/dist/src/components/atoms/RatafiaResultCard/RatafiaResultCard.styled.d.ts +1 -0
  10. package/dist/src/components/atoms/RatafiaResultCard/RatafiaResultCard.styled.js +39 -0
  11. package/dist/src/components/atoms/RatafiaResultCard/RatafiaResultCard.styled.ts +40 -0
  12. package/dist/src/components/atoms/RatafiaResultCard/RatafiaResultCard.tsx +18 -0
  13. package/dist/src/components/atoms/RatafiaResultCard/RatafiaResultCardProps.types.d.ts +5 -0
  14. package/dist/src/components/atoms/RatafiaResultCard/RatafiaResultCardProps.types.js +1 -0
  15. package/dist/src/components/atoms/RatafiaResultCard/RatafiaResultCardProps.types.ts +5 -0
  16. package/dist/src/components/atoms/RatafiaResultCard/index.d.ts +2 -0
  17. package/dist/src/components/atoms/RatafiaResultCard/index.js +1 -0
  18. package/dist/src/components/atoms/RatafiaResultCard/index.ts +2 -0
  19. package/dist/src/components/atoms/RatafiaResultTab/RatafiaResultTab.d.ts +4 -0
  20. package/dist/src/components/atoms/RatafiaResultTab/RatafiaResultTab.js +6 -0
  21. package/dist/src/components/atoms/RatafiaResultTab/RatafiaResultTab.styled.d.ts +1 -0
  22. package/dist/src/components/atoms/RatafiaResultTab/RatafiaResultTab.styled.js +38 -0
  23. package/dist/src/components/atoms/RatafiaResultTab/RatafiaResultTab.styled.ts +39 -0
  24. package/dist/src/components/atoms/RatafiaResultTab/RatafiaResultTab.tsx +23 -0
  25. package/dist/src/components/atoms/RatafiaResultTab/RatafiaResultTabProps.types.d.ts +9 -0
  26. package/dist/src/components/atoms/RatafiaResultTab/RatafiaResultTabProps.types.js +1 -0
  27. package/dist/src/components/atoms/RatafiaResultTab/RatafiaResultTabProps.types.ts +9 -0
  28. package/dist/src/components/atoms/RatafiaResultTab/index.d.ts +2 -0
  29. package/dist/src/components/atoms/RatafiaResultTab/index.js +1 -0
  30. package/dist/src/components/atoms/RatafiaResultTab/index.ts +2 -0
  31. package/dist/src/components/atoms/RatafiaReviewResult/RatafiaReviewResult.d.ts +4 -0
  32. package/dist/src/components/atoms/RatafiaReviewResult/RatafiaReviewResult.js +6 -0
  33. package/dist/src/components/atoms/RatafiaReviewResult/RatafiaReviewResult.styled.d.ts +1 -0
  34. package/dist/src/components/atoms/RatafiaReviewResult/RatafiaReviewResult.styled.js +55 -0
  35. package/dist/src/components/atoms/RatafiaReviewResult/RatafiaReviewResult.styled.ts +56 -0
  36. package/dist/src/components/atoms/RatafiaReviewResult/RatafiaReviewResult.tsx +56 -0
  37. package/dist/src/components/atoms/RatafiaReviewResult/RatafiaReviewResultProps.types.d.ts +14 -0
  38. package/dist/src/components/atoms/RatafiaReviewResult/RatafiaReviewResultProps.types.js +1 -0
  39. package/dist/src/components/atoms/RatafiaReviewResult/RatafiaReviewResultProps.types.ts +15 -0
  40. package/dist/src/components/atoms/RatafiaReviewResult/index.d.ts +2 -0
  41. package/dist/src/components/atoms/RatafiaReviewResult/index.js +1 -0
  42. package/dist/src/components/atoms/RatafiaReviewResult/index.ts +2 -0
  43. package/dist/src/components/atoms/index.d.ts +3 -0
  44. package/dist/src/components/atoms/index.js +3 -0
  45. package/dist/src/components/atoms/index.ts +3 -0
  46. package/dist/src/components/molecules/KeyFactCardListRatafia/KeyFactCardListRatafia.styled.js +2 -4
  47. package/dist/src/components/molecules/KeyFactCardListRatafia/KeyFactCardListRatafia.styled.ts +2 -4
  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/LanguageSelector/useLanguagesSelector.js +5 -1
  76. package/dist/src/components/organisms/LanguageSelector/useLanguagesSelector.tsx +5 -1
  77. package/dist/src/components/organisms/LayoutRatafia/LayoutRatafia.styled.js +1 -2
  78. package/dist/src/components/organisms/LayoutRatafia/LayoutRatafia.styled.ts +1 -2
  79. package/dist/src/components/organisms/RatafiaLoadingResultContent/RatafiaLoadingResultContent.d.ts +4 -0
  80. package/dist/src/components/organisms/RatafiaLoadingResultContent/RatafiaLoadingResultContent.js +6 -0
  81. package/dist/src/components/organisms/RatafiaLoadingResultContent/RatafiaLoadingResultContent.styled.d.ts +1 -0
  82. package/dist/src/components/organisms/RatafiaLoadingResultContent/RatafiaLoadingResultContent.styled.js +143 -0
  83. package/dist/src/components/organisms/RatafiaLoadingResultContent/RatafiaLoadingResultContent.styled.ts +144 -0
  84. package/dist/src/components/organisms/RatafiaLoadingResultContent/RatafiaLoadingResultContent.tsx +46 -0
  85. package/dist/src/components/organisms/RatafiaLoadingResultContent/RatafiaLoadingResultContentProps.types.d.ts +5 -0
  86. package/dist/src/components/organisms/RatafiaLoadingResultContent/RatafiaLoadingResultContentProps.types.js +1 -0
  87. package/dist/src/components/organisms/RatafiaLoadingResultContent/RatafiaLoadingResultContentProps.types.ts +5 -0
  88. package/dist/src/components/organisms/RatafiaLoadingResultContent/index.d.ts +2 -0
  89. package/dist/src/components/organisms/RatafiaLoadingResultContent/index.js +1 -0
  90. package/dist/src/components/organisms/RatafiaLoadingResultContent/index.ts +2 -0
  91. package/dist/src/components/organisms/RatafiaResultContent/RatafiaResultContent.d.ts +4 -0
  92. package/dist/src/components/organisms/RatafiaResultContent/RatafiaResultContent.js +9 -0
  93. package/dist/src/components/organisms/RatafiaResultContent/RatafiaResultContent.styled.d.ts +1 -0
  94. package/dist/src/components/organisms/RatafiaResultContent/RatafiaResultContent.styled.js +26 -0
  95. package/dist/src/components/organisms/RatafiaResultContent/RatafiaResultContent.styled.ts +27 -0
  96. package/dist/src/components/organisms/RatafiaResultContent/RatafiaResultContent.tsx +26 -0
  97. package/dist/src/components/organisms/RatafiaResultContent/RatafiaResultContentProps.types.d.ts +13 -0
  98. package/dist/src/components/organisms/RatafiaResultContent/RatafiaResultContentProps.types.js +1 -0
  99. package/dist/src/components/organisms/RatafiaResultContent/RatafiaResultContentProps.types.ts +16 -0
  100. package/dist/src/components/organisms/RatafiaResultContent/index.d.ts +3 -0
  101. package/dist/src/components/organisms/RatafiaResultContent/index.js +1 -0
  102. package/dist/src/components/organisms/RatafiaResultContent/index.ts +3 -0
  103. package/dist/src/components/organisms/index.d.ts +2 -0
  104. package/dist/src/components/organisms/index.js +2 -0
  105. package/dist/src/components/organisms/index.ts +2 -0
  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 +6 -2
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const CAFlag: React.FC;
@@ -0,0 +1,4 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ export const CAFlag = () => {
3
+ return (_jsxs("svg", { width: '21', height: '16', viewBox: '0 0 21 16', fill: 'none', xmlns: 'http://www.w3.org/2000/svg', children: [_jsxs("g", { id: 'Flag', children: [_jsxs("g", { clipPath: 'url(#clip0_1667_1471)', children: [_jsx("mask", { id: 'path-1-inside-1_1667_1471', fill: 'white', children: _jsx("path", { d: 'M0 2.5C0 1.39543 0.895431 0.5 2 0.5H19C20.1046 0.5 21 1.39543 21 2.5V13.5C21 14.6046 20.1046 15.5 19 15.5H2C0.89543 15.5 0 14.6046 0 13.5V2.5Z' }) }), _jsx("path", { id: 'Vector', d: 'M4.92516 0.5H16.0716V15.5H4.92188L4.92516 0.5Z', fill: 'white' }), _jsx("path", { id: 'Vector_2', d: 'M-0.646484 0.5H4.92508V15.5H-0.646484V0.5ZM16.0715 0.5H21.643V15.5H16.0748L16.0715 0.5ZM6.59523 7.75L6.15883 7.8875L8.17352 9.575C8.32774 10.0031 8.12102 10.1312 7.98977 10.3562L10.1751 10.0938L10.1226 12.1875L10.5787 12.1781L10.477 10.0969L12.6655 10.3469C12.531 10.075 12.4096 9.93125 12.5343 9.49687L14.5457 7.90312L14.1946 7.77812C13.9059 7.56562 14.3193 6.75938 14.3784 6.25C14.3784 6.25 13.207 6.63438 13.1315 6.43125L12.8296 5.88438L11.7599 7.00313C11.6451 7.03125 11.5959 6.9875 11.5663 6.89375L12.0585 4.55625L11.2776 4.975C11.2076 5.00208 11.1507 4.97917 11.107 4.90625L10.3523 3.46875L9.57789 4.9625C9.51664 5.01458 9.46195 5.02187 9.41383 4.98438L8.66242 4.5875L9.11195 6.90312C9.07586 6.99687 8.99055 7.02188 8.89211 6.97188L7.86836 5.86875C7.73711 6.07188 7.64524 6.40313 7.46805 6.47813C7.29086 6.55312 6.69695 6.3375 6.29992 6.25938C6.43773 6.72188 6.85773 7.49687 6.59523 7.75Z', fill: '#D52B1E' })] }), _jsx("path", { d: 'M0 2.5C0 1.28497 0.984974 0.3 2.2 0.3H18.8C20.015 0.3 21 1.28497 21 2.5C21 1.50589 20.1046 0.7 19 0.7H2C0.895431 0.7 0 1.50589 0 2.5ZM21 13.5C21 14.715 20.015 15.7 18.8 15.7H2.2C0.984974 15.7 0 14.715 0 13.5C0 14.4941 0.895431 15.3 2 15.3H19C20.1046 15.3 21 14.4941 21 13.5ZM0 15.5V0.5V15.5ZM21 0.5V15.5V0.5Z', fill: '#DBE1E5', mask: 'url(#path-1-inside-1_1667_1471)' })] }), _jsx("defs", { children: _jsx("clipPath", { id: 'clip0_1667_1471', children: _jsx("path", { d: 'M0 2.5C0 1.39543 0.895431 0.5 2 0.5H19C20.1046 0.5 21 1.39543 21 2.5V13.5C21 14.6046 20.1046 15.5 19 15.5H2C0.89543 15.5 0 14.6046 0 13.5V2.5Z', fill: 'white' }) }) })] }));
4
+ };
@@ -0,0 +1,34 @@
1
+ import React from 'react'
2
+
3
+ export const CAFlag: React.FC = () => {
4
+ return (
5
+ <svg width='21' height='16' viewBox='0 0 21 16' fill='none' xmlns='http://www.w3.org/2000/svg'>
6
+ <g id='Flag'>
7
+ <g clipPath='url(#clip0_1667_1471)'>
8
+ <mask id='path-1-inside-1_1667_1471' fill='white'>
9
+ <path d='M0 2.5C0 1.39543 0.895431 0.5 2 0.5H19C20.1046 0.5 21 1.39543 21 2.5V13.5C21 14.6046 20.1046 15.5 19 15.5H2C0.89543 15.5 0 14.6046 0 13.5V2.5Z' />
10
+ </mask>
11
+ <path id='Vector' d='M4.92516 0.5H16.0716V15.5H4.92188L4.92516 0.5Z' fill='white' />
12
+ <path
13
+ id='Vector_2'
14
+ d='M-0.646484 0.5H4.92508V15.5H-0.646484V0.5ZM16.0715 0.5H21.643V15.5H16.0748L16.0715 0.5ZM6.59523 7.75L6.15883 7.8875L8.17352 9.575C8.32774 10.0031 8.12102 10.1312 7.98977 10.3562L10.1751 10.0938L10.1226 12.1875L10.5787 12.1781L10.477 10.0969L12.6655 10.3469C12.531 10.075 12.4096 9.93125 12.5343 9.49687L14.5457 7.90312L14.1946 7.77812C13.9059 7.56562 14.3193 6.75938 14.3784 6.25C14.3784 6.25 13.207 6.63438 13.1315 6.43125L12.8296 5.88438L11.7599 7.00313C11.6451 7.03125 11.5959 6.9875 11.5663 6.89375L12.0585 4.55625L11.2776 4.975C11.2076 5.00208 11.1507 4.97917 11.107 4.90625L10.3523 3.46875L9.57789 4.9625C9.51664 5.01458 9.46195 5.02187 9.41383 4.98438L8.66242 4.5875L9.11195 6.90312C9.07586 6.99687 8.99055 7.02188 8.89211 6.97188L7.86836 5.86875C7.73711 6.07188 7.64524 6.40313 7.46805 6.47813C7.29086 6.55312 6.69695 6.3375 6.29992 6.25938C6.43773 6.72188 6.85773 7.49687 6.59523 7.75Z'
15
+ fill='#D52B1E'
16
+ />
17
+ </g>
18
+ <path
19
+ d='M0 2.5C0 1.28497 0.984974 0.3 2.2 0.3H18.8C20.015 0.3 21 1.28497 21 2.5C21 1.50589 20.1046 0.7 19 0.7H2C0.895431 0.7 0 1.50589 0 2.5ZM21 13.5C21 14.715 20.015 15.7 18.8 15.7H2.2C0.984974 15.7 0 14.715 0 13.5C0 14.4941 0.895431 15.3 2 15.3H19C20.1046 15.3 21 14.4941 21 13.5ZM0 15.5V0.5V15.5ZM21 0.5V15.5V0.5Z'
20
+ fill='#DBE1E5'
21
+ mask='url(#path-1-inside-1_1667_1471)'
22
+ />
23
+ </g>
24
+ <defs>
25
+ <clipPath id='clip0_1667_1471'>
26
+ <path
27
+ d='M0 2.5C0 1.39543 0.895431 0.5 2 0.5H19C20.1046 0.5 21 1.39543 21 2.5V13.5C21 14.6046 20.1046 15.5 19 15.5H2C0.89543 15.5 0 14.6046 0 13.5V2.5Z'
28
+ fill='white'
29
+ />
30
+ </clipPath>
31
+ </defs>
32
+ </svg>
33
+ )
34
+ }
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const DEFlag: React.FC;
@@ -0,0 +1,4 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ export const DEFlag = () => {
3
+ return (_jsxs("svg", { width: '21', height: '16', viewBox: '0 0 21 16', fill: 'none', xmlns: 'http://www.w3.org/2000/svg', children: [_jsx("g", { id: 'Flag', children: _jsxs("g", { clipPath: 'url(#clip0_1607_4659)', children: [_jsx("path", { id: 'Vector', d: 'M0 10.5H21V15.5H0V10.5Z', fill: '#FFCC00' }), _jsx("path", { id: 'Vector_2', d: 'M0 0.5H21V5.5H0V0.5Z', fill: '#000001' }), _jsx("path", { id: 'Vector_3', d: 'M0 5.5H21V10.5H0V5.5Z', fill: '#FF0000' })] }) }), _jsx("defs", { children: _jsx("clipPath", { id: 'clip0_1607_4659', children: _jsx("rect", { y: '0.5', width: '21', height: '15', rx: '2', fill: 'white' }) }) })] }));
4
+ };
@@ -0,0 +1,20 @@
1
+ import React from 'react'
2
+
3
+ export const DEFlag: React.FC = () => {
4
+ return (
5
+ <svg width='21' height='16' viewBox='0 0 21 16' fill='none' xmlns='http://www.w3.org/2000/svg'>
6
+ <g id='Flag'>
7
+ <g clipPath='url(#clip0_1607_4659)'>
8
+ <path id='Vector' d='M0 10.5H21V15.5H0V10.5Z' fill='#FFCC00' />
9
+ <path id='Vector_2' d='M0 0.5H21V5.5H0V0.5Z' fill='#000001' />
10
+ <path id='Vector_3' d='M0 5.5H21V10.5H0V5.5Z' fill='#FF0000' />
11
+ </g>
12
+ </g>
13
+ <defs>
14
+ <clipPath id='clip0_1607_4659'>
15
+ <rect y='0.5' width='21' height='15' rx='2' fill='white' />
16
+ </clipPath>
17
+ </defs>
18
+ </svg>
19
+ )
20
+ }
@@ -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
+ }
@@ -0,0 +1,15 @@
1
+ import type { MouseEventHandler } from 'react'
2
+
3
+ export interface RatafiaReviewResultProps {
4
+ reviewQuestion: string
5
+ reviewPositiveIcon?: React.ReactNode
6
+ reviewPositiveText: string
7
+ reviewPositiveDataQa: string
8
+ handleOnClickReviewPositive?: MouseEventHandler
9
+ reviewNegativeIcon?: React.ReactNode
10
+ reviewNegativeText: string
11
+ reviewNegativeDataQa: string
12
+ handleOnClickReviewNegative?: MouseEventHandler
13
+ reviewFeedbackText: string
14
+ review: boolean | null
15
+ }
@@ -0,0 +1,2 @@
1
+ export { default as RatafiaReviewResult } from './RatafiaReviewResult';
2
+ export { type RatafiaReviewResultProps } from './RatafiaReviewResultProps.types';
@@ -0,0 +1 @@
1
+ export { default as RatafiaReviewResult } from './RatafiaReviewResult';
@@ -0,0 +1,2 @@
1
+ export { default as RatafiaReviewResult } from './RatafiaReviewResult'
2
+ export { type RatafiaReviewResultProps } from './RatafiaReviewResultProps.types'
@@ -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';
@@ -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';