@digital-b2c/coreui-kit 0.21.0 → 0.21.2
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/LICENSE.txt +21 -21
- package/README.md +52 -52
- package/dist/index.cjs +20 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.mjs +20 -16
- package/dist/index.mjs.map +1 -1
- package/dist/types/global.d.ts +25 -25
- package/package.json +101 -100
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
|
}
|
|
@@ -5904,14 +5906,14 @@ var BrandsTab_module_default = {
|
|
|
5904
5906
|
"card-description": "BrandsTab_module_card-description"
|
|
5905
5907
|
};
|
|
5906
5908
|
var BrandsTab = (props) => {
|
|
5907
|
-
var _a, _b, _c;
|
|
5909
|
+
var _a, _b, _c, _d, _e;
|
|
5908
5910
|
const { title, subtitle, className, tabs } = props;
|
|
5909
5911
|
const [activeIndex, setActiveIndex] = useState(0);
|
|
5910
5912
|
const { is } = useViewPort_default();
|
|
5911
5913
|
const isTabletBelow = is("tablet", "below");
|
|
5912
5914
|
const accordionItems = useMemo(() => {
|
|
5913
5915
|
return (tabs == null ? void 0 : tabs.map((tab, index) => {
|
|
5914
|
-
var _a2, _b2, _c2,
|
|
5916
|
+
var _a2, _b2, _c2, _d2, _e2, _f, _g;
|
|
5915
5917
|
return {
|
|
5916
5918
|
id: index,
|
|
5917
5919
|
title: typeof tab.trigger.active === "string" ? tab.trigger.active : /* @__PURE__ */ jsx(Picture, __spreadValues({}, tab.trigger.active)),
|
|
@@ -5945,13 +5947,14 @@ var BrandsTab = (props) => {
|
|
|
5945
5947
|
tab.image && /* @__PURE__ */ jsx(Picture, __spreadProps(__spreadValues({}, tab.image), { className: BrandsTab_module_default["card-image"] })),
|
|
5946
5948
|
/* @__PURE__ */ jsx(
|
|
5947
5949
|
Button,
|
|
5948
|
-
{
|
|
5950
|
+
__spreadProps(__spreadValues({
|
|
5949
5951
|
variant: "secondary",
|
|
5950
|
-
className: BrandsTab_module_default["card-cta"]
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5952
|
+
className: BrandsTab_module_default["card-cta"]
|
|
5953
|
+
}, (_b2 = tabs == null ? void 0 : tabs[activeIndex]) == null ? void 0 : _b2.cta), {
|
|
5954
|
+
href: (_d2 = (_c2 = tabs == null ? void 0 : tabs[activeIndex]) == null ? void 0 : _c2.cta) == null ? void 0 : _d2.url,
|
|
5955
|
+
title: (_e2 = tab.cta) == null ? void 0 : _e2.label,
|
|
5956
|
+
children: /* @__PURE__ */ jsx("span", { "aria-label": (_f = tab.cta) == null ? void 0 : _f.label, children: (_g = tab.cta) == null ? void 0 : _g.label })
|
|
5957
|
+
})
|
|
5955
5958
|
)
|
|
5956
5959
|
]
|
|
5957
5960
|
}
|
|
@@ -6049,12 +6052,13 @@ var BrandsTab = (props) => {
|
|
|
6049
6052
|
(tabs == null ? void 0 : tabs[activeIndex].image) && /* @__PURE__ */ jsx(Picture, __spreadProps(__spreadValues({}, tabs == null ? void 0 : tabs[activeIndex].image), { className: BrandsTab_module_default["card-image"] })),
|
|
6050
6053
|
/* @__PURE__ */ jsx(
|
|
6051
6054
|
Button,
|
|
6052
|
-
{
|
|
6055
|
+
__spreadProps(__spreadValues({
|
|
6053
6056
|
variant: "secondary",
|
|
6054
|
-
className: BrandsTab_module_default["card-cta"]
|
|
6055
|
-
|
|
6056
|
-
|
|
6057
|
-
|
|
6057
|
+
className: BrandsTab_module_default["card-cta"]
|
|
6058
|
+
}, (_b = tabs == null ? void 0 : tabs[activeIndex]) == null ? void 0 : _b.cta), {
|
|
6059
|
+
href: (_d = (_c = tabs == null ? void 0 : tabs[activeIndex]) == null ? void 0 : _c.cta) == null ? void 0 : _d.url,
|
|
6060
|
+
children: (_e = tabs == null ? void 0 : tabs[activeIndex].cta) == null ? void 0 : _e.label
|
|
6061
|
+
})
|
|
6058
6062
|
)
|
|
6059
6063
|
] })
|
|
6060
6064
|
]
|