@react-aria/link
Advanced tools
Comparing version 3.0.0-rc.0 to 3.0.0-rc.1
@@ -25,3 +25,2 @@ var { | ||
let { | ||
tabIndex, | ||
elementType = 'a', | ||
@@ -35,3 +34,3 @@ onPress, | ||
} = props, | ||
otherProps = _babelRuntimeHelpersObjectWithoutPropertiesLoose(props, ["tabIndex", "elementType", "onPress", "onPressStart", "onPressEnd", "onClick", "isDisabled"]); | ||
otherProps = _babelRuntimeHelpersObjectWithoutPropertiesLoose(props, ["elementType", "onPress", "onPressStart", "onPressEnd", "onClick", "isDisabled"]); | ||
@@ -43,3 +42,3 @@ let linkProps; | ||
role: 'link', | ||
tabIndex: !isDisabled ? tabIndex || 0 : undefined | ||
tabIndex: !isDisabled ? 0 : undefined | ||
}; | ||
@@ -61,5 +60,3 @@ } | ||
return { | ||
linkProps: mergeProps(domProps, _babelRuntimeHelpersExtends({ | ||
tabIndex | ||
}, pressProps, {}, linkProps, { | ||
linkProps: mergeProps(domProps, _babelRuntimeHelpersExtends({}, pressProps, linkProps, { | ||
'aria-disabled': isDisabled || undefined, | ||
@@ -66,0 +63,0 @@ onClick: e => { |
@@ -13,3 +13,2 @@ import { usePress } from "@react-aria/interactions"; | ||
let { | ||
tabIndex, | ||
elementType = 'a', | ||
@@ -23,3 +22,3 @@ onPress, | ||
} = props, | ||
otherProps = _babelRuntimeHelpersEsmObjectWithoutPropertiesLoose(props, ["tabIndex", "elementType", "onPress", "onPressStart", "onPressEnd", "onClick", "isDisabled"]); | ||
otherProps = _babelRuntimeHelpersEsmObjectWithoutPropertiesLoose(props, ["elementType", "onPress", "onPressStart", "onPressEnd", "onClick", "isDisabled"]); | ||
@@ -31,3 +30,3 @@ let linkProps; | ||
role: 'link', | ||
tabIndex: !isDisabled ? tabIndex || 0 : undefined | ||
tabIndex: !isDisabled ? 0 : undefined | ||
}; | ||
@@ -49,5 +48,3 @@ } | ||
return { | ||
linkProps: mergeProps(domProps, _babelRuntimeHelpersEsmExtends({ | ||
tabIndex | ||
}, pressProps, {}, linkProps, { | ||
linkProps: mergeProps(domProps, _babelRuntimeHelpersEsmExtends({}, pressProps, linkProps, { | ||
'aria-disabled': isDisabled || undefined, | ||
@@ -54,0 +51,0 @@ onClick: e => { |
{ | ||
"name": "@react-aria/link", | ||
"version": "3.0.0-rc.0", | ||
"version": "3.0.0-rc.1", | ||
"description": "Spectrum UI components in React", | ||
@@ -11,3 +11,4 @@ "license": "Apache-2.0", | ||
"files": [ | ||
"dist" | ||
"dist", | ||
"src" | ||
], | ||
@@ -21,6 +22,6 @@ "sideEffects": false, | ||
"@babel/runtime": "^7.6.2", | ||
"@react-aria/interactions": "3.0.0-rc.3", | ||
"@react-aria/utils": "3.0.0-rc.3", | ||
"@react-types/link": "3.0.0-rc.0", | ||
"@react-types/shared": "3.0.0-rc.3" | ||
"@react-aria/interactions": "3.0.0-rc.4", | ||
"@react-aria/utils": "3.0.0-rc.4", | ||
"@react-types/link": "3.0.0-rc.1", | ||
"@react-types/shared": "3.0.0-rc.4" | ||
}, | ||
@@ -33,3 +34,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "461d6321126ae9b4f1508aa912f7b36bf8a603f8" | ||
"gitHead": "ee5ad1544ed65366c0fadabc2c63d39573ba3ffd" | ||
} |
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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
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
28626
11
217
1
80
+ Added@react-aria/interactions@3.0.0-rc.4(transitive)
+ Added@react-aria/utils@3.0.0-rc.4(transitive)
+ Added@react-types/link@3.0.0-rc.1(transitive)
+ Added@react-types/shared@3.0.0-rc.4(transitive)
- Removed@react-aria/interactions@3.0.0-rc.3(transitive)
- Removed@react-aria/utils@3.0.0-rc.3(transitive)
- Removed@react-types/link@3.0.0-rc.0(transitive)
- Removed@react-types/shared@3.0.0-rc.3(transitive)
Updated@react-aria/utils@3.0.0-rc.4
Updated@react-types/link@3.0.0-rc.1