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 CHANGED
@@ -6,7 +6,6 @@
6
6
  [![npm download][download-image]][download-url]
7
7
  ![minified](https://badgen.net/bundlephobia/min/react-tooltip)
8
8
  ![minified gzip](https://badgen.net/bundlephobia/minzip/react-tooltip)
9
-
10
9
  <!-- ![last commit](https://badgen.net/github/last-commit/reacttooltip/react-tooltip) -->
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` `iife`
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 and the default to be imported are the not minified files.
128
+ PS: all the files have a minified version and a non-minified version.
131
129
 
132
130
  ![image](https://user-images.githubusercontent.com/9615850/205637814-c0ef01ae-bd77-4e7f-b4bf-df502c71e5c3.png)
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