@react-aria/radio
Advanced tools
Comparing version 3.0.0-nightly-262cc758b-241115 to 3.0.0-nightly-2788d8afd-250205
@@ -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-262cc758b-241115", | ||
"version": "3.0.0-nightly-2788d8afd-250205", | ||
"description": "Spectrum UI components in React", | ||
@@ -25,20 +25,20 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@react-aria/focus": "^3.0.0-nightly-262cc758b-241115", | ||
"@react-aria/form": "^3.0.0-nightly-262cc758b-241115", | ||
"@react-aria/i18n": "^3.0.0-nightly-262cc758b-241115", | ||
"@react-aria/interactions": "^3.0.0-nightly-262cc758b-241115", | ||
"@react-aria/label": "^3.0.0-nightly-262cc758b-241115", | ||
"@react-aria/utils": "^3.0.0-nightly-262cc758b-241115", | ||
"@react-stately/radio": "^3.0.0-nightly-262cc758b-241115", | ||
"@react-types/radio": "^3.0.0-nightly-262cc758b-241115", | ||
"@react-types/shared": "^3.0.0-nightly-262cc758b-241115", | ||
"@react-aria/focus": "3.0.0-nightly-2788d8afd-250205", | ||
"@react-aria/form": "3.0.0-nightly-2788d8afd-250205", | ||
"@react-aria/i18n": "3.0.0-nightly-2788d8afd-250205", | ||
"@react-aria/interactions": "3.0.0-nightly-2788d8afd-250205", | ||
"@react-aria/label": "3.0.0-nightly-2788d8afd-250205", | ||
"@react-aria/utils": "3.0.0-nightly-2788d8afd-250205", | ||
"@react-stately/radio": "3.0.0-nightly-2788d8afd-250205", | ||
"@react-types/radio": "3.0.0-nightly-2788d8afd-250205", | ||
"@react-types/shared": "3.0.0-nightly-2788d8afd-250205", | ||
"@swc/helpers": "^0.5.0" | ||
}, | ||
"peerDependencies": { | ||
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0" | ||
"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.9" | ||
} | ||
} |
@@ -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
81985
12
1018
+ Added@internationalized/date@3.0.0-nightly-2788d8afd-250205(transitive)
+ Added@internationalized/message@3.0.0-nightly-2788d8afd-250205(transitive)
+ Added@internationalized/number@3.0.0-nightly-2788d8afd-250205(transitive)
+ Added@internationalized/string@3.0.0-nightly-2788d8afd-250205(transitive)
+ Added@react-aria/focus@3.0.0-nightly-2788d8afd-250205(transitive)
+ Added@react-aria/form@3.0.0-nightly-2788d8afd-250205(transitive)
+ Added@react-aria/i18n@3.0.0-nightly-2788d8afd-250205(transitive)
+ Added@react-aria/interactions@3.0.0-nightly-2788d8afd-250205(transitive)
+ Added@react-aria/label@3.0.0-nightly-2788d8afd-250205(transitive)
+ Added@react-aria/ssr@3.0.0-nightly-2788d8afd-250205(transitive)
+ Added@react-aria/utils@3.0.0-nightly-2788d8afd-250205(transitive)
+ Added@react-stately/form@3.0.0-nightly-2788d8afd-250205(transitive)
+ Added@react-stately/radio@3.0.0-nightly-2788d8afd-250205(transitive)
+ Added@react-stately/utils@3.0.0-nightly-2788d8afd-250205(transitive)
+ Added@react-types/radio@3.0.0-nightly-2788d8afd-250205(transitive)
+ Added@react-types/shared@3.0.0-nightly-2788d8afd-250205(transitive)
- Removed@internationalized/date@3.7.0(transitive)
- Removed@internationalized/message@3.1.6(transitive)
- Removed@internationalized/number@3.6.0(transitive)
- Removed@internationalized/string@3.2.5(transitive)
- Removed@react-aria/focus@3.19.1(transitive)
- Removed@react-aria/form@3.0.12(transitive)
- Removed@react-aria/i18n@3.12.5(transitive)
- Removed@react-aria/interactions@3.23.0(transitive)
- Removed@react-aria/label@3.7.14(transitive)
- Removed@react-aria/ssr@3.9.7(transitive)
- Removed@react-aria/utils@3.27.0(transitive)
- Removed@react-stately/form@3.1.1(transitive)
- Removed@react-stately/radio@3.10.10(transitive)
- Removed@react-stately/utils@3.10.5(transitive)
- Removed@react-types/radio@3.8.6(transitive)
- Removed@react-types/shared@3.27.0(transitive)
Updated@react-aria/interactions@3.0.0-nightly-2788d8afd-250205