@digital-b2c/coreui-kit 0.1.0 → 0.2.1

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.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import clsx3 from 'clsx';
2
2
  import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
3
- import React, { useState } from 'react';
3
+ import React, { Children, isValidElement, useState, useCallback, useEffect } from 'react';
4
4
 
5
5
  var __defProp = Object.defineProperty;
6
6
  var __defProps = Object.defineProperties;
@@ -33,6 +33,38 @@ var __objRest = (source, exclude) => {
33
33
  }
34
34
  return target;
35
35
  };
36
+
37
+ // src/components/Picture/Picture.module.scss
38
+ var Picture_module_default = {
39
+ "image-desktop": "Picture_module_image-desktop",
40
+ "image-mobile": "Picture_module_image-mobile"
41
+ };
42
+ var Picture = (_a) => {
43
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
44
+ var _b2, _c;
45
+ if ("src" in props) {
46
+ return /* @__PURE__ */ jsx("img", __spreadValues({ className }, props));
47
+ }
48
+ const _a2 = props, { desktop, mobile } = _a2, rest = __objRest(_a2, ["desktop", "mobile"]);
49
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
50
+ /* @__PURE__ */ jsx(
51
+ "img",
52
+ __spreadValues({
53
+ src: desktop.src,
54
+ alt: desktop.alt,
55
+ className: clsx3(className, Picture_module_default["image-desktop"])
56
+ }, rest)
57
+ ),
58
+ /* @__PURE__ */ jsx(
59
+ "img",
60
+ __spreadValues({
61
+ src: (_b2 = mobile == null ? void 0 : mobile.src) != null ? _b2 : desktop.src,
62
+ alt: (_c = mobile == null ? void 0 : mobile.alt) != null ? _c : desktop.alt,
63
+ className: clsx3(className, Picture_module_default["image-mobile"])
64
+ }, rest)
65
+ )
66
+ ] });
67
+ };
36
68
  var Anchor = (_a) => {
37
69
  var _b = _a, { children, isExternal } = _b, props = __objRest(_b, ["children", "isExternal"]);
38
70
  return /* @__PURE__ */ jsx(
@@ -281,7 +313,20 @@ var Icon = React.memo(
281
313
  Icon.displayName = "Icon";
282
314
 
283
315
  // src/components/Button/Button.module.scss
284
- var Button_module_default = {};
316
+ var Button_module_default = {
317
+ button: "Button_module_button",
318
+ fullWidth: "Button_module_fullWidth",
319
+ primary: "Button_module_primary",
320
+ secondary: "Button_module_secondary",
321
+ ghost: "Button_module_ghost",
322
+ nofill: "Button_module_nofill",
323
+ nofillblack: "Button_module_nofillblack",
324
+ grey: "Button_module_grey",
325
+ shiny: "Button_module_shiny",
326
+ rotateGradient: "Button_module_rotateGradient",
327
+ icon: "Button_module_icon",
328
+ logo: "Button_module_logo"
329
+ };
285
330
  var Button = (_a) => {
286
331
  var _b = _a, {
287
332
  className,
@@ -290,7 +335,8 @@ var Button = (_a) => {
290
335
  fullWidth,
291
336
  href,
292
337
  isExternal,
293
- icon
338
+ icon,
339
+ logo
294
340
  } = _b, rest = __objRest(_b, [
295
341
  "className",
296
342
  "children",
@@ -298,7 +344,8 @@ var Button = (_a) => {
298
344
  "fullWidth",
299
345
  "href",
300
346
  "isExternal",
301
- "icon"
347
+ "icon",
348
+ "logo"
302
349
  ]);
303
350
  const isLink = !!href;
304
351
  const props = __spreadValues(__spreadValues({
@@ -311,18 +358,202 @@ var Button = (_a) => {
311
358
  }, isLink ? { href, isExternal } : {}), rest);
312
359
  return /* @__PURE__ */ jsxs(ConditionalWrapper, __spreadProps(__spreadValues({ wrapper: Anchor, fallback: "button", condition: isLink }, props), { children: [
313
360
  children,
314
- icon && /* @__PURE__ */ jsx(Icon, { type: icon })
361
+ logo ? /* @__PURE__ */ jsx(Picture, __spreadValues({ className: Button_module_default.logo }, logo)) : icon && /* @__PURE__ */ jsx(Icon, { type: icon, className: Button_module_default.icon })
315
362
  ] }));
316
363
  };
317
364
 
365
+ // src/hooks/useDebounce.ts
366
+ var useDebounce = (fn, delay) => {
367
+ let timer;
368
+ return (...args) => {
369
+ if (timer) clearTimeout(timer);
370
+ timer = setTimeout(() => {
371
+ fn(...args);
372
+ }, delay);
373
+ };
374
+ };
375
+ var useDebounce_default = useDebounce;
376
+
377
+ // src/hooks/useViewPort.ts
378
+ var ORDER = [
379
+ "mobile-s",
380
+ "mobile-m",
381
+ "mobile-l",
382
+ "tablet",
383
+ "desktop",
384
+ "desktop-l",
385
+ "desktop-xl"
386
+ ];
387
+ var breakpointConditions = {
388
+ "mobile-s": (size) => size <= 320,
389
+ "mobile-m": (size) => size > 320 && size <= 375,
390
+ "mobile-l": (size) => size > 375 && size <= 425,
391
+ tablet: (size) => size > 425 && size <= 768,
392
+ desktop: (size) => size > 768 && size <= 1024,
393
+ "desktop-l": (size) => size > 1024 && size <= 1440,
394
+ "desktop-xl": (size) => size > 1440
395
+ };
396
+ var getDeviceType = (width) => {
397
+ for (const key in breakpointConditions) {
398
+ const deviceType = key;
399
+ if (breakpointConditions[deviceType](width)) {
400
+ return deviceType;
401
+ }
402
+ }
403
+ return "desktop";
404
+ };
405
+ var useViewPort = () => {
406
+ const [device, setDevice] = useState(
407
+ () => typeof window !== "undefined" ? getDeviceType(window.innerWidth) : "desktop"
408
+ );
409
+ const getOtherDevices = useCallback(
410
+ (list, what, includeSelf = false) => {
411
+ const deviceIndex = list.indexOf(what) + (!includeSelf ? 1 : 0);
412
+ return [...list].slice(deviceIndex);
413
+ },
414
+ []
415
+ );
416
+ const onWindowResize = useCallback(() => {
417
+ setDevice(getDeviceType(window.innerWidth));
418
+ }, []);
419
+ const onWindowResizeDebounce = useDebounce_default(onWindowResize, 100);
420
+ useEffect(() => {
421
+ window.addEventListener("resize", onWindowResizeDebounce);
422
+ return () => window.removeEventListener("resize", onWindowResizeDebounce);
423
+ }, [onWindowResizeDebounce]);
424
+ const is = (what, range) => {
425
+ const isArray = Array.isArray(what);
426
+ if (!range && !isArray) {
427
+ return what === device;
428
+ }
429
+ if (!range && isArray) {
430
+ return device ? what.includes(device) : false;
431
+ }
432
+ const list = range === "above" ? ORDER : [...ORDER].reverse();
433
+ const devices = getOtherDevices(list, what, true);
434
+ return device && devices.includes(device);
435
+ };
436
+ const isNot = (what) => !is(what);
437
+ const biggerThan = (what) => {
438
+ const devices = getOtherDevices(ORDER, what);
439
+ return device && devices.includes(device);
440
+ };
441
+ const smallerThan = (what) => {
442
+ const reverseOrder = [...ORDER].reverse();
443
+ const devices = getOtherDevices(reverseOrder, what);
444
+ return device && devices.includes(device);
445
+ };
446
+ return { is, isNot, biggerThan, smallerThan, device };
447
+ };
448
+ var useViewPort_default = useViewPort;
449
+
450
+ // src/components/BrandsStrip/BrandsStrip.module.scss
451
+ var BrandsStrip_module_default = {
452
+ brandsStrip: "BrandsStrip_module_brandsStrip",
453
+ light: "BrandsStrip_module_light",
454
+ dark: "BrandsStrip_module_dark",
455
+ small: "BrandsStrip_module_small",
456
+ logoWrapper: "BrandsStrip_module_logoWrapper",
457
+ container: "BrandsStrip_module_container",
458
+ title: "BrandsStrip_module_title",
459
+ blurred: "BrandsStrip_module_blurred",
460
+ logos: "BrandsStrip_module_logos",
461
+ marquee: "BrandsStrip_module_marquee",
462
+ scrollIndividual: "BrandsStrip_module_scrollIndividual",
463
+ paused: "BrandsStrip_module_paused",
464
+ logo: "BrandsStrip_module_logo",
465
+ cta: "BrandsStrip_module_cta"
466
+ };
467
+ var BrandsStrip = ({
468
+ className,
469
+ variant = "light",
470
+ title,
471
+ logos = [],
472
+ cta,
473
+ size,
474
+ animate = false
475
+ }) => {
476
+ const [show, setShow] = useState(false);
477
+ const { is } = useViewPort_default();
478
+ const isTabletBelow = is("tablet", "below");
479
+ const shouldAnimate = !title && animate;
480
+ return /* @__PURE__ */ jsxs(
481
+ "div",
482
+ {
483
+ className: clsx3(
484
+ BrandsStrip_module_default.brandsStrip,
485
+ BrandsStrip_module_default[variant],
486
+ { [BrandsStrip_module_default.small]: size === "small" },
487
+ className
488
+ ),
489
+ onMouseEnter: () => setShow(true),
490
+ onMouseLeave: () => setShow(false),
491
+ style: { "--total-items": logos.length },
492
+ children: [
493
+ /* @__PURE__ */ jsxs("div", { className: clsx3(BrandsStrip_module_default.container, { [BrandsStrip_module_default.blurred]: show && logos.length > 1 }), children: [
494
+ title && logos.length == 1 && /* @__PURE__ */ jsx("h2", { className: clsx3("body", BrandsStrip_module_default.title), children: title }),
495
+ logos.length > 0 && /* @__PURE__ */ jsx("div", { className: clsx3(BrandsStrip_module_default.logos, { [BrandsStrip_module_default.marquee]: shouldAnimate }), children: logos.map((logo, index) => /* @__PURE__ */ jsx(
496
+ "div",
497
+ {
498
+ className: clsx3(BrandsStrip_module_default.logoWrapper, { [BrandsStrip_module_default.paused]: show }),
499
+ style: { "--item-index": index },
500
+ children: /* @__PURE__ */ jsx(Picture, __spreadValues({ className: BrandsStrip_module_default.logo }, logo))
501
+ },
502
+ index
503
+ )) })
504
+ ] }),
505
+ cta && show && logos.length > 1 && /* @__PURE__ */ jsx(
506
+ Button,
507
+ {
508
+ className: BrandsStrip_module_default.cta,
509
+ variant: "secondary",
510
+ href: cta.url,
511
+ isExternal: cta.isExternal,
512
+ icon: "tiltedRightBlack",
513
+ fullWidth: isTabletBelow,
514
+ children: cta == null ? void 0 : cta.label
515
+ }
516
+ )
517
+ ]
518
+ }
519
+ );
520
+ };
521
+ var CardTitle = ({ children }) => {
522
+ return /* @__PURE__ */ jsx(Fragment, { children });
523
+ };
524
+ var CardSubtitle = ({ children }) => {
525
+ return /* @__PURE__ */ jsx(Fragment, { children });
526
+ };
527
+ function resolveCompoundSlots(children, slots) {
528
+ const resolved = {};
529
+ Children.forEach(children, (child) => {
530
+ if (!isValidElement(child)) return;
531
+ Object.entries(slots).forEach(([key, Component]) => {
532
+ if (child.type === Component) {
533
+ resolved[key] = child.props.children;
534
+ }
535
+ });
536
+ });
537
+ return resolved;
538
+ }
539
+
318
540
  // src/components/Card/Card.module.scss
319
- var Card_module_default = {};
320
- var Card = ({ className, title, subtitle, cta, icon }) => {
541
+ var Card_module_default = {
542
+ card: "Card_module_card"
543
+ };
544
+ var Card = ({ className, title, subtitle, cta, icon, children }) => {
545
+ var _a, _b;
546
+ const slots = resolveCompoundSlots(children, {
547
+ title: CardTitle,
548
+ subtitle: CardSubtitle
549
+ });
550
+ const titleNode = (_a = slots.title) != null ? _a : title;
551
+ const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
321
552
  return /* @__PURE__ */ jsxs("div", { className: clsx3(Card_module_default.card, className), children: [
322
553
  icon && /* @__PURE__ */ jsx(Icon, { type: icon }),
323
554
  /* @__PURE__ */ jsxs("div", { className: Card_module_default.content, children: [
324
- /* @__PURE__ */ jsx("h3", { className: "h4", children: title }),
325
- subtitle && /* @__PURE__ */ jsx("p", { children: subtitle })
555
+ titleNode && /* @__PURE__ */ jsx("h3", { className: "h4", children: titleNode }),
556
+ subtitleNode && /* @__PURE__ */ jsx("p", { children: subtitleNode })
326
557
  ] }),
327
558
  cta && /* @__PURE__ */ jsx(
328
559
  Button,
@@ -337,61 +568,87 @@ var Card = ({ className, title, subtitle, cta, icon }) => {
337
568
  ] });
338
569
  };
339
570
 
340
- // src/components/Picture/Picture.module.scss
341
- var Picture_module_default = {};
342
- var Picture = (_a) => {
343
- var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
344
- var _b2, _c;
345
- if ("src" in props) {
346
- return /* @__PURE__ */ jsx("img", __spreadValues({ className }, props));
347
- }
348
- const _a2 = props, { desktop, mobile } = _a2, rest = __objRest(_a2, ["desktop", "mobile"]);
349
- return /* @__PURE__ */ jsxs(Fragment, { children: [
350
- /* @__PURE__ */ jsx(
351
- "img",
352
- __spreadValues({
353
- src: desktop.src,
354
- alt: desktop.alt,
355
- className: clsx3(className, Picture_module_default["image-desktop"])
356
- }, rest)
357
- ),
358
- /* @__PURE__ */ jsx(
359
- "img",
360
- __spreadValues({
361
- src: (_b2 = mobile == null ? void 0 : mobile.src) != null ? _b2 : desktop.src,
362
- alt: (_c = mobile == null ? void 0 : mobile.alt) != null ? _c : desktop.alt,
363
- className: clsx3(className, Picture_module_default["image-mobile"])
364
- }, rest)
365
- )
366
- ] });
571
+ // src/components/Card/index.ts
572
+ var Card2 = Object.assign(Card, {
573
+ Title: CardTitle,
574
+ Subtitle: CardSubtitle
575
+ });
576
+ var CountingCardTitle = ({ children }) => {
577
+ return /* @__PURE__ */ jsx(Fragment, { children });
367
578
  };
368
579
 
369
580
  // src/components/CountingCard/CountingCard.module.scss
370
- var CountingCard_module_default = {};
371
- var CountingCard = ({ className, title, count, image }) => {
581
+ var CountingCard_module_default = {
582
+ "counting-card": "CountingCard_module_counting-card",
583
+ count: "CountingCard_module_count",
584
+ logo: "CountingCard_module_logo"
585
+ };
586
+ var CountingCard = ({ className, title, count, image, children }) => {
587
+ var _a;
588
+ const slots = resolveCompoundSlots(children, {
589
+ title: CountingCardTitle
590
+ });
591
+ const titleNode = (_a = slots.title) != null ? _a : title;
372
592
  return /* @__PURE__ */ jsxs("div", { className: clsx3(CountingCard_module_default["counting-card"], className), children: [
373
593
  /* @__PURE__ */ jsxs("div", { className: CountingCard_module_default.content, children: [
374
- title && /* @__PURE__ */ jsx("div", { className: "body", children: title }),
594
+ titleNode && /* @__PURE__ */ jsx("div", { className: "body", children: titleNode }),
375
595
  count && /* @__PURE__ */ jsx("div", { className: clsx3(CountingCard_module_default.count, "h1"), children: count })
376
596
  ] }),
377
597
  image && /* @__PURE__ */ jsx(Picture, __spreadValues({ className: CountingCard_module_default.logo }, image))
378
598
  ] });
379
599
  };
380
600
 
601
+ // src/components/CountingCard/index.ts
602
+ var CountingCard2 = Object.assign(CountingCard, {
603
+ Title: CountingCardTitle
604
+ });
605
+ var InfoCardTitle = ({ children }) => {
606
+ return /* @__PURE__ */ jsx(Fragment, { children });
607
+ };
608
+ var InfoCardSubtitle = ({ children }) => {
609
+ return /* @__PURE__ */ jsx(Fragment, { children });
610
+ };
611
+
381
612
  // src/components/InfoCard/InfoCard.module.scss
382
- var InfoCard_module_default = {};
383
- var InfoCard = ({ className, title, subtitle, icon, badge }) => {
613
+ var InfoCard_module_default = {
614
+ "info-card": "InfoCard_module_info-card",
615
+ header: "InfoCard_module_header",
616
+ badge: "InfoCard_module_badge",
617
+ hasIcon: "InfoCard_module_hasIcon"
618
+ };
619
+ var InfoCard = ({ className, title, subtitle, icon, badge, children }) => {
620
+ var _a, _b;
621
+ const slots = resolveCompoundSlots(children, {
622
+ title: InfoCardTitle,
623
+ subtitle: InfoCardSubtitle
624
+ });
625
+ const titleNode = (_a = slots.title) != null ? _a : title;
626
+ const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
384
627
  return /* @__PURE__ */ jsxs("div", { className: clsx3(InfoCard_module_default["info-card"], { [InfoCard_module_default.hasIcon]: !!icon }, className), children: [
385
628
  /* @__PURE__ */ jsxs("div", { className: InfoCard_module_default.header, children: [
386
629
  icon ? /* @__PURE__ */ jsx(Icon, { type: icon }) : badge ? /* @__PURE__ */ jsx("div", { className: clsx3(InfoCard_module_default.badge, "h4"), children: badge }) : null,
387
- title && /* @__PURE__ */ jsx("div", { className: "h4", children: title })
630
+ titleNode && /* @__PURE__ */ jsx("div", { className: "h4", children: titleNode })
388
631
  ] }),
389
- subtitle && /* @__PURE__ */ jsx("div", { className: "body", children: subtitle })
632
+ subtitleNode && /* @__PURE__ */ jsx("div", { className: "body", children: subtitleNode })
390
633
  ] });
391
634
  };
392
635
 
636
+ // src/components/InfoCard/index.ts
637
+ var InfoCard2 = Object.assign(InfoCard, {
638
+ Title: InfoCardTitle,
639
+ Subtitle: InfoCardSubtitle
640
+ });
641
+
393
642
  // src/components/Pagination/Pagination.module.scss
394
- var Pagination_module_default = {};
643
+ var Pagination_module_default = {
644
+ pagination: "Pagination_module_pagination",
645
+ next: "Pagination_module_next",
646
+ prev: "Pagination_module_prev",
647
+ pages: "Pagination_module_pages",
648
+ page: "Pagination_module_page",
649
+ active: "Pagination_module_active",
650
+ number: "Pagination_module_number"
651
+ };
395
652
  var Pagination = ({
396
653
  className,
397
654
  totalPages,
@@ -472,43 +729,338 @@ var Pagination = ({
472
729
  };
473
730
 
474
731
  // src/components/primitives/Container/Container.module.scss
475
- var Container_module_default = {};
732
+ var Container_module_default = {
733
+ container: "Container_module_container"
734
+ };
476
735
  var Container = (_a) => {
477
736
  var _b = _a, { children, className } = _b, props = __objRest(_b, ["children", "className"]);
478
737
  return /* @__PURE__ */ jsx("div", __spreadProps(__spreadValues({ className: clsx3(Container_module_default.container, className) }, props), { children }));
479
738
  };
480
739
 
740
+ // src/components/PracticeCard/PracticeCard.module.scss
741
+ var PracticeCard_module_default = {
742
+ "practice-card": "PracticeCard_module_practice-card",
743
+ wrapper: "PracticeCard_module_wrapper",
744
+ background: "PracticeCard_module_background",
745
+ container: "PracticeCard_module_container",
746
+ title: "PracticeCard_module_title",
747
+ cta: "PracticeCard_module_cta",
748
+ ctaRest: "PracticeCard_module_ctaRest",
749
+ ctaHover: "PracticeCard_module_ctaHover"
750
+ };
751
+ var PracticeCard = ({ className, title, cta, image }) => {
752
+ const { url: href, isExternal } = cta != null ? cta : {};
753
+ return /* @__PURE__ */ jsx("div", { className: clsx3(PracticeCard_module_default["practice-card"], className), children: /* @__PURE__ */ jsxs(
754
+ ConditionalWrapper,
755
+ __spreadProps(__spreadValues({
756
+ className: PracticeCard_module_default.wrapper,
757
+ wrapper: Anchor,
758
+ fallback: "div",
759
+ condition: !!href
760
+ }, href ? { href, isExternal } : {}), {
761
+ children: [
762
+ image && /* @__PURE__ */ jsx(Picture, __spreadValues({ className: PracticeCard_module_default.background }, image)),
763
+ /* @__PURE__ */ jsxs("div", { className: PracticeCard_module_default.container, children: [
764
+ title && /* @__PURE__ */ jsx("div", { className: clsx3(PracticeCard_module_default.title, "h3"), children: title }),
765
+ href && /* @__PURE__ */ jsxs("div", { className: PracticeCard_module_default.cta, children: [
766
+ /* @__PURE__ */ jsx(Icon, { className: PracticeCard_module_default.ctaRest, type: "right" }),
767
+ /* @__PURE__ */ jsx(Icon, { className: PracticeCard_module_default.ctaHover, type: "tiltedRight" })
768
+ ] })
769
+ ] })
770
+ ]
771
+ })
772
+ ) });
773
+ };
774
+ var CardCollectionTitle = ({ children }) => {
775
+ return /* @__PURE__ */ jsx(Fragment, { children });
776
+ };
777
+ var CardCollectionSubtitle = ({ children }) => {
778
+ return /* @__PURE__ */ jsx(Fragment, { children });
779
+ };
780
+
481
781
  // src/widgets/CardCollection/CardCollection.module.scss
482
- var CardCollection_module_default = {};
782
+ var CardCollection_module_default = {
783
+ "card-collection": "CardCollection_module_card-collection",
784
+ content: "CardCollection_module_content",
785
+ wrapper: "CardCollection_module_wrapper",
786
+ threeCols: "CardCollection_module_threeCols",
787
+ examCard: "CardCollection_module_examCard"
788
+ };
483
789
  var CardCollection = ({
484
790
  className,
485
791
  variant = "default",
486
792
  title,
487
793
  subtitle,
488
- cards
794
+ cards,
795
+ children
489
796
  }) => {
797
+ var _a, _b;
798
+ const slots = resolveCompoundSlots(children, {
799
+ title: CardCollectionTitle,
800
+ subtitle: CardCollectionSubtitle
801
+ });
802
+ const titleNode = (_a = slots.title) != null ? _a : title;
803
+ const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
490
804
  return /* @__PURE__ */ jsxs(Container, { className: clsx3(CardCollection_module_default["card-collection"], CardCollection_module_default[variant], className), children: [
491
805
  /* @__PURE__ */ jsxs("div", { className: CardCollection_module_default.content, children: [
492
- title && /* @__PURE__ */ jsx("h2", { children: title }),
493
- subtitle && /* @__PURE__ */ jsx("div", { className: "subheading", children: subtitle })
806
+ titleNode && /* @__PURE__ */ jsx("h2", { children: titleNode }),
807
+ subtitleNode && /* @__PURE__ */ jsx("div", { className: "subheading", children: subtitleNode })
494
808
  ] }),
495
- /* @__PURE__ */ jsx("div", { className: CardCollection_module_default.wrapper, children: cards == null ? void 0 : cards.map((card, key) => /* @__PURE__ */ jsx(Card, __spreadValues({ className: CardCollection_module_default.card }, card), key)) })
809
+ /* @__PURE__ */ jsx("div", { className: CardCollection_module_default.wrapper, children: cards == null ? void 0 : cards.map((card, key) => /* @__PURE__ */ jsx(Card2, __spreadValues({ className: CardCollection_module_default.card }, card), key)) })
496
810
  ] });
497
811
  };
498
812
 
813
+ // src/widgets/CardCollection/index.ts
814
+ var CardCollection2 = Object.assign(CardCollection, {
815
+ Title: CardCollectionTitle,
816
+ Subtitle: CardCollectionSubtitle
817
+ });
818
+ var ContactModuleTitle = ({ children }) => {
819
+ return /* @__PURE__ */ jsx(Fragment, { children });
820
+ };
821
+ var ContactModuleSubtitle = ({ children }) => {
822
+ return /* @__PURE__ */ jsx(Fragment, { children });
823
+ };
824
+
825
+ // src/widgets/ContactModule/ContactModule.module.scss
826
+ var ContactModule_module_default = {
827
+ "contact-module": "ContactModule_module_contact-module",
828
+ container: "ContactModule_module_container",
829
+ wrapper: "ContactModule_module_wrapper",
830
+ content: "ContactModule_module_content",
831
+ "cta-wrapper": "ContactModule_module_cta-wrapper",
832
+ cta: "ContactModule_module_cta",
833
+ title: "ContactModule_module_title",
834
+ image: "ContactModule_module_image"
835
+ };
836
+ var ContactModule = ({
837
+ className,
838
+ children,
839
+ title,
840
+ subtitle,
841
+ ctas,
842
+ image,
843
+ blurred
844
+ }) => {
845
+ var _a, _b;
846
+ const slots = resolveCompoundSlots(children, {
847
+ title: ContactModuleTitle,
848
+ subtitle: ContactModuleSubtitle
849
+ });
850
+ const titleNode = (_a = slots.title) != null ? _a : title;
851
+ const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
852
+ return /* @__PURE__ */ jsx("div", { className: clsx3(ContactModule_module_default["contact-module"], { [ContactModule_module_default.blurred]: blurred }, className), children: /* @__PURE__ */ jsxs(Container, { className: ContactModule_module_default.container, children: [
853
+ /* @__PURE__ */ jsxs("div", { className: ContactModule_module_default.wrapper, children: [
854
+ /* @__PURE__ */ jsxs("div", { className: ContactModule_module_default.content, children: [
855
+ titleNode && /* @__PURE__ */ jsx("div", { className: clsx3(ContactModule_module_default.title, "h1"), children: titleNode }),
856
+ subtitleNode && /* @__PURE__ */ jsx("div", { className: "subheading", children: subtitleNode })
857
+ ] }),
858
+ /* @__PURE__ */ jsx("div", { className: ContactModule_module_default["cta-wrapper"], children: ctas == null ? void 0 : ctas.map((cta, key) => /* @__PURE__ */ jsx(
859
+ Button,
860
+ {
861
+ className: ContactModule_module_default.cta,
862
+ href: cta.url,
863
+ isExternal: cta.isExternal,
864
+ variant: key % 2 === 0 ? "secondary" : "primary",
865
+ children: cta.label
866
+ },
867
+ key
868
+ )) })
869
+ ] }),
870
+ image && /* @__PURE__ */ jsx(Picture, __spreadValues({ className: ContactModule_module_default.image }, image))
871
+ ] }) });
872
+ };
873
+
874
+ // src/widgets/ContactModule/index.ts
875
+ var ContactModule2 = Object.assign(ContactModule, {
876
+ Title: ContactModuleTitle,
877
+ Subtitle: ContactModuleSubtitle
878
+ });
879
+ var HeroBannerTitle = ({ children }) => {
880
+ return /* @__PURE__ */ jsx(Fragment, { children });
881
+ };
882
+ var HeroBannerSubtitle = ({ children }) => {
883
+ return /* @__PURE__ */ jsx(Fragment, { children });
884
+ };
885
+
886
+ // src/widgets/HeroBanner/HeroBanner.module.scss
887
+ var HeroBanner_module_default = {
888
+ heroBanner: "HeroBanner_module_heroBanner",
889
+ mainHeroBanner: "HeroBanner_module_mainHeroBanner",
890
+ container: "HeroBanner_module_container",
891
+ bannerPodcast: "HeroBanner_module_bannerPodcast",
892
+ banner: "HeroBanner_module_banner",
893
+ text: "HeroBanner_module_text",
894
+ title: "HeroBanner_module_title",
895
+ subtitle: "HeroBanner_module_subtitle",
896
+ logoWrapper: "HeroBanner_module_logoWrapper",
897
+ logo: "HeroBanner_module_logo",
898
+ horizontalGradient: "HeroBanner_module_horizontalGradient",
899
+ lensCrafters: "HeroBanner_module_lensCrafters",
900
+ forEyes: "HeroBanner_module_forEyes",
901
+ optical: "HeroBanner_module_optical",
902
+ pearleVision: "HeroBanner_module_pearleVision",
903
+ ctaContainer: "HeroBanner_module_ctaContainer",
904
+ brandsStrip: "HeroBanner_module_brandsStrip",
905
+ backgroundImage: "HeroBanner_module_backgroundImage",
906
+ scrollDown: "HeroBanner_module_scrollDown",
907
+ arrow: "HeroBanner_module_arrow"
908
+ };
909
+ var HeroBanner = ({
910
+ className,
911
+ variant = "pageHeroBanner",
912
+ title,
913
+ subtitle,
914
+ backgroundImage,
915
+ logo,
916
+ cta,
917
+ brands,
918
+ children
919
+ }) => {
920
+ var _a, _b;
921
+ const { is } = useViewPort_default();
922
+ const isTabletBelow = is("tablet", "below");
923
+ const isDesktopBelow = is("desktop", "below");
924
+ const vMainHeroBanner = variant === "mainHeroBanner";
925
+ const vBannerPodcast = variant === "bannerPodcast";
926
+ const animated = brands && brands.logos && brands.logos.length >= 4 && isDesktopBelow;
927
+ const slots = resolveCompoundSlots(children, {
928
+ title: HeroBannerTitle,
929
+ subtitle: HeroBannerSubtitle
930
+ });
931
+ const titleNode = (_a = slots.title) != null ? _a : title;
932
+ const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
933
+ return /* @__PURE__ */ jsxs("div", { className: clsx3(HeroBanner_module_default.heroBanner, HeroBanner_module_default[variant], className), children: [
934
+ /* @__PURE__ */ jsxs("div", { className: HeroBanner_module_default.container, children: [
935
+ /* @__PURE__ */ jsxs("div", { className: HeroBanner_module_default.banner, children: [
936
+ (titleNode || subtitleNode) && /* @__PURE__ */ jsxs("div", { className: HeroBanner_module_default.text, children: [
937
+ titleNode && /* @__PURE__ */ jsx("h1", { className: clsx3(HeroBanner_module_default.title, "h1"), children: titleNode }),
938
+ subtitleNode && /* @__PURE__ */ jsx("div", { className: clsx3(HeroBanner_module_default.subtitle, "subtitle"), children: subtitleNode })
939
+ ] }),
940
+ cta && cta.length > 0 && !vBannerPodcast && /* @__PURE__ */ jsx("div", { className: HeroBanner_module_default.ctaContainer, children: cta.slice(0, 2).map((cta2, key) => {
941
+ return /* @__PURE__ */ jsx(
942
+ Button,
943
+ {
944
+ href: cta2.url,
945
+ isExternal: cta2.isExternal,
946
+ variant: key % 2 ? vMainHeroBanner && !isTabletBelow ? "nofill" : "grey" : "primary",
947
+ fullWidth: isTabletBelow,
948
+ children: cta2.label
949
+ },
950
+ key
951
+ );
952
+ }) })
953
+ ] }),
954
+ /* @__PURE__ */ jsx("div", { className: HeroBanner_module_default.logoWrapper, children: logo && /* @__PURE__ */ jsx(Picture, __spreadValues({ className: HeroBanner_module_default.logo }, logo)) }),
955
+ !vBannerPodcast && /* @__PURE__ */ jsx(
956
+ BrandsStrip,
957
+ __spreadValues({
958
+ className: HeroBanner_module_default.brandsStrip,
959
+ variant: "light",
960
+ size: isTabletBelow || vMainHeroBanner ? "small" : void 0,
961
+ animate: animated
962
+ }, brands)
963
+ ),
964
+ backgroundImage && /* @__PURE__ */ jsx(Picture, __spreadValues({ className: HeroBanner_module_default.backgroundImage }, backgroundImage))
965
+ ] }),
966
+ /* @__PURE__ */ jsxs("div", { className: HeroBanner_module_default.horizontalGradient, children: [
967
+ /* @__PURE__ */ jsx("div", { className: HeroBanner_module_default.lensCrafters }),
968
+ /* @__PURE__ */ jsx("div", { className: HeroBanner_module_default.forEyes }),
969
+ /* @__PURE__ */ jsx("div", { className: HeroBanner_module_default.optical }),
970
+ /* @__PURE__ */ jsx("div", { className: HeroBanner_module_default.pearleVision })
971
+ ] }),
972
+ !vBannerPodcast && /* @__PURE__ */ jsx("div", { className: HeroBanner_module_default.scrollDown, children: /* @__PURE__ */ jsx(Icon, { type: "downChevronBlack", className: HeroBanner_module_default.arrow }) })
973
+ ] });
974
+ };
975
+
976
+ // src/widgets/HeroBanner/index.ts
977
+ var HeroBanner2 = Object.assign(HeroBanner, {
978
+ Title: HeroBannerTitle,
979
+ Subtitle: HeroBannerSubtitle
980
+ });
981
+ var MiniBannerTitle = ({ children }) => {
982
+ return /* @__PURE__ */ jsx(Fragment, { children });
983
+ };
984
+ var MiniBannerSubtitle = ({ children }) => {
985
+ return /* @__PURE__ */ jsx(Fragment, { children });
986
+ };
987
+
988
+ // src/widgets/MiniBanner/MiniBanner.module.scss
989
+ var MiniBanner_module_default = {
990
+ minibanner: "MiniBanner_module_minibanner",
991
+ background: "MiniBanner_module_background",
992
+ container: "MiniBanner_module_container",
993
+ miniBannerNoBG: "MiniBanner_module_miniBannerNoBG"
994
+ };
995
+ var MiniBanner = ({
996
+ className,
997
+ variant = "default",
998
+ title,
999
+ subtitle,
1000
+ logo,
1001
+ background,
1002
+ children
1003
+ }) => {
1004
+ var _a, _b;
1005
+ const slots = resolveCompoundSlots(children, {
1006
+ title: MiniBannerTitle,
1007
+ subtitle: MiniBannerSubtitle
1008
+ });
1009
+ const titleNode = (_a = slots.title) != null ? _a : title;
1010
+ const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
1011
+ return /* @__PURE__ */ jsxs("div", { className: clsx3(MiniBanner_module_default.minibanner, MiniBanner_module_default[variant], className), children: [
1012
+ background && /* @__PURE__ */ jsx(Picture, __spreadValues({ className: MiniBanner_module_default.background }, background)),
1013
+ /* @__PURE__ */ jsxs(Container, { className: MiniBanner_module_default.container, children: [
1014
+ logo && /* @__PURE__ */ jsx(Picture, __spreadValues({ className: MiniBanner_module_default.logo }, logo)),
1015
+ titleNode && /* @__PURE__ */ jsx("div", { className: "h4", children: titleNode }),
1016
+ subtitleNode && /* @__PURE__ */ jsx("div", { className: variant === "miniBannerNoBG" ? "subheading" : "h1", children: subtitleNode })
1017
+ ] })
1018
+ ] });
1019
+ };
1020
+
1021
+ // src/widgets/MiniBanner/index.ts
1022
+ var MiniBanner2 = Object.assign(MiniBanner, {
1023
+ Title: MiniBannerTitle,
1024
+ Subtitle: MiniBannerSubtitle
1025
+ });
1026
+ var MiniSectionCtaTitle = ({ children }) => {
1027
+ return /* @__PURE__ */ jsx(Fragment, { children });
1028
+ };
1029
+ var MiniSectionCtaSubtitle = ({ children }) => {
1030
+ return /* @__PURE__ */ jsx(Fragment, { children });
1031
+ };
1032
+
499
1033
  // src/widgets/MiniSectionCta/MiniSectionCta.module.scss
500
- var MiniSectionCta_module_default = {};
1034
+ var MiniSectionCta_module_default = {
1035
+ miniSectionCta: "MiniSectionCta_module_miniSectionCta",
1036
+ container: "MiniSectionCta_module_container",
1037
+ col: "MiniSectionCta_module_col",
1038
+ BgColorBlack: "MiniSectionCta_module_BgColorBlack",
1039
+ infoCallout: "MiniSectionCta_module_infoCallout",
1040
+ miniTextCenterCta: "MiniSectionCta_module_miniTextCenterCta",
1041
+ cta: "MiniSectionCta_module_cta",
1042
+ BgColorGrey: "MiniSectionCta_module_BgColorGrey",
1043
+ subtitle: "MiniSectionCta_module_subtitle"
1044
+ };
501
1045
  var MiniSectionCta = ({
502
1046
  className,
503
1047
  variant = "headerCTA",
504
1048
  title,
505
1049
  subtitle,
506
- cta
1050
+ cta,
1051
+ children
507
1052
  }) => {
1053
+ var _a, _b;
1054
+ const slots = resolveCompoundSlots(children, {
1055
+ title: MiniSectionCtaTitle,
1056
+ subtitle: MiniSectionCtaSubtitle
1057
+ });
1058
+ const titleNode = (_a = slots.title) != null ? _a : title;
1059
+ const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
508
1060
  return /* @__PURE__ */ jsx("div", { className: clsx3(MiniSectionCta_module_default.miniSectionCta, MiniSectionCta_module_default[variant], className), children: /* @__PURE__ */ jsxs(Container, { className: MiniSectionCta_module_default.container, children: [
509
1061
  /* @__PURE__ */ jsxs("div", { className: MiniSectionCta_module_default.col, children: [
510
- title && /* @__PURE__ */ jsx("h2", { className: variant === "BgColorBlack" || variant === "BgColorGrey" ? "h3" : "h2", children: title }),
511
- subtitle && /* @__PURE__ */ jsx("div", { className: clsx3(MiniSectionCta_module_default.subtitle, variant === "infoCallout" ? "h4" : "subheading"), children: subtitle })
1062
+ titleNode && /* @__PURE__ */ jsx("h2", { className: variant === "BgColorBlack" || variant === "BgColorGrey" ? "h3" : "h2", children: titleNode }),
1063
+ subtitleNode && /* @__PURE__ */ jsx("div", { className: clsx3(MiniSectionCta_module_default.subtitle, variant === "infoCallout" ? "h4" : "subheading"), children: subtitleNode })
512
1064
  ] }),
513
1065
  cta && /* @__PURE__ */ jsx("div", { className: MiniSectionCta_module_default.col, children: /* @__PURE__ */ jsx(
514
1066
  Button,
@@ -516,7 +1068,7 @@ var MiniSectionCta = ({
516
1068
  className: MiniSectionCta_module_default.cta,
517
1069
  href: cta.url,
518
1070
  isExternal: cta.isExternal,
519
- variant: "primary",
1071
+ variant: variant === "BgColorBlack" ? "shiny" : "primary",
520
1072
  icon: variant === "miniTextCenterCta" ? "tiltedRightWhite" : void 0,
521
1073
  children: cta.label
522
1074
  }
@@ -524,39 +1076,155 @@ var MiniSectionCta = ({
524
1076
  ] }) });
525
1077
  };
526
1078
 
1079
+ // src/widgets/MiniSectionCta/index.ts
1080
+ var MiniSectionCta2 = Object.assign(MiniSectionCta, {
1081
+ Title: MiniSectionCtaTitle,
1082
+ Subtitle: MiniSectionCtaSubtitle
1083
+ });
1084
+ var PracticePathCardsFooter = ({ children }) => {
1085
+ return /* @__PURE__ */ jsx(Fragment, { children });
1086
+ };
1087
+ var PracticePathCardsSubtitle = ({ children }) => {
1088
+ return /* @__PURE__ */ jsx(Fragment, { children });
1089
+ };
1090
+ var PracticePathCardsTitle = ({ children }) => {
1091
+ return /* @__PURE__ */ jsx(Fragment, { children });
1092
+ };
1093
+
1094
+ // src/widgets/PracticePathCards/PracticePathCards.module.scss
1095
+ var PracticePathCards_module_default = {
1096
+ "practice-path-cards": "PracticePathCards_module_practice-path-cards",
1097
+ container: "PracticePathCards_module_container",
1098
+ wrapper: "PracticePathCards_module_wrapper",
1099
+ ctaWrapper: "PracticePathCards_module_ctaWrapper",
1100
+ cta: "PracticePathCards_module_cta",
1101
+ content: "PracticePathCards_module_content",
1102
+ cards: "PracticePathCards_module_cards",
1103
+ card: "PracticePathCards_module_card"
1104
+ };
1105
+ var PracticePathCards = ({
1106
+ className,
1107
+ children,
1108
+ cards,
1109
+ title,
1110
+ subtitle,
1111
+ footer,
1112
+ cta
1113
+ }) => {
1114
+ var _a, _b, _c;
1115
+ const slots = resolveCompoundSlots(children, {
1116
+ title: PracticePathCardsTitle,
1117
+ subtitle: PracticePathCardsSubtitle,
1118
+ footer: PracticePathCardsFooter
1119
+ });
1120
+ const titleNode = (_a = slots.title) != null ? _a : title;
1121
+ const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
1122
+ const footerNode = (_c = slots.footer) != null ? _c : footer;
1123
+ return /* @__PURE__ */ jsx("div", { className: clsx3(PracticePathCards_module_default["practice-path-cards"], className), children: /* @__PURE__ */ jsxs(Container, { className: PracticePathCards_module_default.container, children: [
1124
+ /* @__PURE__ */ jsxs("div", { className: PracticePathCards_module_default.wrapper, children: [
1125
+ /* @__PURE__ */ jsxs("div", { className: PracticePathCards_module_default.content, children: [
1126
+ titleNode && /* @__PURE__ */ jsx("h2", { children: titleNode }),
1127
+ subtitleNode && /* @__PURE__ */ jsx("div", { className: "subheading", children: subtitleNode })
1128
+ ] }),
1129
+ (cta == null ? void 0 : cta.url) && /* @__PURE__ */ jsx("div", { className: PracticePathCards_module_default.ctaWrapper, children: /* @__PURE__ */ jsx(
1130
+ Button,
1131
+ {
1132
+ className: PracticePathCards_module_default.cta,
1133
+ variant: "secondary",
1134
+ href: cta.url,
1135
+ isExternal: cta == null ? void 0 : cta.isExternal,
1136
+ children: cta == null ? void 0 : cta.label
1137
+ }
1138
+ ) })
1139
+ ] }),
1140
+ /* @__PURE__ */ jsx("div", { className: PracticePathCards_module_default.cards, children: cards == null ? void 0 : cards.map((card, key) => /* @__PURE__ */ jsx(PracticeCard, __spreadValues({ className: PracticePathCards_module_default.card }, card), key)) }),
1141
+ footerNode && /* @__PURE__ */ jsx("div", { className: "smallest", children: footerNode })
1142
+ ] }) });
1143
+ };
1144
+
1145
+ // src/widgets/PracticePathCards/index.ts
1146
+ var PracticePathCards2 = Object.assign(PracticePathCards, {
1147
+ Title: PracticePathCardsTitle,
1148
+ Subtitle: PracticePathCardsSubtitle,
1149
+ Footer: PracticePathCardsFooter
1150
+ });
1151
+ var Teaser5050With3TextTitle = ({ children }) => {
1152
+ return /* @__PURE__ */ jsx(Fragment, { children });
1153
+ };
1154
+
527
1155
  // src/widgets/Teaser5050With3Text/Teaser5050With3Text.module.scss
528
- var Teaser5050With3Text_module_default = {};
1156
+ var Teaser5050With3Text_module_default = {
1157
+ "teaser5050-3text": "Teaser5050With3Text_module_teaser5050-3text",
1158
+ container: "Teaser5050With3Text_module_container",
1159
+ content: "Teaser5050With3Text_module_content",
1160
+ right: "Teaser5050With3Text_module_right",
1161
+ title: "Teaser5050With3Text_module_title",
1162
+ image: "Teaser5050With3Text_module_image"
1163
+ };
529
1164
  var Teaser5050With3Text = ({
530
1165
  className,
531
1166
  variant = "left",
532
1167
  title,
533
1168
  cards,
534
- image
1169
+ image,
1170
+ children
535
1171
  }) => {
1172
+ var _a;
1173
+ const slots = resolveCompoundSlots(children, {
1174
+ title: Teaser5050With3TextTitle
1175
+ });
1176
+ const titleNode = (_a = slots.title) != null ? _a : title;
536
1177
  return /* @__PURE__ */ jsx("div", { className: clsx3(Teaser5050With3Text_module_default["teaser5050-3text"], Teaser5050With3Text_module_default[variant], className), children: /* @__PURE__ */ jsxs(Container, { className: Teaser5050With3Text_module_default.container, children: [
537
- title && /* @__PURE__ */ jsx("div", { className: clsx3(Teaser5050With3Text_module_default.title, "h3"), children: title }),
1178
+ titleNode && /* @__PURE__ */ jsx("div", { className: clsx3(Teaser5050With3Text_module_default.title, "h3"), children: titleNode }),
538
1179
  /* @__PURE__ */ jsxs("div", { className: Teaser5050With3Text_module_default.content, children: [
539
- /* @__PURE__ */ jsx("div", { className: Teaser5050With3Text_module_default.cards, children: cards == null ? void 0 : cards.map((card, key) => /* @__PURE__ */ jsx(InfoCard, __spreadValues({}, card), key)) }),
1180
+ /* @__PURE__ */ jsx("div", { className: Teaser5050With3Text_module_default.cards, children: cards == null ? void 0 : cards.map((card, key) => /* @__PURE__ */ jsx(InfoCard2, __spreadValues({}, card), key)) }),
540
1181
  image && /* @__PURE__ */ jsx(Picture, __spreadValues({ className: Teaser5050With3Text_module_default.image }, image))
541
1182
  ] })
542
1183
  ] }) });
543
1184
  };
544
1185
 
1186
+ // src/widgets/Teaser5050With3Text/index.ts
1187
+ var Teaser5050With3Text2 = Object.assign(Teaser5050With3Text, {
1188
+ Title: Teaser5050With3TextTitle
1189
+ });
1190
+ var Teaser5050WithCtaTitle = ({ children }) => {
1191
+ return /* @__PURE__ */ jsx(Fragment, { children });
1192
+ };
1193
+ var Teaser5050WithCtaSubtitle = ({ children }) => {
1194
+ return /* @__PURE__ */ jsx(Fragment, { children });
1195
+ };
1196
+
545
1197
  // src/widgets/Teaser5050WithCta/Teaser5050WithCta.module.scss
546
- var Teaser5050WithCta_module_default = {};
1198
+ var Teaser5050WithCta_module_default = {
1199
+ teaser5050: "Teaser5050WithCta_module_teaser5050",
1200
+ container: "Teaser5050WithCta_module_container",
1201
+ right: "Teaser5050WithCta_module_right",
1202
+ wrapper: "Teaser5050WithCta_module_wrapper",
1203
+ title: "Teaser5050WithCta_module_title",
1204
+ image: "Teaser5050WithCta_module_image",
1205
+ cta: "Teaser5050WithCta_module_cta"
1206
+ };
547
1207
  var Teaser5050WithCta = ({
548
1208
  className,
549
1209
  variant = "left",
550
1210
  title,
551
1211
  subtitle,
552
1212
  cta,
553
- image
1213
+ image,
1214
+ children
554
1215
  }) => {
1216
+ var _a, _b;
1217
+ const slots = resolveCompoundSlots(children, {
1218
+ title: Teaser5050WithCtaTitle,
1219
+ subtitle: Teaser5050WithCtaSubtitle
1220
+ });
1221
+ const titleNode = (_a = slots.title) != null ? _a : title;
1222
+ const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
555
1223
  return /* @__PURE__ */ jsx("div", { className: clsx3(Teaser5050WithCta_module_default.teaser5050, Teaser5050WithCta_module_default[variant], className), children: /* @__PURE__ */ jsxs(Container, { className: Teaser5050WithCta_module_default.container, children: [
556
1224
  /* @__PURE__ */ jsxs("div", { className: Teaser5050WithCta_module_default.wrapper, children: [
557
1225
  /* @__PURE__ */ jsxs("div", { className: Teaser5050WithCta_module_default.content, children: [
558
- title && /* @__PURE__ */ jsx("div", { className: clsx3(Teaser5050WithCta_module_default.title, "h3"), children: title }),
559
- subtitle && /* @__PURE__ */ jsx("div", { className: "subheading", children: subtitle })
1226
+ titleNode && /* @__PURE__ */ jsx("div", { className: clsx3(Teaser5050WithCta_module_default.title, "h3"), children: titleNode }),
1227
+ subtitleNode && /* @__PURE__ */ jsx("div", { className: "subheading", children: subtitleNode })
560
1228
  ] }),
561
1229
  cta && /* @__PURE__ */ jsx(
562
1230
  Button,
@@ -573,6 +1241,12 @@ var Teaser5050WithCta = ({
573
1241
  ] }) });
574
1242
  };
575
1243
 
576
- export { Anchor, Button, Card, CardCollection, ConditionalWrapper, Container, CountingCard, Icon, InfoCard, MiniSectionCta, Pagination, Picture, Teaser5050With3Text, Teaser5050WithCta, svgs };
1244
+ // src/widgets/Teaser5050WithCta/index.ts
1245
+ var Teaser5050WithCta2 = Object.assign(Teaser5050WithCta, {
1246
+ Title: Teaser5050WithCtaTitle,
1247
+ Subtitle: Teaser5050WithCtaSubtitle
1248
+ });
1249
+
1250
+ export { Anchor, BrandsStrip, Button, Card2 as Card, CardCollection2 as CardCollection, ConditionalWrapper, ContactModule2 as ContactModule, Container, CountingCard2 as CountingCard, 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, svgs };
577
1251
  //# sourceMappingURL=index.mjs.map
578
1252
  //# sourceMappingURL=index.mjs.map