{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "resizable",
  "type": "registry:ui",
  "title": "Resizable",
  "description": "Resize adjacent workspace panels.",
  "dependencies": [
    "react-resizable-panels@4.14.5"
  ],
  "registryDependencies": [
    "https://ghost-ui.com/r/ghost-tokens.json",
    "https://ghost-ui.com/r/utils.json",
    "https://ghost-ui.com/r/foundation.json"
  ],
  "files": [
    {
      "path": "src/components/ui/resizable.tsx",
      "type": "registry:component",
      "target": "@ui/resizable.tsx",
      "content": "import \"./foundation.css\";\nimport * as React from \"react\"\nimport { Group as PrimitiveGroup, Panel as PrimitivePanel, Separator as PrimitiveSeparator } from \"react-resizable-panels\"\nimport { cn } from \"@/lib/utils\"\nimport { ResizeGrip } from \"./resize-grip\"\nimport './resizable.css'\n\nexport type ResizableGroupProps = React.ComponentProps<typeof PrimitiveGroup>\nexport type ResizablePanelProps = React.ComponentProps<typeof PrimitivePanel>\nexport type ResizableHandleProps = React.ComponentProps<typeof PrimitiveSeparator> & { grip?: boolean }\nfunction Group({ className, ...props }: ResizableGroupProps) {\n  return <PrimitiveGroup {...props} className={cn(\"ui-resizable-group\", className)} />\n}\nfunction Panel({ className, ...props }: ResizablePanelProps) {\n  return <PrimitivePanel {...props} className={cn(\"ui-resizable-panel\", className)} />\n}\nfunction Handle({ className, children, grip = false, ...props }: ResizableHandleProps) {\n  return <PrimitiveSeparator {...props} className={cn(\"ui-resizable-handle\", grip && \"ui-resizable-handle--grip\", className)}>\n    {children ?? (grip ? <ResizeGrip className=\"ui-resizable-handle__grip\" /> : null)}\n  </PrimitiveSeparator>\n}\nexport const Resizable = Object.assign(Group, { Group, Panel, Handle, Grip: ResizeGrip })\nexport { Group, Panel, Handle, ResizeGrip }\n"
    },
    {
      "path": "src/components/ui/resizable.css",
      "type": "registry:file",
      "target": "@ui/resizable.css",
      "content": "@import \"./resize-grip.css\";\n\n.ui-resizable-group { display: flex; width: 100%; height: 100%; min-width: 0; min-height: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-xl); }\n.ui-resizable-panel { min-width: 0; min-height: 0; }\n\n/* Nested groups live inside a panel: the outer group already paints the frame.\n   Strip the inner frame so right/top + right/bottom do not draw their own border + radii. */\n.ui-resizable-panel > .ui-resizable-group { border: 0; border-radius: 0; background: transparent; }\n\n/* Imperative collapse/expand (and keyboard steps) animate; live drags do not.\n   The library drives the outer [data-panel] flex-grow, not .ui-resizable-panel. */\n.ui-resizable-group > [data-panel] { transition: flex-grow var(--motion-standard, 200ms) var(--motion-ease, ease-out); }\n.ui-resizable-group:has([data-separator=\"active\"]) > [data-panel] { transition: none; }\n.ui-resizable-panel { transition: opacity var(--motion-short, 120ms) var(--motion-ease, ease-out); }\n.ui-resizable-group:has([data-separator=\"active\"]) .ui-resizable-panel { transition: none; }\n.ui-resizable-handle { position: relative; z-index: 1; display: flex; flex: 0 0 1px; align-items: center; justify-content: center; background: var(--border); outline: none; }\n.ui-resizable-handle[aria-orientation=\"vertical\"] { width: 1px; cursor: col-resize; }\n.ui-resizable-handle[aria-orientation=\"horizontal\"] { height: 1px; cursor: row-resize; }\n.ui-resizable-handle::before { position: absolute; content: \"\"; }\n.ui-resizable-handle[aria-orientation=\"vertical\"]::before { inset-block: 0; inset-inline: -10px; }\n.ui-resizable-handle[aria-orientation=\"horizontal\"]::before { inset-inline: 0; inset-block: -10px; }\n/* 44px coarse target: visual stays 1px, pointer area grows. */\n@media (pointer: coarse) {\n  .ui-resizable-handle[aria-orientation=\"vertical\"]::before { inset-inline: -22px; }\n  .ui-resizable-handle[aria-orientation=\"horizontal\"]::before { inset-block: -22px; }\n}\n.ui-resizable-handle:focus-visible { background: var(--ring); outline: none; }\n.ui-resizable-handle[data-separator=\"active\"] { background: transparent; outline: none; }\n.ui-resizable-handle[data-separator=\"active\"]:not(.ui-resizable-handle--grip)::after { position: absolute; content: \"\"; inset: 0; border-inline-start: 1px dashed var(--primary); pointer-events: none; }\n@media (forced-colors: active) { .ui-resizable-handle:focus-visible { background: Highlight; forced-color-adjust: none; } }\n.ui-resizable-handle[aria-orientation=\"horizontal\"][data-separator=\"active\"]:not(.ui-resizable-handle--grip)::after { border-inline-start: 0; border-block-start: 1px dashed var(--primary); }\n\n"
    },
    {
      "path": "src/components/ui/resize-grip.css",
      "type": "registry:file",
      "target": "@ui/resize-grip.css",
      "content": "/* Shared appearance for panel and native-field resize indicators. */\n:where(.ui-resizable-handle, .ui-textarea, .ui-textarea-shell, .ui-text-input-group-shell, .ui-text-input-group, .ui-table__resize-handle, .ui-data-grid__resize) {\n  --ui-resize-grip-weight: 2px;\n  --ui-resize-grip-cap: calc(var(--ui-resize-grip-weight) / 2);\n  --ui-resize-duration: 180ms;\n  --ui-resize-easing: ease-out;\n}\n\n/* Root cause guard: the library owns touch-action inline, but text selection\n   is host-owned. Suppress selection/callout on every resize handle so a\n   mobile drag moves the panel instead of selecting nearby text. */\n:where(.ui-resizable-handle, .ui-table__resize-handle, .ui-data-grid__resize) {\n  touch-action: none;\n  user-select: none;\n  -webkit-user-select: none;\n  -webkit-touch-callout: none;\n  -webkit-tap-highlight-color: transparent;\n}\n\n/* While any separator is dragged, the surrounding surface must not select. */\n:where(\n  .ui-resizable-group:has([data-separator=\"active\"]),\n  .ui-table-wrap:has([data-resizing]),\n  .ui-data-grid:has([data-resizing])\n) {\n  user-select: none;\n  -webkit-user-select: none;\n}\n\n/* Context-free painted line shared by panels, native tables and DataGrid. */\n.ui-resize-grip {\n  display: block;\n  flex: 0 0 auto;\n  width: var(--ui-resize-grip-weight);\n  height: 24px;\n  max-height: 100%;\n  border-radius: 999px;\n  background: var(--muted-foreground);\n  pointer-events: none;\n  transition: width var(--ui-resize-duration) var(--ui-resize-easing), height var(--ui-resize-duration) var(--ui-resize-easing), background var(--ui-resize-duration) var(--ui-resize-easing);\n}\n.ui-resize-grip[data-axis=\"horizontal\"],\n.ui-resizable-handle[aria-orientation=\"horizontal\"] > .ui-resize-grip { width: 24px; max-width: 100%; height: var(--ui-resize-grip-weight); max-height: none; }\n.ui-resize-grip[data-state=\"hover\"],\n.ui-resizable-handle[data-separator=\"hover\"] > .ui-resize-grip { height: 48px; }\n.ui-resize-grip[data-axis=\"horizontal\"][data-state=\"hover\"],\n.ui-resizable-handle[aria-orientation=\"horizontal\"][data-separator=\"hover\"] > .ui-resize-grip { width: 48px; height: var(--ui-resize-grip-weight); }\n.ui-resize-grip[data-state=\"active\"],\n.ui-resizable-handle[data-separator=\"active\"] > .ui-resize-grip { width: 1px; height: 100%; box-sizing: border-box; border-inline-start: 1px dashed var(--primary); border-radius: 0; background: transparent; transition: none; }\n.ui-resize-grip[data-axis=\"horizontal\"][data-state=\"active\"],\n.ui-resizable-handle[aria-orientation=\"horizontal\"][data-separator=\"active\"] > .ui-resize-grip { width: 100%; height: 1px; border-inline-start: 0; border-block-start: 1px dashed var(--primary); }\n:is(.ui-resizable-handle, .ui-table__resize-handle, .ui-data-grid__resize):focus-visible:not([data-separator=\"active\"]) > .ui-resize-grip:not([data-state=\"active\"]) { background: var(--foreground); transition: none; }\n@media (forced-colors: active) {\n  :is(.ui-resizable-handle, .ui-table__resize-handle, .ui-data-grid__resize):focus-visible:not([data-separator=\"active\"]) > .ui-resize-grip:not([data-state=\"active\"]) { background: Highlight; forced-color-adjust: none; }\n}\n@media (prefers-reduced-motion: reduce) { .ui-resize-grip { transition: none; } }\n"
    },
    {
      "path": "src/components/ui/resize-grip.tsx",
      "type": "registry:component",
      "target": "@ui/resize-grip.tsx",
      "content": "import * as React from \"react\";\nimport \"./resize-grip.css\";\n\n/** Shared presentation for Resizable and native Table/Grid resize transactions. */\nexport function ResizeGrip({\n  axis = \"vertical\",\n  state,\n  className,\n  ...props\n}: React.ComponentProps<\"span\"> & {\n  axis?: \"vertical\" | \"horizontal\";\n  state?: \"hover\" | \"active\";\n}) {\n  return <span {...props} className={[\"ui-resize-grip\", className].filter(Boolean).join(\" \")} data-axis={axis} data-state={state} aria-hidden=\"true\" />;\n}\n"
    }
  ]
}
