From a280261f2b5fd683bba5a20a1eb52624ea1fe9bb Mon Sep 17 00:00:00 2001 From: fpasquet Date: Wed, 18 Oct 2023 20:35:58 +0200 Subject: [PATCH] feat: add tuto icon (#48) --- package.json | 2 +- src/assets/svgs/tuto.svg | 1 + src/components/Atoms/Icon/Icon.tsx | 2 +- src/designTokens/asset/icon.tokens.json | 3 +++ 4 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 src/assets/svgs/tuto.svg diff --git a/package.json b/package.json index 2af74fc5..8a5d7690 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@eleven-labs/design-system", "description": "Design System for Eleven Labs", - "version": "0.6.2", + "version": "0.6.3", "repository": { "type": "git", "url": "https://github.com/eleven-labs/design-system.git" diff --git a/src/assets/svgs/tuto.svg b/src/assets/svgs/tuto.svg new file mode 100644 index 00000000..c53a201d --- /dev/null +++ b/src/assets/svgs/tuto.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/components/Atoms/Icon/Icon.tsx b/src/components/Atoms/Icon/Icon.tsx index 0ac44458..af5ee544 100644 --- a/src/components/Atoms/Icon/Icon.tsx +++ b/src/components/Atoms/Icon/Icon.tsx @@ -7,7 +7,7 @@ import { pascalCase } from '@/helpers/stringHelper'; import { colorSystemClassName, omitSystemProps, spacingSystemClassName } from '@/helpers/systemPropsHelper'; import { ColorSystemProps, IconNameType, MarginSystemProps } from '@/types'; -export type IconProps = Omit, 'color'> & +export type IconProps = Omit, 'name' | 'color'> & MarginSystemProps & Pick & { name: IconNameType; diff --git a/src/designTokens/asset/icon.tokens.json b/src/designTokens/asset/icon.tokens.json index 63f6619d..92dac257 100644 --- a/src/designTokens/asset/icon.tokens.json +++ b/src/designTokens/asset/icon.tokens.json @@ -45,6 +45,9 @@ }, "github": { "value": "svgs/github.svg" + }, + "tuto": { + "value": "svgs/tuto.svg" } } }