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

New icons #599

Merged
merged 2 commits into from
Sep 25, 2023
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: 2 additions & 2 deletions 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 package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@lyyti/design-system",
"description": "Lyyti Design System",
"homepage": "https://lyytioy.github.io/lyyti-design-system",
"version": "2.4.1",
"version": "2.4.2",
"engines": {
"node": "^18",
"npm": "^9"
Expand Down
15 changes: 15 additions & 0 deletions src/icons/DoubleArrow.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { createElement } from "react";
import SvgIcon from "@mui/material/SvgIcon";
const DoubleArrow = (props: any) =>
createElement(
SvgIcon,
props,
<path
d="M12 21V3m0 18 3-3m-3 3-3-3m3-15L9 6m3-3 3 3"
stroke="#192832"
strokeWidth={2}
strokeLinecap="round"
strokeLinejoin="round"
/>
);
export default DoubleArrow;
22 changes: 22 additions & 0 deletions src/icons/HandGrab.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { createElement } from "react";
import SvgIcon from "@mui/material/SvgIcon";
const HandGrab = (props: any) =>
createElement(
SvgIcon,
props,
<path
d="M8 11V7.5a1.5 1.5 0 0 1 3 0V10m0-.5v-3a1.5 1.5 0 1 1 3 0V10m0-2.5a1.5 1.5 0 1 1 3 0V10"
stroke="#192832"
strokeWidth={2}
strokeLinecap="round"
strokeLinejoin="round"
/>,
<path
d="M17 9.5a1.5 1.5 0 0 1 3 0V14a6 6 0 0 1-6 6h-2 .208a6 6 0 0 1-5.012-2.7L7 17c-.312-.479-1.407-2.388-3.286-5.728A1.5 1.5 0 0 1 4.25 9.25a1.867 1.867 0 0 1 2.28.28L8 11"
stroke="#192832"
strokeWidth={2}
strokeLinecap="round"
strokeLinejoin="round"
/>
);
export default HandGrab;
2 changes: 2 additions & 0 deletions src/icons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,5 @@ export { default as PlayContained } from './PlayContained';
export { default as ClockContained } from './ClockContained';
export { default as ParticipantFictional } from './ParticipantFictional';
export { default as Sharing } from './Sharing';
export { default as DoubleArrow } from './DoubleArrow';
export { default as HandGrab } from './HandGrab';
6 changes: 4 additions & 2 deletions stories/DataDisplay/Icons.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ const iconsList = [
{ name: 'ClockContained', component: i.ClockContained },
{ name: 'ParticipantFictional', component: i.ParticipantFictional },
{ name: 'Sharing', component: i.Sharing },
{ name: 'DoubleArrow', component: i.DoubleArrow },
{ name: 'HandGrab', component: i.HandGrab },
];

const Template: StoryFn<SvgIconProps> = (args) => {
Expand Down Expand Up @@ -227,9 +229,9 @@ import { ${importIcon} } from '@lyyti/design-system/icons';
{iconsList
.filter(({ name }) => name.toLowerCase().includes(search.toLowerCase()))
.sort((a, b) => a.name.localeCompare(b.name))
.map((icon, index) => {
.map((icon) => {
return (
<Grid item xs={3} key={index} onClick={() => setImportIcon(icon.name)}>
<Grid item xs={3} key={icon.name} onClick={() => setImportIcon(icon.name)}>
<Paper
sx={{
backgroundColor: 'grey.200',
Expand Down