{
  "name": "ui-sheet",
  "type": "registry:ui",
  "title": "Sheet",
  "description": "Panelo primitive: sheet.",
  "author": "Panelo UI <https://www.paneloui.com>",
  "dependencies": [
    "@ui-sdk/react@0.1.0-beta.2"
  ],
  "registryDependencies": [
    "https://www.paneloui.com/r/panelo-theme.json",
    "https://www.paneloui.com/r/lib-slot.json",
    "https://www.paneloui.com/r/lib-utils.json"
  ],
  "files": [
    {
      "path": "components/panelo-ui/ui/sheet.tsx",
      "type": "registry:file",
      "target": "components/panelo-ui/ui/sheet.tsx",
      "content": "'use client'\n\nimport * as React from 'react'\nimport {\n    Drawer,\n    DrawerBackdrop,\n    DrawerClose,\n    DrawerContent,\n    DrawerDescription,\n    DrawerTitle,\n    DrawerTrigger,\n} from '@ui-sdk/react/drawer'\n\nimport { cn } from '@/components/panelo-ui/lib/utils'\nimport { slot } from '@/components/panelo-ui/lib/slot'\n\n// A sheet on the primitive's drawer: focus trap, Escape, swipe-to-close and scroll lock come built in.\n// `side` goes on the root, because the drawer positions and slides itself from there.\nfunction Sheet({ side = 'right', persistentElements = ['[data-agent-approval]'], ...props }: React.ComponentProps<typeof Drawer>) {\n    return (\n        <Drawer\n            side={side}\n            persistentElements={persistentElements}\n            {...props}\n        />\n    )\n}\n\nfunction SheetTrigger({ asChild, children, ...props }: React.ComponentProps<typeof DrawerTrigger> & { asChild?: boolean }) {\n    return (\n        <DrawerTrigger\n            {...props}\n            {...slot(asChild, children)}\n        />\n    )\n}\n\nfunction SheetClose({ asChild, children, ...props }: React.ComponentProps<typeof DrawerClose> & { asChild?: boolean }) {\n    return (\n        <DrawerClose\n            {...props}\n            {...slot(asChild, children)}\n        />\n    )\n}\n\nfunction SheetContent({ className, overlayClassName, ...props }: React.ComponentProps<typeof DrawerContent> & { overlayClassName?: string }) {\n    return (\n        <>\n            <DrawerBackdrop className={cn('fixed inset-0 bg-black/10 supports-backdrop-filter:backdrop-blur-xs', overlayClassName)} />\n            <DrawerContent\n                className={cn('bg-popover text-popover-foreground bg-clip-padding flex h-full flex-col shadow-lg outline-none', className)}\n                {...props}\n            />\n        </>\n    )\n}\n\nfunction SheetHeader({ className, ...props }: React.ComponentProps<'div'>) {\n    return (\n        <div\n            data-slot=\"sheet-header\"\n            className={cn('flex flex-col gap-1.5 p-4', className)}\n            {...props}\n        />\n    )\n}\n\nfunction SheetFooter({ className, ...props }: React.ComponentProps<'div'>) {\n    return (\n        <div\n            data-slot=\"sheet-footer\"\n            className={cn('mt-auto flex flex-col gap-2 p-4', className)}\n            {...props}\n        />\n    )\n}\n\nfunction SheetTitle({ className, ...props }: React.ComponentProps<typeof DrawerTitle>) {\n    return (\n        <DrawerTitle\n            className={cn('text-foreground font-medium', className)}\n            {...props}\n        />\n    )\n}\n\nfunction SheetDescription({ className, ...props }: React.ComponentProps<typeof DrawerDescription>) {\n    return (\n        <DrawerDescription\n            className={cn('text-muted-foreground text-sm', className)}\n            {...props}\n        />\n    )\n}\n\nexport { Sheet, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription }\n"
    }
  ]
}