@react-types/button
Advanced tools
Comparing version 3.0.0-nightly-993de98ad-241210 to 3.0.0-nightly-9b3385ac6-250228
{ | ||
"name": "@react-types/button", | ||
"version": "3.0.0-nightly-993de98ad-241210", | ||
"version": "3.0.0-nightly-9b3385ac6-250228", | ||
"description": "Spectrum UI components in React", | ||
@@ -12,3 +12,3 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@react-types/shared": "^3.0.0-nightly-993de98ad-241210" | ||
"@react-types/shared": "3.0.0-nightly-9b3385ac6-250228" | ||
}, | ||
@@ -20,4 +20,3 @@ "peerDependencies": { | ||
"access": "public" | ||
}, | ||
"stableVersion": "3.10.1" | ||
} | ||
} |
@@ -58,2 +58,4 @@ /* | ||
'aria-pressed'?: boolean | 'true' | 'false' | 'mixed', | ||
/** Indicates whether this element represents the current item within a container or set of related elements. */ | ||
'aria-current'?: boolean | 'true' | 'false' | 'page' | 'step' | 'location' | 'date' | 'time', | ||
/** | ||
@@ -74,3 +76,3 @@ * The behavior of the button when used in an HTML form. | ||
export interface AriaButtonProps<T extends ElementType = 'button'> extends ButtonProps, LinkButtonProps<T>, AriaBaseButtonProps {} | ||
export interface AriaToggleButtonProps<T extends ElementType = 'button'> extends ToggleButtonProps, AriaBaseButtonProps, AriaButtonElementTypeProps<T> {} | ||
export interface AriaToggleButtonProps<T extends ElementType = 'button'> extends ToggleButtonProps, Omit<AriaBaseButtonProps, 'aria-current'>, AriaButtonElementTypeProps<T> {} | ||
export interface AriaToggleButtonGroupItemProps<E extends ElementType = 'button'> extends Omit<AriaToggleButtonProps<E>, 'id' | 'isSelected' | 'defaultSelected' | 'onChange'> { | ||
@@ -113,5 +115,5 @@ /** An identifier for the item in the `selectedKeys` of a ToggleButtonGroup. */ | ||
export interface SpectrumToggleButtonProps extends ToggleButtonProps, SpectrumActionButtonProps { | ||
export interface SpectrumToggleButtonProps extends ToggleButtonProps, Omit<SpectrumActionButtonProps, 'aria-current'> { | ||
/** Whether the button should be displayed with an [emphasized style](https://spectrum.adobe.com/page/action-button/#Emphasis). */ | ||
isEmphasized?: boolean | ||
} |
6383
105
+ Added@react-types/shared@3.0.0-nightly-9b3385ac6-250228(transitive)
- Removed@react-types/shared@3.27.0(transitive)