@arc-ui/community-components 3.3.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 +132 -12
- package/CHANGELOG.md +12 -0
- package/lib/Accordion/Accordion.mjs +1 -1
- package/lib/ActionTile/ActionTile.mjs +9 -9
- package/lib/ArticleSidebar/ArticleSidebar.mjs +44 -44
- package/lib/Author/Author.mjs +1 -1
- package/lib/BannerWithTabs/BannerWithTabs.mjs +6 -6
- package/lib/ContentInfoWidget/ContentInfoWidget.mjs +6 -6
- package/lib/CopyLead/CopyLead.cjs +18 -8
- package/lib/CopyLead/CopyLead.mjs +59 -49
- package/lib/DownloadList/DownloadList.mjs +9 -9
- package/lib/FAQs/FAQs.mjs +21 -21
- package/lib/FeaturePost/FeaturePost.cjs +1 -1
- package/lib/FeaturePost/FeaturePost.mjs +53 -53
- package/lib/Highlights/Highlights.mjs +19 -19
- package/lib/InlineLinkGroup/InlineLinkGroup.mjs +10 -10
- package/lib/LinkTile/LinkTile.mjs +5 -5
- package/lib/ProductNavigation/ProductNavigation.cjs +1 -1
- package/lib/ProductNavigation/ProductNavigation.mjs +17 -17
- package/lib/PromoListing/PromoListing.cjs +1 -1
- package/lib/PromoListing/PromoListing.mjs +15 -15
- package/lib/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.cjs +2 -2
- package/lib/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.mjs +8 -8
- package/lib/Quote/Quote.mjs +8 -8
- package/lib/SectionHeading/SectionHeading.mjs +1 -1
- package/lib/Statistics/Statistics.mjs +31 -31
- package/lib/Summary/Summary.cjs +1 -1
- package/lib/Summary/Summary.mjs +11 -11
- package/lib/ThumbnailSignpost/ThumbnailSignpost.mjs +1 -1
- 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/Preview-Dx1kCzJ1.cjs +102 -0
- package/lib/_shared/cjs/VideoCardThumbnail-BqYgpk0u.cjs +440 -0
- package/lib/_shared/cjs/dash.all.min-BPXzla24.cjs +6 -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-DrOTh90S.mjs → Accordion-DtU7jbCv.mjs} +15 -15
- package/lib/_shared/esm/Author-CJQFrQM9.mjs +27 -0
- package/lib/_shared/esm/Preview-CmbKOgEO.mjs +100 -0
- package/lib/_shared/esm/{SectionHeading-DZOg_gYi.mjs → SectionHeading-BskdQ2Tt.mjs} +9 -9
- package/lib/_shared/esm/{ThumbnailSignpost-DaZByYIH.mjs → ThumbnailSignpost-CBSdQiHw.mjs} +12 -12
- 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/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 +249 -123
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +55 -2
- package/lib/index.d.mts +55 -2
- package/lib/index.mjs +248 -124
- package/lib/index.mjs.map +1 -1
- package/lib/styles.css +1 -1
- package/package.json +17 -14
- package/rollup.config.js +1 -1
- 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/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.tsx +2 -0
- 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 +2 -0
- 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/_shared/esm/Author-BVCRPgkl.mjs +0 -27
package/lib/index.d.cts
CHANGED
|
@@ -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
|
/**
|
|
@@ -649,5 +650,57 @@ interface PromoListingThumbnailSignpostProps extends SectionHeadingProps {
|
|
|
649
650
|
thumbnailList: ThumbnailSignpostProps[];
|
|
650
651
|
}
|
|
651
652
|
|
|
652
|
-
|
|
653
|
-
|
|
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
|
@@ -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
|
/**
|
|
@@ -649,5 +650,57 @@ interface PromoListingThumbnailSignpostProps extends SectionHeadingProps {
|
|
|
649
650
|
thumbnailList: ThumbnailSignpostProps[];
|
|
650
651
|
}
|
|
651
652
|
|
|
652
|
-
|
|
653
|
-
|
|
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 };
|