react-tooltip 5.10.1-beta-8 → 5.10.1-beta-10
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/README.md +5 -6
- package/dist/react-tooltip.cjs +785 -1340
- package/dist/react-tooltip.css +32 -23
- package/dist/react-tooltip.min.cjs +1 -11
- package/dist/react-tooltip.min.css +1 -0
- package/dist/react-tooltip.min.mjs +1 -11
- package/dist/react-tooltip.mjs +777 -1338
- package/dist/react-tooltip.umd.js +839 -0
- package/dist/react-tooltip.umd.min.js +1 -0
- package/esbuild.config.prod.mjs +13 -6
- package/package.json +18 -18
- package/tsconfig.json +3 -2
- package/dist/react-tooltip.cjs.map +0 -7
- package/dist/react-tooltip.css.map +0 -7
- package/dist/react-tooltip.iife.js +0 -1388
- package/dist/react-tooltip.iife.js.map +0 -7
- package/dist/react-tooltip.min.cjs.map +0 -7
- package/dist/react-tooltip.min.iife.js +0 -11
- package/dist/react-tooltip.min.iife.js.map +0 -7
- package/dist/react-tooltip.min.mjs.map +0 -7
- package/dist/react-tooltip.mjs.map +0 -7
package/README.md
CHANGED
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
[![npm download][download-image]][download-url]
|
|
7
7
|

|
|
8
8
|

|
|
9
|
-
|
|
10
9
|
<!--  -->
|
|
11
10
|
|
|
12
11
|
[download-image]: https://img.shields.io/npm/dm/react-tooltip.svg?style=flat-square
|
|
@@ -18,7 +17,7 @@
|
|
|
18
17
|
</a>
|
|
19
18
|
</p>
|
|
20
19
|
|
|
21
|
-
If you like the project, please give the project a GitHub 🌟
|
|
20
|
+
If you like the project, please give the project a GitHub 🌟
|
|
22
21
|
|
|
23
22
|
## Demo
|
|
24
23
|
|
|
@@ -57,7 +56,6 @@ yarn add react-tooltip
|
|
|
57
56
|
## Usage
|
|
58
57
|
|
|
59
58
|
> :warning: If you were already using `react-tooltip<=5.7.5`, you'll be getting some deprecation warnings regarding the `anchorId` prop and some other features.
|
|
60
|
-
|
|
61
59
|
In versions >=5.8.0, we've introduced the `data-tooltip-id` attribute, and the `anchorSelect` prop, which are our recommended methods of using the tooltip moving forward. Check [the docs](https://react-tooltip.com/docs/getting-started) for more details.
|
|
62
60
|
|
|
63
61
|
### Using NPM package
|
|
@@ -123,11 +121,11 @@ Check [the V5 docs](https://react-tooltip.com/docs/getting-started) for more com
|
|
|
123
121
|
|
|
124
122
|
You can import `node_modules/react-tooltip/dist/react-tooltip.[mode].js` into your page. Please make sure that you have already imported `react` and `react-dom` into your page.
|
|
125
123
|
|
|
126
|
-
mode: `esm` `cjs` `
|
|
124
|
+
mode: `esm` `cjs` `umd`
|
|
127
125
|
|
|
128
126
|
Don't forget to import the CSS file from `node_modules/react-tooltip/dist/react-tooltip.css` to set default styling. This needs to be done only once in your application.
|
|
129
127
|
|
|
130
|
-
PS: all the files have a minified version and a non-minified version
|
|
128
|
+
PS: all the files have a minified version and a non-minified version.
|
|
131
129
|
|
|
132
130
|

|
|
133
131
|
|
|
@@ -147,7 +145,7 @@ You can use [`renderToStaticMarkup()` function](https://reactjs.org/docs/react-d
|
|
|
147
145
|
```jsx
|
|
148
146
|
import ReactDOMServer from 'react-dom/server';
|
|
149
147
|
[...]
|
|
150
|
-
<a
|
|
148
|
+
<a
|
|
151
149
|
data-tooltip-id="my-tooltip"
|
|
152
150
|
data-tooltip-html={ReactDOMServer.renderToStaticMarkup(<div>I am <b>JSX</b> content</div>)}
|
|
153
151
|
>
|
|
@@ -177,6 +175,7 @@ import ReactDOMServer from 'react-dom/server';
|
|
|
177
175
|
|
|
178
176
|
[wwayne](https://github.com/wwayne) (inactive) - Creator of the original React Tooltip (V1.x ~ V4.x.)
|
|
179
177
|
|
|
178
|
+
|
|
180
179
|
We would gladly accept a new maintainer to help out!
|
|
181
180
|
|
|
182
181
|
## Contributing
|