mirror of
https://github.com/hanzoai/shadcn.git
synced 2026-11-03 03:18:52 +00:00
Upstream sync from shadcn-ui/ui (1686 commits since last merge base). Key changes: - packages/shadcn upgraded to 4.1.0 (CLI font transformers, scaffold from github, chart colors) - apps/v4 replaces apps/www as the primary docs/registry app - Font system: 25+ heading font registries, font markers utility, @supports override - Chart improvements: recharts v3 compat, radial chart fixes - templates/ updated with monorepo variants (astro, vite, react-router, start) - skills/shadcn AI skill definitions added - deprecated/ removed (auth, auth-firebase, cli, www) Preserved Hanzo-only paths: app/, pkg/, demo/, docs/, template/next/
80 lines
2.0 KiB
TypeScript
80 lines
2.0 KiB
TypeScript
"use client"
|
|
|
|
import * as React from "react"
|
|
|
|
import { Calendars } from "@/registry/bases/base/blocks/sidebar-15/components/calendars"
|
|
import { DatePicker } from "@/registry/bases/base/blocks/sidebar-15/components/date-picker"
|
|
import { NavUser } from "@/registry/bases/base/blocks/sidebar-15/components/nav-user"
|
|
import {
|
|
Sidebar,
|
|
SidebarContent,
|
|
SidebarFooter,
|
|
SidebarHeader,
|
|
SidebarMenu,
|
|
SidebarMenuButton,
|
|
SidebarMenuItem,
|
|
SidebarRail,
|
|
SidebarSeparator,
|
|
} from "@/registry/bases/base/ui/sidebar"
|
|
import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder"
|
|
|
|
// This is sample data.
|
|
const data = {
|
|
user: {
|
|
name: "shadcn",
|
|
email: "[email protected]",
|
|
avatar: "/avatars/shadcn.jpg",
|
|
},
|
|
calendars: [
|
|
{
|
|
name: "My Calendars",
|
|
items: ["Personal", "Work", "Family"],
|
|
},
|
|
{
|
|
name: "Favorites",
|
|
items: ["Holidays", "Birthdays"],
|
|
},
|
|
{
|
|
name: "Other",
|
|
items: ["Travel", "Reminders", "Deadlines"],
|
|
},
|
|
],
|
|
}
|
|
|
|
export function SidebarRight({
|
|
...props
|
|
}: React.ComponentProps<typeof Sidebar>) {
|
|
return (
|
|
<Sidebar
|
|
collapsible="none"
|
|
className="sticky top-0 hidden h-svh border-l lg:flex"
|
|
{...props}
|
|
>
|
|
<SidebarHeader className="h-16 border-b border-sidebar-border">
|
|
<NavUser user={data.user} />
|
|
</SidebarHeader>
|
|
<SidebarContent>
|
|
<DatePicker />
|
|
<SidebarSeparator className="mx-0" />
|
|
<Calendars calendars={data.calendars} />
|
|
</SidebarContent>
|
|
<SidebarFooter>
|
|
<SidebarMenu>
|
|
<SidebarMenuItem>
|
|
<SidebarMenuButton>
|
|
<IconPlaceholder
|
|
lucide="PlusIcon"
|
|
tabler="IconPlus"
|
|
hugeicons="PlusSignIcon"
|
|
phosphor="PlusIcon"
|
|
remixicon="RiAddLine"
|
|
/>
|
|
<span>New Calendar</span>
|
|
</SidebarMenuButton>
|
|
</SidebarMenuItem>
|
|
</SidebarMenu>
|
|
</SidebarFooter>
|
|
</Sidebar>
|
|
)
|
|
}
|