{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "resizable",
  "title": "Resizable",
  "description": "Panels side by side (or stacked) with a draggable handle between each pair: a file list beside an editor, a preview above a console.",
  "registryDependencies": [
    "@ouro/lib-class-name-check",
    "@ouro/lib-cn",
    "@ouro/lib-dev",
    "@ouro/lib-env",
    "@ouro/lib-touch-target",
    "@ouro/lib-use-dev-messages",
    "@ouro/lib-use-keyboard-scrollable"
  ],
  "files": [
    {
      "path": "registry/ouro/components/ouro/resizable/resizable-styles.ts",
      "content": "export {\n  clampSize,\n  gripClass,\n  groupClass,\n  handleClass,\n  hitAreaClass,\n  initialSizes,\n  KEY_STEP,\n  limits,\n  panelClass,\n  parseSaved,\n  readSavedText,\n  storageKey,\n  subscribeStorage,\n  type PanelLimits,\n};\n\n// Class strings, values and helpers for Resizable and its parts, apart from the components\n// so each component file exports only components (React Fast Refresh). Class strings are\n// literal so the app's Tailwind finds them when it compiles.\n\n/** A panel's size limits and default, in percent of the group. @internal */\ninterface PanelLimits {\n  defaultSize: number | undefined;\n  minSize: number;\n  maxSize: number;\n  collapsible: boolean;\n}\n\n/** How far one arrow key press moves a handle, in percent of the group. @internal */\nconst KEY_STEP = 10;\n\n/** The localStorage key for a group's `autoSaveId`. @internal */\nconst storageKey = (autoSaveId: string) => `ouro-resizable:${autoSaveId}`;\n\n/** @internal */\nconst groupClass = {\n  horizontal: \"flex h-full w-full min-h-0 min-w-0 data-ouro-resizing:select-none\",\n  vertical: \"flex h-full w-full min-h-0 min-w-0 flex-col data-ouro-resizing:select-none\",\n} as const;\n\n/** A panel's scroll box: it fills the panel and scrolls its own content when the content is larger. @internal */\nconst panelClass =\n  \"peer relative box-border min-h-0 min-w-0 flex-1 overflow-auto outline-none focus-visible:isolate [[data-collapsed]>&]:hidden \" +\n  \"forced-colors:[&[tabindex='0']]:outline-1 forced-colors:[&[tabindex='0']]:outline-solid forced-colors:[&[tabindex='0']]:-outline-offset-1\";\n\n/**\n * The handle: a 1px line in the border color that turns the ring color on hover, focus\n * and drag. A touch drag across it resizes; along it the touch is the page's, so a scroll\n * that starts on the handle's 44px touch target still scrolls (`touch-pan-y` on a handle\n * between side-by-side panels, `touch-pan-x` on one between stacked panels).\n *\n * @internal\n * @claim \"A touch drag across it resizes\" registry/ouro/components/ouro/resizable/resizable.touch.test.tsx verify:testExists(registry/ouro/components/ouro/resizable/resizable.touch.test.tsx::resizes with a touch drag instead of scrolling the page)\n * @claim \"A touch drag across it resizes\" registry/ouro/components/ouro/resizable/resizable.touch.test.tsx verify:testExists(registry/ouro/components/ouro/resizable/resizable.touch.test.tsx::lets a vertical swipe that starts on the handle scroll the page, and leaves the sizes alone)\n * @claim \"The handle: a 1px line in\" registry/ouro/components/ouro/resizable/resizable-styles.ts verify:fileLine(registry/ouro/components/ouro/resizable/resizable-styles.ts, /bg-border\\stouch-pan-y\\sselect-none\\s/)\n * @claim \"The handle: a 1px line in\" registry/ouro/components/ouro/resizable/resizable-styles.ts verify:fileLine(registry/ouro/components/ouro/resizable/resizable-styles.ts, / pointer-fine:hover:bg-ring active:bg-ring /)\n */\nconst handleClass = {\n  horizontal:\n    \"relative z-1 flex w-px shrink-0 cursor-col-resize items-center justify-center bg-border touch-pan-y select-none \" +\n    \"transition-colors duration-(--ouro-duration-fast) ease-[ease] pointer-fine:hover:bg-ring active:bg-ring \" +\n    \"outline-ring outline-offset-1 focus-visible:bg-ring focus-visible:outline-2 focus-visible:outline-solid\",\n  vertical:\n    \"relative z-1 flex h-px w-full shrink-0 cursor-row-resize items-center justify-center bg-border touch-pan-x select-none \" +\n    \"transition-colors duration-(--ouro-duration-fast) ease-[ease] pointer-fine:hover:bg-ring active:bg-ring \" +\n    \"outline-ring outline-offset-1 focus-visible:bg-ring focus-visible:outline-2 focus-visible:outline-solid\",\n} as const;\n\n/**\n * The handle's hit area with a fine pointer: 4px each side of the line. A coarse pointer gets 44px from `TouchTarget`. @internal\n *\n * @claim \"The handle's hit area with a\" registry/ouro/components/ouro/resizable/resizable.test.tsx verify:testExists(registry/ouro/components/ouro/resizable/resizable.test.tsx::Resizable handle (window splitter) > gives the handle a hit area wider than its line)\n * @claim \"A coarse pointer gets 44px from\" registry/ouro/components/ouro/resizable/resizable.tsx verify:fileLine(registry/ouro/components/ouro/resizable/resizable.tsx, /<TouchTarget/)\n */\nconst hitAreaClass = {\n  horizontal: \"absolute inset-y-0 -inset-x-1\",\n  vertical: \"absolute inset-x-0 -inset-y-1\",\n} as const;\n\n/** The grip on the handle, so it reads as something to drag. @internal */\nconst gripClass = {\n  horizontal: \"pointer-events-none relative h-6 w-1.5 shrink-0 rounded-full border border-solid border-border bg-background\",\n  vertical: \"pointer-events-none relative h-1.5 w-6 shrink-0 rounded-full border border-solid border-border bg-background\",\n} as const;\n\n/**\n * The starting sizes: each panel's `defaultSize`, with the rest shared equally between the\n * panels that have none, scaled so they add up to 100.\n *\n * @internal\n * @claim \"The starting sizes: each panel's `defaultSize`\" registry/ouro/components/ouro/resizable/resizable.test.tsx verify:testExists(registry/ouro/components/ouro/resizable/resizable.test.tsx::Resizable layout > lays panels side by side at their default sizes with a handle between)\n * @claim \"The starting sizes: each panel's `defaultSize`\" registry/ouro/components/ouro/resizable/resizable.test.tsx verify:testExists(registry/ouro/components/ouro/resizable/resizable.test.tsx::Resizable layout > shares the space left over between panels without a defaultSize)\n */\nfunction initialSizes(panels: readonly PanelLimits[]): number[] {\n  const defined = panels.reduce((sum, panel) => sum + (panel.defaultSize ?? 0), 0);\n  const open = panels.filter((panel) => panel.defaultSize === undefined).length;\n  const share = Math.max(0, 100 - defined) / Math.max(open, 1);\n  const sizes = panels.map((panel) => panel.defaultSize ?? share);\n  const total = Math.max(sizes.reduce((sum, size) => sum + size, 0), Number.EPSILON);\n  return sizes.map((size) => (size * 100) / total);\n}\n\n/**\n * The range the panel before handle `index` can take, given its limits and the limits of\n * the panel after it (the two share their combined size).\n *\n * @internal\n * @claim \"The range the panel before handle\" registry/ouro/components/ouro/resizable/resizable.test.tsx verify:testExists(registry/ouro/components/ouro/resizable/resizable.test.tsx::Resizable handle (window splitter) > resizes when dragged with a pointer, within the panels' limits)\n * @claim \"The range the panel before handle\" registry/ouro/components/ouro/resizable/resizable.test.tsx verify:testExists(registry/ouro/components/ouro/resizable/resizable.test.tsx::Resizable handle (window splitter) > is a focusable separator for the panel before it)\n */\nfunction limits(sizes: readonly number[], index: number, panels: readonly PanelLimits[]): { min: number; max: number } {\n  const total = sizes[index]! + sizes[index + 1]!;\n  const before = panels[index]!;\n  const after = panels[index + 1]!;\n  return {\n    min: before.collapsible && total <= after.maxSize ? 0 : Math.max(before.minSize, total - after.maxSize),\n    max: after.collapsible && before.maxSize >= total ? total : Math.min(before.maxSize, total - after.minSize),\n  };\n}\n\n/**\n * New sizes with the panel before handle `index` at `size`, kept within both panels'\n * limits; the panel after it takes up the difference. A collapsible panel's size between 0\n * and its minSize snaps to the nearer of the two; on a tie the handle's direction decides.\n *\n * @internal\n * @claim \"A collapsible panel's size between 0\" registry/ouro/components/ouro/resizable/resizable.test.tsx verify:testExists(registry/ouro/components/ouro/resizable/resizable.test.tsx::Resizable handle (window splitter) > snaps a drag that lands under a collapsible panel's minSize to 0 or to minSize, by half)\n */\nfunction clampSize(sizes: readonly number[], index: number, size: number, panels: readonly PanelLimits[]): number[] {\n  const result = [...sizes];\n  const shrinking = size < sizes[index]!;\n  const growing = size > sizes[index]!;\n  // A press that moves nothing changes nothing, even from a size the default sizes left in a gap.\n  if (!shrinking && !growing) return result;\n  const { min, max } = limits(sizes, index, panels);\n  const before = panels[index]!;\n  const after = panels[index + 1]!;\n  const total = sizes[index]! + sizes[index + 1]!;\n  let next = Math.min(Math.max(size, min), max);\n  // The snap targets: 0 and minSize for a panel before the handle, total - minSize and total for one after it. A non-collapsible\n  // panel's limits keep its size out of these gaps, so they need no check of their own.\n  let ends: readonly number[] | undefined;\n  // Stryker disable next-line EqualityOperator: at the edge itself the nearer end is the size it already has, so >= snaps it to where it is.\n  const intoAfterGap = next > total - after.minSize;\n  if (next < before.minSize) ends = [0, before.minSize];\n  else if (intoAfterGap) ends = [total - after.minSize, total];\n  if (ends) {\n    // On a tie the handle's direction decides: a shrinking handle closes the panel before it and opens the one after it to minSize; a growing one the reverse.\n    const target = next;\n    let gap = Infinity;\n    for (const end of shrinking ? ends : [...ends].reverse()) {\n      const distance = Math.abs(end - target);\n      if (end >= min && end <= max && distance < gap) {\n        next = end;\n        gap = distance;\n      }\n    }\n  }\n  result[index] = next;\n  result[index + 1] = total - next;\n  return result;\n}\n\n/**\n * Whether a saved value is a layout for `count` panels: that many numbers adding up to 100. @internal\n *\n * @claim \"Whether a saved value is a\" registry/ouro/components/ouro/resizable/resizable.test.tsx verify:testExists(registry/ouro/components/ouro/resizable/resizable.test.tsx::Resizable autoSaveId > restores and saves the layout in localStorage)\n * @claim \"Whether a saved value is a\" registry/ouro/components/ouro/resizable/resizable-styles.ts verify:fileLine(registry/ouro/components/ouro/resizable/resizable-styles.ts, /Math\\.abs\\(value\\.reduce/)\n */\nfunction isSavedLayout(value: unknown, count: number): value is number[] {\n  return (\n    Array.isArray(value) &&\n    value.length === count &&\n    value.every((size) => Number.isFinite(size)) &&\n    Math.abs(value.reduce((sum: number, size: number) => sum + size, 0) - 100) < 0.5\n  );\n}\n\n/**\n * The text saved under `autoSaveId`, or `null` when there is none or storage is\n * unavailable (private mode, a sandbox). Text, not the parsed layout, so React's external\n * store sees the same snapshot until the saved value changes.\n *\n * @internal\n * @claim \"The text saved under `autoSaveId`, or\" registry/ouro/components/ouro/resizable/resizable.test.tsx verify:testExists(registry/ouro/components/ouro/resizable/resizable.test.tsx::Resizable autoSaveId > keeps working when storage throws)\n * @claim \"The text saved under `autoSaveId`, or\" registry/ouro/components/ouro/resizable/resizable.test.tsx verify:testExists(registry/ouro/components/ouro/resizable/resizable.test.tsx::Resizable autoSaveId > starts at the default sizes when nothing is saved yet)\n */\nfunction readSavedText(autoSaveId: string | undefined): string | null {\n  if (!autoSaveId) return null;\n  try {\n    return localStorage.getItem(storageKey(autoSaveId));\n  } catch {\n    return null;\n  }\n}\n\n/**\n * The smallest size a saved panel keeps: 0 for a collapsible panel saved closed, else its minSize.\n *\n * @internal\n * @claim \"The smallest size a saved panel keeps\" registry/ouro/components/ouro/resizable/resizable.test.tsx verify:testExists(registry/ouro/components/ouro/resizable/resizable.test.tsx::Resizable autoSaveId > restores a collapsible panel closed from a saved 0, but not a panel that cannot close)\n */\nconst floorOf = (panel: PanelLimits, size: number) => (panel.collapsible && size === 0 ? 0 : panel.minSize);\n\n/**\n * The saved layout for `panels`, or `null` when the text is missing or is not a layout for\n * that many panels. A layout outside the panels' limits (saved before an app changed\n * `minSize` or `maxSize`) is fitted into them: each size is clamped, and the difference\n * goes to the panels that still have room, in order.\n *\n * @internal\n * @claim \"A layout outside the panels' limits\" registry/ouro/components/ouro/resizable/resizable.test.tsx verify:fileLine(registry/ouro/components/ouro/resizable/resizable.test.tsx, /fits\\sa\\ssaved\\slayout\\s%s\\sinto\\sthe\\spanels'\\slimits/)\n */\nfunction parseSaved(text: string | null, panels: readonly PanelLimits[]): number[] | null {\n  let saved: unknown;\n  try {\n    saved = JSON.parse(text ?? \"null\");\n  } catch {\n    return null;\n  }\n  if (!isSavedLayout(saved, panels.length)) return null;\n  const sizes = saved.map((size, index) => Math.min(Math.max(size, floorOf(panels[index]!, size)), panels[index]!.maxSize));\n  let rest = 100 - sizes.reduce((sum, size) => sum + size, 0);\n  sizes.forEach((size, index) => {\n    const room = rest > 0 ? panels[index]!.maxSize - size : floorOf(panels[index]!, size) - size;\n    const change = rest > 0 ? Math.min(rest, room) : Math.max(rest, room);\n    sizes[index] = size + change;\n    rest -= change;\n  });\n  return sizes;\n}\n\n/** Re-reads saved layouts when another tab saves one. @internal */\nfunction subscribeStorage(onChange: () => void): () => void {\n  addEventListener(\"storage\", onChange);\n  return () => removeEventListener(\"storage\", onChange);\n}\n",
      "type": "registry:ui",
      "target": "@components/ouro/resizable/resizable-styles.ts"
    },
    {
      "path": "registry/ouro/components/ouro/resizable/resizable.tsx",
      "content": "\"use client\";\n\nimport {\n  Children,\n  createContext,\n  isValidElement,\n  useCallback,\n  useContext,\n  useEffect,\n  useId,\n  useMemo,\n  useRef,\n  useState,\n  useSyncExternalStore,\n  type JSX,\n  type KeyboardEvent,\n  type PointerEvent,\n  type ReactElement,\n  type ReactNode,\n} from \"react\";\nimport { useAppearanceClassNameCheck } from \"@/registry/ouro/lib/ouro/class-name-check\";\nimport { cn } from \"@/registry/ouro/lib/ouro/cn\";\nimport { devThrow } from \"@/registry/ouro/lib/ouro/dev\";\nimport { TouchTarget } from \"@/registry/ouro/lib/ouro/touch-target\";\nimport { useDevWarnings } from \"@/registry/ouro/lib/ouro/use-dev-messages\";\nimport { useKeyboardScrollable } from \"@/registry/ouro/lib/ouro/use-keyboard-scrollable\";\nimport {\n  clampSize,\n  gripClass,\n  groupClass,\n  handleClass,\n  hitAreaClass,\n  initialSizes,\n  KEY_STEP,\n  limits,\n  panelClass,\n  parseSaved,\n  readSavedText,\n  storageKey,\n  subscribeStorage,\n  type PanelLimits,\n} from \"@/registry/ouro/components/ouro/resizable/resizable-styles\";\n\n/** Which way the panels sit: `horizontal` side by side, `vertical` stacked. */\nexport type ResizableOrientation = \"horizontal\" | \"vertical\";\n\nconst orientations: readonly ResizableOrientation[] = [\"horizontal\", \"vertical\"];\n\nconst panelFix = '<ResizablePanelGroup><ResizablePanel label=\"Files\">…</ResizablePanel><ResizableHandle /><ResizablePanel label=\"Editor\">…</ResizablePanel></ResizablePanelGroup>';\n\ninterface GroupState {\n  orientation: ResizableOrientation;\n  handleLabel: string;\n  sizes: number[];\n  panels: PanelLimits[];\n  labels: string[];\n  ids: string[];\n  /** Shows sizes during a drag, without reporting or saving them. */\n  preview: (sizes: number[]) => void;\n  /** Sets sizes the user settled on: reports them with `onLayout` and saves them with `autoSaveId`. */\n  commit: (sizes: number[]) => void;\n  setResizing: (resizing: boolean) => void;\n}\n\nconst GroupContext = createContext<GroupState | null>(null);\n\n/**\n * Where a direct child of the group sits: a panel's index, or the index of the panel before a handle (-1 when misplaced).\n *\n * @claim \"Where a direct child of the\" registry/ouro/components/ouro/resizable/resizable.test.tsx verify:testExists(registry/ouro/components/ouro/resizable/resizable.test.tsx::Resizable handle (window splitter) > is a focusable separator for the panel before it)\n * @claim \"Where a direct child of the\" registry/ouro/components/ouro/resizable/resizable.test.tsx verify:testExists(registry/ouro/components/ouro/resizable/resizable.test.tsx::Resizable development messages > renders horizontal for an unknown orientation and skips a misplaced handle)\n */\nconst ItemContext = createContext<number | undefined>(undefined);\n\n/** Props shared by `Resizable` and `ResizablePanelGroup`. */\nexport interface ResizableGroupProps {\n  /** `horizontal` puts the panels side by side; `vertical` stacks them (give the group a height). @default \"horizontal\" */\n  orientation?: ResizableOrientation | (string & { 'Use \"horizontal\" or \"vertical\"': never }) | undefined;\n  /**\n   * Saves the layout in localStorage under this id and restores it on the next visit,\n   * after hydration (the server renders the default sizes). Storage that is unavailable\n   * or full is ignored.\n   */\n  autoSaveId?: string | undefined;\n  /**\n   * Called with every panel's size, in percent, when the user finishes a drag or presses a key on a handle.\n   *\n   * @claim \"Called with every panel's size, in\" registry/ouro/components/ouro/resizable/resizable.test.tsx verify:testExists(registry/ouro/components/ouro/resizable/resizable.test.tsx::Resizable handle (window splitter) > resizes with the arrow keys, Home, End and Enter)\n   * @claim \"Called with every panel's size, in\" registry/ouro/components/ouro/resizable/resizable.test.tsx verify:testExists(registry/ouro/components/ouro/resizable/resizable.test.tsx::Resizable handle (window splitter) > resizes when dragged with a pointer, within the panels' limits)\n   */\n  onLayout?: ((sizes: number[]) => void) | undefined;\n  /**\n   * Each handle's accessible name; `{panel}` is the label of the panel before it. @default \"Resize {panel}\"\n   *\n   * @claim \"Each handle's accessible name; `{panel}` is\" registry/ouro/components/ouro/resizable/resizable.test.tsx verify:testExists(registry/ouro/components/ouro/resizable/resizable.test.tsx::Resizable handle (window splitter) > is a focusable separator for the panel before it)\n   * @claim \"Each handle's accessible name; `{panel}` is\" registry/ouro/components/ouro/resizable/resizable.test.tsx verify:testExists(registry/ouro/components/ouro/resizable/resizable.test.tsx::Resizable layout > shares the space left over between panels without a defaultSize)\n   */\n  handleLabel?: string | undefined;\n  /** Layout only: the group fills its container; give it a size (`h-96`) or margins. Appearance classes warn in development. */\n  className?: string | undefined;\n\n  /** Not a prop. Ouro UI names it `orientation`: `<Resizable orientation=\"vertical\">`. */\n  direction?: { 'Use orientation=\"horizontal\" or orientation=\"vertical\"': never };\n}\n\n/** Props for {@link ResizablePanelGroup}. */\nexport interface ResizablePanelGroupProps extends ResizableGroupProps {\n  /**\n   * `ResizablePanel` elements with a `ResizableHandle` between each pair, as direct children.\n   *\n   * @claim \"`ResizablePanel` elements with a `ResizableHandle` between\" registry/ouro/components/ouro/resizable/resizable.test.tsx verify:testExists(registry/ouro/components/ouro/resizable/resizable.test.tsx::Resizable layout > lays panels side by side at their default sizes with a handle between)\n   */\n  children: ReactNode;\n}\n\n// Children are told apart by their props, not only by their type: across a Server Component\n// boundary a client component's element can arrive with a lazy type that is not the\n// component itself. A panel always has its string `label`; a handle never has one.\nconst isPanel = (child: unknown): child is ReactElement<ResizablePanelProps> =>\n  isValidElement(child) &&\n  (child.type === ResizablePanel || (child.type !== ResizableHandle && typeof (child.props as { label?: unknown }).label === \"string\"));\n/** A child that is surely neither a panel nor a handle: text or an HTML element. Any other element counts as a handle. */\nconst isStray = (child: unknown) => !isValidElement(child) || typeof child.type === \"string\";\n\nfunction useByContent<T>(value: T): T {\n  const key = JSON.stringify(value);\n  // eslint-disable-next-line react-hooks/exhaustive-deps\n  return useMemo(() => value, [key]);\n}\n\n/**\n * The group behind `Resizable` and `ResizablePanelGroup`; `owner` names it in dev messages.\n *\n * @internal\n */\nexport function ResizableGroupFrame({\n  owner,\n  orientation: orientationProp = \"horizontal\",\n  autoSaveId,\n  onLayout,\n  handleLabel = \"Resize {panel}\",\n  className,\n  children,\n  direction,\n}: ResizablePanelGroupProps & { owner: string }): JSX.Element {\n  const orientation = orientations.includes(orientationProp as ResizableOrientation) ? (orientationProp as ResizableOrientation) : \"horizontal\";\n  const items = Children.toArray(children);\n  const panelElements = items.filter(isPanel);\n  const panels: PanelLimits[] = panelElements.map(({ props }) => ({\n    defaultSize: props.defaultSize,\n    minSize: props.minSize ?? 10,\n    maxSize: props.maxSize ?? 100,\n    collapsible: props.collapsible === true,\n  }));\n  const defaults = initialSizes(panels);\n  const defined = panels.filter((panel) => panel.defaultSize !== undefined);\n  const definedSum = defined.reduce((sum, panel) => sum + panel.defaultSize!, 0);\n\n  useAppearanceClassNameCheck(\n    owner,\n    className,\n    process.env.NODE_ENV !== \"production\"\n      ? (token: string) => `remove \"${token}\"; style the content you put in the panels`\n      : /* istanbul ignore next @preserve -- production only */ \"\",\n  );\n  useDevWarnings(\n    owner,\n    process.env.NODE_ENV !== \"production\"\n      ? () => [\n          direction !== undefined && [\"direction is not a prop\", `<${owner} orientation=\"${String(direction)}\">`],\n          orientation !== orientationProp && [\n            `orientation=\"${String(orientationProp)}\" is not an orientation; use \"horizontal\", \"vertical\"`,\n            /col|vert|^y$/i.test(String(orientationProp)) ? `<${owner} orientation=\"vertical\">` : `<${owner} orientation=\"horizontal\">`,\n          ],\n          panels.length < 2 && [\n            \"it needs at least two panels\",\n            `<${owner}><ResizablePanel label=\"Files\">…</ResizablePanel><ResizablePanel label=\"Editor\">…</ResizablePanel></${owner}>`,\n          ],\n          (defined.length === panels.length ? Math.abs(definedSum - 100) > 0.01 : definedSum > 100) && [\n            `the defaultSize values add up to ${definedSum}, not 100`,\n            '<ResizablePanel label=\"…\" defaultSize={30}> and leave one panel without defaultSize to take the rest',\n          ],\n          items.some(isStray) && [\n            \"its children must be ResizablePanel and ResizableHandle elements\",\n            \"move other content inside a <ResizablePanel>\",\n          ],\n        ]\n      : /* istanbul ignore next @preserve -- production only */ undefined,\n  );\n\n  const groupId = useId();\n  const ids = panelElements.map(({ props }, index) => props.id ?? `${groupId}panel-${index}`);\n  const labels = panelElements.map(({ props }) => props.label);\n\n  // The saved layout is read as its raw text (a stable snapshot) after hydration, so the\n  // server's default sizes match the first client render.\n  const savedText = useSyncExternalStore(\n    subscribeStorage,\n    () => readSavedText(autoSaveId),\n    () => null,\n  );\n  // `null` is the saved or default sizes; a layout for another number of panels is ignored.\n  const [own, setOwn] = useState<number[] | null>(null);\n  const sizes = own?.length === panels.length ? own : (parseSaved(savedText, panels) ?? defaults);\n  const [resizing, setResizing] = useState(false);\n\n  // Compared by content, so a re-render with the same panels hands the context the same objects\n  // and a memoized child reading it is not walked again.\n  const stableSizes = useByContent(sizes);\n  const stablePanels = useByContent(panels);\n  const stableLabels = useByContent(labels);\n  const stableIds = useByContent(ids);\n  const onLayoutRef = useRef(onLayout);\n  useEffect(() => {\n    onLayoutRef.current = onLayout;\n  });\n  const commit = useCallback(\n    (next: number[]) => {\n      setOwn(next);\n      onLayoutRef.current?.(next);\n      if (!autoSaveId) return;\n      try {\n        localStorage.setItem(storageKey(autoSaveId), JSON.stringify(next));\n      } catch {\n        // Storage is unavailable or full: the layout still applies for this visit.\n      }\n    },\n    [autoSaveId],\n  );\n  const state = useMemo<GroupState>(\n    () => ({\n      orientation,\n      handleLabel,\n      sizes: stableSizes,\n      panels: stablePanels,\n      labels: stableLabels,\n      ids: stableIds,\n      preview: setOwn,\n      commit,\n      setResizing,\n    }),\n    [orientation, handleLabel, stableSizes, stablePanels, stableLabels, stableIds, commit],\n  );\n\n  let panelIndex = -1;\n  const placed = items.map((child, position) => {\n    if (isPanel(child)) panelIndex++;\n    const index = isPanel(child)\n      ? panelIndex\n      : // A handle needs a panel before and after it.\n        !isStray(child) && panelIndex >= 0 && items.slice(position + 1).some(isPanel)\n        ? panelIndex\n        : -1;\n    return (\n      <ItemContext.Provider key={(child as ReactElement).key ?? position} value={index}>\n        {child}\n      </ItemContext.Provider>\n    );\n  });\n\n  return (\n    <GroupContext.Provider value={state}>\n      <div\n        data-ouro=\"resizable\"\n        data-orientation={orientation}\n        data-ouro-resizing={resizing ? \"\" : undefined}\n        className={cn(groupClass[orientation], className)}\n      >\n        {placed}\n      </div>\n    </GroupContext.Provider>\n  );\n}\n\n/**\n * A group of panels with handles you place yourself, shadcn's shape: `ResizablePanel` and\n * `ResizableHandle` elements as direct children.\n *\n * Use `Resizable` instead, which puts a handle between each pair of panels for you; reach\n * for this only when a handle needs its own label.\n *\n * @group Layout\n * @see https://ui.ouroboros.bot/docs/resizable\n *\n * @example\n * <ResizablePanelGroup orientation=\"vertical\" autoSaveId=\"preview\">\n *   <ResizablePanel label=\"Preview\" defaultSize={60}>…</ResizablePanel>\n *   <ResizableHandle aria-label=\"Resize the preview\" />\n *   <ResizablePanel label=\"Console\">…</ResizablePanel>\n * </ResizablePanelGroup>\n */\nexport function ResizablePanelGroup(props: ResizablePanelGroupProps): JSX.Element {\n  return <ResizableGroupFrame {...props} owner=\"ResizablePanelGroup\" />;\n}\n\n/** Props for {@link ResizablePanel}. */\nexport interface ResizablePanelProps {\n  /**\n   * Names the panel; the handle after it is called \"Resize {label}\" for screen readers. It is always required.\n   *\n   * @claim \"It is always required\" registry/ouro/components/ouro/resizable/resizable.test-d.ts verify:fileLine(registry/ouro/components/ouro/resizable/resizable.test-d.ts, /@ts-expect-error\\slabel\\sis\\srequired\\./)\n   */\n  label: string;\n  /** The starting size, in percent of the group. Panels without one share what is left. */\n  defaultSize?: number | undefined;\n  /**\n   * The smallest size a drag or key can give the panel, in percent. @default 10\n   *\n   * @claim \"The smallest size a drag or\" registry/ouro/components/ouro/resizable/resizable.test.tsx verify:testExists(registry/ouro/components/ouro/resizable/resizable.test.tsx::Resizable handle (window splitter) > resizes when dragged with a pointer, within the panels' limits)\n   * @claim \"The smallest size a drag or\" registry/ouro/components/ouro/resizable/resizable.test.tsx verify:fileLine(registry/ouro/components/ouro/resizable/resizable.test.tsx, /\\/\\/\\sIt\\sstops\\sat\\sminSize\\./)\n   */\n  minSize?: number | undefined;\n  /**\n   * The largest size a drag or key can give the panel, in percent. @default 100\n   *\n   * @claim \"The largest size a drag or\" registry/ouro/components/ouro/resizable/resizable.test.tsx verify:testExists(registry/ouro/components/ouro/resizable/resizable.test.tsx::Resizable handle (window splitter) > resizes when dragged with a pointer, within the panels' limits)\n   * @claim \"The largest size a drag or\" registry/ouro/components/ouro/resizable/resizable.test.tsx verify:fileLine(registry/ouro/components/ouro/resizable/resizable.test.tsx, /maxSize=\\{60\\}/)\n   */\n  maxSize?: number | undefined;\n  /**\n   * Lets a drag or key take the panel all the way to 0, closing it. Below `minSize` it snaps: to 0 at or under half of `minSize`, else to `minSize`. @default false\n   *\n   * @claim \"Lets a drag or key take the panel all the way to 0\" registry/ouro/components/ouro/resizable/resizable.test.tsx verify:testExists(registry/ouro/components/ouro/resizable/resizable.test.tsx::Resizable handle (window splitter) > lets the keys take a collapsible panel to 0 and back, and Home to 0)\n   * @claim \"Below `minSize` it snaps\" registry/ouro/components/ouro/resizable/resizable.test.tsx verify:testExists(registry/ouro/components/ouro/resizable/resizable.test.tsx::Resizable handle (window splitter) > snaps a drag that lands under a collapsible panel's minSize to 0 or to minSize, by half)\n   * @claim \"Below `minSize` it snaps\" registry/ouro/components/ouro/resizable/resizable.test.tsx verify:testExists(registry/ouro/components/ouro/resizable/resizable.test.tsx::Resizable handle (window splitter) > keeps a panel that is not collapsible at its minSize, on either side of a handle)\n   */\n  collapsible?: boolean | undefined;\n  /** The panel's id, which the handle's `aria-controls` points at. One is made up when you leave it out. */\n  id?: string | undefined;\n  /** Layout only: padding (`p-4`). Appearance classes warn in development. */\n  className?: string | undefined;\n  /** The panel's content. It scrolls when it is larger than the panel. */\n  children?: ReactNode;\n}\n\n/**\n * One resizable area of a `Resizable` (or `ResizablePanelGroup`), sized in percent of the\n * group. Its content scrolls when it does not fit. Its focus ring is drawn over the content,\n * so a header that sticks to the top of the panel never hides an edge of it.\n *\n * Use it only as a direct child of `Resizable` or `ResizablePanelGroup`; a fixed layout\n * needs a plain grid instead.\n *\n * @group Layout\n * @see https://ui.ouroboros.bot/docs/resizable\n * @claim \"Its focus ring is drawn over the content\" registry/ouro/components/ouro/resizable/resizable.test.tsx verify:testExists(registry/ouro/components/ouro/resizable/resizable.test.tsx::ResizablePanel > draws its focus ring whole over content that sticks to an edge, and leaves the pointer to the content)\n * @example\n * <ResizablePanel label=\"Files\" defaultSize={25} minSize={15}>\n *   <FileTree />\n * </ResizablePanel>\n */\nexport function ResizablePanel(props: ResizablePanelProps): JSX.Element {\n  // The group reads defaultSize, minSize, maxSize and id from the element's props.\n  const { label, className, children } = props;\n  const group = useContext(GroupContext);\n  const index = useContext(ItemContext);\n  if (!group || index === undefined) {\n    devThrow(\n      \"ResizablePanel\",\n      \"must be a direct child of <ResizablePanelGroup> or <Resizable>\",\n      process.env.NODE_ENV !== \"production\" ? panelFix : /* istanbul ignore next @preserve -- production only */ \"\",\n    );\n  }\n  useAppearanceClassNameCheck(\n    \"ResizablePanel\",\n    className,\n    process.env.NODE_ENV !== \"production\"\n      ? (token: string) => `remove \"${token}\"; style the content you put in the panels`\n      : /* istanbul ignore next @preserve -- production only */ \"\",\n  );\n  useDevWarnings(\n    \"ResizablePanel\",\n    process.env.NODE_ENV !== \"production\"\n      ? () => [!label && [\"label is required; it names the handle that resizes the panel\", '<ResizablePanel label=\"Files\">']]\n      : /* istanbul ignore next @preserve -- production only */ undefined,\n  );\n  const scrollRef = useKeyboardScrollable<HTMLDivElement>(true);\n  // A collapsed panel (size 0) takes no room and is inert, so its content cannot take focus; its scroll box is hidden (panelClass).\n  const collapsed = group.sizes[index] === 0;\n  // The panel is the flex item the group sizes; its scroll box fills it and takes the app's className (padding) and ref.\n  // The focus ring is a sibling drawn over the scroll box, so content that sticks to an edge inside it never covers it.\n  return (\n    <div\n      id={group.ids[index]}\n      data-ouro=\"resizable-panel\"\n      data-collapsed={collapsed ? \"\" : undefined}\n      inert={collapsed}\n      style={{ flexGrow: group.sizes[index], flexShrink: 1, flexBasis: 0 }}\n      className=\"relative box-border flex min-h-0 min-w-0 flex-col\"\n    >\n      <div\n        ref={scrollRef}\n        // A panel whose content overflows is a tab stop (useKeyboardScrollable), so it is a control.\n        data-ouro-control=\"resizable\"\n        data-ouro-part=\"panel\"\n        className={cn(panelClass, className)}\n      >\n        {children}\n      </div>\n      <span\n        aria-hidden=\"true\"\n        data-resizable-focus-ring=\"\"\n        className=\"pointer-events-none absolute inset-0 hidden rounded-[inherit] outline-ring -outline-offset-2 peer-focus-visible:block peer-focus-visible:outline-2 peer-focus-visible:outline-solid\"\n      />\n    </div>\n  );\n}\n\n/** Props for {@link ResizableHandle}. */\nexport interface ResizableHandleProps {\n  /** This handle's accessible name, in place of the group's `handleLabel` (\"Resize Files\"). */\n  \"aria-label\"?: string | undefined;\n\n  /**\n   * Not a prop. The handle always shows its grip: `<ResizableHandle />`.\n   *\n   * @claim \"The handle always shows its grip\" registry/ouro/components/ouro/resizable/resizable.test-d.ts verify:fileLine(registry/ouro/components/ouro/resizable/resizable.test-d.ts, /\\{\\swithHandle:\\strue\\s\\}>\\(\\)\\.not\\.toExtend<ResizableHandleProps>/)\n   */\n  withHandle?: { 'The handle always shows its grip; remove withHandle': never };\n}\n\n/**\n * The draggable line between two panels in a `ResizablePanelGroup`, a focusable window\n * splitter (`role=\"separator\"`) for the panel before it. Drag it, or focus it and use the\n * arrow keys (10% a press), Home and End (that panel's smallest and largest size) and\n * Enter (collapse the panel to its smallest size and back; a `collapsible` panel's smallest\n * is 0). It has a 44px hit area on touch screens.\n *\n * Use `Resizable` instead, which places these for you.\n *\n * @group Layout\n * @see https://ui.ouroboros.bot/docs/resizable\n *\n * @example\n * <ResizableHandle />\n * <ResizableHandle aria-label=\"Resize the preview\" />\n * @claim \"The draggable line between two panels\" registry/ouro/components/ouro/resizable/resizable.test.tsx verify:testExists(registry/ouro/components/ouro/resizable/resizable.test.tsx::Resizable handle (window splitter) > gives the handle a hit area wider than its line)\n * @claim \"It has a 44px hit area on touch screens\" registry/ouro/components/ouro/resizable/resizable.tsx verify:fileLine(registry/ouro/components/ouro/resizable/resizable.tsx, /<TouchTarget/)\n * @claim \"a `collapsible` panel's smallest is 0\" registry/ouro/components/ouro/resizable/resizable.test.tsx verify:testExists(registry/ouro/components/ouro/resizable/resizable.test.tsx::Resizable handle (window splitter) > lets the keys take a collapsible panel to 0 and back, and Home to 0)\n */\nexport function ResizableHandle({ \"aria-label\": ariaLabel, withHandle }: ResizableHandleProps): JSX.Element | null {\n  const group = useContext(GroupContext);\n  const index = useContext(ItemContext);\n  if (!group || index === undefined) {\n    devThrow(\n      \"ResizableHandle\",\n      \"must be a direct child of <ResizablePanelGroup>\",\n      process.env.NODE_ENV !== \"production\" ? panelFix : /* istanbul ignore next @preserve -- production only */ \"\",\n    );\n  }\n  useDevWarnings(\n    \"ResizableHandle\",\n    process.env.NODE_ENV !== \"production\"\n      ? () => [\n          withHandle !== undefined && [\"withHandle is not a prop; the handle always shows its grip\", \"<ResizableHandle />\"],\n          index < 0 && [\n            \"it must sit between two panels\",\n            '<ResizablePanel label=\"A\">…</ResizablePanel><ResizableHandle /><ResizablePanel label=\"B\">…</ResizablePanel>',\n          ],\n        ]\n      : /* istanbul ignore next @preserve -- production only */ undefined,\n  );\n  // The size before Enter collapsed the panel, to restore on the next Enter.\n  const restore = useRef<number | undefined>(undefined);\n  const drag = useRef<{ pointerId: number; start: number; across: number; taken: boolean; sizes: number[]; pixels: number; latest: number[] } | undefined>(undefined);\n  // Chromium starts a fling when a fast touch drag ends, whatever `touch-action` says, and\n  // the tap that stops a fling gets no click. A drag whose touch moves were taken starts\n  // none. The moves are taken only once the finger has gone further across the handle than\n  // along it: before that the browser may still take the touch for a scroll. The listener\n  // must not be passive, which React's are.\n  const hold = useCallback((element: HTMLDivElement) => {\n    const take = (event: TouchEvent) => {\n      if (drag.current?.taken && event.cancelable) event.preventDefault();\n    };\n    element.addEventListener(\"touchmove\", take, { passive: false });\n    return () => element.removeEventListener(\"touchmove\", take);\n  }, []);\n  if (index < 0) return null;\n\n  const { orientation, sizes, panels, labels, ids, handleLabel, preview, commit, setResizing } = group;\n  const horizontal = orientation === \"horizontal\";\n  const size = sizes[index]!;\n  const range = limits(sizes, index, panels);\n  const rtl = (element: Element) => horizontal && getComputedStyle(element).direction === \"rtl\";\n\n  const onKeyDown = (event: KeyboardEvent<HTMLDivElement>) => {\n    const flip = rtl(event.currentTarget);\n    const grow = horizontal ? (flip ? \"ArrowLeft\" : \"ArrowRight\") : \"ArrowDown\";\n    const shrink = horizontal ? (flip ? \"ArrowRight\" : \"ArrowLeft\") : \"ArrowUp\";\n    let target: number;\n    if (event.key === grow) target = size + KEY_STEP;\n    else if (event.key === shrink) target = size - KEY_STEP;\n    else if (event.key === \"Home\") target = range.min;\n    else if (event.key === \"End\") target = range.max;\n    else if (event.key === \"Enter\") {\n      const collapsed = size <= range.min;\n      target = collapsed ? (restore.current ?? size) : range.min;\n      restore.current = collapsed ? undefined : size;\n    } else return;\n    event.preventDefault();\n    const next = clampSize(sizes, index, target, panels);\n    // A press at a limit changes nothing, so it reports and saves nothing.\n    if (next[index] !== size) commit(next);\n  };\n\n  const coordinate = (event: PointerEvent) => (horizontal ? event.clientX : event.clientY);\n\n  const onPointerDown = (event: PointerEvent<HTMLDivElement>) => {\n    // One pointer drags the handle: a second finger on it changes nothing.\n    if (event.button !== 0 || drag.current) return;\n    const handle = event.currentTarget;\n    const before = handle.previousElementSibling!.getBoundingClientRect();\n    const after = handle.nextElementSibling!.getBoundingClientRect();\n    handle.setPointerCapture(event.pointerId);\n    // Keep the press from selecting text or starting a native drag.\n    event.preventDefault();\n    drag.current = {\n      pointerId: event.pointerId,\n      start: coordinate(event),\n      across: horizontal ? event.clientY : event.clientX,\n      taken: false,\n      sizes,\n      pixels: horizontal ? before.width + after.width : before.height + after.height,\n      latest: sizes,\n    };\n    setResizing(true);\n  };\n\n  const onPointerMove = (event: PointerEvent<HTMLDivElement>) => {\n    const current = drag.current;\n    if (!current || event.pointerId !== current.pointerId) return;\n    current.taken ||= Math.abs(coordinate(event) - current.start) > Math.abs((horizontal ? event.clientY : event.clientX) - current.across);\n    const moved = (coordinate(event) - current.start) * (rtl(event.currentTarget) ? -1 : 1);\n    const percent = (moved * (current.sizes[index]! + current.sizes[index + 1]!)) / current.pixels;\n    current.latest = clampSize(current.sizes, index, current.sizes[index]! + percent, panels);\n    preview(current.latest);\n  };\n\n  /** Ends the drag for the pointer that began it, and returns it. */\n  const release = (event: PointerEvent<HTMLDivElement>) => {\n    const current = drag.current;\n    if (!current || event.pointerId !== current.pointerId) return undefined;\n    drag.current = undefined;\n    setResizing(false);\n    return current;\n  };\n\n  const onPointerUp = (event: PointerEvent<HTMLDivElement>) => {\n    const current = release(event);\n    // A press that ends where it started is not a new layout.\n    if (current && current.latest[index] !== current.sizes[index]) commit(current.latest);\n  };\n\n  // The browser took the touch for a scroll along the handle, or the handle lost the pointer\n  // with no release (it was hidden mid-drag): the panels go back to where they were. After\n  // an ordinary release the capture is lost too, and there is no drag left to end.\n  const onPointerCancel = (event: PointerEvent<HTMLDivElement>) => {\n    const current = release(event);\n    if (current) preview(current.sizes);\n  };\n\n  return (\n    <div\n      role=\"separator\"\n      tabIndex={0}\n      data-ouro-control=\"resizable\"\n      data-ouro-part=\"handle\"\n      aria-orientation={horizontal ? \"vertical\" : \"horizontal\"}\n      aria-label={ariaLabel ?? handleLabel.replaceAll(\"{panel}\", labels[index] ?? \"\")}\n      aria-valuenow={Math.round(size)}\n      aria-valuemin={Math.round(range.min)}\n      aria-valuemax={Math.round(range.max)}\n      aria-controls={ids[index]}\n      data-ouro=\"resizable-handle\"\n      data-orientation={orientation}\n      className={handleClass[orientation]}\n      onKeyDown={onKeyDown}\n      onPointerDown={onPointerDown}\n      onPointerMove={onPointerMove}\n      onPointerUp={onPointerUp}\n      onPointerCancel={onPointerCancel}\n      onLostPointerCapture={onPointerCancel}\n      ref={hold}\n    >\n      <TouchTarget />\n      <span aria-hidden=\"true\" className={hitAreaClass[orientation]} />\n      <span aria-hidden=\"true\" data-ouro-resizable-grip=\"\" className={gripClass[orientation]} />\n    </div>\n  );\n}\n\n/** Props for {@link Resizable}. */\nexport interface ResizableProps extends ResizableGroupProps {\n  /**\n   * Two or more `ResizablePanel` elements, as direct children. A handle goes between each pair.\n   *\n   * @claim \"Two or more `ResizablePanel` elements, as\" registry/ouro/components/ouro/resizable/resizable.test.tsx verify:testExists(registry/ouro/components/ouro/resizable/resizable.test.tsx::Resizable layout > lays panels side by side at their default sizes with a handle between)\n   * @claim \"A handle goes between each pair\" registry/ouro/components/ouro/resizable/resizable.test.tsx verify:testExists(registry/ouro/components/ouro/resizable/resizable.test.tsx::Resizable layout > lays panels side by side at their default sizes with a handle between)\n   */\n  children: ReactNode;\n}\n\n/**\n * Panels side by side (or stacked) with a draggable handle between each pair: a file list\n * beside an editor, a preview above a console. Each handle is a window splitter for\n * screen readers, named after the panel before it (\"Resize Files\"), and works with a\n * mouse, touch (a 44px hit area) and the keyboard: the arrow keys, Home, End and Enter.\n * Sizes are percentages; `autoSaveId` keeps the layout across visits.\n *\n * Use a plain grid instead when the user never needs to change the sizes, and `Sheet`\n * for a side panel that opens and closes.\n *\n * @group Layout\n * @see https://ui.ouroboros.bot/docs/resizable\n *\n * @example\n * <Resizable autoSaveId=\"editor\" className=\"h-96\">\n *   <ResizablePanel label=\"Files\" defaultSize={25} minSize={15}>\n *     <FileTree />\n *   </ResizablePanel>\n *   <ResizablePanel label=\"Editor\">\n *     <Editor />\n *   </ResizablePanel>\n * </Resizable>\n * @claim \"Each handle is a window splitter\" registry/ouro/components/ouro/resizable/resizable.test.tsx verify:testExists(registry/ouro/components/ouro/resizable/resizable.test.tsx::Resizable handle (window splitter) > resizes with the arrow keys, Home, End and Enter)\n * @claim \"Each handle is a window splitter\" registry/ouro/components/ouro/resizable/resizable.test.tsx verify:testExists(registry/ouro/components/ouro/resizable/resizable.test.tsx::Resizable handle (window splitter) > is a focusable separator for the panel before it)\n * @claim \"Each handle is a window splitter\" registry/ouro/components/ouro/resizable/resizable.test.tsx verify:testExists(registry/ouro/components/ouro/resizable/resizable.test.tsx::Resizable handle (window splitter) > gives the handle a hit area wider than its line)\n * @claim \"Panels side by side (or stacked)\" registry/ouro/components/ouro/resizable/resizable.test.tsx verify:testExists(registry/ouro/components/ouro/resizable/resizable.test.tsx::Resizable layout > lays panels side by side at their default sizes with a handle between)\n * @claim \"Panels side by side (or stacked)\" registry/ouro/components/ouro/resizable/resizable.test.tsx verify:testExists(registry/ouro/components/ouro/resizable/resizable.test.tsx::Resizable layout > stacks panels with orientation vertical)\n */\nexport function Resizable({ children, ...props }: ResizableProps): JSX.Element {\n  const items = Children.toArray(children);\n  // Every child is a panel; a handle the app added by mistake is dropped, but only when it\n  // is surely a handle. Any other component stays: it may render a panel. A handle a Server\n  // Component passed has a lazy type and no props, so nothing tells it from such a\n  // component, and it is left in place rather than risk dropping a panel.\n  const isHandleElement = (child: unknown) => isValidElement(child) && child.type === ResizableHandle;\n  useDevWarnings(\n    \"Resizable\",\n    process.env.NODE_ENV !== \"production\"\n      ? () => [\n          items.some(isHandleElement) && [\n            \"Resizable adds the handles itself\",\n            \"remove <ResizableHandle />, or use <ResizablePanelGroup> to place handles yourself\",\n          ],\n        ]\n      : /* istanbul ignore next @preserve -- production only */ undefined,\n  );\n  const panels = items.filter((child) => !isHandleElement(child));\n  return (\n    <ResizableGroupFrame {...props} owner=\"Resizable\">\n      {panels.flatMap((panel, index) =>\n        index === 0 ? [panel] : [<ResizableHandle key={`ouro-handle-${index}`} />, panel],\n      )}\n    </ResizableGroupFrame>\n  );\n}\n",
      "type": "registry:ui",
      "target": "@components/ouro/resizable/resizable.tsx"
    }
  ],
  "docs": "Panels side by side (or stacked) with a draggable handle between each pair: a file list beside an editor, a preview above a console. Import: import { Resizable } from \"@/components/ouro/resizable/resizable\", with @/components replaced by your components alias (aliases.components in components.json, such as ~/components). Also installed: the helpers it imports in lib/ouro. Needs ouro-base in your stylesheet: add that item once per app, from the same place as this one, if you have not. Docs: https://ui.ouroboros.bot/docs/resizable.md Ouro UI v1.3.257.",
  "type": "registry:ui"
}