@digital-b2c/coreui-kit 0.21.4 → 0.21.7
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 +25 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +9 -2
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +25 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2442,19 +2442,16 @@ var CardCarousel = ({
|
|
|
2442
2442
|
onResize: syncPagination,
|
|
2443
2443
|
children: cards.map((_d, index) => {
|
|
2444
2444
|
var _e = _d, { isLocked, className: cardClassName, videoUrl } = _e, card = __objRest(_e, ["isLocked", "className", "videoUrl"]);
|
|
2445
|
-
var _a2;
|
|
2446
2445
|
return /* @__PURE__ */ jsxRuntime.jsx(react$1.SwiperSlide, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2447
2446
|
Card2,
|
|
2448
|
-
__spreadProps(__spreadValues({
|
|
2447
|
+
__spreadProps(__spreadValues({}, card), {
|
|
2449
2448
|
variant: theme,
|
|
2450
2449
|
className: clsx52__default.default(CardCarousel_module_default.card, isLocked && CardCarousel_module_default.locked, cardClassName),
|
|
2451
|
-
onCtaClick:
|
|
2452
|
-
var _a3, _b2;
|
|
2450
|
+
onCtaClick: !isLocked && videoUrl ? (event) => {
|
|
2453
2451
|
event.preventDefault();
|
|
2454
|
-
setActiveVideo(
|
|
2455
|
-
} : card.onCtaClick
|
|
2456
|
-
|
|
2457
|
-
cta: videoUrl && card.cta ? __spreadProps(__spreadValues({}, card.cta), { icon: "watchBlack" }) : card.cta
|
|
2452
|
+
setActiveVideo(videoUrl);
|
|
2453
|
+
} : card.onCtaClick,
|
|
2454
|
+
cta: !isLocked && videoUrl && card.cta ? __spreadProps(__spreadValues({}, card.cta), { icon: "watchBlack" }) : card.cta
|
|
2458
2455
|
})
|
|
2459
2456
|
) }, index);
|
|
2460
2457
|
})
|
|
@@ -4190,6 +4187,24 @@ var Navigation2 = (props) => {
|
|
|
4190
4187
|
document.body.style.overflow = "";
|
|
4191
4188
|
};
|
|
4192
4189
|
}, [isMobileMenuOpen]);
|
|
4190
|
+
React72.useEffect(() => {
|
|
4191
|
+
if (!navRef.current) return;
|
|
4192
|
+
const navigation = navRef.current;
|
|
4193
|
+
const root = document.documentElement;
|
|
4194
|
+
const updateNavigationHeight = () => {
|
|
4195
|
+
root.style.setProperty(
|
|
4196
|
+
"--navigation-height",
|
|
4197
|
+
`${navigation.getBoundingClientRect().height}px`
|
|
4198
|
+
);
|
|
4199
|
+
};
|
|
4200
|
+
updateNavigationHeight();
|
|
4201
|
+
const resizeObserver = new ResizeObserver(updateNavigationHeight);
|
|
4202
|
+
resizeObserver.observe(navigation);
|
|
4203
|
+
return () => {
|
|
4204
|
+
resizeObserver.disconnect();
|
|
4205
|
+
root.style.removeProperty("--navigation-height");
|
|
4206
|
+
};
|
|
4207
|
+
}, []);
|
|
4193
4208
|
React72.useEffect(() => {
|
|
4194
4209
|
if (!dropdownOpen) return;
|
|
4195
4210
|
const handleKey = (e) => {
|
|
@@ -5706,6 +5721,7 @@ var QuoteSectionBlock_module_default = {
|
|
|
5706
5721
|
attribution: "QuoteSectionBlock_module_attribution",
|
|
5707
5722
|
displayPhoto: "QuoteSectionBlock_module_displayPhoto",
|
|
5708
5723
|
displayName: "QuoteSectionBlock_module_displayName",
|
|
5724
|
+
displaySubName: "QuoteSectionBlock_module_displaySubName",
|
|
5709
5725
|
attributionText: "QuoteSectionBlock_module_attributionText",
|
|
5710
5726
|
jobTitleLogo: "QuoteSectionBlock_module_jobTitleLogo",
|
|
5711
5727
|
controls: "QuoteSectionBlock_module_controls"
|
|
@@ -5744,6 +5760,7 @@ var QuoteSectionBlock = ({
|
|
|
5744
5760
|
),
|
|
5745
5761
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: QuoteSectionBlock_module_default.attributionText, children: [
|
|
5746
5762
|
(item == null ? void 0 : item.displayName) && /* @__PURE__ */ jsxRuntime.jsx("span", { className: QuoteSectionBlock_module_default.displayName, children: item.displayName }),
|
|
5763
|
+
(item == null ? void 0 : item.displaySubName) && /* @__PURE__ */ jsxRuntime.jsx("span", { className: QuoteSectionBlock_module_default.displaySubName, children: item.displaySubName }),
|
|
5747
5764
|
(item == null ? void 0 : item.jobTitleLogo) && /* @__PURE__ */ jsxRuntime.jsx("img", { src: item.jobTitleLogo, alt: "", className: QuoteSectionBlock_module_default.jobTitleLogo })
|
|
5748
5765
|
] })
|
|
5749
5766
|
] })
|