@digital-b2c/coreui-kit 0.13.7 → 0.14.0

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.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
1
  import * as react from 'react';
3
2
  import react__default, { ImgHTMLAttributes, AnchorHTMLAttributes, ReactNode, Ref, HTMLAttributes, ButtonHTMLAttributes, InputHTMLAttributes, PropsWithChildren, JSX, FC, CSSProperties } from 'react';
4
3
 
@@ -42,6 +41,7 @@ declare const svgs: {
42
41
  pdf: string;
43
42
  externalLink: string;
44
43
  newIcon: string;
44
+ play: string;
45
45
  blankCheckbox: string;
46
46
  blankCheckboxWhite: string;
47
47
  checkedBox: string;
@@ -115,7 +115,7 @@ interface BrandsStripProps {
115
115
  size?: 'small';
116
116
  }
117
117
 
118
- declare const BrandsStrip: ({ className, variant, title, logos, cta, size, }: BrandsStripProps) => react_jsx_runtime.JSX.Element;
118
+ declare const BrandsStrip: ({ className, variant, title, logos, cta, size, }: BrandsStripProps) => react.JSX.Element;
119
119
 
120
120
  declare const ButtonVariantReadOnly: readonly ["primary", "secondary", "ghost", "nofill", "grey", "nofillblack", "shiny", "tabbutton", "navnofillblack"];
121
121
  type TButtonVariant = (typeof ButtonVariantReadOnly)[number];
@@ -155,11 +155,11 @@ interface CardProps {
155
155
  }
156
156
 
157
157
  declare const Card: {
158
- ({ className, variant, title, subtitle, cta, icon, logo, children, ref, }: CardProps): react_jsx_runtime.JSX.Element;
158
+ ({ className, variant, title, subtitle, cta, icon, logo, children, ref, }: CardProps): react.JSX.Element;
159
159
  displayName: string;
160
160
  } & {
161
- Title: ({ children }: CardTitleProps) => react_jsx_runtime.JSX.Element;
162
- Subtitle: ({ children }: CardSubtitleProps) => react_jsx_runtime.JSX.Element;
161
+ Title: ({ children }: CardTitleProps) => react.JSX.Element;
162
+ Subtitle: ({ children }: CardSubtitleProps) => react.JSX.Element;
163
163
  };
164
164
 
165
165
  type CountingCardTitleProps = {
@@ -174,8 +174,8 @@ interface CountingCardProps {
174
174
  children?: ReactNode;
175
175
  }
176
176
 
177
- declare const CountingCard: (({ className, title, count, image, children }: CountingCardProps) => react_jsx_runtime.JSX.Element) & {
178
- Title: ({ children }: CountingCardTitleProps) => react_jsx_runtime.JSX.Element;
177
+ declare const CountingCard: (({ className, title, count, image, children }: CountingCardProps) => react.JSX.Element) & {
178
+ Title: ({ children }: CountingCardTitleProps) => react.JSX.Element;
179
179
  };
180
180
 
181
181
  type ResourceView = 'grid' | 'list';
@@ -199,7 +199,7 @@ interface ResourceCardItemProps {
199
199
  }) => React.ReactNode;
200
200
  }
201
201
 
202
- declare const ResourceCardItem: ({ item, view, variant, renderLink }: ResourceCardItemProps) => react_jsx_runtime.JSX.Element;
202
+ declare const ResourceCardItem: ({ item, view, variant, renderLink }: ResourceCardItemProps) => react.JSX.Element;
203
203
 
204
204
  type FilterOption = 'all' | 'pdf' | 'externalLink';
205
205
  type SortOption = 'latest' | 'oldest' | 'az' | 'za';
@@ -215,7 +215,7 @@ interface FilterBarProps {
215
215
  onSearchChange: (v: string) => void;
216
216
  }
217
217
 
218
- declare function FilterBar({ view, onViewChange, isMobile, filterValue, onFilterChange, sortValue, onSortChange, searchValue, onSearchChange, }: FilterBarProps): react_jsx_runtime.JSX.Element;
218
+ declare function FilterBar({ view, onViewChange, isMobile, filterValue, onFilterChange, sortValue, onSortChange, searchValue, onSearchChange, }: FilterBarProps): react.JSX.Element;
219
219
 
220
220
  type InfoCardSubtitleProps = {
221
221
  children: ReactNode;
@@ -234,9 +234,9 @@ interface InfoCardProps {
234
234
  children?: ReactNode;
235
235
  }
236
236
 
237
- declare const InfoCard: (({ className, title, subtitle, icon, badge, children }: InfoCardProps) => react_jsx_runtime.JSX.Element) & {
238
- Title: ({ children }: InfoCardTitleProps) => react_jsx_runtime.JSX.Element;
239
- Subtitle: ({ children }: InfoCardSubtitleProps) => react_jsx_runtime.JSX.Element;
237
+ declare const InfoCard: (({ className, title, subtitle, icon, badge, children }: InfoCardProps) => react.JSX.Element) & {
238
+ Title: ({ children }: InfoCardTitleProps) => react.JSX.Element;
239
+ Subtitle: ({ children }: InfoCardSubtitleProps) => react.JSX.Element;
240
240
  };
241
241
 
242
242
  interface PaginationProps {
@@ -257,9 +257,9 @@ interface PaginationProps {
257
257
  }) => ReactNode;
258
258
  }
259
259
 
260
- declare const Pagination: ({ className, totalPages, currentPage, loop, hasNumber, disableArrows, onPageChange, showEllipsis, boundaryCount, siblingCount, hidePagesBorder, renderLink, }: PaginationProps) => react_jsx_runtime.JSX.Element;
260
+ declare const Pagination: ({ className, totalPages, currentPage, loop, hasNumber, disableArrows, onPageChange, showEllipsis, boundaryCount, siblingCount, hidePagesBorder, renderLink, }: PaginationProps) => react.JSX.Element;
261
261
 
262
- declare const Picture: ({ className, ...props }: PictureProps) => react_jsx_runtime.JSX.Element;
262
+ declare const Picture: ({ className, ...props }: PictureProps) => react.JSX.Element;
263
263
 
264
264
  interface PracticeCardProps {
265
265
  className?: string;
@@ -268,7 +268,7 @@ interface PracticeCardProps {
268
268
  image?: IPicture;
269
269
  }
270
270
 
271
- declare const PracticeCard: ({ className, title, cta, image }: PracticeCardProps) => react_jsx_runtime.JSX.Element;
271
+ declare const PracticeCard: ({ className, title, cta, image }: PracticeCardProps) => react.JSX.Element;
272
272
 
273
273
  interface SidebarCategory {
274
274
  label: string;
@@ -288,7 +288,7 @@ interface SidebarProps {
288
288
  onSelect: (index: number) => void;
289
289
  }
290
290
 
291
- declare const Sidebar: ({ categories, isMobile, onToggle, selectedIndex, onSelect, }: SidebarProps) => react_jsx_runtime.JSX.Element;
291
+ declare const Sidebar: ({ categories, isMobile, onToggle, selectedIndex, onSelect, }: SidebarProps) => react.JSX.Element;
292
292
 
293
293
  interface UpcomingEventCardProps {
294
294
  className?: string;
@@ -304,7 +304,7 @@ interface UpcomingEventCardProps {
304
304
  showImage?: boolean;
305
305
  }
306
306
 
307
- declare const UpcomingEventCard: ({ className, image, date, title, location, description, cta, direction, showImage, }: UpcomingEventCardProps) => react_jsx_runtime.JSX.Element;
307
+ declare const UpcomingEventCard: ({ className, image, date, title, location, description, cta, direction, showImage, }: UpcomingEventCardProps) => react.JSX.Element;
308
308
 
309
309
  type BadgeBaseProps = {
310
310
  children?: ReactNode;
@@ -382,7 +382,7 @@ interface NewsCardProps {
382
382
  }) => React.ReactNode;
383
383
  }
384
384
 
385
- declare const NewsCard: ({ className, image, date, description, tag, title, cta, direction, renderLink, }: NewsCardProps) => react_jsx_runtime.JSX.Element;
385
+ declare const NewsCard: ({ className, image, date, description, tag, title, cta, direction, renderLink, }: NewsCardProps) => react.JSX.Element;
386
386
 
387
387
  type BlogPostContentBodyProps = {
388
388
  children: ReactNode;
@@ -394,8 +394,8 @@ interface BlogPostContentProps {
394
394
  body?: ReactNode;
395
395
  }
396
396
 
397
- declare const BlogPostContent: (({ className, body, children }: BlogPostContentProps) => react_jsx_runtime.JSX.Element) & {
398
- Body: ({ children }: BlogPostContentBodyProps) => react_jsx_runtime.JSX.Element;
397
+ declare const BlogPostContent: (({ className, body, children }: BlogPostContentProps) => react.JSX.Element) & {
398
+ Body: ({ children }: BlogPostContentBodyProps) => react.JSX.Element;
399
399
  };
400
400
 
401
401
  interface AnchorProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
@@ -405,7 +405,7 @@ interface AnchorProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
405
405
  }) => ReactNode;
406
406
  }
407
407
 
408
- declare const Anchor: ({ children, isExternal, renderLink, ...props }: AnchorProps) => react_jsx_runtime.JSX.Element;
408
+ declare const Anchor: ({ children, isExternal, renderLink, ...props }: AnchorProps) => react.JSX.Element;
409
409
 
410
410
  interface ContainerProps extends HTMLAttributes<HTMLDivElement> {
411
411
  children: ReactNode;
@@ -444,9 +444,9 @@ interface CardCollectionProps {
444
444
  theme?: 'dark' | 'light';
445
445
  }
446
446
 
447
- declare const CardCollection: (({ className, variant, theme, title, subtitle, cards, ctaLabel, children, }: CardCollectionProps) => react_jsx_runtime.JSX.Element) & {
448
- Title: ({ children }: CardCollectionTitleProps) => react_jsx_runtime.JSX.Element;
449
- Subtitle: ({ children }: CardCollectionSubtitleProps) => react_jsx_runtime.JSX.Element;
447
+ declare const CardCollection: (({ className, variant, theme, title, subtitle, cards, ctaLabel, children, }: CardCollectionProps) => react.JSX.Element) & {
448
+ Title: ({ children }: CardCollectionTitleProps) => react.JSX.Element;
449
+ Subtitle: ({ children }: CardCollectionSubtitleProps) => react.JSX.Element;
450
450
  };
451
451
 
452
452
  type ContactModuleSubtitleProps = {
@@ -468,9 +468,9 @@ interface ContactModuleProps {
468
468
  animateBlur?: boolean;
469
469
  }
470
470
 
471
- declare const ContactModule: (({ className, children, title, subtitle, ctas, image, blurred, animateBlur, }: ContactModuleProps) => react_jsx_runtime.JSX.Element) & {
472
- Title: ({ children }: ContactModuleTitleProps) => react_jsx_runtime.JSX.Element;
473
- Subtitle: ({ children }: ContactModuleSubtitleProps) => react_jsx_runtime.JSX.Element;
471
+ declare const ContactModule: (({ className, children, title, subtitle, ctas, image, blurred, animateBlur, }: ContactModuleProps) => react.JSX.Element) & {
472
+ Title: ({ children }: ContactModuleTitleProps) => react.JSX.Element;
473
+ Subtitle: ({ children }: ContactModuleSubtitleProps) => react.JSX.Element;
474
474
  };
475
475
 
476
476
  interface IFooterLink {
@@ -496,7 +496,7 @@ interface FooterProps {
496
496
  supportContacts?: IFooterSupportGroup[];
497
497
  }
498
498
 
499
- declare const Footer: ({ className, supporters, navigationLinks, disclaimer, copyright, children, supportContacts, }: FooterProps) => react_jsx_runtime.JSX.Element;
499
+ declare const Footer: ({ className, supporters, navigationLinks, disclaimer, copyright, children, supportContacts, }: FooterProps) => react.JSX.Element;
500
500
 
501
501
  type HeroBannerSubtitleProps = {
502
502
  children: ReactNode;
@@ -522,9 +522,9 @@ interface HeroBannerProps {
522
522
  children?: ReactNode;
523
523
  }
524
524
 
525
- declare const HeroBanner: (({ className, variant, title, subtitle, backgroundImage, logo, cta, ctaLogo, brands, promoteToH1, children, }: HeroBannerProps) => react_jsx_runtime.JSX.Element) & {
526
- Title: ({ children }: HeroBannerTitleProps) => react_jsx_runtime.JSX.Element;
527
- Subtitle: ({ children }: HeroBannerSubtitleProps) => react_jsx_runtime.JSX.Element;
525
+ declare const HeroBanner: (({ className, variant, title, subtitle, backgroundImage, logo, cta, ctaLogo, brands, promoteToH1, children, }: HeroBannerProps) => react.JSX.Element) & {
526
+ Title: ({ children }: HeroBannerTitleProps) => react.JSX.Element;
527
+ Subtitle: ({ children }: HeroBannerSubtitleProps) => react.JSX.Element;
528
528
  };
529
529
 
530
530
  interface HeroBannerCarouselItem {
@@ -541,7 +541,7 @@ interface HeroBannerCarouselProps {
541
541
  navNextIcon?: string;
542
542
  }
543
543
 
544
- declare const HeroBannerCarousel: ({ className, items, navPrevIcon, navNextIcon, }: HeroBannerCarouselProps) => react_jsx_runtime.JSX.Element | null;
544
+ declare const HeroBannerCarousel: ({ className, items, navPrevIcon, navNextIcon, }: HeroBannerCarouselProps) => react.JSX.Element | null;
545
545
 
546
546
  interface InternalBrandsTabProps {
547
547
  title?: string;
@@ -564,7 +564,7 @@ interface InternalBrandsTabProps {
564
564
  }[];
565
565
  }
566
566
 
567
- declare const InternalBrandsTab: (props: InternalBrandsTabProps) => react_jsx_runtime.JSX.Element;
567
+ declare const InternalBrandsTab: (props: InternalBrandsTabProps) => react.JSX.Element;
568
568
 
569
569
  type MiniBannerGoBackProps = {
570
570
  children: ReactNode;
@@ -601,10 +601,10 @@ interface MiniBannerProps {
601
601
  children?: ReactNode;
602
602
  }
603
603
 
604
- declare const MiniBanner: (({ className, variant, pretitle, title, subtitle, logo, background, cta, children, }: MiniBannerProps) => react_jsx_runtime.JSX.Element) & {
605
- Title: ({ children }: MiniBannerTitleProps) => react_jsx_runtime.JSX.Element;
606
- Subtitle: ({ children }: MiniBannerSubtitleProps) => react_jsx_runtime.JSX.Element;
607
- GoBack: ({ children }: MiniBannerGoBackProps) => react_jsx_runtime.JSX.Element;
604
+ declare const MiniBanner: (({ className, variant, pretitle, title, subtitle, logo, background, cta, children, }: MiniBannerProps) => react.JSX.Element) & {
605
+ Title: ({ children }: MiniBannerTitleProps) => react.JSX.Element;
606
+ Subtitle: ({ children }: MiniBannerSubtitleProps) => react.JSX.Element;
607
+ GoBack: ({ children }: MiniBannerGoBackProps) => react.JSX.Element;
608
608
  };
609
609
 
610
610
  type MiniSectionCtaSubtitleProps = {
@@ -625,9 +625,9 @@ interface MiniSectionCtaProps {
625
625
  children?: ReactNode;
626
626
  }
627
627
 
628
- declare const MiniSectionCta: (({ className, variant, theme, title, subtitle, cta, children, }: MiniSectionCtaProps) => react_jsx_runtime.JSX.Element) & {
629
- Title: ({ children }: MiniSectionCtaTitleProps) => react_jsx_runtime.JSX.Element;
630
- Subtitle: ({ children }: MiniSectionCtaSubtitleProps) => react_jsx_runtime.JSX.Element;
628
+ declare const MiniSectionCta: (({ className, variant, theme, title, subtitle, cta, children, }: MiniSectionCtaProps) => react.JSX.Element) & {
629
+ Title: ({ children }: MiniSectionCtaTitleProps) => react.JSX.Element;
630
+ Subtitle: ({ children }: MiniSectionCtaSubtitleProps) => react.JSX.Element;
631
631
  };
632
632
 
633
633
  interface BaseNavItem {
@@ -656,7 +656,7 @@ interface NavigationProps {
656
656
  };
657
657
  }
658
658
 
659
- declare const Navigation: (props: NavigationProps) => react_jsx_runtime.JSX.Element;
659
+ declare const Navigation: (props: NavigationProps) => react.JSX.Element;
660
660
 
661
661
  type PracticePathCardsFooterProps = {
662
662
  children: ReactNode;
@@ -680,10 +680,10 @@ interface PracticePathCardsProps {
680
680
  cta?: ICta;
681
681
  }
682
682
 
683
- declare const PracticePathCards: (({ className, children, cards, title, subtitle, footer, cta, }: PracticePathCardsProps) => react_jsx_runtime.JSX.Element) & {
684
- Title: ({ children }: PracticePathCardsTitleProps) => react_jsx_runtime.JSX.Element;
685
- Subtitle: ({ children }: PracticePathCardsSubtitleProps) => react_jsx_runtime.JSX.Element;
686
- Footer: ({ children }: PracticePathCardsFooterProps) => react_jsx_runtime.JSX.Element;
683
+ declare const PracticePathCards: (({ className, children, cards, title, subtitle, footer, cta, }: PracticePathCardsProps) => react.JSX.Element) & {
684
+ Title: ({ children }: PracticePathCardsTitleProps) => react.JSX.Element;
685
+ Subtitle: ({ children }: PracticePathCardsSubtitleProps) => react.JSX.Element;
686
+ Footer: ({ children }: PracticePathCardsFooterProps) => react.JSX.Element;
687
687
  };
688
688
 
689
689
  type Teaser5050With3TextTitleProps = {
@@ -699,8 +699,8 @@ interface Teaser5050With3TextProps {
699
699
  children?: ReactNode;
700
700
  }
701
701
 
702
- declare const Teaser5050With3Text: (({ className, variant, title, cards, image, children, }: Teaser5050With3TextProps) => react_jsx_runtime.JSX.Element) & {
703
- Title: ({ children }: Teaser5050With3TextTitleProps) => react_jsx_runtime.JSX.Element;
702
+ declare const Teaser5050With3Text: (({ className, variant, title, cards, image, children, }: Teaser5050With3TextProps) => react.JSX.Element) & {
703
+ Title: ({ children }: Teaser5050With3TextTitleProps) => react.JSX.Element;
704
704
  };
705
705
 
706
706
  type Teaser5050WithCtaSubtitleProps = {
@@ -722,9 +722,9 @@ interface Teaser5050WithCtaProps {
722
722
  bgColor?: string;
723
723
  }
724
724
 
725
- declare const Teaser5050WithCta: (({ className, variant, title, subtitle, ctas, image, children, bgColor, }: Teaser5050WithCtaProps) => react_jsx_runtime.JSX.Element) & {
726
- Title: ({ children }: Teaser5050WithCtaTitleProps) => react_jsx_runtime.JSX.Element;
727
- Subtitle: ({ children }: Teaser5050WithCtaSubtitleProps) => react_jsx_runtime.JSX.Element;
725
+ declare const Teaser5050WithCta: (({ className, variant, title, subtitle, ctas, image, children, bgColor, }: Teaser5050WithCtaProps) => react.JSX.Element) & {
726
+ Title: ({ children }: Teaser5050WithCtaTitleProps) => react.JSX.Element;
727
+ Subtitle: ({ children }: Teaser5050WithCtaSubtitleProps) => react.JSX.Element;
728
728
  };
729
729
 
730
730
  type EventListTitleProps = {
@@ -742,8 +742,8 @@ interface EventListProps extends PropsWithChildren {
742
742
  variant?: 'internalEventList';
743
743
  }
744
744
 
745
- declare const EventList: (({ className, title, items, cta, backgroundColor, variant, children, }: EventListProps) => react_jsx_runtime.JSX.Element) & {
746
- Title: ({ children }: EventListTitleProps) => react_jsx_runtime.JSX.Element;
745
+ declare const EventList: (({ className, title, items, cta, backgroundColor, variant, children, }: EventListProps) => react.JSX.Element) & {
746
+ Title: ({ children }: EventListTitleProps) => react.JSX.Element;
747
747
  };
748
748
 
749
749
  type TextEventRichTextProps = {
@@ -763,9 +763,9 @@ interface TextEventProps {
763
763
  children?: ReactNode;
764
764
  }
765
765
 
766
- declare const TextEvent: ((props: TextEventProps) => react_jsx_runtime.JSX.Element) & {
767
- Title: ({ children }: TextEventTitleProps) => react_jsx_runtime.JSX.Element;
768
- RichText: ({ children }: TextEventRichTextProps) => react_jsx_runtime.JSX.Element;
766
+ declare const TextEvent: ((props: TextEventProps) => react.JSX.Element) & {
767
+ Title: ({ children }: TextEventTitleProps) => react.JSX.Element;
768
+ RichText: ({ children }: TextEventRichTextProps) => react.JSX.Element;
769
769
  };
770
770
 
771
771
  type TextBodyBodyProps = {
@@ -783,9 +783,9 @@ interface TextBodyProps {
783
783
  children?: ReactNode;
784
784
  }
785
785
 
786
- declare const TextBody: ((props: TextBodyProps) => react_jsx_runtime.JSX.Element) & {
787
- Title: ({ children }: TextBodyTitleProps) => react_jsx_runtime.JSX.Element;
788
- Body: ({ children }: TextBodyBodyProps) => react_jsx_runtime.JSX.Element;
786
+ declare const TextBody: ((props: TextBodyProps) => react.JSX.Element) & {
787
+ Title: ({ children }: TextBodyTitleProps) => react.JSX.Element;
788
+ Body: ({ children }: TextBodyBodyProps) => react.JSX.Element;
789
789
  };
790
790
 
791
791
  type TextCenterCtaInBottomSubtitleProps = {
@@ -804,9 +804,9 @@ interface TextCenterCtaInBottomProps {
804
804
  children?: ReactNode;
805
805
  }
806
806
 
807
- declare const TextCenterCtaInBottom: (({ className, title, subtitle, ctas, children, }: TextCenterCtaInBottomProps) => react_jsx_runtime.JSX.Element) & {
808
- Title: ({ children }: TextCenterCtaInBottomTitleProps) => react_jsx_runtime.JSX.Element;
809
- Subtitle: ({ children }: TextCenterCtaInBottomSubtitleProps) => react_jsx_runtime.JSX.Element;
807
+ declare const TextCenterCtaInBottom: (({ className, title, subtitle, ctas, children, }: TextCenterCtaInBottomProps) => react.JSX.Element) & {
808
+ Title: ({ children }: TextCenterCtaInBottomTitleProps) => react.JSX.Element;
809
+ Subtitle: ({ children }: TextCenterCtaInBottomSubtitleProps) => react.JSX.Element;
810
810
  };
811
811
 
812
812
  interface ResourcesGridListProps {
@@ -819,7 +819,7 @@ interface ResourcesGridListProps {
819
819
  children?: ReactNode;
820
820
  }
821
821
 
822
- declare const ResourcesGridList: ({ className, items, categories, defaultView, defaultFilter, defaultSort, }: ResourcesGridListProps) => react_jsx_runtime.JSX.Element;
822
+ declare const ResourcesGridList: ({ className, items, categories, defaultView, defaultFilter, defaultSort, }: ResourcesGridListProps) => react.JSX.Element;
823
823
 
824
824
  type BlogCardGridTitleProps = {
825
825
  children: ReactNode;
@@ -839,8 +839,8 @@ interface BlogCardGridProps extends PropsWithChildren {
839
839
  }) => React.ReactNode;
840
840
  }
841
841
 
842
- declare const BlogCardGrid: (({ title, items, backgroundColor, cta, className, hasContainer, gridProps, gridItemProps, renderLink, children, }: BlogCardGridProps) => react_jsx_runtime.JSX.Element) & {
843
- Title: ({ children }: BlogCardGridTitleProps) => react_jsx_runtime.JSX.Element;
842
+ declare const BlogCardGrid: (({ title, items, backgroundColor, cta, className, hasContainer, gridProps, gridItemProps, renderLink, children, }: BlogCardGridProps) => react.JSX.Element) & {
843
+ Title: ({ children }: BlogCardGridTitleProps) => react.JSX.Element;
844
844
  };
845
845
 
846
846
  type FeaturedNewsHighlightsTitleProps = {
@@ -860,8 +860,8 @@ interface FeaturedNewsHighlightsProps extends PropsWithChildren {
860
860
  }) => React.ReactNode;
861
861
  }
862
862
 
863
- declare const FeaturedNewsHighlights: (({ variant, title, items, backgroundColor, cta, className, hasContainer, renderLink, children, }: FeaturedNewsHighlightsProps) => react_jsx_runtime.JSX.Element) & {
864
- Title: ({ children }: FeaturedNewsHighlightsTitleProps) => react_jsx_runtime.JSX.Element;
863
+ declare const FeaturedNewsHighlights: (({ variant, title, items, backgroundColor, cta, className, hasContainer, renderLink, children, }: FeaturedNewsHighlightsProps) => react.JSX.Element) & {
864
+ Title: ({ children }: FeaturedNewsHighlightsTitleProps) => react.JSX.Element;
865
865
  };
866
866
 
867
867
  type NewsCardListPaginationProps = {
@@ -882,8 +882,8 @@ interface NewsCardListProps extends PropsWithChildren {
882
882
  }) => React.ReactNode;
883
883
  }
884
884
 
885
- declare const NewsCardList: (({ items, backgroundColor, className, currentPage, searchValue, onSearchChange, onSearchSubmit, searchInputProps, renderLink, children, }: NewsCardListProps) => react_jsx_runtime.JSX.Element) & {
886
- Pagination: ({ children }: NewsCardListPaginationProps) => react_jsx_runtime.JSX.Element;
885
+ declare const NewsCardList: (({ items, backgroundColor, className, currentPage, searchValue, onSearchChange, onSearchSubmit, searchInputProps, renderLink, children, }: NewsCardListProps) => react.JSX.Element) & {
886
+ Pagination: ({ children }: NewsCardListPaginationProps) => react.JSX.Element;
887
887
  };
888
888
 
889
889
  type BlogPostBodyProps = {
@@ -899,9 +899,9 @@ interface BlogPostProps extends PropsWithChildren, Omit<NewsCardProps, 'descript
899
899
  relatedArticles?: NewsCardProps[];
900
900
  }
901
901
 
902
- declare const BlogPost: (({ title, description: body, image, date, tag, relatedArticles, className, children, }: BlogPostProps) => react_jsx_runtime.JSX.Element) & {
903
- Title: ({ children }: BlogPostTitleProps) => react_jsx_runtime.JSX.Element;
904
- Body: ({ children }: BlogPostBodyProps) => react_jsx_runtime.JSX.Element;
902
+ declare const BlogPost: (({ title, description: body, image, date, tag, relatedArticles, className, children, }: BlogPostProps) => react.JSX.Element) & {
903
+ Title: ({ children }: BlogPostTitleProps) => react.JSX.Element;
904
+ Body: ({ children }: BlogPostBodyProps) => react.JSX.Element;
905
905
  };
906
906
 
907
907
  type BlogSearchResultsListPaginationProps = {
@@ -925,9 +925,9 @@ interface BlogSearchResultsListProps extends PropsWithChildren {
925
925
  }) => React.ReactNode;
926
926
  }
927
927
 
928
- declare const BlogSearchResultsList: (({ items, searchResult, onSearchChange, onSearchSubmit, searchValue, searchInputProps, className, renderLink, children, }: BlogSearchResultsListProps) => react_jsx_runtime.JSX.Element) & {
929
- Search: ({ children }: BlogSearchResultsListSearchProps) => react_jsx_runtime.JSX.Element;
930
- Pagination: ({ children, }: BlogSearchResultsListPaginationProps) => react_jsx_runtime.JSX.Element;
928
+ declare const BlogSearchResultsList: (({ items, searchResult, onSearchChange, onSearchSubmit, searchValue, searchInputProps, className, renderLink, children, }: BlogSearchResultsListProps) => react.JSX.Element) & {
929
+ Search: ({ children }: BlogSearchResultsListSearchProps) => react.JSX.Element;
930
+ Pagination: ({ children, }: BlogSearchResultsListPaginationProps) => react.JSX.Element;
931
931
  };
932
932
 
933
933
  type GlobalSearchResultsListPaginationProps = {
@@ -947,9 +947,29 @@ interface GlobalSearchResultsListProps extends PropsWithChildren {
947
947
  }) => React.ReactNode;
948
948
  }
949
949
 
950
- declare const GlobalSearchResultsList: (({ items, searchResult, className, renderLink, children, }: GlobalSearchResultsListProps) => react_jsx_runtime.JSX.Element) & {
951
- Search: ({ children }: GlobalSearchResultsListSearchProps) => react_jsx_runtime.JSX.Element;
952
- Pagination: ({ children, }: GlobalSearchResultsListPaginationProps) => react_jsx_runtime.JSX.Element;
950
+ declare const GlobalSearchResultsList: (({ items, searchResult, className, renderLink, children, }: GlobalSearchResultsListProps) => react.JSX.Element) & {
951
+ Search: ({ children }: GlobalSearchResultsListSearchProps) => react.JSX.Element;
952
+ Pagination: ({ children, }: GlobalSearchResultsListPaginationProps) => react.JSX.Element;
953
+ };
954
+
955
+ type TextCenterWithMediaTitleProps = {
956
+ children: ReactNode;
957
+ };
958
+
959
+ interface TextCenterWithMediaProps {
960
+ className?: string;
961
+ title?: ReactNode;
962
+ thumbnail?: string;
963
+ videoUrl?: string;
964
+ loop?: boolean;
965
+ mute?: boolean;
966
+ hideControl?: boolean;
967
+ autoPlay?: boolean;
968
+ children?: ReactNode;
969
+ }
970
+
971
+ declare const TextCenterWithMedia: (({ className, title, thumbnail, videoUrl, loop, mute, hideControl, autoPlay, children, }: TextCenterWithMediaProps) => react.JSX.Element) & {
972
+ Title: ({ children }: TextCenterWithMediaTitleProps) => react.JSX.Element;
953
973
  };
954
974
 
955
975
  type IntersectionObserverOptions = {
@@ -977,4 +997,4 @@ type SlotMap = Record<string, SlotComponent>;
977
997
  */
978
998
  declare function resolveCompoundSlots(children: ReactNode, slots: SlotMap): Record<string, ReactNode>;
979
999
 
980
- export { Anchor, type AnchorProps, Badge, type BadgeProps, BlogCardGrid, type BlogCardGridProps, BlogPost, BlogPostContent, type BlogPostContentProps, type BlogPostProps, BlogSearchResultsList, type BlogSearchResultsListProps, BrandsStrip, type BrandsStripProps, Button, type ButtonProps, Card, CardCollection, type CardCollectionProps, type CardProps, ConditionalWrapper, type ConditionalWrapperProps, ContactModule, type ContactModuleProps, Container, type ContainerProps, CountingCard, type CountingCardProps, EventList, type EventListProps, FeaturedNewsHighlights, type FeaturedNewsHighlightsProps, FilterBar, type FilterBarProps, type FilterOption, Footer, type FooterProps, GlobalSearchResultsList, type GlobalSearchResultsListProps, type GridItemProps, type GridProps, HeroBanner, HeroBannerCarousel, type HeroBannerCarouselProps, type HeroBannerProps, type ICta, type ICtaHoverLogo, type ICtaIcon, type ICtaLogo, type IFooterSupportGroup, type IPicture, Icon, type IconType, InfoCard, type InfoCardProps, Input, type InputProps, InternalBrandsTab, type InternalBrandsTabProps, MiniBanner, type MiniBannerProps, MiniSectionCta, type MiniSectionCtaProps, Navigation, type NavigationProps, NewsCard, NewsCardList, type NewsCardListProps, type NewsCardProps, Pagination, type PaginationProps, Picture, type PictureProps, PracticeCard, type PracticeCardProps, PracticePathCards, type PracticePathCardsProps, ResourceCardItem, type ResourceCardItemProps, type ResourceItem, type ResourceItemType, type ResourceView, ResourcesGridList, type ResourcesGridListProps, Sidebar, type SidebarCategory, type SidebarProps, type SortOption, type TButtonVariant, Teaser5050With3Text, type Teaser5050With3TextProps, Teaser5050WithCta, type Teaser5050WithCtaProps, TextBody, type TextBodyProps, TextCenterCtaInBottom, type TextCenterCtaInBottomProps, TextEvent, type TextEventProps, UpcomingEventCard, type UpcomingEventCardProps, resolveCompoundSlots, svgs, useIntersectionObserver, useIsAtTop };
1000
+ export { Anchor, type AnchorProps, Badge, type BadgeProps, BlogCardGrid, type BlogCardGridProps, BlogPost, BlogPostContent, type BlogPostContentProps, type BlogPostProps, BlogSearchResultsList, type BlogSearchResultsListProps, BrandsStrip, type BrandsStripProps, Button, type ButtonProps, Card, CardCollection, type CardCollectionProps, type CardProps, ConditionalWrapper, type ConditionalWrapperProps, ContactModule, type ContactModuleProps, Container, type ContainerProps, CountingCard, type CountingCardProps, EventList, type EventListProps, FeaturedNewsHighlights, type FeaturedNewsHighlightsProps, FilterBar, type FilterBarProps, type FilterOption, Footer, type FooterProps, GlobalSearchResultsList, type GlobalSearchResultsListProps, type GridItemProps, type GridProps, HeroBanner, HeroBannerCarousel, type HeroBannerCarouselProps, type HeroBannerProps, type ICta, type ICtaHoverLogo, type ICtaIcon, type ICtaLogo, type IFooterSupportGroup, type IPicture, Icon, type IconType, InfoCard, type InfoCardProps, Input, type InputProps, InternalBrandsTab, type InternalBrandsTabProps, MiniBanner, type MiniBannerProps, MiniSectionCta, type MiniSectionCtaProps, Navigation, type NavigationProps, NewsCard, NewsCardList, type NewsCardListProps, type NewsCardProps, Pagination, type PaginationProps, Picture, type PictureProps, PracticeCard, type PracticeCardProps, PracticePathCards, type PracticePathCardsProps, ResourceCardItem, type ResourceCardItemProps, type ResourceItem, type ResourceItemType, type ResourceView, ResourcesGridList, type ResourcesGridListProps, Sidebar, type SidebarCategory, type SidebarProps, type SortOption, type TButtonVariant, Teaser5050With3Text, type Teaser5050With3TextProps, Teaser5050WithCta, type Teaser5050WithCtaProps, TextBody, type TextBodyProps, TextCenterCtaInBottom, type TextCenterCtaInBottomProps, TextCenterWithMedia, type TextCenterWithMediaProps, TextEvent, type TextEventProps, UpcomingEventCard, type UpcomingEventCardProps, resolveCompoundSlots, svgs, useIntersectionObserver, useIsAtTop };
package/dist/index.mjs CHANGED
@@ -1,12 +1,13 @@
1
1
  import clsx43 from 'clsx';
2
2
  import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
3
- import React66, { forwardRef, useId, useRef, useState, useCallback, useMemo, Children, isValidElement, useEffect, Fragment as Fragment$1 } from 'react';
3
+ import React67, { forwardRef, useId, useRef, useState, useCallback, useMemo, useEffect, Children, isValidElement, Fragment as Fragment$1 } from 'react';
4
4
  import gsap$1, { gsap } from 'gsap';
5
5
  import { useGSAP } from '@gsap/react';
6
6
  import { ScrollTrigger } from 'gsap/ScrollTrigger';
7
7
  import { Swiper, SwiperSlide } from 'swiper/react';
8
8
  import { FreeMode, A11y, Navigation, Pagination as Pagination$1 } from 'swiper/modules';
9
9
  import 'swiper/css';
10
+ import ReactPlayer from 'react-player';
10
11
 
11
12
  var __defProp = Object.defineProperty;
12
13
  var __defProps = Object.defineProperties;
@@ -306,6 +307,11 @@ var SvgIconExternalLink = (props) => /* @__PURE__ */ jsxs("svg", __spreadProps(_
306
307
  /* @__PURE__ */ jsx("path", { d: "M19.4784 15.1242C18.8387 14.3348 18.0226 13.6816 17.0853 13.2089C16.1481 12.7363 15.1117 12.4552 14.0464 12.3848C12.9812 12.3143 11.912 12.4562 10.9113 12.8008C9.91068 13.1453 9.00202 13.6845 8.24697 14.3817L3.77822 18.5067C2.42152 19.8034 1.67081 21.54 1.68778 23.3426C1.70475 25.1452 2.48804 26.8695 3.86894 28.1442C5.24985 29.4189 7.11788 30.1419 9.0707 30.1576C11.0235 30.1733 12.9049 29.4803 14.3096 28.228L16.8568 25.8767", stroke: "#949494", strokeWidth: 2.5, strokeLinecap: "round", strokeLinejoin: "round" })
307
308
  ] }));
308
309
  var icon_external_link_default = SvgIconExternalLink;
310
+ var SvgIconPlay = (props) => /* @__PURE__ */ jsxs("svg", __spreadProps(__spreadValues({ xmlns: "http://www.w3.org/2000/svg", width: 134, height: 134, viewBox: "0 0 134 134", fill: "none" }, props), { children: [
311
+ /* @__PURE__ */ jsx("rect", { x: 38, y: 40, width: 58, height: 53, fill: "white" }),
312
+ /* @__PURE__ */ jsx("path", { d: "M53.4617 90.7285L90.7305 66.9993L53.4617 43.2702V90.7285ZM67.0013 122.833C59.3707 122.833 52.1589 121.367 45.3659 118.436C38.5728 115.505 32.6405 111.503 27.569 106.432C22.4975 101.36 18.4961 95.4278 15.5648 88.6348C12.6336 81.8417 11.168 74.6299 11.168 66.9993C11.168 59.2757 12.6336 52.0174 15.5648 45.2243C18.4961 38.4313 22.4975 32.5223 27.569 27.4973C32.6405 22.4723 38.5728 18.4941 45.3659 15.5629C52.1589 12.6316 59.3707 11.166 67.0013 11.166C74.7249 11.166 81.9833 12.6316 88.7763 15.5629C95.5694 18.4941 101.478 22.4723 106.503 27.4973C111.528 32.5223 115.507 38.4313 118.438 45.2243C121.369 52.0174 122.835 59.2757 122.835 66.9993C122.835 74.6299 121.369 81.8417 118.438 88.6348C115.507 95.4278 111.528 101.36 106.503 106.432C101.478 111.503 95.5694 115.505 88.7763 118.436C81.9833 121.367 74.7249 122.833 67.0013 122.833Z", fill: "#080808" })
313
+ ] }));
314
+ var icon_play_default = SvgIconPlay;
309
315
  var svgs = {
310
316
  /* Card */
311
317
  ads: icon_ads_default,
@@ -329,6 +335,7 @@ var svgs = {
329
335
  pdf: icon_pdf_default,
330
336
  externalLink: icon_external_link_default,
331
337
  newIcon: icon_new_default,
338
+ play: icon_play_default,
332
339
  /* Button */
333
340
  blankCheckbox: icon_blank_checkbox_default,
334
341
  blankCheckboxWhite: icon_blank_checkbox_white_default,
@@ -374,7 +381,7 @@ var svgs = {
374
381
  xBlack: icon_x_black_default,
375
382
  xWhite: icon_x_white_default
376
383
  };
377
- var Icon = React66.memo(
384
+ var Icon = React67.memo(
378
385
  (_a) => {
379
386
  var _b = _a, { type, size } = _b, props = __objRest(_b, ["type", "size"]);
380
387
  if (type) {
@@ -2716,7 +2723,7 @@ var MiniBanner = ({
2716
2723
  (logo == null ? void 0 : logo.src) && /* @__PURE__ */ jsx(Picture, __spreadValues({ className: MiniBanner_module_default.logo }, logo)),
2717
2724
  pretitleNode && /* @__PURE__ */ jsx("div", { className: clsx43(MiniBanner_module_default.pretitle, "small"), children: pretitleNode }),
2718
2725
  /* @__PURE__ */ jsxs("div", { className: MiniBanner_module_default.headingWrapper, children: [
2719
- goBackNode ? React66.cloneElement(goBackNode, {
2726
+ goBackNode ? React67.cloneElement(goBackNode, {
2720
2727
  className: clsx43("back-button", MiniBanner_module_default["back-button"])
2721
2728
  }) : null,
2722
2729
  titleNode && /* @__PURE__ */ jsx("div", { className: clsx43(MiniBanner_module_default.title, isMiniBannerTextLeft ? "h1" : "h4"), children: titleNode })
@@ -4237,7 +4244,7 @@ var NewsCardList = ({
4237
4244
  /* @__PURE__ */ jsx(BlogCardGrid2, { items: cards, hasContainer: false, renderLink })
4238
4245
  ] })
4239
4246
  ] }),
4240
- paginationNode ? React66.cloneElement(paginationNode, {
4247
+ paginationNode ? React67.cloneElement(paginationNode, {
4241
4248
  className: clsx43("pagination", NewsCardList_module_default["pagination"])
4242
4249
  }) : null
4243
4250
  ] })
@@ -4353,7 +4360,7 @@ var BlogSearchResultsList = ({
4353
4360
  const searchNode = (_a = slots.search) != null ? _a : searchResult;
4354
4361
  const paginationNode = slots.pagination;
4355
4362
  return /* @__PURE__ */ jsx("div", { className: clsx43("search-results-list", BlogSearchResultsList_module_default["search-results-list"], className), children: /* @__PURE__ */ jsxs(Container, { className: clsx43("container", BlogSearchResultsList_module_default["container"]), children: [
4356
- typeof searchNode === "string" ? /* @__PURE__ */ jsx("span", { className: clsx43("search-result", BlogSearchResultsList_module_default["search-result"]), children: searchNode }) : React66.isValidElement(searchNode) ? React66.cloneElement(searchNode, {
4363
+ typeof searchNode === "string" ? /* @__PURE__ */ jsx("span", { className: clsx43("search-result", BlogSearchResultsList_module_default["search-result"]), children: searchNode }) : React67.isValidElement(searchNode) ? React67.cloneElement(searchNode, {
4357
4364
  className: clsx43("search-result", BlogSearchResultsList_module_default["search-result"])
4358
4365
  }) : null,
4359
4366
  /* @__PURE__ */ jsxs("div", { className: clsx43("wrapper", BlogSearchResultsList_module_default["wrapper"]), children: [
@@ -4381,7 +4388,7 @@ var BlogSearchResultsList = ({
4381
4388
  ),
4382
4389
  /* @__PURE__ */ jsx(BlogCardGrid2, { items, hasContainer: false, renderLink })
4383
4390
  ] }),
4384
- paginationNode ? React66.cloneElement(paginationNode, {
4391
+ paginationNode ? React67.cloneElement(paginationNode, {
4385
4392
  className: clsx43("pagination", BlogSearchResultsList_module_default["pagination"])
4386
4393
  }) : null
4387
4394
  ] }) });
@@ -4424,7 +4431,7 @@ var GlobalSearchResultsList = ({
4424
4431
  const searchNode = (_a = slots.search) != null ? _a : searchResult;
4425
4432
  const paginationNode = slots.pagination;
4426
4433
  return /* @__PURE__ */ jsx("div", { className: clsx43("search-results-list", GlobalSearchResultsList_module_default["search-results-list"], className), children: /* @__PURE__ */ jsxs(Container, { className: clsx43("container", GlobalSearchResultsList_module_default["container"]), children: [
4427
- typeof searchNode === "string" ? /* @__PURE__ */ jsx("span", { className: clsx43("search-result", GlobalSearchResultsList_module_default["search-result"]), children: searchNode }) : React66.isValidElement(searchNode) ? React66.cloneElement(searchNode, {
4434
+ typeof searchNode === "string" ? /* @__PURE__ */ jsx("span", { className: clsx43("search-result", GlobalSearchResultsList_module_default["search-result"]), children: searchNode }) : React67.isValidElement(searchNode) ? React67.cloneElement(searchNode, {
4428
4435
  className: clsx43("search-result", GlobalSearchResultsList_module_default["search-result"])
4429
4436
  }) : null,
4430
4437
  /* @__PURE__ */ jsx("div", { className: clsx43("wrapper", GlobalSearchResultsList_module_default["wrapper"]), children: /* @__PURE__ */ jsx(Grid, { role: "list", columns: 3, children: items.map((item, index) => {
@@ -4439,7 +4446,7 @@ var GlobalSearchResultsList = ({
4439
4446
  }
4440
4447
  ) }, (_a2 = item.title) != null ? _a2 : index);
4441
4448
  }) }) }),
4442
- paginationNode ? React66.cloneElement(paginationNode, {
4449
+ paginationNode ? React67.cloneElement(paginationNode, {
4443
4450
  className: clsx43("pagination", GlobalSearchResultsList_module_default["pagination"])
4444
4451
  }) : null
4445
4452
  ] }) });
@@ -4451,6 +4458,94 @@ var GlobalSearchResultsList2 = Object.assign(GlobalSearchResultsList, {
4451
4458
  Pagination: GlobalSearchResultsListPagination
4452
4459
  });
4453
4460
 
4454
- export { Anchor, Badge, BlogCardGrid2 as BlogCardGrid, BlogPost2 as BlogPost, BlogPostContent2 as BlogPostContent, BlogSearchResultsList2 as BlogSearchResultsList, BrandsStrip, Button, Card2 as Card, CardCollection2 as CardCollection, ConditionalWrapper, ContactModule2 as ContactModule, Container, CountingCard2 as CountingCard, EventList2 as EventList, FeaturedNewsHighlights2 as FeaturedNewsHighlights, FilterBar, Footer, GlobalSearchResultsList2 as GlobalSearchResultsList, HeroBanner2 as HeroBanner, HeroBannerCarousel, Icon, InfoCard2 as InfoCard, Input, InternalBrandsTab2 as InternalBrandsTab, MiniBanner2 as MiniBanner, MiniSectionCta2 as MiniSectionCta, Navigation2 as Navigation, NewsCard, NewsCardList2 as NewsCardList, Pagination, Picture, PracticeCard, PracticePathCards2 as PracticePathCards, ResourceCardItem, ResourcesGridList, Sidebar, Teaser5050With3Text2 as Teaser5050With3Text, Teaser5050WithCta2 as Teaser5050WithCta, TextBody2 as TextBody, TextCenterCtaInBottom2 as TextCenterCtaInBottom, TextEvent2 as TextEvent, UpcomingEventCard, resolveCompoundSlots, svgs, useIntersectionObserver, useIsAtTop };
4461
+ // src/widgets/TextCenterWithMedia/TextCenterWithMedia.module.scss
4462
+ var TextCenterWithMedia_module_default = {
4463
+ textCenterWithMedia: "TextCenterWithMedia_module_textCenterWithMedia",
4464
+ thumbnailWrapper: "TextCenterWithMedia_module_thumbnailWrapper",
4465
+ thumbnail: "TextCenterWithMedia_module_thumbnail",
4466
+ playButton: "TextCenterWithMedia_module_playButton",
4467
+ modal: "TextCenterWithMedia_module_modal",
4468
+ modalInner: "TextCenterWithMedia_module_modalInner",
4469
+ modalHeader: "TextCenterWithMedia_module_modalHeader",
4470
+ closeButton: "TextCenterWithMedia_module_closeButton",
4471
+ video: "TextCenterWithMedia_module_video"
4472
+ };
4473
+ var TextCenterWithMediaTitle = ({ children }) => {
4474
+ return /* @__PURE__ */ jsx(Fragment, { children });
4475
+ };
4476
+ var TextCenterWithMedia = ({
4477
+ className,
4478
+ title,
4479
+ thumbnail,
4480
+ videoUrl,
4481
+ loop = false,
4482
+ mute = false,
4483
+ hideControl = false,
4484
+ autoPlay = false,
4485
+ children
4486
+ }) => {
4487
+ var _a;
4488
+ const [isOpen, setIsOpen] = useState(false);
4489
+ const dialogRef = useRef(null);
4490
+ const videoRef = useRef(null);
4491
+ useEffect(() => {
4492
+ var _a2, _b;
4493
+ if (isOpen) {
4494
+ (_a2 = dialogRef.current) == null ? void 0 : _a2.showModal();
4495
+ } else {
4496
+ (_b = dialogRef.current) == null ? void 0 : _b.close();
4497
+ }
4498
+ }, [isOpen]);
4499
+ const handleClose = () => {
4500
+ if (videoRef.current) {
4501
+ videoRef.current.pause();
4502
+ videoRef.current.currentTime = 0;
4503
+ }
4504
+ setIsOpen(false);
4505
+ };
4506
+ const slots = resolveCompoundSlots(children, { title: TextCenterWithMediaTitle });
4507
+ const titleNode = (_a = slots.title) != null ? _a : title;
4508
+ return /* @__PURE__ */ jsxs("section", { className: clsx43(TextCenterWithMedia_module_default.textCenterWithMedia, className), children: [
4509
+ /* @__PURE__ */ jsxs(Container, { children: [
4510
+ titleNode && /* @__PURE__ */ jsx("h2", { className: "h2", children: titleNode }),
4511
+ /* @__PURE__ */ jsx("div", { className: TextCenterWithMedia_module_default.thumbnailWrapper, children: thumbnail && /* @__PURE__ */ jsxs(Fragment, { children: [
4512
+ /* @__PURE__ */ jsx(Picture, { src: thumbnail, alt: "Video thumbnail", className: TextCenterWithMedia_module_default.thumbnail }),
4513
+ /* @__PURE__ */ jsx(
4514
+ "button",
4515
+ {
4516
+ className: TextCenterWithMedia_module_default.playButton,
4517
+ onClick: () => setIsOpen(true),
4518
+ "aria-label": "Play video",
4519
+ children: /* @__PURE__ */ jsx(Icon, { type: "play", size: 90 })
4520
+ }
4521
+ )
4522
+ ] }) })
4523
+ ] }),
4524
+ /* @__PURE__ */ jsx("dialog", { ref: dialogRef, className: TextCenterWithMedia_module_default.modal, onClose: handleClose, children: /* @__PURE__ */ jsxs("div", { className: TextCenterWithMedia_module_default.modalInner, children: [
4525
+ /* @__PURE__ */ jsx("div", { className: TextCenterWithMedia_module_default.modalHeader, children: /* @__PURE__ */ jsx("button", { className: TextCenterWithMedia_module_default.closeButton, onClick: handleClose, "aria-label": "Close video", children: /* @__PURE__ */ jsx(Icon, { type: "xBlack", size: 30 }) }) }),
4526
+ videoUrl && isOpen && /* @__PURE__ */ jsx(
4527
+ ReactPlayer,
4528
+ {
4529
+ ref: videoRef,
4530
+ src: videoUrl,
4531
+ playing: autoPlay,
4532
+ loop,
4533
+ muted: mute,
4534
+ controls: !hideControl,
4535
+ className: TextCenterWithMedia_module_default.video,
4536
+ width: "100%",
4537
+ height: "100%"
4538
+ }
4539
+ )
4540
+ ] }) })
4541
+ ] });
4542
+ };
4543
+
4544
+ // src/widgets/TextCenterWithMedia/index.ts
4545
+ var TextCenterWithMedia2 = Object.assign(TextCenterWithMedia, {
4546
+ Title: TextCenterWithMediaTitle
4547
+ });
4548
+
4549
+ export { Anchor, Badge, BlogCardGrid2 as BlogCardGrid, BlogPost2 as BlogPost, BlogPostContent2 as BlogPostContent, BlogSearchResultsList2 as BlogSearchResultsList, BrandsStrip, Button, Card2 as Card, CardCollection2 as CardCollection, ConditionalWrapper, ContactModule2 as ContactModule, Container, CountingCard2 as CountingCard, EventList2 as EventList, FeaturedNewsHighlights2 as FeaturedNewsHighlights, FilterBar, Footer, GlobalSearchResultsList2 as GlobalSearchResultsList, HeroBanner2 as HeroBanner, HeroBannerCarousel, Icon, InfoCard2 as InfoCard, Input, InternalBrandsTab2 as InternalBrandsTab, MiniBanner2 as MiniBanner, MiniSectionCta2 as MiniSectionCta, Navigation2 as Navigation, NewsCard, NewsCardList2 as NewsCardList, Pagination, Picture, PracticeCard, PracticePathCards2 as PracticePathCards, ResourceCardItem, ResourcesGridList, Sidebar, Teaser5050With3Text2 as Teaser5050With3Text, Teaser5050WithCta2 as Teaser5050WithCta, TextBody2 as TextBody, TextCenterCtaInBottom2 as TextCenterCtaInBottom, TextCenterWithMedia2 as TextCenterWithMedia, TextEvent2 as TextEvent, UpcomingEventCard, resolveCompoundSlots, svgs, useIntersectionObserver, useIsAtTop };
4455
4550
  //# sourceMappingURL=index.mjs.map
4456
4551
  //# sourceMappingURL=index.mjs.map