@arc-ui/community-components 3.0.1 → 3.1.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 +17 -20
- package/CHANGELOG.md +18 -0
- package/lib/Accordion/Accordion.cjs +2 -2
- package/lib/Accordion/Accordion.mjs +2 -2
- package/lib/ActionTile/ActionTile.cjs +35 -0
- package/lib/ActionTile/ActionTile.mjs +33 -0
- package/lib/ActionTile/styles.css +1 -0
- package/lib/ArticleSidebar/ArticleSidebar.cjs +68 -58
- package/lib/ArticleSidebar/ArticleSidebar.mjs +68 -58
- package/lib/ArticleSidebar/styles.css +1 -1
- package/lib/Author/Author.cjs +2 -2
- package/lib/Author/Author.mjs +2 -2
- package/lib/BannerWithTabs/BannerWithTabs.cjs +5 -5
- package/lib/BannerWithTabs/BannerWithTabs.mjs +5 -5
- package/lib/CopyLead/CopyLead.cjs +12 -12
- package/lib/CopyLead/CopyLead.mjs +12 -12
- package/lib/DownloadList/DownloadList.cjs +5 -5
- package/lib/DownloadList/DownloadList.mjs +5 -5
- package/lib/FAQs/FAQs.cjs +6 -6
- package/lib/FAQs/FAQs.mjs +6 -6
- package/lib/FeaturePost/FeaturePost.cjs +6 -6
- package/lib/FeaturePost/FeaturePost.mjs +6 -6
- package/lib/HeroLink/HeroLink.cjs +35 -0
- package/lib/HeroLink/HeroLink.mjs +33 -0
- package/lib/HeroLink/styles.css +1 -0
- package/lib/Highlights/Highlights.cjs +9 -16
- package/lib/Highlights/Highlights.mjs +7 -14
- package/lib/LinkTile/LinkTile.cjs +21 -0
- package/lib/LinkTile/LinkTile.mjs +19 -0
- package/lib/LinkTile/styles.css +1 -0
- package/lib/ProductNavigation/ProductNavigation.cjs +10 -13
- package/lib/ProductNavigation/ProductNavigation.mjs +10 -13
- package/lib/PromoListing/PromoListing.cjs +17 -9
- package/lib/PromoListing/PromoListing.mjs +17 -9
- package/lib/Quote/Quote.cjs +3 -3
- package/lib/Quote/Quote.mjs +3 -3
- package/lib/SectionHeading/SectionHeading.cjs +3 -3
- package/lib/SectionHeading/SectionHeading.mjs +3 -3
- package/lib/Statistics/Statistics.cjs +6 -6
- package/lib/Statistics/Statistics.mjs +6 -6
- package/lib/Summary/Summary.cjs +1 -1
- package/lib/Summary/Summary.mjs +1 -1
- package/lib/_shared/cjs/{Accordion-D5fpUJzm.cjs → Accordion-BCJIm1Gq.cjs} +4 -4
- package/lib/_shared/cjs/{Author-X47pv31V.cjs → Author-D4dKNQem.cjs} +2 -2
- package/lib/_shared/cjs/BtIconArrowAltRight-CLQdP61r.cjs +11 -0
- package/lib/_shared/cjs/BtIconArrowRightFill-BVCZv7Lm.cjs +11 -0
- package/lib/_shared/cjs/{SectionHeading-DepTV4JA.cjs → SectionHeading-DeSFM0HV.cjs} +5 -5
- package/lib/_shared/cjs/filter-attrs-BizjMsy0.cjs +27 -0
- package/lib/_shared/cjs/{index.es-D11PdokQ.cjs → index.es-DzI6hGjj.cjs} +1 -1
- package/lib/_shared/esm/{Accordion-LLwNdzax.mjs → Accordion-BN_lZk6L.mjs} +4 -4
- package/lib/_shared/esm/{Author-CydDYCma.mjs → Author-HnYsFTPT.mjs} +2 -2
- package/lib/_shared/esm/BtIconArrowAltRight-VH6RTTnL.mjs +9 -0
- package/lib/_shared/esm/BtIconArrowRightFill-D0zKgk3B.mjs +9 -0
- package/lib/_shared/esm/{SectionHeading-BayinGP_.mjs → SectionHeading-CpDLCndw.mjs} +5 -5
- package/lib/_shared/esm/filter-attrs-DZ7RCEZm.mjs +25 -0
- package/lib/_shared/esm/{index.es-C4PyYMjI.mjs → index.es-B6Bolkcx.mjs} +1 -1
- package/lib/index.cjs +315 -217
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +155 -26
- package/lib/index.d.mts +155 -26
- package/lib/index.mjs +313 -218
- package/lib/index.mjs.map +1 -1
- package/lib/styles.css +1 -1
- package/package.json +13 -13
- package/src/components/Accordion/Accordion.tsx +3 -2
- package/src/components/Accordion/components/AccordionDisclosureList/AccordionDisclosureList.tsx +2 -2
- package/src/components/Accordion/components/AccordionHeading/AccordionHeading.tsx +3 -4
- package/src/components/ActionTile/ActionTile.module.css +89 -0
- package/src/components/ActionTile/ActionTile.tsx +70 -0
- package/src/components/ActionTile/index.ts +1 -0
- package/src/components/ArticleSidebar/ArticleSidebar.module.css +6 -0
- package/src/components/ArticleSidebar/ArticleSidebar.tsx +115 -85
- package/src/components/ArticleSidebar/types/link-section.ts +2 -1
- package/src/components/ArticleSidebar/types/share-button.ts +1 -1
- package/src/components/ArticleSidebar/types/share.ts +5 -1
- package/src/components/ArticleSidebar/types/text-section.ts +3 -2
- package/src/components/ArticleSidebar/types/topic.ts +2 -2
- package/src/components/Author/Author.tsx +2 -2
- package/src/components/BannerWithTabs/BannerWithTabs.tsx +9 -3
- package/src/components/CopyLead/CopyLead.tsx +21 -5
- package/src/components/CopyLead/components/MediaContent/MediaContent.tsx +10 -1
- package/src/components/CopyLead/templates/Content/Content.tsx +4 -0
- package/src/components/CopyLead/templates/Media/Media.tsx +10 -1
- package/src/components/CopyLead/types/copy-lead-button.ts +1 -1
- package/src/components/CopyLead/types/copy-lead-image.ts +1 -1
- package/src/components/DownloadList/DownloadList.tsx +4 -0
- package/src/components/FAQs/FAQs.tsx +7 -3
- package/src/components/FeaturePost/FeaturePost.tsx +22 -5
- package/src/components/FeaturePost/types/feature-post-app-button-footer.ts +1 -1
- package/src/components/FeaturePost/types/feature-post-cta-footer.ts +2 -1
- package/src/components/FeaturePost/types/feature-post-image.ts +1 -1
- package/src/components/HeroLink/HeroLink.module.css +44 -0
- package/src/components/HeroLink/HeroLink.tsx +136 -0
- package/src/components/HeroLink/index.ts +2 -0
- package/src/components/Highlights/Highlights.tsx +6 -1
- package/src/components/Highlights/components/HighlightItem/HighlightItem.tsx +1 -0
- package/src/components/Highlights/types/highlight-link.ts +1 -0
- package/src/components/LinkTile/LinkTile.module.css +57 -0
- package/src/components/LinkTile/LinkTile.tsx +38 -0
- package/src/components/LinkTile/index.ts +1 -0
- package/src/components/ProductNavigation/ProductNavigation.tsx +10 -11
- package/src/components/ProductNavigation/types/product-list.ts +1 -8
- package/src/components/PromoListing/PromoListing.tsx +67 -3
- package/src/components/Quote/Quote.tsx +2 -2
- package/src/components/SectionHeading/SectionHeading.tsx +17 -7
- package/src/components/Statistics/Statistics.tsx +6 -2
- package/src/components/index.ts +3 -0
- package/versions.json +1 -1
- package/lib/_shared/cjs/filter-data-attrs-ajtUvDAC.cjs +0 -15
- package/lib/_shared/esm/filter-data-attrs-V7cbJuwS.mjs +0 -13
package/lib/index.cjs
CHANGED
|
@@ -122,14 +122,26 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
122
122
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
123
123
|
};
|
|
124
124
|
|
|
125
|
-
|
|
126
|
-
|
|
125
|
+
/**
|
|
126
|
+
* Filters out attributes from the given props object based on a pattern.
|
|
127
|
+
*
|
|
128
|
+
* This function extracts all properties that match either the `data-*` or `aria-*` attribute patterns
|
|
129
|
+
* and returns a new object containing only those properties.
|
|
130
|
+
*
|
|
131
|
+
* @param props - The object containing properties to filter.
|
|
132
|
+
* @returns A new object containing only the matched attributes (`data-*` and `aria-*`) from the input props.
|
|
133
|
+
*/
|
|
134
|
+
var attributePrefixes = ["data-", "aria-"];
|
|
135
|
+
var filterAttrs = function (props) {
|
|
127
136
|
var filteredProps = {};
|
|
128
|
-
|
|
137
|
+
var _loop_1 = function (prop) {
|
|
129
138
|
if (Object.prototype.hasOwnProperty.call(props, prop) &&
|
|
130
|
-
|
|
139
|
+
attributePrefixes.some(function (prefix) { return prop.startsWith(prefix); })) {
|
|
131
140
|
filteredProps[prop] = props[prop];
|
|
132
141
|
}
|
|
142
|
+
};
|
|
143
|
+
for (var prop in props) {
|
|
144
|
+
_loop_1(prop);
|
|
133
145
|
}
|
|
134
146
|
return filteredProps;
|
|
135
147
|
};
|
|
@@ -225,17 +237,17 @@ function requireClassnames () {
|
|
|
225
237
|
var classnamesExports = requireClassnames();
|
|
226
238
|
var classNames = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
|
|
227
239
|
|
|
228
|
-
var styles$
|
|
240
|
+
var styles$k = {"accordion-header":"AccordionHeading-module_accordion-header__8s12f","accordion-header--hasImage":"AccordionHeading-module_accordion-header--hasImage__wbDjW","accordion-header--padded":"AccordionHeading-module_accordion-header--padded__me1JY","accordion-header--headingSizeM":"AccordionHeading-module_accordion-header--headingSizeM__amLfy"};
|
|
229
241
|
|
|
230
242
|
var AccordionHeading = function (_a) {
|
|
231
243
|
var _b, _c;
|
|
232
244
|
var heading = _a.heading, content = _a.content, id = _a.id, _d = _a.isPadded, isPadded = _d === void 0 ? false : _d, _e = _a.headingLevel, headingLevel = _e === void 0 ? "2" : _e, _f = _a.headingSize, headingSize = _f === void 0 ? "xl" : _f, image = _a.image, props = __rest(_a, ["heading", "content", "id", "isPadded", "headingLevel", "headingSize", "image"]);
|
|
233
245
|
return (React.createElement("div", __assign({ className: classNames((_b = {},
|
|
234
|
-
_b[styles$
|
|
235
|
-
_b[styles$
|
|
236
|
-
_b[styles$
|
|
237
|
-
_b)) },
|
|
238
|
-
React.createElement("div", { className: classNames((_c = {}, _c[styles$
|
|
246
|
+
_b[styles$k["accordion-header"]] = true,
|
|
247
|
+
_b[styles$k["accordion-header--padded"]] = isPadded,
|
|
248
|
+
_b[styles$k["accordion-header--headingSizeM"]] = headingSize === "m",
|
|
249
|
+
_b)) }, filterAttrs(props)),
|
|
250
|
+
React.createElement("div", { className: classNames((_c = {}, _c[styles$k["accordion-header--hasImage"]] = image, _c)) },
|
|
239
251
|
image && (React.createElement("div", null,
|
|
240
252
|
React.createElement(Image$2.Image, __assign({}, image, { width: 68, fit: "cover" })))),
|
|
241
253
|
React.createElement(Heading.Heading, { level: headingLevel, id: id, size: headingSize }, heading)),
|
|
@@ -244,86 +256,86 @@ var AccordionHeading = function (_a) {
|
|
|
244
256
|
React.createElement(Text.Text, { size: "l", elementType: "p" }, content)))));
|
|
245
257
|
};
|
|
246
258
|
|
|
247
|
-
var styles$
|
|
259
|
+
var styles$j = {"AccordionDisclosureListItem":"AccordionDisclosureList-module_AccordionDisclosureListItem__p8LIT"};
|
|
248
260
|
|
|
249
261
|
var AccordionDisclosureList = function (_a) {
|
|
250
262
|
var disclosureList = _a.disclosureList;
|
|
251
263
|
return (React.createElement("ul", null, disclosureList.map(function (_a) {
|
|
252
264
|
var children = _a.children, summary = _a.summary, _b = _a.isOpen, isOpen = _b === void 0 ? false : _b, _c = _a.indentDetails, indentDetails = _c === void 0 ? false : _c, headingLevel = _a.headingLevel, id = _a.id, props = __rest(_a, ["children", "summary", "isOpen", "indentDetails", "headingLevel", "id"]);
|
|
253
|
-
return (React.createElement("li", { key: id, className: styles$
|
|
254
|
-
React.createElement(Disclosure.Disclosure, __assign({ summary: summary, isOpen: isOpen, indentDetails: indentDetails, headingLevel: headingLevel },
|
|
265
|
+
return (React.createElement("li", { key: id, className: styles$j.AccordionDisclosureListItem },
|
|
266
|
+
React.createElement(Disclosure.Disclosure, __assign({ summary: summary, isOpen: isOpen, indentDetails: indentDetails, headingLevel: headingLevel }, filterAttrs(props)), children)));
|
|
255
267
|
})));
|
|
256
268
|
};
|
|
257
269
|
|
|
258
|
-
var styles$
|
|
270
|
+
var styles$i = {"Accordion":"Accordion-module_Accordion__LsXTU"};
|
|
259
271
|
|
|
260
272
|
/**
|
|
261
273
|
* Use the `Accordion` component to package together a title, content and a number of disclosure components into one section (maximum 10).
|
|
262
274
|
*/
|
|
263
275
|
var Accordion = function (_a) {
|
|
264
276
|
var heading = _a.heading, headingLevel = _a.headingLevel, headingSize = _a.headingSize, content = _a.content, id = _a.id, disclosureList = _a.disclosureList, props = __rest(_a, ["heading", "headingLevel", "headingSize", "content", "id", "disclosureList"]);
|
|
265
|
-
return (React.createElement("div", __assign({ className: styles$
|
|
277
|
+
return (React.createElement("div", __assign({ className: styles$i.Accordion }, filterAttrs(props)),
|
|
266
278
|
React.createElement(AccordionHeading, { isPadded: true, id: id, "data-testid": "Accordion-header", heading: heading, headingLevel: headingLevel, headingSize: headingSize, content: content }),
|
|
267
279
|
React.createElement(AccordionDisclosureList, { disclosureList: disclosureList })));
|
|
268
280
|
};
|
|
269
281
|
|
|
270
|
-
var styles$
|
|
282
|
+
var styles$h = {"authorContent":"Author-module_authorContent__TBY7b","largeAvatar":"Author-module_largeAvatar__Vco03"};
|
|
271
283
|
|
|
272
284
|
var Author = function (_a) {
|
|
273
285
|
var name = _a.name, title = _a.title, _b = _a.avatar, avatar = _b === void 0 ? {} : _b, props = __rest(_a, ["name", "title", "avatar"]);
|
|
274
286
|
var avatarSizes = ["s", "m", "l", "xl"];
|
|
275
287
|
avatar.size = avatarSizes.includes(avatar.size || "") ? avatar.size : "m";
|
|
276
288
|
var isLargeAvatar = avatar.size === "l" || avatar.size === "xl";
|
|
277
|
-
return (React.createElement("div", __assign({},
|
|
289
|
+
return (React.createElement("div", __assign({}, filterAttrs(props)),
|
|
278
290
|
React.createElement(Grid.Grid, { isFluid: true, isGutterless: true },
|
|
279
291
|
React.createElement(Grid.GridRow, { align: "center" },
|
|
280
292
|
React.createElement(Grid.GridCol, { xs: isLargeAvatar ? 12 : "auto" },
|
|
281
|
-
React.createElement("div", { className: isLargeAvatar ? styles$
|
|
293
|
+
React.createElement("div", { className: isLargeAvatar ? styles$h.largeAvatar : undefined },
|
|
282
294
|
React.createElement(Avatar.Avatar, __assign({}, avatar)))),
|
|
283
295
|
React.createElement(Grid.GridCol, null,
|
|
284
|
-
React.createElement("div", { className: "".concat(!isLargeAvatar && styles$
|
|
296
|
+
React.createElement("div", { className: "".concat(!isLargeAvatar && styles$h.authorContent), "data-testid": "authorContent" },
|
|
285
297
|
React.createElement(Heading.Heading, { size: "xs" }, name),
|
|
286
298
|
React.createElement(Text.Text, { size: "s" }, title)))))));
|
|
287
299
|
};
|
|
288
300
|
|
|
289
301
|
/**
|
|
290
302
|
* Do not edit directly
|
|
291
|
-
* Generated on Wed,
|
|
303
|
+
* Generated on Wed, 25 Feb 2026 15:47:05 GMT
|
|
292
304
|
*/
|
|
293
305
|
var ArcSizeBreakpointsS = "636px";
|
|
294
306
|
var ArcSizeBreakpointsM = "768px";
|
|
295
307
|
var ArcSizeBreakpointsL = "1024px";
|
|
296
308
|
var ArcSizeBreakpointsXl = "1280px";
|
|
297
309
|
|
|
298
|
-
var styles$
|
|
310
|
+
var styles$g = {"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"};
|
|
299
311
|
|
|
300
312
|
var MediaContent$1 = function (_a) {
|
|
301
|
-
var heading = _a.heading, headingLevel = _a.headingLevel, children = _a.children;
|
|
302
|
-
return (React.createElement("div", { className: styles$
|
|
303
|
-
React.createElement(Heading.Heading, { level: headingLevel, size: "xl" }, heading),
|
|
304
|
-
children && (React.createElement("div", { className: styles$
|
|
313
|
+
var heading = _a.heading, id = _a.id, headingLevel = _a.headingLevel, isHeadingWordWrap = _a.isHeadingWordWrap, children = _a.children;
|
|
314
|
+
return (React.createElement("div", { className: styles$g.mediaContainer },
|
|
315
|
+
React.createElement(Heading.Heading, { id: id, level: headingLevel, isWordWrap: isHeadingWordWrap, size: "xl" }, heading),
|
|
316
|
+
children && (React.createElement("div", { className: styles$g.content },
|
|
305
317
|
React.createElement(VerticalSpace.VerticalSpace, { size: "24" }),
|
|
306
318
|
React.createElement(Text.Text, { size: "l" }, children)))));
|
|
307
319
|
};
|
|
308
320
|
|
|
309
321
|
var Image$1 = function (_a) {
|
|
310
322
|
var sources = _a.sources, props = __rest(_a, ["sources"]);
|
|
311
|
-
return (React.createElement("div", { className: styles$
|
|
323
|
+
return (React.createElement("div", { className: styles$g.imgWrapper },
|
|
312
324
|
React.createElement(Image$2.Image, __assign({ fadeOnLoad: true }, props), sources &&
|
|
313
325
|
sources.map(function (source) { return React.createElement("source", __assign({ key: source.srcSet }, source)); }))));
|
|
314
326
|
};
|
|
315
327
|
|
|
316
328
|
var IconList = function (_a) {
|
|
317
329
|
var listItems = _a.listItems, isLgScreen = _a.isLgScreen, _b = _a.headingLevel, headingLevel = _b === void 0 ? "3" : _b;
|
|
318
|
-
return (React.createElement("ul", { className: styles$
|
|
330
|
+
return (React.createElement("ul", { className: styles$g.list }, listItems.map(function (_a) {
|
|
319
331
|
var _b;
|
|
320
332
|
var icon = _a.icon, heading = _a.heading, text = _a.text;
|
|
321
|
-
return (React.createElement("li", { key: heading, className: classNames(styles$
|
|
322
|
-
_b[styles$
|
|
333
|
+
return (React.createElement("li", { key: heading, className: classNames(styles$g.listItem, (_b = {},
|
|
334
|
+
_b[styles$g.listItemCentered] = !text,
|
|
323
335
|
_b)) },
|
|
324
|
-
React.createElement("div", { className: styles$
|
|
336
|
+
React.createElement("div", { className: styles$g.listItemIconContainer },
|
|
325
337
|
React.createElement(Icon.Icon, { color: "brand", icon: icon, size: isLgScreen ? 64 : 48 })),
|
|
326
|
-
React.createElement("div", { className: styles$
|
|
338
|
+
React.createElement("div", { className: styles$g.listItemTextContainer },
|
|
327
339
|
React.createElement(Heading.Heading, { level: headingLevel, size: "s" }, heading),
|
|
328
340
|
text && (React.createElement(React.Fragment, null,
|
|
329
341
|
React.createElement(VerticalSpace.VerticalSpace, { size: "8", sizeL: "16" }),
|
|
@@ -331,20 +343,20 @@ var IconList = function (_a) {
|
|
|
331
343
|
})));
|
|
332
344
|
};
|
|
333
345
|
|
|
334
|
-
var Button = function (props) { return (React.createElement("div", { className: styles$
|
|
346
|
+
var Button = function (props) { return (React.createElement("div", { className: styles$g.buttonContainer },
|
|
335
347
|
React.createElement(ButtonV2.ButtonV2, __assign({ isFullWidth: true, buttonStyle: "secondary" }, props)))); };
|
|
336
348
|
|
|
337
349
|
var Container = function (_a) {
|
|
338
350
|
var _b;
|
|
339
351
|
var children = _a.children, isReverseOrder = _a.isReverseOrder, type = _a.type, alignment = _a.alignment;
|
|
340
|
-
return (React.createElement("div", { "data-testid": "copy-lead-container", className: classNames(styles$
|
|
341
|
-
_b[styles$
|
|
352
|
+
return (React.createElement("div", { "data-testid": "copy-lead-container", className: classNames(styles$g.container, styles$g["container--".concat(type)], styles$g["container--align-".concat(alignment)], (_b = {},
|
|
353
|
+
_b[styles$g["container--reverse"]] = isReverseOrder,
|
|
342
354
|
_b)) }, children));
|
|
343
355
|
};
|
|
344
356
|
|
|
345
357
|
var Column = function (_a) {
|
|
346
358
|
var children = _a.children;
|
|
347
|
-
return (React.createElement("div", { className: styles$
|
|
359
|
+
return (React.createElement("div", { className: styles$g.col }, children));
|
|
348
360
|
};
|
|
349
361
|
|
|
350
362
|
var getListHeadingLevel$1 = function (level) {
|
|
@@ -361,7 +373,7 @@ var VideoPlayer$1 = React.lazy(function () {
|
|
|
361
373
|
});
|
|
362
374
|
});
|
|
363
375
|
var MediaTemplate = function (_a) {
|
|
364
|
-
var button = _a.button, heading = _a.heading, headingLevel = _a.headingLevel, listItems = _a.listItems, video = _a.video, image = _a.image, content = _a.content, _b = _a.isReverseOrder, isReverseOrder = _b === void 0 ? false : _b;
|
|
376
|
+
var button = _a.button, id = _a.id, heading = _a.heading, headingLevel = _a.headingLevel, listItems = _a.listItems, video = _a.video, image = _a.image, content = _a.content, isHeadingWordWrap = _a.isHeadingWordWrap, _b = _a.isReverseOrder, isReverseOrder = _b === void 0 ? false : _b;
|
|
365
377
|
var _c = React.useState(false), isClient = _c[0], setIsClient = _c[1];
|
|
366
378
|
var isMinWidthArcBreakpointL = useMediaQuery.useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsL, ")"));
|
|
367
379
|
var isMinWidthArcBreakpointXl = useMediaQuery.useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsXl, ")"));
|
|
@@ -372,7 +384,7 @@ var MediaTemplate = function (_a) {
|
|
|
372
384
|
return (React.createElement("div", null,
|
|
373
385
|
!isMinWidthArcBreakpointXl && (React.createElement(Columns.Columns, null,
|
|
374
386
|
React.createElement(Columns.ColumnsCol, { span: 12, spanM: 9 },
|
|
375
|
-
React.createElement(MediaContent$1, { heading: heading, headingLevel: headingLevel }, content)))),
|
|
387
|
+
React.createElement(MediaContent$1, { heading: heading, headingLevel: headingLevel, id: id, isHeadingWordWrap: isHeadingWordWrap }, content)))),
|
|
376
388
|
React.createElement(Container, { type: "media", isReverseOrder: isReverseOrder, alignment: !isMinWidthArcBreakpointXl ? "top" : "center" },
|
|
377
389
|
React.createElement(Column, null,
|
|
378
390
|
isMinWidthArcBreakpointXl && (React.createElement(MediaContent$1, { heading: heading }, content)),
|
|
@@ -384,32 +396,32 @@ var MediaTemplate = function (_a) {
|
|
|
384
396
|
image && !video && React.createElement(Image$1, __assign({}, image))))));
|
|
385
397
|
};
|
|
386
398
|
|
|
387
|
-
var styles$
|
|
399
|
+
var styles$f = {"section-header":"SectionHeading-module_section-header__iB07I","section-header--hasImage":"SectionHeading-module_section-header--hasImage__Ka3T7","section-header--padded":"SectionHeading-module_section-header--padded__0FXP2"};
|
|
388
400
|
|
|
389
401
|
var SectionHeading = function (_a) {
|
|
390
402
|
var _b, _c;
|
|
391
|
-
var heading = _a.heading, content = _a.content, id = _a.id, _d = _a.isPadded, isPadded = _d === void 0 ? false : _d, _e = _a.headingLevel, headingLevel = _e === void 0 ? "2" : _e,
|
|
403
|
+
var heading = _a.heading, content = _a.content, id = _a.id, image = _a.image, isHeadingWordWrap = _a.isHeadingWordWrap, _d = _a.isPadded, isPadded = _d === void 0 ? false : _d, _e = _a.headingLevel, headingLevel = _e === void 0 ? "2" : _e, props = __rest(_a, ["heading", "content", "id", "image", "isHeadingWordWrap", "isPadded", "headingLevel"]);
|
|
392
404
|
return (React.createElement("div", __assign({ className: classNames((_b = {},
|
|
393
|
-
_b[styles$
|
|
394
|
-
_b[styles$
|
|
395
|
-
_b)) },
|
|
396
|
-
React.createElement("div", { className: classNames((_c = {}, _c[styles$
|
|
405
|
+
_b[styles$f["section-header"]] = true,
|
|
406
|
+
_b[styles$f["section-header--padded"]] = isPadded,
|
|
407
|
+
_b)) }, filterAttrs(props)),
|
|
408
|
+
React.createElement("div", { className: classNames((_c = {}, _c[styles$f["section-header--hasImage"]] = image, _c)) },
|
|
397
409
|
image && (React.createElement("div", null,
|
|
398
410
|
React.createElement(Image$2.Image, __assign({}, image, { width: 68, fit: "cover" })))),
|
|
399
|
-
React.createElement(Heading.Heading, { level: headingLevel, id: id, size: "xl" }, heading)),
|
|
411
|
+
React.createElement(Heading.Heading, { level: headingLevel, id: id, size: "xl", isWordWrap: isHeadingWordWrap }, heading)),
|
|
400
412
|
content && (React.createElement(React.Fragment, null,
|
|
401
413
|
React.createElement(VerticalSpace.VerticalSpace, { size: "24" }),
|
|
402
414
|
React.createElement(Text.Text, { size: "l", elementType: "p" }, content)))));
|
|
403
415
|
};
|
|
404
416
|
|
|
405
417
|
var ContentTemplate = function (_a) {
|
|
406
|
-
var button = _a.button, heading = _a.heading, headingLevel = _a.headingLevel, listItems = _a.listItems, content = _a.content;
|
|
418
|
+
var button = _a.button, id = _a.id, heading = _a.heading, headingLevel = _a.headingLevel, isHeadingWordWrap = _a.isHeadingWordWrap, listItems = _a.listItems, content = _a.content;
|
|
407
419
|
var isMinWidthArcBreakpointM = useMediaQuery.useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsM, ")"));
|
|
408
420
|
var isMinWidthArcBreakpointL = useMediaQuery.useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsL, ")"));
|
|
409
421
|
var listHeadingLevel = getListHeadingLevel$1(headingLevel);
|
|
410
422
|
return (React.createElement(Container, { type: "content", alignment: "top" },
|
|
411
423
|
React.createElement(Column, null,
|
|
412
|
-
React.createElement(SectionHeading, { heading: heading, headingLevel: headingLevel, content: content }),
|
|
424
|
+
React.createElement(SectionHeading, { id: id, heading: heading, headingLevel: headingLevel, isHeadingWordWrap: isHeadingWordWrap, content: content }),
|
|
413
425
|
button && isMinWidthArcBreakpointM && React.createElement(Button, __assign({}, button))),
|
|
414
426
|
React.createElement(Column, null,
|
|
415
427
|
React.createElement(IconList, { listItems: listItems, isLgScreen: isMinWidthArcBreakpointL, headingLevel: listHeadingLevel }),
|
|
@@ -420,23 +432,23 @@ var ContentTemplate = function (_a) {
|
|
|
420
432
|
* 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.
|
|
421
433
|
*/
|
|
422
434
|
var CopyLead = function (_a) {
|
|
423
|
-
var button = _a.button, heading = _a.heading, _b = _a.headingLevel, headingLevel = _b === void 0 ? "2" : _b, listItems = _a.listItems, video = _a.video, image = _a.image, content = _a.content, _c = _a.isReverseOrder, isReverseOrder = _c === void 0 ? false : _c, props = __rest(_a, ["button", "heading", "headingLevel", "listItems", "video", "image", "content", "isReverseOrder"]);
|
|
435
|
+
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"]);
|
|
424
436
|
if (video || image) {
|
|
425
|
-
return (React.createElement(MediaTemplate, __assign({ content: content, video: video, image: image, listItems: listItems, heading: heading, headingLevel: headingLevel, button: button, isReverseOrder: isReverseOrder },
|
|
437
|
+
return (React.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))));
|
|
426
438
|
}
|
|
427
439
|
if (content) {
|
|
428
|
-
return (React.createElement(ContentTemplate, __assign({ listItems: listItems, heading: heading, headingLevel: headingLevel, button: button, content: content },
|
|
440
|
+
return (React.createElement(ContentTemplate, __assign({ id: id, listItems: listItems, heading: heading, headingLevel: headingLevel, isHeadingWordWrap: isHeadingWordWrap, button: button, content: content }, filterAttrs(props))));
|
|
429
441
|
}
|
|
430
442
|
return null;
|
|
431
443
|
};
|
|
432
444
|
|
|
433
|
-
var styles$
|
|
445
|
+
var styles$e = {"headingContainer":"DownloadList-module_headingContainer__PNio8"};
|
|
434
446
|
|
|
435
447
|
var DownloadList = function (_a) {
|
|
436
|
-
var heading = _a.heading, _b = _a.headingLevel, headingLevel = _b === void 0 ? "2" : _b, content = _a.content, downloads = _a.downloads;
|
|
448
|
+
var heading = _a.heading, id = _a.id, _b = _a.headingLevel, headingLevel = _b === void 0 ? "2" : _b, isHeadingWordWrap = _a.isHeadingWordWrap, content = _a.content, downloads = _a.downloads;
|
|
437
449
|
return (React.createElement(React.Fragment, null,
|
|
438
|
-
React.createElement("div", { className: styles$
|
|
439
|
-
React.createElement(SectionHeading, { heading: heading, headingLevel: headingLevel, content: content })),
|
|
450
|
+
React.createElement("div", { className: styles$e.headingContainer },
|
|
451
|
+
React.createElement(SectionHeading, { id: id, heading: heading, isHeadingWordWrap: isHeadingWordWrap, headingLevel: headingLevel, content: content })),
|
|
440
452
|
React.createElement(VerticalSpace.VerticalSpace, { size: "40" }),
|
|
441
453
|
downloads.map(function (props, i) { return (React.createElement(React.Fragment, null,
|
|
442
454
|
React.createElement(Download.Download, __assign({}, props)),
|
|
@@ -444,22 +456,22 @@ var DownloadList = function (_a) {
|
|
|
444
456
|
i !== downloads.length - 1 && React.createElement(VerticalSpace.VerticalSpace, { size: "16" }))); })));
|
|
445
457
|
};
|
|
446
458
|
|
|
447
|
-
var styles$
|
|
459
|
+
var styles$d = {"FAQs":"FAQs-module_FAQs__FtQr4","linkListSection":"FAQs-module_linkListSection__RdQkU","linkListTitle":"FAQs-module_linkListTitle__RVni3","linkList":"FAQs-module_linkList__dPyXj","linkListItem":"FAQs-module_linkListItem__S83CL","linkList--padded":"FAQs-module_linkList--padded__8Paxc"};
|
|
448
460
|
|
|
449
461
|
var FAQs = function (_a) {
|
|
450
462
|
var _b;
|
|
451
|
-
var heading = _a.heading, content = _a.content, _c = _a.isPadded, isPadded = _c === void 0 ? false : _c, _d = _a.headingLevel, headingLevel = _d === void 0 ? "2" : _d, image = _a.image,
|
|
452
|
-
return (React.createElement("div", __assign({ className: styles$
|
|
453
|
-
React.createElement(SectionHeading, { heading: heading, content: content, image: image, headingLevel: headingLevel, isPadded: isPadded }),
|
|
454
|
-
type === "listWithLinks" && (React.createElement("div", { className: styles$
|
|
455
|
-
React.createElement("div", { className: styles$
|
|
463
|
+
var heading = _a.heading, isHeadingWordWrap = _a.isHeadingWordWrap, content = _a.content, id = _a.id, _c = _a.isPadded, isPadded = _c === void 0 ? false : _c, _d = _a.headingLevel, headingLevel = _d === void 0 ? "2" : _d, image = _a.image, type = _a.type, _e = _a.linkListHeading, linkListHeading = _e === void 0 ? "Skip to section" : _e, accordionData = _a.accordionData, props = __rest(_a, ["heading", "isHeadingWordWrap", "content", "id", "isPadded", "headingLevel", "image", "type", "linkListHeading", "accordionData"]);
|
|
464
|
+
return (React.createElement("div", __assign({ className: styles$d.FAQs }, filterAttrs(props)),
|
|
465
|
+
React.createElement(SectionHeading, { id: id, isHeadingWordWrap: isHeadingWordWrap, heading: heading, content: content, image: image, headingLevel: headingLevel, isPadded: isPadded }),
|
|
466
|
+
type === "listWithLinks" && (React.createElement("div", { className: styles$d.linkListSection },
|
|
467
|
+
React.createElement("div", { className: styles$d.linkListTitle },
|
|
456
468
|
React.createElement(Heading.Heading, { size: "xs" }, linkListHeading)),
|
|
457
469
|
React.createElement("ul", { className: classNames((_b = {},
|
|
458
|
-
_b[styles$
|
|
459
|
-
_b[styles$
|
|
470
|
+
_b[styles$d.linkList] = true,
|
|
471
|
+
_b[styles$d["linkList--padded"]] = isPadded,
|
|
460
472
|
_b)) }, accordionData.map(function (item) {
|
|
461
473
|
var _a;
|
|
462
|
-
return (React.createElement("li", { className: styles$
|
|
474
|
+
return (React.createElement("li", { className: styles$d.linkListItem, key: item.heading },
|
|
463
475
|
React.createElement(Link.Link, { title: item.heading, href: "#".concat(item.id), onClick: function (e) {
|
|
464
476
|
e.preventDefault();
|
|
465
477
|
if (item.id) {
|
|
@@ -470,7 +482,7 @@ var FAQs = function (_a) {
|
|
|
470
482
|
}
|
|
471
483
|
} }, (_a = item.altLinkTitle) !== null && _a !== void 0 ? _a : item.heading)));
|
|
472
484
|
})))),
|
|
473
|
-
type !== "tabs" && accordionData && (React.createElement("ul", { className: styles$
|
|
485
|
+
type !== "tabs" && accordionData && (React.createElement("ul", { className: styles$d.accordionList }, accordionData.map(function (item) { return (React.createElement("li", { className: styles$d.accordionListItem, key: item.id },
|
|
474
486
|
React.createElement(Accordion, { id: item.id, heading: item.heading, headingLevel: item.headingLevel, content: item.content, disclosureList: item.disclosureList, headingSize: "m" }),
|
|
475
487
|
React.createElement(VerticalSpace.VerticalSpace, { size: "48", sizeL: "64" }))); }))),
|
|
476
488
|
type === "tabs" && (React.createElement(Tabs.Tabs, { defaultValue: accordionData[0].heading },
|
|
@@ -2667,11 +2679,11 @@ function cleanEscapedString(input) {
|
|
|
2667
2679
|
return matched[1].replace(doubleQuoteRegExp, "'");
|
|
2668
2680
|
}
|
|
2669
2681
|
|
|
2670
|
-
var styles$
|
|
2682
|
+
var styles$c = {"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"};
|
|
2671
2683
|
|
|
2672
2684
|
var Image = function (_a) {
|
|
2673
2685
|
var sources = _a.sources, props = __rest(_a, ["sources"]);
|
|
2674
|
-
return (React.createElement("div", { className: styles$
|
|
2686
|
+
return (React.createElement("div", { className: styles$c.imgWrapper },
|
|
2675
2687
|
React.createElement(Image$2.Image, __assign({ fadeOnLoad: true }, props), sources &&
|
|
2676
2688
|
sources.map(function (source) { return React.createElement("source", __assign({ key: source.srcSet }, source)); }))));
|
|
2677
2689
|
};
|
|
@@ -2701,22 +2713,22 @@ var MediaContent = function (_a) {
|
|
|
2701
2713
|
* */
|
|
2702
2714
|
var FeaturePost = function (_a) {
|
|
2703
2715
|
var _b;
|
|
2704
|
-
var heading = _a.heading, _c = _a.headingLevel, headingLevel = _c === void 0 ? "2" : _c, label = _a.label, image = _a.image, content = _a.content, footer = _a.footer, video = _a.video, _d = _a.isReverseOrder, isReverseOrder = _d === void 0 ? false : _d, props = __rest(_a, ["heading", "headingLevel", "label", "image", "content", "footer", "video", "isReverseOrder"]);
|
|
2716
|
+
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"]);
|
|
2705
2717
|
var isMinWidthArcBreakpointM = useMediaQuery.useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsM, ")"));
|
|
2706
|
-
return (React.createElement("div", __assign({ "data-testid": "feature-post", className: classNames(styles$
|
|
2707
|
-
_b[styles$
|
|
2708
|
-
_b)) },
|
|
2709
|
-
React.createElement("div", { className: styles$
|
|
2710
|
-
React.createElement("div", { className: styles$
|
|
2718
|
+
return (React.createElement("div", __assign({ "data-testid": "feature-post", className: classNames(styles$c.featurePost, (_b = {},
|
|
2719
|
+
_b[styles$c.featurePostReversed] = isReverseOrder,
|
|
2720
|
+
_b)) }, filterAttrs(props)),
|
|
2721
|
+
React.createElement("div", { className: styles$c.col },
|
|
2722
|
+
React.createElement("div", { className: styles$c.contentContainer },
|
|
2711
2723
|
label && (React.createElement(Grid.Grid, { isGutterless: true, isFluid: true },
|
|
2712
2724
|
React.createElement(Grid.GridRow, { align: "baseline" },
|
|
2713
2725
|
React.createElement(Grid.GridCol, { xs: 12, m: "auto" },
|
|
2714
2726
|
React.createElement(Heading.Heading, { size: "xxs", fontStyle: "overline" }, label.text)),
|
|
2715
2727
|
React.createElement(Grid.GridCol, { xs: 12, m: "auto" },
|
|
2716
|
-
React.createElement("div", { className: styles$
|
|
2728
|
+
React.createElement("div", { className: styles$c.labelDate },
|
|
2717
2729
|
React.createElement(Text.Text, { size: "xs", tone: "muted" }, isDate(label.date) ? (React.createElement("time", { dateTime: format(label.date, "yyyy-MM-dd") }, format(label.date, "d MMMM yyyy"))) : (React.createElement("span", null, label.date)))))),
|
|
2718
2730
|
React.createElement(VerticalSpace.VerticalSpace, { size: "24" }))),
|
|
2719
|
-
React.createElement(Heading.Heading, { level: headingLevel, size: "xl" }, heading),
|
|
2731
|
+
React.createElement(Heading.Heading, { id: id, level: headingLevel, isWordWrap: isHeadingWordWrap, size: "xl" }, heading),
|
|
2720
2732
|
!isMinWidthArcBreakpointM && (React.createElement("div", { "data-testid": "mobile-img" },
|
|
2721
2733
|
React.createElement(VerticalSpace.VerticalSpace, { size: "40" }),
|
|
2722
2734
|
React.createElement(MediaContent, { image: image, video: video }))),
|
|
@@ -2735,10 +2747,10 @@ var FeaturePost = function (_a) {
|
|
|
2735
2747
|
footer.appStore && (React.createElement(Grid.GridCol, { xs: 12, s: "auto" },
|
|
2736
2748
|
React.createElement(AppButton.AppButton, { type: "apple-app-store", screenReaderText: footer.appStore.screenReaderText, url: footer.appStore.url }))),
|
|
2737
2749
|
footer.googlePlay && (React.createElement(Grid.GridCol, { xs: 12, s: "auto" },
|
|
2738
|
-
React.createElement("div", { className: styles$
|
|
2750
|
+
React.createElement("div", { className: styles$c.googlePlayButtonWrapper },
|
|
2739
2751
|
React.createElement(AppButton.AppButton, { type: "google-play", screenReaderText: footer.googlePlay.screenReaderText, url: footer.googlePlay.url })))))))))),
|
|
2740
|
-
isMinWidthArcBreakpointM && (React.createElement("div", { className: styles$
|
|
2741
|
-
React.createElement("div", { "data-testid": "desktop-img", className: styles$
|
|
2752
|
+
isMinWidthArcBreakpointM && (React.createElement("div", { className: styles$c.col },
|
|
2753
|
+
React.createElement("div", { "data-testid": "desktop-img", className: styles$c.imgContainer },
|
|
2742
2754
|
React.createElement(MediaContent, { image: image, video: video }))))));
|
|
2743
2755
|
};
|
|
2744
2756
|
|
|
@@ -2750,7 +2762,7 @@ var FeaturePost = function (_a) {
|
|
|
2750
2762
|
const BtIconArrowRightFill =
|
|
2751
2763
|
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath fill='currentColor' d='M2 16A14 14 0 1 0 16 2 14 14 0 0 0 2 16m16.854-4.354L23.207 16l-4.354 4.354a.5.5 0 0 1-.707-.707l3.147-3.147H9.5a.5.5 0 0 1 0-1h11.793l-3.146-3.146a.5.5 0 0 1 .707-.707'/%3e%3c/svg%3e";
|
|
2752
2764
|
|
|
2753
|
-
var styles$
|
|
2765
|
+
var styles$b = {"highlights":"Highlights-module_highlights__Hf7Zq","highlightItem":"Highlights-module_highlightItem__-N6le","highlights2Column":"Highlights-module_highlights2Column__6qIuI","highlights3Column":"Highlights-module_highlights3Column__qsCMP"};
|
|
2754
2766
|
|
|
2755
2767
|
var getListHeadingLevel = function (level) {
|
|
2756
2768
|
var nextLevel = Math.min(parseInt(level) + 1, 6);
|
|
@@ -2760,21 +2772,21 @@ var getListHeadingLevel = function (level) {
|
|
|
2760
2772
|
var HighlightItem = function (_a) {
|
|
2761
2773
|
var icon = _a.icon, heading = _a.heading, text = _a.text, link = _a.link, isSmallIcon = _a.isSmallIcon, headingLevel = _a.headingLevel;
|
|
2762
2774
|
var listHeadingLevel = getListHeadingLevel(headingLevel || "2");
|
|
2763
|
-
return (React.createElement("div", { "data-testid": "highlight-item-container", className: styles$
|
|
2764
|
-
icon && (React.createElement("div", { className: styles$
|
|
2775
|
+
return (React.createElement("div", { "data-testid": "highlight-item-container", className: styles$b.highlightItem },
|
|
2776
|
+
icon && (React.createElement("div", { className: styles$b.Icon },
|
|
2765
2777
|
React.createElement(Icon.Icon, { "data-testid": "highlight-icon", color: "brand", icon: icon, size: isSmallIcon ? 64 : 76 }))),
|
|
2766
2778
|
React.createElement(VerticalSpace.VerticalSpace, { size: "16" }),
|
|
2767
2779
|
React.createElement(Heading.Heading, { level: listHeadingLevel, size: "m" }, heading),
|
|
2768
2780
|
React.createElement(VerticalSpace.VerticalSpace, { size: "16" }),
|
|
2769
2781
|
React.createElement(Text.Text, null, text),
|
|
2770
2782
|
React.createElement(VerticalSpace.VerticalSpace, { size: "16" }),
|
|
2771
|
-
link && (React.createElement(Link.Link, { href: link.url, id: link.url, onClick: link.onClick, rel: "", size: "m", target: "_self", title: link.textLink }, link.textLink))));
|
|
2783
|
+
link && (React.createElement(Link.Link, { href: link.url, id: link.url, "aria-label": link.ariaLabel, onClick: link.onClick, rel: "", size: "m", target: "_self", title: link.textLink }, link.textLink))));
|
|
2772
2784
|
};
|
|
2773
2785
|
|
|
2774
2786
|
var HighlightList = function (_a) {
|
|
2775
2787
|
var listItems = _a.listItems, columns = _a.columns, isSmallIcon = _a.isSmallIcon, headingLevel = _a.headingLevel;
|
|
2776
2788
|
var id = React.useId();
|
|
2777
|
-
return (React.createElement("div", { "data-testid": "highlights-list", className: classNames(styles$
|
|
2789
|
+
return (React.createElement("div", { "data-testid": "highlights-list", className: classNames(styles$b.highlights, styles$b["highlights".concat(columns, "Column")]) }, listItems.map(function (_a, i) {
|
|
2778
2790
|
var icon = _a.icon, heading = _a.heading, text = _a.text, link = _a.link;
|
|
2779
2791
|
return (React.createElement(HighlightItem, { key: "highlight-".concat(id, "-").concat(i), icon: icon, heading: heading, text: text, link: link, isSmallIcon: isSmallIcon, headingLevel: headingLevel }));
|
|
2780
2792
|
})));
|
|
@@ -2787,28 +2799,76 @@ var HighlightList = function (_a) {
|
|
|
2787
2799
|
*/
|
|
2788
2800
|
var Highlights = function (_a) {
|
|
2789
2801
|
var _b, _c, _d;
|
|
2790
|
-
var heading = _a.heading, headingLevel = _a.headingLevel, content = _a.content, listItems = _a.listItems, _e = _a.columns, columns = _e === void 0 ? "2" : _e, cta = _a.cta;
|
|
2802
|
+
var heading = _a.heading, headingLevel = _a.headingLevel, id = _a.id, isHeadingWordWrap = _a.isHeadingWordWrap, content = _a.content, listItems = _a.listItems, _e = _a.columns, columns = _e === void 0 ? "2" : _e, cta = _a.cta;
|
|
2791
2803
|
var isMaxWidthArcBreakpointXs = useMediaQuery.useMediaQuery("(max-width: 767px)");
|
|
2792
2804
|
return (React.createElement("div", null,
|
|
2793
|
-
React.createElement(SectionHeading, { isPadded: true, "data-testid": "highlights-header", heading: heading, headingLevel: headingLevel, content: content }),
|
|
2805
|
+
React.createElement(SectionHeading, { isPadded: true, id: id, "data-testid": "highlights-header", heading: heading, headingLevel: headingLevel, isHeadingWordWrap: isHeadingWordWrap, content: content }),
|
|
2794
2806
|
React.createElement(HighlightList, { "data-testid": "highlights-list-container", listItems: listItems, columns: columns, isSmallIcon: isMaxWidthArcBreakpointXs, headingLevel: headingLevel }),
|
|
2795
2807
|
cta && (React.createElement(React.Fragment, null,
|
|
2796
2808
|
React.createElement(VerticalSpace.VerticalSpace, { size: "24" }),
|
|
2797
|
-
React.createElement(ButtonV2.ButtonV2, { label: cta.label, href: cta.href, onClick: cta.onClick, size: "m", buttonStyle: cta.buttonStyle, icon: cta.buttonStyle === "compact"
|
|
2809
|
+
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"
|
|
2798
2810
|
? ((_b = cta.icon) !== null && _b !== void 0 ? _b : BtIconArrowRightFill)
|
|
2799
2811
|
: undefined, iconActive: cta.buttonStyle === "compact"
|
|
2800
2812
|
? ((_c = cta.iconActive) !== null && _c !== void 0 ? _c : BtIconArrowRightFill)
|
|
2801
2813
|
: undefined, iconPosition: (_d = cta.iconPosition) !== null && _d !== void 0 ? _d : "beforeText" })))));
|
|
2802
2814
|
};
|
|
2803
2815
|
|
|
2804
|
-
var styles$
|
|
2816
|
+
var styles$a = {"PromoListing":"PromoListing-module_PromoListing__6ensv","carouselSlide":"PromoListing-module_carouselSlide__AMTPF","cardGrid":"PromoListing-module_cardGrid__llf73","cardWrapper":"PromoListing-module_cardWrapper__I4iwh","cardWrapperCarousel":"PromoListing-module_cardWrapperCarousel__t-2qM","columns-3":"PromoListing-module_columns-3__y6jWS","columns-2":"PromoListing-module_columns-2__GRFxb"};
|
|
2817
|
+
|
|
2818
|
+
/**
|
|
2819
|
+
* Do not edit directly
|
|
2820
|
+
* Generated file
|
|
2821
|
+
*/
|
|
2822
|
+
|
|
2823
|
+
const ArcIconSocialLinkedin =
|
|
2824
|
+
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath fill='currentColor' d='M25.856 25.86H21.71v-6.496c0-1.55-.032-3.544-2.161-3.544-2.162 0-2.492 1.686-2.492 3.43v6.61H12.91V12.5h3.983v1.821h.053c.557-1.05 1.91-2.158 3.932-2.158 4.201 0 4.978 2.765 4.978 6.364v7.334zM8.226 10.673a2.406 2.406 0 0 1-2.406-2.41 2.408 2.408 0 1 1 2.407 2.41zm2.08 15.189H6.148V12.5h4.158v13.36zM27.929 2H4.066C2.924 2 2 2.903 2 4.017v23.966C2 29.098 2.924 30 4.066 30h23.86c1.14 0 2.074-.902 2.074-2.017V4.017C30 2.903 29.067 2 27.926 2z'/%3e%3c/svg%3e";
|
|
2825
|
+
|
|
2826
|
+
/**
|
|
2827
|
+
* Do not edit directly
|
|
2828
|
+
* Generated file
|
|
2829
|
+
*/
|
|
2830
|
+
|
|
2831
|
+
const ArcIconSocialX =
|
|
2832
|
+
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath fill='currentColor' d='M24.034 3h4.278l-9.343 10.639L30 28.103h-8.64l-6.781-8.768-7.739 8.768H2.563L12.58 16.738 2 3h8.864l6.107 8.014zm-1.491 22.562h2.364L9.57 5.402H7.009z'/%3e%3c/svg%3e";
|
|
2833
|
+
|
|
2834
|
+
/**
|
|
2835
|
+
* Do not edit directly
|
|
2836
|
+
* Generated file
|
|
2837
|
+
*/
|
|
2838
|
+
|
|
2839
|
+
const BtIconArrowAltRight =
|
|
2840
|
+
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath fill='currentColor' d='M18.854 11.646a.5.5 0 0 0-.707.707l3.146 3.147H9.5a.5.5 0 0 0 0 1h11.793l-3.146 3.146a.5.5 0 1 0 .707.707L23.207 16Z'/%3e%3c/svg%3e";
|
|
2841
|
+
|
|
2842
|
+
/**
|
|
2843
|
+
* Do not edit directly
|
|
2844
|
+
* Generated file
|
|
2845
|
+
*/
|
|
2846
|
+
|
|
2847
|
+
const BtIconEmailUnread =
|
|
2848
|
+
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath fill='currentColor' d='M29 6H3a1 1 0 0 0-1 1v18a1 1 0 0 0 1 1h26a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1m0 1v1.716l-11 7.616a3.52 3.52 0 0 1-3.984 0L3 8.705V7Zm0 2.933v12.15l-8.775-6.075Zm-17.208 6.075L3 22.095V9.922ZM3 25v-1.689l9.67-6.695.777.538a4.52 4.52 0 0 0 5.123 0l.776-.538L29 23.3V25Z'/%3e%3c/svg%3e";
|
|
2849
|
+
|
|
2850
|
+
/**
|
|
2851
|
+
* Do not edit directly
|
|
2852
|
+
* Generated file
|
|
2853
|
+
*/
|
|
2854
|
+
|
|
2855
|
+
const BtIconLink =
|
|
2856
|
+
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath d='M9.959 10.013h2.417a5.99 5.99 0 0 1 5.226 8.915.5.5 0 1 0 .872.49 6.99 6.99 0 0 0-6.098-10.405H9.959a6.989 6.989 0 0 0 0 13.977h1.54a.5.5 0 1 0 0-1h-1.54a5.989 5.989 0 0 1 0-11.977'/%3e%3cpath d='M22.063 9.013h-1.54a.5.5 0 0 0 0 1h1.54a5.989 5.989 0 0 1 0 11.977h-2.417a5.99 5.99 0 0 1-5.227-8.915.5.5 0 1 0-.871-.49 6.99 6.99 0 0 0 6.097 10.405h2.417a6.989 6.989 0 0 0 0-13.977'/%3e%3c/svg%3e";
|
|
2857
|
+
|
|
2858
|
+
/**
|
|
2859
|
+
* Do not edit directly
|
|
2860
|
+
* Generated file
|
|
2861
|
+
*/
|
|
2862
|
+
|
|
2863
|
+
const BtIconTickAlt2Px =
|
|
2864
|
+
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath fill='currentColor' d='m13.5 21.914-4.707-4.707a1 1 0 0 1 0-1.414 1.024 1.024 0 0 1 1.414 0l3.293 3.293 8.293-8.293a1 1 0 1 1 1.414 1.414Z'/%3e%3c/svg%3e";
|
|
2805
2865
|
|
|
2806
2866
|
/**
|
|
2807
2867
|
* Use `PromoListing` to give supporting information about a page or proposition in the form of the card components (`ImpactCard`, `InformationCard`, `MediaCard` and `TypographyCard`).
|
|
2808
2868
|
*/
|
|
2809
2869
|
var PromoListing = function (_a) {
|
|
2810
|
-
var heading = _a.heading, content = _a.content, _b = _a.isCarousel, isCarousel = _b === void 0 ? false : _b, cards = _a.cards, headingLevel = _a.headingLevel, _c = _a.columns, columns = _c === void 0 ? "2" : _c;
|
|
2811
|
-
var
|
|
2870
|
+
var heading = _a.heading, content = _a.content, id = _a.id, _b = _a.isCarousel, isCarousel = _b === void 0 ? false : _b, cards = _a.cards, headingLevel = _a.headingLevel, isHeadingWordWrap = _a.isHeadingWordWrap, _c = _a.columns, columns = _c === void 0 ? "2" : _c, _d = _a.button, button = _d === void 0 ? { buttonStyle: "secondary" } : _d, overlineHeadingLevel = _a.overlineHeadingLevel, overlineLabel = _a.overlineLabel;
|
|
2871
|
+
var componentId = React.useId();
|
|
2812
2872
|
var isMinWidthArcBreakpointL = useMediaQuery.useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsL, ")"));
|
|
2813
2873
|
var isMinWidthArcBreakpointM = useMediaQuery.useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsM, ")"));
|
|
2814
2874
|
var cardAspectRatios = columns === "3" ? "10-16" : "3-4";
|
|
@@ -2839,46 +2899,52 @@ var PromoListing = function (_a) {
|
|
|
2839
2899
|
var CardComponent = CARD_COMPONENTS[card.type];
|
|
2840
2900
|
return React.createElement(CardComponent, __assign({}, card, commonProps));
|
|
2841
2901
|
};
|
|
2842
|
-
return (React.createElement("div", { className: styles$
|
|
2843
|
-
React.createElement(
|
|
2844
|
-
|
|
2845
|
-
React.createElement(
|
|
2846
|
-
|
|
2902
|
+
return (React.createElement("div", { className: styles$a.PromoListing },
|
|
2903
|
+
overlineLabel && (React.createElement(React.Fragment, null,
|
|
2904
|
+
React.createElement(Heading.Heading, { level: overlineHeadingLevel, fontStyle: "overline" }, overlineLabel),
|
|
2905
|
+
React.createElement(VerticalSpace.VerticalSpace, { size: "12" }))),
|
|
2906
|
+
React.createElement(SectionHeading, { isPadded: true, id: id, "data-testid": "PromoListing-header", heading: heading, isHeadingWordWrap: isHeadingWordWrap, headingLevel: headingLevel, content: content }),
|
|
2907
|
+
button.label && (React.createElement(React.Fragment, null,
|
|
2908
|
+
React.createElement(ButtonV2.ButtonV2, __assign({}, button, { icon: button.buttonStyle == "compact" ? BtIconArrowRightFill : undefined, size: "m" })),
|
|
2909
|
+
React.createElement(VerticalSpace.VerticalSpace, { size: "40" }))),
|
|
2910
|
+
isCarousel && !isMinWidthArcBreakpointL ? (React.createElement("div", { className: styles$a.promolistingCarouselWrapper },
|
|
2911
|
+
React.createElement(Carousel.Carousel, { overflow: "visible", itemsPerSlide: 1, behavior: "adaptive", withGutter: false }, cards === null || cards === void 0 ? void 0 : cards.map(function (card, i) { return (React.createElement("div", { key: "promolist-carousel-card-".concat(componentId, "-").concat(i), className: (styles$a.cardWrapperCarousel) }, getCard(card))); })))) : (React.createElement("ul", { className: classNames(styles$a.cardGrid, styles$a["columns-".concat(columns)]) }, cards === null || cards === void 0 ? void 0 : cards.map(function (card, index) { return (React.createElement("li", { key: "promolist-card--".concat(componentId, "-").concat(index) },
|
|
2912
|
+
React.createElement("div", { "data-testid": "promoList-card".concat(index), className: styles$a.cardWrapper }, getCard(card)))); })))));
|
|
2847
2913
|
};
|
|
2848
2914
|
|
|
2849
|
-
var styles$
|
|
2915
|
+
var styles$9 = {"blockQuote":"Quote-module_blockQuote__STj-z","quoteContent":"Quote-module_quoteContent__kWc51","quoteDefault":"Quote-module_quoteDefault__tU5db","quoteSecondary":"Quote-module_quoteSecondary__3Rk3f","quoteIcon":"Quote-module_quoteIcon__HK1TV"};
|
|
2850
2916
|
|
|
2851
2917
|
/**
|
|
2852
2918
|
* Use `Quote` where a quote or testimonial from an existing customer or stakeholder would help build trust and credibility with potential new customers. It's commonly used on product pages where customers would learn about a product or service that we offer.*/
|
|
2853
2919
|
var Quote = function (_a) {
|
|
2854
2920
|
var author = _a.author, _b = _a.styling, styling = _b === void 0 ? "Default" : _b, content = _a.content, citeUrl = _a.citeUrl, props = __rest(_a, ["author", "styling", "content", "citeUrl"]);
|
|
2855
|
-
return (React.createElement("div", __assign({ className: "community-component--quote", "data-testid": "quote-test" },
|
|
2856
|
-
React.createElement("blockquote", { "data-testid": "style-test", className: classNames(styles$
|
|
2857
|
-
React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 100 77", className: styles$
|
|
2921
|
+
return (React.createElement("div", __assign({ className: "community-component--quote", "data-testid": "quote-test" }, filterAttrs(props)),
|
|
2922
|
+
React.createElement("blockquote", { "data-testid": "style-test", className: classNames(styles$9.blockQuote, styles$9["quote".concat(styling)]), cite: citeUrl },
|
|
2923
|
+
React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 100 77", className: styles$9.quoteIcon, "aria-hidden": "true" },
|
|
2858
2924
|
React.createElement("path", { d: "M21.8085 76.4706C15.9574 76.4706 10.8156 74.2732 6.38298 69.8783C2.12766 65.4834 0 58.979 0 50.3651C0 40.5206 3.10284 31.1156 9.30851 22.1501C15.6915 13.1846 25.3546 5.80122 38.2979 0L44.1489 11.3387C37.4113 14.3272 31.7376 18.0189 27.1277 22.4138C22.5177 26.6329 19.6809 31.4672 18.617 36.9168C19.8582 36.741 21.0106 36.6531 22.0745 36.6531C27.7482 36.6531 32.4468 38.499 36.1702 42.1907C40.0709 45.8824 42.0213 50.7167 42.0213 56.6937C42.0213 62.4949 39.9823 67.2414 35.9043 70.9331C32.0035 74.6247 27.305 76.4706 21.8085 76.4706ZM77.6596 76.4706C71.8085 76.4706 66.6667 74.2732 62.234 69.8783C57.9787 65.4834 55.8511 58.979 55.8511 50.3651C55.8511 40.5206 58.9539 31.1156 65.1596 22.1501C71.5425 13.1846 81.2057 5.80122 94.1489 0L100 11.3387C93.2624 14.3272 87.5886 18.0189 82.9787 22.4138C78.3688 26.6329 75.5319 31.4672 74.4681 36.9168C75.7092 36.741 76.8617 36.6531 77.9255 36.6531C83.5993 36.6531 88.2979 38.499 92.0213 42.1907C95.922 45.8824 97.8723 50.7167 97.8723 56.6937C97.8723 62.4949 95.8333 67.2414 91.7553 70.9331C87.8546 74.6247 83.156 76.4706 77.6596 76.4706Z" })),
|
|
2859
|
-
React.createElement("p", { className: styles$
|
|
2925
|
+
React.createElement("p", { className: styles$9.quoteContent }, content)),
|
|
2860
2926
|
author && (React.createElement(Author, { name: author.name, title: author.title, avatar: author.avatar }))));
|
|
2861
2927
|
};
|
|
2862
2928
|
|
|
2863
|
-
var styles$
|
|
2929
|
+
var styles$8 = {"ruleContainer":"Summary-module_ruleContainer__ydWlG","row":"Summary-module_row__SKV--"};
|
|
2864
2930
|
|
|
2865
2931
|
var Summary = function (_a) {
|
|
2866
2932
|
var content = _a.content, _b = _a.noBorder, noBorder = _b === void 0 ? false : _b, _c = _a.headingLevel, headingLevel = _c === void 0 ? "3" : _c;
|
|
2867
2933
|
var isMinWidthArcBreakpointM = useMediaQuery.useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsM, ")"));
|
|
2868
2934
|
return (React.createElement(Box.Box, __assign({ isBorderRadius: true }, (!noBorder ? { borderWidth: "thin" } : { elevationLevel: "1" }), { padding: "24" }),
|
|
2869
|
-
React.createElement("div", { className: styles$
|
|
2935
|
+
React.createElement("div", { className: styles$8.row }, content.map(function (_a, i) {
|
|
2870
2936
|
var heading = _a.heading, text = _a.text;
|
|
2871
2937
|
return (React.createElement(React.Fragment, null,
|
|
2872
|
-
React.createElement("div", { className: styles$
|
|
2938
|
+
React.createElement("div", { className: styles$8.col },
|
|
2873
2939
|
React.createElement(Heading.Heading, { size: "s", level: headingLevel }, heading),
|
|
2874
2940
|
React.createElement(VerticalSpace.VerticalSpace, { size: "8" }),
|
|
2875
2941
|
React.createElement(Text.Text, { size: "s" }, text)),
|
|
2876
|
-
i !== content.length - 1 && (React.createElement("div", { className: styles$
|
|
2942
|
+
i !== content.length - 1 && (React.createElement("div", { className: styles$8.ruleContainer },
|
|
2877
2943
|
React.createElement(Rule.Rule, { orientation: isMinWidthArcBreakpointM ? "vertical" : "horizontal" })))));
|
|
2878
2944
|
}))));
|
|
2879
2945
|
};
|
|
2880
2946
|
|
|
2881
|
-
var styles$
|
|
2947
|
+
var styles$7 = {"list":"Statistics-module_list__BI-eQ","mutedText":"Statistics-module_mutedText__MR1JM","statWrapper":"Statistics-module_statWrapper__83OnM"};
|
|
2882
2948
|
|
|
2883
2949
|
var getLinkProps = function (link) {
|
|
2884
2950
|
return link.openInNewTab
|
|
@@ -2890,16 +2956,16 @@ var getLinkProps = function (link) {
|
|
|
2890
2956
|
};
|
|
2891
2957
|
|
|
2892
2958
|
var Statistics = function (_a) {
|
|
2893
|
-
var headingLevel = _a.headingLevel, heading = _a.heading, content = _a.content, statistics = _a.statistics;
|
|
2894
|
-
var
|
|
2959
|
+
var id = _a.id, isHeadingWordWrap = _a.isHeadingWordWrap, headingLevel = _a.headingLevel, heading = _a.heading, content = _a.content, statistics = _a.statistics;
|
|
2960
|
+
var componentId = React.useId();
|
|
2895
2961
|
return (React.createElement(Columns.Columns, null,
|
|
2896
2962
|
React.createElement(Columns.ColumnsCol, { spanM: 9 },
|
|
2897
|
-
React.createElement(SectionHeading, { heading: heading, headingLevel: headingLevel, content: content }),
|
|
2963
|
+
React.createElement(SectionHeading, { id: id, heading: heading, isHeadingWordWrap: isHeadingWordWrap, headingLevel: headingLevel, content: content }),
|
|
2898
2964
|
React.createElement(VerticalSpace.VerticalSpace, { size: "16" })),
|
|
2899
2965
|
React.createElement(Columns.ColumnsCol, { spanL: 9 },
|
|
2900
|
-
React.createElement("ul", { className: styles$
|
|
2966
|
+
React.createElement("ul", { className: styles$7.list }, statistics.map(function (_a, i) {
|
|
2901
2967
|
var stat = _a.stat, copy = _a.copy, link = _a.link, source = _a.source, sourceUrl = _a.sourceUrl;
|
|
2902
|
-
return (React.createElement("li", { key: "statistic-".concat(
|
|
2968
|
+
return (React.createElement("li", { key: "statistic-".concat(componentId, "-").concat(i) },
|
|
2903
2969
|
i !== 0 && (React.createElement(React.Fragment, null,
|
|
2904
2970
|
React.createElement(VerticalSpace.VerticalSpace, { size: "24", sizeS: "32", sizeXL: "40" }),
|
|
2905
2971
|
React.createElement(Rule.Rule, null),
|
|
@@ -2907,7 +2973,7 @@ var Statistics = function (_a) {
|
|
|
2907
2973
|
React.createElement(Columns.Columns, null,
|
|
2908
2974
|
React.createElement(Columns.ColumnsCol, { spanS: 6, spanM: 8 },
|
|
2909
2975
|
React.createElement(Align.Align, { vertical: "center" },
|
|
2910
|
-
React.createElement("div", { className: styles$
|
|
2976
|
+
React.createElement("div", { className: styles$7.statWrapper },
|
|
2911
2977
|
React.createElement(Heading.Heading, { color: "brand", size: "xxl" }, stat)))),
|
|
2912
2978
|
React.createElement(Columns.ColumnsCol, { spanS: 6, spanM: 4 },
|
|
2913
2979
|
React.createElement(Text.Text, null, copy),
|
|
@@ -2917,66 +2983,35 @@ var Statistics = function (_a) {
|
|
|
2917
2983
|
source && (React.createElement(React.Fragment, null,
|
|
2918
2984
|
React.createElement(VerticalSpace.VerticalSpace, { size: "12" }),
|
|
2919
2985
|
React.createElement(Text.Text, { size: "xs" },
|
|
2920
|
-
React.createElement("span", { className: styles$
|
|
2986
|
+
React.createElement("span", { className: styles$7.mutedText }, source)))),
|
|
2921
2987
|
sourceUrl && (React.createElement(Text.Text, { size: "xs" },
|
|
2922
|
-
React.createElement("a", { className: styles$
|
|
2988
|
+
React.createElement("a", { className: styles$7.mutedText, href: sourceUrl }, sourceUrl)))))));
|
|
2923
2989
|
})))));
|
|
2924
2990
|
};
|
|
2925
2991
|
|
|
2926
|
-
var styles$
|
|
2992
|
+
var styles$6 = {"bannerWithTabsHeadingCentered":"BannerWithTabs-module_bannerWithTabsHeadingCentered__upqEO"};
|
|
2927
2993
|
|
|
2928
2994
|
var BannerWithTabs = function (_a) {
|
|
2929
2995
|
var _b;
|
|
2930
|
-
var tabs = _a.tabs, defaultValue = _a.defaultValue, heading = _a.heading, content = _a.content, _c = _a.alignTypography, alignTypography = _c === void 0 ? "left" : _c, minHeight = _a.minHeight, minHeightM = _a.minHeightM;
|
|
2996
|
+
var tabs = _a.tabs, defaultValue = _a.defaultValue, heading = _a.heading, content = _a.content, id = _a.id, isHeadingWordWrap = _a.isHeadingWordWrap, _c = _a.alignTypography, alignTypography = _c === void 0 ? "left" : _c, minHeight = _a.minHeight, minHeightM = _a.minHeightM;
|
|
2931
2997
|
return (React.createElement(React.Fragment, null,
|
|
2932
2998
|
React.createElement("div", { className: classNames((_b = {},
|
|
2933
|
-
_b[styles$
|
|
2999
|
+
_b[styles$6.bannerWithTabsHeadingCentered] = alignTypography === "center",
|
|
2934
3000
|
_b)) },
|
|
2935
|
-
React.createElement(SectionHeading, { heading: heading, content: content, isPadded: alignTypography === "left" ? true : false })),
|
|
3001
|
+
React.createElement(SectionHeading, { id: id, isHeadingWordWrap: isHeadingWordWrap, heading: heading, content: content, isPadded: alignTypography === "left" ? true : false })),
|
|
2936
3002
|
React.createElement(TabbedBanner.TabbedBanner, { minHeight: minHeight, minHeightM: minHeightM, tabs: tabs, defaultValue: defaultValue })));
|
|
2937
3003
|
};
|
|
2938
3004
|
|
|
2939
|
-
|
|
2940
|
-
* Do not edit directly
|
|
2941
|
-
* Generated file
|
|
2942
|
-
*/
|
|
2943
|
-
|
|
2944
|
-
const ArcIconSocialLinkedin =
|
|
2945
|
-
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath fill='currentColor' d='M25.856 25.86H21.71v-6.496c0-1.55-.032-3.544-2.161-3.544-2.162 0-2.492 1.686-2.492 3.43v6.61H12.91V12.5h3.983v1.821h.053c.557-1.05 1.91-2.158 3.932-2.158 4.201 0 4.978 2.765 4.978 6.364v7.334zM8.226 10.673a2.406 2.406 0 0 1-2.406-2.41 2.408 2.408 0 1 1 2.407 2.41zm2.08 15.189H6.148V12.5h4.158v13.36zM27.929 2H4.066C2.924 2 2 2.903 2 4.017v23.966C2 29.098 2.924 30 4.066 30h23.86c1.14 0 2.074-.902 2.074-2.017V4.017C30 2.903 29.067 2 27.926 2z'/%3e%3c/svg%3e";
|
|
2946
|
-
|
|
2947
|
-
/**
|
|
2948
|
-
* Do not edit directly
|
|
2949
|
-
* Generated file
|
|
2950
|
-
*/
|
|
2951
|
-
|
|
2952
|
-
const ArcIconSocialX =
|
|
2953
|
-
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath fill='currentColor' d='M24.034 3h4.278l-9.343 10.639L30 28.103h-8.64l-6.781-8.768-7.739 8.768H2.563L12.58 16.738 2 3h8.864l6.107 8.014zm-1.491 22.562h2.364L9.57 5.402H7.009z'/%3e%3c/svg%3e";
|
|
2954
|
-
|
|
2955
|
-
/**
|
|
2956
|
-
* Do not edit directly
|
|
2957
|
-
* Generated file
|
|
2958
|
-
*/
|
|
2959
|
-
|
|
2960
|
-
const BtIconLink =
|
|
2961
|
-
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath d='M9.959 10.013h2.417a5.99 5.99 0 0 1 5.226 8.915.5.5 0 1 0 .872.49 6.99 6.99 0 0 0-6.098-10.405H9.959a6.989 6.989 0 0 0 0 13.977h1.54a.5.5 0 1 0 0-1h-1.54a5.989 5.989 0 0 1 0-11.977'/%3e%3cpath d='M22.063 9.013h-1.54a.5.5 0 0 0 0 1h1.54a5.989 5.989 0 0 1 0 11.977h-2.417a5.99 5.99 0 0 1-5.227-8.915.5.5 0 1 0-.871-.49 6.99 6.99 0 0 0 6.097 10.405h2.417a6.989 6.989 0 0 0 0-13.977'/%3e%3c/svg%3e";
|
|
2962
|
-
|
|
2963
|
-
/**
|
|
2964
|
-
* Do not edit directly
|
|
2965
|
-
* Generated file
|
|
2966
|
-
*/
|
|
2967
|
-
|
|
2968
|
-
const BtIconEmailUnread =
|
|
2969
|
-
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath fill='currentColor' d='M29 6H3a1 1 0 0 0-1 1v18a1 1 0 0 0 1 1h26a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1m0 1v1.716l-11 7.616a3.52 3.52 0 0 1-3.984 0L3 8.705V7Zm0 2.933v12.15l-8.775-6.075Zm-17.208 6.075L3 22.095V9.922ZM3 25v-1.689l9.67-6.695.777.538a4.52 4.52 0 0 0 5.123 0l.776-.538L29 23.3V25Z'/%3e%3c/svg%3e";
|
|
2970
|
-
|
|
2971
|
-
var styles$2 = {"tagGroup":"ArticleSidebar-module_tagGroup__rIPQc","textContent":"ArticleSidebar-module_textContent__3nCfG","shareButtonContainer":"ArticleSidebar-module_shareButtonContainer__iAfHL","shareButton":"ArticleSidebar-module_shareButton__rb-1E"};
|
|
3005
|
+
var styles$5 = {"tagGroup":"ArticleSidebar-module_tagGroup__rIPQc","textContent":"ArticleSidebar-module_textContent__3nCfG","additionalContentContainer":"ArticleSidebar-module_additionalContentContainer__91L4n","shareButtonContainer":"ArticleSidebar-module_shareButtonContainer__iAfHL","shareButton":"ArticleSidebar-module_shareButton__rb-1E"};
|
|
2972
3006
|
|
|
2973
3007
|
/**
|
|
2974
3008
|
* Use `ArticleSidebar` to provide additional information about the article.
|
|
2975
3009
|
*/
|
|
2976
3010
|
var ArticleSidebar = function (_a) {
|
|
3011
|
+
var _b;
|
|
2977
3012
|
var author = _a.author, aboutSection = _a.aboutSection, topics = _a.topics, share = _a.share, additionalContent = _a.additionalContent, linkSection = _a.linkSection;
|
|
2978
3013
|
var id = React.useId();
|
|
2979
|
-
var
|
|
3014
|
+
var _c = React.useState(false), showToast = _c[0], setShowToast = _c[1];
|
|
2980
3015
|
var url = location.href;
|
|
2981
3016
|
var copyTextToClipBoard = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
2982
3017
|
return __generator(this, function (_a) {
|
|
@@ -2989,90 +3024,98 @@ var ArticleSidebar = function (_a) {
|
|
|
2989
3024
|
}
|
|
2990
3025
|
});
|
|
2991
3026
|
}); };
|
|
2992
|
-
var shareButtons =
|
|
2993
|
-
|
|
2994
|
-
isButton: true,
|
|
2995
|
-
label: "Copy url to clipboard",
|
|
2996
|
-
onClick: copyTextToClipBoard,
|
|
2997
|
-
icon: BtIconLink,
|
|
2998
|
-
},
|
|
2999
|
-
{
|
|
3000
|
-
label: "Share by email",
|
|
3001
|
-
href: "mailto:?subject=".concat(share.articleTitle, "&body=").concat(url),
|
|
3002
|
-
icon: BtIconEmailUnread,
|
|
3003
|
-
}
|
|
3004
|
-
], (share.linkedin
|
|
3005
|
-
? [
|
|
3027
|
+
var shareButtons = share
|
|
3028
|
+
? __spreadArray(__spreadArray([
|
|
3006
3029
|
{
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
icon:
|
|
3030
|
+
isButton: true,
|
|
3031
|
+
onClick: copyTextToClipBoard,
|
|
3032
|
+
icon: BtIconLink,
|
|
3033
|
+
ariaLabel: share.clipboardAriaLabel || "Copy url to clipboard",
|
|
3010
3034
|
},
|
|
3011
|
-
]
|
|
3012
|
-
: []), true), (share.x
|
|
3013
|
-
? [
|
|
3014
3035
|
{
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
}
|
|
3019
|
-
]
|
|
3020
|
-
|
|
3036
|
+
href: "mailto:?subject=".concat(share.articleTitle, "&body=").concat(url),
|
|
3037
|
+
icon: BtIconEmailUnread,
|
|
3038
|
+
ariaLabel: share.emailAriaLabel || "Share by email",
|
|
3039
|
+
}
|
|
3040
|
+
], (share.linkedin
|
|
3041
|
+
? [
|
|
3042
|
+
{
|
|
3043
|
+
href: "https://www.linkedin.com/sharing/share-offsite/?url=".concat(url),
|
|
3044
|
+
icon: ArcIconSocialLinkedin,
|
|
3045
|
+
ariaLabel: share.linkedInAriaLabel || "Share on LinkedIn",
|
|
3046
|
+
},
|
|
3047
|
+
]
|
|
3048
|
+
: []), true), (share.x
|
|
3049
|
+
? [
|
|
3050
|
+
{
|
|
3051
|
+
href: "https://twitter.com/intent/tweet?url=".concat(url),
|
|
3052
|
+
icon: ArcIconSocialX,
|
|
3053
|
+
ariaLabel: share.xAriaLabel || "Share on x",
|
|
3054
|
+
},
|
|
3055
|
+
]
|
|
3056
|
+
: []), true) : [];
|
|
3057
|
+
var hasTopContent = Boolean(author || aboutSection || additionalContent);
|
|
3058
|
+
var hasBottomContent = Boolean(linkSection || topics || share);
|
|
3021
3059
|
return (React.createElement(React.Fragment, null,
|
|
3022
|
-
React.createElement("div", { className:
|
|
3060
|
+
React.createElement("div", { className: classNames((_b = {},
|
|
3061
|
+
_b[styles$5.textContent] = hasTopContent,
|
|
3062
|
+
_b)) },
|
|
3023
3063
|
author && (React.createElement(React.Fragment, null,
|
|
3024
3064
|
React.createElement(Author, __assign({}, author, { avatar: __assign(__assign({}, author.avatar), { size: "xl" }) })))),
|
|
3025
3065
|
aboutSection && (React.createElement(React.Fragment, null,
|
|
3026
|
-
React.createElement(VerticalSpace.VerticalSpace, { size: "32" }),
|
|
3066
|
+
author && React.createElement(VerticalSpace.VerticalSpace, { size: "32" }),
|
|
3027
3067
|
React.createElement(Heading.Heading, { level: aboutSection.headingLevel }, aboutSection.heading),
|
|
3028
3068
|
React.createElement(VerticalSpace.VerticalSpace, { size: "16" }),
|
|
3029
3069
|
React.createElement(Text.Text, { size: "s" }, aboutSection.content))),
|
|
3030
|
-
additionalContent &&
|
|
3031
|
-
|
|
3070
|
+
additionalContent && (React.createElement(React.Fragment, null,
|
|
3071
|
+
(author || aboutSection) && React.createElement(VerticalSpace.VerticalSpace, { size: "16" }),
|
|
3072
|
+
React.createElement("div", { className: styles$5.additionalContentContainer }, additionalContent.map(function (_a) {
|
|
3032
3073
|
var heading = _a.heading, headingLevel = _a.headingLevel, content = _a.content;
|
|
3033
|
-
return (React.createElement(
|
|
3034
|
-
React.createElement(VerticalSpace.VerticalSpace, { size: "16" }),
|
|
3074
|
+
return (React.createElement("div", { key: "".concat(id, "-").concat(heading) },
|
|
3035
3075
|
React.createElement(Heading.Heading, { level: headingLevel, size: "xxs" }, heading),
|
|
3036
3076
|
React.createElement(Text.Text, { size: "s" }, content)));
|
|
3037
|
-
})),
|
|
3038
|
-
|
|
3077
|
+
}))))),
|
|
3078
|
+
hasTopContent && hasBottomContent && (React.createElement("div", { "data-testid": "text-content-rule" },
|
|
3039
3079
|
React.createElement(VerticalSpace.VerticalSpace, { size: "32" }),
|
|
3040
3080
|
React.createElement(Rule.Rule, null),
|
|
3041
3081
|
React.createElement(VerticalSpace.VerticalSpace, { size: "32" }))),
|
|
3042
|
-
React.createElement(
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
React.createElement(
|
|
3047
|
-
|
|
3048
|
-
React.createElement(
|
|
3049
|
-
|
|
3050
|
-
|
|
3082
|
+
linkSection && (React.createElement(React.Fragment, null,
|
|
3083
|
+
React.createElement(Heading.Heading, { level: linkSection.headingLevel }, linkSection.heading),
|
|
3084
|
+
linkSection.links.map(function (_a) {
|
|
3085
|
+
var text = _a.text, url = _a.url, ariaLabel = _a.ariaLabel;
|
|
3086
|
+
return (React.createElement(React.Fragment, null,
|
|
3087
|
+
React.createElement(VerticalSpace.VerticalSpace, { size: "8" }),
|
|
3088
|
+
React.createElement("div", { key: "".concat(id, "-").concat(url) },
|
|
3089
|
+
React.createElement(Link.Link, { "aria-label": ariaLabel, size: "s", href: url }, text))));
|
|
3090
|
+
}))),
|
|
3051
3091
|
topics && (React.createElement(React.Fragment, null,
|
|
3092
|
+
linkSection && React.createElement(VerticalSpace.VerticalSpace, { size: "32" }),
|
|
3052
3093
|
React.createElement(Heading.Heading, { level: topics.headingLevel }, topics.heading),
|
|
3053
3094
|
React.createElement(VerticalSpace.VerticalSpace, { size: "16" }),
|
|
3054
|
-
React.createElement("div", { className: styles$
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3095
|
+
React.createElement("div", { className: styles$5.tagGroup }, topics.tags.map(function (tag) { return (React.createElement(Tag.Tag, __assign({ key: "".concat(id, "-").concat(tag.title) }, tag))); })))),
|
|
3096
|
+
share && (React.createElement(React.Fragment, null,
|
|
3097
|
+
(linkSection || topics) && (React.createElement("div", { "data-testid": "links-topics-content-rule" },
|
|
3098
|
+
React.createElement(VerticalSpace.VerticalSpace, { size: "32" }),
|
|
3099
|
+
React.createElement(Rule.Rule, null),
|
|
3100
|
+
React.createElement(VerticalSpace.VerticalSpace, { size: "32" }))),
|
|
3101
|
+
React.createElement(Heading.Heading, { level: share.headingLevel }, share.heading),
|
|
3102
|
+
React.createElement(VerticalSpace.VerticalSpace, { size: "16" }),
|
|
3103
|
+
React.createElement("div", { className: styles$5.shareButtonContainer }, shareButtons.map(function (_a) {
|
|
3104
|
+
var isButton = _a.isButton, ariaLabel = _a.ariaLabel, href = _a.href, icon = _a.icon, onClick = _a.onClick;
|
|
3105
|
+
return (React.createElement("a", { key: "".concat(id, "-").concat(ariaLabel), role: isButton ? "button" : undefined, target: "_blank", rel: "noreferrer", className: styles$5.shareButton, "aria-label": ariaLabel, href: href, onClick: isButton ? onClick : undefined },
|
|
3106
|
+
React.createElement(Icon.Icon, { icon: icon, size: 24 })));
|
|
3107
|
+
})))),
|
|
3065
3108
|
React.createElement(Toast.Toast, null,
|
|
3066
3109
|
React.createElement(Toast.ToastNotification, { status: "success", title: "Copied to clipboard", isOpen: showToast, onOpenChange: function () { return setShowToast(false); } }))));
|
|
3067
3110
|
};
|
|
3068
3111
|
|
|
3069
|
-
var styles$
|
|
3112
|
+
var styles$4 = {"product-navigation-grid":"ProductNavigation-module_product-navigation-grid__RzFq8","productNavigation-skipLink":"ProductNavigation-module_productNavigation-skipLink__fy8ZJ"};
|
|
3070
3113
|
|
|
3071
3114
|
/**
|
|
3072
3115
|
* Use `ProductNavigation` to give a collection of product information cards collected within a grid that has optional show/hide capability
|
|
3073
3116
|
*/
|
|
3074
3117
|
var ProductNavigation = function (_a) {
|
|
3075
|
-
var heading = _a.heading, headingLevel = _a.headingLevel, content = _a.content, _b = _a.hideButton, hideButton = _b === void 0 ? false : _b, productList = _a.productList, _c = _a.defaultExpanded, defaultExpanded = _c === void 0 ? false : _c, minHeight = _a.minHeight, _d = _a.cardsToDisplay, cardsToDisplay = _d === void 0 ? 3 : _d, _e = _a.listIncrement, listIncrement = _e === void 0 ? 6 : _e, onClickMore = _a.onClickMore, onClickLess = _a.onClickLess, _f = _a.hideShowLess, hideShowLess = _f === void 0 ? false : _f, isLoading = _a.isLoading, image = _a.image, props = __rest(_a, ["heading", "headingLevel", "content", "hideButton", "productList", "defaultExpanded", "minHeight", "cardsToDisplay", "listIncrement", "onClickMore", "onClickLess", "hideShowLess", "isLoading", "image"]);
|
|
3118
|
+
var heading = _a.heading, id = _a.id, headingLevel = _a.headingLevel, isHeadingWordWrap = _a.isHeadingWordWrap, content = _a.content, _b = _a.hideButton, hideButton = _b === void 0 ? false : _b, productList = _a.productList, _c = _a.defaultExpanded, defaultExpanded = _c === void 0 ? false : _c, minHeight = _a.minHeight, _d = _a.cardsToDisplay, cardsToDisplay = _d === void 0 ? 3 : _d, _e = _a.listIncrement, listIncrement = _e === void 0 ? 6 : _e, onClickMore = _a.onClickMore, onClickLess = _a.onClickLess, _f = _a.hideShowLess, hideShowLess = _f === void 0 ? false : _f, isLoading = _a.isLoading, image = _a.image, props = __rest(_a, ["heading", "id", "headingLevel", "isHeadingWordWrap", "content", "hideButton", "productList", "defaultExpanded", "minHeight", "cardsToDisplay", "listIncrement", "onClickMore", "onClickLess", "hideShowLess", "isLoading", "image"]);
|
|
3076
3119
|
var _g = React.useState(false), hideLessButton = _g[0], setHideLessButton = _g[1];
|
|
3077
3120
|
var _h = React.useState(cardsToDisplay), skipLinkCard = _h[0], setSkipLinkCard = _h[1];
|
|
3078
3121
|
var _j = React.useState(productList.slice(0, cardsToDisplay)), displayList = _j[0], setDisplayList = _j[1];
|
|
@@ -3108,15 +3151,12 @@ var ProductNavigation = function (_a) {
|
|
|
3108
3151
|
}
|
|
3109
3152
|
};
|
|
3110
3153
|
var isMinWidthArcBreakpointS = useMediaQuery.useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsS, ")"));
|
|
3111
|
-
return (React.createElement("div", __assign({},
|
|
3112
|
-
React.createElement(SectionHeading, { isPadded: true, "data-testid": "ProductNavigation-header", heading: heading, headingLevel: headingLevel, content: content, image: image }),
|
|
3113
|
-
React.createElement("ul", { className: classNames(styles$
|
|
3114
|
-
var
|
|
3154
|
+
return (React.createElement("div", __assign({}, filterAttrs(props)),
|
|
3155
|
+
React.createElement(SectionHeading, { isPadded: true, id: id, "data-testid": "ProductNavigation-header", heading: heading, headingLevel: headingLevel, isHeadingWordWrap: isHeadingWordWrap, content: content, image: image }),
|
|
3156
|
+
React.createElement("ul", { className: classNames(styles$4["product-navigation-grid"]) }, displayList === null || displayList === void 0 ? void 0 : displayList.map(function (cardProps, i) {
|
|
3157
|
+
var _a;
|
|
3115
3158
|
return (React.createElement("li", { key: "displayList-".concat(i), tabIndex: -1, ref: i === skipLinkCard ? cardRef : undefined, "data-cy": "list-item-".concat(i) },
|
|
3116
|
-
React.createElement(InformationCard.InformationCard, {
|
|
3117
|
-
label: label,
|
|
3118
|
-
href: href,
|
|
3119
|
-
}, minHeight: minHeight, heading: heading, headingLevel: "2", text: text })));
|
|
3159
|
+
React.createElement(InformationCard.InformationCard, __assign({}, cardProps, { minHeight: minHeight !== null && minHeight !== void 0 ? minHeight : cardProps.minHeight, headingLevel: (_a = cardProps.headingLevel) !== null && _a !== void 0 ? _a : "2" }))));
|
|
3120
3160
|
})),
|
|
3121
3161
|
React.createElement(VerticalSpace.VerticalSpace, { size: "40" }),
|
|
3122
3162
|
React.createElement("div", { style: { display: "flex" } },
|
|
@@ -3124,7 +3164,7 @@ var ProductNavigation = function (_a) {
|
|
|
3124
3164
|
? "Show more"
|
|
3125
3165
|
: "Show less", buttonStyle: "secondary", onClick: clickController, isFullWidth: isMinWidthArcBreakpointS ? false : true, isLoading: isLoading })),
|
|
3126
3166
|
displayList.length > cardsToDisplay && (React.createElement(React.Fragment, null,
|
|
3127
|
-
React.createElement("div", { id: "skip-link", className: classNames(styles$
|
|
3167
|
+
React.createElement("div", { id: "skip-link", className: classNames(styles$4["productNavigation-skipLink"]), tabIndex: -1 },
|
|
3128
3168
|
React.createElement(ButtonV2.ButtonV2, { label: "Move to first new card", buttonStyle: "primary", onClick: moveFocus, isFullWidth: isMinWidthArcBreakpointS ? false : true })))),
|
|
3129
3169
|
React.createElement(VisuallyHidden.VisuallyHidden, null,
|
|
3130
3170
|
React.createElement("div", { "aria-live": "polite", id: "aria-live-region", "aria-atomic": true },
|
|
@@ -3137,18 +3177,74 @@ var ProductNavigation = function (_a) {
|
|
|
3137
3177
|
"."))))));
|
|
3138
3178
|
};
|
|
3139
3179
|
|
|
3140
|
-
var styles = {"container":"ContentInfoWidget-module_container__yaS-8","text":"ContentInfoWidget-module_text__O1BdZ","icon":"ContentInfoWidget-module_icon__LEww1"};
|
|
3180
|
+
var styles$3 = {"container":"ContentInfoWidget-module_container__yaS-8","text":"ContentInfoWidget-module_text__O1BdZ","icon":"ContentInfoWidget-module_icon__LEww1"};
|
|
3141
3181
|
|
|
3142
3182
|
var ContentInfoWidget = function (_a) {
|
|
3143
3183
|
var text = _a.text, icon = _a.icon;
|
|
3144
|
-
return (React.createElement("div", { className: styles.container },
|
|
3145
|
-
React.createElement("div", { className: styles.icon },
|
|
3184
|
+
return (React.createElement("div", { className: styles$3.container },
|
|
3185
|
+
React.createElement("div", { className: styles$3.icon },
|
|
3146
3186
|
React.createElement(Icon.Icon, { size: 20, icon: icon })),
|
|
3147
|
-
React.createElement("div", { className: styles.text },
|
|
3187
|
+
React.createElement("div", { className: styles$3.text },
|
|
3148
3188
|
React.createElement(Text.Text, { size: "xs", tone: "muted" }, text))));
|
|
3149
3189
|
};
|
|
3150
3190
|
|
|
3191
|
+
var styles$2 = {"heroLink":"HeroLink-module_heroLink__WUqWB","heroLink-inner":"HeroLink-module_heroLink-inner__RE5i8","heroLink-label":"HeroLink-module_heroLink-label__93HPY","heroLink-icon":"HeroLink-module_heroLink-icon__l7o4U","heroLink--emptyLabel":"HeroLink-module_heroLink--emptyLabel__XY2sa"};
|
|
3192
|
+
|
|
3193
|
+
/**
|
|
3194
|
+
* Pill-style HeroLink component with default and hover states
|
|
3195
|
+
*/
|
|
3196
|
+
var HeroLink = function (_a) {
|
|
3197
|
+
var _b;
|
|
3198
|
+
var label = _a.label, onClick = _a.onClick, href = _a.href, id = _a.id, rel = _a.rel, target = _a.target, ariaLabel = _a.ariaLabel, ref = _a.ref, props = __rest(_a, ["label", "onClick", "href", "id", "rel", "target", "ariaLabel", "ref"]);
|
|
3199
|
+
var HeroLinkClasses = classNames(styles$2.heroLink, (_b = {},
|
|
3200
|
+
_b[styles$2["heroLink--emptyLabel"]] = !label,
|
|
3201
|
+
_b));
|
|
3202
|
+
var commonProps = __assign({ id: id, onClick: onClick, ref: ref }, props);
|
|
3203
|
+
if (href) {
|
|
3204
|
+
return (React.createElement("a", __assign({}, commonProps, { className: HeroLinkClasses, href: href, rel: rel, "aria-label": ariaLabel, target: target }),
|
|
3205
|
+
React.createElement("span", { className: styles$2["heroLink-inner"] },
|
|
3206
|
+
label && React.createElement("span", { className: styles$2["heroLink-label"] }, label),
|
|
3207
|
+
React.createElement("span", { className: styles$2["heroLink-icon"] },
|
|
3208
|
+
React.createElement(Icon.Icon, { testId: "hero-link-icon", size: 24, icon: BtIconArrowAltRight })))));
|
|
3209
|
+
}
|
|
3210
|
+
return (React.createElement("button", __assign({}, commonProps, { className: HeroLinkClasses, "aria-label": ariaLabel }),
|
|
3211
|
+
React.createElement("span", { className: styles$2["heroLink-inner"] },
|
|
3212
|
+
label && React.createElement("span", { className: styles$2["heroLink-label"] }, label),
|
|
3213
|
+
React.createElement("span", { className: styles$2["heroLink-icon"] },
|
|
3214
|
+
React.createElement(Icon.Icon, { testId: "hero-link-icon", size: 24, icon: BtIconArrowAltRight })))));
|
|
3215
|
+
};
|
|
3216
|
+
|
|
3217
|
+
var styles$1 = {"action-tile":"ActionTile-module_action-tile__JPwGb","action-tile-content":"ActionTile-module_action-tile-content__ZkgHc","action-tile-icon":"ActionTile-module_action-tile-icon__PY1EN","action-tile-heading":"ActionTile-module_action-tile-heading__Uxdu9","action-tile--active":"ActionTile-module_action-tile--active__-aWze","action-tile-tick":"ActionTile-module_action-tile-tick__vhsJE"};
|
|
3218
|
+
|
|
3219
|
+
var ActionTile = function (_a) {
|
|
3220
|
+
var _b;
|
|
3221
|
+
var icon = _a.icon, heading = _a.heading, _c = _a.isActive, isActive = _c === void 0 ? false : _c, onClick = _a.onClick, className = _a.className, props = __rest(_a, ["icon", "heading", "isActive", "onClick", "className"]);
|
|
3222
|
+
var tileClasses = classNames(styles$1["action-tile"], (_b = {},
|
|
3223
|
+
_b[styles$1["action-tile--active"]] = isActive,
|
|
3224
|
+
_b), className);
|
|
3225
|
+
var content = (React.createElement(React.Fragment, null,
|
|
3226
|
+
React.createElement("div", { className: styles$1["action-tile-content"] },
|
|
3227
|
+
icon && (React.createElement("div", { className: styles$1["action-tile-icon"] },
|
|
3228
|
+
React.createElement(Icon.Icon, { icon: icon, size: 48 }))),
|
|
3229
|
+
React.createElement("h3", { className: styles$1["action-tile-heading"] }, heading)),
|
|
3230
|
+
isActive && (React.createElement("div", { className: styles$1["action-tile-tick"] },
|
|
3231
|
+
React.createElement(Icon.Icon, { icon: BtIconTickAlt2Px, size: 20 })))));
|
|
3232
|
+
return (React.createElement("div", __assign({ className: tileClasses, onClick: onClick }, filterAttrs(props)), content));
|
|
3233
|
+
};
|
|
3234
|
+
|
|
3235
|
+
var styles = {"link-tile":"LinkTile-module_link-tile__xVUP3","link-tile-content":"LinkTile-module_link-tile-content__H-QN8","link-tile-text":"LinkTile-module_link-tile-text__0K6zf"};
|
|
3236
|
+
|
|
3237
|
+
var LinkTile = function (_a) {
|
|
3238
|
+
var text = _a.text, href = _a.href, _b = _a.showIcon, showIcon = _b === void 0 ? true : _b, className = _a.className, props = __rest(_a, ["text", "href", "showIcon", "className"]);
|
|
3239
|
+
var Component = href ? "a" : "div";
|
|
3240
|
+
var linkProps = href ? { href: href } : {};
|
|
3241
|
+
return (React.createElement(Component, __assign({ className: classNames(styles["link-tile"], className) }, linkProps, filterAttrs(props)), text && (React.createElement("div", { className: styles["link-tile-content"] },
|
|
3242
|
+
React.createElement("span", { className: styles["link-tile-text"] }, text),
|
|
3243
|
+
showIcon && React.createElement(Icon.Icon, { icon: BtIconArrowAltRight, size: 32 })))));
|
|
3244
|
+
};
|
|
3245
|
+
|
|
3151
3246
|
exports.Accordion = Accordion;
|
|
3247
|
+
exports.ActionTile = ActionTile;
|
|
3152
3248
|
exports.ArticleSidebar = ArticleSidebar;
|
|
3153
3249
|
exports.Author = Author;
|
|
3154
3250
|
exports.BannerWithTabs = BannerWithTabs;
|
|
@@ -3157,7 +3253,9 @@ exports.CopyLead = CopyLead;
|
|
|
3157
3253
|
exports.DownloadList = DownloadList;
|
|
3158
3254
|
exports.FAQs = FAQs;
|
|
3159
3255
|
exports.FeaturePost = FeaturePost;
|
|
3256
|
+
exports.HeroLink = HeroLink;
|
|
3160
3257
|
exports.Highlights = Highlights;
|
|
3258
|
+
exports.LinkTile = LinkTile;
|
|
3161
3259
|
exports.ProductNavigation = ProductNavigation;
|
|
3162
3260
|
exports.PromoListing = PromoListing;
|
|
3163
3261
|
exports.Quote = Quote;
|