From 8b5678da5ae87a8721c2b9a8e7922cdc0f4714bf Mon Sep 17 00:00:00 2001 From: david Date: Mon, 1 Dec 2025 19:51:53 +0100 Subject: [PATCH] Cambio de estilo --- .../core/src/web/components/page-header.tsx | 20 +++++++-------- .../src/components/layout/app-content.tsx | 1 - .../src/components/layout/app-header.tsx | 11 ++++++-- .../src/components/layout/app-layout.tsx | 2 +- .../src/components/layout/app-sidebar.tsx | 25 +++++-------------- .../rdx-ui/src/components/layout/nav-main.tsx | 25 ++++++++----------- .../loading-overlay/loading-overlay.tsx | 5 ++-- 7 files changed, 39 insertions(+), 50 deletions(-) diff --git a/modules/core/src/web/components/page-header.tsx b/modules/core/src/web/components/page-header.tsx index 625ac2cf..cc51f9a6 100644 --- a/modules/core/src/web/components/page-header.tsx +++ b/modules/core/src/web/components/page-header.tsx @@ -21,32 +21,32 @@ export function PageHeader({ className, }: PageHeaderProps) { return ( -
+
{/* Lado izquierdo */} -
-
+
+
{backIcon && ( )}
-

+

{title}

- {description &&

{description}

} + {description &&

{description}

}
{/* Lado derecho parametrizable */} -
{rightSlot}
+
{rightSlot}
); } diff --git a/packages/rdx-ui/src/components/layout/app-content.tsx b/packages/rdx-ui/src/components/layout/app-content.tsx index 3b43adf6..e6e3b55c 100644 --- a/packages/rdx-ui/src/components/layout/app-content.tsx +++ b/packages/rdx-ui/src/components/layout/app-content.tsx @@ -9,7 +9,6 @@ export const AppContent = ({ return (
{children} diff --git a/packages/rdx-ui/src/components/layout/app-header.tsx b/packages/rdx-ui/src/components/layout/app-header.tsx index be6d0b22..c04bfc77 100644 --- a/packages/rdx-ui/src/components/layout/app-header.tsx +++ b/packages/rdx-ui/src/components/layout/app-header.tsx @@ -1,5 +1,5 @@ import { cn } from "@repo/shadcn-ui/lib/utils"; -import { PropsWithChildren } from "react"; +import type { PropsWithChildren } from "react"; export const AppHeader = ({ className, @@ -7,7 +7,14 @@ export const AppHeader = ({ ...props }: PropsWithChildren<{ className?: string }>) => { return ( -
+
{children}
); diff --git a/packages/rdx-ui/src/components/layout/app-layout.tsx b/packages/rdx-ui/src/components/layout/app-layout.tsx index 52996a42..e6d009de 100644 --- a/packages/rdx-ui/src/components/layout/app-layout.tsx +++ b/packages/rdx-ui/src/components/layout/app-layout.tsx @@ -15,7 +15,7 @@ export const AppLayout = () => { > {/* Aquí está el MAIN */} - + diff --git a/packages/rdx-ui/src/components/layout/app-sidebar.tsx b/packages/rdx-ui/src/components/layout/app-sidebar.tsx index 3d366098..a6ff8b72 100644 --- a/packages/rdx-ui/src/components/layout/app-sidebar.tsx +++ b/packages/rdx-ui/src/components/layout/app-sidebar.tsx @@ -6,11 +6,9 @@ import { SidebarRail, } from "@repo/shadcn-ui/components"; import { - AudioWaveform, BarChartIcon, CameraIcon, ClipboardListIcon, - Command, DatabaseIcon, FileCheckIcon, FileCodeIcon, @@ -20,7 +18,6 @@ import { Frame, GalleryVerticalEnd, HelpCircleIcon, - HomeIcon, LayoutDashboardIcon, ListIcon, MapIcon, @@ -161,24 +158,14 @@ const data2 = { logo: GalleryVerticalEnd, plan: "Enterprise", }, - { - name: "Acme Corp.", - logo: AudioWaveform, - plan: "Startup", - }, - { - name: "Evil Corp.", - logo: Command, - plan: "Free", - }, ], navMain: [ - { + /*{ title: "Inicio", url: "/", icon: HomeIcon, isActive: true, - }, + },*/ { title: "Clientes", icon: UsersIcon, @@ -188,10 +175,10 @@ const data2 = { title: "Listado de clientes", url: "/customers", }, - { + /*{ title: "Añadir un cliente", url: "/customers/create", - }, + },*/ ], }, { @@ -202,10 +189,10 @@ const data2 = { title: "Listado de proformas", url: "/proformas", }, - { + /*{ title: "Enviar a Veri*Factu", url: "#", - }, + },*/ ], }, { diff --git a/packages/rdx-ui/src/components/layout/nav-main.tsx b/packages/rdx-ui/src/components/layout/nav-main.tsx index 2a9fd6b7..0f981d9e 100644 --- a/packages/rdx-ui/src/components/layout/nav-main.tsx +++ b/packages/rdx-ui/src/components/layout/nav-main.tsx @@ -1,5 +1,3 @@ -import { ChevronRightIcon, type LucideIcon, PlusCircleIcon } from "lucide-react"; - import { Collapsible, CollapsibleContent, @@ -13,6 +11,7 @@ import { SidebarMenuSubButton, SidebarMenuSubItem, } from "@repo/shadcn-ui/components"; +import { ChevronRightIcon, type LucideIcon, PlusCircleIcon } from "lucide-react"; import { useNavigate } from "react-router"; type NavMainItem = { @@ -26,21 +25,17 @@ type NavMainItem = { }[]; }; -export function NavMain({ - items, -}: { - items: NavMainItem[]; -}) { +export function NavMain({ items }: { items: NavMainItem[] }) { const navigate = useNavigate(); return ( - + - + Quick Create @@ -49,13 +44,13 @@ export function NavMain({ {items.map((item) => ( - - + + {item.icon && } - {item.title} - + {item.title} + diff --git a/packages/rdx-ui/src/components/loading-overlay/loading-overlay.tsx b/packages/rdx-ui/src/components/loading-overlay/loading-overlay.tsx index ad9fd038..b1471b8c 100644 --- a/packages/rdx-ui/src/components/loading-overlay/loading-overlay.tsx +++ b/packages/rdx-ui/src/components/loading-overlay/loading-overlay.tsx @@ -1,5 +1,6 @@ import { useTranslation } from "@repo/rdx-ui/locales/i18n.ts"; -import { JSX } from "react"; +import type { JSX } from "react"; + import { LoadingIndicator } from "./loading-indicator.tsx"; export type LoadingOverlayProps = { @@ -31,7 +32,7 @@ export const LoadingOverlay = ({ title, subtitle, ...props }: LoadingOverlayProp } {...props} > - +
); };