From 12c7d6e079bef283f4e1c42f73aebb42968954d3 Mon Sep 17 00:00:00 2001 From: Basit Chonka Date: Wed, 11 Dec 2024 11:14:33 +0100 Subject: [PATCH] npm run check --- package-lock.json | 652 ++++++++++++++---- .../stage-toolbar/stage-operator-select.tsx | 2 - .../combobox-with-custom-option.tsx | 10 +- .../combobox-with-custom-options.spec.tsx | 1 - .../src/components/interactive-popover.tsx | 2 +- .../src/components/tab-nav-bar.tsx | 2 +- .../src/stores/workspaces.spec.ts | 2 +- 7 files changed, 510 insertions(+), 161 deletions(-) diff --git a/package-lock.json b/package-lock.json index 700477f3282..54c77426345 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5196,6 +5196,33 @@ "@leafygreen-ui/leafygreen-provider": "^3.1.12" } }, + "node_modules/@leafygreen-ui/checkbox/node_modules/@leafygreen-ui/polymorphic": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@leafygreen-ui/polymorphic/-/polymorphic-2.0.2.tgz", + "integrity": "sha512-OjP+hPG/cwADShcGa1SZdm51G2wVpbNqpU0B3GonEAvGLcAvG4LDMXa7BWo3GDliNkPtVMS86w0eZzEDmLfKmQ==", + "license": "Apache-2.0", + "dependencies": { + "@leafygreen-ui/lib": "^13.6.0", + "lodash": "^4.17.21" + } + }, + "node_modules/@leafygreen-ui/checkbox/node_modules/@leafygreen-ui/typography": { + "version": "19.3.0", + "resolved": "https://registry.npmjs.org/@leafygreen-ui/typography/-/typography-19.3.0.tgz", + "integrity": "sha512-pgTRcc4usW/S9nDDzkf5Ac/JPEybhWtOnDpmrp99mAJHM6tH48Pd1HjRNHWjn6bnh0nXWjwANXX1ZEe+8ggCNg==", + "license": "Apache-2.0", + "dependencies": { + "@leafygreen-ui/emotion": "^4.0.8", + "@leafygreen-ui/icon": "^12.6.0", + "@leafygreen-ui/lib": "^13.6.1", + "@leafygreen-ui/palette": "^4.0.10", + "@leafygreen-ui/polymorphic": "^2.0.0", + "@leafygreen-ui/tokens": "^2.9.0" + }, + "peerDependencies": { + "@leafygreen-ui/leafygreen-provider": "^3.1.12" + } + }, "node_modules/@leafygreen-ui/chip": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/@leafygreen-ui/chip/-/chip-2.0.0.tgz", @@ -5240,6 +5267,70 @@ "@leafygreen-ui/leafygreen-provider": "^3.2.0" } }, + "node_modules/@leafygreen-ui/combobox/node_modules/@leafygreen-ui/input-option": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@leafygreen-ui/input-option/-/input-option-2.0.2.tgz", + "integrity": "sha512-GD3TX/5uF6NMdlcOt89jg7NXrN43ZAm+TEg/84NT9Mpdik9pw44Nznhv/BD/jXaWpxPXlDQzq7ReAOi7WtUujg==", + "license": "Apache-2.0", + "dependencies": { + "@leafygreen-ui/a11y": "^1.5.0", + "@leafygreen-ui/emotion": "^4.0.8", + "@leafygreen-ui/lib": "^13.6.1", + "@leafygreen-ui/palette": "^4.0.9", + "@leafygreen-ui/polymorphic": "^2.0.0", + "@leafygreen-ui/tokens": "^2.9.0", + "@leafygreen-ui/typography": "^19.2.1" + }, + "peerDependencies": { + "@leafygreen-ui/leafygreen-provider": "^3.1.12" + } + }, + "node_modules/@leafygreen-ui/combobox/node_modules/@leafygreen-ui/polymorphic": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@leafygreen-ui/polymorphic/-/polymorphic-2.0.2.tgz", + "integrity": "sha512-OjP+hPG/cwADShcGa1SZdm51G2wVpbNqpU0B3GonEAvGLcAvG4LDMXa7BWo3GDliNkPtVMS86w0eZzEDmLfKmQ==", + "license": "Apache-2.0", + "dependencies": { + "@leafygreen-ui/lib": "^13.6.0", + "lodash": "^4.17.21" + } + }, + "node_modules/@leafygreen-ui/combobox/node_modules/@leafygreen-ui/popover": { + "version": "12.0.0", + "resolved": "https://registry.npmjs.org/@leafygreen-ui/popover/-/popover-12.0.0.tgz", + "integrity": "sha512-E/2ob3kYAJhmXZLBBxEwGD5/KDlhvZlJ7LIHz7PikwuwqXeWqGiVVVtqniVlvpL1ND8wGsfyM1+L1vZRAVvkng==", + "license": "Apache-2.0", + "dependencies": { + "@floating-ui/react": "^0.26.28", + "@leafygreen-ui/emotion": "^4.0.8", + "@leafygreen-ui/hooks": "^8.3.0", + "@leafygreen-ui/lib": "^13.8.1", + "@leafygreen-ui/portal": "^5.1.1", + "@leafygreen-ui/tokens": "^2.8.0", + "@types/react-transition-group": "^4.4.5", + "react-transition-group": "^4.4.5" + }, + "peerDependencies": { + "@leafygreen-ui/leafygreen-provider": "^3.2.0" + } + }, + "node_modules/@leafygreen-ui/combobox/node_modules/@leafygreen-ui/typography": { + "version": "19.3.0", + "resolved": "https://registry.npmjs.org/@leafygreen-ui/typography/-/typography-19.3.0.tgz", + "integrity": "sha512-pgTRcc4usW/S9nDDzkf5Ac/JPEybhWtOnDpmrp99mAJHM6tH48Pd1HjRNHWjn6bnh0nXWjwANXX1ZEe+8ggCNg==", + "license": "Apache-2.0", + "dependencies": { + "@leafygreen-ui/emotion": "^4.0.8", + "@leafygreen-ui/icon": "^12.6.0", + "@leafygreen-ui/lib": "^13.6.1", + "@leafygreen-ui/palette": "^4.0.10", + "@leafygreen-ui/polymorphic": "^2.0.0", + "@leafygreen-ui/tokens": "^2.9.0" + }, + "peerDependencies": { + "@leafygreen-ui/leafygreen-provider": "^3.1.12" + } + }, "node_modules/@leafygreen-ui/descendants": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/@leafygreen-ui/descendants/-/descendants-1.0.1.tgz", @@ -5281,6 +5372,31 @@ "@leafygreen-ui/leafygreen-provider": "^3.1.12" } }, + "node_modules/@leafygreen-ui/form-field/node_modules/@leafygreen-ui/polymorphic": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@leafygreen-ui/polymorphic/-/polymorphic-2.0.2.tgz", + "integrity": "sha512-OjP+hPG/cwADShcGa1SZdm51G2wVpbNqpU0B3GonEAvGLcAvG4LDMXa7BWo3GDliNkPtVMS86w0eZzEDmLfKmQ==", + "dependencies": { + "@leafygreen-ui/lib": "^13.6.0", + "lodash": "^4.17.21" + } + }, + "node_modules/@leafygreen-ui/form-field/node_modules/@leafygreen-ui/typography": { + "version": "19.2.1", + "resolved": "https://registry.npmjs.org/@leafygreen-ui/typography/-/typography-19.2.1.tgz", + "integrity": "sha512-pLTHlLpj8uRBbVkqXpL7JWZe7e2qAIhZQzXQ/NJVY3VN/dUyFchEL1FGptQoIIP7LdSI6n9PikANZMcy9gplog==", + "dependencies": { + "@leafygreen-ui/emotion": "^4.0.8", + "@leafygreen-ui/icon": "^12.5.4", + "@leafygreen-ui/lib": "^13.6.1", + "@leafygreen-ui/palette": "^4.0.10", + "@leafygreen-ui/polymorphic": "^2.0.0", + "@leafygreen-ui/tokens": "^2.9.0" + }, + "peerDependencies": { + "@leafygreen-ui/leafygreen-provider": "^3.1.12" + } + }, "node_modules/@leafygreen-ui/hooks": { "version": "8.3.0", "resolved": "https://registry.npmjs.org/@leafygreen-ui/hooks/-/hooks-8.3.0.tgz", @@ -5292,10 +5408,9 @@ } }, "node_modules/@leafygreen-ui/icon": { - "version": "12.8.0", - "resolved": "https://registry.npmjs.org/@leafygreen-ui/icon/-/icon-12.8.0.tgz", - "integrity": "sha512-LDYSFtdn+dX3/hyBJJw722grz98To+X9Nw/97F6MUk+D9eNdufzPFYQCd8iDsgUbfeSVJ/uw1PVr20QEJ7Xtcw==", - "license": "Apache-2.0", + "version": "12.6.0", + "resolved": "https://registry.npmjs.org/@leafygreen-ui/icon/-/icon-12.6.0.tgz", + "integrity": "sha512-/+5S0aap/4NMtQlfCBQw0NH/noAkNn9A/5YOTPt86WbmDhsgoaD+BP+7TbO1GfveqZZ61vDwp5TzvP9sYLeDKg==", "dependencies": { "@leafygreen-ui/emotion": "^4.0.8", "lodash": "^4.17.21" @@ -5336,44 +5451,7 @@ "@leafygreen-ui/leafygreen-provider": "^3.2.0" } }, - "node_modules/@leafygreen-ui/input-option": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@leafygreen-ui/input-option/-/input-option-2.0.2.tgz", - "integrity": "sha512-GD3TX/5uF6NMdlcOt89jg7NXrN43ZAm+TEg/84NT9Mpdik9pw44Nznhv/BD/jXaWpxPXlDQzq7ReAOi7WtUujg==", - "license": "Apache-2.0", - "dependencies": { - "@leafygreen-ui/a11y": "^1.5.0", - "@leafygreen-ui/emotion": "^4.0.8", - "@leafygreen-ui/lib": "^13.6.1", - "@leafygreen-ui/palette": "^4.0.9", - "@leafygreen-ui/polymorphic": "^2.0.0", - "@leafygreen-ui/tokens": "^2.9.0", - "@leafygreen-ui/typography": "^19.2.1" - }, - "peerDependencies": { - "@leafygreen-ui/leafygreen-provider": "^3.1.12" - } - }, - "node_modules/@leafygreen-ui/lib": { - "version": "13.8.2", - "resolved": "https://registry.npmjs.org/@leafygreen-ui/lib/-/lib-13.8.2.tgz", - "integrity": "sha512-UxtZauF0rsB2dT0dsFYadcs9qa22Wk3PJaSXOCoI8BRPxyV8H4H6B+FQuFjCeLpKWFYOGLee9di3Xsqd4ewa8Q==", - "license": "Apache-2.0", - "dependencies": { - "@storybook/csf": "^0.1.0", - "lodash": "^4.17.21", - "prop-types": "^15.7.2" - }, - "peerDependencies": { - "react": "^17.0.0 || ^18.0.0" - } - }, - "node_modules/@leafygreen-ui/palette": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/@leafygreen-ui/palette/-/palette-4.1.1.tgz", - "integrity": "sha512-fnFSRiq+qQk2w2Q02b85h3sFHZlPsoPnnGihR93BjS+Okxixiat20RmTV2Si/HyqGuuaSus9Uc49RWf+Lb5JaQ==" - }, - "node_modules/@leafygreen-ui/polymorphic": { + "node_modules/@leafygreen-ui/inline-definition/node_modules/@leafygreen-ui/polymorphic": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/@leafygreen-ui/polymorphic/-/polymorphic-2.0.2.tgz", "integrity": "sha512-OjP+hPG/cwADShcGa1SZdm51G2wVpbNqpU0B3GonEAvGLcAvG4LDMXa7BWo3GDliNkPtVMS86w0eZzEDmLfKmQ==", @@ -5383,7 +5461,7 @@ "lodash": "^4.17.21" } }, - "node_modules/@leafygreen-ui/popover": { + "node_modules/@leafygreen-ui/inline-definition/node_modules/@leafygreen-ui/popover": { "version": "12.0.0", "resolved": "https://registry.npmjs.org/@leafygreen-ui/popover/-/popover-12.0.0.tgz", "integrity": "sha512-E/2ob3kYAJhmXZLBBxEwGD5/KDlhvZlJ7LIHz7PikwuwqXeWqGiVVVtqniVlvpL1ND8wGsfyM1+L1vZRAVvkng==", @@ -5402,38 +5480,7 @@ "@leafygreen-ui/leafygreen-provider": "^3.2.0" } }, - "node_modules/@leafygreen-ui/portal": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/@leafygreen-ui/portal/-/portal-5.1.1.tgz", - "integrity": "sha512-8wvNdLxO3hWY7u5rf1ndYCJJ85TB6XpKp+dl7sQPoLnkq8HXd4GqnFXYwvGQp/pf3ts/Dp5FmZ/9dljkktnzQg==", - "dependencies": { - "@leafygreen-ui/hooks": "^8.1.3", - "@leafygreen-ui/lib": "^13.3.0" - }, - "peerDependencies": { - "react-dom": "^17.0.0 || ^18.0.0" - } - }, - "node_modules/@leafygreen-ui/ripple": { - "version": "1.1.13", - "resolved": "https://registry.npmjs.org/@leafygreen-ui/ripple/-/ripple-1.1.13.tgz", - "integrity": "sha512-M8JCnV+bYVYnRaO80qFiuf4oZjatFoAeNTw8mUKCr5/hboNmOJe7vGdJ69Um7iQUYMSBa8IXwD8eHHNgUcOAnw==", - "dependencies": { - "@leafygreen-ui/tokens": "^2.5.2" - } - }, - "node_modules/@leafygreen-ui/tokens": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/@leafygreen-ui/tokens/-/tokens-2.11.0.tgz", - "integrity": "sha512-/0G+UaDpLBLLtEP1mjGjiDnqReHufUTUkteqNUsyTOz1bpfejoo1anu3f6dZDqNlxoKhHZEEngQ+HvP1l1RJVw==", - "license": "Apache-2.0", - "dependencies": { - "@leafygreen-ui/lib": "^13.7.0", - "@leafygreen-ui/palette": "^4.0.9", - "polished": "^4.2.2" - } - }, - "node_modules/@leafygreen-ui/tooltip": { + "node_modules/@leafygreen-ui/inline-definition/node_modules/@leafygreen-ui/tooltip": { "version": "12.0.0", "resolved": "https://registry.npmjs.org/@leafygreen-ui/tooltip/-/tooltip-12.0.0.tgz", "integrity": "sha512-0iOlrB5PbRX6pp/ARzgH3gSiL277jQa/DXgW5ST/XIXs2nv/zKyk9kjeiYbDcoojxLQU8R64k+Mi8Z1M5AN8Xg==", @@ -5454,7 +5501,7 @@ "@leafygreen-ui/leafygreen-provider": "^3.2.0" } }, - "node_modules/@leafygreen-ui/typography": { + "node_modules/@leafygreen-ui/inline-definition/node_modules/@leafygreen-ui/typography": { "version": "19.3.0", "resolved": "https://registry.npmjs.org/@leafygreen-ui/typography/-/typography-19.3.0.tgz", "integrity": "sha512-pgTRcc4usW/S9nDDzkf5Ac/JPEybhWtOnDpmrp99mAJHM6tH48Pd1HjRNHWjn6bnh0nXWjwANXX1ZEe+8ggCNg==", @@ -5471,6 +5518,56 @@ "@leafygreen-ui/leafygreen-provider": "^3.1.12" } }, + "node_modules/@leafygreen-ui/lib": { + "version": "13.8.2", + "resolved": "https://registry.npmjs.org/@leafygreen-ui/lib/-/lib-13.8.2.tgz", + "integrity": "sha512-UxtZauF0rsB2dT0dsFYadcs9qa22Wk3PJaSXOCoI8BRPxyV8H4H6B+FQuFjCeLpKWFYOGLee9di3Xsqd4ewa8Q==", + "license": "Apache-2.0", + "dependencies": { + "@storybook/csf": "^0.1.0", + "lodash": "^4.17.21", + "prop-types": "^15.7.2" + }, + "peerDependencies": { + "react": "^17.0.0 || ^18.0.0" + } + }, + "node_modules/@leafygreen-ui/palette": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/@leafygreen-ui/palette/-/palette-4.1.1.tgz", + "integrity": "sha512-fnFSRiq+qQk2w2Q02b85h3sFHZlPsoPnnGihR93BjS+Okxixiat20RmTV2Si/HyqGuuaSus9Uc49RWf+Lb5JaQ==" + }, + "node_modules/@leafygreen-ui/portal": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/@leafygreen-ui/portal/-/portal-5.1.1.tgz", + "integrity": "sha512-8wvNdLxO3hWY7u5rf1ndYCJJ85TB6XpKp+dl7sQPoLnkq8HXd4GqnFXYwvGQp/pf3ts/Dp5FmZ/9dljkktnzQg==", + "dependencies": { + "@leafygreen-ui/hooks": "^8.1.3", + "@leafygreen-ui/lib": "^13.3.0" + }, + "peerDependencies": { + "react-dom": "^17.0.0 || ^18.0.0" + } + }, + "node_modules/@leafygreen-ui/ripple": { + "version": "1.1.13", + "resolved": "https://registry.npmjs.org/@leafygreen-ui/ripple/-/ripple-1.1.13.tgz", + "integrity": "sha512-M8JCnV+bYVYnRaO80qFiuf4oZjatFoAeNTw8mUKCr5/hboNmOJe7vGdJ69Um7iQUYMSBa8IXwD8eHHNgUcOAnw==", + "dependencies": { + "@leafygreen-ui/tokens": "^2.5.2" + } + }, + "node_modules/@leafygreen-ui/tokens": { + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/@leafygreen-ui/tokens/-/tokens-2.11.0.tgz", + "integrity": "sha512-/0G+UaDpLBLLtEP1mjGjiDnqReHufUTUkteqNUsyTOz1bpfejoo1anu3f6dZDqNlxoKhHZEEngQ+HvP1l1RJVw==", + "license": "Apache-2.0", + "dependencies": { + "@leafygreen-ui/lib": "^13.7.0", + "@leafygreen-ui/palette": "^4.0.9", + "polished": "^4.2.2" + } + }, "node_modules/@leichtgewicht/base64-codec": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/@leichtgewicht/base64-codec/-/base64-codec-1.0.0.tgz", @@ -43318,6 +43415,16 @@ "@leafygreen-ui/leafygreen-provider": "^3.1.12" } }, + "packages/compass-components/node_modules/@leafygreen-ui/icon": { + "version": "12.8.0", + "resolved": "https://registry.npmjs.org/@leafygreen-ui/icon/-/icon-12.8.0.tgz", + "integrity": "sha512-LDYSFtdn+dX3/hyBJJw722grz98To+X9Nw/97F6MUk+D9eNdufzPFYQCd8iDsgUbfeSVJ/uw1PVr20QEJ7Xtcw==", + "license": "Apache-2.0", + "dependencies": { + "@leafygreen-ui/emotion": "^4.0.8", + "lodash": "^4.17.21" + } + }, "packages/compass-components/node_modules/@leafygreen-ui/info-sprinkle": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/@leafygreen-ui/info-sprinkle/-/info-sprinkle-2.1.0.tgz", @@ -43374,6 +43481,24 @@ "@leafygreen-ui/leafygreen-provider": "^3.1.12" } }, + "packages/compass-components/node_modules/@leafygreen-ui/input-option": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@leafygreen-ui/input-option/-/input-option-2.0.2.tgz", + "integrity": "sha512-GD3TX/5uF6NMdlcOt89jg7NXrN43ZAm+TEg/84NT9Mpdik9pw44Nznhv/BD/jXaWpxPXlDQzq7ReAOi7WtUujg==", + "license": "Apache-2.0", + "dependencies": { + "@leafygreen-ui/a11y": "^1.5.0", + "@leafygreen-ui/emotion": "^4.0.8", + "@leafygreen-ui/lib": "^13.6.1", + "@leafygreen-ui/palette": "^4.0.9", + "@leafygreen-ui/polymorphic": "^2.0.0", + "@leafygreen-ui/tokens": "^2.9.0", + "@leafygreen-ui/typography": "^19.2.1" + }, + "peerDependencies": { + "@leafygreen-ui/leafygreen-provider": "^3.1.12" + } + }, "packages/compass-components/node_modules/@leafygreen-ui/leafygreen-provider": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/@leafygreen-ui/leafygreen-provider/-/leafygreen-provider-3.2.0.tgz", @@ -43540,6 +43665,35 @@ "@leafygreen-ui/leafygreen-provider": "^3.1.12" } }, + "packages/compass-components/node_modules/@leafygreen-ui/polymorphic": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@leafygreen-ui/polymorphic/-/polymorphic-2.0.2.tgz", + "integrity": "sha512-OjP+hPG/cwADShcGa1SZdm51G2wVpbNqpU0B3GonEAvGLcAvG4LDMXa7BWo3GDliNkPtVMS86w0eZzEDmLfKmQ==", + "license": "Apache-2.0", + "dependencies": { + "@leafygreen-ui/lib": "^13.6.0", + "lodash": "^4.17.21" + } + }, + "packages/compass-components/node_modules/@leafygreen-ui/popover": { + "version": "12.0.0", + "resolved": "https://registry.npmjs.org/@leafygreen-ui/popover/-/popover-12.0.0.tgz", + "integrity": "sha512-E/2ob3kYAJhmXZLBBxEwGD5/KDlhvZlJ7LIHz7PikwuwqXeWqGiVVVtqniVlvpL1ND8wGsfyM1+L1vZRAVvkng==", + "license": "Apache-2.0", + "dependencies": { + "@floating-ui/react": "^0.26.28", + "@leafygreen-ui/emotion": "^4.0.8", + "@leafygreen-ui/hooks": "^8.3.0", + "@leafygreen-ui/lib": "^13.8.1", + "@leafygreen-ui/portal": "^5.1.1", + "@leafygreen-ui/tokens": "^2.8.0", + "@types/react-transition-group": "^4.4.5", + "react-transition-group": "^4.4.5" + }, + "peerDependencies": { + "@leafygreen-ui/leafygreen-provider": "^3.2.0" + } + }, "packages/compass-components/node_modules/@leafygreen-ui/radio-box-group": { "version": "13.0.2", "resolved": "https://registry.npmjs.org/@leafygreen-ui/radio-box-group/-/radio-box-group-13.0.2.tgz", @@ -43810,6 +43964,44 @@ "@leafygreen-ui/leafygreen-provider": "^3.1.12" } }, + "packages/compass-components/node_modules/@leafygreen-ui/tooltip": { + "version": "12.0.0", + "resolved": "https://registry.npmjs.org/@leafygreen-ui/tooltip/-/tooltip-12.0.0.tgz", + "integrity": "sha512-0iOlrB5PbRX6pp/ARzgH3gSiL277jQa/DXgW5ST/XIXs2nv/zKyk9kjeiYbDcoojxLQU8R64k+Mi8Z1M5AN8Xg==", + "license": "Apache-2.0", + "dependencies": { + "@leafygreen-ui/emotion": "^4.0.8", + "@leafygreen-ui/hooks": "^8.3.0", + "@leafygreen-ui/icon": "^12.5.0", + "@leafygreen-ui/lib": "^13.8.1", + "@leafygreen-ui/palette": "^4.0.9", + "@leafygreen-ui/popover": "^12.0.0", + "@leafygreen-ui/tokens": "^2.8.0", + "@leafygreen-ui/typography": "^19.0.0", + "lodash": "^4.17.21", + "polished": "^4.2.2" + }, + "peerDependencies": { + "@leafygreen-ui/leafygreen-provider": "^3.2.0" + } + }, + "packages/compass-components/node_modules/@leafygreen-ui/typography": { + "version": "19.3.0", + "resolved": "https://registry.npmjs.org/@leafygreen-ui/typography/-/typography-19.3.0.tgz", + "integrity": "sha512-pgTRcc4usW/S9nDDzkf5Ac/JPEybhWtOnDpmrp99mAJHM6tH48Pd1HjRNHWjn6bnh0nXWjwANXX1ZEe+8ggCNg==", + "license": "Apache-2.0", + "dependencies": { + "@leafygreen-ui/emotion": "^4.0.8", + "@leafygreen-ui/icon": "^12.6.0", + "@leafygreen-ui/lib": "^13.6.1", + "@leafygreen-ui/palette": "^4.0.10", + "@leafygreen-ui/polymorphic": "^2.0.0", + "@leafygreen-ui/tokens": "^2.9.0" + }, + "peerDependencies": { + "@leafygreen-ui/leafygreen-provider": "^3.1.12" + } + }, "packages/compass-components/node_modules/polished": { "version": "4.3.1", "resolved": "https://registry.npmjs.org/polished/-/polished-4.3.1.tgz", @@ -53171,6 +53363,30 @@ "@leafygreen-ui/typography": "^19.0.0", "@lg-tools/test-harnesses": "^0.1.2", "react-transition-group": "^4.4.5" + }, + "dependencies": { + "@leafygreen-ui/polymorphic": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@leafygreen-ui/polymorphic/-/polymorphic-2.0.2.tgz", + "integrity": "sha512-OjP+hPG/cwADShcGa1SZdm51G2wVpbNqpU0B3GonEAvGLcAvG4LDMXa7BWo3GDliNkPtVMS86w0eZzEDmLfKmQ==", + "requires": { + "@leafygreen-ui/lib": "^13.6.0", + "lodash": "^4.17.21" + } + }, + "@leafygreen-ui/typography": { + "version": "19.3.0", + "resolved": "https://registry.npmjs.org/@leafygreen-ui/typography/-/typography-19.3.0.tgz", + "integrity": "sha512-pgTRcc4usW/S9nDDzkf5Ac/JPEybhWtOnDpmrp99mAJHM6tH48Pd1HjRNHWjn6bnh0nXWjwANXX1ZEe+8ggCNg==", + "requires": { + "@leafygreen-ui/emotion": "^4.0.8", + "@leafygreen-ui/icon": "^12.6.0", + "@leafygreen-ui/lib": "^13.6.1", + "@leafygreen-ui/palette": "^4.0.10", + "@leafygreen-ui/polymorphic": "^2.0.0", + "@leafygreen-ui/tokens": "^2.9.0" + } + } } }, "@leafygreen-ui/chip": { @@ -53207,6 +53423,59 @@ "chalk": "^4.1.2", "lodash": "^4.17.21", "polished": "^4.2.2" + }, + "dependencies": { + "@leafygreen-ui/input-option": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@leafygreen-ui/input-option/-/input-option-2.0.2.tgz", + "integrity": "sha512-GD3TX/5uF6NMdlcOt89jg7NXrN43ZAm+TEg/84NT9Mpdik9pw44Nznhv/BD/jXaWpxPXlDQzq7ReAOi7WtUujg==", + "requires": { + "@leafygreen-ui/a11y": "^1.5.0", + "@leafygreen-ui/emotion": "^4.0.8", + "@leafygreen-ui/lib": "^13.6.1", + "@leafygreen-ui/palette": "^4.0.9", + "@leafygreen-ui/polymorphic": "^2.0.0", + "@leafygreen-ui/tokens": "^2.9.0", + "@leafygreen-ui/typography": "^19.2.1" + } + }, + "@leafygreen-ui/polymorphic": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@leafygreen-ui/polymorphic/-/polymorphic-2.0.2.tgz", + "integrity": "sha512-OjP+hPG/cwADShcGa1SZdm51G2wVpbNqpU0B3GonEAvGLcAvG4LDMXa7BWo3GDliNkPtVMS86w0eZzEDmLfKmQ==", + "requires": { + "@leafygreen-ui/lib": "^13.6.0", + "lodash": "^4.17.21" + } + }, + "@leafygreen-ui/popover": { + "version": "12.0.0", + "resolved": "https://registry.npmjs.org/@leafygreen-ui/popover/-/popover-12.0.0.tgz", + "integrity": "sha512-E/2ob3kYAJhmXZLBBxEwGD5/KDlhvZlJ7LIHz7PikwuwqXeWqGiVVVtqniVlvpL1ND8wGsfyM1+L1vZRAVvkng==", + "requires": { + "@floating-ui/react": "^0.26.28", + "@leafygreen-ui/emotion": "^4.0.8", + "@leafygreen-ui/hooks": "^8.3.0", + "@leafygreen-ui/lib": "^13.8.1", + "@leafygreen-ui/portal": "^5.1.1", + "@leafygreen-ui/tokens": "^2.8.0", + "@types/react-transition-group": "^4.4.5", + "react-transition-group": "^4.4.5" + } + }, + "@leafygreen-ui/typography": { + "version": "19.3.0", + "resolved": "https://registry.npmjs.org/@leafygreen-ui/typography/-/typography-19.3.0.tgz", + "integrity": "sha512-pgTRcc4usW/S9nDDzkf5Ac/JPEybhWtOnDpmrp99mAJHM6tH48Pd1HjRNHWjn6bnh0nXWjwANXX1ZEe+8ggCNg==", + "requires": { + "@leafygreen-ui/emotion": "^4.0.8", + "@leafygreen-ui/icon": "^12.6.0", + "@leafygreen-ui/lib": "^13.6.1", + "@leafygreen-ui/palette": "^4.0.10", + "@leafygreen-ui/polymorphic": "^2.0.0", + "@leafygreen-ui/tokens": "^2.9.0" + } + } } }, "@leafygreen-ui/descendants": { @@ -53240,6 +53509,30 @@ "@leafygreen-ui/palette": "^4.0.10", "@leafygreen-ui/tokens": "^2.7.0", "@leafygreen-ui/typography": "^19.1.1" + }, + "dependencies": { + "@leafygreen-ui/polymorphic": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@leafygreen-ui/polymorphic/-/polymorphic-2.0.2.tgz", + "integrity": "sha512-OjP+hPG/cwADShcGa1SZdm51G2wVpbNqpU0B3GonEAvGLcAvG4LDMXa7BWo3GDliNkPtVMS86w0eZzEDmLfKmQ==", + "requires": { + "@leafygreen-ui/lib": "^13.6.0", + "lodash": "^4.17.21" + } + }, + "@leafygreen-ui/typography": { + "version": "19.2.1", + "resolved": "https://registry.npmjs.org/@leafygreen-ui/typography/-/typography-19.2.1.tgz", + "integrity": "sha512-pLTHlLpj8uRBbVkqXpL7JWZe7e2qAIhZQzXQ/NJVY3VN/dUyFchEL1FGptQoIIP7LdSI6n9PikANZMcy9gplog==", + "requires": { + "@leafygreen-ui/emotion": "^4.0.8", + "@leafygreen-ui/icon": "^12.5.4", + "@leafygreen-ui/lib": "^13.6.1", + "@leafygreen-ui/palette": "^4.0.10", + "@leafygreen-ui/polymorphic": "^2.0.0", + "@leafygreen-ui/tokens": "^2.9.0" + } + } } }, "@leafygreen-ui/hooks": { @@ -53252,9 +53545,9 @@ } }, "@leafygreen-ui/icon": { - "version": "12.8.0", - "resolved": "https://registry.npmjs.org/@leafygreen-ui/icon/-/icon-12.8.0.tgz", - "integrity": "sha512-LDYSFtdn+dX3/hyBJJw722grz98To+X9Nw/97F6MUk+D9eNdufzPFYQCd8iDsgUbfeSVJ/uw1PVr20QEJ7Xtcw==", + "version": "12.6.0", + "resolved": "https://registry.npmjs.org/@leafygreen-ui/icon/-/icon-12.6.0.tgz", + "integrity": "sha512-/+5S0aap/4NMtQlfCBQw0NH/noAkNn9A/5YOTPt86WbmDhsgoaD+BP+7TbO1GfveqZZ61vDwp5TzvP9sYLeDKg==", "requires": { "@leafygreen-ui/emotion": "^4.0.8", "lodash": "^4.17.21" @@ -53285,20 +53578,62 @@ "@leafygreen-ui/palette": "^4.0.9", "@leafygreen-ui/tokens": "^2.11.0", "@leafygreen-ui/tooltip": "^12.0.0" - } - }, - "@leafygreen-ui/input-option": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@leafygreen-ui/input-option/-/input-option-2.0.2.tgz", - "integrity": "sha512-GD3TX/5uF6NMdlcOt89jg7NXrN43ZAm+TEg/84NT9Mpdik9pw44Nznhv/BD/jXaWpxPXlDQzq7ReAOi7WtUujg==", - "requires": { - "@leafygreen-ui/a11y": "^1.5.0", - "@leafygreen-ui/emotion": "^4.0.8", - "@leafygreen-ui/lib": "^13.6.1", - "@leafygreen-ui/palette": "^4.0.9", - "@leafygreen-ui/polymorphic": "^2.0.0", - "@leafygreen-ui/tokens": "^2.9.0", - "@leafygreen-ui/typography": "^19.2.1" + }, + "dependencies": { + "@leafygreen-ui/polymorphic": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@leafygreen-ui/polymorphic/-/polymorphic-2.0.2.tgz", + "integrity": "sha512-OjP+hPG/cwADShcGa1SZdm51G2wVpbNqpU0B3GonEAvGLcAvG4LDMXa7BWo3GDliNkPtVMS86w0eZzEDmLfKmQ==", + "requires": { + "@leafygreen-ui/lib": "^13.6.0", + "lodash": "^4.17.21" + } + }, + "@leafygreen-ui/popover": { + "version": "12.0.0", + "resolved": "https://registry.npmjs.org/@leafygreen-ui/popover/-/popover-12.0.0.tgz", + "integrity": "sha512-E/2ob3kYAJhmXZLBBxEwGD5/KDlhvZlJ7LIHz7PikwuwqXeWqGiVVVtqniVlvpL1ND8wGsfyM1+L1vZRAVvkng==", + "requires": { + "@floating-ui/react": "^0.26.28", + "@leafygreen-ui/emotion": "^4.0.8", + "@leafygreen-ui/hooks": "^8.3.0", + "@leafygreen-ui/lib": "^13.8.1", + "@leafygreen-ui/portal": "^5.1.1", + "@leafygreen-ui/tokens": "^2.8.0", + "@types/react-transition-group": "^4.4.5", + "react-transition-group": "^4.4.5" + } + }, + "@leafygreen-ui/tooltip": { + "version": "12.0.0", + "resolved": "https://registry.npmjs.org/@leafygreen-ui/tooltip/-/tooltip-12.0.0.tgz", + "integrity": "sha512-0iOlrB5PbRX6pp/ARzgH3gSiL277jQa/DXgW5ST/XIXs2nv/zKyk9kjeiYbDcoojxLQU8R64k+Mi8Z1M5AN8Xg==", + "requires": { + "@leafygreen-ui/emotion": "^4.0.8", + "@leafygreen-ui/hooks": "^8.3.0", + "@leafygreen-ui/icon": "^12.5.0", + "@leafygreen-ui/lib": "^13.8.1", + "@leafygreen-ui/palette": "^4.0.9", + "@leafygreen-ui/popover": "^12.0.0", + "@leafygreen-ui/tokens": "^2.8.0", + "@leafygreen-ui/typography": "^19.0.0", + "lodash": "^4.17.21", + "polished": "^4.2.2" + } + }, + "@leafygreen-ui/typography": { + "version": "19.3.0", + "resolved": "https://registry.npmjs.org/@leafygreen-ui/typography/-/typography-19.3.0.tgz", + "integrity": "sha512-pgTRcc4usW/S9nDDzkf5Ac/JPEybhWtOnDpmrp99mAJHM6tH48Pd1HjRNHWjn6bnh0nXWjwANXX1ZEe+8ggCNg==", + "requires": { + "@leafygreen-ui/emotion": "^4.0.8", + "@leafygreen-ui/icon": "^12.6.0", + "@leafygreen-ui/lib": "^13.6.1", + "@leafygreen-ui/palette": "^4.0.10", + "@leafygreen-ui/polymorphic": "^2.0.0", + "@leafygreen-ui/tokens": "^2.9.0" + } + } } }, "@leafygreen-ui/lib": { @@ -53316,30 +53651,6 @@ "resolved": "https://registry.npmjs.org/@leafygreen-ui/palette/-/palette-4.1.1.tgz", "integrity": "sha512-fnFSRiq+qQk2w2Q02b85h3sFHZlPsoPnnGihR93BjS+Okxixiat20RmTV2Si/HyqGuuaSus9Uc49RWf+Lb5JaQ==" }, - "@leafygreen-ui/polymorphic": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@leafygreen-ui/polymorphic/-/polymorphic-2.0.2.tgz", - "integrity": "sha512-OjP+hPG/cwADShcGa1SZdm51G2wVpbNqpU0B3GonEAvGLcAvG4LDMXa7BWo3GDliNkPtVMS86w0eZzEDmLfKmQ==", - "requires": { - "@leafygreen-ui/lib": "^13.6.0", - "lodash": "^4.17.21" - } - }, - "@leafygreen-ui/popover": { - "version": "12.0.0", - "resolved": "https://registry.npmjs.org/@leafygreen-ui/popover/-/popover-12.0.0.tgz", - "integrity": "sha512-E/2ob3kYAJhmXZLBBxEwGD5/KDlhvZlJ7LIHz7PikwuwqXeWqGiVVVtqniVlvpL1ND8wGsfyM1+L1vZRAVvkng==", - "requires": { - "@floating-ui/react": "^0.26.28", - "@leafygreen-ui/emotion": "^4.0.8", - "@leafygreen-ui/hooks": "^8.3.0", - "@leafygreen-ui/lib": "^13.8.1", - "@leafygreen-ui/portal": "^5.1.1", - "@leafygreen-ui/tokens": "^2.8.0", - "@types/react-transition-group": "^4.4.5", - "react-transition-group": "^4.4.5" - } - }, "@leafygreen-ui/portal": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/@leafygreen-ui/portal/-/portal-5.1.1.tgz", @@ -53367,36 +53678,6 @@ "polished": "^4.2.2" } }, - "@leafygreen-ui/tooltip": { - "version": "12.0.0", - "resolved": "https://registry.npmjs.org/@leafygreen-ui/tooltip/-/tooltip-12.0.0.tgz", - "integrity": "sha512-0iOlrB5PbRX6pp/ARzgH3gSiL277jQa/DXgW5ST/XIXs2nv/zKyk9kjeiYbDcoojxLQU8R64k+Mi8Z1M5AN8Xg==", - "requires": { - "@leafygreen-ui/emotion": "^4.0.8", - "@leafygreen-ui/hooks": "^8.3.0", - "@leafygreen-ui/icon": "^12.5.0", - "@leafygreen-ui/lib": "^13.8.1", - "@leafygreen-ui/palette": "^4.0.9", - "@leafygreen-ui/popover": "^12.0.0", - "@leafygreen-ui/tokens": "^2.8.0", - "@leafygreen-ui/typography": "^19.0.0", - "lodash": "^4.17.21", - "polished": "^4.2.2" - } - }, - "@leafygreen-ui/typography": { - "version": "19.3.0", - "resolved": "https://registry.npmjs.org/@leafygreen-ui/typography/-/typography-19.3.0.tgz", - "integrity": "sha512-pgTRcc4usW/S9nDDzkf5Ac/JPEybhWtOnDpmrp99mAJHM6tH48Pd1HjRNHWjn6bnh0nXWjwANXX1ZEe+8ggCNg==", - "requires": { - "@leafygreen-ui/emotion": "^4.0.8", - "@leafygreen-ui/icon": "^12.6.0", - "@leafygreen-ui/lib": "^13.6.1", - "@leafygreen-ui/palette": "^4.0.10", - "@leafygreen-ui/polymorphic": "^2.0.0", - "@leafygreen-ui/tokens": "^2.9.0" - } - }, "@leichtgewicht/base64-codec": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/@leichtgewicht/base64-codec/-/base64-codec-1.0.0.tgz", @@ -55214,6 +55495,15 @@ } } }, + "@leafygreen-ui/icon": { + "version": "12.8.0", + "resolved": "https://registry.npmjs.org/@leafygreen-ui/icon/-/icon-12.8.0.tgz", + "integrity": "sha512-LDYSFtdn+dX3/hyBJJw722grz98To+X9Nw/97F6MUk+D9eNdufzPFYQCd8iDsgUbfeSVJ/uw1PVr20QEJ7Xtcw==", + "requires": { + "@leafygreen-ui/emotion": "^4.0.8", + "lodash": "^4.17.21" + } + }, "@leafygreen-ui/info-sprinkle": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/@leafygreen-ui/info-sprinkle/-/info-sprinkle-2.1.0.tgz", @@ -55260,6 +55550,20 @@ } } }, + "@leafygreen-ui/input-option": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@leafygreen-ui/input-option/-/input-option-2.0.2.tgz", + "integrity": "sha512-GD3TX/5uF6NMdlcOt89jg7NXrN43ZAm+TEg/84NT9Mpdik9pw44Nznhv/BD/jXaWpxPXlDQzq7ReAOi7WtUujg==", + "requires": { + "@leafygreen-ui/a11y": "^1.5.0", + "@leafygreen-ui/emotion": "^4.0.8", + "@leafygreen-ui/lib": "^13.6.1", + "@leafygreen-ui/palette": "^4.0.9", + "@leafygreen-ui/polymorphic": "^2.0.0", + "@leafygreen-ui/tokens": "^2.9.0", + "@leafygreen-ui/typography": "^19.2.1" + } + }, "@leafygreen-ui/leafygreen-provider": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/@leafygreen-ui/leafygreen-provider/-/leafygreen-provider-3.2.0.tgz", @@ -55400,6 +55704,30 @@ } } }, + "@leafygreen-ui/polymorphic": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@leafygreen-ui/polymorphic/-/polymorphic-2.0.2.tgz", + "integrity": "sha512-OjP+hPG/cwADShcGa1SZdm51G2wVpbNqpU0B3GonEAvGLcAvG4LDMXa7BWo3GDliNkPtVMS86w0eZzEDmLfKmQ==", + "requires": { + "@leafygreen-ui/lib": "^13.6.0", + "lodash": "^4.17.21" + } + }, + "@leafygreen-ui/popover": { + "version": "12.0.0", + "resolved": "https://registry.npmjs.org/@leafygreen-ui/popover/-/popover-12.0.0.tgz", + "integrity": "sha512-E/2ob3kYAJhmXZLBBxEwGD5/KDlhvZlJ7LIHz7PikwuwqXeWqGiVVVtqniVlvpL1ND8wGsfyM1+L1vZRAVvkng==", + "requires": { + "@floating-ui/react": "^0.26.28", + "@leafygreen-ui/emotion": "^4.0.8", + "@leafygreen-ui/hooks": "^8.3.0", + "@leafygreen-ui/lib": "^13.8.1", + "@leafygreen-ui/portal": "^5.1.1", + "@leafygreen-ui/tokens": "^2.8.0", + "@types/react-transition-group": "^4.4.5", + "react-transition-group": "^4.4.5" + } + }, "@leafygreen-ui/radio-box-group": { "version": "13.0.2", "resolved": "https://registry.npmjs.org/@leafygreen-ui/radio-box-group/-/radio-box-group-13.0.2.tgz", @@ -55622,6 +55950,36 @@ "@lg-tools/test-harnesses": "^0.1.2" } }, + "@leafygreen-ui/tooltip": { + "version": "12.0.0", + "resolved": "https://registry.npmjs.org/@leafygreen-ui/tooltip/-/tooltip-12.0.0.tgz", + "integrity": "sha512-0iOlrB5PbRX6pp/ARzgH3gSiL277jQa/DXgW5ST/XIXs2nv/zKyk9kjeiYbDcoojxLQU8R64k+Mi8Z1M5AN8Xg==", + "requires": { + "@leafygreen-ui/emotion": "^4.0.8", + "@leafygreen-ui/hooks": "^8.3.0", + "@leafygreen-ui/icon": "^12.5.0", + "@leafygreen-ui/lib": "^13.8.1", + "@leafygreen-ui/palette": "^4.0.9", + "@leafygreen-ui/popover": "^12.0.0", + "@leafygreen-ui/tokens": "^2.8.0", + "@leafygreen-ui/typography": "^19.0.0", + "lodash": "^4.17.21", + "polished": "^4.2.2" + } + }, + "@leafygreen-ui/typography": { + "version": "19.3.0", + "resolved": "https://registry.npmjs.org/@leafygreen-ui/typography/-/typography-19.3.0.tgz", + "integrity": "sha512-pgTRcc4usW/S9nDDzkf5Ac/JPEybhWtOnDpmrp99mAJHM6tH48Pd1HjRNHWjn6bnh0nXWjwANXX1ZEe+8ggCNg==", + "requires": { + "@leafygreen-ui/emotion": "^4.0.8", + "@leafygreen-ui/icon": "^12.6.0", + "@leafygreen-ui/lib": "^13.6.1", + "@leafygreen-ui/palette": "^4.0.10", + "@leafygreen-ui/polymorphic": "^2.0.0", + "@leafygreen-ui/tokens": "^2.9.0" + } + }, "polished": { "version": "4.3.1", "resolved": "https://registry.npmjs.org/polished/-/polished-4.3.1.tgz", diff --git a/packages/compass-aggregations/src/components/stage-toolbar/stage-operator-select.tsx b/packages/compass-aggregations/src/components/stage-toolbar/stage-operator-select.tsx index 80d1ecd6e9d..32d50d7df5d 100644 --- a/packages/compass-aggregations/src/components/stage-toolbar/stage-operator-select.tsx +++ b/packages/compass-aggregations/src/components/stage-toolbar/stage-operator-select.tsx @@ -72,8 +72,6 @@ export const StageOperatorSelect = ({ clearable={false} data-testid="stage-operator-combobox" className={comboboxStyles} - // Used for testing to access the popover for a stage - popoverClassName={`mongodb-compass-stage-operator-combobox-${index}`} > {stages.map((stage, index) => ( = NonNullable< - ComboboxProps['value'] ->; -type OnChangeType = NonNullable< - ComboboxProps['onChange'] ->; +type SelectValueType = Required>['value']; +type OnChangeType = Required>['onChange']; type ComboboxWithCustomOptionProps = ComboboxProps & { - onChange: OnChangeType; options: K[]; renderOption: (option: K, index: number, isCustom: boolean) => JSX.Element; }; diff --git a/packages/compass-components/src/components/combobox-with-custom-options.spec.tsx b/packages/compass-components/src/components/combobox-with-custom-options.spec.tsx index 1c75f4e6c37..ddc22cb4ab5 100644 --- a/packages/compass-components/src/components/combobox-with-custom-options.spec.tsx +++ b/packages/compass-components/src/components/combobox-with-custom-options.spec.tsx @@ -21,7 +21,6 @@ const renderCombobox = ( renderOption={(o, i) => { return ; }} - onChange={() => {}} {...props} /> ); diff --git a/packages/compass-components/src/components/interactive-popover.tsx b/packages/compass-components/src/components/interactive-popover.tsx index b9b2531c867..41cb2f47e94 100644 --- a/packages/compass-components/src/components/interactive-popover.tsx +++ b/packages/compass-components/src/components/interactive-popover.tsx @@ -172,7 +172,7 @@ function InteractivePopover({ justify={justify ?? 'start'} active={open} adjustOnMutation - usePortal + renderMode="portal" spacing={spacing ?? 0} className={className} refEl={triggerRef} diff --git a/packages/compass-components/src/components/tab-nav-bar.tsx b/packages/compass-components/src/components/tab-nav-bar.tsx index 7b1b6a36595..178e522c719 100644 --- a/packages/compass-components/src/components/tab-nav-bar.tsx +++ b/packages/compass-components/src/components/tab-nav-bar.tsx @@ -71,7 +71,7 @@ function TabNavBar({ data-testid={dataTestId} aria-label={ariaLabel} className="test-tab-nav-bar-tabs" - setSelected={onTabClicked} + setSelected={(x) => onTabClicked(x as number)} selected={activeTabIndex} > {tabs.map(({ name, title }, idx) => { diff --git a/packages/compass-workspaces/src/stores/workspaces.spec.ts b/packages/compass-workspaces/src/stores/workspaces.spec.ts index 50f82bdef42..663de9b5645 100644 --- a/packages/compass-workspaces/src/stores/workspaces.spec.ts +++ b/packages/compass-workspaces/src/stores/workspaces.spec.ts @@ -6,7 +6,7 @@ import * as workspacesSlice from './workspaces'; import { _bulkTabsClose } from './workspaces'; import { TestMongoDBInstanceManager } from '@mongodb-js/compass-app-stores/provider'; import type { ConnectionInfo } from '../../../connection-info/dist'; -import type { WorkspaceTab } from '../../dist'; +import type { WorkspaceTab } from '../stores/workspaces'; import { setTabDestroyHandler } from '../components/workspace-close-handler'; import { createPluginTestHelpers } from '@mongodb-js/testing-library-compass';