@windstream/react-shared-components 0.2.35 → 0.2.36
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 +22 -11
- package/dist/contentful/index.esm.js +3 -3
- 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/index.d.ts +2 -2
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/contentful/blocks/dynamic-tabs/index.test.tsx +96 -8
- package/src/contentful/blocks/dynamic-tabs/index.tsx +110 -134
- package/src/contentful/blocks/dynamic-tabs/ordered-tab-views.tsx +239 -0
- package/src/contentful/blocks/dynamic-tabs/tab-views.tsx +147 -0
- package/src/contentful/blocks/dynamic-tabs/types.ts +11 -7
- package/src/contentful/blocks/ordered-list/index.tsx +100 -0
- package/src/contentful/blocks/ordered-list/types.ts +9 -0
- package/src/contentful/index.ts +2 -0
|
@@ -5,8 +5,8 @@ import { ResponsiveSize } from '@shared/components/brand-button/types';
|
|
|
5
5
|
import { Fill, Size } from '@shared/components/material-icon/types';
|
|
6
6
|
import { CheckPlansProps, Asset, Button as Button$1, ButtonGroup } from '@shared/types/micro-components';
|
|
7
7
|
import { VideoLinkProps } from '@shared/components/video-link';
|
|
8
|
-
import { ButtonProps as ButtonProps$1 } from '@shared/contentful/blocks/button/types';
|
|
9
8
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
9
|
+
import { ButtonProps as ButtonProps$1 } from '@shared/contentful/blocks/button/types';
|
|
10
10
|
import { BlogCardImageProps as BlogCardImageProps$1 } from '@shared/contentful/blocks/cards/blog-card/types';
|
|
11
11
|
import { Document } from '@contentful/rich-text-types';
|
|
12
12
|
import { Options } from '@contentful/rich-text-react-renderer';
|
|
@@ -472,6 +472,16 @@ type PrimaryHeroProps = {
|
|
|
472
472
|
|
|
473
473
|
declare const PrimaryHero: React__default.FC<PrimaryHeroProps>;
|
|
474
474
|
|
|
475
|
+
interface OrderedListProps {
|
|
476
|
+
anchorId?: string;
|
|
477
|
+
backgroundColor?: "white" | "cream";
|
|
478
|
+
title: ReactNode;
|
|
479
|
+
description: ReactNode;
|
|
480
|
+
tabs: any[];
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
declare const OrderedList: ({ anchorId, backgroundColor, title, description, tabs, }: OrderedListProps) => react_jsx_runtime.JSX.Element;
|
|
484
|
+
|
|
475
485
|
type TextProps = {};
|
|
476
486
|
|
|
477
487
|
declare const Text: React.FC<{
|
|
@@ -741,17 +751,18 @@ interface AddressInputBannerProps {
|
|
|
741
751
|
|
|
742
752
|
declare const AddressInputBanner: FC<AddressInputBannerProps>;
|
|
743
753
|
|
|
754
|
+
interface DynamicTabT {
|
|
755
|
+
tabName: string;
|
|
756
|
+
anchorId: string;
|
|
757
|
+
tabContent: ReactNode;
|
|
758
|
+
}
|
|
744
759
|
interface DynamicTabsT {
|
|
745
760
|
tabs?: {
|
|
746
|
-
items:
|
|
747
|
-
tabName: string;
|
|
748
|
-
anchorId: string;
|
|
749
|
-
tabContent: {
|
|
750
|
-
items: any[];
|
|
751
|
-
};
|
|
752
|
-
}[];
|
|
761
|
+
items: DynamicTabT[];
|
|
753
762
|
};
|
|
754
|
-
|
|
763
|
+
dynamic?: boolean;
|
|
764
|
+
/** When isOrderedList is true, each tab's `tabContent` is rendered as columns of children. */
|
|
765
|
+
isOrderedList?: boolean;
|
|
755
766
|
entryTitle?: string;
|
|
756
767
|
anchorId?: string;
|
|
757
768
|
title?: string;
|
|
@@ -909,5 +920,5 @@ interface ProcessedChecklistItem {
|
|
|
909
920
|
}
|
|
910
921
|
declare function useProcessedChecklist<T extends boolean = false>(checklistData?: any, titlesOnly?: T, richTextOptions?: Options, richTextClassName?: string): T extends true ? string[] : ProcessedChecklistItem[];
|
|
911
922
|
|
|
912
|
-
export { Accordion, AddressInputBanner, AnchoredBottomBanner, BlogCard, BlogGrid, BlogGridBase, BreadcrumbNavigation, Button, Callout, Cards, Carousel, CartRetentionBanner, ComparisonTable, CookieBanner, CtaCallout, DynamicTabs, EmailInputBlock, FindKinetic, FloatingBanner, Footer, IframeEmbed, ImagePromoBar, Modal, Navigation, PrimaryHero, ProductCard, SearchBlock, ShapeBackgroundWrapper, SimpleCard, TestimonialCard, Text, label1BoldOptions, renderContentfulRichText, renderContentfulRichTextTable, toDocument, useContentfulRichText, useProcessedChecklist };
|
|
913
|
-
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, IframeEmbedProps, ImagePromoBarProps, ModalProps, NavigationProps, PrimaryHeroProps, ProcessedChecklistItem, ProductCardProps, SearchBlockProps, ShapeBackgroundWrapperProps, SimpleCardProps, TestimonialCardProps, TextProps };
|
|
923
|
+
export { Accordion, AddressInputBanner, AnchoredBottomBanner, BlogCard, BlogGrid, BlogGridBase, BreadcrumbNavigation, Button, Callout, Cards, Carousel, CartRetentionBanner, ComparisonTable, CookieBanner, CtaCallout, DynamicTabs, EmailInputBlock, FindKinetic, FloatingBanner, Footer, IframeEmbed, ImagePromoBar, Modal, Navigation, OrderedList, PrimaryHero, ProductCard, SearchBlock, ShapeBackgroundWrapper, SimpleCard, TestimonialCard, Text, label1BoldOptions, renderContentfulRichText, renderContentfulRichTextTable, toDocument, useContentfulRichText, useProcessedChecklist };
|
|
924
|
+
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, IframeEmbedProps, ImagePromoBarProps, ModalProps, NavigationProps, OrderedListProps, PrimaryHeroProps, ProcessedChecklistItem, ProductCardProps, SearchBlockProps, ShapeBackgroundWrapperProps, SimpleCardProps, TestimonialCardProps, TextProps };
|