@royaloperahouse/harmonic 0.1.8-o → 0.1.8-p

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.
@@ -7690,26 +7690,28 @@ var Swipe = /*#__PURE__*/forwardRef(function (_ref, ref) {
7690
7690
  onDragStart: function onDragStart(e) {
7691
7691
  return e.preventDefault();
7692
7692
  },
7693
+ key: "swipe-container-" + uniqueIdRef.current,
7693
7694
  className: "swipe"
7694
7695
  }, props), /*#__PURE__*/React__default.createElement(SwipeTrack, {
7695
7696
  className: "swipe-track-wrapper",
7696
7697
  translateX: dragTranslateX !== null ? dragTranslateX : getTranslateX(),
7697
7698
  transitioning: transitioning && dragTranslateX === null,
7698
- onTransitionEnd: handleTransitionEnd,
7699
- onClickCapture: onClickCapture
7699
+ onTransitionEnd: handleTransitionEnd
7700
7700
  }, slides.map(function (child, index) {
7701
7701
  var isVisible = visibleIndexes.includes(index);
7702
- return /*#__PURE__*/React__default.cloneElement(child, {
7702
+ return /*#__PURE__*/React__default.createElement("div", {
7703
7703
  key: "swipe-slide-" + uniqueIdRef.current + "-" + index,
7704
- ariaHidden: !isVisible,
7704
+ "aria-hidden": !isVisible,
7705
7705
  className: SWIPE_SLIDE_CLASS_NAME,
7706
7706
  ref: function ref(el) {
7707
7707
  childRefs.current[index] = el;
7708
7708
  },
7709
7709
  onFocus: function onFocus() {
7710
7710
  return onSlideFocus(isVisible, index);
7711
- }
7712
- });
7711
+ },
7712
+ onClickCapture: onClickCapture,
7713
+ onClick: onClickCapture
7714
+ }, child);
7713
7715
  })));
7714
7716
  });
7715
7717
  Swipe.displayName = 'Swipe';
@@ -7826,12 +7828,7 @@ var Carousel = function Carousel(_ref) {
7826
7828
  slidesOffsetBefore: slidesOffsetBefore,
7827
7829
  role: "list",
7828
7830
  "aria-roledescription": "carousel"
7829
- }, React__default.Children.toArray(children).map(function (child, index) {
7830
- return /*#__PURE__*/React__default.createElement("div", {
7831
- key: "carousel-slide-" + index,
7832
- "aria-roledescription": "slide"
7833
- }, child);
7834
- })))));
7831
+ }, React__default.Children.toArray(children)))));
7835
7832
  };
7836
7833
 
7837
7834
  var _templateObject$P, _templateObject2$C, _templateObject3$p, _templateObject4$k, _templateObject5$f, _templateObject6$d, _templateObject7$8, _templateObject8$6, _templateObject9$3, _templateObject10$3, _templateObject11$1, _templateObject12$1, _templateObject13$1, _templateObject14$1, _templateObject15$1, _templateObject16, _templateObject17;