@arc-ui/community-components 3.1.0 → 3.3.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 +14 -14
- package/CHANGELOG.md +31 -0
- package/lib/Accordion/Accordion.cjs +2 -3
- package/lib/Accordion/Accordion.mjs +2 -3
- package/lib/ActionTile/ActionTile.cjs +4 -5
- package/lib/ActionTile/ActionTile.mjs +2 -3
- package/lib/ActionTile/styles.css +1 -1
- package/lib/ArticleSidebar/ArticleSidebar.cjs +9 -10
- package/lib/ArticleSidebar/ArticleSidebar.mjs +4 -5
- package/lib/Author/Author.cjs +2 -3
- package/lib/Author/Author.mjs +2 -3
- package/lib/BannerWithTabs/BannerWithTabs.cjs +4 -5
- package/lib/BannerWithTabs/BannerWithTabs.mjs +4 -5
- package/lib/ContentInfoWidget/ContentInfoWidget.cjs +3 -2
- package/lib/ContentInfoWidget/ContentInfoWidget.mjs +3 -2
- package/lib/CopyLead/CopyLead.cjs +15 -16
- package/lib/CopyLead/CopyLead.mjs +3 -4
- package/lib/DownloadList/DownloadList.cjs +6 -8
- package/lib/DownloadList/DownloadList.mjs +6 -8
- package/lib/FAQs/FAQs.cjs +15 -12
- package/lib/FAQs/FAQs.mjs +13 -10
- package/lib/FeaturePost/FeaturePost.cjs +23 -17
- package/lib/FeaturePost/FeaturePost.mjs +18 -12
- package/lib/Highlights/Highlights.cjs +11 -12
- package/lib/Highlights/Highlights.mjs +11 -12
- package/lib/InlineLinkGroup/InlineLinkGroup.cjs +25 -0
- package/lib/InlineLinkGroup/InlineLinkGroup.mjs +23 -0
- package/lib/InlineLinkGroup/styles.css +1 -0
- package/lib/LinkTile/LinkTile.cjs +6 -6
- package/lib/LinkTile/LinkTile.mjs +4 -4
- package/lib/LinkTile/styles.css +1 -1
- package/lib/ProductNavigation/ProductNavigation.cjs +6 -7
- package/lib/ProductNavigation/ProductNavigation.mjs +3 -4
- package/lib/PromoListing/PromoListing.cjs +7 -8
- package/lib/PromoListing/PromoListing.mjs +5 -6
- package/lib/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.cjs +27 -0
- package/lib/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.mjs +25 -0
- package/lib/PromoListingThumbnailSignpost/styles.css +1 -0
- package/lib/Quote/Quote.cjs +5 -6
- package/lib/Quote/Quote.mjs +3 -4
- package/lib/SectionHeading/SectionHeading.cjs +2 -3
- package/lib/SectionHeading/SectionHeading.mjs +2 -3
- package/lib/Statistics/Statistics.cjs +21 -19
- package/lib/Statistics/Statistics.mjs +21 -19
- package/lib/Statistics/styles.css +1 -1
- package/lib/Summary/Summary.cjs +4 -4
- package/lib/Summary/Summary.mjs +4 -4
- package/lib/ThumbnailSignpost/ThumbnailSignpost.cjs +14 -0
- package/lib/ThumbnailSignpost/ThumbnailSignpost.mjs +8 -0
- package/lib/ThumbnailSignpost/styles.css +1 -0
- package/lib/_shared/cjs/{Accordion-BCJIm1Gq.cjs → Accordion-QqDoB3pY.cjs} +9 -10
- package/lib/_shared/cjs/{Author-D4dKNQem.cjs → Author-aL8YXi7C.cjs} +4 -5
- package/lib/_shared/cjs/{SectionHeading-DeSFM0HV.cjs → SectionHeading-Dj-dJfv3.cjs} +4 -5
- package/lib/_shared/cjs/ThumbnailSignpost-SBnrGooA.cjs +38 -0
- package/lib/_shared/cjs/{tslib.es6-BxB9I209.cjs → filter-attrs-C26zOt4_.cjs} +25 -0
- package/lib/_shared/cjs/{index.es-DzI6hGjj.cjs → index.es-Dq8bYrbW.cjs} +1 -1
- package/lib/_shared/esm/{Accordion-BN_lZk6L.mjs → Accordion-DrOTh90S.mjs} +2 -3
- package/lib/_shared/esm/{Author-HnYsFTPT.mjs → Author-BVCRPgkl.mjs} +1 -2
- package/lib/_shared/esm/{SectionHeading-CpDLCndw.mjs → SectionHeading-DZOg_gYi.mjs} +1 -2
- package/lib/_shared/esm/ThumbnailSignpost-DaZByYIH.mjs +36 -0
- package/lib/_shared/esm/{tslib.es6-D6Wu-xwB.mjs → filter-attrs-D-1kWaCP.mjs} +25 -1
- package/lib/_shared/esm/{index.es-B6Bolkcx.mjs → index.es-Bfdys5__.mjs} +1 -1
- package/lib/index.cjs +218 -173
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +60 -64
- package/lib/index.d.mts +60 -64
- package/lib/index.mjs +216 -173
- package/lib/index.mjs.map +1 -1
- package/lib/styles.css +1 -1
- package/package.json +13 -13
- package/src/components/Accordion/components/AccordionDisclosureList/AccordionDisclosureList.tsx +1 -1
- package/src/components/ActionTile/ActionTile.module.css +56 -37
- package/src/components/ActionTile/ActionTile.tsx +1 -1
- package/src/components/ArticleSidebar/ArticleSidebar.tsx +4 -6
- package/src/components/Author/Author.tsx +0 -3
- package/src/components/BannerWithTabs/BannerWithTabs.tsx +4 -6
- package/src/components/ContentInfoWidget/ContentInfoWidget.tsx +3 -4
- package/src/components/DownloadList/DownloadList.tsx +8 -8
- package/src/components/FAQs/FAQs.tsx +13 -6
- package/src/components/FeaturePost/FeaturePost.tsx +9 -9
- package/src/components/FeaturePost/components/Image/Image.tsx +31 -7
- package/src/components/FeaturePost/types/feature-post-image.ts +2 -0
- package/src/components/Highlights/Highlights.tsx +3 -2
- package/src/components/Highlights/components/HighlightItem/HighlightItem.tsx +3 -2
- package/src/components/Highlights/components/HighlightList/HighlightList.tsx +5 -2
- package/src/components/InlineLinkGroup/InlineLinkGroup.module.css +81 -0
- package/src/components/InlineLinkGroup/InlineLinkGroup.tsx +67 -0
- package/src/components/InlineLinkGroup/index.ts +5 -0
- package/src/components/LinkTile/LinkTile.module.css +62 -26
- package/src/components/LinkTile/LinkTile.tsx +8 -1
- package/src/components/PromoListing/PromoListing.tsx +3 -11
- package/src/components/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.module.css +54 -0
- package/src/components/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.tsx +53 -0
- package/src/components/PromoListingThumbnailSignpost/index.ts +4 -0
- package/src/components/Quote/Quote.tsx +1 -7
- package/src/components/Statistics/Statistics.module.css +0 -10
- package/src/components/Statistics/Statistics.tsx +35 -32
- package/src/components/Summary/Summary.tsx +3 -1
- package/src/components/ThumbnailSignpost/ThumbnailSignpost.module.css +112 -0
- package/src/components/ThumbnailSignpost/ThumbnailSignpost.tsx +100 -0
- package/src/components/ThumbnailSignpost/index.ts +4 -0
- package/src/components/index.ts +3 -1
- package/versions.json +1 -1
- package/lib/HeroLink/HeroLink.cjs +0 -35
- package/lib/HeroLink/HeroLink.mjs +0 -33
- package/lib/HeroLink/styles.css +0 -1
- package/lib/_shared/cjs/filter-attrs-BizjMsy0.cjs +0 -27
- package/lib/_shared/esm/filter-attrs-DZ7RCEZm.mjs +0 -25
- package/src/components/HeroLink/HeroLink.module.css +0 -44
- package/src/components/HeroLink/HeroLink.tsx +0 -136
- package/src/components/HeroLink/index.ts +0 -2
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var filterAttrs = require('../_shared/cjs/filter-attrs-C26zOt4_.cjs');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var index = require('../_shared/cjs/index-Bp6Dd2i1.cjs');
|
|
6
|
-
var index_es = require('../_shared/cjs/index.es-
|
|
6
|
+
var index_es = require('../_shared/cjs/index.es-Dq8bYrbW.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-Dj-dJfv3.cjs');
|
|
11
11
|
var MediaCard = require('@arc-ui/components/MediaCard');
|
|
12
12
|
var ImpactCard = require('@arc-ui/components/ImpactCard');
|
|
13
13
|
var InformationCard = require('@arc-ui/components/InformationCard');
|
|
@@ -15,7 +15,6 @@ var TypographyCard = require('@arc-ui/components/TypographyCard');
|
|
|
15
15
|
var ButtonV2 = require('@arc-ui/components/ButtonV2');
|
|
16
16
|
var VerticalSpace = require('@arc-ui/components/VerticalSpace');
|
|
17
17
|
var BtIconArrowRightFill = require('../_shared/cjs/BtIconArrowRightFill-BVCZv7Lm.cjs');
|
|
18
|
-
require('../_shared/cjs/filter-attrs-BizjMsy0.cjs');
|
|
19
18
|
require('@arc-ui/components/Text');
|
|
20
19
|
require('@arc-ui/components/Image');
|
|
21
20
|
|
|
@@ -25,7 +24,7 @@ var styles = {"PromoListing":"PromoListing-module_PromoListing__6ensv","carousel
|
|
|
25
24
|
* Use `PromoListing` to give supporting information about a page or proposition in the form of the card components (`ImpactCard`, `InformationCard`, `MediaCard` and `TypographyCard`).
|
|
26
25
|
*/
|
|
27
26
|
var PromoListing = function (_a) {
|
|
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;
|
|
27
|
+
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, props = filterAttrs.__rest(_a, ["heading", "content", "id", "isCarousel", "cards", "headingLevel", "isHeadingWordWrap", "columns", "button", "overlineHeadingLevel", "overlineLabel"]);
|
|
29
28
|
var componentId = React.useId();
|
|
30
29
|
var isMinWidthArcBreakpointL = useMediaQuery.useMediaQuery("(min-width: ".concat(index_es.ArcSizeBreakpointsL, ")"));
|
|
31
30
|
var isMinWidthArcBreakpointM = useMediaQuery.useMediaQuery("(min-width: ".concat(index_es.ArcSizeBreakpointsM, ")"));
|
|
@@ -55,15 +54,15 @@ var PromoListing = function (_a) {
|
|
|
55
54
|
};
|
|
56
55
|
var getCard = function (card) {
|
|
57
56
|
var CardComponent = CARD_COMPONENTS[card.type];
|
|
58
|
-
return React.createElement(CardComponent,
|
|
57
|
+
return React.createElement(CardComponent, filterAttrs.__assign({}, card, commonProps));
|
|
59
58
|
};
|
|
60
|
-
return (React.createElement("div", { className: styles.PromoListing },
|
|
59
|
+
return (React.createElement("div", filterAttrs.__assign({ className: styles.PromoListing }, filterAttrs.filterAttrs(props)),
|
|
61
60
|
overlineLabel && (React.createElement(React.Fragment, null,
|
|
62
61
|
React.createElement(Heading.Heading, { level: overlineHeadingLevel, fontStyle: "overline" }, overlineLabel),
|
|
63
62
|
React.createElement(VerticalSpace.VerticalSpace, { size: "12" }))),
|
|
64
63
|
React.createElement(SectionHeading.SectionHeading, { isPadded: true, id: id, "data-testid": "PromoListing-header", heading: heading, isHeadingWordWrap: isHeadingWordWrap, headingLevel: headingLevel, content: content }),
|
|
65
64
|
button.label && (React.createElement(React.Fragment, null,
|
|
66
|
-
React.createElement(ButtonV2.ButtonV2,
|
|
65
|
+
React.createElement(ButtonV2.ButtonV2, filterAttrs.__assign({}, button, { icon: button.buttonStyle == "compact" ? BtIconArrowRightFill.BtIconArrowRightFill : undefined, size: "m" })),
|
|
67
66
|
React.createElement(VerticalSpace.VerticalSpace, { size: "40" }))),
|
|
68
67
|
isCarousel && !isMinWidthArcBreakpointL ? (React.createElement("div", { className: styles.promolistingCarouselWrapper },
|
|
69
68
|
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) },
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { _ as __assign } from '../_shared/esm/
|
|
1
|
+
import { _ as __rest, a as __assign, f as filterAttrs } from '../_shared/esm/filter-attrs-D-1kWaCP.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-Bfdys5__.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-DZOg_gYi.mjs';
|
|
9
9
|
import { MediaCard } from '@arc-ui/components/MediaCard';
|
|
10
10
|
import { ImpactCard } from '@arc-ui/components/ImpactCard';
|
|
11
11
|
import { InformationCard } from '@arc-ui/components/InformationCard';
|
|
@@ -13,7 +13,6 @@ import { TypographyCard } from '@arc-ui/components/TypographyCard';
|
|
|
13
13
|
import { ButtonV2 } from '@arc-ui/components/ButtonV2';
|
|
14
14
|
import { VerticalSpace } from '@arc-ui/components/VerticalSpace';
|
|
15
15
|
import { B as BtIconArrowRightFill } from '../_shared/esm/BtIconArrowRightFill-D0zKgk3B.mjs';
|
|
16
|
-
import '../_shared/esm/filter-attrs-DZ7RCEZm.mjs';
|
|
17
16
|
import '@arc-ui/components/Text';
|
|
18
17
|
import '@arc-ui/components/Image';
|
|
19
18
|
|
|
@@ -23,7 +22,7 @@ var styles = {"PromoListing":"PromoListing-module_PromoListing__6ensv","carousel
|
|
|
23
22
|
* Use `PromoListing` to give supporting information about a page or proposition in the form of the card components (`ImpactCard`, `InformationCard`, `MediaCard` and `TypographyCard`).
|
|
24
23
|
*/
|
|
25
24
|
var PromoListing = function (_a) {
|
|
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;
|
|
25
|
+
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, props = __rest(_a, ["heading", "content", "id", "isCarousel", "cards", "headingLevel", "isHeadingWordWrap", "columns", "button", "overlineHeadingLevel", "overlineLabel"]);
|
|
27
26
|
var componentId = useId();
|
|
28
27
|
var isMinWidthArcBreakpointL = useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsL, ")"));
|
|
29
28
|
var isMinWidthArcBreakpointM = useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsM, ")"));
|
|
@@ -55,7 +54,7 @@ var PromoListing = function (_a) {
|
|
|
55
54
|
var CardComponent = CARD_COMPONENTS[card.type];
|
|
56
55
|
return React.createElement(CardComponent, __assign({}, card, commonProps));
|
|
57
56
|
};
|
|
58
|
-
return (React.createElement("div", { className: styles.PromoListing },
|
|
57
|
+
return (React.createElement("div", __assign({ className: styles.PromoListing }, filterAttrs(props)),
|
|
59
58
|
overlineLabel && (React.createElement(React.Fragment, null,
|
|
60
59
|
React.createElement(Heading, { level: overlineHeadingLevel, fontStyle: "overline" }, overlineLabel),
|
|
61
60
|
React.createElement(VerticalSpace, { size: "12" }))),
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var filterAttrs = require('../_shared/cjs/filter-attrs-C26zOt4_.cjs');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var SectionHeading = require('../_shared/cjs/SectionHeading-Dj-dJfv3.cjs');
|
|
6
|
+
var ThumbnailSignpost = require('../_shared/cjs/ThumbnailSignpost-SBnrGooA.cjs');
|
|
7
|
+
require('../_shared/cjs/index-Bp6Dd2i1.cjs');
|
|
8
|
+
require('@arc-ui/components/Text');
|
|
9
|
+
require('@arc-ui/components/VerticalSpace');
|
|
10
|
+
require('@arc-ui/components/Image');
|
|
11
|
+
require('@arc-ui/components/Heading');
|
|
12
|
+
require('../_shared/cjs/BtIconArrowRightFill-BVCZv7Lm.cjs');
|
|
13
|
+
|
|
14
|
+
var styles = {"PromoListingThumbnailSignpost":"PromoListingThumbnailSignpost-module_PromoListingThumbnailSignpost__0HTPV","list":"PromoListingThumbnailSignpost-module_list__E9l0E"};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Use `PromoListingThumbnailSignpost` to give supporting information about a page or proposition in the form of the ThumbnailSignposts components.
|
|
18
|
+
*/
|
|
19
|
+
var PromoListingThumbnailSignpost = function (_a) {
|
|
20
|
+
var _b = _a.isPadded, isPadded = _b === void 0 ? true : _b, heading = _a.heading, content = _a.content, headingLevel = _a.headingLevel, thumbnailList = _a.thumbnailList, props = filterAttrs.__rest(_a, ["isPadded", "heading", "content", "headingLevel", "thumbnailList"]);
|
|
21
|
+
return (React.createElement("div", filterAttrs.__assign({ className: styles.PromoListingThumbnailSignpost }, filterAttrs.filterAttrs(props)),
|
|
22
|
+
React.createElement(SectionHeading.SectionHeading, { isPadded: isPadded, "data-testid": "PromoListingThumbnailSignpost-header", heading: heading, headingLevel: headingLevel, content: content }),
|
|
23
|
+
React.createElement("ul", { className: styles.list }, thumbnailList.map(function (thumbnail, index) { return (React.createElement("li", { key: index },
|
|
24
|
+
React.createElement(ThumbnailSignpost.ThumbnailSignpost, filterAttrs.__assign({}, thumbnail)))); }))));
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
exports.PromoListingThumbnailSignpost = PromoListingThumbnailSignpost;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { _ as __rest, a as __assign, f as filterAttrs } from '../_shared/esm/filter-attrs-D-1kWaCP.mjs';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { S as SectionHeading } from '../_shared/esm/SectionHeading-DZOg_gYi.mjs';
|
|
4
|
+
import { T as ThumbnailSignpost } from '../_shared/esm/ThumbnailSignpost-DaZByYIH.mjs';
|
|
5
|
+
import '../_shared/esm/index-BfTCfPZ1.mjs';
|
|
6
|
+
import '@arc-ui/components/Text';
|
|
7
|
+
import '@arc-ui/components/VerticalSpace';
|
|
8
|
+
import '@arc-ui/components/Image';
|
|
9
|
+
import '@arc-ui/components/Heading';
|
|
10
|
+
import '../_shared/esm/BtIconArrowRightFill-D0zKgk3B.mjs';
|
|
11
|
+
|
|
12
|
+
var styles = {"PromoListingThumbnailSignpost":"PromoListingThumbnailSignpost-module_PromoListingThumbnailSignpost__0HTPV","list":"PromoListingThumbnailSignpost-module_list__E9l0E"};
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Use `PromoListingThumbnailSignpost` to give supporting information about a page or proposition in the form of the ThumbnailSignposts components.
|
|
16
|
+
*/
|
|
17
|
+
var PromoListingThumbnailSignpost = function (_a) {
|
|
18
|
+
var _b = _a.isPadded, isPadded = _b === void 0 ? true : _b, heading = _a.heading, content = _a.content, headingLevel = _a.headingLevel, thumbnailList = _a.thumbnailList, props = __rest(_a, ["isPadded", "heading", "content", "headingLevel", "thumbnailList"]);
|
|
19
|
+
return (React.createElement("div", __assign({ className: styles.PromoListingThumbnailSignpost }, filterAttrs(props)),
|
|
20
|
+
React.createElement(SectionHeading, { isPadded: isPadded, "data-testid": "PromoListingThumbnailSignpost-header", heading: heading, headingLevel: headingLevel, content: content }),
|
|
21
|
+
React.createElement("ul", { className: styles.list }, thumbnailList.map(function (thumbnail, index) { return (React.createElement("li", { key: index },
|
|
22
|
+
React.createElement(ThumbnailSignpost, __assign({}, thumbnail)))); }))));
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export { PromoListingThumbnailSignpost };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.PromoListingThumbnailSignpost-module_PromoListingThumbnailSignpost__0HTPV{max-width:1280px}.PromoListingThumbnailSignpost-module_PromoListingThumbnailSignpost__0HTPV ul,.PromoListingThumbnailSignpost-module_PromoListingThumbnailSignpost__0HTPV li{text-decoration:none;padding:0;margin:0}.PromoListingThumbnailSignpost-module_list__E9l0E{display:grid;grid-template-columns:repeat(12,1fr);grid-column-gap:var(--arc-size-grid-gutter-s);-moz-column-gap:var(--arc-size-grid-gutter-s);column-gap:var(--arc-size-grid-gutter-s);grid-row-gap:24px;row-gap:24px;list-style:none;margin:0;padding:0}.PromoListingThumbnailSignpost-module_list__E9l0E li{grid-column:span 12}@media (min-width:636px){.PromoListingThumbnailSignpost-module_list__E9l0E{row-gap:32px}}@media (min-width:768px){.PromoListingThumbnailSignpost-module_list__E9l0E{-moz-column-gap:var(--arc-size-grid-gutter-m);column-gap:var(--arc-size-grid-gutter-m)}.PromoListingThumbnailSignpost-module_list__E9l0E li{grid-column:span 6}}@media (min-width:1024px){.PromoListingThumbnailSignpost-module_list__E9l0E{row-gap:40px}}@media (min-width:1280px){.PromoListingThumbnailSignpost-module_list__E9l0E{-moz-column-gap:var(--arc-size-grid-gutter-l);column-gap:var(--arc-size-grid-gutter-l)}}
|
package/lib/Quote/Quote.cjs
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var filterAttrs = require('../_shared/cjs/filter-attrs-C26zOt4_.cjs');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var index = require('../_shared/cjs/index-Bp6Dd2i1.cjs');
|
|
6
|
-
var
|
|
7
|
-
var Author = require('../_shared/cjs/Author-D4dKNQem.cjs');
|
|
6
|
+
var Author = require('../_shared/cjs/Author-aL8YXi7C.cjs');
|
|
8
7
|
require('@arc-ui/components/Grid');
|
|
9
8
|
require('@arc-ui/components/Avatar');
|
|
10
9
|
require('@arc-ui/components/Heading');
|
|
@@ -15,13 +14,13 @@ var styles = {"blockQuote":"Quote-module_blockQuote__STj-z","quoteContent":"Quot
|
|
|
15
14
|
/**
|
|
16
15
|
* 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
16
|
var Quote = function (_a) {
|
|
18
|
-
var author = _a.author, _b = _a.styling, styling = _b === void 0 ? "Default" : _b, content = _a.content, citeUrl = _a.citeUrl, props =
|
|
19
|
-
return (React.createElement("div",
|
|
17
|
+
var author = _a.author, _b = _a.styling, styling = _b === void 0 ? "Default" : _b, content = _a.content, citeUrl = _a.citeUrl, props = filterAttrs.__rest(_a, ["author", "styling", "content", "citeUrl"]);
|
|
18
|
+
return (React.createElement("div", filterAttrs.__assign({ className: "community-component--quote", "data-testid": "quote-test" }, filterAttrs.filterAttrs(props)),
|
|
20
19
|
React.createElement("blockquote", { "data-testid": "style-test", className: index.classNames(styles.blockQuote, styles["quote".concat(styling)]), cite: citeUrl },
|
|
21
20
|
React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 100 77", className: styles.quoteIcon, "aria-hidden": "true" },
|
|
22
21
|
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" })),
|
|
23
22
|
React.createElement("p", { className: styles.quoteContent }, content)),
|
|
24
|
-
author &&
|
|
23
|
+
author && React.createElement(Author.Author, filterAttrs.__assign({}, author))));
|
|
25
24
|
};
|
|
26
25
|
|
|
27
26
|
exports.Quote = Quote;
|
package/lib/Quote/Quote.mjs
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as __rest, a as __assign, f as filterAttrs } from '../_shared/esm/filter-attrs-D-1kWaCP.mjs';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { c as classNames } from '../_shared/esm/index-BfTCfPZ1.mjs';
|
|
4
|
-
import {
|
|
5
|
-
import { A as Author } from '../_shared/esm/Author-HnYsFTPT.mjs';
|
|
4
|
+
import { A as Author } from '../_shared/esm/Author-BVCRPgkl.mjs';
|
|
6
5
|
import '@arc-ui/components/Grid';
|
|
7
6
|
import '@arc-ui/components/Avatar';
|
|
8
7
|
import '@arc-ui/components/Heading';
|
|
@@ -19,7 +18,7 @@ var Quote = function (_a) {
|
|
|
19
18
|
React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 100 77", className: styles.quoteIcon, "aria-hidden": "true" },
|
|
20
19
|
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" })),
|
|
21
20
|
React.createElement("p", { className: styles.quoteContent }, content)),
|
|
22
|
-
author &&
|
|
21
|
+
author && React.createElement(Author, __assign({}, author))));
|
|
23
22
|
};
|
|
24
23
|
|
|
25
24
|
export { Quote };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var SectionHeading = require('../_shared/cjs/SectionHeading-
|
|
4
|
-
require('../_shared/cjs/
|
|
3
|
+
var SectionHeading = require('../_shared/cjs/SectionHeading-Dj-dJfv3.cjs');
|
|
4
|
+
require('../_shared/cjs/filter-attrs-C26zOt4_.cjs');
|
|
5
5
|
require('react');
|
|
6
6
|
require('../_shared/cjs/index-Bp6Dd2i1.cjs');
|
|
7
|
-
require('../_shared/cjs/filter-attrs-BizjMsy0.cjs');
|
|
8
7
|
require('@arc-ui/components/Text');
|
|
9
8
|
require('@arc-ui/components/VerticalSpace');
|
|
10
9
|
require('@arc-ui/components/Image');
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
export { S as SectionHeading } from '../_shared/esm/SectionHeading-
|
|
2
|
-
import '../_shared/esm/
|
|
1
|
+
export { S as SectionHeading } from '../_shared/esm/SectionHeading-DZOg_gYi.mjs';
|
|
2
|
+
import '../_shared/esm/filter-attrs-D-1kWaCP.mjs';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '../_shared/esm/index-BfTCfPZ1.mjs';
|
|
5
|
-
import '../_shared/esm/filter-attrs-DZ7RCEZm.mjs';
|
|
6
5
|
import '@arc-ui/components/Text';
|
|
7
6
|
import '@arc-ui/components/VerticalSpace';
|
|
8
7
|
import '@arc-ui/components/Image';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var filterAttrs = require('../_shared/cjs/filter-attrs-C26zOt4_.cjs');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var Columns = require('@arc-ui/components/Columns');
|
|
6
6
|
var Rule = require('@arc-ui/components/Rule');
|
|
@@ -8,12 +8,12 @@ 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
|
|
11
|
+
var Hidden = require('@arc-ui/components/Hidden');
|
|
12
|
+
var SectionHeading = require('../_shared/cjs/SectionHeading-Dj-dJfv3.cjs');
|
|
12
13
|
require('../_shared/cjs/index-Bp6Dd2i1.cjs');
|
|
13
|
-
require('../_shared/cjs/filter-attrs-BizjMsy0.cjs');
|
|
14
14
|
require('@arc-ui/components/Image');
|
|
15
15
|
|
|
16
|
-
var styles = {"list":"Statistics-module_list__BI-eQ","mutedText":"Statistics-module_mutedText__MR1JM"
|
|
16
|
+
var styles = {"list":"Statistics-module_list__BI-eQ","mutedText":"Statistics-module_mutedText__MR1JM"};
|
|
17
17
|
|
|
18
18
|
var getLinkProps = function (link) {
|
|
19
19
|
return link.openInNewTab
|
|
@@ -25,12 +25,11 @@ var getLinkProps = function (link) {
|
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
var Statistics = function (_a) {
|
|
28
|
-
var id = _a.id, isHeadingWordWrap = _a.isHeadingWordWrap, headingLevel = _a.headingLevel, heading = _a.heading, content = _a.content, statistics = _a.statistics;
|
|
28
|
+
var id = _a.id, isHeadingWordWrap = _a.isHeadingWordWrap, headingLevel = _a.headingLevel, heading = _a.heading, content = _a.content, statistics = _a.statistics, props = filterAttrs.__rest(_a, ["id", "isHeadingWordWrap", "headingLevel", "heading", "content", "statistics"]);
|
|
29
29
|
var componentId = React.useId();
|
|
30
|
-
return (React.createElement(Columns.Columns,
|
|
30
|
+
return (React.createElement(Columns.Columns, filterAttrs.__assign({ isGutterless: true }, filterAttrs.filterAttrs(props)),
|
|
31
31
|
React.createElement(Columns.ColumnsCol, { spanM: 9 },
|
|
32
|
-
React.createElement(SectionHeading.SectionHeading, { id: id, heading: heading, isHeadingWordWrap: isHeadingWordWrap, headingLevel: headingLevel, content: content }),
|
|
33
|
-
React.createElement(VerticalSpace.VerticalSpace, { size: "16" })),
|
|
32
|
+
React.createElement(SectionHeading.SectionHeading, { id: id, heading: heading, isHeadingWordWrap: isHeadingWordWrap, headingLevel: headingLevel, content: content })),
|
|
34
33
|
React.createElement(Columns.ColumnsCol, { spanL: 9 },
|
|
35
34
|
React.createElement("ul", { className: styles.list }, statistics.map(function (_a, i) {
|
|
36
35
|
var stat = _a.stat, copy = _a.copy, link = _a.link, source = _a.source, sourceUrl = _a.sourceUrl;
|
|
@@ -43,18 +42,21 @@ var Statistics = function (_a) {
|
|
|
43
42
|
React.createElement(Columns.ColumnsCol, { spanS: 6, spanM: 8 },
|
|
44
43
|
React.createElement(Align.Align, { vertical: "center" },
|
|
45
44
|
React.createElement("div", { className: styles.statWrapper },
|
|
46
|
-
React.createElement(Heading.Heading, { color: "brand", size: "xxl" }, stat)
|
|
45
|
+
React.createElement(Heading.Heading, { color: "brand", size: "xxl" }, stat),
|
|
46
|
+
React.createElement(Hidden.Hidden, { s: true, m: true, l: true, xl: true, xxl: true },
|
|
47
|
+
React.createElement(VerticalSpace.VerticalSpace, { size: "12" }))))),
|
|
47
48
|
React.createElement(Columns.ColumnsCol, { spanS: 6, spanM: 4 },
|
|
48
|
-
React.createElement(
|
|
49
|
-
|
|
50
|
-
React.createElement(
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
React.createElement(
|
|
54
|
-
|
|
55
|
-
React.createElement(
|
|
56
|
-
|
|
57
|
-
React.createElement(
|
|
49
|
+
React.createElement(Align.Align, { vertical: "center" },
|
|
50
|
+
React.createElement(Text.Text, null, copy),
|
|
51
|
+
link && (React.createElement(React.Fragment, null,
|
|
52
|
+
React.createElement(VerticalSpace.VerticalSpace, { size: "12" }),
|
|
53
|
+
React.createElement("a", filterAttrs.__assign({ href: link.href, "aria-label": link.ariaLabel }, getLinkProps(link)), link.text))),
|
|
54
|
+
source && (React.createElement(React.Fragment, null,
|
|
55
|
+
React.createElement(VerticalSpace.VerticalSpace, { size: "12" }),
|
|
56
|
+
React.createElement(Text.Text, { size: "xs" },
|
|
57
|
+
React.createElement("span", { className: styles.mutedText }, source)))),
|
|
58
|
+
sourceUrl && (React.createElement(Text.Text, { size: "xs" },
|
|
59
|
+
React.createElement("a", { className: styles.mutedText, href: sourceUrl }, sourceUrl))))))));
|
|
58
60
|
})))));
|
|
59
61
|
};
|
|
60
62
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __assign } from '../_shared/esm/
|
|
1
|
+
import { _ as __rest, a as __assign, f as filterAttrs } from '../_shared/esm/filter-attrs-D-1kWaCP.mjs';
|
|
2
2
|
import React, { useId } from 'react';
|
|
3
3
|
import { Columns, ColumnsCol } from '@arc-ui/components/Columns';
|
|
4
4
|
import { Rule } from '@arc-ui/components/Rule';
|
|
@@ -6,12 +6,12 @@ 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 {
|
|
9
|
+
import { Hidden } from '@arc-ui/components/Hidden';
|
|
10
|
+
import { S as SectionHeading } from '../_shared/esm/SectionHeading-DZOg_gYi.mjs';
|
|
10
11
|
import '../_shared/esm/index-BfTCfPZ1.mjs';
|
|
11
|
-
import '../_shared/esm/filter-attrs-DZ7RCEZm.mjs';
|
|
12
12
|
import '@arc-ui/components/Image';
|
|
13
13
|
|
|
14
|
-
var styles = {"list":"Statistics-module_list__BI-eQ","mutedText":"Statistics-module_mutedText__MR1JM"
|
|
14
|
+
var styles = {"list":"Statistics-module_list__BI-eQ","mutedText":"Statistics-module_mutedText__MR1JM"};
|
|
15
15
|
|
|
16
16
|
var getLinkProps = function (link) {
|
|
17
17
|
return link.openInNewTab
|
|
@@ -23,12 +23,11 @@ var getLinkProps = function (link) {
|
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
var Statistics = function (_a) {
|
|
26
|
-
var id = _a.id, isHeadingWordWrap = _a.isHeadingWordWrap, headingLevel = _a.headingLevel, heading = _a.heading, content = _a.content, statistics = _a.statistics;
|
|
26
|
+
var id = _a.id, isHeadingWordWrap = _a.isHeadingWordWrap, headingLevel = _a.headingLevel, heading = _a.heading, content = _a.content, statistics = _a.statistics, props = __rest(_a, ["id", "isHeadingWordWrap", "headingLevel", "heading", "content", "statistics"]);
|
|
27
27
|
var componentId = useId();
|
|
28
|
-
return (React.createElement(Columns,
|
|
28
|
+
return (React.createElement(Columns, __assign({ isGutterless: true }, filterAttrs(props)),
|
|
29
29
|
React.createElement(ColumnsCol, { spanM: 9 },
|
|
30
|
-
React.createElement(SectionHeading, { id: id, heading: heading, isHeadingWordWrap: isHeadingWordWrap, headingLevel: headingLevel, content: content }),
|
|
31
|
-
React.createElement(VerticalSpace, { size: "16" })),
|
|
30
|
+
React.createElement(SectionHeading, { id: id, heading: heading, isHeadingWordWrap: isHeadingWordWrap, headingLevel: headingLevel, content: content })),
|
|
32
31
|
React.createElement(ColumnsCol, { spanL: 9 },
|
|
33
32
|
React.createElement("ul", { className: styles.list }, statistics.map(function (_a, i) {
|
|
34
33
|
var stat = _a.stat, copy = _a.copy, link = _a.link, source = _a.source, sourceUrl = _a.sourceUrl;
|
|
@@ -41,18 +40,21 @@ var Statistics = function (_a) {
|
|
|
41
40
|
React.createElement(ColumnsCol, { spanS: 6, spanM: 8 },
|
|
42
41
|
React.createElement(Align, { vertical: "center" },
|
|
43
42
|
React.createElement("div", { className: styles.statWrapper },
|
|
44
|
-
React.createElement(Heading, { color: "brand", size: "xxl" }, stat)
|
|
43
|
+
React.createElement(Heading, { color: "brand", size: "xxl" }, stat),
|
|
44
|
+
React.createElement(Hidden, { s: true, m: true, l: true, xl: true, xxl: true },
|
|
45
|
+
React.createElement(VerticalSpace, { size: "12" }))))),
|
|
45
46
|
React.createElement(ColumnsCol, { spanS: 6, spanM: 4 },
|
|
46
|
-
React.createElement(
|
|
47
|
-
|
|
48
|
-
React.createElement(
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
React.createElement(
|
|
52
|
-
|
|
53
|
-
React.createElement(
|
|
54
|
-
|
|
55
|
-
React.createElement(
|
|
47
|
+
React.createElement(Align, { vertical: "center" },
|
|
48
|
+
React.createElement(Text, null, copy),
|
|
49
|
+
link && (React.createElement(React.Fragment, null,
|
|
50
|
+
React.createElement(VerticalSpace, { size: "12" }),
|
|
51
|
+
React.createElement("a", __assign({ href: link.href, "aria-label": link.ariaLabel }, getLinkProps(link)), link.text))),
|
|
52
|
+
source && (React.createElement(React.Fragment, null,
|
|
53
|
+
React.createElement(VerticalSpace, { size: "12" }),
|
|
54
|
+
React.createElement(Text, { size: "xs" },
|
|
55
|
+
React.createElement("span", { className: styles.mutedText }, source)))),
|
|
56
|
+
sourceUrl && (React.createElement(Text, { size: "xs" },
|
|
57
|
+
React.createElement("a", { className: styles.mutedText, href: sourceUrl }, sourceUrl))))))));
|
|
56
58
|
})))));
|
|
57
59
|
};
|
|
58
60
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.Statistics-module_list__BI-eQ{list-style:none;margin:0;padding:0}.arc a.Statistics-module_mutedText__MR1JM,.Statistics-module_mutedText__MR1JM{color:var(--sem-color-text-primary-light-subtle)}
|
|
1
|
+
.Statistics-module_list__BI-eQ{list-style:none;margin:0;padding:0}.arc a.Statistics-module_mutedText__MR1JM,.Statistics-module_mutedText__MR1JM{color:var(--sem-color-text-primary-light-subtle)}
|
package/lib/Summary/Summary.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var filterAttrs = require('../_shared/cjs/filter-attrs-C26zOt4_.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-Dq8bYrbW.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');
|
|
@@ -13,9 +13,9 @@ var useMediaQuery = require('@arc-ui/components/use-media-query');
|
|
|
13
13
|
var styles = {"ruleContainer":"Summary-module_ruleContainer__ydWlG","row":"Summary-module_row__SKV--"};
|
|
14
14
|
|
|
15
15
|
var Summary = function (_a) {
|
|
16
|
-
var content = _a.content, _b = _a.noBorder, noBorder = _b === void 0 ? false : _b, _c = _a.headingLevel, headingLevel = _c === void 0 ? "3" : _c;
|
|
16
|
+
var content = _a.content, _b = _a.noBorder, noBorder = _b === void 0 ? false : _b, _c = _a.headingLevel, headingLevel = _c === void 0 ? "3" : _c, props = filterAttrs.__rest(_a, ["content", "noBorder", "headingLevel"]);
|
|
17
17
|
var isMinWidthArcBreakpointM = useMediaQuery.useMediaQuery("(min-width: ".concat(index_es.ArcSizeBreakpointsM, ")"));
|
|
18
|
-
return (React.createElement(Box.Box,
|
|
18
|
+
return (React.createElement(Box.Box, filterAttrs.__assign({ isBorderRadius: true }, (!noBorder ? { borderWidth: "thin" } : { elevationLevel: "1" }), { padding: "24" }, filterAttrs.filterAttrs(props)),
|
|
19
19
|
React.createElement("div", { className: styles.row }, content.map(function (_a, i) {
|
|
20
20
|
var heading = _a.heading, text = _a.text;
|
|
21
21
|
return (React.createElement(React.Fragment, null,
|
package/lib/Summary/Summary.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as __assign } from '../_shared/esm/
|
|
1
|
+
import { _ as __rest, a as __assign, f as filterAttrs } from '../_shared/esm/filter-attrs-D-1kWaCP.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-Bfdys5__.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';
|
|
@@ -11,9 +11,9 @@ import { useMediaQuery } from '@arc-ui/components/use-media-query';
|
|
|
11
11
|
var styles = {"ruleContainer":"Summary-module_ruleContainer__ydWlG","row":"Summary-module_row__SKV--"};
|
|
12
12
|
|
|
13
13
|
var Summary = function (_a) {
|
|
14
|
-
var content = _a.content, _b = _a.noBorder, noBorder = _b === void 0 ? false : _b, _c = _a.headingLevel, headingLevel = _c === void 0 ? "3" : _c;
|
|
14
|
+
var content = _a.content, _b = _a.noBorder, noBorder = _b === void 0 ? false : _b, _c = _a.headingLevel, headingLevel = _c === void 0 ? "3" : _c, props = __rest(_a, ["content", "noBorder", "headingLevel"]);
|
|
15
15
|
var isMinWidthArcBreakpointM = useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsM, ")"));
|
|
16
|
-
return (React.createElement(Box, __assign({ isBorderRadius: true }, (!noBorder ? { borderWidth: "thin" } : { elevationLevel: "1" }), { padding: "24" }),
|
|
16
|
+
return (React.createElement(Box, __assign({ isBorderRadius: true }, (!noBorder ? { borderWidth: "thin" } : { elevationLevel: "1" }), { padding: "24" }, filterAttrs(props)),
|
|
17
17
|
React.createElement("div", { className: styles.row }, content.map(function (_a, i) {
|
|
18
18
|
var heading = _a.heading, text = _a.text;
|
|
19
19
|
return (React.createElement(React.Fragment, null,
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var ThumbnailSignpost = require('../_shared/cjs/ThumbnailSignpost-SBnrGooA.cjs');
|
|
4
|
+
require('../_shared/cjs/filter-attrs-C26zOt4_.cjs');
|
|
5
|
+
require('react');
|
|
6
|
+
require('../_shared/cjs/index-Bp6Dd2i1.cjs');
|
|
7
|
+
require('../_shared/cjs/BtIconArrowRightFill-BVCZv7Lm.cjs');
|
|
8
|
+
require('@arc-ui/components/Image');
|
|
9
|
+
require('@arc-ui/components/VerticalSpace');
|
|
10
|
+
require('@arc-ui/components/Heading');
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
exports.ThumbnailSignpost = ThumbnailSignpost.ThumbnailSignpost;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { T as ThumbnailSignpost } from '../_shared/esm/ThumbnailSignpost-DaZByYIH.mjs';
|
|
2
|
+
import '../_shared/esm/filter-attrs-D-1kWaCP.mjs';
|
|
3
|
+
import 'react';
|
|
4
|
+
import '../_shared/esm/index-BfTCfPZ1.mjs';
|
|
5
|
+
import '../_shared/esm/BtIconArrowRightFill-D0zKgk3B.mjs';
|
|
6
|
+
import '@arc-ui/components/Image';
|
|
7
|
+
import '@arc-ui/components/VerticalSpace';
|
|
8
|
+
import '@arc-ui/components/Heading';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ThumbnailSignpost-module_thumbnailSignpost__Yf26b button{all:unset;cursor:pointer}.ThumbnailSignpost-module_thumbnailSignpost__Yf26b{display:inline-flex;flex-direction:row;gap:var(--arc-size-grid-gutter-s);max-width:720px}.ThumbnailSignpost-module_isLink__FucdG:focus{cursor:pointer;outline:var(--focus-border-weight-s) solid var(--focus-colors-light-border-subtle);outline-offset:2px;border-radius:calc(var(--thumbnail-signpost-border-radius-s) + 2px)}.ThumbnailSignpost-module_isLink__FucdG:hover{cursor:pointer}.ThumbnailSignpost-module_content__XG9oj{width:100%;font:var(--sem-type-body-reg-s)}.ThumbnailSignpost-module_heading__mTrpJ{display:block;font:var(--sem-type-mobile-semi-xxs);font-family:var(--sem-font-family-heading);font-size:1em;font-weight:var(--sem-font-weight-semi-bold);margin:0}.ThumbnailSignpost-module_isLink__FucdG:hover .ThumbnailSignpost-module_heading__mTrpJ,.ThumbnailSignpost-module_isLink__FucdG:focus .ThumbnailSignpost-module_heading__mTrpJ{color:var(--button-v2-colors-light-text-hover);text-decoration:underline}.ThumbnailSignpost-module_image__syGZj{width:calc((((100% + var(--arc-size-grid-gutter-s))/12) * 6) - var(--arc-size-grid-gutter-s))}.ThumbnailSignpost-module_image__syGZj img{border-radius:var(--thumbnail-signpost-border-radius-s);width:100%}@media (min-width:636px){.ThumbnailSignpost-module_image__syGZj{width:calc((((100% + var(--arc-size-grid-gutter-s))/12) * 6) - var(--arc-size-grid-gutter-m))}.ThumbnailSignpost-module_thumbnailSignpost__Yf26b{gap:var(--arc-size-grid-gutter-m)}.ThumbnailSignpost-module_heading__mTrpJ{font:var(--sem-type-mobile-semi-xs)}}@media (min-width:1280px){.ThumbnailSignpost-module_thumbnailSignpost__Yf26b{gap:var(--arc-size-grid-gutter-l)}}.ThumbnailSignpost-module_thumbnailButton__Nn-NR{display:flex;align-items:center;gap:var(--button-v2-gap-xs);color:var(--button-v2-colors-light-text-default);font:var(--sem-type-interface-button-s);height:var(--button-v2-size-s)}.ThumbnailSignpost-module_buttonIcon__ydmza{background:var(--icon-color-brand-alt-light);display:block;height:100%;line-height:0;-webkit-mask-position:center;mask-position:center;-webkit-mask-size:contain;mask-size:contain;width:100%}.ThumbnailSignpost-module_isLink__FucdG:focus .ThumbnailSignpost-module_buttonIcon__ydmza,.ThumbnailSignpost-module_isLink__FucdG:hover .ThumbnailSignpost-module_buttonIcon__ydmza{background:var(--button-v2-colors-light-text-hover)}.ThumbnailSignpost-module_isLink__FucdG:hover .ThumbnailSignpost-module_thumbnailButton__Nn-NR,.ThumbnailSignpost-module_isLink__FucdG:focus .ThumbnailSignpost-module_thumbnailButton__Nn-NR{background:none;color:var(--button-v2-colors-light-text-hover);-webkit-text-decoration:var(--sem-underline);text-decoration:var(--sem-underline)}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var filterAttrs = require('./filter-attrs-C26zOt4_.cjs');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var filterAttrs = require('./filter-attrs-BizjMsy0.cjs');
|
|
6
5
|
var index = require('./index-Bp6Dd2i1.cjs');
|
|
7
6
|
var Heading = require('@arc-ui/components/Heading');
|
|
8
7
|
var Text = require('@arc-ui/components/Text');
|
|
@@ -14,15 +13,15 @@ var styles$2 = {"accordion-header":"AccordionHeading-module_accordion-header__8s
|
|
|
14
13
|
|
|
15
14
|
var AccordionHeading = function (_a) {
|
|
16
15
|
var _b, _c;
|
|
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 =
|
|
18
|
-
return (React.createElement("div",
|
|
16
|
+
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 = filterAttrs.__rest(_a, ["heading", "content", "id", "isPadded", "headingLevel", "headingSize", "image"]);
|
|
17
|
+
return (React.createElement("div", filterAttrs.__assign({ className: index.classNames((_b = {},
|
|
19
18
|
_b[styles$2["accordion-header"]] = true,
|
|
20
19
|
_b[styles$2["accordion-header--padded"]] = isPadded,
|
|
21
20
|
_b[styles$2["accordion-header--headingSizeM"]] = headingSize === "m",
|
|
22
21
|
_b)) }, filterAttrs.filterAttrs(props)),
|
|
23
22
|
React.createElement("div", { className: index.classNames((_c = {}, _c[styles$2["accordion-header--hasImage"]] = image, _c)) },
|
|
24
23
|
image && (React.createElement("div", null,
|
|
25
|
-
React.createElement(Image.Image,
|
|
24
|
+
React.createElement(Image.Image, filterAttrs.__assign({}, image, { width: 68, fit: "cover" })))),
|
|
26
25
|
React.createElement(Heading.Heading, { level: headingLevel, id: id, size: headingSize }, heading)),
|
|
27
26
|
content && (React.createElement(React.Fragment, null,
|
|
28
27
|
headingSize === "xl" ? (React.createElement(VerticalSpace.VerticalSpace, { size: "24" })) : (React.createElement(VerticalSpace.VerticalSpace, { size: "8", sizeL: "12", sizeXL: "16" })),
|
|
@@ -34,9 +33,9 @@ var styles$1 = {"AccordionDisclosureListItem":"AccordionDisclosureList-module_Ac
|
|
|
34
33
|
var AccordionDisclosureList = function (_a) {
|
|
35
34
|
var disclosureList = _a.disclosureList;
|
|
36
35
|
return (React.createElement("ul", null, disclosureList.map(function (_a) {
|
|
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 =
|
|
38
|
-
return (React.createElement("li", { key: id, className: styles$1.AccordionDisclosureListItem },
|
|
39
|
-
React.createElement(Disclosure.Disclosure,
|
|
36
|
+
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 = filterAttrs.__rest(_a, ["children", "summary", "isOpen", "indentDetails", "headingLevel", "id"]);
|
|
37
|
+
return (React.createElement("li", { key: id, className: styles$1.AccordionDisclosureListItem, id: id },
|
|
38
|
+
React.createElement(Disclosure.Disclosure, filterAttrs.__assign({ summary: summary, isOpen: isOpen, indentDetails: indentDetails, headingLevel: headingLevel }, filterAttrs.filterAttrs(props)), children)));
|
|
40
39
|
})));
|
|
41
40
|
};
|
|
42
41
|
|
|
@@ -46,8 +45,8 @@ var styles = {"Accordion":"Accordion-module_Accordion__LsXTU"};
|
|
|
46
45
|
* Use the `Accordion` component to package together a title, content and a number of disclosure components into one section (maximum 10).
|
|
47
46
|
*/
|
|
48
47
|
var Accordion = function (_a) {
|
|
49
|
-
var heading = _a.heading, headingLevel = _a.headingLevel, headingSize = _a.headingSize, content = _a.content, id = _a.id, disclosureList = _a.disclosureList, props =
|
|
50
|
-
return (React.createElement("div",
|
|
48
|
+
var heading = _a.heading, headingLevel = _a.headingLevel, headingSize = _a.headingSize, content = _a.content, id = _a.id, disclosureList = _a.disclosureList, props = filterAttrs.__rest(_a, ["heading", "headingLevel", "headingSize", "content", "id", "disclosureList"]);
|
|
49
|
+
return (React.createElement("div", filterAttrs.__assign({ className: styles.Accordion }, filterAttrs.filterAttrs(props)),
|
|
51
50
|
React.createElement(AccordionHeading, { isPadded: true, id: id, "data-testid": "Accordion-header", heading: heading, headingLevel: headingLevel, headingSize: headingSize, content: content }),
|
|
52
51
|
React.createElement(AccordionDisclosureList, { disclosureList: disclosureList })));
|
|
53
52
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var filterAttrs = require('./filter-attrs-C26zOt4_.cjs');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var filterAttrs = require('./filter-attrs-BizjMsy0.cjs');
|
|
6
5
|
var Grid = require('@arc-ui/components/Grid');
|
|
7
6
|
var Avatar = require('@arc-ui/components/Avatar');
|
|
8
7
|
var Heading = require('@arc-ui/components/Heading');
|
|
@@ -11,16 +10,16 @@ var Text = require('@arc-ui/components/Text');
|
|
|
11
10
|
var styles = {"authorContent":"Author-module_authorContent__TBY7b","largeAvatar":"Author-module_largeAvatar__Vco03"};
|
|
12
11
|
|
|
13
12
|
var Author = function (_a) {
|
|
14
|
-
var name = _a.name, title = _a.title, _b = _a.avatar, avatar = _b === void 0 ? {} : _b, props =
|
|
13
|
+
var name = _a.name, title = _a.title, _b = _a.avatar, avatar = _b === void 0 ? {} : _b, props = filterAttrs.__rest(_a, ["name", "title", "avatar"]);
|
|
15
14
|
var avatarSizes = ["s", "m", "l", "xl"];
|
|
16
15
|
avatar.size = avatarSizes.includes(avatar.size || "") ? avatar.size : "m";
|
|
17
16
|
var isLargeAvatar = avatar.size === "l" || avatar.size === "xl";
|
|
18
|
-
return (React.createElement("div",
|
|
17
|
+
return (React.createElement("div", filterAttrs.__assign({}, filterAttrs.filterAttrs(props)),
|
|
19
18
|
React.createElement(Grid.Grid, { isFluid: true, isGutterless: true },
|
|
20
19
|
React.createElement(Grid.GridRow, { align: "center" },
|
|
21
20
|
React.createElement(Grid.GridCol, { xs: isLargeAvatar ? 12 : "auto" },
|
|
22
21
|
React.createElement("div", { className: isLargeAvatar ? styles.largeAvatar : undefined },
|
|
23
|
-
React.createElement(Avatar.Avatar,
|
|
22
|
+
React.createElement(Avatar.Avatar, filterAttrs.__assign({}, avatar)))),
|
|
24
23
|
React.createElement(Grid.GridCol, null,
|
|
25
24
|
React.createElement("div", { className: "".concat(!isLargeAvatar && styles.authorContent), "data-testid": "authorContent" },
|
|
26
25
|
React.createElement(Heading.Heading, { size: "xs" }, name),
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var filterAttrs = require('./filter-attrs-C26zOt4_.cjs');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var index = require('./index-Bp6Dd2i1.cjs');
|
|
6
|
-
var filterAttrs = require('./filter-attrs-BizjMsy0.cjs');
|
|
7
6
|
var Text = require('@arc-ui/components/Text');
|
|
8
7
|
var VerticalSpace = require('@arc-ui/components/VerticalSpace');
|
|
9
8
|
var Image = require('@arc-ui/components/Image');
|
|
@@ -13,14 +12,14 @@ var styles = {"section-header":"SectionHeading-module_section-header__iB07I","se
|
|
|
13
12
|
|
|
14
13
|
var SectionHeading = function (_a) {
|
|
15
14
|
var _b, _c;
|
|
16
|
-
var heading = _a.heading, content = _a.content, id = _a.id, image = _a.image, isHeadingWordWrap = _a.isHeadingWordWrap, _d = _a.isPadded, isPadded = _d === void 0 ? false : _d, _e = _a.headingLevel, headingLevel = _e === void 0 ? "2" : _e, props =
|
|
17
|
-
return (React.createElement("div",
|
|
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, props = filterAttrs.__rest(_a, ["heading", "content", "id", "image", "isHeadingWordWrap", "isPadded", "headingLevel"]);
|
|
16
|
+
return (React.createElement("div", filterAttrs.__assign({ className: index.classNames((_b = {},
|
|
18
17
|
_b[styles["section-header"]] = true,
|
|
19
18
|
_b[styles["section-header--padded"]] = isPadded,
|
|
20
19
|
_b)) }, filterAttrs.filterAttrs(props)),
|
|
21
20
|
React.createElement("div", { className: index.classNames((_c = {}, _c[styles["section-header--hasImage"]] = image, _c)) },
|
|
22
21
|
image && (React.createElement("div", null,
|
|
23
|
-
React.createElement(Image.Image,
|
|
22
|
+
React.createElement(Image.Image, filterAttrs.__assign({}, image, { width: 68, fit: "cover" })))),
|
|
24
23
|
React.createElement(Heading.Heading, { level: headingLevel, id: id, size: "xl", isWordWrap: isHeadingWordWrap }, heading)),
|
|
25
24
|
content && (React.createElement(React.Fragment, null,
|
|
26
25
|
React.createElement(VerticalSpace.VerticalSpace, { size: "24" }),
|