'use strict';

var jsxRuntime = require('react/jsx-runtime');
var index$1 = require('../index-vioSzJOw.js');
var utils = require('../utils-BhM0B89p.js');
var separator = require('../separator-DSL-aG1J.js');
var index = require('../index-DuNgWCXZ.js');
require('react');
require('../index-DMbj7vXd.js');
require('react-dom');
require('../index-D-iDn9RI.js');

function ItemGroup$1({ className, ...props }) {
  return /* @__PURE__ */ jsxRuntime.jsx(
    "div",
    {
      role: "list",
      "data-slot": "item-group",
      className: utils.cn(
        "group/item-group flex w-full flex-col gap-4 has-data-[size=sm]:gap-2.5 has-data-[size=xs]:gap-2",
        className
      ),
      ...props
    }
  );
}
function ItemSeparator$1({
  className,
  ...props
}) {
  return /* @__PURE__ */ jsxRuntime.jsx(
    separator.Separator,
    {
      "data-slot": "item-separator",
      orientation: "horizontal",
      className: utils.cn("my-2", className),
      ...props
    }
  );
}
const itemVariants = index$1.cva(
  "group/item flex w-full flex-wrap items-center rounded-lg border text-sm transition-colors duration-100 outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 [a]:transition-colors [a]:hover:bg-muted",
  {
    variants: {
      variant: {
        default: "border-transparent",
        outline: "border-border",
        muted: "border-transparent bg-muted/50"
      },
      size: {
        default: "gap-2.5 px-3 py-2.5",
        sm: "gap-2.5 px-3 py-2.5",
        xs: "gap-2 px-2.5 py-2 in-data-[slot=dropdown-menu-content]:p-0"
      }
    },
    defaultVariants: {
      variant: "default",
      size: "default"
    }
  }
);
function Item$1({
  className,
  variant = "default",
  size = "default",
  asChild = false,
  ...props
}) {
  const Comp = asChild ? index.Slot : "div";
  return /* @__PURE__ */ jsxRuntime.jsx(
    Comp,
    {
      "data-slot": "item",
      "data-variant": variant,
      "data-size": size,
      className: utils.cn(itemVariants({ variant, size, className })),
      ...props
    }
  );
}
const itemMediaVariants = index$1.cva(
  "flex shrink-0 items-center justify-center gap-2 group-has-data-[slot=item-description]/item:translate-y-0.5 group-has-data-[slot=item-description]/item:self-start [&_svg]:pointer-events-none",
  {
    variants: {
      variant: {
        default: "bg-transparent",
        icon: "[&_svg:not([class*='size-'])]:size-4",
        image: "size-10 overflow-hidden rounded-sm group-data-[size=sm]/item:size-8 group-data-[size=xs]/item:size-6 [&_img]:size-full [&_img]:object-cover"
      }
    },
    defaultVariants: {
      variant: "default"
    }
  }
);
function ItemMedia$1({
  className,
  variant = "default",
  ...props
}) {
  return /* @__PURE__ */ jsxRuntime.jsx(
    "div",
    {
      "data-slot": "item-media",
      "data-variant": variant,
      className: utils.cn(itemMediaVariants({ variant, className })),
      ...props
    }
  );
}
function ItemContent$1({ className, ...props }) {
  return /* @__PURE__ */ jsxRuntime.jsx(
    "div",
    {
      "data-slot": "item-content",
      className: utils.cn(
        "flex flex-1 flex-col gap-1 group-data-[size=xs]/item:gap-0 [&+[data-slot=item-content]]:flex-none",
        className
      ),
      ...props
    }
  );
}
function ItemTitle$1({ className, ...props }) {
  return /* @__PURE__ */ jsxRuntime.jsx(
    "div",
    {
      "data-slot": "item-title",
      className: utils.cn(
        "line-clamp-1 flex w-fit items-center gap-2 text-sm leading-snug font-medium underline-offset-4",
        className
      ),
      ...props
    }
  );
}
function ItemDescription$1({ className, ...props }) {
  return /* @__PURE__ */ jsxRuntime.jsx(
    "p",
    {
      "data-slot": "item-description",
      className: utils.cn(
        "line-clamp-2 text-start text-sm leading-normal font-normal text-muted-foreground group-data-[size=xs]/item:text-xs [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",
        className
      ),
      ...props
    }
  );
}
function ItemActions$1({ className, ...props }) {
  return /* @__PURE__ */ jsxRuntime.jsx(
    "div",
    {
      "data-slot": "item-actions",
      className: utils.cn("flex items-center gap-2", className),
      ...props
    }
  );
}
function ItemHeader$1({ className, ...props }) {
  return /* @__PURE__ */ jsxRuntime.jsx(
    "div",
    {
      "data-slot": "item-header",
      className: utils.cn(
        "flex basis-full items-center justify-between gap-2",
        className
      ),
      ...props
    }
  );
}
function ItemFooter$1({ className, ...props }) {
  return /* @__PURE__ */ jsxRuntime.jsx(
    "div",
    {
      "data-slot": "item-footer",
      className: utils.cn(
        "flex basis-full items-center justify-between gap-2",
        className
      ),
      ...props
    }
  );
}

const Item = (props) => /* @__PURE__ */ jsxRuntime.jsx(Item$1, { ...props });
const ItemMedia = (props) => /* @__PURE__ */ jsxRuntime.jsx(ItemMedia$1, { ...props });
const ItemContent = (props) => /* @__PURE__ */ jsxRuntime.jsx(ItemContent$1, { ...props });
const ItemActions = (props) => /* @__PURE__ */ jsxRuntime.jsx(ItemActions$1, { ...props });
const ItemGroup = (props) => /* @__PURE__ */ jsxRuntime.jsx(ItemGroup$1, { ...props });
const ItemSeparator = (props) => /* @__PURE__ */ jsxRuntime.jsx(ItemSeparator$1, { ...props });
const ItemTitle = (props) => /* @__PURE__ */ jsxRuntime.jsx(ItemTitle$1, { ...props });
const ItemDescription = (props) => /* @__PURE__ */ jsxRuntime.jsx(ItemDescription$1, { ...props });
const ItemHeader = (props) => /* @__PURE__ */ jsxRuntime.jsx(ItemHeader$1, { ...props });
const ItemFooter = (props) => /* @__PURE__ */ jsxRuntime.jsx(ItemFooter$1, { ...props });

exports.Item = Item;
exports.ItemActions = ItemActions;
exports.ItemContent = ItemContent;
exports.ItemDescription = ItemDescription;
exports.ItemFooter = ItemFooter;
exports.ItemGroup = ItemGroup;
exports.ItemHeader = ItemHeader;
exports.ItemMedia = ItemMedia;
exports.ItemSeparator = ItemSeparator;
exports.ItemTitle = ItemTitle;
//# sourceMappingURL=Item.js.map
