@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.
Files changed (49) hide show
  1. package/.turbo/turbo-build.log +12 -12
  2. package/CHANGELOG.md +12 -0
  3. package/lib/Accordion/Accordion.cjs +1 -1
  4. package/lib/Accordion/Accordion.mjs +1 -1
  5. package/lib/CopyLead/CopyLead.cjs +1 -1
  6. package/lib/CopyLead/CopyLead.mjs +1 -1
  7. package/lib/FAQs/FAQs.cjs +11 -7
  8. package/lib/FAQs/FAQs.mjs +11 -7
  9. package/lib/FeaturePost/FeaturePost.cjs +13 -6
  10. package/lib/FeaturePost/FeaturePost.mjs +13 -6
  11. package/lib/ProductNavigation/ProductNavigation.cjs +1 -1
  12. package/lib/ProductNavigation/ProductNavigation.mjs +1 -1
  13. package/lib/PromoListing/PromoListing.cjs +1 -1
  14. package/lib/PromoListing/PromoListing.mjs +1 -1
  15. package/lib/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.cjs +28 -0
  16. package/lib/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.mjs +26 -0
  17. package/lib/PromoListingThumbnailSignpost/styles.css +1 -0
  18. package/lib/Summary/Summary.cjs +1 -1
  19. package/lib/Summary/Summary.mjs +1 -1
  20. package/lib/ThumbnailSignpost/ThumbnailSignpost.cjs +15 -0
  21. package/lib/ThumbnailSignpost/ThumbnailSignpost.mjs +9 -0
  22. package/lib/ThumbnailSignpost/styles.css +1 -0
  23. package/lib/_shared/cjs/{Accordion-BCJIm1Gq.cjs → Accordion-DfNGOjTm.cjs} +1 -1
  24. package/lib/_shared/cjs/ThumbnailSignpost-GkOiwt-Z.cjs +39 -0
  25. package/lib/_shared/cjs/{index.es-DzI6hGjj.cjs → index.es-Dq8bYrbW.cjs} +1 -1
  26. package/lib/_shared/esm/{Accordion-BN_lZk6L.mjs → Accordion-cd1oYvBv.mjs} +1 -1
  27. package/lib/_shared/esm/ThumbnailSignpost-BeRiXbUp.mjs +37 -0
  28. package/lib/_shared/esm/{index.es-B6Bolkcx.mjs → index.es-Bfdys5__.mjs} +1 -1
  29. package/lib/index.cjs +169 -116
  30. package/lib/index.cjs.map +1 -1
  31. package/lib/index.d.cts +38 -3
  32. package/lib/index.d.mts +38 -3
  33. package/lib/index.mjs +168 -117
  34. package/lib/index.mjs.map +1 -1
  35. package/lib/styles.css +1 -1
  36. package/package.json +14 -14
  37. package/src/components/Accordion/components/AccordionDisclosureList/AccordionDisclosureList.tsx +1 -1
  38. package/src/components/FAQs/FAQs.tsx +13 -6
  39. package/src/components/FeaturePost/FeaturePost.tsx +6 -2
  40. package/src/components/FeaturePost/components/Image/Image.tsx +31 -7
  41. package/src/components/FeaturePost/types/feature-post-image.ts +2 -0
  42. package/src/components/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.module.css +54 -0
  43. package/src/components/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.tsx +53 -0
  44. package/src/components/PromoListingThumbnailSignpost/index.ts +4 -0
  45. package/src/components/ThumbnailSignpost/ThumbnailSignpost.module.css +112 -0
  46. package/src/components/ThumbnailSignpost/ThumbnailSignpost.tsx +100 -0
  47. package/src/components/ThumbnailSignpost/index.ts +4 -0
  48. package/src/components/index.ts +2 -0
  49. 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: string | ReactNode;
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
- export { Accordion, ActionTile, ArticleSidebar, Author, BannerWithTabs, ContentInfoWidget, CopyLead, DownloadList, FAQs, FeaturePost, HeroLink, Highlights, LinkTile, ProductNavigation, PromoListing, Quote, SectionHeading, Statistics, Summary };
657
- export type { AccordionProps, ActionTileProps, ArticleSidebarProps, AuthorProps, BannerWithTabsProps, ContentInfoWidgetProps, CopyLeadProps, DownloadListProps, FAQsProps, FeaturePostProps, HeroLinkProps, HighlightsProps, LinkTileProps, ListProps, ProductNavigationProps, PromoListingProps, QuoteProps, SectionHeadingProps, StatisticsProps, SummaryProps };
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: string | ReactNode;
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
- export { Accordion, ActionTile, ArticleSidebar, Author, BannerWithTabs, ContentInfoWidget, CopyLead, DownloadList, FAQs, FeaturePost, HeroLink, Highlights, LinkTile, ProductNavigation, PromoListing, Quote, SectionHeading, Statistics, Summary };
657
- export type { AccordionProps, ActionTileProps, ArticleSidebarProps, AuthorProps, BannerWithTabsProps, ContentInfoWidgetProps, CopyLeadProps, DownloadListProps, FAQsProps, FeaturePostProps, HeroLinkProps, HighlightsProps, LinkTileProps, ListProps, ProductNavigationProps, PromoListingProps, QuoteProps, SectionHeadingProps, StatisticsProps, SummaryProps };
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 };