Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@react-aria/button

Package Overview
Dependencies
Maintainers
2
Versions
865
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-aria/button - npm Package Compare versions

Comparing version 3.0.0-nightly.870 to 3.0.0-nightly.877

14

dist/main.js

@@ -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.0.0-nightly.870+3706c6a5",
"version": "3.0.0-nightly.877+cbaffb3e",
"description": "Spectrum UI components in React",

@@ -21,8 +21,8 @@ "license": "Apache-2.0",

"@babel/runtime": "^7.6.2",
"@react-aria/focus": "3.0.0-nightly.870+3706c6a5",
"@react-aria/i18n": "3.0.0-nightly.870+3706c6a5",
"@react-aria/interactions": "3.0.0-nightly.870+3706c6a5",
"@react-aria/utils": "3.0.0-nightly.870+3706c6a5",
"@react-stately/toggle": "3.0.0-nightly.870+3706c6a5",
"@react-types/button": "3.3.1-nightly.2548+3706c6a5"
"@react-aria/focus": "3.0.0-nightly.877+cbaffb3e",
"@react-aria/i18n": "3.0.0-nightly.877+cbaffb3e",
"@react-aria/interactions": "3.0.0-nightly.877+cbaffb3e",
"@react-aria/utils": "3.0.0-nightly.877+cbaffb3e",
"@react-stately/toggle": "3.0.0-nightly.877+cbaffb3e",
"@react-types/button": "3.3.1-nightly.2555+cbaffb3e"
},

@@ -35,3 +35,3 @@ "peerDependencies": {

},
"gitHead": "3706c6a504192bf7cb547467671e3c760b0dd14e"
"gitHead": "cbaffb3e7e94f5000c42d9153548021907250dee"
}

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc