@comicrelief/component-library 8.47.2 → 8.47.4

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 (26) hide show
  1. package/dist/components/Atoms/SocialIcons/Icon/Icon.js +1 -1
  2. package/dist/components/Atoms/SocialIcons/SocialIcons.js +39 -14
  3. package/dist/components/Atoms/SocialIcons/__snapshots__/SocialIcons.test.js.snap +36 -12
  4. package/dist/components/Molecules/EmailSignUp/EmailSignUp.js +13 -1
  5. package/dist/components/Molecules/EmailSignUp/EmailSignUp.style.js +6 -6
  6. package/dist/components/Molecules/HeroBanner/HeroBanner.md +1 -3
  7. package/dist/components/Organisms/Footer/FundraisingRegulatorLogo/FundraisingRegulatorLogo.js +2 -2
  8. package/dist/components/Organisms/Footer/__snapshots__/Footer.test.js.snap +12 -4
  9. package/dist/components/Organisms/FooterNew/FooterNew.js +4 -2
  10. package/dist/components/Organisms/FooterNew/FooterNew.style.js +68 -68
  11. package/dist/components/Organisms/FooterNew/__snapshots__/FooterNew.test.js.snap +281 -177
  12. package/dist/theme/shared/animations.js +14 -2
  13. package/package.json +1 -1
  14. package/src/components/Atoms/SocialIcons/Icon/Icon.js +1 -0
  15. package/src/components/Atoms/SocialIcons/SocialIcons.js +7 -3
  16. package/src/components/Atoms/SocialIcons/__snapshots__/SocialIcons.test.js.snap +36 -12
  17. package/src/components/Molecules/EmailSignUp/EmailSignUp.js +7 -1
  18. package/src/components/Molecules/EmailSignUp/EmailSignUp.style.js +56 -6
  19. package/src/components/Molecules/HeroBanner/HeroBanner.md +1 -3
  20. package/src/components/Molecules/HeroBanner/HeroBanner.style.js +0 -1
  21. package/src/components/Organisms/Footer/FundraisingRegulatorLogo/FundraisingRegulatorLogo.js +2 -2
  22. package/src/components/Organisms/Footer/__snapshots__/Footer.test.js.snap +12 -4
  23. package/src/components/Organisms/FooterNew/FooterNew.js +2 -2
  24. package/src/components/Organisms/FooterNew/FooterNew.style.js +27 -12
  25. package/src/components/Organisms/FooterNew/__snapshots__/FooterNew.test.js.snap +281 -177
  26. package/src/theme/shared/animations.js +27 -1
@@ -57,6 +57,27 @@ const springScaleAnimation = (animateScale, scaleFactor = 1.08, bounceIntensity
57
57
  `;
58
58
  };
59
59
 
60
+ /**
61
+ * formFieldInputAnimation on hover / focus-within
62
+ * Slides the text inside an input a few pixels to the right.
63
+ * @param {number} shiftPx - Pixel amount to indent the text (default: 4)
64
+ * @returns {css}
65
+ */
66
+ const formFieldInputAnimation = (shiftPx = 4) => css`
67
+ input,
68
+ textarea {
69
+ text-indent: 0;
70
+ transition: text-indent 0.18s ease;
71
+ }
72
+
73
+ &:hover input,
74
+ &:hover textarea,
75
+ &:focus-within input,
76
+ &:focus-within textarea {
77
+ text-indent: ${shiftPx}px;
78
+ }
79
+ `;
80
+
60
81
  /**
61
82
  * bounceUpAnimation animation on hover
62
83
  * Applies a smooth spring-like position transition that moves the element up on hover/focus
@@ -85,4 +106,9 @@ const bounceUpAnimation = (animateScale, pixelMovement = 10, bounceIntensity = 1
85
106
  `;
86
107
  };
87
108
 
88
- export { logoRotateAnimation, springScaleAnimation, bounceUpAnimation };
109
+ export {
110
+ logoRotateAnimation,
111
+ springScaleAnimation,
112
+ formFieldInputAnimation,
113
+ bounceUpAnimation
114
+ };