{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "extends": "none",
  "name": "sheet-menu-example",
  "title": "Sheet Menu",
  "description": "sheet-menu-example",
  "dependencies": [
    "@heroicons/react",
    "react-aria-components"
  ],
  "registryDependencies": [
    "https://intentui.com/r/avatar",
    "https://intentui.com/r/button",
    "https://intentui.com/r/checkbox",
    "https://intentui.com/r/field",
    "https://intentui.com/r/input",
    "https://intentui.com/r/dialog",
    "https://intentui.com/r/select",
    "https://intentui.com/r/sheet",
    "https://intentui.com/r/text-field",
    "https://intentui.com/r/link",
    "https://intentui.com/r/dropdown"
  ],
  "files": [
    {
      "path": "src/components/examples/overlays/sheet/sheet-menu-example.tsx",
      "content": "\"use client\"\n\nimport {\n  ArrowRightStartOnRectangleIcon,\n  BookOpenIcon,\n  ChatBubbleLeftRightIcon,\n  Cog6ToothIcon,\n  HeartIcon,\n  PencilSquareIcon,\n  SparklesIcon,\n  StarIcon,\n  UserIcon,\n} from \"@heroicons/react/24/outline\"\nimport { useState } from \"react\"\nimport { Avatar } from \"@/components/ui/avatar\"\nimport { Button } from \"@/components/ui/button\"\nimport { Button as PrimitiveButton } from \"react-aria-components/Button\"\nimport { Checkbox, CheckboxField } from \"@/components/ui/checkbox\"\nimport { Description, Label } from \"@/components/ui/field\"\nimport { Input } from \"@/components/ui/input\"\nimport {\n  DialogBody,\n  DialogClose,\n  Dialog,\n  DialogFooter,\n  DialogHeader,\n  DialogTitle,\n} from \"@/components/ui/dialog\"\nimport { Select, SelectContent, SelectItem, SelectTrigger } from \"@/components/ui/select\"\nimport {\n  Sheet,\n  SheetBody,\n  SheetDescription,\n  SheetFooter,\n  SheetHeader,\n  SheetTitle,\n  SheetTrigger,\n} from \"@/components/ui/sheet\"\nimport { TextField } from \"@/components/ui/text-field\"\nimport { Link } from \"@/components/ui/link\"\nimport { dropdownItemStyles } from \"@/components/ui/dropdown\"\n\nconst menuGroups: {\n  id: string\n  items: { label: string; icon?: typeof UserIcon }[]\n}[] = [\n  {\n    id: \"account\",\n    items: [\n      { label: \"Your profile\", icon: UserIcon },\n      { label: \"Your repositories\", icon: BookOpenIcon },\n      { label: \"Copilot\", icon: SparklesIcon },\n      { label: \"Your projects\" },\n      { label: \"Your stars\", icon: StarIcon },\n      { label: \"Your gists\" },\n      { label: \"Your organizations\" },\n      { label: \"Your enterprises\" },\n      { label: \"Your sponsors\", icon: HeartIcon },\n    ],\n  },\n  {\n    id: \"settings\",\n    items: [{ label: \"Feature preview\" }, { label: \"Settings\", icon: Cog6ToothIcon }],\n  },\n  {\n    id: \"support\",\n    items: [\n      { label: \"GitHub Docs\" },\n      { label: \"GitHub Support\" },\n      { label: \"GitHub Community\", icon: ChatBubbleLeftRightIcon },\n    ],\n  },\n]\n\nexport default function SheetMenuDemo() {\n  const [isOpen, setIsOpen] = useState(false)\n  const closeDialog = () => setIsOpen(false)\n  return (\n    <>\n      <Dialog isOpen={isOpen} onOpenChange={setIsOpen}>\n        <DialogHeader>\n          <DialogTitle>Edit status</DialogTitle>\n        </DialogHeader>\n        <DialogBody>\n          <div className=\"space-y-4\">\n            <div className=\"flex items-center gap-2\">\n              <PencilSquareIcon className=\"size-5\" />\n              <TextField>\n                <Label>Status</Label>\n                <Input placeholder=\"What's your status?\" />\n              </TextField>\n            </div>\n            <Select>\n              <Label>Clear Status</Label>\n              <SelectTrigger />\n              <SelectContent>\n                <SelectItem>Never</SelectItem>\n                <SelectItem>in 30 Minutes</SelectItem>\n                <SelectItem>in 1 Hour</SelectItem>\n                <SelectItem>in 8 Hours</SelectItem>\n                <SelectItem>after Today</SelectItem>\n                <SelectItem>after a Week</SelectItem>\n                <SelectItem>after a Month</SelectItem>\n              </SelectContent>\n            </Select>\n            <Select>\n              <Label>Visible to</Label>\n              <SelectTrigger />\n              <SelectContent>\n                <SelectItem>Everyone</SelectItem>\n                <SelectItem>Organization</SelectItem>\n                <SelectItem>Public</SelectItem>\n              </SelectContent>\n            </Select>\n            <CheckboxField>\n              <Checkbox>Busy</Checkbox>\n              <Description>\n                When others mention you, assign you, or request your review, GitHub will let them\n                know that you have limited availability.\n              </Description>\n            </CheckboxField>\n          </div>\n        </DialogBody>\n        <DialogFooter>\n          <DialogClose>Clear Status</DialogClose>\n          <Button onPress={closeDialog}>Set Status</Button>\n        </DialogFooter>\n      </Dialog>\n      <SheetTrigger>\n        <PrimitiveButton aria-label=\"Open menu\">\n          <Avatar src=\"https://intentui.com/images/avatar/cobain.jpg\" alt=\"irsyadadl\" />\n        </PrimitiveButton>\n        <Sheet position=\"right\" isFloat={false}>\n          <SheetHeader className=\"flex flex-row gap-x-3.5 border-b sm:gap-x-3 sm:px-4 sm:pt-3 sm:pb-2\">\n            <Avatar src=\"https://intentui.com/images/avatar/cobain.jpg\" isSquare alt=\"cobain\" />\n            <div>\n              <SheetTitle className=\"text-base/4 sm:text-base/4\">Kurt Cobain</SheetTitle>\n              <SheetDescription>@cobain</SheetDescription>\n            </div>\n          </SheetHeader>\n          <SheetBody className=\"px-0 sm:px-0\">\n            <ul className=\"divide-y [&_li_ul]:p-4\">\n              {menuGroups.map((group) => (\n                <li key={group.id}>\n                  <ul className=\"grid grid-cols-[auto_1fr]\">\n                    {group.items.map(({ label, icon: Icon }) => (\n                      <li key={label} className=\"col-span-full grid grid-cols-subgrid\">\n                        <Link href=\"#\" className={dropdownItemStyles}>\n                          {Icon && <Icon />}\n                          <span slot=\"label\" className=\"col-start-2\">\n                            {label}\n                          </span>\n                        </Link>\n                      </li>\n                    ))}\n                  </ul>\n                </li>\n              ))}\n            </ul>\n          </SheetBody>\n          <SheetFooter className=\"border-t bg-muted/20 sm:p-4\">\n            <Button size=\"sm\" className=\"w-full justify-between\" intent=\"secondary\">\n              <span>Sign out</span>\n              <ArrowRightStartOnRectangleIcon />\n            </Button>\n          </SheetFooter>\n        </Sheet>\n      </SheetTrigger>\n    </>\n  )\n}\n",
      "type": "registry:page",
      "target": "app/sheet-menu-example/page.tsx"
    }
  ],
  "type": "registry:page"
}