From 85111287d585f8c7e3d5ccd50578f73130fa6381 Mon Sep 17 00:00:00 2001 From: "Jose A. Cabaneros" Date: Wed, 20 Nov 2024 18:54:29 +0100 Subject: [PATCH] fix(animation-prop): decommission old animation-prop.ts and generalize the new one --- .../x-components/src/components/items-list.vue | 4 ++-- .../components/result/base-result-image.vue | 18 +++++++++--------- .../x-components/src/types/animation-prop.ts | 12 ++++++------ packages/x-components/src/utils/options-api.ts | 3 --- .../facets/components/facets/facets.vue | 4 ++-- .../components/lists/selected-filters-list.vue | 4 ++-- .../search/components/results-list.vue | 4 ++-- 7 files changed, 23 insertions(+), 26 deletions(-) delete mode 100644 packages/x-components/src/utils/options-api.ts diff --git a/packages/x-components/src/components/items-list.vue b/packages/x-components/src/components/items-list.vue index 206beb7fa2..39e68b4998 100644 --- a/packages/x-components/src/components/items-list.vue +++ b/packages/x-components/src/components/items-list.vue @@ -26,7 +26,7 @@ import { computed, defineComponent, PropType } from 'vue'; import { ListItem } from '../utils/types'; import { toKebabCase } from '../utils/string'; - import { animationProp } from '../utils/options-api'; + import { AnimationProp } from '../types'; /** * It renders a list of {@link ListItem} providing a slot for each `slotName` which depends on @@ -39,7 +39,7 @@ props: { /** Animation component that will be used to animate the list. */ animation: { - type: animationProp, + type: AnimationProp, default: 'ul' }, /** List of items. */ diff --git a/packages/x-components/src/components/result/base-result-image.vue b/packages/x-components/src/components/result/base-result-image.vue index 22b0e55bef..4c5903ce6e 100644 --- a/packages/x-components/src/components/result/base-result-image.vue +++ b/packages/x-components/src/components/result/base-result-image.vue @@ -41,9 +41,9 @@