@arc-ui/community-components 3.1.0 → 3.2.0
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/.turbo/turbo-build.log +12 -12
- package/CHANGELOG.md +12 -0
- package/lib/Accordion/Accordion.cjs +1 -1
- package/lib/Accordion/Accordion.mjs +1 -1
- package/lib/CopyLead/CopyLead.cjs +1 -1
- package/lib/CopyLead/CopyLead.mjs +1 -1
- package/lib/FAQs/FAQs.cjs +11 -7
- package/lib/FAQs/FAQs.mjs +11 -7
- package/lib/FeaturePost/FeaturePost.cjs +13 -6
- package/lib/FeaturePost/FeaturePost.mjs +13 -6
- package/lib/ProductNavigation/ProductNavigation.cjs +1 -1
- package/lib/ProductNavigation/ProductNavigation.mjs +1 -1
- package/lib/PromoListing/PromoListing.cjs +1 -1
- package/lib/PromoListing/PromoListing.mjs +1 -1
- package/lib/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.cjs +28 -0
- package/lib/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.mjs +26 -0
- package/lib/PromoListingThumbnailSignpost/styles.css +1 -0
- package/lib/Summary/Summary.cjs +1 -1
- package/lib/Summary/Summary.mjs +1 -1
- package/lib/ThumbnailSignpost/ThumbnailSignpost.cjs +15 -0
- package/lib/ThumbnailSignpost/ThumbnailSignpost.mjs +9 -0
- package/lib/ThumbnailSignpost/styles.css +1 -0
- package/lib/_shared/cjs/{Accordion-BCJIm1Gq.cjs → Accordion-DfNGOjTm.cjs} +1 -1
- package/lib/_shared/cjs/ThumbnailSignpost-GkOiwt-Z.cjs +39 -0
- package/lib/_shared/cjs/{index.es-DzI6hGjj.cjs → index.es-Dq8bYrbW.cjs} +1 -1
- package/lib/_shared/esm/{Accordion-BN_lZk6L.mjs → Accordion-cd1oYvBv.mjs} +1 -1
- package/lib/_shared/esm/ThumbnailSignpost-BeRiXbUp.mjs +37 -0
- package/lib/_shared/esm/{index.es-B6Bolkcx.mjs → index.es-Bfdys5__.mjs} +1 -1
- package/lib/index.cjs +169 -116
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +38 -3
- package/lib/index.d.mts +38 -3
- package/lib/index.mjs +168 -117
- package/lib/index.mjs.map +1 -1
- package/lib/styles.css +1 -1
- package/package.json +14 -14
- package/src/components/Accordion/components/AccordionDisclosureList/AccordionDisclosureList.tsx +1 -1
- package/src/components/FAQs/FAQs.tsx +13 -6
- package/src/components/FeaturePost/FeaturePost.tsx +6 -2
- package/src/components/FeaturePost/components/Image/Image.tsx +31 -7
- package/src/components/FeaturePost/types/feature-post-image.ts +2 -0
- package/src/components/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.module.css +54 -0
- package/src/components/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.tsx +53 -0
- package/src/components/PromoListingThumbnailSignpost/index.ts +4 -0
- package/src/components/ThumbnailSignpost/ThumbnailSignpost.module.css +112 -0
- package/src/components/ThumbnailSignpost/ThumbnailSignpost.tsx +100 -0
- package/src/components/ThumbnailSignpost/index.ts +4 -0
- package/src/components/index.ts +2 -0
- package/versions.json +1 -1
package/lib/index.d.cts
CHANGED
|
@@ -198,6 +198,8 @@ interface FeaturePostCtaFooter {
|
|
|
198
198
|
|
|
199
199
|
interface FeaturePostImage extends Pick<ImageProps, "src" | "alt" | "loading" | "sizes" | "srcSet" | "width" | "height" | "fadeOnLoad"> {
|
|
200
200
|
sources?: Pick<ImageSourceProps, "media" | "sizes" | "srcSet">[];
|
|
201
|
+
title?: string;
|
|
202
|
+
description?: string;
|
|
201
203
|
}
|
|
202
204
|
|
|
203
205
|
/**
|
|
@@ -224,7 +226,7 @@ interface FeaturePostProps {
|
|
|
224
226
|
/**
|
|
225
227
|
* Text content for `FeaturePost`.
|
|
226
228
|
*/
|
|
227
|
-
content:
|
|
229
|
+
content: ReactNode;
|
|
228
230
|
/**
|
|
229
231
|
* Reverse the columns so the image / video appears on the left. Doesn't affect mobile layouts, and is only applied if there is a video or an image.
|
|
230
232
|
*/
|
|
@@ -653,5 +655,38 @@ interface LinkTileProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
653
655
|
showIcon?: boolean;
|
|
654
656
|
}
|
|
655
657
|
|
|
656
|
-
|
|
657
|
-
|
|
658
|
+
/** Use `ThumbnailSignpost` to highlight key information or navigation points with an accompanying thumbnail image or icon. */
|
|
659
|
+
declare const ThumbnailSignpost: ({ text, title, img, onClick, buttonLabel, ...props }: ThumbnailSignpostProps) => JSX.Element;
|
|
660
|
+
interface ThumbnailSignpostProps {
|
|
661
|
+
/**
|
|
662
|
+
* Title for the ThumbnailSignpost.
|
|
663
|
+
*/
|
|
664
|
+
title: string;
|
|
665
|
+
/**
|
|
666
|
+
* Text content for the ThumbnailSignpost.
|
|
667
|
+
*/
|
|
668
|
+
text: string;
|
|
669
|
+
/**
|
|
670
|
+
* Label for the button in the ThumbnailSignpost.
|
|
671
|
+
*/
|
|
672
|
+
buttonLabel?: string;
|
|
673
|
+
/**
|
|
674
|
+
* Image properties for the ThumbnailSignpost.
|
|
675
|
+
*/
|
|
676
|
+
img?: Pick<ImageProps, "src" | "alt" | "loading" | "sizes" | "srcSet" | "anchor" | "fadeOnLoad" | "fetchPriority">;
|
|
677
|
+
/**
|
|
678
|
+
* Optional click handler for the ThumbnailSignpost.
|
|
679
|
+
*/
|
|
680
|
+
onClick?: () => void;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
/**
|
|
684
|
+
* Use `PromoListingThumbnailSignpost` to give supporting information about a page or proposition in the form of the ThumbnailSignposts components.
|
|
685
|
+
*/
|
|
686
|
+
declare const PromoListingThumbnailSignpost: React$1.FC<PromoListingThumbnailSignpostProps>;
|
|
687
|
+
interface PromoListingThumbnailSignpostProps extends SectionHeadingProps {
|
|
688
|
+
thumbnailList: ThumbnailSignpostProps[];
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
export { Accordion, ActionTile, ArticleSidebar, Author, BannerWithTabs, ContentInfoWidget, CopyLead, DownloadList, FAQs, FeaturePost, HeroLink, Highlights, LinkTile, ProductNavigation, PromoListing, PromoListingThumbnailSignpost, Quote, SectionHeading, Statistics, Summary, ThumbnailSignpost };
|
|
692
|
+
export type { AccordionProps, ActionTileProps, ArticleSidebarProps, AuthorProps, BannerWithTabsProps, ContentInfoWidgetProps, CopyLeadProps, DownloadListProps, FAQsProps, FeaturePostProps, HeroLinkProps, HighlightsProps, LinkTileProps, ListProps, ProductNavigationProps, PromoListingProps, PromoListingThumbnailSignpostProps, QuoteProps, SectionHeadingProps, StatisticsProps, SummaryProps, ThumbnailSignpostProps };
|
package/lib/index.d.mts
CHANGED
|
@@ -198,6 +198,8 @@ interface FeaturePostCtaFooter {
|
|
|
198
198
|
|
|
199
199
|
interface FeaturePostImage extends Pick<ImageProps, "src" | "alt" | "loading" | "sizes" | "srcSet" | "width" | "height" | "fadeOnLoad"> {
|
|
200
200
|
sources?: Pick<ImageSourceProps, "media" | "sizes" | "srcSet">[];
|
|
201
|
+
title?: string;
|
|
202
|
+
description?: string;
|
|
201
203
|
}
|
|
202
204
|
|
|
203
205
|
/**
|
|
@@ -224,7 +226,7 @@ interface FeaturePostProps {
|
|
|
224
226
|
/**
|
|
225
227
|
* Text content for `FeaturePost`.
|
|
226
228
|
*/
|
|
227
|
-
content:
|
|
229
|
+
content: ReactNode;
|
|
228
230
|
/**
|
|
229
231
|
* Reverse the columns so the image / video appears on the left. Doesn't affect mobile layouts, and is only applied if there is a video or an image.
|
|
230
232
|
*/
|
|
@@ -653,5 +655,38 @@ interface LinkTileProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
653
655
|
showIcon?: boolean;
|
|
654
656
|
}
|
|
655
657
|
|
|
656
|
-
|
|
657
|
-
|
|
658
|
+
/** Use `ThumbnailSignpost` to highlight key information or navigation points with an accompanying thumbnail image or icon. */
|
|
659
|
+
declare const ThumbnailSignpost: ({ text, title, img, onClick, buttonLabel, ...props }: ThumbnailSignpostProps) => JSX.Element;
|
|
660
|
+
interface ThumbnailSignpostProps {
|
|
661
|
+
/**
|
|
662
|
+
* Title for the ThumbnailSignpost.
|
|
663
|
+
*/
|
|
664
|
+
title: string;
|
|
665
|
+
/**
|
|
666
|
+
* Text content for the ThumbnailSignpost.
|
|
667
|
+
*/
|
|
668
|
+
text: string;
|
|
669
|
+
/**
|
|
670
|
+
* Label for the button in the ThumbnailSignpost.
|
|
671
|
+
*/
|
|
672
|
+
buttonLabel?: string;
|
|
673
|
+
/**
|
|
674
|
+
* Image properties for the ThumbnailSignpost.
|
|
675
|
+
*/
|
|
676
|
+
img?: Pick<ImageProps, "src" | "alt" | "loading" | "sizes" | "srcSet" | "anchor" | "fadeOnLoad" | "fetchPriority">;
|
|
677
|
+
/**
|
|
678
|
+
* Optional click handler for the ThumbnailSignpost.
|
|
679
|
+
*/
|
|
680
|
+
onClick?: () => void;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
/**
|
|
684
|
+
* Use `PromoListingThumbnailSignpost` to give supporting information about a page or proposition in the form of the ThumbnailSignposts components.
|
|
685
|
+
*/
|
|
686
|
+
declare const PromoListingThumbnailSignpost: React$1.FC<PromoListingThumbnailSignpostProps>;
|
|
687
|
+
interface PromoListingThumbnailSignpostProps extends SectionHeadingProps {
|
|
688
|
+
thumbnailList: ThumbnailSignpostProps[];
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
export { Accordion, ActionTile, ArticleSidebar, Author, BannerWithTabs, ContentInfoWidget, CopyLead, DownloadList, FAQs, FeaturePost, HeroLink, Highlights, LinkTile, ProductNavigation, PromoListing, PromoListingThumbnailSignpost, Quote, SectionHeading, Statistics, Summary, ThumbnailSignpost };
|
|
692
|
+
export type { AccordionProps, ActionTileProps, ArticleSidebarProps, AuthorProps, BannerWithTabsProps, ContentInfoWidgetProps, CopyLeadProps, DownloadListProps, FAQsProps, FeaturePostProps, HeroLinkProps, HighlightsProps, LinkTileProps, ListProps, ProductNavigationProps, PromoListingProps, PromoListingThumbnailSignpostProps, QuoteProps, SectionHeadingProps, StatisticsProps, SummaryProps, ThumbnailSignpostProps };
|