@bento-core/table 1.0.1-ins.24 → 1.0.1-ins.25
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.
|
@@ -30,6 +30,7 @@ const CustomHeaderCell = _ref => {
|
|
|
30
30
|
dataField,
|
|
31
31
|
tooltipText,
|
|
32
32
|
tooltipDefinition,
|
|
33
|
+
tooltipLocation,
|
|
33
34
|
header,
|
|
34
35
|
headerType,
|
|
35
36
|
customColHeaderRender
|
|
@@ -69,7 +70,7 @@ const CustomHeaderCell = _ref => {
|
|
|
69
70
|
src: _help.default,
|
|
70
71
|
alt: "tooltipIcon"
|
|
71
72
|
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
72
|
-
className: "tooltip-text"
|
|
73
|
+
className: "tooltip-text ".concat(tooltipLocation === 'first' ? 'tooltip-text-first' : tooltipLocation === 'last' ? 'tooltip-text-last' : '')
|
|
73
74
|
}, tooltipDefinition)));
|
|
74
75
|
};
|
|
75
76
|
var _default = CustomHeaderCell;
|
|
@@ -13,9 +13,6 @@
|
|
|
13
13
|
margin-left: 8px;
|
|
14
14
|
transition: opacity 0.3s;
|
|
15
15
|
width: 300px;
|
|
16
|
-
gap: 0px;
|
|
17
|
-
border: 1px 0px 0px 0px;
|
|
18
|
-
opacity: 0px;
|
|
19
16
|
background: #FFFFFF;
|
|
20
17
|
border: 1px solid #9C0592;
|
|
21
18
|
}
|
|
@@ -36,4 +33,68 @@
|
|
|
36
33
|
.tooltip-icon:active .tooltip-text {
|
|
37
34
|
visibility: visible;
|
|
38
35
|
opacity: 1;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.tooltip-text-first {
|
|
39
|
+
visibility: hidden;
|
|
40
|
+
position: absolute;
|
|
41
|
+
padding: 12px;
|
|
42
|
+
z-index: 1;
|
|
43
|
+
bottom: 125%;
|
|
44
|
+
left: -150px;
|
|
45
|
+
margin-left: 83px;
|
|
46
|
+
transition: opacity 0.3s;
|
|
47
|
+
width: 300px;
|
|
48
|
+
background: #FFFFFF;
|
|
49
|
+
border: 1px solid #9C0592;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.tooltip-text-first::after {
|
|
53
|
+
content: '';
|
|
54
|
+
position: absolute;
|
|
55
|
+
top: 100%;
|
|
56
|
+
left: 50%;
|
|
57
|
+
margin-left: -80px;
|
|
58
|
+
border-width: 5px;
|
|
59
|
+
border-style: solid;
|
|
60
|
+
border-color: black transparent transparent transparent;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.tooltip-icon:hover .tooltip-text-first,
|
|
64
|
+
.tooltip-icon:focus .tooltip-text-first,
|
|
65
|
+
.tooltip-icon:active .tooltip-text-first {
|
|
66
|
+
visibility: visible;
|
|
67
|
+
opacity: 1;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.tooltip-text-last {
|
|
71
|
+
visibility: hidden;
|
|
72
|
+
position: absolute;
|
|
73
|
+
padding: 12px;
|
|
74
|
+
z-index: 1;
|
|
75
|
+
bottom: 125%;
|
|
76
|
+
left: -150px;
|
|
77
|
+
margin-left: -115px;
|
|
78
|
+
transition: opacity 0.3s;
|
|
79
|
+
width: 300px;
|
|
80
|
+
background: #FFFFFF;
|
|
81
|
+
border: 1px solid #9C0592;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.tooltip-text-last::after {
|
|
85
|
+
content: '';
|
|
86
|
+
position: absolute;
|
|
87
|
+
top: 100%;
|
|
88
|
+
left: 50%;
|
|
89
|
+
margin-left: 118px;
|
|
90
|
+
border-width: 5px;
|
|
91
|
+
border-style: solid;
|
|
92
|
+
border-color: black transparent transparent transparent;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.tooltip-icon:hover .tooltip-text-last,
|
|
96
|
+
.tooltip-icon:focus .tooltip-text-last,
|
|
97
|
+
.tooltip-icon:active .tooltip-text-last {
|
|
98
|
+
visibility: visible;
|
|
99
|
+
opacity: 1;
|
|
39
100
|
}
|
package/package.json
CHANGED
package/src/header/CustomCell.js
CHANGED
|
@@ -21,6 +21,7 @@ const CustomHeaderCell = ({
|
|
|
21
21
|
dataField,
|
|
22
22
|
tooltipText,
|
|
23
23
|
tooltipDefinition,
|
|
24
|
+
tooltipLocation,
|
|
24
25
|
header,
|
|
25
26
|
headerType,
|
|
26
27
|
customColHeaderRender,
|
|
@@ -67,7 +68,9 @@ const CustomHeaderCell = ({
|
|
|
67
68
|
&& (
|
|
68
69
|
<div className="tooltip-icon">
|
|
69
70
|
<img src={helpIcon} alt="tooltipIcon" />
|
|
70
|
-
<div
|
|
71
|
+
<div
|
|
72
|
+
className={`tooltip-text ${tooltipLocation === 'first' ? 'tooltip-text-first' : tooltipLocation === 'last' ? 'tooltip-text-last' : ''}`}
|
|
73
|
+
>
|
|
71
74
|
{tooltipDefinition}
|
|
72
75
|
</div>
|
|
73
76
|
</div>
|
|
@@ -13,9 +13,6 @@
|
|
|
13
13
|
margin-left: 8px;
|
|
14
14
|
transition: opacity 0.3s;
|
|
15
15
|
width: 300px;
|
|
16
|
-
gap: 0px;
|
|
17
|
-
border: 1px 0px 0px 0px;
|
|
18
|
-
opacity: 0px;
|
|
19
16
|
background: #FFFFFF;
|
|
20
17
|
border: 1px solid #9C0592;
|
|
21
18
|
}
|
|
@@ -36,4 +33,68 @@
|
|
|
36
33
|
.tooltip-icon:active .tooltip-text {
|
|
37
34
|
visibility: visible;
|
|
38
35
|
opacity: 1;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.tooltip-text-first {
|
|
39
|
+
visibility: hidden;
|
|
40
|
+
position: absolute;
|
|
41
|
+
padding: 12px;
|
|
42
|
+
z-index: 1;
|
|
43
|
+
bottom: 125%;
|
|
44
|
+
left: -150px;
|
|
45
|
+
margin-left: 83px;
|
|
46
|
+
transition: opacity 0.3s;
|
|
47
|
+
width: 300px;
|
|
48
|
+
background: #FFFFFF;
|
|
49
|
+
border: 1px solid #9C0592;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.tooltip-text-first::after {
|
|
53
|
+
content: '';
|
|
54
|
+
position: absolute;
|
|
55
|
+
top: 100%;
|
|
56
|
+
left: 50%;
|
|
57
|
+
margin-left: -80px;
|
|
58
|
+
border-width: 5px;
|
|
59
|
+
border-style: solid;
|
|
60
|
+
border-color: black transparent transparent transparent;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.tooltip-icon:hover .tooltip-text-first,
|
|
64
|
+
.tooltip-icon:focus .tooltip-text-first,
|
|
65
|
+
.tooltip-icon:active .tooltip-text-first {
|
|
66
|
+
visibility: visible;
|
|
67
|
+
opacity: 1;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.tooltip-text-last {
|
|
71
|
+
visibility: hidden;
|
|
72
|
+
position: absolute;
|
|
73
|
+
padding: 12px;
|
|
74
|
+
z-index: 1;
|
|
75
|
+
bottom: 125%;
|
|
76
|
+
left: -150px;
|
|
77
|
+
margin-left: -115px;
|
|
78
|
+
transition: opacity 0.3s;
|
|
79
|
+
width: 300px;
|
|
80
|
+
background: #FFFFFF;
|
|
81
|
+
border: 1px solid #9C0592;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.tooltip-text-last::after {
|
|
85
|
+
content: '';
|
|
86
|
+
position: absolute;
|
|
87
|
+
top: 100%;
|
|
88
|
+
left: 50%;
|
|
89
|
+
margin-left: 118px;
|
|
90
|
+
border-width: 5px;
|
|
91
|
+
border-style: solid;
|
|
92
|
+
border-color: black transparent transparent transparent;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.tooltip-icon:hover .tooltip-text-last,
|
|
96
|
+
.tooltip-icon:focus .tooltip-text-last,
|
|
97
|
+
.tooltip-icon:active .tooltip-text-last {
|
|
98
|
+
visibility: visible;
|
|
99
|
+
opacity: 1;
|
|
39
100
|
}
|