'use strict';

var jsxRuntime = require('../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.cjs');
var reactIcons_esm = require('../../node_modules/.pnpm/@radix-ui_react-icons@1.3.0_react@18.2.0/node_modules/@radix-ui/react-icons/dist/react-icons.esm.cjs');
var index = require('../../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.cjs');
var index$1 = require('../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.cjs');
var React = require('react');
var text = require('../text/text.cjs');
var select_module = require('./select.module.css.cjs');

function _interopNamespaceDefault(e) {
    var n = Object.create(null);
    if (e) {
        Object.keys(e).forEach(function (k) {
            if (k !== 'default') {
                var d = Object.getOwnPropertyDescriptor(e, k);
                Object.defineProperty(n, k, d.get ? d : {
                    enumerable: true,
                    get: function () { return e[k]; }
                });
            }
        });
    }
    n.default = e;
    return Object.freeze(n);
}

var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);

const trigger = index$1.cva(select_module.default.trigger, {
    variants: {
        size: {
            small: select_module.default["trigger-sm"],
            medium: select_module.default["trigger-md"],
        },
    },
    defaultVariants: {
        size: "medium",
    },
});
const SelectTrigger = React__namespace.forwardRef(({ size, className, children, iconProps = {}, ...props }, ref) => (jsxRuntime.jsxRuntimeExports.jsxs(index.Trigger, { ref: ref, className: trigger({ size, className }), ...props, children: [children, jsxRuntime.jsxRuntimeExports.jsx(index.Icon, { asChild: true, children: jsxRuntime.jsxRuntimeExports.jsx(reactIcons_esm.ChevronDownIcon, { className: select_module.default.triggerIcon, ...iconProps }) })] })));
SelectTrigger.displayName = index.Trigger.displayName;
const content = index$1.cva(select_module.default.content);
const SelectContent = React__namespace.forwardRef(({ className, children, position = "popper", ...props }, ref) => (jsxRuntime.jsxRuntimeExports.jsx(index.Portal, { children: jsxRuntime.jsxRuntimeExports.jsx(index.Content, { ref: ref, className: content({ className }), position: position, ...props, children: children }) })));
SelectContent.displayName = index.Content.displayName;
const menuitem = index$1.cva(select_module.default.menuitem);
const SelectItem = React__namespace.forwardRef(({ className, textProps = {}, children, ...props }, ref) => (jsxRuntime.jsxRuntimeExports.jsx(index.Item, { ref: ref, className: menuitem({ className }), ...props, children: jsxRuntime.jsxRuntimeExports.jsx(index.ItemText, { children: jsxRuntime.jsxRuntimeExports.jsx(text.Text, { ...textProps, children: children }) }) })));
SelectItem.displayName = index.Item.displayName;
const separator = index$1.cva(select_module.default.separator);
const SelectSeparator = React__namespace.forwardRef(({ className, ...props }, ref) => (jsxRuntime.jsxRuntimeExports.jsx(index.Separator, { ref: ref, className: separator({ className }), ...props })));
SelectSeparator.displayName = index.Separator.displayName;
const Select = Object.assign(index.Root, {
    Group: index.Group,
    Value: index.Value,
    ScrollUpButton: index.ScrollDownButton,
    ScrollDownButton: index.ScrollDownButton,
    Viewport: index.Viewport,
    Trigger: SelectTrigger,
    Content: SelectContent,
    Item: SelectItem,
    Separator: SelectSeparator,
});

exports.Select = Select;
//# sourceMappingURL=select.cjs.map
