@comicrelief/component-library 8.44.4 → 8.45.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.
- package/dist/components/Atoms/SocialIcons/Icon/Icon.js +39 -14
- package/dist/components/Atoms/SocialIcons/SocialIcons.js +91 -22
- package/dist/components/Atoms/SocialIcons/Utils/Icons.js +26 -7
- package/dist/components/Atoms/SocialIcons/Utils/Links.js +10 -0
- package/dist/components/Atoms/SocialIcons/__snapshots__/SocialIcons.test.js.snap +63 -48
- package/{src/components/Atoms/SocialIcons/assets → dist/components/Atoms/SocialIcons/assets/circled}/facebook.svg +1 -1
- package/{src/components/Atoms/SocialIcons/assets → dist/components/Atoms/SocialIcons/assets/circled}/twitter.svg +1 -1
- package/dist/components/Atoms/SocialIcons/assets/{youtube.svg → circled/youtube.svg} +1 -1
- package/dist/components/Atoms/SocialIcons/assets/standard/facebook.svg +3 -0
- package/dist/components/Atoms/SocialIcons/assets/standard/instagram.svg +3 -0
- package/dist/components/Atoms/SocialIcons/assets/standard/tiktok.svg +3 -0
- package/dist/components/Atoms/SocialIcons/assets/standard/x.svg +3 -0
- package/dist/components/Atoms/SocialIcons/assets/standard/youtube.svg +3 -0
- package/dist/components/Molecules/EmailSignUp/EmailSignUp.js +38 -0
- package/dist/components/Molecules/EmailSignUp/EmailSignUp.style.js +113 -0
- package/dist/components/Molecules/LogoLinked/LogoLinked.js +6 -6
- package/dist/components/Organisms/Footer/Footer.md +12 -11
- package/dist/components/Organisms/Footer/FundraisingRegulatorLogo/FundraisingRegulatorLogo.js +36 -16
- package/dist/components/Organisms/Footer/Nav/Nav.style.js +8 -8
- package/dist/components/Organisms/Footer/__snapshots__/Footer.test.js.snap +188 -183
- package/dist/components/Organisms/FooterNew/FooterNew.js +136 -0
- package/dist/components/Organisms/FooterNew/FooterNew.md +47 -0
- package/dist/components/Organisms/FooterNew/FooterNew.style.js +312 -0
- package/dist/components/Organisms/FooterNew/FooterNew.test.js +20 -0
- package/dist/components/Organisms/FooterNew/Nav/PrimaryNav.js +32 -0
- package/dist/components/Organisms/FooterNew/Nav/SecondaryNav.js +32 -0
- package/dist/components/Organisms/FooterNew/__snapshots__/FooterNew.test.js.snap +1490 -0
- package/dist/components/Organisms/FooterNew/dev-data/data.js +106 -0
- package/dist/index.js +20 -0
- package/dist/theme/crTheme/colors.js +12 -7
- package/dist/theme/shared/animations.js +46 -0
- package/package.json +1 -1
- package/src/components/Atoms/SocialIcons/Icon/Icon.js +47 -11
- package/src/components/Atoms/SocialIcons/SocialIcons.js +99 -25
- package/src/components/Atoms/SocialIcons/Utils/Icons.js +29 -10
- package/src/components/Atoms/SocialIcons/Utils/Links.js +10 -0
- package/src/components/Atoms/SocialIcons/__snapshots__/SocialIcons.test.js.snap +63 -48
- package/{dist/components/Atoms/SocialIcons/assets → src/components/Atoms/SocialIcons/assets/circled}/facebook.svg +1 -1
- package/{dist/components/Atoms/SocialIcons/assets → src/components/Atoms/SocialIcons/assets/circled}/twitter.svg +1 -1
- package/src/components/Atoms/SocialIcons/assets/{youtube.svg → circled/youtube.svg} +1 -1
- package/src/components/Atoms/SocialIcons/assets/standard/facebook.svg +3 -0
- package/src/components/Atoms/SocialIcons/assets/standard/instagram.svg +3 -0
- package/src/components/Atoms/SocialIcons/assets/standard/tiktok.svg +3 -0
- package/src/components/Atoms/SocialIcons/assets/standard/x.svg +3 -0
- package/src/components/Atoms/SocialIcons/assets/standard/youtube.svg +3 -0
- package/src/components/Molecules/EmailSignUp/EmailSignUp.js +55 -0
- package/src/components/Molecules/EmailSignUp/EmailSignUp.style.js +107 -0
- package/src/components/Molecules/LogoLinked/LogoLinked.js +5 -14
- package/src/components/Organisms/Footer/Footer.md +12 -11
- package/src/components/Organisms/Footer/FundraisingRegulatorLogo/FundraisingRegulatorLogo.js +14 -3
- package/src/components/Organisms/Footer/Nav/Nav.style.js +8 -8
- package/src/components/Organisms/Footer/__snapshots__/Footer.test.js.snap +188 -183
- package/src/components/Organisms/FooterNew/FooterNew.js +211 -0
- package/src/components/Organisms/FooterNew/FooterNew.md +47 -0
- package/src/components/Organisms/FooterNew/FooterNew.style.js +294 -0
- package/src/components/Organisms/FooterNew/FooterNew.test.js +24 -0
- package/src/components/Organisms/FooterNew/Nav/PrimaryNav.js +54 -0
- package/src/components/Organisms/FooterNew/Nav/SecondaryNav.js +54 -0
- package/src/components/Organisms/FooterNew/__snapshots__/FooterNew.test.js.snap +1490 -0
- package/src/components/Organisms/FooterNew/dev-data/data.js +123 -0
- package/src/index.js +2 -0
- package/src/theme/crTheme/colors.js +13 -7
- package/src/theme/shared/animations.js +60 -0
- /package/dist/components/Atoms/SocialIcons/assets/{X-white-Subtract.svg → circled/X-white-Subtract.svg} +0 -0
- /package/dist/components/Atoms/SocialIcons/assets/{instagram.svg → circled/instagram.svg} +0 -0
- /package/src/components/Atoms/SocialIcons/assets/{X-white-Subtract.svg → circled/X-white-Subtract.svg} +0 -0
- /package/src/components/Atoms/SocialIcons/assets/{instagram.svg → circled/instagram.svg} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path d="M1024 512C1024 229.23 794.77 0 512 0S0 229.23 0 512c0 255.554 187.231 467.37 432 505.778V660H302V512h130V399.2C432 270.88 508.439 200 625.389 200 681.408 200 740 210 740 210v126h-64.563C611.835 336 592 375.467 592 415.957V512h142l-22.7 148H592v357.778C836.769 979.37 1024 767.554 1024 512z" fill="#fff"/></svg>
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path d="M1024 512C1024 229.23 794.77 0 512 0S0 229.23 0 512c0 255.554 187.231 467.37 432 505.778V660H302V512h130V399.2C432 270.88 508.439 200 625.389 200 681.408 200 740 210 740 210v126h-64.563C611.835 336 592 375.467 592 415.957V512h142l-22.7 148H592v357.778C836.769 979.37 1024 767.554 1024 512z" fill="#fff"/></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><path d="M400 200c0 110.5-89.5 200-200 200S0 310.5 0 200 89.5 0 200 0s200 89.5 200 200zM163.4 305.5c88.7 0 137.2-73.5 137.2-137.2 0-2.1 0-4.2-.1-6.2 9.4-6.8 17.6-15.3 24.1-25-8.6 3.8-17.9 6.4-27.7 7.6 10-6 17.6-15.4 21.2-26.7-9.3 5.5-19.6 9.5-30.6 11.7-8.8-9.4-21.3-15.2-35.2-15.2-26.6 0-48.2 21.6-48.2 48.2 0 3.8.4 7.5 1.3 11-40.1-2-75.6-21.2-99.4-50.4-4.1 7.1-6.5 15.4-6.5 24.2 0 16.7 8.5 31.5 21.5 40.1-7.9-.2-15.3-2.4-21.8-6v.6c0 23.4 16.6 42.8 38.7 47.3-4 1.1-8.3 1.7-12.7 1.7-3.1 0-6.1-.3-9.1-.9 6.1 19.2 23.9 33.1 45 33.5-16.5 12.9-37.3 20.6-59.9 20.6-3.9 0-7.7-.2-11.5-.7 21.1 13.8 46.5 21.8 73.7 21.8" fill="#fff"/></svg>
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><path d="M400 200c0 110.5-89.5 200-200 200S0 310.5 0 200 89.5 0 200 0s200 89.5 200 200zM163.4 305.5c88.7 0 137.2-73.5 137.2-137.2 0-2.1 0-4.2-.1-6.2 9.4-6.8 17.6-15.3 24.1-25-8.6 3.8-17.9 6.4-27.7 7.6 10-6 17.6-15.4 21.2-26.7-9.3 5.5-19.6 9.5-30.6 11.7-8.8-9.4-21.3-15.2-35.2-15.2-26.6 0-48.2 21.6-48.2 48.2 0 3.8.4 7.5 1.3 11-40.1-2-75.6-21.2-99.4-50.4-4.1 7.1-6.5 15.4-6.5 24.2 0 16.7 8.5 31.5 21.5 40.1-7.9-.2-15.3-2.4-21.8-6v.6c0 23.4 16.6 42.8 38.7 47.3-4 1.1-8.3 1.7-12.7 1.7-3.1 0-6.1-.3-9.1-.9 6.1 19.2 23.9 33.1 45 33.5-16.5 12.9-37.3 20.6-59.9 20.6-3.9 0-7.7-.2-11.5-.7 21.1 13.8 46.5 21.8 73.7 21.8" fill="#fff"/></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 600"><path d="M259.307 240.84L363.3 300.002 259.307 359.16V240.84zM600 300c0 165.685-134.315 300-300 300S0 465.685 0 300 134.315 0 300 0s300 134.315 300 300zm-101.056 0s0-65.16-8.314-96.391c-4.576-17.23-18.058-30.8-35.177-35.406-31.03-8.368-155.453-8.368-155.453-8.368s-124.423 0-155.452 8.368c-17.119 4.606-30.601 18.175-35.177 35.406-8.315 31.231-8.315 96.391-8.315 96.391s0 65.16 8.314 96.391c4.576 17.23 18.058 30.8 35.177 35.405 31.03 8.369 155.453 8.369 155.453 8.369s124.423 0 155.452-8.368c17.119-4.605 30.601-18.175 35.177-35.405 8.315-31.232 8.315-96.392 8.315-96.392z" fill="#fff"/></svg>
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 600"><path d="M259.307 240.84L363.3 300.002 259.307 359.16V240.84zM600 300c0 165.685-134.315 300-300 300S0 465.685 0 300 134.315 0 300 0s300 134.315 300 300zm-101.056 0s0-65.16-8.314-96.391c-4.576-17.23-18.058-30.8-35.177-35.406-31.03-8.368-155.453-8.368-155.453-8.368s-124.423 0-155.452 8.368c-17.119 4.606-30.601 18.175-35.177 35.406-8.315 31.231-8.315 96.391-8.315 96.391s0 65.16 8.314 96.391c4.576 17.23 18.058 30.8 35.177 35.405 31.03 8.369 155.453 8.369 155.453 8.369s124.423 0 155.452-8.368c17.119-4.605 30.601-18.175 35.177-35.405 8.315-31.232 8.315-96.392 8.315-96.392z" fill="#fff"/></svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M35 18.0623C35 8.67343 27.3888 1.06225 18 1.06225C8.61117 1.06225 1 8.67343 1 18.0623C1 26.0349 6.48862 32.7245 13.8932 34.5616V23.2572H10.3877V18.0623H13.8932V15.8238C13.8932 10.0375 16.5117 7.35559 22.1925 7.35559C23.2695 7.35559 25.1278 7.56673 25.8881 7.77793V12.4872C25.4868 12.445 24.7899 12.4238 23.9241 12.4238C21.1366 12.4238 20.0595 13.4797 20.0595 16.225V18.0623H25.6123L24.6584 23.2572H20.0595V34.9377C28.477 33.9211 35 26.7539 35 18.0623Z" fill="black"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M10.9594 1.11877C9.15059 1.20411 7.91536 1.49278 6.83551 1.9171C5.71792 2.35265 4.77067 2.93711 3.82818 3.883C2.88569 4.82889 2.3053 5.77682 1.87282 6.89611C1.45427 7.97834 1.17071 9.2146 1.09081 11.0244C1.01091 12.8343 0.993227 13.416 1.00207 18.0326C1.01091 22.6492 1.03131 23.2278 1.11903 25.0414C1.20539 26.8499 1.49303 28.0848 1.91736 29.165C2.35358 30.2826 2.93737 31.2295 3.8836 32.1723C4.82983 33.1151 5.77708 33.6942 6.89909 34.1273C7.9803 34.5452 9.21689 34.8301 11.0264 34.9093C12.8359 34.9886 13.4183 35.0069 18.0335 34.9981C22.6487 34.9892 23.2298 34.9688 25.043 34.8828C26.8563 34.7968 28.0847 34.5071 29.1652 34.0848C30.2828 33.6476 31.2304 33.0648 32.1726 32.1183C33.1147 31.1717 33.6948 30.2231 34.1269 29.1031C34.5458 28.0219 34.8304 26.7853 34.9089 24.9772C34.9881 23.1626 35.0068 22.5832 34.998 17.9673C34.9892 13.3514 34.9684 12.7727 34.8824 10.9598C34.7964 9.14694 34.5084 7.91578 34.0844 6.83491C33.6475 5.71732 33.0644 4.77109 32.1185 3.82758C31.1726 2.88407 30.2233 2.30437 29.1037 1.87324C28.0218 1.4547 26.7859 1.16943 24.9764 1.09123C23.1669 1.01303 22.5845 0.992972 17.9676 1.00181C13.3507 1.01065 12.7726 1.03037 10.9594 1.11877ZM11.158 31.851C9.50045 31.7789 8.60046 31.5035 8.0007 31.273C7.20645 30.967 6.64068 30.5971 6.04296 30.0051C5.44523 29.4132 5.07803 28.8454 4.76795 28.0528C4.53504 27.4531 4.25454 26.5541 4.17702 24.8966C4.0927 23.1051 4.07502 22.5672 4.06516 18.0285C4.0553 13.4898 4.07264 12.9526 4.15118 11.1604C4.2219 9.50428 4.499 8.60327 4.72919 8.00384C5.03519 7.20858 5.40375 6.64383 5.99706 6.04644C6.59036 5.44906 7.15647 5.08117 7.9497 4.77109C8.54878 4.53717 9.44775 4.25905 11.1046 4.18016C12.8974 4.09516 13.4346 4.07816 17.9727 4.0683C22.5107 4.05844 23.0493 4.07544 24.8428 4.15432C26.4989 4.2264 27.4003 4.50079 27.999 4.73233C28.7936 5.03833 29.359 5.40588 29.9564 6.0002C30.5538 6.59453 30.922 7.1586 31.2321 7.95352C31.4664 8.55091 31.7445 9.44954 31.8227 11.1074C31.908 12.9002 31.9274 13.4378 31.9356 17.9755C31.9437 22.5132 31.9278 23.0521 31.8492 24.8435C31.7768 26.5011 31.5021 27.4014 31.2712 28.0018C30.9652 28.7957 30.5963 29.3618 30.0027 29.9589C29.409 30.5559 28.8436 30.9238 28.05 31.2339C27.4516 31.4675 26.5516 31.7463 24.8961 31.8252C23.1033 31.9095 22.5661 31.9272 18.0264 31.937C13.4867 31.9469 12.9511 31.9285 11.1583 31.851M25.0169 8.91403C25.0175 9.31754 25.1378 9.71178 25.3626 10.0469C25.5873 10.382 25.9064 10.643 26.2795 10.7967C26.6525 10.9505 27.0628 10.9902 27.4584 10.9107C27.8541 10.8313 28.2172 10.6363 28.502 10.3505C28.7868 10.0646 28.9805 9.70077 29.0584 9.30487C29.1364 8.90897 29.0952 8.49883 28.9401 8.12634C28.785 7.75384 28.5229 7.43572 28.1869 7.2122C27.851 6.98868 27.4563 6.86981 27.0528 6.87061C26.5119 6.87169 25.9935 7.08757 25.6117 7.47076C25.2299 7.85396 25.0159 8.3731 25.0169 8.91403ZM9.27129 18.0169C9.28081 22.8382 13.1963 26.7377 18.0165 26.7285C22.8367 26.7193 26.739 22.8042 26.7298 17.9829C26.7206 13.1617 22.8041 9.26118 17.9832 9.2707C13.1623 9.28022 9.26211 13.1964 9.27129 18.0169ZM12.3334 18.0108C12.3311 16.89 12.6613 15.7938 13.2822 14.8606C13.903 13.9275 14.7866 13.1994 15.8212 12.7684C16.8559 12.3375 17.995 12.223 19.0947 12.4395C20.1944 12.656 21.2052 13.1937 21.9993 13.9846C22.7934 14.7756 23.3351 15.7842 23.5559 16.8831C23.7768 17.9819 23.6668 19.1215 23.2399 20.1578C22.8131 21.1942 22.0885 22.0806 21.1578 22.7052C20.2272 23.3297 19.1322 23.6642 18.0114 23.6664C17.2672 23.668 16.53 23.523 15.8419 23.2396C15.1537 22.9562 14.5281 22.54 14.0009 22.0148C13.4736 21.4896 13.0549 20.8657 12.7688 20.1787C12.4827 19.4917 12.3347 18.755 12.3334 18.0108Z" fill="black"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M27.1735 9.01362C25.5578 7.9603 24.3908 6.27396 24.0273 4.30864C23.9487 3.88396 23.9057 3.44689 23.9057 2.99963H18.7483L18.7403 23.6698C18.6536 25.9848 16.7488 27.8423 14.4134 27.8423C13.6879 27.8423 13.0039 27.6609 12.4022 27.344C11.0225 26.6178 10.0777 25.1711 10.0777 23.5066C10.0777 21.1159 12.0227 19.171 14.4134 19.171C14.8599 19.171 15.2875 19.2445 15.6925 19.3713V14.1061C15.2737 14.0493 14.8476 14.0136 14.4134 14.0136C9.1774 14.0143 4.91895 18.2728 4.91895 23.5074C4.91895 26.719 6.52369 29.5614 8.97198 31.2798C10.5141 32.3622 12.3898 33.0004 14.4127 33.0004C19.6472 33.0004 23.9057 28.7419 23.9057 23.5074V13.0259C25.9286 14.4776 28.4067 15.3335 31.0815 15.3335V10.1762C29.6407 10.1762 28.2989 9.74788 27.1742 9.01435L27.1735 9.01362Z" fill="black"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M20.607 15.8559L30.8073 3.99893H28.3901L19.5333 14.2942L12.4593 3.99893H4.30029L14.9975 19.5672L4.30029 32.001H6.71757L16.0707 21.1289L23.5413 32.001H31.7003L20.6064 15.8559H20.607ZM17.2962 19.7043L16.2124 18.1541L7.58854 5.81862H11.3013L18.2609 15.7737L19.3447 17.324L28.3913 30.2641H24.6785L17.2962 19.7049V19.7043Z" fill="black"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M35.2374 9.33522C34.8161 7.78366 33.6332 6.57437 32.0553 6.15312C29.2681 5.3905 17.9868 5.3905 17.9868 5.3905C17.9868 5.3905 6.7319 5.3905 3.94472 6.15312C2.39316 6.57347 1.18296 7.78366 0.736287 9.33522C0 12.1224 0 17.9864 0 17.9864C0 17.9864 0 23.8503 0.736287 26.6648C1.18296 28.19 2.39316 29.4256 3.94472 29.8469C6.7319 30.6095 17.9868 30.6095 17.9868 30.6095C17.9868 30.6095 29.2681 30.6095 32.0553 29.8469C33.6332 29.4265 34.8161 28.19 35.2374 26.6648C36 23.8513 36 17.9864 36 17.9864C36 17.9864 36 12.1224 35.2374 9.33522ZM14.4107 23.4037V12.5954L23.7464 17.9864L14.4107 23.4037Z" fill="black"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _EmailSignUp = require("./EmailSignUp.style");
|
|
10
|
+
const EmailSignUp = _ref => {
|
|
11
|
+
let {
|
|
12
|
+
formContext,
|
|
13
|
+
...rest
|
|
14
|
+
} = _ref;
|
|
15
|
+
const {
|
|
16
|
+
formState: {
|
|
17
|
+
errors
|
|
18
|
+
},
|
|
19
|
+
register
|
|
20
|
+
} = formContext;
|
|
21
|
+
const errorMsg = errors && errors.email && errors.email.message;
|
|
22
|
+
return /*#__PURE__*/_react.default.createElement(_EmailSignUp.EmailSignUpWrapper, null, /*#__PURE__*/_react.default.createElement(_EmailSignUp.LabelWrapper, null, /*#__PURE__*/_react.default.createElement(_EmailSignUp.StyledLabel, null, "Subscribe to our newsletter")), /*#__PURE__*/_react.default.createElement(_EmailSignUp.FormWrapper, {
|
|
23
|
+
error: !!errorMsg
|
|
24
|
+
}, /*#__PURE__*/_react.default.createElement(_EmailSignUp.InputWrapper, null, /*#__PURE__*/_react.default.createElement(_EmailSignUp.StyledEmailInput, Object.assign({
|
|
25
|
+
name: "email",
|
|
26
|
+
type: "email",
|
|
27
|
+
id: "email-signup",
|
|
28
|
+
label: "Email address",
|
|
29
|
+
showLabel: false,
|
|
30
|
+
placeholder: "Enter your email address",
|
|
31
|
+
errorMsg: errorMsg,
|
|
32
|
+
optional: true
|
|
33
|
+
}, register('email'), rest))), /*#__PURE__*/_react.default.createElement(_EmailSignUp.ButtonWrapper, null, /*#__PURE__*/_react.default.createElement(_EmailSignUp.StyledEmailSignUpButton, {
|
|
34
|
+
type: "submit",
|
|
35
|
+
color: "white"
|
|
36
|
+
}, "Sign up"))));
|
|
37
|
+
};
|
|
38
|
+
var _default = exports.default = EmailSignUp;
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.StyledLabel = exports.StyledEmailSignUpButton = exports.StyledEmailInput = exports.LabelWrapper = exports.InputWrapper = exports.FormWrapper = exports.EmailSignUpWrapper = exports.ButtonWrapper = void 0;
|
|
9
|
+
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
10
|
+
var _Input = _interopRequireDefault(require("../../Atoms/Input/Input"));
|
|
11
|
+
var _Button = _interopRequireDefault(require("../../Atoms/Button/Button"));
|
|
12
|
+
var _spacing = _interopRequireDefault(require("../../../theme/shared/spacing"));
|
|
13
|
+
var _animations = require("../../../theme/shared/animations");
|
|
14
|
+
var _fontHelper = _interopRequireDefault(require("../../../theme/crTheme/fontHelper"));
|
|
15
|
+
const EmailSignUpWrapper = exports.EmailSignUpWrapper = _styledComponents.default.div.withConfig({
|
|
16
|
+
displayName: "EmailSignUpstyle__EmailSignUpWrapper",
|
|
17
|
+
componentId: "sc-d38yg6-0"
|
|
18
|
+
})(["margin-bottom:", ";@media ", "{margin-bottom:", ";}color:", ";"], (0, _spacing.default)('m'), _ref => {
|
|
19
|
+
let {
|
|
20
|
+
theme
|
|
21
|
+
} = _ref;
|
|
22
|
+
return theme.breakpoints2026('M');
|
|
23
|
+
}, (0, _spacing.default)('m'), _ref2 => {
|
|
24
|
+
let {
|
|
25
|
+
theme
|
|
26
|
+
} = _ref2;
|
|
27
|
+
return theme.color('white');
|
|
28
|
+
});
|
|
29
|
+
const LabelWrapper = exports.LabelWrapper = _styledComponents.default.div.withConfig({
|
|
30
|
+
displayName: "EmailSignUpstyle__LabelWrapper",
|
|
31
|
+
componentId: "sc-d38yg6-1"
|
|
32
|
+
})(["margin-bottom:", ";"], (0, _spacing.default)('md'));
|
|
33
|
+
const StyledLabel = exports.StyledLabel = _styledComponents.default.span.withConfig({
|
|
34
|
+
displayName: "EmailSignUpstyle__StyledLabel",
|
|
35
|
+
componentId: "sc-d38yg6-2"
|
|
36
|
+
})(["", ""], _ref3 => {
|
|
37
|
+
let {
|
|
38
|
+
theme
|
|
39
|
+
} = _ref3;
|
|
40
|
+
return (0, _styledComponents.css)(["", " font-weight:bold;"], (0, _fontHelper.default)(theme, 'p'));
|
|
41
|
+
});
|
|
42
|
+
const FormWrapper = exports.FormWrapper = _styledComponents.default.div.withConfig({
|
|
43
|
+
displayName: "EmailSignUpstyle__FormWrapper",
|
|
44
|
+
componentId: "sc-d38yg6-3"
|
|
45
|
+
})(["display:flex;align-items:center;flex-direction:column;gap:", ";overflow:visible;@media ", "{flex-direction:row;align-items:center;", "}"], (0, _spacing.default)('md'), _ref4 => {
|
|
46
|
+
let {
|
|
47
|
+
theme
|
|
48
|
+
} = _ref4;
|
|
49
|
+
return theme.breakpoints2026('M');
|
|
50
|
+
}, _ref5 => {
|
|
51
|
+
let {
|
|
52
|
+
error
|
|
53
|
+
} = _ref5;
|
|
54
|
+
return error && `
|
|
55
|
+
align-items: flex-start;
|
|
56
|
+
`;
|
|
57
|
+
});
|
|
58
|
+
const InputWrapper = exports.InputWrapper = _styledComponents.default.div.withConfig({
|
|
59
|
+
displayName: "EmailSignUpstyle__InputWrapper",
|
|
60
|
+
componentId: "sc-d38yg6-4"
|
|
61
|
+
})(["flex:1;display:flex;align-items:center;width:100%;overflow:visible;@media ", "{width:auto;min-width:360px;}"], _ref6 => {
|
|
62
|
+
let {
|
|
63
|
+
theme
|
|
64
|
+
} = _ref6;
|
|
65
|
+
return theme.breakpoints2026('M');
|
|
66
|
+
});
|
|
67
|
+
const StyledEmailInput = exports.StyledEmailInput = (0, _styledComponents.default)(_Input.default).withConfig({
|
|
68
|
+
displayName: "EmailSignUpstyle__StyledEmailInput",
|
|
69
|
+
componentId: "sc-d38yg6-5"
|
|
70
|
+
})(["overflow:visible;@media ", "{", "}input{", "}"], _ref7 => {
|
|
71
|
+
let {
|
|
72
|
+
theme
|
|
73
|
+
} = _ref7;
|
|
74
|
+
return theme.breakpoints2026('M');
|
|
75
|
+
}, (0, _animations.springScaleAnimation)(true, 1.04, 1), _ref8 => {
|
|
76
|
+
let {
|
|
77
|
+
theme
|
|
78
|
+
} = _ref8;
|
|
79
|
+
return (0, _styledComponents.css)(["", " background-color:", ";border-color:transparent;transition:background-color 0.2s ease;border:1px solid ", ";color:", ";&::placeholder{color:", ";}&:hover,&:focus{background-color:", ";}"], (0, _fontHelper.default)(theme, 'formFieldInput'), theme.color('grey_5'), theme.color('white'), theme.color('white'), theme.color('grey_2'), theme.color('grey_4_hover'));
|
|
80
|
+
});
|
|
81
|
+
const ButtonWrapper = exports.ButtonWrapper = _styledComponents.default.div.withConfig({
|
|
82
|
+
displayName: "EmailSignUpstyle__ButtonWrapper",
|
|
83
|
+
componentId: "sc-d38yg6-6"
|
|
84
|
+
})(["display:flex;align-items:center;justify-content:center;width:100%;@media ", "{width:auto;}"], _ref9 => {
|
|
85
|
+
let {
|
|
86
|
+
theme
|
|
87
|
+
} = _ref9;
|
|
88
|
+
return theme.breakpoints2026('M');
|
|
89
|
+
});
|
|
90
|
+
const StyledEmailSignUpButton = exports.StyledEmailSignUpButton = (0, _styledComponents.default)(_Button.default).withConfig({
|
|
91
|
+
displayName: "EmailSignUpstyle__StyledEmailSignUpButton",
|
|
92
|
+
componentId: "sc-d38yg6-7"
|
|
93
|
+
})(["margin:0;font-family:", ";border-radius:0.5rem;@media ", "{", " margin:0;}&:hover,&:focus{background-color:", ";color:", ";}"], _ref10 => {
|
|
94
|
+
let {
|
|
95
|
+
theme
|
|
96
|
+
} = _ref10;
|
|
97
|
+
return theme.fontFamilies('Montserrat');
|
|
98
|
+
}, _ref11 => {
|
|
99
|
+
let {
|
|
100
|
+
theme
|
|
101
|
+
} = _ref11;
|
|
102
|
+
return theme.breakpoints2026('M');
|
|
103
|
+
}, (0, _animations.springScaleAnimation)(true, 1.02, 1), _ref12 => {
|
|
104
|
+
let {
|
|
105
|
+
theme
|
|
106
|
+
} = _ref12;
|
|
107
|
+
return theme.color('white');
|
|
108
|
+
}, _ref13 => {
|
|
109
|
+
let {
|
|
110
|
+
theme
|
|
111
|
+
} = _ref13;
|
|
112
|
+
return theme.color('black');
|
|
113
|
+
});
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.default = void 0;
|
|
9
8
|
var _react = _interopRequireDefault(require("react"));
|
|
10
|
-
var _styledComponents =
|
|
9
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
11
10
|
var _Logo = _interopRequireDefault(require("../../Atoms/Logo/Logo"));
|
|
11
|
+
var _animations = require("../../../theme/shared/animations");
|
|
12
12
|
const TitleLabel = _styledComponents.default.span.withConfig({
|
|
13
13
|
displayName: "LogoLinked__TitleLabel",
|
|
14
14
|
componentId: "sc-1l32h77-0"
|
|
@@ -20,16 +20,16 @@ const LogoLink = _styledComponents.default.a.withConfig({
|
|
|
20
20
|
let {
|
|
21
21
|
animateRotate
|
|
22
22
|
} = _ref;
|
|
23
|
-
return
|
|
23
|
+
return (0, _animations.logoRotateAnimation)(animateRotate);
|
|
24
24
|
});
|
|
25
25
|
const LogoLinked = _ref2 => {
|
|
26
26
|
let {
|
|
27
|
+
sizeSm,
|
|
28
|
+
sizeMd,
|
|
27
29
|
campaign = 'Comic Relief',
|
|
28
30
|
title = 'Go to Comic Relief homepage',
|
|
29
31
|
url = '/',
|
|
30
|
-
animateRotate = false
|
|
31
|
-
sizeSm,
|
|
32
|
-
sizeMd
|
|
32
|
+
animateRotate = false
|
|
33
33
|
} = _ref2;
|
|
34
34
|
if (campaign === 'Sport Relief Gameon') {
|
|
35
35
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(LogoLink, {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# Footer
|
|
2
2
|
|
|
3
3
|
```js
|
|
4
|
+
import Footer from './Footer';
|
|
4
5
|
import data from './data/data';
|
|
5
6
|
import footerCopy from './data/footerCopy';
|
|
6
7
|
|
|
@@ -9,19 +10,19 @@ import footerCopy from './data/footerCopy';
|
|
|
9
10
|
<Footer navItems={data} footerCopy={footerCopy.copy} campaign="Comic Relief" />
|
|
10
11
|
|
|
11
12
|
<p>Overrides allowList functionality for external usage</p>
|
|
12
|
-
<Footer
|
|
13
|
-
navItems={data}
|
|
14
|
-
footerCopy={footerCopy.copy}
|
|
15
|
-
campaign="Comic Relief"
|
|
16
|
-
overrideallowList
|
|
13
|
+
<Footer
|
|
14
|
+
navItems={data}
|
|
15
|
+
footerCopy={footerCopy.copy}
|
|
16
|
+
campaign="Comic Relief"
|
|
17
|
+
overrideallowList
|
|
17
18
|
/>
|
|
18
|
-
|
|
19
|
+
|
|
19
20
|
<p>Adding an additionalLegalLine to the top of the footer, add FR logo</p>
|
|
20
|
-
<Footer
|
|
21
|
-
additionalLegalLine="CHICKEN RUN: DAWN OF THE NUGGET ™/ © Aardman. Netflix ™/© Netflix. Used with permission/Wallace & Gromit Ltd. All rights reserved/ Shaun the Sheep © & TM /Morph ©/TM Aardman Animations Ltd. All rights reserved."
|
|
22
|
-
navItems={data}
|
|
23
|
-
footerCopy={footerCopy.copy}
|
|
24
|
-
campaign="Comic Relief"
|
|
21
|
+
<Footer
|
|
22
|
+
additionalLegalLine="CHICKEN RUN: DAWN OF THE NUGGET ™/ © Aardman. Netflix ™/© Netflix. Used with permission/Wallace & Gromit Ltd. All rights reserved/ Shaun the Sheep © & TM /Morph ©/TM Aardman Animations Ltd. All rights reserved."
|
|
23
|
+
navItems={data}
|
|
24
|
+
footerCopy={footerCopy.copy}
|
|
25
|
+
campaign="Comic Relief"
|
|
25
26
|
showFundraisingRegulatorLogo
|
|
26
27
|
/>
|
|
27
28
|
</>
|
package/dist/components/Organisms/Footer/FundraisingRegulatorLogo/FundraisingRegulatorLogo.js
CHANGED
|
@@ -8,23 +8,43 @@ exports.default = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
10
|
var _spacing = _interopRequireDefault(require("../../../../theme/shared/spacing"));
|
|
11
|
+
var _animations = require("../../../../theme/shared/animations");
|
|
11
12
|
const FundraisingRegulatorWrapper = _styledComponents.default.div.withConfig({
|
|
12
13
|
displayName: "FundraisingRegulatorLogo__FundraisingRegulatorWrapper",
|
|
13
14
|
componentId: "sc-1ngdz4u-0"
|
|
14
|
-
})(["width:75%;margin:", "
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
15
|
+
})(["width:75%;margin:", ";max-width:200px;img{display:block;}", ""], _ref => {
|
|
16
|
+
let {
|
|
17
|
+
$noMargin
|
|
18
|
+
} = _ref;
|
|
19
|
+
return $noMargin ? '0' : `${(0, _spacing.default)('lg')} 0`;
|
|
20
|
+
}, _ref2 => {
|
|
21
|
+
let {
|
|
22
|
+
animateOnHover
|
|
23
|
+
} = _ref2;
|
|
24
|
+
return animateOnHover && (0, _animations.springScaleAnimation)(true);
|
|
25
|
+
});
|
|
26
|
+
const FundraisingRegulatorLogo = _ref3 => {
|
|
27
|
+
let {
|
|
28
|
+
animateOnHover = false,
|
|
29
|
+
noMargin = false
|
|
30
|
+
} = _ref3;
|
|
31
|
+
return /*#__PURE__*/_react.default.createElement(FundraisingRegulatorWrapper, {
|
|
32
|
+
animateOnHover: animateOnHover,
|
|
33
|
+
$noMargin: noMargin
|
|
34
|
+
}, /*#__PURE__*/_react.default.createElement("a", {
|
|
35
|
+
href: "https://www.fundraisingregulator.org.uk/validate?registrant=COMIC+RELIEF",
|
|
36
|
+
className: "fr-digital-badge",
|
|
37
|
+
style: {
|
|
38
|
+
height: 'auto',
|
|
39
|
+
width: '150px',
|
|
40
|
+
textDecoration: 'none'
|
|
41
|
+
},
|
|
42
|
+
target: "_blank"
|
|
43
|
+
}, /*#__PURE__*/_react.default.createElement("img", {
|
|
44
|
+
src: "https://www.fundraisingregulator.org.uk/fr-badge/80983ed7-ea80-40db-8e52-4a3351d9e77d/en/white",
|
|
45
|
+
width: "100%",
|
|
46
|
+
alt: "Fundraising Regulator badge with validation link",
|
|
47
|
+
loading: "lazy"
|
|
48
|
+
})));
|
|
49
|
+
};
|
|
30
50
|
var _default = exports.default = FundraisingRegulatorLogo;
|
|
@@ -47,7 +47,7 @@ const SubNavMenu = exports.SubNavMenu = _styledComponents.default.ul.withConfig(
|
|
|
47
47
|
let {
|
|
48
48
|
theme
|
|
49
49
|
} = _ref4;
|
|
50
|
-
return theme.
|
|
50
|
+
return theme.breakpoints2026('M');
|
|
51
51
|
}, _ref5 => {
|
|
52
52
|
let {
|
|
53
53
|
column
|
|
@@ -65,7 +65,7 @@ const SubNavItem = exports.SubNavItem = _styledComponents.default.li.withConfig(
|
|
|
65
65
|
let {
|
|
66
66
|
theme
|
|
67
67
|
} = _ref6;
|
|
68
|
-
return theme.
|
|
68
|
+
return theme.breakpoints2026('M');
|
|
69
69
|
}, _ref7 => {
|
|
70
70
|
let {
|
|
71
71
|
column
|
|
@@ -75,7 +75,7 @@ const SubNavItem = exports.SubNavItem = _styledComponents.default.li.withConfig(
|
|
|
75
75
|
let {
|
|
76
76
|
theme
|
|
77
77
|
} = _ref8;
|
|
78
|
-
return theme.
|
|
78
|
+
return theme.breakpoints2026('L');
|
|
79
79
|
}, _ref9 => {
|
|
80
80
|
let {
|
|
81
81
|
column
|
|
@@ -106,7 +106,7 @@ const NavMenu = exports.NavMenu = _styledComponents.default.ul.withConfig({
|
|
|
106
106
|
let {
|
|
107
107
|
theme
|
|
108
108
|
} = _ref11;
|
|
109
|
-
return theme.
|
|
109
|
+
return theme.breakpoints2026('M');
|
|
110
110
|
});
|
|
111
111
|
|
|
112
112
|
/**
|
|
@@ -127,17 +127,17 @@ const NavItem = exports.NavItem = _styledComponents.default.li.withConfig({
|
|
|
127
127
|
let {
|
|
128
128
|
theme
|
|
129
129
|
} = _ref12;
|
|
130
|
-
return theme.
|
|
130
|
+
return theme.breakpoints2026('M');
|
|
131
131
|
}, _ref13 => {
|
|
132
132
|
let {
|
|
133
133
|
theme
|
|
134
134
|
} = _ref13;
|
|
135
|
-
return theme.
|
|
135
|
+
return theme.breakpoints2026('L');
|
|
136
136
|
}, _ref14 => {
|
|
137
137
|
let {
|
|
138
138
|
theme
|
|
139
139
|
} = _ref14;
|
|
140
|
-
return theme.
|
|
140
|
+
return theme.breakpoints2026('M');
|
|
141
141
|
}, _ref15 => {
|
|
142
142
|
let {
|
|
143
143
|
theme
|
|
@@ -157,5 +157,5 @@ const NavItem = exports.NavItem = _styledComponents.default.li.withConfig({
|
|
|
157
157
|
let {
|
|
158
158
|
theme
|
|
159
159
|
} = _ref18;
|
|
160
|
-
return theme.
|
|
160
|
+
return theme.breakpoints2026('M');
|
|
161
161
|
});
|