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