@arc-ui/community-components 3.0.0 → 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 +16 -19
- package/CHANGELOG.md +24 -0
- package/lib/Accordion/Accordion.cjs +2 -2
- package/lib/Accordion/Accordion.mjs +2 -2
- package/lib/Accordion/styles.css +1 -0
- 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-C4XdbGCu.cjs → Accordion-BCJIm1Gq.cjs} +13 -11
- 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-Ct7RuUbx.mjs → Accordion-BN_lZk6L.mjs} +13 -11
- 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 +316 -216
- 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 +314 -217
- package/lib/index.mjs.map +1 -1
- package/lib/styles.css +1 -1
- package/package.json +14 -14
- package/src/components/Accordion/Accordion.module.css +6 -0
- package/src/components/Accordion/Accordion.tsx +5 -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,84 +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
|
|
|
270
|
+
var styles$i = {"Accordion":"Accordion-module_Accordion__LsXTU"};
|
|
271
|
+
|
|
258
272
|
/**
|
|
259
273
|
* Use the `Accordion` component to package together a title, content and a number of disclosure components into one section (maximum 10).
|
|
260
274
|
*/
|
|
261
275
|
var Accordion = function (_a) {
|
|
262
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"]);
|
|
263
|
-
return (React.createElement("div", __assign({},
|
|
277
|
+
return (React.createElement("div", __assign({ className: styles$i.Accordion }, filterAttrs(props)),
|
|
264
278
|
React.createElement(AccordionHeading, { isPadded: true, id: id, "data-testid": "Accordion-header", heading: heading, headingLevel: headingLevel, headingSize: headingSize, content: content }),
|
|
265
279
|
React.createElement(AccordionDisclosureList, { disclosureList: disclosureList })));
|
|
266
280
|
};
|
|
267
281
|
|
|
268
|
-
var styles$
|
|
282
|
+
var styles$h = {"authorContent":"Author-module_authorContent__TBY7b","largeAvatar":"Author-module_largeAvatar__Vco03"};
|
|
269
283
|
|
|
270
284
|
var Author = function (_a) {
|
|
271
285
|
var name = _a.name, title = _a.title, _b = _a.avatar, avatar = _b === void 0 ? {} : _b, props = __rest(_a, ["name", "title", "avatar"]);
|
|
272
286
|
var avatarSizes = ["s", "m", "l", "xl"];
|
|
273
287
|
avatar.size = avatarSizes.includes(avatar.size || "") ? avatar.size : "m";
|
|
274
288
|
var isLargeAvatar = avatar.size === "l" || avatar.size === "xl";
|
|
275
|
-
return (React.createElement("div", __assign({},
|
|
289
|
+
return (React.createElement("div", __assign({}, filterAttrs(props)),
|
|
276
290
|
React.createElement(Grid.Grid, { isFluid: true, isGutterless: true },
|
|
277
291
|
React.createElement(Grid.GridRow, { align: "center" },
|
|
278
292
|
React.createElement(Grid.GridCol, { xs: isLargeAvatar ? 12 : "auto" },
|
|
279
|
-
React.createElement("div", { className: isLargeAvatar ? styles$
|
|
293
|
+
React.createElement("div", { className: isLargeAvatar ? styles$h.largeAvatar : undefined },
|
|
280
294
|
React.createElement(Avatar.Avatar, __assign({}, avatar)))),
|
|
281
295
|
React.createElement(Grid.GridCol, null,
|
|
282
|
-
React.createElement("div", { className: "".concat(!isLargeAvatar && styles$
|
|
296
|
+
React.createElement("div", { className: "".concat(!isLargeAvatar && styles$h.authorContent), "data-testid": "authorContent" },
|
|
283
297
|
React.createElement(Heading.Heading, { size: "xs" }, name),
|
|
284
298
|
React.createElement(Text.Text, { size: "s" }, title)))))));
|
|
285
299
|
};
|
|
286
300
|
|
|
287
301
|
/**
|
|
288
302
|
* Do not edit directly
|
|
289
|
-
* Generated on Wed,
|
|
303
|
+
* Generated on Wed, 25 Feb 2026 15:47:05 GMT
|
|
290
304
|
*/
|
|
291
305
|
var ArcSizeBreakpointsS = "636px";
|
|
292
306
|
var ArcSizeBreakpointsM = "768px";
|
|
293
307
|
var ArcSizeBreakpointsL = "1024px";
|
|
294
308
|
var ArcSizeBreakpointsXl = "1280px";
|
|
295
309
|
|
|
296
|
-
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"};
|
|
297
311
|
|
|
298
312
|
var MediaContent$1 = function (_a) {
|
|
299
|
-
var heading = _a.heading, headingLevel = _a.headingLevel, children = _a.children;
|
|
300
|
-
return (React.createElement("div", { className: styles$
|
|
301
|
-
React.createElement(Heading.Heading, { level: headingLevel, size: "xl" }, heading),
|
|
302
|
-
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 },
|
|
303
317
|
React.createElement(VerticalSpace.VerticalSpace, { size: "24" }),
|
|
304
318
|
React.createElement(Text.Text, { size: "l" }, children)))));
|
|
305
319
|
};
|
|
306
320
|
|
|
307
321
|
var Image$1 = function (_a) {
|
|
308
322
|
var sources = _a.sources, props = __rest(_a, ["sources"]);
|
|
309
|
-
return (React.createElement("div", { className: styles$
|
|
323
|
+
return (React.createElement("div", { className: styles$g.imgWrapper },
|
|
310
324
|
React.createElement(Image$2.Image, __assign({ fadeOnLoad: true }, props), sources &&
|
|
311
325
|
sources.map(function (source) { return React.createElement("source", __assign({ key: source.srcSet }, source)); }))));
|
|
312
326
|
};
|
|
313
327
|
|
|
314
328
|
var IconList = function (_a) {
|
|
315
329
|
var listItems = _a.listItems, isLgScreen = _a.isLgScreen, _b = _a.headingLevel, headingLevel = _b === void 0 ? "3" : _b;
|
|
316
|
-
return (React.createElement("ul", { className: styles$
|
|
330
|
+
return (React.createElement("ul", { className: styles$g.list }, listItems.map(function (_a) {
|
|
317
331
|
var _b;
|
|
318
332
|
var icon = _a.icon, heading = _a.heading, text = _a.text;
|
|
319
|
-
return (React.createElement("li", { key: heading, className: classNames(styles$
|
|
320
|
-
_b[styles$
|
|
333
|
+
return (React.createElement("li", { key: heading, className: classNames(styles$g.listItem, (_b = {},
|
|
334
|
+
_b[styles$g.listItemCentered] = !text,
|
|
321
335
|
_b)) },
|
|
322
|
-
React.createElement("div", { className: styles$
|
|
336
|
+
React.createElement("div", { className: styles$g.listItemIconContainer },
|
|
323
337
|
React.createElement(Icon.Icon, { color: "brand", icon: icon, size: isLgScreen ? 64 : 48 })),
|
|
324
|
-
React.createElement("div", { className: styles$
|
|
338
|
+
React.createElement("div", { className: styles$g.listItemTextContainer },
|
|
325
339
|
React.createElement(Heading.Heading, { level: headingLevel, size: "s" }, heading),
|
|
326
340
|
text && (React.createElement(React.Fragment, null,
|
|
327
341
|
React.createElement(VerticalSpace.VerticalSpace, { size: "8", sizeL: "16" }),
|
|
@@ -329,20 +343,20 @@ var IconList = function (_a) {
|
|
|
329
343
|
})));
|
|
330
344
|
};
|
|
331
345
|
|
|
332
|
-
var Button = function (props) { return (React.createElement("div", { className: styles$
|
|
346
|
+
var Button = function (props) { return (React.createElement("div", { className: styles$g.buttonContainer },
|
|
333
347
|
React.createElement(ButtonV2.ButtonV2, __assign({ isFullWidth: true, buttonStyle: "secondary" }, props)))); };
|
|
334
348
|
|
|
335
349
|
var Container = function (_a) {
|
|
336
350
|
var _b;
|
|
337
351
|
var children = _a.children, isReverseOrder = _a.isReverseOrder, type = _a.type, alignment = _a.alignment;
|
|
338
|
-
return (React.createElement("div", { "data-testid": "copy-lead-container", className: classNames(styles$
|
|
339
|
-
_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,
|
|
340
354
|
_b)) }, children));
|
|
341
355
|
};
|
|
342
356
|
|
|
343
357
|
var Column = function (_a) {
|
|
344
358
|
var children = _a.children;
|
|
345
|
-
return (React.createElement("div", { className: styles$
|
|
359
|
+
return (React.createElement("div", { className: styles$g.col }, children));
|
|
346
360
|
};
|
|
347
361
|
|
|
348
362
|
var getListHeadingLevel$1 = function (level) {
|
|
@@ -359,7 +373,7 @@ var VideoPlayer$1 = React.lazy(function () {
|
|
|
359
373
|
});
|
|
360
374
|
});
|
|
361
375
|
var MediaTemplate = function (_a) {
|
|
362
|
-
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;
|
|
363
377
|
var _c = React.useState(false), isClient = _c[0], setIsClient = _c[1];
|
|
364
378
|
var isMinWidthArcBreakpointL = useMediaQuery.useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsL, ")"));
|
|
365
379
|
var isMinWidthArcBreakpointXl = useMediaQuery.useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsXl, ")"));
|
|
@@ -370,7 +384,7 @@ var MediaTemplate = function (_a) {
|
|
|
370
384
|
return (React.createElement("div", null,
|
|
371
385
|
!isMinWidthArcBreakpointXl && (React.createElement(Columns.Columns, null,
|
|
372
386
|
React.createElement(Columns.ColumnsCol, { span: 12, spanM: 9 },
|
|
373
|
-
React.createElement(MediaContent$1, { heading: heading, headingLevel: headingLevel }, content)))),
|
|
387
|
+
React.createElement(MediaContent$1, { heading: heading, headingLevel: headingLevel, id: id, isHeadingWordWrap: isHeadingWordWrap }, content)))),
|
|
374
388
|
React.createElement(Container, { type: "media", isReverseOrder: isReverseOrder, alignment: !isMinWidthArcBreakpointXl ? "top" : "center" },
|
|
375
389
|
React.createElement(Column, null,
|
|
376
390
|
isMinWidthArcBreakpointXl && (React.createElement(MediaContent$1, { heading: heading }, content)),
|
|
@@ -382,32 +396,32 @@ var MediaTemplate = function (_a) {
|
|
|
382
396
|
image && !video && React.createElement(Image$1, __assign({}, image))))));
|
|
383
397
|
};
|
|
384
398
|
|
|
385
|
-
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"};
|
|
386
400
|
|
|
387
401
|
var SectionHeading = function (_a) {
|
|
388
402
|
var _b, _c;
|
|
389
|
-
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"]);
|
|
390
404
|
return (React.createElement("div", __assign({ className: classNames((_b = {},
|
|
391
|
-
_b[styles$
|
|
392
|
-
_b[styles$
|
|
393
|
-
_b)) },
|
|
394
|
-
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)) },
|
|
395
409
|
image && (React.createElement("div", null,
|
|
396
410
|
React.createElement(Image$2.Image, __assign({}, image, { width: 68, fit: "cover" })))),
|
|
397
|
-
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)),
|
|
398
412
|
content && (React.createElement(React.Fragment, null,
|
|
399
413
|
React.createElement(VerticalSpace.VerticalSpace, { size: "24" }),
|
|
400
414
|
React.createElement(Text.Text, { size: "l", elementType: "p" }, content)))));
|
|
401
415
|
};
|
|
402
416
|
|
|
403
417
|
var ContentTemplate = function (_a) {
|
|
404
|
-
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;
|
|
405
419
|
var isMinWidthArcBreakpointM = useMediaQuery.useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsM, ")"));
|
|
406
420
|
var isMinWidthArcBreakpointL = useMediaQuery.useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsL, ")"));
|
|
407
421
|
var listHeadingLevel = getListHeadingLevel$1(headingLevel);
|
|
408
422
|
return (React.createElement(Container, { type: "content", alignment: "top" },
|
|
409
423
|
React.createElement(Column, null,
|
|
410
|
-
React.createElement(SectionHeading, { heading: heading, headingLevel: headingLevel, content: content }),
|
|
424
|
+
React.createElement(SectionHeading, { id: id, heading: heading, headingLevel: headingLevel, isHeadingWordWrap: isHeadingWordWrap, content: content }),
|
|
411
425
|
button && isMinWidthArcBreakpointM && React.createElement(Button, __assign({}, button))),
|
|
412
426
|
React.createElement(Column, null,
|
|
413
427
|
React.createElement(IconList, { listItems: listItems, isLgScreen: isMinWidthArcBreakpointL, headingLevel: listHeadingLevel }),
|
|
@@ -418,23 +432,23 @@ var ContentTemplate = function (_a) {
|
|
|
418
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.
|
|
419
433
|
*/
|
|
420
434
|
var CopyLead = function (_a) {
|
|
421
|
-
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"]);
|
|
422
436
|
if (video || image) {
|
|
423
|
-
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))));
|
|
424
438
|
}
|
|
425
439
|
if (content) {
|
|
426
|
-
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))));
|
|
427
441
|
}
|
|
428
442
|
return null;
|
|
429
443
|
};
|
|
430
444
|
|
|
431
|
-
var styles$
|
|
445
|
+
var styles$e = {"headingContainer":"DownloadList-module_headingContainer__PNio8"};
|
|
432
446
|
|
|
433
447
|
var DownloadList = function (_a) {
|
|
434
|
-
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;
|
|
435
449
|
return (React.createElement(React.Fragment, null,
|
|
436
|
-
React.createElement("div", { className: styles$
|
|
437
|
-
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 })),
|
|
438
452
|
React.createElement(VerticalSpace.VerticalSpace, { size: "40" }),
|
|
439
453
|
downloads.map(function (props, i) { return (React.createElement(React.Fragment, null,
|
|
440
454
|
React.createElement(Download.Download, __assign({}, props)),
|
|
@@ -442,22 +456,22 @@ var DownloadList = function (_a) {
|
|
|
442
456
|
i !== downloads.length - 1 && React.createElement(VerticalSpace.VerticalSpace, { size: "16" }))); })));
|
|
443
457
|
};
|
|
444
458
|
|
|
445
|
-
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"};
|
|
446
460
|
|
|
447
461
|
var FAQs = function (_a) {
|
|
448
462
|
var _b;
|
|
449
|
-
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,
|
|
450
|
-
return (React.createElement("div", __assign({ className: styles$
|
|
451
|
-
React.createElement(SectionHeading, { heading: heading, content: content, image: image, headingLevel: headingLevel, isPadded: isPadded }),
|
|
452
|
-
type === "listWithLinks" && (React.createElement("div", { className: styles$
|
|
453
|
-
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 },
|
|
454
468
|
React.createElement(Heading.Heading, { size: "xs" }, linkListHeading)),
|
|
455
469
|
React.createElement("ul", { className: classNames((_b = {},
|
|
456
|
-
_b[styles$
|
|
457
|
-
_b[styles$
|
|
470
|
+
_b[styles$d.linkList] = true,
|
|
471
|
+
_b[styles$d["linkList--padded"]] = isPadded,
|
|
458
472
|
_b)) }, accordionData.map(function (item) {
|
|
459
473
|
var _a;
|
|
460
|
-
return (React.createElement("li", { className: styles$
|
|
474
|
+
return (React.createElement("li", { className: styles$d.linkListItem, key: item.heading },
|
|
461
475
|
React.createElement(Link.Link, { title: item.heading, href: "#".concat(item.id), onClick: function (e) {
|
|
462
476
|
e.preventDefault();
|
|
463
477
|
if (item.id) {
|
|
@@ -468,7 +482,7 @@ var FAQs = function (_a) {
|
|
|
468
482
|
}
|
|
469
483
|
} }, (_a = item.altLinkTitle) !== null && _a !== void 0 ? _a : item.heading)));
|
|
470
484
|
})))),
|
|
471
|
-
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 },
|
|
472
486
|
React.createElement(Accordion, { id: item.id, heading: item.heading, headingLevel: item.headingLevel, content: item.content, disclosureList: item.disclosureList, headingSize: "m" }),
|
|
473
487
|
React.createElement(VerticalSpace.VerticalSpace, { size: "48", sizeL: "64" }))); }))),
|
|
474
488
|
type === "tabs" && (React.createElement(Tabs.Tabs, { defaultValue: accordionData[0].heading },
|
|
@@ -2665,11 +2679,11 @@ function cleanEscapedString(input) {
|
|
|
2665
2679
|
return matched[1].replace(doubleQuoteRegExp, "'");
|
|
2666
2680
|
}
|
|
2667
2681
|
|
|
2668
|
-
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"};
|
|
2669
2683
|
|
|
2670
2684
|
var Image = function (_a) {
|
|
2671
2685
|
var sources = _a.sources, props = __rest(_a, ["sources"]);
|
|
2672
|
-
return (React.createElement("div", { className: styles$
|
|
2686
|
+
return (React.createElement("div", { className: styles$c.imgWrapper },
|
|
2673
2687
|
React.createElement(Image$2.Image, __assign({ fadeOnLoad: true }, props), sources &&
|
|
2674
2688
|
sources.map(function (source) { return React.createElement("source", __assign({ key: source.srcSet }, source)); }))));
|
|
2675
2689
|
};
|
|
@@ -2699,22 +2713,22 @@ var MediaContent = function (_a) {
|
|
|
2699
2713
|
* */
|
|
2700
2714
|
var FeaturePost = function (_a) {
|
|
2701
2715
|
var _b;
|
|
2702
|
-
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"]);
|
|
2703
2717
|
var isMinWidthArcBreakpointM = useMediaQuery.useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsM, ")"));
|
|
2704
|
-
return (React.createElement("div", __assign({ "data-testid": "feature-post", className: classNames(styles$
|
|
2705
|
-
_b[styles$
|
|
2706
|
-
_b)) },
|
|
2707
|
-
React.createElement("div", { className: styles$
|
|
2708
|
-
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 },
|
|
2709
2723
|
label && (React.createElement(Grid.Grid, { isGutterless: true, isFluid: true },
|
|
2710
2724
|
React.createElement(Grid.GridRow, { align: "baseline" },
|
|
2711
2725
|
React.createElement(Grid.GridCol, { xs: 12, m: "auto" },
|
|
2712
2726
|
React.createElement(Heading.Heading, { size: "xxs", fontStyle: "overline" }, label.text)),
|
|
2713
2727
|
React.createElement(Grid.GridCol, { xs: 12, m: "auto" },
|
|
2714
|
-
React.createElement("div", { className: styles$
|
|
2728
|
+
React.createElement("div", { className: styles$c.labelDate },
|
|
2715
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)))))),
|
|
2716
2730
|
React.createElement(VerticalSpace.VerticalSpace, { size: "24" }))),
|
|
2717
|
-
React.createElement(Heading.Heading, { level: headingLevel, size: "xl" }, heading),
|
|
2731
|
+
React.createElement(Heading.Heading, { id: id, level: headingLevel, isWordWrap: isHeadingWordWrap, size: "xl" }, heading),
|
|
2718
2732
|
!isMinWidthArcBreakpointM && (React.createElement("div", { "data-testid": "mobile-img" },
|
|
2719
2733
|
React.createElement(VerticalSpace.VerticalSpace, { size: "40" }),
|
|
2720
2734
|
React.createElement(MediaContent, { image: image, video: video }))),
|
|
@@ -2733,10 +2747,10 @@ var FeaturePost = function (_a) {
|
|
|
2733
2747
|
footer.appStore && (React.createElement(Grid.GridCol, { xs: 12, s: "auto" },
|
|
2734
2748
|
React.createElement(AppButton.AppButton, { type: "apple-app-store", screenReaderText: footer.appStore.screenReaderText, url: footer.appStore.url }))),
|
|
2735
2749
|
footer.googlePlay && (React.createElement(Grid.GridCol, { xs: 12, s: "auto" },
|
|
2736
|
-
React.createElement("div", { className: styles$
|
|
2750
|
+
React.createElement("div", { className: styles$c.googlePlayButtonWrapper },
|
|
2737
2751
|
React.createElement(AppButton.AppButton, { type: "google-play", screenReaderText: footer.googlePlay.screenReaderText, url: footer.googlePlay.url })))))))))),
|
|
2738
|
-
isMinWidthArcBreakpointM && (React.createElement("div", { className: styles$
|
|
2739
|
-
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 },
|
|
2740
2754
|
React.createElement(MediaContent, { image: image, video: video }))))));
|
|
2741
2755
|
};
|
|
2742
2756
|
|
|
@@ -2748,7 +2762,7 @@ var FeaturePost = function (_a) {
|
|
|
2748
2762
|
const BtIconArrowRightFill =
|
|
2749
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";
|
|
2750
2764
|
|
|
2751
|
-
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"};
|
|
2752
2766
|
|
|
2753
2767
|
var getListHeadingLevel = function (level) {
|
|
2754
2768
|
var nextLevel = Math.min(parseInt(level) + 1, 6);
|
|
@@ -2758,21 +2772,21 @@ var getListHeadingLevel = function (level) {
|
|
|
2758
2772
|
var HighlightItem = function (_a) {
|
|
2759
2773
|
var icon = _a.icon, heading = _a.heading, text = _a.text, link = _a.link, isSmallIcon = _a.isSmallIcon, headingLevel = _a.headingLevel;
|
|
2760
2774
|
var listHeadingLevel = getListHeadingLevel(headingLevel || "2");
|
|
2761
|
-
return (React.createElement("div", { "data-testid": "highlight-item-container", className: styles$
|
|
2762
|
-
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 },
|
|
2763
2777
|
React.createElement(Icon.Icon, { "data-testid": "highlight-icon", color: "brand", icon: icon, size: isSmallIcon ? 64 : 76 }))),
|
|
2764
2778
|
React.createElement(VerticalSpace.VerticalSpace, { size: "16" }),
|
|
2765
2779
|
React.createElement(Heading.Heading, { level: listHeadingLevel, size: "m" }, heading),
|
|
2766
2780
|
React.createElement(VerticalSpace.VerticalSpace, { size: "16" }),
|
|
2767
2781
|
React.createElement(Text.Text, null, text),
|
|
2768
2782
|
React.createElement(VerticalSpace.VerticalSpace, { size: "16" }),
|
|
2769
|
-
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))));
|
|
2770
2784
|
};
|
|
2771
2785
|
|
|
2772
2786
|
var HighlightList = function (_a) {
|
|
2773
2787
|
var listItems = _a.listItems, columns = _a.columns, isSmallIcon = _a.isSmallIcon, headingLevel = _a.headingLevel;
|
|
2774
2788
|
var id = React.useId();
|
|
2775
|
-
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) {
|
|
2776
2790
|
var icon = _a.icon, heading = _a.heading, text = _a.text, link = _a.link;
|
|
2777
2791
|
return (React.createElement(HighlightItem, { key: "highlight-".concat(id, "-").concat(i), icon: icon, heading: heading, text: text, link: link, isSmallIcon: isSmallIcon, headingLevel: headingLevel }));
|
|
2778
2792
|
})));
|
|
@@ -2785,28 +2799,76 @@ var HighlightList = function (_a) {
|
|
|
2785
2799
|
*/
|
|
2786
2800
|
var Highlights = function (_a) {
|
|
2787
2801
|
var _b, _c, _d;
|
|
2788
|
-
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;
|
|
2789
2803
|
var isMaxWidthArcBreakpointXs = useMediaQuery.useMediaQuery("(max-width: 767px)");
|
|
2790
2804
|
return (React.createElement("div", null,
|
|
2791
|
-
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 }),
|
|
2792
2806
|
React.createElement(HighlightList, { "data-testid": "highlights-list-container", listItems: listItems, columns: columns, isSmallIcon: isMaxWidthArcBreakpointXs, headingLevel: headingLevel }),
|
|
2793
2807
|
cta && (React.createElement(React.Fragment, null,
|
|
2794
2808
|
React.createElement(VerticalSpace.VerticalSpace, { size: "24" }),
|
|
2795
|
-
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"
|
|
2796
2810
|
? ((_b = cta.icon) !== null && _b !== void 0 ? _b : BtIconArrowRightFill)
|
|
2797
2811
|
: undefined, iconActive: cta.buttonStyle === "compact"
|
|
2798
2812
|
? ((_c = cta.iconActive) !== null && _c !== void 0 ? _c : BtIconArrowRightFill)
|
|
2799
2813
|
: undefined, iconPosition: (_d = cta.iconPosition) !== null && _d !== void 0 ? _d : "beforeText" })))));
|
|
2800
2814
|
};
|
|
2801
2815
|
|
|
2802
|
-
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";
|
|
2803
2865
|
|
|
2804
2866
|
/**
|
|
2805
2867
|
* Use `PromoListing` to give supporting information about a page or proposition in the form of the card components (`ImpactCard`, `InformationCard`, `MediaCard` and `TypographyCard`).
|
|
2806
2868
|
*/
|
|
2807
2869
|
var PromoListing = function (_a) {
|
|
2808
|
-
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;
|
|
2809
|
-
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();
|
|
2810
2872
|
var isMinWidthArcBreakpointL = useMediaQuery.useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsL, ")"));
|
|
2811
2873
|
var isMinWidthArcBreakpointM = useMediaQuery.useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsM, ")"));
|
|
2812
2874
|
var cardAspectRatios = columns === "3" ? "10-16" : "3-4";
|
|
@@ -2837,46 +2899,52 @@ var PromoListing = function (_a) {
|
|
|
2837
2899
|
var CardComponent = CARD_COMPONENTS[card.type];
|
|
2838
2900
|
return React.createElement(CardComponent, __assign({}, card, commonProps));
|
|
2839
2901
|
};
|
|
2840
|
-
return (React.createElement("div", { className: styles$
|
|
2841
|
-
React.createElement(
|
|
2842
|
-
|
|
2843
|
-
React.createElement(
|
|
2844
|
-
|
|
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)))); })))));
|
|
2845
2913
|
};
|
|
2846
2914
|
|
|
2847
|
-
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"};
|
|
2848
2916
|
|
|
2849
2917
|
/**
|
|
2850
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.*/
|
|
2851
2919
|
var Quote = function (_a) {
|
|
2852
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"]);
|
|
2853
|
-
return (React.createElement("div", __assign({ className: "community-component--quote", "data-testid": "quote-test" },
|
|
2854
|
-
React.createElement("blockquote", { "data-testid": "style-test", className: classNames(styles$
|
|
2855
|
-
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" },
|
|
2856
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" })),
|
|
2857
|
-
React.createElement("p", { className: styles$
|
|
2925
|
+
React.createElement("p", { className: styles$9.quoteContent }, content)),
|
|
2858
2926
|
author && (React.createElement(Author, { name: author.name, title: author.title, avatar: author.avatar }))));
|
|
2859
2927
|
};
|
|
2860
2928
|
|
|
2861
|
-
var styles$
|
|
2929
|
+
var styles$8 = {"ruleContainer":"Summary-module_ruleContainer__ydWlG","row":"Summary-module_row__SKV--"};
|
|
2862
2930
|
|
|
2863
2931
|
var Summary = function (_a) {
|
|
2864
2932
|
var content = _a.content, _b = _a.noBorder, noBorder = _b === void 0 ? false : _b, _c = _a.headingLevel, headingLevel = _c === void 0 ? "3" : _c;
|
|
2865
2933
|
var isMinWidthArcBreakpointM = useMediaQuery.useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsM, ")"));
|
|
2866
2934
|
return (React.createElement(Box.Box, __assign({ isBorderRadius: true }, (!noBorder ? { borderWidth: "thin" } : { elevationLevel: "1" }), { padding: "24" }),
|
|
2867
|
-
React.createElement("div", { className: styles$
|
|
2935
|
+
React.createElement("div", { className: styles$8.row }, content.map(function (_a, i) {
|
|
2868
2936
|
var heading = _a.heading, text = _a.text;
|
|
2869
2937
|
return (React.createElement(React.Fragment, null,
|
|
2870
|
-
React.createElement("div", { className: styles$
|
|
2938
|
+
React.createElement("div", { className: styles$8.col },
|
|
2871
2939
|
React.createElement(Heading.Heading, { size: "s", level: headingLevel }, heading),
|
|
2872
2940
|
React.createElement(VerticalSpace.VerticalSpace, { size: "8" }),
|
|
2873
2941
|
React.createElement(Text.Text, { size: "s" }, text)),
|
|
2874
|
-
i !== content.length - 1 && (React.createElement("div", { className: styles$
|
|
2942
|
+
i !== content.length - 1 && (React.createElement("div", { className: styles$8.ruleContainer },
|
|
2875
2943
|
React.createElement(Rule.Rule, { orientation: isMinWidthArcBreakpointM ? "vertical" : "horizontal" })))));
|
|
2876
2944
|
}))));
|
|
2877
2945
|
};
|
|
2878
2946
|
|
|
2879
|
-
var styles$
|
|
2947
|
+
var styles$7 = {"list":"Statistics-module_list__BI-eQ","mutedText":"Statistics-module_mutedText__MR1JM","statWrapper":"Statistics-module_statWrapper__83OnM"};
|
|
2880
2948
|
|
|
2881
2949
|
var getLinkProps = function (link) {
|
|
2882
2950
|
return link.openInNewTab
|
|
@@ -2888,16 +2956,16 @@ var getLinkProps = function (link) {
|
|
|
2888
2956
|
};
|
|
2889
2957
|
|
|
2890
2958
|
var Statistics = function (_a) {
|
|
2891
|
-
var headingLevel = _a.headingLevel, heading = _a.heading, content = _a.content, statistics = _a.statistics;
|
|
2892
|
-
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();
|
|
2893
2961
|
return (React.createElement(Columns.Columns, null,
|
|
2894
2962
|
React.createElement(Columns.ColumnsCol, { spanM: 9 },
|
|
2895
|
-
React.createElement(SectionHeading, { heading: heading, headingLevel: headingLevel, content: content }),
|
|
2963
|
+
React.createElement(SectionHeading, { id: id, heading: heading, isHeadingWordWrap: isHeadingWordWrap, headingLevel: headingLevel, content: content }),
|
|
2896
2964
|
React.createElement(VerticalSpace.VerticalSpace, { size: "16" })),
|
|
2897
2965
|
React.createElement(Columns.ColumnsCol, { spanL: 9 },
|
|
2898
|
-
React.createElement("ul", { className: styles$
|
|
2966
|
+
React.createElement("ul", { className: styles$7.list }, statistics.map(function (_a, i) {
|
|
2899
2967
|
var stat = _a.stat, copy = _a.copy, link = _a.link, source = _a.source, sourceUrl = _a.sourceUrl;
|
|
2900
|
-
return (React.createElement("li", { key: "statistic-".concat(
|
|
2968
|
+
return (React.createElement("li", { key: "statistic-".concat(componentId, "-").concat(i) },
|
|
2901
2969
|
i !== 0 && (React.createElement(React.Fragment, null,
|
|
2902
2970
|
React.createElement(VerticalSpace.VerticalSpace, { size: "24", sizeS: "32", sizeXL: "40" }),
|
|
2903
2971
|
React.createElement(Rule.Rule, null),
|
|
@@ -2905,7 +2973,7 @@ var Statistics = function (_a) {
|
|
|
2905
2973
|
React.createElement(Columns.Columns, null,
|
|
2906
2974
|
React.createElement(Columns.ColumnsCol, { spanS: 6, spanM: 8 },
|
|
2907
2975
|
React.createElement(Align.Align, { vertical: "center" },
|
|
2908
|
-
React.createElement("div", { className: styles$
|
|
2976
|
+
React.createElement("div", { className: styles$7.statWrapper },
|
|
2909
2977
|
React.createElement(Heading.Heading, { color: "brand", size: "xxl" }, stat)))),
|
|
2910
2978
|
React.createElement(Columns.ColumnsCol, { spanS: 6, spanM: 4 },
|
|
2911
2979
|
React.createElement(Text.Text, null, copy),
|
|
@@ -2915,66 +2983,35 @@ var Statistics = function (_a) {
|
|
|
2915
2983
|
source && (React.createElement(React.Fragment, null,
|
|
2916
2984
|
React.createElement(VerticalSpace.VerticalSpace, { size: "12" }),
|
|
2917
2985
|
React.createElement(Text.Text, { size: "xs" },
|
|
2918
|
-
React.createElement("span", { className: styles$
|
|
2986
|
+
React.createElement("span", { className: styles$7.mutedText }, source)))),
|
|
2919
2987
|
sourceUrl && (React.createElement(Text.Text, { size: "xs" },
|
|
2920
|
-
React.createElement("a", { className: styles$
|
|
2988
|
+
React.createElement("a", { className: styles$7.mutedText, href: sourceUrl }, sourceUrl)))))));
|
|
2921
2989
|
})))));
|
|
2922
2990
|
};
|
|
2923
2991
|
|
|
2924
|
-
var styles$
|
|
2992
|
+
var styles$6 = {"bannerWithTabsHeadingCentered":"BannerWithTabs-module_bannerWithTabsHeadingCentered__upqEO"};
|
|
2925
2993
|
|
|
2926
2994
|
var BannerWithTabs = function (_a) {
|
|
2927
2995
|
var _b;
|
|
2928
|
-
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;
|
|
2929
2997
|
return (React.createElement(React.Fragment, null,
|
|
2930
2998
|
React.createElement("div", { className: classNames((_b = {},
|
|
2931
|
-
_b[styles$
|
|
2999
|
+
_b[styles$6.bannerWithTabsHeadingCentered] = alignTypography === "center",
|
|
2932
3000
|
_b)) },
|
|
2933
|
-
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 })),
|
|
2934
3002
|
React.createElement(TabbedBanner.TabbedBanner, { minHeight: minHeight, minHeightM: minHeightM, tabs: tabs, defaultValue: defaultValue })));
|
|
2935
3003
|
};
|
|
2936
3004
|
|
|
2937
|
-
|
|
2938
|
-
* Do not edit directly
|
|
2939
|
-
* Generated file
|
|
2940
|
-
*/
|
|
2941
|
-
|
|
2942
|
-
const ArcIconSocialLinkedin =
|
|
2943
|
-
"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";
|
|
2944
|
-
|
|
2945
|
-
/**
|
|
2946
|
-
* Do not edit directly
|
|
2947
|
-
* Generated file
|
|
2948
|
-
*/
|
|
2949
|
-
|
|
2950
|
-
const ArcIconSocialX =
|
|
2951
|
-
"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";
|
|
2952
|
-
|
|
2953
|
-
/**
|
|
2954
|
-
* Do not edit directly
|
|
2955
|
-
* Generated file
|
|
2956
|
-
*/
|
|
2957
|
-
|
|
2958
|
-
const BtIconLink =
|
|
2959
|
-
"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";
|
|
2960
|
-
|
|
2961
|
-
/**
|
|
2962
|
-
* Do not edit directly
|
|
2963
|
-
* Generated file
|
|
2964
|
-
*/
|
|
2965
|
-
|
|
2966
|
-
const BtIconEmailUnread =
|
|
2967
|
-
"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";
|
|
2968
|
-
|
|
2969
|
-
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"};
|
|
2970
3006
|
|
|
2971
3007
|
/**
|
|
2972
3008
|
* Use `ArticleSidebar` to provide additional information about the article.
|
|
2973
3009
|
*/
|
|
2974
3010
|
var ArticleSidebar = function (_a) {
|
|
3011
|
+
var _b;
|
|
2975
3012
|
var author = _a.author, aboutSection = _a.aboutSection, topics = _a.topics, share = _a.share, additionalContent = _a.additionalContent, linkSection = _a.linkSection;
|
|
2976
3013
|
var id = React.useId();
|
|
2977
|
-
var
|
|
3014
|
+
var _c = React.useState(false), showToast = _c[0], setShowToast = _c[1];
|
|
2978
3015
|
var url = location.href;
|
|
2979
3016
|
var copyTextToClipBoard = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
2980
3017
|
return __generator(this, function (_a) {
|
|
@@ -2987,90 +3024,98 @@ var ArticleSidebar = function (_a) {
|
|
|
2987
3024
|
}
|
|
2988
3025
|
});
|
|
2989
3026
|
}); };
|
|
2990
|
-
var shareButtons =
|
|
2991
|
-
|
|
2992
|
-
isButton: true,
|
|
2993
|
-
label: "Copy url to clipboard",
|
|
2994
|
-
onClick: copyTextToClipBoard,
|
|
2995
|
-
icon: BtIconLink,
|
|
2996
|
-
},
|
|
2997
|
-
{
|
|
2998
|
-
label: "Share by email",
|
|
2999
|
-
href: "mailto:?subject=".concat(share.articleTitle, "&body=").concat(url),
|
|
3000
|
-
icon: BtIconEmailUnread,
|
|
3001
|
-
}
|
|
3002
|
-
], (share.linkedin
|
|
3003
|
-
? [
|
|
3027
|
+
var shareButtons = share
|
|
3028
|
+
? __spreadArray(__spreadArray([
|
|
3004
3029
|
{
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
icon:
|
|
3030
|
+
isButton: true,
|
|
3031
|
+
onClick: copyTextToClipBoard,
|
|
3032
|
+
icon: BtIconLink,
|
|
3033
|
+
ariaLabel: share.clipboardAriaLabel || "Copy url to clipboard",
|
|
3008
3034
|
},
|
|
3009
|
-
]
|
|
3010
|
-
: []), true), (share.x
|
|
3011
|
-
? [
|
|
3012
3035
|
{
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
}
|
|
3017
|
-
]
|
|
3018
|
-
|
|
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);
|
|
3019
3059
|
return (React.createElement(React.Fragment, null,
|
|
3020
|
-
React.createElement("div", { className:
|
|
3060
|
+
React.createElement("div", { className: classNames((_b = {},
|
|
3061
|
+
_b[styles$5.textContent] = hasTopContent,
|
|
3062
|
+
_b)) },
|
|
3021
3063
|
author && (React.createElement(React.Fragment, null,
|
|
3022
3064
|
React.createElement(Author, __assign({}, author, { avatar: __assign(__assign({}, author.avatar), { size: "xl" }) })))),
|
|
3023
3065
|
aboutSection && (React.createElement(React.Fragment, null,
|
|
3024
|
-
React.createElement(VerticalSpace.VerticalSpace, { size: "32" }),
|
|
3066
|
+
author && React.createElement(VerticalSpace.VerticalSpace, { size: "32" }),
|
|
3025
3067
|
React.createElement(Heading.Heading, { level: aboutSection.headingLevel }, aboutSection.heading),
|
|
3026
3068
|
React.createElement(VerticalSpace.VerticalSpace, { size: "16" }),
|
|
3027
3069
|
React.createElement(Text.Text, { size: "s" }, aboutSection.content))),
|
|
3028
|
-
additionalContent &&
|
|
3029
|
-
|
|
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) {
|
|
3030
3073
|
var heading = _a.heading, headingLevel = _a.headingLevel, content = _a.content;
|
|
3031
|
-
return (React.createElement(
|
|
3032
|
-
React.createElement(VerticalSpace.VerticalSpace, { size: "16" }),
|
|
3074
|
+
return (React.createElement("div", { key: "".concat(id, "-").concat(heading) },
|
|
3033
3075
|
React.createElement(Heading.Heading, { level: headingLevel, size: "xxs" }, heading),
|
|
3034
3076
|
React.createElement(Text.Text, { size: "s" }, content)));
|
|
3035
|
-
})),
|
|
3036
|
-
|
|
3077
|
+
}))))),
|
|
3078
|
+
hasTopContent && hasBottomContent && (React.createElement("div", { "data-testid": "text-content-rule" },
|
|
3037
3079
|
React.createElement(VerticalSpace.VerticalSpace, { size: "32" }),
|
|
3038
3080
|
React.createElement(Rule.Rule, null),
|
|
3039
3081
|
React.createElement(VerticalSpace.VerticalSpace, { size: "32" }))),
|
|
3040
|
-
React.createElement(
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
React.createElement(
|
|
3045
|
-
|
|
3046
|
-
React.createElement(
|
|
3047
|
-
|
|
3048
|
-
|
|
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
|
+
}))),
|
|
3049
3091
|
topics && (React.createElement(React.Fragment, null,
|
|
3092
|
+
linkSection && React.createElement(VerticalSpace.VerticalSpace, { size: "32" }),
|
|
3050
3093
|
React.createElement(Heading.Heading, { level: topics.headingLevel }, topics.heading),
|
|
3051
3094
|
React.createElement(VerticalSpace.VerticalSpace, { size: "16" }),
|
|
3052
|
-
React.createElement("div", { className: styles$
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
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
|
+
})))),
|
|
3063
3108
|
React.createElement(Toast.Toast, null,
|
|
3064
3109
|
React.createElement(Toast.ToastNotification, { status: "success", title: "Copied to clipboard", isOpen: showToast, onOpenChange: function () { return setShowToast(false); } }))));
|
|
3065
3110
|
};
|
|
3066
3111
|
|
|
3067
|
-
var styles$
|
|
3112
|
+
var styles$4 = {"product-navigation-grid":"ProductNavigation-module_product-navigation-grid__RzFq8","productNavigation-skipLink":"ProductNavigation-module_productNavigation-skipLink__fy8ZJ"};
|
|
3068
3113
|
|
|
3069
3114
|
/**
|
|
3070
3115
|
* Use `ProductNavigation` to give a collection of product information cards collected within a grid that has optional show/hide capability
|
|
3071
3116
|
*/
|
|
3072
3117
|
var ProductNavigation = function (_a) {
|
|
3073
|
-
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"]);
|
|
3074
3119
|
var _g = React.useState(false), hideLessButton = _g[0], setHideLessButton = _g[1];
|
|
3075
3120
|
var _h = React.useState(cardsToDisplay), skipLinkCard = _h[0], setSkipLinkCard = _h[1];
|
|
3076
3121
|
var _j = React.useState(productList.slice(0, cardsToDisplay)), displayList = _j[0], setDisplayList = _j[1];
|
|
@@ -3106,15 +3151,12 @@ var ProductNavigation = function (_a) {
|
|
|
3106
3151
|
}
|
|
3107
3152
|
};
|
|
3108
3153
|
var isMinWidthArcBreakpointS = useMediaQuery.useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsS, ")"));
|
|
3109
|
-
return (React.createElement("div", __assign({},
|
|
3110
|
-
React.createElement(SectionHeading, { isPadded: true, "data-testid": "ProductNavigation-header", heading: heading, headingLevel: headingLevel, content: content, image: image }),
|
|
3111
|
-
React.createElement("ul", { className: classNames(styles$
|
|
3112
|
-
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;
|
|
3113
3158
|
return (React.createElement("li", { key: "displayList-".concat(i), tabIndex: -1, ref: i === skipLinkCard ? cardRef : undefined, "data-cy": "list-item-".concat(i) },
|
|
3114
|
-
React.createElement(InformationCard.InformationCard, {
|
|
3115
|
-
label: label,
|
|
3116
|
-
href: href,
|
|
3117
|
-
}, 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" }))));
|
|
3118
3160
|
})),
|
|
3119
3161
|
React.createElement(VerticalSpace.VerticalSpace, { size: "40" }),
|
|
3120
3162
|
React.createElement("div", { style: { display: "flex" } },
|
|
@@ -3122,7 +3164,7 @@ var ProductNavigation = function (_a) {
|
|
|
3122
3164
|
? "Show more"
|
|
3123
3165
|
: "Show less", buttonStyle: "secondary", onClick: clickController, isFullWidth: isMinWidthArcBreakpointS ? false : true, isLoading: isLoading })),
|
|
3124
3166
|
displayList.length > cardsToDisplay && (React.createElement(React.Fragment, null,
|
|
3125
|
-
React.createElement("div", { id: "skip-link", className: classNames(styles$
|
|
3167
|
+
React.createElement("div", { id: "skip-link", className: classNames(styles$4["productNavigation-skipLink"]), tabIndex: -1 },
|
|
3126
3168
|
React.createElement(ButtonV2.ButtonV2, { label: "Move to first new card", buttonStyle: "primary", onClick: moveFocus, isFullWidth: isMinWidthArcBreakpointS ? false : true })))),
|
|
3127
3169
|
React.createElement(VisuallyHidden.VisuallyHidden, null,
|
|
3128
3170
|
React.createElement("div", { "aria-live": "polite", id: "aria-live-region", "aria-atomic": true },
|
|
@@ -3135,18 +3177,74 @@ var ProductNavigation = function (_a) {
|
|
|
3135
3177
|
"."))))));
|
|
3136
3178
|
};
|
|
3137
3179
|
|
|
3138
|
-
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"};
|
|
3139
3181
|
|
|
3140
3182
|
var ContentInfoWidget = function (_a) {
|
|
3141
3183
|
var text = _a.text, icon = _a.icon;
|
|
3142
|
-
return (React.createElement("div", { className: styles.container },
|
|
3143
|
-
React.createElement("div", { className: styles.icon },
|
|
3184
|
+
return (React.createElement("div", { className: styles$3.container },
|
|
3185
|
+
React.createElement("div", { className: styles$3.icon },
|
|
3144
3186
|
React.createElement(Icon.Icon, { size: 20, icon: icon })),
|
|
3145
|
-
React.createElement("div", { className: styles.text },
|
|
3187
|
+
React.createElement("div", { className: styles$3.text },
|
|
3146
3188
|
React.createElement(Text.Text, { size: "xs", tone: "muted" }, text))));
|
|
3147
3189
|
};
|
|
3148
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
|
+
|
|
3149
3246
|
exports.Accordion = Accordion;
|
|
3247
|
+
exports.ActionTile = ActionTile;
|
|
3150
3248
|
exports.ArticleSidebar = ArticleSidebar;
|
|
3151
3249
|
exports.Author = Author;
|
|
3152
3250
|
exports.BannerWithTabs = BannerWithTabs;
|
|
@@ -3155,7 +3253,9 @@ exports.CopyLead = CopyLead;
|
|
|
3155
3253
|
exports.DownloadList = DownloadList;
|
|
3156
3254
|
exports.FAQs = FAQs;
|
|
3157
3255
|
exports.FeaturePost = FeaturePost;
|
|
3256
|
+
exports.HeroLink = HeroLink;
|
|
3158
3257
|
exports.Highlights = Highlights;
|
|
3258
|
+
exports.LinkTile = LinkTile;
|
|
3159
3259
|
exports.ProductNavigation = ProductNavigation;
|
|
3160
3260
|
exports.PromoListing = PromoListing;
|
|
3161
3261
|
exports.Quote = Quote;
|