@react-types/provider 3.3.3-nightly.3070 → 3.3.3-nightly.3085
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.
- package/package.json +3 -3
- package/src/index.d.ts +15 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-types/provider",
|
|
3
|
-
"version": "3.3.3-nightly.
|
|
3
|
+
"version": "3.3.3-nightly.3085+dfe72ee07",
|
|
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.
|
|
12
|
+
"@react-types/shared": "3.0.0-nightly.1394+dfe72ee07"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
15
|
"react": "^16.8.0 || ^17.0.0-rc.1"
|
|
@@ -17,5 +17,5 @@
|
|
|
17
17
|
"publishConfig": {
|
|
18
18
|
"access": "public"
|
|
19
19
|
},
|
|
20
|
-
"gitHead": "
|
|
20
|
+
"gitHead": "dfe72ee076f7ca27728d0b6b4c1ef86e11191ece"
|
|
21
21
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -92,9 +92,24 @@ export interface ProviderProps extends ContextProps, DOMProps, StyleProps {
|
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
export interface ProviderContext extends ContextProps {
|
|
95
|
+
/**
|
|
96
|
+
* The package version number of the nearest parent Provider.
|
|
97
|
+
*/
|
|
95
98
|
version: string,
|
|
99
|
+
/**
|
|
100
|
+
* The theme of the nearest parent Provider.
|
|
101
|
+
*/
|
|
96
102
|
theme: Theme,
|
|
103
|
+
/**
|
|
104
|
+
* The color scheme of the nearest parent Provider.
|
|
105
|
+
*/
|
|
97
106
|
colorScheme: ColorScheme,
|
|
107
|
+
/**
|
|
108
|
+
* The scale of the nearest parent Provider.
|
|
109
|
+
*/
|
|
98
110
|
scale: Scale,
|
|
111
|
+
/**
|
|
112
|
+
* The breakpoints of the nearest parent Provider used for styleProps.
|
|
113
|
+
*/
|
|
99
114
|
breakpoints: Breakpoints
|
|
100
115
|
}
|