@npm_leadtech/legal-lib-components 5.39.12 → 5.40.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 (75) hide show
  1. package/dist/css/styles.css +203 -95
  2. package/dist/images/svg/jumbo-bckground-l.svg +20 -0
  3. package/dist/images/svg/jumbo-bckground-m.svg +15 -0
  4. package/dist/images/svg/jumbo-bckground-xxl.svg +20 -0
  5. package/dist/src/components/atoms/Radio/Radio.d.ts +2 -2
  6. package/dist/src/components/atoms/Radio/Radio.js +15 -16
  7. package/dist/src/components/atoms/Radio/Radio.scss +183 -105
  8. package/dist/src/components/atoms/Radio/Radio.tsx +34 -38
  9. package/dist/src/components/atoms/Radio/RadioProps.types.d.ts +3 -9
  10. package/dist/src/components/atoms/Radio/RadioProps.types.js +1 -6
  11. package/dist/src/components/atoms/Radio/RadioProps.types.ts +3 -10
  12. package/dist/src/components/atoms/Radio/index.d.ts +1 -1
  13. package/dist/src/components/atoms/Radio/index.js +0 -1
  14. package/dist/src/components/atoms/Radio/index.ts +1 -1
  15. package/dist/src/components/atoms/TagRatafiaItem/TagRatafiaItem.js +7 -2
  16. package/dist/src/components/atoms/TagRatafiaItem/TagRatafiaItem.styled.js +15 -0
  17. package/dist/src/components/atoms/TagRatafiaItem/TagRatafiaItem.styled.ts +15 -0
  18. package/dist/src/components/atoms/TagRatafiaItem/TagRatafiaItem.tsx +11 -4
  19. package/dist/src/components/atoms/TagRatafiaItem/TagRatafiaItemProps.types.d.ts +1 -0
  20. package/dist/src/components/atoms/TagRatafiaItem/TagRatafiaItemProps.types.ts +1 -0
  21. package/dist/src/components/molecules/Feedback/Feedback.js +1 -1
  22. package/dist/src/components/molecules/Feedback/Feedback.tsx +2 -2
  23. package/dist/src/components/molecules/Feedback/FeedbackProps.types.d.ts +2 -2
  24. package/dist/src/components/molecules/Feedback/FeedbackProps.types.ts +2 -2
  25. package/dist/src/components/molecules/RatafiaSubscriptionCard/RatafiaSubscriptionCard.js +2 -2
  26. package/dist/src/components/molecules/RatafiaSubscriptionCard/RatafiaSubscriptionCard.tsx +4 -6
  27. package/dist/src/components/molecules/RatafiaSubscriptionCard/RatafiaSubscriptionCardProps.types.d.ts +1 -3
  28. package/dist/src/components/molecules/RatafiaSubscriptionCard/RatafiaSubscriptionCardProps.types.ts +1 -3
  29. package/dist/src/components/molecules/TagsRatafiaList/TagsRatafiaList.js +2 -2
  30. package/dist/src/components/molecules/TagsRatafiaList/TagsRatafiaList.tsx +2 -2
  31. package/dist/src/components/molecules/TagsRatafiaList/TagsRatafiaListProps.types.d.ts +1 -0
  32. package/dist/src/components/molecules/TagsRatafiaList/TagsRatafiaListProps.types.ts +1 -0
  33. package/dist/src/components/organisms/FaqGroup/FaqGroup.styled.js +5 -0
  34. package/dist/src/components/organisms/FaqGroup/FaqGroup.styled.ts +5 -0
  35. package/dist/src/components/organisms/JumbotronEsignatureContent/JumbotronEsignatureContent.d.ts +4 -0
  36. package/dist/src/components/organisms/JumbotronEsignatureContent/JumbotronEsignatureContent.js +7 -0
  37. package/dist/src/components/organisms/JumbotronEsignatureContent/JumbotronEsignatureContent.styled.d.ts +1 -0
  38. package/dist/src/components/organisms/JumbotronEsignatureContent/JumbotronEsignatureContent.styled.js +28 -0
  39. package/dist/src/components/organisms/JumbotronEsignatureContent/JumbotronEsignatureContent.styled.ts +29 -0
  40. package/dist/src/components/organisms/JumbotronEsignatureContent/JumbotronEsignatureContent.tsx +19 -0
  41. package/dist/src/components/organisms/JumbotronEsignatureContent/JumbotronEsignatureContentProps.types.d.ts +7 -0
  42. package/dist/src/components/organisms/JumbotronEsignatureContent/JumbotronEsignatureContentProps.types.js +1 -0
  43. package/dist/src/components/organisms/JumbotronEsignatureContent/JumbotronEsignatureContentProps.types.ts +8 -0
  44. package/dist/src/components/organisms/JumbotronEsignatureContent/index.d.ts +2 -0
  45. package/dist/src/components/organisms/JumbotronEsignatureContent/index.js +1 -0
  46. package/dist/src/components/organisms/JumbotronEsignatureContent/index.ts +2 -0
  47. package/dist/src/components/organisms/JumbotronRatafiaContent/JumbotronRatafiaContent.js +2 -2
  48. package/dist/src/components/organisms/JumbotronRatafiaContent/JumbotronRatafiaContent.styled.js +25 -0
  49. package/dist/src/components/organisms/JumbotronRatafiaContent/JumbotronRatafiaContent.styled.ts +25 -0
  50. package/dist/src/components/organisms/JumbotronRatafiaContent/JumbotronRatafiaContent.tsx +4 -4
  51. package/dist/src/components/organisms/JumbotronRatafiaContent/JumbotronRatafiaContentProps.types.d.ts +2 -1
  52. package/dist/src/components/organisms/JumbotronRatafiaContent/JumbotronRatafiaContentProps.types.ts +2 -1
  53. package/dist/src/components/organisms/index.d.ts +1 -0
  54. package/dist/src/components/organisms/index.js +1 -0
  55. package/dist/src/components/organisms/index.ts +1 -0
  56. package/dist/src/components/pages/EsignatureLandingPage/EsignatureLandingPage.d.ts +3 -0
  57. package/dist/src/components/pages/EsignatureLandingPage/EsignatureLandingPage.js +5 -0
  58. package/dist/src/components/pages/EsignatureLandingPage/EsignatureLandingPage.tsx +23 -0
  59. package/dist/src/components/pages/EsignatureLandingPage/EsignatureLandingPageProps.types.d.ts +7 -0
  60. package/dist/src/components/pages/EsignatureLandingPage/EsignatureLandingPageProps.types.js +1 -0
  61. package/dist/src/components/pages/EsignatureLandingPage/EsignatureLandingPageProps.types.ts +8 -0
  62. package/dist/src/components/pages/EsignatureLandingPage/index.d.ts +2 -0
  63. package/dist/src/components/pages/EsignatureLandingPage/index.js +2 -0
  64. package/dist/src/components/pages/EsignatureLandingPage/index.ts +2 -0
  65. package/dist/src/components/pages/index.d.ts +1 -0
  66. package/dist/src/components/pages/index.js +1 -0
  67. package/dist/src/components/pages/index.ts +1 -0
  68. package/dist/src/components/sections/JumbotronRatafiaSection/JumbotronRatafiaSection.js +17 -2
  69. package/dist/src/components/sections/JumbotronRatafiaSection/JumbotronRatafiaSection.styled.js +22 -0
  70. package/dist/src/components/sections/JumbotronRatafiaSection/JumbotronRatafiaSection.styled.ts +22 -0
  71. package/dist/src/components/sections/JumbotronRatafiaSection/JumbotronRatafiaSection.tsx +32 -6
  72. package/dist/src/components/sections/JumbotronRatafiaSection/JumbotronRatafiaSectionProps.types.d.ts +1 -0
  73. package/dist/src/components/sections/JumbotronRatafiaSection/JumbotronRatafiaSectionProps.types.ts +1 -0
  74. package/dist/tsconfig.build.tsbuildinfo +1 -1
  75. package/package.json +2 -1
@@ -1768,61 +1768,194 @@ h2.react-datepicker__current-month {
1768
1768
  height: 1em;
1769
1769
  vertical-align: -0.125em;
1770
1770
  }
1771
- .e-radio .label {
1772
- color: var(--neutral-neutral-1);
1773
- margin-bottom: 1rem;
1774
- display: block;
1775
- }
1776
- .e-radio.default .e-radio__inner {
1777
- display: flex;
1778
- flex-direction: column;
1779
- gap: 1rem;
1780
- }
1781
- .e-radio.default .e-radio__inner .radio-item-container .e-radio-label {
1782
- display: flex;
1783
- align-items: center;
1784
- gap: 0.5rem;
1785
- }
1786
- .e-radio.default .e-radio__inner .radio-item-container .e-radio-label .radio-item-input {
1787
- visibility: hidden;
1788
- }
1789
- .e-radio.default .e-radio__inner .radio-item-container .e-radio-label input[type=radio]:after {
1790
- width: 16px;
1791
- height: 16px;
1792
- border-radius: 16px;
1793
- top: -4px;
1794
- left: -2px;
1795
- position: relative;
1796
- background-color: var(--others-white);
1797
- content: "";
1798
- display: inline-block;
1799
- visibility: visible;
1800
- border: 1px solid var(--neutral-neutral-1);
1801
- cursor: pointer;
1802
- }
1803
- .e-radio.default .e-radio__inner .radio-item-container .e-radio-label .e-radio-label__label {
1804
- cursor: pointer;
1805
- }
1806
- .e-radio.default .e-radio__inner .radio-item-container.active .e-radio-label input[type=radio]:after {
1807
- border: 5px solid var(--primary-main);
1808
- }
1809
- .e-radio.default .e-radio__inner .radio-item-container.active .e-radio-label .e-radio-label__label {
1810
- color: var(--primary-main);
1811
- }
1812
- .e-radio.default .e-radio__inner .radio-item-container:hover .e-radio-label input[type=radio]:after {
1813
- background-color: var(--primary-main-light-5);
1814
- }
1815
- @media (min-width: 575px) {
1816
- .e-radio.default .e-radio__inner {
1817
- gap: 0.5rem;
1818
- }
1819
- }
1820
1771
  .e-radio label:first-child:not(.e-radio-label) {
1821
1772
  font-weight: bold;
1822
1773
  }
1823
1774
  .e-radio .radio-item-container {
1824
1775
  width: 100%;
1825
1776
  }
1777
+ @media (max-width: 575px) {
1778
+ .e-radio.--regular .e-radio__inner {
1779
+ display: flex;
1780
+ flex-flow: row wrap;
1781
+ width: 100%;
1782
+ margin-left: 1.5rem;
1783
+ }
1784
+ .e-radio.--regular .e-radio__inner label {
1785
+ margin-bottom: 0.25rem;
1786
+ flex-basis: 100%;
1787
+ display: flex;
1788
+ align-items: center;
1789
+ color: var(--neutral-main);
1790
+ font-size: 16px;
1791
+ position: relative;
1792
+ cursor: pointer;
1793
+ width: 100%;
1794
+ }
1795
+ .e-radio.--regular input {
1796
+ position: absolute;
1797
+ left: -9999px;
1798
+ }
1799
+ .e-radio.--regular input:not(:checked):hover + label:before {
1800
+ background-color: var(--primary-main-light-5);
1801
+ }
1802
+ .e-radio.--regular input:checked:hover + label:before {
1803
+ background-color: var(--primary-main);
1804
+ }
1805
+ .e-radio.--regular input:checked + label {
1806
+ color: var(--primary-main);
1807
+ text-shadow: -0.02ex 0 var(--primary-main), 0.02ex 0 var(--primary-main);
1808
+ }
1809
+ .e-radio.--regular input:checked + label:before {
1810
+ content: "";
1811
+ position: absolute;
1812
+ top: 2px;
1813
+ left: -23px;
1814
+ height: 1.25rem;
1815
+ width: 1.25rem;
1816
+ background-color: var(--primary-main);
1817
+ border: 1px solid var(--primary-main);
1818
+ border-radius: 50%;
1819
+ box-sizing: border-box;
1820
+ }
1821
+ .e-radio.--regular input:checked + label:after {
1822
+ content: "";
1823
+ position: absolute;
1824
+ top: 0.5rem;
1825
+ left: -17px;
1826
+ display: block;
1827
+ height: 0.5rem;
1828
+ width: 0.5rem;
1829
+ background: currentColor;
1830
+ border-radius: 50%;
1831
+ opacity: 1;
1832
+ transform: scale(1);
1833
+ color: #fff;
1834
+ transition: all 0.1s;
1835
+ }
1836
+ .e-radio.--regular input + label {
1837
+ cursor: pointer;
1838
+ font-size: 16px;
1839
+ }
1840
+ .e-radio.--regular input + label:before {
1841
+ content: "";
1842
+ position: absolute;
1843
+ left: -23px;
1844
+ top: 2px;
1845
+ height: 1.25rem;
1846
+ width: 1.25rem;
1847
+ border-radius: 50%;
1848
+ background-color: transparent;
1849
+ border: 1px solid var(--neutral-main);
1850
+ box-sizing: border-box;
1851
+ }
1852
+ .e-radio.--regular input + label:after {
1853
+ position: absolute;
1854
+ top: 0.5rem;
1855
+ left: -17px;
1856
+ display: block;
1857
+ height: 0.5rem;
1858
+ width: 0.5rem;
1859
+ opacity: 0;
1860
+ transform: scale(0);
1861
+ color: var(--others-white);
1862
+ transition: all 0.1s;
1863
+ content: "";
1864
+ bottom: 0.5rem;
1865
+ border-radius: 50%;
1866
+ }
1867
+ }
1868
+ @media (min-width: 575px) {
1869
+ .e-radio.--regular:not(.--icons) .e-radio__inner {
1870
+ display: flex;
1871
+ flex-flow: row wrap;
1872
+ width: 100%;
1873
+ margin-left: 1.5rem;
1874
+ }
1875
+ .e-radio.--regular:not(.--icons) .e-radio__inner label {
1876
+ margin-bottom: 0.25rem;
1877
+ flex-basis: 100%;
1878
+ display: flex;
1879
+ align-items: center;
1880
+ color: var(--neutral-main);
1881
+ font-size: 16px;
1882
+ position: relative;
1883
+ cursor: pointer;
1884
+ width: 100%;
1885
+ }
1886
+ .e-radio.--regular:not(.--icons) input {
1887
+ position: absolute;
1888
+ left: -9999px;
1889
+ }
1890
+ .e-radio.--regular:not(.--icons) input:not(:checked):hover + label:before {
1891
+ background-color: var(--primary-main-light-5);
1892
+ }
1893
+ .e-radio.--regular:not(.--icons) input:checked:hover + label:before {
1894
+ background-color: var(--primary-main);
1895
+ }
1896
+ .e-radio.--regular:not(.--icons) input:checked + label {
1897
+ color: var(--primary-main);
1898
+ text-shadow: -0.02ex 0 var(--primary-main), 0.02ex 0 var(--primary-main);
1899
+ }
1900
+ .e-radio.--regular:not(.--icons) input:checked + label:before {
1901
+ content: "";
1902
+ position: absolute;
1903
+ top: 2px;
1904
+ left: -23px;
1905
+ height: 1.25rem;
1906
+ width: 1.25rem;
1907
+ background-color: var(--primary-main);
1908
+ border: 1px solid var(--primary-main);
1909
+ border-radius: 50%;
1910
+ box-sizing: border-box;
1911
+ }
1912
+ .e-radio.--regular:not(.--icons) input:checked + label:after {
1913
+ content: "";
1914
+ position: absolute;
1915
+ top: 0.5rem;
1916
+ left: -17px;
1917
+ display: block;
1918
+ height: 0.5rem;
1919
+ width: 0.5rem;
1920
+ background: currentColor;
1921
+ border-radius: 50%;
1922
+ opacity: 1;
1923
+ transform: scale(1);
1924
+ color: #fff;
1925
+ transition: all 0.1s;
1926
+ }
1927
+ .e-radio.--regular:not(.--icons) input + label {
1928
+ cursor: pointer;
1929
+ font-size: 16px;
1930
+ }
1931
+ .e-radio.--regular:not(.--icons) input + label:before {
1932
+ content: "";
1933
+ position: absolute;
1934
+ left: -23px;
1935
+ top: 2px;
1936
+ height: 1.25rem;
1937
+ width: 1.25rem;
1938
+ border-radius: 50%;
1939
+ background-color: transparent;
1940
+ border: 1px solid var(--neutral-main);
1941
+ box-sizing: border-box;
1942
+ }
1943
+ .e-radio.--regular:not(.--icons) input + label:after {
1944
+ position: absolute;
1945
+ top: 0.5rem;
1946
+ left: -17px;
1947
+ display: block;
1948
+ height: 0.5rem;
1949
+ width: 0.5rem;
1950
+ opacity: 0;
1951
+ transform: scale(0);
1952
+ color: var(--others-white);
1953
+ transition: all 0.1s;
1954
+ content: "";
1955
+ bottom: 0.5rem;
1956
+ border-radius: 50%;
1957
+ }
1958
+ }
1826
1959
  @media (max-width: 575px) {
1827
1960
  .e-radio.--tabs .e-radio__inner {
1828
1961
  display: flex;
@@ -1939,52 +2072,6 @@ h2.react-datepicker__current-month {
1939
2072
  width: 100%;
1940
2073
  }
1941
2074
  }
1942
- @media (max-width: 575px) {
1943
- .e-radio.--icons .e-radio__inner {
1944
- display: flex;
1945
- flex-direction: column;
1946
- gap: 1rem;
1947
- }
1948
- .e-radio.--icons .e-radio__inner .radio-item-container .e-radio-label {
1949
- display: flex;
1950
- align-items: center;
1951
- gap: 0.5rem;
1952
- }
1953
- .e-radio.--icons .e-radio__inner .radio-item-container .e-radio-label .radio-item-input {
1954
- visibility: hidden;
1955
- }
1956
- .e-radio.--icons .e-radio__inner .radio-item-container .e-radio-label input[type=radio]:after {
1957
- width: 16px;
1958
- height: 16px;
1959
- border-radius: 16px;
1960
- top: -4px;
1961
- left: -2px;
1962
- position: relative;
1963
- background-color: var(--others-white);
1964
- content: "";
1965
- display: inline-block;
1966
- visibility: visible;
1967
- border: 1px solid var(--neutral-neutral-1);
1968
- cursor: pointer;
1969
- }
1970
- .e-radio.--icons .e-radio__inner .radio-item-container .e-radio-label .e-radio-label__label {
1971
- cursor: pointer;
1972
- }
1973
- .e-radio.--icons .e-radio__inner .radio-item-container.active .e-radio-label input[type=radio]:after {
1974
- border: 5px solid var(--primary-main);
1975
- }
1976
- .e-radio.--icons .e-radio__inner .radio-item-container.active .e-radio-label .e-radio-label__label {
1977
- color: var(--primary-main);
1978
- }
1979
- .e-radio.--icons .e-radio__inner .radio-item-container:hover .e-radio-label input[type=radio]:after {
1980
- background-color: var(--primary-main-light-5);
1981
- }
1982
- }
1983
- @media (max-width: 575px) and (min-width: 575px) {
1984
- .e-radio.--icons .e-radio__inner {
1985
- gap: 0.5rem;
1986
- }
1987
- }
1988
2075
  .e-radio.--icons .radio-icon {
1989
2076
  display: none;
1990
2077
  }
@@ -2031,6 +2118,10 @@ h2.react-datepicker__current-month {
2031
2118
  margin-right: 1rem;
2032
2119
  }
2033
2120
  }
2121
+ .e-radio.--is-invalid.--regular input + label:before,
2122
+ .e-radio.--group-invalid.--regular input + label:before {
2123
+ border-color: var(--error-main);
2124
+ }
2034
2125
  .e-radio.--is-invalid.--tabs .e-radio__inner,
2035
2126
  .e-radio.--is-invalid.--group-invalid .e-radio__inner,
2036
2127
  .e-radio.--group-invalid.--tabs .e-radio__inner,
@@ -2049,6 +2140,9 @@ h2.react-datepicker__current-month {
2049
2140
  .e-radio.--group-invalid.--group-invalid .e-radio__inner label:last-child label {
2050
2141
  border-right: none;
2051
2142
  }
2143
+ .radio-group__label {
2144
+ color: var(--neutral-neutral-1);
2145
+ }
2052
2146
  .e-radio.radio--small.--tabs input + label {
2053
2147
  font-size: 0.875rem;
2054
2148
  padding: 0.75rem;
@@ -2057,6 +2151,20 @@ h2.react-datepicker__current-month {
2057
2151
  margin-top: 0;
2058
2152
  margin-bottom: 0;
2059
2153
  }
2154
+ .e-radio.radio--narrow.--regular .e-radio__inner {
2155
+ margin-top: 0.5rem;
2156
+ }
2157
+ .e-radio.--regular.radio--regular--bare .e-radio__inner {
2158
+ display: inline-block;
2159
+ margin-right: auto;
2160
+ text-align: left;
2161
+ width: auto;
2162
+ }
2163
+ .e-radio.--regular.radio--regular--bare .e-radio-label,
2164
+ .e-radio.--regular.radio--regular--bare .e-radio-label__label {
2165
+ display: block;
2166
+ margin-bottom: 0.75rem;
2167
+ }
2060
2168
  .tippy-box {
2061
2169
  background-color: var(--others-white);
2062
2170
  border-radius: var(--global-border-radius);
@@ -0,0 +1,20 @@
1
+ <svg width="1024" height="504" viewBox="0 0 1024 504" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g clip-path="url(#clip0_8073_6075)">
3
+ <rect width="1024" height="504" fill="#F3F7FA"/>
4
+ <path d="M1084 571C1084 584.807 1072.81 596 1059 596C1045.19 596 1034 584.807 1034 571H1084ZM895 67V98.5H845V67H895ZM964.5 168H996V218H964.5V168ZM996 344H933V294H996V344ZM933 420H964.5V470H933V420ZM1084 539.5V571H1034V539.5H1084ZM964.5 420C1030.5 420 1084 473.502 1084 539.5H1034C1034 501.116 1002.88 470 964.5 470V420ZM895 382C895 402.987 912.013 420 933 420V470C884.399 470 845 430.601 845 382L895 382ZM933 344C912.013 344 895 361.013 895 382L845 382C845 333.399 884.399 294 933 294V344ZM1084 256C1084 304.601 1044.6 344 996 344V294C1016.99 294 1034 276.987 1034 256H1084ZM996 168C1044.6 168 1084 207.399 1084 256H1034C1034 235.013 1016.99 218 996 218V168ZM895 98.5C895 136.884 926.116 168 964.5 168V218C898.502 218 845 164.498 845 98.5H895Z" fill="url(#paint0_linear_8073_6075)"/>
5
+ <path d="M-303.778 310.488C-311.456 321.964 -308.378 337.491 -296.902 345.169C-285.427 352.847 -269.9 349.769 -262.222 338.293L-303.778 310.488ZM120.481 13.2684L102.498 40.1453L144.053 67.9503L162.037 41.0734L120.481 13.2684ZM7.24905 59.0281L-18.2343 41.9772L-46.0394 83.5329L-20.556 100.584L7.24905 59.0281ZM-116.108 188.253L-65.1414 222.355L-37.3364 180.8L-88.3031 146.698L-116.108 188.253ZM-107.405 285.52L-132.888 268.469L-160.693 310.025L-135.21 327.076L-107.405 285.52ZM-297.498 301.103L-303.778 310.488L-262.222 338.293L-255.942 328.908L-297.498 301.103ZM-132.888 268.469C-187.356 232.025 -261.054 246.635 -297.498 301.103L-255.942 328.908C-234.854 297.391 -192.21 288.937 -160.693 310.025L-132.888 268.469ZM-135.21 327.076C-94.8171 354.103 -40.1623 343.268 -13.1351 302.875L-54.6909 275.069C-66.3617 292.512 -89.9626 297.191 -107.405 285.52L-135.21 327.076ZM-65.1414 222.355C-47.699 234.026 -43.0201 257.627 -54.6909 275.069L-13.1351 302.875C13.892 262.481 3.05668 207.827 -37.3364 180.8L-65.1414 222.355ZM-140.309 66.1783C-167.336 106.571 -156.501 161.226 -116.108 188.253L-88.3031 146.698C-105.746 135.027 -110.424 111.426 -98.7536 93.9834L-140.309 66.1783ZM-18.2343 41.9772C-58.6273 14.9501 -113.282 25.7853 -140.309 66.1783L-98.7536 93.9834C-87.0828 76.5409 -63.4818 71.8621 -46.0394 83.5329L-18.2343 41.9772ZM102.498 40.1453C81.4098 71.6618 38.7656 80.1159 7.24905 59.0281L-20.556 100.584C33.9111 137.028 107.609 122.417 144.053 67.9503L102.498 40.1453Z" fill="url(#paint1_linear_8073_6075)"/>
6
+ </g>
7
+ <defs>
8
+ <linearGradient id="paint0_linear_8073_6075" x1="964.5" y1="570.911" x2="964.5" y2="67.0001" gradientUnits="userSpaceOnUse">
9
+ <stop stop-color="#02374A" stop-opacity="0.2"/>
10
+ <stop offset="1" stop-color="#02374A" stop-opacity="0"/>
11
+ </linearGradient>
12
+ <linearGradient id="paint1_linear_8073_6075" x1="-216.81" y1="393.894" x2="63.4148" y2="-24.9138" gradientUnits="userSpaceOnUse">
13
+ <stop stop-color="#02374A" stop-opacity="0.2"/>
14
+ <stop offset="1" stop-color="#02374A" stop-opacity="0"/>
15
+ </linearGradient>
16
+ <clipPath id="clip0_8073_6075">
17
+ <rect width="1024" height="504" fill="white"/>
18
+ </clipPath>
19
+ </defs>
20
+ </svg>
@@ -0,0 +1,15 @@
1
+ <svg width="768" height="464" viewBox="0 0 768 464" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g clip-path="url(#clip0_8073_6076)">
3
+ <rect width="768" height="464" fill="#F3F7FA"/>
4
+ <path d="M832 539C832 552.807 820.807 564 807 564C793.193 564 782 552.807 782 539H832ZM643 35V66.5H593V35H643ZM712.5 136H744V186H712.5V136ZM744 312H681V262H744V312ZM681 388H712.5V438H681V388ZM832 507.5V539H782V507.5H832ZM712.5 388C778.498 388 832 441.502 832 507.5H782C782 469.116 750.884 438 712.5 438V388ZM643 350C643 370.987 660.013 388 681 388V438C632.399 438 593 398.601 593 350L643 350ZM681 312C660.013 312 643 329.013 643 350L593 350C593 301.399 632.399 262 681 262V312ZM832 224C832 272.601 792.601 312 744 312V262C764.987 262 782 244.987 782 224H832ZM744 136C792.601 136 832 175.399 832 224H782C782 203.013 764.987 186 744 186V136ZM643 66.5C643 104.884 674.116 136 712.5 136V186C646.502 186 593 132.498 593 66.5H643Z" fill="url(#paint0_linear_8073_6076)"/>
5
+ </g>
6
+ <defs>
7
+ <linearGradient id="paint0_linear_8073_6076" x1="712.5" y1="538.911" x2="712.5" y2="35.0001" gradientUnits="userSpaceOnUse">
8
+ <stop stop-color="#02374A" stop-opacity="0.2"/>
9
+ <stop offset="1" stop-color="#02374A" stop-opacity="0"/>
10
+ </linearGradient>
11
+ <clipPath id="clip0_8073_6076">
12
+ <rect width="768" height="464" fill="white"/>
13
+ </clipPath>
14
+ </defs>
15
+ </svg>
@@ -0,0 +1,20 @@
1
+ <svg width="1440" height="504" viewBox="0 0 1440 504" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g clip-path="url(#clip0_8073_6040)">
3
+ <rect width="1440" height="504" fill="#F3F7FA"/>
4
+ <path d="M1423 575C1423 588.807 1411.81 600 1398 600C1384.19 600 1373 588.807 1373 575H1423ZM1234 71V102.5H1184V71H1234ZM1303.5 172H1335V222H1303.5V172ZM1335 348H1272V298H1335V348ZM1272 424H1303.5V474H1272V424ZM1423 543.5V575H1373V543.5H1423ZM1303.5 424C1369.5 424 1423 477.502 1423 543.5H1373C1373 505.116 1341.88 474 1303.5 474V424ZM1234 386C1234 406.987 1251.01 424 1272 424V474C1223.4 474 1184 434.601 1184 386L1234 386ZM1272 348C1251.01 348 1234 365.013 1234 386L1184 386C1184 337.399 1223.4 298 1272 298V348ZM1423 260C1423 308.601 1383.6 348 1335 348V298C1355.99 298 1373 280.987 1373 260H1423ZM1335 172C1383.6 172 1423 211.399 1423 260H1373C1373 239.013 1355.99 222 1335 222V172ZM1234 102.5C1234 140.884 1265.12 172 1303.5 172V222C1237.5 222 1184 168.498 1184 102.5H1234Z" fill="url(#paint0_linear_8073_6040)"/>
5
+ <path d="M-217.15 307.813C-224.828 319.288 -221.75 334.815 -210.274 342.493C-198.799 350.171 -183.272 347.093 -175.594 335.618L-217.15 307.813ZM208.503 11.5252L190.986 37.7053L232.541 65.5104L250.058 39.3303L208.503 11.5252ZM94.574 56.8188L68.3939 39.3016L40.5888 80.8573L66.769 98.3745L94.574 56.8188ZM-29.4799 185.578L22.8803 220.612L50.6854 179.056L-1.67484 144.022L-29.4799 185.578ZM-19.3833 283.777L-45.5635 266.26L-73.3685 307.815L-47.1884 325.333L-19.3833 283.777ZM-211.336 299.124L-217.15 307.813L-175.594 335.618L-169.78 326.929L-211.336 299.124ZM-45.5635 266.26C-100.415 229.558 -174.634 244.272 -211.336 299.124L-169.78 326.929C-148.435 295.027 -105.27 286.47 -73.3685 307.815L-45.5635 266.26ZM-47.1884 325.333C-6.79535 352.36 47.8595 341.524 74.8866 301.131L33.3308 273.326C21.6601 290.769 -1.9409 295.448 -19.3833 283.777L-47.1884 325.333ZM22.8803 220.612C40.3228 232.283 45.0016 255.884 33.3308 273.326L74.8866 301.131C101.914 260.738 91.0784 206.083 50.6854 179.056L22.8803 220.612ZM-53.6811 63.5028C-80.7082 103.896 -69.8729 158.551 -29.4799 185.578L-1.67484 144.022C-19.1173 132.351 -23.7961 108.75 -12.1254 91.3078L-53.6811 63.5028ZM68.3939 39.3016C28.0008 12.2745 -26.654 23.1097 -53.6811 63.5028L-12.1254 91.3078C-0.454562 73.8654 23.1464 69.1865 40.5888 80.8573L68.3939 39.3016ZM190.986 37.7053C169.64 69.6066 126.475 78.164 94.574 56.8188L66.769 98.3745C121.621 135.076 195.84 120.362 232.541 65.5104L190.986 37.7053Z" fill="url(#paint1_linear_8073_6040)"/>
6
+ </g>
7
+ <defs>
8
+ <linearGradient id="paint0_linear_8073_6040" x1="1303.5" y1="574.911" x2="1303.5" y2="71.0001" gradientUnits="userSpaceOnUse">
9
+ <stop stop-color="#02374A" stop-opacity="0.2"/>
10
+ <stop offset="1" stop-color="#02374A" stop-opacity="0"/>
11
+ </linearGradient>
12
+ <linearGradient id="paint1_linear_8073_6040" x1="-129.485" y1="391.684" x2="150.74" y2="-27.1231" gradientUnits="userSpaceOnUse">
13
+ <stop stop-color="#02374A" stop-opacity="0.2"/>
14
+ <stop offset="1" stop-color="#02374A" stop-opacity="0"/>
15
+ </linearGradient>
16
+ <clipPath id="clip0_8073_6040">
17
+ <rect width="1440" height="504" fill="white"/>
18
+ </clipPath>
19
+ </defs>
20
+ </svg>
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { type FC } from 'react';
2
2
  import { type RadioProps } from './RadioProps.types';
3
- declare const Radio: React.FC<RadioProps>;
3
+ declare const Radio: FC<RadioProps>;
4
4
  export default Radio;
@@ -1,21 +1,20 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import React from 'react';
3
- import { RadioFormat } from './RadioProps.types';
4
2
  import IconImage from '../IconImage/IconImage';
5
3
  // import './Radio.scss'
6
- const Radio = ({ class: className, format = RadioFormat.Default, validate = false, isValidGroup = false, tooltip, name, label, items, value, disabled = false, help, onChange }) => {
7
- const [classNameValue] = React.useState(() => {
8
- let value = `e-radio ${format}`;
9
- if (className)
10
- value += ` ${className}`;
11
- if (!validate)
12
- value += ' --is-invalid';
13
- if (!isValidGroup)
14
- value += ' --group-invalid';
15
- return value;
16
- });
17
- return (_jsxs("div", { className: classNameValue, children: [_jsx("label", { htmlFor: name, className: 'sans-serif --medium --bold-weight label', children: label }), _jsx("div", { className: 'e-radio__inner', children: items.map((radio) => {
18
- return (_jsx("div", { className: `radio-item-container ${radio.value === value ? 'active' : ''}`, children: _jsxs("label", { className: 'e-radio-label', children: [radio.iconName !== undefined && radio.iconName !== '' && (_jsx(IconImage, { givenClass: 'radio-icon', iconName: radio.iconName })), _jsx("input", { type: 'radio', className: 'radio-item-input', id: `${name}_${radio.value}`, name: name, onChange: onChange, value: radio.value, checked: radio.value === value, disabled: disabled }), _jsx("label", { className: 'e-radio-label__label sans-serif --medium', htmlFor: `${name}_${radio.value}`, "data-qa": `${name}_${radio.value}`, children: radio.label }), help && _jsx("div", { children: help })] }, radio.value) }, radio.value));
19
- }) }), tooltip ?? _jsx("p", { className: 'tooltip-form sans-serif --small', children: tooltip })] }));
4
+ const Radio = (props) => {
5
+ const optionalClassNames = {
6
+ small: 'radio--small',
7
+ narrow: 'radio--narrow',
8
+ regularBare: 'radio--regular--bare'
9
+ };
10
+ const additionalClassNames = Object.keys(optionalClassNames)
11
+ .filter((attribute) => props[attribute])
12
+ .map((key) => optionalClassNames[key])
13
+ .join(' ');
14
+ const classNames = `e-radio ${props.class} ${!props.validate ? '--is-invalid' : ''} ${!props.isValidGroup ? '--group-invalid' : ''} ${additionalClassNames}`;
15
+ const TooltipObject = props.tooltip ? _jsx("p", { className: 'tooltip-form sans-serif --small', children: props.tooltip }) : '';
16
+ return (_jsxs("div", { className: classNames, children: [_jsx("label", { htmlFor: props.name, className: 'radio-group__label', children: props.label }), _jsx("div", { className: 'e-radio__inner', children: props.items?.map((radio) => {
17
+ return (_jsx("div", { className: `radio-item-container ${radio.value === props.value ? 'active' : ''}`, children: _jsxs("label", { className: 'e-radio-label', children: [radio.iconName !== undefined && radio.iconName !== '' && (_jsx(IconImage, { givenClass: 'radio-icon', iconName: radio.iconName })), _jsx("input", { type: 'radio', className: 'radio-item-input', id: `${props.name}_${radio.value}`, name: props.name, onChange: props.onChange, value: radio.value, checked: radio.value === props.value, disabled: props.disabled }), _jsx("label", { className: 'e-radio-label__label', htmlFor: `${props.name}_${radio.value}`, "data-qa": `${props.name}_${radio.value}`, children: radio.label }), _jsx("div", { children: props.help })] }, radio.value) }, radio.value));
18
+ }) }), TooltipObject] }));
20
19
  };
21
20
  export default Radio;