@arc-ui/components 6.4.0 → 7.0.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/dist/index.es.js +6 -6
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/styles.bt.css +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.ee.css +1 -1
- package/dist/types/components/Card/Card.d.ts +7 -1
- package/package.json +3 -6
- package/dist/polyfills.js +0 -3383
- package/dist/polyfills.js.map +0 -1
- package/dist/types/polyfills.d.ts +0 -2
package/dist/index.es.js
CHANGED
|
@@ -767,7 +767,7 @@ var useAriaDescribedby = function (_a) {
|
|
|
767
767
|
* Detect interaction mode
|
|
768
768
|
*/
|
|
769
769
|
var useInteractionMode = function () {
|
|
770
|
-
var _a = useState(""), interactionMode = _a[0], setInteractionMode = _a[1];
|
|
770
|
+
var _a = useState("pointer"), interactionMode = _a[0], setInteractionMode = _a[1];
|
|
771
771
|
useEffect(function () {
|
|
772
772
|
var onKeyDown = function (event) {
|
|
773
773
|
if (event.altKey || event.ctrlKey || event.metaKey) {
|
|
@@ -860,7 +860,7 @@ var useNumericInput = function (props) {
|
|
|
860
860
|
*/
|
|
861
861
|
var Card = function (_a) {
|
|
862
862
|
var _b;
|
|
863
|
-
var actionId = _a.actionId, _c = _a.actionLabel, actionLabel = _c === void 0 ? "Read more" : _c, children = _a.children, _d = _a.fill, fill = _d === void 0 ? "solid" : _d, href = _a.href, imageAlt = _a.imageAlt, imageSrc = _a.imageSrc, imageSrcSet = _a.imageSrcSet, imageHeight = _a.imageHeight, minHeight = _a.minHeight, target = _a.target, title = _a.title, _e = _a.titleSize, titleSize = _e === void 0 ? "s" : _e, props = __rest(_a, ["actionId", "actionLabel", "children", "fill", "href", "imageAlt", "imageSrc", "imageSrcSet", "imageHeight", "minHeight", "target", "title", "titleSize"]);
|
|
863
|
+
var actionId = _a.actionId, _c = _a.actionLabel, actionLabel = _c === void 0 ? "Read more" : _c, children = _a.children, _d = _a.fill, fill = _d === void 0 ? "solid" : _d, href = _a.href, imageAlt = _a.imageAlt, imageSrc = _a.imageSrc, imageSrcSet = _a.imageSrcSet, imageHeight = _a.imageHeight, linkData = _a.linkData, minHeight = _a.minHeight, target = _a.target, title = _a.title, _e = _a.titleSize, titleSize = _e === void 0 ? "s" : _e, props = __rest(_a, ["actionId", "actionLabel", "children", "fill", "href", "imageAlt", "imageSrc", "imageSrcSet", "imageHeight", "linkData", "minHeight", "target", "title", "titleSize"]);
|
|
864
864
|
var surface = useContext(Context$3).surface;
|
|
865
865
|
var interactionMode = useInteractionMode().interactionMode;
|
|
866
866
|
var Wrapper = function (_a) {
|
|
@@ -880,7 +880,7 @@ var Card = function (_a) {
|
|
|
880
880
|
React.createElement("div", { className: "arc-Card-header" },
|
|
881
881
|
React.createElement("div", { className: "arc-Card-title" },
|
|
882
882
|
React.createElement(Heading, { size: titleSize },
|
|
883
|
-
React.createElement(CardLink, { actionId: actionId, fill: fill, href: href, stretch: true, target: target }, title))),
|
|
883
|
+
React.createElement(CardLink, { actionId: actionId, fill: fill, href: href, linkData: linkData, stretch: true, target: target }, title))),
|
|
884
884
|
coverImage),
|
|
885
885
|
React.createElement("div", { className: "arc-Card-children" },
|
|
886
886
|
React.createElement(Card.Block, null, children)),
|
|
@@ -919,14 +919,14 @@ Card.Image = CardImage;
|
|
|
919
919
|
* Internal `CardLink` component.
|
|
920
920
|
*/
|
|
921
921
|
var CardLink = function (_a) {
|
|
922
|
-
var actionId = _a.actionId, isButton = _a.isButton, children = _a.children, fill = _a.fill, href = _a.href, stretch = _a.stretch, target = _a.target;
|
|
922
|
+
var actionId = _a.actionId, isButton = _a.isButton, children = _a.children, fill = _a.fill, href = _a.href, _b = _a.linkData, linkData = _b === void 0 ? {} : _b, stretch = _a.stretch, target = _a.target;
|
|
923
923
|
var surface = useContext(Context$3).surface;
|
|
924
|
-
return (React.createElement("a", { "aria-describedby": actionId, className: classNames({
|
|
924
|
+
return (React.createElement("a", __assign({ "aria-describedby": actionId, className: classNames({
|
|
925
925
|
"arc-Card-link": true,
|
|
926
926
|
"arc-Card-link--button": isButton,
|
|
927
927
|
"arc-Card-link--onDarkSurface": surface === "dark" && fill !== "neutral",
|
|
928
928
|
"arc-Card-link--stretch": stretch
|
|
929
|
-
}), href: href, rel: target === "_blank" ? "noopener noreferrer" : undefined, tabIndex: isButton ? -1 : undefined, target: target },
|
|
929
|
+
}), href: href, rel: target === "_blank" ? "noopener noreferrer" : undefined, tabIndex: isButton ? -1 : undefined, target: target }, filterDataAttrs(linkData)),
|
|
930
930
|
React.createElement("span", { className: "arc-Card-linkText" }, children),
|
|
931
931
|
isButton && (React.createElement("span", { className: "arc-Card-linkIcon" },
|
|
932
932
|
React.createElement(Icon, { icon: "btChevronRight2px", size: 8 })))));
|