{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "long-sleeve-shirt",
  "type": "registry:ui",
  "title": "long-sleeve-shirt",
  "description": "Animated long sleeve shirt icon for Vue",
  "dependencies": [
    "motion-v"
  ],
  "files": [
    {
      "path": "components/ui/long-sleeve-shirt.vue",
      "type": "registry:ui",
      "content": "<script setup lang=\"ts\">\nimport { motion, useAnimationControls } from 'motion-v'\nimport type { Variants } from 'motion-v'\nimport { useIconAnimation } from '../composables/useIconAnimation'\nimport type { AnimatedIconHandle } from '../types'\n\ndefineOptions({ inheritAttrs: false, name: 'LongSleeveShirtIcon' })\n\nwithDefaults(\n  defineProps<{\n    size?: number\n  }>(),\n  { size: 28 },\n)\n\n// after folder-01: the parts of the long sleeve shirt move from their own mass and settle together\n// generated from @hugeicons/core-free-icons\nconst folderVariants: Variants = {\n  normal: {\n    transform: 'translateY(0px) rotate(0deg)',\n  },\n  animate: {\n    transform: ['translateY(0px) rotate(0deg)', 'translateY(-1.82px) rotate(-2.14deg)', 'translateY(0.43px) rotate(0.75deg)', 'translateY(0px) rotate(0deg)'],\n    transition: {\n      duration: 0.58,\n      ease: [0.23, 1, 0.32, 1],\n    },\n  },\n}\n\nconst controls = useAnimationControls()\nconst { onMouseEnter, onMouseLeave, startAnimation, stopAnimation } = useIconAnimation({\n  controls,\n  loops: false,\n})\n\ndefineExpose<AnimatedIconHandle>({ startAnimation, stopAnimation })\n</script>\n\n<template>\n  <div class=\"hia-icon\" @mouseenter=\"onMouseEnter\" @mouseleave=\"onMouseLeave\" v-bind=\"$attrs\">\n          <svg xmlns=\"http://www.w3.org/2000/svg\" :width=\"size\" :height=\"size\" viewBox=\"0 0 24 24\" fill=\"none\" overflow=\"visible\">\n            <motion.path d=\"M5.5 7C5.82861 7.98583 6.21894 8.98374 6.3592 10.0191C6.45996 10.7628 6.42039 11.5168 6.34125 13.0248L6 19.5267C6 20.2323 6.11985 20.6092 6.75491 20.9496C9.3676 22.3501 14.6324 22.3501 17.2451 20.9496C17.8802 20.6092 18 20.2323 18 19.5267L17.6588 13.0248C17.5796 11.5168 17.54 10.7628 17.6408 10.0191C17.7811 8.98374 18.1714 7.98583 18.5 7\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" :variants=\"folderVariants\" :animate=\"controls\" initial=\"normal\" :style=\"{ transformOrigin: '12px 19.05px' }\" />\n            <motion.path d=\"M5.97108 18.5133C5.5045 18.7457 5.03918 19.0498 4.49657 18.9919C3.58003 18.8942 3.36671 18.4513 3.18021 17.343L2.09958 10.9212C1.95508 10.0625 1.9554 10.0558 2.18333 9.21526L2.72102 7.23229C3.085 5.88992 3.267 5.21874 3.70337 4.70677C4.13974 4.1948 4.77503 3.9071 6.04562 3.33172L8.59018 2.17941C8.98484 2.00069 8.98802 2 9.42155 2H14.5785C15.012 2 15.0152 2.00069 15.4098 2.17941L17.9544 3.33172C19.225 3.9071 19.8603 4.1948 20.2966 4.70677C20.733 5.21874 20.915 5.88992 21.279 7.23229L21.8167 9.21526C22.0446 10.0558 22.0449 10.0625 21.9004 10.9212L20.8198 17.343C20.633 18.4533 20.4186 18.8949 19.5002 18.9921C18.9331 19.0521 18.519 18.759 18.0257 18.5133\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" :variants=\"folderVariants\" :animate=\"controls\" initial=\"normal\" :style=\"{ transformOrigin: '12px 19.05px' }\" />\n            <motion.path d=\"M9 2.5C9 2.5 9.90752 4.41477 10.6606 4.81358C11.0467 5.01803 11.53 4.99957 12 4.99957C12.47 4.99957 12.9533 5.01803 13.3394 4.81358C14.0925 4.41477 15 2.5 15 2.5\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" :variants=\"folderVariants\" :animate=\"controls\" initial=\"normal\" :style=\"{ transformOrigin: '12px 19.05px' }\" />\n          </svg>\n        </div>\n</template>\n"
    },
    {
      "path": "composables/useIconAnimation.ts",
      "type": "registry:lib",
      "content": "import { ref, toValue, type MaybeRefOrGetter } from 'vue'\nimport type { AnimatedIconHandle } from '../types'\n\nexport type IconPose = 'normal' | 'animate'\n\ntype AnimationControls = {\n  set: (variant: IconPose | Record<string, unknown>) => void\n  start: (variant: IconPose | Record<string, unknown>) => Promise<unknown>\n}\n\nexport function useReducedMotionFlag(\n  reduced?: MaybeRefOrGetter<boolean | undefined>,\n) {\n  if (typeof window === 'undefined') return () => false\n  return () => {\n    const override = reduced === undefined ? undefined : toValue(reduced)\n    if (override !== undefined) return override\n    return window.matchMedia('(prefers-reduced-motion: reduce)').matches\n  }\n}\n\nexport function useIconAnimation(options: {\n  controls: AnimationControls\n  loops?: boolean\n}): AnimatedIconHandle & {\n  onMouseEnter: () => void\n  onMouseLeave: () => void\n} {\n  const { controls, loops = false } = options\n  const isPlaying = ref(false)\n  let run = 0\n\n  const prefersReduced = () =>\n    typeof window !== 'undefined' &&\n    window.matchMedia('(prefers-reduced-motion: reduce)').matches\n\n  async function startAnimation() {\n    if (prefersReduced() || isPlaying.value) return\n\n    isPlaying.value = true\n    const current = ++run\n    controls.set('normal')\n    await controls.start('animate')\n    if (run === current) isPlaying.value = false\n  }\n\n  function stopAnimation() {\n    if (!loops) return\n    run += 1\n    isPlaying.value = false\n    void controls.start('normal')\n  }\n\n  return {\n    startAnimation,\n    stopAnimation,\n    onMouseEnter: () => {\n      void startAnimation()\n    },\n    onMouseLeave: () => {\n      stopAnimation()\n    },\n  }\n}\n"
    },
    {
      "path": "types/animated-icon.ts",
      "type": "registry:lib",
      "content": "export interface AnimatedIconHandle {\n  startAnimation: () => void\n  stopAnimation: () => void\n}\n\nexport interface AnimatedIconProps {\n  size?: number\n}\n"
    }
  ]
}
