{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "ds-feature-sticky",
  "title": "Feature Sticky",
  "description": "Seção feature com texto e mockup sticky (left/right) — inspirado em Launch UI Feature Sticky.",
  "dependencies": [
    "class-variance-authority"
  ],
  "registryDependencies": [
    "@lema-ds/badge",
    "@lema-ds/skeleton"
  ],
  "files": [
    {
      "path": "components/ds/ds-feature-sticky.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Badge } from \"@/components/ui/badge\"\nimport { Skeleton } from \"@/components/ui/skeleton\"\n\n// ── Types ──\n\nexport interface FeatureStickyItem {\n  title: string\n  description: string\n  badge?: string\n}\n\nexport interface FeatureStickyProps\n  extends\n    React.HTMLAttributes<HTMLDivElement>,\n    VariantProps<typeof featureStickyVariants> {\n  badge?: string\n  heading?: string\n  subheading?: string\n  items?: FeatureStickyItem[]\n  media?: React.ReactNode\n  loading?: boolean\n}\n\n// ── Variants ──\n\nexport const featureStickyVariants = cva(\n  \"relative mx-auto w-full max-w-6xl px-4 sm:px-6\",\n  {\n    variants: {\n      sticky: {\n        left: \"\",\n        right: \"\",\n      },\n    },\n    defaultVariants: {\n      sticky: \"left\",\n    },\n  }\n)\n\n// ── Component ──\n\nexport function FeatureSticky({\n  className,\n  sticky = \"left\",\n  badge = \"Feature\",\n  heading = \"Everything you need at your fingertips\",\n  subheading = \"A comprehensive collection of components written in modern React, Typescript and Tailwind CSS.\",\n  items,\n  media,\n  loading = false,\n  ...props\n}: FeatureStickyProps) {\n  const defaultItems: FeatureStickyItem[] = [\n    {\n      title: \"Accessibility first\",\n      description: \"Fully WCAG 2.0 compliant, made with best a11y practices.\",\n    },\n    {\n      title: \"Responsive design\",\n      description: \"Looks and works great on any device and screen size.\",\n    },\n    {\n      title: \"Light and dark mode\",\n      description:\n        \"Seamless switching between color schemes, 6 themes included.\",\n    },\n  ]\n  const list = items ?? defaultItems\n\n  if (loading) {\n    return (\n      <div\n        data-slot=\"feature-sticky-skeleton\"\n        className={cn(featureStickyVariants({ sticky }), \"py-12\", className)}\n        {...props}\n      >\n        <div className=\"grid gap-8 lg:grid-cols-2\">\n          <div className=\"flex flex-col gap-4\">\n            <Skeleton className=\"h-6 w-24 rounded-full\" />\n            <Skeleton className=\"h-8 w-80\" />\n            <Skeleton className=\"h-20 w-full\" />\n          </div>\n          <Skeleton className=\"h-72 rounded-xl\" />\n        </div>\n      </div>\n    )\n  }\n\n  const textBlock = (\n    <div className=\"flex flex-col gap-6\">\n      <div className=\"flex flex-col gap-3\">\n        <Badge variant=\"secondary\" className=\"w-fit rounded-full\">\n          {badge}\n        </Badge>\n        <h2 className=\"text-2xl font-bold tracking-tight sm:text-3xl\">\n          {heading}\n        </h2>\n        <p className=\"text-sm text-muted-foreground\">{subheading}</p>\n      </div>\n      <div className=\"flex flex-col gap-6\">\n        {list.map((item) => (\n          <div\n            key={item.title}\n            className=\"flex flex-col gap-1.5 rounded-xl border bg-card p-4 shadow-sm\"\n          >\n            <h3 className=\"text-sm font-semibold\">{item.title}</h3>\n            <p className=\"text-sm text-muted-foreground\">{item.description}</p>\n            {item.badge && (\n              <Badge variant=\"outline\" className=\"mt-1 w-fit\">\n                {item.badge}\n              </Badge>\n            )}\n          </div>\n        ))}\n      </div>\n    </div>\n  )\n\n  const mediaBlock = (\n    <div className=\"lg:sticky lg:top-20 lg:h-fit\">\n      {media ?? (\n        <div className=\"overflow-hidden rounded-xl border bg-card shadow-lg\">\n          {/* eslint-disable-next-line @next/next/no-img-element */}\n          <img\n            src=\"https://picsum.photos/seed/featureSticky/900/700\"\n            alt=\"App preview\"\n            width={900}\n            height={700}\n            className=\"h-auto w-full object-cover\"\n            loading=\"lazy\"\n            decoding=\"async\"\n          />\n        </div>\n      )}\n    </div>\n  )\n\n  return (\n    <div\n      data-slot=\"feature-sticky\"\n      className={cn(featureStickyVariants({ sticky }), \"py-12\", className)}\n      {...props}\n    >\n      <div className=\"grid gap-8 lg:grid-cols-2 lg:gap-10\">\n        {sticky === \"left\" ? (\n          <>\n            {textBlock}\n            {mediaBlock}\n          </>\n        ) : (\n          <>\n            {mediaBlock}\n            {textBlock}\n          </>\n        )}\n      </div>\n    </div>\n  )\n}\n",
      "type": "registry:ui"
    }
  ],
  "categories": [
    "feature"
  ],
  "type": "registry:block"
}
