(react) add Tooltip component

This component will allow to provide contextual information on any
DOM node.

Closes #239
This commit is contained in:
Nathan Vasse
2024-03-07 16:35:14 +01:00
committed by NathanVss
parent b4a6367bce
commit 0ef7684b12
15 changed files with 683 additions and 4 deletions

View File

@@ -3982,6 +3982,17 @@
"@react-types/checkbox" "^3.7.1"
"@swc/helpers" "^0.5.0"
"@react-aria/toolbar@3.0.0-beta.3":
version "3.0.0-beta.3"
resolved "https://registry.yarnpkg.com/@react-aria/toolbar/-/toolbar-3.0.0-beta.3.tgz#7b4a0e1da137cb84a65b38e0a4802984759e3d9f"
integrity sha512-tPIEPRsZI/6Mb0tAW/GBTt3wBk7dfJg/eUnTloY8NHialvDa+cMUQyUVzPyLWGpErhYeBeutBmw1e2seMjmu+A==
dependencies:
"@react-aria/focus" "^3.16.2"
"@react-aria/i18n" "^3.10.2"
"@react-aria/utils" "^3.23.2"
"@react-types/shared" "^3.22.1"
"@swc/helpers" "^0.5.0"
"@react-aria/tooltip@^3.7.2":
version "3.7.2"
resolved "https://registry.yarnpkg.com/@react-aria/tooltip/-/tooltip-3.7.2.tgz#ccbcef4efcb27486cd845a734794d541696e3692"
@@ -4061,6 +4072,14 @@
"@react-types/shared" "^3.22.1"
"@swc/helpers" "^0.5.0"
"@react-stately/data@^3.11.2":
version "3.11.2"
resolved "https://registry.yarnpkg.com/@react-stately/data/-/data-3.11.2.tgz#835c9a90eaeb832dbaac4c96f1aa91008913efb8"
integrity sha512-yhK2upk2WbJeiLBRWHrh/4G2CvmmozCzoivLaRAPYu53m1J3MyzVGCLJgnZMbMZvAbNcYWZK6IzO6VqZ2y1fOw==
dependencies:
"@react-types/shared" "^3.22.1"
"@swc/helpers" "^0.5.0"
"@react-stately/datepicker@3.9.2", "@react-stately/datepicker@^3.9.2":
version "3.9.2"
resolved "https://registry.yarnpkg.com/@react-stately/datepicker/-/datepicker-3.9.2.tgz#a160d174c4c5a67b15e70a893071d948f5ad347d"
@@ -4328,6 +4347,13 @@
"@react-types/overlays" "^3.8.5"
"@react-types/shared" "^3.22.1"
"@react-types/form@^3.7.2":
version "3.7.2"
resolved "https://registry.yarnpkg.com/@react-types/form/-/form-3.7.2.tgz#bfa8aef2f6e1ee579ab2f9a1f40556ae24f72d32"
integrity sha512-6/isEJY4PsYoHdMaGQtqQyquXGTwB1FqCBOPKQjI/vBGWG3fL7FGfWm4Z62eTbCH4Xyv3FZuNywlT8UjPMQyKA==
dependencies:
"@react-types/shared" "^3.22.1"
"@react-types/grid@^3.2.4":
version "3.2.4"
resolved "https://registry.yarnpkg.com/@react-types/grid/-/grid-3.2.4.tgz#47b28424409b66b3bfcfcde03c92f03d6d41d1ba"
@@ -7203,6 +7229,11 @@ cli-table3@^0.6.1:
optionalDependencies:
"@colors/colors" "1.5.0"
client-only@^0.0.1:
version "0.0.1"
resolved "https://registry.yarnpkg.com/client-only/-/client-only-0.0.1.tgz#38bba5d403c41ab150bff64a95c85013cf73bca1"
integrity sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==
cliui@^6.0.0:
version "6.0.0"
resolved "https://registry.yarnpkg.com/cliui/-/cliui-6.0.0.tgz#511d702c0c4e41ca156d7d0e96021f23e13225b1"
@@ -13067,7 +13098,32 @@ raw-body@2.5.1:
iconv-lite "0.4.24"
unpipe "1.0.0"
react-aria@3.32.1:
react-aria-components@1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/react-aria-components/-/react-aria-components-1.1.1.tgz#85e47d9321af878f9e7a183c943d7c222ab0c370"
integrity sha512-XdgqSbrlh9V1vJEvTwrnr+YGndQWYcVEAbN+Rx104o9g88cAAabclgetU2OUJ9Gbht6+gwnvnA0ksgXzVZog2Q==
dependencies:
"@internationalized/date" "^3.5.2"
"@internationalized/string" "^3.2.1"
"@react-aria/focus" "^3.16.2"
"@react-aria/interactions" "^3.21.1"
"@react-aria/menu" "^3.13.1"
"@react-aria/toolbar" "3.0.0-beta.3"
"@react-aria/utils" "^3.23.2"
"@react-stately/menu" "^3.6.1"
"@react-stately/table" "^3.11.6"
"@react-stately/utils" "^3.9.1"
"@react-types/form" "^3.7.2"
"@react-types/grid" "^3.2.4"
"@react-types/shared" "^3.22.1"
"@react-types/table" "^3.9.3"
"@swc/helpers" "^0.5.0"
client-only "^0.0.1"
react-aria "^3.32.1"
react-stately "^3.30.1"
use-sync-external-store "^1.2.0"
react-aria@3.32.1, react-aria@^3.32.1:
version "3.32.1"
resolved "https://registry.yarnpkg.com/react-aria/-/react-aria-3.32.1.tgz#e490259969b8cfbcc0fdb9cd3e041b1769b285d4"
integrity sha512-7KCJg4K5vlRqiXdGjgCT05Du8RhGBYC+2ok4GOh/Znmg8aMwOk7t0YwxaT5i1z30+fmDcJS/pk/ipUPUg28CXg==
@@ -13202,6 +13258,35 @@ react-remove-scroll@2.5.5:
use-callback-ref "^1.3.0"
use-sidecar "^1.1.2"
react-stately@3.30.1, react-stately@^3.30.1:
version "3.30.1"
resolved "https://registry.yarnpkg.com/react-stately/-/react-stately-3.30.1.tgz#7d87649c69f1bcf42c68a732f121ff23393f5abb"
integrity sha512-IEhKHMT7wijtczA5vtw/kdq9CZuOIF+ReoSimydTFiABRQxWO9ESAl/fToXOUM9qmCdhdqjGJgMAhqTnmheh8g==
dependencies:
"@react-stately/calendar" "^3.4.4"
"@react-stately/checkbox" "^3.6.3"
"@react-stately/collections" "^3.10.5"
"@react-stately/combobox" "^3.8.2"
"@react-stately/data" "^3.11.2"
"@react-stately/datepicker" "^3.9.2"
"@react-stately/dnd" "^3.2.8"
"@react-stately/form" "^3.0.1"
"@react-stately/list" "^3.10.3"
"@react-stately/menu" "^3.6.1"
"@react-stately/numberfield" "^3.9.1"
"@react-stately/overlays" "^3.6.5"
"@react-stately/radio" "^3.10.2"
"@react-stately/searchfield" "^3.5.1"
"@react-stately/select" "^3.6.2"
"@react-stately/selection" "^3.14.3"
"@react-stately/slider" "^3.5.2"
"@react-stately/table" "^3.11.6"
"@react-stately/tabs" "^3.6.4"
"@react-stately/toggle" "^3.7.2"
"@react-stately/tooltip" "^3.4.7"
"@react-stately/tree" "^3.7.6"
"@react-types/shared" "^3.22.1"
react-style-singleton@^2.2.1:
version "2.2.1"
resolved "https://registry.yarnpkg.com/react-style-singleton/-/react-style-singleton-2.2.1.tgz#f99e420492b2d8f34d38308ff660b60d0b1205b4"
@@ -15136,6 +15221,11 @@ use-sidecar@^1.1.2:
detect-node-es "^1.1.0"
tslib "^2.0.0"
use-sync-external-store@^1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz#7dbefd6ef3fe4e767a0cf5d7287aacfb5846928a"
integrity sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==
util-deprecate@^1.0.1, util-deprecate@^1.0.2, util-deprecate@~1.0.1:
version "1.0.2"
resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf"