@react-types/button 3.6.3-nightly.3539 → 3.6.3-nightly.3552

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 +11 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-types/button",
3
- "version": "3.6.3-nightly.3539+86367a392",
3
+ "version": "3.6.3-nightly.3552+286dbcdab",
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.0.0-nightly.1839+86367a392"
12
+ "@react-types/shared": "3.0.0-nightly.1852+286dbcdab"
13
13
  },
14
14
  "peerDependencies": {
15
15
  "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
@@ -17,5 +17,5 @@
17
17
  "publishConfig": {
18
18
  "access": "public"
19
19
  },
20
- "gitHead": "86367a392284544e160eb489cd9019eac73a6738"
20
+ "gitHead": "286dbcdabf60102d05a95ef00bc3fed06af91d98"
21
21
  }
package/src/index.d.ts CHANGED
@@ -65,10 +65,19 @@ interface AriaBaseButtonProps extends FocusableDOMProps, AriaLabelingProps {
65
65
  export interface AriaButtonProps<T extends ElementType = 'button'> extends ButtonProps, LinkButtonProps<T>, AriaBaseButtonProps {}
66
66
  export interface AriaToggleButtonProps<T extends ElementType = 'button'> extends ToggleButtonProps, AriaBaseButtonProps, AriaButtonElementTypeProps<T> {}
67
67
 
68
+ /** @deprecated */
69
+ type LegacyButtonVariant = 'cta' | 'overBackground';
68
70
  export interface SpectrumButtonProps<T extends ElementType = 'button'> extends AriaBaseButtonProps, ButtonProps, LinkButtonProps<T>, StyleProps {
69
71
  /** The [visual style](https://spectrum.adobe.com/page/button/#Options) of the button. */
70
- variant: 'cta' | 'overBackground' | 'primary' | 'secondary' | 'negative',
71
- /** Whether the button should be displayed with a quiet style. */
72
+ variant: 'accent' | 'primary' | 'secondary' | 'negative' | LegacyButtonVariant,
73
+ /** The background style of the button. */
74
+ style?: 'fill' | 'outline',
75
+ /** The static color style to apply. Useful when the button appears over a color background. */
76
+ staticColor?: 'white' | 'black',
77
+ /**
78
+ * Whether the button should be displayed with a quiet style.
79
+ * @deprecated
80
+ */
72
81
  isQuiet?: boolean
73
82
  }
74
83