@windstream/react-shared-components 0.2.31 → 0.2.33
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/contentful/index.d.ts +4 -1
- package/dist/contentful/index.esm.js +2 -2
- package/dist/contentful/index.esm.js.map +1 -1
- package/dist/contentful/index.js +2 -2
- package/dist/contentful/index.js.map +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/next/index.esm.js.map +1 -1
- package/dist/next/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/utils/index.esm.js +1 -1
- package/dist/utils/index.esm.js.map +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/src/contentful/blocks/blogs-grid-base/index.tsx +16 -3
- package/src/contentful/blocks/blogs-grid-base/types.ts +3 -0
- package/src/contentful/blocks/cards/blog-card/index.tsx +64 -53
- package/src/hooks/contentful/use-contentful-rich-text.tsx +6 -2
|
@@ -682,6 +682,7 @@ interface BlogCardProps {
|
|
|
682
682
|
}
|
|
683
683
|
interface BlogGridBaseProps {
|
|
684
684
|
title?: string;
|
|
685
|
+
description?: string;
|
|
685
686
|
paginatedArticles: BlogCardProps[];
|
|
686
687
|
totalArticles: number;
|
|
687
688
|
currentPage: number;
|
|
@@ -691,6 +692,8 @@ interface BlogGridBaseProps {
|
|
|
691
692
|
onCategoryChange?: (category: BlogCategoryOption) => void;
|
|
692
693
|
onPageChange?: (page: number) => void;
|
|
693
694
|
getPageHref?: (page: number) => string;
|
|
695
|
+
/** When true, render cards in a single-column list instead of a grid. */
|
|
696
|
+
asList?: boolean;
|
|
694
697
|
/** Pass next/image's Image component here to enable image optimization */
|
|
695
698
|
imageComponent?: React__default.ComponentType<BlogCardImageProps$1>;
|
|
696
699
|
}
|
|
@@ -699,7 +702,7 @@ interface BlogCategoryOption {
|
|
|
699
702
|
label: string;
|
|
700
703
|
}
|
|
701
704
|
|
|
702
|
-
declare function BlogGridBase({ title, paginatedArticles, totalArticles, currentPage, totalPages, selectedCategory, categoryOptions, onCategoryChange, onPageChange, getPageHref, imageComponent, }: BlogGridBaseProps): react_jsx_runtime.JSX.Element;
|
|
705
|
+
declare function BlogGridBase({ title, description, paginatedArticles, totalArticles, currentPage, totalPages, selectedCategory, categoryOptions, onCategoryChange, onPageChange, getPageHref, asList, imageComponent, }: BlogGridBaseProps): react_jsx_runtime.JSX.Element;
|
|
703
706
|
|
|
704
707
|
type BreadcrumbNavigationProps = {
|
|
705
708
|
links?: Array<any>;
|