{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "shared-focus-ring",
  "type": "registry:lib",
  "title": "shared/focus-ring",
  "description": "Internal module shared by the ui-* components (focus-ring). 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": [
    "lit@^3.3.0"
  ],
  "registryDependencies": [
    "@kanok-ui/tokens"
  ],
  "files": [
    {
      "path": "src/primitives/shared/focus-ring.ts",
      "type": "registry:lib",
      "target": "components/ui/primitives/shared/focus-ring.ts",
      "content": "import { css } from 'lit';\n\n/**\n * The focus ring, one for every control: 2px of `--ui-focus`. Carbon draws it inside the control's edge, square; a design\n * moves it with these settings (Kanok: 2px outside, following the control's radius):\n * - `--ui-focus-offset`: `outline-offset` of the ring of a discrete control (a button, an icon or close button, a tag, a\n *   link, a tile, a pagination page). Default -2px (inside).\n * - `--ui-icon-control-radius`: the corners of the small icon controls drawn inside components (the × of a modal, a\n *   tearsheet or a notification, a search's clear button, number steppers, the password toggle, copy buttons, a\n *   toggletip's trigger). Default 0 (Carbon's square); the hover fill and the ring follow it.\n *\n * Rows and fields (menu and list rows, table cells, tree and side-nav rows, accordion headers, text boxes) keep the ring\n * inside (`focusRingInset`): one outside a row would cover its neighbours; it follows the row's own radius.\n *\n * React + Tailwind has the same two as utilities: `focus-ring` and `focus-ring-inset` (scripts/build-tw-theme.mjs).\n */\nexport const focusRing = css`\n    outline: var(--ui-focus-width, 2px) solid var(--ui-focus);\n    outline-offset: var(--ui-focus-offset, -2px);\n`;\n\n/** The ring of a row, a field or a region: always inside its edge, following its radius. */\nexport const focusRingInset = css`\n    outline: var(--ui-focus-width, 2px) solid var(--ui-focus);\n    outline-offset: -2px;\n`;\n"
    }
  ]
}
