@digital-b2c/coreui-kit 0.11.9 → 0.11.11

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.cts CHANGED
@@ -243,9 +243,13 @@ interface PaginationProps {
243
243
  hasNumber?: boolean;
244
244
  disableArrows?: boolean;
245
245
  onPageChange?: (page: number) => void;
246
+ renderLink?: (props: AnchorHTMLAttributes<HTMLAnchorElement> & {
247
+ page: number;
248
+ children: ReactNode;
249
+ }) => ReactNode;
246
250
  }
247
251
 
248
- declare const Pagination: ({ className, totalPages, currentPage, loop, hasNumber, disableArrows, onPageChange, }: PaginationProps) => react_jsx_runtime.JSX.Element;
252
+ declare const Pagination: ({ className, totalPages, currentPage, loop, hasNumber, disableArrows, onPageChange, renderLink, }: PaginationProps) => react_jsx_runtime.JSX.Element;
249
253
 
250
254
  declare const Picture: ({ className, ...props }: PictureProps) => react_jsx_runtime.JSX.Element;
251
255
 
@@ -372,6 +376,20 @@ interface NewsCardProps {
372
376
 
373
377
  declare const NewsCard: ({ className, image, date, description, tag, title, cta, direction, renderLink, }: NewsCardProps) => react_jsx_runtime.JSX.Element;
374
378
 
379
+ type BlogPostContentBodyProps = {
380
+ children: ReactNode;
381
+ };
382
+
383
+ interface BlogPostContentProps {
384
+ className?: string;
385
+ children?: ReactNode;
386
+ body?: ReactNode;
387
+ }
388
+
389
+ declare const BlogPostContent: (({ className, body, children }: BlogPostContentProps) => react_jsx_runtime.JSX.Element) & {
390
+ Body: ({ children }: BlogPostContentBodyProps) => react_jsx_runtime.JSX.Element;
391
+ };
392
+
375
393
  interface AnchorProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
376
394
  isExternal?: boolean;
377
395
  renderLink?: (props: AnchorHTMLAttributes<HTMLAnchorElement> & {
@@ -794,6 +812,10 @@ declare const FeaturedNewsHighlights: (({ variant, title, items, backgroundColor
794
812
  Title: ({ children }: FeaturedNewsHighlightsTitleProps) => react_jsx_runtime.JSX.Element;
795
813
  };
796
814
 
815
+ type NewsCardListPaginationProps = {
816
+ children: ReactNode;
817
+ };
818
+
797
819
  interface NewsCardListProps extends PropsWithChildren {
798
820
  className?: string;
799
821
  items: NewsCardProps[];
@@ -803,14 +825,14 @@ interface NewsCardListProps extends PropsWithChildren {
803
825
  onSearchSubmit?: (value: string) => void;
804
826
  searchInputProps?: InputProps;
805
827
  currentPage?: number;
806
- onPageChange?: (page: number) => void;
807
- totalPages?: number;
808
828
  renderLink?: (props: React.AnchorHTMLAttributes<HTMLAnchorElement> & {
809
829
  children: React.ReactNode;
810
830
  }) => React.ReactNode;
811
831
  }
812
832
 
813
- declare const NewsCardList: ({ items, backgroundColor, className, currentPage, totalPages, searchValue, onPageChange, onSearchChange, onSearchSubmit, searchInputProps, renderLink, }: NewsCardListProps) => react_jsx_runtime.JSX.Element;
833
+ declare const NewsCardList: (({ items, backgroundColor, className, currentPage, searchValue, onSearchChange, onSearchSubmit, searchInputProps, renderLink, children, }: NewsCardListProps) => react_jsx_runtime.JSX.Element) & {
834
+ Pagination: ({ children }: NewsCardListPaginationProps) => react_jsx_runtime.JSX.Element;
835
+ };
814
836
 
815
837
  type BlogPostBodyProps = {
816
838
  children: ReactNode;
@@ -830,6 +852,10 @@ declare const BlogPost: (({ title, description: body, image, date, tag, relatedA
830
852
  Body: ({ children }: BlogPostBodyProps) => react_jsx_runtime.JSX.Element;
831
853
  };
832
854
 
855
+ type BlogSearchResultsListPaginationProps = {
856
+ children: ReactNode;
857
+ };
858
+
833
859
  type BlogSearchResultsListSearchProps = {
834
860
  children: ReactNode;
835
861
  };
@@ -841,16 +867,14 @@ interface BlogSearchResultsListProps extends PropsWithChildren {
841
867
  searchValue: string;
842
868
  onSearchChange: (value: string) => void;
843
869
  onSearchSubmit: (value: string) => void;
844
- currentPage?: number;
845
- onPageChange?: (page: number) => void;
846
- totalPages?: number;
847
870
  renderLink?: (props: React.AnchorHTMLAttributes<HTMLAnchorElement> & {
848
871
  children: React.ReactNode;
849
872
  }) => React.ReactNode;
850
873
  }
851
874
 
852
- declare const BlogSearchResultsList: (({ items, searchResult, onSearchChange, onSearchSubmit, onPageChange, searchValue, currentPage, totalPages, className, renderLink, children, }: BlogSearchResultsListProps) => react_jsx_runtime.JSX.Element) & {
875
+ declare const BlogSearchResultsList: (({ items, searchResult, onSearchChange, onSearchSubmit, searchValue, className, renderLink, children, }: BlogSearchResultsListProps) => react_jsx_runtime.JSX.Element) & {
853
876
  Search: ({ children }: BlogSearchResultsListSearchProps) => react_jsx_runtime.JSX.Element;
877
+ Pagination: ({ children, }: BlogSearchResultsListPaginationProps) => react_jsx_runtime.JSX.Element;
854
878
  };
855
879
 
856
880
  type IntersectionObserverOptions = {
@@ -876,4 +900,4 @@ type SlotMap = Record<string, SlotComponent>;
876
900
  */
877
901
  declare function resolveCompoundSlots(children: ReactNode, slots: SlotMap): Record<string, ReactNode>;
878
902
 
879
- export { Anchor, type AnchorProps, Badge, type BadgeProps, BlogCardGrid, type BlogCardGridProps, BlogPost, 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, 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, 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, Teaser5050With3Text, type Teaser5050With3TextProps, Teaser5050WithCta, type Teaser5050WithCtaProps, TextBody, type TextBodyProps, TextCenterCtaInBottom, type TextCenterCtaInBottomProps, TextEvent, type TextEventProps, UpcomingEventCard, type UpcomingEventCardProps, resolveCompoundSlots, svgs, useIntersectionObserver };
903
+ 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, 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, 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, Teaser5050With3Text, type Teaser5050With3TextProps, Teaser5050WithCta, type Teaser5050WithCtaProps, TextBody, type TextBodyProps, TextCenterCtaInBottom, type TextCenterCtaInBottomProps, TextEvent, type TextEventProps, UpcomingEventCard, type UpcomingEventCardProps, resolveCompoundSlots, svgs, useIntersectionObserver };
package/dist/index.d.ts CHANGED
@@ -243,9 +243,13 @@ interface PaginationProps {
243
243
  hasNumber?: boolean;
244
244
  disableArrows?: boolean;
245
245
  onPageChange?: (page: number) => void;
246
+ renderLink?: (props: AnchorHTMLAttributes<HTMLAnchorElement> & {
247
+ page: number;
248
+ children: ReactNode;
249
+ }) => ReactNode;
246
250
  }
247
251
 
248
- declare const Pagination: ({ className, totalPages, currentPage, loop, hasNumber, disableArrows, onPageChange, }: PaginationProps) => react_jsx_runtime.JSX.Element;
252
+ declare const Pagination: ({ className, totalPages, currentPage, loop, hasNumber, disableArrows, onPageChange, renderLink, }: PaginationProps) => react_jsx_runtime.JSX.Element;
249
253
 
250
254
  declare const Picture: ({ className, ...props }: PictureProps) => react_jsx_runtime.JSX.Element;
251
255
 
@@ -372,6 +376,20 @@ interface NewsCardProps {
372
376
 
373
377
  declare const NewsCard: ({ className, image, date, description, tag, title, cta, direction, renderLink, }: NewsCardProps) => react_jsx_runtime.JSX.Element;
374
378
 
379
+ type BlogPostContentBodyProps = {
380
+ children: ReactNode;
381
+ };
382
+
383
+ interface BlogPostContentProps {
384
+ className?: string;
385
+ children?: ReactNode;
386
+ body?: ReactNode;
387
+ }
388
+
389
+ declare const BlogPostContent: (({ className, body, children }: BlogPostContentProps) => react_jsx_runtime.JSX.Element) & {
390
+ Body: ({ children }: BlogPostContentBodyProps) => react_jsx_runtime.JSX.Element;
391
+ };
392
+
375
393
  interface AnchorProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
376
394
  isExternal?: boolean;
377
395
  renderLink?: (props: AnchorHTMLAttributes<HTMLAnchorElement> & {
@@ -794,6 +812,10 @@ declare const FeaturedNewsHighlights: (({ variant, title, items, backgroundColor
794
812
  Title: ({ children }: FeaturedNewsHighlightsTitleProps) => react_jsx_runtime.JSX.Element;
795
813
  };
796
814
 
815
+ type NewsCardListPaginationProps = {
816
+ children: ReactNode;
817
+ };
818
+
797
819
  interface NewsCardListProps extends PropsWithChildren {
798
820
  className?: string;
799
821
  items: NewsCardProps[];
@@ -803,14 +825,14 @@ interface NewsCardListProps extends PropsWithChildren {
803
825
  onSearchSubmit?: (value: string) => void;
804
826
  searchInputProps?: InputProps;
805
827
  currentPage?: number;
806
- onPageChange?: (page: number) => void;
807
- totalPages?: number;
808
828
  renderLink?: (props: React.AnchorHTMLAttributes<HTMLAnchorElement> & {
809
829
  children: React.ReactNode;
810
830
  }) => React.ReactNode;
811
831
  }
812
832
 
813
- declare const NewsCardList: ({ items, backgroundColor, className, currentPage, totalPages, searchValue, onPageChange, onSearchChange, onSearchSubmit, searchInputProps, renderLink, }: NewsCardListProps) => react_jsx_runtime.JSX.Element;
833
+ declare const NewsCardList: (({ items, backgroundColor, className, currentPage, searchValue, onSearchChange, onSearchSubmit, searchInputProps, renderLink, children, }: NewsCardListProps) => react_jsx_runtime.JSX.Element) & {
834
+ Pagination: ({ children }: NewsCardListPaginationProps) => react_jsx_runtime.JSX.Element;
835
+ };
814
836
 
815
837
  type BlogPostBodyProps = {
816
838
  children: ReactNode;
@@ -830,6 +852,10 @@ declare const BlogPost: (({ title, description: body, image, date, tag, relatedA
830
852
  Body: ({ children }: BlogPostBodyProps) => react_jsx_runtime.JSX.Element;
831
853
  };
832
854
 
855
+ type BlogSearchResultsListPaginationProps = {
856
+ children: ReactNode;
857
+ };
858
+
833
859
  type BlogSearchResultsListSearchProps = {
834
860
  children: ReactNode;
835
861
  };
@@ -841,16 +867,14 @@ interface BlogSearchResultsListProps extends PropsWithChildren {
841
867
  searchValue: string;
842
868
  onSearchChange: (value: string) => void;
843
869
  onSearchSubmit: (value: string) => void;
844
- currentPage?: number;
845
- onPageChange?: (page: number) => void;
846
- totalPages?: number;
847
870
  renderLink?: (props: React.AnchorHTMLAttributes<HTMLAnchorElement> & {
848
871
  children: React.ReactNode;
849
872
  }) => React.ReactNode;
850
873
  }
851
874
 
852
- declare const BlogSearchResultsList: (({ items, searchResult, onSearchChange, onSearchSubmit, onPageChange, searchValue, currentPage, totalPages, className, renderLink, children, }: BlogSearchResultsListProps) => react_jsx_runtime.JSX.Element) & {
875
+ declare const BlogSearchResultsList: (({ items, searchResult, onSearchChange, onSearchSubmit, searchValue, className, renderLink, children, }: BlogSearchResultsListProps) => react_jsx_runtime.JSX.Element) & {
853
876
  Search: ({ children }: BlogSearchResultsListSearchProps) => react_jsx_runtime.JSX.Element;
877
+ Pagination: ({ children, }: BlogSearchResultsListPaginationProps) => react_jsx_runtime.JSX.Element;
854
878
  };
855
879
 
856
880
  type IntersectionObserverOptions = {
@@ -876,4 +900,4 @@ type SlotMap = Record<string, SlotComponent>;
876
900
  */
877
901
  declare function resolveCompoundSlots(children: ReactNode, slots: SlotMap): Record<string, ReactNode>;
878
902
 
879
- export { Anchor, type AnchorProps, Badge, type BadgeProps, BlogCardGrid, type BlogCardGridProps, BlogPost, 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, 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, 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, Teaser5050With3Text, type Teaser5050With3TextProps, Teaser5050WithCta, type Teaser5050WithCtaProps, TextBody, type TextBodyProps, TextCenterCtaInBottom, type TextCenterCtaInBottomProps, TextEvent, type TextEventProps, UpcomingEventCard, type UpcomingEventCardProps, resolveCompoundSlots, svgs, useIntersectionObserver };
903
+ 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, 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, 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, Teaser5050With3Text, type Teaser5050With3TextProps, Teaser5050WithCta, type Teaser5050WithCtaProps, TextBody, type TextBodyProps, TextCenterCtaInBottom, type TextCenterCtaInBottomProps, TextEvent, type TextEventProps, UpcomingEventCard, type UpcomingEventCardProps, resolveCompoundSlots, svgs, useIntersectionObserver };
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import clsx15 from 'clsx';
2
2
  import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
3
- import React64, { forwardRef, useId, useRef, useState, useCallback, useMemo, Children, isValidElement, useEffect } from 'react';
3
+ import React65, { forwardRef, useId, useRef, useState, useCallback, useMemo, Children, isValidElement, useEffect, 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';
@@ -374,7 +374,7 @@ var svgs = {
374
374
  xBlack: icon_x_black_default,
375
375
  xWhite: icon_x_white_default
376
376
  };
377
- var Icon = React64.memo(
377
+ var Icon = React65.memo(
378
378
  (_a) => {
379
379
  var _b = _a, { type, size } = _b, props = __objRest(_b, ["type", "size"]);
380
380
  if (type) {
@@ -1129,7 +1129,8 @@ var Pagination = ({
1129
1129
  loop = true,
1130
1130
  hasNumber = false,
1131
1131
  disableArrows = false,
1132
- onPageChange
1132
+ onPageChange,
1133
+ renderLink
1133
1134
  }) => {
1134
1135
  const [activePage, setActivePage] = useState(currentPage);
1135
1136
  const goToPage = (page) => {
@@ -1161,8 +1162,15 @@ var Pagination = ({
1161
1162
  setActivePage(page);
1162
1163
  onPageChange == null ? void 0 : onPageChange(page);
1163
1164
  };
1165
+ const prevPage = activePage === 1 ? loop ? totalPages : 1 : activePage - 1;
1166
+ const nextPage = activePage === totalPages ? loop ? 1 : totalPages : activePage + 1;
1164
1167
  return /* @__PURE__ */ jsxs("div", { className: clsx15(Pagination_module_default.pagination, className), children: [
1165
- !disableArrows && /* @__PURE__ */ jsx(
1168
+ !disableArrows && (renderLink ? renderLink({
1169
+ page: prevPage,
1170
+ className: Pagination_module_default.prev,
1171
+ "aria-label": "Go to previous page",
1172
+ children: /* @__PURE__ */ jsx(Icon, { type: "filledChevronLeft" })
1173
+ }) : /* @__PURE__ */ jsx(
1166
1174
  "button",
1167
1175
  {
1168
1176
  className: Pagination_module_default.prev,
@@ -1171,24 +1179,35 @@ var Pagination = ({
1171
1179
  "aria-label": "Go to previous page",
1172
1180
  children: /* @__PURE__ */ jsx(Icon, { type: "filledChevronLeft" })
1173
1181
  }
1174
- ),
1182
+ )),
1175
1183
  /* @__PURE__ */ jsx("div", { className: Pagination_module_default.pages, children: Array.from({ length: totalPages }, (_, i) => {
1176
1184
  const page = i + 1;
1177
- return /* @__PURE__ */ jsx(
1185
+ const pageClassName = clsx15(Pagination_module_default.page, {
1186
+ [Pagination_module_default.active]: activePage === page,
1187
+ [Pagination_module_default.number]: hasNumber
1188
+ });
1189
+ return renderLink ? /* @__PURE__ */ jsx(Fragment$1, { children: renderLink({
1190
+ page,
1191
+ className: pageClassName,
1192
+ "aria-label": `Go to page ${page}`,
1193
+ children: hasNumber ? page : null
1194
+ }) }, page) : /* @__PURE__ */ jsx(
1178
1195
  "button",
1179
1196
  {
1180
1197
  onClick: () => goToPage(page),
1181
- className: clsx15(Pagination_module_default.page, {
1182
- [Pagination_module_default.active]: activePage === page,
1183
- [Pagination_module_default.number]: hasNumber
1184
- }),
1198
+ className: pageClassName,
1185
1199
  "aria-label": `Go to page ${page}`,
1186
1200
  children: hasNumber ? page : null
1187
1201
  },
1188
1202
  page
1189
1203
  );
1190
1204
  }) }),
1191
- !disableArrows && /* @__PURE__ */ jsx(
1205
+ !disableArrows && (renderLink ? renderLink({
1206
+ page: nextPage,
1207
+ className: Pagination_module_default.next,
1208
+ "aria-label": "Go to next page",
1209
+ children: /* @__PURE__ */ jsx(Icon, { type: "filledChevronRight" })
1210
+ }) : /* @__PURE__ */ jsx(
1192
1211
  "button",
1193
1212
  {
1194
1213
  className: Pagination_module_default.next,
@@ -1197,7 +1216,7 @@ var Pagination = ({
1197
1216
  "aria-label": "Go to next page",
1198
1217
  children: /* @__PURE__ */ jsx(Icon, { type: "filledChevronRight" })
1199
1218
  }
1200
- )
1219
+ ))
1201
1220
  ] });
1202
1221
  };
1203
1222
 
@@ -1706,6 +1725,27 @@ var NewsCard = ({
1706
1725
  }
1707
1726
  );
1708
1727
  };
1728
+
1729
+ // src/components/BlogPostContent/BlogPostContent.module.scss
1730
+ var BlogPostContent_module_default = {
1731
+ "blog-post-content": "BlogPostContent_module_blog-post-content"
1732
+ };
1733
+ var BlogPostContentBody = ({ children }) => {
1734
+ return /* @__PURE__ */ jsx(Fragment, { children });
1735
+ };
1736
+ var BlogPostContent = ({ className, body, children }) => {
1737
+ var _a;
1738
+ const slots = resolveCompoundSlots(children, {
1739
+ body: BlogPostContentBody
1740
+ });
1741
+ const bodyNode = (_a = slots.body) != null ? _a : body;
1742
+ return /* @__PURE__ */ jsx("div", { className: clsx15("blog-post-content", BlogPostContent_module_default["blog-post-content"], className), children: bodyNode });
1743
+ };
1744
+
1745
+ // src/components/BlogPostContent/index.ts
1746
+ var BlogPostContent2 = Object.assign(BlogPostContent, {
1747
+ Body: BlogPostContentBody
1748
+ });
1709
1749
  var CardCollectionTitle = ({ children }) => {
1710
1750
  return /* @__PURE__ */ jsx(Fragment, { children });
1711
1751
  };
@@ -3620,21 +3660,27 @@ var NewsCardList_module_default = {
3620
3660
  "end-action-button": "NewsCardList_module_end-action-button",
3621
3661
  pagination: "NewsCardList_module_pagination"
3622
3662
  };
3663
+ var NewsCardListPagination = ({ children }) => {
3664
+ return /* @__PURE__ */ jsx(Fragment, { children });
3665
+ };
3623
3666
  var NewsCardList = ({
3624
3667
  items,
3625
3668
  backgroundColor,
3626
3669
  className,
3627
3670
  currentPage,
3628
- totalPages = 0,
3629
3671
  searchValue,
3630
- onPageChange,
3631
3672
  onSearchChange,
3632
3673
  onSearchSubmit,
3633
3674
  searchInputProps,
3634
- renderLink
3675
+ renderLink,
3676
+ children
3635
3677
  }) => {
3636
3678
  const featuredCards = items.slice(0, 4);
3637
3679
  const cards = currentPage !== 1 ? items : items.slice(4);
3680
+ const slots = resolveCompoundSlots(children, {
3681
+ pagination: NewsCardListPagination
3682
+ });
3683
+ const paginationNode = slots.pagination;
3638
3684
  return /* @__PURE__ */ jsx(
3639
3685
  "div",
3640
3686
  {
@@ -3679,21 +3725,19 @@ var NewsCardList = ({
3679
3725
  /* @__PURE__ */ jsx(BlogCardGrid2, { items: cards, hasContainer: false, renderLink })
3680
3726
  ] })
3681
3727
  ] }),
3682
- totalPages ? /* @__PURE__ */ jsx(
3683
- Pagination,
3684
- {
3685
- currentPage: currentPage || 1,
3686
- totalPages: totalPages || 0,
3687
- onPageChange,
3688
- className: clsx15("pagination", NewsCardList_module_default["pagination"]),
3689
- hasNumber: true
3690
- }
3691
- ) : null
3728
+ paginationNode ? React65.cloneElement(paginationNode, {
3729
+ className: clsx15("pagination", NewsCardList_module_default["pagination"])
3730
+ }) : null
3692
3731
  ] })
3693
3732
  }
3694
3733
  );
3695
3734
  };
3696
3735
 
3736
+ // src/widgets/NewsCardList/index.ts
3737
+ var NewsCardList2 = Object.assign(NewsCardList, {
3738
+ Pagination: NewsCardListPagination
3739
+ });
3740
+
3697
3741
  // src/widgets/BlogPost/BlogPost.module.scss
3698
3742
  var BlogPost_module_default = {
3699
3743
  "blog-post": "BlogPost_module_blog-post",
@@ -3740,7 +3784,7 @@ var BlogPost = ({
3740
3784
  /* @__PURE__ */ jsx("time", { dateTime: date.value, children: date.label })
3741
3785
  ] })
3742
3786
  ] }),
3743
- bodyNode
3787
+ /* @__PURE__ */ jsx(BlogPostContent2, { children: /* @__PURE__ */ jsx(BlogPostContent2.Body, { children: bodyNode }) })
3744
3788
  ] }),
3745
3789
  relatedArticles && relatedArticles.length > 0 && /* @__PURE__ */ jsx(
3746
3790
  BlogCardGrid2,
@@ -3773,26 +3817,30 @@ var BlogSearchResultsList_module_default = {
3773
3817
  "end-action-button": "BlogSearchResultsList_module_end-action-button",
3774
3818
  pagination: "BlogSearchResultsList_module_pagination"
3775
3819
  };
3820
+ var BlogSearchResultsListPagination = ({
3821
+ children
3822
+ }) => {
3823
+ return /* @__PURE__ */ jsx(Fragment, { children });
3824
+ };
3776
3825
  var BlogSearchResultsList = ({
3777
3826
  items,
3778
3827
  searchResult,
3779
3828
  onSearchChange,
3780
3829
  onSearchSubmit,
3781
- onPageChange,
3782
3830
  searchValue,
3783
- currentPage,
3784
- totalPages = 0,
3785
3831
  className,
3786
3832
  renderLink,
3787
3833
  children
3788
3834
  }) => {
3789
3835
  var _a;
3790
3836
  const slots = resolveCompoundSlots(children, {
3791
- search: BlogSearchResultsListSearch
3837
+ search: BlogSearchResultsListSearch,
3838
+ pagination: BlogSearchResultsListPagination
3792
3839
  });
3793
3840
  const searchNode = (_a = slots.search) != null ? _a : searchResult;
3841
+ const paginationNode = slots.pagination;
3794
3842
  return /* @__PURE__ */ jsx("div", { className: clsx15("search-results-list", BlogSearchResultsList_module_default["search-results-list"], className), children: /* @__PURE__ */ jsxs(Container, { className: clsx15("container", BlogSearchResultsList_module_default["container"]), children: [
3795
- typeof searchNode === "string" ? /* @__PURE__ */ jsx("span", { className: clsx15("search-result", BlogSearchResultsList_module_default["search-result"]), children: searchNode }) : React64.isValidElement(searchNode) ? React64.cloneElement(searchNode, {
3843
+ typeof searchNode === "string" ? /* @__PURE__ */ jsx("span", { className: clsx15("search-result", BlogSearchResultsList_module_default["search-result"]), children: searchNode }) : React65.isValidElement(searchNode) ? React65.cloneElement(searchNode, {
3796
3844
  className: clsx15("search-result", BlogSearchResultsList_module_default["search-result"])
3797
3845
  }) : null,
3798
3846
  /* @__PURE__ */ jsxs("div", { className: clsx15("wrapper", BlogSearchResultsList_module_default["wrapper"]), children: [
@@ -3820,22 +3868,16 @@ var BlogSearchResultsList = ({
3820
3868
  ),
3821
3869
  /* @__PURE__ */ jsx(BlogCardGrid2, { items, hasContainer: false, renderLink })
3822
3870
  ] }),
3823
- totalPages ? /* @__PURE__ */ jsx(
3824
- Pagination,
3825
- {
3826
- currentPage: currentPage || 1,
3827
- totalPages: totalPages || 0,
3828
- onPageChange,
3829
- className: clsx15("pagination", BlogSearchResultsList_module_default["pagination"]),
3830
- hasNumber: true
3831
- }
3832
- ) : null
3871
+ paginationNode ? React65.cloneElement(paginationNode, {
3872
+ className: clsx15("pagination", BlogSearchResultsList_module_default["pagination"])
3873
+ }) : null
3833
3874
  ] }) });
3834
3875
  };
3835
3876
 
3836
3877
  // src/widgets/BlogSearchResultsList/index.ts
3837
3878
  var BlogSearchResultsList2 = Object.assign(BlogSearchResultsList, {
3838
- Search: BlogSearchResultsListSearch
3879
+ Search: BlogSearchResultsListSearch,
3880
+ Pagination: BlogSearchResultsListPagination
3839
3881
  });
3840
3882
  function useIntersectionObserver({
3841
3883
  animateOnce = false,
@@ -3866,6 +3908,6 @@ function useIntersectionObserver({
3866
3908
  return { observeRef, isVisible };
3867
3909
  }
3868
3910
 
3869
- export { Anchor, Badge, BlogCardGrid2 as BlogCardGrid, BlogPost2 as BlogPost, 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, HeroBanner2 as HeroBanner, HeroBannerCarousel, Icon, InfoCard2 as InfoCard, Input, InternalBrandsTab2 as InternalBrandsTab, MiniBanner2 as MiniBanner, MiniSectionCta2 as MiniSectionCta, NewsCard, 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 };
3911
+ 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, HeroBanner2 as HeroBanner, HeroBannerCarousel, Icon, InfoCard2 as InfoCard, Input, InternalBrandsTab2 as InternalBrandsTab, MiniBanner2 as MiniBanner, MiniSectionCta2 as MiniSectionCta, 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 };
3870
3912
  //# sourceMappingURL=index.mjs.map
3871
3913
  //# sourceMappingURL=index.mjs.map