@comicrelief/component-library 7.35.5 → 7.35.7

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.
@@ -22,7 +22,7 @@ const WYMDCarousel = _ref => {
22
22
  }
23
23
  } = _ref;
24
24
  // Defaults to mobile config:
25
- const [isMobileOrTablet, setIsMobileOrTablet] = (0, _react.useState)(true);
25
+ const [isMobile, setIsMobile] = (0, _react.useState)(true);
26
26
  const [visibleSlides, setVisibleSlides] = (0, _react.useState)(1);
27
27
  const [totalSlides, setTotalSlides] = (0, _react.useState)(null);
28
28
  const [theseItems, setTheseItems] = (0, _react.useState)();
@@ -30,23 +30,23 @@ const WYMDCarousel = _ref => {
30
30
  // Custom function to let us update the carousel config dynamically
31
31
  const screenResize = (0, _react.useCallback)(() => {
32
32
  const screenSize = typeof window !== 'undefined' ? window.innerWidth : null;
33
- const isCurrentlyMobile = window.innerWidth < _breakpoint.sizes.medium;
34
- if (screenSize !== null && isMobileOrTablet !== isCurrentlyMobile) {
35
- setIsMobileOrTablet(isCurrentlyMobile);
33
+ const isCurrentlyMobile = window.innerWidth < _breakpoint.sizes.small;
34
+ if (screenSize !== null && isMobile !== isCurrentlyMobile) {
35
+ setIsMobile(isCurrentlyMobile);
36
36
  setVisibleSlides(isCurrentlyMobile ? 1 : 3);
37
37
  setTotalSlides(isCurrentlyMobile ? theseItems.length : theseItems.length + 2);
38
38
  }
39
- }, [isMobileOrTablet, theseItems]);
39
+ }, [isMobile, theseItems]);
40
40
 
41
41
  // Format our data BEFORE we use it in render:
42
42
  (0, _react.useEffect)(() => {
43
43
  setTheseItems((0, _utils.default)(data));
44
44
  }, [setTheseItems, data]);
45
45
  (0, _react.useEffect)(() => {
46
- if (window !== 'undefined' && window.innerWidth >= _breakpoint.sizes.medium) {
46
+ if (window !== 'undefined' && window.innerWidth >= _breakpoint.sizes.small) {
47
47
  // On inital render, update carousel plugin config
48
48
  // to suit the non-mobile layout and functionality:
49
- setIsMobileOrTablet(false);
49
+ setIsMobile(false);
50
50
  setVisibleSlides(3);
51
51
  }
52
52
 
@@ -55,7 +55,7 @@ const WYMDCarousel = _ref => {
55
55
  }, [screenResize]);
56
56
  if (theseItems && totalSlides === null) {
57
57
  // Reflects our two dummy/bookend slides for non-mobile/tablet views:
58
- setTotalSlides(isMobileOrTablet ? theseItems.length : theseItems.length + 2);
58
+ setTotalSlides(isMobile ? theseItems.length : theseItems.length + 2);
59
59
  }
60
60
  return /*#__PURE__*/_react.default.createElement(_WYMDCarousel.CarouselWrapper, {
61
61
  className: "CarouselWrapper",
@@ -84,12 +84,12 @@ const WYMDCarousel = _ref => {
84
84
  infinite: true
85
85
  }, /*#__PURE__*/_react.default.createElement(_pureReactCarousel.Slider, {
86
86
  classNameAnimation: "wymd-carousel"
87
- }, isMobileOrTablet === false && /*#__PURE__*/_react.default.createElement(_pureReactCarousel.Slide, {
87
+ }, isMobile === false && /*#__PURE__*/_react.default.createElement(_pureReactCarousel.Slide, {
88
88
  index: 0,
89
89
  key: 0
90
90
  }), Object.keys(theseItems).map((key, index) => {
91
91
  // Reflect that initial dummy/bookend slide shown on non-mobile/tablet views:
92
- const thisOffsetIndex = index + (isMobileOrTablet ? 0 : 1);
92
+ const thisOffsetIndex = index + (isMobile ? 0 : 1);
93
93
  return (
94
94
  /*#__PURE__*/
95
95
  // Calculate the index offset accordingly to reflect the number of slides,
@@ -109,14 +109,12 @@ const WYMDCarousel = _ref => {
109
109
  tag: "h1",
110
110
  family: "Anton",
111
111
  uppercase: true,
112
- weight: "normal",
113
- size: "xl"
112
+ weight: "normal"
114
113
  }, theseItems[key].amount)), /*#__PURE__*/_react.default.createElement(_WYMDCarousel.CopyWrapper, null, /*#__PURE__*/_react.default.createElement(_Text.default, {
115
- tag: "p",
116
- size: "m"
114
+ tag: "p"
117
115
  }, theseItems[key].copy))))
118
116
  );
119
- }), isMobileOrTablet === false && /*#__PURE__*/_react.default.createElement(_pureReactCarousel.Slide, {
117
+ }), isMobile === false && /*#__PURE__*/_react.default.createElement(_pureReactCarousel.Slide, {
120
118
  index: theseItems.length + 1,
121
119
  key: "bookend-last"
122
120
  })), /*#__PURE__*/_react.default.createElement(_pureReactCarousel.ButtonBack, null, "Back"), /*#__PURE__*/_react.default.createElement(_pureReactCarousel.ButtonNext, null, "Next")));
@@ -12,12 +12,12 @@ var _Text = _interopRequireDefault(require("../../Atoms/Text/Text"));
12
12
  const animationSpeed = 0.75;
13
13
 
14
14
  // Use to calc positions when scaling copy
15
- const textScaleOffsetA = 50;
15
+ const textScaleOffsetA = 45;
16
16
  const textScaleOffsetB = 5;
17
17
  const ImageWrapper = exports.ImageWrapper = _styledComponents.default.div.withConfig({
18
18
  displayName: "WYMDCarouselstyle__ImageWrapper",
19
19
  componentId: "sc-115z54p-0"
20
- })(["width:45%;display:block;padding:9%;border:2px dashed #89888b;border-radius:50%;position:relative;overflow:visible;img{width:100%;height:auto;}&:after{position:absolute;content:'';top:50%;width:125%;right:calc(-125% - 2px);height:2px;border-bottom:2px dashed #89888b;}@media ", "{width:50%;padding:9%;&:after{width:100%;right:calc(-100% - 8px);}}"], _ref => {
20
+ })(["width:45%;display:block;padding:9%;border:2px dashed #89888b;border-radius:50%;position:relative;overflow:visible;img{width:100%;height:auto;display:block;}&:after{position:absolute;content:'';top:50%;width:125%;right:calc(-125% - 2px);height:2px;border-bottom:2px dashed #89888b;}@media ", "{width:50%;padding:9%;&:after{width:100%;right:calc(-100% - 8px);}}"], _ref => {
21
21
  let {
22
22
  theme
23
23
  } = _ref;
@@ -26,41 +26,56 @@ const ImageWrapper = exports.ImageWrapper = _styledComponents.default.div.withCo
26
26
  const AmountWrapper = exports.AmountWrapper = _styledComponents.default.div.withConfig({
27
27
  displayName: "WYMDCarouselstyle__AmountWrapper",
28
28
  componentId: "sc-115z54p-1"
29
- })(["padding:", " 0;width:75%;margin:0 auto;"], (0, _spacing.default)('m'));
29
+ })(["padding:", " 0 0.75rem;h1{font-size:34px;line-height:37px;@media ", "{font-size:40px;line-height:40px;}}"], (0, _spacing.default)('m'), _ref2 => {
30
+ let {
31
+ theme
32
+ } = _ref2;
33
+ return theme.breakpoint('small');
34
+ });
30
35
  const CopyWrapper = exports.CopyWrapper = _styledComponents.default.div.withConfig({
31
36
  displayName: "WYMDCarouselstyle__CopyWrapper",
32
37
  componentId: "sc-115z54p-2"
33
- })(["padding:", " 0;width:75%;margin:0 auto;"], (0, _spacing.default)('sm'));
38
+ })(["padding:0;width:75%;margin:0 auto;p{font-size:", ";line-height:", ";}"], _ref3 => {
39
+ let {
40
+ theme
41
+ } = _ref3;
42
+ return theme.fontSize('s');
43
+ }, _ref4 => {
44
+ let {
45
+ theme
46
+ } = _ref4;
47
+ return theme.fontSize('l');
48
+ });
34
49
  const Heading = exports.Heading = (0, _styledComponents.default)(_Text.default).withConfig({
35
50
  displayName: "WYMDCarouselstyle__Heading",
36
51
  componentId: "sc-115z54p-3"
37
- })(["width:75%;margin:0 auto;&:first-child{margin-bottom:", ";text-align:center;font-size:16px;line-height:19.5px;@media ", "{font-size:20px;line-height:24.38px;}}"], (0, _spacing.default)('l'), _ref2 => {
52
+ })(["width:75%;margin:0 auto;&:first-child{margin-bottom:", ";text-align:center;font-size:16px;line-height:19.5px;@media ", "{font-size:20px;line-height:24.38px;}}"], (0, _spacing.default)('l'), _ref5 => {
38
53
  let {
39
54
  theme
40
- } = _ref2;
55
+ } = _ref5;
41
56
  return theme.breakpoint('medium');
42
57
  });
43
58
  const PeopleHelpedText = exports.PeopleHelpedText = (0, _styledComponents.default)(_Text.default).withConfig({
44
59
  displayName: "WYMDCarouselstyle__PeopleHelpedText",
45
60
  componentId: "sc-115z54p-4"
46
- })(["margin-bottom:", ";text-align:center;font-size:34px;line-height:37px;@media ", "{font-size:60px;line-height:60px;}@media ", "{font-size:64px;line-height:68px;}"], (0, _spacing.default)('l'), _ref3 => {
61
+ })(["margin-bottom:", ";text-align:center;font-size:34px;line-height:37px;@media ", "{font-size:60px;line-height:60px;}@media ", "{font-size:64px;line-height:68px;}"], (0, _spacing.default)('l'), _ref6 => {
47
62
  let {
48
63
  theme
49
- } = _ref3;
64
+ } = _ref6;
50
65
  return theme.breakpoint('small');
51
- }, _ref4 => {
66
+ }, _ref7 => {
52
67
  let {
53
68
  theme
54
- } = _ref4;
69
+ } = _ref7;
55
70
  return theme.breakpoint('medium');
56
71
  });
57
72
  const Including = exports.Including = (0, _styledComponents.default)(_Text.default).withConfig({
58
73
  displayName: "WYMDCarouselstyle__Including",
59
74
  componentId: "sc-115z54p-5"
60
- })(["margin-bottom:0;text-align:center;font-size:12px;line-height:14.63px;@media ", "{font-size:17px;line-height:19px;}"], _ref5 => {
75
+ })(["margin-bottom:0;text-align:center;font-size:12px;line-height:14.63px;@media ", "{font-size:17px;line-height:19px;}"], _ref8 => {
61
76
  let {
62
77
  theme
63
- } = _ref5;
78
+ } = _ref8;
64
79
  return theme.breakpoint('small');
65
80
  });
66
81
 
@@ -68,29 +83,39 @@ const Including = exports.Including = (0, _styledComponents.default)(_Text.defau
68
83
  const CarouselWrapper = exports.CarouselWrapper = _styledComponents.default.div.withConfig({
69
84
  displayName: "WYMDCarouselstyle__CarouselWrapper",
70
85
  componentId: "sc-115z54p-6"
71
- })(["height:100%;background-color:", ";max-width:760px;padding:", ";margin:0 auto;border-radius:20px;box-shadow:0px 0px 20px rgba(0,0,0,0.15);.carousel{position:relative;margin:0 auto;padding-top:", ";@media ", "{padding-top:", ";}button.carousel__back-button,button.carousel__next-button{position:absolute;left:0;top:0;width:33% !important;height:100%;padding:0 !important;box-shadow:none;text-indent:-9999px;background-color:transparent;border:none;&:before{content:'';position:absolute;width:30px;height:30px;top:50%;left:0;transform:translate(0,-50%) rotate(90deg);}&:after{content:\"\";position:absolute;top:0;left:0;width:50%;height:100%;transition:opacity 0.2s linear;background:linear-gradient(90deg,rgba(255,255,255,0.95),rgba(255,255,255,0.5),rgba(255,255,255,0));}&:hover{&:after{opacity:0.5;}}@media ", "{width:33.3% !important;&:after{width:100%;}}}button.carousel__next-button{left:auto;right:0;&:before{transform:translate(0,-50%) rotate(-90deg);}&:after{left:auto;right:0;background:linear-gradient(270deg,rgba(255,255,255,0.95),rgba(255,255,255,0.75),rgba(255,255,255,0));}}.wymd-carousel{transition:-webkit-transform ", "s;-o-transition:transform ", "s;transition:transform ", "s;-webkit-transform:", "s;will-change:transform;.last-slide{.image-wrapper:after{content:none;}}.carousel__slide{padding-bottom:", "px !important;@media ", "{padding-bottom:", "px !important;}@media ", "{padding-bottom:", "px !important;.carousel__inner-slide{> div:first-child{transition:transform ", "s ease;transform:scale(0.5);&:after{transition:transform ", "s ease,width ", "s ease,right ", "s ease;right:calc(-300% - 6px);transform:scale(1);width:300%;}}.all-text-wrapper{transition:transform ", "s ease;transform-origin:top;transform:translateY(calc(-", "px + ", "%)) scale(0.5)}}&.carousel__slide--visible{.carousel__inner-slide{> div:first-child{&:after{right:calc(-250% - 6px);transform:scale(1);width:250%;}}}+ .carousel__slide--visible{.carousel__inner-slide{> div:first-child{transform:scale(1);&:after{right:calc(-187% - 6px);transform:scale(0.5);width:250%;}}}.all-text-wrapper{transform:translateY(0) scale(1);}+ .carousel__slide--visible{> div > div:first-child{transform:scale(0.5);&:after{right:calc(-250% - 6px);transform:scale(1);width:250%;}}.all-text-wrapper{transform:translateY(calc(-", "px + ", "%)) scale(0.5)}}}}}.carousel__inner-slide{text-align:center;display:inline-flex;align-items:center;justify-content:flex-start;flex-direction:column;}}}}"], _ref6 => {
86
+ })(["height:100%;background-color:", ";max-width:760px;padding:", ";margin:0 auto;border-radius:20px;box-shadow:0px 0px 20px rgba(0,0,0,0.15);.carousel{position:relative;margin:0 auto;padding-top:", ";@media ", "{padding-top:", ";}button.carousel__back-button,button.carousel__next-button{position:absolute;left:0;top:0;width:33% !important;height:100%;padding:0 !important;box-shadow:none;text-indent:-9999px;background-color:transparent;border:none;&:after{content:\"\";position:absolute;top:0;left:0;width:50%;height:100%;transition:opacity 0.2s linear;background:linear-gradient(90deg,rgba(255,255,255,1),rgba(255,255,255,0.5),rgba(255,255,255,0));}&:hover{&:after{opacity:0.5;}}@media ", "{width:33.3% !important;&:after{width:100%;}}}button.carousel__next-button{left:auto;right:0;&:before{transform:translate(0,-50%) rotate(-90deg);}&:after{left:auto;right:0;background:linear-gradient(270deg,rgba(255,255,255,1),rgba(255,255,255,0.5),rgba(255,255,255,0));}}.wymd-carousel{transition:-webkit-transform ", "s;-o-transition:transform ", "s;transition:transform ", "s;-webkit-transform:", "s;will-change:transform;.last-slide{.image-wrapper:after{content:none;}}.carousel__slide{padding-bottom:", "px !important;@media ", "{padding-bottom:", "px !important;}@media ", "{padding-bottom:", "px !important;}@media ", "{padding-bottom:", "px !important;.carousel__inner-slide{> div:first-child{transition:transform ", "s ease;transform:scale(0.5);&:after{transition:transform ", "s ease,width ", "s ease,right ", "s ease;right:calc(-300% - 6px);transform:scale(1);width:300%;}}.all-text-wrapper{transition:transform ", "s ease;transform-origin:top;transform:translateY(calc(-", "px + ", "%)) scale(0.5)}}&.carousel__slide--visible{.carousel__inner-slide{> div:first-child{&:after{right:calc(-300% - 6px);transform:scale(1);width:300%;}}}+ .carousel__slide--visible{.carousel__inner-slide{> div:first-child{transform:scale(1);&:after{right:calc(-222% - 6px);transform:scale(0.5);width:300%;}}}.all-text-wrapper{transform:translateY(0) scale(1);}+ .carousel__slide--visible{> div > div:first-child{transform:scale(0.5);&:after{right:calc(-300% - 6px);transform:scale(1);width:300%;}}.all-text-wrapper{transform:translateY(calc(-", "px + ", "%)) scale(0.5)}}}}}@media ", "{&.carousel__slide--visible{.carousel__inner-slide{> div:first-child{&:after{right:calc(-250% - 6px);width:250%;}}}+ .carousel__slide--visible{.carousel__inner-slide{> div:first-child{&:after{right:calc(-187% - 6px);width:250%;}}}+ .carousel__slide--visible{.carousel__inner-slide{> div:first-child{&:after{right:calc(-250% - 6px);width:250%;}}}}}}}.carousel__inner-slide{text-align:center;display:inline-flex;align-items:center;justify-content:flex-start;flex-direction:column;}}}}"], _ref9 => {
72
87
  let {
73
88
  theme
74
- } = _ref6;
89
+ } = _ref9;
75
90
  return theme.color('white');
76
- }, (0, _spacing.default)('l'), (0, _spacing.default)('l'), _ref7 => {
91
+ }, (0, _spacing.default)('l'), (0, _spacing.default)('l'), _ref10 => {
77
92
  let {
78
93
  theme
79
- } = _ref7;
94
+ } = _ref10;
80
95
  return theme.breakpoint('medium');
81
- }, (0, _spacing.default)('l'), _ref8 => {
96
+ }, (0, _spacing.default)('l'), _ref11 => {
82
97
  let {
83
98
  theme
84
- } = _ref8;
99
+ } = _ref11;
100
+ return theme.breakpoint('small');
101
+ }, animationSpeed, animationSpeed, animationSpeed, animationSpeed, props => props.mobileHeight, _ref12 => {
102
+ let {
103
+ theme
104
+ } = _ref12;
105
+ return theme.breakpoint('small');
106
+ }, props => props.tabletHeight, _ref13 => {
107
+ let {
108
+ theme
109
+ } = _ref13;
85
110
  return theme.breakpoint('medium');
86
- }, animationSpeed, animationSpeed, animationSpeed, animationSpeed, props => props.mobileHeight, _ref9 => {
111
+ }, props => props.tabletHeight, _ref14 => {
87
112
  let {
88
113
  theme
89
- } = _ref9;
114
+ } = _ref14;
90
115
  return theme.breakpoint('small');
91
- }, props => props.tabletHeight, _ref10 => {
116
+ }, props => props.desktopHeight, animationSpeed, animationSpeed, animationSpeed, animationSpeed, animationSpeed, textScaleOffsetA, textScaleOffsetB, textScaleOffsetA, textScaleOffsetB, _ref15 => {
92
117
  let {
93
118
  theme
94
- } = _ref10;
119
+ } = _ref15;
95
120
  return theme.breakpoint('medium');
96
- }, props => props.desktopHeight, animationSpeed, animationSpeed, animationSpeed, animationSpeed, animationSpeed, textScaleOffsetA, textScaleOffsetB, textScaleOffsetA, textScaleOffsetB);
121
+ });
@@ -12,5 +12,5 @@ it("renders correctly", () => {
12
12
  const tree = (0, _shallowWithTheme.default)( /*#__PURE__*/_react.default.createElement(_WYMDCarousel.default, {
13
13
  data: carouselItemsComplete
14
14
  })).toJSON();
15
- expect(tree).toMatchInlineSnapshot("\n .c1 {\n font-size: 1rem;\n line-height: 1rem;\n text-transform: inherit;\n font-weight: bold;\n line-height: normal;\n font-family: 'Montserrat',Helvetica,Arial,sans-serif;\n }\n\n .c3 {\n color: #E52630;\n font-size: 1rem;\n line-height: 1rem;\n text-transform: uppercase;\n font-weight: normal;\n font-family: 'Anton',Impact,sans-serif;\n -webkit-letter-spacing: 0.03rem;\n -moz-letter-spacing: 0.03rem;\n -ms-letter-spacing: 0.03rem;\n letter-spacing: 0.03rem;\n }\n\n .c5 {\n font-size: 1rem;\n line-height: 1rem;\n text-transform: inherit;\n line-height: normal;\n font-family: 'Montserrat',Helvetica,Arial,sans-serif;\n }\n\n .c2 {\n width: 75%;\n margin: 0 auto;\n }\n\n .c2:first-child {\n margin-bottom: 2rem;\n text-align: center;\n font-size: 16px;\n line-height: 19.5px;\n }\n\n .c4 {\n margin-bottom: 2rem;\n text-align: center;\n font-size: 34px;\n line-height: 37px;\n }\n\n .c6 {\n margin-bottom: 0;\n text-align: center;\n font-size: 12px;\n line-height: 14.63px;\n }\n\n .c0 {\n height: 100%;\n background-color: #FFFFFF;\n max-width: 760px;\n padding: 2rem;\n margin: 0 auto;\n border-radius: 20px;\n box-shadow: 0px 0px 20px rgba(0,0,0,0.15);\n }\n\n .c0 .carousel {\n position: relative;\n margin: 0 auto;\n padding-top: 2rem;\n }\n\n .c0 .carousel button.carousel__back-button,\n .c0 .carousel button.carousel__next-button {\n position: absolute;\n left: 0;\n top: 0;\n width: 33% !important;\n height: 100%;\n padding: 0 !important;\n box-shadow: none;\n text-indent: -9999px;\n background-color: transparent;\n border: none;\n }\n\n .c0 .carousel button.carousel__back-button:before,\n .c0 .carousel button.carousel__next-button:before {\n content: '';\n position: absolute;\n width: 30px;\n height: 30px;\n top: 50%;\n left: 0;\n -webkit-transform: translate(0,-50%) rotate(90deg);\n -ms-transform: translate(0,-50%) rotate(90deg);\n transform: translate(0,-50%) rotate(90deg);\n }\n\n .c0 .carousel button.carousel__back-button:after,\n .c0 .carousel button.carousel__next-button:after {\n content: \"\";\n position: absolute;\n top: 0;\n left: 0;\n width: 50%;\n height: 100%;\n -webkit-transition: opacity 0.2s linear;\n transition: opacity 0.2s linear;\n background: linear-gradient(90deg,rgba(255,255,255,0.95),rgba(255,255,255,0.5),rgba(255,255,255,0));\n }\n\n .c0 .carousel button.carousel__back-button:hover:after,\n .c0 .carousel button.carousel__next-button:hover:after {\n opacity: 0.5;\n }\n\n .c0 .carousel button.carousel__next-button {\n left: auto;\n right: 0;\n }\n\n .c0 .carousel button.carousel__next-button:before {\n -webkit-transform: translate(0,-50%) rotate(-90deg);\n -ms-transform: translate(0,-50%) rotate(-90deg);\n transform: translate(0,-50%) rotate(-90deg);\n }\n\n .c0 .carousel button.carousel__next-button:after {\n left: auto;\n right: 0;\n background: linear-gradient(270deg,rgba(255,255,255,0.95),rgba(255,255,255,0.75),rgba(255,255,255,0));\n }\n\n .c0 .carousel .wymd-carousel {\n -webkit-transition: -webkit-transform 0.75s;\n -webkit-transition: -webkit-transform 0.75s;\n transition: -webkit-transform 0.75s;\n -o-transition: transform 0.75s;\n -webkit-transition: -webkit-transform 0.75s;\n -webkit-transition: transform 0.75s;\n transition: transform 0.75s;\n -webkit-transform: 0.75s;\n will-change: transform;\n }\n\n .c0 .carousel .wymd-carousel .last-slide .image-wrapper:after {\n content: none;\n }\n\n .c0 .carousel .wymd-carousel .carousel__slide {\n padding-bottom: 450px !important;\n }\n\n .c0 .carousel .wymd-carousel .carousel__slide .carousel__inner-slide {\n text-align: center;\n display: -webkit-inline-box;\n display: -webkit-inline-flex;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-align-items: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: start;\n -webkit-justify-content: flex-start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n -webkit-flex-direction: column;\n -ms-flex-direction: column;\n flex-direction: column;\n }\n\n @media (min-width:1024px) {\n .c2:first-child {\n font-size: 20px;\n line-height: 24.38px;\n }\n }\n\n @media (min-width:740px) {\n .c4 {\n font-size: 60px;\n line-height: 60px;\n }\n }\n\n @media (min-width:1024px) {\n .c4 {\n font-size: 64px;\n line-height: 68px;\n }\n }\n\n @media (min-width:740px) {\n .c6 {\n font-size: 17px;\n line-height: 19px;\n }\n }\n\n @media (min-width:1024px) {\n .c0 .carousel {\n padding-top: 2rem;\n }\n }\n\n @media (min-width:1024px) {\n .c0 .carousel button.carousel__back-button,\n .c0 .carousel button.carousel__next-button {\n width: 33.3% !important;\n }\n\n .c0 .carousel button.carousel__back-button:after,\n .c0 .carousel button.carousel__next-button:after {\n width: 100%;\n }\n }\n\n @media (min-width:740px) {\n .c0 .carousel .wymd-carousel .carousel__slide {\n padding-bottom: 500px !important;\n }\n }\n\n @media (min-width:1024px) {\n .c0 .carousel .wymd-carousel .carousel__slide {\n padding-bottom: 475px !important;\n }\n\n .c0 .carousel .wymd-carousel .carousel__slide .carousel__inner-slide > div:first-child {\n -webkit-transition: -webkit-transform 0.75s ease;\n -webkit-transition: transform 0.75s ease;\n transition: transform 0.75s ease;\n -webkit-transform: scale(0.5);\n -ms-transform: scale(0.5);\n transform: scale(0.5);\n }\n\n .c0 .carousel .wymd-carousel .carousel__slide .carousel__inner-slide > div:first-child:after {\n -webkit-transition: -webkit-transform 0.75s ease,width 0.75s ease,right 0.75s ease;\n -webkit-transition: transform 0.75s ease,width 0.75s ease,right 0.75s ease;\n transition: transform 0.75s ease,width 0.75s ease,right 0.75s ease;\n right: calc(-300% - 6px);\n -webkit-transform: scale(1);\n -ms-transform: scale(1);\n transform: scale(1);\n width: 300%;\n }\n\n .c0 .carousel .wymd-carousel .carousel__slide .carousel__inner-slide .all-text-wrapper {\n -webkit-transition: -webkit-transform 0.75s ease;\n -webkit-transition: transform 0.75s ease;\n transition: transform 0.75s ease;\n -webkit-transform-origin: top;\n -ms-transform-origin: top;\n transform-origin: top;\n -webkit-transform: translateY(calc(-50px + 5%)) scale(0.5);\n -ms-transform: translateY(calc(-50px + 5%)) scale(0.5);\n transform: translateY(calc(-50px + 5%)) scale(0.5);\n }\n\n .c0 .carousel .wymd-carousel .carousel__slide.carousel__slide--visible .carousel__inner-slide > div:first-child:after {\n right: calc(-250% - 6px);\n -webkit-transform: scale(1);\n -ms-transform: scale(1);\n transform: scale(1);\n width: 250%;\n }\n\n .c0 .carousel .wymd-carousel .carousel__slide.carousel__slide--visible + .carousel__slide--visible .carousel__inner-slide > div:first-child {\n -webkit-transform: scale(1);\n -ms-transform: scale(1);\n transform: scale(1);\n }\n\n .c0 .carousel .wymd-carousel .carousel__slide.carousel__slide--visible + .carousel__slide--visible .carousel__inner-slide > div:first-child:after {\n right: calc(-187% - 6px);\n -webkit-transform: scale(0.5);\n -ms-transform: scale(0.5);\n transform: scale(0.5);\n width: 250%;\n }\n\n .c0 .carousel .wymd-carousel .carousel__slide.carousel__slide--visible + .carousel__slide--visible .all-text-wrapper {\n -webkit-transform: translateY(0) scale(1);\n -ms-transform: translateY(0) scale(1);\n transform: translateY(0) scale(1);\n }\n\n .c0 .carousel .wymd-carousel .carousel__slide.carousel__slide--visible + .carousel__slide--visible + .carousel__slide--visible > div > div:first-child {\n -webkit-transform: scale(0.5);\n -ms-transform: scale(0.5);\n transform: scale(0.5);\n }\n\n .c0 .carousel .wymd-carousel .carousel__slide.carousel__slide--visible + .carousel__slide--visible + .carousel__slide--visible > div > div:first-child:after {\n right: calc(-250% - 6px);\n -webkit-transform: scale(1);\n -ms-transform: scale(1);\n transform: scale(1);\n width: 250%;\n }\n\n .c0 .carousel .wymd-carousel .carousel__slide.carousel__slide--visible + .carousel__slide--visible + .carousel__slide--visible .all-text-wrapper {\n -webkit-transform: translateY(calc(-50px + 5%)) scale(0.5);\n -ms-transform: translateY(calc(-50px + 5%)) scale(0.5);\n transform: translateY(calc(-50px + 5%)) scale(0.5);\n }\n }\n\n <div\n className=\"c0 CarouselWrapper\"\n id=\"7zdR84QkZwrTh9NWx2H926\"\n >\n <p\n className=\"c1 c2\"\n color=\"inherit\"\n size=\"s\"\n >\n Over the past two years, we\u2019ve supported\n </p>\n <h1\n className=\"c3 c4\"\n color=\"red\"\n size=\"s\"\n >\n 11.7 million people\n </h1>\n <p\n className=\"c5 c6\"\n color=\"inherit\"\n size=\"s\"\n >\n including...\n </p>\n </div>\n ");
15
+ expect(tree).toMatchInlineSnapshot("\n .c1 {\n font-size: 1rem;\n line-height: 1rem;\n text-transform: inherit;\n font-weight: bold;\n line-height: normal;\n font-family: 'Montserrat',Helvetica,Arial,sans-serif;\n }\n\n .c3 {\n color: #E52630;\n font-size: 1rem;\n line-height: 1rem;\n text-transform: uppercase;\n font-weight: normal;\n font-family: 'Anton',Impact,sans-serif;\n -webkit-letter-spacing: 0.03rem;\n -moz-letter-spacing: 0.03rem;\n -ms-letter-spacing: 0.03rem;\n letter-spacing: 0.03rem;\n }\n\n .c5 {\n font-size: 1rem;\n line-height: 1rem;\n text-transform: inherit;\n line-height: normal;\n font-family: 'Montserrat',Helvetica,Arial,sans-serif;\n }\n\n .c2 {\n width: 75%;\n margin: 0 auto;\n }\n\n .c2:first-child {\n margin-bottom: 2rem;\n text-align: center;\n font-size: 16px;\n line-height: 19.5px;\n }\n\n .c4 {\n margin-bottom: 2rem;\n text-align: center;\n font-size: 34px;\n line-height: 37px;\n }\n\n .c6 {\n margin-bottom: 0;\n text-align: center;\n font-size: 12px;\n line-height: 14.63px;\n }\n\n .c0 {\n height: 100%;\n background-color: #FFFFFF;\n max-width: 760px;\n padding: 2rem;\n margin: 0 auto;\n border-radius: 20px;\n box-shadow: 0px 0px 20px rgba(0,0,0,0.15);\n }\n\n .c0 .carousel {\n position: relative;\n margin: 0 auto;\n padding-top: 2rem;\n }\n\n .c0 .carousel button.carousel__back-button,\n .c0 .carousel button.carousel__next-button {\n position: absolute;\n left: 0;\n top: 0;\n width: 33% !important;\n height: 100%;\n padding: 0 !important;\n box-shadow: none;\n text-indent: -9999px;\n background-color: transparent;\n border: none;\n }\n\n .c0 .carousel button.carousel__back-button:after,\n .c0 .carousel button.carousel__next-button:after {\n content: \"\";\n position: absolute;\n top: 0;\n left: 0;\n width: 50%;\n height: 100%;\n -webkit-transition: opacity 0.2s linear;\n transition: opacity 0.2s linear;\n background: linear-gradient(90deg,rgba(255,255,255,1),rgba(255,255,255,0.5),rgba(255,255,255,0));\n }\n\n .c0 .carousel button.carousel__back-button:hover:after,\n .c0 .carousel button.carousel__next-button:hover:after {\n opacity: 0.5;\n }\n\n .c0 .carousel button.carousel__next-button {\n left: auto;\n right: 0;\n }\n\n .c0 .carousel button.carousel__next-button:before {\n -webkit-transform: translate(0,-50%) rotate(-90deg);\n -ms-transform: translate(0,-50%) rotate(-90deg);\n transform: translate(0,-50%) rotate(-90deg);\n }\n\n .c0 .carousel button.carousel__next-button:after {\n left: auto;\n right: 0;\n background: linear-gradient(270deg,rgba(255,255,255,1),rgba(255,255,255,0.5),rgba(255,255,255,0));\n }\n\n .c0 .carousel .wymd-carousel {\n -webkit-transition: -webkit-transform 0.75s;\n -webkit-transition: -webkit-transform 0.75s;\n transition: -webkit-transform 0.75s;\n -o-transition: transform 0.75s;\n -webkit-transition: -webkit-transform 0.75s;\n -webkit-transition: transform 0.75s;\n transition: transform 0.75s;\n -webkit-transform: 0.75s;\n will-change: transform;\n }\n\n .c0 .carousel .wymd-carousel .last-slide .image-wrapper:after {\n content: none;\n }\n\n .c0 .carousel .wymd-carousel .carousel__slide {\n padding-bottom: 450px !important;\n }\n\n .c0 .carousel .wymd-carousel .carousel__slide .carousel__inner-slide {\n text-align: center;\n display: -webkit-inline-box;\n display: -webkit-inline-flex;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-align-items: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: start;\n -webkit-justify-content: flex-start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n -webkit-flex-direction: column;\n -ms-flex-direction: column;\n flex-direction: column;\n }\n\n @media (min-width:1024px) {\n .c2:first-child {\n font-size: 20px;\n line-height: 24.38px;\n }\n }\n\n @media (min-width:740px) {\n .c4 {\n font-size: 60px;\n line-height: 60px;\n }\n }\n\n @media (min-width:1024px) {\n .c4 {\n font-size: 64px;\n line-height: 68px;\n }\n }\n\n @media (min-width:740px) {\n .c6 {\n font-size: 17px;\n line-height: 19px;\n }\n }\n\n @media (min-width:1024px) {\n .c0 .carousel {\n padding-top: 2rem;\n }\n }\n\n @media (min-width:740px) {\n .c0 .carousel button.carousel__back-button,\n .c0 .carousel button.carousel__next-button {\n width: 33.3% !important;\n }\n\n .c0 .carousel button.carousel__back-button:after,\n .c0 .carousel button.carousel__next-button:after {\n width: 100%;\n }\n }\n\n @media (min-width:740px) {\n .c0 .carousel .wymd-carousel .carousel__slide {\n padding-bottom: 500px !important;\n }\n }\n\n @media (min-width:1024px) {\n .c0 .carousel .wymd-carousel .carousel__slide {\n padding-bottom: 500px !important;\n }\n }\n\n @media (min-width:740px) {\n .c0 .carousel .wymd-carousel .carousel__slide {\n padding-bottom: 475px !important;\n }\n\n .c0 .carousel .wymd-carousel .carousel__slide .carousel__inner-slide > div:first-child {\n -webkit-transition: -webkit-transform 0.75s ease;\n -webkit-transition: transform 0.75s ease;\n transition: transform 0.75s ease;\n -webkit-transform: scale(0.5);\n -ms-transform: scale(0.5);\n transform: scale(0.5);\n }\n\n .c0 .carousel .wymd-carousel .carousel__slide .carousel__inner-slide > div:first-child:after {\n -webkit-transition: -webkit-transform 0.75s ease,width 0.75s ease,right 0.75s ease;\n -webkit-transition: transform 0.75s ease,width 0.75s ease,right 0.75s ease;\n transition: transform 0.75s ease,width 0.75s ease,right 0.75s ease;\n right: calc(-300% - 6px);\n -webkit-transform: scale(1);\n -ms-transform: scale(1);\n transform: scale(1);\n width: 300%;\n }\n\n .c0 .carousel .wymd-carousel .carousel__slide .carousel__inner-slide .all-text-wrapper {\n -webkit-transition: -webkit-transform 0.75s ease;\n -webkit-transition: transform 0.75s ease;\n transition: transform 0.75s ease;\n -webkit-transform-origin: top;\n -ms-transform-origin: top;\n transform-origin: top;\n -webkit-transform: translateY(calc(-45px + 5%)) scale(0.5);\n -ms-transform: translateY(calc(-45px + 5%)) scale(0.5);\n transform: translateY(calc(-45px + 5%)) scale(0.5);\n }\n\n .c0 .carousel .wymd-carousel .carousel__slide.carousel__slide--visible .carousel__inner-slide > div:first-child:after {\n right: calc(-300% - 6px);\n -webkit-transform: scale(1);\n -ms-transform: scale(1);\n transform: scale(1);\n width: 300%;\n }\n\n .c0 .carousel .wymd-carousel .carousel__slide.carousel__slide--visible + .carousel__slide--visible .carousel__inner-slide > div:first-child {\n -webkit-transform: scale(1);\n -ms-transform: scale(1);\n transform: scale(1);\n }\n\n .c0 .carousel .wymd-carousel .carousel__slide.carousel__slide--visible + .carousel__slide--visible .carousel__inner-slide > div:first-child:after {\n right: calc(-222% - 6px);\n -webkit-transform: scale(0.5);\n -ms-transform: scale(0.5);\n transform: scale(0.5);\n width: 300%;\n }\n\n .c0 .carousel .wymd-carousel .carousel__slide.carousel__slide--visible + .carousel__slide--visible .all-text-wrapper {\n -webkit-transform: translateY(0) scale(1);\n -ms-transform: translateY(0) scale(1);\n transform: translateY(0) scale(1);\n }\n\n .c0 .carousel .wymd-carousel .carousel__slide.carousel__slide--visible + .carousel__slide--visible + .carousel__slide--visible > div > div:first-child {\n -webkit-transform: scale(0.5);\n -ms-transform: scale(0.5);\n transform: scale(0.5);\n }\n\n .c0 .carousel .wymd-carousel .carousel__slide.carousel__slide--visible + .carousel__slide--visible + .carousel__slide--visible > div > div:first-child:after {\n right: calc(-300% - 6px);\n -webkit-transform: scale(1);\n -ms-transform: scale(1);\n transform: scale(1);\n width: 300%;\n }\n\n .c0 .carousel .wymd-carousel .carousel__slide.carousel__slide--visible + .carousel__slide--visible + .carousel__slide--visible .all-text-wrapper {\n -webkit-transform: translateY(calc(-45px + 5%)) scale(0.5);\n -ms-transform: translateY(calc(-45px + 5%)) scale(0.5);\n transform: translateY(calc(-45px + 5%)) scale(0.5);\n }\n }\n\n @media (min-width:1024px) {\n .c0 .carousel .wymd-carousel .carousel__slide.carousel__slide--visible .carousel__inner-slide > div:first-child:after {\n right: calc(-250% - 6px);\n width: 250%;\n }\n\n .c0 .carousel .wymd-carousel .carousel__slide.carousel__slide--visible + .carousel__slide--visible .carousel__inner-slide > div:first-child:after {\n right: calc(-187% - 6px);\n width: 250%;\n }\n\n .c0 .carousel .wymd-carousel .carousel__slide.carousel__slide--visible + .carousel__slide--visible + .carousel__slide--visible .carousel__inner-slide > div:first-child:after {\n right: calc(-250% - 6px);\n width: 250%;\n }\n }\n\n <div\n className=\"c0 CarouselWrapper\"\n id=\"7zdR84QkZwrTh9NWx2H926\"\n >\n <p\n className=\"c1 c2\"\n color=\"inherit\"\n size=\"s\"\n >\n Over the past two years, we\u2019ve supported\n </p>\n <h1\n className=\"c3 c4\"\n color=\"red\"\n size=\"s\"\n >\n 11.7 million people\n </h1>\n <p\n className=\"c5 c6\"\n color=\"inherit\"\n size=\"s\"\n >\n including...\n </p>\n </div>\n ");
16
16
  });
@@ -19,7 +19,7 @@ const formatItems = thisData => {
19
19
  for (let i = 1; i <= possibleNumberOfNodes; i += 1) {
20
20
  // Create a dynamic key prefix based on the counter, obviously matching
21
21
  // the naming convention set at the Content Type level in the CMS
22
- const thisKeyPrefix = "node".concat(i, "_");
22
+ const thisKeyPrefix = "node".concat(i);
23
23
 
24
24
  // Make an array of objects, each object representing a specific node and its fields:
25
25
  const thisNodeContent = theseKeys.filter(key => key.includes(thisKeyPrefix)).reduce((thisObj, thisKey) => {
@@ -27,7 +27,7 @@ const formatItems = thisData => {
27
27
  // Only assign if we have actually have a value; only the fields for nodes 1-4 are required:
28
28
  if (thisData[thisKey]) {
29
29
  // Use a repeatable, generic key so rendering is a LOT easier:
30
- const simplifedKey = thisKey.split('_').pop().toLowerCase();
30
+ const simplifedKey = thisKey.split(/([0-9])/).pop().toLowerCase();
31
31
  thisFilteredObj[simplifedKey] = thisData[thisKey];
32
32
  }
33
33
  return thisFilteredObj;
@@ -48,87 +48,87 @@ const carouselItemsComplete = exports.carouselItemsComplete = {
48
48
  desktopHeight: 475,
49
49
  headerCopy: 'Over the past two years, we’ve supported',
50
50
  peopleHelpedText: '11.7 million people',
51
- autoPlay: true,
52
- node1_Copy: 'NODE1: people in the UK experiencing poverty to access advice and support.',
53
- node1_Amount: '1,000',
54
- node1_Image: {
51
+ autoPlay: false,
52
+ node1Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
53
+ node1Amount: '1,000',
54
+ node1Image: {
55
55
  file: {
56
56
  url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
57
57
  }
58
58
  },
59
- node2_Copy: 'NODE2: people in the UK experiencing poverty to access advice and support. This node has a load of copy to make things extra difficult',
60
- node2_Amount: '750,000',
61
- node2_Image: {
59
+ node2Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
60
+ node2Amount: '750,000',
61
+ node2Image: {
62
62
  file: {
63
- url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
63
+ url: 'https://images.ctfassets.net/zsfivwzfgl3t/5uKnps3prnG6GpTM1EPZdC/8d7264465846de31e3bbb5b6b2c36c8f/014-helping_hand.png'
64
64
  }
65
65
  },
66
- node3_Copy: 'NODE3: people in the UK experiencing poverty to access advice and support.',
67
- node3_Amount: '3,000',
68
- node3_Image: {
66
+ node3Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
67
+ node3Amount: '3,000',
68
+ node3Image: {
69
69
  file: {
70
70
  url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
71
71
  }
72
72
  },
73
- node4_Copy: 'NODE4: people in the UK experiencing poverty to access advice and support.',
74
- node4_Amount: '4,000',
75
- node4_Image: {
73
+ node4Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
74
+ node4Amount: '4,000',
75
+ node4Image: {
76
76
  file: {
77
77
  url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
78
78
  }
79
79
  },
80
- node5_Copy: 'NODE5: people in the UK experiencing poverty to access advice and support.',
81
- node5_Amount: '5,000',
82
- node5_Image: {
80
+ node5Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
81
+ node5Amount: '5,000',
82
+ node5Image: {
83
83
  file: {
84
84
  url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
85
85
  }
86
86
  },
87
- node6_Copy: 'NODE6: people in the UK experiencing poverty to access advice and support.',
88
- node6_Amount: '6,000',
89
- node6_Image: {
87
+ node6Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
88
+ node6Amount: '6,000',
89
+ node6Image: {
90
90
  file: {
91
91
  url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
92
92
  }
93
93
  },
94
- node7_Copy: 'NODE7: people in the UK experiencing poverty to access advice and support.',
95
- node7_Amount: '7,000',
96
- node7_Image: {
94
+ node7Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
95
+ node7Amount: '7,000',
96
+ node7Image: {
97
97
  file: {
98
98
  url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
99
99
  }
100
100
  },
101
- node8_Copy: 'NODE8: people in the UK experiencing poverty to access advice and support.',
102
- node8_Amount: '8,000',
103
- node8_Image: {
101
+ node8Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
102
+ node8Amount: '8,000',
103
+ node8Image: {
104
104
  file: {
105
105
  url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
106
106
  }
107
107
  },
108
- node9_Copy: 'NODE9: people in the UK experiencing poverty to access advice and support.',
109
- node9_Amount: '9,000',
110
- node9_Image: {
108
+ node9Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
109
+ node9Amount: '9,000',
110
+ node9Image: {
111
111
  file: {
112
112
  url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
113
113
  }
114
114
  },
115
- node10_Copy: 'NODE10: people in the UK experiencing poverty to access advice and support.',
116
- node10_Amount: '10,000',
117
- node10_Image: {
115
+ node10Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
116
+ node10Amount: '10,000',
117
+ node10Image: {
118
118
  file: {
119
119
  url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
120
120
  }
121
121
  },
122
- node11_Copy: 'NODE11: people in the UK experiencing poverty to access advice and support.',
123
- node11_Amount: '11,000',
124
- node11_Image: {
122
+ node11Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
123
+ node11Amount: '11,000',
124
+ node11Image: {
125
125
  file: {
126
126
  url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
127
127
  }
128
128
  },
129
- node12_Copy: 'NODE12: people in the UK experiencing poverty to access advice and support.750,000',
130
- node12_Amount: '12,000',
131
- node12_Image: {
129
+ node12Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.750,000',
130
+ node12Amount: '12,000',
131
+ node12Image: {
132
132
  file: {
133
133
  url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
134
134
  }
@@ -143,73 +143,73 @@ const carouselItemsIncomplete = exports.carouselItemsIncomplete = {
143
143
  headerCopy: 'Over the past two years, we’ve supported',
144
144
  peopleHelpedText: '11.7 million people',
145
145
  autoPlay: false,
146
- node1_Copy: 'NODE1: people in the UK experiencing poverty to access advice and support.',
147
- node1_Amount: '1,000',
148
- node1_Image: {
146
+ node1Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
147
+ node1Amount: '1,000',
148
+ node1Image: {
149
149
  file: {
150
150
  url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
151
151
  }
152
152
  },
153
- node2_Copy: 'NODE2: people in the UK experiencing poverty to access advice and support.',
154
- node2_Amount: '750,000',
155
- node2_Image: {
153
+ node2Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
154
+ node2Amount: '750,000',
155
+ node2Image: {
156
156
  file: {
157
157
  url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
158
158
  }
159
159
  },
160
- node3_Copy: 'NODE3: people in the UK experiencing poverty to access advice and support.',
161
- node3_Amount: '3,000',
162
- node3_Image: {
160
+ node3Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
161
+ node3Amount: '3,000',
162
+ node3Image: {
163
163
  file: {
164
164
  url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
165
165
  }
166
166
  },
167
- node4_Copy: 'NODE4: people in the UK experiencing poverty to access advice and support.',
168
- node4_Amount: '4,000',
169
- node4_Image: {
167
+ node4Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
168
+ node4Amount: '4,000',
169
+ node4Image: {
170
170
  file: {
171
171
  url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
172
172
  }
173
173
  },
174
- node5_Copy: 'NODE5: people in the UK experiencing poverty to access advice and support.',
175
- node5_Image: {
174
+ node5Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
175
+ node5Image: {
176
176
  file: {
177
177
  url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
178
178
  }
179
179
  },
180
- node6_Copy: 'NODE6: people in the UK experiencing poverty to access advice and support.',
181
- node6_Amount: '6,000',
182
- node6_Image: null,
183
- node7_Copy: null,
184
- node7_Amount: null,
185
- node7_Image: null,
186
- node8_Copy: null,
187
- node8_Amount: null,
188
- node8_Image: {
180
+ node6Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
181
+ node6Amount: '6,000',
182
+ node6Image: null,
183
+ node7Copy: null,
184
+ node7Amount: null,
185
+ node7Image: null,
186
+ node8Copy: null,
187
+ node8Amount: null,
188
+ node8Image: {
189
189
  file: {
190
190
  url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
191
191
  }
192
192
  },
193
- node9_Copy: 'NODE9: people in the UK experiencing poverty to access advice and support.',
194
- node9_Amount: null,
195
- node9_Image: null,
196
- node10_Copy: null,
197
- node10_Amount: '10,000',
198
- node10_Image: {
193
+ node9Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
194
+ node9Amount: null,
195
+ node9Image: null,
196
+ node10Copy: null,
197
+ node10Amount: '10,000',
198
+ node10Image: {
199
199
  file: {
200
200
  url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
201
201
  }
202
202
  },
203
- node11_Copy: 'NODE11: people in the UK experiencing poverty to access advice and support.',
204
- node11_Amount: '11,000',
205
- node11_Image: {
203
+ node11Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
204
+ node11Amount: '11,000',
205
+ node11Image: {
206
206
  file: {
207
207
  url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
208
208
  }
209
209
  },
210
- node12_Copy: 'people in the UK experiencing poverty to access advice and support.750,000',
211
- node12_Amount: null,
212
- node12_Image: {
210
+ node12Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.750,000',
211
+ node12Amount: null,
212
+ node12Image: {
213
213
  file: {
214
214
  url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
215
215
  }
@@ -224,30 +224,30 @@ const carouselItemsMinimal = exports.carouselItemsMinimal = {
224
224
  headerCopy: 'Over the past two years, we’ve supported',
225
225
  peopleHelpedText: '11.7 million people',
226
226
  autoPlay: false,
227
- node1_Copy: 'NODE1: people in the UK experiencing poverty to access advice and support.',
228
- node1_Amount: '1,000',
229
- node1_Image: {
227
+ node1Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
228
+ node1Amount: '1,000',
229
+ node1Image: {
230
230
  file: {
231
231
  url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
232
232
  }
233
233
  },
234
- node2_Copy: 'NODE2: people in the UK experiencing poverty to access advice and support.',
235
- node2_Amount: '750,000',
236
- node2_Image: {
234
+ node2Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
235
+ node2Amount: '750,000',
236
+ node2Image: {
237
237
  file: {
238
238
  url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
239
239
  }
240
240
  },
241
- node3_Copy: 'NODE3: people in the UK experiencing poverty to access advice and support.',
242
- node3_Amount: '3,000',
243
- node3_Image: {
241
+ node3Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
242
+ node3Amount: '3,000',
243
+ node3Image: {
244
244
  file: {
245
245
  url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
246
246
  }
247
247
  },
248
- node4_Copy: 'NODE4: people in the UK experiencing poverty to access advice and support.',
249
- node4_Amount: '4,000',
250
- node4_Image: {
248
+ node4Copy: 'children and young people in the UK and around the world, including with safe homes, good nutrition and access to quality healthcare and education.',
249
+ node4Amount: '4,000',
250
+ node4Image: {
251
251
  file: {
252
252
  url: '//images.ctfassets.net/zsfivwzfgl3t/45yv3H0XZsvsySHtutQ8vb/1fb6d1afe4037c7dccde743a747f6b4f/Test-Carousel-Icon.png'
253
253
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@comicrelief/component-library",
3
3
  "author": "Comic Relief Engineering Team",
4
- "version": "7.35.5",
4
+ "version": "7.35.7",
5
5
  "main": "dist/index.js",
6
6
  "license": "ISC",
7
7
  "jest": {