@react-types/button 3.11.0 → 3.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/index.d.ts +4 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-types/button",
3
- "version": "3.11.0",
3
+ "version": "3.12.0",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "types": "src/index.d.ts",
@@ -9,7 +9,7 @@
9
9
  "url": "https://github.com/adobe/react-spectrum"
10
10
  },
11
11
  "dependencies": {
12
- "@react-types/shared": "^3.28.0"
12
+ "@react-types/shared": "^3.29.0"
13
13
  },
14
14
  "peerDependencies": {
15
15
  "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
@@ -17,5 +17,5 @@
17
17
  "publishConfig": {
18
18
  "access": "public"
19
19
  },
20
- "gitHead": "4d3c72c94eea2d72eb3a0e7d56000c6ef7e39726"
20
+ "gitHead": "9b66d270572f482948afee95622a85cdf68ed408"
21
21
  }
package/src/index.d.ts CHANGED
@@ -80,7 +80,7 @@ export interface AriaToggleButtonGroupItemProps<E extends ElementType = 'button'
80
80
 
81
81
  /** @deprecated */
82
82
  type LegacyButtonVariant = 'cta' | 'overBackground';
83
- export interface SpectrumButtonProps<T extends ElementType = 'button'> extends AriaBaseButtonProps, ButtonProps, LinkButtonProps<T>, StyleProps {
83
+ export interface SpectrumButtonProps<T extends ElementType = 'button'> extends AriaBaseButtonProps, Omit<ButtonProps, 'onClick'>, LinkButtonProps<T>, StyleProps {
84
84
  /** The [visual style](https://spectrum.adobe.com/page/button/#Options) of the button. */
85
85
  variant: 'accent' | 'primary' | 'secondary' | 'negative' | LegacyButtonVariant,
86
86
  /** The background style of the button. */
@@ -98,19 +98,19 @@ export interface SpectrumButtonProps<T extends ElementType = 'button'> extends A
98
98
  isQuiet?: boolean
99
99
  }
100
100
 
101
- export interface SpectrumActionButtonProps extends AriaBaseButtonProps, ButtonProps, StyleProps {
101
+ export interface SpectrumActionButtonProps extends AriaBaseButtonProps, Omit<ButtonProps, 'onClick'>, StyleProps {
102
102
  /** Whether the button should be displayed with a [quiet style](https://spectrum.adobe.com/page/action-button/#Quiet). */
103
103
  isQuiet?: boolean,
104
104
  /** The static color style to apply. Useful when the button appears over a color background. */
105
105
  staticColor?: 'white' | 'black'
106
106
  }
107
107
 
108
- export interface SpectrumLogicButtonProps extends AriaBaseButtonProps, ButtonProps, StyleProps {
108
+ export interface SpectrumLogicButtonProps extends AriaBaseButtonProps, Omit<ButtonProps, 'onClick'>, StyleProps {
109
109
  /** The type of boolean sequence to be represented by the LogicButton. */
110
110
  variant: 'and' | 'or'
111
111
  }
112
112
 
113
- export interface SpectrumToggleButtonProps extends ToggleButtonProps, Omit<SpectrumActionButtonProps, 'aria-current'> {
113
+ export interface SpectrumToggleButtonProps extends Omit<ToggleButtonProps, 'onClick'>, Omit<SpectrumActionButtonProps, 'aria-current'> {
114
114
  /** Whether the button should be displayed with an [emphasized style](https://spectrum.adobe.com/page/action-button/#Emphasis). */
115
115
  isEmphasized?: boolean
116
116
  }