@micromag/screen-timeline 0.2.335 → 0.2.353

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.
@@ -1 +1 @@
1
- .micromag-screen-timeline-container .micromag-screen-timeline-empty{margin:5px auto;border:2px dashed #343434;color:#343434}.micromag-screen-timeline-container{position:relative}.micromag-screen-timeline-container .micromag-screen-timeline-empty{height:50px;margin-right:10px}.micromag-screen-timeline-container .micromag-screen-timeline-item{position:relative}.micromag-screen-timeline-container .micromag-screen-timeline-element,.micromag-screen-timeline-container .micromag-screen-timeline-timeline{display:-webkit-flex;display:-ms-flexbox;display:flex}.micromag-screen-timeline-container .micromag-screen-timeline-timeline{-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-align-items:center;-ms-flex-align:center;align-items:center;width:15px;padding-right:20px}.micromag-screen-timeline-container .micromag-screen-timeline-line{-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;width:1px}.micromag-screen-timeline-container .micromag-screen-timeline-line.micromag-screen-timeline-hidden{width:auto}.micromag-screen-timeline-container .micromag-screen-timeline-bullet{width:15px;height:15px;margin:2px 0;border-width:1px;border-style:solid}.micromag-screen-timeline-container .micromag-screen-timeline-content{-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1}.micromag-screen-timeline-container .micromag-screen-timeline-content.micromag-screen-timeline-lastContent{margin-bottom:20px}.micromag-screen-timeline-container .micromag-screen-timeline-description,.micromag-screen-timeline-container .micromag-screen-timeline-imageContainer,.micromag-screen-timeline-container .micromag-screen-timeline-title{padding:8px 0}.micromag-screen-timeline-container .micromag-screen-timeline-imageContainer{position:relative;overflow:hidden}.micromag-screen-timeline-container .micromag-screen-timeline-callToAction{position:absolute;bottom:0;left:0;width:100%}.micromag-screen-timeline-container.micromag-screen-timeline-isPlaceholder .micromag-screen-timeline-scroll{padding:10px}.micromag-screen-timeline-container.micromag-screen-timeline-isPlaceholder .micromag-screen-timeline-timeline{padding-right:0}.micromag-screen-timeline-container.micromag-screen-timeline-isPlaceholder .micromag-screen-timeline-bullet{width:10px;height:10px;border-color:rgba(28,28,28,.5);background-color:rgba(28,28,28,.5)}.micromag-screen-timeline-container.micromag-screen-timeline-isPlaceholder .micromag-screen-timeline-content.micromag-screen-timeline-lastContent{margin-bottom:4px}.micromag-screen-timeline-container.micromag-screen-timeline-isPlaceholder .micromag-screen-timeline-description,.micromag-screen-timeline-container.micromag-screen-timeline-isPlaceholder .micromag-screen-timeline-imageContainer,.micromag-screen-timeline-container.micromag-screen-timeline-isPlaceholder .micromag-screen-timeline-title{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;height:100%;padding:2px 0}.micromag-screen-timeline-container.micromag-screen-timeline-isPlaceholder .micromag-screen-timeline-line{background-color:rgba(28,28,28,.5)}.micromag-screen-timeline-container.micromag-screen-timeline-circleBulletShape .micromag-screen-timeline-bullet{-webkit-border-radius:50%;border-radius:50%}.micromag-screen-timeline-container.micromag-screen-timeline-withoutLines .micromag-screen-timeline-timeline{visibility:hidden}
1
+ .micromag-screen-timeline-container .micromag-screen-timeline-empty{margin:5px auto;border:2px dashed #343434;color:#343434}.micromag-screen-timeline-container{position:relative}.micromag-screen-timeline-container .micromag-screen-timeline-empty{height:50px;margin-right:10px}.micromag-screen-timeline-container .micromag-screen-timeline-item{position:relative}.micromag-screen-timeline-container .micromag-screen-timeline-element,.micromag-screen-timeline-container .micromag-screen-timeline-timeline{display:-webkit-flex;display:-ms-flexbox;display:flex}.micromag-screen-timeline-container .micromag-screen-timeline-timeline{-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-align-items:center;-ms-flex-align:center;align-items:center;width:15px;padding-right:20px}.micromag-screen-timeline-container .micromag-screen-timeline-line{-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;width:1px}.micromag-screen-timeline-container .micromag-screen-timeline-line.micromag-screen-timeline-hidden{width:auto}.micromag-screen-timeline-container .micromag-screen-timeline-bullet{width:15px;height:15px;margin:2px 0;border-width:1px;border-style:solid}.micromag-screen-timeline-container .micromag-screen-timeline-content{-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1}.micromag-screen-timeline-container .micromag-screen-timeline-content.micromag-screen-timeline-lastContent{margin-bottom:20px}.micromag-screen-timeline-container .micromag-screen-timeline-description,.micromag-screen-timeline-container .micromag-screen-timeline-imageContainer,.micromag-screen-timeline-container .micromag-screen-timeline-title{padding:8px 0}.micromag-screen-timeline-container .micromag-screen-timeline-imageContainer{position:relative;overflow:hidden}.micromag-screen-timeline-container .micromag-screen-timeline-callToAction{position:absolute;bottom:0;left:0;width:100%}.micromag-screen-timeline-container.micromag-screen-timeline-isPlaceholder .micromag-screen-timeline-scroll{padding:10px}.micromag-screen-timeline-container.micromag-screen-timeline-isPlaceholder .micromag-screen-timeline-timeline{padding-right:0}.micromag-screen-timeline-container.micromag-screen-timeline-isPlaceholder .micromag-screen-timeline-bullet{width:10px;height:10px;border-color:rgba(28,28,28,.5);background-color:rgba(28,28,28,.5)}.micromag-screen-timeline-container.micromag-screen-timeline-isPlaceholder .micromag-screen-timeline-content.micromag-screen-timeline-lastContent{margin-bottom:4px}.micromag-screen-timeline-container.micromag-screen-timeline-isPlaceholder .micromag-screen-timeline-description,.micromag-screen-timeline-container.micromag-screen-timeline-isPlaceholder .micromag-screen-timeline-imageContainer,.micromag-screen-timeline-container.micromag-screen-timeline-isPlaceholder .micromag-screen-timeline-title{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;height:100%;padding:2px 0}.micromag-screen-timeline-container.micromag-screen-timeline-isPlaceholder .micromag-screen-timeline-line{background-color:rgba(28,28,28,.5)}.micromag-screen-timeline-container.micromag-screen-timeline-circleBulletShape .micromag-screen-timeline-bullet{border-radius:50%}.micromag-screen-timeline-container.micromag-screen-timeline-withoutLines .micromag-screen-timeline-timeline{visibility:hidden}
package/es/index.js CHANGED
@@ -222,7 +222,7 @@ var Timeline = function Timeline(_ref) {
222
222
  className: styles.image,
223
223
  media: image,
224
224
  width: imageWidth,
225
- videoAutoplay: backgroundPlaying,
225
+ playing: backgroundPlaying,
226
226
  onLoaded: onImageLoaded
227
227
  }) : null));
228
228
  break;
@@ -285,11 +285,12 @@ var Timeline = function Timeline(_ref) {
285
285
  return /*#__PURE__*/React.createElement("div", {
286
286
  className: classNames([styles.container, (_ref9 = {}, _defineProperty(_ref9, className, className !== null), _defineProperty(_ref9, styles.isPlaceholder, isPlaceholder), _defineProperty(_ref9, styles["".concat(bulletShape, "BulletShape")], bulletShape !== null), _defineProperty(_ref9, styles.withoutLines, itemsCount < 2), _ref9)]),
287
287
  "data-screen-ready": ready
288
- }, !isPlaceholder ? /*#__PURE__*/React.createElement(Background, Object.assign({}, background, {
288
+ }, !isPlaceholder ? /*#__PURE__*/React.createElement(Background, {
289
+ background: background,
289
290
  width: width,
290
291
  height: height,
291
292
  playing: backgroundPlaying
292
- })) : null, /*#__PURE__*/React.createElement(Container, {
293
+ }) : null, /*#__PURE__*/React.createElement(Container, {
293
294
  width: width,
294
295
  height: height
295
296
  }, /*#__PURE__*/React.createElement(Scroll, {
@@ -645,5 +646,4 @@ var definition = [{
645
646
  }]
646
647
  }];
647
648
 
648
- export default definition;
649
- export { TimelineIllustratedScreen, Timeline as TimelineScreen };
649
+ export { TimelineIllustratedScreen, Timeline as TimelineScreen, definition as default };
package/lib/index.js CHANGED
@@ -48,21 +48,21 @@ var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
48
48
  var styles = {"container":"micromag-screen-timeline-container","empty":"micromag-screen-timeline-empty","item":"micromag-screen-timeline-item","element":"micromag-screen-timeline-element","timeline":"micromag-screen-timeline-timeline","line":"micromag-screen-timeline-line","hidden":"micromag-screen-timeline-hidden","bullet":"micromag-screen-timeline-bullet","content":"micromag-screen-timeline-content","lastContent":"micromag-screen-timeline-lastContent","description":"micromag-screen-timeline-description","imageContainer":"micromag-screen-timeline-imageContainer","title":"micromag-screen-timeline-title","callToAction":"micromag-screen-timeline-callToAction","isPlaceholder":"micromag-screen-timeline-isPlaceholder","scroll":"micromag-screen-timeline-scroll","circleBulletShape":"micromag-screen-timeline-circleBulletShape","withoutLines":"micromag-screen-timeline-withoutLines"};
49
49
 
50
50
  var propTypes = {
51
- layout: PropTypes__default['default'].oneOf(['normal', 'title-description-image', 'title-image-description', 'image-title-description']),
52
- items: PropTypes__default['default'].arrayOf(core.PropTypes.textElement),
51
+ layout: PropTypes__default["default"].oneOf(['normal', 'title-description-image', 'title-image-description', 'image-title-description']),
52
+ items: PropTypes__default["default"].arrayOf(core.PropTypes.textElement),
53
53
  bulletColor: core.PropTypes.color,
54
54
  lineColor: core.PropTypes.color,
55
- bulletShape: PropTypes__default['default'].oneOf(['circle', 'square']),
56
- bulletFilled: PropTypes__default['default'].bool,
57
- illustrated: PropTypes__default['default'].bool,
58
- spacing: PropTypes__default['default'].number,
55
+ bulletShape: PropTypes__default["default"].oneOf(['circle', 'square']),
56
+ bulletFilled: PropTypes__default["default"].bool,
57
+ illustrated: PropTypes__default["default"].bool,
58
+ spacing: PropTypes__default["default"].number,
59
59
  background: core.PropTypes.backgroundElement,
60
60
  callToAction: core.PropTypes.callToAction,
61
- current: PropTypes__default['default'].bool,
61
+ current: PropTypes__default["default"].bool,
62
62
  transitions: core.PropTypes.transitions,
63
- transitionStagger: PropTypes__default['default'].number,
64
- type: PropTypes__default['default'].string,
65
- className: PropTypes__default['default'].string
63
+ transitionStagger: PropTypes__default["default"].number,
64
+ type: PropTypes__default["default"].string,
65
+ className: PropTypes__default["default"].string
66
66
  };
67
67
  var defaultProps = {
68
68
  layout: 'normal',
@@ -118,7 +118,7 @@ var Timeline = function Timeline(_ref) {
118
118
  isStatic = _useScreenRenderConte.isStatic,
119
119
  isCapture = _useScreenRenderConte.isCapture;
120
120
 
121
- var finalItems = isPlaceholder ? _toConsumableArray__default['default'](new Array(5)).map(function () {
121
+ var finalItems = isPlaceholder ? _toConsumableArray__default["default"](new Array(5)).map(function () {
122
122
  return {};
123
123
  }) : items || [null];
124
124
  var itemsCount = finalItems !== null ? finalItems.length : 0;
@@ -132,7 +132,7 @@ var Timeline = function Timeline(_ref) {
132
132
  }, 0) : 0;
133
133
 
134
134
  var _useState = React.useState(0),
135
- _useState2 = _slicedToArray__default['default'](_useState, 2),
135
+ _useState2 = _slicedToArray__default["default"](_useState, 2),
136
136
  imagesLoaded = _useState2[0],
137
137
  setImagesLoaded = _useState2[1];
138
138
 
@@ -148,7 +148,7 @@ var Timeline = function Timeline(_ref) {
148
148
  var firstContentRef = React.useRef(null);
149
149
 
150
150
  var _useState3 = React.useState(0),
151
- _useState4 = _slicedToArray__default['default'](_useState3, 2),
151
+ _useState4 = _slicedToArray__default["default"](_useState3, 2),
152
152
  imageWidth = _useState4[0],
153
153
  setImageWidth = _useState4[1];
154
154
 
@@ -176,10 +176,10 @@ var Timeline = function Timeline(_ref) {
176
176
  }
177
177
 
178
178
  var typesCount = elementsTypes.length;
179
- return /*#__PURE__*/React__default['default'].createElement("div", {
179
+ return /*#__PURE__*/React__default["default"].createElement("div", {
180
180
  className: styles.item,
181
181
  key: "item-".concat(itemI)
182
- }, /*#__PURE__*/React__default['default'].createElement(components.Transitions, {
182
+ }, /*#__PURE__*/React__default["default"].createElement(components.Transitions, {
183
183
  transitions: transitions,
184
184
  playing: transitionsPlaying,
185
185
  delay: transitionStagger * itemI,
@@ -191,11 +191,11 @@ var Timeline = function Timeline(_ref) {
191
191
  switch (elementType) {
192
192
  case 'title':
193
193
  hasElement = hasTitle;
194
- elementContent = /*#__PURE__*/React__default['default'].createElement("div", {
194
+ elementContent = /*#__PURE__*/React__default["default"].createElement("div", {
195
195
  className: styles.title
196
- }, /*#__PURE__*/React__default['default'].createElement(components.ScreenElement, {
196
+ }, /*#__PURE__*/React__default["default"].createElement(components.ScreenElement, {
197
197
  placeholder: "title",
198
- emptyLabel: /*#__PURE__*/React__default['default'].createElement(reactIntl.FormattedMessage, {
198
+ emptyLabel: /*#__PURE__*/React__default["default"].createElement(reactIntl.FormattedMessage, {
199
199
  id: "2ZOPe+",
200
200
  defaultMessage: [{
201
201
  "type": 0,
@@ -204,17 +204,17 @@ var Timeline = function Timeline(_ref) {
204
204
  }),
205
205
  emptyClassName: styles.empty,
206
206
  isEmpty: !hasTitle
207
- }, hasElement ? /*#__PURE__*/React__default['default'].createElement(Heading__default['default'], title) : null));
207
+ }, hasElement ? /*#__PURE__*/React__default["default"].createElement(Heading__default["default"], title) : null));
208
208
  break;
209
209
 
210
210
  case 'description':
211
211
  default:
212
212
  hasElement = hasDescription;
213
- elementContent = /*#__PURE__*/React__default['default'].createElement("div", {
213
+ elementContent = /*#__PURE__*/React__default["default"].createElement("div", {
214
214
  className: styles.description
215
- }, /*#__PURE__*/React__default['default'].createElement(components.ScreenElement, {
215
+ }, /*#__PURE__*/React__default["default"].createElement(components.ScreenElement, {
216
216
  placeholder: "text",
217
- emptyLabel: /*#__PURE__*/React__default['default'].createElement(reactIntl.FormattedMessage, {
217
+ emptyLabel: /*#__PURE__*/React__default["default"].createElement(reactIntl.FormattedMessage, {
218
218
  id: "507VAi",
219
219
  defaultMessage: [{
220
220
  "type": 0,
@@ -223,16 +223,16 @@ var Timeline = function Timeline(_ref) {
223
223
  }),
224
224
  emptyClassName: styles.empty,
225
225
  isEmpty: !hasDescription
226
- }, hasElement ? /*#__PURE__*/React__default['default'].createElement(Text__default['default'], description) : null));
226
+ }, hasElement ? /*#__PURE__*/React__default["default"].createElement(Text__default["default"], description) : null));
227
227
  break;
228
228
 
229
229
  case 'image':
230
230
  hasElement = hasImage;
231
- elementContent = /*#__PURE__*/React__default['default'].createElement("div", {
231
+ elementContent = /*#__PURE__*/React__default["default"].createElement("div", {
232
232
  className: styles.imageContainer
233
- }, /*#__PURE__*/React__default['default'].createElement(components.ScreenElement, {
233
+ }, /*#__PURE__*/React__default["default"].createElement(components.ScreenElement, {
234
234
  placeholder: "image",
235
- emptyLabel: /*#__PURE__*/React__default['default'].createElement(reactIntl.FormattedMessage, {
235
+ emptyLabel: /*#__PURE__*/React__default["default"].createElement(reactIntl.FormattedMessage, {
236
236
  id: "ebsPd4",
237
237
  defaultMessage: [{
238
238
  "type": 0,
@@ -241,11 +241,11 @@ var Timeline = function Timeline(_ref) {
241
241
  }),
242
242
  emptyClassName: styles.empty,
243
243
  isEmpty: !hasImage
244
- }, hasElement ? /*#__PURE__*/React__default['default'].createElement(Visual__default['default'], {
244
+ }, hasElement ? /*#__PURE__*/React__default["default"].createElement(Visual__default["default"], {
245
245
  className: styles.image,
246
246
  media: image,
247
247
  width: imageWidth,
248
- videoAutoplay: backgroundPlaying,
248
+ playing: backgroundPlaying,
249
249
  onLoaded: onImageLoaded
250
250
  }) : null));
251
251
  break;
@@ -256,24 +256,24 @@ var Timeline = function Timeline(_ref) {
256
256
  var lastType = typeI === typesCount - 1;
257
257
  var topLineHidden = firstItem && typeI <= titleIndex || lastItem && typeI > titleIndex;
258
258
  var bottomLineHidden = firstItem && typeI < titleIndex || lastItem && typeI >= titleIndex;
259
- return /*#__PURE__*/React__default['default'].createElement("div", {
259
+ return /*#__PURE__*/React__default["default"].createElement("div", {
260
260
  key: "element-".concat(elementType),
261
- className: classNames__default['default']([styles.element, styles["element-".concat(elementType)]]),
261
+ className: classNames__default["default"]([styles.element, styles["element-".concat(elementType)]]),
262
262
  ref: itemI === 0 ? firstContentRef : null
263
- }, /*#__PURE__*/React__default['default'].createElement("div", {
263
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
264
264
  className: styles.timeline,
265
265
  ref: itemI === 0 ? firstLineRef : null
266
- }, /*#__PURE__*/React__default['default'].createElement("div", {
267
- className: classNames__default['default']([styles.line, _defineProperty__default['default']({}, styles.hidden, topLineHidden)]),
268
- style: _objectSpread__default['default']({}, !topLineHidden ? utils.getStyleFromColor(lineColor, 'backgroundColor') : null)
269
- }), elementType === 'title' ? /*#__PURE__*/React__default['default'].createElement("div", {
266
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
267
+ className: classNames__default["default"]([styles.line, _defineProperty__default["default"]({}, styles.hidden, topLineHidden)]),
268
+ style: _objectSpread__default["default"]({}, !topLineHidden ? utils.getStyleFromColor(lineColor, 'backgroundColor') : null)
269
+ }), elementType === 'title' ? /*#__PURE__*/React__default["default"].createElement("div", {
270
270
  className: styles.bullet,
271
- style: _objectSpread__default['default'](_objectSpread__default['default']({}, utils.getStyleFromColor(bulletColor, 'borderColor')), bulletFilled ? utils.getStyleFromColor(bulletColor, 'backgroundColor') : null)
272
- }) : null, /*#__PURE__*/React__default['default'].createElement("div", {
273
- className: classNames__default['default']([styles.line, _defineProperty__default['default']({}, styles.hidden, bottomLineHidden)]),
274
- style: _objectSpread__default['default']({}, !bottomLineHidden ? utils.getStyleFromColor(lineColor, 'backgroundColor') : null)
275
- })), /*#__PURE__*/React__default['default'].createElement("div", {
276
- className: classNames__default['default']([styles.content, _defineProperty__default['default']({}, styles.lastContent, lastType && !lastItem)])
271
+ style: _objectSpread__default["default"](_objectSpread__default["default"]({}, utils.getStyleFromColor(bulletColor, 'borderColor')), bulletFilled ? utils.getStyleFromColor(bulletColor, 'backgroundColor') : null)
272
+ }) : null, /*#__PURE__*/React__default["default"].createElement("div", {
273
+ className: classNames__default["default"]([styles.line, _defineProperty__default["default"]({}, styles.hidden, bottomLineHidden)]),
274
+ style: _objectSpread__default["default"]({}, !bottomLineHidden ? utils.getStyleFromColor(lineColor, 'backgroundColor') : null)
275
+ })), /*#__PURE__*/React__default["default"].createElement("div", {
276
+ className: classNames__default["default"]([styles.content, _defineProperty__default["default"]({}, styles.lastContent, lastType && !lastItem)])
277
277
  }, elementContent));
278
278
  })));
279
279
  }); // Call to Action
@@ -281,7 +281,7 @@ var Timeline = function Timeline(_ref) {
281
281
  var hasCallToAction = callToAction !== null && callToAction.active === true;
282
282
 
283
283
  var _useState5 = React.useState(false),
284
- _useState6 = _slicedToArray__default['default'](_useState5, 2),
284
+ _useState6 = _slicedToArray__default["default"](_useState5, 2),
285
285
  scrolledBottom = _useState6[0],
286
286
  setScrolledBottom = _useState6[1];
287
287
 
@@ -305,32 +305,33 @@ var Timeline = function Timeline(_ref) {
305
305
  var onScrolledNotBottom = React.useCallback(function () {
306
306
  setScrolledBottom(false);
307
307
  }, [setScrolledBottom]);
308
- return /*#__PURE__*/React__default['default'].createElement("div", {
309
- className: classNames__default['default']([styles.container, (_ref9 = {}, _defineProperty__default['default'](_ref9, className, className !== null), _defineProperty__default['default'](_ref9, styles.isPlaceholder, isPlaceholder), _defineProperty__default['default'](_ref9, styles["".concat(bulletShape, "BulletShape")], bulletShape !== null), _defineProperty__default['default'](_ref9, styles.withoutLines, itemsCount < 2), _ref9)]),
308
+ return /*#__PURE__*/React__default["default"].createElement("div", {
309
+ className: classNames__default["default"]([styles.container, (_ref9 = {}, _defineProperty__default["default"](_ref9, className, className !== null), _defineProperty__default["default"](_ref9, styles.isPlaceholder, isPlaceholder), _defineProperty__default["default"](_ref9, styles["".concat(bulletShape, "BulletShape")], bulletShape !== null), _defineProperty__default["default"](_ref9, styles.withoutLines, itemsCount < 2), _ref9)]),
310
310
  "data-screen-ready": ready
311
- }, !isPlaceholder ? /*#__PURE__*/React__default['default'].createElement(Background__default['default'], Object.assign({}, background, {
311
+ }, !isPlaceholder ? /*#__PURE__*/React__default["default"].createElement(Background__default["default"], {
312
+ background: background,
312
313
  width: width,
313
314
  height: height,
314
315
  playing: backgroundPlaying
315
- })) : null, /*#__PURE__*/React__default['default'].createElement(Container__default['default'], {
316
+ }) : null, /*#__PURE__*/React__default["default"].createElement(Container__default["default"], {
316
317
  width: width,
317
318
  height: height
318
- }, /*#__PURE__*/React__default['default'].createElement(Scroll__default['default'], {
319
+ }, /*#__PURE__*/React__default["default"].createElement(Scroll__default["default"], {
319
320
  className: styles.scroll,
320
321
  verticalAlign: "middle",
321
322
  disabled: scrollingDisabled,
322
323
  onScrolledBottom: onScrolledBottom,
323
324
  onScrolledNotBottom: onScrolledNotBottom
324
- }, /*#__PURE__*/React__default['default'].createElement(Layout__default['default'], {
325
+ }, /*#__PURE__*/React__default["default"].createElement(Layout__default["default"], {
325
326
  style: !isPlaceholder ? {
326
327
  padding: spacing,
327
328
  paddingTop: (menuOverScreen && !isPreview ? menuSize : 0) + spacing
328
329
  } : null
329
- }, timelineElements, !isPlaceholder && hasCallToAction ? /*#__PURE__*/React__default['default'].createElement("div", {
330
+ }, timelineElements, !isPlaceholder && hasCallToAction ? /*#__PURE__*/React__default["default"].createElement("div", {
330
331
  style: {
331
332
  height: callToActionHeight
332
333
  }
333
- }) : null)), !isPlaceholder && hasCallToAction ? /*#__PURE__*/React__default['default'].createElement(CallToAction__default['default'], {
334
+ }) : null)), !isPlaceholder && hasCallToAction ? /*#__PURE__*/React__default["default"].createElement(CallToAction__default["default"], {
334
335
  ref: callToActionRef,
335
336
  className: styles.callToAction,
336
337
  disabled: !scrolledBottom,
@@ -344,9 +345,9 @@ Timeline.propTypes = propTypes;
344
345
  Timeline.defaultProps = defaultProps;
345
346
 
346
347
  var TimelineIllustratedScreen = function TimelineIllustratedScreen(_ref) {
347
- var props = _extends__default['default']({}, _ref);
348
+ var props = _extends__default["default"]({}, _ref);
348
349
 
349
- return /*#__PURE__*/React__default['default'].createElement(Timeline, Object.assign({}, props, {
350
+ return /*#__PURE__*/React__default["default"].createElement(Timeline, Object.assign({}, props, {
350
351
  illustrated: true
351
352
  }));
352
353
  };
@@ -364,13 +365,13 @@ var transform = function transform(newStory, _ref) {
364
365
  descriptionStory = _Text2.story,
365
366
  descriptionComponent = _Text2.component;
366
367
 
367
- var _Container = appleNews.Container(descriptionStory, [].concat(_toConsumableArray__default['default'](titleComponent ? [titleComponent] : []), _toConsumableArray__default['default'](descriptionComponent ? [descriptionComponent] : []))),
368
+ var _Container = appleNews.Container(descriptionStory, [].concat(_toConsumableArray__default["default"](titleComponent ? [titleComponent] : []), _toConsumableArray__default["default"](descriptionComponent ? [descriptionComponent] : []))),
368
369
  containerStory = _Container.story,
369
370
  containerComponent = _Container.component;
370
371
 
371
372
  return {
372
373
  story: containerStory,
373
- components: [].concat(_toConsumableArray__default['default'](acc.components || []), _toConsumableArray__default['default'](containerComponent ? [containerComponent] : []))
374
+ components: [].concat(_toConsumableArray__default["default"](acc.components || []), _toConsumableArray__default["default"](containerComponent ? [containerComponent] : []))
374
375
  };
375
376
  }, {
376
377
  story: newStory,
@@ -386,8 +387,8 @@ var transform = function transform(newStory, _ref) {
386
387
  bigContainerStory = _Container2.story,
387
388
  bigContainerComponent = _Container2.component;
388
389
 
389
- return _objectSpread__default['default'](_objectSpread__default['default']({}, bigContainerStory), {}, {
390
- components: [].concat(_toConsumableArray__default['default'](newStory.components || []), _toConsumableArray__default['default'](bigContainerComponent ? [bigContainerComponent] : []))
390
+ return _objectSpread__default["default"](_objectSpread__default["default"]({}, bigContainerStory), {}, {
391
+ components: [].concat(_toConsumableArray__default["default"](newStory.components || []), _toConsumableArray__default["default"](bigContainerComponent ? [bigContainerComponent] : []))
391
392
  });
392
393
  };
393
394
 
@@ -670,4 +671,4 @@ var definition = [{
670
671
 
671
672
  exports.TimelineIllustratedScreen = TimelineIllustratedScreen;
672
673
  exports.TimelineScreen = Timeline;
673
- exports.default = definition;
674
+ exports["default"] = definition;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/screen-timeline",
3
- "version": "0.2.335",
3
+ "version": "0.2.353",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -40,25 +40,25 @@
40
40
  "prepare": "../../scripts/prepare-package.sh"
41
41
  },
42
42
  "devDependencies": {
43
- "react": "^16.8.0",
44
- "react-dom": "^16.8.0"
43
+ "react": "^16.8.0 || ^17.0.0",
44
+ "react-dom": "^16.8.0 || ^17.0.0"
45
45
  },
46
46
  "peerDependencies": {
47
- "react": "^16.8.0",
48
- "react-dom": "^16.8.0"
47
+ "react": "^16.8.0 || ^17.0.0",
48
+ "react-dom": "^16.8.0 || ^17.0.0"
49
49
  },
50
50
  "dependencies": {
51
51
  "@babel/runtime": "^7.13.10",
52
- "@micromag/core": "^0.2.330",
53
- "@micromag/element-background": "^0.2.335",
54
- "@micromag/element-call-to-action": "^0.2.330",
55
- "@micromag/element-container": "^0.2.330",
56
- "@micromag/element-heading": "^0.2.330",
57
- "@micromag/element-layout": "^0.2.330",
58
- "@micromag/element-scroll": "^0.2.330",
59
- "@micromag/element-text": "^0.2.330",
60
- "@micromag/element-visual": "^0.2.335",
61
- "@micromag/transforms": "^0.2.330",
52
+ "@micromag/core": "^0.2.353",
53
+ "@micromag/element-background": "^0.2.353",
54
+ "@micromag/element-call-to-action": "^0.2.353",
55
+ "@micromag/element-container": "^0.2.353",
56
+ "@micromag/element-heading": "^0.2.353",
57
+ "@micromag/element-layout": "^0.2.353",
58
+ "@micromag/element-scroll": "^0.2.353",
59
+ "@micromag/element-text": "^0.2.353",
60
+ "@micromag/element-visual": "^0.2.353",
61
+ "@micromag/transforms": "^0.2.353",
62
62
  "classnames": "^2.2.6",
63
63
  "lodash": "^4.17.20",
64
64
  "prop-types": "^15.7.2",
@@ -68,5 +68,5 @@
68
68
  "publishConfig": {
69
69
  "access": "public"
70
70
  },
71
- "gitHead": "18c0cdcdefbb844eff89561822c471514f017c54"
71
+ "gitHead": "2fa5d38251980ca054d584adcb07e9fbe703299f"
72
72
  }