@arc-ui/community-components 3.8.1 → 3.10.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 +17 -16
- package/CHANGELOG.md +25 -0
- package/generate-versions.js +48 -1
- package/lib/ActionTile/ActionTile.cjs +10 -9
- package/lib/ActionTile/ActionTile.mjs +10 -9
- package/lib/ActionTile/styles.css +1 -1
- package/lib/ArticleCarousel/ArticleCarousel.cjs +3 -2
- package/lib/ArticleCarousel/ArticleCarousel.mjs +3 -2
- package/lib/BannerWithTabs/BannerWithTabs.cjs +2 -1
- package/lib/BannerWithTabs/BannerWithTabs.mjs +2 -1
- package/lib/BusinessSegmentSwitcher/BusinessSegmentSwitcher.cjs +2 -1
- package/lib/BusinessSegmentSwitcher/BusinessSegmentSwitcher.mjs +2 -1
- package/lib/CopyLead/CopyLead.cjs +2 -2
- package/lib/CopyLead/CopyLead.mjs +2 -2
- package/lib/DownloadList/DownloadList.cjs +12 -9
- package/lib/DownloadList/DownloadList.mjs +12 -9
- package/lib/DownloadList/styles.css +1 -1
- package/lib/FAQs/FAQs.cjs +2 -1
- package/lib/FAQs/FAQs.mjs +2 -1
- package/lib/FeaturePost/FeaturePost.cjs +1 -1
- package/lib/FeaturePost/FeaturePost.mjs +1 -1
- package/lib/HeaderBarNotification/HeaderBarNotification.cjs +57 -0
- package/lib/HeaderBarNotification/HeaderBarNotification.mjs +55 -0
- package/lib/HeaderBarNotification/styles.css +1 -0
- package/lib/Highlights/Highlights.cjs +2 -1
- package/lib/Highlights/Highlights.mjs +2 -1
- package/lib/ProductNavigation/ProductNavigation.cjs +20 -19
- package/lib/ProductNavigation/ProductNavigation.mjs +20 -19
- package/lib/PromoListing/PromoListing.cjs +5 -4
- package/lib/PromoListing/PromoListing.mjs +5 -4
- package/lib/PromoListing/styles.css +1 -1
- package/lib/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.cjs +2 -1
- package/lib/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.mjs +2 -1
- package/lib/SectionHeading/SectionHeading.cjs +2 -1
- package/lib/SectionHeading/SectionHeading.mjs +2 -1
- package/lib/SectionHeading/styles.css +1 -1
- package/lib/Statistics/Statistics.cjs +1 -1
- package/lib/Statistics/Statistics.mjs +1 -1
- package/lib/Summary/Summary.cjs +1 -1
- package/lib/Summary/Summary.mjs +1 -1
- package/lib/_shared/cjs/SectionHeading-XCMdv8eZ.cjs +34 -0
- package/lib/_shared/cjs/{index.es-B6sSN_JJ.cjs → index.es-B73RVhhj.cjs} +1 -1
- package/lib/_shared/esm/SectionHeading-lyXLUtdr.mjs +32 -0
- package/lib/_shared/esm/{index.es-CYN3fovv.mjs → index.es-DNGykRl2.mjs} +1 -1
- package/lib/index.cjs +106 -54
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +61 -7
- package/lib/index.d.mts +61 -7
- package/lib/index.mjs +107 -56
- package/lib/index.mjs.map +1 -1
- package/lib/styles.css +1 -1
- package/package.json +14 -14
- package/src/components/ActionTile/ActionTile.module.css +20 -1
- package/src/components/ActionTile/ActionTile.tsx +11 -14
- package/src/components/BusinessSegmentSwitcher/BusinessSegmentSwitcher.tsx +5 -1
- package/src/components/BusinessSegmentSwitcher/types/types.ts +6 -3
- package/src/components/DownloadList/DownloadList.module.css +11 -3
- package/src/components/DownloadList/DownloadList.tsx +33 -17
- package/src/components/HeaderBarNotification/HeaderBarNotification.module.css +51 -0
- package/src/components/HeaderBarNotification/HeaderBarNotification.tsx +153 -0
- package/src/components/HeaderBarNotification/index.ts +4 -0
- package/src/components/ProductNavigation/ProductNavigation.tsx +42 -38
- package/src/components/PromoListing/PromoListing.module.css +14 -0
- package/src/components/PromoListing/PromoListing.tsx +1 -1
- package/src/components/SectionHeading/SectionHeading.module.css +7 -26
- package/src/components/SectionHeading/SectionHeading.tsx +35 -33
- package/src/components/index.ts +1 -0
- package/versions.json +1 -1
- package/lib/_shared/cjs/SectionHeading-DtYzFetD.cjs +0 -31
- package/lib/_shared/esm/SectionHeading-RLfs7ete.mjs +0 -29
package/lib/index.d.cts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React$1, { ReactNode, FC } from 'react';
|
|
2
|
+
import { NavigationHeaderActionProps } from '@arc-ui/components/NavigationHeader';
|
|
2
3
|
import { HeadingLevel, HeadingProps } from '@arc-ui/components/Heading';
|
|
3
4
|
import { ImageProps, ImageSourceProps } from '@arc-ui/components/Image';
|
|
4
5
|
import { DisclosureProps } from '@arc-ui/components/Disclosure';
|
|
@@ -17,6 +18,49 @@ import { TagProps } from '@arc-ui/components/Tag';
|
|
|
17
18
|
import { ReactPlayerProps } from 'react-player/types';
|
|
18
19
|
import { VerticalSpaceProps } from '@arc-ui/components/VerticalSpace';
|
|
19
20
|
|
|
21
|
+
declare const HeaderBarNotification: React$1.FC<HeaderBarNotificationProps>;
|
|
22
|
+
interface HeaderBarNotificationProps {
|
|
23
|
+
/**
|
|
24
|
+
* Header Element to attach the notifcation too.
|
|
25
|
+
*/
|
|
26
|
+
headerActionProps: NavigationHeaderActionProps;
|
|
27
|
+
/**
|
|
28
|
+
* Nofication ID used to store dismissal in users session
|
|
29
|
+
*/
|
|
30
|
+
notificationId: string;
|
|
31
|
+
/**
|
|
32
|
+
* Always show on every reload, ignore saving dismissal to users session
|
|
33
|
+
*/
|
|
34
|
+
isPersistant?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Notification Icon
|
|
37
|
+
*/
|
|
38
|
+
icon?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Notification Image
|
|
41
|
+
*/
|
|
42
|
+
image?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Notification Heading
|
|
45
|
+
*/
|
|
46
|
+
heading: string;
|
|
47
|
+
/**
|
|
48
|
+
* Notification tagline
|
|
49
|
+
*/
|
|
50
|
+
tagline?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Notification content
|
|
53
|
+
*/
|
|
54
|
+
children?: React$1.ReactNode;
|
|
55
|
+
/**
|
|
56
|
+
* Data for the button, click events and text
|
|
57
|
+
*/
|
|
58
|
+
button?: {
|
|
59
|
+
handleClick: () => void;
|
|
60
|
+
text: string;
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
|
|
20
64
|
interface AccordionHeadingProps {
|
|
21
65
|
/**
|
|
22
66
|
* heading for `AccordionHeading`.
|
|
@@ -203,7 +247,14 @@ interface CopyLeadProps {
|
|
|
203
247
|
|
|
204
248
|
declare const DownloadList: React$1.FC<DownloadListProps>;
|
|
205
249
|
interface DownloadListProps extends Omit<SectionHeadingProps, "isPadded"> {
|
|
250
|
+
/**
|
|
251
|
+
* Set the list of `Download` components.
|
|
252
|
+
*/
|
|
206
253
|
downloads: DownloadProps[];
|
|
254
|
+
/**
|
|
255
|
+
* Align the `Download` list below or to the right of the `SectionHeading`.
|
|
256
|
+
*/
|
|
257
|
+
alignment?: "below" | "right";
|
|
207
258
|
}
|
|
208
259
|
|
|
209
260
|
declare const FAQs: React$1.FC<FAQsProps>;
|
|
@@ -605,7 +656,7 @@ interface ContentInfoWidgetProps {
|
|
|
605
656
|
}
|
|
606
657
|
|
|
607
658
|
declare const ActionTile: React$1.FC<ActionTileProps>;
|
|
608
|
-
interface ActionTileProps
|
|
659
|
+
interface ActionTileProps {
|
|
609
660
|
/**
|
|
610
661
|
* Icon to display in default state
|
|
611
662
|
*/
|
|
@@ -625,7 +676,7 @@ interface ActionTileProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
625
676
|
/**
|
|
626
677
|
* Click handler
|
|
627
678
|
*/
|
|
628
|
-
onClick?:
|
|
679
|
+
onClick?: React$1.MouseEventHandler<HTMLButtonElement>;
|
|
629
680
|
}
|
|
630
681
|
|
|
631
682
|
declare const LinkTile: React$1.FC<LinkTileProps>;
|
|
@@ -764,16 +815,19 @@ interface BentoMediaCard extends Omit<MediaCardProps, "isContained" | "buttonIco
|
|
|
764
815
|
* Content structure for the bento grid layout within each tab.
|
|
765
816
|
* - card1 & card2: Can be either information or media cards
|
|
766
817
|
* - card3: Optional information card
|
|
767
|
-
* - card4: Typography card with label and url
|
|
818
|
+
* - card4: Typography card with label, heading and url
|
|
768
819
|
*/
|
|
769
820
|
type BentoGridContent = {
|
|
770
821
|
card1: BentoInformationCard | BentoMediaCard;
|
|
771
822
|
card2: BentoInformationCard | BentoMediaCard;
|
|
772
823
|
card3?: BentoInformationCard;
|
|
773
824
|
card4: {
|
|
774
|
-
url:
|
|
775
|
-
label?:
|
|
825
|
+
url: TypographyCardProps["url"];
|
|
826
|
+
label?: TypographyCardProps["label"];
|
|
827
|
+
/** Overrides the default heading if provided and is not falsey. */
|
|
828
|
+
heading?: string;
|
|
776
829
|
text?: TypographyCardProps["text"];
|
|
830
|
+
onClick?: TypographyCardProps["onClick"];
|
|
777
831
|
};
|
|
778
832
|
};
|
|
779
833
|
|
|
@@ -865,5 +919,5 @@ interface PartnerBrandLogosProps {
|
|
|
865
919
|
subgroups: PartnerLogosSubgroup[];
|
|
866
920
|
}
|
|
867
921
|
|
|
868
|
-
export { Accordion, ActionTile, ArticleCarousel, ArticleSidebar, Author, BannerWithTabs, BusinessSegmentSwitcher, ContentInfoWidget, CopyLead, DownloadList, FAQs, FeaturePost, Highlights, InlineLinkGroup, LinkTile, PartnerBrandLogos, ProductNavigation, PromoListing, PromoListingThumbnailSignpost, Quote, SectionHeading, Statistics, Summary, ThumbnailSignpost, VideoHeroCard, VideoPortraitCard };
|
|
869
|
-
export type { AccordionProps, ActionTileProps, ArticleCarouselProps, ArticleSidebarProps, AuthorProps, BannerWithTabsProps, BentoGridContent, BentoInformationCard, BentoMediaCard, BusinessSegmentSwitcherProps, ContentInfoWidgetProps, CopyLeadProps, DownloadListProps, FAQsProps, FeaturePostProps, HighlightsProps, InlineLinkGroupItem, InlineLinkGroupProps, LinkTileProps, ListProps, LogoTileItem, PartnerBrandLogosProps, PartnerLogosSubgroup, ProductNavigationProps, PromoListingProps, PromoListingThumbnailSignpostProps, QuoteProps, SectionHeadingProps, StatisticsProps, SummaryProps, ThumbnailSignpostProps, VideoHeroCardProps, VideoPortraitCardProps };
|
|
922
|
+
export { Accordion, ActionTile, ArticleCarousel, ArticleSidebar, Author, BannerWithTabs, BusinessSegmentSwitcher, ContentInfoWidget, CopyLead, DownloadList, FAQs, FeaturePost, HeaderBarNotification, Highlights, InlineLinkGroup, LinkTile, PartnerBrandLogos, ProductNavigation, PromoListing, PromoListingThumbnailSignpost, Quote, SectionHeading, Statistics, Summary, ThumbnailSignpost, VideoHeroCard, VideoPortraitCard };
|
|
923
|
+
export type { AccordionProps, ActionTileProps, ArticleCarouselProps, ArticleSidebarProps, AuthorProps, BannerWithTabsProps, BentoGridContent, BentoInformationCard, BentoMediaCard, BusinessSegmentSwitcherProps, ContentInfoWidgetProps, CopyLeadProps, DownloadListProps, FAQsProps, FeaturePostProps, HeaderBarNotificationProps, HighlightsProps, InlineLinkGroupItem, InlineLinkGroupProps, LinkTileProps, ListProps, LogoTileItem, PartnerBrandLogosProps, PartnerLogosSubgroup, ProductNavigationProps, PromoListingProps, PromoListingThumbnailSignpostProps, QuoteProps, SectionHeadingProps, StatisticsProps, SummaryProps, ThumbnailSignpostProps, VideoHeroCardProps, VideoPortraitCardProps };
|
package/lib/index.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React$1, { ReactNode, FC } from 'react';
|
|
2
|
+
import { NavigationHeaderActionProps } from '@arc-ui/components/NavigationHeader';
|
|
2
3
|
import { HeadingLevel, HeadingProps } from '@arc-ui/components/Heading';
|
|
3
4
|
import { ImageProps, ImageSourceProps } from '@arc-ui/components/Image';
|
|
4
5
|
import { DisclosureProps } from '@arc-ui/components/Disclosure';
|
|
@@ -17,6 +18,49 @@ import { TagProps } from '@arc-ui/components/Tag';
|
|
|
17
18
|
import { ReactPlayerProps } from 'react-player/types';
|
|
18
19
|
import { VerticalSpaceProps } from '@arc-ui/components/VerticalSpace';
|
|
19
20
|
|
|
21
|
+
declare const HeaderBarNotification: React$1.FC<HeaderBarNotificationProps>;
|
|
22
|
+
interface HeaderBarNotificationProps {
|
|
23
|
+
/**
|
|
24
|
+
* Header Element to attach the notifcation too.
|
|
25
|
+
*/
|
|
26
|
+
headerActionProps: NavigationHeaderActionProps;
|
|
27
|
+
/**
|
|
28
|
+
* Nofication ID used to store dismissal in users session
|
|
29
|
+
*/
|
|
30
|
+
notificationId: string;
|
|
31
|
+
/**
|
|
32
|
+
* Always show on every reload, ignore saving dismissal to users session
|
|
33
|
+
*/
|
|
34
|
+
isPersistant?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Notification Icon
|
|
37
|
+
*/
|
|
38
|
+
icon?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Notification Image
|
|
41
|
+
*/
|
|
42
|
+
image?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Notification Heading
|
|
45
|
+
*/
|
|
46
|
+
heading: string;
|
|
47
|
+
/**
|
|
48
|
+
* Notification tagline
|
|
49
|
+
*/
|
|
50
|
+
tagline?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Notification content
|
|
53
|
+
*/
|
|
54
|
+
children?: React$1.ReactNode;
|
|
55
|
+
/**
|
|
56
|
+
* Data for the button, click events and text
|
|
57
|
+
*/
|
|
58
|
+
button?: {
|
|
59
|
+
handleClick: () => void;
|
|
60
|
+
text: string;
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
|
|
20
64
|
interface AccordionHeadingProps {
|
|
21
65
|
/**
|
|
22
66
|
* heading for `AccordionHeading`.
|
|
@@ -203,7 +247,14 @@ interface CopyLeadProps {
|
|
|
203
247
|
|
|
204
248
|
declare const DownloadList: React$1.FC<DownloadListProps>;
|
|
205
249
|
interface DownloadListProps extends Omit<SectionHeadingProps, "isPadded"> {
|
|
250
|
+
/**
|
|
251
|
+
* Set the list of `Download` components.
|
|
252
|
+
*/
|
|
206
253
|
downloads: DownloadProps[];
|
|
254
|
+
/**
|
|
255
|
+
* Align the `Download` list below or to the right of the `SectionHeading`.
|
|
256
|
+
*/
|
|
257
|
+
alignment?: "below" | "right";
|
|
207
258
|
}
|
|
208
259
|
|
|
209
260
|
declare const FAQs: React$1.FC<FAQsProps>;
|
|
@@ -605,7 +656,7 @@ interface ContentInfoWidgetProps {
|
|
|
605
656
|
}
|
|
606
657
|
|
|
607
658
|
declare const ActionTile: React$1.FC<ActionTileProps>;
|
|
608
|
-
interface ActionTileProps
|
|
659
|
+
interface ActionTileProps {
|
|
609
660
|
/**
|
|
610
661
|
* Icon to display in default state
|
|
611
662
|
*/
|
|
@@ -625,7 +676,7 @@ interface ActionTileProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
625
676
|
/**
|
|
626
677
|
* Click handler
|
|
627
678
|
*/
|
|
628
|
-
onClick?:
|
|
679
|
+
onClick?: React$1.MouseEventHandler<HTMLButtonElement>;
|
|
629
680
|
}
|
|
630
681
|
|
|
631
682
|
declare const LinkTile: React$1.FC<LinkTileProps>;
|
|
@@ -764,16 +815,19 @@ interface BentoMediaCard extends Omit<MediaCardProps, "isContained" | "buttonIco
|
|
|
764
815
|
* Content structure for the bento grid layout within each tab.
|
|
765
816
|
* - card1 & card2: Can be either information or media cards
|
|
766
817
|
* - card3: Optional information card
|
|
767
|
-
* - card4: Typography card with label and url
|
|
818
|
+
* - card4: Typography card with label, heading and url
|
|
768
819
|
*/
|
|
769
820
|
type BentoGridContent = {
|
|
770
821
|
card1: BentoInformationCard | BentoMediaCard;
|
|
771
822
|
card2: BentoInformationCard | BentoMediaCard;
|
|
772
823
|
card3?: BentoInformationCard;
|
|
773
824
|
card4: {
|
|
774
|
-
url:
|
|
775
|
-
label?:
|
|
825
|
+
url: TypographyCardProps["url"];
|
|
826
|
+
label?: TypographyCardProps["label"];
|
|
827
|
+
/** Overrides the default heading if provided and is not falsey. */
|
|
828
|
+
heading?: string;
|
|
776
829
|
text?: TypographyCardProps["text"];
|
|
830
|
+
onClick?: TypographyCardProps["onClick"];
|
|
777
831
|
};
|
|
778
832
|
};
|
|
779
833
|
|
|
@@ -865,5 +919,5 @@ interface PartnerBrandLogosProps {
|
|
|
865
919
|
subgroups: PartnerLogosSubgroup[];
|
|
866
920
|
}
|
|
867
921
|
|
|
868
|
-
export { Accordion, ActionTile, ArticleCarousel, ArticleSidebar, Author, BannerWithTabs, BusinessSegmentSwitcher, ContentInfoWidget, CopyLead, DownloadList, FAQs, FeaturePost, Highlights, InlineLinkGroup, LinkTile, PartnerBrandLogos, ProductNavigation, PromoListing, PromoListingThumbnailSignpost, Quote, SectionHeading, Statistics, Summary, ThumbnailSignpost, VideoHeroCard, VideoPortraitCard };
|
|
869
|
-
export type { AccordionProps, ActionTileProps, ArticleCarouselProps, ArticleSidebarProps, AuthorProps, BannerWithTabsProps, BentoGridContent, BentoInformationCard, BentoMediaCard, BusinessSegmentSwitcherProps, ContentInfoWidgetProps, CopyLeadProps, DownloadListProps, FAQsProps, FeaturePostProps, HighlightsProps, InlineLinkGroupItem, InlineLinkGroupProps, LinkTileProps, ListProps, LogoTileItem, PartnerBrandLogosProps, PartnerLogosSubgroup, ProductNavigationProps, PromoListingProps, PromoListingThumbnailSignpostProps, QuoteProps, SectionHeadingProps, StatisticsProps, SummaryProps, ThumbnailSignpostProps, VideoHeroCardProps, VideoPortraitCardProps };
|
|
922
|
+
export { Accordion, ActionTile, ArticleCarousel, ArticleSidebar, Author, BannerWithTabs, BusinessSegmentSwitcher, ContentInfoWidget, CopyLead, DownloadList, FAQs, FeaturePost, HeaderBarNotification, Highlights, InlineLinkGroup, LinkTile, PartnerBrandLogos, ProductNavigation, PromoListing, PromoListingThumbnailSignpost, Quote, SectionHeading, Statistics, Summary, ThumbnailSignpost, VideoHeroCard, VideoPortraitCard };
|
|
923
|
+
export type { AccordionProps, ActionTileProps, ArticleCarouselProps, ArticleSidebarProps, AuthorProps, BannerWithTabsProps, BentoGridContent, BentoInformationCard, BentoMediaCard, BusinessSegmentSwitcherProps, ContentInfoWidgetProps, CopyLeadProps, DownloadListProps, FAQsProps, FeaturePostProps, HeaderBarNotificationProps, HighlightsProps, InlineLinkGroupItem, InlineLinkGroupProps, LinkTileProps, ListProps, LogoTileItem, PartnerBrandLogosProps, PartnerLogosSubgroup, ProductNavigationProps, PromoListingProps, PromoListingThumbnailSignpostProps, QuoteProps, SectionHeadingProps, StatisticsProps, SummaryProps, ThumbnailSignpostProps, VideoHeroCardProps, VideoPortraitCardProps };
|
package/lib/index.mjs
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { useState, useEffect, useId, Suspense, useRef, useContext } from 'react';
|
|
2
|
+
import { NavigationHeaderAction } from '@arc-ui/components/NavigationHeader';
|
|
3
|
+
import { Popover } from '@arc-ui/components/Popover';
|
|
4
|
+
import { Icon } from '@arc-ui/components/Icon';
|
|
5
|
+
import { Image as Image$2 } from '@arc-ui/components/Image';
|
|
2
6
|
import { Heading } from '@arc-ui/components/Heading';
|
|
3
7
|
import { Text } from '@arc-ui/components/Text';
|
|
8
|
+
import { Tooltip } from '@arc-ui/components/Tooltip';
|
|
9
|
+
import { ButtonV2 } from '@arc-ui/components/ButtonV2';
|
|
4
10
|
import { VerticalSpace } from '@arc-ui/components/VerticalSpace';
|
|
5
|
-
import { Image as Image$2 } from '@arc-ui/components/Image';
|
|
6
11
|
import { Disclosure } from '@arc-ui/components/Disclosure';
|
|
7
12
|
import { Carousel } from '@arc-ui/components/Carousel';
|
|
13
|
+
import { Columns, ColumnsCol } from '@arc-ui/components/Columns';
|
|
8
14
|
import { MediaCard } from '@arc-ui/components/MediaCard';
|
|
9
15
|
import { useMediaQuery } from '@arc-ui/components/use-media-query';
|
|
10
16
|
import { Grid, GridRow, GridCol } from '@arc-ui/components/Grid';
|
|
11
17
|
import { Avatar } from '@arc-ui/components/Avatar';
|
|
12
|
-
import { Columns, ColumnsCol } from '@arc-ui/components/Columns';
|
|
13
|
-
import { Icon } from '@arc-ui/components/Icon';
|
|
14
|
-
import { ButtonV2 } from '@arc-ui/components/ButtonV2';
|
|
15
18
|
import { Download } from '@arc-ui/components/Download';
|
|
16
19
|
import { Link } from '@arc-ui/components/Link';
|
|
17
20
|
import { Tabs, TabsList, TabsItem, TabsContent } from '@arc-ui/components/Tabs';
|
|
@@ -151,6 +154,48 @@ var filterAttrs = function (props) {
|
|
|
151
154
|
return filteredProps;
|
|
152
155
|
};
|
|
153
156
|
|
|
157
|
+
/**
|
|
158
|
+
* Do not edit directly
|
|
159
|
+
* Generated file
|
|
160
|
+
*/
|
|
161
|
+
|
|
162
|
+
const BtIconCrossAlt =
|
|
163
|
+
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath fill='currentColor' d='m16.707 16.02 4.482-4.494a.5.5 0 1 0-.707-.706l-4.48 4.493-4.482-4.493a.5.5 0 1 0-.707.706l4.483 4.494-4.483 4.494a.5.5 0 1 0 .707.706l4.481-4.493 4.481 4.493a.5.5 0 1 0 .707-.706Z'/%3e%3c/svg%3e";
|
|
164
|
+
|
|
165
|
+
var styles$v = {"container":"HeaderBarNotification-module_container__18nau","content":"HeaderBarNotification-module_content__SUo-l","image":"HeaderBarNotification-module_image__uV-nD","details":"HeaderBarNotification-module_details__S5Rrx","closeButtonContainer":"HeaderBarNotification-module_closeButtonContainer__b1UDI"};
|
|
166
|
+
|
|
167
|
+
var HeaderBarNotification = function (_a) {
|
|
168
|
+
var headerActionProps = _a.headerActionProps, notificationId = _a.notificationId, _b = _a.isPersistant, isPersistant = _b === void 0 ? false : _b, icon = _a.icon, image = _a.image, heading = _a.heading, tagline = _a.tagline, children = _a.children, button = _a.button, props = __rest(_a, ["headerActionProps", "notificationId", "isPersistant", "icon", "image", "heading", "tagline", "children", "button"]);
|
|
169
|
+
var _c = useState(isPersistant), showNotification = _c[0], setShowNotification = _c[1];
|
|
170
|
+
var localStorageId = "hide".concat(notificationId.replace(/[^a-zA-Z0-9\-_]/g, ""));
|
|
171
|
+
// Check to see if the notication has been hidden or not and show it if so
|
|
172
|
+
useEffect(function () {
|
|
173
|
+
if (typeof window !== "undefined" && !isPersistant) {
|
|
174
|
+
setShowNotification(!localStorage.getItem(localStorageId));
|
|
175
|
+
}
|
|
176
|
+
}, []);
|
|
177
|
+
// Handle the closure of the notification, store it in the session so we don't keep showing it.
|
|
178
|
+
var handleClosePopup = function () {
|
|
179
|
+
if (!isPersistant)
|
|
180
|
+
localStorage.setItem(localStorageId, "true");
|
|
181
|
+
setShowNotification(false);
|
|
182
|
+
};
|
|
183
|
+
return (React.createElement(Popover, __assign({ open: showNotification, side: "bottom", sideOffset: 12, maxWidth: 900, arrow: true, content: React.createElement("div", { className: styles$v.container },
|
|
184
|
+
React.createElement("div", { className: styles$v.content },
|
|
185
|
+
(image || icon) && (React.createElement("div", { className: styles$v.image },
|
|
186
|
+
image && (React.createElement(Image$2, { src: image, alt: heading, fit: "cover", width: 55 })),
|
|
187
|
+
icon && React.createElement(Icon, { icon: icon, size: 35 }))),
|
|
188
|
+
React.createElement("div", { className: styles$v.details },
|
|
189
|
+
tagline && (React.createElement(Text, { size: "m", tone: "muted" }, tagline)),
|
|
190
|
+
React.createElement(Heading, { size: "s", level: "3" }, heading),
|
|
191
|
+
children)),
|
|
192
|
+
button && (React.createElement(ButtonV2, { onClick: button.handleClick, label: button.text, buttonStyle: "secondary", isFullWidth: true })),
|
|
193
|
+
React.createElement("div", { className: styles$v.closeButtonContainer },
|
|
194
|
+
React.createElement(Tooltip, { side: "bottom", title: "Dismiss Notification", asChild: true },
|
|
195
|
+
React.createElement(ButtonV2, { "data-testid": localStorageId, buttonStyle: "tertiary", "aria-label": "Close ".concat(notificationId, " popup"), onClick: handleClosePopup, icon: BtIconCrossAlt })))) }, filterAttrs(props)),
|
|
196
|
+
React.createElement(NavigationHeaderAction, __assign({ isAttention: true }, headerActionProps))));
|
|
197
|
+
};
|
|
198
|
+
|
|
154
199
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
155
200
|
|
|
156
201
|
function getDefaultExportFromCjs (x) {
|
|
@@ -940,28 +985,30 @@ function requireDebounce () {
|
|
|
940
985
|
var debounceExports = requireDebounce();
|
|
941
986
|
var debounce = /*@__PURE__*/getDefaultExportFromCjs(debounceExports);
|
|
942
987
|
|
|
943
|
-
var styles$r = {"
|
|
988
|
+
var styles$r = {"sectionHeading--hasImage":"SectionHeading-module_sectionHeading--hasImage__qaz6n","sectionHeading--isCentered":"SectionHeading-module_sectionHeading--isCentered__i0fR8","sectionHeading-content":"SectionHeading-module_sectionHeading-content__ufB6w"};
|
|
944
989
|
|
|
945
990
|
var SectionHeading = function (_a) {
|
|
946
991
|
var _b, _c;
|
|
947
992
|
var heading = _a.heading, content = _a.content, id = _a.id, image = _a.image, isHeadingWordWrap = _a.isHeadingWordWrap, _d = _a.isPadded, isPadded = _d === void 0 ? false : _d, _e = _a.headingLevel, headingLevel = _e === void 0 ? "2" : _e, _f = _a.isCentered, isCentered = _f === void 0 ? false : _f, props = __rest(_a, ["heading", "content", "id", "image", "isHeadingWordWrap", "isPadded", "headingLevel", "isCentered"]);
|
|
948
|
-
return (React.createElement(
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
993
|
+
return (React.createElement(Columns, null,
|
|
994
|
+
React.createElement(ColumnsCol, { spanM: isPadded ? 9 : 12 },
|
|
995
|
+
React.createElement("div", __assign({ className: classNames((_b = {},
|
|
996
|
+
_b[styles$r["sectionHeading--isCentered"]] = isCentered,
|
|
997
|
+
_b)) }, filterAttrs(props)),
|
|
998
|
+
React.createElement("div", { className: classNames((_c = {},
|
|
999
|
+
_c[styles$r["sectionHeading--hasImage"]] = image,
|
|
1000
|
+
_c)) },
|
|
1001
|
+
image && React.createElement(Image$2, __assign({}, image, { width: 68, fit: "cover" })),
|
|
1002
|
+
React.createElement(Heading, { level: headingLevel, id: id, size: "xl", isWordWrap: isHeadingWordWrap }, heading)),
|
|
1003
|
+
content && (React.createElement("div", { className: styles$r["sectionHeading-content"] },
|
|
1004
|
+
React.createElement(VerticalSpace, { size: "24" }),
|
|
1005
|
+
React.createElement(Text, { size: "l", elementType: "p" }, content))),
|
|
1006
|
+
React.createElement(VerticalSpace, { size: "40" })))));
|
|
960
1007
|
};
|
|
961
1008
|
|
|
962
1009
|
/**
|
|
963
1010
|
* Do not edit directly
|
|
964
|
-
* Generated on
|
|
1011
|
+
* Generated on Thu, 21 May 2026 15:46:02 GMT
|
|
965
1012
|
*/
|
|
966
1013
|
var ArcSizeBreakpointsXs = "320px";
|
|
967
1014
|
var ArcSizeBreakpointsS = "636px";
|
|
@@ -1174,17 +1221,19 @@ var CopyLead = function (_a) {
|
|
|
1174
1221
|
return null;
|
|
1175
1222
|
};
|
|
1176
1223
|
|
|
1177
|
-
var styles$n = {"
|
|
1224
|
+
var styles$n = {"downloadList-below":"DownloadList-module_downloadList-below__21q6i","downloadList-right":"DownloadList-module_downloadList-right__mHYHL"};
|
|
1178
1225
|
|
|
1179
1226
|
var DownloadList = function (_a) {
|
|
1180
|
-
var heading = _a.heading, id = _a.id, _b = _a.headingLevel, headingLevel = _b === void 0 ? "2" : _b, isHeadingWordWrap = _a.isHeadingWordWrap, content = _a.content, downloads = _a.downloads, props = __rest(_a, ["heading", "id", "headingLevel", "isHeadingWordWrap", "content", "downloads"]);
|
|
1227
|
+
var heading = _a.heading, id = _a.id, _b = _a.headingLevel, headingLevel = _b === void 0 ? "2" : _b, isHeadingWordWrap = _a.isHeadingWordWrap, content = _a.content, downloads = _a.downloads, _c = _a.alignment, alignment = _c === void 0 ? "below" : _c, props = __rest(_a, ["heading", "id", "headingLevel", "isHeadingWordWrap", "content", "downloads", "alignment"]);
|
|
1181
1228
|
return (React.createElement("div", __assign({}, filterAttrs(props)),
|
|
1182
|
-
React.createElement(
|
|
1183
|
-
React.createElement(
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
React.createElement(
|
|
1187
|
-
|
|
1229
|
+
React.createElement(Columns, null,
|
|
1230
|
+
React.createElement(ColumnsCol, { spanL: alignment === "right" ? 6 : 9, spanM: 9, span: 12 },
|
|
1231
|
+
" ",
|
|
1232
|
+
React.createElement(SectionHeading, { id: id, heading: heading, isHeadingWordWrap: isHeadingWordWrap, headingLevel: headingLevel, content: content })),
|
|
1233
|
+
React.createElement(ColumnsCol, { spanL: alignment === "right" ? 6 : 8, spanM: 9, spanS: 12 },
|
|
1234
|
+
React.createElement("div", { className: styles$n["downloadList-".concat(alignment)] }, downloads.map(function (downloadProps, i) { return (React.createElement(React.Fragment, { key: "download-".concat(i, "-").concat(downloadProps.name) },
|
|
1235
|
+
React.createElement(Download, __assign({}, downloadProps)),
|
|
1236
|
+
i !== downloads.length - 1 && React.createElement(VerticalSpace, { size: "16" }))); }))))));
|
|
1188
1237
|
};
|
|
1189
1238
|
|
|
1190
1239
|
var styles$m = {"FAQs":"FAQs-module_FAQs__FtQr4","linkListSection":"FAQs-module_linkListSection__RdQkU","linkListTitle":"FAQs-module_linkListTitle__RVni3","linkList":"FAQs-module_linkList__dPyXj","linkListItem":"FAQs-module_linkListItem__S83CL","linkList--padded":"FAQs-module_linkList--padded__8Paxc"};
|
|
@@ -3555,7 +3604,7 @@ var Highlights = function (_a) {
|
|
|
3555
3604
|
: undefined, iconPosition: (_d = cta.iconPosition) !== null && _d !== void 0 ? _d : "beforeText" })))));
|
|
3556
3605
|
};
|
|
3557
3606
|
|
|
3558
|
-
var styles$j = {"PromoListing":"PromoListing-module_PromoListing__6ensv","carouselSlide":"PromoListing-module_carouselSlide__AMTPF","cardGrid":"PromoListing-module_cardGrid__llf73","cardWrapper":"PromoListing-module_cardWrapper__I4iwh","cardWrapperCarousel":"PromoListing-module_cardWrapperCarousel__t-2qM","columns-3":"PromoListing-module_columns-3__y6jWS","columns-2":"PromoListing-module_columns-2__GRFxb"};
|
|
3607
|
+
var styles$j = {"PromoListing":"PromoListing-module_PromoListing__6ensv","CarouselWrapper":"PromoListing-module_CarouselWrapper__iYwWp","carouselSlide":"PromoListing-module_carouselSlide__AMTPF","cardGrid":"PromoListing-module_cardGrid__llf73","cardWrapper":"PromoListing-module_cardWrapper__I4iwh","cardWrapperCarousel":"PromoListing-module_cardWrapperCarousel__t-2qM","columns-3":"PromoListing-module_columns-3__y6jWS","columns-2":"PromoListing-module_columns-2__GRFxb"};
|
|
3559
3608
|
|
|
3560
3609
|
/**
|
|
3561
3610
|
* Do not edit directly
|
|
@@ -3681,7 +3730,7 @@ var PromoListing = function (_a) {
|
|
|
3681
3730
|
button.label && (React.createElement(React.Fragment, null,
|
|
3682
3731
|
React.createElement(ButtonV2, __assign({}, button, { icon: button.buttonStyle == "compact" ? BtIconArrowRightFill : undefined, size: "m" })),
|
|
3683
3732
|
React.createElement(VerticalSpace, { size: "40" }))),
|
|
3684
|
-
isCarousel && !isMinWidthArcBreakpointL ? (React.createElement("div", { className: styles$j.
|
|
3733
|
+
isCarousel && !isMinWidthArcBreakpointL ? (React.createElement("div", { className: styles$j.CarouselWrapper },
|
|
3685
3734
|
React.createElement(Carousel, { overflow: "visible", itemsPerSlide: 1, behavior: "adaptive", withGutter: false }, cards === null || cards === void 0 ? void 0 : cards.map(function (card, i) { return (React.createElement("div", { key: "promolist-carousel-card-".concat(componentId, "-").concat(i), className: (styles$j.cardWrapperCarousel) }, getCard(card))); })))) : (React.createElement("ul", { className: classNames(styles$j.cardGrid, styles$j["columns-".concat(columns)]) }, cards === null || cards === void 0 ? void 0 : cards.map(function (card, index) { return (React.createElement("li", { key: "promolist-card--".concat(componentId, "-").concat(index) },
|
|
3686
3735
|
React.createElement("div", { "data-testid": "promoList-card".concat(index), className: styles$j.cardWrapper }, getCard(card)))); })))));
|
|
3687
3736
|
};
|
|
@@ -3936,23 +3985,23 @@ var ProductNavigation = function (_a) {
|
|
|
3936
3985
|
return (React.createElement("li", { key: "displayList-".concat(i), tabIndex: -1, ref: i === skipLinkCard ? cardRef : undefined, "data-cy": "list-item-".concat(i) },
|
|
3937
3986
|
React.createElement(InformationCard, __assign({}, cardProps, { minHeight: minHeight !== null && minHeight !== void 0 ? minHeight : cardProps.minHeight, headingLevel: (_a = cardProps.headingLevel) !== null && _a !== void 0 ? _a : "2" }))));
|
|
3938
3987
|
})),
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
React.createElement(
|
|
3949
|
-
React.createElement("
|
|
3950
|
-
"
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3988
|
+
!hideButton &&
|
|
3989
|
+
!(defaultExpanded && displayList.length === productList.length) && (React.createElement(React.Fragment, null,
|
|
3990
|
+
React.createElement(VerticalSpace, { size: "40" }),
|
|
3991
|
+
React.createElement("div", { style: { display: "flex" } },
|
|
3992
|
+
!hideLessButton && (React.createElement(ButtonV2, { label: displayList.length < productList.length
|
|
3993
|
+
? "Show more"
|
|
3994
|
+
: "Show less", buttonStyle: "secondary", onClick: clickController, isFullWidth: isMinWidthArcBreakpointS ? false : true, isLoading: isLoading })),
|
|
3995
|
+
displaySkipButton && displayList.length > cardsToDisplay && (React.createElement("div", { id: "skip-link", className: classNames(styles$d["productNavigation-skipLink"]), tabIndex: -1 },
|
|
3996
|
+
React.createElement(ButtonV2, { label: "Move to first new card", buttonStyle: "primary", onClick: moveFocus, isFullWidth: isMinWidthArcBreakpointS ? false : true }))),
|
|
3997
|
+
React.createElement(VisuallyHidden, null,
|
|
3998
|
+
React.createElement("div", { "aria-live": "polite", id: "aria-live-region", "aria-atomic": true },
|
|
3999
|
+
React.createElement("p", null,
|
|
4000
|
+
"Total products listed ",
|
|
4001
|
+
displayList.length,
|
|
4002
|
+
". Total products hidden ",
|
|
4003
|
+
productList.length - displayList.length,
|
|
4004
|
+
"."))))))));
|
|
3956
4005
|
};
|
|
3957
4006
|
|
|
3958
4007
|
var styles$c = {"container":"ContentInfoWidget-module_container__yaS-8","text":"ContentInfoWidget-module_text__O1BdZ","icon":"ContentInfoWidget-module_icon__LEww1"};
|
|
@@ -3966,23 +4015,24 @@ var ContentInfoWidget = function (_a) {
|
|
|
3966
4015
|
React.createElement(Text, { size: "xs", tone: "muted" }, text))));
|
|
3967
4016
|
};
|
|
3968
4017
|
|
|
3969
|
-
var styles$b = {"action-tile":"ActionTile-module_action-tile__JPwGb","action-tile-content":"ActionTile-module_action-tile-content__ZkgHc","action-tile-icon":"ActionTile-module_action-tile-icon__PY1EN","action-tile-heading":"ActionTile-module_action-tile-heading__Uxdu9","action-tile--active":"ActionTile-module_action-tile--active__-aWze","action-tile-tick":"ActionTile-module_action-tile-tick__vhsJE"};
|
|
4018
|
+
var styles$b = {"action-tile":"ActionTile-module_action-tile__JPwGb","action-tile-content":"ActionTile-module_action-tile-content__ZkgHc","action-tile-content--without-icon":"ActionTile-module_action-tile-content--without-icon__7F5xj","action-tile-icon":"ActionTile-module_action-tile-icon__PY1EN","action-tile-heading":"ActionTile-module_action-tile-heading__Uxdu9","action-tile--active":"ActionTile-module_action-tile--active__-aWze","action-tile-tick":"ActionTile-module_action-tile-tick__vhsJE"};
|
|
3970
4019
|
|
|
3971
4020
|
var ActionTile = function (_a) {
|
|
3972
|
-
var _b;
|
|
3973
|
-
var icon = _a.icon, activeIcon = _a.activeIcon, heading = _a.heading,
|
|
3974
|
-
var tileClasses = classNames(styles$b["action-tile"], (_b = {},
|
|
3975
|
-
_b[styles$b["action-tile--active"]] = isActive,
|
|
3976
|
-
_b), className);
|
|
4021
|
+
var _b, _c;
|
|
4022
|
+
var icon = _a.icon, activeIcon = _a.activeIcon, heading = _a.heading, _d = _a.isActive, isActive = _d === void 0 ? false : _d, onClick = _a.onClick, props = __rest(_a, ["icon", "activeIcon", "heading", "isActive", "onClick"]);
|
|
3977
4023
|
var displayIcon = isActive && activeIcon ? activeIcon : icon;
|
|
3978
4024
|
var content = (React.createElement(React.Fragment, null,
|
|
3979
|
-
React.createElement("div", { className: styles$b["action-tile-content"] },
|
|
4025
|
+
React.createElement("div", { className: classNames(styles$b["action-tile-content"], (_b = {},
|
|
4026
|
+
_b[styles$b["action-tile-content--without-icon"]] = !displayIcon,
|
|
4027
|
+
_b)) },
|
|
3980
4028
|
displayIcon && (React.createElement("div", { className: styles$b["action-tile-icon"] },
|
|
3981
4029
|
React.createElement(Icon, { icon: displayIcon, size: 48 }))),
|
|
3982
4030
|
React.createElement("span", { className: styles$b["action-tile-heading"] }, heading)),
|
|
3983
4031
|
isActive && (React.createElement("div", { className: styles$b["action-tile-tick"] },
|
|
3984
4032
|
React.createElement(Icon, { icon: BtIconTickAlt2Px, size: 28 })))));
|
|
3985
|
-
return (React.createElement("button", __assign({ type: "button", className:
|
|
4033
|
+
return (React.createElement("button", __assign({ type: "button", className: classNames(styles$b["action-tile"], (_c = {},
|
|
4034
|
+
_c[styles$b["action-tile--active"]] = isActive,
|
|
4035
|
+
_c)), onClick: onClick, "aria-pressed": isActive }, filterAttrs(props)), content));
|
|
3986
4036
|
};
|
|
3987
4037
|
|
|
3988
4038
|
var styles$a = {"link-tile":"LinkTile-module_link-tile__xVUP3","link-tile-content":"LinkTile-module_link-tile-content__H-QN8","link-tile-icon":"LinkTile-module_link-tile-icon__kTMfH","link-tile-text":"LinkTile-module_link-tile-text__0K6zf"};
|
|
@@ -4191,7 +4241,8 @@ var BusinessSegmentSwitcher = function (_a) {
|
|
|
4191
4241
|
React.createElement("div", { className: styles$2.cardCol },
|
|
4192
4242
|
content.card3 && React.createElement(InformationCard, __assign({}, content.card3)),
|
|
4193
4243
|
React.createElement("div", null,
|
|
4194
|
-
React.createElement(TypographyCard, { heading:
|
|
4244
|
+
React.createElement(TypographyCard, { heading: content.card4.heading ||
|
|
4245
|
+
"All ".concat(label.toLowerCase(), " solutions"), text: content.card4.text, label: content.card4.label, url: content.card4.url, onClick: content.card4.onClick }))))));
|
|
4195
4246
|
}))),
|
|
4196
4247
|
React.createElement("div", { className: styles$2.businessSegmentSwitcherMobile },
|
|
4197
4248
|
React.createElement(ContentSwitcherDropdown, { isInset: true, value: selectedTab, tabs: tabs, isFluid: true, onValueChange: function (value) { return setSelectedTab(value); } }, tabs.map(function (_a, index) {
|
|
@@ -4246,5 +4297,5 @@ var PartnerBrandLogos = function (_a) {
|
|
|
4246
4297
|
React.createElement(PartnerLogoSubgroup, { subheading: subgroup.subheading, text: subgroup.text, headingLevel: getSubheadingLevel(headingLevel, subgroup.subheadingLevel), logos: subgroup.logos, tileHeight: subgroup.tileHeight }))); }))));
|
|
4247
4298
|
};
|
|
4248
4299
|
|
|
4249
|
-
export { Accordion, ActionTile, ArticleCarousel, ArticleSidebar, Author, BannerWithTabs, BusinessSegmentSwitcher, ContentInfoWidget, CopyLead, DownloadList, FAQs, FeaturePost, Highlights, InlineLinkGroup, LinkTile, PartnerBrandLogos, ProductNavigation, PromoListing, PromoListingThumbnailSignpost, Quote, SectionHeading, Statistics, Summary, ThumbnailSignpost, VideoHeroCard, VideoPortraitCard };
|
|
4300
|
+
export { Accordion, ActionTile, ArticleCarousel, ArticleSidebar, Author, BannerWithTabs, BusinessSegmentSwitcher, ContentInfoWidget, CopyLead, DownloadList, FAQs, FeaturePost, HeaderBarNotification, Highlights, InlineLinkGroup, LinkTile, PartnerBrandLogos, ProductNavigation, PromoListing, PromoListingThumbnailSignpost, Quote, SectionHeading, Statistics, Summary, ThumbnailSignpost, VideoHeroCard, VideoPortraitCard };
|
|
4250
4301
|
//# sourceMappingURL=index.mjs.map
|