{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "core-hover-open",
  "type": "registry:lib",
  "title": "core/hover-open",
  "description": "Framework-free behaviour shared by the ui-* components (hover-open); no DOM, no lit. Copied from @purpurabog/ui 2.3.0; the package is the maintained source, this copy is yours to change. Icons from the Carbon Design System (Apache-2.0, © IBM Corp.; see THIRD-PARTY-NOTICES.md in the package).",
  "dependencies": [],
  "registryDependencies": [],
  "files": [
    {
      "path": "src/core/hover-open.ts",
      "type": "registry:lib",
      "target": "components/ui/core/hover-open.ts",
      "content": "/**\n * The rules of a popup that opens on hover (`<ui-popover open-on-hover>`, React-TW `Popover openOnHover`; beyond\n * Carbon, whose Popover has no hover mode): the tooltip's timings, and which pointers hover. The renderers run the\n * timers and listen to the DOM.\n */\n\n/** Rest time on the trigger before it opens, in ms (as the tooltip). */\nexport const HOVER_OPEN_DELAY = 100;\n\n/** Time after the pointer leaves the trigger and the popup before it closes, in ms (Carbon `leaveDelayMs`, as the tooltip). */\nexport const HOVER_CLOSE_DELAY = 300;\n\n/** Only a mouse hovers (a PointerEvent's `pointerType`). */\nexport const hovers = (pointerType: string) => pointerType === 'mouse';\n\n/** A finger or a pen has no hover: a tap on the trigger toggles instead. */\nexport const taps = (pointerType: string) => pointerType === 'touch' || pointerType === 'pen';\n"
    }
  ]
}
