);
diff --git a/packages/rdx-ui/src/components/layout/app-header.tsx b/packages/rdx-ui/src/components/layout/app-header.tsx
index c04bfc77..35515a17 100644
--- a/packages/rdx-ui/src/components/layout/app-header.tsx
+++ b/packages/rdx-ui/src/components/layout/app-header.tsx
@@ -7,14 +7,7 @@ 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 7cfc7672..b93c12cb 100644
--- a/packages/rdx-ui/src/components/layout/app-layout.tsx
+++ b/packages/rdx-ui/src/components/layout/app-layout.tsx
@@ -2,11 +2,11 @@ import { SidebarInset, SidebarProvider } from "@repo/shadcn-ui/components";
import { Outlet } from "react-router";
import { AppSidebar } from "./app-sidebar.tsx";
+import { SiteHeader } from "./site-header.tsx";
export const AppLayout = () => {
return (
{
>
{/* 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 3b1fb192..29118d24 100644
--- a/packages/rdx-ui/src/components/layout/app-sidebar.tsx
+++ b/packages/rdx-ui/src/components/layout/app-sidebar.tsx
@@ -3,66 +3,71 @@ import {
SidebarContent,
SidebarFooter,
SidebarHeader,
- SidebarRail,
+ SidebarMenu,
+ SidebarMenuButton,
+ SidebarMenuItem,
} from "@repo/shadcn-ui/components";
import {
- BarChartIcon,
CameraIcon,
- ClipboardListIcon,
- DatabaseIcon,
- FileCheckIcon,
- FileCodeIcon,
- FileIcon,
- FileTextIcon,
- FolderIcon,
- Frame,
- GalleryVerticalEnd,
- HelpCircleIcon,
- LayoutDashboardIcon,
- ListIcon,
- MapIcon,
- PieChart,
+ CircleIcon,
+ FileBoxIcon,
+ HomeIcon,
+ LogInIcon,
+ Package2Icon,
+ PackageIcon,
SettingsIcon,
+ TextCursorIcon,
+ UserPlusIcon,
UsersIcon,
} from "lucide-react";
import type * as React from "react";
import { NavMain } from "./nav-main.tsx";
import { NavSecondary } from "./nav-secondary.tsx";
-import { TeamSwitcher } from "./team-switcher.tsx";
+import { NavUser } from "./nav-user.tsx";
const data = {
user: {
- name: "shadcn",
+ name: "Toby Belhome",
email: "m@example.com",
- avatar: "/avatars/shadcn.jpg",
+ avatar: "https://www.tobybelhome.com/toby-belhome.png",
},
navMain: [
{
title: "Dashboard",
- url: "#",
- icon: LayoutDashboardIcon,
+ url: "/dashboard",
+ icon: HomeIcon,
},
{
- title: "Lifecycle",
- url: "#",
- icon: ListIcon,
- },
- {
- title: "Analytics",
- url: "#",
- icon: BarChartIcon,
- },
- {
- title: "Projects",
- url: "#",
- icon: FolderIcon,
- },
- {
- title: "Team",
- url: "#",
+ title: "Users",
+ url: "/dashboard/users",
icon: UsersIcon,
},
+ {
+ title: "Settings",
+ url: "/dashboard/settings",
+ icon: SettingsIcon,
+ },
+ {
+ title: "Login",
+ url: "/login",
+ icon: LogInIcon,
+ },
+ {
+ title: "Register",
+ url: "/register",
+ icon: UserPlusIcon,
+ },
+ {
+ title: "404 Page",
+ url: "/404-page",
+ icon: PackageIcon,
+ },
+ {
+ title: "500 Page",
+ url: "/500-page",
+ icon: Package2Icon,
+ },
],
navClouds: [
{
@@ -83,7 +88,7 @@ const data = {
},
{
title: "Proposal",
- icon: FileTextIcon,
+ icon: FileBoxIcon,
url: "#",
items: [
{
@@ -98,7 +103,7 @@ const data = {
},
{
title: "Prompts",
- icon: FileCodeIcon,
+ icon: TextCursorIcon,
url: "#",
items: [
{
@@ -114,111 +119,19 @@ const data = {
],
navSecondary: [
{
- title: "Ajustes",
- url: "#",
- icon: SettingsIcon,
+ title: "Get Pro",
+ url: "https://shadcnuikit.com/pricing",
+ icon: CircleIcon,
},
{
- title: "Soporte",
- url: "#",
- icon: HelpCircleIcon,
- },
- ],
- documents: [
- {
- name: "Data Library",
- url: "#",
- icon: DatabaseIcon,
+ title: "Shadcn UI Kit",
+ url: "https://shadcnuikit.com/",
+ icon: CircleIcon,
},
{
- name: "Reports",
- url: "#",
- icon: ClipboardListIcon,
- },
- {
- name: "Word Assistant",
- url: "#",
- icon: FileIcon,
- },
- ],
-};
-
-// This is sample data.
-const data2 = {
- user: {
- name: "shadcn",
- email: "m@example.com",
- avatar: "/avatars/shadcn.jpg",
- },
- teams: [
- {
- name: "Acme Inc",
- logo: GalleryVerticalEnd,
- plan: "Enterprise",
- },
- ],
- navMain: [
- /*{
- title: "Inicio",
- url: "/",
- icon: HomeIcon,
- isActive: true,
- },*/
- {
- title: "Clientes",
- icon: UsersIcon,
- isActive: true,
- items: [
- {
- title: "Listado de clientes",
- url: "/customers",
- },
- /*{
- title: "Añadir un cliente",
- url: "/customers/create",
- },*/
- ],
- },
- {
- title: "Facturas proforma",
- icon: FileTextIcon,
- items: [
- {
- title: "Listado de proformas",
- url: "/proformas",
- },
- /*{
- title: "Enviar a Veri*Factu",
- url: "#",
- },*/
- ],
- },
- {
- title: "Facturas de cliente",
- icon: FileCheckIcon,
- items: [
- {
- title: "Listado de facturas",
- url: "/customer-invoices",
- },
- ],
- },
- ],
- projects: [
- {
- name: "Design Engineering",
- url: "#",
- icon: Frame,
- },
- {
- name: "Sales & Marketing",
- url: "#",
- icon: PieChart,
- },
- {
- name: "Travel",
- url: "#",
- icon: MapIcon,
+ title: "Bundui Component",
+ url: "https://bundui.io",
+ icon: CircleIcon,
},
],
};
@@ -226,18 +139,29 @@ const data2 = {
export function AppSidebar({ ...props }: React.ComponentProps
) {
return (
-
-
- {/**/}
+
+
+
+
+
+
+ Shadcn UI Kit
+
+
+
+
-
+
+
-
- {/**/}
+
-
);
}
diff --git a/packages/rdx-ui/src/components/layout/site-header.tsx b/packages/rdx-ui/src/components/layout/site-header.tsx
new file mode 100644
index 00000000..b5b80559
--- /dev/null
+++ b/packages/rdx-ui/src/components/layout/site-header.tsx
@@ -0,0 +1,235 @@
+import { Button, Separator, SidebarTrigger } from "@repo/shadcn-ui/components";
+import { Link } from "react-router-dom";
+
+export function SiteHeader() {
+ return (
+
+
+
+
+
+
+
+
+
+
+ Command Palette
+
+
+ Search for a command to run...
+
+
+
+
+
+
+
+
+
+ Get Pro
+
+
+
+
+
+
+
+
+
+
+
+ );
+}
diff --git a/packages/shadcn-ui/src/styles/globals.css b/packages/shadcn-ui/src/styles/globals.css
index c88d5ebe..3d01cca3 100644
--- a/packages/shadcn-ui/src/styles/globals.css
+++ b/packages/shadcn-ui/src/styles/globals.css
@@ -89,6 +89,11 @@
color utility to any element that depends on these defaults.
*/
@layer base {
+ button:not(:disabled),
+ [role="button"]:not(:disabled) {
+ cursor: pointer;
+ }
+
*,
::after,
::before,