pds-dev-kit-web-test 2.5.697 → 2.5.698

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,7 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import 'swiper/modules/navigation/navigation.min.css';
3
3
  import 'swiper/swiper-bundle.css';
4
- import './swiper-override.style.css';
5
4
  import type { CoreCarouselProps } from './types';
6
5
  import type { SwiperProps, SwiperRef } from 'swiper/react/swiper-react.js';
7
6
  export interface ContentsCarouselCoreProps extends SwiperProps {
@@ -1,4 +1,8 @@
1
1
  "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
2
6
  var __assign = (this && this.__assign) || function () {
3
7
  __assign = Object.assign || function(t) {
4
8
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -30,6 +34,9 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
30
34
  }
31
35
  return to.concat(ar || Array.prototype.slice.call(from));
32
36
  };
37
+ var __importDefault = (this && this.__importDefault) || function (mod) {
38
+ return (mod && mod.__esModule) ? mod : { "default": mod };
39
+ };
33
40
  Object.defineProperty(exports, "__esModule", { value: true });
34
41
  var jsx_runtime_1 = require("react/jsx-runtime");
35
42
  var react_1 = require("react");
@@ -37,7 +44,7 @@ var swiper_1 = require("swiper");
37
44
  require("swiper/modules/navigation/navigation.min.css");
38
45
  var react_2 = require("swiper/react");
39
46
  require("swiper/swiper-bundle.css");
40
- require("./swiper-override.style.css");
47
+ var styled_components_1 = __importDefault(require("styled-components"));
41
48
  var ContentsCarouselCore = (0, react_1.forwardRef)(function (_a, ref) {
42
49
  var styles = _a.styles, slidesPerView = _a.slidesPerView, children = _a.children, props = __rest(_a, ["styles", "slidesPerView", "children"]);
43
50
  var slidesWithEmpty = (0, react_1.useMemo)(function () {
@@ -54,7 +61,7 @@ var ContentsCarouselCore = (0, react_1.forwardRef)(function (_a, ref) {
54
61
  return childrenArray;
55
62
  }, [children, slidesPerView, styles.slidesPerGroup]);
56
63
  var finalSlidesPerView = props.effect === 'cards' ? 1 : slidesPerView;
57
- return ((0, jsx_runtime_1.jsx)(react_2.Swiper, __assign({ ref: ref, style: {
64
+ return ((0, jsx_runtime_1.jsx)(StyledSwiper, __assign({ ref: ref, style: {
58
65
  width: '100%',
59
66
  height: '100%'
60
67
  }, modules: [
@@ -71,4 +78,6 @@ var ContentsCarouselCore = (0, react_1.forwardRef)(function (_a, ref) {
71
78
  ], slidesPerView: finalSlidesPerView, scrollbar: styles.scrollbar, slidesPerGroup: styles.slidesPerGroup, spaceBetween: styles.spaceBetween, freeMode: styles.freeMode, autoplay: styles.useAutoplay ? styles.autoplay : false, loop: styles.loop }, props, { children: slidesWithEmpty.map(function (slide, index) { return ((0, jsx_runtime_1.jsx)(react_2.SwiperSlide, { children: slide || (0, jsx_runtime_1.jsx)("div", { className: "swiper-slide-empty" }) }, index)); }) })));
72
79
  });
73
80
  ContentsCarouselCore.displayName = 'ContentsCarouselCore';
81
+ var StyledSwiper = (0, styled_components_1.default)(react_2.Swiper)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n .swiper-cards .swiper-slide {\n backface-visibility: hidden;\n overflow: hidden;\n transform-origin: center bottom;\n }\n"], ["\n .swiper-cards .swiper-slide {\n backface-visibility: hidden;\n overflow: hidden;\n transform-origin: center bottom;\n }\n"])));
74
82
  exports.default = ContentsCarouselCore;
83
+ var templateObject_1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "2.5.697",
3
+ "version": "2.5.698",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",