@arc-ui/community-components 1.0.0 → 1.0.2
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 +5 -125
- package/CHANGELOG.md +13 -0
- package/dist/Accordion/Accordion.cjs.js +5 -4
- package/dist/Accordion/Accordion.esm.js +3 -2
- package/dist/ArticleSidebar/ArticleSidebar.cjs.js +37 -74
- package/dist/ArticleSidebar/ArticleSidebar.esm.js +32 -69
- package/dist/Author/Author.cjs.js +3 -2
- package/dist/Author/Author.esm.js +3 -2
- package/dist/BannerWithTabs/BannerWithTabs.cjs.js +5 -4
- package/dist/BannerWithTabs/BannerWithTabs.esm.js +4 -3
- package/dist/CopyLead/CopyLead.cjs.js +16 -15
- package/dist/CopyLead/CopyLead.esm.js +4 -3
- package/dist/DownloadList/DownloadList.cjs.js +4 -3
- package/dist/DownloadList/DownloadList.esm.js +3 -2
- package/dist/FeaturePost/FeaturePost.cjs.js +12 -11
- package/dist/FeaturePost/FeaturePost.esm.js +4 -3
- package/dist/Highlights/Highlights.cjs.js +3 -2
- package/dist/Highlights/Highlights.esm.js +3 -2
- package/dist/ProductNavigation/ProductNavigation.cjs.js +15 -12
- package/dist/ProductNavigation/ProductNavigation.esm.js +8 -5
- package/dist/PromoListing/PromoListing.cjs.js +8 -7
- package/dist/PromoListing/PromoListing.esm.js +4 -3
- package/dist/Quote/Quote.cjs.js +5 -4
- package/dist/Quote/Quote.esm.js +3 -2
- package/dist/SectionHeading/SectionHeading.cjs.js +3 -2
- package/dist/SectionHeading/SectionHeading.esm.js +3 -2
- package/dist/Statistics/Statistics.cjs.js +4 -3
- package/dist/Statistics/Statistics.esm.js +3 -2
- package/dist/Summary/Summary.cjs.js +6 -5
- package/dist/Summary/Summary.esm.js +6 -5
- package/dist/Summary/styles.css +1 -1
- package/dist/_shared/cjs/{Author-BXxxwh6E.js → Author-DltMey-3.js} +5 -4
- package/dist/_shared/cjs/{SectionHeading-7IxNz67p.js → SectionHeading-gjCR1F6E.js} +5 -4
- package/dist/_shared/cjs/filter-data-attrs-ajtUvDAC.js +15 -0
- package/dist/_shared/cjs/{index.es-HAMLJhPd.js → index.es-BNY6zQSi.js} +1 -1
- package/dist/_shared/cjs/{filter-data-attrs-DlS_Fyr9.js → tslib.es6-BxB9I209.js} +0 -13
- package/dist/_shared/esm/{Author-B8tJxqB8.js → Author-son1Cgke.js} +2 -1
- package/dist/_shared/esm/{SectionHeading-Dz0GfXsP.js → SectionHeading-BwbuyrYn.js} +2 -1
- package/dist/_shared/esm/filter-data-attrs-V7cbJuwS.js +13 -0
- package/dist/_shared/esm/{index.es-BI7la-9v.js → index.es-BraCgI9m.js} +2 -2
- package/dist/_shared/esm/{filter-data-attrs-DAx-HNG5.js → tslib.es6-BVXMhEem.js} +1 -13
- package/dist/index.es.js +43 -80
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +47 -84
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/cjs/components/ArticleSidebar/types/share-button.d.ts +1 -2
- package/dist/types/cjs/components/CopyLead/types/copy-lead-list-item.d.ts +1 -2
- package/dist/types/cjs/components/Highlights/components/HighlightItem/HighlightItem.d.ts +1 -2
- package/dist/types/cjs/components/Highlights/types/highlight-list-item.d.ts +1 -2
- package/dist/types/cjs/components/Summary/Summary.d.ts +1 -0
- package/dist/types/esm/components/ArticleSidebar/types/share-button.d.ts +1 -2
- package/dist/types/esm/components/CopyLead/types/copy-lead-list-item.d.ts +1 -2
- package/dist/types/esm/components/Highlights/components/HighlightItem/HighlightItem.d.ts +1 -2
- package/dist/types/esm/components/Highlights/types/highlight-list-item.d.ts +1 -2
- package/dist/types/esm/components/Summary/Summary.d.ts +1 -0
- package/package.json +12 -12
- package/src/components/ArticleSidebar/ArticleSidebar.tsx +1 -1
- package/src/components/ArticleSidebar/types/share-button.ts +1 -3
- package/src/components/BannerWithTabs/BannerWithTabs.tsx +1 -1
- package/src/components/CopyLead/types/copy-lead-list-item.ts +1 -3
- package/src/components/Highlights/components/HighlightItem/HighlightItem.tsx +1 -3
- package/src/components/Highlights/types/highlight-list-item.ts +1 -2
- package/src/components/ProductNavigation/ProductNavigation.tsx +5 -7
- package/src/components/Summary/Summary.module.css +1 -1
- package/src/components/Summary/Summary.tsx +12 -5
- package/versions.json +1 -1
- package/dist/types/cjs/types/arc-icon.d.ts +0 -2
- package/dist/types/esm/types/arc-icon.d.ts +0 -2
- package/src/types/arc-icon.ts +0 -2
package/dist/index.js
CHANGED
|
@@ -23,9 +23,10 @@ var TypographyCard = require('@arc-ui/components/TypographyCard');
|
|
|
23
23
|
var Box = require('@arc-ui/components/Box');
|
|
24
24
|
var Rule = require('@arc-ui/components/Rule');
|
|
25
25
|
var Align = require('@arc-ui/components/Align');
|
|
26
|
-
var
|
|
26
|
+
var TabbedBanner = require('@arc-ui/components/TabbedBanner');
|
|
27
27
|
var Tag = require('@arc-ui/components/Tag');
|
|
28
28
|
var Toast = require('@arc-ui/components/Toast');
|
|
29
|
+
var VisuallyHidden = require('@arc-ui/components/VisuallyHidden');
|
|
29
30
|
|
|
30
31
|
/******************************************************************************
|
|
31
32
|
Copyright (c) Microsoft Corporation.
|
|
@@ -280,7 +281,7 @@ var Author = function (_a) {
|
|
|
280
281
|
|
|
281
282
|
/**
|
|
282
283
|
* Do not edit directly
|
|
283
|
-
* Generated on
|
|
284
|
+
* Generated on Fri, 15 Aug 2025 18:14:58 GMT
|
|
284
285
|
*/
|
|
285
286
|
var ArcSizeBreakpointsS = "636px";
|
|
286
287
|
var ArcSizeBreakpointsM = "768px";
|
|
@@ -2754,9 +2755,9 @@ var Quote = function (_a) {
|
|
|
2754
2755
|
var styles$4 = {"ruleContainer":"Summary-module_ruleContainer__ydWlG","row":"Summary-module_row__SKV--"};
|
|
2755
2756
|
|
|
2756
2757
|
var Summary = function (_a) {
|
|
2757
|
-
var content = _a.content, _b = _a.headingLevel, headingLevel =
|
|
2758
|
-
var
|
|
2759
|
-
return (React.createElement(Box.Box, { isBorderRadius: true, borderWidth: "thin", padding: "24" },
|
|
2758
|
+
var content = _a.content, _b = _a.noBorder, noBorder = _b === void 0 ? false : _b, _c = _a.headingLevel, headingLevel = _c === void 0 ? "3" : _c;
|
|
2759
|
+
var isMinWidthArcBreakpointM = useMediaQuery.useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsM, ")"));
|
|
2760
|
+
return (React.createElement(Box.Box, __assign({ isBorderRadius: true }, (!noBorder ? { borderWidth: "thin" } : { elevationLevel: "1" }), { padding: "24" }),
|
|
2760
2761
|
React.createElement("div", { className: styles$4.row }, content.map(function (_a, i) {
|
|
2761
2762
|
var heading = _a.heading, text = _a.text;
|
|
2762
2763
|
return (React.createElement(React.Fragment, null,
|
|
@@ -2765,7 +2766,7 @@ var Summary = function (_a) {
|
|
|
2765
2766
|
React.createElement(VerticalSpace.VerticalSpace, { size: "8" }),
|
|
2766
2767
|
React.createElement(Text.Text, { size: "s" }, text)),
|
|
2767
2768
|
i !== content.length - 1 && (React.createElement("div", { className: styles$4.ruleContainer },
|
|
2768
|
-
React.createElement(Rule.Rule, { orientation:
|
|
2769
|
+
React.createElement(Rule.Rule, { orientation: isMinWidthArcBreakpointM ? "vertical" : "horizontal" })))));
|
|
2769
2770
|
}))));
|
|
2770
2771
|
};
|
|
2771
2772
|
|
|
@@ -2824,78 +2825,40 @@ var BannerWithTabs = function (_a) {
|
|
|
2824
2825
|
_b[styles$2.bannerWithTabsHeadingCentered] = alignTypography === "center",
|
|
2825
2826
|
_b)), style: { color: isInverted ? "white" : "black" } },
|
|
2826
2827
|
React.createElement(SectionHeading, { heading: heading, content: content, isPadded: alignTypography === "left" ? true : false })),
|
|
2827
|
-
React.createElement(
|
|
2828
|
-
};
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
const BtIconLink = (props) =>
|
|
2863
|
-
/*#__PURE__*/ React.createElement(
|
|
2864
|
-
"svg",
|
|
2865
|
-
Object.assign(
|
|
2866
|
-
{
|
|
2867
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2868
|
-
viewBox: "0 0 32 32",
|
|
2869
|
-
},
|
|
2870
|
-
props,
|
|
2871
|
-
),
|
|
2872
|
-
/*#__PURE__*/ React.createElement("defs", null),
|
|
2873
|
-
/*#__PURE__*/ React.createElement("path", {
|
|
2874
|
-
d: "M9.959,10.0127h2.417a5.99044,5.99044,0,0,1,5.22558,8.91552.5.5,0,1,0,.87207.48926A6.99034,6.99034,0,0,0,12.376,9.0127H9.959a6.98853,6.98853,0,0,0,0,13.97705h1.54a.5.5,0,1,0,0-1H9.959a5.98853,5.98853,0,0,1,0-11.977Z",
|
|
2875
|
-
fill: "currentColor",
|
|
2876
|
-
}),
|
|
2877
|
-
/*#__PURE__*/ React.createElement("path", {
|
|
2878
|
-
d: "M22.0625,9.0127h-1.54a.5.5,0,0,0,0,1h1.54a5.98853,5.98853,0,0,1,0,11.97705h-2.417a5.99145,5.99145,0,0,1-5.22656-8.915.49955.49955,0,1,0-.8711-.48926,6.99,6.99,0,0,0,6.09766,10.4043h2.417a6.98853,6.98853,0,0,0,0-13.977Z",
|
|
2879
|
-
fill: "currentColor",
|
|
2880
|
-
}),
|
|
2881
|
-
);
|
|
2882
|
-
|
|
2883
|
-
const BtIconEmailUnread = (props) =>
|
|
2884
|
-
/*#__PURE__*/ React.createElement(
|
|
2885
|
-
"svg",
|
|
2886
|
-
Object.assign(
|
|
2887
|
-
{
|
|
2888
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2889
|
-
viewBox: "0 0 32 32",
|
|
2890
|
-
},
|
|
2891
|
-
props,
|
|
2892
|
-
),
|
|
2893
|
-
/*#__PURE__*/ React.createElement("defs", null),
|
|
2894
|
-
/*#__PURE__*/ React.createElement("path", {
|
|
2895
|
-
d: "M29,6H3A1,1,0,0,0,2,7V25a1,1,0,0,0,1,1H29a1,1,0,0,0,1-1V7A1,1,0,0,0,29,6Zm0,1V8.71649L18.00049,16.33154a3.5158,3.5158,0,0,1-3.98438,0L3,8.70532V7Zm0,2.93292V22.08368l-8.77545-6.07544Zm-17.20819,6.0752L3,22.09485V9.92175ZM3,25V23.31128l9.67035-6.695.77643.53754a4.52223,4.52223,0,0,0,5.123,0l.77619-.53735L29,23.30011V25Z",
|
|
2896
|
-
fill: "currentColor",
|
|
2897
|
-
}),
|
|
2898
|
-
);
|
|
2828
|
+
React.createElement(TabbedBanner.TabbedBanner, { minHeight: minHeight, minHeightM: minHeightM, tabs: tabs, defaultValue: defaultValue })));
|
|
2829
|
+
};
|
|
2830
|
+
|
|
2831
|
+
/**
|
|
2832
|
+
* Do not edit directly
|
|
2833
|
+
* Generated file
|
|
2834
|
+
*/
|
|
2835
|
+
|
|
2836
|
+
const ArcIconSocialLinkedin =
|
|
2837
|
+
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath fill='currentColor' d='M25.856 25.86H21.71v-6.496c0-1.55-.032-3.544-2.161-3.544-2.162 0-2.492 1.686-2.492 3.43v6.61H12.91V12.5h3.983v1.821h.053c.557-1.05 1.91-2.158 3.932-2.158 4.201 0 4.978 2.765 4.978 6.364v7.334zM8.226 10.673a2.406 2.406 0 0 1-2.406-2.41 2.408 2.408 0 1 1 2.407 2.41zm2.08 15.189H6.148V12.5h4.158v13.36zM27.929 2H4.066C2.924 2 2 2.903 2 4.017v23.966C2 29.098 2.924 30 4.066 30h23.86c1.14 0 2.074-.902 2.074-2.017V4.017C30 2.903 29.067 2 27.926 2z'/%3e%3c/svg%3e";
|
|
2838
|
+
|
|
2839
|
+
/**
|
|
2840
|
+
* Do not edit directly
|
|
2841
|
+
* Generated file
|
|
2842
|
+
*/
|
|
2843
|
+
|
|
2844
|
+
const ArcIconSocialX =
|
|
2845
|
+
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath fill='currentColor' d='M24.034 3h4.278l-9.343 10.639L30 28.103h-8.64l-6.781-8.768-7.739 8.768H2.563L12.58 16.738 2 3h8.864l6.107 8.014zm-1.491 22.562h2.364L9.57 5.402H7.009z'/%3e%3c/svg%3e";
|
|
2846
|
+
|
|
2847
|
+
/**
|
|
2848
|
+
* Do not edit directly
|
|
2849
|
+
* Generated file
|
|
2850
|
+
*/
|
|
2851
|
+
|
|
2852
|
+
const BtIconLink =
|
|
2853
|
+
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath d='M9.959 10.013h2.417a5.99 5.99 0 0 1 5.226 8.915.5.5 0 1 0 .872.49 6.99 6.99 0 0 0-6.098-10.405H9.959a6.989 6.989 0 0 0 0 13.977h1.54a.5.5 0 1 0 0-1h-1.54a5.989 5.989 0 0 1 0-11.977'/%3e%3cpath d='M22.063 9.013h-1.54a.5.5 0 0 0 0 1h1.54a5.989 5.989 0 0 1 0 11.977h-2.417a5.99 5.99 0 0 1-5.227-8.915.5.5 0 1 0-.871-.49 6.99 6.99 0 0 0 6.097 10.405h2.417a6.989 6.989 0 0 0 0-13.977'/%3e%3c/svg%3e";
|
|
2854
|
+
|
|
2855
|
+
/**
|
|
2856
|
+
* Do not edit directly
|
|
2857
|
+
* Generated file
|
|
2858
|
+
*/
|
|
2859
|
+
|
|
2860
|
+
const BtIconEmailUnread =
|
|
2861
|
+
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath fill='currentColor' d='M29 6H3a1 1 0 0 0-1 1v18a1 1 0 0 0 1 1h26a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1m0 1v1.716l-11 7.616a3.52 3.52 0 0 1-3.984 0L3 8.705V7Zm0 2.933v12.15l-8.775-6.075Zm-17.208 6.075L3 22.095V9.922ZM3 25v-1.689l9.67-6.695.777.538a4.52 4.52 0 0 0 5.123 0l.776-.538L29 23.3V25Z'/%3e%3c/svg%3e";
|
|
2899
2862
|
|
|
2900
2863
|
var styles$1 = {"tagGroup":"ArticleSidebar-module_tagGroup__rIPQc","textContent":"ArticleSidebar-module_textContent__3nCfG","shareButtonContainer":"ArticleSidebar-module_shareButtonContainer__iAfHL","shareButton":"ArticleSidebar-module_shareButton__rb-1E"};
|
|
2901
2864
|
|
|
@@ -2988,7 +2951,7 @@ var ArticleSidebar = function (_a) {
|
|
|
2988
2951
|
React.createElement(VerticalSpace.VerticalSpace, { size: "16" }),
|
|
2989
2952
|
React.createElement("div", { className: styles$1.shareButtonContainer }, shareButtons.map(function (_a) {
|
|
2990
2953
|
var isButton = _a.isButton, label = _a.label, href = _a.href, icon = _a.icon, onClick = _a.onClick;
|
|
2991
|
-
return (React.createElement("a", { key: "".concat(id, "-").concat(label), role: isButton ? "button" : undefined, target: "_blank", rel: "noreferrer", className: styles$1.shareButton, "aria-label": label, href: href, onClick: onClick },
|
|
2954
|
+
return (React.createElement("a", { key: "".concat(id, "-").concat(label), role: isButton ? "button" : undefined, target: "_blank", rel: "noreferrer", className: styles$1.shareButton, "aria-label": label, href: href, onClick: isButton ? onClick : undefined },
|
|
2992
2955
|
React.createElement(Icon.Icon, { icon: icon, size: 24 })));
|
|
2993
2956
|
})),
|
|
2994
2957
|
React.createElement(Toast.Toast, null,
|
|
@@ -3042,20 +3005,20 @@ var ProductNavigation = function (_a) {
|
|
|
3042
3005
|
React.createElement("ul", { className: classNames(styles["product-navigation-grid"]) }, displayList === null || displayList === void 0 ? void 0 : displayList.map(function (_a, i) {
|
|
3043
3006
|
var label = _a.label, href = _a.href, heading = _a.heading, text = _a.text;
|
|
3044
3007
|
return (React.createElement("li", { key: "displayList-".concat(i), tabIndex: -1, ref: i === skipLinkCard ? cardRef : undefined, "data-cy": "list-item-".concat(i) },
|
|
3045
|
-
React.createElement(
|
|
3008
|
+
React.createElement(InformationCard.InformationCard, { button: {
|
|
3046
3009
|
label: label,
|
|
3047
3010
|
href: href,
|
|
3048
3011
|
}, minHeight: minHeight, heading: heading, headingLevel: "2", text: text })));
|
|
3049
3012
|
})),
|
|
3050
|
-
React.createElement(
|
|
3013
|
+
React.createElement(VerticalSpace.VerticalSpace, { size: "40" }),
|
|
3051
3014
|
React.createElement("div", { style: { display: "flex" } },
|
|
3052
|
-
!hideButton && !hideLessButton && (React.createElement(
|
|
3015
|
+
!hideButton && !hideLessButton && (React.createElement(ButtonV2.ButtonV2, { label: displayList.length < productList.length
|
|
3053
3016
|
? "Show more"
|
|
3054
3017
|
: "Show less", buttonStyle: "secondary", onClick: clickController, isFullWidth: isMinWidthArcBreakpointS ? false : true, isLoading: isLoading })),
|
|
3055
3018
|
displayList.length > cardsToDisplay && (React.createElement(React.Fragment, null,
|
|
3056
3019
|
React.createElement("div", { id: "skip-link", className: classNames(styles["productNavigation-skipLink"]), tabIndex: -1 },
|
|
3057
|
-
React.createElement(
|
|
3058
|
-
React.createElement(
|
|
3020
|
+
React.createElement(ButtonV2.ButtonV2, { label: "Move to first new card", buttonStyle: "primary", onClick: moveFocus, isFullWidth: isMinWidthArcBreakpointS ? false : true })))),
|
|
3021
|
+
React.createElement(VisuallyHidden.VisuallyHidden, null,
|
|
3059
3022
|
React.createElement("div", { "aria-live": "polite", id: "aria-live-region", "aria-atomic": true },
|
|
3060
3023
|
React.createElement("p", null,
|
|
3061
3024
|
"Total products listed ",
|