@windstream/react-shared-components 0.1.57 → 0.1.58
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 +37 -6
- package/dist/contentful/index.esm.js +1 -1
- package/dist/contentful/index.esm.js.map +1 -1
- package/dist/contentful/index.js +3 -3
- package/dist/contentful/index.js.map +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/next/index.js +2 -2
- package/dist/next/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/contentful/blocks/blogs-grid-base/index.tsx +114 -0
- package/src/contentful/blocks/blogs-grid-base/types.ts +29 -0
- package/src/contentful/blocks/breadcrumbs/index.tsx +14 -8
- package/src/contentful/blocks/breadcrumbs/types.ts +1 -0
- package/src/contentful/index.ts +3 -0
|
@@ -478,7 +478,7 @@ interface ProductCardProps {
|
|
|
478
478
|
|
|
479
479
|
declare const ProductCard: React__default.FC<ProductCardProps>;
|
|
480
480
|
|
|
481
|
-
interface BlogCardProps$
|
|
481
|
+
interface BlogCardProps$2 {
|
|
482
482
|
href: string;
|
|
483
483
|
title?: string;
|
|
484
484
|
description?: string;
|
|
@@ -497,9 +497,9 @@ interface BlogCardProps$1 {
|
|
|
497
497
|
index?: number;
|
|
498
498
|
}
|
|
499
499
|
|
|
500
|
-
declare const BlogCard: React__default.FC<BlogCardProps$
|
|
500
|
+
declare const BlogCard: React__default.FC<BlogCardProps$2>;
|
|
501
501
|
|
|
502
|
-
interface BlogCardProps {
|
|
502
|
+
interface BlogCardProps$1 {
|
|
503
503
|
slug: string;
|
|
504
504
|
title?: string;
|
|
505
505
|
shortDescription?: string;
|
|
@@ -513,24 +513,55 @@ interface BlogCardProps {
|
|
|
513
513
|
};
|
|
514
514
|
}
|
|
515
515
|
interface BlogGridProps {
|
|
516
|
+
paginatedArticles: BlogCardProps$1[];
|
|
517
|
+
totalArticles: number;
|
|
518
|
+
currentPage: number;
|
|
519
|
+
totalPages: number;
|
|
520
|
+
selectedCategory: BlogCategoryOption$1;
|
|
521
|
+
categoryOptions: BlogCategoryOption$1[];
|
|
522
|
+
}
|
|
523
|
+
interface BlogCategoryOption$1 {
|
|
524
|
+
value: string;
|
|
525
|
+
label: string;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
declare function BlogGrid({ paginatedArticles, totalArticles, currentPage, totalPages, selectedCategory, categoryOptions, }: BlogGridProps): react_jsx_runtime.JSX.Element;
|
|
529
|
+
|
|
530
|
+
interface BlogCardProps {
|
|
531
|
+
slug: string;
|
|
532
|
+
title?: string;
|
|
533
|
+
shortDescription?: string;
|
|
534
|
+
blogCreationDate?: string;
|
|
535
|
+
category?: string;
|
|
536
|
+
cover?: {
|
|
537
|
+
url: string;
|
|
538
|
+
width?: number;
|
|
539
|
+
height?: number;
|
|
540
|
+
title?: string;
|
|
541
|
+
};
|
|
542
|
+
}
|
|
543
|
+
interface BlogGridBaseProps {
|
|
516
544
|
paginatedArticles: BlogCardProps[];
|
|
517
545
|
totalArticles: number;
|
|
518
546
|
currentPage: number;
|
|
519
547
|
totalPages: number;
|
|
520
548
|
selectedCategory: BlogCategoryOption;
|
|
521
549
|
categoryOptions: BlogCategoryOption[];
|
|
550
|
+
onCategoryChange?: (category: BlogCategoryOption) => void;
|
|
551
|
+
onPageChange?: (page: number) => void;
|
|
522
552
|
}
|
|
523
553
|
interface BlogCategoryOption {
|
|
524
554
|
value: string;
|
|
525
555
|
label: string;
|
|
526
556
|
}
|
|
527
557
|
|
|
528
|
-
declare function
|
|
558
|
+
declare function BlogGridBase({ paginatedArticles, totalArticles, currentPage, totalPages, selectedCategory, categoryOptions, onCategoryChange, onPageChange, }: BlogGridBaseProps): react_jsx_runtime.JSX.Element;
|
|
529
559
|
|
|
530
560
|
type BreadcrumbNavigationProps = {
|
|
531
561
|
links?: Array<any>;
|
|
532
562
|
textColor?: "dark" | "light";
|
|
533
563
|
maxWidth?: boolean;
|
|
564
|
+
floatOnMobile?: boolean;
|
|
534
565
|
};
|
|
535
566
|
|
|
536
567
|
declare const BreadcrumbNavigation: React__default.FC<BreadcrumbNavigationProps>;
|
|
@@ -679,5 +710,5 @@ interface ProcessedChecklistItem {
|
|
|
679
710
|
}
|
|
680
711
|
declare function useProcessedChecklist<T extends boolean = false>(checklistData?: any, titlesOnly?: T, richTextOptions?: Options, richTextClassName?: string): T extends true ? string[] : ProcessedChecklistItem[];
|
|
681
712
|
|
|
682
|
-
export { Accordion, AddressInputBanner, AnchoredBottomBanner, BlogCard, BlogGrid, BreadcrumbNavigation, Button, Callout, Cards, Carousel, CartRetentionBanner, ComparisonTable, CookieBanner, CtaCallout, DynamicTabs, EmailInputBlock, FindKinetic, FloatingBanner, Footer, ImagePromoBar, Modal, Navigation, PrimaryHero, ProductCard, SearchBlock, ShapeBackgroundWrapper, SimpleCard, TestimonialCard, Text, label1BoldOptions, renderContentfulRichText, renderContentfulRichTextTable, toDocument, useContentfulRichText, useProcessedChecklist };
|
|
683
|
-
export type { AccordionProps, AddressInputBannerProps, AnchoredBottomBannerProps, BlogCardProps$
|
|
713
|
+
export { Accordion, AddressInputBanner, AnchoredBottomBanner, BlogCard, BlogGrid, BlogGridBase, BreadcrumbNavigation, Button, Callout, Cards, Carousel, CartRetentionBanner, ComparisonTable, CookieBanner, CtaCallout, DynamicTabs, EmailInputBlock, FindKinetic, FloatingBanner, Footer, ImagePromoBar, Modal, Navigation, PrimaryHero, ProductCard, SearchBlock, ShapeBackgroundWrapper, SimpleCard, TestimonialCard, Text, label1BoldOptions, renderContentfulRichText, renderContentfulRichTextTable, toDocument, useContentfulRichText, useProcessedChecklist };
|
|
714
|
+
export type { AccordionProps, AddressInputBannerProps, AnchoredBottomBannerProps, BlogCardProps$2 as BlogCardProps, BlogGridBaseProps, BlogGridProps, BreadcrumbNavigationProps, ButtonProps, CalloutProps, CardsProps, CarouselProps, TypeCartRetentionBannerFields as CartRetentionBannerProps, ComparisonTableProps, TypeComponentRichTextFields as CookieBannerProps, CtaCalloutProps, DynamicTabsT, EmailInputBlockProps, FindKineticProps, FloatingBannerProps, FooterProps, ImagePromoBarProps, ModalProps, NavigationProps, PrimaryHeroProps, ProcessedChecklistItem, ProductCardProps, SearchBlockProps, ShapeBackgroundWrapperProps, SimpleCardProps, TestimonialCardProps, TextProps };
|