From e45b06b6c4103ea4dd8a8c9b91557a70b607ae74 Mon Sep 17 00:00:00 2001 From: Arkadiusz Juszczyk Date: Mon, 25 Sep 2023 14:43:09 +0200 Subject: [PATCH 1/2] added new icons --- package-lock.json | 4 ++-- package.json | 2 +- src/icons/index.ts | 2 ++ stories/DataDisplay/Icons.stories.tsx | 6 ++++-- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 4991142a6..d825117f1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@lyyti/design-system", - "version": "2.4.1", + "version": "2.4.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@lyyti/design-system", - "version": "2.4.1", + "version": "2.4.2", "license": "MIT", "dependencies": { "@emotion/react": "11.11.1", diff --git a/package.json b/package.json index 2b25d196f..3eee4a8c9 100644 --- a/package.json +++ b/package.json @@ -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" diff --git a/src/icons/index.ts b/src/icons/index.ts index 3fb2885d3..a6ffed321 100644 --- a/src/icons/index.ts +++ b/src/icons/index.ts @@ -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'; diff --git a/stories/DataDisplay/Icons.stories.tsx b/stories/DataDisplay/Icons.stories.tsx index d3299253e..f46b86735 100644 --- a/stories/DataDisplay/Icons.stories.tsx +++ b/stories/DataDisplay/Icons.stories.tsx @@ -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 = (args) => { @@ -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 ( - setImportIcon(icon.name)}> + setImportIcon(icon.name)}> Date: Mon, 25 Sep 2023 14:44:39 +0200 Subject: [PATCH 2/2] new icons - files --- src/icons/DoubleArrow.tsx | 15 +++++++++++++++ src/icons/HandGrab.tsx | 22 ++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 src/icons/DoubleArrow.tsx create mode 100644 src/icons/HandGrab.tsx diff --git a/src/icons/DoubleArrow.tsx b/src/icons/DoubleArrow.tsx new file mode 100644 index 000000000..9b6711017 --- /dev/null +++ b/src/icons/DoubleArrow.tsx @@ -0,0 +1,15 @@ +import { createElement } from "react"; +import SvgIcon from "@mui/material/SvgIcon"; +const DoubleArrow = (props: any) => + createElement( + SvgIcon, + props, + + ); +export default DoubleArrow; diff --git a/src/icons/HandGrab.tsx b/src/icons/HandGrab.tsx new file mode 100644 index 000000000..3592ba6c4 --- /dev/null +++ b/src/icons/HandGrab.tsx @@ -0,0 +1,22 @@ +import { createElement } from "react"; +import SvgIcon from "@mui/material/SvgIcon"; +const HandGrab = (props: any) => + createElement( + SvgIcon, + props, + , + + ); +export default HandGrab;