diff --git a/package-lock.json b/package-lock.json index 540a8356fa..8c9afe352d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "gsa", - "version": "22.8.2-dev1", + "version": "22.9.1-dev1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "gsa", - "version": "22.8.2-dev1", + "version": "22.9.1-dev1", "license": "AGPL-3.0+", "dependencies": { "@babel/core": "7.23.2", @@ -50,7 +50,7 @@ "redux": "^4.2.1", "redux-logger": "^3.0.6", "redux-thunk": "^2.4.2", - "styled-components": "^6.1.0", + "styled-components": "^6.1.1", "uuid": "^9.0.1", "whatwg-fetch": "^3.6.19" }, @@ -2477,14 +2477,12 @@ "node_modules/@emotion/stylis": { "version": "0.8.5", "resolved": "https://registry.npmjs.org/@emotion/stylis/-/stylis-0.8.5.tgz", - "integrity": "sha512-h6KtPihKFn3T9fuIrwvXXUOwlx3rfUvfZIcP5a6rh8Y7zjE3O06hT5Ss4S/YI1AYhuZ1kjaE/5EaOOI2NqSylQ==", - "license": "MIT" + "integrity": "sha512-h6KtPihKFn3T9fuIrwvXXUOwlx3rfUvfZIcP5a6rh8Y7zjE3O06hT5Ss4S/YI1AYhuZ1kjaE/5EaOOI2NqSylQ==" }, "node_modules/@emotion/unitless": { - "version": "0.7.5", - "resolved": "https://registry.npmjs.org/@emotion/unitless/-/unitless-0.7.5.tgz", - "integrity": "sha512-OWORNpfjMsSSUBVrRBVGECkhWcULOAJz9ZW8uK9qgxD+87M7jHRcvh/A96XXNhXTLmKcoYSQtBEX7lHMO7YRwg==", - "license": "MIT" + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/@emotion/unitless/-/unitless-0.8.1.tgz", + "integrity": "sha512-KOEGMu6dmJZtpadb476IsZBclKvILjopjUii3V+7MnXIQCYh8W3NgNcgwo21n9LXZX6EDIKvqfjYxXebDwxKmQ==" }, "node_modules/@eslint/eslintrc": { "version": "1.4.1", @@ -2571,21 +2569,23 @@ "react-dom": "^16" } }, + "node_modules/@greenbone/ui-components/node_modules/@emotion/unitless": { + "version": "0.7.5", + "resolved": "https://registry.npmjs.org/@emotion/unitless/-/unitless-0.7.5.tgz", + "integrity": "sha512-OWORNpfjMsSSUBVrRBVGECkhWcULOAJz9ZW8uK9qgxD+87M7jHRcvh/A96XXNhXTLmKcoYSQtBEX7lHMO7YRwg==" + }, "node_modules/@greenbone/ui-components/node_modules/has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "license": "MIT", "engines": { "node": ">=4" } }, "node_modules/@greenbone/ui-components/node_modules/styled-components": { - "version": "5.3.6", - "resolved": "https://registry.npmjs.org/styled-components/-/styled-components-5.3.6.tgz", - "integrity": "sha512-hGTZquGAaTqhGWldX7hhfzjnIYBZ0IXQXkCYdvF1Sq3DsUaLx6+NTHC5Jj1ooM2F68sBiVz3lvhfwQs/S3l6qg==", - "hasInstallScript": true, - "license": "MIT", + "version": "5.3.11", + "resolved": "https://registry.npmjs.org/styled-components/-/styled-components-5.3.11.tgz", + "integrity": "sha512-uuzIIfnVkagcVHv9nE0VPlHPSCmXIUGKfJ42LNjxCCTDTL5sgnJ8Z7GZBq0EnLYGln77tPpEpExt2+qa+cZqSw==", "dependencies": { "@babel/helper-module-imports": "^7.0.0", "@babel/traverse": "^7.4.5", @@ -2615,7 +2615,6 @@ "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "license": "MIT", "dependencies": { "has-flag": "^3.0.0" }, @@ -5188,9 +5187,9 @@ "integrity": "sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==" }, "node_modules/@types/stylis": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/@types/stylis/-/stylis-4.2.1.tgz", - "integrity": "sha512-OSaMrXUKxVigGlKRrET39V2xdhzlztQ9Aqumn1WbCBKHOi9ry7jKSd7rkyj0GzmWaU960Rd+LpOFpLfx5bMQAg==" + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/@types/stylis/-/stylis-4.2.4.tgz", + "integrity": "sha512-36ZrGJ8fgtBr6nwNnuJ9jXIj+bn/pF6UoqmrQT7+Y99+tFFeHHsoR54+194dHdyhPjgbeoNz3Qru0oRt0l6ASQ==" }, "node_modules/@types/tough-cookie": { "version": "4.0.2", @@ -6660,27 +6659,20 @@ } }, "node_modules/babel-plugin-styled-components": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/babel-plugin-styled-components/-/babel-plugin-styled-components-2.0.7.tgz", - "integrity": "sha512-i7YhvPgVqRKfoQ66toiZ06jPNA3p6ierpfUuEWxNF+fV27Uv5gxBkf8KZLHUCc1nFA9j6+80pYoIpqCeyW3/bA==", - "license": "MIT", + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/babel-plugin-styled-components/-/babel-plugin-styled-components-2.1.4.tgz", + "integrity": "sha512-Xgp9g+A/cG47sUyRwwYxGM4bR/jDRg5N6it/8+HxCnbT5XNKSKDT9xm4oag/osgqjC2It/vH0yXsomOG6k558g==", "dependencies": { - "@babel/helper-annotate-as-pure": "^7.16.0", - "@babel/helper-module-imports": "^7.16.0", - "babel-plugin-syntax-jsx": "^6.18.0", - "lodash": "^4.17.11", - "picomatch": "^2.3.0" + "@babel/helper-annotate-as-pure": "^7.22.5", + "@babel/helper-module-imports": "^7.22.5", + "@babel/plugin-syntax-jsx": "^7.22.5", + "lodash": "^4.17.21", + "picomatch": "^2.3.1" }, "peerDependencies": { "styled-components": ">= 2" } }, - "node_modules/babel-plugin-syntax-jsx": { - "version": "6.18.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-jsx/-/babel-plugin-syntax-jsx-6.18.0.tgz", - "integrity": "sha512-qrPaCSo9c8RHNRHIotaufGbuOBN8rtdC4QrrFFc43vyWCCz7Kl7GL1PGaXtMGQZUXrkCjNEgxDfmAuAabr/rlw==", - "license": "MIT" - }, "node_modules/babel-plugin-transform-react-remove-prop-types": { "version": "0.4.24", "resolved": "https://registry.npmjs.org/babel-plugin-transform-react-remove-prop-types/-/babel-plugin-transform-react-remove-prop-types-0.4.24.tgz", @@ -21668,9 +21660,9 @@ } }, "node_modules/styled-components": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/styled-components/-/styled-components-6.1.0.tgz", - "integrity": "sha512-VWNfYYBuXzuLS/QYEeoPgMErP26WL+dX9//rEh80B2mmlS1yRxRxuL5eax4m6ybYEUoHWlTy2XOU32767mlMkg==", + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/styled-components/-/styled-components-6.1.1.tgz", + "integrity": "sha512-cpZZP5RrKRIClBW5Eby4JM1wElLVP4NQrJbJ0h10TidTyJf4SIIwa3zLXOoPb4gJi8MsJ8mjq5mu2IrEhZIAcQ==", "dependencies": { "@emotion/is-prop-valid": "^1.2.1", "@emotion/unitless": "^0.8.0", @@ -21694,11 +21686,6 @@ "react-dom": ">= 16.8.0" } }, - "node_modules/styled-components/node_modules/@emotion/unitless": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/@emotion/unitless/-/unitless-0.8.1.tgz", - "integrity": "sha512-KOEGMu6dmJZtpadb476IsZBclKvILjopjUii3V+7MnXIQCYh8W3NgNcgwo21n9LXZX6EDIKvqfjYxXebDwxKmQ==" - }, "node_modules/stylehacks": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/stylehacks/-/stylehacks-5.1.1.tgz", diff --git a/package.json b/package.json index ef4eb6f89e..30bdcfcb1e 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "type": "git", "url": "https://github.com/greenbone/gsa/" }, - "author": "Bj\u00f6rn Ricks ", + "author": "Björn Ricks ", "license": "AGPL-3.0+", "main": "src/index.js", "engines": { @@ -64,7 +64,7 @@ "redux": "^4.2.1", "redux-logger": "^3.0.6", "redux-thunk": "^2.4.2", - "styled-components": "^6.1.0", + "styled-components": "^6.1.1", "uuid": "^9.0.1", "whatwg-fetch": "^3.6.19" }, @@ -126,4 +126,4 @@ "git add" ] } -} \ No newline at end of file +} diff --git a/src/web/components/tab/tab.js b/src/web/components/tab/tab.js index adc0a3a9d7..d1593600c8 100644 --- a/src/web/components/tab/tab.js +++ b/src/web/components/tab/tab.js @@ -47,13 +47,13 @@ const StyledDiv = styledExcludeProps(styled.div, ['active'])` margin-bottom: ${props => (props.active ? '-2px' : undefined)}; border-top: ${props => props.active ? '2px solid ' + Theme.green : '2px solid ' + Theme.white}; - :hover { + &:hover { border-top: ${props => props.active - ? '2px solid ' + Theme.white + ? '2px solid ' + Theme.green : '2px solid ' + Theme.lightGray}; } - :first-child { + &:first-child { border-left: ${props => props.active ? '1px solid ' + Theme.lightGray diff --git a/src/web/pages/audits/__tests__/__snapshots__/detailspage.js.snap b/src/web/pages/audits/__tests__/__snapshots__/detailspage.js.snap index c94910fbe2..3b38931e38 100644 --- a/src/web/pages/audits/__tests__/__snapshots__/detailspage.js.snap +++ b/src/web/pages/audits/__tests__/__snapshots__/detailspage.js.snap @@ -375,11 +375,11 @@ exports[`Audit Detailspage tests should render full Detailspage 1`] = ` border-top: 2px solid #11ab51; } -.c29 :hover { - border-top: 2px solid #fff; +.c29:hover { + border-top: 2px solid #11ab51; } -.c29 :first-child { +.c29:first-child { border-left: 1px solid #e5e5e5; } @@ -407,11 +407,11 @@ exports[`Audit Detailspage tests should render full Detailspage 1`] = ` border-top: 2px solid #fff; } -.c30 :hover { +.c30:hover { border-top: 2px solid #e5e5e5; } -.c30 :first-child { +.c30:first-child { border-left: 1px solid #fff; } diff --git a/src/web/pages/policies/__tests__/__snapshots__/detailspage.js.snap b/src/web/pages/policies/__tests__/__snapshots__/detailspage.js.snap index a0de015be6..f45820ccde 100644 --- a/src/web/pages/policies/__tests__/__snapshots__/detailspage.js.snap +++ b/src/web/pages/policies/__tests__/__snapshots__/detailspage.js.snap @@ -375,11 +375,11 @@ exports[`Policy Detailspage tests should render full Detailspage 1`] = ` border-top: 2px solid #11ab51; } -.c25 :hover { - border-top: 2px solid #fff; +.c25:hover { + border-top: 2px solid #11ab51; } -.c25 :first-child { +.c25:first-child { border-left: 1px solid #e5e5e5; } @@ -407,11 +407,11 @@ exports[`Policy Detailspage tests should render full Detailspage 1`] = ` border-top: 2px solid #fff; } -.c26 :hover { +.c26:hover { border-top: 2px solid #e5e5e5; } -.c26 :first-child { +.c26:first-child { border-left: 1px solid #fff; } diff --git a/src/web/pages/scanconfigs/__tests__/__snapshots__/detailspage.js.snap b/src/web/pages/scanconfigs/__tests__/__snapshots__/detailspage.js.snap index 6613de0317..3e9bd8e5b0 100644 --- a/src/web/pages/scanconfigs/__tests__/__snapshots__/detailspage.js.snap +++ b/src/web/pages/scanconfigs/__tests__/__snapshots__/detailspage.js.snap @@ -375,11 +375,11 @@ exports[`Scan Config Detailspage tests should render full Detailspage 1`] = ` border-top: 2px solid #11ab51; } -.c25 :hover { - border-top: 2px solid #fff; +.c25:hover { + border-top: 2px solid #11ab51; } -.c25 :first-child { +.c25:first-child { border-left: 1px solid #e5e5e5; } @@ -407,11 +407,11 @@ exports[`Scan Config Detailspage tests should render full Detailspage 1`] = ` border-top: 2px solid #fff; } -.c26 :hover { +.c26:hover { border-top: 2px solid #e5e5e5; } -.c26 :first-child { +.c26:first-child { border-left: 1px solid #fff; } diff --git a/src/web/pages/tasks/__tests__/__snapshots__/detailspage.js.snap b/src/web/pages/tasks/__tests__/__snapshots__/detailspage.js.snap index e5dbce1d4a..a3e1e09f84 100644 --- a/src/web/pages/tasks/__tests__/__snapshots__/detailspage.js.snap +++ b/src/web/pages/tasks/__tests__/__snapshots__/detailspage.js.snap @@ -397,11 +397,11 @@ exports[`Task Detailspage tests should render full Detailspage 1`] = ` border-top: 2px solid #11ab51; } -.c35 :hover { - border-top: 2px solid #fff; +.c35:hover { + border-top: 2px solid #11ab51; } -.c35 :first-child { +.c35:first-child { border-left: 1px solid #e5e5e5; } @@ -429,11 +429,11 @@ exports[`Task Detailspage tests should render full Detailspage 1`] = ` border-top: 2px solid #fff; } -.c36 :hover { +.c36:hover { border-top: 2px solid #e5e5e5; } -.c36 :first-child { +.c36:first-child { border-left: 1px solid #fff; }