{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "prequel-hourglass",
  "type": "registry:ui",
  "title": "Hourglass",
  "description": "An hourglass that tips over to restart its sand.",
  "dependencies": [
    "motion"
  ],
  "registryDependencies": [
    "https://prequeluianimate.terravidhal.me/r/icon-core.json"
  ],
  "meta": {
    "style": "outline",
    "category": "Time",
    "roles": [
      "primary",
      "primary",
      "primary"
    ],
    "closed": [
      false,
      false,
      false
    ],
    "palette": {
      "primary": "oklch(0.68 0.14 75)",
      "primaryDark": "oklch(0.82 0.11 75)",
      "accent": "oklch(0.62 0.16 40)",
      "accentDark": "oklch(0.76 0.13 40)"
    },
    "emoji": {
      "primary": "oklch(0.82 0.16 85)",
      "secondary": "oklch(0.66 0.15 80)",
      "accent": "oklch(0.72 0.19 48)"
    },
    "styles": [
      "outline",
      "solid",
      "duotone",
      "color",
      "emoji"
    ]
  },
  "files": [
    {
      "path": "components/prequelui/icons/prequel-hourglass.tsx",
      "target": "components/prequelui/icons/prequel-hourglass.tsx",
      "type": "registry:ui",
      "content": "\"use client\";\n\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.68 0.14 75)\",\n    \"primaryDark\": \"oklch(0.82 0.11 75)\",\n    \"accent\": \"oklch(0.62 0.16 40)\",\n    \"accentDark\": \"oklch(0.76 0.13 40)\"\n  },\n  \"emoji\": {\n    \"primary\": \"oklch(0.82 0.16 85)\",\n    \"secondary\": \"oklch(0.66 0.15 80)\",\n    \"accent\": \"oklch(0.72 0.19 48)\"\n  }\n};\n\nexport const animations = {\n  \"hover\": {\n    \"group\": {\n      \"initial\": {\n        \"rotate\": 0\n      },\n      \"animate\": {\n        \"rotate\": [\n          0,\n          8,\n          0\n        ],\n        \"transition\": {\n          \"duration\": 0.5,\n          \"ease\": \"easeInOut\"\n        }\n      }\n    },\n    \"p0\": {},\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        }\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        }\n      }\n    }\n  },\n  \"tap\": {\n    \"group\": {\n      \"initial\": {\n        \"rotate\": 0\n      },\n      \"animate\": {\n        \"rotate\": [\n          0,\n          180,\n          360\n        ],\n        \"transition\": {\n          \"duration\": 0.9,\n          \"ease\": [\n            0.22,\n            1,\n            0.36,\n            1\n          ]\n        }\n      }\n    },\n    \"p0\": {},\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        }\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        }\n      }\n    }\n  },\n  \"loop\": {\n    \"group\": {\n      \"initial\": {\n        \"rotate\": 0\n      },\n      \"animate\": {\n        \"rotate\": [\n          0,\n          180,\n          360\n        ],\n        \"transition\": {\n          \"duration\": 2.2,\n          \"ease\": \"easeInOut\"\n        }\n      }\n    },\n    \"p0\": {},\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        }\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        }\n      }\n    }\n  }\n} satisfies IconAnimationSet;\n\nexport function PrequelHourglassIcon({ 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  // Generated icons use a subset of these painters; marking them keeps the\n  // file buildable in projects that enable noUnusedLocals.\n  void paintPart;\n  void paintHalo;\n  void paintFlash;\n  void paintSticker;\n  void paintHighlight;\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      {variant === \"emoji\" && (\n        <rect className=\"pi-sticker\" x={2} y={2} width={20} height={20} rx={7} style={paintSticker()} />\n      )}\n      {(variant === \"duotone\" || variant === \"emoji\") && (\n        <motion.path\n          key={`${variant}-halo0`}\n          className=\"pi-halo\"\n          data-paint=\"halo\"\n          d={\"M6 2h12M6 22h12\"}\n          style={paintHalo(\"primary\")}\n          variants={variants.p0}\n          initial=\"initial\"\n          animate={controls}\n        />\n      )}\n      {(variant === \"duotone\" || variant === \"emoji\") && (\n        <motion.path\n          key={`${variant}-halo1`}\n          className=\"pi-halo\"\n          data-paint=\"halo\"\n          d={\"M8 2v3c0 2.4 4 4.2 4 7s-4 4.6-4 7v3\"}\n          style={paintHalo(\"primary\")}\n          variants={variants.p1}\n          initial=\"initial\"\n          animate={controls}\n        />\n      )}\n      {(variant === \"duotone\" || variant === \"emoji\") && (\n        <motion.path\n          key={`${variant}-halo2`}\n          className=\"pi-halo\"\n          data-paint=\"halo\"\n          d={\"M16 2v3c0 2.4-4 4.2-4 7s4 4.6 4 7v3\"}\n          style={paintHalo(\"primary\")}\n          variants={variants.p2}\n          initial=\"initial\"\n          animate={controls}\n        />\n      )}\n      <motion.path\n        key={`${variant}-p0`}\n        className=\"pi-part\"\n        d={\"M6 2h12M6 22h12\"}\n        style={paintPart(\"primary\", false, 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={\"M8 2v3c0 2.4 4 4.2 4 7s-4 4.6-4 7v3\"}\n        style={paintPart(\"primary\", false, 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={\"M16 2v3c0 2.4-4 4.2-4 7s4 4.6 4 7v3\"}\n        style={paintPart(\"primary\", false, false, false)}\n        variants={variants.p2}\n        initial=\"initial\"\n        animate={controls}\n      />\n\n\n    </motion.svg>\n  );\n}\n"
    }
  ]
}
