File tree 2 files changed +5
-7
lines changed
2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " rc-tooltip" ,
3
- "version" : " 6.4. 0" ,
2
+ "name" : " @ rc-component/ tooltip" ,
3
+ "version" : " 1.0.0- 0" ,
4
4
"description" : " React Tooltip" ,
5
5
"keywords" : [
6
6
" react" ,
45
45
"@rc-component/father-plugin" : " ^2.0.1" ,
46
46
"@rc-component/trigger" : " ^2.0.0" ,
47
47
"@rc-component/util" : " ^1.0.1" ,
48
- "classnames" : " ^2.3.1" ,
49
- "rc-util" : " ^5.44.3"
48
+ "classnames" : " ^2.3.1"
50
49
},
51
50
"devDependencies" : {
52
- "@rc-component/father-plugin" : " ^1.0.0" ,
53
51
"@testing-library/react" : " ^14.0.0" ,
54
52
"@types/jest" : " ^29.4.0" ,
55
53
"@types/react" : " ^18.0.26" ,
Original file line number Diff line number Diff line change 1
1
import type { ArrowType , TriggerProps , TriggerRef } from '@rc-component/trigger' ;
2
2
import Trigger from '@rc-component/trigger' ;
3
3
import type { ActionType , AlignType } from '@rc-component/trigger/lib/interface' ;
4
+ import useId from '@rc-component/util/lib/hooks/useId' ;
4
5
import classNames from 'classnames' ;
5
6
import * as React from 'react' ;
6
7
import { forwardRef , useImperativeHandle , useRef } from 'react' ;
7
8
import { placements } from './placements' ;
8
9
import Popup from './Popup' ;
9
- import useId from 'rc-util/lib/hooks/useId' ;
10
10
11
11
export interface TooltipProps
12
12
extends Pick <
@@ -57,7 +57,7 @@ export interface TooltipClassNames {
57
57
body ?: string ;
58
58
}
59
59
60
- export interface TooltipRef extends TriggerRef { }
60
+ export interface TooltipRef extends TriggerRef { }
61
61
62
62
const Tooltip = ( props : TooltipProps , ref : React . Ref < TooltipRef > ) => {
63
63
const {
You can’t perform that action at this time.
0 commit comments