@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.mjs
CHANGED
|
@@ -2432,11 +2432,11 @@ var CardCarousel = ({
|
|
|
2432
2432
|
onSnapIndexChange: syncPagination,
|
|
2433
2433
|
onResize: syncPagination,
|
|
2434
2434
|
children: cards.map((_d, index) => {
|
|
2435
|
-
var _e = _d, { isLocked, className: cardClassName } = _e, card = __objRest(_e, ["isLocked", "className"]);
|
|
2435
|
+
var _e = _d, { isLocked, className: cardClassName, videoUrl } = _e, card = __objRest(_e, ["isLocked", "className", "videoUrl"]);
|
|
2436
2436
|
var _a2;
|
|
2437
2437
|
return /* @__PURE__ */ jsx(SwiperSlide, { children: /* @__PURE__ */ jsx(
|
|
2438
2438
|
Card2,
|
|
2439
|
-
__spreadValues({
|
|
2439
|
+
__spreadProps(__spreadValues({
|
|
2440
2440
|
variant: theme,
|
|
2441
2441
|
className: clsx52(CardCarousel_module_default.card, isLocked && CardCarousel_module_default.locked, cardClassName),
|
|
2442
2442
|
onCtaClick: ((_a2 = card.cta) == null ? void 0 : _a2.url) ? (event) => {
|
|
@@ -2444,7 +2444,9 @@ var CardCarousel = ({
|
|
|
2444
2444
|
event.preventDefault();
|
|
2445
2445
|
setActiveVideo((_b2 = (_a3 = card.cta) == null ? void 0 : _a3.url) != null ? _b2 : null);
|
|
2446
2446
|
} : card.onCtaClick
|
|
2447
|
-
}, card)
|
|
2447
|
+
}, card), {
|
|
2448
|
+
cta: videoUrl && card.cta ? __spreadProps(__spreadValues({}, card.cta), { icon: "watchBlack" }) : card.cta
|
|
2449
|
+
})
|
|
2448
2450
|
) }, index);
|
|
2449
2451
|
})
|
|
2450
2452
|
}
|