@arc-ui/community-components 3.8.0 → 3.8.1
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 +10 -10
- package/CHANGELOG.md +11 -0
- package/lib/ActionTile/ActionTile.cjs +2 -2
- package/lib/ActionTile/ActionTile.mjs +2 -2
- package/lib/ArticleCarousel/ArticleCarousel.cjs +1 -1
- package/lib/ArticleCarousel/ArticleCarousel.mjs +1 -1
- package/lib/CopyLead/CopyLead.cjs +1 -1
- package/lib/CopyLead/CopyLead.mjs +1 -1
- package/lib/FeaturePost/FeaturePost.cjs +1 -1
- package/lib/FeaturePost/FeaturePost.mjs +1 -1
- package/lib/InlineLinkGroup/InlineLinkGroup.cjs +2 -2
- package/lib/InlineLinkGroup/InlineLinkGroup.mjs +2 -2
- package/lib/ProductNavigation/ProductNavigation.cjs +5 -3
- package/lib/ProductNavigation/ProductNavigation.mjs +5 -3
- package/lib/PromoListing/PromoListing.cjs +1 -1
- package/lib/PromoListing/PromoListing.mjs +1 -1
- package/lib/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.cjs +2 -1
- package/lib/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.mjs +2 -1
- package/lib/Summary/Summary.cjs +1 -1
- package/lib/Summary/Summary.mjs +1 -1
- package/lib/ThumbnailSignpost/ThumbnailSignpost.cjs +2 -1
- package/lib/ThumbnailSignpost/ThumbnailSignpost.mjs +2 -1
- package/lib/ThumbnailSignpost/styles.css +1 -1
- package/lib/_shared/cjs/{ThumbnailSignpost-ja1yxriK.cjs → ThumbnailSignpost-DymZmLlB.cjs} +6 -2
- package/lib/_shared/cjs/{index.es-Dg_lyAyh.cjs → index.es-B6sSN_JJ.cjs} +1 -1
- package/lib/_shared/esm/{ThumbnailSignpost-Cc21FjUJ.mjs → ThumbnailSignpost-D6uye3mm.mjs} +7 -3
- package/lib/_shared/esm/{index.es-DtCgfyRV.mjs → index.es-CYN3fovv.mjs} +1 -1
- package/lib/index.cjs +15 -10
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +3 -1
- package/lib/index.d.mts +3 -1
- package/lib/index.mjs +16 -11
- package/lib/index.mjs.map +1 -1
- package/lib/styles.css +1 -1
- package/package.json +14 -14
- package/src/components/ActionTile/ActionTile.tsx +9 -3
- package/src/components/InlineLinkGroup/InlineLinkGroup.tsx +4 -1
- package/src/components/PartnerBrandLogos/components/PartnerLogoSubgroup/PartnerLogoSubgroup.tsx +2 -4
- package/src/components/ProductNavigation/ProductNavigation.tsx +6 -5
- package/src/components/ThumbnailSignpost/ThumbnailSignpost.module.css +31 -1
- package/src/components/ThumbnailSignpost/ThumbnailSignpost.tsx +7 -2
- package/versions.json +1 -1
package/lib/index.d.cts
CHANGED
|
@@ -561,7 +561,7 @@ interface ProductNavigationProps extends Omit<SectionHeadingProps, "isPadded"> {
|
|
|
561
561
|
*/
|
|
562
562
|
productList: ListProps[];
|
|
563
563
|
/**
|
|
564
|
-
*
|
|
564
|
+
* Hide "show more" or "show less" button controls.
|
|
565
565
|
*/
|
|
566
566
|
hideButton?: boolean;
|
|
567
567
|
/**
|
|
@@ -642,6 +642,8 @@ declare const InlineLinkGroup: React$1.FC<InlineLinkGroupProps>;
|
|
|
642
642
|
interface InlineLinkGroupProps {
|
|
643
643
|
/** Optional overline label displayed above the link group */
|
|
644
644
|
label?: string;
|
|
645
|
+
/** Heading level for the label, defaults to "2" for proper heading hierarchy */
|
|
646
|
+
headingLevel?: "1" | "2" | "3" | "4" | "5" | "6";
|
|
645
647
|
/** Array of link items to display */
|
|
646
648
|
links: InlineLinkGroupItem[];
|
|
647
649
|
}
|
package/lib/index.d.mts
CHANGED
|
@@ -561,7 +561,7 @@ interface ProductNavigationProps extends Omit<SectionHeadingProps, "isPadded"> {
|
|
|
561
561
|
*/
|
|
562
562
|
productList: ListProps[];
|
|
563
563
|
/**
|
|
564
|
-
*
|
|
564
|
+
* Hide "show more" or "show less" button controls.
|
|
565
565
|
*/
|
|
566
566
|
hideButton?: boolean;
|
|
567
567
|
/**
|
|
@@ -642,6 +642,8 @@ declare const InlineLinkGroup: React$1.FC<InlineLinkGroupProps>;
|
|
|
642
642
|
interface InlineLinkGroupProps {
|
|
643
643
|
/** Optional overline label displayed above the link group */
|
|
644
644
|
label?: string;
|
|
645
|
+
/** Heading level for the label, defaults to "2" for proper heading hierarchy */
|
|
646
|
+
headingLevel?: "1" | "2" | "3" | "4" | "5" | "6";
|
|
645
647
|
/** Array of link items to display */
|
|
646
648
|
links: InlineLinkGroupItem[];
|
|
647
649
|
}
|
package/lib/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useId, useState, useEffect, Suspense, useRef } from 'react';
|
|
1
|
+
import React, { useId, useState, useEffect, Suspense, useRef, useContext } from 'react';
|
|
2
2
|
import { Heading } from '@arc-ui/components/Heading';
|
|
3
3
|
import { Text } from '@arc-ui/components/Text';
|
|
4
4
|
import { VerticalSpace } from '@arc-ui/components/VerticalSpace';
|
|
@@ -27,10 +27,10 @@ import { TabbedBanner } from '@arc-ui/components/TabbedBanner';
|
|
|
27
27
|
import { Tag } from '@arc-ui/components/Tag';
|
|
28
28
|
import { Toast, ToastNotification } from '@arc-ui/components/Toast';
|
|
29
29
|
import { VisuallyHidden } from '@arc-ui/components/VisuallyHidden';
|
|
30
|
+
import { SurfaceContext, Surface } from '@arc-ui/components/Surface';
|
|
30
31
|
import { Visible } from '@arc-ui/components/Visible';
|
|
31
32
|
import { Spacing } from '@arc-ui/components/Spacing';
|
|
32
33
|
import ReactPlayer from 'react-player';
|
|
33
|
-
import { Surface } from '@arc-ui/components/Surface';
|
|
34
34
|
import { ContentSwitcher, ContentSwitcherList, ContentSwitcherTab, ContentSwitcherContent } from '@arc-ui/components/ContentSwitcher';
|
|
35
35
|
import { ContentSwitcherDropdown, ContentSwitcherDropdownContent } from '@arc-ui/components/ContentSwitcherDropdown';
|
|
36
36
|
|
|
@@ -961,7 +961,7 @@ var SectionHeading = function (_a) {
|
|
|
961
961
|
|
|
962
962
|
/**
|
|
963
963
|
* Do not edit directly
|
|
964
|
-
* Generated on
|
|
964
|
+
* Generated on Wed, 13 May 2026 07:47:26 GMT
|
|
965
965
|
*/
|
|
966
966
|
var ArcSizeBreakpointsXs = "320px";
|
|
967
967
|
var ArcSizeBreakpointsS = "636px";
|
|
@@ -3895,6 +3895,7 @@ var ProductNavigation = function (_a) {
|
|
|
3895
3895
|
var _g = useState(false), hideLessButton = _g[0], setHideLessButton = _g[1];
|
|
3896
3896
|
var _h = useState(cardsToDisplay), skipLinkCard = _h[0], setSkipLinkCard = _h[1];
|
|
3897
3897
|
var _j = useState(productList.slice(0, cardsToDisplay)), displayList = _j[0], setDisplayList = _j[1];
|
|
3898
|
+
var _k = useState(false), displaySkipButton = _k[0], setDisplaySkipButton = _k[1];
|
|
3898
3899
|
var cardRef = useRef(null);
|
|
3899
3900
|
useEffect(function () {
|
|
3900
3901
|
if (defaultExpanded) {
|
|
@@ -3906,6 +3907,7 @@ var ProductNavigation = function (_a) {
|
|
|
3906
3907
|
(_a = cardRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
3907
3908
|
};
|
|
3908
3909
|
var clickController = function () {
|
|
3910
|
+
setDisplaySkipButton(true);
|
|
3909
3911
|
// show more / current list length + increment
|
|
3910
3912
|
if (displayList.length < productList.length) {
|
|
3911
3913
|
if (onClickMore)
|
|
@@ -3939,8 +3941,8 @@ var ProductNavigation = function (_a) {
|
|
|
3939
3941
|
!hideButton && !hideLessButton && (React.createElement(ButtonV2, { label: displayList.length < productList.length
|
|
3940
3942
|
? "Show more"
|
|
3941
3943
|
: "Show less", buttonStyle: "secondary", onClick: clickController, isFullWidth: isMinWidthArcBreakpointS ? false : true, isLoading: isLoading })),
|
|
3942
|
-
|
|
3943
|
-
React.createElement("div", { id: "skip-link", className: classNames(styles$d["productNavigation-skipLink"]), tabIndex: -1 },
|
|
3944
|
+
hideButton ||
|
|
3945
|
+
(displaySkipButton && displayList.length > cardsToDisplay && (React.createElement("div", { id: "skip-link", className: classNames(styles$d["productNavigation-skipLink"]), tabIndex: -1 },
|
|
3944
3946
|
React.createElement(ButtonV2, { label: "Move to first new card", buttonStyle: "primary", onClick: moveFocus, isFullWidth: isMinWidthArcBreakpointS ? false : true })))),
|
|
3945
3947
|
React.createElement(VisuallyHidden, null,
|
|
3946
3948
|
React.createElement("div", { "aria-live": "polite", id: "aria-live-region", "aria-atomic": true },
|
|
@@ -3977,10 +3979,10 @@ var ActionTile = function (_a) {
|
|
|
3977
3979
|
React.createElement("div", { className: styles$b["action-tile-content"] },
|
|
3978
3980
|
displayIcon && (React.createElement("div", { className: styles$b["action-tile-icon"] },
|
|
3979
3981
|
React.createElement(Icon, { icon: displayIcon, size: 48 }))),
|
|
3980
|
-
React.createElement("
|
|
3982
|
+
React.createElement("span", { className: styles$b["action-tile-heading"] }, heading)),
|
|
3981
3983
|
isActive && (React.createElement("div", { className: styles$b["action-tile-tick"] },
|
|
3982
3984
|
React.createElement(Icon, { icon: BtIconTickAlt2Px, size: 28 })))));
|
|
3983
|
-
return (React.createElement("
|
|
3985
|
+
return (React.createElement("button", __assign({ type: "button", className: tileClasses, onClick: onClick, "aria-pressed": isActive }, filterAttrs(props)), content));
|
|
3984
3986
|
};
|
|
3985
3987
|
|
|
3986
3988
|
var styles$a = {"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"};
|
|
@@ -3998,10 +4000,10 @@ var LinkTile = function (_a) {
|
|
|
3998
4000
|
var styles$9 = {"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"};
|
|
3999
4001
|
|
|
4000
4002
|
var InlineLinkGroup = function (_a) {
|
|
4001
|
-
var label = _a.label, links = _a.links, props = __rest(_a, ["label", "links"]);
|
|
4003
|
+
var label = _a.label, _b = _a.headingLevel, headingLevel = _b === void 0 ? "2" : _b, links = _a.links, props = __rest(_a, ["label", "headingLevel", "links"]);
|
|
4002
4004
|
return (React.createElement("div", __assign({ className: styles$9["quick-help"] }, filterAttrs(props)),
|
|
4003
4005
|
label && (React.createElement("div", { className: styles$9["quick-help-label"] },
|
|
4004
|
-
React.createElement(Heading, { size: "xxs", fontStyle: "overline" }, label))),
|
|
4006
|
+
React.createElement(Heading, { level: headingLevel, size: "xxs", fontStyle: "overline" }, label))),
|
|
4005
4007
|
React.createElement("ul", { className: styles$9["quick-help-container"] }, links.map(function (link, index) { return (React.createElement(React.Fragment, { key: index },
|
|
4006
4008
|
React.createElement("li", { className: styles$9["quick-help-item"] },
|
|
4007
4009
|
React.createElement(Link, { href: link.href, onClick: link.onClick, "aria-label": link.ariaLabel }, link.label),
|
|
@@ -4010,14 +4012,17 @@ var InlineLinkGroup = function (_a) {
|
|
|
4010
4012
|
React.createElement("div", { className: styles$9["quick-help-separator-line"] }))))); }))));
|
|
4011
4013
|
};
|
|
4012
4014
|
|
|
4013
|
-
var styles$8 = {"thumbnailSignpost":"ThumbnailSignpost-module_thumbnailSignpost__Yf26b","isLink":"ThumbnailSignpost-module_isLink__FucdG","content":"ThumbnailSignpost-module_content__XG9oj","heading":"ThumbnailSignpost-module_heading__mTrpJ","image":"ThumbnailSignpost-module_image__syGZj","thumbnailButton":"ThumbnailSignpost-module_thumbnailButton__Nn-NR","buttonIcon":"ThumbnailSignpost-module_buttonIcon__ydmza"};
|
|
4015
|
+
var styles$8 = {"thumbnailSignpost":"ThumbnailSignpost-module_thumbnailSignpost__Yf26b","isLink":"ThumbnailSignpost-module_isLink__FucdG","onDarkSurface":"ThumbnailSignpost-module_onDarkSurface__F2jUk","content":"ThumbnailSignpost-module_content__XG9oj","heading":"ThumbnailSignpost-module_heading__mTrpJ","image":"ThumbnailSignpost-module_image__syGZj","thumbnailButton":"ThumbnailSignpost-module_thumbnailButton__Nn-NR","buttonIcon":"ThumbnailSignpost-module_buttonIcon__ydmza"};
|
|
4014
4016
|
|
|
4015
4017
|
/** Use `ThumbnailSignpost` to highlight key information or navigation points with an accompanying thumbnail image or icon. */
|
|
4016
4018
|
var ThumbnailSignpost = function (_a) {
|
|
4017
4019
|
var _b;
|
|
4018
4020
|
var text = _a.text, title = _a.title, img = _a.img, onClick = _a.onClick, buttonLabel = _a.buttonLabel, props = __rest(_a, ["text", "title", "img", "onClick", "buttonLabel"]);
|
|
4021
|
+
var surface = useContext(SurfaceContext).surface;
|
|
4022
|
+
var isDarkSurface = surface === "dark";
|
|
4019
4023
|
return (React.createElement("div", __assign({ className: classNames(styles$8.thumbnailSignpost, (_b = {},
|
|
4020
4024
|
_b[styles$8.isLink] = onClick,
|
|
4025
|
+
_b[styles$8.onDarkSurface] = isDarkSurface,
|
|
4021
4026
|
_b)), onClick: onClick, "aria-label": title, tabIndex: onClick ? 0 : -1 }, (onClick && { role: "button" }), filterAttrs(props)),
|
|
4022
4027
|
img && (React.createElement("div", { className: styles$8.image },
|
|
4023
4028
|
React.createElement(Image$2, __assign({}, img)))),
|
|
@@ -4026,7 +4031,7 @@ var ThumbnailSignpost = function (_a) {
|
|
|
4026
4031
|
React.createElement(VerticalSpace, { size: "8" }),
|
|
4027
4032
|
text,
|
|
4028
4033
|
buttonLabel && onClick && (React.createElement(React.Fragment, null,
|
|
4029
|
-
React.createElement(VerticalSpace, { size: "
|
|
4034
|
+
React.createElement(VerticalSpace, { size: "32" }),
|
|
4030
4035
|
React.createElement("div", { className: styles$8.thumbnailButton },
|
|
4031
4036
|
React.createElement("span", { className: styles$8.buttonIcon, role: "img", style: {
|
|
4032
4037
|
height: 24,
|