From 3d98a316d412080d9f70a3f629382a9dcf8c6093 Mon Sep 17 00:00:00 2001 From: Lukeaber Date: Wed, 13 Mar 2024 12:07:55 +0000 Subject: [PATCH 1/4] Add security compliance logo --- CHANGELOG.md | 4 ++++ packages/react-components/package.json | 2 +- .../source/react/library/logo/Logo.js | 1 + .../source/react/library/logo/Logo.md | 10 +++++++++ .../source/react/library/logo/logos.js | 22 +++++++++++++++++++ 5 files changed, 38 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f92dd1d0d..53d997d16 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## react-components 5.34.1 (2024-03-13) + +- [Logo] Add security compliance management logo (by [@Lukeaber](https://github.com/Lukeaber)) + ## react-components 5.34.1 (2024-03-08) - [Input] Bug fixing Input component element order diff --git a/packages/react-components/package.json b/packages/react-components/package.json index 299e805d0..dec29e99e 100644 --- a/packages/react-components/package.json +++ b/packages/react-components/package.json @@ -1,6 +1,6 @@ { "name": "@puppet/react-components", - "version": "5.34.1", + "version": "5.34.2", "author": "Puppet, Inc.", "license": "Apache-2.0", "main": "build/library.js", diff --git a/packages/react-components/source/react/library/logo/Logo.js b/packages/react-components/source/react/library/logo/Logo.js index 3779dead4..966155cf5 100644 --- a/packages/react-components/source/react/library/logo/Logo.js +++ b/packages/react-components/source/react/library/logo/Logo.js @@ -13,6 +13,7 @@ export const SUPPORTED_LOGOS = [ 'pipelines', 'remediate', 'comply', + 'security-compliance-management', ]; const propTypes = { diff --git a/packages/react-components/source/react/library/logo/Logo.md b/packages/react-components/source/react/library/logo/Logo.md index a8df75a2a..c3ea181ce 100644 --- a/packages/react-components/source/react/library/logo/Logo.md +++ b/packages/react-components/source/react/library/logo/Logo.md @@ -24,6 +24,11 @@ The standard style variation exists for light backgrounds. + ``` @@ -51,6 +56,11 @@ This style variation exists for dark backgrounds, where the Puppet logo uses whi + ``` diff --git a/packages/react-components/source/react/library/logo/logos.js b/packages/react-components/source/react/library/logo/logos.js index a82c04bee..82e93644f 100644 --- a/packages/react-components/source/react/library/logo/logos.js +++ b/packages/react-components/source/react/library/logo/logos.js @@ -377,6 +377,24 @@ const connectFull = () => ({ ), }); +const securityComplianceManagement = () => ({ + viewBox: '0 0 160 40', + svg: ( + <> + + + + ), +}); + const logos = { 'container-registry': { full: containerRegistryFull, @@ -421,6 +439,10 @@ const logos = { full: connectFull, bug: connectBug, }, + 'security-compliance-management': { + full: securityComplianceManagement, + bug: puppetBug, + }, }; export default logos; From b4e74f36ff4d8356cb70f459a8e45a567f7487de Mon Sep 17 00:00:00 2001 From: Lukeaber Date: Wed, 13 Mar 2024 13:32:44 +0000 Subject: [PATCH 2/4] Fix sidebar --- packages/react-components/source/react/library/logo/logos.js | 2 +- .../react-components/source/react/library/sidebar/Sidebar.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/react-components/source/react/library/logo/logos.js b/packages/react-components/source/react/library/logo/logos.js index 82e93644f..4d047240e 100644 --- a/packages/react-components/source/react/library/logo/logos.js +++ b/packages/react-components/source/react/library/logo/logos.js @@ -378,7 +378,7 @@ const connectFull = () => ({ }); const securityComplianceManagement = () => ({ - viewBox: '0 0 160 40', + viewBox: '0 0 170 40', svg: ( <> console.log('logo clicked')} ariaLabel="Return to the home page" /> From cf987bb1eb49fb4a527d1bfc26ad87d96c6043ad Mon Sep 17 00:00:00 2001 From: Lukeaber Date: Wed, 13 Mar 2024 13:55:23 +0000 Subject: [PATCH 3/4] CHANGELOG fix --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 53d997d16..fa1666aee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## react-components 5.34.1 (2024-03-13) +## react-components 5.34.2 (2024-03-13) - [Logo] Add security compliance management logo (by [@Lukeaber](https://github.com/Lukeaber)) From 896876e1a8c61706e699e203171512f1b545c9f5 Mon Sep 17 00:00:00 2001 From: Lukeaber Date: Thu, 14 Mar 2024 09:42:08 +0000 Subject: [PATCH 4/4] Fix classNames for text color --- packages/react-components/source/react/library/logo/Logo.md | 6 +----- .../react-components/source/react/library/logo/logos.js | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/react-components/source/react/library/logo/Logo.md b/packages/react-components/source/react/library/logo/Logo.md index c3ea181ce..0a2597e06 100644 --- a/packages/react-components/source/react/library/logo/Logo.md +++ b/packages/react-components/source/react/library/logo/Logo.md @@ -24,11 +24,7 @@ The standard style variation exists for light backgrounds. - + ``` diff --git a/packages/react-components/source/react/library/logo/logos.js b/packages/react-components/source/react/library/logo/logos.js index 4d047240e..180b780ee 100644 --- a/packages/react-components/source/react/library/logo/logos.js +++ b/packages/react-components/source/react/library/logo/logos.js @@ -388,7 +388,7 @@ const securityComplianceManagement = () => ({ clipRule="evenodd" />