@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.
- package/dist/harmonic.cjs.development.js +9 -12
- package/dist/harmonic.cjs.development.js.map +1 -1
- package/dist/harmonic.cjs.production.min.js +1 -1
- package/dist/harmonic.cjs.production.min.js.map +1 -1
- package/dist/harmonic.esm.js +9 -12
- package/dist/harmonic.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -7692,26 +7692,28 @@ var Swipe = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
7692
7692
|
onDragStart: function onDragStart(e) {
|
|
7693
7693
|
return e.preventDefault();
|
|
7694
7694
|
},
|
|
7695
|
+
key: "swipe-container-" + uniqueIdRef.current,
|
|
7695
7696
|
className: "swipe"
|
|
7696
7697
|
}, props), /*#__PURE__*/React__default.createElement(SwipeTrack, {
|
|
7697
7698
|
className: "swipe-track-wrapper",
|
|
7698
7699
|
translateX: dragTranslateX !== null ? dragTranslateX : getTranslateX(),
|
|
7699
7700
|
transitioning: transitioning && dragTranslateX === null,
|
|
7700
|
-
onTransitionEnd: handleTransitionEnd
|
|
7701
|
-
onClickCapture: onClickCapture
|
|
7701
|
+
onTransitionEnd: handleTransitionEnd
|
|
7702
7702
|
}, slides.map(function (child, index) {
|
|
7703
7703
|
var isVisible = visibleIndexes.includes(index);
|
|
7704
|
-
return /*#__PURE__*/React__default.
|
|
7704
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
7705
7705
|
key: "swipe-slide-" + uniqueIdRef.current + "-" + index,
|
|
7706
|
-
|
|
7706
|
+
"aria-hidden": !isVisible,
|
|
7707
7707
|
className: SWIPE_SLIDE_CLASS_NAME,
|
|
7708
7708
|
ref: function ref(el) {
|
|
7709
7709
|
childRefs.current[index] = el;
|
|
7710
7710
|
},
|
|
7711
7711
|
onFocus: function onFocus() {
|
|
7712
7712
|
return onSlideFocus(isVisible, index);
|
|
7713
|
-
}
|
|
7714
|
-
|
|
7713
|
+
},
|
|
7714
|
+
onClickCapture: onClickCapture,
|
|
7715
|
+
onClick: onClickCapture
|
|
7716
|
+
}, child);
|
|
7715
7717
|
})));
|
|
7716
7718
|
});
|
|
7717
7719
|
Swipe.displayName = 'Swipe';
|
|
@@ -7828,12 +7830,7 @@ var Carousel = function Carousel(_ref) {
|
|
|
7828
7830
|
slidesOffsetBefore: slidesOffsetBefore,
|
|
7829
7831
|
role: "list",
|
|
7830
7832
|
"aria-roledescription": "carousel"
|
|
7831
|
-
}, React__default.Children.toArray(children)
|
|
7832
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
7833
|
-
key: "carousel-slide-" + index,
|
|
7834
|
-
"aria-roledescription": "slide"
|
|
7835
|
-
}, child);
|
|
7836
|
-
})))));
|
|
7833
|
+
}, React__default.Children.toArray(children)))));
|
|
7837
7834
|
};
|
|
7838
7835
|
|
|
7839
7836
|
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;
|