From f2c62bea4f45976b48a465996fbc27b2614b6a1c Mon Sep 17 00:00:00 2001 From: Arno V Date: Sat, 31 Aug 2024 16:49:04 -0400 Subject: [PATCH 1/3] feat(icons): adding IconPasskey --- packages/ui-icons/lib/icons/config.json | 5 ++ packages/ui-icons/lib/icons/svg/passkey.svg | 8 +++ .../src/components/Icons/IconPasskey.tsx | 49 +++++++++++++++++++ packages/ui-icons/src/components/index.ts | 2 + 4 files changed, 64 insertions(+) create mode 100644 packages/ui-icons/lib/icons/svg/passkey.svg create mode 100644 packages/ui-icons/src/components/Icons/IconPasskey.tsx diff --git a/packages/ui-icons/lib/icons/config.json b/packages/ui-icons/lib/icons/config.json index 33a8a89b..99e971db 100644 --- a/packages/ui-icons/lib/icons/config.json +++ b/packages/ui-icons/lib/icons/config.json @@ -134,5 +134,10 @@ "name": "IconKey", "title": "Key", "monotone": true + }, + "passkey": { + "name": "IconPasskey", + "title": "Passkey", + "monotone": true } } diff --git a/packages/ui-icons/lib/icons/svg/passkey.svg b/packages/ui-icons/lib/icons/svg/passkey.svg new file mode 100644 index 00000000..634cc752 --- /dev/null +++ b/packages/ui-icons/lib/icons/svg/passkey.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/packages/ui-icons/src/components/Icons/IconPasskey.tsx b/packages/ui-icons/src/components/Icons/IconPasskey.tsx new file mode 100644 index 00000000..8d129355 --- /dev/null +++ b/packages/ui-icons/src/components/Icons/IconPasskey.tsx @@ -0,0 +1,49 @@ +/** + * This file was automatically generated. + * Please do not edit manually. + * + * To update this file, run `yarn build:icons`. + * + * Original name: passkey.svg + * + * Generator: Adobe Illustrator 28.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) + * + */ + +import { SvgIcon } from "@versini/ui-private"; + +import type { IconsProps } from "./IconsTypes"; + +export const IconPasskey = ({ + className, + viewBox, + spacing, + title, + monotone, + ...rest +}: IconsProps) => { + /* v8 ignore next 1 */ + const opacity = monotone ? "1" : "0.4"; + return ( + + + + + + + ); +}; diff --git a/packages/ui-icons/src/components/index.ts b/packages/ui-icons/src/components/index.ts index 5951c8a8..0c6a96fa 100644 --- a/packages/ui-icons/src/components/index.ts +++ b/packages/ui-icons/src/components/index.ts @@ -16,6 +16,7 @@ import { IconInfo } from "./Icons/IconInfo"; import { IconKey } from "./Icons/IconKey"; import { IconLocked } from "./Icons/IconLocked"; import { IconNext } from "./Icons/IconNext"; +import { IconPasskey } from "./Icons/IconPasskey"; import { IconPrevious } from "./Icons/IconPrevious"; import { IconProfile } from "./Icons/IconProfile"; import { IconRefresh } from "./Icons/IconRefresh"; @@ -48,6 +49,7 @@ export { IconKey, IconLocked, IconNext, + IconPasskey, IconPrevious, IconProfile, IconRefresh, From 1adce54957b14b83c22b45aa61f3a74f407326e8 Mon Sep 17 00:00:00 2001 From: Arno V Date: Sat, 31 Aug 2024 16:53:19 -0400 Subject: [PATCH 2/3] bigger icon --- packages/ui-icons/lib/icons/svg/passkey.svg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ui-icons/lib/icons/svg/passkey.svg b/packages/ui-icons/lib/icons/svg/passkey.svg index 634cc752..c114b1aa 100644 --- a/packages/ui-icons/lib/icons/svg/passkey.svg +++ b/packages/ui-icons/lib/icons/svg/passkey.svg @@ -1,4 +1,4 @@ - + From 5899253068698fcb1777e9cd122abd1267961be5 Mon Sep 17 00:00:00 2001 From: Arno V Date: Sat, 31 Aug 2024 16:54:26 -0400 Subject: [PATCH 3/3] adding unit tests --- .../src/components/Icons/__tests__/Icons.test.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/ui-icons/src/components/Icons/__tests__/Icons.test.tsx b/packages/ui-icons/src/components/Icons/__tests__/Icons.test.tsx index 06afe067..2c605cf9 100644 --- a/packages/ui-icons/src/components/Icons/__tests__/Icons.test.tsx +++ b/packages/ui-icons/src/components/Icons/__tests__/Icons.test.tsx @@ -20,6 +20,7 @@ import { IconKey, IconLocked, IconNext, + IconPasskey, IconPrevious, IconProfile, IconRefresh, @@ -281,6 +282,13 @@ describe("Generic Icons prop tests", () => { viewBox={viewBox} spacing={spacing} /> + , ); [ @@ -313,6 +321,7 @@ describe("Generic Icons prop tests", () => { "icon-refresh", "icon-locked", "icon-key", + "icon-passkey", ].forEach(async (dataTestId) => { await renderExpected({ dataTestId,