@arc-ui/community-components 3.3.0 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +132 -12
- package/CHANGELOG.md +12 -0
- package/lib/Accordion/Accordion.mjs +1 -1
- package/lib/ActionTile/ActionTile.mjs +9 -9
- package/lib/ArticleSidebar/ArticleSidebar.mjs +44 -44
- package/lib/Author/Author.mjs +1 -1
- package/lib/BannerWithTabs/BannerWithTabs.mjs +6 -6
- package/lib/ContentInfoWidget/ContentInfoWidget.mjs +6 -6
- package/lib/CopyLead/CopyLead.cjs +18 -8
- package/lib/CopyLead/CopyLead.mjs +59 -49
- package/lib/DownloadList/DownloadList.mjs +9 -9
- package/lib/FAQs/FAQs.mjs +21 -21
- package/lib/FeaturePost/FeaturePost.cjs +1 -1
- package/lib/FeaturePost/FeaturePost.mjs +53 -53
- package/lib/Highlights/Highlights.mjs +19 -19
- package/lib/InlineLinkGroup/InlineLinkGroup.mjs +10 -10
- package/lib/LinkTile/LinkTile.mjs +5 -5
- package/lib/ProductNavigation/ProductNavigation.cjs +1 -1
- package/lib/ProductNavigation/ProductNavigation.mjs +17 -17
- package/lib/PromoListing/PromoListing.cjs +1 -1
- package/lib/PromoListing/PromoListing.mjs +15 -15
- package/lib/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.cjs +2 -2
- package/lib/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.mjs +8 -8
- package/lib/Quote/Quote.mjs +8 -8
- package/lib/SectionHeading/SectionHeading.mjs +1 -1
- package/lib/Statistics/Statistics.mjs +31 -31
- package/lib/Summary/Summary.cjs +1 -1
- package/lib/Summary/Summary.mjs +11 -11
- package/lib/ThumbnailSignpost/ThumbnailSignpost.mjs +1 -1
- package/lib/VideoHeroCard/VideoHeroCard.cjs +76 -0
- package/lib/VideoHeroCard/VideoHeroCard.mjs +74 -0
- package/lib/VideoPortraitCard/VideoPortraitCard.cjs +22 -0
- package/lib/VideoPortraitCard/VideoPortraitCard.mjs +20 -0
- package/lib/_shared/cjs/Preview-Dx1kCzJ1.cjs +102 -0
- package/lib/_shared/cjs/VideoCardThumbnail-BqYgpk0u.cjs +440 -0
- package/lib/_shared/cjs/dash.all.min-BPXzla24.cjs +6 -0
- package/lib/_shared/cjs/hls-Ckhp5fVA.cjs +36628 -0
- package/lib/_shared/cjs/index-DjiIVIaV.cjs +96 -0
- package/lib/_shared/cjs/index-oGP6D6gL.cjs +14826 -0
- package/lib/_shared/cjs/{index.es-Dq8bYrbW.cjs → index.es-B0J3cvrY.cjs} +1 -1
- package/lib/_shared/cjs/mixin-BFwaXKGB.cjs +1027 -0
- package/lib/_shared/cjs/react-CEvhi3LL.cjs +737 -0
- package/lib/_shared/cjs/react-CqsEClV0.cjs +466 -0
- package/lib/_shared/cjs/react-DE6M3seI.cjs +496 -0
- package/lib/_shared/cjs/react-Dri2yjKm.cjs +554 -0
- package/lib/_shared/cjs/react-DxToimBj.cjs +4239 -0
- package/lib/_shared/cjs/react-JTfV8OSA.cjs +325 -0
- package/lib/_shared/cjs/react-caXJFZ8W.cjs +400 -0
- package/lib/_shared/cjs/react-fep2ei7j.cjs +727 -0
- package/lib/_shared/esm/{Accordion-DrOTh90S.mjs → Accordion-DtU7jbCv.mjs} +15 -15
- package/lib/_shared/esm/Author-CJQFrQM9.mjs +27 -0
- package/lib/_shared/esm/Preview-CmbKOgEO.mjs +100 -0
- package/lib/_shared/esm/{SectionHeading-DZOg_gYi.mjs → SectionHeading-BskdQ2Tt.mjs} +9 -9
- package/lib/_shared/esm/{ThumbnailSignpost-DaZByYIH.mjs → ThumbnailSignpost-CBSdQiHw.mjs} +12 -12
- package/lib/_shared/esm/VideoCardThumbnail-VfOKmPCv.mjs +437 -0
- package/lib/_shared/esm/dash.all.min-CbWI_8dN.mjs +4 -0
- package/lib/_shared/esm/hls-AFbJDS9D.mjs +36625 -0
- package/lib/_shared/esm/index-CrcIrdjn.mjs +14799 -0
- package/lib/_shared/esm/index-DYnuIO1L.mjs +94 -0
- package/lib/_shared/esm/{index.es-Bfdys5__.mjs → index.es-DraZ-qKh.mjs} +1 -1
- package/lib/_shared/esm/mixin-BGGG8VrM.mjs +1024 -0
- package/lib/_shared/esm/react-BGimq-TB.mjs +4237 -0
- package/lib/_shared/esm/react-BHT4t_eQ.mjs +494 -0
- package/lib/_shared/esm/react-BSd0sGcO.mjs +464 -0
- package/lib/_shared/esm/react-CSr43fZV.mjs +552 -0
- package/lib/_shared/esm/react-Ca6E7Fr-.mjs +398 -0
- package/lib/_shared/esm/react-DG070IvZ.mjs +725 -0
- package/lib/_shared/esm/react-DZyqy7W7.mjs +735 -0
- package/lib/_shared/esm/react-WW_9iHcl.mjs +323 -0
- package/lib/index.cjs +249 -123
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +55 -2
- package/lib/index.d.mts +55 -2
- package/lib/index.mjs +248 -124
- package/lib/index.mjs.map +1 -1
- package/lib/styles.css +1 -1
- package/package.json +17 -14
- package/rollup.config.js +1 -1
- package/src/components/CopyLead/components/MediaContent/MediaContent.tsx +7 -6
- package/src/components/CopyLead/templates/Content/Content.tsx +5 -3
- package/src/components/CopyLead/templates/Media/Media.tsx +5 -6
- package/src/components/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.tsx +2 -0
- package/src/components/VideoHeroCard/VideoHeroCard.tsx +63 -0
- package/src/components/VideoHeroCard/components/VideoHeroCardContent/VideoHeroCardContent.module.css +32 -0
- package/src/components/VideoHeroCard/components/VideoHeroCardContent/VideoHeroCardContent.tsx +97 -0
- package/src/components/VideoHeroCard/components/VideoHeroCardContent/index.ts +4 -0
- package/src/components/VideoHeroCard/index.ts +1 -0
- package/src/components/VideoPortraitCard/VideoPortraitCard.tsx +54 -0
- package/src/components/VideoPortraitCard/index.ts +4 -0
- package/src/components/index.ts +2 -0
- package/src/internal/MultiLineText/MultiLineText.tsx +25 -0
- package/src/internal/MultiLineText/index.ts +1 -0
- package/src/internal/VideoCardPlayer/VideoCardPlayer.module.css +54 -0
- package/src/internal/VideoCardPlayer/VideoCardPlayer.tsx +62 -0
- package/src/internal/VideoCardPlayer/components/VideoCardPlayIcon/VideoCardPlayIcon.module.css +41 -0
- package/src/internal/VideoCardPlayer/components/VideoCardPlayIcon/VideoCardPlayIcon.tsx +28 -0
- package/src/internal/VideoCardPlayer/components/VideoCardPlayIcon/index.ts +1 -0
- package/src/internal/VideoCardPlayer/components/VideoCardThumbnail/VideoCardThumbnail.module.css +58 -0
- package/src/internal/VideoCardPlayer/components/VideoCardThumbnail/VideoCardThumbnail.tsx +38 -0
- package/src/internal/VideoCardPlayer/components/VideoCardThumbnail/index.ts +1 -0
- package/src/internal/VideoCardPlayer/index.ts +2 -0
- package/src/internal/VideoCardPlayer/types/player-props.ts +6 -0
- package/versions.json +1 -1
- package/lib/_shared/esm/Author-BVCRPgkl.mjs +0 -27
|
@@ -1,67 +1,77 @@
|
|
|
1
1
|
import { _ as __rest, a as __assign, f as filterAttrs } from '../_shared/esm/filter-attrs-D-1kWaCP.mjs';
|
|
2
|
-
import
|
|
3
|
-
import { a as ArcSizeBreakpointsL, c as ArcSizeBreakpointsXl, b as ArcSizeBreakpointsM } from '../_shared/esm/index.es-
|
|
2
|
+
import React__default, { useState, useEffect, Suspense } from 'react';
|
|
3
|
+
import { a as ArcSizeBreakpointsL, c as ArcSizeBreakpointsXl, b as ArcSizeBreakpointsM } from '../_shared/esm/index.es-DraZ-qKh.mjs';
|
|
4
4
|
import { Columns, ColumnsCol } from '@arc-ui/components/Columns';
|
|
5
5
|
import { useMediaQuery } from '@arc-ui/components/use-media-query';
|
|
6
6
|
import { Heading } from '@arc-ui/components/Heading';
|
|
7
|
-
import { Text } from '@arc-ui/components/Text';
|
|
8
7
|
import { VerticalSpace } from '@arc-ui/components/VerticalSpace';
|
|
8
|
+
import { Text } from '@arc-ui/components/Text';
|
|
9
9
|
import { Image as Image$1 } from '@arc-ui/components/Image';
|
|
10
10
|
import { Icon } from '@arc-ui/components/Icon';
|
|
11
11
|
import { c as classNames } from '../_shared/esm/index-BfTCfPZ1.mjs';
|
|
12
12
|
import { ButtonV2 } from '@arc-ui/components/ButtonV2';
|
|
13
|
-
import { S as SectionHeading } from '../_shared/esm/SectionHeading-
|
|
13
|
+
import { S as SectionHeading } from '../_shared/esm/SectionHeading-BskdQ2Tt.mjs';
|
|
14
|
+
|
|
15
|
+
var MultiLineText = function (_a) {
|
|
16
|
+
var text = _a.text, textProps = __rest(_a, ["text"]);
|
|
17
|
+
if (!text)
|
|
18
|
+
return null;
|
|
19
|
+
var paragraphs = text.split(/\\n|\n/).filter(function (p) { return p.trim(); });
|
|
20
|
+
return (React__default.createElement(React__default.Fragment, null, paragraphs.map(function (paragraph, index) { return (React__default.createElement("span", { key: "informationcard-text-".concat(index) },
|
|
21
|
+
index > 0 && React__default.createElement(VerticalSpace, { size: "8" }),
|
|
22
|
+
React__default.createElement(Text, __assign({}, textProps), paragraph))); })));
|
|
23
|
+
};
|
|
14
24
|
|
|
15
25
|
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
26
|
|
|
17
27
|
var MediaContent = function (_a) {
|
|
18
|
-
var heading = _a.heading, id = _a.id, headingLevel = _a.headingLevel, isHeadingWordWrap = _a.isHeadingWordWrap,
|
|
19
|
-
return (
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
28
|
+
var heading = _a.heading, id = _a.id, headingLevel = _a.headingLevel, isHeadingWordWrap = _a.isHeadingWordWrap, content = _a.content;
|
|
29
|
+
return (React__default.createElement("div", { className: styles.mediaContainer },
|
|
30
|
+
React__default.createElement(Heading, { id: id, level: headingLevel, isWordWrap: isHeadingWordWrap, size: "xl" }, heading),
|
|
31
|
+
content && (React__default.createElement("div", { className: styles.content },
|
|
32
|
+
React__default.createElement(VerticalSpace, { size: "24" }),
|
|
33
|
+
React__default.createElement(MultiLineText, { text: content, size: "l" })))));
|
|
24
34
|
};
|
|
25
35
|
|
|
26
36
|
var Image = function (_a) {
|
|
27
37
|
var sources = _a.sources, props = __rest(_a, ["sources"]);
|
|
28
|
-
return (
|
|
29
|
-
|
|
30
|
-
sources.map(function (source) { return
|
|
38
|
+
return (React__default.createElement("div", { className: styles.imgWrapper },
|
|
39
|
+
React__default.createElement(Image$1, __assign({ fadeOnLoad: true }, props), sources &&
|
|
40
|
+
sources.map(function (source) { return React__default.createElement("source", __assign({ key: source.srcSet }, source)); }))));
|
|
31
41
|
};
|
|
32
42
|
|
|
33
43
|
var IconList = function (_a) {
|
|
34
44
|
var listItems = _a.listItems, isLgScreen = _a.isLgScreen, _b = _a.headingLevel, headingLevel = _b === void 0 ? "3" : _b;
|
|
35
|
-
return (
|
|
45
|
+
return (React__default.createElement("ul", { className: styles.list }, listItems.map(function (_a) {
|
|
36
46
|
var _b;
|
|
37
47
|
var icon = _a.icon, heading = _a.heading, text = _a.text;
|
|
38
|
-
return (
|
|
48
|
+
return (React__default.createElement("li", { key: heading, className: classNames(styles.listItem, (_b = {},
|
|
39
49
|
_b[styles.listItemCentered] = !text,
|
|
40
50
|
_b)) },
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
text && (
|
|
46
|
-
|
|
47
|
-
|
|
51
|
+
React__default.createElement("div", { className: styles.listItemIconContainer },
|
|
52
|
+
React__default.createElement(Icon, { color: "brand", icon: icon, size: isLgScreen ? 64 : 48 })),
|
|
53
|
+
React__default.createElement("div", { className: styles.listItemTextContainer },
|
|
54
|
+
React__default.createElement(Heading, { level: headingLevel, size: "s" }, heading),
|
|
55
|
+
text && (React__default.createElement(React__default.Fragment, null,
|
|
56
|
+
React__default.createElement(VerticalSpace, { size: "8", sizeL: "16" }),
|
|
57
|
+
React__default.createElement(Text, null, text))))));
|
|
48
58
|
})));
|
|
49
59
|
};
|
|
50
60
|
|
|
51
|
-
var Button = function (props) { return (
|
|
52
|
-
|
|
61
|
+
var Button = function (props) { return (React__default.createElement("div", { className: styles.buttonContainer },
|
|
62
|
+
React__default.createElement(ButtonV2, __assign({ isFullWidth: true, buttonStyle: "secondary" }, props)))); };
|
|
53
63
|
|
|
54
64
|
var Container = function (_a) {
|
|
55
65
|
var _b;
|
|
56
66
|
var children = _a.children, isReverseOrder = _a.isReverseOrder, type = _a.type, alignment = _a.alignment;
|
|
57
|
-
return (
|
|
67
|
+
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
68
|
_b[styles["container--reverse"]] = isReverseOrder,
|
|
59
69
|
_b)) }, children));
|
|
60
70
|
};
|
|
61
71
|
|
|
62
72
|
var Column = function (_a) {
|
|
63
73
|
var children = _a.children;
|
|
64
|
-
return (
|
|
74
|
+
return (React__default.createElement("div", { className: styles.col }, children));
|
|
65
75
|
};
|
|
66
76
|
|
|
67
77
|
var getListHeadingLevel = function (level) {
|
|
@@ -69,7 +79,7 @@ var getListHeadingLevel = function (level) {
|
|
|
69
79
|
return nextLevel.toString();
|
|
70
80
|
};
|
|
71
81
|
|
|
72
|
-
var VideoPlayer =
|
|
82
|
+
var VideoPlayer = React__default.lazy(function () {
|
|
73
83
|
return import('@arc-ui/components/VideoPlayer').then(function (_a) {
|
|
74
84
|
var VideoPlayer = _a.VideoPlayer;
|
|
75
85
|
return ({
|
|
@@ -86,19 +96,19 @@ var MediaTemplate = function (_a) {
|
|
|
86
96
|
useEffect(function () {
|
|
87
97
|
setIsClient(true);
|
|
88
98
|
}, []);
|
|
89
|
-
return (
|
|
90
|
-
!isMinWidthArcBreakpointXl && (
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
isMinWidthArcBreakpointXl && (
|
|
96
|
-
|
|
97
|
-
button &&
|
|
98
|
-
|
|
99
|
-
video && isClient && (
|
|
100
|
-
|
|
101
|
-
image && !video &&
|
|
99
|
+
return (React__default.createElement("div", null,
|
|
100
|
+
!isMinWidthArcBreakpointXl && (React__default.createElement(Columns, null,
|
|
101
|
+
React__default.createElement(ColumnsCol, { span: 12, spanM: 9 },
|
|
102
|
+
React__default.createElement(MediaContent, { heading: heading, headingLevel: headingLevel, id: id, isHeadingWordWrap: isHeadingWordWrap, content: content })))),
|
|
103
|
+
React__default.createElement(Container, { type: "media", isReverseOrder: isReverseOrder, alignment: !isMinWidthArcBreakpointXl ? "top" : "center" },
|
|
104
|
+
React__default.createElement(Column, null,
|
|
105
|
+
isMinWidthArcBreakpointXl && (React__default.createElement(MediaContent, { heading: heading, content: content })),
|
|
106
|
+
React__default.createElement(IconList, { listItems: listItems, isLgScreen: isMinWidthArcBreakpointL, headingLevel: listHeadingLevel }),
|
|
107
|
+
button && React__default.createElement(Button, __assign({}, button))),
|
|
108
|
+
React__default.createElement(Column, null,
|
|
109
|
+
video && isClient && (React__default.createElement(Suspense, { fallback: null },
|
|
110
|
+
React__default.createElement(VideoPlayer, __assign({}, video)))),
|
|
111
|
+
image && !video && React__default.createElement(Image, __assign({}, image))))));
|
|
102
112
|
};
|
|
103
113
|
|
|
104
114
|
var ContentTemplate = function (_a) {
|
|
@@ -106,13 +116,13 @@ var ContentTemplate = function (_a) {
|
|
|
106
116
|
var isMinWidthArcBreakpointM = useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsM, ")"));
|
|
107
117
|
var isMinWidthArcBreakpointL = useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsL, ")"));
|
|
108
118
|
var listHeadingLevel = getListHeadingLevel(headingLevel);
|
|
109
|
-
return (
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
button && isMinWidthArcBreakpointM &&
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
button && !isMinWidthArcBreakpointM &&
|
|
119
|
+
return (React__default.createElement(Container, { type: "content", alignment: "top" },
|
|
120
|
+
React__default.createElement(Column, null,
|
|
121
|
+
React__default.createElement(SectionHeading, { id: id, heading: heading, headingLevel: headingLevel, isHeadingWordWrap: isHeadingWordWrap, content: React__default.createElement(MultiLineText, { size: "l", text: content }) }),
|
|
122
|
+
button && isMinWidthArcBreakpointM && React__default.createElement(Button, __assign({}, button))),
|
|
123
|
+
React__default.createElement(Column, null,
|
|
124
|
+
React__default.createElement(IconList, { listItems: listItems, isLgScreen: isMinWidthArcBreakpointL, headingLevel: listHeadingLevel }),
|
|
125
|
+
button && !isMinWidthArcBreakpointM && React__default.createElement(Button, __assign({}, button)))));
|
|
116
126
|
};
|
|
117
127
|
|
|
118
128
|
/**
|
|
@@ -121,10 +131,10 @@ var ContentTemplate = function (_a) {
|
|
|
121
131
|
var CopyLead = function (_a) {
|
|
122
132
|
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
133
|
if (video || image) {
|
|
124
|
-
return (
|
|
134
|
+
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
135
|
}
|
|
126
136
|
if (content) {
|
|
127
|
-
return (
|
|
137
|
+
return (React__default.createElement(ContentTemplate, __assign({ id: id, listItems: listItems, heading: heading, headingLevel: headingLevel, isHeadingWordWrap: isHeadingWordWrap, button: button, content: content }, filterAttrs(props))));
|
|
128
138
|
}
|
|
129
139
|
return null;
|
|
130
140
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as __rest, a as __assign, f as filterAttrs } from '../_shared/esm/filter-attrs-D-1kWaCP.mjs';
|
|
2
|
-
import
|
|
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-BskdQ2Tt.mjs';
|
|
5
5
|
import { Download } from '@arc-ui/components/Download';
|
|
6
6
|
import '../_shared/esm/index-BfTCfPZ1.mjs';
|
|
7
7
|
import '@arc-ui/components/Text';
|
|
@@ -12,13 +12,13 @@ var styles = {"headingContainer":"DownloadList-module_headingContainer__PNio8"};
|
|
|
12
12
|
|
|
13
13
|
var DownloadList = function (_a) {
|
|
14
14
|
var heading = _a.heading, id = _a.id, _b = _a.headingLevel, headingLevel = _b === void 0 ? "2" : _b, isHeadingWordWrap = _a.isHeadingWordWrap, content = _a.content, downloads = _a.downloads, props = __rest(_a, ["heading", "id", "headingLevel", "isHeadingWordWrap", "content", "downloads"]);
|
|
15
|
-
return (
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
downloads.map(function (downloadProps, i) { return (
|
|
20
|
-
|
|
21
|
-
i !== downloads.length - 1 &&
|
|
15
|
+
return (React__default.createElement("div", __assign({}, filterAttrs(props)),
|
|
16
|
+
React__default.createElement("div", { className: styles.headingContainer },
|
|
17
|
+
React__default.createElement(SectionHeading, { id: id, heading: heading, isHeadingWordWrap: isHeadingWordWrap, headingLevel: headingLevel, content: content })),
|
|
18
|
+
React__default.createElement(VerticalSpace, { size: "40" }),
|
|
19
|
+
downloads.map(function (downloadProps, i) { return (React__default.createElement(React__default.Fragment, { key: "download-".concat(i) },
|
|
20
|
+
React__default.createElement(Download, __assign({}, downloadProps)),
|
|
21
|
+
i !== downloads.length - 1 && React__default.createElement(VerticalSpace, { size: "16" }))); })));
|
|
22
22
|
};
|
|
23
23
|
|
|
24
24
|
export { DownloadList };
|
package/lib/FAQs/FAQs.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { _ as __rest, a as __assign, f as filterAttrs } from '../_shared/esm/filter-attrs-D-1kWaCP.mjs';
|
|
2
|
-
import
|
|
2
|
+
import React__default from 'react';
|
|
3
3
|
import { c as classNames } from '../_shared/esm/index-BfTCfPZ1.mjs';
|
|
4
|
-
import { A as Accordion } from '../_shared/esm/Accordion-
|
|
5
|
-
import { S as SectionHeading } from '../_shared/esm/SectionHeading-
|
|
4
|
+
import { A as Accordion } from '../_shared/esm/Accordion-DtU7jbCv.mjs';
|
|
5
|
+
import { S as SectionHeading } from '../_shared/esm/SectionHeading-BskdQ2Tt.mjs';
|
|
6
6
|
import { Link } from '@arc-ui/components/Link';
|
|
7
7
|
import { Heading } from '@arc-ui/components/Heading';
|
|
8
8
|
import { VerticalSpace } from '@arc-ui/components/VerticalSpace';
|
|
@@ -25,32 +25,32 @@ var scrollToSectionFocusFirstElement = function (item) {
|
|
|
25
25
|
var FAQs = function (_a) {
|
|
26
26
|
var _b;
|
|
27
27
|
var heading = _a.heading, isHeadingWordWrap = _a.isHeadingWordWrap, content = _a.content, id = _a.id, _c = _a.isPadded, isPadded = _c === void 0 ? false : _c, _d = _a.headingLevel, headingLevel = _d === void 0 ? "2" : _d, image = _a.image, type = _a.type, _e = _a.linkListHeading, linkListHeading = _e === void 0 ? "Skip to section" : _e, accordionData = _a.accordionData, props = __rest(_a, ["heading", "isHeadingWordWrap", "content", "id", "isPadded", "headingLevel", "image", "type", "linkListHeading", "accordionData"]);
|
|
28
|
-
return (
|
|
29
|
-
|
|
30
|
-
type === "listWithLinks" && (
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
28
|
+
return (React__default.createElement("div", __assign({ className: styles.FAQs }, filterAttrs(props)),
|
|
29
|
+
React__default.createElement(SectionHeading, { id: id, isHeadingWordWrap: isHeadingWordWrap, heading: heading, content: content, image: image, headingLevel: headingLevel, isPadded: isPadded }),
|
|
30
|
+
type === "listWithLinks" && (React__default.createElement("div", { className: styles.linkListSection },
|
|
31
|
+
React__default.createElement("div", { className: styles.linkListTitle },
|
|
32
|
+
React__default.createElement(Heading, { size: "xs" }, linkListHeading)),
|
|
33
|
+
React__default.createElement("ul", { className: classNames((_b = {},
|
|
34
34
|
_b[styles.linkList] = true,
|
|
35
35
|
_b[styles["linkList--padded"]] = isPadded,
|
|
36
36
|
_b)) }, accordionData.map(function (item) {
|
|
37
37
|
var _a;
|
|
38
|
-
return (
|
|
39
|
-
|
|
38
|
+
return (React__default.createElement("li", { className: styles.linkListItem, key: item.heading },
|
|
39
|
+
React__default.createElement(Link, { title: item.heading, href: "#".concat(item.id), onClick: function (e) {
|
|
40
40
|
e.preventDefault();
|
|
41
41
|
scrollToSectionFocusFirstElement(item);
|
|
42
42
|
} }, (_a = item.altLinkTitle) !== null && _a !== void 0 ? _a : item.heading)));
|
|
43
43
|
})))),
|
|
44
|
-
type !== "tabs" && accordionData && (
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
type === "tabs" && (
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
accordionData.map(function (item, index) { return (
|
|
52
|
-
|
|
53
|
-
|
|
44
|
+
type !== "tabs" && accordionData && (React__default.createElement("ul", { className: styles.accordionList }, accordionData.map(function (item) { return (React__default.createElement("li", { className: styles.accordionListItem, key: item.id },
|
|
45
|
+
React__default.createElement(Accordion, { id: item.id, heading: item.heading, headingLevel: item.headingLevel, content: item.content, disclosureList: item.disclosureList, headingSize: "m" }),
|
|
46
|
+
React__default.createElement(VerticalSpace, { size: "48", sizeL: "64" }))); }))),
|
|
47
|
+
type === "tabs" && (React__default.createElement(Tabs, { defaultValue: accordionData[0].heading },
|
|
48
|
+
React__default.createElement(TabsList, { type: "standard" }, accordionData.map(function (item, index) { return (React__default.createElement("div", { key: index },
|
|
49
|
+
React__default.createElement(TabsItem, { label: item.heading, value: item.heading }))); })),
|
|
50
|
+
React__default.createElement(VerticalSpace, { size: "40" }),
|
|
51
|
+
accordionData.map(function (item, index) { return (React__default.createElement("div", { key: item.heading },
|
|
52
|
+
React__default.createElement(TabsContent, { value: item.heading },
|
|
53
|
+
React__default.createElement(Accordion, { key: index, heading: item.heading, headingLevel: item.headingLevel, content: item.content, disclosureList: item.disclosureList, headingSize: "m" })))); })))));
|
|
54
54
|
};
|
|
55
55
|
|
|
56
56
|
export { FAQs };
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var filterAttrs = require('../_shared/cjs/filter-attrs-C26zOt4_.cjs');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var index = require('../_shared/cjs/index-Bp6Dd2i1.cjs');
|
|
6
|
-
var index_es = require('../_shared/cjs/index.es-
|
|
6
|
+
var index_es = require('../_shared/cjs/index.es-B0J3cvrY.cjs');
|
|
7
7
|
var AppButton = require('@arc-ui/components/AppButton');
|
|
8
8
|
var Grid = require('@arc-ui/components/Grid');
|
|
9
9
|
var ButtonV2 = require('@arc-ui/components/ButtonV2');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as __rest, a as __assign, f as filterAttrs } from '../_shared/esm/filter-attrs-D-1kWaCP.mjs';
|
|
2
|
-
import
|
|
2
|
+
import React__default, { useState, useEffect, Suspense } from 'react';
|
|
3
3
|
import { c as classNames } from '../_shared/esm/index-BfTCfPZ1.mjs';
|
|
4
|
-
import { b as ArcSizeBreakpointsM } from '../_shared/esm/index.es-
|
|
4
|
+
import { b as ArcSizeBreakpointsM } from '../_shared/esm/index.es-DraZ-qKh.mjs';
|
|
5
5
|
import { AppButton } from '@arc-ui/components/AppButton';
|
|
6
6
|
import { Grid, GridRow, GridCol } from '@arc-ui/components/Grid';
|
|
7
7
|
import { ButtonV2 } from '@arc-ui/components/ButtonV2';
|
|
@@ -9,7 +9,7 @@ import { Heading } from '@arc-ui/components/Heading';
|
|
|
9
9
|
import { Text } from '@arc-ui/components/Text';
|
|
10
10
|
import { VerticalSpace } from '@arc-ui/components/VerticalSpace';
|
|
11
11
|
import { useMediaQuery } from '@arc-ui/components/use-media-query';
|
|
12
|
-
import { A as Author } from '../_shared/esm/Author-
|
|
12
|
+
import { A as Author } from '../_shared/esm/Author-CJQFrQM9.mjs';
|
|
13
13
|
import { Image as Image$1 } from '@arc-ui/components/Image';
|
|
14
14
|
import '@arc-ui/components/Avatar';
|
|
15
15
|
|
|
@@ -2202,19 +2202,19 @@ var styles = {"labelDate":"FeaturePost-module_labelDate__NXOgY","googlePlayButto
|
|
|
2202
2202
|
|
|
2203
2203
|
var Image = function (_a) {
|
|
2204
2204
|
var sources = _a.sources, title = _a.title, description = _a.description, props = __rest(_a, ["sources", "title", "description"]);
|
|
2205
|
-
return (
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
sources.map(function (source) { return
|
|
2209
|
-
title && (
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
description && (
|
|
2213
|
-
|
|
2214
|
-
|
|
2205
|
+
return (React__default.createElement(React__default.Fragment, null,
|
|
2206
|
+
React__default.createElement("div", { className: styles.imgWrapper },
|
|
2207
|
+
React__default.createElement(Image$1, __assign({ fadeOnLoad: true }, props), sources &&
|
|
2208
|
+
sources.map(function (source) { return React__default.createElement("source", __assign({ key: source.srcSet }, source)); }))),
|
|
2209
|
+
title && (React__default.createElement(React__default.Fragment, null,
|
|
2210
|
+
React__default.createElement(VerticalSpace, { size: "24" }),
|
|
2211
|
+
React__default.createElement(Heading, { level: "3", size: "s" }, title),
|
|
2212
|
+
description && (React__default.createElement(React__default.Fragment, null,
|
|
2213
|
+
React__default.createElement(VerticalSpace, { size: "16" }),
|
|
2214
|
+
React__default.createElement(Text, { size: "m" }, description)))))));
|
|
2215
2215
|
};
|
|
2216
2216
|
|
|
2217
|
-
var VideoPlayer =
|
|
2217
|
+
var VideoPlayer = React__default.lazy(function () {
|
|
2218
2218
|
return import('@arc-ui/components/VideoPlayer').then(function (_a) {
|
|
2219
2219
|
var VideoPlayer = _a.VideoPlayer;
|
|
2220
2220
|
return ({
|
|
@@ -2228,10 +2228,10 @@ var MediaContent = function (_a) {
|
|
|
2228
2228
|
useEffect(function () {
|
|
2229
2229
|
setIsClient(true);
|
|
2230
2230
|
}, []);
|
|
2231
|
-
return (
|
|
2232
|
-
image && !video &&
|
|
2233
|
-
video && isClient && (
|
|
2234
|
-
|
|
2231
|
+
return (React__default.createElement(React__default.Fragment, null,
|
|
2232
|
+
image && !video && React__default.createElement(Image, __assign({}, image)),
|
|
2233
|
+
video && isClient && (React__default.createElement(Suspense, { fallback: null },
|
|
2234
|
+
React__default.createElement(VideoPlayer, __assign({}, video))))));
|
|
2235
2235
|
};
|
|
2236
2236
|
|
|
2237
2237
|
/**
|
|
@@ -2241,43 +2241,43 @@ var FeaturePost = function (_a) {
|
|
|
2241
2241
|
var _b;
|
|
2242
2242
|
var heading = _a.heading, id = _a.id, _c = _a.headingLevel, headingLevel = _c === void 0 ? "2" : _c, label = _a.label, image = _a.image, content = _a.content, footer = _a.footer, video = _a.video, isHeadingWordWrap = _a.isHeadingWordWrap, _d = _a.isReverseOrder, isReverseOrder = _d === void 0 ? false : _d, props = __rest(_a, ["heading", "id", "headingLevel", "label", "image", "content", "footer", "video", "isHeadingWordWrap", "isReverseOrder"]);
|
|
2243
2243
|
var isMinWidthArcBreakpointM = useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsM, ")"));
|
|
2244
|
-
return (
|
|
2244
|
+
return (React__default.createElement("div", __assign({ "data-testid": "feature-post", className: classNames(styles.featurePost, (_b = {},
|
|
2245
2245
|
_b[styles.featurePostReversed] = isReverseOrder,
|
|
2246
2246
|
_b)) }, filterAttrs(props)),
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
label && (
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
!isMinWidthArcBreakpointM && (
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
typeof content === "string" ? (
|
|
2263
|
-
(footer === null || footer === void 0 ? void 0 : footer.type) === "cta" && (
|
|
2264
|
-
footer.author && (
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
(footer === null || footer === void 0 ? void 0 : footer.type) === "appButton" && (
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
footer.appStore && (
|
|
2274
|
-
|
|
2275
|
-
footer.googlePlay && (
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
isMinWidthArcBreakpointM && (
|
|
2279
|
-
|
|
2280
|
-
|
|
2247
|
+
React__default.createElement("div", { className: styles.col },
|
|
2248
|
+
React__default.createElement("div", { className: styles.contentContainer },
|
|
2249
|
+
label && (React__default.createElement(Grid, { isGutterless: true, isFluid: true },
|
|
2250
|
+
React__default.createElement(GridRow, { align: "baseline" },
|
|
2251
|
+
React__default.createElement(GridCol, { xs: 12, m: "auto" },
|
|
2252
|
+
React__default.createElement(Heading, { size: "xxs", fontStyle: "overline" }, label.text)),
|
|
2253
|
+
React__default.createElement(GridCol, { xs: 12, m: "auto" },
|
|
2254
|
+
React__default.createElement("div", { className: styles.labelDate },
|
|
2255
|
+
React__default.createElement(Text, { size: "xs", tone: "muted" }, isDate(label.date) ? (React__default.createElement("time", { dateTime: format(label.date, "yyyy-MM-dd") }, format(label.date, "d MMMM yyyy"))) : (React__default.createElement("span", null, label.date)))))),
|
|
2256
|
+
React__default.createElement(VerticalSpace, { size: "24" }))),
|
|
2257
|
+
React__default.createElement(Heading, { id: id, level: headingLevel, isWordWrap: isHeadingWordWrap, size: "xl" }, heading),
|
|
2258
|
+
!isMinWidthArcBreakpointM && (React__default.createElement("div", { "data-testid": "mobile-img" },
|
|
2259
|
+
React__default.createElement(VerticalSpace, { size: "40" }),
|
|
2260
|
+
React__default.createElement(MediaContent, { image: image, video: video }))),
|
|
2261
|
+
React__default.createElement(VerticalSpace, { size: "24" }),
|
|
2262
|
+
typeof content === "string" ? (React__default.createElement(Text, { size: "l" }, content)) : (content),
|
|
2263
|
+
(footer === null || footer === void 0 ? void 0 : footer.type) === "cta" && (React__default.createElement(React__default.Fragment, null,
|
|
2264
|
+
footer.author && (React__default.createElement(React__default.Fragment, null,
|
|
2265
|
+
React__default.createElement(VerticalSpace, { size: "40" }),
|
|
2266
|
+
React__default.createElement(Author, __assign({}, footer.author)))),
|
|
2267
|
+
React__default.createElement(VerticalSpace, { size: "40" }),
|
|
2268
|
+
React__default.createElement(ButtonV2, __assign({ buttonStyle: "secondary" }, footer.button)))),
|
|
2269
|
+
(footer === null || footer === void 0 ? void 0 : footer.type) === "appButton" && (React__default.createElement(React__default.Fragment, null,
|
|
2270
|
+
React__default.createElement(VerticalSpace, { size: "40" }),
|
|
2271
|
+
React__default.createElement(Grid, { isGutterless: true, isFluid: true },
|
|
2272
|
+
React__default.createElement(GridRow, null,
|
|
2273
|
+
footer.appStore && (React__default.createElement(GridCol, { xs: 12, s: "auto" },
|
|
2274
|
+
React__default.createElement(AppButton, { type: "apple-app-store", screenReaderText: footer.appStore.screenReaderText, url: footer.appStore.url }))),
|
|
2275
|
+
footer.googlePlay && (React__default.createElement(GridCol, { xs: 12, s: "auto" },
|
|
2276
|
+
React__default.createElement("div", { className: styles.googlePlayButtonWrapper },
|
|
2277
|
+
React__default.createElement(AppButton, { type: "google-play", screenReaderText: footer.googlePlay.screenReaderText, url: footer.googlePlay.url })))))))))),
|
|
2278
|
+
isMinWidthArcBreakpointM && (React__default.createElement("div", { className: styles.col },
|
|
2279
|
+
React__default.createElement("div", { "data-testid": "desktop-img", className: styles.imgContainer },
|
|
2280
|
+
React__default.createElement(MediaContent, { image: image, video: video }))))));
|
|
2281
2281
|
};
|
|
2282
2282
|
|
|
2283
2283
|
export { FeaturePost };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { _ as __rest, a as __assign, f as filterAttrs } from '../_shared/esm/filter-attrs-D-1kWaCP.mjs';
|
|
2
|
-
import
|
|
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-BskdQ2Tt.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';
|
|
@@ -22,23 +22,23 @@ var getListHeadingLevel = function (level) {
|
|
|
22
22
|
var HighlightItem = function (_a) {
|
|
23
23
|
var icon = _a.icon, heading = _a.heading, text = _a.text, link = _a.link, isSmallIcon = _a.isSmallIcon, headingLevel = _a.headingLevel, props = __rest(_a, ["icon", "heading", "text", "link", "isSmallIcon", "headingLevel"]);
|
|
24
24
|
var listHeadingLevel = getListHeadingLevel(headingLevel || "2");
|
|
25
|
-
return (
|
|
26
|
-
icon && (
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
link && (
|
|
25
|
+
return (React__default.createElement("div", __assign({ "data-testid": "highlight-item-container", className: styles.highlightItem }, filterAttrs(props)),
|
|
26
|
+
icon && (React__default.createElement("div", { className: styles.Icon },
|
|
27
|
+
React__default.createElement(Icon, { "data-testid": "highlight-icon", color: "brand", icon: icon, size: isSmallIcon ? 64 : 76 }))),
|
|
28
|
+
React__default.createElement(VerticalSpace, { size: "16" }),
|
|
29
|
+
React__default.createElement(Heading, { level: listHeadingLevel, size: "m" }, heading),
|
|
30
|
+
React__default.createElement(VerticalSpace, { size: "16" }),
|
|
31
|
+
React__default.createElement(Text, null, text),
|
|
32
|
+
React__default.createElement(VerticalSpace, { size: "16" }),
|
|
33
|
+
link && (React__default.createElement(Link, { href: link.url, id: link.url, "aria-label": link.ariaLabel, onClick: link.onClick, rel: "", size: "m", target: "_self", title: link.textLink }, link.textLink))));
|
|
34
34
|
};
|
|
35
35
|
|
|
36
36
|
var HighlightList = function (_a) {
|
|
37
37
|
var listItems = _a.listItems, columns = _a.columns, isSmallIcon = _a.isSmallIcon, headingLevel = _a.headingLevel, props = __rest(_a, ["listItems", "columns", "isSmallIcon", "headingLevel"]);
|
|
38
38
|
var id = useId();
|
|
39
|
-
return (
|
|
39
|
+
return (React__default.createElement("div", __assign({ "data-testid": "highlights-list", className: classNames(styles.highlights, styles["highlights".concat(columns, "Column")]) }, filterAttrs(props)), listItems.map(function (_a, i) {
|
|
40
40
|
var icon = _a.icon, heading = _a.heading, text = _a.text, link = _a.link, itemProps = __rest(_a, ["icon", "heading", "text", "link"]);
|
|
41
|
-
return (
|
|
41
|
+
return (React__default.createElement(HighlightItem, __assign({ key: "highlight-".concat(id, "-").concat(i), icon: icon, heading: heading, text: text, link: link, isSmallIcon: isSmallIcon, headingLevel: headingLevel }, itemProps)));
|
|
42
42
|
})));
|
|
43
43
|
};
|
|
44
44
|
|
|
@@ -51,12 +51,12 @@ var Highlights = function (_a) {
|
|
|
51
51
|
var _b, _c, _d;
|
|
52
52
|
var heading = _a.heading, headingLevel = _a.headingLevel, id = _a.id, isHeadingWordWrap = _a.isHeadingWordWrap, content = _a.content, listItems = _a.listItems, _e = _a.columns, columns = _e === void 0 ? "2" : _e, cta = _a.cta, props = __rest(_a, ["heading", "headingLevel", "id", "isHeadingWordWrap", "content", "listItems", "columns", "cta"]);
|
|
53
53
|
var isMaxWidthArcBreakpointXs = useMediaQuery("(max-width: 767px)");
|
|
54
|
-
return (
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
cta && (
|
|
58
|
-
|
|
59
|
-
|
|
54
|
+
return (React__default.createElement("div", __assign({}, filterAttrs(props)),
|
|
55
|
+
React__default.createElement(SectionHeading, { isPadded: true, id: id, "data-testid": "highlights-header", heading: heading, headingLevel: headingLevel, isHeadingWordWrap: isHeadingWordWrap, content: content }),
|
|
56
|
+
React__default.createElement(HighlightList, { listItems: listItems, columns: columns, isSmallIcon: isMaxWidthArcBreakpointXs, headingLevel: headingLevel }),
|
|
57
|
+
cta && (React__default.createElement(React__default.Fragment, null,
|
|
58
|
+
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
60
|
? ((_b = cta.icon) !== null && _b !== void 0 ? _b : BtIconArrowRightFill)
|
|
61
61
|
: undefined, iconActive: cta.buttonStyle === "compact"
|
|
62
62
|
? ((_c = cta.iconActive) !== null && _c !== void 0 ? _c : BtIconArrowRightFill)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as __rest, a as __assign, f as filterAttrs } from '../_shared/esm/filter-attrs-D-1kWaCP.mjs';
|
|
2
|
-
import
|
|
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';
|
|
@@ -9,15 +9,15 @@ var styles = {"quick-help":"InlineLinkGroup-module_quick-help__cMTpB","quick-hel
|
|
|
9
9
|
|
|
10
10
|
var InlineLinkGroup = function (_a) {
|
|
11
11
|
var label = _a.label, links = _a.links, props = __rest(_a, ["label", "links"]);
|
|
12
|
-
return (
|
|
13
|
-
label && (
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
index < links.length - 1 && (
|
|
20
|
-
|
|
12
|
+
return (React__default.createElement("div", __assign({ className: styles["quick-help"] }, filterAttrs(props)),
|
|
13
|
+
label && (React__default.createElement("div", { className: styles["quick-help-label"] },
|
|
14
|
+
React__default.createElement(Heading, { size: "xxs", fontStyle: "overline" }, label))),
|
|
15
|
+
React__default.createElement("ul", { className: styles["quick-help-container"] }, links.map(function (link, index) { return (React__default.createElement(React__default.Fragment, { key: index },
|
|
16
|
+
React__default.createElement("li", { className: styles["quick-help-item"] },
|
|
17
|
+
React__default.createElement(Link, { href: link.href, onClick: link.onClick, "aria-label": link.ariaLabel }, link.label),
|
|
18
|
+
React__default.createElement(Icon, { icon: BtIconArrowAltRight, size: 24, color: "brand" })),
|
|
19
|
+
index < links.length - 1 && (React__default.createElement("li", { className: styles["quick-help-separator"], "aria-hidden": "true" },
|
|
20
|
+
React__default.createElement("div", { className: styles["quick-help-separator-line"] }))))); }))));
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
export { InlineLinkGroup };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as __rest, a as __assign, f as filterAttrs } from '../_shared/esm/filter-attrs-D-1kWaCP.mjs';
|
|
2
|
-
import
|
|
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';
|
|
5
5
|
import { B as BtIconArrowAltRight } from '../_shared/esm/BtIconArrowAltRight-VH6RTTnL.mjs';
|
|
@@ -10,10 +10,10 @@ 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 (
|
|
14
|
-
|
|
15
|
-
showIcon && (
|
|
16
|
-
|
|
13
|
+
return (React__default.createElement(Component, __assign({ className: classNames(styles["link-tile"], className) }, linkProps, filterAttrs(props)), text && (React__default.createElement("div", { className: styles["link-tile-content"] },
|
|
14
|
+
React__default.createElement("span", { className: styles["link-tile-text"] }, text),
|
|
15
|
+
showIcon && (React__default.createElement("span", { className: styles["link-tile-icon"] },
|
|
16
|
+
React__default.createElement(Icon, { icon: BtIconArrowAltRight, size: 32 })))))));
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
export { LinkTile };
|
|
@@ -4,7 +4,7 @@ var filterAttrs = require('../_shared/cjs/filter-attrs-C26zOt4_.cjs');
|
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var index = require('../_shared/cjs/index-Bp6Dd2i1.cjs');
|
|
6
6
|
var useMediaQuery = require('@arc-ui/components/use-media-query');
|
|
7
|
-
var index_es = require('../_shared/cjs/index.es-
|
|
7
|
+
var index_es = require('../_shared/cjs/index.es-B0J3cvrY.cjs');
|
|
8
8
|
var SectionHeading = require('../_shared/cjs/SectionHeading-Dj-dJfv3.cjs');
|
|
9
9
|
var ButtonV2 = require('@arc-ui/components/ButtonV2');
|
|
10
10
|
var InformationCard = require('@arc-ui/components/InformationCard');
|