From c03b860a57c40d04f83f1d5dc3a06c9bddd1b9ac Mon Sep 17 00:00:00 2001 From: Florent Gallois <17473800+RueRivoli@users.noreply.github.com> Date: Thu, 3 Aug 2023 17:01:44 +0200 Subject: [PATCH] feature(#788) : update KtCard component - added a div for image skeleton, header skeleton, and body skeleton - added a class --is-clickable for clickable cards with its associated style - created computed property hasActions that return true if 2 actions props are defined - removed footer slot as we want only to have buttons in the footer (design is ok) - added props: isImgLoading, isTextLoading, primaryActionLabel, secondaryActionLabel, dataTests ... - added a size sm to skeleton size for rectangle - updated documentation for KtCard --- .../pages/usage/components/card.vue | 42 +++++++++++++ .../kotti-ui/source/kotti-card/KtCard.vue | 62 +++++++++++++++---- packages/kotti-ui/source/kotti-card/index.ts | 2 +- packages/kotti-ui/source/kotti-card/types.ts | 6 ++ .../source/kotti-style/_loadings.scss | 4 ++ 5 files changed, 104 insertions(+), 12 deletions(-) diff --git a/packages/documentation/pages/usage/components/card.vue b/packages/documentation/pages/usage/components/card.vue index 4cfb4cd7c1..daece3285c 100644 --- a/packages/documentation/pages/usage/components/card.vue +++ b/packages/documentation/pages/usage/components/card.vue @@ -1,7 +1,49 @@