{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "island",
  "title": "Island",
  "description": "The surface an island floats on: the popover colours, a corner that wraps a row of controls as a pill, rising in on enter, sinking out on exit, and a corner that follows its size on layout. The Cookie consent island and the Live activity island share it.",
  "dependencies": [],
  "registryDependencies": [
    "https://kinoui.com/r/theme.json"
  ],
  "files": [
    {
      "path": "registry/lib/island.ts",
      "content": "/*\n * The island: a surface that floats over the page, whose corner wraps a row\n * of controls as a pill and that grows into a panel, as the Cookie consent\n * island and the Live activity island do. It arrives on `enter`, leaves on\n * `exit`, and its corner follows its size on `layout`, so a `Swap` inside it\n * that changes its size moves it as one. Where it comes from and goes to,\n * and how far it rises, are each island's own: it is gone while marked\n * `data-closed`, hidden and, with `inert`, out of reach.\n */\n\n/**\n * The surface: the popover's colours, a border and a shadow, clipped so what\n * grows inside it never shows past its corner. `--island-padding` is the\n * space round a row of controls, and `--island-pill` the corner that wraps\n * them at it: a pill when the controls are, the shape's corner otherwise.\n */\nexport const islandSurfaceClassName =\n  'bg-popover text-popover-foreground pointer-events-auto max-w-full overflow-clip border shadow-lg [--island-padding:--spacing(2)] [--island-pill:min(calc(var(--control-height)/2+var(--island-padding)),calc(var(--control-radius)+var(--island-padding)))]'\n\n/**\n * Arriving, leaving and the corner's move, for an island whose states set\n * where it comes from. It is visible from the start of its entrance, so\n * focus can move into it at once, and hidden only once its exit has played.\n * Under reduced motion it only fades, and its corner takes its new shape at\n * once.\n */\nexport const islandMotionClassName =\n  '[transition:opacity_var(--motion-enter-duration)_var(--motion-enter-easing),translate_var(--motion-enter-duration)_var(--motion-enter-easing),visibility_0s,border-radius_var(--motion-layout-duration)_var(--motion-layout-easing)] motion-reduce:[transition:opacity_var(--motion-enter-duration)_var(--motion-enter-easing),visibility_0s] data-closed:[transition:opacity_var(--motion-exit-duration)_var(--motion-exit-easing),translate_var(--motion-exit-duration)_var(--motion-exit-easing),visibility_0s_var(--motion-exit-duration),border-radius_var(--motion-layout-duration)_var(--motion-layout-easing)] motion-reduce:data-closed:[transition:opacity_var(--motion-exit-duration)_var(--motion-exit-easing),visibility_0s_var(--motion-exit-duration)]'\n\n/**\n * Where the island sits: across the box the page places it in, letting the\n * pointer through round it, with the surface centred. The surface's\n * container queries read this box, named `island`.\n */\nexport const islandPlaceClassName =\n  '@container/island pointer-events-none flex w-full justify-center'\n",
      "type": "registry:lib",
      "target": "@lib/island.ts"
    }
  ],
  "type": "registry:lib"
}