@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
|
@@ -2,24 +2,17 @@ import React, { useId } from 'react';
|
|
|
2
2
|
import { useMediaQuery } from '@arc-ui/components/use-media-query';
|
|
3
3
|
import { ButtonV2 } from '@arc-ui/components/ButtonV2';
|
|
4
4
|
import { VerticalSpace } from '@arc-ui/components/VerticalSpace';
|
|
5
|
-
import {
|
|
5
|
+
import { B as BtIconArrowRightFill } from '../_shared/esm/BtIconArrowRightFill-D0zKgk3B.mjs';
|
|
6
|
+
import { S as SectionHeading } from '../_shared/esm/SectionHeading-CpDLCndw.mjs';
|
|
6
7
|
import { c as classNames } from '../_shared/esm/index-BfTCfPZ1.mjs';
|
|
7
8
|
import { Heading } from '@arc-ui/components/Heading';
|
|
8
9
|
import { Icon } from '@arc-ui/components/Icon';
|
|
9
10
|
import { Text } from '@arc-ui/components/Text';
|
|
10
11
|
import { Link } from '@arc-ui/components/Link';
|
|
11
12
|
import '../_shared/esm/tslib.es6-D6Wu-xwB.mjs';
|
|
12
|
-
import '../_shared/esm/filter-
|
|
13
|
+
import '../_shared/esm/filter-attrs-DZ7RCEZm.mjs';
|
|
13
14
|
import '@arc-ui/components/Image';
|
|
14
15
|
|
|
15
|
-
/**
|
|
16
|
-
* Do not edit directly
|
|
17
|
-
* Generated file
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
const BtIconArrowRightFill =
|
|
21
|
-
"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";
|
|
22
|
-
|
|
23
16
|
var styles = {"highlights":"Highlights-module_highlights__Hf7Zq","highlightItem":"Highlights-module_highlightItem__-N6le","highlights2Column":"Highlights-module_highlights2Column__6qIuI","highlights3Column":"Highlights-module_highlights3Column__qsCMP"};
|
|
24
17
|
|
|
25
18
|
var getListHeadingLevel = function (level) {
|
|
@@ -38,7 +31,7 @@ var HighlightItem = function (_a) {
|
|
|
38
31
|
React.createElement(VerticalSpace, { size: "16" }),
|
|
39
32
|
React.createElement(Text, null, text),
|
|
40
33
|
React.createElement(VerticalSpace, { size: "16" }),
|
|
41
|
-
link && (React.createElement(Link, { href: link.url, id: link.url, onClick: link.onClick, rel: "", size: "m", target: "_self", title: link.textLink }, link.textLink))));
|
|
34
|
+
link && (React.createElement(Link, { href: link.url, id: link.url, "aria-label": link.ariaLabel, onClick: link.onClick, rel: "", size: "m", target: "_self", title: link.textLink }, link.textLink))));
|
|
42
35
|
};
|
|
43
36
|
|
|
44
37
|
var HighlightList = function (_a) {
|
|
@@ -57,14 +50,14 @@ var HighlightList = function (_a) {
|
|
|
57
50
|
*/
|
|
58
51
|
var Highlights = function (_a) {
|
|
59
52
|
var _b, _c, _d;
|
|
60
|
-
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;
|
|
53
|
+
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;
|
|
61
54
|
var isMaxWidthArcBreakpointXs = useMediaQuery("(max-width: 767px)");
|
|
62
55
|
return (React.createElement("div", null,
|
|
63
|
-
React.createElement(SectionHeading, { isPadded: true, "data-testid": "highlights-header", heading: heading, headingLevel: headingLevel, content: content }),
|
|
56
|
+
React.createElement(SectionHeading, { isPadded: true, id: id, "data-testid": "highlights-header", heading: heading, headingLevel: headingLevel, isHeadingWordWrap: isHeadingWordWrap, content: content }),
|
|
64
57
|
React.createElement(HighlightList, { "data-testid": "highlights-list-container", listItems: listItems, columns: columns, isSmallIcon: isMaxWidthArcBreakpointXs, headingLevel: headingLevel }),
|
|
65
58
|
cta && (React.createElement(React.Fragment, null,
|
|
66
59
|
React.createElement(VerticalSpace, { size: "24" }),
|
|
67
|
-
React.createElement(ButtonV2, { label: cta.label, href: cta.href, onClick: cta.onClick, size: "m", buttonStyle: cta.buttonStyle, icon: cta.buttonStyle === "compact"
|
|
60
|
+
React.createElement(ButtonV2, { label: cta.label, href: cta.href, onClick: cta.onClick, size: "m", ariaLabel: cta.ariaLabel, buttonStyle: cta.buttonStyle, icon: cta.buttonStyle === "compact"
|
|
68
61
|
? ((_b = cta.icon) !== null && _b !== void 0 ? _b : BtIconArrowRightFill)
|
|
69
62
|
: undefined, iconActive: cta.buttonStyle === "compact"
|
|
70
63
|
? ((_c = cta.iconActive) !== null && _c !== void 0 ? _c : BtIconArrowRightFill)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var tslib_es6 = require('../_shared/cjs/tslib.es6-BxB9I209.cjs');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var index = require('../_shared/cjs/index-Bp6Dd2i1.cjs');
|
|
6
|
+
var filterAttrs = require('../_shared/cjs/filter-attrs-BizjMsy0.cjs');
|
|
7
|
+
var Icon = require('@arc-ui/components/Icon');
|
|
8
|
+
var BtIconArrowAltRight = require('../_shared/cjs/BtIconArrowAltRight-CLQdP61r.cjs');
|
|
9
|
+
|
|
10
|
+
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"};
|
|
11
|
+
|
|
12
|
+
var LinkTile = function (_a) {
|
|
13
|
+
var text = _a.text, href = _a.href, _b = _a.showIcon, showIcon = _b === void 0 ? true : _b, className = _a.className, props = tslib_es6.__rest(_a, ["text", "href", "showIcon", "className"]);
|
|
14
|
+
var Component = href ? "a" : "div";
|
|
15
|
+
var linkProps = href ? { href: href } : {};
|
|
16
|
+
return (React.createElement(Component, tslib_es6.__assign({ className: index.classNames(styles["link-tile"], className) }, linkProps, filterAttrs.filterAttrs(props)), text && (React.createElement("div", { className: styles["link-tile-content"] },
|
|
17
|
+
React.createElement("span", { className: styles["link-tile-text"] }, text),
|
|
18
|
+
showIcon && React.createElement(Icon.Icon, { icon: BtIconArrowAltRight.BtIconArrowAltRight, size: 32 })))));
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
exports.LinkTile = LinkTile;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { a as __rest, _ as __assign } from '../_shared/esm/tslib.es6-D6Wu-xwB.mjs';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { c as classNames } from '../_shared/esm/index-BfTCfPZ1.mjs';
|
|
4
|
+
import { f as filterAttrs } from '../_shared/esm/filter-attrs-DZ7RCEZm.mjs';
|
|
5
|
+
import { Icon } from '@arc-ui/components/Icon';
|
|
6
|
+
import { B as BtIconArrowAltRight } from '../_shared/esm/BtIconArrowAltRight-VH6RTTnL.mjs';
|
|
7
|
+
|
|
8
|
+
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"};
|
|
9
|
+
|
|
10
|
+
var LinkTile = function (_a) {
|
|
11
|
+
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"]);
|
|
12
|
+
var Component = href ? "a" : "div";
|
|
13
|
+
var linkProps = href ? { href: href } : {};
|
|
14
|
+
return (React.createElement(Component, __assign({ className: classNames(styles["link-tile"], className) }, linkProps, filterAttrs(props)), text && (React.createElement("div", { className: styles["link-tile-content"] },
|
|
15
|
+
React.createElement("span", { className: styles["link-tile-text"] }, text),
|
|
16
|
+
showIcon && React.createElement(Icon, { icon: BtIconArrowAltRight, size: 32 })))));
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export { LinkTile };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.LinkTile-module_link-tile__xVUP3{display:flex;flex-direction:column;width:306px;border:1px solid #c8c8c8;border-radius:32px;padding:24px;background:#ffffff;text-decoration:none;cursor:pointer;transition:border-color 0.2s ease,border-radius 0.2s ease}.LinkTile-module_link-tile-content__H-QN8{display:flex;align-items:center;justify-content:space-between;gap:8px}.LinkTile-module_link-tile-text__0K6zf{font-family:"BT Curve",sans-serif;font-size:16px;font-weight:500;line-height:24px;letter-spacing:0;color:#5514b4;transition:color 0.2s ease;flex:1}.LinkTile-module_link-tile__xVUP3 .LinkTile-module_link-tile-content__H-QN8 svg{color:#5514b4;flex-shrink:0;transition:color 0.2s ease}.LinkTile-module_link-tile__xVUP3:hover{border-color:#5514b4}.LinkTile-module_link-tile__xVUP3:active{border-radius:32px}.LinkTile-module_link-tile__xVUP3:hover .LinkTile-module_link-tile-text__0K6zf,.LinkTile-module_link-tile__xVUP3:hover .LinkTile-module_link-tile-content__H-QN8 svg{color:#3f187f}@media (max-width: 1023px){.LinkTile-module_link-tile__xVUP3{padding:24px 16px 24px 24px}}
|
|
@@ -3,17 +3,17 @@
|
|
|
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-Bp6Dd2i1.cjs');
|
|
6
|
-
var
|
|
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-DzI6hGjj.cjs');
|
|
9
|
+
var SectionHeading = require('../_shared/cjs/SectionHeading-DeSFM0HV.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');
|
|
13
13
|
var VisuallyHidden = require('@arc-ui/components/VisuallyHidden');
|
|
14
|
-
require('@arc-ui/components/Heading');
|
|
15
14
|
require('@arc-ui/components/Text');
|
|
16
15
|
require('@arc-ui/components/Image');
|
|
16
|
+
require('@arc-ui/components/Heading');
|
|
17
17
|
|
|
18
18
|
var styles = {"product-navigation-grid":"ProductNavigation-module_product-navigation-grid__RzFq8","productNavigation-skipLink":"ProductNavigation-module_productNavigation-skipLink__fy8ZJ"};
|
|
19
19
|
|
|
@@ -21,7 +21,7 @@ var styles = {"product-navigation-grid":"ProductNavigation-module_product-naviga
|
|
|
21
21
|
* Use `ProductNavigation` to give a collection of product information cards collected within a grid that has optional show/hide capability
|
|
22
22
|
*/
|
|
23
23
|
var ProductNavigation = function (_a) {
|
|
24
|
-
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 = tslib_es6.__rest(_a, ["heading", "headingLevel", "content", "hideButton", "productList", "defaultExpanded", "minHeight", "cardsToDisplay", "listIncrement", "onClickMore", "onClickLess", "hideShowLess", "isLoading", "image"]);
|
|
24
|
+
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 = tslib_es6.__rest(_a, ["heading", "id", "headingLevel", "isHeadingWordWrap", "content", "hideButton", "productList", "defaultExpanded", "minHeight", "cardsToDisplay", "listIncrement", "onClickMore", "onClickLess", "hideShowLess", "isLoading", "image"]);
|
|
25
25
|
var _g = React.useState(false), hideLessButton = _g[0], setHideLessButton = _g[1];
|
|
26
26
|
var _h = React.useState(cardsToDisplay), skipLinkCard = _h[0], setSkipLinkCard = _h[1];
|
|
27
27
|
var _j = React.useState(productList.slice(0, cardsToDisplay)), displayList = _j[0], setDisplayList = _j[1];
|
|
@@ -57,15 +57,12 @@ var ProductNavigation = function (_a) {
|
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
59
|
var isMinWidthArcBreakpointS = useMediaQuery.useMediaQuery("(min-width: ".concat(index_es.ArcSizeBreakpointsS, ")"));
|
|
60
|
-
return (React.createElement("div", tslib_es6.__assign({},
|
|
61
|
-
React.createElement(SectionHeading.SectionHeading, { isPadded: true, "data-testid": "ProductNavigation-header", heading: heading, headingLevel: headingLevel, content: content, image: image }),
|
|
62
|
-
React.createElement("ul", { className: index.classNames(styles["product-navigation-grid"]) }, displayList === null || displayList === void 0 ? void 0 : displayList.map(function (
|
|
63
|
-
var
|
|
60
|
+
return (React.createElement("div", tslib_es6.__assign({}, filterAttrs.filterAttrs(props)),
|
|
61
|
+
React.createElement(SectionHeading.SectionHeading, { isPadded: true, id: id, "data-testid": "ProductNavigation-header", heading: heading, headingLevel: headingLevel, isHeadingWordWrap: isHeadingWordWrap, content: content, image: image }),
|
|
62
|
+
React.createElement("ul", { className: index.classNames(styles["product-navigation-grid"]) }, displayList === null || displayList === void 0 ? void 0 : displayList.map(function (cardProps, i) {
|
|
63
|
+
var _a;
|
|
64
64
|
return (React.createElement("li", { key: "displayList-".concat(i), tabIndex: -1, ref: i === skipLinkCard ? cardRef : undefined, "data-cy": "list-item-".concat(i) },
|
|
65
|
-
React.createElement(InformationCard.InformationCard, {
|
|
66
|
-
label: label,
|
|
67
|
-
href: href,
|
|
68
|
-
}, minHeight: minHeight, heading: heading, headingLevel: "2", text: text })));
|
|
65
|
+
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" }))));
|
|
69
66
|
})),
|
|
70
67
|
React.createElement(VerticalSpace.VerticalSpace, { size: "40" }),
|
|
71
68
|
React.createElement("div", { style: { display: "flex" } },
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { a as __rest, _ as __assign } from '../_shared/esm/tslib.es6-D6Wu-xwB.mjs';
|
|
2
2
|
import React, { useState, useRef, useEffect } from 'react';
|
|
3
3
|
import { c as classNames } from '../_shared/esm/index-BfTCfPZ1.mjs';
|
|
4
|
-
import { f as
|
|
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-B6Bolkcx.mjs';
|
|
7
|
+
import { S as SectionHeading } from '../_shared/esm/SectionHeading-CpDLCndw.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';
|
|
11
11
|
import { VisuallyHidden } from '@arc-ui/components/VisuallyHidden';
|
|
12
|
-
import '@arc-ui/components/Heading';
|
|
13
12
|
import '@arc-ui/components/Text';
|
|
14
13
|
import '@arc-ui/components/Image';
|
|
14
|
+
import '@arc-ui/components/Heading';
|
|
15
15
|
|
|
16
16
|
var styles = {"product-navigation-grid":"ProductNavigation-module_product-navigation-grid__RzFq8","productNavigation-skipLink":"ProductNavigation-module_productNavigation-skipLink__fy8ZJ"};
|
|
17
17
|
|
|
@@ -19,7 +19,7 @@ var styles = {"product-navigation-grid":"ProductNavigation-module_product-naviga
|
|
|
19
19
|
* Use `ProductNavigation` to give a collection of product information cards collected within a grid that has optional show/hide capability
|
|
20
20
|
*/
|
|
21
21
|
var ProductNavigation = function (_a) {
|
|
22
|
-
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"]);
|
|
22
|
+
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"]);
|
|
23
23
|
var _g = useState(false), hideLessButton = _g[0], setHideLessButton = _g[1];
|
|
24
24
|
var _h = useState(cardsToDisplay), skipLinkCard = _h[0], setSkipLinkCard = _h[1];
|
|
25
25
|
var _j = useState(productList.slice(0, cardsToDisplay)), displayList = _j[0], setDisplayList = _j[1];
|
|
@@ -55,15 +55,12 @@ var ProductNavigation = function (_a) {
|
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
57
|
var isMinWidthArcBreakpointS = useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsS, ")"));
|
|
58
|
-
return (React.createElement("div", __assign({},
|
|
59
|
-
React.createElement(SectionHeading, { isPadded: true, "data-testid": "ProductNavigation-header", heading: heading, headingLevel: headingLevel, content: content, image: image }),
|
|
60
|
-
React.createElement("ul", { className: classNames(styles["product-navigation-grid"]) }, displayList === null || displayList === void 0 ? void 0 : displayList.map(function (
|
|
61
|
-
var
|
|
58
|
+
return (React.createElement("div", __assign({}, filterAttrs(props)),
|
|
59
|
+
React.createElement(SectionHeading, { isPadded: true, id: id, "data-testid": "ProductNavigation-header", heading: heading, headingLevel: headingLevel, isHeadingWordWrap: isHeadingWordWrap, content: content, image: image }),
|
|
60
|
+
React.createElement("ul", { className: classNames(styles["product-navigation-grid"]) }, displayList === null || displayList === void 0 ? void 0 : displayList.map(function (cardProps, i) {
|
|
61
|
+
var _a;
|
|
62
62
|
return (React.createElement("li", { key: "displayList-".concat(i), tabIndex: -1, ref: i === skipLinkCard ? cardRef : undefined, "data-cy": "list-item-".concat(i) },
|
|
63
|
-
React.createElement(InformationCard, {
|
|
64
|
-
label: label,
|
|
65
|
-
href: href,
|
|
66
|
-
}, minHeight: minHeight, heading: heading, headingLevel: "2", text: text })));
|
|
63
|
+
React.createElement(InformationCard, __assign({}, cardProps, { minHeight: minHeight !== null && minHeight !== void 0 ? minHeight : cardProps.minHeight, headingLevel: (_a = cardProps.headingLevel) !== null && _a !== void 0 ? _a : "2" }))));
|
|
67
64
|
})),
|
|
68
65
|
React.createElement(VerticalSpace, { size: "40" }),
|
|
69
66
|
React.createElement("div", { style: { display: "flex" } },
|
|
@@ -3,18 +3,20 @@
|
|
|
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-Bp6Dd2i1.cjs');
|
|
6
|
-
var index_es = require('../_shared/cjs/index.es-
|
|
6
|
+
var index_es = require('../_shared/cjs/index.es-DzI6hGjj.cjs');
|
|
7
7
|
var Carousel = require('@arc-ui/components/Carousel');
|
|
8
|
+
var Heading = require('@arc-ui/components/Heading');
|
|
8
9
|
var useMediaQuery = require('@arc-ui/components/use-media-query');
|
|
9
|
-
var SectionHeading = require('../_shared/cjs/SectionHeading-
|
|
10
|
+
var SectionHeading = require('../_shared/cjs/SectionHeading-DeSFM0HV.cjs');
|
|
10
11
|
var MediaCard = require('@arc-ui/components/MediaCard');
|
|
11
12
|
var ImpactCard = require('@arc-ui/components/ImpactCard');
|
|
12
13
|
var InformationCard = require('@arc-ui/components/InformationCard');
|
|
13
14
|
var TypographyCard = require('@arc-ui/components/TypographyCard');
|
|
14
|
-
require('
|
|
15
|
-
require('@arc-ui/components/
|
|
15
|
+
var ButtonV2 = require('@arc-ui/components/ButtonV2');
|
|
16
|
+
var VerticalSpace = require('@arc-ui/components/VerticalSpace');
|
|
17
|
+
var BtIconArrowRightFill = require('../_shared/cjs/BtIconArrowRightFill-BVCZv7Lm.cjs');
|
|
18
|
+
require('../_shared/cjs/filter-attrs-BizjMsy0.cjs');
|
|
16
19
|
require('@arc-ui/components/Text');
|
|
17
|
-
require('@arc-ui/components/VerticalSpace');
|
|
18
20
|
require('@arc-ui/components/Image');
|
|
19
21
|
|
|
20
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,8 +25,8 @@ var styles = {"PromoListing":"PromoListing-module_PromoListing__6ensv","carousel
|
|
|
23
25
|
* Use `PromoListing` to give supporting information about a page or proposition in the form of the card components (`ImpactCard`, `InformationCard`, `MediaCard` and `TypographyCard`).
|
|
24
26
|
*/
|
|
25
27
|
var PromoListing = function (_a) {
|
|
26
|
-
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;
|
|
27
|
-
var
|
|
28
|
+
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;
|
|
29
|
+
var componentId = React.useId();
|
|
28
30
|
var isMinWidthArcBreakpointL = useMediaQuery.useMediaQuery("(min-width: ".concat(index_es.ArcSizeBreakpointsL, ")"));
|
|
29
31
|
var isMinWidthArcBreakpointM = useMediaQuery.useMediaQuery("(min-width: ".concat(index_es.ArcSizeBreakpointsM, ")"));
|
|
30
32
|
var cardAspectRatios = columns === "3" ? "10-16" : "3-4";
|
|
@@ -56,9 +58,15 @@ var PromoListing = function (_a) {
|
|
|
56
58
|
return React.createElement(CardComponent, tslib_es6.__assign({}, card, commonProps));
|
|
57
59
|
};
|
|
58
60
|
return (React.createElement("div", { className: styles.PromoListing },
|
|
59
|
-
React.createElement(
|
|
61
|
+
overlineLabel && (React.createElement(React.Fragment, null,
|
|
62
|
+
React.createElement(Heading.Heading, { level: overlineHeadingLevel, fontStyle: "overline" }, overlineLabel),
|
|
63
|
+
React.createElement(VerticalSpace.VerticalSpace, { size: "12" }))),
|
|
64
|
+
React.createElement(SectionHeading.SectionHeading, { isPadded: true, id: id, "data-testid": "PromoListing-header", heading: heading, isHeadingWordWrap: isHeadingWordWrap, headingLevel: headingLevel, content: content }),
|
|
65
|
+
button.label && (React.createElement(React.Fragment, null,
|
|
66
|
+
React.createElement(ButtonV2.ButtonV2, tslib_es6.__assign({}, button, { icon: button.buttonStyle == "compact" ? BtIconArrowRightFill.BtIconArrowRightFill : undefined, size: "m" })),
|
|
67
|
+
React.createElement(VerticalSpace.VerticalSpace, { size: "40" }))),
|
|
60
68
|
isCarousel && !isMinWidthArcBreakpointL ? (React.createElement("div", { className: styles.promolistingCarouselWrapper },
|
|
61
|
-
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(
|
|
69
|
+
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) },
|
|
62
70
|
React.createElement("div", { "data-testid": "promoList-card".concat(index), className: styles.cardWrapper }, getCard(card)))); })))));
|
|
63
71
|
};
|
|
64
72
|
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import { _ as __assign } from '../_shared/esm/tslib.es6-D6Wu-xwB.mjs';
|
|
2
2
|
import React, { useId } from 'react';
|
|
3
3
|
import { c as classNames } from '../_shared/esm/index-BfTCfPZ1.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-B6Bolkcx.mjs';
|
|
5
5
|
import { Carousel } from '@arc-ui/components/Carousel';
|
|
6
|
+
import { Heading } from '@arc-ui/components/Heading';
|
|
6
7
|
import { useMediaQuery } from '@arc-ui/components/use-media-query';
|
|
7
|
-
import { S as SectionHeading } from '../_shared/esm/SectionHeading-
|
|
8
|
+
import { S as SectionHeading } from '../_shared/esm/SectionHeading-CpDLCndw.mjs';
|
|
8
9
|
import { MediaCard } from '@arc-ui/components/MediaCard';
|
|
9
10
|
import { ImpactCard } from '@arc-ui/components/ImpactCard';
|
|
10
11
|
import { InformationCard } from '@arc-ui/components/InformationCard';
|
|
11
12
|
import { TypographyCard } from '@arc-ui/components/TypographyCard';
|
|
12
|
-
import '
|
|
13
|
-
import '@arc-ui/components/
|
|
13
|
+
import { ButtonV2 } from '@arc-ui/components/ButtonV2';
|
|
14
|
+
import { VerticalSpace } from '@arc-ui/components/VerticalSpace';
|
|
15
|
+
import { B as BtIconArrowRightFill } from '../_shared/esm/BtIconArrowRightFill-D0zKgk3B.mjs';
|
|
16
|
+
import '../_shared/esm/filter-attrs-DZ7RCEZm.mjs';
|
|
14
17
|
import '@arc-ui/components/Text';
|
|
15
|
-
import '@arc-ui/components/VerticalSpace';
|
|
16
18
|
import '@arc-ui/components/Image';
|
|
17
19
|
|
|
18
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,8 +23,8 @@ var styles = {"PromoListing":"PromoListing-module_PromoListing__6ensv","carousel
|
|
|
21
23
|
* Use `PromoListing` to give supporting information about a page or proposition in the form of the card components (`ImpactCard`, `InformationCard`, `MediaCard` and `TypographyCard`).
|
|
22
24
|
*/
|
|
23
25
|
var PromoListing = function (_a) {
|
|
24
|
-
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;
|
|
25
|
-
var
|
|
26
|
+
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;
|
|
27
|
+
var componentId = useId();
|
|
26
28
|
var isMinWidthArcBreakpointL = useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsL, ")"));
|
|
27
29
|
var isMinWidthArcBreakpointM = useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsM, ")"));
|
|
28
30
|
var cardAspectRatios = columns === "3" ? "10-16" : "3-4";
|
|
@@ -54,9 +56,15 @@ var PromoListing = function (_a) {
|
|
|
54
56
|
return React.createElement(CardComponent, __assign({}, card, commonProps));
|
|
55
57
|
};
|
|
56
58
|
return (React.createElement("div", { className: styles.PromoListing },
|
|
57
|
-
React.createElement(
|
|
59
|
+
overlineLabel && (React.createElement(React.Fragment, null,
|
|
60
|
+
React.createElement(Heading, { level: overlineHeadingLevel, fontStyle: "overline" }, overlineLabel),
|
|
61
|
+
React.createElement(VerticalSpace, { size: "12" }))),
|
|
62
|
+
React.createElement(SectionHeading, { isPadded: true, id: id, "data-testid": "PromoListing-header", heading: heading, isHeadingWordWrap: isHeadingWordWrap, headingLevel: headingLevel, content: content }),
|
|
63
|
+
button.label && (React.createElement(React.Fragment, null,
|
|
64
|
+
React.createElement(ButtonV2, __assign({}, button, { icon: button.buttonStyle == "compact" ? BtIconArrowRightFill : undefined, size: "m" })),
|
|
65
|
+
React.createElement(VerticalSpace, { size: "40" }))),
|
|
58
66
|
isCarousel && !isMinWidthArcBreakpointL ? (React.createElement("div", { className: styles.promolistingCarouselWrapper },
|
|
59
|
-
React.createElement(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(
|
|
67
|
+
React.createElement(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: 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) },
|
|
60
68
|
React.createElement("div", { "data-testid": "promoList-card".concat(index), className: styles.cardWrapper }, getCard(card)))); })))));
|
|
61
69
|
};
|
|
62
70
|
|
package/lib/Quote/Quote.cjs
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
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-Bp6Dd2i1.cjs');
|
|
6
|
-
var
|
|
7
|
-
var Author = require('../_shared/cjs/Author-
|
|
6
|
+
var filterAttrs = require('../_shared/cjs/filter-attrs-BizjMsy0.cjs');
|
|
7
|
+
var Author = require('../_shared/cjs/Author-D4dKNQem.cjs');
|
|
8
8
|
require('@arc-ui/components/Grid');
|
|
9
9
|
require('@arc-ui/components/Avatar');
|
|
10
10
|
require('@arc-ui/components/Heading');
|
|
@@ -16,7 +16,7 @@ var styles = {"blockQuote":"Quote-module_blockQuote__STj-z","quoteContent":"Quot
|
|
|
16
16
|
* 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.*/
|
|
17
17
|
var Quote = function (_a) {
|
|
18
18
|
var author = _a.author, _b = _a.styling, styling = _b === void 0 ? "Default" : _b, content = _a.content, citeUrl = _a.citeUrl, props = tslib_es6.__rest(_a, ["author", "styling", "content", "citeUrl"]);
|
|
19
|
-
return (React.createElement("div", tslib_es6.__assign({ className: "community-component--quote", "data-testid": "quote-test" },
|
|
19
|
+
return (React.createElement("div", tslib_es6.__assign({ className: "community-component--quote", "data-testid": "quote-test" }, filterAttrs.filterAttrs(props)),
|
|
20
20
|
React.createElement("blockquote", { "data-testid": "style-test", className: index.classNames(styles.blockQuote, styles["quote".concat(styling)]), cite: citeUrl },
|
|
21
21
|
React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 100 77", className: styles.quoteIcon, "aria-hidden": "true" },
|
|
22
22
|
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" })),
|
package/lib/Quote/Quote.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as __rest, _ as __assign } from '../_shared/esm/tslib.es6-D6Wu-xwB.mjs';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { c as classNames } from '../_shared/esm/index-BfTCfPZ1.mjs';
|
|
4
|
-
import { f as
|
|
5
|
-
import { A as Author } from '../_shared/esm/Author-
|
|
4
|
+
import { f as filterAttrs } from '../_shared/esm/filter-attrs-DZ7RCEZm.mjs';
|
|
5
|
+
import { A as Author } from '../_shared/esm/Author-HnYsFTPT.mjs';
|
|
6
6
|
import '@arc-ui/components/Grid';
|
|
7
7
|
import '@arc-ui/components/Avatar';
|
|
8
8
|
import '@arc-ui/components/Heading';
|
|
@@ -14,7 +14,7 @@ var styles = {"blockQuote":"Quote-module_blockQuote__STj-z","quoteContent":"Quot
|
|
|
14
14
|
* 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.*/
|
|
15
15
|
var Quote = function (_a) {
|
|
16
16
|
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"]);
|
|
17
|
-
return (React.createElement("div", __assign({ className: "community-component--quote", "data-testid": "quote-test" },
|
|
17
|
+
return (React.createElement("div", __assign({ className: "community-component--quote", "data-testid": "quote-test" }, filterAttrs(props)),
|
|
18
18
|
React.createElement("blockquote", { "data-testid": "style-test", className: classNames(styles.blockQuote, styles["quote".concat(styling)]), cite: citeUrl },
|
|
19
19
|
React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 100 77", className: styles.quoteIcon, "aria-hidden": "true" },
|
|
20
20
|
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" })),
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var SectionHeading = require('../_shared/cjs/SectionHeading-
|
|
3
|
+
var SectionHeading = require('../_shared/cjs/SectionHeading-DeSFM0HV.cjs');
|
|
4
4
|
require('../_shared/cjs/tslib.es6-BxB9I209.cjs');
|
|
5
5
|
require('react');
|
|
6
6
|
require('../_shared/cjs/index-Bp6Dd2i1.cjs');
|
|
7
|
-
require('../_shared/cjs/filter-
|
|
8
|
-
require('@arc-ui/components/Heading');
|
|
7
|
+
require('../_shared/cjs/filter-attrs-BizjMsy0.cjs');
|
|
9
8
|
require('@arc-ui/components/Text');
|
|
10
9
|
require('@arc-ui/components/VerticalSpace');
|
|
11
10
|
require('@arc-ui/components/Image');
|
|
11
|
+
require('@arc-ui/components/Heading');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { S as SectionHeading } from '../_shared/esm/SectionHeading-
|
|
1
|
+
export { S as SectionHeading } from '../_shared/esm/SectionHeading-CpDLCndw.mjs';
|
|
2
2
|
import '../_shared/esm/tslib.es6-D6Wu-xwB.mjs';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '../_shared/esm/index-BfTCfPZ1.mjs';
|
|
5
|
-
import '../_shared/esm/filter-
|
|
6
|
-
import '@arc-ui/components/Heading';
|
|
5
|
+
import '../_shared/esm/filter-attrs-DZ7RCEZm.mjs';
|
|
7
6
|
import '@arc-ui/components/Text';
|
|
8
7
|
import '@arc-ui/components/VerticalSpace';
|
|
9
8
|
import '@arc-ui/components/Image';
|
|
9
|
+
import '@arc-ui/components/Heading';
|
|
@@ -8,9 +8,9 @@ var Text = require('@arc-ui/components/Text');
|
|
|
8
8
|
var Align = require('@arc-ui/components/Align');
|
|
9
9
|
var Heading = require('@arc-ui/components/Heading');
|
|
10
10
|
var VerticalSpace = require('@arc-ui/components/VerticalSpace');
|
|
11
|
-
var SectionHeading = require('../_shared/cjs/SectionHeading-
|
|
11
|
+
var SectionHeading = require('../_shared/cjs/SectionHeading-DeSFM0HV.cjs');
|
|
12
12
|
require('../_shared/cjs/index-Bp6Dd2i1.cjs');
|
|
13
|
-
require('../_shared/cjs/filter-
|
|
13
|
+
require('../_shared/cjs/filter-attrs-BizjMsy0.cjs');
|
|
14
14
|
require('@arc-ui/components/Image');
|
|
15
15
|
|
|
16
16
|
var styles = {"list":"Statistics-module_list__BI-eQ","mutedText":"Statistics-module_mutedText__MR1JM","statWrapper":"Statistics-module_statWrapper__83OnM"};
|
|
@@ -25,16 +25,16 @@ var getLinkProps = function (link) {
|
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
var Statistics = function (_a) {
|
|
28
|
-
var headingLevel = _a.headingLevel, heading = _a.heading, content = _a.content, statistics = _a.statistics;
|
|
29
|
-
var
|
|
28
|
+
var id = _a.id, isHeadingWordWrap = _a.isHeadingWordWrap, headingLevel = _a.headingLevel, heading = _a.heading, content = _a.content, statistics = _a.statistics;
|
|
29
|
+
var componentId = React.useId();
|
|
30
30
|
return (React.createElement(Columns.Columns, null,
|
|
31
31
|
React.createElement(Columns.ColumnsCol, { spanM: 9 },
|
|
32
|
-
React.createElement(SectionHeading.SectionHeading, { heading: heading, headingLevel: headingLevel, content: content }),
|
|
32
|
+
React.createElement(SectionHeading.SectionHeading, { id: id, heading: heading, isHeadingWordWrap: isHeadingWordWrap, headingLevel: headingLevel, content: content }),
|
|
33
33
|
React.createElement(VerticalSpace.VerticalSpace, { size: "16" })),
|
|
34
34
|
React.createElement(Columns.ColumnsCol, { spanL: 9 },
|
|
35
35
|
React.createElement("ul", { className: styles.list }, statistics.map(function (_a, i) {
|
|
36
36
|
var stat = _a.stat, copy = _a.copy, link = _a.link, source = _a.source, sourceUrl = _a.sourceUrl;
|
|
37
|
-
return (React.createElement("li", { key: "statistic-".concat(
|
|
37
|
+
return (React.createElement("li", { key: "statistic-".concat(componentId, "-").concat(i) },
|
|
38
38
|
i !== 0 && (React.createElement(React.Fragment, null,
|
|
39
39
|
React.createElement(VerticalSpace.VerticalSpace, { size: "24", sizeS: "32", sizeXL: "40" }),
|
|
40
40
|
React.createElement(Rule.Rule, null),
|
|
@@ -6,9 +6,9 @@ import { Text } from '@arc-ui/components/Text';
|
|
|
6
6
|
import { Align } from '@arc-ui/components/Align';
|
|
7
7
|
import { Heading } from '@arc-ui/components/Heading';
|
|
8
8
|
import { VerticalSpace } from '@arc-ui/components/VerticalSpace';
|
|
9
|
-
import { S as SectionHeading } from '../_shared/esm/SectionHeading-
|
|
9
|
+
import { S as SectionHeading } from '../_shared/esm/SectionHeading-CpDLCndw.mjs';
|
|
10
10
|
import '../_shared/esm/index-BfTCfPZ1.mjs';
|
|
11
|
-
import '../_shared/esm/filter-
|
|
11
|
+
import '../_shared/esm/filter-attrs-DZ7RCEZm.mjs';
|
|
12
12
|
import '@arc-ui/components/Image';
|
|
13
13
|
|
|
14
14
|
var styles = {"list":"Statistics-module_list__BI-eQ","mutedText":"Statistics-module_mutedText__MR1JM","statWrapper":"Statistics-module_statWrapper__83OnM"};
|
|
@@ -23,16 +23,16 @@ var getLinkProps = function (link) {
|
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
var Statistics = function (_a) {
|
|
26
|
-
var headingLevel = _a.headingLevel, heading = _a.heading, content = _a.content, statistics = _a.statistics;
|
|
27
|
-
var
|
|
26
|
+
var id = _a.id, isHeadingWordWrap = _a.isHeadingWordWrap, headingLevel = _a.headingLevel, heading = _a.heading, content = _a.content, statistics = _a.statistics;
|
|
27
|
+
var componentId = useId();
|
|
28
28
|
return (React.createElement(Columns, null,
|
|
29
29
|
React.createElement(ColumnsCol, { spanM: 9 },
|
|
30
|
-
React.createElement(SectionHeading, { heading: heading, headingLevel: headingLevel, content: content }),
|
|
30
|
+
React.createElement(SectionHeading, { id: id, heading: heading, isHeadingWordWrap: isHeadingWordWrap, headingLevel: headingLevel, content: content }),
|
|
31
31
|
React.createElement(VerticalSpace, { size: "16" })),
|
|
32
32
|
React.createElement(ColumnsCol, { spanL: 9 },
|
|
33
33
|
React.createElement("ul", { className: styles.list }, statistics.map(function (_a, i) {
|
|
34
34
|
var stat = _a.stat, copy = _a.copy, link = _a.link, source = _a.source, sourceUrl = _a.sourceUrl;
|
|
35
|
-
return (React.createElement("li", { key: "statistic-".concat(
|
|
35
|
+
return (React.createElement("li", { key: "statistic-".concat(componentId, "-").concat(i) },
|
|
36
36
|
i !== 0 && (React.createElement(React.Fragment, null,
|
|
37
37
|
React.createElement(VerticalSpace, { size: "24", sizeS: "32", sizeXL: "40" }),
|
|
38
38
|
React.createElement(Rule, null),
|
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-DzI6hGjj.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 __assign } from '../_shared/esm/tslib.es6-D6Wu-xwB.mjs';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { b as ArcSizeBreakpointsM } from '../_shared/esm/index.es-
|
|
3
|
+
import { b as ArcSizeBreakpointsM } from '../_shared/esm/index.es-B6Bolkcx.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';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var tslib_es6 = require('./tslib.es6-BxB9I209.cjs');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var
|
|
5
|
+
var filterAttrs = require('./filter-attrs-BizjMsy0.cjs');
|
|
6
6
|
var index = require('./index-Bp6Dd2i1.cjs');
|
|
7
7
|
var Heading = require('@arc-ui/components/Heading');
|
|
8
8
|
var Text = require('@arc-ui/components/Text');
|
|
@@ -10,17 +10,17 @@ var VerticalSpace = require('@arc-ui/components/VerticalSpace');
|
|
|
10
10
|
var Image = require('@arc-ui/components/Image');
|
|
11
11
|
var Disclosure = require('@arc-ui/components/Disclosure');
|
|
12
12
|
|
|
13
|
-
var styles$
|
|
13
|
+
var styles$2 = {"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"};
|
|
14
14
|
|
|
15
15
|
var AccordionHeading = function (_a) {
|
|
16
16
|
var _b, _c;
|
|
17
17
|
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 = tslib_es6.__rest(_a, ["heading", "content", "id", "isPadded", "headingLevel", "headingSize", "image"]);
|
|
18
18
|
return (React.createElement("div", tslib_es6.__assign({ className: index.classNames((_b = {},
|
|
19
|
-
_b[styles$
|
|
20
|
-
_b[styles$
|
|
21
|
-
_b[styles$
|
|
22
|
-
_b)) },
|
|
23
|
-
React.createElement("div", { className: index.classNames((_c = {}, _c[styles$
|
|
19
|
+
_b[styles$2["accordion-header"]] = true,
|
|
20
|
+
_b[styles$2["accordion-header--padded"]] = isPadded,
|
|
21
|
+
_b[styles$2["accordion-header--headingSizeM"]] = headingSize === "m",
|
|
22
|
+
_b)) }, filterAttrs.filterAttrs(props)),
|
|
23
|
+
React.createElement("div", { className: index.classNames((_c = {}, _c[styles$2["accordion-header--hasImage"]] = image, _c)) },
|
|
24
24
|
image && (React.createElement("div", null,
|
|
25
25
|
React.createElement(Image.Image, tslib_es6.__assign({}, image, { width: 68, fit: "cover" })))),
|
|
26
26
|
React.createElement(Heading.Heading, { level: headingLevel, id: id, size: headingSize }, heading)),
|
|
@@ -29,23 +29,25 @@ var AccordionHeading = function (_a) {
|
|
|
29
29
|
React.createElement(Text.Text, { size: "l", elementType: "p" }, content)))));
|
|
30
30
|
};
|
|
31
31
|
|
|
32
|
-
var styles = {"AccordionDisclosureListItem":"AccordionDisclosureList-module_AccordionDisclosureListItem__p8LIT"};
|
|
32
|
+
var styles$1 = {"AccordionDisclosureListItem":"AccordionDisclosureList-module_AccordionDisclosureListItem__p8LIT"};
|
|
33
33
|
|
|
34
34
|
var AccordionDisclosureList = function (_a) {
|
|
35
35
|
var disclosureList = _a.disclosureList;
|
|
36
36
|
return (React.createElement("ul", null, disclosureList.map(function (_a) {
|
|
37
37
|
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 = tslib_es6.__rest(_a, ["children", "summary", "isOpen", "indentDetails", "headingLevel", "id"]);
|
|
38
|
-
return (React.createElement("li", { key: id, className: styles.AccordionDisclosureListItem },
|
|
39
|
-
React.createElement(Disclosure.Disclosure, tslib_es6.__assign({ summary: summary, isOpen: isOpen, indentDetails: indentDetails, headingLevel: headingLevel },
|
|
38
|
+
return (React.createElement("li", { key: id, className: styles$1.AccordionDisclosureListItem },
|
|
39
|
+
React.createElement(Disclosure.Disclosure, tslib_es6.__assign({ summary: summary, isOpen: isOpen, indentDetails: indentDetails, headingLevel: headingLevel }, filterAttrs.filterAttrs(props)), children)));
|
|
40
40
|
})));
|
|
41
41
|
};
|
|
42
42
|
|
|
43
|
+
var styles = {"Accordion":"Accordion-module_Accordion__LsXTU"};
|
|
44
|
+
|
|
43
45
|
/**
|
|
44
46
|
* Use the `Accordion` component to package together a title, content and a number of disclosure components into one section (maximum 10).
|
|
45
47
|
*/
|
|
46
48
|
var Accordion = function (_a) {
|
|
47
49
|
var heading = _a.heading, headingLevel = _a.headingLevel, headingSize = _a.headingSize, content = _a.content, id = _a.id, disclosureList = _a.disclosureList, props = tslib_es6.__rest(_a, ["heading", "headingLevel", "headingSize", "content", "id", "disclosureList"]);
|
|
48
|
-
return (React.createElement("div", tslib_es6.__assign({},
|
|
50
|
+
return (React.createElement("div", tslib_es6.__assign({ className: styles.Accordion }, filterAttrs.filterAttrs(props)),
|
|
49
51
|
React.createElement(AccordionHeading, { isPadded: true, id: id, "data-testid": "Accordion-header", heading: heading, headingLevel: headingLevel, headingSize: headingSize, content: content }),
|
|
50
52
|
React.createElement(AccordionDisclosureList, { disclosureList: disclosureList })));
|
|
51
53
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var tslib_es6 = require('./tslib.es6-BxB9I209.cjs');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var
|
|
5
|
+
var filterAttrs = require('./filter-attrs-BizjMsy0.cjs');
|
|
6
6
|
var Grid = require('@arc-ui/components/Grid');
|
|
7
7
|
var Avatar = require('@arc-ui/components/Avatar');
|
|
8
8
|
var Heading = require('@arc-ui/components/Heading');
|
|
@@ -15,7 +15,7 @@ var Author = function (_a) {
|
|
|
15
15
|
var avatarSizes = ["s", "m", "l", "xl"];
|
|
16
16
|
avatar.size = avatarSizes.includes(avatar.size || "") ? avatar.size : "m";
|
|
17
17
|
var isLargeAvatar = avatar.size === "l" || avatar.size === "xl";
|
|
18
|
-
return (React.createElement("div", tslib_es6.__assign({},
|
|
18
|
+
return (React.createElement("div", tslib_es6.__assign({}, filterAttrs.filterAttrs(props)),
|
|
19
19
|
React.createElement(Grid.Grid, { isFluid: true, isGutterless: true },
|
|
20
20
|
React.createElement(Grid.GridRow, { align: "center" },
|
|
21
21
|
React.createElement(Grid.GridCol, { xs: isLargeAvatar ? 12 : "auto" },
|