{"version":3,"file":"index.cjs","sources":["../../../src/components/Sheet/index.tsx"],"sourcesContent":["import { cn } from \"@/components/utils\";\nimport * as SheetPrimitive from \"@radix-ui/react-dialog\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport { X } from \"lucide-react\";\nimport * as React from \"react\";\n\nconst Sheet = SheetPrimitive.Root;\n\nconst SheetTrigger = SheetPrimitive.Trigger;\n\nconst SheetClose = SheetPrimitive.Close;\n\nconst SheetPortal = SheetPrimitive.Portal;\n\nconst SheetOverlay = React.forwardRef<\n  React.ElementRef<typeof SheetPrimitive.Overlay>,\n  React.ComponentPropsWithoutRef<typeof SheetPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n  <SheetPrimitive.Overlay\n    className={cn(\n      \"fixed inset-0 z-[1001] bg-black/60  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\",\n      className\n    )}\n    {...props}\n    ref={ref}\n  />\n));\nSheetOverlay.displayName = SheetPrimitive.Overlay.displayName;\n\nconst sheetVariants = cva(\n  \"fixed z-[1002] gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500\",\n  {\n    variants: {\n      side: {\n        top: \"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top\",\n        bottom:\n          \"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom\",\n        left: \"inset-y-0 left-0 h-full w-full border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm\",\n        right:\n          \"inset-y-0 right-0 h-full w-full border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm\",\n      },\n    },\n    defaultVariants: {\n      side: \"right\",\n    },\n  }\n);\n\ninterface SheetContentProps\n  extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>,\n    VariantProps<typeof sheetVariants> {\n  hideClose?: boolean;\n}\n\nconst SheetContent = React.forwardRef<\n  React.ElementRef<typeof SheetPrimitive.Content>,\n  SheetContentProps\n>(({ side = \"right\", hideClose, className, children, ...props }, ref) => (\n  <SheetPortal>\n    <SheetOverlay />\n    <SheetPrimitive.Content\n      ref={ref}\n      className={cn(sheetVariants({ side }), className)}\n      {...props}\n    >\n      {children}\n      {hideClose ? null : (\n        <SheetPrimitive.Close className=\"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary\">\n          <X className=\"h-4 w-4\" />\n          <span className=\"sr-only\">Close</span>\n        </SheetPrimitive.Close>\n      )}\n    </SheetPrimitive.Content>\n  </SheetPortal>\n));\nSheetContent.displayName = SheetPrimitive.Content.displayName;\n\nconst SheetHeader = ({\n  className,\n  ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n  <div\n    className={cn(\"flex flex-col space-y-2 text-left\", className)}\n    {...props}\n  />\n);\nSheetHeader.displayName = \"SheetHeader\";\n\nconst SheetFooter = ({\n  className,\n  ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n  <div\n    className={cn(\n      \"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2\",\n      className\n    )}\n    {...props}\n  />\n);\nSheetFooter.displayName = \"SheetFooter\";\n\nconst SheetTitle = React.forwardRef<\n  React.ElementRef<typeof SheetPrimitive.Title>,\n  React.ComponentPropsWithoutRef<typeof SheetPrimitive.Title>\n>(({ className, ...props }, ref) => (\n  <SheetPrimitive.Title\n    ref={ref}\n    className={cn(\"text-lg font-semibold text-foreground\", className)}\n    {...props}\n  />\n));\nSheetTitle.displayName = SheetPrimitive.Title.displayName;\n\nconst SheetDescription = React.forwardRef<\n  React.ElementRef<typeof SheetPrimitive.Description>,\n  React.ComponentPropsWithoutRef<typeof SheetPrimitive.Description>\n>(({ className, ...props }, ref) => (\n  <SheetPrimitive.Description\n    ref={ref}\n    className={cn(\"text-sm text-muted-foreground\", className)}\n    {...props}\n  />\n));\nSheetDescription.displayName = SheetPrimitive.Description.displayName;\n\nexport {\n    Sheet,\n    SheetClose,\n    SheetContent,\n    SheetDescription,\n    SheetFooter,\n    SheetHeader,\n    SheetOverlay,\n    SheetPortal,\n    SheetTitle,\n    SheetTrigger\n};\n\n"],"names":["Sheet","SheetPrimitive.Root","Root","SheetTrigger","SheetPrimitive.Trigger","Trigger","SheetClose","SheetPrimitive.Close","Close","SheetPortal","SheetPrimitive.Portal","Portal","SheetOverlay","React","forwardRef","className","props","ref","jsx","jsxRuntimeExports","SheetPrimitive.Overlay","Overlay","cn","displayName","sheetVariants","cva","variants","side","top","bottom","left","right","defaultVariants","SheetContent","hideClose","children","jsxRuntime","jsxs","SheetPrimitive.Content","Content","X","SheetHeader","SheetFooter","SheetTitle","SheetPrimitive.Title","Title","SheetDescription","SheetPrimitive.Description","Description"],"mappings":"knBAMMA,EAAQC,EAAeC,KAEvBC,EAAeC,EAAeC,QAE9BC,EAAaC,EAAeC,MAE5BC,EAAcC,EAAeC,OAE7BC,EAAeC,EAAMC,YAGzB,EAAGC,eAAcC,GAASC,IAC1BC,EAAAC,kBAAAD,IAACE,EAAeC,QAAf,CACCN,UAAWO,EAAAA,GACT,8JACAP,MAEEC,EACJC,UAGJL,EAAaW,YAAcH,EAAuBC,QAAAE,YAElD,MAAMC,EAAgBC,EAAAA,IACpB,uMACA,CACEC,SAAU,CACRC,KAAM,CACJC,IAAK,oGACLC,OACE,6GACFC,KAAM,iIACNC,MACE,sIAGNC,gBAAiB,CACfL,KAAM,WAWNM,EAAepB,EAAMC,YAGzB,EAAGa,OAAO,QAASO,YAAWnB,YAAWoB,cAAanB,GAASC,6BAC9DR,EACC,CAAA0B,SAAA,CAAAC,EAAAjB,kBAAAD,IAACN,EAAa,MACdO,kBAAAkB,KAACC,EAAeC,QAAf,CACCtB,MACAF,UAAWO,EAA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