@arc-ui/community-components 3.9.0 → 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 +13 -12
- package/CHANGELOG.md +14 -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/HeaderBarNotification/HeaderBarNotification.cjs +57 -0
- package/lib/HeaderBarNotification/HeaderBarNotification.mjs +55 -0
- package/lib/HeaderBarNotification/styles.css +1 -0
- package/lib/ProductNavigation/ProductNavigation.cjs +17 -17
- package/lib/ProductNavigation/ProductNavigation.mjs +17 -17
- package/lib/index.cjs +75 -28
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +48 -4
- package/lib/index.d.mts +48 -4
- package/lib/index.mjs +76 -30
- package/lib/index.mjs.map +1 -1
- package/lib/styles.css +1 -1
- package/package.json +4 -4
- package/src/components/ActionTile/ActionTile.module.css +20 -1
- package/src/components/ActionTile/ActionTile.tsx +11 -14
- 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/index.ts +1 -0
- package/versions.json +1 -1
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`.
|
|
@@ -612,7 +656,7 @@ interface ContentInfoWidgetProps {
|
|
|
612
656
|
}
|
|
613
657
|
|
|
614
658
|
declare const ActionTile: React$1.FC<ActionTileProps>;
|
|
615
|
-
interface ActionTileProps
|
|
659
|
+
interface ActionTileProps {
|
|
616
660
|
/**
|
|
617
661
|
* Icon to display in default state
|
|
618
662
|
*/
|
|
@@ -632,7 +676,7 @@ interface ActionTileProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
632
676
|
/**
|
|
633
677
|
* Click handler
|
|
634
678
|
*/
|
|
635
|
-
onClick?:
|
|
679
|
+
onClick?: React$1.MouseEventHandler<HTMLButtonElement>;
|
|
636
680
|
}
|
|
637
681
|
|
|
638
682
|
declare const LinkTile: React$1.FC<LinkTileProps>;
|
|
@@ -875,5 +919,5 @@ interface PartnerBrandLogosProps {
|
|
|
875
919
|
subgroups: PartnerLogosSubgroup[];
|
|
876
920
|
}
|
|
877
921
|
|
|
878
|
-
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 };
|
|
879
|
-
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`.
|
|
@@ -612,7 +656,7 @@ interface ContentInfoWidgetProps {
|
|
|
612
656
|
}
|
|
613
657
|
|
|
614
658
|
declare const ActionTile: React$1.FC<ActionTileProps>;
|
|
615
|
-
interface ActionTileProps
|
|
659
|
+
interface ActionTileProps {
|
|
616
660
|
/**
|
|
617
661
|
* Icon to display in default state
|
|
618
662
|
*/
|
|
@@ -632,7 +676,7 @@ interface ActionTileProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
632
676
|
/**
|
|
633
677
|
* Click handler
|
|
634
678
|
*/
|
|
635
|
-
onClick?:
|
|
679
|
+
onClick?: React$1.MouseEventHandler<HTMLButtonElement>;
|
|
636
680
|
}
|
|
637
681
|
|
|
638
682
|
declare const LinkTile: React$1.FC<LinkTileProps>;
|
|
@@ -875,5 +919,5 @@ interface PartnerBrandLogosProps {
|
|
|
875
919
|
subgroups: PartnerLogosSubgroup[];
|
|
876
920
|
}
|
|
877
921
|
|
|
878
|
-
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 };
|
|
879
|
-
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,8 +1,13 @@
|
|
|
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';
|
|
8
13
|
import { Columns, ColumnsCol } from '@arc-ui/components/Columns';
|
|
@@ -10,8 +15,6 @@ import { MediaCard } from '@arc-ui/components/MediaCard';
|
|
|
10
15
|
import { useMediaQuery } from '@arc-ui/components/use-media-query';
|
|
11
16
|
import { Grid, GridRow, GridCol } from '@arc-ui/components/Grid';
|
|
12
17
|
import { Avatar } from '@arc-ui/components/Avatar';
|
|
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) {
|
|
@@ -3940,23 +3985,23 @@ var ProductNavigation = function (_a) {
|
|
|
3940
3985
|
return (React.createElement("li", { key: "displayList-".concat(i), tabIndex: -1, ref: i === skipLinkCard ? cardRef : undefined, "data-cy": "list-item-".concat(i) },
|
|
3941
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" }))));
|
|
3942
3987
|
})),
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
React.createElement(
|
|
3953
|
-
React.createElement("
|
|
3954
|
-
"
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
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
|
+
"."))))))));
|
|
3960
4005
|
};
|
|
3961
4006
|
|
|
3962
4007
|
var styles$c = {"container":"ContentInfoWidget-module_container__yaS-8","text":"ContentInfoWidget-module_text__O1BdZ","icon":"ContentInfoWidget-module_icon__LEww1"};
|
|
@@ -3970,23 +4015,24 @@ var ContentInfoWidget = function (_a) {
|
|
|
3970
4015
|
React.createElement(Text, { size: "xs", tone: "muted" }, text))));
|
|
3971
4016
|
};
|
|
3972
4017
|
|
|
3973
|
-
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"};
|
|
3974
4019
|
|
|
3975
4020
|
var ActionTile = function (_a) {
|
|
3976
|
-
var _b;
|
|
3977
|
-
var icon = _a.icon, activeIcon = _a.activeIcon, heading = _a.heading,
|
|
3978
|
-
var tileClasses = classNames(styles$b["action-tile"], (_b = {},
|
|
3979
|
-
_b[styles$b["action-tile--active"]] = isActive,
|
|
3980
|
-
_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"]);
|
|
3981
4023
|
var displayIcon = isActive && activeIcon ? activeIcon : icon;
|
|
3982
4024
|
var content = (React.createElement(React.Fragment, null,
|
|
3983
|
-
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)) },
|
|
3984
4028
|
displayIcon && (React.createElement("div", { className: styles$b["action-tile-icon"] },
|
|
3985
4029
|
React.createElement(Icon, { icon: displayIcon, size: 48 }))),
|
|
3986
4030
|
React.createElement("span", { className: styles$b["action-tile-heading"] }, heading)),
|
|
3987
4031
|
isActive && (React.createElement("div", { className: styles$b["action-tile-tick"] },
|
|
3988
4032
|
React.createElement(Icon, { icon: BtIconTickAlt2Px, size: 28 })))));
|
|
3989
|
-
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));
|
|
3990
4036
|
};
|
|
3991
4037
|
|
|
3992
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"};
|
|
@@ -4251,5 +4297,5 @@ var PartnerBrandLogos = function (_a) {
|
|
|
4251
4297
|
React.createElement(PartnerLogoSubgroup, { subheading: subgroup.subheading, text: subgroup.text, headingLevel: getSubheadingLevel(headingLevel, subgroup.subheadingLevel), logos: subgroup.logos, tileHeight: subgroup.tileHeight }))); }))));
|
|
4252
4298
|
};
|
|
4253
4299
|
|
|
4254
|
-
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 };
|
|
4255
4301
|
//# sourceMappingURL=index.mjs.map
|