@react-aria/link
Advanced tools
Comparing version 3.0.0-nightly.985 to 3.0.0-nightly.992
@@ -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.0.0-nightly.985+887fff79", | ||
"version": "3.0.0-nightly.992+d1844573", | ||
"description": "Spectrum UI components in React", | ||
@@ -21,6 +21,6 @@ "license": "Apache-2.0", | ||
"@babel/runtime": "^7.6.2", | ||
"@react-aria/interactions": "3.0.0-nightly.985+887fff79", | ||
"@react-aria/utils": "3.0.0-nightly.985+887fff79", | ||
"@react-types/link": "3.0.0-nightly.985+887fff79", | ||
"@react-types/shared": "3.0.0-nightly.985+887fff79" | ||
"@react-aria/interactions": "3.0.0-nightly.992+d1844573", | ||
"@react-aria/utils": "3.0.0-nightly.992+d1844573", | ||
"@react-types/link": "3.0.0-nightly.992+d1844573", | ||
"@react-types/shared": "3.0.0-nightly.992+d1844573" | ||
}, | ||
@@ -33,3 +33,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "887fff79e8f33c0f8953dc38955419feddd56b6a" | ||
"gitHead": "d1844573fa992f7a34285ebafdc08cb407829095" | ||
} |
@@ -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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
29475
228