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

exports.a = m;
//# sourceMappingURL=out.js.map
//# sourceMappingURL=chunk-V3MWBDS7.cjs.map