From 0b9b166bbcb37daa0ee045b5ec0aded5e3738f15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20G=C3=B3mez=20Morales?= Date: Mon, 21 Oct 2024 13:55:00 +0200 Subject: [PATCH] chore(editor): Fix Icon type (#11324) --- packages/design-system/src/types/icon.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/design-system/src/types/icon.ts b/packages/design-system/src/types/icon.ts index b16116e4c46..e2d7a36634c 100644 --- a/packages/design-system/src/types/icon.ts +++ b/packages/design-system/src/types/icon.ts @@ -1,8 +1,9 @@ +import type { TextColor } from 'n8n-design-system/types/text'; + const ICON_SIZE = ['xsmall', 'small', 'medium', 'large'] as const; export type IconSize = (typeof ICON_SIZE)[number]; -const ICON_COLOR = ['primary', 'danger', 'success', 'warning', 'text-base'] as const; -export type IconColor = (typeof ICON_COLOR)[number]; +export type IconColor = TextColor; const ICON_ORIENTATION = ['horizontal', 'vertical'] as const; export type IconOrientation = (typeof ICON_ORIENTATION)[number];