"use strict";var a=require("react/jsx-runtime"),x=require("../../lib/cn.js"),i=require("react"),e=require("react-aria");const n=i.forwardRef(({children:s,className:u,borderRadius:l,disabled:r,expand:b,onHover:o,shadow:d,style:c,...f},p)=>{const g=i.useRef(null),t=p||g,{buttonProps:v}=e.useButton({...f,isDisabled:r??!1},t),{hoverProps:h}=e.useHover({isDisabled:r??!1}),{isFocusVisible:m,focusProps:y}=e.useFocusRing();return a.jsx("button",{ref:t,className:x.cn("active:scale-95 disabled:opacity-80 disabled:pointer-events-none cursor-pointer h-auto outline-none relative transition-all duration-100 ease-in-out will-change-[transform,opacity]",b&&"w-full",d&&'before:content-[""] before:absolute before:top-0 before:left-0 before:right-0 before:bottom-0 before:rounded-[inherit] before:bg-[linear-gradient(rgba(0,0,0,0.05),rgba(0,0,0,0.05))] dark:before:bg-[linear-gradient(rgba(255,255,255,0.05),rgba(255,255,255,0.05))] before:opacity-0 before:transition-opacity before:duration-100 before:ease-in-out hover:before:opacity-100',m&&"outline-brand-base outline outline-thick outline-offset-[0.125rem]",u),style:{borderRadius:l??"var(--button-radius, 9999px)",...c},...e.mergeProps(v,h,y),"aria-disabled":r,onMouseEnter:o,onTouchStart:o,children:a.jsx("div",{className:"flex flex-col",children:s})})});n.displayName="ButtonContainer",exports.ButtonContainer=n;
//# sourceMappingURL=button.js.map
