From 8b85a064bcac30229b01d82630d348309cd8d32e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Spaczek?= Date: Mon, 6 May 2024 09:21:12 +0200 Subject: [PATCH] fix: types for prefixAttrs and suffixAttrs --- .../organisms/UiList/_internal/UiListItem.vue | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/components/organisms/UiList/_internal/UiListItem.vue b/src/components/organisms/UiList/_internal/UiListItem.vue index 144e17013..acb309490 100644 --- a/src/components/organisms/UiList/_internal/UiListItem.vue +++ b/src/components/organisms/UiList/_internal/UiListItem.vue @@ -71,6 +71,8 @@ import type { HTMLTag, } from '../../../../types'; import type { Icon } from '../../../../types/icon'; +import type { ListItemSuffixAttrsProps } from './UiListItemSuffix.vue'; +import type { ListItemPrefixAttrsProps } from './UiListItemPrefix.vue'; import type { ListItemSuffixAsTextAttrsProps } from './UiListItemSuffixAsText.vue'; import type { ListItemSuffixAsButtonAttrsProps } from './UiListItemSuffixAsButton.vue'; @@ -84,21 +86,21 @@ export interface ListItemProps { */ icon?: Icon; /** - * Use this props to control suffix visibility. + * Use this props to control prefix visibility. */ - hasSuffix?: boolean; + hasPrefix?: boolean; /** - * Use this props to pass attrs for UIListItemSuffix + * Use this props to pass attrs for UIListItemPrefix */ - suffixAttrs?: ListItemSuffixAsTextAttrsProps | ListItemSuffixAsButtonAttrsProps; + prefixAttrs?: ListItemPrefixAttrsProps; /** - * Use this props to control prefix visibility. + * Use this props to control suffix visibility. */ - hasPrefix?: boolean; + hasSuffix?: boolean; /** - * Use this props to pass attrs for UIListItemPrefix + * Use this props to pass attrs for UIListItemSuffix */ - prefixAttrs?: ListItemSuffixAsTextAttrsProps | ListItemSuffixAsButtonAttrsProps; + suffixAttrs?: ListItemSuffixAttrsProps; /** * Use this props to pass attrs for list item element */