react-tooltip 5.0.0-beta.1 → 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 (125) 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.cjs.js +3 -6
  35. package/dist/react-tooltip.cjs.min.js +1 -1
  36. package/dist/react-tooltip.esm.js +3 -6
  37. package/dist/react-tooltip.esm.min.js +1 -1
  38. package/dist/react-tooltip.umd.js +3 -6
  39. package/dist/react-tooltip.umd.min.js +1 -1
  40. package/jest.config.ts +214 -0
  41. package/package.json +12 -4
  42. package/tsconfig.json +2 -2
  43. package/.github/FUNDING.yml +0 -13
  44. package/.github/workflows/lint.yaml +0 -35
  45. package/.github/workflows/pull-request.yaml +0 -11
  46. package/.github/workflows/release.yaml +0 -30
  47. package/.husky/pre-commit +0 -6
  48. package/.vscode/settings.json +0 -27
  49. package/build/dist/react-tooltip.cjs.js +0 -2909
  50. package/build/dist/react-tooltip.cjs.min.js +0 -6
  51. package/build/dist/react-tooltip.css +0 -73
  52. package/build/dist/react-tooltip.esm.js +0 -2901
  53. package/build/dist/react-tooltip.esm.min.js +0 -6
  54. package/build/dist/react-tooltip.min.css +0 -1
  55. package/build/dist/react-tooltip.umd.js +0 -2913
  56. package/build/dist/react-tooltip.umd.min.js +0 -6
  57. package/build/index.css +0 -79
  58. package/build/index.html +0 -19
  59. package/build/index.js +0 -36190
  60. package/docs/README.md +0 -50
  61. package/docs/babel.config.js +0 -3
  62. package/docs/docs/examples/_category_.json +0 -7
  63. package/docs/docs/examples/basic-examples.mdx +0 -68
  64. package/docs/docs/examples/children.mdx +0 -67
  65. package/docs/docs/examples/content.mdx +0 -80
  66. package/docs/docs/examples/delay.mdx +0 -84
  67. package/docs/docs/examples/events.mdx +0 -85
  68. package/docs/docs/examples/get-content.mdx +0 -58
  69. package/docs/docs/examples/html.mdx +0 -75
  70. package/docs/docs/examples/multiline.mdx +0 -91
  71. package/docs/docs/examples/offset.mdx +0 -69
  72. package/docs/docs/examples/place.mdx +0 -55
  73. package/docs/docs/examples/state.mdx +0 -331
  74. package/docs/docs/examples/styling.mdx +0 -388
  75. package/docs/docs/examples/variant.mdx +0 -100
  76. package/docs/docs/getting-started.mdx +0 -100
  77. package/docs/docs/options.mdx +0 -105
  78. package/docs/docs/upgrade-guide/_category_.json +0 -7
  79. package/docs/docs/upgrade-guide/basic-examples-v4-v5.mdx +0 -119
  80. package/docs/docs/upgrade-guide/changelog-v4-v5.md +0 -86
  81. package/docs/docusaurus.config.js +0 -135
  82. package/docs/package.json +0 -47
  83. package/docs/sidebars.js +0 -33
  84. package/docs/src/components/HomepageFeatures/index.tsx +0 -71
  85. package/docs/src/components/HomepageFeatures/styles.module.css +0 -11
  86. package/docs/src/css/custom.css +0 -74
  87. package/docs/src/pages/index.module.css +0 -35
  88. package/docs/src/pages/index.tsx +0 -45
  89. package/docs/src/pages/markdown-page.md +0 -7
  90. package/docs/static/.nojekyll +0 -0
  91. package/docs/static/img/Octocat.jpg +0 -0
  92. package/docs/static/img/Octocat.png +0 -0
  93. package/docs/static/img/Octocat.svg +0 -9
  94. package/docs/static/img/android-chrome-192x192.png +0 -0
  95. package/docs/static/img/android-chrome-512x512.png +0 -0
  96. package/docs/static/img/apple-touch-icon.png +0 -0
  97. package/docs/static/img/docusaurus.png +0 -0
  98. package/docs/static/img/favicon-16x16.png +0 -0
  99. package/docs/static/img/favicon-32x32.png +0 -0
  100. package/docs/static/img/favicon-old.ico +0 -0
  101. package/docs/static/img/favicon.ico +0 -0
  102. package/docs/static/img/github.svg +0 -1
  103. package/docs/static/img/happy-face-tooltip.png +0 -0
  104. package/docs/static/img/happy-face-tooltip.svg +0 -21
  105. package/docs/static/img/logo-dinossaur.svg +0 -1
  106. package/docs/static/img/logo.png +0 -0
  107. package/docs/static/img/logo.svg +0 -21
  108. package/docs/static/img/only-tooltip-top.png +0 -0
  109. package/docs/static/img/only-tooltip-top.svg +0 -4
  110. package/docs/static/img/only-tooltip.png +0 -0
  111. package/docs/static/img/only-tooltip.svg +0 -4
  112. package/docs/static/img/site.webmanifest +0 -1
  113. package/docs/static/img/undraw_docusaurus_mountain.svg +0 -171
  114. package/docs/static/img/undraw_docusaurus_react.svg +0 -170
  115. package/docs/static/img/undraw_docusaurus_tree.svg +0 -40
  116. package/docs/tsconfig.json +0 -7
  117. package/docs/yarn.lock +0 -7599
  118. package/example-v5/package.json +0 -21
  119. package/example-v5/public/index.html +0 -20
  120. package/example-v5/public/manifest.json +0 -8
  121. package/example-v5/src/App.jsx +0 -908
  122. package/example-v5/src/index.css +0 -238
  123. package/example-v5/src/index.js +0 -15
  124. package/example-v5/src/index.scss +0 -251
  125. package/public/index.html +0 -19
package/tsconfig.json CHANGED
@@ -45,8 +45,8 @@
45
45
  // "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
46
46
 
47
47
  /* JavaScript Support */
48
- // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
49
- // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
48
+ "allowJs": true /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */,
49
+ // "checkJs": true /* Enable error reporting in type-checked JavaScript files. */,
50
50
  // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
51
51
 
52
52
  /* Emit */
@@ -1,13 +0,0 @@
1
- # These are supported funding model platforms
2
-
3
- github: [danielbarion] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4
- patreon: # Replace with a single Patreon username
5
- open_collective: # Replace with a single Open Collective username
6
- ko_fi: # Replace with a single Ko-fi username
7
- tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8
- community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9
- liberapay: # Replace with a single Liberapay username
10
- issuehunt: # Replace with a single IssueHunt username
11
- otechie: # Replace with a single Otechie username
12
- lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
13
- custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
@@ -1,35 +0,0 @@
1
- name: Run basic linting and testing
2
-
3
- on:
4
- workflow_call:
5
-
6
- jobs:
7
- lint:
8
- runs-on: ubuntu-latest
9
- steps:
10
- - uses: actions/checkout@v2
11
- - uses: actions/setup-node@v3
12
-
13
- - name: Install dev dependencies
14
- run: yarn install
15
-
16
- - name: ESLint
17
- run: yarn run eslint
18
-
19
- test:
20
- needs: lint
21
- strategy:
22
- matrix:
23
- version: [14, 16, 18]
24
- runs-on: ubuntu-latest
25
- steps:
26
- - uses: actions/checkout@v2
27
- - uses: actions/setup-node@v3
28
- with:
29
- node-version: ${{ matrix.version }}
30
-
31
- - name: Install dev dependencies
32
- run: yarn install
33
-
34
- - name: Run tests
35
- run: yarn run test
@@ -1,11 +0,0 @@
1
- name: Pull request workflow
2
-
3
- on:
4
- push:
5
- branches:
6
- - '!master'
7
- pull_request:
8
-
9
- jobs:
10
- lint:
11
- uses: ./.github/workflows/lint.yaml
@@ -1,30 +0,0 @@
1
- name: Release workflow
2
-
3
- on:
4
- push:
5
- branches:
6
- - master
7
-
8
- jobs:
9
- lint:
10
- uses: ./.github/workflows/lint.yaml
11
-
12
- release:
13
- needs: lint
14
- runs-on: ubuntu-latest
15
- environment: production
16
- steps:
17
- - uses: actions/checkout@v2
18
- - uses: actions/setup-node@v3
19
- with:
20
- node-version: ${{ matrix.version }}
21
-
22
- - name: Install dev dependencies
23
- run: yarn install
24
-
25
- - name: Publish package using semantic-release
26
- env:
27
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
28
- run: |
29
- yarn build
30
- yarn run semantic-release
package/.husky/pre-commit DELETED
@@ -1,6 +0,0 @@
1
- #!/bin/sh
2
- . "$(dirname "$0")/_/husky.sh"
3
-
4
- npm run eslint
5
- # npm run stylelint
6
- npm run prettier
@@ -1,27 +0,0 @@
1
- {
2
- "editor.codeActionsOnSave": {
3
- "source.fixAll.eslint": true
4
- },
5
- "css.lint.unknownAtRules": "ignore",
6
- "editor.formatOnSave": true,
7
- "editor.defaultFormatter": "esbenp.prettier-vscode",
8
- "typescript.tsdk": "node_modules/typescript/lib",
9
- "eslint.validate": [
10
- "vue",
11
- "html",
12
- "javascript",
13
- "typescript",
14
- "javascriptreact",
15
- "typescriptreact"
16
- ],
17
- "grammarly.selectors": [
18
- {
19
- "language": "markdown",
20
- "scheme": "file"
21
- },
22
- {
23
- "language": "mdx",
24
- "scheme": "file"
25
- }
26
- ]
27
- }