From 5e63e0c3417bc21bb8cd5d909dcae42b0a6f3a5d Mon Sep 17 00:00:00 2001 From: -l Date: Tue, 8 Oct 2024 21:08:41 +0200 Subject: [PATCH 1/3] tst --- .../dnb-eufemia/src/components/form-status/FormStatus.d.ts | 6 ++++++ packages/dnb-eufemia/src/components/icon/Icon.tsx | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/dnb-eufemia/src/components/form-status/FormStatus.d.ts b/packages/dnb-eufemia/src/components/form-status/FormStatus.d.ts index 059d41ac1e4..f33145afda1 100644 --- a/packages/dnb-eufemia/src/components/form-status/FormStatus.d.ts +++ b/packages/dnb-eufemia/src/components/form-status/FormStatus.d.ts @@ -129,3 +129,9 @@ export interface MarketingIconProps { title?: string; } export declare const MarketingIcon: React.FC; + +export type FormStatusIconTypes = + | typeof ErrorIcon + | typeof WarnIcon + | typeof InfoIcon + | typeof MarketingIcon; diff --git a/packages/dnb-eufemia/src/components/icon/Icon.tsx b/packages/dnb-eufemia/src/components/icon/Icon.tsx index c685ceb4118..b8fd1b1ff52 100644 --- a/packages/dnb-eufemia/src/components/icon/Icon.tsx +++ b/packages/dnb-eufemia/src/components/icon/Icon.tsx @@ -12,6 +12,7 @@ import { createSkeletonClass } from '../skeleton/SkeletonHelper' import { iconCase } from './IconHelpers' import { SpacingProps } from '../../shared/types' import { SkeletonShow } from '../Skeleton' +import { FormStatusIconTypes } from '../FormStatus' export const DefaultIconSize = 16 export const DefaultIconSizes = { @@ -47,7 +48,7 @@ type IconType = | false /** For external usage */ -export type IconIcon = IconType | React.FC +export type IconIcon = IconType | FormStatusIconTypes | React.FC export type IconSize = | ValidIconNumericSize From fa55202e826df3bacfa66896ac2f0a5897cc4a3a Mon Sep 17 00:00:00 2001 From: Anders Date: Tue, 8 Oct 2024 21:28:24 +0200 Subject: [PATCH 2/3] Update packages/dnb-eufemia/src/components/icon/Icon.tsx --- packages/dnb-eufemia/src/components/icon/Icon.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dnb-eufemia/src/components/icon/Icon.tsx b/packages/dnb-eufemia/src/components/icon/Icon.tsx index b8fd1b1ff52..a8d4784434d 100644 --- a/packages/dnb-eufemia/src/components/icon/Icon.tsx +++ b/packages/dnb-eufemia/src/components/icon/Icon.tsx @@ -48,7 +48,7 @@ type IconType = | false /** For external usage */ -export type IconIcon = IconType | FormStatusIconTypes | React.FC +export type IconIcon = IconType | FormStatusIconTypes | React.FC export type IconSize = | ValidIconNumericSize From d8165131a0271aeada2f0d2b88516e66c28099d2 Mon Sep 17 00:00:00 2001 From: Anders Date: Wed, 9 Oct 2024 12:36:00 +0200 Subject: [PATCH 3/3] Update packages/dnb-eufemia/src/components/icon/Icon.tsx --- packages/dnb-eufemia/src/components/icon/Icon.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dnb-eufemia/src/components/icon/Icon.tsx b/packages/dnb-eufemia/src/components/icon/Icon.tsx index a8d4784434d..b8fd1b1ff52 100644 --- a/packages/dnb-eufemia/src/components/icon/Icon.tsx +++ b/packages/dnb-eufemia/src/components/icon/Icon.tsx @@ -48,7 +48,7 @@ type IconType = | false /** For external usage */ -export type IconIcon = IconType | FormStatusIconTypes | React.FC +export type IconIcon = IconType | FormStatusIconTypes | React.FC export type IconSize = | ValidIconNumericSize