@comicrelief/component-library 7.22.0 → 7.22.1

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.
@@ -39,7 +39,8 @@ var Promo = function Promo(_ref) {
39
39
  showPosterAfterPlaying = _ref.showPosterAfterPlaying,
40
40
  videoSrc = _ref.videoSrc,
41
41
  mobileVideoSrc = _ref.mobileVideoSrc,
42
- lightColouredVideo = _ref.lightColouredVideo;
42
+ behindTextGradient = _ref.behindTextGradient,
43
+ blackPlayButton = _ref.blackPlayButton;
43
44
 
44
45
  // Store the appropriate prop in state, dependent on the breakpoint
45
46
  var _useState = (0, _react.useState)(null),
@@ -95,7 +96,8 @@ var Promo = function Promo(_ref) {
95
96
  height: "100%"
96
97
  }), hasVideo && thisVideoSrc && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_PromoVideo.default, {
97
98
  copyLeft: copyLeft,
98
- lightColouredVideo: lightColouredVideo,
99
+ behindTextGradient: behindTextGradient,
100
+ blackPlayButton: blackPlayButton,
99
101
  thisVideoSrc: thisVideoSrc,
100
102
  thisPoster: thisPoster,
101
103
  showPosterAfterPlaying: showPosterAfterPlaying,
@@ -103,11 +105,15 @@ var Promo = function Promo(_ref) {
103
105
  loop: loop
104
106
  }))), /*#__PURE__*/_react.default.createElement(_Promo.Wrapper, {
105
107
  copyLeft: copyLeft
108
+ }, /*#__PURE__*/_react.default.createElement(_Promo.Gradient, {
109
+ hasVideo: hasVideo,
110
+ behindTextGradient: behindTextGradient,
111
+ copyLeft: copyLeft
106
112
  }, /*#__PURE__*/_react.default.createElement(_Promo.Copy, {
107
113
  position: position,
108
114
  hasVideo: hasVideo,
109
- lightColouredVideo: lightColouredVideo
110
- }, children)));
115
+ behindTextGradient: behindTextGradient
116
+ }, children))));
111
117
  };
112
118
 
113
119
  Promo.defaultProps = {
@@ -126,7 +132,8 @@ Promo.defaultProps = {
126
132
  videoSrc: null,
127
133
  mobileVideoSrc: null,
128
134
  showPosterAfterPlaying: true,
129
- lightColouredVideo: false
135
+ behindTextGradient: 'none',
136
+ blackPlayButton: false
130
137
  };
131
138
  var _default = Promo;
132
139
  exports.default = _default;
@@ -15,7 +15,6 @@ import Link from '../../Atoms/Link/Link';
15
15
  imageLow={defaultData.promoImage}
16
16
  imageAltText=""
17
17
  copyLeft={true}
18
- hasOverlay={true}
19
18
  position="upper"
20
19
  >
21
20
  <Text
@@ -51,7 +50,6 @@ import Link from '../../Atoms/Link/Link';
51
50
  imageLow={defaultData.promoImage}
52
51
  imageAltText=""
53
52
  copyLeft={true}
54
- hasOverlay={true}
55
53
  position="end"
56
54
  >
57
55
  <Text
@@ -87,7 +85,6 @@ import Link from '../../Atoms/Link/Link';
87
85
  imageLow={defaultData.promoImage}
88
86
  imageAltText=""
89
87
  copyLeft={true}
90
- hasOverlay={true}
91
88
  position="lower"
92
89
  >
93
90
  <Text
@@ -123,7 +120,6 @@ import Link from '../../Atoms/Link/Link';
123
120
  imageLow={defaultData.promoImage}
124
121
  imageAltText=""
125
122
  copyLeft={true}
126
- hasOverlay={true}
127
123
  >
128
124
  <Text
129
125
  tag="h1"
@@ -164,7 +160,7 @@ let mobileVideoSrc = 'https://samplelib.com/lib/preview/mp4/sample-10s.mp4';
164
160
 
165
161
  <div>
166
162
  <Text tag="h2" size="xl" color="black">
167
- Promo Upper w/Video (autoplay and loop)
163
+ Promo Upper w/Video (autoplay and loop, black text gradient overlay)
168
164
  </Text>
169
165
  <Promo
170
166
  backgroundColor="blue_dark"
@@ -173,12 +169,12 @@ let mobileVideoSrc = 'https://samplelib.com/lib/preview/mp4/sample-10s.mp4';
173
169
  imageLow={defaultData.promoImage}
174
170
  imageAltText=""
175
171
  copyLeft={true}
176
- hasOverlay={true}
177
172
  position="upper"
178
173
  videoSrc={videoSrc}
179
174
  poster={poster}
180
175
  loop={true}
181
176
  autoplay={true}
177
+ behindTextGradient='black'
182
178
  >
183
179
  <Text
184
180
  tag="h1"
@@ -206,7 +202,7 @@ let mobileVideoSrc = 'https://samplelib.com/lib/preview/mp4/sample-10s.mp4';
206
202
  <br />
207
203
 
208
204
  <Text tag="h2" size="xl" color="black">
209
- Promo End w/Video (loop only)
205
+ Promo End w/Video (loop only, no text gradient overlay)
210
206
  </Text>
211
207
  <Promo
212
208
  backgroundColor="blue_dark"
@@ -215,7 +211,6 @@ let mobileVideoSrc = 'https://samplelib.com/lib/preview/mp4/sample-10s.mp4';
215
211
  imageLow={defaultData.promoImage}
216
212
  imageAltText=""
217
213
  copyLeft={true}
218
- hasOverlay={true}
219
214
  position="end"
220
215
  videoSrc={videoSrc}
221
216
  poster={poster}
@@ -248,25 +243,25 @@ let mobileVideoSrc = 'https://samplelib.com/lib/preview/mp4/sample-10s.mp4';
248
243
  <br />
249
244
 
250
245
  <Text tag="h2" size="xl" color="black">
251
- Promo Lower w/Video (autoplay only)
246
+ Promo Lower w/Video (autoplay only, white text gradient overlay)
252
247
  </Text>
253
248
  <Promo
254
- backgroundColor="blue_dark"
249
+ backgroundColor="blue_light"
255
250
  imageSet={defaultData.promoImage}
256
251
  image={defaultData.promoImage}
257
252
  imageLow={defaultData.promoImage}
258
253
  imageAltText=""
259
254
  copyLeft={true}
260
- hasOverlay={true}
261
255
  position="lower"
262
256
  videoSrc={videoSrc}
263
257
  poster={poster}
264
258
  loop={false}
265
259
  autoPlay={true}
260
+ behindTextGradient='white'
266
261
  >
267
262
  <Text
268
263
  tag="h1"
269
- color="white"
264
+ color="black"
270
265
  size="super"
271
266
  family="Anton"
272
267
  uppercase
@@ -274,12 +269,12 @@ let mobileVideoSrc = 'https://samplelib.com/lib/preview/mp4/sample-10s.mp4';
274
269
  >
275
270
  Curabitur pretium tincidunt lacus
276
271
  </Text>
277
- <Text tag="p" color="white">
272
+ <Text tag="p" color="black">
278
273
  Curabitur pretium tincidunt lacus. Nulla gravida orci a odio. Nullam varius,
279
274
  turpis et commodo, est eros bibendum elit, nec luctus magna sollicitudin.
280
275
  </Text>
281
276
  <span>
282
- <Link href="/" type="button" color="white">
277
+ <Link href="/" type="button" color="black">
283
278
  <Text>
284
279
  Show me this
285
280
  </Text>
@@ -289,7 +284,7 @@ let mobileVideoSrc = 'https://samplelib.com/lib/preview/mp4/sample-10s.mp4';
289
284
 
290
285
  <br />
291
286
  <Text tag="h2" size="xl" color="black">
292
- Promo None w/Video (no loop or autoplay)
287
+ Promo None w/Video (no loop or autoplay, no text gradient overlay, copy right aligned)
293
288
  </Text>
294
289
  <Promo
295
290
  backgroundColor="blue_dark"
@@ -298,7 +293,6 @@ let mobileVideoSrc = 'https://samplelib.com/lib/preview/mp4/sample-10s.mp4';
298
293
  imageLow={defaultData.promoImage}
299
294
  imageAltText=""
300
295
  copyLeft={false}
301
- hasOverlay={true}
302
296
  videoSrc={videoSrc}
303
297
  poster={poster}
304
298
  loop={false}
@@ -328,7 +322,7 @@ let mobileVideoSrc = 'https://samplelib.com/lib/preview/mp4/sample-10s.mp4';
328
322
  </Promo>
329
323
 
330
324
  <Text tag="h2" size="xl" color="black">
331
- Promo None w/Video (no loop or autoplay, 'light-coloured video' setting, different videos and posters for mobile and desktop)
325
+ Promo None w/Video (no loop or autoplay, white text gradient overlay, different videos and posters for mobile and desktop)
332
326
  </Text>
333
327
  <Promo
334
328
  backgroundColor="blue_light"
@@ -337,14 +331,13 @@ let mobileVideoSrc = 'https://samplelib.com/lib/preview/mp4/sample-10s.mp4';
337
331
  imageLow={defaultData.promoImage}
338
332
  imageAltText=""
339
333
  copyLeft={true}
340
- hasOverlay={true}
341
334
  videoSrc={videoSrc}
342
335
  mobileVideoSrc={mobileVideoSrc}
343
336
  poster={poster}
344
337
  mobilePoster={mobilePoster}
345
338
  loop={false}
346
339
  autoPlay={false}
347
- lightColouredVideo={true}
340
+ behindTextGradient='white'
348
341
  >
349
342
  <Text
350
343
  tag="h1"
@@ -370,7 +363,7 @@ let mobileVideoSrc = 'https://samplelib.com/lib/preview/mp4/sample-10s.mp4';
370
363
  </Promo>
371
364
 
372
365
  <Text tag="h2" size="xl" color="black">
373
- Promo None w/Video (no loop or autoplay, 'light-coloured video' setting, mobile-only video and poster)
366
+ Promo None w/Video (no loop or autoplay, white text gradient overlay, mobile-only video and poster, black play button)
374
367
  </Text>
375
368
  <Promo
376
369
  backgroundColor="blue_light"
@@ -379,12 +372,12 @@ let mobileVideoSrc = 'https://samplelib.com/lib/preview/mp4/sample-10s.mp4';
379
372
  imageLow={defaultData.promoImage}
380
373
  imageAltText=""
381
374
  copyLeft={true}
382
- hasOverlay={true}
383
375
  mobileVideoSrc={mobileVideoSrc}
384
376
  mobilePoster={mobilePoster}
385
377
  loop={false}
386
378
  autoPlay={false}
387
- lightColouredVideo={true}
379
+ behindTextGradient='white'
380
+ blackPlayButton={true}
388
381
  >
389
382
  <Text
390
383
  tag="h1"
@@ -394,19 +387,8 @@ let mobileVideoSrc = 'https://samplelib.com/lib/preview/mp4/sample-10s.mp4';
394
387
  uppercase
395
388
  weight="normal"
396
389
  >
397
- Curabitur pretium tincidunt lacus
398
- </Text>
399
- <Text tag="p" color="black">
400
- Curabitur pretium tincidunt lacus. Nulla gravida orci a odio. Nullam varius,
401
- turpis et commodo, est eros bibendum elit, nec luctus magna sollicitudin.
390
+ One-Line Special
402
391
  </Text>
403
- <span>
404
- <Link href="/" type="button" color="black">
405
- <Text>
406
- Show me this
407
- </Text>
408
- </Link>
409
- </span>
410
392
  </Promo>
411
393
 
412
394
  </div>
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.Video = exports.Media = exports.Copy = exports.Wrapper = exports.Container = void 0;
8
+ exports.Gradient = exports.Video = exports.Media = exports.Copy = exports.Wrapper = exports.Container = void 0;
9
9
 
10
10
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
11
11
 
@@ -42,7 +42,7 @@ exports.Container = Container;
42
42
  var Wrapper = _styledComponents.default.div.withConfig({
43
43
  displayName: "Promostyle__Wrapper",
44
44
  componentId: "sc-kk4nna-1"
45
- })(["width:100%;max-width:", ";height:100%;left:0;right:0;margin:0 auto;display:flex;align-items:center;", ";", "{min-height:calc(100vh - 90px);}"], _size.container.medium, function (_ref5) {
45
+ })(["width:100%;max-width:", ";height:100%;left:0;right:0;margin:0 auto;display:flex;align-items:center;position:relative;", ";", "{min-height:calc(100vh - 90px);}"], _size.container.medium, function (_ref5) {
46
46
  var copyLeft = _ref5.copyLeft;
47
47
  return !copyLeft && 'justify-content: flex-end';
48
48
  }, (0, _size.media)('medium'));
@@ -52,15 +52,8 @@ exports.Wrapper = Wrapper;
52
52
  var Copy = _styledComponents.default.div.withConfig({
53
53
  displayName: "Promostyle__Copy",
54
54
  componentId: "sc-kk4nna-2"
55
- })(["width:100%;padding:", " ", " ", ";", ";", "{width:70%;padding:", " ", ";}", "{width:50%;padding:", " ", ";", " ", "}", ""], (0, _spacing.default)('m'), (0, _spacing.default)('m'), (0, _spacing.default)('xl'), (0, _zIndex.default)('low'), (0, _size.media)('medium'), (0, _spacing.default)('xl'), (0, _spacing.default)('m'), (0, _size.media)('medium'), (0, _spacing.default)('xxl'), (0, _spacing.default)('m'), function (_ref6) {
56
- var hasVideo = _ref6.hasVideo;
57
- return hasVideo !== false && (0, _styledComponents.css)(["background-color:rgba(0,0,0,0.75);overflow:hidden;box-shadow:0px 0px 75px 100px rgba(0,0,0,0.75);"]);
58
- }, function (_ref7) {
59
- var hasVideo = _ref7.hasVideo,
60
- lightColouredVideo = _ref7.lightColouredVideo;
61
- return hasVideo !== false && lightColouredVideo && (0, _styledComponents.css)(["background-color:rgba(255,255,255,0.75);box-shadow:0px 0px 75px 100px rgba(255,255,255,0.75);"]);
62
- }, function (_ref8) {
63
- var position = _ref8.position;
55
+ })(["width:100%;padding:", " ", " ", ";", ";", "{width:100%;padding:", " ", ";}", ""], (0, _spacing.default)('m'), (0, _spacing.default)('m'), (0, _spacing.default)('xl'), (0, _zIndex.default)('low'), (0, _size.media)('medium'), (0, _spacing.default)('xxl'), (0, _spacing.default)('m'), function (_ref6) {
56
+ var position = _ref6.position;
64
57
  return position === 'lower' && (0, _styledComponents.css)(["padding:", " ", ";", "{padding:6rem ", ";margin-top:6rem;}"], (0, _spacing.default)('xl'), (0, _spacing.default)('m'), (0, _size.media)('medium'), (0, _spacing.default)('m'));
65
58
  });
66
59
 
@@ -82,4 +75,18 @@ var Video = _styledComponents.default.video.attrs(function () {
82
75
  componentId: "sc-kk4nna-4"
83
76
  })(["width:100%;height:100%;object-fit:cover;"]);
84
77
 
85
- exports.Video = Video;
78
+ exports.Video = Video;
79
+
80
+ var Gradient = _styledComponents.default.div.withConfig({
81
+ displayName: "Promostyle__Gradient",
82
+ componentId: "sc-kk4nna-5"
83
+ })(["width:100%;height:100%;display:flex;align-items:center;", "{width:50%;position:absolute;top:0;left:0;", ";", ";}"], (0, _size.media)('medium'), function (_ref7) {
84
+ var copyLeft = _ref7.copyLeft;
85
+ return !copyLeft && (0, _styledComponents.css)(["left:auto;right:0;"]);
86
+ }, function (_ref8) {
87
+ var hasVideo = _ref8.hasVideo,
88
+ behindTextGradient = _ref8.behindTextGradient;
89
+ return hasVideo !== false && behindTextGradient !== 'none' && (0, _styledComponents.css)(["overflow:hidden;background-color:", ";box-shadow:0px 0px 50px 60px ", ";"], behindTextGradient === 'black' ? 'rgba(0,0,0,0.5)' : 'rgba(255, 255, 255, 0.5)', behindTextGradient === 'black' ? 'rgba(0,0,0,0.5)' : 'rgba(255, 255, 255, 0.5)');
90
+ });
91
+
92
+ exports.Gradient = Gradient;
@@ -20,13 +20,14 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
20
20
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
21
21
 
22
22
  var PromoVideo = function PromoVideo(_ref) {
23
- var lightColouredVideo = _ref.lightColouredVideo,
23
+ var behindTextGradient = _ref.behindTextGradient,
24
24
  copyLeft = _ref.copyLeft,
25
25
  thisVideoSrc = _ref.thisVideoSrc,
26
26
  thisPoster = _ref.thisPoster,
27
27
  autoPlay = _ref.autoPlay,
28
28
  loop = _ref.loop,
29
- showPosterAfterPlaying = _ref.showPosterAfterPlaying;
29
+ showPosterAfterPlaying = _ref.showPosterAfterPlaying,
30
+ blackPlayButton = _ref.blackPlayButton;
30
31
 
31
32
  var _useState = (0, _react.useState)(false),
32
33
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
@@ -107,7 +108,8 @@ var PromoVideo = function PromoVideo(_ref) {
107
108
  videoProgress: videoProgress,
108
109
  togglePlay: togglePlay,
109
110
  isPlaying: isPlaying,
110
- lightColouredVideo: lightColouredVideo,
111
+ behindTextGradient: behindTextGradient,
112
+ blackPlayButton: blackPlayButton,
111
113
  isRestarting: isRestarting
112
114
  }));
113
115
  };
@@ -20,7 +20,9 @@ var _excluded = ["togglePlay"];
20
20
  var PromoVideoButton = function PromoVideoButton(_ref) {
21
21
  var togglePlay = _ref.togglePlay,
22
22
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
23
- return /*#__PURE__*/_react.default.createElement(_PromoVideoButton.PlayButtonWrapper, null, /*#__PURE__*/_react.default.createElement(_PromoVideoButton.PlayButton, Object.assign({
23
+ return /*#__PURE__*/_react.default.createElement(_PromoVideoButton.PlayButtonWrapper, {
24
+ className: "weewee"
25
+ }, /*#__PURE__*/_react.default.createElement(_PromoVideoButton.PlayButton, Object.assign({
24
26
  onClick: function onClick() {
25
27
  togglePlay();
26
28
  }
@@ -21,17 +21,24 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
21
21
 
22
22
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
23
23
 
24
+ var PlayButtonWrapper = _styledComponents.default.div.withConfig({
25
+ displayName: "_PromoVideoButtonstyle__PlayButtonWrapper",
26
+ componentId: "sc-17cm3uc-0"
27
+ })(["width:100%;height:100%;position:absolute;top:0;left:0;z-index:1;&:after{content:\"\";background-image:url(", "),url(", "),url(", "),url(", "),none;}"], _PlayWhite.default, _PauseWhite.default, _PlayBlack.default, _PauseBlack.default);
28
+
29
+ exports.PlayButtonWrapper = PlayButtonWrapper;
30
+
24
31
  var PlayButton = _styledComponents.default.button.withConfig({
25
32
  displayName: "_PromoVideoButtonstyle__PlayButton",
26
- componentId: "sc-17cm3uc-0"
27
- })(["display:flex;width:50px;height:50px;position:absolute;top:10px;right:10px;align-items:center;justify-content:center;border:0;padding:0;margin:0;border-radius:50%;background:", ";opacity:0.75;transition:opacity 0.2s;&:hover,&:focus{opacity:1.0;}&:focus-visible{outline-style:outset;outline-width:medium;}", " ", " @media ", "{top:20px;right:20px;", "}"], function (_ref) {
33
+ componentId: "sc-17cm3uc-1"
34
+ })(["display:flex;width:50px;height:50px;position:absolute;top:10px;right:10px;align-items:center;justify-content:center;border:0;padding:0;margin:0;border-radius:50%;background:", ";opacity:0.8;transition:opacity 0.2s;&:hover,&:focus{opacity:1.0;}&:focus-visible{outline-style:outset;outline-width:medium;}", " ", " @media ", "{top:20px;right:20px;", "}"], function (_ref) {
28
35
  var theme = _ref.theme;
29
- return theme.color('black');
36
+ return theme.color('white');
30
37
  }, function (_ref2) {
31
- var lightColouredVideo = _ref2.lightColouredVideo;
32
- return !lightColouredVideo && (0, _styledComponents.css)(["background:", ";"], function (_ref3) {
38
+ var blackPlayButton = _ref2.blackPlayButton;
39
+ return blackPlayButton && (0, _styledComponents.css)(["background:", ";"], function (_ref3) {
33
40
  var theme = _ref3.theme;
34
- return theme.color('white');
41
+ return theme.color('black');
35
42
  });
36
43
  }, function (_ref4) {
37
44
  var copyLeft = _ref4.copyLeft;
@@ -46,13 +53,6 @@ var PlayButton = _styledComponents.default.button.withConfig({
46
53
 
47
54
  exports.PlayButton = PlayButton;
48
55
 
49
- var PlayButtonWrapper = _styledComponents.default.div.withConfig({
50
- displayName: "_PromoVideoButtonstyle__PlayButtonWrapper",
51
- componentId: "sc-17cm3uc-1"
52
- })(["width:100%;height:100%;position:absolute;top:0;left:0;"]);
53
-
54
- exports.PlayButtonWrapper = PlayButtonWrapper;
55
-
56
56
  var ProgressRingWrapper = _styledComponents.default.span.withConfig({
57
57
  displayName: "_PromoVideoButtonstyle__ProgressRingWrapper",
58
58
  componentId: "sc-17cm3uc-2"
@@ -74,8 +74,8 @@ var ProgressRingCircle = _styledComponents.default.circle.withConfig({
74
74
  var strokeDashOffsetStyle = _ref7.strokeDashOffsetStyle;
75
75
  return strokeDashOffsetStyle;
76
76
  }, function (_ref8) {
77
- var lightColouredVideo = _ref8.lightColouredVideo;
78
- return !lightColouredVideo && (0, _styledComponents.css)(["stroke:", ";"], function (_ref9) {
77
+ var blackPlayButton = _ref8.blackPlayButton;
78
+ return !blackPlayButton && (0, _styledComponents.css)(["stroke:", ";"], function (_ref9) {
79
79
  var theme = _ref9.theme;
80
80
  return theme.color('black');
81
81
  });
@@ -90,21 +90,21 @@ var Icon = _styledComponents.default.span.withConfig({
90
90
  displayName: "_PromoVideoButtonstyle__Icon",
91
91
  componentId: "sc-17cm3uc-5"
92
92
  })(["height:50px;width:50px;background:no-repeat center/50% url(", ") transparent;", " ", " ", " ", ""], _PlayWhite.default, function (_ref11) {
93
- var lightColouredVideo = _ref11.lightColouredVideo,
93
+ var blackPlayButton = _ref11.blackPlayButton,
94
94
  isPlaying = _ref11.isPlaying;
95
- return lightColouredVideo && !isPlaying && (0, _styledComponents.css)(["background-image:url(", ");"], _PlayWhite.default);
95
+ return blackPlayButton && !isPlaying && (0, _styledComponents.css)(["background-image:url(", ");"], _PlayWhite.default);
96
96
  }, function (_ref12) {
97
- var lightColouredVideo = _ref12.lightColouredVideo,
97
+ var blackPlayButton = _ref12.blackPlayButton,
98
98
  isPlaying = _ref12.isPlaying;
99
- return lightColouredVideo && isPlaying && (0, _styledComponents.css)(["background-image:url(", ");"], _PauseWhite.default);
99
+ return blackPlayButton && isPlaying && (0, _styledComponents.css)(["background-image:url(", ");"], _PauseWhite.default);
100
100
  }, function (_ref13) {
101
- var lightColouredVideo = _ref13.lightColouredVideo,
101
+ var blackPlayButton = _ref13.blackPlayButton,
102
102
  isPlaying = _ref13.isPlaying;
103
- return !lightColouredVideo && !isPlaying && (0, _styledComponents.css)(["background-image:url(", ");"], _PlayBlack.default);
103
+ return !blackPlayButton && !isPlaying && (0, _styledComponents.css)(["background-image:url(", ");"], _PlayBlack.default);
104
104
  }, function (_ref14) {
105
- var lightColouredVideo = _ref14.lightColouredVideo,
105
+ var blackPlayButton = _ref14.blackPlayButton,
106
106
  isPlaying = _ref14.isPlaying;
107
- return !lightColouredVideo && isPlaying && (0, _styledComponents.css)(["background-image:url(", ");"], _PauseBlack.default);
107
+ return !blackPlayButton && isPlaying && (0, _styledComponents.css)(["background-image:url(", ");"], _PauseBlack.default);
108
108
  });
109
109
 
110
110
  exports.Icon = Icon;