Skip to content

feat: add UserIcon and UserGroupIcon #519

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

Merged
merged 1 commit into from
Nov 13, 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 .changeset/beige-mirrors-unite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@cube-dev/ui-kit': patch
---

Add UserIcon and UserGroupIcon.
23 changes: 23 additions & 0 deletions src/icons/UserGroupIcon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
export const UserGroupIcon = (
<svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
fill="none"
viewBox="0 0 16 16"
>
<g clipPath="url(#a)">
<path
fill="currentColor"
fillRule="evenodd"
d="M8.198 3.604a2.301 2.301 0 1 0-2.424 2.99c-.086.39-.119.81-.091 1.22-1.8.151-3.267 1.561-3.533 3.388-.048.328-.312.598-.644.598-.331 0-.603-.27-.566-.6a5.2 5.2 0 0 1 2.929-4.123 3.5 3.5 0 1 1 5.481-3.81 4.3 4.3 0 0 0-1.152.337m-.362 6.69a3.5 3.5 0 1 1 4.275 0 5.2 5.2 0 0 1 2.929 4.124c.037.329-.235.599-.567.599s-.595-.27-.643-.598c-.275-1.888-1.832-3.33-3.714-3.4a4 4 0 0 1-.285 0c-1.882.07-3.44 1.512-3.715 3.4-.047.327-.311.598-.643.598-.331 0-.603-.27-.566-.6a5.2 5.2 0 0 1 2.929-4.123m2.005-.476a5 5 0 0 1 .265 0 2.3 2.3 0 1 0-.265 0"
clipRule="evenodd"
/>
</g>
<defs>
<clipPath id="a">
<path fill="#fff" d="M0 0h16v16H0z" />
</clipPath>
</defs>
</svg>
);
16 changes: 16 additions & 0 deletions src/icons/UserIcon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
export const UserIcon = (
<svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
fill="none"
viewBox="0 0 16 16"
>
<path
fill="currentColor"
fillRule="evenodd"
d="M11.2 5a3.2 3.2 0 1 1-6.4 0 3.2 3.2 0 0 1 6.4 0m-.606 3.678a4.5 4.5 0 1 0-5.188 0C2.939 9.59 1.119 11.767.877 14.4c-.03.33.242.599.573.599h.1c.331 0 .596-.27.635-.599.317-2.72 2.769-4.885 5.815-4.885s5.498 2.165 5.815 4.885c.039.33.304.599.635.599h.1c.331 0 .603-.27.573-.6-.242-2.633-2.062-4.81-4.529-5.722"
clipRule="evenodd"
/>
</svg>
);
4 changes: 4 additions & 0 deletions src/icons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ import { PauseCircleFilledIcon as _PauseCircleFilledIcon } from './PauseCircleFi
import { PauseCircleIcon as _PauseCircleIcon } from './PauseCircleIcon';
import { StatsIcon as _StatsIcon } from './StatsIcon';
import { UnlockIcon as _UnlockIcon } from './UnlockIcon';
import { UserIcon as _UserIcon } from './UserIcon';
import { UserGroupIcon as _UserGroupIcon } from './UserGroupIcon';

export const CloseIcon = wrapIcon('CloseIcon', _CloseIcon);
export const ExclamationIcon = wrapIcon('ExclamationIcon', _ExclamationIcon);
Expand Down Expand Up @@ -162,6 +164,8 @@ export const PauseCircleFilledIcon = wrapIcon(
export const PauseCircleIcon = wrapIcon('PauseCircleIcon', _PauseCircleIcon);
export const StatsIcon = wrapIcon('StatsIcon', _StatsIcon);
export const UnlockIcon = wrapIcon('UnlockIcon', _UnlockIcon);
export const UserIcon = wrapIcon('UserIcon', _UserIcon);
export const UserGroupIcon = wrapIcon('UserGroupIcon', _UserGroupIcon);

export { IconContainer } from './IconContainer';

Expand Down
Loading