@react-types/button
Advanced tools
Comparing version
{ | ||
"name": "@react-types/button", | ||
"version": "3.0.0-nightly-a792c1ad5-250224", | ||
"version": "3.0.0-nightly-a7b1a28e0-250628", | ||
"description": "Spectrum UI components in React", | ||
@@ -12,3 +12,3 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@react-types/shared": "3.0.0-nightly-a792c1ad5-250224" | ||
"@react-types/shared": "3.0.0-nightly-a7b1a28e0-250628" | ||
}, | ||
@@ -15,0 +15,0 @@ "peerDependencies": { |
@@ -83,3 +83,3 @@ /* | ||
type LegacyButtonVariant = 'cta' | 'overBackground'; | ||
export interface SpectrumButtonProps<T extends ElementType = 'button'> extends AriaBaseButtonProps, ButtonProps, LinkButtonProps<T>, StyleProps { | ||
export interface SpectrumButtonProps<T extends ElementType = 'button'> extends AriaBaseButtonProps, Omit<ButtonProps, 'onClick'>, LinkButtonProps<T>, StyleProps { | ||
/** The [visual style](https://spectrum.adobe.com/page/button/#Options) of the button. */ | ||
@@ -102,3 +102,3 @@ variant: 'accent' | 'primary' | 'secondary' | 'negative' | LegacyButtonVariant, | ||
export interface SpectrumActionButtonProps extends AriaBaseButtonProps, ButtonProps, StyleProps { | ||
export interface SpectrumActionButtonProps extends AriaBaseButtonProps, Omit<ButtonProps, 'onClick'>, StyleProps { | ||
/** Whether the button should be displayed with a [quiet style](https://spectrum.adobe.com/page/action-button/#Quiet). */ | ||
@@ -110,3 +110,3 @@ isQuiet?: boolean, | ||
export interface SpectrumLogicButtonProps extends AriaBaseButtonProps, ButtonProps, StyleProps { | ||
export interface SpectrumLogicButtonProps extends AriaBaseButtonProps, Omit<ButtonProps, 'onClick'>, StyleProps { | ||
/** The type of boolean sequence to be represented by the LogicButton. */ | ||
@@ -116,5 +116,5 @@ variant: 'and' | 'or' | ||
export interface SpectrumToggleButtonProps extends ToggleButtonProps, Omit<SpectrumActionButtonProps, 'aria-current'> { | ||
export interface SpectrumToggleButtonProps extends Omit<ToggleButtonProps, 'onClick'>, Omit<SpectrumActionButtonProps, 'aria-current'> { | ||
/** Whether the button should be displayed with an [emphasized style](https://spectrum.adobe.com/page/action-button/#Emphasis). */ | ||
isEmphasized?: boolean | ||
} |
6451
1.07%+ Added
- Removed