@react-types/tooltip 3.0.0-nightly-796738501-260310 → 3.0.0-nightly-6a0d13c57-260322

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 +7 -4
  2. package/src/index.d.ts +3 -76
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-types/tooltip",
3
- "version": "3.0.0-nightly-796738501-260310",
3
+ "version": "3.0.0-nightly-6a0d13c57-260322",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "types": "src/index.d.ts",
@@ -9,11 +9,14 @@
9
9
  "url": "https://github.com/adobe/react-spectrum"
10
10
  },
11
11
  "dependencies": {
12
- "@react-types/overlays": "3.0.0-nightly-796738501-260310",
13
- "@react-types/shared": "3.0.0-nightly-796738501-260310"
12
+ "@react-aria/tooltip": "3.0.0-nightly-6a0d13c57-260322",
13
+ "@react-spectrum/tooltip": "3.0.0-nightly-6a0d13c57-260322",
14
+ "@react-stately/tooltip": "3.0.0-nightly-6a0d13c57-260322"
14
15
  },
15
16
  "peerDependencies": {
16
- "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
17
+ "@react-spectrum/provider": "3.0.0-nightly-6a0d13c57-260322",
18
+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
19
+ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
17
20
  },
18
21
  "publishConfig": {
19
22
  "access": "public"
package/src/index.d.ts CHANGED
@@ -10,79 +10,6 @@
10
10
  * governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import {AriaLabelingProps, DOMProps, StyleProps} from '@react-types/shared';
14
- import {OverlayTriggerProps, Placement, PositionProps} from '@react-types/overlays';
15
- import {ReactElement, ReactNode} from 'react';
16
-
17
- export interface TooltipTriggerProps extends OverlayTriggerProps {
18
- /**
19
- * Whether the tooltip should be disabled, independent from the trigger.
20
- */
21
- isDisabled?: boolean,
22
-
23
- /**
24
- * The delay time for the tooltip to show up. [See guidelines](https://spectrum.adobe.com/page/tooltip/#Immediate-or-delayed-appearance).
25
- * @default 1500
26
- */
27
- delay?: number,
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
-
35
- /**
36
- * By default, opens for both focus and hover. Can be made to open only for focus.
37
- * @default 'hover'
38
- */
39
- trigger?: 'hover' | 'focus',
40
-
41
- /**
42
- * Whether the tooltip should close when the trigger is pressed.
43
- * @default true
44
- */
45
- shouldCloseOnPress?: boolean
46
- }
47
-
48
- export interface SpectrumTooltipTriggerProps extends Omit<TooltipTriggerProps, 'closeDelay'>, PositionProps {
49
- children: [ReactElement, ReactElement],
50
-
51
- /**
52
- * The additional offset applied along the main axis between the element and its
53
- * anchor element.
54
- * @default 7
55
- */
56
- offset?: number,
57
- /**
58
- * The placement of the tooltip with respect to the trigger.
59
- * @default 'top'
60
- */
61
- placement?: Placement
62
- }
63
-
64
- export interface TooltipProps {
65
- isOpen?: boolean
66
- }
67
-
68
- export interface AriaTooltipProps extends TooltipProps, DOMProps, AriaLabelingProps {}
69
-
70
- export interface SpectrumTooltipProps extends AriaTooltipProps, StyleProps {
71
- /**
72
- * The [visual style](https://spectrum.adobe.com/page/tooltip/#Semantic-variants) of the Tooltip.
73
- */
74
- variant?: 'neutral' | 'positive' | 'negative' | 'info',
75
-
76
- /**
77
- * The placement of the element with respect to its anchor element.
78
- * @default 'top'
79
- */
80
- placement?: 'start' | 'end' | 'right' | 'left' | 'top' | 'bottom',
81
-
82
- /**
83
- * Whether the element is rendered.
84
- */
85
- showIcon?: boolean,
86
-
87
- children: ReactNode
88
- }
13
+ export {TooltipTriggerProps} from '@react-stately/tooltip';
14
+ export {TooltipProps, AriaTooltipProps} from '@react-aria/tooltip';
15
+ export {SpectrumTooltipTriggerProps, SpectrumTooltipProps} from '@react-spectrum/tooltip';