@digital-b2c/coreui-kit 0.4.2 → 0.4.3
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 +310 -67
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +212 -33
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +35 -5
- package/dist/index.d.ts +35 -5
- package/dist/index.mjs +310 -68
- package/dist/index.mjs.map +1 -1
- package/dist/types/global.d.ts +25 -25
- package/package.json +99 -99
package/dist/index.cjs
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var clsx19 = require('clsx');
|
|
4
4
|
var jsxRuntime = require('react/jsx-runtime');
|
|
5
5
|
var React52 = require('react');
|
|
6
6
|
var gsap = require('gsap');
|
|
7
7
|
var react = require('@gsap/react');
|
|
8
8
|
var ScrollTrigger = require('gsap/ScrollTrigger');
|
|
9
|
+
var react$1 = require('swiper/react');
|
|
10
|
+
var modules = require('swiper/modules');
|
|
11
|
+
require('swiper/css');
|
|
9
12
|
|
|
10
13
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
14
|
|
|
12
|
-
var
|
|
15
|
+
var clsx19__default = /*#__PURE__*/_interopDefault(clsx19);
|
|
13
16
|
var React52__default = /*#__PURE__*/_interopDefault(React52);
|
|
14
17
|
var gsap__default = /*#__PURE__*/_interopDefault(gsap);
|
|
15
18
|
|
|
@@ -63,7 +66,7 @@ var Picture = (_a) => {
|
|
|
63
66
|
__spreadValues({
|
|
64
67
|
src: desktop.src,
|
|
65
68
|
alt: desktop.alt,
|
|
66
|
-
className:
|
|
69
|
+
className: clsx19__default.default(className, Picture_module_default["image-desktop"])
|
|
67
70
|
}, rest)
|
|
68
71
|
),
|
|
69
72
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -71,7 +74,7 @@ var Picture = (_a) => {
|
|
|
71
74
|
__spreadValues({
|
|
72
75
|
src: (_b2 = mobile == null ? void 0 : mobile.src) != null ? _b2 : desktop.src,
|
|
73
76
|
alt: (_c = mobile == null ? void 0 : mobile.alt) != null ? _c : desktop.alt,
|
|
74
|
-
className:
|
|
77
|
+
className: clsx19__default.default(className, Picture_module_default["image-mobile"])
|
|
75
78
|
}, rest)
|
|
76
79
|
)
|
|
77
80
|
] });
|
|
@@ -385,7 +388,7 @@ var Button = (_a) => {
|
|
|
385
388
|
]);
|
|
386
389
|
const isLink = !!href;
|
|
387
390
|
const props = __spreadValues(__spreadValues({
|
|
388
|
-
className:
|
|
391
|
+
className: clsx19__default.default(
|
|
389
392
|
Button_module_default.button,
|
|
390
393
|
variant ? Button_module_default[variant] : null,
|
|
391
394
|
{ [Button_module_default.fullWidth]: !!fullWidth },
|
|
@@ -494,9 +497,7 @@ var BrandsStrip_module_default = {
|
|
|
494
497
|
title: "BrandsStrip_module_title",
|
|
495
498
|
blurred: "BrandsStrip_module_blurred",
|
|
496
499
|
logos: "BrandsStrip_module_logos",
|
|
497
|
-
|
|
498
|
-
scrollIndividual: "BrandsStrip_module_scrollIndividual",
|
|
499
|
-
paused: "BrandsStrip_module_paused",
|
|
500
|
+
marqueeGSAP: "BrandsStrip_module_marqueeGSAP",
|
|
500
501
|
logo: "BrandsStrip_module_logo",
|
|
501
502
|
cta: "BrandsStrip_module_cta"
|
|
502
503
|
};
|
|
@@ -506,37 +507,136 @@ var BrandsStrip = ({
|
|
|
506
507
|
title,
|
|
507
508
|
logos = [],
|
|
508
509
|
cta,
|
|
509
|
-
size
|
|
510
|
-
animate = false
|
|
510
|
+
size
|
|
511
511
|
}) => {
|
|
512
512
|
const [show, setShow] = React52.useState(false);
|
|
513
|
+
const [shouldAnimate, setShouldAnimate] = React52.useState(false);
|
|
513
514
|
const { is } = useViewPort_default();
|
|
514
515
|
const isTabletBelow = is("tablet", "below");
|
|
515
|
-
const
|
|
516
|
+
const containerRef = React52.useRef(null);
|
|
517
|
+
const marqueeRef = React52.useRef(null);
|
|
518
|
+
const timeline = React52.useRef(null);
|
|
519
|
+
const horizontalLoop = (items, config) => {
|
|
520
|
+
const itemsArray = gsap__default.default.utils.toArray(items);
|
|
521
|
+
const cfg = config || {};
|
|
522
|
+
const tl = gsap__default.default.timeline({
|
|
523
|
+
repeat: cfg.repeat,
|
|
524
|
+
paused: cfg.paused,
|
|
525
|
+
defaults: { ease: "none" },
|
|
526
|
+
onReverseComplete: () => tl.totalTime(tl.rawTime() + tl.duration() * 100)
|
|
527
|
+
});
|
|
528
|
+
const length = itemsArray.length;
|
|
529
|
+
const startX = itemsArray[0].offsetLeft;
|
|
530
|
+
const widths = [];
|
|
531
|
+
const xPercents = [];
|
|
532
|
+
const pixelsPerSecond = (cfg.speed || 1) * 100;
|
|
533
|
+
const snap = cfg.snap === false ? (v) => v : gsap__default.default.utils.snap(cfg.snap || 1);
|
|
534
|
+
gsap__default.default.set(itemsArray, {
|
|
535
|
+
xPercent: (i, target) => {
|
|
536
|
+
const w = widths[i] = parseFloat(gsap__default.default.getProperty(target, "width", "px"));
|
|
537
|
+
xPercents[i] = snap(
|
|
538
|
+
parseFloat(gsap__default.default.getProperty(target, "x", "px")) / w * 100 + gsap__default.default.getProperty(target, "xPercent")
|
|
539
|
+
);
|
|
540
|
+
return xPercents[i];
|
|
541
|
+
}
|
|
542
|
+
});
|
|
543
|
+
gsap__default.default.set(itemsArray, { x: 0 });
|
|
544
|
+
const totalWidth = itemsArray[length - 1].offsetLeft + xPercents[length - 1] / 100 * widths[length - 1] - startX + itemsArray[length - 1].offsetWidth * gsap__default.default.getProperty(itemsArray[length - 1], "scaleX") + (parseFloat(cfg.paddingRight) || 0);
|
|
545
|
+
for (let i = 0; i < length; i++) {
|
|
546
|
+
const item = itemsArray[i];
|
|
547
|
+
const curX = xPercents[i] / 100 * widths[i];
|
|
548
|
+
const distanceToStart = item.offsetLeft - startX;
|
|
549
|
+
const distanceToLoop = distanceToStart + widths[i] * gsap__default.default.getProperty(item, "scaleX");
|
|
550
|
+
tl.to(
|
|
551
|
+
item,
|
|
552
|
+
{
|
|
553
|
+
xPercent: snap((curX - distanceToLoop) / widths[i] * 100),
|
|
554
|
+
duration: distanceToLoop / pixelsPerSecond
|
|
555
|
+
},
|
|
556
|
+
0
|
|
557
|
+
).fromTo(
|
|
558
|
+
item,
|
|
559
|
+
{ xPercent: snap((curX - distanceToLoop + totalWidth) / widths[i] * 100) },
|
|
560
|
+
{
|
|
561
|
+
xPercent: xPercents[i],
|
|
562
|
+
duration: (totalWidth - distanceToLoop) / pixelsPerSecond,
|
|
563
|
+
immediateRender: false
|
|
564
|
+
},
|
|
565
|
+
distanceToLoop / pixelsPerSecond
|
|
566
|
+
).add("label" + i, distanceToStart / pixelsPerSecond);
|
|
567
|
+
}
|
|
568
|
+
return tl;
|
|
569
|
+
};
|
|
570
|
+
react.useGSAP(
|
|
571
|
+
() => {
|
|
572
|
+
const refreshCalculations = () => {
|
|
573
|
+
if (!marqueeRef.current || !containerRef.current || logos.length === 0) return;
|
|
574
|
+
const items = gsap__default.default.utils.toArray(marqueeRef.current.children);
|
|
575
|
+
if (items.length === 0) return;
|
|
576
|
+
const itemWidth = items[0].clientWidth;
|
|
577
|
+
const calculatedTotalWidth = shouldAnimate ? itemWidth * items.length + 120 * (items.length - 1) / 2 : itemWidth * items.length + 120 * (items.length - 1);
|
|
578
|
+
const containerWidth = containerRef.current.clientWidth;
|
|
579
|
+
if (containerWidth === 0) {
|
|
580
|
+
requestAnimationFrame(refreshCalculations);
|
|
581
|
+
return;
|
|
582
|
+
}
|
|
583
|
+
if (containerWidth < calculatedTotalWidth) {
|
|
584
|
+
setShouldAnimate(true);
|
|
585
|
+
const ctx = gsap__default.default.context(() => {
|
|
586
|
+
const loop = horizontalLoop(items, {
|
|
587
|
+
repeat: -1,
|
|
588
|
+
speed: 1,
|
|
589
|
+
paddingRight: 120
|
|
590
|
+
});
|
|
591
|
+
timeline.current = loop;
|
|
592
|
+
}, containerRef);
|
|
593
|
+
return () => ctx.revert();
|
|
594
|
+
}
|
|
595
|
+
};
|
|
596
|
+
refreshCalculations();
|
|
597
|
+
},
|
|
598
|
+
{ scope: containerRef, dependencies: [logos] }
|
|
599
|
+
);
|
|
600
|
+
const handleMouseEnter = () => {
|
|
601
|
+
setShow(true);
|
|
602
|
+
if (timeline.current) {
|
|
603
|
+
timeline.current.pause();
|
|
604
|
+
}
|
|
605
|
+
};
|
|
606
|
+
const handleMouseLeave = () => {
|
|
607
|
+
setShow(false);
|
|
608
|
+
if (timeline.current) {
|
|
609
|
+
timeline.current.play();
|
|
610
|
+
}
|
|
611
|
+
};
|
|
612
|
+
const duplicatedLogos = React52.useMemo(() => {
|
|
613
|
+
if (logos.length === 0) return [];
|
|
614
|
+
if (!shouldAnimate) return [...logos];
|
|
615
|
+
return [...logos, ...logos];
|
|
616
|
+
}, [logos]);
|
|
516
617
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
517
618
|
"div",
|
|
518
619
|
{
|
|
519
|
-
|
|
620
|
+
ref: containerRef,
|
|
621
|
+
className: clsx19__default.default(
|
|
520
622
|
BrandsStrip_module_default.brandsStrip,
|
|
521
623
|
BrandsStrip_module_default[variant],
|
|
522
624
|
{ [BrandsStrip_module_default.small]: size === "small" },
|
|
523
625
|
className
|
|
524
626
|
),
|
|
525
|
-
onMouseEnter:
|
|
526
|
-
onMouseLeave:
|
|
527
|
-
style: { "--total-items": logos.length },
|
|
627
|
+
onMouseEnter: handleMouseEnter,
|
|
628
|
+
onMouseLeave: handleMouseLeave,
|
|
528
629
|
children: [
|
|
529
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
530
|
-
title && logos.length
|
|
531
|
-
logos.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
630
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx19__default.default(BrandsStrip_module_default.container, { [BrandsStrip_module_default.blurred]: show && logos.length > 1 }), children: [
|
|
631
|
+
title && logos.length === 1 && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: clsx19__default.default("body", BrandsStrip_module_default.title), children: title }),
|
|
632
|
+
logos.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
532
633
|
"div",
|
|
533
634
|
{
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: BrandsStrip_module_default.logo }, logo))
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
)) })
|
|
635
|
+
ref: marqueeRef,
|
|
636
|
+
className: clsx19__default.default(BrandsStrip_module_default.logos, { [BrandsStrip_module_default.marqueeGSAP]: shouldAnimate }),
|
|
637
|
+
children: duplicatedLogos.map((logo, index) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: BrandsStrip_module_default.logoWrapper, children: /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: BrandsStrip_module_default.logo }, logo)) }, `${logo.alt}-${index}`))
|
|
638
|
+
}
|
|
639
|
+
)
|
|
540
640
|
] }),
|
|
541
641
|
cta && show && logos.length > 1 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
542
642
|
Button,
|
|
@@ -588,7 +688,7 @@ var Card = React52.forwardRef(
|
|
|
588
688
|
});
|
|
589
689
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
590
690
|
const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
|
|
591
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, className:
|
|
691
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, className: clsx19__default.default(Card_module_default.card, className), children: [
|
|
592
692
|
(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 }),
|
|
593
693
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: Card_module_default.content, children: [
|
|
594
694
|
titleNode && /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "h4", children: titleNode }),
|
|
@@ -630,10 +730,10 @@ var CountingCard = ({ className, title, count, image, children }) => {
|
|
|
630
730
|
title: CountingCardTitle
|
|
631
731
|
});
|
|
632
732
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
633
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
733
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx19__default.default(CountingCard_module_default["counting-card"], className), children: [
|
|
634
734
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: CountingCard_module_default.content, children: [
|
|
635
735
|
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "body", children: titleNode }),
|
|
636
|
-
count && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
736
|
+
count && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx19__default.default(CountingCard_module_default.count, "h1"), children: count })
|
|
637
737
|
] }),
|
|
638
738
|
image && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: CountingCard_module_default.logo }, image))
|
|
639
739
|
] });
|
|
@@ -665,9 +765,9 @@ var InfoCard = ({ className, title, subtitle, icon, badge, children }) => {
|
|
|
665
765
|
});
|
|
666
766
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
667
767
|
const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
|
|
668
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
768
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx19__default.default(InfoCard_module_default["info-card"], { [InfoCard_module_default.hasIcon]: !!icon }, className), children: [
|
|
669
769
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: InfoCard_module_default.header, children: [
|
|
670
|
-
icon ? /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: icon }) : badge ? /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
770
|
+
icon ? /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: icon }) : badge ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx19__default.default(InfoCard_module_default.badge, "h4"), children: badge }) : null,
|
|
671
771
|
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h4", children: titleNode })
|
|
672
772
|
] }),
|
|
673
773
|
subtitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "body", children: subtitleNode })
|
|
@@ -729,7 +829,7 @@ var Pagination = ({
|
|
|
729
829
|
setActivePage(page);
|
|
730
830
|
onPageChange == null ? void 0 : onPageChange(page);
|
|
731
831
|
};
|
|
732
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
832
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx19__default.default(Pagination_module_default.pagination, className), children: [
|
|
733
833
|
!disableArrows && /* @__PURE__ */ jsxRuntime.jsx(
|
|
734
834
|
"button",
|
|
735
835
|
{
|
|
@@ -746,7 +846,7 @@ var Pagination = ({
|
|
|
746
846
|
"button",
|
|
747
847
|
{
|
|
748
848
|
onClick: () => goToPage(page),
|
|
749
|
-
className:
|
|
849
|
+
className: clsx19__default.default(Pagination_module_default.page, {
|
|
750
850
|
[Pagination_module_default.active]: activePage === page,
|
|
751
851
|
[Pagination_module_default.number]: hasNumber
|
|
752
852
|
}),
|
|
@@ -776,7 +876,7 @@ var Container_module_default = {
|
|
|
776
876
|
var Container = React52.forwardRef(
|
|
777
877
|
(_a, ref) => {
|
|
778
878
|
var _b = _a, { children, className } = _b, props = __objRest(_b, ["children", "className"]);
|
|
779
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", __spreadProps(__spreadValues({ ref, className:
|
|
879
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", __spreadProps(__spreadValues({ ref, className: clsx19__default.default(Container_module_default.container, className) }, props), { children }));
|
|
780
880
|
}
|
|
781
881
|
);
|
|
782
882
|
Container.displayName = "Container";
|
|
@@ -794,7 +894,7 @@ var PracticeCard_module_default = {
|
|
|
794
894
|
};
|
|
795
895
|
var PracticeCard = ({ className, title, cta, image }) => {
|
|
796
896
|
const { url: href, isExternal } = cta != null ? cta : {};
|
|
797
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
897
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx19__default.default(PracticeCard_module_default["practice-card"], className), children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
798
898
|
ConditionalWrapper,
|
|
799
899
|
__spreadProps(__spreadValues({
|
|
800
900
|
className: PracticeCard_module_default.wrapper,
|
|
@@ -805,7 +905,7 @@ var PracticeCard = ({ className, title, cta, image }) => {
|
|
|
805
905
|
children: [
|
|
806
906
|
image && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: PracticeCard_module_default.background }, image)),
|
|
807
907
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: PracticeCard_module_default.container, children: [
|
|
808
|
-
title && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
908
|
+
title && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx19__default.default(PracticeCard_module_default.title, "h3"), children: title }),
|
|
809
909
|
href && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: PracticeCard_module_default.cta, children: [
|
|
810
910
|
/* @__PURE__ */ jsxRuntime.jsx(Icon, { className: PracticeCard_module_default.ctaRest, type: "right" }),
|
|
811
911
|
/* @__PURE__ */ jsxRuntime.jsx(Icon, { className: PracticeCard_module_default.ctaHover, type: "tiltedRight" })
|
|
@@ -892,13 +992,13 @@ var CardCollection = ({
|
|
|
892
992
|
Container,
|
|
893
993
|
{
|
|
894
994
|
ref: container,
|
|
895
|
-
className:
|
|
995
|
+
className: clsx19__default.default(CardCollection_module_default["card-collection"], CardCollection_module_default[variant], className),
|
|
896
996
|
children: [
|
|
897
997
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: CardCollection_module_default.content, children: [
|
|
898
998
|
titleNode && /* @__PURE__ */ jsxRuntime.jsx("h2", { children: titleNode }),
|
|
899
999
|
subtitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "subheading", children: subtitleNode })
|
|
900
1000
|
] }),
|
|
901
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: CardCollection_module_default.wrapper, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
1001
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: CardCollection_module_default.wrapper, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx19__default.default(CardCollection_module_default.cardWrapper, { [CardCollection_module_default["is-expanded"]]: isExpanded }), children: [
|
|
902
1002
|
visibleCards.map((card, key) => /* @__PURE__ */ jsxRuntime.jsx(Card2, __spreadValues({ className: CardCollection_module_default.card }, card), key)),
|
|
903
1003
|
isExamCard && hiddenCards.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { ref: revealWrapper, className: CardCollection_module_default["reveal-wrapper"], children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: CardCollection_module_default["reveal-inner"], children: hiddenCards.map((card, key) => /* @__PURE__ */ jsxRuntime.jsx(Card2, __spreadValues({ ref: extraCard, className: CardCollection_module_default.card }, card), key)) }) }),
|
|
904
1004
|
isExamCard && !isExpanded && ctaLabel && /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -991,7 +1091,7 @@ var ContactModule = ({
|
|
|
991
1091
|
},
|
|
992
1092
|
{ scope: containerRef, dependencies: [blurred, animateBlur] }
|
|
993
1093
|
);
|
|
994
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref: containerRef, className:
|
|
1094
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref: containerRef, className: clsx19__default.default(ContactModule_module_default["contact-module"], className), children: [
|
|
995
1095
|
blurred && /* @__PURE__ */ jsxRuntime.jsx(
|
|
996
1096
|
"div",
|
|
997
1097
|
{
|
|
@@ -1006,8 +1106,8 @@ var ContactModule = ({
|
|
|
1006
1106
|
/* @__PURE__ */ jsxRuntime.jsxs(Container, { className: ContactModule_module_default.container, children: [
|
|
1007
1107
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: ContactModule_module_default.wrapper, children: [
|
|
1008
1108
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: ContactModule_module_default.content, children: [
|
|
1009
|
-
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1010
|
-
subtitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1109
|
+
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx19__default.default(ContactModule_module_default.title, "h1"), children: titleNode }),
|
|
1110
|
+
subtitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx19__default.default(ContactModule_module_default.subtitle, "subheading"), children: subtitleNode })
|
|
1011
1111
|
] }),
|
|
1012
1112
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: ContactModule_module_default["cta-wrapper"], children: ctas == null ? void 0 : ctas.map((cta, key) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1013
1113
|
Button,
|
|
@@ -1068,7 +1168,7 @@ var Footer = ({
|
|
|
1068
1168
|
disclaimer: FooterDisclaimer
|
|
1069
1169
|
});
|
|
1070
1170
|
const titleNode = (_a = slots.disclaimer) != null ? _a : disclaimer;
|
|
1071
|
-
return /* @__PURE__ */ jsxRuntime.jsx("footer", { className:
|
|
1171
|
+
return /* @__PURE__ */ jsxRuntime.jsx("footer", { className: clsx19__default.default(Footer_module_default.footer, className), children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: Footer_module_default.container, children: [
|
|
1072
1172
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: Footer_module_default.bottom, children: [
|
|
1073
1173
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: Footer_module_default["bottom-left"], children: [
|
|
1074
1174
|
supporters.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: Footer_module_default.supporters, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: Footer_module_default["supporters-logos"], children: supporters.map(
|
|
@@ -1084,7 +1184,7 @@ var Footer = ({
|
|
|
1084
1184
|
index
|
|
1085
1185
|
) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: Footer_module_default["supporter-link-primary"], children: /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({}, supporter.image)) }, index)
|
|
1086
1186
|
) }) }),
|
|
1087
|
-
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1187
|
+
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx19__default.default(Footer_module_default.disclaimer, "p"), children: titleNode }),
|
|
1088
1188
|
copyright && /* @__PURE__ */ jsxRuntime.jsx("p", { className: Footer_module_default.copyright, children: copyright })
|
|
1089
1189
|
] }),
|
|
1090
1190
|
columns.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("nav", { className: Footer_module_default["bottom-right"], children: columns.map((column, colIndex) => /* @__PURE__ */ jsxRuntime.jsx("ul", { className: Footer_module_default["nav-list"], children: column.map((link) => /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1145,22 +1245,20 @@ var HeroBanner = ({
|
|
|
1145
1245
|
var _a, _b;
|
|
1146
1246
|
const { is } = useViewPort_default();
|
|
1147
1247
|
const isTabletBelow = is("tablet", "below");
|
|
1148
|
-
const isDesktopBelow = is("desktop", "below");
|
|
1149
1248
|
const vPageHeroBanner = variant === "pageHeroBanner";
|
|
1150
1249
|
const vBannerPodcast = variant === "bannerPodcast";
|
|
1151
|
-
const animated = brands && brands.logos && brands.logos.length >= 4 && isDesktopBelow;
|
|
1152
1250
|
const slots = resolveCompoundSlots(children, {
|
|
1153
1251
|
title: HeroBannerTitle,
|
|
1154
1252
|
subtitle: HeroBannerSubtitle
|
|
1155
1253
|
});
|
|
1156
1254
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
1157
1255
|
const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
|
|
1158
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
1256
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx19__default.default(HeroBanner_module_default.heroBanner, HeroBanner_module_default[variant], className), children: [
|
|
1159
1257
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: HeroBanner_module_default.container, children: [
|
|
1160
1258
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: HeroBanner_module_default.banner, children: [
|
|
1161
1259
|
(titleNode || subtitleNode) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: HeroBanner_module_default.text, children: [
|
|
1162
|
-
titleNode && /* @__PURE__ */ jsxRuntime.jsx("h1", { className:
|
|
1163
|
-
subtitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1260
|
+
titleNode && /* @__PURE__ */ jsxRuntime.jsx("h1", { className: clsx19__default.default(HeroBanner_module_default.title, "h1"), children: titleNode }),
|
|
1261
|
+
subtitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx19__default.default(HeroBanner_module_default.subtitle, "subtitle"), children: subtitleNode })
|
|
1164
1262
|
] }),
|
|
1165
1263
|
cta && cta.length > 0 && !vBannerPodcast && /* @__PURE__ */ jsxRuntime.jsx("div", { className: HeroBanner_module_default.ctaContainer, children: cta.slice(0, 2).map((cta2, key) => {
|
|
1166
1264
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1183,8 +1281,7 @@ var HeroBanner = ({
|
|
|
1183
1281
|
__spreadValues({
|
|
1184
1282
|
className: HeroBanner_module_default.brandsStrip,
|
|
1185
1283
|
variant: "light",
|
|
1186
|
-
size: isTabletBelow || vPageHeroBanner ? "small" : void 0
|
|
1187
|
-
animate: animated
|
|
1284
|
+
size: isTabletBelow || vPageHeroBanner ? "small" : void 0
|
|
1188
1285
|
}, brands)
|
|
1189
1286
|
),
|
|
1190
1287
|
backgroundImage && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: HeroBanner_module_default.backgroundImage }, backgroundImage))
|
|
@@ -1215,32 +1312,72 @@ var MiniBannerSubtitle = ({ children }) => {
|
|
|
1215
1312
|
var MiniBanner_module_default = {
|
|
1216
1313
|
minibanner: "MiniBanner_module_minibanner",
|
|
1217
1314
|
background: "MiniBanner_module_background",
|
|
1218
|
-
|
|
1219
|
-
|
|
1315
|
+
textContainer: "MiniBanner_module_textContainer",
|
|
1316
|
+
logo: "MiniBanner_module_logo",
|
|
1317
|
+
headingWrapper: "MiniBanner_module_headingWrapper",
|
|
1318
|
+
title: "MiniBanner_module_title",
|
|
1319
|
+
ctaContainer: "MiniBanner_module_ctaContainer",
|
|
1320
|
+
miniBannerNoBG: "MiniBanner_module_miniBannerNoBG",
|
|
1321
|
+
miniBannerTextLeft: "MiniBanner_module_miniBannerTextLeft"
|
|
1322
|
+
};
|
|
1323
|
+
var MiniBannerPreTitle = ({ children }) => {
|
|
1324
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
|
|
1220
1325
|
};
|
|
1221
1326
|
var MiniBanner = ({
|
|
1222
1327
|
className,
|
|
1223
1328
|
variant = "default",
|
|
1329
|
+
pretitle,
|
|
1224
1330
|
title,
|
|
1225
1331
|
subtitle,
|
|
1226
1332
|
logo,
|
|
1227
1333
|
background,
|
|
1334
|
+
cta,
|
|
1228
1335
|
children
|
|
1229
1336
|
}) => {
|
|
1230
|
-
var _a, _b;
|
|
1337
|
+
var _a, _b, _c, _d, _e;
|
|
1231
1338
|
const slots = resolveCompoundSlots(children, {
|
|
1339
|
+
pretitle: MiniBannerPreTitle,
|
|
1232
1340
|
title: MiniBannerTitle,
|
|
1233
1341
|
subtitle: MiniBannerSubtitle
|
|
1234
1342
|
});
|
|
1235
|
-
const
|
|
1236
|
-
const
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1343
|
+
const { is } = useViewPort_default();
|
|
1344
|
+
const isTabletBelow = is("tablet", "below");
|
|
1345
|
+
const isMiniBannerNoBG = variant === "miniBannerNoBG";
|
|
1346
|
+
const isMiniBannerTextLeft = variant === "miniBannerTextLeft";
|
|
1347
|
+
const pretitleNode = (_a = slots.pretitle) != null ? _a : pretitle;
|
|
1348
|
+
const titleNode = (_b = slots.title) != null ? _b : title;
|
|
1349
|
+
const subtitleNode = (_c = slots.subtitle) != null ? _c : subtitle;
|
|
1350
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: clsx19__default.default(MiniBanner_module_default.minibanner, MiniBanner_module_default[variant], className), children: [
|
|
1351
|
+
((background == null ? void 0 : background.src) || ((_d = background == null ? void 0 : background.desktop) == null ? void 0 : _d.src) || ((_e = background == null ? void 0 : background.mobile) == null ? void 0 : _e.src)) && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: MiniBanner_module_default.background }, background)),
|
|
1352
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: MiniBanner_module_default.textContainer, children: [
|
|
1353
|
+
(logo == null ? void 0 : logo.src) && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: MiniBanner_module_default.logo }, logo)),
|
|
1354
|
+
pretitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "small", children: pretitleNode }),
|
|
1355
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: MiniBanner_module_default.headingWrapper, children: titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx19__default.default(MiniBanner_module_default.title, isMiniBannerTextLeft ? "h1" : "h4"), children: titleNode }) }),
|
|
1356
|
+
subtitleNode && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1357
|
+
"div",
|
|
1358
|
+
{
|
|
1359
|
+
className: clsx19__default.default(MiniBanner_module_default.title, {
|
|
1360
|
+
subheading: isMiniBannerNoBG || isMiniBannerTextLeft,
|
|
1361
|
+
h1: !isMiniBannerNoBG && !isMiniBannerTextLeft
|
|
1362
|
+
}),
|
|
1363
|
+
children: subtitleNode
|
|
1364
|
+
}
|
|
1365
|
+
)
|
|
1366
|
+
] }),
|
|
1367
|
+
cta && cta.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: MiniBanner_module_default.ctaContainer, children: cta.slice(0, 2).map((cta2, key) => {
|
|
1368
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1369
|
+
Button,
|
|
1370
|
+
{
|
|
1371
|
+
href: cta2.url,
|
|
1372
|
+
isExternal: cta2.isExternal,
|
|
1373
|
+
variant: "secondary",
|
|
1374
|
+
fullWidth: isTabletBelow,
|
|
1375
|
+
logo: cta2.logo,
|
|
1376
|
+
children: cta2.label
|
|
1377
|
+
},
|
|
1378
|
+
key
|
|
1379
|
+
);
|
|
1380
|
+
}) })
|
|
1244
1381
|
] });
|
|
1245
1382
|
};
|
|
1246
1383
|
|
|
@@ -1283,13 +1420,13 @@ var MiniSectionCta = ({
|
|
|
1283
1420
|
});
|
|
1284
1421
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
1285
1422
|
const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
|
|
1286
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1423
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx19__default.default(MiniSectionCta_module_default.miniSectionCta, MiniSectionCta_module_default[variant], className), children: /* @__PURE__ */ jsxRuntime.jsx(Container, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: MiniSectionCta_module_default.wrapper, children: [
|
|
1287
1424
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: MiniSectionCta_module_default.col, children: [
|
|
1288
1425
|
titleNode && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: variant === "BgColorBlack" || variant === "BgColorGrey" ? "h3" : "h2", children: titleNode }),
|
|
1289
1426
|
subtitleNode && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1290
1427
|
"div",
|
|
1291
1428
|
{
|
|
1292
|
-
className:
|
|
1429
|
+
className: clsx19__default.default(MiniSectionCta_module_default.subtitle, variant === "infoCallout" ? "h4" : "subheading"),
|
|
1293
1430
|
children: subtitleNode
|
|
1294
1431
|
}
|
|
1295
1432
|
)
|
|
@@ -1352,7 +1489,7 @@ var PracticePathCards = ({
|
|
|
1352
1489
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
1353
1490
|
const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
|
|
1354
1491
|
const footerNode = (_c = slots.footer) != null ? _c : footer;
|
|
1355
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1492
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx19__default.default(PracticePathCards_module_default["practice-path-cards"], className), children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: PracticePathCards_module_default.container, children: [
|
|
1356
1493
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: PracticePathCards_module_default.wrapper, children: [
|
|
1357
1494
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: PracticePathCards_module_default.content, children: [
|
|
1358
1495
|
titleNode && /* @__PURE__ */ jsxRuntime.jsx("h2", { children: titleNode }),
|
|
@@ -1406,8 +1543,8 @@ var Teaser5050With3Text = ({
|
|
|
1406
1543
|
title: Teaser5050With3TextTitle
|
|
1407
1544
|
});
|
|
1408
1545
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
1409
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1410
|
-
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1546
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx19__default.default(Teaser5050With3Text_module_default["teaser5050-3text"], Teaser5050With3Text_module_default[variant], className), children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: Teaser5050With3Text_module_default.container, children: [
|
|
1547
|
+
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx19__default.default(Teaser5050With3Text_module_default.title, "h3"), children: titleNode }),
|
|
1411
1548
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: Teaser5050With3Text_module_default.content, children: [
|
|
1412
1549
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: Teaser5050With3Text_module_default.cards, children: cards == null ? void 0 : cards.map((card, key) => /* @__PURE__ */ jsxRuntime.jsx(InfoCard2, __spreadValues({}, card), key)) }),
|
|
1413
1550
|
image && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: Teaser5050With3Text_module_default.image }, image))
|
|
@@ -1452,10 +1589,10 @@ var Teaser5050WithCta = ({
|
|
|
1452
1589
|
});
|
|
1453
1590
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
1454
1591
|
const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
|
|
1455
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1592
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx19__default.default(Teaser5050WithCta_module_default.teaser5050, Teaser5050WithCta_module_default[variant], className), children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: Teaser5050WithCta_module_default.container, children: [
|
|
1456
1593
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: Teaser5050WithCta_module_default.wrapper, children: [
|
|
1457
1594
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: Teaser5050WithCta_module_default.content, children: [
|
|
1458
|
-
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
1595
|
+
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx19__default.default(Teaser5050WithCta_module_default.title, "h3"), children: titleNode }),
|
|
1459
1596
|
subtitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "subheading", children: subtitleNode })
|
|
1460
1597
|
] }),
|
|
1461
1598
|
cta && /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1478,6 +1615,111 @@ var Teaser5050WithCta2 = Object.assign(Teaser5050WithCta, {
|
|
|
1478
1615
|
Title: Teaser5050WithCtaTitle,
|
|
1479
1616
|
Subtitle: Teaser5050WithCtaSubtitle
|
|
1480
1617
|
});
|
|
1618
|
+
|
|
1619
|
+
// src/components/UpcomingEventCard/UpcomingEventCard.module.scss
|
|
1620
|
+
var UpcomingEventCard_module_default = {
|
|
1621
|
+
hidden: "UpcomingEventCard_module_hidden",
|
|
1622
|
+
image: "UpcomingEventCard_module_image",
|
|
1623
|
+
"text-content": "UpcomingEventCard_module_text-content",
|
|
1624
|
+
cta: "UpcomingEventCard_module_cta",
|
|
1625
|
+
date: "UpcomingEventCard_module_date",
|
|
1626
|
+
location: "UpcomingEventCard_module_location",
|
|
1627
|
+
description: "UpcomingEventCard_module_description"
|
|
1628
|
+
};
|
|
1629
|
+
var UpcomingEventCard = ({
|
|
1630
|
+
className,
|
|
1631
|
+
image,
|
|
1632
|
+
date,
|
|
1633
|
+
title,
|
|
1634
|
+
location,
|
|
1635
|
+
description,
|
|
1636
|
+
cta
|
|
1637
|
+
}) => {
|
|
1638
|
+
const { is } = useViewPort_default();
|
|
1639
|
+
const hasCtaWithoutImage = cta && cta.url && !image;
|
|
1640
|
+
const isBelowTablet = is("tablet", "below");
|
|
1641
|
+
const isBelowMobile = is("mobile-l", "below");
|
|
1642
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("article", { className: clsx19__default.default(className), children: [
|
|
1643
|
+
image && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadProps(__spreadValues({}, image), { className: clsx19__default.default(UpcomingEventCard_module_default.image, className) })),
|
|
1644
|
+
hasCtaWithoutImage && /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "secondary", className: clsx19__default.default(isBelowTablet && UpcomingEventCard_module_default.hidden), href: cta.url, children: cta.label }),
|
|
1645
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx19__default.default(UpcomingEventCard_module_default["text-content"], className), children: [
|
|
1646
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: UpcomingEventCard_module_default.date, children: date }),
|
|
1647
|
+
title && /* @__PURE__ */ jsxRuntime.jsx("h3", { children: title }),
|
|
1648
|
+
location && /* @__PURE__ */ jsxRuntime.jsx("span", { className: UpcomingEventCard_module_default.location, children: location }),
|
|
1649
|
+
description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: UpcomingEventCard_module_default.description, children: description }),
|
|
1650
|
+
cta && cta.url && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1651
|
+
Button,
|
|
1652
|
+
{
|
|
1653
|
+
variant: "secondary",
|
|
1654
|
+
className: clsx19__default.default(!isBelowTablet && !image && UpcomingEventCard_module_default.hidden, UpcomingEventCard_module_default.cta),
|
|
1655
|
+
fullWidth: isBelowMobile,
|
|
1656
|
+
href: cta.url,
|
|
1657
|
+
children: cta.label
|
|
1658
|
+
}
|
|
1659
|
+
)
|
|
1660
|
+
] })
|
|
1661
|
+
] });
|
|
1662
|
+
};
|
|
1663
|
+
|
|
1664
|
+
// src/components/Carousel/Carousel.module.scss
|
|
1665
|
+
var Carousel_module_default = {
|
|
1666
|
+
"carousel-item": "Carousel_module_carousel-item"
|
|
1667
|
+
};
|
|
1668
|
+
var Carousel = (_a) => {
|
|
1669
|
+
var _b = _a, { slides, className } = _b, props = __objRest(_b, ["slides", "className"]);
|
|
1670
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1671
|
+
react$1.Swiper,
|
|
1672
|
+
__spreadProps(__spreadValues({
|
|
1673
|
+
className: clsx19__default.default(Carousel_module_default.carousel, className),
|
|
1674
|
+
spaceBetween: 0,
|
|
1675
|
+
slidesPerView: 1,
|
|
1676
|
+
modules: [modules.FreeMode],
|
|
1677
|
+
freeMode: { enabled: true, sticky: false, momentum: true },
|
|
1678
|
+
wrapperTag: "ul",
|
|
1679
|
+
loop: false
|
|
1680
|
+
}, props), {
|
|
1681
|
+
children: slides.map((slide, index) => /* @__PURE__ */ jsxRuntime.jsx(react$1.SwiperSlide, { tag: "li", className: Carousel_module_default["carousel-item"], children: slide }, index))
|
|
1682
|
+
})
|
|
1683
|
+
);
|
|
1684
|
+
};
|
|
1685
|
+
|
|
1686
|
+
// src/widgets/EventList/EventList.module.scss
|
|
1687
|
+
var EventList_module_default = {
|
|
1688
|
+
grey: "EventList_module_grey",
|
|
1689
|
+
"header-container": "EventList_module_header-container"
|
|
1690
|
+
};
|
|
1691
|
+
var EventListTitle = ({ children }) => {
|
|
1692
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
|
|
1693
|
+
};
|
|
1694
|
+
var EventList = ({ className, title, items, cta, variant, children }) => {
|
|
1695
|
+
var _a;
|
|
1696
|
+
const { is } = useViewPort_default();
|
|
1697
|
+
const slots = resolveCompoundSlots(children, {
|
|
1698
|
+
title: EventListTitle
|
|
1699
|
+
});
|
|
1700
|
+
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
1701
|
+
const isBelowTablet = is("tablet", "below");
|
|
1702
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: clsx19__default.default(EventList_module_default.section, variant && EventList_module_default[variant], className), children: [
|
|
1703
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: EventList_module_default["header-container"], children: [
|
|
1704
|
+
titleNode && /* @__PURE__ */ jsxRuntime.jsx("h2", { children: titleNode }),
|
|
1705
|
+
cta && cta.url && /* @__PURE__ */ jsxRuntime.jsx(Button, { className: EventList_module_default.cta, variant: "nofillblack", href: cta.url, icon: "rightBlack", children: cta.label })
|
|
1706
|
+
] }),
|
|
1707
|
+
variant === "grey" && isBelowTablet && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1708
|
+
Carousel,
|
|
1709
|
+
{
|
|
1710
|
+
className: EventList_module_default[variant],
|
|
1711
|
+
slides: items.map((item) => /* @__PURE__ */ jsxRuntime.jsx(UpcomingEventCard, __spreadValues({ className: variant }, item), item.title))
|
|
1712
|
+
}
|
|
1713
|
+
),
|
|
1714
|
+
variant === "grey" && !isBelowTablet && /* @__PURE__ */ jsxRuntime.jsx("ul", { className: clsx19__default.default(EventList_module_default[variant]), children: items == null ? void 0 : items.map((item, index) => /* @__PURE__ */ jsxRuntime.jsx("li", { className: variant, children: /* @__PURE__ */ jsxRuntime.jsx(UpcomingEventCard, __spreadProps(__spreadValues({}, item), { className: variant })) }, index)) }),
|
|
1715
|
+
!variant && /* @__PURE__ */ jsxRuntime.jsx("ul", { children: items == null ? void 0 : items.map((item, index) => /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx(UpcomingEventCard, __spreadValues({}, item)) }, index)) })
|
|
1716
|
+
] });
|
|
1717
|
+
};
|
|
1718
|
+
|
|
1719
|
+
// src/widgets/EventList/index.ts
|
|
1720
|
+
var EventList2 = Object.assign(EventList, {
|
|
1721
|
+
Title: EventListTitle
|
|
1722
|
+
});
|
|
1481
1723
|
function useIntersectionObserver({
|
|
1482
1724
|
animateOnce = false,
|
|
1483
1725
|
options = {}
|
|
@@ -1516,6 +1758,7 @@ exports.ConditionalWrapper = ConditionalWrapper;
|
|
|
1516
1758
|
exports.ContactModule = ContactModule2;
|
|
1517
1759
|
exports.Container = Container;
|
|
1518
1760
|
exports.CountingCard = CountingCard2;
|
|
1761
|
+
exports.EventList = EventList2;
|
|
1519
1762
|
exports.Footer = Footer;
|
|
1520
1763
|
exports.HeroBanner = HeroBanner2;
|
|
1521
1764
|
exports.Icon = Icon;
|