'use client';import { a as a$1 } from './chunk-UPX6JFOI.js';
import { a } from './chunk-LU4CTAVZ.js';
import { forwardRef } from 'react';
import { Portal, Content, Viewport, Item, ItemText, Root, Trigger, Value } from '@radix-ui/react-select';
import { actionMenu } from '@onbeam/styled-system/recipes';
import { cx } from '@onbeam/styled-system/css';
import { DownIcon } from '@onbeam/icons';
import { jsx, jsxs } from 'react/jsx-runtime';

var d=forwardRef(({className:s,children:o,...e},n)=>{let r=actionMenu();return jsx(Portal,{children:jsx(Content,{ref:n,...e,asChild:!0,children:jsx(a,{size:"sm",className:r.root,children:jsx(Viewport,{className:r.viewport,children:o})})})})});d.displayName=Content.displayName;var I=forwardRef(({className:s,children:o,...e},n)=>{let r=actionMenu();return jsx(Item,{ref:n,asChild:!0,...e,children:jsx("button",{type:"button",className:r.item,children:jsx(ItemText,{children:o})})})});I.displayName=Item.displayName;var C=forwardRef(({placeholder:s,triggerProps:o,value:e,items:n,...r},y)=>{let M=actionMenu(),{className:A}=o||{};return jsxs(Root,{...r,value:e,children:[jsx(Trigger,{asChild:!0,children:jsxs(a$1,{...o,className:cx(M.trigger,A),children:[jsx(Value,{placeholder:s,"aria-label":e,children:n.find(a=>a.value===e)?.label||s}),jsx(DownIcon,{height:16,width:16,style:{minWidth:16}})]})}),jsx(d,{ref:y,position:"popper",align:"start",side:"bottom",sideOffset:8,children:n.map(a=>jsx(I,{value:a.value,disabled:a.disabled,children:a.label},a.value))})]})});C.displayName="ActionMenu";

export { C as a };
//# sourceMappingURL=out.js.map
//# sourceMappingURL=chunk-B7VPG3H7.js.map