pds-dev-kit-web-test 2.7.210 → 2.7.211
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.
|
@@ -21,29 +21,33 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
}
|
|
22
22
|
return t;
|
|
23
23
|
};
|
|
24
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
+
};
|
|
24
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
28
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
26
29
|
var react_1 = require("react");
|
|
27
30
|
var swiper_1 = require("swiper");
|
|
28
31
|
require("swiper/modules/navigation/navigation.min.css");
|
|
29
32
|
var react_2 = require("swiper/react");
|
|
33
|
+
var StyledSwiper_1 = __importDefault(require("../../../StyledSwiper/StyledSwiper"));
|
|
30
34
|
var SlideBannerCore = (0, react_1.forwardRef)(function (_a, ref) {
|
|
31
35
|
var styles = _a.styles, slidesPerView = _a.slidesPerView, children = _a.children, props = __rest(_a, ["styles", "slidesPerView", "children"]);
|
|
32
|
-
return ((0, jsx_runtime_1.jsx)(react_2.Swiper, __assign({ ref: ref, style: {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
36
|
+
return ((0, jsx_runtime_1.jsx)(StyledSwiper_1.default, __assign({ id: "styled-swiper-wrapper" }, { children: (0, jsx_runtime_1.jsx)(react_2.Swiper, __assign({ ref: ref, style: {
|
|
37
|
+
width: '100%',
|
|
38
|
+
height: '100%'
|
|
39
|
+
}, slidesPerView: slidesPerView, scrollbar: styles.scrollbar, freeMode: styles.freeMode, autoplay: styles.useAutoplay ? styles.autoplay : false, loop: styles.loop, modules: [
|
|
40
|
+
swiper_1.Pagination,
|
|
41
|
+
swiper_1.Navigation,
|
|
42
|
+
swiper_1.Scrollbar,
|
|
43
|
+
swiper_1.FreeMode,
|
|
44
|
+
swiper_1.Autoplay,
|
|
45
|
+
swiper_1.EffectCube,
|
|
46
|
+
swiper_1.EffectFade,
|
|
47
|
+
swiper_1.EffectCards,
|
|
48
|
+
swiper_1.EffectCoverflow,
|
|
49
|
+
swiper_1.EffectFlip
|
|
50
|
+
] }, props, { children: Array.isArray(children) ? (children.map(function (slide, index) { return (0, jsx_runtime_1.jsx)(react_2.SwiperSlide, { children: slide }, index); })) : ((0, jsx_runtime_1.jsx)(react_2.SwiperSlide, { children: children })) })) })));
|
|
47
51
|
});
|
|
48
52
|
SlideBannerCore.displayName = 'SlideBannerCore';
|
|
49
53
|
exports.default = SlideBannerCore;
|