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 CHANGED
File without changes
package/LICENSE CHANGED
File without changes
package/README.md CHANGED
@@ -3,6 +3,7 @@
3
3
  [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)
4
4
  [![npm download][download-image]][download-url]
5
5
  [![Build Status](https://travis-ci.org/wwayne/react-tooltip.svg?branch=master)](https://travis-ci.org/wwayne/react-tooltip)
6
+ [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](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
  [![Edit ReactTooltip](https://codesandbox.io/static/img/play-codesandbox.svg)](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