// Compatibility barrel — mirrors the NelliUI "radix-ui" package structure
// so that shadcn components copied from the NelliUI registry work without modification.
// Standard @radix-ui/react-* packages export sub-components as separate named exports;
// NelliUI's "radix-ui" barrel exports them as compound objects (e.g., Dialog.Root).
// This file re-exports them in the compound format.

// Slot
import { Slot } from "@radix-ui/react-slot";

// Dialog
import {
  Dialog as DialogRoot,
  DialogTrigger,
  DialogPortal,
  DialogOverlay,
  DialogContent,
  DialogClose,
  DialogTitle,
  DialogDescription,
} from "@radix-ui/react-dialog";

export const Dialog = {
  Root: DialogRoot,
  Trigger: DialogTrigger,
  Portal: DialogPortal,
  Overlay: DialogOverlay,
  Content: DialogContent,
  Close: DialogClose,
  Title: DialogTitle,
  Description: DialogDescription,
};

// Select
import {
  Select as SelectRoot,
  SelectGroup,
  SelectValue,
  SelectTrigger,
  SelectContent,
  SelectLabel,
  SelectItem,
  SelectSeparator,
  SelectIcon,
  SelectPortal,
  SelectViewport,
  SelectItemText,
  SelectItemIndicator,
  SelectScrollUpButton,
  SelectScrollDownButton,
} from "@radix-ui/react-select";

export const Select = {
  Root: SelectRoot,
  Group: SelectGroup,
  Value: SelectValue,
  Trigger: SelectTrigger,
  Content: SelectContent,
  Label: SelectLabel,
  Item: SelectItem,
  Separator: SelectSeparator,
  Icon: SelectIcon,
  Portal: SelectPortal,
  Viewport: SelectViewport,
  ItemText: SelectItemText,
  ItemIndicator: SelectItemIndicator,
  ScrollUpButton: SelectScrollUpButton,
  ScrollDownButton: SelectScrollDownButton,
};

// Label
import { Label as LabelRoot } from "@radix-ui/react-label";

export const Label = {
  Root: LabelRoot,
};

// Checkbox
import { Checkbox as CheckboxRoot, CheckboxIndicator } from "@radix-ui/react-checkbox";

export const Checkbox = {
  Root: CheckboxRoot,
  Indicator: CheckboxIndicator,
};

// Separator
import { Separator as SeparatorRoot } from "@radix-ui/react-separator";

export const Separator = {
  Root: SeparatorRoot,
};

// Tooltip
import {
  Tooltip as TooltipRoot,
  TooltipTrigger,
  TooltipContent,
  TooltipProvider,
  TooltipPortal,
  TooltipArrow,
} from "@radix-ui/react-tooltip";

export const Tooltip = {
  Root: TooltipRoot,
  Trigger: TooltipTrigger,
  Content: TooltipContent,
  Provider: TooltipProvider,
  Portal: TooltipPortal,
  Arrow: TooltipArrow,
};

export { Slot };
