From fce081091fca8b0cc0b9a926305e06d72b1f249f Mon Sep 17 00:00:00 2001 From: Tobias Barsnes Date: Thu, 5 Sep 2024 13:21:38 +0200 Subject: [PATCH] fix(Combobox): fix virtual items having big gap (#2376) resolves #2357 --- .changeset/witty-moons-sleep.md | 5 +++++ packages/react/package.json | 4 ++-- yarn.lock | 40 ++++++++++++++++----------------- 3 files changed, 27 insertions(+), 22 deletions(-) create mode 100644 .changeset/witty-moons-sleep.md diff --git a/.changeset/witty-moons-sleep.md b/.changeset/witty-moons-sleep.md new file mode 100644 index 0000000000..9837ebaa1f --- /dev/null +++ b/.changeset/witty-moons-sleep.md @@ -0,0 +1,5 @@ +--- +"@digdir/designsystemet-react": patch +--- + +Combobox: fix virtual combobox having large gap between items diff --git a/packages/react/package.json b/packages/react/package.json index 1d895abf84..b2f53d4826 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -35,10 +35,10 @@ "access": "public" }, "dependencies": { - "@floating-ui/react": "0.26.21", + "@floating-ui/react": "0.26.23", "@navikt/aksel-icons": "^6.14.0", "@radix-ui/react-slot": "^1.1.0", - "@tanstack/react-virtual": "^3.8.4" + "@tanstack/react-virtual": "^3.10.7" }, "devDependencies": { "@rollup/plugin-commonjs": "^26.0.1", diff --git a/yarn.lock b/yarn.lock index 12ed356bdf..dc4fa6846c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2963,12 +2963,12 @@ __metadata: version: 0.0.0-use.local resolution: "@digdir/designsystemet-react@workspace:packages/react" dependencies: - "@floating-ui/react": "npm:0.26.21" + "@floating-ui/react": "npm:0.26.23" "@navikt/aksel-icons": "npm:^6.14.0" "@radix-ui/react-slot": "npm:^1.1.0" "@rollup/plugin-commonjs": "npm:^26.0.1" "@rollup/plugin-node-resolve": "npm:^15.2.3" - "@tanstack/react-virtual": "npm:^3.8.4" + "@tanstack/react-virtual": "npm:^3.10.7" "@testing-library/dom": "npm:^10.4.0" "@testing-library/jest-dom": "npm:^6.4.8" "@testing-library/react": "npm:^16.0.0" @@ -3569,17 +3569,17 @@ __metadata: languageName: node linkType: hard -"@floating-ui/react@npm:0.26.21": - version: 0.26.21 - resolution: "@floating-ui/react@npm:0.26.21" +"@floating-ui/react@npm:0.26.23": + version: 0.26.23 + resolution: "@floating-ui/react@npm:0.26.23" dependencies: "@floating-ui/react-dom": "npm:^2.1.1" - "@floating-ui/utils": "npm:^0.2.6" + "@floating-ui/utils": "npm:^0.2.7" tabbable: "npm:^6.0.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" - checksum: 10/3e63477f22e781b483f19b1d8ce99e94eb53f74ad0b462c8c5df677a2f93f294b573fbab159b06d309ecc54acfe4883c4b63185a23c24946b454ad8c4e5650b5 + checksum: 10/a2ffeb0bae72cac9e6583d9651e75e94c261a9e78ca4a5e862b7d33f2c19ae014cbe272627a0a0a5a2b526280efab17ec687d32ba02f6ce4e924bec562ae06ab languageName: node linkType: hard @@ -3590,10 +3590,10 @@ __metadata: languageName: node linkType: hard -"@floating-ui/utils@npm:^0.2.6": - version: 0.2.6 - resolution: "@floating-ui/utils@npm:0.2.6" - checksum: 10/57ec5aa03d441c33418721a1ebd7ef4d3b83eec17366a3eaaf4455fd4c7cf0ca103d262ec1b13b4cfe23d0821ceecc519ccda3de5ba092ce0db5d0d9e22ae799 +"@floating-ui/utils@npm:^0.2.7": + version: 0.2.7 + resolution: "@floating-ui/utils@npm:0.2.7" + checksum: 10/56b1bb3f73f6ec9aabf9b1fd3dc584e0f2384d319c1a6119050eab102ae6ca8b9b0eed711c2f235ffe035188cbe9727bf36e8dcb54c8bd32176737e4be47efa8 languageName: node linkType: hard @@ -5200,22 +5200,22 @@ __metadata: languageName: node linkType: hard -"@tanstack/react-virtual@npm:^3.8.4": - version: 3.8.4 - resolution: "@tanstack/react-virtual@npm:3.8.4" +"@tanstack/react-virtual@npm:^3.10.7": + version: 3.10.7 + resolution: "@tanstack/react-virtual@npm:3.10.7" dependencies: - "@tanstack/virtual-core": "npm:3.8.4" + "@tanstack/virtual-core": "npm:3.10.7" peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 - checksum: 10/297bcc941d307662f513eb724431ca863857872f6c77805049dff5633c57620feb43a51b2d4da988c6c8dc607ea4144e42eed6e1ea2561e6b607b2af998bf7f3 + checksum: 10/cf4324687a3849a981f6e7baad26199fc9419184d69585d9aca35876f9a83a0d9167b31d8d5e74ad739465961eaedc7b5c9177efc62c502adbb7f061be8dc554 languageName: node linkType: hard -"@tanstack/virtual-core@npm:3.8.4": - version: 3.8.4 - resolution: "@tanstack/virtual-core@npm:3.8.4" - checksum: 10/165bb2ad18d76e72efc11237f34b036f7e36c9ecc33d57ea13ba45bdbf1a689d18ebc705052c42b645d1bdc18d93af4559a235d7c18ec4b506f5707b065d5983 +"@tanstack/virtual-core@npm:3.10.7": + version: 3.10.7 + resolution: "@tanstack/virtual-core@npm:3.10.7" + checksum: 10/28aa29e454f2674bd2e3609d2a9ace4ad9913f55b2edd71363b770cde150ffafd67d5fd846cc7d1538b5b0e4e62a1960f253c48c85ad9774692b3be14579eaad languageName: node linkType: hard