@digital-b2c/coreui-kit 0.5.3 → 0.5.5
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 +264 -89
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +235 -103
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +63 -31
- package/dist/index.d.ts +63 -31
- package/dist/index.mjs +265 -91
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -673,40 +673,54 @@ function resolveCompoundSlots(children, slots) {
|
|
|
673
673
|
return resolved;
|
|
674
674
|
}
|
|
675
675
|
|
|
676
|
+
// src/components/primitives/Container/Container.module.scss
|
|
677
|
+
var Container_module_default = {
|
|
678
|
+
container: "Container_module_container"
|
|
679
|
+
};
|
|
680
|
+
var Container = React52.forwardRef(
|
|
681
|
+
(_a, ref) => {
|
|
682
|
+
var _b = _a, { children, className } = _b, props = __objRest(_b, ["children", "className"]);
|
|
683
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", __spreadProps(__spreadValues({ ref, className: clsx19__default.default(Container_module_default.container, className) }, props), { children }));
|
|
684
|
+
}
|
|
685
|
+
);
|
|
686
|
+
Container.displayName = "Container";
|
|
687
|
+
|
|
676
688
|
// src/components/Card/Card.module.scss
|
|
677
689
|
var Card_module_default = {
|
|
678
690
|
card: "Card_module_card",
|
|
679
691
|
logo: "Card_module_logo",
|
|
680
692
|
subtitle: "Card_module_subtitle"
|
|
681
693
|
};
|
|
682
|
-
var Card =
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
children:
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
)
|
|
694
|
+
var Card = ({ className, title, subtitle, cta, icon, logo, children, ref }) => {
|
|
695
|
+
var _a, _b;
|
|
696
|
+
const { url: href, label, isExternal } = cta != null ? cta : {};
|
|
697
|
+
const slots = resolveCompoundSlots(children, {
|
|
698
|
+
title: CardTitle,
|
|
699
|
+
subtitle: CardSubtitle
|
|
700
|
+
});
|
|
701
|
+
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
702
|
+
const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
|
|
703
|
+
console.log(href && !label, href, !label);
|
|
704
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
705
|
+
ConditionalWrapper,
|
|
706
|
+
__spreadProps(__spreadValues({
|
|
707
|
+
ref,
|
|
708
|
+
className: clsx19__default.default(Card_module_default.card, className),
|
|
709
|
+
wrapper: Anchor,
|
|
710
|
+
fallback: "div",
|
|
711
|
+
condition: href && !label
|
|
712
|
+
}, href ? { href, isExternal } : {}), {
|
|
713
|
+
children: [
|
|
714
|
+
(logo == null ? void 0 : logo.src) ? /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: Card_module_default.logo }, logo)) : icon && /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: icon, className: Card_module_default.logo }),
|
|
715
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: Card_module_default.content, children: [
|
|
716
|
+
titleNode && /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "h4", children: titleNode }),
|
|
717
|
+
subtitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: Card_module_default.subtitle, children: subtitleNode })
|
|
718
|
+
] }),
|
|
719
|
+
(cta == null ? void 0 : cta.label) && /* @__PURE__ */ jsxRuntime.jsx(Button, { href: cta.url, isExternal: cta.isExternal, variant: "secondary", icon: cta.icon, children: cta.label })
|
|
720
|
+
]
|
|
721
|
+
})
|
|
722
|
+
);
|
|
723
|
+
};
|
|
710
724
|
Card.displayName = "Card";
|
|
711
725
|
|
|
712
726
|
// src/components/Card/index.ts
|
|
@@ -869,18 +883,6 @@ var Pagination = ({
|
|
|
869
883
|
] });
|
|
870
884
|
};
|
|
871
885
|
|
|
872
|
-
// src/components/primitives/Container/Container.module.scss
|
|
873
|
-
var Container_module_default = {
|
|
874
|
-
container: "Container_module_container"
|
|
875
|
-
};
|
|
876
|
-
var Container = React52.forwardRef(
|
|
877
|
-
(_a, ref) => {
|
|
878
|
-
var _b = _a, { children, className } = _b, props = __objRest(_b, ["children", "className"]);
|
|
879
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", __spreadProps(__spreadValues({ ref, className: clsx19__default.default(Container_module_default.container, className) }, props), { children }));
|
|
880
|
-
}
|
|
881
|
-
);
|
|
882
|
-
Container.displayName = "Container";
|
|
883
|
-
|
|
884
886
|
// src/components/PracticeCard/PracticeCard.module.scss
|
|
885
887
|
var PracticeCard_module_default = {
|
|
886
888
|
"practice-card": "PracticeCard_module_practice-card",
|
|
@@ -929,6 +931,7 @@ var CardCollection_module_default = {
|
|
|
929
931
|
wrapper: "CardCollection_module_wrapper",
|
|
930
932
|
cardWrapper: "CardCollection_module_cardWrapper",
|
|
931
933
|
threeCols: "CardCollection_module_threeCols",
|
|
934
|
+
fourCols: "CardCollection_module_fourCols",
|
|
932
935
|
examCard: "CardCollection_module_examCard",
|
|
933
936
|
"reveal-wrapper": "CardCollection_module_reveal-wrapper",
|
|
934
937
|
"reveal-inner": "CardCollection_module_reveal-inner",
|
|
@@ -1633,13 +1636,19 @@ var Teaser5050WithCta2 = Object.assign(Teaser5050WithCta, {
|
|
|
1633
1636
|
|
|
1634
1637
|
// src/components/UpcomingEventCard/UpcomingEventCard.module.scss
|
|
1635
1638
|
var UpcomingEventCard_module_default = {
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
"
|
|
1639
|
-
|
|
1639
|
+
"event-card": "UpcomingEventCard_module_event-card",
|
|
1640
|
+
"event-card-content": "UpcomingEventCard_module_event-card-content",
|
|
1641
|
+
"event-card-image": "UpcomingEventCard_module_event-card-image",
|
|
1642
|
+
"event-card-text-content": "UpcomingEventCard_module_event-card-text-content",
|
|
1640
1643
|
date: "UpcomingEventCard_module_date",
|
|
1641
1644
|
location: "UpcomingEventCard_module_location",
|
|
1642
|
-
description: "UpcomingEventCard_module_description"
|
|
1645
|
+
description: "UpcomingEventCard_module_description",
|
|
1646
|
+
"event-card-footer": "UpcomingEventCard_module_event-card-footer",
|
|
1647
|
+
horizontal: "UpcomingEventCard_module_horizontal",
|
|
1648
|
+
"event-card-cta": "UpcomingEventCard_module_event-card-cta",
|
|
1649
|
+
hidden: "UpcomingEventCard_module_hidden",
|
|
1650
|
+
"cta-without-image": "UpcomingEventCard_module_cta-without-image",
|
|
1651
|
+
vertical: "UpcomingEventCard_module_vertical"
|
|
1643
1652
|
};
|
|
1644
1653
|
var UpcomingEventCard = ({
|
|
1645
1654
|
className,
|
|
@@ -1648,38 +1657,74 @@ var UpcomingEventCard = ({
|
|
|
1648
1657
|
title,
|
|
1649
1658
|
location,
|
|
1650
1659
|
description,
|
|
1651
|
-
cta
|
|
1660
|
+
cta,
|
|
1661
|
+
direction = "horizontal",
|
|
1662
|
+
showImage = true
|
|
1652
1663
|
}) => {
|
|
1653
1664
|
const { is } = useViewPort_default();
|
|
1654
1665
|
const hasCtaWithoutImage = cta && cta.url && !image;
|
|
1655
|
-
const
|
|
1666
|
+
const hasCTAandImage = Boolean(cta && cta.url && image);
|
|
1667
|
+
const hasImage = Boolean(image);
|
|
1656
1668
|
const isBelowMobile = is("mobile-l", "below");
|
|
1657
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1669
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1670
|
+
"article",
|
|
1671
|
+
{
|
|
1672
|
+
className: clsx19__default.default(
|
|
1673
|
+
"card",
|
|
1674
|
+
UpcomingEventCard_module_default["event-card"],
|
|
1675
|
+
UpcomingEventCard_module_default[direction],
|
|
1676
|
+
hasCtaWithoutImage && UpcomingEventCard_module_default["cta-without-image"],
|
|
1677
|
+
className
|
|
1678
|
+
),
|
|
1679
|
+
children: [
|
|
1680
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx19__default.default("card-content", UpcomingEventCard_module_default["event-card-content"]), children: [
|
|
1681
|
+
showImage && image && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadProps(__spreadValues({}, image), { className: clsx19__default.default("card-image", UpcomingEventCard_module_default["event-card-image"]) })),
|
|
1682
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx19__default.default("card-text-content", UpcomingEventCard_module_default["event-card-text-content"]), children: [
|
|
1683
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: UpcomingEventCard_module_default.date, children: date }),
|
|
1684
|
+
title && /* @__PURE__ */ jsxRuntime.jsx("h3", { className: clsx19__default.default("card-text-title"), children: title }),
|
|
1685
|
+
location && /* @__PURE__ */ jsxRuntime.jsx("span", { className: UpcomingEventCard_module_default.location, children: location }),
|
|
1686
|
+
description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx19__default.default("card-text-description", UpcomingEventCard_module_default.description), children: description }),
|
|
1687
|
+
cta && cta.url && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1688
|
+
Button,
|
|
1689
|
+
{
|
|
1690
|
+
variant: "secondary",
|
|
1691
|
+
className: clsx19__default.default(
|
|
1692
|
+
"card-cta",
|
|
1693
|
+
UpcomingEventCard_module_default["event-card-cta"],
|
|
1694
|
+
!hasCTAandImage && UpcomingEventCard_module_default.hidden
|
|
1695
|
+
),
|
|
1696
|
+
fullWidth: isBelowMobile,
|
|
1697
|
+
href: cta.url,
|
|
1698
|
+
icon: cta.icon,
|
|
1699
|
+
children: cta.label
|
|
1700
|
+
}
|
|
1701
|
+
)
|
|
1702
|
+
] })
|
|
1703
|
+
] }),
|
|
1704
|
+
cta && cta.url && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1705
|
+
"div",
|
|
1706
|
+
{
|
|
1707
|
+
className: clsx19__default.default("card-footer", UpcomingEventCard_module_default["event-card-footer"], hasImage && UpcomingEventCard_module_default.hidden),
|
|
1708
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1709
|
+
Button,
|
|
1710
|
+
{
|
|
1711
|
+
variant: "secondary",
|
|
1712
|
+
className: clsx19__default.default("card-cta", UpcomingEventCard_module_default["event-card-cta"]),
|
|
1713
|
+
fullWidth: isBelowMobile,
|
|
1714
|
+
href: cta.url,
|
|
1715
|
+
icon: cta.icon,
|
|
1716
|
+
children: cta.label
|
|
1717
|
+
}
|
|
1718
|
+
)
|
|
1719
|
+
}
|
|
1720
|
+
)
|
|
1721
|
+
]
|
|
1722
|
+
}
|
|
1723
|
+
);
|
|
1677
1724
|
};
|
|
1678
1725
|
|
|
1679
1726
|
// src/components/Carousel/Carousel.module.scss
|
|
1680
|
-
var Carousel_module_default = {
|
|
1681
|
-
"carousel-item": "Carousel_module_carousel-item"
|
|
1682
|
-
};
|
|
1727
|
+
var Carousel_module_default = {};
|
|
1683
1728
|
var Carousel = (_a) => {
|
|
1684
1729
|
var _b = _a, { slides, className } = _b, props = __objRest(_b, ["slides", "className"]);
|
|
1685
1730
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1687,22 +1732,38 @@ var Carousel = (_a) => {
|
|
|
1687
1732
|
__spreadProps(__spreadValues({
|
|
1688
1733
|
className: clsx19__default.default(Carousel_module_default.carousel, className),
|
|
1689
1734
|
spaceBetween: 0,
|
|
1690
|
-
slidesPerView:
|
|
1735
|
+
slidesPerView: "auto",
|
|
1691
1736
|
modules: [modules.FreeMode],
|
|
1692
1737
|
freeMode: { enabled: true, sticky: false, momentum: true },
|
|
1693
1738
|
wrapperTag: "ul",
|
|
1694
1739
|
loop: false
|
|
1695
1740
|
}, props), {
|
|
1696
|
-
children: slides.map((slide, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1741
|
+
children: slides.map((slide, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1742
|
+
react$1.SwiperSlide,
|
|
1743
|
+
{
|
|
1744
|
+
tag: "li",
|
|
1745
|
+
className: clsx19__default.default(Carousel_module_default["carousel-item"], props.slideClass),
|
|
1746
|
+
children: slide
|
|
1747
|
+
},
|
|
1748
|
+
index
|
|
1749
|
+
))
|
|
1697
1750
|
})
|
|
1698
1751
|
);
|
|
1699
1752
|
};
|
|
1700
1753
|
|
|
1701
1754
|
// src/widgets/EventList/EventList.module.scss
|
|
1702
1755
|
var EventList_module_default = {
|
|
1703
|
-
|
|
1756
|
+
"event-list-module": "EventList_module_event-list-module",
|
|
1757
|
+
"event-list-header-container": "EventList_module_event-list-header-container",
|
|
1758
|
+
"event-list-wrapper": "EventList_module_event-list-wrapper",
|
|
1759
|
+
vertical: "EventList_module_vertical",
|
|
1704
1760
|
grey: "EventList_module_grey",
|
|
1705
|
-
"
|
|
1761
|
+
"card-list-item": "EventList_module_card-list-item",
|
|
1762
|
+
"card-item": "EventList_module_card-item",
|
|
1763
|
+
horizontal: "EventList_module_horizontal",
|
|
1764
|
+
"carousel-wrapper": "EventList_module_carousel-wrapper",
|
|
1765
|
+
"carousel-list-item": "EventList_module_carousel-list-item",
|
|
1766
|
+
"event-card": "EventList_module_event-card"
|
|
1706
1767
|
};
|
|
1707
1768
|
var EventListTitle = ({ children }) => {
|
|
1708
1769
|
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
|
|
@@ -1714,22 +1775,69 @@ var EventList = ({ className, title, items, cta, variant, children }) => {
|
|
|
1714
1775
|
title: EventListTitle
|
|
1715
1776
|
});
|
|
1716
1777
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
1778
|
+
const isGrey = variant === "grey";
|
|
1717
1779
|
const isBelowTablet = is("tablet", "below");
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1780
|
+
const cardDirection = isBelowTablet ? "vertical" : "horizontal";
|
|
1781
|
+
const listDirection = isGrey ? "horizontal" : "vertical";
|
|
1782
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1783
|
+
"div",
|
|
1784
|
+
{
|
|
1785
|
+
className: clsx19__default.default(
|
|
1786
|
+
"event-list-module",
|
|
1787
|
+
EventList_module_default["event-list-module"],
|
|
1788
|
+
isGrey && EventList_module_default[variant],
|
|
1789
|
+
className
|
|
1790
|
+
),
|
|
1791
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: clsx19__default.default(EventList_module_default["event-list-container"]), children: [
|
|
1792
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: EventList_module_default["event-list-header-container"], children: [
|
|
1793
|
+
titleNode && /* @__PURE__ */ jsxRuntime.jsx("h2", { children: titleNode }),
|
|
1794
|
+
cta && cta.url && /* @__PURE__ */ jsxRuntime.jsx(Button, { className: EventList_module_default.cta, variant: "nofillblack", href: cta.url, icon: cta.icon, children: cta.label })
|
|
1795
|
+
] }),
|
|
1796
|
+
isGrey && isBelowTablet && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1797
|
+
Carousel,
|
|
1798
|
+
{
|
|
1799
|
+
wrapperClass: clsx19__default.default(EventList_module_default["carousel-wrapper"]),
|
|
1800
|
+
slideClass: EventList_module_default["carousel-list-item"],
|
|
1801
|
+
spaceBetween: 16,
|
|
1802
|
+
slides: items.map((item) => {
|
|
1803
|
+
var _a2, _b;
|
|
1804
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1805
|
+
UpcomingEventCard,
|
|
1806
|
+
__spreadValues({
|
|
1807
|
+
className: isGrey && EventList_module_default["event-card"],
|
|
1808
|
+
direction: "vertical",
|
|
1809
|
+
showImage: false
|
|
1810
|
+
}, item),
|
|
1811
|
+
(_b = (_a2 = item.title) != null ? _a2 : item.date) != null ? _b : item.location
|
|
1812
|
+
);
|
|
1813
|
+
})
|
|
1814
|
+
}
|
|
1815
|
+
),
|
|
1816
|
+
isGrey && !isBelowTablet && /* @__PURE__ */ jsxRuntime.jsx("ul", { className: clsx19__default.default(EventList_module_default["event-list-wrapper"], EventList_module_default["horizontal"], EventList_module_default[variant]), children: items == null ? void 0 : items.map((item, index) => {
|
|
1817
|
+
var _a2, _b, _c;
|
|
1818
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1819
|
+
"li",
|
|
1820
|
+
{
|
|
1821
|
+
className: clsx19__default.default(EventList_module_default["card-list-item"]),
|
|
1822
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1823
|
+
UpcomingEventCard,
|
|
1824
|
+
__spreadProps(__spreadValues({}, item), {
|
|
1825
|
+
className: isGrey && EventList_module_default["card-item"],
|
|
1826
|
+
showImage: false,
|
|
1827
|
+
direction: "vertical"
|
|
1828
|
+
})
|
|
1829
|
+
)
|
|
1830
|
+
},
|
|
1831
|
+
(_c = (_b = (_a2 = item.title) != null ? _a2 : item.date) != null ? _b : item.location) != null ? _c : index
|
|
1832
|
+
);
|
|
1833
|
+
}) }),
|
|
1834
|
+
!isGrey && /* @__PURE__ */ jsxRuntime.jsx("ul", { className: clsx19__default.default(EventList_module_default["event-list-wrapper"], EventList_module_default[listDirection]), children: items == null ? void 0 : items.map((item, index) => {
|
|
1835
|
+
var _a2, _b, _c;
|
|
1836
|
+
return /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx(UpcomingEventCard, __spreadProps(__spreadValues({}, item), { direction: cardDirection })) }, (_c = (_b = (_a2 = item.title) != null ? _a2 : item.date) != null ? _b : item.location) != null ? _c : index);
|
|
1837
|
+
}) })
|
|
1838
|
+
] })
|
|
1839
|
+
}
|
|
1840
|
+
);
|
|
1733
1841
|
};
|
|
1734
1842
|
|
|
1735
1843
|
// src/widgets/EventList/index.ts
|
|
@@ -1817,6 +1925,72 @@ var TextBody2 = Object.assign(TextBody, {
|
|
|
1817
1925
|
Title: TextBodyTitle,
|
|
1818
1926
|
Body: TextBodyBody
|
|
1819
1927
|
});
|
|
1928
|
+
var TextCenterCtaInBottomTitle = ({ children }) => {
|
|
1929
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
|
|
1930
|
+
};
|
|
1931
|
+
var TextCenterCtaInBottomSubtitle = ({ children }) => {
|
|
1932
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
|
|
1933
|
+
};
|
|
1934
|
+
|
|
1935
|
+
// src/widgets/TextCenterCtaInBottom/TextCenterCtaInBottom.module.scss
|
|
1936
|
+
var TextCenterCtaInBottom_module_default = {
|
|
1937
|
+
textCenterCta: "TextCenterCtaInBottom_module_textCenterCta",
|
|
1938
|
+
container: "TextCenterCtaInBottom_module_container",
|
|
1939
|
+
content: "TextCenterCtaInBottom_module_content",
|
|
1940
|
+
title: "TextCenterCtaInBottom_module_title",
|
|
1941
|
+
subtitle: "TextCenterCtaInBottom_module_subtitle",
|
|
1942
|
+
ctaWrapper: "TextCenterCtaInBottom_module_ctaWrapper",
|
|
1943
|
+
iconOnly: "TextCenterCtaInBottom_module_iconOnly",
|
|
1944
|
+
cta: "TextCenterCtaInBottom_module_cta"
|
|
1945
|
+
};
|
|
1946
|
+
var TextCenterCtaInBottom = ({
|
|
1947
|
+
className,
|
|
1948
|
+
title,
|
|
1949
|
+
subtitle,
|
|
1950
|
+
ctas,
|
|
1951
|
+
children
|
|
1952
|
+
}) => {
|
|
1953
|
+
var _a, _b;
|
|
1954
|
+
const slots = resolveCompoundSlots(children, {
|
|
1955
|
+
title: TextCenterCtaInBottomTitle,
|
|
1956
|
+
subtitle: TextCenterCtaInBottomSubtitle
|
|
1957
|
+
});
|
|
1958
|
+
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
1959
|
+
const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
|
|
1960
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx19__default.default(TextCenterCtaInBottom_module_default.textCenterCta, className), children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: TextCenterCtaInBottom_module_default.container, children: [
|
|
1961
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: TextCenterCtaInBottom_module_default.content, children: [
|
|
1962
|
+
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: TextCenterCtaInBottom_module_default.title, children: titleNode }),
|
|
1963
|
+
subtitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: TextCenterCtaInBottom_module_default.subtitle, children: subtitleNode })
|
|
1964
|
+
] }),
|
|
1965
|
+
!!(ctas == null ? void 0 : ctas.length) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1966
|
+
"div",
|
|
1967
|
+
{
|
|
1968
|
+
className: clsx19__default.default(
|
|
1969
|
+
TextCenterCtaInBottom_module_default.ctaWrapper,
|
|
1970
|
+
ctas.every((cta) => !cta.label && cta.logo) && TextCenterCtaInBottom_module_default.iconOnly
|
|
1971
|
+
),
|
|
1972
|
+
children: ctas.map((cta, key) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1973
|
+
Button,
|
|
1974
|
+
{
|
|
1975
|
+
className: TextCenterCtaInBottom_module_default.cta,
|
|
1976
|
+
variant: "secondary",
|
|
1977
|
+
href: cta == null ? void 0 : cta.url,
|
|
1978
|
+
isExternal: cta == null ? void 0 : cta.isExternal,
|
|
1979
|
+
logo: cta.logo,
|
|
1980
|
+
children: cta == null ? void 0 : cta.label
|
|
1981
|
+
},
|
|
1982
|
+
key
|
|
1983
|
+
))
|
|
1984
|
+
}
|
|
1985
|
+
)
|
|
1986
|
+
] }) });
|
|
1987
|
+
};
|
|
1988
|
+
|
|
1989
|
+
// src/widgets/TextCenterCtaInBottom/index.ts
|
|
1990
|
+
var TextCenterCtaInBottom2 = Object.assign(TextCenterCtaInBottom, {
|
|
1991
|
+
Title: TextCenterCtaInBottomTitle,
|
|
1992
|
+
Subtitle: TextCenterCtaInBottomSubtitle
|
|
1993
|
+
});
|
|
1820
1994
|
function useIntersectionObserver({
|
|
1821
1995
|
animateOnce = false,
|
|
1822
1996
|
options = {}
|
|
@@ -1869,6 +2043,7 @@ exports.PracticePathCards = PracticePathCards2;
|
|
|
1869
2043
|
exports.Teaser5050With3Text = Teaser5050With3Text2;
|
|
1870
2044
|
exports.Teaser5050WithCta = Teaser5050WithCta2;
|
|
1871
2045
|
exports.TextBody = TextBody2;
|
|
2046
|
+
exports.TextCenterCtaInBottom = TextCenterCtaInBottom2;
|
|
1872
2047
|
exports.TextEvent = TextEvent2;
|
|
1873
2048
|
exports.resolveCompoundSlots = resolveCompoundSlots;
|
|
1874
2049
|
exports.svgs = svgs;
|