@arc-ui/community-components 3.7.1 → 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 +18 -17
- package/CHANGELOG.md +17 -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/PartnerBrandLogos/PartnerBrandLogos.cjs +57 -0
- package/lib/PartnerBrandLogos/PartnerBrandLogos.mjs +55 -0
- package/lib/PartnerBrandLogos/styles.css +1 -0
- 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 +205 -154
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +75 -4
- package/lib/index.d.mts +75 -4
- package/lib/index.mjs +206 -156
- 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/PartnerBrandLogos.module.css +8 -0
- package/src/components/PartnerBrandLogos/PartnerBrandLogos.tsx +141 -0
- package/src/components/PartnerBrandLogos/components/PartnerLogoSubgroup/PartnerLogoSubgroup.module.css +45 -0
- package/src/components/PartnerBrandLogos/components/PartnerLogoSubgroup/PartnerLogoSubgroup.tsx +96 -0
- package/src/components/PartnerBrandLogos/components/PartnerLogoSubgroup/index.ts +6 -0
- package/src/components/PartnerBrandLogos/index.ts +9 -0
- 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/src/components/index.ts +1 -0
- package/versions.json +1 -1
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
import { _ as __rest, a as __assign } from './tslib.es6-BVXMhEem.mjs';
|
|
2
|
-
import React__default from 'react';
|
|
2
|
+
import React__default, { useContext } from 'react';
|
|
3
3
|
import { c as classNames } from './index-BSO2EFem.mjs';
|
|
4
4
|
import { f as filterAttrs } from './filter-attrs-DZ7RCEZm.mjs';
|
|
5
5
|
import { B as BtIconArrowRightFill } from './BtIconArrowRightFill-D0zKgk3B.mjs';
|
|
6
6
|
import { Image } from '@arc-ui/components/Image';
|
|
7
7
|
import { VerticalSpace } from '@arc-ui/components/VerticalSpace';
|
|
8
8
|
import { Heading } from '@arc-ui/components/Heading';
|
|
9
|
+
import { SurfaceContext } from '@arc-ui/components/Surface';
|
|
9
10
|
|
|
10
|
-
var styles = {"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"};
|
|
11
|
+
var styles = {"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"};
|
|
11
12
|
|
|
12
13
|
/** Use `ThumbnailSignpost` to highlight key information or navigation points with an accompanying thumbnail image or icon. */
|
|
13
14
|
var ThumbnailSignpost = function (_a) {
|
|
14
15
|
var _b;
|
|
15
16
|
var text = _a.text, title = _a.title, img = _a.img, onClick = _a.onClick, buttonLabel = _a.buttonLabel, props = __rest(_a, ["text", "title", "img", "onClick", "buttonLabel"]);
|
|
17
|
+
var surface = useContext(SurfaceContext).surface;
|
|
18
|
+
var isDarkSurface = surface === "dark";
|
|
16
19
|
return (React__default.createElement("div", __assign({ className: classNames(styles.thumbnailSignpost, (_b = {},
|
|
17
20
|
_b[styles.isLink] = onClick,
|
|
21
|
+
_b[styles.onDarkSurface] = isDarkSurface,
|
|
18
22
|
_b)), onClick: onClick, "aria-label": title, tabIndex: onClick ? 0 : -1 }, (onClick && { role: "button" }), filterAttrs(props)),
|
|
19
23
|
img && (React__default.createElement("div", { className: styles.image },
|
|
20
24
|
React__default.createElement(Image, __assign({}, img)))),
|
|
@@ -23,7 +27,7 @@ var ThumbnailSignpost = function (_a) {
|
|
|
23
27
|
React__default.createElement(VerticalSpace, { size: "8" }),
|
|
24
28
|
text,
|
|
25
29
|
buttonLabel && onClick && (React__default.createElement(React__default.Fragment, null,
|
|
26
|
-
React__default.createElement(VerticalSpace, { size: "
|
|
30
|
+
React__default.createElement(VerticalSpace, { size: "32" }),
|
|
27
31
|
React__default.createElement("div", { className: styles.thumbnailButton },
|
|
28
32
|
React__default.createElement("span", { className: styles.buttonIcon, role: "img", style: {
|
|
29
33
|
height: 24,
|