@arc-ui/community-components 3.1.0 → 3.3.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 +14 -14
- package/CHANGELOG.md +31 -0
- package/lib/Accordion/Accordion.cjs +2 -3
- package/lib/Accordion/Accordion.mjs +2 -3
- package/lib/ActionTile/ActionTile.cjs +4 -5
- package/lib/ActionTile/ActionTile.mjs +2 -3
- package/lib/ActionTile/styles.css +1 -1
- package/lib/ArticleSidebar/ArticleSidebar.cjs +9 -10
- package/lib/ArticleSidebar/ArticleSidebar.mjs +4 -5
- package/lib/Author/Author.cjs +2 -3
- package/lib/Author/Author.mjs +2 -3
- package/lib/BannerWithTabs/BannerWithTabs.cjs +4 -5
- package/lib/BannerWithTabs/BannerWithTabs.mjs +4 -5
- package/lib/ContentInfoWidget/ContentInfoWidget.cjs +3 -2
- package/lib/ContentInfoWidget/ContentInfoWidget.mjs +3 -2
- package/lib/CopyLead/CopyLead.cjs +15 -16
- package/lib/CopyLead/CopyLead.mjs +3 -4
- package/lib/DownloadList/DownloadList.cjs +6 -8
- package/lib/DownloadList/DownloadList.mjs +6 -8
- package/lib/FAQs/FAQs.cjs +15 -12
- package/lib/FAQs/FAQs.mjs +13 -10
- package/lib/FeaturePost/FeaturePost.cjs +23 -17
- package/lib/FeaturePost/FeaturePost.mjs +18 -12
- package/lib/Highlights/Highlights.cjs +11 -12
- package/lib/Highlights/Highlights.mjs +11 -12
- package/lib/InlineLinkGroup/InlineLinkGroup.cjs +25 -0
- package/lib/InlineLinkGroup/InlineLinkGroup.mjs +23 -0
- package/lib/InlineLinkGroup/styles.css +1 -0
- package/lib/LinkTile/LinkTile.cjs +6 -6
- package/lib/LinkTile/LinkTile.mjs +4 -4
- package/lib/LinkTile/styles.css +1 -1
- package/lib/ProductNavigation/ProductNavigation.cjs +6 -7
- package/lib/ProductNavigation/ProductNavigation.mjs +3 -4
- package/lib/PromoListing/PromoListing.cjs +7 -8
- package/lib/PromoListing/PromoListing.mjs +5 -6
- package/lib/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.cjs +27 -0
- package/lib/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.mjs +25 -0
- package/lib/PromoListingThumbnailSignpost/styles.css +1 -0
- package/lib/Quote/Quote.cjs +5 -6
- package/lib/Quote/Quote.mjs +3 -4
- package/lib/SectionHeading/SectionHeading.cjs +2 -3
- package/lib/SectionHeading/SectionHeading.mjs +2 -3
- package/lib/Statistics/Statistics.cjs +21 -19
- package/lib/Statistics/Statistics.mjs +21 -19
- package/lib/Statistics/styles.css +1 -1
- package/lib/Summary/Summary.cjs +4 -4
- package/lib/Summary/Summary.mjs +4 -4
- package/lib/ThumbnailSignpost/ThumbnailSignpost.cjs +14 -0
- package/lib/ThumbnailSignpost/ThumbnailSignpost.mjs +8 -0
- package/lib/ThumbnailSignpost/styles.css +1 -0
- package/lib/_shared/cjs/{Accordion-BCJIm1Gq.cjs → Accordion-QqDoB3pY.cjs} +9 -10
- package/lib/_shared/cjs/{Author-D4dKNQem.cjs → Author-aL8YXi7C.cjs} +4 -5
- package/lib/_shared/cjs/{SectionHeading-DeSFM0HV.cjs → SectionHeading-Dj-dJfv3.cjs} +4 -5
- package/lib/_shared/cjs/ThumbnailSignpost-SBnrGooA.cjs +38 -0
- package/lib/_shared/cjs/{tslib.es6-BxB9I209.cjs → filter-attrs-C26zOt4_.cjs} +25 -0
- package/lib/_shared/cjs/{index.es-DzI6hGjj.cjs → index.es-Dq8bYrbW.cjs} +1 -1
- package/lib/_shared/esm/{Accordion-BN_lZk6L.mjs → Accordion-DrOTh90S.mjs} +2 -3
- package/lib/_shared/esm/{Author-HnYsFTPT.mjs → Author-BVCRPgkl.mjs} +1 -2
- package/lib/_shared/esm/{SectionHeading-CpDLCndw.mjs → SectionHeading-DZOg_gYi.mjs} +1 -2
- package/lib/_shared/esm/ThumbnailSignpost-DaZByYIH.mjs +36 -0
- package/lib/_shared/esm/{tslib.es6-D6Wu-xwB.mjs → filter-attrs-D-1kWaCP.mjs} +25 -1
- package/lib/_shared/esm/{index.es-B6Bolkcx.mjs → index.es-Bfdys5__.mjs} +1 -1
- package/lib/index.cjs +218 -173
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +60 -64
- package/lib/index.d.mts +60 -64
- package/lib/index.mjs +216 -173
- package/lib/index.mjs.map +1 -1
- package/lib/styles.css +1 -1
- package/package.json +13 -13
- package/src/components/Accordion/components/AccordionDisclosureList/AccordionDisclosureList.tsx +1 -1
- package/src/components/ActionTile/ActionTile.module.css +56 -37
- package/src/components/ActionTile/ActionTile.tsx +1 -1
- package/src/components/ArticleSidebar/ArticleSidebar.tsx +4 -6
- package/src/components/Author/Author.tsx +0 -3
- package/src/components/BannerWithTabs/BannerWithTabs.tsx +4 -6
- package/src/components/ContentInfoWidget/ContentInfoWidget.tsx +3 -4
- package/src/components/DownloadList/DownloadList.tsx +8 -8
- package/src/components/FAQs/FAQs.tsx +13 -6
- package/src/components/FeaturePost/FeaturePost.tsx +9 -9
- package/src/components/FeaturePost/components/Image/Image.tsx +31 -7
- package/src/components/FeaturePost/types/feature-post-image.ts +2 -0
- package/src/components/Highlights/Highlights.tsx +3 -2
- package/src/components/Highlights/components/HighlightItem/HighlightItem.tsx +3 -2
- package/src/components/Highlights/components/HighlightList/HighlightList.tsx +5 -2
- package/src/components/InlineLinkGroup/InlineLinkGroup.module.css +81 -0
- package/src/components/InlineLinkGroup/InlineLinkGroup.tsx +67 -0
- package/src/components/InlineLinkGroup/index.ts +5 -0
- package/src/components/LinkTile/LinkTile.module.css +62 -26
- package/src/components/LinkTile/LinkTile.tsx +8 -1
- package/src/components/PromoListing/PromoListing.tsx +3 -11
- 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/Quote/Quote.tsx +1 -7
- package/src/components/Statistics/Statistics.module.css +0 -10
- package/src/components/Statistics/Statistics.tsx +35 -32
- package/src/components/Summary/Summary.tsx +3 -1
- 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 +3 -1
- package/versions.json +1 -1
- package/lib/HeroLink/HeroLink.cjs +0 -35
- package/lib/HeroLink/HeroLink.mjs +0 -33
- package/lib/HeroLink/styles.css +0 -1
- package/lib/_shared/cjs/filter-attrs-BizjMsy0.cjs +0 -27
- package/lib/_shared/esm/filter-attrs-DZ7RCEZm.mjs +0 -25
- package/src/components/HeroLink/HeroLink.module.css +0 -44
- package/src/components/HeroLink/HeroLink.tsx +0 -136
- package/src/components/HeroLink/index.ts +0 -2
package/lib/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React$1, { ReactNode, FC
|
|
1
|
+
import React$1, { ReactNode, FC } from 'react';
|
|
2
2
|
import { HeadingLevel } from '@arc-ui/components/Heading';
|
|
3
3
|
import { ImageProps, ImageSourceProps } from '@arc-ui/components/Image';
|
|
4
4
|
import { DisclosureProps } from '@arc-ui/components/Disclosure';
|
|
@@ -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
|
*/
|
|
@@ -356,10 +358,6 @@ interface PromoListingButton extends Omit<ButtonV2Props, "buttonStyle" | "icon"
|
|
|
356
358
|
* Style variant for the button. Defaults to "secondary".
|
|
357
359
|
*/
|
|
358
360
|
buttonStyle?: "secondary" | "compact";
|
|
359
|
-
/**
|
|
360
|
-
* Optional prop to pass additional props to the button. Only data-* and aria-* will work.
|
|
361
|
-
*/
|
|
362
|
-
[key: string]: unknown;
|
|
363
361
|
}
|
|
364
362
|
|
|
365
363
|
/**
|
|
@@ -570,62 +568,6 @@ interface ContentInfoWidgetProps {
|
|
|
570
568
|
text: string;
|
|
571
569
|
}
|
|
572
570
|
|
|
573
|
-
type ElementUnion = HTMLButtonElement | HTMLAnchorElement;
|
|
574
|
-
type ButtonRef = Ref<ElementUnion> | null;
|
|
575
|
-
/**
|
|
576
|
-
* Pill-style HeroLink component with default and hover states
|
|
577
|
-
*/
|
|
578
|
-
declare const HeroLink: ({ label, onClick, href, id, rel, target, ariaLabel, ref, ...props }: HeroLinkProps) => JSX.Element;
|
|
579
|
-
interface LinkElementProps {
|
|
580
|
-
/**
|
|
581
|
-
* URL to link to if `HeroButton` elementType is 'a'.
|
|
582
|
-
*/
|
|
583
|
-
href?: string;
|
|
584
|
-
/**
|
|
585
|
-
* Target window for the `HeroButton` href URL.
|
|
586
|
-
*/
|
|
587
|
-
target?: string;
|
|
588
|
-
/**
|
|
589
|
-
* Relationship between the Button href URL and the current page. See
|
|
590
|
-
* [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel).
|
|
591
|
-
*/
|
|
592
|
-
rel?: string;
|
|
593
|
-
}
|
|
594
|
-
interface HeroButtonElementProps {
|
|
595
|
-
/**
|
|
596
|
-
* Default behavior of the Button element. If not provided, 'submit' will
|
|
597
|
-
* be inferred. Type 'reset' deliberately excluded.
|
|
598
|
-
*/
|
|
599
|
-
type?: "button" | "submit";
|
|
600
|
-
/**
|
|
601
|
-
* Refers to the id of a form so it can be submitted if the button exists outside of it.
|
|
602
|
-
*/
|
|
603
|
-
form?: string;
|
|
604
|
-
}
|
|
605
|
-
interface HeroLinkProps extends HeroButtonElementProps, LinkElementProps {
|
|
606
|
-
/**
|
|
607
|
-
* Label for `HeroLink`
|
|
608
|
-
*/
|
|
609
|
-
label?: string;
|
|
610
|
-
/**
|
|
611
|
-
* Optional click handler for the `HeroLink`.
|
|
612
|
-
*/
|
|
613
|
-
onClick?: () => void;
|
|
614
|
-
/**
|
|
615
|
-
* Optional property to provide component Ref
|
|
616
|
-
*/
|
|
617
|
-
ref?: ButtonRef;
|
|
618
|
-
/**
|
|
619
|
-
* Text to override `label` with additional, more precise information
|
|
620
|
-
* specifically for screen reader users.
|
|
621
|
-
*/
|
|
622
|
-
ariaLabel?: string;
|
|
623
|
-
/**
|
|
624
|
-
* HTML ID for the `HeroLink`
|
|
625
|
-
*/
|
|
626
|
-
id?: string;
|
|
627
|
-
}
|
|
628
|
-
|
|
629
571
|
declare const ActionTile: React$1.FC<ActionTileProps>;
|
|
630
572
|
interface ActionTileProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
631
573
|
/**
|
|
@@ -648,10 +590,64 @@ interface ActionTileProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
648
590
|
|
|
649
591
|
declare const LinkTile: React$1.FC<LinkTileProps>;
|
|
650
592
|
interface LinkTileProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
593
|
+
/** Display text for the tile */
|
|
651
594
|
text?: string;
|
|
595
|
+
/** URL the tile navigates to. Renders as an anchor tag when provided */
|
|
652
596
|
href?: string;
|
|
597
|
+
/** Whether to show the arrow icon. Defaults to true */
|
|
653
598
|
showIcon?: boolean;
|
|
654
599
|
}
|
|
655
600
|
|
|
656
|
-
|
|
657
|
-
|
|
601
|
+
declare const InlineLinkGroup: React$1.FC<InlineLinkGroupProps>;
|
|
602
|
+
interface InlineLinkGroupProps {
|
|
603
|
+
/** Optional overline label displayed above the link group */
|
|
604
|
+
label?: string;
|
|
605
|
+
/** Array of link items to display */
|
|
606
|
+
links: InlineLinkGroupItem[];
|
|
607
|
+
}
|
|
608
|
+
interface InlineLinkGroupItem {
|
|
609
|
+
/** Display text for the link */
|
|
610
|
+
label: string;
|
|
611
|
+
/** URL the link navigates to */
|
|
612
|
+
href: string;
|
|
613
|
+
/** Optional click handler for the link */
|
|
614
|
+
onClick?: () => void;
|
|
615
|
+
/** Optional accessible label for screen readers */
|
|
616
|
+
ariaLabel?: string;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
/** Use `ThumbnailSignpost` to highlight key information or navigation points with an accompanying thumbnail image or icon. */
|
|
620
|
+
declare const ThumbnailSignpost: ({ text, title, img, onClick, buttonLabel, ...props }: ThumbnailSignpostProps) => JSX.Element;
|
|
621
|
+
interface ThumbnailSignpostProps {
|
|
622
|
+
/**
|
|
623
|
+
* Title for the ThumbnailSignpost.
|
|
624
|
+
*/
|
|
625
|
+
title: string;
|
|
626
|
+
/**
|
|
627
|
+
* Text content for the ThumbnailSignpost.
|
|
628
|
+
*/
|
|
629
|
+
text: string;
|
|
630
|
+
/**
|
|
631
|
+
* Label for the button in the ThumbnailSignpost.
|
|
632
|
+
*/
|
|
633
|
+
buttonLabel?: string;
|
|
634
|
+
/**
|
|
635
|
+
* Image properties for the ThumbnailSignpost.
|
|
636
|
+
*/
|
|
637
|
+
img?: Pick<ImageProps, "src" | "alt" | "loading" | "sizes" | "srcSet" | "anchor" | "fadeOnLoad" | "fetchPriority">;
|
|
638
|
+
/**
|
|
639
|
+
* Optional click handler for the ThumbnailSignpost.
|
|
640
|
+
*/
|
|
641
|
+
onClick?: () => void;
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
/**
|
|
645
|
+
* Use `PromoListingThumbnailSignpost` to give supporting information about a page or proposition in the form of the ThumbnailSignposts components.
|
|
646
|
+
*/
|
|
647
|
+
declare const PromoListingThumbnailSignpost: React$1.FC<PromoListingThumbnailSignpostProps>;
|
|
648
|
+
interface PromoListingThumbnailSignpostProps extends SectionHeadingProps {
|
|
649
|
+
thumbnailList: ThumbnailSignpostProps[];
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
export { Accordion, ActionTile, ArticleSidebar, Author, BannerWithTabs, ContentInfoWidget, CopyLead, DownloadList, FAQs, FeaturePost, Highlights, InlineLinkGroup, LinkTile, ProductNavigation, PromoListing, PromoListingThumbnailSignpost, Quote, SectionHeading, Statistics, Summary, ThumbnailSignpost };
|
|
653
|
+
export type { AccordionProps, ActionTileProps, ArticleSidebarProps, AuthorProps, BannerWithTabsProps, ContentInfoWidgetProps, CopyLeadProps, DownloadListProps, FAQsProps, FeaturePostProps, HighlightsProps, InlineLinkGroupItem, InlineLinkGroupProps, LinkTileProps, ListProps, ProductNavigationProps, PromoListingProps, PromoListingThumbnailSignpostProps, QuoteProps, SectionHeadingProps, StatisticsProps, SummaryProps, ThumbnailSignpostProps };
|
package/lib/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React$1, { ReactNode, FC
|
|
1
|
+
import React$1, { ReactNode, FC } from 'react';
|
|
2
2
|
import { HeadingLevel } from '@arc-ui/components/Heading';
|
|
3
3
|
import { ImageProps, ImageSourceProps } from '@arc-ui/components/Image';
|
|
4
4
|
import { DisclosureProps } from '@arc-ui/components/Disclosure';
|
|
@@ -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
|
*/
|
|
@@ -356,10 +358,6 @@ interface PromoListingButton extends Omit<ButtonV2Props, "buttonStyle" | "icon"
|
|
|
356
358
|
* Style variant for the button. Defaults to "secondary".
|
|
357
359
|
*/
|
|
358
360
|
buttonStyle?: "secondary" | "compact";
|
|
359
|
-
/**
|
|
360
|
-
* Optional prop to pass additional props to the button. Only data-* and aria-* will work.
|
|
361
|
-
*/
|
|
362
|
-
[key: string]: unknown;
|
|
363
361
|
}
|
|
364
362
|
|
|
365
363
|
/**
|
|
@@ -570,62 +568,6 @@ interface ContentInfoWidgetProps {
|
|
|
570
568
|
text: string;
|
|
571
569
|
}
|
|
572
570
|
|
|
573
|
-
type ElementUnion = HTMLButtonElement | HTMLAnchorElement;
|
|
574
|
-
type ButtonRef = Ref<ElementUnion> | null;
|
|
575
|
-
/**
|
|
576
|
-
* Pill-style HeroLink component with default and hover states
|
|
577
|
-
*/
|
|
578
|
-
declare const HeroLink: ({ label, onClick, href, id, rel, target, ariaLabel, ref, ...props }: HeroLinkProps) => JSX.Element;
|
|
579
|
-
interface LinkElementProps {
|
|
580
|
-
/**
|
|
581
|
-
* URL to link to if `HeroButton` elementType is 'a'.
|
|
582
|
-
*/
|
|
583
|
-
href?: string;
|
|
584
|
-
/**
|
|
585
|
-
* Target window for the `HeroButton` href URL.
|
|
586
|
-
*/
|
|
587
|
-
target?: string;
|
|
588
|
-
/**
|
|
589
|
-
* Relationship between the Button href URL and the current page. See
|
|
590
|
-
* [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel).
|
|
591
|
-
*/
|
|
592
|
-
rel?: string;
|
|
593
|
-
}
|
|
594
|
-
interface HeroButtonElementProps {
|
|
595
|
-
/**
|
|
596
|
-
* Default behavior of the Button element. If not provided, 'submit' will
|
|
597
|
-
* be inferred. Type 'reset' deliberately excluded.
|
|
598
|
-
*/
|
|
599
|
-
type?: "button" | "submit";
|
|
600
|
-
/**
|
|
601
|
-
* Refers to the id of a form so it can be submitted if the button exists outside of it.
|
|
602
|
-
*/
|
|
603
|
-
form?: string;
|
|
604
|
-
}
|
|
605
|
-
interface HeroLinkProps extends HeroButtonElementProps, LinkElementProps {
|
|
606
|
-
/**
|
|
607
|
-
* Label for `HeroLink`
|
|
608
|
-
*/
|
|
609
|
-
label?: string;
|
|
610
|
-
/**
|
|
611
|
-
* Optional click handler for the `HeroLink`.
|
|
612
|
-
*/
|
|
613
|
-
onClick?: () => void;
|
|
614
|
-
/**
|
|
615
|
-
* Optional property to provide component Ref
|
|
616
|
-
*/
|
|
617
|
-
ref?: ButtonRef;
|
|
618
|
-
/**
|
|
619
|
-
* Text to override `label` with additional, more precise information
|
|
620
|
-
* specifically for screen reader users.
|
|
621
|
-
*/
|
|
622
|
-
ariaLabel?: string;
|
|
623
|
-
/**
|
|
624
|
-
* HTML ID for the `HeroLink`
|
|
625
|
-
*/
|
|
626
|
-
id?: string;
|
|
627
|
-
}
|
|
628
|
-
|
|
629
571
|
declare const ActionTile: React$1.FC<ActionTileProps>;
|
|
630
572
|
interface ActionTileProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
631
573
|
/**
|
|
@@ -648,10 +590,64 @@ interface ActionTileProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
648
590
|
|
|
649
591
|
declare const LinkTile: React$1.FC<LinkTileProps>;
|
|
650
592
|
interface LinkTileProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
593
|
+
/** Display text for the tile */
|
|
651
594
|
text?: string;
|
|
595
|
+
/** URL the tile navigates to. Renders as an anchor tag when provided */
|
|
652
596
|
href?: string;
|
|
597
|
+
/** Whether to show the arrow icon. Defaults to true */
|
|
653
598
|
showIcon?: boolean;
|
|
654
599
|
}
|
|
655
600
|
|
|
656
|
-
|
|
657
|
-
|
|
601
|
+
declare const InlineLinkGroup: React$1.FC<InlineLinkGroupProps>;
|
|
602
|
+
interface InlineLinkGroupProps {
|
|
603
|
+
/** Optional overline label displayed above the link group */
|
|
604
|
+
label?: string;
|
|
605
|
+
/** Array of link items to display */
|
|
606
|
+
links: InlineLinkGroupItem[];
|
|
607
|
+
}
|
|
608
|
+
interface InlineLinkGroupItem {
|
|
609
|
+
/** Display text for the link */
|
|
610
|
+
label: string;
|
|
611
|
+
/** URL the link navigates to */
|
|
612
|
+
href: string;
|
|
613
|
+
/** Optional click handler for the link */
|
|
614
|
+
onClick?: () => void;
|
|
615
|
+
/** Optional accessible label for screen readers */
|
|
616
|
+
ariaLabel?: string;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
/** Use `ThumbnailSignpost` to highlight key information or navigation points with an accompanying thumbnail image or icon. */
|
|
620
|
+
declare const ThumbnailSignpost: ({ text, title, img, onClick, buttonLabel, ...props }: ThumbnailSignpostProps) => JSX.Element;
|
|
621
|
+
interface ThumbnailSignpostProps {
|
|
622
|
+
/**
|
|
623
|
+
* Title for the ThumbnailSignpost.
|
|
624
|
+
*/
|
|
625
|
+
title: string;
|
|
626
|
+
/**
|
|
627
|
+
* Text content for the ThumbnailSignpost.
|
|
628
|
+
*/
|
|
629
|
+
text: string;
|
|
630
|
+
/**
|
|
631
|
+
* Label for the button in the ThumbnailSignpost.
|
|
632
|
+
*/
|
|
633
|
+
buttonLabel?: string;
|
|
634
|
+
/**
|
|
635
|
+
* Image properties for the ThumbnailSignpost.
|
|
636
|
+
*/
|
|
637
|
+
img?: Pick<ImageProps, "src" | "alt" | "loading" | "sizes" | "srcSet" | "anchor" | "fadeOnLoad" | "fetchPriority">;
|
|
638
|
+
/**
|
|
639
|
+
* Optional click handler for the ThumbnailSignpost.
|
|
640
|
+
*/
|
|
641
|
+
onClick?: () => void;
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
/**
|
|
645
|
+
* Use `PromoListingThumbnailSignpost` to give supporting information about a page or proposition in the form of the ThumbnailSignposts components.
|
|
646
|
+
*/
|
|
647
|
+
declare const PromoListingThumbnailSignpost: React$1.FC<PromoListingThumbnailSignpostProps>;
|
|
648
|
+
interface PromoListingThumbnailSignpostProps extends SectionHeadingProps {
|
|
649
|
+
thumbnailList: ThumbnailSignpostProps[];
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
export { Accordion, ActionTile, ArticleSidebar, Author, BannerWithTabs, ContentInfoWidget, CopyLead, DownloadList, FAQs, FeaturePost, Highlights, InlineLinkGroup, LinkTile, ProductNavigation, PromoListing, PromoListingThumbnailSignpost, Quote, SectionHeading, Statistics, Summary, ThumbnailSignpost };
|
|
653
|
+
export type { AccordionProps, ActionTileProps, ArticleSidebarProps, AuthorProps, BannerWithTabsProps, ContentInfoWidgetProps, CopyLeadProps, DownloadListProps, FAQsProps, FeaturePostProps, HighlightsProps, InlineLinkGroupItem, InlineLinkGroupProps, LinkTileProps, ListProps, ProductNavigationProps, PromoListingProps, PromoListingThumbnailSignpostProps, QuoteProps, SectionHeadingProps, StatisticsProps, SummaryProps, ThumbnailSignpostProps };
|