Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(CDPE-6635) add locked and unlocked icons #656

Merged
merged 1 commit into from
Mar 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## react-components 5.34.3 (2024-03-15)

- [Icon] Add Locked and Unlocked icons

## react-components 5.34.2 (2024-03-13)

- [Logo] Add security compliance management logo (by [@Lukeaber](https://github.com/Lukeaber))
Expand Down
2 changes: 1 addition & 1 deletion packages/react-components/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/react-components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@puppet/react-components",
"version": "5.34.2",
"version": "5.34.3",
"author": "Puppet, Inc.",
"license": "Apache-2.0",
"main": "build/library.js",
Expand Down
18 changes: 18 additions & 0 deletions packages/react-components/source/react/library/icon/icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -965,6 +965,15 @@ const icons = {
),
},

locked: {
medium: (
<path
fillRule="evenodd"
d="M4 4v3H1v9h14V7h-3V4a4 4 0 0 0-8 0m6 0v3H6V4a2 2 0 1 1 4 0M3 9v5h10V9zm5 1a1 1 0 0 0-1 1v1a1 1 0 1 0 2 0v-1a1 1 0 0 0-1-1"
/>
),
},

minus: {
tiny: <polygon fillRule="evenodd" points="0 3 0 5 8 5 8 3" />,
},
Expand Down Expand Up @@ -1454,6 +1463,15 @@ const icons = {
),
},

unlocked: {
large: (
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did the designers not provide a medium size for this icon?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so, Alyssa passed the svg files to Eric then he sent them to me. I can reach out to her to see if she can provide a medium if we need it?

<path
fillRule="evenodd"
d="M6 6v1.5h3V6a3 3 0 1 1 6 0v4.5H1.5V24h21V10.5H18V6A6 6 0 0 0 6 6M4.5 21v-7.5h15V21zm7.5-6a1.5 1.5 0 0 0-1.5 1.5V18a1.5 1.5 0 0 0 3 0v-1.5A1.5 1.5 0 0 0 12 15"
/>
),
},

unpatched: {
medium: (
<>
Expand Down