{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "button",
  "files": [
    {
      "path": "ui/button/Button.astro",
      "content": "---\n// Generated from bejamas-juno style registry. Do not edit packages/ui/src/components/button/Button.astro directly.\n/**\n * @component Button\n * @title Button\n * @description A clickable element for triggering actions or submitting forms.\n * @figmaUrl https://www.figma.com/design/koxai7zw5vIuBzuVxe5T2l/bejamas-ui?node-id=2609-10438&t=YFStJ3V8fXEO8QD8-4\n *\n * @preview\n *\n * <div class=\"flex flex-wrap items-center gap-2 md:flex-row\">\n *   <Button>Button</Button>\n *   <Button variant=\"outline\" size=\"icon\" aria-label=\"Submit\">\n *     <ArrowUpIcon />\n *   </Button>\n * </div>\n *\n * @usage\n *\n * ```astro nocollapse\n * ---\n * import { Button } from '@bejamas/ui/components/button';\n * ---\n *\n * <Button>Click me</Button>\n * ```\n *\n * ## Link\n *\n * You can use the `as` prop to render the component as an anchor.\n *\n * ```astro nocollapse\n * ---\n * import { Button } from '@bejamas/ui/components/button';\n * ---\n *\n * <Button as=\"a\" href=\"https://bejamas.com\">Click me</Button>\n * ```\n *\n * @examples\n *\n * ### Variants\n *\n * <div class=\"flex flex-col items-start gap-8 sm:flex-row\">\n *   <Button variant=\"default\">Default</Button>\n *   <Button variant=\"secondary\">Secondary</Button>\n *   <Button variant=\"outline\">Outline</Button>\n *   <Button variant=\"ghost\">Ghost</Button>\n *   <Button variant=\"destructive\">Destructive</Button>\n * </div>\n *\n * ### Sizes\n *\n * <div class=\"flex flex-col items-start gap-8 sm:flex-row\">\n *   <div class=\"flex items-start gap-2\">\n *     <Button size=\"sm\" variant=\"outline\">\n *       Small\n *     </Button>\n *     <Button size=\"icon-sm\" aria-label=\"Submit\" variant=\"outline\">\n *       <ArrowUpRightIcon />\n *     </Button>\n *   </div>\n *   <div class=\"flex items-start gap-2\">\n *     <Button variant=\"outline\">Default</Button>\n *     <Button size=\"icon\" aria-label=\"Submit\" variant=\"outline\">\n *       <ArrowUpRightIcon />\n *     </Button>\n *   </div>\n *   <div class=\"flex items-start gap-2\">\n *     <Button variant=\"outline\" size=\"lg\">\n *       Large\n *     </Button>\n *     <Button size=\"icon-lg\" aria-label=\"Submit\" variant=\"outline\">\n *       <ArrowUpRightIcon />\n *     </Button>\n *   </div>\n * </div>\n *\n * ### With badge\n *\n * <Button variant=\"default\">\n *   Click me\n *   <Badge variant=\"secondary\">Value</Badge>\n * </Button>\n *\n * ### Destructive\n *\n * <Button variant=\"destructive\">Click me</Button>\n *\n * ### Outline\n *\n * <Button variant=\"outline\">Click me</Button>\n *\n * ### Secondary\n *\n * <Button variant=\"secondary\">Click me</Button>\n *\n * ### Ghost\n *\n * <Button variant=\"ghost\">Click me</Button>\n *\n * ### Link\n *\n * <Button variant=\"link\">Click me</Button>\n *\n * ### Default\n *\n * <Button>Click me</Button>\n *\n */\n\nimport type { HTMLAttributes } from \"astro/types\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\n\nimport { cn } from \"@/lib/utils\";\n\nconst buttonVariants = cva(\n  \"group/button inline-flex shrink-0 items-center justify-center whitespace-nowrap transition-all outline-none select-none disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n  {\n    variants: {\n      variant: {\n        default: \"bg-primary text-primary-foreground hover:bg-primary/80 shadow-none hover:bg-primary/90\",\n        destructive: \"bg-destructive/10 hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/20 text-destructive focus-visible:border-destructive/40 dark:hover:bg-destructive/30 text-white shadow-xs hover:bg-destructive/90 dark:bg-destructive/60\",\n        outline: \"border-border bg-background hover:bg-muted hover:text-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 aria-expanded:bg-muted aria-expanded:text-foreground shadow-xs border shadow-none\",\n        secondary: \"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground\",\n        ghost: \"hover:bg-muted hover:text-foreground dark:hover:bg-muted/50 aria-expanded:bg-muted aria-expanded:text-foreground hover:bg-secondary shadow-none\",\n        link: \"text-primary underline-offset-4 hover:underline text-accent p-0\",\n      },\n      size: {\n        default: \"h-9 gap-1.5 px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 gap-2 px-3 py-2 text-sm has-[.badge:last-child]:pr-1.5 has-[>svg]:px-2.5\",\n        sm: \"h-8 gap-1 rounded-[min(var(--radius-md),10px)] px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 gap-1.5 rounded-lg px-3 text-xs has-[>svg]:px-2\",\n        lg: \"h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3 rounded-lg px-5 text-base has-[>svg]:px-4 has-[.badge:last-child]:pr-3 [&_.badge:last-child]:ml-1.5\",\n        icon: \"size-9\",\n        \"icon-sm\": \"size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md\",\n        \"icon-lg\": \"size-10\",\n      },\n    },\n    defaultVariants: {\n      variant: \"default\",\n      size: \"default\",\n    },\n  },\n);\n\ntype ButtonVariantProps = VariantProps<typeof buttonVariants>;\n\ntype ButtonAsButton = {\n  as?: \"button\";\n} & HTMLAttributes<\"button\">;\n\ntype ButtonAsAnchor = {\n  as: \"a\";\n} & HTMLAttributes<\"a\">;\n\ntype ButtonOwnProps = ButtonVariantProps & {\n  // you can add custom props here\n};\n\nexport type Props = (ButtonAsButton | ButtonAsAnchor) & ButtonOwnProps;\n\nconst {\n  as: Tag = \"button\",\n  variant = \"default\",\n  size = \"default\",\n  class: className = \"\",\n  ...rest\n} = Astro.props as Props;\n---\n\n{\n  /*\n  TS can't reconcile our discriminated union props with a dynamic intrinsic Tag.\n  The public Props type *is* strict (href only allowed when as=\"a\"),\n  but JSX wants an intersection of button+anchor attributes here.\n  We deliberately suppress this internal error and rely on Props for caller safety.\n*/\n}\n<!-- @ts-expect-error – union Props + dynamic Tag confuse JSX typing (see comment above) -->\n<Tag\n  data-slot=\"button\"\n  data-variant={variant}\n  data-size={size}\n  class={cn(\n    \"focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-md border border-transparent bg-clip-padding text-sm font-medium focus-visible:ring-3 aria-invalid:ring-3 [&_svg:not([class*='size-'])]:size-4 ease-out duration-150 rounded-lg active:scale-98\",\n    buttonVariants({ variant, size }),\n    className,\n  )}\n  {...rest}\n>\n  <slot />\n</Tag>\n",
      "type": "registry:ui"
    },
    {
      "path": "ui/button/index.ts",
      "content": "// Generated from bejamas-juno style registry. Do not edit packages/ui/src/components/button/index.ts directly.\nexport { default as Button } from \"./Button.astro\";\n\n",
      "type": "registry:ui"
    }
  ],
  "type": "registry:ui"
}