@arc-ui/community-components 3.2.0 → 3.4.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 +133 -13
- 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 +10 -11
- package/lib/ActionTile/styles.css +1 -1
- package/lib/ArticleSidebar/ArticleSidebar.cjs +9 -10
- package/lib/ArticleSidebar/ArticleSidebar.mjs +46 -47
- 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 +8 -9
- package/lib/ContentInfoWidget/ContentInfoWidget.cjs +3 -2
- package/lib/ContentInfoWidget/ContentInfoWidget.mjs +8 -7
- package/lib/CopyLead/CopyLead.cjs +32 -23
- package/lib/CopyLead/CopyLead.mjs +60 -51
- package/lib/DownloadList/DownloadList.cjs +6 -8
- package/lib/DownloadList/DownloadList.mjs +11 -13
- package/lib/FAQs/FAQs.cjs +5 -6
- package/lib/FAQs/FAQs.mjs +22 -23
- package/lib/FeaturePost/FeaturePost.cjs +14 -15
- package/lib/FeaturePost/FeaturePost.mjs +54 -55
- package/lib/Highlights/Highlights.cjs +11 -12
- package/lib/Highlights/Highlights.mjs +24 -25
- 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 +7 -7
- package/lib/LinkTile/styles.css +1 -1
- package/lib/ProductNavigation/ProductNavigation.cjs +6 -7
- package/lib/ProductNavigation/ProductNavigation.mjs +18 -19
- package/lib/PromoListing/PromoListing.cjs +7 -8
- package/lib/PromoListing/PromoListing.mjs +17 -18
- package/lib/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.cjs +7 -8
- package/lib/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.mjs +9 -10
- package/lib/Quote/Quote.cjs +5 -6
- package/lib/Quote/Quote.mjs +9 -10
- 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 +35 -33
- package/lib/Statistics/styles.css +1 -1
- package/lib/Summary/Summary.cjs +4 -4
- package/lib/Summary/Summary.mjs +13 -13
- package/lib/ThumbnailSignpost/ThumbnailSignpost.cjs +2 -3
- package/lib/ThumbnailSignpost/ThumbnailSignpost.mjs +2 -3
- package/lib/VideoHeroCard/VideoHeroCard.cjs +76 -0
- package/lib/VideoHeroCard/VideoHeroCard.mjs +74 -0
- package/lib/VideoPortraitCard/VideoPortraitCard.cjs +22 -0
- package/lib/VideoPortraitCard/VideoPortraitCard.mjs +20 -0
- package/lib/_shared/cjs/{Accordion-DfNGOjTm.cjs → Accordion-QqDoB3pY.cjs} +8 -9
- package/lib/_shared/cjs/{Author-D4dKNQem.cjs → Author-aL8YXi7C.cjs} +4 -5
- package/lib/_shared/cjs/Preview-Dx1kCzJ1.cjs +102 -0
- package/lib/_shared/cjs/{SectionHeading-DeSFM0HV.cjs → SectionHeading-Dj-dJfv3.cjs} +4 -5
- package/lib/_shared/cjs/{ThumbnailSignpost-GkOiwt-Z.cjs → ThumbnailSignpost-SBnrGooA.cjs} +4 -5
- package/lib/_shared/cjs/VideoCardThumbnail-BqYgpk0u.cjs +440 -0
- package/lib/_shared/cjs/dash.all.min-BPXzla24.cjs +6 -0
- package/lib/_shared/cjs/{tslib.es6-BxB9I209.cjs → filter-attrs-C26zOt4_.cjs} +25 -0
- package/lib/_shared/cjs/hls-Ckhp5fVA.cjs +36628 -0
- package/lib/_shared/cjs/index-DjiIVIaV.cjs +96 -0
- package/lib/_shared/cjs/index-oGP6D6gL.cjs +14826 -0
- package/lib/_shared/cjs/{index.es-Dq8bYrbW.cjs → index.es-B0J3cvrY.cjs} +1 -1
- package/lib/_shared/cjs/mixin-BFwaXKGB.cjs +1027 -0
- package/lib/_shared/cjs/react-CEvhi3LL.cjs +737 -0
- package/lib/_shared/cjs/react-CqsEClV0.cjs +466 -0
- package/lib/_shared/cjs/react-DE6M3seI.cjs +496 -0
- package/lib/_shared/cjs/react-Dri2yjKm.cjs +554 -0
- package/lib/_shared/cjs/react-DxToimBj.cjs +4239 -0
- package/lib/_shared/cjs/react-JTfV8OSA.cjs +325 -0
- package/lib/_shared/cjs/react-caXJFZ8W.cjs +400 -0
- package/lib/_shared/cjs/react-fep2ei7j.cjs +727 -0
- package/lib/_shared/esm/{Accordion-cd1oYvBv.mjs → Accordion-DtU7jbCv.mjs} +16 -17
- package/lib/_shared/esm/Author-CJQFrQM9.mjs +27 -0
- package/lib/_shared/esm/Preview-CmbKOgEO.mjs +100 -0
- package/lib/_shared/esm/{SectionHeading-CpDLCndw.mjs → SectionHeading-BskdQ2Tt.mjs} +10 -11
- package/lib/_shared/esm/{ThumbnailSignpost-BeRiXbUp.mjs → ThumbnailSignpost-CBSdQiHw.mjs} +13 -14
- package/lib/_shared/esm/VideoCardThumbnail-VfOKmPCv.mjs +437 -0
- package/lib/_shared/esm/dash.all.min-CbWI_8dN.mjs +4 -0
- package/lib/_shared/esm/{tslib.es6-D6Wu-xwB.mjs → filter-attrs-D-1kWaCP.mjs} +25 -1
- package/lib/_shared/esm/hls-AFbJDS9D.mjs +36625 -0
- package/lib/_shared/esm/index-CrcIrdjn.mjs +14799 -0
- package/lib/_shared/esm/index-DYnuIO1L.mjs +94 -0
- package/lib/_shared/esm/{index.es-Bfdys5__.mjs → index.es-DraZ-qKh.mjs} +1 -1
- package/lib/_shared/esm/mixin-BGGG8VrM.mjs +1024 -0
- package/lib/_shared/esm/react-BGimq-TB.mjs +4237 -0
- package/lib/_shared/esm/react-BHT4t_eQ.mjs +494 -0
- package/lib/_shared/esm/react-BSd0sGcO.mjs +464 -0
- package/lib/_shared/esm/react-CSr43fZV.mjs +552 -0
- package/lib/_shared/esm/react-Ca6E7Fr-.mjs +398 -0
- package/lib/_shared/esm/react-DG070IvZ.mjs +725 -0
- package/lib/_shared/esm/react-DZyqy7W7.mjs +735 -0
- package/lib/_shared/esm/react-WW_9iHcl.mjs +323 -0
- package/lib/index.cjs +299 -181
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +77 -63
- package/lib/index.d.mts +77 -63
- package/lib/index.mjs +297 -181
- package/lib/index.mjs.map +1 -1
- package/lib/styles.css +1 -1
- package/package.json +15 -12
- package/rollup.config.js +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/CopyLead/components/MediaContent/MediaContent.tsx +7 -6
- package/src/components/CopyLead/templates/Content/Content.tsx +5 -3
- package/src/components/CopyLead/templates/Media/Media.tsx +5 -6
- package/src/components/DownloadList/DownloadList.tsx +8 -8
- package/src/components/FeaturePost/FeaturePost.tsx +3 -7
- 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.tsx +2 -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/VideoHeroCard/VideoHeroCard.tsx +63 -0
- package/src/components/VideoHeroCard/components/VideoHeroCardContent/VideoHeroCardContent.module.css +32 -0
- package/src/components/VideoHeroCard/components/VideoHeroCardContent/VideoHeroCardContent.tsx +97 -0
- package/src/components/VideoHeroCard/components/VideoHeroCardContent/index.ts +4 -0
- package/src/components/VideoHeroCard/index.ts +1 -0
- package/src/components/VideoPortraitCard/VideoPortraitCard.tsx +54 -0
- package/src/components/VideoPortraitCard/index.ts +4 -0
- package/src/components/index.ts +3 -1
- package/src/internal/MultiLineText/MultiLineText.tsx +25 -0
- package/src/internal/MultiLineText/index.ts +1 -0
- package/src/internal/VideoCardPlayer/VideoCardPlayer.module.css +54 -0
- package/src/internal/VideoCardPlayer/VideoCardPlayer.tsx +62 -0
- package/src/internal/VideoCardPlayer/components/VideoCardPlayIcon/VideoCardPlayIcon.module.css +41 -0
- package/src/internal/VideoCardPlayer/components/VideoCardPlayIcon/VideoCardPlayIcon.tsx +28 -0
- package/src/internal/VideoCardPlayer/components/VideoCardPlayIcon/index.ts +1 -0
- package/src/internal/VideoCardPlayer/components/VideoCardThumbnail/VideoCardThumbnail.module.css +58 -0
- package/src/internal/VideoCardPlayer/components/VideoCardThumbnail/VideoCardThumbnail.tsx +38 -0
- package/src/internal/VideoCardPlayer/components/VideoCardThumbnail/index.ts +1 -0
- package/src/internal/VideoCardPlayer/index.ts +2 -0
- package/src/internal/VideoCardPlayer/types/player-props.ts +6 -0
- 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/Author-HnYsFTPT.mjs +0 -28
- 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';
|
|
@@ -14,6 +14,7 @@ import { InformationCardProps } from '@arc-ui/components/InformationCard';
|
|
|
14
14
|
import { TypographyCardProps } from '@arc-ui/components/TypographyCard';
|
|
15
15
|
import { TemplateBannerProps } from '@arc-ui/components/TemplateBanner';
|
|
16
16
|
import { TagProps } from '@arc-ui/components/Tag';
|
|
17
|
+
import { ReactPlayerProps } from 'react-player/types';
|
|
17
18
|
|
|
18
19
|
interface AccordionHeadingProps {
|
|
19
20
|
/**
|
|
@@ -358,10 +359,6 @@ interface PromoListingButton extends Omit<ButtonV2Props, "buttonStyle" | "icon"
|
|
|
358
359
|
* Style variant for the button. Defaults to "secondary".
|
|
359
360
|
*/
|
|
360
361
|
buttonStyle?: "secondary" | "compact";
|
|
361
|
-
/**
|
|
362
|
-
* Optional prop to pass additional props to the button. Only data-* and aria-* will work.
|
|
363
|
-
*/
|
|
364
|
-
[key: string]: unknown;
|
|
365
362
|
}
|
|
366
363
|
|
|
367
364
|
/**
|
|
@@ -572,62 +569,6 @@ interface ContentInfoWidgetProps {
|
|
|
572
569
|
text: string;
|
|
573
570
|
}
|
|
574
571
|
|
|
575
|
-
type ElementUnion = HTMLButtonElement | HTMLAnchorElement;
|
|
576
|
-
type ButtonRef = Ref<ElementUnion> | null;
|
|
577
|
-
/**
|
|
578
|
-
* Pill-style HeroLink component with default and hover states
|
|
579
|
-
*/
|
|
580
|
-
declare const HeroLink: ({ label, onClick, href, id, rel, target, ariaLabel, ref, ...props }: HeroLinkProps) => JSX.Element;
|
|
581
|
-
interface LinkElementProps {
|
|
582
|
-
/**
|
|
583
|
-
* URL to link to if `HeroButton` elementType is 'a'.
|
|
584
|
-
*/
|
|
585
|
-
href?: string;
|
|
586
|
-
/**
|
|
587
|
-
* Target window for the `HeroButton` href URL.
|
|
588
|
-
*/
|
|
589
|
-
target?: string;
|
|
590
|
-
/**
|
|
591
|
-
* Relationship between the Button href URL and the current page. See
|
|
592
|
-
* [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel).
|
|
593
|
-
*/
|
|
594
|
-
rel?: string;
|
|
595
|
-
}
|
|
596
|
-
interface HeroButtonElementProps {
|
|
597
|
-
/**
|
|
598
|
-
* Default behavior of the Button element. If not provided, 'submit' will
|
|
599
|
-
* be inferred. Type 'reset' deliberately excluded.
|
|
600
|
-
*/
|
|
601
|
-
type?: "button" | "submit";
|
|
602
|
-
/**
|
|
603
|
-
* Refers to the id of a form so it can be submitted if the button exists outside of it.
|
|
604
|
-
*/
|
|
605
|
-
form?: string;
|
|
606
|
-
}
|
|
607
|
-
interface HeroLinkProps extends HeroButtonElementProps, LinkElementProps {
|
|
608
|
-
/**
|
|
609
|
-
* Label for `HeroLink`
|
|
610
|
-
*/
|
|
611
|
-
label?: string;
|
|
612
|
-
/**
|
|
613
|
-
* Optional click handler for the `HeroLink`.
|
|
614
|
-
*/
|
|
615
|
-
onClick?: () => void;
|
|
616
|
-
/**
|
|
617
|
-
* Optional property to provide component Ref
|
|
618
|
-
*/
|
|
619
|
-
ref?: ButtonRef;
|
|
620
|
-
/**
|
|
621
|
-
* Text to override `label` with additional, more precise information
|
|
622
|
-
* specifically for screen reader users.
|
|
623
|
-
*/
|
|
624
|
-
ariaLabel?: string;
|
|
625
|
-
/**
|
|
626
|
-
* HTML ID for the `HeroLink`
|
|
627
|
-
*/
|
|
628
|
-
id?: string;
|
|
629
|
-
}
|
|
630
|
-
|
|
631
572
|
declare const ActionTile: React$1.FC<ActionTileProps>;
|
|
632
573
|
interface ActionTileProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
633
574
|
/**
|
|
@@ -650,11 +591,32 @@ interface ActionTileProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
650
591
|
|
|
651
592
|
declare const LinkTile: React$1.FC<LinkTileProps>;
|
|
652
593
|
interface LinkTileProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
594
|
+
/** Display text for the tile */
|
|
653
595
|
text?: string;
|
|
596
|
+
/** URL the tile navigates to. Renders as an anchor tag when provided */
|
|
654
597
|
href?: string;
|
|
598
|
+
/** Whether to show the arrow icon. Defaults to true */
|
|
655
599
|
showIcon?: boolean;
|
|
656
600
|
}
|
|
657
601
|
|
|
602
|
+
declare const InlineLinkGroup: React$1.FC<InlineLinkGroupProps>;
|
|
603
|
+
interface InlineLinkGroupProps {
|
|
604
|
+
/** Optional overline label displayed above the link group */
|
|
605
|
+
label?: string;
|
|
606
|
+
/** Array of link items to display */
|
|
607
|
+
links: InlineLinkGroupItem[];
|
|
608
|
+
}
|
|
609
|
+
interface InlineLinkGroupItem {
|
|
610
|
+
/** Display text for the link */
|
|
611
|
+
label: string;
|
|
612
|
+
/** URL the link navigates to */
|
|
613
|
+
href: string;
|
|
614
|
+
/** Optional click handler for the link */
|
|
615
|
+
onClick?: () => void;
|
|
616
|
+
/** Optional accessible label for screen readers */
|
|
617
|
+
ariaLabel?: string;
|
|
618
|
+
}
|
|
619
|
+
|
|
658
620
|
/** Use `ThumbnailSignpost` to highlight key information or navigation points with an accompanying thumbnail image or icon. */
|
|
659
621
|
declare const ThumbnailSignpost: ({ text, title, img, onClick, buttonLabel, ...props }: ThumbnailSignpostProps) => JSX.Element;
|
|
660
622
|
interface ThumbnailSignpostProps {
|
|
@@ -688,5 +650,57 @@ interface PromoListingThumbnailSignpostProps extends SectionHeadingProps {
|
|
|
688
650
|
thumbnailList: ThumbnailSignpostProps[];
|
|
689
651
|
}
|
|
690
652
|
|
|
691
|
-
|
|
692
|
-
|
|
653
|
+
type PlayerProps = Pick<ReactPlayerProps, "onReady" | "onPlay" | "onStart" | "onPause" | "onEnded" | "onError" | "src">;
|
|
654
|
+
|
|
655
|
+
interface VideoCardPlayerProps {
|
|
656
|
+
player: PlayerProps;
|
|
657
|
+
orientation: "portrait" | "landscape";
|
|
658
|
+
playIconSize: "s" | "l";
|
|
659
|
+
thumbnail?: ReactPlayerProps["light"];
|
|
660
|
+
children?: React$1.ReactNode;
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
interface VideoHeroCardContentProps {
|
|
664
|
+
title: string;
|
|
665
|
+
label: string;
|
|
666
|
+
description: string | ReactNode;
|
|
667
|
+
background: "dark" | "light";
|
|
668
|
+
videoDate?: string;
|
|
669
|
+
duration?: string;
|
|
670
|
+
subtitleAvailabilityText?: string;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
declare const VideoHeroCard: ({ content, thumbnailImg, player, ...props }: VideoHeroCardProps) => JSX.Element;
|
|
674
|
+
interface VideoHeroCardProps {
|
|
675
|
+
/**
|
|
676
|
+
* Content for the video card.
|
|
677
|
+
*/
|
|
678
|
+
content: Omit<VideoHeroCardContentProps, "background">;
|
|
679
|
+
/**
|
|
680
|
+
* Thumbnail for the video hero card.
|
|
681
|
+
*/
|
|
682
|
+
thumbnailImg: string;
|
|
683
|
+
/**
|
|
684
|
+
* Configuration for the video player.
|
|
685
|
+
*/
|
|
686
|
+
player: VideoCardPlayerProps["player"];
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
declare const VideoPortraitCard: ({ thumbnail, player, ...props }: VideoPortraitCardProps) => JSX.Element;
|
|
690
|
+
interface VideoPortraitCardProps {
|
|
691
|
+
/**
|
|
692
|
+
* Thumbnail content, video will autoplay if omitted.
|
|
693
|
+
*/
|
|
694
|
+
thumbnail?: {
|
|
695
|
+
title: string;
|
|
696
|
+
label: string;
|
|
697
|
+
img: string;
|
|
698
|
+
};
|
|
699
|
+
/**
|
|
700
|
+
* Configuration for the video player.
|
|
701
|
+
*/
|
|
702
|
+
player: VideoCardPlayerProps["player"];
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
export { Accordion, ActionTile, ArticleSidebar, Author, BannerWithTabs, ContentInfoWidget, CopyLead, DownloadList, FAQs, FeaturePost, Highlights, InlineLinkGroup, LinkTile, ProductNavigation, PromoListing, PromoListingThumbnailSignpost, Quote, SectionHeading, Statistics, Summary, ThumbnailSignpost, VideoHeroCard, VideoPortraitCard };
|
|
706
|
+
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, VideoHeroCardProps, VideoPortraitCardProps };
|
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';
|
|
@@ -14,6 +14,7 @@ import { InformationCardProps } from '@arc-ui/components/InformationCard';
|
|
|
14
14
|
import { TypographyCardProps } from '@arc-ui/components/TypographyCard';
|
|
15
15
|
import { TemplateBannerProps } from '@arc-ui/components/TemplateBanner';
|
|
16
16
|
import { TagProps } from '@arc-ui/components/Tag';
|
|
17
|
+
import { ReactPlayerProps } from 'react-player/types';
|
|
17
18
|
|
|
18
19
|
interface AccordionHeadingProps {
|
|
19
20
|
/**
|
|
@@ -358,10 +359,6 @@ interface PromoListingButton extends Omit<ButtonV2Props, "buttonStyle" | "icon"
|
|
|
358
359
|
* Style variant for the button. Defaults to "secondary".
|
|
359
360
|
*/
|
|
360
361
|
buttonStyle?: "secondary" | "compact";
|
|
361
|
-
/**
|
|
362
|
-
* Optional prop to pass additional props to the button. Only data-* and aria-* will work.
|
|
363
|
-
*/
|
|
364
|
-
[key: string]: unknown;
|
|
365
362
|
}
|
|
366
363
|
|
|
367
364
|
/**
|
|
@@ -572,62 +569,6 @@ interface ContentInfoWidgetProps {
|
|
|
572
569
|
text: string;
|
|
573
570
|
}
|
|
574
571
|
|
|
575
|
-
type ElementUnion = HTMLButtonElement | HTMLAnchorElement;
|
|
576
|
-
type ButtonRef = Ref<ElementUnion> | null;
|
|
577
|
-
/**
|
|
578
|
-
* Pill-style HeroLink component with default and hover states
|
|
579
|
-
*/
|
|
580
|
-
declare const HeroLink: ({ label, onClick, href, id, rel, target, ariaLabel, ref, ...props }: HeroLinkProps) => JSX.Element;
|
|
581
|
-
interface LinkElementProps {
|
|
582
|
-
/**
|
|
583
|
-
* URL to link to if `HeroButton` elementType is 'a'.
|
|
584
|
-
*/
|
|
585
|
-
href?: string;
|
|
586
|
-
/**
|
|
587
|
-
* Target window for the `HeroButton` href URL.
|
|
588
|
-
*/
|
|
589
|
-
target?: string;
|
|
590
|
-
/**
|
|
591
|
-
* Relationship between the Button href URL and the current page. See
|
|
592
|
-
* [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel).
|
|
593
|
-
*/
|
|
594
|
-
rel?: string;
|
|
595
|
-
}
|
|
596
|
-
interface HeroButtonElementProps {
|
|
597
|
-
/**
|
|
598
|
-
* Default behavior of the Button element. If not provided, 'submit' will
|
|
599
|
-
* be inferred. Type 'reset' deliberately excluded.
|
|
600
|
-
*/
|
|
601
|
-
type?: "button" | "submit";
|
|
602
|
-
/**
|
|
603
|
-
* Refers to the id of a form so it can be submitted if the button exists outside of it.
|
|
604
|
-
*/
|
|
605
|
-
form?: string;
|
|
606
|
-
}
|
|
607
|
-
interface HeroLinkProps extends HeroButtonElementProps, LinkElementProps {
|
|
608
|
-
/**
|
|
609
|
-
* Label for `HeroLink`
|
|
610
|
-
*/
|
|
611
|
-
label?: string;
|
|
612
|
-
/**
|
|
613
|
-
* Optional click handler for the `HeroLink`.
|
|
614
|
-
*/
|
|
615
|
-
onClick?: () => void;
|
|
616
|
-
/**
|
|
617
|
-
* Optional property to provide component Ref
|
|
618
|
-
*/
|
|
619
|
-
ref?: ButtonRef;
|
|
620
|
-
/**
|
|
621
|
-
* Text to override `label` with additional, more precise information
|
|
622
|
-
* specifically for screen reader users.
|
|
623
|
-
*/
|
|
624
|
-
ariaLabel?: string;
|
|
625
|
-
/**
|
|
626
|
-
* HTML ID for the `HeroLink`
|
|
627
|
-
*/
|
|
628
|
-
id?: string;
|
|
629
|
-
}
|
|
630
|
-
|
|
631
572
|
declare const ActionTile: React$1.FC<ActionTileProps>;
|
|
632
573
|
interface ActionTileProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
633
574
|
/**
|
|
@@ -650,11 +591,32 @@ interface ActionTileProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
650
591
|
|
|
651
592
|
declare const LinkTile: React$1.FC<LinkTileProps>;
|
|
652
593
|
interface LinkTileProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
594
|
+
/** Display text for the tile */
|
|
653
595
|
text?: string;
|
|
596
|
+
/** URL the tile navigates to. Renders as an anchor tag when provided */
|
|
654
597
|
href?: string;
|
|
598
|
+
/** Whether to show the arrow icon. Defaults to true */
|
|
655
599
|
showIcon?: boolean;
|
|
656
600
|
}
|
|
657
601
|
|
|
602
|
+
declare const InlineLinkGroup: React$1.FC<InlineLinkGroupProps>;
|
|
603
|
+
interface InlineLinkGroupProps {
|
|
604
|
+
/** Optional overline label displayed above the link group */
|
|
605
|
+
label?: string;
|
|
606
|
+
/** Array of link items to display */
|
|
607
|
+
links: InlineLinkGroupItem[];
|
|
608
|
+
}
|
|
609
|
+
interface InlineLinkGroupItem {
|
|
610
|
+
/** Display text for the link */
|
|
611
|
+
label: string;
|
|
612
|
+
/** URL the link navigates to */
|
|
613
|
+
href: string;
|
|
614
|
+
/** Optional click handler for the link */
|
|
615
|
+
onClick?: () => void;
|
|
616
|
+
/** Optional accessible label for screen readers */
|
|
617
|
+
ariaLabel?: string;
|
|
618
|
+
}
|
|
619
|
+
|
|
658
620
|
/** Use `ThumbnailSignpost` to highlight key information or navigation points with an accompanying thumbnail image or icon. */
|
|
659
621
|
declare const ThumbnailSignpost: ({ text, title, img, onClick, buttonLabel, ...props }: ThumbnailSignpostProps) => JSX.Element;
|
|
660
622
|
interface ThumbnailSignpostProps {
|
|
@@ -688,5 +650,57 @@ interface PromoListingThumbnailSignpostProps extends SectionHeadingProps {
|
|
|
688
650
|
thumbnailList: ThumbnailSignpostProps[];
|
|
689
651
|
}
|
|
690
652
|
|
|
691
|
-
|
|
692
|
-
|
|
653
|
+
type PlayerProps = Pick<ReactPlayerProps, "onReady" | "onPlay" | "onStart" | "onPause" | "onEnded" | "onError" | "src">;
|
|
654
|
+
|
|
655
|
+
interface VideoCardPlayerProps {
|
|
656
|
+
player: PlayerProps;
|
|
657
|
+
orientation: "portrait" | "landscape";
|
|
658
|
+
playIconSize: "s" | "l";
|
|
659
|
+
thumbnail?: ReactPlayerProps["light"];
|
|
660
|
+
children?: React$1.ReactNode;
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
interface VideoHeroCardContentProps {
|
|
664
|
+
title: string;
|
|
665
|
+
label: string;
|
|
666
|
+
description: string | ReactNode;
|
|
667
|
+
background: "dark" | "light";
|
|
668
|
+
videoDate?: string;
|
|
669
|
+
duration?: string;
|
|
670
|
+
subtitleAvailabilityText?: string;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
declare const VideoHeroCard: ({ content, thumbnailImg, player, ...props }: VideoHeroCardProps) => JSX.Element;
|
|
674
|
+
interface VideoHeroCardProps {
|
|
675
|
+
/**
|
|
676
|
+
* Content for the video card.
|
|
677
|
+
*/
|
|
678
|
+
content: Omit<VideoHeroCardContentProps, "background">;
|
|
679
|
+
/**
|
|
680
|
+
* Thumbnail for the video hero card.
|
|
681
|
+
*/
|
|
682
|
+
thumbnailImg: string;
|
|
683
|
+
/**
|
|
684
|
+
* Configuration for the video player.
|
|
685
|
+
*/
|
|
686
|
+
player: VideoCardPlayerProps["player"];
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
declare const VideoPortraitCard: ({ thumbnail, player, ...props }: VideoPortraitCardProps) => JSX.Element;
|
|
690
|
+
interface VideoPortraitCardProps {
|
|
691
|
+
/**
|
|
692
|
+
* Thumbnail content, video will autoplay if omitted.
|
|
693
|
+
*/
|
|
694
|
+
thumbnail?: {
|
|
695
|
+
title: string;
|
|
696
|
+
label: string;
|
|
697
|
+
img: string;
|
|
698
|
+
};
|
|
699
|
+
/**
|
|
700
|
+
* Configuration for the video player.
|
|
701
|
+
*/
|
|
702
|
+
player: VideoCardPlayerProps["player"];
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
export { Accordion, ActionTile, ArticleSidebar, Author, BannerWithTabs, ContentInfoWidget, CopyLead, DownloadList, FAQs, FeaturePost, Highlights, InlineLinkGroup, LinkTile, ProductNavigation, PromoListing, PromoListingThumbnailSignpost, Quote, SectionHeading, Statistics, Summary, ThumbnailSignpost, VideoHeroCard, VideoPortraitCard };
|
|
706
|
+
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, VideoHeroCardProps, VideoPortraitCardProps };
|