New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@react-aria/radio

Package Overview
Dependencies
Maintainers
2
Versions
921
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-aria/radio - npm Package Compare versions

Comparing version

to
3.0.0-nightly-9d70953f1-250204

12

dist/useRadio.main.js

@@ -39,11 +39,9 @@ var $eeb149278aae5c67$exports = require("./utils.main.js");

};
// Handle press state for keyboard interactions and cases where labelProps is not used.
let { pressProps: pressProps, isPressed: isPressed } = (0, $gWC9A$reactariainteractions.usePress)({
isDisabled: isDisabled
});
// iOS does not toggle radios if you drag off and back onto the label, so handle it ourselves.
// Handle press state on the label.
let { pressProps: labelProps, isPressed: isLabelPressed } = (0, $gWC9A$reactariainteractions.usePress)({
isDisabled: isDisabled,
onPress () {
state.setSelectedValue(value);
}
isDisabled: isDisabled
});

@@ -68,5 +66,3 @@ let { focusableProps: focusableProps } = (0, $gWC9A$reactariafocus.useFocusable)((0, $gWC9A$reactariautils.mergeProps)(props, {

return {
labelProps: (0, $gWC9A$reactariautils.mergeProps)(labelProps, {
onClick: (e)=>e.preventDefault()
}),
labelProps: labelProps,
inputProps: (0, $gWC9A$reactariautils.mergeProps)(domProps, {

@@ -73,0 +69,0 @@ ...interactions,

@@ -33,11 +33,9 @@ import {radioGroupData as $884aeceb3d67f00f$export$37b65e5b5444d35c} from "./utils.module.js";

};
// Handle press state for keyboard interactions and cases where labelProps is not used.
let { pressProps: pressProps, isPressed: isPressed } = (0, $5jJ3f$usePress)({
isDisabled: isDisabled
});
// iOS does not toggle radios if you drag off and back onto the label, so handle it ourselves.
// Handle press state on the label.
let { pressProps: labelProps, isPressed: isLabelPressed } = (0, $5jJ3f$usePress)({
isDisabled: isDisabled,
onPress () {
state.setSelectedValue(value);
}
isDisabled: isDisabled
});

@@ -62,5 +60,3 @@ let { focusableProps: focusableProps } = (0, $5jJ3f$useFocusable)((0, $5jJ3f$mergeProps)(props, {

return {
labelProps: (0, $5jJ3f$mergeProps)(labelProps, {
onClick: (e)=>e.preventDefault()
}),
labelProps: labelProps,
inputProps: (0, $5jJ3f$mergeProps)(domProps, {

@@ -67,0 +63,0 @@ ...interactions,

{
"name": "@react-aria/radio",
"version": "3.0.0-nightly-993de98ad-241210",
"version": "3.0.0-nightly-9d70953f1-250204",
"description": "Spectrum UI components in React",

@@ -25,20 +25,20 @@ "license": "Apache-2.0",

"dependencies": {
"@react-aria/focus": "^3.0.0-nightly-993de98ad-241210",
"@react-aria/form": "^3.0.0-nightly-993de98ad-241210",
"@react-aria/i18n": "^3.0.0-nightly-993de98ad-241210",
"@react-aria/interactions": "^3.0.0-nightly-993de98ad-241210",
"@react-aria/label": "^3.0.0-nightly-993de98ad-241210",
"@react-aria/utils": "^3.0.0-nightly-993de98ad-241210",
"@react-stately/radio": "^3.0.0-nightly-993de98ad-241210",
"@react-types/radio": "^3.0.0-nightly-993de98ad-241210",
"@react-types/shared": "^3.0.0-nightly-993de98ad-241210",
"@react-aria/focus": "3.0.0-nightly-9d70953f1-250204",
"@react-aria/form": "3.0.0-nightly-9d70953f1-250204",
"@react-aria/i18n": "3.0.0-nightly-9d70953f1-250204",
"@react-aria/interactions": "3.0.0-nightly-9d70953f1-250204",
"@react-aria/label": "3.0.0-nightly-9d70953f1-250204",
"@react-aria/utils": "3.0.0-nightly-9d70953f1-250204",
"@react-stately/radio": "3.0.0-nightly-9d70953f1-250204",
"@react-types/radio": "3.0.0-nightly-9d70953f1-250204",
"@react-types/shared": "3.0.0-nightly-9d70953f1-250204",
"@swc/helpers": "^0.5.0"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
"react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
},
"publishConfig": {
"access": "public"
},
"stableVersion": "3.10.10"
}
}

@@ -66,2 +66,3 @@ /*

// Handle press state for keyboard interactions and cases where labelProps is not used.
let {pressProps, isPressed} = usePress({

@@ -71,8 +72,5 @@ isDisabled

// iOS does not toggle radios if you drag off and back onto the label, so handle it ourselves.
// Handle press state on the label.
let {pressProps: labelProps, isPressed: isLabelPressed} = usePress({
isDisabled,
onPress() {
state.setSelectedValue(value);
}
isDisabled
});

@@ -102,3 +100,3 @@

return {
labelProps: mergeProps(labelProps, {onClick: e => e.preventDefault()}),
labelProps,
inputProps: mergeProps(domProps, {

@@ -105,0 +103,0 @@ ...interactions,

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

Sorry, the diff of this file is not supported yet