@twreporter/universal-header 2.2.0-rc.5

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 (39) hide show
  1. package/CHANGELOG.md +302 -0
  2. package/LICENSE +21 -0
  3. package/README.md +223 -0
  4. package/lib/actions/auth.js +105 -0
  5. package/lib/actions/error-action-creators.js +162 -0
  6. package/lib/components/action-button.js +216 -0
  7. package/lib/components/channels.js +420 -0
  8. package/lib/components/customized-link.js +49 -0
  9. package/lib/components/drop-down-menu.js +138 -0
  10. package/lib/components/hamburger-icons.js +270 -0
  11. package/lib/components/hamburger-menu.js +152 -0
  12. package/lib/components/header.js +233 -0
  13. package/lib/components/icons.js +276 -0
  14. package/lib/components/mobile-header.js +264 -0
  15. package/lib/components/search-box.js +214 -0
  16. package/lib/components/slogan.js +57 -0
  17. package/lib/constants/action-types.js +14 -0
  18. package/lib/constants/actions.js +35 -0
  19. package/lib/constants/categories.js +32 -0
  20. package/lib/constants/channels.js +41 -0
  21. package/lib/constants/colors.js +17 -0
  22. package/lib/constants/external-links.js +13 -0
  23. package/lib/constants/fonts.js +32 -0
  24. package/lib/constants/prop-types.js +46 -0
  25. package/lib/constants/services.js +31 -0
  26. package/lib/constants/slogan.js +9 -0
  27. package/lib/constants/theme.js +13 -0
  28. package/lib/containers/header.js +375 -0
  29. package/lib/contexts/header-context.js +17 -0
  30. package/lib/index.js +18 -0
  31. package/lib/reducers/auth.js +109 -0
  32. package/lib/reducers/index.js +22 -0
  33. package/lib/standalone-header.js +110 -0
  34. package/lib/utils/animations.js +32 -0
  35. package/lib/utils/icon.js +905 -0
  36. package/lib/utils/jwt.js +37 -0
  37. package/lib/utils/links.js +177 -0
  38. package/lib/utils/theme.js +415 -0
  39. package/package.json +38 -0
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _styledComponents = require("styled-components");
9
+
10
+ var changeOpacity = function changeOpacity(valueFrom, valueTo) {
11
+ return (0, _styledComponents.keyframes)(["from{opacity:", ";}to{opacity:", ";}"], valueFrom, valueTo);
12
+ };
13
+
14
+ var changeHeight = function changeHeight(valueFrom, valueTo) {
15
+ return (0, _styledComponents.keyframes)(["from{height:", ";}to{height:", ";}"], valueFrom, valueTo);
16
+ };
17
+
18
+ var changeWidth = function changeWidth(valueFrom, valueTo) {
19
+ return (0, _styledComponents.keyframes)(["from{width:", ";}to{width:", ";}"], valueFrom, valueTo);
20
+ };
21
+
22
+ var changeTranslateX = function changeTranslateX(valueFrom, valueTo) {
23
+ return (0, _styledComponents.keyframes)(["from{transform:translateX(", ");}to{transform:translateX(", ");}"], valueFrom, valueTo);
24
+ };
25
+
26
+ var _default = {
27
+ changeOpacity: changeOpacity,
28
+ changeHeight: changeHeight,
29
+ changeWidth: changeWidth,
30
+ changeTranslateX: changeTranslateX
31
+ };
32
+ exports["default"] = _default;