@arc-ui/community-components 3.8.1 → 3.10.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 -16
- package/CHANGELOG.md +25 -0
- package/generate-versions.js +48 -1
- package/lib/ActionTile/ActionTile.cjs +10 -9
- package/lib/ActionTile/ActionTile.mjs +10 -9
- package/lib/ActionTile/styles.css +1 -1
- package/lib/ArticleCarousel/ArticleCarousel.cjs +3 -2
- package/lib/ArticleCarousel/ArticleCarousel.mjs +3 -2
- package/lib/BannerWithTabs/BannerWithTabs.cjs +2 -1
- package/lib/BannerWithTabs/BannerWithTabs.mjs +2 -1
- package/lib/BusinessSegmentSwitcher/BusinessSegmentSwitcher.cjs +2 -1
- package/lib/BusinessSegmentSwitcher/BusinessSegmentSwitcher.mjs +2 -1
- package/lib/CopyLead/CopyLead.cjs +2 -2
- package/lib/CopyLead/CopyLead.mjs +2 -2
- package/lib/DownloadList/DownloadList.cjs +12 -9
- package/lib/DownloadList/DownloadList.mjs +12 -9
- package/lib/DownloadList/styles.css +1 -1
- package/lib/FAQs/FAQs.cjs +2 -1
- package/lib/FAQs/FAQs.mjs +2 -1
- package/lib/FeaturePost/FeaturePost.cjs +1 -1
- package/lib/FeaturePost/FeaturePost.mjs +1 -1
- package/lib/HeaderBarNotification/HeaderBarNotification.cjs +57 -0
- package/lib/HeaderBarNotification/HeaderBarNotification.mjs +55 -0
- package/lib/HeaderBarNotification/styles.css +1 -0
- package/lib/Highlights/Highlights.cjs +2 -1
- package/lib/Highlights/Highlights.mjs +2 -1
- package/lib/ProductNavigation/ProductNavigation.cjs +20 -19
- package/lib/ProductNavigation/ProductNavigation.mjs +20 -19
- package/lib/PromoListing/PromoListing.cjs +5 -4
- package/lib/PromoListing/PromoListing.mjs +5 -4
- package/lib/PromoListing/styles.css +1 -1
- package/lib/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.cjs +2 -1
- package/lib/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.mjs +2 -1
- package/lib/SectionHeading/SectionHeading.cjs +2 -1
- package/lib/SectionHeading/SectionHeading.mjs +2 -1
- package/lib/SectionHeading/styles.css +1 -1
- package/lib/Statistics/Statistics.cjs +1 -1
- package/lib/Statistics/Statistics.mjs +1 -1
- package/lib/Summary/Summary.cjs +1 -1
- package/lib/Summary/Summary.mjs +1 -1
- package/lib/_shared/cjs/SectionHeading-XCMdv8eZ.cjs +34 -0
- package/lib/_shared/cjs/{index.es-B6sSN_JJ.cjs → index.es-B73RVhhj.cjs} +1 -1
- package/lib/_shared/esm/SectionHeading-lyXLUtdr.mjs +32 -0
- package/lib/_shared/esm/{index.es-CYN3fovv.mjs → index.es-DNGykRl2.mjs} +1 -1
- package/lib/index.cjs +106 -54
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +61 -7
- package/lib/index.d.mts +61 -7
- package/lib/index.mjs +107 -56
- package/lib/index.mjs.map +1 -1
- package/lib/styles.css +1 -1
- package/package.json +14 -14
- package/src/components/ActionTile/ActionTile.module.css +20 -1
- package/src/components/ActionTile/ActionTile.tsx +11 -14
- package/src/components/BusinessSegmentSwitcher/BusinessSegmentSwitcher.tsx +5 -1
- package/src/components/BusinessSegmentSwitcher/types/types.ts +6 -3
- package/src/components/DownloadList/DownloadList.module.css +11 -3
- package/src/components/DownloadList/DownloadList.tsx +33 -17
- package/src/components/HeaderBarNotification/HeaderBarNotification.module.css +51 -0
- package/src/components/HeaderBarNotification/HeaderBarNotification.tsx +153 -0
- package/src/components/HeaderBarNotification/index.ts +4 -0
- package/src/components/ProductNavigation/ProductNavigation.tsx +42 -38
- package/src/components/PromoListing/PromoListing.module.css +14 -0
- package/src/components/PromoListing/PromoListing.tsx +1 -1
- package/src/components/SectionHeading/SectionHeading.module.css +7 -26
- package/src/components/SectionHeading/SectionHeading.tsx +35 -33
- package/src/components/index.ts +1 -0
- package/versions.json +1 -1
- package/lib/_shared/cjs/SectionHeading-DtYzFetD.cjs +0 -31
- package/lib/_shared/esm/SectionHeading-RLfs7ete.mjs +0 -29
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var tslib_es6 = require('../_shared/cjs/tslib.es6-BxB9I209.cjs');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var filterAttrs = require('../_shared/cjs/filter-attrs-BizjMsy0.cjs');
|
|
6
|
+
var NavigationHeader = require('@arc-ui/components/NavigationHeader');
|
|
7
|
+
var Popover = require('@arc-ui/components/Popover');
|
|
8
|
+
var Icon = require('@arc-ui/components/Icon');
|
|
9
|
+
var Image = require('@arc-ui/components/Image');
|
|
10
|
+
var Heading = require('@arc-ui/components/Heading');
|
|
11
|
+
var Text = require('@arc-ui/components/Text');
|
|
12
|
+
var Tooltip = require('@arc-ui/components/Tooltip');
|
|
13
|
+
var ButtonV2 = require('@arc-ui/components/ButtonV2');
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Do not edit directly
|
|
17
|
+
* Generated file
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
const BtIconCrossAlt =
|
|
21
|
+
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath fill='currentColor' d='m16.707 16.02 4.482-4.494a.5.5 0 1 0-.707-.706l-4.48 4.493-4.482-4.493a.5.5 0 1 0-.707.706l4.483 4.494-4.483 4.494a.5.5 0 1 0 .707.706l4.481-4.493 4.481 4.493a.5.5 0 1 0 .707-.706Z'/%3e%3c/svg%3e";
|
|
22
|
+
|
|
23
|
+
var styles = {"container":"HeaderBarNotification-module_container__18nau","content":"HeaderBarNotification-module_content__SUo-l","image":"HeaderBarNotification-module_image__uV-nD","details":"HeaderBarNotification-module_details__S5Rrx","closeButtonContainer":"HeaderBarNotification-module_closeButtonContainer__b1UDI"};
|
|
24
|
+
|
|
25
|
+
var HeaderBarNotification = function (_a) {
|
|
26
|
+
var headerActionProps = _a.headerActionProps, notificationId = _a.notificationId, _b = _a.isPersistant, isPersistant = _b === void 0 ? false : _b, icon = _a.icon, image = _a.image, heading = _a.heading, tagline = _a.tagline, children = _a.children, button = _a.button, props = tslib_es6.__rest(_a, ["headerActionProps", "notificationId", "isPersistant", "icon", "image", "heading", "tagline", "children", "button"]);
|
|
27
|
+
var _c = React.useState(isPersistant), showNotification = _c[0], setShowNotification = _c[1];
|
|
28
|
+
var localStorageId = "hide".concat(notificationId.replace(/[^a-zA-Z0-9\-_]/g, ""));
|
|
29
|
+
// Check to see if the notication has been hidden or not and show it if so
|
|
30
|
+
React.useEffect(function () {
|
|
31
|
+
if (typeof window !== "undefined" && !isPersistant) {
|
|
32
|
+
setShowNotification(!localStorage.getItem(localStorageId));
|
|
33
|
+
}
|
|
34
|
+
}, []);
|
|
35
|
+
// Handle the closure of the notification, store it in the session so we don't keep showing it.
|
|
36
|
+
var handleClosePopup = function () {
|
|
37
|
+
if (!isPersistant)
|
|
38
|
+
localStorage.setItem(localStorageId, "true");
|
|
39
|
+
setShowNotification(false);
|
|
40
|
+
};
|
|
41
|
+
return (React.createElement(Popover.Popover, tslib_es6.__assign({ open: showNotification, side: "bottom", sideOffset: 12, maxWidth: 900, arrow: true, content: React.createElement("div", { className: styles.container },
|
|
42
|
+
React.createElement("div", { className: styles.content },
|
|
43
|
+
(image || icon) && (React.createElement("div", { className: styles.image },
|
|
44
|
+
image && (React.createElement(Image.Image, { src: image, alt: heading, fit: "cover", width: 55 })),
|
|
45
|
+
icon && React.createElement(Icon.Icon, { icon: icon, size: 35 }))),
|
|
46
|
+
React.createElement("div", { className: styles.details },
|
|
47
|
+
tagline && (React.createElement(Text.Text, { size: "m", tone: "muted" }, tagline)),
|
|
48
|
+
React.createElement(Heading.Heading, { size: "s", level: "3" }, heading),
|
|
49
|
+
children)),
|
|
50
|
+
button && (React.createElement(ButtonV2.ButtonV2, { onClick: button.handleClick, label: button.text, buttonStyle: "secondary", isFullWidth: true })),
|
|
51
|
+
React.createElement("div", { className: styles.closeButtonContainer },
|
|
52
|
+
React.createElement(Tooltip.Tooltip, { side: "bottom", title: "Dismiss Notification", asChild: true },
|
|
53
|
+
React.createElement(ButtonV2.ButtonV2, { "data-testid": localStorageId, buttonStyle: "tertiary", "aria-label": "Close ".concat(notificationId, " popup"), onClick: handleClosePopup, icon: BtIconCrossAlt })))) }, filterAttrs.filterAttrs(props)),
|
|
54
|
+
React.createElement(NavigationHeader.NavigationHeaderAction, tslib_es6.__assign({ isAttention: true }, headerActionProps))));
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
exports.HeaderBarNotification = HeaderBarNotification;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { _ as __rest, a as __assign } from '../_shared/esm/tslib.es6-BVXMhEem.mjs';
|
|
2
|
+
import React__default, { useState, useEffect } from 'react';
|
|
3
|
+
import { f as filterAttrs } from '../_shared/esm/filter-attrs-DZ7RCEZm.mjs';
|
|
4
|
+
import { NavigationHeaderAction } from '@arc-ui/components/NavigationHeader';
|
|
5
|
+
import { Popover } from '@arc-ui/components/Popover';
|
|
6
|
+
import { Icon } from '@arc-ui/components/Icon';
|
|
7
|
+
import { Image } from '@arc-ui/components/Image';
|
|
8
|
+
import { Heading } from '@arc-ui/components/Heading';
|
|
9
|
+
import { Text } from '@arc-ui/components/Text';
|
|
10
|
+
import { Tooltip } from '@arc-ui/components/Tooltip';
|
|
11
|
+
import { ButtonV2 } from '@arc-ui/components/ButtonV2';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Do not edit directly
|
|
15
|
+
* Generated file
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
const BtIconCrossAlt =
|
|
19
|
+
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath fill='currentColor' d='m16.707 16.02 4.482-4.494a.5.5 0 1 0-.707-.706l-4.48 4.493-4.482-4.493a.5.5 0 1 0-.707.706l4.483 4.494-4.483 4.494a.5.5 0 1 0 .707.706l4.481-4.493 4.481 4.493a.5.5 0 1 0 .707-.706Z'/%3e%3c/svg%3e";
|
|
20
|
+
|
|
21
|
+
var styles = {"container":"HeaderBarNotification-module_container__18nau","content":"HeaderBarNotification-module_content__SUo-l","image":"HeaderBarNotification-module_image__uV-nD","details":"HeaderBarNotification-module_details__S5Rrx","closeButtonContainer":"HeaderBarNotification-module_closeButtonContainer__b1UDI"};
|
|
22
|
+
|
|
23
|
+
var HeaderBarNotification = function (_a) {
|
|
24
|
+
var headerActionProps = _a.headerActionProps, notificationId = _a.notificationId, _b = _a.isPersistant, isPersistant = _b === void 0 ? false : _b, icon = _a.icon, image = _a.image, heading = _a.heading, tagline = _a.tagline, children = _a.children, button = _a.button, props = __rest(_a, ["headerActionProps", "notificationId", "isPersistant", "icon", "image", "heading", "tagline", "children", "button"]);
|
|
25
|
+
var _c = useState(isPersistant), showNotification = _c[0], setShowNotification = _c[1];
|
|
26
|
+
var localStorageId = "hide".concat(notificationId.replace(/[^a-zA-Z0-9\-_]/g, ""));
|
|
27
|
+
// Check to see if the notication has been hidden or not and show it if so
|
|
28
|
+
useEffect(function () {
|
|
29
|
+
if (typeof window !== "undefined" && !isPersistant) {
|
|
30
|
+
setShowNotification(!localStorage.getItem(localStorageId));
|
|
31
|
+
}
|
|
32
|
+
}, []);
|
|
33
|
+
// Handle the closure of the notification, store it in the session so we don't keep showing it.
|
|
34
|
+
var handleClosePopup = function () {
|
|
35
|
+
if (!isPersistant)
|
|
36
|
+
localStorage.setItem(localStorageId, "true");
|
|
37
|
+
setShowNotification(false);
|
|
38
|
+
};
|
|
39
|
+
return (React__default.createElement(Popover, __assign({ open: showNotification, side: "bottom", sideOffset: 12, maxWidth: 900, arrow: true, content: React__default.createElement("div", { className: styles.container },
|
|
40
|
+
React__default.createElement("div", { className: styles.content },
|
|
41
|
+
(image || icon) && (React__default.createElement("div", { className: styles.image },
|
|
42
|
+
image && (React__default.createElement(Image, { src: image, alt: heading, fit: "cover", width: 55 })),
|
|
43
|
+
icon && React__default.createElement(Icon, { icon: icon, size: 35 }))),
|
|
44
|
+
React__default.createElement("div", { className: styles.details },
|
|
45
|
+
tagline && (React__default.createElement(Text, { size: "m", tone: "muted" }, tagline)),
|
|
46
|
+
React__default.createElement(Heading, { size: "s", level: "3" }, heading),
|
|
47
|
+
children)),
|
|
48
|
+
button && (React__default.createElement(ButtonV2, { onClick: button.handleClick, label: button.text, buttonStyle: "secondary", isFullWidth: true })),
|
|
49
|
+
React__default.createElement("div", { className: styles.closeButtonContainer },
|
|
50
|
+
React__default.createElement(Tooltip, { side: "bottom", title: "Dismiss Notification", asChild: true },
|
|
51
|
+
React__default.createElement(ButtonV2, { "data-testid": localStorageId, buttonStyle: "tertiary", "aria-label": "Close ".concat(notificationId, " popup"), onClick: handleClosePopup, icon: BtIconCrossAlt })))) }, filterAttrs(props)),
|
|
52
|
+
React__default.createElement(NavigationHeaderAction, __assign({ isAttention: true }, headerActionProps))));
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export { HeaderBarNotification };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.HeaderBarNotification-module_container__18nau{display:flex;flex-direction:column;gap:16px;padding:20px;background:#ffffff;border-radius:var(--sem-border-radius-m)}@media (--arc-custom-media-min-width-m-px){.HeaderBarNotification-module_container__18nau{flex-direction:row;align-items:center}}.HeaderBarNotification-module_content__SUo-l{display:flex;align-items:center;gap:16px;width:100%;min-width:55%;max-width:70vw;margin-right:24px}@media (--arc-custom-media-min-width-m-px){.HeaderBarNotification-module_content__SUo-l{width:400px;margin-right:16px}}.HeaderBarNotification-module_image__uV-nD{flex-shrink:0}.HeaderBarNotification-module_details__S5Rrx{display:flex;flex-direction:column;width:100%}.HeaderBarNotification-module_closeButtonContainer__b1UDI{position:absolute;right:20px;top:20px;margin:0}@media (--arc-custom-media-min-width-m-px){.HeaderBarNotification-module_closeButtonContainer__b1UDI{position:relative;right:0;top:0}}
|
|
@@ -6,7 +6,7 @@ var useMediaQuery = require('@arc-ui/components/use-media-query');
|
|
|
6
6
|
var ButtonV2 = require('@arc-ui/components/ButtonV2');
|
|
7
7
|
var VerticalSpace = require('@arc-ui/components/VerticalSpace');
|
|
8
8
|
var BtIconArrowRightFill = require('../_shared/cjs/BtIconArrowRightFill-BVCZv7Lm.cjs');
|
|
9
|
-
var SectionHeading = require('../_shared/cjs/SectionHeading-
|
|
9
|
+
var SectionHeading = require('../_shared/cjs/SectionHeading-XCMdv8eZ.cjs');
|
|
10
10
|
var index = require('../_shared/cjs/index-B7Z7sgRq.cjs');
|
|
11
11
|
var Heading = require('@arc-ui/components/Heading');
|
|
12
12
|
var Icon = require('@arc-ui/components/Icon');
|
|
@@ -14,6 +14,7 @@ var Text = require('@arc-ui/components/Text');
|
|
|
14
14
|
var Link = require('@arc-ui/components/Link');
|
|
15
15
|
var filterAttrs = require('../_shared/cjs/filter-attrs-BizjMsy0.cjs');
|
|
16
16
|
require('@arc-ui/components/Image');
|
|
17
|
+
require('@arc-ui/components/Columns');
|
|
17
18
|
|
|
18
19
|
var styles = {"highlights":"Highlights-module_highlights__Hf7Zq","highlightItem":"Highlights-module_highlightItem__-N6le","highlights2Column":"Highlights-module_highlights2Column__6qIuI","highlights3Column":"Highlights-module_highlights3Column__qsCMP"};
|
|
19
20
|
|
|
@@ -4,7 +4,7 @@ import { useMediaQuery } from '@arc-ui/components/use-media-query';
|
|
|
4
4
|
import { ButtonV2 } from '@arc-ui/components/ButtonV2';
|
|
5
5
|
import { VerticalSpace } from '@arc-ui/components/VerticalSpace';
|
|
6
6
|
import { B as BtIconArrowRightFill } from '../_shared/esm/BtIconArrowRightFill-D0zKgk3B.mjs';
|
|
7
|
-
import { S as SectionHeading } from '../_shared/esm/SectionHeading-
|
|
7
|
+
import { S as SectionHeading } from '../_shared/esm/SectionHeading-lyXLUtdr.mjs';
|
|
8
8
|
import { c as classNames } from '../_shared/esm/index-BSO2EFem.mjs';
|
|
9
9
|
import { Heading } from '@arc-ui/components/Heading';
|
|
10
10
|
import { Icon } from '@arc-ui/components/Icon';
|
|
@@ -12,6 +12,7 @@ import { Text } from '@arc-ui/components/Text';
|
|
|
12
12
|
import { Link } from '@arc-ui/components/Link';
|
|
13
13
|
import { f as filterAttrs } from '../_shared/esm/filter-attrs-DZ7RCEZm.mjs';
|
|
14
14
|
import '@arc-ui/components/Image';
|
|
15
|
+
import '@arc-ui/components/Columns';
|
|
15
16
|
|
|
16
17
|
var styles = {"highlights":"Highlights-module_highlights__Hf7Zq","highlightItem":"Highlights-module_highlightItem__-N6le","highlights2Column":"Highlights-module_highlights2Column__6qIuI","highlights3Column":"Highlights-module_highlights3Column__qsCMP"};
|
|
17
18
|
|
|
@@ -5,8 +5,8 @@ var React = require('react');
|
|
|
5
5
|
var index = require('../_shared/cjs/index-B7Z7sgRq.cjs');
|
|
6
6
|
var filterAttrs = require('../_shared/cjs/filter-attrs-BizjMsy0.cjs');
|
|
7
7
|
var useMediaQuery = require('@arc-ui/components/use-media-query');
|
|
8
|
-
var index_es = require('../_shared/cjs/index.es-
|
|
9
|
-
var SectionHeading = require('../_shared/cjs/SectionHeading-
|
|
8
|
+
var index_es = require('../_shared/cjs/index.es-B73RVhhj.cjs');
|
|
9
|
+
var SectionHeading = require('../_shared/cjs/SectionHeading-XCMdv8eZ.cjs');
|
|
10
10
|
var ButtonV2 = require('@arc-ui/components/ButtonV2');
|
|
11
11
|
var InformationCard = require('@arc-ui/components/InformationCard');
|
|
12
12
|
var VerticalSpace = require('@arc-ui/components/VerticalSpace');
|
|
@@ -14,6 +14,7 @@ var VisuallyHidden = require('@arc-ui/components/VisuallyHidden');
|
|
|
14
14
|
require('@arc-ui/components/Text');
|
|
15
15
|
require('@arc-ui/components/Image');
|
|
16
16
|
require('@arc-ui/components/Heading');
|
|
17
|
+
require('@arc-ui/components/Columns');
|
|
17
18
|
|
|
18
19
|
var styles = {"product-navigation-grid":"ProductNavigation-module_product-navigation-grid__RzFq8","productNavigation-skipLink":"ProductNavigation-module_productNavigation-skipLink__fy8ZJ"};
|
|
19
20
|
|
|
@@ -66,23 +67,23 @@ var ProductNavigation = function (_a) {
|
|
|
66
67
|
return (React.createElement("li", { key: "displayList-".concat(i), tabIndex: -1, ref: i === skipLinkCard ? cardRef : undefined, "data-cy": "list-item-".concat(i) },
|
|
67
68
|
React.createElement(InformationCard.InformationCard, tslib_es6.__assign({}, cardProps, { minHeight: minHeight !== null && minHeight !== void 0 ? minHeight : cardProps.minHeight, headingLevel: (_a = cardProps.headingLevel) !== null && _a !== void 0 ? _a : "2" }))));
|
|
68
69
|
})),
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
React.createElement(
|
|
79
|
-
React.createElement("
|
|
80
|
-
"
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
70
|
+
!hideButton &&
|
|
71
|
+
!(defaultExpanded && displayList.length === productList.length) && (React.createElement(React.Fragment, null,
|
|
72
|
+
React.createElement(VerticalSpace.VerticalSpace, { size: "40" }),
|
|
73
|
+
React.createElement("div", { style: { display: "flex" } },
|
|
74
|
+
!hideLessButton && (React.createElement(ButtonV2.ButtonV2, { label: displayList.length < productList.length
|
|
75
|
+
? "Show more"
|
|
76
|
+
: "Show less", buttonStyle: "secondary", onClick: clickController, isFullWidth: isMinWidthArcBreakpointS ? false : true, isLoading: isLoading })),
|
|
77
|
+
displaySkipButton && displayList.length > cardsToDisplay && (React.createElement("div", { id: "skip-link", className: index.classNames(styles["productNavigation-skipLink"]), tabIndex: -1 },
|
|
78
|
+
React.createElement(ButtonV2.ButtonV2, { label: "Move to first new card", buttonStyle: "primary", onClick: moveFocus, isFullWidth: isMinWidthArcBreakpointS ? false : true }))),
|
|
79
|
+
React.createElement(VisuallyHidden.VisuallyHidden, null,
|
|
80
|
+
React.createElement("div", { "aria-live": "polite", id: "aria-live-region", "aria-atomic": true },
|
|
81
|
+
React.createElement("p", null,
|
|
82
|
+
"Total products listed ",
|
|
83
|
+
displayList.length,
|
|
84
|
+
". Total products hidden ",
|
|
85
|
+
productList.length - displayList.length,
|
|
86
|
+
"."))))))));
|
|
86
87
|
};
|
|
87
88
|
|
|
88
89
|
exports.ProductNavigation = ProductNavigation;
|
|
@@ -3,8 +3,8 @@ import React__default, { useState, useRef, useEffect } from 'react';
|
|
|
3
3
|
import { c as classNames } from '../_shared/esm/index-BSO2EFem.mjs';
|
|
4
4
|
import { f as filterAttrs } from '../_shared/esm/filter-attrs-DZ7RCEZm.mjs';
|
|
5
5
|
import { useMediaQuery } from '@arc-ui/components/use-media-query';
|
|
6
|
-
import { A as ArcSizeBreakpointsS } from '../_shared/esm/index.es-
|
|
7
|
-
import { S as SectionHeading } from '../_shared/esm/SectionHeading-
|
|
6
|
+
import { A as ArcSizeBreakpointsS } from '../_shared/esm/index.es-DNGykRl2.mjs';
|
|
7
|
+
import { S as SectionHeading } from '../_shared/esm/SectionHeading-lyXLUtdr.mjs';
|
|
8
8
|
import { ButtonV2 } from '@arc-ui/components/ButtonV2';
|
|
9
9
|
import { InformationCard } from '@arc-ui/components/InformationCard';
|
|
10
10
|
import { VerticalSpace } from '@arc-ui/components/VerticalSpace';
|
|
@@ -12,6 +12,7 @@ import { VisuallyHidden } from '@arc-ui/components/VisuallyHidden';
|
|
|
12
12
|
import '@arc-ui/components/Text';
|
|
13
13
|
import '@arc-ui/components/Image';
|
|
14
14
|
import '@arc-ui/components/Heading';
|
|
15
|
+
import '@arc-ui/components/Columns';
|
|
15
16
|
|
|
16
17
|
var styles = {"product-navigation-grid":"ProductNavigation-module_product-navigation-grid__RzFq8","productNavigation-skipLink":"ProductNavigation-module_productNavigation-skipLink__fy8ZJ"};
|
|
17
18
|
|
|
@@ -64,23 +65,23 @@ var ProductNavigation = function (_a) {
|
|
|
64
65
|
return (React__default.createElement("li", { key: "displayList-".concat(i), tabIndex: -1, ref: i === skipLinkCard ? cardRef : undefined, "data-cy": "list-item-".concat(i) },
|
|
65
66
|
React__default.createElement(InformationCard, __assign({}, cardProps, { minHeight: minHeight !== null && minHeight !== void 0 ? minHeight : cardProps.minHeight, headingLevel: (_a = cardProps.headingLevel) !== null && _a !== void 0 ? _a : "2" }))));
|
|
66
67
|
})),
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
React__default.createElement(
|
|
77
|
-
React__default.createElement("
|
|
78
|
-
"
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
68
|
+
!hideButton &&
|
|
69
|
+
!(defaultExpanded && displayList.length === productList.length) && (React__default.createElement(React__default.Fragment, null,
|
|
70
|
+
React__default.createElement(VerticalSpace, { size: "40" }),
|
|
71
|
+
React__default.createElement("div", { style: { display: "flex" } },
|
|
72
|
+
!hideLessButton && (React__default.createElement(ButtonV2, { label: displayList.length < productList.length
|
|
73
|
+
? "Show more"
|
|
74
|
+
: "Show less", buttonStyle: "secondary", onClick: clickController, isFullWidth: isMinWidthArcBreakpointS ? false : true, isLoading: isLoading })),
|
|
75
|
+
displaySkipButton && displayList.length > cardsToDisplay && (React__default.createElement("div", { id: "skip-link", className: classNames(styles["productNavigation-skipLink"]), tabIndex: -1 },
|
|
76
|
+
React__default.createElement(ButtonV2, { label: "Move to first new card", buttonStyle: "primary", onClick: moveFocus, isFullWidth: isMinWidthArcBreakpointS ? false : true }))),
|
|
77
|
+
React__default.createElement(VisuallyHidden, null,
|
|
78
|
+
React__default.createElement("div", { "aria-live": "polite", id: "aria-live-region", "aria-atomic": true },
|
|
79
|
+
React__default.createElement("p", null,
|
|
80
|
+
"Total products listed ",
|
|
81
|
+
displayList.length,
|
|
82
|
+
". Total products hidden ",
|
|
83
|
+
productList.length - displayList.length,
|
|
84
|
+
"."))))))));
|
|
84
85
|
};
|
|
85
86
|
|
|
86
87
|
export { ProductNavigation };
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
var tslib_es6 = require('../_shared/cjs/tslib.es6-BxB9I209.cjs');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var index = require('../_shared/cjs/index-B7Z7sgRq.cjs');
|
|
6
|
-
var index_es = require('../_shared/cjs/index.es-
|
|
6
|
+
var index_es = require('../_shared/cjs/index.es-B73RVhhj.cjs');
|
|
7
7
|
var Carousel = require('@arc-ui/components/Carousel');
|
|
8
8
|
var Heading = require('@arc-ui/components/Heading');
|
|
9
9
|
var useMediaQuery = require('@arc-ui/components/use-media-query');
|
|
10
|
-
var SectionHeading = require('../_shared/cjs/SectionHeading-
|
|
10
|
+
var SectionHeading = require('../_shared/cjs/SectionHeading-XCMdv8eZ.cjs');
|
|
11
11
|
var MediaCard = require('@arc-ui/components/MediaCard');
|
|
12
12
|
var filterAttrs = require('../_shared/cjs/filter-attrs-BizjMsy0.cjs');
|
|
13
13
|
var ImpactCard = require('@arc-ui/components/ImpactCard');
|
|
@@ -18,8 +18,9 @@ var VerticalSpace = require('@arc-ui/components/VerticalSpace');
|
|
|
18
18
|
var BtIconArrowRightFill = require('../_shared/cjs/BtIconArrowRightFill-BVCZv7Lm.cjs');
|
|
19
19
|
require('@arc-ui/components/Text');
|
|
20
20
|
require('@arc-ui/components/Image');
|
|
21
|
+
require('@arc-ui/components/Columns');
|
|
21
22
|
|
|
22
|
-
var styles = {"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"};
|
|
23
|
+
var styles = {"PromoListing":"PromoListing-module_PromoListing__6ensv","CarouselWrapper":"PromoListing-module_CarouselWrapper__iYwWp","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"};
|
|
23
24
|
|
|
24
25
|
/**
|
|
25
26
|
* Use `PromoListing` to give supporting information about a page or proposition in the form of the card components (`ImpactCard`, `InformationCard`, `MediaCard` and `TypographyCard`).
|
|
@@ -65,7 +66,7 @@ var PromoListing = function (_a) {
|
|
|
65
66
|
button.label && (React.createElement(React.Fragment, null,
|
|
66
67
|
React.createElement(ButtonV2.ButtonV2, tslib_es6.__assign({}, button, { icon: button.buttonStyle == "compact" ? BtIconArrowRightFill.BtIconArrowRightFill : undefined, size: "m" })),
|
|
67
68
|
React.createElement(VerticalSpace.VerticalSpace, { size: "40" }))),
|
|
68
|
-
isCarousel && !isMinWidthArcBreakpointL ? (React.createElement("div", { className: styles.
|
|
69
|
+
isCarousel && !isMinWidthArcBreakpointL ? (React.createElement("div", { className: styles.CarouselWrapper },
|
|
69
70
|
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.cardWrapperCarousel) }, getCard(card))); })))) : (React.createElement("ul", { className: index.classNames(styles.cardGrid, styles["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) },
|
|
70
71
|
React.createElement("div", { "data-testid": "promoList-card".concat(index), className: styles.cardWrapper }, getCard(card)))); })))));
|
|
71
72
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { _ as __rest, a as __assign } from '../_shared/esm/tslib.es6-BVXMhEem.mjs';
|
|
2
2
|
import React__default, { useId } from 'react';
|
|
3
3
|
import { c as classNames } from '../_shared/esm/index-BSO2EFem.mjs';
|
|
4
|
-
import { a as ArcSizeBreakpointsL, b as ArcSizeBreakpointsM } from '../_shared/esm/index.es-
|
|
4
|
+
import { a as ArcSizeBreakpointsL, b as ArcSizeBreakpointsM } from '../_shared/esm/index.es-DNGykRl2.mjs';
|
|
5
5
|
import { Carousel } from '@arc-ui/components/Carousel';
|
|
6
6
|
import { Heading } from '@arc-ui/components/Heading';
|
|
7
7
|
import { useMediaQuery } from '@arc-ui/components/use-media-query';
|
|
8
|
-
import { S as SectionHeading } from '../_shared/esm/SectionHeading-
|
|
8
|
+
import { S as SectionHeading } from '../_shared/esm/SectionHeading-lyXLUtdr.mjs';
|
|
9
9
|
import { MediaCard } from '@arc-ui/components/MediaCard';
|
|
10
10
|
import { f as filterAttrs } from '../_shared/esm/filter-attrs-DZ7RCEZm.mjs';
|
|
11
11
|
import { ImpactCard } from '@arc-ui/components/ImpactCard';
|
|
@@ -16,8 +16,9 @@ import { VerticalSpace } from '@arc-ui/components/VerticalSpace';
|
|
|
16
16
|
import { B as BtIconArrowRightFill } from '../_shared/esm/BtIconArrowRightFill-D0zKgk3B.mjs';
|
|
17
17
|
import '@arc-ui/components/Text';
|
|
18
18
|
import '@arc-ui/components/Image';
|
|
19
|
+
import '@arc-ui/components/Columns';
|
|
19
20
|
|
|
20
|
-
var styles = {"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"};
|
|
21
|
+
var styles = {"PromoListing":"PromoListing-module_PromoListing__6ensv","CarouselWrapper":"PromoListing-module_CarouselWrapper__iYwWp","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"};
|
|
21
22
|
|
|
22
23
|
/**
|
|
23
24
|
* Use `PromoListing` to give supporting information about a page or proposition in the form of the card components (`ImpactCard`, `InformationCard`, `MediaCard` and `TypographyCard`).
|
|
@@ -63,7 +64,7 @@ var PromoListing = function (_a) {
|
|
|
63
64
|
button.label && (React__default.createElement(React__default.Fragment, null,
|
|
64
65
|
React__default.createElement(ButtonV2, __assign({}, button, { icon: button.buttonStyle == "compact" ? BtIconArrowRightFill : undefined, size: "m" })),
|
|
65
66
|
React__default.createElement(VerticalSpace, { size: "40" }))),
|
|
66
|
-
isCarousel && !isMinWidthArcBreakpointL ? (React__default.createElement("div", { className: styles.
|
|
67
|
+
isCarousel && !isMinWidthArcBreakpointL ? (React__default.createElement("div", { className: styles.CarouselWrapper },
|
|
67
68
|
React__default.createElement(Carousel, { overflow: "visible", itemsPerSlide: 1, behavior: "adaptive", withGutter: false }, cards === null || cards === void 0 ? void 0 : cards.map(function (card, i) { return (React__default.createElement("div", { key: "promolist-carousel-card-".concat(componentId, "-").concat(i), className: (styles.cardWrapperCarousel) }, getCard(card))); })))) : (React__default.createElement("ul", { className: classNames(styles.cardGrid, styles["columns-".concat(columns)]) }, cards === null || cards === void 0 ? void 0 : cards.map(function (card, index) { return (React__default.createElement("li", { key: "promolist-card--".concat(componentId, "-").concat(index) },
|
|
68
69
|
React__default.createElement("div", { "data-testid": "promoList-card".concat(index), className: styles.cardWrapper }, getCard(card)))); })))));
|
|
69
70
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.PromoListing-module_PromoListing__6ensv{max-width:1280px}.PromoListing-module_carouselSlide__AMTPF{height:100%;padding:6px}.PromoListing-module_cardGrid__llf73{display:grid;grid-template-columns:repeat(1,1fr);grid-auto-rows:1fr;grid-gap:16px;gap:16px;list-style:none;margin:0;padding:0}.PromoListing-module_cardWrapper__I4iwh{height:100%}.PromoListing-module_cardWrapper__I4iwh>*{height:100%}.PromoListing-module_cardWrapperCarousel__t-2qM{width:288px;height:100%;margin-right:16px}.PromoListing-module_cardWrapperCarousel__t-2qM>*{height:100%}@media (min-width:636px){.PromoListing-module_cardWrapperCarousel__t-2qM{margin-right:24px}.PromoListing-module_cardGrid__llf73{gap:24px}.PromoListing-module_cardGrid__llf73.PromoListing-module_columns-3__y6jWS{grid-template-columns:repeat(2,1fr)}.PromoListing-module_cardGrid__llf73.PromoListing-module_columns-2__GRFxb{grid-template-columns:repeat(2,1fr)}}@media (min-width:768px){.PromoListing-module_cardWrapperCarousel__t-2qM{width:348px}}@media (min-width:1024px){.PromoListing-module_cardGrid__llf73.PromoListing-module_columns-3__y6jWS{grid-template-columns:repeat(3,1fr)}.PromoListing-module_cardGrid__llf73.PromoListing-module_columns-2__GRFxb{grid-template-columns:repeat(2,1fr)}}@media (min-width:1280px){.PromoListing-module_cardGrid__llf73{gap:32px}}
|
|
1
|
+
.PromoListing-module_PromoListing__6ensv{max-width:1280px}.PromoListing-module_CarouselWrapper__iYwWp{overflow:hidden;margin:0 calc(-1 * var(--arc-size-section-margin-16));padding:6px var(--arc-size-section-margin-16)}@media (min-width:636px){.PromoListing-module_CarouselWrapper__iYwWp{margin:0 calc(-1 * var(--arc-size-section-margin-24));padding:6px var(--arc-size-section-margin-24)}}.PromoListing-module_carouselSlide__AMTPF{height:100%;padding:6px}.PromoListing-module_cardGrid__llf73{display:grid;grid-template-columns:repeat(1,1fr);grid-auto-rows:1fr;grid-gap:16px;gap:16px;list-style:none;margin:0;padding:0}.PromoListing-module_cardWrapper__I4iwh{height:100%}.PromoListing-module_cardWrapper__I4iwh>*{height:100%}.PromoListing-module_cardWrapperCarousel__t-2qM{width:288px;height:100%;margin-right:16px}.PromoListing-module_cardWrapperCarousel__t-2qM>*{height:100%}@media (min-width:636px){.PromoListing-module_cardWrapperCarousel__t-2qM{margin-right:24px}.PromoListing-module_cardGrid__llf73{gap:24px}.PromoListing-module_cardGrid__llf73.PromoListing-module_columns-3__y6jWS{grid-template-columns:repeat(2,1fr)}.PromoListing-module_cardGrid__llf73.PromoListing-module_columns-2__GRFxb{grid-template-columns:repeat(2,1fr)}}@media (min-width:768px){.PromoListing-module_cardWrapperCarousel__t-2qM{width:348px}}@media (min-width:1024px){.PromoListing-module_cardGrid__llf73.PromoListing-module_columns-3__y6jWS{grid-template-columns:repeat(3,1fr)}.PromoListing-module_cardGrid__llf73.PromoListing-module_columns-2__GRFxb{grid-template-columns:repeat(2,1fr)}}@media (min-width:1280px){.PromoListing-module_cardGrid__llf73{gap:32px}}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var tslib_es6 = require('../_shared/cjs/tslib.es6-BxB9I209.cjs');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var SectionHeading = require('../_shared/cjs/SectionHeading-
|
|
5
|
+
var SectionHeading = require('../_shared/cjs/SectionHeading-XCMdv8eZ.cjs');
|
|
6
6
|
var filterAttrs = require('../_shared/cjs/filter-attrs-BizjMsy0.cjs');
|
|
7
7
|
var ThumbnailSignpost = require('../_shared/cjs/ThumbnailSignpost-DymZmLlB.cjs');
|
|
8
8
|
require('../_shared/cjs/index-B7Z7sgRq.cjs');
|
|
@@ -10,6 +10,7 @@ require('@arc-ui/components/Text');
|
|
|
10
10
|
require('@arc-ui/components/VerticalSpace');
|
|
11
11
|
require('@arc-ui/components/Image');
|
|
12
12
|
require('@arc-ui/components/Heading');
|
|
13
|
+
require('@arc-ui/components/Columns');
|
|
13
14
|
require('../_shared/cjs/BtIconArrowRightFill-BVCZv7Lm.cjs');
|
|
14
15
|
require('@arc-ui/components/Surface');
|
|
15
16
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as __rest, a as __assign } from '../_shared/esm/tslib.es6-BVXMhEem.mjs';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { S as SectionHeading } from '../_shared/esm/SectionHeading-
|
|
3
|
+
import { S as SectionHeading } from '../_shared/esm/SectionHeading-lyXLUtdr.mjs';
|
|
4
4
|
import { f as filterAttrs } from '../_shared/esm/filter-attrs-DZ7RCEZm.mjs';
|
|
5
5
|
import { T as ThumbnailSignpost } from '../_shared/esm/ThumbnailSignpost-D6uye3mm.mjs';
|
|
6
6
|
import '../_shared/esm/index-BSO2EFem.mjs';
|
|
@@ -8,6 +8,7 @@ import '@arc-ui/components/Text';
|
|
|
8
8
|
import '@arc-ui/components/VerticalSpace';
|
|
9
9
|
import '@arc-ui/components/Image';
|
|
10
10
|
import '@arc-ui/components/Heading';
|
|
11
|
+
import '@arc-ui/components/Columns';
|
|
11
12
|
import '../_shared/esm/BtIconArrowRightFill-D0zKgk3B.mjs';
|
|
12
13
|
import '@arc-ui/components/Surface';
|
|
13
14
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var SectionHeading = require('../_shared/cjs/SectionHeading-
|
|
3
|
+
var SectionHeading = require('../_shared/cjs/SectionHeading-XCMdv8eZ.cjs');
|
|
4
4
|
require('../_shared/cjs/tslib.es6-BxB9I209.cjs');
|
|
5
5
|
require('react');
|
|
6
6
|
require('../_shared/cjs/index-B7Z7sgRq.cjs');
|
|
@@ -9,6 +9,7 @@ require('@arc-ui/components/Text');
|
|
|
9
9
|
require('@arc-ui/components/VerticalSpace');
|
|
10
10
|
require('@arc-ui/components/Image');
|
|
11
11
|
require('@arc-ui/components/Heading');
|
|
12
|
+
require('@arc-ui/components/Columns');
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { S as SectionHeading } from '../_shared/esm/SectionHeading-
|
|
1
|
+
export { S as SectionHeading } from '../_shared/esm/SectionHeading-lyXLUtdr.mjs';
|
|
2
2
|
import '../_shared/esm/tslib.es6-BVXMhEem.mjs';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '../_shared/esm/index-BSO2EFem.mjs';
|
|
@@ -7,3 +7,4 @@ import '@arc-ui/components/Text';
|
|
|
7
7
|
import '@arc-ui/components/VerticalSpace';
|
|
8
8
|
import '@arc-ui/components/Image';
|
|
9
9
|
import '@arc-ui/components/Heading';
|
|
10
|
+
import '@arc-ui/components/Columns';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.SectionHeading-
|
|
1
|
+
.SectionHeading-module_sectionHeading--hasImage__qaz6n{display:flex;flex-direction:column;gap:16px}.SectionHeading-module_sectionHeading--isCentered__i0fR8{text-align:center}@media (min-width:636px){.SectionHeading-module_sectionHeading--hasImage__qaz6n{align-items:center;flex-direction:row;gap:32px}}@media (min-width:768px){.SectionHeading-module_sectionHeading-content__ufB6w{padding-right:10px}}@media (min-width:1280px){.SectionHeading-module_sectionHeading-content__ufB6w{padding-right:0;padding-right:initial}}
|
|
@@ -10,7 +10,7 @@ var Align = require('@arc-ui/components/Align');
|
|
|
10
10
|
var Heading = require('@arc-ui/components/Heading');
|
|
11
11
|
var VerticalSpace = require('@arc-ui/components/VerticalSpace');
|
|
12
12
|
var Hidden = require('@arc-ui/components/Hidden');
|
|
13
|
-
var SectionHeading = require('../_shared/cjs/SectionHeading-
|
|
13
|
+
var SectionHeading = require('../_shared/cjs/SectionHeading-XCMdv8eZ.cjs');
|
|
14
14
|
require('../_shared/cjs/index-B7Z7sgRq.cjs');
|
|
15
15
|
require('@arc-ui/components/Image');
|
|
16
16
|
|
|
@@ -8,7 +8,7 @@ import { Align } from '@arc-ui/components/Align';
|
|
|
8
8
|
import { Heading } from '@arc-ui/components/Heading';
|
|
9
9
|
import { VerticalSpace } from '@arc-ui/components/VerticalSpace';
|
|
10
10
|
import { Hidden } from '@arc-ui/components/Hidden';
|
|
11
|
-
import { S as SectionHeading } from '../_shared/esm/SectionHeading-
|
|
11
|
+
import { S as SectionHeading } from '../_shared/esm/SectionHeading-lyXLUtdr.mjs';
|
|
12
12
|
import '../_shared/esm/index-BSO2EFem.mjs';
|
|
13
13
|
import '@arc-ui/components/Image';
|
|
14
14
|
|
package/lib/Summary/Summary.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var tslib_es6 = require('../_shared/cjs/tslib.es6-BxB9I209.cjs');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var index_es = require('../_shared/cjs/index.es-
|
|
5
|
+
var index_es = require('../_shared/cjs/index.es-B73RVhhj.cjs');
|
|
6
6
|
var Heading = require('@arc-ui/components/Heading');
|
|
7
7
|
var Text = require('@arc-ui/components/Text');
|
|
8
8
|
var Box = require('@arc-ui/components/Box');
|
package/lib/Summary/Summary.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as __rest, a as __assign } from '../_shared/esm/tslib.es6-BVXMhEem.mjs';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { b as ArcSizeBreakpointsM } from '../_shared/esm/index.es-
|
|
3
|
+
import { b as ArcSizeBreakpointsM } from '../_shared/esm/index.es-DNGykRl2.mjs';
|
|
4
4
|
import { Heading } from '@arc-ui/components/Heading';
|
|
5
5
|
import { Text } from '@arc-ui/components/Text';
|
|
6
6
|
import { Box } from '@arc-ui/components/Box';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var tslib_es6 = require('./tslib.es6-BxB9I209.cjs');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var index = require('./index-B7Z7sgRq.cjs');
|
|
6
|
+
var filterAttrs = require('./filter-attrs-BizjMsy0.cjs');
|
|
7
|
+
var Text = require('@arc-ui/components/Text');
|
|
8
|
+
var VerticalSpace = require('@arc-ui/components/VerticalSpace');
|
|
9
|
+
var Image = require('@arc-ui/components/Image');
|
|
10
|
+
var Heading = require('@arc-ui/components/Heading');
|
|
11
|
+
var Columns = require('@arc-ui/components/Columns');
|
|
12
|
+
|
|
13
|
+
var styles = {"sectionHeading--hasImage":"SectionHeading-module_sectionHeading--hasImage__qaz6n","sectionHeading--isCentered":"SectionHeading-module_sectionHeading--isCentered__i0fR8","sectionHeading-content":"SectionHeading-module_sectionHeading-content__ufB6w"};
|
|
14
|
+
|
|
15
|
+
var SectionHeading = function (_a) {
|
|
16
|
+
var _b, _c;
|
|
17
|
+
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, _f = _a.isCentered, isCentered = _f === void 0 ? false : _f, props = tslib_es6.__rest(_a, ["heading", "content", "id", "image", "isHeadingWordWrap", "isPadded", "headingLevel", "isCentered"]);
|
|
18
|
+
return (React.createElement(Columns.Columns, null,
|
|
19
|
+
React.createElement(Columns.ColumnsCol, { spanM: isPadded ? 9 : 12 },
|
|
20
|
+
React.createElement("div", tslib_es6.__assign({ className: index.classNames((_b = {},
|
|
21
|
+
_b[styles["sectionHeading--isCentered"]] = isCentered,
|
|
22
|
+
_b)) }, filterAttrs.filterAttrs(props)),
|
|
23
|
+
React.createElement("div", { className: index.classNames((_c = {},
|
|
24
|
+
_c[styles["sectionHeading--hasImage"]] = image,
|
|
25
|
+
_c)) },
|
|
26
|
+
image && React.createElement(Image.Image, tslib_es6.__assign({}, image, { width: 68, fit: "cover" })),
|
|
27
|
+
React.createElement(Heading.Heading, { level: headingLevel, id: id, size: "xl", isWordWrap: isHeadingWordWrap }, heading)),
|
|
28
|
+
content && (React.createElement("div", { className: styles["sectionHeading-content"] },
|
|
29
|
+
React.createElement(VerticalSpace.VerticalSpace, { size: "24" }),
|
|
30
|
+
React.createElement(Text.Text, { size: "l", elementType: "p" }, content))),
|
|
31
|
+
React.createElement(VerticalSpace.VerticalSpace, { size: "40" })))));
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
exports.SectionHeading = SectionHeading;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { _ as __rest, a as __assign } from './tslib.es6-BVXMhEem.mjs';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { c as classNames } from './index-BSO2EFem.mjs';
|
|
4
|
+
import { f as filterAttrs } from './filter-attrs-DZ7RCEZm.mjs';
|
|
5
|
+
import { Text } from '@arc-ui/components/Text';
|
|
6
|
+
import { VerticalSpace } from '@arc-ui/components/VerticalSpace';
|
|
7
|
+
import { Image } from '@arc-ui/components/Image';
|
|
8
|
+
import { Heading } from '@arc-ui/components/Heading';
|
|
9
|
+
import { Columns, ColumnsCol } from '@arc-ui/components/Columns';
|
|
10
|
+
|
|
11
|
+
var styles = {"sectionHeading--hasImage":"SectionHeading-module_sectionHeading--hasImage__qaz6n","sectionHeading--isCentered":"SectionHeading-module_sectionHeading--isCentered__i0fR8","sectionHeading-content":"SectionHeading-module_sectionHeading-content__ufB6w"};
|
|
12
|
+
|
|
13
|
+
var SectionHeading = function (_a) {
|
|
14
|
+
var _b, _c;
|
|
15
|
+
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, _f = _a.isCentered, isCentered = _f === void 0 ? false : _f, props = __rest(_a, ["heading", "content", "id", "image", "isHeadingWordWrap", "isPadded", "headingLevel", "isCentered"]);
|
|
16
|
+
return (React__default.createElement(Columns, null,
|
|
17
|
+
React__default.createElement(ColumnsCol, { spanM: isPadded ? 9 : 12 },
|
|
18
|
+
React__default.createElement("div", __assign({ className: classNames((_b = {},
|
|
19
|
+
_b[styles["sectionHeading--isCentered"]] = isCentered,
|
|
20
|
+
_b)) }, filterAttrs(props)),
|
|
21
|
+
React__default.createElement("div", { className: classNames((_c = {},
|
|
22
|
+
_c[styles["sectionHeading--hasImage"]] = image,
|
|
23
|
+
_c)) },
|
|
24
|
+
image && React__default.createElement(Image, __assign({}, image, { width: 68, fit: "cover" })),
|
|
25
|
+
React__default.createElement(Heading, { level: headingLevel, id: id, size: "xl", isWordWrap: isHeadingWordWrap }, heading)),
|
|
26
|
+
content && (React__default.createElement("div", { className: styles["sectionHeading-content"] },
|
|
27
|
+
React__default.createElement(VerticalSpace, { size: "24" }),
|
|
28
|
+
React__default.createElement(Text, { size: "l", elementType: "p" }, content))),
|
|
29
|
+
React__default.createElement(VerticalSpace, { size: "40" })))));
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export { SectionHeading as S };
|