{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "image-cropper",
  "type": "registry:ui",
  "title": "Image Cropper",
  "dependencies": [
    "@base-ui-next/react"
  ],
  "registryDependencies": [
    "https://hamur.dev/r/react/utils.json",
    "https://hamur.dev/r/react/button.json",
    "https://hamur.dev/r/react/slider.json"
  ],
  "files": [
    {
      "path": "react/image-cropper.tsx",
      "content": "'use client'\n\nimport { ImageCropper as ImageCropperPrimitive } from '@base-ui-next/react/image-cropper' // base-ui-next/ui image-cropper@0.1.1\nimport { cn } from '@/lib/utils'\n\nconst imageCropperClassName = 'flex w-full flex-col gap-3'\n\nconst imageCropperViewportClassName = 'bg-muted p-3'\n\nconst imageCropperImageClassName = 'select-none'\n\nconst imageCropperAreaClassName =\n  'cursor-move border border-white shadow-[0_0_0_1px_rgb(0_0_0/0.6),0_0_0_9999px_rgb(0_0_0/0.5)] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring data-[shape=circle]:rounded-full'\n\nconst imageCropperHandleClassName =\n  'size-2.5 rounded-xs border border-black/60 bg-white before:absolute before:top-1/2 before:left-1/2 before:size-6 before:-translate-x-1/2 before:-translate-y-1/2 before:content-[\"\"] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring data-[position=top]:cursor-ns-resize data-[position=bottom]:cursor-ns-resize data-[position=left]:cursor-ew-resize data-[position=right]:cursor-ew-resize data-[position=top-left]:cursor-nwse-resize data-[position=bottom-right]:cursor-nwse-resize data-[position=top-right]:cursor-nesw-resize data-[position=bottom-left]:cursor-nesw-resize'\n\nconst imageCropperGridClassName =\n  'opacity-0 transition-opacity data-dragging:opacity-100 data-resizing:opacity-100 bg-[repeating-linear-gradient(to_right,transparent_0,transparent_calc(100%_/_var(--grid-columns)_-_1px),rgb(255_255_255/0.6)_calc(100%_/_var(--grid-columns)_-_1px),rgb(255_255_255/0.6)_calc(100%_/_var(--grid-columns))),repeating-linear-gradient(to_bottom,transparent_0,transparent_calc(100%_/_var(--grid-rows)_-_1px),rgb(255_255_255/0.6)_calc(100%_/_var(--grid-rows)_-_1px),rgb(255_255_255/0.6)_calc(100%_/_var(--grid-rows)))]'\n\nfunction ImageCropper({ className, ...props }: ImageCropperPrimitive.Root.Props) {\n  return (\n    <ImageCropperPrimitive.Root\n      data-slot=\"image-cropper\"\n      className={cn(imageCropperClassName, className)}\n      {...props}\n    />\n  )\n}\n\nfunction ImageCropperViewport({ className, ...props }: ImageCropperPrimitive.Viewport.Props) {\n  return (\n    <ImageCropperPrimitive.Viewport\n      data-slot=\"image-cropper-viewport\"\n      className={cn(imageCropperViewportClassName, className)}\n      {...props}\n    />\n  )\n}\n\nfunction ImageCropperImage({ className, ...props }: ImageCropperPrimitive.Image.Props) {\n  return (\n    <ImageCropperPrimitive.Image\n      data-slot=\"image-cropper-image\"\n      className={cn(imageCropperImageClassName, className)}\n      {...props}\n    />\n  )\n}\n\nfunction ImageCropperArea({ className, ...props }: ImageCropperPrimitive.Area.Props) {\n  return (\n    <ImageCropperPrimitive.Area\n      data-slot=\"image-cropper-area\"\n      className={cn(imageCropperAreaClassName, className)}\n      {...props}\n    />\n  )\n}\n\nfunction ImageCropperHandle({ className, ...props }: ImageCropperPrimitive.Handle.Props) {\n  return (\n    <ImageCropperPrimitive.Handle\n      data-slot=\"image-cropper-handle\"\n      className={cn(imageCropperHandleClassName, className)}\n      {...props}\n    />\n  )\n}\n\nfunction ImageCropperGrid({ className, ...props }: ImageCropperPrimitive.Grid.Props) {\n  return (\n    <ImageCropperPrimitive.Grid\n      data-slot=\"image-cropper-grid\"\n      className={cn(imageCropperGridClassName, className)}\n      {...props}\n    />\n  )\n}\n\nfunction ImageCropperStatus(props: ImageCropperPrimitive.Status.Props) {\n  return <ImageCropperPrimitive.Status data-slot=\"image-cropper-status\" {...props} />\n}\n\nexport {\n  ImageCropper,\n  ImageCropperArea,\n  ImageCropperGrid,\n  ImageCropperHandle,\n  ImageCropperImage,\n  ImageCropperStatus,\n  ImageCropperViewport,\n}\n",
      "type": "registry:ui",
      "target": "@ui/image-cropper.tsx"
    }
  ],
  "meta": {
    "baseUiNext": {
      "version": "0.1.1",
      "hash": "b8976999f77ef018069e7fe279ae6e82471752e26a13b0f3d47cc99182e68c20",
      "files": {
        "@ui/image-cropper.tsx": "2d4ab76b5e0431567ae857f8a26ec93009bd62edbca897dab062007b3862195b"
      }
    }
  }
}
