{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "core-button",
  "type": "registry:lib",
  "title": "core/button",
  "description": "Framework-free behaviour shared by the ui-* components (button); no DOM, no lit. 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": [],
  "registryDependencies": [],
  "files": [
    {
      "path": "src/core/button.ts",
      "type": "registry:lib",
      "target": "components/ui/core/button.ts",
      "content": "/** Where a loading button's spinner goes (MUI `loadingPosition`): `end` is Carbon for IBM Products ActionSet's. */\nexport type ButtonLoadingPosition = 'end' | 'start' | 'center';\n\n/**\n * Where the spinner of a loading button really goes: an icon-only button centres it in place of the icon, and ghost\n * kinds keep no room at the end (15px, not Carbon's 63px), so `end` centres there too.\n */\nexport function busyPlace(position: ButtonLoadingPosition, kind: string | undefined, iconOnly: boolean | undefined): ButtonLoadingPosition {\n    if (iconOnly) return 'center';\n    const roomless = kind === 'ghost' || kind === 'danger-ghost';\n    return position === 'end' && roomless ? 'center' : position;\n}\n"
    }
  ]
}
