@react-aria/button
Advanced tools
Comparing version
var $lIlxZ$reactariautils = require("@react-aria/utils"); | ||
var $lIlxZ$reactariafocus = require("@react-aria/focus"); | ||
var $lIlxZ$reactariainteractions = require("@react-aria/interactions"); | ||
@@ -23,3 +22,2 @@ | ||
function $988353faa005faf8$export$ea18c227d4417cc3(props, ref) { | ||
@@ -53,3 +51,3 @@ let { elementType: elementType = 'button', isDisabled: isDisabled, onPress: onPress, onPressStart: onPressStart, onPressEnd: onPressEnd, onPressUp: onPressUp, onPressChange: onPressChange, preventFocusOnPress: preventFocusOnPress, allowFocusWhenDisabled: // @ts-ignore - undocumented | ||
}); | ||
let { focusableProps: focusableProps } = (0, $lIlxZ$reactariafocus.useFocusable)(props, ref); | ||
let { focusableProps: focusableProps } = (0, $lIlxZ$reactariainteractions.useFocusable)(props, ref); | ||
if (allowFocusWhenDisabled) focusableProps.tabIndex = isDisabled ? -1 : focusableProps.tabIndex; | ||
@@ -56,0 +54,0 @@ let buttonProps = (0, $lIlxZ$reactariautils.mergeProps)(focusableProps, pressProps, (0, $lIlxZ$reactariautils.filterDOMProps)(props, { |
import {mergeProps as $bwqiF$mergeProps, filterDOMProps as $bwqiF$filterDOMProps} from "@react-aria/utils"; | ||
import {useFocusable as $bwqiF$useFocusable} from "@react-aria/focus"; | ||
import {usePress as $bwqiF$usePress} from "@react-aria/interactions"; | ||
import {usePress as $bwqiF$usePress, useFocusable as $bwqiF$useFocusable} from "@react-aria/interactions"; | ||
@@ -17,3 +16,2 @@ /* | ||
function $701a24aa0da5b062$export$ea18c227d4417cc3(props, ref) { | ||
@@ -20,0 +18,0 @@ let { elementType: elementType = 'button', isDisabled: isDisabled, onPress: onPress, onPressStart: onPressStart, onPressEnd: onPressEnd, onPressUp: onPressUp, onPressChange: onPressChange, preventFocusOnPress: preventFocusOnPress, allowFocusWhenDisabled: // @ts-ignore - undocumented |
{ | ||
"name": "@react-aria/button", | ||
"version": "3.0.0-nightly-2788d8afd-250205", | ||
"version": "3.0.0-nightly-27e5ef1b7-250319", | ||
"description": "Spectrum UI components in React", | ||
@@ -25,9 +25,8 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@react-aria/focus": "3.0.0-nightly-2788d8afd-250205", | ||
"@react-aria/interactions": "3.0.0-nightly-2788d8afd-250205", | ||
"@react-aria/toolbar": "3.0.0-nightly-2788d8afd-250205", | ||
"@react-aria/utils": "3.0.0-nightly-2788d8afd-250205", | ||
"@react-stately/toggle": "3.0.0-nightly-2788d8afd-250205", | ||
"@react-types/button": "3.0.0-nightly-2788d8afd-250205", | ||
"@react-types/shared": "3.0.0-nightly-2788d8afd-250205", | ||
"@react-aria/interactions": "3.0.0-nightly-27e5ef1b7-250319", | ||
"@react-aria/toolbar": "3.0.0-nightly-27e5ef1b7-250319", | ||
"@react-aria/utils": "3.0.0-nightly-27e5ef1b7-250319", | ||
"@react-stately/toggle": "3.0.0-nightly-27e5ef1b7-250319", | ||
"@react-types/button": "3.0.0-nightly-27e5ef1b7-250319", | ||
"@react-types/shared": "3.0.0-nightly-27e5ef1b7-250319", | ||
"@swc/helpers": "^0.5.0" | ||
@@ -34,0 +33,0 @@ }, |
@@ -24,4 +24,3 @@ /* | ||
import {filterDOMProps, mergeProps} from '@react-aria/utils'; | ||
import {useFocusable} from '@react-aria/focus'; | ||
import {usePress} from '@react-aria/interactions'; | ||
import {useFocusable, usePress} from '@react-aria/interactions'; | ||
@@ -28,0 +27,0 @@ export interface AriaButtonOptions<E extends ElementType> extends Omit<AriaButtonProps<E>, 'children'> {} |
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
9
-10%83594
-0.34%840
-0.47%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated