'use strict';

var chunkUZHQMTYC_cjs = require('./chunk-UZHQMTYC.cjs');
var chunk5XB54L7P_cjs = require('./chunk-5XB54L7P.cjs');
var css = require('@onbeam/styled-system/css');
var icons = require('@onbeam/icons');
var recipes = require('@onbeam/styled-system/recipes');
var jsxRuntime = require('react/jsx-runtime');

var c=chunk5XB54L7P_cjs.a(({as:n="button",children:m,className:p,label:l,disableChevron:u=!1,icon:e,disabled:f=!1,...i},B)=>{let t=recipes.selectButton();return jsxRuntime.jsxs("div",{className:css.cx(t.root,p),children:[l,jsxRuntime.jsxs(n,{ref:B,className:t.button,"data-has-icon":!!e,disabled:f,...n==="button"&&{type:"button"},...i,children:[e&&jsxRuntime.jsx(chunkUZHQMTYC_cjs.a,{size:24,className:t.icon,children:e}),jsxRuntime.jsx("span",{className:t.content,children:m}),!u&&jsxRuntime.jsx(icons.DownIcon,{className:t.chevron,height:16,width:16})]})]})});c.displayName="SelectButton";

exports.a = c;
//# sourceMappingURL=out.js.map
//# sourceMappingURL=chunk-RDNUAI55.cjs.map