@npm_leadtech/legal-lib-components 5.39.11 → 5.40.0

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 (67) hide show
  1. package/dist/css/styles.css +203 -89
  2. package/dist/images/svg/back-element-sign-01.svg +9 -0
  3. package/dist/images/svg/back-element-sign-02.svg +9 -0
  4. package/dist/images/svg/back-element-sign-03.svg +9 -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 +185 -103
  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/RatafiaSubscriptionCard/RatafiaSubscriptionCard.js +2 -2
  22. package/dist/src/components/molecules/RatafiaSubscriptionCard/RatafiaSubscriptionCard.tsx +3 -4
  23. package/dist/src/components/molecules/RatafiaSubscriptionCard/RatafiaSubscriptionCardProps.types.d.ts +1 -1
  24. package/dist/src/components/molecules/RatafiaSubscriptionCard/RatafiaSubscriptionCardProps.types.ts +1 -1
  25. package/dist/src/components/molecules/TagsRatafiaList/TagsRatafiaList.js +2 -2
  26. package/dist/src/components/molecules/TagsRatafiaList/TagsRatafiaList.tsx +2 -2
  27. package/dist/src/components/molecules/TagsRatafiaList/TagsRatafiaListProps.types.d.ts +1 -0
  28. package/dist/src/components/molecules/TagsRatafiaList/TagsRatafiaListProps.types.ts +1 -0
  29. package/dist/src/components/organisms/JumbotronEsignatureContent/JumbotronEsignatureContent.d.ts +4 -0
  30. package/dist/src/components/organisms/JumbotronEsignatureContent/JumbotronEsignatureContent.js +7 -0
  31. package/dist/src/components/organisms/JumbotronEsignatureContent/JumbotronEsignatureContent.styled.d.ts +1 -0
  32. package/dist/src/components/organisms/JumbotronEsignatureContent/JumbotronEsignatureContent.styled.js +28 -0
  33. package/dist/src/components/organisms/JumbotronEsignatureContent/JumbotronEsignatureContent.styled.ts +29 -0
  34. package/dist/src/components/organisms/JumbotronEsignatureContent/JumbotronEsignatureContent.tsx +19 -0
  35. package/dist/src/components/organisms/JumbotronEsignatureContent/JumbotronEsignatureContentProps.types.d.ts +7 -0
  36. package/dist/src/components/organisms/JumbotronEsignatureContent/JumbotronEsignatureContentProps.types.js +1 -0
  37. package/dist/src/components/organisms/JumbotronEsignatureContent/JumbotronEsignatureContentProps.types.ts +8 -0
  38. package/dist/src/components/organisms/JumbotronEsignatureContent/index.d.ts +2 -0
  39. package/dist/src/components/organisms/JumbotronEsignatureContent/index.js +1 -0
  40. package/dist/src/components/organisms/JumbotronEsignatureContent/index.ts +2 -0
  41. package/dist/src/components/organisms/JumbotronRatafiaContent/JumbotronRatafiaContent.js +2 -2
  42. package/dist/src/components/organisms/JumbotronRatafiaContent/JumbotronRatafiaContent.tsx +2 -2
  43. package/dist/src/components/organisms/JumbotronRatafiaContent/JumbotronRatafiaContentProps.types.d.ts +2 -1
  44. package/dist/src/components/organisms/JumbotronRatafiaContent/JumbotronRatafiaContentProps.types.ts +2 -1
  45. package/dist/src/components/organisms/index.d.ts +1 -0
  46. package/dist/src/components/organisms/index.js +1 -0
  47. package/dist/src/components/organisms/index.ts +1 -0
  48. package/dist/src/components/pages/EsignatureLandingPage/EsignatureLandingPage.d.ts +3 -0
  49. package/dist/src/components/pages/EsignatureLandingPage/EsignatureLandingPage.js +5 -0
  50. package/dist/src/components/pages/EsignatureLandingPage/EsignatureLandingPage.tsx +15 -0
  51. package/dist/src/components/pages/EsignatureLandingPage/EsignatureLandingPageProps.types.d.ts +7 -0
  52. package/dist/src/components/pages/EsignatureLandingPage/EsignatureLandingPageProps.types.js +1 -0
  53. package/dist/src/components/pages/EsignatureLandingPage/EsignatureLandingPageProps.types.ts +8 -0
  54. package/dist/src/components/pages/EsignatureLandingPage/index.d.ts +2 -0
  55. package/dist/src/components/pages/EsignatureLandingPage/index.js +2 -0
  56. package/dist/src/components/pages/EsignatureLandingPage/index.ts +2 -0
  57. package/dist/src/components/pages/index.d.ts +1 -0
  58. package/dist/src/components/pages/index.js +1 -0
  59. package/dist/src/components/pages/index.ts +1 -0
  60. package/dist/src/components/sections/JumbotronRatafiaSection/JumbotronRatafiaSection.js +20 -2
  61. package/dist/src/components/sections/JumbotronRatafiaSection/JumbotronRatafiaSection.styled.js +19 -0
  62. package/dist/src/components/sections/JumbotronRatafiaSection/JumbotronRatafiaSection.styled.ts +19 -0
  63. package/dist/src/components/sections/JumbotronRatafiaSection/JumbotronRatafiaSection.tsx +43 -6
  64. package/dist/src/components/sections/JumbotronRatafiaSection/JumbotronRatafiaSectionProps.types.d.ts +3 -2
  65. package/dist/src/components/sections/JumbotronRatafiaSection/JumbotronRatafiaSectionProps.types.ts +3 -2
  66. package/dist/tsconfig.build.tsbuildinfo +1 -1
  67. package/package.json +2 -1
@@ -1768,58 +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 input[type=radio]:after {
1787
- width: 16px;
1788
- height: 16px;
1789
- border-radius: 16px;
1790
- top: -4px;
1791
- left: -2px;
1792
- position: relative;
1793
- background-color: var(--others-white);
1794
- content: "";
1795
- display: inline-block;
1796
- visibility: visible;
1797
- border: 1px solid var(--neutral-neutral-1);
1798
- cursor: pointer;
1799
- }
1800
- .e-radio.default .e-radio__inner .radio-item-container .e-radio-label .e-radio-label__label {
1801
- cursor: pointer;
1802
- }
1803
- .e-radio.default .e-radio__inner .radio-item-container.active .e-radio-label input[type=radio]:after {
1804
- border: 5px solid var(--primary-main);
1805
- }
1806
- .e-radio.default .e-radio__inner .radio-item-container.active .e-radio-label .e-radio-label__label {
1807
- color: var(--primary-main);
1808
- }
1809
- .e-radio.default .e-radio__inner .radio-item-container:hover .e-radio-label input[type=radio]:after {
1810
- background-color: var(--primary-main-light-5);
1811
- }
1812
- @media (min-width: 575px) {
1813
- .e-radio.default .e-radio__inner {
1814
- gap: 0.5rem;
1815
- }
1816
- }
1817
1771
  .e-radio label:first-child:not(.e-radio-label) {
1818
1772
  font-weight: bold;
1819
1773
  }
1820
1774
  .e-radio .radio-item-container {
1821
1775
  width: 100%;
1822
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
+ }
1823
1959
  @media (max-width: 575px) {
1824
1960
  .e-radio.--tabs .e-radio__inner {
1825
1961
  display: flex;
@@ -1936,49 +2072,6 @@ h2.react-datepicker__current-month {
1936
2072
  width: 100%;
1937
2073
  }
1938
2074
  }
1939
- @media (max-width: 575px) {
1940
- .e-radio.--icons .e-radio__inner {
1941
- display: flex;
1942
- flex-direction: column;
1943
- gap: 1rem;
1944
- }
1945
- .e-radio.--icons .e-radio__inner .radio-item-container .e-radio-label {
1946
- display: flex;
1947
- align-items: center;
1948
- gap: 0.5rem;
1949
- }
1950
- .e-radio.--icons .e-radio__inner .radio-item-container .e-radio-label input[type=radio]:after {
1951
- width: 16px;
1952
- height: 16px;
1953
- border-radius: 16px;
1954
- top: -4px;
1955
- left: -2px;
1956
- position: relative;
1957
- background-color: var(--others-white);
1958
- content: "";
1959
- display: inline-block;
1960
- visibility: visible;
1961
- border: 1px solid var(--neutral-neutral-1);
1962
- cursor: pointer;
1963
- }
1964
- .e-radio.--icons .e-radio__inner .radio-item-container .e-radio-label .e-radio-label__label {
1965
- cursor: pointer;
1966
- }
1967
- .e-radio.--icons .e-radio__inner .radio-item-container.active .e-radio-label input[type=radio]:after {
1968
- border: 5px solid var(--primary-main);
1969
- }
1970
- .e-radio.--icons .e-radio__inner .radio-item-container.active .e-radio-label .e-radio-label__label {
1971
- color: var(--primary-main);
1972
- }
1973
- .e-radio.--icons .e-radio__inner .radio-item-container:hover .e-radio-label input[type=radio]:after {
1974
- background-color: var(--primary-main-light-5);
1975
- }
1976
- }
1977
- @media (max-width: 575px) and (min-width: 575px) {
1978
- .e-radio.--icons .e-radio__inner {
1979
- gap: 0.5rem;
1980
- }
1981
- }
1982
2075
  .e-radio.--icons .radio-icon {
1983
2076
  display: none;
1984
2077
  }
@@ -2025,6 +2118,10 @@ h2.react-datepicker__current-month {
2025
2118
  margin-right: 1rem;
2026
2119
  }
2027
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
+ }
2028
2125
  .e-radio.--is-invalid.--tabs .e-radio__inner,
2029
2126
  .e-radio.--is-invalid.--group-invalid .e-radio__inner,
2030
2127
  .e-radio.--group-invalid.--tabs .e-radio__inner,
@@ -2043,6 +2140,9 @@ h2.react-datepicker__current-month {
2043
2140
  .e-radio.--group-invalid.--group-invalid .e-radio__inner label:last-child label {
2044
2141
  border-right: none;
2045
2142
  }
2143
+ .radio-group__label {
2144
+ color: var(--neutral-neutral-1);
2145
+ }
2046
2146
  .e-radio.radio--small.--tabs input + label {
2047
2147
  font-size: 0.875rem;
2048
2148
  padding: 0.75rem;
@@ -2051,6 +2151,20 @@ h2.react-datepicker__current-month {
2051
2151
  margin-top: 0;
2052
2152
  margin-bottom: 0;
2053
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
+ }
2054
2168
  .tippy-box {
2055
2169
  background-color: var(--others-white);
2056
2170
  border-radius: var(--global-border-radius);
@@ -0,0 +1,9 @@
1
+ <svg width="239" height="433" viewBox="0 0 239 433" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M239 504C239 517.807 227.807 529 214 529C200.193 529 189 517.807 189 504H239ZM50 3.00407e-05V31.5H1.49012e-06V3.00407e-05H50ZM119.5 101H151V151H119.5V101ZM151 277H88V227H151V277ZM88 353H119.5V403H88V353ZM239 472.5V504H189V472.5H239ZM119.5 353C185.498 353 239 406.502 239 472.5H189C189 434.116 157.884 403 119.5 403V353ZM50 315C50 335.987 67.0132 353 88 353V403C39.3989 403 1.49012e-06 363.601 1.49012e-06 315H50ZM88 277C67.0132 277 50 294.013 50 315H1.49012e-06C1.49012e-06 266.399 39.3989 227 88 227V277ZM239 189C239 237.601 199.601 277 151 277V227C171.987 227 189 209.987 189 189H239ZM151 101C199.601 101 239 140.399 239 189H189C189 168.013 171.987 151 151 151V101ZM50 31.5C50 69.8838 81.1162 101 119.5 101V151C53.502 151 1.49012e-06 97.498 1.49012e-06 31.5H50Z" fill="url(#paint0_linear_7620_13777)"/>
3
+ <defs>
4
+ <linearGradient id="paint0_linear_7620_13777" x1="119.5" y1="503.911" x2="119.5" y2="0.000116057" gradientUnits="userSpaceOnUse">
5
+ <stop stop-color="#02374A" stop-opacity="0.2"/>
6
+ <stop offset="1" stop-color="#02374A" stop-opacity="0"/>
7
+ </linearGradient>
8
+ </defs>
9
+ </svg>
@@ -0,0 +1,9 @@
1
+ <svg width="251" height="336" viewBox="0 0 251 336" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M-217.15 296.813C-224.828 308.288 -221.75 323.815 -210.274 331.493C-198.799 339.171 -183.272 336.093 -175.594 324.618L-217.15 296.813ZM208.503 0.525201L190.986 26.7053L232.541 54.5104L250.058 28.3303L208.503 0.525201ZM94.574 45.8188L68.3939 28.3016L40.5888 69.8573L66.769 87.3745L94.574 45.8188ZM-29.4799 174.578L22.8803 209.612L50.6854 168.056L-1.67484 133.022L-29.4799 174.578ZM-19.3833 272.777L-45.5635 255.26L-73.3685 296.815L-47.1884 314.333L-19.3833 272.777ZM-211.336 288.124L-217.15 296.813L-175.594 324.618L-169.78 315.929L-211.336 288.124ZM-45.5635 255.26C-100.415 218.558 -174.634 233.272 -211.336 288.124L-169.78 315.929C-148.435 284.027 -105.27 275.47 -73.3685 296.815L-45.5635 255.26ZM-47.1884 314.333C-6.79535 341.36 47.8595 330.524 74.8866 290.131L33.3308 262.326C21.6601 279.769 -1.94089 284.448 -19.3833 272.777L-47.1884 314.333ZM22.8803 209.612C40.3228 221.283 45.0016 244.884 33.3308 262.326L74.8866 290.131C101.914 249.738 91.0784 195.083 50.6854 168.056L22.8803 209.612ZM-53.6811 52.5028C-80.7082 92.8958 -69.8729 147.551 -29.4799 174.578L-1.67484 133.022C-19.1173 121.351 -23.7961 97.7503 -12.1254 80.3078L-53.6811 52.5028ZM68.3939 28.3016C28.0008 1.27448 -26.654 12.1097 -53.6811 52.5028L-12.1254 80.3078C-0.454564 62.8654 23.1464 58.1865 40.5888 69.8573L68.3939 28.3016ZM190.986 26.7053C169.64 58.6066 126.475 67.164 94.574 45.8188L66.769 87.3745C121.621 124.076 195.84 109.362 232.541 54.5104L190.986 26.7053Z" fill="url(#paint0_linear_7620_15366)"/>
3
+ <defs>
4
+ <linearGradient id="paint0_linear_7620_15366" x1="-129.485" y1="380.684" x2="150.74" y2="-38.1231" gradientUnits="userSpaceOnUse">
5
+ <stop stop-color="#02374A" stop-opacity="0.2"/>
6
+ <stop offset="1" stop-color="#02374A" stop-opacity="0"/>
7
+ </linearGradient>
8
+ </defs>
9
+ </svg>
@@ -0,0 +1,9 @@
1
+ <svg width="301" height="397" viewBox="0 0 301 397" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M184.806 -136.303C192.705 -147.627 208.289 -150.403 219.613 -142.504C230.937 -134.604 233.713 -119.021 225.814 -107.697L184.806 -136.303ZM63.5072 367.932L81.5291 342.097L122.537 370.703L104.516 396.538L63.5072 367.932ZM64.2901 245.333L38.4548 227.311L67.061 186.302L92.8963 204.324L64.2901 245.333ZM139.149 82.9614L190.819 119.005L162.213 160.014L110.542 123.97L139.149 82.9614ZM234.301 56.6725L208.465 38.6506L237.072 -2.35778L262.907 15.6641L234.301 56.6725ZM178.824 -127.728L184.806 -136.303L225.814 -107.697L219.833 -99.122L178.824 -127.728ZM208.465 38.6506C154.336 0.891517 141.065 -73.5988 178.824 -127.728L219.833 -99.122C197.872 -67.6409 205.59 -24.3181 237.072 -2.35778L208.465 38.6506ZM262.907 15.6641C302.768 43.47 312.54 98.3248 284.735 138.186L243.726 109.58C255.733 92.3669 251.513 68.6796 234.301 56.6725L262.907 15.6641ZM190.819 119.005C208.032 131.012 231.719 126.792 243.726 109.58L284.735 138.186C256.929 178.047 202.074 187.819 162.213 160.014L190.819 119.005ZM16.627 104.789C44.4329 64.9281 99.2877 55.1555 139.149 82.9614L110.542 123.97C93.3298 111.963 69.6425 116.183 57.6354 133.395L16.627 104.789ZM38.4548 227.311C-1.40616 199.505 -11.1788 144.65 16.627 104.789L57.6354 133.395C45.6283 150.608 49.8483 174.295 67.061 186.302L38.4548 227.311ZM81.5291 342.097C103.489 310.616 95.7712 267.293 64.2901 245.333L92.8963 204.324C147.026 242.083 160.296 316.574 122.537 370.703L81.5291 342.097Z" fill="url(#paint0_linear_7620_15713)"/>
3
+ <defs>
4
+ <linearGradient id="paint0_linear_7620_15713" x1="294.805" y1="-85.1219" x2="6.50603" y2="328.169" gradientUnits="userSpaceOnUse">
5
+ <stop stop-color="#02374A" stop-opacity="0.2"/>
6
+ <stop offset="1" stop-color="#02374A" stop-opacity="0"/>
7
+ </linearGradient>
8
+ </defs>
9
+ </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;