@arc-ui/community-components 3.1.0 → 3.3.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 +14 -14
- package/CHANGELOG.md +31 -0
- package/lib/Accordion/Accordion.cjs +2 -3
- package/lib/Accordion/Accordion.mjs +2 -3
- package/lib/ActionTile/ActionTile.cjs +4 -5
- package/lib/ActionTile/ActionTile.mjs +2 -3
- package/lib/ActionTile/styles.css +1 -1
- package/lib/ArticleSidebar/ArticleSidebar.cjs +9 -10
- package/lib/ArticleSidebar/ArticleSidebar.mjs +4 -5
- package/lib/Author/Author.cjs +2 -3
- package/lib/Author/Author.mjs +2 -3
- package/lib/BannerWithTabs/BannerWithTabs.cjs +4 -5
- package/lib/BannerWithTabs/BannerWithTabs.mjs +4 -5
- package/lib/ContentInfoWidget/ContentInfoWidget.cjs +3 -2
- package/lib/ContentInfoWidget/ContentInfoWidget.mjs +3 -2
- package/lib/CopyLead/CopyLead.cjs +15 -16
- package/lib/CopyLead/CopyLead.mjs +3 -4
- package/lib/DownloadList/DownloadList.cjs +6 -8
- package/lib/DownloadList/DownloadList.mjs +6 -8
- package/lib/FAQs/FAQs.cjs +15 -12
- package/lib/FAQs/FAQs.mjs +13 -10
- package/lib/FeaturePost/FeaturePost.cjs +23 -17
- package/lib/FeaturePost/FeaturePost.mjs +18 -12
- package/lib/Highlights/Highlights.cjs +11 -12
- package/lib/Highlights/Highlights.mjs +11 -12
- package/lib/InlineLinkGroup/InlineLinkGroup.cjs +25 -0
- package/lib/InlineLinkGroup/InlineLinkGroup.mjs +23 -0
- package/lib/InlineLinkGroup/styles.css +1 -0
- package/lib/LinkTile/LinkTile.cjs +6 -6
- package/lib/LinkTile/LinkTile.mjs +4 -4
- package/lib/LinkTile/styles.css +1 -1
- package/lib/ProductNavigation/ProductNavigation.cjs +6 -7
- package/lib/ProductNavigation/ProductNavigation.mjs +3 -4
- package/lib/PromoListing/PromoListing.cjs +7 -8
- package/lib/PromoListing/PromoListing.mjs +5 -6
- package/lib/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.cjs +27 -0
- package/lib/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.mjs +25 -0
- package/lib/PromoListingThumbnailSignpost/styles.css +1 -0
- package/lib/Quote/Quote.cjs +5 -6
- package/lib/Quote/Quote.mjs +3 -4
- package/lib/SectionHeading/SectionHeading.cjs +2 -3
- package/lib/SectionHeading/SectionHeading.mjs +2 -3
- package/lib/Statistics/Statistics.cjs +21 -19
- package/lib/Statistics/Statistics.mjs +21 -19
- package/lib/Statistics/styles.css +1 -1
- package/lib/Summary/Summary.cjs +4 -4
- package/lib/Summary/Summary.mjs +4 -4
- package/lib/ThumbnailSignpost/ThumbnailSignpost.cjs +14 -0
- package/lib/ThumbnailSignpost/ThumbnailSignpost.mjs +8 -0
- package/lib/ThumbnailSignpost/styles.css +1 -0
- package/lib/_shared/cjs/{Accordion-BCJIm1Gq.cjs → Accordion-QqDoB3pY.cjs} +9 -10
- package/lib/_shared/cjs/{Author-D4dKNQem.cjs → Author-aL8YXi7C.cjs} +4 -5
- package/lib/_shared/cjs/{SectionHeading-DeSFM0HV.cjs → SectionHeading-Dj-dJfv3.cjs} +4 -5
- package/lib/_shared/cjs/ThumbnailSignpost-SBnrGooA.cjs +38 -0
- package/lib/_shared/cjs/{tslib.es6-BxB9I209.cjs → filter-attrs-C26zOt4_.cjs} +25 -0
- package/lib/_shared/cjs/{index.es-DzI6hGjj.cjs → index.es-Dq8bYrbW.cjs} +1 -1
- package/lib/_shared/esm/{Accordion-BN_lZk6L.mjs → Accordion-DrOTh90S.mjs} +2 -3
- package/lib/_shared/esm/{Author-HnYsFTPT.mjs → Author-BVCRPgkl.mjs} +1 -2
- package/lib/_shared/esm/{SectionHeading-CpDLCndw.mjs → SectionHeading-DZOg_gYi.mjs} +1 -2
- package/lib/_shared/esm/ThumbnailSignpost-DaZByYIH.mjs +36 -0
- package/lib/_shared/esm/{tslib.es6-D6Wu-xwB.mjs → filter-attrs-D-1kWaCP.mjs} +25 -1
- package/lib/_shared/esm/{index.es-B6Bolkcx.mjs → index.es-Bfdys5__.mjs} +1 -1
- package/lib/index.cjs +218 -173
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +60 -64
- package/lib/index.d.mts +60 -64
- package/lib/index.mjs +216 -173
- package/lib/index.mjs.map +1 -1
- package/lib/styles.css +1 -1
- package/package.json +13 -13
- package/src/components/Accordion/components/AccordionDisclosureList/AccordionDisclosureList.tsx +1 -1
- package/src/components/ActionTile/ActionTile.module.css +56 -37
- package/src/components/ActionTile/ActionTile.tsx +1 -1
- package/src/components/ArticleSidebar/ArticleSidebar.tsx +4 -6
- package/src/components/Author/Author.tsx +0 -3
- package/src/components/BannerWithTabs/BannerWithTabs.tsx +4 -6
- package/src/components/ContentInfoWidget/ContentInfoWidget.tsx +3 -4
- package/src/components/DownloadList/DownloadList.tsx +8 -8
- package/src/components/FAQs/FAQs.tsx +13 -6
- package/src/components/FeaturePost/FeaturePost.tsx +9 -9
- package/src/components/FeaturePost/components/Image/Image.tsx +31 -7
- package/src/components/FeaturePost/types/feature-post-image.ts +2 -0
- package/src/components/Highlights/Highlights.tsx +3 -2
- package/src/components/Highlights/components/HighlightItem/HighlightItem.tsx +3 -2
- package/src/components/Highlights/components/HighlightList/HighlightList.tsx +5 -2
- package/src/components/InlineLinkGroup/InlineLinkGroup.module.css +81 -0
- package/src/components/InlineLinkGroup/InlineLinkGroup.tsx +67 -0
- package/src/components/InlineLinkGroup/index.ts +5 -0
- package/src/components/LinkTile/LinkTile.module.css +62 -26
- package/src/components/LinkTile/LinkTile.tsx +8 -1
- package/src/components/PromoListing/PromoListing.tsx +3 -11
- package/src/components/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.module.css +54 -0
- package/src/components/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.tsx +53 -0
- package/src/components/PromoListingThumbnailSignpost/index.ts +4 -0
- package/src/components/Quote/Quote.tsx +1 -7
- package/src/components/Statistics/Statistics.module.css +0 -10
- package/src/components/Statistics/Statistics.tsx +35 -32
- package/src/components/Summary/Summary.tsx +3 -1
- package/src/components/ThumbnailSignpost/ThumbnailSignpost.module.css +112 -0
- package/src/components/ThumbnailSignpost/ThumbnailSignpost.tsx +100 -0
- package/src/components/ThumbnailSignpost/index.ts +4 -0
- package/src/components/index.ts +3 -1
- package/versions.json +1 -1
- package/lib/HeroLink/HeroLink.cjs +0 -35
- package/lib/HeroLink/HeroLink.mjs +0 -33
- package/lib/HeroLink/styles.css +0 -1
- package/lib/_shared/cjs/filter-attrs-BizjMsy0.cjs +0 -27
- package/lib/_shared/esm/filter-attrs-DZ7RCEZm.mjs +0 -25
- package/src/components/HeroLink/HeroLink.module.css +0 -44
- package/src/components/HeroLink/HeroLink.tsx +0 -136
- package/src/components/HeroLink/index.ts +0 -2
package/lib/index.cjs
CHANGED
|
@@ -24,6 +24,7 @@ var TypographyCard = require('@arc-ui/components/TypographyCard');
|
|
|
24
24
|
var Box = require('@arc-ui/components/Box');
|
|
25
25
|
var Rule = require('@arc-ui/components/Rule');
|
|
26
26
|
var Align = require('@arc-ui/components/Align');
|
|
27
|
+
var Hidden = require('@arc-ui/components/Hidden');
|
|
27
28
|
var TabbedBanner = require('@arc-ui/components/TabbedBanner');
|
|
28
29
|
var Tag = require('@arc-ui/components/Tag');
|
|
29
30
|
var Toast = require('@arc-ui/components/Toast');
|
|
@@ -237,17 +238,17 @@ function requireClassnames () {
|
|
|
237
238
|
var classnamesExports = requireClassnames();
|
|
238
239
|
var classNames = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
|
|
239
240
|
|
|
240
|
-
var styles$
|
|
241
|
+
var styles$m = {"accordion-header":"AccordionHeading-module_accordion-header__8s12f","accordion-header--hasImage":"AccordionHeading-module_accordion-header--hasImage__wbDjW","accordion-header--padded":"AccordionHeading-module_accordion-header--padded__me1JY","accordion-header--headingSizeM":"AccordionHeading-module_accordion-header--headingSizeM__amLfy"};
|
|
241
242
|
|
|
242
243
|
var AccordionHeading = function (_a) {
|
|
243
244
|
var _b, _c;
|
|
244
245
|
var heading = _a.heading, content = _a.content, id = _a.id, _d = _a.isPadded, isPadded = _d === void 0 ? false : _d, _e = _a.headingLevel, headingLevel = _e === void 0 ? "2" : _e, _f = _a.headingSize, headingSize = _f === void 0 ? "xl" : _f, image = _a.image, props = __rest(_a, ["heading", "content", "id", "isPadded", "headingLevel", "headingSize", "image"]);
|
|
245
246
|
return (React.createElement("div", __assign({ className: classNames((_b = {},
|
|
246
|
-
_b[styles$
|
|
247
|
-
_b[styles$
|
|
248
|
-
_b[styles$
|
|
247
|
+
_b[styles$m["accordion-header"]] = true,
|
|
248
|
+
_b[styles$m["accordion-header--padded"]] = isPadded,
|
|
249
|
+
_b[styles$m["accordion-header--headingSizeM"]] = headingSize === "m",
|
|
249
250
|
_b)) }, filterAttrs(props)),
|
|
250
|
-
React.createElement("div", { className: classNames((_c = {}, _c[styles$
|
|
251
|
+
React.createElement("div", { className: classNames((_c = {}, _c[styles$m["accordion-header--hasImage"]] = image, _c)) },
|
|
251
252
|
image && (React.createElement("div", null,
|
|
252
253
|
React.createElement(Image$2.Image, __assign({}, image, { width: 68, fit: "cover" })))),
|
|
253
254
|
React.createElement(Heading.Heading, { level: headingLevel, id: id, size: headingSize }, heading)),
|
|
@@ -256,30 +257,30 @@ var AccordionHeading = function (_a) {
|
|
|
256
257
|
React.createElement(Text.Text, { size: "l", elementType: "p" }, content)))));
|
|
257
258
|
};
|
|
258
259
|
|
|
259
|
-
var styles$
|
|
260
|
+
var styles$l = {"AccordionDisclosureListItem":"AccordionDisclosureList-module_AccordionDisclosureListItem__p8LIT"};
|
|
260
261
|
|
|
261
262
|
var AccordionDisclosureList = function (_a) {
|
|
262
263
|
var disclosureList = _a.disclosureList;
|
|
263
264
|
return (React.createElement("ul", null, disclosureList.map(function (_a) {
|
|
264
265
|
var children = _a.children, summary = _a.summary, _b = _a.isOpen, isOpen = _b === void 0 ? false : _b, _c = _a.indentDetails, indentDetails = _c === void 0 ? false : _c, headingLevel = _a.headingLevel, id = _a.id, props = __rest(_a, ["children", "summary", "isOpen", "indentDetails", "headingLevel", "id"]);
|
|
265
|
-
return (React.createElement("li", { key: id, className: styles$
|
|
266
|
+
return (React.createElement("li", { key: id, className: styles$l.AccordionDisclosureListItem, id: id },
|
|
266
267
|
React.createElement(Disclosure.Disclosure, __assign({ summary: summary, isOpen: isOpen, indentDetails: indentDetails, headingLevel: headingLevel }, filterAttrs(props)), children)));
|
|
267
268
|
})));
|
|
268
269
|
};
|
|
269
270
|
|
|
270
|
-
var styles$
|
|
271
|
+
var styles$k = {"Accordion":"Accordion-module_Accordion__LsXTU"};
|
|
271
272
|
|
|
272
273
|
/**
|
|
273
274
|
* Use the `Accordion` component to package together a title, content and a number of disclosure components into one section (maximum 10).
|
|
274
275
|
*/
|
|
275
276
|
var Accordion = function (_a) {
|
|
276
277
|
var heading = _a.heading, headingLevel = _a.headingLevel, headingSize = _a.headingSize, content = _a.content, id = _a.id, disclosureList = _a.disclosureList, props = __rest(_a, ["heading", "headingLevel", "headingSize", "content", "id", "disclosureList"]);
|
|
277
|
-
return (React.createElement("div", __assign({ className: styles$
|
|
278
|
+
return (React.createElement("div", __assign({ className: styles$k.Accordion }, filterAttrs(props)),
|
|
278
279
|
React.createElement(AccordionHeading, { isPadded: true, id: id, "data-testid": "Accordion-header", heading: heading, headingLevel: headingLevel, headingSize: headingSize, content: content }),
|
|
279
280
|
React.createElement(AccordionDisclosureList, { disclosureList: disclosureList })));
|
|
280
281
|
};
|
|
281
282
|
|
|
282
|
-
var styles$
|
|
283
|
+
var styles$j = {"authorContent":"Author-module_authorContent__TBY7b","largeAvatar":"Author-module_largeAvatar__Vco03"};
|
|
283
284
|
|
|
284
285
|
var Author = function (_a) {
|
|
285
286
|
var name = _a.name, title = _a.title, _b = _a.avatar, avatar = _b === void 0 ? {} : _b, props = __rest(_a, ["name", "title", "avatar"]);
|
|
@@ -290,52 +291,52 @@ var Author = function (_a) {
|
|
|
290
291
|
React.createElement(Grid.Grid, { isFluid: true, isGutterless: true },
|
|
291
292
|
React.createElement(Grid.GridRow, { align: "center" },
|
|
292
293
|
React.createElement(Grid.GridCol, { xs: isLargeAvatar ? 12 : "auto" },
|
|
293
|
-
React.createElement("div", { className: isLargeAvatar ? styles$
|
|
294
|
+
React.createElement("div", { className: isLargeAvatar ? styles$j.largeAvatar : undefined },
|
|
294
295
|
React.createElement(Avatar.Avatar, __assign({}, avatar)))),
|
|
295
296
|
React.createElement(Grid.GridCol, null,
|
|
296
|
-
React.createElement("div", { className: "".concat(!isLargeAvatar && styles$
|
|
297
|
+
React.createElement("div", { className: "".concat(!isLargeAvatar && styles$j.authorContent), "data-testid": "authorContent" },
|
|
297
298
|
React.createElement(Heading.Heading, { size: "xs" }, name),
|
|
298
299
|
React.createElement(Text.Text, { size: "s" }, title)))))));
|
|
299
300
|
};
|
|
300
301
|
|
|
301
302
|
/**
|
|
302
303
|
* Do not edit directly
|
|
303
|
-
* Generated on
|
|
304
|
+
* Generated on Fri, 06 Mar 2026 15:05:14 GMT
|
|
304
305
|
*/
|
|
305
306
|
var ArcSizeBreakpointsS = "636px";
|
|
306
307
|
var ArcSizeBreakpointsM = "768px";
|
|
307
308
|
var ArcSizeBreakpointsL = "1024px";
|
|
308
309
|
var ArcSizeBreakpointsXl = "1280px";
|
|
309
310
|
|
|
310
|
-
var styles$
|
|
311
|
+
var styles$i = {"buttonContainer":"CopyLead-module_buttonContainer__3OaRG","col":"CopyLead-module_col__0Da5H","container":"CopyLead-module_container__I91ym","container--content":"CopyLead-module_container--content__e8LxG","container--media":"CopyLead-module_container--media__QcMWi","container--align-center":"CopyLead-module_container--align-center__Fh1Sd","container--align-top":"CopyLead-module_container--align-top__UIXOZ","list":"CopyLead-module_list__arnJd","listItem":"CopyLead-module_listItem__NscHE","listItemCentered":"CopyLead-module_listItemCentered__Kwdab","listItemIconContainer":"CopyLead-module_listItemIconContainer__dgnhJ","listItemTextContainer":"CopyLead-module_listItemTextContainer__Dl9lw","imgWrapper":"CopyLead-module_imgWrapper__HYP3w","mediaContainer":"CopyLead-module_mediaContainer__PxTnm","content":"CopyLead-module_content__Bja1D","container--reverse":"CopyLead-module_container--reverse__Gq9u8"};
|
|
311
312
|
|
|
312
313
|
var MediaContent$1 = function (_a) {
|
|
313
314
|
var heading = _a.heading, id = _a.id, headingLevel = _a.headingLevel, isHeadingWordWrap = _a.isHeadingWordWrap, children = _a.children;
|
|
314
|
-
return (React.createElement("div", { className: styles$
|
|
315
|
+
return (React.createElement("div", { className: styles$i.mediaContainer },
|
|
315
316
|
React.createElement(Heading.Heading, { id: id, level: headingLevel, isWordWrap: isHeadingWordWrap, size: "xl" }, heading),
|
|
316
|
-
children && (React.createElement("div", { className: styles$
|
|
317
|
+
children && (React.createElement("div", { className: styles$i.content },
|
|
317
318
|
React.createElement(VerticalSpace.VerticalSpace, { size: "24" }),
|
|
318
319
|
React.createElement(Text.Text, { size: "l" }, children)))));
|
|
319
320
|
};
|
|
320
321
|
|
|
321
322
|
var Image$1 = function (_a) {
|
|
322
323
|
var sources = _a.sources, props = __rest(_a, ["sources"]);
|
|
323
|
-
return (React.createElement("div", { className: styles$
|
|
324
|
+
return (React.createElement("div", { className: styles$i.imgWrapper },
|
|
324
325
|
React.createElement(Image$2.Image, __assign({ fadeOnLoad: true }, props), sources &&
|
|
325
326
|
sources.map(function (source) { return React.createElement("source", __assign({ key: source.srcSet }, source)); }))));
|
|
326
327
|
};
|
|
327
328
|
|
|
328
329
|
var IconList = function (_a) {
|
|
329
330
|
var listItems = _a.listItems, isLgScreen = _a.isLgScreen, _b = _a.headingLevel, headingLevel = _b === void 0 ? "3" : _b;
|
|
330
|
-
return (React.createElement("ul", { className: styles$
|
|
331
|
+
return (React.createElement("ul", { className: styles$i.list }, listItems.map(function (_a) {
|
|
331
332
|
var _b;
|
|
332
333
|
var icon = _a.icon, heading = _a.heading, text = _a.text;
|
|
333
|
-
return (React.createElement("li", { key: heading, className: classNames(styles$
|
|
334
|
-
_b[styles$
|
|
334
|
+
return (React.createElement("li", { key: heading, className: classNames(styles$i.listItem, (_b = {},
|
|
335
|
+
_b[styles$i.listItemCentered] = !text,
|
|
335
336
|
_b)) },
|
|
336
|
-
React.createElement("div", { className: styles$
|
|
337
|
+
React.createElement("div", { className: styles$i.listItemIconContainer },
|
|
337
338
|
React.createElement(Icon.Icon, { color: "brand", icon: icon, size: isLgScreen ? 64 : 48 })),
|
|
338
|
-
React.createElement("div", { className: styles$
|
|
339
|
+
React.createElement("div", { className: styles$i.listItemTextContainer },
|
|
339
340
|
React.createElement(Heading.Heading, { level: headingLevel, size: "s" }, heading),
|
|
340
341
|
text && (React.createElement(React.Fragment, null,
|
|
341
342
|
React.createElement(VerticalSpace.VerticalSpace, { size: "8", sizeL: "16" }),
|
|
@@ -343,20 +344,20 @@ var IconList = function (_a) {
|
|
|
343
344
|
})));
|
|
344
345
|
};
|
|
345
346
|
|
|
346
|
-
var Button = function (props) { return (React.createElement("div", { className: styles$
|
|
347
|
+
var Button = function (props) { return (React.createElement("div", { className: styles$i.buttonContainer },
|
|
347
348
|
React.createElement(ButtonV2.ButtonV2, __assign({ isFullWidth: true, buttonStyle: "secondary" }, props)))); };
|
|
348
349
|
|
|
349
350
|
var Container = function (_a) {
|
|
350
351
|
var _b;
|
|
351
352
|
var children = _a.children, isReverseOrder = _a.isReverseOrder, type = _a.type, alignment = _a.alignment;
|
|
352
|
-
return (React.createElement("div", { "data-testid": "copy-lead-container", className: classNames(styles$
|
|
353
|
-
_b[styles$
|
|
353
|
+
return (React.createElement("div", { "data-testid": "copy-lead-container", className: classNames(styles$i.container, styles$i["container--".concat(type)], styles$i["container--align-".concat(alignment)], (_b = {},
|
|
354
|
+
_b[styles$i["container--reverse"]] = isReverseOrder,
|
|
354
355
|
_b)) }, children));
|
|
355
356
|
};
|
|
356
357
|
|
|
357
358
|
var Column = function (_a) {
|
|
358
359
|
var children = _a.children;
|
|
359
|
-
return (React.createElement("div", { className: styles$
|
|
360
|
+
return (React.createElement("div", { className: styles$i.col }, children));
|
|
360
361
|
};
|
|
361
362
|
|
|
362
363
|
var getListHeadingLevel$1 = function (level) {
|
|
@@ -396,16 +397,16 @@ var MediaTemplate = function (_a) {
|
|
|
396
397
|
image && !video && React.createElement(Image$1, __assign({}, image))))));
|
|
397
398
|
};
|
|
398
399
|
|
|
399
|
-
var styles$
|
|
400
|
+
var styles$h = {"section-header":"SectionHeading-module_section-header__iB07I","section-header--hasImage":"SectionHeading-module_section-header--hasImage__Ka3T7","section-header--padded":"SectionHeading-module_section-header--padded__0FXP2"};
|
|
400
401
|
|
|
401
402
|
var SectionHeading = function (_a) {
|
|
402
403
|
var _b, _c;
|
|
403
404
|
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, props = __rest(_a, ["heading", "content", "id", "image", "isHeadingWordWrap", "isPadded", "headingLevel"]);
|
|
404
405
|
return (React.createElement("div", __assign({ className: classNames((_b = {},
|
|
405
|
-
_b[styles$
|
|
406
|
-
_b[styles$
|
|
406
|
+
_b[styles$h["section-header"]] = true,
|
|
407
|
+
_b[styles$h["section-header--padded"]] = isPadded,
|
|
407
408
|
_b)) }, filterAttrs(props)),
|
|
408
|
-
React.createElement("div", { className: classNames((_c = {}, _c[styles$
|
|
409
|
+
React.createElement("div", { className: classNames((_c = {}, _c[styles$h["section-header--hasImage"]] = image, _c)) },
|
|
409
410
|
image && (React.createElement("div", null,
|
|
410
411
|
React.createElement(Image$2.Image, __assign({}, image, { width: 68, fit: "cover" })))),
|
|
411
412
|
React.createElement(Heading.Heading, { level: headingLevel, id: id, size: "xl", isWordWrap: isHeadingWordWrap }, heading)),
|
|
@@ -442,47 +443,50 @@ var CopyLead = function (_a) {
|
|
|
442
443
|
return null;
|
|
443
444
|
};
|
|
444
445
|
|
|
445
|
-
var styles$
|
|
446
|
+
var styles$g = {"headingContainer":"DownloadList-module_headingContainer__PNio8"};
|
|
446
447
|
|
|
447
448
|
var DownloadList = function (_a) {
|
|
448
|
-
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;
|
|
449
|
-
return (React.createElement(
|
|
450
|
-
React.createElement("div", { className: styles$
|
|
449
|
+
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"]);
|
|
450
|
+
return (React.createElement("div", __assign({}, filterAttrs(props)),
|
|
451
|
+
React.createElement("div", { className: styles$g.headingContainer },
|
|
451
452
|
React.createElement(SectionHeading, { id: id, heading: heading, isHeadingWordWrap: isHeadingWordWrap, headingLevel: headingLevel, content: content })),
|
|
452
453
|
React.createElement(VerticalSpace.VerticalSpace, { size: "40" }),
|
|
453
|
-
downloads.map(function (
|
|
454
|
-
React.createElement(Download.Download, __assign({},
|
|
455
|
-
" ",
|
|
454
|
+
downloads.map(function (downloadProps, i) { return (React.createElement(React.Fragment, { key: "download-".concat(i) },
|
|
455
|
+
React.createElement(Download.Download, __assign({}, downloadProps)),
|
|
456
456
|
i !== downloads.length - 1 && React.createElement(VerticalSpace.VerticalSpace, { size: "16" }))); })));
|
|
457
457
|
};
|
|
458
458
|
|
|
459
|
-
var styles$
|
|
459
|
+
var styles$f = {"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"};
|
|
460
460
|
|
|
461
|
+
var scrollToSectionFocusFirstElement = function (item) {
|
|
462
|
+
var _a, _b, _c, _d, _e;
|
|
463
|
+
if (!item.id)
|
|
464
|
+
return;
|
|
465
|
+
(_a = document.getElementById(item.id)) === null || _a === void 0 ? void 0 : _a.scrollIntoView({ behavior: "smooth" });
|
|
466
|
+
// preventScroll avoids interfering with the scroll animation.
|
|
467
|
+
(_e = (_d = document
|
|
468
|
+
.getElementById((_c = (_b = item.disclosureList) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.id)) === null || _d === void 0 ? void 0 : _d.querySelector("summary")) === null || _e === void 0 ? void 0 : _e.focus({ preventScroll: true });
|
|
469
|
+
};
|
|
461
470
|
var FAQs = function (_a) {
|
|
462
471
|
var _b;
|
|
463
472
|
var heading = _a.heading, isHeadingWordWrap = _a.isHeadingWordWrap, content = _a.content, id = _a.id, _c = _a.isPadded, isPadded = _c === void 0 ? false : _c, _d = _a.headingLevel, headingLevel = _d === void 0 ? "2" : _d, image = _a.image, type = _a.type, _e = _a.linkListHeading, linkListHeading = _e === void 0 ? "Skip to section" : _e, accordionData = _a.accordionData, props = __rest(_a, ["heading", "isHeadingWordWrap", "content", "id", "isPadded", "headingLevel", "image", "type", "linkListHeading", "accordionData"]);
|
|
464
|
-
return (React.createElement("div", __assign({ className: styles$
|
|
473
|
+
return (React.createElement("div", __assign({ className: styles$f.FAQs }, filterAttrs(props)),
|
|
465
474
|
React.createElement(SectionHeading, { id: id, isHeadingWordWrap: isHeadingWordWrap, heading: heading, content: content, image: image, headingLevel: headingLevel, isPadded: isPadded }),
|
|
466
|
-
type === "listWithLinks" && (React.createElement("div", { className: styles$
|
|
467
|
-
React.createElement("div", { className: styles$
|
|
475
|
+
type === "listWithLinks" && (React.createElement("div", { className: styles$f.linkListSection },
|
|
476
|
+
React.createElement("div", { className: styles$f.linkListTitle },
|
|
468
477
|
React.createElement(Heading.Heading, { size: "xs" }, linkListHeading)),
|
|
469
478
|
React.createElement("ul", { className: classNames((_b = {},
|
|
470
|
-
_b[styles$
|
|
471
|
-
_b[styles$
|
|
479
|
+
_b[styles$f.linkList] = true,
|
|
480
|
+
_b[styles$f["linkList--padded"]] = isPadded,
|
|
472
481
|
_b)) }, accordionData.map(function (item) {
|
|
473
482
|
var _a;
|
|
474
|
-
return (React.createElement("li", { className: styles$
|
|
483
|
+
return (React.createElement("li", { className: styles$f.linkListItem, key: item.heading },
|
|
475
484
|
React.createElement(Link.Link, { title: item.heading, href: "#".concat(item.id), onClick: function (e) {
|
|
476
485
|
e.preventDefault();
|
|
477
|
-
|
|
478
|
-
var element = document.getElementById(item.id);
|
|
479
|
-
if (element) {
|
|
480
|
-
element.scrollIntoView({ behavior: "smooth" });
|
|
481
|
-
}
|
|
482
|
-
}
|
|
486
|
+
scrollToSectionFocusFirstElement(item);
|
|
483
487
|
} }, (_a = item.altLinkTitle) !== null && _a !== void 0 ? _a : item.heading)));
|
|
484
488
|
})))),
|
|
485
|
-
type !== "tabs" && accordionData && (React.createElement("ul", { className: styles$
|
|
489
|
+
type !== "tabs" && accordionData && (React.createElement("ul", { className: styles$f.accordionList }, accordionData.map(function (item) { return (React.createElement("li", { className: styles$f.accordionListItem, key: item.id },
|
|
486
490
|
React.createElement(Accordion, { id: item.id, heading: item.heading, headingLevel: item.headingLevel, content: item.content, disclosureList: item.disclosureList, headingSize: "m" }),
|
|
487
491
|
React.createElement(VerticalSpace.VerticalSpace, { size: "48", sizeL: "64" }))); }))),
|
|
488
492
|
type === "tabs" && (React.createElement(Tabs.Tabs, { defaultValue: accordionData[0].heading },
|
|
@@ -2679,13 +2683,20 @@ function cleanEscapedString(input) {
|
|
|
2679
2683
|
return matched[1].replace(doubleQuoteRegExp, "'");
|
|
2680
2684
|
}
|
|
2681
2685
|
|
|
2682
|
-
var styles$
|
|
2686
|
+
var styles$e = {"labelDate":"FeaturePost-module_labelDate__NXOgY","googlePlayButtonWrapper":"FeaturePost-module_googlePlayButtonWrapper__GI-ag","imgWrapper":"FeaturePost-module_imgWrapper__r6omd","featurePost":"FeaturePost-module_featurePost__9jY21","featurePostReversed":"FeaturePost-module_featurePostReversed__WQRXm","contentContainer":"FeaturePost-module_contentContainer__kdus7","col":"FeaturePost-module_col__eW8gY"};
|
|
2683
2687
|
|
|
2684
2688
|
var Image = function (_a) {
|
|
2685
|
-
var sources = _a.sources, props = __rest(_a, ["sources"]);
|
|
2686
|
-
return (React.createElement(
|
|
2687
|
-
React.createElement(
|
|
2688
|
-
|
|
2689
|
+
var sources = _a.sources, title = _a.title, description = _a.description, props = __rest(_a, ["sources", "title", "description"]);
|
|
2690
|
+
return (React.createElement(React.Fragment, null,
|
|
2691
|
+
React.createElement("div", { className: styles$e.imgWrapper },
|
|
2692
|
+
React.createElement(Image$2.Image, __assign({ fadeOnLoad: true }, props), sources &&
|
|
2693
|
+
sources.map(function (source) { return React.createElement("source", __assign({ key: source.srcSet }, source)); }))),
|
|
2694
|
+
title && (React.createElement(React.Fragment, null,
|
|
2695
|
+
React.createElement(VerticalSpace.VerticalSpace, { size: "24" }),
|
|
2696
|
+
React.createElement(Heading.Heading, { level: "3", size: "s" }, title),
|
|
2697
|
+
description && (React.createElement(React.Fragment, null,
|
|
2698
|
+
React.createElement(VerticalSpace.VerticalSpace, { size: "16" }),
|
|
2699
|
+
React.createElement(Text.Text, { size: "m" }, description)))))));
|
|
2689
2700
|
};
|
|
2690
2701
|
|
|
2691
2702
|
var VideoPlayer = React.lazy(function () {
|
|
@@ -2715,29 +2726,29 @@ var FeaturePost = function (_a) {
|
|
|
2715
2726
|
var _b;
|
|
2716
2727
|
var heading = _a.heading, id = _a.id, _c = _a.headingLevel, headingLevel = _c === void 0 ? "2" : _c, label = _a.label, image = _a.image, content = _a.content, footer = _a.footer, video = _a.video, isHeadingWordWrap = _a.isHeadingWordWrap, _d = _a.isReverseOrder, isReverseOrder = _d === void 0 ? false : _d, props = __rest(_a, ["heading", "id", "headingLevel", "label", "image", "content", "footer", "video", "isHeadingWordWrap", "isReverseOrder"]);
|
|
2717
2728
|
var isMinWidthArcBreakpointM = useMediaQuery.useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsM, ")"));
|
|
2718
|
-
return (React.createElement("div", __assign({ "data-testid": "feature-post", className: classNames(styles$
|
|
2719
|
-
_b[styles$
|
|
2729
|
+
return (React.createElement("div", __assign({ "data-testid": "feature-post", className: classNames(styles$e.featurePost, (_b = {},
|
|
2730
|
+
_b[styles$e.featurePostReversed] = isReverseOrder,
|
|
2720
2731
|
_b)) }, filterAttrs(props)),
|
|
2721
|
-
React.createElement("div", { className: styles$
|
|
2722
|
-
React.createElement("div", { className: styles$
|
|
2732
|
+
React.createElement("div", { className: styles$e.col },
|
|
2733
|
+
React.createElement("div", { className: styles$e.contentContainer },
|
|
2723
2734
|
label && (React.createElement(Grid.Grid, { isGutterless: true, isFluid: true },
|
|
2724
2735
|
React.createElement(Grid.GridRow, { align: "baseline" },
|
|
2725
2736
|
React.createElement(Grid.GridCol, { xs: 12, m: "auto" },
|
|
2726
2737
|
React.createElement(Heading.Heading, { size: "xxs", fontStyle: "overline" }, label.text)),
|
|
2727
2738
|
React.createElement(Grid.GridCol, { xs: 12, m: "auto" },
|
|
2728
|
-
React.createElement("div", { className: styles$
|
|
2739
|
+
React.createElement("div", { className: styles$e.labelDate },
|
|
2729
2740
|
React.createElement(Text.Text, { size: "xs", tone: "muted" }, isDate(label.date) ? (React.createElement("time", { dateTime: format(label.date, "yyyy-MM-dd") }, format(label.date, "d MMMM yyyy"))) : (React.createElement("span", null, label.date)))))),
|
|
2730
2741
|
React.createElement(VerticalSpace.VerticalSpace, { size: "24" }))),
|
|
2731
2742
|
React.createElement(Heading.Heading, { id: id, level: headingLevel, isWordWrap: isHeadingWordWrap, size: "xl" }, heading),
|
|
2732
2743
|
!isMinWidthArcBreakpointM && (React.createElement("div", { "data-testid": "mobile-img" },
|
|
2733
2744
|
React.createElement(VerticalSpace.VerticalSpace, { size: "40" }),
|
|
2734
2745
|
React.createElement(MediaContent, { image: image, video: video }))),
|
|
2735
|
-
React.createElement(VerticalSpace.VerticalSpace, { size: "
|
|
2736
|
-
React.createElement(Text.Text, { size: "l" }, content),
|
|
2746
|
+
React.createElement(VerticalSpace.VerticalSpace, { size: "24" }),
|
|
2747
|
+
typeof content === "string" ? (React.createElement(Text.Text, { size: "l" }, content)) : (content),
|
|
2737
2748
|
(footer === null || footer === void 0 ? void 0 : footer.type) === "cta" && (React.createElement(React.Fragment, null,
|
|
2738
2749
|
footer.author && (React.createElement(React.Fragment, null,
|
|
2739
|
-
React.createElement(VerticalSpace.VerticalSpace, { size: "
|
|
2740
|
-
React.createElement(Author, {
|
|
2750
|
+
React.createElement(VerticalSpace.VerticalSpace, { size: "40" }),
|
|
2751
|
+
React.createElement(Author, __assign({}, footer.author)))),
|
|
2741
2752
|
React.createElement(VerticalSpace.VerticalSpace, { size: "40" }),
|
|
2742
2753
|
React.createElement(ButtonV2.ButtonV2, __assign({ buttonStyle: "secondary" }, footer.button)))),
|
|
2743
2754
|
(footer === null || footer === void 0 ? void 0 : footer.type) === "appButton" && (React.createElement(React.Fragment, null,
|
|
@@ -2747,10 +2758,10 @@ var FeaturePost = function (_a) {
|
|
|
2747
2758
|
footer.appStore && (React.createElement(Grid.GridCol, { xs: 12, s: "auto" },
|
|
2748
2759
|
React.createElement(AppButton.AppButton, { type: "apple-app-store", screenReaderText: footer.appStore.screenReaderText, url: footer.appStore.url }))),
|
|
2749
2760
|
footer.googlePlay && (React.createElement(Grid.GridCol, { xs: 12, s: "auto" },
|
|
2750
|
-
React.createElement("div", { className: styles$
|
|
2761
|
+
React.createElement("div", { className: styles$e.googlePlayButtonWrapper },
|
|
2751
2762
|
React.createElement(AppButton.AppButton, { type: "google-play", screenReaderText: footer.googlePlay.screenReaderText, url: footer.googlePlay.url })))))))))),
|
|
2752
|
-
isMinWidthArcBreakpointM && (React.createElement("div", { className: styles$
|
|
2753
|
-
React.createElement("div", { "data-testid": "desktop-img", className: styles$
|
|
2763
|
+
isMinWidthArcBreakpointM && (React.createElement("div", { className: styles$e.col },
|
|
2764
|
+
React.createElement("div", { "data-testid": "desktop-img", className: styles$e.imgContainer },
|
|
2754
2765
|
React.createElement(MediaContent, { image: image, video: video }))))));
|
|
2755
2766
|
};
|
|
2756
2767
|
|
|
@@ -2762,7 +2773,7 @@ var FeaturePost = function (_a) {
|
|
|
2762
2773
|
const BtIconArrowRightFill =
|
|
2763
2774
|
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath fill='currentColor' d='M2 16A14 14 0 1 0 16 2 14 14 0 0 0 2 16m16.854-4.354L23.207 16l-4.354 4.354a.5.5 0 0 1-.707-.707l3.147-3.147H9.5a.5.5 0 0 1 0-1h11.793l-3.146-3.146a.5.5 0 0 1 .707-.707'/%3e%3c/svg%3e";
|
|
2764
2775
|
|
|
2765
|
-
var styles$
|
|
2776
|
+
var styles$d = {"highlights":"Highlights-module_highlights__Hf7Zq","highlightItem":"Highlights-module_highlightItem__-N6le","highlights2Column":"Highlights-module_highlights2Column__6qIuI","highlights3Column":"Highlights-module_highlights3Column__qsCMP"};
|
|
2766
2777
|
|
|
2767
2778
|
var getListHeadingLevel = function (level) {
|
|
2768
2779
|
var nextLevel = Math.min(parseInt(level) + 1, 6);
|
|
@@ -2770,10 +2781,10 @@ var getListHeadingLevel = function (level) {
|
|
|
2770
2781
|
};
|
|
2771
2782
|
|
|
2772
2783
|
var HighlightItem = function (_a) {
|
|
2773
|
-
var icon = _a.icon, heading = _a.heading, text = _a.text, link = _a.link, isSmallIcon = _a.isSmallIcon, headingLevel = _a.headingLevel;
|
|
2784
|
+
var icon = _a.icon, heading = _a.heading, text = _a.text, link = _a.link, isSmallIcon = _a.isSmallIcon, headingLevel = _a.headingLevel, props = __rest(_a, ["icon", "heading", "text", "link", "isSmallIcon", "headingLevel"]);
|
|
2774
2785
|
var listHeadingLevel = getListHeadingLevel(headingLevel || "2");
|
|
2775
|
-
return (React.createElement("div", { "data-testid": "highlight-item-container", className: styles$
|
|
2776
|
-
icon && (React.createElement("div", { className: styles$
|
|
2786
|
+
return (React.createElement("div", __assign({ "data-testid": "highlight-item-container", className: styles$d.highlightItem }, filterAttrs(props)),
|
|
2787
|
+
icon && (React.createElement("div", { className: styles$d.Icon },
|
|
2777
2788
|
React.createElement(Icon.Icon, { "data-testid": "highlight-icon", color: "brand", icon: icon, size: isSmallIcon ? 64 : 76 }))),
|
|
2778
2789
|
React.createElement(VerticalSpace.VerticalSpace, { size: "16" }),
|
|
2779
2790
|
React.createElement(Heading.Heading, { level: listHeadingLevel, size: "m" }, heading),
|
|
@@ -2784,11 +2795,11 @@ var HighlightItem = function (_a) {
|
|
|
2784
2795
|
};
|
|
2785
2796
|
|
|
2786
2797
|
var HighlightList = function (_a) {
|
|
2787
|
-
var listItems = _a.listItems, columns = _a.columns, isSmallIcon = _a.isSmallIcon, headingLevel = _a.headingLevel;
|
|
2798
|
+
var listItems = _a.listItems, columns = _a.columns, isSmallIcon = _a.isSmallIcon, headingLevel = _a.headingLevel, props = __rest(_a, ["listItems", "columns", "isSmallIcon", "headingLevel"]);
|
|
2788
2799
|
var id = React.useId();
|
|
2789
|
-
return (React.createElement("div", { "data-testid": "highlights-list", className: classNames(styles$
|
|
2790
|
-
var icon = _a.icon, heading = _a.heading, text = _a.text, link = _a.link;
|
|
2791
|
-
return (React.createElement(HighlightItem, { key: "highlight-".concat(id, "-").concat(i), icon: icon, heading: heading, text: text, link: link, isSmallIcon: isSmallIcon, headingLevel: headingLevel }));
|
|
2800
|
+
return (React.createElement("div", __assign({ "data-testid": "highlights-list", className: classNames(styles$d.highlights, styles$d["highlights".concat(columns, "Column")]) }, filterAttrs(props)), listItems.map(function (_a, i) {
|
|
2801
|
+
var icon = _a.icon, heading = _a.heading, text = _a.text, link = _a.link, itemProps = __rest(_a, ["icon", "heading", "text", "link"]);
|
|
2802
|
+
return (React.createElement(HighlightItem, __assign({ key: "highlight-".concat(id, "-").concat(i), icon: icon, heading: heading, text: text, link: link, isSmallIcon: isSmallIcon, headingLevel: headingLevel }, itemProps)));
|
|
2792
2803
|
})));
|
|
2793
2804
|
};
|
|
2794
2805
|
|
|
@@ -2799,11 +2810,11 @@ var HighlightList = function (_a) {
|
|
|
2799
2810
|
*/
|
|
2800
2811
|
var Highlights = function (_a) {
|
|
2801
2812
|
var _b, _c, _d;
|
|
2802
|
-
var heading = _a.heading, headingLevel = _a.headingLevel, id = _a.id, isHeadingWordWrap = _a.isHeadingWordWrap, content = _a.content, listItems = _a.listItems, _e = _a.columns, columns = _e === void 0 ? "2" : _e, cta = _a.cta;
|
|
2813
|
+
var heading = _a.heading, headingLevel = _a.headingLevel, id = _a.id, isHeadingWordWrap = _a.isHeadingWordWrap, content = _a.content, listItems = _a.listItems, _e = _a.columns, columns = _e === void 0 ? "2" : _e, cta = _a.cta, props = __rest(_a, ["heading", "headingLevel", "id", "isHeadingWordWrap", "content", "listItems", "columns", "cta"]);
|
|
2803
2814
|
var isMaxWidthArcBreakpointXs = useMediaQuery.useMediaQuery("(max-width: 767px)");
|
|
2804
|
-
return (React.createElement("div",
|
|
2815
|
+
return (React.createElement("div", __assign({}, filterAttrs(props)),
|
|
2805
2816
|
React.createElement(SectionHeading, { isPadded: true, id: id, "data-testid": "highlights-header", heading: heading, headingLevel: headingLevel, isHeadingWordWrap: isHeadingWordWrap, content: content }),
|
|
2806
|
-
React.createElement(HighlightList, {
|
|
2817
|
+
React.createElement(HighlightList, { listItems: listItems, columns: columns, isSmallIcon: isMaxWidthArcBreakpointXs, headingLevel: headingLevel }),
|
|
2807
2818
|
cta && (React.createElement(React.Fragment, null,
|
|
2808
2819
|
React.createElement(VerticalSpace.VerticalSpace, { size: "24" }),
|
|
2809
2820
|
React.createElement(ButtonV2.ButtonV2, { label: cta.label, href: cta.href, onClick: cta.onClick, size: "m", ariaLabel: cta.ariaLabel, buttonStyle: cta.buttonStyle, icon: cta.buttonStyle === "compact"
|
|
@@ -2813,7 +2824,7 @@ var Highlights = function (_a) {
|
|
|
2813
2824
|
: undefined, iconPosition: (_d = cta.iconPosition) !== null && _d !== void 0 ? _d : "beforeText" })))));
|
|
2814
2825
|
};
|
|
2815
2826
|
|
|
2816
|
-
var styles$
|
|
2827
|
+
var styles$c = {"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"};
|
|
2817
2828
|
|
|
2818
2829
|
/**
|
|
2819
2830
|
* Do not edit directly
|
|
@@ -2867,7 +2878,7 @@ const BtIconTickAlt2Px =
|
|
|
2867
2878
|
* Use `PromoListing` to give supporting information about a page or proposition in the form of the card components (`ImpactCard`, `InformationCard`, `MediaCard` and `TypographyCard`).
|
|
2868
2879
|
*/
|
|
2869
2880
|
var PromoListing = function (_a) {
|
|
2870
|
-
var heading = _a.heading, content = _a.content, id = _a.id, _b = _a.isCarousel, isCarousel = _b === void 0 ? false : _b, cards = _a.cards, headingLevel = _a.headingLevel, isHeadingWordWrap = _a.isHeadingWordWrap, _c = _a.columns, columns = _c === void 0 ? "2" : _c, _d = _a.button, button = _d === void 0 ? { buttonStyle: "secondary" } : _d, overlineHeadingLevel = _a.overlineHeadingLevel, overlineLabel = _a.overlineLabel;
|
|
2881
|
+
var heading = _a.heading, content = _a.content, id = _a.id, _b = _a.isCarousel, isCarousel = _b === void 0 ? false : _b, cards = _a.cards, headingLevel = _a.headingLevel, isHeadingWordWrap = _a.isHeadingWordWrap, _c = _a.columns, columns = _c === void 0 ? "2" : _c, _d = _a.button, button = _d === void 0 ? { buttonStyle: "secondary" } : _d, overlineHeadingLevel = _a.overlineHeadingLevel, overlineLabel = _a.overlineLabel, props = __rest(_a, ["heading", "content", "id", "isCarousel", "cards", "headingLevel", "isHeadingWordWrap", "columns", "button", "overlineHeadingLevel", "overlineLabel"]);
|
|
2871
2882
|
var componentId = React.useId();
|
|
2872
2883
|
var isMinWidthArcBreakpointL = useMediaQuery.useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsL, ")"));
|
|
2873
2884
|
var isMinWidthArcBreakpointM = useMediaQuery.useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsM, ")"));
|
|
@@ -2899,7 +2910,7 @@ var PromoListing = function (_a) {
|
|
|
2899
2910
|
var CardComponent = CARD_COMPONENTS[card.type];
|
|
2900
2911
|
return React.createElement(CardComponent, __assign({}, card, commonProps));
|
|
2901
2912
|
};
|
|
2902
|
-
return (React.createElement("div", { className: styles$
|
|
2913
|
+
return (React.createElement("div", __assign({ className: styles$c.PromoListing }, filterAttrs(props)),
|
|
2903
2914
|
overlineLabel && (React.createElement(React.Fragment, null,
|
|
2904
2915
|
React.createElement(Heading.Heading, { level: overlineHeadingLevel, fontStyle: "overline" }, overlineLabel),
|
|
2905
2916
|
React.createElement(VerticalSpace.VerticalSpace, { size: "12" }))),
|
|
@@ -2907,44 +2918,44 @@ var PromoListing = function (_a) {
|
|
|
2907
2918
|
button.label && (React.createElement(React.Fragment, null,
|
|
2908
2919
|
React.createElement(ButtonV2.ButtonV2, __assign({}, button, { icon: button.buttonStyle == "compact" ? BtIconArrowRightFill : undefined, size: "m" })),
|
|
2909
2920
|
React.createElement(VerticalSpace.VerticalSpace, { size: "40" }))),
|
|
2910
|
-
isCarousel && !isMinWidthArcBreakpointL ? (React.createElement("div", { className: styles$
|
|
2911
|
-
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$
|
|
2912
|
-
React.createElement("div", { "data-testid": "promoList-card".concat(index), className: styles$
|
|
2921
|
+
isCarousel && !isMinWidthArcBreakpointL ? (React.createElement("div", { className: styles$c.promolistingCarouselWrapper },
|
|
2922
|
+
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$c.cardWrapperCarousel) }, getCard(card))); })))) : (React.createElement("ul", { className: classNames(styles$c.cardGrid, styles$c["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) },
|
|
2923
|
+
React.createElement("div", { "data-testid": "promoList-card".concat(index), className: styles$c.cardWrapper }, getCard(card)))); })))));
|
|
2913
2924
|
};
|
|
2914
2925
|
|
|
2915
|
-
var styles$
|
|
2926
|
+
var styles$b = {"blockQuote":"Quote-module_blockQuote__STj-z","quoteContent":"Quote-module_quoteContent__kWc51","quoteDefault":"Quote-module_quoteDefault__tU5db","quoteSecondary":"Quote-module_quoteSecondary__3Rk3f","quoteIcon":"Quote-module_quoteIcon__HK1TV"};
|
|
2916
2927
|
|
|
2917
2928
|
/**
|
|
2918
2929
|
* Use `Quote` where a quote or testimonial from an existing customer or stakeholder would help build trust and credibility with potential new customers. It's commonly used on product pages where customers would learn about a product or service that we offer.*/
|
|
2919
2930
|
var Quote = function (_a) {
|
|
2920
2931
|
var author = _a.author, _b = _a.styling, styling = _b === void 0 ? "Default" : _b, content = _a.content, citeUrl = _a.citeUrl, props = __rest(_a, ["author", "styling", "content", "citeUrl"]);
|
|
2921
2932
|
return (React.createElement("div", __assign({ className: "community-component--quote", "data-testid": "quote-test" }, filterAttrs(props)),
|
|
2922
|
-
React.createElement("blockquote", { "data-testid": "style-test", className: classNames(styles$
|
|
2923
|
-
React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 100 77", className: styles$
|
|
2933
|
+
React.createElement("blockquote", { "data-testid": "style-test", className: classNames(styles$b.blockQuote, styles$b["quote".concat(styling)]), cite: citeUrl },
|
|
2934
|
+
React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 100 77", className: styles$b.quoteIcon, "aria-hidden": "true" },
|
|
2924
2935
|
React.createElement("path", { d: "M21.8085 76.4706C15.9574 76.4706 10.8156 74.2732 6.38298 69.8783C2.12766 65.4834 0 58.979 0 50.3651C0 40.5206 3.10284 31.1156 9.30851 22.1501C15.6915 13.1846 25.3546 5.80122 38.2979 0L44.1489 11.3387C37.4113 14.3272 31.7376 18.0189 27.1277 22.4138C22.5177 26.6329 19.6809 31.4672 18.617 36.9168C19.8582 36.741 21.0106 36.6531 22.0745 36.6531C27.7482 36.6531 32.4468 38.499 36.1702 42.1907C40.0709 45.8824 42.0213 50.7167 42.0213 56.6937C42.0213 62.4949 39.9823 67.2414 35.9043 70.9331C32.0035 74.6247 27.305 76.4706 21.8085 76.4706ZM77.6596 76.4706C71.8085 76.4706 66.6667 74.2732 62.234 69.8783C57.9787 65.4834 55.8511 58.979 55.8511 50.3651C55.8511 40.5206 58.9539 31.1156 65.1596 22.1501C71.5425 13.1846 81.2057 5.80122 94.1489 0L100 11.3387C93.2624 14.3272 87.5886 18.0189 82.9787 22.4138C78.3688 26.6329 75.5319 31.4672 74.4681 36.9168C75.7092 36.741 76.8617 36.6531 77.9255 36.6531C83.5993 36.6531 88.2979 38.499 92.0213 42.1907C95.922 45.8824 97.8723 50.7167 97.8723 56.6937C97.8723 62.4949 95.8333 67.2414 91.7553 70.9331C87.8546 74.6247 83.156 76.4706 77.6596 76.4706Z" })),
|
|
2925
|
-
React.createElement("p", { className: styles$
|
|
2926
|
-
author &&
|
|
2936
|
+
React.createElement("p", { className: styles$b.quoteContent }, content)),
|
|
2937
|
+
author && React.createElement(Author, __assign({}, author))));
|
|
2927
2938
|
};
|
|
2928
2939
|
|
|
2929
|
-
var styles$
|
|
2940
|
+
var styles$a = {"ruleContainer":"Summary-module_ruleContainer__ydWlG","row":"Summary-module_row__SKV--"};
|
|
2930
2941
|
|
|
2931
2942
|
var Summary = function (_a) {
|
|
2932
|
-
var content = _a.content, _b = _a.noBorder, noBorder = _b === void 0 ? false : _b, _c = _a.headingLevel, headingLevel = _c === void 0 ? "3" : _c;
|
|
2943
|
+
var content = _a.content, _b = _a.noBorder, noBorder = _b === void 0 ? false : _b, _c = _a.headingLevel, headingLevel = _c === void 0 ? "3" : _c, props = __rest(_a, ["content", "noBorder", "headingLevel"]);
|
|
2933
2944
|
var isMinWidthArcBreakpointM = useMediaQuery.useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsM, ")"));
|
|
2934
|
-
return (React.createElement(Box.Box, __assign({ isBorderRadius: true }, (!noBorder ? { borderWidth: "thin" } : { elevationLevel: "1" }), { padding: "24" }),
|
|
2935
|
-
React.createElement("div", { className: styles$
|
|
2945
|
+
return (React.createElement(Box.Box, __assign({ isBorderRadius: true }, (!noBorder ? { borderWidth: "thin" } : { elevationLevel: "1" }), { padding: "24" }, filterAttrs(props)),
|
|
2946
|
+
React.createElement("div", { className: styles$a.row }, content.map(function (_a, i) {
|
|
2936
2947
|
var heading = _a.heading, text = _a.text;
|
|
2937
2948
|
return (React.createElement(React.Fragment, null,
|
|
2938
|
-
React.createElement("div", { className: styles$
|
|
2949
|
+
React.createElement("div", { className: styles$a.col },
|
|
2939
2950
|
React.createElement(Heading.Heading, { size: "s", level: headingLevel }, heading),
|
|
2940
2951
|
React.createElement(VerticalSpace.VerticalSpace, { size: "8" }),
|
|
2941
2952
|
React.createElement(Text.Text, { size: "s" }, text)),
|
|
2942
|
-
i !== content.length - 1 && (React.createElement("div", { className: styles$
|
|
2953
|
+
i !== content.length - 1 && (React.createElement("div", { className: styles$a.ruleContainer },
|
|
2943
2954
|
React.createElement(Rule.Rule, { orientation: isMinWidthArcBreakpointM ? "vertical" : "horizontal" })))));
|
|
2944
2955
|
}))));
|
|
2945
2956
|
};
|
|
2946
2957
|
|
|
2947
|
-
var styles$
|
|
2958
|
+
var styles$9 = {"list":"Statistics-module_list__BI-eQ","mutedText":"Statistics-module_mutedText__MR1JM"};
|
|
2948
2959
|
|
|
2949
2960
|
var getLinkProps = function (link) {
|
|
2950
2961
|
return link.openInNewTab
|
|
@@ -2956,14 +2967,13 @@ var getLinkProps = function (link) {
|
|
|
2956
2967
|
};
|
|
2957
2968
|
|
|
2958
2969
|
var Statistics = function (_a) {
|
|
2959
|
-
var id = _a.id, isHeadingWordWrap = _a.isHeadingWordWrap, headingLevel = _a.headingLevel, heading = _a.heading, content = _a.content, statistics = _a.statistics;
|
|
2970
|
+
var id = _a.id, isHeadingWordWrap = _a.isHeadingWordWrap, headingLevel = _a.headingLevel, heading = _a.heading, content = _a.content, statistics = _a.statistics, props = __rest(_a, ["id", "isHeadingWordWrap", "headingLevel", "heading", "content", "statistics"]);
|
|
2960
2971
|
var componentId = React.useId();
|
|
2961
|
-
return (React.createElement(Columns.Columns,
|
|
2972
|
+
return (React.createElement(Columns.Columns, __assign({ isGutterless: true }, filterAttrs(props)),
|
|
2962
2973
|
React.createElement(Columns.ColumnsCol, { spanM: 9 },
|
|
2963
|
-
React.createElement(SectionHeading, { id: id, heading: heading, isHeadingWordWrap: isHeadingWordWrap, headingLevel: headingLevel, content: content }),
|
|
2964
|
-
React.createElement(VerticalSpace.VerticalSpace, { size: "16" })),
|
|
2974
|
+
React.createElement(SectionHeading, { id: id, heading: heading, isHeadingWordWrap: isHeadingWordWrap, headingLevel: headingLevel, content: content })),
|
|
2965
2975
|
React.createElement(Columns.ColumnsCol, { spanL: 9 },
|
|
2966
|
-
React.createElement("ul", { className: styles$
|
|
2976
|
+
React.createElement("ul", { className: styles$9.list }, statistics.map(function (_a, i) {
|
|
2967
2977
|
var stat = _a.stat, copy = _a.copy, link = _a.link, source = _a.source, sourceUrl = _a.sourceUrl;
|
|
2968
2978
|
return (React.createElement("li", { key: "statistic-".concat(componentId, "-").concat(i) },
|
|
2969
2979
|
i !== 0 && (React.createElement(React.Fragment, null,
|
|
@@ -2973,43 +2983,46 @@ var Statistics = function (_a) {
|
|
|
2973
2983
|
React.createElement(Columns.Columns, null,
|
|
2974
2984
|
React.createElement(Columns.ColumnsCol, { spanS: 6, spanM: 8 },
|
|
2975
2985
|
React.createElement(Align.Align, { vertical: "center" },
|
|
2976
|
-
React.createElement("div", { className: styles$
|
|
2977
|
-
React.createElement(Heading.Heading, { color: "brand", size: "xxl" }, stat)
|
|
2986
|
+
React.createElement("div", { className: styles$9.statWrapper },
|
|
2987
|
+
React.createElement(Heading.Heading, { color: "brand", size: "xxl" }, stat),
|
|
2988
|
+
React.createElement(Hidden.Hidden, { s: true, m: true, l: true, xl: true, xxl: true },
|
|
2989
|
+
React.createElement(VerticalSpace.VerticalSpace, { size: "12" }))))),
|
|
2978
2990
|
React.createElement(Columns.ColumnsCol, { spanS: 6, spanM: 4 },
|
|
2979
|
-
React.createElement(
|
|
2980
|
-
|
|
2981
|
-
React.createElement(
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
React.createElement(
|
|
2985
|
-
|
|
2986
|
-
React.createElement(
|
|
2987
|
-
|
|
2988
|
-
React.createElement(
|
|
2991
|
+
React.createElement(Align.Align, { vertical: "center" },
|
|
2992
|
+
React.createElement(Text.Text, null, copy),
|
|
2993
|
+
link && (React.createElement(React.Fragment, null,
|
|
2994
|
+
React.createElement(VerticalSpace.VerticalSpace, { size: "12" }),
|
|
2995
|
+
React.createElement("a", __assign({ href: link.href, "aria-label": link.ariaLabel }, getLinkProps(link)), link.text))),
|
|
2996
|
+
source && (React.createElement(React.Fragment, null,
|
|
2997
|
+
React.createElement(VerticalSpace.VerticalSpace, { size: "12" }),
|
|
2998
|
+
React.createElement(Text.Text, { size: "xs" },
|
|
2999
|
+
React.createElement("span", { className: styles$9.mutedText }, source)))),
|
|
3000
|
+
sourceUrl && (React.createElement(Text.Text, { size: "xs" },
|
|
3001
|
+
React.createElement("a", { className: styles$9.mutedText, href: sourceUrl }, sourceUrl))))))));
|
|
2989
3002
|
})))));
|
|
2990
3003
|
};
|
|
2991
3004
|
|
|
2992
|
-
var styles$
|
|
3005
|
+
var styles$8 = {"bannerWithTabsHeadingCentered":"BannerWithTabs-module_bannerWithTabsHeadingCentered__upqEO"};
|
|
2993
3006
|
|
|
2994
3007
|
var BannerWithTabs = function (_a) {
|
|
2995
3008
|
var _b;
|
|
2996
|
-
var tabs = _a.tabs, defaultValue = _a.defaultValue, heading = _a.heading, content = _a.content, id = _a.id, isHeadingWordWrap = _a.isHeadingWordWrap, _c = _a.alignTypography, alignTypography = _c === void 0 ? "left" : _c, minHeight = _a.minHeight, minHeightM = _a.minHeightM;
|
|
2997
|
-
return (React.createElement(
|
|
3009
|
+
var tabs = _a.tabs, defaultValue = _a.defaultValue, heading = _a.heading, content = _a.content, id = _a.id, isHeadingWordWrap = _a.isHeadingWordWrap, _c = _a.alignTypography, alignTypography = _c === void 0 ? "left" : _c, minHeight = _a.minHeight, minHeightM = _a.minHeightM, props = __rest(_a, ["tabs", "defaultValue", "heading", "content", "id", "isHeadingWordWrap", "alignTypography", "minHeight", "minHeightM"]);
|
|
3010
|
+
return (React.createElement("div", __assign({}, filterAttrs(props)),
|
|
2998
3011
|
React.createElement("div", { className: classNames((_b = {},
|
|
2999
|
-
_b[styles$
|
|
3012
|
+
_b[styles$8.bannerWithTabsHeadingCentered] = alignTypography === "center",
|
|
3000
3013
|
_b)) },
|
|
3001
3014
|
React.createElement(SectionHeading, { id: id, isHeadingWordWrap: isHeadingWordWrap, heading: heading, content: content, isPadded: alignTypography === "left" ? true : false })),
|
|
3002
3015
|
React.createElement(TabbedBanner.TabbedBanner, { minHeight: minHeight, minHeightM: minHeightM, tabs: tabs, defaultValue: defaultValue })));
|
|
3003
3016
|
};
|
|
3004
3017
|
|
|
3005
|
-
var styles$
|
|
3018
|
+
var styles$7 = {"tagGroup":"ArticleSidebar-module_tagGroup__rIPQc","textContent":"ArticleSidebar-module_textContent__3nCfG","additionalContentContainer":"ArticleSidebar-module_additionalContentContainer__91L4n","shareButtonContainer":"ArticleSidebar-module_shareButtonContainer__iAfHL","shareButton":"ArticleSidebar-module_shareButton__rb-1E"};
|
|
3006
3019
|
|
|
3007
3020
|
/**
|
|
3008
3021
|
* Use `ArticleSidebar` to provide additional information about the article.
|
|
3009
3022
|
*/
|
|
3010
3023
|
var ArticleSidebar = function (_a) {
|
|
3011
3024
|
var _b;
|
|
3012
|
-
var author = _a.author, aboutSection = _a.aboutSection, topics = _a.topics, share = _a.share, additionalContent = _a.additionalContent, linkSection = _a.linkSection;
|
|
3025
|
+
var author = _a.author, aboutSection = _a.aboutSection, topics = _a.topics, share = _a.share, additionalContent = _a.additionalContent, linkSection = _a.linkSection, props = __rest(_a, ["author", "aboutSection", "topics", "share", "additionalContent", "linkSection"]);
|
|
3013
3026
|
var id = React.useId();
|
|
3014
3027
|
var _c = React.useState(false), showToast = _c[0], setShowToast = _c[1];
|
|
3015
3028
|
var url = location.href;
|
|
@@ -3056,9 +3069,9 @@ var ArticleSidebar = function (_a) {
|
|
|
3056
3069
|
: []), true) : [];
|
|
3057
3070
|
var hasTopContent = Boolean(author || aboutSection || additionalContent);
|
|
3058
3071
|
var hasBottomContent = Boolean(linkSection || topics || share);
|
|
3059
|
-
return (React.createElement(
|
|
3072
|
+
return (React.createElement("div", __assign({}, filterAttrs(props)),
|
|
3060
3073
|
React.createElement("div", { className: classNames((_b = {},
|
|
3061
|
-
_b[styles$
|
|
3074
|
+
_b[styles$7.textContent] = hasTopContent,
|
|
3062
3075
|
_b)) },
|
|
3063
3076
|
author && (React.createElement(React.Fragment, null,
|
|
3064
3077
|
React.createElement(Author, __assign({}, author, { avatar: __assign(__assign({}, author.avatar), { size: "xl" }) })))),
|
|
@@ -3069,7 +3082,7 @@ var ArticleSidebar = function (_a) {
|
|
|
3069
3082
|
React.createElement(Text.Text, { size: "s" }, aboutSection.content))),
|
|
3070
3083
|
additionalContent && (React.createElement(React.Fragment, null,
|
|
3071
3084
|
(author || aboutSection) && React.createElement(VerticalSpace.VerticalSpace, { size: "16" }),
|
|
3072
|
-
React.createElement("div", { className: styles$
|
|
3085
|
+
React.createElement("div", { className: styles$7.additionalContentContainer }, additionalContent.map(function (_a) {
|
|
3073
3086
|
var heading = _a.heading, headingLevel = _a.headingLevel, content = _a.content;
|
|
3074
3087
|
return (React.createElement("div", { key: "".concat(id, "-").concat(heading) },
|
|
3075
3088
|
React.createElement(Heading.Heading, { level: headingLevel, size: "xxs" }, heading),
|
|
@@ -3092,7 +3105,7 @@ var ArticleSidebar = function (_a) {
|
|
|
3092
3105
|
linkSection && React.createElement(VerticalSpace.VerticalSpace, { size: "32" }),
|
|
3093
3106
|
React.createElement(Heading.Heading, { level: topics.headingLevel }, topics.heading),
|
|
3094
3107
|
React.createElement(VerticalSpace.VerticalSpace, { size: "16" }),
|
|
3095
|
-
React.createElement("div", { className: styles$
|
|
3108
|
+
React.createElement("div", { className: styles$7.tagGroup }, topics.tags.map(function (tag) { return (React.createElement(Tag.Tag, __assign({ key: "".concat(id, "-").concat(tag.title) }, tag))); })))),
|
|
3096
3109
|
share && (React.createElement(React.Fragment, null,
|
|
3097
3110
|
(linkSection || topics) && (React.createElement("div", { "data-testid": "links-topics-content-rule" },
|
|
3098
3111
|
React.createElement(VerticalSpace.VerticalSpace, { size: "32" }),
|
|
@@ -3100,16 +3113,16 @@ var ArticleSidebar = function (_a) {
|
|
|
3100
3113
|
React.createElement(VerticalSpace.VerticalSpace, { size: "32" }))),
|
|
3101
3114
|
React.createElement(Heading.Heading, { level: share.headingLevel }, share.heading),
|
|
3102
3115
|
React.createElement(VerticalSpace.VerticalSpace, { size: "16" }),
|
|
3103
|
-
React.createElement("div", { className: styles$
|
|
3116
|
+
React.createElement("div", { className: styles$7.shareButtonContainer }, shareButtons.map(function (_a) {
|
|
3104
3117
|
var isButton = _a.isButton, ariaLabel = _a.ariaLabel, href = _a.href, icon = _a.icon, onClick = _a.onClick;
|
|
3105
|
-
return (React.createElement("a", { key: "".concat(id, "-").concat(ariaLabel), role: isButton ? "button" : undefined, target: "_blank", rel: "noreferrer", className: styles$
|
|
3118
|
+
return (React.createElement("a", { key: "".concat(id, "-").concat(ariaLabel), role: isButton ? "button" : undefined, target: "_blank", rel: "noreferrer", className: styles$7.shareButton, "aria-label": ariaLabel, href: href, onClick: isButton ? onClick : undefined },
|
|
3106
3119
|
React.createElement(Icon.Icon, { icon: icon, size: 24 })));
|
|
3107
3120
|
})))),
|
|
3108
3121
|
React.createElement(Toast.Toast, null,
|
|
3109
3122
|
React.createElement(Toast.ToastNotification, { status: "success", title: "Copied to clipboard", isOpen: showToast, onOpenChange: function () { return setShowToast(false); } }))));
|
|
3110
3123
|
};
|
|
3111
3124
|
|
|
3112
|
-
var styles$
|
|
3125
|
+
var styles$6 = {"product-navigation-grid":"ProductNavigation-module_product-navigation-grid__RzFq8","productNavigation-skipLink":"ProductNavigation-module_productNavigation-skipLink__fy8ZJ"};
|
|
3113
3126
|
|
|
3114
3127
|
/**
|
|
3115
3128
|
* Use `ProductNavigation` to give a collection of product information cards collected within a grid that has optional show/hide capability
|
|
@@ -3153,7 +3166,7 @@ var ProductNavigation = function (_a) {
|
|
|
3153
3166
|
var isMinWidthArcBreakpointS = useMediaQuery.useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsS, ")"));
|
|
3154
3167
|
return (React.createElement("div", __assign({}, filterAttrs(props)),
|
|
3155
3168
|
React.createElement(SectionHeading, { isPadded: true, id: id, "data-testid": "ProductNavigation-header", heading: heading, headingLevel: headingLevel, isHeadingWordWrap: isHeadingWordWrap, content: content, image: image }),
|
|
3156
|
-
React.createElement("ul", { className: classNames(styles$
|
|
3169
|
+
React.createElement("ul", { className: classNames(styles$6["product-navigation-grid"]) }, displayList === null || displayList === void 0 ? void 0 : displayList.map(function (cardProps, i) {
|
|
3157
3170
|
var _a;
|
|
3158
3171
|
return (React.createElement("li", { key: "displayList-".concat(i), tabIndex: -1, ref: i === skipLinkCard ? cardRef : undefined, "data-cy": "list-item-".concat(i) },
|
|
3159
3172
|
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" }))));
|
|
@@ -3164,7 +3177,7 @@ var ProductNavigation = function (_a) {
|
|
|
3164
3177
|
? "Show more"
|
|
3165
3178
|
: "Show less", buttonStyle: "secondary", onClick: clickController, isFullWidth: isMinWidthArcBreakpointS ? false : true, isLoading: isLoading })),
|
|
3166
3179
|
displayList.length > cardsToDisplay && (React.createElement(React.Fragment, null,
|
|
3167
|
-
React.createElement("div", { id: "skip-link", className: classNames(styles$
|
|
3180
|
+
React.createElement("div", { id: "skip-link", className: classNames(styles$6["productNavigation-skipLink"]), tabIndex: -1 },
|
|
3168
3181
|
React.createElement(ButtonV2.ButtonV2, { label: "Move to first new card", buttonStyle: "primary", onClick: moveFocus, isFullWidth: isMinWidthArcBreakpointS ? false : true })))),
|
|
3169
3182
|
React.createElement(VisuallyHidden.VisuallyHidden, null,
|
|
3170
3183
|
React.createElement("div", { "aria-live": "polite", id: "aria-live-region", "aria-atomic": true },
|
|
@@ -3177,70 +3190,100 @@ var ProductNavigation = function (_a) {
|
|
|
3177
3190
|
"."))))));
|
|
3178
3191
|
};
|
|
3179
3192
|
|
|
3180
|
-
var styles$
|
|
3193
|
+
var styles$5 = {"container":"ContentInfoWidget-module_container__yaS-8","text":"ContentInfoWidget-module_text__O1BdZ","icon":"ContentInfoWidget-module_icon__LEww1"};
|
|
3181
3194
|
|
|
3182
3195
|
var ContentInfoWidget = function (_a) {
|
|
3183
|
-
var text = _a.text, icon = _a.icon;
|
|
3184
|
-
return (React.createElement("div", { className: styles$
|
|
3185
|
-
React.createElement("div", { className: styles$
|
|
3196
|
+
var text = _a.text, icon = _a.icon, props = __rest(_a, ["text", "icon"]);
|
|
3197
|
+
return (React.createElement("div", __assign({ className: styles$5.container }, filterAttrs(props)),
|
|
3198
|
+
React.createElement("div", { className: styles$5.icon },
|
|
3186
3199
|
React.createElement(Icon.Icon, { size: 20, icon: icon })),
|
|
3187
|
-
React.createElement("div", { className: styles$
|
|
3200
|
+
React.createElement("div", { className: styles$5.text },
|
|
3188
3201
|
React.createElement(Text.Text, { size: "xs", tone: "muted" }, text))));
|
|
3189
3202
|
};
|
|
3190
3203
|
|
|
3191
|
-
var styles$
|
|
3192
|
-
|
|
3193
|
-
/**
|
|
3194
|
-
* Pill-style HeroLink component with default and hover states
|
|
3195
|
-
*/
|
|
3196
|
-
var HeroLink = function (_a) {
|
|
3197
|
-
var _b;
|
|
3198
|
-
var label = _a.label, onClick = _a.onClick, href = _a.href, id = _a.id, rel = _a.rel, target = _a.target, ariaLabel = _a.ariaLabel, ref = _a.ref, props = __rest(_a, ["label", "onClick", "href", "id", "rel", "target", "ariaLabel", "ref"]);
|
|
3199
|
-
var HeroLinkClasses = classNames(styles$2.heroLink, (_b = {},
|
|
3200
|
-
_b[styles$2["heroLink--emptyLabel"]] = !label,
|
|
3201
|
-
_b));
|
|
3202
|
-
var commonProps = __assign({ id: id, onClick: onClick, ref: ref }, props);
|
|
3203
|
-
if (href) {
|
|
3204
|
-
return (React.createElement("a", __assign({}, commonProps, { className: HeroLinkClasses, href: href, rel: rel, "aria-label": ariaLabel, target: target }),
|
|
3205
|
-
React.createElement("span", { className: styles$2["heroLink-inner"] },
|
|
3206
|
-
label && React.createElement("span", { className: styles$2["heroLink-label"] }, label),
|
|
3207
|
-
React.createElement("span", { className: styles$2["heroLink-icon"] },
|
|
3208
|
-
React.createElement(Icon.Icon, { testId: "hero-link-icon", size: 24, icon: BtIconArrowAltRight })))));
|
|
3209
|
-
}
|
|
3210
|
-
return (React.createElement("button", __assign({}, commonProps, { className: HeroLinkClasses, "aria-label": ariaLabel }),
|
|
3211
|
-
React.createElement("span", { className: styles$2["heroLink-inner"] },
|
|
3212
|
-
label && React.createElement("span", { className: styles$2["heroLink-label"] }, label),
|
|
3213
|
-
React.createElement("span", { className: styles$2["heroLink-icon"] },
|
|
3214
|
-
React.createElement(Icon.Icon, { testId: "hero-link-icon", size: 24, icon: BtIconArrowAltRight })))));
|
|
3215
|
-
};
|
|
3216
|
-
|
|
3217
|
-
var styles$1 = {"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"};
|
|
3204
|
+
var styles$4 = {"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"};
|
|
3218
3205
|
|
|
3219
3206
|
var ActionTile = function (_a) {
|
|
3220
3207
|
var _b;
|
|
3221
3208
|
var icon = _a.icon, heading = _a.heading, _c = _a.isActive, isActive = _c === void 0 ? false : _c, onClick = _a.onClick, className = _a.className, props = __rest(_a, ["icon", "heading", "isActive", "onClick", "className"]);
|
|
3222
|
-
var tileClasses = classNames(styles$
|
|
3223
|
-
_b[styles$
|
|
3209
|
+
var tileClasses = classNames(styles$4["action-tile"], (_b = {},
|
|
3210
|
+
_b[styles$4["action-tile--active"]] = isActive,
|
|
3224
3211
|
_b), className);
|
|
3225
3212
|
var content = (React.createElement(React.Fragment, null,
|
|
3226
|
-
React.createElement("div", { className: styles$
|
|
3227
|
-
icon && (React.createElement("div", { className: styles$
|
|
3213
|
+
React.createElement("div", { className: styles$4["action-tile-content"] },
|
|
3214
|
+
icon && (React.createElement("div", { className: styles$4["action-tile-icon"] },
|
|
3228
3215
|
React.createElement(Icon.Icon, { icon: icon, size: 48 }))),
|
|
3229
|
-
React.createElement("h3", { className: styles$
|
|
3230
|
-
isActive && (React.createElement("div", { className: styles$
|
|
3231
|
-
React.createElement(Icon.Icon, { icon: BtIconTickAlt2Px, size:
|
|
3216
|
+
React.createElement("h3", { className: styles$4["action-tile-heading"] }, heading)),
|
|
3217
|
+
isActive && (React.createElement("div", { className: styles$4["action-tile-tick"] },
|
|
3218
|
+
React.createElement(Icon.Icon, { icon: BtIconTickAlt2Px, size: 28 })))));
|
|
3232
3219
|
return (React.createElement("div", __assign({ className: tileClasses, onClick: onClick }, filterAttrs(props)), content));
|
|
3233
3220
|
};
|
|
3234
3221
|
|
|
3235
|
-
var styles = {"link-tile":"LinkTile-module_link-tile__xVUP3","link-tile-content":"LinkTile-module_link-tile-content__H-QN8","link-tile-text":"LinkTile-module_link-tile-text__0K6zf"};
|
|
3222
|
+
var styles$3 = {"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"};
|
|
3236
3223
|
|
|
3237
3224
|
var LinkTile = function (_a) {
|
|
3238
3225
|
var text = _a.text, href = _a.href, _b = _a.showIcon, showIcon = _b === void 0 ? true : _b, className = _a.className, props = __rest(_a, ["text", "href", "showIcon", "className"]);
|
|
3239
3226
|
var Component = href ? "a" : "div";
|
|
3240
3227
|
var linkProps = href ? { href: href } : {};
|
|
3241
|
-
return (React.createElement(Component, __assign({ className: classNames(styles["link-tile"], className) }, linkProps, filterAttrs(props)), text && (React.createElement("div", { className: styles["link-tile-content"] },
|
|
3242
|
-
React.createElement("span", { className: styles["link-tile-text"] }, text),
|
|
3243
|
-
showIcon && React.createElement(
|
|
3228
|
+
return (React.createElement(Component, __assign({ className: classNames(styles$3["link-tile"], className) }, linkProps, filterAttrs(props)), text && (React.createElement("div", { className: styles$3["link-tile-content"] },
|
|
3229
|
+
React.createElement("span", { className: styles$3["link-tile-text"] }, text),
|
|
3230
|
+
showIcon && (React.createElement("span", { className: styles$3["link-tile-icon"] },
|
|
3231
|
+
React.createElement(Icon.Icon, { icon: BtIconArrowAltRight, size: 32 })))))));
|
|
3232
|
+
};
|
|
3233
|
+
|
|
3234
|
+
var styles$2 = {"quick-help":"InlineLinkGroup-module_quick-help__cMTpB","quick-help-label":"InlineLinkGroup-module_quick-help-label__VLKen","quick-help-container":"InlineLinkGroup-module_quick-help-container__IStTk","quick-help-item":"InlineLinkGroup-module_quick-help-item__QTIMl","quick-help-separator":"InlineLinkGroup-module_quick-help-separator__qJE0q","quick-help-separator-line":"InlineLinkGroup-module_quick-help-separator-line__VbCVI"};
|
|
3235
|
+
|
|
3236
|
+
var InlineLinkGroup = function (_a) {
|
|
3237
|
+
var label = _a.label, links = _a.links, props = __rest(_a, ["label", "links"]);
|
|
3238
|
+
return (React.createElement("div", __assign({ className: styles$2["quick-help"] }, filterAttrs(props)),
|
|
3239
|
+
label && (React.createElement("div", { className: styles$2["quick-help-label"] },
|
|
3240
|
+
React.createElement(Heading.Heading, { size: "xxs", fontStyle: "overline" }, label))),
|
|
3241
|
+
React.createElement("ul", { className: styles$2["quick-help-container"] }, links.map(function (link, index) { return (React.createElement(React.Fragment, { key: index },
|
|
3242
|
+
React.createElement("li", { className: styles$2["quick-help-item"] },
|
|
3243
|
+
React.createElement(Link.Link, { href: link.href, onClick: link.onClick, "aria-label": link.ariaLabel }, link.label),
|
|
3244
|
+
React.createElement(Icon.Icon, { icon: BtIconArrowAltRight, size: 24, color: "brand" })),
|
|
3245
|
+
index < links.length - 1 && (React.createElement("li", { className: styles$2["quick-help-separator"], "aria-hidden": "true" },
|
|
3246
|
+
React.createElement("div", { className: styles$2["quick-help-separator-line"] }))))); }))));
|
|
3247
|
+
};
|
|
3248
|
+
|
|
3249
|
+
var styles$1 = {"thumbnailSignpost":"ThumbnailSignpost-module_thumbnailSignpost__Yf26b","isLink":"ThumbnailSignpost-module_isLink__FucdG","content":"ThumbnailSignpost-module_content__XG9oj","heading":"ThumbnailSignpost-module_heading__mTrpJ","image":"ThumbnailSignpost-module_image__syGZj","thumbnailButton":"ThumbnailSignpost-module_thumbnailButton__Nn-NR","buttonIcon":"ThumbnailSignpost-module_buttonIcon__ydmza"};
|
|
3250
|
+
|
|
3251
|
+
/** Use `ThumbnailSignpost` to highlight key information or navigation points with an accompanying thumbnail image or icon. */
|
|
3252
|
+
var ThumbnailSignpost = function (_a) {
|
|
3253
|
+
var _b;
|
|
3254
|
+
var text = _a.text, title = _a.title, img = _a.img, onClick = _a.onClick, buttonLabel = _a.buttonLabel, props = __rest(_a, ["text", "title", "img", "onClick", "buttonLabel"]);
|
|
3255
|
+
return (React.createElement("div", __assign({ className: classNames(styles$1.thumbnailSignpost, (_b = {},
|
|
3256
|
+
_b[styles$1.isLink] = onClick,
|
|
3257
|
+
_b)), onClick: onClick, "aria-label": title, tabIndex: onClick ? 0 : -1 }, (onClick && { role: "button" }), filterAttrs(props)),
|
|
3258
|
+
img && (React.createElement("div", { className: styles$1.image },
|
|
3259
|
+
React.createElement(Image$2.Image, __assign({}, img)))),
|
|
3260
|
+
React.createElement("div", { className: styles$1.content },
|
|
3261
|
+
React.createElement("span", { className: styles$1.heading }, title),
|
|
3262
|
+
React.createElement(VerticalSpace.VerticalSpace, { size: "8" }),
|
|
3263
|
+
text,
|
|
3264
|
+
buttonLabel && onClick && (React.createElement(React.Fragment, null,
|
|
3265
|
+
React.createElement(VerticalSpace.VerticalSpace, { size: "8" }),
|
|
3266
|
+
React.createElement("div", { className: styles$1.thumbnailButton },
|
|
3267
|
+
React.createElement("span", { className: styles$1.buttonIcon, role: "img", style: {
|
|
3268
|
+
height: 24,
|
|
3269
|
+
width: 24,
|
|
3270
|
+
maskImage: "url(\"".concat(BtIconArrowRightFill, "\")"),
|
|
3271
|
+
WebkitMaskImage: "url(\"".concat(BtIconArrowRightFill, "\")"),
|
|
3272
|
+
} }),
|
|
3273
|
+
React.createElement(Heading.Heading, { size: "xxs" }, buttonLabel)))))));
|
|
3274
|
+
};
|
|
3275
|
+
|
|
3276
|
+
var styles = {"PromoListingThumbnailSignpost":"PromoListingThumbnailSignpost-module_PromoListingThumbnailSignpost__0HTPV","list":"PromoListingThumbnailSignpost-module_list__E9l0E"};
|
|
3277
|
+
|
|
3278
|
+
/**
|
|
3279
|
+
* Use `PromoListingThumbnailSignpost` to give supporting information about a page or proposition in the form of the ThumbnailSignposts components.
|
|
3280
|
+
*/
|
|
3281
|
+
var PromoListingThumbnailSignpost = function (_a) {
|
|
3282
|
+
var _b = _a.isPadded, isPadded = _b === void 0 ? true : _b, heading = _a.heading, content = _a.content, headingLevel = _a.headingLevel, thumbnailList = _a.thumbnailList, props = __rest(_a, ["isPadded", "heading", "content", "headingLevel", "thumbnailList"]);
|
|
3283
|
+
return (React.createElement("div", __assign({ className: styles.PromoListingThumbnailSignpost }, filterAttrs(props)),
|
|
3284
|
+
React.createElement(SectionHeading, { isPadded: isPadded, "data-testid": "PromoListingThumbnailSignpost-header", heading: heading, headingLevel: headingLevel, content: content }),
|
|
3285
|
+
React.createElement("ul", { className: styles.list }, thumbnailList.map(function (thumbnail, index) { return (React.createElement("li", { key: index },
|
|
3286
|
+
React.createElement(ThumbnailSignpost, __assign({}, thumbnail)))); }))));
|
|
3244
3287
|
};
|
|
3245
3288
|
|
|
3246
3289
|
exports.Accordion = Accordion;
|
|
@@ -3253,13 +3296,15 @@ exports.CopyLead = CopyLead;
|
|
|
3253
3296
|
exports.DownloadList = DownloadList;
|
|
3254
3297
|
exports.FAQs = FAQs;
|
|
3255
3298
|
exports.FeaturePost = FeaturePost;
|
|
3256
|
-
exports.HeroLink = HeroLink;
|
|
3257
3299
|
exports.Highlights = Highlights;
|
|
3300
|
+
exports.InlineLinkGroup = InlineLinkGroup;
|
|
3258
3301
|
exports.LinkTile = LinkTile;
|
|
3259
3302
|
exports.ProductNavigation = ProductNavigation;
|
|
3260
3303
|
exports.PromoListing = PromoListing;
|
|
3304
|
+
exports.PromoListingThumbnailSignpost = PromoListingThumbnailSignpost;
|
|
3261
3305
|
exports.Quote = Quote;
|
|
3262
3306
|
exports.SectionHeading = SectionHeading;
|
|
3263
3307
|
exports.Statistics = Statistics;
|
|
3264
3308
|
exports.Summary = Summary;
|
|
3309
|
+
exports.ThumbnailSignpost = ThumbnailSignpost;
|
|
3265
3310
|
//# sourceMappingURL=index.cjs.map
|