{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "week-picker",
  "type": "registry:ui",
  "title": "Week Picker",
  "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/popover.json",
    "https://hamur.dev/r/react/week-calendar.json"
  ],
  "files": [
    {
      "path": "react/week-picker.tsx",
      "content": "'use client'\n\nimport type * as React from 'react' // base-ui-next/ui week-picker@0.1.0\nimport { WeekPicker as WeekPickerPrimitive } from '@base-ui-next/react/week-picker'\nimport { cn } from '@/lib/utils'\nimport { buttonVariants } from '@/components/ui/button'\nimport { WeekCalendarContent } from '@/components/ui/week-calendar'\n\nconst popoverContentPositionerClassName = 'isolate z-50'\n\nconst popoverContentClassName =\n  'z-50 flex w-72 origin-(--transform-origin) flex-col gap-4 rounded-md bg-popover p-4 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95'\n\nconst weekCalendarClassName =\n  'group/week-calendar w-fit bg-background p-3 [--cell-radius:var(--radius-md)] [--cell-size:--spacing(8)] in-data-[slot=card-content]:bg-transparent in-data-[slot=popover-content]:bg-transparent in-data-[slot=week-picker-popup]:bg-transparent'\n\nconst weekPickerTriggerClassName = 'w-64 justify-start font-normal'\n\nconst weekPickerValueClassName = 'truncate data-placeholder:text-muted-foreground'\n\nconst weekPickerPopupClassName = 'w-auto gap-0 p-0'\n\nconst weekPickerCloseClassName = 'm-3 mt-0 self-end'\n\nfunction SvgIcon({ children, ...props }: React.ComponentProps<'svg'>) {\n  return (\n    <svg\n      xmlns=\"http://www.w3.org/2000/svg\"\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      {...props}\n    >\n      {children}\n    </svg>\n  )\n}\n\nfunction WeekPicker({ ...props }: WeekPickerPrimitive.Root.Props) {\n  return <WeekPickerPrimitive.Root {...props} />\n}\n\nfunction WeekPickerTrigger({ className, children, ...props }: WeekPickerPrimitive.Trigger.Props) {\n  return (\n    <WeekPickerPrimitive.Trigger\n      data-slot=\"week-picker-trigger\"\n      className={cn(buttonVariants({ variant: 'outline' }), weekPickerTriggerClassName, className)}\n      {...props}\n    >\n      <SvgIcon>\n        <path d=\"M8 2v4\" />\n        <path d=\"M16 2v4\" />\n        <rect width=\"18\" height=\"18\" x=\"3\" y=\"4\" rx=\"2\" />\n        <path d=\"M3 10h18\" />\n        <path d=\"M8 14h.01\" />\n        <path d=\"M12 14h.01\" />\n        <path d=\"M16 14h.01\" />\n        <path d=\"M8 18h.01\" />\n        <path d=\"M12 18h.01\" />\n        <path d=\"M16 18h.01\" />\n      </SvgIcon>\n      {children ?? <WeekPickerValue />}\n    </WeekPickerPrimitive.Trigger>\n  )\n}\n\nfunction WeekPickerValue({ className, ...props }: WeekPickerPrimitive.Value.Props) {\n  return (\n    <WeekPickerPrimitive.Value\n      data-slot=\"week-picker-value\"\n      className={cn(weekPickerValueClassName, className)}\n      {...props}\n    />\n  )\n}\n\nfunction WeekPickerPortal({ ...props }: WeekPickerPrimitive.Portal.Props) {\n  return <WeekPickerPrimitive.Portal {...props} />\n}\n\nfunction WeekPickerPositioner({\n  className,\n  align = 'start',\n  sideOffset = 4,\n  ...props\n}: WeekPickerPrimitive.Positioner.Props) {\n  return (\n    <WeekPickerPrimitive.Positioner\n      data-slot=\"week-picker-positioner\"\n      align={align}\n      sideOffset={sideOffset}\n      className={cn(popoverContentPositionerClassName, className)}\n      {...props}\n    />\n  )\n}\n\nfunction WeekPickerPopup({ className, ...props }: WeekPickerPrimitive.Popup.Props) {\n  return (\n    <WeekPickerPrimitive.Popup\n      data-slot=\"week-picker-popup\"\n      className={cn(popoverContentClassName, weekPickerPopupClassName, className)}\n      {...props}\n    />\n  )\n}\n\nfunction WeekPickerCalendar({ className, children, ...props }: WeekPickerPrimitive.Calendar.Props) {\n  return (\n    <WeekPickerPrimitive.Calendar\n      data-slot=\"week-picker-calendar\"\n      className={cn(weekCalendarClassName, className)}\n      {...props}\n    >\n      {children ?? <WeekCalendarContent />}\n    </WeekPickerPrimitive.Calendar>\n  )\n}\n\nfunction WeekPickerClose({ className, ...props }: WeekPickerPrimitive.Close.Props) {\n  return (\n    <WeekPickerPrimitive.Close\n      data-slot=\"week-picker-close\"\n      className={cn(\n        buttonVariants({ variant: 'outline', size: 'sm' }),\n        weekPickerCloseClassName,\n        className,\n      )}\n      {...props}\n    />\n  )\n}\n\nexport {\n  WeekPicker,\n  WeekPickerCalendar,\n  WeekPickerClose,\n  WeekPickerPopup,\n  WeekPickerPortal,\n  WeekPickerPositioner,\n  WeekPickerTrigger,\n  WeekPickerValue,\n}\n",
      "type": "registry:ui",
      "target": "@ui/week-picker.tsx"
    }
  ],
  "meta": {
    "baseUiNext": {
      "version": "0.1.0",
      "hash": "638a4e658f806855fd38f747b18b18c953396d0b5177c33ec37a2f5742ca5c10",
      "files": {
        "@ui/week-picker.tsx": "1781ceb608526bda61b66a776e20c44ee7f5388e20afbad0ff0af5def0218123"
      }
    }
  }
}
