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

feat(icons): adding IconPasskey #612

Merged
merged 3 commits into from
Aug 31, 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
5 changes: 5 additions & 0 deletions packages/ui-icons/lib/icons/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,5 +134,10 @@
"name": "IconKey",
"title": "Key",
"monotone": true
},
"passkey": {
"name": "IconPasskey",
"title": "Passkey",
"monotone": true
}
}
8 changes: 8 additions & 0 deletions packages/ui-icons/lib/icons/svg/passkey.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
49 changes: 49 additions & 0 deletions packages/ui-icons/src/components/Icons/IconPasskey.tsx
Original file line number Diff line number Diff line change
@@ -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 (
<SvgIcon
defaultViewBox="0 0 216 216"
defaultClassName="size-5"
viewBox={viewBox}
className={className}
spacing={spacing}
title={title || "Passkey"}
{...rest}
>
<path
opacity={opacity}
d="M172.32,96.79c0,13.78-8.48,25.5-20.29,29.78l7.14,11.83l-10.57,13l10.57,12.71l-17.04,22.87l-12.01-12.82 v-25.9v-22.56c-10.68-4.85-18.15-15.97-18.15-28.91c0-17.4,13.51-31.51,30.18-31.51C158.81,65.28,172.32,79.39,172.32,96.79z M142.14,101.61c4.02,0,7.28-3.4,7.28-7.6c0-4.2-3.26-7.61-7.28-7.61s-7.28,3.4-7.28,7.61 C134.85,98.21,138.12,101.61,142.14,101.61z"
/>
<path
opacity={opacity}
d="M172.41,96.88c0,13.62-8.25,25.23-19.83,29.67l6.58,11.84l-9.73,13l9.73,12.71l-17.03,23.05v-25.9v-32.77 v-26.87c4.02,0,7.28-3.41,7.28-7.6c0-4.2-3.26-7.61-7.28-7.61V65.28C158.86,65.28,172.41,79.43,172.41,96.88z"
/>
<path d="M120.24,131.43c-9.75-8-16.3-20.3-17.2-34.27H50.8c-10.96,0-19.84,9.01-19.84,20.13v25.17 c0,5.56,4.44,10.07,9.92,10.07h69.44c5.48,0,9.92-4.51,9.92-10.07V131.43z" />
<path d="M73.16,91.13c-2.42-0.46-4.82-0.89-7.11-1.86C57.4,85.64,52.36,78.95,50.73,69.5 c-1.12-6.47-0.59-12.87,2.03-18.92c3.72-8.6,10.39-13.26,19.15-14.84c5.24-0.94,10.46-0.73,15.5,1.15 c7.59,2.82,12.68,8.26,15.03,16.24c2.38,8.05,2.03,16.1-1.56,23.72c-3.72,7.96-10.21,12.23-18.42,13.9 c-0.68,0.14-1.37,0.27-2.05,0.41C78,91.13,75.58,91.13,73.16,91.13z" />
</SvgIcon>
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import {
IconKey,
IconLocked,
IconNext,
IconPasskey,
IconPrevious,
IconProfile,
IconRefresh,
Expand Down Expand Up @@ -281,6 +282,13 @@ describe("Generic Icons prop tests", () => {
viewBox={viewBox}
spacing={spacing}
/>
<IconPasskey
data-testid="icon-passkey"
className={className}
fill={fill}
viewBox={viewBox}
spacing={spacing}
/>
aversini marked this conversation as resolved.
Show resolved Hide resolved
</>,
);
[
Expand Down Expand Up @@ -313,6 +321,7 @@ describe("Generic Icons prop tests", () => {
"icon-refresh",
"icon-locked",
"icon-key",
"icon-passkey",
].forEach(async (dataTestId) => {
await renderExpected({
dataTestId,
Expand Down
2 changes: 2 additions & 0 deletions packages/ui-icons/src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -48,6 +49,7 @@ export {
IconKey,
IconLocked,
IconNext,
IconPasskey,
IconPrevious,
IconProfile,
IconRefresh,
Expand Down