@digital-b2c/coreui-kit 0.11.1 → 0.11.2

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
@@ -834,12 +834,15 @@ interface BlogSearchResultsListProps extends PropsWithChildren {
834
834
  searchValue: string;
835
835
  onSearchChange: (value: string) => void;
836
836
  onSearchSubmit: (value: string) => void;
837
+ currentPage?: number;
838
+ onPageChange?: (page: number) => void;
839
+ totalPages?: number;
837
840
  renderLink?: (props: React.AnchorHTMLAttributes<HTMLAnchorElement> & {
838
841
  children: React.ReactNode;
839
842
  }) => React.ReactNode;
840
843
  }
841
844
 
842
- declare const BlogSearchResultsList: (({ items, searchResult, onSearchChange, onSearchSubmit, searchValue, className, renderLink, children, }: BlogSearchResultsListProps) => react_jsx_runtime.JSX.Element) & {
845
+ declare const BlogSearchResultsList: (({ items, searchResult, onSearchChange, onSearchSubmit, onPageChange, searchValue, currentPage, totalPages, className, renderLink, children, }: BlogSearchResultsListProps) => react_jsx_runtime.JSX.Element) & {
843
846
  Search: ({ children }: BlogSearchResultsListSearchProps) => react_jsx_runtime.JSX.Element;
844
847
  };
845
848
 
package/dist/index.d.ts CHANGED
@@ -834,12 +834,15 @@ interface BlogSearchResultsListProps extends PropsWithChildren {
834
834
  searchValue: string;
835
835
  onSearchChange: (value: string) => void;
836
836
  onSearchSubmit: (value: string) => void;
837
+ currentPage?: number;
838
+ onPageChange?: (page: number) => void;
839
+ totalPages?: number;
837
840
  renderLink?: (props: React.AnchorHTMLAttributes<HTMLAnchorElement> & {
838
841
  children: React.ReactNode;
839
842
  }) => React.ReactNode;
840
843
  }
841
844
 
842
- declare const BlogSearchResultsList: (({ items, searchResult, onSearchChange, onSearchSubmit, searchValue, className, renderLink, children, }: BlogSearchResultsListProps) => react_jsx_runtime.JSX.Element) & {
845
+ declare const BlogSearchResultsList: (({ items, searchResult, onSearchChange, onSearchSubmit, onPageChange, searchValue, currentPage, totalPages, className, renderLink, children, }: BlogSearchResultsListProps) => react_jsx_runtime.JSX.Element) & {
843
846
  Search: ({ children }: BlogSearchResultsListSearchProps) => react_jsx_runtime.JSX.Element;
844
847
  };
845
848
 
package/dist/index.mjs CHANGED
@@ -3743,14 +3743,18 @@ var BlogSearchResultsList_module_default = {
3743
3743
  "search-result": "BlogSearchResultsList_module_search-result",
3744
3744
  wrapper: "BlogSearchResultsList_module_wrapper",
3745
3745
  "search-input": "BlogSearchResultsList_module_search-input",
3746
- "end-action-button": "BlogSearchResultsList_module_end-action-button"
3746
+ "end-action-button": "BlogSearchResultsList_module_end-action-button",
3747
+ pagination: "BlogSearchResultsList_module_pagination"
3747
3748
  };
3748
3749
  var BlogSearchResultsList = ({
3749
3750
  items,
3750
3751
  searchResult,
3751
3752
  onSearchChange,
3752
3753
  onSearchSubmit,
3754
+ onPageChange,
3753
3755
  searchValue,
3756
+ currentPage,
3757
+ totalPages = 0,
3754
3758
  className,
3755
3759
  renderLink,
3756
3760
  children
@@ -3788,7 +3792,17 @@ var BlogSearchResultsList = ({
3788
3792
  }
3789
3793
  ),
3790
3794
  /* @__PURE__ */ jsx(BlogCardGrid2, { items, hasContainer: false, renderLink })
3791
- ] })
3795
+ ] }),
3796
+ totalPages ? /* @__PURE__ */ jsx(
3797
+ Pagination,
3798
+ {
3799
+ currentPage: currentPage || 1,
3800
+ totalPages: totalPages || 0,
3801
+ onPageChange,
3802
+ className: clsx15("pagination", BlogSearchResultsList_module_default["pagination"]),
3803
+ hasNumber: true
3804
+ }
3805
+ ) : null
3792
3806
  ] }) });
3793
3807
  };
3794
3808