"use strict";const P=require("react/jsx-runtime"),R=require("react"),a=require("./Button-C92vyQPT.cjs.js"),x=require("./utils-BNYGVv6l.cjs.js"),d=require("@chakra-ui/react"),m=require("./emotion-is-prop-valid.esm-ux_11lix.cjs.js"),q=require("./index-Dzrt5_tw.cjs.js"),v=require("./useObjectRef-4v2MxSjQ.cjs.js"),C=require("./mergeProps-DD8aR8go.cjs.js"),h=require("./useButton-Dp2NwAPA.cjs.js"),B=["onPress","onPressStart","onPressEnd","onPressChange","onPressUp","onFocusChange","onHoverStart","onHoverEnd","onHoverChange","onMoveStart","onMove","onMoveEnd"],E=e=>B.some(t=>e.includes(t)),{withContext:g}=d.createRecipeContext({key:"nimbusButton"}),y=g("button",{defaultProps:{type:"button"},shouldForwardProp(e,t){const o=!t?.includes(e)&&!q.system.isValidProperty(e);return m.isPropValid(e)&&o&&!E(e)}}),i=e=>{const{ref:t,as:o,asChild:r,children:u,...b}=e,f=R.useRef(null),l=v.$df56164dff5785e2$export$4338b53315abf666(d.mergeRefs(f,t)),[n,c]=x.$64fa3d84918910a7$export$29f1550f4b0d4415(b,l,a.$d2b4bc8c273e7be6$export$24d547caef80ccd1),$=o||(r?"a":"button"),{buttonProps:p}=h.$701a24aa0da5b062$export$ea18c227d4417cc3({...n,elementType:$},c),s=C.$3ef42575df84b30b$export$9d1611c77c2fe928(n,p,{as:o,asChild:r,slot:n.slot||void 0});return P.jsx(y,{ref:c,...s,"aria-disabled":s.isDisabled||void 0,"data-disabled":s.isDisabled||void 0,children:u})};i.displayName="Button";const S=Object.assign(i,{Context:a.$d2b4bc8c273e7be6$export$24d547caef80ccd1});exports.Button=S;
//# sourceMappingURL=button-CkOEhYmQ.cjs.js.map
