react-tooltip 4.0.1 → 4.2.0
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/CHANGELOG.md +0 -0
- package/LICENSE +0 -0
- package/README.md +8 -1
- package/dist/index.es.js +686 -252
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +686 -252
- package/dist/index.js.map +1 -1
- package/package.json +32 -30
package/CHANGELOG.md
CHANGED
|
File without changes
|
package/LICENSE
CHANGED
|
File without changes
|
package/README.md
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
[](https://github.com/feross/standard)
|
|
4
4
|
[![npm download][download-image]][download-url]
|
|
5
5
|
[](https://travis-ci.org/wwayne/react-tooltip)
|
|
6
|
+
[](https://github.com/semantic-release/semantic-release)
|
|
6
7
|
|
|
7
8
|
[download-image]: https://img.shields.io/npm/dm/react-tooltip.svg?style=flat-square
|
|
8
9
|
[download-url]: https://npmjs.org/package/react-tooltip
|
|
@@ -11,6 +12,8 @@
|
|
|
11
12
|
|
|
12
13
|
[](https://codesandbox.io/s/heuristic-curran-bddeu?fontsize=14&hidenavigation=1&theme=dark)
|
|
13
14
|
|
|
15
|
+
Or see it on [Github Page](https://wwayne.github.io/react-tooltip/).
|
|
16
|
+
|
|
14
17
|
## Maintainers
|
|
15
18
|
|
|
16
19
|
[aronhelser](https://github.com/aronhelser) Passive maintainer - accepting PRs and doing minor testing, but not fixing issues or doing active development.
|
|
@@ -69,7 +72,7 @@ Check example: [React-tooltip Test](https://react-tooltip.netlify.com/)
|
|
|
69
72
|
Global|Specific |Type |Values | Description
|
|
70
73
|
|:---|:---|:---|:---|:----
|
|
71
74
|
place | data-place | String | top, right, bottom, left | placement
|
|
72
|
-
type | data-type | String | success, warning, error, info, light | theme
|
|
75
|
+
type | data-type | String | dark, success, warning, error, info, light | theme
|
|
73
76
|
effect| data-effect | String | float, solid | behaviour of tooltip
|
|
74
77
|
event | data-event | String | e.g. click | custom event to trigger tooltip
|
|
75
78
|
eventOff | data-event-off | String | e.g. click | custom event to hide tooltip (only makes effect after setting event attribute)
|
|
@@ -84,6 +87,10 @@ className | data-class | String | | extra custom class, can use !importan
|
|
|
84
87
|
delayUpdate | data-delay-update | Number | | `<p data-tip="tooltip" data-delay-update='1000'></p>` or `<ReactTooltip delayUpdate={1000} />` Sets a delay in calling getContent if the tooltip is already shown and you mouse over another target
|
|
85
88
|
insecure | null | Bool | true, false | Whether to inject the style header into the page dynamically (violates CSP style-src but is a convenient default)
|
|
86
89
|
border | data-border | Bool | true, false | Add one pixel white border
|
|
90
|
+
textColor | data-text-color | String | e.g. red | Popup text color
|
|
91
|
+
backgroundColor | data-background-color | String | e.g. yellow | Popup background color
|
|
92
|
+
borderColor | data-border-color | String | e.g. green | Popup border color - enabled by the `border` value
|
|
93
|
+
arrowColor | data-arrow-color | String | e.g. #fff | Popup arrow color - if not specified, will use the `backgroundColor` value
|
|
87
94
|
getContent | null | Func or Array | (dataTip) => {}, [(dataTip) => {}, Interval] | Generate the tip content dynamically
|
|
88
95
|
afterShow | null | Func | (evt) => {} | Function that will be called after tooltip show, with event that triggered show
|
|
89
96
|
afterHide | null | Func | (evt) => {} | Function that will be called after tooltip hide, with event that triggered hide
|