File tree Expand file tree Collapse file tree 4 files changed +33
-2
lines changed Expand file tree Collapse file tree 4 files changed +33
-2
lines changed Original file line number Diff line number Diff line change @@ -56,3 +56,4 @@ function CustomTooltip({
56
56
}
57
57
58
58
export default CustomTooltip ;
59
+ export type { CustomTooltipProps } ;
Original file line number Diff line number Diff line change 1
1
import CustomTooltip from './customTooltip' ;
2
+ import InfoTooltip from './infoTooltip' ;
2
3
3
- export { CustomTooltip } ;
4
+ export { CustomTooltip , InfoTooltip } ;
Original file line number Diff line number Diff line change
1
+ import { iconSmall } from '../../constants/iconsSizes' ;
2
+ import InfoOutlinedIcon from '../../icons/InfoOutlined/InfoOutlined' ;
3
+ import CustomTooltip , { CustomTooltipProps } from './customTooltip' ;
4
+
5
+ type InfoTooltipProps = {
6
+ helpText : string | React . ReactNode | JSX . Element ;
7
+ style ?: React . CSSProperties ;
8
+ } & Omit < CustomTooltipProps , 'title' | 'children' > ;
9
+
10
+ const InfoTooltip = ( { helpText, style = { } , ...props } : InfoTooltipProps ) => {
11
+ return (
12
+ < CustomTooltip title = { helpText } { ...props } >
13
+ < div
14
+ style = { {
15
+ display : 'flex' ,
16
+ flexDirection : 'row' ,
17
+ alignItems : 'center' ,
18
+ justifyContent : 'center' ,
19
+ ...style
20
+ } }
21
+ >
22
+ < InfoOutlinedIcon { ...iconSmall } />
23
+ </ div >
24
+ </ CustomTooltip >
25
+ ) ;
26
+ } ;
27
+
28
+ export default InfoTooltip ;
Original file line number Diff line number Diff line change 8
8
CustomColumnVisibilityControl ,
9
9
CustomColumnVisibilityControlProps
10
10
} from './CustomColumnVisibilityControl/CustomColumnVisibilityControl' ;
11
- import { CustomTooltip } from './CustomTooltip' ;
11
+ import { CustomTooltip , InfoTooltip } from './CustomTooltip' ;
12
12
import {
13
13
CustomDialog ,
14
14
StyledDialogActions ,
@@ -60,6 +60,7 @@ export {
60
60
Fallback ,
61
61
FeedbackButton ,
62
62
FlipCard ,
63
+ InfoTooltip ,
63
64
LearningCard ,
64
65
ModalCard ,
65
66
PopperListener ,
You can’t perform that action at this time.
0 commit comments