@react-aria/link
Advanced tools
Comparing version 3.1.2 to 3.1.3
@@ -45,3 +45,4 @@ var { | ||
let { | ||
pressProps | ||
pressProps, | ||
isPressed | ||
} = usePress({ | ||
@@ -58,2 +59,4 @@ onPress, | ||
return { | ||
isPressed, | ||
// Used to indicate press state for visual | ||
linkProps: mergeProps(domProps, _babelRuntimeHelpersExtends({}, pressProps, linkProps, { | ||
@@ -60,0 +63,0 @@ 'aria-disabled': isDisabled || undefined, |
@@ -33,3 +33,4 @@ import { usePress } from "@react-aria/interactions"; | ||
let { | ||
pressProps | ||
pressProps, | ||
isPressed | ||
} = usePress({ | ||
@@ -46,2 +47,4 @@ onPress, | ||
return { | ||
isPressed, | ||
// Used to indicate press state for visual | ||
linkProps: mergeProps(domProps, _babelRuntimeHelpersEsmExtends({}, pressProps, linkProps, { | ||
@@ -48,0 +51,0 @@ 'aria-disabled': isDisabled || undefined, |
@@ -15,2 +15,4 @@ import { AriaLinkProps } from "@react-types/link"; | ||
linkProps: HTMLAttributes<HTMLElement>; | ||
/** Whether the link is currently pressed. */ | ||
isPressed: boolean; | ||
} | ||
@@ -17,0 +19,0 @@ /** |
{ | ||
"name": "@react-aria/link", | ||
"version": "3.1.2", | ||
"version": "3.1.3", | ||
"description": "Spectrum UI components in React", | ||
@@ -21,6 +21,6 @@ "license": "Apache-2.0", | ||
"@babel/runtime": "^7.6.2", | ||
"@react-aria/interactions": "^3.2.1", | ||
"@react-aria/utils": "^3.3.0", | ||
"@react-types/link": "^3.1.1", | ||
"@react-types/shared": "^3.2.1" | ||
"@react-aria/interactions": "^3.4.0", | ||
"@react-aria/utils": "^3.8.0", | ||
"@react-types/link": "^3.1.2", | ||
"@react-types/shared": "^3.6.0" | ||
}, | ||
@@ -33,3 +33,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "0778f71a3c13e1e24388a23b6d525e3b9f5b98f1" | ||
"gitHead": "3aae08e7d8a75382bedcddac7c86107e40db9296" | ||
} |
@@ -30,3 +30,5 @@ /* | ||
/** Props for the link element. */ | ||
linkProps: HTMLAttributes<HTMLElement> | ||
linkProps: HTMLAttributes<HTMLElement>, | ||
/** Whether the link is currently pressed. */ | ||
isPressed: boolean | ||
} | ||
@@ -59,6 +61,7 @@ | ||
let {pressProps} = usePress({onPress, onPressStart, onPressEnd, isDisabled, ref}); | ||
let {pressProps, isPressed} = usePress({onPress, onPressStart, onPressEnd, isDisabled, ref}); | ||
let domProps = filterDOMProps(otherProps, {labelable: true}); | ||
return { | ||
isPressed, // Used to indicate press state for visual | ||
linkProps: mergeProps(domProps, { | ||
@@ -65,0 +68,0 @@ ...pressProps, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29374
228
Updated@react-aria/utils@^3.8.0
Updated@react-types/link@^3.1.2
Updated@react-types/shared@^3.6.0