{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "tw-floating",
  "type": "registry:lib",
  "title": "react-tw/lib/floating",
  "description": "react-tw/lib/floating 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": [
    "@purpurabog/ui@^2.3.0"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "src/react-tw/lib/floating.ts",
      "type": "registry:lib",
      "target": "components/ui/react-tw/lib/floating.ts",
      "content": "/** useFloating lives in the headless layer; the caret classes are the styled part. */\nexport { useFloating } from '@purpurabog/ui/headless';\n\n/**\n * Classes of a caret inside a floating box with `group/bubble` and `data-side` (from useFloating):\n * a triangle of the box's own background, `--_caret-w` × `--_caret-h` (Carbon popover caret 12×6).\n */\nexport const caretClasses = [\n    'pointer-events-none absolute h-(--_caret-h) w-(--_caret-w) bg-inherit',\n    'group-data-[side=top]/bubble:top-full group-data-[side=top]/bubble:left-(--_caret-start) group-data-[side=top]/bubble:[clip-path:polygon(0_0,100%_0,50%_100%)]',\n    'group-data-[side=bottom]/bubble:bottom-full group-data-[side=bottom]/bubble:left-(--_caret-start) group-data-[side=bottom]/bubble:[clip-path:polygon(50%_0,100%_100%,0_100%)]',\n    'group-data-[side=left]/bubble:top-(--_caret-start) group-data-[side=left]/bubble:left-full group-data-[side=left]/bubble:h-(--_caret-w) group-data-[side=left]/bubble:w-(--_caret-h) group-data-[side=left]/bubble:[clip-path:polygon(0_0,100%_50%,0_100%)]',\n    'group-data-[side=right]/bubble:top-(--_caret-start) group-data-[side=right]/bubble:right-full group-data-[side=right]/bubble:h-(--_caret-w) group-data-[side=right]/bubble:w-(--_caret-h) group-data-[side=right]/bubble:[clip-path:polygon(100%_0,0_50%,100%_100%)]',\n].join(' ');\n"
    }
  ]
}
