react-tooltip 5.0.0-beta.0 → 5.0.0-beta.2

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.
Files changed (109) hide show
  1. package/.eslintrc.json +2 -1
  2. package/CODE_OF_CONDUCT.md +53 -0
  3. package/LICENSE +1 -2
  4. package/README.md +30 -152
  5. package/coverage/clover.xml +610 -0
  6. package/coverage/coverage-final.json +11 -0
  7. package/coverage/lcov-report/base.css +224 -0
  8. package/coverage/lcov-report/block-navigation.js +87 -0
  9. package/coverage/lcov-report/components/Tooltip/Tooltip.tsx.html +646 -0
  10. package/coverage/lcov-report/components/Tooltip/index.html +146 -0
  11. package/coverage/lcov-report/components/Tooltip/index.ts.html +88 -0
  12. package/coverage/lcov-report/components/Tooltip/styles.module.css.html +277 -0
  13. package/coverage/lcov-report/components/TooltipContent/TooltipContent.tsx.html +109 -0
  14. package/coverage/lcov-report/components/TooltipContent/index.html +131 -0
  15. package/coverage/lcov-report/components/TooltipContent/index.ts.html +88 -0
  16. package/coverage/lcov-report/components/TooltipController/TooltipController.tsx.html +664 -0
  17. package/coverage/lcov-report/components/TooltipController/constants.ts.html +118 -0
  18. package/coverage/lcov-report/components/TooltipController/index.html +146 -0
  19. package/coverage/lcov-report/components/TooltipController/index.ts.html +88 -0
  20. package/coverage/lcov-report/favicon.png +0 -0
  21. package/coverage/lcov-report/index.html +161 -0
  22. package/coverage/lcov-report/prettify.css +1 -0
  23. package/coverage/lcov-report/prettify.js +2 -0
  24. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  25. package/coverage/lcov-report/sorter.js +196 -0
  26. package/coverage/lcov-report/sum.js.html +97 -0
  27. package/coverage/lcov-report/sum.ts.html +100 -0
  28. package/coverage/lcov-report/test/index.html +116 -0
  29. package/coverage/lcov-report/test/sum.ts.html +100 -0
  30. package/coverage/lcov-report/utils/compute-positions.ts.html +277 -0
  31. package/coverage/lcov-report/utils/debounce.ts.html +181 -0
  32. package/coverage/lcov-report/utils/index.html +131 -0
  33. package/coverage/lcov.info +729 -0
  34. package/dist/react-tooltip-tokens.css +8 -0
  35. package/dist/react-tooltip.cjs.js +3 -6
  36. package/dist/react-tooltip.cjs.min.js +1 -1
  37. package/dist/react-tooltip.d.ts +25 -0
  38. package/dist/react-tooltip.esm.js +3 -6
  39. package/dist/react-tooltip.esm.min.js +1 -1
  40. package/dist/react-tooltip.umd.js +3 -6
  41. package/dist/react-tooltip.umd.min.js +1 -1
  42. package/jest.config.ts +214 -0
  43. package/package.json +14 -6
  44. package/rollup.config.types.js +13 -3
  45. package/tsconfig.json +2 -2
  46. package/.github/FUNDING.yml +0 -13
  47. package/.github/workflows/lint.yaml +0 -35
  48. package/.github/workflows/pull-request.yaml +0 -11
  49. package/.github/workflows/release.yaml +0 -30
  50. package/.husky/pre-commit +0 -6
  51. package/.vscode/settings.json +0 -27
  52. package/build/dist/react-tooltip.cjs.js +0 -2909
  53. package/build/dist/react-tooltip.cjs.min.js +0 -6
  54. package/build/dist/react-tooltip.css +0 -73
  55. package/build/dist/react-tooltip.esm.js +0 -2901
  56. package/build/dist/react-tooltip.esm.min.js +0 -6
  57. package/build/dist/react-tooltip.min.css +0 -1
  58. package/build/dist/react-tooltip.umd.js +0 -2913
  59. package/build/dist/react-tooltip.umd.min.js +0 -6
  60. package/build/index.css +0 -79
  61. package/build/index.html +0 -19
  62. package/build/index.js +0 -36190
  63. package/docs/README.md +0 -50
  64. package/docs/babel.config.js +0 -3
  65. package/docs/docs/examples/_category_.json +0 -7
  66. package/docs/docs/examples/basic-examples.mdx +0 -68
  67. package/docs/docs/examples/children.mdx +0 -67
  68. package/docs/docs/examples/content.mdx +0 -80
  69. package/docs/docs/examples/delay.mdx +0 -84
  70. package/docs/docs/examples/events.mdx +0 -85
  71. package/docs/docs/examples/get-content.mdx +0 -58
  72. package/docs/docs/examples/html.mdx +0 -75
  73. package/docs/docs/examples/multiline.mdx +0 -91
  74. package/docs/docs/examples/offset.mdx +0 -69
  75. package/docs/docs/examples/place.mdx +0 -55
  76. package/docs/docs/examples/state.mdx +0 -331
  77. package/docs/docs/examples/styling.mdx +0 -388
  78. package/docs/docs/examples/variant.mdx +0 -100
  79. package/docs/docs/getting-started.md +0 -70
  80. package/docs/docs/options.mdx +0 -105
  81. package/docs/docs/upgrade-guide/_category_.json +0 -7
  82. package/docs/docs/upgrade-guide/basic-examples-v4-v5.mdx +0 -119
  83. package/docs/docs/upgrade-guide/changelog-v4-v5.md +0 -85
  84. package/docs/docusaurus.config.js +0 -126
  85. package/docs/package.json +0 -47
  86. package/docs/sidebars.js +0 -33
  87. package/docs/src/components/HomepageFeatures/index.tsx +0 -70
  88. package/docs/src/components/HomepageFeatures/styles.module.css +0 -11
  89. package/docs/src/css/custom.css +0 -74
  90. package/docs/src/pages/index.module.css +0 -35
  91. package/docs/src/pages/index.tsx +0 -42
  92. package/docs/src/pages/markdown-page.md +0 -7
  93. package/docs/static/.nojekyll +0 -0
  94. package/docs/static/img/docusaurus.png +0 -0
  95. package/docs/static/img/favicon.ico +0 -0
  96. package/docs/static/img/logo.svg +0 -1
  97. package/docs/static/img/undraw_docusaurus_mountain.svg +0 -171
  98. package/docs/static/img/undraw_docusaurus_react.svg +0 -170
  99. package/docs/static/img/undraw_docusaurus_tree.svg +0 -40
  100. package/docs/tsconfig.json +0 -7
  101. package/docs/yarn.lock +0 -7579
  102. package/example-v5/package.json +0 -21
  103. package/example-v5/public/index.html +0 -20
  104. package/example-v5/public/manifest.json +0 -8
  105. package/example-v5/src/App.jsx +0 -908
  106. package/example-v5/src/index.css +0 -238
  107. package/example-v5/src/index.js +0 -15
  108. package/example-v5/src/index.scss +0 -251
  109. package/public/index.html +0 -19
@@ -1,21 +0,0 @@
1
- {
2
- "name": "react-tooltip-example",
3
- "homepage": "https://reacttooltip.github.io/react-tooltip/",
4
- "version": "1.0.0",
5
- "license": "MIT",
6
- "dependencies": {
7
- "gh-pages": "^2.1.1",
8
- "react": "link:../node_modules/react",
9
- "react-dom": "link:../node_modules/react-dom",
10
- "react-scripts": "5.0.1",
11
- "react-tooltip": "link:.."
12
- },
13
- "scripts": {
14
- "start": "DISABLE_ESLINT_PLUGIN=true react-scripts start",
15
- "build": "DISABLE_ESLINT_PLUGIN=true react-scripts build",
16
- "test": "DISABLE_ESLINT_PLUGIN=true react-scripts test --env=jsdom",
17
- "eject": "react-scripts eject",
18
- "predeploy": "yarn build",
19
- "deploy": "gh-pages -d build"
20
- }
21
- }
@@ -1,20 +0,0 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
6
- <meta name="theme-color" content="#000000">
7
-
8
- <link rel="manifest" href="%PUBLIC_URL%/manifest.json">
9
-
10
- <title>react-tooltip</title>
11
- </head>
12
-
13
- <body>
14
- <noscript>
15
- You need to enable JavaScript to run this app.
16
- </noscript>
17
-
18
- <div id="root"></div>
19
- </body>
20
- </html>
@@ -1,8 +0,0 @@
1
- {
2
- "short_name": "react-tooltip",
3
- "name": "react-tooltip",
4
- "start_url": "./index.html",
5
- "display": "standalone",
6
- "theme_color": "#000000",
7
- "background_color": "#ffffff"
8
- }