@nextui-org/use-aria-button
Advanced tools
Comparing version 0.0.0-dev-v2-20230719131057 to 0.0.0-dev-v2-20230723192723
@@ -1,5 +0,9 @@ | ||
import { RefObject, ButtonHTMLAttributes, AnchorHTMLAttributes, HTMLAttributes, InputHTMLAttributes, ElementType } from 'react'; | ||
import { AriaButtonProps } from '@react-types/button'; | ||
import { ElementType, RefObject, ButtonHTMLAttributes, AnchorHTMLAttributes, HTMLAttributes, InputHTMLAttributes } from 'react'; | ||
import { AriaButtonProps as AriaButtonProps$1 } from '@react-types/button'; | ||
import { DOMAttributes } from '@react-types/shared'; | ||
type AriaButtonProps<T extends ElementType = "button"> = AriaButtonProps$1<T> & { | ||
/** Whether text selection should be enabled on the pressable element. */ | ||
allowTextSelectionOnPress?: boolean; | ||
}; | ||
interface ButtonAria<T> { | ||
@@ -18,2 +22,2 @@ /** Props for the button element. */ | ||
export { ButtonAria, useAriaButton }; | ||
export { AriaButtonProps, ButtonAria, useAriaButton }; |
@@ -43,3 +43,4 @@ "use strict"; | ||
rel, | ||
type = "button" | ||
type = "button", | ||
allowTextSelectionOnPress | ||
} = props; | ||
@@ -71,2 +72,3 @@ let additionalProps; | ||
preventFocusOnPress, | ||
allowTextSelectionOnPress, | ||
ref | ||
@@ -73,0 +75,0 @@ }); |
{ | ||
"name": "@nextui-org/use-aria-button", | ||
"version": "0.0.0-dev-v2-20230719131057", | ||
"version": "0.0.0-dev-v2-20230723192723", | ||
"description": "Internal hook to handle button a11y and events, this is based on react-aria button hook but without the onClick warning", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9924
196