@react-types/progress 3.4.3 → 3.5.1

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 +13 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-types/progress",
3
- "version": "3.4.3",
3
+ "version": "3.5.1",
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.20.0"
12
+ "@react-types/shared": "^3.22.0"
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": "54fbaa67cc56867506811819fef765546d403253"
20
+ "gitHead": "9ce2f674eab2cc8912800d3162dcf00a1ce94274"
21
21
  }
package/src/index.d.ts CHANGED
@@ -68,7 +68,13 @@ export interface SpectrumProgressCircleProps extends AriaProgressCircleProps, St
68
68
  * @default 'M'
69
69
  */
70
70
  size?: 'S' | 'M' | 'L',
71
- /** The [visual style](https://spectrum.adobe.com/page/progress-circle/#Over-background-variant) of the ProgressCircle. */
71
+ /** The static color style to apply. Useful when the button appears over a color background. */
72
+ staticColor?: 'white' | 'black',
73
+ /**
74
+ * The [visual style](https://spectrum.adobe.com/page/progress-circle/#Over-background-variant) of the ProgressCircle.
75
+ *
76
+ * @deprecated - use staticColor instead.
77
+ */
72
78
  variant?: 'overBackground'
73
79
  }
74
80
 
@@ -88,6 +94,11 @@ export interface SpectrumProgressBarBaseProps extends AriaProgressBarBaseProps,
88
94
  }
89
95
 
90
96
  export interface SpectrumProgressBarProps extends SpectrumProgressBarBaseProps, ProgressBarProps {
91
- /** The [visual style](https://spectrum.adobe.com/page/progress-bar/#Over-background-variant) of the ProgressBar. */
97
+ /** The static color style to apply. Useful when the button appears over a color background. */
98
+ staticColor?: 'white' | 'black',
99
+ /**
100
+ * The [visual style](https://spectrum.adobe.com/page/progress-bar/#Over-background-variant) of the ProgressBar.
101
+ * @deprecated - use staticColor instead.
102
+ */
92
103
  variant?: 'overBackground'
93
104
  }