@arc-ui/community-components 3.2.0 → 3.4.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 +133 -13
- 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 +10 -11
- package/lib/ActionTile/styles.css +1 -1
- package/lib/ArticleSidebar/ArticleSidebar.cjs +9 -10
- package/lib/ArticleSidebar/ArticleSidebar.mjs +46 -47
- 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 +8 -9
- package/lib/ContentInfoWidget/ContentInfoWidget.cjs +3 -2
- package/lib/ContentInfoWidget/ContentInfoWidget.mjs +8 -7
- package/lib/CopyLead/CopyLead.cjs +32 -23
- package/lib/CopyLead/CopyLead.mjs +60 -51
- package/lib/DownloadList/DownloadList.cjs +6 -8
- package/lib/DownloadList/DownloadList.mjs +11 -13
- package/lib/FAQs/FAQs.cjs +5 -6
- package/lib/FAQs/FAQs.mjs +22 -23
- package/lib/FeaturePost/FeaturePost.cjs +14 -15
- package/lib/FeaturePost/FeaturePost.mjs +54 -55
- package/lib/Highlights/Highlights.cjs +11 -12
- package/lib/Highlights/Highlights.mjs +24 -25
- 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 +7 -7
- package/lib/LinkTile/styles.css +1 -1
- package/lib/ProductNavigation/ProductNavigation.cjs +6 -7
- package/lib/ProductNavigation/ProductNavigation.mjs +18 -19
- package/lib/PromoListing/PromoListing.cjs +7 -8
- package/lib/PromoListing/PromoListing.mjs +17 -18
- package/lib/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.cjs +7 -8
- package/lib/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.mjs +9 -10
- package/lib/Quote/Quote.cjs +5 -6
- package/lib/Quote/Quote.mjs +9 -10
- 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 +35 -33
- package/lib/Statistics/styles.css +1 -1
- package/lib/Summary/Summary.cjs +4 -4
- package/lib/Summary/Summary.mjs +13 -13
- package/lib/ThumbnailSignpost/ThumbnailSignpost.cjs +2 -3
- package/lib/ThumbnailSignpost/ThumbnailSignpost.mjs +2 -3
- package/lib/VideoHeroCard/VideoHeroCard.cjs +76 -0
- package/lib/VideoHeroCard/VideoHeroCard.mjs +74 -0
- package/lib/VideoPortraitCard/VideoPortraitCard.cjs +22 -0
- package/lib/VideoPortraitCard/VideoPortraitCard.mjs +20 -0
- package/lib/_shared/cjs/{Accordion-DfNGOjTm.cjs → Accordion-QqDoB3pY.cjs} +8 -9
- package/lib/_shared/cjs/{Author-D4dKNQem.cjs → Author-aL8YXi7C.cjs} +4 -5
- package/lib/_shared/cjs/Preview-Dx1kCzJ1.cjs +102 -0
- package/lib/_shared/cjs/{SectionHeading-DeSFM0HV.cjs → SectionHeading-Dj-dJfv3.cjs} +4 -5
- package/lib/_shared/cjs/{ThumbnailSignpost-GkOiwt-Z.cjs → ThumbnailSignpost-SBnrGooA.cjs} +4 -5
- package/lib/_shared/cjs/VideoCardThumbnail-BqYgpk0u.cjs +440 -0
- package/lib/_shared/cjs/dash.all.min-BPXzla24.cjs +6 -0
- package/lib/_shared/cjs/{tslib.es6-BxB9I209.cjs → filter-attrs-C26zOt4_.cjs} +25 -0
- package/lib/_shared/cjs/hls-Ckhp5fVA.cjs +36628 -0
- package/lib/_shared/cjs/index-DjiIVIaV.cjs +96 -0
- package/lib/_shared/cjs/index-oGP6D6gL.cjs +14826 -0
- package/lib/_shared/cjs/{index.es-Dq8bYrbW.cjs → index.es-B0J3cvrY.cjs} +1 -1
- package/lib/_shared/cjs/mixin-BFwaXKGB.cjs +1027 -0
- package/lib/_shared/cjs/react-CEvhi3LL.cjs +737 -0
- package/lib/_shared/cjs/react-CqsEClV0.cjs +466 -0
- package/lib/_shared/cjs/react-DE6M3seI.cjs +496 -0
- package/lib/_shared/cjs/react-Dri2yjKm.cjs +554 -0
- package/lib/_shared/cjs/react-DxToimBj.cjs +4239 -0
- package/lib/_shared/cjs/react-JTfV8OSA.cjs +325 -0
- package/lib/_shared/cjs/react-caXJFZ8W.cjs +400 -0
- package/lib/_shared/cjs/react-fep2ei7j.cjs +727 -0
- package/lib/_shared/esm/{Accordion-cd1oYvBv.mjs → Accordion-DtU7jbCv.mjs} +16 -17
- package/lib/_shared/esm/Author-CJQFrQM9.mjs +27 -0
- package/lib/_shared/esm/Preview-CmbKOgEO.mjs +100 -0
- package/lib/_shared/esm/{SectionHeading-CpDLCndw.mjs → SectionHeading-BskdQ2Tt.mjs} +10 -11
- package/lib/_shared/esm/{ThumbnailSignpost-BeRiXbUp.mjs → ThumbnailSignpost-CBSdQiHw.mjs} +13 -14
- package/lib/_shared/esm/VideoCardThumbnail-VfOKmPCv.mjs +437 -0
- package/lib/_shared/esm/dash.all.min-CbWI_8dN.mjs +4 -0
- package/lib/_shared/esm/{tslib.es6-D6Wu-xwB.mjs → filter-attrs-D-1kWaCP.mjs} +25 -1
- package/lib/_shared/esm/hls-AFbJDS9D.mjs +36625 -0
- package/lib/_shared/esm/index-CrcIrdjn.mjs +14799 -0
- package/lib/_shared/esm/index-DYnuIO1L.mjs +94 -0
- package/lib/_shared/esm/{index.es-Bfdys5__.mjs → index.es-DraZ-qKh.mjs} +1 -1
- package/lib/_shared/esm/mixin-BGGG8VrM.mjs +1024 -0
- package/lib/_shared/esm/react-BGimq-TB.mjs +4237 -0
- package/lib/_shared/esm/react-BHT4t_eQ.mjs +494 -0
- package/lib/_shared/esm/react-BSd0sGcO.mjs +464 -0
- package/lib/_shared/esm/react-CSr43fZV.mjs +552 -0
- package/lib/_shared/esm/react-Ca6E7Fr-.mjs +398 -0
- package/lib/_shared/esm/react-DG070IvZ.mjs +725 -0
- package/lib/_shared/esm/react-DZyqy7W7.mjs +735 -0
- package/lib/_shared/esm/react-WW_9iHcl.mjs +323 -0
- package/lib/index.cjs +299 -181
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +77 -63
- package/lib/index.d.mts +77 -63
- package/lib/index.mjs +297 -181
- package/lib/index.mjs.map +1 -1
- package/lib/styles.css +1 -1
- package/package.json +15 -12
- package/rollup.config.js +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/CopyLead/components/MediaContent/MediaContent.tsx +7 -6
- package/src/components/CopyLead/templates/Content/Content.tsx +5 -3
- package/src/components/CopyLead/templates/Media/Media.tsx +5 -6
- package/src/components/DownloadList/DownloadList.tsx +8 -8
- package/src/components/FeaturePost/FeaturePost.tsx +3 -7
- 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.tsx +2 -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/VideoHeroCard/VideoHeroCard.tsx +63 -0
- package/src/components/VideoHeroCard/components/VideoHeroCardContent/VideoHeroCardContent.module.css +32 -0
- package/src/components/VideoHeroCard/components/VideoHeroCardContent/VideoHeroCardContent.tsx +97 -0
- package/src/components/VideoHeroCard/components/VideoHeroCardContent/index.ts +4 -0
- package/src/components/VideoHeroCard/index.ts +1 -0
- package/src/components/VideoPortraitCard/VideoPortraitCard.tsx +54 -0
- package/src/components/VideoPortraitCard/index.ts +4 -0
- package/src/components/index.ts +3 -1
- package/src/internal/MultiLineText/MultiLineText.tsx +25 -0
- package/src/internal/MultiLineText/index.ts +1 -0
- package/src/internal/VideoCardPlayer/VideoCardPlayer.module.css +54 -0
- package/src/internal/VideoCardPlayer/VideoCardPlayer.tsx +62 -0
- package/src/internal/VideoCardPlayer/components/VideoCardPlayIcon/VideoCardPlayIcon.module.css +41 -0
- package/src/internal/VideoCardPlayer/components/VideoCardPlayIcon/VideoCardPlayIcon.tsx +28 -0
- package/src/internal/VideoCardPlayer/components/VideoCardPlayIcon/index.ts +1 -0
- package/src/internal/VideoCardPlayer/components/VideoCardThumbnail/VideoCardThumbnail.module.css +58 -0
- package/src/internal/VideoCardPlayer/components/VideoCardThumbnail/VideoCardThumbnail.tsx +38 -0
- package/src/internal/VideoCardPlayer/components/VideoCardThumbnail/index.ts +1 -0
- package/src/internal/VideoCardPlayer/index.ts +2 -0
- package/src/internal/VideoCardPlayer/types/player-props.ts +6 -0
- 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/Author-HnYsFTPT.mjs +0 -28
- 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,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 index_es = require('../_shared/cjs/index.es-Dq8bYrbW.cjs');
|
|
6
|
+
var index_es = require('../_shared/cjs/index.es-B0J3cvrY.cjs');
|
|
8
7
|
var AppButton = require('@arc-ui/components/AppButton');
|
|
9
8
|
var Grid = require('@arc-ui/components/Grid');
|
|
10
9
|
var ButtonV2 = require('@arc-ui/components/ButtonV2');
|
|
@@ -12,7 +11,7 @@ var Heading = require('@arc-ui/components/Heading');
|
|
|
12
11
|
var Text = require('@arc-ui/components/Text');
|
|
13
12
|
var VerticalSpace = require('@arc-ui/components/VerticalSpace');
|
|
14
13
|
var useMediaQuery = require('@arc-ui/components/use-media-query');
|
|
15
|
-
var Author = require('../_shared/cjs/Author-
|
|
14
|
+
var Author = require('../_shared/cjs/Author-aL8YXi7C.cjs');
|
|
16
15
|
var Image$1 = require('@arc-ui/components/Image');
|
|
17
16
|
require('@arc-ui/components/Avatar');
|
|
18
17
|
|
|
@@ -2204,11 +2203,11 @@ function cleanEscapedString(input) {
|
|
|
2204
2203
|
var styles = {"labelDate":"FeaturePost-module_labelDate__NXOgY","googlePlayButtonWrapper":"FeaturePost-module_googlePlayButtonWrapper__GI-ag","imgWrapper":"FeaturePost-module_imgWrapper__r6omd","featurePost":"FeaturePost-module_featurePost__9jY21","featurePostReversed":"FeaturePost-module_featurePostReversed__WQRXm","contentContainer":"FeaturePost-module_contentContainer__kdus7","col":"FeaturePost-module_col__eW8gY"};
|
|
2205
2204
|
|
|
2206
2205
|
var Image = function (_a) {
|
|
2207
|
-
var sources = _a.sources, title = _a.title, description = _a.description, props =
|
|
2206
|
+
var sources = _a.sources, title = _a.title, description = _a.description, props = filterAttrs.__rest(_a, ["sources", "title", "description"]);
|
|
2208
2207
|
return (React.createElement(React.Fragment, null,
|
|
2209
2208
|
React.createElement("div", { className: styles.imgWrapper },
|
|
2210
|
-
React.createElement(Image$1.Image,
|
|
2211
|
-
sources.map(function (source) { return React.createElement("source",
|
|
2209
|
+
React.createElement(Image$1.Image, filterAttrs.__assign({ fadeOnLoad: true }, props), sources &&
|
|
2210
|
+
sources.map(function (source) { return React.createElement("source", filterAttrs.__assign({ key: source.srcSet }, source)); }))),
|
|
2212
2211
|
title && (React.createElement(React.Fragment, null,
|
|
2213
2212
|
React.createElement(VerticalSpace.VerticalSpace, { size: "24" }),
|
|
2214
2213
|
React.createElement(Heading.Heading, { level: "3", size: "s" }, title),
|
|
@@ -2232,9 +2231,9 @@ var MediaContent = function (_a) {
|
|
|
2232
2231
|
setIsClient(true);
|
|
2233
2232
|
}, []);
|
|
2234
2233
|
return (React.createElement(React.Fragment, null,
|
|
2235
|
-
image && !video && React.createElement(Image,
|
|
2234
|
+
image && !video && React.createElement(Image, filterAttrs.__assign({}, image)),
|
|
2236
2235
|
video && isClient && (React.createElement(React.Suspense, { fallback: null },
|
|
2237
|
-
React.createElement(VideoPlayer,
|
|
2236
|
+
React.createElement(VideoPlayer, filterAttrs.__assign({}, video))))));
|
|
2238
2237
|
};
|
|
2239
2238
|
|
|
2240
2239
|
/**
|
|
@@ -2242,9 +2241,9 @@ var MediaContent = function (_a) {
|
|
|
2242
2241
|
* */
|
|
2243
2242
|
var FeaturePost = function (_a) {
|
|
2244
2243
|
var _b;
|
|
2245
|
-
var heading = _a.heading, id = _a.id, _c = _a.headingLevel, headingLevel = _c === void 0 ? "2" : _c, label = _a.label, image = _a.image, content = _a.content, footer = _a.footer, video = _a.video, isHeadingWordWrap = _a.isHeadingWordWrap, _d = _a.isReverseOrder, isReverseOrder = _d === void 0 ? false : _d, props =
|
|
2244
|
+
var heading = _a.heading, id = _a.id, _c = _a.headingLevel, headingLevel = _c === void 0 ? "2" : _c, label = _a.label, image = _a.image, content = _a.content, footer = _a.footer, video = _a.video, isHeadingWordWrap = _a.isHeadingWordWrap, _d = _a.isReverseOrder, isReverseOrder = _d === void 0 ? false : _d, props = filterAttrs.__rest(_a, ["heading", "id", "headingLevel", "label", "image", "content", "footer", "video", "isHeadingWordWrap", "isReverseOrder"]);
|
|
2246
2245
|
var isMinWidthArcBreakpointM = useMediaQuery.useMediaQuery("(min-width: ".concat(index_es.ArcSizeBreakpointsM, ")"));
|
|
2247
|
-
return (React.createElement("div",
|
|
2246
|
+
return (React.createElement("div", filterAttrs.__assign({ "data-testid": "feature-post", className: index.classNames(styles.featurePost, (_b = {},
|
|
2248
2247
|
_b[styles.featurePostReversed] = isReverseOrder,
|
|
2249
2248
|
_b)) }, filterAttrs.filterAttrs(props)),
|
|
2250
2249
|
React.createElement("div", { className: styles.col },
|
|
@@ -2261,14 +2260,14 @@ var FeaturePost = function (_a) {
|
|
|
2261
2260
|
!isMinWidthArcBreakpointM && (React.createElement("div", { "data-testid": "mobile-img" },
|
|
2262
2261
|
React.createElement(VerticalSpace.VerticalSpace, { size: "40" }),
|
|
2263
2262
|
React.createElement(MediaContent, { image: image, video: video }))),
|
|
2264
|
-
React.createElement(VerticalSpace.VerticalSpace, { size: "
|
|
2263
|
+
React.createElement(VerticalSpace.VerticalSpace, { size: "24" }),
|
|
2265
2264
|
typeof content === "string" ? (React.createElement(Text.Text, { size: "l" }, content)) : (content),
|
|
2266
2265
|
(footer === null || footer === void 0 ? void 0 : footer.type) === "cta" && (React.createElement(React.Fragment, null,
|
|
2267
2266
|
footer.author && (React.createElement(React.Fragment, null,
|
|
2268
|
-
React.createElement(VerticalSpace.VerticalSpace, { size: "
|
|
2269
|
-
React.createElement(Author.Author, {
|
|
2267
|
+
React.createElement(VerticalSpace.VerticalSpace, { size: "40" }),
|
|
2268
|
+
React.createElement(Author.Author, filterAttrs.__assign({}, footer.author)))),
|
|
2270
2269
|
React.createElement(VerticalSpace.VerticalSpace, { size: "40" }),
|
|
2271
|
-
React.createElement(ButtonV2.ButtonV2,
|
|
2270
|
+
React.createElement(ButtonV2.ButtonV2, filterAttrs.__assign({ buttonStyle: "secondary" }, footer.button)))),
|
|
2272
2271
|
(footer === null || footer === void 0 ? void 0 : footer.type) === "appButton" && (React.createElement(React.Fragment, null,
|
|
2273
2272
|
React.createElement(VerticalSpace.VerticalSpace, { size: "40" }),
|
|
2274
2273
|
React.createElement(Grid.Grid, { isGutterless: true, isFluid: true },
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { _ as __rest, a as __assign, f as filterAttrs } from '../_shared/esm/filter-attrs-D-1kWaCP.mjs';
|
|
2
|
+
import React__default, { useState, useEffect, Suspense } from 'react';
|
|
3
3
|
import { c as classNames } from '../_shared/esm/index-BfTCfPZ1.mjs';
|
|
4
|
-
import {
|
|
5
|
-
import { b as ArcSizeBreakpointsM } from '../_shared/esm/index.es-Bfdys5__.mjs';
|
|
4
|
+
import { b as ArcSizeBreakpointsM } from '../_shared/esm/index.es-DraZ-qKh.mjs';
|
|
6
5
|
import { AppButton } from '@arc-ui/components/AppButton';
|
|
7
6
|
import { Grid, GridRow, GridCol } from '@arc-ui/components/Grid';
|
|
8
7
|
import { ButtonV2 } from '@arc-ui/components/ButtonV2';
|
|
@@ -10,7 +9,7 @@ import { Heading } from '@arc-ui/components/Heading';
|
|
|
10
9
|
import { Text } from '@arc-ui/components/Text';
|
|
11
10
|
import { VerticalSpace } from '@arc-ui/components/VerticalSpace';
|
|
12
11
|
import { useMediaQuery } from '@arc-ui/components/use-media-query';
|
|
13
|
-
import { A as Author } from '../_shared/esm/Author-
|
|
12
|
+
import { A as Author } from '../_shared/esm/Author-CJQFrQM9.mjs';
|
|
14
13
|
import { Image as Image$1 } from '@arc-ui/components/Image';
|
|
15
14
|
import '@arc-ui/components/Avatar';
|
|
16
15
|
|
|
@@ -2203,19 +2202,19 @@ var styles = {"labelDate":"FeaturePost-module_labelDate__NXOgY","googlePlayButto
|
|
|
2203
2202
|
|
|
2204
2203
|
var Image = function (_a) {
|
|
2205
2204
|
var sources = _a.sources, title = _a.title, description = _a.description, props = __rest(_a, ["sources", "title", "description"]);
|
|
2206
|
-
return (
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
sources.map(function (source) { return
|
|
2210
|
-
title && (
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
description && (
|
|
2214
|
-
|
|
2215
|
-
|
|
2205
|
+
return (React__default.createElement(React__default.Fragment, null,
|
|
2206
|
+
React__default.createElement("div", { className: styles.imgWrapper },
|
|
2207
|
+
React__default.createElement(Image$1, __assign({ fadeOnLoad: true }, props), sources &&
|
|
2208
|
+
sources.map(function (source) { return React__default.createElement("source", __assign({ key: source.srcSet }, source)); }))),
|
|
2209
|
+
title && (React__default.createElement(React__default.Fragment, null,
|
|
2210
|
+
React__default.createElement(VerticalSpace, { size: "24" }),
|
|
2211
|
+
React__default.createElement(Heading, { level: "3", size: "s" }, title),
|
|
2212
|
+
description && (React__default.createElement(React__default.Fragment, null,
|
|
2213
|
+
React__default.createElement(VerticalSpace, { size: "16" }),
|
|
2214
|
+
React__default.createElement(Text, { size: "m" }, description)))))));
|
|
2216
2215
|
};
|
|
2217
2216
|
|
|
2218
|
-
var VideoPlayer =
|
|
2217
|
+
var VideoPlayer = React__default.lazy(function () {
|
|
2219
2218
|
return import('@arc-ui/components/VideoPlayer').then(function (_a) {
|
|
2220
2219
|
var VideoPlayer = _a.VideoPlayer;
|
|
2221
2220
|
return ({
|
|
@@ -2229,10 +2228,10 @@ var MediaContent = function (_a) {
|
|
|
2229
2228
|
useEffect(function () {
|
|
2230
2229
|
setIsClient(true);
|
|
2231
2230
|
}, []);
|
|
2232
|
-
return (
|
|
2233
|
-
image && !video &&
|
|
2234
|
-
video && isClient && (
|
|
2235
|
-
|
|
2231
|
+
return (React__default.createElement(React__default.Fragment, null,
|
|
2232
|
+
image && !video && React__default.createElement(Image, __assign({}, image)),
|
|
2233
|
+
video && isClient && (React__default.createElement(Suspense, { fallback: null },
|
|
2234
|
+
React__default.createElement(VideoPlayer, __assign({}, video))))));
|
|
2236
2235
|
};
|
|
2237
2236
|
|
|
2238
2237
|
/**
|
|
@@ -2242,43 +2241,43 @@ var FeaturePost = function (_a) {
|
|
|
2242
2241
|
var _b;
|
|
2243
2242
|
var heading = _a.heading, id = _a.id, _c = _a.headingLevel, headingLevel = _c === void 0 ? "2" : _c, label = _a.label, image = _a.image, content = _a.content, footer = _a.footer, video = _a.video, isHeadingWordWrap = _a.isHeadingWordWrap, _d = _a.isReverseOrder, isReverseOrder = _d === void 0 ? false : _d, props = __rest(_a, ["heading", "id", "headingLevel", "label", "image", "content", "footer", "video", "isHeadingWordWrap", "isReverseOrder"]);
|
|
2244
2243
|
var isMinWidthArcBreakpointM = useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsM, ")"));
|
|
2245
|
-
return (
|
|
2244
|
+
return (React__default.createElement("div", __assign({ "data-testid": "feature-post", className: classNames(styles.featurePost, (_b = {},
|
|
2246
2245
|
_b[styles.featurePostReversed] = isReverseOrder,
|
|
2247
2246
|
_b)) }, filterAttrs(props)),
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
label && (
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
!isMinWidthArcBreakpointM && (
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
typeof content === "string" ? (
|
|
2264
|
-
(footer === null || footer === void 0 ? void 0 : footer.type) === "cta" && (
|
|
2265
|
-
footer.author && (
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
(footer === null || footer === void 0 ? void 0 : footer.type) === "appButton" && (
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
footer.appStore && (
|
|
2275
|
-
|
|
2276
|
-
footer.googlePlay && (
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
isMinWidthArcBreakpointM && (
|
|
2280
|
-
|
|
2281
|
-
|
|
2247
|
+
React__default.createElement("div", { className: styles.col },
|
|
2248
|
+
React__default.createElement("div", { className: styles.contentContainer },
|
|
2249
|
+
label && (React__default.createElement(Grid, { isGutterless: true, isFluid: true },
|
|
2250
|
+
React__default.createElement(GridRow, { align: "baseline" },
|
|
2251
|
+
React__default.createElement(GridCol, { xs: 12, m: "auto" },
|
|
2252
|
+
React__default.createElement(Heading, { size: "xxs", fontStyle: "overline" }, label.text)),
|
|
2253
|
+
React__default.createElement(GridCol, { xs: 12, m: "auto" },
|
|
2254
|
+
React__default.createElement("div", { className: styles.labelDate },
|
|
2255
|
+
React__default.createElement(Text, { size: "xs", tone: "muted" }, isDate(label.date) ? (React__default.createElement("time", { dateTime: format(label.date, "yyyy-MM-dd") }, format(label.date, "d MMMM yyyy"))) : (React__default.createElement("span", null, label.date)))))),
|
|
2256
|
+
React__default.createElement(VerticalSpace, { size: "24" }))),
|
|
2257
|
+
React__default.createElement(Heading, { id: id, level: headingLevel, isWordWrap: isHeadingWordWrap, size: "xl" }, heading),
|
|
2258
|
+
!isMinWidthArcBreakpointM && (React__default.createElement("div", { "data-testid": "mobile-img" },
|
|
2259
|
+
React__default.createElement(VerticalSpace, { size: "40" }),
|
|
2260
|
+
React__default.createElement(MediaContent, { image: image, video: video }))),
|
|
2261
|
+
React__default.createElement(VerticalSpace, { size: "24" }),
|
|
2262
|
+
typeof content === "string" ? (React__default.createElement(Text, { size: "l" }, content)) : (content),
|
|
2263
|
+
(footer === null || footer === void 0 ? void 0 : footer.type) === "cta" && (React__default.createElement(React__default.Fragment, null,
|
|
2264
|
+
footer.author && (React__default.createElement(React__default.Fragment, null,
|
|
2265
|
+
React__default.createElement(VerticalSpace, { size: "40" }),
|
|
2266
|
+
React__default.createElement(Author, __assign({}, footer.author)))),
|
|
2267
|
+
React__default.createElement(VerticalSpace, { size: "40" }),
|
|
2268
|
+
React__default.createElement(ButtonV2, __assign({ buttonStyle: "secondary" }, footer.button)))),
|
|
2269
|
+
(footer === null || footer === void 0 ? void 0 : footer.type) === "appButton" && (React__default.createElement(React__default.Fragment, null,
|
|
2270
|
+
React__default.createElement(VerticalSpace, { size: "40" }),
|
|
2271
|
+
React__default.createElement(Grid, { isGutterless: true, isFluid: true },
|
|
2272
|
+
React__default.createElement(GridRow, null,
|
|
2273
|
+
footer.appStore && (React__default.createElement(GridCol, { xs: 12, s: "auto" },
|
|
2274
|
+
React__default.createElement(AppButton, { type: "apple-app-store", screenReaderText: footer.appStore.screenReaderText, url: footer.appStore.url }))),
|
|
2275
|
+
footer.googlePlay && (React__default.createElement(GridCol, { xs: 12, s: "auto" },
|
|
2276
|
+
React__default.createElement("div", { className: styles.googlePlayButtonWrapper },
|
|
2277
|
+
React__default.createElement(AppButton, { type: "google-play", screenReaderText: footer.googlePlay.screenReaderText, url: footer.googlePlay.url })))))))))),
|
|
2278
|
+
isMinWidthArcBreakpointM && (React__default.createElement("div", { className: styles.col },
|
|
2279
|
+
React__default.createElement("div", { "data-testid": "desktop-img", className: styles.imgContainer },
|
|
2280
|
+
React__default.createElement(MediaContent, { image: image, video: video }))))));
|
|
2282
2281
|
};
|
|
2283
2282
|
|
|
2284
2283
|
export { FeaturePost };
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var filterAttrs = require('../_shared/cjs/filter-attrs-C26zOt4_.cjs');
|
|
3
4
|
var React = require('react');
|
|
4
5
|
var useMediaQuery = require('@arc-ui/components/use-media-query');
|
|
5
6
|
var ButtonV2 = require('@arc-ui/components/ButtonV2');
|
|
6
7
|
var VerticalSpace = require('@arc-ui/components/VerticalSpace');
|
|
7
8
|
var BtIconArrowRightFill = require('../_shared/cjs/BtIconArrowRightFill-BVCZv7Lm.cjs');
|
|
8
|
-
var SectionHeading = require('../_shared/cjs/SectionHeading-
|
|
9
|
+
var SectionHeading = require('../_shared/cjs/SectionHeading-Dj-dJfv3.cjs');
|
|
9
10
|
var index = require('../_shared/cjs/index-Bp6Dd2i1.cjs');
|
|
10
11
|
var Heading = require('@arc-ui/components/Heading');
|
|
11
12
|
var Icon = require('@arc-ui/components/Icon');
|
|
12
13
|
var Text = require('@arc-ui/components/Text');
|
|
13
14
|
var Link = require('@arc-ui/components/Link');
|
|
14
|
-
require('../_shared/cjs/tslib.es6-BxB9I209.cjs');
|
|
15
|
-
require('../_shared/cjs/filter-attrs-BizjMsy0.cjs');
|
|
16
15
|
require('@arc-ui/components/Image');
|
|
17
16
|
|
|
18
17
|
var styles = {"highlights":"Highlights-module_highlights__Hf7Zq","highlightItem":"Highlights-module_highlightItem__-N6le","highlights2Column":"Highlights-module_highlights2Column__6qIuI","highlights3Column":"Highlights-module_highlights3Column__qsCMP"};
|
|
@@ -23,9 +22,9 @@ var getListHeadingLevel = function (level) {
|
|
|
23
22
|
};
|
|
24
23
|
|
|
25
24
|
var HighlightItem = function (_a) {
|
|
26
|
-
var icon = _a.icon, heading = _a.heading, text = _a.text, link = _a.link, isSmallIcon = _a.isSmallIcon, headingLevel = _a.headingLevel;
|
|
25
|
+
var icon = _a.icon, heading = _a.heading, text = _a.text, link = _a.link, isSmallIcon = _a.isSmallIcon, headingLevel = _a.headingLevel, props = filterAttrs.__rest(_a, ["icon", "heading", "text", "link", "isSmallIcon", "headingLevel"]);
|
|
27
26
|
var listHeadingLevel = getListHeadingLevel(headingLevel || "2");
|
|
28
|
-
return (React.createElement("div", { "data-testid": "highlight-item-container", className: styles.highlightItem },
|
|
27
|
+
return (React.createElement("div", filterAttrs.__assign({ "data-testid": "highlight-item-container", className: styles.highlightItem }, filterAttrs.filterAttrs(props)),
|
|
29
28
|
icon && (React.createElement("div", { className: styles.Icon },
|
|
30
29
|
React.createElement(Icon.Icon, { "data-testid": "highlight-icon", color: "brand", icon: icon, size: isSmallIcon ? 64 : 76 }))),
|
|
31
30
|
React.createElement(VerticalSpace.VerticalSpace, { size: "16" }),
|
|
@@ -37,11 +36,11 @@ var HighlightItem = function (_a) {
|
|
|
37
36
|
};
|
|
38
37
|
|
|
39
38
|
var HighlightList = function (_a) {
|
|
40
|
-
var listItems = _a.listItems, columns = _a.columns, isSmallIcon = _a.isSmallIcon, headingLevel = _a.headingLevel;
|
|
39
|
+
var listItems = _a.listItems, columns = _a.columns, isSmallIcon = _a.isSmallIcon, headingLevel = _a.headingLevel, props = filterAttrs.__rest(_a, ["listItems", "columns", "isSmallIcon", "headingLevel"]);
|
|
41
40
|
var id = React.useId();
|
|
42
|
-
return (React.createElement("div", { "data-testid": "highlights-list", className: index.classNames(styles.highlights, styles["highlights".concat(columns, "Column")]) }, listItems.map(function (_a, i) {
|
|
43
|
-
var icon = _a.icon, heading = _a.heading, text = _a.text, link = _a.link;
|
|
44
|
-
return (React.createElement(HighlightItem, { key: "highlight-".concat(id, "-").concat(i), icon: icon, heading: heading, text: text, link: link, isSmallIcon: isSmallIcon, headingLevel: headingLevel }));
|
|
41
|
+
return (React.createElement("div", filterAttrs.__assign({ "data-testid": "highlights-list", className: index.classNames(styles.highlights, styles["highlights".concat(columns, "Column")]) }, filterAttrs.filterAttrs(props)), listItems.map(function (_a, i) {
|
|
42
|
+
var icon = _a.icon, heading = _a.heading, text = _a.text, link = _a.link, itemProps = filterAttrs.__rest(_a, ["icon", "heading", "text", "link"]);
|
|
43
|
+
return (React.createElement(HighlightItem, filterAttrs.__assign({ key: "highlight-".concat(id, "-").concat(i), icon: icon, heading: heading, text: text, link: link, isSmallIcon: isSmallIcon, headingLevel: headingLevel }, itemProps)));
|
|
45
44
|
})));
|
|
46
45
|
};
|
|
47
46
|
|
|
@@ -52,11 +51,11 @@ var HighlightList = function (_a) {
|
|
|
52
51
|
*/
|
|
53
52
|
var Highlights = function (_a) {
|
|
54
53
|
var _b, _c, _d;
|
|
55
|
-
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;
|
|
54
|
+
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, props = filterAttrs.__rest(_a, ["heading", "headingLevel", "id", "isHeadingWordWrap", "content", "listItems", "columns", "cta"]);
|
|
56
55
|
var isMaxWidthArcBreakpointXs = useMediaQuery.useMediaQuery("(max-width: 767px)");
|
|
57
|
-
return (React.createElement("div",
|
|
56
|
+
return (React.createElement("div", filterAttrs.__assign({}, filterAttrs.filterAttrs(props)),
|
|
58
57
|
React.createElement(SectionHeading.SectionHeading, { isPadded: true, id: id, "data-testid": "highlights-header", heading: heading, headingLevel: headingLevel, isHeadingWordWrap: isHeadingWordWrap, content: content }),
|
|
59
|
-
React.createElement(HighlightList, {
|
|
58
|
+
React.createElement(HighlightList, { listItems: listItems, columns: columns, isSmallIcon: isMaxWidthArcBreakpointXs, headingLevel: headingLevel }),
|
|
60
59
|
cta && (React.createElement(React.Fragment, null,
|
|
61
60
|
React.createElement(VerticalSpace.VerticalSpace, { size: "24" }),
|
|
62
61
|
React.createElement(ButtonV2.ButtonV2, { label: cta.label, href: cta.href, onClick: cta.onClick, size: "m", ariaLabel: cta.ariaLabel, buttonStyle: cta.buttonStyle, icon: cta.buttonStyle === "compact"
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { _ as __rest, a as __assign, f as filterAttrs } from '../_shared/esm/filter-attrs-D-1kWaCP.mjs';
|
|
2
|
+
import React__default, { useId } from 'react';
|
|
2
3
|
import { useMediaQuery } from '@arc-ui/components/use-media-query';
|
|
3
4
|
import { ButtonV2 } from '@arc-ui/components/ButtonV2';
|
|
4
5
|
import { VerticalSpace } from '@arc-ui/components/VerticalSpace';
|
|
5
6
|
import { B as BtIconArrowRightFill } from '../_shared/esm/BtIconArrowRightFill-D0zKgk3B.mjs';
|
|
6
|
-
import { S as SectionHeading } from '../_shared/esm/SectionHeading-
|
|
7
|
+
import { S as SectionHeading } from '../_shared/esm/SectionHeading-BskdQ2Tt.mjs';
|
|
7
8
|
import { c as classNames } from '../_shared/esm/index-BfTCfPZ1.mjs';
|
|
8
9
|
import { Heading } from '@arc-ui/components/Heading';
|
|
9
10
|
import { Icon } from '@arc-ui/components/Icon';
|
|
10
11
|
import { Text } from '@arc-ui/components/Text';
|
|
11
12
|
import { Link } from '@arc-ui/components/Link';
|
|
12
|
-
import '../_shared/esm/tslib.es6-D6Wu-xwB.mjs';
|
|
13
|
-
import '../_shared/esm/filter-attrs-DZ7RCEZm.mjs';
|
|
14
13
|
import '@arc-ui/components/Image';
|
|
15
14
|
|
|
16
15
|
var styles = {"highlights":"Highlights-module_highlights__Hf7Zq","highlightItem":"Highlights-module_highlightItem__-N6le","highlights2Column":"Highlights-module_highlights2Column__6qIuI","highlights3Column":"Highlights-module_highlights3Column__qsCMP"};
|
|
@@ -21,25 +20,25 @@ var getListHeadingLevel = function (level) {
|
|
|
21
20
|
};
|
|
22
21
|
|
|
23
22
|
var HighlightItem = function (_a) {
|
|
24
|
-
var icon = _a.icon, heading = _a.heading, text = _a.text, link = _a.link, isSmallIcon = _a.isSmallIcon, headingLevel = _a.headingLevel;
|
|
23
|
+
var icon = _a.icon, heading = _a.heading, text = _a.text, link = _a.link, isSmallIcon = _a.isSmallIcon, headingLevel = _a.headingLevel, props = __rest(_a, ["icon", "heading", "text", "link", "isSmallIcon", "headingLevel"]);
|
|
25
24
|
var listHeadingLevel = getListHeadingLevel(headingLevel || "2");
|
|
26
|
-
return (
|
|
27
|
-
icon && (
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
link && (
|
|
25
|
+
return (React__default.createElement("div", __assign({ "data-testid": "highlight-item-container", className: styles.highlightItem }, filterAttrs(props)),
|
|
26
|
+
icon && (React__default.createElement("div", { className: styles.Icon },
|
|
27
|
+
React__default.createElement(Icon, { "data-testid": "highlight-icon", color: "brand", icon: icon, size: isSmallIcon ? 64 : 76 }))),
|
|
28
|
+
React__default.createElement(VerticalSpace, { size: "16" }),
|
|
29
|
+
React__default.createElement(Heading, { level: listHeadingLevel, size: "m" }, heading),
|
|
30
|
+
React__default.createElement(VerticalSpace, { size: "16" }),
|
|
31
|
+
React__default.createElement(Text, null, text),
|
|
32
|
+
React__default.createElement(VerticalSpace, { size: "16" }),
|
|
33
|
+
link && (React__default.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))));
|
|
35
34
|
};
|
|
36
35
|
|
|
37
36
|
var HighlightList = function (_a) {
|
|
38
|
-
var listItems = _a.listItems, columns = _a.columns, isSmallIcon = _a.isSmallIcon, headingLevel = _a.headingLevel;
|
|
37
|
+
var listItems = _a.listItems, columns = _a.columns, isSmallIcon = _a.isSmallIcon, headingLevel = _a.headingLevel, props = __rest(_a, ["listItems", "columns", "isSmallIcon", "headingLevel"]);
|
|
39
38
|
var id = useId();
|
|
40
|
-
return (
|
|
41
|
-
var icon = _a.icon, heading = _a.heading, text = _a.text, link = _a.link;
|
|
42
|
-
return (
|
|
39
|
+
return (React__default.createElement("div", __assign({ "data-testid": "highlights-list", className: classNames(styles.highlights, styles["highlights".concat(columns, "Column")]) }, filterAttrs(props)), listItems.map(function (_a, i) {
|
|
40
|
+
var icon = _a.icon, heading = _a.heading, text = _a.text, link = _a.link, itemProps = __rest(_a, ["icon", "heading", "text", "link"]);
|
|
41
|
+
return (React__default.createElement(HighlightItem, __assign({ key: "highlight-".concat(id, "-").concat(i), icon: icon, heading: heading, text: text, link: link, isSmallIcon: isSmallIcon, headingLevel: headingLevel }, itemProps)));
|
|
43
42
|
})));
|
|
44
43
|
};
|
|
45
44
|
|
|
@@ -50,14 +49,14 @@ var HighlightList = function (_a) {
|
|
|
50
49
|
*/
|
|
51
50
|
var Highlights = function (_a) {
|
|
52
51
|
var _b, _c, _d;
|
|
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;
|
|
52
|
+
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, props = __rest(_a, ["heading", "headingLevel", "id", "isHeadingWordWrap", "content", "listItems", "columns", "cta"]);
|
|
54
53
|
var isMaxWidthArcBreakpointXs = useMediaQuery("(max-width: 767px)");
|
|
55
|
-
return (
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
cta && (
|
|
59
|
-
|
|
60
|
-
|
|
54
|
+
return (React__default.createElement("div", __assign({}, filterAttrs(props)),
|
|
55
|
+
React__default.createElement(SectionHeading, { isPadded: true, id: id, "data-testid": "highlights-header", heading: heading, headingLevel: headingLevel, isHeadingWordWrap: isHeadingWordWrap, content: content }),
|
|
56
|
+
React__default.createElement(HighlightList, { listItems: listItems, columns: columns, isSmallIcon: isMaxWidthArcBreakpointXs, headingLevel: headingLevel }),
|
|
57
|
+
cta && (React__default.createElement(React__default.Fragment, null,
|
|
58
|
+
React__default.createElement(VerticalSpace, { size: "24" }),
|
|
59
|
+
React__default.createElement(ButtonV2, { label: cta.label, href: cta.href, onClick: cta.onClick, size: "m", ariaLabel: cta.ariaLabel, buttonStyle: cta.buttonStyle, icon: cta.buttonStyle === "compact"
|
|
61
60
|
? ((_b = cta.icon) !== null && _b !== void 0 ? _b : BtIconArrowRightFill)
|
|
62
61
|
: undefined, iconActive: cta.buttonStyle === "compact"
|
|
63
62
|
? ((_c = cta.iconActive) !== null && _c !== void 0 ? _c : BtIconArrowRightFill)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var filterAttrs = require('../_shared/cjs/filter-attrs-C26zOt4_.cjs');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var Link = require('@arc-ui/components/Link');
|
|
6
|
+
var Icon = require('@arc-ui/components/Icon');
|
|
7
|
+
var Heading = require('@arc-ui/components/Heading');
|
|
8
|
+
var BtIconArrowAltRight = require('../_shared/cjs/BtIconArrowAltRight-CLQdP61r.cjs');
|
|
9
|
+
|
|
10
|
+
var styles = {"quick-help":"InlineLinkGroup-module_quick-help__cMTpB","quick-help-label":"InlineLinkGroup-module_quick-help-label__VLKen","quick-help-container":"InlineLinkGroup-module_quick-help-container__IStTk","quick-help-item":"InlineLinkGroup-module_quick-help-item__QTIMl","quick-help-separator":"InlineLinkGroup-module_quick-help-separator__qJE0q","quick-help-separator-line":"InlineLinkGroup-module_quick-help-separator-line__VbCVI"};
|
|
11
|
+
|
|
12
|
+
var InlineLinkGroup = function (_a) {
|
|
13
|
+
var label = _a.label, links = _a.links, props = filterAttrs.__rest(_a, ["label", "links"]);
|
|
14
|
+
return (React.createElement("div", filterAttrs.__assign({ className: styles["quick-help"] }, filterAttrs.filterAttrs(props)),
|
|
15
|
+
label && (React.createElement("div", { className: styles["quick-help-label"] },
|
|
16
|
+
React.createElement(Heading.Heading, { size: "xxs", fontStyle: "overline" }, label))),
|
|
17
|
+
React.createElement("ul", { className: styles["quick-help-container"] }, links.map(function (link, index) { return (React.createElement(React.Fragment, { key: index },
|
|
18
|
+
React.createElement("li", { className: styles["quick-help-item"] },
|
|
19
|
+
React.createElement(Link.Link, { href: link.href, onClick: link.onClick, "aria-label": link.ariaLabel }, link.label),
|
|
20
|
+
React.createElement(Icon.Icon, { icon: BtIconArrowAltRight.BtIconArrowAltRight, size: 24, color: "brand" })),
|
|
21
|
+
index < links.length - 1 && (React.createElement("li", { className: styles["quick-help-separator"], "aria-hidden": "true" },
|
|
22
|
+
React.createElement("div", { className: styles["quick-help-separator-line"] }))))); }))));
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
exports.InlineLinkGroup = InlineLinkGroup;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { _ as __rest, a as __assign, f as filterAttrs } from '../_shared/esm/filter-attrs-D-1kWaCP.mjs';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { Link } from '@arc-ui/components/Link';
|
|
4
|
+
import { Icon } from '@arc-ui/components/Icon';
|
|
5
|
+
import { Heading } from '@arc-ui/components/Heading';
|
|
6
|
+
import { B as BtIconArrowAltRight } from '../_shared/esm/BtIconArrowAltRight-VH6RTTnL.mjs';
|
|
7
|
+
|
|
8
|
+
var styles = {"quick-help":"InlineLinkGroup-module_quick-help__cMTpB","quick-help-label":"InlineLinkGroup-module_quick-help-label__VLKen","quick-help-container":"InlineLinkGroup-module_quick-help-container__IStTk","quick-help-item":"InlineLinkGroup-module_quick-help-item__QTIMl","quick-help-separator":"InlineLinkGroup-module_quick-help-separator__qJE0q","quick-help-separator-line":"InlineLinkGroup-module_quick-help-separator-line__VbCVI"};
|
|
9
|
+
|
|
10
|
+
var InlineLinkGroup = function (_a) {
|
|
11
|
+
var label = _a.label, links = _a.links, props = __rest(_a, ["label", "links"]);
|
|
12
|
+
return (React__default.createElement("div", __assign({ className: styles["quick-help"] }, filterAttrs(props)),
|
|
13
|
+
label && (React__default.createElement("div", { className: styles["quick-help-label"] },
|
|
14
|
+
React__default.createElement(Heading, { size: "xxs", fontStyle: "overline" }, label))),
|
|
15
|
+
React__default.createElement("ul", { className: styles["quick-help-container"] }, links.map(function (link, index) { return (React__default.createElement(React__default.Fragment, { key: index },
|
|
16
|
+
React__default.createElement("li", { className: styles["quick-help-item"] },
|
|
17
|
+
React__default.createElement(Link, { href: link.href, onClick: link.onClick, "aria-label": link.ariaLabel }, link.label),
|
|
18
|
+
React__default.createElement(Icon, { icon: BtIconArrowAltRight, size: 24, color: "brand" })),
|
|
19
|
+
index < links.length - 1 && (React__default.createElement("li", { className: styles["quick-help-separator"], "aria-hidden": "true" },
|
|
20
|
+
React__default.createElement("div", { className: styles["quick-help-separator-line"] }))))); }))));
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export { InlineLinkGroup };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.InlineLinkGroup-module_quick-help__cMTpB{display:flex;flex-direction:column;align-items:center;width:100%}.InlineLinkGroup-module_quick-help__cMTpB ul,.InlineLinkGroup-module_quick-help__cMTpB li{list-style:none;margin:0;padding:0}.InlineLinkGroup-module_quick-help-label__VLKen{display:flex;flex-direction:row;align-items:center;padding-bottom:var(--sem-space-padding-110);width:100%}.InlineLinkGroup-module_quick-help-container__IStTk{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:var(--sem-space-padding-70);width:100%}.InlineLinkGroup-module_quick-help-item__QTIMl{display:flex;align-items:center;gap:var(--arc-spacing-4);width:auto;flex:0 0 auto}.InlineLinkGroup-module_quick-help-item__QTIMl svg{display:none;width:24px;height:24px}.InlineLinkGroup-module_quick-help-separator__qJE0q{display:flex;align-items:center}.InlineLinkGroup-module_quick-help-separator-line__VbCVI{width:1px;height:14px;background:var(--sem-color-border-secondary-light-minimal)}@media not (min-width:636px){.InlineLinkGroup-module_quick-help-container__IStTk{flex-direction:column;align-items:flex-start;gap:var(--sem-space-padding-70)}.InlineLinkGroup-module_quick-help-item__QTIMl svg{display:block}.InlineLinkGroup-module_quick-help-separator__qJE0q{display:none}}
|
|
@@ -1,21 +1,21 @@
|
|
|
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 filterAttrs = require('../_shared/cjs/filter-attrs-BizjMsy0.cjs');
|
|
7
6
|
var Icon = require('@arc-ui/components/Icon');
|
|
8
7
|
var BtIconArrowAltRight = require('../_shared/cjs/BtIconArrowAltRight-CLQdP61r.cjs');
|
|
9
8
|
|
|
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"};
|
|
9
|
+
var styles = {"link-tile":"LinkTile-module_link-tile__xVUP3","link-tile-content":"LinkTile-module_link-tile-content__H-QN8","link-tile-icon":"LinkTile-module_link-tile-icon__kTMfH","link-tile-text":"LinkTile-module_link-tile-text__0K6zf"};
|
|
11
10
|
|
|
12
11
|
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 =
|
|
12
|
+
var text = _a.text, href = _a.href, _b = _a.showIcon, showIcon = _b === void 0 ? true : _b, className = _a.className, props = filterAttrs.__rest(_a, ["text", "href", "showIcon", "className"]);
|
|
14
13
|
var Component = href ? "a" : "div";
|
|
15
14
|
var linkProps = href ? { href: href } : {};
|
|
16
|
-
return (React.createElement(Component,
|
|
15
|
+
return (React.createElement(Component, filterAttrs.__assign({ className: index.classNames(styles["link-tile"], className) }, linkProps, filterAttrs.filterAttrs(props)), text && (React.createElement("div", { className: styles["link-tile-content"] },
|
|
17
16
|
React.createElement("span", { className: styles["link-tile-text"] }, text),
|
|
18
|
-
showIcon && React.createElement(
|
|
17
|
+
showIcon && (React.createElement("span", { className: styles["link-tile-icon"] },
|
|
18
|
+
React.createElement(Icon.Icon, { icon: BtIconArrowAltRight.BtIconArrowAltRight, size: 32 })))))));
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
exports.LinkTile = LinkTile;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { _ as __rest, a as __assign, f as filterAttrs } from '../_shared/esm/filter-attrs-D-1kWaCP.mjs';
|
|
2
|
+
import React__default from 'react';
|
|
3
3
|
import { c as classNames } from '../_shared/esm/index-BfTCfPZ1.mjs';
|
|
4
|
-
import { f as filterAttrs } from '../_shared/esm/filter-attrs-DZ7RCEZm.mjs';
|
|
5
4
|
import { Icon } from '@arc-ui/components/Icon';
|
|
6
5
|
import { B as BtIconArrowAltRight } from '../_shared/esm/BtIconArrowAltRight-VH6RTTnL.mjs';
|
|
7
6
|
|
|
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"};
|
|
7
|
+
var styles = {"link-tile":"LinkTile-module_link-tile__xVUP3","link-tile-content":"LinkTile-module_link-tile-content__H-QN8","link-tile-icon":"LinkTile-module_link-tile-icon__kTMfH","link-tile-text":"LinkTile-module_link-tile-text__0K6zf"};
|
|
9
8
|
|
|
10
9
|
var LinkTile = function (_a) {
|
|
11
10
|
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
11
|
var Component = href ? "a" : "div";
|
|
13
12
|
var linkProps = href ? { href: href } : {};
|
|
14
|
-
return (
|
|
15
|
-
|
|
16
|
-
showIcon &&
|
|
13
|
+
return (React__default.createElement(Component, __assign({ className: classNames(styles["link-tile"], className) }, linkProps, filterAttrs(props)), text && (React__default.createElement("div", { className: styles["link-tile-content"] },
|
|
14
|
+
React__default.createElement("span", { className: styles["link-tile-text"] }, text),
|
|
15
|
+
showIcon && (React__default.createElement("span", { className: styles["link-tile-icon"] },
|
|
16
|
+
React__default.createElement(Icon, { icon: BtIconArrowAltRight, size: 32 })))))));
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
export { LinkTile };
|
package/lib/LinkTile/styles.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.LinkTile-module_link-tile__xVUP3{display:flex;flex-direction:column;width:306px;border:
|
|
1
|
+
.LinkTile-module_link-tile__xVUP3{box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;align-items:center;width:306px;height:96px;border:var(--sem-border-width-xxs) solid var(--sem-color-border-secondary-light-minimal);border-radius:var(--sem-border-radius-xl);padding:var(--sem-space-padding-110) var(--sem-space-padding-70) var(--sem-space-padding-110) var(--sem-space-padding-110);background:var(--sem-color-bg-secondary-light-default);text-decoration:none;cursor:pointer;transition:border-color 0.2s ease;flex:none;align-self:stretch;position:relative;overflow:visible}.LinkTile-module_link-tile-content__H-QN8{display:flex;flex-direction:row;justify-content:center;align-items:center;gap:var(--sem-space-padding-40);width:100%;height:48px;flex:none;align-self:stretch}.LinkTile-module_link-tile-icon__kTMfH{display:flex;width:32px;height:32px;color:var(--sem-color-fg-primary-light-default);transition:color 0.2s ease;flex:none;flex-shrink:0;order:1}.LinkTile-module_link-tile-text__0K6zf{font-family:var(--sem-font-family-heading);font-size:var(--sem-font-size-100);font-weight:var(--sem-font-weight-semi);line-height:var(--sem-line-height-base-scale-xs);letter-spacing:0;color:var(--sem-color-fg-primary-light-default);transition:color 0.2s ease;flex:1;order:0}.LinkTile-module_link-tile-icon__kTMfH svg,.LinkTile-module_link-tile__xVUP3 .LinkTile-module_link-tile-content__H-QN8 svg{color:inherit;transition:color 0.2s ease}.LinkTile-module_link-tile__xVUP3[\:not-has\(svg\)]{padding:var(--sem-space-padding-110)}.LinkTile-module_link-tile__xVUP3:not(:has(svg)){padding:var(--sem-space-padding-110)}.LinkTile-module_link-tile__xVUP3:active{border-radius:var(--sem-border-radius-xl)}@media (min-width:1024px){.LinkTile-module_link-tile__xVUP3{padding:var(--sem-space-padding-110) var(--sem-space-padding-70) var(--sem-space-padding-110) var(--sem-space-padding-110)}}.LinkTile-module_link-tile__xVUP3:hover{border-color:transparent;box-shadow:inset 0 0 0 2px var(--button-v2-colors-light-text-hover)}.LinkTile-module_link-tile__xVUP3:hover .LinkTile-module_link-tile-text__0K6zf{color:var(--button-v2-colors-light-text-hover)}.LinkTile-module_link-tile__xVUP3:hover .LinkTile-module_link-tile-icon__kTMfH{color:var(--button-v2-colors-light-text-hover)}
|
|
@@ -1,12 +1,11 @@
|
|
|
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 filterAttrs = require('../_shared/cjs/filter-attrs-BizjMsy0.cjs');
|
|
7
6
|
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-
|
|
7
|
+
var index_es = require('../_shared/cjs/index.es-B0J3cvrY.cjs');
|
|
8
|
+
var SectionHeading = require('../_shared/cjs/SectionHeading-Dj-dJfv3.cjs');
|
|
10
9
|
var ButtonV2 = require('@arc-ui/components/ButtonV2');
|
|
11
10
|
var InformationCard = require('@arc-ui/components/InformationCard');
|
|
12
11
|
var VerticalSpace = require('@arc-ui/components/VerticalSpace');
|
|
@@ -21,7 +20,7 @@ var styles = {"product-navigation-grid":"ProductNavigation-module_product-naviga
|
|
|
21
20
|
* Use `ProductNavigation` to give a collection of product information cards collected within a grid that has optional show/hide capability
|
|
22
21
|
*/
|
|
23
22
|
var ProductNavigation = function (_a) {
|
|
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 =
|
|
23
|
+
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 = filterAttrs.__rest(_a, ["heading", "id", "headingLevel", "isHeadingWordWrap", "content", "hideButton", "productList", "defaultExpanded", "minHeight", "cardsToDisplay", "listIncrement", "onClickMore", "onClickLess", "hideShowLess", "isLoading", "image"]);
|
|
25
24
|
var _g = React.useState(false), hideLessButton = _g[0], setHideLessButton = _g[1];
|
|
26
25
|
var _h = React.useState(cardsToDisplay), skipLinkCard = _h[0], setSkipLinkCard = _h[1];
|
|
27
26
|
var _j = React.useState(productList.slice(0, cardsToDisplay)), displayList = _j[0], setDisplayList = _j[1];
|
|
@@ -57,12 +56,12 @@ var ProductNavigation = function (_a) {
|
|
|
57
56
|
}
|
|
58
57
|
};
|
|
59
58
|
var isMinWidthArcBreakpointS = useMediaQuery.useMediaQuery("(min-width: ".concat(index_es.ArcSizeBreakpointsS, ")"));
|
|
60
|
-
return (React.createElement("div",
|
|
59
|
+
return (React.createElement("div", filterAttrs.__assign({}, filterAttrs.filterAttrs(props)),
|
|
61
60
|
React.createElement(SectionHeading.SectionHeading, { isPadded: true, id: id, "data-testid": "ProductNavigation-header", heading: heading, headingLevel: headingLevel, isHeadingWordWrap: isHeadingWordWrap, content: content, image: image }),
|
|
62
61
|
React.createElement("ul", { className: index.classNames(styles["product-navigation-grid"]) }, displayList === null || displayList === void 0 ? void 0 : displayList.map(function (cardProps, i) {
|
|
63
62
|
var _a;
|
|
64
63
|
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,
|
|
64
|
+
React.createElement(InformationCard.InformationCard, filterAttrs.__assign({}, cardProps, { minHeight: minHeight !== null && minHeight !== void 0 ? minHeight : cardProps.minHeight, headingLevel: (_a = cardProps.headingLevel) !== null && _a !== void 0 ? _a : "2" }))));
|
|
66
65
|
})),
|
|
67
66
|
React.createElement(VerticalSpace.VerticalSpace, { size: "40" }),
|
|
68
67
|
React.createElement("div", { style: { display: "flex" } },
|