{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "prequel-sparkles",
  "type": "registry:ui",
  "title": "Sparkles",
  "description": "A four-point spark that blooms while two smaller ones blink.",
  "dependencies": [
    "motion"
  ],
  "registryDependencies": [
    "https://prequeluianimate.terravidhal.me/r/icon-core.json"
  ],
  "meta": {
    "style": "outline",
    "category": "AI",
    "roles": [
      "primary",
      "accent",
      "accent"
    ],
    "closed": [
      true,
      true,
      true
    ],
    "palette": {
      "primary": "oklch(0.58 0.17 295)",
      "primaryDark": "oklch(0.77 0.13 295)",
      "accent": "oklch(0.7 0.14 195)",
      "accentDark": "oklch(0.82 0.11 195)"
    },
    "emoji": {
      "primary": "oklch(0.6 0.2 300)",
      "secondary": "oklch(0.46 0.18 300)",
      "accent": "oklch(0.74 0.13 232)"
    },
    "styles": [
      "outline",
      "solid",
      "duotone",
      "color",
      "emoji"
    ]
  },
  "files": [
    {
      "path": "components/prequelui/icons/prequel-sparkles.tsx",
      "target": "components/prequelui/icons/prequel-sparkles.tsx",
      "type": "registry:ui",
      "content": "\"use client\";\n\nimport * as React from \"react\";\nimport { motion, type SVGMotionProps } from \"motion/react\";\nimport {\n  useAnimatedIconContext,\n  useIconVariants,\n  type IconAnimationSet,\n} from \"./core\";\nimport {\n  useIconPaint,\n  type IconPaletteBundle,\n  type IconVariant,\n} from \"./style\";\n\nexport type IconProps = Omit<SVGMotionProps<SVGSVGElement>, \"ref\"> & {\n  size?: number;\n  variant?: IconVariant;\n};\n\nconst palette: IconPaletteBundle = {\n  \"color\": {\n    \"primary\": \"oklch(0.58 0.17 295)\",\n    \"primaryDark\": \"oklch(0.77 0.13 295)\",\n    \"accent\": \"oklch(0.7 0.14 195)\",\n    \"accentDark\": \"oklch(0.82 0.11 195)\"\n  },\n  \"emoji\": {\n    \"primary\": \"oklch(0.6 0.2 300)\",\n    \"secondary\": \"oklch(0.46 0.18 300)\",\n    \"accent\": \"oklch(0.74 0.13 232)\"\n  }\n};\n\nexport const animations = {\n  \"hover\": {\n    \"group\": {\n      \"initial\": {\n        \"scale\": 1\n      },\n      \"animate\": {\n        \"scale\": [\n          1,\n          1.06,\n          1\n        ],\n        \"transition\": {\n          \"duration\": 0.45,\n          \"ease\": \"easeOut\"\n        }\n      }\n    },\n    \"p0\": {\n      \"initial\": {\n        \"opacity\": 1,\n        \"scale\": 1,\n        \"transformOrigin\": \"50% 50%\"\n      },\n      \"animate\": {\n        \"opacity\": [\n          1,\n          0.55,\n          1\n        ],\n        \"scale\": [\n          1,\n          1.06,\n          1\n        ],\n        \"transition\": {\n          \"duration\": 0.55,\n          \"ease\": \"easeInOut\"\n        },\n        \"transformOrigin\": \"50% 50%\"\n      }\n    },\n    \"p1\": {\n      \"initial\": {\n        \"opacity\": 1,\n        \"scale\": 1\n      },\n      \"animate\": {\n        \"opacity\": [\n          1,\n          0.55,\n          1\n        ],\n        \"scale\": [\n          1,\n          1.06,\n          1\n        ],\n        \"transition\": {\n          \"duration\": 0.55,\n          \"ease\": \"easeInOut\",\n          \"delay\": 0.05\n        }\n      }\n    },\n    \"p2\": {\n      \"initial\": {\n        \"opacity\": 1,\n        \"scale\": 1\n      },\n      \"animate\": {\n        \"opacity\": [\n          1,\n          0.55,\n          1\n        ],\n        \"scale\": [\n          1,\n          1.06,\n          1\n        ],\n        \"transition\": {\n          \"duration\": 0.55,\n          \"ease\": \"easeInOut\",\n          \"delay\": 0.1\n        }\n      }\n    },\n    \"fill\": {\n      \"initial\": {\n        \"opacity\": 0\n      },\n      \"animate\": {\n        \"opacity\": [\n          0,\n          0.35,\n          0\n        ],\n        \"transition\": {\n          \"duration\": 0.6,\n          \"ease\": \"easeOut\"\n        }\n      }\n    }\n  },\n  \"tap\": {\n    \"group\": {\n      \"initial\": {\n        \"scale\": 1\n      },\n      \"animate\": {\n        \"scale\": [\n          1,\n          0.9,\n          1.14,\n          0.98,\n          1\n        ],\n        \"transition\": {\n          \"duration\": 0.55,\n          \"ease\": [\n            0.22,\n            1,\n            0.36,\n            1\n          ]\n        }\n      }\n    },\n    \"p0\": {\n      \"initial\": {\n        \"opacity\": 1,\n        \"scale\": 1,\n        \"transformOrigin\": \"50% 50%\"\n      },\n      \"animate\": {\n        \"opacity\": [\n          1,\n          0.4,\n          1\n        ],\n        \"scale\": [\n          1,\n          1.14,\n          1\n        ],\n        \"transition\": {\n          \"duration\": 0.55,\n          \"ease\": [\n            0.22,\n            1,\n            0.36,\n            1\n          ]\n        },\n        \"transformOrigin\": \"50% 50%\"\n      }\n    },\n    \"p1\": {\n      \"initial\": {\n        \"opacity\": 1,\n        \"scale\": 1\n      },\n      \"animate\": {\n        \"opacity\": [\n          1,\n          0.4,\n          1\n        ],\n        \"scale\": [\n          1,\n          1.14,\n          1\n        ],\n        \"transition\": {\n          \"duration\": 0.55,\n          \"ease\": [\n            0.22,\n            1,\n            0.36,\n            1\n          ],\n          \"delay\": 0.05\n        }\n      }\n    },\n    \"p2\": {\n      \"initial\": {\n        \"opacity\": 1,\n        \"scale\": 1\n      },\n      \"animate\": {\n        \"opacity\": [\n          1,\n          0.4,\n          1\n        ],\n        \"scale\": [\n          1,\n          1.14,\n          1\n        ],\n        \"transition\": {\n          \"duration\": 0.55,\n          \"ease\": [\n            0.22,\n            1,\n            0.36,\n            1\n          ],\n          \"delay\": 0.1\n        }\n      }\n    },\n    \"fill\": {\n      \"initial\": {\n        \"opacity\": 0\n      },\n      \"animate\": {\n        \"opacity\": [\n          0,\n          0.55,\n          0\n        ],\n        \"transition\": {\n          \"duration\": 0.85,\n          \"ease\": \"easeInOut\"\n        }\n      }\n    }\n  },\n  \"loop\": {\n    \"group\": {\n      \"initial\": {\n        \"scale\": 1\n      },\n      \"animate\": {\n        \"scale\": [\n          1,\n          1.04,\n          1\n        ],\n        \"transition\": {\n          \"duration\": 1.5,\n          \"ease\": \"easeInOut\"\n        }\n      }\n    },\n    \"p0\": {\n      \"initial\": {\n        \"opacity\": 1,\n        \"scale\": 1,\n        \"transformOrigin\": \"50% 50%\"\n      },\n      \"animate\": {\n        \"opacity\": [\n          1,\n          0.55,\n          1\n        ],\n        \"scale\": [\n          1,\n          1.05,\n          1\n        ],\n        \"transition\": {\n          \"duration\": 1.5,\n          \"ease\": \"easeInOut\"\n        },\n        \"transformOrigin\": \"50% 50%\"\n      }\n    },\n    \"p1\": {\n      \"initial\": {\n        \"opacity\": 1,\n        \"scale\": 1\n      },\n      \"animate\": {\n        \"opacity\": [\n          1,\n          0.55,\n          1\n        ],\n        \"scale\": [\n          1,\n          1.05,\n          1\n        ],\n        \"transition\": {\n          \"duration\": 1.5,\n          \"ease\": \"easeInOut\",\n          \"delay\": 0.05\n        }\n      }\n    },\n    \"p2\": {\n      \"initial\": {\n        \"opacity\": 1,\n        \"scale\": 1\n      },\n      \"animate\": {\n        \"opacity\": [\n          1,\n          0.55,\n          1\n        ],\n        \"scale\": [\n          1,\n          1.05,\n          1\n        ],\n        \"transition\": {\n          \"duration\": 1.5,\n          \"ease\": \"easeInOut\",\n          \"delay\": 0.1\n        }\n      }\n    },\n    \"fill\": {\n      \"initial\": {\n        \"opacity\": 0\n      },\n      \"animate\": {\n        \"opacity\": [\n          0,\n          0.25,\n          0\n        ],\n        \"transition\": {\n          \"duration\": 1.8,\n          \"ease\": \"easeInOut\"\n        }\n      }\n    }\n  }\n} satisfies IconAnimationSet;\n\nexport function PrequelSparklesIcon({ size = 28, variant: variantProp, ...props }: IconProps) {\n  const context = useAnimatedIconContext();\n  const variants = useIconVariants(animations);\n  const controls = context?.controls;\n  const {\n    variant,\n    weight,\n    part: paintPart,\n    halo: paintHalo,\n    flash: paintFlash,\n    sticker: paintSticker,\n    highlight: paintHighlight,\n  } = useIconPaint(palette, variantProp);\n\n  return (\n    <motion.svg\n      xmlns=\"http://www.w3.org/2000/svg\"\n      width={size}\n      height={size}\n      viewBox=\"0 0 24 24\"\n      fill=\"none\"\n      stroke=\"currentColor\"\n      strokeWidth={2}\n      strokeLinecap=\"round\"\n      strokeLinejoin=\"round\"\n      aria-hidden=\"true\"\n      data-icon-style={variant}\n      data-icon-weight={weight}\n      variants={variants.group}\n      initial=\"initial\"\n      animate={controls}\n      {...props}\n    >\n\n\n      <motion.path\n        key={`${variant}-p0`}\n        className=\"pi-part\"\n        d={\"M12 3l1.8 5.2L19 10l-5.2 1.8L12 17l-1.8-5.2L5 10l5.2-1.8L12 3Z\"}\n        style={paintPart(\"primary\", true, false, false)}\n        variants={variants.p0}\n        initial=\"initial\"\n        animate={controls}\n      />\n      <motion.path\n        key={`${variant}-p1`}\n        className=\"pi-part\"\n        d={\"M18.5 3l.7 1.8 1.8.7-1.8.7-.7 1.8-.7-1.8-1.8-.7 1.8-.7.7-1.8Z\"}\n        style={paintPart(\"accent\", true, false, false)}\n        variants={variants.p1}\n        initial=\"initial\"\n        animate={controls}\n      />\n      <motion.path\n        key={`${variant}-p2`}\n        className=\"pi-part\"\n        d={\"M5 16l.6 1.4L7 18l-1.4.6L5 20l-.6-1.4L3 18l1.4-.6L5 16Z\"}\n        style={paintPart(\"accent\", true, false, false)}\n        variants={variants.p2}\n        initial=\"initial\"\n        animate={controls}\n      />\n      <motion.path\n        key={`${variant}-flash`}\n        className=\"pi-flash\"\n        d={\"M12 3l1.8 5.2L19 10l-5.2 1.8L12 17l-1.8-5.2L5 10l5.2-1.8L12 3Z\"}\n        style={paintFlash()}\n        variants={variants.fill}\n        initial=\"initial\"\n        animate={controls}\n      />\n      {variant === \"emoji\" && (\n        <ellipse\n          className=\"pi-highlight\"\n          cx={9.2}\n          cy={6.92}\n          rx={2.24}\n          ry={1.16}\n          transform=\"rotate(-24 9.2 6.92)\"\n          style={paintHighlight()}\n        />\n      )}\n    </motion.svg>\n  );\n}\n"
    }
  ]
}
