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

exports.a = p;
//# sourceMappingURL=out.js.map
//# sourceMappingURL=chunk-KIT7C63G.cjs.map