@react-types/tooltip 3.3.1-nightly.3734 → 3.3.1-nightly.3741
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 +4 -4
- package/src/index.d.ts +7 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@react-types/tooltip",
|
3
|
-
"version": "3.3.1-nightly.
|
3
|
+
"version": "3.3.1-nightly.3741+fc5f846f2",
|
4
4
|
"description": "Spectrum UI components in React",
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"types": "src/index.d.ts",
|
@@ -9,8 +9,8 @@
|
|
9
9
|
"url": "https://github.com/adobe/react-spectrum"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
|
-
"@react-types/overlays": "3.7.1-nightly.
|
13
|
-
"@react-types/shared": "3.0.0-nightly.
|
12
|
+
"@react-types/overlays": "3.7.1-nightly.3741+fc5f846f2",
|
13
|
+
"@react-types/shared": "3.0.0-nightly.2041+fc5f846f2"
|
14
14
|
},
|
15
15
|
"peerDependencies": {
|
16
16
|
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
|
@@ -18,5 +18,5 @@
|
|
18
18
|
"publishConfig": {
|
19
19
|
"access": "public"
|
20
20
|
},
|
21
|
-
"gitHead": "
|
21
|
+
"gitHead": "fc5f846f2fd30bb2f7074211275d81be5b64c123"
|
22
22
|
}
|
package/src/index.d.ts
CHANGED
@@ -26,13 +26,19 @@ export interface TooltipTriggerProps extends OverlayTriggerProps {
|
|
26
26
|
*/
|
27
27
|
delay?: number,
|
28
28
|
|
29
|
+
/**
|
30
|
+
* The delay time for the tooltip to close. [See guidelines](https://spectrum.adobe.com/page/tooltip/#Warmup-and-cooldown).
|
31
|
+
* @default 500
|
32
|
+
*/
|
33
|
+
closeDelay?: number,
|
34
|
+
|
29
35
|
/**
|
30
36
|
* By default, opens for both focus and hover. Can be made to open only for focus.
|
31
37
|
*/
|
32
38
|
trigger?: 'focus'
|
33
39
|
}
|
34
40
|
|
35
|
-
export interface SpectrumTooltipTriggerProps extends TooltipTriggerProps, PositionProps {
|
41
|
+
export interface SpectrumTooltipTriggerProps extends Omit<TooltipTriggerProps, 'closeDelay'>, PositionProps {
|
36
42
|
children: [ReactElement, ReactElement],
|
37
43
|
|
38
44
|
/**
|