{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "card",
  "description": "card (ui)",
  "dependencies": [
    "@base-ui/react",
    "class-variance-authority"
  ],
  "registryDependencies": [
    "https://taut-ui.com/r/ripple.json"
  ],
  "files": [
    {
      "path": "src/registry/default/ui/card.tsx",
      "content": "\"use client\";\n\nimport { mergeProps } from \"@base-ui/react/merge-props\";\nimport { useRender } from \"@base-ui/react/use-render\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport type React from \"react\";\nimport { Ripple } from \"@/registry/default/lib/ripple\";\nimport { cn } from \"@/registry/default/lib/utils\";\n\nexport const cardVariants = cva(\n  [\n    \"relative flex rounded-3xl text-card-foreground outline-none\",\n    \"transition-shadow duration-200 ease-out motion-reduce:transition-none\",\n    \"[button&,a&]:cursor-pointer [button&,a&]:text-start\",\n    \"[button&,a&]:focus-visible:ring-2 [button&,a&]:focus-visible:ring-ring [button&,a&]:focus-visible:ring-offset-2 [button&,a&]:focus-visible:ring-offset-background\",\n    \"[button&]:disabled:pointer-events-none [button&]:disabled:opacity-38\",\n  ],\n  {\n    defaultVariants: { orientation: \"vertical\", variant: \"default\" },\n    variants: {\n      orientation: {\n        vertical: \"flex-col\",\n        horizontal: \"flex-row items-center gap-4 p-4\",\n      },\n      variant: {\n        default: \"bg-muted dark:bg-card [button&,a&]:hover:bg-accent\",\n        elevated:\n          \"bg-card shadow-[0_0.0625rem_0.1875rem_rgb(0_0_0/0.2),0_0.25rem_0.5rem_0.1875rem_rgb(0_0_0/0.1)] [button&,a&]:hover:bg-accent\",\n        filled: \"bg-muted dark:bg-card [button&,a&]:hover:bg-accent\",\n        outlined:\n          \"border border-border bg-background [button&,a&]:hover:bg-muted\",\n      },\n    },\n  },\n);\n\nexport interface CardProps extends useRender.ComponentProps<\"div\"> {\n  variant?: VariantProps<typeof cardVariants>[\"variant\"];\n  orientation?: VariantProps<typeof cardVariants>[\"orientation\"];\n  ripple?: boolean;\n}\n\nexport function Card({\n  className,\n  variant,\n  orientation = \"vertical\",\n  ripple = false,\n  render,\n  children,\n  ...props\n}: CardProps): React.ReactElement {\n  const defaultProps = {\n    children: ripple ? (\n      <>\n        {children}\n        <Ripple />\n      </>\n    ) : (\n      children\n    ),\n    className: cn(cardVariants({ orientation, variant }), className),\n    \"data-orientation\": orientation,\n    \"data-slot\": \"card\",\n  };\n  return useRender({\n    defaultTagName: \"div\",\n    props: mergeProps<\"div\">(defaultProps, props),\n    render,\n  });\n}\n\nexport function CardMedia({\n  className,\n  render,\n  ...props\n}: useRender.ComponentProps<\"div\">): React.ReactElement {\n  const defaultProps = {\n    className: cn(\n      \"relative overflow-hidden rounded-3xl [&>img,&>video]:size-full [&>img,&>video]:object-cover\",\n      \"in-data-[orientation=horizontal]:w-28 in-data-[orientation=horizontal]:shrink-0 in-data-[orientation=horizontal]:self-stretch in-data-[orientation=horizontal]:rounded-2xl\",\n      className,\n    ),\n    \"data-slot\": \"card-media\",\n  };\n  return useRender({\n    defaultTagName: \"div\",\n    props: mergeProps<\"div\">(defaultProps, props),\n    render,\n  });\n}\n\nexport function CardHeader({\n  className,\n  render,\n  ...props\n}: useRender.ComponentProps<\"div\">): React.ReactElement {\n  const defaultProps = {\n    className: cn(\n      \"grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 p-6 has-data-[slot=card-action]:grid-cols-[1fr_auto]\",\n      \"in-[[data-slot=card]:has(>[data-slot=card-panel])]:pb-2\",\n      \"in-data-[orientation=horizontal]:min-w-0 in-data-[orientation=horizontal]:flex-1 in-data-[orientation=horizontal]:p-0\",\n      className,\n    ),\n    \"data-slot\": \"card-header\",\n  };\n  return useRender({\n    defaultTagName: \"div\",\n    props: mergeProps<\"div\">(defaultProps, props),\n    render,\n  });\n}\n\nexport function CardTitle({\n  className,\n  size = \"md\",\n  render,\n  ...props\n}: useRender.ComponentProps<\"div\"> & {\n  size?: \"md\" | \"lg\";\n}): React.ReactElement {\n  const defaultProps = {\n    className: cn(\n      \"font-heading font-semibold tracking-tight\",\n      size === \"lg\" ? \"text-xl leading-7\" : \"text-lg leading-6\",\n      \"in-data-[orientation=horizontal]:text-base\",\n      className,\n    ),\n    \"data-slot\": \"card-title\",\n  };\n  return useRender({\n    defaultTagName: \"div\",\n    props: mergeProps<\"div\">(defaultProps, props),\n    render,\n  });\n}\n\nexport function CardDescription({\n  className,\n  render,\n  ...props\n}: useRender.ComponentProps<\"div\">): React.ReactElement {\n  const defaultProps = {\n    className: cn(\"text-muted-foreground text-sm leading-5\", className),\n    \"data-slot\": \"card-description\",\n  };\n  return useRender({\n    defaultTagName: \"div\",\n    props: mergeProps<\"div\">(defaultProps, props),\n    render,\n  });\n}\n\nexport function CardAction({\n  className,\n  render,\n  ...props\n}: useRender.ComponentProps<\"div\">): React.ReactElement {\n  const defaultProps = {\n    className: cn(\n      \"col-start-2 row-span-2 row-start-1 inline-flex self-start in-data-[orientation=horizontal]:self-center justify-self-end\",\n      className,\n    ),\n    \"data-slot\": \"card-action\",\n  };\n  return useRender({\n    defaultTagName: \"div\",\n    props: mergeProps<\"div\">(defaultProps, props),\n    render,\n  });\n}\n\nexport function CardPanel({\n  className,\n  render,\n  ...props\n}: useRender.ComponentProps<\"div\">): React.ReactElement {\n  const defaultProps = {\n    className: cn(\n      \"flex-1 p-6 in-[[data-slot=card]:has(>[data-slot=card-header])]:pt-2 in-[[data-slot=card]:has(>[data-slot=card-footer])]:pb-2\",\n      className,\n    ),\n    \"data-slot\": \"card-panel\",\n  };\n  return useRender({\n    defaultTagName: \"div\",\n    props: mergeProps<\"div\">(defaultProps, props),\n    render,\n  });\n}\n\nexport function CardFooter({\n  className,\n  render,\n  ...props\n}: useRender.ComponentProps<\"div\">): React.ReactElement {\n  const defaultProps = {\n    className: cn(\n      \"flex items-center gap-2 p-6 in-[[data-slot=card]:has(>[data-slot=card-panel])]:pt-2\",\n      className,\n    ),\n    \"data-slot\": \"card-footer\",\n  };\n  return useRender({\n    defaultTagName: \"div\",\n    props: mergeProps<\"div\">(defaultProps, props),\n    render,\n  });\n}\n\nexport function CardFrame({\n  className,\n  render,\n  ...props\n}: useRender.ComponentProps<\"div\">): React.ReactElement {\n  const defaultProps = {\n    className: cn(\n      \"flex flex-col gap-1 rounded-3xl bg-muted p-1.5 text-card-foreground\",\n      \"*:data-[slot=card]:rounded-xl *:data-[slot=card]:bg-card *:data-[slot=card]:shadow-none *:data-[slot=card]:transition-none\",\n      \"*:last:data-[slot=card]:rounded-b-2xl *:first:data-[slot=card]:rounded-t-2xl\",\n      \"*:data-[slot=card]:[button&,a&]:hover:bg-accent *:data-[slot=card]:[button&,a&]:hover:shadow-none\",\n      className,\n    ),\n    \"data-slot\": \"card-frame\",\n  };\n  return useRender({\n    defaultTagName: \"div\",\n    props: mergeProps<\"div\">(defaultProps, props),\n    render,\n  });\n}\n\nexport function CardFrameHeader({\n  className,\n  render,\n  ...props\n}: useRender.ComponentProps<\"div\">): React.ReactElement {\n  const defaultProps = {\n    className: cn(\n      \"grid auto-rows-min grid-rows-[auto_auto] items-center gap-x-4 gap-y-0.5 px-5 py-4 has-data-[slot=card-frame-action]:grid-cols-[1fr_auto]\",\n      className,\n    ),\n    \"data-slot\": \"card-frame-header\",\n  };\n  return useRender({\n    defaultTagName: \"div\",\n    props: mergeProps<\"div\">(defaultProps, props),\n    render,\n  });\n}\n\nexport function CardFrameTitle({\n  className,\n  render,\n  ...props\n}: useRender.ComponentProps<\"div\">): React.ReactElement {\n  const defaultProps = {\n    className: cn(\n      \"font-heading font-semibold text-xl leading-7 tracking-tight\",\n      className,\n    ),\n    \"data-slot\": \"card-frame-title\",\n  };\n  return useRender({\n    defaultTagName: \"div\",\n    props: mergeProps<\"div\">(defaultProps, props),\n    render,\n  });\n}\n\nexport function CardFrameDescription({\n  className,\n  render,\n  ...props\n}: useRender.ComponentProps<\"div\">): React.ReactElement {\n  const defaultProps = {\n    className: cn(\"text-muted-foreground text-sm leading-5\", className),\n    \"data-slot\": \"card-frame-description\",\n  };\n  return useRender({\n    defaultTagName: \"div\",\n    props: mergeProps<\"div\">(defaultProps, props),\n    render,\n  });\n}\n\nexport function CardFrameAction({\n  className,\n  render,\n  ...props\n}: useRender.ComponentProps<\"div\">): React.ReactElement {\n  const defaultProps = {\n    className: cn(\n      \"col-start-2 row-span-2 row-start-1 inline-flex self-center justify-self-end\",\n      className,\n    ),\n    \"data-slot\": \"card-frame-action\",\n  };\n  return useRender({\n    defaultTagName: \"div\",\n    props: mergeProps<\"div\">(defaultProps, props),\n    render,\n  });\n}\n\nexport function CardFramePanel({\n  className,\n  render,\n  ...props\n}: useRender.ComponentProps<\"div\">): React.ReactElement {\n  const defaultProps = {\n    className: cn(\"flex-1 rounded-2xl bg-card p-6\", className),\n    \"data-slot\": \"card-frame-panel\",\n  };\n  return useRender({\n    defaultTagName: \"div\",\n    props: mergeProps<\"div\">(defaultProps, props),\n    render,\n  });\n}\n\nexport function CardFrameFooter({\n  className,\n  render,\n  ...props\n}: useRender.ComponentProps<\"div\">): React.ReactElement {\n  const defaultProps = {\n    className: cn(\"flex items-center justify-between px-5 py-3\", className),\n    \"data-slot\": \"card-frame-footer\",\n  };\n  return useRender({\n    defaultTagName: \"div\",\n    props: mergeProps<\"div\">(defaultProps, props),\n    render,\n  });\n}\n\nexport { CardPanel as CardContent, CardFramePanel as CardFrameContent };\n",
      "type": "registry:ui"
    }
  ],
  "categories": [
    "ui"
  ],
  "type": "registry:ui"
}