"use strict";var i=require("react/jsx-runtime"),t=require("@styled/css"),k=require("@styled/jsx"),R=require("@styled/tokens"),s=require("react"),e=require("react-aria");const n=s.forwardRef(({children:u,className:l,borderRadius:c,disabled:r,expand:d,onHover:o,shadow:b,...p},g)=>{const f=s.useRef(null),a=g||f,{buttonProps:h}=e.useButton({...p,isDisabled:r??!1},a),{hoverProps:v}=e.useHover({isDisabled:r??!1}),{isFocusVisible:m,focusProps:y}=e.useFocusRing();return i.jsx("button",{ref:a,className:t.cx(t.css({_active:{transform:"scale(0.95)"},_disabled:{opacity:"0.8",pointerEvents:"none"},cursor:"pointer",h:"auto",outline:"none",position:"relative",transition:"all 0.1s ease",willChange:"transform, opacity",...d?{w:"full"}:{},...b?{_before:{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,borderRadius:"inherit",backgroundImage:"linear-gradient(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05))",_dark:{backgroundImage:"linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05))"},opacity:0,transition:"opacity 0.1s ease"},_hover:{_before:{opacity:1}}}:{}}),m&&t.css({outlineColor:"brand.base",outlineStyle:"solid",outlineWidth:"thick",outlineOffset:.5}),l),style:{borderRadius:c??R.token("radii.button")},...e.mergeProps(h,v,y),"aria-disabled":r,onMouseEnter:o,onTouchStart:o,children:i.jsx(k.VStack,{children:u})})});n.displayName="ButtonContainer",exports.ButtonContainer=n;
//# sourceMappingURL=button.js.map
