import { j as jsxRuntimeExports } from '../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js';
import { forwardRef } from 'react';
import { ChevronDownIcon } from '../../node_modules/.pnpm/@radix-ui_react-icons@1.3.0_react@18.2.0/node_modules/@radix-ui/react-icons/dist/react-icons.esm.js';
import { Trigger, Icon } from '../../node_modules/.pnpm/@radix-ui_react-select@2.1.1_@types_react-dom@18.0.11_@types_react@18.2.12_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-select/dist/index.js';
import { cva } from '../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js';
import styles from './select.module.css.js';

const trigger = cva(styles.trigger, {
    variants: {
        size: {
            small: styles["trigger-small"],
            medium: styles["trigger-medium"],
        },
        variant: {
            outline: styles["trigger-outline"],
            text: styles["trigger-text"],
        },
    },
    defaultVariants: {
        size: "medium",
        variant: "outline",
    },
});
const SelectTrigger = forwardRef(({ size, variant, className, children, iconProps = {}, "aria-label": ariaLabel, style, stopPropagation = false, ...props }, ref) => (jsxRuntimeExports.jsxs(Trigger, { ref: ref, className: trigger({ size, variant, className }), "aria-label": ariaLabel || "Select option", style: {
        ...style,
        display: "flex",
        justifyContent: "space-between",
    }, onPointerDown: e => {
        if (stopPropagation) {
            e.stopPropagation();
        }
    }, ...props, children: [jsxRuntimeExports.jsx("div", { className: styles.triggerContent, children: children }), jsxRuntimeExports.jsx(Icon, { asChild: true, children: jsxRuntimeExports.jsx(ChevronDownIcon, { className: styles.triggerIcon, "aria-hidden": "true", ...iconProps }) })] })));
SelectTrigger.displayName = Trigger.displayName;

export { SelectTrigger };
//# sourceMappingURL=select-trigger.js.map
