@arc-ui/community-components 3.4.0 → 3.6.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 +37 -37
- package/CHANGELOG.md +20 -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 +6 -4
- package/lib/ActionTile/styles.css +1 -1
- package/lib/ArticleSidebar/ArticleSidebar.cjs +10 -9
- package/lib/ArticleSidebar/ArticleSidebar.mjs +3 -2
- package/lib/Author/Author.cjs +3 -2
- package/lib/Author/Author.mjs +3 -2
- package/lib/BannerWithTabs/BannerWithTabs.cjs +6 -5
- package/lib/BannerWithTabs/BannerWithTabs.mjs +5 -4
- 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 +2 -1
- package/lib/CopyLead/CopyLead.cjs +17 -16
- package/lib/CopyLead/CopyLead.mjs +3 -2
- package/lib/DownloadList/DownloadList.cjs +6 -5
- package/lib/DownloadList/DownloadList.mjs +3 -2
- package/lib/FAQs/FAQs.cjs +6 -5
- package/lib/FAQs/FAQs.mjs +4 -3
- package/lib/FeaturePost/FeaturePost.cjs +12 -11
- package/lib/FeaturePost/FeaturePost.mjs +3 -2
- package/lib/Highlights/Highlights.cjs +12 -11
- package/lib/Highlights/Highlights.mjs +4 -3
- package/lib/InlineLinkGroup/InlineLinkGroup.cjs +4 -3
- package/lib/InlineLinkGroup/InlineLinkGroup.mjs +2 -1
- package/lib/LinkTile/LinkTile.cjs +3 -3
- package/lib/LinkTile/LinkTile.mjs +2 -2
- package/lib/LinkTile/styles.css +1 -1
- package/lib/ProductNavigation/ProductNavigation.cjs +6 -5
- package/lib/ProductNavigation/ProductNavigation.mjs +3 -2
- package/lib/PromoListing/PromoListing.cjs +7 -6
- package/lib/PromoListing/PromoListing.mjs +3 -2
- package/lib/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.cjs +7 -6
- package/lib/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.mjs +4 -3
- package/lib/Quote/Quote.cjs +6 -5
- package/lib/Quote/Quote.mjs +3 -2
- 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 +3 -2
- package/lib/Summary/Summary.cjs +4 -3
- package/lib/Summary/Summary.mjs +2 -1
- package/lib/ThumbnailSignpost/ThumbnailSignpost.cjs +3 -2
- package/lib/ThumbnailSignpost/ThumbnailSignpost.mjs +3 -2
- package/lib/VideoHeroCard/VideoHeroCard.cjs +7 -6
- package/lib/VideoHeroCard/VideoHeroCard.mjs +3 -2
- package/lib/VideoPortraitCard/VideoPortraitCard.cjs +5 -4
- package/lib/VideoPortraitCard/VideoPortraitCard.mjs +3 -2
- 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/{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-BqYgpk0u.cjs → VideoCardThumbnail-N5iC-cAU.cjs} +7 -6
- package/lib/_shared/cjs/filter-attrs-BizjMsy0.cjs +27 -0
- package/lib/_shared/cjs/{filter-attrs-C26zOt4_.cjs → tslib.es6-BxB9I209.cjs} +0 -25
- package/lib/_shared/esm/{Accordion-DtU7jbCv.mjs → Accordion-DSRlkcXi.mjs} +2 -1
- package/lib/_shared/esm/{Author-CJQFrQM9.mjs → Author-CLMgH9ES.mjs} +2 -1
- package/lib/_shared/esm/{SectionHeading-BskdQ2Tt.mjs → SectionHeading-DSwsdNSp.mjs} +2 -1
- package/lib/_shared/esm/{ThumbnailSignpost-CBSdQiHw.mjs → ThumbnailSignpost-BtaHAB0h.mjs} +2 -1
- package/lib/_shared/esm/{VideoCardThumbnail-VfOKmPCv.mjs → VideoCardThumbnail-Tbh7Xi-X.mjs} +2 -1
- package/lib/_shared/esm/filter-attrs-DZ7RCEZm.mjs +25 -0
- package/lib/_shared/esm/{filter-attrs-D-1kWaCP.mjs → tslib.es6-BVXMhEem.mjs} +1 -25
- package/lib/index.cjs +207 -135
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +66 -4
- package/lib/index.d.mts +66 -4
- package/lib/index.mjs +207 -136
- package/lib/index.mjs.map +1 -1
- package/lib/styles.css +1 -1
- package/package.json +4 -4
- package/src/components/ActionTile/ActionTile.module.css +1 -0
- package/src/components/ActionTile/ActionTile.tsx +11 -3
- package/src/components/BannerWithTabs/BannerWithTabs.tsx +7 -0
- 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/Highlights/Highlights.tsx +2 -1
- package/src/components/LinkTile/LinkTile.module.css +8 -4
- package/src/components/LinkTile/LinkTile.tsx +1 -2
- package/src/components/index.ts +1 -0
- package/versions.json +1 -1
|
@@ -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,7 +1,8 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign
|
|
1
|
+
import { _ as __rest, a as __assign } from '../_shared/esm/tslib.es6-BVXMhEem.mjs';
|
|
2
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
|
|
|
@@ -1,7 +1,8 @@
|
|
|
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 filterAttrs = require('../_shared/cjs/filter-attrs-BizjMsy0.cjs');
|
|
5
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');
|
|
@@ -12,16 +13,16 @@ 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');
|
|
16
17
|
|
|
17
18
|
var MultiLineText = function (_a) {
|
|
18
|
-
var text = _a.text, textProps =
|
|
19
|
+
var text = _a.text, textProps = tslib_es6.__rest(_a, ["text"]);
|
|
19
20
|
if (!text)
|
|
20
21
|
return null;
|
|
21
22
|
var paragraphs = text.split(/\\n|\n/).filter(function (p) { return p.trim(); });
|
|
22
23
|
return (React.createElement(React.Fragment, null, paragraphs.map(function (paragraph, index) { return (React.createElement("span", { key: "informationcard-text-".concat(index) },
|
|
23
24
|
index > 0 && React.createElement(VerticalSpace.VerticalSpace, { size: "8" }),
|
|
24
|
-
React.createElement(Text.Text,
|
|
25
|
+
React.createElement(Text.Text, tslib_es6.__assign({}, textProps), paragraph))); })));
|
|
25
26
|
};
|
|
26
27
|
|
|
27
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"};
|
|
@@ -36,10 +37,10 @@ var MediaContent = function (_a) {
|
|
|
36
37
|
};
|
|
37
38
|
|
|
38
39
|
var Image = function (_a) {
|
|
39
|
-
var sources = _a.sources, props =
|
|
40
|
+
var sources = _a.sources, props = tslib_es6.__rest(_a, ["sources"]);
|
|
40
41
|
return (React.createElement("div", { className: styles.imgWrapper },
|
|
41
|
-
React.createElement(Image$1.Image,
|
|
42
|
-
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)); }))));
|
|
43
44
|
};
|
|
44
45
|
|
|
45
46
|
var IconList = function (_a) {
|
|
@@ -61,7 +62,7 @@ var IconList = function (_a) {
|
|
|
61
62
|
};
|
|
62
63
|
|
|
63
64
|
var Button = function (props) { return (React.createElement("div", { className: styles.buttonContainer },
|
|
64
|
-
React.createElement(ButtonV2.ButtonV2,
|
|
65
|
+
React.createElement(ButtonV2.ButtonV2, tslib_es6.__assign({ isFullWidth: true, buttonStyle: "secondary" }, props)))); };
|
|
65
66
|
|
|
66
67
|
var Container = function (_a) {
|
|
67
68
|
var _b;
|
|
@@ -106,11 +107,11 @@ var MediaTemplate = function (_a) {
|
|
|
106
107
|
React.createElement(Column, null,
|
|
107
108
|
isMinWidthArcBreakpointXl && (React.createElement(MediaContent, { heading: heading, content: content })),
|
|
108
109
|
React.createElement(IconList, { listItems: listItems, isLgScreen: isMinWidthArcBreakpointL, headingLevel: listHeadingLevel }),
|
|
109
|
-
button && React.createElement(Button,
|
|
110
|
+
button && React.createElement(Button, tslib_es6.__assign({}, button))),
|
|
110
111
|
React.createElement(Column, null,
|
|
111
112
|
video && isClient && (React.createElement(React.Suspense, { fallback: null },
|
|
112
|
-
React.createElement(VideoPlayer,
|
|
113
|
-
image && !video && React.createElement(Image,
|
|
113
|
+
React.createElement(VideoPlayer, tslib_es6.__assign({}, video)))),
|
|
114
|
+
image && !video && React.createElement(Image, tslib_es6.__assign({}, image))))));
|
|
114
115
|
};
|
|
115
116
|
|
|
116
117
|
var ContentTemplate = function (_a) {
|
|
@@ -121,22 +122,22 @@ var ContentTemplate = function (_a) {
|
|
|
121
122
|
return (React.createElement(Container, { type: "content", alignment: "top" },
|
|
122
123
|
React.createElement(Column, null,
|
|
123
124
|
React.createElement(SectionHeading.SectionHeading, { id: id, heading: heading, headingLevel: headingLevel, isHeadingWordWrap: isHeadingWordWrap, content: React.createElement(MultiLineText, { size: "l", text: content }) }),
|
|
124
|
-
button && isMinWidthArcBreakpointM && React.createElement(Button,
|
|
125
|
+
button && isMinWidthArcBreakpointM && React.createElement(Button, tslib_es6.__assign({}, button))),
|
|
125
126
|
React.createElement(Column, null,
|
|
126
127
|
React.createElement(IconList, { listItems: listItems, isLgScreen: isMinWidthArcBreakpointL, headingLevel: listHeadingLevel }),
|
|
127
|
-
button && !isMinWidthArcBreakpointM && React.createElement(Button,
|
|
128
|
+
button && !isMinWidthArcBreakpointM && React.createElement(Button, tslib_es6.__assign({}, button)))));
|
|
128
129
|
};
|
|
129
130
|
|
|
130
131
|
/**
|
|
131
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.
|
|
132
133
|
*/
|
|
133
134
|
var CopyLead = function (_a) {
|
|
134
|
-
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"]);
|
|
135
136
|
if (video || image) {
|
|
136
|
-
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))));
|
|
137
138
|
}
|
|
138
139
|
if (content) {
|
|
139
|
-
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))));
|
|
140
141
|
}
|
|
141
142
|
return null;
|
|
142
143
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign
|
|
1
|
+
import { _ as __rest, a as __assign } from '../_shared/esm/tslib.es6-BVXMhEem.mjs';
|
|
2
2
|
import React__default, { useState, useEffect, Suspense } from 'react';
|
|
3
|
+
import { f as filterAttrs } from '../_shared/esm/filter-attrs-DZ7RCEZm.mjs';
|
|
3
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';
|
|
@@ -10,7 +11,7 @@ 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';
|
|
14
15
|
|
|
15
16
|
var MultiLineText = function (_a) {
|
|
16
17
|
var text = _a.text, textProps = __rest(_a, ["text"]);
|
|
@@ -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
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign
|
|
1
|
+
import { _ as __rest, a as __assign } from '../_shared/esm/tslib.es6-BVXMhEem.mjs';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import { VerticalSpace } from '@arc-ui/components/VerticalSpace';
|
|
4
|
-
import { S as SectionHeading } from '../_shared/esm/SectionHeading-
|
|
4
|
+
import { S as SectionHeading } from '../_shared/esm/SectionHeading-DSwsdNSp.mjs';
|
|
5
5
|
import { Download } from '@arc-ui/components/Download';
|
|
6
|
+
import { f as filterAttrs } from '../_shared/esm/filter-attrs-DZ7RCEZm.mjs';
|
|
6
7
|
import '../_shared/esm/index-BfTCfPZ1.mjs';
|
|
7
8
|
import '@arc-ui/components/Text';
|
|
8
9
|
import '@arc-ui/components/Image';
|
package/lib/FAQs/FAQs.cjs
CHANGED
|
@@ -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 index = require('../_shared/cjs/index-Bp6Dd2i1.cjs');
|
|
6
|
-
var
|
|
7
|
-
var
|
|
6
|
+
var filterAttrs = require('../_shared/cjs/filter-attrs-BizjMsy0.cjs');
|
|
7
|
+
var Accordion = require('../_shared/cjs/Accordion-DfNGOjTm.cjs');
|
|
8
|
+
var SectionHeading = require('../_shared/cjs/SectionHeading-DeSFM0HV.cjs');
|
|
8
9
|
var Link = require('@arc-ui/components/Link');
|
|
9
10
|
var Heading = require('@arc-ui/components/Heading');
|
|
10
11
|
var VerticalSpace = require('@arc-ui/components/VerticalSpace');
|
|
@@ -26,8 +27,8 @@ var scrollToSectionFocusFirstElement = function (item) {
|
|
|
26
27
|
};
|
|
27
28
|
var FAQs = function (_a) {
|
|
28
29
|
var _b;
|
|
29
|
-
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 =
|
|
30
|
-
return (React.createElement("div",
|
|
30
|
+
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 = tslib_es6.__rest(_a, ["heading", "isHeadingWordWrap", "content", "id", "isPadded", "headingLevel", "image", "type", "linkListHeading", "accordionData"]);
|
|
31
|
+
return (React.createElement("div", tslib_es6.__assign({ className: styles.FAQs }, filterAttrs.filterAttrs(props)),
|
|
31
32
|
React.createElement(SectionHeading.SectionHeading, { id: id, isHeadingWordWrap: isHeadingWordWrap, heading: heading, content: content, image: image, headingLevel: headingLevel, isPadded: isPadded }),
|
|
32
33
|
type === "listWithLinks" && (React.createElement("div", { className: styles.linkListSection },
|
|
33
34
|
React.createElement("div", { className: styles.linkListTitle },
|
package/lib/FAQs/FAQs.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign
|
|
1
|
+
import { _ as __rest, a as __assign } from '../_shared/esm/tslib.es6-BVXMhEem.mjs';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import { c as classNames } from '../_shared/esm/index-BfTCfPZ1.mjs';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { f as filterAttrs } from '../_shared/esm/filter-attrs-DZ7RCEZm.mjs';
|
|
5
|
+
import { A as Accordion } from '../_shared/esm/Accordion-DSRlkcXi.mjs';
|
|
6
|
+
import { S as SectionHeading } from '../_shared/esm/SectionHeading-DSwsdNSp.mjs';
|
|
6
7
|
import { Link } from '@arc-ui/components/Link';
|
|
7
8
|
import { Heading } from '@arc-ui/components/Heading';
|
|
8
9
|
import { VerticalSpace } from '@arc-ui/components/VerticalSpace';
|
|
@@ -1,8 +1,9 @@
|
|
|
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 index = require('../_shared/cjs/index-Bp6Dd2i1.cjs');
|
|
6
|
+
var filterAttrs = require('../_shared/cjs/filter-attrs-BizjMsy0.cjs');
|
|
6
7
|
var index_es = require('../_shared/cjs/index.es-B0J3cvrY.cjs');
|
|
7
8
|
var AppButton = require('@arc-ui/components/AppButton');
|
|
8
9
|
var Grid = require('@arc-ui/components/Grid');
|
|
@@ -11,7 +12,7 @@ var Heading = require('@arc-ui/components/Heading');
|
|
|
11
12
|
var Text = require('@arc-ui/components/Text');
|
|
12
13
|
var VerticalSpace = require('@arc-ui/components/VerticalSpace');
|
|
13
14
|
var useMediaQuery = require('@arc-ui/components/use-media-query');
|
|
14
|
-
var Author = require('../_shared/cjs/Author-
|
|
15
|
+
var Author = require('../_shared/cjs/Author-D4dKNQem.cjs');
|
|
15
16
|
var Image$1 = require('@arc-ui/components/Image');
|
|
16
17
|
require('@arc-ui/components/Avatar');
|
|
17
18
|
|
|
@@ -2203,11 +2204,11 @@ function cleanEscapedString(input) {
|
|
|
2203
2204
|
var styles = {"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"};
|
|
2204
2205
|
|
|
2205
2206
|
var Image = function (_a) {
|
|
2206
|
-
var sources = _a.sources, title = _a.title, description = _a.description, props =
|
|
2207
|
+
var sources = _a.sources, title = _a.title, description = _a.description, props = tslib_es6.__rest(_a, ["sources", "title", "description"]);
|
|
2207
2208
|
return (React.createElement(React.Fragment, null,
|
|
2208
2209
|
React.createElement("div", { className: styles.imgWrapper },
|
|
2209
|
-
React.createElement(Image$1.Image,
|
|
2210
|
-
sources.map(function (source) { return React.createElement("source",
|
|
2210
|
+
React.createElement(Image$1.Image, tslib_es6.__assign({ fadeOnLoad: true }, props), sources &&
|
|
2211
|
+
sources.map(function (source) { return React.createElement("source", tslib_es6.__assign({ key: source.srcSet }, source)); }))),
|
|
2211
2212
|
title && (React.createElement(React.Fragment, null,
|
|
2212
2213
|
React.createElement(VerticalSpace.VerticalSpace, { size: "24" }),
|
|
2213
2214
|
React.createElement(Heading.Heading, { level: "3", size: "s" }, title),
|
|
@@ -2231,9 +2232,9 @@ var MediaContent = function (_a) {
|
|
|
2231
2232
|
setIsClient(true);
|
|
2232
2233
|
}, []);
|
|
2233
2234
|
return (React.createElement(React.Fragment, null,
|
|
2234
|
-
image && !video && React.createElement(Image,
|
|
2235
|
+
image && !video && React.createElement(Image, tslib_es6.__assign({}, image)),
|
|
2235
2236
|
video && isClient && (React.createElement(React.Suspense, { fallback: null },
|
|
2236
|
-
React.createElement(VideoPlayer,
|
|
2237
|
+
React.createElement(VideoPlayer, tslib_es6.__assign({}, video))))));
|
|
2237
2238
|
};
|
|
2238
2239
|
|
|
2239
2240
|
/**
|
|
@@ -2241,9 +2242,9 @@ var MediaContent = function (_a) {
|
|
|
2241
2242
|
* */
|
|
2242
2243
|
var FeaturePost = function (_a) {
|
|
2243
2244
|
var _b;
|
|
2244
|
-
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 =
|
|
2245
|
+
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 = tslib_es6.__rest(_a, ["heading", "id", "headingLevel", "label", "image", "content", "footer", "video", "isHeadingWordWrap", "isReverseOrder"]);
|
|
2245
2246
|
var isMinWidthArcBreakpointM = useMediaQuery.useMediaQuery("(min-width: ".concat(index_es.ArcSizeBreakpointsM, ")"));
|
|
2246
|
-
return (React.createElement("div",
|
|
2247
|
+
return (React.createElement("div", tslib_es6.__assign({ "data-testid": "feature-post", className: index.classNames(styles.featurePost, (_b = {},
|
|
2247
2248
|
_b[styles.featurePostReversed] = isReverseOrder,
|
|
2248
2249
|
_b)) }, filterAttrs.filterAttrs(props)),
|
|
2249
2250
|
React.createElement("div", { className: styles.col },
|
|
@@ -2265,9 +2266,9 @@ var FeaturePost = function (_a) {
|
|
|
2265
2266
|
(footer === null || footer === void 0 ? void 0 : footer.type) === "cta" && (React.createElement(React.Fragment, null,
|
|
2266
2267
|
footer.author && (React.createElement(React.Fragment, null,
|
|
2267
2268
|
React.createElement(VerticalSpace.VerticalSpace, { size: "40" }),
|
|
2268
|
-
React.createElement(Author.Author,
|
|
2269
|
+
React.createElement(Author.Author, tslib_es6.__assign({}, footer.author)))),
|
|
2269
2270
|
React.createElement(VerticalSpace.VerticalSpace, { size: "40" }),
|
|
2270
|
-
React.createElement(ButtonV2.ButtonV2,
|
|
2271
|
+
React.createElement(ButtonV2.ButtonV2, tslib_es6.__assign({ buttonStyle: "secondary" }, footer.button)))),
|
|
2271
2272
|
(footer === null || footer === void 0 ? void 0 : footer.type) === "appButton" && (React.createElement(React.Fragment, null,
|
|
2272
2273
|
React.createElement(VerticalSpace.VerticalSpace, { size: "40" }),
|
|
2273
2274
|
React.createElement(Grid.Grid, { isGutterless: true, isFluid: true },
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign
|
|
1
|
+
import { _ as __rest, a as __assign } from '../_shared/esm/tslib.es6-BVXMhEem.mjs';
|
|
2
2
|
import React__default, { useState, useEffect, Suspense } from 'react';
|
|
3
3
|
import { c as classNames } from '../_shared/esm/index-BfTCfPZ1.mjs';
|
|
4
|
+
import { f as filterAttrs } from '../_shared/esm/filter-attrs-DZ7RCEZm.mjs';
|
|
4
5
|
import { b as ArcSizeBreakpointsM } from '../_shared/esm/index.es-DraZ-qKh.mjs';
|
|
5
6
|
import { AppButton } from '@arc-ui/components/AppButton';
|
|
6
7
|
import { Grid, GridRow, GridCol } from '@arc-ui/components/Grid';
|
|
@@ -9,7 +10,7 @@ import { Heading } from '@arc-ui/components/Heading';
|
|
|
9
10
|
import { Text } from '@arc-ui/components/Text';
|
|
10
11
|
import { VerticalSpace } from '@arc-ui/components/VerticalSpace';
|
|
11
12
|
import { useMediaQuery } from '@arc-ui/components/use-media-query';
|
|
12
|
-
import { A as Author } from '../_shared/esm/Author-
|
|
13
|
+
import { A as Author } from '../_shared/esm/Author-CLMgH9ES.mjs';
|
|
13
14
|
import { Image as Image$1 } from '@arc-ui/components/Image';
|
|
14
15
|
import '@arc-ui/components/Avatar';
|
|
15
16
|
|
|
@@ -1,17 +1,18 @@
|
|
|
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 useMediaQuery = require('@arc-ui/components/use-media-query');
|
|
6
6
|
var ButtonV2 = require('@arc-ui/components/ButtonV2');
|
|
7
7
|
var VerticalSpace = require('@arc-ui/components/VerticalSpace');
|
|
8
8
|
var BtIconArrowRightFill = require('../_shared/cjs/BtIconArrowRightFill-BVCZv7Lm.cjs');
|
|
9
|
-
var SectionHeading = require('../_shared/cjs/SectionHeading-
|
|
9
|
+
var SectionHeading = require('../_shared/cjs/SectionHeading-DeSFM0HV.cjs');
|
|
10
10
|
var index = require('../_shared/cjs/index-Bp6Dd2i1.cjs');
|
|
11
11
|
var Heading = require('@arc-ui/components/Heading');
|
|
12
12
|
var Icon = require('@arc-ui/components/Icon');
|
|
13
13
|
var Text = require('@arc-ui/components/Text');
|
|
14
14
|
var Link = require('@arc-ui/components/Link');
|
|
15
|
+
var filterAttrs = require('../_shared/cjs/filter-attrs-BizjMsy0.cjs');
|
|
15
16
|
require('@arc-ui/components/Image');
|
|
16
17
|
|
|
17
18
|
var styles = {"highlights":"Highlights-module_highlights__Hf7Zq","highlightItem":"Highlights-module_highlightItem__-N6le","highlights2Column":"Highlights-module_highlights2Column__6qIuI","highlights3Column":"Highlights-module_highlights3Column__qsCMP"};
|
|
@@ -22,9 +23,9 @@ var getListHeadingLevel = function (level) {
|
|
|
22
23
|
};
|
|
23
24
|
|
|
24
25
|
var HighlightItem = function (_a) {
|
|
25
|
-
var icon = _a.icon, heading = _a.heading, text = _a.text, link = _a.link, isSmallIcon = _a.isSmallIcon, headingLevel = _a.headingLevel, props =
|
|
26
|
+
var icon = _a.icon, heading = _a.heading, text = _a.text, link = _a.link, isSmallIcon = _a.isSmallIcon, headingLevel = _a.headingLevel, props = tslib_es6.__rest(_a, ["icon", "heading", "text", "link", "isSmallIcon", "headingLevel"]);
|
|
26
27
|
var listHeadingLevel = getListHeadingLevel(headingLevel || "2");
|
|
27
|
-
return (React.createElement("div",
|
|
28
|
+
return (React.createElement("div", tslib_es6.__assign({ "data-testid": "highlight-item-container", className: styles.highlightItem }, filterAttrs.filterAttrs(props)),
|
|
28
29
|
icon && (React.createElement("div", { className: styles.Icon },
|
|
29
30
|
React.createElement(Icon.Icon, { "data-testid": "highlight-icon", color: "brand", icon: icon, size: isSmallIcon ? 64 : 76 }))),
|
|
30
31
|
React.createElement(VerticalSpace.VerticalSpace, { size: "16" }),
|
|
@@ -36,11 +37,11 @@ var HighlightItem = function (_a) {
|
|
|
36
37
|
};
|
|
37
38
|
|
|
38
39
|
var HighlightList = function (_a) {
|
|
39
|
-
var listItems = _a.listItems, columns = _a.columns, isSmallIcon = _a.isSmallIcon, headingLevel = _a.headingLevel, props =
|
|
40
|
+
var listItems = _a.listItems, columns = _a.columns, isSmallIcon = _a.isSmallIcon, headingLevel = _a.headingLevel, props = tslib_es6.__rest(_a, ["listItems", "columns", "isSmallIcon", "headingLevel"]);
|
|
40
41
|
var id = React.useId();
|
|
41
|
-
return (React.createElement("div",
|
|
42
|
-
var icon = _a.icon, heading = _a.heading, text = _a.text, link = _a.link, itemProps =
|
|
43
|
-
return (React.createElement(HighlightItem,
|
|
42
|
+
return (React.createElement("div", tslib_es6.__assign({ "data-testid": "highlights-list", className: index.classNames(styles.highlights, styles["highlights".concat(columns, "Column")]) }, filterAttrs.filterAttrs(props)), listItems.map(function (_a, i) {
|
|
43
|
+
var icon = _a.icon, heading = _a.heading, text = _a.text, link = _a.link, itemProps = tslib_es6.__rest(_a, ["icon", "heading", "text", "link"]);
|
|
44
|
+
return (React.createElement(HighlightItem, tslib_es6.__assign({ key: "highlight-".concat(id, "-").concat(i), icon: icon, heading: heading, text: text, link: link, isSmallIcon: isSmallIcon, headingLevel: headingLevel }, itemProps)));
|
|
44
45
|
})));
|
|
45
46
|
};
|
|
46
47
|
|
|
@@ -51,14 +52,14 @@ var HighlightList = function (_a) {
|
|
|
51
52
|
*/
|
|
52
53
|
var Highlights = function (_a) {
|
|
53
54
|
var _b, _c, _d;
|
|
54
|
-
var heading = _a.heading, headingLevel = _a.headingLevel, id = _a.id, isHeadingWordWrap = _a.isHeadingWordWrap, content = _a.content, listItems = _a.listItems, _e = _a.columns, columns = _e === void 0 ? "2" : _e, cta = _a.cta, props =
|
|
55
|
+
var heading = _a.heading, headingLevel = _a.headingLevel, id = _a.id, isHeadingWordWrap = _a.isHeadingWordWrap, content = _a.content, listItems = _a.listItems, _e = _a.columns, columns = _e === void 0 ? "2" : _e, cta = _a.cta, props = tslib_es6.__rest(_a, ["heading", "headingLevel", "id", "isHeadingWordWrap", "content", "listItems", "columns", "cta"]);
|
|
55
56
|
var isMaxWidthArcBreakpointXs = useMediaQuery.useMediaQuery("(max-width: 767px)");
|
|
56
|
-
return (React.createElement("div",
|
|
57
|
+
return (React.createElement("div", tslib_es6.__assign({}, filterAttrs.filterAttrs(props)),
|
|
57
58
|
React.createElement(SectionHeading.SectionHeading, { isPadded: true, id: id, "data-testid": "highlights-header", heading: heading, headingLevel: headingLevel, isHeadingWordWrap: isHeadingWordWrap, content: content }),
|
|
58
59
|
React.createElement(HighlightList, { listItems: listItems, columns: columns, isSmallIcon: isMaxWidthArcBreakpointXs, headingLevel: headingLevel }),
|
|
59
60
|
cta && (React.createElement(React.Fragment, null,
|
|
60
61
|
React.createElement(VerticalSpace.VerticalSpace, { size: "24" }),
|
|
61
|
-
React.createElement(ButtonV2.ButtonV2, { label: cta.label, href: cta.href, onClick: cta.onClick, size: "m", ariaLabel: cta.ariaLabel, buttonStyle: cta.buttonStyle, icon: cta.buttonStyle === "compact"
|
|
62
|
+
React.createElement(ButtonV2.ButtonV2, { label: cta.label, href: cta.href, onClick: cta.onClick, target: cta.target, size: "m", ariaLabel: cta.ariaLabel, buttonStyle: cta.buttonStyle, icon: cta.buttonStyle === "compact"
|
|
62
63
|
? ((_b = cta.icon) !== null && _b !== void 0 ? _b : BtIconArrowRightFill.BtIconArrowRightFill)
|
|
63
64
|
: undefined, iconActive: cta.buttonStyle === "compact"
|
|
64
65
|
? ((_c = cta.iconActive) !== null && _c !== void 0 ? _c : BtIconArrowRightFill.BtIconArrowRightFill)
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign
|
|
1
|
+
import { _ as __rest, a as __assign } from '../_shared/esm/tslib.es6-BVXMhEem.mjs';
|
|
2
2
|
import React__default, { useId } from 'react';
|
|
3
3
|
import { useMediaQuery } from '@arc-ui/components/use-media-query';
|
|
4
4
|
import { ButtonV2 } from '@arc-ui/components/ButtonV2';
|
|
5
5
|
import { VerticalSpace } from '@arc-ui/components/VerticalSpace';
|
|
6
6
|
import { B as BtIconArrowRightFill } from '../_shared/esm/BtIconArrowRightFill-D0zKgk3B.mjs';
|
|
7
|
-
import { S as SectionHeading } from '../_shared/esm/SectionHeading-
|
|
7
|
+
import { S as SectionHeading } from '../_shared/esm/SectionHeading-DSwsdNSp.mjs';
|
|
8
8
|
import { c as classNames } from '../_shared/esm/index-BfTCfPZ1.mjs';
|
|
9
9
|
import { Heading } from '@arc-ui/components/Heading';
|
|
10
10
|
import { Icon } from '@arc-ui/components/Icon';
|
|
11
11
|
import { Text } from '@arc-ui/components/Text';
|
|
12
12
|
import { Link } from '@arc-ui/components/Link';
|
|
13
|
+
import { f as filterAttrs } from '../_shared/esm/filter-attrs-DZ7RCEZm.mjs';
|
|
13
14
|
import '@arc-ui/components/Image';
|
|
14
15
|
|
|
15
16
|
var styles = {"highlights":"Highlights-module_highlights__Hf7Zq","highlightItem":"Highlights-module_highlightItem__-N6le","highlights2Column":"Highlights-module_highlights2Column__6qIuI","highlights3Column":"Highlights-module_highlights3Column__qsCMP"};
|
|
@@ -56,7 +57,7 @@ var Highlights = function (_a) {
|
|
|
56
57
|
React__default.createElement(HighlightList, { listItems: listItems, columns: columns, isSmallIcon: isMaxWidthArcBreakpointXs, headingLevel: headingLevel }),
|
|
57
58
|
cta && (React__default.createElement(React__default.Fragment, null,
|
|
58
59
|
React__default.createElement(VerticalSpace, { size: "24" }),
|
|
59
|
-
React__default.createElement(ButtonV2, { label: cta.label, href: cta.href, onClick: cta.onClick, size: "m", ariaLabel: cta.ariaLabel, buttonStyle: cta.buttonStyle, icon: cta.buttonStyle === "compact"
|
|
60
|
+
React__default.createElement(ButtonV2, { label: cta.label, href: cta.href, onClick: cta.onClick, target: cta.target, size: "m", ariaLabel: cta.ariaLabel, buttonStyle: cta.buttonStyle, icon: cta.buttonStyle === "compact"
|
|
60
61
|
? ((_b = cta.icon) !== null && _b !== void 0 ? _b : BtIconArrowRightFill)
|
|
61
62
|
: undefined, iconActive: cta.buttonStyle === "compact"
|
|
62
63
|
? ((_c = cta.iconActive) !== null && _c !== void 0 ? _c : BtIconArrowRightFill)
|
|
@@ -1,17 +1,18 @@
|
|
|
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 Link = require('@arc-ui/components/Link');
|
|
6
6
|
var Icon = require('@arc-ui/components/Icon');
|
|
7
7
|
var Heading = require('@arc-ui/components/Heading');
|
|
8
8
|
var BtIconArrowAltRight = require('../_shared/cjs/BtIconArrowAltRight-CLQdP61r.cjs');
|
|
9
|
+
var filterAttrs = require('../_shared/cjs/filter-attrs-BizjMsy0.cjs');
|
|
9
10
|
|
|
10
11
|
var styles = {"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"};
|
|
11
12
|
|
|
12
13
|
var InlineLinkGroup = function (_a) {
|
|
13
|
-
var label = _a.label, links = _a.links, props =
|
|
14
|
-
return (React.createElement("div",
|
|
14
|
+
var label = _a.label, links = _a.links, props = tslib_es6.__rest(_a, ["label", "links"]);
|
|
15
|
+
return (React.createElement("div", tslib_es6.__assign({ className: styles["quick-help"] }, filterAttrs.filterAttrs(props)),
|
|
15
16
|
label && (React.createElement("div", { className: styles["quick-help-label"] },
|
|
16
17
|
React.createElement(Heading.Heading, { size: "xxs", fontStyle: "overline" }, label))),
|
|
17
18
|
React.createElement("ul", { className: styles["quick-help-container"] }, links.map(function (link, index) { return (React.createElement(React.Fragment, { key: index },
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign
|
|
1
|
+
import { _ as __rest, a as __assign } from '../_shared/esm/tslib.es6-BVXMhEem.mjs';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import { Link } from '@arc-ui/components/Link';
|
|
4
4
|
import { Icon } from '@arc-ui/components/Icon';
|
|
5
5
|
import { Heading } from '@arc-ui/components/Heading';
|
|
6
6
|
import { B as BtIconArrowAltRight } from '../_shared/esm/BtIconArrowAltRight-VH6RTTnL.mjs';
|
|
7
|
+
import { f as filterAttrs } from '../_shared/esm/filter-attrs-DZ7RCEZm.mjs';
|
|
7
8
|
|
|
8
9
|
var styles = {"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"};
|
|
9
10
|
|
|
@@ -1,6 +1,6 @@
|
|
|
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 index = require('../_shared/cjs/index-Bp6Dd2i1.cjs');
|
|
6
6
|
var Icon = require('@arc-ui/components/Icon');
|
|
@@ -9,10 +9,10 @@ var BtIconArrowAltRight = require('../_shared/cjs/BtIconArrowAltRight-CLQdP61r.c
|
|
|
9
9
|
var styles = {"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"};
|
|
10
10
|
|
|
11
11
|
var LinkTile = function (_a) {
|
|
12
|
-
var text = _a.text, href = _a.href, _b = _a.showIcon, showIcon = _b === void 0 ? true : _b, className = _a.className, props =
|
|
12
|
+
var text = _a.text, href = _a.href, _b = _a.showIcon, showIcon = _b === void 0 ? true : _b, className = _a.className, props = tslib_es6.__rest(_a, ["text", "href", "showIcon", "className"]);
|
|
13
13
|
var Component = href ? "a" : "div";
|
|
14
14
|
var linkProps = href ? { href: href } : {};
|
|
15
|
-
return (React.createElement(Component,
|
|
15
|
+
return (React.createElement(Component, tslib_es6.__assign({ className: index.classNames(styles["link-tile"], className) }, linkProps, props), text && (React.createElement("div", { className: styles["link-tile-content"] },
|
|
16
16
|
React.createElement("span", { className: styles["link-tile-text"] }, text),
|
|
17
17
|
showIcon && (React.createElement("span", { className: styles["link-tile-icon"] },
|
|
18
18
|
React.createElement(Icon.Icon, { icon: BtIconArrowAltRight.BtIconArrowAltRight, size: 32 })))))));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign
|
|
1
|
+
import { _ as __rest, a as __assign } from '../_shared/esm/tslib.es6-BVXMhEem.mjs';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import { c as classNames } from '../_shared/esm/index-BfTCfPZ1.mjs';
|
|
4
4
|
import { Icon } from '@arc-ui/components/Icon';
|
|
@@ -10,7 +10,7 @@ var LinkTile = function (_a) {
|
|
|
10
10
|
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"]);
|
|
11
11
|
var Component = href ? "a" : "div";
|
|
12
12
|
var linkProps = href ? { href: href } : {};
|
|
13
|
-
return (React__default.createElement(Component, __assign({ className: classNames(styles["link-tile"], className) }, linkProps,
|
|
13
|
+
return (React__default.createElement(Component, __assign({ className: classNames(styles["link-tile"], className) }, linkProps, props), text && (React__default.createElement("div", { className: styles["link-tile-content"] },
|
|
14
14
|
React__default.createElement("span", { className: styles["link-tile-text"] }, text),
|
|
15
15
|
showIcon && (React__default.createElement("span", { className: styles["link-tile-icon"] },
|
|
16
16
|
React__default.createElement(Icon, { icon: BtIconArrowAltRight, size: 32 })))))));
|