"use client";
import { jsx, jsxs } from "react/jsx-runtime";
import * as React from "react";
import { cn } from "@open-mercato/shared/lib/utils";
import {
  Select,
  SelectContent,
  SelectGroup,
  SelectItem,
  SelectLabel,
  SelectSeparator,
  SelectTrigger,
  SelectValue
} from "./select.js";
const CompactSelectTrigger = React.forwardRef(({ triggerLabel, children, className, ...props }, ref) => /* @__PURE__ */ jsxs(
  SelectTrigger,
  {
    ref,
    size: "xs",
    className: cn(className),
    "data-slot": "compact-select-trigger",
    ...props,
    children: [
      triggerLabel ? /* @__PURE__ */ jsx(
        "span",
        {
          className: "shrink-0 text-xs font-medium text-muted-foreground",
          "data-slot": "compact-select-trigger-label",
          children: triggerLabel
        }
      ) : null,
      children
    ]
  }
));
CompactSelectTrigger.displayName = "CompactSelectTrigger";
export {
  CompactSelectTrigger,
  Select,
  SelectContent,
  SelectGroup,
  SelectItem,
  SelectLabel,
  SelectSeparator,
  SelectValue
};
//# sourceMappingURL=compact-select.js.map
