@react-types/button
Advanced tools
Comparing version 3.1.0 to 3.2.0
{ | ||
"name": "@react-types/button", | ||
"version": "3.1.0", | ||
"version": "3.2.0", | ||
"description": "Spectrum UI components in React", | ||
@@ -12,3 +12,3 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@react-types/shared": "^3.1.0" | ||
"@react-types/shared": "^3.2.0" | ||
}, | ||
@@ -21,3 +21,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "211099972fe75ee581892efd01a7f89dfb9cdf69" | ||
"gitHead": "661f0f2e3b8648a75aae83043267954700059fe0" | ||
} |
@@ -23,2 +23,11 @@ /* | ||
interface ToggleButtonProps extends ButtonProps { | ||
/** Whether the element should be selected (controlled). */ | ||
isSelected?: boolean, | ||
/** Whether the element should be selected (uncontrolled). */ | ||
defaultSelected?: boolean, | ||
/** Handler that is called when the element's selection state changes. */ | ||
onChange?: (isSelected: boolean) => void | ||
} | ||
export interface LinkButtonProps { | ||
@@ -33,3 +42,5 @@ /** | ||
/** The target window for the link. */ | ||
target?: string | ||
target?: string, | ||
/** The relationship between the linked resource and the current page. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel). */ | ||
rel?: string | ||
} | ||
@@ -54,2 +65,3 @@ | ||
export interface AriaButtonProps extends ButtonProps, LinkButtonProps, AriaBaseButtonProps {} | ||
export interface AriaToggleButtonProps extends ToggleButtonProps, AriaBaseButtonProps {} | ||
@@ -64,3 +76,3 @@ export interface SpectrumButtonProps extends AriaBaseButtonProps, ButtonProps, LinkButtonProps, StyleProps { | ||
export interface SpectrumActionButtonProps extends AriaBaseButtonProps, ButtonProps, StyleProps { | ||
/** Whether the ActionButton should be displayed with a [quiet style](https://spectrum.adobe.com/page/action-button/#Quiet). */ | ||
/** Whether the button should be displayed with a [quiet style](https://spectrum.adobe.com/page/action-button/#Quiet). */ | ||
isQuiet?: boolean | ||
@@ -73,1 +85,6 @@ } | ||
} | ||
export interface SpectrumToggleButtonProps extends ToggleButtonProps, SpectrumActionButtonProps { | ||
/** Whether the button should be displayed with an [emphasized style](https://spectrum.adobe.com/page/action-button/#Emphasis). */ | ||
isEmphasized?: boolean | ||
} |
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
15874
75
Updated@react-types/shared@^3.2.0