"use strict";const f=require("react/jsx-runtime"),n=require("react"),d=require("@chakra-ui/react"),m=require("./useObjectRef-4v2MxSjQ.cjs.js"),p=require("./button-BR4fvcmi.cjs.js"),s=t=>{const{children:i,ref:a,...o}=t,r=n.useRef(null),c=m.$df56164dff5785e2$export$4338b53315abf666(d.mergeRefs(r,a));return n.useEffect(()=>{if(process.env.NODE_ENV!=="production"){const u=setTimeout(()=>{const e=r.current;if(e){const l=e.hasAttribute("aria-label")||e.hasAttribute("aria-labelledby"),b=e.hasAttribute("slot");!l&&!b&&console.warn(`Nimbus: IconButton requires an accessible label. Either provide an 'aria-label' prop or use within a component that provides it via context (e.g., slot="clear" in ComboBox).`,e)}},0);return()=>clearTimeout(u)}},[t["aria-label"],o.slot]),f.jsx(p.Button,{px:0,py:0,...o,ref:c,children:i})};s.displayName="IconButton";exports.IconButton=s;
//# sourceMappingURL=icon-button-CeB8_Yyr.cjs.js.map
