{"version":3,"file":"Menu-DoPkFj7s.cjs","sources":["../../../node_modules/.pnpm/@radix-ui+react-dropdown-menu@2.1.24_@types+react-dom@19.2.3_@types+react@19.2.14__@typ_ef46fa68356af02092818752e799db46/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs","../src/components/Menu/Menu.tsx"],"sourcesContent":["\"use client\";\nvar __defProp = Object.defineProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\n\n// src/dropdown-menu.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport * as MenuPrimitive from \"@radix-ui/react-menu\";\nimport { createMenuScope } from \"@radix-ui/react-menu\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { jsx } from \"react/jsx-runtime\";\nvar DROPDOWN_MENU_NAME = \"DropdownMenu\";\nvar [createDropdownMenuContext, createDropdownMenuScope] = createContextScope(\n  DROPDOWN_MENU_NAME,\n  [createMenuScope]\n);\nvar useMenuScope = createMenuScope();\nvar [DropdownMenuProvider, useDropdownMenuContext] = createDropdownMenuContext(DROPDOWN_MENU_NAME);\nvar DropdownMenu = /* @__PURE__ */ __name((props) => {\n  const {\n    __scopeDropdownMenu,\n    children,\n    dir,\n    open: openProp,\n    defaultOpen,\n    onOpenChange,\n    modal = true\n  } = props;\n  const menuScope = useMenuScope(__scopeDropdownMenu);\n  const triggerRef = React.useRef(null);\n  const [open, setOpen] = useControllableState({\n    prop: openProp,\n    defaultProp: defaultOpen ?? false,\n    onChange: onOpenChange,\n    caller: DROPDOWN_MENU_NAME\n  });\n  return /* @__PURE__ */ jsx(\n    DropdownMenuProvider,\n    {\n      scope: __scopeDropdownMenu,\n      triggerId: useId(),\n      triggerRef,\n      contentId: useId(),\n      open,\n      onOpenChange: setOpen,\n      onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),\n      modal,\n      children: /* @__PURE__ */ jsx(MenuPrimitive.Root, { ...menuScope, open, onOpenChange: setOpen, dir, modal, children })\n    }\n  );\n}, \"DropdownMenu\");\nvar TRIGGER_NAME = \"DropdownMenuTrigger\";\nvar DropdownMenuTrigger = /* @__PURE__ */ React.forwardRef(\n  // blank line to reduce diff noise\n  /* @__PURE__ */ __name(function DropdownMenuTrigger2(props, forwardedRef) {\n    const { __scopeDropdownMenu, disabled = false, ...triggerProps } = props;\n    const context = useDropdownMenuContext(TRIGGER_NAME, __scopeDropdownMenu);\n    const menuScope = useMenuScope(__scopeDropdownMenu);\n    const composedRefs = useComposedRefs(forwardedRef, context.triggerRef);\n    return /* @__PURE__ */ jsx(MenuPrimitive.Anchor, { asChild: true, ...menuScope, children: /* @__PURE__ */ jsx(\n      Primitive.button,\n      {\n        type: \"button\",\n        id: context.triggerId,\n        \"aria-haspopup\": \"menu\",\n        \"aria-expanded\": context.open,\n        \"aria-controls\": context.open ? context.contentId : void 0,\n        \"data-state\": context.open ? \"open\" : \"closed\",\n        \"data-disabled\": disabled ? \"\" : void 0,\n        disabled,\n        ...triggerProps,\n        ref: composedRefs,\n        onPointerDown: composeEventHandlers(props.onPointerDown, (event) => {\n          if (!disabled && event.button === 0 && event.ctrlKey === false) {\n            context.onOpenToggle();\n            if (!context.open) event.preventDefault();\n          }\n        }),\n        onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n          if (disabled) return;\n          if ([\"Enter\", \" \"].includes(event.key)) context.onOpenToggle();\n          if (event.key === \"ArrowDown\") context.onOpenChange(true);\n          if ([\"Enter\", \" \", \"ArrowDown\"].includes(event.key)) event.preventDefault();\n        })\n      }\n    ) });\n  }, \"DropdownMenuTrigger\")\n);\nvar DropdownMenuPortal = /* @__PURE__ */ __name((props) => {\n  const { __scopeDropdownMenu, ...portalProps } = props;\n  const menuScope = useMenuScope(__scopeDropdownMenu);\n  return /* @__PURE__ */ jsx(MenuPrimitive.Portal, { ...menuScope, ...portalProps });\n}, \"DropdownMenuPortal\");\nvar CONTENT_NAME = \"DropdownMenuContent\";\nvar DropdownMenuContent = /* @__PURE__ */ React.forwardRef(\n  // blank line to reduce diff noise\n  /* @__PURE__ */ __name(function DropdownMenuContent2(props, forwardedRef) {\n    const { __scopeDropdownMenu, ...contentProps } = props;\n    const context = useDropdownMenuContext(CONTENT_NAME, __scopeDropdownMenu);\n    const menuScope = useMenuScope(__scopeDropdownMenu);\n    const hasInteractedOutsideRef = React.useRef(false);\n    return /* @__PURE__ */ jsx(\n      MenuPrimitive.Content,\n      {\n        id: context.contentId,\n        \"aria-labelledby\": context.triggerId,\n        ...menuScope,\n        ...contentProps,\n        ref: forwardedRef,\n        onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event) => {\n          if (!hasInteractedOutsideRef.current) context.triggerRef.current?.focus();\n          hasInteractedOutsideRef.current = false;\n          event.preventDefault();\n        }),\n        onInteractOutside: composeEventHandlers(props.onInteractOutside, (event) => {\n          const originalEvent = event.detail.originalEvent;\n          const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;\n          const isRightClick = originalEvent.button === 2 || ctrlLeftClick;\n          if (!context.modal || isRightClick) hasInteractedOutsideRef.current = true;\n        }),\n        style: {\n          ...props.style,\n          // re-namespace exposed content custom properties\n          ...{\n            \"--radix-dropdown-menu-content-transform-origin\": \"var(--radix-popper-transform-origin)\",\n            \"--radix-dropdown-menu-content-available-width\": \"var(--radix-popper-available-width)\",\n            \"--radix-dropdown-menu-content-available-height\": \"var(--radix-popper-available-height)\",\n            \"--radix-dropdown-menu-trigger-width\": \"var(--radix-popper-anchor-width)\",\n            \"--radix-dropdown-menu-trigger-height\": \"var(--radix-popper-anchor-height)\"\n          }\n        }\n      }\n    );\n  }, \"DropdownMenuContent\")\n);\nvar DropdownMenuGroup = /* @__PURE__ */ React.forwardRef(\n  // blank line to reduce diff noise\n  /* @__PURE__ */ __name(function DropdownMenuGroup2(props, forwardedRef) {\n    const { __scopeDropdownMenu, ...groupProps } = props;\n    const menuScope = useMenuScope(__scopeDropdownMenu);\n    return /* @__PURE__ */ jsx(MenuPrimitive.Group, { ...menuScope, ...groupProps, ref: forwardedRef });\n  }, \"DropdownMenuGroup\")\n);\nvar DropdownMenuLabel = /* @__PURE__ */ React.forwardRef(\n  // blank line to reduce diff noise\n  /* @__PURE__ */ __name(function DropdownMenuLabel2(props, forwardedRef) {\n    const { __scopeDropdownMenu, ...labelProps } = props;\n    const menuScope = useMenuScope(__scopeDropdownMenu);\n    return /* @__PURE__ */ jsx(MenuPrimitive.Label, { ...menuScope, ...labelProps, ref: forwardedRef });\n  }, \"DropdownMenuLabel\")\n);\nvar DropdownMenuItem = /* @__PURE__ */ React.forwardRef(\n  // blank line to reduce diff noise\n  /* @__PURE__ */ __name(function DropdownMenuItem2(props, forwardedRef) {\n    const { __scopeDropdownMenu, ...itemProps } = props;\n    const menuScope = useMenuScope(__scopeDropdownMenu);\n    return /* @__PURE__ */ jsx(MenuPrimitive.Item, { ...menuScope, ...itemProps, ref: forwardedRef });\n  }, \"DropdownMenuItem\")\n);\nvar DropdownMenuCheckboxItem = /* @__PURE__ */ React.forwardRef(/* @__PURE__ */ __name(function DropdownMenuCheckboxItem2(props, forwardedRef) {\n  const { __scopeDropdownMenu, ...checkboxItemProps } = props;\n  const menuScope = useMenuScope(__scopeDropdownMenu);\n  return /* @__PURE__ */ jsx(MenuPrimitive.CheckboxItem, { ...menuScope, ...checkboxItemProps, ref: forwardedRef });\n}, \"DropdownMenuCheckboxItem\"));\nvar DropdownMenuRadioGroup = /* @__PURE__ */ React.forwardRef(/* @__PURE__ */ __name(function DropdownMenuRadioGroup2(props, forwardedRef) {\n  const { __scopeDropdownMenu, ...radioGroupProps } = props;\n  const menuScope = useMenuScope(__scopeDropdownMenu);\n  return /* @__PURE__ */ jsx(MenuPrimitive.RadioGroup, { ...menuScope, ...radioGroupProps, ref: forwardedRef });\n}, \"DropdownMenuRadioGroup\"));\nvar DropdownMenuRadioItem = /* @__PURE__ */ React.forwardRef(/* @__PURE__ */ __name(function DropdownMenuRadioItem2(props, forwardedRef) {\n  const { __scopeDropdownMenu, ...radioItemProps } = props;\n  const menuScope = useMenuScope(__scopeDropdownMenu);\n  return /* @__PURE__ */ jsx(MenuPrimitive.RadioItem, { ...menuScope, ...radioItemProps, ref: forwardedRef });\n}, \"DropdownMenuRadioItem\"));\nvar DropdownMenuItemIndicator = /* @__PURE__ */ React.forwardRef(/* @__PURE__ */ __name(function DropdownMenuItemIndicator2(props, forwardedRef) {\n  const { __scopeDropdownMenu, ...itemIndicatorProps } = props;\n  const menuScope = useMenuScope(__scopeDropdownMenu);\n  return /* @__PURE__ */ jsx(MenuPrimitive.ItemIndicator, { ...menuScope, ...itemIndicatorProps, ref: forwardedRef });\n}, \"DropdownMenuItemIndicator\"));\nvar DropdownMenuSeparator = /* @__PURE__ */ React.forwardRef(/* @__PURE__ */ __name(function DropdownMenuSeparator2(props, forwardedRef) {\n  const { __scopeDropdownMenu, ...separatorProps } = props;\n  const menuScope = useMenuScope(__scopeDropdownMenu);\n  return /* @__PURE__ */ jsx(MenuPrimitive.Separator, { ...menuScope, ...separatorProps, ref: forwardedRef });\n}, \"DropdownMenuSeparator\"));\nvar DropdownMenuArrow = /* @__PURE__ */ React.forwardRef(\n  // blank line to reduce diff noise\n  /* @__PURE__ */ __name(function DropdownMenuArrow2(props, forwardedRef) {\n    const { __scopeDropdownMenu, ...arrowProps } = props;\n    const menuScope = useMenuScope(__scopeDropdownMenu);\n    return /* @__PURE__ */ jsx(MenuPrimitive.Arrow, { ...menuScope, ...arrowProps, ref: forwardedRef });\n  }, \"DropdownMenuArrow\")\n);\nvar DropdownMenuSub = /* @__PURE__ */ __name((props) => {\n  const { __scopeDropdownMenu, children, open: openProp, onOpenChange, defaultOpen } = props;\n  const menuScope = useMenuScope(__scopeDropdownMenu);\n  const [open, setOpen] = useControllableState({\n    prop: openProp,\n    defaultProp: defaultOpen ?? false,\n    onChange: onOpenChange,\n    caller: \"DropdownMenuSub\"\n  });\n  return /* @__PURE__ */ jsx(MenuPrimitive.Sub, { ...menuScope, open, onOpenChange: setOpen, children });\n}, \"DropdownMenuSub\");\nvar DropdownMenuSubTrigger = /* @__PURE__ */ React.forwardRef(/* @__PURE__ */ __name(function DropdownMenuSubTrigger2(props, forwardedRef) {\n  const { __scopeDropdownMenu, ...subTriggerProps } = props;\n  const menuScope = useMenuScope(__scopeDropdownMenu);\n  return /* @__PURE__ */ jsx(MenuPrimitive.SubTrigger, { ...menuScope, ...subTriggerProps, ref: forwardedRef });\n}, \"DropdownMenuSubTrigger\"));\nvar DropdownMenuSubContent = /* @__PURE__ */ React.forwardRef(/* @__PURE__ */ __name(function DropdownMenuSubContent2(props, forwardedRef) {\n  const { __scopeDropdownMenu, ...subContentProps } = props;\n  const menuScope = useMenuScope(__scopeDropdownMenu);\n  return /* @__PURE__ */ jsx(\n    MenuPrimitive.SubContent,\n    {\n      ...menuScope,\n      ...subContentProps,\n      ref: forwardedRef,\n      style: {\n        ...props.style,\n        // re-namespace exposed content custom properties\n        ...{\n          \"--radix-dropdown-menu-content-transform-origin\": \"var(--radix-popper-transform-origin)\",\n          \"--radix-dropdown-menu-content-available-width\": \"var(--radix-popper-available-width)\",\n          \"--radix-dropdown-menu-content-available-height\": \"var(--radix-popper-available-height)\",\n          \"--radix-dropdown-menu-trigger-width\": \"var(--radix-popper-anchor-width)\",\n          \"--radix-dropdown-menu-trigger-height\": \"var(--radix-popper-anchor-height)\"\n        }\n      }\n    }\n  );\n}, \"DropdownMenuSubContent\"));\nvar Root2 = DropdownMenu;\nvar Trigger = DropdownMenuTrigger;\nvar Portal2 = DropdownMenuPortal;\nvar Content2 = DropdownMenuContent;\nvar Group2 = DropdownMenuGroup;\nvar Label2 = DropdownMenuLabel;\nvar Item2 = DropdownMenuItem;\nvar CheckboxItem2 = DropdownMenuCheckboxItem;\nvar RadioGroup2 = DropdownMenuRadioGroup;\nvar RadioItem2 = DropdownMenuRadioItem;\nvar ItemIndicator2 = DropdownMenuItemIndicator;\nvar Separator2 = DropdownMenuSeparator;\nvar Arrow2 = DropdownMenuArrow;\nvar Sub2 = DropdownMenuSub;\nvar SubTrigger2 = DropdownMenuSubTrigger;\nvar SubContent2 = DropdownMenuSubContent;\nexport {\n  Arrow2 as Arrow,\n  CheckboxItem2 as CheckboxItem,\n  Content2 as Content,\n  DropdownMenu,\n  DropdownMenuArrow,\n  DropdownMenuCheckboxItem,\n  DropdownMenuContent,\n  DropdownMenuGroup,\n  DropdownMenuItem,\n  DropdownMenuItemIndicator,\n  DropdownMenuLabel,\n  DropdownMenuPortal,\n  DropdownMenuRadioGroup,\n  DropdownMenuRadioItem,\n  DropdownMenuSeparator,\n  DropdownMenuSub,\n  DropdownMenuSubContent,\n  DropdownMenuSubTrigger,\n  DropdownMenuTrigger,\n  Group2 as Group,\n  Item2 as Item,\n  ItemIndicator2 as ItemIndicator,\n  Label2 as Label,\n  Portal2 as Portal,\n  RadioGroup2 as RadioGroup,\n  RadioItem2 as RadioItem,\n  Root2 as Root,\n  Separator2 as Separator,\n  Sub2 as Sub,\n  SubContent2 as SubContent,\n  SubTrigger2 as SubTrigger,\n  Trigger,\n  createDropdownMenuScope\n};\n//# sourceMappingURL=index.mjs.map\n","'use client';\n\nimport { Children, cloneElement, forwardRef } from 'react';\nimport type { ComponentPropsWithoutRef, FC, HTMLAttributes, ReactElement, ReactNode } from 'react';\nimport type { OpenStateProps, PopperContentProps, TriggerProps } from '../../utils/primitiveProps';\nimport * as RadixMenu from '@radix-ui/react-dropdown-menu';\nimport { Check, ChevronRight, Circle } from 'lucide-react';\nimport { withSx } from '../../utils/withSx';\nimport type { SxProp } from '../Layout/sx';\n\n/* ── Root + Trigger ──────────────────────────────────────────────── */\n\n// Re-exported Radix primitives are annotated with explicit prop types so the\n// emitted .d.ts does not import `@radix-ui/*` — see utils/primitiveProps.ts.\nexport type MenuProps = OpenStateProps;\nexport const Menu = RadixMenu.Root as FC<MenuProps>;\n\nexport type MenuTriggerProps = TriggerProps;\nexport const MenuTrigger = RadixMenu.Trigger as FC<MenuTriggerProps>;\n\n/* ── Content (the popup panel) ───────────────────────────────────── */\n\n// Props declared explicitly (rather than inheriting radix's Content props via\n// ComponentPropsWithoutRef of a radix primitive) so the published .d.ts stays\n// self-contained and does not import `@radix-ui/react-dropdown-menu`.\nexport interface MenuContentProps extends ComponentPropsWithoutRef<'div'> {\n  className?: string;\n  /** Preferred side of the trigger to render against. */\n  side?: 'top' | 'right' | 'bottom' | 'left';\n  /** Distance in px from the trigger. Default: 6. */\n  sideOffset?: number;\n  /** Alignment against the trigger. */\n  align?: 'start' | 'center' | 'end';\n  /** Offset in px from the aligned edge. */\n  alignOffset?: number;\n  /** Visual size — controls padding + font size. Default: `md`. */\n  size?: 'sm' | 'md';\n  /**\n   * One-off CSS for the menu content panel, same as `Box`'s `sx`: each value\n   * may be a scalar or a responsive breakpoint map (`{ base, sm, md, lg, xl }`).\n   * Scalar-only sx merges into inline style; responsive sx injects a scoped class.\n   */\n  sx?: SxProp;\n}\n\n/**\n * The popup panel. Wrap in `<Menu>` and pair with `<MenuTrigger>`.\n *\n * @example\n *   <Menu>\n *     <MenuTrigger asChild><Button>Actions</Button></MenuTrigger>\n *     <MenuContent>\n *       <MenuItem onSelect={...}>Edit</MenuItem>\n *       <MenuSeparator />\n *       <MenuItem destructive onSelect={...}>Delete</MenuItem>\n *     </MenuContent>\n *   </Menu>\n */\nexport const MenuContent = forwardRef<HTMLDivElement, MenuContentProps>(function MenuContent(\n  { className, style, sx, size = 'md', sideOffset = 6, children, ...rest },\n  ref,\n) {\n  const { className: classes, style: mergedStyle, styleTag } = withSx(\n    sx, style, 'cny-menu-content', `size-${size}`, className,\n  );\n  return (\n    <RadixMenu.Portal>\n      <RadixMenu.Content\n        ref={ref}\n        sideOffset={sideOffset}\n        className={classes}\n        style={mergedStyle}\n        {...rest}\n      >\n        {styleTag}\n        {children}\n      </RadixMenu.Content>\n    </RadixMenu.Portal>\n  );\n});\n\n/* ── Item ────────────────────────────────────────────────────────── */\n\nexport interface MenuItemProps extends Omit<ComponentPropsWithoutRef<'div'>, 'onSelect'> {\n  /** Disable selecting this item. */\n  disabled?: boolean;\n  /** Fires when the item is selected (click or Enter). */\n  onSelect?: (event: Event) => void;\n  /** Optional text used for typeahead matching. */\n  textValue?: string;\n  /** Leading icon. */\n  icon?: ReactNode;\n  /** Right-aligned shortcut hint (e.g. `⌘C`). */\n  shortcut?: ReactNode;\n  /** Apply danger styling (red text, danger hover). */\n  destructive?: boolean;\n  /**\n   * Render the single child (e.g. Next `<Link href>`) as the item, so a menu entry can\n   * be a real link (client-side routing, middle-click). The child's own children become\n   * the label.\n   */\n  asChild?: boolean;\n  /** One-off CSS, same as `Box`'s `sx` (scalar or responsive `{ base, sm, md, lg, xl }` map). */\n  sx?: SxProp;\n}\n\nexport const MenuItem = forwardRef<HTMLDivElement, MenuItemProps>(function MenuItem(\n  { icon, shortcut, destructive, asChild = false, className, style, sx, children, ...rest },\n  ref,\n) {\n  const { className: classes, style: mergedStyle, styleTag } = withSx(\n    sx, style, 'cny-menu-item', destructive && 'is-destructive', className,\n  );\n  const child = asChild ? (Children.only(children) as ReactElement<{ children?: ReactNode }>) : null;\n  const content = (\n    <>\n      {styleTag}\n      {icon && <span className=\"cny-menu-item-icon\">{icon}</span>}\n      <span className=\"cny-menu-item-label\">{child ? child.props.children : children}</span>\n      {shortcut && <span className=\"cny-menu-item-shortcut\">{shortcut}</span>}\n    </>\n  );\n  return (\n    <RadixMenu.Item\n      ref={ref}\n      className={classes}\n      style={mergedStyle}\n      asChild={asChild}\n      {...rest}\n    >\n      {child ? cloneElement(child, undefined, content) : content}\n    </RadixMenu.Item>\n  );\n});\n\n/* ── Checkbox item ───────────────────────────────────────────────── */\n\nexport interface MenuCheckboxItemProps extends Omit<ComponentPropsWithoutRef<'div'>, 'onSelect'> {\n  /** Controlled checked state. */\n  checked?: boolean;\n  /** Fires when the checked state changes. */\n  onCheckedChange?: (checked: boolean) => void;\n  /** Disable selecting this item. */\n  disabled?: boolean;\n  /** Fires when the item is selected (click or Enter). */\n  onSelect?: (event: Event) => void;\n  /** Optional text used for typeahead matching. */\n  textValue?: string;\n  shortcut?: ReactNode;\n  /** One-off CSS, same as `Box`'s `sx` (scalar or responsive `{ base, sm, md, lg, xl }` map). */\n  sx?: SxProp;\n}\n\nexport const MenuCheckboxItem = forwardRef<HTMLDivElement, MenuCheckboxItemProps>(\n  function MenuCheckboxItem({ shortcut, className, style, sx, children, ...rest }, ref) {\n    const { className: classes, style: mergedStyle, styleTag } = withSx(sx, style, 'cny-menu-item is-check', className);\n    return (\n      <RadixMenu.CheckboxItem ref={ref} className={classes} style={mergedStyle} {...rest}>\n        {styleTag}\n        <span className=\"cny-menu-item-icon\">\n          <RadixMenu.ItemIndicator>\n            <Check size={13} aria-hidden=\"true\" />\n          </RadixMenu.ItemIndicator>\n        </span>\n        <span className=\"cny-menu-item-label\">{children}</span>\n        {shortcut && <span className=\"cny-menu-item-shortcut\">{shortcut}</span>}\n      </RadixMenu.CheckboxItem>\n    );\n  },\n);\n\n/* ── Radio group + radio item ────────────────────────────────────── */\n\nexport interface MenuRadioGroupProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {\n  /** Controlled selected value. */\n  value?: string;\n  /** Fires when the selected value changes. */\n  onValueChange?: (value: string) => void;\n}\nexport const MenuRadioGroup = RadixMenu.RadioGroup as FC<MenuRadioGroupProps>;\n\nexport interface MenuRadioItemProps extends Omit<ComponentPropsWithoutRef<'div'>, 'onSelect'> {\n  /** The value of this radio item within its group. */\n  value: string;\n  /** Disable selecting this item. */\n  disabled?: boolean;\n  /** Fires when the item is selected (click or Enter). */\n  onSelect?: (event: Event) => void;\n  /** Optional text used for typeahead matching. */\n  textValue?: string;\n  shortcut?: ReactNode;\n  /** One-off CSS, same as `Box`'s `sx` (scalar or responsive `{ base, sm, md, lg, xl }` map). */\n  sx?: SxProp;\n}\n\nexport const MenuRadioItem = forwardRef<HTMLDivElement, MenuRadioItemProps>(\n  function MenuRadioItem({ shortcut, className, style, sx, children, ...rest }, ref) {\n    const { className: classes, style: mergedStyle, styleTag } = withSx(sx, style, 'cny-menu-item is-radio', className);\n    return (\n      <RadixMenu.RadioItem ref={ref} className={classes} style={mergedStyle} {...rest}>\n        {styleTag}\n        <span className=\"cny-menu-item-icon\">\n          <RadixMenu.ItemIndicator>\n            <Circle size={6} fill=\"currentColor\" aria-hidden=\"true\" />\n          </RadixMenu.ItemIndicator>\n        </span>\n        <span className=\"cny-menu-item-label\">{children}</span>\n        {shortcut && <span className=\"cny-menu-item-shortcut\">{shortcut}</span>}\n      </RadixMenu.RadioItem>\n    );\n  },\n);\n\n/* ── Group label + separator ─────────────────────────────────────── */\n\nexport interface MenuLabelProps extends ComponentPropsWithoutRef<'div'> {\n  /** One-off CSS, same as `Box`'s `sx` (scalar or responsive `{ base, sm, md, lg, xl }` map). */\n  sx?: SxProp;\n}\n\nexport const MenuLabel = forwardRef<HTMLDivElement, MenuLabelProps>(function MenuLabel(\n  { className, style, sx, children, ...rest },\n  ref,\n) {\n  const { className: classes, style: mergedStyle, styleTag } = withSx(sx, style, 'cny-menu-label', className);\n  return (\n    <RadixMenu.Label ref={ref} className={classes} style={mergedStyle} {...rest}>\n      {styleTag}\n      {children}\n    </RadixMenu.Label>\n  );\n});\n\nexport interface MenuSeparatorProps extends HTMLAttributes<HTMLDivElement> {\n  /** One-off CSS, same as `Box`'s `sx` (scalar or responsive `{ base, sm, md, lg, xl }` map). */\n  sx?: SxProp;\n}\n\nexport const MenuSeparator = forwardRef<HTMLDivElement, MenuSeparatorProps>(\n  function MenuSeparator({ className, style, sx, ...rest }, ref) {\n    const { className: classes, style: mergedStyle, styleTag } = withSx(sx, style, 'cny-menu-separator', className);\n    return (\n      <RadixMenu.Separator ref={ref} className={classes} style={mergedStyle} {...rest}>\n        {styleTag}\n      </RadixMenu.Separator>\n    );\n  },\n);\n\n/* ── Submenu ─────────────────────────────────────────────────────── */\n\nexport interface MenuSubProps {\n  /** Controlled open state of the submenu. */\n  open?: boolean;\n  /** Uncontrolled initial open state. */\n  defaultOpen?: boolean;\n  /** Fires when the submenu opens or closes. */\n  onOpenChange?: (open: boolean) => void;\n  children?: ReactNode;\n}\nexport const MenuSub = RadixMenu.Sub as FC<MenuSubProps>;\n\nexport interface MenuSubTriggerProps extends ComponentPropsWithoutRef<'div'> {\n  /** Disable opening this submenu. */\n  disabled?: boolean;\n  /** Optional text used for typeahead matching. */\n  textValue?: string;\n  icon?: ReactNode;\n  /** One-off CSS, same as `Box`'s `sx` (scalar or responsive `{ base, sm, md, lg, xl }` map). */\n  sx?: SxProp;\n}\n\nexport const MenuSubTrigger = forwardRef<HTMLDivElement, MenuSubTriggerProps>(\n  function MenuSubTrigger({ icon, className, style, sx, children, ...rest }, ref) {\n    const { className: classes, style: mergedStyle, styleTag } = withSx(sx, style, 'cny-menu-item is-sub', className);\n    return (\n      <RadixMenu.SubTrigger ref={ref} className={classes} style={mergedStyle} {...rest}>\n        {styleTag}\n        {icon && <span className=\"cny-menu-item-icon\">{icon}</span>}\n        <span className=\"cny-menu-item-label\">{children}</span>\n        <span className=\"cny-menu-item-chevron\">\n          <ChevronRight size={13} aria-hidden=\"true\" />\n        </span>\n      </RadixMenu.SubTrigger>\n    );\n  },\n);\n\nexport type MenuSubContentProps = Omit<PopperContentProps, 'align'> & {\n  /** Submenus open flush with the start or end of their trigger row; `center` is not supported. */\n  align?: 'start' | 'end';\n  /** One-off CSS, same as `Box`'s `sx` (scalar or responsive `{ base, sm, md, lg, xl }` map). */\n  sx?: SxProp;\n};\n\nexport const MenuSubContent = forwardRef<HTMLDivElement, MenuSubContentProps>(\n  function MenuSubContent({ className, style, sx, children, ...rest }, ref) {\n    const { className: classes, style: mergedStyle, styleTag } = withSx(sx, style, 'cny-menu-content', className);\n    return (\n      <RadixMenu.Portal>\n        <RadixMenu.SubContent ref={ref} className={classes} style={mergedStyle} {...rest}>\n          {styleTag}\n          {children}\n        </RadixMenu.SubContent>\n      </RadixMenu.Portal>\n    );\n  },\n);\n"],"names":["__defProp","__name","target","value","DROPDOWN_MENU_NAME","createDropdownMenuContext","createDropdownMenuScope","createContextScope","createMenuScope","useMenuScope","DropdownMenuProvider","useDropdownMenuContext","DropdownMenu","props","__scopeDropdownMenu","children","dir","openProp","defaultOpen","onOpenChange","modal","menuScope","triggerRef","React","open","setOpen","useControllableState","jsx","useId","prevOpen","MenuPrimitive.Root","TRIGGER_NAME","DropdownMenuTrigger","forwardedRef","disabled","triggerProps","context","composedRefs","useComposedRefs","MenuPrimitive.Anchor","Primitive","composeEventHandlers","event","DropdownMenuPortal","portalProps","MenuPrimitive.Portal","CONTENT_NAME","DropdownMenuContent","contentProps","hasInteractedOutsideRef","MenuPrimitive.Content","_a","originalEvent","ctrlLeftClick","isRightClick","DropdownMenuLabel","labelProps","MenuPrimitive.Label","DropdownMenuItem","itemProps","MenuPrimitive.Item","DropdownMenuCheckboxItem","checkboxItemProps","MenuPrimitive.CheckboxItem","DropdownMenuRadioGroup","radioGroupProps","MenuPrimitive.RadioGroup","DropdownMenuRadioItem","radioItemProps","MenuPrimitive.RadioItem","DropdownMenuItemIndicator","itemIndicatorProps","MenuPrimitive.ItemIndicator","DropdownMenuSeparator","separatorProps","MenuPrimitive.Separator","DropdownMenuSub","MenuPrimitive.Sub","DropdownMenuSubTrigger","subTriggerProps","MenuPrimitive.SubTrigger","DropdownMenuSubContent","subContentProps","MenuPrimitive.SubContent","Root2","Trigger","Portal2","Content2","Label2","Item2","CheckboxItem2","RadioGroup2","RadioItem2","ItemIndicator2","Separator2","Sub2","SubTrigger2","SubContent2","Menu","RadixMenu.Root","MenuTrigger","RadixMenu.Trigger","MenuContent","forwardRef","className","style","sx","size","sideOffset","rest","ref","classes","mergedStyle","styleTag","withSx","RadixMenu.Portal","jsxs","RadixMenu.Content","MenuItem","icon","shortcut","destructive","asChild","child","Children","content","Fragment","RadixMenu.Item","cloneElement","MenuCheckboxItem","RadixMenu.CheckboxItem","RadixMenu.ItemIndicator","Check","MenuRadioGroup","RadixMenu.RadioGroup","MenuRadioItem","RadixMenu.RadioItem","Circle","MenuLabel","RadixMenu.Label","MenuSeparator","RadixMenu.Separator","MenuSub","RadixMenu.Sub","MenuSubTrigger","RadixMenu.SubTrigger","ChevronRight","MenuSubContent","RadixMenu.SubContent"],"mappings":"mmBACA,IAAIA,EAAY,OAAO,eACnBC,EAAS,CAACC,EAAQC,IAAUH,EAAUE,EAAQ,OAAQ,CAAE,MAAAC,EAAO,aAAc,GAAM,EAanFC,EAAqB,eACrB,CAACC,EAA2BC,EAAuB,EAAIC,EAAAA,mBACzDH,EACA,CAACI,EAAAA,eAAe,CAClB,EACIC,EAAeD,EAAAA,gBAAe,EAC9B,CAACE,EAAsBC,CAAsB,EAAIN,EAA0BD,CAAkB,EAC7FQ,EAA+BX,EAAQY,GAAU,CACnD,KAAM,CACJ,oBAAAC,EACA,SAAAC,EACA,IAAAC,EACA,KAAMC,EACN,YAAAC,EACA,aAAAC,EACA,MAAAC,EAAQ,EACZ,EAAMP,EACEQ,EAAYZ,EAAaK,CAAmB,EAC5CQ,EAAaC,EAAM,OAAO,IAAI,EAC9B,CAACC,EAAMC,CAAO,EAAIC,uBAAqB,CAC3C,KAAMT,EACN,YAAaC,GAAe,GAC5B,SAAUC,EACV,OAAQf,CACZ,CAAG,EACD,OAAuBuB,EAAAA,IACrBjB,EACA,CACE,MAAOI,EACP,UAAWc,EAAAA,MAAK,EAChB,WAAAN,EACA,UAAWM,EAAAA,MAAK,EAChB,KAAAJ,EACA,aAAcC,EACd,aAAcF,EAAM,YAAY,IAAME,EAASI,GAAa,CAACA,CAAQ,EAAG,CAACJ,CAAO,CAAC,EACjF,MAAAL,EACA,SAA0BO,EAAAA,IAAIG,QAAoB,CAAE,GAAGT,EAAW,KAAAG,EAAM,aAAcC,EAAS,IAAAT,EAAK,MAAAI,EA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