@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.cjs
CHANGED
|
@@ -29,10 +29,10 @@ var TabbedBanner = require('@arc-ui/components/TabbedBanner');
|
|
|
29
29
|
var Tag = require('@arc-ui/components/Tag');
|
|
30
30
|
var Toast = require('@arc-ui/components/Toast');
|
|
31
31
|
var VisuallyHidden = require('@arc-ui/components/VisuallyHidden');
|
|
32
|
+
var Surface = require('@arc-ui/components/Surface');
|
|
32
33
|
var Visible = require('@arc-ui/components/Visible');
|
|
33
34
|
var Spacing = require('@arc-ui/components/Spacing');
|
|
34
35
|
var ReactPlayer = require('react-player');
|
|
35
|
-
var Surface = require('@arc-ui/components/Surface');
|
|
36
36
|
var ContentSwitcher = require('@arc-ui/components/ContentSwitcher');
|
|
37
37
|
var ContentSwitcherDropdown = require('@arc-ui/components/ContentSwitcherDropdown');
|
|
38
38
|
|
|
@@ -963,7 +963,7 @@ var SectionHeading = function (_a) {
|
|
|
963
963
|
|
|
964
964
|
/**
|
|
965
965
|
* Do not edit directly
|
|
966
|
-
* Generated on
|
|
966
|
+
* Generated on Wed, 13 May 2026 07:47:26 GMT
|
|
967
967
|
*/
|
|
968
968
|
var ArcSizeBreakpointsXs = "320px";
|
|
969
969
|
var ArcSizeBreakpointsS = "636px";
|
|
@@ -3897,6 +3897,7 @@ var ProductNavigation = function (_a) {
|
|
|
3897
3897
|
var _g = React.useState(false), hideLessButton = _g[0], setHideLessButton = _g[1];
|
|
3898
3898
|
var _h = React.useState(cardsToDisplay), skipLinkCard = _h[0], setSkipLinkCard = _h[1];
|
|
3899
3899
|
var _j = React.useState(productList.slice(0, cardsToDisplay)), displayList = _j[0], setDisplayList = _j[1];
|
|
3900
|
+
var _k = React.useState(false), displaySkipButton = _k[0], setDisplaySkipButton = _k[1];
|
|
3900
3901
|
var cardRef = React.useRef(null);
|
|
3901
3902
|
React.useEffect(function () {
|
|
3902
3903
|
if (defaultExpanded) {
|
|
@@ -3908,6 +3909,7 @@ var ProductNavigation = function (_a) {
|
|
|
3908
3909
|
(_a = cardRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
3909
3910
|
};
|
|
3910
3911
|
var clickController = function () {
|
|
3912
|
+
setDisplaySkipButton(true);
|
|
3911
3913
|
// show more / current list length + increment
|
|
3912
3914
|
if (displayList.length < productList.length) {
|
|
3913
3915
|
if (onClickMore)
|
|
@@ -3941,8 +3943,8 @@ var ProductNavigation = function (_a) {
|
|
|
3941
3943
|
!hideButton && !hideLessButton && (React.createElement(ButtonV2.ButtonV2, { label: displayList.length < productList.length
|
|
3942
3944
|
? "Show more"
|
|
3943
3945
|
: "Show less", buttonStyle: "secondary", onClick: clickController, isFullWidth: isMinWidthArcBreakpointS ? false : true, isLoading: isLoading })),
|
|
3944
|
-
|
|
3945
|
-
React.createElement("div", { id: "skip-link", className: classNames(styles$d["productNavigation-skipLink"]), tabIndex: -1 },
|
|
3946
|
+
hideButton ||
|
|
3947
|
+
(displaySkipButton && displayList.length > cardsToDisplay && (React.createElement("div", { id: "skip-link", className: classNames(styles$d["productNavigation-skipLink"]), tabIndex: -1 },
|
|
3946
3948
|
React.createElement(ButtonV2.ButtonV2, { label: "Move to first new card", buttonStyle: "primary", onClick: moveFocus, isFullWidth: isMinWidthArcBreakpointS ? false : true })))),
|
|
3947
3949
|
React.createElement(VisuallyHidden.VisuallyHidden, null,
|
|
3948
3950
|
React.createElement("div", { "aria-live": "polite", id: "aria-live-region", "aria-atomic": true },
|
|
@@ -3979,10 +3981,10 @@ var ActionTile = function (_a) {
|
|
|
3979
3981
|
React.createElement("div", { className: styles$b["action-tile-content"] },
|
|
3980
3982
|
displayIcon && (React.createElement("div", { className: styles$b["action-tile-icon"] },
|
|
3981
3983
|
React.createElement(Icon.Icon, { icon: displayIcon, size: 48 }))),
|
|
3982
|
-
React.createElement("
|
|
3984
|
+
React.createElement("span", { className: styles$b["action-tile-heading"] }, heading)),
|
|
3983
3985
|
isActive && (React.createElement("div", { className: styles$b["action-tile-tick"] },
|
|
3984
3986
|
React.createElement(Icon.Icon, { icon: BtIconTickAlt2Px, size: 28 })))));
|
|
3985
|
-
return (React.createElement("
|
|
3987
|
+
return (React.createElement("button", __assign({ type: "button", className: tileClasses, onClick: onClick, "aria-pressed": isActive }, filterAttrs(props)), content));
|
|
3986
3988
|
};
|
|
3987
3989
|
|
|
3988
3990
|
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"};
|
|
@@ -4000,10 +4002,10 @@ var LinkTile = function (_a) {
|
|
|
4000
4002
|
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"};
|
|
4001
4003
|
|
|
4002
4004
|
var InlineLinkGroup = function (_a) {
|
|
4003
|
-
var label = _a.label, links = _a.links, props = __rest(_a, ["label", "links"]);
|
|
4005
|
+
var label = _a.label, _b = _a.headingLevel, headingLevel = _b === void 0 ? "2" : _b, links = _a.links, props = __rest(_a, ["label", "headingLevel", "links"]);
|
|
4004
4006
|
return (React.createElement("div", __assign({ className: styles$9["quick-help"] }, filterAttrs(props)),
|
|
4005
4007
|
label && (React.createElement("div", { className: styles$9["quick-help-label"] },
|
|
4006
|
-
React.createElement(Heading.Heading, { size: "xxs", fontStyle: "overline" }, label))),
|
|
4008
|
+
React.createElement(Heading.Heading, { level: headingLevel, size: "xxs", fontStyle: "overline" }, label))),
|
|
4007
4009
|
React.createElement("ul", { className: styles$9["quick-help-container"] }, links.map(function (link, index) { return (React.createElement(React.Fragment, { key: index },
|
|
4008
4010
|
React.createElement("li", { className: styles$9["quick-help-item"] },
|
|
4009
4011
|
React.createElement(Link.Link, { href: link.href, onClick: link.onClick, "aria-label": link.ariaLabel }, link.label),
|
|
@@ -4012,14 +4014,17 @@ var InlineLinkGroup = function (_a) {
|
|
|
4012
4014
|
React.createElement("div", { className: styles$9["quick-help-separator-line"] }))))); }))));
|
|
4013
4015
|
};
|
|
4014
4016
|
|
|
4015
|
-
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"};
|
|
4017
|
+
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"};
|
|
4016
4018
|
|
|
4017
4019
|
/** Use `ThumbnailSignpost` to highlight key information or navigation points with an accompanying thumbnail image or icon. */
|
|
4018
4020
|
var ThumbnailSignpost = function (_a) {
|
|
4019
4021
|
var _b;
|
|
4020
4022
|
var text = _a.text, title = _a.title, img = _a.img, onClick = _a.onClick, buttonLabel = _a.buttonLabel, props = __rest(_a, ["text", "title", "img", "onClick", "buttonLabel"]);
|
|
4023
|
+
var surface = React.useContext(Surface.SurfaceContext).surface;
|
|
4024
|
+
var isDarkSurface = surface === "dark";
|
|
4021
4025
|
return (React.createElement("div", __assign({ className: classNames(styles$8.thumbnailSignpost, (_b = {},
|
|
4022
4026
|
_b[styles$8.isLink] = onClick,
|
|
4027
|
+
_b[styles$8.onDarkSurface] = isDarkSurface,
|
|
4023
4028
|
_b)), onClick: onClick, "aria-label": title, tabIndex: onClick ? 0 : -1 }, (onClick && { role: "button" }), filterAttrs(props)),
|
|
4024
4029
|
img && (React.createElement("div", { className: styles$8.image },
|
|
4025
4030
|
React.createElement(Image$2.Image, __assign({}, img)))),
|
|
@@ -4028,7 +4033,7 @@ var ThumbnailSignpost = function (_a) {
|
|
|
4028
4033
|
React.createElement(VerticalSpace.VerticalSpace, { size: "8" }),
|
|
4029
4034
|
text,
|
|
4030
4035
|
buttonLabel && onClick && (React.createElement(React.Fragment, null,
|
|
4031
|
-
React.createElement(VerticalSpace.VerticalSpace, { size: "
|
|
4036
|
+
React.createElement(VerticalSpace.VerticalSpace, { size: "32" }),
|
|
4032
4037
|
React.createElement("div", { className: styles$8.thumbnailButton },
|
|
4033
4038
|
React.createElement("span", { className: styles$8.buttonIcon, role: "img", style: {
|
|
4034
4039
|
height: 24,
|