{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "morph",
  "description": "morph (lib)",
  "dependencies": [
    "class-variance-authority"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "src/registry/default/lib/morph.tsx",
      "content": "import { cva } from \"class-variance-authority\";\n\nexport type MorphShape = \"round\" | \"square\";\n\nexport const morphClasses = cva(\n  [\n    \"[font-variation-settings:'GRAD'_0]\",\n    \"[--taut-spring:linear(0,0.08_6%,0.25_14%,0.55_26%,0.82_40%,0.98_55%,1.015_68%,1.008_80%,1)]\",\n    \"[transition:border-radius_250ms_var(--taut-spring),box-shadow_150ms_cubic-bezier(0.2,0,0,1)]\",\n    \"motion-reduce:transition-none\",\n  ],\n  {\n    defaultVariants: { press: true, radius: \"full\" },\n    variants: {\n      press: {\n        false: \"\",\n        true: \"active:rounded-(--r-pressed) active:[font-variation-settings:'GRAD'_-50] active:[transition-duration:120ms,100ms]\",\n      },\n      radius: {\n        full: \"rounded-(--r-full)\",\n        square: \"rounded-(--r-square)\",\n      },\n    },\n  },\n);\n\nexport const morphRadius = (\n  shape: MorphShape,\n  selected?: boolean,\n  enabled = true,\n): \"full\" | \"square\" =>\n  (shape === \"round\") !== (enabled && selected === true) ? \"full\" : \"square\";\n\nexport const tautSize = cva(\"\", {\n  defaultVariants: { size: \"default\" },\n  variants: {\n    size: {\n      xs: \"h-8 gap-1.5 px-3 text-xs [--icon:1rem] [--r-full:1rem] [--r-pressed:0.375rem] [--r-square:0.5rem]\",\n      sm: \"h-9 gap-2 px-3.5 text-sm [--icon:1rem] [--r-full:1.125rem] [--r-pressed:0.375rem] [--r-square:0.625rem]\",\n      default:\n        \"h-10 gap-2 px-4 text-sm [--icon:1.125rem] [--r-full:1.25rem] [--r-pressed:0.5rem] [--r-square:0.75rem]\",\n      md: \"h-10 gap-2 px-4 text-sm [--icon:1.125rem] [--r-full:1.25rem] [--r-pressed:0.5rem] [--r-square:0.75rem]\",\n      lg: \"h-12 gap-2.5 px-5 text-base [--icon:1.25rem] [--r-full:1.5rem] [--r-pressed:0.625rem] [--r-square:0.875rem]\",\n      xl: \"h-14 gap-3 px-6 text-base [--icon:1.5rem] [--r-full:1.75rem] [--r-pressed:0.75rem] [--r-square:1rem]\",\n      \"icon-xs\":\n        \"h-8 w-(--iw) px-0 [--icon:1rem] [--iw-narrow:1.75rem] [--iw-wide:2.5rem] [--iw:2rem] [--r-full:1rem] [--r-pressed:0.375rem] [--r-square:0.5rem]\",\n      \"icon-sm\":\n        \"h-9 w-(--iw) px-0 [--icon:1rem] [--iw-narrow:2rem] [--iw-wide:2.75rem] [--iw:2.25rem] [--r-full:1.125rem] [--r-pressed:0.375rem] [--r-square:0.625rem]\",\n      icon: \"h-10 w-(--iw) px-0 [--icon:1.125rem] [--iw-narrow:2rem] [--iw-wide:3.25rem] [--iw:2.5rem] [--r-full:1.25rem] [--r-pressed:0.5rem] [--r-square:0.75rem]\",\n      \"icon-md\":\n        \"h-10 w-(--iw) px-0 [--icon:1.125rem] [--iw-narrow:2rem] [--iw-wide:3.25rem] [--iw:2.5rem] [--r-full:1.25rem] [--r-pressed:0.5rem] [--r-square:0.75rem]\",\n      \"icon-lg\":\n        \"h-12 w-(--iw) px-0 [--icon:1.25rem] [--iw-narrow:2.5rem] [--iw-wide:4rem] [--iw:3rem] [--r-full:1.5rem] [--r-pressed:0.625rem] [--r-square:0.875rem]\",\n      \"icon-xl\":\n        \"h-14 w-(--iw) px-0 [--icon:1.5rem] [--iw-narrow:3rem] [--iw-wide:5rem] [--iw:3.5rem] [--r-full:1.75rem] [--r-pressed:0.75rem] [--r-square:1rem]\",\n    },\n    width: {\n      narrow: \"w-(--iw-narrow)\",\n      wide: \"w-(--iw-wide)\",\n    },\n  },\n});\n",
      "type": "registry:lib"
    }
  ],
  "categories": [
    "lib"
  ],
  "type": "registry:lib"
}