diff --git a/packages/design-system/src/components/N8nCallout/Callout.vue b/packages/design-system/src/components/N8nCallout/Callout.vue index 910a4326fc..453555cf99 100644 --- a/packages/design-system/src/components/N8nCallout/Callout.vue +++ b/packages/design-system/src/components/N8nCallout/Callout.vue @@ -19,6 +19,7 @@ import { computed, useCssModule } from 'vue'; import N8nText from '../N8nText'; import N8nIcon from '../N8nIcon'; +import type { IconSize } from '@/types/icon'; const THEMES = ['info', 'success', 'secondary', 'warning', 'danger', 'custom'] as const; export type CalloutTheme = (typeof THEMES)[number]; @@ -33,7 +34,7 @@ const CALLOUT_DEFAULT_ICONS = { interface CalloutProps { theme: CalloutTheme; icon?: string; - iconSize?: string; + iconSize?: IconSize; iconless?: boolean; slim?: boolean; roundCorners?: boolean; @@ -58,7 +59,7 @@ const getIcon = computed( () => props.icon ?? CALLOUT_DEFAULT_ICONS?.[props.theme] ?? CALLOUT_DEFAULT_ICONS.info, ); -const getIconSize = computed(() => { +const getIconSize = computed(() => { if (props.iconSize) { return props.iconSize; } diff --git a/packages/design-system/src/components/N8nFormInput/FormInput.vue b/packages/design-system/src/components/N8nFormInput/FormInput.vue index b6d538cde2..151fe6c3c3 100644 --- a/packages/design-system/src/components/N8nFormInput/FormInput.vue +++ b/packages/design-system/src/components/N8nFormInput/FormInput.vue @@ -34,11 +34,11 @@ ((accu, input) => { - if (this.values[input.name]) { - accu[input.name] = this.values[input.name]; - } - return accu; - }, {}); + const toSubmit = this.filteredInputs.reduce( + (accu, input) => { + if (this.values[input.name]) { + accu[input.name] = this.values[input.name]; + } + return accu; + }, + {} as { [key: string]: Validatable }, + ); this.$emit('submit', toSubmit); } }, diff --git a/packages/design-system/src/components/N8nInfoAccordion/InfoAccordion.vue b/packages/design-system/src/components/N8nInfoAccordion/InfoAccordion.vue index f06fa4c5cc..42a437e73a 100644 --- a/packages/design-system/src/components/N8nInfoAccordion/InfoAccordion.vue +++ b/packages/design-system/src/components/N8nInfoAccordion/InfoAccordion.vue @@ -39,7 +39,7 @@