@windstream/react-shared-components 0.2.2 → 0.2.4
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 +2 -3
- 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/core.d.ts +3 -3
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/components/pagination/index.test.tsx +117 -79
- package/src/components/pagination/index.tsx +41 -19
- package/src/components/pagination/types.ts +2 -1
- package/src/contentful/blocks/blogs-grid/index.tsx +24 -3
- package/src/contentful/blocks/blogs-grid-base/index.tsx +2 -0
- package/src/contentful/blocks/blogs-grid-base/types.ts +1 -0
- package/src/contentful/blocks/breadcrumbs/index.tsx +95 -95
- package/src/contentful/blocks/callout/index.tsx +1 -1
- package/src/contentful/blocks/cards/blog-card/index.test.tsx +4 -9
- package/src/contentful/blocks/cards/blog-card/index.tsx +1 -4
- package/src/contentful/blocks/cards/blog-card/types.ts +0 -2
- package/src/contentful/blocks/cards/floating-image-card/index.tsx +2 -2
- package/src/contentful/blocks/find-kinetic/index.tsx +147 -147
|
@@ -625,8 +625,6 @@ interface BlogCardProps$2 {
|
|
|
625
625
|
imageComponent?: React__default.ComponentType<BlogCardImageProps>;
|
|
626
626
|
readMoreText?: string;
|
|
627
627
|
asGrid?: boolean;
|
|
628
|
-
lgWidth?: string;
|
|
629
|
-
mdWidth?: string;
|
|
630
628
|
index?: number;
|
|
631
629
|
}
|
|
632
630
|
|
|
@@ -683,6 +681,7 @@ interface BlogGridBaseProps {
|
|
|
683
681
|
categoryOptions: BlogCategoryOption[];
|
|
684
682
|
onCategoryChange?: (category: BlogCategoryOption) => void;
|
|
685
683
|
onPageChange?: (page: number) => void;
|
|
684
|
+
getPageHref?: (page: number) => string;
|
|
686
685
|
/** Pass next/image's Image component here to enable image optimization */
|
|
687
686
|
imageComponent?: React__default.ComponentType<BlogCardImageProps$1>;
|
|
688
687
|
}
|
|
@@ -691,7 +690,7 @@ interface BlogCategoryOption {
|
|
|
691
690
|
label: string;
|
|
692
691
|
}
|
|
693
692
|
|
|
694
|
-
declare function BlogGridBase({ title, paginatedArticles, totalArticles, currentPage, totalPages, selectedCategory, categoryOptions, onCategoryChange, onPageChange, imageComponent, }: BlogGridBaseProps): react_jsx_runtime.JSX.Element;
|
|
693
|
+
declare function BlogGridBase({ title, paginatedArticles, totalArticles, currentPage, totalPages, selectedCategory, categoryOptions, onCategoryChange, onPageChange, getPageHref, imageComponent, }: BlogGridBaseProps): react_jsx_runtime.JSX.Element;
|
|
695
694
|
|
|
696
695
|
type BreadcrumbNavigationProps = {
|
|
697
696
|
links?: Array<any>;
|