@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.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import clsx19 from 'clsx';
|
|
2
2
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
3
|
-
import React52, { forwardRef,
|
|
3
|
+
import React52, { forwardRef, useRef, useState, useCallback, Children, isValidElement, useMemo, useEffect } from 'react';
|
|
4
4
|
import gsap$1, { gsap } from 'gsap';
|
|
5
5
|
import { useGSAP } from '@gsap/react';
|
|
6
6
|
import { ScrollTrigger } from 'gsap/ScrollTrigger';
|
|
@@ -665,40 +665,54 @@ function resolveCompoundSlots(children, slots) {
|
|
|
665
665
|
return resolved;
|
|
666
666
|
}
|
|
667
667
|
|
|
668
|
+
// src/components/primitives/Container/Container.module.scss
|
|
669
|
+
var Container_module_default = {
|
|
670
|
+
container: "Container_module_container"
|
|
671
|
+
};
|
|
672
|
+
var Container = forwardRef(
|
|
673
|
+
(_a, ref) => {
|
|
674
|
+
var _b = _a, { children, className } = _b, props = __objRest(_b, ["children", "className"]);
|
|
675
|
+
return /* @__PURE__ */ jsx("div", __spreadProps(__spreadValues({ ref, className: clsx19(Container_module_default.container, className) }, props), { children }));
|
|
676
|
+
}
|
|
677
|
+
);
|
|
678
|
+
Container.displayName = "Container";
|
|
679
|
+
|
|
668
680
|
// src/components/Card/Card.module.scss
|
|
669
681
|
var Card_module_default = {
|
|
670
682
|
card: "Card_module_card",
|
|
671
683
|
logo: "Card_module_logo",
|
|
672
684
|
subtitle: "Card_module_subtitle"
|
|
673
685
|
};
|
|
674
|
-
var Card =
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
children:
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
)
|
|
686
|
+
var Card = ({ className, title, subtitle, cta, icon, logo, children, ref }) => {
|
|
687
|
+
var _a, _b;
|
|
688
|
+
const { url: href, label, isExternal } = cta != null ? cta : {};
|
|
689
|
+
const slots = resolveCompoundSlots(children, {
|
|
690
|
+
title: CardTitle,
|
|
691
|
+
subtitle: CardSubtitle
|
|
692
|
+
});
|
|
693
|
+
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
694
|
+
const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
|
|
695
|
+
console.log(href && !label, href, !label);
|
|
696
|
+
return /* @__PURE__ */ jsxs(
|
|
697
|
+
ConditionalWrapper,
|
|
698
|
+
__spreadProps(__spreadValues({
|
|
699
|
+
ref,
|
|
700
|
+
className: clsx19(Card_module_default.card, className),
|
|
701
|
+
wrapper: Anchor,
|
|
702
|
+
fallback: "div",
|
|
703
|
+
condition: href && !label
|
|
704
|
+
}, href ? { href, isExternal } : {}), {
|
|
705
|
+
children: [
|
|
706
|
+
(logo == null ? void 0 : logo.src) ? /* @__PURE__ */ jsx(Picture, __spreadValues({ className: Card_module_default.logo }, logo)) : icon && /* @__PURE__ */ jsx(Icon, { type: icon, className: Card_module_default.logo }),
|
|
707
|
+
/* @__PURE__ */ jsxs("div", { className: Card_module_default.content, children: [
|
|
708
|
+
titleNode && /* @__PURE__ */ jsx("h3", { className: "h4", children: titleNode }),
|
|
709
|
+
subtitleNode && /* @__PURE__ */ jsx("div", { className: Card_module_default.subtitle, children: subtitleNode })
|
|
710
|
+
] }),
|
|
711
|
+
(cta == null ? void 0 : cta.label) && /* @__PURE__ */ jsx(Button, { href: cta.url, isExternal: cta.isExternal, variant: "secondary", icon: cta.icon, children: cta.label })
|
|
712
|
+
]
|
|
713
|
+
})
|
|
714
|
+
);
|
|
715
|
+
};
|
|
702
716
|
Card.displayName = "Card";
|
|
703
717
|
|
|
704
718
|
// src/components/Card/index.ts
|
|
@@ -861,18 +875,6 @@ var Pagination = ({
|
|
|
861
875
|
] });
|
|
862
876
|
};
|
|
863
877
|
|
|
864
|
-
// src/components/primitives/Container/Container.module.scss
|
|
865
|
-
var Container_module_default = {
|
|
866
|
-
container: "Container_module_container"
|
|
867
|
-
};
|
|
868
|
-
var Container = forwardRef(
|
|
869
|
-
(_a, ref) => {
|
|
870
|
-
var _b = _a, { children, className } = _b, props = __objRest(_b, ["children", "className"]);
|
|
871
|
-
return /* @__PURE__ */ jsx("div", __spreadProps(__spreadValues({ ref, className: clsx19(Container_module_default.container, className) }, props), { children }));
|
|
872
|
-
}
|
|
873
|
-
);
|
|
874
|
-
Container.displayName = "Container";
|
|
875
|
-
|
|
876
878
|
// src/components/PracticeCard/PracticeCard.module.scss
|
|
877
879
|
var PracticeCard_module_default = {
|
|
878
880
|
"practice-card": "PracticeCard_module_practice-card",
|
|
@@ -921,6 +923,7 @@ var CardCollection_module_default = {
|
|
|
921
923
|
wrapper: "CardCollection_module_wrapper",
|
|
922
924
|
cardWrapper: "CardCollection_module_cardWrapper",
|
|
923
925
|
threeCols: "CardCollection_module_threeCols",
|
|
926
|
+
fourCols: "CardCollection_module_fourCols",
|
|
924
927
|
examCard: "CardCollection_module_examCard",
|
|
925
928
|
"reveal-wrapper": "CardCollection_module_reveal-wrapper",
|
|
926
929
|
"reveal-inner": "CardCollection_module_reveal-inner",
|
|
@@ -1625,13 +1628,19 @@ var Teaser5050WithCta2 = Object.assign(Teaser5050WithCta, {
|
|
|
1625
1628
|
|
|
1626
1629
|
// src/components/UpcomingEventCard/UpcomingEventCard.module.scss
|
|
1627
1630
|
var UpcomingEventCard_module_default = {
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
"
|
|
1631
|
-
|
|
1631
|
+
"event-card": "UpcomingEventCard_module_event-card",
|
|
1632
|
+
"event-card-content": "UpcomingEventCard_module_event-card-content",
|
|
1633
|
+
"event-card-image": "UpcomingEventCard_module_event-card-image",
|
|
1634
|
+
"event-card-text-content": "UpcomingEventCard_module_event-card-text-content",
|
|
1632
1635
|
date: "UpcomingEventCard_module_date",
|
|
1633
1636
|
location: "UpcomingEventCard_module_location",
|
|
1634
|
-
description: "UpcomingEventCard_module_description"
|
|
1637
|
+
description: "UpcomingEventCard_module_description",
|
|
1638
|
+
"event-card-footer": "UpcomingEventCard_module_event-card-footer",
|
|
1639
|
+
horizontal: "UpcomingEventCard_module_horizontal",
|
|
1640
|
+
"event-card-cta": "UpcomingEventCard_module_event-card-cta",
|
|
1641
|
+
hidden: "UpcomingEventCard_module_hidden",
|
|
1642
|
+
"cta-without-image": "UpcomingEventCard_module_cta-without-image",
|
|
1643
|
+
vertical: "UpcomingEventCard_module_vertical"
|
|
1635
1644
|
};
|
|
1636
1645
|
var UpcomingEventCard = ({
|
|
1637
1646
|
className,
|
|
@@ -1640,38 +1649,74 @@ var UpcomingEventCard = ({
|
|
|
1640
1649
|
title,
|
|
1641
1650
|
location,
|
|
1642
1651
|
description,
|
|
1643
|
-
cta
|
|
1652
|
+
cta,
|
|
1653
|
+
direction = "horizontal",
|
|
1654
|
+
showImage = true
|
|
1644
1655
|
}) => {
|
|
1645
1656
|
const { is } = useViewPort_default();
|
|
1646
1657
|
const hasCtaWithoutImage = cta && cta.url && !image;
|
|
1647
|
-
const
|
|
1658
|
+
const hasCTAandImage = Boolean(cta && cta.url && image);
|
|
1659
|
+
const hasImage = Boolean(image);
|
|
1648
1660
|
const isBelowMobile = is("mobile-l", "below");
|
|
1649
|
-
return /* @__PURE__ */ jsxs(
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1661
|
+
return /* @__PURE__ */ jsxs(
|
|
1662
|
+
"article",
|
|
1663
|
+
{
|
|
1664
|
+
className: clsx19(
|
|
1665
|
+
"card",
|
|
1666
|
+
UpcomingEventCard_module_default["event-card"],
|
|
1667
|
+
UpcomingEventCard_module_default[direction],
|
|
1668
|
+
hasCtaWithoutImage && UpcomingEventCard_module_default["cta-without-image"],
|
|
1669
|
+
className
|
|
1670
|
+
),
|
|
1671
|
+
children: [
|
|
1672
|
+
/* @__PURE__ */ jsxs("div", { className: clsx19("card-content", UpcomingEventCard_module_default["event-card-content"]), children: [
|
|
1673
|
+
showImage && image && /* @__PURE__ */ jsx(Picture, __spreadProps(__spreadValues({}, image), { className: clsx19("card-image", UpcomingEventCard_module_default["event-card-image"]) })),
|
|
1674
|
+
/* @__PURE__ */ jsxs("div", { className: clsx19("card-text-content", UpcomingEventCard_module_default["event-card-text-content"]), children: [
|
|
1675
|
+
/* @__PURE__ */ jsx("span", { className: UpcomingEventCard_module_default.date, children: date }),
|
|
1676
|
+
title && /* @__PURE__ */ jsx("h3", { className: clsx19("card-text-title"), children: title }),
|
|
1677
|
+
location && /* @__PURE__ */ jsx("span", { className: UpcomingEventCard_module_default.location, children: location }),
|
|
1678
|
+
description && /* @__PURE__ */ jsx("div", { className: clsx19("card-text-description", UpcomingEventCard_module_default.description), children: description }),
|
|
1679
|
+
cta && cta.url && /* @__PURE__ */ jsx(
|
|
1680
|
+
Button,
|
|
1681
|
+
{
|
|
1682
|
+
variant: "secondary",
|
|
1683
|
+
className: clsx19(
|
|
1684
|
+
"card-cta",
|
|
1685
|
+
UpcomingEventCard_module_default["event-card-cta"],
|
|
1686
|
+
!hasCTAandImage && UpcomingEventCard_module_default.hidden
|
|
1687
|
+
),
|
|
1688
|
+
fullWidth: isBelowMobile,
|
|
1689
|
+
href: cta.url,
|
|
1690
|
+
icon: cta.icon,
|
|
1691
|
+
children: cta.label
|
|
1692
|
+
}
|
|
1693
|
+
)
|
|
1694
|
+
] })
|
|
1695
|
+
] }),
|
|
1696
|
+
cta && cta.url && /* @__PURE__ */ jsx(
|
|
1697
|
+
"div",
|
|
1698
|
+
{
|
|
1699
|
+
className: clsx19("card-footer", UpcomingEventCard_module_default["event-card-footer"], hasImage && UpcomingEventCard_module_default.hidden),
|
|
1700
|
+
children: /* @__PURE__ */ jsx(
|
|
1701
|
+
Button,
|
|
1702
|
+
{
|
|
1703
|
+
variant: "secondary",
|
|
1704
|
+
className: clsx19("card-cta", UpcomingEventCard_module_default["event-card-cta"]),
|
|
1705
|
+
fullWidth: isBelowMobile,
|
|
1706
|
+
href: cta.url,
|
|
1707
|
+
icon: cta.icon,
|
|
1708
|
+
children: cta.label
|
|
1709
|
+
}
|
|
1710
|
+
)
|
|
1711
|
+
}
|
|
1712
|
+
)
|
|
1713
|
+
]
|
|
1714
|
+
}
|
|
1715
|
+
);
|
|
1669
1716
|
};
|
|
1670
1717
|
|
|
1671
1718
|
// src/components/Carousel/Carousel.module.scss
|
|
1672
|
-
var Carousel_module_default = {
|
|
1673
|
-
"carousel-item": "Carousel_module_carousel-item"
|
|
1674
|
-
};
|
|
1719
|
+
var Carousel_module_default = {};
|
|
1675
1720
|
var Carousel = (_a) => {
|
|
1676
1721
|
var _b = _a, { slides, className } = _b, props = __objRest(_b, ["slides", "className"]);
|
|
1677
1722
|
return /* @__PURE__ */ jsx(
|
|
@@ -1679,22 +1724,38 @@ var Carousel = (_a) => {
|
|
|
1679
1724
|
__spreadProps(__spreadValues({
|
|
1680
1725
|
className: clsx19(Carousel_module_default.carousel, className),
|
|
1681
1726
|
spaceBetween: 0,
|
|
1682
|
-
slidesPerView:
|
|
1727
|
+
slidesPerView: "auto",
|
|
1683
1728
|
modules: [FreeMode],
|
|
1684
1729
|
freeMode: { enabled: true, sticky: false, momentum: true },
|
|
1685
1730
|
wrapperTag: "ul",
|
|
1686
1731
|
loop: false
|
|
1687
1732
|
}, props), {
|
|
1688
|
-
children: slides.map((slide, index) => /* @__PURE__ */ jsx(
|
|
1733
|
+
children: slides.map((slide, index) => /* @__PURE__ */ jsx(
|
|
1734
|
+
SwiperSlide,
|
|
1735
|
+
{
|
|
1736
|
+
tag: "li",
|
|
1737
|
+
className: clsx19(Carousel_module_default["carousel-item"], props.slideClass),
|
|
1738
|
+
children: slide
|
|
1739
|
+
},
|
|
1740
|
+
index
|
|
1741
|
+
))
|
|
1689
1742
|
})
|
|
1690
1743
|
);
|
|
1691
1744
|
};
|
|
1692
1745
|
|
|
1693
1746
|
// src/widgets/EventList/EventList.module.scss
|
|
1694
1747
|
var EventList_module_default = {
|
|
1695
|
-
|
|
1748
|
+
"event-list-module": "EventList_module_event-list-module",
|
|
1749
|
+
"event-list-header-container": "EventList_module_event-list-header-container",
|
|
1750
|
+
"event-list-wrapper": "EventList_module_event-list-wrapper",
|
|
1751
|
+
vertical: "EventList_module_vertical",
|
|
1696
1752
|
grey: "EventList_module_grey",
|
|
1697
|
-
"
|
|
1753
|
+
"card-list-item": "EventList_module_card-list-item",
|
|
1754
|
+
"card-item": "EventList_module_card-item",
|
|
1755
|
+
horizontal: "EventList_module_horizontal",
|
|
1756
|
+
"carousel-wrapper": "EventList_module_carousel-wrapper",
|
|
1757
|
+
"carousel-list-item": "EventList_module_carousel-list-item",
|
|
1758
|
+
"event-card": "EventList_module_event-card"
|
|
1698
1759
|
};
|
|
1699
1760
|
var EventListTitle = ({ children }) => {
|
|
1700
1761
|
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
@@ -1706,22 +1767,69 @@ var EventList = ({ className, title, items, cta, variant, children }) => {
|
|
|
1706
1767
|
title: EventListTitle
|
|
1707
1768
|
});
|
|
1708
1769
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
1770
|
+
const isGrey = variant === "grey";
|
|
1709
1771
|
const isBelowTablet = is("tablet", "below");
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1772
|
+
const cardDirection = isBelowTablet ? "vertical" : "horizontal";
|
|
1773
|
+
const listDirection = isGrey ? "horizontal" : "vertical";
|
|
1774
|
+
return /* @__PURE__ */ jsx(
|
|
1775
|
+
"div",
|
|
1776
|
+
{
|
|
1777
|
+
className: clsx19(
|
|
1778
|
+
"event-list-module",
|
|
1779
|
+
EventList_module_default["event-list-module"],
|
|
1780
|
+
isGrey && EventList_module_default[variant],
|
|
1781
|
+
className
|
|
1782
|
+
),
|
|
1783
|
+
children: /* @__PURE__ */ jsxs(Container, { className: clsx19(EventList_module_default["event-list-container"]), children: [
|
|
1784
|
+
/* @__PURE__ */ jsxs("div", { className: EventList_module_default["event-list-header-container"], children: [
|
|
1785
|
+
titleNode && /* @__PURE__ */ jsx("h2", { children: titleNode }),
|
|
1786
|
+
cta && cta.url && /* @__PURE__ */ jsx(Button, { className: EventList_module_default.cta, variant: "nofillblack", href: cta.url, icon: cta.icon, children: cta.label })
|
|
1787
|
+
] }),
|
|
1788
|
+
isGrey && isBelowTablet && /* @__PURE__ */ jsx(
|
|
1789
|
+
Carousel,
|
|
1790
|
+
{
|
|
1791
|
+
wrapperClass: clsx19(EventList_module_default["carousel-wrapper"]),
|
|
1792
|
+
slideClass: EventList_module_default["carousel-list-item"],
|
|
1793
|
+
spaceBetween: 16,
|
|
1794
|
+
slides: items.map((item) => {
|
|
1795
|
+
var _a2, _b;
|
|
1796
|
+
return /* @__PURE__ */ jsx(
|
|
1797
|
+
UpcomingEventCard,
|
|
1798
|
+
__spreadValues({
|
|
1799
|
+
className: isGrey && EventList_module_default["event-card"],
|
|
1800
|
+
direction: "vertical",
|
|
1801
|
+
showImage: false
|
|
1802
|
+
}, item),
|
|
1803
|
+
(_b = (_a2 = item.title) != null ? _a2 : item.date) != null ? _b : item.location
|
|
1804
|
+
);
|
|
1805
|
+
})
|
|
1806
|
+
}
|
|
1807
|
+
),
|
|
1808
|
+
isGrey && !isBelowTablet && /* @__PURE__ */ jsx("ul", { className: clsx19(EventList_module_default["event-list-wrapper"], EventList_module_default["horizontal"], EventList_module_default[variant]), children: items == null ? void 0 : items.map((item, index) => {
|
|
1809
|
+
var _a2, _b, _c;
|
|
1810
|
+
return /* @__PURE__ */ jsx(
|
|
1811
|
+
"li",
|
|
1812
|
+
{
|
|
1813
|
+
className: clsx19(EventList_module_default["card-list-item"]),
|
|
1814
|
+
children: /* @__PURE__ */ jsx(
|
|
1815
|
+
UpcomingEventCard,
|
|
1816
|
+
__spreadProps(__spreadValues({}, item), {
|
|
1817
|
+
className: isGrey && EventList_module_default["card-item"],
|
|
1818
|
+
showImage: false,
|
|
1819
|
+
direction: "vertical"
|
|
1820
|
+
})
|
|
1821
|
+
)
|
|
1822
|
+
},
|
|
1823
|
+
(_c = (_b = (_a2 = item.title) != null ? _a2 : item.date) != null ? _b : item.location) != null ? _c : index
|
|
1824
|
+
);
|
|
1825
|
+
}) }),
|
|
1826
|
+
!isGrey && /* @__PURE__ */ jsx("ul", { className: clsx19(EventList_module_default["event-list-wrapper"], EventList_module_default[listDirection]), children: items == null ? void 0 : items.map((item, index) => {
|
|
1827
|
+
var _a2, _b, _c;
|
|
1828
|
+
return /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(UpcomingEventCard, __spreadProps(__spreadValues({}, item), { direction: cardDirection })) }, (_c = (_b = (_a2 = item.title) != null ? _a2 : item.date) != null ? _b : item.location) != null ? _c : index);
|
|
1829
|
+
}) })
|
|
1830
|
+
] })
|
|
1831
|
+
}
|
|
1832
|
+
);
|
|
1725
1833
|
};
|
|
1726
1834
|
|
|
1727
1835
|
// src/widgets/EventList/index.ts
|
|
@@ -1809,6 +1917,72 @@ var TextBody2 = Object.assign(TextBody, {
|
|
|
1809
1917
|
Title: TextBodyTitle,
|
|
1810
1918
|
Body: TextBodyBody
|
|
1811
1919
|
});
|
|
1920
|
+
var TextCenterCtaInBottomTitle = ({ children }) => {
|
|
1921
|
+
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
1922
|
+
};
|
|
1923
|
+
var TextCenterCtaInBottomSubtitle = ({ children }) => {
|
|
1924
|
+
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
1925
|
+
};
|
|
1926
|
+
|
|
1927
|
+
// src/widgets/TextCenterCtaInBottom/TextCenterCtaInBottom.module.scss
|
|
1928
|
+
var TextCenterCtaInBottom_module_default = {
|
|
1929
|
+
textCenterCta: "TextCenterCtaInBottom_module_textCenterCta",
|
|
1930
|
+
container: "TextCenterCtaInBottom_module_container",
|
|
1931
|
+
content: "TextCenterCtaInBottom_module_content",
|
|
1932
|
+
title: "TextCenterCtaInBottom_module_title",
|
|
1933
|
+
subtitle: "TextCenterCtaInBottom_module_subtitle",
|
|
1934
|
+
ctaWrapper: "TextCenterCtaInBottom_module_ctaWrapper",
|
|
1935
|
+
iconOnly: "TextCenterCtaInBottom_module_iconOnly",
|
|
1936
|
+
cta: "TextCenterCtaInBottom_module_cta"
|
|
1937
|
+
};
|
|
1938
|
+
var TextCenterCtaInBottom = ({
|
|
1939
|
+
className,
|
|
1940
|
+
title,
|
|
1941
|
+
subtitle,
|
|
1942
|
+
ctas,
|
|
1943
|
+
children
|
|
1944
|
+
}) => {
|
|
1945
|
+
var _a, _b;
|
|
1946
|
+
const slots = resolveCompoundSlots(children, {
|
|
1947
|
+
title: TextCenterCtaInBottomTitle,
|
|
1948
|
+
subtitle: TextCenterCtaInBottomSubtitle
|
|
1949
|
+
});
|
|
1950
|
+
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
1951
|
+
const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
|
|
1952
|
+
return /* @__PURE__ */ jsx("div", { className: clsx19(TextCenterCtaInBottom_module_default.textCenterCta, className), children: /* @__PURE__ */ jsxs(Container, { className: TextCenterCtaInBottom_module_default.container, children: [
|
|
1953
|
+
/* @__PURE__ */ jsxs("div", { className: TextCenterCtaInBottom_module_default.content, children: [
|
|
1954
|
+
titleNode && /* @__PURE__ */ jsx("div", { className: TextCenterCtaInBottom_module_default.title, children: titleNode }),
|
|
1955
|
+
subtitleNode && /* @__PURE__ */ jsx("div", { className: TextCenterCtaInBottom_module_default.subtitle, children: subtitleNode })
|
|
1956
|
+
] }),
|
|
1957
|
+
!!(ctas == null ? void 0 : ctas.length) && /* @__PURE__ */ jsx(
|
|
1958
|
+
"div",
|
|
1959
|
+
{
|
|
1960
|
+
className: clsx19(
|
|
1961
|
+
TextCenterCtaInBottom_module_default.ctaWrapper,
|
|
1962
|
+
ctas.every((cta) => !cta.label && cta.logo) && TextCenterCtaInBottom_module_default.iconOnly
|
|
1963
|
+
),
|
|
1964
|
+
children: ctas.map((cta, key) => /* @__PURE__ */ jsx(
|
|
1965
|
+
Button,
|
|
1966
|
+
{
|
|
1967
|
+
className: TextCenterCtaInBottom_module_default.cta,
|
|
1968
|
+
variant: "secondary",
|
|
1969
|
+
href: cta == null ? void 0 : cta.url,
|
|
1970
|
+
isExternal: cta == null ? void 0 : cta.isExternal,
|
|
1971
|
+
logo: cta.logo,
|
|
1972
|
+
children: cta == null ? void 0 : cta.label
|
|
1973
|
+
},
|
|
1974
|
+
key
|
|
1975
|
+
))
|
|
1976
|
+
}
|
|
1977
|
+
)
|
|
1978
|
+
] }) });
|
|
1979
|
+
};
|
|
1980
|
+
|
|
1981
|
+
// src/widgets/TextCenterCtaInBottom/index.ts
|
|
1982
|
+
var TextCenterCtaInBottom2 = Object.assign(TextCenterCtaInBottom, {
|
|
1983
|
+
Title: TextCenterCtaInBottomTitle,
|
|
1984
|
+
Subtitle: TextCenterCtaInBottomSubtitle
|
|
1985
|
+
});
|
|
1812
1986
|
function useIntersectionObserver({
|
|
1813
1987
|
animateOnce = false,
|
|
1814
1988
|
options = {}
|
|
@@ -1838,6 +2012,6 @@ function useIntersectionObserver({
|
|
|
1838
2012
|
return { observeRef, isVisible };
|
|
1839
2013
|
}
|
|
1840
2014
|
|
|
1841
|
-
export { Anchor, BrandsStrip, Button, Card2 as Card, CardCollection2 as CardCollection, ConditionalWrapper, ContactModule2 as ContactModule, Container, CountingCard2 as CountingCard, EventList2 as EventList, Footer, HeroBanner2 as HeroBanner, Icon, InfoCard2 as InfoCard, MiniBanner2 as MiniBanner, MiniSectionCta2 as MiniSectionCta, Pagination, Picture, PracticeCard, PracticePathCards2 as PracticePathCards, Teaser5050With3Text2 as Teaser5050With3Text, Teaser5050WithCta2 as Teaser5050WithCta, TextBody2 as TextBody, TextEvent2 as TextEvent, resolveCompoundSlots, svgs, useIntersectionObserver };
|
|
2015
|
+
export { Anchor, BrandsStrip, Button, Card2 as Card, CardCollection2 as CardCollection, ConditionalWrapper, ContactModule2 as ContactModule, Container, CountingCard2 as CountingCard, EventList2 as EventList, Footer, HeroBanner2 as HeroBanner, Icon, InfoCard2 as InfoCard, MiniBanner2 as MiniBanner, MiniSectionCta2 as MiniSectionCta, Pagination, Picture, PracticeCard, PracticePathCards2 as PracticePathCards, Teaser5050With3Text2 as Teaser5050With3Text, Teaser5050WithCta2 as Teaser5050WithCta, TextBody2 as TextBody, TextCenterCtaInBottom2 as TextCenterCtaInBottom, TextEvent2 as TextEvent, resolveCompoundSlots, svgs, useIntersectionObserver };
|
|
1842
2016
|
//# sourceMappingURL=index.mjs.map
|
|
1843
2017
|
//# sourceMappingURL=index.mjs.map
|