@digital-b2c/coreui-kit 0.15.4 → 0.15.6

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,3 +1,4 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
1
2
  import * as react from 'react';
2
3
  import react__default, { ImgHTMLAttributes, AnchorHTMLAttributes, ReactNode, Ref, HTMLAttributes, ButtonHTMLAttributes, InputHTMLAttributes, PropsWithChildren, JSX, FC, CSSProperties } from 'react';
3
4
 
@@ -117,7 +118,7 @@ interface BrandsStripProps {
117
118
  size?: 'small';
118
119
  }
119
120
 
120
- declare const BrandsStrip: ({ className, variant, title, logos, cta, size, }: BrandsStripProps) => react.JSX.Element;
121
+ declare const BrandsStrip: ({ className, variant, title, logos, cta, size, }: BrandsStripProps) => react_jsx_runtime.JSX.Element;
121
122
 
122
123
  declare const ButtonVariantReadOnly: readonly ["primary", "secondary", "ghost", "nofill", "grey", "nofillblack", "shiny", "tabbutton", "navnofillblack"];
123
124
  type TButtonVariant = (typeof ButtonVariantReadOnly)[number];
@@ -157,11 +158,11 @@ interface CardProps {
157
158
  }
158
159
 
159
160
  declare const Card: {
160
- ({ className, variant, title, subtitle, cta, icon, logo, children, ref, }: CardProps): react.JSX.Element;
161
+ ({ className, variant, title, subtitle, cta, icon, logo, children, ref, }: CardProps): react_jsx_runtime.JSX.Element;
161
162
  displayName: string;
162
163
  } & {
163
- Title: ({ children }: CardTitleProps) => react.JSX.Element;
164
- Subtitle: ({ children }: CardSubtitleProps) => react.JSX.Element;
164
+ Title: ({ children }: CardTitleProps) => react_jsx_runtime.JSX.Element;
165
+ Subtitle: ({ children }: CardSubtitleProps) => react_jsx_runtime.JSX.Element;
165
166
  };
166
167
 
167
168
  type CountingCardTitleProps = {
@@ -176,8 +177,8 @@ interface CountingCardProps {
176
177
  children?: ReactNode;
177
178
  }
178
179
 
179
- declare const CountingCard: (({ className, title, count, image, children }: CountingCardProps) => react.JSX.Element) & {
180
- Title: ({ children }: CountingCardTitleProps) => react.JSX.Element;
180
+ declare const CountingCard: (({ className, title, count, image, children }: CountingCardProps) => react_jsx_runtime.JSX.Element) & {
181
+ Title: ({ children }: CountingCardTitleProps) => react_jsx_runtime.JSX.Element;
181
182
  };
182
183
 
183
184
  type ResourceView = 'grid' | 'list';
@@ -201,7 +202,7 @@ interface ResourceCardItemProps {
201
202
  }) => React.ReactNode;
202
203
  }
203
204
 
204
- declare const ResourceCardItem: ({ item, view, variant, renderLink }: ResourceCardItemProps) => react.JSX.Element;
205
+ declare const ResourceCardItem: ({ item, view, variant, renderLink }: ResourceCardItemProps) => react_jsx_runtime.JSX.Element;
205
206
 
206
207
  type FilterOption = 'all' | 'pdf' | 'externalLink';
207
208
  type SortOption = 'latest' | 'oldest' | 'az' | 'za';
@@ -217,7 +218,7 @@ interface FilterBarProps {
217
218
  onSearchChange: (v: string) => void;
218
219
  }
219
220
 
220
- declare function FilterBar({ view, onViewChange, isMobile, filterValue, onFilterChange, sortValue, onSortChange, searchValue, onSearchChange, }: FilterBarProps): react.JSX.Element;
221
+ declare function FilterBar({ view, onViewChange, isMobile, filterValue, onFilterChange, sortValue, onSortChange, searchValue, onSearchChange, }: FilterBarProps): react_jsx_runtime.JSX.Element;
221
222
 
222
223
  type InfoCardSubtitleProps = {
223
224
  children: ReactNode;
@@ -236,9 +237,9 @@ interface InfoCardProps {
236
237
  children?: ReactNode;
237
238
  }
238
239
 
239
- declare const InfoCard: (({ className, title, subtitle, icon, badge, children }: InfoCardProps) => react.JSX.Element) & {
240
- Title: ({ children }: InfoCardTitleProps) => react.JSX.Element;
241
- Subtitle: ({ children }: InfoCardSubtitleProps) => react.JSX.Element;
240
+ declare const InfoCard: (({ className, title, subtitle, icon, badge, children }: InfoCardProps) => react_jsx_runtime.JSX.Element) & {
241
+ Title: ({ children }: InfoCardTitleProps) => react_jsx_runtime.JSX.Element;
242
+ Subtitle: ({ children }: InfoCardSubtitleProps) => react_jsx_runtime.JSX.Element;
242
243
  };
243
244
 
244
245
  interface PaginationProps {
@@ -259,9 +260,9 @@ interface PaginationProps {
259
260
  }) => ReactNode;
260
261
  }
261
262
 
262
- declare const Pagination: ({ className, totalPages, currentPage, loop, hasNumber, disableArrows, onPageChange, showEllipsis, boundaryCount, siblingCount, hidePagesBorder, renderLink, }: PaginationProps) => react.JSX.Element;
263
+ declare const Pagination: ({ className, totalPages, currentPage, loop, hasNumber, disableArrows, onPageChange, showEllipsis, boundaryCount, siblingCount, hidePagesBorder, renderLink, }: PaginationProps) => react_jsx_runtime.JSX.Element;
263
264
 
264
- declare const Picture: ({ className, ...props }: PictureProps) => react.JSX.Element;
265
+ declare const Picture: ({ className, ...props }: PictureProps) => react_jsx_runtime.JSX.Element;
265
266
 
266
267
  interface PracticeCardProps {
267
268
  className?: string;
@@ -270,7 +271,7 @@ interface PracticeCardProps {
270
271
  image?: IPicture;
271
272
  }
272
273
 
273
- declare const PracticeCard: ({ className, title, cta, image }: PracticeCardProps) => react.JSX.Element;
274
+ declare const PracticeCard: ({ className, title, cta, image }: PracticeCardProps) => react_jsx_runtime.JSX.Element;
274
275
 
275
276
  interface SidebarCategory {
276
277
  label: string;
@@ -290,7 +291,7 @@ interface SidebarProps {
290
291
  onSelect: (index: number) => void;
291
292
  }
292
293
 
293
- declare const Sidebar: ({ categories, isMobile, onToggle, selectedIndex, onSelect, }: SidebarProps) => react.JSX.Element;
294
+ declare const Sidebar: ({ categories, isMobile, onToggle, selectedIndex, onSelect, }: SidebarProps) => react_jsx_runtime.JSX.Element;
294
295
 
295
296
  interface UpcomingEventCardProps {
296
297
  className?: string;
@@ -306,7 +307,7 @@ interface UpcomingEventCardProps {
306
307
  showImage?: boolean;
307
308
  }
308
309
 
309
- declare const UpcomingEventCard: ({ className, image, date, title, location, description, cta, direction, showImage, }: UpcomingEventCardProps) => react.JSX.Element;
310
+ declare const UpcomingEventCard: ({ className, image, date, title, location, description, cta, direction, showImage, }: UpcomingEventCardProps) => react_jsx_runtime.JSX.Element;
310
311
 
311
312
  type BadgeBaseProps = {
312
313
  children?: ReactNode;
@@ -384,7 +385,7 @@ interface NewsCardProps {
384
385
  }) => React.ReactNode;
385
386
  }
386
387
 
387
- declare const NewsCard: ({ className, image, date, description, tag, title, cta, direction, renderLink, }: NewsCardProps) => react.JSX.Element;
388
+ declare const NewsCard: ({ className, image, date, description, tag, title, cta, direction, renderLink, }: NewsCardProps) => react_jsx_runtime.JSX.Element;
388
389
 
389
390
  type BlogPostContentBodyProps = {
390
391
  children: ReactNode;
@@ -396,8 +397,8 @@ interface BlogPostContentProps {
396
397
  body?: ReactNode;
397
398
  }
398
399
 
399
- declare const BlogPostContent: (({ className, body, children }: BlogPostContentProps) => react.JSX.Element) & {
400
- Body: ({ children }: BlogPostContentBodyProps) => react.JSX.Element;
400
+ declare const BlogPostContent: (({ className, body, children }: BlogPostContentProps) => react_jsx_runtime.JSX.Element) & {
401
+ Body: ({ children }: BlogPostContentBodyProps) => react_jsx_runtime.JSX.Element;
401
402
  };
402
403
 
403
404
  interface SearchProps {
@@ -414,7 +415,7 @@ interface SearchProps {
414
415
  className?: string;
415
416
  }
416
417
 
417
- declare const Search: ({ placeholder, searchCta, onSearch, variant, className, }: SearchProps) => react.JSX.Element;
418
+ declare const Search: ({ placeholder, searchCta, onSearch, variant, className, }: SearchProps) => react_jsx_runtime.JSX.Element;
418
419
 
419
420
  interface UserMenuItem {
420
421
  label: string;
@@ -453,7 +454,7 @@ interface UserMenuProps {
453
454
  * Escape or outside interaction).
454
455
  * - Without `menuItems`, renders a plain link (when `url` is set) or button.
455
456
  */
456
- declare const UserMenu: ({ user, className, dropUp, fullWidth }: UserMenuProps) => react.JSX.Element;
457
+ declare const UserMenu: ({ user, className, dropUp, fullWidth }: UserMenuProps) => react_jsx_runtime.JSX.Element;
457
458
 
458
459
  interface AnchorProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
459
460
  isExternal?: boolean;
@@ -462,7 +463,7 @@ interface AnchorProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
462
463
  }) => ReactNode;
463
464
  }
464
465
 
465
- declare const Anchor: ({ children, isExternal, renderLink, ...props }: AnchorProps) => react.JSX.Element;
466
+ declare const Anchor: ({ children, isExternal, renderLink, ...props }: AnchorProps) => react_jsx_runtime.JSX.Element;
466
467
 
467
468
  interface ContainerProps extends HTMLAttributes<HTMLDivElement> {
468
469
  children: ReactNode;
@@ -501,9 +502,9 @@ interface CardCollectionProps {
501
502
  theme?: 'dark' | 'light';
502
503
  }
503
504
 
504
- declare const CardCollection: (({ className, variant, theme, title, subtitle, cards, ctaLabel, children, }: CardCollectionProps) => react.JSX.Element) & {
505
- Title: ({ children }: CardCollectionTitleProps) => react.JSX.Element;
506
- Subtitle: ({ children }: CardCollectionSubtitleProps) => react.JSX.Element;
505
+ declare const CardCollection: (({ className, variant, theme, title, subtitle, cards, ctaLabel, children, }: CardCollectionProps) => react_jsx_runtime.JSX.Element) & {
506
+ Title: ({ children }: CardCollectionTitleProps) => react_jsx_runtime.JSX.Element;
507
+ Subtitle: ({ children }: CardCollectionSubtitleProps) => react_jsx_runtime.JSX.Element;
507
508
  };
508
509
 
509
510
  type ContactModuleSubtitleProps = {
@@ -525,9 +526,9 @@ interface ContactModuleProps {
525
526
  animateBlur?: boolean;
526
527
  }
527
528
 
528
- declare const ContactModule: (({ className, children, title, subtitle, ctas, image, blurred, animateBlur, }: ContactModuleProps) => react.JSX.Element) & {
529
- Title: ({ children }: ContactModuleTitleProps) => react.JSX.Element;
530
- Subtitle: ({ children }: ContactModuleSubtitleProps) => react.JSX.Element;
529
+ declare const ContactModule: (({ className, children, title, subtitle, ctas, image, blurred, animateBlur, }: ContactModuleProps) => react_jsx_runtime.JSX.Element) & {
530
+ Title: ({ children }: ContactModuleTitleProps) => react_jsx_runtime.JSX.Element;
531
+ Subtitle: ({ children }: ContactModuleSubtitleProps) => react_jsx_runtime.JSX.Element;
531
532
  };
532
533
 
533
534
  interface IFooterLink {
@@ -553,7 +554,7 @@ interface FooterProps {
553
554
  supportContacts?: IFooterSupportGroup[];
554
555
  }
555
556
 
556
- declare const Footer: ({ className, supporters, navigationLinks, disclaimer, copyright, children, supportContacts, }: FooterProps) => react.JSX.Element;
557
+ declare const Footer: ({ className, supporters, navigationLinks, disclaimer, copyright, children, supportContacts, }: FooterProps) => react_jsx_runtime.JSX.Element;
557
558
 
558
559
  type HeroBannerSubtitleProps = {
559
560
  children: ReactNode;
@@ -579,9 +580,9 @@ interface HeroBannerProps {
579
580
  children?: ReactNode;
580
581
  }
581
582
 
582
- declare const HeroBanner: (({ className, variant, title, subtitle, backgroundImage, logo, cta, ctaLogo, brands, promoteToH1, children, }: HeroBannerProps) => react.JSX.Element) & {
583
- Title: ({ children }: HeroBannerTitleProps) => react.JSX.Element;
584
- Subtitle: ({ children }: HeroBannerSubtitleProps) => react.JSX.Element;
583
+ declare const HeroBanner: (({ className, variant, title, subtitle, backgroundImage, logo, cta, ctaLogo, brands, promoteToH1, children, }: HeroBannerProps) => react_jsx_runtime.JSX.Element) & {
584
+ Title: ({ children }: HeroBannerTitleProps) => react_jsx_runtime.JSX.Element;
585
+ Subtitle: ({ children }: HeroBannerSubtitleProps) => react_jsx_runtime.JSX.Element;
585
586
  };
586
587
 
587
588
  interface HeroBannerCarouselItem {
@@ -598,7 +599,7 @@ interface HeroBannerCarouselProps {
598
599
  navNextIcon?: string;
599
600
  }
600
601
 
601
- declare const HeroBannerCarousel: ({ className, items, navPrevIcon, navNextIcon, }: HeroBannerCarouselProps) => react.JSX.Element | null;
602
+ declare const HeroBannerCarousel: ({ className, items, navPrevIcon, navNextIcon, }: HeroBannerCarouselProps) => react_jsx_runtime.JSX.Element | null;
602
603
 
603
604
  interface InternalBrandsTabProps {
604
605
  title?: string;
@@ -621,7 +622,7 @@ interface InternalBrandsTabProps {
621
622
  }[];
622
623
  }
623
624
 
624
- declare const InternalBrandsTab: (props: InternalBrandsTabProps) => react.JSX.Element;
625
+ declare const InternalBrandsTab: (props: InternalBrandsTabProps) => react_jsx_runtime.JSX.Element;
625
626
 
626
627
  type MiniBannerGoBackProps = {
627
628
  children: ReactNode;
@@ -658,10 +659,10 @@ interface MiniBannerProps {
658
659
  children?: ReactNode;
659
660
  }
660
661
 
661
- declare const MiniBanner: (({ className, variant, pretitle, title, subtitle, logo, background, cta, children, }: MiniBannerProps) => react.JSX.Element) & {
662
- Title: ({ children }: MiniBannerTitleProps) => react.JSX.Element;
663
- Subtitle: ({ children }: MiniBannerSubtitleProps) => react.JSX.Element;
664
- GoBack: ({ children }: MiniBannerGoBackProps) => react.JSX.Element;
662
+ declare const MiniBanner: (({ className, variant, pretitle, title, subtitle, logo, background, cta, children, }: MiniBannerProps) => react_jsx_runtime.JSX.Element) & {
663
+ Title: ({ children }: MiniBannerTitleProps) => react_jsx_runtime.JSX.Element;
664
+ Subtitle: ({ children }: MiniBannerSubtitleProps) => react_jsx_runtime.JSX.Element;
665
+ GoBack: ({ children }: MiniBannerGoBackProps) => react_jsx_runtime.JSX.Element;
665
666
  };
666
667
 
667
668
  type MiniSectionCtaSubtitleProps = {
@@ -682,9 +683,9 @@ interface MiniSectionCtaProps {
682
683
  children?: ReactNode;
683
684
  }
684
685
 
685
- declare const MiniSectionCta: (({ className, variant, theme, title, subtitle, cta, children, }: MiniSectionCtaProps) => react.JSX.Element) & {
686
- Title: ({ children }: MiniSectionCtaTitleProps) => react.JSX.Element;
687
- Subtitle: ({ children }: MiniSectionCtaSubtitleProps) => react.JSX.Element;
686
+ declare const MiniSectionCta: (({ className, variant, theme, title, subtitle, cta, children, }: MiniSectionCtaProps) => react_jsx_runtime.JSX.Element) & {
687
+ Title: ({ children }: MiniSectionCtaTitleProps) => react_jsx_runtime.JSX.Element;
688
+ Subtitle: ({ children }: MiniSectionCtaSubtitleProps) => react_jsx_runtime.JSX.Element;
688
689
  };
689
690
 
690
691
  interface BaseNavItem {
@@ -736,7 +737,7 @@ interface NavigationProps {
736
737
  brandLogos?: NavigationBrandLogos;
737
738
  }
738
739
 
739
- declare const Navigation: (props: NavigationProps) => react.JSX.Element;
740
+ declare const Navigation: (props: NavigationProps) => react_jsx_runtime.JSX.Element;
740
741
 
741
742
  type PracticePathCardsFooterProps = {
742
743
  children: ReactNode;
@@ -760,10 +761,10 @@ interface PracticePathCardsProps {
760
761
  cta?: ICta;
761
762
  }
762
763
 
763
- declare const PracticePathCards: (({ className, children, cards, title, subtitle, footer, cta, }: PracticePathCardsProps) => react.JSX.Element) & {
764
- Title: ({ children }: PracticePathCardsTitleProps) => react.JSX.Element;
765
- Subtitle: ({ children }: PracticePathCardsSubtitleProps) => react.JSX.Element;
766
- Footer: ({ children }: PracticePathCardsFooterProps) => react.JSX.Element;
764
+ declare const PracticePathCards: (({ className, children, cards, title, subtitle, footer, cta, }: PracticePathCardsProps) => react_jsx_runtime.JSX.Element) & {
765
+ Title: ({ children }: PracticePathCardsTitleProps) => react_jsx_runtime.JSX.Element;
766
+ Subtitle: ({ children }: PracticePathCardsSubtitleProps) => react_jsx_runtime.JSX.Element;
767
+ Footer: ({ children }: PracticePathCardsFooterProps) => react_jsx_runtime.JSX.Element;
767
768
  };
768
769
 
769
770
  type Teaser5050With3TextTitleProps = {
@@ -779,8 +780,8 @@ interface Teaser5050With3TextProps {
779
780
  children?: ReactNode;
780
781
  }
781
782
 
782
- declare const Teaser5050With3Text: (({ className, variant, title, cards, image, children, }: Teaser5050With3TextProps) => react.JSX.Element) & {
783
- Title: ({ children }: Teaser5050With3TextTitleProps) => react.JSX.Element;
783
+ declare const Teaser5050With3Text: (({ className, variant, title, cards, image, children, }: Teaser5050With3TextProps) => react_jsx_runtime.JSX.Element) & {
784
+ Title: ({ children }: Teaser5050With3TextTitleProps) => react_jsx_runtime.JSX.Element;
784
785
  };
785
786
 
786
787
  type Teaser5050WithCtaSubtitleProps = {
@@ -802,9 +803,9 @@ interface Teaser5050WithCtaProps {
802
803
  bgColor?: string;
803
804
  }
804
805
 
805
- declare const Teaser5050WithCta: (({ className, variant, title, subtitle, ctas, image, children, bgColor, }: Teaser5050WithCtaProps) => react.JSX.Element) & {
806
- Title: ({ children }: Teaser5050WithCtaTitleProps) => react.JSX.Element;
807
- Subtitle: ({ children }: Teaser5050WithCtaSubtitleProps) => react.JSX.Element;
806
+ declare const Teaser5050WithCta: (({ className, variant, title, subtitle, ctas, image, children, bgColor, }: Teaser5050WithCtaProps) => react_jsx_runtime.JSX.Element) & {
807
+ Title: ({ children }: Teaser5050WithCtaTitleProps) => react_jsx_runtime.JSX.Element;
808
+ Subtitle: ({ children }: Teaser5050WithCtaSubtitleProps) => react_jsx_runtime.JSX.Element;
808
809
  };
809
810
 
810
811
  type EventListEmptyProps = {
@@ -826,9 +827,9 @@ interface EventListProps extends PropsWithChildren {
826
827
  variant?: 'internalEventList';
827
828
  }
828
829
 
829
- declare const EventList: (({ className, title, items, cta, backgroundColor, variant, children, }: EventListProps) => react.JSX.Element) & {
830
- Title: ({ children }: EventListTitleProps) => react.JSX.Element;
831
- Empty: ({ children }: EventListEmptyProps) => react.JSX.Element;
830
+ declare const EventList: (({ className, title, items, cta, backgroundColor, variant, children, }: EventListProps) => react_jsx_runtime.JSX.Element) & {
831
+ Title: ({ children }: EventListTitleProps) => react_jsx_runtime.JSX.Element;
832
+ Empty: ({ children }: EventListEmptyProps) => react_jsx_runtime.JSX.Element;
832
833
  };
833
834
 
834
835
  type TextEventRichTextProps = {
@@ -848,9 +849,9 @@ interface TextEventProps {
848
849
  children?: ReactNode;
849
850
  }
850
851
 
851
- declare const TextEvent: ((props: TextEventProps) => react.JSX.Element) & {
852
- Title: ({ children }: TextEventTitleProps) => react.JSX.Element;
853
- RichText: ({ children }: TextEventRichTextProps) => react.JSX.Element;
852
+ declare const TextEvent: ((props: TextEventProps) => react_jsx_runtime.JSX.Element) & {
853
+ Title: ({ children }: TextEventTitleProps) => react_jsx_runtime.JSX.Element;
854
+ RichText: ({ children }: TextEventRichTextProps) => react_jsx_runtime.JSX.Element;
854
855
  };
855
856
 
856
857
  type TextBodyBodyProps = {
@@ -868,9 +869,9 @@ interface TextBodyProps {
868
869
  children?: ReactNode;
869
870
  }
870
871
 
871
- declare const TextBody: ((props: TextBodyProps) => react.JSX.Element) & {
872
- Title: ({ children }: TextBodyTitleProps) => react.JSX.Element;
873
- Body: ({ children }: TextBodyBodyProps) => react.JSX.Element;
872
+ declare const TextBody: ((props: TextBodyProps) => react_jsx_runtime.JSX.Element) & {
873
+ Title: ({ children }: TextBodyTitleProps) => react_jsx_runtime.JSX.Element;
874
+ Body: ({ children }: TextBodyBodyProps) => react_jsx_runtime.JSX.Element;
874
875
  };
875
876
 
876
877
  type TextCenterCtaInBottomSubtitleProps = {
@@ -889,9 +890,9 @@ interface TextCenterCtaInBottomProps {
889
890
  children?: ReactNode;
890
891
  }
891
892
 
892
- declare const TextCenterCtaInBottom: (({ className, title, subtitle, ctas, children, }: TextCenterCtaInBottomProps) => react.JSX.Element) & {
893
- Title: ({ children }: TextCenterCtaInBottomTitleProps) => react.JSX.Element;
894
- Subtitle: ({ children }: TextCenterCtaInBottomSubtitleProps) => react.JSX.Element;
893
+ declare const TextCenterCtaInBottom: (({ className, title, subtitle, ctas, children, }: TextCenterCtaInBottomProps) => react_jsx_runtime.JSX.Element) & {
894
+ Title: ({ children }: TextCenterCtaInBottomTitleProps) => react_jsx_runtime.JSX.Element;
895
+ Subtitle: ({ children }: TextCenterCtaInBottomSubtitleProps) => react_jsx_runtime.JSX.Element;
895
896
  };
896
897
 
897
898
  interface ResourcesGridListProps {
@@ -904,7 +905,7 @@ interface ResourcesGridListProps {
904
905
  children?: ReactNode;
905
906
  }
906
907
 
907
- declare const ResourcesGridList: ({ className, items, categories, defaultView, defaultFilter, defaultSort, }: ResourcesGridListProps) => react.JSX.Element;
908
+ declare const ResourcesGridList: ({ className, items, categories, defaultView, defaultFilter, defaultSort, }: ResourcesGridListProps) => react_jsx_runtime.JSX.Element;
908
909
 
909
910
  type BlogCardGridTitleProps = {
910
911
  children: ReactNode;
@@ -924,8 +925,8 @@ interface BlogCardGridProps extends PropsWithChildren {
924
925
  }) => React.ReactNode;
925
926
  }
926
927
 
927
- declare const BlogCardGrid: (({ title, items, backgroundColor, cta, className, hasContainer, gridProps, gridItemProps, renderLink, children, }: BlogCardGridProps) => react.JSX.Element) & {
928
- Title: ({ children }: BlogCardGridTitleProps) => react.JSX.Element;
928
+ declare const BlogCardGrid: (({ title, items, backgroundColor, cta, className, hasContainer, gridProps, gridItemProps, renderLink, children, }: BlogCardGridProps) => react_jsx_runtime.JSX.Element) & {
929
+ Title: ({ children }: BlogCardGridTitleProps) => react_jsx_runtime.JSX.Element;
929
930
  };
930
931
 
931
932
  type FeaturedNewsHighlightsTitleProps = {
@@ -945,8 +946,8 @@ interface FeaturedNewsHighlightsProps extends PropsWithChildren {
945
946
  }) => React.ReactNode;
946
947
  }
947
948
 
948
- declare const FeaturedNewsHighlights: (({ variant, title, items, backgroundColor, cta, className, hasContainer, renderLink, children, }: FeaturedNewsHighlightsProps) => react.JSX.Element) & {
949
- Title: ({ children }: FeaturedNewsHighlightsTitleProps) => react.JSX.Element;
949
+ declare const FeaturedNewsHighlights: (({ variant, title, items, backgroundColor, cta, className, hasContainer, renderLink, children, }: FeaturedNewsHighlightsProps) => react_jsx_runtime.JSX.Element) & {
950
+ Title: ({ children }: FeaturedNewsHighlightsTitleProps) => react_jsx_runtime.JSX.Element;
950
951
  };
951
952
 
952
953
  type NewsCardListPaginationProps = {
@@ -967,8 +968,8 @@ interface NewsCardListProps extends PropsWithChildren {
967
968
  }) => React.ReactNode;
968
969
  }
969
970
 
970
- declare const NewsCardList: (({ items, backgroundColor, className, currentPage, searchValue, onSearchChange, onSearchSubmit, searchInputProps, renderLink, children, }: NewsCardListProps) => react.JSX.Element) & {
971
- Pagination: ({ children }: NewsCardListPaginationProps) => react.JSX.Element;
971
+ declare const NewsCardList: (({ items, backgroundColor, className, currentPage, searchValue, onSearchChange, onSearchSubmit, searchInputProps, renderLink, children, }: NewsCardListProps) => react_jsx_runtime.JSX.Element) & {
972
+ Pagination: ({ children }: NewsCardListPaginationProps) => react_jsx_runtime.JSX.Element;
972
973
  };
973
974
 
974
975
  type BlogPostBodyProps = {
@@ -984,9 +985,9 @@ interface BlogPostProps extends PropsWithChildren, Omit<NewsCardProps, 'descript
984
985
  relatedArticles?: NewsCardProps[];
985
986
  }
986
987
 
987
- declare const BlogPost: (({ title, description: body, image, date, tag, relatedArticles, className, children, }: BlogPostProps) => react.JSX.Element) & {
988
- Title: ({ children }: BlogPostTitleProps) => react.JSX.Element;
989
- Body: ({ children }: BlogPostBodyProps) => react.JSX.Element;
988
+ declare const BlogPost: (({ title, description: body, image, date, tag, relatedArticles, className, children, }: BlogPostProps) => react_jsx_runtime.JSX.Element) & {
989
+ Title: ({ children }: BlogPostTitleProps) => react_jsx_runtime.JSX.Element;
990
+ Body: ({ children }: BlogPostBodyProps) => react_jsx_runtime.JSX.Element;
990
991
  };
991
992
 
992
993
  type BlogSearchResultsListPaginationProps = {
@@ -1010,9 +1011,9 @@ interface BlogSearchResultsListProps extends PropsWithChildren {
1010
1011
  }) => React.ReactNode;
1011
1012
  }
1012
1013
 
1013
- declare const BlogSearchResultsList: (({ items, searchResult, onSearchChange, onSearchSubmit, searchValue, searchInputProps, className, renderLink, children, }: BlogSearchResultsListProps) => react.JSX.Element) & {
1014
- Search: ({ children }: BlogSearchResultsListSearchProps) => react.JSX.Element;
1015
- Pagination: ({ children, }: BlogSearchResultsListPaginationProps) => react.JSX.Element;
1014
+ declare const BlogSearchResultsList: (({ items, searchResult, onSearchChange, onSearchSubmit, searchValue, searchInputProps, className, renderLink, children, }: BlogSearchResultsListProps) => react_jsx_runtime.JSX.Element) & {
1015
+ Search: ({ children }: BlogSearchResultsListSearchProps) => react_jsx_runtime.JSX.Element;
1016
+ Pagination: ({ children, }: BlogSearchResultsListPaginationProps) => react_jsx_runtime.JSX.Element;
1016
1017
  };
1017
1018
 
1018
1019
  type GlobalSearchResultsListPaginationProps = {
@@ -1032,9 +1033,9 @@ interface GlobalSearchResultsListProps extends PropsWithChildren {
1032
1033
  }) => React.ReactNode;
1033
1034
  }
1034
1035
 
1035
- declare const GlobalSearchResultsList: (({ items, searchResult, className, renderLink, children, }: GlobalSearchResultsListProps) => react.JSX.Element) & {
1036
- Search: ({ children }: GlobalSearchResultsListSearchProps) => react.JSX.Element;
1037
- Pagination: ({ children, }: GlobalSearchResultsListPaginationProps) => react.JSX.Element;
1036
+ declare const GlobalSearchResultsList: (({ items, searchResult, className, renderLink, children, }: GlobalSearchResultsListProps) => react_jsx_runtime.JSX.Element) & {
1037
+ Search: ({ children }: GlobalSearchResultsListSearchProps) => react_jsx_runtime.JSX.Element;
1038
+ Pagination: ({ children, }: GlobalSearchResultsListPaginationProps) => react_jsx_runtime.JSX.Element;
1038
1039
  };
1039
1040
 
1040
1041
  type TextCenterWithMediaTitleProps = {
@@ -1053,8 +1054,8 @@ interface TextCenterWithMediaProps {
1053
1054
  children?: ReactNode;
1054
1055
  }
1055
1056
 
1056
- declare const TextCenterWithMedia: (({ className, title, thumbnail, videoUrl, loop, mute, hideControl, autoPlay, children, }: TextCenterWithMediaProps) => react.JSX.Element) & {
1057
- Title: ({ children }: TextCenterWithMediaTitleProps) => react.JSX.Element;
1057
+ declare const TextCenterWithMedia: (({ className, title, thumbnail, videoUrl, loop, mute, hideControl, autoPlay, children, }: TextCenterWithMediaProps) => react_jsx_runtime.JSX.Element) & {
1058
+ Title: ({ children }: TextCenterWithMediaTitleProps) => react_jsx_runtime.JSX.Element;
1058
1059
  };
1059
1060
 
1060
1061
  interface QuoteSectionBlockItem {
@@ -1070,7 +1071,10 @@ interface QuoteSectionBlockProps {
1070
1071
  items?: QuoteSectionBlockItem[];
1071
1072
  }
1072
1073
 
1073
- declare const QuoteSectionBlock: ({ className, title, items }: QuoteSectionBlockProps) => react.JSX.Element | null;
1074
+ declare const QuoteSectionBlock: ({ className, title, items }: QuoteSectionBlockProps) => react_jsx_runtime.JSX.Element | null;
1075
+
1076
+ /** Tracks the current browser path, updating on back/forward navigation. */
1077
+ declare const useActivePath: () => string;
1074
1078
 
1075
1079
  type IntersectionObserverOptions = {
1076
1080
  threshold?: number | number[];
@@ -1097,4 +1101,4 @@ type SlotMap = Record<string, SlotComponent>;
1097
1101
  */
1098
1102
  declare function resolveCompoundSlots(children: ReactNode, slots: SlotMap): Record<string, ReactNode>;
1099
1103
 
1100
- 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, type UserMenuItem as InternalNavMenuItem, MiniBanner, type MiniBannerProps, MiniSectionCta, type MiniSectionCtaProps, type NavItem, Navigation, type NavigationBrandLogos, type NavigationProps, type UserMenuUser as NavigationUser, NewsCard, NewsCardList, type NewsCardListProps, type NewsCardProps, Pagination, type PaginationProps, Picture, type PictureProps, PracticeCard, type PracticeCardProps, PracticePathCards, type PracticePathCardsProps, QuoteSectionBlock, type QuoteSectionBlockProps, ResourceCardItem, type ResourceCardItemProps, type ResourceItem, type ResourceItemType, type ResourceView, ResourcesGridList, type ResourcesGridListProps, Search, type SearchProps, 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, UserMenu, type UserMenuItem, type UserMenuProps, type UserMenuUser, resolveCompoundSlots, svgs, useIntersectionObserver, useIsAtTop };
1104
+ 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, type UserMenuItem as InternalNavMenuItem, MiniBanner, type MiniBannerProps, MiniSectionCta, type MiniSectionCtaProps, type NavItem, Navigation, type NavigationBrandLogos, type NavigationProps, type UserMenuUser as NavigationUser, NewsCard, NewsCardList, type NewsCardListProps, type NewsCardProps, Pagination, type PaginationProps, Picture, type PictureProps, PracticeCard, type PracticeCardProps, PracticePathCards, type PracticePathCardsProps, QuoteSectionBlock, type QuoteSectionBlockProps, ResourceCardItem, type ResourceCardItemProps, type ResourceItem, type ResourceItemType, type ResourceView, ResourcesGridList, type ResourcesGridListProps, Search, type SearchProps, 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, UserMenu, type UserMenuItem, type UserMenuProps, type UserMenuUser, resolveCompoundSlots, svgs, useActivePath, useIntersectionObserver, useIsAtTop };
package/dist/index.mjs CHANGED
@@ -3288,6 +3288,29 @@ var NavigationBrandBars = ({
3288
3288
  }
3289
3289
  );
3290
3290
  };
3291
+ var getPathname = () => typeof window === "undefined" ? "" : window.location.pathname;
3292
+ var useActivePath = () => {
3293
+ const [pathname, setPathname] = useState(getPathname);
3294
+ useEffect(() => {
3295
+ const handlePopState = () => setPathname(getPathname());
3296
+ window.addEventListener("popstate", handlePopState);
3297
+ return () => window.removeEventListener("popstate", handlePopState);
3298
+ }, []);
3299
+ return pathname;
3300
+ };
3301
+
3302
+ // src/utils/isPathActive.ts
3303
+ var normalize = (path) => path.replace(/\/+$/, "") || "/";
3304
+ var isPathActive = (url, pathname) => {
3305
+ if (!url || !pathname) return false;
3306
+ let targetPath;
3307
+ try {
3308
+ targetPath = new URL(url, "http://localhost").pathname;
3309
+ } catch (e) {
3310
+ return false;
3311
+ }
3312
+ return normalize(targetPath) === normalize(pathname);
3313
+ };
3291
3314
  var NavigationDesktop = ({
3292
3315
  navItems,
3293
3316
  openIndex,
@@ -3296,6 +3319,7 @@ var NavigationDesktop = ({
3296
3319
  baseId,
3297
3320
  isTransparent = false
3298
3321
  }) => {
3322
+ const pathname = useActivePath();
3299
3323
  if (!(navItems == null ? void 0 : navItems.length)) return null;
3300
3324
  const handleTriggerKeyDown = (e, index) => {
3301
3325
  var _a;
@@ -3313,23 +3337,28 @@ var NavigationDesktop = ({
3313
3337
  }
3314
3338
  };
3315
3339
  return /* @__PURE__ */ jsx("ul", { className: Navigation_module_default.navTabs, children: navItems.map((item, index) => {
3316
- var _a, _b, _c, _d;
3340
+ var _a, _b, _c, _d, _e;
3317
3341
  const isOpen = openIndex === index;
3318
3342
  if (item.type === "link") {
3343
+ const isCurrent2 = item.isActive || isPathActive((_a = item.cta) == null ? void 0 : _a.url, pathname);
3319
3344
  return /* @__PURE__ */ jsx("li", { className: Navigation_module_default.navTab, children: /* @__PURE__ */ jsx(
3320
3345
  "a",
3321
3346
  {
3322
- href: (_a = item.cta) == null ? void 0 : _a.url,
3323
- className: clsx47(Navigation_module_default.navTabLink, item.isActive && Navigation_module_default.navTabActive),
3324
- "aria-current": item.isActive ? "page" : void 0,
3325
- target: ((_b = item.cta) == null ? void 0 : _b.isExternal) ? "_blank" : void 0,
3326
- rel: ((_c = item.cta) == null ? void 0 : _c.isExternal) ? "noopener noreferrer" : void 0,
3347
+ href: (_b = item.cta) == null ? void 0 : _b.url,
3348
+ className: clsx47(Navigation_module_default.navTabLink, isCurrent2 && Navigation_module_default.navTabActive),
3349
+ "aria-current": isCurrent2 ? "page" : void 0,
3350
+ target: ((_c = item.cta) == null ? void 0 : _c.isExternal) ? "_blank" : void 0,
3351
+ rel: ((_d = item.cta) == null ? void 0 : _d.isExternal) ? "noopener noreferrer" : void 0,
3327
3352
  onMouseEnter: () => onOpen(null),
3328
3353
  onFocus: () => onOpen(null),
3329
- children: /* @__PURE__ */ jsx("span", { children: (_d = item.cta) == null ? void 0 : _d.label })
3354
+ children: /* @__PURE__ */ jsx("span", { children: (_e = item.cta) == null ? void 0 : _e.label })
3330
3355
  }
3331
3356
  ) }, index);
3332
3357
  }
3358
+ const isCurrent = item.isActive || item.items.some((sub) => {
3359
+ var _a2;
3360
+ return sub.type === "link" && isPathActive((_a2 = sub.cta) == null ? void 0 : _a2.url, pathname);
3361
+ });
3333
3362
  return /* @__PURE__ */ jsx("li", { className: Navigation_module_default.navTab, children: /* @__PURE__ */ jsxs(
3334
3363
  "button",
3335
3364
  {
@@ -3338,7 +3367,7 @@ var NavigationDesktop = ({
3338
3367
  className: clsx47(
3339
3368
  Navigation_module_default.navTabLink,
3340
3369
  Navigation_module_default.navTabTrigger,
3341
- (item.isActive || isOpen) && Navigation_module_default.navTabActive,
3370
+ (isCurrent || isOpen) && Navigation_module_default.navTabActive,
3342
3371
  isOpen && Navigation_module_default.navTabTriggerOpen
3343
3372
  ),
3344
3373
  "aria-expanded": isOpen,
@@ -3817,8 +3846,8 @@ var Navigation2 = (props) => {
3817
3846
  ),
3818
3847
  "aria-label": "Main",
3819
3848
  onKeyDown: handleNavKeyDown,
3820
- onMouseEnter: isExternal ? () => setIsHovered(true) : void 0,
3821
- onMouseLeave: isExternal ? () => setIsHovered(false) : scheduleClose,
3849
+ onMouseEnter: isExternal && !isTabletBelow ? () => setIsHovered(true) : void 0,
3850
+ onMouseLeave: isExternal ? !isTabletBelow ? () => setIsHovered(false) : void 0 : scheduleClose,
3822
3851
  children: [
3823
3852
  /* @__PURE__ */ jsx("div", { className: Navigation_module_default.mainBar, children: /* @__PURE__ */ jsxs("div", { className: Navigation_module_default.inner, children: [
3824
3853
  /* @__PURE__ */ jsxs("div", { className: Navigation_module_default.topRow, children: [
@@ -5329,6 +5358,6 @@ function useIntersectionObserver({
5329
5358
  return { observeRef, isVisible };
5330
5359
  }
5331
5360
 
5332
- 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, QuoteSectionBlock, ResourceCardItem, ResourcesGridList, Search, Sidebar, Teaser5050With3Text2 as Teaser5050With3Text, Teaser5050WithCta2 as Teaser5050WithCta, TextBody2 as TextBody, TextCenterCtaInBottom2 as TextCenterCtaInBottom, TextCenterWithMedia2 as TextCenterWithMedia, TextEvent2 as TextEvent, UpcomingEventCard, UserMenu, resolveCompoundSlots, svgs, useIntersectionObserver, useIsAtTop };
5361
+ 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, QuoteSectionBlock, ResourceCardItem, ResourcesGridList, Search, Sidebar, Teaser5050With3Text2 as Teaser5050With3Text, Teaser5050WithCta2 as Teaser5050WithCta, TextBody2 as TextBody, TextCenterCtaInBottom2 as TextCenterCtaInBottom, TextCenterWithMedia2 as TextCenterWithMedia, TextEvent2 as TextEvent, UpcomingEventCard, UserMenu, resolveCompoundSlots, svgs, useActivePath, useIntersectionObserver, useIsAtTop };
5333
5362
  //# sourceMappingURL=index.mjs.map
5334
5363
  //# sourceMappingURL=index.mjs.map