@arc-ui/community-components 3.3.0 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +132 -12
- package/CHANGELOG.md +12 -0
- package/lib/Accordion/Accordion.mjs +1 -1
- package/lib/ActionTile/ActionTile.mjs +9 -9
- package/lib/ArticleSidebar/ArticleSidebar.mjs +44 -44
- package/lib/Author/Author.mjs +1 -1
- package/lib/BannerWithTabs/BannerWithTabs.mjs +6 -6
- package/lib/ContentInfoWidget/ContentInfoWidget.mjs +6 -6
- package/lib/CopyLead/CopyLead.cjs +18 -8
- package/lib/CopyLead/CopyLead.mjs +59 -49
- package/lib/DownloadList/DownloadList.mjs +9 -9
- package/lib/FAQs/FAQs.mjs +21 -21
- package/lib/FeaturePost/FeaturePost.cjs +1 -1
- package/lib/FeaturePost/FeaturePost.mjs +53 -53
- package/lib/Highlights/Highlights.mjs +19 -19
- package/lib/InlineLinkGroup/InlineLinkGroup.mjs +10 -10
- package/lib/LinkTile/LinkTile.mjs +5 -5
- package/lib/ProductNavigation/ProductNavigation.cjs +1 -1
- package/lib/ProductNavigation/ProductNavigation.mjs +17 -17
- package/lib/PromoListing/PromoListing.cjs +1 -1
- package/lib/PromoListing/PromoListing.mjs +15 -15
- package/lib/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.cjs +2 -2
- package/lib/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.mjs +8 -8
- package/lib/Quote/Quote.mjs +8 -8
- package/lib/SectionHeading/SectionHeading.mjs +1 -1
- package/lib/Statistics/Statistics.mjs +31 -31
- package/lib/Summary/Summary.cjs +1 -1
- package/lib/Summary/Summary.mjs +11 -11
- package/lib/ThumbnailSignpost/ThumbnailSignpost.mjs +1 -1
- package/lib/VideoHeroCard/VideoHeroCard.cjs +76 -0
- package/lib/VideoHeroCard/VideoHeroCard.mjs +74 -0
- package/lib/VideoPortraitCard/VideoPortraitCard.cjs +22 -0
- package/lib/VideoPortraitCard/VideoPortraitCard.mjs +20 -0
- package/lib/_shared/cjs/Preview-Dx1kCzJ1.cjs +102 -0
- package/lib/_shared/cjs/VideoCardThumbnail-BqYgpk0u.cjs +440 -0
- package/lib/_shared/cjs/dash.all.min-BPXzla24.cjs +6 -0
- package/lib/_shared/cjs/hls-Ckhp5fVA.cjs +36628 -0
- package/lib/_shared/cjs/index-DjiIVIaV.cjs +96 -0
- package/lib/_shared/cjs/index-oGP6D6gL.cjs +14826 -0
- package/lib/_shared/cjs/{index.es-Dq8bYrbW.cjs → index.es-B0J3cvrY.cjs} +1 -1
- package/lib/_shared/cjs/mixin-BFwaXKGB.cjs +1027 -0
- package/lib/_shared/cjs/react-CEvhi3LL.cjs +737 -0
- package/lib/_shared/cjs/react-CqsEClV0.cjs +466 -0
- package/lib/_shared/cjs/react-DE6M3seI.cjs +496 -0
- package/lib/_shared/cjs/react-Dri2yjKm.cjs +554 -0
- package/lib/_shared/cjs/react-DxToimBj.cjs +4239 -0
- package/lib/_shared/cjs/react-JTfV8OSA.cjs +325 -0
- package/lib/_shared/cjs/react-caXJFZ8W.cjs +400 -0
- package/lib/_shared/cjs/react-fep2ei7j.cjs +727 -0
- package/lib/_shared/esm/{Accordion-DrOTh90S.mjs → Accordion-DtU7jbCv.mjs} +15 -15
- package/lib/_shared/esm/Author-CJQFrQM9.mjs +27 -0
- package/lib/_shared/esm/Preview-CmbKOgEO.mjs +100 -0
- package/lib/_shared/esm/{SectionHeading-DZOg_gYi.mjs → SectionHeading-BskdQ2Tt.mjs} +9 -9
- package/lib/_shared/esm/{ThumbnailSignpost-DaZByYIH.mjs → ThumbnailSignpost-CBSdQiHw.mjs} +12 -12
- package/lib/_shared/esm/VideoCardThumbnail-VfOKmPCv.mjs +437 -0
- package/lib/_shared/esm/dash.all.min-CbWI_8dN.mjs +4 -0
- package/lib/_shared/esm/hls-AFbJDS9D.mjs +36625 -0
- package/lib/_shared/esm/index-CrcIrdjn.mjs +14799 -0
- package/lib/_shared/esm/index-DYnuIO1L.mjs +94 -0
- package/lib/_shared/esm/{index.es-Bfdys5__.mjs → index.es-DraZ-qKh.mjs} +1 -1
- package/lib/_shared/esm/mixin-BGGG8VrM.mjs +1024 -0
- package/lib/_shared/esm/react-BGimq-TB.mjs +4237 -0
- package/lib/_shared/esm/react-BHT4t_eQ.mjs +494 -0
- package/lib/_shared/esm/react-BSd0sGcO.mjs +464 -0
- package/lib/_shared/esm/react-CSr43fZV.mjs +552 -0
- package/lib/_shared/esm/react-Ca6E7Fr-.mjs +398 -0
- package/lib/_shared/esm/react-DG070IvZ.mjs +725 -0
- package/lib/_shared/esm/react-DZyqy7W7.mjs +735 -0
- package/lib/_shared/esm/react-WW_9iHcl.mjs +323 -0
- package/lib/index.cjs +249 -123
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +55 -2
- package/lib/index.d.mts +55 -2
- package/lib/index.mjs +248 -124
- package/lib/index.mjs.map +1 -1
- package/lib/styles.css +1 -1
- package/package.json +17 -14
- package/rollup.config.js +1 -1
- package/src/components/CopyLead/components/MediaContent/MediaContent.tsx +7 -6
- package/src/components/CopyLead/templates/Content/Content.tsx +5 -3
- package/src/components/CopyLead/templates/Media/Media.tsx +5 -6
- package/src/components/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.tsx +2 -0
- package/src/components/VideoHeroCard/VideoHeroCard.tsx +63 -0
- package/src/components/VideoHeroCard/components/VideoHeroCardContent/VideoHeroCardContent.module.css +32 -0
- package/src/components/VideoHeroCard/components/VideoHeroCardContent/VideoHeroCardContent.tsx +97 -0
- package/src/components/VideoHeroCard/components/VideoHeroCardContent/index.ts +4 -0
- package/src/components/VideoHeroCard/index.ts +1 -0
- package/src/components/VideoPortraitCard/VideoPortraitCard.tsx +54 -0
- package/src/components/VideoPortraitCard/index.ts +4 -0
- package/src/components/index.ts +2 -0
- package/src/internal/MultiLineText/MultiLineText.tsx +25 -0
- package/src/internal/MultiLineText/index.ts +1 -0
- package/src/internal/VideoCardPlayer/VideoCardPlayer.module.css +54 -0
- package/src/internal/VideoCardPlayer/VideoCardPlayer.tsx +62 -0
- package/src/internal/VideoCardPlayer/components/VideoCardPlayIcon/VideoCardPlayIcon.module.css +41 -0
- package/src/internal/VideoCardPlayer/components/VideoCardPlayIcon/VideoCardPlayIcon.tsx +28 -0
- package/src/internal/VideoCardPlayer/components/VideoCardPlayIcon/index.ts +1 -0
- package/src/internal/VideoCardPlayer/components/VideoCardThumbnail/VideoCardThumbnail.module.css +58 -0
- package/src/internal/VideoCardPlayer/components/VideoCardThumbnail/VideoCardThumbnail.tsx +38 -0
- package/src/internal/VideoCardPlayer/components/VideoCardThumbnail/index.ts +1 -0
- package/src/internal/VideoCardPlayer/index.ts +2 -0
- package/src/internal/VideoCardPlayer/types/player-props.ts +6 -0
- package/versions.json +1 -1
- package/lib/_shared/esm/Author-BVCRPgkl.mjs +0 -27
package/lib/index.mjs
CHANGED
|
@@ -27,6 +27,10 @@ import { TabbedBanner } from '@arc-ui/components/TabbedBanner';
|
|
|
27
27
|
import { Tag } from '@arc-ui/components/Tag';
|
|
28
28
|
import { Toast, ToastNotification } from '@arc-ui/components/Toast';
|
|
29
29
|
import { VisuallyHidden } from '@arc-ui/components/VisuallyHidden';
|
|
30
|
+
import { Visible } from '@arc-ui/components/Visible';
|
|
31
|
+
import { Spacing } from '@arc-ui/components/Spacing';
|
|
32
|
+
import ReactPlayer from 'react-player';
|
|
33
|
+
import { Surface } from '@arc-ui/components/Surface';
|
|
30
34
|
|
|
31
35
|
/******************************************************************************
|
|
32
36
|
Copyright (c) Microsoft Corporation.
|
|
@@ -236,17 +240,17 @@ function requireClassnames () {
|
|
|
236
240
|
var classnamesExports = requireClassnames();
|
|
237
241
|
var classNames = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
|
|
238
242
|
|
|
239
|
-
var styles$
|
|
243
|
+
var styles$q = {"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"};
|
|
240
244
|
|
|
241
245
|
var AccordionHeading = function (_a) {
|
|
242
246
|
var _b, _c;
|
|
243
247
|
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"]);
|
|
244
248
|
return (React.createElement("div", __assign({ className: classNames((_b = {},
|
|
245
|
-
_b[styles$
|
|
246
|
-
_b[styles$
|
|
247
|
-
_b[styles$
|
|
249
|
+
_b[styles$q["accordion-header"]] = true,
|
|
250
|
+
_b[styles$q["accordion-header--padded"]] = isPadded,
|
|
251
|
+
_b[styles$q["accordion-header--headingSizeM"]] = headingSize === "m",
|
|
248
252
|
_b)) }, filterAttrs(props)),
|
|
249
|
-
React.createElement("div", { className: classNames((_c = {}, _c[styles$
|
|
253
|
+
React.createElement("div", { className: classNames((_c = {}, _c[styles$q["accordion-header--hasImage"]] = image, _c)) },
|
|
250
254
|
image && (React.createElement("div", null,
|
|
251
255
|
React.createElement(Image$2, __assign({}, image, { width: 68, fit: "cover" })))),
|
|
252
256
|
React.createElement(Heading, { level: headingLevel, id: id, size: headingSize }, heading)),
|
|
@@ -255,30 +259,30 @@ var AccordionHeading = function (_a) {
|
|
|
255
259
|
React.createElement(Text, { size: "l", elementType: "p" }, content)))));
|
|
256
260
|
};
|
|
257
261
|
|
|
258
|
-
var styles$
|
|
262
|
+
var styles$p = {"AccordionDisclosureListItem":"AccordionDisclosureList-module_AccordionDisclosureListItem__p8LIT"};
|
|
259
263
|
|
|
260
264
|
var AccordionDisclosureList = function (_a) {
|
|
261
265
|
var disclosureList = _a.disclosureList;
|
|
262
266
|
return (React.createElement("ul", null, disclosureList.map(function (_a) {
|
|
263
267
|
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"]);
|
|
264
|
-
return (React.createElement("li", { key: id, className: styles$
|
|
268
|
+
return (React.createElement("li", { key: id, className: styles$p.AccordionDisclosureListItem, id: id },
|
|
265
269
|
React.createElement(Disclosure, __assign({ summary: summary, isOpen: isOpen, indentDetails: indentDetails, headingLevel: headingLevel }, filterAttrs(props)), children)));
|
|
266
270
|
})));
|
|
267
271
|
};
|
|
268
272
|
|
|
269
|
-
var styles$
|
|
273
|
+
var styles$o = {"Accordion":"Accordion-module_Accordion__LsXTU"};
|
|
270
274
|
|
|
271
275
|
/**
|
|
272
276
|
* Use the `Accordion` component to package together a title, content and a number of disclosure components into one section (maximum 10).
|
|
273
277
|
*/
|
|
274
278
|
var Accordion = function (_a) {
|
|
275
279
|
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"]);
|
|
276
|
-
return (React.createElement("div", __assign({ className: styles$
|
|
280
|
+
return (React.createElement("div", __assign({ className: styles$o.Accordion }, filterAttrs(props)),
|
|
277
281
|
React.createElement(AccordionHeading, { isPadded: true, id: id, "data-testid": "Accordion-header", heading: heading, headingLevel: headingLevel, headingSize: headingSize, content: content }),
|
|
278
282
|
React.createElement(AccordionDisclosureList, { disclosureList: disclosureList })));
|
|
279
283
|
};
|
|
280
284
|
|
|
281
|
-
var styles$
|
|
285
|
+
var styles$n = {"authorContent":"Author-module_authorContent__TBY7b","largeAvatar":"Author-module_largeAvatar__Vco03"};
|
|
282
286
|
|
|
283
287
|
var Author = function (_a) {
|
|
284
288
|
var name = _a.name, title = _a.title, _b = _a.avatar, avatar = _b === void 0 ? {} : _b, props = __rest(_a, ["name", "title", "avatar"]);
|
|
@@ -289,52 +293,62 @@ var Author = function (_a) {
|
|
|
289
293
|
React.createElement(Grid, { isFluid: true, isGutterless: true },
|
|
290
294
|
React.createElement(GridRow, { align: "center" },
|
|
291
295
|
React.createElement(GridCol, { xs: isLargeAvatar ? 12 : "auto" },
|
|
292
|
-
React.createElement("div", { className: isLargeAvatar ? styles$
|
|
296
|
+
React.createElement("div", { className: isLargeAvatar ? styles$n.largeAvatar : undefined },
|
|
293
297
|
React.createElement(Avatar, __assign({}, avatar)))),
|
|
294
298
|
React.createElement(GridCol, null,
|
|
295
|
-
React.createElement("div", { className: "".concat(!isLargeAvatar && styles$
|
|
299
|
+
React.createElement("div", { className: "".concat(!isLargeAvatar && styles$n.authorContent), "data-testid": "authorContent" },
|
|
296
300
|
React.createElement(Heading, { size: "xs" }, name),
|
|
297
301
|
React.createElement(Text, { size: "s" }, title)))))));
|
|
298
302
|
};
|
|
299
303
|
|
|
300
304
|
/**
|
|
301
305
|
* Do not edit directly
|
|
302
|
-
* Generated on
|
|
306
|
+
* Generated on Thu, 26 Mar 2026 15:14:44 GMT
|
|
303
307
|
*/
|
|
304
308
|
var ArcSizeBreakpointsS = "636px";
|
|
305
309
|
var ArcSizeBreakpointsM = "768px";
|
|
306
310
|
var ArcSizeBreakpointsL = "1024px";
|
|
307
311
|
var ArcSizeBreakpointsXl = "1280px";
|
|
308
312
|
|
|
309
|
-
var
|
|
313
|
+
var MultiLineText = function (_a) {
|
|
314
|
+
var text = _a.text, textProps = __rest(_a, ["text"]);
|
|
315
|
+
if (!text)
|
|
316
|
+
return null;
|
|
317
|
+
var paragraphs = text.split(/\\n|\n/).filter(function (p) { return p.trim(); });
|
|
318
|
+
return (React.createElement(React.Fragment, null, paragraphs.map(function (paragraph, index) { return (React.createElement("span", { key: "informationcard-text-".concat(index) },
|
|
319
|
+
index > 0 && React.createElement(VerticalSpace, { size: "8" }),
|
|
320
|
+
React.createElement(Text, __assign({}, textProps), paragraph))); })));
|
|
321
|
+
};
|
|
322
|
+
|
|
323
|
+
var styles$m = {"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"};
|
|
310
324
|
|
|
311
325
|
var MediaContent$1 = function (_a) {
|
|
312
|
-
var heading = _a.heading, id = _a.id, headingLevel = _a.headingLevel, isHeadingWordWrap = _a.isHeadingWordWrap,
|
|
313
|
-
return (React.createElement("div", { className: styles$
|
|
326
|
+
var heading = _a.heading, id = _a.id, headingLevel = _a.headingLevel, isHeadingWordWrap = _a.isHeadingWordWrap, content = _a.content;
|
|
327
|
+
return (React.createElement("div", { className: styles$m.mediaContainer },
|
|
314
328
|
React.createElement(Heading, { id: id, level: headingLevel, isWordWrap: isHeadingWordWrap, size: "xl" }, heading),
|
|
315
|
-
|
|
329
|
+
content && (React.createElement("div", { className: styles$m.content },
|
|
316
330
|
React.createElement(VerticalSpace, { size: "24" }),
|
|
317
|
-
React.createElement(
|
|
331
|
+
React.createElement(MultiLineText, { text: content, size: "l" })))));
|
|
318
332
|
};
|
|
319
333
|
|
|
320
334
|
var Image$1 = function (_a) {
|
|
321
335
|
var sources = _a.sources, props = __rest(_a, ["sources"]);
|
|
322
|
-
return (React.createElement("div", { className: styles$
|
|
336
|
+
return (React.createElement("div", { className: styles$m.imgWrapper },
|
|
323
337
|
React.createElement(Image$2, __assign({ fadeOnLoad: true }, props), sources &&
|
|
324
338
|
sources.map(function (source) { return React.createElement("source", __assign({ key: source.srcSet }, source)); }))));
|
|
325
339
|
};
|
|
326
340
|
|
|
327
341
|
var IconList = function (_a) {
|
|
328
342
|
var listItems = _a.listItems, isLgScreen = _a.isLgScreen, _b = _a.headingLevel, headingLevel = _b === void 0 ? "3" : _b;
|
|
329
|
-
return (React.createElement("ul", { className: styles$
|
|
343
|
+
return (React.createElement("ul", { className: styles$m.list }, listItems.map(function (_a) {
|
|
330
344
|
var _b;
|
|
331
345
|
var icon = _a.icon, heading = _a.heading, text = _a.text;
|
|
332
|
-
return (React.createElement("li", { key: heading, className: classNames(styles$
|
|
333
|
-
_b[styles$
|
|
346
|
+
return (React.createElement("li", { key: heading, className: classNames(styles$m.listItem, (_b = {},
|
|
347
|
+
_b[styles$m.listItemCentered] = !text,
|
|
334
348
|
_b)) },
|
|
335
|
-
React.createElement("div", { className: styles$
|
|
349
|
+
React.createElement("div", { className: styles$m.listItemIconContainer },
|
|
336
350
|
React.createElement(Icon, { color: "brand", icon: icon, size: isLgScreen ? 64 : 48 })),
|
|
337
|
-
React.createElement("div", { className: styles$
|
|
351
|
+
React.createElement("div", { className: styles$m.listItemTextContainer },
|
|
338
352
|
React.createElement(Heading, { level: headingLevel, size: "s" }, heading),
|
|
339
353
|
text && (React.createElement(React.Fragment, null,
|
|
340
354
|
React.createElement(VerticalSpace, { size: "8", sizeL: "16" }),
|
|
@@ -342,20 +356,20 @@ var IconList = function (_a) {
|
|
|
342
356
|
})));
|
|
343
357
|
};
|
|
344
358
|
|
|
345
|
-
var Button = function (props) { return (React.createElement("div", { className: styles$
|
|
359
|
+
var Button = function (props) { return (React.createElement("div", { className: styles$m.buttonContainer },
|
|
346
360
|
React.createElement(ButtonV2, __assign({ isFullWidth: true, buttonStyle: "secondary" }, props)))); };
|
|
347
361
|
|
|
348
362
|
var Container = function (_a) {
|
|
349
363
|
var _b;
|
|
350
364
|
var children = _a.children, isReverseOrder = _a.isReverseOrder, type = _a.type, alignment = _a.alignment;
|
|
351
|
-
return (React.createElement("div", { "data-testid": "copy-lead-container", className: classNames(styles$
|
|
352
|
-
_b[styles$
|
|
365
|
+
return (React.createElement("div", { "data-testid": "copy-lead-container", className: classNames(styles$m.container, styles$m["container--".concat(type)], styles$m["container--align-".concat(alignment)], (_b = {},
|
|
366
|
+
_b[styles$m["container--reverse"]] = isReverseOrder,
|
|
353
367
|
_b)) }, children));
|
|
354
368
|
};
|
|
355
369
|
|
|
356
370
|
var Column = function (_a) {
|
|
357
371
|
var children = _a.children;
|
|
358
|
-
return (React.createElement("div", { className: styles$
|
|
372
|
+
return (React.createElement("div", { className: styles$m.col }, children));
|
|
359
373
|
};
|
|
360
374
|
|
|
361
375
|
var getListHeadingLevel$1 = function (level) {
|
|
@@ -383,10 +397,10 @@ var MediaTemplate = function (_a) {
|
|
|
383
397
|
return (React.createElement("div", null,
|
|
384
398
|
!isMinWidthArcBreakpointXl && (React.createElement(Columns, null,
|
|
385
399
|
React.createElement(ColumnsCol, { span: 12, spanM: 9 },
|
|
386
|
-
React.createElement(MediaContent$1, { heading: heading, headingLevel: headingLevel, id: id, isHeadingWordWrap: isHeadingWordWrap
|
|
400
|
+
React.createElement(MediaContent$1, { heading: heading, headingLevel: headingLevel, id: id, isHeadingWordWrap: isHeadingWordWrap, content: content })))),
|
|
387
401
|
React.createElement(Container, { type: "media", isReverseOrder: isReverseOrder, alignment: !isMinWidthArcBreakpointXl ? "top" : "center" },
|
|
388
402
|
React.createElement(Column, null,
|
|
389
|
-
isMinWidthArcBreakpointXl && (React.createElement(MediaContent$1, { heading: heading
|
|
403
|
+
isMinWidthArcBreakpointXl && (React.createElement(MediaContent$1, { heading: heading, content: content })),
|
|
390
404
|
React.createElement(IconList, { listItems: listItems, isLgScreen: isMinWidthArcBreakpointL, headingLevel: listHeadingLevel }),
|
|
391
405
|
button && React.createElement(Button, __assign({}, button))),
|
|
392
406
|
React.createElement(Column, null,
|
|
@@ -395,16 +409,16 @@ var MediaTemplate = function (_a) {
|
|
|
395
409
|
image && !video && React.createElement(Image$1, __assign({}, image))))));
|
|
396
410
|
};
|
|
397
411
|
|
|
398
|
-
var styles$
|
|
412
|
+
var styles$l = {"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"};
|
|
399
413
|
|
|
400
414
|
var SectionHeading = function (_a) {
|
|
401
415
|
var _b, _c;
|
|
402
416
|
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"]);
|
|
403
417
|
return (React.createElement("div", __assign({ className: classNames((_b = {},
|
|
404
|
-
_b[styles$
|
|
405
|
-
_b[styles$
|
|
418
|
+
_b[styles$l["section-header"]] = true,
|
|
419
|
+
_b[styles$l["section-header--padded"]] = isPadded,
|
|
406
420
|
_b)) }, filterAttrs(props)),
|
|
407
|
-
React.createElement("div", { className: classNames((_c = {}, _c[styles$
|
|
421
|
+
React.createElement("div", { className: classNames((_c = {}, _c[styles$l["section-header--hasImage"]] = image, _c)) },
|
|
408
422
|
image && (React.createElement("div", null,
|
|
409
423
|
React.createElement(Image$2, __assign({}, image, { width: 68, fit: "cover" })))),
|
|
410
424
|
React.createElement(Heading, { level: headingLevel, id: id, size: "xl", isWordWrap: isHeadingWordWrap }, heading)),
|
|
@@ -420,7 +434,7 @@ var ContentTemplate = function (_a) {
|
|
|
420
434
|
var listHeadingLevel = getListHeadingLevel$1(headingLevel);
|
|
421
435
|
return (React.createElement(Container, { type: "content", alignment: "top" },
|
|
422
436
|
React.createElement(Column, null,
|
|
423
|
-
React.createElement(SectionHeading, { id: id, heading: heading, headingLevel: headingLevel, isHeadingWordWrap: isHeadingWordWrap, content: content }),
|
|
437
|
+
React.createElement(SectionHeading, { id: id, heading: heading, headingLevel: headingLevel, isHeadingWordWrap: isHeadingWordWrap, content: React.createElement(MultiLineText, { size: "l", text: content }) }),
|
|
424
438
|
button && isMinWidthArcBreakpointM && React.createElement(Button, __assign({}, button))),
|
|
425
439
|
React.createElement(Column, null,
|
|
426
440
|
React.createElement(IconList, { listItems: listItems, isLgScreen: isMinWidthArcBreakpointL, headingLevel: listHeadingLevel }),
|
|
@@ -441,12 +455,12 @@ var CopyLead = function (_a) {
|
|
|
441
455
|
return null;
|
|
442
456
|
};
|
|
443
457
|
|
|
444
|
-
var styles$
|
|
458
|
+
var styles$k = {"headingContainer":"DownloadList-module_headingContainer__PNio8"};
|
|
445
459
|
|
|
446
460
|
var DownloadList = function (_a) {
|
|
447
461
|
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"]);
|
|
448
462
|
return (React.createElement("div", __assign({}, filterAttrs(props)),
|
|
449
|
-
React.createElement("div", { className: styles$
|
|
463
|
+
React.createElement("div", { className: styles$k.headingContainer },
|
|
450
464
|
React.createElement(SectionHeading, { id: id, heading: heading, isHeadingWordWrap: isHeadingWordWrap, headingLevel: headingLevel, content: content })),
|
|
451
465
|
React.createElement(VerticalSpace, { size: "40" }),
|
|
452
466
|
downloads.map(function (downloadProps, i) { return (React.createElement(React.Fragment, { key: "download-".concat(i) },
|
|
@@ -454,7 +468,7 @@ var DownloadList = function (_a) {
|
|
|
454
468
|
i !== downloads.length - 1 && React.createElement(VerticalSpace, { size: "16" }))); })));
|
|
455
469
|
};
|
|
456
470
|
|
|
457
|
-
var styles$
|
|
471
|
+
var styles$j = {"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"};
|
|
458
472
|
|
|
459
473
|
var scrollToSectionFocusFirstElement = function (item) {
|
|
460
474
|
var _a, _b, _c, _d, _e;
|
|
@@ -468,23 +482,23 @@ var scrollToSectionFocusFirstElement = function (item) {
|
|
|
468
482
|
var FAQs = function (_a) {
|
|
469
483
|
var _b;
|
|
470
484
|
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"]);
|
|
471
|
-
return (React.createElement("div", __assign({ className: styles$
|
|
485
|
+
return (React.createElement("div", __assign({ className: styles$j.FAQs }, filterAttrs(props)),
|
|
472
486
|
React.createElement(SectionHeading, { id: id, isHeadingWordWrap: isHeadingWordWrap, heading: heading, content: content, image: image, headingLevel: headingLevel, isPadded: isPadded }),
|
|
473
|
-
type === "listWithLinks" && (React.createElement("div", { className: styles$
|
|
474
|
-
React.createElement("div", { className: styles$
|
|
487
|
+
type === "listWithLinks" && (React.createElement("div", { className: styles$j.linkListSection },
|
|
488
|
+
React.createElement("div", { className: styles$j.linkListTitle },
|
|
475
489
|
React.createElement(Heading, { size: "xs" }, linkListHeading)),
|
|
476
490
|
React.createElement("ul", { className: classNames((_b = {},
|
|
477
|
-
_b[styles$
|
|
478
|
-
_b[styles$
|
|
491
|
+
_b[styles$j.linkList] = true,
|
|
492
|
+
_b[styles$j["linkList--padded"]] = isPadded,
|
|
479
493
|
_b)) }, accordionData.map(function (item) {
|
|
480
494
|
var _a;
|
|
481
|
-
return (React.createElement("li", { className: styles$
|
|
495
|
+
return (React.createElement("li", { className: styles$j.linkListItem, key: item.heading },
|
|
482
496
|
React.createElement(Link, { title: item.heading, href: "#".concat(item.id), onClick: function (e) {
|
|
483
497
|
e.preventDefault();
|
|
484
498
|
scrollToSectionFocusFirstElement(item);
|
|
485
499
|
} }, (_a = item.altLinkTitle) !== null && _a !== void 0 ? _a : item.heading)));
|
|
486
500
|
})))),
|
|
487
|
-
type !== "tabs" && accordionData && (React.createElement("ul", { className: styles$
|
|
501
|
+
type !== "tabs" && accordionData && (React.createElement("ul", { className: styles$j.accordionList }, accordionData.map(function (item) { return (React.createElement("li", { className: styles$j.accordionListItem, key: item.id },
|
|
488
502
|
React.createElement(Accordion, { id: item.id, heading: item.heading, headingLevel: item.headingLevel, content: item.content, disclosureList: item.disclosureList, headingSize: "m" }),
|
|
489
503
|
React.createElement(VerticalSpace, { size: "48", sizeL: "64" }))); }))),
|
|
490
504
|
type === "tabs" && (React.createElement(Tabs, { defaultValue: accordionData[0].heading },
|
|
@@ -2681,12 +2695,12 @@ function cleanEscapedString(input) {
|
|
|
2681
2695
|
return matched[1].replace(doubleQuoteRegExp, "'");
|
|
2682
2696
|
}
|
|
2683
2697
|
|
|
2684
|
-
var styles$
|
|
2698
|
+
var styles$i = {"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"};
|
|
2685
2699
|
|
|
2686
2700
|
var Image = function (_a) {
|
|
2687
2701
|
var sources = _a.sources, title = _a.title, description = _a.description, props = __rest(_a, ["sources", "title", "description"]);
|
|
2688
2702
|
return (React.createElement(React.Fragment, null,
|
|
2689
|
-
React.createElement("div", { className: styles$
|
|
2703
|
+
React.createElement("div", { className: styles$i.imgWrapper },
|
|
2690
2704
|
React.createElement(Image$2, __assign({ fadeOnLoad: true }, props), sources &&
|
|
2691
2705
|
sources.map(function (source) { return React.createElement("source", __assign({ key: source.srcSet }, source)); }))),
|
|
2692
2706
|
title && (React.createElement(React.Fragment, null,
|
|
@@ -2724,17 +2738,17 @@ var FeaturePost = function (_a) {
|
|
|
2724
2738
|
var _b;
|
|
2725
2739
|
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"]);
|
|
2726
2740
|
var isMinWidthArcBreakpointM = useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsM, ")"));
|
|
2727
|
-
return (React.createElement("div", __assign({ "data-testid": "feature-post", className: classNames(styles$
|
|
2728
|
-
_b[styles$
|
|
2741
|
+
return (React.createElement("div", __assign({ "data-testid": "feature-post", className: classNames(styles$i.featurePost, (_b = {},
|
|
2742
|
+
_b[styles$i.featurePostReversed] = isReverseOrder,
|
|
2729
2743
|
_b)) }, filterAttrs(props)),
|
|
2730
|
-
React.createElement("div", { className: styles$
|
|
2731
|
-
React.createElement("div", { className: styles$
|
|
2744
|
+
React.createElement("div", { className: styles$i.col },
|
|
2745
|
+
React.createElement("div", { className: styles$i.contentContainer },
|
|
2732
2746
|
label && (React.createElement(Grid, { isGutterless: true, isFluid: true },
|
|
2733
2747
|
React.createElement(GridRow, { align: "baseline" },
|
|
2734
2748
|
React.createElement(GridCol, { xs: 12, m: "auto" },
|
|
2735
2749
|
React.createElement(Heading, { size: "xxs", fontStyle: "overline" }, label.text)),
|
|
2736
2750
|
React.createElement(GridCol, { xs: 12, m: "auto" },
|
|
2737
|
-
React.createElement("div", { className: styles$
|
|
2751
|
+
React.createElement("div", { className: styles$i.labelDate },
|
|
2738
2752
|
React.createElement(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)))))),
|
|
2739
2753
|
React.createElement(VerticalSpace, { size: "24" }))),
|
|
2740
2754
|
React.createElement(Heading, { id: id, level: headingLevel, isWordWrap: isHeadingWordWrap, size: "xl" }, heading),
|
|
@@ -2756,10 +2770,10 @@ var FeaturePost = function (_a) {
|
|
|
2756
2770
|
footer.appStore && (React.createElement(GridCol, { xs: 12, s: "auto" },
|
|
2757
2771
|
React.createElement(AppButton, { type: "apple-app-store", screenReaderText: footer.appStore.screenReaderText, url: footer.appStore.url }))),
|
|
2758
2772
|
footer.googlePlay && (React.createElement(GridCol, { xs: 12, s: "auto" },
|
|
2759
|
-
React.createElement("div", { className: styles$
|
|
2773
|
+
React.createElement("div", { className: styles$i.googlePlayButtonWrapper },
|
|
2760
2774
|
React.createElement(AppButton, { type: "google-play", screenReaderText: footer.googlePlay.screenReaderText, url: footer.googlePlay.url })))))))))),
|
|
2761
|
-
isMinWidthArcBreakpointM && (React.createElement("div", { className: styles$
|
|
2762
|
-
React.createElement("div", { "data-testid": "desktop-img", className: styles$
|
|
2775
|
+
isMinWidthArcBreakpointM && (React.createElement("div", { className: styles$i.col },
|
|
2776
|
+
React.createElement("div", { "data-testid": "desktop-img", className: styles$i.imgContainer },
|
|
2763
2777
|
React.createElement(MediaContent, { image: image, video: video }))))));
|
|
2764
2778
|
};
|
|
2765
2779
|
|
|
@@ -2771,7 +2785,7 @@ var FeaturePost = function (_a) {
|
|
|
2771
2785
|
const BtIconArrowRightFill =
|
|
2772
2786
|
"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";
|
|
2773
2787
|
|
|
2774
|
-
var styles$
|
|
2788
|
+
var styles$h = {"highlights":"Highlights-module_highlights__Hf7Zq","highlightItem":"Highlights-module_highlightItem__-N6le","highlights2Column":"Highlights-module_highlights2Column__6qIuI","highlights3Column":"Highlights-module_highlights3Column__qsCMP"};
|
|
2775
2789
|
|
|
2776
2790
|
var getListHeadingLevel = function (level) {
|
|
2777
2791
|
var nextLevel = Math.min(parseInt(level) + 1, 6);
|
|
@@ -2781,8 +2795,8 @@ var getListHeadingLevel = function (level) {
|
|
|
2781
2795
|
var HighlightItem = function (_a) {
|
|
2782
2796
|
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"]);
|
|
2783
2797
|
var listHeadingLevel = getListHeadingLevel(headingLevel || "2");
|
|
2784
|
-
return (React.createElement("div", __assign({ "data-testid": "highlight-item-container", className: styles$
|
|
2785
|
-
icon && (React.createElement("div", { className: styles$
|
|
2798
|
+
return (React.createElement("div", __assign({ "data-testid": "highlight-item-container", className: styles$h.highlightItem }, filterAttrs(props)),
|
|
2799
|
+
icon && (React.createElement("div", { className: styles$h.Icon },
|
|
2786
2800
|
React.createElement(Icon, { "data-testid": "highlight-icon", color: "brand", icon: icon, size: isSmallIcon ? 64 : 76 }))),
|
|
2787
2801
|
React.createElement(VerticalSpace, { size: "16" }),
|
|
2788
2802
|
React.createElement(Heading, { level: listHeadingLevel, size: "m" }, heading),
|
|
@@ -2795,7 +2809,7 @@ var HighlightItem = function (_a) {
|
|
|
2795
2809
|
var HighlightList = function (_a) {
|
|
2796
2810
|
var listItems = _a.listItems, columns = _a.columns, isSmallIcon = _a.isSmallIcon, headingLevel = _a.headingLevel, props = __rest(_a, ["listItems", "columns", "isSmallIcon", "headingLevel"]);
|
|
2797
2811
|
var id = useId();
|
|
2798
|
-
return (React.createElement("div", __assign({ "data-testid": "highlights-list", className: classNames(styles$
|
|
2812
|
+
return (React.createElement("div", __assign({ "data-testid": "highlights-list", className: classNames(styles$h.highlights, styles$h["highlights".concat(columns, "Column")]) }, filterAttrs(props)), listItems.map(function (_a, i) {
|
|
2799
2813
|
var icon = _a.icon, heading = _a.heading, text = _a.text, link = _a.link, itemProps = __rest(_a, ["icon", "heading", "text", "link"]);
|
|
2800
2814
|
return (React.createElement(HighlightItem, __assign({ key: "highlight-".concat(id, "-").concat(i), icon: icon, heading: heading, text: text, link: link, isSmallIcon: isSmallIcon, headingLevel: headingLevel }, itemProps)));
|
|
2801
2815
|
})));
|
|
@@ -2822,7 +2836,15 @@ var Highlights = function (_a) {
|
|
|
2822
2836
|
: undefined, iconPosition: (_d = cta.iconPosition) !== null && _d !== void 0 ? _d : "beforeText" })))));
|
|
2823
2837
|
};
|
|
2824
2838
|
|
|
2825
|
-
var styles$
|
|
2839
|
+
var styles$g = {"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"};
|
|
2840
|
+
|
|
2841
|
+
/**
|
|
2842
|
+
* Do not edit directly
|
|
2843
|
+
* Generated file
|
|
2844
|
+
*/
|
|
2845
|
+
|
|
2846
|
+
const ArcIconPlay =
|
|
2847
|
+
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 56 56'%3e%3cpath fill='currentColor' d='M36.468 26.32 23.907 19.07A1.938 1.938 0 0 0 21 20.745V35.25a1.935 1.935 0 0 0 2.907 1.68l12.561-7.254a1.938 1.938 0 0 0 0-3.354m-.875 1.84-12.561 7.254a.18.18 0 0 1-.187 0 .18.18 0 0 1-.095-.165V20.745a.18.18 0 0 1 .095-.16.18.18 0 0 1 .187 0l12.561 7.25a.18.18 0 0 1 .095.164.18.18 0 0 1-.095.16'/%3e%3c/svg%3e";
|
|
2826
2848
|
|
|
2827
2849
|
/**
|
|
2828
2850
|
* Do not edit directly
|
|
@@ -2853,6 +2875,30 @@ const BtIconArrowAltRight =
|
|
|
2853
2875
|
* Generated file
|
|
2854
2876
|
*/
|
|
2855
2877
|
|
|
2878
|
+
const BtIconCalendar =
|
|
2879
|
+
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath fill='currentColor' d='M27 7h-2V4.5a.5.5 0 0 0-1 0V7H8V4.5a.5.5 0 0 0-1 0V7H5a1.003 1.003 0 0 0-1 1v19a1.003 1.003 0 0 0 1 1h22a1.003 1.003 0 0 0 1-1V8a1.003 1.003 0 0 0-1-1M7 8v.5a.5.5 0 0 0 1 0V8h16v.5a.5.5 0 0 0 1 0V8h2v4H5V8ZM5 27V13h22v14Z'/%3e%3c/svg%3e";
|
|
2880
|
+
|
|
2881
|
+
/**
|
|
2882
|
+
* Do not edit directly
|
|
2883
|
+
* Generated file
|
|
2884
|
+
*/
|
|
2885
|
+
|
|
2886
|
+
const BtIconChatMessage =
|
|
2887
|
+
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath d='M16 7c7.168 0 13 4.037 13 9a7.79 7.79 0 0 1-3.59 6.184l-.41.3v4.511l-4.535-2.308-.316-.16-.346.073A18.3 18.3 0 0 1 16 25c-7.168 0-13-4.037-13-9s5.832-9 13-9m0-1C8.268 6 2 10.477 2 16s6.268 10 14 10a19.2 19.2 0 0 0 4.012-.422l4.613 2.348A.998.998 0 0 0 26 27v-4.007A8.79 8.79 0 0 0 30 16c0-5.523-6.268-10-14-10'/%3e%3cpath d='M23.5 12h-15a.5.5 0 0 1 0-1h15a.5.5 0 0 1 0 1M25.5 15h-19a.5.5 0 0 1 0-1h19a.5.5 0 0 1 0 1M25.5 18h-19a.5.5 0 0 1 0-1h19a.5.5 0 0 1 0 1M15.5 21h-7a.5.5 0 0 1 0-1h7a.5.5 0 0 1 0 1'/%3e%3c/svg%3e";
|
|
2888
|
+
|
|
2889
|
+
/**
|
|
2890
|
+
* Do not edit directly
|
|
2891
|
+
* Generated file
|
|
2892
|
+
*/
|
|
2893
|
+
|
|
2894
|
+
const BtIconClock =
|
|
2895
|
+
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath d='M16 29.984A13.984 13.984 0 1 1 29.984 16 14 14 0 0 1 16 29.984m0-26.968A12.984 12.984 0 1 0 28.984 16 13 13 0 0 0 16 3.016'/%3e%3cpath d='M21.594 15.511h-5.081V8.518a.5.5 0 0 0-1 0v7.993h6.08a.5.5 0 0 0 0-1'/%3e%3c/svg%3e";
|
|
2896
|
+
|
|
2897
|
+
/**
|
|
2898
|
+
* Do not edit directly
|
|
2899
|
+
* Generated file
|
|
2900
|
+
*/
|
|
2901
|
+
|
|
2856
2902
|
const BtIconEmailUnread =
|
|
2857
2903
|
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath fill='currentColor' d='M29 6H3a1 1 0 0 0-1 1v18a1 1 0 0 0 1 1h26a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1m0 1v1.716l-11 7.616a3.52 3.52 0 0 1-3.984 0L3 8.705V7Zm0 2.933v12.15l-8.775-6.075Zm-17.208 6.075L3 22.095V9.922ZM3 25v-1.689l9.67-6.695.777.538a4.52 4.52 0 0 0 5.123 0l.776-.538L29 23.3V25Z'/%3e%3c/svg%3e";
|
|
2858
2904
|
|
|
@@ -2908,7 +2954,7 @@ var PromoListing = function (_a) {
|
|
|
2908
2954
|
var CardComponent = CARD_COMPONENTS[card.type];
|
|
2909
2955
|
return React.createElement(CardComponent, __assign({}, card, commonProps));
|
|
2910
2956
|
};
|
|
2911
|
-
return (React.createElement("div", __assign({ className: styles$
|
|
2957
|
+
return (React.createElement("div", __assign({ className: styles$g.PromoListing }, filterAttrs(props)),
|
|
2912
2958
|
overlineLabel && (React.createElement(React.Fragment, null,
|
|
2913
2959
|
React.createElement(Heading, { level: overlineHeadingLevel, fontStyle: "overline" }, overlineLabel),
|
|
2914
2960
|
React.createElement(VerticalSpace, { size: "12" }))),
|
|
@@ -2916,44 +2962,44 @@ var PromoListing = function (_a) {
|
|
|
2916
2962
|
button.label && (React.createElement(React.Fragment, null,
|
|
2917
2963
|
React.createElement(ButtonV2, __assign({}, button, { icon: button.buttonStyle == "compact" ? BtIconArrowRightFill : undefined, size: "m" })),
|
|
2918
2964
|
React.createElement(VerticalSpace, { size: "40" }))),
|
|
2919
|
-
isCarousel && !isMinWidthArcBreakpointL ? (React.createElement("div", { className: styles$
|
|
2920
|
-
React.createElement(Carousel, { overflow: "visible", itemsPerSlide: 1, behavior: "adaptive", withGutter: false }, cards === null || cards === void 0 ? void 0 : cards.map(function (card, i) { return (React.createElement("div", { key: "promolist-carousel-card-".concat(componentId, "-").concat(i), className: (styles$
|
|
2921
|
-
React.createElement("div", { "data-testid": "promoList-card".concat(index), className: styles$
|
|
2965
|
+
isCarousel && !isMinWidthArcBreakpointL ? (React.createElement("div", { className: styles$g.promolistingCarouselWrapper },
|
|
2966
|
+
React.createElement(Carousel, { overflow: "visible", itemsPerSlide: 1, behavior: "adaptive", withGutter: false }, cards === null || cards === void 0 ? void 0 : cards.map(function (card, i) { return (React.createElement("div", { key: "promolist-carousel-card-".concat(componentId, "-").concat(i), className: (styles$g.cardWrapperCarousel) }, getCard(card))); })))) : (React.createElement("ul", { className: classNames(styles$g.cardGrid, styles$g["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) },
|
|
2967
|
+
React.createElement("div", { "data-testid": "promoList-card".concat(index), className: styles$g.cardWrapper }, getCard(card)))); })))));
|
|
2922
2968
|
};
|
|
2923
2969
|
|
|
2924
|
-
var styles$
|
|
2970
|
+
var styles$f = {"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"};
|
|
2925
2971
|
|
|
2926
2972
|
/**
|
|
2927
2973
|
* 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.*/
|
|
2928
2974
|
var Quote = function (_a) {
|
|
2929
2975
|
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"]);
|
|
2930
2976
|
return (React.createElement("div", __assign({ className: "community-component--quote", "data-testid": "quote-test" }, filterAttrs(props)),
|
|
2931
|
-
React.createElement("blockquote", { "data-testid": "style-test", className: classNames(styles$
|
|
2932
|
-
React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 100 77", className: styles$
|
|
2977
|
+
React.createElement("blockquote", { "data-testid": "style-test", className: classNames(styles$f.blockQuote, styles$f["quote".concat(styling)]), cite: citeUrl },
|
|
2978
|
+
React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 100 77", className: styles$f.quoteIcon, "aria-hidden": "true" },
|
|
2933
2979
|
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" })),
|
|
2934
|
-
React.createElement("p", { className: styles$
|
|
2980
|
+
React.createElement("p", { className: styles$f.quoteContent }, content)),
|
|
2935
2981
|
author && React.createElement(Author, __assign({}, author))));
|
|
2936
2982
|
};
|
|
2937
2983
|
|
|
2938
|
-
var styles$
|
|
2984
|
+
var styles$e = {"ruleContainer":"Summary-module_ruleContainer__ydWlG","row":"Summary-module_row__SKV--"};
|
|
2939
2985
|
|
|
2940
2986
|
var Summary = function (_a) {
|
|
2941
2987
|
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"]);
|
|
2942
2988
|
var isMinWidthArcBreakpointM = useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsM, ")"));
|
|
2943
2989
|
return (React.createElement(Box, __assign({ isBorderRadius: true }, (!noBorder ? { borderWidth: "thin" } : { elevationLevel: "1" }), { padding: "24" }, filterAttrs(props)),
|
|
2944
|
-
React.createElement("div", { className: styles$
|
|
2990
|
+
React.createElement("div", { className: styles$e.row }, content.map(function (_a, i) {
|
|
2945
2991
|
var heading = _a.heading, text = _a.text;
|
|
2946
2992
|
return (React.createElement(React.Fragment, null,
|
|
2947
|
-
React.createElement("div", { className: styles$
|
|
2993
|
+
React.createElement("div", { className: styles$e.col },
|
|
2948
2994
|
React.createElement(Heading, { size: "s", level: headingLevel }, heading),
|
|
2949
2995
|
React.createElement(VerticalSpace, { size: "8" }),
|
|
2950
2996
|
React.createElement(Text, { size: "s" }, text)),
|
|
2951
|
-
i !== content.length - 1 && (React.createElement("div", { className: styles$
|
|
2997
|
+
i !== content.length - 1 && (React.createElement("div", { className: styles$e.ruleContainer },
|
|
2952
2998
|
React.createElement(Rule, { orientation: isMinWidthArcBreakpointM ? "vertical" : "horizontal" })))));
|
|
2953
2999
|
}))));
|
|
2954
3000
|
};
|
|
2955
3001
|
|
|
2956
|
-
var styles$
|
|
3002
|
+
var styles$d = {"list":"Statistics-module_list__BI-eQ","mutedText":"Statistics-module_mutedText__MR1JM"};
|
|
2957
3003
|
|
|
2958
3004
|
var getLinkProps = function (link) {
|
|
2959
3005
|
return link.openInNewTab
|
|
@@ -2971,7 +3017,7 @@ var Statistics = function (_a) {
|
|
|
2971
3017
|
React.createElement(ColumnsCol, { spanM: 9 },
|
|
2972
3018
|
React.createElement(SectionHeading, { id: id, heading: heading, isHeadingWordWrap: isHeadingWordWrap, headingLevel: headingLevel, content: content })),
|
|
2973
3019
|
React.createElement(ColumnsCol, { spanL: 9 },
|
|
2974
|
-
React.createElement("ul", { className: styles$
|
|
3020
|
+
React.createElement("ul", { className: styles$d.list }, statistics.map(function (_a, i) {
|
|
2975
3021
|
var stat = _a.stat, copy = _a.copy, link = _a.link, source = _a.source, sourceUrl = _a.sourceUrl;
|
|
2976
3022
|
return (React.createElement("li", { key: "statistic-".concat(componentId, "-").concat(i) },
|
|
2977
3023
|
i !== 0 && (React.createElement(React.Fragment, null,
|
|
@@ -2981,7 +3027,7 @@ var Statistics = function (_a) {
|
|
|
2981
3027
|
React.createElement(Columns, null,
|
|
2982
3028
|
React.createElement(ColumnsCol, { spanS: 6, spanM: 8 },
|
|
2983
3029
|
React.createElement(Align, { vertical: "center" },
|
|
2984
|
-
React.createElement("div", { className: styles$
|
|
3030
|
+
React.createElement("div", { className: styles$d.statWrapper },
|
|
2985
3031
|
React.createElement(Heading, { color: "brand", size: "xxl" }, stat),
|
|
2986
3032
|
React.createElement(Hidden, { s: true, m: true, l: true, xl: true, xxl: true },
|
|
2987
3033
|
React.createElement(VerticalSpace, { size: "12" }))))),
|
|
@@ -2994,26 +3040,26 @@ var Statistics = function (_a) {
|
|
|
2994
3040
|
source && (React.createElement(React.Fragment, null,
|
|
2995
3041
|
React.createElement(VerticalSpace, { size: "12" }),
|
|
2996
3042
|
React.createElement(Text, { size: "xs" },
|
|
2997
|
-
React.createElement("span", { className: styles$
|
|
3043
|
+
React.createElement("span", { className: styles$d.mutedText }, source)))),
|
|
2998
3044
|
sourceUrl && (React.createElement(Text, { size: "xs" },
|
|
2999
|
-
React.createElement("a", { className: styles$
|
|
3045
|
+
React.createElement("a", { className: styles$d.mutedText, href: sourceUrl }, sourceUrl))))))));
|
|
3000
3046
|
})))));
|
|
3001
3047
|
};
|
|
3002
3048
|
|
|
3003
|
-
var styles$
|
|
3049
|
+
var styles$c = {"bannerWithTabsHeadingCentered":"BannerWithTabs-module_bannerWithTabsHeadingCentered__upqEO"};
|
|
3004
3050
|
|
|
3005
3051
|
var BannerWithTabs = function (_a) {
|
|
3006
3052
|
var _b;
|
|
3007
3053
|
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"]);
|
|
3008
3054
|
return (React.createElement("div", __assign({}, filterAttrs(props)),
|
|
3009
3055
|
React.createElement("div", { className: classNames((_b = {},
|
|
3010
|
-
_b[styles$
|
|
3056
|
+
_b[styles$c.bannerWithTabsHeadingCentered] = alignTypography === "center",
|
|
3011
3057
|
_b)) },
|
|
3012
3058
|
React.createElement(SectionHeading, { id: id, isHeadingWordWrap: isHeadingWordWrap, heading: heading, content: content, isPadded: alignTypography === "left" ? true : false })),
|
|
3013
3059
|
React.createElement(TabbedBanner, { minHeight: minHeight, minHeightM: minHeightM, tabs: tabs, defaultValue: defaultValue })));
|
|
3014
3060
|
};
|
|
3015
3061
|
|
|
3016
|
-
var styles$
|
|
3062
|
+
var styles$b = {"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"};
|
|
3017
3063
|
|
|
3018
3064
|
/**
|
|
3019
3065
|
* Use `ArticleSidebar` to provide additional information about the article.
|
|
@@ -3069,7 +3115,7 @@ var ArticleSidebar = function (_a) {
|
|
|
3069
3115
|
var hasBottomContent = Boolean(linkSection || topics || share);
|
|
3070
3116
|
return (React.createElement("div", __assign({}, filterAttrs(props)),
|
|
3071
3117
|
React.createElement("div", { className: classNames((_b = {},
|
|
3072
|
-
_b[styles$
|
|
3118
|
+
_b[styles$b.textContent] = hasTopContent,
|
|
3073
3119
|
_b)) },
|
|
3074
3120
|
author && (React.createElement(React.Fragment, null,
|
|
3075
3121
|
React.createElement(Author, __assign({}, author, { avatar: __assign(__assign({}, author.avatar), { size: "xl" }) })))),
|
|
@@ -3080,7 +3126,7 @@ var ArticleSidebar = function (_a) {
|
|
|
3080
3126
|
React.createElement(Text, { size: "s" }, aboutSection.content))),
|
|
3081
3127
|
additionalContent && (React.createElement(React.Fragment, null,
|
|
3082
3128
|
(author || aboutSection) && React.createElement(VerticalSpace, { size: "16" }),
|
|
3083
|
-
React.createElement("div", { className: styles$
|
|
3129
|
+
React.createElement("div", { className: styles$b.additionalContentContainer }, additionalContent.map(function (_a) {
|
|
3084
3130
|
var heading = _a.heading, headingLevel = _a.headingLevel, content = _a.content;
|
|
3085
3131
|
return (React.createElement("div", { key: "".concat(id, "-").concat(heading) },
|
|
3086
3132
|
React.createElement(Heading, { level: headingLevel, size: "xxs" }, heading),
|
|
@@ -3103,7 +3149,7 @@ var ArticleSidebar = function (_a) {
|
|
|
3103
3149
|
linkSection && React.createElement(VerticalSpace, { size: "32" }),
|
|
3104
3150
|
React.createElement(Heading, { level: topics.headingLevel }, topics.heading),
|
|
3105
3151
|
React.createElement(VerticalSpace, { size: "16" }),
|
|
3106
|
-
React.createElement("div", { className: styles$
|
|
3152
|
+
React.createElement("div", { className: styles$b.tagGroup }, topics.tags.map(function (tag) { return (React.createElement(Tag, __assign({ key: "".concat(id, "-").concat(tag.title) }, tag))); })))),
|
|
3107
3153
|
share && (React.createElement(React.Fragment, null,
|
|
3108
3154
|
(linkSection || topics) && (React.createElement("div", { "data-testid": "links-topics-content-rule" },
|
|
3109
3155
|
React.createElement(VerticalSpace, { size: "32" }),
|
|
@@ -3111,16 +3157,16 @@ var ArticleSidebar = function (_a) {
|
|
|
3111
3157
|
React.createElement(VerticalSpace, { size: "32" }))),
|
|
3112
3158
|
React.createElement(Heading, { level: share.headingLevel }, share.heading),
|
|
3113
3159
|
React.createElement(VerticalSpace, { size: "16" }),
|
|
3114
|
-
React.createElement("div", { className: styles$
|
|
3160
|
+
React.createElement("div", { className: styles$b.shareButtonContainer }, shareButtons.map(function (_a) {
|
|
3115
3161
|
var isButton = _a.isButton, ariaLabel = _a.ariaLabel, href = _a.href, icon = _a.icon, onClick = _a.onClick;
|
|
3116
|
-
return (React.createElement("a", { key: "".concat(id, "-").concat(ariaLabel), role: isButton ? "button" : undefined, target: "_blank", rel: "noreferrer", className: styles$
|
|
3162
|
+
return (React.createElement("a", { key: "".concat(id, "-").concat(ariaLabel), role: isButton ? "button" : undefined, target: "_blank", rel: "noreferrer", className: styles$b.shareButton, "aria-label": ariaLabel, href: href, onClick: isButton ? onClick : undefined },
|
|
3117
3163
|
React.createElement(Icon, { icon: icon, size: 24 })));
|
|
3118
3164
|
})))),
|
|
3119
3165
|
React.createElement(Toast, null,
|
|
3120
3166
|
React.createElement(ToastNotification, { status: "success", title: "Copied to clipboard", isOpen: showToast, onOpenChange: function () { return setShowToast(false); } }))));
|
|
3121
3167
|
};
|
|
3122
3168
|
|
|
3123
|
-
var styles$
|
|
3169
|
+
var styles$a = {"product-navigation-grid":"ProductNavigation-module_product-navigation-grid__RzFq8","productNavigation-skipLink":"ProductNavigation-module_productNavigation-skipLink__fy8ZJ"};
|
|
3124
3170
|
|
|
3125
3171
|
/**
|
|
3126
3172
|
* Use `ProductNavigation` to give a collection of product information cards collected within a grid that has optional show/hide capability
|
|
@@ -3164,7 +3210,7 @@ var ProductNavigation = function (_a) {
|
|
|
3164
3210
|
var isMinWidthArcBreakpointS = useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsS, ")"));
|
|
3165
3211
|
return (React.createElement("div", __assign({}, filterAttrs(props)),
|
|
3166
3212
|
React.createElement(SectionHeading, { isPadded: true, id: id, "data-testid": "ProductNavigation-header", heading: heading, headingLevel: headingLevel, isHeadingWordWrap: isHeadingWordWrap, content: content, image: image }),
|
|
3167
|
-
React.createElement("ul", { className: classNames(styles$
|
|
3213
|
+
React.createElement("ul", { className: classNames(styles$a["product-navigation-grid"]) }, displayList === null || displayList === void 0 ? void 0 : displayList.map(function (cardProps, i) {
|
|
3168
3214
|
var _a;
|
|
3169
3215
|
return (React.createElement("li", { key: "displayList-".concat(i), tabIndex: -1, ref: i === skipLinkCard ? cardRef : undefined, "data-cy": "list-item-".concat(i) },
|
|
3170
3216
|
React.createElement(InformationCard, __assign({}, cardProps, { minHeight: minHeight !== null && minHeight !== void 0 ? minHeight : cardProps.minHeight, headingLevel: (_a = cardProps.headingLevel) !== null && _a !== void 0 ? _a : "2" }))));
|
|
@@ -3175,7 +3221,7 @@ var ProductNavigation = function (_a) {
|
|
|
3175
3221
|
? "Show more"
|
|
3176
3222
|
: "Show less", buttonStyle: "secondary", onClick: clickController, isFullWidth: isMinWidthArcBreakpointS ? false : true, isLoading: isLoading })),
|
|
3177
3223
|
displayList.length > cardsToDisplay && (React.createElement(React.Fragment, null,
|
|
3178
|
-
React.createElement("div", { id: "skip-link", className: classNames(styles$
|
|
3224
|
+
React.createElement("div", { id: "skip-link", className: classNames(styles$a["productNavigation-skipLink"]), tabIndex: -1 },
|
|
3179
3225
|
React.createElement(ButtonV2, { label: "Move to first new card", buttonStyle: "primary", onClick: moveFocus, isFullWidth: isMinWidthArcBreakpointS ? false : true })))),
|
|
3180
3226
|
React.createElement(VisuallyHidden, null,
|
|
3181
3227
|
React.createElement("div", { "aria-live": "polite", id: "aria-live-region", "aria-atomic": true },
|
|
@@ -3188,81 +3234,81 @@ var ProductNavigation = function (_a) {
|
|
|
3188
3234
|
"."))))));
|
|
3189
3235
|
};
|
|
3190
3236
|
|
|
3191
|
-
var styles$
|
|
3237
|
+
var styles$9 = {"container":"ContentInfoWidget-module_container__yaS-8","text":"ContentInfoWidget-module_text__O1BdZ","icon":"ContentInfoWidget-module_icon__LEww1"};
|
|
3192
3238
|
|
|
3193
3239
|
var ContentInfoWidget = function (_a) {
|
|
3194
3240
|
var text = _a.text, icon = _a.icon, props = __rest(_a, ["text", "icon"]);
|
|
3195
|
-
return (React.createElement("div", __assign({ className: styles$
|
|
3196
|
-
React.createElement("div", { className: styles$
|
|
3241
|
+
return (React.createElement("div", __assign({ className: styles$9.container }, filterAttrs(props)),
|
|
3242
|
+
React.createElement("div", { className: styles$9.icon },
|
|
3197
3243
|
React.createElement(Icon, { size: 20, icon: icon })),
|
|
3198
|
-
React.createElement("div", { className: styles$
|
|
3244
|
+
React.createElement("div", { className: styles$9.text },
|
|
3199
3245
|
React.createElement(Text, { size: "xs", tone: "muted" }, text))));
|
|
3200
3246
|
};
|
|
3201
3247
|
|
|
3202
|
-
var styles$
|
|
3248
|
+
var styles$8 = {"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"};
|
|
3203
3249
|
|
|
3204
3250
|
var ActionTile = function (_a) {
|
|
3205
3251
|
var _b;
|
|
3206
3252
|
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"]);
|
|
3207
|
-
var tileClasses = classNames(styles$
|
|
3208
|
-
_b[styles$
|
|
3253
|
+
var tileClasses = classNames(styles$8["action-tile"], (_b = {},
|
|
3254
|
+
_b[styles$8["action-tile--active"]] = isActive,
|
|
3209
3255
|
_b), className);
|
|
3210
3256
|
var content = (React.createElement(React.Fragment, null,
|
|
3211
|
-
React.createElement("div", { className: styles$
|
|
3212
|
-
icon && (React.createElement("div", { className: styles$
|
|
3257
|
+
React.createElement("div", { className: styles$8["action-tile-content"] },
|
|
3258
|
+
icon && (React.createElement("div", { className: styles$8["action-tile-icon"] },
|
|
3213
3259
|
React.createElement(Icon, { icon: icon, size: 48 }))),
|
|
3214
|
-
React.createElement("h3", { className: styles$
|
|
3215
|
-
isActive && (React.createElement("div", { className: styles$
|
|
3260
|
+
React.createElement("h3", { className: styles$8["action-tile-heading"] }, heading)),
|
|
3261
|
+
isActive && (React.createElement("div", { className: styles$8["action-tile-tick"] },
|
|
3216
3262
|
React.createElement(Icon, { icon: BtIconTickAlt2Px, size: 28 })))));
|
|
3217
3263
|
return (React.createElement("div", __assign({ className: tileClasses, onClick: onClick }, filterAttrs(props)), content));
|
|
3218
3264
|
};
|
|
3219
3265
|
|
|
3220
|
-
var styles$
|
|
3266
|
+
var styles$7 = {"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"};
|
|
3221
3267
|
|
|
3222
3268
|
var LinkTile = function (_a) {
|
|
3223
3269
|
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"]);
|
|
3224
3270
|
var Component = href ? "a" : "div";
|
|
3225
3271
|
var linkProps = href ? { href: href } : {};
|
|
3226
|
-
return (React.createElement(Component, __assign({ className: classNames(styles$
|
|
3227
|
-
React.createElement("span", { className: styles$
|
|
3228
|
-
showIcon && (React.createElement("span", { className: styles$
|
|
3272
|
+
return (React.createElement(Component, __assign({ className: classNames(styles$7["link-tile"], className) }, linkProps, filterAttrs(props)), text && (React.createElement("div", { className: styles$7["link-tile-content"] },
|
|
3273
|
+
React.createElement("span", { className: styles$7["link-tile-text"] }, text),
|
|
3274
|
+
showIcon && (React.createElement("span", { className: styles$7["link-tile-icon"] },
|
|
3229
3275
|
React.createElement(Icon, { icon: BtIconArrowAltRight, size: 32 })))))));
|
|
3230
3276
|
};
|
|
3231
3277
|
|
|
3232
|
-
var styles$
|
|
3278
|
+
var styles$6 = {"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"};
|
|
3233
3279
|
|
|
3234
3280
|
var InlineLinkGroup = function (_a) {
|
|
3235
3281
|
var label = _a.label, links = _a.links, props = __rest(_a, ["label", "links"]);
|
|
3236
|
-
return (React.createElement("div", __assign({ className: styles$
|
|
3237
|
-
label && (React.createElement("div", { className: styles$
|
|
3282
|
+
return (React.createElement("div", __assign({ className: styles$6["quick-help"] }, filterAttrs(props)),
|
|
3283
|
+
label && (React.createElement("div", { className: styles$6["quick-help-label"] },
|
|
3238
3284
|
React.createElement(Heading, { size: "xxs", fontStyle: "overline" }, label))),
|
|
3239
|
-
React.createElement("ul", { className: styles$
|
|
3240
|
-
React.createElement("li", { className: styles$
|
|
3285
|
+
React.createElement("ul", { className: styles$6["quick-help-container"] }, links.map(function (link, index) { return (React.createElement(React.Fragment, { key: index },
|
|
3286
|
+
React.createElement("li", { className: styles$6["quick-help-item"] },
|
|
3241
3287
|
React.createElement(Link, { href: link.href, onClick: link.onClick, "aria-label": link.ariaLabel }, link.label),
|
|
3242
3288
|
React.createElement(Icon, { icon: BtIconArrowAltRight, size: 24, color: "brand" })),
|
|
3243
|
-
index < links.length - 1 && (React.createElement("li", { className: styles$
|
|
3244
|
-
React.createElement("div", { className: styles$
|
|
3289
|
+
index < links.length - 1 && (React.createElement("li", { className: styles$6["quick-help-separator"], "aria-hidden": "true" },
|
|
3290
|
+
React.createElement("div", { className: styles$6["quick-help-separator-line"] }))))); }))));
|
|
3245
3291
|
};
|
|
3246
3292
|
|
|
3247
|
-
var styles$
|
|
3293
|
+
var styles$5 = {"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"};
|
|
3248
3294
|
|
|
3249
3295
|
/** Use `ThumbnailSignpost` to highlight key information or navigation points with an accompanying thumbnail image or icon. */
|
|
3250
3296
|
var ThumbnailSignpost = function (_a) {
|
|
3251
3297
|
var _b;
|
|
3252
3298
|
var text = _a.text, title = _a.title, img = _a.img, onClick = _a.onClick, buttonLabel = _a.buttonLabel, props = __rest(_a, ["text", "title", "img", "onClick", "buttonLabel"]);
|
|
3253
|
-
return (React.createElement("div", __assign({ className: classNames(styles$
|
|
3254
|
-
_b[styles$
|
|
3299
|
+
return (React.createElement("div", __assign({ className: classNames(styles$5.thumbnailSignpost, (_b = {},
|
|
3300
|
+
_b[styles$5.isLink] = onClick,
|
|
3255
3301
|
_b)), onClick: onClick, "aria-label": title, tabIndex: onClick ? 0 : -1 }, (onClick && { role: "button" }), filterAttrs(props)),
|
|
3256
|
-
img && (React.createElement("div", { className: styles$
|
|
3302
|
+
img && (React.createElement("div", { className: styles$5.image },
|
|
3257
3303
|
React.createElement(Image$2, __assign({}, img)))),
|
|
3258
|
-
React.createElement("div", { className: styles$
|
|
3259
|
-
React.createElement("span", { className: styles$
|
|
3304
|
+
React.createElement("div", { className: styles$5.content },
|
|
3305
|
+
React.createElement("span", { className: styles$5.heading }, title),
|
|
3260
3306
|
React.createElement(VerticalSpace, { size: "8" }),
|
|
3261
3307
|
text,
|
|
3262
3308
|
buttonLabel && onClick && (React.createElement(React.Fragment, null,
|
|
3263
3309
|
React.createElement(VerticalSpace, { size: "8" }),
|
|
3264
|
-
React.createElement("div", { className: styles$
|
|
3265
|
-
React.createElement("span", { className: styles$
|
|
3310
|
+
React.createElement("div", { className: styles$5.thumbnailButton },
|
|
3311
|
+
React.createElement("span", { className: styles$5.buttonIcon, role: "img", style: {
|
|
3266
3312
|
height: 24,
|
|
3267
3313
|
width: 24,
|
|
3268
3314
|
maskImage: "url(\"".concat(BtIconArrowRightFill, "\")"),
|
|
@@ -3271,18 +3317,96 @@ var ThumbnailSignpost = function (_a) {
|
|
|
3271
3317
|
React.createElement(Heading, { size: "xxs" }, buttonLabel)))))));
|
|
3272
3318
|
};
|
|
3273
3319
|
|
|
3274
|
-
var styles = {"PromoListingThumbnailSignpost":"PromoListingThumbnailSignpost-module_PromoListingThumbnailSignpost__0HTPV","list":"PromoListingThumbnailSignpost-module_list__E9l0E"};
|
|
3320
|
+
var styles$4 = {"PromoListingThumbnailSignpost":"PromoListingThumbnailSignpost-module_PromoListingThumbnailSignpost__0HTPV","list":"PromoListingThumbnailSignpost-module_list__E9l0E"};
|
|
3275
3321
|
|
|
3276
3322
|
/**
|
|
3277
3323
|
* Use `PromoListingThumbnailSignpost` to give supporting information about a page or proposition in the form of the ThumbnailSignposts components.
|
|
3278
3324
|
*/
|
|
3279
3325
|
var PromoListingThumbnailSignpost = function (_a) {
|
|
3280
|
-
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"]);
|
|
3281
|
-
return (React.createElement("div", __assign({ className: styles.PromoListingThumbnailSignpost }, filterAttrs(props)),
|
|
3282
|
-
React.createElement(SectionHeading, { isPadded: isPadded, "data-testid": "PromoListingThumbnailSignpost-header", heading: heading, headingLevel: headingLevel, content: content }),
|
|
3283
|
-
React.createElement("ul", { className: styles.list }, thumbnailList.map(function (thumbnail, index) { return (React.createElement("li", { key: index },
|
|
3326
|
+
var _b = _a.isPadded, isPadded = _b === void 0 ? true : _b, heading = _a.heading, content = _a.content, headingLevel = _a.headingLevel, thumbnailList = _a.thumbnailList, isHeadingWordWrap = _a.isHeadingWordWrap, props = __rest(_a, ["isPadded", "heading", "content", "headingLevel", "thumbnailList", "isHeadingWordWrap"]);
|
|
3327
|
+
return (React.createElement("div", __assign({ className: styles$4.PromoListingThumbnailSignpost }, filterAttrs(props)),
|
|
3328
|
+
React.createElement(SectionHeading, { isPadded: isPadded, "data-testid": "PromoListingThumbnailSignpost-header", heading: heading, headingLevel: headingLevel, content: content, isHeadingWordWrap: isHeadingWordWrap }),
|
|
3329
|
+
React.createElement("ul", { className: styles$4.list }, thumbnailList.map(function (thumbnail, index) { return (React.createElement("li", { key: index },
|
|
3284
3330
|
React.createElement(ThumbnailSignpost, __assign({}, thumbnail)))); }))));
|
|
3285
3331
|
};
|
|
3286
3332
|
|
|
3287
|
-
|
|
3333
|
+
var styles$3 = {"playIconContainer":"VideoCardPlayIcon-module_playIconContainer__ZqZP3","playIconContainer--s":"VideoCardPlayIcon-module_playIconContainer--s__ETbOZ","playIconContainer--l":"VideoCardPlayIcon-module_playIconContainer--l__OGccg","playIcon":"VideoCardPlayIcon-module_playIcon__kzito"};
|
|
3334
|
+
|
|
3335
|
+
var VideoCardPlayIcon = function (_a) {
|
|
3336
|
+
var _b = _a.size, size = _b === void 0 ? "l" : _b;
|
|
3337
|
+
return (React.createElement("div", { className: classNames(styles$3.playIconContainer, styles$3["playIconContainer--".concat(size)]) },
|
|
3338
|
+
React.createElement("div", { className: styles$3.playIcon },
|
|
3339
|
+
React.createElement(Icon, { icon: ArcIconPlay }))));
|
|
3340
|
+
};
|
|
3341
|
+
|
|
3342
|
+
var styles$2 = {"container":"VideoCardPlayer-module_container__G-Uta","player":"VideoCardPlayer-module_player__BgueT","playerWrapper":"VideoCardPlayer-module_playerWrapper__UcH1q","playerWrapper--landscape":"VideoCardPlayer-module_playerWrapper--landscape__shKv-","playerWrapper--portrait":"VideoCardPlayer-module_playerWrapper--portrait__7bKAr"};
|
|
3343
|
+
|
|
3344
|
+
var VideoCardPlayer = function (_a) {
|
|
3345
|
+
var thumbnail = _a.thumbnail, playIconSize = _a.playIconSize, orientation = _a.orientation, children = _a.children, player = _a.player, props = __rest(_a, ["thumbnail", "playIconSize", "orientation", "children", "player"]);
|
|
3346
|
+
var _b = useState(false), isClient = _b[0], setIsClient = _b[1];
|
|
3347
|
+
useEffect(function () {
|
|
3348
|
+
setIsClient(true);
|
|
3349
|
+
}, []);
|
|
3350
|
+
var playerProps = __assign(__assign({}, player), { light: thumbnail, playIcon: React.createElement(VideoCardPlayIcon, { size: playIconSize }), muted: !thumbnail, playing: true, controls: true, className: styles$2.player, width: "100%", height: "100%" });
|
|
3351
|
+
return (React.createElement("div", __assign({ className: styles$2.container }, filterAttrs(props)),
|
|
3352
|
+
React.createElement("div", { "data-testid": "arc-video-card", className: classNames(styles$2.playerWrapper, styles$2["playerWrapper--".concat(orientation)]) }, isClient && React.createElement(ReactPlayer, __assign({}, playerProps))),
|
|
3353
|
+
children));
|
|
3354
|
+
};
|
|
3355
|
+
|
|
3356
|
+
var styles$1 = {"thumbnail":"VideoCardThumbnail-module_thumbnail__Yamk0","thumbnail--landscape":"VideoCardThumbnail-module_thumbnail--landscape__FmnLk","thumbnail--portrait":"VideoCardThumbnail-module_thumbnail--portrait__FZS93","thumbnailContent":"VideoCardThumbnail-module_thumbnailContent__cHham"};
|
|
3357
|
+
|
|
3358
|
+
var VideoCardThumbnail = function (_a) {
|
|
3359
|
+
var orientation = _a.orientation, contentVisibility = _a.contentVisibility, src = _a.src, children = _a.children;
|
|
3360
|
+
var content = React.createElement("div", { className: styles$1.thumbnailContent }, children);
|
|
3361
|
+
return (React.createElement("div", { className: classNames(styles$1.thumbnail, styles$1["thumbnail--".concat(orientation)]), style: { backgroundImage: "url(".concat(src, ")") } }, contentVisibility ? (React.createElement(Visible, __assign({}, contentVisibility), content)) : (content)));
|
|
3362
|
+
};
|
|
3363
|
+
|
|
3364
|
+
var styles = {"mainText--lightBackground":"VideoHeroCardContent-module_mainText--lightBackground__nGl6W","statContainer--lightBackground":"VideoHeroCardContent-module_statContainer--lightBackground__7hXAf","statContainer--darkBackground":"VideoHeroCardContent-module_statContainer--darkBackground__X3-r2","mainText--darkBackground":"VideoHeroCardContent-module_mainText--darkBackground__Pfizt","statContainer":"VideoHeroCardContent-module_statContainer__q21g9","stat":"VideoHeroCardContent-module_stat__iIcoq"};
|
|
3365
|
+
|
|
3366
|
+
var VideoHeroCardContent = function (_a) {
|
|
3367
|
+
var title = _a.title, label = _a.label, description = _a.description, videoDate = _a.videoDate, duration = _a.duration, background = _a.background, subtitleAvailabilityText = _a.subtitleAvailabilityText;
|
|
3368
|
+
var id = useId();
|
|
3369
|
+
var metaItems = [
|
|
3370
|
+
{ icon: BtIconCalendar, text: videoDate },
|
|
3371
|
+
{ icon: BtIconClock, text: duration },
|
|
3372
|
+
{
|
|
3373
|
+
icon: BtIconChatMessage,
|
|
3374
|
+
text: subtitleAvailabilityText,
|
|
3375
|
+
},
|
|
3376
|
+
];
|
|
3377
|
+
var hasMeta = metaItems.some(function (meta) { return Boolean(meta.text); });
|
|
3378
|
+
return (React.createElement("div", { className: styles["".concat(background, "Background")] },
|
|
3379
|
+
React.createElement("div", { className: classNames(styles.mainText, styles["mainText--".concat(background, "Background")]) },
|
|
3380
|
+
React.createElement(Heading, { fontStyle: "overline" }, label),
|
|
3381
|
+
React.createElement(VerticalSpace, { size: "8", sizeM: "4" }),
|
|
3382
|
+
React.createElement(Heading, { level: "3", isWordWrap: false, size: "xl" }, title),
|
|
3383
|
+
React.createElement(VerticalSpace, { size: "16" }),
|
|
3384
|
+
React.createElement(Text, null, description)),
|
|
3385
|
+
hasMeta && (React.createElement(React.Fragment, null,
|
|
3386
|
+
React.createElement(VerticalSpace, { size: "32", sizeS: "16" }),
|
|
3387
|
+
React.createElement("div", { className: classNames(styles.statContainer, styles["statContainer--".concat(background, "Background")]) }, metaItems.map(function (meta, i) {
|
|
3388
|
+
return meta.text && (React.createElement("div", { key: "".concat(id, "-stat-").concat(i), className: styles.stat },
|
|
3389
|
+
React.createElement(Icon, { icon: meta.icon, size: 20 }),
|
|
3390
|
+
React.createElement(Text, { size: "xs" }, meta.text)));
|
|
3391
|
+
}))))));
|
|
3392
|
+
};
|
|
3393
|
+
|
|
3394
|
+
var VideoHeroCard = function (_a) {
|
|
3395
|
+
var content = _a.content, thumbnailImg = _a.thumbnailImg, player = _a.player, props = __rest(_a, ["content", "thumbnailImg", "player"]);
|
|
3396
|
+
return (React.createElement(VideoCardPlayer, __assign({ thumbnail: React.createElement(VideoCardThumbnail, { src: thumbnailImg, orientation: "landscape", contentVisibility: { l: true, xl: true, xxl: true } },
|
|
3397
|
+
React.createElement(VideoHeroCardContent, __assign({}, content, { background: "dark" }))), orientation: "landscape", playIconSize: "l", player: player }, props), content && (React.createElement(Visible, { xs: true, s: true, m: true },
|
|
3398
|
+
React.createElement(Spacing, { all: { xs: "16", s: "32" } },
|
|
3399
|
+
React.createElement(VideoHeroCardContent, __assign({}, content, { background: "light" })))))));
|
|
3400
|
+
};
|
|
3401
|
+
|
|
3402
|
+
var VideoPortraitCard = function (_a) {
|
|
3403
|
+
var thumbnail = _a.thumbnail, player = _a.player, props = __rest(_a, ["thumbnail", "player"]);
|
|
3404
|
+
return (React.createElement(VideoCardPlayer, __assign({ thumbnail: thumbnail && (React.createElement(VideoCardThumbnail, { orientation: "portrait", src: thumbnail.img },
|
|
3405
|
+
React.createElement(Surface, { isTransparent: true, background: "dark-black" },
|
|
3406
|
+
React.createElement(Heading, { fontStyle: "overline" }, thumbnail.label),
|
|
3407
|
+
React.createElement(VerticalSpace, { size: "8" }),
|
|
3408
|
+
React.createElement(Heading, { level: "3", isWordWrap: false, size: "xs" }, thumbnail.title)))), orientation: "portrait", player: player, playIconSize: "s" }, props)));
|
|
3409
|
+
};
|
|
3410
|
+
|
|
3411
|
+
export { Accordion, ActionTile, ArticleSidebar, Author, BannerWithTabs, ContentInfoWidget, CopyLead, DownloadList, FAQs, FeaturePost, Highlights, InlineLinkGroup, LinkTile, ProductNavigation, PromoListing, PromoListingThumbnailSignpost, Quote, SectionHeading, Statistics, Summary, ThumbnailSignpost, VideoHeroCard, VideoPortraitCard };
|
|
3288
3412
|
//# sourceMappingURL=index.mjs.map
|