@arc-ui/community-components 3.3.0 → 3.5.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 +135 -15
- package/CHANGELOG.md +22 -0
- package/lib/Accordion/Accordion.cjs +3 -2
- package/lib/Accordion/Accordion.mjs +3 -2
- package/lib/ActionTile/ActionTile.cjs +7 -5
- package/lib/ActionTile/ActionTile.mjs +13 -11
- package/lib/ActionTile/styles.css +1 -1
- package/lib/ArticleSidebar/ArticleSidebar.cjs +10 -9
- package/lib/ArticleSidebar/ArticleSidebar.mjs +46 -45
- package/lib/Author/Author.cjs +3 -2
- package/lib/Author/Author.mjs +3 -2
- package/lib/BannerWithTabs/BannerWithTabs.cjs +5 -4
- package/lib/BannerWithTabs/BannerWithTabs.mjs +8 -7
- package/lib/BusinessSegmentSwitcher/BusinessSegmentSwitcher.cjs +81 -0
- package/lib/BusinessSegmentSwitcher/BusinessSegmentSwitcher.mjs +79 -0
- package/lib/BusinessSegmentSwitcher/styles.css +1 -0
- package/lib/ContentInfoWidget/ContentInfoWidget.cjs +4 -3
- package/lib/ContentInfoWidget/ContentInfoWidget.mjs +8 -7
- package/lib/CopyLead/CopyLead.cjs +33 -22
- package/lib/CopyLead/CopyLead.mjs +61 -50
- package/lib/DownloadList/DownloadList.cjs +6 -5
- package/lib/DownloadList/DownloadList.mjs +11 -10
- package/lib/FAQs/FAQs.cjs +6 -5
- package/lib/FAQs/FAQs.mjs +23 -22
- package/lib/FeaturePost/FeaturePost.cjs +13 -12
- package/lib/FeaturePost/FeaturePost.mjs +55 -54
- package/lib/Highlights/Highlights.cjs +11 -10
- package/lib/Highlights/Highlights.mjs +21 -20
- package/lib/InlineLinkGroup/InlineLinkGroup.cjs +4 -3
- package/lib/InlineLinkGroup/InlineLinkGroup.mjs +12 -11
- package/lib/LinkTile/LinkTile.cjs +3 -3
- package/lib/LinkTile/LinkTile.mjs +6 -6
- package/lib/LinkTile/styles.css +1 -1
- package/lib/ProductNavigation/ProductNavigation.cjs +7 -6
- package/lib/ProductNavigation/ProductNavigation.mjs +19 -18
- package/lib/PromoListing/PromoListing.cjs +8 -7
- package/lib/PromoListing/PromoListing.mjs +17 -16
- package/lib/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.cjs +8 -7
- package/lib/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.mjs +10 -9
- package/lib/Quote/Quote.cjs +6 -5
- package/lib/Quote/Quote.mjs +10 -9
- package/lib/SectionHeading/SectionHeading.cjs +3 -2
- package/lib/SectionHeading/SectionHeading.mjs +3 -2
- package/lib/Statistics/Statistics.cjs +6 -5
- package/lib/Statistics/Statistics.mjs +33 -32
- package/lib/Summary/Summary.cjs +5 -4
- package/lib/Summary/Summary.mjs +13 -12
- package/lib/ThumbnailSignpost/ThumbnailSignpost.cjs +3 -2
- package/lib/ThumbnailSignpost/ThumbnailSignpost.mjs +3 -2
- package/lib/VideoHeroCard/VideoHeroCard.cjs +77 -0
- package/lib/VideoHeroCard/VideoHeroCard.mjs +75 -0
- package/lib/VideoPortraitCard/VideoPortraitCard.cjs +23 -0
- package/lib/VideoPortraitCard/VideoPortraitCard.mjs +21 -0
- package/lib/_shared/cjs/{Accordion-QqDoB3pY.cjs → Accordion-DfNGOjTm.cjs} +9 -8
- package/lib/_shared/cjs/{Author-aL8YXi7C.cjs → Author-D4dKNQem.cjs} +5 -4
- package/lib/_shared/cjs/Preview-Dx1kCzJ1.cjs +102 -0
- package/lib/_shared/cjs/{SectionHeading-Dj-dJfv3.cjs → SectionHeading-DeSFM0HV.cjs} +5 -4
- package/lib/_shared/cjs/{ThumbnailSignpost-SBnrGooA.cjs → ThumbnailSignpost-GkOiwt-Z.cjs} +5 -4
- package/lib/_shared/cjs/VideoCardThumbnail-N5iC-cAU.cjs +441 -0
- package/lib/_shared/cjs/dash.all.min-BPXzla24.cjs +6 -0
- package/lib/_shared/cjs/filter-attrs-BizjMsy0.cjs +27 -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/cjs/{filter-attrs-C26zOt4_.cjs → tslib.es6-BxB9I209.cjs} +0 -25
- package/lib/_shared/esm/{Accordion-DrOTh90S.mjs → Accordion-DSRlkcXi.mjs} +17 -16
- package/lib/_shared/esm/Author-CLMgH9ES.mjs +28 -0
- package/lib/_shared/esm/Preview-CmbKOgEO.mjs +100 -0
- package/lib/_shared/esm/{SectionHeading-DZOg_gYi.mjs → SectionHeading-DSwsdNSp.mjs} +11 -10
- package/lib/_shared/esm/{ThumbnailSignpost-DaZByYIH.mjs → ThumbnailSignpost-BtaHAB0h.mjs} +14 -13
- package/lib/_shared/esm/VideoCardThumbnail-Tbh7Xi-X.mjs +438 -0
- package/lib/_shared/esm/dash.all.min-CbWI_8dN.mjs +4 -0
- package/lib/_shared/esm/filter-attrs-DZ7RCEZm.mjs +25 -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/_shared/esm/{filter-attrs-D-1kWaCP.mjs → tslib.es6-BVXMhEem.mjs} +1 -25
- package/lib/index.cjs +323 -125
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +114 -3
- package/lib/index.d.mts +114 -3
- package/lib/index.mjs +321 -126
- package/lib/index.mjs.map +1 -1
- package/lib/styles.css +1 -1
- package/package.json +16 -13
- package/rollup.config.js +1 -1
- package/src/components/ActionTile/ActionTile.module.css +1 -0
- package/src/components/ActionTile/ActionTile.tsx +11 -3
- package/src/components/BusinessSegmentSwitcher/BusinessSegmentSwitcher.module.css +92 -0
- package/src/components/BusinessSegmentSwitcher/BusinessSegmentSwitcher.tsx +119 -0
- package/src/components/BusinessSegmentSwitcher/helpers/renderBusinessSegmentSwitcherCarousel.tsx +45 -0
- package/src/components/BusinessSegmentSwitcher/helpers/renderCard.tsx +17 -0
- package/src/components/BusinessSegmentSwitcher/index.ts +9 -0
- package/src/components/BusinessSegmentSwitcher/types/types.ts +45 -0
- 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/LinkTile/LinkTile.module.css +8 -4
- package/src/components/LinkTile/LinkTile.tsx +1 -2
- 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 +3 -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
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign
|
|
2
|
-
import
|
|
1
|
+
import { _ as __rest, a as __assign } from '../_shared/esm/tslib.es6-BVXMhEem.mjs';
|
|
2
|
+
import React__default from 'react';
|
|
3
3
|
import { c as classNames } from '../_shared/esm/index-BfTCfPZ1.mjs';
|
|
4
4
|
import { TabbedBanner } from '@arc-ui/components/TabbedBanner';
|
|
5
|
-
import { S as SectionHeading } from '../_shared/esm/SectionHeading-
|
|
5
|
+
import { S as SectionHeading } from '../_shared/esm/SectionHeading-DSwsdNSp.mjs';
|
|
6
|
+
import { f as filterAttrs } from '../_shared/esm/filter-attrs-DZ7RCEZm.mjs';
|
|
6
7
|
import '@arc-ui/components/Text';
|
|
7
8
|
import '@arc-ui/components/VerticalSpace';
|
|
8
9
|
import '@arc-ui/components/Image';
|
|
@@ -13,12 +14,12 @@ var styles = {"bannerWithTabsHeadingCentered":"BannerWithTabs-module_bannerWithT
|
|
|
13
14
|
var BannerWithTabs = function (_a) {
|
|
14
15
|
var _b;
|
|
15
16
|
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"]);
|
|
16
|
-
return (
|
|
17
|
-
|
|
17
|
+
return (React__default.createElement("div", __assign({}, filterAttrs(props)),
|
|
18
|
+
React__default.createElement("div", { className: classNames((_b = {},
|
|
18
19
|
_b[styles.bannerWithTabsHeadingCentered] = alignTypography === "center",
|
|
19
20
|
_b)) },
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
React__default.createElement(SectionHeading, { id: id, isHeadingWordWrap: isHeadingWordWrap, heading: heading, content: content, isPadded: alignTypography === "left" ? true : false })),
|
|
22
|
+
React__default.createElement(TabbedBanner, { minHeight: minHeight, minHeightM: minHeightM, tabs: tabs, defaultValue: defaultValue })));
|
|
22
23
|
};
|
|
23
24
|
|
|
24
25
|
export { BannerWithTabs };
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var tslib_es6 = require('../_shared/cjs/tslib.es6-BxB9I209.cjs');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var filterAttrs = require('../_shared/cjs/filter-attrs-BizjMsy0.cjs');
|
|
6
|
+
var ContentSwitcher = require('@arc-ui/components/ContentSwitcher');
|
|
7
|
+
var ContentSwitcherDropdown = require('@arc-ui/components/ContentSwitcherDropdown');
|
|
8
|
+
var InformationCard = require('@arc-ui/components/InformationCard');
|
|
9
|
+
var TypographyCard = require('@arc-ui/components/TypographyCard');
|
|
10
|
+
var MediaCard = require('@arc-ui/components/MediaCard');
|
|
11
|
+
var Carousel = require('@arc-ui/components/Carousel');
|
|
12
|
+
|
|
13
|
+
var styles = {"contentWrapper":"BusinessSegmentSwitcher-module_contentWrapper__YKEjS","cardWrapper":"BusinessSegmentSwitcher-module_cardWrapper__eGDJ-","cardCol":"BusinessSegmentSwitcher-module_cardCol__jsySH","businessSegmentSwitcherDesktop":"BusinessSegmentSwitcher-module_businessSegmentSwitcherDesktop__oBvzS","businessSegmentSwitcher":"BusinessSegmentSwitcher-module_businessSegmentSwitcher__Sae5K","desktopCarousel":"BusinessSegmentSwitcher-module_desktopCarousel__xW3HN","businessSegmentSwitcherMobile":"BusinessSegmentSwitcher-module_businessSegmentSwitcherMobile__PSFyi"};
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Renders either an InformationCard or a contained MediaCard based on the card type.
|
|
17
|
+
*/
|
|
18
|
+
var renderCard = function (card) {
|
|
19
|
+
if (card.type === "information") {
|
|
20
|
+
return React.createElement(InformationCard.InformationCard, tslib_es6.__assign({}, card));
|
|
21
|
+
}
|
|
22
|
+
if (card.type === "media") {
|
|
23
|
+
return React.createElement(MediaCard.MediaCard, tslib_es6.__assign({}, card, { isContained: true }));
|
|
24
|
+
}
|
|
25
|
+
return null;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Renders a responsive carousel containing the bento grid cards for mobile and tablet viewports.
|
|
30
|
+
*/
|
|
31
|
+
var renderBusinessSegmentSwitcherCarousel = function (_a) {
|
|
32
|
+
var content = _a.content, label = _a.label;
|
|
33
|
+
return (React.createElement(Carousel.Carousel, { overflow: "visible", behavior: "adaptive", responsive: {
|
|
34
|
+
xs: { itemsPerSlide: 1 },
|
|
35
|
+
s: { itemsPerSlide: 2 },
|
|
36
|
+
} },
|
|
37
|
+
React.createElement("div", { className: styles.cardWrapper }, renderCard(content.card1)),
|
|
38
|
+
React.createElement("div", { className: styles.cardWrapper }, renderCard(content.card2)),
|
|
39
|
+
content.card3 && (React.createElement("div", { className: styles.cardWrapper },
|
|
40
|
+
React.createElement(InformationCard.InformationCard, tslib_es6.__assign({}, content.card3)))),
|
|
41
|
+
React.createElement("div", { className: styles.cardWrapper },
|
|
42
|
+
React.createElement(TypographyCard.TypographyCard, { heading: "All ".concat(label, " solutions"), label: content.card4.label, url: content.card4.url }))));
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* BusinessSegmentSwitcher displays tabbed content with a bento grid layout made up of 3 - 4 cards.
|
|
47
|
+
* Renders as tabs on desktop and a dropdown with carousel on mobile (below 1024px).
|
|
48
|
+
*/
|
|
49
|
+
var BusinessSegmentSwitcher = function (_a) {
|
|
50
|
+
var _b, _c;
|
|
51
|
+
var tabs = _a.tabs, defaultValue = _a.defaultValue, props = tslib_es6.__rest(_a, ["tabs", "defaultValue"]);
|
|
52
|
+
var initialTab = (_c = defaultValue !== null && defaultValue !== void 0 ? defaultValue : (_b = tabs[0]) === null || _b === void 0 ? void 0 : _b.value) !== null && _c !== void 0 ? _c : "";
|
|
53
|
+
var _d = React.useState(initialTab), selectedTab = _d[0], setSelectedTab = _d[1];
|
|
54
|
+
return (React.createElement("div", tslib_es6.__assign({ className: styles.businessSegmentSwitcher }, filterAttrs.filterAttrs(props)),
|
|
55
|
+
React.createElement("div", { className: styles.businessSegmentSwitcherDesktop },
|
|
56
|
+
React.createElement(ContentSwitcher.ContentSwitcher, { value: selectedTab, onValueChange: function (value) { return setSelectedTab(value); } },
|
|
57
|
+
React.createElement(ContentSwitcher.ContentSwitcherList, { isInset: true }, tabs.map(function (_a, index) {
|
|
58
|
+
var label = _a.label, value = _a.value;
|
|
59
|
+
return (React.createElement(ContentSwitcher.ContentSwitcherTab, { label: label, value: value, key: "".concat(index, "-").concat(value) }));
|
|
60
|
+
})),
|
|
61
|
+
tabs.map(function (_a, index) {
|
|
62
|
+
var value = _a.value, content = _a.content, label = _a.label;
|
|
63
|
+
return (React.createElement(ContentSwitcher.ContentSwitcherContent, { value: value, key: "".concat(index, "-").concat(value), hidden: value !== selectedTab },
|
|
64
|
+
React.createElement("div", { className: styles.contentWrapper },
|
|
65
|
+
React.createElement("div", { className: styles.desktopCarousel }, renderBusinessSegmentSwitcherCarousel({ content: content, label: label })),
|
|
66
|
+
renderCard(content.card1),
|
|
67
|
+
renderCard(content.card2),
|
|
68
|
+
React.createElement("div", { className: styles.cardCol },
|
|
69
|
+
content.card3 && React.createElement(InformationCard.InformationCard, tslib_es6.__assign({}, content.card3)),
|
|
70
|
+
React.createElement("div", null,
|
|
71
|
+
React.createElement(TypographyCard.TypographyCard, { heading: "All ".concat(label.toLowerCase(), " solutions"), text: content.card4.text, label: content.card4.label, url: content.card4.url }))))));
|
|
72
|
+
}))),
|
|
73
|
+
React.createElement("div", { className: styles.businessSegmentSwitcherMobile },
|
|
74
|
+
React.createElement(ContentSwitcherDropdown.ContentSwitcherDropdown, { isInset: true, value: selectedTab, tabs: tabs, isFluid: true, onValueChange: function (value) { return setSelectedTab(value); } }, tabs.map(function (_a, index) {
|
|
75
|
+
var value = _a.value, content = _a.content, label = _a.label;
|
|
76
|
+
return (React.createElement(ContentSwitcherDropdown.ContentSwitcherDropdownContent, { value: value, key: "".concat(index, "-").concat(value) },
|
|
77
|
+
React.createElement("div", { className: styles.contentWrapper }, renderBusinessSegmentSwitcherCarousel({ content: content, label: label }))));
|
|
78
|
+
})))));
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
exports.BusinessSegmentSwitcher = BusinessSegmentSwitcher;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { a as __assign, _ as __rest } from '../_shared/esm/tslib.es6-BVXMhEem.mjs';
|
|
2
|
+
import React__default, { useState } from 'react';
|
|
3
|
+
import { f as filterAttrs } from '../_shared/esm/filter-attrs-DZ7RCEZm.mjs';
|
|
4
|
+
import { ContentSwitcher, ContentSwitcherList, ContentSwitcherTab, ContentSwitcherContent } from '@arc-ui/components/ContentSwitcher';
|
|
5
|
+
import { ContentSwitcherDropdown, ContentSwitcherDropdownContent } from '@arc-ui/components/ContentSwitcherDropdown';
|
|
6
|
+
import { InformationCard } from '@arc-ui/components/InformationCard';
|
|
7
|
+
import { TypographyCard } from '@arc-ui/components/TypographyCard';
|
|
8
|
+
import { MediaCard } from '@arc-ui/components/MediaCard';
|
|
9
|
+
import { Carousel } from '@arc-ui/components/Carousel';
|
|
10
|
+
|
|
11
|
+
var styles = {"contentWrapper":"BusinessSegmentSwitcher-module_contentWrapper__YKEjS","cardWrapper":"BusinessSegmentSwitcher-module_cardWrapper__eGDJ-","cardCol":"BusinessSegmentSwitcher-module_cardCol__jsySH","businessSegmentSwitcherDesktop":"BusinessSegmentSwitcher-module_businessSegmentSwitcherDesktop__oBvzS","businessSegmentSwitcher":"BusinessSegmentSwitcher-module_businessSegmentSwitcher__Sae5K","desktopCarousel":"BusinessSegmentSwitcher-module_desktopCarousel__xW3HN","businessSegmentSwitcherMobile":"BusinessSegmentSwitcher-module_businessSegmentSwitcherMobile__PSFyi"};
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Renders either an InformationCard or a contained MediaCard based on the card type.
|
|
15
|
+
*/
|
|
16
|
+
var renderCard = function (card) {
|
|
17
|
+
if (card.type === "information") {
|
|
18
|
+
return React__default.createElement(InformationCard, __assign({}, card));
|
|
19
|
+
}
|
|
20
|
+
if (card.type === "media") {
|
|
21
|
+
return React__default.createElement(MediaCard, __assign({}, card, { isContained: true }));
|
|
22
|
+
}
|
|
23
|
+
return null;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Renders a responsive carousel containing the bento grid cards for mobile and tablet viewports.
|
|
28
|
+
*/
|
|
29
|
+
var renderBusinessSegmentSwitcherCarousel = function (_a) {
|
|
30
|
+
var content = _a.content, label = _a.label;
|
|
31
|
+
return (React__default.createElement(Carousel, { overflow: "visible", behavior: "adaptive", responsive: {
|
|
32
|
+
xs: { itemsPerSlide: 1 },
|
|
33
|
+
s: { itemsPerSlide: 2 },
|
|
34
|
+
} },
|
|
35
|
+
React__default.createElement("div", { className: styles.cardWrapper }, renderCard(content.card1)),
|
|
36
|
+
React__default.createElement("div", { className: styles.cardWrapper }, renderCard(content.card2)),
|
|
37
|
+
content.card3 && (React__default.createElement("div", { className: styles.cardWrapper },
|
|
38
|
+
React__default.createElement(InformationCard, __assign({}, content.card3)))),
|
|
39
|
+
React__default.createElement("div", { className: styles.cardWrapper },
|
|
40
|
+
React__default.createElement(TypographyCard, { heading: "All ".concat(label, " solutions"), label: content.card4.label, url: content.card4.url }))));
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* BusinessSegmentSwitcher displays tabbed content with a bento grid layout made up of 3 - 4 cards.
|
|
45
|
+
* Renders as tabs on desktop and a dropdown with carousel on mobile (below 1024px).
|
|
46
|
+
*/
|
|
47
|
+
var BusinessSegmentSwitcher = function (_a) {
|
|
48
|
+
var _b, _c;
|
|
49
|
+
var tabs = _a.tabs, defaultValue = _a.defaultValue, props = __rest(_a, ["tabs", "defaultValue"]);
|
|
50
|
+
var initialTab = (_c = defaultValue !== null && defaultValue !== void 0 ? defaultValue : (_b = tabs[0]) === null || _b === void 0 ? void 0 : _b.value) !== null && _c !== void 0 ? _c : "";
|
|
51
|
+
var _d = useState(initialTab), selectedTab = _d[0], setSelectedTab = _d[1];
|
|
52
|
+
return (React__default.createElement("div", __assign({ className: styles.businessSegmentSwitcher }, filterAttrs(props)),
|
|
53
|
+
React__default.createElement("div", { className: styles.businessSegmentSwitcherDesktop },
|
|
54
|
+
React__default.createElement(ContentSwitcher, { value: selectedTab, onValueChange: function (value) { return setSelectedTab(value); } },
|
|
55
|
+
React__default.createElement(ContentSwitcherList, { isInset: true }, tabs.map(function (_a, index) {
|
|
56
|
+
var label = _a.label, value = _a.value;
|
|
57
|
+
return (React__default.createElement(ContentSwitcherTab, { label: label, value: value, key: "".concat(index, "-").concat(value) }));
|
|
58
|
+
})),
|
|
59
|
+
tabs.map(function (_a, index) {
|
|
60
|
+
var value = _a.value, content = _a.content, label = _a.label;
|
|
61
|
+
return (React__default.createElement(ContentSwitcherContent, { value: value, key: "".concat(index, "-").concat(value), hidden: value !== selectedTab },
|
|
62
|
+
React__default.createElement("div", { className: styles.contentWrapper },
|
|
63
|
+
React__default.createElement("div", { className: styles.desktopCarousel }, renderBusinessSegmentSwitcherCarousel({ content: content, label: label })),
|
|
64
|
+
renderCard(content.card1),
|
|
65
|
+
renderCard(content.card2),
|
|
66
|
+
React__default.createElement("div", { className: styles.cardCol },
|
|
67
|
+
content.card3 && React__default.createElement(InformationCard, __assign({}, content.card3)),
|
|
68
|
+
React__default.createElement("div", null,
|
|
69
|
+
React__default.createElement(TypographyCard, { heading: "All ".concat(label.toLowerCase(), " solutions"), text: content.card4.text, label: content.card4.label, url: content.card4.url }))))));
|
|
70
|
+
}))),
|
|
71
|
+
React__default.createElement("div", { className: styles.businessSegmentSwitcherMobile },
|
|
72
|
+
React__default.createElement(ContentSwitcherDropdown, { isInset: true, value: selectedTab, tabs: tabs, isFluid: true, onValueChange: function (value) { return setSelectedTab(value); } }, tabs.map(function (_a, index) {
|
|
73
|
+
var value = _a.value, content = _a.content, label = _a.label;
|
|
74
|
+
return (React__default.createElement(ContentSwitcherDropdownContent, { value: value, key: "".concat(index, "-").concat(value) },
|
|
75
|
+
React__default.createElement("div", { className: styles.contentWrapper }, renderBusinessSegmentSwitcherCarousel({ content: content, label: label }))));
|
|
76
|
+
})))));
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
export { BusinessSegmentSwitcher };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.BusinessSegmentSwitcher-module_contentWrapper__YKEjS{background:#f7f7f7;padding:64px 16px 16px;border-radius:64px;width:100%;display:flex;gap:32px;overflow:hidden}.BusinessSegmentSwitcher-module_cardWrapper__eGDJ-{height:100%;min-width:288px}.BusinessSegmentSwitcher-module_contentWrapper__YKEjS>*{flex:1 1 0;min-width:0}.BusinessSegmentSwitcher-module_cardCol__jsySH{display:flex;flex-direction:column;gap:32px}.BusinessSegmentSwitcher-module_cardCol__jsySH>:nth-child(1){flex:1}.BusinessSegmentSwitcher-module_cardCol__jsySH>:nth-child(2){flex-shrink:0}.BusinessSegmentSwitcher-module_businessSegmentSwitcherDesktop__oBvzS{display:none}.BusinessSegmentSwitcher-module_businessSegmentSwitcher__Sae5K{margin:0 -16px}@media (min-width:329px){.BusinessSegmentSwitcher-module_businessSegmentSwitcher__Sae5K{margin:0}}@media (min-width:636px){.BusinessSegmentSwitcher-module_contentWrapper__YKEjS{padding:64px 24px 24px}.BusinessSegmentSwitcher-module_cardWrapper__eGDJ-{min-width:282px}}@media (min-width:768px){.BusinessSegmentSwitcher-module_businessSegmentSwitcherDesktop__oBvzS{display:block}.BusinessSegmentSwitcher-module_segmentSwitcherDesktop__xHnyb .BusinessSegmentSwitcher-module_contentWrapper__YKEjS>*:not(.BusinessSegmentSwitcher-module_desktopCarousel__xW3HN),.BusinessSegmentSwitcher-module_businessSegmentSwitcherMobile__PSFyi{display:none}.BusinessSegmentSwitcher-module_cardWrapper__eGDJ-{min-width:384px}}@media (min-width:1024px){.BusinessSegmentSwitcher-module_desktopCarousel__xW3HN{display:none}.BusinessSegmentSwitcher-module_businessSegmentSwitcherDesktop__oBvzS .BusinessSegmentSwitcher-module_contentWrapper__YKEjS>*:not(.BusinessSegmentSwitcher-module_desktopCarousel__xW3HN){display:flex}.BusinessSegmentSwitcher-module_contentWrapper__YKEjS{padding:64px 32px 32px}}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var tslib_es6 = require('../_shared/cjs/tslib.es6-BxB9I209.cjs');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var Text = require('@arc-ui/components/Text');
|
|
6
6
|
var Icon = require('@arc-ui/components/Icon');
|
|
7
|
+
var filterAttrs = require('../_shared/cjs/filter-attrs-BizjMsy0.cjs');
|
|
7
8
|
|
|
8
9
|
var styles = {"container":"ContentInfoWidget-module_container__yaS-8","text":"ContentInfoWidget-module_text__O1BdZ","icon":"ContentInfoWidget-module_icon__LEww1"};
|
|
9
10
|
|
|
10
11
|
var ContentInfoWidget = function (_a) {
|
|
11
|
-
var text = _a.text, icon = _a.icon, props =
|
|
12
|
-
return (React.createElement("div",
|
|
12
|
+
var text = _a.text, icon = _a.icon, props = tslib_es6.__rest(_a, ["text", "icon"]);
|
|
13
|
+
return (React.createElement("div", tslib_es6.__assign({ className: styles.container }, filterAttrs.filterAttrs(props)),
|
|
13
14
|
React.createElement("div", { className: styles.icon },
|
|
14
15
|
React.createElement(Icon.Icon, { size: 20, icon: icon })),
|
|
15
16
|
React.createElement("div", { className: styles.text },
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign
|
|
2
|
-
import
|
|
1
|
+
import { _ as __rest, a as __assign } from '../_shared/esm/tslib.es6-BVXMhEem.mjs';
|
|
2
|
+
import React__default from 'react';
|
|
3
3
|
import { Text } from '@arc-ui/components/Text';
|
|
4
4
|
import { Icon } from '@arc-ui/components/Icon';
|
|
5
|
+
import { f as filterAttrs } from '../_shared/esm/filter-attrs-DZ7RCEZm.mjs';
|
|
5
6
|
|
|
6
7
|
var styles = {"container":"ContentInfoWidget-module_container__yaS-8","text":"ContentInfoWidget-module_text__O1BdZ","icon":"ContentInfoWidget-module_icon__LEww1"};
|
|
7
8
|
|
|
8
9
|
var ContentInfoWidget = function (_a) {
|
|
9
10
|
var text = _a.text, icon = _a.icon, props = __rest(_a, ["text", "icon"]);
|
|
10
|
-
return (
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
return (React__default.createElement("div", __assign({ className: styles.container }, filterAttrs(props)),
|
|
12
|
+
React__default.createElement("div", { className: styles.icon },
|
|
13
|
+
React__default.createElement(Icon, { size: 20, icon: icon })),
|
|
14
|
+
React__default.createElement("div", { className: styles.text },
|
|
15
|
+
React__default.createElement(Text, { size: "xs", tone: "muted" }, text))));
|
|
15
16
|
};
|
|
16
17
|
|
|
17
18
|
export { ContentInfoWidget };
|
|
@@ -1,35 +1,46 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var tslib_es6 = require('../_shared/cjs/tslib.es6-BxB9I209.cjs');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var
|
|
5
|
+
var filterAttrs = require('../_shared/cjs/filter-attrs-BizjMsy0.cjs');
|
|
6
|
+
var index_es = require('../_shared/cjs/index.es-B0J3cvrY.cjs');
|
|
6
7
|
var Columns = require('@arc-ui/components/Columns');
|
|
7
8
|
var useMediaQuery = require('@arc-ui/components/use-media-query');
|
|
8
9
|
var Heading = require('@arc-ui/components/Heading');
|
|
9
|
-
var Text = require('@arc-ui/components/Text');
|
|
10
10
|
var VerticalSpace = require('@arc-ui/components/VerticalSpace');
|
|
11
|
+
var Text = require('@arc-ui/components/Text');
|
|
11
12
|
var Image$1 = require('@arc-ui/components/Image');
|
|
12
13
|
var Icon = require('@arc-ui/components/Icon');
|
|
13
14
|
var index = require('../_shared/cjs/index-Bp6Dd2i1.cjs');
|
|
14
15
|
var ButtonV2 = require('@arc-ui/components/ButtonV2');
|
|
15
|
-
var SectionHeading = require('../_shared/cjs/SectionHeading-
|
|
16
|
+
var SectionHeading = require('../_shared/cjs/SectionHeading-DeSFM0HV.cjs');
|
|
17
|
+
|
|
18
|
+
var MultiLineText = function (_a) {
|
|
19
|
+
var text = _a.text, textProps = tslib_es6.__rest(_a, ["text"]);
|
|
20
|
+
if (!text)
|
|
21
|
+
return null;
|
|
22
|
+
var paragraphs = text.split(/\\n|\n/).filter(function (p) { return p.trim(); });
|
|
23
|
+
return (React.createElement(React.Fragment, null, paragraphs.map(function (paragraph, index) { return (React.createElement("span", { key: "informationcard-text-".concat(index) },
|
|
24
|
+
index > 0 && React.createElement(VerticalSpace.VerticalSpace, { size: "8" }),
|
|
25
|
+
React.createElement(Text.Text, tslib_es6.__assign({}, textProps), paragraph))); })));
|
|
26
|
+
};
|
|
16
27
|
|
|
17
28
|
var styles = {"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"};
|
|
18
29
|
|
|
19
30
|
var MediaContent = function (_a) {
|
|
20
|
-
var heading = _a.heading, id = _a.id, headingLevel = _a.headingLevel, isHeadingWordWrap = _a.isHeadingWordWrap,
|
|
31
|
+
var heading = _a.heading, id = _a.id, headingLevel = _a.headingLevel, isHeadingWordWrap = _a.isHeadingWordWrap, content = _a.content;
|
|
21
32
|
return (React.createElement("div", { className: styles.mediaContainer },
|
|
22
33
|
React.createElement(Heading.Heading, { id: id, level: headingLevel, isWordWrap: isHeadingWordWrap, size: "xl" }, heading),
|
|
23
|
-
|
|
34
|
+
content && (React.createElement("div", { className: styles.content },
|
|
24
35
|
React.createElement(VerticalSpace.VerticalSpace, { size: "24" }),
|
|
25
|
-
React.createElement(
|
|
36
|
+
React.createElement(MultiLineText, { text: content, size: "l" })))));
|
|
26
37
|
};
|
|
27
38
|
|
|
28
39
|
var Image = function (_a) {
|
|
29
|
-
var sources = _a.sources, props =
|
|
40
|
+
var sources = _a.sources, props = tslib_es6.__rest(_a, ["sources"]);
|
|
30
41
|
return (React.createElement("div", { className: styles.imgWrapper },
|
|
31
|
-
React.createElement(Image$1.Image,
|
|
32
|
-
sources.map(function (source) { return React.createElement("source",
|
|
42
|
+
React.createElement(Image$1.Image, tslib_es6.__assign({ fadeOnLoad: true }, props), sources &&
|
|
43
|
+
sources.map(function (source) { return React.createElement("source", tslib_es6.__assign({ key: source.srcSet }, source)); }))));
|
|
33
44
|
};
|
|
34
45
|
|
|
35
46
|
var IconList = function (_a) {
|
|
@@ -51,7 +62,7 @@ var IconList = function (_a) {
|
|
|
51
62
|
};
|
|
52
63
|
|
|
53
64
|
var Button = function (props) { return (React.createElement("div", { className: styles.buttonContainer },
|
|
54
|
-
React.createElement(ButtonV2.ButtonV2,
|
|
65
|
+
React.createElement(ButtonV2.ButtonV2, tslib_es6.__assign({ isFullWidth: true, buttonStyle: "secondary" }, props)))); };
|
|
55
66
|
|
|
56
67
|
var Container = function (_a) {
|
|
57
68
|
var _b;
|
|
@@ -91,16 +102,16 @@ var MediaTemplate = function (_a) {
|
|
|
91
102
|
return (React.createElement("div", null,
|
|
92
103
|
!isMinWidthArcBreakpointXl && (React.createElement(Columns.Columns, null,
|
|
93
104
|
React.createElement(Columns.ColumnsCol, { span: 12, spanM: 9 },
|
|
94
|
-
React.createElement(MediaContent, { heading: heading, headingLevel: headingLevel, id: id, isHeadingWordWrap: isHeadingWordWrap
|
|
105
|
+
React.createElement(MediaContent, { heading: heading, headingLevel: headingLevel, id: id, isHeadingWordWrap: isHeadingWordWrap, content: content })))),
|
|
95
106
|
React.createElement(Container, { type: "media", isReverseOrder: isReverseOrder, alignment: !isMinWidthArcBreakpointXl ? "top" : "center" },
|
|
96
107
|
React.createElement(Column, null,
|
|
97
|
-
isMinWidthArcBreakpointXl && (React.createElement(MediaContent, { heading: heading
|
|
108
|
+
isMinWidthArcBreakpointXl && (React.createElement(MediaContent, { heading: heading, content: content })),
|
|
98
109
|
React.createElement(IconList, { listItems: listItems, isLgScreen: isMinWidthArcBreakpointL, headingLevel: listHeadingLevel }),
|
|
99
|
-
button && React.createElement(Button,
|
|
110
|
+
button && React.createElement(Button, tslib_es6.__assign({}, button))),
|
|
100
111
|
React.createElement(Column, null,
|
|
101
112
|
video && isClient && (React.createElement(React.Suspense, { fallback: null },
|
|
102
|
-
React.createElement(VideoPlayer,
|
|
103
|
-
image && !video && React.createElement(Image,
|
|
113
|
+
React.createElement(VideoPlayer, tslib_es6.__assign({}, video)))),
|
|
114
|
+
image && !video && React.createElement(Image, tslib_es6.__assign({}, image))))));
|
|
104
115
|
};
|
|
105
116
|
|
|
106
117
|
var ContentTemplate = function (_a) {
|
|
@@ -110,23 +121,23 @@ var ContentTemplate = function (_a) {
|
|
|
110
121
|
var listHeadingLevel = getListHeadingLevel(headingLevel);
|
|
111
122
|
return (React.createElement(Container, { type: "content", alignment: "top" },
|
|
112
123
|
React.createElement(Column, null,
|
|
113
|
-
React.createElement(SectionHeading.SectionHeading, { id: id, heading: heading, headingLevel: headingLevel, isHeadingWordWrap: isHeadingWordWrap, content: content }),
|
|
114
|
-
button && isMinWidthArcBreakpointM && React.createElement(Button,
|
|
124
|
+
React.createElement(SectionHeading.SectionHeading, { id: id, heading: heading, headingLevel: headingLevel, isHeadingWordWrap: isHeadingWordWrap, content: React.createElement(MultiLineText, { size: "l", text: content }) }),
|
|
125
|
+
button && isMinWidthArcBreakpointM && React.createElement(Button, tslib_es6.__assign({}, button))),
|
|
115
126
|
React.createElement(Column, null,
|
|
116
127
|
React.createElement(IconList, { listItems: listItems, isLgScreen: isMinWidthArcBreakpointL, headingLevel: listHeadingLevel }),
|
|
117
|
-
button && !isMinWidthArcBreakpointM && React.createElement(Button,
|
|
128
|
+
button && !isMinWidthArcBreakpointM && React.createElement(Button, tslib_es6.__assign({}, button)))));
|
|
118
129
|
};
|
|
119
130
|
|
|
120
131
|
/**
|
|
121
132
|
* Use `CopyLead` to give supporting information about a page or proposition. It can be used to call out key benefits in bullet points, or link to a supporting explanatory video. An optional CTA can be used to link to further information or trigger a sales or enquiry journey.
|
|
122
133
|
*/
|
|
123
134
|
var CopyLead = function (_a) {
|
|
124
|
-
var button = _a.button, heading = _a.heading, id = _a.id, _b = _a.headingLevel, headingLevel = _b === void 0 ? "2" : _b, listItems = _a.listItems, video = _a.video, image = _a.image, content = _a.content, isHeadingWordWrap = _a.isHeadingWordWrap, _c = _a.isReverseOrder, isReverseOrder = _c === void 0 ? false : _c, props =
|
|
135
|
+
var button = _a.button, heading = _a.heading, id = _a.id, _b = _a.headingLevel, headingLevel = _b === void 0 ? "2" : _b, listItems = _a.listItems, video = _a.video, image = _a.image, content = _a.content, isHeadingWordWrap = _a.isHeadingWordWrap, _c = _a.isReverseOrder, isReverseOrder = _c === void 0 ? false : _c, props = tslib_es6.__rest(_a, ["button", "heading", "id", "headingLevel", "listItems", "video", "image", "content", "isHeadingWordWrap", "isReverseOrder"]);
|
|
125
136
|
if (video || image) {
|
|
126
|
-
return (React.createElement(MediaTemplate,
|
|
137
|
+
return (React.createElement(MediaTemplate, tslib_es6.__assign({ id: id, content: content, video: video, image: image, listItems: listItems, heading: heading, headingLevel: headingLevel, isHeadingWordWrap: isHeadingWordWrap, button: button, isReverseOrder: isReverseOrder }, filterAttrs.filterAttrs(props))));
|
|
127
138
|
}
|
|
128
139
|
if (content) {
|
|
129
|
-
return (React.createElement(ContentTemplate,
|
|
140
|
+
return (React.createElement(ContentTemplate, tslib_es6.__assign({ id: id, listItems: listItems, heading: heading, headingLevel: headingLevel, isHeadingWordWrap: isHeadingWordWrap, button: button, content: content }, filterAttrs.filterAttrs(props))));
|
|
130
141
|
}
|
|
131
142
|
return null;
|
|
132
143
|
};
|
|
@@ -1,67 +1,78 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import { _ as __rest, a as __assign } from '../_shared/esm/tslib.es6-BVXMhEem.mjs';
|
|
2
|
+
import React__default, { useState, useEffect, Suspense } from 'react';
|
|
3
|
+
import { f as filterAttrs } from '../_shared/esm/filter-attrs-DZ7RCEZm.mjs';
|
|
4
|
+
import { a as ArcSizeBreakpointsL, c as ArcSizeBreakpointsXl, b as ArcSizeBreakpointsM } from '../_shared/esm/index.es-DraZ-qKh.mjs';
|
|
4
5
|
import { Columns, ColumnsCol } from '@arc-ui/components/Columns';
|
|
5
6
|
import { useMediaQuery } from '@arc-ui/components/use-media-query';
|
|
6
7
|
import { Heading } from '@arc-ui/components/Heading';
|
|
7
|
-
import { Text } from '@arc-ui/components/Text';
|
|
8
8
|
import { VerticalSpace } from '@arc-ui/components/VerticalSpace';
|
|
9
|
+
import { Text } from '@arc-ui/components/Text';
|
|
9
10
|
import { Image as Image$1 } from '@arc-ui/components/Image';
|
|
10
11
|
import { Icon } from '@arc-ui/components/Icon';
|
|
11
12
|
import { c as classNames } from '../_shared/esm/index-BfTCfPZ1.mjs';
|
|
12
13
|
import { ButtonV2 } from '@arc-ui/components/ButtonV2';
|
|
13
|
-
import { S as SectionHeading } from '../_shared/esm/SectionHeading-
|
|
14
|
+
import { S as SectionHeading } from '../_shared/esm/SectionHeading-DSwsdNSp.mjs';
|
|
15
|
+
|
|
16
|
+
var MultiLineText = function (_a) {
|
|
17
|
+
var text = _a.text, textProps = __rest(_a, ["text"]);
|
|
18
|
+
if (!text)
|
|
19
|
+
return null;
|
|
20
|
+
var paragraphs = text.split(/\\n|\n/).filter(function (p) { return p.trim(); });
|
|
21
|
+
return (React__default.createElement(React__default.Fragment, null, paragraphs.map(function (paragraph, index) { return (React__default.createElement("span", { key: "informationcard-text-".concat(index) },
|
|
22
|
+
index > 0 && React__default.createElement(VerticalSpace, { size: "8" }),
|
|
23
|
+
React__default.createElement(Text, __assign({}, textProps), paragraph))); })));
|
|
24
|
+
};
|
|
14
25
|
|
|
15
26
|
var styles = {"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"};
|
|
16
27
|
|
|
17
28
|
var MediaContent = function (_a) {
|
|
18
|
-
var heading = _a.heading, id = _a.id, headingLevel = _a.headingLevel, isHeadingWordWrap = _a.isHeadingWordWrap,
|
|
19
|
-
return (
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
29
|
+
var heading = _a.heading, id = _a.id, headingLevel = _a.headingLevel, isHeadingWordWrap = _a.isHeadingWordWrap, content = _a.content;
|
|
30
|
+
return (React__default.createElement("div", { className: styles.mediaContainer },
|
|
31
|
+
React__default.createElement(Heading, { id: id, level: headingLevel, isWordWrap: isHeadingWordWrap, size: "xl" }, heading),
|
|
32
|
+
content && (React__default.createElement("div", { className: styles.content },
|
|
33
|
+
React__default.createElement(VerticalSpace, { size: "24" }),
|
|
34
|
+
React__default.createElement(MultiLineText, { text: content, size: "l" })))));
|
|
24
35
|
};
|
|
25
36
|
|
|
26
37
|
var Image = function (_a) {
|
|
27
38
|
var sources = _a.sources, props = __rest(_a, ["sources"]);
|
|
28
|
-
return (
|
|
29
|
-
|
|
30
|
-
sources.map(function (source) { return
|
|
39
|
+
return (React__default.createElement("div", { className: styles.imgWrapper },
|
|
40
|
+
React__default.createElement(Image$1, __assign({ fadeOnLoad: true }, props), sources &&
|
|
41
|
+
sources.map(function (source) { return React__default.createElement("source", __assign({ key: source.srcSet }, source)); }))));
|
|
31
42
|
};
|
|
32
43
|
|
|
33
44
|
var IconList = function (_a) {
|
|
34
45
|
var listItems = _a.listItems, isLgScreen = _a.isLgScreen, _b = _a.headingLevel, headingLevel = _b === void 0 ? "3" : _b;
|
|
35
|
-
return (
|
|
46
|
+
return (React__default.createElement("ul", { className: styles.list }, listItems.map(function (_a) {
|
|
36
47
|
var _b;
|
|
37
48
|
var icon = _a.icon, heading = _a.heading, text = _a.text;
|
|
38
|
-
return (
|
|
49
|
+
return (React__default.createElement("li", { key: heading, className: classNames(styles.listItem, (_b = {},
|
|
39
50
|
_b[styles.listItemCentered] = !text,
|
|
40
51
|
_b)) },
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
text && (
|
|
46
|
-
|
|
47
|
-
|
|
52
|
+
React__default.createElement("div", { className: styles.listItemIconContainer },
|
|
53
|
+
React__default.createElement(Icon, { color: "brand", icon: icon, size: isLgScreen ? 64 : 48 })),
|
|
54
|
+
React__default.createElement("div", { className: styles.listItemTextContainer },
|
|
55
|
+
React__default.createElement(Heading, { level: headingLevel, size: "s" }, heading),
|
|
56
|
+
text && (React__default.createElement(React__default.Fragment, null,
|
|
57
|
+
React__default.createElement(VerticalSpace, { size: "8", sizeL: "16" }),
|
|
58
|
+
React__default.createElement(Text, null, text))))));
|
|
48
59
|
})));
|
|
49
60
|
};
|
|
50
61
|
|
|
51
|
-
var Button = function (props) { return (
|
|
52
|
-
|
|
62
|
+
var Button = function (props) { return (React__default.createElement("div", { className: styles.buttonContainer },
|
|
63
|
+
React__default.createElement(ButtonV2, __assign({ isFullWidth: true, buttonStyle: "secondary" }, props)))); };
|
|
53
64
|
|
|
54
65
|
var Container = function (_a) {
|
|
55
66
|
var _b;
|
|
56
67
|
var children = _a.children, isReverseOrder = _a.isReverseOrder, type = _a.type, alignment = _a.alignment;
|
|
57
|
-
return (
|
|
68
|
+
return (React__default.createElement("div", { "data-testid": "copy-lead-container", className: classNames(styles.container, styles["container--".concat(type)], styles["container--align-".concat(alignment)], (_b = {},
|
|
58
69
|
_b[styles["container--reverse"]] = isReverseOrder,
|
|
59
70
|
_b)) }, children));
|
|
60
71
|
};
|
|
61
72
|
|
|
62
73
|
var Column = function (_a) {
|
|
63
74
|
var children = _a.children;
|
|
64
|
-
return (
|
|
75
|
+
return (React__default.createElement("div", { className: styles.col }, children));
|
|
65
76
|
};
|
|
66
77
|
|
|
67
78
|
var getListHeadingLevel = function (level) {
|
|
@@ -69,7 +80,7 @@ var getListHeadingLevel = function (level) {
|
|
|
69
80
|
return nextLevel.toString();
|
|
70
81
|
};
|
|
71
82
|
|
|
72
|
-
var VideoPlayer =
|
|
83
|
+
var VideoPlayer = React__default.lazy(function () {
|
|
73
84
|
return import('@arc-ui/components/VideoPlayer').then(function (_a) {
|
|
74
85
|
var VideoPlayer = _a.VideoPlayer;
|
|
75
86
|
return ({
|
|
@@ -86,19 +97,19 @@ var MediaTemplate = function (_a) {
|
|
|
86
97
|
useEffect(function () {
|
|
87
98
|
setIsClient(true);
|
|
88
99
|
}, []);
|
|
89
|
-
return (
|
|
90
|
-
!isMinWidthArcBreakpointXl && (
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
isMinWidthArcBreakpointXl && (
|
|
96
|
-
|
|
97
|
-
button &&
|
|
98
|
-
|
|
99
|
-
video && isClient && (
|
|
100
|
-
|
|
101
|
-
image && !video &&
|
|
100
|
+
return (React__default.createElement("div", null,
|
|
101
|
+
!isMinWidthArcBreakpointXl && (React__default.createElement(Columns, null,
|
|
102
|
+
React__default.createElement(ColumnsCol, { span: 12, spanM: 9 },
|
|
103
|
+
React__default.createElement(MediaContent, { heading: heading, headingLevel: headingLevel, id: id, isHeadingWordWrap: isHeadingWordWrap, content: content })))),
|
|
104
|
+
React__default.createElement(Container, { type: "media", isReverseOrder: isReverseOrder, alignment: !isMinWidthArcBreakpointXl ? "top" : "center" },
|
|
105
|
+
React__default.createElement(Column, null,
|
|
106
|
+
isMinWidthArcBreakpointXl && (React__default.createElement(MediaContent, { heading: heading, content: content })),
|
|
107
|
+
React__default.createElement(IconList, { listItems: listItems, isLgScreen: isMinWidthArcBreakpointL, headingLevel: listHeadingLevel }),
|
|
108
|
+
button && React__default.createElement(Button, __assign({}, button))),
|
|
109
|
+
React__default.createElement(Column, null,
|
|
110
|
+
video && isClient && (React__default.createElement(Suspense, { fallback: null },
|
|
111
|
+
React__default.createElement(VideoPlayer, __assign({}, video)))),
|
|
112
|
+
image && !video && React__default.createElement(Image, __assign({}, image))))));
|
|
102
113
|
};
|
|
103
114
|
|
|
104
115
|
var ContentTemplate = function (_a) {
|
|
@@ -106,13 +117,13 @@ var ContentTemplate = function (_a) {
|
|
|
106
117
|
var isMinWidthArcBreakpointM = useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsM, ")"));
|
|
107
118
|
var isMinWidthArcBreakpointL = useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsL, ")"));
|
|
108
119
|
var listHeadingLevel = getListHeadingLevel(headingLevel);
|
|
109
|
-
return (
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
button && isMinWidthArcBreakpointM &&
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
button && !isMinWidthArcBreakpointM &&
|
|
120
|
+
return (React__default.createElement(Container, { type: "content", alignment: "top" },
|
|
121
|
+
React__default.createElement(Column, null,
|
|
122
|
+
React__default.createElement(SectionHeading, { id: id, heading: heading, headingLevel: headingLevel, isHeadingWordWrap: isHeadingWordWrap, content: React__default.createElement(MultiLineText, { size: "l", text: content }) }),
|
|
123
|
+
button && isMinWidthArcBreakpointM && React__default.createElement(Button, __assign({}, button))),
|
|
124
|
+
React__default.createElement(Column, null,
|
|
125
|
+
React__default.createElement(IconList, { listItems: listItems, isLgScreen: isMinWidthArcBreakpointL, headingLevel: listHeadingLevel }),
|
|
126
|
+
button && !isMinWidthArcBreakpointM && React__default.createElement(Button, __assign({}, button)))));
|
|
116
127
|
};
|
|
117
128
|
|
|
118
129
|
/**
|
|
@@ -121,10 +132,10 @@ var ContentTemplate = function (_a) {
|
|
|
121
132
|
var CopyLead = function (_a) {
|
|
122
133
|
var button = _a.button, heading = _a.heading, id = _a.id, _b = _a.headingLevel, headingLevel = _b === void 0 ? "2" : _b, listItems = _a.listItems, video = _a.video, image = _a.image, content = _a.content, isHeadingWordWrap = _a.isHeadingWordWrap, _c = _a.isReverseOrder, isReverseOrder = _c === void 0 ? false : _c, props = __rest(_a, ["button", "heading", "id", "headingLevel", "listItems", "video", "image", "content", "isHeadingWordWrap", "isReverseOrder"]);
|
|
123
134
|
if (video || image) {
|
|
124
|
-
return (
|
|
135
|
+
return (React__default.createElement(MediaTemplate, __assign({ id: id, content: content, video: video, image: image, listItems: listItems, heading: heading, headingLevel: headingLevel, isHeadingWordWrap: isHeadingWordWrap, button: button, isReverseOrder: isReverseOrder }, filterAttrs(props))));
|
|
125
136
|
}
|
|
126
137
|
if (content) {
|
|
127
|
-
return (
|
|
138
|
+
return (React__default.createElement(ContentTemplate, __assign({ id: id, listItems: listItems, heading: heading, headingLevel: headingLevel, isHeadingWordWrap: isHeadingWordWrap, button: button, content: content }, filterAttrs(props))));
|
|
128
139
|
}
|
|
129
140
|
return null;
|
|
130
141
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var tslib_es6 = require('../_shared/cjs/tslib.es6-BxB9I209.cjs');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var VerticalSpace = require('@arc-ui/components/VerticalSpace');
|
|
6
|
-
var SectionHeading = require('../_shared/cjs/SectionHeading-
|
|
6
|
+
var SectionHeading = require('../_shared/cjs/SectionHeading-DeSFM0HV.cjs');
|
|
7
7
|
var Download = require('@arc-ui/components/Download');
|
|
8
|
+
var filterAttrs = require('../_shared/cjs/filter-attrs-BizjMsy0.cjs');
|
|
8
9
|
require('../_shared/cjs/index-Bp6Dd2i1.cjs');
|
|
9
10
|
require('@arc-ui/components/Text');
|
|
10
11
|
require('@arc-ui/components/Image');
|
|
@@ -13,13 +14,13 @@ require('@arc-ui/components/Heading');
|
|
|
13
14
|
var styles = {"headingContainer":"DownloadList-module_headingContainer__PNio8"};
|
|
14
15
|
|
|
15
16
|
var DownloadList = function (_a) {
|
|
16
|
-
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 =
|
|
17
|
-
return (React.createElement("div",
|
|
17
|
+
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 = tslib_es6.__rest(_a, ["heading", "id", "headingLevel", "isHeadingWordWrap", "content", "downloads"]);
|
|
18
|
+
return (React.createElement("div", tslib_es6.__assign({}, filterAttrs.filterAttrs(props)),
|
|
18
19
|
React.createElement("div", { className: styles.headingContainer },
|
|
19
20
|
React.createElement(SectionHeading.SectionHeading, { id: id, heading: heading, isHeadingWordWrap: isHeadingWordWrap, headingLevel: headingLevel, content: content })),
|
|
20
21
|
React.createElement(VerticalSpace.VerticalSpace, { size: "40" }),
|
|
21
22
|
downloads.map(function (downloadProps, i) { return (React.createElement(React.Fragment, { key: "download-".concat(i) },
|
|
22
|
-
React.createElement(Download.Download,
|
|
23
|
+
React.createElement(Download.Download, tslib_es6.__assign({}, downloadProps)),
|
|
23
24
|
i !== downloads.length - 1 && React.createElement(VerticalSpace.VerticalSpace, { size: "16" }))); })));
|
|
24
25
|
};
|
|
25
26
|
|