From 151f21bb0b8fc422ade135dc37e7c036e5736e5b Mon Sep 17 00:00:00 2001 From: Ricardo Gonzalez Date: Sat, 23 May 2026 20:46:02 -0500 Subject: [PATCH] =?UTF-8?q?nav=20activa=20con=20activeTab,=20SectionCards?= =?UTF-8?q?=20din=C3=A1micas,=20fondo=20light=200.95=20oklch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/dashboard/AppSidebar.vue | 20 +++- src/components/dashboard/NavDocuments.vue | 21 ++-- src/components/dashboard/NavMain.vue | 13 ++- src/components/dashboard/SectionCards.vue | 92 ++++------------ src/components/dashboard/SiteHeader.vue | 8 +- src/style.css | 8 +- src/views/NewDashboardView.vue | 121 +++++++++++++++++++++- 7 files changed, 190 insertions(+), 93 deletions(-) diff --git a/src/components/dashboard/AppSidebar.vue b/src/components/dashboard/AppSidebar.vue index c1678c0..ce6ad46 100644 --- a/src/components/dashboard/AppSidebar.vue +++ b/src/components/dashboard/AppSidebar.vue @@ -23,6 +23,14 @@ import { SidebarFooter, SidebarHeader, } from "@/components/ui/sidebar" + +defineProps<{ + activeTab?: string +}>() + +const emit = defineEmits<{ + 'update:activeTab': [value: string] +}>() \ No newline at end of file + diff --git a/src/components/dashboard/NavDocuments.vue b/src/components/dashboard/NavDocuments.vue index 6ed9613..5461522 100644 --- a/src/components/dashboard/NavDocuments.vue +++ b/src/components/dashboard/NavDocuments.vue @@ -26,6 +26,14 @@ const documentItems = [ { name: 'nav.wordAssistant', icon: IconFileWord, id: 'word-assistant' }, { name: 'nav.templates', icon: IconFileDescription, id: 'templates' }, ] + +defineProps<{ + activeTab?: string +}>() + +const emit = defineEmits<{ + 'update:activeTab': [value: string] +}>() \ No newline at end of file + diff --git a/src/components/dashboard/NavMain.vue b/src/components/dashboard/NavMain.vue index f3f44b8..44f70fa 100644 --- a/src/components/dashboard/NavMain.vue +++ b/src/components/dashboard/NavMain.vue @@ -30,6 +30,11 @@ const mainNavItems = [ defineProps<{ items?: { title: string; url: string; icon?: Component }[] + activeTab?: string +}>() + +const emit = defineEmits<{ + 'update:activeTab': [value: string] }>() @@ -49,7 +54,11 @@ defineProps<{ - + {{ t(item.title) }} @@ -57,4 +66,4 @@ defineProps<{ - \ No newline at end of file + diff --git a/src/components/dashboard/SectionCards.vue b/src/components/dashboard/SectionCards.vue index 6e9e73b..6291770 100644 --- a/src/components/dashboard/SectionCards.vue +++ b/src/components/dashboard/SectionCards.vue @@ -10,95 +10,41 @@ import { CardHeader, CardTitle, } from "@/components/ui/card" + +interface CardData { + label: string + value: string + trend: string + up: boolean +} + +defineProps<{ + cards?: CardData[] +}>()