@digital-b2c/coreui-kit 0.21.0 → 0.21.1
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/index.cjs +5 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +5 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2441,11 +2441,11 @@ var CardCarousel = ({
|
|
|
2441
2441
|
onSnapIndexChange: syncPagination,
|
|
2442
2442
|
onResize: syncPagination,
|
|
2443
2443
|
children: cards.map((_d, index) => {
|
|
2444
|
-
var _e = _d, { isLocked, className: cardClassName } = _e, card = __objRest(_e, ["isLocked", "className"]);
|
|
2444
|
+
var _e = _d, { isLocked, className: cardClassName, videoUrl } = _e, card = __objRest(_e, ["isLocked", "className", "videoUrl"]);
|
|
2445
2445
|
var _a2;
|
|
2446
2446
|
return /* @__PURE__ */ jsxRuntime.jsx(react$1.SwiperSlide, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2447
2447
|
Card2,
|
|
2448
|
-
__spreadValues({
|
|
2448
|
+
__spreadProps(__spreadValues({
|
|
2449
2449
|
variant: theme,
|
|
2450
2450
|
className: clsx52__default.default(CardCarousel_module_default.card, isLocked && CardCarousel_module_default.locked, cardClassName),
|
|
2451
2451
|
onCtaClick: ((_a2 = card.cta) == null ? void 0 : _a2.url) ? (event) => {
|
|
@@ -2453,7 +2453,9 @@ var CardCarousel = ({
|
|
|
2453
2453
|
event.preventDefault();
|
|
2454
2454
|
setActiveVideo((_b2 = (_a3 = card.cta) == null ? void 0 : _a3.url) != null ? _b2 : null);
|
|
2455
2455
|
} : card.onCtaClick
|
|
2456
|
-
}, card)
|
|
2456
|
+
}, card), {
|
|
2457
|
+
cta: videoUrl && card.cta ? __spreadProps(__spreadValues({}, card.cta), { icon: "watchBlack" }) : card.cta
|
|
2458
|
+
})
|
|
2457
2459
|
) }, index);
|
|
2458
2460
|
})
|
|
2459
2461
|
}
|