Socket
Socket
Sign inDemoInstall

@react-types/button

Package Overview
Dependencies
Maintainers
1
Versions
733
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-types/button - npm Package Compare versions

Comparing version 3.1.0 to 3.2.0

6

package.json
{
"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
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc