@react-aria/button
Advanced tools
Comparing version 3.3.0 to 3.3.1
@@ -0,1 +1,3 @@ | ||
var _babelRuntimeHelpersExtends = $parcel$interopDefault(require("@babel/runtime/helpers/extends")); | ||
var { | ||
@@ -15,4 +17,2 @@ usePress | ||
var _babelRuntimeHelpersExtends = $parcel$interopDefault(require("@babel/runtime/helpers/extends")); | ||
function $parcel$interopDefault(a) { | ||
@@ -37,2 +37,4 @@ return a && a.__esModule ? a.default : a; | ||
onPressChange, | ||
// @ts-ignore - undocumented | ||
preventFocusOnPress, | ||
// @ts-ignore | ||
@@ -69,2 +71,3 @@ onClick: deprecatedOnClick, | ||
isDisabled, | ||
preventFocusOnPress, | ||
ref | ||
@@ -82,3 +85,3 @@ }); | ||
// Used to indicate press state for visual | ||
buttonProps: mergeProps(buttonProps, _babelRuntimeHelpersExtends({ | ||
buttonProps: mergeProps(additionalProps, buttonProps, { | ||
'aria-haspopup': props['aria-haspopup'], | ||
@@ -89,4 +92,3 @@ 'aria-expanded': props['aria-expanded'], | ||
disabled: isDisabled, | ||
type | ||
}, additionalProps || {}, { | ||
type, | ||
onClick: e => { | ||
@@ -98,3 +100,3 @@ if (deprecatedOnClick) { | ||
} | ||
})) | ||
}) | ||
}; | ||
@@ -101,0 +103,0 @@ } |
@@ -0,5 +1,5 @@ | ||
import _babelRuntimeHelpersEsmExtends from "@babel/runtime/helpers/esm/extends"; | ||
import { usePress } from "@react-aria/interactions"; | ||
import { useFocusable } from "@react-aria/focus"; | ||
import { filterDOMProps, mergeProps, chain } from "@react-aria/utils"; | ||
import _babelRuntimeHelpersEsmExtends from "@babel/runtime/helpers/esm/extends"; | ||
@@ -21,2 +21,4 @@ /** | ||
onPressChange, | ||
// @ts-ignore - undocumented | ||
preventFocusOnPress, | ||
// @ts-ignore | ||
@@ -53,2 +55,3 @@ onClick: deprecatedOnClick, | ||
isDisabled, | ||
preventFocusOnPress, | ||
ref | ||
@@ -66,3 +69,3 @@ }); | ||
// Used to indicate press state for visual | ||
buttonProps: mergeProps(buttonProps, _babelRuntimeHelpersEsmExtends({ | ||
buttonProps: mergeProps(additionalProps, buttonProps, { | ||
'aria-haspopup': props['aria-haspopup'], | ||
@@ -73,4 +76,3 @@ 'aria-expanded': props['aria-expanded'], | ||
disabled: isDisabled, | ||
type | ||
}, additionalProps || {}, { | ||
type, | ||
onClick: e => { | ||
@@ -82,3 +84,3 @@ if (deprecatedOnClick) { | ||
} | ||
})) | ||
}) | ||
}; | ||
@@ -85,0 +87,0 @@ } |
{ | ||
"name": "@react-aria/button", | ||
"version": "3.3.0", | ||
"version": "3.3.1", | ||
"description": "Spectrum UI components in React", | ||
@@ -22,7 +22,7 @@ "license": "Apache-2.0", | ||
"@react-aria/focus": "^3.2.2", | ||
"@react-aria/i18n": "^3.2.0", | ||
"@react-aria/interactions": "^3.3.2", | ||
"@react-aria/utils": "^3.4.1", | ||
"@react-aria/i18n": "^3.3.0", | ||
"@react-aria/interactions": "^3.3.3", | ||
"@react-aria/utils": "^3.6.0", | ||
"@react-stately/toggle": "^3.2.1", | ||
"@react-types/button": "^3.3.0" | ||
"@react-types/button": "^3.3.1" | ||
}, | ||
@@ -35,3 +35,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "f5b429ee8615248f2e3c76754bad2ece83f1c444" | ||
"gitHead": "7f9dc7fa5144679d2dc733170cb5c1f40d0c5ee5" | ||
} |
@@ -57,2 +57,4 @@ /* | ||
onPressChange, | ||
// @ts-ignore - undocumented | ||
preventFocusOnPress, | ||
// @ts-ignore | ||
@@ -85,2 +87,3 @@ onClick: deprecatedOnClick, | ||
isDisabled, | ||
preventFocusOnPress, | ||
ref | ||
@@ -95,3 +98,3 @@ }); | ||
isPressed, // Used to indicate press state for visual | ||
buttonProps: mergeProps(buttonProps, { | ||
buttonProps: mergeProps(additionalProps, buttonProps, { | ||
'aria-haspopup': props['aria-haspopup'], | ||
@@ -103,3 +106,2 @@ 'aria-expanded': props['aria-expanded'], | ||
type, | ||
...(additionalProps || {}), | ||
onClick: (e) => { | ||
@@ -106,0 +108,0 @@ if (deprecatedOnClick) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
51836
405
Updated@react-aria/i18n@^3.3.0
Updated@react-aria/utils@^3.6.0
Updated@react-types/button@^3.3.1