"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("react"),o=require("../index-DEZRGktf.js"),t=require("lucide-react");require("react-router-dom");require("react-dom");function x(l){const[s,a]=r.useState(!1);return e.jsx(o.MacOSTahoePopover,{...l,isOpen:s,onClose:()=>a(!1),content:e.jsxs("div",{className:"flex flex-col gap-0.5",children:[e.jsx(o.MacOSTahoePopoverItem,{label:"New File",icon:e.jsx(t.FilePlus,{className:"h-4 w-4"}),shortcut:"⌘N",onClick:()=>a(!1)}),e.jsx(o.MacOSTahoePopoverItem,{label:"Open...",icon:e.jsx(t.FolderOpen,{className:"h-4 w-4"}),shortcut:"⌘O",onClick:()=>a(!1)}),e.jsx("div",{className:"my-1 h-px bg-(--macos-glass-border-subtle)"}),e.jsx(o.MacOSTahoePopoverItem,{label:"Delete",icon:e.jsx(t.Trash2,{className:"h-4 w-4"}),destructive:!0,onClick:()=>a(!1)})]}),children:e.jsx("button",{onClick:()=>a(!s),className:"rounded-lg border border-(--macos-glass-border) bg-(--macos-glass-clear-bg) px-4 py-2 text-[13px] text-(--macos-tahoe-text) backdrop-blur-sm transition-colors hover:bg-(--macos-tahoe-hover)",children:"Open Menu"})})}const m=()=>{const[l,s]=r.useState(!1),[a,c]=r.useState(!1),[n,i]=r.useState(!1),d=e.jsxs("div",{className:"flex flex-col gap-0.5",children:[e.jsx(o.MacOSTahoePopoverItem,{label:"New File",icon:e.jsx(t.FilePlus,{className:"h-4 w-4"}),shortcut:"⌘N",onClick:()=>s(!1)}),e.jsx(o.MacOSTahoePopoverItem,{label:"Open...",icon:e.jsx(t.FolderOpen,{className:"h-4 w-4"}),shortcut:"⌘O",onClick:()=>s(!1)}),e.jsx("div",{className:"my-1 h-px bg-(--macos-glass-border-subtle)"}),e.jsx(o.MacOSTahoePopoverItem,{label:"Save",icon:e.jsx(t.Save,{className:"h-4 w-4"}),shortcut:"⌘S",onClick:()=>s(!1)}),e.jsx(o.MacOSTahoePopoverItem,{label:"Export",icon:e.jsx(t.Download,{className:"h-4 w-4"}),onClick:()=>s(!1)}),e.jsx("div",{className:"my-1 h-px bg-(--macos-glass-border-subtle)"}),e.jsx(o.MacOSTahoePopoverItem,{label:"Delete",icon:e.jsx(t.Trash2,{className:"h-4 w-4"}),destructive:!0,onClick:()=>s(!1)})]});return e.jsxs(e.Fragment,{children:[e.jsx(o.HeroCard,{title:"Popover",description:"Glass-material popover with prominent blur, placement options, menu items with icons, shortcuts, and destructive actions.",icon:e.jsx("div",{className:"w-20 h-20 sm:w-24 sm:h-24 md:w-32 md:h-32 bg-linear-to-br from-green-500 via-teal-500 to-cyan-600 rounded-full flex items-center justify-center shadow-lg border border-green-500/50",children:e.jsx(t.MousePointerClick,{className:"w-10 h-10 sm:w-12 sm:h-12 md:w-16 md:h-16 text-white filter drop-shadow-lg"})})}),e.jsx(o.CardContainer,{children:e.jsx(o.CardTitle,{title:"Basic Menu",className:"mt-2 mb-2",children:e.jsx(o.MacOSTahoePopover,{isOpen:l,onClose:()=>s(!1),placement:"bottom-start",content:d,children:e.jsx("button",{onClick:()=>s(!l),className:"rounded-lg border border-(--macos-glass-border) bg-(--macos-glass-clear-bg) px-4 py-2 text-[13px] text-(--macos-tahoe-text) backdrop-blur-sm transition-colors hover:bg-(--macos-tahoe-hover)",children:"File Menu"})})})}),e.jsx(o.CardContainer,{children:e.jsx(o.CardTitle,{title:"Placements",className:"mt-2 mb-2",children:e.jsxs("div",{className:"flex flex-wrap gap-3",children:[e.jsx(o.MacOSTahoePopover,{isOpen:a,onClose:()=>c(!1),placement:"bottom-start",content:e.jsx("div",{className:"p-2 text-[13px] text-(--macos-tahoe-text)",children:"Bottom Start"}),children:e.jsx("button",{onClick:()=>c(!a),className:"rounded-lg border border-(--macos-glass-border) bg-(--macos-glass-clear-bg) px-3 py-1.5 text-[12px] text-(--macos-tahoe-text) backdrop-blur-sm",children:"bottom-start"})}),e.jsx(o.MacOSTahoePopover,{isOpen:n,onClose:()=>i(!1),placement:"bottom-end",content:e.jsx("div",{className:"p-2 text-[13px] text-(--macos-tahoe-text)",children:"Bottom End"}),children:e.jsx("button",{onClick:()=>i(!n),className:"rounded-lg border border-(--macos-glass-border) bg-(--macos-glass-clear-bg) px-3 py-1.5 text-[12px] text-(--macos-tahoe-text) backdrop-blur-sm",children:"bottom-end"})})]})})}),e.jsx(o.CardContainer,{children:e.jsx(o.CardTitle,{title:"Code Example",className:"mt-2 mb-2",children:e.jsx(o.CodeBlock,{code:`import { MacOSTahoePopover, MacOSTahoePopoverItem } from '@e-burgos/tucu-ui';

<MacOSTahoePopover
  isOpen={open}
  onClose={() => setOpen(false)}
  placement="bottom-start"
  content={
    <>
      <MacOSTahoePopoverItem
        label="New File"
        icon={<FilePlusIcon />}
        shortcut="⌘N"
        onClick={() => {}}
      />
      <MacOSTahoePopoverItem
        label="Delete"
        destructive
        onClick={() => {}}
      />
    </>
  }
>
  <button onClick={() => setOpen(true)}>Open</button>
</MacOSTahoePopover>`,language:"tsx"})})}),e.jsx(o.PropPlayground,{componentName:"MacOSTahoePopover",defaultValues:{placement:"bottom-start",minWidth:200},includeProps:["placement","minWidth"],excludeProps:["className","contentClassName","content","isOpen","onClose","children"],children:p=>e.jsx(x,{...p})}),e.jsx(o.AutoPropsTable,{componentName:"MacOSTahoePopover"})]})};exports.TahoePopoverSection=m;exports.default=m;
