@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.cjs
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
|
+
var NavigationHeader = require('@arc-ui/components/NavigationHeader');
|
|
5
|
+
var Popover = require('@arc-ui/components/Popover');
|
|
6
|
+
var Icon = require('@arc-ui/components/Icon');
|
|
7
|
+
var Image$2 = require('@arc-ui/components/Image');
|
|
4
8
|
var Heading = require('@arc-ui/components/Heading');
|
|
5
9
|
var Text = require('@arc-ui/components/Text');
|
|
10
|
+
var Tooltip = require('@arc-ui/components/Tooltip');
|
|
11
|
+
var ButtonV2 = require('@arc-ui/components/ButtonV2');
|
|
6
12
|
var VerticalSpace = require('@arc-ui/components/VerticalSpace');
|
|
7
|
-
var Image$2 = require('@arc-ui/components/Image');
|
|
8
13
|
var Disclosure = require('@arc-ui/components/Disclosure');
|
|
9
14
|
var Carousel = require('@arc-ui/components/Carousel');
|
|
15
|
+
var Columns = require('@arc-ui/components/Columns');
|
|
10
16
|
var MediaCard = require('@arc-ui/components/MediaCard');
|
|
11
17
|
var useMediaQuery = require('@arc-ui/components/use-media-query');
|
|
12
18
|
var Grid = require('@arc-ui/components/Grid');
|
|
13
19
|
var Avatar = require('@arc-ui/components/Avatar');
|
|
14
|
-
var Columns = require('@arc-ui/components/Columns');
|
|
15
|
-
var Icon = require('@arc-ui/components/Icon');
|
|
16
|
-
var ButtonV2 = require('@arc-ui/components/ButtonV2');
|
|
17
20
|
var Download = require('@arc-ui/components/Download');
|
|
18
21
|
var Link = require('@arc-ui/components/Link');
|
|
19
22
|
var Tabs = require('@arc-ui/components/Tabs');
|
|
@@ -153,6 +156,48 @@ var filterAttrs = function (props) {
|
|
|
153
156
|
return filteredProps;
|
|
154
157
|
};
|
|
155
158
|
|
|
159
|
+
/**
|
|
160
|
+
* Do not edit directly
|
|
161
|
+
* Generated file
|
|
162
|
+
*/
|
|
163
|
+
|
|
164
|
+
const BtIconCrossAlt =
|
|
165
|
+
"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";
|
|
166
|
+
|
|
167
|
+
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"};
|
|
168
|
+
|
|
169
|
+
var HeaderBarNotification = function (_a) {
|
|
170
|
+
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"]);
|
|
171
|
+
var _c = React.useState(isPersistant), showNotification = _c[0], setShowNotification = _c[1];
|
|
172
|
+
var localStorageId = "hide".concat(notificationId.replace(/[^a-zA-Z0-9\-_]/g, ""));
|
|
173
|
+
// Check to see if the notication has been hidden or not and show it if so
|
|
174
|
+
React.useEffect(function () {
|
|
175
|
+
if (typeof window !== "undefined" && !isPersistant) {
|
|
176
|
+
setShowNotification(!localStorage.getItem(localStorageId));
|
|
177
|
+
}
|
|
178
|
+
}, []);
|
|
179
|
+
// Handle the closure of the notification, store it in the session so we don't keep showing it.
|
|
180
|
+
var handleClosePopup = function () {
|
|
181
|
+
if (!isPersistant)
|
|
182
|
+
localStorage.setItem(localStorageId, "true");
|
|
183
|
+
setShowNotification(false);
|
|
184
|
+
};
|
|
185
|
+
return (React.createElement(Popover.Popover, __assign({ open: showNotification, side: "bottom", sideOffset: 12, maxWidth: 900, arrow: true, content: React.createElement("div", { className: styles$v.container },
|
|
186
|
+
React.createElement("div", { className: styles$v.content },
|
|
187
|
+
(image || icon) && (React.createElement("div", { className: styles$v.image },
|
|
188
|
+
image && (React.createElement(Image$2.Image, { src: image, alt: heading, fit: "cover", width: 55 })),
|
|
189
|
+
icon && React.createElement(Icon.Icon, { icon: icon, size: 35 }))),
|
|
190
|
+
React.createElement("div", { className: styles$v.details },
|
|
191
|
+
tagline && (React.createElement(Text.Text, { size: "m", tone: "muted" }, tagline)),
|
|
192
|
+
React.createElement(Heading.Heading, { size: "s", level: "3" }, heading),
|
|
193
|
+
children)),
|
|
194
|
+
button && (React.createElement(ButtonV2.ButtonV2, { onClick: button.handleClick, label: button.text, buttonStyle: "secondary", isFullWidth: true })),
|
|
195
|
+
React.createElement("div", { className: styles$v.closeButtonContainer },
|
|
196
|
+
React.createElement(Tooltip.Tooltip, { side: "bottom", title: "Dismiss Notification", asChild: true },
|
|
197
|
+
React.createElement(ButtonV2.ButtonV2, { "data-testid": localStorageId, buttonStyle: "tertiary", "aria-label": "Close ".concat(notificationId, " popup"), onClick: handleClosePopup, icon: BtIconCrossAlt })))) }, filterAttrs(props)),
|
|
198
|
+
React.createElement(NavigationHeader.NavigationHeaderAction, __assign({ isAttention: true }, headerActionProps))));
|
|
199
|
+
};
|
|
200
|
+
|
|
156
201
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
157
202
|
|
|
158
203
|
function getDefaultExportFromCjs (x) {
|
|
@@ -942,28 +987,30 @@ function requireDebounce () {
|
|
|
942
987
|
var debounceExports = requireDebounce();
|
|
943
988
|
var debounce = /*@__PURE__*/getDefaultExportFromCjs(debounceExports);
|
|
944
989
|
|
|
945
|
-
var styles$r = {"
|
|
990
|
+
var styles$r = {"sectionHeading--hasImage":"SectionHeading-module_sectionHeading--hasImage__qaz6n","sectionHeading--isCentered":"SectionHeading-module_sectionHeading--isCentered__i0fR8","sectionHeading-content":"SectionHeading-module_sectionHeading-content__ufB6w"};
|
|
946
991
|
|
|
947
992
|
var SectionHeading = function (_a) {
|
|
948
993
|
var _b, _c;
|
|
949
994
|
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"]);
|
|
950
|
-
return (React.createElement(
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
995
|
+
return (React.createElement(Columns.Columns, null,
|
|
996
|
+
React.createElement(Columns.ColumnsCol, { spanM: isPadded ? 9 : 12 },
|
|
997
|
+
React.createElement("div", __assign({ className: classNames((_b = {},
|
|
998
|
+
_b[styles$r["sectionHeading--isCentered"]] = isCentered,
|
|
999
|
+
_b)) }, filterAttrs(props)),
|
|
1000
|
+
React.createElement("div", { className: classNames((_c = {},
|
|
1001
|
+
_c[styles$r["sectionHeading--hasImage"]] = image,
|
|
1002
|
+
_c)) },
|
|
1003
|
+
image && React.createElement(Image$2.Image, __assign({}, image, { width: 68, fit: "cover" })),
|
|
1004
|
+
React.createElement(Heading.Heading, { level: headingLevel, id: id, size: "xl", isWordWrap: isHeadingWordWrap }, heading)),
|
|
1005
|
+
content && (React.createElement("div", { className: styles$r["sectionHeading-content"] },
|
|
1006
|
+
React.createElement(VerticalSpace.VerticalSpace, { size: "24" }),
|
|
1007
|
+
React.createElement(Text.Text, { size: "l", elementType: "p" }, content))),
|
|
1008
|
+
React.createElement(VerticalSpace.VerticalSpace, { size: "40" })))));
|
|
962
1009
|
};
|
|
963
1010
|
|
|
964
1011
|
/**
|
|
965
1012
|
* Do not edit directly
|
|
966
|
-
* Generated on
|
|
1013
|
+
* Generated on Thu, 21 May 2026 15:46:02 GMT
|
|
967
1014
|
*/
|
|
968
1015
|
var ArcSizeBreakpointsXs = "320px";
|
|
969
1016
|
var ArcSizeBreakpointsS = "636px";
|
|
@@ -1176,17 +1223,19 @@ var CopyLead = function (_a) {
|
|
|
1176
1223
|
return null;
|
|
1177
1224
|
};
|
|
1178
1225
|
|
|
1179
|
-
var styles$n = {"
|
|
1226
|
+
var styles$n = {"downloadList-below":"DownloadList-module_downloadList-below__21q6i","downloadList-right":"DownloadList-module_downloadList-right__mHYHL"};
|
|
1180
1227
|
|
|
1181
1228
|
var DownloadList = function (_a) {
|
|
1182
|
-
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"]);
|
|
1229
|
+
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"]);
|
|
1183
1230
|
return (React.createElement("div", __assign({}, filterAttrs(props)),
|
|
1184
|
-
React.createElement(
|
|
1185
|
-
React.createElement(
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
React.createElement(
|
|
1189
|
-
|
|
1231
|
+
React.createElement(Columns.Columns, null,
|
|
1232
|
+
React.createElement(Columns.ColumnsCol, { spanL: alignment === "right" ? 6 : 9, spanM: 9, span: 12 },
|
|
1233
|
+
" ",
|
|
1234
|
+
React.createElement(SectionHeading, { id: id, heading: heading, isHeadingWordWrap: isHeadingWordWrap, headingLevel: headingLevel, content: content })),
|
|
1235
|
+
React.createElement(Columns.ColumnsCol, { spanL: alignment === "right" ? 6 : 8, spanM: 9, spanS: 12 },
|
|
1236
|
+
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) },
|
|
1237
|
+
React.createElement(Download.Download, __assign({}, downloadProps)),
|
|
1238
|
+
i !== downloads.length - 1 && React.createElement(VerticalSpace.VerticalSpace, { size: "16" }))); }))))));
|
|
1190
1239
|
};
|
|
1191
1240
|
|
|
1192
1241
|
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"};
|
|
@@ -3557,7 +3606,7 @@ var Highlights = function (_a) {
|
|
|
3557
3606
|
: undefined, iconPosition: (_d = cta.iconPosition) !== null && _d !== void 0 ? _d : "beforeText" })))));
|
|
3558
3607
|
};
|
|
3559
3608
|
|
|
3560
|
-
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"};
|
|
3609
|
+
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"};
|
|
3561
3610
|
|
|
3562
3611
|
/**
|
|
3563
3612
|
* Do not edit directly
|
|
@@ -3683,7 +3732,7 @@ var PromoListing = function (_a) {
|
|
|
3683
3732
|
button.label && (React.createElement(React.Fragment, null,
|
|
3684
3733
|
React.createElement(ButtonV2.ButtonV2, __assign({}, button, { icon: button.buttonStyle == "compact" ? BtIconArrowRightFill : undefined, size: "m" })),
|
|
3685
3734
|
React.createElement(VerticalSpace.VerticalSpace, { size: "40" }))),
|
|
3686
|
-
isCarousel && !isMinWidthArcBreakpointL ? (React.createElement("div", { className: styles$j.
|
|
3735
|
+
isCarousel && !isMinWidthArcBreakpointL ? (React.createElement("div", { className: styles$j.CarouselWrapper },
|
|
3687
3736
|
React.createElement(Carousel.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) },
|
|
3688
3737
|
React.createElement("div", { "data-testid": "promoList-card".concat(index), className: styles$j.cardWrapper }, getCard(card)))); })))));
|
|
3689
3738
|
};
|
|
@@ -3938,23 +3987,23 @@ var ProductNavigation = function (_a) {
|
|
|
3938
3987
|
return (React.createElement("li", { key: "displayList-".concat(i), tabIndex: -1, ref: i === skipLinkCard ? cardRef : undefined, "data-cy": "list-item-".concat(i) },
|
|
3939
3988
|
React.createElement(InformationCard.InformationCard, __assign({}, cardProps, { minHeight: minHeight !== null && minHeight !== void 0 ? minHeight : cardProps.minHeight, headingLevel: (_a = cardProps.headingLevel) !== null && _a !== void 0 ? _a : "2" }))));
|
|
3940
3989
|
})),
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
React.createElement(
|
|
3951
|
-
React.createElement("
|
|
3952
|
-
"
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3990
|
+
!hideButton &&
|
|
3991
|
+
!(defaultExpanded && displayList.length === productList.length) && (React.createElement(React.Fragment, null,
|
|
3992
|
+
React.createElement(VerticalSpace.VerticalSpace, { size: "40" }),
|
|
3993
|
+
React.createElement("div", { style: { display: "flex" } },
|
|
3994
|
+
!hideLessButton && (React.createElement(ButtonV2.ButtonV2, { label: displayList.length < productList.length
|
|
3995
|
+
? "Show more"
|
|
3996
|
+
: "Show less", buttonStyle: "secondary", onClick: clickController, isFullWidth: isMinWidthArcBreakpointS ? false : true, isLoading: isLoading })),
|
|
3997
|
+
displaySkipButton && displayList.length > cardsToDisplay && (React.createElement("div", { id: "skip-link", className: classNames(styles$d["productNavigation-skipLink"]), tabIndex: -1 },
|
|
3998
|
+
React.createElement(ButtonV2.ButtonV2, { label: "Move to first new card", buttonStyle: "primary", onClick: moveFocus, isFullWidth: isMinWidthArcBreakpointS ? false : true }))),
|
|
3999
|
+
React.createElement(VisuallyHidden.VisuallyHidden, null,
|
|
4000
|
+
React.createElement("div", { "aria-live": "polite", id: "aria-live-region", "aria-atomic": true },
|
|
4001
|
+
React.createElement("p", null,
|
|
4002
|
+
"Total products listed ",
|
|
4003
|
+
displayList.length,
|
|
4004
|
+
". Total products hidden ",
|
|
4005
|
+
productList.length - displayList.length,
|
|
4006
|
+
"."))))))));
|
|
3958
4007
|
};
|
|
3959
4008
|
|
|
3960
4009
|
var styles$c = {"container":"ContentInfoWidget-module_container__yaS-8","text":"ContentInfoWidget-module_text__O1BdZ","icon":"ContentInfoWidget-module_icon__LEww1"};
|
|
@@ -3968,23 +4017,24 @@ var ContentInfoWidget = function (_a) {
|
|
|
3968
4017
|
React.createElement(Text.Text, { size: "xs", tone: "muted" }, text))));
|
|
3969
4018
|
};
|
|
3970
4019
|
|
|
3971
|
-
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"};
|
|
4020
|
+
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"};
|
|
3972
4021
|
|
|
3973
4022
|
var ActionTile = function (_a) {
|
|
3974
|
-
var _b;
|
|
3975
|
-
var icon = _a.icon, activeIcon = _a.activeIcon, heading = _a.heading,
|
|
3976
|
-
var tileClasses = classNames(styles$b["action-tile"], (_b = {},
|
|
3977
|
-
_b[styles$b["action-tile--active"]] = isActive,
|
|
3978
|
-
_b), className);
|
|
4023
|
+
var _b, _c;
|
|
4024
|
+
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"]);
|
|
3979
4025
|
var displayIcon = isActive && activeIcon ? activeIcon : icon;
|
|
3980
4026
|
var content = (React.createElement(React.Fragment, null,
|
|
3981
|
-
React.createElement("div", { className: styles$b["action-tile-content"] },
|
|
4027
|
+
React.createElement("div", { className: classNames(styles$b["action-tile-content"], (_b = {},
|
|
4028
|
+
_b[styles$b["action-tile-content--without-icon"]] = !displayIcon,
|
|
4029
|
+
_b)) },
|
|
3982
4030
|
displayIcon && (React.createElement("div", { className: styles$b["action-tile-icon"] },
|
|
3983
4031
|
React.createElement(Icon.Icon, { icon: displayIcon, size: 48 }))),
|
|
3984
4032
|
React.createElement("span", { className: styles$b["action-tile-heading"] }, heading)),
|
|
3985
4033
|
isActive && (React.createElement("div", { className: styles$b["action-tile-tick"] },
|
|
3986
4034
|
React.createElement(Icon.Icon, { icon: BtIconTickAlt2Px, size: 28 })))));
|
|
3987
|
-
return (React.createElement("button", __assign({ type: "button", className:
|
|
4035
|
+
return (React.createElement("button", __assign({ type: "button", className: classNames(styles$b["action-tile"], (_c = {},
|
|
4036
|
+
_c[styles$b["action-tile--active"]] = isActive,
|
|
4037
|
+
_c)), onClick: onClick, "aria-pressed": isActive }, filterAttrs(props)), content));
|
|
3988
4038
|
};
|
|
3989
4039
|
|
|
3990
4040
|
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"};
|
|
@@ -4193,7 +4243,8 @@ var BusinessSegmentSwitcher = function (_a) {
|
|
|
4193
4243
|
React.createElement("div", { className: styles$2.cardCol },
|
|
4194
4244
|
content.card3 && React.createElement(InformationCard.InformationCard, __assign({}, content.card3)),
|
|
4195
4245
|
React.createElement("div", null,
|
|
4196
|
-
React.createElement(TypographyCard.TypographyCard, { heading:
|
|
4246
|
+
React.createElement(TypographyCard.TypographyCard, { heading: content.card4.heading ||
|
|
4247
|
+
"All ".concat(label.toLowerCase(), " solutions"), text: content.card4.text, label: content.card4.label, url: content.card4.url, onClick: content.card4.onClick }))))));
|
|
4197
4248
|
}))),
|
|
4198
4249
|
React.createElement("div", { className: styles$2.businessSegmentSwitcherMobile },
|
|
4199
4250
|
React.createElement(ContentSwitcherDropdown.ContentSwitcherDropdown, { isInset: true, value: selectedTab, tabs: tabs, isFluid: true, onValueChange: function (value) { return setSelectedTab(value); } }, tabs.map(function (_a, index) {
|
|
@@ -4260,6 +4311,7 @@ exports.CopyLead = CopyLead;
|
|
|
4260
4311
|
exports.DownloadList = DownloadList;
|
|
4261
4312
|
exports.FAQs = FAQs;
|
|
4262
4313
|
exports.FeaturePost = FeaturePost;
|
|
4314
|
+
exports.HeaderBarNotification = HeaderBarNotification;
|
|
4263
4315
|
exports.Highlights = Highlights;
|
|
4264
4316
|
exports.InlineLinkGroup = InlineLinkGroup;
|
|
4265
4317
|
exports.LinkTile = LinkTile;
|